userscripts-min
code:script.js
var aE=Object.create;var Nu=Object.defineProperty;var uE=Object.getOwnPropertyDescriptor;var oE=Object.getOwnPropertyNames;var cE=Object.getPrototypeOf,lE=Object.prototype.hasOwnProperty;var e4=Reflect.get,t4=Reflect.set;var pE=e=>Nu(e,"__esModule",{value:!0});var hE=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var dE=(e,t,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of oE(t))!lE.call(e,n)&&n!=="default"&&Nu(e,n,{get:()=>tn,enumerable:!(r=uE(t,n))||r.enumerable});return e},fE=e=>dE(pE(Nu(e!=null?aE(cE(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var E2=hE((l7,Su)=>{(function(e,t,r){function n(b,A,C){b.addEventListener?b.addEventListener(A,C,!1):b.attachEvent("on"+A,C)}function s(b){if(b.type=="keypress"){var A=String.fromCharCode(b.which);return b.shiftKey||(A=A.toLowerCase()),A}return ab.which?ab.which:fb.which?fb.which:String.fromCharCode(b.which).toLowerCase()}function u(b){var A=[];return b.shiftKey&&A.push("shift"),b.altKey&&A.push("alt"),b.ctrlKey&&A.push("ctrl"),b.metaKey&&A.push("meta"),A}function c(b){return b=="shift"||b=="ctrl"||b=="alt"||b=="meta"}function o(b,A){var C,F=[],w=b;for(w==="+"?w="+":(w=w.replace(/\+{2}/g,"+plus"),w=w.split("+")),C=0;C<w.length;++C){var B=wC;EB&&(B=EB),A&&A!="keypress"&&mB&&(B=mB,F.push("shift")),c(B)&&F.push(B)}if(w=B,C=A,!C){if(!g){g={};for(var T in a)95<T&&112>T||a.hasOwnProperty(T)&&(g[aT]=T)}C=gw?"keydown":"keypress"}return C=="keypress"&&F.length&&(C="keydown"),{key:B,modifiers:F,action:C}}function l(b,A){return b===null||b===t?!1:b===A?!0:l(b.parentNode,A)}function h(b){function A(j){j=j||{};var W=!1,z;for(z in v)jz?W=!0:vz=0;W||(q=!1)}function C(j,W,z,H,Y,ye){var ue,Ce=[],fe=z.type;if(!P._callbacksj)return[];for(fe=="keyup"&&c(j)&&(W=j),ue=0;ue<P._callbacksj.length;++ue){var De=P._callbacksjue;if((H||!De.seq||vDe.seq==De.level)&&fe==De.action){var ke;(ke=fe=="keypress"&&!z.metaKey&&!z.ctrlKey)||(ke=De.modifiers,ke=W.sort().join(",")===ke.sort().join(",")),ke&&(ke=H&&De.seq==H&&De.level==ye,(!H&&De.combo==Y||ke)&&P._callbacksj.splice(ue,1),Ce.push(De))}}return Ce}function F(j,W,z,H){P.stopCallback(W,W.target||W.srcElement,z,H)||j(W,z)!==!1||(W.preventDefault?W.preventDefault():W.returnValue=!1,W.stopPropagation?W.stopPropagation():W.cancelBubble=!0)}function w(j){typeof j.which!="number"&&(j.which=j.keyCode);var W=s(j);W&&(j.type=="keyup"&&O===W?O=!1:P.handleKey(W,u(j),j))}function B(j,W,z,H){function Y(fe){return function(){q=fe,++vj,clearTimeout(_),_=setTimeout(A,1e3)}}function ye(fe){F(z,fe,j),H!=="keyup"&&(O=s(fe)),setTimeout(A,10)}for(var ue=vj=0;ue<W.length;++ue){var Ce=ue+1===W.length?ye:Y(H||o(Wue+1).action);T(Wue,Ce,H,j,ue)}}function T(j,W,z,H,Y){P._directMapj+":"+z=W,j=j.replace(/\s+/g," ");var ye=j.split(" ");1<ye.length?B(j,ye,W,z):(z=o(j,z),P._callbacksz.key=P._callbacksz.key||[],C(z.key,z.modifiers,{type:z.action},H,j,Y),P._callbacksz.keyH?"unshift":"push"({callback:W,modifiers:z.modifiers,action:z.action,seq:H,level:Y,combo:j}))}var P=this;if(b=b||t,!(P instanceof h))return new h(b);P.target=b,P._callbacks={},P._directMap={};var v={},_,O=!1,M=!1,q=!1;P._handleKey=function(j,W,z){var H=C(j,W,z),Y;W={};var ye=0,ue=!1;for(Y=0;Y<H.length;++Y)HY.seq&&(ye=Math.max(ye,HY.level));for(Y=0;Y<H.length;++Y)HY.seq?HY.level==ye&&(ue=!0,W[HY.seq]=1,F(HY.callback,z,HY.combo,HY.seq)):ue||F(HY.callback,z,HY.combo);H=z.type=="keypress"&&M,z.type!=q||c(j)||H||A(W),M=ue&&z.type=="keydown"},P._bindMultiple=function(j,W,z){for(var H=0;H<j.length;++H)T(jH,W,z)},n(b,"keypress",w),n(b,"keydown",w),n(b,"keyup",w)}if(e){var a={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},f={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"",219:"[",220:"\\",221:"]",222:"'"},m={"~":"","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},E={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},g;for(r=1;20>r;++r)a111+r="f"+r;for(r=0;9>=r;++r)ar+96=r.toString();h.prototype.bind=function(b,A,C){return b=b instanceof Array?b:b,this._bindMultiple.call(this,b,A,C),this},h.prototype.unbind=function(b,A){return this.bind.call(this,b,function(){},A)},h.prototype.trigger=function(b,A){return this._directMapb+":"+A&&this._directMapb+":"+A({},b),this},h.prototype.reset=function(){return this._callbacks={},this._directMap={},this},h.prototype.stopCallback=function(b,A){return-1<(" "+A.className+" ").indexOf(" mousetrap ")||l(A,this.target)?!1:A.tagName=="INPUT"||A.tagName=="SELECT"||A.tagName=="TEXTAREA"||A.isContentEditable},h.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)},h.addKeycodes=function(b){for(var A in b)b.hasOwnProperty(A)&&(aA=bA);g=null},h.init=function(){var b=h(t),A;for(A in b)A.charAt(0)!=="_"&&(hA=function(C){return function(){return bC.apply(b,arguments)}}(A))},h.init(),e.Mousetrap=h,typeof Su!="undefined"&&Su.exports&&(Su.exports=h),typeof define=="function"&&define.amd&&define(function(){return h})}})(typeof window!="undefined"?window:null,typeof window!="undefined"?document:null);(()=>{let e=new Mousetrap,t=new Mousetrap(document.querySelector(".search-form input")),r=new Mousetrap(document.querySelector("#text-input"));r.stopCallback=(n,s)=>!1,window.scrapboxShortcut={onBrowse:(n,s)=>{e.bind(n,s)},onSearch:(n,s)=>{t.bind(n,u=>{if(s(u)===!1)return!1})},onEdit:(n,s)=>{r.bind(n,u=>{if(s(u)===!1)return!1})}}})()});var yn=e=>e.split(/\n/).map(t=>t.replaceAll(/\[(?<style>!"#%&'\(\)\*\+,-\.\/{\|}<>_~+\s)?(?<string>.*?)\]/g,"$<string>")).join(` ),zp=e=>(e=e??"",!!e.match(/^[\x20-\x7e]*$/));var Hp=class{constructor({raw:t,type:r,pathType:n,href:s,content:u}){this.raw=t,this.type=r,this.pathType=n,this.href=s,this.content=u}get url(){if(this.type==="link"&&this.pathType==="root")returnhttps://scrapbox.io${this.href};if(this.type==="hashTag"||this.type==="link"&&this.pathType==="relative")returnhttps://scrapbox.io/${scrapbox.Project.name}/${this.href};if(this.type==="link"&&this.pathType==="absolute")return this.href}openUrl(){window.open(this.url)}},Ti=e=>{let t=(r,n)=>{for(let s of r)e(s)&&n.push(new Hp({raw:s.raw,type:s.type,pathType:s.pathType,href:s.href,content:s.content})),s.hasOwnProperty("nodes")&&t(s.nodes,n)};return t},Gp=Ti(e=>e.type==="link"||e.type==="hashTag");var mE=Object.defineProperty,DE=(e,t)=>{for(var r in t)mE(e,r,{get:t[r],enumerable:!0})},Jp={};DE(Jp,{convertToBlock:()=>Qp,getTitle:()=>NC,packRows:()=>th,parse:()=>PC,parseToRows:()=>Zp});var gE=e=>({type:"title",text:e.rows[0].text}),yE=e=>{let{rows:[t,...r]}=e,{indent:n=0,text:s=""}=t??{},u=s.replace(/^\s*code:/,"");return{indent:n,type:"codeBlock",fileName:u,content:r.map(c=>c.text.substring(n+1)).join( )}},qe=(e,{parseOnNested:t,parseOnQuoted:r,patterns:n})=>(s,u,c)=>{var o,l,h,a,f,m;if(!t&&u.nested)return(o=c==null?void 0:c())!==null&&o!==void 0?o:[];if(!r&&u.quoted)return(l=c==null?void 0:c())!==null&&l!==void 0?l:[];for(let E of n){let g=E.exec(s);if(g===null)continue;let b=s.substring(0,g.index),A=s.substring(g.index+((a=(h=g[0])===null||h===void 0?void 0:h.length)!==null&&a!==void 0?a:0)),C=e((f=g[0])!==null&&f!==void 0?f:"",u);return[...Lr(b,u),...Array.isArray(C)?C:[C],...Lr(A,u)]}return(m=c==null?void 0:c())!==null&&m!==void 0?m:[]},EE=/^>.*$/,CE=(e,t)=>({type:"quote",raw:e,nodes:Lr(e.substring(1),{...t,quoted:!0})}),bE=qe(CE,{parseOnNested:!1,parseOnQuoted:!1,patterns:[EE]}),AE=/^\? .+$/,xE=e=>({type:"helpfeel",raw:e,text:e.substring(2)}),FE=qe(xE,{parseOnNested:!1,parseOnQuoted:!1,patterns:[AE]}),vE=/\[\[https?:\/\/[^\s\]]+\.(?:png|jpe?g|gif|svg)\]\]/i,wE=/\[\[https?:\/\/(?:[0-9a-z-]+\.)?gyazo\.com\/[0-9a-f]{32}\]\]/,SE=e=>{let t=e.substring(2,e.length-2),r=/^https?:\/\/([0-9a-z-]\.)?gyazo\.com\/[0-9a-f]{32}$/.test(t);return{type:"strongImage",raw:e,src:r?${t}/thumb/1000:t}},TE=qe(SE,{parseOnNested:!1,parseOnQuoted:!0,patterns:[vE,wE]}),BE=/\[[^[\]]*\.icon(?:\*[1-9]\d*)?\]/;function Xp(e){return t=>{let r=e==="icon"?t.substring(1,t.length-1):t.substring(2,t.length-2),n=r.lastIndexOf(".icon"),s=r.substring(0,n),u=s.startsWith("/")?"root":"relative",c=r.substring(n+5,r.length),o=c.startsWith("*")?parseInt(c.substring(1),10):1;return new Array(o).fill({}).map(()=>({path:s,pathType:u,type:e,raw:t}))}}var PE=Xp("icon"),NE=qe(PE,{parseOnNested:!1,parseOnQuoted:!0,patterns:[BE]}),kE=/\[\[[^[\]]*\.icon(?:\*\d+)?\]\]/,IE=Xp("strongIcon"),LE=qe(IE,{parseOnNested:!1,parseOnQuoted:!0,patterns:[kE]}),OE=/\[\[(?:[^[]|\[[^[]).*?\]*\]\]/,ME=(e,t)=>({type:"strong",raw:e,nodes:Lr(e.substring(2,e.length-2),{...t,nested:!0})}),RE=qe(ME,{parseOnNested:!1,parseOnQuoted:!0,patterns:[OE]}),jE=/\[\$ .+? \]/,_E=/\[\$ [^\]]+\]/,UE=e=>({type:"formula",raw:e,formula:e.substring(3,e.length-(e.endsWith(" ]")?2:1))}),qE=qe(UE,{parseOnNested:!1,parseOnQuoted:!0,patterns:[jE,_E]}),$E=/\[[!"#%&'()*+,\-./{|}<>_~]+ (?:\[[^[\]]+\]|[^\]])+\]/,VE=(e,t)=>{let r=e.indexOf(" "),n=e.substring(1,r),s=e.substring(r+1,e.length-1),u=new Set(n);if(u.has("*")){let c=n.split("*").length-1;u.delete("*"),u.add(*-${Math.min(c,10)})}return{type:"decoration",raw:e,rawDecos:n,decos:Array.from(u),nodes:Lr(s,{...t,nested:!0})}},WE=qe(VE,{parseOnNested:!1,parseOnQuoted:!0,patterns:[$E]}),zE=/.*?/,HE=e=>({type:"code",raw:e,text:e.substring(1,e.length-1)}),GE=qe(HE,{parseOnNested:!1,parseOnQuoted:!0,patterns:[zE]}),JE=/^[$%] .+$/,XE=e=>{var t;let r=(t=e[0])!==null&&t!==void 0?t:"",n=e.substring(2);return{type:"commandLine",raw:e,symbol:r,text:n}},KE=qe(XE,{parseOnNested:!1,parseOnQuoted:!1,patterns:[JE]}),YE=/\[\s+\]/,QE=e=>({type:"blank",raw:e,text:e.substring(1,e.length-1)}),ZE=qe(QE,{parseOnNested:!1,parseOnQuoted:!0,patterns:[YE]}),eC=/\[https?:\/\/[^\s\]]+\.(?:png|jpe?g|gif|svg)(?:\?[^\]\s]+)?(?:\s+https?:\/\/[^\s\]]+)?\]/i,tC=/\[https?:\/\/[^\s\]]+\s+https?:\/\/[^\s\]]+\.(?:png|jpe?g|gif|svg)(?:\?[^\]\s]+)?\]/i,rC=/\[https?:\/\/(?:[0-9a-z-]+\.)?gyazo\.com\/[0-9a-f]{32}(?:\/raw)?(?:\s+https?:\/\/[^\s\]]+)?\]/,nC=/\[https?:\/\/[^\s\]]+\s+https?:\/\/(?:[0-9a-z-]+\.)?gyazo\.com\/[0-9a-f]{32}(?:\/raw)?\]/,sC=e=>/^https?:\/\/[^\s\]]+\.(png|jpe?g|gif|svg)(\?[^\]\s]+)?$/i.test(e)||iC(e),iC=e=>/^https?:\/\/([0-9a-z-]\.)?gyazo\.com\/[0-9a-f]{32}(\/raw)?$/.test(e),aC=e=>{let t=e.search(/\s/),r=t!==-1?e.substring(1,t):e.substring(1,e.length-1),n=t!==-1?e.substring(t,e.length-1).trimLeft():"",[s,u]=sC(n)?[n,r]:[r,n];return{type:"image",raw:e,src:/^https?:\/\/([0-9a-z-]\.)?gyazo\.com\/[0-9a-f]{32}$/.test(s)?${s}/thumb/1000:s,link:u}},uC=qe(aC,{parseOnNested:!0,parseOnQuoted:!0,patterns:[eC,tC,rC,nC]}),oC=/\[https?:\/\/[^\s\]]+\s+[^\]]*[^\s]\]/,cC=/\[[^[\]]*[^\s]\s+https?:\/\/[^\s\]]+\]/,lC=/\[https?:\/\/[^\s\]]+\]/,pC=/https?:\/\/[^\s]+/,hC=e=>{let t=e.startsWith("[")&&e.endsWith("]")?e.substring(1,e.length-1):e,r=/^https?:\/\/[^\s\]]/.test(t),n=(r?/^https?:\/\/[^\s\]]+/:/https?:\/\/[^\s\]]+$/).exec(t);if((n==null?void 0:n[0])===void 0)return[];let s=r?t.substring(n[0].length):t.substring(0,n.index-1);return{type:"link",raw:e,pathType:"absolute",href:n[0],content:s.trim()}},dC=qe(hC,{parseOnNested:!0,parseOnQuoted:!0,patterns:[oC,cC,lC,pC]}),Kp=/\[([^\]]*[^\s])\s+([NS]\d+(?:\.\d+)?,[EW]\d+(?:\.\d+)?(?:,Z\d+)?)\]/,Yp=/\[([NS]\d+(?:\.\d+)?,[EW]\d+(?:\.\d+)?(?:,Z\d+)?)(?:\s+([^\]]*[^\s]))?\]/,fC=e=>{let[t="",r="",n=""]=e.split(","),s=parseFloat(t.replace(/^N/,"").replace(/^S/,"-")),u=parseFloat(r.replace(/^E/,"").replace(/^W/,"-")),c=/^Z\d+$/.test(n)?parseInt(n.replace(/^Z/,""),10):14;return{latitude:s,longitude:u,zoom:c}},mC=e=>{var t;let r=(t=e.match(Kp))!==null&&t!==void 0?t:e.match(Yp);if(r===null)return[];let n=e.startsWith("[N")||e.startsWith("[S"),[,s="",u=""]=n?r:[r[0],r[2],r[1]],{latitude:c,longitude:o,zoom:l}=fC(s),h=u!==""?https://www.google.com/maps/place/${encodeURIComponent(u)}/@${c},${o},${l}z:https://www.google.com/maps/@${c},${o},${l}z;return{type:"googleMap",raw:e,latitude:c,longitude:o,zoom:l,place:u,url:h}},DC=qe(mC,{parseOnNested:!1,parseOnQuoted:!0,patterns:[Kp,Yp]}),gC=/\[\/?[^[\]]+\]/,yC=e=>{let t=e.substring(1,e.length-1);return{type:"link",raw:e,pathType:t.startsWith("/")?"root":"relative",href:t,content:""}},EC=qe(yC,{parseOnNested:!0,parseOnQuoted:!0,patterns:[gC]}),CC=/(?:^|\s)#\S+/,bC=e=>{if(e.startsWith("#"))return{type:"hashTag",raw:e,href:e.substring(1)};let t=e.substring(0,1),r=e.substring(1);return[{type:"plain",raw:t,text:t},{type:"hashTag",raw:r,href:r.substring(1)}]},AC=qe(bC,{parseOnNested:!1,parseOnQuoted:!0,patterns:[CC]}),xC=e=>({type:"plain",raw:e,text:e}),FC=qe(xC,{parseOnNested:!0,parseOnQuoted:!0,patterns:[/^()(.*)()$/]}),vC=(e,t,r)=>{var n;return e===""?[]:(n=r==null?void 0:r())!==null&&n!==void 0?n:[]},wC=(...e)=>(t="",r={nested:!1,quoted:!1})=>e.reduceRight((n,s)=>()=>s(t,r,n),()=>FC(t,r))(),Lr=wC(vC,bE,FE,GE,KE,qE,ZE,WE,TE,LE,RE,uC,dC,NE,DC,EC,AC),SC=e=>{let{rows:[t,...r]}=e,{indent:n=0,text:s=""}=t??{},u=s.replace(/^\s*table:/,"");return{indent:n,type:"table",fileName:u,cells:r.map(c=>c.text.substring(n+1)).map(c=>c.split(" ").map(o=>Lr(o,{nested:!0,quoted:!1})))}},TC=e=>{let{indent:t,text:r}=e.rows[0];return{indent:t,type:"line",nodes:Lr(r.substring(t))}},Qp=e=>{switch(e.type){case"title":return gE(e);case"codeBlock":return yE(e);case"table":return SC(e);case"line":return TC(e)}},Zp=e=>e.split( ).map(t=>{var r,n,s;return{indent:(s=(n=(r=/^\s+/.exec(t))===null||r===void 0?void 0:r[0])===null||n===void 0?void 0:n.length)!==null&&s!==void 0?s:0,text:t}}),BC=(e,t)=>{var r,n;return(e.type==="codeBlock"||e.type==="table")&&t.indent>((n=(r=e.rows[0])===null||r===void 0?void 0:r.indent)!==null&&n!==void 0?n:0)},eh=(e,t)=>{let r=e[e.length-1];return r!==void 0&&BC(r,t)?(r.rows.push(t),e):(e.push({type:/^\s*code:/.test(t.text)?"codeBlock":/^\s*table:/.test(t.text)?"table":"line",rows:[t]}),e)},th=(e,t)=>{var r;if((r=t.hasTitle)!==null&&r!==void 0?r:!0){let[n,...s]=e;return n===void 0?[]:[{type:"title",rows:[n]},...s.reduce(eh,[])]}return e.reduce(eh,[])},PC=(e,t)=>{var r;let n=Zp(e);return th(n,{hasTitle:(r=t==null?void 0:t.hasTitle)!==null&&r!==void 0?r:!0}).map(Qp)},NC=e=>{var t,r;let n=/^\s*\S.*$/m.exec(e);return(r=(t=n==null?void 0:n[0])===null||t===void 0?void 0:t.trim())!==null&&r!==void 0?r:"Untitled"},{packRows:rh,parse:ds,getTitle:i4,convertToBlock:a4,parseToRows:nh}=Jp;var kC=e=>e.replace(/^\s*/g,t=>t.replace(/\s/g," ")),IC=e=>e.replace(/ /g," "),LC=e=>e.replace(/[A-Za-z0-9]/g,t=>String.fromCharCode(t.charCodeAt(0)-65248)),OC=e=>{let r=(c=>c.replaceAll("(","(").replaceAll(")",")"))(e),n=/(?<leftBracket>\s*\()(?<content>.*?)(?<rightBracket>\)\s*)/g,s=[],u=0;for(let c of r.matchAll(n))s.push(r.slice(u,c.index)),u=c.index+c[0].length,zp(c.groups.content)?s.push( (${c.groups.content}) ):s.push((${c.groups.content}));return s.push(r.slice(u)),s.join("").trimEnd()},MC=e=>{let t=ds(e,{hasTitle:!1}),r=[];return Ti(s=>s.type==="link"&&s.pathType==="absolute"&&/^https?:\/\/scrapbox\.io\//.test(s.href))(t,r),r.forEach(s=>{let[u,c]=s.href.split("/").slice(3,5),o=[/${u}+(c==null||c===""?"":/${decodeURI(c)})+"]";e=e.replace(s.raw,o)}),e},RC=e=>{let t=ds(e,{hasTitle:!1}),r=[];return Ti(s=>(console.log(s),s.type==="link"&&s.pathType==="absolute"))(t,r),r.forEach(s=>{let u=${s.href} ${s.content};e=e.replace(s.raw,u)}),e},sh=e=>{let t=e.split( ).map(kC).map(LC).map(IC).map(OC).map(MC).map(RC).join(
);if(e!==t)return t};scrapbox.PopupMenu.addButton({title:"",onClick:e=>sh(e)});function Bi(e,t){if(e==null)return{};var r,n,s={},u=Object.keys(e);for(n=0;n<u.length;n++)r=u[n],t.indexOf(r)>=0||(s[r]=e[r]);return s}function En(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var ih={name:"prettier",version:"2.2.1",description:"Prettier is an opinionated code formatter",bin:"./bin/prettier.js",repository:"prettier/prettier",homepage:"https://prettier.io",author:"James Long",license:"MIT",main:"./index.js",browser:"./standalone.js",unpkg:"./standalone.js",engines:{node:">=10.13.0"},files:["index.js","standalone.js","src","bin"],dependencies:{"@angular/compiler":"10.2.3","@babel/code-frame":"7.10.4","@babel/parser":"7.12.5","@glimmer/syntax":"0.66.0","@iarna/toml":"2.2.5","@typescript-eslint/typescript-estree":"4.8.1","angular-estree-parser":"2.2.1","angular-html-parser":"1.7.1",camelcase:"6.2.0",chalk:"4.1.0","ci-info":"watson/ci-info#f43f6a1cefff47fb361c88cf4b943fdbcaafe540","cjk-regex":"2.0.0",cosmiconfig:"7.0.0",dashify:"2.0.0",diff:"5.0.0",editorconfig:"0.15.3","editorconfig-to-prettier":"0.2.0","escape-string-regexp":"4.0.0",espree:"7.3.0",esutils:"2.0.3","fast-glob":"3.2.4","fast-json-stable-stringify":"2.1.0","find-parent-dir":"0.3.0","flow-parser":"0.138.0","get-stdin":"8.0.0",globby:"11.0.1",graphql:"15.4.0","html-element-attributes":"2.3.0","html-styles":"1.0.0","html-tag-names":"1.1.5","html-void-elements":"1.0.5",ignore:"4.0.6","jest-docblock":"26.0.0",json5:"2.1.3",leven:"3.1.0","lines-and-columns":"1.1.6","linguist-languages":"7.12.1",lodash:"4.17.20",mem:"8.0.0",meriyah:"3.1.6",minimatch:"3.0.4",minimist:"1.2.5","n-readlines":"1.0.1",outdent:"0.7.1","parse-srcset":"ikatyang/parse-srcset#54eb9c1cb21db5c62b4d0e275d7249516df6f0ee","please-upgrade-node":"3.2.0","postcss-less":"3.1.4","postcss-media-query-parser":"0.2.3","postcss-scss":"2.1.1","postcss-selector-parser":"2.2.3","postcss-values-parser":"2.0.1","regexp-util":"1.2.2","remark-footnotes":"2.0.0","remark-math":"3.0.1","remark-parse":"8.0.3",resolve:"1.19.0",semver:"7.3.2","string-width":"4.2.0",typescript:"4.1.2","unicode-regex":"3.0.0",unified:"9.2.0",vnopts:"1.0.2","yaml-unist-parser":"1.3.1"},devDependencies:{"@babel/core":"7.12.3","@babel/preset-env":"7.12.1","@babel/types":"7.12.6","@glimmer/reference":"0.66.0","@rollup/plugin-alias":"3.1.1","@rollup/plugin-babel":"5.2.1","@rollup/plugin-commonjs":"16.0.0","@rollup/plugin-json":"4.1.0","@rollup/plugin-node-resolve":"10.0.0","@rollup/plugin-replace":"2.3.4","@types/estree":"0.0.45","@types/node":"14.14.0","@typescript-eslint/types":"4.8.1","babel-jest":"26.6.3","babel-loader":"8.2.1",benchmark:"2.1.4","builtin-modules":"3.1.0","cross-env":"7.0.2",cspell:"4.2.2",eslint:"7.13.0","eslint-config-prettier":"6.15.0","eslint-formatter-friendly":"7.0.0","eslint-plugin-import":"2.22.1","eslint-plugin-jest":"24.1.3","eslint-plugin-prettier-internal-rules":"file:scripts/tools/eslint-plugin-prettier-internal-rules","eslint-plugin-react":"7.21.5","eslint-plugin-unicorn":"23.0.0",execa:"4.1.0",jest:"26.6.3","jest-snapshot-serializer-ansi":"1.0.0","jest-snapshot-serializer-raw":"1.1.0","jest-watch-typeahead":"0.6.1","npm-run-all":"4.1.5","path-browserify":"1.0.1",prettier:"2.2.0",rimraf:"3.0.2",rollup:"2.33.3","rollup-plugin-node-globals":"1.4.0","rollup-plugin-terser":"7.0.2",shelljs:"0.8.4","snapshot-diff":"0.8.1","strip-ansi":"6.0.0","synchronous-promise":"2.0.15",tempy:"1.0.0","terser-webpack-plugin":"5.0.3",webpack:"5.5.1"},scripts:{prepublishOnly:'echo "Error: must publish from dist/" && exit 1',"prepare-release":"yarn && yarn build && yarn test:dist",test:"jest","test:dev-package":"cross-env INSTALL_PACKAGE=1 jest","test:dist":"cross-env NODE_ENV=production jest","test:dist-standalone":"cross-env NODE_ENV=production TEST_STANDALONE=1 jest","test:integration":"jest tests_integration","perf:repeat":"yarn && yarn build && cross-env NODE_ENV=production node ./dist/bin-prettier.js --debug-repeat ${PERF_REPEAT:-1000} --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","perf:repeat-inspect":"yarn && yarn build && cross-env NODE_ENV=production node --inspect-brk ./dist/bin-prettier.js --debug-repeat ${PERF_REPEAT:-1000} --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","perf:benchmark":"yarn && yarn build && cross-env NODE_ENV=production node ./dist/bin-prettier.js --debug-benchmark --loglevel debug ${PERF_FILE:-./index.js} > /dev/null",lint:"run-p lint:*","lint:typecheck":"tsc","lint:eslint":"cross-env EFF_NO_LINK_RULES=true eslint . --format friendly","lint:changelog":"node ./scripts/lint-changelog.js","lint:prettier":'prettier . "!test*" --check',"lint:dist":'eslint --no-eslintrc --no-ignore --env=es6,browser --parser-options=ecmaVersion:2018 "dist/!(bin-prettier|index|third-party).js"',"lint:spellcheck":'cspell "**/*" ".github/**/*"',"lint:deps":"node ./scripts/check-deps.js",fix:"run-s fix:eslint fix:prettier","fix:eslint":"yarn lint:eslint --fix","fix:prettier":"yarn lint:prettier --write",build:"node --max-old-space-size=3072 ./scripts/build/build.js","build-docs":"node ./scripts/build-docs.js"}};function Lt(){}function jC(e,t,r,n,s){for(var u=0,c=t.length,o=0,l=0;u<c;u++){var h=t[u];if(h.removed){if(h.value=e.join(n.slice(l,l+h.count)),l+=h.count,u&&t[u-1].added){var a=t[u-1];t[u-1]=t[u],t[u]=a}}else{if(!h.added&&s){var f=r.slice(o,o+h.count);f=f.map(function(E,g){var b=n[l+g];return b.length>E.length?b:E}),h.value=e.join(f)}else h.value=e.join(r.slice(o,o+h.count));o+=h.count,h.added||(l+=h.count)}}var m=t[c-1];return c>1&&typeof m.value=="string"&&(m.added||m.removed)&&e.equals("",m.value)&&(t[c-2].value+=m.value,t.pop()),t}function _C(e){return{newPos:e.newPos,components:e.components.slice(0)}}Lt.prototype={diff:function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=r.callback;typeof r=="function"&&(n=r,r={}),this.options=r;var s=this;function u(g){return n?(setTimeout(function(){n(void 0,g)},0),!0):g}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var c=(t=this.removeEmpty(this.tokenize(t))).length,o=e.length,l=1,h=c+o,a=[{newPos:-1,components:[]}],f=this.extractCommon(a[0],t,e,0);if(a[0].newPos+1>=c&&f+1>=o)return u([{value:this.join(t),count:t.length}]);function m(){for(var g=-1*l;g<=l;g+=2){var b=void 0,A=a[g-1],C=a[g+1],F=(C?C.newPos:0)-g;A&&(a[g-1]=void 0);var w=A&&A.newPos+1<c,B=C&&0<=F&&F<o;if(w||B){if(!w||B&&A.newPos<C.newPos?(b=_C(C),s.pushComponent(b.components,void 0,!0)):((b=A).newPos++,s.pushComponent(b.components,!0,void 0)),F=s.extractCommon(b,t,e,g),b.newPos+1>=c&&F+1>=o)return u(jC(s,b.components,t,e,s.useLongestToken));a[g]=b}else a[g]=void 0}l++}if(n)(function g(){setTimeout(function(){if(l>h)return n();m()||g()},0)})();else for(;l<=h;){var E=m();if(E)return E}},pushComponent:function(e,t,r){var n=e[e.length-1];n&&n.added===t&&n.removed===r?e[e.length-1]={count:n.count+1,added:t,removed:r}:e.push({count:1,added:t,removed:r})},extractCommon:function(e,t,r,n){for(var s=t.length,u=r.length,c=e.newPos,o=c-n,l=0;c+1<s&&o+1<u&&this.equals(t[c+1],r[o+1]);)c++,o++,l++;return l&&e.components.push({count:l}),e.newPos=c,o},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],r=0;r<e.length;r++)e[r]&&t.push(e[r]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}};var UC=new Lt;function ah(e,t){if(typeof e=="function")t.callback=e;else if(e)for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t}var uh=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,oh=/\S/,Pi=new Lt;Pi.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!oh.test(e)&&!oh.test(t)},Pi.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),r=0;r<t.length-1;r++)!t[r+1]&&t[r+2]&&uh.test(t[r])&&uh.test(t[r+2])&&(t[r]+=t[r+2],t.splice(r+1,2),r--);return t};var Ni=new Lt;function ch(e,t,r){return Ni.diff(e,t,r)}Ni.tokenize=function(e){var t=[],r=e.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(var n=0;n<r.length;n++){var s=r[n];n%2&&!this.options.newlineIsToken?t[t.length-1]+=s:(this.options.ignoreWhitespace&&(s=s.trim()),t.push(s))}return t};var lh=new Lt;lh.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var ph=new Lt;function hh(e){return(hh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function Xt(e){return function(t){if(Array.isArray(t))return ku(t)}(e)||function(t){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(t))return Array.from(t)}(e)||function(t,r){if(!!t){if(typeof t=="string")return ku(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 ku(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 ku(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}ph.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};var qC=Object.prototype.toString,Cn=new Lt;function ki(e,t,r,n,s){var u,c;for(t=t||[],r=r||[],n&&(e=n(s,e)),u=0;u<t.length;u+=1)if(t[u]===e)return r[u];if(qC.call(e)==="[object Array]"){for(t.push(e),c=new Array(e.length),r.push(c),u=0;u<e.length;u+=1)c[u]=ki(e[u],t,r,n,s);return t.pop(),r.pop(),c}if(e&&e.toJSON&&(e=e.toJSON()),hh(e)==="object"&&e!==null){t.push(e),c={},r.push(c);var o,l=[];for(o in e)e.hasOwnProperty(o)&&l.push(o);for(l.sort(),u=0;u<l.length;u+=1)c[o=l[u]]=ki(e[o],t,r,n,o);t.pop(),r.pop()}else c=e;return c}Cn.useLongestToken=!0,Cn.tokenize=Ni.tokenize,Cn.castInput=function(e){var t=this.options,r=t.undefinedReplacement,n=t.stringifyReplacer,s=n===void 0?function(u,c){return c===void 0?r:c}:n;return typeof e=="string"?e:JSON.stringify(ki(e,null,null,s),s," ")},Cn.equals=function(e,t){return Lt.prototype.equals.call(Cn,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};var Ii=new Lt;function Li(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.split(/\r\n|[\n\v\f\r\x85]/),n=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],s=[],u=0;function c(){var h={};for(s.push(h);u<r.length;){var a=r[u];if(/^(\-\-\-|\+\+\+|@@)\s/.test(a))break;var f=/^(?:Index:|diff(?: -r \w+)+)\s+(.+?)\s*$/.exec(a);f&&(h.index=f[1]),u++}for(o(h),o(h),h.hunks=[];u<r.length;){var m=r[u];if(/^(Index:|diff|\-\-\-|\+\+\+)\s/.test(m))break;if(/^@@/.test(m))h.hunks.push(l());else{if(m&&t.strict)throw new Error("Unknown line "+(u+1)+" "+JSON.stringify(m));u++}}}function o(h){var a=/^(---|\+\+\+)\s+(.*)$/.exec(r[u]);if(a){var f=a[1]==="---"?"old":"new",m=a[2].split(" ",2),E=m[0].replace(/\\\\/g,"\\");/^".*"$/.test(E)&&(E=E.substr(1,E.length-2)),h[f+"FileName"]=E,h[f+"Header"]=(m[1]||"").trim(),u++}}function l(){var h=u,a=r[u++].split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),f={oldStart:+a[1],oldLines:a[2]===void 0?1:+a[2],newStart:+a[3],newLines:a[4]===void 0?1:+a[4],lines:[],linedelimiters:[]};f.oldLines===0&&(f.oldStart+=1),f.newLines===0&&(f.newStart+=1);for(var m=0,E=0;u<r.length&&!(r[u].indexOf("--- ")===0&&u+2<r.length&&r[u+1].indexOf("+++ ")===0&&r[u+2].indexOf("@@")===0);u++){var g=r[u].length==0&&u!=r.length-1?" ":r[u][0];if(g!=="+"&&g!=="-"&&g!==" "&&g!=="\\")break;f.lines.push(r[u]),f.linedelimiters.push(n[u]|| ),g==="+"?m++:g==="-"?E++:g===" "&&(m++,E++)}if(m||f.newLines!==1||(f.newLines=0),E||f.oldLines!==1||(f.oldLines=0),t.strict){if(m!==f.newLines)throw new Error("Added line count did not match for hunk at line "+(h+1));if(E!==f.oldLines)throw new Error("Removed line count did not match for hunk at line "+(h+1))}return f}for(;u<r.length;)c();return s}function $C(e,t,r){var n=!0,s=!1,u=!1,c=1;return function o(){if(n&&!u){if(s?c++:n=!1,e+c<=r)return c;u=!0}if(!s)return u||(n=!0),t<=e-c?-c++:(s=!0,o())}}function dh(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string"&&(t=Li(t)),Array.isArray(t)){if(t.length>1)throw new Error("applyPatch only works with a single input.");t=t[0]}var n,s,u=e.split(/\r\n|[\n\v\f\r\x85]/),c=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],o=t.hunks,l=r.compareLine||function(H,Y,ye,ue){return Y===ue},h=0,a=r.fuzzFactor||0,f=0,m=0;function E(H,Y){for(var ye=0;ye<H.lines.length;ye++){var ue=H.lines[ye],Ce=ue.length>0?ue[0]:" ",fe=ue.length>0?ue.substr(1):ue;if(Ce===" "||Ce==="-"){if(!l(Y+1,u[Y],Ce,fe)&&++h>a)return!1;Y++}}return!0}for(var g=0;g<o.length;g++){for(var b=o[g],A=u.length-b.oldLines,C=0,F=m+b.oldStart-1,w=$C(F,f,A);C!==void 0;C=w())if(E(b,F+C)){b.offset=m+=C;break}if(C===void 0)return!1;f=b.offset+b.oldStart+b.oldLines}for(var B=0,T=0;T<o.length;T++){var P=o[T],v=P.oldStart+P.offset+B-1;B+=P.newLines-P.oldLines;for(var _=0;_<P.lines.length;_++){var O=P.lines[_],M=O.length>0?O[0]:" ",q=O.length>0?O.substr(1):O,j=P.linedelimiters[_];if(M===" ")v++;else if(M==="-")u.splice(v,1),c.splice(v,1);else if(M==="+")u.splice(v,0,q),c.splice(v,0,j),v++;else if(M==="\\"){var W=P.lines[_-1]?P.lines[_-1][0]:null;W==="+"?n=!0:W==="-"&&(s=!0)}}}if(n)for(;!u[u.length-1];)u.pop(),c.pop();else s&&(u.push(""),c.push(
));for(var z=0;z<u.length-1;z++)u[z]=u[z]+c[z];return u.join("")}function Iu(e,t,r,n,s,u,c){c||(c={}),c.context===void 0&&(c.context=4);var o=ch(r,n,c);function l(C){return C.map(function(F){return" "+F})}o.push({value:"",lines:[]});for(var h=[],a=0,f=0,m=[],E=1,g=1,b=function(C){var F=o[C],w=F.lines||F.value.replace(/\n$/,"").split(
);if(F.lines=w,F.added||F.removed){var B;if(!a){var T=o[C-1];a=E,f=g,T&&(m=c.context>0?l(T.lines.slice(-c.context)):[],a-=m.length,f-=m.length)}(B=m).push.apply(B,Xt(w.map(function(W){return(F.added?"+":"-")+W}))),F.added?g+=w.length:E+=w.length}else{if(a)if(w.length<=2*c.context&&C<o.length-2){var P;(P=m).push.apply(P,Xt(l(w)))}else{var v,_=Math.min(w.length,c.context);(v=m).push.apply(v,Xt(l(w.slice(0,_))));var O={oldStart:a,oldLines:E-a+_,newStart:f,newLines:g-f+_,lines:m};if(C>=o.length-2&&w.length<=c.context){var M=/\n$/.test(r),q=/\n$/.test(n),j=w.length==0&&m.length>O.oldLines;!M&&j&&r.length>0&&m.splice(O.oldLines,0,"\\ No newline at end of file"),(M||j)&&q||m.push("\\ No newline at end of file")}h.push(O),a=0,f=0,m=[]}E+=w.length,g+=w.length}},A=0;A<o.length;A++)b(A);return{oldFileName:e,newFileName:t,oldHeader:s,newHeader:u,hunks:h}}function fh(e,t,r,n,s,u,c){return function(o){var l=[];o.oldFileName==o.newFileName&&l.push("Index: "+o.oldFileName),l.push("==================================================================="),l.push("--- "+o.oldFileName+(o.oldHeader===void 0?"":" "+o.oldHeader)),l.push("+++ "+o.newFileName+(o.newHeader===void 0?"":" "+o.newHeader));for(var h=0;h<o.hunks.length;h++){var a=o.hunks[h];a.oldLines===0&&(a.oldStart-=1),a.newLines===0&&(a.newStart-=1),l.push("@@ -"+a.oldStart+","+a.oldLines+" +"+a.newStart+","+a.newLines+" @@"),l.push.apply(l,a.lines)}return l.join(
)+
}(Iu(e,t,r,n,s,u,c))}function Lu(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}function VC(e){var t=Mu(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 mh(e,t){if(typeof e=="string"){if(/^@@/m.test(e)||/^Index:/m.test(e))return Li(e)[0];if(!t)throw new Error("Must provide a base reference or pass in a patch");return Iu(void 0,void 0,t,e)}return e}function Dh(e){return e.newFileName&&e.newFileName!==e.oldFileName}function Oi(e,t,r){return t===r?t:(e.conflict=!0,{mine:t,theirs:r})}function gh(e,t){return e.oldStart<t.oldStart&&e.oldStart+e.oldLines<t.oldStart}function yh(e,t){return{oldStart:e.oldStart,oldLines:e.oldLines,newStart:e.newStart+t,newLines:e.newLines,lines:e.lines}}function WC(e,t,r,n,s){var u={offset:t,lines:r,index:0},c={offset:n,lines:s,index:0};for(Ch(e,u,c),Ch(e,c,u);u.index<u.lines.length&&c.index<c.lines.length;){var o=u.lines[u.index],l=c.lines[c.index];if(o[0]!=="-"&&o[0]!=="+"||l[0]!=="-"&&l[0]!=="+")if(o[0]==="+"&&l[0]===" "){var h;(h=e.lines).push.apply(h,Xt(Or(u)))}else if(l[0]==="+"&&o[0]===" "){var a;(a=e.lines).push.apply(a,Xt(Or(c)))}else o[0]==="-"&&l[0]===" "?Eh(e,u,c):l[0]==="-"&&o[0]===" "?Eh(e,c,u,!0):o===l?(e.lines.push(o),u.index++,c.index++):Ou(e,Or(u),Or(c));else zC(e,u,c)}bh(e,u),bh(e,c),VC(e)}function zC(e,t,r){var n=Or(t),s=Or(r);if(Ah(n)&&Ah(s)){var u,c;if(Lu(n,s)&&xh(r,n,n.length-s.length))return void(u=e.lines).push.apply(u,Xt(n));if(Lu(s,n)&&xh(t,s,s.length-n.length))return void(c=e.lines).push.apply(c,Xt(s))}else if(function(l,h){return l.length===h.length&&Lu(l,h)}(n,s)){var o;return void(o=e.lines).push.apply(o,Xt(n))}Ou(e,n,s)}function Eh(e,t,r,n){var s,u=Or(t),c=function(o,l){for(var h=[],a=[],f=0,m=!1,E=!1;f<l.length&&o.index<o.lines.length;){var g=o.lines[o.index],b=l[f];if(b[0]==="+")break;if(m=m||g[0]!==" ",a.push(b),f++,g[0]==="+")for(E=!0;g[0]==="+";)h.push(g),g=o.lines[++o.index];b.substr(1)===g.substr(1)?(h.push(g),o.index++):E=!0}if((l[f]||"")[0]==="+"&&m&&(E=!0),E)return h;for(;f<l.length;)a.push(l[f++]);return{merged:a,changes:h}}(r,u);c.merged?(s=e.lines).push.apply(s,Xt(c.merged)):Ou(e,n?c:u,n?u:c)}function Ou(e,t,r){e.conflict=!0,e.lines.push({conflict:!0,mine:t,theirs:r})}function Ch(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 bh(e,t){for(;t.index<t.lines.length;){var r=t.lines[t.index++];e.lines.push(r)}}function Or(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 Ah(e){return e.reduce(function(t,r){return t&&r[0]==="-"},!0)}function xh(e,t,r){for(var n=0;n<r;n++){var s=t[t.length-r+n].substr(1);if(e.lines[e.index+n]!==" "+s)return!1}return e.index+=r,!0}function Mu(e){var t=0,r=0;return e.forEach(function(n){if(typeof n!="string"){var s=Mu(n.mine),u=Mu(n.theirs);t!==void 0&&(s.oldLines===u.oldLines?t+=s.oldLines:t=void 0),r!==void 0&&(s.newLines===u.newLines?r+=s.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}}function HC(e){var t=e;return t=(t=(t=(t=t.replace(/&/g,"&")).replace(/</g,"<")).replace(/>/g,">")).replace(/"/g,""")}Ii.tokenize=function(e){return e.slice()},Ii.join=Ii.removeEmpty=function(e){return e};var GC=Object.freeze({__proto__:null,Diff:Lt,applyPatch:dh,applyPatches:function(e,t){typeof e=="string"&&(e=Li(e));var r=0;(function n(){var s=e[r++];if(!s)return t.complete();t.loadFile(s,function(u,c){if(u)return t.complete(u);var o=dh(c,s,t);t.patched(s,o,function(l){if(l)return t.complete(l);n()})})})()},canonicalize:ki,convertChangesToDMP:function(e){for(var t,r,n=[],s=0;s<e.length;s++)r=(t=e[s]).added?1:t.removed?-1:0,n.push([r,t.value]);return n},convertChangesToXML:function(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];n.added?t.push("<ins>"):n.removed&&t.push("<del>"),t.push(HC(n.value)),n.added?t.push("</ins>"):n.removed&&t.push("</del>")}return t.join("")},createPatch:function(e,t,r,n,s,u){return fh(e,e,t,r,n,s,u)},createTwoFilesPatch:fh,diffArrays:function(e,t,r){return Ii.diff(e,t,r)},diffChars:function(e,t,r){return UC.diff(e,t,r)},diffCss:function(e,t,r){return ph.diff(e,t,r)},diffJson:function(e,t,r){return Cn.diff(e,t,r)},diffLines:ch,diffSentences:function(e,t,r){return lh.diff(e,t,r)},diffTrimmedLines:function(e,t,r){var n=ah(r,{ignoreWhitespace:!0});return Ni.diff(e,t,n)},diffWords:function(e,t,r){return r=ah(r,{ignoreWhitespace:!0}),Pi.diff(e,t,r)},diffWordsWithSpace:function(e,t,r){return Pi.diff(e,t,r)},merge:function(e,t,r){e=mh(e,r),t=mh(t,r);var n={};(e.index||t.index)&&(n.index=e.index||t.index),(e.newFileName||t.newFileName)&&(Dh(e)?Dh(t)?(n.oldFileName=Oi(n,e.oldFileName,t.oldFileName),n.newFileName=Oi(n,e.newFileName,t.newFileName),n.oldHeader=Oi(n,e.oldHeader,t.oldHeader),n.newHeader=Oi(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 s=0,u=0,c=0,o=0;s<e.hunks.length||u<t.hunks.length;){var l=e.hunks[s]||{oldStart:1/0},h=t.hunks[u]||{oldStart:1/0};if(gh(l,h))n.hunks.push(yh(l,c)),s++,o+=l.newLines-l.oldLines;else if(gh(h,l))n.hunks.push(yh(h,o)),u++,c+=h.newLines-h.oldLines;else{var a={oldStart:Math.min(l.oldStart,h.oldStart),oldLines:0,newStart:Math.min(l.newStart+c,h.oldStart+o),newLines:0,lines:[]};WC(a,l.oldStart,l.lines,h.oldStart,h.lines),u++,s++,n.hunks.push(a)}}return n},parsePatch:Li,structuredPatch:Iu});function Mi(e){return{type:"concat",parts:e}}function Fh(e){return{type:"indent",contents:e}}function bn(e,t){return{type:"align",contents:t,n:e}}function vh(e,t){return{type:"group",id:(t=t||{}).id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}var Ru={type:"break-parent"},JC=Mi([{type:"line",hard:!0},Ru]),XC=Mi([{type:"line",hard:!0,literal:!0},Ru]),ju={concat:Mi,join:function(e,t){let r=[];for(let n=0;n<t.length;n++)n!==0&&r.push(e),r.push(t[n]);return Mi(r)},line:{type:"line"},softline:{type:"line",soft:!0},hardline:JC,literalline:XC,group:vh,conditionalGroup:function(e,t){return vh(e[0],Object.assign({},t,{expandedStates:e}))},fill:function(e){return{type:"fill",parts:e}},lineSuffix:function(e){return{type:"line-suffix",contents:e}},lineSuffixBoundary:{type:"line-suffix-boundary"},cursor:{type:"cursor",placeholder:Symbol("cursor")},breakParent:Ru,ifBreak:function(e,t,r){return{type:"if-break",breakContents:e,flatContents:t,groupId:(r=r||{}).groupId}},trim:{type:"trim"},indent:Fh,align:bn,addAlignmentToDoc:function(e,t,r){let n=e;if(t>0){for(let s=0;s<Math.floor(t/r);++s)n=Fh(n);n=bn(t%r,n),n=bn(-1/0,n)}return n},markAsRoot:function(e){return bn({type:"root"},e)},dedentToRoot:function(e){return bn(-1/0,e)},dedent:function(e){return bn(-1,e)}},KC=e=>typeof e=="string"?e.replace((({onlyFirst:t=!1}={})=>{let r=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(r,t?void 0:"g")})(),""):e,wh=e=>!Number.isNaN(e)&&e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141),Sh=wh,YC=wh;Sh.default=YC;var Th=e=>{if(typeof(e=e.replace(/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g," "))!="string"||e.length===0)return 0;e=KC(e);let t=0;for(let r=0;r<e.length;r++){let n=e.codePointAt(r);n<=31||n>=127&&n<=159||n>=768&&n<=879||(n>65535&&r++,t+=Sh(n)?2:1)}return t},Bh=Th,QC=Th;Bh.default=QC;var _u=e=>{if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},fs=e=>e[e.length-1],ms=typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{};function Ph(){throw new Error("setTimeout has not been defined")}function Nh(){throw new Error("clearTimeout has not been defined")}var pr=Ph,hr=Nh;function kh(e){if(pr===setTimeout)return setTimeout(e,0);if((pr===Ph||!pr)&&setTimeout)return pr=setTimeout,setTimeout(e,0);try{return pr(e,0)}catch{try{return pr.call(null,e,0)}catch{return pr.call(this,e,0)}}}typeof ms.setTimeout=="function"&&(pr=setTimeout),typeof ms.clearTimeout=="function"&&(hr=clearTimeout);var Mr,Kt=[],An=!1,Ri=-1;function ZC(){An&&Mr&&(An=!1,Mr.length?Kt=Mr.concat(Kt):Ri=-1,Kt.length&&Ih())}function Ih(){if(!An){var e=kh(ZC);An=!0;for(var t=Kt.length;t;){for(Mr=Kt,Kt=[];++Ri<t;)Mr&&Mr[Ri].run();Ri=-1,t=Kt.length}Mr=null,An=!1,function(r){if(hr===clearTimeout)return clearTimeout(r);if((hr===Nh||!hr)&&clearTimeout)return hr=clearTimeout,clearTimeout(r);try{hr(r)}catch{try{return hr.call(null,r)}catch{return hr.call(this,r)}}}(e)}}function Lh(e,t){this.fun=e,this.array=t}Lh.prototype.run=function(){this.fun.apply(null,this.array)};function Rr(){}var eb=Rr,tb=Rr,rb=Rr,nb=Rr,sb=Rr,ib=Rr,ab=Rr,xn=ms.performance||{},ub=xn.now||xn.mozNow||xn.msNow||xn.oNow||xn.webkitNow||function(){return new Date().getTime()},ob=new Date,Ae={nextTick:function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];Kt.push(new Lh(e,t)),Kt.length!==1||An||kh(Ih)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:eb,addListener:tb,once:rb,off:nb,removeListener:sb,removeAllListeners:ib,emit:ab,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*ub.call(xn),r=Math.floor(t),n=Math.floor(t%1*1e9);return e&&(r-=e[0],(n-=e[1])<0&&(r--,n+=1e9)),[r,n]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-ob)/1e3}},Ds=typeof Ae=="object"&&Ae.env&&Ae.env.NODE_DEBUG&&/\bsemver\b/i.test(Ae.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{},Oh={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16},dr=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Z(e,t,r){return e(r={path:t,exports:{},require:function(n,s){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(s==null&&r.path)}},r.exports),r.exports}function gs(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var cb=Z(function(e,t){let{MAX_SAFE_COMPONENT_LENGTH:r}=Oh,n=(t=e.exports={}).re=[],s=t.src=[],u=t.t={},c=0,o=(l,h,a)=>{let f=c++;Ds(f,h),u[l]=f,s[f]=h,n[f]=new RegExp(h,a?"g":void 0)};o("NUMERICIDENTIFIER","0|[1-9]\\d*"),o("NUMERICIDENTIFIERLOOSE","[0-9]+"),o("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),o("MAINVERSION","(".concat(s[u.NUMERICIDENTIFIER],")\\.")+"(".concat(s[u.NUMERICIDENTIFIER],")\\.")+"(".concat(s[u.NUMERICIDENTIFIER],")")),o("MAINVERSIONLOOSE","(".concat(s[u.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(s[u.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(s[u.NUMERICIDENTIFIERLOOSE],")")),o("PRERELEASEIDENTIFIER","(?:".concat(s[u.NUMERICIDENTIFIER],"|").concat(s[u.NONNUMERICIDENTIFIER],")")),o("PRERELEASEIDENTIFIERLOOSE","(?:".concat(s[u.NUMERICIDENTIFIERLOOSE],"|").concat(s[u.NONNUMERICIDENTIFIER],")")),o("PRERELEASE","(?:-(".concat(s[u.PRERELEASEIDENTIFIER],"(?:\\.").concat(s[u.PRERELEASEIDENTIFIER],")*))")),o("PRERELEASELOOSE","(?:-?(".concat(s[u.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(s[u.PRERELEASEIDENTIFIERLOOSE],")*))")),o("BUILDIDENTIFIER","[0-9A-Za-z-]+"),o("BUILD","(?:\\+(".concat(s[u.BUILDIDENTIFIER],"(?:\\.").concat(s[u.BUILDIDENTIFIER],")*))")),o("FULLPLAIN","v?".concat(s[u.MAINVERSION]).concat(s[u.PRERELEASE],"?").concat(s[u.BUILD],"?")),o("FULL","^".concat(s[u.FULLPLAIN],"$")),o("LOOSEPLAIN","[v=\\s]*".concat(s[u.MAINVERSIONLOOSE]).concat(s[u.PRERELEASELOOSE],"?").concat(s[u.BUILD],"?")),o("LOOSE","^".concat(s[u.LOOSEPLAIN],"$")),o("GTLT","((?:<|>)?=?)"),o("XRANGEIDENTIFIERLOOSE","".concat(s[u.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),o("XRANGEIDENTIFIER","".concat(s[u.NUMERICIDENTIFIER],"|x|X|\\*")),o("XRANGEPLAIN","[v=\\s]*(".concat(s[u.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(s[u.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(s[u.XRANGEIDENTIFIER],")")+"(?:".concat(s[u.PRERELEASE],")?").concat(s[u.BUILD],"?")+")?)?"),o("XRANGEPLAINLOOSE","[v=\\s]*(".concat(s[u.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(s[u.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(s[u.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(s[u.PRERELEASELOOSE],")?").concat(s[u.BUILD],"?")+")?)?"),o("XRANGE","^".concat(s[u.GTLT],"\\s*").concat(s[u.XRANGEPLAIN],"$")),o("XRANGELOOSE","^".concat(s[u.GTLT],"\\s*").concat(s[u.XRANGEPLAINLOOSE],"$")),o("COERCE","".concat("(^|[^\\d])(\\d{1,").concat(r,"})")+"(?:\\.(\\d{1,".concat(r,"}))?")+"(?:\\.(\\d{1,".concat(r,"}))?")+"(?:$|[^\\d])"),o("COERCERTL",s[u.COERCE],!0),o("LONETILDE","(?:~>?)"),o("TILDETRIM","(\\s*)".concat(s[u.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",o("TILDE","^".concat(s[u.LONETILDE]).concat(s[u.XRANGEPLAIN],"$")),o("TILDELOOSE","^".concat(s[u.LONETILDE]).concat(s[u.XRANGEPLAINLOOSE],"$")),o("LONECARET","(?:\\^)"),o("CARETTRIM","(\\s*)".concat(s[u.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",o("CARET","^".concat(s[u.LONECARET]).concat(s[u.XRANGEPLAIN],"$")),o("CARETLOOSE","^".concat(s[u.LONECARET]).concat(s[u.XRANGEPLAINLOOSE],"$")),o("COMPARATORLOOSE","^".concat(s[u.GTLT],"\\s*(").concat(s[u.LOOSEPLAIN],")$|^$")),o("COMPARATOR","^".concat(s[u.GTLT],"\\s*(").concat(s[u.FULLPLAIN],")$|^$")),o("COMPARATORTRIM","(\\s*)".concat(s[u.GTLT],"\\s*(").concat(s[u.LOOSEPLAIN],"|").concat(s[u.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",o("HYPHENRANGE","^\\s*(".concat(s[u.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(s[u.XRANGEPLAIN],")")+"\\s*$"),o("HYPHENRANGELOOSE","^\\s*(".concat(s[u.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(s[u.XRANGEPLAINLOOSE],")")+"\\s*$"),o("STAR","(<|>)?=?\\s*\\*"),o("GTE0","^\\s*>=\\s*0.0.0\\s*$"),o("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")}),Mh=/^[0-9]+$/,Rh=(e,t)=>{let r=Mh.test(e),n=Mh.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},lb={compareIdentifiers:Rh,rcompareIdentifiers:(e,t)=>Rh(t,e)},{MAX_LENGTH:jh,MAX_SAFE_INTEGER:ji}=Oh,{re:_h,t:Uh}=cb,{compareIdentifiers:ys}=lb,ft=class{constructor(t,r){if(r&&typeof r=="object"||(r={loose:!!r,includePrerelease:!1}),t instanceof ft){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError("Invalid Version: ".concat(t));if(t.length>jh)throw new TypeError("version is longer than ".concat(jh," characters"));Ds("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=t.trim().match(r.loose?_h[Uh.LOOSE]:_h[Uh.FULL]);if(!n)throw new TypeError("Invalid Version: ".concat(t));if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>ji||this.major<0)throw new TypeError("Invalid major version");if(this.minor>ji||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>ji||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let u=+s;if(u>=0&&u<ji)return u}return s}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version="".concat(this.major,".").concat(this.minor,".").concat(this.patch),this.prerelease.length&&(this.version+="-".concat(this.prerelease.join("."))),this.version}toString(){return this.version}compare(t){if(Ds("SemVer.compare",this.version,this.options,t),!(t instanceof ft)){if(typeof t=="string"&&t===this.version)return 0;t=new ft(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof ft||(t=new ft(t,this.options)),ys(this.major,t.major)||ys(this.minor,t.minor)||ys(this.patch,t.patch)}comparePre(t){if(t instanceof ft||(t=new ft(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],s=t.prerelease[r];if(Ds("prerelease compare",r,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n!==s)return ys(n,s)}while(++r)}compareBuild(t){t instanceof ft||(t=new ft(t,this.options));let r=0;do{let n=this.build[r],s=t.build[r];if(Ds("prerelease compare",r,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n!==s)return ys(n,s)}while(++r)}inc(t,r){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r),this.inc("pre",r);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r),this.inc("pre",r);break;case"major":this.minor===0&&this.patch===0&&this.prerelease.length!==0||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":this.patch===0&&this.prerelease.length!==0||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{let n=this.prerelease.length;for(;--n>=0;)typeof this.prerelease[n]=="number"&&(this.prerelease[n]++,n=-2);n===-1&&this.prerelease.push(0)}r&&(this.prerelease[0]===r?isNaN(this.prerelease[1])&&(this.prerelease=[r,0]):this.prerelease=[r,0]);break;default:throw new Error("invalid increment argument: ".concat(t))}return this.format(),this.raw=this.version,this}},qh=ft,Uu=(e,t,r)=>new qh(e,r).compare(new qh(t,r)),pb=(e,t,r)=>Uu(e,t,r)<0,hb=(e,t,r)=>Uu(e,t,r)>=0,db=Z(function(e,t){function r(){for(var A=[],C=0;C<arguments.length;C++)A[C]=arguments[C]}function n(){return typeof WeakMap!="undefined"?new WeakMap:{add:r,delete:r,get:r,set:r,has:function(A){return!1}}}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.prototype.hasOwnProperty,u=function(A,C){return s.call(A,C)};function c(A,C){for(var F in C)u(C,F)&&(A[F]=C[F]);return A}var o=/^[ \t]*(?:\r\n|\r|\n)/,l=/(?:\r\n|\r|\n)[ \t]*$/,h=/^(?:[\r\n]|$)/,a=/(?:\r\n|\r|\n)([ \t]*)(?:[^ \t\r\n]|$)/,f=/^[ \t]*[\r\n][ \t\r\n]*$/;function m(A,C,F){var w=0,B=A[0].match(a);B&&(w=B[1].length);var T=new RegExp("(\\r\\n|\\r|\\n).{0,"+w+"}","g");C&&(A=A.slice(1));var P=F.newline,v=F.trimLeadingNewline,_=F.trimTrailingNewline,O=typeof P=="string",M=A.length;return A.map(function(q,j){return q=q.replace(T,"$1"),j===0&&v&&(q=q.replace(o,"")),j===M-1&&_&&(q=q.replace(l,"")),O&&(q=q.replace(/\r\n|\n|\r/g,function(W){return P})),q})}function E(A,C){for(var F="",w=0,B=A.length;w<B;w++)F+=A[w],w<B-1&&(F+=C[w]);return F}function g(A){return u(A,"raw")&&u(A,"length")}var b=function A(C){var F=n(),w=n();return c(function B(T){for(var P=[],v=1;v<arguments.length;v++)P[v-1]=arguments[v];if(g(T)){var _=T,O=(P[0]===B||P[0]===b)&&f.test(_[0])&&h.test(_[1]),M=O?w:F,q=M.get(_);if(q||(q=m(_,O,C),M.set(_,q)),P.length===0)return q[0];var j=E(q,O?P.slice(1):P);return j}return A(c(c({},C),T||{}))},{string:function(B){return m([B],!1,C)[0]}})}({trimLeadingNewline:!0,trimTrailingNewline:!0});t.outdent=b,t.default=b;try{e.exports=b,Object.defineProperty(b,"__esModule",{value:!0}),b.default=b,b.outdent=b}catch{}});function $h(){let e=En([
Require either '@prettier' or '@format' to be present in the file's first docblock comment
in order for it to be formatted.
]);return $h=function(){return e},e}function Vh(){let e=En([
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.
]);return Vh=function(){return e},e}function Wh(){let e=En([
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.
]);return Wh=function(){return e},e}function zh(){let e=En([
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.
]);return zh=function(){return e},e}function Hh(){let e=En([
Maintain existing
(mixed values within one file are normalised by looking at what's used after the first line)
]);return Hh=function(){return e},e}function Gh(){let e=En([
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.
]);return Gh=function(){return e},e}var{outdent:Fn}=db,fb={cursorOffset:{since:"1.4.0",category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:Fn(Gh()),cliCategory:"Editor"},endOfLine:{since:"1.15.0",category:"Global",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:Fn(Hh())}]},filepath:{since:"1.4.0",category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{since:"1.8.0",category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{since:"0.0.10",category:"Global",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:null,description:"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:"Global",description:"Add a plugin. Multiple plugins can be passed as separate --plugins.",exception:e=>typeof e=="string"||typeof e=="object",cliName:"plugin",cliCategory:"Config"},pluginSearchDirs:{since:"1.13.0",type:"path",array:!0,default:[{value:[]}],category:"Global",description:Fn(zh()),exception:e=>typeof e=="string"||typeof e=="object",cliName:"plugin-search-dir",cliCategory:"Config"},printWidth:{since:"0.0.0",category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{since:"1.4.0",category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:Fn(Wh()),cliCategory:"Editor"},rangeStart:{since:"1.4.0",category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:Fn(Vh()),cliCategory:"Editor"},requirePragma:{since:"1.7.0",category:"Special",type:"boolean",default:!1,description:Fn($h()),cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{since:"1.0.0",category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{since:"2.1.0",category:"Global",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."}]}},qu={compare:Uu,lt:pb,gte:hb},mb=ih.version,Db=fb,$u={getSupportInfo:function({plugins:e=[],showUnreleased:t=!1,showDeprecated:r=!1,showInternal:n=!1}={}){let s=mb.split("-",1)[0],u=e.reduce((h,a)=>h.concat(a.languages||[]),[]).filter(o),c=((h,a)=>Object.entries(h).map(([f,m])=>Object.assign({[a]:f},m)))(Object.assign({},...e.map(({options:h})=>h),Db),"name").filter(h=>o(h)&&l(h)).sort((h,a)=>h.name===a.name?0:h.name<a.name?-1:1).map(function(h){return n?h:Bi(h,["cliName","cliCategory","cliDescription"])}).map(h=>{h=Object.assign({},h),Array.isArray(h.default)&&(h.default=h.default.length===1?h.default[0].value:h.default.filter(o).sort((f,m)=>qu.compare(m.since,f.since))[0].value),Array.isArray(h.choices)&&(h.choices=h.choices.filter(f=>o(f)&&l(f)),h.name==="parser"&&function(f,m,E){let g=new Set(f.choices.map(b=>b.value));for(let b of m)if(b.parsers){for(let A of b.parsers)if(!g.has(A)){g.add(A);let C=E.find(w=>w.parsers&&w.parsers[A]),F=b.name;C&&C.name&&(F+=" (plugin: ".concat(C.name,")")),f.choices.push({value:A,description:F})}}}(h,u,e));let a=e.filter(f=>f.defaultOptions&&f.defaultOptions[h.name]!==void 0).reduce((f,m)=>(f[m.name]=m.defaultOptions[h.name],f),{});return Object.assign({},h,{pluginDefaults:a})});return{languages:u,options:c};function o(h){return t||!("since"in h)||h.since&&qu.gte(s,h.since)}function l(h){return r||!("deprecated"in h)||h.deprecated&&qu.lt(s,h.deprecated)}}},{getSupportInfo:gb}=$u,yb=/[^\x20-\x7F]/;function Es(e){return(t,r,n)=>{let s=n&&n.backwards;if(r===!1)return!1;let{length:u}=t,c=r;for(;c>=0&&c<u;){let o=t.charAt(c);if(e instanceof RegExp){if(!e.test(o))return c}else if(!e.includes(o))return c;s?c--:c++}return(c===-1||c===u)&&c}}var Eb=Es(/\s/),jr=Es(" "),Jh=Es(",; "),Xh=Es(/[^\n\r]/);function Vu(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 Wu(e,t){return t!==!1&&(e.charAt(t)==="/"&&e.charAt(t+1)==="/"?Xh(e,t):t)}function vn(e,t,r){let n=r&&r.backwards;if(t===!1)return!1;let s=e.charAt(t);if(n){if(e.charAt(t-1)==="\r"&&s===
)return t-2;if(s===
||s==="\r"||s==="\u2028"||s==="\u2029")return t-1}else{if(s==="\r"&&e.charAt(t+1)===
)return t+2;if(s===
||s==="\r"||s==="\u2028"||s==="\u2029")return t+1}return t}function Kh(e,t,r){let n=jr(e,(r=r||{}).backwards?t-1:t,r);return n!==vn(e,n,r)}function Yh(e,t){let r=null,n=t;for(;n!==r;)r=n,n=Jh(e,n),n=Vu(e,n),n=jr(e,n);return n=Wu(e,n),n=vn(e,n),n!==!1&&Kh(e,n)}function Qh(e,t){let r=null,n=t;for(;n!==r;)r=n,n=jr(e,n),n=Vu(e,n),n=Wu(e,n),n=vn(e,n);return n}function Zh(e,t,r){return Qh(e,r(t))}function e0(e,t,r){let n=0;for(let s=r=r||0;s<e.length;++s)e[s]===" "?n=n+t-n%t:n++;return n}function t0(e,t){let r=e.slice(1,-1),n={quote:'"',regex:/"/g},s={quote:"'",regex:/'/g},u=t==="'"?s:n,c=u===s?n:s,o=u.quote;return(r.includes(u.quote)||r.includes(c.quote))&&(o=(r.match(u.regex)||[]).length>(r.match(c.regex)||[]).length?c.quote:u.quote),o}function r0(e,t,r){let n=t==='"'?"'":'"',s=e.replace(/\\([\S\s])|(["'])/g,(u,c,o)=>c===n?c:o===t?"\\"+o:o||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(c)?c:"\\"+c));return t+s+t}function zu(e,t){(e.comments||(e.comments=[])).push(t),t.printed=!1,e.type==="JSXText"&&(t.printed=!0)}var ce={inferParserByLanguage:function(e,t){let{languages:r}=gb({plugins:t.plugins}),n=r.find(({name:s})=>s.toLowerCase()===e)||r.find(({aliases:s})=>Array.isArray(s)&&s.includes(e))||r.find(({extensions:s})=>Array.isArray(s)&&s.includes(".".concat(e)));return n&&n.parsers[0]},replaceEndOfLineWith:function(e,t){let r=[];for(let n of e.split(
))r.length!==0&&r.push(t),r.push(n);return r},getStringWidth:function(e){return e?yb.test(e)?Bh(e):e.length:0},getMaxContinuousCount:function(e,t){let r=e.match(new RegExp("(".concat(_u(t),")+"),"g"));return r===null?0:r.reduce((n,s)=>Math.max(n,s.length/t.length),0)},getMinNotPresentContinuousCount:function(e,t){let r=e.match(new RegExp("(".concat(_u(t),")+"),"g"));if(r===null)return 0;let n=new Map,s=0;for(let u of r){let c=u.length/t.length;n.set(c,!0),c>s&&(s=c)}for(let u=1;u<s;u++)if(!n.get(u))return u;return s+1},getPenultimate:e=>e[e.length-2],getLast:fs,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:Qh,getNextNonSpaceNonCommentCharacterIndex:Zh,getNextNonSpaceNonCommentCharacter:function(e,t,r){return e.charAt(Zh(e,t,r))},skip:Es,skipWhitespace:Eb,skipSpaces:jr,skipToLineEnd:Jh,skipEverythingButNewLine:Xh,skipInlineComment:Vu,skipTrailingComment:Wu,skipNewline:vn,isNextLineEmptyAfterIndex:Yh,isNextLineEmpty:function(e,t,r){return Yh(e,r(t))},isPreviousLineEmpty:function(e,t,r){let n=r(t)-1;return n=jr(e,n,{backwards:!0}),n=vn(e,n,{backwards:!0}),n=jr(e,n,{backwards:!0}),n!==vn(e,n,{backwards:!0})},hasNewline:Kh,hasNewlineInRange:function(e,t,r){for(let n=t;n<r;++n)if(e.charAt(n)===
)return!0;return!1},hasSpaces:function(e,t,r){return jr(e,(r=r||{}).backwards?t-1:t,r)!==t},getAlignmentSize:e0,getIndentSize:function(e,t){let r=e.lastIndexOf(
);return r===-1?0:e0(e.slice(r+1).match(/^[\t ]*/)[0],t)},getPreferredQuote:t0,printString:function(e,t,r){let n=e.slice(1,-1),s=!n.includes('"')&&!n.includes("'"),u=t.parser==="json"?'"':t.__isInHtmlAttribute?"'":t0(e,t.singleQuote?"'":'"');return r?s?u+n+u:e:r0(n,u,!(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|$)/,"")},isNodeIgnoreComment:function(e){return e.value.trim()==="prettier-ignore"},makeString:r0,addLeadingComment:function(e,t){t.leading=!0,t.trailing=!1,zu(e,t)},addDanglingComment:function(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),zu(e,t)},addTrailingComment:function(e,t){t.leading=!1,t.trailing=!0,zu(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)}},Hu={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,
)}},{getStringWidth:n0}=ce,{convertEndOfLineToChars:Cb}=Hu,{concat:bb,fill:Ab,cursor:Gu}=ju,Cs;function s0(e,t){return Ju(e,{type:"indent"},t)}function i0(e,t,r){return t===-1/0?e.root||{value:"",length:0,queue:[]}:t<0?Ju(e,{type:"dedent"},r):t?t.type==="root"?Object.assign({},e,{root:e}):Ju(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},r):e}function Ju(e,t,r){let n=t.type==="dedent"?e.queue.slice(0,-1):e.queue.concat(t),s="",u=0,c=0,o=0;for(let E of n)switch(E.type){case"indent":a(),r.useTabs?l(1):h(r.tabWidth);break;case"stringAlign":a(),s+=E.n,u+=E.n.length;break;case"numberAlign":c+=1,o+=E.n;break;default:throw new Error("Unexpected type '".concat(E.type,"'"))}return f(),Object.assign({},e,{value:s,length:u,queue:n});function l(E){s+=" ".repeat(E),u+=r.tabWidth*E}function h(E){s+=" ".repeat(E),u+=E}function a(){r.useTabs?function(){c>0&&l(c),m()}():f()}function f(){o>0&&h(o),m()}function m(){c=0,o=0}}function Xu(e){if(e.length===0)return 0;let t=0;for(;e.length>0&&typeof e[e.length-1]=="string"&&e[e.length-1].match(/^[\t ]*$/);)t+=e.pop().length;if(e.length&&typeof e[e.length-1]=="string"){let r=e[e.length-1].replace(/[\t ]*$/,"");t+=e[e.length-1].length-r.length,e[e.length-1]=r}return t}function _i(e,t,r,n,s){let u=t.length,c=[e],o=[];for(;r>=0;){if(c.length===0){if(u===0)return!0;c.push(t[u-1]),u--;continue}let[l,h,a]=c.pop();if(typeof a=="string")o.push(a),r-=n0(a);else switch(a.type){case"concat":for(let f=a.parts.length-1;f>=0;f--)c.push([l,h,a.parts[f]]);break;case"indent":c.push([s0(l,n),h,a.contents]);break;case"align":c.push([i0(l,a.n,n),h,a.contents]);break;case"trim":r+=Xu(o);break;case"group":if(s&&a.break)return!1;c.push([l,a.break?1:h,a.contents]),a.id&&(Cs[a.id]=c[c.length-1][1]);break;case"fill":for(let f=a.parts.length-1;f>=0;f--)c.push([l,h,a.parts[f]]);break;case"if-break":{let f=a.groupId?Cs[a.groupId]:h;f===1&&a.breakContents&&c.push([l,h,a.breakContents]),f===2&&a.flatContents&&c.push([l,h,a.flatContents]);break}case"line":switch(h){case 2:if(!a.hard){a.soft||(o.push(" "),r-=1);break}return!0;case 1:return!0}}}return!1}var xb={printDocToString:function(e,t){Cs={};let r=t.printWidth,n=Cb(t.endOfLine),s=0,u=[[{value:"",length:0,queue:[]},1,e]],c=[],o=!1,l=[];for(;u.length!==0;){let[a,f,m]=u.pop();if(typeof m=="string"){let E=n!==
&&m.includes(
)?m.replace(/\n/g,n):m;c.push(E),s+=n0(E)}else switch(m.type){case"cursor":c.push(Gu.placeholder);break;case"concat":for(let E=m.parts.length-1;E>=0;E--)u.push([a,f,m.parts[E]]);break;case"indent":u.push([s0(a,t),f,m.contents]);break;case"align":u.push([i0(a,m.n,t),f,m.contents]);break;case"trim":s-=Xu(c);break;case"group":switch(f){case 2:if(!o){u.push([a,m.break?1:2,m.contents]);break}case 1:{o=!1;let E=[a,2,m.contents],g=r-s;if(!m.break&&_i(E,u,g,t))u.push(E);else if(m.expandedStates){let b=m.expandedStates[m.expandedStates.length-1];if(m.break){u.push([a,1,b]);break}for(let A=1;A<m.expandedStates.length+1;A++){if(A>=m.expandedStates.length){u.push([a,1,b]);break}{let C=[a,2,m.expandedStates[A]];if(_i(C,u,g,t)){u.push(C);break}}}}else u.push([a,1,m.contents]);break}}m.id&&(Cs[m.id]=u[u.length-1][1]);break;case"fill":{let E=r-s,{parts:g}=m;if(g.length===0)break;let[b,A]=g,C=[a,2,b],F=[a,1,b],w=_i(C,[],E,t,!0);if(g.length===1){w?u.push(C):u.push(F);break}let B=[a,2,A],T=[a,1,A];if(g.length===2){w?(u.push(B),u.push(C)):(u.push(T),u.push(F));break}g.splice(0,2);let P=[a,f,Ab(g)],v=g[0];_i([a,2,bb([b,A,v])],[],E,t,!0)?(u.push(P),u.push(B),u.push(C)):w?(u.push(P),u.push(T),u.push(C)):(u.push(P),u.push(T),u.push(F));break}case"if-break":{let E=m.groupId?Cs[m.groupId]:f;E===1&&m.breakContents&&u.push([a,f,m.breakContents]),E===2&&m.flatContents&&u.push([a,f,m.flatContents]);break}case"line-suffix":l.push([a,f,m.contents]);break;case"line-suffix-boundary":l.length>0&&u.push([a,f,{type:"line",hard:!0}]);break;case"line":switch(f){case 2:if(!m.hard){m.soft||(c.push(" "),s+=1);break}o=!0;case 1:if(l.length){u.push([a,f,m]),u.push(...l.reverse()),l=[];break}m.literal?a.root?(c.push(n,a.root.value),s=a.root.length):(c.push(n),s=0):(s-=Xu(c),c.push(n+a.value),s=a.length)}}u.length===0&&l.length&&(u.push(...l.reverse()),l=[])}let h=c.indexOf(Gu.placeholder);if(h!==-1){let a=c.indexOf(Gu.placeholder,h+1),f=c.slice(0,h).join(""),m=c.slice(h+1,a).join("");return{formatted:f+m+c.slice(a+1).join(""),cursorNodeStart:f.length,cursorNodeText:m}}return{formatted:c.join("")}}},{literalline:Fb,concat:vb}=ju,a0={};function Ku(e,t,r,n){let s=[e];for(;s.length!==0;){let u=s.pop();if(u!==a0){if(r&&s.push(u,a0),!t||t(u)!==!1)if(u.type==="concat"||u.type==="fill")for(let c=u.parts.length-1;c>=0;--c)s.push(u.parts[c]);else if(u.type==="if-break")u.flatContents&&s.push(u.flatContents),u.breakContents&&s.push(u.breakContents);else if(u.type==="group"&&u.expandedStates)if(n)for(let c=u.expandedStates.length-1;c>=0;--c)s.push(u.expandedStates[c]);else s.push(u.contents);else u.contents&&s.push(u.contents)}else r(s.pop())}}function fr(e,t){if(e.type==="concat"||e.type==="fill"){let r=e.parts.map(n=>fr(n,t));return t(Object.assign({},e,{parts:r}))}if(e.type==="if-break"){let r=e.breakContents&&fr(e.breakContents,t),n=e.flatContents&&fr(e.flatContents,t);return t(Object.assign({},e,{breakContents:r,flatContents:n}))}if(e.contents){let r=fr(e.contents,t);return t(Object.assign({},e,{contents:r}))}return t(e)}function Yu(e,t,r){let n=r,s=!1;return Ku(e,function(u){let c=t(u);if(c!==void 0&&(s=!0,n=c),s)return!1}),n}function wb(e){return typeof e!="string"&&(e.type==="line"||void 0)}function Sb(e){return!(e.type!=="group"||!e.break)||!(e.type!=="line"||!e.hard)||e.type==="break-parent"||void 0}function u0(e){if(e.length>0){let t=e[e.length-1];t.expandedStates||(t.break=!0)}return null}function Tb(e){return e.type!=="line"||e.hard?e.type==="if-break"?e.flatContents||"":e:e.soft?"":" "}function o0(e){let t=[],r=e.filter(Boolean);for(;r.length!==0;){let n=r.shift();n&&(n.type!=="concat"?t.length===0||typeof t[t.length-1]!="string"||typeof n!="string"?t.push(n):t[t.length-1]+=n:r.unshift(...n.parts))}return t}function mr(e){if(e.type==="concat"){let t=[];for(let r=0;r<e.parts.length;++r){let n=e.parts[r];if(typeof n!="string"&&n.type==="concat")t.push(...mr(n).parts);else{let s=mr(n);s!==""&&t.push(s)}}return Object.assign({},e,{parts:t})}return e.type==="if-break"?Object.assign({},e,{breakContents:e.breakContents!=null?mr(e.breakContents):null,flatContents:e.flatContents!=null?mr(e.flatContents):null}):e.type==="group"?Object.assign({},e,{contents:mr(e.contents),expandedStates:e.expandedStates?e.expandedStates.map(mr):e.expandedStates}):e.contents?Object.assign({},e,{contents:mr(e.contents)}):e}function ot(e){if(typeof e=="string")return JSON.stringify(e);if(e.type==="line")return e.literal?"literalline":e.hard?"hardline":e.soft?"softline":"line";if(e.type==="break-parent")return"breakParent";if(e.type==="trim")return"trim";if(e.type==="concat")return"["+e.parts.map(ot).join(", ")+"]";if(e.type==="indent")return"indent("+ot(e.contents)+")";if(e.type==="align")return e.n===-1/0?"dedentToRoot("+ot(e.contents)+")":e.n<0?"dedent("+ot(e.contents)+")":e.n.type==="root"?"markAsRoot("+ot(e.contents)+")":"align("+JSON.stringify(e.n)+", "+ot(e.contents)+")";if(e.type==="if-break")return"ifBreak("+ot(e.breakContents)+(e.flatContents?", "+ot(e.flatContents):"")+")";if(e.type==="group")return e.expandedStates?"conditionalGroup(["+e.expandedStates.map(ot).join(",")+"])":(e.break?"wrappedGroup":"group")+"("+ot(e.contents)+")";if(e.type==="fill")return"fill("+e.parts.map(ot).join(", ")+")";if(e.type==="line-suffix")return"lineSuffix("+ot(e.contents)+")";if(e.type==="line-suffix-boundary")return"lineSuffixBoundary";throw new Error("Unknown doc type "+e.type)}var te={builders:ju,printer:xb,utils:{isEmpty:function(e){return typeof e=="string"&&e.length===0},willBreak:function(e){return Yu(e,Sb,!1)},isLineNext:function(e){return Yu(e,wb,!1)},traverseDoc:Ku,findInDoc:Yu,mapDoc:fr,propagateBreaks:function(e){let t=new Set,r=[];Ku(e,function(n){if(n.type==="break-parent"&&u0(r),n.type==="group"){if(r.push(n),t.has(n))return!1;t.add(n)}},function(n){n.type==="group"&&r.pop().break&&u0(r)},!0)},removeLines:function(e){return fr(e,Tb)},stripTrailingHardline:function e(t,r=!1){if(t.type==="concat"&&t.parts.length!==0){let n=r?function(u){let c,{parts:o}=u;for(let l=u.parts.length;l>0&&!c;l--)c=o[l-1];return c.type==="group"&&(o=c.contents.parts),o}(t):t.parts,s=n[n.length-1];if(s.type==="concat")return s.parts.length===2&&s.parts[0].hard&&s.parts[1].type==="break-parent"?{type:"concat",parts:n.slice(0,-1)}:{type:"concat",parts:t.parts.slice(0,-1).concat(e(s))}}return t},normalizeParts:o0,normalizeDoc:function(e){return fr(e,t=>t.parts?Object.assign({},t,{parts:o0(t.parts)}):t)},replaceNewlinesWithLiterallines:function(e){return fr(e,t=>typeof t=="string"&&t.includes(
)?vb(t.split(/(\n)/g).map((r,n)=>n%2==0?r:Fb)):t)}},debug:{printDocToDebug:e=>ot(mr(e))}},c0=()=>!1,l0=()=>"",Bb={existsSync:c0,readFileSync:l0},Pb=Object.freeze({__proto__:null,existsSync:c0,readFileSync:l0,default:Bb});function Ot(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function p0(e,t){for(var r,n="",s=0,u=-1,c=0,o=0;o<=e.length;++o){if(o<e.length)r=e.charCodeAt(o);else{if(r===47)break;r=47}if(r===47){if(!(u===o-1||c===1))if(u!==o-1&&c===2){if(n.length<2||s!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){var l=n.lastIndexOf("/");if(l!==n.length-1){l===-1?(n="",s=0):s=(n=n.slice(0,l)).length-1-n.lastIndexOf("/"),u=o,c=0;continue}}else if(n.length===2||n.length===1){n="",s=0,u=o,c=0;continue}}t&&(n.length>0?n+="/..":n="..",s=2)}else n.length>0?n+="/"+e.slice(u+1,o):n=e.slice(u+1,o),s=o-u-1;u=o,c=0}else r===46&&c!==-1?++c:c=-1}return n}var wn={resolve:function(){for(var e,t="",r=!1,n=arguments.length-1;n>=-1&&!r;n--){var s;n>=0?s=arguments[n]:(e===void 0&&(e=Ae.cwd()),s=e),Ot(s),s.length!==0&&(t=s+"/"+t,r=s.charCodeAt(0)===47)}return t=p0(t,!r),r?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(Ot(e),e.length===0)return".";var t=e.charCodeAt(0)===47,r=e.charCodeAt(e.length-1)===47;return(e=p0(e,!t)).length!==0||t||(e="."),e.length>0&&r&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return Ot(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,t=0;t<arguments.length;++t){var r=arguments[t];Ot(r),r.length>0&&(e===void 0?e=r:e+="/"+r)}return e===void 0?".":wn.normalize(e)},relative:function(e,t){if(Ot(e),Ot(t),e===t||(e=wn.resolve(e))===(t=wn.resolve(t)))return"";for(var r=1;r<e.length&&e.charCodeAt(r)===47;++r);for(var n=e.length,s=n-r,u=1;u<t.length&&t.charCodeAt(u)===47;++u);for(var c=t.length-u,o=s<c?s:c,l=-1,h=0;h<=o;++h){if(h===o){if(c>o){if(t.charCodeAt(u+h)===47)return t.slice(u+h+1);if(h===0)return t.slice(u+h)}else s>o&&(e.charCodeAt(r+h)===47?l=h:h===0&&(l=0));break}var a=e.charCodeAt(r+h);if(a!==t.charCodeAt(u+h))break;a===47&&(l=h)}var f="";for(h=r+l+1;h<=n;++h)h!==n&&e.charCodeAt(h)!==47||(f.length===0?f+="..":f+="/..");return f.length>0?f+t.slice(u+l):(u+=l,t.charCodeAt(u)===47&&++u,t.slice(u))},_makeLong:function(e){return e},dirname:function(e){if(Ot(e),e.length===0)return".";for(var t=e.charCodeAt(0),r=t===47,n=-1,s=!0,u=e.length-1;u>=1;--u)if((t=e.charCodeAt(u))===47){if(!s){n=u;break}}else s=!1;return n===-1?r?"/":".":r&&n===1?"//":e.slice(0,n)},basename:function(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Ot(e);var r,n=0,s=-1,u=!0;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var c=t.length-1,o=-1;for(r=e.length-1;r>=0;--r){var l=e.charCodeAt(r);if(l===47){if(!u){n=r+1;break}}else o===-1&&(u=!1,o=r+1),c>=0&&(l===t.charCodeAt(c)?--c==-1&&(s=r):(c=-1,s=o))}return n===s?s=o:s===-1&&(s=e.length),e.slice(n,s)}for(r=e.length-1;r>=0;--r)if(e.charCodeAt(r)===47){if(!u){n=r+1;break}}else s===-1&&(u=!1,s=r+1);return s===-1?"":e.slice(n,s)},extname:function(e){Ot(e);for(var t=-1,r=0,n=-1,s=!0,u=0,c=e.length-1;c>=0;--c){var o=e.charCodeAt(c);if(o!==47)n===-1&&(s=!1,n=c+1),o===46?t===-1?t=c:u!==1&&(u=1):t!==-1&&(u=-1);else if(!s){r=c+1;break}}return t===-1||n===-1||u===0||u===1&&t===n-1&&t===r+1?"":e.slice(t,n)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(t,r){var n=r.dir||r.root,s=r.base||(r.name||"")+(r.ext||"");return n?n===r.root?n+s:n+t+s:s}("/",e)},parse:function(e){Ot(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;var r,n=e.charCodeAt(0),s=n===47;s?(t.root="/",r=1):r=0;for(var u=-1,c=0,o=-1,l=!0,h=e.length-1,a=0;h>=r;--h)if((n=e.charCodeAt(h))!==47)o===-1&&(l=!1,o=h+1),n===46?u===-1?u=h:a!==1&&(a=1):u!==-1&&(a=-1);else if(!l){c=h+1;break}return u===-1||o===-1||a===0||a===1&&u===o-1&&u===c+1?o!==-1&&(t.base=t.name=c===0&&s?e.slice(1,o):e.slice(c,o)):(c===0&&s?(t.name=e.slice(1,u),t.base=e.slice(1,o)):(t.name=e.slice(c,u),t.base=e.slice(c,o)),t.ext=e.slice(u,o)),c>0?t.dir=e.slice(0,c-1):s&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};wn.posix=wn;var Qu=wn,Nb=Object.freeze(Object.assign(Object.create(null),Qu,{default:Qu,__moduleExports:Qu})),Mt=[],mt=[],kb=typeof Uint8Array!="undefined"?Uint8Array:Array,Zu=!1;function h0(){Zu=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,r=e.length;t<r;++t)Mt[t]=e[t],mt[e.charCodeAt(t)]=t;mt["-".charCodeAt(0)]=62,mt["_".charCodeAt(0)]=63}function Ib(e,t,r){for(var n,s,u=[],c=t;c<r;c+=3)n=(e[c]<<16)+(e[c+1]<<8)+e[c+2],u.push(Mt[(s=n)>>18&63]+Mt[s>>12&63]+Mt[s>>6&63]+Mt[63&s]);return u.join("")}function d0(e){var t;Zu||h0();for(var r=e.length,n=r%3,s="",u=[],c=16383,o=0,l=r-n;o<l;o+=c)u.push(Ib(e,o,o+c>l?l:o+c));return n===1?(t=e[r-1],s+=Mt[t>>2],s+=Mt[t<<4&63],s+="=="):n===2&&(t=(e[r-2]<<8)+e[r-1],s+=Mt[t>>10],s+=Mt[t>>4&63],s+=Mt[t<<2&63],s+="="),u.push(s),u.join("")}function Ui(e,t,r,n,s){var u,c,o=8*s-n-1,l=(1<<o)-1,h=l>>1,a=-7,f=r?s-1:0,m=r?-1:1,E=e[t+f];for(f+=m,u=E&(1<<-a)-1,E>>=-a,a+=o;a>0;u=256*u+e[t+f],f+=m,a-=8);for(c=u&(1<<-a)-1,u>>=-a,a+=n;a>0;c=256*c+e[t+f],f+=m,a-=8);if(u===0)u=1-h;else{if(u===l)return c?NaN:1/0*(E?-1:1);c+=Math.pow(2,n),u-=h}return(E?-1:1)*c*Math.pow(2,u-n)}function f0(e,t,r,n,s,u){var c,o,l,h=8*u-s-1,a=(1<<h)-1,f=a>>1,m=s===23?Math.pow(2,-24)-Math.pow(2,-77):0,E=n?0:u-1,g=n?1:-1,b=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,c=a):(c=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-c))<1&&(c--,l*=2),(t+=c+f>=1?m/l:m*Math.pow(2,1-f))*l>=2&&(c++,l/=2),c+f>=a?(o=0,c=a):c+f>=1?(o=(t*l-1)*Math.pow(2,s),c+=f):(o=t*Math.pow(2,f-1)*Math.pow(2,s),c=0));s>=8;e[r+E]=255&o,E+=g,o/=256,s-=8);for(c=c<<s|o,h+=s;h>0;e[r+E]=255&c,E+=g,c/=256,h-=8);e[r+E-g]|=128*b}var Lb={}.toString,m0=Array.isArray||function(e){return Lb.call(e)=="[object Array]"};function eo(){return R.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Yt(e,t){if(eo()<t)throw new RangeError("Invalid typed array length");return R.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=R.prototype:(e===null&&(e=new R(t)),e.length=t),e}function R(e,t,r){if(!(R.TYPED_ARRAY_SUPPORT||this instanceof R))return new R(e,t,r);if(typeof e=="number"){if(typeof t=="string")throw new Error("If encoding is specified then the first argument must be a string");return to(this,e)}return D0(this,e,t,r)}function D0(e,t,r,n){if(typeof t=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&t instanceof ArrayBuffer?function(s,u,c,o){if(u.byteLength,c<0||u.byteLength<c)throw new RangeError("'offset' is out of bounds");if(u.byteLength<c+(o||0))throw new RangeError("'length' is out of bounds");return u=c===void 0&&o===void 0?new Uint8Array(u):o===void 0?new Uint8Array(u,c):new Uint8Array(u,c,o),R.TYPED_ARRAY_SUPPORT?(s=u).__proto__=R.prototype:s=ro(s,u),s}(e,t,r,n):typeof t=="string"?function(s,u,c){if(typeof c=="string"&&c!==""||(c="utf8"),!R.isEncoding(c))throw new TypeError('"encoding" must be a valid string encoding');var o=0|y0(u,c),l=(s=Yt(s,o)).write(u,c);return l!==o&&(s=s.slice(0,l)),s}(e,t,r):function(s,u){if(Rt(u)){var c=0|no(u.length);return(s=Yt(s,c)).length===0||u.copy(s,0,0,c),s}if(u){if(typeof ArrayBuffer!="undefined"&&u.buffer instanceof ArrayBuffer||"length"in u)return typeof u.length!="number"||(o=u.length)!=o?Yt(s,0):ro(s,u);if(u.type==="Buffer"&&m0(u.data))return ro(s,u.data)}var o;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function g0(e){if(typeof e!="number")throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function to(e,t){if(g0(t),e=Yt(e,t<0?0:0|no(t)),!R.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function ro(e,t){var r=t.length<0?0:0|no(t.length);e=Yt(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function no(e){if(e>=eo())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+eo().toString(16)+" bytes");return 0|e}function Rt(e){return!(e==null||!e._isBuffer)}function y0(e,t){if(Rt(e))return e.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;typeof e!="string"&&(e=""+e);var r=e.length;if(r===0)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return Vi(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return w0(e).length;default:if(n)return Vi(e).length;t=(""+t).toLowerCase(),n=!0}}function Ob(e,t,r){var n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return Wb(this,t,r);case"utf8":case"utf-8":return A0(this,t,r);case"ascii":return $b(this,t,r);case"latin1":case"binary":return Vb(this,t,r);case"base64":return qb(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return zb(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function _r(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function E0(e,t,r,n,s){if(e.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=s?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(s)return-1;r=e.length-1}else if(r<0){if(!s)return-1;r=0}if(typeof t=="string"&&(t=R.from(t,n)),Rt(t))return t.length===0?-1:C0(e,t,r,n,s);if(typeof t=="number")return t&=255,R.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?s?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):C0(e,[t],r,n,s);throw new TypeError("val must be string, number or Buffer")}function C0(e,t,r,n,s){var u,c=1,o=e.length,l=t.length;if(n!==void 0&&((n=String(n).toLowerCase())==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;c=2,o/=2,l/=2,r/=2}function h(E,g){return c===1?E[g]:E.readUInt16BE(g*c)}if(s){var a=-1;for(u=r;u<o;u++)if(h(e,u)===h(t,a===-1?0:u-a)){if(a===-1&&(a=u),u-a+1===l)return a*c}else a!==-1&&(u-=u-a),a=-1}else for(r+l>o&&(r=o-l),u=r;u>=0;u--){for(var f=!0,m=0;m<l;m++)if(h(e,u+m)!==h(t,m)){f=!1;break}if(f)return u}return-1}function Mb(e,t,r,n){r=Number(r)||0;var s=e.length-r;n?(n=Number(n))>s&&(n=s):n=s;var u=t.length;if(u%2!=0)throw new TypeError("Invalid hex string");n>u/2&&(n=u/2);for(var c=0;c<n;++c){var o=parseInt(t.substr(2*c,2),16);if(isNaN(o))return c;e[r+c]=o}return c}function Rb(e,t,r,n){return Wi(Vi(t,e.length-r),e,r,n)}function b0(e,t,r,n){return Wi(function(s){for(var u=[],c=0;c<s.length;++c)u.push(255&s.charCodeAt(c));return u}(t),e,r,n)}function jb(e,t,r,n){return b0(e,t,r,n)}function _b(e,t,r,n){return Wi(w0(t),e,r,n)}function Ub(e,t,r,n){return Wi(function(s,u){for(var c,o,l,h=[],a=0;a<s.length&&!((u-=2)<0);++a)o=(c=s.charCodeAt(a))>>8,l=c%256,h.push(l),h.push(o);return h}(t,e.length-r),e,r,n)}function qb(e,t,r){return t===0&&r===e.length?d0(e):d0(e.slice(t,r))}function A0(e,t,r){r=Math.min(e.length,r);for(var n=[],s=t;s<r;){var u,c,o,l,h=e[s],a=null,f=h>239?4:h>223?3:h>191?2:1;if(s+f<=r)switch(f){case 1:h<128&&(a=h);break;case 2:(192&(u=e[s+1]))==128&&(l=(31&h)<<6|63&u)>127&&(a=l);break;case 3:u=e[s+1],c=e[s+2],(192&u)==128&&(192&c)==128&&(l=(15&h)<<12|(63&u)<<6|63&c)>2047&&(l<55296||l>57343)&&(a=l);break;case 4:u=e[s+1],c=e[s+2],o=e[s+3],(192&u)==128&&(192&c)==128&&(192&o)==128&&(l=(15&h)<<18|(63&u)<<12|(63&c)<<6|63&o)>65535&&l<1114112&&(a=l)}a===null?(a=65533,f=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),s+=f}return function(m){var E=m.length;if(E<=4096)return String.fromCharCode.apply(String,m);for(var g="",b=0;b<E;)g+=String.fromCharCode.apply(String,m.slice(b,b+=4096));return g}(n)}R.TYPED_ARRAY_SUPPORT=ms.TYPED_ARRAY_SUPPORT===void 0||ms.TYPED_ARRAY_SUPPORT,R.poolSize=8192,R._augment=function(e){return e.__proto__=R.prototype,e},R.from=function(e,t,r){return D0(null,e,t,r)},R.TYPED_ARRAY_SUPPORT&&(R.prototype.__proto__=Uint8Array.prototype,R.__proto__=Uint8Array),R.alloc=function(e,t,r){return function(n,s,u,c){return g0(s),s<=0?Yt(n,s):u!==void 0?typeof c=="string"?Yt(n,s).fill(u,c):Yt(n,s).fill(u):Yt(n,s)}(null,e,t,r)},R.allocUnsafe=function(e){return to(null,e)},R.allocUnsafeSlow=function(e){return to(null,e)},R.isBuffer=function(e){return e!=null&&(!!e._isBuffer||S0(e)||function(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&S0(t.slice(0,0))}(e))},R.compare=function(e,t){if(!Rt(e)||!Rt(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,s=0,u=Math.min(r,n);s<u;++s)if(e[s]!==t[s]){r=e[s],n=t[s];break}return r<n?-1:n<r?1:0},R.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},R.concat=function(e,t){if(!m0(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return R.alloc(0);var r;if(t===void 0)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=R.allocUnsafe(t),s=0;for(r=0;r<e.length;++r){var u=e[r];if(!Rt(u))throw new TypeError('"list" argument must be an Array of Buffers');u.copy(n,s),s+=u.length}return n},R.byteLength=y0,R.prototype._isBuffer=!0,R.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)_r(this,t,t+1);return this},R.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)_r(this,t,t+3),_r(this,t+1,t+2);return this},R.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)_r(this,t,t+7),_r(this,t+1,t+6),_r(this,t+2,t+5),_r(this,t+3,t+4);return this},R.prototype.toString=function(){var e=0|this.length;return e===0?"":arguments.length===0?A0(this,0,e):Ob.apply(this,arguments)},R.prototype.equals=function(e){if(!Rt(e))throw new TypeError("Argument must be a Buffer");return this===e||R.compare(this,e)===0},R.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},R.prototype.compare=function(e,t,r,n,s){if(!Rt(e))throw new TypeError("Argument must be a Buffer");if(t===void 0&&(t=0),r===void 0&&(r=e?e.length:0),n===void 0&&(n=0),s===void 0&&(s=this.length),t<0||r>e.length||n<0||s>this.length)throw new RangeError("out of range index");if(n>=s&&t>=r)return 0;if(n>=s)return-1;if(t>=r)return 1;if(this===e)return 0;for(var u=(s>>>=0)-(n>>>=0),c=(r>>>=0)-(t>>>=0),o=Math.min(u,c),l=this.slice(n,s),h=e.slice(t,r),a=0;a<o;++a)if(l[a]!==h[a]){u=l[a],c=h[a];break}return u<c?-1:c<u?1:0},R.prototype.includes=function(e,t,r){return this.indexOf(e,t,r)!==-1},R.prototype.indexOf=function(e,t,r){return E0(this,e,t,r,!0)},R.prototype.lastIndexOf=function(e,t,r){return E0(this,e,t,r,!1)},R.prototype.write=function(e,t,r,n){if(t===void 0)n="utf8",r=this.length,t=0;else if(r===void 0&&typeof t=="string")n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,n===void 0&&(n="utf8")):(n=r,r=void 0)}var s=this.length-t;if((r===void 0||r>s)&&(r=s),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var u=!1;;)switch(n){case"hex":return Mb(this,e,t,r);case"utf8":case"utf-8":return Rb(this,e,t,r);case"ascii":return b0(this,e,t,r);case"latin1":case"binary":return jb(this,e,t,r);case"base64":return _b(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ub(this,e,t,r);default:if(u)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),u=!0}},R.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function $b(e,t,r){var n="";r=Math.min(e.length,r);for(var s=t;s<r;++s)n+=String.fromCharCode(127&e[s]);return n}function Vb(e,t,r){var n="";r=Math.min(e.length,r);for(var s=t;s<r;++s)n+=String.fromCharCode(e[s]);return n}function Wb(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var s="",u=t;u<r;++u)s+=Gb(e[u]);return s}function zb(e,t,r){for(var n=e.slice(t,r),s="",u=0;u<n.length;u+=2)s+=String.fromCharCode(n[u]+256*n[u+1]);return s}function Re(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function st(e,t,r,n,s,u){if(!Rt(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>s||t<u)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function qi(e,t,r,n){t<0&&(t=65535+t+1);for(var s=0,u=Math.min(e.length-r,2);s<u;++s)e[r+s]=(t&255<<8*(n?s:1-s))>>>8*(n?s:1-s)}function $i(e,t,r,n){t<0&&(t=4294967295+t+1);for(var s=0,u=Math.min(e.length-r,4);s<u;++s)e[r+s]=t>>>8*(n?s:3-s)&255}function x0(e,t,r,n,s,u){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function F0(e,t,r,n,s){return s||x0(e,0,r,4),f0(e,t,r,n,23,4),r+4}function v0(e,t,r,n,s){return s||x0(e,0,r,8),f0(e,t,r,n,52,8),r+8}R.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=t===void 0?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),R.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=R.prototype;else{var s=t-e;r=new R(s,void 0);for(var u=0;u<s;++u)r[u]=this[u+e]}return r},R.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||Re(e,t,this.length);for(var n=this[e],s=1,u=0;++u<t&&(s*=256);)n+=this[e+u]*s;return n},R.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||Re(e,t,this.length);for(var n=this[e+--t],s=1;t>0&&(s*=256);)n+=this[e+--t]*s;return n},R.prototype.readUInt8=function(e,t){return t||Re(e,1,this.length),this[e]},R.prototype.readUInt16LE=function(e,t){return t||Re(e,2,this.length),this[e]|this[e+1]<<8},R.prototype.readUInt16BE=function(e,t){return t||Re(e,2,this.length),this[e]<<8|this[e+1]},R.prototype.readUInt32LE=function(e,t){return t||Re(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},R.prototype.readUInt32BE=function(e,t){return t||Re(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},R.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||Re(e,t,this.length);for(var n=this[e],s=1,u=0;++u<t&&(s*=256);)n+=this[e+u]*s;return n>=(s*=128)&&(n-=Math.pow(2,8*t)),n},R.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||Re(e,t,this.length);for(var n=t,s=1,u=this[e+--n];n>0&&(s*=256);)u+=this[e+--n]*s;return u>=(s*=128)&&(u-=Math.pow(2,8*t)),u},R.prototype.readInt8=function(e,t){return t||Re(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},R.prototype.readInt16LE=function(e,t){t||Re(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},R.prototype.readInt16BE=function(e,t){t||Re(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},R.prototype.readInt32LE=function(e,t){return t||Re(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},R.prototype.readInt32BE=function(e,t){return t||Re(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},R.prototype.readFloatLE=function(e,t){return t||Re(e,4,this.length),Ui(this,e,!0,23,4)},R.prototype.readFloatBE=function(e,t){return t||Re(e,4,this.length),Ui(this,e,!1,23,4)},R.prototype.readDoubleLE=function(e,t){return t||Re(e,8,this.length),Ui(this,e,!0,52,8)},R.prototype.readDoubleBE=function(e,t){return t||Re(e,8,this.length),Ui(this,e,!1,52,8)},R.prototype.writeUIntLE=function(e,t,r,n){e=+e,t|=0,r|=0,n||st(this,e,t,r,Math.pow(2,8*r)-1,0);var s=1,u=0;for(this[t]=255&e;++u<r&&(s*=256);)this[t+u]=e/s&255;return t+r},R.prototype.writeUIntBE=function(e,t,r,n){e=+e,t|=0,r|=0,n||st(this,e,t,r,Math.pow(2,8*r)-1,0);var s=r-1,u=1;for(this[t+s]=255&e;--s>=0&&(u*=256);)this[t+s]=e/u&255;return t+r},R.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||st(this,e,t,1,255,0),R.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},R.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||st(this,e,t,2,65535,0),R.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):qi(this,e,t,!0),t+2},R.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||st(this,e,t,2,65535,0),R.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):qi(this,e,t,!1),t+2},R.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||st(this,e,t,4,4294967295,0),R.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):$i(this,e,t,!0),t+4},R.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||st(this,e,t,4,4294967295,0),R.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):$i(this,e,t,!1),t+4},R.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var s=Math.pow(2,8*r-1);st(this,e,t,r,s-1,-s)}var u=0,c=1,o=0;for(this[t]=255&e;++u<r&&(c*=256);)e<0&&o===0&&this[t+u-1]!==0&&(o=1),this[t+u]=(e/c>>0)-o&255;return t+r},R.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var s=Math.pow(2,8*r-1);st(this,e,t,r,s-1,-s)}var u=r-1,c=1,o=0;for(this[t+u]=255&e;--u>=0&&(c*=256);)e<0&&o===0&&this[t+u+1]!==0&&(o=1),this[t+u]=(e/c>>0)-o&255;return t+r},R.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||st(this,e,t,1,127,-128),R.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},R.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||st(this,e,t,2,32767,-32768),R.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):qi(this,e,t,!0),t+2},R.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||st(this,e,t,2,32767,-32768),R.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):qi(this,e,t,!1),t+2},R.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||st(this,e,t,4,2147483647,-2147483648),R.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):$i(this,e,t,!0),t+4},R.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||st(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),R.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):$i(this,e,t,!1),t+4},R.prototype.writeFloatLE=function(e,t,r){return F0(this,e,t,!0,r)},R.prototype.writeFloatBE=function(e,t,r){return F0(this,e,t,!1,r)},R.prototype.writeDoubleLE=function(e,t,r){return v0(this,e,t,!0,r)},R.prototype.writeDoubleBE=function(e,t,r){return v0(this,e,t,!1,r)},R.prototype.copy=function(e,t,r,n){if(r||(r=0),n||n===0||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var s,u=n-r;if(this===e&&r<t&&t<n)for(s=u-1;s>=0;--s)e[s+t]=this[s+r];else if(u<1e3||!R.TYPED_ARRAY_SUPPORT)for(s=0;s<u;++s)e[s+t]=this[s+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+u),t);return u},R.prototype.fill=function(e,t,r,n){if(typeof e=="string"){if(typeof t=="string"?(n=t,t=0,r=this.length):typeof r=="string"&&(n=r,r=this.length),e.length===1){var s=e.charCodeAt(0);s<256&&(e=s)}if(n!==void 0&&typeof n!="string")throw new TypeError("encoding must be a string");if(typeof n=="string"&&!R.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else typeof e=="number"&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var u;if(t>>>=0,r=r===void 0?this.length:r>>>0,e||(e=0),typeof e=="number")for(u=t;u<r;++u)this[u]=e;else{var c=Rt(e)?e:Vi(new R(e,n).toString()),o=c.length;for(u=0;u<r-t;++u)this[u+t]=c[u%o]}return this};var Hb=/[^+\/0-9A-Za-z-_]/g;function Gb(e){return e<16?"0"+e.toString(16):e.toString(16)}function Vi(e,t){var r;t=t||1/0;for(var n=e.length,s=null,u=[],c=0;c<n;++c){if((r=e.charCodeAt(c))>55295&&r<57344){if(!s){if(r>56319){(t-=3)>-1&&u.push(239,191,189);continue}if(c+1===n){(t-=3)>-1&&u.push(239,191,189);continue}s=r;continue}if(r<56320){(t-=3)>-1&&u.push(239,191,189),s=r;continue}r=65536+(s-55296<<10|r-56320)}else s&&(t-=3)>-1&&u.push(239,191,189);if(s=null,r<128){if((t-=1)<0)break;u.push(r)}else if(r<2048){if((t-=2)<0)break;u.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;u.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;u.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return u}function w0(e){return function(t){var r,n,s,u,c,o;Zu||h0();var l=t.length;if(l%4>0)throw new Error("Invalid string. Length must be a multiple of 4");c=t[l-2]==="="?2:t[l-1]==="="?1:0,o=new kb(3*l/4-c),s=c>0?l-4:l;var h=0;for(r=0,n=0;r<s;r+=4,n+=3)u=mt[t.charCodeAt(r)]<<18|mt[t.charCodeAt(r+1)]<<12|mt[t.charCodeAt(r+2)]<<6|mt[t.charCodeAt(r+3)],o[h++]=u>>16&255,o[h++]=u>>8&255,o[h++]=255&u;return c===2?(u=mt[t.charCodeAt(r)]<<2|mt[t.charCodeAt(r+1)]>>4,o[h++]=255&u):c===1&&(u=mt[t.charCodeAt(r)]<<10|mt[t.charCodeAt(r+1)]<<4|mt[t.charCodeAt(r+2)]>>2,o[h++]=u>>8&255,o[h++]=255&u),o}(function(t){if((t=function(r){return r.trim?r.trim():r.replace(/^\s+|\s+$/g,"")}(t).replace(Hb,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(e))}function Wi(e,t,r,n){for(var s=0;s<n&&!(s+r>=t.length||s>=e.length);++s)t[s+r]=e[s];return s}function S0(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}var bs=gs(Pb),Jb=class{constructor(e,t){(t=t||{}).readChunk||(t.readChunk=1024),t.newLineCharacter?t.newLineCharacter=t.newLineCharacter.charCodeAt(0):t.newLineCharacter=10,this.fd=typeof e=="number"?e:bs.openSync(e,"r"),this.options=t,this.newLineCharacter=t.newLineCharacter,this.reset()}_searchInBuffer(e,t){let r=-1;for(let n=0;n<=e.length;n++)if(e[n]===t){r=n;break}return r}reset(){this.eofReached=!1,this.linesCache=[],this.fdPosition=0}close(){bs.closeSync(this.fd),this.fd=null}_extractLines(e){let t,r=[],n=0,s=0;for(;;){let c=e[n++];if(c===this.newLineCharacter)t=e.slice(s,n),r.push(t),s=n;else if(c===void 0)break}let u=e.slice(s,n);return u.length&&r.push(u),r}_readChunk(e){let t,r=0,n=[];do{let u=new R(this.options.readChunk);t=bs.readSync(this.fd,u,0,this.options.readChunk,this.fdPosition),r+=t,this.fdPosition=this.fdPosition+t,n.push(u)}while(t&&this._searchInBuffer(n[n.length-1],this.options.newLineCharacter)===-1);let s=R.concat(n);return t<this.options.readChunk&&(this.eofReached=!0,s=s.slice(0,r)),r&&(this.linesCache=this._extractLines(s),e&&(this.linesCache[0]=R.concat([e,this.linesCache[0]]))),r}next(){if(!this.fd)return!1;let e,t=!1;return this.eofReached&&this.linesCache.length===0?t:(this.linesCache.length||(e=this._readChunk()),this.linesCache.length&&(t=this.linesCache.shift(),t[t.length-1]!==this.newLineCharacter&&(e=this._readChunk(t),e&&(t=this.linesCache.shift()))),this.eofReached&&this.linesCache.length===0&&this.close(),t&&t[t.length-1]===this.newLineCharacter&&(t=t.slice(0,t.length-1)),t)}},Xb=function(e){for(var t=-1,r=e==null?0:e.length,n={};++t<r;){var s=e[t];n[s[0]]=s[1]}return n},T0=class extends Error{},B0=class extends Error{},P0=class extends Error{},N0={ConfigError:T0,DebugError:B0,UndefinedParserError:P0},k0=function(e,t){return(k0=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var s in n)n.hasOwnProperty(s)&&(r[s]=n[s])})(e,t)};var I0=function(){return(I0=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e}).apply(this,arguments)};function L0(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function O0(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n,s,u=r.call(e),c=[];try{for(;(t===void 0||t-- >0)&&!(n=u.next()).done;)c.push(n.value)}catch(o){s={error:o}}finally{try{n&&!n.done&&(r=u.return)&&r.call(u)}finally{if(s)throw s.error}}return c}function As(e){return this instanceof As?(this.v=e,this):new As(e)}var Be=Object.freeze({__proto__:null,__extends:function(e,t){function r(){this.constructor=e}k0(e,t),e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)},get __assign(){return I0},__rest:function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(r[n[s]]=e[n[s]])}return r},__decorate:function(e,t,r,n){var s,u=arguments.length,c=u<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(c=(u<3?s(c):u>3?s(t,r,c):s(t,r))||c);return u>3&&c&&Object.defineProperty(t,r,c),c},__param:function(e,t){return function(r,n){t(r,n,e)}},__metadata:function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},__awaiter:function(e,t,r,n){return new(r||(r=Promise))(function(s,u){function c(h){try{l(n.next(h))}catch(a){u(a)}}function o(h){try{l(n.throw(h))}catch(a){u(a)}}function l(h){var a;h.done?s(h.value):(a=h.value,a instanceof r?a:new r(function(f){f(a)})).then(c,o)}l((n=n.apply(e,t||[])).next())})},__generator:function(e,t){var r,n,s,u,c={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return u={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function o(l){return function(h){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;c;)try{if(r=1,n&&(s=2&a[0]?n.return:a[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,a[1])).done)return s;switch(n=0,s&&(a=[2&a[0],s.value]),a[0]){case 0:case 1:s=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++,n=a[1],a=[0];continue;case 7:a=c.ops.pop(),c.trys.pop();continue;default:if(s=c.trys,!((s=s.length>0&&s[s.length-1])||a[0]!==6&&a[0]!==2)){c=0;continue}if(a[0]===3&&(!s||a[1]>s[0]&&a[1]<s[3])){c.label=a[1];break}if(a[0]===6&&c.label<s[1]){c.label=s[1],s=a;break}if(s&&c.label<s[2]){c.label=s[2],c.ops.push(a);break}s[2]&&c.ops.pop(),c.trys.pop();continue}a=t.call(e,c)}catch(f){a=[6,f],n=0}finally{r=s=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([l,h])}}},__createBinding:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]},__exportStar:function(e,t){for(var r in e)r==="default"||t.hasOwnProperty(r)||(t[r]=e[r])},__values:L0,__read:O0,__spread:function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(O0(arguments[t]));return e},__spreadArrays:function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),s=0;for(t=0;t<r;t++)for(var u=arguments[t],c=0,o=u.length;c<o;c++,s++)n[s]=u[c];return n},__await:As,__asyncGenerator:function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,s=r.apply(e,t||[]),u=[];return n={},c("next"),c("throw"),c("return"),n[Symbol.asyncIterator]=function(){return this},n;function c(f){s[f]&&(n[f]=function(m){return new Promise(function(E,g){u.push([f,m,E,g])>1||o(f,m)})})}function o(f,m){try{(E=s[f](m)).value instanceof As?Promise.resolve(E.value.v).then(l,h):a(u[0][2],E)}catch(g){a(u[0][3],g)}var E}function l(f){o("next",f)}function h(f){o("throw",f)}function a(f,m){f(m),u.shift(),u.length&&o(u[0][0],u[0][1])}},__asyncDelegator:function(e){var t,r;return t={},n("next"),n("throw",function(s){throw s}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(s,u){t[s]=e[s]?function(c){return(r=!r)?{value:As(e[s](c)),done:s==="return"}:u?u(c):c}:u}},__asyncValues:function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=L0(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(s){t[s]=e[s]&&function(u){return new Promise(function(c,o){(function(l,h,a,f){Promise.resolve(f).then(function(m){l({value:m,done:a})},h)})(c,o,(u=e[s](u)).done,u.value)})}}},__makeTemplateObject:function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},__importStar:function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t},__importDefault:function(e){return e&&e.__esModule?e:{default:e}},__classPrivateFieldGet:function(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)},__classPrivateFieldSet:function(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}}),M0=Z(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.apiDescriptor={key:r=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(r)?r:JSON.stringify(r),value(r){if(r===null||typeof r!="object")return JSON.stringify(r);if(Array.isArray(r))return"[".concat(r.map(s=>t.apiDescriptor.value(s)).join(", "),"]");let n=Object.keys(r);return n.length===0?"{}":"{ ".concat(n.map(s=>"".concat(t.apiDescriptor.key(s),": ").concat(t.apiDescriptor.value(r[s]))).join(", ")," }")},pair:({key:r,value:n})=>t.apiDescriptor.value({[r]:n})}}),Kb=Z(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Be.__exportStar(M0,t)}),Yb=/[|\\{}()[\]^$+*?.]/g,so=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(Yb,"\\$&")},Ur={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},qr=Z(function(e){var t={};for(var r in Ur)Ur.hasOwnProperty(r)&&(t[Ur[r]]=r);var n=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var s in n)if(n.hasOwnProperty(s)){if(!("channels"in n[s]))throw new Error("missing channels property: "+s);if(!("labels"in n[s]))throw new Error("missing channel labels property: "+s);if(n[s].labels.length!==n[s].channels)throw new Error("channel and label counts mismatch: "+s);var u=n[s].channels,c=n[s].labels;delete n[s].channels,delete n[s].labels,Object.defineProperty(n[s],"channels",{value:u}),Object.defineProperty(n[s],"labels",{value:c})}n.rgb.hsl=function(o){var l,h,a=o[0]/255,f=o[1]/255,m=o[2]/255,E=Math.min(a,f,m),g=Math.max(a,f,m),b=g-E;return g===E?l=0:a===g?l=(f-m)/b:f===g?l=2+(m-a)/b:m===g&&(l=4+(a-f)/b),(l=Math.min(60*l,360))<0&&(l+=360),h=(E+g)/2,[l,100*(g===E?0:h<=.5?b/(g+E):b/(2-g-E)),100*h]},n.rgb.hsv=function(o){var l,h,a,f,m,E=o[0]/255,g=o[1]/255,b=o[2]/255,A=Math.max(E,g,b),C=A-Math.min(E,g,b),F=function(w){return(A-w)/6/C+.5};return C===0?f=m=0:(m=C/A,l=F(E),h=F(g),a=F(b),E===A?f=a-h:g===A?f=1/3+l-a:b===A&&(f=2/3+h-l),f<0?f+=1:f>1&&(f-=1)),[360*f,100*m,100*A]},n.rgb.hwb=function(o){var l=o[0],h=o[1],a=o[2];return[n.rgb.hsl(o)[0],100*(1/255*Math.min(l,Math.min(h,a))),100*(a=1-1/255*Math.max(l,Math.max(h,a)))]},n.rgb.cmyk=function(o){var l,h=o[0]/255,a=o[1]/255,f=o[2]/255;return[100*((1-h-(l=Math.min(1-h,1-a,1-f)))/(1-l)||0),100*((1-a-l)/(1-l)||0),100*((1-f-l)/(1-l)||0),100*l]},n.rgb.keyword=function(o){var l=t[o];if(l)return l;var h,a,f,m=1/0;for(var E in Ur)if(Ur.hasOwnProperty(E)){var g=Ur[E],b=(a=o,f=g,Math.pow(a[0]-f[0],2)+Math.pow(a[1]-f[1],2)+Math.pow(a[2]-f[2],2));b<m&&(m=b,h=E)}return h},n.keyword.rgb=function(o){return Ur[o]},n.rgb.xyz=function(o){var l=o[0]/255,h=o[1]/255,a=o[2]/255;return[100*(.4124*(l=l>.04045?Math.pow((l+.055)/1.055,2.4):l/12.92)+.3576*(h=h>.04045?Math.pow((h+.055)/1.055,2.4):h/12.92)+.1805*(a=a>.04045?Math.pow((a+.055)/1.055,2.4):a/12.92)),100*(.2126*l+.7152*h+.0722*a),100*(.0193*l+.1192*h+.9505*a)]},n.rgb.lab=function(o){var l=n.rgb.xyz(o),h=l[0],a=l[1],f=l[2];return a/=100,f/=108.883,h=(h/=95.047)>.008856?Math.pow(h,1/3):7.787*h+16/116,[116*(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116)-16,500*(h-a),200*(a-(f=f>.008856?Math.pow(f,1/3):7.787*f+16/116))]},n.hsl.rgb=function(o){var l,h,a,f,m,E=o[0]/360,g=o[1]/100,b=o[2]/100;if(g===0)return[m=255*b,m,m];l=2*b-(h=b<.5?b*(1+g):b+g-b*g),f=[0,0,0];for(var A=0;A<3;A++)(a=E+1/3*-(A-1))<0&&a++,a>1&&a--,m=6*a<1?l+6*(h-l)*a:2*a<1?h:3*a<2?l+(h-l)*(2/3-a)*6:l,f[A]=255*m;return f},n.hsl.hsv=function(o){var l=o[0],h=o[1]/100,a=o[2]/100,f=h,m=Math.max(a,.01);return h*=(a*=2)<=1?a:2-a,f*=m<=1?m:2-m,[l,100*(a===0?2*f/(m+f):2*h/(a+h)),100*((a+h)/2)]},n.hsv.rgb=function(o){var l=o[0]/60,h=o[1]/100,a=o[2]/100,f=Math.floor(l)%6,m=l-Math.floor(l),E=255*a*(1-h),g=255*a*(1-h*m),b=255*a*(1-h*(1-m));switch(a*=255,f){case 0:return[a,b,E];case 1:return[g,a,E];case 2:return[E,a,b];case 3:return[E,g,a];case 4:return[b,E,a];case 5:return[a,E,g]}},n.hsv.hsl=function(o){var l,h,a,f=o[0],m=o[1]/100,E=o[2]/100,g=Math.max(E,.01);return a=(2-m)*E,h=m*g,[f,100*(h=(h/=(l=(2-m)*g)<=1?l:2-l)||0),100*(a/=2)]},n.hwb.rgb=function(o){var l,h,a,f,m,E,g,b=o[0]/360,A=o[1]/100,C=o[2]/100,F=A+C;switch(F>1&&(A/=F,C/=F),a=6*b-(l=Math.floor(6*b)),(1&l)!=0&&(a=1-a),f=A+a*((h=1-C)-A),l){default:case 6:case 0:m=h,E=f,g=A;break;case 1:m=f,E=h,g=A;break;case 2:m=A,E=h,g=f;break;case 3:m=A,E=f,g=h;break;case 4:m=f,E=A,g=h;break;case 5:m=h,E=A,g=f}return[255*m,255*E,255*g]},n.cmyk.rgb=function(o){var l=o[0]/100,h=o[1]/100,a=o[2]/100,f=o[3]/100;return[255*(1-Math.min(1,l*(1-f)+f)),255*(1-Math.min(1,h*(1-f)+f)),255*(1-Math.min(1,a*(1-f)+f))]},n.xyz.rgb=function(o){var l,h,a,f=o[0]/100,m=o[1]/100,E=o[2]/100;return h=-.9689*f+1.8758*m+.0415*E,a=.0557*f+-.204*m+1.057*E,l=(l=3.2406*f+-1.5372*m+-.4986*E)>.0031308?1.055*Math.pow(l,1/2.4)-.055:12.92*l,h=h>.0031308?1.055*Math.pow(h,1/2.4)-.055:12.92*h,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:12.92*a,[255*(l=Math.min(Math.max(0,l),1)),255*(h=Math.min(Math.max(0,h),1)),255*(a=Math.min(Math.max(0,a),1))]},n.xyz.lab=function(o){var l=o[0],h=o[1],a=o[2];return h/=100,a/=108.883,l=(l/=95.047)>.008856?Math.pow(l,1/3):7.787*l+16/116,[116*(h=h>.008856?Math.pow(h,1/3):7.787*h+16/116)-16,500*(l-h),200*(h-(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116))]},n.lab.xyz=function(o){var l,h,a,f=o[0];l=o[1]/500+(h=(f+16)/116),a=h-o[2]/200;var m=Math.pow(h,3),E=Math.pow(l,3),g=Math.pow(a,3);return h=m>.008856?m:(h-16/116)/7.787,l=E>.008856?E:(l-16/116)/7.787,a=g>.008856?g:(a-16/116)/7.787,[l*=95.047,h*=100,a*=108.883]},n.lab.lch=function(o){var l,h=o[0],a=o[1],f=o[2];return(l=360*Math.atan2(f,a)/2/Math.PI)<0&&(l+=360),[h,Math.sqrt(a*a+f*f),l]},n.lch.lab=function(o){var l,h=o[0],a=o[1];return l=o[2]/360*2*Math.PI,[h,a*Math.cos(l),a*Math.sin(l)]},n.rgb.ansi16=function(o){var l=o[0],h=o[1],a=o[2],f=1 in arguments?arguments[1]:n.rgb.hsv(o)[2];if((f=Math.round(f/50))===0)return 30;var m=30+(Math.round(a/255)<<2|Math.round(h/255)<<1|Math.round(l/255));return f===2&&(m+=60),m},n.hsv.ansi16=function(o){return n.rgb.ansi16(n.hsv.rgb(o),o[2])},n.rgb.ansi256=function(o){var l=o[0],h=o[1],a=o[2];return l===h&&h===a?l<8?16:l>248?231:Math.round((l-8)/247*24)+232:16+36*Math.round(l/255*5)+6*Math.round(h/255*5)+Math.round(a/255*5)},n.ansi16.rgb=function(o){var l=o%10;if(l===0||l===7)return o>50&&(l+=3.5),[l=l/10.5*255,l,l];var h=.5*(1+~~(o>50));return[(1&l)*h*255,(l>>1&1)*h*255,(l>>2&1)*h*255]},n.ansi256.rgb=function(o){if(o>=232){var l=10*(o-232)+8;return[l,l,l]}var h;return o-=16,[Math.floor(o/36)/5*255,Math.floor((h=o%36)/6)/5*255,h%6/5*255]},n.rgb.hex=function(o){var l=(((255&Math.round(o[0]))<<16)+((255&Math.round(o[1]))<<8)+(255&Math.round(o[2]))).toString(16).toUpperCase();return"000000".substring(l.length)+l},n.hex.rgb=function(o){var l=o.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!l)return[0,0,0];var h=l[0];l[0].length===3&&(h=h.split("").map(function(f){return f+f}).join(""));var a=parseInt(h,16);return[a>>16&255,a>>8&255,255&a]},n.rgb.hcg=function(o){var l,h=o[0]/255,a=o[1]/255,f=o[2]/255,m=Math.max(Math.max(h,a),f),E=Math.min(Math.min(h,a),f),g=m-E;return l=g<=0?0:m===h?(a-f)/g%6:m===a?2+(f-h)/g:4+(h-a)/g+4,l/=6,[360*(l%=1),100*g,100*(g<1?E/(1-g):0)]},n.hsl.hcg=function(o){var l=o[1]/100,h=o[2]/100,a=1,f=0;return(a=h<.5?2*l*h:2*l*(1-h))<1&&(f=(h-.5*a)/(1-a)),[o[0],100*a,100*f]},n.hsv.hcg=function(o){var l=o[1]/100,h=o[2]/100,a=l*h,f=0;return a<1&&(f=(h-a)/(1-a)),[o[0],100*a,100*f]},n.hcg.rgb=function(o){var l=o[0]/360,h=o[1]/100,a=o[2]/100;if(h===0)return[255*a,255*a,255*a];var f,m=[0,0,0],E=l%1*6,g=E%1,b=1-g;switch(Math.floor(E)){case 0:m[0]=1,m[1]=g,m[2]=0;break;case 1:m[0]=b,m[1]=1,m[2]=0;break;case 2:m[0]=0,m[1]=1,m[2]=g;break;case 3:m[0]=0,m[1]=b,m[2]=1;break;case 4:m[0]=g,m[1]=0,m[2]=1;break;default:m[0]=1,m[1]=0,m[2]=b}return f=(1-h)*a,[255*(h*m[0]+f),255*(h*m[1]+f),255*(h*m[2]+f)]},n.hcg.hsv=function(o){var l=o[1]/100,h=l+o[2]/100*(1-l),a=0;return h>0&&(a=l/h),[o[0],100*a,100*h]},n.hcg.hsl=function(o){var l=o[1]/100,h=o[2]/100*(1-l)+.5*l,a=0;return h>0&&h<.5?a=l/(2*h):h>=.5&&h<1&&(a=l/(2*(1-h))),[o[0],100*a,100*h]},n.hcg.hwb=function(o){var l=o[1]/100,h=l+o[2]/100*(1-l);return[o[0],100*(h-l),100*(1-h)]},n.hwb.hcg=function(o){var l=o[1]/100,h=1-o[2]/100,a=h-l,f=0;return a<1&&(f=(h-a)/(1-a)),[o[0],100*a,100*f]},n.apple.rgb=function(o){return[o[0]/65535*255,o[1]/65535*255,o[2]/65535*255]},n.rgb.apple=function(o){return[o[0]/255*65535,o[1]/255*65535,o[2]/255*65535]},n.gray.rgb=function(o){return[o[0]/100*255,o[0]/100*255,o[0]/100*255]},n.gray.hsl=n.gray.hsv=function(o){return[0,0,o[0]]},n.gray.hwb=function(o){return[0,100,o[0]]},n.gray.cmyk=function(o){return[0,0,0,o[0]]},n.gray.lab=function(o){return[o[0],0,0]},n.gray.hex=function(o){var l=255&Math.round(o[0]/100*255),h=((l<<16)+(l<<8)+l).toString(16).toUpperCase();return"000000".substring(h.length)+h},n.rgb.gray=function(o){return[(o[0]+o[1]+o[2])/3/255*100]}});function Qb(e){var t=function(){for(var h={},a=Object.keys(qr),f=a.length,m=0;m<f;m++)h[a[m]]={distance:-1,parent:null};return h}(),r=[e];for(t[e].distance=0;r.length;)for(var n=r.pop(),s=Object.keys(qr[n]),u=s.length,c=0;c<u;c++){var o=s[c],l=t[o];l.distance===-1&&(l.distance=t[n].distance+1,l.parent=n,r.unshift(o))}return t}function Zb(e,t){return function(r){return t(e(r))}}function eA(e,t){for(var r=[t[e].parent,e],n=qr[t[e].parent][e],s=t[e].parent;t[s].parent;)r.unshift(t[s].parent),n=Zb(qr[t[s].parent][s],n),s=t[s].parent;return n.conversion=r,n}var Sn={};Object.keys(qr).forEach(function(e){Sn[e]={},Object.defineProperty(Sn[e],"channels",{value:qr[e].channels}),Object.defineProperty(Sn[e],"labels",{value:qr[e].labels});var t=function(r){for(var n=Qb(r),s={},u=Object.keys(n),c=u.length,o=0;o<c;o++){var l=u[o];n[l].parent!==null&&(s[l]=eA(l,n))}return s}(e);Object.keys(t).forEach(function(r){var n=t[r];Sn[e][r]=function(s){var u=function(c){if(c==null)return c;arguments.length>1&&(c=Array.prototype.slice.call(arguments));var o=s(c);if(typeof o=="object")for(var l=o.length,h=0;h<l;h++)o[h]=Math.round(o[h]);return o};return"conversion"in s&&(u.conversion=s.conversion),u}(n),Sn[e][r].raw=function(s){var u=function(c){return c==null?c:(arguments.length>1&&(c=Array.prototype.slice.call(arguments)),s(c))};return"conversion"in s&&(u.conversion=s.conversion),u}(n)})});var Tn=Sn,Pe=Z(function(e){let t=(s,u)=>function(){let c=s.apply(Tn,arguments);return"[".concat(c+u,"m")},r=(s,u)=>function(){let c=s.apply(Tn,arguments);return"[".concat(38+u,";5;").concat(c,"m")},n=(s,u)=>function(){let c=s.apply(Tn,arguments);return"[".concat(38+u,";2;").concat(c[0],";").concat(c[1],";").concat(c[2],"m")};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){let s=new Map,u={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};u.color.grey=u.color.gray;for(let l of Object.keys(u)){let h=u[l];for(let a of Object.keys(h)){let f=h[a];u[a]={open:"[".concat(f[0],"m"),close:"[".concat(f[1],"m")},h[a]=u[a],s.set(f[0],f[1])}Object.defineProperty(u,l,{value:h,enumerable:!1}),Object.defineProperty(u,"codes",{value:s,enumerable:!1})}let c=l=>l,o=(l,h,a)=>[l,h,a];u.color.close="[39m",u.bgColor.close="[49m",u.color.ansi={ansi:t(c,0)},u.color.ansi256={ansi256:r(c,0)},u.color.ansi16m={rgb:n(o,0)},u.bgColor.ansi={ansi:t(c,10)},u.bgColor.ansi256={ansi256:r(c,10)},u.bgColor.ansi16m={rgb:n(o,10)};for(let l of Object.keys(Tn)){if(typeof Tn[l]!="object")continue;let h=Tn[l];l==="ansi16"&&(l="ansi"),"ansi16"in h&&(u.color.ansi[l]=t(h.ansi16,0),u.bgColor.ansi[l]=t(h.ansi16,10)),"ansi256"in h&&(u.color.ansi256[l]=r(h.ansi256,0),u.bgColor.ansi256[l]=r(h.ansi256,10)),"rgb"in h&&(u.color.ansi16m[l]=n(h.rgb,0),u.bgColor.ansi16m[l]=n(h.rgb,10))}return u}})}),Se=(e,t)=>{t=t||Ae.argv;let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),s=t.indexOf("--");return n!==-1&&(s===-1||n<s)},zi=gs(Object.freeze({__proto__:null,default:{EOL:
,platform:()=>"browser",cpus:()=>[{model:"Prettier"}]}})),He=Ae.env,Bn;function io(e){return function(t){return t!==0&&{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}(function(t){if(Bn===!1)return 0;if(Se("color=16m")||Se("color=full")||Se("color=truecolor"))return 3;if(Se("color=256"))return 2;if(t&&!t.isTTY&&Bn!==!0)return 0;let r=Bn?1:0;if(Ae.platform==="win32"){let n=zi.release().split(".");return Number(Ae.versions.node.split(".")[0])>=8&&Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in He)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(n=>n in He)||He.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in He)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(He.TEAMCITY_VERSION)?1:0;if(He.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in He){let n=parseInt((He.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(He.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(He.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(He.TERM)||"COLORTERM"in He?1:(He.TERM,r)}(e))}Se("no-color")||Se("no-colors")||Se("color=false")?Bn=!1:(Se("color")||Se("colors")||Se("color=true")||Se("color=always"))&&(Bn=!0),"FORCE_COLOR"in He&&(Bn=He.FORCE_COLOR.length===0||parseInt(He.FORCE_COLOR,10)!==0);var tA={supportsColor:io,stdout:io(Ae.stdout),stderr:io(Ae.stderr)},rA=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,R0=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,nA=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,sA=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,iA=new Map([["n",
],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a","\x07"]]);function j0(e){return e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):iA.get(e)||e}function aA(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),s;for(let u of n)if(isNaN(u)){if(!(s=u.match(nA)))throw new Error("Invalid Chalk template style argument: ".concat(u," (in style '").concat(e,"')"));r.push(s[2].replace(sA,(c,o,l)=>o?j0(o):l))}else r.push(Number(u));return r}function uA(e){R0.lastIndex=0;let t=[],r;for(;(r=R0.exec(e))!==null;){let n=r[1];if(r[2]){let s=aA(n,r[2]);t.push([n].concat(s))}else t.push([n])}return t}function _0(e,t){let r={};for(let s of t)for(let u of s.styles)r[u[0]]=s.inverse?null:u.slice(1);let n=e;for(let s of Object.keys(r))if(Array.isArray(r[s])){if(!(s in n))throw new Error("Unknown Chalk style: ".concat(s));n=r[s].length>0?n[s].apply(n,r[s]):n[s]}return n}var oA=(e,t)=>{let r=[],n=[],s=[];if(t.replace(rA,(u,c,o,l,h,a)=>{if(c)s.push(j0(c));else if(l){let f=s.join("");s=[],n.push(r.length===0?f:_0(e,r)(f)),r.push({inverse:o,styles:uA(l)})}else if(h){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(_0(e,r)(s.join(""))),s=[],r.pop()}else s.push(a)}),n.push(s.join("")),r.length>0){let u="Chalk template literal is missing ".concat(r.length," closing bracket").concat(r.length===1?"":"s"," (})");throw new Error(u)}return n.join("")},$r=Z(function(e){let t=tA.stdout,r=Ae.platform==="win32"&&!(Ae.env.TERM||"").toLowerCase().startsWith("xterm"),n=["ansi","ansi","ansi256","ansi16m"],s=new Set(["gray"]),u=Object.create(null);function c(m,E){E=E||{};let g=t?t.level:0;m.level=E.level===void 0?g:E.level,m.enabled="enabled"in E?E.enabled:m.level>0}function o(m){if(!this||!(this instanceof o)||this.template){let E={};return c(E,m),E.template=function(){let g=[].slice.call(arguments);return f.apply(null,[E.template].concat(g))},Object.setPrototypeOf(E,o.prototype),Object.setPrototypeOf(E.template,E),E.template.constructor=o,E.template}c(this,m)}r&&(Pe.blue.open="[94m");for(let m of Object.keys(Pe))Pe[m].closeRe=new RegExp(so(Pe[m].close),"g"),u[m]={get(){let E=Pe[m];return h.call(this,this._styles?this._styles.concat(E):[E],this._empty,m)}};u.visible={get(){return h.call(this,this._styles||[],!0,"visible")}},Pe.color.closeRe=new RegExp(so(Pe.color.close),"g");for(let m of Object.keys(Pe.color.ansi))s.has(m)||(u[m]={get(){let E=this.level;return function(){let g=Pe.color[n[E]][m].apply(null,arguments),b={open:g,close:Pe.color.close,closeRe:Pe.color.closeRe};return h.call(this,this._styles?this._styles.concat(b):[b],this._empty,m)}}});Pe.bgColor.closeRe=new RegExp(so(Pe.bgColor.close),"g");for(let m of Object.keys(Pe.bgColor.ansi))s.has(m)||(u["bg"+m[0].toUpperCase()+m.slice(1)]={get(){let E=this.level;return function(){let g=Pe.bgColor[n[E]][m].apply(null,arguments),b={open:g,close:Pe.bgColor.close,closeRe:Pe.bgColor.closeRe};return h.call(this,this._styles?this._styles.concat(b):[b],this._empty,m)}}});let l=Object.defineProperties(()=>{},u);function h(m,E,g){let b=function(){return a.apply(b,arguments)};b._styles=m,b._empty=E;let A=this;return Object.defineProperty(b,"level",{enumerable:!0,get:()=>A.level,set(C){A.level=C}}),Object.defineProperty(b,"enabled",{enumerable:!0,get:()=>A.enabled,set(C){A.enabled=C}}),b.hasGrey=this.hasGrey||g==="gray"||g==="grey",b.__proto__=l,b}function a(){let m=arguments,E=m.length,g=String(arguments[0]);if(E===0)return"";if(E>1)for(let A=1;A<E;A++)g+=" "+m[A];if(!this.enabled||this.level<=0||!g)return this._empty?"":g;let b=Pe.dim.open;r&&this.hasGrey&&(Pe.dim.open="");for(let A of this._styles.slice().reverse())g=A.open+g.replace(A.closeRe,A.open)+A.close,g=g.replace(/\r?\n/g,"".concat(A.close,"$&").concat(A.open));return Pe.dim.open=b,g}function f(m,E){if(!Array.isArray(E))return[].slice.call(arguments,1).join(" ");let g=[].slice.call(arguments,2),b=[E.raw[0]];for(let A=1;A<E.length;A++)b.push(String(g[A-1]).replace(/[{}\\]/g,"\\$&")),b.push(String(E.raw[A]));return oA(m,b.join(""))}Object.defineProperties(o.prototype,u),e.exports=o(),e.exports.supportsColor=t,e.exports.default=e.exports}),U0=Z(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.commonDeprecatedHandler=(r,n,{descriptor:s})=>{let u=["".concat($r.default.yellow(typeof r=="string"?s.key(r):s.pair(r))," is deprecated")];return n&&u.push("we now treat it as ".concat($r.default.blue(typeof n=="string"?s.key(n):s.pair(n)))),u.join("; ")+"."}}),cA=Z(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Be.__exportStar(U0,t)}),lA=Z(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.commonInvalidHandler=(r,n,s)=>["Invalid ".concat($r.default.red(s.descriptor.key(r))," value."),"Expected ".concat($r.default.blue(s.schemas[r].expected(s)),","),"but received ".concat($r.default.red(s.descriptor.value(n)),".")].join(" ")}),q0=Z(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Be.__exportStar(lA,t)}),ao=[],$0=[],V0=Z(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.levenUnknownHandler=(r,n,{descriptor:s,logger:u,schemas:c})=>{let o=["Ignored unknown option ".concat($r.default.yellow(s.pair({key:r,value:n})),".")],l=Object.keys(c).sort().find(h=>function(a,f){if(a===f)return 0;var m=a;a.length>f.length&&(a=f,f=m);var E=a.length,g=f.length;if(E===0)return g;if(g===0)return E;for(;E>0&&a.charCodeAt(~-E)===f.charCodeAt(~-g);)E--,g--;if(E===0)return g;for(var b,A,C,F,w=0;w<E&&a.charCodeAt(w)===f.charCodeAt(w);)w++;if(g-=w,(E-=w)==0)return g;for(var B=0,T=0;B<E;)$0[w+B]=a.charCodeAt(w+B),ao[B]=++B;for(;T<g;)for(b=f.charCodeAt(w+T),C=T++,A=T,B=0;B<E;B++)F=b===$0[w+B]?C:C+1,C=ao[B],A=ao[B]=C>A?F>A?A+1:F:F>C?C+1:F;return A}(r,h)<3);l&&o.push("Did you mean ".concat($r.default.blue(s.key(l)),"?")),u.warn(o.join(" "))}}),pA=Z(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Be.__exportStar(V0,t)}),hA=Z(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Be.__exportStar(cA,t),Be.__exportStar(q0,t),Be.__exportStar(pA,t)}),Dr=Z(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});let r=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function n(c,o){let l=new c(o),h=Object.create(l);for(let a of r)a in o&&(h[a]=u(o[a],l,s.prototype[a].length));return h}t.createSchema=n;class s{constructor(o){this.name=o.name}static create(o){return n(this,o)}default(o){}expected(o){return"nothing"}validate(o,l){return!1}deprecated(o,l){return!1}forward(o,l){}redirect(o,l){}overlap(o,l,h){return o}preprocess(o,l){return o}postprocess(o,l){return o}}function u(c,o,l){return typeof c=="function"?(...h)=>c(...h.slice(0,l-1),o,...h.slice(l-1)):()=>c}t.Schema=s}),dA=Z(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class r extends Dr.Schema{constructor(s){super(s),this._sourceName=s.sourceName}expected(s){return s.schemas[this._sourceName].expected(s)}validate(s,u){return u.schemas[this._sourceName].validate(s,u)}redirect(s,u){return this._sourceName}}t.AliasSchema=r}),fA=Z(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class r extends Dr.Schema{expected(){return"anything"}validate(){return!0}}t.AnySchema=r}),mA=Z(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class r extends Dr.Schema{constructor(u){var{valueSchema:c,name:o=c.name}=u,l=Be.__rest(u,["valueSchema","name"]);super(Object.assign({},l,{name:o})),this._valueSchema=c}expected(u){return"an array of ".concat(this._valueSchema.expected(u))}validate(u,c){if(!Array.isArray(u))return!1;let o=[];for(let l of u){let h=c.normalizeValidateResult(this._valueSchema.validate(l,c),l);h!==!0&&o.push(h.value)}return o.length===0||{value:o}}deprecated(u,c){let o=[];for(let l of u){let h=c.normalizeDeprecatedResult(this._valueSchema.deprecated(l,c),l);h!==!1&&o.push(...h.map(({value:a})=>({value:[a]})))}return o}forward(u,c){let o=[];for(let l of u){let h=c.normalizeForwardResult(this._valueSchema.forward(l,c),l);o.push(...h.map(n))}return o}redirect(u,c){let o=[],l=[];for(let h of u){let a=c.normalizeRedirectResult(this._valueSchema.redirect(h,c),h);"remain"in a&&o.push(a.remain),l.push(...a.redirect.map(n))}return o.length===0?{redirect:l}:{redirect:l,remain:o}}overlap(u,c){return u.concat(c)}}function n({from:s,to:u}){return{from:[s],to:u}}t.ArraySchema=r}),DA=Z(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class r extends Dr.Schema{expected(){return"true or false"}validate(s){return typeof s=="boolean"}}t.BooleanSchema=r}),Ge=Z(function(e,t){function r(s,u){return typeof s=="string"||"key"in s?{from:u,to:s}:"from"in s?{from:s.from,to:s.to}:{from:u,to:s.to}}function n(s,u){return s===void 0?[]:Array.isArray(s)?s.map(c=>r(c,u)):[r(s,u)]}Object.defineProperty(t,"__esModule",{value:!0}),t.recordFromArray=function(s,u){let c=Object.create(null);for(let o of s){let l=o[u];if(c[l])throw new Error("Duplicate ".concat(u," ").concat(JSON.stringify(l)));c[l]=o}return c},t.mapFromArray=function(s,u){let c=new Map;for(let o of s){let l=o[u];if(c.has(l))throw new Error("Duplicate ".concat(u," ").concat(JSON.stringify(l)));c.set(l,o)}return c},t.createAutoChecklist=function(){let s=Object.create(null);return u=>{let c=JSON.stringify(u);return!!s[c]||(s[c]=!0,!1)}},t.partition=function(s,u){let c=[],o=[];for(let l of s)u(l)?c.push(l):o.push(l);return[c,o]},t.isInt=function(s){return s===Math.floor(s)},t.comparePrimitive=function(s,u){if(s===u)return 0;let c=typeof s,o=typeof u,l=["undefined","object","boolean","number","string"];return c!==o?l.indexOf(c)-l.indexOf(o):c!=="string"?Number(s)-Number(u):s.localeCompare(u)},t.normalizeDefaultResult=function(s){return s===void 0?{}:s},t.normalizeValidateResult=function(s,u){return s===!0||(s===!1?{value:u}:s)},t.normalizeDeprecatedResult=function(s,u,c=!1){return s!==!1&&(s===!0?!!c||[{value:u}]:"value"in s?[s]:s.length!==0&&s)},t.normalizeTransferResult=r,t.normalizeForwardResult=n,t.normalizeRedirectResult=function(s,u){let c=n(typeof s=="object"&&"redirect"in s?s.redirect:s,u);return c.length===0?{remain:u,redirect:c}:typeof s=="object"&&"remain"in s?{remain:s.remain,redirect:c}:{redirect:c}}}),gA=Z(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class r extends Dr.Schema{constructor(s){super(s),this._choices=Ge.mapFromArray(s.choices.map(u=>u&&typeof u=="object"?u:{value:u}),"value")}expected({descriptor:s}){let u=Array.from(this._choices.keys()).map(l=>this._choices.get(l)).filter(l=>!l.deprecated).map(l=>l.value).sort(Ge.comparePrimitive).map(s.value),c=u.slice(0,-2),o=u.slice(-2);return c.concat(o.join(" or ")).join(", ")}validate(s){return this._choices.has(s)}deprecated(s){let u=this._choices.get(s);return!(!u||!u.deprecated)&&{value:s}}forward(s){let u=this._choices.get(s);return u?u.forward:void 0}redirect(s){let u=this._choices.get(s);return u?u.redirect:void 0}}t.ChoiceSchema=r}),W0=Z(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class r extends Dr.Schema{expected(){return"a number"}validate(s,u){return typeof s=="number"}}t.NumberSchema=r}),yA=Z(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class r extends W0.NumberSchema{expected(){return"an integer"}validate(s,u){return u.normalizeValidateResult(super.validate(s,u),s)===!0&&Ge.isInt(s)}}t.IntegerSchema=r}),EA=Z(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class r extends Dr.Schema{expected(){return"a string"}validate(s){return typeof s=="string"}}t.StringSchema=r}),CA=Z(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Be.__exportStar(dA,t),Be.__exportStar(fA,t),Be.__exportStar(mA,t),Be.__exportStar(DA,t),Be.__exportStar(gA,t),Be.__exportStar(yA,t),Be.__exportStar(W0,t),Be.__exportStar(EA,t)}),Hi=Z(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultDescriptor=M0.apiDescriptor,t.defaultUnknownHandler=V0.levenUnknownHandler,t.defaultInvalidHandler=q0.commonInvalidHandler,t.defaultDeprecatedHandler=U0.commonDeprecatedHandler}),bA=Z(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=(n,s,u)=>new r(s,u).normalize(n);class r{constructor(s,u){let{logger:c=console,descriptor:o=Hi.defaultDescriptor,unknown:l=Hi.defaultUnknownHandler,invalid:h=Hi.defaultInvalidHandler,deprecated:a=Hi.defaultDeprecatedHandler}=u||{};this._utils={descriptor:o,logger:c||{warn:()=>{}},schemas:Ge.recordFromArray(s,"name"),normalizeDefaultResult:Ge.normalizeDefaultResult,normalizeDeprecatedResult:Ge.normalizeDeprecatedResult,normalizeForwardResult:Ge.normalizeForwardResult,normalizeRedirectResult:Ge.normalizeRedirectResult,normalizeValidateResult:Ge.normalizeValidateResult},this._unknownHandler=l,this._invalidHandler=h,this._deprecatedHandler=a,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=Ge.createAutoChecklist()}normalize(s){let u={},c=[s],o=()=>{for(;c.length!==0;){let l=c.shift(),h=this._applyNormalization(l,u);c.push(...h)}};o();for(let l of Object.keys(this._utils.schemas)){let h=this._utils.schemas[l];if(!(l in u)){let a=Ge.normalizeDefaultResult(h.default(this._utils));"value"in a&&c.push({[l]:a.value})}}o();for(let l of Object.keys(this._utils.schemas)){let h=this._utils.schemas[l];l in u&&(u[l]=h.postprocess(u[l],this._utils))}return u}_applyNormalization(s,u){let c=[],[o,l]=Ge.partition(Object.keys(s),h=>h in this._utils.schemas);for(let h of o){let a=this._utils.schemas[h],f=a.preprocess(s[h],this._utils),m=Ge.normalizeValidateResult(a.validate(f,this._utils),f);if(m!==!0){let{value:A}=m,C=this._invalidHandler(h,A,this._utils);throw typeof C=="string"?new Error(C):C}let E=({from:A,to:C})=>{c.push(typeof C=="string"?{[C]:A}:{[C.key]:C.value})},g=({value:A,redirectTo:C})=>{let F=Ge.normalizeDeprecatedResult(a.deprecated(A,this._utils),f,!0);if(F!==!1)if(F===!0)this._hasDeprecationWarned(h)||this._utils.logger.warn(this._deprecatedHandler(h,C,this._utils));else for(let{value:w}of F){let B={key:h,value:w};if(!this._hasDeprecationWarned(B)){let T=typeof C=="string"?{key:C,value:w}:C;this._utils.logger.warn(this._deprecatedHandler(B,T,this._utils))}}};Ge.normalizeForwardResult(a.forward(f,this._utils),f).forEach(E);let b=Ge.normalizeRedirectResult(a.redirect(f,this._utils),f);if(b.redirect.forEach(E),"remain"in b){let A=b.remain;u[h]=h in u?a.overlap(u[h],A,this._utils):A,g({value:A})}for(let{from:A,to:C}of b.redirect)g({value:A,redirectTo:C})}for(let h of l){let a=s[h],f=this._unknownHandler(h,a,this._utils);if(f)for(let m of Object.keys(f)){let E={[m]:f[m]};m in this._utils.schemas?c.push(E):Object.assign(u,E)}}return c}}t.Normalizer=r}),ct=Z(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Be.__exportStar(Kb,t),Be.__exportStar(hA,t),Be.__exportStar(CA,t),Be.__exportStar(bA,t),Be.__exportStar(Dr,t)}),uo=[],z0=[],H0=(e,t)=>{if(e===t)return 0;let r=e;e.length>t.length&&(e=t,t=r);let n=e.length,s=t.length;for(;n>0&&e.charCodeAt(~-n)===t.charCodeAt(~-s);)n--,s--;let u,c,o,l,h=0;for(;h<n&&e.charCodeAt(h)===t.charCodeAt(h);)h++;if(n-=h,s-=h,n===0)return s;let a=0,f=0;for(;a<n;)z0[a]=e.charCodeAt(h+a),uo[a]=++a;for(;f<s;)for(u=t.charCodeAt(h+f),o=f++,c=f,a=0;a<n;a++)l=u===z0[a]?o:o+1,o=uo[a],c=uo[a]=o>c?l>c?c+1:l:l>o?o+1:l;return c},G0=H0,AA=H0;G0.default=AA;var xs={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},J0={};for(let e of Object.keys(xs))J0[xs[e]]=e;var G={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}},Vr=G;for(let e of Object.keys(G)){if(!("channels"in G[e]))throw new Error("missing channels property: "+e);if(!("labels"in G[e]))throw new Error("missing channel labels property: "+e);if(G[e].labels.length!==G[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=G[e];delete G[e].channels,delete G[e].labels,Object.defineProperty(G[e],"channels",{value:t}),Object.defineProperty(G[e],"labels",{value:r})}function xA(e){let t=function(){let n={},s=Object.keys(Vr);for(let u=s.length,c=0;c<u;c++)n[s[c]]={distance:-1,parent:null};return n}(),r=[e];for(t[e].distance=0;r.length;){let n=r.pop(),s=Object.keys(Vr[n]);for(let u=s.length,c=0;c<u;c++){let o=s[c],l=t[o];l.distance===-1&&(l.distance=t[n].distance+1,l.parent=n,r.unshift(o))}}return t}function FA(e,t){return function(r){return t(e(r))}}function vA(e,t){let r=[t[e].parent,e],n=Vr[t[e].parent][e],s=t[e].parent;for(;t[s].parent;)r.unshift(t[s].parent),n=FA(Vr[t[s].parent][s],n),s=t[s].parent;return n.conversion=r,n}G.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,s=Math.min(t,r,n),u=Math.max(t,r,n),c=u-s,o,l;u===s?o=0:t===u?o=(r-n)/c:r===u?o=2+(n-t)/c:n===u&&(o=4+(t-r)/c),o=Math.min(60*o,360),o<0&&(o+=360);let h=(s+u)/2;return l=u===s?0:h<=.5?c/(u+s):c/(2-u-s),[o,100*l,100*h]},G.rgb.hsv=function(e){let t,r,n,s,u,c=e[0]/255,o=e[1]/255,l=e[2]/255,h=Math.max(c,o,l),a=h-Math.min(c,o,l),f=function(m){return(h-m)/6/a+.5};return a===0?(s=0,u=0):(u=a/h,t=f(c),r=f(o),n=f(l),c===h?s=n-r:o===h?s=1/3+t-n:l===h&&(s=2/3+r-t),s<0?s+=1:s>1&&(s-=1)),[360*s,100*u,100*h]},G.rgb.hwb=function(e){let t=e[0],r=e[1],n=e[2],s=G.rgb.hsl(e)[0],u=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[s,100*u,100*n]},G.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,s=Math.min(1-t,1-r,1-n);return[100*((1-t-s)/(1-s)||0),100*((1-r-s)/(1-s)||0),100*((1-n-s)/(1-s)||0),100*s]},G.rgb.keyword=function(e){let t=J0[e];if(t)return t;let r,n=1/0;for(let c of Object.keys(xs)){let o=(u=xs[c],((s=e)[0]-u[0])**2+(s[1]-u[1])**2+(s[2]-u[2])**2);o<n&&(n=o,r=c)}var s,u;return r},G.keyword.rgb=function(e){return xs[e]},G.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255;return t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,[100*(.4124*t+.3576*r+.1805*n),100*(.2126*t+.7152*r+.0722*n),100*(.0193*t+.1192*r+.9505*n)]},G.rgb.lab=function(e){let t=G.rgb.xyz(e),r=t[0],n=t[1],s=t[2];return r/=95.047,n/=100,s/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,s=s>.008856?s**(1/3):7.787*s+16/116,[116*n-16,500*(r-n),200*(n-s)]},G.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,s,u,c;if(r===0)return c=255*n,[c,c,c];s=n<.5?n*(1+r):n+r-n*r;let o=2*n-s,l=[0,0,0];for(let h=0;h<3;h++)u=t+1/3*-(h-1),u<0&&u++,u>1&&u--,c=6*u<1?o+6*(s-o)*u:2*u<1?s:3*u<2?o+(s-o)*(2/3-u)*6:o,l[h]=255*c;return l},G.hsl.hsv=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,s=r,u=Math.max(n,.01);return n*=2,r*=n<=1?n:2-n,s*=u<=1?u:2-u,[t,100*(n===0?2*s/(u+s):2*r/(n+r)),100*((n+r)/2)]},G.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,n=e[2]/100,s=Math.floor(t)%6,u=t-Math.floor(t),c=255*n*(1-r),o=255*n*(1-r*u),l=255*n*(1-r*(1-u));switch(n*=255,s){case 0:return[n,l,c];case 1:return[o,n,c];case 2:return[c,n,l];case 3:return[c,o,n];case 4:return[l,c,n];case 5:return[n,c,o]}},G.hsv.hsl=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,s=Math.max(n,.01),u,c;c=(2-r)*n;let o=(2-r)*s;return u=r*s,u/=o<=1?o:2-o,u=u||0,c/=2,[t,100*u,100*c]},G.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,s=r+n,u;s>1&&(r/=s,n/=s);let c=Math.floor(6*t),o=1-n;u=6*t-c,(1&c)!=0&&(u=1-u);let l=r+u*(o-r),h,a,f;switch(c){default:case 6:case 0:h=o,a=l,f=r;break;case 1:h=l,a=o,f=r;break;case 2:h=r,a=o,f=l;break;case 3:h=r,a=l,f=o;break;case 4:h=l,a=r,f=o;break;case 5:h=o,a=r,f=l}return[255*h,255*a,255*f]},G.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,s=e[3]/100;return[255*(1-Math.min(1,t*(1-s)+s)),255*(1-Math.min(1,r*(1-s)+s)),255*(1-Math.min(1,n*(1-s)+s))]},G.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,s,u,c;return s=3.2406*t+-1.5372*r+-.4986*n,u=-.9689*t+1.8758*r+.0415*n,c=.0557*t+-.204*r+1.057*n,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,u=u>.0031308?1.055*u**(1/2.4)-.055:12.92*u,c=c>.0031308?1.055*c**(1/2.4)-.055:12.92*c,s=Math.min(Math.max(0,s),1),u=Math.min(Math.max(0,u),1),c=Math.min(Math.max(0,c),1),[255*s,255*u,255*c]},G.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];return t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,[116*r-16,500*(t-r),200*(r-n)]},G.lab.xyz=function(e){let t,r,n;r=(e[0]+16)/116,t=e[1]/500+r,n=r-e[2]/200;let s=r**3,u=t**3,c=n**3;return r=s>.008856?s:(r-16/116)/7.787,t=u>.008856?u:(t-16/116)/7.787,n=c>.008856?c:(n-16/116)/7.787,t*=95.047,r*=100,n*=108.883,[t,r,n]},G.lab.lch=function(e){let t=e[0],r=e[1],n=e[2],s;return s=360*Math.atan2(n,r)/2/Math.PI,s<0&&(s+=360),[t,Math.sqrt(r*r+n*n),s]},G.lch.lab=function(e){let t=e[0],r=e[1],n=e[2]/360*2*Math.PI;return[t,r*Math.cos(n),r*Math.sin(n)]},G.rgb.ansi16=function(e,t=null){let[r,n,s]=e,u=t===null?G.rgb.hsv(e)[2]:t;if(u=Math.round(u/50),u===0)return 30;let c=30+(Math.round(s/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return u===2&&(c+=60),c},G.hsv.ansi16=function(e){return G.rgb.ansi16(G.hsv.rgb(e),e[2])},G.rgb.ansi256=function(e){let t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},G.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},G.ansi256.rgb=function(e){if(e>=232){let r=10*(e-232)+8;return[r,r,r]}let t;return e-=16,[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},G.rgb.hex=function(e){let t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},G.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(s=>s+s).join(""));let n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},G.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,s=Math.max(Math.max(t,r),n),u=Math.min(Math.min(t,r),n),c=s-u,o,l;return o=c<1?u/(1-c):0,l=c<=0?0:s===t?(r-n)/c%6:s===r?2+(n-t)/c:4+(t-r)/c,l/=6,l%=1,[360*l,100*c,100*o]},G.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r),s=0;return n<1&&(s=(r-.5*n)/(1-n)),[e[0],100*n,100*s]},G.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=t*r,s=0;return n<1&&(s=(r-n)/(1-n)),[e[0],100*n,100*s]},G.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[255*n,255*n,255*n];let s=[0,0,0],u=t%1*6,c=u%1,o=1-c,l=0;switch(Math.floor(u)){case 0:s[0]=1,s[1]=c,s[2]=0;break;case 1:s[0]=o,s[1]=1,s[2]=0;break;case 2:s[0]=0,s[1]=1,s[2]=c;break;case 3:s[0]=0,s[1]=o,s[2]=1;break;case 4:s[0]=c,s[1]=0,s[2]=1;break;default:s[0]=1,s[1]=0,s[2]=o}return l=(1-r)*n,[255*(r*s[0]+l),255*(r*s[1]+l),255*(r*s[2]+l)]},G.hcg.hsv=function(e){let t=e[1]/100,r=t+e[2]/100*(1-t),n=0;return r>0&&(n=t/r),[e[0],100*n,100*r]},G.hcg.hsl=function(e){let t=e[1]/100,r=e[2]/100*(1-t)+.5*t,n=0;return r>0&&r<.5?n=t/(2*r):r>=.5&&r<1&&(n=t/(2*(1-r))),[e[0],100*n,100*r]},G.hcg.hwb=function(e){let t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},G.hwb.hcg=function(e){let t=e[1]/100,r=1-e[2]/100,n=r-t,s=0;return n<1&&(s=(r-n)/(1-n)),[e[0],100*n,100*s]},G.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},G.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},G.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},G.gray.hsl=function(e){return[0,0,e[0]]},G.gray.hsv=G.gray.hsl,G.gray.hwb=function(e){return[0,100,e[0]]},G.gray.cmyk=function(e){return[0,0,0,e[0]]},G.gray.lab=function(e){return[e[0],0,0]},G.gray.hex=function(e){let t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},G.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};var Pn={};Object.keys(Vr).forEach(e=>{Pn[e]={},Object.defineProperty(Pn[e],"channels",{value:Vr[e].channels}),Object.defineProperty(Pn[e],"labels",{value:Vr[e].labels});let t=function(r){let n=xA(r),s={},u=Object.keys(n);for(let c=u.length,o=0;o<c;o++){let l=u[o];n[l].parent!==null&&(s[l]=vA(l,n))}return s}(e);Object.keys(t).forEach(r=>{let n=t[r];Pn[e][r]=function(s){let u=function(...c){let o=c[0];if(o==null)return o;o.length>1&&(c=o);let l=s(c);if(typeof l=="object")for(let h=l.length,a=0;a<h;a++)l[a]=Math.round(l[a]);return l};return"conversion"in s&&(u.conversion=s.conversion),u}(n),Pn[e][r].raw=function(s){let u=function(...c){let o=c[0];return o==null?o:(o.length>1&&(c=o),s(c))};return"conversion"in s&&(u.conversion=s.conversion),u}(n)})});var wA=Pn,Fs=Z(function(e){let t=(h,a)=>(...f)=>{let m=h(...f);return"[".concat(m+a,"m")},r=(h,a)=>(...f)=>{let m=h(...f);return"[".concat(38+a,";5;").concat(m,"m")},n=(h,a)=>(...f)=>{let m=h(...f);return"[".concat(38+a,";2;").concat(m[0],";").concat(m[1],";").concat(m[2],"m")},s=h=>h,u=(h,a,f)=>[h,a,f],c=(h,a,f)=>{Object.defineProperty(h,a,{get:()=>{let m=f();return Object.defineProperty(h,a,{value:m,enumerable:!0,configurable:!0}),m},enumerable:!0,configurable:!0})},o,l=(h,a,f,m)=>{o===void 0&&(o=wA);let E=m?10:0,g={};for(let[b,A]of Object.entries(o)){let C=b==="ansi16"?"ansi":b;b===a?g[C]=h(f,E):typeof A=="object"&&(g[C]=h(A[a],E))}return g};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){let h=new Map,a={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};a.color.gray=a.color.blackBright,a.bgColor.bgGray=a.bgColor.bgBlackBright,a.color.grey=a.color.blackBright,a.bgColor.bgGrey=a.bgColor.bgBlackBright;for(let[f,m]of Object.entries(a)){for(let[E,g]of Object.entries(m))a[E]={open:"[".concat(g[0],"m"),close:"[".concat(g[1],"m")},m[E]=a[E],h.set(g[0],g[1]);Object.defineProperty(a,f,{value:m,enumerable:!1})}return Object.defineProperty(a,"codes",{value:h,enumerable:!1}),a.color.close="[39m",a.bgColor.close="[49m",c(a.color,"ansi",()=>l(t,"ansi16",s,!1)),c(a.color,"ansi256",()=>l(r,"ansi256",s,!1)),c(a.color,"ansi16m",()=>l(n,"rgb",u,!1)),c(a.bgColor,"ansi",()=>l(t,"ansi16",s,!0)),c(a.bgColor,"ansi256",()=>l(r,"ansi256",s,!0)),c(a.bgColor,"ansi16m",()=>l(n,"rgb",u,!0)),a}})}),SA={isatty:()=>!1},Dt=(e,t=Ae.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),s=t.indexOf("--");return n!==-1&&(s===-1||n<s)},X0=gs(Object.freeze({__proto__:null,default:SA})),{env:Ie}=Ae,Nn;function oo(e){return e!==0&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function co(e,t){if(Nn===0)return 0;if(Dt("color=16m")||Dt("color=full")||Dt("color=truecolor"))return 3;if(Dt("color=256"))return 2;if(e&&!t&&Nn===void 0)return 0;let r=Nn||0;if(Ie.TERM==="dumb")return r;if(Ae.platform==="win32"){let n=zi.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in Ie)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(n=>n in Ie)||Ie.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in Ie)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Ie.TEAMCITY_VERSION)?1:0;if("GITHUB_ACTIONS"in Ie)return 1;if(Ie.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Ie){let n=parseInt((Ie.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Ie.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Ie.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Ie.TERM)||"COLORTERM"in Ie?1:r}Dt("no-color")||Dt("no-colors")||Dt("color=false")||Dt("color=never")?Nn=0:(Dt("color")||Dt("colors")||Dt("color=true")||Dt("color=always"))&&(Nn=1),"FORCE_COLOR"in Ie&&(Nn=Ie.FORCE_COLOR==="true"?1:Ie.FORCE_COLOR==="false"?0:Ie.FORCE_COLOR.length===0?1:Math.min(parseInt(Ie.FORCE_COLOR,10),3));var TA={supportsColor:function(e){return oo(co(e,e&&e.isTTY))},stdout:oo(co(!0,X0.isatty(1))),stderr:oo(co(!0,X0.isatty(2)))},BA={stringReplaceAll:(e,t,r)=>{let n=e.indexOf(t);if(n===-1)return e;let s=t.length,u=0,c="";do c+=e.substr(u,n-u)+t+r,u=n+s,n=e.indexOf(t,u);while(n!==-1);return c+=e.substr(u),c},stringEncaseCRLFWithFirstIndex:(e,t,r,n)=>{let s=0,u="";do{let c=e[n-1]==="\r";u+=e.substr(s,(c?n-1:n)-s)+t+(c?\r
:
)+r,s=n+1,n=e.indexOf(
,s)}while(n!==-1);return u+=e.substr(s),u}},PA=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,K0=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,NA=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,kA=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,IA=new Map([["n",
],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a","\x07"]]);function Y0(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)):IA.get(e)||e}function LA(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),s;for(let u of n){let c=Number(u);if(Number.isNaN(c)){if(!(s=u.match(NA)))throw new Error("Invalid Chalk template style argument: ".concat(u," (in style '").concat(e,"')"));r.push(s[2].replace(kA,(o,l,h)=>l?Y0(l):h))}else r.push(c)}return r}function OA(e){K0.lastIndex=0;let t=[],r;for(;(r=K0.exec(e))!==null;){let n=r[1];if(r[2]){let s=LA(n,r[2]);t.push([n].concat(s))}else t.push([n])}return t}function Q0(e,t){let r={};for(let s of t)for(let u of s.styles)r[u[0]]=s.inverse?null:u.slice(1);let n=e;for(let[s,u]of Object.entries(r))if(Array.isArray(u)){if(!(s in n))throw new Error("Unknown Chalk style: ".concat(s));n=u.length>0?n[s](...u):n[s]}return n}var MA=(e,t)=>{let r=[],n=[],s=[];if(t.replace(PA,(u,c,o,l,h,a)=>{if(c)s.push(Y0(c));else if(l){let f=s.join("");s=[],n.push(r.length===0?f:Q0(e,r)(f)),r.push({inverse:o,styles:OA(l)})}else if(h){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(Q0(e,r)(s.join(""))),s=[],r.pop()}else s.push(a)}),n.push(s.join("")),r.length>0){let u="Chalk template literal is missing ".concat(r.length," closing bracket").concat(r.length===1?"":"s"," (})");throw new Error(u)}return n.join("")},{stdout:lo,stderr:po}=TA,{stringReplaceAll:RA,stringEncaseCRLFWithFirstIndex:jA}=BA,{isArray:Gi}=Array,Z0=["ansi","ansi","ansi256","ansi16m"],kn=Object.create(null),ed=class{constructor(t){return td(t)}},td=e=>{let t={};return((r,n={})=>{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 s=lo?lo.level:0;r.level=n.level===void 0?s:n.level})(t,e),t.template=(...r)=>sd(t.template,...r),Object.setPrototypeOf(t,Ji.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("chalk.constructor() is deprecated. Use new chalk.Instance() instead.")},t.template.Instance=ed,t.template};function Ji(e){return td(e)}for(let[e,t]of Object.entries(Fs))kn[e]={get(){let r=Xi(this,ho(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:r}),r}};kn.visible={get(){let e=Xi(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};var rd=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let e of rd)kn[e]={get(){let{level:t}=this;return function(...r){let n=ho(Fs.color[Z0[t]][e](...r),Fs.color.close,this._styler);return Xi(this,n,this._isEmpty)}}};for(let e of rd)kn["bg"+e[0].toUpperCase()+e.slice(1)]={get(){let{level:t}=this;return function(...r){let n=ho(Fs.bgColor[Z0[t]][e](...r),Fs.bgColor.close,this._styler);return Xi(this,n,this._isEmpty)}}};var _A=Object.defineProperties(()=>{},Object.assign({},kn,{level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}})),ho=(e,t,r)=>{let n,s;return r===void 0?(n=e,s=t):(n=r.openAll+e,s=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:s,parent:r}},Xi=(e,t,r)=>{let n=(...s)=>Gi(s[0])&&Gi(s[0].raw)?nd(n,sd(n,...s)):nd(n,s.length===1?""+s[0]:s.join(" "));return Object.setPrototypeOf(n,_A),n._generator=e,n._styler=t,n._isEmpty=r,n},nd=(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:s}=r;if(t.indexOf("")!==-1)for(;r!==void 0;)t=RA(t,r.close,r.open),r=r.parent;let u=t.indexOf(
);return u!==-1&&(t=jA(t,s,n,u)),n+t+s},fo,sd=(e,...t)=>{let[r]=t;if(!Gi(r)||!Gi(r.raw))return t.join(" ");let n=t.slice(1),s=[r.raw[0]];for(let u=1;u<r.length;u++)s.push(String(n[u-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[u]));return fo===void 0&&(fo=MA),fo(e,s.join(""))};Object.defineProperties(Ji.prototype,kn);var Ki=Ji();Ki.supportsColor=lo,Ki.stderr=Ji({level:po?po.level:0}),Ki.stderr.supportsColor=po;var id=Ki,UA=function(e,t){for(var r=-1,n=t.length,s=e.length;++r<n;)e[s+r]=t[r];return e},qA=typeof dr=="object"&&dr&&dr.Object===Object&&dr,$A=typeof self=="object"&&self&&self.Object===Object&&self,In=(qA||$A||Function("return this")()).Symbol,ad=Object.prototype,VA=ad.hasOwnProperty,WA=ad.toString,vs=In?In.toStringTag:void 0,zA=function(e){var t=VA.call(e,vs),r=e[vs];try{e[vs]=void 0;var n=!0}catch{}var s=WA.call(e);return n&&(t?e[vs]=r:delete e[vs]),s},HA=Object.prototype.toString,GA=function(e){return HA.call(e)},ud=In?In.toStringTag:void 0,JA=function(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":ud&&ud in Object(e)?zA(e):GA(e)},od=function(e){return e!=null&&typeof e=="object"},cd=function(e){return od(e)&&JA(e)=="[object Arguments]"},ld=Object.prototype,XA=ld.hasOwnProperty,KA=ld.propertyIsEnumerable,YA=cd(function(){return arguments}())?cd:function(e){return od(e)&&XA.call(e,"callee")&&!KA.call(e,"callee")},QA=Array.isArray,pd=In?In.isConcatSpreadable:void 0,ZA=function(e){return QA(e)||YA(e)||!!(pd&&e&&e[pd])},ex=function e(t,r,n,s,u){var c=-1,o=t.length;for(n||(n=ZA),u||(u=[]);++c<o;){var l=t[c];r>0&&n(l)?r>1?e(l,r-1,n,s,u):UA(u,l):s||(u[u.length]=l)}return u},mo=function(e){return(e==null?0:e.length)?ex(e,1):[]},Yi={key:e=>e.length===1?"-".concat(e):"--".concat(e),value:e=>ct.apiDescriptor.value(e),pair:({key:e,value:t})=>t===!1?"--no-".concat(e):t===!0?Yi.key(e):t===""?"".concat(Yi.key(e)," without an argument"):"".concat(Yi.key(e),"=").concat(t)},hd=class extends ct.ChoiceSchema{constructor({name:t,flags:r}){super({name:t,choices:r}),this._flags=r.slice().sort()}preprocess(t,r){if(typeof t=="string"&&t.length!==0&&!this._flags.includes(t)){let n=this._flags.find(s=>G0(s,t)<3);if(n)return r.logger.warn(["Unknown flag ".concat(id.yellow(r.descriptor.value(t)),","),"did you mean ".concat(id.blue(r.descriptor.value(n)),"?")].join(" ")),n}return t}expected(){return"a flag"}},Do;function dd(e,t,{logger:r,isCLI:n=!1,passThrough:s=!1}={}){let u=s?Array.isArray(s)?(f,m)=>s.includes(f)?{[f]:m}:void 0:(f,m)=>({[f]:m}):(f,m,E)=>{let g=Bi(E.schemas,["_"]);return ct.levenUnknownHandler(f,m,Object.assign({},E,{schemas:g}))},c=n?Yi:ct.apiDescriptor,o=function(f,{isCLI:m}){let E=[];m&&E.push(ct.AnySchema.create({name:"_"}));for(let g of f)E.push(tx(g,{isCLI:m,optionInfos:f})),g.alias&&m&&E.push(ct.AliasSchema.create({name:g.alias,sourceName:g.name}));return E}(t,{isCLI:n}),l=new ct.Normalizer(o,{logger:r,unknown:u,descriptor:c}),h=r!==!1;h&&Do&&(l._hasDeprecationWarned=Do);let a=l.normalize(e);return h&&(Do=l._hasDeprecationWarned),a}function tx(e,{isCLI:t,optionInfos:r}){let n,s={name:e.name},u={};switch(e.type){case"int":n=ct.IntegerSchema,t&&(s.preprocess=c=>Number(c));break;case"string":n=ct.StringSchema;break;case"choice":n=ct.ChoiceSchema,s.choices=e.choices.map(c=>typeof c=="object"&&c.redirect?Object.assign({},c,{redirect:{to:{key:e.name,value:c.redirect}}}):c);break;case"boolean":n=ct.BooleanSchema;break;case"flag":n=hd,s.flags=mo(r.map(c=>[c.alias,c.description&&c.name,c.oppositeDescription&&"no-".concat(c.name)].filter(Boolean)));break;case"path":n=ct.StringSchema;break;default:throw new Error("Unexpected type ".concat(e.type))}if(e.exception?s.validate=(c,o,l)=>e.exception(c)||o.validate(c,l):s.validate=(c,o,l)=>c===void 0||o.validate(c,l),e.redirect&&(u.redirect=c=>c?{to:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(u.deprecated=!0),t&&!e.array){let c=s.preprocess||(o=>o);s.preprocess=(o,l,h)=>l.preprocess(c(Array.isArray(o)?o[o.length-1]:o),h)}return e.array?ct.ArraySchema.create(Object.assign({},t?{preprocess:c=>[].concat(c)}:{},u,{valueSchema:n.create(s)})):n.create(Object.assign({},s,u))}var fd={normalizeApiOptions:function(e,t,r){return dd(e,t,r)},normalizeCliOptions:function(e,t,r){return dd(e,t,Object.assign({isCLI:!0},r))}};function ws(e,t){let{ignoreDecorators:r}=t||{};if(!r){let n=e.declaration&&e.declaration.decorators||e.decorators;if(n&&n.length>0)return ws(n[0])}return e.range?e.range[0]:e.start}function Ss(e){let t=e.range?e.range[1]:e.end;return e.typeAnnotation?Math.max(t,Ss(e.typeAnnotation)):t}function md(e,t){return ws(e)===ws(t)}var et={locStart:ws,locEnd:Ss,composeLoc:function(e,t=e){let r=ws(e);return[r,typeof t=="number"?r+t:Ss(t)]},hasSameLocStart:md,hasSameLoc:function(e,t){return md(e,t)&&function(r,n){return Ss(r)===Ss(n)}(e,t)}},rx=Z(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|(?:[^\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*()?)|(\/\/.*)|(\/\*(?:^*|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?!\\\]).|\\.)*\]|(?!\/\\\]).|\\.)+\/(?:(?!\s*(?:\b|\u0080-\uFFFF$\\'"~({|+\-!(?!=)|\.?\d))|gmiyus{1,6}\b(?!\u0080-\uFFFF$\\|\s*(?:+\-*%&|^<>!=?({|\/(?!\/*)))))|(0xX\da-fA-F+|0oO0-7+|0bB01+|(?:\d*\.\d+|\d+\.?)(?:eE+-?\d+)?)|((?!\d)(?:(?!\s)$\w\u0080-\uFFFF|\\u\da-fA-F{4}|\\u\{\da-fA-F+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:+\-\/%&|^|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;\(){}])|(\s+)|(^$|\s\S)/g,t.matchToToken=function(r){var n={type:"invalid",value:r0,closed:void 0};return r1?(n.type="string",n.closed=!(!r3&&!r4)):r5?n.type="comment":r6?(n.type="comment",n.closed=!!r7):r8?n.type="regex":r9?n.type="number":r10?n.type="name":r11?n.type="punctuator":r12&&(n.type="whitespace"),n}}),go=Z(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isIdentifierStart=h,t.isIdentifierChar=a,t.isIdentifierName=function(f){let m=!0;for(let E=0,g=Array.from(f);E<g.length;E++){let b=gE.codePointAt(0);if(m){if(!h(b))return!1;m=!1}else if(!a(b))return!1}return!m};let r="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",n="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",s=new RegExp(""+r+""),u=new RegExp(""+r+n+"");r=n=null;let c=0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,107,20,28,22,13,52,76,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8952,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938,o=509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239;function l(f,m){let E=65536;for(let g=0,b=m.length;g<b;g+=2){if(E+=mg,E>f)return!1;if(E+=mg+1,E>=f)return!0}return!1}function h(f){return f<65?f===36:f<=90||(f<97?f===95:f<=122||(f<=65535?f>=170&&s.test(String.fromCharCode(f)):l(f,c)))}function a(f){return f<48?f===36:f<58||!(f<65)&&(f<=90||(f<97?f===95:f<=122||(f<=65535?f>=170&&u.test(String.fromCharCode(f)):l(f,c)||l(f,o))))}}),Ts=Z(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isReservedWord=o,t.isStrictReservedWord=l,t.isStrictBindOnlyReservedWord=h,t.isStrictBindReservedWord=function(a,f){return l(a,f)||h(a)},t.isKeyword=function(a){return s.has(a)};let r="implements","interface","let","package","private","protected","public","static","yield",n="eval","arguments",s=new Set("break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"),u=new Set(r),c=new Set(n);function o(a,f){return f&&a==="await"||a==="enum"}function l(a,f){return o(a,f)||u.has(a)}function h(a){return c.has(a)}}),Dd=Z(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isIdentifierName",{enumerable:!0,get:function(){return go.isIdentifierName}}),Object.defineProperty(t,"isIdentifierChar",{enumerable:!0,get:function(){return go.isIdentifierChar}}),Object.defineProperty(t,"isIdentifierStart",{enumerable:!0,get:function(){return go.isIdentifierStart}}),Object.defineProperty(t,"isReservedWord",{enumerable:!0,get:function(){return Ts.isReservedWord}}),Object.defineProperty(t,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return Ts.isStrictBindOnlyReservedWord}}),Object.defineProperty(t,"isStrictBindReservedWord",{enumerable:!0,get:function(){return Ts.isStrictBindReservedWord}}),Object.defineProperty(t,"isStrictReservedWord",{enumerable:!0,get:function(){return Ts.isStrictReservedWord}}),Object.defineProperty(t,"isKeyword",{enumerable:!0,get:function(){return Ts.isKeyword}})}),nx=/[|\\{}()\^$+*?.]/g,yo=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(nx,"\\$&")},Wr={aliceblue:240,248,255,antiquewhite:250,235,215,aqua:0,255,255,aquamarine:127,255,212,azure:240,255,255,beige:245,245,220,bisque:255,228,196,black:0,0,0,blanchedalmond:255,235,205,blue:0,0,255,blueviolet:138,43,226,brown:165,42,42,burlywood:222,184,135,cadetblue:95,158,160,chartreuse:127,255,0,chocolate:210,105,30,coral:255,127,80,cornflowerblue:100,149,237,cornsilk:255,248,220,crimson:220,20,60,cyan:0,255,255,darkblue:0,0,139,darkcyan:0,139,139,darkgoldenrod:184,134,11,darkgray:169,169,169,darkgreen:0,100,0,darkgrey:169,169,169,darkkhaki:189,183,107,darkmagenta:139,0,139,darkolivegreen:85,107,47,darkorange:255,140,0,darkorchid:153,50,204,darkred:139,0,0,darksalmon:233,150,122,darkseagreen:143,188,143,darkslateblue:72,61,139,darkslategray:47,79,79,darkslategrey:47,79,79,darkturquoise:0,206,209,darkviolet:148,0,211,deeppink:255,20,147,deepskyblue:0,191,255,dimgray:105,105,105,dimgrey:105,105,105,dodgerblue:30,144,255,firebrick:178,34,34,floralwhite:255,250,240,forestgreen:34,139,34,fuchsia:255,0,255,gainsboro:220,220,220,ghostwhite:248,248,255,gold:255,215,0,goldenrod:218,165,32,gray:128,128,128,green:0,128,0,greenyellow:173,255,47,grey:128,128,128,honeydew:240,255,240,hotpink:255,105,180,indianred:205,92,92,indigo:75,0,130,ivory:255,255,240,khaki:240,230,140,lavender:230,230,250,lavenderblush:255,240,245,lawngreen:124,252,0,lemonchiffon:255,250,205,lightblue:173,216,230,lightcoral:240,128,128,lightcyan:224,255,255,lightgoldenrodyellow:250,250,210,lightgray:211,211,211,lightgreen:144,238,144,lightgrey:211,211,211,lightpink:255,182,193,lightsalmon:255,160,122,lightseagreen:32,178,170,lightskyblue:135,206,250,lightslategray:119,136,153,lightslategrey:119,136,153,lightsteelblue:176,196,222,lightyellow:255,255,224,lime:0,255,0,limegreen:50,205,50,linen:250,240,230,magenta:255,0,255,maroon:128,0,0,mediumaquamarine:102,205,170,mediumblue:0,0,205,mediumorchid:186,85,211,mediumpurple:147,112,219,mediumseagreen:60,179,113,mediumslateblue:123,104,238,mediumspringgreen:0,250,154,mediumturquoise:72,209,204,mediumvioletred:199,21,133,midnightblue:25,25,112,mintcream:245,255,250,mistyrose:255,228,225,moccasin:255,228,181,navajowhite:255,222,173,navy:0,0,128,oldlace:253,245,230,olive:128,128,0,olivedrab:107,142,35,orange:255,165,0,orangered:255,69,0,orchid:218,112,214,palegoldenrod:238,232,170,palegreen:152,251,152,paleturquoise:175,238,238,palevioletred:219,112,147,papayawhip:255,239,213,peachpuff:255,218,185,peru:205,133,63,pink:255,192,203,plum:221,160,221,powderblue:176,224,230,purple:128,0,128,rebeccapurple:102,51,153,red:255,0,0,rosybrown:188,143,143,royalblue:65,105,225,saddlebrown:139,69,19,salmon:250,128,114,sandybrown:244,164,96,seagreen:46,139,87,seashell:255,245,238,sienna:160,82,45,silver:192,192,192,skyblue:135,206,235,slateblue:106,90,205,slategray:112,128,144,slategrey:112,128,144,snow:255,250,250,springgreen:0,255,127,steelblue:70,130,180,tan:210,180,140,teal:0,128,128,thistle:216,191,216,tomato:255,99,71,turquoise:64,224,208,violet:238,130,238,wheat:245,222,179,white:255,255,255,whitesmoke:245,245,245,yellow:255,255,0,yellowgreen:154,205,50},zr=Z(function(e){var t={};for(var r in Wr)Wr.hasOwnProperty(r)&&(t[Wrr]=r);var n=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:"hex"},keyword:{channels:1,labels:"keyword"},ansi16:{channels:1,labels:"ansi16"},ansi256:{channels:1,labels:"ansi256"},hcg:{channels:3,labels:"h","c","g"},apple:{channels:3,labels:"r16","g16","b16"},gray:{channels:1,labels:"gray"}};for(var s in n)if(n.hasOwnProperty(s)){if(!("channels"in ns))throw new Error("missing channels property: "+s);if(!("labels"in ns))throw new Error("missing channel labels property: "+s);if(ns.labels.length!==ns.channels)throw new Error("channel and label counts mismatch: "+s);var u=ns.channels,c=ns.labels;delete ns.channels,delete ns.labels,Object.defineProperty(ns,"channels",{value:u}),Object.defineProperty(ns,"labels",{value:c})}n.rgb.hsl=function(o){var l,h,a=o0/255,f=o1/255,m=o2/255,E=Math.min(a,f,m),g=Math.max(a,f,m),b=g-E;return g===E?l=0:a===g?l=(f-m)/b:f===g?l=2+(m-a)/b:m===g&&(l=4+(a-f)/b),(l=Math.min(60*l,360))<0&&(l+=360),h=(E+g)/2,l,100*(g===E?0:h<=.5?b/(g+E):b/(2-g-E)),100*h},n.rgb.hsv=function(o){var l,h,a,f,m,E=o0/255,g=o1/255,b=o2/255,A=Math.max(E,g,b),C=A-Math.min(E,g,b),F=function(w){return(A-w)/6/C+.5};return C===0?f=m=0:(m=C/A,l=F(E),h=F(g),a=F(b),E===A?f=a-h:g===A?f=1/3+l-a:b===A&&(f=2/3+h-l),f<0?f+=1:f>1&&(f-=1)),360*f,100*m,100*A},n.rgb.hwb=function(o){var l=o0,h=o1,a=o2;return[n.rgb.hsl(o)0,100*(1/255*Math.min(l,Math.min(h,a))),100*(a=1-1/255*Math.max(l,Math.max(h,a)))]},n.rgb.cmyk=function(o){var l,h=o0/255,a=o1/255,f=o2/255;return100*((1-h-(l=Math.min(1-h,1-a,1-f)))/(1-l)||0),100*((1-a-l)/(1-l)||0),100*((1-f-l)/(1-l)||0),100*l},n.rgb.keyword=function(o){var l=to;if(l)return l;var h,a,f,m=1/0;for(var E in Wr)if(Wr.hasOwnProperty(E)){var g=WrE,b=(a=o,f=g,Math.pow(a0-f0,2)+Math.pow(a1-f1,2)+Math.pow(a2-f2,2));b<m&&(m=b,h=E)}return h},n.keyword.rgb=function(o){return Wro},n.rgb.xyz=function(o){var l=o0/255,h=o1/255,a=o2/255;return100*(.4124*(l=l>.04045?Math.pow((l+.055)/1.055,2.4):l/12.92)+.3576*(h=h>.04045?Math.pow((h+.055)/1.055,2.4):h/12.92)+.1805*(a=a>.04045?Math.pow((a+.055)/1.055,2.4):a/12.92)),100*(.2126*l+.7152*h+.0722*a),100*(.0193*l+.1192*h+.9505*a)},n.rgb.lab=function(o){var l=n.rgb.xyz(o),h=l0,a=l1,f=l2;return a/=100,f/=108.883,h=(h/=95.047)>.008856?Math.pow(h,1/3):7.787*h+16/116,116*(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116)-16,500*(h-a),200*(a-(f=f>.008856?Math.pow(f,1/3):7.787*f+16/116))},n.hsl.rgb=function(o){var l,h,a,f,m,E=o0/360,g=o1/100,b=o2/100;if(g===0)returnm=255*b,m,m;l=2*b-(h=b<.5?b*(1+g):b+g-b*g),f=0,0,0;for(var A=0;A<3;A++)(a=E+1/3*-(A-1))<0&&a++,a>1&&a--,m=6*a<1?l+6*(h-l)*a:2*a<1?h:3*a<2?l+(h-l)*(2/3-a)*6:l,fA=255*m;return f},n.hsl.hsv=function(o){var l=o0,h=o1/100,a=o2/100,f=h,m=Math.max(a,.01);return h*=(a*=2)<=1?a:2-a,f*=m<=1?m:2-m,l,100*(a===0?2*f/(m+f):2*h/(a+h)),100*((a+h)/2)},n.hsv.rgb=function(o){var l=o0/60,h=o1/100,a=o2/100,f=Math.floor(l)%6,m=l-Math.floor(l),E=255*a*(1-h),g=255*a*(1-h*m),b=255*a*(1-h*(1-m));switch(a*=255,f){case 0:returna,b,E;case 1:returng,a,E;case 2:returnE,a,b;case 3:returnE,g,a;case 4:returnb,E,a;case 5:returna,E,g}},n.hsv.hsl=function(o){var l,h,a,f=o0,m=o1/100,E=o2/100,g=Math.max(E,.01);return a=(2-m)*E,h=m*g,f,100*(h=(h/=(l=(2-m)*g)<=1?l:2-l)||0),100*(a/=2)},n.hwb.rgb=function(o){var l,h,a,f,m,E,g,b=o0/360,A=o1/100,C=o2/100,F=A+C;switch(F>1&&(A/=F,C/=F),a=6*b-(l=Math.floor(6*b)),(1&l)!=0&&(a=1-a),f=A+a*((h=1-C)-A),l){default:case 6:case 0:m=h,E=f,g=A;break;case 1:m=f,E=h,g=A;break;case 2:m=A,E=h,g=f;break;case 3:m=A,E=f,g=h;break;case 4:m=f,E=A,g=h;break;case 5:m=h,E=A,g=f}return255*m,255*E,255*g},n.cmyk.rgb=function(o){var l=o0/100,h=o1/100,a=o2/100,f=o3/100;return255*(1-Math.min(1,l*(1-f)+f)),255*(1-Math.min(1,h*(1-f)+f)),255*(1-Math.min(1,a*(1-f)+f))},n.xyz.rgb=function(o){var l,h,a,f=o0/100,m=o1/100,E=o2/100;return h=-.9689*f+1.8758*m+.0415*E,a=.0557*f+-.204*m+1.057*E,l=(l=3.2406*f+-1.5372*m+-.4986*E)>.0031308?1.055*Math.pow(l,1/2.4)-.055:12.92*l,h=h>.0031308?1.055*Math.pow(h,1/2.4)-.055:12.92*h,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:12.92*a,255*(l=Math.min(Math.max(0,l),1)),255*(h=Math.min(Math.max(0,h),1)),255*(a=Math.min(Math.max(0,a),1))},n.xyz.lab=function(o){var l=o0,h=o1,a=o2;return h/=100,a/=108.883,l=(l/=95.047)>.008856?Math.pow(l,1/3):7.787*l+16/116,116*(h=h>.008856?Math.pow(h,1/3):7.787*h+16/116)-16,500*(l-h),200*(h-(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116))},n.lab.xyz=function(o){var l,h,a,f=o0;l=o1/500+(h=(f+16)/116),a=h-o2/200;var m=Math.pow(h,3),E=Math.pow(l,3),g=Math.pow(a,3);return h=m>.008856?m:(h-16/116)/7.787,l=E>.008856?E:(l-16/116)/7.787,a=g>.008856?g:(a-16/116)/7.787,l*=95.047,h*=100,a*=108.883},n.lab.lch=function(o){var l,h=o0,a=o1,f=o2;return(l=360*Math.atan2(f,a)/2/Math.PI)<0&&(l+=360),h,Math.sqrt(a*a+f*f),l},n.lch.lab=function(o){var l,h=o0,a=o1;return l=o2/360*2*Math.PI,h,a*Math.cos(l),a*Math.sin(l)},n.rgb.ansi16=function(o){var l=o0,h=o1,a=o2,f=1 in arguments?arguments1:n.rgb.hsv(o)2;if((f=Math.round(f/50))===0)return 30;var m=30+(Math.round(a/255)<<2|Math.round(h/255)<<1|Math.round(l/255));return f===2&&(m+=60),m},n.hsv.ansi16=function(o){return n.rgb.ansi16(n.hsv.rgb(o),o2)},n.rgb.ansi256=function(o){var l=o0,h=o1,a=o2;return l===h&&h===a?l<8?16:l>248?231:Math.round((l-8)/247*24)+232:16+36*Math.round(l/255*5)+6*Math.round(h/255*5)+Math.round(a/255*5)},n.ansi16.rgb=function(o){var l=o%10;if(l===0||l===7)return o>50&&(l+=3.5),l=l/10.5*255,l,l;var h=.5*(1+~~(o>50));return(1&l)*h*255,(l>>1&1)*h*255,(l>>2&1)*h*255},n.ansi256.rgb=function(o){if(o>=232){var l=10*(o-232)+8;returnl,l,l}var h;return o-=16,Math.floor(o/36)/5*255,Math.floor((h=o%36)/6)/5*255,h%6/5*255},n.rgb.hex=function(o){var l=(((255&Math.round(o0))<<16)+((255&Math.round(o1))<<8)+(255&Math.round(o2))).toString(16).toUpperCase();return"000000".substring(l.length)+l},n.hex.rgb=function(o){var l=o.toString(16).match(/a-f0-9{6}|a-f0-9{3}/i);if(!l)return0,0,0;var h=l0;l0.length===3&&(h=h.split("").map(function(f){return f+f}).join(""));var a=parseInt(h,16);returna>>16&255,a>>8&255,255&a},n.rgb.hcg=function(o){var l,h=o0/255,a=o1/255,f=o2/255,m=Math.max(Math.max(h,a),f),E=Math.min(Math.min(h,a),f),g=m-E;return l=g<=0?0:m===h?(a-f)/g%6:m===a?2+(f-h)/g:4+(h-a)/g+4,l/=6,360*(l%=1),100*g,100*(g<1?E/(1-g):0)},n.hsl.hcg=function(o){var l=o1/100,h=o2/100,a=1,f=0;return(a=h<.5?2*l*h:2*l*(1-h))<1&&(f=(h-.5*a)/(1-a)),[o0,100*a,100*f]},n.hsv.hcg=function(o){var l=o1/100,h=o2/100,a=l*h,f=0;return a<1&&(f=(h-a)/(1-a)),[o0,100*a,100*f]},n.hcg.rgb=function(o){var l=o0/360,h=o1/100,a=o2/100;if(h===0)return255*a,255*a,255*a;var f,m=0,0,0,E=l%1*6,g=E%1,b=1-g;switch(Math.floor(E)){case 0:m0=1,m1=g,m2=0;break;case 1:m0=b,m1=1,m2=0;break;case 2:m0=0,m1=1,m2=g;break;case 3:m0=0,m1=b,m2=1;break;case 4:m0=g,m1=0,m2=1;break;default:m0=1,m1=0,m2=b}return f=(1-h)*a,[255*(h*m0+f),255*(h*m1+f),255*(h*m2+f)]},n.hcg.hsv=function(o){var l=o1/100,h=l+o2/100*(1-l),a=0;return h>0&&(a=l/h),[o0,100*a,100*h]},n.hcg.hsl=function(o){var l=o1/100,h=o2/100*(1-l)+.5*l,a=0;return h>0&&h<.5?a=l/(2*h):h>=.5&&h<1&&(a=l/(2*(1-h))),[o0,100*a,100*h]},n.hcg.hwb=function(o){var l=o1/100,h=l+o2/100*(1-l);return[o0,100*(h-l),100*(1-h)]},n.hwb.hcg=function(o){var l=o1/100,h=1-o2/100,a=h-l,f=0;return a<1&&(f=(h-a)/(1-a)),[o0,100*a,100*f]},n.apple.rgb=function(o){return[o0/65535*255,o1/65535*255,o2/65535*255]},n.rgb.apple=function(o){return[o0/255*65535,o1/255*65535,o2/255*65535]},n.gray.rgb=function(o){return[o0/100*255,o0/100*255,o0/100*255]},n.gray.hsl=n.gray.hsv=function(o){return[0,0,o0]},n.gray.hwb=function(o){return[0,100,o0]},n.gray.cmyk=function(o){return[0,0,0,o0]},n.gray.lab=function(o){return[o0,0,0]},n.gray.hex=function(o){var l=255&Math.round(o0/100*255),h=((l<<16)+(l<<8)+l).toString(16).toUpperCase();return"000000".substring(h.length)+h},n.rgb.gray=function(o){return[(o0+o1+o2)/3/255*100]}});function sx(e){var t=function(){for(var h={},a=Object.keys(zr),f=a.length,m=0;m<f;m++)h[am]={distance:-1,parent:null};return h}(),r=e;for(te.distance=0;r.length;)for(var n=r.pop(),s=Object.keys(zrn),u=s.length,c=0;c<u;c++){var o=sc,l=to;l.distance===-1&&(l.distance=tn.distance+1,l.parent=n,r.unshift(o))}return t}function ix(e,t){return function(r){return t(e(r))}}function ax(e,t){for(var r=[te.parent,e],n=zr[te.parent]e,s=te.parent;ts.parent;)r.unshift(ts.parent),n=ix(zr[ts.parent]s,n),s=ts.parent;return n.conversion=r,n}var Ln={};Object.keys(zr).forEach(function(e){Lne={},Object.defineProperty(Lne,"channels",{value:zre.channels}),Object.defineProperty(Lne,"labels",{value:zre.labels});var t=function(r){for(var n=sx(r),s={},u=Object.keys(n),c=u.length,o=0;o<c;o++){var l=uo;nl.parent!==null&&(sl=ax(l,n))}return s}(e);Object.keys(t).forEach(function(r){var n=tr;Lner=function(s){var u=function(c){if(c==null)return c;arguments.length>1&&(c=Array.prototype.slice.call(arguments));var o=s(c);if(typeof o=="object")for(var l=o.length,h=0;h<l;h++)oh=Math.round(oh);return o};return"conversion"in s&&(u.conversion=s.conversion),u}(n),Lner.raw=function(s){var u=function(c){return c==null?c:(arguments.length>1&&(c=Array.prototype.slice.call(arguments)),s(c))};return"conversion"in s&&(u.conversion=s.conversion),u}(n)})});var On=Ln,Ne=Z(function(e){let t=(s,u)=>function(){let c=s.apply(On,arguments);return"[".concat(c+u,"m")},r=(s,u)=>function(){let c=s.apply(On,arguments);return"[".concat(38+u,";5;").concat(c,"m")},n=(s,u)=>function(){let c=s.apply(On,arguments);return"[".concat(38+u,";2;").concat(c0,";").concat(c1,";").concat(c2,"m")};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){let s=new Map,u={modifier:{reset:0,0,bold:1,22,dim:2,22,italic:3,23,underline:4,24,inverse:7,27,hidden:8,28,strikethrough:9,29},color:{black:30,39,red:31,39,green:32,39,yellow:33,39,blue:34,39,magenta:35,39,cyan:36,39,white:37,39,gray:90,39,redBright:91,39,greenBright:92,39,yellowBright:93,39,blueBright:94,39,magentaBright:95,39,cyanBright:96,39,whiteBright:97,39},bgColor:{bgBlack:40,49,bgRed:41,49,bgGreen:42,49,bgYellow:43,49,bgBlue:44,49,bgMagenta:45,49,bgCyan:46,49,bgWhite:47,49,bgBlackBright:100,49,bgRedBright:101,49,bgGreenBright:102,49,bgYellowBright:103,49,bgBlueBright:104,49,bgMagentaBright:105,49,bgCyanBright:106,49,bgWhiteBright:107,49}};u.color.grey=u.color.gray;for(let l of Object.keys(u)){let h=ul;for(let a of Object.keys(h)){let f=ha;ua={open:"[".concat(f0,"m"),close:"[".concat(f1,"m")},ha=ua,s.set(f0,f1)}Object.defineProperty(u,l,{value:h,enumerable:!1}),Object.defineProperty(u,"codes",{value:s,enumerable:!1})}let c=l=>l,o=(l,h,a)=>l,h,a;u.color.close="[39m",u.bgColor.close="[49m",u.color.ansi={ansi:t(c,0)},u.color.ansi256={ansi256:r(c,0)},u.color.ansi16m={rgb:n(o,0)},u.bgColor.ansi={ansi:t(c,10)},u.bgColor.ansi256={ansi256:r(c,10)},u.bgColor.ansi16m={rgb:n(o,10)};for(let l of Object.keys(On)){if(typeof Onl!="object")continue;let h=Onl;l==="ansi16"&&(l="ansi"),"ansi16"in h&&(u.color.ansil=t(h.ansi16,0),u.bgColor.ansil=t(h.ansi16,10)),"ansi256"in h&&(u.color.ansi256l=r(h.ansi256,0),u.bgColor.ansi256l=r(h.ansi256,10)),"rgb"in h&&(u.color.ansi16ml=n(h.rgb,0),u.bgColor.ansi16ml=n(h.rgb,10))}return u}})}),Je=Ae.env,Mn;function Eo(e){return function(t){return t!==0&&{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}(function(t){if(Mn===!1)return 0;if(Se("color=16m")||Se("color=full")||Se("color=truecolor"))return 3;if(Se("color=256"))return 2;if(t&&!t.isTTY&&Mn!==!0)return 0;let r=Mn?1:0;if(Ae.platform==="win32"){let n=zi.release().split(".");return Number(Ae.versions.node.split(".")0)>=8&&Number(n0)>=10&&Number(n2)>=10586?Number(n2)>=14931?3:2:1}if("CI"in Je)return"TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI".some(n=>n in Je)||Je.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in Je)return/^(9\.(0*1-9\d*)\.|\d{2,}\.)/.test(Je.TEAMCITY_VERSION)?1:0;if(Je.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Je){let n=parseInt((Je.TERM_PROGRAM_VERSION||"").split(".")0,10);switch(Je.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Je.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Je.TERM)||"COLORTERM"in Je?1:(Je.TERM,r)}(e))}Se("no-color")||Se("no-colors")||Se("color=false")?Mn=!1:(Se("color")||Se("colors")||Se("color=true")||Se("color=always"))&&(Mn=!0),"FORCE_COLOR"in Je&&(Mn=Je.FORCE_COLOR.length===0||parseInt(Je.FORCE_COLOR,10)!==0);var ux={supportsColor:Eo,stdout:Eo(Ae.stdout),stderr:Eo(Ae.stderr)},ox=/(?:\\(ua-f\d{4}|xa-f\d{2}|.))|(?:\{(~)?(\w+(?:\(^)*\))?(?:\.\w+(?:\(^)*\))?)*)(?: \t|(?=\r?\n)))|(\})|((?:.|\r\n\f)+?)/gi,gd=/(?:^|\.)(\w+)(?:\((^)*)\))?/g,cx=/^('")((?:\\.|(?!\1)^\\)*)\1$/,lx=/\\(ua-f\d{4}|xa-f\d{2}|.)|(^\\)/gi,px=new Map([["n",` ],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a","\x07"]]);function yd(e){return e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):px.get(e)||e}function hx(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),s;for(let u of n)if(isNaN(u)){if(!(s=u.match(cx)))throw new Error("Invalid Chalk template style argument: ".concat(u," (in style '").concat(e,"')"));r.push(s[2].replace(lx,(c,o,l)=>o?yd(o):l))}else r.push(Number(u));return r}function dx(e){gd.lastIndex=0;let t=[],r;for(;(r=gd.exec(e))!==null;){let n=r[1];if(r[2]){let s=hx(n,r[2]);t.push([n].concat(s))}else t.push([n])}return t}function Ed(e,t){let r={};for(let s of t)for(let u of s.styles)r[u[0]]=s.inverse?null:u.slice(1);let n=e;for(let s of Object.keys(r))if(Array.isArray(r[s])){if(!(s in n))throw new Error("Unknown Chalk style: ".concat(s));n=r[s].length>0?n[s].apply(n,r[s]):n[s]}return n}var fx=(e,t)=>{let r=[],n=[],s=[];if(t.replace(ox,(u,c,o,l,h,a)=>{if(c)s.push(yd(c));else if(l){let f=s.join("");s=[],n.push(r.length===0?f:Ed(e,r)(f)),r.push({inverse:o,styles:dx(l)})}else if(h){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(Ed(e,r)(s.join(""))),s=[],r.pop()}else s.push(a)}),n.push(s.join("")),r.length>0){let u="Chalk template literal is missing ".concat(r.length," closing bracket").concat(r.length===1?"":"s"," (})");throw new Error(u)}return n.join("")},mx=Z(function(e){let t=ux.stdout,r=Ae.platform==="win32"&&!(Ae.env.TERM||"").toLowerCase().startsWith("xterm"),n=["ansi","ansi","ansi256","ansi16m"],s=new Set(["gray"]),u=Object.create(null);function c(m,E){E=E||{};let g=t?t.level:0;m.level=E.level===void 0?g:E.level,m.enabled="enabled"in E?E.enabled:m.level>0}function o(m){if(!this||!(this instanceof o)||this.template){let E={};return c(E,m),E.template=function(){let g=[].slice.call(arguments);return f.apply(null,[E.template].concat(g))},Object.setPrototypeOf(E,o.prototype),Object.setPrototypeOf(E.template,E),E.template.constructor=o,E.template}c(this,m)}r&&(Ne.blue.open="[94m");for(let m of Object.keys(Ne))Ne[m].closeRe=new RegExp(yo(Ne[m].close),"g"),u[m]={get(){let E=Ne[m];return h.call(this,this._styles?this._styles.concat(E):[E],this._empty,m)}};u.visible={get(){return h.call(this,this._styles||[],!0,"visible")}},Ne.color.closeRe=new RegExp(yo(Ne.color.close),"g");for(let m of Object.keys(Ne.color.ansi))s.has(m)||(u[m]={get(){let E=this.level;return function(){let g=Ne.color[n[E]][m].apply(null,arguments),b={open:g,close:Ne.color.close,closeRe:Ne.color.closeRe};return h.call(this,this._styles?this._styles.concat(b):[b],this._empty,m)}}});Ne.bgColor.closeRe=new RegExp(yo(Ne.bgColor.close),"g");for(let m of Object.keys(Ne.bgColor.ansi))s.has(m)||(u["bg"+m[0].toUpperCase()+m.slice(1)]={get(){let E=this.level;return function(){let g=Ne.bgColor[n[E]][m].apply(null,arguments),b={open:g,close:Ne.bgColor.close,closeRe:Ne.bgColor.closeRe};return h.call(this,this._styles?this._styles.concat(b):[b],this._empty,m)}}});let l=Object.defineProperties(()=>{},u);function h(m,E,g){let b=function(){return a.apply(b,arguments)};b._styles=m,b._empty=E;let A=this;return Object.defineProperty(b,"level",{enumerable:!0,get:()=>A.level,set(C){A.level=C}}),Object.defineProperty(b,"enabled",{enumerable:!0,get:()=>A.enabled,set(C){A.enabled=C}}),b.hasGrey=this.hasGrey||g==="gray"||g==="grey",b.__proto__=l,b}function a(){let m=arguments,E=m.length,g=String(arguments[0]);if(E===0)return"";if(E>1)for(let A=1;A<E;A++)g+=" "+m[A];if(!this.enabled||this.level<=0||!g)return this._empty?"":g;let b=Ne.dim.open;r&&this.hasGrey&&(Ne.dim.open="");for(let A of this._styles.slice().reverse())g=A.open+g.replace(A.closeRe,A.open)+A.close,g=g.replace(/\r?\n/g,"".concat(A.close,"$&").concat(A.open));return Ne.dim.open=b,g}function f(m,E){if(!Array.isArray(E))return[].slice.call(arguments,1).join(" ");let g=[].slice.call(arguments,2),b=[E.raw[0]];for(let A=1;A<E.length;A++)b.push(String(g[A-1]).replace(/[{}\\]/g,"\\$&")),b.push(String(E.raw[A]));return fx(m,b.join(""))}Object.defineProperties(o.prototype,u),e.exports=o(),e.exports.supportsColor=t,e.exports.default=e.exports}),Dx=Z(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.shouldHighlight=h,t.getChalk=a,t.default=function(f,m={}){if(h(m)){let E=a(m);return function(g,b){return b.replace(n.default,function(...A){let C=function(w){let[B,T]=w.slice(-2),P=(0,n.matchToToken)(w);if(P.type==="name"){if((0,Dd.isKeyword)(P.value)||(0,Dd.isReservedWord)(P.value))return"keyword";if(o.test(P.value)&&(T[B-1]==="<"||T.substr(B-2,2)=="</"))return"jsx_tag";if(P.value[0]!==P.value[0].toLowerCase())return"capitalized"}return P.type==="punctuator"&&l.test(P.value)?"bracket":P.type==="invalid"&&(P.value==="@"||P.value==="#")?"punctuator":P.type}(A),F=g[C];return F?A[0].split(c).map(w=>F(w)).join(
):A[0]})}(function(g){return{keyword:g.cyan,capitalized:g.yellow,jsx_tag:g.yellow,punctuator:g.yellow,number:g.magenta,string:g.green,regex:g.magenta,comment:g.grey,invalid:g.white.bgRed.bold}}(E),f)}return f};var r,n=function(f){if(f&&f.__esModule)return f;if(f===null||typeof f!="object"&&typeof f!="function")return{default:f};var m=u();if(m&&m.has(f))return m.get(f);var E={},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in f)if(Object.prototype.hasOwnProperty.call(f,b)){var A=g?Object.getOwnPropertyDescriptor(f,b):null;A&&(A.get||A.set)?Object.defineProperty(E,b,A):E[b]=f[b]}return E.default=f,m&&m.set(f,E),E}(rx),s=(r=mx)&&r.__esModule?r:{default:r};function u(){if(typeof WeakMap!="function")return null;var f=new WeakMap;return u=function(){return f},f}let c=/\r\n|[\n\r\u2028\u2029]/,o=/^[a-z][\w-]*$/i,l=/^[()[\]{}]$/;function h(f){return s.default.supportsColor||f.forceColor}function a(f){let m=s.default;return f.forceColor&&(m=new s.default.constructor({enabled:!0,level:1})),m}}),gx=Z(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.codeFrameColumns=c,t.default=function(o,l,h,a={}){if(!s){s=!0;let f="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use codeFrameColumns.";Ae.emitWarning?Ae.emitWarning(f,"DeprecationWarning"):(new Error(f).name="DeprecationWarning",console.warn(new Error(f)))}return h=Math.max(h,0),c(o,{start:{column:h,line:l}},a)};var r=function(o){if(o&&o.__esModule)return o;if(o===null||typeof o!="object"&&typeof o!="function")return{default:o};var l=n();if(l&&l.has(o))return l.get(o);var h={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in o)if(Object.prototype.hasOwnProperty.call(o,f)){var m=a?Object.getOwnPropertyDescriptor(o,f):null;m&&(m.get||m.set)?Object.defineProperty(h,f,m):h[f]=o[f]}return h.default=o,l&&l.set(o,h),h}(Dx);function n(){if(typeof WeakMap!="function")return null;var o=new WeakMap;return n=function(){return o},o}let s=!1,u=/\r\n|[\n\r\u2028\u2029]/;function c(o,l,h={}){let a=(h.highlightCode||h.forceColor)&&(0,r.shouldHighlight)(h),f=(0,r.getChalk)(h),m=function(T){return{gutter:T.grey,marker:T.red.bold,message:T.red.bold}}(f),E=(T,P)=>a?T(P):P,g=o.split(u),{start:b,end:A,markerLines:C}=function(T,P,v){let _=Object.assign({column:0,line:-1},T.start),O=Object.assign({},_,T.end),{linesAbove:M=2,linesBelow:q=3}=v||{},j=_.line,W=_.column,z=O.line,H=O.column,Y=Math.max(j-(M+1),0),ye=Math.min(P.length,z+q);j===-1&&(Y=0),z===-1&&(ye=P.length);let ue=z-j,Ce={};if(ue)for(let fe=0;fe<=ue;fe++){let De=fe+j;if(W)if(fe===0){let ke=P[De-1].length;Ce[De]=[W,ke-W+1]}else if(fe===ue)Ce[De]=[0,H];else{let ke=P[De-fe].length;Ce[De]=[0,ke]}else Ce[De]=!0}else Ce[j]=W===H?!W||[W,0]:[W,H-W];return{start:Y,end:ye,markerLines:Ce}}(l,g,h),F=l.start&&typeof l.start.column=="number",w=String(A).length,B=(a?(0,r.default)(o,h):o).split(u).slice(b,A).map((T,P)=>{let v=b+1+P,_=" ".concat(v).slice(-w),O=" ".concat(_," | "),M=C[v],q=!C[v+1];if(M){let j="";if(Array.isArray(M)){let W=T.slice(0,Math.max(M[0]-1,0)).replace(/[^\t]/g," "),z=M[1]||1;j=[
,E(m.gutter,O.replace(/\d/g," ")),W,E(m.marker,"^").repeat(z)].join(""),q&&h.message&&(j+=" "+E(m.message,h.message))}return[E(m.marker,">"),E(m.gutter,O),T,j].join("")}return" ".concat(E(m.gutter,O)).concat(T)}).join(
);return h.message&&!F&&(B="".concat(" ".repeat(w+1)).concat(h.message,
).concat(B)),a?f.reset(B):B}}),yx=gs(Nb),{ConfigError:Ex}=N0,{locStart:Cx,locEnd:bx}=et,Ax=Object.getOwnPropertyNames,xx=Object.getOwnPropertyDescriptor;function Cd(e){let t={};for(let r of e.plugins)if(r.parsers)for(let n of Ax(r.parsers))Object.defineProperty(t,n,xx(r.parsers,n));return t}function bd(e,t){if(t=t||Cd(e),typeof e.parser=="function")return{parse:e.parser,astFormat:"estree",locStart:Cx,locEnd:bx};if(typeof e.parser=="string"){if(Object.prototype.hasOwnProperty.call(t,e.parser))return t[e.parser];throw new Ex(Couldn't resolve parser ".concat(e.parser,'". Parsers must be explicitly added to the standalone bundle.'))}}var Hr={parse:function(e,t){let r=Cd(t),n=Object.keys(r).reduce((u,c)=>Object.defineProperty(u,c,{enumerable:!0,get:()=>r[c].parse}),{}),s=bd(t,r);try{return s.preprocess&&(e=s.preprocess(e,t)),{text:e,ast:s.parse(e,n,t)}}catch(u){let{loc:c}=u;if(c){let{codeFrameColumns:o}=gx;throw u.codeFrame=o(e,c,{highlightCode:!0}),u.message+=
+u.codeFrame,u}throw u.stack}},resolveParser:bd},{UndefinedParserError:Fx}=N0,{getSupportInfo:Ad}=$u,{resolveParser:vx}=Hr,Co={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};function xd(e,t){let r=yx.basename(e).toLowerCase(),n=Ad({plugins:t}).languages.filter(u=>u.since!==null),s=n.find(u=>u.extensions&&u.extensions.some(c=>r.endsWith(c))||u.filenames&&u.filenames.some(c=>c.toLowerCase()===r));if(!s&&!r.includes(".")){let u=function(c){if(typeof c!="string")return"";let o;try{o=bs.openSync(c,"r")}catch{return""}try{let l=new Jb(o).next().toString("utf8"),h=l.match(/^#!\/(?:usr\/)?bin\/env\s+(\S+)/);if(h)return h[1];let a=l.match(/^#!\/(?:usr\/(?:local\/)?)?bin\/(\S+)/);return a?a[1]:""}catch{return""}finally{try{bs.closeSync(o)}catch{}}}(e);s=n.find(c=>c.interpreters&&c.interpreters.includes(u))}return s&&s.parsers[0]}var Fd={normalize:function(e,t){t=t||{};let r=Object.assign({},e),n=Ad({plugins:e.plugins,showUnreleased:!0,showDeprecated:!0}).options,s=Object.assign({},Co,Xb(n.filter(h=>h.default!==void 0).map(h=>[h.name,h.default])));if(!r.parser)if(r.filepath){if(r.parser=xd(r.filepath,r.plugins),!r.parser)throw new Fx("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 u=vx(fd.normalizeApiOptions(r,[n.find(h=>h.name==="parser")],{passThrough:!0,logger:!1}));r.astFormat=u.astFormat,r.locEnd=u.locEnd,r.locStart=u.locStart;let c=function(h){let{astFormat:a}=h;if(!a)throw new Error("getPlugin() requires astFormat to be set");let f=h.plugins.find(m=>m.printers&&m.printers[a]);if(!f)throw new Error(Couldn't find plugin for AST format ".concat(a,'"'));return f}(r);r.printer=c.printers[r.astFormat];let o=n.filter(h=>h.pluginDefaults&&h.pluginDefaults[c.name]!==void 0).reduce((h,a)=>Object.assign(h,{[a.name]:a.pluginDefaults[c.name]}),{}),l=Object.assign({},s,o);return Object.keys(l).forEach(h=>{r[h]==null&&(r[h]=l[h])}),r.parser==="json"&&(r.trailingComma="none"),fd.normalizeApiOptions(r,n,Object.assign({passThrough:Object.keys(Co)},t))},hiddenDefaults:Co,inferParser:xd},wx=function e(t,r,n){if(Array.isArray(t))return t.map(o=>e(o,r,n)).filter(Boolean);if(!t||typeof t!="object")return t;let s=r.printer.massageAstNode,u;u=s&&s.ignoredProperties?s.ignoredProperties:new Set;let c={};for(let o of Object.keys(t))u.has(o)||typeof t[o]=="function"||(c[o]=e(t[o],r,t));if(s){let o=s(t,c,n);if(o===null)return;if(o)return o}return c};function bo(){}bo.ok=function(){},bo.strictEqual=function(){};var Qt=gs(Object.freeze({__proto__:null,default:bo})),{builders:{concat:gr,line:Sx,hardline:yr,breakParent:Tx,indent:Bx,lineSuffix:vd,join:wd,cursor:Sd}}=te,{hasNewline:Rn,skipNewline:Px,skipSpaces:Nx,isPreviousLineEmpty:kx,addLeadingComment:Bs,addDanglingComment:Ao,addTrailingComment:Ps}=ce,xo=Symbol("child-nodes");function Fo(e,t,r){if(!e)return;let{printer:n,locStart:s,locEnd:u}=t;if(r){if(n.canAttachComment&&n.canAttachComment(e)){let o;for(o=r.length-1;o>=0&&!(s(r[o])<=s(e)&&u(r[o])<=u(e));--o);return void r.splice(o+1,0,e)}}else if(e[xo])return e[xo];let c=n.getCommentChildNodes&&n.getCommentChildNodes(e,t)||typeof e=="object"&&Object.keys(e).filter(o=>o!=="enclosingNode"&&o!=="precedingNode"&&o!=="followingNode"&&o!=="tokens"&&o!=="comments").map(o=>e[o]);return c?(r||Object.defineProperty(e,xo,{value:r=[],enumerable:!1}),c.forEach(o=>{Fo(o,t,r)}),r):void 0}function Td(e,t,r){let{locStart:n,locEnd:s}=r,u=n(t),c=s(t),o=Fo(e,r),l,h,a=0,f=o.length;for(;a<f;){let m=a+f>>1,E=o[m],g=n(E),b=s(E);if(g<=u&&c<=b)return t.enclosingNode=E,void Td(E,t,r);if(g<=u)l=E,a=m+1;else{if(!(c<=g))throw new Error("Comment location overlaps with node location");h=E,f=m}}if(t.enclosingNode&&t.enclosingNode.type==="TemplateLiteral"){let{quasis:m}=t.enclosingNode,E=wo(m,t,r);l&&wo(m,l,r)!==E&&(l=null),h&&wo(m,h,r)!==E&&(h=null)}l&&(t.precedingNode=l),h&&(t.followingNode=h)}function Bd(e,t,r){let n=e.length;if(n===0)return;let{precedingNode:s,followingNode:u,enclosingNode:c}=e[0],o=r.printer.getGapRegex&&r.printer.getGapRegex(c)||/^[\s(]*$/,l,h=r.locStart(u);for(l=n;l>0;--l){let a=e[l-1];Qt.strictEqual(a.precedingNode,s),Qt.strictEqual(a.followingNode,u);let f=t.slice(r.locEnd(a),h);if(!o.test(f))break;h=r.locStart(a)}e.forEach((a,f)=>{f<l?Ps(s,a):Bs(u,a)});for(let a of[s,u])a.comments&&a.comments.length>1&&a.comments.sort((f,m)=>r.locStart(f)-r.locStart(m));e.length=0}function vo(e,t){return e.getValue().printed=!0,t.printer.printComment(e,t)}function wo(e,t,r){let n=r.locStart(t)-1;for(let s=1;s<e.length;++s)if(n<r.locStart(e[s]))return s-1;return 0}function Pd(e,t,r){return e.getNode()===t.cursorNode&&e.getValue()?gr([Sd,r,Sd]):r}var he={attach:function(e,t,r,n){if(!Array.isArray(e))return;let s=[],{locStart:u,locEnd:c}=n;e.forEach((o,l)=>{if(n.parser==="json"||n.parser==="json5"||n.parser==="__js_expression"||n.parser==="__vue_expression"){if(u(o)-u(t)<=0)return void Bs(t,o);if(c(o)-c(t)>=0)return void Ps(t,o)}Td(t,o,n);let{precedingNode:h,enclosingNode:a,followingNode:f}=o,m=n.printer.handleComments&&n.printer.handleComments.ownLine?n.printer.handleComments.ownLine:()=>!1,E=n.printer.handleComments&&n.printer.handleComments.endOfLine?n.printer.handleComments.endOfLine:()=>!1,g=n.printer.handleComments&&n.printer.handleComments.remaining?n.printer.handleComments.remaining:()=>!1,b=e.length-1===l;if(Rn(r,u(o),{backwards:!0}))m(o,r,n,t,b)||(f?Bs(f,o):h?Ps(h,o):Ao(a||t,o));else if(Rn(r,c(o)))E(o,r,n,t,b)||(h?Ps(h,o):f?Bs(f,o):Ao(a||t,o));else if(!g(o,r,n,t,b))if(h&&f){let A=s.length;A>0&&s[A-1].followingNode!==o.followingNode&&Bd(s,r,n),s.push(o)}else h?Ps(h,o):f?Bs(f,o):Ao(a||t,o)}),Bd(s,r,n),e.forEach(o=>{delete o.precedingNode,delete o.enclosingNode,delete o.followingNode})},printComments:function(e,t,r,n){let s=e.getValue(),u=t(e),c=s&&s.comments;if(!c||c.length===0)return Pd(e,r,u);let o=[],l=[n?";":"",u];return e.each(h=>{let a=h.getValue(),{leading:f,trailing:m}=a;if(f){let E=function(A,C){let F=A.getValue(),w=vo(A,C);if(!w)return"";if(C.printer.isBlockComment&&C.printer.isBlockComment(F)){let B=Rn(C.originalText,C.locEnd(F))?Rn(C.originalText,C.locStart(F),{backwards:!0})?yr:Sx:" ";return gr([w,B])}return gr([w,yr])}(h,r);if(!E)return;o.push(E);let g=r.originalText,b=Px(g,Nx(g,r.locEnd(a)));b!==!1&&Rn(g,b)&&o.push(yr)}else m&&l.push(function(E,g){let b=E.getValue(),A=vo(E,g);if(!A)return"";let{printer:C,originalText:F,locStart:w}=g,B=C.isBlockComment&&C.isBlockComment(b);if(Rn(F,w(b),{backwards:!0})){let P=kx(F,b,w);return vd(gr([yr,P?yr:"",A]))}let T=gr([" ",A]);return B||(T=gr([vd(T),Tx])),T}(h,r))},"comments"),Pd(e,r,gr(o.concat(l)))},printDanglingComments:function(e,t,r,n){let s=[],u=e.getValue();return u&&u.comments?(e.each(c=>{let o=c.getValue();!o||o.leading||o.trailing||n&&!n(o)||s.push(vo(c,t))},"comments"),s.length===0?"":r?wd(yr,s):Bx(gr([yr,wd(yr,s)]))):""},getSortedChildNodes:Fo,ensureAllCommentsPrinted:function(e){e&&e.forEach(t=>{if(!t.printed)throw new Error('Comment "'+t.value.trim()+'" was not printed. Please report this error!');delete t.printed})}};function Nd(e,t){let r=kd(e.stack,t);return r===-1?null:e.stack[r]}function kd(e,t){for(let r=e.length-1;r>=0;r-=2){let n=e[r];if(n&&!Array.isArray(n)&&--t<0)return r}return-1}var Id=class{constructor(e){this.stack=[e]}getName(){let{stack:e}=this,{length:t}=e;return t>1?e[t-2]:null}getValue(){return fs(this.stack)}getNode(e=0){return Nd(this,e)}getParentNode(e=0){return Nd(this,e+1)}call(e,...t){let{stack:r}=this,{length:n}=r,s=fs(r);for(let c of t)s=s[c],r.push(c,s);let u=e(this);return r.length=n,u}callParent(e,t=0){let r=kd(this.stack,t+1),n=this.stack.splice(r+1),s=e(this);return this.stack.push(...n),s}each(e,...t){let{stack:r}=this,{length:n}=r,s=fs(r);for(let u of t)s=s[u],r.push(u,s);for(let u=0;u<s.length;++u)r.push(u,s[u]),e(this,u),r.length-=2;r.length=n}map(e,...t){let r=[];return this.each((n,s)=>{r[s]=e(n,s)},...t),r}match(...e){let t=this.stack.length-1,r=null,n=this.stack[t--];for(let s of e){if(n===void 0)return!1;let u=null;if(typeof r=="number"&&(u=r,r=this.stack[t--],n=this.stack[t--]),s&&!s(n,r,u))return!1;r=this.stack[t--],n=this.stack[t--]}return!0}},{utils:{stripTrailingHardline:Ix}}=te,{normalize:Lx}=Fd,Ox={printSubtree:function(e,t,r,n){if(r.printer.embed&&r.embeddedLanguageFormatting==="auto")return r.printer.embed(e,t,(s,u,c)=>function(o,l,h,a,{stripTrailingHardline:f=!1}={}){let m=Lx(Object.assign({},h,l,{parentParser:h.parser,embeddedInHtml:!(!h.embeddedInHtml&&h.parser!=="html"&&h.parser!=="vue"&&h.parser!=="angular"&&h.parser!=="lwc"),originalText:o}),{passThrough:!0}),E=Hr.parse(o,m),{ast:g}=E;o=E.text;let b=g.comments;delete g.comments,he.attach(b,g,o,m),m[Symbol.for("comments")]=b||[],m[Symbol.for("tokens")]=g.tokens||[];let A=a(g,m);return he.ensureAllCommentsPrinted(b),f?typeof A=="string"?A.replace(/(?:\r?\n)*$/,""):Ix(A,!0):A}(s,u,r,n,c),r)}},Ld=te,Mx=Ld.builders,{concat:Rx,hardline:jx,addAlignmentToDoc:_x}=Mx,Ux=Ld.utils;function Od(e,t,r=0){let{printer:n}=t;n.preprocess&&(e=n.preprocess(e,t));let s=new Map,u=function c(o,l){let h=o.getValue(),a=h&&typeof h=="object"&&l===void 0;if(a&&s.has(h))return s.get(h);let f;return f=n.willPrintOwnComments&&n.willPrintOwnComments(o,t)?Md(o,t,c,l):he.printComments(o,m=>Md(m,t,c,l),t,l&&l.needsSemi),a&&s.set(h,f),f}(new Id(e));return r>0&&(u=_x(Rx([jx,u]),r,t.tabWidth)),Ux.propagateBreaks(u),u}function Md(e,t,r,n){Qt.ok(e instanceof Id);let s=e.getValue(),{printer:u}=t;if(u.hasPrettierIgnore&&u.hasPrettierIgnore(e))return function(c,o){let{originalText:l,[Symbol.for("comments")]:h,locStart:a,locEnd:f}=o,m=a(c),E=f(c);for(let g of h)a(g)>=m&&f(g)<=E&&(g.printed=!0);return l.slice(m,E)}(s,t);if(s)try{let c=Ox.printSubtree(e,r,t,Od);if(c)return c}catch(c){if(dr.PRETTIER_DEBUG)throw c}return u.print(e,t,r,n)}var So=Od;function Qi(e,t,r,n,s=[]){if(!(t<r.locStart(e)||t>r.locEnd(e))){for(let u of he.getSortedChildNodes(e,r)){let c=Qi(u,t,r,n,[e,...s]);if(c)return c}return!n||n(e)?{node:e,parentNodes:s}:void 0}}var qx=new Set(["ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral"]),$x=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function Rd(e,t){if(t==null)return!1;switch(e.parser){case"flow":case"babel":case"babel-flow":case"babel-ts":case"typescript":case"espree":case"meriyah":return function(r){return r==="Directive"||r==="TypeAlias"||r==="TSExportAssignment"||r.startsWith("Declare")||r.startsWith("TSDeclare")||r.endsWith("Statement")||r.endsWith("Declaration")}(t.type);case"json":return qx.has(t.type);case"graphql":return $x.has(t.kind);case"vue":return t.tag!=="root"}return!1}var jd={calculateRange:function(e,t,r){let n=e.slice(t.rangeStart,t.rangeEnd),s=Math.max(t.rangeStart+n.search(/\S/),t.rangeStart),u;for(u=t.rangeEnd;u>t.rangeStart&&!/\S/.test(e[u-1]);--u);let c=Qi(r,s,t,a=>Rd(t,a)),o=Qi(r,u,t,a=>Rd(t,a));if(!c||!o)return{rangeStart:0,rangeEnd:0};let{startNode:l,endNode:h}=function(a,f,m){let E=a.node,g=f.node;if(E===g)return{startNode:E,endNode:g};for(let b of f.parentNodes){if(!(b.type!=="Program"&&b.type!=="File"&&m.locStart(b)>=m.locStart(a.node)))break;g=b}for(let b of a.parentNodes){if(!(b.type!=="Program"&&b.type!=="File"&&m.locEnd(b)<=m.locEnd(f.node)))break;E=b}return{startNode:E,endNode:g}}(c,o,t);return{rangeStart:Math.min(t.locStart(l),t.locStart(h)),rangeEnd:Math.max(t.locEnd(l),t.locEnd(h))}},findNodeAtOffset:Qi},{printer:{printDocToString:To},debug:{printDocToDebug:Vx}}=te,{getAlignmentSize:Wx}=ce,{guessEndOfLine:zx,convertEndOfLineToChars:_d,countEndOfLineChars:Ud,normalizeEndOfLine:Hx}=Hu,Ns=Fd.normalize,qd=Symbol("cursor");function $d(e,t,r){let n=t.comments;return n&&(delete t.comments,he.attach(n,t,e,r)),r[Symbol.for("comments")]=n||[],r[Symbol.for("tokens")]=t.tokens||[],r.originalText=e,n}function Vd(e,t,r){if(!e||!e.trim().length)return{formatted:"",cursorOffset:-1};r=r||0;let{ast:n,text:s}=Hr.parse(e,t);if(t.cursorOffset>=0){let l=jd.findNodeAtOffset(n,t.cursorOffset,t);l&&l.node&&(t.cursorNode=l.node)}let u=$d(s,n,t),c=So(n,t,r),o=To(c,t);if(he.ensureAllCommentsPrinted(u),r>0){let l=o.formatted.trim();o.cursorNodeStart!==void 0&&(o.cursorNodeStart-=o.formatted.indexOf(l)),o.formatted=l+_d(t.endOfLine)}if(t.cursorOffset>=0){let l,h,a,f,m;if(t.cursorNode&&o.cursorNodeText?(l=t.locStart(t.cursorNode),h=s.slice(l,t.locEnd(t.cursorNode)),a=t.cursorOffset-l,f=o.cursorNodeStart,m=o.cursorNodeText):(l=0,h=s,a=t.cursorOffset,f=0,m=o.formatted),h===m)return{formatted:o.formatted,cursorOffset:f+a};let E=h.split("");E.splice(a,0,qd);let g=m.split(""),b=GC.diffArrays(E,g),A=f;for(let C of b)if(C.removed){if(C.value.includes(qd))break}else A+=C.count;return{formatted:o.formatted,cursorOffset:A}}return{formatted:o.formatted,cursorOffset:-1}}function Bo(e,t,r){return typeof t!="number"||isNaN(t)||t<0||t>e.length?r:t}function Wd(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:s}=t;return r=Bo(e,r,-1),n=Bo(e,n,0),s=Bo(e,s,e.length),Object.assign({},t,{cursorOffset:r,rangeStart:n,rangeEnd:s})}function zd(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:s,endOfLine:u}=Wd(e,t),c=e.charAt(0)==="\uFEFF";if(c&&(e=e.slice(1),r--,n--,s--),u==="auto"&&(u=zx(e)),e.includes("\r")){let o=l=>Ud(e.slice(0,Math.max(l,0)),\r
);r-=o(r),n-=o(n),s-=o(s),e=Hx(e)}return{hasBOM:c,text:e,options:Wd(e,Object.assign({},t,{cursorOffset:r,rangeStart:n,rangeEnd:s,endOfLine:u}))}}function Hd(e,t){let{hasBOM:r,text:n,options:s}=zd(e,Ns(t)),u=Hr.resolveParser(s),c=!u.hasPragma||u.hasPragma(n);if(s.requirePragma&&!c)return{formatted:e,cursorOffset:t.cursorOffset};let o;return s.rangeStart>0||s.rangeEnd<n.length?o=function(l,h){let{ast:a,text:f}=Hr.parse(l,h),{rangeStart:m,rangeEnd:E}=jd.calculateRange(f,h,a),g=f.slice(m,E),b=Math.min(m,f.lastIndexOf(
,m)+1),A=f.slice(b,m).match(/^\s*/)[0],C=Wx(A,h.tabWidth),F=Vd(g,Object.assign({},h,{rangeStart:0,rangeEnd:1/0,cursorOffset:h.cursorOffset>m&&h.cursorOffset<E?h.cursorOffset-m:-1,endOfLine:"lf"}),C),w=F.formatted.trimEnd(),{cursorOffset:B}=h;B>=E?B=h.cursorOffset+(w.length-g.length):F.cursorOffset>=0&&(B=F.cursorOffset+m);let T=f.slice(0,m)+w+f.slice(E);if(h.endOfLine!=="lf"){let P=_d(h.endOfLine);B>=0&&P===\r
&&(B+=Ud(T.slice(0,B),
)),T=T.replace(/\n/g,P)}return{formatted:T,cursorOffset:B}}(n,s):(!c&&s.insertPragma&&s.printer.insertPragma&&(n=s.printer.insertPragma(n)),o=Vd(n,s)),r&&(o.formatted="\uFEFF"+o.formatted,o.cursorOffset>=0&&o.cursorOffset++),o}var jn={formatWithCursor:Hd,parse(e,t,r){let{text:n,options:s}=zd(e,Ns(t)),u=Hr.parse(n,s);return r&&(u.ast=wx(u.ast,s)),u},formatAST(e,t){t=Ns(t);let r=So(e,t);return To(r,t)},formatDoc:(e,t)=>Hd(Vx(e),Object.assign({},t,{parser:"babel"})).formatted,printToDoc(e,t){t=Ns(t);let{ast:r,text:n}=Hr.parse(e,t);return $d(n,r,t),So(r,t)},printDocToString:(e,t)=>To(e,Ns(t))},{getMaxContinuousCount:Gx,getStringWidth:Jx,getAlignmentSize:Xx,getIndentSize:Kx,skip:Yx,skipWhitespace:Qx,skipSpaces:Zx,skipNewline:eF,skipToLineEnd:tF,skipEverythingButNewLine:rF,skipInlineComment:nF,skipTrailingComment:sF,hasNewline:iF,hasNewlineInRange:aF,hasSpaces:uF,isNextLineEmpty:oF,isNextLineEmptyAfterIndex:cF,isPreviousLineEmpty:lF,getNextNonSpaceNonCommentCharacterIndex:pF,makeString:hF,addLeadingComment:dF,addDanglingComment:fF,addTrailingComment:mF}=ce,DF={getMaxContinuousCount:Gx,getStringWidth:Jx,getAlignmentSize:Xx,getIndentSize:Kx,skip:Yx,skipWhitespace:Qx,skipSpaces:Zx,skipNewline:eF,skipToLineEnd:tF,skipEverythingButNewLine:rF,skipInlineComment:nF,skipTrailingComment:sF,hasNewline:iF,hasNewlineInRange:aF,hasSpaces:uF,isNextLineEmpty:oF,isNextLineEmptyAfterIndex:cF,isPreviousLineEmpty:lF,getNextNonSpaceNonCommentCharacterIndex:pF,makeString:hF,addLeadingComment:dF,addDanglingComment:fF,addTrailingComment:mF},Te=function(e,t){let{languageId:r}=e,n=Bi(e,["languageId"]);return Object.assign({linguistLanguageId:r},n,t(e))},gF=Z(function(e){(function(){function t(n){if(n==null)return!1;switch(n.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 r(n){switch(n.type){case"IfStatement":return n.alternate!=null?n.alternate:n.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return n.body}return null}e.exports={isExpression:function(n){if(n==null)return!1;switch(n.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:t,isIterationStatement:function(n){if(n==null)return!1;switch(n.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1},isSourceElement:function(n){return t(n)||n!=null&&n.type==="FunctionDeclaration"},isProblematicIfStatement:function(n){var s;if(n.type!=="IfStatement"||n.alternate==null)return!1;s=n.consequent;do{if(s.type==="IfStatement"&&s.alternate==null)return!0;s=r(s)}while(s);return!1},trailingStatement:r}})()}),Gd=Z(function(e){(function(){var t,r,n,s,u,c;function o(l){return l<=65535?String.fromCharCode(l):String.fromCharCode(Math.floor((l-65536)/1024)+55296)+String.fromCharCode((l-65536)%1024+56320)}for(r={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},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\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},n=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],s=new Array(128),c=0;c<128;++c)s[c]=c>=97&&c<=122||c>=65&&c<=90||c===36||c===95;for(u=new Array(128),c=0;c<128;++c)u[c]=c>=97&&c<=122||c>=65&&c<=90||c>=48&&c<=57||c===36||c===95;e.exports={isDecimalDigit:function(l){return 48<=l&&l<=57},isHexDigit:function(l){return 48<=l&&l<=57||97<=l&&l<=102||65<=l&&l<=70},isOctalDigit:function(l){return l>=48&&l<=55},isWhiteSpace:function(l){return l===32||l===9||l===11||l===12||l===160||l>=5760&&n.indexOf(l)>=0},isLineTerminator:function(l){return l===10||l===13||l===8232||l===8233},isIdentifierStartES5:function(l){return l<128?s[l]:r.NonAsciiIdentifierStart.test(o(l))},isIdentifierPartES5:function(l){return l<128?u[l]:r.NonAsciiIdentifierPart.test(o(l))},isIdentifierStartES6:function(l){return l<128?s[l]:t.NonAsciiIdentifierStart.test(o(l))},isIdentifierPartES6:function(l){return l<128?u[l]:t.NonAsciiIdentifierPart.test(o(l))}}})()}),yF=Z(function(e){(function(){var t=Gd;function r(l,h){return!(!h&&l==="yield")&&n(l,h)}function n(l,h){if(h&&function(a){switch(a){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}(l))return!0;switch(l.length){case 2:return l==="if"||l==="in"||l==="do";case 3:return l==="var"||l==="for"||l==="new"||l==="try";case 4:return l==="this"||l==="else"||l==="case"||l==="void"||l==="with"||l==="enum";case 5:return l==="while"||l==="break"||l==="catch"||l==="throw"||l==="const"||l==="yield"||l==="class"||l==="super";case 6:return l==="return"||l==="typeof"||l==="delete"||l==="switch"||l==="export"||l==="import";case 7:return l==="default"||l==="finally"||l==="extends";case 8:return l==="function"||l==="continue"||l==="debugger";case 10:return l==="instanceof";default:return!1}}function s(l,h){return l==="null"||l==="true"||l==="false"||r(l,h)}function u(l,h){return l==="null"||l==="true"||l==="false"||n(l,h)}function c(l){var h,a,f;if(l.length===0||(f=l.charCodeAt(0),!t.isIdentifierStartES5(f)))return!1;for(h=1,a=l.length;h<a;++h)if(f=l.charCodeAt(h),!t.isIdentifierPartES5(f))return!1;return!0}function o(l){var h,a,f,m,E;if(l.length===0)return!1;for(E=t.isIdentifierStartES6,h=0,a=l.length;h<a;++h){if(55296<=(f=l.charCodeAt(h))&&f<=56319){if(++h>=a||!(56320<=(m=l.charCodeAt(h))&&m<=57343))return!1;f=1024*(f-55296)+(m-56320)+65536}if(!E(f))return!1;E=t.isIdentifierPartES6}return!0}e.exports={isKeywordES5:r,isKeywordES6:n,isReservedWordES5:s,isReservedWordES6:u,isRestrictedWord:function(l){return l==="eval"||l==="arguments"},isIdentifierNameES5:c,isIdentifierNameES6:o,isIdentifierES5:function(l,h){return c(l)&&!s(l,h)},isIdentifierES6:function(l,h){return o(l)&&!u(l,h)}}})()}),EF=Z(function(e,t){t.ast=gF,t.code=Gd,t.keyword=yF}).keyword.isIdentifierNameES5,{getLast:Zi,hasNewline:Po,hasNewlineInRange:CF,skipWhitespace:bF}=ce,{locStart:No,locEnd:ea,hasSameLocStart:Jd}=et,AF=new RegExp("^".concat("(?:(?=.)\\s)","*:")),xF=new RegExp("^".concat("(?:(?=.)\\s)","*::"));function ta(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e))return e.some(n=>ta(n,t));let r=t(e);return typeof r=="boolean"?r:Object.keys(e).some(n=>ta(e[n],t))}function Xd(e){return e.type==="AssignmentExpression"||e.type==="BinaryExpression"||e.type==="LogicalExpression"||e.type==="NGPipeExpression"||e.type==="ConditionalExpression"||e.type==="CallExpression"||e.type==="OptionalCallExpression"||e.type==="MemberExpression"||e.type==="OptionalMemberExpression"||e.type==="SequenceExpression"||e.type==="TaggedTemplateExpression"||e.type==="BindExpression"||e.type==="UpdateExpression"&&!e.prefix||e.type==="TSAsExpression"||e.type==="TSNonNullExpression"}function ks(e){return e.type==="Block"||e.type==="CommentBlock"||e.type==="MultiLine"}var FF=new Set(["ExportDefaultDeclaration","ExportDefaultSpecifier","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration"]);function Kd(e){return e&&FF.has(e.type)}function ra(e){return e.type==="BooleanLiteral"||e.type==="DirectiveLiteral"||e.type==="Literal"||e.type==="NullLiteral"||e.type==="NumericLiteral"||e.type==="BigIntLiteral"||e.type==="DecimalLiteral"||e.type==="RegExpLiteral"||e.type==="StringLiteral"||e.type==="TemplateLiteral"||e.type==="TSTypeLiteral"||e.type==="JSXText"}function Yd(e){return e.type==="NumericLiteral"||e.type==="Literal"&&typeof e.value=="number"}function ko(e){return e.type==="StringLiteral"||e.type==="Literal"&&typeof e.value=="string"}function Is(e){return e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"}function Io(e){return!(e.type!=="CallExpression"&&e.type!=="OptionalCallExpression"||e.callee.type!=="Identifier"||e.callee.name!=="async"&&e.callee.name!=="inject"&&e.callee.name!=="fakeAsync")}function Ls(e){return e.type==="JSXElement"||e.type==="JSXFragment"}function Qd(e){return e.kind==="get"||e.kind==="set"}function Zd(e){return Qd(e)||Jd(e,e.value)}var vF=new Set(["BinaryExpression","LogicalExpression","NGPipeExpression"]),wF=new Set(["AnyTypeAnnotation","TSAnyKeyword","NullLiteralTypeAnnotation","TSNullKeyword","ThisTypeAnnotation","TSThisType","NumberTypeAnnotation","TSNumberKeyword","VoidTypeAnnotation","TSVoidKeyword","BooleanTypeAnnotation","TSBooleanKeyword","BigIntTypeAnnotation","TSBigIntKeyword","SymbolTypeAnnotation","TSSymbolKeyword","StringTypeAnnotation","TSStringKeyword","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType","EmptyTypeAnnotation","MixedTypeAnnotation","TSNeverKeyword","TSObjectKeyword","TSUndefinedKeyword","TSUnknownKeyword"]),ef=/^(skip|[fx]?(it|describe|test))$/;function na(e){return e.type==="CallExpression"||e.type==="OptionalCallExpression"}var SF=new RegExp(([
\r ]+)),TF=new RegExp([^
\r ]);function Lo(e){return ra(e)&&(TF.test(sa(e))||!/\n/.test(sa(e)))}function Oo(e,t){return Ls(t)?$o(t):t.comments&&t.comments.some(r=>r.leading&&Po(e,ea(r)))}function tf(e){return/^(\d+|\d+\.\d+)$/.test(e)}function rf(e){return e.quasis.some(t=>t.value.raw.includes(
))}function sa(e){return e.extra?e.extra.raw:e.raw}var nf={"==":!0,"!=":!0,"===":!0,"!==":!0},ia={"*":!0,"/":!0,"%":!0},Mo={">>":!0,">>>":!0,"<<":!0},sf={};function Ro(e){return sf[e]}[["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].forEach((e,t)=>{e.forEach(r=>{sf[r]=t})});var jo=new WeakMap;function _o(e){if(jo.has(e))return jo.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),jo.set(e,t),t}var Uo=new WeakMap;function qo(e){return e.value.trim()==="prettier-ignore"}function $o(e){return e&&(e.comments&&e.comments.length>0&&e.comments.some(t=>qo(t)&&!t.unignore)||e.prettierIgnore)}function af(e){return $o(e.getValue())}var ge={classChildNeedsASIProtection:function(e){if(e){if(e.static||e.accessibility)return!1;if(!e.computed){let t=e.key&&e.key.name;if(t==="in"||t==="instanceof")return!0}switch(e.type){case"ClassProperty":case"FieldDefinition":case"TSAbstractClassProperty":return e.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{let t=e.value?e.value.async:e.async,r=e.value?e.value.generator:e.generator;return!t&&e.kind!=="get"&&e.kind!=="set"&&!(!e.computed&&!r)}case"TSIndexSignature":return!0;default:return!1}}},classPropMayCauseASIProblems:function(e){let t=e.getNode();if(t.type!=="ClassProperty"&&t.type!=="FieldDefinition")return!1;let r=t.key&&t.key.name;return!(r!=="static"&&r!=="get"&&r!=="set"||t.value||t.typeAnnotation)||void 0},getFunctionParameters:_o,iterateFunctionParametersPath:function(e,t){let r=e.getValue(),n=0,s=u=>t(u,n++);r.this&&e.call(s,"this"),Array.isArray(r.parameters)?e.each(s,"parameters"):Array.isArray(r.params)&&e.each(s,"params"),r.rest&&e.call(s,"rest")},getCallArguments:function(e){if(Uo.has(e))return Uo.get(e);let t=e.type==="ImportExpression"?[e.source]:e.arguments;return Uo.set(e,t),t},iterateCallArgumentsPath:function(e,t){e.getValue().type==="ImportExpression"?e.call(r=>t(r,0),"source"):e.each(t,"arguments")},hasRestParameter:function(e){if(e.rest)return!0;let t=_o(e);return t.length>0&&Zi(t).type==="RestElement"},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"&&Kd(t)?t:null},getTypeScriptMappedTypeModifier:function(e,t){return e==="+"?"+"+t:e==="-"?"-"+t:t},hasDanglingComments:function(e){return e.comments&&e.comments.some(t=>!t.leading&&!t.trailing)},hasFlowAnnotationComment:function(e){return e&&ks(e[0])&&xF.test(e[0].value)},hasFlowShorthandAnnotationComment:function(e){return e.extra&&e.extra.parenthesized&&e.trailingComments&&ks(e.trailingComments[0])&&AF.test(e.trailingComments[0].value)},hasLeadingComment:function(e){return e.comments&&e.comments.some(t=>t.leading)},hasLeadingOwnLineComment:Oo,hasNakedLeftSide:Xd,hasNewlineBetweenOrAfterDecorators:function(e,t){return CF(t.originalText,No(e.decorators[0]),ea(Zi(e.decorators)))||Po(t.originalText,ea(Zi(e.decorators)))},hasNgSideEffect:function(e){return ta(e.getValue(),t=>{switch(t.type){case void 0:return!1;case"CallExpression":case"OptionalCallExpression":case"AssignmentExpression":return!0}})},hasNode:ta,hasPrettierIgnore:function(e){return af(e)||function(t){let r=t.getValue(),n=t.getParentNode();if(!(n&&r&&Ls(r)&&Ls(n)))return!1;let s=null;for(let u=n.children.indexOf(r);u>0;u--){let c=n.children[u-1];if(c.type!=="JSXText"||Lo(c)){s=c;break}}return s&&s.type==="JSXExpressionContainer"&&s.expression.type==="JSXEmptyExpression"&&s.expression.comments&&s.expression.comments.some(u=>qo(u))}(e)},hasTrailingComment:function(e){return e.comments&&e.comments.some(t=>t.trailing)},hasTrailingLineComment:function(e){return e.comments&&e.comments.some(t=>t.trailing&&!ks(t))},hasIgnoreComment:af,hasNodeIgnoreComment:$o,identity:function(e){return e},isBinaryish:function(e){return vF.has(e.type)},isBlockComment:ks,isLineComment:function(e){return e.type==="Line"||e.type==="CommentLine"||e.type==="SingleLine"||e.type==="HashbangComment"||e.type==="HTMLOpen"||e.type==="HTMLClose"},isPrettierIgnoreComment:qo,isCallOrOptionalCallExpression:na,isEmptyJSXElement:function(e){if(e.children.length===0)return!0;if(e.children.length>1)return!1;let t=e.children[0];return ra(t)&&!Lo(t)},isExportDeclaration:Kd,isFlowAnnotationComment:function(e,t){let r=No(t),n=bF(e,ea(t));return n!==!1&&e.slice(r,r+2)==="/*"&&e.slice(n,n+2)==="*/"},isFunctionCompositionArgs:function(e){if(e.length<=1)return!1;let t=0;for(let r of e)if(Is(r)){if(t+=1,t>1)return!0}else if(na(r)){for(let n of r.arguments)if(Is(n))return!0}return!1},isFunctionNotation:Zd,isFunctionOrArrowExpression:Is,isGetterOrSetter:Qd,isJestEachTemplateLiteral:function(e,t){let r=/^[fx]?(describe|it|test)$/;return t.type==="TaggedTemplateExpression"&&t.quasi===e&&t.tag.type==="MemberExpression"&&t.tag.property.type==="Identifier"&&t.tag.property.name==="each"&&(t.tag.object.type==="Identifier"&&r.test(t.tag.object.name)||t.tag.object.type==="MemberExpression"&&t.tag.object.property.type==="Identifier"&&(t.tag.object.property.name==="only"||t.tag.object.property.name==="skip")&&t.tag.object.object.type==="Identifier"&&r.test(t.tag.object.object.name))},isJSXNode:Ls,isJSXWhitespaceExpression:function(e){return e.type==="JSXExpressionContainer"&&ra(e.expression)&&e.expression.value===" "&&!e.expression.comments},isLastStatement:function(e){let t=e.getParentNode();if(!t)return!0;let r=e.getValue(),n=(t.body||t.consequent).filter(s=>s.type!=="EmptyStatement");return n[n.length-1]===r},isLiteral:ra,isLongCurriedCallExpression:function(e){let t=e.getValue(),r=e.getParentNode();return na(t)&&na(r)&&r.callee===t&&t.arguments.length>r.arguments.length&&r.arguments.length>0},isSimpleCallArgument:function e(t,r){if(r>=2)return!1;let n=u=>e(u,r+1),s=t.type==="Literal"&&"regex"in t&&t.regex.pattern||t.type==="RegExpLiteral"&&t.pattern;return!(s&&s.length>5)&&(t.type==="Literal"||t.type==="BigIntLiteral"||t.type==="DecimalLiteral"||t.type==="BooleanLiteral"||t.type==="NullLiteral"||t.type==="NumericLiteral"||t.type==="RegExpLiteral"||t.type==="StringLiteral"||t.type==="Identifier"||t.type==="ThisExpression"||t.type==="Super"||t.type==="PrivateName"||t.type==="ArgumentPlaceholder"||t.type==="Import"||(t.type==="TemplateLiteral"?t.expressions.every(n):t.type==="ObjectExpression"?t.properties.every(u=>!u.computed&&(u.shorthand||u.value&&n(u.value))):t.type==="ArrayExpression"?t.elements.every(u=>u===null||n(u)):t.type==="ImportExpression"?n(t.source):t.type==="CallExpression"||t.type==="OptionalCallExpression"||t.type==="NewExpression"?e(t.callee,r)&&t.arguments.every(n):t.type==="MemberExpression"||t.type==="OptionalMemberExpression"?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)))},isMeaningfulJSXText:Lo,isMemberExpressionChain:function e(t){return(t.type==="MemberExpression"||t.type==="OptionalMemberExpression")&&(t.object.type==="Identifier"||e(t.object))},isMemberish:function(e){return e.type==="MemberExpression"||e.type==="OptionalMemberExpression"||e.type==="BindExpression"&&Boolean(e.object)},isNgForOf:function(e,t,r){return e.type==="NGMicrosyntaxKeyedExpression"&&e.key.name==="of"&&t===1&&r.body[0].type==="NGMicrosyntaxLet"&&r.body[0].value===null},isNumericLiteral:Yd,isObjectType:function(e){return e.type==="ObjectTypeAnnotation"||e.type==="TSTypeLiteral"},isObjectTypePropertyAFunction:function(e){return!(e.type!=="ObjectTypeProperty"&&e.type!=="ObjectTypeInternalSlot"||e.value.type!=="FunctionTypeAnnotation"||e.static||Zd(e))},isSimpleType:function(e){return!!e&&(!(e.type!=="GenericTypeAnnotation"&&e.type!=="TSTypeReference"||e.typeParameters)||!!wF.has(e.type))},isSimpleNumber:tf,isSimpleTemplateLiteral:function(e){let t="expressions";e.type==="TSTemplateLiteralType"&&(t="types");let r=e[t];return r.length!==0&&r.every(n=>{if(n.comments)return!1;if(n.type==="Identifier"||n.type==="ThisExpression")return!0;if(n.type==="MemberExpression"||n.type==="OptionalMemberExpression"){let s=n;for(;s.type==="MemberExpression"||s.type==="OptionalMemberExpression";)if(s.property.type!=="Identifier"&&s.property.type!=="Literal"&&s.property.type!=="StringLiteral"&&s.property.type!=="NumericLiteral"||(s=s.object,s.comments))return!1;return s.type==="Identifier"||s.type==="ThisExpression"}return!1})},isStringLiteral:ko,isStringPropSafeToUnquote:function(e,t){return t.parser!=="json"&&ko(e.key)&&sa(e.key).slice(1,-1)===e.key.value&&(EF(e.key.value)&&!((t.parser==="typescript"||t.parser==="babel-ts")&&e.type==="ClassProperty")||tf(e.key.value)&&String(Number(e.key.value))===e.key.value&&(t.parser==="babel"||t.parser==="espree"||t.parser==="meriyah"))},isTemplateOnItsOwnLine:function(e,t){return(e.type==="TemplateLiteral"&&rf(e)||e.type==="TaggedTemplateExpression"&&rf(e.quasi))&&!Po(t,No(e),{backwards:!0})},isTestCall:function e(t,r){if(t.type!=="CallExpression")return!1;if(t.arguments.length===1){if(Io(t)&&r&&e(r))return Is(t.arguments[0]);if((n=t).callee.type==="Identifier"&&/^(before|after)(Each|All)$/.test(n.callee.name)&&n.arguments.length===1)return Io(t.arguments[0])}else if((t.arguments.length===2||t.arguments.length===3)&&(t.callee.type==="Identifier"&&ef.test(t.callee.name)||function(s){return(s.callee.type==="MemberExpression"||s.callee.type==="OptionalMemberExpression")&&s.callee.object.type==="Identifier"&&s.callee.property.type==="Identifier"&&ef.test(s.callee.object.name)&&(s.callee.property.name==="only"||s.callee.property.name==="skip")}(t))&&(function(s){return s.type==="TemplateLiteral"}(t.arguments[0])||ko(t.arguments[0])))return!(t.arguments[2]&&!Yd(t.arguments[2]))&&((t.arguments.length===2?Is(t.arguments[1]):function(s){return s.type==="FunctionExpression"||s.type==="ArrowFunctionExpression"&&s.body.type==="BlockStatement"}(t.arguments[1])&&_o(t.arguments[1]).length<=1)||Io(t.arguments[1]));var n;return!1},isTheOnlyJSXElementInMarkdown:function(e,t){if(e.parentParser!=="markdown"&&e.parentParser!=="mdx")return!1;let r=t.getNode();if(!r.expression||!Ls(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||Jd(e,e.typeAnnotation))},matchJsxWhitespaceRegex:SF,needsHardlineAfterDanglingComment:function(e){if(!e.comments)return!1;let t=Zi(e.comments.filter(r=>!r.leading&&!r.trailing));return t&&!ks(t)},rawText:sa,returnArgumentHasLeadingComment:function(e,t){if(Oo(e.originalText,t))return!0;if(Xd(t)){let n,s=t;for(;n=(r=s).expressions?r.expressions[0]:r.left||r.test||r.callee||r.object||r.tag||r.argument||r.expression;)if(s=n,Oo(e.originalText,s))return!0}var r;return!1},shouldPrintComma:function(e,t="es5"){return e.trailingComma==="es5"&&t==="es5"||e.trailingComma==="all"&&(t==="all"||t==="es5")},isBitwiseOperator:function(e){return!!Mo[e]||e==="|"||e==="^"||e==="&"},shouldFlatten:function(e,t){return Ro(t)===Ro(e)&&e!=="**"&&(!nf[e]||!nf[t])&&!(t==="%"&&ia[e]||e==="%"&&ia[t])&&(t===e||!ia[t]||!ia[e])&&(!Mo[e]||!Mo[t])},startsWithNoLookaheadToken:function e(t,r){switch((t=function(n){for(;n.left;)n=n.left;return n}(t)).type){case"FunctionExpression":case"ClassExpression":case"DoExpression":return r;case"ObjectExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return e(t.object,r);case"TaggedTemplateExpression":return t.tag.type!=="FunctionExpression"&&e(t.tag,r);case"CallExpression":case"OptionalCallExpression":return t.callee.type!=="FunctionExpression"&&e(t.callee,r);case"ConditionalExpression":return e(t.test,r);case"UpdateExpression":return!t.prefix&&e(t.argument,r);case"BindExpression":return t.object&&e(t.object,r);case"SequenceExpression":return e(t.expressions[0],r);case"TSAsExpression":return e(t.expression,r);default:return!1}},getPrecedence:Ro},{getLast:BF,hasNewline:PF,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:Vo,getNextNonSpaceNonCommentCharacter:Gr,hasNewlineInRange:NF,addLeadingComment:je,addTrailingComment:Xe,addDanglingComment:Er,getNextNonSpaceNonCommentCharacterIndex:kF}=ce,{isBlockComment:uf,getFunctionParameters:aa,isPrettierIgnoreComment:Wo,isJSXNode:IF,hasFlowShorthandAnnotationComment:LF,hasFlowAnnotationComment:of,hasIgnoreComment:OF}=ge,{locStart:cf,locEnd:gt}=et;function _n(e,t){let r=(e.body||e.properties).find(({type:n})=>n!=="EmptyStatement");r?je(r,t):Er(e,t)}function zo(e,t){e.type==="BlockStatement"?_n(e,t):je(e,t)}function Ho(e,t){let{precedingNode:r,enclosingNode:n,followingNode:s}=e;return!n||n.type!=="IfStatement"||!s?!1:Gr(t,e,gt)===")"?(Xe(r,e),!0):r===n.consequent&&s===n.alternate?(r.type==="BlockStatement"?Xe(r,e):Er(n,e),!0):s.type==="BlockStatement"?(_n(s,e),!0):s.type==="IfStatement"?(zo(s.consequent,e),!0):n.consequent===s&&(je(s,e),!0)}function Go(e,t){let{precedingNode:r,enclosingNode:n,followingNode:s}=e;return!n||n.type!=="WhileStatement"||!s?!1:Gr(t,e,gt)===")"?(Xe(r,e),!0):s.type==="BlockStatement"?(_n(s,e),!0):n.body===s&&(je(s,e),!0)}function lf(e){let{precedingNode:t,enclosingNode:r,followingNode:n}=e;return!(!r||r.type!=="TryStatement"&&r.type!=="CatchClause"||!n)&&(r.type==="CatchClause"&&t?(Xe(t,e),!0):n.type==="BlockStatement"?(_n(n,e),!0):n.type==="TryStatement"?(zo(n.finalizer,e),!0):n.type==="CatchClause"&&(zo(n.body,e),!0))}function pf(e){let{precedingNode:t,enclosingNode:r,followingNode:n}=e;if(r&&(r.type==="ClassDeclaration"||r.type==="ClassExpression"||r.type==="DeclareClass"||r.type==="DeclareInterface"||r.type==="InterfaceDeclaration"||r.type==="TSInterfaceDeclaration")){if(r.decorators&&r.decorators.length>0&&(!n||n.type!=="Decorator"))return Xe(r.decorators[r.decorators.length-1],e),!0;if(r.body&&n===r.body)return _n(r.body,e),!0;if(n){for(let s of["implements","extends","mixins"])if(r[s]&&n===r[s][0])return!t||t!==r.id&&t!==r.typeParameters&&t!==r.superClass?Er(r,e,s):Xe(t,e),!0}}return!1}function hf(e,t){let{precedingNode:r,enclosingNode:n}=e;return(n&&r&&(n.type==="Property"||n.type==="TSDeclareMethod"||n.type==="TSAbstractMethodDefinition")&&r.type==="Identifier"&&n.key===r&&Gr(t,r,gt)!==":"||!(!r||!n||r.type!=="Decorator"||n.type!=="ClassMethod"&&n.type!=="ClassProperty"&&n.type!=="FieldDefinition"&&n.type!=="TSAbstractClassProperty"&&n.type!=="TSAbstractMethodDefinition"&&n.type!=="TSDeclareMethod"&&n.type!=="MethodDefinition"))&&(Xe(r,e),!0)}function df(e,t){let{precedingNode:r,enclosingNode:n,followingNode:s}=e;if(r&&r.type==="FunctionTypeParam"&&n&&n.type==="FunctionTypeAnnotation"&&s&&s.type!=="FunctionTypeParam"||r&&(r.type==="Identifier"||r.type==="AssignmentPattern")&&n&&gf(n)&&Gr(t,e,gt)===")")return Xe(r,e),!0;if(n&&n.type==="FunctionDeclaration"&&s&&s.type==="BlockStatement"){let u=(()=>{let c=aa(n);if(c.length!==0)return Vo(t,gt(BF(c)));let o=Vo(t,gt(n.id));return o!==!1&&Vo(t,o+1)})();if(cf(e)>u)return _n(s,e),!0}return!1}function ff(e){let{enclosingNode:t}=e;return!(!t||t.type!=="ImportSpecifier")&&(je(t,e),!0)}function mf(e){let{enclosingNode:t}=e;return!(!t||t.type!=="LabeledStatement")&&(je(t,e),!0)}function Jo(e,t,r){let{enclosingNode:n}=e;return t&&t.body&&t.body.length===0?(r?Er(t,e):je(t,e),!0):!(!n||n.type!=="Program"||n.body.length!==0||!n.directives||n.directives.length!==0)&&(r?Er(n,e):je(n,e),!0)}function Df(e){let{enclosingNode:t,followingNode:r}=e;if(Wo(e)&&t&&t.type==="TSMappedType"&&r&&r.type==="TSTypeParameter"&&r.constraint)return t.prettierIgnore=!0,e.unignore=!0,!0}function gf(e){return e.type==="ArrowFunctionExpression"||e.type==="FunctionExpression"||e.type==="FunctionDeclaration"||e.type==="ObjectMethod"||e.type==="ClassMethod"||e.type==="TSDeclareFunction"||e.type==="TSCallSignatureDeclaration"||e.type==="TSConstructSignatureDeclaration"||e.type==="TSMethodSignature"||e.type==="TSConstructorType"||e.type==="TSFunctionType"||e.type==="TSDeclareMethod"}function yf(e){return uf(e)&&e.value[0]==="*"&&/@type\b/.test(e.value)}var Cr={handleOwnLineComment:function(e,t,r,n,s){return Df(e)||df(e,t)||function(u){let{enclosingNode:c,followingNode:o}=u;return c&&(c.type==="MemberExpression"||c.type==="OptionalMemberExpression")&&o&&o.type==="Identifier"?(je(c,u),!0):!1}(e)||Ho(e,t)||Go(e,t)||lf(e)||pf(e)||ff(e)||function(u){let{enclosingNode:c}=u;return c&&(c.type==="ForInStatement"||c.type==="ForOfStatement")?(je(c,u),!0):!1}(e)||function(u){let{precedingNode:c,enclosingNode:o,followingNode:l}=u;return o&&(o.type==="UnionTypeAnnotation"||o.type==="TSUnionType")?(Wo(u)&&(l.prettierIgnore=!0,u.unignore=!0),!!c&&(Xe(c,u),!0)):(l&&(l.type==="UnionTypeAnnotation"||l.type==="TSUnionType")&&Wo(u)&&(l.types[0].prettierIgnore=!0,u.unignore=!0),!1)}(e)||Jo(e,n,s)||function(u,c){let{precedingNode:o,enclosingNode:l}=u;return o&&o.type==="ImportSpecifier"&&l&&l.type==="ImportDeclaration"&&PF(c,gt(u))?(Xe(o,u),!0):!1}(e,t)||function(u){let{enclosingNode:c}=u;return c&&c.type==="AssignmentPattern"?(je(c,u),!0):!1}(e)||hf(e,t)||mf(e)},handleEndOfLineComment:function(e,t,r,n,s){return function(u){let{followingNode:c}=u;return c&&yf(u)?(je(c,u),!0):!1}(e)||df(e,t)||function(u,c){let{precedingNode:o,enclosingNode:l,followingNode:h}=u,a=o&&!NF(c,gt(o),cf(u));return(!o||!a)&&l&&(l.type==="ConditionalExpression"||l.type==="TSConditionalType")&&h?(je(h,u),!0):!1}(e,t)||ff(e)||Ho(e,t)||Go(e,t)||lf(e)||pf(e)||mf(e)||function(u){let{precedingNode:c,enclosingNode:o}=u;return o&&(o.type==="CallExpression"||o.type==="OptionalCallExpression")&&c&&o.callee===c&&o.arguments.length>0?(je(o.arguments[0],u),!0):!1}(e)||function(u){let{enclosingNode:c}=u;return c&&(c.type==="Property"||c.type==="ObjectProperty")?(je(c,u),!0):!1}(e)||Jo(e,n,s)||function(u){let{enclosingNode:c}=u;return c&&c.type==="TypeAlias"?(je(c,u),!0):!1}(e)||function(u){let{enclosingNode:c,followingNode:o}=u;return c&&(c.type==="VariableDeclarator"||c.type==="AssignmentExpression")&&o&&(o.type==="ObjectExpression"||o.type==="ArrayExpression"||o.type==="TemplateLiteral"||o.type==="TaggedTemplateExpression"||uf(u))?(je(o,u),!0):!1}(e)},handleRemainingComment:function(e,t,r,n,s){return!!(Df(e)||Ho(e,t)||Go(e,t)||function(u){let{precedingNode:c,enclosingNode:o}=u;return o&&(o.type==="ObjectProperty"||o.type==="Property")&&o.shorthand&&o.key===c&&o.value.type==="AssignmentPattern"?(Xe(o.value.left,u),!0):!1}(e)||function(u,c){if(Gr(c,u,gt)!==")")return!1;let{enclosingNode:o}=u;return o&&(gf(o)&&aa(o).length===0||(o.type==="CallExpression"||o.type==="OptionalCallExpression"||o.type==="NewExpression")&&o.arguments.length===0)?(Er(o,u),!0):o&&o.type==="MethodDefinition"&&aa(o.value).length===0?(Er(o.value,u),!0):!1}(e,t)||hf(e,t)||Jo(e,n,s)||function(u,c){let{enclosingNode:o}=u;if(!o||o.type!=="ArrowFunctionExpression")return!1;let l=kF(c,u,gt);return l!==!1&&c.slice(l,l+2)==="=>"?(Er(o,u),!0):!1}(e,t)||function(u,c){if(Gr(c,u,gt)!=="(")return!1;let{precedingNode:o,enclosingNode:l}=u;return o&&l&&(l.type==="FunctionDeclaration"||l.type==="FunctionExpression"||l.type==="ClassMethod"||l.type==="MethodDefinition"||l.type==="ObjectMethod")?(Xe(o,u),!0):!1}(e,t)||function(u){let{precedingNode:c,enclosingNode:o,followingNode:l}=u;return!o||o.type!=="TSMappedType"?!1:l&&l.type==="TSTypeParameter"&&l.name?(je(l.name,u),!0):c&&c.type==="TSTypeParameter"&&c.constraint?(Xe(c.constraint,u),!0):!1}(e)||function(u){let{enclosingNode:c}=u;return c&&(c.type==="ContinueStatement"||c.type==="BreakStatement")&&!c.label?(Xe(c,u),!0):!1}(e)||function(u,c){let{enclosingNode:o,followingNode:l}=u;return!l&&o&&(o.type==="TSMethodSignature"||o.type==="TSDeclareFunction"||o.type==="TSAbstractMethodDefinition")&&Gr(c,u,gt)===";"?(Xe(o,u),!0):!1}(e,t))},hasLeadingComment:function(e,t=()=>!0){return e.leadingComments?e.leadingComments.some(t):!!e.comments&&e.comments.some(r=>r.leading&&t(r))},isTypeCastComment:yf,getGapRegex:function(e){if(e&&e.type!=="BinaryExpression"&&e.type!=="LogicalExpression")return/^[\s&(|]*$/},getCommentChildNodes:function(e,t){if((t.parser==="typescript"||t.parser==="flow"||t.parser==="espree"||t.parser==="meriyah")&&e.type==="MethodDefinition"&&e.value&&e.value.type==="FunctionExpression"&&aa(e.value).length===0&&!e.value.returnType&&(!e.value.typeParameters||e.value.typeParameters.length===0)&&e.value.body)return[...e.decorators||[],e.key,e.value.body]},willPrintOwnComments:function(e){let t=e.getValue(),r=e.getParentNode();return(t&&(IF(t)||LF(t)||r&&(r.type==="CallExpression"||r.type==="OptionalCallExpression")&&(of(t.leadingComments)||of(t.trailingComments)))||r&&(r.type==="JSXSpreadAttribute"||r.type==="JSXSpreadChild"||r.type==="UnionTypeAnnotation"||r.type==="TSUnionType"||(r.type==="ClassDeclaration"||r.type==="ClassExpression")&&r.superClass===t))&&(!OF(e)||r.type==="UnionTypeAnnotation"||r.type==="TSUnionType")}},{getStringWidth:Ef,getIndentSize:MF}=ce,{builders:{concat:Zt,join:Cf,hardline:Xo,softline:ua,group:bf,indent:Ko,align:RF,lineSuffixBoundary:oa,addAlignmentToDoc:jF},printer:{printDocToString:Af},utils:{mapDoc:_F}}=te,{isBinaryish:UF,isJestEachTemplateLiteral:qF,isSimpleTemplateLiteral:$F}=ge;function xf(e){return e.replace(/([\\`]|\${)/g,"\\$1")}var Os={printTemplateLiteral:function(e,t,r){let n=e.getValue();if(n.type==="TemplateLiteral"&&qF(n,e.getParentNode())){let l=function(h,a,f){let m=h.getNode(),E=m.quasis[0].value.raw.trim().split(/\s*\|\s*/);if(E.length>1||E.some(g=>g.length!==0)){a.__inJestEach=!0;let g=h.map(f,"expressions");a.__inJestEach=!1;let b=[],A=g.map(T=>"${"+Af(T,Object.assign({},a,{printWidth:1/0,endOfLine:"lf"})).formatted+"}"),C=[{hasLineBreak:!1,cells:[]}];for(let T=1;T<m.quasis.length;T++){let P=C[C.length-1],v=A[T-1];P.cells.push(v),v.includes(
)&&(P.hasLineBreak=!0),m.quasis[T].value.raw.includes(
)&&C.push({hasLineBreak:!1,cells:[]})}let F=Math.max(E.length,...C.map(T=>T.cells.length)),w=Array.from({length:F}).fill(0),B=[{cells:E},...C.filter(T=>T.cells.length!==0)];for(let{cells:T}of B.filter(P=>!P.hasLineBreak))T.forEach((P,v)=>{w[v]=Math.max(w[v],Ef(P))});return b.push(oa,"",Ko(Zt([Xo,Cf(Xo,B.map(T=>Cf(" | ",T.cells.map((P,v)=>T.hasLineBreak?P:P+" ".repeat(wv-Ef(P))))))])),Xo,""),Zt(b)}}(e,r,t);if(l)return l}let s="expressions";n.type==="TSTemplateLiteralType"&&(s="types");let u=[],c=e.map(t,s),o=$F(n);return o&&(c=c.map(l=>Af(l,Object.assign({},r,{printWidth:1/0})).formatted)),u.push(oa,""),e.each(l=>{let h=l.getName();if(u.push(t(l)),h<c.length){let{tabWidth:a}=r,f=l.getValue(),m=MF(f.value.raw,a),E=ch;if(!o){let b=nsh;(b.comments&&b.comments.length||b.type==="MemberExpression"||b.type==="OptionalMemberExpression"||b.type==="ConditionalExpression"||b.type==="SequenceExpression"||b.type==="TSAsExpression"||UF(b))&&(E=Zt([Ko(Zt(ua,E)),ua]))}let g=m===0&&f.value.raw.endsWith(` )?RF(-1/0,E):jF(E,m,a);u.push(bf(Zt(["${",g,oa,"}"])))}},"quasis"),u.push(""),Zt(u)},printTemplateExpressions:function(e,t){return e.map(r=>function(n,s){let u=n.getValue(),c=s(n);return u.comments&&u.comments.length&&(c=bf(Zt([Ko(Zt(ua,c)),ua]))),Zt("${",c,oa,"}")}(r,t),"expressions")},escapeTemplateCharacters:function(e,t){return _F(e,r=>{if(!r.parts)return r;let n=r.parts.map(s=>typeof s=="string"?t?s.replace(/(\\*)/g,"$1$1\\`"):xf(s):s);return Object.assign({},r,{parts:n})})},uncookTemplateElementValue:xf},{builders:{indent:VF,softline:Ff,literalline:WF,concat:Yo,dedentToRoot:zF}}=te,{escapeTemplateCharacters:HF}=Os,GF=function(e,t,r){let n=e.getValue().quasis[0].value.raw.replace(/((?:\\\\)*)\\`/g,(o,l)=>"\\".repeat(l.length/2)+""),s=function(o){let l=o.match(/^(^\S\n*)\S/m);return l===null?"":l1}(n),u=s!=="";u&&(n=n.replace(new RegExp("^".concat(s),"gm"),""));let c=HF(r(n,{parser:"markdown",__inJsTemplate:!0},{stripTrailingHardline:!0}),!0);return Yo(["",u?VF(Yo([Ff,c])):Yo([WF,zF(c)]),Ff,""])},{builders:{indent:JF,hardline:XF,softline:KF,concat:vf},utils:{mapDoc:YF,replaceNewlinesWithLiterallines:QF}}=te,{printTemplateExpressions:ZF}=Os,e3=function(e,t,r){let n=e.getValue(),s=n.quasis.map(c=>c.value.raw),u=0;return function(c,o,l){if(o.quasis.length===1&&!o.quasis0.value.raw.trim())return"";let h=function(a,f){if(!f||!f.length)return a;let m=0,E=YF(a,g=>{if(!g||!g.parts||!g.parts.length)return g;let{parts:b}=g,A=b.indexOf("@"),C=A+1;if(A>-1&&typeof bC=="string"&&bC.startsWith("prettier-placeholder")){let w=bA,B=bC,T=b.slice(C+1);b=b.slice(0,A).concat(w+B).concat(T)}let F=[];return b.forEach(w=>{typeof w=="string"&&w.includes("@prettier-placeholder")?w.split(/@prettier-placeholder-(\d+)-id/).forEach((B,T)=>{T%2!=0?(F.push(fB),m++):F.push(QF(B))}):F.push(w)}),Object.assign({},g,{parts:F})});return f.length===m?E:null}(c,l);if(!h)throw new Error("Couldn't insert all the expressions");return vf(["",JF(vf([XF,h])),KF,""])}(r(s.reduce((c,o,l)=>l===0?o:c+"@prettier-placeholder-"+u+++"-id"+o,""),{parser:"scss"},{stripTrailingHardline:!0}),n,ZF(e,t))},{builders:{indent:t3,join:wf,hardline:Ms,concat:Qo}}=te,{escapeTemplateCharacters:r3,printTemplateExpressions:n3}=Os;function s3(e){let t=[],r=!1;return e.map(n=>n.trim()).forEach((n,s,u)=>{n!==""&&(us-1===""&&r?t.push(Qo(Ms,n)):t.push(n),r=!0)}),t.length===0?null:wf(Ms,t)}var i3=function(e,t,r){let n=e.getValue(),s=n.quasis.length;if(s===1&&n.quasis0.value.raw.trim()==="")return"";let u=n3(e,t),c=[];for(let o=0;o<s;o++){let l=o===0,h=o===s-1,a=n.quasiso.value.cooked,f=a.split(` ),m=f.length,E=u[o],g=m>2&&f[0].trim()===""&&f[1].trim()==="",b=m>2&&f[m-1].trim()===""&&f[m-2].trim()==="",A=f.every(F=>/^\s*(?:#[^\n\r]*)?$/.test(F));if(!h&&/#[^\n\r]*$/.test(f[m-1]))return null;let C=null;C=A?s3(f):r(a,{parser:"graphql"},{stripTrailingHardline:!0}),C?(C=r3(C,!1),!l&&g&&c.push(""),c.push(C),!h&&b&&c.push("")):l||h||!g||c.push(""),E&&c.push(E)}return Qo(["",t3(Qo(Ms,wf(Ms,c))),Ms,""])},{builders:{indent:Sf,line:a3,hardline:u3,concat:Zo,group:ca},utils:{mapDoc:o3}}=te,{printTemplateExpressions:c3,uncookTemplateElementValue:l3}=Os,ec=0,p3=function(e,t,r,n,{parser:s}){let u=e.getValue(),c=ec;ec=ec+1>>>0;let o=C=>"PRETTIER_HTML_PLACEHOLDER_".concat(C,"_").concat(c,"_IN_JS"),l=u.quasis.map((C,F,w)=>F===w.length-1?C.value.cooked:C.value.cooked+o(F)).join(""),h=c3(e,t);if(h.length===0&&l.trim().length===0)return"";let a=new RegExp(o("(\\d+)"),"g"),f=0,m=r(l,{parser:s,__onHtmlRoot(C){f=C.children.length}},{stripTrailingHardline:!0}),E=o3(m,C=>{if(typeof C!="string")return C;let F=[],w=C.split(a);for(let B=0;B<w.length;B++){let T=w[B];if(B%2==0){T&&(T=l3(T),n.embeddedInHtml&&(T=T.replace(/<\/(script)\b/gi,"<\\/$1")),F.push(T));continue}let P=+T;F.push(h[P])}return Zo(F)}),g=/^\s/.test(l)?" ":"",b=/\s$/.test(l)?" ":"",A=n.htmlWhitespaceSensitivity==="ignore"?u3:g&&b?a3:null;return ca(Zo(A?["",Sf(Zo(A,ca(E))),A,""]:["",g,f>1?Sf(ca(E)):ca(E),b,""]))},{isBlockComment:h3}=ge,{hasLeadingComment:d3}=Cr;function f3(e){return function(t){let r=t.getValue(),n=t.getParentNode(),s=t.getParentNode(1);return s&&r.quasis&&n.type==="JSXExpressionContainer"&&s.type==="JSXElement"&&s.openingElement.name.name==="style"&&s.openingElement.attributes.some(u=>u.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{tag:n}=r;switch(n.type){case"MemberExpression":return la(n.object)||Bf(n);case"CallExpression":return la(n.callee)||n.callee.type==="MemberExpression"&&(n.callee.object.type==="MemberExpression"&&(la(n.callee.object.object)||Bf(n.callee.object))||n.callee.object.type==="CallExpression"&&la(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)=>(r.type==="Property"||r.type==="ObjectProperty")&&r.key.type==="Identifier"&&r.key.name==="styles"&&n==="value",...Tf)}(e)?"css":function(t){let r=t.getValue(),n=t.getParentNode();return Pf(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 Pf(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)=>(r.type==="Property"||r.type==="ObjectProperty")&&r.key.type==="Identifier"&&r.key.name==="template"&&n==="value",...Tf)}(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}var Tf=[(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 la(e){return e.type==="Identifier"&&e.name==="styled"}function Bf(e){return/^[A-Z]/.test(e.object.name)&&e.property.name==="extend"}function Pf(e,t){return d3(e,r=>h3(r)&&r.value===" ".concat(t," "))}var m3=function(e,t,r,n){let s=e.getValue();if(s.type!=="TemplateLiteral"||function({quasis:c}){return c.some(({value:{cooked:o}})=>o===null)}(s))return;let u=f3(e);return u?u==="markdown"?GF(e,t,r):u==="css"?e3(e,t,r):u==="graphql"?i3(e,t,r):u==="html"||u==="angular"?p3(e,t,r,n,{parser:u}):void 0:void 0},{isBlockComment:D3}=ge,g3=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]);function Nf(e,t,r){if(e.type==="Program"&&delete t.sourceType,e.type!=="BigIntLiteral"&&e.type!=="BigIntLiteralTypeAnnotation"||t.value&&(t.value=t.value.toLowerCase()),e.type!=="BigIntLiteral"&&e.type!=="Literal"||t.bigint&&(t.bigint=t.bigint.toLowerCase()),e.type==="DecimalLiteral"&&(t.value=Number(t.value)),e.type==="EmptyStatement"||e.type==="JSXText"||e.type==="JSXExpressionContainer"&&(e.expression.type==="Literal"||e.expression.type==="StringLiteral")&&e.expression.value===" ")return null;e.type!=="Property"&&e.type!=="ObjectProperty"&&e.type!=="MethodDefinition"&&e.type!=="ClassProperty"&&e.type!=="ClassMethod"&&e.type!=="FieldDefinition"&&e.type!=="TSDeclareMethod"&&e.type!=="TSPropertySignature"&&e.type!=="ObjectTypeProperty"||typeof e.key!="object"||!e.key||e.key.type!=="Literal"&&e.key.type!=="NumericLiteral"&&e.key.type!=="StringLiteral"&&e.key.type!=="Identifier"||delete t.key,e.type==="OptionalMemberExpression"&&e.optional===!1&&(t.type="MemberExpression",delete t.optional),e.type==="JSXElement"&&e.openingElement.name.name==="style"&&e.openingElement.attributes.some(s=>s.name.name==="jsx")&&t.children.filter(s=>s.type==="JSXExpressionContainer"&&s.expression.type==="TemplateLiteral").map(s=>s.expression).reduce((s,u)=>s.concat(u.quasis),[]).forEach(s=>delete s.value),e.type==="JSXAttribute"&&e.name.name==="css"&&e.value.type==="JSXExpressionContainer"&&e.value.expression.type==="TemplateLiteral"&&t.value.expression.quasis.forEach(s=>delete s.value),e.type==="JSXAttribute"&&e.value&&e.value.type==="Literal"&&/["']|"|'/.test(e.value.value)&&(t.value.value=t.value.value.replace(/["']|"|'/g,'"'));let n=e.expression||e.callee;if(e.type==="Decorator"&&n.type==="CallExpression"&&n.callee.name==="Component"&&n.arguments.length===1){let s=e.expression.arguments[0].properties;t.expression.arguments[0].properties.forEach((u,c)=>{let o=null;switch(s[c].key.name){case"styles":u.value.type==="ArrayExpression"&&(o=u.value.elements[0]);break;case"template":u.value.type==="TemplateLiteral"&&(o=u.value)}o&&o.quasis.forEach(l=>delete l.value)})}e.type!=="TaggedTemplateExpression"||e.tag.type!=="MemberExpression"&&(e.tag.type!=="Identifier"||e.tag.name!=="gql"&&e.tag.name!=="graphql"&&e.tag.name!=="css"&&e.tag.name!=="md"&&e.tag.name!=="markdown"&&e.tag.name!=="html")&&e.tag.type!=="CallExpression"||t.quasi.quasis.forEach(s=>delete s.value),e.type==="TemplateLiteral"&&((e.leadingComments&&e.leadingComments.some(s=>D3(s)&&["GraphQL","HTML"].some(u=>s.value===" ".concat(u," ")))||r.type==="CallExpression"&&r.callee.name==="graphql")&&t.quasis.forEach(s=>delete s.value),e.leadingComments||t.quasis.forEach(s=>{s.value&&delete s.value.cooked})),e.type==="InterpreterDirective"&&(t.value=t.value.trimEnd())}Nf.ignoredProperties=g3;var y3=Nf,kf=e=>{if(typeof e!="string")throw new TypeError("Expected a string");let t=e.match(/(?:\r?\n)/g)||[];if(t.length===0)return;let r=t.filter(n=>n===\r ).length;return r>t.length-r?\r
:
},If=kf;If.graceful=e=>typeof e=="string"&&kf(e)||
;var E3=Z(function(e,t){function r(){let b=zi;return r=function(){return b},b}function n(){let b=(A=If)&&A.__esModule?A:{default:A};var A;return n=function(){return b},b}Object.defineProperty(t,"__esModule",{value:!0}),t.extract=function(b){let A=b.match(c);return A?A[0].trimLeft():""},t.strip=function(b){let A=b.match(c);return A&&A[0]?b.substring(A[0].length):b},t.parse=function(b){return E(b).pragmas},t.parseWithComments=E,t.print=function({comments:b="",pragmas:A={}}){let C=(0,n().default)(b)||r().EOL,F=" *",w=Object.keys(A),B=w.map(P=>g(P,A[P])).reduce((P,v)=>P.concat(v),[]).map(P=>" * "+P+C).join("");if(!b){if(w.length===0)return"";if(w.length===1&&!Array.isArray(A[w[0]])){let P=A[w[0]];return"".concat("/**"," ").concat(g(w[0],P)[0]).concat(" */")}}let T=b.split(C).map(P=>"".concat(F," ").concat(P)).join(C)+C;return"/**"+C+(b?T:"")+(b&&w.length?F+C:"")+B+" */"};let s=/\*\/$/,u=/^\/\*\*/,c=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,o=/(^|\s+)\/\/([^\r\n]*)/g,l=/^(\r?\n)+/,h=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,a=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,f=/(\r?\n|^) *\* ?/g,m=[];function E(b){let A=(0,n().default)(b)||r().EOL;b=b.replace(u,"").replace(s,"").replace(f,"$1");let C="";for(;C!==b;)C=b,b=b.replace(h,"".concat(A,"$1 $2").concat(A));b=b.replace(l,"").trimRight();let F=Object.create(null),w=b.replace(a,"").replace(l,"").trimRight(),B;for(;B=a.exec(b);){let T=B[2].replace(o,"");typeof F[B[1]]=="string"||Array.isArray(F[B[1]])?F[B[1]]=m.concat(F[B[1]],T):F[B[1]]=T}return{comments:w,pragmas:F}}function g(b,A){return m.concat(A).map(C=>"@".concat(b," ").concat(C).trim())}}),{parseWithComments:C3,strip:b3,extract:A3,print:x3}=E3,{getShebang:F3}=ce,{normalizeEndOfLine:v3}=Hu;function Lf(e){let t=F3(e);t&&(e=e.slice(t.length+1));let r=A3(e),{pragmas:n,comments:s}=C3(r);return{shebang:t,text:e,pragmas:n,comments:s}}var tc={hasPragma:function(e){let t=Object.keys(Lf(e).pragmas);return t.includes("prettier")||t.includes("format")},insertPragma:function(e){let{shebang:t,text:r,pragmas:n,comments:s}=Lf(e),u=b3(r),c=x3({pragmas:Object.assign({format:""},n),comments:s.trimStart()});return(t?"".concat(t,
):"")+v3(c)+(u.startsWith(
)?
:
)+u}},{getFunctionParameters:w3,getLeftSidePathName:S3,hasFlowShorthandAnnotationComment:T3,hasNakedLeftSide:B3,hasNode:Of,isBitwiseOperator:P3,startsWithNoLookaheadToken:Mf,shouldFlatten:N3,getPrecedence:Rf}=ge;function rc(e,t){let r=e.getParentNode();if(!r)return!1;let n=e.getName(),s=e.getNode();if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&function(u){switch(u.type){case"ObjectExpression":return!0;default:return!1}}(s)&&Rs(e))return!0;if(function(u){return u.type==="BlockStatement"||u.type==="BreakStatement"||u.type==="ClassBody"||u.type==="ClassDeclaration"||u.type==="ClassMethod"||u.type==="ClassProperty"||u.type==="FieldDefinition"||u.type==="ClassPrivateProperty"||u.type==="ContinueStatement"||u.type==="DebuggerStatement"||u.type==="DeclareClass"||u.type==="DeclareExportAllDeclaration"||u.type==="DeclareExportDeclaration"||u.type==="DeclareFunction"||u.type==="DeclareInterface"||u.type==="DeclareModule"||u.type==="DeclareModuleExports"||u.type==="DeclareVariable"||u.type==="DoWhileStatement"||u.type==="EnumDeclaration"||u.type==="ExportAllDeclaration"||u.type==="ExportDefaultDeclaration"||u.type==="ExportNamedDeclaration"||u.type==="ExpressionStatement"||u.type==="ForInStatement"||u.type==="ForOfStatement"||u.type==="ForStatement"||u.type==="FunctionDeclaration"||u.type==="IfStatement"||u.type==="ImportDeclaration"||u.type==="InterfaceDeclaration"||u.type==="LabeledStatement"||u.type==="MethodDefinition"||u.type==="ReturnStatement"||u.type==="SwitchStatement"||u.type==="ThrowStatement"||u.type==="TryStatement"||u.type==="TSDeclareFunction"||u.type==="TSEnumDeclaration"||u.type==="TSImportEqualsDeclaration"||u.type==="TSInterfaceDeclaration"||u.type==="TSModuleDeclaration"||u.type==="TSNamespaceExportDeclaration"||u.type==="TypeAlias"||u.type==="VariableDeclaration"||u.type==="WhileStatement"||u.type==="WithStatement"}(s))return!1;if(t.parser!=="flow"&&T3(e.getValue()))return!0;if(s.type==="Identifier")return!!(s.extra&&s.extra.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(s.name));switch(r.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if(n==="superClass"&&(s.type==="ArrowFunctionExpression"||s.type==="AssignmentExpression"||s.type==="AwaitExpression"||s.type==="BinaryExpression"||s.type==="ConditionalExpression"||s.type==="LogicalExpression"||s.type==="NewExpression"||s.type==="ObjectExpression"||s.type==="ParenthesizedExpression"||s.type==="SequenceExpression"||s.type==="TaggedTemplateExpression"||s.type==="UnaryExpression"||s.type==="UpdateExpression"||s.type==="YieldExpression"))return!0;break;case"ExportDefaultDeclaration":return jf(e,t)||s.type==="SequenceExpression";case"Decorator":if(n==="expression"){let u=!1,c=!1,o=s;for(;o;)switch(o.type){case"MemberExpression":c=!0,o=o.object;break;case"CallExpression":if(c||u)return!0;u=!0,o=o.callee;break;case"Identifier":return!1;default:return!0}return!0}break;case"ExpressionStatement":if(Mf(s,!0))return!0;break;case"ArrowFunctionExpression":if(n==="body"&&s.type!=="SequenceExpression"&&Mf(s,!1))return!0}switch(s.type){case"SpreadElement":case"SpreadProperty":return n==="object"&&r.type==="MemberExpression";case"UpdateExpression":if(r.type==="UnaryExpression")return s.prefix&&(s.operator==="++"&&r.operator==="+"||s.operator==="--"&&r.operator==="-");case"UnaryExpression":switch(r.type){case"UnaryExpression":return s.operator===r.operator&&(s.operator==="+"||s.operator==="-");case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"BinaryExpression":return n==="left"&&r.operator==="**";case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":if(r.type==="UpdateExpression"||r.type==="PipelineTopicExpression"&&s.operator==="|>"||s.operator==="in"&&function(u){let c=0,o=u.getValue();for(;o;){let l=u.getParentNode(c++);if(l&&l.type==="ForStatement"&&l.init===o)return!0;o=l}return!1}(e))return!0;if(s.operator==="|>"&&s.extra&&s.extra.parenthesized){let u=e.getParentNode(1);if(u.type==="BinaryExpression"&&u.operator==="|>")return!0}case"TSTypeAssertion":case"TSAsExpression":case"LogicalExpression":switch(r.type){case"ConditionalExpression":return s.type==="TSAsExpression";case"CallExpression":case"NewExpression":case"OptionalCallExpression":return n==="callee";case"ClassExpression":case"ClassDeclaration":return n==="superClass";case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"SpreadProperty":case"BindExpression":case"AwaitExpression":case"TSAsExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"AssignmentExpression":return n==="left"&&(s.type==="TSTypeAssertion"||s.type==="TSAsExpression");case"LogicalExpression":if(s.type==="LogicalExpression")return r.operator!==s.operator;case"BinaryExpression":{let{operator:u,type:c}=s;if(!u&&c!=="TSTypeAssertion")return!0;let o=Rf(u),l=r.operator,h=Rf(l);return h>o||n==="right"&&h===o||h===o&&!N3(l,u)||(h<o&&u==="%"?l==="+"||l==="-":!!P3(l))}default:return!1}case"SequenceExpression":switch(r.type){case"ReturnStatement":case"ForStatement":return!1;case"ExpressionStatement":return n!=="expression";case"ArrowFunctionExpression":return n!=="body";default:return!0}case"YieldExpression":if(r.type==="UnaryExpression"||r.type==="AwaitExpression"||r.type==="TSAsExpression"||r.type==="TSNonNullExpression")return!0;case"AwaitExpression":switch(r.type){case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"SpreadElement":case"SpreadProperty":case"TSAsExpression":case"TSNonNullExpression":case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"ConditionalExpression":return n==="test";case"BinaryExpression":return!(!s.argument&&r.operator==="|>");default:return!1}case"TSJSDocFunctionType":case"TSConditionalType":if(n==="extendsType"&&r.type==="TSConditionalType")return!0;case"TSFunctionType":case"TSConstructorType":if(n==="checkType"&&r.type==="TSConditionalType")return!0;case"TSUnionType":case"TSIntersectionType":if(r.type==="TSUnionType"||r.type==="TSIntersectionType")return!0;case"TSInferType":if(s.type==="TSInferType"&&r.type==="TSRestType")return!1;case"TSTypeOperator":return r.type==="TSArrayType"||r.type==="TSOptionalType"||r.type==="TSRestType"||n==="objectType"&&r.type==="TSIndexedAccessType"||r.type==="TSTypeOperator"||r.type==="TSTypeAnnotation"&&/^TSJSDoc/.test(e.getParentNode(1).type);case"ArrayTypeAnnotation":return r.type==="NullableTypeAnnotation";case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return r.type==="ArrayTypeAnnotation"||r.type==="NullableTypeAnnotation"||r.type==="IntersectionTypeAnnotation"||r.type==="UnionTypeAnnotation";case"NullableTypeAnnotation":return r.type==="ArrayTypeAnnotation";case"FunctionTypeAnnotation":{let u=r.type==="NullableTypeAnnotation"?e.getParentNode(1):r;return u.type==="UnionTypeAnnotation"||u.type==="IntersectionTypeAnnotation"||u.type==="ArrayTypeAnnotation"||u.type==="NullableTypeAnnotation"||r.type==="FunctionTypeParam"&&r.name===null&&w3(s).some(c=>c.typeAnnotation&&c.typeAnnotation.type==="NullableTypeAnnotation")}case"StringLiteral":case"NumericLiteral":case"Literal":if(typeof s.value=="string"&&r.type==="ExpressionStatement"&&!r.directive){let u=e.getParentNode(1);return u.type==="Program"||u.type==="BlockStatement"}return n==="object"&&r.type==="MemberExpression"&&typeof s.value=="number";case"AssignmentExpression":{let u=e.getParentNode(1);return n==="body"&&r.type==="ArrowFunctionExpression"||(n!=="key"||r.type!=="ClassProperty"&&r.type!=="FieldDefinition"||!r.computed)&&(n!=="init"&&n!=="update"||r.type!=="ForStatement")&&(r.type==="ExpressionStatement"?s.left.type==="ObjectPattern":(n!=="key"||r.type!=="TSPropertySignature")&&r.type!=="AssignmentExpression"&&(r.type!=="SequenceExpression"||!u||u.type!=="ForStatement"||u.init!==r&&u.update!==r)&&(n!=="value"||r.type!=="Property"||!u||u.type!=="ObjectPattern"||!u.properties.includes(r))&&r.type!=="NGChainedExpression")}case"ConditionalExpression":switch(r.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"ConditionalExpression":return n==="test";case"MemberExpression":case"OptionalMemberExpression":return n==="object";default:return!1}case"FunctionExpression":switch(r.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(r.type){case"PipelineTopicExpression":return!(!s.extra||!s.extra.parenthesized);case"BinaryExpression":return r.operator!=="|>"||s.extra&&s.extra.parenthesized;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"TSAsExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":return!0;case"ConditionalExpression":return n==="test";default:return!1}case"ClassExpression":switch(r.type){case"NewExpression":return n==="callee";default:return!1}case"OptionalMemberExpression":case"OptionalCallExpression":{let u=e.getParentNode(1);if(n==="object"&&r.type==="MemberExpression"||n==="callee"&&(r.type==="CallExpression"||r.type==="NewExpression")||r.type==="TSNonNullExpression"&&u.type==="MemberExpression"&&u.object===r)return!0}case"CallExpression":case"MemberExpression":case"TaggedTemplateExpression":case"TSNonNullExpression":if(n==="callee"&&(r.type==="BindExpression"||r.type==="NewExpression")){let u=s;for(;u;)switch(u.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":u=u.object;break;case"TaggedTemplateExpression":u=u.tag;break;case"TSNonNullExpression":u=u.expression;break;default:return!1}}return!1;case"BindExpression":return n==="callee"&&(r.type==="BindExpression"||r.type==="NewExpression")||n==="object"&&(r.type==="MemberExpression"||r.type==="OptionalMemberExpression");case"NGPipeExpression":return!(r.type==="NGRoot"||r.type==="NGMicrosyntaxExpression"||!(r.type!=="ObjectProperty"||s.extra&&s.extra.parenthesized)||r.type==="ArrayExpression"||(r.type==="CallExpression"||r.type==="OptionalCallExpression")&&r.arguments[n]===s||n==="right"&&r.type==="NGPipeExpression"||n==="property"&&r.type==="MemberExpression"||r.type==="AssignmentExpression");case"JSXFragment":case"JSXElement":return n==="callee"||n==="left"&&r.type==="BinaryExpression"&&r.operator==="<"||r.type!=="ArrayExpression"&&r.type!=="ArrowFunctionExpression"&&r.type!=="AssignmentExpression"&&r.type!=="AssignmentPattern"&&r.type!=="BinaryExpression"&&r.type!=="CallExpression"&&r.type!=="NewExpression"&&r.type!=="ConditionalExpression"&&r.type!=="ExpressionStatement"&&r.type!=="JsExpressionRoot"&&r.type!=="JSXAttribute"&&r.type!=="JSXElement"&&r.type!=="JSXExpressionContainer"&&r.type!=="JSXFragment"&&r.type!=="LogicalExpression"&&r.type!=="ObjectProperty"&&r.type!=="OptionalCallExpression"&&r.type!=="Property"&&r.type!=="ReturnStatement"&&r.type!=="ThrowStatement"&&r.type!=="TypeCastExpression"&&r.type!=="VariableDeclarator"&&r.type!=="YieldExpression";case"TypeAnnotation":return n==="returnType"&&r.type==="ArrowFunctionExpression"&&function(u){return Of(u,c=>c.type==="ObjectTypeAnnotation"&&Of(c,o=>o.type==="FunctionTypeAnnotation"||void 0)||void 0)}(s)}return!1}function Rs(e){let t=e.getValue(),r=e.getParentNode(),n=e.getName();switch(r.type){case"NGPipeExpression":if(typeof n=="number"&&r.arguments[n]===t&&r.arguments.length-1===n)return e.callParent(Rs);break;case"ObjectProperty":if(n==="value"){let s=e.getParentNode(1);return s.properties[s.properties.length-1]===r}break;case"BinaryExpression":case"LogicalExpression":if(n==="right")return e.callParent(Rs);break;case"ConditionalExpression":if(n==="alternate")return e.callParent(Rs);break;case"UnaryExpression":if(r.prefix)return e.callParent(Rs)}return!1}function jf(e,t){let r=e.getValue(),n=e.getParentNode();return r.type==="FunctionExpression"||r.type==="ClassExpression"?n.type==="ExportDefaultDeclaration"||!rc(e,t):!(!B3(r)||n.type!=="ExportDefaultDeclaration"&&rc(e,t))&&e.call(s=>jf(s,t),...S3(e,r))}var Un=rc,{builders:{concat:pa,join:_f,line:Uf,group:k3,softline:qf,indent:I3}}=te,L3={isVueEventBindingExpression:function e(t){switch(t.type){case"MemberExpression":switch(t.property.type){case"Identifier":case"NumericLiteral":case"StringLiteral":return e(t.object)}return!1;case"Identifier":return!0;default:return!1}},printHtmlBinding:function(e,t,r){let n=e.getValue();if(t.__onHtmlBindingRoot&&e.getName()===null&&t.__onHtmlBindingRoot(n,t),n.type==="File")return t.__isVueForBindingLeft?e.call(s=>{let u=_f(pa([",",Uf]),s.map(r,"params")),{params:c}=s.getValue();return c.length===1?u:pa(["(",I3(pa([qf,k3(u)])),qf,")"])},"program","body",0):t.__isVueBindings?e.call(s=>_f(pa([",",Uf]),s.map(r,"params")),"program","body",0):void 0}},$f=function(e,t){switch(t.parser){case"json":case"json5":case"json-stringify":case"__js_expression":case"__vue_expression":return Object.assign({},e,{type:t.parser.startsWith("__")?"JsExpressionRoot":"JsonRoot",node:e,comments:[],rootMarker:t.rootMarker});default:return e}},{builders:{concat:qn,group:O3,indent:M3,join:Vf,line:nc,hardline:R3}}=te,{hasNewlineBetweenOrAfterDecorators:j3,getParentExportDeclaration:_3}=ge,jt={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?e.call(r,"typeArguments"):n.typeParameters?e.call(r,"typeParameters"):""},printBindExpressionCallee:function(e,t,r){return qn(["::",e.call(r,"callee")])},printTypeScriptModifiers:function(e,t,r){let n=e.getValue();return n.modifiers&&n.modifiers.length?qn([Vf(" ",e.map(r,"modifiers"))," "]):""},printDecorators:function(e,t,r){let n=e.getValue();return O3(qn([Vf(nc,e.map(r,"decorators")),j3(n,t)?R3:nc]))},printFlowDeclaration:function(e,t){let r=_3(e);return r?(Qt.strictEqual(r.type,"DeclareExportDeclaration"),t):qn(["declare ",t])},adjustClause:function(e,t,r){return e.type==="EmptyStatement"?";":e.type==="BlockStatement"||r?qn([" ",t]):M3(qn([nc,t]))}},{builders:{concat:yt,softline:Wf,group:U3,indent:q3,join:sc,line:ic,ifBreak:$3,hardline:V3}}=te,{printDanglingComments:W3}=he,{hasDanglingComments:z3,shouldPrintComma:H3,needsHardlineAfterDanglingComment:G3}=ge,{locStart:zf,hasSameLoc:J3}=et;function ac(e,t,r){let n=e.getValue();if(!n.source)return"";let s=[];return Gf(n,t)||s.push(" from"),s.push(" ",e.call(r,"source")),yt(s)}function Hf(e,t,r){let n=e.getValue();if(Gf(n,t))return"";let s=[" "];if(n.specifiers&&n.specifiers.length>0){let u=[],c=[];e.each(o=>{let l=e.getValue().type;if(l==="ExportNamespaceSpecifier"||l==="ExportDefaultSpecifier"||l==="ImportNamespaceSpecifier"||l==="ImportDefaultSpecifier")u.push(r(o));else{if(l!=="ExportSpecifier"&&l!=="ImportSpecifier")throw new Error("Unknown specifier type ".concat(JSON.stringify(l)));c.push(r(o))}},"specifiers"),s.push(sc(", ",u)),c.length!==0&&(u.length!==0&&s.push(", "),c.length>1||u.length>0||n.specifiers.some(o=>o.comments)?s.push(U3(yt(["{",q3(yt([t.bracketSpacing?ic:Wf,sc(yt([",",ic]),c)])),$3(H3(t)?",":""),t.bracketSpacing?ic:Wf,"}"]))):s.push(yt(["{",t.bracketSpacing?" ":"",yt(c),t.bracketSpacing?" ":"","}"])))}else s.push("{}");return yt(s)}function Gf(e,t){let{type:r,importKind:n,source:s,specifiers:u}=e;return!(r!=="ImportDeclaration"||Array.isArray(u)&&u.length>0||n==="type")&&!/{\s*}/.test(t.originalText.slice(zf(e),zf(s)))}function uc(e,t,r){let n=e.getNode();return Array.isArray(n.assertions)&&n.assertions.length!==0?yt([" assert {",t.bracketSpacing?" ":"",sc(", ",e.map(r,"assertions")),t.bracketSpacing?" ":"","}"]):""}var X3={printImportDeclaration:function(e,t,r){let n=e.getValue(),s=t.semi?";":"",u=[],{importKind:c}=n;return u.push("import"),c&&c!=="value"&&u.push(" ",c),u.push(Hf(e,t,r),ac(e,t,r),uc(e,t,r)),u.push(s),yt(u)},printExportDeclaration:function(e,t,r){let n=e.getValue(),s=[],{type:u,exportKind:c,declaration:o}=n;return u==="DeclareExportDeclaration"&&s.push("declare "),s.push("export"),(n.default||u==="ExportDefaultDeclaration")&&s.push(" default"),z3(n)&&(s.push(" ",W3(e,t,!0)),G3(n)&&s.push(V3)),o?s.push(" ",e.call(r,"declaration")):s.push(c==="type"?" type":"",Hf(e,t,r),ac(e,t,r),uc(e,t,r)),function(l,h){if(!h.semi)return!1;let{type:a,declaration:f}=l,m=l.default||a==="ExportDefaultDeclaration";if(!f)return!0;let{type:E}=f;return!!(m&&E!=="ClassDeclaration"&&E!=="FunctionDeclaration"&&E!=="TSInterfaceDeclaration"&&E!=="DeclareClass"&&E!=="DeclareFunction"&&E!=="TSDeclareFunction"&&E!=="EnumDeclaration")}(n,t)&&s.push(";"),yt(s)},printExportAllDeclaration:function(e,t,r){let n=e.getValue(),s=t.semi?";":"",u=[],{type:c,exportKind:o,exported:l}=n;return c==="DeclareExportAllDeclaration"&&(u.push("declare "),s=""),u.push("export"),o==="type"&&u.push(" type"),u.push(" *"),l&&u.push(" as ",e.call(r,"exported")),u.push(ac(e,t,r),uc(e,t,r),s),yt(u)},printModuleSpecifier:function(e,t,r){let n=e.getNode(),{type:s,importKind:u}=n,c=[];s==="ImportSpecifier"&&u&&c.push(u," ");let o=s.startsWith("Import"),l=o?"imported":"local",h=o?"local":"exported",a="",f="";return s==="ExportNamespaceSpecifier"||s==="ImportNamespaceSpecifier"?a="*":n[l]&&(a=e.call(r,l)),!n[h]||n[l]&&J3(n[l],n[h])||(f=e.call(r,h)),c.push(a,a&&f?" as ":"",f),yt(c)}},{hasNewlineInRange:K3}=ce,{isJSXNode:ha,isBlockComment:Y3}=ge,{locStart:Q3,locEnd:Z3}=et,{builders:{concat:_t,line:Jf,softline:da,group:Xf,indent:fa,align:ma,ifBreak:Da,dedent:e5,breakParent:t5}}=te,Kf=function(e,t,r,n){let s=e.getValue(),u=s[n.consequentNodePropertyName],c=s[n.alternateNodePropertyName],o=[],l=!1,h=e.getParentNode(),a=h.type===n.conditionalNodeType&&n.testNodePropertyNames.some(T=>h[T]===s),f,m,E=h.type===n.conditionalNodeType&&!a,g=0;do m=f||s,f=e.getParentNode(g),g++;while(f&&f.type===n.conditionalNodeType&&n.testNodePropertyNames.every(T=>f[T]!==m));let b=f||h,A=m;if(n.shouldCheckJsx&&(ha(s[n.testNodePropertyNames[0]])||ha(u)||ha(c)||function(T){return function(P){let v=[];return function _(O){O.type==="ConditionalExpression"?(_(O.test),_(O.consequent),_(O.alternate)):v.push(O)}(P),v}(T).some(ha)}(A))){l=!0,E=!0;let T=v=>_t([Da("(",""),fa(_t([da,v])),da,Da(")","")]),P=v=>v.type==="NullLiteral"||v.type==="Literal"&&v.value===null||v.type==="Identifier"&&v.name==="undefined";o.push(" ? ",P(u)?e.call(r,n.consequentNodePropertyName):T(e.call(r,n.consequentNodePropertyName))," : ",c.type===n.conditionalNodeType||P(c)?e.call(r,n.alternateNodePropertyName):T(e.call(r,n.alternateNodePropertyName)))}else{let T=_t([Jf,"? ",u.type===n.conditionalNodeType?Da("","("):"",ma(2,e.call(r,n.consequentNodePropertyName)),u.type===n.conditionalNodeType?Da("",")"):"",Jf,": ",c.type===n.conditionalNodeType?e.call(r,n.alternateNodePropertyName):ma(2,e.call(r,n.alternateNodePropertyName))]);o.push(h.type!==n.conditionalNodeType||h[n.alternateNodePropertyName]===s||a?T:t.useTabs?e5(fa(T)):ma(Math.max(0,t.tabWidth-2),T))}let C=mo([...n.testNodePropertyNames.map(T=>s[T].comments),u.comments,c.comments]).filter(Boolean).some(T=>Y3(T)&&K3(t.originalText,Q3(T),Z3(T))),F=!l&&(h.type==="MemberExpression"||h.type==="OptionalMemberExpression"||h.type==="NGPipeExpression"&&h.left===s)&&!h.computed,w=(T=>h===b?Xf(T,{shouldBreak:C}):C?_t([T,t5]):T)(_t([].concat((B=_t(n.beforeParts()),h.type===n.conditionalNodeType&&h[n.alternateNodePropertyName]===s?ma(2,B):B),E?_t(o):fa(_t(o)),n.afterParts(F))));var B;return a?Xf(_t([fa(_t([da,w])),da])):w},{getNextNonSpaceNonCommentCharacter:r5,isNextLineEmpty:n5}=ce,{printDanglingComments:s5}=he,{builders:{concat:vt,line:i5,hardline:Yf,softline:Qf,group:a5,indent:u5,ifBreak:o5},utils:{removeLines:Zf}}=te,{getFunctionParameters:em,iterateFunctionParametersPath:c5,isSimpleType:l5,isTestCall:p5,isTypeAnnotationAFunction:h5,isObjectType:tm,isObjectTypePropertyAFunction:d5,hasRestParameter:f5,shouldPrintComma:m5}=ge,{locEnd:rm}=et,{printFunctionTypeParameters:D5}=jt;function nm(e){if(!e)return!1;let t=em(e);if(t.length!==1)return!1;let[r]=t;return!r.comments&&(r.type==="ObjectPattern"||r.type==="ArrayPattern"||r.type==="Identifier"&&r.typeAnnotation&&(r.typeAnnotation.type==="TypeAnnotation"||r.typeAnnotation.type==="TSTypeAnnotation")&&tm(r.typeAnnotation.typeAnnotation)||r.type==="FunctionTypeParam"&&tm(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 oc={printFunctionParameters:function(e,t,r,n,s){let u=e.getValue(),c=em(u),o=s?D5(e,r,t):"";if(c.length===0)return vt([o,"(",s5(e,r,!0,g=>r5(r.originalText,g,rm)===")"),")"]);let l=e.getParentNode(),h=p5(l),a=nm(u),f=n&&!c.some(g=>g.comments),m=[];if(c5(e,(g,b)=>{let A=b===c.length-1;A&&u.rest&&m.push("..."),m.push(g.call(t)),A||(m.push(","),h||a||f?m.push(" "):n5(r.originalText,c[b],rm)?m.push(Yf,Yf):m.push(i5))}),f)return a5(vt([Zf(o),"(",vt(m.map(Zf)),")"]));let E=c.every(g=>!g.decorators);return a&&E||h?vt([o,"(",vt(m),")"]):(d5(l)||h5(l)||l.type==="TypeAlias"||l.type==="UnionTypeAnnotation"||l.type==="TSUnionType"||l.type==="IntersectionTypeAnnotation"||l.type==="FunctionTypeAnnotation"&&l.returnType===u)&&c.length===1&&c[0].name===null&&u.this!==c[0]&&c[0].typeAnnotation&&u.typeParameters===null&&l5(c[0].typeAnnotation)&&!u.rest?r.arrowParens==="always"?vt(["(",vt(m),")"]):vt(m):vt([o,"(",u5(vt([Qf,vt(m)])),o5(!f5(u)&&m5(r,"all")?",":""),Qf,")"])},shouldHugFunctionParameters:nm},{builders:{concat:sm}}=te,{isFlowAnnotationComment:g5,isSimpleType:y5,isObjectType:E5}=ge,ga={printTypeAnnotation:function(e,t,r){let n=e.getValue();if(!n.typeAnnotation)return"";let s=e.getParentNode(),u=n.definite||s&&s.type==="VariableDeclarator"&&s.definite,c=s.type==="DeclareFunction"&&s.id===n;return g5(t.originalText,n.typeAnnotation)?sm([" /*: ",e.call(r,"typeAnnotation")," */"]):sm([c?"":u?"!: ":": ",e.call(r,"typeAnnotation")])},shouldHugType:function(e){if(y5(e)||E5(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}},{printDanglingComments:im}=he,{builders:{concat:$n,line:C5,softline:ya,group:cc,indent:b5,ifBreak:A5}}=te,{getLast:x5,isNextLineEmpty:F5}=ce,{hasDanglingComments:v5,shouldPrintComma:w5}=ge,{locEnd:S5}=et,{printOptionalToken:T5}=jt,{printTypeAnnotation:B5}=ga;function am(e,t,r,n){let s=[],u=[];return e.each(c=>{s.push($n(u)),s.push(cc(n(c))),u=[",",C5],c.getValue()&&F5(t.originalText,c.getValue(),S5)&&u.push(ya)},r),$n(s)}var P5={printArray:function(e,t,r){let n=e.getValue(),s=[],u=n.type==="TupleExpression"?"#[":"[";if(n.elements.length===0)v5(n)?s.push(cc($n([u,im(e,t),ya,"]"]))):s.push(u,"]");else{let c=x5(n.elements),o=!(c&&c.type==="RestElement"),l=o&&c===null,h=!t.__inJestEach&&n.elements.length>1&&n.elements.every((a,f,m)=>{let E=a&&a.type;if(E!=="ArrayExpression"&&E!=="ObjectExpression")return!1;let g=m[f+1];if(g&&E!==g.type)return!1;let b=E==="ArrayExpression"?"elements":"properties";return a[b]&&a[b].length>1});s.push(cc($n([u,b5($n([ya,am(e,t,"elements",r)])),l?",":"",A5(o&&!l&&w5(t)?",":""),im(e,t,!0),ya,"]"]),{shouldBreak:h}))}return s.push(T5(e),B5(e,t,r)),$n(s)},printArrayItems:am},{printDanglingComments:um}=he,{builders:{concat:er,line:Ea,softline:lc,group:pc,indent:N5,ifBreak:om,hardline:cm}}=te,{getLast:k5,isNextLineEmpty:I5,hasNewlineInRange:L5,hasNewline:O5}=ce,{hasDanglingComments:lm,shouldPrintComma:M5,hasNodeIgnoreComment:pm,isBlockComment:R5}=ge,{locStart:js,locEnd:hm}=et,{printOptionalToken:dm}=jt,{shouldHugFunctionParameters:fm}=oc,{printTypeAnnotation:hc,shouldHugType:j5}=ga,_5={printObject:function(e,t,r){let n=t.semi?";":"",s=e.getValue(),u;u=s.type==="TSTypeLiteral"?"members":s.type==="TSInterfaceBody"?"body":"properties";let c=s.type==="ObjectTypeAnnotation",o=[];c&&o.push("indexers","callProperties","internalSlots"),o.push(u);let l=o.map(T=>s[T][0]).sort((T,P)=>js(T)-js(P))[0],h=e.getParentNode(0),a=c&&h&&(h.type==="InterfaceDeclaration"||h.type==="DeclareInterface"||h.type==="DeclareClass")&&e.getName()==="body",f=s.type==="TSInterfaceBody"||a||s.type==="ObjectPattern"&&h.type!=="FunctionDeclaration"&&h.type!=="FunctionExpression"&&h.type!=="ArrowFunctionExpression"&&h.type!=="ObjectMethod"&&h.type!=="ClassMethod"&&h.type!=="ClassPrivateMethod"&&h.type!=="AssignmentPattern"&&h.type!=="CatchClause"&&s.properties.some(T=>T.value&&(T.value.type==="ObjectPattern"||T.value.type==="ArrayPattern"))||s.type!=="ObjectPattern"&&l&&L5(t.originalText,js(s),js(l)),m=a?";":s.type==="TSInterfaceBody"||s.type==="TSTypeLiteral"?om(n,";"):",",E=s.type==="RecordExpression"?"#{":s.exact?"{|":"{",g=s.exact?"|}":"}",b=[];o.forEach(T=>{e.each(P=>{let v=P.getValue();b.push({node:v,printed:r(P),loc:js(v)})},T)});let A=[],C=b.sort((T,P)=>T.loc-P.loc).map(T=>{let P=er(A.concat(pc(T.printed)));return A=[m,Ea],T.node.type!=="TSPropertySignature"&&T.node.type!=="TSMethodSignature"&&T.node.type!=="TSConstructSignatureDeclaration"||!pm(T.node)||A.shift(),I5(t.originalText,T.node,hm)&&A.push(cm),P});if(s.inexact){let T;if(lm(s)){let P=!s.comments.every(_=>R5(_)),v=um(e,t,!0);T=er([v,P||O5(t.originalText,hm(s.comments[s.comments.length-1]))?cm:Ea,"..."])}else T="...";C.push(er(A.concat(T)))}let F=k5(s[u]),w=!(s.inexact||F&&F.type==="RestElement"||F&&(F.type==="TSPropertySignature"||F.type==="TSCallSignatureDeclaration"||F.type==="TSMethodSignature"||F.type==="TSConstructSignatureDeclaration")&&pm(F)),B;if(C.length===0){if(!lm(s))return er([E,g,hc(e,t,r)]);B=pc(er([E,um(e,t),lc,g,dm(e),hc(e,t,r)]))}else B=er([E,N5(er([t.bracketSpacing?Ea:lc,er(C)])),om(w&&(m!==","||M5(t))?m:""),er([t.bracketSpacing?Ea:lc,g]),dm(e),hc(e,t,r)]);return e.match(T=>T.type==="ObjectPattern"&&!T.decorators,(T,P,v)=>fm(T)&&(P==="params"||P==="parameters"||P==="this"||P==="rest")&&v===0)||e.match(j5,(T,P)=>P==="typeAnnotation",(T,P)=>P==="typeAnnotation",(T,P,v)=>fm(T)&&(P==="params"||P==="parameters"||P==="this"||P==="rest")&&v===0)?B:pc(B,{shouldBreak:f})}},{printComments:mm,printDanglingComments:Dm}=he,{builders:{concat:de,line:dc,hardline:Le,softline:tt,group:Jr,indent:Vn,conditionalGroup:U5,fill:q5,ifBreak:fc,lineSuffixBoundary:gm},utils:{willBreak:ym,isLineNext:mc,isEmpty:Dc}}=te,{getLast:Wn,getPreferredQuote:$5}=ce,{hasTrailingComment:V5,isEmptyJSXElement:W5,isJSXWhitespaceExpression:z5,isJSXNode:Em,isMeaningfulJSXText:gc,matchJsxWhitespaceRegex:Cm,rawText:yc,isLiteral:H5,isCallOrOptionalCallExpression:G5,isStringLiteral:Ec,isBinaryish:J5,isBlockComment:bm}=ge,{willPrintOwnComments:X5}=Cr;function K5(e,t,r){let n=e.getValue();if(n.type==="JSXElement"&&W5(n))return de([e.call(r,"openingElement"),e.call(r,"closingElement")]);let s=n.type==="JSXElement"?e.call(r,"openingElement"):e.call(r,"openingFragment"),u=n.type==="JSXElement"?e.call(r,"closingElement"):e.call(r,"closingFragment");if(n.children.length===1&&n.children[0].type==="JSXExpressionContainer"&&(n.children[0].expression.type==="TemplateLiteral"||n.children[0].expression.type==="TaggedTemplateExpression"))return de([s,de(e.map(r,"children")),u]);n.children=n.children.map(w=>z5(w)?{type:"JSXText",value:" ",raw:" "}:w);let c=n.children.filter(Em).length>0,o=n.children.filter(w=>w.type==="JSXExpressionContainer").length>1,l=n.type==="JSXElement"&&n.openingElement.attributes.length>1,h=ym(s)||c||l||o,a=e.getParentNode().rootMarker==="mdx",f=t.singleQuote?"{' '}":'{" "}',m=a?de([" "]):fc(de([f,tt])," "),E=n.openingElement&&n.openingElement.name&&n.openingElement.name.name==="fbt",g=function(w,B,T,P,v){let _=w.getValue(),O=[];return w.each((M,q)=>{let j=M.getValue();if(H5(j)){let W=yc(j);if(gc(j)){let z=W.split(Cm);if(z[0]===""){if(O.push(""),z.shift(),/\n/.test(z[0])){let Y=_.children[q+1];O.push(xm(v,z[1],j,Y))}else O.push(P);z.shift()}let H;if(Wn(z)===""&&(z.pop(),H=z.pop()),z.length===0)return;if(z.forEach((Y,ye)=>{ye%2==1?O.push(dc):O.push(Y)}),H!==void 0)if(/\n/.test(H)){let Y=_.children[q+1];O.push(xm(v,Wn(O),j,Y))}else O.push(P);else{let Y=_.children[q+1];O.push(Am(v,Wn(O),j,Y))}}else/\n/.test(W)?W.match(/\n/g).length>1&&(O.push(""),O.push(Le)):(O.push(""),O.push(P))}else{let W=T(M);O.push(W);let z=_.children[q+1];if(z&&gc(z)){let H=yc(z).trim().split(Cm)[0];O.push(Am(v,H,j,z))}else O.push(Le)}},"children"),O}(e,0,r,m,E),b=n.children.some(w=>gc(w));for(let w=g.length-2;w>=0;w--){let B=g[w]===""&&g[w+1]==="",T=g[w]===Le&&g[w+1]===""&&g[w+2]===Le,P=(g[w]===tt||g[w]===Le)&&g[w+1]===""&&g[w+2]===m,v=g[w]===m&&g[w+1]===""&&(g[w+2]===tt||g[w+2]===Le),_=g[w]===m&&g[w+1]===""&&g[w+2]===m,O=g[w]===tt&&g[w+1]===""&&g[w+2]===Le||g[w]===Le&&g[w+1]===""&&g[w+2]===tt;T&&b||B||P||_||O?g.splice(w,2):v&&g.splice(w+1,2)}for(;g.length&&(mc(Wn(g))||Dc(Wn(g)));)g.pop();for(;g.length&&(mc(g[0])||Dc(g[0]))&&(mc(g[1])||Dc(g[1]));)g.shift(),g.shift();let A=[];g.forEach((w,B)=>{if(w===m){if(B===1&&g[B-1]==="")return g.length===2?void A.push(f):void A.push(de([f,Le]));if(B===g.length-1||g[B-1]===""&&g[B-2]===Le)return void A.push(f)}A.push(w),ym(w)&&(h=!0)});let C=b?q5(A):Jr(de(A),{shouldBreak:!0});if(a)return C;let F=Jr(de([s,Vn(de([Le,C])),Le,u]));return h?F:U5([Jr(de([s,de(g),u])),F])}function Am(e,t,r,n){return e?"":r.type==="JSXElement"&&!r.closingElement||n&&n.type==="JSXElement"&&!n.closingElement?t.length===1?tt:Le:tt}function xm(e,t,r,n){return e?Le:t.length===1?r.type==="JSXElement"&&!r.closingElement||n&&n.type==="JSXElement"&&!n.closingElement?Le:tt:Le}function Fm(e,t,r){let n=e.getValue();return de(["{",e.call(s=>{let u=de(["...",r(s)]),c=s.getValue();return c.comments&&c.comments.length&&X5(s)?de([Vn(de([tt,mm(s,()=>u,t)])),tt]):u},n.type==="JSXSpreadAttribute"?"argument":"expression"),"}"])}var Y5={printJsxElement:function(e,t,r){let n=mm(e,()=>K5(e,t,r),t);return function(s,u,c){let o=s.getParentNode();if(!o||{ArrayExpression:!0,JSXAttribute:!0,JSXElement:!0,JSXExpressionContainer:!0,JSXFragment:!0,ExpressionStatement:!0,CallExpression:!0,OptionalCallExpression:!0,ConditionalExpression:!0,JsExpressionRoot:!0}[o.type])return u;let l=s.match(void 0,a=>a.type==="ArrowFunctionExpression",G5,a=>a.type==="JSXExpressionContainer"),h=Un(s,c);return Jr(de([h?"":fc("("),Vn(de([tt,u])),tt,h?"":fc(")")]),{shouldBreak:l})}(e,n,t)},printJsxAttribute:function(e,t,r){let n=e.getValue(),s=[];if(s.push(e.call(r,"name")),n.value){let u;if(Ec(n.value)){let c=yc(n.value).replace(/'/g,"'").replace(/"/g,'"'),o=$5(c,t.jsxSingleQuote?"'":'"'),l=o==="'"?"'":""";c=c.slice(1,-1).replace(new RegExp(o,"g"),l),u=de([o,c,o])}else u=e.call(r,"value");s.push("=",u)}return de(s)},printJsxOpeningElement:function(e,t,r){let n=e.getValue(),s=n.name&&n.name.comments&&n.name.comments.length>0||n.typeParameters&&n.typeParameters.comments&&n.typeParameters.comments.length>0;if(n.selfClosing&&!n.attributes.length&&!s)return de(["<",e.call(r,"name"),e.call(r,"typeParameters")," />"]);if(n.attributes&&n.attributes.length===1&&n.attributes[0].value&&Ec(n.attributes[0].value)&&!n.attributes[0].value.value.includes(
)&&!s&&(!n.attributes[0].comments||!n.attributes[0].comments.length))return Jr(de(["<",e.call(r,"name"),e.call(r,"typeParameters")," ",de(e.map(r,"attributes")),n.selfClosing?" />":">"]));let u=n.attributes.length&&V5(Wn(n.attributes)),c=!n.attributes.length&&!s||t.jsxBracketSameLine&&(!s||n.attributes.length)&&!u,o=n.attributes&&n.attributes.some(l=>l.value&&Ec(l.value)&&l.value.value.includes(
));return Jr(de(["<",e.call(r,"name"),e.call(r,"typeParameters"),de([Vn(de(e.map(l=>de([dc,r(l)]),"attributes"))),n.selfClosing?dc:c?">":tt]),n.selfClosing?"/>":c?"":">"]),{shouldBreak:o})},printJsxClosingElement:function(e,t,r){return de(["</",e.call(r,"name"),">"])},printJsxOpeningClosingFragment:function(e,t){let r=e.getValue(),n=r.comments&&r.comments.length,s=n&&!r.comments.every(c=>bm(c)),u=r.type==="JSXOpeningFragment";return de([u?"<":"</",Vn(de([s?Le:n&&!u?" ":"",Dm(e,t,!0)])),s?Le:"",">"])},printJsxExpressionContainer:function(e,t,r){let n=e.getValue(),s=e.getParentNode(0),u=n.expression.comments&&n.expression.comments.length>0,c=n.expression.type==="JSXEmptyExpression"||!u&&(n.expression.type==="ArrayExpression"||n.expression.type==="ObjectExpression"||n.expression.type==="ArrowFunctionExpression"||n.expression.type==="CallExpression"||n.expression.type==="OptionalCallExpression"||n.expression.type==="FunctionExpression"||n.expression.type==="TemplateLiteral"||n.expression.type==="TaggedTemplateExpression"||n.expression.type==="DoExpression"||Em(s)&&(n.expression.type==="ConditionalExpression"||J5(n.expression)));return Jr(de(c?["{",e.call(r,"expression"),gm,"}"]:["{",Vn(de([tt,e.call(r,"expression")])),tt,gm,"}"]))},printJsxEmptyExpression:function(e,t){let r=e.getValue(),n=r.comments&&!r.comments.every(s=>bm(s));return de([Dm(e,t,!n),n?Le:""])},printJsxSpreadAttribute:Fm,printJsxSpreadChild:Fm},{printDanglingComments:Q5}=he,{builders:{concat:_s,join:vm,line:Z5,hardline:ev,softline:wm,group:tv,indent:rv,ifBreak:nv}}=te,{hasDanglingComments:sv,isTestCall:iv,isBlockComment:av,shouldPrintComma:uv}=ge,{shouldHugType:Cc}=ga,bc=new WeakMap;function Sm(e){return bc.has(e)||bc.set(e,Symbol("typeParameters")),bc.get(e)}function ov(e,t){let r=e.getValue();if(!sv(r))return"";let n=r.comments.every(u=>av(u)),s=Q5(e,t,n);return n?s:_s([s,ev])}var Ac={printTypeParameters:function(e,t,r,n){let s=e.getValue();if(!s[n])return"";if(!Array.isArray(s[n]))return e.call(r,n);let u=e.getNode(2);return u!=null&&iv(u)||s[n].length===0||s[n].length===1&&(Cc(s[n][0])||s[n][0].type==="GenericTypeAnnotation"&&Cc(s[n][0].id)||s[n][0].type==="TSTypeReference"&&Cc(s[n][0].typeName)||s[n][0].type==="NullableTypeAnnotation")?_s(["<",vm(", ",e.map(r,n)),ov(e,t),">"]):tv(_s(["<",rv(_s([wm,vm(_s([",",Z5]),e.map(r,n))])),nv(t.parser!=="typescript"&&t.parser!=="babel-ts"&&uv(t,"all")?",":""),wm,">"]),{id:Sm(s)})},getTypeParametersGroupId:Sm},{printComments:Tm}=he,{printString:cv,printNumber:xc}=ce,{builders:{concat:Bm}}=te,{isNumericLiteral:lv,isSimpleNumber:pv,isStringLiteral:hv,isStringPropSafeToUnquote:Pm,rawText:Nm}=ge,Ca=new WeakMap,km={printPropertyKey:function(e,t,r){let n=e.getNode();if(n.computed)return Bm(["[",e.call(r,"key"),"]"]);let s=e.getParentNode(),{key:u}=n;if(n.type==="ClassPrivateProperty"&&u.type==="Identifier")return Bm(["#",e.call(r,"key")]);if(t.quoteProps==="consistent"&&!Ca.has(s)){let c=(s.properties||s.body||s.members).some(o=>!o.computed&&o.key&&hv(o.key)&&!Pm(o,t));Ca.set(s,c)}if((u.type==="Identifier"||lv(u)&&pv(xc(Nm(u)))&&String(u.value)===xc(Nm(u))&&t.parser!=="typescript"&&t.parser!=="babel-ts")&&(t.parser==="json"||t.quoteProps==="consistent"&&Ca.get(s))){let c=cv(JSON.stringify(u.type==="Identifier"?u.name:u.value.toString()),t);return e.call(o=>Tm(o,()=>c,t),"key")}return Pm(n,t)&&(t.quoteProps==="as-needed"||t.quoteProps==="consistent"&&!Ca.get(s))?e.call(c=>Tm(c,()=>/^\d/.test(u.value)?xc(u.value):u.value,t),"key"):e.call(r,"key")}},{printDanglingComments:Im}=he,{getNextNonSpaceNonCommentCharacterIndex:dv}=ce,{builders:{concat:we,line:fv,softline:Us,group:tr,indent:ba,ifBreak:qs,hardline:Lm}}=te,{getFunctionParameters:mv,hasDanglingComments:Om,hasLeadingOwnLineComment:Dv,isFlowAnnotationComment:gv,isJSXNode:yv,isTemplateOnItsOwnLine:Ev,shouldPrintComma:Cv,startsWithNoLookaheadToken:bv,returnArgumentHasLeadingComment:Av,isBinaryish:xv,isLineComment:Fv}=ge,{locEnd:vv}=et,{printFunctionParameters:Fc}=oc,{printPropertyKey:wv}=km,{printFunctionTypeParameters:Mm}=jt;function Rm(e,t,r){let n=[Mm(e,t,r),tr(we([Fc(e,r,t),vc(e,r,t)]))];return e.getNode().body?n.push(" ",e.call(r,"body")):n.push(t.semi?";":""),we(n)}function jm(e,t){return t.arrowParens==="always"?!1:t.arrowParens==="avoid"?function(r){let n=mv(r);return!(n.length!==1||r.typeParameters||Om(r)||n[0].type!=="Identifier"||n[0].typeAnnotation||n[0].comments||n[0].optional||r.predicate||r.returnType)}(e.getValue()):!1}function vc(e,t,r){let n=e.getValue(),s=e.call(t,"returnType");if(n.returnType&&gv(r.originalText,n.returnType))return we([" /*: ",s," */"]);let u=[s];return n.returnType&&n.returnType.typeAnnotation&&u.unshift(": "),n.predicate&&u.push(n.returnType?" ":": ",e.call(t,"predicate")),we(u)}var wc={printFunctionDeclaration:function(e,t,r,n){let s=e.getValue(),u=[];return s.async&&u.push("async "),s.generator?u.push("function* "):u.push("function "),s.id&&u.push(e.call(t,"id")),u.push(Mm(e,r,t),tr(we([Fc(e,t,r,n),vc(e,t,r)])),s.body?" ":"",e.call(t,"body")),we(u)},printArrowFunctionExpression:function(e,t,r,n){let s=e.getValue(),u=[];s.async&&u.push("async "),jm(e,t)?u.push(e.call(r,"params",0)):u.push(tr(we([Fc(e,r,t,n&&(n.expandLastArg||n.expandFirstArg),!0),vc(e,r,t)])));let c=Im(e,t,!0,f=>{let m=dv(t.originalText,f,vv);return m!==!1&&t.originalText.slice(m,m+2)==="=>"});c&&u.push(" ",c),u.push(" =>");let o=e.call(f=>r(f,n),"body");if(!Dv(t.originalText,s.body)&&(s.body.type==="ArrayExpression"||s.body.type==="ObjectExpression"||s.body.type==="BlockStatement"||yv(s.body)||Ev(s.body,t.originalText)||s.body.type==="ArrowFunctionExpression"||s.body.type==="DoExpression"))return tr(we([we(u)," ",o]));if(s.body.type==="SequenceExpression")return tr(we([we(u),tr(we([" (",ba(we([Us,o])),Us,")"]))]));let l=(n&&n.expandLastArg||e.getParentNode().type==="JSXExpressionContainer")&&!(s.comments&&s.comments.length),h=n&&n.expandLastArg&&Cv(t,"all"),a=s.body.type==="ConditionalExpression"&&!bv(s.body,!1);return tr(we([we(u),tr(we([ba(we([fv,a?qs("","("):"",o,a?qs("",")"):""])),l?we([qs(h?",":""),Us]):""]))]))},printMethod:function(e,t,r){let n=e.getNode(),{kind:s}=n,u=n.value||n,c=[];return s&&s!=="init"&&s!=="method"&&s!=="constructor"?(Qt.ok(s==="get"||s==="set"),c.push(s," ")):u.async&&c.push("async "),u.generator&&c.push("*"),c.push(wv(e,t,r),n.optional||n.key.optional?"?":"",n===u?Rm(e,t,r):e.call(o=>Rm(o,t,r),"value")),we(c)},printReturnAndThrowArgument:function(e,t,r){let n=e.getValue(),s=t.semi?";":"",u=[];n.argument&&(Av(t,n.argument)?u.push(we([" (",ba(we([Lm,e.call(r,"argument")])),Lm,")"])):xv(n.argument)||n.argument.type==="SequenceExpression"?u.push(tr(we([qs(" ("," "),ba(we([Us,e.call(r,"argument")])),Us,qs(")")]))):u.push(" ",e.call(r,"argument")));let c=Array.isArray(n.comments)&&n.comments[n.comments.length-1],o=c&&Fv(c);return o&&u.push(s),Om(n)&&u.push(" ",Im(e,t,!0)),o||u.push(s),we(u)},shouldPrintParamsWithoutParens:jm},{printComments:Sv,printDanglingComments:Tv}=he,{builders:{concat:wt,join:Bv,line:$s,hardline:Pv,softline:_m,group:Vs,indent:Aa,ifBreak:Sc}}=te,{hasTrailingComment:Nv,hasTrailingLineComment:kv}=ge,{getTypeParametersGroupId:Iv}=Ac,{printMethod:Lv}=wc,{printDecorators:Ov}=jt;function Um(e){return e.typeParameters&&!kv(e.typeParameters)&&!function(t){return["superClass","extends","mixins","implements"].filter(r=>!!t[r]).length>1}(e)}function Tc(e,t,r,n){let s=e.getValue();if(!s[n]||s[n].length===0)return"";let u=Tv(e,t,!0,({marker:c})=>c===n);return wt([Um(s)?Sc(" ",$s,{groupId:Iv(s.typeParameters)}):$s,u,u&&Pv,n,Vs(Aa(wt([$s,Bv(wt([",",$s]),e.map(r,n))])))])}function Mv(e,t,r){let n=e.call(r,"superClass");return e.getParentNode().type==="AssignmentExpression"?Vs(Sc(wt(["(",Aa(wt([_m,n])),_m,")"]),n)):n}var Rv={printClass:function(e,t,r){let n=e.getValue(),s=[];n.abstract&&s.push("abstract "),s.push("class");let u=n.id&&Nv(n.id)||n.superClass&&n.superClass.comments&&n.superClass.comments.length!==0||n.extends&&n.extends.length!==0||n.mixins&&n.mixins.length!==0||n.implements&&n.implements.length!==0,c=[],o=[];if(n.id&&c.push(" ",e.call(r,"id")),c.push(e.call(r,"typeParameters")),n.superClass){let l=wt(["extends ",Mv(e,t,r),e.call(r,"superTypeParameters")]),h=e.call(a=>Sv(a,()=>l,t),"superClass");u?o.push($s,Vs(h)):o.push(" ",h)}else o.push(Tc(e,t,r,"extends"));if(o.push(Tc(e,t,r,"mixins")),o.push(Tc(e,t,r,"implements")),u){let l=wt(o);Um(n)?s.push(Vs(wt(c.concat(Sc(Aa(l),l))))):s.push(Vs(Aa(wt(c.concat(l)))))}else s.push(...c,...o);return s.push(" ",e.call(r,"body")),wt(s)},printClassMethod:function(e,t,r){let n=e.getValue(),s=[];return n.decorators&&n.decorators.length!==0&&s.push(Ov(e,t,r)),n.accessibility&&s.push(n.accessibility+" "),n.static&&s.push("static "),(n.type==="TSAbstractMethodDefinition"||n.abstract)&&s.push("abstract "),s.push(Lv(e,t,r)),wt(s)}},{getLast:qm,getPenultimate:jv,isNextLineEmpty:_v}=ce,{getFunctionParameters:$m,iterateFunctionParametersPath:Uv,hasLeadingComment:qv,hasTrailingComment:$v,isFunctionCompositionArgs:Vv,isJSXNode:Wv,isLongCurriedCallExpression:zv,shouldPrintComma:Hv,getCallArguments:Gv,iterateCallArgumentsPath:Vm}=ge,{locEnd:Jv}=et,{builders:{concat:$e,line:xa,hardline:Fa,softline:Wm,group:va,indent:zm,conditionalGroup:Xv,ifBreak:Hm,breakParent:Kv},utils:{willBreak:Ws}}=te;function wa(e){return e.type==="ObjectExpression"&&(e.properties.length>0||e.comments)||e.type==="ArrayExpression"&&(e.elements.length>0||e.comments)||e.type==="TSTypeAssertion"&&wa(e.expression)||e.type==="TSAsExpression"&&wa(e.expression)||e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&(!e.returnType||!e.returnType.typeAnnotation||e.returnType.typeAnnotation.type!=="TSTypeReference")&&(e.body.type==="BlockStatement"||e.body.type==="ArrowFunctionExpression"||e.body.type==="ObjectExpression"||e.body.type==="ArrayExpression"||e.body.type==="CallExpression"||e.body.type==="OptionalCallExpression"||e.body.type==="ConditionalExpression"||Wv(e.body))}var Bc=function(e,t,r){let n=e.getValue(),s=n.type==="ImportExpression",u=Gv(n);if(u.length===0)return $e(["(",he.printDanglingComments(e,t,!0),")"]);if(u.length===2&&u[0].type==="ArrowFunctionExpression"&&$m(u[0]).length===0&&u[0].body.type==="BlockStatement"&&u[1].type==="ArrayExpression"&&!u.some(A=>A.comments))return $e(["(",e.call(r,"arguments",0),", ",e.call(r,"arguments",1),")"]);let c=!1,o=!1,l=!1,h=u.length-1,a=[];Vm(e,(A,C)=>{let F=A.getNode(),w=[r(A)];C===h||(_v(t.originalText,F,Jv)?(C===0&&(l=!0),c=!0,w.push(",",Fa,Fa)):w.push(",",xa)),o=function(B,T){if(!B||B.type!=="ArrowFunctionExpression"||!B.body||B.body.type!=="BlockStatement"||$m(B).length===0)return!1;let P=!1;return Uv(T,v=>{P=P||Ws($e([r(v)]))}),P}(F,A),a.push($e(w))});let f=s||n.callee&&n.callee.type==="Import"||!Hv(t,"all")?"":",";function m(){return va($e(["(",zm($e([xa,$e(a)])),f,xa,")"]),{shouldBreak:!0})}if(e.getParentNode().type!=="Decorator"&&Vv(u))return m();let E=function(A){if(A.length!==2)return!1;let[C,F]=A;return!(C.comments&&C.comments.length||C.type!=="FunctionExpression"&&(C.type!=="ArrowFunctionExpression"||C.body.type!=="BlockStatement")||F.type==="FunctionExpression"||F.type==="ArrowFunctionExpression"||F.type==="ConditionalExpression"||wa(F))}(u),g=function(A){let C=qm(A),F=jv(A);return!qv(C)&&!$v(C)&&wa(C)&&(!F||F.type!==C.type)}(u);if(E||g){let A=(E?a.slice(1).some(Ws):a.slice(0,-1).some(Ws))||c||o,C=[];Vm(e,(B,T)=>{E&&T===0&&(C=[$e([B.call(P=>r(P,{expandFirstArg:!0})),a.length>1?",":"",l?Fa:xa,l?Fa:""])].concat(a.slice(1))),g&&T===u.length-1&&(C=a.slice(0,-1).concat(B.call(P=>r(P,{expandLastArg:!0}))))});let F=a.some(Ws),w=$e(["(",$e(C),")"]);return $e([F?Kv:"",Xv([F||n.typeArguments||n.typeParameters?Hm(m(),w):w,$e(E?["(",va(C[0],{shouldBreak:!0}),$e(C.slice(1)),")"]:["(",$e(a.slice(0,-1)),va(qm(C),{shouldBreak:!0}),")"]),m()],{shouldBreak:A})])}let b=$e(["(",zm($e([Wm,$e(a)])),Hm(f),Wm,")"]);return zv(e)?b:va(b,{shouldBreak:a.some(Ws)||c})},{builders:{concat:zn,softline:Pc,group:Gm,indent:Jm}}=te,{isNumericLiteral:Yv}=ge,{printOptionalToken:Qv}=jt;function Nc(e,t,r){let n=e.call(r,"property"),s=e.getValue(),u=Qv(e);return s.computed?!s.property||Yv(s.property)?zn([u,"[",n,"]"]):Gm(zn([u,"[",Jm(zn([Pc,n])),Pc,"]"])):zn([u,".",n])}var Xm={printMemberExpression:function(e,t,r){let n=e.getValue(),s=e.getParentNode(),u,c=0;do u=e.getParentNode(c),c++;while(u&&(u.type==="MemberExpression"||u.type==="OptionalMemberExpression"||u.type==="TSNonNullExpression"));let o=u&&(u.type==="NewExpression"||u.type==="BindExpression"||u.type==="VariableDeclarator"&&u.id.type!=="Identifier"||u.type==="AssignmentExpression"&&u.left.type!=="Identifier")||n.computed||n.object.type==="Identifier"&&n.property.type==="Identifier"&&s.type!=="MemberExpression"&&s.type!=="OptionalMemberExpression";return zn([e.call(r,"object"),o?Nc(e,t,r):Gm(Jm(zn([Pc,Nc(e,t,r)])))])},printMemberLookup:Nc},{getLast:zs,isNextLineEmpty:Zv,isNextLineEmptyAfterIndex:e8,getNextNonSpaceNonCommentCharacterIndex:t8}=ce,{hasLeadingComment:Km,hasTrailingComment:r8,isCallOrOptionalCallExpression:br,isFunctionOrArrowExpression:n8,isLongCurriedCallExpression:s8,isMemberish:Hs,isNumericLiteral:Ym,isSimpleCallArgument:i8}=ge,{locEnd:Qm}=et,{builders:{concat:Ut,join:a8,hardline:Sa,group:kc,indent:u8,conditionalGroup:o8,breakParent:c8},utils:{willBreak:Ic}}=te,{printMemberLookup:l8}=Xm,{printOptionalToken:Zm,printFunctionTypeParameters:eD,printBindExpressionCallee:p8}=jt,h8=function(e,t,r){let n=e.getParentNode(),s=!n||n.type==="ExpressionStatement",u=[];function c(O){let{originalText:M}=t,q=t8(M,O,Qm);return M.charAt(q)===")"?q!==!1&&e8(M,q+1):Zv(M,O,Qm)}function o(O){let M=O.getValue();br(M)&&(Hs(M.callee)||br(M.callee))?(u.unshift({node:M,printed:Ut([he.printComments(O,()=>Ut([Zm(O),eD(O,t,r),Bc(O,t,r)]),t),c(M)?Sa:""])}),O.call(q=>o(q),"callee")):Hs(M)?(u.unshift({node:M,needsParens:Un(O,t),printed:he.printComments(O,()=>M.type==="OptionalMemberExpression"||M.type==="MemberExpression"?l8(O,t,r):p8(O,t,r),t)}),O.call(q=>o(q),"object")):M.type==="TSNonNullExpression"?(u.unshift({node:M,printed:he.printComments(O,()=>"!",t)}),O.call(q=>o(q),"expression")):u.unshift({node:M,printed:O.call(r)})}let l=e.getValue();u.unshift({node:l,printed:Ut([Zm(e),eD(e,t,r),Bc(e,t,r)])}),l.callee&&e.call(O=>o(O),"callee");let h=[],a=[u[0]],f=1;for(;f<u.length&&(u[f].node.type==="TSNonNullExpression"||br(u[f].node)||(u[f].node.type==="MemberExpression"||u[f].node.type==="OptionalMemberExpression")&&u[f].node.computed&&Ym(u[f].node.property));++f)a.push(u[f]);if(!br(u[0].node))for(;f+1<u.length&&Hs(u[f].node)&&Hs(u[f+1].node);++f)a.push(u[f]);h.push(a),a=[];let m=!1;for(;f<u.length;++f){if(m&&Hs(u[f].node)){if(u[f].node.computed&&Ym(u[f].node.property)){a.push(u[f]);continue}h.push(a),a=[],m=!1}(br(u[f].node)||u[f].node.type==="ImportExpression")&&(m=!0),a.push(u[f]),u[f].node.comments&&u[f].node.comments.some(O=>O.trailing)&&(h.push(a),a=[],m=!1)}function E(O){return/^[A-Z]|^[$_]+$/.test(O)}a.length>0&&h.push(a);let g=h.length>=2&&!h[1][0].node.comments&&function(O){let M=O[1].length&&O[1][0].node.computed;if(O[0].length===1){let j=O[0][0].node;return j.type==="ThisExpression"||j.type==="Identifier"&&(E(j.name)||s&&function(W){return W.length<=t.tabWidth}(j.name)||M)}let q=zs(O[0]).node;return(q.type==="MemberExpression"||q.type==="OptionalMemberExpression")&&q.property.type==="Identifier"&&(E(q.property.name)||M)}(h);function b(O){let M=O.map(q=>q.printed);return O.length>0&&O[O.length-1].needsParens?Ut(["(",...M,")"]):Ut(M)}let A=h.map(b),C=Ut(A),F=g?3:2,w=mo(h),B=w.slice(1,-1).some(O=>Km(O.node))||w.slice(0,-1).some(O=>r8(O.node))||h[F]&&Km(h[F][0].node);if(h.length<=F&&!B)return s8(e)?C:kc(C);let T=zs(h[g?1:0]).node,P=!br(T)&&c(T),v=Ut([b(h[0]),g?Ut(h.slice(1,2).map(b)):"",P?Sa:"",function(O){return O.length===0?"":u8(kc(Ut([Sa,a8(Sa,O.map(b))])))}(h.slice(g?2:1))]),_=u.map(({node:O})=>O).filter(br);return B||_.length>2&&_.some(O=>!O.arguments.every(M=>i8(M,0)))||A.slice(0,-1).some(Ic)||function(){let O=zs(zs(h)).node,M=zs(A);return br(O)&&Ic(M)&&_.slice(0,-1).some(q=>q.arguments.some(n8))}()?kc(v):Ut([Ic(C)||P?c8:"",o8([C,v])])},{builders:{concat:Lc,join:d8,group:f8}}=te,{getCallArguments:m8,hasFlowAnnotationComment:D8,isCallOrOptionalCallExpression:g8,isMemberish:y8,isTemplateOnItsOwnLine:E8,isTestCall:C8,iterateCallArgumentsPath:b8}=ge,{printOptionalToken:A8,printFunctionTypeParameters:tD}=jt,x8={printCallExpression:function(e,t,r){let n=e.getValue(),s=n.type==="NewExpression",u=n.type==="ImportExpression",c=A8(e),o=m8(n);if(o.length>0&&(!u&&!s&&n.callee.type==="Identifier"&&(n.callee.name==="require"||n.callee.name==="define")||o.length===1&&E8(o[0],t.originalText)||!s&&C8(n,e.getParentNode()))){let a=[];return b8(e,f=>{a.push(r(f))}),Lc([s?"new ":"",e.call(r,"callee"),c,tD(e,t,r),Lc(["(",d8(", ",a),")"])])}let l=(t.parser==="babel"||t.parser==="babel-flow")&&n.callee&&n.callee.type==="Identifier"&&D8(n.callee.trailingComments);if(l&&(n.callee.trailingComments[0].printed=!0),!u&&!s&&y8(n.callee)&&!e.call(a=>Un(a,t),"callee"))return h8(e,t,r);let h=Lc([s?"new ":"",u?"import":e.call(r,"callee"),c,l?"/*:: ".concat(n.callee.trailingComments[0].value.slice(2).trim()," */"):"",tD(e,t,r),Bc(e,t,r)]);return u||g8(n.callee)?f8(h):h}},{builders:{concat:Gs,join:F8,line:Oc,group:Mc,indent:Rc,ifBreak:rD}}=te,{hasTrailingComment:v8,hasTrailingLineComment:w8,identity:S8}=ge,{getTypeParametersGroupId:T8}=Ac,{printTypeScriptModifiers:B8}=jt,P8={printInterface:function(e,t,r){let n=e.getValue(),s=[];(n.type==="DeclareInterface"||n.declare)&&s.push("declare "),n.type==="TSInterfaceDeclaration"&&s.push(n.abstract?"abstract ":"",B8(e,t,r)),s.push("interface");let u=[],c=[];n.type!=="InterfaceTypeAnnotation"&&u.push(" ",e.call(r,"id"),e.call(r,"typeParameters"));let o=n.typeParameters&&!w8(n.typeParameters);if(n.extends&&n.extends.length!==0&&c.push(o?rD(" ",Oc,{groupId:T8(n.typeParameters)}):Oc,"extends ",(n.extends.length===1?S8:Rc)(F8(Gs([",",Oc]),e.map(r,"extends")))),n.id&&v8(n.id)||n.extends&&n.extends.length!==0){let l=Gs(c);o?s.push(Mc(Gs(u.concat(rD(Rc(l),l))))):s.push(Mc(Rc(Gs(u.concat(l)))))}else s.push(...u,...c);return s.push(" ",e.call(r,"body")),Mc(Gs(s))}},{printComments:N8}=he,{getLast:k8}=ce,{builders:{concat:Et,join:I8,line:nD,softline:Ta,group:rr,indent:Ba,align:L8,ifBreak:sD},utils:{normalizeParts:O8}}=te,{hasLeadingOwnLineComment:M8,hasTrailingLineComment:R8,isBinaryish:iD,isJSXNode:aD,shouldFlatten:uD}=ge,j8=0;function oD(e,t,r,n,s){let u=[],c=e.getValue();if(iD(c)){uD(c.operator,c.left.operator)?u=u.concat(e.call(b=>oD(b,t,r,!0,s),"left")):u.push(rr(e.call(t,"left")));let o=Pa(c),l=(c.operator==="|>"||c.type==="NGPipeExpression"||c.operator==="|"&&r.parser==="__vue_expression")&&!M8(r.originalText,c.right),h=c.type==="NGPipeExpression"?"|":c.operator,a=c.type==="NGPipeExpression"&&c.arguments.length!==0?rr(Ba(Et([Ta,": ",I8(Et([Ta,":",sD(" ")]),e.map(t,"arguments").map(b=>L8(2,rr(b))))]))):"",f=Et(o?[h," ",e.call(t,"right"),a]:[l?nD:"",h,l?" ":nD,e.call(t,"right"),a]),m=e.getParentNode(),E=R8(c.left),g=E||!(s&&c.type==="LogicalExpression")&&m.type!==c.type&&c.left.type!==c.type&&c.right.type!==c.type;u.push(l?"":" ",g?rr(f,{shouldBreak:E}):f),n&&c.comments&&(u=O8(N8(e,()=>Et(u),r).parts))}else u.push(rr(e.call(t)));return u}function Pa(e){return e.type==="LogicalExpression"&&(e.right.type==="ObjectExpression"&&e.right.properties.length!==0||e.right.type==="ArrayExpression"&&e.right.elements.length!==0||!!aD(e.right))}var cD={printBinaryishExpression:function(e,t,r){let n=e.getValue(),s=e.getParentNode(),u=e.getParentNode(1),c=n!==s.body&&(s.type==="IfStatement"||s.type==="WhileStatement"||s.type==="SwitchStatement"||s.type==="DoWhileStatement"),o=oD(e,r,t,!1,c);if(c)return Et(o);if((s.type==="CallExpression"||s.type==="OptionalCallExpression")&&s.callee===n||s.type==="UnaryExpression"||(s.type==="MemberExpression"||s.type==="OptionalMemberExpression")&&!s.computed)return rr(Et([Ba(Et([Ta,Et(o)])),Ta]));let l=s.type==="ReturnStatement"||s.type==="ThrowStatement"||s.type==="JSXExpressionContainer"&&u.type==="JSXAttribute"||n.operator!=="|"&&s.type==="JsExpressionRoot"||n.type!=="NGPipeExpression"&&(s.type==="NGRoot"&&t.parser==="__ng_binding"||s.type==="NGMicrosyntaxExpression"&&u.type==="NGMicrosyntax"&&u.body.length===1)||n===s.body&&s.type==="ArrowFunctionExpression"||n!==s.body&&s.type==="ForStatement"||s.type==="ConditionalExpression"&&u.type!=="ReturnStatement"&&u.type!=="ThrowStatement"&&u.type!=="CallExpression"&&u.type!=="OptionalCallExpression"||s.type==="TemplateLiteral",h=s.type==="AssignmentExpression"||s.type==="VariableDeclarator"||s.type==="ClassProperty"||s.type==="FieldDefinition"||s.type==="TSAbstractClassProperty"||s.type==="ClassPrivateProperty"||s.type==="ObjectProperty"||s.type==="Property",a=iD(n.left)&&uD(n.operator,n.left.operator);if(l||Pa(n)&&!a||!Pa(n)&&h)return rr(Et(o));if(o.length===0)return"";let f=aD(n.right),m=o.findIndex(F=>typeof F!="string"&&F.type==="group"),E=o.slice(0,m===-1?1:m+1),g=Et(o.slice(E.length,f?-1:void 0)),b=Symbol("logicalChain-"+ ++j8),A=rr(Et([...E,Ba(g)]),{id:b});if(!f)return A;let C=k8(o);return rr(Et([A,sD(Ba(C),C,{groupId:b})]))},shouldInlineLogicalExpression:Pa},{builders:{concat:Js,line:lD,group:pD,indent:hD}}=te,{hasLeadingOwnLineComment:_8,isBinaryish:dD,isMemberExpressionChain:U8,isStringLiteral:fD}=ge,{shouldInlineLogicalExpression:mD}=cD;function jc(e,t,r,n,s,u){if(!n)return t;let c=DD(e,n,s,u);return pD(Js([t,r,c]))}function DD(e,t,r,n){return _8(n.originalText,t)?hD(Js([lD,r])):dD(t)&&!mD(t)||t.type==="ConditionalExpression"&&dD(t.test)&&!mD(t.test)||t.type==="StringLiteralTypeAnnotation"||t.type==="ClassExpression"&&t.decorators&&t.decorators.length||(e.type==="Identifier"||fD(e)||e.type==="MemberExpression")&&(fD(t)||U8(t))&&n.parser!=="json"&&n.parser!=="json5"||t.type==="SequenceExpression"?pD(hD(Js([lD,r]))):Js([" ",r])}var q8={printVariableDeclarator:function(e,t,r){let n=e.getValue();return jc(n.id,e.call(r,"id")," =",n.init,n.init&&e.call(r,"init"),t)},printAssignmentExpression:function(e,t,r){let n=e.getValue();return jc(n.left,e.call(r,"left"),Js([" ",n.operator]),n.right,e.call(r,"right"),t)},printAssignment:jc,printAssignmentRight:DD},{isNextLineEmpty:$8}=ce,{builders:{concat:V8,join:W8,hardline:gD}}=te,{classChildNeedsASIProtection:z8,classPropMayCauseASIProblems:H8,getLeftSidePathName:G8,hasNakedLeftSide:J8,isJSXNode:X8,isLastStatement:K8,isTheOnlyJSXElementInMarkdown:Y8}=ge,{locEnd:Q8}=et,{shouldPrintParamsWithoutParens:Z8}=wc;function ew({path:e,index:t,bodyNode:r,isClass:n},s,u){let c=e.getValue();if(!c||c.type==="EmptyStatement")return;let o=u(e),l=s.originalText,h=[];if(s.semi||n||Y8(s,e)||!function(a,f){return a.getNode().type!=="ExpressionStatement"?!1:a.call(m=>yD(m,f),"expression")}(e,s)?h.push(o):c.comments&&c.comments.some(a=>a.leading)?h.push(u(e,{needsSemi:!0})):h.push(";",o),!s.semi&&n){if(H8(e))h.push(";");else if(c.type==="ClassProperty"||c.type==="FieldDefinition"){let a=r.body[t+1];z8(a)&&h.push(";")}}return $8(l,c,Q8)&&!K8(e)&&h.push(gD),V8(h)}function yD(e,t){let r=e.getValue();return!!(Un(e,t)||r.type==="ParenthesizedExpression"||r.type==="TypeCastExpression"||r.type==="ArrowFunctionExpression"&&!Z8(e,t)||r.type==="ArrayExpression"||r.type==="ArrayPattern"||r.type==="UnaryExpression"&&r.prefix&&(r.operator==="+"||r.operator==="-")||r.type==="TemplateLiteral"||r.type==="TemplateElement"||X8(r)||r.type==="BindExpression"&&!r.object||r.type==="RegExpLiteral"||r.type==="Literal"&&r.pattern||r.type==="Literal"&&r.regex)||!!J8(r)&&e.call(n=>yD(n,t),...G8(e,r))}var ED={printStatementSequence:function(e,t,r){let n=e.getNode(),s=n.type==="ClassBody",u=e.map((c,o)=>ew({path:e,index:o,bodyNode:n,isClass:s},t,r)).filter(Boolean);return W8(gD,u)}},{printDanglingComments:tw}=he,{isNextLineEmpty:rw}=ce,{builders:{concat:Na,hardline:ka,indent:CD}}=te,{hasDanglingComments:nw}=ge,{locEnd:sw}=et,{printStatementSequence:iw}=ED,aw={printBlock:function(e,t,r){let n=e.getValue(),s=[],u=t.semi?";":"",c=e.call(f=>iw(f,t,r),"body");n.type==="StaticBlock"&&s.push("static ");let o=n.body.some(f=>f.type!=="EmptyStatement"),l=n.directives&&n.directives.length>0,h=e.getParentNode(),a=e.getParentNode(1);return o||l||nw(n)||h.type!=="ArrowFunctionExpression"&&h.type!=="FunctionExpression"&&h.type!=="FunctionDeclaration"&&h.type!=="ObjectMethod"&&h.type!=="ClassMethod"&&h.type!=="ClassPrivateMethod"&&h.type!=="ForStatement"&&h.type!=="WhileStatement"&&h.type!=="DoWhileStatement"&&h.type!=="DoExpression"&&(h.type!=="CatchClause"||a.finalizer)&&h.type!=="TSModuleDeclaration"&&h.type!=="TSDeclareFunction"&&n.type!=="StaticBlock"?(s.push("{"),l&&e.each(f=>{s.push(CD(Na([ka,r(f),u]))),rw(t.originalText,f.getValue(),sw)&&s.push(ka)},"directives"),o&&s.push(CD(Na([ka,c]))),s.push(tw(e,t)),s.push(ka,"}"),Na(s)):Na([...s,"{}"])}},{hasNewline:uw}=ce,{builders:{concat:bD,join:ow,hardline:AD}}=te,{isLineComment:cw,isBlockComment:lw}=ge,{locStart:xD,locEnd:FD}=et,pw={printComment:function(e,t){let r=e.getValue();if(cw(r))return t.originalText.slice(xD(r),FD(r)).trimEnd();if(lw(r)){if(function(u){let c="*".concat(u.value,"*").split(
);return c.length>1&&c.every(o=>o.trim()[0]==="*")}(r)){let u=function(c){let o=c.value.split(
);return bD(["/*",ow(AD,o.map((l,h)=>h===0?l.trimEnd():" "+(h<o.length-1?l.trim():l.trimStart()))),"*/"])}(r);return r.trailing&&!uw(t.originalText,xD(r),{backwards:!0})?bD([AD,u]):u}let n=FD(r),s=t.originalText.slice(n-3,n)==="*-/";return"/*"+r.value+(s?"*-/":"*/")}throw new Error("Not a comment: "+JSON.stringify(r))}},{hasNewline:vD,hasNewlineInRange:hw,getLast:dw,printString:fw,printNumber:Xs,isNextLineEmpty:_c}=ce,{builders:{concat:N,join:qt,line:lt,hardline:xe,softline:oe,literalline:mw,group:re,indent:me,align:Dw,conditionalGroup:gw,ifBreak:Ar},utils:{isEmpty:yw}}=te,{insertPragma:Ew}=tc,{printHtmlBinding:Cw,isVueEventBindingExpression:bw}=L3,{getFunctionParameters:Aw,getCallArguments:xw,getParentExportDeclaration:Fw,getTypeScriptMappedTypeModifier:wD,hasDanglingComments:vw,hasFlowShorthandAnnotationComment:ww,hasLeadingOwnLineComment:SD,hasNewlineBetweenOrAfterDecorators:Sw,hasNgSideEffect:Tw,hasPrettierIgnore:Bw,hasTrailingComment:Pw,isExportDeclaration:Nw,isFunctionNotation:kw,isGetterOrSetter:Iw,isLiteral:Lw,isNgForOf:TD,isObjectType:Ia,isObjectTypePropertyAFunction:Ow,isTheOnlyJSXElementInMarkdown:Mw,isTSXFile:Rw,isBlockComment:Uc,needsHardlineAfterDanglingComment:jw,rawText:_w,shouldPrintComma:La}=ge,{locStart:St,locEnd:Hn}=et,{printOptionalToken:Xr,printBindExpressionCallee:Uw,printTypeScriptModifiers:qc,printDecorators:qw,printFlowDeclaration:Gn,adjustClause:xr}=jt,{printImportDeclaration:$w,printExportDeclaration:Vw,printExportAllDeclaration:Ww,printModuleSpecifier:zw}=X3,{printFunctionParameters:$c}=oc,{printTemplateLiteral:Hw}=Os,{printArray:Gw,printArrayItems:Vc}=P5,{printObject:Jw}=_5,{printTypeAnnotation:Oa,shouldHugType:Xw}=ga,{printJsxElement:Kw,printJsxAttribute:Yw,printJsxOpeningElement:Qw,printJsxClosingElement:Zw,printJsxOpeningClosingFragment:e6,printJsxExpressionContainer:t6,printJsxEmptyExpression:r6,printJsxSpreadAttribute:n6,printJsxSpreadChild:s6}=Y5,{printClass:BD,printClassMethod:i6}=Rv,{printTypeParameters:Ma}=Ac,{printPropertyKey:Ra}=km,{printFunctionDeclaration:PD,printArrowFunctionExpression:a6,printMethod:ND,printReturnAndThrowArgument:u6}=wc,{printCallExpression:o6}=x8,{printInterface:c6}=P8,{printVariableDeclarator:l6,printAssignmentExpression:p6,printAssignment:h6,printAssignmentRight:Wc}=q8,{printBinaryishExpression:d6}=cD,{printStatementSequence:zc}=ED,{printMemberExpression:f6}=Xm,{printBlock:m6}=aw,{printComment:D6}=pw;function ja(e,t,r){let n=_w(e),s=r||e.type==="DirectiveLiteral";return fw(n,t,s)}function kD(e){let t=e.flags.split("").sort().join("");return"/".concat(e.pattern,"/").concat(t)}var g6={preprocess:$f,print:function(e,t,r,n){let s=e.getValue(),u=!1,c=function(a,f,m,E){let g=a.getValue(),b=f.semi?";":"";if(!g)return"";if(typeof g=="string")return g;let A=Cw(a,f,m);if(A)return A;let C=[];switch(g.type){case"JsExpressionRoot":return a.call(m,"node");case"JsonRoot":return N([a.call(m,"node"),xe]);case"File":return g.program&&g.program.interpreter&&C.push(a.call(F=>F.call(m,"interpreter"),"program")),C.push(a.call(m,"program")),N(C);case"Program":{let F=!g.body.every(({type:w})=>w==="EmptyStatement")||g.comments;if(g.directives){let w=g.directives.length;a.each((B,T)=>{C.push(m(B),b,xe),(T<w-1||F)&&_c(f.originalText,B.getValue(),Hn)&&C.push(xe)},"directives")}return C.push(a.call(w=>zc(w,f,m),"body")),C.push(he.printDanglingComments(a,f,!0)),F&&C.push(xe),N(C)}case"EmptyStatement":return"";case"ExpressionStatement":if(g.directive)return N([ja(g.expression,f,!0),b]);if(f.parser==="__vue_event_binding"){let F=a.getParentNode();if(F.type==="Program"&&F.body.length===1&&F.body[0]===g)return N([a.call(m,"expression"),bw(g.expression)?";":""])}return N([a.call(m,"expression"),Mw(f,a)?"":b]);case"ParenthesizedExpression":return g.expression.comments?re(N(["(",me(N([oe,a.call(m,"expression")])),oe,")"])):N(["(",a.call(m,"expression"),")"]);case"AssignmentExpression":return p6(a,f,m);case"VariableDeclarator":return l6(a,f,m);case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":return d6(a,f,m);case"AssignmentPattern":return N([a.call(m,"left")," = ",a.call(m,"right")]);case"TSTypeAssertion":{let F=!(g.expression.type==="ArrayExpression"||g.expression.type==="ObjectExpression"),w=re(N(["<",me(N([oe,a.call(m,"typeAnnotation")])),oe,">"])),B=N([Ar("("),me(N([oe,a.call(m,"expression")])),oe,Ar(")")]);return F?gw([N([w,a.call(m,"expression")]),N([w,re(B,{shouldBreak:!0})]),N([w,a.call(m,"expression")])]):re(N([w,a.call(m,"expression")]))}case"OptionalMemberExpression":case"MemberExpression":return f6(a,f,m);case"MetaProperty":return N([a.call(m,"meta"),".",a.call(m,"property")]);case"BindExpression":return g.object&&C.push(a.call(m,"object")),C.push(re(me(N([oe,Uw(a,f,m)])))),N(C);case"Identifier":return N([g.name,Xr(a),Oa(a,f,m)]);case"V8IntrinsicIdentifier":return N(["%",g.name]);case"SpreadElement":case"SpreadElementPattern":case"SpreadProperty":case"SpreadPropertyPattern":case"RestElement":case"ObjectTypeSpreadProperty":return N(["...",a.call(m,"argument"),Oa(a,f,m)]);case"FunctionDeclaration":case"FunctionExpression":return C.push(PD(a,m,f,E&&E.expandLastArg&&xw(a.getParentNode()).length>1)),g.body||C.push(b),N(C);case"ArrowFunctionExpression":return a6(a,f,m,E);case"YieldExpression":return C.push("yield"),g.delegate&&C.push("*"),g.argument&&C.push(" ",a.call(m,"argument")),N(C);case"AwaitExpression":{C.push("await"),g.argument&&C.push(" ",a.call(m,"argument"));let F=a.getParentNode();return(F.type==="CallExpression"||F.type==="OptionalCallExpression")&&F.callee===g||(F.type==="MemberExpression"||F.type==="OptionalMemberExpression")&&F.object===g?re(N([me(N([oe,N(C)])),oe])):N(C)}case"TSExportAssignment":return N(["export = ",a.call(m,"expression"),b]);case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"DeclareExportDeclaration":return Vw(a,f,m);case"ExportAllDeclaration":case"DeclareExportAllDeclaration":return Ww(a,f,m);case"ImportDeclaration":return $w(a,f,m);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return zw(a,f,m);case"ImportAttribute":return N([a.call(m,"key"),": ",a.call(m,"value")]);case"Import":return"import";case"TSModuleBlock":case"BlockStatement":case"StaticBlock":return m6(a,f,m);case"ThrowStatement":case"ReturnStatement":return N([g.type==="ReturnStatement"?"return":"throw",u6(a,f,m)]);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return o6(a,f,m);case"ObjectTypeInternalSlot":return N([g.static?"static ":"","[[",a.call(m,"id"),"]]",Xr(a),g.method?"":": ",a.call(m,"value")]);case"ObjectExpression":case"ObjectPattern":case"ObjectTypeAnnotation":case"TSInterfaceBody":case"TSTypeLiteral":case"RecordExpression":return Jw(a,f,m);case"ObjectProperty":case"Property":return g.method||g.kind==="get"||g.kind==="set"?ND(a,f,m):(g.shorthand?C.push(a.call(m,"value")):C.push(h6(g.key,Ra(a,f,m),":",g.value,a.call(m,"value"),f)),N(C));case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":case"TSAbstractMethodDefinition":case"TSDeclareMethod":return i6(a,f,m);case"ObjectMethod":return ND(a,f,m);case"Decorator":return N(["@",a.call(m,"expression"),a.call(m,"callee")]);case"ArrayExpression":case"ArrayPattern":case"TupleExpression":return Gw(a,f,m);case"SequenceExpression":{let F=a.getParentNode(0);if(F.type==="ExpressionStatement"||F.type==="ForStatement"){let w=[];return a.each(B=>{B.getName()===0?w.push(m(B)):w.push(",",me(N([lt,m(B)])))},"expressions"),re(N(w))}return re(N([qt(N([",",lt]),a.map(m,"expressions"))]))}case"ThisExpression":return"this";case"Super":return"super";case"NullLiteral":return"null";case"RegExpLiteral":return kD(g);case"NumericLiteral":return Xs(g.extra.raw);case"DecimalLiteral":return Xs(g.value)+"m";case"BigIntLiteral":return(g.bigint||g.extra.raw).toLowerCase();case"BooleanLiteral":case"StringLiteral":case"Literal":return g.regex?kD(g.regex):g.bigint?g.raw.toLowerCase():typeof g.value=="number"?Xs(g.raw):typeof g.value!="string"?""+g.value:ja(g,f);case"Directive":return a.call(m,"value");case"DirectiveLiteral":return ja(g,f);case"UnaryExpression":return C.push(g.operator),/[a-z]$/.test(g.operator)&&C.push(" "),g.argument.comments&&g.argument.comments.length>0?C.push(re(N(["(",me(N([oe,a.call(m,"argument")])),oe,")"]))):C.push(a.call(m,"argument")),N(C);case"UpdateExpression":return C.push(a.call(m,"argument"),g.operator),g.prefix&&C.reverse(),N(C);case"ConditionalExpression":return Kf(a,f,m,{beforeParts:()=>[a.call(m,"test")],afterParts:F=>[F?oe:""],shouldCheckJsx:!0,conditionalNodeType:"ConditionalExpression",consequentNodePropertyName:"consequent",alternateNodePropertyName:"alternate",testNodePropertyNames:["test"]});case"VariableDeclaration":{let F=a.map(v=>m(v),"declarations"),w=a.getParentNode(),B=w.type==="ForStatement"||w.type==="ForInStatement"||w.type==="ForOfStatement",T=g.declarations.some(v=>v.init),P;return F.length!==1||g.declarations[0].comments?F.length>0&&(P=me(F[0])):P=F[0],C=[g.declare?"declare ":"",g.kind,P?N([" ",P]):"",me(N(F.slice(1).map(v=>N([",",T&&!B?xe:lt,v]))))],B&&w.body!==g||C.push(b),re(N(C))}case"TSTypeAliasDeclaration":{g.declare&&C.push("declare ");let F=Wc(g.id,g.typeAnnotation,g.typeAnnotation&&a.call(m,"typeAnnotation"),f);return C.push("type ",a.call(m,"id"),a.call(m,"typeParameters")," =",F,b),re(N(C))}case"WithStatement":return re(N(["with (",a.call(m,"object"),")",xr(g.body,a.call(m,"body"))]));case"IfStatement":{let F=xr(g.consequent,a.call(m,"consequent")),w=re(N(["if (",re(N([me(N([oe,a.call(m,"test")])),oe])),")",F]));if(C.push(w),g.alternate){let B=Pw(g.consequent)&&g.consequent.comments.some(P=>P.trailing&&!Uc(P))||jw(g),T=g.consequent.type==="BlockStatement"&&!B;C.push(T?" ":xe),vw(g)&&C.push(he.printDanglingComments(a,f,!0),B?xe:" "),C.push("else",re(xr(g.alternate,a.call(m,"alternate"),g.alternate.type==="IfStatement")))}return N(C)}case"ForStatement":{let F=xr(g.body,a.call(m,"body")),w=he.printDanglingComments(a,f,!0),B=w?N([w,oe]):"";return g.init||g.test||g.update?N([B,re(N(["for (",re(N([me(N([oe,a.call(m,"init"),";",lt,a.call(m,"test"),";",lt,a.call(m,"update")])),oe])),")",F]))]):N([B,re(N(["for (;;)",F]))])}case"WhileStatement":return re(N(["while (",re(N([me(N([oe,a.call(m,"test")])),oe])),")",xr(g.body,a.call(m,"body"))]));case"ForInStatement":return re(N(["for (",a.call(m,"left")," in ",a.call(m,"right"),")",xr(g.body,a.call(m,"body"))]));case"ForOfStatement":return re(N(["for",g.await?" await":""," (",a.call(m,"left")," of ",a.call(m,"right"),")",xr(g.body,a.call(m,"body"))]));case"DoWhileStatement":{let F=xr(g.body,a.call(m,"body"));return C=[re(N(["do",F]))],g.body.type==="BlockStatement"?C.push(" "):C.push(xe),C.push("while ("),C.push(re(N([me(N([oe,a.call(m,"test")])),oe])),")",b),N(C)}case"DoExpression":return N(["do ",a.call(m,"body")]);case"BreakStatement":return C.push("break"),g.label&&C.push(" ",a.call(m,"label")),C.push(b),N(C);case"ContinueStatement":return C.push("continue"),g.label&&C.push(" ",a.call(m,"label")),C.push(b),N(C);case"LabeledStatement":return g.body.type==="EmptyStatement"?N([a.call(m,"label"),":;"]):N([a.call(m,"label"),": ",a.call(m,"body")]);case"TryStatement":return N(["try ",a.call(m,"block"),g.handler?N([" ",a.call(m,"handler")]):"",g.finalizer?N([" finally ",a.call(m,"finalizer")]):""]);case"CatchClause":if(g.param){let F=g.param.comments&&g.param.comments.some(B=>!Uc(B)||B.leading&&vD(f.originalText,Hn(B))||B.trailing&&vD(f.originalText,St(B),{backwards:!0})),w=a.call(m,"param");return N(["catch ",N(F?["(",me(N([oe,w])),oe,") "]:["(",w,") "]),a.call(m,"body")])}return N(["catch ",a.call(m,"body")]);case"SwitchStatement":return N([re(N(["switch (",me(N([oe,a.call(m,"discriminant")])),oe,")"]))," {",g.cases.length>0?me(N([xe,qt(xe,a.map(F=>{let w=F.getValue();return N([F.call(m),g.cases.indexOf(w)!==g.cases.length-1&&_c(f.originalText,w,Hn)?xe:""])},"cases"))])):"",xe,"}"]);case"SwitchCase":{g.test?C.push("case ",a.call(m,"test"),":"):C.push("default:");let F=g.consequent.filter(w=>w.type!=="EmptyStatement");if(F.length>0){let w=a.call(B=>zc(B,f,m),"consequent");C.push(F.length===1&&F[0].type==="BlockStatement"?N([" ",w]):me(N([xe,w])))}return N(C)}case"DebuggerStatement":return N(["debugger",b]);case"JSXAttribute":return Yw(a,f,m);case"JSXIdentifier":return""+g.name;case"JSXNamespacedName":return qt(":",[a.call(m,"namespace"),a.call(m,"name")]);case"JSXMemberExpression":return qt(".",[a.call(m,"object"),a.call(m,"property")]);case"TSQualifiedName":return qt(".",[a.call(m,"left"),a.call(m,"right")]);case"JSXSpreadAttribute":return n6(a,f,m);case"JSXSpreadChild":return s6(a,f,m);case"JSXExpressionContainer":return t6(a,f,m);case"JSXFragment":case"JSXElement":return Kw(a,f,m);case"JSXOpeningElement":return Qw(a,f,m);case"JSXClosingElement":return Zw(a,f,m);case"JSXOpeningFragment":case"JSXClosingFragment":return e6(a,f);case"JSXText":throw new Error("JSXTest should be handled by JSXElement");case"JSXEmptyExpression":return r6(a,f);case"ClassBody":return g.comments||g.body.length!==0?N(["{",g.body.length>0?me(N([xe,a.call(F=>zc(F,f,m),"body")])):he.printDanglingComments(a,f),xe,"}"]):"{}";case"ClassProperty":case"FieldDefinition":case"TSAbstractClassProperty":case"ClassPrivateProperty":return g.decorators&&g.decorators.length!==0&&C.push(qw(a,f,m)),g.accessibility&&C.push(g.accessibility+" "),g.declare&&C.push("declare "),g.static&&C.push("static "),(g.type==="TSAbstractClassProperty"||g.abstract)&&C.push("abstract "),g.readonly&&C.push("readonly "),g.variance&&C.push(a.call(m,"variance")),C.push(Ra(a,f,m),Xr(a),Oa(a,f,m)),g.value&&C.push(" =",Wc(g.key,g.value,a.call(m,"value"),f)),C.push(b),re(N(C));case"ClassDeclaration":case"ClassExpression":return g.declare&&C.push("declare "),C.push(BD(a,f,m)),N(C);case"TSInterfaceHeritage":case"TSExpressionWithTypeArguments":return C.push(a.call(m,"expression")),g.typeParameters&&C.push(a.call(m,"typeParameters")),N(C);case"TemplateElement":return qt(mw,g.value.raw.split(/\r?\n/g));case"TSTemplateLiteralType":case"TemplateLiteral":return Hw(a,m,f);case"TaggedTemplateExpression":return N([a.call(m,"tag"),a.call(m,"typeParameters"),a.call(m,"quasi")]);case"Node":case"Printable":case"SourceLocation":case"Position":case"Statement":case"Function":case"Pattern":case"Expression":case"Declaration":case"Specifier":case"NamedSpecifier":case"Comment":case"MemberTypeAnnotation":case"Type":throw new Error("unprintable type: "+JSON.stringify(g.type));case"TypeAnnotation":case"TSTypeAnnotation":return g.typeAnnotation?a.call(m,"typeAnnotation"):"";case"TSNamedTupleMember":return N([a.call(m,"label"),g.optional?"?":"",": ",a.call(m,"elementType")]);case"TSTupleType":case"TupleTypeAnnotation":{let F=g.type==="TSTupleType"?"elementTypes":"types",w=g[F].length>0&&dw(g[F]).type==="TSRestType";return re(N(["[",me(N([oe,Vc(a,f,F,m)])),Ar(La(f,"all")&&!w?",":""),he.printDanglingComments(a,f,!0),oe,"]"]))}case"ExistsTypeAnnotation":return"*";case"EmptyTypeAnnotation":return"empty";case"MixedTypeAnnotation":return"mixed";case"ArrayTypeAnnotation":return N([a.call(m,"elementType"),"[]"]);case"BooleanLiteralTypeAnnotation":return""+g.value;case"DeclareClass":return Gn(a,BD(a,f,m));case"TSDeclareFunction":return N([g.declare?"declare ":"",PD(a,m,f),b]);case"DeclareFunction":return Gn(a,N(["function ",a.call(m,"id"),g.predicate?" ":"",a.call(m,"predicate"),b]));case"DeclareModule":return Gn(a,N(["module ",a.call(m,"id")," ",a.call(m,"body")]));case"DeclareModuleExports":return Gn(a,N(["module.exports",": ",a.call(m,"typeAnnotation"),b]));case"DeclareVariable":return Gn(a,N(["var ",a.call(m,"id"),b]));case"DeclareOpaqueType":case"OpaqueType":return C.push("opaque type ",a.call(m,"id"),a.call(m,"typeParameters")),g.supertype&&C.push(": ",a.call(m,"supertype")),g.impltype&&C.push(" = ",a.call(m,"impltype")),C.push(b),g.type==="DeclareOpaqueType"?Gn(a,N(C)):N(C);case"EnumDeclaration":return N(["enum ",a.call(m,"id")," ",a.call(m,"body")]);case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":if(g.type==="EnumSymbolBody"||g.explicitType){let F=null;switch(g.type){case"EnumBooleanBody":F="boolean";break;case"EnumNumberBody":F="number";break;case"EnumStringBody":F="string";break;case"EnumSymbolBody":F="symbol"}C.push("of ",F," ")}if(g.members.length!==0||g.hasUnknownMembers){let F=g.members.length?[xe,Vc(a,f,"members",m),g.hasUnknownMembers||La(f)?",":""]:[];C.push(re(N(["{",me(N([...F,...g.hasUnknownMembers?[xe,"..."]:[]])),he.printDanglingComments(a,f,!0),xe,"}"])))}else C.push(re(N(["{",he.printDanglingComments(a,f),oe,"}"])));return N(C);case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":return N([a.call(m,"id")," = ",typeof g.init=="object"?a.call(m,"init"):String(g.init)]);case"EnumDefaultedMember":return a.call(m,"id");case"FunctionTypeAnnotation":case"TSFunctionType":{let F=a.getParentNode(0),w=a.getParentNode(1),B=a.getParentNode(2),T=g.type==="TSFunctionType"||!((F.type==="ObjectTypeProperty"||F.type==="ObjectTypeInternalSlot")&&!F.variance&&!F.optional&&St(F)===St(g)||F.type==="ObjectTypeCallProperty"||B&&B.type==="DeclareFunction"),P=T&&(F.type==="TypeAnnotation"||F.type==="TSTypeAnnotation"),v=P&&T&&(F.type==="TypeAnnotation"||F.type==="TSTypeAnnotation")&&w.type==="ArrowFunctionExpression";return Ow(F)&&(T=!0,P=!0),v&&C.push("("),C.push($c(a,m,f,!1,!0)),(g.returnType||g.predicate||g.typeAnnotation)&&C.push(T?" => ":": ",a.call(m,"returnType"),a.call(m,"predicate"),a.call(m,"typeAnnotation")),v&&C.push(")"),re(N(C))}case"TSRestType":return N(["...",a.call(m,"typeAnnotation")]);case"TSOptionalType":return N([a.call(m,"typeAnnotation"),"?"]);case"FunctionTypeParam":{let F=g.name?a.call(m,"name"):a.getParentNode().this===g?"this":"";return N([F,Xr(a),F?": ":"",a.call(m,"typeAnnotation")])}case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":case"TSInterfaceDeclaration":return c6(a,f,m);case"ClassImplements":case"InterfaceExtends":return N([a.call(m,"id"),a.call(m,"typeParameters")]);case"TSClassImplements":return N([a.call(m,"expression"),a.call(m,"typeParameters")]);case"TSIntersectionType":case"IntersectionTypeAnnotation":{let F=a.map(m,"types"),w=[],B=!1;for(let T=0;T<F.length;++T)T===0?w.push(F[T]):Ia(g.types[T-1])&&Ia(g.types[T])?w.push(N([" & ",B?me(F[T]):F[T]])):Ia(g.types[T-1])||Ia(g.types[T])?(T>1&&(B=!0),w.push(" & ",T>1?me(F[T]):F[T])):w.push(me(N([" &",lt,F[T]])));return re(N(w))}case"TSUnionType":case"UnionTypeAnnotation":{let F=a.getParentNode(),w=!(F.type==="TypeParameterInstantiation"||F.type==="TSTypeParameterInstantiation"||F.type==="GenericTypeAnnotation"||F.type==="TSTypeReference"||F.type==="TSTypeAssertion"||F.type==="TupleTypeAnnotation"||F.type==="TSTupleType"||F.type==="FunctionTypeParam"&&!F.name&&a.getParentNode(1).this!==F||(F.type==="TypeAlias"||F.type==="VariableDeclarator"||F.type==="TSTypeAliasDeclaration")&&SD(f.originalText,g)),B=Xw(g),T=a.map(_=>{let O=_.call(m);return B||(O=Dw(2,O)),he.printComments(_,()=>O,f)},"types");if(B)return qt(" | ",T);let P=w&&!SD(f.originalText,g),v=N([Ar(N([P?lt:"","| "])),qt(N([lt,"| "]),T)]);return Un(a,f)?re(N([me(v),oe])):F.type==="TupleTypeAnnotation"&&F.types.length>1||F.type==="TSTupleType"&&F.elementTypes.length>1?re(N([me(N([Ar(N(["(",oe])),v])),oe,Ar(")")])):re(w?me(v):v)}case"NullableTypeAnnotation":return N(["?",a.call(m,"typeAnnotation")]);case"Variance":{let{kind:F}=g;return Qt.ok(F==="plus"||F==="minus"),F==="plus"?"+":"-"}case"ObjectTypeCallProperty":return g.static&&C.push("static "),C.push(a.call(m,"value")),N(C);case"ObjectTypeIndexer":return N([g.variance?a.call(m,"variance"):"","[",a.call(m,"id"),g.id?": ":"",a.call(m,"key"),"]: ",a.call(m,"value")]);case"ObjectTypeProperty":{let F="";return g.proto?F="proto ":g.static&&(F="static "),N([F,Iw(g)?g.kind+" ":"",g.variance?a.call(m,"variance"):"",Ra(a,f,m),Xr(a),kw(g)?"":": ",a.call(m,"value")])}case"QualifiedTypeIdentifier":return N([a.call(m,"qualification"),".",a.call(m,"id")]);case"StringLiteralTypeAnnotation":return ja(g,f);case"NumberLiteralTypeAnnotation":Qt.strictEqual(typeof g.value,"number");case"BigIntLiteralTypeAnnotation":return g.extra!=null?Xs(g.extra.raw):Xs(g.raw);case"DeclareTypeAlias":case"TypeAlias":{(g.type==="DeclareTypeAlias"||g.declare)&&C.push("declare ");let F=Wc(g.id,g.right,a.call(m,"right"),f);return C.push("type ",a.call(m,"id"),a.call(m,"typeParameters")," =",F,b),re(N(C))}case"TypeCastExpression":return N(["(",a.call(m,"expression"),Oa(a,f,m),")"]);case"TypeParameterDeclaration":case"TypeParameterInstantiation":{let F=Ma(a,f,m,"params");if(f.parser==="flow"){let w=St(g),B=Hn(g),T=f.originalText.lastIndexOf("/*",w),P=f.originalText.indexOf("*/",B);if(T!==-1&&P!==-1){let v=f.originalText.slice(T+2,P).trim();if(v.startsWith("::")&&!v.includes("/*")&&!v.includes("*/"))return N(["/*:: ",F," */"])}}return F}case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return Ma(a,f,m,"params");case"TSTypeParameter":case"TypeParameter":{let F=a.getParentNode();if(F.type==="TSMappedType")return C.push("[",a.call(m,"name")),g.constraint&&C.push(" in ",a.call(m,"constraint")),F.nameType&&C.push(" as ",a.callParent(B=>B.call(m,"nameType"))),C.push("]"),N(C);g.variance&&C.push(a.call(m,"variance")),C.push(a.call(m,"name")),g.bound&&(C.push(": "),C.push(a.call(m,"bound"))),g.constraint&&C.push(" extends ",a.call(m,"constraint")),g.default&&C.push(" = ",a.call(m,"default"));let w=a.getNode(2);return Aw(F).length===1&&Rw(f)&&!g.constraint&&w.type==="ArrowFunctionExpression"&&C.push(","),N(C)}case"TypeofTypeAnnotation":return N(["typeof ",a.call(m,"argument")]);case"InferredPredicate":return"%checks";case"DeclaredPredicate":return N(["%checks(",a.call(m,"value"),")"]);case"TSAbstractKeyword":return"abstract";case"AnyTypeAnnotation":case"TSAnyKeyword":return"any";case"TSAsyncKeyword":return"async";case"BooleanTypeAnnotation":case"TSBooleanKeyword":return"boolean";case"BigIntTypeAnnotation":case"TSBigIntKeyword":return"bigint";case"TSConstKeyword":return"const";case"TSDeclareKeyword":return"declare";case"TSExportKeyword":return"export";case"NullLiteralTypeAnnotation":case"TSNullKeyword":return"null";case"TSNeverKeyword":return"never";case"NumberTypeAnnotation":case"TSNumberKeyword":return"number";case"TSObjectKeyword":return"object";case"TSProtectedKeyword":return"protected";case"TSPrivateKeyword":return"private";case"TSPublicKeyword":return"public";case"TSReadonlyKeyword":return"readonly";case"SymbolTypeAnnotation":case"TSSymbolKeyword":return"symbol";case"TSStaticKeyword":return"static";case"StringTypeAnnotation":case"TSStringKeyword":return"string";case"TSUndefinedKeyword":return"undefined";case"TSUnknownKeyword":return"unknown";case"VoidTypeAnnotation":case"TSVoidKeyword":return"void";case"TSAsExpression":return N([a.call(m,"expression")," as ",a.call(m,"typeAnnotation")]);case"TSArrayType":return N([a.call(m,"elementType"),"[]"]);case"TSPropertySignature":return g.export&&C.push("export "),g.accessibility&&C.push(g.accessibility+" "),g.static&&C.push("static "),g.readonly&&C.push("readonly "),C.push(Ra(a,f,m),Xr(a)),g.typeAnnotation&&(C.push(": "),C.push(a.call(m,"typeAnnotation"))),g.initializer&&C.push(" = ",a.call(m,"initializer")),N(C);case"TSParameterProperty":return g.accessibility&&C.push(g.accessibility+" "),g.export&&C.push("export "),g.static&&C.push("static "),g.readonly&&C.push("readonly "),C.push(a.call(m,"parameter")),N(C);case"GenericTypeAnnotation":case"TSTypeReference":return N([a.call(m,g.type==="TSTypeReference"?"typeName":"id"),Ma(a,f,m,"typeParameters")]);case"TSTypeQuery":return N(["typeof ",a.call(m,"exprName")]);case"TSIndexSignature":{let F=a.getParentNode(),w=g.parameters.length>1?Ar(La(f)?",":""):"",B=re(N([me(N([oe,qt(N([", ",oe]),a.map(m,"parameters"))])),w,oe]));return N([g.export?"export ":"",g.accessibility?N([g.accessibility," "]):"",g.static?"static ":"",g.readonly?"readonly ":"",g.declare?"declare ":"","[",g.parameters?B:"",g.typeAnnotation?"]: ":"]",g.typeAnnotation?a.call(m,"typeAnnotation"):"",F.type==="ClassBody"?b:""])}case"TSTypePredicate":return N([g.asserts?"asserts ":"",a.call(m,"parameterName"),g.typeAnnotation?N([" is ",a.call(m,"typeAnnotation")]):""]);case"TSNonNullExpression":return N([a.call(m,"expression"),"!"]);case"ThisTypeAnnotation":case"TSThisType":return"this";case"TSImportType":return N([g.isTypeOf?"typeof ":"","import(",a.call(m,g.parameter?"parameter":"argument"),")",g.qualifier?N([".",a.call(m,"qualifier")]):"",Ma(a,f,m,"typeParameters")]);case"TSLiteralType":return a.call(m,"literal");case"TSIndexedAccessType":return N([a.call(m,"objectType"),"[",a.call(m,"indexType"),"]"]);case"TSConstructSignatureDeclaration":case"TSCallSignatureDeclaration":case"TSConstructorType":if(g.type!=="TSCallSignatureDeclaration"&&C.push("new "),C.push(re($c(a,m,f,!1,!0))),g.returnType||g.typeAnnotation){let F=g.type==="TSConstructorType";C.push(F?" => ":": ",a.call(m,"returnType"),a.call(m,"typeAnnotation"))}return N(C);case"TSTypeOperator":return N([g.operator," ",a.call(m,"typeAnnotation")]);case"TSMappedType":{let F=hw(f.originalText,St(g),Hn(g));return re(N(["{",me(N([f.bracketSpacing?lt:oe,g.readonly?N([wD(g.readonly,"readonly")," "]):"",qc(a,f,m),a.call(m,"typeParameter"),g.optional?wD(g.optional,"?"):"",g.typeAnnotation?": ":"",a.call(m,"typeAnnotation"),Ar(b,"")])),he.printDanglingComments(a,f,!0),f.bracketSpacing?lt:oe,"}"]),{shouldBreak:F})}case"TSMethodSignature":return C.push(g.accessibility?N([g.accessibility," "]):"",g.export?"export ":"",g.static?"static ":"",g.readonly?"readonly ":"",g.computed?"[":"",a.call(m,"key"),g.computed?"]":"",Xr(a),$c(a,m,f,!1,!0)),(g.returnType||g.typeAnnotation)&&C.push(": ",a.call(m,"returnType"),a.call(m,"typeAnnotation")),re(N(C));case"TSNamespaceExportDeclaration":return C.push("export as namespace ",a.call(m,"id")),f.semi&&C.push(";"),re(N(C));case"TSEnumDeclaration":return g.declare&&C.push("declare "),g.modifiers&&C.push(qc(a,f,m)),g.const&&C.push("const "),C.push("enum ",a.call(m,"id")," "),g.members.length===0?C.push(re(N(["{",he.printDanglingComments(a,f),oe,"}"]))):C.push(re(N(["{",me(N([xe,Vc(a,f,"members",m),La(f,"es5")?",":""])),he.printDanglingComments(a,f,!0),xe,"}"]))),N(C);case"TSEnumMember":return C.push(a.call(m,"id")),g.initializer&&C.push(" = ",a.call(m,"initializer")),N(C);case"TSImportEqualsDeclaration":return g.isExport&&C.push("export "),C.push("import ",a.call(m,"id")," = ",a.call(m,"moduleReference")),f.semi&&C.push(";"),re(N(C));case"TSExternalModuleReference":return N(["require(",a.call(m,"expression"),")"]);case"TSModuleDeclaration":{let F=a.getParentNode(),w=Lw(g.id),B=F.type==="TSModuleDeclaration",T=g.body&&g.body.type==="TSModuleDeclaration";if(B)C.push(".");else{g.declare&&C.push("declare "),C.push(qc(a,f,m));let P=f.originalText.slice(St(g),St(g.id));g.id.type==="Identifier"&&g.id.name==="global"&&!/namespace|module/.test(P)||C.push(w||/(^|\s)module(\s|$)/.test(P)?"module ":"namespace ")}return C.push(a.call(m,"id")),T?C.push(a.call(m,"body")):g.body?C.push(" ",re(a.call(m,"body"))):C.push(b),N(C)}case"PrivateName":return N(["#",a.call(m,g.id?"id":"name")]);case"TSPrivateIdentifier":return g.escapedText;case"TSConditionalType":return Kf(a,f,m,{beforeParts:()=>[a.call(m,"checkType")," ","extends"," ",a.call(m,"extendsType")],afterParts:()=>[],shouldCheckJsx:!1,conditionalNodeType:"TSConditionalType",consequentNodePropertyName:"trueType",alternateNodePropertyName:"falseType",testNodePropertyNames:["checkType","extendsType"]});case"TSInferType":return N(["infer"," ",a.call(m,"typeParameter")]);case"InterpreterDirective":return C.push("#!",g.value,xe),_c(f.originalText,g,Hn)&&C.push(xe),N(C);case"NGRoot":return N([].concat(a.call(m,"node"),g.node.comments&&g.node.comments.length!==0?N([" //",g.node.comments[0].value.trimEnd()]):[]));case"NGChainedExpression":return re(qt(N([";",lt]),a.map(F=>Tw(F)?m(F):N(["(",m(F),")"]),"expressions")));case"NGEmptyExpression":return"";case"NGQuotedExpression":return N([g.prefix,": ",g.value.trim()]);case"NGMicrosyntax":return N(a.map((F,w)=>N([w===0?"":TD(F.getValue(),w,g)?" ":N([";",lt]),m(F)]),"body"));case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(-[$_a-z][\w$])*$/i.test(g.name)?g.name:JSON.stringify(g.name);case"NGMicrosyntaxExpression":return N([a.call(m,"expression"),g.alias===null?"":N([" as ",a.call(m,"alias")])]);case"NGMicrosyntaxKeyedExpression":{let F=a.getName(),w=a.getParentNode(),B=TD(g,F,w)||(F===1&&(g.key.name==="then"||g.key.name==="else")||F===2&&g.key.name==="else"&&w.body[F-1].type==="NGMicrosyntaxKeyedExpression"&&w.body[F-1].key.name==="then")&&w.body[0].type==="NGMicrosyntaxExpression";return N([a.call(m,"key"),B?" ":": ",a.call(m,"expression")])}case"NGMicrosyntaxLet":return N(["let ",a.call(m,"key"),g.value===null?"":N([" = ",a.call(m,"value")])]);case"NGMicrosyntaxAs":return N([a.call(m,"key")," as ",a.call(m,"alias")]);case"PipelineBareFunction":return a.call(m,"callee");case"PipelineTopicExpression":return a.call(m,"expression");case"PipelinePrimaryTopicReference":return C.push("#"),N(C);case"ArgumentPlaceholder":return"?";case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return N(["?",a.call(m,"typeAnnotation")]);case"TSJSDocNonNullableType":return N(["!",a.call(m,"typeAnnotation")]);case"TSJSDocFunctionType":return N(["function(","): ",a.call(m,"typeAnnotation")]);default:throw new Error("unknown type: "+JSON.stringify(g.type))}}(e,t,r,n);if(!s||yw(c))return c;let o=Fw(e),l=[];if(!(s.type==="ClassMethod"||s.type==="ClassPrivateMethod"||s.type==="ClassProperty"||s.type==="FieldDefinition"||s.type==="TSAbstractClassProperty"||s.type==="ClassPrivateProperty"||s.type==="MethodDefinition"||s.type==="TSAbstractMethodDefinition"||s.type==="TSDeclareMethod"))if(s.decorators&&s.decorators.length>0&&!(o&&St(o,{ignoreDecorators:!0})>St(s.decorators[0]))){let a=s.type==="ClassExpression"||s.type==="ClassDeclaration"||Sw(s,t)?xe:lt;e.each(f=>{let m=f.getValue();m=m.expression?m.expression:m.callee,l.push(r(f),a)},"decorators"),o&&l.unshift(xe)}else Nw(s)&&s.declaration&&s.declaration.decorators&&s.declaration.decorators.length>0&&St(s,{ignoreDecorators:!0})>St(s.declaration.decorators[0])?e.each(a=>{let f=a.getValue().type==="Decorator"?"":"@";l.push(f,r(a),xe)},"declaration","decorators"):u=Un(e,t);let h=[];if(u&&h.unshift("("),h.push(c),u){let a=e.getValue();ww(a)&&(h.push(" /*"),h.push(a.trailingComments[0].value.trimStart()),h.push("*/"),a.trailingComments[0].printed=!0),h.push(")")}return l.length>0?re(N(l.concat(h))):N(h)},embed:m3,insertPragma:Ew,massageAstNode:y3,hasPrettierIgnore:Bw,willPrintOwnComments:Cr.willPrintOwnComments,canAttachComment:function(e){return e.type&&e.type!=="CommentBlock"&&e.type!=="CommentLine"&&e.type!=="Line"&&e.type!=="Block"&&e.type!=="EmptyStatement"&&e.type!=="TemplateElement"&&e.type!=="Import"},printComment:D6,isBlockComment:Uc,handleComments:{ownLine:Cr.handleOwnLineComment,endOfLine:Cr.handleEndOfLineComment,remaining:Cr.handleRemainingComment},getGapRegex:Cr.getGapRegex,getCommentChildNodes:Cr.getCommentChildNodes},{builders:{concat:nr,hardline:Kr,indent:ID,join:LD}}=te,y6=new Set(["start","end","extra","loc","comments","errors","range"]);function OD(e,t){let{type:r}=e;return r==="Identifier"?{type:"StringLiteral",value:e.name}:r==="UnaryExpression"&&e.operator==="+"?t.argument:void 0}OD.ignoredProperties=y6;var E6={preprocess:$f,print:function(e,t,r){let n=e.getValue();switch(n.type){case"JsonRoot":return nr([e.call(r,"node"),Kr]);case"ArrayExpression":return n.elements.length===0?"[]":nr(["[",ID(nr([Kr,LD(nr([",",Kr]),e.map(r,"elements"))])),Kr,"]"]);case"ObjectExpression":return n.properties.length===0?"{}":nr(["{",ID(nr([Kr,LD(nr([",",Kr]),e.map(r,"properties"))])),Kr,"}"]);case"ObjectProperty":return nr([e.call(r,"key"),": ",e.call(r,"value")]);case"UnaryExpression":return nr([n.operator==="+"?"":n.operator,e.call(r,"argument")]);case"NullLiteral":return"null";case"BooleanLiteral":return n.value?"true":"false";case"StringLiteral":case"NumericLiteral":return JSON.stringify(n.value);case"Identifier":return JSON.stringify(n.name);default:throw new Error("unknown type: "+JSON.stringify(n.type))}},massageAstNode:OD},sr={bracketSpacing:{since:"0.0.0",category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{since:"0.0.0",category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{since:"1.8.2",category:"Common",type:"choice",default:[{since:"1.8.2",value:!0},{since:"1.9.0",value:"preserve"}],description:"How to wrap prose.",choices:[{since:"1.9.0",value:"always",description:"Wrap prose if it exceeds the print width."},{since:"1.9.0",value:"never",description:"Do not wrap prose."},{since:"1.9.0",value:"preserve",description:"Wrap prose as-is."}]}},C6={arrowParens:{since:"1.9.0",category:"JavaScript",type:"choice",default:[{since:"1.9.0",value:"avoid"},{since:"2.0.0",value:"always"}],description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: (x) => x"},{value:"avoid",description:"Omit parens when possible. Example: x => x"}]},bracketSpacing:sr.bracketSpacing,jsxBracketSameLine:{since:"0.17.0",category:"JavaScript",type:"boolean",default:!1,description:"Put > on the last line instead of at a new line."},semi:{since:"1.0.0",category:"JavaScript",type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},singleQuote:sr.singleQuote,jsxSingleQuote:{since:"1.15.0",category:"JavaScript",type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{since:"1.17.0",category:"JavaScript",type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{since:"0.0.0",category:"JavaScript",type:"choice",default:[{since:"0.0.0",value:!1},{since:"0.19.0",value:"none"},{since:"2.0.0",value:"es5"}],description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."},{value:"all",description:"Trailing commas wherever possible (including function arguments)."}]}},MD={name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:["js","node"],extensions:[".js","._js",".bones",".cjs",".es",".es6",".frag",".gs",".jake",".jsb",".jscad",".jsfl",".jsm",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib"],filenames:["Jakefile"],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],languageId:183},b6={name:"JSX",type:"programming",group:"JavaScript",extensions:[".jsx"],tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:178},A6={name:"TypeScript",type:"programming",color:"#2b7489",aliases:["ts"],interpreters:["deno","ts-node"],extensions:[".ts"],tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",languageId:378},x6={name:"TSX",type:"programming",group:"TypeScript",extensions:[".tsx"],tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:94901924},RD={name:"JSON",type:"data",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",searchable:!1,extensions:[".json",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".jsonl",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".arcconfig",".htmlhintrc",".tern-config",".tern-project",".watchmanconfig","composer.lock","mcmod.info"],languageId:174},F6={name:"JSON with Comments",type:"data",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:["jsonc"],extensions:[".jsonc",".sublime-build",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[".babelrc",".eslintrc.json",".jscsrc",".jshintrc",".jslintrc","devcontainer.json","jsconfig.json","language-configuration.json","tsconfig.json","tslint.json"],languageId:423},v6={name:"JSON5",type:"data",extensions:[".json5"],tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",languageId:175},w6={languages:[Te(MD,e=>({since:"0.0.0",parsers:["babel","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"],extensions:[...e.extensions,".wxs"]})),Te(MD,()=>({name:"Flow",since:"0.0.0",parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"],aliases:[],filenames:[],extensions:[".js.flow"]})),Te(b6,()=>({since:"0.0.0",parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"]})),Te(A6,()=>({since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]})),Te(x6,()=>({since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]})),Te(RD,()=>({name:"JSON.stringify",since:"1.13.0",parsers:["json-stringify"],vscodeLanguageIds:["json"],extensions:[],filenames:["package.json","package-lock.json","composer.json"]})),Te(RD,e=>({since:"1.5.0",parsers:["json"],vscodeLanguageIds:["json"],filenames:[...e.filenames,".prettierrc"],extensions:e.extensions.filter(t=>t!==".jsonl")})),Te(F6,e=>({since:"1.5.0",parsers:["json"],vscodeLanguageIds:["jsonc"],filenames:[...e.filenames,".eslintrc"]})),Te(v6,()=>({since:"1.13.0",parsers:["json5"],vscodeLanguageIds:["json5"]}))],options:C6,printers:{estree:g6,"estree-json":E6},parsers:{get babel(){return{}.parsers.babel},get"babel-flow"(){return{}.parsers["babel-flow"]},get"babel-ts"(){return{}.parsers["babel-ts"]},get json(){return{}.parsers.json},get json5(){return{}.parsers.json5},get"json-stringify"(){return{}.parsers["json-stringify"]},get __js_expression(){return{}.parsers.__js_expression},get __vue_expression(){return{}.parsers.__vue_expression},get __vue_event_binding(){return{}.parsers.__vue_event_binding},get flow(){return{}.parsers.flow},get typescript(){return{}.parsers.typescript},get __ng_action(){return{}.parsers.__ng_action},get __ng_binding(){return{}.parsers.__ng_binding},get __ng_interpolation(){return{}.parsers.__ng_interpolation},get __ng_directive(){return{}.parsers.__ng_directive},get espree(){return{}.parsers.espree},get meriyah(){return{}.parsers.meriyah}}},{isFrontMatterNode:jD}=ce,S6=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma"]);function _D(e,t,r){if(jD(e)&&e.lang==="yaml"&&delete t.value,e.type==="css-comment"&&r.type==="css-root"&&r.nodes.length!==0&&((r.nodes[0]===e||jD(r.nodes[0])&&r.nodes[1]===e)&&(delete t.text,/^\*\s*@(format|prettier)\s*$/.test(e.text))||r.type==="css-root"&&fs(r.nodes)===e))return null;if(e.type==="value-root"&&delete t.text,e.type!=="media-query"&&e.type!=="media-query-list"&&e.type!=="media-feature-expression"||delete t.value,e.type==="css-rule"&&delete t.params,e.type==="selector-combinator"&&(t.value=t.value.replace(/\s+/g," ")),e.type==="media-feature"&&(t.value=t.value.replace(/ /g,"")),(e.type==="value-word"&&(e.isColor&&e.isHex||["initial","inherit","unset","revert"].includes(t.value.replace().toLowerCase()))||e.type==="media-feature"||e.type==="selector-root-invalid"||e.type==="selector-pseudo")&&(t.value=t.value.toLowerCase()),e.type==="css-decl"&&(t.prop=t.prop.toLowerCase()),e.type!=="css-atrule"&&e.type!=="css-import"||(t.name=t.name.toLowerCase()),e.type==="value-number"&&(t.unit=t.unit.toLowerCase()),e.type!=="media-feature"&&e.type!=="media-keyword"&&e.type!=="media-type"&&e.type!=="media-unknown"&&e.type!=="media-url"&&e.type!=="media-value"&&e.type!=="selector-attribute"&&e.type!=="selector-string"&&e.type!=="selector-class"&&e.type!=="selector-combinator"&&e.type!=="value-string"||!t.value||(t.value=t.value.replace(/'/g,'"').replace(/\\([^\dA-Fa-f])/g,"$1")),e.type==="selector-attribute"&&(t.attribute=t.attribute.trim(),t.namespace&&typeof t.namespace=="string"&&(t.namespace=t.namespace.trim(),t.namespace.length===0&&(t.namespace=!0)),t.value&&(t.value=t.value.trim().replace(/^["']|["']$/g,""),delete t.quoted)),e.type!=="media-value"&&e.type!=="media-type"&&e.type!=="value-number"&&e.type!=="selector-root-invalid"&&e.type!=="selector-class"&&e.type!=="selector-combinator"&&e.type!=="selector-tag"||!t.value||(t.value=t.value.replace(/([\d+.Ee-]+)([A-Za-z]*)/g,(n,s,u)=>{let c=Number(s);return isNaN(c)?n:c+u.toLowerCase()})),e.type==="selector-tag"){let n=e.value.toLowerCase();["from","to"].includes(n)&&(t.value=n)}e.type==="css-atrule"&&e.name.toLowerCase()==="supports"&&delete t.value,e.type==="selector-unknown"&&delete t.value}_D.ignoredProperties=S6;var T6=_D,{builders:{hardline:UD,concat:B6,markAsRoot:P6}}=te,qD={"---":"yaml","+++":"toml"},Ks={parse:function(e){let t=Object.keys(qD).map(_u).join("|"),r=e.match(new RegExp("^(".concat(t,")([^\\n]*)\\n(?:([\\s\\S]*?)\\n)?\\1[^\\n\\S]*(\\n|$)")));if(r===null)return{frontMatter:null,content:e};let[n,s,u,c]=r,o=qD[s];return o!=="toml"&&u&&u.trim()&&(o=u.trim()),{frontMatter:{type:"front-matter",lang:o,value:c,raw:n.replace(/\n$/,"")},content:n.replace(/[^\n]/g," ")+e.slice(n.length)}},print:function(e,t){if(e.lang==="yaml"){let r=e.value.trim(),n=r?t(r,{parser:"yaml"},{stripTrailingHardline:!0}):"";return P6(B6(["---",UD,n,n?UD:"","---"]))}}},{builders:{hardline:N6,concat:k6}}=te,{print:I6}=Ks,L6=function(e,t,r){let n=e.getValue();if(n.type==="front-matter"){let s=I6(n,r);return s?k6([s,N6]):""}},{parse:$D}=Ks,O6={hasPragma:function(e){return tc.hasPragma($D(e).content)},insertPragma:function(e){let{frontMatter:t,content:r}=$D(e);return(t?t.raw+
:"")+tc.insertPragma(r)}},M6=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"]);function VD(e,t){let r=[].concat(t),n,s=-1;for(;n=e.getParentNode(++s);)if(r.includes(n.type))return s;return-1}function Fr(e,t){let r=VD(e,t);return r===-1?null:e.getParentNode(r)}function WD(e){return e.type==="value-operator"&&e.value==="*"}function zD(e){return e.type==="value-operator"&&e.value==="/"}function HD(e){return e.type==="value-operator"&&e.value==="+"}function GD(e){return e.type==="value-operator"&&e.value==="-"}function JD(e){return e.type==="value-operator"&&e.value==="%"}function XD(e){return e.type==="value-comma_group"&&e.groups&&e.groups[1]&&e.groups[1].type==="value-colon"}function _a(e){return e.type==="value-paren_group"&&e.groups&&e.groups[0]&&XD(e.groups[0])}var R6={getAncestorCounter:VD,getAncestorNode:Fr,getPropOfDeclNode:function(e){let t=Fr(e,"css-decl");return t&&t.prop&&t.prop.toLowerCase()},hasSCSSInterpolation:function(e){if(e&&e.length){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(e&&e.length){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=Fr(e,"value-func");return r&&r.value&&r.value.toLowerCase()===t},insideICSSRuleNode:function(e){let t=Fr(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=[].concat(t),n=Fr(e,"css-atrule");return n&&r.includes(n.name.toLowerCase())},insideURLFunctionInImportAtRuleNode:function(e){let t=e.getValue(),r=Fr(e,"css-atrule");return r&&r.name==="import"&&t.groups[0].value==="url"&&t.groups.length===2},isKeyframeAtRuleKeywords:function(e,t){let r=Fr(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!(!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:WD,isDivisionNode:zD,isAdditionNode:HD,isSubtractionNode:GD,isModuloNode:JD,isMathOperatorNode:function(e){return WD(e)||zD(e)||HD(e)||GD(e)||JD(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.toLowerCase()==="composes"},hasParensAroundNode:function(e){return e.value&&e.value.group&&e.value.group.group&&e.value.group.group.type==="value-paren_group"&&e.value.group.group.open!==null&&e.value.group.group.close!==null},hasEmptyRawBefore:function(e){return e.raws&&e.raws.before===""},isSCSSNestedPropertyNode:function(e){return!!e.selector&&e.selector.replace(/\/\*.*?\*\//,"").replace(/\/\/.*?\n/,"").trim().endsWith(":")},isDetachedRulesetCallNode:function(e){return e.raws&&e.raws.params&&/^\(\s*\)$/.test(e.raws.params)},isTemplatePlaceholderNode:function(e){return e.name.startsWith("prettier-placeholder")},isTemplatePropNode:function(e){return e.prop.startsWith("@prettier-placeholder")},isPostcssSimpleVarNode:function(e,t){return e.value==="$$"&&e.type==="value-func"&&t&&t.type==="value-word"&&!t.raws.before},isKeyValuePairNode:XD,isKeyValuePairInParenGroupNode:_a,isSCSSMapItemNode:function(e){let t=e.getValue();if(t.groups.length===0)return!1;let r=e.getParentNode(1);if(!(_a(t)||r&&_a(r)))return!1;let n=Fr(e,"css-decl");return!!(n&&n.prop&&n.prop.startsWith("$"))||!!_a(r)||r.type==="value-func"},isInlineValueCommentNode:function(e){return e.type==="value-comment"&&e.inline},isHashNode:function(e){return e.type==="value-word"&&e.value==="#"},isLeftCurlyBraceNode:function(e){return e.type==="value-word"&&e.value==="{"},isRightCurlyBraceNode:function(e){return e.type==="value-word"&&e.value==="}"},isWordNode:function(e){return["value-word","value-atword"].includes(e.type)},isColonNode:function(e){return e.type==="value-colon"},isMediaAndSupportsKeywords:function(e){return e.value&&["not","and","or"].includes(e.value.toLowerCase())},isColorAdjusterFuncNode:function(e){return e.type==="value-func"&&M6.has(e.value.toLowerCase())},lastLineHasInlineComment:function(e){return/\/\//.test(e.split(/[\n\r]/).pop())},stringifyNode:function e(t){if(t.groups)return(t.open&&t.open.value?t.open.value:"")+t.groups.reduce((s,u,c)=>s+e(u)+(t.groups[0].type==="comma_group"&&c!==t.groups.length-1?",":""),"")+(t.close&&t.close.value?t.close.value:"");let r=t.raws&&t.raws.before?t.raws.before:"",n=t.raws&&t.raws.quote?t.raws.quote:"";return r+n+(t.type==="atword"?"@":"")+(t.value?t.value:"")+n+(t.unit?t.unit:"")+(t.group?e(t.group):"")+(t.raws&&t.raws.after?t.raws.after:"")},isAtWordPlaceholderNode:function(e){return e&&e.type==="value-atword"&&e.value.startsWith("prettier-placeholder-")}},KD=function(e,t){let r=0;for(let n=0;n<e.line-1;++n)r=t.indexOf(
,r)+1;return r+e.column},{getLast:j6,skipEverythingButNewLine:_6}=ce;function YD(e,t){return typeof e.sourceIndex=="number"?e.sourceIndex:e.source?KD(e.source.start,t)-1:null}function QD(e,t){if(e.type==="css-comment"&&e.inline)return _6(t,e.source.startOffset);let r=e.nodes&&j6(e.nodes);return r&&e.source&&!e.source.end&&(e=r),e.source&&e.source.end?KD(e.source.end,t):null}function ZD(e,t,r){e.source&&(e.source.startOffset=YD(e,r)+t,e.source.endOffset=QD(e,r)+t);for(let n in e){let s=e[n];n!=="source"&&s&&typeof s=="object"&&ZD(s,t,r)}}function U6(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 q6={locStart:function(e){return e.source.startOffset},locEnd:function(e){return e.source.endOffset},calculateLoc:function e(t,r){t.source&&(t.source.startOffset=YD(t,r),t.source.endOffset=QD(t,r));for(let n in t){let s=t[n];n!=="source"&&s&&typeof s=="object"&&(s.type==="value-root"||s.type==="value-unknown"?ZD(s,U6(t),s.text||s.value):e(s,r))}},replaceQuotesInInlineComments:function(e){let t,r="initial",n="initial",s=!1,u=[];for(let c=0;c<e.length;c++){let o=e[c];switch(r){case"initial":if(o==="'"){r="single-quotes";continue}if(o==='"'){r="double-quotes";continue}if((o==="u"||o==="U")&&e.slice(c,c+4).toLowerCase()==="url("){r="url",c+=3;continue}if(o==="*"&&e[c-1]==="/"){r="comment-block";continue}if(o==="/"&&e[c-1]==="/"){r="comment-inline",t=c-1;continue}continue;case"single-quotes":if(o==="'"&&e[c-1]!=="\\"&&(r=n,n="initial"),o===
||o==="\r")return e;continue;case"double-quotes":if(o==='"'&&e[c-1]!=="\\"&&(r=n,n="initial"),o===
||o==="\r")return e;continue;case"url":if(o===")"&&(r="initial"),o===
||o==="\r")return e;if(o==="'"){r="single-quotes",n="url";continue}if(o==='"'){r="double-quotes",n="url";continue}continue;case"comment-block":o==="/"&&e[c-1]==="*"&&(r="initial");continue;case"comment-inline":o!=='"'&&o!=="'"&&o!=="*"||(s=!0),o!==
&&o!=="\r"||(s&&u.push([t,c]),r="initial",s=!1);continue}}for(let[c,o]of u)e=e.slice(0,c)+e.slice(c,o).replace(/["'*]/g," ")+e.slice(o);return e}},{printNumber:$6,printString:e1,hasNewline:V6,isFrontMatterNode:t1,isNextLineEmpty:W6}=ce,{builders:{concat:X,join:Jn,line:it,hardline:rt,softline:vr,group:Tt,fill:Hc,indent:Ct,dedent:Gc,ifBreak:r1,breakParent:z6},utils:{removeLines:H6}}=te,{insertPragma:G6}=O6,{getAncestorNode:Jc,getPropOfDeclNode:J6,maybeToLowerCase:Yr,insideValueFunctionNode:Ua,insideICSSRuleNode:X6,insideAtRuleNode:Xc,insideURLFunctionInImportAtRuleNode:K6,isKeyframeAtRuleKeywords:Y6,isWideKeywords:Q6,isSCSS:Z6,isLastNode:Kc,isLessParser:n1,isSCSSControlDirectiveNode:Yc,isDetachedRulesetDeclarationNode:eS,isRelationalOperatorNode:tS,isEqualityOperatorNode:rS,isMultiplicationNode:s1,isDivisionNode:i1,isAdditionNode:Qr,isSubtractionNode:Ys,isMathOperatorNode:Qc,isEachKeywordNode:nS,isForKeywordNode:sS,isURLFunctionNode:iS,isIfElseKeywordNode:aS,hasComposesNode:uS,hasParensAroundNode:oS,hasEmptyRawBefore:Xn,isKeyValuePairNode:cS,isDetachedRulesetCallNode:a1,isTemplatePlaceholderNode:u1,isTemplatePropNode:lS,isPostcssSimpleVarNode:pS,isSCSSMapItemNode:hS,isInlineValueCommentNode:dS,isHashNode:Zc,isLeftCurlyBraceNode:o1,isRightCurlyBraceNode:el,isWordNode:qa,isColonNode:c1,isMediaAndSupportsKeywords:fS,isColorAdjusterFuncNode:mS,lastLineHasInlineComment:Qs,isAtWordPlaceholderNode:tl}=R6,{locStart:Zr,locEnd:wr}=q6;function DS(e){return e.trailingComma==="es5"||e.trailingComma==="all"}function Zs(e,t,r){let n=e.getValue(),s=[];return e.each((u,c)=>{let o=n.nodes[c-1];if(o&&o.type==="css-comment"&&o.text.trim()==="prettier-ignore"){let l=u.getValue();s.push(t.originalText.slice(Zr(l),wr(l)))}else s.push(u.call(r));c!==n.nodes.length-1&&(n.nodes[c+1].type==="css-comment"&&!V6(t.originalText,Zr(n.nodes[c+1]),{backwards:!0})&&!t1(n.nodes[c])||n.nodes[c+1].type==="css-atrule"&&n.nodes[c+1].name==="else"&&n.nodes[c].type!=="css-comment"?s.push(" "):(s.push(t.__isHTMLStyleAttribute?it:rt),W6(t.originalText,u.getValue(),wr)&&!t1(n.nodes[c])&&s.push(rt)))},"nodes"),X(s)}var l1=/(["'])(?:(?!\1)[^\\]|\\[\S\s])*\1/g,gS=new RegExp(l1.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 $t(e,t){return e.replace(l1,r=>e1(r,t))}function yS(e,t){let r=t.singleQuote?"'":'"';return e.includes('"')||e.includes("'")?e:r+e+r}function Kn(e){return e.replace(gS,(t,r,n,s,u)=>!n&&s?p1(s)+Yr(u||""):t)}function p1(e){return $6(e).replace(/\.0(?=$|e)/,"")}var ES={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 X([n.raw,rt]);case"css-root":{let s=Zs(e,t,r),u=n.raws.after.trim();return X([s,u?" ".concat(u):"",s.parts.length?rt:""])}case"css-comment":{let s=n.inline||n.raws.inline,u=t.originalText.slice(Zr(n),wr(n));return s?u.trimEnd():u}case"css-rule":return X([e.call(r,"selector"),n.important?" !important":"",n.nodes?X([n.selector&&n.selector.type==="selector-unknown"&&Qs(n.selector.value)?it:" ","{",n.nodes.length>0?Ct(X([rt,Zs(e,t,r)])):"",rt,"}",eS(n)?";":""]):";"]);case"css-decl":{let s=e.getParentNode(),{between:u}=n.raws,c=u.trim(),o=c===":",l=uS(n)?H6(e.call(r,"value")):e.call(r,"value");return!o&&Qs(c)&&(l=Ct(X([rt,Gc(l)]))),X([n.raws.before.replace(/[\s;]/g,""),X6(e)?n.prop:Yr(n.prop),c.startsWith("//")?" ":"",c,n.extend?"":" ",n1(t)&&n.extend&&n.selector?X(["extend(",e.call(r,"selector"),")"]):"",l,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?X([" {",Ct(X([vr,Zs(e,t,r)])),vr,"}"]):lS(n)&&!s.raws.semicolon&&t.originalText[wr(n)-1]!==";"?"":t.__isHTMLStyleAttribute&&Kc(e,n)?r1(";",""):";"])}case"css-atrule":{let s=e.getParentNode(),u=u1(n)&&!s.raws.semicolon&&t.originalText[wr(n)-1]!==";";if(n1(t)){if(n.mixin)return X([e.call(r,"selector"),n.important?" !important":"",u?"":";"]);if(n.function)return X([n.name,X([e.call(r,"params")]),u?"":";"]);if(n.variable)return X(["@",n.name,": ",n.value?X([e.call(r,"value")]):"",n.raws.between.trim()?n.raws.between.trim()+" ":"",n.nodes?X(["{",Ct(X([n.nodes.length>0?vr:"",Zs(e,t,r)])),vr,"}"]):"",u?"":";"])}return X(["@",a1(n)||n.name.endsWith(":")?n.name:Yr(n.name),n.params?X([a1(n)?"":u1(n)?n.raws.afterName===""?"":n.name.endsWith(":")?" ":/^\s*\n\s*\n/.test(n.raws.afterName)?X([rt,rt]):/^\s*\n/.test(n.raws.afterName)?rt:" ":" ",e.call(r,"params")]):"",n.selector?Ct(X([" ",e.call(r,"selector")])):"",n.value?Tt(X([" ",e.call(r,"value"),Yc(n)?oS(n)?" ":it:""])):n.name==="else"?" ":"",n.nodes?X([Yc(n)?"":n.selector&&!n.selector.nodes&&typeof n.selector.value=="string"&&Qs(n.selector.value)||!n.selector&&typeof n.params=="string"&&Qs(n.params)?it:" ","{",Ct(X([n.nodes.length>0?vr:"",Zs(e,t,r)])),vr,"}"]):u?"":";"])}case"media-query-list":{let s=[];return e.each(u=>{let c=u.getValue();c.type==="media-query"&&c.value===""||s.push(u.call(r))},"nodes"),Tt(Ct(Jn(it,s)))}case"media-query":return X([Jn(" ",e.map(r,"nodes")),Kc(e,n)?"":","]);case"media-type":return Kn($t(n.value,t));case"media-feature-expression":return n.nodes?X(["(",X(e.map(r,"nodes")),")"]):n.value;case"media-feature":return Yr($t(n.value.replace(/ +/g," "),t));case"media-colon":return X([n.value," "]);case"media-value":return Kn($t(n.value,t));case"media-keyword":return $t(n.value,t);case"media-url":return $t(n.value.replace(/^url\(\s+/gi,"url(").replace(/\s+\)$/gi,")"),t);case"media-unknown":return n.value;case"selector-root":return Tt(X([Xc(e,"custom-selector")?X([Jc(e,"css-atrule").customSelector,it]):"",Jn(X([",",Xc(e,["extend","custom-selector","nest"])?it:rt]),e.map(r,"nodes"))]));case"selector-selector":return Tt(Ct(X(e.map(r,"nodes"))));case"selector-comment":return n.value;case"selector-string":return $t(n.value,t);case"selector-tag":{let s=e.getParentNode(),u=s&&s.nodes.indexOf(n),c=u&&s.nodes[u-1];return X([n.namespace?X([n.namespace===!0?"":n.namespace.trim(),"|"]):"",c.type==="selector-nesting"?n.value:Kn(Y6(e,n.value)?n.value.toLowerCase():n.value)])}case"selector-id":return X(["#",n.value]);case"selector-class":return X([".",Kn($t(n.value,t))]);case"selector-attribute":return X(["[",n.namespace?X([n.namespace===!0?"":n.namespace.trim(),"|"]):"",n.attribute.trim(),n.operator?n.operator:"",n.value?yS($t(n.value.trim(),t),t):"",n.insensitive?" i":"","]"]);case"selector-combinator":{if(n.value==="+"||n.value===">"||n.value==="~"||n.value===">>>"){let c=e.getParentNode(),o=c.type==="selector-selector"&&c.nodes[0]===n?"":it;return X([o,n.value,Kc(e,n)?"":" "])}let s=n.value.trim().startsWith("(")?it:"",u=Kn($t(n.value.trim(),t))||it;return X([s,u])}case"selector-universal":return X([n.namespace?X([n.namespace===!0?"":n.namespace.trim(),"|"]):"",n.value]);case"selector-pseudo":return X([Yr(n.value),n.nodes&&n.nodes.length>0?X(["(",Jn(", ",e.map(r,"nodes")),")"]):""]);case"selector-nesting":return n.value;case"selector-unknown":{let s=Jc(e,"css-rule");if(s&&s.isSCSSNesterProperty)return Kn($t(Yr(n.value),t));let u=e.getParentNode();if(u.raws&&u.raws.selector){let o=Zr(u),l=o+u.raws.selector.length;return t.originalText.slice(o,l).trim()}let c=e.getParentNode(1);if(u.type==="value-paren_group"&&c&&c.type==="value-func"&&c.value==="selector"){let o=Zr(u.open)+1,l=wr(u.close)-1,h=t.originalText.slice(o,l).trim();return Qs(h)?X([z6,h]):h}return n.value}case"value-value":case"value-root":return e.call(r,"group");case"value-comment":return t.originalText.slice(Zr(n),wr(n));case"value-comma_group":{let s=e.getParentNode(),u=e.getParentNode(1),c=J6(e),o=c&&s.type==="value-value"&&(c==="grid"||c.startsWith("grid-template")),l=Jc(e,"css-atrule"),h=l&&Yc(l),a=e.map(r,"groups"),f=[],m=Ua(e,"url"),E=!1,g=!1;for(let b=0;b<n.groups.length;++b){f.push(a[b]);let A=n.groups[b-1],C=n.groups[b],F=n.groups[b+1],w=n.groups[b+2];if(m){(F&&Qr(F)||Qr(C))&&f.push(" ");continue}if(!F||C.type==="value-word"&&C.value.endsWith("-")&&tl(F))continue;let B=C.type==="value-string"&&C.value.startsWith("#{"),T=E&&F.type==="value-string"&&F.value.endsWith("}");if(B||T){E=!E;continue}if(E||c1(C)||c1(F)||C.type==="value-atword"&&C.value===""||C.value==="~"||C.value&&C.value.includes("\\")&&F&&F.type!=="value-comment"||A&&A.value&&A.value.indexOf("\\")===A.value.length-1&&C.type==="value-operator"&&C.value==="/"||C.value==="\\"||pS(C,F)||Zc(C)||o1(C)||el(F)||o1(F)&&Xn(F)||el(C)&&Xn(F)||C.value==="--"&&Zc(F))continue;let P=Qc(C),v=Qc(F);if((P&&Zc(F)||v&&el(C))&&Xn(F)||Ua(e,"calc")&&(Qr(C)||Qr(F)||Ys(C)||Ys(F))&&Xn(F))continue;let _=(Qr(C)||Ys(C))&&b===0&&(F.type==="value-number"||F.isHex)&&u&&mS(u)&&!Xn(F),O=w&&w.type==="value-func"||w&&qa(w)||C.type==="value-func"||qa(C),M=F.type==="value-func"||qa(F)||A&&A.type==="value-func"||A&&qa(A);if(s1(F)||s1(C)||Ua(e,"calc")||_||!(i1(F)&&!O||i1(C)&&!M||Qr(F)&&!O||Qr(C)&&!M||Ys(F)||Ys(C))||!(Xn(F)||P&&(!A||A&&Qc(A))))if(dS(C)){if(s.type==="value-paren_group"){f.push(Gc(rt));continue}f.push(rt)}else h&&(rS(F)||tS(F)||aS(F)||nS(C)||sS(C))||l&&l.name.toLowerCase()==="namespace"?f.push(" "):o?C.source&&F.source&&C.source.start.line!==F.source.start.line?(f.push(rt),g=!0):f.push(" "):v?f.push(" "):F&&F.value==="..."||tl(C)&&tl(F)&&wr(C)===Zr(F)||f.push(it)}return g&&f.unshift(rt),h?Tt(Ct(X(f))):K6(e)?Tt(Hc(f)):Tt(Ct(Hc(f)))}case"value-paren_group":{let s=e.getParentNode();if(s&&iS(s)&&(n.groups.length===1||n.groups.length>0&&n.groups[0].type==="value-comma_group"&&n.groups[0].groups.length>0&&n.groups[0].groups[0].type==="value-word"&&n.groups[0].groups[0].value.startsWith("data:")))return X([n.open?e.call(r,"open"):"",Jn(",",e.map(r,"groups")),n.close?e.call(r,"close"):""]);if(!n.open){let l=e.map(r,"groups"),h=[];for(let a=0;a<l.length;a++)a!==0&&h.push(X([",",it])),h.push(l[a]);return Tt(Ct(Hc(h)))}let u=hS(e),c=n.groups[n.groups.length-1],o=c&&c.type==="value-comment";return Tt(X([n.open?e.call(r,"open"):"",Ct(X([vr,Jn(X([",",it]),e.map(l=>{let h=l.getValue(),a=r(l);return cS(h)&&h.type==="value-comma_group"&&h.groups&&h.groups[2]&&h.groups[2].type==="value-paren_group"?(a.contents.contents.parts[1]=Tt(a.contents.contents.parts[1]),Tt(Gc(a))):a},"groups"))])),r1(!o&&Z6(t.parser,t.originalText)&&u&&DS(t)?",":""),vr,n.close?e.call(r,"close"):""]),{shouldBreak:u})}case"value-func":return X([n.value,Xc(e,"supports")&&fS(n)?" ":"",e.call(r,"group")]);case"value-paren":return n.value;case"value-number":return X([p1(n.value),Yr(n.unit)]);case"value-operator":return n.value;case"value-word":return n.isColor&&n.isHex||Q6(n.value)?n.value.toLowerCase():n.value;case"value-colon":{let s=e.getParentNode(),u=s&&s.groups.indexOf(n),c=u&&s.groups[u-1];return X([n.value,c&&c.value[c.value.length-1]==="\\"||Ua(e,"url")?"":it])}case"value-comma":return X([n.value," "]);case"value-string":return e1(n.raws.quote+n.value+n.raws.quote,t);case"value-atword":return X(["@",n.value]);case"value-unicode-range":case"value-unknown":return n.value;default:throw new Error("Unknown postcss type ".concat(JSON.stringify(n.type)))}},embed:L6,insertPragma:G6,massageAstNode:T6},CS={singleQuote:sr.singleQuote},bS={name:"PostCSS",type:"markup",tmScope:"source.postcss",group:"CSS",extensions:[".pcss",".postcss"],aceMode:"text",languageId:262764437},AS={name:"Less",type:"markup",color:"#1d365d",extensions:[".less"],tmScope:"source.css.less",aceMode:"less",codemirrorMode:"css",codemirrorMimeType:"text/css",languageId:198},xS={name:"SCSS",type:"markup",color:"#c6538c",tmScope:"source.css.scss",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",extensions:[".scss"],languageId:329},FS={languages:[Te({name:"CSS",type:"markup",tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",color:"#563d7c",extensions:[".css"],languageId:50},e=>({since:"1.4.0",parsers:["css"],vscodeLanguageIds:["css"],extensions:[...e.extensions,".wxss"]})),Te(bS,()=>({since:"1.4.0",parsers:["css"],vscodeLanguageIds:["postcss"]})),Te(AS,()=>({since:"1.4.0",parsers:["less"],vscodeLanguageIds:["less"]})),Te(xS,()=>({since:"1.4.0",parsers:["scss"],vscodeLanguageIds:["scss"]}))],options:CS,printers:{postcss:ES},parsers:{get css(){return{}.parsers.css},get less(){return{}.parsers.less},get scss(){return{}.parsers.scss}}},vS={locStart:function(e){return e.loc.start.offset},locEnd:function(e){return e.loc.end.offset}};function h1(e,t){if(e.type==="TextNode"){let r=e.chars.trim();if(!r)return null;t.chars=r}}h1.ignoredProperties=new Set(["loc","selfClosing"]);var wS=h1,SS=new Set(["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"]);function d1(e){return en(e,["TextNode"])&&!/\S/.test(e.chars)}function en(e,t){return e&&t.some(r=>e.type===r)}function f1(e,t){let r=e.getValue(),n=e.getParentNode(0)||{},s=n.children||n.body||n.parts||[],u=s.indexOf(r);return u!==-1&&s[u+t]}function rl(e,t=1){return f1(e,-t)}function m1(e){return f1(e,1)}function D1(e){return en(e,["MustacheCommentStatement"])&&typeof e.value=="string"&&e.value.trim()==="prettier-ignore"}var TS={getNextNode:m1,getPreviousNode:rl,hasPrettierIgnore:function(e){let t=e.getValue(),r=rl(e,2);return D1(t)||D1(r)},isNextNodeOfSomeType:function(e,t){return en(m1(e),t)},isNodeOfSomeType:en,isParentOfSomeType:function(e,t){return en(e.getParentNode(0),t)},isPreviousNodeOfSomeType:function(e,t){return en(rl(e),t)},isVoid:function(e){return function(t){return en(t,["ElementNode"])&&typeof t.tag=="string"&&(function(r){return r.toUpperCase()===r}(t.tag[0])||t.tag.includes("."))}(e)&&e.children.every(t=>d1(t))||SS.has(e.tag)},isWhitespaceNode:d1},{builders:{concat:ne,group:Bt,hardline:tn,ifBreak:g1,indent:rn,join:ei,line:Vt,softline:Wt}}=te,{locStart:y1,locEnd:E1}=vS,{getNextNode:BS,getPreviousNode:PS,hasPrettierIgnore:NS,isNextNodeOfSomeType:$a,isNodeOfSomeType:nl,isParentOfSomeType:Yn,isPreviousNodeOfSomeType:sl,isVoid:C1,isWhitespaceNode:b1}=TS;function A1(e,t){let r=e.getValue();return ne(["<",r.tag,kS(e,t),k1(r),LS(r)])}function kS(e,t){let r=e.getValue();return rn(ne([r.attributes.length?Vt:"",ei(Vt,e.map(t,"attributes")),r.modifiers.length?Vt:"",ei(Vt,e.map(t,"modifiers")),r.comments.length?Vt:"",ei(Vt,e.map(t,"comments"))]))}function IS(e,t,r){return ne(e.map((n,s)=>s===0?ne([Wt,r(n,t,r)]):r(n,t,r),"children"))}function LS(e){return C1(e)?g1(ne([Wt,"/>"]),ne([" />",Wt])):g1(ne([Wt,">"]),">")}function Va(e){let t=e.escaped===!1?"{{{":"{{",r=e.strip&&e.strip.open?"~":"";return ne([t,r])}function Wa(e){let t=e.escaped===!1?"}}}":"}}",r=e.strip&&e.strip.close?"~":"";return ne([r,t])}function OS(e){let t=Va(e),r=e.openStrip.open?"~":"";return ne([t,r,"#"])}function MS(e){let t=Wa(e),r=e.openStrip.close?"~":"";return ne([r,t])}function RS(e){let t=Va(e),r=e.closeStrip.open?"~":"";return ne([t,r,"/"])}function jS(e){let t=Wa(e),r=e.closeStrip.close?"~":"";return ne([r,t])}function x1(e){let t=Va(e),r=e.inverseStrip.open?"~":"";return ne([t,r])}function F1(e){let t=Wa(e),r=e.inverseStrip.close?"~":"";return ne([r,t])}function _S(e,t){let r=e.getValue();return Bt(ne([OS(r),Ha(e,t),k1(r.program),Wt,MS(r)]))}function US(e){return ne([tn,x1(e),"else",F1(e)])}function qS(e,t){let r=e.getParentNode(1);return ne([x1(r),"else ",Ha(e,t),F1(r)])}function $S(e,t){let r=e.getValue();return ne([v1(r)?Wt:tn,RS(r),e.call(t,"path"),jS(r)])}function v1(e){return nl(e,["BlockStatement"])&&e.program.body.every(t=>b1(t))}function w1(e){return nl(e,["BlockStatement"])&&e.inverse}function S1(e,t){if(v1(e.getValue()))return"";let r=e.call(t,"program");return rn(ne([tn,r]))}function T1(e,t){let r=e.getValue(),n=e.call(t,"inverse"),s=ne([tn,n]);return function(u){return w1(u)&&u.inverse.body.length===1&&nl(u.inverse.body[0],["BlockStatement"])&&u.inverse.body[0].path.parts[0]==="if"}(r)?s:w1(r)?ne([US(r),rn(s)]):""}function il(e){return(e=typeof e=="string"?e:"").split(
).length-1}function za(e=0,t=0){return new Array(Math.min(e,t)).fill(tn)}function B1(e,t){let r={quote:'"',regex:/"/g},n={quote:"'",regex:/'/g},s=t.singleQuote?n:r,u=s===n?r:n,c=!1;(e.includes(s.quote)||e.includes(u.quote))&&(c=(e.match(s.regex)||[]).length>(e.match(u.regex)||[]).length);let o=c?u:s,l=e.replace(o.regex,"\\".concat(o.quote));return ne([o.quote,l,o.quote])}function VS(e,t){let r=P1(e,t),n=N1(e,t);return n?rn(ne([r,Vt,Bt(n)])):r}function Ha(e,t){let r=P1(e,t),n=N1(e,t);return n?rn(Bt(ne([r,Vt,n]))):r}function P1(e,t){return e.call(t,"path")}function N1(e,t){let r=e.getValue(),n=[];if(r.params.length){let s=e.map(t,"params");n.push(...s)}if(r.hash&&r.hash.pairs.length>0){let s=e.call(t,"hash");n.push(s)}return n.length?ei(Vt,n):""}function k1(e){return e&&e.blockParams.length?ne([" as |",e.blockParams.join(" "),"|"]):""}var WS={print:function(e,t,r){let n=e.getValue();if(!n)return"";if(NS(e))return t.originalText.slice(y1(n),E1(n));switch(n.type){case"Block":case"Program":case"Template":return Bt(ne(e.map(r,"body")));case"ElementNode":{let s=$a(e,["ElementNode"])?tn:"";if(C1(n))return ne([Bt(A1(e,r)),s]);let u=n.children.every(c=>b1(c));return ne([Bt(A1(e,r)),Bt(ne([u?"":rn(IS(e,t,r)),n.children.length?tn:"",ne(["</",n.tag,">"])])),s])}case"BlockStatement":{let s=e.getParentNode(1),u=s&&s.inverse&&s.inverse.body.length===1&&s.inverse.body[0]===n&&s.inverse.body[0].path.parts[0]==="if";return ne(u?[qS(e,r),S1(e,r),T1(e,r)]:[_S(e,r),Bt(ne([S1(e,r),T1(e,r),$S(e,r)]))])}case"ElementModifierStatement":return Bt(ne(["{{",Ha(e,r),Wt,"}}"]));case"MustacheStatement":{let s=Yn(e,["AttrNode","ConcatStatement"]),u=Yn(e,["ElementNode"])&&n.hash.pairs.length===0&&function(o){return o.params.length===0}(n),c=s||u;return Bt(ne([Va(n),c?rn(Wt):"",Ha(e,r),Wt,Wa(n)]))}case"SubExpression":return Bt(ne(["(",VS(e,r),Wt,")"]));case"AttrNode":{let s=n.value.type==="TextNode";if(s&&n.value.chars===""&&y1(n.value)===E1(n.value))return ne([n.name]);let u=e.call(r,"value"),c=s?B1(u.parts.join(),t):u;return ne([n.name,"=",c])}case"ConcatStatement":{let s=t.singleQuote?"'":'"';return ne([s,...e.map(u=>r(u),"parts"),s])}case"Hash":return ne([ei(Vt,e.map(r,"pairs"))]);case"HashPair":return ne([n.key,"=",e.call(r,"value")]);case"TextNode":{let s=2,u=!PS(e),c=!BS(e),o=!/\S/.test(n.chars),l=il(n.chars),h=function(g){return il(((g=typeof g=="string"?g:"").match(/^([^\S\n\r]*[\n\r])+/g)||[])[0]||"")}(n.chars),a=function(g){return il(((g=typeof g=="string"?g:"").match(/([\n\r][^\S\n\r]*)+$/g)||[])[0]||"")}(n.chars);if((u||c)&&o&&Yn(e,["Block","ElementNode","Template"]))return"";if(o&&l?(h=Math.min(l,s),a=0):($a(e,["BlockStatement","ElementNode"])&&(a=Math.max(a,1)),sl(e,["BlockStatement","ElementNode"])&&(h=Math.max(h,1))),e.stack.includes("attributes")){if(!function(A,C){return Yn(A,["AttrNode"])&&A.getParentNode().name.toLowerCase()===C||Yn(A,["ConcatStatement"])&&A.getParentNode(1).name.toLowerCase()===C}(e,"class"))return ne([n.chars]);let g="",b="";return Yn(e,["ConcatStatement"])&&(sl(e,["MustacheStatement"])&&(g=" "),$a(e,["MustacheStatement"])&&(b=" ")),ne([...za(h,s),n.chars.replace(/^\s+/g,g).replace(/\s+$/,b),...za(a,s)])}let f="",m="";a===0&&$a(e,["MustacheStatement"])&&(m=" "),h===0&&sl(e,["MustacheStatement"])&&(f=" "),u&&(h=0,f=""),c&&(a=0,m="");let E=n.chars;return E.startsWith("{{")&&E.includes("}}")&&(E="\\"+E),ne([...za(h,s),E.replace(/^\s+/g,f).replace(/\s+$/,m),...za(a,s)])}case"MustacheCommentStatement":{let s=n.value.includes("}}")?"--":"";return ne(["{{!",s,n.value,s,"}}"])}case"PathExpression":return n.original;case"BooleanLiteral":return String(n.value);case"CommentStatement":return ne(["<!--",n.value,"-->"]);case"StringLiteral":return B1(n.value,t);case"NumberLiteral":return String(n.value);case"UndefinedLiteral":return"undefined";case"NullLiteral":return"null";default:throw new Error("unknown glimmer type: "+JSON.stringify(n.type))}},massageAstNode:wS},zS={languages:[Te({name:"Handlebars",type:"markup",color:"#f7931e",aliases:["hbs","htmlbars"],extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aceMode:"handlebars",languageId:155},()=>({since:null,parsers:["glimmer"],vscodeLanguageIds:["handlebars"]}))],printers:{glimmer:WS},parsers:{get glimmer(){return{}.parsers.glimmer}}},HS={hasPragma:function(e){return/^\s*#[^\S\n]*@(format|prettier)\s*(\n|$)/.test(e)},insertPragma:function(e){return# @format
+e}},GS={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}},{builders:{concat:U,join:_e,hardline:le,line:Qn,softline:Fe,group:pt,indent:Ke,ifBreak:Pt}}=te,{isNextLineEmpty:I1}=ce,{insertPragma:JS}=HS,{locStart:XS,locEnd:L1}=GS;function Ye(e,t,r){if(r.directives.length===0)return"";let n=_e(Qn,e.map(t,"directives"));return r.kind==="FragmentDefinition"||r.kind==="OperationDefinition"?pt(U([Qn,n])):U([" ",pt(Ke(U([Fe,n])))])}function zt(e,t,r){let n=e.getValue().length;return e.map((s,u)=>{let c=r(s);return I1(t.originalText,s.getValue(),L1)&&u<n-1?U([c,le]):c})}function O1(e,t,r){let n=e.getNode(),s=[],{interfaces:u}=n,c=e.map(o=>r(o),"interfaces");for(let o=0;o<u.length;o++){let l=u[o];s.push(c[o]);let h=u[o+1];if(h){let a=t.originalText.slice(l.loc.end,h.loc.start),f=a.includes("#"),m=a.replace(/#.*/g,"").trim();s.push(m===","?",":" &"),s.push(f?Qn:" ")}}return s}function M1(){}M1.ignoredProperties=new Set(["loc","comments"]);var KS={print:function(e,t,r){let n=e.getValue();if(!n)return"";if(typeof n=="string")return n;switch(n.kind){case"Document":{let s=[];return e.each((u,c)=>{s.push(U([u.call(r)])),c!==n.definitions.length-1&&(s.push(le),I1(t.originalText,u.getValue(),L1)&&s.push(le))},"definitions"),U([U(s),le])}case"OperationDefinition":{let s=t.originalText[XS(n)]!=="{",u=!!n.name;return U([s?n.operation:"",s&&u?U([" ",e.call(r,"name")]):"",n.variableDefinitions&&n.variableDefinitions.length?pt(U(["(",Ke(U([Fe,_e(U([Pt("",", "),Fe]),e.map(r,"variableDefinitions"))])),Fe,")"])):"",Ye(e,r,n),n.selectionSet&&(s||u)?" ":"",e.call(r,"selectionSet")])}case"FragmentDefinition":return U(["fragment ",e.call(r,"name"),n.variableDefinitions&&n.variableDefinitions.length?pt(U(["(",Ke(U([Fe,_e(U([Pt("",", "),Fe]),e.map(r,"variableDefinitions"))])),Fe,")"])):""," on ",e.call(r,"typeCondition"),Ye(e,r,n)," ",e.call(r,"selectionSet")]);case"SelectionSet":return U(["{",Ke(U([le,_e(le,e.call(s=>zt(s,t,r),"selections"))])),le,"}"]);case"Field":return pt(U([n.alias?U([e.call(r,"alias"),": "]):"",e.call(r,"name"),n.arguments.length>0?pt(U(["(",Ke(U([Fe,_e(U([Pt("",", "),Fe]),e.call(s=>zt(s,t,r),"arguments"))])),Fe,")"])):"",Ye(e,r,n),n.selectionSet?" ":"",e.call(r,"selectionSet")]));case"Name":return n.value;case"StringValue":return n.block?U(['"""',le,_e(le,n.value.replace(/"""/g,"\\$&").split(
)),le,'"""']):U(['"',n.value.replace(/["\\]/g,"\\$&").replace(/\n/g,"\\n"),'"']);case"IntValue":case"FloatValue":case"EnumValue":return n.value;case"BooleanValue":return n.value?"true":"false";case"NullValue":return"null";case"Variable":return U(["$",e.call(r,"name")]);case"ListValue":return pt(U(["[",Ke(U([Fe,_e(U([Pt("",", "),Fe]),e.map(r,"values"))])),Fe,"]"]));case"ObjectValue":return pt(U(["{",t.bracketSpacing&&n.fields.length>0?" ":"",Ke(U([Fe,_e(U([Pt("",", "),Fe]),e.map(r,"fields"))])),Fe,Pt("",t.bracketSpacing&&n.fields.length>0?" ":""),"}"]));case"ObjectField":case"Argument":return U([e.call(r,"name"),": ",e.call(r,"value")]);case"Directive":return U(["@",e.call(r,"name"),n.arguments.length>0?pt(U(["(",Ke(U([Fe,_e(U([Pt("",", "),Fe]),e.call(s=>zt(s,t,r),"arguments"))])),Fe,")"])):""]);case"NamedType":return e.call(r,"name");case"VariableDefinition":return U([e.call(r,"variable"),": ",e.call(r,"type"),n.defaultValue?U([" = ",e.call(r,"defaultValue")]):"",Ye(e,r,n)]);case"ObjectTypeExtension":case"ObjectTypeDefinition":return U([e.call(r,"description"),n.description?le:"",n.kind==="ObjectTypeExtension"?"extend ":"","type ",e.call(r,"name"),n.interfaces.length>0?U([" implements ",U(O1(e,t,r))]):"",Ye(e,r,n),n.fields.length>0?U([" {",Ke(U([le,_e(le,e.call(s=>zt(s,t,r),"fields"))])),le,"}"]):""]);case"FieldDefinition":return U([e.call(r,"description"),n.description?le:"",e.call(r,"name"),n.arguments.length>0?pt(U(["(",Ke(U([Fe,_e(U([Pt("",", "),Fe]),e.call(s=>zt(s,t,r),"arguments"))])),Fe,")"])):"",": ",e.call(r,"type"),Ye(e,r,n)]);case"DirectiveDefinition":return U([e.call(r,"description"),n.description?le:"","directive ","@",e.call(r,"name"),n.arguments.length>0?pt(U(["(",Ke(U([Fe,_e(U([Pt("",", "),Fe]),e.call(s=>zt(s,t,r),"arguments"))])),Fe,")"])):"",n.repeatable?" repeatable":"",U([" on ",_e(" | ",e.map(r,"locations"))])]);case"EnumTypeExtension":case"EnumTypeDefinition":return U([e.call(r,"description"),n.description?le:"",n.kind==="EnumTypeExtension"?"extend ":"","enum ",e.call(r,"name"),Ye(e,r,n),n.values.length>0?U([" {",Ke(U([le,_e(le,e.call(s=>zt(s,t,r),"values"))])),le,"}"]):""]);case"EnumValueDefinition":return U([e.call(r,"description"),n.description?le:"",e.call(r,"name"),Ye(e,r,n)]);case"InputValueDefinition":return U([e.call(r,"description"),n.description?n.description.block?le:Qn:"",e.call(r,"name"),": ",e.call(r,"type"),n.defaultValue?U([" = ",e.call(r,"defaultValue")]):"",Ye(e,r,n)]);case"InputObjectTypeExtension":case"InputObjectTypeDefinition":return U([e.call(r,"description"),n.description?le:"",n.kind==="InputObjectTypeExtension"?"extend ":"","input ",e.call(r,"name"),Ye(e,r,n),n.fields.length>0?U([" {",Ke(U([le,_e(le,e.call(s=>zt(s,t,r),"fields"))])),le,"}"]):""]);case"SchemaDefinition":return U(["schema",Ye(e,r,n)," {",n.operationTypes.length>0?Ke(U([le,_e(le,e.call(s=>zt(s,t,r),"operationTypes"))])):"",le,"}"]);case"OperationTypeDefinition":return U([e.call(r,"operation"),": ",e.call(r,"type")]);case"InterfaceTypeExtension":case"InterfaceTypeDefinition":return U([e.call(r,"description"),n.description?le:"",n.kind==="InterfaceTypeExtension"?"extend ":"","interface ",e.call(r,"name"),n.interfaces.length>0?U([" implements ",U(O1(e,t,r))]):"",Ye(e,r,n),n.fields.length>0?U([" {",Ke(U([le,_e(le,e.call(s=>zt(s,t,r),"fields"))])),le,"}"]):""]);case"FragmentSpread":return U(["...",e.call(r,"name"),Ye(e,r,n)]);case"InlineFragment":return U(["...",n.typeCondition?U([" on ",e.call(r,"typeCondition")]):"",Ye(e,r,n)," ",e.call(r,"selectionSet")]);case"UnionTypeExtension":case"UnionTypeDefinition":return pt(U([e.call(r,"description"),n.description?le:"",pt(U([n.kind==="UnionTypeExtension"?"extend ":"","union ",e.call(r,"name"),Ye(e,r,n),n.types.length>0?U([" =",Pt(""," "),Ke(U([Pt(U([Qn," "])),_e(U([Qn,"| "]),e.map(r,"types"))]))]):""]))]));case"ScalarTypeExtension":case"ScalarTypeDefinition":return U([e.call(r,"description"),n.description?le:"",n.kind==="ScalarTypeExtension"?"extend ":"","scalar ",e.call(r,"name"),Ye(e,r,n)]);case"NonNullType":return U([e.call(r,"type"),"!"]);case"ListType":return U(["[",e.call(r,"type"),"]"]);default:throw new Error("unknown graphql type: "+JSON.stringify(n.kind))}},massageAstNode:M1,hasPrettierIgnore:function(e){let t=e.getValue();return t&&Array.isArray(t.comments)&&t.comments.some(r=>r.value.trim()==="prettier-ignore")},insertPragma:JS,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"}},YS={bracketSpacing:sr.bracketSpacing},QS={languages:[Te({name:"GraphQL",type:"data",color:"#e10098",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",aceMode:"text",languageId:139},()=>({since:"1.5.0",parsers:["graphql"],vscodeLanguageIds:["graphql"]}))],options:YS,printers:{graphql:KS},parsers:{get graphql(){return{}.parsers.graphql}}},R1={locStart:function(e){return e.position.start.offset},locEnd:function(e){return e.position.end.offset}},{getLast:j1}=ce,{locStart:_1,locEnd:U1}=R1,{cjkPattern:al,kPattern:ZS,punctuationPattern:q1}={cjkPattern:"(?:[\\u02ea-\\u02eb\\u1100-\\u11ff\\u2e80-\\u2e99\\u2e9b-\\u2ef3\\u2f00-\\u2fd5\\u3000-\\u303f\\u3041-\\u3096\\u3099-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312f\\u3131-\\u318e\\u3190-\\u3191\\u3196-\\u31ba\\u31c0-\\u31e3\\u31f0-\\u321e\\u322a-\\u3247\\u3260-\\u327e\\u328a-\\u32b0\\u32c0-\\u32cb\\u32d0-\\u3370\\u337b-\\u337f\\u33e0-\\u33fe\\u3400-\\u4db5\\u4e00-\\u9fef\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufe10-\\ufe1f\\ufe30-\\ufe6f\\uff00-\\uffef]|[\\ud840-\\ud868\\ud86a-\\ud86c\\ud86f-\\ud872\\ud874-\\ud879][\\udc00-\\udfff]|\\ud82c[\\udc00-\\udd1e\\udd50-\\udd52\\udd64-\\udd67]|\\ud83c[\\ude00\\ude50-\\ude51]|\\ud869[\\udc00-\\uded6\\udf00-\\udfff]|\\ud86d[\\udc00-\\udf34\\udf40-\\udfff]|\\ud86e[\\udc00-\\udc1d\\udc20-\\udfff]|\\ud873[\\udc00-\\udea1\\udeb0-\\udfff]|\\ud87a[\\udc00-\\udfe0]|\\ud87e[\\udc00-\\ude1d])(?:[\\ufe00-\\ufe0f]|\\udb40[\\udd00-\\uddef])?",kPattern:"[\\u1100-\\u11ff\\u3001-\\u3003\\u3008-\\u3011\\u3013-\\u301f\\u302e-\\u3030\\u3037\\u30fb\\u3131-\\u318e\\u3200-\\u321e\\u3260-\\u327e\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\ufe45-\\ufe46\\uff61-\\uff65\\uffa0-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc]",punctuationPattern:"[\\u0021-\\u002f\\u003a-\\u0040\\u005b-\\u0060\\u007b-\\u007e\\u00a1\\u00a7\\u00ab\\u00b6-\\u00b7\\u00bb\\u00bf\\u037e\\u0387\\u055a-\\u055f\\u0589-\\u058a\\u05be\\u05c0\\u05c3\\u05c6\\u05f3-\\u05f4\\u0609-\\u060a\\u060c-\\u060d\\u061b\\u061e-\\u061f\\u066a-\\u066d\\u06d4\\u0700-\\u070d\\u07f7-\\u07f9\\u0830-\\u083e\\u085e\\u0964-\\u0965\\u0970\\u09fd\\u0a76\\u0af0\\u0c77\\u0c84\\u0df4\\u0e4f\\u0e5a-\\u0e5b\\u0f04-\\u0f12\\u0f14\\u0f3a-\\u0f3d\\u0f85\\u0fd0-\\u0fd4\\u0fd9-\\u0fda\\u104a-\\u104f\\u10fb\\u1360-\\u1368\\u1400\\u166e\\u169b-\\u169c\\u16eb-\\u16ed\\u1735-\\u1736\\u17d4-\\u17d6\\u17d8-\\u17da\\u1800-\\u180a\\u1944-\\u1945\\u1a1e-\\u1a1f\\u1aa0-\\u1aa6\\u1aa8-\\u1aad\\u1b5a-\\u1b60\\u1bfc-\\u1bff\\u1c3b-\\u1c3f\\u1c7e-\\u1c7f\\u1cc0-\\u1cc7\\u1cd3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205e\\u207d-\\u207e\\u208d-\\u208e\\u2308-\\u230b\\u2329-\\u232a\\u2768-\\u2775\\u27c5-\\u27c6\\u27e6-\\u27ef\\u2983-\\u2998\\u29d8-\\u29db\\u29fc-\\u29fd\\u2cf9-\\u2cfc\\u2cfe-\\u2cff\\u2d70\\u2e00-\\u2e2e\\u2e30-\\u2e4f\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301f\\u3030\\u303d\\u30a0\\u30fb\\ua4fe-\\ua4ff\\ua60d-\\ua60f\\ua673\\ua67e\\ua6f2-\\ua6f7\\ua874-\\ua877\\ua8ce-\\ua8cf\\ua8f8-\\ua8fa\\ua8fc\\ua92e-\\ua92f\\ua95f\\ua9c1-\\ua9cd\\ua9de-\\ua9df\\uaa5c-\\uaa5f\\uaade-\\uaadf\\uaaf0-\\uaaf1\\uabeb\\ufd3e-\\ufd3f\\ufe10-\\ufe19\\ufe30-\\ufe52\\ufe54-\\ufe61\\ufe63\\ufe68\\ufe6a-\\ufe6b\\uff01-\\uff03\\uff05-\\uff0a\\uff0c-\\uff0f\\uff1a-\\uff1b\\uff1f-\\uff20\\uff3b-\\uff3d\\uff3f\\uff5b\\uff5d\\uff5f-\\uff65]|\\ud800[\\udd00-\\udd02\\udf9f\\udfd0]|\\ud801[\\udd6f]|\\ud802[\\udc57\\udd1f\\udd3f\\ude50-\\ude58\\ude7f\\udef0-\\udef6\\udf39-\\udf3f\\udf99-\\udf9c]|\\ud803[\\udf55-\\udf59]|\\ud804[\\udc47-\\udc4d\\udcbb-\\udcbc\\udcbe-\\udcc1\\udd40-\\udd43\\udd74-\\udd75\\uddc5-\\uddc8\\uddcd\\udddb\\udddd-\\udddf\\ude38-\\ude3d\\udea9]|\\ud805[\\udc4b-\\udc4f\\udc5b\\udc5d\\udcc6\\uddc1-\\uddd7\\ude41-\\ude43\\ude60-\\ude6c\\udf3c-\\udf3e]|\\ud806[\\udc3b\\udde2\\ude3f-\\ude46\\ude9a-\\ude9c\\ude9e-\\udea2]|\\ud807[\\udc41-\\udc45\\udc70-\\udc71\\udef7-\\udef8\\udfff]|\\ud809[\\udc70-\\udc74]|\\ud81a[\\ude6e-\\ude6f\\udef5\\udf37-\\udf3b\\udf44]|\\ud81b[\\ude97-\\ude9a\\udfe2]|\\ud82f[\\udc9f]|\\ud836[\\ude87-\\ude8b]|\\ud83a[\\udd5e-\\udd5f]"},$1=["liquidNode","inlineCode","emphasis","strong","delete","wikiLink","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"],eT=$1.concat(["tableCell","paragraph","heading"]),tT=new RegExp(ZS),ul=new RegExp(q1);function Ga(e,t){let[,r,n,s]=t.slice(e.position.start.offset,e.position.end.offset).match(/^\s*(\d+)(\.|\))(\s*)/);return{numberText:r,marker:n,leadingSpaces:s}}var ol={mapAst:function(e,t){return function r(n,s,u){u=u||[];let c=Object.assign({},t(n,s,u));return c.children&&(c.children=c.children.map((o,l)=>r(o,l,[c].concat(u)))),c}(e,null,null)},splitText:function(e,t){let r="non-cjk",n="cj-letter",s="cjk-punctuation",u=[];return(t.proseWrap==="preserve"?e:e.replace(new RegExp("(".concat(al,)
().concat(al,")"),"g"),"$1$2")).split(/([\t\n ]+)/).forEach((o,l,h)=>{l%2!=1?(l!==0&&l!==h.length-1||o!=="")&&o.split(new RegExp("(".concat(al,")"))).forEach((a,f,m)=>{(f!==0&&f!==m.length-1||a!=="")&&(f%2!=0?c(ul.test(a)?{type:"word",value:a,kind:s,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:a,kind:tT.test(a)?"k-letter":n,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1}):a!==""&&c({type:"word",value:a,kind:r,hasLeadingPunctuation:ul.test(a[0]),hasTrailingPunctuation:ul.test(j1(a))}))}):u.push({type:"whitespace",value:/\n/.test(o)?
:" "})}),u;function c(o){let l=j1(u);var h,a;l&&l.type==="word"&&(l.kind===r&&o.kind===n&&!l.hasTrailingPunctuation||l.kind===n&&o.kind===r&&!o.hasLeadingPunctuation?u.push({type:"whitespace",value:" "}):(h=r,a=s,l.kind===h&&o.kind===a||l.kind===a&&o.kind===h||[l.value,o.value].some(f=>/\u3000/.test(f))||u.push({type:"whitespace",value:""}))),u.push(o)}},punctuationPattern:q1,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:Ga,hasGitDiffFriendlyOrderedList:function(e,t){if(!e.ordered||e.children.length<2)return!1;let r=Number(Ga(e.children[0],t.originalText).numberText),n=Number(Ga(e.children[1],t.originalText).numberText);if(r===0&&e.children.length>2){let s=Number(Ga(e.children[2],t.originalText).numberText);return n===1&&s===1}return n===1},INLINE_NODE_TYPES:$1,INLINE_NODE_WRAPPER_TYPES:eT,isAutolink:function(e){if(!e||e.type!=="link"||e.children.length!==1)return!1;let t=e.children[0];return t&&_1(e)===_1(t)&&U1(e)===U1(t)}},{inferParserByLanguage:rT,getMaxContinuousCount:nT}=ce,{builders:{hardline:cl,concat:V1,markAsRoot:sT},utils:{replaceNewlinesWithLiterallines:iT}}=te,{print:aT}=Ks,{getFencedCodeBlockValue:uT}=ol,oT=function(e,t,r,n){let s=e.getValue();if(s.type==="code"&&s.lang!==null){let u=rT(s.lang,n);if(u){let c=n.__inJsTemplate?"~":"",o=c.repeat(Math.max(3,nT(s.value,c)+1)),l=r(uT(s,n.originalText),{parser:u},{stripTrailingHardline:!0});return sT(V1(o,s.lang,s.meta?" "+s.meta:"",cl,iT(l),cl,o))}}switch(s.type){case"front-matter":return aT(s,r);case"importExport":return V1(r(s.value,{parser:"babel"},{stripTrailingHardline:!0}),cl);case"jsx":return r("<$>".concat(s.value,"</$>"),{parser:"__js_expression",rootMarker:"mdx"},{stripTrailingHardline:!0})}return null},{parse:W1}=Ks,z1="format","prettier";function H1(e){let t="@(".concat(z1.join("|"),")"),r=new RegExp(["<!--\\s*".concat(t,"\\s*-->"),`<!--.*\r? )[^\\S
]*.concat(t,[^\\S
]*($|
.*-->)].join("|"),"m"),n=e.match(r);return n&&n.index===0}var G1={startWithPragma:H1,hasPragma:e=>H1(W1(e).content.trimStart()),insertPragma:e=>{let t=W1(e),r="<!-- @".concat(z1[0]," -->");return t.frontMatter?"".concat(t.frontMatter.raw,
).concat(r,
).concat(t.content):"".concat(r,
).concat(t.content)}},{getOrderedListItemInfo:J1,mapAst:nn,splitText:cT}=ol,lT=/^([\u0000-\uffff]|[\ud800-\udbff][\udc00-\udfff])$/;function X1(e,t,r){return nn(e,n=>{if(!n.children)return n;let s=n.children.reduce((u,c)=>{let o=u[u.length-1];return o&&t(o,c)?u.splice(-1,1,r(o,c)):u.push(c),u},[]);return Object.assign({},n,{children:s})})}var pT=function(e,t){return e=function(r){return X1(r,(n,s)=>n.type==="importExport"&&s.type==="importExport",(n,s)=>({type:"importExport",value:n.value+
+s.value,position:{start:n.position.start,end:s.position.end}}))}(e=function(r){return nn(r,n=>n.type!=="import"&&n.type!=="export"?n:Object.assign({},n,{type:"importExport"}))}(e=function(r,n){return nn(r,(s,u,[c])=>{if(s.type!=="text")return s;let{value:o}=s;return c.type==="paragraph"&&(u===0&&(o=o.trimStart()),u===c.children.length-1&&(o=o.trimEnd())),{type:"sentence",position:s.position,children:cT(o,n)}})}(e=function(r,n){return nn(r,(c,o,l)=>{if(c.type==="list"&&c.children.length!==0){for(let h=0;h<l.length;h++){let a=l[h];if(a.type==="list"&&!a.isAligned)return c.isAligned=!1,c}c.isAligned=u(c)}return c});function s(c){return c.children.length===0?-1:c.children[0].position.start.column-1}function u(c){if(!c.ordered)return!0;let[o,l]=c.children;if(J1(o,n.originalText).leadingSpaces.length>1)return!0;let h=s(o);return h===-1?!1:c.children.length===1?h%n.tabWidth==0:h!==s(l)?!1:h%n.tabWidth==0?!0:J1(l,n.originalText).leadingSpaces.length>1}}(e=function(r,n){return nn(r,(s,u,c)=>{if(s.type==="code"){let o=/^\n?( {4,}|\t)/.test(n.originalText.slice(s.position.start.offset,s.position.end.offset));if(s.isIndented=o,o)for(let l=0;l<c.length;l++){let h=c[l];if(h.hasIndentedCodeblock)break;h.type==="list"&&(h.hasIndentedCodeblock=!0)}}return s})}(e=function(r){return nn(r,n=>n.type!=="inlineCode"?n:Object.assign({},n,{value:n.value.replace(/\s+/g," ")}))}(e=function(r){return X1(r,(n,s)=>n.type==="text"&&s.type==="text",(n,s)=>({type:"text",value:n.value+s.value,position:{start:n.position.start,end:s.position.end}}))}(e=function(r,n){return nn(r,s=>s.type==="text"&&s.value!=="*"&&s.value!=="_"&&lT.test(s.value)&&s.position.end.offset-s.position.start.offset!==s.value.length?Object.assign({},s,{value:n.originalText.slice(s.position.start.offset,s.position.end.offset)}):s)}(e,t))),t),t),t)))},{isFrontMatterNode:hT}=ce,{startWithPragma:dT}=G1,fT=new Set(["position","raw"]);function K1(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||hT(r.children[0])&&r.children[1]===e)&&e.type==="html"&&dT(e.value)?null:void 0)}K1.ignoredProperties=fT;var mT=K1,{getLast:ll,getMinNotPresentContinuousCount:DT,getMaxContinuousCount:gT,getStringWidth:yT}=ce,{builders:{breakParent:Y1,concat:se,join:Q1,line:Z1,literalline:eg,markAsRoot:tg,hardline:Ve,softline:pl,ifBreak:ET,fill:CT,align:Zn,indent:bT,group:Ja},utils:{normalizeDoc:AT},printer:{printDocToString:xT}}=te,{replaceEndOfLineWith:ti}=ce,{insertPragma:FT}=G1,{locStart:vT,locEnd:wT}=R1,{getFencedCodeBlockValue:ST,hasGitDiffFriendlyOrderedList:TT,splitText:BT,punctuationPattern:rg,INLINE_NODE_TYPES:PT,INLINE_NODE_WRAPPER_TYPES:NT,isAutolink:ng}=ol,sg=new Set(["importExport"]),kT=["heading","tableCell","link","wikiLink"],IT=new Set(["listItem","definition","footnoteDefinition"]);function ig(e,t,r,n){let s=e.getValue(),u=s.checked===null?"":s.checked?"[x] ":"[ ] ";return se([u,Qe(e,t,r,{processor:(c,o)=>{if(o===0&&c.getValue().type!=="list")return Zn(" ".repeat(u.length),c.call(r));let l=" ".repeat((h=t.tabWidth-n.length,f=3,h<(a=0)?a:h>f?f:h));var h,a,f;return se([l,Zn(l,c.call(r))])}})])}function ag(e,t){return function(r,n,s){s=s||(()=>!0);let u=-1;for(let c of n.children)if(c.type===r.type&&s(c)?u++:u=-1,c===r)return u}(e,t,r=>r.ordered===e.ordered)}function ug(e,t){let r=[].concat(t),n,s=-1;for(;n=e.getParentNode(++s);)if(r.includes(n.type))return s;return-1}function hl(e,t){let r=ug(e,t);return r===-1?null:e.getParentNode(r)}function og(e,t,r){if(r.proseWrap==="preserve"&&t===
)return Ve;let n=r.proseWrap==="always"&&!hl(e,kT);return t!==""?n?Z1:" ":n?pl:""}function LT(e,t,r){let n=[],s=null,{children:u}=e.getValue();return u.forEach((c,o)=>{switch(dl(c)){case"start":s===null&&(s={index:o,offset:c.position.end.offset});break;case"end":s!==null&&(n.push({start:s,end:{index:o,offset:c.position.start.offset}}),s=null)}}),Qe(e,t,r,{processor:(c,o)=>{if(n.length!==0){let l=n[0];if(o===l.start.index)return se([u[l.start.index].value,t.originalText.slice(l.start.offset,l.end.offset),u[l.end.index].value]);if(l.start.index<o&&o<l.end.index)return!1;if(o===l.end.index)return n.shift(),!1}return c.call(r)}})}function Qe(e,t,r,n){let s=(n=n||{}).postprocessor||se,u=n.processor||(h=>h.call(r)),c=e.getValue(),o=[],l;return e.each((h,a)=>{let f=h.getValue(),m=u(h,a);if(m!==!1){let E={parts:o,prevNode:l,parentNode:c,options:t};(function(g,b){let A=b.parts.length===0,C=PT.includes(g.type),F=g.type==="html"&&NT.includes(b.parentNode.type);return A||C||F})(f,E)||(o.push(Ve),l&&sg.has(l.type)||(function(g,b){let A=(b.prevNode&&b.prevNode.type)===g.type&&IT.has(g.type),C=b.parentNode.type==="listItem"&&!b.parentNode.loose,F=b.prevNode&&b.prevNode.type==="listItem"&&b.prevNode.loose,w=dl(b.prevNode)==="next",B=g.type==="html"&&b.prevNode&&b.prevNode.type==="html"&&b.prevNode.position.end.line+1===g.position.start.line,T=g.type==="html"&&b.parentNode.type==="listItem"&&b.prevNode&&b.prevNode.type==="paragraph"&&b.prevNode.position.end.line+1===g.position.start.line;return F||!(A||C||w||B||T)}(f,E)||cg(f,E))&&o.push(Ve),cg(f,E)&&o.push(Ve)),o.push(m),l=f}},"children"),s(o)}function OT(e){let t=e;for(;t.children&&t.children.length!==0;)t=t.children[t.children.length-1];return t}function dl(e){if(e.type!=="html")return!1;let t=e.value.match(/^<!--\s*prettier-ignore(?:-(start|end))?\s*-->$/);return t!==null&&(t[1]?t[1]:"next")}function cg(e,t){let r=t.prevNode&&t.prevNode.type==="list",n=e.type==="code"&&e.isIndented;return r&&n}function fl(e,t){let r=[" "].concat(t||[]);return new RegExp(r.map(n=>"\\".concat(n)).join("|")).test(e)?"<".concat(e,">"):e}function Xa(e,t,r){if(r==null&&(r=!0),!e)return"";if(r)return" "+Xa(e,t,!1);if((e=e.replace(/\\(["')])/g,"$1")).includes('"')&&e.includes("'")&&!e.includes(")"))return"(".concat(e,")");let n=e.split("'").length-1,s=e.split('"').length-1,u=n>s?'"':s>n||t.singleQuote?"'":'"';return e=(e=e.replace(/\\/,"\\\\")).replace(new RegExp("(".concat(u,")"),"g"),"\\$1"),"".concat(u).concat(e).concat(u)}var MT={preprocess:pT,print:function(e,t,r){let n=e.getValue();if(function(s){let u=hl(s,["linkReference","imageReference"]);return u&&(u.type!=="linkReference"||u.referenceType!=="full")}(e))return se(BT(t.originalText.slice(n.position.start.offset,n.position.end.offset),t).map(s=>s.type==="word"?s.value:s.value===""?"":og(e,s.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?"":se([AT(LT(e,t,r)),sg.has(OT(n).type)?"":Ve]);case"paragraph":return Qe(e,t,r,{postprocessor:CT});case"sentence":return Qe(e,t,r);case"word":{let s=n.value.replace(/\*/g,"\\$&").replace(new RegExp(["(^|".concat(rg,")(_+)"),"(_+)(".concat(rg,"|$)")].join("|"),"g"),(o,l,h,a,f)=>(h?"".concat(l).concat(h):"".concat(a).concat(f)).replace(/_/g,"\\_")),u=(o,l,h)=>o.type==="sentence"&&h===0,c=(o,l,h)=>ng(o.children[h-1]);return s!==n.value&&(e.match(void 0,u,c)||e.match(void 0,u,(o,l,h)=>o.type==="emphasis"&&h===0,c))&&(s=s.replace(/^(\\?[*_])+/,o=>o.replace(/\\/g,""))),s}case"whitespace":{let s=e.getParentNode(),u=s.children.indexOf(n),c=s.children[u+1],o=c&&/^>|^([*+-]|#{1,6}|\d+[).])$/.test(c.value)?"never":t.proseWrap;return og(e,n.value,{proseWrap:o})}case"emphasis":{let s;if(ng(n.children[0]))s=t.originalText[n.position.start.offset];else{let u=e.getParentNode(),c=u.children.indexOf(n),o=u.children[c-1],l=u.children[c+1];s=o&&o.type==="sentence"&&o.children.length>0&&ll(o.children).type==="word"&&!ll(o.children).hasTrailingPunctuation||l&&l.type==="sentence"&&l.children.length>0&&l.children[0].type==="word"&&!l.children[0].hasLeadingPunctuation||hl(e,"emphasis")?"*":"_"}return se([s,Qe(e,t,r),s])}case"strong":return se(["**",Qe(e,t,r),"**"]);case"delete":return se(["~~",Qe(e,t,r),"~~"]);case"inlineCode":{let s=DT(n.value,""),u="".repeat(s||1),c=s&&!/^\s/.test(n.value)?" ":"";return se([u,c,n.value,c,u])}case"wikiLink":{let s="";return s=t.proseWrap==="preserve"?n.value:n.value.replace(/[\t\n]+/g," "),se(["[[",s,"]]"])}case"link":switch(t.originalText[n.position.start.offset]){case"<":{let s="mailto:",u=n.url.startsWith(s)&&t.originalText.slice(n.position.start.offset+1,n.position.start.offset+1+s.length)!==s?n.url.slice(s.length):n.url;return se(["<",u,">"])}case"[":return se(["[",Qe(e,t,r),"](",fl(n.url,")"),Xa(n.title,t),")"]);default:return t.originalText.slice(n.position.start.offset,n.position.end.offset)}case"image":return se(["![",n.alt||"","](",fl(n.url,")"),Xa(n.title,t),")"]);case"blockquote":return se(["> ",Zn("> ",Qe(e,t,r))]);case"heading":return se(["#".repeat(n.depth)+" ",Qe(e,t,r)]);case"code":{if(n.isIndented){let c=" ".repeat(4);return Zn(c,se([c,se(ti(n.value,Ve))]))}let s=t.__inJsTemplate?"~":"",u=s.repeat(Math.max(3,gT(n.value,s)+1));return se(u,n.lang||"",n.meta?" "+n.meta:"",Ve,se(ti(ST(n,t.originalText),Ve)),Ve,u)}case"html":{let s=e.getParentNode(),u=s.type==="root"&&ll(s.children)===n?n.value.trimEnd():n.value,c=/^<!--\S\s*-->$/.test(u);return se(ti(u,c?Ve:tg(eg)))}case"list":{let s=ag(n,e.getParentNode()),u=TT(n,t);return Qe(e,t,r,{processor:(c,o)=>{let l=function(){let a=n.ordered?(o===0?n.start:u?1:n.start+o)+(s%2==0?". ":") "):s%2==0?"- ":"* ";return n.isAligned||n.hasIndentedCodeblock?function(f,m){let E=g();return f+" ".repeat(E>=4?0:E);function g(){let b=f.length%m.tabWidth;return b===0?0:m.tabWidth-b}}(a,t):a}(),h=c.getValue();return h.children.length===2&&h.children1.type==="html"&&h.children0.position.start.column!==h.children1.position.start.column?se(l,ig(c,t,r,l)):se(l,Zn(" ".repeat(l.length),ig(c,t,r,l)))}})}case"thematicBreak":{let s=ug(e,"list");return s===-1?"---":ag(e.getParentNode(s),e.getParentNode(s+1))%2==0?"***":"---"}case"linkReference":return se(["",Qe(e,t,r),"",n.referenceType==="full"?se(["",n.identifier,""]):n.referenceType==="collapsed"?"[]":""]);case"imageReference":switch(n.referenceType){case"full":return se(["!",n.alt||"","",n.identifier,""]);default:return se(["!",n.alt,"",n.referenceType==="collapsed"?"[]":""])}case"definition":{let s=t.proseWrap==="always"?Z1:" ";return Ja(se([se(["",n.identifier,":"]),bT(se([s,fl(n.url),n.title===null?"":se(s,Xa(n.title,t,!1))]))]))}case"footnote":return se(["^",Qe(e,t,r),""]);case"footnoteReference":return se(["^",n.identifier,""]);case"footnoteDefinition":{let s=e.getParentNode().childrene.getName()+1,u=n.children.length===1&&n.children0.type==="paragraph"&&(t.proseWrap==="never"||t.proseWrap==="preserve"&&n.children0.position.start.line===n.children0.position.end.line);return se(["^",n.identifier,": ",u?Qe(e,t,r):Ja(se([Zn(" ".repeat(4),Qe(e,t,r,{processor:(c,o)=>o===0?Ja(se(pl,c.call(r))):c.call(r)})),s&&s.type==="footnoteDefinition"?pl:""]))])}case"table":return function(s,u,c){let o=Ve.parts0,l=s.getValue(),h=[],a=s.map(A=>A.map((C,F)=>{let w=xT(C.call(c),u).formatted,B=yT(w);return hF=Math.max(hF||3,B),{text:w,width:B}},"children"),"children"),f=E(!1);if(u.proseWrap!=="never")return se(Y1,f);let m=E(!0);return se(Y1,Ja(ET(m,f)));function E(A){let C=[b(a0,A),g(A)];return a.length>1&&C.push(Q1(o,a.slice(1).map(F=>b(F,A)))),Q1(o,C)}function g(A){let C=h.map((F,w)=>{let B=l.alignw,T=B==="center"||B==="left"?":":"-",P=B==="center"||B==="right"?":":"-",v=A?"-":"-".repeat(F-2);return"".concat(T).concat(v).concat(P)});return"| ".concat(C.join(" | ")," |")}function b(A,C){let F=A.map(({text:w,width:B},T)=>{if(C)return w;let P=hT-B,v=l.alignT,_=0;v==="right"?_=P:v==="center"&&(_=Math.floor(P/2));let O=P-_;return"".concat(" ".repeat(_)).concat(w).concat(" ".repeat(O))});return"| ".concat(F.join(" | ")," |")}}(e,t,r);case"tableCell":return Qe(e,t,r);case"break":return/\s/.test(t.originalTextn.position.start.offset)?se( ",tg(eg)):se("\\",Ve);case"liquidNode":return se(ti(n.value,Ve));case"importExport":return se(n.value,Ve);case"jsx":return n.value;case"math":return se(["$$",Ve,n.value?se(se(ti(n.value,Ve)),Ve):"","$$"]);case"inlineMath":return t.originalText.slice(vT(n),wT(n));case"tableRow":case"listItem":default:throw new Error("Unknown markdown type ".concat(JSON.stringify(n.type)))}},embed:oT,massageAstNode:mT,hasPrettierIgnore:function(e){let t=+e.getName();return t!==0&&dl(e.getParentNode().childrent-1)==="next"},insertPragma:FT},RT={proseWrap:sr.proseWrap,singleQuote:sr.singleQuote},lg={name:"Markdown",type:"prose",color:"#083fa1",aliases:"pandoc",aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:".md",".markdown",".mdown",".mdwn",".mdx",".mkd",".mkdn",".mkdown",".ronn",".workbook",filenames:"contents.lr",tmScope:"source.gfm",languageId:222},jT={languages:[Te(lg,e=>({since:"1.8.0",parsers:"markdown",vscodeLanguageIds:"markdown",filenames:e.filenames.concat("README"),extensions:e.extensions.filter(t=>t!==".mdx")})),Te(lg,()=>({name:"MDX",since:"1.15.0",parsers:"mdx",vscodeLanguageIds:"mdx",filenames:[],extensions:".mdx"}))],options:RT,printers:{mdast:MT},parsers:{get remark(){return{}.parsers.remark},get markdown(){return{}.parsers.remark},get mdx(){return{}.parsers.mdx}}},{isFrontMatterNode:_T}=ce,UT=new Set("sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan");function pg(e,t){return e.type==="text"||e.type==="comment"||_T(e)||e.type==="yaml"||e.type==="toml"?null:(e.type==="attribute"&&delete t.value,void(e.type==="docType"&&delete t.value))}pg.ignoredProperties=UT;var qT=pg,$T={"*":"accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","hidden","id","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","slot","spellcheck","style","tabindex","title","translate",a:"accesskey","charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","tabindex","target","type",abbr:"title",applet:"align","alt","archive","code","codebase","height","hspace","name","object","vspace","width",area:"accesskey","alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","tabindex","target","type",audio:"autoplay","controls","crossorigin","loop","muted","preload","src",base:"href","target",basefont:"color","face","size",bdo:"dir",blockquote:"cite",body:"alink","background","bgcolor","link","text","vlink",br:"clear",button:"accesskey","autofocus","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","tabindex","type","value",canvas:"height","width",caption:"align",col:"align","char","charoff","span","valign","width",colgroup:"align","char","charoff","span","valign","width",data:"value",del:"cite","datetime",details:"open",dfn:"title",dialog:"open",dir:"compact",div:"align",dl:"compact",embed:"height","src","type","width",fieldset:"disabled","form","name",font:"color","face","size",form:"accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target",frame:"frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src",frameset:"cols","rows",h1:"align",h2:"align",h3:"align",h4:"align",h5:"align",h6:"align",head:"profile",hr:"align","noshade","size","width",html:"manifest","version",iframe:"align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","loading","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width",img:"align","alt","border","crossorigin","decoding","height","hspace","ismap","loading","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width",input:"accept","accesskey","align","alt","autocomplete","autofocus","checked","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","readonly","required","size","src","step","tabindex","title","type","usemap","value","width",ins:"cite","datetime",isindex:"prompt",label:"accesskey","for","form",legend:"accesskey","align",li:"type","value",link:"as","charset","color","crossorigin","disabled","href","hreflang","imagesizes","imagesrcset","integrity","media","nonce","referrerpolicy","rel","rev","sizes","target","title","type",map:"name",menu:"compact",meta:"charset","content","http-equiv","name","scheme",meter:"high","low","max","min","optimum","value",object:"align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","tabindex","type","typemustmatch","usemap","vspace","width",ol:"compact","reversed","start","type",optgroup:"disabled","label",option:"disabled","label","selected","value",output:"for","form","name",p:"align",param:"name","type","value","valuetype",pre:"width",progress:"max","value",q:"cite",script:"async","charset","crossorigin","defer","integrity","language","nomodule","nonce","referrerpolicy","src","type",select:"autocomplete","autofocus","disabled","form","multiple","name","required","size","tabindex",slot:"name",source:"media","sizes","src","srcset","type",style:"media","nonce","title","type",table:"align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width",tbody:"align","char","charoff","valign",td:"abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width",textarea:"accesskey","autocomplete","autofocus","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","tabindex","wrap",tfoot:"align","char","charoff","valign",th:"abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width",thead:"align","char","charoff","valign",time:"datetime",tr:"align","bgcolor","char","charoff","valign",track:"default","kind","label","src","srclang",ul:"compact","type",video:"autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"},{inferParserByLanguage:VT,isFrontMatterNode:ml}=ce,{CSS_DISPLAY_TAGS:WT,CSS_DISPLAY_DEFAULT:zT,CSS_WHITE_SPACE_TAGS:HT,CSS_WHITE_SPACE_DEFAULT:GT}={CSS_DISPLAY_TAGS:{area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",source:"block",style:"none",template:"inline",track:"block",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",fieldset:"block",button:"inline-block",details:"block",summary:"block",dialog:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block"},CSS_DISPLAY_DEFAULT:"inline",CSS_WHITE_SPACE_TAGS:{listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"},CSS_WHITE_SPACE_DEFAULT:"normal"},JT=dg("a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","element","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"),XT=function(e,t){let r=Object.create(null);for(let n of Object.keys(e))rn=t(en,n);return r}($T,dg),KT=new Set([" ",` ,"\f","\r"," "]),hg=e=>e.replace(/[\t\n\f\r ]+$/,""),YT=e=>e.match(/^[\t\n\f\r ]*/)[0];function dg(e){let t=Object.create(null);for(let r of e)t[r]=!0;return t}function fg(e,t){return!(e.type!=="ieConditionalComment"||!e.lastChild||e.lastChild.isSelfClosing||e.lastChild.endSourceSpan)||e.type==="ieConditionalComment"&&!e.complete||!(!es(e)||!e.children.some(r=>r.type!=="text"&&r.type!=="interpolation"))||!(!yl(e,t)||sn(e)||e.type==="interpolation")}function mg(e){return e.type==="attribute"||!e.parent||typeof e.index!="number"||e.index===0?!1:function(t){return t.type==="comment"&&t.value.trim()==="prettier-ignore"}(e.parent.children[e.index-1])}function sn(e){return e.type==="element"&&(e.fullName==="script"||e.fullName==="style"||e.fullName==="svg:style"||Ka(e)&&(e.name==="script"||e.name==="style"))}function Dg(e){return Dl(e).startsWith("pre")}function gg(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 yg(e){return Ag(e)||e.type==="element"&&e.fullName==="br"||Eg(e)}function Eg(e){return Cg(e)&&bg(e)}function Cg(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 bg(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 Ag(e){switch(e.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(e.name)}return!1}function xg(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 ri(e){return e==="block"||e==="list-item"||e.startsWith("table")}function es(e){return Dl(e).startsWith("pre")}function Ka(e){return e.type==="element"&&!e.hasExplicitNamespace&&!["html","svg"].includes(e.namespace)}function Dl(e){return e.type==="element"&&(!e.namespace||Ka(e))&&HT[e.name]||GT}var QT=new Set(["template","style","script"]);function Ya(e,t){return gl(e,t)&&!QT.has(e.fullName)}function gl(e,t){return t.parser==="vue"&&e.type==="element"&&e.parent.type==="root"&&e.fullName.toLowerCase()!=="html"}function yl(e,t){return gl(e,t)&&(Ya(e,t)||e.attrMap.lang&&e.attrMap.lang!=="html")}var Fg={HTML_ELEMENT_ATTRIBUTES:XT,HTML_TAGS:JT,htmlTrim:e=>(t=>t.replace(/^[\t\n\f\r ]+/,""))(hg(e)),htmlTrimPreserveIndentation:e=>(t=>t.replace(/^[\t\f\r ]*?\n/g,""))(hg(e)),splitByHtmlWhitespace:e=>e.split(/[\t\n\f\r ]+/),hasHtmlWhitespace:e=>/[\t\n\f\r ]/.test(e),getLeadingAndTrailingHtmlWhitespace:e=>{let[,t,r,n]=e.match(/^([\t\n\f\r ]*)([\S\s]*?)([\t\n\f\r ]*)$/);return{leadingWhitespace:t,trailingWhitespace:n,text:r}},canHaveInterpolation:function(e){return e.children&&!sn(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 s=e.stack[n];s&&typeof s=="object"&&!Array.isArray(s)&&t(s)&&r++}return r},dedentString:function(e,t=function(r){let n=1/0;for(let s of r.split(
)){if(s.length===0)continue;if(!KT.has(s[0]))return 0;let u=YT(s).length;s.length!==u&&u<n&&(n=u)}return n===1/0?0:n}(e)){return t===0?e:e.split(
).map(r=>r.slice(t)).join(
)},forceBreakChildren:gg,forceBreakContent:function(e){return gg(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"&&Cg(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||bg(e.lastChild))},forceNextEmptyLine:function(e){return ml(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,s){let u=n;for(;u;){if(s(u))return!0;u=u.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||Ka(e))&&WT[e.name]||zT}},getNodeCssStyleWhiteSpace:Dl,getPrettierIgnoreAttributeCommentData:function(e){let t=e.trim().match(/^prettier-ignore-attribute(?:\s+([^]+))?$/);return!!t&&(!t[1]||t[1].split(/\s+/))},hasPrettierIgnore:mg,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&&yl(e,t)?xg(e)||!("src"in e.attrMap)&&VT(e.attrMap.lang,t):void 0:e.attrMap.lang||e.attrMap.type?xg(e):"babel"},isVueCustomBlock:Ya,isVueNonHtmlBlock:yl,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(!gl(r,t))return!1;let n=r.fullName,s=e.fullName;return n==="script"&&s==="setup"||n==="style"&&s==="vars"},isDanglingSpaceSensitiveNode:function(e){return t=e.cssDisplay,!(ri(t)||t==="inline-block"||sn(e));var t},isIndentationSensitiveNode:Dg,isLeadingSpaceSensitiveNode:function(e,t){let r=function(){if(ml(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(es(e.parent))return!0;if(!e.prev&&(e.parent.type==="root"||es(e)&&e.parent||sn(e.parent)||Ya(e.parent,t)||(n=e.parent.cssDisplay,ri(n)||n==="inline-block")))return!1;var n;return!(e.prev&&!function(s){return!ri(s)}(e.prev.cssDisplay))}();return r&&!e.prev&&e.parent&&e.parent.tagDefinition&&e.parent.tagDefinition.ignoreFirstLf?e.type==="interpolation":r},isPreLikeNode:es,isScriptLikeTag:sn,isTextLikeNode:function(e){return e.type==="text"||e.type==="comment"},isTrailingSpaceSensitiveNode:function(e,t){return!ml(e)&&(!(e.type!=="text"&&e.type!=="interpolation"||!e.next||e.next.type!=="text"&&e.next.type!=="interpolation")||!(!e.parent||e.parent.cssDisplay==="none")&&(!!es(e.parent)||!(!e.next&&(e.parent.type==="root"||es(e)&&e.parent||sn(e.parent)||Ya(e.parent,t)||(r=e.parent.cssDisplay,ri(r)||r==="inline-block")))&&!(e.next&&!function(n){return!ri(n)}(e.next.cssDisplay))));var r},isWhitespaceSensitiveNode:function(e){return sn(e)||e.type==="interpolation"||Dg(e)},isUnknownNamespace:Ka,preferHardlineAsLeadingSpaces:function(e){return Ag(e)||e.prev&&yg(e.prev)||Eg(e)},preferHardlineAsTrailingSpaces:yg,shouldNotPrintClosingTag:function(e,t){return!e.isSelfClosing&&!e.endSourceSpan&&(mg(e)||fg(e.parent,t))},shouldPreserveContent:fg,unescapeQuoteEntities:function(e){return e.replace(/'/g,"'").replace(/"/g,'"')}},El=Z(function(e,t){function r(n){return t.$0<=n&&n<=t.$9}Object.defineProperty(t,"__esModule",{value:!0}),t.$EOF=0,t.$BSPACE=8,t.$TAB=9,t.$LF=10,t.$VTAB=11,t.$FF=12,t.$CR=13,t.$SPACE=32,t.$BANG=33,t.$DQ=34,t.$HASH=35,t.$$=36,t.$PERCENT=37,t.$AMPERSAND=38,t.$SQ=39,t.$LPAREN=40,t.$RPAREN=41,t.$STAR=42,t.$PLUS=43,t.$COMMA=44,t.$MINUS=45,t.$PERIOD=46,t.$SLASH=47,t.$COLON=58,t.$SEMICOLON=59,t.$LT=60,t.$EQ=61,t.$GT=62,t.$QUESTION=63,t.$0=48,t.$7=55,t.$9=57,t.$A=65,t.$E=69,t.$F=70,t.$X=88,t.$Z=90,t.$LBRACKET=91,t.$BACKSLASH=92,t.$RBRACKET=93,t.$CARET=94,t.$_=95,t.$a=97,t.$b=98,t.$e=101,t.$f=102,t.$n=110,t.$r=114,t.$t=116,t.$u=117,t.$v=118,t.$x=120,t.$z=122,t.$LBRACE=123,t.$BAR=124,t.$RBRACE=125,t.$NBSP=160,t.$PIPE=124,t.$TILDA=126,t.$AT=64,t.$BT=96,t.isWhitespace=function(n){return n>=t.$TAB&&n<=t.$SPACE||n==t.$NBSP},t.isDigit=r,t.isAsciiLetter=function(n){return n>=t.$a&&n<=t.$z||n>=t.$A&&n<=t.$Z},t.isAsciiHexDigit=function(n){return n>=t.$a&&n<=t.$f||n>=t.$A&&n<=t.$F||r(n)},t.isNewLine=function(n){return n===t.$LF||n===t.$CR},t.isOctalDigit=function(n){return t.$0<=n&&n<=t.$7}}),Qa=Z(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class r{constructor(s,u,c){this.filePath=s,this.name=u,this.members=c}assertNoMembers(){if(this.members.length)throw new Error("Illegal state: symbol without members expected, but got ".concat(JSON.stringify(this),"."))}}t.StaticSymbol=r,t.StaticSymbolCache=class{constructor(){this.cache=new Map}get(n,s,u){let c=(u=u||[]).length?".".concat(u.join(".")):"",o='"'.concat(n,'".').concat(s).concat(c),l=this.cache.get(o);return l||(l=new r(n,s,u),this.cache.set(o,l)),l}}}),Za=Z(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});let r=/-+([a-z0-9])/g;function n(m,E,g){let b=m.indexOf(E);return b==-1?g:[m.slice(0,b).trim(),m.slice(b+1).trim()]}function s(m,E,g){return Array.isArray(m)?E.visitArray(m,g):typeof(b=m)=="object"&&b!==null&&Object.getPrototypeOf(b)===o?E.visitStringMap(m,g):m==null||typeof m=="string"||typeof m=="number"||typeof m=="boolean"?E.visitPrimitive(m,g):E.visitOther(m,g);var b}t.dashCaseToCamelCase=function(m){return m.replace(r,(...E)=>E[1].toUpperCase())},t.splitAtColon=function(m,E){return n(m,":",E)},t.splitAtPeriod=function(m,E){return n(m,".",E)},t.visitValue=s,t.isDefined=function(m){return m!=null},t.noUndefined=function(m){return m===void 0?null:m},t.ValueTransformer=class{visitArray(m,E){return m.map(g=>s(g,this,E))}visitStringMap(m,E){let g={};return Object.keys(m).forEach(b=>{g[b]=s(m[b],this,E)}),g}visitPrimitive(m,E){return m}visitOther(m,E){return m}},t.SyncAsync={assertSync:m=>{if(l(m))throw new Error("Illegal state: value cannot be a promise");return m},then:(m,E)=>l(m)?m.then(E):E(m),all:m=>m.some(l)?Promise.all(m):m},t.error=function(m){throw new Error("Internal Error: ".concat(m))},t.syntaxError=function(m,E){let g=Error(m);return g[u]=!0,E&&(g[c]=E),g};let u="ngSyntaxError",c="ngParseErrors";t.isSyntaxError=function(m){return m[u]},t.getParseErrors=function(m){return m[c]||[]},t.escapeRegExp=function(m){return m.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")};let o=Object.getPrototypeOf({});function l(m){return!!m&&typeof m.then=="function"}t.utf8Encode=function(m){let E="";for(let g=0;g<m.length;g++){let b=m.charCodeAt(g);if(b>=55296&&b<=56319&&m.length>g+1){let A=m.charCodeAt(g+1);A>=56320&&A<=57343&&(g++,b=(b-55296<<10)+A-56320+65536)}b<=127?E+=String.fromCharCode(b):b<=2047?E+=String.fromCharCode(b>>6&31|192,63&b|128):b<=65535?E+=String.fromCharCode(b>>12|224,b>>6&63|128,63&b|128):b<=2097151&&(E+=String.fromCharCode(b>>18&7|240,b>>12&63|128,b>>6&63|128,63&b|128))}return E},t.stringify=function m(E){if(typeof E=="string")return E;if(E instanceof Array)return"["+E.map(m).join(", ")+"]";if(E==null)return""+E;if(E.overriddenName)return"".concat(E.overriddenName);if(E.name)return"".concat(E.name);if(!E.toString)return"object";let g=E.toString();if(g==null)return""+g;let b=g.indexOf(
);return b===-1?g:g.substring(0,b)},t.resolveForwardRef=function(m){return typeof m=="function"&&m.hasOwnProperty("__forward_ref__")?m():m},t.isPromise=l,t.Version=class{constructor(m){this.full=m;let E=m.split(".");this.major=E[0],this.minor=E[1],this.patch=E.slice(2).join(".")}};let h=typeof window!="undefined"&&window,a=typeof self!="undefined"&&typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&self,f=dr!==void 0&&dr||h||a;t.global=f}),Cl=Z(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});let r=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function n(f){return f.replace(/\W/g,"_")}t.sanitizeIdentifier=n;let s=0;function u(f){if(!f||!f.reference)return null;let m=f.reference;if(m instanceof Qa.StaticSymbol)return m.name;if(m.__anonymousType)return m.__anonymousType;let E=Za.stringify(m);return E.indexOf("(")>=0?(E="anonymous_".concat(s++),m.__anonymousType=E):E=n(E),E}var c;t.identifierName=u,t.identifierModuleUrl=function(f){let m=f.reference;return m instanceof Qa.StaticSymbol?m.filePath:"./".concat(Za.stringify(m))},t.viewClassName=function(f,m){return"View_".concat(u({reference:f}),"_").concat(m)},t.rendererTypeName=function(f){return"RenderType_".concat(u({reference:f}))},t.hostViewClassName=function(f){return"HostView_".concat(u({reference:f}))},t.componentFactoryName=function(f){return"".concat(u({reference:f}),"NgFactory")},function(f){f[f.Pipe=0]="Pipe",f[f.Directive=1]="Directive",f[f.NgModule=2]="NgModule",f[f.Injectable=3]="Injectable"}(c=t.CompileSummaryKind||(t.CompileSummaryKind={})),t.tokenName=function(f){return f.value!=null?n(f.value):u(f.identifier)},t.tokenReference=function(f){return f.identifier!=null?f.identifier.reference:f.value},t.CompileStylesheetMetadata=class{constructor({moduleUrl:f,styles:m,styleUrls:E}={}){this.moduleUrl=f||null,this.styles=l(m),this.styleUrls=l(E)}},t.CompileTemplateMetadata=class{constructor({encapsulation:f,template:m,templateUrl:E,htmlAst:g,styles:b,styleUrls:A,externalStylesheets:C,animations:F,ngContentSelectors:w,interpolation:B,isInline:T,preserveWhitespaces:P}){if(this.encapsulation=f,this.template=m,this.templateUrl=E,this.htmlAst=g,this.styles=l(b),this.styleUrls=l(A),this.externalStylesheets=l(C),this.animations=F?h(F):[],this.ngContentSelectors=w||[],B&&B.length!=2)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=B,this.isInline=T,this.preserveWhitespaces=P}toSummary(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation,styles:this.styles,animations:this.animations}}};class o{static create({isHost:m,type:E,isComponent:g,selector:b,exportAs:A,changeDetection:C,inputs:F,outputs:w,host:B,providers:T,viewProviders:P,queries:v,guards:_,viewQueries:O,entryComponents:M,template:q,componentViewType:j,rendererType:W,componentFactory:z}){let H={},Y={},ye={};B!=null&&Object.keys(B).forEach(fe=>{let De=B[fe],ke=fe.match(r);ke===null?ye[fe]=De:ke[1]!=null?Y[ke[1]]=De:ke[2]!=null&&(H[ke[2]]=De)});let ue={};F!=null&&F.forEach(fe=>{let De=Za.splitAtColon(fe,[fe,fe]);ue[De[0]]=De[1]});let Ce={};return w!=null&&w.forEach(fe=>{let De=Za.splitAtColon(fe,[fe,fe]);Ce[De[0]]=De[1]}),new o({isHost:m,type:E,isComponent:!!g,selector:b,exportAs:A,changeDetection:C,inputs:ue,outputs:Ce,hostListeners:H,hostProperties:Y,hostAttributes:ye,providers:T,viewProviders:P,queries:v,guards:_,viewQueries:O,entryComponents:M,template:q,componentViewType:j,rendererType:W,componentFactory:z})}constructor({isHost:m,type:E,isComponent:g,selector:b,exportAs:A,changeDetection:C,inputs:F,outputs:w,hostListeners:B,hostProperties:T,hostAttributes:P,providers:v,viewProviders:_,queries:O,guards:M,viewQueries:q,entryComponents:j,template:W,componentViewType:z,rendererType:H,componentFactory:Y}){this.isHost=!!m,this.type=E,this.isComponent=g,this.selector=b,this.exportAs=A,this.changeDetection=C,this.inputs=F,this.outputs=w,this.hostListeners=B,this.hostProperties=T,this.hostAttributes=P,this.providers=l(v),this.viewProviders=l(_),this.queries=l(O),this.guards=M,this.viewQueries=l(q),this.entryComponents=l(j),this.template=W,this.componentViewType=z,this.rendererType=H,this.componentFactory=Y}toSummary(){return{summaryKind:c.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,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,guards:this.guards,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}}}t.CompileDirectiveMetadata=o,t.CompilePipeMetadata=class{constructor({type:f,name:m,pure:E}){this.type=f,this.name=m,this.pure=!!E}toSummary(){return{summaryKind:c.Pipe,type:this.type,name:this.name,pure:this.pure}}},t.CompileShallowModuleMetadata=class{},t.CompileNgModuleMetadata=class{constructor({type:f,providers:m,declaredDirectives:E,exportedDirectives:g,declaredPipes:b,exportedPipes:A,entryComponents:C,bootstrapComponents:F,importedModules:w,exportedModules:B,schemas:T,transitiveModule:P,id:v}){this.type=f||null,this.declaredDirectives=l(E),this.exportedDirectives=l(g),this.declaredPipes=l(b),this.exportedPipes=l(A),this.providers=l(m),this.entryComponents=l(C),this.bootstrapComponents=l(F),this.importedModules=l(w),this.exportedModules=l(B),this.schemas=l(T),this.id=v||null,this.transitiveModule=P||null}toSummary(){let f=this.transitiveModule;return{summaryKind:c.NgModule,type:this.type,entryComponents:f.entryComponents,providers:f.providers,modules:f.modules,exportedDirectives:f.exportedDirectives,exportedPipes:f.exportedPipes}}};function l(f){return f||[]}t.TransitiveCompileNgModuleMetadata=class{constructor(){this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}addProvider(f,m){this.providers.push({provider:f,module:m})}addDirective(f){this.directivesSet.has(f.reference)||(this.directivesSet.add(f.reference),this.directives.push(f))}addExportedDirective(f){this.exportedDirectivesSet.has(f.reference)||(this.exportedDirectivesSet.add(f.reference),this.exportedDirectives.push(f))}addPipe(f){this.pipesSet.has(f.reference)||(this.pipesSet.add(f.reference),this.pipes.push(f))}addExportedPipe(f){this.exportedPipesSet.has(f.reference)||(this.exportedPipesSet.add(f.reference),this.exportedPipes.push(f))}addModule(f){this.modulesSet.has(f.reference)||(this.modulesSet.add(f.reference),this.modules.push(f))}addEntryComponent(f){this.entryComponentsSet.has(f.componentType)||(this.entryComponentsSet.add(f.componentType),this.entryComponents.push(f))}};function h(f){return f.reduce((m,E)=>{let g=Array.isArray(E)?h(E):E;return m.concat(g)},[])}function a(f){return f.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}t.ProviderMeta=class{constructor(f,{useClass:m,useValue:E,useExisting:g,useFactory:b,deps:A,multi:C}){this.token=f,this.useClass=m||null,this.useValue=E,this.useExisting=g,this.useFactory=b||null,this.dependencies=A||null,this.multi=!!C}},t.flatten=h,t.templateSourceUrl=function(f,m,E){let g;return g=E.isInline?m.type.reference instanceof Qa.StaticSymbol?"".concat(m.type.reference.filePath,".").concat(m.type.reference.name,".html"):"".concat(u(f),"/").concat(u(m.type),".html"):E.templateUrl,m.type.reference instanceof Qa.StaticSymbol?g:a(g)},t.sharedStylesheetJitUrl=function(f,m){let E=f.moduleUrl.split(/\/\\/g),g=E[E.length-1];return a("css/".concat(m).concat(g,".ngstyle.js"))},t.ngModuleJitUrl=function(f){return a("".concat(u(f.type),"/module.ngfactory.js"))},t.templateJitUrl=function(f,m){return a("".concat(u(f),"/").concat(u(m.type),".ngfactory.js"))}}),ZT=Z(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class r{constructor(o,l,h,a){this.file=o,this.offset=l,this.line=h,this.col=a}toString(){return this.offset!=null?"".concat(this.file.url,"@").concat(this.line,":").concat(this.col):this.file.url}moveBy(o){let l=this.file.content,h=l.length,a=this.offset,f=this.line,m=this.col;for(;a>0&&o<0;)if(a--,o++,l.charCodeAt(a)==El.$LF){f--;let E=l.substr(0,a-1).lastIndexOf(String.fromCharCode(El.$LF));m=E>0?a-E:a}else m--;for(;a<h&&o>0;){let E=l.charCodeAt(a);a++,o--,E==El.$LF?(f++,m=0):m++}return new r(this.file,a,f,m)}getContext(o,l){let h=this.file.content,a=this.offset;if(a!=null){a>h.length-1&&(a=h.length-1);let f=a,m=0,E=0;for(;m<o&&a>0&&(a--,m++,h[a]!=
||++E!=l););for(m=0,E=0;m<o&&f<h.length-1&&(f++,m++,h[f]!=
||++E!=l););return{before:h.substring(a,this.offset),after:h.substring(this.offset,f+1)}}return null}}t.ParseLocation=r;class n{constructor(o,l){this.content=o,this.url=l}}t.ParseSourceFile=n;class s{constructor(o,l,h=null){this.start=o,this.end=l,this.details=h}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}}var u;t.ParseSourceSpan=s,t.EMPTY_PARSE_LOCATION=new r(new n("",""),0,0,0),t.EMPTY_SOURCE_SPAN=new s(t.EMPTY_PARSE_LOCATION,t.EMPTY_PARSE_LOCATION),function(c){c[c.WARNING=0]="WARNING",c[c.ERROR=1]="ERROR"}(u=t.ParseErrorLevel||(t.ParseErrorLevel={})),t.ParseError=class{constructor(c,o,l=u.ERROR){this.span=c,this.msg=o,this.level=l}contextualMessage(){let c=this.span.start.getContext(100,3);return c?"".concat(this.msg,' ("').concat(c.before,"[").concat(u[this.level]," ->]").concat(c.after,'")'):this.msg}toString(){let c=this.span.details?", ".concat(this.span.details):"";return"".concat(this.contextualMessage(),": ").concat(this.span.start).concat(c)}},t.typeSourceSpan=function(c,o){let l=Cl.identifierModuleUrl(o),h=l!=null?"in ".concat(c," ").concat(Cl.identifierName(o)," in ").concat(l):"in ".concat(c," ").concat(Cl.identifierName(o)),a=new n("",h);return new s(new r(a,-1,-1,-1),new r(a,-1,-1,-1))},t.r3JitTypeSourceSpan=function(c,o,l){let h="in ".concat(c," ").concat(o," in ").concat(l),a=new n("",h);return new s(new r(a,-1,-1,-1),new r(a,-1,-1,-1))}}),{ParseSourceSpan:Sr}=ZT,{htmlTrim:eB,getLeadingAndTrailingHtmlWhitespace:tB,hasHtmlWhitespace:rB,canHaveInterpolation:nB,getNodeCssStyleDisplay:sB,isDanglingSpaceSensitiveNode:iB,isIndentationSensitiveNode:aB,isLeadingSpaceSensitiveNode:uB,isTrailingSpaceSensitiveNode:oB,isWhitespaceSensitiveNode:cB}=Fg,lB=[function(e){return e.map(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;return t.clone({children:r.value.length===1?n:[r.clone({value:r.value.slice(1)}),...n]})}return t})},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;return e.map(r=>{if(r.children){let n=r.children.map(t);if(n.some(Boolean)){let s=[];for(let u=0;u<r.children.length;u++){let c=r.children[u];if(!n[u+1])if(n[u]){let o=c.prev,l=c.firstChild,h=new Sr(o.sourceSpan.start,l.sourceSpan.end),a=new Sr(h.start,c.sourceSpan.end);s.push(c.clone({condition:o.condition,sourceSpan:a,startSourceSpan:h,children:c.children.slice(1)}))}else s.push(c)}return r.clone({children:s})}}return r})},function(e){return function(t,r,n){return t.map(s=>{if(s.children){let u=s.children.map(r);if(u.some(Boolean)){let c=[];for(let o=0;o<s.children.length;o++){let l=s.children[o];if(l.type!=="text"&&!u[o]){c.push(l);continue}let h=l.type==="text"?l:l.clone({type:"text",value:n(l)});if(c.length===0||c[c.length-1].type!=="text"){c.push(h);continue}let a=c.pop();c.push(a.clone({value:a.value+h.value,sourceSpan:new Sr(a.sourceSpan.start,h.sourceSpan.end)}))}return s.clone({children:c})}}return s})}(e,t=>t.type==="cdata",t=>"<![CDATA[".concat(t.value,"]]>"))},function(e,t){if(t.parser==="html")return e;let r=/{{([\S\s]+?)}}/g;return e.map(n=>{if(!nB(n))return n;let s=[];for(let u of n.children){if(u.type!=="text"){s.push(u);continue}let c=u.sourceSpan.start,o=null,l=u.value.split(r);for(let h=0;h<l.length;h++,c=o){let a=l[h];h%2!=0?(o=c.moveBy(a.length+4),s.push({type:"interpolation",sourceSpan:new Sr(c,o),children:a.length===0?[]:[{type:"text",value:a,sourceSpan:new Sr(c.moveBy(2),o.moveBy(-2))}]})):(o=c.moveBy(a.length),a.length!==0&&s.push({type:"text",value:a,sourceSpan:new Sr(c,o)}))}}return n.clone({children:s})})},function(e){let t="whitespace";return e.map(r=>{if(!r.children)return r;if(r.children.length===0||r.children.length===1&&r.children[0].type==="text"&&eB(r.children[0].value).length===0)return r.clone({children:[],hasDanglingSpaces:r.children.length!==0});let n=cB(r),s=aB(r);return r.clone({isWhitespaceSensitive:n,isIndentationSensitive:s,children:r.children.reduce((u,c)=>{if(c.type!=="text"||n)return u.concat(c);let o=[],{leadingWhitespace:l,text:h,trailingWhitespace:a}=tB(c.value);return l&&o.push({type:t}),h&&o.push({type:"text",value:h,sourceSpan:new Sr(c.sourceSpan.start.moveBy(l.length),c.sourceSpan.end.moveBy(-a.length))}),a&&o.push({type:t}),u.concat(o)},[]).reduce((u,c,o,l)=>{if(c.type===t)return u;let h=o!==0&&l[o-1].type===t,a=o!==l.length-1&&l[o+1].type===t;return u.concat(Object.assign({},c,{hasLeadingSpaces:h,hasTrailingSpaces:a}))},[])})})},function(e,t){return e.map(r=>Object.assign(r,{cssDisplay:sB(r,t)}))},function(e){return e.map(t=>Object.assign(t,{isSelfClosing:!t.children||t.type==="element"&&(t.tagDefinition.isVoid||t.startSourceSpan===t.endSourceSpan)}))},function(e,t){return e.map(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){return e.map(r=>r.children?r.children.length===0?r.clone({isDanglingSpaceSensitive:iB(r)}):r.clone({children:r.children.map(n=>Object.assign({},n,{isLeadingSpaceSensitive:uB(n,t),isTrailingSpaceSensitive:oB(n,t)})).map((n,s,u)=>Object.assign({},n,{isLeadingSpaceSensitive:(s===0||u[s-1].isTrailingSpaceSensitive)&&n.isLeadingSpaceSensitive,isTrailingSpaceSensitive:(s===u.length-1||u[s+1].isLeadingSpaceSensitive)&&n.isTrailingSpaceSensitive}))}):r)},function(e){let t=r=>r.type==="element"&&r.attrs.length===0&&r.children.length===1&&r.firstChild.type==="text"&&!rB(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";return e.map(r=>{if(r.children){let n=r.children.map(t);if(n.some(Boolean)){let s=[];for(let u=0;u<r.children.length;u++){let c=r.children[u];if(n[u]){let o=s.pop(),l=r.children[++u],{isTrailingSpaceSensitive:h,hasTrailingSpaces:a}=l;s.push(o.clone({value:o.value+"<".concat(c.rawName,">")+c.firstChild.value+"</".concat(c.rawName,">")+l.value,sourceSpan:new Sr(o.sourceSpan.start,l.sourceSpan.end),isTrailingSpaceSensitive:h,hasTrailingSpaces:a}))}else s.push(c)}return r.clone({children:s})}}return r})}],pB=function(e,t){for(let r of lB)e=r(e,t);return e},hB={hasPragma:function(e){return/^\s*<!--\s*@(format|prettier)\s*-->/.test(e)},insertPragma:function(e){return<!-- @format -->
+e.replace(/^\s*\n/,"")}},dB={locStart:function(e){return e.sourceSpan.start.offset},locEnd:function(e){return e.sourceSpan.end.offset}},{builders:{concat:fB,group:mB}}=te,DB={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:s}=function(u){let c=/([^]*?)\s+(in|of)\s+([^]*)/,o=/,([^,\]}]*)(?:,([^,\]}]*))?$/,l=/^\(|\)$/g,h=u.match(c);if(!h)return;let a={};a.for=h[3].trim();let f=h[1].trim().replace(l,""),m=f.match(o);return m?(a.alias=f.replace(o,""),a.iterator1=m[1].trim(),m[2]&&(a.iterator2=m[2].trim())):a.alias=f,{left:"".concat([a.alias,a.iterator1,a.iterator2].filter(Boolean).join(",")),operator:h[2],right:a.for}}(e);return fB([mB(t("function _(".concat(r,") {}"),{parser:"babel",__isVueForBindingLeft:!0}))," ",n," ",t(s,{parser:"__js_expression"},{stripTrailingHardline:!0})])},printVueBindings:function(e,t){return t("function _(".concat(e,") {}"),{parser:"babel",__isVueBindings:!0},{stripTrailingHardline:!0})}},gB=Z(function(e){(function(t,r){e.exports?e.exports=r():t.parseSrcset=r()})(dr,function(){return function(t,r){var n=r&&r.logger||console;function s(P){return P===" "||P===" "||P===
||P==="\f"||P==="\r"}function u(P){var v,_=P.exec(t.substring(F));if(_)return v=_[0],F+=v.length,v}for(var c,o,l,h,a,f=t.length,m=/^[ \t\n\r\u000c]+/,E=/^[, \t\n\r\u000c]+/,g=/^[^ \t\n\r\u000c]+/,b=/[,]+$/,A=/^\d+$/,C=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,F=0,w=[];;){if(u(E),F>=f)return w;c=u(g),o=[],c.slice(-1)===","?(c=c.replace(b,""),T()):B()}function B(){for(u(m),l="",h="in descriptor";;){if(a=t.charAt(F),h==="in descriptor")if(s(a))l&&(o.push(l),l="",h="after descriptor");else{if(a===",")return F+=1,l&&o.push(l),void T();if(a==="(")l+=a,h="in parens";else{if(a==="")return l&&o.push(l),void T();l+=a}}else if(h==="in parens")if(a===")")l+=a,h="in descriptor";else{if(a==="")return o.push(l),void T();l+=a}else if(h==="after descriptor"&&!s(a)){if(a==="")return void T();h="in descriptor",F-=1}F+=1}}function T(){var P,v,_,O,M,q,j,W,z,H=!1,Y={};for(O=0;O<o.length;O++)q=(M=o[O])[M.length-1],j=M.substring(0,M.length-1),W=parseInt(j,10),z=parseFloat(j),A.test(j)&&q==="w"?((P||v)&&(H=!0),W===0?H=!0:P=W):C.test(j)&&q==="x"?((P||v||_)&&(H=!0),z<0?H=!0:v=z):A.test(j)&&q==="h"?((_||v)&&(H=!0),W===0?H=!0:_=W):H=!0;H?n&&n.error&&n.error("Invalid srcset descriptor found in '"+t+"' at '"+M+"'."):(Y.url=c,P&&(Y.w=P),v&&(Y.d=v),_&&(Y.h=_),w.push(Y))}}})}),{builders:{concat:vg,ifBreak:yB,join:EB,line:CB}}=te,bB={printImgSrcset:function(e){let t=gB(e,{logger:{error(m){throw new Error(m)}}}),r=t.some(({w:m})=>m),n=t.some(({h:m})=>m);if(r+n+t.some(({d:m})=>m)>1)throw new Error("Mixed descriptor in srcset is not supported");let s=r?"w":n?"h":"d",u=r?"w":n?"h":"x",c=m=>Math.max(...m),o=t.map(m=>m.url),l=c(o.map(m=>m.length)),h=t.map(m=>m[s]).map(m=>m?m.toString():""),a=h.map(m=>{let E=m.indexOf(".");return E===-1?m.length:E}),f=c(a);return EB(vg([",",CB]),o.map((m,E)=>{let g=[m],b=h[E];if(b){let A=l-m.length+1,C=f-a[E],F=" ".repeat(A+C);g.push(yB(F," "),b+u)}return vg(g)}))},printClassNames:function(e){return e.trim().split(/\s+/).join(" ")}},{builders:eu,utils:{mapDoc:AB,normalizeParts:wg}}=te,{replaceEndOfLineWith:Nt}=ce,{print:xB}=Ks,{breakParent:bl,dedentToRoot:FB,fill:Sg,group:ht,hardline:Oe,ifBreak:tu,indent:ts,join:Tg,line:dt,literalline:Ht,softline:kt}=eu,{htmlTrimPreserveIndentation:Bg,splitByHtmlWhitespace:vB,countChars:Pg,countParents:wB,dedentString:Ng,forceBreakChildren:SB,forceBreakContent:TB,forceNextEmptyLine:ru,getLastDescendant:kg,getPrettierIgnoreAttributeCommentData:BB,hasPrettierIgnore:Ig,inferScriptParser:Lg,isVueCustomBlock:PB,isVueNonHtmlBlock:NB,isVueSlotAttribute:kB,isVueSfcBindingsAttribute:IB,isScriptLikeTag:Al,isTextLikeNode:bt,preferHardlineAsLeadingSpaces:xl,shouldNotPrintClosingTag:Og,shouldPreserveContent:LB,unescapeQuoteEntities:Mg,isPreLikeNode:OB}=Fg,{insertPragma:MB}=hB,{locStart:Fl,locEnd:vl}=dB,{printVueFor:RB,printVueBindings:jB,isVueEventBindingExpression:_B}=DB,{printImgSrcset:UB,printClassNames:qB}=bB;function Q(e){let t=wg(e);return t.length===0?"":t.length===1?t[0]:eu.concat(t)}function Rg(e,t,r){let n=e.getValue();if(SB(n))return Q([bl,Q(e.map(o=>{let l=o.getValue(),h=l.prev?c(l.prev,l):"";return Q([h?Q([h,ru(l.prev)?Oe:""]):"",u(o)])},"children"))]);let s=n.children.map(()=>Symbol(""));return Q(e.map((o,l)=>{let h=o.getValue();if(bt(h)){if(h.prev&&bt(h.prev)){let A=c(h.prev,h);if(A)return ru(h.prev)?Q([Oe,Oe,u(o)]):Q([A,u(o)])}return u(o)}let a=[],f=[],m=[],E=[],g=h.prev?c(h.prev,h):"",b=h.next?c(h,h.next):"";return g&&(ru(h.prev)?a.push(Oe,Oe):g===Oe?a.push(Oe):bt(h.prev)?f.push(g):f.push(tu("",kt,{groupId:s[l-1]}))),b&&(ru(h)?bt(h.next)&&E.push(Oe,Oe):b===Oe?bt(h.next)&&E.push(Oe):m.push(b)),Q([].concat(a,ht(Q([Q(f),ht(Q([u(o),Q(m)]),{id:s[l]})])),E))},"children"));function u(o){let l=o.getValue();return Ig(l)?Q([].concat(un(l,t),Nt(t.originalText.slice(Fl(l)+(l.prev&&iu(l.prev)?Tl(l).length:0),vl(l)-(l.next&&an(l.next)?ii(l,t).length:0)),Ht),on(l,t))):r(o)}function c(o,l){return bt(o)&&bt(l)?o.isTrailingSpaceSensitive?o.hasTrailingSpaces?xl(l)?Oe:dt:"":xl(l)?Oe:kt:iu(o)&&(Ig(l)||l.firstChild||l.isSelfClosing||l.type==="element"&&l.attrs.length!==0)||o.type==="element"&&o.isSelfClosing&&an(l)?"":!l.isLeadingSpaceSensitive||xl(l)||an(l)&&o.lastChild&&si(o.lastChild)&&o.lastChild.lastChild&&si(o.lastChild.lastChild)?Oe:l.hasLeadingSpaces?dt:kt}}function jg(e,t){let r=e.startSourceSpan.end.offset;e.firstChild&&au(e.firstChild)&&(r-=Bl(e).length);let n=e.endSourceSpan.start.offset;return e.lastChild&&si(e.lastChild)?n+=Pl(e,t).length:ni(e)&&(n-=ii(e.lastChild,t).length),t.originalText.slice(r,n)}function $B(e,t,r){let n=e.getValue();if(!n.attrs||n.attrs.length===0)return n.isSelfClosing?" ":"";let s=n.prev&&n.prev.type==="comment"&&BB(n.prev.value),u=typeof s=="boolean"?()=>s:Array.isArray(s)?h=>s.includes(h.rawName):()=>!1,c=e.map(h=>{let a=h.getValue();return u(a)?Q(Nt(t.originalText.slice(Fl(a),vl(a)),Ht)):r(h)},"attrs"),o=n.type==="element"&&n.fullName==="script"&&n.attrs.length===1&&n.attrs[0].fullName==="src"&&n.children.length===0,l=[ts(Q([o?" ":dt,Tg(dt,c)]))];return n.firstChild&&au(n.firstChild)||n.isSelfClosing&&ni(n.parent)||o?l.push(n.isSelfClosing?" ":""):l.push(n.isSelfClosing?dt:kt),Q(l)}function wl(e,t,r){let n=e.getValue();return Q([nu(n,t),$B(e,t,r),n.isSelfClosing?"":VB(n)])}function nu(e,t){return e.prev&&iu(e.prev)?"":Q([un(e,t),Tl(e)])}function VB(e){return e.firstChild&&au(e.firstChild)?"":Bl(e)}function Sl(e,t){return Q([e.isSelfClosing?"":WB(e,t),su(e,t)])}function WB(e,t){return e.lastChild&&si(e.lastChild)?"":Q([zB(e,t),Pl(e,t)])}function su(e,t){return(e.next?an(e.next):ni(e.parent))?"":Q([ii(e,t),on(e,t)])}function iu(e){return e.next&&!bt(e.next)&&bt(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces}function au(e){return!e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function an(e){return e.prev&&e.prev.type!=="docType"&&!bt(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function ni(e){return e.lastChild&&e.lastChild.isTrailingSpaceSensitive&&!e.lastChild.hasTrailingSpaces&&!bt(kg(e.lastChild))&&!OB(e)}function si(e){return!e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&bt(kg(e))}function un(e,t){return au(e)?Bl(e.parent):an(e)?ii(e.prev,t):""}function zB(e,t){return ni(e)?ii(e.lastChild,t):""}function on(e,t){return si(e)?Pl(e.parent,t):iu(e)?Tl(e.next):""}function Tl(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 Bl(e){switch(Qt(!e.isSelfClosing),e.type){case"ieConditionalComment":return"]>";case"element":if(e.condition)return"><!--<![endif]-->";default:return">"}}function Pl(e,t){if(Qt(!e.isSelfClosing),Og(e,t))return"";switch(e.type){case"ieConditionalComment":return"<!";case"element":if(e.hasHtmComponentClosingTag)return"<//";default:return"</".concat(e.rawName)}}function ii(e,t){if(Og(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 _g(e,t=e.value){return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?Nt(t,Ht):Nt(Ng(Bg(t)),Oe):Tg(dt,vB(t)).parts}var HB={preprocess:pB,print:function(e,t,r){let n=e.getValue();switch(n.type){case"front-matter":return Q(Nt(n.raw,Ht));case"root":return t.__onHtmlRoot&&t.__onHtmlRoot(n),eu.concat([ht(Rg(e,t,r)),Oe]);case"element":case"ieConditionalComment":{if(LB(n,t))return Q([].concat(un(n,t),ht(wl(e,t,r)),Nt(jg(n,t),Ht),Sl(n,t),on(n,t)));let u=n.children.length===1&&n.firstChild.type==="interpolation"&&n.firstChild.isLeadingSpaceSensitive&&!n.firstChild.hasLeadingSpaces&&n.lastChild.isTrailingSpaceSensitive&&!n.lastChild.hasTrailingSpaces,c=Symbol("element-attr-group-id");return Q([ht(Q([ht(wl(e,t,r),{id:c}),n.children.length===0?n.hasDanglingSpaces&&n.isDanglingSpaceSensitive?dt:"":Q([TB(n)?bl:"",(s=Q([u?tu(kt,"",{groupId:c}):n.firstChild.hasLeadingSpaces&&n.firstChild.isLeadingSpaceSensitive?dt:n.firstChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive?FB(kt):kt,Rg(e,t,r)]),u?tu(ts(s),s,{groupId:c}):!Al(n)&&!PB(n,t)||n.parent.type!=="root"||t.parser!=="vue"||t.vueIndentScriptAndStyle?ts(s):s),(n.next?an(n.next):ni(n.parent))?n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?" ":"":u?tu(kt,"",{groupId:c}):n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?dt:(n.lastChild.type==="comment"||n.lastChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive)&&new RegExp("\\n[\\t ]{".concat(t.tabWidth*wB(e,o=>o.parent&&o.parent.type!=="root"),"}$")).test(n.lastChild.value)?"":kt])])),Sl(n,t)])}case"ieConditionalStartComment":case"ieConditionalEndComment":return Q([nu(n),su(n)]);case"interpolation":return Q([nu(n,t),Q(e.map(r,"children")),su(n,t)]);case"text":if(n.parent.type==="interpolation"){let u=/\n[^\S\n]*?$/,c=u.test(n.value),o=c?n.value.replace(u,""):n.value;return Q([Q(Nt(o,Ht)),c?Oe:""])}return Sg(wg([].concat(un(n,t),_g(n),on(n,t))));case"docType":return Q([ht(Q([nu(n,t)," ",n.value.replace(/^html\b/i,"html").replace(/\s+/g," ")])),su(n,t)]);case"comment":return Q([un(n,t),Q(Nt(t.originalText.slice(Fl(n),vl(n)),Ht)),on(n,t)]);case"attribute":{if(n.value===null)return n.rawName;let u=Mg(n.value),c=Pg(u,"'")<Pg(u,'"')?"'":'"';return Q([n.rawName,Q(["=",c,Q(Nt(c==='"'?u.replace(/"/g,"""):u.replace(/'/g,"'"),Ht)),c])])}default:throw new Error("Unexpected node type ".concat(n.type))}var s},insertPragma:MB,massageAstNode:qT,embed:function(e,t,r,n){let s=e.getValue();switch(s.type){case"element":if(Al(s)||s.type==="interpolation")return;if(!s.isSelfClosing&&NB(s,n)){let u=Lg(s,n);if(!u)return;let c=jg(s,n),o=/^\s*$/.test(c),l="";return o||(l=r(Bg(c),{parser:u},{stripTrailingHardline:!0}),o=l===""),Q([un(s,n),ht(wl(e,n,t)),o?"":Oe,l,o?"":Oe,Sl(s,n),on(s,n)])}break;case"text":if(Al(s.parent)){let u=Lg(s.parent);if(u){let c=u==="markdown"?Ng(s.value.replace(/^[^\S\n]*?\n/,"")):s.value,o={parser:u};if(n.parser==="html"&&u==="babel"){let l="script",{attrMap:h}=s.parent;h&&(h.type==="module"||h.type==="text/babel"&&h["data-type"]==="module")&&(l="module"),o.__babelSourceType=l}return eu.concat([Q([bl,un(s,n),r(c,o,{stripTrailingHardline:!0}),on(s,n)])])}}else if(s.parent.type==="interpolation")return Q([ts(Q([dt,r(s.value,Object.assign({__isInHtmlInterpolation:!0},n.parser==="angular"?{parser:"__ng_interpolation",trailingComma:"none"}:n.parser==="vue"?{parser:"__vue_expression"}:{parser:"__js_expression"}),{stripTrailingHardline:!0})])),s.parent.next&&an(s.parent.next)?" ":dt]);break;case"attribute":{if(!s.value)break;if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(n.originalText.slice(s.valueSpan.start.offset,s.valueSpan.end.offset)))return Q([s.rawName,"=",s.value]);if(n.parser==="lwc"&&/^{[\S\s]*}$/.test(n.originalText.slice(s.valueSpan.start.offset,s.valueSpan.end.offset)))return Q([s.rawName,"=",s.value]);let u=function(c,o,l){let h=C=>new RegExp(C.join("|")).test(c.fullName),a=()=>Mg(c.value),f=!1,m=(C,F)=>{let w=C.type==="NGRoot"?C.node.type==="NGMicrosyntax"&&C.node.body.length===1&&C.node.body[0].type==="NGMicrosyntaxExpression"?C.node.body[0].expression:C.node:C.type==="JsExpressionRoot"?C.node:C;!w||w.type!=="ObjectExpression"&&w.type!=="ArrayExpression"&&(F.parser!=="__vue_expression"||w.type!=="TemplateLiteral"&&w.type!=="StringLiteral")||(f=!0)},E=C=>ht(C),g=(C,F=!0)=>ht(Q([ts(Q([kt,C])),F?kt:""])),b=C=>f?E(C):g(C),A=(C,F)=>o(C,Object.assign({__onHtmlBindingRoot:m},F),{stripTrailingHardline:!0});if(c.fullName==="srcset"&&(c.parent.fullName==="img"||c.parent.fullName==="source"))return g(UB(a()));if(c.fullName==="class"&&!l.parentParser){let C=a();if(!C.includes("{{"))return qB(C)}if(c.fullName==="style"&&!l.parentParser){let C=a();if(!C.includes("{{"))return g(A(C,{parser:"css",__isHTMLStyleAttribute:!0}))}if(l.parser==="vue"){if(c.fullName==="v-for")return RB(a(),A);if(kB(c)||IB(c,l))return jB(a(),A);let C=["^:","^v-bind:"],F=["^v-"];if(h(["^@","^v-on:"])){let w=a();return b(A(w,{parser:_B(w)?"__js_expression":"__vue_event_binding"}))}if(h(C))return b(A(a(),{parser:"__vue_expression"}));if(h(F))return b(A(a(),{parser:"__js_expression"}))}if(l.parser==="angular"){let C=(v,_)=>A(v,Object.assign({},_,{trailingComma:"none"})),F=["^\\*"],w=["^\\[.+\\]$","^bind(on)?-","^ng-(if|show|hide|class|style)$"],B=["^i18n(-.+)?$"];if(h(["^\\(.+\\)$","^on-"]))return b(C(a(),{parser:"__ng_action"}));if(h(w))return b(C(a(),{parser:"__ng_binding"}));if(h(B)){let v=a().trim();return g(Sg(_g(c,v)),!v.includes("@@"))}if(h(F))return b(C(a(),{parser:"__ng_directive"}));let T=/{{([\S\s]+?)}}/g,P=a();if(T.test(P)){let v=[];return P.split(T).forEach((_,O)=>{if(O%2==0)v.push(Q(Nt(_,Ht)));else try{v.push(ht(Q(["{{",ts(Q([dt,C(_,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})])),dt,"}}"])))}catch{v.push("{{",Q(Nt(_,Ht)),"}}")}}),ht(Q(v))}}return null}(s,(c,o)=>r(c,Object.assign({__isInHtmlAttribute:!0},o),{stripTrailingHardline:!0}),n);if(u)return Q([s.rawName,'="',ht(AB(u,c=>typeof c=="string"?c.replace(/"/g,"""):c)),'"']);break}case"front-matter":return xB(s,r)}}},GB={htmlWhitespaceSensitivity:{since:"1.15.0",category:"HTML",type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},vueIndentScriptAndStyle:{since:"1.19.0",category:"HTML",type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},Nl={name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".html",".htm",".html.hl",".inc",".st",".xht",".xhtml"],languageId:146},JB={name:"Vue",type:"markup",color:"#2c3e50",extensions:[".vue"],tmScope:"text.html.vue",aceMode:"html",languageId:391},XB={languages:[Te(Nl,()=>({name:"Angular",since:"1.15.0",parsers:["angular"],vscodeLanguageIds:["html"],extensions:[".component.html"],filenames:[]})),Te(Nl,e=>({since:"1.15.0",parsers:["html"],vscodeLanguageIds:["html"],extensions:e.extensions.concat([".mjml"])})),Te(Nl,()=>({name:"Lightning Web Components",since:"1.17.0",parsers:["lwc"],vscodeLanguageIds:["html"],extensions:[],filenames:[]})),Te(JB,()=>({since:"1.10.0",parsers:["vue"],vscodeLanguageIds:["vue"]}))],printers:{html:HB},options:GB,parsers:{get html(){return{}.parsers.html},get vue(){return{}.parsers.vue},get angular(){return{}.parsers.angular},get lwc(){return{}.parsers.lwc}}},KB={isPragma:function(e){return/^\s*@(prettier|format)\s*$/.test(e)},hasPragma:function(e){return/^\s*#[^\S\n]*@(prettier|format)\s*?(\n|$)/.test(e)},insertPragma:function(e){return# @format
.concat(e)}},YB={locStart:function(e){return e.position.start.offset},locEnd:function(e){return e.position.end.offset}},{getLast:ir}=ce;function Ug(e,t){return e&&typeof e.type=="string"&&(!t||t.includes(e.type))}function qg(e){return e.value.trim()==="prettier-ignore"}function kl(e){return e&&e.leadingComments&&e.leadingComments.length!==0}function $g(e){return e&&e.middleComments&&e.middleComments.length!==0}function Vg(e){return e&&e.indicatorComment}function Wg(e){return e&&e.trailingComment}function Il(e){return e&&e.endComments&&e.endComments.length!==0}function zg(e){let t=[],r;for(let n of e.split(/( +)/g))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 QB={getLast:ir,getAncestorCount:function(e,t){let r=0,n=e.stack.length-1;for(let s=0;s<n;s++){let u=e.stack[s];Ug(u)&&t(u)&&r++}return r},isNode:Ug,isEmptyNode:function(e){return!(e.children&&e.children.length!==0||function(t){return kl(t)||$g(t)||Vg(t)||Wg(t)||Il(t)}(e))},mapNode:function e(t,r,n){return r("children"in t?Object.assign({},t,{children:t.children.map(s=>e(s,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 s=e.position.end.offset-1;s<n;s++){let u=t[s];if(u===
&&r++,r===1&&/\S/.test(u))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],s=e.stack[r-1];if(Array.isArray(s)&&typeof n=="number"&&n!==s.length-1)return!1}return!0},getBlockValueLineContents:function(e,{parentIndent:t,isLastDescendant:r,options:n}){let s=e.position.start.line===e.position.end.line?"":n.originalText.slice(e.position.start.offset,e.position.end.offset).match(/^[^\n]*?\n([\S\s]*)$/)[1],u=e.indent===null?(c=s.match(/^( *)\S/m))?c[1].length:1/0:e.indent-1+t;var c;let o=s.split(
).map(h=>h.slice(u));return n.proseWrap==="preserve"||e.type==="blockLiteral"?l(o.map(h=>h.length===0?[]:[h])):l(o.map(h=>h.length===0?[]:zg(h)).reduce((h,a,f)=>f===0||o[f-1].length===0||a.length===0||/^\s/.test(a[0])||/^\s|\s$/.test(ir(h))?h.concat([a]):h.concat([h.pop().concat(a)]),[]).map(h=>h.reduce((a,f)=>a.length!==0&&/\s$/.test(ir(a))?a.concat(a.pop()+" "+f):a.concat(f),[])).map(h=>n.proseWrap==="never"?[h.join(" ")]:h));function l(h){if(e.chomping==="keep")return ir(h).length===0?h.slice(0,-1):h;let a=0;for(let f=h.length-1;f>=0&&h[f].length===0;f--)a++;return a===0?h:a>=2&&!r?h.slice(0,-(a-1)):h.slice(0,-a)}},getFlowScalarLineContents:function(e,t,r){let n=t.split(
).map((s,u,c)=>u===0&&u===c.length-1?s:u!==0&&u!==c.length-1?s.trim():u===0?s.trimEnd():s.trimStart());return r.proseWrap==="preserve"?n.map(s=>s.length===0?[]:[s]):n.map(s=>s.length===0?[]:zg(s)).reduce((s,u,c)=>c===0||n[c-1].length===0||u.length===0||e==="quoteDouble"&&ir(ir(s)).endsWith("\\")?s.concat([u]):s.concat([s.pop().concat(u)]),[]).map(s=>r.proseWrap==="never"?[s.join(" ")]:s)},getLastDescendantNode:function e(t){return"children"in t&&t.children.length!==0?e(ir(t.children)):t},hasPrettierIgnore:function(e){let t=e.getValue();if(t.type==="documentBody"){let r=e.getParentNode();return Il(r.head)&&qg(ir(r.head.endComments))}return kl(t)&&qg(ir(t.leadingComments))},hasLeadingComments:kl,hasMiddleComments:$g,hasIndicatorComment:Vg,hasTrailingComment:Wg,hasEndComments:Il},uu=te.builders,{conditionalGroup:ZB,breakParent:e9,concat:ie,dedent:t9,dedentToRoot:Ll,fill:Hg,group:Ol,hardline:pe,ifBreak:Ml,join:We,line:ai,lineSuffix:r9,literalline:Rl,markAsRoot:n9,softline:Gg}=uu,{replaceEndOfLineWith:s9,isPreviousLineEmpty:i9}=ce,{insertPragma:a9,isPragma:u9}=KB,{locStart:jl}=YB,{getAncestorCount:o9,getBlockValueLineContents:c9,getFlowScalarLineContents:l9,getLast:p9,getLastDescendantNode:Jg,hasLeadingComments:ui,hasMiddleComments:ou,hasIndicatorComment:h9,hasTrailingComment:ar,hasEndComments:Tr,hasPrettierIgnore:d9,isLastDescendantNode:Xg,isNextLineEmpty:f9,isNode:Gt,isEmptyNode:cu,defineShortcut:oi,mapNode:m9}=QB;function D9(e){switch(e.type){case"document":oi(e,"head",()=>e.children[0]),oi(e,"body",()=>e.children[1]);break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":oi(e,"content",()=>e.children[0]);break;case"mappingItem":case"flowMappingItem":oi(e,"key",()=>e.children[0]),oi(e,"value",()=>e.children[1])}return e}function g9(e,t,r,n,s){switch(e.type){case"root":return ie([We(pe,r.map((l,h)=>{let a=e.children[h],f=e.children[h+1];return ie([s(l),Kg(a,f)?ie([pe,"...",ar(a)?ie([" ",r.call(s,"trailingComment")]):""]):!f||ar(f.head)?"":ie([pe,"---"])])},"children")),e.children.length===0||(c=Jg(e),Gt(c,["blockLiteral","blockFolded"])&&c.chomping==="keep")?"":pe]);case"document":{let l=t.children[r.getName()+1];return We(pe,[E9(e,l,t,n)==="head"?We(pe,[e.head.children.length===0&&e.head.endComments.length===0?"":r.call(s,"head"),ie(["---",ar(e.head)?ie([" ",r.call(s,"head","trailingComment")]):""])].filter(Boolean)):"",y9(e)?r.call(s,"body"):""].filter(Boolean))}case"documentHead":return We(pe,[].concat(r.map(s,"children"),r.map(s,"endComments")));case"documentBody":{let l=We(pe,r.map(s,"children")).parts,h=We(pe,r.map(s,"endComments")).parts,a=l.length===0||h.length===0?"":(f=>Gt(f,["blockFolded","blockLiteral"])?f.chomping==="keep"?"":ie([pe,pe]):pe)(Jg(e));return ie([].concat(l,a,h))}case"directive":return ie(["%",We(" ",[e.name].concat(e.parameters))]);case"comment":return ie(["#",e.value]);case"alias":return ie(["*",e.value]);case"tag":return n.originalText.slice(e.position.start.offset,e.position.end.offset);case"anchor":return ie(["&",e.value]);case"plain":return ci(e.type,n.originalText.slice(e.position.start.offset,e.position.end.offset),n);case"quoteDouble":case"quoteSingle":{let l="'",h='"',a=n.originalText.slice(e.position.start.offset+1,e.position.end.offset-1);if(e.type==="quoteSingle"&&a.includes("\\")||e.type==="quoteDouble"&&/\\[^"]/.test(a)){let m=e.type==="quoteDouble"?h:l;return ie([m,ci(e.type,a,n),m])}if(a.includes(h))return ie([l,ci(e.type,e.type==="quoteDouble"?a.replace(/\\"/g,h).replace(/'/g,l.repeat(2)):a,n),l]);if(a.includes(l))return ie([h,ci(e.type,e.type==="quoteSingle"?a.replace(/''/g,l):a,n),h]);let f=n.singleQuote?l:h;return ie([f,ci(e.type,a,n),f])}case"blockFolded":case"blockLiteral":{let l=o9(r,a=>Gt(a,["sequence","mapping"])),h=Xg(r);return ie([e.type==="blockFolded"?">":"|",e.indent===null?"":e.indent.toString(),e.chomping==="clip"?"":e.chomping==="keep"?"+":"-",h9(e)?ie([" ",r.call(s,"indicatorComment")]):"",(e.indent===null?t9:Ll)(ur(e.indent===null?n.tabWidth:e.indent-1+l,ie(c9(e,{parentIndent:l,isLastDescendant:h,options:n}).reduce((a,f,m,E)=>a.concat(m===0?pe:"",Hg(We(ai,f).parts),m!==E.length-1?f.length===0?pe:n9(Rl):e.chomping==="keep"&&h?f.length===0?Ll(pe):Ll(Rl):""),[]))))])}case"sequence":return We(pe,r.map(s,"children"));case"sequenceItem":return ie(["- ",ur(2,e.content?r.call(s,"content"):"")]);case"mappingKey":case"mappingValue":return e.content?r.call(s,"content"):"";case"mapping":return We(pe,r.map(s,"children"));case"mappingItem":case"flowMappingItem":{let l=cu(e.key),h=cu(e.value);if(l&&h)return ie([": "]);let a=r.call(s,"key"),f=r.call(s,"value");if(h)return e.type==="flowMappingItem"&&t.type==="flowMapping"?a:e.type!=="mappingItem"||!Yg(e.key.content,n)||ar(e.key.content)||t.tag&&t.tag.value==="tag:yaml.org,2002:set"?ie(["? ",ur(2,a)]):ie([a,Ul(e)?" ":"",":"]);if(l)return ie([": ",ur(2,f)]);let m=Symbol("mappingKey");return ui(e.value)||!_l(e.key.content)?ie(["? ",ur(2,a),pe,We("",r.map(s,"value","leadingComments").map(E=>ie([E,pe]))),": ",ur(2,f)]):!function(E){if(!E)return!0;switch(E.type){case"plain":case"quoteDouble":case"quoteSingle":return E.position.start.line===E.position.end.line;case"alias":return!0;default:return!1}}(e.key.content)||ui(e.key.content)||ou(e.key.content)||ar(e.key.content)||Tr(e.key)||ui(e.value.content)||ou(e.value.content)||Tr(e.value)||!Yg(e.value.content,n)?ZB([ie([Ol(ie([Ml("? "),Ol(ur(2,a),{id:m})])),Ml(ie([pe,": ",ur(2,f)]),o(ie([Ul(e)?" ":"",":",ui(e.value.content)||Tr(e.value)&&e.value.content&&!Gt(e.value.content,["mapping","sequence"])||t.type==="mapping"&&ar(e.key.content)&&_l(e.value.content)||Gt(e.value.content,["mapping","sequence"])&&e.value.content.tag===null&&e.value.content.anchor===null?pe:e.value.content?ai:"",f])),{groupId:m})])]):ie([a,Ul(e)?" ":"",": ",f])}case"flowMapping":case"flowSequence":{let l=e.type==="flowMapping"?"{":"[",h=e.type==="flowMapping"?"}":"]",a=e.type==="flowMapping"&&e.children.length!==0&&n.bracketSpacing?ai:Gg,f=e.children.length!==0&&(u=p9(e.children)).type==="flowMappingItem"&&cu(u.key)&&cu(u.value),m=n.trailingComma==="none"?"":Ml(",","");return ie([l,o(ie([a,ie(r.map((E,g)=>ie([s(E),g===e.children.length-1?"":ie([",",ai,e.children[g].position.start.line!==e.children[g+1].position.start.line?Zg(E,n.originalText):""])]),"children")),m,Tr(e)?ie([pe,We(pe,r.map(s,"endComments"))]):""])),f?"":a,h])}case"flowSequenceItem":return r.call(s,"content");default:throw new Error("Unexpected node type ".concat(e.type))}var u,c;function o(l){return uu.align(" ".repeat(n.tabWidth),l)}}function ur(e,t){return typeof e=="number"&&e>0?uu.align(" ".repeat(e),t):uu.align(e,t)}function _l(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}}function y9(e){return e.body.children.length!==0||Tr(e.body)}function Kg(e,t){return ar(e)||t&&(t.head.children.length!==0||Tr(t.head))}function E9(e,t,r,n){return r.children[0]===e&&/---(\s|$)/.test(n.originalText.slice(jl(e),jl(e)+4))||e.head.children.length!==0||Tr(e.head)||ar(e.head)?"head":!Kg(e,t)&&!!t&&"root"}function Yg(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}}function Ul(e){return e.key.content&&e.key.content.type==="alias"}function Qg(e){return Tr(e)&&!Gt(e,["documentHead","documentBody","flowMapping","flowSequence"])}var ql=new WeakMap;function Zg(e,t){let r=e.getValue(),n=e.stack[0],s;return ql.has(n)?s=ql.get(n):(s=new Set,ql.set(n,s)),s.has(r.position.end.line)||(s.add(r.position.end.line),!f9(r,t)||Qg(e.getParentNode()))?"":Gg}function ci(e,t,r){let n=l9(e,t,r);return We(pe,n.map(s=>Hg(We(ai,s).parts)))}var C9={preprocess:function(e){return m9(e,D9)},print:function(e,t,r){let n=e.getValue(),s=e.getParentNode(),u=n.tag?e.call(r,"tag"):"",c=n.anchor?e.call(r,"anchor"):"",o=Gt(n,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!Xg(e)?Zg(e,t.originalText):"";return ie([n.type!=="mappingValue"&&ui(n)?ie([We(pe,e.map(r,"leadingComments")),pe]):"",u,u&&c?" ":"",c,u||c?Gt(n,["sequence","mapping"])&&!ou(n)?pe:" ":"",ou(n)?ie([n.middleComments.length===1?"":pe,We(pe,e.map(r,"middleComments")),pe]):"",d9(e)?ie(s9(t.originalText.slice(n.position.start.offset,n.position.end.offset).trimEnd(),Rl)):Ol(g9(n,s,e,t,r)),ar(n)&&!Gt(n,["document","documentHead"])?r9(ie([n.type!=="mappingValue"||n.content?" ":"",s.type==="mappingKey"&&e.getParentNode(2).type==="mapping"&&_l(n)?"":e9,e.call(r,"trailingComment")])):"",Qg(n)?ur(n.type==="sequenceItem"?2:0,ie([pe,We(pe,e.map(l=>ie([i9(t.originalText,l.getValue(),jl)?pe:"",r(l)]),"endComments"))])):"",o])},massageAstNode:function(e,t){if(Gt(t))switch(delete t.position,t.type){case"comment":if(u9(t.value))return null;break;case"quoteDouble":case"quoteSingle":t.type="quote"}},insertPragma:a9},b9={bracketSpacing:sr.bracketSpacing,singleQuote:sr.singleQuote,proseWrap:sr.proseWrap},A9=[w6,FS,zS,QS,jT,XB,{languages:[Te({name:"YAML",type:"data",color:"#cb171e",tmScope:"source.yaml",aliases:["yml"],extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],filenames:[".clang-format",".clang-tidy",".gemrc","glide.lock","yarn.lock"],aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",languageId:407},e=>({since:"1.14.0",parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","home-assistant"],filenames:e.filenames.filter(t=>t!=="yarn.lock")}))],printers:{yaml:C9},options:b9,parsers:{get yaml(){return{}.parsers.yaml}}}],{version:x9}=ih,{getSupportInfo:F9}=$u,v9=A9.map(e=>Bi(e,["parsers"]));function cn(e,t=1){return(...r)=>{let n=r[t]||{},s=n.plugins||[];return r[t]=Object.assign({},n,{plugins:[...v9,...Array.isArray(s)?s:Object.values(s)]}),e(...r)}}var $l=cn(jn.formatWithCursor),w9={formatWithCursor:$l,format:(e,t)=>$l(e,t).formatted,check(e,t){let{formatted:r}=$l(e,t);return r===e},doc:te,getSupportInfo:cn(F9,0),version:x9,util:DF,__debug:{parse:cn(jn.parse),formatAST:cn(jn.formatAST),formatDoc:cn(jn.formatDoc),printToDoc:cn(jn.printToDoc),printDocToString:cn(jn.printDocToString)}},ey=w9;var Vl=function(e,t){let r=new SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return r.loc=t,r},S9=e=>typeof e=="string"?e.replace((({onlyFirst:t=!1}={})=>{let r=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(r,t?void 0:"g")})(),""):e,ty=e=>!Number.isNaN(e)&&e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141),ry=ty,T9=ty;ry.default=T9;var ny=e=>{if(typeof(e=e.replace(/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g," "))!="string"||e.length===0)return 0;e=S9(e);let t=0;for(let r=0;r<e.length;r++){let n=e.codePointAt(r);n<=31||n>=127&&n<=159||n>=768&&n<=879||(n>65535&&r++,t+=ry(n)?2:1)}return t},sy=ny,B9=ny;sy.default=B9;var iy=e=>{if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")};function rs(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Wl=typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{};function ay(){throw new Error("setTimeout has not been defined")}function uy(){throw new Error("clearTimeout has not been defined")}var Br=ay,Pr=uy;function oy(e){if(Br===setTimeout)return setTimeout(e,0);if((Br===ay||!Br)&&setTimeout)return Br=setTimeout,setTimeout(e,0);try{return Br(e,0)}catch{try{return Br.call(null,e,0)}catch{return Br.call(this,e,0)}}}typeof Wl.setTimeout=="function"&&(Br=setTimeout),typeof Wl.clearTimeout=="function"&&(Pr=clearTimeout);var ln,or=[],ns=!1,lu=-1;function P9(){ns&&ln&&(ns=!1,ln.length?or=ln.concat(or):lu=-1,or.length&&cy())}function cy(){if(!ns){var e=oy(P9);ns=!0;for(var t=or.length;t;){for(ln=or,or=[];++lu<t;)ln&&ln[lu].run();lu=-1,t=or.length}ln=null,ns=!1,function(r){if(Pr===clearTimeout)return clearTimeout(r);if((Pr===uy||!Pr)&&clearTimeout)return Pr=clearTimeout,clearTimeout(r);try{Pr(r)}catch{try{return Pr.call(null,r)}catch{return Pr.call(this,r)}}}(e)}}function ly(e,t){this.fun=e,this.array=t}ly.prototype.run=function(){this.fun.apply(null,this.array)};function pn(){}var N9=pn,k9=pn,I9=pn,L9=pn,O9=pn,M9=pn,R9=pn,ss=Wl.performance||{},j9=ss.now||ss.mozNow||ss.msNow||ss.oNow||ss.webkitNow||function(){return new Date().getTime()},_9=new Date,pu={nextTick:function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];or.push(new ly(e,t)),or.length!==1||ns||oy(cy)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:N9,addListener:k9,once:I9,off:L9,removeListener:O9,removeAllListeners:M9,emit:R9,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*j9.call(ss),r=Math.floor(t),n=Math.floor(t%1*1e9);return e&&(r-=e[0],(n-=e[1])<0&&(r--,n+=1e9)),[r,n]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-_9)/1e3}},li=typeof pu=="object"&&pu.env&&pu.env.NODE_DEBUG&&/\bsemver\b/i.test(pu.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{},py={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16};function Nr(e,t,r){return e(r={path:t,exports:{},require:function(n,s){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(s==null&&r.path)}},r.exports),r.exports}function U9(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var q9=Nr(function(e,t){let{MAX_SAFE_COMPONENT_LENGTH:r}=py,n=(t=e.exports={}).re=[],s=t.src=[],u=t.t={},c=0,o=(l,h,a)=>{let f=c++;li(f,h),u[l]=f,s[f]=h,n[f]=new RegExp(h,a?"g":void 0)};o("NUMERICIDENTIFIER","0|[1-9]\\d*"),o("NUMERICIDENTIFIERLOOSE","[0-9]+"),o("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),o("MAINVERSION","(".concat(s[u.NUMERICIDENTIFIER],")\\.")+"(".concat(s[u.NUMERICIDENTIFIER],")\\.")+"(".concat(s[u.NUMERICIDENTIFIER],")")),o("MAINVERSIONLOOSE","(".concat(s[u.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(s[u.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(s[u.NUMERICIDENTIFIERLOOSE],")")),o("PRERELEASEIDENTIFIER","(?:".concat(s[u.NUMERICIDENTIFIER],"|").concat(s[u.NONNUMERICIDENTIFIER],")")),o("PRERELEASEIDENTIFIERLOOSE","(?:".concat(s[u.NUMERICIDENTIFIERLOOSE],"|").concat(s[u.NONNUMERICIDENTIFIER],")")),o("PRERELEASE","(?:-(".concat(s[u.PRERELEASEIDENTIFIER],"(?:\\.").concat(s[u.PRERELEASEIDENTIFIER],")*))")),o("PRERELEASELOOSE","(?:-?(".concat(s[u.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(s[u.PRERELEASEIDENTIFIERLOOSE],")*))")),o("BUILDIDENTIFIER","[0-9A-Za-z-]+"),o("BUILD","(?:\\+(".concat(s[u.BUILDIDENTIFIER],"(?:\\.").concat(s[u.BUILDIDENTIFIER],")*))")),o("FULLPLAIN","v?".concat(s[u.MAINVERSION]).concat(s[u.PRERELEASE],"?").concat(s[u.BUILD],"?")),o("FULL","^".concat(s[u.FULLPLAIN],"$")),o("LOOSEPLAIN","[v=\\s]*".concat(s[u.MAINVERSIONLOOSE]).concat(s[u.PRERELEASELOOSE],"?").concat(s[u.BUILD],"?")),o("LOOSE","^".concat(s[u.LOOSEPLAIN],"$")),o("GTLT","((?:<|>)?=?)"),o("XRANGEIDENTIFIERLOOSE","".concat(s[u.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),o("XRANGEIDENTIFIER","".concat(s[u.NUMERICIDENTIFIER],"|x|X|\\*")),o("XRANGEPLAIN","[v=\\s]*(".concat(s[u.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(s[u.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(s[u.XRANGEIDENTIFIER],")")+"(?:".concat(s[u.PRERELEASE],")?").concat(s[u.BUILD],"?")+")?)?"),o("XRANGEPLAINLOOSE","[v=\\s]*(".concat(s[u.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(s[u.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(s[u.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(s[u.PRERELEASELOOSE],")?").concat(s[u.BUILD],"?")+")?)?"),o("XRANGE","^".concat(s[u.GTLT],"\\s*").concat(s[u.XRANGEPLAIN],"$")),o("XRANGELOOSE","^".concat(s[u.GTLT],"\\s*").concat(s[u.XRANGEPLAINLOOSE],"$")),o("COERCE","".concat("(^|[^\\d])(\\d{1,").concat(r,"})")+"(?:\\.(\\d{1,".concat(r,"}))?")+"(?:\\.(\\d{1,".concat(r,"}))?")+"(?:$|[^\\d])"),o("COERCERTL",s[u.COERCE],!0),o("LONETILDE","(?:~>?)"),o("TILDETRIM","(\\s*)".concat(s[u.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",o("TILDE","^".concat(s[u.LONETILDE]).concat(s[u.XRANGEPLAIN],"$")),o("TILDELOOSE","^".concat(s[u.LONETILDE]).concat(s[u.XRANGEPLAINLOOSE],"$")),o("LONECARET","(?:\\^)"),o("CARETTRIM","(\\s*)".concat(s[u.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",o("CARET","^".concat(s[u.LONECARET]).concat(s[u.XRANGEPLAIN],"$")),o("CARETLOOSE","^".concat(s[u.LONECARET]).concat(s[u.XRANGEPLAINLOOSE],"$")),o("COMPARATORLOOSE","^".concat(s[u.GTLT],"\\s*(").concat(s[u.LOOSEPLAIN],")$|^$")),o("COMPARATOR","^".concat(s[u.GTLT],"\\s*(").concat(s[u.FULLPLAIN],")$|^$")),o("COMPARATORTRIM","(\\s*)".concat(s[u.GTLT],"\\s*(").concat(s[u.LOOSEPLAIN],"|").concat(s[u.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",o("HYPHENRANGE","^\\s*(".concat(s[u.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(s[u.XRANGEPLAIN],")")+"\\s*$"),o("HYPHENRANGELOOSE","^\\s*(".concat(s[u.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(s[u.XRANGEPLAINLOOSE],")")+"\\s*$"),o("STAR","(<|>)?=?\\s*\\*"),o("GTE0","^\\s*>=\\s*0.0.0\\s*$"),o("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")}),hy=/^[0-9]+$/,dy=(e,t)=>{let r=hy.test(e),n=hy.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},$9={compareIdentifiers:dy,rcompareIdentifiers:(e,t)=>dy(t,e)},{MAX_LENGTH:fy,MAX_SAFE_INTEGER:hu}=py,{re:my,t:Dy}=q9,{compareIdentifiers:pi}=$9,At=class{constructor(t,r){if(r&&typeof r=="object"||(r={loose:!!r,includePrerelease:!1}),t instanceof At){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError("Invalid Version: ".concat(t));if(t.length>fy)throw new TypeError("version is longer than ".concat(fy," characters"));li("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=t.trim().match(r.loose?my[Dy.LOOSE]:my[Dy.FULL]);if(!n)throw new TypeError("Invalid Version: ".concat(t));if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>hu||this.major<0)throw new TypeError("Invalid major version");if(this.minor>hu||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>hu||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let u=+s;if(u>=0&&u<hu)return u}return s}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version="".concat(this.major,".").concat(this.minor,".").concat(this.patch),this.prerelease.length&&(this.version+="-".concat(this.prerelease.join("."))),this.version}toString(){return this.version}compare(t){if(li("SemVer.compare",this.version,this.options,t),!(t instanceof At)){if(typeof t=="string"&&t===this.version)return 0;t=new At(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof At||(t=new At(t,this.options)),pi(this.major,t.major)||pi(this.minor,t.minor)||pi(this.patch,t.patch)}comparePre(t){if(t instanceof At||(t=new At(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],s=t.prerelease[r];if(li("prerelease compare",r,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n!==s)return pi(n,s)}while(++r)}compareBuild(t){t instanceof At||(t=new At(t,this.options));let r=0;do{let n=this.build[r],s=t.build[r];if(li("prerelease compare",r,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n!==s)return pi(n,s)}while(++r)}inc(t,r){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r),this.inc("pre",r);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r),this.inc("pre",r);break;case"major":this.minor===0&&this.patch===0&&this.prerelease.length!==0||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":this.patch===0&&this.prerelease.length!==0||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{let n=this.prerelease.length;for(;--n>=0;)typeof this.prerelease[n]=="number"&&(this.prerelease[n]++,n=-2);n===-1&&this.prerelease.push(0)}r&&(this.prerelease[0]===r?isNaN(this.prerelease[1])&&(this.prerelease=[r,0]):this.prerelease=[r,0]);break;default:throw new Error("invalid increment argument: ".concat(t))}return this.format(),this.raw=this.version,this}},gy=At,zl=(e,t,r)=>new gy(e,r).compare(new gy(t,r)),V9=(e,t,r)=>zl(e,t,r)<0,W9=(e,t,r)=>zl(e,t,r)>=0,z9="2.2.1",H9=Nr(function(e,t){function r(){for(var A=[],C=0;C<arguments.length;C++)A[C]=arguments[C]}function n(){return typeof WeakMap!="undefined"?new WeakMap:{add:r,delete:r,get:r,set:r,has:function(A){return!1}}}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.prototype.hasOwnProperty,u=function(A,C){return s.call(A,C)};function c(A,C){for(var F in C)u(C,F)&&(A[F]=C[F]);return A}var o=/^[ \t]*(?:\r\n|\r|\n)/,l=/(?:\r\n|\r|\n)[ \t]*$/,h=/^(?:[\r\n]|$)/,a=/(?:\r\n|\r|\n)([ \t]*)(?:[^ \t\r\n]|$)/,f=/^[ \t]*[\r\n][ \t\r\n]*$/;function m(A,C,F){var w=0,B=A[0].match(a);B&&(w=B[1].length);var T=new RegExp("(\\r\\n|\\r|\\n).{0,"+w+"}","g");C&&(A=A.slice(1));var P=F.newline,v=F.trimLeadingNewline,_=F.trimTrailingNewline,O=typeof P=="string",M=A.length;return A.map(function(q,j){return q=q.replace(T,"$1"),j===0&&v&&(q=q.replace(o,"")),j===M-1&&_&&(q=q.replace(l,"")),O&&(q=q.replace(/\r\n|\n|\r/g,function(W){return P})),q})}function E(A,C){for(var F="",w=0,B=A.length;w<B;w++)F+=A[w],w<B-1&&(F+=C[w]);return F}function g(A){return u(A,"raw")&&u(A,"length")}var b=function A(C){var F=n(),w=n();return c(function B(T){for(var P=[],v=1;v<arguments.length;v++)P[v-1]=arguments[v];if(g(T)){var _=T,O=(P[0]===B||P[0]===b)&&f.test(_[0])&&h.test(_[1]),M=O?w:F,q=M.get(_);if(q||(q=m(_,O,C),M.set(_,q)),P.length===0)return q[0];var j=E(q,O?P.slice(1):P);return j}return A(c(c({},C),T||{}))},{string:function(B){return m([B],!1,C)[0]}})}({trimLeadingNewline:!0,trimTrailingNewline:!0});t.outdent=b,t.default=b;try{e.exports=b,Object.defineProperty(b,"__esModule",{value:!0}),b.default=b,b.outdent=b}catch{}});function yy(){let e=rs([
Require either '@prettier' or '@format' to be present in the file's first docblock comment
in order for it to be formatted.
]);return yy=function(){return e},e}function Ey(){let e=rs([
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.
]);return Ey=function(){return e},e}function Cy(){let e=rs([
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.
]);return Cy=function(){return e},e}function by(){let e=rs([
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.
]);return by=function(){return e},e}function Ay(){let e=rs([
Maintain existing
(mixed values within one file are normalised by looking at what's used after the first line)
]);return Ay=function(){return e},e}function xy(){let e=rs([
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.
]);return xy=function(){return e},e}var{outdent:is}=H9,G9={cursorOffset:{since:"1.4.0",category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:is(xy()),cliCategory:"Editor"},endOfLine:{since:"1.15.0",category:"Global",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:is(Ay())}]},filepath:{since:"1.4.0",category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{since:"1.8.0",category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{since:"0.0.10",category:"Global",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:null,description:"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:"Global",description:"Add a plugin. Multiple plugins can be passed as separate --plugins.",exception:e=>typeof e=="string"||typeof e=="object",cliName:"plugin",cliCategory:"Config"},pluginSearchDirs:{since:"1.13.0",type:"path",array:!0,default:[{value:[]}],category:"Global",description:is(by()),exception:e=>typeof e=="string"||typeof e=="object",cliName:"plugin-search-dir",cliCategory:"Config"},printWidth:{since:"0.0.0",category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{since:"1.4.0",category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:is(Cy()),cliCategory:"Editor"},rangeStart:{since:"1.4.0",category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:is(Ey()),cliCategory:"Editor"},requirePragma:{since:"1.7.0",category:"Special",type:"boolean",default:!1,description:is(yy()),cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{since:"1.0.0",category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{since:"2.1.0",category:"Global",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."}]}},Hl={compare:zl,lt:V9,gte:W9},J9=z9,X9=G9,K9={getSupportInfo:function({plugins:e=[],showUnreleased:t=!1,showDeprecated:r=!1,showInternal:n=!1}={}){let s=J9.split("-",1)[0],u=e.reduce((f,m)=>f.concat(m.languages||[]),[]).filter(h),c=(o=Object.assign({},...e.map(({options:f})=>f),X9),l="name",Object.entries(o).map(([f,m])=>Object.assign({[l]:f},m))).filter(f=>h(f)&&a(f)).sort((f,m)=>f.name===m.name?0:f.name<m.name?-1:1).map(function(f){return n?f:function(m,E){if(m==null)return{};var g,b,A={},C=Object.keys(m);for(b=0;b<C.length;b++)g=C[b],E.indexOf(g)>=0||(A[g]=m[g]);return A}(f,["cliName","cliCategory","cliDescription"])}).map(f=>{f=Object.assign({},f),Array.isArray(f.default)&&(f.default=f.default.length===1?f.default[0].value:f.default.filter(h).sort((E,g)=>Hl.compare(g.since,E.since))[0].value),Array.isArray(f.choices)&&(f.choices=f.choices.filter(E=>h(E)&&a(E)),f.name==="parser"&&function(E,g,b){let A=new Set(E.choices.map(C=>C.value));for(let C of g)if(C.parsers){for(let F of C.parsers)if(!A.has(F)){A.add(F);let w=b.find(T=>T.parsers&&T.parsers[F]),B=C.name;w&&w.name&&(B+=" (plugin: ".concat(w.name,")")),E.choices.push({value:F,description:B})}}}(f,u,e));let m=e.filter(E=>E.defaultOptions&&E.defaultOptions[f.name]!==void 0).reduce((E,g)=>(E[g.name]=g.defaultOptions[f.name],E),{});return Object.assign({},f,{pluginDefaults:m})});var o,l;return{languages:u,options:c};function h(f){return t||!("since"in f)||f.since&&Hl.gte(s,f.since)}function a(f){return r||!("deprecated"in f)||f.deprecated&&Hl.lt(s,f.deprecated)}}},{getSupportInfo:Y9}=K9,Q9=/[^\x20-\x7F]/;function hi(e){return(t,r,n)=>{let s=n&&n.backwards;if(r===!1)return!1;let{length:u}=t,c=r;for(;c>=0&&c<u;){let o=t.charAt(c);if(e instanceof RegExp){if(!e.test(o))return c}else if(!e.includes(o))return c;s?c--:c++}return(c===-1||c===u)&&c}}var Z9=hi(/\s/),hn=hi(" "),Fy=hi(",; "),vy=hi(/[^\n\r]/);function Gl(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 Jl(e,t){return t!==!1&&(e.charAt(t)==="/"&&e.charAt(t+1)==="/"?vy(e,t):t)}function as(e,t,r){let n=r&&r.backwards;if(t===!1)return!1;let s=e.charAt(t);if(n){if(e.charAt(t-1)==="\r"&&s===
)return t-2;if(s===
||s==="\r"||s==="\u2028"||s==="\u2029")return t-1}else{if(s==="\r"&&e.charAt(t+1)===
)return t+2;if(s===
||s==="\r"||s==="\u2028"||s==="\u2029")return t+1}return t}function wy(e,t,r){let n=hn(e,(r=r||{}).backwards?t-1:t,r);return n!==as(e,n,r)}function Sy(e,t){let r=null,n=t;for(;n!==r;)r=n,n=Fy(e,n),n=Gl(e,n),n=hn(e,n);return n=Jl(e,n),n=as(e,n),n!==!1&&wy(e,n)}function Ty(e,t){let r=null,n=t;for(;n!==r;)r=n,n=hn(e,n),n=Gl(e,n),n=Jl(e,n),n=as(e,n);return n}function By(e,t,r){return Ty(e,r(t))}function Py(e,t,r){let n=0;for(let s=r=r||0;s<e.length;++s)e[s]===" "?n=n+t-n%t:n++;return n}function Ny(e,t){let r=e.slice(1,-1),n={quote:'"',regex:/"/g},s={quote:"'",regex:/'/g},u=t==="'"?s:n,c=u===s?n:s,o=u.quote;return(r.includes(u.quote)||r.includes(c.quote))&&(o=(r.match(u.regex)||[]).length>(r.match(c.regex)||[]).length?c.quote:u.quote),o}function ky(e,t,r){let n=t==='"'?"'":'"',s=e.replace(/\\([\S\s])|(["'])/g,(u,c,o)=>c===n?c:o===t?"\\"+o:o||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(c)?c:"\\"+c));return t+s+t}function Xl(e,t){(e.comments||(e.comments=[])).push(t),t.printed=!1,e.type==="JSXText"&&(t.printed=!0)}var di={inferParserByLanguage:function(e,t){let{languages:r}=Y9({plugins:t.plugins}),n=r.find(({name:s})=>s.toLowerCase()===e)||r.find(({aliases:s})=>Array.isArray(s)&&s.includes(e))||r.find(({extensions:s})=>Array.isArray(s)&&s.includes(".".concat(e)));return n&&n.parsers[0]},replaceEndOfLineWith:function(e,t){let r=[];for(let n of e.split(
))r.length!==0&&r.push(t),r.push(n);return r},getStringWidth:function(e){return e?Q9.test(e)?sy(e):e.length:0},getMaxContinuousCount:function(e,t){let r=e.match(new RegExp("(".concat(iy(t),")+"),"g"));return r===null?0:r.reduce((n,s)=>Math.max(n,s.length/t.length),0)},getMinNotPresentContinuousCount:function(e,t){let r=e.match(new RegExp("(".concat(iy(t),")+"),"g"));if(r===null)return 0;let n=new Map,s=0;for(let u of r){let c=u.length/t.length;n.set(c,!0),c>s&&(s=c)}for(let u=1;u<s;u++)if(!n.get(u))return u;return s+1},getPenultimate:e=>e[e.length-2],getLast:e=>e[e.length-1],getNextNonSpaceNonCommentCharacterIndexWithStartIndex:Ty,getNextNonSpaceNonCommentCharacterIndex:By,getNextNonSpaceNonCommentCharacter:function(e,t,r){return e.charAt(By(e,t,r))},skip:hi,skipWhitespace:Z9,skipSpaces:hn,skipToLineEnd:Fy,skipEverythingButNewLine:vy,skipInlineComment:Gl,skipTrailingComment:Jl,skipNewline:as,isNextLineEmptyAfterIndex:Sy,isNextLineEmpty:function(e,t,r){return Sy(e,r(t))},isPreviousLineEmpty:function(e,t,r){let n=r(t)-1;return n=hn(e,n,{backwards:!0}),n=as(e,n,{backwards:!0}),n=hn(e,n,{backwards:!0}),n!==as(e,n,{backwards:!0})},hasNewline:wy,hasNewlineInRange:function(e,t,r){for(let n=t;n<r;++n)if(e.charAt(n)===
)return!0;return!1},hasSpaces:function(e,t,r){return hn(e,(r=r||{}).backwards?t-1:t,r)!==t},getAlignmentSize:Py,getIndentSize:function(e,t){let r=e.lastIndexOf(
);return r===-1?0:Py(e.slice(r+1).match(/^[\t ]*/)[0],t)},getPreferredQuote:Ny,printString:function(e,t,r){let n=e.slice(1,-1),s=!n.includes('"')&&!n.includes("'"),u=t.parser==="json"?'"':t.__isInHtmlAttribute?"'":Ny(e,t.singleQuote?"'":'"');return r?s?u+n+u:e:ky(n,u,!(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|$)/,"")},isNodeIgnoreComment:function(e){return e.value.trim()==="prettier-ignore"},makeString:ky,addLeadingComment:function(e,t){t.leading=!0,t.trailing=!1,Xl(e,t)},addDanglingComment:function(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),Xl(e,t)},addTrailingComment:function(e,t){t.leading=!1,t.trailing=!0,Xl(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)}},eP=Object.freeze({__proto__:null,default:{EOL:
,platform:()=>"browser",cpus:()=>[{model:"Prettier"}]}}),Iy=e=>{if(typeof e!="string")throw new TypeError("Expected a string");let t=e.match(/(?:\r?\n)/g)||[];if(t.length===0)return;let r=t.filter(n=>n===\r
).length;return r>t.length-r?\r
:
},Ly=Iy;Ly.graceful=e=>typeof e=="string"&&Iy(e)||
;var tP=U9(eP),rP=Nr(function(e,t){function r(){let b=tP;return r=function(){return b},b}function n(){let b=(A=Ly)&&A.__esModule?A:{default:A};var A;return n=function(){return b},b}Object.defineProperty(t,"__esModule",{value:!0}),t.extract=function(b){let A=b.match(c);return A?A[0].trimLeft():""},t.strip=function(b){let A=b.match(c);return A&&A[0]?b.substring(A[0].length):b},t.parse=function(b){return E(b).pragmas},t.parseWithComments=E,t.print=function({comments:b="",pragmas:A={}}){let C=(0,n().default)(b)||r().EOL,F=" *",w=Object.keys(A),B=w.map(P=>g(P,A[P])).reduce((P,v)=>P.concat(v),[]).map(P=>" * "+P+C).join("");if(!b){if(w.length===0)return"";if(w.length===1&&!Array.isArray(A[w[0]])){let P=A[w[0]];return"".concat("/**"," ").concat(g(w[0],P)[0]).concat(" */")}}let T=b.split(C).map(P=>"".concat(F," ").concat(P)).join(C)+C;return"/**"+C+(b?T:"")+(b&&w.length?F+C:"")+B+" */"};let s=/\*\/$/,u=/^\/\*\*/,c=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,o=/(^|\s+)\/\/([^\r\n]*)/g,l=/^(\r?\n)+/,h=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,a=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,f=/(\r?\n|^) *\* ?/g,m=[];function E(b){let A=(0,n().default)(b)||r().EOL;b=b.replace(u,"").replace(s,"").replace(f,"$1");let C="";for(;C!==b;)C=b,b=b.replace(h,"".concat(A,"$1 $2").concat(A));b=b.replace(l,"").trimRight();let F=Object.create(null),w=b.replace(a,"").replace(l,"").trimRight(),B;for(;B=a.exec(b);){let T=B[2].replace(o,"");typeof F[B[1]]=="string"||Array.isArray(F[B[1]])?F[B[1]]=m.concat(F[B[1]],T):F[B[1]]=T}return{comments:w,pragmas:F}}function g(b,A){return m.concat(A).map(C=>"@".concat(b," ").concat(C).trim())}}),nP={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,
)}},{parseWithComments:sP,strip:iP,extract:aP,print:uP}=rP,{getShebang:oP}=di,{normalizeEndOfLine:cP}=nP;function Oy(e){let t=oP(e);t&&(e=e.slice(t.length+1));let r=aP(e),{pragmas:n,comments:s}=sP(r);return{shebang:t,text:e,pragmas:n,comments:s}}var lP={hasPragma:function(e){let t=Object.keys(Oy(e).pragmas);return t.includes("prettier")||t.includes("format")},insertPragma:function(e){let{shebang:t,text:r,pragmas:n,comments:s}=Oy(e),u=iP(r),c=uP({pragmas:Object.assign({format:""},n),comments:s.trimStart()});return(t?"".concat(t,
):"")+cP(c)+(u.startsWith(
)?
:
)+u}};function fi(e,t){let{ignoreDecorators:r}=t||{};if(!r){let n=e.declaration&&e.declaration.decorators||e.decorators;if(n&&n.length>0)return fi(n[0])}return e.range?e.range[0]:e.start}function mi(e){let t=e.range?e.range[1]:e.end;return e.typeAnnotation?Math.max(t,mi(e.typeAnnotation)):t}function My(e,t){return fi(e)===fi(t)}var du={locStart:fi,locEnd:mi,composeLoc:function(e,t=e){let r=fi(e);return[r,typeof t=="number"?r+t:mi(t)]},hasSameLocStart:My,hasSameLoc:function(e,t){return My(e,t)&&function(r,n){return mi(r)===mi(n)}(e,t)}},pP=Nr(function(e){(function(){function t(n){if(n==null)return!1;switch(n.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 r(n){switch(n.type){case"IfStatement":return n.alternate!=null?n.alternate:n.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return n.body}return null}e.exports={isExpression:function(n){if(n==null)return!1;switch(n.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:t,isIterationStatement:function(n){if(n==null)return!1;switch(n.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1},isSourceElement:function(n){return t(n)||n!=null&&n.type==="FunctionDeclaration"},isProblematicIfStatement:function(n){var s;if(n.type!=="IfStatement"||n.alternate==null)return!1;s=n.consequent;do{if(s.type==="IfStatement"&&s.alternate==null)return!0;s=r(s)}while(s);return!1},trailingStatement:r}})()}),Ry=Nr(function(e){(function(){var t,r,n,s,u,c;function o(l){return l<=65535?String.fromCharCode(l):String.fromCharCode(Math.floor((l-65536)/1024)+55296)+String.fromCharCode((l-65536)%1024+56320)}for(r={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},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\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},n=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],s=new Array(128),c=0;c<128;++c)s[c]=c>=97&&c<=122||c>=65&&c<=90||c===36||c===95;for(u=new Array(128),c=0;c<128;++c)u[c]=c>=97&&c<=122||c>=65&&c<=90||c>=48&&c<=57||c===36||c===95;e.exports={isDecimalDigit:function(l){return 48<=l&&l<=57},isHexDigit:function(l){return 48<=l&&l<=57||97<=l&&l<=102||65<=l&&l<=70},isOctalDigit:function(l){return l>=48&&l<=55},isWhiteSpace:function(l){return l===32||l===9||l===11||l===12||l===160||l>=5760&&n.indexOf(l)>=0},isLineTerminator:function(l){return l===10||l===13||l===8232||l===8233},isIdentifierStartES5:function(l){return l<128?s[l]:r.NonAsciiIdentifierStart.test(o(l))},isIdentifierPartES5:function(l){return l<128?u[l]:r.NonAsciiIdentifierPart.test(o(l))},isIdentifierStartES6:function(l){return l<128?s[l]:t.NonAsciiIdentifierStart.test(o(l))},isIdentifierPartES6:function(l){return l<128?u[l]:t.NonAsciiIdentifierPart.test(o(l))}}})()}),hP=Nr(function(e){(function(){var t=Ry;function r(l,h){return!(!h&&l==="yield")&&n(l,h)}function n(l,h){if(h&&function(a){switch(a){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}(l))return!0;switch(l.length){case 2:return l==="if"||l==="in"||l==="do";case 3:return l==="var"||l==="for"||l==="new"||l==="try";case 4:return l==="this"||l==="else"||l==="case"||l==="void"||l==="with"||l==="enum";case 5:return l==="while"||l==="break"||l==="catch"||l==="throw"||l==="const"||l==="yield"||l==="class"||l==="super";case 6:return l==="return"||l==="typeof"||l==="delete"||l==="switch"||l==="export"||l==="import";case 7:return l==="default"||l==="finally"||l==="extends";case 8:return l==="function"||l==="continue"||l==="debugger";case 10:return l==="instanceof";default:return!1}}function s(l,h){return l==="null"||l==="true"||l==="false"||r(l,h)}function u(l,h){return l==="null"||l==="true"||l==="false"||n(l,h)}function c(l){var h,a,f;if(l.length===0||(f=l.charCodeAt(0),!t.isIdentifierStartES5(f)))return!1;for(h=1,a=l.length;h<a;++h)if(f=l.charCodeAt(h),!t.isIdentifierPartES5(f))return!1;return!0}function o(l){var h,a,f,m,E;if(l.length===0)return!1;for(E=t.isIdentifierStartES6,h=0,a=l.length;h<a;++h){if(55296<=(f=l.charCodeAt(h))&&f<=56319){if(++h>=a||!(56320<=(m=l.charCodeAt(h))&&m<=57343))return!1;f=1024*(f-55296)+(m-56320)+65536}if(!E(f))return!1;E=t.isIdentifierPartES6}return!0}e.exports={isKeywordES5:r,isKeywordES6:n,isReservedWordES5:s,isReservedWordES6:u,isRestrictedWord:function(l){return l==="eval"||l==="arguments"},isIdentifierNameES5:c,isIdentifierNameES6:o,isIdentifierES5:function(l,h){return c(l)&&!s(l,h)},isIdentifierES6:function(l,h){return o(l)&&!u(l,h)}}})()}),dP=Nr(function(e,t){t.ast=pP,t.code=Ry,t.keyword=hP}).keyword.isIdentifierNameES5,{getLast:fu,hasNewline:Kl,hasNewlineInRange:fP,skipWhitespace:mP}=di,{locStart:Yl,locEnd:mu,hasSameLocStart:jy}=du,DP=new RegExp("^".concat("(?:(?=.)\\s)","*:")),gP=new RegExp("^".concat("(?:(?=.)\\s)","*::"));function Du(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e))return e.some(n=>Du(n,t));let r=t(e);return typeof r=="boolean"?r:Object.keys(e).some(n=>Du(e[n],t))}function _y(e){return e.type==="AssignmentExpression"||e.type==="BinaryExpression"||e.type==="LogicalExpression"||e.type==="NGPipeExpression"||e.type==="ConditionalExpression"||e.type==="CallExpression"||e.type==="OptionalCallExpression"||e.type==="MemberExpression"||e.type==="OptionalMemberExpression"||e.type==="SequenceExpression"||e.type==="TaggedTemplateExpression"||e.type==="BindExpression"||e.type==="UpdateExpression"&&!e.prefix||e.type==="TSAsExpression"||e.type==="TSNonNullExpression"}function Di(e){return e.type==="Block"||e.type==="CommentBlock"||e.type==="MultiLine"}var yP=new Set(["ExportDefaultDeclaration","ExportDefaultSpecifier","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration"]);function Uy(e){return e&&yP.has(e.type)}function gu(e){return e.type==="BooleanLiteral"||e.type==="DirectiveLiteral"||e.type==="Literal"||e.type==="NullLiteral"||e.type==="NumericLiteral"||e.type==="BigIntLiteral"||e.type==="DecimalLiteral"||e.type==="RegExpLiteral"||e.type==="StringLiteral"||e.type==="TemplateLiteral"||e.type==="TSTypeLiteral"||e.type==="JSXText"}function qy(e){return e.type==="NumericLiteral"||e.type==="Literal"&&typeof e.value=="number"}function Ql(e){return e.type==="StringLiteral"||e.type==="Literal"&&typeof e.value=="string"}function gi(e){return e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"}function Zl(e){return!(e.type!=="CallExpression"&&e.type!=="OptionalCallExpression"||e.callee.type!=="Identifier"||e.callee.name!=="async"&&e.callee.name!=="inject"&&e.callee.name!=="fakeAsync")}function yi(e){return e.type==="JSXElement"||e.type==="JSXFragment"}function $y(e){return e.kind==="get"||e.kind==="set"}function Vy(e){return $y(e)||jy(e,e.value)}var EP=new Set(["BinaryExpression","LogicalExpression","NGPipeExpression"]),CP=new Set(["AnyTypeAnnotation","TSAnyKeyword","NullLiteralTypeAnnotation","TSNullKeyword","ThisTypeAnnotation","TSThisType","NumberTypeAnnotation","TSNumberKeyword","VoidTypeAnnotation","TSVoidKeyword","BooleanTypeAnnotation","TSBooleanKeyword","BigIntTypeAnnotation","TSBigIntKeyword","SymbolTypeAnnotation","TSSymbolKeyword","StringTypeAnnotation","TSStringKeyword","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType","EmptyTypeAnnotation","MixedTypeAnnotation","TSNeverKeyword","TSObjectKeyword","TSUndefinedKeyword","TSUnknownKeyword"]),Wy=/^(skip|[fx]?(it|describe|test))$/;function yu(e){return e.type==="CallExpression"||e.type==="OptionalCallExpression"}var bP=new RegExp(([
\r ]+)),AP=new RegExp([^
\r ]);function ep(e){return gu(e)&&(AP.test(Eu(e))||!/\n/.test(Eu(e)))}function tp(e,t){return yi(t)?op(t):t.comments&&t.comments.some(r=>r.leading&&Kl(e,mu(r)))}function zy(e){return/^(\d+|\d+\.\d+)$/.test(e)}function Hy(e){return e.quasis.some(t=>t.value.raw.includes(
))}function Eu(e){return e.extra?e.extra.raw:e.raw}var Gy={"==":!0,"!=":!0,"===":!0,"!==":!0},Cu={"*":!0,"/":!0,"%":!0},rp={">>":!0,">>>":!0,"<<":!0},Jy={};function np(e){return Jy[e]}[["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].forEach((e,t)=>{e.forEach(r=>{Jy[r]=t})});var sp=new WeakMap;function ip(e){if(sp.has(e))return sp.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),sp.set(e,t),t}var ap=new WeakMap;function up(e){return e.value.trim()==="prettier-ignore"}function op(e){return e&&(e.comments&&e.comments.length>0&&e.comments.some(t=>up(t)&&!t.unignore)||e.prettierIgnore)}function Xy(e){return op(e.getValue())}var xP={classChildNeedsASIProtection:function(e){if(e){if(e.static||e.accessibility)return!1;if(!e.computed){let t=e.key&&e.key.name;if(t==="in"||t==="instanceof")return!0}switch(e.type){case"ClassProperty":case"FieldDefinition":case"TSAbstractClassProperty":return e.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{let t=e.value?e.value.async:e.async,r=e.value?e.value.generator:e.generator;return!t&&e.kind!=="get"&&e.kind!=="set"&&!(!e.computed&&!r)}case"TSIndexSignature":return!0;default:return!1}}},classPropMayCauseASIProblems:function(e){let t=e.getNode();if(t.type!=="ClassProperty"&&t.type!=="FieldDefinition")return!1;let r=t.key&&t.key.name;return!(r!=="static"&&r!=="get"&&r!=="set"||t.value||t.typeAnnotation)||void 0},getFunctionParameters:ip,iterateFunctionParametersPath:function(e,t){let r=e.getValue(),n=0,s=u=>t(u,n++);r.this&&e.call(s,"this"),Array.isArray(r.parameters)?e.each(s,"parameters"):Array.isArray(r.params)&&e.each(s,"params"),r.rest&&e.call(s,"rest")},getCallArguments:function(e){if(ap.has(e))return ap.get(e);let t=e.type==="ImportExpression"?[e.source]:e.arguments;return ap.set(e,t),t},iterateCallArgumentsPath:function(e,t){e.getValue().type==="ImportExpression"?e.call(r=>t(r,0),"source"):e.each(t,"arguments")},hasRestParameter:function(e){if(e.rest)return!0;let t=ip(e);return t.length>0&&fu(t).type==="RestElement"},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"&&Uy(t)?t:null},getTypeScriptMappedTypeModifier:function(e,t){return e==="+"?"+"+t:e==="-"?"-"+t:t},hasDanglingComments:function(e){return e.comments&&e.comments.some(t=>!t.leading&&!t.trailing)},hasFlowAnnotationComment:function(e){return e&&Di(e[0])&&gP.test(e[0].value)},hasFlowShorthandAnnotationComment:function(e){return e.extra&&e.extra.parenthesized&&e.trailingComments&&Di(e.trailingComments[0])&&DP.test(e.trailingComments[0].value)},hasLeadingComment:function(e){return e.comments&&e.comments.some(t=>t.leading)},hasLeadingOwnLineComment:tp,hasNakedLeftSide:_y,hasNewlineBetweenOrAfterDecorators:function(e,t){return fP(t.originalText,Yl(e.decorators[0]),mu(fu(e.decorators)))||Kl(t.originalText,mu(fu(e.decorators)))},hasNgSideEffect:function(e){return Du(e.getValue(),t=>{switch(t.type){case void 0:return!1;case"CallExpression":case"OptionalCallExpression":case"AssignmentExpression":return!0}})},hasNode:Du,hasPrettierIgnore:function(e){return Xy(e)||function(t){let r=t.getValue(),n=t.getParentNode();if(!(n&&r&&yi(r)&&yi(n)))return!1;let s=null;for(let u=n.children.indexOf(r);u>0;u--){let c=n.children[u-1];if(c.type!=="JSXText"||ep(c)){s=c;break}}return s&&s.type==="JSXExpressionContainer"&&s.expression.type==="JSXEmptyExpression"&&s.expression.comments&&s.expression.comments.some(u=>up(u))}(e)},hasTrailingComment:function(e){return e.comments&&e.comments.some(t=>t.trailing)},hasTrailingLineComment:function(e){return e.comments&&e.comments.some(t=>t.trailing&&!Di(t))},hasIgnoreComment:Xy,hasNodeIgnoreComment:op,identity:function(e){return e},isBinaryish:function(e){return EP.has(e.type)},isBlockComment:Di,isLineComment:function(e){return e.type==="Line"||e.type==="CommentLine"||e.type==="SingleLine"||e.type==="HashbangComment"||e.type==="HTMLOpen"||e.type==="HTMLClose"},isPrettierIgnoreComment:up,isCallOrOptionalCallExpression:yu,isEmptyJSXElement:function(e){if(e.children.length===0)return!0;if(e.children.length>1)return!1;let t=e.children[0];return gu(t)&&!ep(t)},isExportDeclaration:Uy,isFlowAnnotationComment:function(e,t){let r=Yl(t),n=mP(e,mu(t));return n!==!1&&e.slice(r,r+2)==="/*"&&e.slice(n,n+2)==="*/"},isFunctionCompositionArgs:function(e){if(e.length<=1)return!1;let t=0;for(let r of e)if(gi(r)){if(t+=1,t>1)return!0}else if(yu(r)){for(let n of r.arguments)if(gi(n))return!0}return!1},isFunctionNotation:Vy,isFunctionOrArrowExpression:gi,isGetterOrSetter:$y,isJestEachTemplateLiteral:function(e,t){let r=/^[fx]?(describe|it|test)$/;return t.type==="TaggedTemplateExpression"&&t.quasi===e&&t.tag.type==="MemberExpression"&&t.tag.property.type==="Identifier"&&t.tag.property.name==="each"&&(t.tag.object.type==="Identifier"&&r.test(t.tag.object.name)||t.tag.object.type==="MemberExpression"&&t.tag.object.property.type==="Identifier"&&(t.tag.object.property.name==="only"||t.tag.object.property.name==="skip")&&t.tag.object.object.type==="Identifier"&&r.test(t.tag.object.object.name))},isJSXNode:yi,isJSXWhitespaceExpression:function(e){return e.type==="JSXExpressionContainer"&&gu(e.expression)&&e.expression.value===" "&&!e.expression.comments},isLastStatement:function(e){let t=e.getParentNode();if(!t)return!0;let r=e.getValue(),n=(t.body||t.consequent).filter(s=>s.type!=="EmptyStatement");return n[n.length-1]===r},isLiteral:gu,isLongCurriedCallExpression:function(e){let t=e.getValue(),r=e.getParentNode();return yu(t)&&yu(r)&&r.callee===t&&t.arguments.length>r.arguments.length&&r.arguments.length>0},isSimpleCallArgument:function e(t,r){if(r>=2)return!1;let n=u=>e(u,r+1),s=t.type==="Literal"&&"regex"in t&&t.regex.pattern||t.type==="RegExpLiteral"&&t.pattern;return!(s&&s.length>5)&&(t.type==="Literal"||t.type==="BigIntLiteral"||t.type==="DecimalLiteral"||t.type==="BooleanLiteral"||t.type==="NullLiteral"||t.type==="NumericLiteral"||t.type==="RegExpLiteral"||t.type==="StringLiteral"||t.type==="Identifier"||t.type==="ThisExpression"||t.type==="Super"||t.type==="PrivateName"||t.type==="ArgumentPlaceholder"||t.type==="Import"||(t.type==="TemplateLiteral"?t.expressions.every(n):t.type==="ObjectExpression"?t.properties.every(u=>!u.computed&&(u.shorthand||u.value&&n(u.value))):t.type==="ArrayExpression"?t.elements.every(u=>u===null||n(u)):t.type==="ImportExpression"?n(t.source):t.type==="CallExpression"||t.type==="OptionalCallExpression"||t.type==="NewExpression"?e(t.callee,r)&&t.arguments.every(n):t.type==="MemberExpression"||t.type==="OptionalMemberExpression"?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)))},isMeaningfulJSXText:ep,isMemberExpressionChain:function e(t){return(t.type==="MemberExpression"||t.type==="OptionalMemberExpression")&&(t.object.type==="Identifier"||e(t.object))},isMemberish:function(e){return e.type==="MemberExpression"||e.type==="OptionalMemberExpression"||e.type==="BindExpression"&&Boolean(e.object)},isNgForOf:function(e,t,r){return e.type==="NGMicrosyntaxKeyedExpression"&&e.key.name==="of"&&t===1&&r.body[0].type==="NGMicrosyntaxLet"&&r.body[0].value===null},isNumericLiteral:qy,isObjectType:function(e){return e.type==="ObjectTypeAnnotation"||e.type==="TSTypeLiteral"},isObjectTypePropertyAFunction:function(e){return!(e.type!=="ObjectTypeProperty"&&e.type!=="ObjectTypeInternalSlot"||e.value.type!=="FunctionTypeAnnotation"||e.static||Vy(e))},isSimpleType:function(e){return!!e&&(!(e.type!=="GenericTypeAnnotation"&&e.type!=="TSTypeReference"||e.typeParameters)||!!CP.has(e.type))},isSimpleNumber:zy,isSimpleTemplateLiteral:function(e){let t="expressions";e.type==="TSTemplateLiteralType"&&(t="types");let r=e[t];return r.length!==0&&r.every(n=>{if(n.comments)return!1;if(n.type==="Identifier"||n.type==="ThisExpression")return!0;if(n.type==="MemberExpression"||n.type==="OptionalMemberExpression"){let s=n;for(;s.type==="MemberExpression"||s.type==="OptionalMemberExpression";)if(s.property.type!=="Identifier"&&s.property.type!=="Literal"&&s.property.type!=="StringLiteral"&&s.property.type!=="NumericLiteral"||(s=s.object,s.comments))return!1;return s.type==="Identifier"||s.type==="ThisExpression"}return!1})},isStringLiteral:Ql,isStringPropSafeToUnquote:function(e,t){return t.parser!=="json"&&Ql(e.key)&&Eu(e.key).slice(1,-1)===e.key.value&&(dP(e.key.value)&&!((t.parser==="typescript"||t.parser==="babel-ts")&&e.type==="ClassProperty")||zy(e.key.value)&&String(Number(e.key.value))===e.key.value&&(t.parser==="babel"||t.parser==="espree"||t.parser==="meriyah"))},isTemplateOnItsOwnLine:function(e,t){return(e.type==="TemplateLiteral"&&Hy(e)||e.type==="TaggedTemplateExpression"&&Hy(e.quasi))&&!Kl(t,Yl(e),{backwards:!0})},isTestCall:function e(t,r){if(t.type!=="CallExpression")return!1;if(t.arguments.length===1){if(Zl(t)&&r&&e(r))return gi(t.arguments[0]);if((n=t).callee.type==="Identifier"&&/^(before|after)(Each|All)$/.test(n.callee.name)&&n.arguments.length===1)return Zl(t.arguments[0])}else if((t.arguments.length===2||t.arguments.length===3)&&(t.callee.type==="Identifier"&&Wy.test(t.callee.name)||function(s){return(s.callee.type==="MemberExpression"||s.callee.type==="OptionalMemberExpression")&&s.callee.object.type==="Identifier"&&s.callee.property.type==="Identifier"&&Wy.test(s.callee.object.name)&&(s.callee.property.name==="only"||s.callee.property.name==="skip")}(t))&&(function(s){return s.type==="TemplateLiteral"}(t.arguments[0])||Ql(t.arguments[0])))return!(t.arguments[2]&&!qy(t.arguments[2]))&&((t.arguments.length===2?gi(t.arguments[1]):function(s){return s.type==="FunctionExpression"||s.type==="ArrowFunctionExpression"&&s.body.type==="BlockStatement"}(t.arguments[1])&&ip(t.arguments[1]).length<=1)||Zl(t.arguments[1]));var n;return!1},isTheOnlyJSXElementInMarkdown:function(e,t){if(e.parentParser!=="markdown"&&e.parentParser!=="mdx")return!1;let r=t.getNode();if(!r.expression||!yi(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||jy(e,e.typeAnnotation))},matchJsxWhitespaceRegex:bP,needsHardlineAfterDanglingComment:function(e){if(!e.comments)return!1;let t=fu(e.comments.filter(r=>!r.leading&&!r.trailing));return t&&!Di(t)},rawText:Eu,returnArgumentHasLeadingComment:function(e,t){if(tp(e.originalText,t))return!0;if(_y(t)){let n,s=t;for(;n=(r=s).expressions?r.expressions[0]:r.left||r.test||r.callee||r.object||r.tag||r.argument||r.expression;)if(s=n,tp(e.originalText,s))return!0}var r;return!1},shouldPrintComma:function(e,t="es5"){return e.trailingComma==="es5"&&t==="es5"||e.trailingComma==="all"&&(t==="all"||t==="es5")},isBitwiseOperator:function(e){return!!rp[e]||e==="|"||e==="^"||e==="&"},shouldFlatten:function(e,t){return np(t)===np(e)&&e!=="**"&&(!Gy[e]||!Gy[t])&&!(t==="%"&&Cu[e]||e==="%"&&Cu[t])&&(t===e||!Cu[t]||!Cu[e])&&(!rp[e]||!rp[t])},startsWithNoLookaheadToken:function e(t,r){switch((t=function(n){for(;n.left;)n=n.left;return n}(t)).type){case"FunctionExpression":case"ClassExpression":case"DoExpression":return r;case"ObjectExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return e(t.object,r);case"TaggedTemplateExpression":return t.tag.type!=="FunctionExpression"&&e(t.tag,r);case"CallExpression":case"OptionalCallExpression":return t.callee.type!=="FunctionExpression"&&e(t.callee,r);case"ConditionalExpression":return e(t.test,r);case"UpdateExpression":return!t.prefix&&e(t.argument,r);case"BindExpression":return t.object&&e(t.object,r);case"SequenceExpression":return e(t.expressions[0],r);case"TSAsExpression":return e(t.expression,r);default:return!1}},getPrecedence:np},{getLast:FP,hasNewline:vP,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:cp,getNextNonSpaceNonCommentCharacter:dn,hasNewlineInRange:wP,addLeadingComment:Ue,addTrailingComment:Ze,addDanglingComment:kr,getNextNonSpaceNonCommentCharacterIndex:SP}=di,{isBlockComment:Ky,getFunctionParameters:bu,isPrettierIgnoreComment:lp,isJSXNode:TP,hasFlowShorthandAnnotationComment:BP,hasFlowAnnotationComment:Yy,hasIgnoreComment:PP}=xP,{locStart:Qy,locEnd:xt}=du;function us(e,t){let r=(e.body||e.properties).find(({type:n})=>n!=="EmptyStatement");r?Ue(r,t):kr(e,t)}function pp(e,t){e.type==="BlockStatement"?us(e,t):Ue(e,t)}function hp(e,t){let{precedingNode:r,enclosingNode:n,followingNode:s}=e;return!n||n.type!=="IfStatement"||!s?!1:dn(t,e,xt)===")"?(Ze(r,e),!0):r===n.consequent&&s===n.alternate?(r.type==="BlockStatement"?Ze(r,e):kr(n,e),!0):s.type==="BlockStatement"?(us(s,e),!0):s.type==="IfStatement"?(pp(s.consequent,e),!0):n.consequent===s&&(Ue(s,e),!0)}function dp(e,t){let{precedingNode:r,enclosingNode:n,followingNode:s}=e;return!n||n.type!=="WhileStatement"||!s?!1:dn(t,e,xt)===")"?(Ze(r,e),!0):s.type==="BlockStatement"?(us(s,e),!0):n.body===s&&(Ue(s,e),!0)}function Zy(e){let{precedingNode:t,enclosingNode:r,followingNode:n}=e;return!(!r||r.type!=="TryStatement"&&r.type!=="CatchClause"||!n)&&(r.type==="CatchClause"&&t?(Ze(t,e),!0):n.type==="BlockStatement"?(us(n,e),!0):n.type==="TryStatement"?(pp(n.finalizer,e),!0):n.type==="CatchClause"&&(pp(n.body,e),!0))}function e2(e){let{precedingNode:t,enclosingNode:r,followingNode:n}=e;if(r&&(r.type==="ClassDeclaration"||r.type==="ClassExpression"||r.type==="DeclareClass"||r.type==="DeclareInterface"||r.type==="InterfaceDeclaration"||r.type==="TSInterfaceDeclaration")){if(r.decorators&&r.decorators.length>0&&(!n||n.type!=="Decorator"))return Ze(r.decorators[r.decorators.length-1],e),!0;if(r.body&&n===r.body)return us(r.body,e),!0;if(n){for(let s of["implements","extends","mixins"])if(r[s]&&n===r[s][0])return!t||t!==r.id&&t!==r.typeParameters&&t!==r.superClass?kr(r,e,s):Ze(t,e),!0}}return!1}function t2(e,t){let{precedingNode:r,enclosingNode:n}=e;return(n&&r&&(n.type==="Property"||n.type==="TSDeclareMethod"||n.type==="TSAbstractMethodDefinition")&&r.type==="Identifier"&&n.key===r&&dn(t,r,xt)!==":"||!(!r||!n||r.type!=="Decorator"||n.type!=="ClassMethod"&&n.type!=="ClassProperty"&&n.type!=="FieldDefinition"&&n.type!=="TSAbstractClassProperty"&&n.type!=="TSAbstractMethodDefinition"&&n.type!=="TSDeclareMethod"&&n.type!=="MethodDefinition"))&&(Ze(r,e),!0)}function r2(e,t){let{precedingNode:r,enclosingNode:n,followingNode:s}=e;if(r&&r.type==="FunctionTypeParam"&&n&&n.type==="FunctionTypeAnnotation"&&s&&s.type!=="FunctionTypeParam"||r&&(r.type==="Identifier"||r.type==="AssignmentPattern")&&n&&a2(n)&&dn(t,e,xt)===")")return Ze(r,e),!0;if(n&&n.type==="FunctionDeclaration"&&s&&s.type==="BlockStatement"){let u=(()=>{let c=bu(n);if(c.length!==0)return cp(t,xt(FP(c)));let o=cp(t,xt(n.id));return o!==!1&&cp(t,o+1)})();if(Qy(e)>u)return us(s,e),!0}return!1}function n2(e){let{enclosingNode:t}=e;return!(!t||t.type!=="ImportSpecifier")&&(Ue(t,e),!0)}function s2(e){let{enclosingNode:t}=e;return!(!t||t.type!=="LabeledStatement")&&(Ue(t,e),!0)}function fp(e,t,r){let{enclosingNode:n}=e;return t&&t.body&&t.body.length===0?(r?kr(t,e):Ue(t,e),!0):!(!n||n.type!=="Program"||n.body.length!==0||!n.directives||n.directives.length!==0)&&(r?kr(n,e):Ue(n,e),!0)}function i2(e){let{enclosingNode:t,followingNode:r}=e;if(lp(e)&&t&&t.type==="TSMappedType"&&r&&r.type==="TSTypeParameter"&&r.constraint)return t.prettierIgnore=!0,e.unignore=!0,!0}function a2(e){return e.type==="ArrowFunctionExpression"||e.type==="FunctionExpression"||e.type==="FunctionDeclaration"||e.type==="ObjectMethod"||e.type==="ClassMethod"||e.type==="TSDeclareFunction"||e.type==="TSCallSignatureDeclaration"||e.type==="TSConstructSignatureDeclaration"||e.type==="TSMethodSignature"||e.type==="TSConstructorType"||e.type==="TSFunctionType"||e.type==="TSDeclareMethod"}function u2(e){return Ky(e)&&e.value[0]==="*"&&/@type\b/.test(e.value)}var NP={handleOwnLineComment:function(e,t,r,n,s){return i2(e)||r2(e,t)||function(u){let{enclosingNode:c,followingNode:o}=u;return c&&(c.type==="MemberExpression"||c.type==="OptionalMemberExpression")&&o&&o.type==="Identifier"?(Ue(c,u),!0):!1}(e)||hp(e,t)||dp(e,t)||Zy(e)||e2(e)||n2(e)||function(u){let{enclosingNode:c}=u;return c&&(c.type==="ForInStatement"||c.type==="ForOfStatement")?(Ue(c,u),!0):!1}(e)||function(u){let{precedingNode:c,enclosingNode:o,followingNode:l}=u;return o&&(o.type==="UnionTypeAnnotation"||o.type==="TSUnionType")?(lp(u)&&(l.prettierIgnore=!0,u.unignore=!0),!!c&&(Ze(c,u),!0)):(l&&(l.type==="UnionTypeAnnotation"||l.type==="TSUnionType")&&lp(u)&&(l.types[0].prettierIgnore=!0,u.unignore=!0),!1)}(e)||fp(e,n,s)||function(u,c){let{precedingNode:o,enclosingNode:l}=u;return o&&o.type==="ImportSpecifier"&&l&&l.type==="ImportDeclaration"&&vP(c,xt(u))?(Ze(o,u),!0):!1}(e,t)||function(u){let{enclosingNode:c}=u;return c&&c.type==="AssignmentPattern"?(Ue(c,u),!0):!1}(e)||t2(e,t)||s2(e)},handleEndOfLineComment:function(e,t,r,n,s){return function(u){let{followingNode:c}=u;return c&&u2(u)?(Ue(c,u),!0):!1}(e)||r2(e,t)||function(u,c){let{precedingNode:o,enclosingNode:l,followingNode:h}=u,a=o&&!wP(c,xt(o),Qy(u));return(!o||!a)&&l&&(l.type==="ConditionalExpression"||l.type==="TSConditionalType")&&h?(Ue(h,u),!0):!1}(e,t)||n2(e)||hp(e,t)||dp(e,t)||Zy(e)||e2(e)||s2(e)||function(u){let{precedingNode:c,enclosingNode:o}=u;return o&&(o.type==="CallExpression"||o.type==="OptionalCallExpression")&&c&&o.callee===c&&o.arguments.length>0?(Ue(o.arguments[0],u),!0):!1}(e)||function(u){let{enclosingNode:c}=u;return c&&(c.type==="Property"||c.type==="ObjectProperty")?(Ue(c,u),!0):!1}(e)||fp(e,n,s)||function(u){let{enclosingNode:c}=u;return c&&c.type==="TypeAlias"?(Ue(c,u),!0):!1}(e)||function(u){let{enclosingNode:c,followingNode:o}=u;return c&&(c.type==="VariableDeclarator"||c.type==="AssignmentExpression")&&o&&(o.type==="ObjectExpression"||o.type==="ArrayExpression"||o.type==="TemplateLiteral"||o.type==="TaggedTemplateExpression"||Ky(u))?(Ue(o,u),!0):!1}(e)},handleRemainingComment:function(e,t,r,n,s){return!!(i2(e)||hp(e,t)||dp(e,t)||function(u){let{precedingNode:c,enclosingNode:o}=u;return o&&(o.type==="ObjectProperty"||o.type==="Property")&&o.shorthand&&o.key===c&&o.value.type==="AssignmentPattern"?(Ze(o.value.left,u),!0):!1}(e)||function(u,c){if(dn(c,u,xt)!==")")return!1;let{enclosingNode:o}=u;return o&&(a2(o)&&bu(o).length===0||(o.type==="CallExpression"||o.type==="OptionalCallExpression"||o.type==="NewExpression")&&o.arguments.length===0)?(kr(o,u),!0):o&&o.type==="MethodDefinition"&&bu(o.value).length===0?(kr(o.value,u),!0):!1}(e,t)||t2(e,t)||fp(e,n,s)||function(u,c){let{enclosingNode:o}=u;if(!o||o.type!=="ArrowFunctionExpression")return!1;let l=SP(c,u,xt);return l!==!1&&c.slice(l,l+2)==="=>"?(kr(o,u),!0):!1}(e,t)||function(u,c){if(dn(c,u,xt)!=="(")return!1;let{precedingNode:o,enclosingNode:l}=u;return o&&l&&(l.type==="FunctionDeclaration"||l.type==="FunctionExpression"||l.type==="ClassMethod"||l.type==="MethodDefinition"||l.type==="ObjectMethod")?(Ze(o,u),!0):!1}(e,t)||function(u){let{precedingNode:c,enclosingNode:o,followingNode:l}=u;return!o||o.type!=="TSMappedType"?!1:l&&l.type==="TSTypeParameter"&&l.name?(Ue(l.name,u),!0):c&&c.type==="TSTypeParameter"&&c.constraint?(Ze(c.constraint,u),!0):!1}(e)||function(u){let{enclosingNode:c}=u;return c&&(c.type==="ContinueStatement"||c.type==="BreakStatement")&&!c.label?(Ze(c,u),!0):!1}(e)||function(u,c){let{enclosingNode:o,followingNode:l}=u;return!l&&o&&(o.type==="TSMethodSignature"||o.type==="TSDeclareFunction"||o.type==="TSAbstractMethodDefinition")&&dn(c,u,xt)===";"?(Ze(o,u),!0):!1}(e,t))},hasLeadingComment:function(e,t=()=>!0){return e.leadingComments?e.leadingComments.some(t):!!e.comments&&e.comments.some(r=>r.leading&&t(r))},isTypeCastComment:u2,getGapRegex:function(e){if(e&&e.type!=="BinaryExpression"&&e.type!=="LogicalExpression")return/^[\s&(|]*$/},getCommentChildNodes:function(e,t){if((t.parser==="typescript"||t.parser==="flow"||t.parser==="espree"||t.parser==="meriyah")&&e.type==="MethodDefinition"&&e.value&&e.value.type==="FunctionExpression"&&bu(e.value).length===0&&!e.value.returnType&&(!e.value.typeParameters||e.value.typeParameters.length===0)&&e.value.body)return[...e.decorators||[],e.key,e.value.body]},willPrintOwnComments:function(e){let t=e.getValue(),r=e.getParentNode();return(t&&(TP(t)||BP(t)||r&&(r.type==="CallExpression"||r.type==="OptionalCallExpression")&&(Yy(t.leadingComments)||Yy(t.trailingComments)))||r&&(r.type==="JSXSpreadAttribute"||r.type==="JSXSpreadChild"||r.type==="UnionTypeAnnotation"||r.type==="TSUnionType"||(r.type==="ClassDeclaration"||r.type==="ClassExpression")&&r.superClass===t))&&(!PP(e)||r.type==="UnionTypeAnnotation"||r.type==="TSUnionType")}},{getLast:o2,getNextNonSpaceNonCommentCharacter:kP,getShebang:IP}=di,{composeLoc:fn,locStart:c2,locEnd:Au}=du,{isTypeCastComment:LP}=NP;function xu(e){return e.type==="CallExpression"?(e.type="OptionalCallExpression",e.callee=xu(e.callee)):e.type==="MemberExpression"?(e.type="OptionalMemberExpression",e.object=xu(e.object)):e.type==="TSNonNullExpression"&&(e.expression=xu(e.expression)),e}function Ei(e,t){let r;if(Array.isArray(e))r=e.entries();else{if(!e||typeof e!="object"||typeof e.type!="string")return e;r=Object.entries(e)}for(let[n,s]of r)e[n]=Ei(s,t);return Array.isArray(e)?e:t(e)||e}function l2(e){return e.type==="LogicalExpression"&&e.right.type==="LogicalExpression"&&e.operator===e.right.operator}function mp(e){return l2(e)?mp({type:"LogicalExpression",operator:e.operator,left:mp({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,range:fn(e.left,e.right.left)}),right:e.right.right,range:fn(e)}):e}var OP=function(e,t){if(t.parser!=="typescript"&&t.parser!=="flow"&&t.parser!=="espree"||function(r,n){let s=IP(n.originalText);s&&r.comments.unshift({type:"Line",value:s.slice(2),range:[0,s.length]})}(e,t),t.parser==="typescript"&&t.originalText.includes("@")){let{esTreeNodeToTSNodeMap:r,tsNodeToESTreeNodeMap:n}=t.tsParseResult;e=Ei(e,s=>{let u=r.get(s);if(!u)return;let c=u.decorators;if(!Array.isArray(c))return;let o=n.get(u);if(o!==s)return;let l=o.decorators;if(!Array.isArray(l)||l.length!==c.length||c.some(h=>{let a=n.get(h);return!a||!l.includes(a)})){let{start:h,end:a}=o.loc;throw Vl("Leading decorators must be attached to a class declaration",{start:{line:h.line,column:h.column+1},end:{line:a.line,column:a.column+1}})}})}if(t.parser!=="typescript"&&t.parser!=="flow"&&t.parser!=="espree"&&t.parser!=="meriyah"){let r=new Set;e=Ei(e,n=>{n.leadingComments&&n.leadingComments.some(LP)&&r.add(c2(n))}),e=Ei(e,n=>{if(n.type==="ParenthesizedExpression"){let{expression:s}=n;if(s.type==="TypeCastExpression")return s.range=n.range,s;let u=c2(n);if(!r.has(u))return s.extra=Object.assign({},s.extra,{parenthesized:!0}),s}})}return e=Ei(e,r=>{switch(r.type){case"ChainExpression":return xu(r.expression);case"LogicalExpression":if(l2(r))return mp(r);break;case"VariableDeclaration":{let n=o2(r.declarations);n&&n.init&&function(s,u){t.originalText[Au(u)]!==";"&&(s.range=fn(s,u))}(r,n);break}case"TSParenthesizedType":return r.typeAnnotation.range=fn(r),r.typeAnnotation;case"TSUnionType":case"TSIntersectionType":if(r.types.length===1){let[n]=r.types;return n.range=fn(r),n}break;case"TSTypeParameter":typeof r.name=="string"&&(r.name={type:"Identifier",name:r.name,range:fn(r,r.name.length)});break;case"SequenceExpression":{let n=o2(r.expressions);Au(r)>Au(n)&&(r.range=fn(r,n));break}case"ClassProperty":r.key&&r.key.type==="TSPrivateIdentifier"&&kP(t.originalText,r.key,Au)==="?"&&(r.optional=!0)}})},MP=Nr(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});let r=!0,n=!0,s=!0,u=!0;class c{constructor(i,p={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.updateContext=void 0,this.label=i,this.keyword=p.keyword,this.beforeExpr=!!p.beforeExpr,this.startsExpr=!!p.startsExpr,this.rightAssociative=!!p.rightAssociative,this.isLoop=!!p.isLoop,this.isAssign=!!p.isAssign,this.prefix=!!p.prefix,this.postfix=!!p.postfix,this.binop=p.binop!=null?p.binop:null,this.updateContext=null}}let o=new Map;function l(I,i={}){i.keyword=I;let p=new c(I,i);return o.set(I,p),p}function h(I,i){return new c(I,{beforeExpr:r,binop:i})}let a={num:new c("num",{startsExpr:n}),bigint:new c("bigint",{startsExpr:n}),decimal:new c("decimal",{startsExpr:n}),regexp:new c("regexp",{startsExpr:n}),string:new c("string",{startsExpr:n}),name:new c("name",{startsExpr:n}),eof:new c("eof"),bracketL:new c("[",{beforeExpr:r,startsExpr:n}),bracketHashL:new c("#[",{beforeExpr:r,startsExpr:n}),bracketBarL:new c("[|",{beforeExpr:r,startsExpr:n}),bracketR:new c("]"),bracketBarR:new c("|]"),braceL:new c("{",{beforeExpr:r,startsExpr:n}),braceBarL:new c("{|",{beforeExpr:r,startsExpr:n}),braceHashL:new c("#{",{beforeExpr:r,startsExpr:n}),braceR:new c("}"),braceBarR:new c("|}"),parenL:new c("(",{beforeExpr:r,startsExpr:n}),parenR:new c(")"),comma:new c(",",{beforeExpr:r}),semi:new c(";",{beforeExpr:r}),colon:new c(":",{beforeExpr:r}),doubleColon:new c("::",{beforeExpr:r}),dot:new c("."),question:new c("?",{beforeExpr:r}),questionDot:new c("?."),arrow:new c("=>",{beforeExpr:r}),template:new c("template"),ellipsis:new c("...",{beforeExpr:r}),backQuote:new c("",{startsExpr:n}),dollarBraceL:new c("${",{beforeExpr:r,startsExpr:n}),at:new c("@"),hash:new c("#",{startsExpr:n}),interpreterDirective:new c("#!..."),eq:new c("=",{beforeExpr:r,isAssign:!0}),assign:new c("_=",{beforeExpr:r,isAssign:!0}),incDec:new c("++/--",{prefix:u,postfix:!0,startsExpr:n}),bang:new c("!",{beforeExpr:r,prefix:u,startsExpr:n}),tilde:new c("~",{beforeExpr:r,prefix:u,startsExpr:n}),pipeline:h("|>",0),nullishCoalescing:h("??",1),logicalOR:h("||",1),logicalAND:h("&&",2),bitwiseOR:h("|",3),bitwiseXOR:h("^",4),bitwiseAND:h("&",5),equality:h("==/!=/===/!==",6),relational:h("</>/<=/>=",7),bitShift:h("<</>>/>>>",8),plusMin:new c("+/-",{beforeExpr:r,binop:9,prefix:u,startsExpr:n}),modulo:new c("%",{beforeExpr:r,binop:10,startsExpr:n}),star:new c("*",{binop:10}),slash:h("/",10),exponent:new c("**",{beforeExpr:r,binop:11,rightAssociative:!0}),_break:l("break"),_case:l("case",{beforeExpr:r}),_catch:l("catch"),_continue:l("continue"),_debugger:l("debugger"),_default:l("default",{beforeExpr:r}),_do:l("do",{isLoop:s,beforeExpr:r}),_else:l("else",{beforeExpr:r}),_finally:l("finally"),_for:l("for",{isLoop:s}),_function:l("function",{startsExpr:n}),_if:l("if"),_return:l("return",{beforeExpr:r}),_switch:l("switch"),_throw:l("throw",{beforeExpr:r,prefix:u,startsExpr:n}),_try:l("try"),_var:l("var"),_const:l("const"),_while:l("while",{isLoop:s}),_with:l("with"),_new:l("new",{beforeExpr:r,startsExpr:n}),_this:l("this",{startsExpr:n}),_super:l("super",{startsExpr:n}),_class:l("class",{startsExpr:n}),_extends:l("extends",{beforeExpr:r}),_export:l("export"),_import:l("import",{startsExpr:n}),_null:l("null",{startsExpr:n}),_true:l("true",{startsExpr:n}),_false:l("false",{startsExpr:n}),_in:l("in",{beforeExpr:r,binop:7}),_instanceof:l("instanceof",{beforeExpr:r,binop:7}),_typeof:l("typeof",{beforeExpr:r,prefix:u,startsExpr:n}),_void:l("void",{beforeExpr:r,prefix:u,startsExpr:n}),_delete:l("delete",{beforeExpr:r,prefix:u,startsExpr:n})},f=128,m=128,E=1024,g=64,b=/\r\n?|\n\u2028\u2029/,A=new RegExp(b.source,"g");function C(I){switch(I){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}let F=/(?:\s|\/\/.*|\/\*^*?\*\/)*/g;function w(I){switch(I){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}class B{constructor(i,p){this.line=void 0,this.column=void 0,this.line=i,this.column=p}}class T{constructor(i,p){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=i,this.end=p}}function P(I){return II.length-1}let v=Object.freeze({AccessorIsGenerator:"A %0ter cannot be a generator",ArgumentsInClass:"'arguments' is only allowed in functions and class methods",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function",AwaitExpressionFormalParameter:"await is not allowed in async function parameters",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules",AwaitNotInAsyncFunction:"'await' is only allowed within async functions",BadGetterArity:"getter must not have any formal parameters",BadSetterArity:"setter must have exactly one formal parameter",BadSetterRestParameter:"setter function argument must not be a rest parameter",ConstructorClassField:"Classes may not have a field named 'constructor'",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'",ConstructorIsAccessor:"Class constructor may not be an accessor",ConstructorIsAsync:"Constructor can't be an async function",ConstructorIsGenerator:"Constructor can't be a generator",DeclarationMissingInitializer:"%0 require an initialization value",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. You can set the 'decoratorsBeforeExport' option to false to use the 'export @decorator class {}' syntax",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Using the export keyword between a decorator and a class is not allowed. Please use export @dec class instead.",DecoratorSemicolon:"Decorators must not be followed by a semicolon",DecoratorStaticBlock:"Decorators can't be used with a static block",DeletePrivateField:"Deleting a private field is not allowed",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:"%0 has already been exported. Exported identifiers must be unique.",DuplicateProto:"Redefinition of __proto__ property",DuplicateRegExpFlags:"Duplicate regular expression flag",DuplicateStaticBlock:"Duplicate static block in the same class",ElementAfterRest:"Rest element must be last element",EscapedCharNotAnIdentifier:"Invalid Unicode escape",ExportBindingIsString:"A string literal cannot be used as an exported binding without from.\n- Did you mean export { %0 as '%1' } from 'some-module'?",ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block",IllegalBreakContinue:"Unsyntactic %0",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"'return' outside of function",ImportBindingIsString:'A string literal cannot be used as an imported binding.\n- Did you mean import { "%0" as foo }?',ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments",ImportCallArity:"import() requires exactly %0",ImportCallNotNewExpression:"Cannot use new with import(...)",ImportCallSpreadArgument:"... is not allowed in import()",ImportMetaOutsideModule:import.meta may appear only with 'sourceType: "module"',ImportOutsideModule:'import' and 'export' may appear only with 'sourceType: "module"',InvalidBigIntLiteral:"Invalid BigIntLiteral",InvalidCodePoint:"Code point out of bounds",InvalidDecimal:"Invalid decimal",InvalidDigit:"Expected number in radix %0",InvalidEscapeSequence:"Bad character escape sequence",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template",InvalidEscapedReservedWord:"Escape sequence in keyword %0",InvalidIdentifier:"Invalid identifier %0",InvalidLhs:"Invalid left-hand side in %0",InvalidLhsBinding:"Binding invalid left-hand side in %0",InvalidNumber:"Invalid number",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'",InvalidOrUnexpectedToken:"Unexpected character '%0'",InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern",InvalidPrivateFieldResolution:"Private name #%0 is not defined",InvalidPropertyBindingPattern:"Binding member expression",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions",InvalidRestAssignmentPattern:"Invalid rest operator's argument",LabelRedeclaration:"Label '%0' is already declared",LetInLexicalBinding:"'let' is not allowed to be used as a name in 'let' or 'const' declarations.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'",MalformedRegExpFlags:"Invalid regular expression flag",MissingClassName:"A class name is required",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators",ModuleAttributeDifferentFromType:"The only accepted module attribute is type",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values",ModuleAttributesWithDuplicateKeys:'Duplicate key "%0" is not allowed in module attributes',ModuleExportNameHasLoneSurrogate:"An export name cannot include a lone surrogate, found '\\u%0'",ModuleExportUndefined:"Export '%0' is not defined",MultipleDefaultsInSwitch:"Multiple default clauses",NewlineAfterThrow:"Illegal newline after throw",NoCatchOrFinally:"Missing catch or finally clause",NumberIdentifier:"Identifier directly after number",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences",ObsoleteAwaitStar:"await* has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"constructors in/after an Optional Chain are not allowed",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain",ParamDupe:"Argument name clash",PatternHasAccessor:"Object pattern can't contain getter or setter",PatternHasMethod:"Object pattern can't contain methods",PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding",PrimaryTopicRequiresSmartPipeline:"Primary Topic Reference found but pipelineOperator not passed 'smart' for 'proposal' option.",PrivateInExpectedIn:"Private names are only allowed in property accesses (obj.#%0) or in in expressions (#%0 in obj)",PrivateNameRedeclaration:"Duplicate private name #%0",RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'",RecordNoProto:"'__proto__' is not allowed in Record expressions",RestTrailingComma:"Unexpected trailing comma after rest element",SloppyFunction:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement",StaticPrototype:"Classes may not have static property named prototype",StrictDelete:"Deleting local variable in strict mode",StrictEvalArguments:"Assigning to '%0' in strict mode",StrictEvalArgumentsBinding:"Binding '%0' in strict mode",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode",StrictWith:"'with' in strict mode",SuperNotAllowed:"super() is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super",TrailingDecorator:"Decorators must be attached to a class element",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal',UnexpectedDigitAfterHash:"Unexpected digit after hash token",UnexpectedImportExport:"'import' and 'export' may only appear at the top level",UnexpectedKeyword:"Unexpected keyword '%0'",UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context",UnexpectedNewTarget:"new.target can only be used in functions",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits",UnexpectedPrivateField:`Private names can only be used as the name of a class element (i.e. class C { #p = 42; #m() {} } ) or a property of member expression (i.e. this.#p).,UnexpectedReservedWord:"Unexpected reserved word '%0'",UnexpectedSuper:"super is only allowed in object methods and classes",UnexpectedToken:"Unexpected token '%0'",UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the default export.",UnsupportedImport:"import can only be used in import() or import.meta",UnsupportedMetaProperty:"The only valid meta property for %0 is %0.%1",UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties",UnsupportedSuper:"super can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop])",UnterminatedComment:"Unterminated comment",UnterminatedRegExp:"Unterminated regular expression",UnterminatedString:"Unterminated string constant",UnterminatedTemplate:"Unterminated template",VarRedeclaration:"Identifier '%0' has already been declared",YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator",YieldInParameter:"Yield expression is not allowed in formal parameters",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0"});function _(I){return I!=null&&I.type==="Property"&&I.kind==="init"&&I.method===!1}class O{constructor(i,p,d,D){this.token=void 0,this.isExpr=void 0,this.preserveSpace=void 0,this.override=void 0,this.token=i,this.isExpr=!!p,this.preserveSpace=!!d,this.override=D}}let M={braceStatement:new O("{",!1),braceExpression:new O("{",!0),recordExpression:new O("#{",!0),templateQuasi:new O("${",!1),parenStatement:new O("(",!1),parenExpression:new O("(",!0),template:new O("",!0,!0,I=>I.readTmplToken()),functionExpression:new O("function",!0),functionStatement:new O("function",!1)};a.parenR.updateContext=a.braceR.updateContext=function(){if(this.state.context.length===1)return void(this.state.exprAllowed=!0);let I=this.state.context.pop();I===M.braceStatement&&this.curContext().token==="function"&&(I=this.state.context.pop()),this.state.exprAllowed=!I.isExpr},a.name.updateContext=function(I){let i=!1;I!==a.dot&&(this.state.value!=="of"||this.state.exprAllowed||I===a._function||I===a._class||(i=!0)),this.state.exprAllowed=i,this.state.isIterator&&(this.state.isIterator=!1)},a.braceL.updateContext=function(I){this.state.context.push(this.braceIsBlock(I)?M.braceStatement:M.braceExpression),this.state.exprAllowed=!0},a.dollarBraceL.updateContext=function(){this.state.context.push(M.templateQuasi),this.state.exprAllowed=!0},a.parenL.updateContext=function(I){let i=I===a._if||I===a._for||I===a._with||I===a._while;this.state.context.push(i?M.parenStatement:M.parenExpression),this.state.exprAllowed=!0},a.incDec.updateContext=function(){},a._function.updateContext=a._class.updateContext=function(I){!I.beforeExpr||I===a.semi||I===a._else||I===a._return&&this.hasPrecedingLineBreak()||(I===a.colon||I===a.braceL)&&this.curContext()===M.b_stat?this.state.context.push(M.functionStatement):this.state.context.push(M.functionExpression),this.state.exprAllowed=!1},a.backQuote.updateContext=function(){this.curContext()===M.template?this.state.context.pop():this.state.context.push(M.template),this.state.exprAllowed=!1},a.braceHashL.updateContext=function(){this.state.context.push(M.recordExpression),this.state.exprAllowed=!0};let q="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",j="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",W=new RegExp(""+q+""),z=new RegExp(""+q+j+"");q=j=null;let H=0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,107,20,28,22,13,52,76,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8952,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938,Y=509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239;function ye(I,i){let p=65536;for(let d=0,D=i.length;d<D;d+=2){if(p+=id,p>I)return!1;if(p+=id+1,p>=I)return!0}return!1}function ue(I){return I<65?I===36:I<=90||(I<97?I===95:I<=122||(I<=65535?I>=170&&W.test(String.fromCharCode(I)):ye(I,H)))}function Ce(I){return I<48?I===36:I<58||!(I<65)&&(I<=90||(I<97?I===95:I<=122||(I<=65535?I>=170&&z.test(String.fromCharCode(I)):ye(I,H)||ye(I,Y))))}let fe="implements","interface","let","package","private","protected","public","static","yield",De="eval","arguments",ke=new Set("break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"),_2=new Set(fe),U2=new Set(De);function wp(I,i){return i&&I==="await"||I==="enum"}function Sp(I,i){return wp(I,i)||_2.has(I)}function Tp(I){return U2.has(I)}function Bp(I,i){return Sp(I,i)||Tp(I)}function Pp(I){return ke.has(I)}let q2=/^in(stanceof)?$/,$2=new Set("_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"),ae=Object.freeze({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both declare module.exports and declare export in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module",AssignReservedType:"Cannot overwrite reserved type %0",DeclareClassElement:"The declare modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the declare modifier.",DuplicateDeclareModuleExports:"Duplicate declare module.exports statement",EnumBooleanMemberNotInitialized:"Boolean enum members need to be initialized. Use either %0 = true, or %0 = false, in enum %1.",EnumDuplicateMemberName:"Enum member names need to be unique, but the name %0 has already been used before in enum %1.",EnumInconsistentMemberValues:"Enum %0 has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.",EnumInvalidExplicitType:"Enum type %1 is not valid. Use one of boolean, number, string, or symbol in enum %0.",EnumInvalidExplicitTypeUnknownSupplied:"Supplied enum type is not valid. Use one of boolean, number, string, or symbol in enum %0.",EnumInvalidMemberInitializerPrimaryType:"Enum %0 has type %2, so the initializer of %1 needs to be a %2 literal.",EnumInvalidMemberInitializerSymbolType:"Symbol enum members cannot be initialized. Use %1, in enum %0.",EnumInvalidMemberInitializerUnknownType:"The enum member initializer for %1 needs to be a literal (either a boolean, number, or string) in enum %0.",EnumInvalidMemberName:"Enum member names cannot start with lowercase 'a' through 'z'. Instead of using %0, consider using %1, in enum %2.",EnumNumberMemberNotInitialized:"Number enum members need to be initialized, e.g. %1 = 1 in enum %0.",EnumStringMemberInconsistentlyInitailized:"String enum members need to consistently either all use initializers, or use no initializers, in enum %0.",ImportTypeShorthandOnlyInPureImport:"The type and typeof keywords on named imports can only be used on regular import statements. It cannot be used with import type or import typeof statements",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions",InexactVariance:"Explicit inexact syntax cannot have variance",InvalidNonTypeImportInDeclareModule:"Imports within a declare module body must always be import type or import typeof",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"declare module cannot be used inside another declare module",NestedFlowComment:"Cannot have a flow comment inside another flow comment",OptionalBindingPattern:"A binding pattern parameter cannot be optional in an implementation signature.",SpreadVariance:"Spread properties cannot have variance",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of age = 25: number use age: number = 25",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object",UnexpectedReservedType:"Unexpected reserved type %0",UnexpectedReservedUnderscore:"_ is only allowed as a type argument to call or new",UnexpectedSpaceBetweenModuloChecks:"Spaces between % and checks are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint"',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of <T> async () => {}, use async <T>() => {}",UnsupportedDeclareExportKind:"declare export %0 is not supported. Use %1 instead",UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module",UnterminatedFlowComment:"Unterminated flow-comment"});function Ai(I){return I.importKind==="type"||I.importKind==="typeof"}function Np(I){return(I.type===a.name||!!I.type.keyword)&&I.value!=="from"}let V2={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"},W2=/\*?\s*@((?:no)?flow)\b/,z2={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},H2=/^\da-fA-F+$/,G2=/^\d+$/,Ir=Object.freeze({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression",MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>",MissingClosingTagElement:"Expected corresponding JSX closing tag for <%0>",UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text",UnterminatedJsxContent:"Unterminated JSX contents",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function lr(I){return!!I&&(I.type==="JSXOpeningFragment"||I.type==="JSXClosingFragment")}function Dn(I){if(I.type==="JSXIdentifier")return I.name;if(I.type==="JSXNamespacedName")return I.namespace.name+":"+I.name.name;if(I.type==="JSXMemberExpression")return Dn(I.object)+"."+Dn(I.property);throw new Error("Node had unexpected type: "+I.type)}M.j_oTag=new O("<tag",!1),M.j_cTag=new O("</tag",!1),M.j_expr=new O("<tag>...</tag>",!0,!0),a.jsxName=new c("jsxName"),a.jsxText=new c("jsxText",{beforeExpr:!0}),a.jsxTagStart=new c("jsxTagStart",{startsExpr:!0}),a.jsxTagEnd=new c("jsxTagEnd"),a.jsxTagStart.updateContext=function(){this.state.context.push(M.j_expr),this.state.context.push(M.j_oTag),this.state.exprAllowed=!1},a.jsxTagEnd.updateContext=function(I){let i=this.state.context.pop();i===M.j_oTag&&I===a.slash||i===M.j_cTag?(this.state.context.pop(),this.state.exprAllowed=this.curContext()===M.j_expr):this.state.exprAllowed=!0};class kp{constructor(i){this.flags=void 0,this.var=[],this.lexical=[],this.functions=[],this.flags=i}}class Ip{constructor(i,p){this.scopeStack=[],this.undefinedExports=new Map,this.undefinedPrivateNames=new Map,this.raise=i,this.inModule=p}get inFunction(){return(2&this.currentVarScope().flags)>0}get allowSuper(){return(16&this.currentThisScope().flags)>0}get allowDirectSuper(){return(32&this.currentThisScope().flags)>0}get inClass(){return(64&this.currentThisScope().flags)>0}get inNonArrowFunction(){return(2&this.currentThisScope().flags)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(i){return new kp(i)}enter(i){this.scopeStack.push(this.createScope(i))}exit(){this.scopeStack.pop()}treatFunctionsAsVarInScope(i){return!!(2&i.flags||!this.inModule&&1&i.flags)}declareName(i,p,d){let D=this.currentScope();if(8&p||16&p)this.checkRedeclarationInScope(D,i,p,d),16&p?D.functions.push(i):D.lexical.push(i),8&p&&this.maybeExportDefined(D,i);else if(4&p)for(let y=this.scopeStack.length-1;y>=0&&(D=this.scopeStacky,this.checkRedeclarationInScope(D,i,p,d),D.var.push(i),this.maybeExportDefined(D,i),!(131&D.flags));--y);this.inModule&&1&D.flags&&this.undefinedExports.delete(i)}maybeExportDefined(i,p){this.inModule&&1&i.flags&&this.undefinedExports.delete(p)}checkRedeclarationInScope(i,p,d,D){this.isRedeclaredInScope(i,p,d)&&this.raise(D,v.VarRedeclaration,p)}isRedeclaredInScope(i,p,d){return!!(1&d)&&(8&d?i.lexical.indexOf(p)>-1||i.functions.indexOf(p)>-1||i.var.indexOf(p)>-1:16&d?i.lexical.indexOf(p)>-1||!this.treatFunctionsAsVarInScope(i)&&i.var.indexOf(p)>-1:i.lexical.indexOf(p)>-1&&!(8&i.flags&&i.lexical0===p)||!this.treatFunctionsAsVarInScope(i)&&i.functions.indexOf(p)>-1)}checkLocalExport(i){this.scopeStack0.lexical.indexOf(i.name)===-1&&this.scopeStack0.var.indexOf(i.name)===-1&&this.scopeStack0.functions.indexOf(i.name)===-1&&this.undefinedExports.set(i.name,i.start)}currentScope(){return this.scopeStackthis.scopeStack.length-1}currentVarScope(){for(let i=this.scopeStack.length-1;;i--){let p=this.scopeStacki;if(131&p.flags)return p}}currentThisScope(){for(let i=this.scopeStack.length-1;;i--){let p=this.scopeStacki;if((131&p.flags||64&p.flags)&&!(4&p.flags))return p}}}class J2 extends kp{constructor(...i){super(...i),this.types=[],this.enums=[],this.constEnums=[],this.classes=[],this.exportOnlyBindings=[]}}class X2 extends Ip{createScope(i){return new J2(i)}declareName(i,p,d){let D=this.currentScope();if(p&E)return this.maybeExportDefined(D,i),void D.exportOnlyBindings.push(i);super.declareName(...arguments),2&p&&(1&p||(this.checkRedeclarationInScope(D,i,p,d),this.maybeExportDefined(D,i)),D.types.push(i)),256&p&&D.enums.push(i),512&p&&D.constEnums.push(i),p&m&&D.classes.push(i)}isRedeclaredInScope(i,p,d){return i.enums.indexOf(p)>-1?256&d?!!(512&d)!=i.constEnums.indexOf(p)>-1:!0:d&m&&i.classes.indexOf(p)>-1?i.lexical.indexOf(p)>-1&&!!(1&d):!!(2&d&&i.types.indexOf(p)>-1)||super.isRedeclaredInScope(...arguments)}checkLocalExport(i){this.scopeStack0.types.indexOf(i.name)===-1&&this.scopeStack0.exportOnlyBindings.indexOf(i.name)===-1&&super.checkLocalExport(i)}}class K2{constructor(){this.stacks=[]}enter(i){this.stacks.push(i)}exit(){this.stacks.pop()}currentFlags(){return this.stacksthis.stacks.length-1}get hasAwait(){return(2&this.currentFlags())>0}get hasYield(){return(1&this.currentFlags())>0}get hasReturn(){return(4&this.currentFlags())>0}get hasIn(){return(8&this.currentFlags())>0}}function xi(I,i){return(I?2:0)|(i?1:0)}function Lp(I){if(I==null)throw new Error("Unexpected ".concat(I," value."));return I}function Op(I){if(!I)throw new Error("Assert fail")}let Ee=Object.freeze({ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateModifier:"Duplicate modifier: '%0'",EmptyHeritageClauseType:"'%0' list cannot be empty.",EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier",IndexSignatureHasAccessibility:"Index signatures cannot have an accessibility modifier ('%0')",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier",IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MixedLabeledAndUnlabeledElements:"Tuple members must all have names or all not have names.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:"Private elements cannot have an accessibility modifier ('%0')",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of age = 25: number use age: number = 25",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:"Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got %0"});a.placeholder=new c("%%",{startsExpr:!0});function Ft(I,i){return I.some(p=>Array.isArray(p)?p0===i:p===i)}function Fi(I,i,p){let d=I.find(D=>Array.isArray(D)?D0===i:D===i);return d&&Array.isArray(d)?d1p:null}let Mp="minimal","smart","fsharp",Rp="hash","bar",jp={estree:I=>class extends I{estreeParseRegExpLiteral({pattern:i,flags:p}){let d=null;try{d=new RegExp(i,p)}catch{}let D=this.estreeParseLiteral(d);return D.regex={pattern:i,flags:p},D}estreeParseBigIntLiteral(i){let p=typeof BigInt!="undefined"?BigInt(i):null,d=this.estreeParseLiteral(p);return d.bigint=String(d.value||i),d}estreeParseDecimalLiteral(i){let p=this.estreeParseLiteral(null);return p.decimal=String(p.value||i),p}estreeParseLiteral(i){return this.parseLiteral(i,"Literal")}directiveToStmt(i){let p=i.value,d=this.startNodeAt(i.start,i.loc.start),D=this.startNodeAt(p.start,p.loc.start);return D.value=p.value,D.raw=p.extra.raw,d.expression=this.finishNodeAt(D,"Literal",p.end,p.loc.end),d.directive=p.extra.raw.slice(1,-1),this.finishNodeAt(d,"ExpressionStatement",i.end,i.loc.end)}initFunction(i,p){super.initFunction(i,p),i.expression=!1}checkDeclaration(i){_(i)?this.checkDeclaration(i.value):super.checkDeclaration(i)}getObjectOrClassMethodParams(i){return i.value.params}checkLVal(i,p=64,d,D,y){switch(i.type){case"ObjectPattern":i.properties.forEach(x=>{this.checkLVal(x.type==="Property"?x.value:x,p,d,"object destructuring pattern",y)});break;default:super.checkLVal(i,p,d,D,y)}}checkProto(i,p,d,D){i.method||super.checkProto(i,p,d,D)}isValidDirective(i){var p;return i.type==="ExpressionStatement"&&i.expression.type==="Literal"&&typeof i.expression.value=="string"&&!((p=i.expression.extra)==null?void 0:p.parenthesized)}stmtToDirective(i){let p=super.stmtToDirective(i),d=i.expression.value;return p.value.value=d,p}parseBlockBody(i,p,d,D){super.parseBlockBody(i,p,d,D);let y=i.directives.map(x=>this.directiveToStmt(x));i.body=y.concat(i.body),delete i.directives}pushClassMethod(i,p,d,D,y,x){this.parseMethod(p,d,D,y,x,"ClassMethod",!0),p.typeParameters&&(p.value.typeParameters=p.typeParameters,delete p.typeParameters),i.body.push(p)}parseExprAtom(i){switch(this.state.type){case a.num:case a.string:return this.estreeParseLiteral(this.state.value);case a.regexp:return this.estreeParseRegExpLiteral(this.state.value);case a.bigint:return this.estreeParseBigIntLiteral(this.state.value);case a.decimal:return this.estreeParseDecimalLiteral(this.state.value);case a._null:return this.estreeParseLiteral(null);case a._true:return this.estreeParseLiteral(!0);case a._false:return this.estreeParseLiteral(!1);default:return super.parseExprAtom(i)}}parseLiteral(i,p,d,D){let y=super.parseLiteral(i,p,d,D);return y.raw=y.extra.raw,delete y.extra,y}parseFunctionBody(i,p,d=!1){super.parseFunctionBody(i,p,d),i.expression=i.body.type!=="BlockStatement"}parseMethod(i,p,d,D,y,x,S=!1){let k=this.startNode();return k.kind=i.kind,k=super.parseMethod(k,p,d,D,y,x,S),k.type="FunctionExpression",delete k.kind,i.value=k,x=x==="ClassMethod"?"MethodDefinition":x,this.finishNode(i,x)}parseObjectMethod(i,p,d,D,y){let x=super.parseObjectMethod(i,p,d,D,y);return x&&(x.type="Property",x.kind==="method"&&(x.kind="init"),x.shorthand=!1),x}parseObjectProperty(i,p,d,D,y){let x=super.parseObjectProperty(i,p,d,D,y);return x&&(x.kind="init",x.type="Property"),x}toAssignable(i){return _(i)?(this.toAssignable(i.value),i):super.toAssignable(i)}toAssignableObjectExpressionProp(i,p){if(i.kind==="get"||i.kind==="set")throw this.raise(i.key.start,v.PatternHasAccessor);if(i.method)throw this.raise(i.key.start,v.PatternHasMethod);super.toAssignableObjectExpressionProp(i,p)}finishCallExpression(i,p){return super.finishCallExpression(i,p),i.callee.type==="Import"&&(i.type="ImportExpression",i.source=i.arguments0,delete i.arguments,delete i.callee),i}toReferencedArguments(i){i.type!=="ImportExpression"&&super.toReferencedArguments(i)}parseExport(i){switch(super.parseExport(i),i.type){case"ExportAllDeclaration":i.exported=null;break;case"ExportNamedDeclaration":i.specifiers.length===1&&i.specifiers0.type==="ExportNamespaceSpecifier"&&(i.type="ExportAllDeclaration",i.exported=i.specifiers0.exported,delete i.specifiers)}return i}parseSubscript(i,p,d,D,y){let x=super.parseSubscript(i,p,d,D,y);if(y.optionalChainMember){if(x.type!=="OptionalMemberExpression"&&x.type!=="OptionalCallExpression"||(x.type=x.type.substring(8)),y.stop){let S=this.startNodeAtNode(x);return S.expression=x,this.finishNode(S,"ChainExpression")}}else x.type!=="MemberExpression"&&x.type!=="CallExpression"||(x.optional=!1);return x}},jsx:I=>class extends I{jsxReadToken(){let i="",p=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,Ir.UnterminatedJsxContent);let d=this.input.charCodeAt(this.state.pos);switch(d){case 60:case 123:return this.state.pos===this.state.start?d===60&&this.state.exprAllowed?(++this.state.pos,this.finishToken(a.jsxTagStart)):super.getTokenFromCode(d):(i+=this.input.slice(p,this.state.pos),this.finishToken(a.jsxText,i));case 38:i+=this.input.slice(p,this.state.pos),i+=this.jsxReadEntity(),p=this.state.pos;break;default:C(d)?(i+=this.input.slice(p,this.state.pos),i+=this.jsxReadNewLine(!0),p=this.state.pos):++this.state.pos}}}jsxReadNewLine(i){let p=this.input.charCodeAt(this.state.pos),d;return++this.state.pos,p===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,d=i?` :\r
):d=String.fromCharCode(p),++this.state.curLine,this.state.lineStart=this.state.pos,d}jsxReadString(i){let p="",d=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,v.UnterminatedString);let D=this.input.charCodeAt(this.state.pos);if(D===i)break;D===38?(p+=this.input.slice(d,this.state.pos),p+=this.jsxReadEntity(),d=this.state.pos):C(D)?(p+=this.input.slice(d,this.state.pos),p+=this.jsxReadNewLine(!1),d=this.state.pos):++this.state.pos}return p+=this.input.slice(d,this.state.pos++),this.finishToken(a.string,p)}jsxReadEntity(){let i,p="",d=0,D=this.input[this.state.pos],y=++this.state.pos;for(;this.state.pos<this.length&&d++<10;){if(D=this.input[this.state.pos++],D===";"){p[0]==="#"?p[1]==="x"?(p=p.substr(2),H2.test(p)&&(i=String.fromCodePoint(parseInt(p,16)))):(p=p.substr(1),G2.test(p)&&(i=String.fromCodePoint(parseInt(p,10)))):i=z2[p];break}p+=D}return i||(this.state.pos=y,"&")}jsxReadWord(){let i,p=this.state.pos;do i=this.input.charCodeAt(++this.state.pos);while(Ce(i)||i===45);return this.finishToken(a.jsxName,this.input.slice(p,this.state.pos))}jsxParseIdentifier(){let i=this.startNode();return this.match(a.jsxName)?i.name=this.state.value:this.state.type.keyword?i.name=this.state.type.keyword:this.unexpected(),this.next(),this.finishNode(i,"JSXIdentifier")}jsxParseNamespacedName(){let i=this.state.start,p=this.state.startLoc,d=this.jsxParseIdentifier();if(!this.eat(a.colon))return d;let D=this.startNodeAt(i,p);return D.namespace=d,D.name=this.jsxParseIdentifier(),this.finishNode(D,"JSXNamespacedName")}jsxParseElementName(){let i=this.state.start,p=this.state.startLoc,d=this.jsxParseNamespacedName();if(d.type==="JSXNamespacedName")return d;for(;this.eat(a.dot);){let D=this.startNodeAt(i,p);D.object=d,D.property=this.jsxParseIdentifier(),d=this.finishNode(D,"JSXMemberExpression")}return d}jsxParseAttributeValue(){let i;switch(this.state.type){case a.braceL:return i=this.startNode(),this.next(),i=this.jsxParseExpressionContainer(i),i.expression.type==="JSXEmptyExpression"&&this.raise(i.start,Ir.AttributeIsEmpty),i;case a.jsxTagStart:case a.string:return this.parseExprAtom();default:throw this.raise(this.state.start,Ir.UnsupportedJsxValue)}}jsxParseEmptyExpression(){let i=this.startNodeAt(this.state.lastTokEnd,this.state.lastTokEndLoc);return this.finishNodeAt(i,"JSXEmptyExpression",this.state.start,this.state.startLoc)}jsxParseSpreadChild(i){return this.next(),i.expression=this.parseExpression(),this.expect(a.braceR),this.finishNode(i,"JSXSpreadChild")}jsxParseExpressionContainer(i){return this.match(a.braceR)?i.expression=this.jsxParseEmptyExpression():i.expression=this.parseExpression(),this.expect(a.braceR),this.finishNode(i,"JSXExpressionContainer")}jsxParseAttribute(){let i=this.startNode();return this.eat(a.braceL)?(this.expect(a.ellipsis),i.argument=this.parseMaybeAssignAllowIn(),this.expect(a.braceR),this.finishNode(i,"JSXSpreadAttribute")):(i.name=this.jsxParseNamespacedName(),i.value=this.eat(a.eq)?this.jsxParseAttributeValue():null,this.finishNode(i,"JSXAttribute"))}jsxParseOpeningElementAt(i,p){let d=this.startNodeAt(i,p);return this.match(a.jsxTagEnd)?(this.expect(a.jsxTagEnd),this.finishNode(d,"JSXOpeningFragment")):(d.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(d))}jsxParseOpeningElementAfterName(i){let p=[];for(;!this.match(a.slash)&&!this.match(a.jsxTagEnd);)p.push(this.jsxParseAttribute());return i.attributes=p,i.selfClosing=this.eat(a.slash),this.expect(a.jsxTagEnd),this.finishNode(i,"JSXOpeningElement")}jsxParseClosingElementAt(i,p){let d=this.startNodeAt(i,p);return this.match(a.jsxTagEnd)?(this.expect(a.jsxTagEnd),this.finishNode(d,"JSXClosingFragment")):(d.name=this.jsxParseElementName(),this.expect(a.jsxTagEnd),this.finishNode(d,"JSXClosingElement"))}jsxParseElementAt(i,p){let d=this.startNodeAt(i,p),D=[],y=this.jsxParseOpeningElementAt(i,p),x=null;if(!y.selfClosing){e:for(;;)switch(this.state.type){case a.jsxTagStart:if(i=this.state.start,p=this.state.startLoc,this.next(),this.eat(a.slash)){x=this.jsxParseClosingElementAt(i,p);break e}D.push(this.jsxParseElementAt(i,p));break;case a.jsxText:D.push(this.parseExprAtom());break;case a.braceL:{let S=this.startNode();this.next(),this.match(a.ellipsis)?D.push(this.jsxParseSpreadChild(S)):D.push(this.jsxParseExpressionContainer(S));break}default:throw this.unexpected()}lr(y)&&!lr(x)?this.raise(x.start,Ir.MissingClosingTagFragment):!lr(y)&&lr(x)?this.raise(x.start,Ir.MissingClosingTagElement,Dn(y.name)):lr(y)||lr(x)||Dn(x.name)!==Dn(y.name)&&this.raise(x.start,Ir.MissingClosingTagElement,Dn(y.name))}if(lr(y)?(d.openingFragment=y,d.closingFragment=x):(d.openingElement=y,d.closingElement=x),d.children=D,this.isRelational("<"))throw this.raise(this.state.start,Ir.UnwrappedAdjacentJSXElements);return lr(y)?this.finishNode(d,"JSXFragment"):this.finishNode(d,"JSXElement")}jsxParseElement(){let i=this.state.start,p=this.state.startLoc;return this.next(),this.jsxParseElementAt(i,p)}parseExprAtom(i){return this.match(a.jsxText)?this.parseLiteral(this.state.value,"JSXText"):this.match(a.jsxTagStart)?this.jsxParseElement():this.isRelational("<")&&this.input.charCodeAt(this.state.pos)!==33?(this.finishToken(a.jsxTagStart),this.jsxParseElement()):super.parseExprAtom(i)}getTokenFromCode(i){if(this.state.inPropertyName)return super.getTokenFromCode(i);let p=this.curContext();if(p===M.j_expr)return this.jsxReadToken();if(p===M.j_oTag||p===M.j_cTag){if(ue(i))return this.jsxReadWord();if(i===62)return++this.state.pos,this.finishToken(a.jsxTagEnd);if((i===34||i===39)&&p===M.j_oTag)return this.jsxReadString(i)}return i===60&&this.state.exprAllowed&&this.input.charCodeAt(this.state.pos+1)!==33?(++this.state.pos,this.finishToken(a.jsxTagStart)):super.getTokenFromCode(i)}updateContext(i){if(this.match(a.braceL)){let p=this.curContext();p===M.j_oTag?this.state.context.push(M.braceExpression):p===M.j_expr?this.state.context.push(M.templateQuasi):super.updateContext(i),this.state.exprAllowed=!0}else{if(!this.match(a.slash)||i!==a.jsxTagStart)return super.updateContext(i);this.state.context.length-=2,this.state.context.push(M.j_cTag),this.state.exprAllowed=!1}}},flow:I=>class extends I{constructor(i,p){super(i,p),this.flowPragma=void 0,this.flowPragma=void 0}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}shouldParseEnums(){return!!this.getPluginOption("flow","enums")}finishToken(i,p){return i!==a.string&&i!==a.semi&&i!==a.interpreterDirective&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(i,p)}addComment(i){if(this.flowPragma===void 0){let p=W2.exec(i.value);if(p)if(p[1]==="flow")this.flowPragma="flow";else{if(p[1]!=="noflow")throw new Error("Unexpected flow pragma");this.flowPragma="noflow"}}return super.addComment(i)}flowParseTypeInitialiser(i){let p=this.state.inType;this.state.inType=!0,this.expect(i||a.colon);let d=this.flowParseType();return this.state.inType=p,d}flowParsePredicate(){let i=this.startNode(),p=this.state.startLoc,d=this.state.start;this.expect(a.modulo);let D=this.state.startLoc;return this.expectContextual("checks"),p.line===D.line&&p.column===D.column-1||this.raise(d,ae.UnexpectedSpaceBetweenModuloChecks),this.eat(a.parenL)?(i.value=this.parseExpression(),this.expect(a.parenR),this.finishNode(i,"DeclaredPredicate")):this.finishNode(i,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let i=this.state.inType;this.state.inType=!0,this.expect(a.colon);let p=null,d=null;return this.match(a.modulo)?(this.state.inType=i,d=this.flowParsePredicate()):(p=this.flowParseType(),this.state.inType=i,this.match(a.modulo)&&(d=this.flowParsePredicate())),[p,d]}flowParseDeclareClass(i){return this.next(),this.flowParseInterfaceish(i,!0),this.finishNode(i,"DeclareClass")}flowParseDeclareFunction(i){this.next();let p=i.id=this.parseIdentifier(),d=this.startNode(),D=this.startNode();this.isRelational("<")?d.typeParameters=this.flowParseTypeParameterDeclaration():d.typeParameters=null,this.expect(a.parenL);let y=this.flowParseFunctionTypeParams();return d.params=y.params,d.rest=y.rest,this.expect(a.parenR),[d.returnType,i.predicate]=this.flowParseTypeAndPredicateInitialiser(),D.typeAnnotation=this.finishNode(d,"FunctionTypeAnnotation"),p.typeAnnotation=this.finishNode(D,"TypeAnnotation"),this.resetEndLocation(p),this.semicolon(),this.finishNode(i,"DeclareFunction")}flowParseDeclare(i,p){if(this.match(a._class))return this.flowParseDeclareClass(i);if(this.match(a._function))return this.flowParseDeclareFunction(i);if(this.match(a._var))return this.flowParseDeclareVariable(i);if(this.eatContextual("module"))return this.match(a.dot)?this.flowParseDeclareModuleExports(i):(p&&this.raise(this.state.lastTokStart,ae.NestedDeclareModule),this.flowParseDeclareModule(i));if(this.isContextual("type"))return this.flowParseDeclareTypeAlias(i);if(this.isContextual("opaque"))return this.flowParseDeclareOpaqueType(i);if(this.isContextual("interface"))return this.flowParseDeclareInterface(i);if(this.match(a._export))return this.flowParseDeclareExportDeclaration(i,p);throw this.unexpected()}flowParseDeclareVariable(i){return this.next(),i.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(i.id.name,5,i.id.start),this.semicolon(),this.finishNode(i,"DeclareVariable")}flowParseDeclareModule(i){this.scope.enter(0),this.match(a.string)?i.id=this.parseExprAtom():i.id=this.parseIdentifier();let p=i.body=this.startNode(),d=p.body=[];for(this.expect(a.braceL);!this.match(a.braceR);){let x=this.startNode();this.match(a._import)?(this.next(),this.isContextual("type")||this.match(a._typeof)||this.raise(this.state.lastTokStart,ae.InvalidNonTypeImportInDeclareModule),this.parseImport(x)):(this.expectContextual("declare",ae.UnsupportedStatementInDeclareModule),x=this.flowParseDeclare(x,!0)),d.push(x)}this.scope.exit(),this.expect(a.braceR),this.finishNode(p,"BlockStatement");let D=null,y=!1;return d.forEach(x=>{(function(S){return S.type==="DeclareExportAllDeclaration"||S.type==="DeclareExportDeclaration"&&(!S.declaration||S.declaration.type!=="TypeAlias"&&S.declaration.type!=="InterfaceDeclaration")})(x)?(D==="CommonJS"&&this.raise(x.start,ae.AmbiguousDeclareModuleKind),D="ES"):x.type==="DeclareModuleExports"&&(y&&this.raise(x.start,ae.DuplicateDeclareModuleExports),D==="ES"&&this.raise(x.start,ae.AmbiguousDeclareModuleKind),D="CommonJS",y=!0)}),i.kind=D||"CommonJS",this.finishNode(i,"DeclareModule")}flowParseDeclareExportDeclaration(i,p){if(this.expect(a._export),this.eat(a._default))return this.match(a._function)||this.match(a._class)?i.declaration=this.flowParseDeclare(this.startNode()):(i.declaration=this.flowParseType(),this.semicolon()),i.default=!0,this.finishNode(i,"DeclareExportDeclaration");if(this.match(a._const)||this.isLet()||(this.isContextual("type")||this.isContextual("interface"))&&!p){let d=this.state.value,D=V2[d];throw this.raise(this.state.start,ae.UnsupportedDeclareExportKind,d,D)}if(this.match(a._var)||this.match(a._function)||this.match(a._class)||this.isContextual("opaque"))return i.declaration=this.flowParseDeclare(this.startNode()),i.default=!1,this.finishNode(i,"DeclareExportDeclaration");if(this.match(a.star)||this.match(a.braceL)||this.isContextual("interface")||this.isContextual("type")||this.isContextual("opaque"))return(i=this.parseExport(i)).type==="ExportNamedDeclaration"&&(i.type="ExportDeclaration",i.default=!1,delete i.exportKind),i.type="Declare"+i.type,i;throw this.unexpected()}flowParseDeclareModuleExports(i){return this.next(),this.expectContextual("exports"),i.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(i,"DeclareModuleExports")}flowParseDeclareTypeAlias(i){return this.next(),this.flowParseTypeAlias(i),i.type="DeclareTypeAlias",i}flowParseDeclareOpaqueType(i){return this.next(),this.flowParseOpaqueType(i,!0),i.type="DeclareOpaqueType",i}flowParseDeclareInterface(i){return this.next(),this.flowParseInterfaceish(i),this.finishNode(i,"DeclareInterface")}flowParseInterfaceish(i,p=!1){if(i.id=this.flowParseRestrictedIdentifier(!p,!0),this.scope.declareName(i.id.name,p?17:9,i.id.start),this.isRelational("<")?i.typeParameters=this.flowParseTypeParameterDeclaration():i.typeParameters=null,i.extends=[],i.implements=[],i.mixins=[],this.eat(a._extends))do i.extends.push(this.flowParseInterfaceExtends());while(!p&&this.eat(a.comma));if(this.isContextual("mixins")){this.next();do i.mixins.push(this.flowParseInterfaceExtends());while(this.eat(a.comma))}if(this.isContextual("implements")){this.next();do i.implements.push(this.flowParseInterfaceExtends());while(this.eat(a.comma))}i.body=this.flowParseObjectType({allowStatic:p,allowExact:!1,allowSpread:!1,allowProto:p,allowInexact:!1})}flowParseInterfaceExtends(){let i=this.startNode();return i.id=this.flowParseQualifiedTypeIdentifier(),this.isRelational("<")?i.typeParameters=this.flowParseTypeParameterInstantiation():i.typeParameters=null,this.finishNode(i,"InterfaceExtends")}flowParseInterface(i){return this.flowParseInterfaceish(i),this.finishNode(i,"InterfaceDeclaration")}checkNotUnderscore(i){i==="_"&&this.raise(this.state.start,ae.UnexpectedReservedUnderscore)}checkReservedType(i,p,d){$2.has(i)&&this.raise(p,d?ae.AssignReservedType:ae.UnexpectedReservedType,i)}flowParseRestrictedIdentifier(i,p){return this.checkReservedType(this.state.value,this.state.start,p),this.parseIdentifier(i)}flowParseTypeAlias(i){return i.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(i.id.name,9,i.id.start),this.isRelational("<")?i.typeParameters=this.flowParseTypeParameterDeclaration():i.typeParameters=null,i.right=this.flowParseTypeInitialiser(a.eq),this.semicolon(),this.finishNode(i,"TypeAlias")}flowParseOpaqueType(i,p){return this.expectContextual("type"),i.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(i.id.name,9,i.id.start),this.isRelational("<")?i.typeParameters=this.flowParseTypeParameterDeclaration():i.typeParameters=null,i.supertype=null,this.match(a.colon)&&(i.supertype=this.flowParseTypeInitialiser(a.colon)),i.impltype=null,p||(i.impltype=this.flowParseTypeInitialiser(a.eq)),this.semicolon(),this.finishNode(i,"OpaqueType")}flowParseTypeParameter(i=!1){let p=this.state.start,d=this.startNode(),D=this.flowParseVariance(),y=this.flowParseTypeAnnotatableIdentifier();return d.name=y.name,d.variance=D,d.bound=y.typeAnnotation,this.match(a.eq)?(this.eat(a.eq),d.default=this.flowParseType()):i&&this.raise(p,ae.MissingTypeParamDefault),this.finishNode(d,"TypeParameter")}flowParseTypeParameterDeclaration(){let i=this.state.inType,p=this.startNode();p.params=[],this.state.inType=!0,this.isRelational("<")||this.match(a.jsxTagStart)?this.next():this.unexpected();let d=!1;do{let D=this.flowParseTypeParameter(d);p.params.push(D),D.default&&(d=!0),this.isRelational(">")||this.expect(a.comma)}while(!this.isRelational(">"));return this.expectRelational(">"),this.state.inType=i,this.finishNode(p,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){let i=this.startNode(),p=this.state.inType;i.params=[],this.state.inType=!0,this.expectRelational("<");let d=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.isRelational(">");)i.params.push(this.flowParseType()),this.isRelational(">")||this.expect(a.comma);return this.state.noAnonFunctionType=d,this.expectRelational(">"),this.state.inType=p,this.finishNode(i,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){let i=this.startNode(),p=this.state.inType;for(i.params=[],this.state.inType=!0,this.expectRelational("<");!this.isRelational(">");)i.params.push(this.flowParseTypeOrImplicitInstantiation()),this.isRelational(">")||this.expect(a.comma);return this.expectRelational(">"),this.state.inType=p,this.finishNode(i,"TypeParameterInstantiation")}flowParseInterfaceType(){let i=this.startNode();if(this.expectContextual("interface"),i.extends=[],this.eat(a._extends))do i.extends.push(this.flowParseInterfaceExtends());while(this.eat(a.comma));return i.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(i,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(a.num)||this.match(a.string)?this.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(i,p,d){return i.static=p,this.lookahead().type===a.colon?(i.id=this.flowParseObjectPropertyKey(),i.key=this.flowParseTypeInitialiser()):(i.id=null,i.key=this.flowParseType()),this.expect(a.bracketR),i.value=this.flowParseTypeInitialiser(),i.variance=d,this.finishNode(i,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(i,p){return i.static=p,i.id=this.flowParseObjectPropertyKey(),this.expect(a.bracketR),this.expect(a.bracketR),this.isRelational("<")||this.match(a.parenL)?(i.method=!0,i.optional=!1,i.value=this.flowParseObjectTypeMethodish(this.startNodeAt(i.start,i.loc.start))):(i.method=!1,this.eat(a.question)&&(i.optional=!0),i.value=this.flowParseTypeInitialiser()),this.finishNode(i,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(i){for(i.params=[],i.rest=null,i.typeParameters=null,this.isRelational("<")&&(i.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(a.parenL);!this.match(a.parenR)&&!this.match(a.ellipsis);)i.params.push(this.flowParseFunctionTypeParam()),this.match(a.parenR)||this.expect(a.comma);return this.eat(a.ellipsis)&&(i.rest=this.flowParseFunctionTypeParam()),this.expect(a.parenR),i.returnType=this.flowParseTypeInitialiser(),this.finishNode(i,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(i,p){let d=this.startNode();return i.static=p,i.value=this.flowParseObjectTypeMethodish(d),this.finishNode(i,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:i,allowExact:p,allowSpread:d,allowProto:D,allowInexact:y}){let x=this.state.inType;this.state.inType=!0;let S=this.startNode(),k,L;S.callProperties=[],S.properties=[],S.indexers=[],S.internalSlots=[];let V=!1;for(p&&this.match(a.braceBarL)?(this.expect(a.braceBarL),k=a.braceBarR,L=!0):(this.expect(a.braceL),k=a.braceR,L=!1),S.exact=L;!this.match(k);){let J=!1,ee=null,be=null,Me=this.startNode();if(D&&this.isContextual("proto")){let ze=this.lookahead();ze.type!==a.colon&&ze.type!==a.question&&(this.next(),ee=this.state.start,i=!1)}if(i&&this.isContextual("static")){let ze=this.lookahead();ze.type!==a.colon&&ze.type!==a.question&&(this.next(),J=!0)}let ve=this.flowParseVariance();if(this.eat(a.bracketL))ee!=null&&this.unexpected(ee),this.eat(a.bracketL)?(ve&&this.unexpected(ve.start),S.internalSlots.push(this.flowParseObjectTypeInternalSlot(Me,J))):S.indexers.push(this.flowParseObjectTypeIndexer(Me,J,ve));else if(this.match(a.parenL)||this.isRelational("<"))ee!=null&&this.unexpected(ee),ve&&this.unexpected(ve.start),S.callProperties.push(this.flowParseObjectTypeCallProperty(Me,J));else{let ze="init";if(this.isContextual("get")||this.isContextual("set")){let Jt=this.lookahead();Jt.type!==a.name&&Jt.type!==a.string&&Jt.type!==a.num||(ze=this.state.value,this.next())}let gn=this.flowParseObjectTypeProperty(Me,J,ee,ve,ze,d,y??!L);gn===null?(V=!0,be=this.state.lastTokStart):S.properties.push(gn)}this.flowObjectTypeSemicolon(),!be||this.match(a.braceR)||this.match(a.braceBarR)||this.raise(be,ae.UnexpectedExplicitInexactInObject)}this.expect(k),d&&(S.inexact=V);let K=this.finishNode(S,"ObjectTypeAnnotation");return this.state.inType=x,K}flowParseObjectTypeProperty(i,p,d,D,y,x,S){if(this.eat(a.ellipsis))return this.match(a.comma)||this.match(a.semi)||this.match(a.braceR)||this.match(a.braceBarR)?(x?S||this.raise(this.state.lastTokStart,ae.InexactInsideExact):this.raise(this.state.lastTokStart,ae.InexactInsideNonObject),D&&this.raise(D.start,ae.InexactVariance),null):(x||this.raise(this.state.lastTokStart,ae.UnexpectedSpreadType),d!=null&&this.unexpected(d),D&&this.raise(D.start,ae.SpreadVariance),i.argument=this.flowParseType(),this.finishNode(i,"ObjectTypeSpreadProperty"));{i.key=this.flowParseObjectPropertyKey(),i.static=p,i.proto=d!=null,i.kind=y;let k=!1;return this.isRelational("<")||this.match(a.parenL)?(i.method=!0,d!=null&&this.unexpected(d),D&&this.unexpected(D.start),i.value=this.flowParseObjectTypeMethodish(this.startNodeAt(i.start,i.loc.start)),y!=="get"&&y!=="set"||this.flowCheckGetterSetterParams(i)):(y!=="init"&&this.unexpected(),i.method=!1,this.eat(a.question)&&(k=!0),i.value=this.flowParseTypeInitialiser(),i.variance=D),i.optional=k,this.finishNode(i,"ObjectTypeProperty")}}flowCheckGetterSetterParams(i){let p=i.kind==="get"?0:1,d=i.start;i.value.params.length+(i.value.rest?1:0)!==p&&(i.kind==="get"?this.raise(d,v.BadGetterArity):this.raise(d,v.BadSetterArity)),i.kind==="set"&&i.value.rest&&this.raise(d,v.BadSetterRestParameter)}flowObjectTypeSemicolon(){this.eat(a.semi)||this.eat(a.comma)||this.match(a.braceR)||this.match(a.braceBarR)||this.unexpected()}flowParseQualifiedTypeIdentifier(i,p,d){i=i||this.state.start,p=p||this.state.startLoc;let D=d||this.flowParseRestrictedIdentifier(!0);for(;this.eat(a.dot);){let y=this.startNodeAt(i,p);y.qualification=D,y.id=this.flowParseRestrictedIdentifier(!0),D=this.finishNode(y,"QualifiedTypeIdentifier")}return D}flowParseGenericType(i,p,d){let D=this.startNodeAt(i,p);return D.typeParameters=null,D.id=this.flowParseQualifiedTypeIdentifier(i,p,d),this.isRelational("<")&&(D.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(D,"GenericTypeAnnotation")}flowParseTypeofType(){let i=this.startNode();return this.expect(a._typeof),i.argument=this.flowParsePrimaryType(),this.finishNode(i,"TypeofTypeAnnotation")}flowParseTupleType(){let i=this.startNode();for(i.types=[],this.expect(a.bracketL);this.state.pos<this.length&&!this.match(a.bracketR)&&(i.types.push(this.flowParseType()),!this.match(a.bracketR));)this.expect(a.comma);return this.expect(a.bracketR),this.finishNode(i,"TupleTypeAnnotation")}flowParseFunctionTypeParam(){let i=null,p=!1,d=null,D=this.startNode(),y=this.lookahead();return y.type===a.colon||y.type===a.question?(i=this.parseIdentifier(),this.eat(a.question)&&(p=!0),d=this.flowParseTypeInitialiser()):d=this.flowParseType(),D.name=i,D.optional=p,D.typeAnnotation=d,this.finishNode(D,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(i){let p=this.startNodeAt(i.start,i.loc.start);return p.name=null,p.optional=!1,p.typeAnnotation=i,this.finishNode(p,"FunctionTypeParam")}flowParseFunctionTypeParams(i=[]){let p=null;for(;!this.match(a.parenR)&&!this.match(a.ellipsis);)i.push(this.flowParseFunctionTypeParam()),this.match(a.parenR)||this.expect(a.comma);return this.eat(a.ellipsis)&&(p=this.flowParseFunctionTypeParam()),{params:i,rest:p}}flowIdentToTypeAnnotation(i,p,d,D){switch(D.name){case"any":return this.finishNode(d,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(d,"BooleanTypeAnnotation");case"mixed":return this.finishNode(d,"MixedTypeAnnotation");case"empty":return this.finishNode(d,"EmptyTypeAnnotation");case"number":return this.finishNode(d,"NumberTypeAnnotation");case"string":return this.finishNode(d,"StringTypeAnnotation");case"symbol":return this.finishNode(d,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(D.name),this.flowParseGenericType(i,p,D)}}flowParsePrimaryType(){let i=this.state.start,p=this.state.startLoc,d=this.startNode(),D,y,x=!1,S=this.state.noAnonFunctionType;switch(this.state.type){case a.name:return this.isContextual("interface")?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(i,p,d,this.parseIdentifier());case a.braceL:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case a.braceBarL:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case a.bracketL:return this.state.noAnonFunctionType=!1,y=this.flowParseTupleType(),this.state.noAnonFunctionType=S,y;case a.relational:if(this.state.value==="<")return d.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(a.parenL),D=this.flowParseFunctionTypeParams(),d.params=D.params,d.rest=D.rest,this.expect(a.parenR),this.expect(a.arrow),d.returnType=this.flowParseType(),this.finishNode(d,"FunctionTypeAnnotation");break;case a.parenL:if(this.next(),!this.match(a.parenR)&&!this.match(a.ellipsis))if(this.match(a.name)){let k=this.lookahead().type;x=k!==a.question&&k!==a.colon}else x=!0;if(x){if(this.state.noAnonFunctionType=!1,y=this.flowParseType(),this.state.noAnonFunctionType=S,this.state.noAnonFunctionType||!(this.match(a.comma)||this.match(a.parenR)&&this.lookahead().type===a.arrow))return this.expect(a.parenR),y;this.eat(a.comma)}return D=y?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(y)]):this.flowParseFunctionTypeParams(),d.params=D.params,d.rest=D.rest,this.expect(a.parenR),this.expect(a.arrow),d.returnType=this.flowParseType(),d.typeParameters=null,this.finishNode(d,"FunctionTypeAnnotation");case a.string:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case a._true:case a._false:return d.value=this.match(a._true),this.next(),this.finishNode(d,"BooleanLiteralTypeAnnotation");case a.plusMin:if(this.state.value==="-"){if(this.next(),this.match(a.num))return this.parseLiteral(-this.state.value,"NumberLiteralTypeAnnotation",d.start,d.loc.start);if(this.match(a.bigint))return this.parseLiteral(-this.state.value,"BigIntLiteralTypeAnnotation",d.start,d.loc.start);throw this.raise(this.state.start,ae.UnexpectedSubtractionOperand)}throw this.unexpected();case a.num:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case a.bigint:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case a._void:return this.next(),this.finishNode(d,"VoidTypeAnnotation");case a._null:return this.next(),this.finishNode(d,"NullLiteralTypeAnnotation");case a._this:return this.next(),this.finishNode(d,"ThisTypeAnnotation");case a.star:return this.next(),this.finishNode(d,"ExistsTypeAnnotation");default:if(this.state.type.keyword==="typeof")return this.flowParseTypeofType();if(this.state.type.keyword){let k=this.state.type.label;return this.next(),super.createIdentifier(d,k)}}throw this.unexpected()}flowParsePostfixType(){let i=this.state.start,p=this.state.startLoc,d=this.flowParsePrimaryType();for(;this.match(a.bracketL)&&!this.canInsertSemicolon();){let D=this.startNodeAt(i,p);D.elementType=d,this.expect(a.bracketL),this.expect(a.bracketR),d=this.finishNode(D,"ArrayTypeAnnotation")}return d}flowParsePrefixType(){let i=this.startNode();return this.eat(a.question)?(i.typeAnnotation=this.flowParsePrefixType(),this.finishNode(i,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let i=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(a.arrow)){let p=this.startNodeAt(i.start,i.loc.start);return p.params=[this.reinterpretTypeAsFunctionTypeParam(i)],p.rest=null,p.returnType=this.flowParseType(),p.typeParameters=null,this.finishNode(p,"FunctionTypeAnnotation")}return i}flowParseIntersectionType(){let i=this.startNode();this.eat(a.bitwiseAND);let p=this.flowParseAnonFunctionWithoutParens();for(i.types=[p];this.eat(a.bitwiseAND);)i.types.push(this.flowParseAnonFunctionWithoutParens());return i.types.length===1?p:this.finishNode(i,"IntersectionTypeAnnotation")}flowParseUnionType(){let i=this.startNode();this.eat(a.bitwiseOR);let p=this.flowParseIntersectionType();for(i.types=[p];this.eat(a.bitwiseOR);)i.types.push(this.flowParseIntersectionType());return i.types.length===1?p:this.finishNode(i,"UnionTypeAnnotation")}flowParseType(){let i=this.state.inType;this.state.inType=!0;let p=this.flowParseUnionType();return this.state.inType=i,this.state.exprAllowed=this.state.exprAllowed||this.state.noAnonFunctionType,p}flowParseTypeOrImplicitInstantiation(){if(this.state.type===a.name&&this.state.value==="_"){let i=this.state.start,p=this.state.startLoc,d=this.parseIdentifier();return this.flowParseGenericType(i,p,d)}return this.flowParseType()}flowParseTypeAnnotation(){let i=this.startNode();return i.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(i,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(i){let p=i?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(a.colon)&&(p.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(p)),p}typeCastToParameter(i){return i.expression.typeAnnotation=i.typeAnnotation,this.resetEndLocation(i.expression,i.typeAnnotation.end,i.typeAnnotation.loc.end),i.expression}flowParseVariance(){let i=null;return this.match(a.plusMin)&&(i=this.startNode(),this.state.value==="+"?i.kind="plus":i.kind="minus",this.next(),this.finishNode(i,"Variance")),i}parseFunctionBody(i,p,d=!1){return p?this.forwardNoArrowParamsConversionAt(i,()=>super.parseFunctionBody(i,!0,d)):super.parseFunctionBody(i,!1,d)}parseFunctionBodyAndFinish(i,p,d=!1){if(this.match(a.colon)){let D=this.startNode();[D.typeAnnotation,i.predicate]=this.flowParseTypeAndPredicateInitialiser(),i.returnType=D.typeAnnotation?this.finishNode(D,"TypeAnnotation"):null}super.parseFunctionBodyAndFinish(i,p,d)}parseStatement(i,p){if(this.state.strict&&this.match(a.name)&&this.state.value==="interface"){let D=this.lookahead();if(D.type===a.name||Pp(D.value)){let y=this.startNode();return this.next(),this.flowParseInterface(y)}}else if(this.shouldParseEnums()&&this.isContextual("enum")){let D=this.startNode();return this.next(),this.flowParseEnumDeclaration(D)}let d=super.parseStatement(i,p);return this.flowPragma!==void 0||this.isValidDirective(d)||(this.flowPragma=null),d}parseExpressionStatement(i,p){if(p.type==="Identifier"){if(p.name==="declare"){if(this.match(a._class)||this.match(a.name)||this.match(a._function)||this.match(a._var)||this.match(a._export))return this.flowParseDeclare(i)}else if(this.match(a.name)){if(p.name==="interface")return this.flowParseInterface(i);if(p.name==="type")return this.flowParseTypeAlias(i);if(p.name==="opaque")return this.flowParseOpaqueType(i,!1)}}return super.parseExpressionStatement(i,p)}shouldParseExportDeclaration(){return this.isContextual("type")||this.isContextual("interface")||this.isContextual("opaque")||this.shouldParseEnums()&&this.isContextual("enum")||super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){return(!this.match(a.name)||!(this.state.value==="type"||this.state.value==="interface"||this.state.value==="opaque"||this.shouldParseEnums()&&this.state.value==="enum"))&&super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.shouldParseEnums()&&this.isContextual("enum")){let i=this.startNode();return this.next(),this.flowParseEnumDeclaration(i)}return super.parseExportDefaultExpression()}parseConditional(i,p,d,D){if(!this.match(a.question))return i;if(D){let J=this.tryParse(()=>super.parseConditional(i,p,d));return J.node?(J.error&&(this.state=J.failState),J.node):(D.start=J.error.pos||this.state.start,i)}this.expect(a.question);let y=this.state.clone(),x=this.state.noArrowAt,S=this.startNodeAt(p,d),{consequent:k,failed:L}=this.tryParseConditionalConsequent(),[V,K]=this.getArrowLikeExpressions(k);if(L||K.length>0){let J=[...x];if(K.length>0){this.state=y,this.state.noArrowAt=J;for(let ee=0;ee<K.length;ee++)J.push(K[ee].start);({consequent:k,failed:L}=this.tryParseConditionalConsequent()),[V,K]=this.getArrowLikeExpressions(k)}L&&V.length>1&&this.raise(y.start,ae.AmbiguousConditionalArrow),L&&V.length===1&&(this.state=y,this.state.noArrowAt=J.concat(V[0].start),{consequent:k,failed:L}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(k,!0),this.state.noArrowAt=x,this.expect(a.colon),S.test=i,S.consequent=k,S.alternate=this.forwardNoArrowParamsConversionAt(S,()=>this.parseMaybeAssign(void 0,void 0,void 0)),this.finishNode(S,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let i=this.parseMaybeAssignAllowIn(),p=!this.match(a.colon);return this.state.noArrowParamsConversionAt.pop(),{consequent:i,failed:p}}getArrowLikeExpressions(i,p){let d=[i],D=[];for(;d.length!==0;){let y=d.pop();y.type==="ArrowFunctionExpression"?(y.typeParameters||!y.returnType?this.finishArrowValidation(y):D.push(y),d.push(y.body)):y.type==="ConditionalExpression"&&(d.push(y.consequent),d.push(y.alternate))}return p?(D.forEach(y=>this.finishArrowValidation(y)),[D,[]]):function(y,x){let S=[],k=[];for(let L=0;L<y.length;L++)(x(y[L],L,y)?S:k).push(y[L]);return[S,k]}(D,y=>y.params.every(x=>this.isAssignable(x,!0)))}finishArrowValidation(i){var p;this.toAssignableList(i.params,(p=i.extra)==null?void 0:p.trailingComma),this.scope.enter(6),super.checkParams(i,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(i,p){let d;return this.state.noArrowParamsConversionAt.indexOf(i.start)!==-1?(this.state.noArrowParamsConversionAt.push(this.state.start),d=p(),this.state.noArrowParamsConversionAt.pop()):d=p(),d}parseParenItem(i,p,d){if(i=super.parseParenItem(i,p,d),this.eat(a.question)&&(i.optional=!0,this.resetEndLocation(i)),this.match(a.colon)){let D=this.startNodeAt(p,d);return D.expression=i,D.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(D,"TypeCastExpression")}return i}assertModuleNodeAllowed(i){i.type==="ImportDeclaration"&&(i.importKind==="type"||i.importKind==="typeof")||i.type==="ExportNamedDeclaration"&&i.exportKind==="type"||i.type==="ExportAllDeclaration"&&i.exportKind==="type"||super.assertModuleNodeAllowed(i)}parseExport(i){let p=super.parseExport(i);return p.type!=="ExportNamedDeclaration"&&p.type!=="ExportAllDeclaration"||(p.exportKind=p.exportKind||"value"),p}parseExportDeclaration(i){if(this.isContextual("type")){i.exportKind="type";let p=this.startNode();return this.next(),this.match(a.braceL)?(i.specifiers=this.parseExportSpecifiers(),this.parseExportFrom(i),null):this.flowParseTypeAlias(p)}if(this.isContextual("opaque")){i.exportKind="type";let p=this.startNode();return this.next(),this.flowParseOpaqueType(p,!1)}if(this.isContextual("interface")){i.exportKind="type";let p=this.startNode();return this.next(),this.flowParseInterface(p)}if(this.shouldParseEnums()&&this.isContextual("enum")){i.exportKind="value";let p=this.startNode();return this.next(),this.flowParseEnumDeclaration(p)}return super.parseExportDeclaration(i)}eatExportStar(i){return!!super.eatExportStar(...arguments)||!(!this.isContextual("type")||this.lookahead().type!==a.star)&&(i.exportKind="type",this.next(),this.next(),!0)}maybeParseExportNamespaceSpecifier(i){let p=this.state.start,d=super.maybeParseExportNamespaceSpecifier(i);return d&&i.exportKind==="type"&&this.unexpected(p),d}parseClassId(i,p,d){super.parseClassId(i,p,d),this.isRelational("<")&&(i.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(i,p,d){let D=this.state.start;if(this.isContextual("declare")){if(this.parseClassMemberFromModifier(i,p))return;p.declare=!0}super.parseClassMember(i,p,d),p.declare&&(p.type!=="ClassProperty"&&p.type!=="ClassPrivateProperty"?this.raise(D,ae.DeclareClassElement):p.value&&this.raise(p.value.start,ae.DeclareClassFieldInitializer))}getTokenFromCode(i){let p=this.input.charCodeAt(this.state.pos+1);return i===123&&p===124?this.finishOp(a.braceBarL,2):!this.state.inType||i!==62&&i!==60?this.state.inType&&i===63?this.finishOp(a.question,1):function(d,D){return d===64&&D===64}(i,p)?(this.state.isIterator=!0,super.readWord()):super.getTokenFromCode(i):this.finishOp(a.relational,1)}isAssignable(i,p){switch(i.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":return!0;case"ObjectExpression":{let d=i.properties.length-1;return i.properties.every((D,y)=>D.type!=="ObjectMethod"&&(y===d||D.type==="SpreadElement")&&this.isAssignable(D))}case"ObjectProperty":return this.isAssignable(i.value);case"SpreadElement":return this.isAssignable(i.argument);case"ArrayExpression":return i.elements.every(d=>this.isAssignable(d));case"AssignmentExpression":return i.operator==="=";case"ParenthesizedExpression":case"TypeCastExpression":return this.isAssignable(i.expression);case"MemberExpression":case"OptionalMemberExpression":return!p;default:return!1}}toAssignable(i){return i.type==="TypeCastExpression"?super.toAssignable(this.typeCastToParameter(i)):super.toAssignable(i)}toAssignableList(i,p){for(let d=0;d<i.length;d++){let D=i[d];(D==null?void 0:D.type)==="TypeCastExpression"&&(i[d]=this.typeCastToParameter(D))}return super.toAssignableList(i,p)}toReferencedList(i,p){for(let D=0;D<i.length;D++){var d;let y=i[D];y&&y.type==="TypeCastExpression"&&!((d=y.extra)==null?void 0:d.parenthesized)&&(i.length>1||!p)&&this.raise(y.typeAnnotation.start,ae.TypeCastInPattern)}return i}parseArrayLike(i,p,d,D){let y=super.parseArrayLike(i,p,d,D);return p&&!this.state.maybeInArrowParameters&&this.toReferencedList(y.elements),y}checkLVal(i,p=64,d,D){if(i.type!=="TypeCastExpression")return super.checkLVal(i,p,d,D)}parseClassProperty(i){return this.match(a.colon)&&(i.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(i)}parseClassPrivateProperty(i){return this.match(a.colon)&&(i.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(i)}isClassMethod(){return this.isRelational("<")||super.isClassMethod()}isClassProperty(){return this.match(a.colon)||super.isClassProperty()}isNonstaticConstructor(i){return!this.match(a.colon)&&super.isNonstaticConstructor(i)}pushClassMethod(i,p,d,D,y,x){p.variance&&this.unexpected(p.variance.start),delete p.variance,this.isRelational("<")&&(p.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(i,p,d,D,y,x)}pushClassPrivateMethod(i,p,d,D){p.variance&&this.unexpected(p.variance.start),delete p.variance,this.isRelational("<")&&(p.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(i,p,d,D)}parseClassSuper(i){if(super.parseClassSuper(i),i.superClass&&this.isRelational("<")&&(i.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual("implements")){this.next();let p=i.implements=[];do{let d=this.startNode();d.id=this.flowParseRestrictedIdentifier(!0),this.isRelational("<")?d.typeParameters=this.flowParseTypeParameterInstantiation():d.typeParameters=null,p.push(this.finishNode(d,"ClassImplements"))}while(this.eat(a.comma))}}parsePropertyName(i,p){let d=this.flowParseVariance(),D=super.parsePropertyName(i,p);return i.variance=d,D}parseObjPropValue(i,p,d,D,y,x,S,k){let L;i.variance&&this.unexpected(i.variance.start),delete i.variance,this.isRelational("<")&&!S&&(L=this.flowParseTypeParameterDeclaration(),this.match(a.parenL)||this.unexpected()),super.parseObjPropValue(i,p,d,D,y,x,S,k),L&&((i.value||i).typeParameters=L)}parseAssignableListItemTypes(i){return this.eat(a.question)&&(i.type!=="Identifier"&&this.raise(i.start,ae.OptionalBindingPattern),i.optional=!0),this.match(a.colon)&&(i.typeAnnotation=this.flowParseTypeAnnotation()),this.resetEndLocation(i),i}parseMaybeDefault(i,p,d){let D=super.parseMaybeDefault(i,p,d);return D.type==="AssignmentPattern"&&D.typeAnnotation&&D.right.start<D.typeAnnotation.start&&this.raise(D.typeAnnotation.start,ae.TypeBeforeInitializer),D}shouldParseDefaultImport(i){return Ai(i)?Np(this.state):super.shouldParseDefaultImport(i)}parseImportSpecifierLocal(i,p,d,D){p.local=Ai(i)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),this.checkLVal(p.local,9,void 0,D),i.specifiers.push(this.finishNode(p,d))}maybeParseDefaultImportSpecifier(i){i.importKind="value";let p=null;if(this.match(a._typeof)?p="typeof":this.isContextual("type")&&(p="type"),p){let d=this.lookahead();p==="type"&&d.type===a.star&&this.unexpected(d.start),(Np(d)||d.type===a.braceL||d.type===a.star)&&(this.next(),i.importKind=p)}return super.maybeParseDefaultImportSpecifier(i)}parseImportSpecifier(i){let p=this.startNode(),d=this.state.start,D=this.parseModuleExportName(),y=null;D.type==="Identifier"&&(D.name==="type"?y="type":D.name==="typeof"&&(y="typeof"));let x=!1;if(this.isContextual("as")&&!this.isLookaheadContextual("as")){let L=this.parseIdentifier(!0);y===null||this.match(a.name)||this.state.type.keyword?(p.imported=D,p.importKind=null,p.local=this.parseIdentifier()):(p.imported=L,p.importKind=y,p.local=L.__clone())}else if(y!==null&&(this.match(a.name)||this.state.type.keyword))p.imported=this.parseIdentifier(!0),p.importKind=y,this.eatContextual("as")?p.local=this.parseIdentifier():(x=!0,p.local=p.imported.__clone());else{if(D.type==="StringLiteral")throw this.raise(p.start,v.ImportBindingIsString,D.value);x=!0,p.imported=D,p.importKind=null,p.local=p.imported.__clone()}let S=Ai(i),k=Ai(p);S&&k&&this.raise(d,ae.ImportTypeShorthandOnlyInPureImport),(S||k)&&this.checkReservedType(p.local.name,p.local.start,!0),!x||S||k||this.checkReservedWord(p.local.name,p.start,!0,!0),this.checkLVal(p.local,9,void 0,"import specifier"),i.specifiers.push(this.finishNode(p,"ImportSpecifier"))}parseFunctionParams(i,p){let d=i.kind;d!=="get"&&d!=="set"&&this.isRelational("<")&&(i.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(i,p)}parseVarId(i,p){super.parseVarId(i,p),this.match(a.colon)&&(i.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(i.id))}parseAsyncArrowFromCallExpression(i,p){if(this.match(a.colon)){let d=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,i.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=d}return super.parseAsyncArrowFromCallExpression(i,p)}shouldParseAsyncArrow(){return this.match(a.colon)||super.shouldParseAsyncArrow()}parseMaybeAssign(i,p,d){var D;let y,x=null;if(this.hasPlugin("jsx")&&(this.match(a.jsxTagStart)||this.isRelational("<"))){if(x=this.state.clone(),y=this.tryParse(()=>super.parseMaybeAssign(i,p,d),x),!y.error)return y.node;let{context:L}=this.state;L[L.length-1]===M.j_oTag?L.length-=2:L[L.length-1]===M.j_expr&&(L.length-=1)}if(((D=y)==null?void 0:D.error)||this.isRelational("<")){var S,k;let L;x=x||this.state.clone();let V=this.tryParse(J=>{var ee;L=this.flowParseTypeParameterDeclaration();let be=this.forwardNoArrowParamsConversionAt(L,()=>{let ve=super.parseMaybeAssign(i,p,d);return this.resetStartLocationFromNode(ve,L),ve});be.type!=="ArrowFunctionExpression"&&((ee=be.extra)==null?void 0:ee.parenthesized)&&J();let Me=this.maybeUnwrapTypeCastExpression(be);return Me.typeParameters=L,this.resetStartLocationFromNode(Me,L),be},x),K=null;if(V.node&&this.maybeUnwrapTypeCastExpression(V.node).type==="ArrowFunctionExpression"){if(!V.error&&!V.aborted)return V.node.async&&this.raise(L.start,ae.UnexpectedTypeParameterBeforeAsyncArrowFunction),V.node;K=V.node}if((S=y)==null?void 0:S.node)return this.state=y.failState,y.node;if(K)return this.state=V.failState,K;throw((k=y)==null?void 0:k.thrown)?y.error:V.thrown?V.error:this.raise(L.start,ae.UnexpectedTokenAfterTypeParameter)}return super.parseMaybeAssign(i,p,d)}parseArrow(i){if(this.match(a.colon)){let p=this.tryParse(()=>{let d=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let D=this.startNode();return[D.typeAnnotation,i.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=d,this.canInsertSemicolon()&&this.unexpected(),this.match(a.arrow)||this.unexpected(),D});if(p.thrown)return null;p.error&&(this.state=p.failState),i.returnType=p.node.typeAnnotation?this.finishNode(p.node,"TypeAnnotation"):null}return super.parseArrow(i)}shouldParseArrow(){return this.match(a.colon)||super.shouldParseArrow()}setArrowFunctionParameters(i,p){this.state.noArrowParamsConversionAt.indexOf(i.start)!==-1?i.params=p:super.setArrowFunctionParameters(i,p)}checkParams(i,p,d){if(!d||this.state.noArrowParamsConversionAt.indexOf(i.start)===-1)return super.checkParams(...arguments)}parseParenAndDistinguishExpression(i){return super.parseParenAndDistinguishExpression(i&&this.state.noArrowAt.indexOf(this.state.start)===-1)}parseSubscripts(i,p,d,D){if(i.type==="Identifier"&&i.name==="async"&&this.state.noArrowAt.indexOf(p)!==-1){this.next();let y=this.startNodeAt(p,d);y.callee=i,y.arguments=this.parseCallExpressionArguments(a.parenR,!1),i=this.finishNode(y,"CallExpression")}else if(i.type==="Identifier"&&i.name==="async"&&this.isRelational("<")){let y=this.state.clone(),x=this.tryParse(k=>this.parseAsyncArrowWithTypeParameters(p,d)||k(),y);if(!x.error&&!x.aborted)return x.node;let S=this.tryParse(()=>super.parseSubscripts(i,p,d,D),y);if(S.node&&!S.error)return S.node;if(x.node)return this.state=x.failState,x.node;if(S.node)return this.state=S.failState,S.node;throw x.error||S.error}return super.parseSubscripts(i,p,d,D)}parseSubscript(i,p,d,D,y){if(this.match(a.questionDot)&&this.isLookaheadToken_lt()){if(y.optionalChainMember=!0,D)return y.stop=!0,i;this.next();let x=this.startNodeAt(p,d);return x.callee=i,x.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(a.parenL),x.arguments=this.parseCallExpressionArguments(a.parenR,!1),x.optional=!0,this.finishCallExpression(x,!0)}if(!D&&this.shouldParseTypes()&&this.isRelational("<")){let x=this.startNodeAt(p,d);x.callee=i;let S=this.tryParse(()=>(x.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(a.parenL),x.arguments=this.parseCallExpressionArguments(a.parenR,!1),y.optionalChainMember&&(x.optional=!1),this.finishCallExpression(x,y.optionalChainMember)));if(S.node)return S.error&&(this.state=S.failState),S.node}return super.parseSubscript(i,p,d,D,y)}parseNewArguments(i){let p=null;this.shouldParseTypes()&&this.isRelational("<")&&(p=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),i.typeArguments=p,super.parseNewArguments(i)}parseAsyncArrowWithTypeParameters(i,p){let d=this.startNodeAt(i,p);if(this.parseFunctionParams(d),this.parseArrow(d))return this.parseArrowExpression(d,void 0,!0)}readToken_mult_modulo(i){let p=this.input.charCodeAt(this.state.pos+1);if(i===42&&p===47&&this.state.hasFlowComment)return this.state.hasFlowComment=!1,this.state.pos+=2,void this.nextToken();super.readToken_mult_modulo(i)}readToken_pipe_amp(i){let p=this.input.charCodeAt(this.state.pos+1);i!==124||p!==125?super.readToken_pipe_amp(i):this.finishOp(a.braceBarR,2)}parseTopLevel(i,p){let d=super.parseTopLevel(i,p);return this.state.hasFlowComment&&this.raise(this.state.pos,ae.UnterminatedFlowComment),d}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment())return this.state.hasFlowComment&&this.unexpected(null,ae.NestedFlowComment),this.hasFlowCommentCompletion(),this.state.pos+=this.skipFlowComment(),void(this.state.hasFlowComment=!0);if(this.state.hasFlowComment){let i=this.input.indexOf("*-/",this.state.pos+=2);if(i===-1)throw this.raise(this.state.pos-2,v.UnterminatedComment);this.state.pos=i+3}else super.skipBlockComment()}skipFlowComment(){let{pos:i}=this.state,p=2;for(;[32,9].includes(this.input.charCodeAt(i+p));)p++;let d=this.input.charCodeAt(p+i),D=this.input.charCodeAt(p+i+1);return d===58&&D===58?p+2:this.input.slice(p+i,p+i+12)==="flow-include"?p+12:d===58&&D!==58&&p}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(this.state.pos,v.UnterminatedComment)}flowEnumErrorBooleanMemberNotInitialized(i,{enumName:p,memberName:d}){this.raise(i,ae.EnumBooleanMemberNotInitialized,d,p)}flowEnumErrorInvalidMemberName(i,{enumName:p,memberName:d}){let D=d[0].toUpperCase()+d.slice(1);this.raise(i,ae.EnumInvalidMemberName,d,D,p)}flowEnumErrorDuplicateMemberName(i,{enumName:p,memberName:d}){this.raise(i,ae.EnumDuplicateMemberName,d,p)}flowEnumErrorInconsistentMemberValues(i,{enumName:p}){this.raise(i,ae.EnumInconsistentMemberValues,p)}flowEnumErrorInvalidExplicitType(i,{enumName:p,suppliedType:d}){return this.raise(i,d===null?ae.EnumInvalidExplicitTypeUnknownSupplied:ae.EnumInvalidExplicitType,p,d)}flowEnumErrorInvalidMemberInitializer(i,{enumName:p,explicitType:d,memberName:D}){let y=null;switch(d){case"boolean":case"number":case"string":y=ae.EnumInvalidMemberInitializerPrimaryType;break;case"symbol":y=ae.EnumInvalidMemberInitializerSymbolType;break;default:y=ae.EnumInvalidMemberInitializerUnknownType}return this.raise(i,y,p,D,d)}flowEnumErrorNumberMemberNotInitialized(i,{enumName:p,memberName:d}){this.raise(i,ae.EnumNumberMemberNotInitialized,p,d)}flowEnumErrorStringMemberInconsistentlyInitailized(i,{enumName:p}){this.raise(i,ae.EnumStringMemberInconsistentlyInitailized,p)}flowEnumMemberInit(){let i=this.state.start,p=()=>this.match(a.comma)||this.match(a.braceR);switch(this.state.type){case a.num:{let d=this.parseLiteral(this.state.value,"NumericLiteral");return p()?{type:"number",pos:d.start,value:d}:{type:"invalid",pos:i}}case a.string:{let d=this.parseLiteral(this.state.value,"StringLiteral");return p()?{type:"string",pos:d.start,value:d}:{type:"invalid",pos:i}}case a._true:case a._false:{let d=this.parseBooleanLiteral();return p()?{type:"boolean",pos:d.start,value:d}:{type:"invalid",pos:i}}default:return{type:"invalid",pos:i}}}flowEnumMemberRaw(){let i=this.state.start;return{id:this.parseIdentifier(!0),init:this.eat(a.eq)?this.flowEnumMemberInit():{type:"none",pos:i}}}flowEnumCheckExplicitTypeMismatch(i,p,d){let{explicitType:D}=p;D!==null&&D!==d&&this.flowEnumErrorInvalidMemberInitializer(i,p)}flowEnumMembers({enumName:i,explicitType:p}){let d=new Set,D={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]};for(;!this.match(a.braceR);){let y=this.startNode(),{id:x,init:S}=this.flowEnumMemberRaw(),k=x.name;if(k==="")continue;/^[a-z]/.test(k)&&this.flowEnumErrorInvalidMemberName(x.start,{enumName:i,memberName:k}),d.has(k)&&this.flowEnumErrorDuplicateMemberName(x.start,{enumName:i,memberName:k}),d.add(k);let L={enumName:i,explicitType:p,memberName:k};switch(y.id=x,S.type){case"boolean":this.flowEnumCheckExplicitTypeMismatch(S.pos,L,"boolean"),y.init=S.value,D.booleanMembers.push(this.finishNode(y,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(S.pos,L,"number"),y.init=S.value,D.numberMembers.push(this.finishNode(y,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(S.pos,L,"string"),y.init=S.value,D.stringMembers.push(this.finishNode(y,"EnumStringMember"));break;case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(S.pos,L);case"none":switch(p){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(S.pos,L);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(S.pos,L);break;default:D.defaultedMembers.push(this.finishNode(y,"EnumDefaultedMember"))}}this.match(a.braceR)||this.expect(a.comma)}return D}flowEnumStringMembers(i,p,{enumName:d}){if(i.length===0)return p;if(p.length===0)return i;if(p.length>i.length){for(let D=0;D<i.length;D++){let y=i[D];this.flowEnumErrorStringMemberInconsistentlyInitailized(y.start,{enumName:d})}return p}for(let D=0;D<p.length;D++){let y=p[D];this.flowEnumErrorStringMemberInconsistentlyInitailized(y.start,{enumName:d})}return i}flowEnumParseExplicitType({enumName:i}){if(this.eatContextual("of")){if(!this.match(a.name))throw this.flowEnumErrorInvalidExplicitType(this.state.start,{enumName:i,suppliedType:null});let{value:p}=this.state;return this.next(),p!=="boolean"&&p!=="number"&&p!=="string"&&p!=="symbol"&&this.flowEnumErrorInvalidExplicitType(this.state.start,{enumName:i,suppliedType:p}),p}return null}flowEnumBody(i,{enumName:p,nameLoc:d}){let D=this.flowEnumParseExplicitType({enumName:p});this.expect(a.braceL);let y=this.flowEnumMembers({enumName:p,explicitType:D});switch(D){case"boolean":return i.explicitType=!0,i.members=y.booleanMembers,this.expect(a.braceR),this.finishNode(i,"EnumBooleanBody");case"number":return i.explicitType=!0,i.members=y.numberMembers,this.expect(a.braceR),this.finishNode(i,"EnumNumberBody");case"string":return i.explicitType=!0,i.members=this.flowEnumStringMembers(y.stringMembers,y.defaultedMembers,{enumName:p}),this.expect(a.braceR),this.finishNode(i,"EnumStringBody");case"symbol":return i.members=y.defaultedMembers,this.expect(a.braceR),this.finishNode(i,"EnumSymbolBody");default:{let x=()=>(i.members=[],this.expect(a.braceR),this.finishNode(i,"EnumStringBody"));i.explicitType=!1;let S=y.booleanMembers.length,k=y.numberMembers.length,L=y.stringMembers.length,V=y.defaultedMembers.length;if(S||k||L||V){if(S||k){if(!k&&!L&&S>=V){for(let K=0,J=y.defaultedMembers;K<J.length;K++){let ee=J[K];this.flowEnumErrorBooleanMemberNotInitialized(ee.start,{enumName:p,memberName:ee.id.name})}return i.members=y.booleanMembers,this.expect(a.braceR),this.finishNode(i,"EnumBooleanBody")}if(!S&&!L&&k>=V){for(let K=0,J=y.defaultedMembers;K<J.length;K++){let ee=J[K];this.flowEnumErrorNumberMemberNotInitialized(ee.start,{enumName:p,memberName:ee.id.name})}return i.members=y.numberMembers,this.expect(a.braceR),this.finishNode(i,"EnumNumberBody")}return this.flowEnumErrorInconsistentMemberValues(d,{enumName:p}),x()}return i.members=this.flowEnumStringMembers(y.stringMembers,y.defaultedMembers,{enumName:p}),this.expect(a.braceR),this.finishNode(i,"EnumStringBody")}return x()}}}flowParseEnumDeclaration(i){let p=this.parseIdentifier();return i.id=p,i.body=this.flowEnumBody(this.startNode(),{enumName:p.name,nameLoc:p.start}),this.finishNode(i,"EnumDeclaration")}updateContext(i){this.match(a.name)&&this.state.value==="of"&&i===a.name&&this.input.slice(this.state.lastTokStart,this.state.lastTokEnd)==="interface"?this.state.exprAllowed=!1:super.updateContext(i)}isLookaheadToken_lt(){let i=this.nextTokenStart();if(this.input.charCodeAt(i)===60){let p=this.input.charCodeAt(i+1);return p!==60&&p!==61}return!1}maybeUnwrapTypeCastExpression(i){return i.type==="TypeCastExpression"?i.expression:i}},typescript:I=>class extends I{getScopeHandler(){return X2}tsIsIdentifier(){return this.match(a.name)}tsNextTokenCanFollowModifier(){return this.next(),!(this.hasPrecedingLineBreak()||this.match(a.parenL)||this.match(a.parenR)||this.match(a.colon)||this.match(a.eq)||this.match(a.question)||this.match(a.bang))}tsParseModifier(i){if(!this.match(a.name))return;let p=this.state.value;return i.indexOf(p)!==-1&&this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this))?p:void 0}tsParseModifiers(i,p){for(;;){let d=this.state.start,D=this.tsParseModifier(p);if(!D)break;Object.hasOwnProperty.call(i,D)&&this.raise(d,Ee.DuplicateModifier,D),i[D]=!0}}tsIsListTerminator(i){switch(i){case"EnumMembers":case"TypeMembers":return this.match(a.braceR);case"HeritageClauseElement":return this.match(a.braceL);case"TupleElementTypes":return this.match(a.bracketR);case"TypeParametersOrArguments":return this.isRelational(">")}throw new Error("Unreachable")}tsParseList(i,p){let d=[];for(;!this.tsIsListTerminator(i);)d.push(p());return d}tsParseDelimitedList(i,p){return Lp(this.tsParseDelimitedListWorker(i,p,!0))}tsParseDelimitedListWorker(i,p,d){let D=[];for(;!this.tsIsListTerminator(i);){let y=p();if(y==null)return;if(D.push(y),!this.eat(a.comma)){if(this.tsIsListTerminator(i))break;return void(d&&this.expect(a.comma))}}return D}tsParseBracketedList(i,p,d,D){D||(d?this.expect(a.bracketL):this.expectRelational("<"));let y=this.tsParseDelimitedList(i,p);return d?this.expect(a.bracketR):this.expectRelational(">"),y}tsParseImportType(){let i=this.startNode();return this.expect(a._import),this.expect(a.parenL),this.match(a.string)||this.raise(this.state.start,Ee.UnsupportedImportTypeArgument),i.argument=this.parseExprAtom(),this.expect(a.parenR),this.eat(a.dot)&&(i.qualifier=this.tsParseEntityName(!0)),this.isRelational("<")&&(i.typeParameters=this.tsParseTypeArguments()),this.finishNode(i,"TSImportType")}tsParseEntityName(i){let p=this.parseIdentifier();for(;this.eat(a.dot);){let d=this.startNodeAtNode(p);d.left=p,d.right=this.parseIdentifier(i),p=this.finishNode(d,"TSQualifiedName")}return p}tsParseTypeReference(){let i=this.startNode();return i.typeName=this.tsParseEntityName(!1),!this.hasPrecedingLineBreak()&&this.isRelational("<")&&(i.typeParameters=this.tsParseTypeArguments()),this.finishNode(i,"TSTypeReference")}tsParseThisTypePredicate(i){this.next();let p=this.startNodeAtNode(i);return p.parameterName=i,p.typeAnnotation=this.tsParseTypeAnnotation(!1),this.finishNode(p,"TSTypePredicate")}tsParseThisTypeNode(){let i=this.startNode();return this.next(),this.finishNode(i,"TSThisType")}tsParseTypeQuery(){let i=this.startNode();return this.expect(a._typeof),this.match(a._import)?i.exprName=this.tsParseImportType():i.exprName=this.tsParseEntityName(!0),this.finishNode(i,"TSTypeQuery")}tsParseTypeParameter(){let i=this.startNode();return i.name=this.parseIdentifierName(i.start),i.constraint=this.tsEatThenParseType(a._extends),i.default=this.tsEatThenParseType(a.eq),this.finishNode(i,"TSTypeParameter")}tsTryParseTypeParameters(){if(this.isRelational("<"))return this.tsParseTypeParameters()}tsParseTypeParameters(){let i=this.startNode();return this.isRelational("<")||this.match(a.jsxTagStart)?this.next():this.unexpected(),i.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this),!1,!0),i.params.length===0&&this.raise(i.start,Ee.EmptyTypeParameters),this.finishNode(i,"TSTypeParameterDeclaration")}tsTryNextParseConstantContext(){return this.lookahead().type===a._const?(this.next(),this.tsParseTypeReference()):null}tsFillSignature(i,p){let d=i===a.arrow;p.typeParameters=this.tsTryParseTypeParameters(),this.expect(a.parenL),p.parameters=this.tsParseBindingListForSignature(),(d||this.match(i))&&(p.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(i))}tsParseBindingListForSignature(){return this.parseBindingList(a.parenR,41).map(i=>(i.type!=="Identifier"&&i.type!=="RestElement"&&i.type!=="ObjectPattern"&&i.type!=="ArrayPattern"&&this.raise(i.start,Ee.UnsupportedSignatureParameterKind,i.type),i))}tsParseTypeMemberSemicolon(){this.eat(a.comma)||this.semicolon()}tsParseSignatureMember(i,p){return this.tsFillSignature(a.colon,p),this.tsParseTypeMemberSemicolon(),this.finishNode(p,i)}tsIsUnambiguouslyIndexSignature(){return this.next(),this.eat(a.name)&&this.match(a.colon)}tsTryParseIndexSignature(i){if(!this.match(a.bracketL)||!this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this)))return;this.expect(a.bracketL);let p=this.parseIdentifier();p.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(p),this.expect(a.bracketR),i.parameters=[p];let d=this.tsTryParseTypeAnnotation();return d&&(i.typeAnnotation=d),this.tsParseTypeMemberSemicolon(),this.finishNode(i,"TSIndexSignature")}tsParsePropertyOrMethodSignature(i,p){this.eat(a.question)&&(i.optional=!0);let d=i;if(p||!this.match(a.parenL)&&!this.isRelational("<")){let D=d;p&&(D.readonly=!0);let y=this.tsTryParseTypeAnnotation();return y&&(D.typeAnnotation=y),this.tsParseTypeMemberSemicolon(),this.finishNode(D,"TSPropertySignature")}{let D=d;return this.tsFillSignature(a.colon,D),this.tsParseTypeMemberSemicolon(),this.finishNode(D,"TSMethodSignature")}}tsParseTypeMember(){let i=this.startNode();if(this.match(a.parenL)||this.isRelational("<"))return this.tsParseSignatureMember("TSCallSignatureDeclaration",i);if(this.match(a._new)){let D=this.startNode();return this.next(),this.match(a.parenL)||this.isRelational("<")?this.tsParseSignatureMember("TSConstructSignatureDeclaration",i):(i.key=this.createIdentifier(D,"new"),this.tsParsePropertyOrMethodSignature(i,!1))}let p=!!this.tsParseModifier(["readonly"]),d=this.tsTryParseIndexSignature(i);return d?(p&&(i.readonly=!0),d):(this.parsePropertyName(i,!1),this.tsParsePropertyOrMethodSignature(i,p))}tsParseTypeLiteral(){let i=this.startNode();return i.members=this.tsParseObjectTypeMembers(),this.finishNode(i,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(a.braceL);let i=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(a.braceR),i}tsIsStartOfMappedType(){return this.next(),this.eat(a.plusMin)?this.isContextual("readonly"):(this.isContextual("readonly")&&this.next(),!!this.match(a.bracketL)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(a._in))))}tsParseMappedTypeParameter(){let i=this.startNode();return i.name=this.parseIdentifierName(i.start),i.constraint=this.tsExpectThenParseType(a._in),this.finishNode(i,"TSTypeParameter")}tsParseMappedType(){let i=this.startNode();return this.expect(a.braceL),this.match(a.plusMin)?(i.readonly=this.state.value,this.next(),this.expectContextual("readonly")):this.eatContextual("readonly")&&(i.readonly=!0),this.expect(a.bracketL),i.typeParameter=this.tsParseMappedTypeParameter(),i.nameType=this.eatContextual("as")?this.tsParseType():null,this.expect(a.bracketR),this.match(a.plusMin)?(i.optional=this.state.value,this.next(),this.expect(a.question)):this.eat(a.question)&&(i.optional=!0),i.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(a.braceR),this.finishNode(i,"TSMappedType")}tsParseTupleType(){let i=this.startNode();i.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let p=!1,d=null;return i.elementTypes.forEach(D=>{var y;let{type:x}=D;!p||x==="TSRestType"||x==="TSOptionalType"||x==="TSNamedTupleMember"&&D.optional||this.raise(D.start,Ee.OptionalTypeBeforeRequired),p=p||x==="TSNamedTupleMember"&&D.optional||x==="TSOptionalType",x==="TSRestType"&&(x=(D=D.typeAnnotation).type);let S=x==="TSNamedTupleMember";d=(y=d)!=null?y:S,d!==S&&this.raise(D.start,Ee.MixedLabeledAndUnlabeledElements)}),this.finishNode(i,"TSTupleType")}tsParseTupleElementType(){let{start:i,startLoc:p}=this.state,d=this.eat(a.ellipsis),D=this.tsParseType(),y=this.eat(a.question);if(this.eat(a.colon)){let x=this.startNodeAtNode(D);x.optional=y,D.type!=="TSTypeReference"||D.typeParameters||D.typeName.type!=="Identifier"?(this.raise(D.start,Ee.InvalidTupleMemberLabel),x.label=D):x.label=D.typeName,x.elementType=this.tsParseType(),D=this.finishNode(x,"TSNamedTupleMember")}else if(y){let x=this.startNodeAtNode(D);x.typeAnnotation=D,D=this.finishNode(x,"TSOptionalType")}if(d){let x=this.startNodeAt(i,p);x.typeAnnotation=D,D=this.finishNode(x,"TSRestType")}return D}tsParseParenthesizedType(){let i=this.startNode();return this.expect(a.parenL),i.typeAnnotation=this.tsParseType(),this.expect(a.parenR),this.finishNode(i,"TSParenthesizedType")}tsParseFunctionOrConstructorType(i){let p=this.startNode();return i==="TSConstructorType"&&this.expect(a._new),this.tsFillSignature(a.arrow,p),this.finishNode(p,i)}tsParseLiteralTypeNode(){let i=this.startNode();return i.literal=(()=>{switch(this.state.type){case a.num:case a.bigint:case a.string:case a._true:case a._false:return this.parseExprAtom();default:throw this.unexpected()}})(),this.finishNode(i,"TSLiteralType")}tsParseTemplateLiteralType(){let i=this.startNode();return i.literal=this.parseTemplate(!1),this.finishNode(i,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let i=this.tsParseThisTypeNode();return this.isContextual("is")&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(i):i}tsParseNonArrayType(){switch(this.state.type){case a.name:case a._void:case a._null:{let i=this.match(a._void)?"TSVoidKeyword":this.match(a._null)?"TSNullKeyword":function(p){switch(p){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}(this.state.value);if(i!==void 0&&this.lookaheadCharCode()!==46){let p=this.startNode();return this.next(),this.finishNode(p,i)}return this.tsParseTypeReference()}case a.string:case a.num:case a.bigint:case a._true:case a._false:return this.tsParseLiteralTypeNode();case a.plusMin:if(this.state.value==="-"){let i=this.startNode(),p=this.lookahead();if(p.type!==a.num&&p.type!==a.bigint)throw this.unexpected();return i.literal=this.parseMaybeUnary(),this.finishNode(i,"TSLiteralType")}break;case a._this:return this.tsParseThisTypeOrThisTypePredicate();case a._typeof:return this.tsParseTypeQuery();case a._import:return this.tsParseImportType();case a.braceL:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case a.bracketL:return this.tsParseTupleType();case a.parenL:return this.tsParseParenthesizedType();case a.backQuote:return this.tsParseTemplateLiteralType()}throw this.unexpected()}tsParseArrayTypeOrHigher(){let i=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(a.bracketL);)if(this.match(a.bracketR)){let p=this.startNodeAtNode(i);p.elementType=i,this.expect(a.bracketR),i=this.finishNode(p,"TSArrayType")}else{let p=this.startNodeAtNode(i);p.objectType=i,p.indexType=this.tsParseType(),this.expect(a.bracketR),i=this.finishNode(p,"TSIndexedAccessType")}return i}tsParseTypeOperator(i){let p=this.startNode();return this.expectContextual(i),p.operator=i,p.typeAnnotation=this.tsParseTypeOperatorOrHigher(),i==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(p),this.finishNode(p,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(i){switch(i.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(i.start,Ee.UnexpectedReadonly)}}tsParseInferType(){let i=this.startNode();this.expectContextual("infer");let p=this.startNode();return p.name=this.parseIdentifierName(p.start),i.typeParameter=this.finishNode(p,"TSTypeParameter"),this.finishNode(i,"TSInferType")}tsParseTypeOperatorOrHigher(){let i=["keyof","unique","readonly"].find(p=>this.isContextual(p));return i?this.tsParseTypeOperator(i):this.isContextual("infer")?this.tsParseInferType():this.tsParseArrayTypeOrHigher()}tsParseUnionOrIntersectionType(i,p,d){this.eat(d);let D=p();if(this.match(d)){let y=[D];for(;this.eat(d);)y.push(p());let x=this.startNodeAtNode(D);x.types=y,D=this.finishNode(x,i)}return D}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),a.bitwiseAND)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),a.bitwiseOR)}tsIsStartOfFunctionType(){return!!this.isRelational("<")||this.match(a.parenL)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(this.match(a.name)||this.match(a._this))return this.next(),!0;if(this.match(a.braceL)){let i=1;for(this.next();i>0;)this.match(a.braceL)?++i:this.match(a.braceR)&&--i,this.next();return!0}if(this.match(a.bracketL)){let i=1;for(this.next();i>0;)this.match(a.bracketL)?++i:this.match(a.bracketR)&&--i,this.next();return!0}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(a.parenR)||this.match(a.ellipsis)||this.tsSkipParameterStart()&&(this.match(a.colon)||this.match(a.comma)||this.match(a.question)||this.match(a.eq)||this.match(a.parenR)&&(this.next(),this.match(a.arrow))))}tsParseTypeOrTypePredicateAnnotation(i){return this.tsInType(()=>{let p=this.startNode();this.expect(i);let d=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(d&&this.match(a._this)){let S=this.tsParseThisTypeOrThisTypePredicate();if(S.type==="TSThisType"){let k=this.startNodeAtNode(p);k.parameterName=S,k.asserts=!0,S=this.finishNode(k,"TSTypePredicate")}else S.asserts=!0;return p.typeAnnotation=S,this.finishNode(p,"TSTypeAnnotation")}let D=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!D){if(!d)return this.tsParseTypeAnnotation(!1,p);let S=this.startNodeAtNode(p);return S.parameterName=this.parseIdentifier(),S.asserts=d,p.typeAnnotation=this.finishNode(S,"TSTypePredicate"),this.finishNode(p,"TSTypeAnnotation")}let y=this.tsParseTypeAnnotation(!1),x=this.startNodeAtNode(p);return x.parameterName=D,x.typeAnnotation=y,x.asserts=d,p.typeAnnotation=this.finishNode(x,"TSTypePredicate"),this.finishNode(p,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){return this.match(a.colon)?this.tsParseTypeOrTypePredicateAnnotation(a.colon):void 0}tsTryParseTypeAnnotation(){return this.match(a.colon)?this.tsParseTypeAnnotation():void 0}tsTryParseType(){return this.tsEatThenParseType(a.colon)}tsParseTypePredicatePrefix(){let i=this.parseIdentifier();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.next(),i}tsParseTypePredicateAsserts(){if(!this.match(a.name)||this.state.value!=="asserts"||this.hasPrecedingLineBreak())return!1;let i=this.state.containsEsc;return this.next(),!(!this.match(a.name)&&!this.match(a._this))&&(i&&this.raise(this.state.lastTokStart,v.InvalidEscapedReservedWord,"asserts"),!0)}tsParseTypeAnnotation(i=!0,p=this.startNode()){return this.tsInType(()=>{i&&this.expect(a.colon),p.typeAnnotation=this.tsParseType()}),this.finishNode(p,"TSTypeAnnotation")}tsParseType(){Op(this.state.inType);let i=this.tsParseNonConditionalType();if(this.hasPrecedingLineBreak()||!this.eat(a._extends))return i;let p=this.startNodeAtNode(i);return p.checkType=i,p.extendsType=this.tsParseNonConditionalType(),this.expect(a.question),p.trueType=this.tsParseType(),this.expect(a.colon),p.falseType=this.tsParseType(),this.finishNode(p,"TSConditionalType")}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(a._new)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){let i=this.startNode(),p=this.tsTryNextParseConstantContext();return i.typeAnnotation=p||this.tsNextThenParseType(),this.expectRelational(">"),i.expression=this.parseMaybeUnary(),this.finishNode(i,"TSTypeAssertion")}tsParseHeritageClause(i){let p=this.state.start,d=this.tsParseDelimitedList("HeritageClauseElement",this.tsParseExpressionWithTypeArguments.bind(this));return d.length||this.raise(p,Ee.EmptyHeritageClauseType,i),d}tsParseExpressionWithTypeArguments(){let i=this.startNode();return i.expression=this.tsParseEntityName(!1),this.isRelational("<")&&(i.typeParameters=this.tsParseTypeArguments()),this.finishNode(i,"TSExpressionWithTypeArguments")}tsParseInterfaceDeclaration(i){i.id=this.parseIdentifier(),this.checkLVal(i.id,130,void 0,"typescript interface declaration"),i.typeParameters=this.tsTryParseTypeParameters(),this.eat(a._extends)&&(i.extends=this.tsParseHeritageClause("extends"));let p=this.startNode();return p.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),i.body=this.finishNode(p,"TSInterfaceBody"),this.finishNode(i,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(i){return i.id=this.parseIdentifier(),this.checkLVal(i.id,2,void 0,"typescript type alias"),i.typeParameters=this.tsTryParseTypeParameters(),i.typeAnnotation=this.tsInType(()=>{if(this.expect(a.eq),this.isContextual("intrinsic")&&this.lookahead().type!==a.dot){let p=this.startNode();return this.next(),this.finishNode(p,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(i,"TSTypeAliasDeclaration")}tsInNoContext(i){let p=this.state.context;this.state.context=[p[0]];try{return i()}finally{this.state.context=p}}tsInType(i){let p=this.state.inType;this.state.inType=!0;try{return i()}finally{this.state.inType=p}}tsEatThenParseType(i){return this.match(i)?this.tsNextThenParseType():void 0}tsExpectThenParseType(i){return this.tsDoThenParseType(()=>this.expect(i))}tsNextThenParseType(){return this.tsDoThenParseType(()=>this.next())}tsDoThenParseType(i){return this.tsInType(()=>(i(),this.tsParseType()))}tsParseEnumMember(){let i=this.startNode();return i.id=this.match(a.string)?this.parseExprAtom():this.parseIdentifier(!0),this.eat(a.eq)&&(i.initializer=this.parseMaybeAssignAllowIn()),this.finishNode(i,"TSEnumMember")}tsParseEnumDeclaration(i,p){return p&&(i.const=!0),i.id=this.parseIdentifier(),this.checkLVal(i.id,p?779:267,void 0,"typescript enum declaration"),this.expect(a.braceL),i.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(a.braceR),this.finishNode(i,"TSEnumDeclaration")}tsParseModuleBlock(){let i=this.startNode();return this.scope.enter(0),this.expect(a.braceL),this.parseBlockOrModuleBlockBody(i.body=[],void 0,!0,a.braceR),this.scope.exit(),this.finishNode(i,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(i,p=!1){if(i.id=this.parseIdentifier(),p||this.checkLVal(i.id,1024,null,"module or namespace declaration"),this.eat(a.dot)){let d=this.startNode();this.tsParseModuleOrNamespaceDeclaration(d,!0),i.body=d}else this.scope.enter(f),this.prodParam.enter(0),i.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(i,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(i){return this.isContextual("global")?(i.global=!0,i.id=this.parseIdentifier()):this.match(a.string)?i.id=this.parseExprAtom():this.unexpected(),this.match(a.braceL)?(this.scope.enter(f),this.prodParam.enter(0),i.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(i,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(i,p){return i.isExport=p||!1,i.id=this.parseIdentifier(),this.checkLVal(i.id,9,void 0,"import equals declaration"),this.expect(a.eq),i.moduleReference=this.tsParseModuleReference(),this.semicolon(),this.finishNode(i,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual("require")&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){let i=this.startNode();if(this.expectContextual("require"),this.expect(a.parenL),!this.match(a.string))throw this.unexpected();return i.expression=this.parseExprAtom(),this.expect(a.parenR),this.finishNode(i,"TSExternalModuleReference")}tsLookAhead(i){let p=this.state.clone(),d=i();return this.state=p,d}tsTryParseAndCatch(i){let p=this.tryParse(d=>i()||d());if(!p.aborted&&p.node)return p.error&&(this.state=p.failState),p.node}tsTryParse(i){let p=this.state.clone(),d=i();return d!==void 0&&d!==!1?d:void(this.state=p)}tsTryParseDeclare(i){if(this.isLineTerminator())return;let p,d=this.state.type;return this.isContextual("let")&&(d=a._var,p="let"),this.tsInDeclareContext(()=>{switch(d){case a._function:return i.declare=!0,this.parseFunctionStatement(i,!1,!0);case a._class:return i.declare=!0,this.parseClass(i,!0,!1);case a._const:if(this.match(a._const)&&this.isLookaheadContextual("enum"))return this.expect(a._const),this.expectContextual("enum"),this.tsParseEnumDeclaration(i,!0);case a._var:return p=p||this.state.value,this.parseVarStatement(i,p);case a.name:{let D=this.state.value;return D==="global"?this.tsParseAmbientExternalModuleDeclaration(i):this.tsParseDeclaration(i,D,!0)}}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0)}tsParseExpressionStatement(i,p){switch(p.name){case"declare":{let d=this.tsTryParseDeclare(i);if(d)return d.declare=!0,d;break}case"global":if(this.match(a.braceL)){this.scope.enter(f),this.prodParam.enter(0);let d=i;return d.global=!0,d.id=p,d.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(d,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(i,p.name,!1)}}tsParseDeclaration(i,p,d){switch(p){case"abstract":if(this.tsCheckLineTerminatorAndMatch(a._class,d)){let D=i;return D.abstract=!0,d&&(this.next(),this.match(a._class)||this.unexpected(null,a._class)),this.parseClass(D,!0,!1)}break;case"enum":if(d||this.match(a.name))return d&&this.next(),this.tsParseEnumDeclaration(i,!1);break;case"interface":if(this.tsCheckLineTerminatorAndMatch(a.name,d))return d&&this.next(),this.tsParseInterfaceDeclaration(i);break;case"module":if(d&&this.next(),this.match(a.string))return this.tsParseAmbientExternalModuleDeclaration(i);if(this.tsCheckLineTerminatorAndMatch(a.name,d))return this.tsParseModuleOrNamespaceDeclaration(i);break;case"namespace":if(this.tsCheckLineTerminatorAndMatch(a.name,d))return d&&this.next(),this.tsParseModuleOrNamespaceDeclaration(i);break;case"type":if(this.tsCheckLineTerminatorAndMatch(a.name,d))return d&&this.next(),this.tsParseTypeAliasDeclaration(i)}}tsCheckLineTerminatorAndMatch(i,p){return(p||this.match(i))&&!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(i,p){if(!this.isRelational("<"))return;let d=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let D=this.tsTryParseAndCatch(()=>{let y=this.startNodeAt(i,p);return y.typeParameters=this.tsParseTypeParameters(),super.parseFunctionParams(y),y.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(a.arrow),y});return this.state.maybeInArrowParameters=d,D?this.parseArrowExpression(D,null,!0):void 0}tsParseTypeArguments(){let i=this.startNode();return i.params=this.tsInType(()=>this.tsInNoContext(()=>(this.expectRelational("<"),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),i.params.length===0&&this.raise(i.start,Ee.EmptyTypeArguments),this.state.exprAllowed=!1,this.expectRelational(">"),this.finishNode(i,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){if(this.match(a.name))switch(this.state.value){case"abstract":case"declare":case"enum":case"interface":case"module":case"namespace":case"type":return!0}return!1}isExportDefaultSpecifier(){return!this.tsIsDeclarationStart()&&super.isExportDefaultSpecifier()}parseAssignableListItem(i,p){let d=this.state.start,D=this.state.startLoc,y,x=!1;i!==void 0&&(y=this.parseAccessModifier(),x=!!this.tsParseModifier(["readonly"]),i===!1&&(y||x)&&this.raise(d,Ee.UnexpectedParameterModifier));let S=this.parseMaybeDefault();this.parseAssignableListItemTypes(S);let k=this.parseMaybeDefault(S.start,S.loc.start,S);if(y||x){let L=this.startNodeAt(d,D);return p.length&&(L.decorators=p),y&&(L.accessibility=y),x&&(L.readonly=x),k.type!=="Identifier"&&k.type!=="AssignmentPattern"&&this.raise(L.start,Ee.UnsupportedParameterPropertyKind),L.parameter=k,this.finishNode(L,"TSParameterProperty")}return p.length&&(S.decorators=p),k}parseFunctionBodyAndFinish(i,p,d=!1){this.match(a.colon)&&(i.returnType=this.tsParseTypeOrTypePredicateAnnotation(a.colon));let D=p==="FunctionDeclaration"?"TSDeclareFunction":p==="ClassMethod"?"TSDeclareMethod":void 0;D&&!this.match(a.braceL)&&this.isLineTerminator()?this.finishNode(i,D):D==="TSDeclareFunction"&&this.state.isDeclareContext&&(this.raise(i.start,Ee.DeclareFunctionHasImplementation),i.declare)?super.parseFunctionBodyAndFinish(i,D,d):super.parseFunctionBodyAndFinish(i,p,d)}registerFunctionStatementId(i){!i.body&&i.id?this.checkLVal(i.id,1024,null,"function name"):super.registerFunctionStatementId(...arguments)}tsCheckForInvalidTypeCasts(i){i.forEach(p=>{(p==null?void 0:p.type)==="TSTypeCastExpression"&&this.raise(p.typeAnnotation.start,Ee.UnexpectedTypeAnnotation)})}toReferencedList(i,p){return this.tsCheckForInvalidTypeCasts(i),i}parseArrayLike(...i){let p=super.parseArrayLike(...i);return p.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(p.elements),p}parseSubscript(i,p,d,D,y){if(!this.hasPrecedingLineBreak()&&this.match(a.bang)){this.state.exprAllowed=!1,this.next();let x=this.startNodeAt(p,d);return x.expression=i,this.finishNode(x,"TSNonNullExpression")}if(this.isRelational("<")){let x=this.tsTryParseAndCatch(()=>{if(!D&&this.atPossibleAsyncArrow(i)){let L=this.tsTryParseGenericAsyncArrowFunction(p,d);if(L)return L}let S=this.startNodeAt(p,d);S.callee=i;let k=this.tsParseTypeArguments();if(k){if(!D&&this.eat(a.parenL))return S.arguments=this.parseCallExpressionArguments(a.parenR,!1),this.tsCheckForInvalidTypeCasts(S.arguments),S.typeParameters=k,this.finishCallExpression(S,y.optionalChainMember);if(this.match(a.backQuote)){let L=this.parseTaggedTemplateExpression(i,p,d,y);return L.typeParameters=k,L}}this.unexpected()});if(x)return x}return super.parseSubscript(i,p,d,D,y)}parseNewArguments(i){if(this.isRelational("<")){let p=this.tsTryParseAndCatch(()=>{let d=this.tsParseTypeArguments();return this.match(a.parenL)||this.unexpected(),d});p&&(i.typeParameters=p)}super.parseNewArguments(i)}parseExprOp(i,p,d,D){if(Lp(a._in.binop)>D&&!this.hasPrecedingLineBreak()&&this.isContextual("as")){let y=this.startNodeAt(p,d);y.expression=i;let x=this.tsTryNextParseConstantContext();return y.typeAnnotation=x||this.tsNextThenParseType(),this.finishNode(y,"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(y,p,d,D)}return super.parseExprOp(i,p,d,D)}checkReservedWord(i,p,d,D){}checkDuplicateExports(){}parseImport(i){if(this.match(a.name)||this.match(a.star)||this.match(a.braceL)){let d=this.lookahead();if(this.match(a.name)&&d.type===a.eq)return this.tsParseImportEqualsDeclaration(i);!this.isContextual("type")||d.type===a.comma||d.type===a.name&&d.value==="from"||(i.importKind="type",this.next())}i.importKind||(i.importKind="value");let p=super.parseImport(i);return p.importKind==="type"&&p.specifiers.length>1&&p.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(p.start,"A type-only import can specify a default import or named bindings, but not both."),p}parseExport(i){if(this.match(a._import))return this.expect(a._import),this.tsParseImportEqualsDeclaration(i,!0);if(this.eat(a.eq)){let p=i;return p.expression=this.parseExpression(),this.semicolon(),this.finishNode(p,"TSExportAssignment")}if(this.eatContextual("as")){let p=i;return this.expectContextual("namespace"),p.id=this.parseIdentifier(),this.semicolon(),this.finishNode(p,"TSNamespaceExportDeclaration")}return this.isContextual("type")&&this.lookahead().type===a.braceL?(this.next(),i.exportKind="type"):i.exportKind="value",super.parseExport(i)}isAbstractClass(){return this.isContextual("abstract")&&this.lookahead().type===a._class}parseExportDefaultExpression(){if(this.isAbstractClass()){let i=this.startNode();return this.next(),this.parseClass(i,!0,!0),i.abstract=!0,i}if(this.state.value==="interface"){let i=this.tsParseDeclaration(this.startNode(),this.state.value,!0);if(i)return i}return super.parseExportDefaultExpression()}parseStatementContent(i,p){if(this.state.type===a._const){let d=this.lookahead();if(d.type===a.name&&d.value==="enum"){let D=this.startNode();return this.expect(a._const),this.expectContextual("enum"),this.tsParseEnumDeclaration(D,!0)}}return super.parseStatementContent(i,p)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}parseClassMember(i,p,d){this.tsParseModifiers(p,["declare"]);let D=this.parseAccessModifier();D&&(p.accessibility=D),this.tsParseModifiers(p,["declare"]);let y=()=>{super.parseClassMember(i,p,d)};p.declare?this.tsInDeclareContext(y):y()}parseClassMemberWithIsStatic(i,p,d,D){this.tsParseModifiers(p,["abstract","readonly","declare"]);let y=this.tsTryParseIndexSignature(p);if(y)return i.body.push(y),p.abstract&&this.raise(p.start,Ee.IndexSignatureHasAbstract),D&&this.raise(p.start,Ee.IndexSignatureHasStatic),p.accessibility&&this.raise(p.start,Ee.IndexSignatureHasAccessibility,p.accessibility),void(p.declare&&this.raise(p.start,Ee.IndexSignatureHasDeclare));super.parseClassMemberWithIsStatic(i,p,d,D)}parsePostMemberNameModifiers(i){this.eat(a.question)&&(i.optional=!0),i.readonly&&this.match(a.parenL)&&this.raise(i.start,Ee.ClassMethodHasReadonly),i.declare&&this.match(a.parenL)&&this.raise(i.start,Ee.ClassMethodHasDeclare)}parseExpressionStatement(i,p){return(p.type==="Identifier"?this.tsParseExpressionStatement(i,p):void 0)||super.parseExpressionStatement(i,p)}shouldParseExportDeclaration(){return!!this.tsIsDeclarationStart()||super.shouldParseExportDeclaration()}parseConditional(i,p,d,D){if(!D||!this.match(a.question))return super.parseConditional(i,p,d,D);let y=this.tryParse(()=>super.parseConditional(i,p,d));return y.node?(y.error&&(this.state=y.failState),y.node):(D.start=y.error.pos||this.state.start,i)}parseParenItem(i,p,d){if(i=super.parseParenItem(i,p,d),this.eat(a.question)&&(i.optional=!0,this.resetEndLocation(i)),this.match(a.colon)){let D=this.startNodeAt(p,d);return D.expression=i,D.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(D,"TSTypeCastExpression")}return i}parseExportDeclaration(i){let p=this.state.start,d=this.state.startLoc,D=this.eatContextual("declare"),y;return this.match(a.name)&&(y=this.tsTryParseExportDeclaration()),y||(y=super.parseExportDeclaration(i)),y&&(y.type==="TSInterfaceDeclaration"||y.type==="TSTypeAliasDeclaration"||D)&&(i.exportKind="type"),y&&D&&(this.resetStartLocation(y,p,d),y.declare=!0),y}parseClassId(i,p,d){if((!p||d)&&this.isContextual("implements"))return;super.parseClassId(i,p,d,i.declare?1024:139);let D=this.tsTryParseTypeParameters();D&&(i.typeParameters=D)}parseClassPropertyAnnotation(i){!i.optional&&this.eat(a.bang)&&(i.definite=!0);let p=this.tsTryParseTypeAnnotation();p&&(i.typeAnnotation=p)}parseClassProperty(i){return this.parseClassPropertyAnnotation(i),this.state.isDeclareContext&&this.match(a.eq)&&this.raise(this.state.start,Ee.DeclareClassFieldHasInitializer),super.parseClassProperty(i)}parseClassPrivateProperty(i){return i.abstract&&this.raise(i.start,Ee.PrivateElementHasAbstract),i.accessibility&&this.raise(i.start,Ee.PrivateElementHasAccessibility,i.accessibility),this.parseClassPropertyAnnotation(i),super.parseClassPrivateProperty(i)}pushClassMethod(i,p,d,D,y,x){let S=this.tsTryParseTypeParameters();S&&y&&this.raise(S.start,Ee.ConstructorHasTypeParameters),S&&(p.typeParameters=S),super.pushClassMethod(i,p,d,D,y,x)}pushClassPrivateMethod(i,p,d,D){let y=this.tsTryParseTypeParameters();y&&(p.typeParameters=y),super.pushClassPrivateMethod(i,p,d,D)}parseClassSuper(i){super.parseClassSuper(i),i.superClass&&this.isRelational("<")&&(i.superTypeParameters=this.tsParseTypeArguments()),this.eatContextual("implements")&&(i.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(i,...p){let d=this.tsTryParseTypeParameters();d&&(i.typeParameters=d),super.parseObjPropValue(i,...p)}parseFunctionParams(i,p){let d=this.tsTryParseTypeParameters();d&&(i.typeParameters=d),super.parseFunctionParams(i,p)}parseVarId(i,p){super.parseVarId(i,p),i.id.type==="Identifier"&&this.eat(a.bang)&&(i.definite=!0);let d=this.tsTryParseTypeAnnotation();d&&(i.id.typeAnnotation=d,this.resetEndLocation(i.id))}parseAsyncArrowFromCallExpression(i,p){return this.match(a.colon)&&(i.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(i,p)}parseMaybeAssign(...i){var p,d,D,y,x,S,k;let L,V,K,J;if(this.match(a.jsxTagStart)){if(L=this.state.clone(),V=this.tryParse(()=>super.parseMaybeAssign(...i),L),!V.error)return V.node;let{context:be}=this.state;be[be.length-1]===M.j_oTag?be.length-=2:be[be.length-1]===M.j_expr&&(be.length-=1)}if(!((p=V)==null?void 0:p.error)&&!this.isRelational("<"))return super.parseMaybeAssign(...i);L=L||this.state.clone();let ee=this.tryParse(be=>{var Me;J=this.tsParseTypeParameters();let ve=super.parseMaybeAssign(...i);return(ve.type!=="ArrowFunctionExpression"||ve.extra&&ve.extra.parenthesized)&&be(),((Me=J)==null?void 0:Me.params.length)!==0&&this.resetStartLocationFromNode(ve,J),ve.typeParameters=J,ve},L);if(!ee.error&&!ee.aborted)return ee.node;if(!V&&(Op(!this.hasPlugin("jsx")),K=this.tryParse(()=>super.parseMaybeAssign(...i),L),!K.error))return K.node;if((d=V)==null?void 0:d.node)return this.state=V.failState,V.node;if(ee.node)return this.state=ee.failState,ee.node;if((D=K)==null?void 0:D.node)return this.state=K.failState,K.node;throw((y=V)==null?void 0:y.thrown)?V.error:ee.thrown?ee.error:((x=K)==null?void 0:x.thrown)?K.error:((S=V)==null?void 0:S.error)||ee.error||((k=K)==null?void 0:k.error)}parseMaybeUnary(i){return!this.hasPlugin("jsx")&&this.isRelational("<")?this.tsParseTypeAssertion():super.parseMaybeUnary(i)}parseArrow(i){if(this.match(a.colon)){let p=this.tryParse(d=>{let D=this.tsParseTypeOrTypePredicateAnnotation(a.colon);return!this.canInsertSemicolon()&&this.match(a.arrow)||d(),D});if(p.aborted)return;p.thrown||(p.error&&(this.state=p.failState),i.returnType=p.node)}return super.parseArrow(i)}parseAssignableListItemTypes(i){this.eat(a.question)&&(i.type==="Identifier"||this.state.isDeclareContext||this.state.inType||this.raise(i.start,Ee.PatternIsOptional),i.optional=!0);let p=this.tsTryParseTypeAnnotation();return p&&(i.typeAnnotation=p),this.resetEndLocation(i),i}toAssignable(i){switch(i.type){case"TSTypeCastExpression":return super.toAssignable(this.typeCastToParameter(i));case"TSParameterProperty":return super.toAssignable(i);case"TSAsExpression":case"TSNonNullExpression":case"TSTypeAssertion":return i.expression=this.toAssignable(i.expression),i;default:return super.toAssignable(i)}}checkLVal(i,p=64,d,D){switch(i.type){case"TSTypeCastExpression":return;case"TSParameterProperty":return void this.checkLVal(i.parameter,p,d,"parameter property");case"TSAsExpression":case"TSNonNullExpression":case"TSTypeAssertion":return void this.checkLVal(i.expression,p,d,D);default:return void super.checkLVal(i,p,d,D)}}parseBindingAtom(){switch(this.state.type){case a._this:return this.parseIdentifier(!0);default:return super.parseBindingAtom()}}parseMaybeDecoratorArguments(i){if(this.isRelational("<")){let p=this.tsParseTypeArguments();if(this.match(a.parenL)){let d=super.parseMaybeDecoratorArguments(i);return d.typeParameters=p,d}this.unexpected(this.state.start,a.parenL)}return super.parseMaybeDecoratorArguments(i)}isClassMethod(){return this.isRelational("<")||super.isClassMethod()}isClassProperty(){return this.match(a.bang)||this.match(a.colon)||super.isClassProperty()}parseMaybeDefault(...i){let p=super.parseMaybeDefault(...i);return p.type==="AssignmentPattern"&&p.typeAnnotation&&p.right.start<p.typeAnnotation.start&&this.raise(p.typeAnnotation.start,Ee.TypeAnnotationAfterAssign),p}getTokenFromCode(i){return!this.state.inType||i!==62&&i!==60?super.getTokenFromCode(i):this.finishOp(a.relational,1)}reScan_lt_gt(){if(this.match(a.relational)){let i=this.input.charCodeAt(this.state.start);i!==60&&i!==62||(this.state.pos-=1,this.readToken_lt_gt(i))}}toAssignableList(i){for(let p=0;p<i.length;p++){let d=i[p];if(d)switch(d.type){case"TSTypeCastExpression":i[p]=this.typeCastToParameter(d);break;case"TSAsExpression":case"TSTypeAssertion":this.state.maybeInArrowParameters?this.raise(d.start,Ee.UnexpectedTypeCastInParameter):i[p]=this.typeCastToParameter(d)}}return super.toAssignableList(...arguments)}typeCastToParameter(i){return i.expression.typeAnnotation=i.typeAnnotation,this.resetEndLocation(i.expression,i.typeAnnotation.end,i.typeAnnotation.loc.end),i.expression}shouldParseArrow(){return this.match(a.colon)||super.shouldParseArrow()}shouldParseAsyncArrow(){return this.match(a.colon)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(i){if(this.isRelational("<")){let p=this.tsTryParseAndCatch(()=>this.tsParseTypeArguments());p&&(i.typeParameters=p)}return super.jsxParseOpeningElementAfterName(i)}getGetterSetterExpectedParamCount(i){let p=super.getGetterSetterExpectedParamCount(i),d=i.params[0];return d&&d.type==="Identifier"&&d.name==="this"?p+1:p}parseCatchClauseParam(){let i=super.parseCatchClauseParam(),p=this.tsTryParseTypeAnnotation();return p&&(i.typeAnnotation=p,this.resetEndLocation(i)),i}tsInDeclareContext(i){let p=this.state.isDeclareContext;this.state.isDeclareContext=!0;try{return i()}finally{this.state.isDeclareContext=p}}},v8intrinsic:I=>class extends I{parseV8Intrinsic(){if(this.match(a.modulo)){let i=this.state.start,p=this.startNode();if(this.eat(a.modulo),this.match(a.name)){let d=this.parseIdentifierName(this.state.start),D=this.createIdentifier(p,d);if(D.type="V8IntrinsicIdentifier",this.match(a.parenL))return D}this.unexpected(i)}}parseExprAtom(){return this.parseV8Intrinsic()||super.parseExprAtom(...arguments)}},placeholders:I=>class extends I{parsePlaceholder(i){if(this.match(a.placeholder)){let p=this.startNode();return this.next(),this.assertNoSpace("Unexpected space in placeholder."),p.name=super.parseIdentifier(!0),this.assertNoSpace("Unexpected space in placeholder."),this.expect(a.placeholder),this.finishPlaceholder(p,i)}}finishPlaceholder(i,p){let d=!(!i.expectedNode||i.type!=="Placeholder");return i.expectedNode=p,d?i:this.finishNode(i,"Placeholder")}getTokenFromCode(i){return i===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(a.placeholder,2):super.getTokenFromCode(...arguments)}parseExprAtom(){return this.parsePlaceholder("Expression")||super.parseExprAtom(...arguments)}parseIdentifier(){return this.parsePlaceholder("Identifier")||super.parseIdentifier(...arguments)}checkReservedWord(i){i!==void 0&&super.checkReservedWord(...arguments)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom(...arguments)}checkLVal(i){i.type!=="Placeholder"&&super.checkLVal(...arguments)}toAssignable(i){return i&&i.type==="Placeholder"&&i.expectedNode==="Expression"?(i.expectedNode="Pattern",i):super.toAssignable(...arguments)}verifyBreakContinue(i){i.label&&i.label.type==="Placeholder"||super.verifyBreakContinue(...arguments)}parseExpressionStatement(i,p){if(p.type!=="Placeholder"||p.extra&&p.extra.parenthesized)return super.parseExpressionStatement(...arguments);if(this.match(a.colon)){let d=i;return d.label=this.finishPlaceholder(p,"Identifier"),this.next(),d.body=this.parseStatement("label"),this.finishNode(d,"LabeledStatement")}return this.semicolon(),i.name=p.name,this.finishPlaceholder(i,"Statement")}parseBlock(){return this.parsePlaceholder("BlockStatement")||super.parseBlock(...arguments)}parseFunctionId(){return this.parsePlaceholder("Identifier")||super.parseFunctionId(...arguments)}parseClass(i,p,d){let D=p?"ClassDeclaration":"ClassExpression";this.next(),this.takeDecorators(i);let y=this.state.strict,x=this.parsePlaceholder("Identifier");if(x)if(this.match(a._extends)||this.match(a.placeholder)||this.match(a.braceL))i.id=x;else{if(d||!p)return i.id=null,i.body=this.finishPlaceholder(x,"ClassBody"),this.finishNode(i,D);this.unexpected(null,"A class name is required")}else this.parseClassId(i,p,d);return this.parseClassSuper(i),i.body=this.parsePlaceholder("ClassBody")||this.parseClassBody(!!i.superClass,y),this.finishNode(i,D)}parseExport(i){let p=this.parsePlaceholder("Identifier");if(!p)return super.parseExport(...arguments);if(!this.isContextual("from")&&!this.match(a.comma))return i.specifiers=[],i.source=null,i.declaration=this.finishPlaceholder(p,"Declaration"),this.finishNode(i,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let d=this.startNode();return d.exported=p,i.specifiers=[this.finishNode(d,"ExportDefaultSpecifier")],super.parseExport(i)}isExportDefaultSpecifier(){if(this.match(a._default)){let i=this.nextTokenStart();if(this.isUnparsedContextual(i,"from")&&this.input.startsWith(a.placeholder.label,this.nextTokenStartSince(i+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(i){return!!(i.specifiers&&i.specifiers.length>0)||super.maybeParseExportDefaultSpecifier(...arguments)}checkExport(i){let{specifiers:p}=i;(p==null?void 0:p.length)&&(i.specifiers=p.filter(d=>d.exported.type==="Placeholder")),super.checkExport(i),i.specifiers=p}parseImport(i){let p=this.parsePlaceholder("Identifier");if(!p)return super.parseImport(...arguments);if(i.specifiers=[],!this.isContextual("from")&&!this.match(a.comma))return i.source=this.finishPlaceholder(p,"StringLiteral"),this.semicolon(),this.finishNode(i,"ImportDeclaration");let d=this.startNodeAtNode(p);return d.local=p,this.finishNode(d,"ImportDefaultSpecifier"),i.specifiers.push(d),this.eat(a.comma)&&(this.maybeParseStarImportSpecifier(i)||this.parseNamedImportSpecifiers(i)),this.expectContextual("from"),i.source=this.parseImportSource(),this.semicolon(),this.finishNode(i,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource(...arguments)}}},Y2=Object.keys(jp),_p={sourceType:"script",sourceFilename:void 0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createParenthesizedExpressions:!1,errorRecovery:!1};class Tu{constructor(){this.strict=void 0,this.curLine=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.maybeInArrowParameters=!1,this.inPipeline=!1,this.inType=!1,this.noAnonFunctionType=!1,this.inPropertyName=!1,this.hasFlowComment=!1,this.isIterator=!1,this.isDeclareContext=!1,this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.soloAwait=!1,this.inFSharpPipelineDirectBody=!1,this.labels=[],this.decoratorStack=[[]],this.comments=[],this.trailingComments=[],this.leadingComments=[],this.commentStack=[],this.commentPreviousNode=null,this.pos=0,this.lineStart=0,this.type=a.eof,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.lastTokStart=0,this.lastTokEnd=0,this.context=[M.braceStatement],this.exprAllowed=!0,this.containsEsc=!1,this.octalPositions=[],this.exportedIdentifiers=[],this.tokensLength=0}init(i){this.strict=i.strictMode!==!1&&i.sourceType==="module",this.curLine=i.startLine,this.startLoc=this.endLoc=this.curPosition()}curPosition(){return new B(this.curLine,this.pos-this.lineStart)}clone(i){let p=new Tu,d=Object.keys(this);for(let D=0,y=d.length;D<y;D++){let x=d[D],S=this[x];!i&&Array.isArray(S)&&(S=S.slice()),p[x]=S}return p}}var Q2=function(I){return I>=48&&I<=57};let Z2=new Set(["g","m","s","i","y","u"]),Up={decBinOct:[46,66,69,79,95,98,101,111],hex:[46,88,95,120]},It={bin:[48,49]};It.oct=[...It.bin,50,51,52,53,54,55],It.dec=[...It.oct,56,57],It.hex=[...It.dec,65,66,67,68,69,70,97,98,99,100,101,102];class eE{constructor(i){this.type=i.type,this.value=i.value,this.start=i.start,this.end=i.end,this.loc=new T(i.startLoc,i.endLoc)}}class vi{constructor(){this.shorthandAssign=-1,this.doubleProto=-1}}class wi{constructor(i,p,d){this.type=void 0,this.start=void 0,this.end=void 0,this.loc=void 0,this.range=void 0,this.leadingComments=void 0,this.trailingComments=void 0,this.innerComments=void 0,this.extra=void 0,this.type="",this.start=p,this.end=0,this.loc=new T(d),(i==null?void 0:i.options.ranges)&&(this.range=[p,0]),(i==null?void 0:i.filename)&&(this.loc.filename=i.filename)}__clone(){let i=new wi,p=Object.keys(this);for(let d=0,D=p.length;d<D;d++){let y=p[d];y!=="leadingComments"&&y!=="trailingComments"&&y!=="innerComments"&&(i[y]=this[y])}return i}}let qp=I=>I.type==="ParenthesizedExpression"?qp(I.expression):I;class Si{constructor(i=0){this.type=void 0,this.type=i}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}}class $p extends Si{constructor(i){super(i),this.errors=new Map}recordDeclarationError(i,p){this.errors.set(i,p)}clearDeclarationError(i){this.errors.delete(i)}iterateErrors(i){this.errors.forEach(i)}}class tE{constructor(i){this.stack=[new Si],this.raise=i}enter(i){this.stack.push(i)}exit(){this.stack.pop()}recordParameterInitializerError(i,p){let{stack:d}=this,D=d.length-1,y=d[D];for(;!y.isCertainlyParameterDeclaration();){if(!y.canBeArrowParameterDeclaration())return;y.recordDeclarationError(i,p),y=d[--D]}this.raise(i,p)}recordAsyncArrowParametersError(i,p){let{stack:d}=this,D=d.length-1,y=d[D];for(;y.canBeArrowParameterDeclaration();)y.type===2&&y.recordDeclarationError(i,p),y=d[--D]}validateAsPattern(){let{stack:i}=this,p=i[i.length-1];p.canBeArrowParameterDeclaration()&&p.iterateErrors((d,D)=>{this.raise(D,d);let y=i.length-2,x=i[y];for(;x.canBeArrowParameterDeclaration();)x.clearDeclarationError(D),x=i[--y]})}}function Bu(){return new Si}let Pu={kind:"loop"},rE={kind:"switch"},nE=/[\uD800-\uDFFF]/u;class sE{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}}class iE{constructor(i){this.stack=[],this.undefinedPrivateNames=new Map,this.raise=i}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new sE)}exit(){let i=this.stack.pop(),p=this.current();for(let d=0,D=Array.from(i.undefinedPrivateNames);d<D.length;d++){let[y,x]=D[d];p?p.undefinedPrivateNames.has(y)||p.undefinedPrivateNames.set(y,x):this.raise(x,v.InvalidPrivateFieldResolution,y)}}declarePrivateName(i,p,d){let D=this.current(),y=D.privateNames.has(i);if(3&p){let x=y&&D.loneAccessors.get(i);if(x){let S=4&x,k=4&p;y=(3&x)==(3&p)||S!==k,y||D.loneAccessors.delete(i)}else y||D.loneAccessors.set(i,p)}y&&this.raise(d,v.PrivateNameRedeclaration,i),D.privateNames.add(i),D.undefinedPrivateNames.delete(i)}usePrivateName(i,p){let d;for(let D=0,y=this.stack;D<y.length;D++)if(d=y[D],d.privateNames.has(i))return;d?d.undefinedPrivateNames.set(i,p):this.raise(p,v.InvalidPrivateFieldResolution,i)}}class Vp extends class extends class extends class extends class extends class extends class extends class extends class extends class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}hasPlugin(i){return this.plugins.has(i)}getPluginOption(i,p){if(this.hasPlugin(i))return this.plugins.get(i)[p]}}{addComment(i){this.filename&&(i.loc.filename=this.filename),this.state.trailingComments.push(i),this.state.leadingComments.push(i)}adjustCommentsAfterTrailingComma(i,p,d){if(this.state.leadingComments.length===0)return;let D=null,y=p.length;for(;D===null&&y>0;)D=p[--y];if(D===null)return;for(let S=0;S<this.state.leadingComments.length;S++)this.state.leadingComments[S].end<this.state.commentPreviousNode.end&&(this.state.leadingComments.splice(S,1),S--);let x=[];for(let S=0;S<this.state.leadingComments.length;S++){let k=this.state.leadingComments[S];k.end<i.end?(x.push(k),d||(this.state.leadingComments.splice(S,1),S--)):(i.trailingComments===void 0&&(i.trailingComments=[]),i.trailingComments.push(k))}d&&(this.state.leadingComments=[]),x.length>0?D.trailingComments=x:D.trailingComments!==void 0&&(D.trailingComments=[])}processComment(i){if(i.type==="Program"&&i.body.length>0)return;let p=this.state.commentStack,d,D,y,x,S;if(this.state.trailingComments.length>0)this.state.trailingComments[0].start>=i.end?(y=this.state.trailingComments,this.state.trailingComments=[]):this.state.trailingComments.length=0;else if(p.length>0){let k=P(p);k.trailingComments&&k.trailingComments[0].start>=i.end&&(y=k.trailingComments,delete k.trailingComments)}for(p.length>0&&P(p).start>=i.start&&(d=p.pop());p.length>0&&P(p).start>=i.start;)D=p.pop();if(!D&&d&&(D=d),d)switch(i.type){case"ObjectExpression":this.adjustCommentsAfterTrailingComma(i,i.properties);break;case"ObjectPattern":this.adjustCommentsAfterTrailingComma(i,i.properties,!0);break;case"CallExpression":this.adjustCommentsAfterTrailingComma(i,i.arguments);break;case"ArrayExpression":this.adjustCommentsAfterTrailingComma(i,i.elements);break;case"ArrayPattern":this.adjustCommentsAfterTrailingComma(i,i.elements,!0)}else this.state.commentPreviousNode&&(this.state.commentPreviousNode.type==="ImportSpecifier"&&i.type!=="ImportSpecifier"||this.state.commentPreviousNode.type==="ExportSpecifier"&&i.type!=="ExportSpecifier")&&this.adjustCommentsAfterTrailingComma(i,[this.state.commentPreviousNode]);if(D){if(D.leadingComments){if(D!==i&&D.leadingComments.length>0&&P(D.leadingComments).end<=i.start)i.leadingComments=D.leadingComments,delete D.leadingComments;else for(x=D.leadingComments.length-2;x>=0;--x)if(D.leadingComments[x].end<=i.start){i.leadingComments=D.leadingComments.splice(0,x+1);break}}}else if(this.state.leadingComments.length>0)if(P(this.state.leadingComments).end<=i.start){if(this.state.commentPreviousNode)for(S=0;S<this.state.leadingComments.length;S++)this.state.leadingComments[S].end<this.state.commentPreviousNode.end&&(this.state.leadingComments.splice(S,1),S--);this.state.leadingComments.length>0&&(i.leadingComments=this.state.leadingComments,this.state.leadingComments=[])}else{for(x=0;x<this.state.leadingComments.length&&!(this.state.leadingComments[x].end>i.start);x++);let k=this.state.leadingComments.slice(0,x);k.length&&(i.leadingComments=k),y=this.state.leadingComments.slice(x),y.length===0&&(y=null)}if(this.state.commentPreviousNode=i,y)if(y.length&&y[0].start>=i.start&&P(y).end<=i.end)i.innerComments=y;else{let k=y.findIndex(L=>L.end>=i.end);k>0?(i.innerComments=y.slice(0,k),i.trailingComments=y.slice(k)):i.trailingComments=y}p.push(i)}}{getLocationForPosition(i){let p;return p=i===this.state.start?this.state.startLoc:i===this.state.lastTokStart?this.state.lastTokStartLoc:i===this.state.end?this.state.endLoc:i===this.state.lastTokEnd?this.state.lastTokEndLoc:function(d,D){let y,x=1,S=0;for(A.lastIndex=0;(y=A.exec(d))&&y.index<D;)x++,S=A.lastIndex;return new B(x,D-S)}(this.input,i),p}raise(i,p,...d){return this.raiseWithData(i,void 0,p,...d)}raiseWithData(i,p,d,...D){let y=this.getLocationForPosition(i),x=d.replace(/%(\d+)/g,(S,k)=>D[k])+" (".concat(y.line,":").concat(y.column,")");return this._raise(Object.assign({loc:y,pos:i},p),x)}_raise(i,p){let d=new SyntaxError(p);if(Object.assign(d,i),this.options.errorRecovery)return this.isLookahead||this.state.errors.push(d),d;throw d}}{constructor(i,p){super(),this.isLookahead=void 0,this.tokens=[],this.state=new Tu,this.state.init(i),this.input=p,this.length=p.length,this.isLookahead=!1}pushToken(i){this.tokens.length=this.state.tokensLength,this.tokens.push(i),++this.state.tokensLength}next(){this.isLookahead||(this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new eE(this.state))),this.state.lastTokEnd=this.state.end,this.state.lastTokStart=this.state.start,this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(i){return!!this.match(i)&&(this.next(),!0)}match(i){return this.state.type===i}lookahead(){let i=this.state;this.state=i.clone(!0),this.isLookahead=!0,this.next(),this.isLookahead=!1;let p=this.state;return this.state=i,p}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(i){return F.lastIndex=i,i+F.exec(this.input)[0].length}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}setStrict(i){if(this.state.strict=i,this.match(a.num)||this.match(a.string)){for(this.state.pos=this.state.start;this.state.pos<this.state.lineStart;)this.state.lineStart=this.input.lastIndexOf(
,this.state.lineStart-2)+1,--this.state.curLine;this.nextToken()}}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){let i=this.curContext();if((i==null?void 0:i.preserveSpace)||this.skipSpace(),this.state.octalPositions=[],this.state.start=this.state.pos,this.state.startLoc=this.state.curPosition(),this.state.pos>=this.length)return void this.finishToken(a.eof);let p=i==null?void 0:i.override;p?p(this):this.getTokenFromCode(this.input.codePointAt(this.state.pos))}pushComment(i,p,d,D,y,x){let S={type:i?"CommentBlock":"CommentLine",value:p,start:d,end:D,loc:new T(y,x)};this.options.tokens&&this.pushToken(S),this.state.comments.push(S),this.addComment(S)}skipBlockComment(){let i=this.state.curPosition(),p=this.state.pos,d=this.input.indexOf("*/",this.state.pos+2);if(d===-1)throw this.raise(p,v.UnterminatedComment);let D;for(this.state.pos=d+2,A.lastIndex=p;(D=A.exec(this.input))&&D.index<this.state.pos;)++this.state.curLine,this.state.lineStart=D.index+D[0].length;this.isLookahead||this.pushComment(!0,this.input.slice(p+2,d),p,this.state.pos,i,this.state.curPosition())}skipLineComment(i){let p=this.state.pos,d=this.state.curPosition(),D=this.input.charCodeAt(this.state.pos+=i);if(this.state.pos<this.length)for(;!C(D)&&++this.state.pos<this.length;)D=this.input.charCodeAt(this.state.pos);this.isLookahead||this.pushComment(!1,this.input.slice(p+i,this.state.pos),p,this.state.pos,d,this.state.curPosition())}skipSpace(){e:for(;this.state.pos<this.length;){let i=this.input.charCodeAt(this.state.pos);switch(i){case 32:case 160:case 9:++this.state.pos;break;case 13:this.input.charCodeAt(this.state.pos+1)===10&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(!w(i))break e;++this.state.pos}}}finishToken(i,p){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let d=this.state.type;this.state.type=i,this.state.value=p,this.isLookahead||this.updateContext(d)}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let i=this.state.pos+1,p=this.input.charCodeAt(i);if(p>=48&&p<=57)throw this.raise(this.state.pos,v.UnexpectedDigitAfterHash);if(p===123||p===91&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),this.getPluginOption("recordAndTuple","syntaxType")!=="hash")throw this.raise(this.state.pos,p===123?v.RecordExpressionHashIncorrectStartSyntaxType:v.TupleExpressionHashIncorrectStartSyntaxType);p===123?this.finishToken(a.braceHashL):this.finishToken(a.bracketHashL),this.state.pos+=2}else this.finishOp(a.hash,1)}readToken_dot(){let i=this.input.charCodeAt(this.state.pos+1);i>=48&&i<=57?this.readNumber(!0):i===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(a.ellipsis)):(++this.state.pos,this.finishToken(a.dot))}readToken_slash(){if(this.state.exprAllowed&&!this.state.inType)return++this.state.pos,void this.readRegexp();this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(a.assign,2):this.finishOp(a.slash,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let i=this.input.charCodeAt(this.state.pos+1);if(i!==33)return!1;let p=this.state.pos;for(this.state.pos+=1;!C(i)&&++this.state.pos<this.length;)i=this.input.charCodeAt(this.state.pos);let d=this.input.slice(p+2,this.state.pos);return this.finishToken(a.interpreterDirective,d),!0}readToken_mult_modulo(i){let p=i===42?a.star:a.modulo,d=1,D=this.input.charCodeAt(this.state.pos+1),y=this.state.exprAllowed;i===42&&D===42&&(d++,D=this.input.charCodeAt(this.state.pos+2),p=a.exponent),D!==61||y||(d++,p=a.assign),this.finishOp(p,d)}readToken_pipe_amp(i){let p=this.input.charCodeAt(this.state.pos+1);if(p!==i){if(i===124){if(p===62)return void this.finishOp(a.pipeline,2);if(this.hasPlugin("recordAndTuple")&&p===125){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(this.state.pos,v.RecordExpressionBarIncorrectEndSyntaxType);return void this.finishOp(a.braceBarR,2)}if(this.hasPlugin("recordAndTuple")&&p===93){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(this.state.pos,v.TupleExpressionBarIncorrectEndSyntaxType);return void this.finishOp(a.bracketBarR,2)}}p!==61?this.finishOp(i===124?a.bitwiseOR:a.bitwiseAND,1):this.finishOp(a.assign,2)}else this.input.charCodeAt(this.state.pos+2)===61?this.finishOp(a.assign,3):this.finishOp(i===124?a.logicalOR:a.logicalAND,2)}readToken_caret(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(a.assign,2):this.finishOp(a.bitwiseXOR,1)}readToken_plus_min(i){let p=this.input.charCodeAt(this.state.pos+1);if(p===i)return p!==45||this.inModule||this.input.charCodeAt(this.state.pos+2)!==62||this.state.lastTokEnd!==0&&!this.hasPrecedingLineBreak()?void this.finishOp(a.incDec,2):(this.skipLineComment(3),this.skipSpace(),void this.nextToken());p===61?this.finishOp(a.assign,2):this.finishOp(a.plusMin,1)}readToken_lt_gt(i){let p=this.input.charCodeAt(this.state.pos+1),d=1;return p===i?(d=i===62&&this.input.charCodeAt(this.state.pos+2)===62?3:2,this.input.charCodeAt(this.state.pos+d)===61?void this.finishOp(a.assign,d+1):void this.finishOp(a.bitShift,d)):p!==33||i!==60||this.inModule||this.input.charCodeAt(this.state.pos+2)!==45||this.input.charCodeAt(this.state.pos+3)!==45?(p===61&&(d=2),void this.finishOp(a.relational,d)):(this.skipLineComment(4),this.skipSpace(),void this.nextToken())}readToken_eq_excl(i){let p=this.input.charCodeAt(this.state.pos+1);if(p!==61)return i===61&&p===62?(this.state.pos+=2,void this.finishToken(a.arrow)):void this.finishOp(i===61?a.eq:a.bang,1);this.finishOp(a.equality,this.input.charCodeAt(this.state.pos+2)===61?3:2)}readToken_question(){let i=this.input.charCodeAt(this.state.pos+1),p=this.input.charCodeAt(this.state.pos+2);i===63?p===61?this.finishOp(a.assign,3):this.finishOp(a.nullishCoalescing,2):i!==46||p>=48&&p<=57?(++this.state.pos,this.finishToken(a.question)):(this.state.pos+=2,this.finishToken(a.questionDot))}getTokenFromCode(i){switch(i){case 46:return void this.readToken_dot();case 40:return++this.state.pos,void this.finishToken(a.parenL);case 41:return++this.state.pos,void this.finishToken(a.parenR);case 59:return++this.state.pos,void this.finishToken(a.semi);case 44:return++this.state.pos,void this.finishToken(a.comma);case 91:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(this.state.pos,v.TupleExpressionBarIncorrectStartSyntaxType);this.finishToken(a.bracketBarL),this.state.pos+=2}else++this.state.pos,this.finishToken(a.bracketL);return;case 93:return++this.state.pos,void this.finishToken(a.bracketR);case 123:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(this.state.pos,v.RecordExpressionBarIncorrectStartSyntaxType);this.finishToken(a.braceBarL),this.state.pos+=2}else++this.state.pos,this.finishToken(a.braceL);return;case 125:return++this.state.pos,void this.finishToken(a.braceR);case 58:return void(this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(a.doubleColon,2):(++this.state.pos,this.finishToken(a.colon)));case 63:return void this.readToken_question();case 96:return++this.state.pos,void this.finishToken(a.backQuote);case 48:{let p=this.input.charCodeAt(this.state.pos+1);if(p===120||p===88)return void this.readRadixNumber(16);if(p===111||p===79)return void this.readRadixNumber(8);if(p===98||p===66)return void this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return void this.readNumber(!1);case 34:case 39:return void this.readString(i);case 47:return void this.readToken_slash();case 37:case 42:return void this.readToken_mult_modulo(i);case 124:case 38:return void this.readToken_pipe_amp(i);case 94:return void this.readToken_caret();case 43:case 45:return void this.readToken_plus_min(i);case 60:case 62:return void this.readToken_lt_gt(i);case 61:case 33:return void this.readToken_eq_excl(i);case 126:return void this.finishOp(a.tilde,1);case 64:return++this.state.pos,void this.finishToken(a.at);case 35:return void this.readToken_numberSign();case 92:return void this.readWord();default:if(ue(i))return void this.readWord()}throw this.raise(this.state.pos,v.InvalidOrUnexpectedToken,String.fromCodePoint(i))}finishOp(i,p){let d=this.input.slice(this.state.pos,this.state.pos+p);this.state.pos+=p,this.finishToken(i,d)}readRegexp(){let i=this.state.pos,p,d;for(;;){if(this.state.pos>=this.length)throw this.raise(i,v.UnterminatedRegExp);let x=this.input.charAt(this.state.pos);if(b.test(x))throw this.raise(i,v.UnterminatedRegExp);if(p)p=!1;else{if(x==="[")d=!0;else if(x==="]"&&d)d=!1;else if(x==="/"&&!d)break;p=x==="\\"}++this.state.pos}let D=this.input.slice(i,this.state.pos);++this.state.pos;let y="";for(;this.state.pos<this.length;){let x=this.input[this.state.pos],S=this.input.codePointAt(this.state.pos);if(Z2.has(x))y.indexOf(x)>-1&&this.raise(this.state.pos+1,v.DuplicateRegExpFlags);else{if(!Ce(S)&&S!==92)break;this.raise(this.state.pos+1,v.MalformedRegExpFlags)}++this.state.pos,y+=x}this.finishToken(a.regexp,{pattern:D,flags:y})}readInt(i,p,d,D=!0){let y=this.state.pos,x=i===16?Up.hex:Up.decBinOct,S=i===16?It.hex:i===10?It.dec:i===8?It.oct:It.bin,k=!1,L=0;for(let V=0,K=p??1/0;V<K;++V){let J=this.input.charCodeAt(this.state.pos),ee;if(J!==95){if(ee=J>=97?J-97+10:J>=65?J-65+10:Q2(J)?J-48:1/0,ee>=i)if(this.options.errorRecovery&&ee<=9)ee=0,this.raise(this.state.start+V+2,v.InvalidDigit,i);else{if(!d)break;ee=0,k=!0}++this.state.pos,L=L*i+ee}else{let be=this.input.charCodeAt(this.state.pos-1),Me=this.input.charCodeAt(this.state.pos+1);(S.indexOf(Me)===-1||x.indexOf(be)>-1||x.indexOf(Me)>-1||Number.isNaN(Me))&&this.raise(this.state.pos,v.UnexpectedNumericSeparator),D||this.raise(this.state.pos,v.NumericSeparatorInEscapeSequence),++this.state.pos}}return this.state.pos===y||p!=null&&this.state.pos-y!==p||k?null:L}readRadixNumber(i){let p=this.state.pos,d=!1;this.state.pos+=2;let D=this.readInt(i);D==null&&this.raise(this.state.start+2,v.InvalidDigit,i);let y=this.input.charCodeAt(this.state.pos);if(y===110)++this.state.pos,d=!0;else if(y===109)throw this.raise(p,v.InvalidDecimal);if(ue(this.input.codePointAt(this.state.pos)))throw this.raise(this.state.pos,v.NumberIdentifier);if(d){let x=this.input.slice(p,this.state.pos).replace(/[_n]/g,"");this.finishToken(a.bigint,x)}else this.finishToken(a.num,D)}readNumber(i){let p=this.state.pos,d=!1,D=!1,y=!1,x=!1,S=!1;i||this.readInt(10)!==null||this.raise(p,v.InvalidNumber);let k=this.state.pos-p>=2&&this.input.charCodeAt(p)===48;if(k){let J=this.input.slice(p,this.state.pos);if(this.state.strict)this.raise(p,v.StrictOctalLiteral);else{let ee=J.indexOf("_");ee>0&&this.raise(ee+p,v.ZeroDigitNumericSeparator)}S=k&&!/[89]/.test(J)}let L=this.input.charCodeAt(this.state.pos);if(L!==46||S||(++this.state.pos,this.readInt(10),d=!0,L=this.input.charCodeAt(this.state.pos)),L!==69&&L!==101||S||(L=this.input.charCodeAt(++this.state.pos),L!==43&&L!==45||++this.state.pos,this.readInt(10)===null&&this.raise(p,v.InvalidOrMissingExponent),d=!0,x=!0,L=this.input.charCodeAt(this.state.pos)),L===110&&((d||k)&&this.raise(p,v.InvalidBigIntLiteral),++this.state.pos,D=!0),L===109&&(this.expectPlugin("decimal",this.state.pos),(x||k)&&this.raise(p,v.InvalidDecimal),++this.state.pos,y=!0),ue(this.input.codePointAt(this.state.pos)))throw this.raise(this.state.pos,v.NumberIdentifier);let V=this.input.slice(p,this.state.pos).replace(/[_mn]/g,"");if(D)return void this.finishToken(a.bigint,V);if(y)return void this.finishToken(a.decimal,V);let K=S?parseInt(V,8):parseFloat(V);this.finishToken(a.num,K)}readCodePoint(i){let p;if(this.input.charCodeAt(this.state.pos)===123){let d=++this.state.pos;if(p=this.readHexChar(this.input.indexOf("}",this.state.pos)-this.state.pos,!0,i),++this.state.pos,p!==null&&p>1114111){if(!i)return null;this.raise(d,v.InvalidCodePoint)}}else p=this.readHexChar(4,!1,i);return p}readString(i){let p="",d=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,v.UnterminatedString);let D=this.input.charCodeAt(this.state.pos);if(D===i)break;if(D===92)p+=this.input.slice(d,this.state.pos),p+=this.readEscapedChar(!1),d=this.state.pos;else if(D===8232||D===8233)++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;else{if(C(D))throw this.raise(this.state.start,v.UnterminatedString);++this.state.pos}}p+=this.input.slice(d,this.state.pos++),this.finishToken(a.string,p)}readTmplToken(){let i="",p=this.state.pos,d=!1;for(;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,v.UnterminatedTemplate);let D=this.input.charCodeAt(this.state.pos);if(D===96||D===36&&this.input.charCodeAt(this.state.pos+1)===123)return this.state.pos===this.state.start&&this.match(a.template)?D===36?(this.state.pos+=2,void this.finishToken(a.dollarBraceL)):(++this.state.pos,void this.finishToken(a.backQuote)):(i+=this.input.slice(p,this.state.pos),void this.finishToken(a.template,d?null:i));if(D===92){i+=this.input.slice(p,this.state.pos);let y=this.readEscapedChar(!0);y===null?d=!0:i+=y,p=this.state.pos}else if(C(D)){switch(i+=this.input.slice(p,this.state.pos),++this.state.pos,D){case 13:this.input.charCodeAt(this.state.pos)===10&&++this.state.pos;case 10:i+=
;break;default:i+=String.fromCharCode(D)}++this.state.curLine,this.state.lineStart=this.state.pos,p=this.state.pos}else++this.state.pos}}readEscapedChar(i){let p=!i,d=this.input.charCodeAt(++this.state.pos);switch(++this.state.pos,d){case 110:return
;case 114:return"\r";case 120:{let D=this.readHexChar(2,!1,p);return D===null?null:String.fromCharCode(D)}case 117:{let D=this.readCodePoint(p);return D===null?null:String.fromCodePoint(D)}case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.state.pos)===10&&++this.state.pos;case 10:this.state.lineStart=this.state.pos,++this.state.curLine;case 8232:case 8233:return"";case 56:case 57:if(i)return null;this.state.strict&&this.raise(this.state.pos-1,v.StrictNumericEscape);default:if(d>=48&&d<=55){let D=this.state.pos-1,y=this.input.substr(this.state.pos-1,3).match(/^[0-7]+/)[0],x=parseInt(y,8);x>255&&(y=y.slice(0,-1),x=parseInt(y,8)),this.state.pos+=y.length-1;let S=this.input.charCodeAt(this.state.pos);if(y!=="0"||S===56||S===57){if(i)return null;this.state.strict?this.raise(D,v.StrictNumericEscape):this.state.octalPositions.push(D)}return String.fromCharCode(x)}return String.fromCharCode(d)}}readHexChar(i,p,d){let D=this.state.pos,y=this.readInt(16,i,p,!1);return y===null&&(d?this.raise(D,v.InvalidEscapeSequence):this.state.pos=D-1),y}readWord1(){let i="";this.state.containsEsc=!1;let p=this.state.pos,d=this.state.pos;for(;this.state.pos<this.length;){let D=this.input.codePointAt(this.state.pos);if(Ce(D))this.state.pos+=D<=65535?1:2;else if(this.state.isIterator&&D===64)++this.state.pos;else{if(D!==92)break;{this.state.containsEsc=!0,i+=this.input.slice(d,this.state.pos);let y=this.state.pos,x=this.state.pos===p?ue:Ce;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(this.state.pos,v.MissingUnicodeEscape);continue}++this.state.pos;let S=this.readCodePoint(!0);S!==null&&(x(S)||this.raise(y,v.EscapedCharNotAnIdentifier),i+=String.fromCodePoint(S)),d=this.state.pos}}}return i+this.input.slice(d,this.state.pos)}isIterator(i){return i==="@@iterator"||i==="@@asyncIterator"}readWord(){let i=this.readWord1(),p=o.get(i)||a.name;!this.state.isIterator||this.isIterator(i)&&this.state.inType||this.raise(this.state.pos,v.InvalidIdentifier,i),this.finishToken(p,i)}checkKeywordEscapes(){let i=this.state.type.keyword;i&&this.state.containsEsc&&this.raise(this.state.start,v.InvalidEscapedReservedWord,i)}braceIsBlock(i){let p=this.curContext();return p===M.functionExpression||p===M.functionStatement||(i!==a.colon||p!==M.braceStatement&&p!==M.braceExpression?i===a._return||i===a.name&&this.state.exprAllowed?this.hasPrecedingLineBreak():i===a._else||i===a.semi||i===a.eof||i===a.parenR||i===a.arrow||(i===a.braceL?p===M.braceStatement:i!==a._var&&i!==a._const&&i!==a.name&&(i===a.relational||!this.state.exprAllowed)):!p.isExpr)}updateContext(i){let p=this.state.type,d;!p.keyword||i!==a.dot&&i!==a.questionDot?(d=p.updateContext)?d.call(this,i):this.state.exprAllowed=p.beforeExpr:this.state.exprAllowed=!1}}{addExtra(i,p,d){!i||((i.extra=i.extra||{})[p]=d)}isRelational(i){return this.match(a.relational)&&this.state.value===i}expectRelational(i){this.isRelational(i)?this.next():this.unexpected(null,a.relational)}isContextual(i){return this.match(a.name)&&this.state.value===i&&!this.state.containsEsc}isUnparsedContextual(i,p){let d=i+p.length;return this.input.slice(i,d)===p&&(d===this.input.length||!Ce(this.input.charCodeAt(d)))}isLookaheadContextual(i){let p=this.nextTokenStart();return this.isUnparsedContextual(p,i)}eatContextual(i){return this.isContextual(i)&&this.eat(a.name)}expectContextual(i,p){this.eatContextual(i)||this.unexpected(null,p)}canInsertSemicolon(){return this.match(a.eof)||this.match(a.braceR)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return b.test(this.input.slice(this.state.lastTokEnd,this.state.start))}isLineTerminator(){return this.eat(a.semi)||this.canInsertSemicolon()}semicolon(){this.isLineTerminator()||this.unexpected(null,a.semi)}expect(i,p){this.eat(i)||this.unexpected(p,i)}assertNoSpace(i="Unexpected space."){this.state.start>this.state.lastTokEnd&&this.raise(this.state.lastTokEnd,i)}unexpected(i,p="Unexpected token"){throw typeof p!="string"&&(p='Unexpected token, expected "'.concat(p.label,'"')),this.raise(i??this.state.start,p)}expectPlugin(i,p){if(!this.hasPlugin(i))throw this.raiseWithData(p??this.state.start,{missingPlugin:[i]},"This experimental syntax requires enabling the parser plugin: '".concat(i,"'"));return!0}expectOnePlugin(i,p){if(!i.some(d=>this.hasPlugin(d)))throw this.raiseWithData(p??this.state.start,{missingPlugin:i},"This experimental syntax requires enabling one of the following parser plugin(s): '".concat(i.join(", "),"'"))}tryParse(i,p=this.state.clone()){let d={node:null};try{let D=i((y=null)=>{throw d.node=y,d});if(this.state.errors.length>p.errors.length){let y=this.state;return this.state=p,{node:D,error:y.errors[p.errors.length],thrown:!1,aborted:!1,failState:y}}return{node:D,error:null,thrown:!1,aborted:!1,failState:null}}catch(D){let y=this.state;if(this.state=p,D instanceof SyntaxError)return{node:null,error:D,thrown:!0,aborted:!1,failState:y};if(D===d)return{node:d.node,error:null,thrown:!1,aborted:!0,failState:y};throw D}}checkExpressionErrors(i,p){if(!i)return!1;let{shorthandAssign:d,doubleProto:D}=i;if(!p)return d>=0||D>=0;d>=0&&this.unexpected(d),D>=0&&this.raise(D,v.DuplicateProto)}isLiteralPropertyName(){return this.match(a.name)||!!this.state.type.keyword||this.match(a.string)||this.match(a.num)||this.match(a.bigint)||this.match(a.decimal)}}{startNode(){return new wi(this,this.state.start,this.state.startLoc)}startNodeAt(i,p){return new wi(this,i,p)}startNodeAtNode(i){return this.startNodeAt(i.start,i.loc.start)}finishNode(i,p){return this.finishNodeAt(i,p,this.state.lastTokEnd,this.state.lastTokEndLoc)}finishNodeAt(i,p,d,D){return i.type=p,i.end=d,i.loc.end=D,this.options.ranges&&(i.range[1]=d),this.processComment(i),i}resetStartLocation(i,p,d){i.start=p,i.loc.start=d,this.options.ranges&&(i.range[0]=p)}resetEndLocation(i,p=this.state.lastTokEnd,d=this.state.lastTokEndLoc){i.end=p,i.loc.end=d,this.options.ranges&&(i.range[1]=p)}resetStartLocationFromNode(i,p){this.resetStartLocation(i,p.start,p.loc.start)}}{toAssignable(i){var p,d;let D;switch((i.type==="ParenthesizedExpression"||((p=i.extra)==null?void 0:p.parenthesized))&&(D=qp(i),D.type!=="Identifier"&&D.type!=="MemberExpression"&&this.raise(i.start,v.InvalidParenthesizedAssignment)),i.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":break;case"ObjectExpression":i.type="ObjectPattern";for(let x=0,S=i.properties.length,k=S-1;x<S;x++){var y;let L=i.properties[x],V=x===k;this.toAssignableObjectExpressionProp(L,V),V&&L.type==="RestElement"&&((y=i.extra)==null?void 0:y.trailingComma)&&this.raiseRestNotLast(i.extra.trailingComma)}break;case"ObjectProperty":this.toAssignable(i.value);break;case"SpreadElement":{this.checkToRestConversion(i),i.type="RestElement";let x=i.argument;this.toAssignable(x);break}case"ArrayExpression":i.type="ArrayPattern",this.toAssignableList(i.elements,(d=i.extra)==null?void 0:d.trailingComma);break;case"AssignmentExpression":i.operator!=="="&&this.raise(i.left.end,v.MissingEqInAssignment),i.type="AssignmentPattern",delete i.operator,this.toAssignable(i.left);break;case"ParenthesizedExpression":this.toAssignable(D)}return i}toAssignableObjectExpressionProp(i,p){if(i.type==="ObjectMethod"){let d=i.kind==="get"||i.kind==="set"?v.PatternHasAccessor:v.PatternHasMethod;this.raise(i.key.start,d)}else i.type!=="SpreadElement"||p?this.toAssignable(i):this.raiseRestNotLast(i.start)}toAssignableList(i,p){let d=i.length;if(d){let D=i[d-1];if((D==null?void 0:D.type)==="RestElement")--d;else if((D==null?void 0:D.type)==="SpreadElement"){D.type="RestElement";let y=D.argument;this.toAssignable(y),y.type!=="Identifier"&&y.type!=="MemberExpression"&&y.type!=="ArrayPattern"&&y.type!=="ObjectPattern"&&this.unexpected(y.start),p&&this.raiseTrailingCommaAfterRest(p),--d}}for(let D=0;D<d;D++){let y=i[D];y&&(this.toAssignable(y),y.type==="RestElement"&&this.raiseRestNotLast(y.start))}return i}toReferencedList(i,p){return i}toReferencedListDeep(i,p){this.toReferencedList(i,p);for(let d=0;d<i.length;d++){let D=i[d];(D==null?void 0:D.type)==="ArrayExpression"&&this.toReferencedListDeep(D.elements)}}parseSpread(i,p){let d=this.startNode();return this.next(),d.argument=this.parseMaybeAssignAllowIn(i,void 0,p),this.finishNode(d,"SpreadElement")}parseRestBinding(){let i=this.startNode();return this.next(),i.argument=this.parseBindingAtom(),this.finishNode(i,"RestElement")}parseBindingAtom(){switch(this.state.type){case a.bracketL:{let i=this.startNode();return this.next(),i.elements=this.parseBindingList(a.bracketR,93,!0),this.finishNode(i,"ArrayPattern")}case a.braceL:return this.parseObjectLike(a.braceR,!0)}return this.parseIdentifier()}parseBindingList(i,p,d,D){let y=[],x=!0;for(;!this.eat(i);)if(x?x=!1:this.expect(a.comma),d&&this.match(a.comma))y.push(null);else{if(this.eat(i))break;if(this.match(a.ellipsis)){y.push(this.parseAssignableListItemTypes(this.parseRestBinding())),this.checkCommaAfterRest(p),this.expect(i);break}{let S=[];for(this.match(a.at)&&this.hasPlugin("decorators")&&this.raise(this.state.start,v.UnsupportedParameterDecorator);this.match(a.at);)S.push(this.parseDecorator());y.push(this.parseAssignableListItem(D,S))}}return y}parseAssignableListItem(i,p){let d=this.parseMaybeDefault();this.parseAssignableListItemTypes(d);let D=this.parseMaybeDefault(d.start,d.loc.start,d);return p.length&&(d.decorators=p),D}parseAssignableListItemTypes(i){return i}parseMaybeDefault(i,p,d){var D,y,x;if(p=(D=p)!=null?D:this.state.startLoc,i=(y=i)!=null?y:this.state.start,d=(x=d)!=null?x:this.parseBindingAtom(),!this.eat(a.eq))return d;let S=this.startNodeAt(i,p);return S.left=d,S.right=this.parseMaybeAssignAllowIn(),this.finishNode(S,"AssignmentPattern")}checkLVal(i,p=64,d,D,y,x=!1){switch(i.type){case"Identifier":if(this.state.strict&&(x?Bp(i.name,this.inModule):Tp(i.name))&&this.raise(i.start,p===g?v.StrictEvalArguments:v.StrictEvalArgumentsBinding,i.name),d){let S="_".concat(i.name);d[S]?this.raise(i.start,v.ParamDupe):d[S]=!0}y&&i.name==="let"&&this.raise(i.start,v.LetInLexicalBinding),p&g||this.scope.declareName(i.name,p,i.start);break;case"MemberExpression":p!==g&&this.raise(i.start,v.InvalidPropertyBindingPattern);break;case"ObjectPattern":for(let S=0,k=i.properties;S<k.length;S++){let L=k[S];if(L.type==="ObjectProperty")L=L.value;else if(L.type==="ObjectMethod")continue;this.checkLVal(L,p,d,"object destructuring pattern",y)}break;case"ArrayPattern":for(let S=0,k=i.elements;S<k.length;S++){let L=k[S];L&&this.checkLVal(L,p,d,"array destructuring pattern",y)}break;case"AssignmentPattern":this.checkLVal(i.left,p,d,"assignment pattern");break;case"RestElement":this.checkLVal(i.argument,p,d,"rest element");break;case"ParenthesizedExpression":this.checkLVal(i.expression,p,d,"parenthesized expression");break;default:this.raise(i.start,p===g?v.InvalidLhs:v.InvalidLhsBinding,D)}}checkToRestConversion(i){i.argument.type!=="Identifier"&&i.argument.type!=="MemberExpression"&&this.raise(i.argument.start,v.InvalidRestAssignmentPattern)}checkCommaAfterRest(i){this.match(a.comma)&&(this.lookaheadCharCode()===i?this.raiseTrailingCommaAfterRest(this.state.start):this.raiseRestNotLast(this.state.start))}raiseRestNotLast(i){throw this.raise(i,v.ElementAfterRest)}raiseTrailingCommaAfterRest(i){this.raise(i,v.RestTrailingComma)}}{checkProto(i,p,d,D){if(i.type==="SpreadElement"||i.type==="ObjectMethod"||i.computed||i.shorthand)return;let y=i.key;if((y.type==="Identifier"?y.name:y.value)==="__proto__"){if(p)return void this.raise(y.start,v.RecordNoProto);d.used&&(D?D.doubleProto===-1&&(D.doubleProto=y.start):this.raise(y.start,v.DuplicateProto)),d.used=!0}}shouldExitDescending(i,p){return i.type==="ArrowFunctionExpression"&&i.start===p}getExpression(){let i=0;this.hasPlugin("topLevelAwait")&&this.inModule&&(i|=2),this.scope.enter(1),this.prodParam.enter(i),this.nextToken();let p=this.parseExpression();return this.match(a.eof)||this.unexpected(),p.comments=this.state.comments,p.errors=this.state.errors,p}parseExpression(i,p){return i?this.disallowInAnd(()=>this.parseExpressionBase(p)):this.allowInAnd(()=>this.parseExpressionBase(p))}parseExpressionBase(i){let p=this.state.start,d=this.state.startLoc,D=this.parseMaybeAssign(i);if(this.match(a.comma)){let y=this.startNodeAt(p,d);for(y.expressions=[D];this.eat(a.comma);)y.expressions.push(this.parseMaybeAssign(i));return this.toReferencedList(y.expressions),this.finishNode(y,"SequenceExpression")}return D}parseMaybeAssignDisallowIn(i,p,d){return this.disallowInAnd(()=>this.parseMaybeAssign(i,p,d))}parseMaybeAssignAllowIn(i,p,d){return this.allowInAnd(()=>this.parseMaybeAssign(i,p,d))}parseMaybeAssign(i,p,d){let D=this.state.start,y=this.state.startLoc;if(this.isContextual("yield")&&this.prodParam.hasYield){this.state.exprAllowed=!0;let k=this.parseYield();return p&&(k=p.call(this,k,D,y)),k}let x;i?x=!1:(i=new vi,x=!0),(this.match(a.parenL)||this.match(a.name))&&(this.state.potentialArrowAt=this.state.start);let S=this.parseMaybeConditional(i,d);if(p&&(S=p.call(this,S,D,y)),this.state.type.isAssign){let k=this.startNodeAt(D,y),L=this.state.value;return k.operator=L,this.match(a.eq)?(k.left=this.toAssignable(S),i.doubleProto=-1):k.left=S,i.shorthandAssign>=k.left.start&&(i.shorthandAssign=-1),this.checkLVal(S,void 0,void 0,"assignment expression"),this.next(),k.right=this.parseMaybeAssign(),this.finishNode(k,"AssignmentExpression")}return x&&this.checkExpressionErrors(i,!0),S}parseMaybeConditional(i,p){let d=this.state.start,D=this.state.startLoc,y=this.state.potentialArrowAt,x=this.parseExprOps(i);return this.shouldExitDescending(x,y)?x:this.parseConditional(x,d,D,p)}parseConditional(i,p,d,D){if(this.eat(a.question)){let y=this.startNodeAt(p,d);return y.test=i,y.consequent=this.parseMaybeAssignAllowIn(),this.expect(a.colon),y.alternate=this.parseMaybeAssign(),this.finishNode(y,"ConditionalExpression")}return i}parseExprOps(i){let p=this.state.start,d=this.state.startLoc,D=this.state.potentialArrowAt,y=this.parseMaybeUnary(i);return this.shouldExitDescending(y,D)?y:this.parseExprOp(y,p,d,-1)}parseExprOp(i,p,d,D){let y=this.state.type.binop;if(y!=null&&(this.prodParam.hasIn||!this.match(a._in))&&y>D){let x=this.state.type;if(x===a.pipeline){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return i;this.state.inPipeline=!0,this.checkPipelineAtInfixOperator(i,p)}let S=this.startNodeAt(p,d);S.left=i,S.operator=this.state.value,x!==a.exponent||i.type!=="UnaryExpression"||!this.options.createParenthesizedExpressions&&i.extra&&i.extra.parenthesized||this.raise(i.argument.start,v.UnexpectedTokenUnaryExponentiation);let k=x===a.logicalOR||x===a.logicalAND,L=x===a.nullishCoalescing;if(L&&(y=a.logicalAND.binop),this.next(),x===a.pipeline&&this.getPluginOption("pipelineOperator","proposal")==="minimal"&&this.match(a.name)&&this.state.value==="await"&&this.prodParam.hasAwait)throw this.raise(this.state.start,v.UnexpectedAwaitAfterPipelineBody);S.right=this.parseExprOpRightExpr(x,y),this.finishNode(S,k||L?"LogicalExpression":"BinaryExpression");let V=this.state.type;if(L&&(V===a.logicalOR||V===a.logicalAND)||k&&V===a.nullishCoalescing)throw this.raise(this.state.start,v.MixingCoalesceWithLogical);return this.parseExprOp(S,p,d,D)}return i}parseExprOpRightExpr(i,p){let d=this.state.start,D=this.state.startLoc;switch(i){case a.pipeline:switch(this.getPluginOption("pipelineOperator","proposal")){case"smart":return this.withTopicPermittingContext(()=>this.parseSmartPipelineBody(this.parseExprOpBaseRightExpr(i,p),d,D));case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(p))}default:return this.parseExprOpBaseRightExpr(i,p)}}parseExprOpBaseRightExpr(i,p){let d=this.state.start,D=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnary(),d,D,i.rightAssociative?p-1:p)}parseMaybeUnary(i){if(this.isContextual("await")&&this.isAwaitAllowed())return this.parseAwait();let p=this.match(a.incDec),d=this.startNode();if(this.state.type.prefix){d.operator=this.state.value,d.prefix=!0,this.match(a._throw)&&this.expectPlugin("throwExpressions");let D=this.match(a._delete);if(this.next(),d.argument=this.parseMaybeUnary(),this.checkExpressionErrors(i,!0),this.state.strict&&D){let y=d.argument;y.type==="Identifier"?this.raise(d.start,v.StrictDelete):y.type!=="MemberExpression"&&y.type!=="OptionalMemberExpression"||y.property.type!=="PrivateName"||this.raise(d.start,v.DeletePrivateField)}if(!p)return this.finishNode(d,"UnaryExpression")}return this.parseUpdate(d,p,i)}parseUpdate(i,p,d){if(p)return this.checkLVal(i.argument,void 0,void 0,"prefix operation"),this.finishNode(i,"UpdateExpression");let D=this.state.start,y=this.state.startLoc,x=this.parseExprSubscripts(d);if(this.checkExpressionErrors(d,!1))return x;for(;this.state.type.postfix&&!this.canInsertSemicolon();){let S=this.startNodeAt(D,y);S.operator=this.state.value,S.prefix=!1,S.argument=x,this.checkLVal(x,void 0,void 0,"postfix operation"),this.next(),x=this.finishNode(S,"UpdateExpression")}return x}parseExprSubscripts(i){let p=this.state.start,d=this.state.startLoc,D=this.state.potentialArrowAt,y=this.parseExprAtom(i);return this.shouldExitDescending(y,D)?y:this.parseSubscripts(y,p,d)}parseSubscripts(i,p,d,D){let y={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(i),stop:!1};do i=this.parseSubscript(i,p,d,D,y),y.maybeAsyncArrow=!1;while(!y.stop);return i}parseSubscript(i,p,d,D,y){if(!D&&this.eat(a.doubleColon))return this.parseBind(i,p,d,D,y);if(this.match(a.backQuote))return this.parseTaggedTemplateExpression(i,p,d,y);let x=!1;if(this.match(a.questionDot)){if(y.optionalChainMember=x=!0,D&&this.lookaheadCharCode()===40)return y.stop=!0,i;this.next()}return!D&&this.match(a.parenL)?this.parseCoverCallAndAsyncArrowHead(i,p,d,y,x):x||this.match(a.bracketL)||this.eat(a.dot)?this.parseMember(i,p,d,y,x):(y.stop=!0,i)}parseMember(i,p,d,D,y){let x=this.startNodeAt(p,d),S=this.eat(a.bracketL);x.object=i,x.computed=S;let k=S?this.parseExpression():this.parseMaybePrivateName(!0);return k.type==="PrivateName"&&(x.object.type==="Super"&&this.raise(p,v.SuperPrivateField),this.classScope.usePrivateName(k.id.name,k.start)),x.property=k,S&&this.expect(a.bracketR),D.optionalChainMember?(x.optional=y,this.finishNode(x,"OptionalMemberExpression")):this.finishNode(x,"MemberExpression")}parseBind(i,p,d,D,y){let x=this.startNodeAt(p,d);return x.object=i,x.callee=this.parseNoCallExpr(),y.stop=!0,this.parseSubscripts(this.finishNode(x,"BindExpression"),p,d,D)}parseCoverCallAndAsyncArrowHead(i,p,d,D,y){let x=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0,this.next();let S=this.startNodeAt(p,d);return S.callee=i,D.maybeAsyncArrow&&this.expressionScope.enter(new $p(2)),D.optionalChainMember&&(S.optional=y),S.arguments=y?this.parseCallExpressionArguments(a.parenR,!1):this.parseCallExpressionArguments(a.parenR,D.maybeAsyncArrow,i.type==="Import",i.type!=="Super",S),this.finishCallExpression(S,D.optionalChainMember),D.maybeAsyncArrow&&this.shouldParseAsyncArrow()&&!y?(D.stop=!0,this.expressionScope.validateAsPattern(),this.expressionScope.exit(),S=this.parseAsyncArrowFromCallExpression(this.startNodeAt(p,d),S)):(D.maybeAsyncArrow&&this.expressionScope.exit(),this.toReferencedArguments(S)),this.state.maybeInArrowParameters=x,S}toReferencedArguments(i,p){this.toReferencedListDeep(i.arguments,p)}parseTaggedTemplateExpression(i,p,d,D){let y=this.startNodeAt(p,d);return y.tag=i,y.quasi=this.parseTemplate(!0),D.optionalChainMember&&this.raise(p,v.OptionalChainingNoTemplate),this.finishNode(y,"TaggedTemplateExpression")}atPossibleAsyncArrow(i){return i.type==="Identifier"&&i.name==="async"&&this.state.lastTokEnd===i.end&&!this.canInsertSemicolon()&&i.end-i.start==5&&i.start===this.state.potentialArrowAt}finishCallExpression(i,p){if(i.callee.type==="Import")if(i.arguments.length===2&&(this.hasPlugin("moduleAttributes")||this.expectPlugin("importAssertions")),i.arguments.length===0||i.arguments.length>2)this.raise(i.start,v.ImportCallArity,this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?"one or two arguments":"one argument");else for(let d=0,D=i.arguments;d<D.length;d++){let y=D[d];y.type==="SpreadElement"&&this.raise(y.start,v.ImportCallSpreadArgument)}return this.finishNode(i,p?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(i,p,d,D,y){let x=[],S,k=!0,L=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(i);){if(k)k=!1;else if(this.expect(a.comma),this.match(i)){!d||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")||this.raise(this.state.lastTokStart,v.ImportCallArgumentTrailingComma),y&&this.addExtra(y,"trailingComma",this.state.lastTokStart),this.next();break}this.match(a.parenL)&&!S&&(S=this.state.start),x.push(this.parseExprListItem(!1,p?new vi:void 0,p?{start:0}:void 0,D))}return p&&S&&this.shouldParseAsyncArrow()&&this.unexpected(),this.state.inFSharpPipelineDirectBody=L,x}shouldParseAsyncArrow(){return this.match(a.arrow)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(i,p){var d;return this.expect(a.arrow),this.parseArrowExpression(i,p.arguments,!0,(d=p.extra)==null?void 0:d.trailingComma),i}parseNoCallExpr(){let i=this.state.start,p=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),i,p,!0)}parseExprAtom(i){this.state.type===a.slash&&this.readRegexp();let p=this.state.potentialArrowAt===this.state.start,d;switch(this.state.type){case a._super:return this.parseSuper();case a._import:return d=this.startNode(),this.next(),this.match(a.dot)?this.parseImportMetaProperty(d):(this.match(a.parenL)||this.raise(this.state.lastTokStart,v.UnsupportedImport),this.finishNode(d,"Import"));case a._this:return d=this.startNode(),this.next(),this.finishNode(d,"ThisExpression");case a.name:{let D=this.state.containsEsc,y=this.parseIdentifier();if(!D&&y.name==="async"&&!this.canInsertSemicolon()){if(this.match(a._function)){let x=this.state.context.length-1;if(this.state.context[x]!==M.functionStatement)throw new Error("Internal error");return this.state.context[x]=M.functionExpression,this.next(),this.parseFunction(this.startNodeAtNode(y),void 0,!0)}if(this.match(a.name))return this.parseAsyncArrowUnaryFunction(y)}return p&&this.match(a.arrow)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(y),[y],!1)):y}case a._do:return this.parseDo();case a.regexp:{let D=this.state.value;return d=this.parseLiteral(D.value,"RegExpLiteral"),d.pattern=D.pattern,d.flags=D.flags,d}case a.num:return this.parseLiteral(this.state.value,"NumericLiteral");case a.bigint:return this.parseLiteral(this.state.value,"BigIntLiteral");case a.decimal:return this.parseLiteral(this.state.value,"DecimalLiteral");case a.string:return this.parseLiteral(this.state.value,"StringLiteral");case a._null:return d=this.startNode(),this.next(),this.finishNode(d,"NullLiteral");case a._true:case a._false:return this.parseBooleanLiteral();case a.parenL:return this.parseParenAndDistinguishExpression(p);case a.bracketBarL:case a.bracketHashL:return this.parseArrayLike(this.state.type===a.bracketBarL?a.bracketBarR:a.bracketR,!1,!0,i);case a.bracketL:return this.parseArrayLike(a.bracketR,!0,!1,i);case a.braceBarL:case a.braceHashL:return this.parseObjectLike(this.state.type===a.braceBarL?a.braceBarR:a.braceR,!1,!0,i);case a.braceL:return this.parseObjectLike(a.braceR,!1,!1,i);case a._function:return this.parseFunctionOrFunctionSent();case a.at:this.parseDecorators();case a._class:return d=this.startNode(),this.takeDecorators(d),this.parseClass(d,!1);case a._new:return this.parseNewOrNewTarget();case a.backQuote:return this.parseTemplate(!1);case a.doubleColon:{d=this.startNode(),this.next(),d.object=null;let D=d.callee=this.parseNoCallExpr();if(D.type==="MemberExpression")return this.finishNode(d,"BindExpression");throw this.raise(D.start,v.UnsupportedBind)}case a.hash:{if(this.state.inPipeline)return d=this.startNode(),this.getPluginOption("pipelineOperator","proposal")!=="smart"&&this.raise(d.start,v.PrimaryTopicRequiresSmartPipeline),this.next(),this.primaryTopicReferenceIsAllowedInCurrentTopicContext()||this.raise(d.start,v.PrimaryTopicNotAllowed),this.registerTopicReference(),this.finishNode(d,"PipelinePrimaryTopicReference");let D=this.input.codePointAt(this.state.end);if(ue(D)||D===92){let y=this.state.start;if(d=this.parseMaybePrivateName(!0),this.match(a._in))this.expectPlugin("privateIn"),this.classScope.usePrivateName(d.id.name,d.start);else{if(!this.hasPlugin("privateIn"))throw this.unexpected(y);this.raise(this.state.start,v.PrivateInExpectedIn,d.id.name)}return d}}case a.relational:if(this.state.value==="<"){let D=this.input.codePointAt(this.nextTokenStart());(ue(D)||D===62)&&this.expectOnePlugin(["jsx","flow","typescript"])}default:throw this.unexpected()}}parseAsyncArrowUnaryFunction(i){let p=this.startNodeAtNode(i);this.prodParam.enter(xi(!0,this.prodParam.hasYield));let d=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(this.state.pos,v.LineTerminatorBeforeArrow),this.expect(a.arrow),this.parseArrowExpression(p,d,!0),p}parseDo(){this.expectPlugin("doExpressions");let i=this.startNode();this.next();let p=this.state.labels;return this.state.labels=[],i.body=this.parseBlock(),this.state.labels=p,this.finishNode(i,"DoExpression")}parseSuper(){let i=this.startNode();return this.next(),!this.match(a.parenL)||this.scope.allowDirectSuper||this.options.allowSuperOutsideMethod?this.scope.allowSuper||this.options.allowSuperOutsideMethod||this.raise(i.start,v.UnexpectedSuper):this.raise(i.start,v.SuperNotAllowed),this.match(a.parenL)||this.match(a.bracketL)||this.match(a.dot)||this.raise(i.start,v.UnsupportedSuper),this.finishNode(i,"Super")}parseBooleanLiteral(){let i=this.startNode();return i.value=this.match(a._true),this.next(),this.finishNode(i,"BooleanLiteral")}parseMaybePrivateName(i){if(this.match(a.hash)){this.expectOnePlugin(["classPrivateProperties","classPrivateMethods"]),i||this.raise(this.state.pos,v.UnexpectedPrivateField);let p=this.startNode();return this.next(),this.assertNoSpace("Unexpected space between # and identifier"),p.id=this.parseIdentifier(!0),this.finishNode(p,"PrivateName")}return this.parseIdentifier(!0)}parseFunctionOrFunctionSent(){let i=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(a.dot)){let p=this.createIdentifier(this.startNodeAtNode(i),"function");return this.next(),this.parseMetaProperty(i,p,"sent")}return this.parseFunction(i)}parseMetaProperty(i,p,d){i.meta=p,p.name==="function"&&d==="sent"&&(this.isContextual(d)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected());let D=this.state.containsEsc;return i.property=this.parseIdentifier(!0),(i.property.name!==d||D)&&this.raise(i.property.start,v.UnsupportedMetaProperty,p.name,d),this.finishNode(i,"MetaProperty")}parseImportMetaProperty(i){let p=this.createIdentifier(this.startNodeAtNode(i),"import");return this.next(),this.isContextual("meta")&&(this.inModule||this.raiseWithData(p.start,{code:"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"},v.ImportMetaOutsideModule),this.sawUnambiguousESM=!0),this.parseMetaProperty(i,p,"meta")}parseLiteral(i,p,d,D){d=d||this.state.start,D=D||this.state.startLoc;let y=this.startNodeAt(d,D);return this.addExtra(y,"rawValue",i),this.addExtra(y,"raw",this.input.slice(d,this.state.end)),y.value=i,this.next(),this.finishNode(y,p)}parseParenAndDistinguishExpression(i){let p=this.state.start,d=this.state.startLoc,D;this.next(),this.expressionScope.enter(new $p(1));let y=this.state.maybeInArrowParameters,x=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let S=this.state.start,k=this.state.startLoc,L=[],V=new vi,K={start:0},J,ee,be=!0;for(;!this.match(a.parenR);){if(be)be=!1;else if(this.expect(a.comma,K.start||null),this.match(a.parenR)){ee=this.state.start;break}if(this.match(a.ellipsis)){let Jt=this.state.start,hs=this.state.startLoc;J=this.state.start,L.push(this.parseParenItem(this.parseRestBinding(),Jt,hs)),this.checkCommaAfterRest(41);break}L.push(this.parseMaybeAssignAllowIn(V,this.parseParenItem,K))}let Me=this.state.lastTokEnd,ve=this.state.lastTokEndLoc;this.expect(a.parenR),this.state.maybeInArrowParameters=y,this.state.inFSharpPipelineDirectBody=x;let ze=this.startNodeAt(p,d);if(i&&this.shouldParseArrow()&&(ze=this.parseArrow(ze))){this.expressionScope.validateAsPattern(),this.expressionScope.exit();for(let Jt=0;Jt<L.length;Jt++){let hs=L[Jt];hs.extra&&hs.extra.parenthesized&&this.unexpected(hs.extra.parenStart)}return this.parseArrowExpression(ze,L,!1),ze}if(this.expressionScope.exit(),L.length||this.unexpected(this.state.lastTokStart),ee&&this.unexpected(ee),J&&this.unexpected(J),this.checkExpressionErrors(V,!0),K.start&&this.unexpected(K.start),this.toReferencedListDeep(L,!0),L.length>1?(D=this.startNodeAt(S,k),D.expressions=L,this.finishNodeAt(D,"SequenceExpression",Me,ve)):D=L[0],!this.options.createParenthesizedExpressions)return this.addExtra(D,"parenthesized",!0),this.addExtra(D,"parenStart",p),D;let gn=this.startNodeAt(p,d);return gn.expression=D,this.finishNode(gn,"ParenthesizedExpression"),gn}shouldParseArrow(){return!this.canInsertSemicolon()}parseArrow(i){if(this.eat(a.arrow))return i}parseParenItem(i,p,d){return i}parseNewOrNewTarget(){let i=this.startNode();if(this.next(),this.match(a.dot)){let p=this.createIdentifier(this.startNodeAtNode(i),"new");this.next();let d=this.parseMetaProperty(i,p,"target");if(!this.scope.inNonArrowFunction&&!this.scope.inClass){let D=v.UnexpectedNewTarget;this.hasPlugin("classProperties")&&(D+=" or class properties"),this.raise(d.start,D)}return d}return this.parseNew(i)}parseNew(i){return i.callee=this.parseNoCallExpr(),i.callee.type==="Import"?this.raise(i.callee.start,v.ImportCallNotNewExpression):i.callee.type==="OptionalMemberExpression"||i.callee.type==="OptionalCallExpression"?this.raise(this.state.lastTokEnd,v.OptionalChainingNoNew):this.eat(a.questionDot)&&this.raise(this.state.start,v.OptionalChainingNoNew),this.parseNewArguments(i),this.finishNode(i,"NewExpression")}parseNewArguments(i){if(this.eat(a.parenL)){let p=this.parseExprList(a.parenR);this.toReferencedList(p),i.arguments=p}else i.arguments=[]}parseTemplateElement(i){let p=this.startNode();return this.state.value===null&&(i||this.raise(this.state.start+1,v.InvalidEscapeSequenceTemplate)),p.value={raw:this.input.slice(this.state.start,this.state.end).replace(/\r\n?/g,
),cooked:this.state.value},this.next(),p.tail=this.match(a.backQuote),this.finishNode(p,"TemplateElement")}parseTemplate(i){let p=this.startNode();this.next(),p.expressions=[];let d=this.parseTemplateElement(i);for(p.quasis=[d];!d.tail;)this.expect(a.dollarBraceL),p.expressions.push(this.parseTemplateSubstitution()),this.expect(a.braceR),p.quasis.push(d=this.parseTemplateElement(i));return this.next(),this.finishNode(p,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(i,p,d,D){d&&this.expectPlugin("recordAndTuple");let y=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let x=Object.create(null),S=!0,k=this.startNode();for(k.properties=[],this.next();!this.match(i);){if(S)S=!1;else if(this.expect(a.comma),this.match(i)){this.addExtra(k,"trailingComma",this.state.lastTokStart);break}let V=this.parsePropertyDefinition(p,D);p||this.checkProto(V,d,x,D),d&&V.type!=="ObjectProperty"&&V.type!=="SpreadElement"&&this.raise(V.start,v.InvalidRecordProperty),V.shorthand&&this.addExtra(V,"shorthand",!0),k.properties.push(V)}this.state.exprAllowed=!1,this.next(),this.state.inFSharpPipelineDirectBody=y;let L="ObjectExpression";return p?L="ObjectPattern":d&&(L="RecordExpression"),this.finishNode(k,L)}maybeAsyncOrAccessorProp(i){return!i.computed&&i.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(a.bracketL)||this.match(a.star))}parsePropertyDefinition(i,p){let d=[];if(this.match(a.at))for(this.hasPlugin("decorators")&&this.raise(this.state.start,v.UnsupportedPropertyDecorator);this.match(a.at);)d.push(this.parseDecorator());let D=this.startNode(),y,x,S=!1,k=!1,L=!1;if(this.match(a.ellipsis))return d.length&&this.unexpected(),i?(this.next(),D.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(D,"RestElement")):this.parseSpread();d.length&&(D.decorators=d,d=[]),D.method=!1,(i||p)&&(y=this.state.start,x=this.state.startLoc),i||(S=this.eat(a.star));let V=this.state.containsEsc,K=this.parsePropertyName(D,!1);if(!i&&!S&&!V&&this.maybeAsyncOrAccessorProp(D)){let J=K.name;J!=="async"||this.hasPrecedingLineBreak()||(k=!0,S=this.eat(a.star),this.parsePropertyName(D,!1)),J!=="get"&&J!=="set"||(L=!0,D.kind=J,this.match(a.star)&&(S=!0,this.raise(this.state.pos,v.AccessorIsGenerator,J),this.next()),this.parsePropertyName(D,!1))}return this.parseObjPropValue(D,y,x,S,k,i,L,p),D}getGetterSetterExpectedParamCount(i){return i.kind==="get"?0:1}getObjectOrClassMethodParams(i){return i.params}checkGetterSetterParams(i){var p;let d=this.getGetterSetterExpectedParamCount(i),D=this.getObjectOrClassMethodParams(i),y=i.start;D.length!==d&&(i.kind==="get"?this.raise(y,v.BadGetterArity):this.raise(y,v.BadSetterArity)),i.kind==="set"&&((p=D[D.length-1])==null?void 0:p.type)==="RestElement"&&this.raise(y,v.BadSetterRestParameter)}parseObjectMethod(i,p,d,D,y){return y?(this.parseMethod(i,p,!1,!1,!1,"ObjectMethod"),this.checkGetterSetterParams(i),i):d||p||this.match(a.parenL)?(D&&this.unexpected(),i.kind="method",i.method=!0,this.parseMethod(i,p,d,!1,!1,"ObjectMethod")):void 0}parseObjectProperty(i,p,d,D,y){return i.shorthand=!1,this.eat(a.colon)?(i.value=D?this.parseMaybeDefault(this.state.start,this.state.startLoc):this.parseMaybeAssignAllowIn(y),this.finishNode(i,"ObjectProperty")):i.computed||i.key.type!=="Identifier"?void 0:(this.checkReservedWord(i.key.name,i.key.start,!0,!1),D?i.value=this.parseMaybeDefault(p,d,i.key.__clone()):this.match(a.eq)&&y?(y.shorthandAssign===-1&&(y.shorthandAssign=this.state.start),i.value=this.parseMaybeDefault(p,d,i.key.__clone())):i.value=i.key.__clone(),i.shorthand=!0,this.finishNode(i,"ObjectProperty"))}parseObjPropValue(i,p,d,D,y,x,S,k){let L=this.parseObjectMethod(i,D,y,x,S)||this.parseObjectProperty(i,p,d,x,k);return L||this.unexpected(),L}parsePropertyName(i,p){if(this.eat(a.bracketL))i.computed=!0,i.key=this.parseMaybeAssignAllowIn(),this.expect(a.bracketR);else{let d=this.state.inPropertyName;this.state.inPropertyName=!0,i.key=this.match(a.num)||this.match(a.string)||this.match(a.bigint)||this.match(a.decimal)?this.parseExprAtom():this.parseMaybePrivateName(p),i.key.type!=="PrivateName"&&(i.computed=!1),this.state.inPropertyName=d}return i.key}initFunction(i,p){i.id=null,i.generator=!1,i.async=!!p}parseMethod(i,p,d,D,y,x,S=!1){this.initFunction(i,d),i.generator=!!p;let k=D;return this.scope.enter(18|(S?64:0)|(y?32:0)),this.prodParam.enter(xi(d,i.generator)),this.parseFunctionParams(i,k),this.parseFunctionBodyAndFinish(i,x,!0),this.prodParam.exit(),this.scope.exit(),i}parseArrayLike(i,p,d,D){d&&this.expectPlugin("recordAndTuple");let y=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let x=this.startNode();return this.next(),x.elements=this.parseExprList(i,!d,D,x),this.state.inFSharpPipelineDirectBody=y,this.finishNode(x,d?"TupleExpression":"ArrayExpression")}parseArrowExpression(i,p,d,D){this.scope.enter(6);let y=xi(d,!1);!this.match(a.bracketL)&&this.prodParam.hasIn&&(y|=8),this.prodParam.enter(y),this.initFunction(i,d);let x=this.state.maybeInArrowParameters;return p&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(i,p,D)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(i,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=x,this.finishNode(i,"ArrowFunctionExpression")}setArrowFunctionParameters(i,p,d){i.params=this.toAssignableList(p,d)}parseFunctionBodyAndFinish(i,p,d=!1){this.parseFunctionBody(i,!1,d),this.finishNode(i,p)}parseFunctionBody(i,p,d=!1){let D=p&&!this.match(a.braceL);if(this.expressionScope.enter(Bu()),D)i.body=this.parseMaybeAssign(),this.checkParams(i,!1,p,!1);else{let y=this.state.strict,x=this.state.labels;this.state.labels=[],this.prodParam.enter(4|this.prodParam.currentFlags()),i.body=this.parseBlock(!0,!1,S=>{let k=!this.isSimpleParamList(i.params);if(S&&k){let V=i.kind!=="method"&&i.kind!=="constructor"||!i.key?i.start:i.key.end;this.raise(V,v.IllegalLanguageModeDirective)}let L=!y&&this.state.strict;this.checkParams(i,!(this.state.strict||p||d||k),p,L),this.state.strict&&i.id&&this.checkLVal(i.id,65,void 0,"function name",void 0,L)}),this.prodParam.exit(),this.expressionScope.exit(),this.state.labels=x}}isSimpleParamList(i){for(let p=0,d=i.length;p<d;p++)if(i[p].type!=="Identifier")return!1;return!0}checkParams(i,p,d,D=!0){let y=Object.create(null);for(let x=0;x<i.params.length;x++)this.checkLVal(i.params[x],5,p?null:y,"function parameter list",void 0,D)}parseExprList(i,p,d,D){let y=[],x=!0;for(;!this.eat(i);){if(x)x=!1;else if(this.expect(a.comma),this.match(i)){D&&this.addExtra(D,"trailingComma",this.state.lastTokStart),this.next();break}y.push(this.parseExprListItem(p,d))}return y}parseExprListItem(i,p,d,D){let y;if(this.match(a.comma))i||this.raise(this.state.pos,v.UnexpectedToken,","),y=null;else if(this.match(a.ellipsis)){let x=this.state.start,S=this.state.startLoc;y=this.parseParenItem(this.parseSpread(p,d),x,S)}else if(this.match(a.question)){this.expectPlugin("partialApplication"),D||this.raise(this.state.start,v.UnexpectedArgumentPlaceholder);let x=this.startNode();this.next(),y=this.finishNode(x,"ArgumentPlaceholder")}else y=this.parseMaybeAssignAllowIn(p,this.parseParenItem,d);return y}parseIdentifier(i){let p=this.startNode(),d=this.parseIdentifierName(p.start,i);return this.createIdentifier(p,d)}createIdentifier(i,p){return i.name=p,i.loc.identifierName=p,this.finishNode(i,"Identifier")}parseIdentifierName(i,p){let d,{start:D,type:y}=this.state;if(y===a.name)d=this.state.value;else{if(!y.keyword)throw this.unexpected();{d=y.keyword;let x=this.curContext();y!==a._class&&y!==a._function||x!==M.functionStatement&&x!==M.functionExpression||this.state.context.pop()}}return p?this.state.type=a.name:this.checkReservedWord(d,D,!!y.keyword,!1),this.next(),d}checkReservedWord(i,p,d,D){if(this.prodParam.hasYield&&i==="yield")return void this.raise(p,v.YieldBindingIdentifier);if(i==="await"){if(this.prodParam.hasAwait)return void this.raise(p,v.AwaitBindingIdentifier);this.expressionScope.recordAsyncArrowParametersError(p,v.AwaitBindingIdentifier)}if(this.scope.inClass&&!this.scope.inNonArrowFunction&&i==="arguments")return void this.raise(p,v.ArgumentsInClass);if(d&&Pp(i))return void this.raise(p,v.UnexpectedKeyword,i);(this.state.strict?D?Bp:Sp:wp)(i,this.inModule)&&(this.prodParam.hasAwait||i!=="await"?this.raise(p,v.UnexpectedReservedWord,i):this.raise(p,this.hasPlugin("topLevelAwait")?v.AwaitNotInAsyncContext:v.AwaitNotInAsyncFunction))}isAwaitAllowed(){return this.scope.inFunction?this.prodParam.hasAwait:!!this.options.allowAwaitOutsideFunction||!!this.hasPlugin("topLevelAwait")&&this.inModule&&this.prodParam.hasAwait}parseAwait(){let i=this.startNode();return this.next(),this.expressionScope.recordParameterInitializerError(i.start,v.AwaitExpressionFormalParameter),this.eat(a.star)&&this.raise(i.start,v.ObsoleteAwaitStar),this.scope.inFunction||this.options.allowAwaitOutsideFunction||(this.hasPrecedingLineBreak()||this.match(a.plusMin)||this.match(a.parenL)||this.match(a.bracketL)||this.match(a.backQuote)||this.match(a.regexp)||this.match(a.slash)||this.hasPlugin("v8intrinsic")&&this.match(a.modulo)?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(i.argument=this.parseMaybeUnary()),this.finishNode(i,"AwaitExpression")}parseYield(){let i=this.startNode();return this.expressionScope.recordParameterInitializerError(i.start,v.YieldInParameter),this.next(),this.match(a.semi)||!this.match(a.star)&&!this.state.type.startsExpr||this.hasPrecedingLineBreak()?(i.delegate=!1,i.argument=null):(i.delegate=this.eat(a.star),i.argument=this.parseMaybeAssign()),this.finishNode(i,"YieldExpression")}checkPipelineAtInfixOperator(i,p){this.getPluginOption("pipelineOperator","proposal")==="smart"&&i.type==="SequenceExpression"&&this.raise(p,v.PipelineHeadSequenceExpression)}parseSmartPipelineBody(i,p,d){return this.checkSmartPipelineBodyEarlyErrors(i,p),this.parseSmartPipelineBodyInStyle(i,p,d)}checkSmartPipelineBodyEarlyErrors(i,p){if(this.match(a.arrow))throw this.raise(this.state.start,v.PipelineBodyNoArrow);i.type==="SequenceExpression"&&this.raise(p,v.PipelineBodySequenceExpression)}parseSmartPipelineBodyInStyle(i,p,d){let D=this.startNodeAt(p,d),y=this.isSimpleReference(i);return y?D.callee=i:(this.topicReferenceWasUsedInCurrentTopicContext()||this.raise(p,v.PipelineTopicUnused),D.expression=i),this.finishNode(D,y?"PipelineBareFunction":"PipelineTopicExpression")}isSimpleReference(i){switch(i.type){case"MemberExpression":return!i.computed&&this.isSimpleReference(i.object);case"Identifier":return!0;default:return!1}}withTopicPermittingContext(i){let p=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return i()}finally{this.state.topicContext=p}}withTopicForbiddingContext(i){let p=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return i()}finally{this.state.topicContext=p}}withSoloAwaitPermittingContext(i){let p=this.state.soloAwait;this.state.soloAwait=!0;try{return i()}finally{this.state.soloAwait=p}}allowInAnd(i){let p=this.prodParam.currentFlags();if(8&~p){this.prodParam.enter(8|p);try{return i()}finally{this.prodParam.exit()}}return i()}disallowInAnd(i){let p=this.prodParam.currentFlags();if(8&p){this.prodParam.enter(-9&p);try{return i()}finally{this.prodParam.exit()}}return i()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}primaryTopicReferenceIsAllowedInCurrentTopicContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentTopicContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(i){let p=this.state.start,d=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let D=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let y=this.parseExprOp(this.parseMaybeUnary(),p,d,i);return this.state.inFSharpPipelineDirectBody=D,y}}{parseTopLevel(i,p){if(p.sourceType=this.options.sourceType,p.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(p,!0,!0,a.eof),this.inModule&&!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0)for(let d=0,D=Array.from(this.scope.undefinedExports);d<D.length;d++){let[y]=D[d],x=this.scope.undefinedExports.get(y);this.raise(x,v.ModuleExportUndefined,y)}return i.program=this.finishNode(p,"Program"),i.comments=this.state.comments,this.options.tokens&&(i.tokens=this.tokens),this.finishNode(i,"File")}stmtToDirective(i){let p=i.expression,d=this.startNodeAt(p.start,p.loc.start),D=this.startNodeAt(i.start,i.loc.start),y=this.input.slice(p.start,p.end),x=d.value=y.slice(1,-1);return this.addExtra(d,"raw",y),this.addExtra(d,"rawValue",x),D.value=this.finishNodeAt(d,"DirectiveLiteral",p.end,p.loc.end),this.finishNodeAt(D,"Directive",i.end,i.loc.end)}parseInterpreterDirective(){if(!this.match(a.interpreterDirective))return null;let i=this.startNode();return i.value=this.state.value,this.next(),this.finishNode(i,"InterpreterDirective")}isLet(i){if(!this.isContextual("let"))return!1;let p=this.nextTokenStart(),d=this.input.charCodeAt(p);if(d===91)return!0;if(i)return!1;if(d===123)return!0;if(ue(d)){let D=p+1;for(;Ce(this.input.charCodeAt(D));)++D;let y=this.input.slice(p,D);if(!q2.test(y))return!0}return!1}parseStatement(i,p){return this.match(a.at)&&this.parseDecorators(!0),this.parseStatementContent(i,p)}parseStatementContent(i,p){let d=this.state.type,D=this.startNode(),y;switch(this.isLet(i)&&(d=a._var,y="let"),d){case a._break:case a._continue:return this.parseBreakContinueStatement(D,d.keyword);case a._debugger:return this.parseDebuggerStatement(D);case a._do:return this.parseDoStatement(D);case a._for:return this.parseForStatement(D);case a._function:if(this.lookaheadCharCode()===46)break;return i&&(this.state.strict?this.raise(this.state.start,v.StrictFunction):i!=="if"&&i!=="label"&&this.raise(this.state.start,v.SloppyFunction)),this.parseFunctionStatement(D,!1,!i);case a._class:return i&&this.unexpected(),this.parseClass(D,!0);case a._if:return this.parseIfStatement(D);case a._return:return this.parseReturnStatement(D);case a._switch:return this.parseSwitchStatement(D);case a._throw:return this.parseThrowStatement(D);case a._try:return this.parseTryStatement(D);case a._const:case a._var:return y=y||this.state.value,i&&y!=="var"&&this.raise(this.state.start,v.UnexpectedLexicalDeclaration),this.parseVarStatement(D,y);case a._while:return this.parseWhileStatement(D);case a._with:return this.parseWithStatement(D);case a.braceL:return this.parseBlock();case a.semi:return this.parseEmptyStatement(D);case a._import:{let k=this.lookaheadCharCode();if(k===40||k===46)break}case a._export:{let k;return this.options.allowImportExportEverywhere||p||this.raise(this.state.start,v.UnexpectedImportExport),this.next(),d===a._import?(k=this.parseImport(D),k.type!=="ImportDeclaration"||k.importKind&&k.importKind!=="value"||(this.sawUnambiguousESM=!0)):(k=this.parseExport(D),(k.type!=="ExportNamedDeclaration"||k.exportKind&&k.exportKind!=="value")&&(k.type!=="ExportAllDeclaration"||k.exportKind&&k.exportKind!=="value")&&k.type!=="ExportDefaultDeclaration"||(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(D),k}default:if(this.isAsyncFunction())return i&&this.raise(this.state.start,v.AsyncFunctionInSingleStatementContext),this.next(),this.parseFunctionStatement(D,!0,!i)}let x=this.state.value,S=this.parseExpression();return d===a.name&&S.type==="Identifier"&&this.eat(a.colon)?this.parseLabeledStatement(D,x,S,i):this.parseExpressionStatement(D,S)}assertModuleNodeAllowed(i){this.options.allowImportExportEverywhere||this.inModule||this.raiseWithData(i.start,{code:"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"},v.ImportOutsideModule)}takeDecorators(i){let p=this.state.decoratorStack[this.state.decoratorStack.length-1];p.length&&(i.decorators=p,this.resetStartLocationFromNode(i,p[0]),this.state.decoratorStack[this.state.decoratorStack.length-1]=[])}canHaveLeadingDecorator(){return this.match(a._class)}parseDecorators(i){let p=this.state.decoratorStack[this.state.decoratorStack.length-1];for(;this.match(a.at);){let d=this.parseDecorator();p.push(d)}if(this.match(a._export))i||this.unexpected(),this.hasPlugin("decorators")&&!this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(this.state.start,v.DecoratorExportClass);else if(!this.canHaveLeadingDecorator())throw this.raise(this.state.start,v.UnexpectedLeadingDecorator)}parseDecorator(){this.expectOnePlugin(["decorators-legacy","decorators"]);let i=this.startNode();if(this.next(),this.hasPlugin("decorators")){this.state.decoratorStack.push([]);let p=this.state.start,d=this.state.startLoc,D;if(this.eat(a.parenL))D=this.parseExpression(),this.expect(a.parenR);else for(D=this.parseIdentifier(!1);this.eat(a.dot);){let y=this.startNodeAt(p,d);y.object=D,y.property=this.parseIdentifier(!0),y.computed=!1,D=this.finishNode(y,"MemberExpression")}i.expression=this.parseMaybeDecoratorArguments(D),this.state.decoratorStack.pop()}else i.expression=this.parseExprSubscripts();return this.finishNode(i,"Decorator")}parseMaybeDecoratorArguments(i){if(this.eat(a.parenL)){let p=this.startNodeAtNode(i);return p.callee=i,p.arguments=this.parseCallExpressionArguments(a.parenR,!1),this.toReferencedList(p.arguments),this.finishNode(p,"CallExpression")}return i}parseBreakContinueStatement(i,p){let d=p==="break";return this.next(),this.isLineTerminator()?i.label=null:(i.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(i,p),this.finishNode(i,d?"BreakStatement":"ContinueStatement")}verifyBreakContinue(i,p){let d=p==="break",D;for(D=0;D<this.state.labels.length;++D){let y=this.state.labels[D];if((i.label==null||y.name===i.label.name)&&(y.kind!=null&&(d||y.kind==="loop")||i.label&&d))break}D===this.state.labels.length&&this.raise(i.start,v.IllegalBreakContinue,p)}parseDebuggerStatement(i){return this.next(),this.semicolon(),this.finishNode(i,"DebuggerStatement")}parseHeaderExpression(){this.expect(a.parenL);let i=this.parseExpression();return this.expect(a.parenR),i}parseDoStatement(i){return this.next(),this.state.labels.push(Pu),i.body=this.withTopicForbiddingContext(()=>this.parseStatement("do")),this.state.labels.pop(),this.expect(a._while),i.test=this.parseHeaderExpression(),this.eat(a.semi),this.finishNode(i,"DoWhileStatement")}parseForStatement(i){this.next(),this.state.labels.push(Pu);let p=-1;if(this.isAwaitAllowed()&&this.eatContextual("await")&&(p=this.state.lastTokStart),this.scope.enter(0),this.expect(a.parenL),this.match(a.semi))return p>-1&&this.unexpected(p),this.parseFor(i,null);let d=this.isLet();if(this.match(a._var)||this.match(a._const)||d){let x=this.startNode(),S=d?"let":this.state.value;return this.next(),this.parseVar(x,!0,S),this.finishNode(x,"VariableDeclaration"),(this.match(a._in)||this.isContextual("of"))&&x.declarations.length===1?this.parseForIn(i,x,p):(p>-1&&this.unexpected(p),this.parseFor(i,x))}let D=new vi,y=this.parseExpression(!0,D);if(this.match(a._in)||this.isContextual("of")){this.toAssignable(y);let x=this.isContextual("of")?"for-of statement":"for-in statement";return this.checkLVal(y,void 0,void 0,x),this.parseForIn(i,y,p)}return this.checkExpressionErrors(D,!0),p>-1&&this.unexpected(p),this.parseFor(i,y)}parseFunctionStatement(i,p,d){return this.next(),this.parseFunction(i,1|(d?0:2),p)}parseIfStatement(i){return this.next(),i.test=this.parseHeaderExpression(),i.consequent=this.parseStatement("if"),i.alternate=this.eat(a._else)?this.parseStatement("if"):null,this.finishNode(i,"IfStatement")}parseReturnStatement(i){return this.prodParam.hasReturn||this.options.allowReturnOutsideFunction||this.raise(this.state.start,v.IllegalReturn),this.next(),this.isLineTerminator()?i.argument=null:(i.argument=this.parseExpression(),this.semicolon()),this.finishNode(i,"ReturnStatement")}parseSwitchStatement(i){this.next(),i.discriminant=this.parseHeaderExpression();let p=i.cases=[],d,D;for(this.expect(a.braceL),this.state.labels.push(rE),this.scope.enter(0);!this.match(a.braceR);)if(this.match(a._case)||this.match(a._default)){let y=this.match(a._case);d&&this.finishNode(d,"SwitchCase"),p.push(d=this.startNode()),d.consequent=[],this.next(),y?d.test=this.parseExpression():(D&&this.raise(this.state.lastTokStart,v.MultipleDefaultsInSwitch),D=!0,d.test=null),this.expect(a.colon)}else d?d.consequent.push(this.parseStatement(null)):this.unexpected();return this.scope.exit(),d&&this.finishNode(d,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(i,"SwitchStatement")}parseThrowStatement(i){return this.next(),this.hasPrecedingLineBreak()&&this.raise(this.state.lastTokEnd,v.NewlineAfterThrow),i.argument=this.parseExpression(),this.semicolon(),this.finishNode(i,"ThrowStatement")}parseCatchClauseParam(){let i=this.parseBindingAtom(),p=i.type==="Identifier";return this.scope.enter(p?8:0),this.checkLVal(i,9,null,"catch clause"),i}parseTryStatement(i){if(this.next(),i.block=this.parseBlock(),i.handler=null,this.match(a._catch)){let p=this.startNode();this.next(),this.match(a.parenL)?(this.expect(a.parenL),p.param=this.parseCatchClauseParam(),this.expect(a.parenR)):(p.param=null,this.scope.enter(0)),p.body=this.withTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),i.handler=this.finishNode(p,"CatchClause")}return i.finalizer=this.eat(a._finally)?this.parseBlock():null,i.handler||i.finalizer||this.raise(i.start,v.NoCatchOrFinally),this.finishNode(i,"TryStatement")}parseVarStatement(i,p){return this.next(),this.parseVar(i,!1,p),this.semicolon(),this.finishNode(i,"VariableDeclaration")}parseWhileStatement(i){return this.next(),i.test=this.parseHeaderExpression(),this.state.labels.push(Pu),i.body=this.withTopicForbiddingContext(()=>this.parseStatement("while")),this.state.labels.pop(),this.finishNode(i,"WhileStatement")}parseWithStatement(i){return this.state.strict&&this.raise(this.state.start,v.StrictWith),this.next(),i.object=this.parseHeaderExpression(),i.body=this.withTopicForbiddingContext(()=>this.parseStatement("with")),this.finishNode(i,"WithStatement")}parseEmptyStatement(i){return this.next(),this.finishNode(i,"EmptyStatement")}parseLabeledStatement(i,p,d,D){for(let x=0,S=this.state.labels;x<S.length;x++)S[x].name===p&&this.raise(d.start,v.LabelRedeclaration,p);let y=this.state.type.isLoop?"loop":this.match(a._switch)?"switch":null;for(let x=this.state.labels.length-1;x>=0;x--){let S=this.state.labels[x];if(S.statementStart!==i.start)break;S.statementStart=this.state.start,S.kind=y}return this.state.labels.push({name:p,kind:y,statementStart:this.state.start}),i.body=this.parseStatement(D?D.indexOf("label")===-1?D+"label":D:"label"),this.state.labels.pop(),i.label=d,this.finishNode(i,"LabeledStatement")}parseExpressionStatement(i,p){return i.expression=p,this.semicolon(),this.finishNode(i,"ExpressionStatement")}parseBlock(i=!1,p=!0,d){let D=this.startNode();return this.expect(a.braceL),p&&this.scope.enter(0),this.parseBlockBody(D,i,!1,a.braceR,d),p&&this.scope.exit(),this.finishNode(D,"BlockStatement")}isValidDirective(i){return i.type==="ExpressionStatement"&&i.expression.type==="StringLiteral"&&!i.expression.extra.parenthesized}parseBlockBody(i,p,d,D,y){let x=i.body=[],S=i.directives=[];this.parseBlockOrModuleBlockBody(x,p?S:void 0,d,D,y)}parseBlockOrModuleBlockBody(i,p,d,D,y){let x=[],S=this.state.strict,k=!1,L=!1;for(;!this.match(D);){!L&&this.state.octalPositions.length&&x.push(...this.state.octalPositions);let V=this.parseStatement(null,d);if(p&&!L&&this.isValidDirective(V)){let K=this.stmtToDirective(V);p.push(K),k||K.value.value!=="use strict"||(k=!0,this.setStrict(!0))}else L=!0,i.push(V)}if(this.state.strict&&x.length)for(let V=0;V<x.length;V++){let K=x[V];this.raise(K,v.StrictOctalLiteral)}y&&y.call(this,k),S||this.setStrict(!1),this.next()}parseFor(i,p){return i.init=p,this.expect(a.semi),i.test=this.match(a.semi)?null:this.parseExpression(),this.expect(a.semi),i.update=this.match(a.parenR)?null:this.parseExpression(),this.expect(a.parenR),i.body=this.withTopicForbiddingContext(()=>this.parseStatement("for")),this.scope.exit(),this.state.labels.pop(),this.finishNode(i,"ForStatement")}parseForIn(i,p,d){let D=this.match(a._in);return this.next(),D?d>-1&&this.unexpected(d):i.await=d>-1,p.type!=="VariableDeclaration"||p.declarations[0].init==null||D&&!this.state.strict&&p.kind==="var"&&p.declarations[0].id.type==="Identifier"?p.type==="AssignmentPattern"&&this.raise(p.start,v.InvalidLhs,"for-loop"):this.raise(p.start,v.ForInOfLoopInitializer,D?"for-in":"for-of"),i.left=p,i.right=D?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(a.parenR),i.body=this.withTopicForbiddingContext(()=>this.parseStatement("for")),this.scope.exit(),this.state.labels.pop(),this.finishNode(i,D?"ForInStatement":"ForOfStatement")}parseVar(i,p,d){let D=i.declarations=[],y=this.hasPlugin("typescript");for(i.kind=d;;){let x=this.startNode();if(this.parseVarId(x,d),this.eat(a.eq)?x.init=p?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():(d!=="const"||this.match(a._in)||this.isContextual("of")?x.id.type==="Identifier"||p&&(this.match(a._in)||this.isContextual("of"))||this.raise(this.state.lastTokEnd,v.DeclarationMissingInitializer,"Complex binding patterns"):y||this.raise(this.state.lastTokEnd,v.DeclarationMissingInitializer,"Const declarations"),x.init=null),D.push(this.finishNode(x,"VariableDeclarator")),!this.eat(a.comma))break}return i}parseVarId(i,p){i.id=this.parseBindingAtom(),this.checkLVal(i.id,p==="var"?5:9,void 0,"variable declaration",p!=="var")}parseFunction(i,p=0,d=!1){let D=1&p,y=2&p,x=!(!D||4&p);this.initFunction(i,d),this.match(a.star)&&y&&this.raise(this.state.start,v.GeneratorInSingleStatementContext),i.generator=this.eat(a.star),D&&(i.id=this.parseFunctionId(x));let S=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(xi(d,i.generator)),D||(i.id=this.parseFunctionId()),this.parseFunctionParams(i,!1),this.withTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(i,D?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),D&&!y&&this.registerFunctionStatementId(i),this.state.maybeInArrowParameters=S,i}parseFunctionId(i){return i||this.match(a.name)?this.parseIdentifier():null}parseFunctionParams(i,p){this.expect(a.parenL),this.expressionScope.enter(new Si(3)),i.params=this.parseBindingList(a.parenR,41,!1,p),this.expressionScope.exit()}registerFunctionStatementId(i){i.id&&this.scope.declareName(i.id.name,this.state.strict||i.generator||i.async?this.scope.treatFunctionsAsVar?5:9:17,i.id.start)}parseClass(i,p,d){this.next(),this.takeDecorators(i);let D=this.state.strict;return this.state.strict=!0,this.parseClassId(i,p,d),this.parseClassSuper(i),i.body=this.parseClassBody(!!i.superClass,D),this.finishNode(i,p?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(a.eq)||this.match(a.semi)||this.match(a.braceR)}isClassMethod(){return this.match(a.parenL)}isNonstaticConstructor(i){return!(i.computed||i.static||i.key.name!=="constructor"&&i.key.value!=="constructor")}parseClassBody(i,p){this.classScope.enter();let d={constructorAllowsSuper:i,hadConstructor:!1,hadStaticBlock:!1},D=[],y=this.startNode();if(y.body=[],this.expect(a.braceL),this.withTopicForbiddingContext(()=>{for(;!this.match(a.braceR);){if(this.eat(a.semi)){if(D.length>0)throw this.raise(this.state.lastTokEnd,v.DecoratorSemicolon);continue}if(this.match(a.at)){D.push(this.parseDecorator());continue}let x=this.startNode();D.length&&(x.decorators=D,this.resetStartLocationFromNode(x,D[0]),D=[]),this.parseClassMember(y,x,d),x.kind==="constructor"&&x.decorators&&x.decorators.length>0&&this.raise(x.start,v.DecoratorConstructor)}}),this.state.strict=p,this.next(),D.length)throw this.raise(this.state.start,v.TrailingDecorator);return this.classScope.exit(),this.finishNode(y,"ClassBody")}parseClassMemberFromModifier(i,p){let d=this.parseIdentifier(!0);if(this.isClassMethod()){let D=p;return D.kind="method",D.computed=!1,D.key=d,D.static=!1,this.pushClassMethod(i,D,!1,!1,!1,!1),!0}if(this.isClassProperty()){let D=p;return D.computed=!1,D.key=d,D.static=!1,i.body.push(this.parseClassProperty(D)),!0}return!1}parseClassMember(i,p,d){let D=this.isContextual("static");if(D){if(this.parseClassMemberFromModifier(i,p))return;if(this.eat(a.braceL))return void this.parseClassStaticBlock(i,p,d)}this.parseClassMemberWithIsStatic(i,p,d,D)}parseClassMemberWithIsStatic(i,p,d,D){let y=p,x=p,S=p,k=p,L=y,V=y;if(p.static=D,this.eat(a.star))return L.kind="method",this.parseClassElementName(L),L.key.type==="PrivateName"?void this.pushClassPrivateMethod(i,x,!0,!1):(this.isNonstaticConstructor(y)&&this.raise(y.key.start,v.ConstructorIsGenerator),void this.pushClassMethod(i,y,!0,!1,!1,!1));let K=this.state.containsEsc,J=this.parseClassElementName(p),ee=J.type==="PrivateName",be=J.type==="Identifier",Me=this.state.start;if(this.parsePostMemberNameModifiers(V),this.isClassMethod()){if(L.kind="method",ee)return void this.pushClassPrivateMethod(i,x,!1,!1);let ve=this.isNonstaticConstructor(y),ze=!1;ve&&(y.kind="constructor",d.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(J.start,v.DuplicateConstructor),d.hadConstructor=!0,ze=d.constructorAllowsSuper),this.pushClassMethod(i,y,!1,!1,ve,ze)}else if(this.isClassProperty())ee?this.pushClassPrivateProperty(i,k):this.pushClassProperty(i,S);else if(!be||J.name!=="async"||K||this.isLineTerminator())!be||J.name!=="get"&&J.name!=="set"||K||this.match(a.star)&&this.isLineTerminator()?this.isLineTerminator()?ee?this.pushClassPrivateProperty(i,k):this.pushClassProperty(i,S):this.unexpected():(L.kind=J.name,this.parseClassElementName(y),L.key.type==="PrivateName"?this.pushClassPrivateMethod(i,x,!1,!1):(this.isNonstaticConstructor(y)&&this.raise(y.key.start,v.ConstructorIsAccessor),this.pushClassMethod(i,y,!1,!1,!1,!1)),this.checkGetterSetterParams(y));else{let ve=this.eat(a.star);V.optional&&this.unexpected(Me),L.kind="method",this.parseClassElementName(L),this.parsePostMemberNameModifiers(V),L.key.type==="PrivateName"?this.pushClassPrivateMethod(i,x,ve,!0):(this.isNonstaticConstructor(y)&&this.raise(y.key.start,v.ConstructorIsAsync),this.pushClassMethod(i,y,ve,!0,!1,!1))}}parseClassElementName(i){let p=this.parsePropertyName(i,!0);return i.computed||!i.static||p.name!=="prototype"&&p.value!=="prototype"||this.raise(p.start,v.StaticPrototype),p.type==="PrivateName"&&p.id.name==="constructor"&&this.raise(p.start,v.ConstructorClassPrivateField),p}parseClassStaticBlock(i,p,d){var D;this.expectPlugin("classStaticBlock",p.start),this.scope.enter(80),this.expressionScope.enter(Bu());let y=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let x=p.body=[];this.parseBlockOrModuleBlockBody(x,void 0,!1,a.braceR),this.prodParam.exit(),this.expressionScope.exit(),this.scope.exit(),this.state.labels=y,i.body.push(this.finishNode(p,"StaticBlock")),d.hadStaticBlock&&this.raise(p.start,v.DuplicateStaticBlock),((D=p.decorators)==null?void 0:D.length)&&this.raise(p.start,v.DecoratorStaticBlock),d.hadStaticBlock=!0}pushClassProperty(i,p){p.computed||p.key.name!=="constructor"&&p.key.value!=="constructor"||this.raise(p.key.start,v.ConstructorClassField),i.body.push(this.parseClassProperty(p))}pushClassPrivateProperty(i,p){this.expectPlugin("classPrivateProperties",p.key.start);let d=this.parseClassPrivateProperty(p);i.body.push(d),this.classScope.declarePrivateName(d.key.id.name,0,d.key.start)}pushClassMethod(i,p,d,D,y,x){i.body.push(this.parseMethod(p,d,D,y,x,"ClassMethod",!0))}pushClassPrivateMethod(i,p,d,D){this.expectPlugin("classPrivateMethods",p.key.start);let y=this.parseMethod(p,d,D,!1,!1,"ClassPrivateMethod",!0);i.body.push(y);let x=y.kind==="get"?y.static?6:2:y.kind==="set"?y.static?5:1:0;this.classScope.declarePrivateName(y.key.id.name,x,y.key.start)}parsePostMemberNameModifiers(i){}parseClassPrivateProperty(i){return this.parseInitializer(i),this.semicolon(),this.finishNode(i,"ClassPrivateProperty")}parseClassProperty(i){return i.typeAnnotation&&!this.match(a.eq)||this.expectPlugin("classProperties"),this.parseInitializer(i),this.semicolon(),this.finishNode(i,"ClassProperty")}parseInitializer(i){this.scope.enter(80),this.expressionScope.enter(Bu()),this.prodParam.enter(0),i.value=this.eat(a.eq)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(i,p,d,D=139){this.match(a.name)?(i.id=this.parseIdentifier(),p&&this.checkLVal(i.id,D,void 0,"class name")):d||!p?i.id=null:this.unexpected(null,v.MissingClassName)}parseClassSuper(i){i.superClass=this.eat(a._extends)?this.parseExprSubscripts():null}parseExport(i){let p=this.maybeParseExportDefaultSpecifier(i),d=!p||this.eat(a.comma),D=d&&this.eatExportStar(i),y=D&&this.maybeParseExportNamespaceSpecifier(i),x=d&&(!y||this.eat(a.comma)),S=p||D;if(D&&!y)return p&&this.unexpected(),this.parseExportFrom(i,!0),this.finishNode(i,"ExportAllDeclaration");let k=this.maybeParseExportNamedSpecifiers(i);if(p&&d&&!D&&!k||y&&x&&!k)throw this.unexpected(null,a.braceL);let L;if(S||k?(L=!1,this.parseExportFrom(i,S)):L=this.maybeParseExportDeclaration(i),S||k||L)return this.checkExport(i,!0,!1,!!i.source),this.finishNode(i,"ExportNamedDeclaration");if(this.eat(a._default))return i.declaration=this.parseExportDefaultExpression(),this.checkExport(i,!0,!0),this.finishNode(i,"ExportDefaultDeclaration");throw this.unexpected(null,a.braceL)}eatExportStar(i){return this.eat(a.star)}maybeParseExportDefaultSpecifier(i){if(this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom");let p=this.startNode();return p.exported=this.parseIdentifier(!0),i.specifiers=[this.finishNode(p,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(i){if(this.isContextual("as")){i.specifiers||(i.specifiers=[]);let p=this.startNodeAt(this.state.lastTokStart,this.state.lastTokStartLoc);return this.next(),p.exported=this.parseModuleExportName(),i.specifiers.push(this.finishNode(p,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(i){return!!this.match(a.braceL)&&(i.specifiers||(i.specifiers=[]),i.specifiers.push(...this.parseExportSpecifiers()),i.source=null,i.declaration=null,!0)}maybeParseExportDeclaration(i){return!!this.shouldParseExportDeclaration()&&(i.specifiers=[],i.source=null,i.declaration=this.parseExportDeclaration(i),!0)}isAsyncFunction(){if(!this.isContextual("async"))return!1;let i=this.nextTokenStart();return!b.test(this.input.slice(this.state.pos,i))&&this.isUnparsedContextual(i,"function")}parseExportDefaultExpression(){let i=this.startNode(),p=this.isAsyncFunction();if(this.match(a._function)||p)return this.next(),p&&this.next(),this.parseFunction(i,5,p);if(this.match(a._class))return this.parseClass(i,!0,!0);if(this.match(a.at))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(this.state.start,v.DecoratorBeforeExport),this.parseDecorators(!1),this.parseClass(i,!0,!0);if(this.match(a._const)||this.match(a._var)||this.isLet())throw this.raise(this.state.start,v.UnsupportedDefaultExport);{let d=this.parseMaybeAssignAllowIn();return this.semicolon(),d}}parseExportDeclaration(i){return this.parseStatement(null)}isExportDefaultSpecifier(){if(this.match(a.name)){let d=this.state.value;if(d==="async"&&!this.state.containsEsc||d==="let")return!1;if((d==="type"||d==="interface")&&!this.state.containsEsc){let D=this.lookahead();if(D.type===a.name&&D.value!=="from"||D.type===a.braceL)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(a._default))return!1;let i=this.nextTokenStart(),p=this.isUnparsedContextual(i,"from");if(this.input.charCodeAt(i)===44||this.match(a.name)&&p)return!0;if(this.match(a._default)&&p){let d=this.input.charCodeAt(this.nextTokenStartSince(i+4));return d===34||d===39}return!1}parseExportFrom(i,p){if(this.eatContextual("from")){i.source=this.parseImportSource(),this.checkExport(i);let d=this.maybeParseImportAssertions();d&&(i.assertions=d)}else p?this.unexpected():i.source=null;this.semicolon()}shouldParseExportDeclaration(){if(this.match(a.at)&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))){if(!this.getPluginOption("decorators","decoratorsBeforeExport"))return!0;this.unexpected(this.state.start,v.DecoratorBeforeExport)}return this.state.type.keyword==="var"||this.state.type.keyword==="const"||this.state.type.keyword==="function"||this.state.type.keyword==="class"||this.isLet()||this.isAsyncFunction()}checkExport(i,p,d,D){if(p){if(d){if(this.checkDuplicateExports(i,"default"),this.hasPlugin("exportDefaultFrom")){var y;let x=i.declaration;x.type!=="Identifier"||x.name!=="from"||x.end-x.start!=4||((y=x.extra)==null?void 0:y.parenthesized)||this.raise(x.start,v.ExportDefaultFromAsIdentifier)}}else if(i.specifiers&&i.specifiers.length)for(let x=0,S=i.specifiers;x<S.length;x++){let k=S[x],{exported:L}=k,V=L.type==="Identifier"?L.name:L.value;if(this.checkDuplicateExports(k,V),!D&&k.local){let{local:K}=k;K.type==="StringLiteral"?this.raise(k.start,v.ExportBindingIsString,K.extra.raw,V):(this.checkReservedWord(K.name,K.start,!0,!1),this.scope.checkLocalExport(K))}}else if(i.declaration){if(i.declaration.type==="FunctionDeclaration"||i.declaration.type==="ClassDeclaration"){let x=i.declaration.id;if(!x)throw new Error("Assertion failure");this.checkDuplicateExports(i,x.name)}else if(i.declaration.type==="VariableDeclaration")for(let x=0,S=i.declaration.declarations;x<S.length;x++){let k=S[x];this.checkDeclaration(k.id)}}}if(this.state.decoratorStack[this.state.decoratorStack.length-1].length)throw this.raise(i.start,v.UnsupportedDecoratorExport)}checkDeclaration(i){if(i.type==="Identifier")this.checkDuplicateExports(i,i.name);else if(i.type==="ObjectPattern")for(let p=0,d=i.properties;p<d.length;p++){let D=d[p];this.checkDeclaration(D)}else if(i.type==="ArrayPattern")for(let p=0,d=i.elements;p<d.length;p++){let D=d[p];D&&this.checkDeclaration(D)}else i.type==="ObjectProperty"?this.checkDeclaration(i.value):i.type==="RestElement"?this.checkDeclaration(i.argument):i.type==="AssignmentPattern"&&this.checkDeclaration(i.left)}checkDuplicateExports(i,p){this.state.exportedIdentifiers.indexOf(p)>-1&&this.raise(i.start,p==="default"?v.DuplicateDefaultExport:v.DuplicateExport,p),this.state.exportedIdentifiers.push(p)}parseExportSpecifiers(){let i=[],p=!0;for(this.expect(a.braceL);!this.eat(a.braceR);){if(p)p=!1;else if(this.expect(a.comma),this.eat(a.braceR))break;let d=this.startNode();d.local=this.parseModuleExportName(),d.exported=this.eatContextual("as")?this.parseModuleExportName():d.local.__clone(),i.push(this.finishNode(d,"ExportSpecifier"))}return i}parseModuleExportName(){if(this.match(a.string)){this.expectPlugin("moduleStringNames");let i=this.parseLiteral(this.state.value,"StringLiteral"),p=i.value.match(nE);return p&&this.raise(i.start,v.ModuleExportNameHasLoneSurrogate,p[0].charCodeAt(0).toString(16)),i}return this.parseIdentifier(!0)}parseImport(i){if(i.specifiers=[],!this.match(a.string)){let d=!this.maybeParseDefaultImportSpecifier(i)||this.eat(a.comma),D=d&&this.maybeParseStarImportSpecifier(i);d&&!D&&this.parseNamedImportSpecifiers(i),this.expectContextual("from")}i.source=this.parseImportSource();let p=this.maybeParseImportAssertions();if(p)i.assertions=p;else{let d=this.maybeParseModuleAttributes();d&&(i.attributes=d)}return this.semicolon(),this.finishNode(i,"ImportDeclaration")}parseImportSource(){return this.match(a.string)||this.unexpected(),this.parseExprAtom()}shouldParseDefaultImport(i){return this.match(a.name)}parseImportSpecifierLocal(i,p,d,D){p.local=this.parseIdentifier(),this.checkLVal(p.local,9,void 0,D),i.specifiers.push(this.finishNode(p,d))}parseAssertEntries(){let i=[],p=new Set;do{if(this.match(a.braceR))break;let d=this.startNode(),D=this.state.value;if(this.match(a.string)?d.key=this.parseLiteral(D,"StringLiteral"):d.key=this.parseIdentifier(!0),this.expect(a.colon),D!=="type"&&this.raise(d.key.start,v.ModuleAttributeDifferentFromType,D),p.has(D)&&this.raise(d.key.start,v.ModuleAttributesWithDuplicateKeys,D),p.add(D),!this.match(a.string))throw this.unexpected(this.state.start,v.ModuleAttributeInvalidValue);d.value=this.parseLiteral(this.state.value,"StringLiteral"),this.finishNode(d,"ImportAttribute"),i.push(d)}while(this.eat(a.comma));return i}maybeParseModuleAttributes(){if(!this.match(a._with)||this.hasPrecedingLineBreak())return this.hasPlugin("moduleAttributes")?[]:null;this.expectPlugin("moduleAttributes"),this.next();let i=[],p=new Set;do{let d=this.startNode();if(d.key=this.parseIdentifier(!0),d.key.name!=="type"&&this.raise(d.key.start,v.ModuleAttributeDifferentFromType,d.key.name),p.has(d.key.name)&&this.raise(d.key.start,v.ModuleAttributesWithDuplicateKeys,d.key.name),p.add(d.key.name),this.expect(a.colon),!this.match(a.string))throw this.unexpected(this.state.start,v.ModuleAttributeInvalidValue);d.value=this.parseLiteral(this.state.value,"StringLiteral"),this.finishNode(d,"ImportAttribute"),i.push(d)}while(this.eat(a.comma));return i}maybeParseImportAssertions(){if(!this.isContextual("assert")||this.hasPrecedingLineBreak())return this.hasPlugin("importAssertions")?[]:null;this.expectPlugin("importAssertions"),this.next(),this.eat(a.braceL);let i=this.parseAssertEntries();return this.eat(a.braceR),i}maybeParseDefaultImportSpecifier(i){return!!this.shouldParseDefaultImport(i)&&(this.parseImportSpecifierLocal(i,this.startNode(),"ImportDefaultSpecifier","default import specifier"),!0)}maybeParseStarImportSpecifier(i){if(this.match(a.star)){let p=this.startNode();return this.next(),this.expectContextual("as"),this.parseImportSpecifierLocal(i,p,"ImportNamespaceSpecifier","import namespace specifier"),!0}return!1}parseNamedImportSpecifiers(i){let p=!0;for(this.expect(a.braceL);!this.eat(a.braceR);){if(p)p=!1;else{if(this.eat(a.colon))throw this.raise(this.state.start,v.DestructureNamedImport);if(this.expect(a.comma),this.eat(a.braceR))break}this.parseImportSpecifier(i)}}parseImportSpecifier(i){let p=this.startNode();if(p.imported=this.parseModuleExportName(),this.eatContextual("as"))p.local=this.parseIdentifier();else{let{imported:d}=p;if(d.type==="StringLiteral")throw this.raise(p.start,v.ImportBindingIsString,d.value);this.checkReservedWord(d.name,p.start,!0,!0),p.local=d.__clone()}this.checkLVal(p.local,9,void 0,"import specifier"),i.specifiers.push(this.finishNode(p,"ImportSpecifier"))}}{constructor(i,p){super(i=function(D){let y={};for(let x=0,S=Object.keys(_p);x<S.length;x++){let k=S[x];y[k]=D&&D[k]!=null?D[k]:_p[k]}return y}(i),p);let d=this.getScopeHandler();this.options=i,this.inModule=this.options.sourceType==="module",this.scope=new d(this.raise.bind(this),this.inModule),this.prodParam=new K2,this.classScope=new iE(this.raise.bind(this)),this.expressionScope=new tE(this.raise.bind(this)),this.plugins=function(D){let y=new Map;for(let x=0;x<D.length;x++){let S=D[x],[k,L]=Array.isArray(S)?S:[S,{}];y.has(k)||y.set(k,L||{})}return y}(this.options.plugins),this.filename=i.sourceFilename}getScopeHandler(){return Ip}parse(){let i=0;this.hasPlugin("topLevelAwait")&&this.inModule&&(i|=2),this.scope.enter(1),this.prodParam.enter(i);let p=this.startNode(),d=this.startNode();return this.nextToken(),p.errors=null,this.parseTopLevel(p,d),p.errors=this.state.errors,p}}function ps(I,i){let p=Vp;return(I==null?void 0:I.plugins)&&(function(d){if(Ft(d,"decorators")){if(Ft(d,"decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let D=Fi(d,"decorators","decoratorsBeforeExport");if(D==null)throw new Error("The 'decorators' plugin requires a 'decoratorsBeforeExport' option, whose value must be a boolean. If you are migrating from Babylon/Babel 6 or want to use the old decorators proposal, you should use the 'decorators-legacy' plugin instead of 'decorators'.");if(typeof D!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean.")}if(Ft(d,"flow")&&Ft(d,"typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(Ft(d,"placeholders")&&Ft(d,"v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(Ft(d,"pipelineOperator")&&!Mp.includes(Fi(d,"pipelineOperator","proposal")))throw new Error("'pipelineOperator' requires 'proposal' option whose value should be one of: "+Mp.map(D=>"'".concat(D,"'")).join(", "));if(Ft(d,"moduleAttributes")){if(Ft(d,"importAssertions"))throw new Error("Cannot combine importAssertions and moduleAttributes plugins.");if(Fi(d,"moduleAttributes","version")!=="may-2020")throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(Ft(d,"recordAndTuple")&&!Rp.includes(Fi(d,"recordAndTuple","syntaxType")))throw new Error("'recordAndTuple' requires 'syntaxType' option whose value should be one of: "+Rp.map(D=>"'".concat(D,"'")).join(", "))}(I.plugins),p=function(d){let D=Y2.filter(S=>Ft(d,S)),y=D.join("/"),x=Wp[y];if(!x){x=Vp;for(let S=0;S<D.length;S++){let k=D[S];x=jp[k](x)}Wp[y]=x}return x}(I.plugins)),new p(I,i)}let Wp={};t.parse=function(I,i){var p;if(((p=i)==null?void 0:p.sourceType)!=="unambiguous")return ps(i,I).parse();i=Object.assign({},i);try{i.sourceType="module";let d=ps(i,I),D=d.parse();if(d.sawUnambiguousESM)return D;if(d.ambiguousScriptDifferentAst)try{return i.sourceType="script",ps(i,I).parse()}catch{}else D.program.sourceType="script";return D}catch(d){try{return i.sourceType="script",ps(i,I).parse()}catch{}throw d}},t.parseExpression=function(I,i){let p=ps(i,I);return p.options.strictMode&&(p.state.strict=!0),p.getExpression()},t.tokTypes=a}),{getNextNonSpaceNonCommentCharacterIndexWithStartIndex:RP,getShebang:jP}=di,{hasPragma:_P}=lP,{locStart:p2,locEnd:h2}=du,UP=/@(?:no)?flow\b/;function Fu(e,...t){return(r,n,s={})=>{if(s.parser==="babel"&&function(l,h){if(h.filepath&&h.filepath.endsWith(".js.flow"))return!0;let a=jP(l);a&&(l=l.slice(a.length));let f=RP(l,0);return f!==!1&&(l=l.slice(0,f)),UP.test(l)}(r,s))return s.parser="babel-flow",d2(r,n,s);let u=MP,c=s.__babelSourceType==="script"?"script":"module",o;try{o=function(l,h){let a;for(let f=0;f<h.length;f++)try{return WP(l(h[f]))}catch(m){a||(a=m)}throw a}(l=>u[e](r,l),function(l,h,a){if(!l)return h;let f=[];for(let m of h)for(let E of a)f.push([...m,E]);return f}(r.includes("|>"),t,[["pipelineOperator",{proposal:"smart"}],["pipelineOperator",{proposal:"minimal"}],["pipelineOperator",{proposal:"fsharp"}]]).map(l=>function({sourceType:h,extraPlugins:a=[]}){return{sourceType:h,allowAwaitOutsideFunction:!0,allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowSuperOutsideMethod:!0,allowUndeclaredExports:!0,errorRecovery:!0,createParenthesizedExpressions:!0,plugins:["doExpressions","classProperties","exportDefaultFrom","functionBind","functionSent","classPrivateProperties","throwExpressions","classPrivateMethods","v8intrinsic","partialApplication",["decorators",{decoratorsBeforeExport:!1}],"privateIn","importAssertions",["recordAndTuple",{syntaxType:"hash"}],"decimal","moduleStringNames","classStaticBlock",...a],tokens:!0,ranges:!0}}({sourceType:c,extraPlugins:l})))}catch(l){let{message:h,loc:a}=l;throw Vl(h.replace(/ \(.*\)/,""),{start:{line:a?a.line:0,column:a?a.column+1:0}})}return OP(o,Object.assign({},s,{originalText:r}))}}var qP=Fu("parse",["jsx","flow"]),d2=Fu("parse",["jsx",["flow",{all:!0,enums:!0}]]),$P=Fu("parse",["jsx","typescript"],["typescript"]),f2=Fu("parseExpression",["jsx"]),VP=new Set(["Did not expect a type annotation here.","The only accepted module attribute is type","Type parameters must come after the async keyword, e.g. instead of <T> async () => {}, use async <T>() => {}"]);function WP(e){let t=e.errors.find(r=>function(n){let[,s]=n.message.match(/(.*?)\s*\(\d+:\d+\)/);return VP.has(s)}(r));if(t)throw t;return e}function Dp(e,t){switch(e.type){case"ArrayExpression":return e.elements.forEach(r);case"ObjectExpression":return e.properties.forEach(r);case"ObjectProperty":if(e.computed)throw n("computed");if(e.shorthand)throw n("shorthand");return[e.key,e.value].forEach(r);case"UnaryExpression":switch(e.operator){case"+":case"-":return r(e.argument);default:throw n("operator")}case"Identifier":if(t&&t.type==="ObjectProperty"&&t.key===e)return;throw n();case"NullLiteral":case"BooleanLiteral":case"NumericLiteral":case"StringLiteral":return;default:throw n()}function r(s){return Dp(s,e)}function n(s){let u=s?"".concat(e.type," with ").concat(s,"=").concat(JSON.stringify(e[s])):e.type;return Vl("".concat(u," is not allowed in JSON."),{start:{line:e.loc.start.line,column:e.loc.start.column+1}})}}var Ci={parse:qP,astFormat:"estree",hasPragma:_P,locStart:p2,locEnd:h2},zP=Object.assign({},Ci,{parse:d2}),HP=Object.assign({},Ci,{parse:$P}),vu=Object.assign({},Ci,{parse:f2}),GP={parsers:{babel:Ci,"babel-flow":zP,"babel-ts":HP,json:Object.assign({},vu,{hasPragma:()=>!0}),json5:vu,"json-stringify":{parse:function(e,t,r){let n=f2(e,t,r);return n.comments.forEach(Dp),Dp(n),n},astFormat:"estree-json",locStart:p2,locEnd:h2},__js_expression:vu,__vue_expression:vu,__vue_event_binding:Ci}},m2=GP;scrapbox.PopupMenu.addButton({title:"",onClick:e=>rh(nh(e),{hasTitle:!1}).map(({type:r,rows:n})=>{switch(r){case"line":case"table":return n.map(({text:s})=>s).join(
);case"codeBlock":return KP(n)}}).join(
)});var JP={javascript:"javascript",js:"javascript",jsx:"javascript",mjs:"javascript",typescript:"typescript",ts:"typescript",tsx:"typescript",graphql:"graphql",gql:"graphql"},XP={javascript:{parser:"babel",plugins:[m2],semi:!1,singleQuote:!0}};function KP(e,t={}){let r=e[0].text,n=r.match(/\.(.+)$/)?.[1]??r.match(/\((.+)\)$/)?.[1]??r.match(/\s*code:(.+)$/)?.[1],s=e[0].indent,u=e.slice(1).map(l=>l.text.slice(l.indent)).join(
),c=XP[JP[n]];if(!c)return e.map(({text:l})=>l).join(
);let o=ey.format(u,{...t,...c}).split(
).map(l=>${" ".repeat(s+1)}${l}).join(
).trimEnd();return[r,o].join(
)}scrapbox.PopupMenu.addButton({title:"",onClick:e=>{let t=/^(\s*)/,r=t.exec(e)[1].length,n=e.split(/\n/),s=[],u=[];for(var c=0;c<n.length;c++){let o=n[c];for(;n[c+1]&&r<t.exec(n[c+1])[1].length;)u.push(n[++c]);0<u.length&&u.unshift(""),s.push(o+u.join("@n@")),u=[]}return s.sort(function(o,l){var h=o.toUpperCase(),a=l.toUpperCase();return h<a?-1:h>a?1:0}).join(
).replace(/@n@/g,
)}});scrapbox.PopupMenu.addButton({title:"",onClick:e=>e.split(/\n/).reverse().join(
)});scrapbox.PopupMenu.addButton({title:"uniq",onClick:e=>{let t=e.split(/\n/);return Array.from(new Set(t)).join(
)}});var wu=e=>{let t=new SpeechSynthesisUtterance;t.text=e,t.lang="en-US",speechSynthesis.cancel(),speechSynthesis.speak(t)};scrapbox.PopupMenu.addButton({title:"",onClick:e=>wu(e)});scrapbox.PopupMenu.addButton({title:"",onClick:e=>{window.open(https://www.deepl.com/translator#_/_/${yn(e)})}});scrapbox.PopupMenu.addButton({title:"",onClick:e=>{window.open(https://www.oxfordlearnersdictionaries.com/search/english/?q=${e})}});scrapbox.PopupMenu.addButton({title:"",onClick:e=>{window.open(https://scrapbox.io/${scrapbox.Project.name}/search/page?q=${e})}});scrapbox.PopupMenu.addButton({title:"",onClick:e=>{window.open(https://www.google.com/search?q=${encodeURIComponent(e)}&hl=en)}});var YP=e=>{let t=ds(e,{hasTitle:!1}),r=[];return Gp(t,r),r.forEach(n=>n.openUrl())};scrapbox.PopupMenu.addButton({title:"open URLs",onClick:e=>YP(e)});var D2=class{get editor(){return document.getElementById("editor")}get lines(){return document.getElementsByClassName("lines")?.[0]}get computeLine(){return document.getElementById("compute-line")}get grid(){return document.getElementsByClassName("related-page-list clearfix")?.[0]?.getElementsByClassName("grid")?.[0]}get cursorLine(){return document.getElementsByClassName("cursor-line")?.[0]}get textInput(){return document.getElementById("text-input")}get cursor(){return document.getElementsByClassName("cursor")?.[0]}get selections(){return document.getElementsByClassName("selections")?.[0]}get popupMenu(){return document.getElementsByClassName("popup-menu")?.[0]}get pageMenus(){return document.getElementsByClassName("page-menu")?.[0]}get pageInfoMenu(){return document.getElementById("page-info-menu")}get pageEditMenu(){return document.getElementById("page-edit-menu")}get pageEditButtons(){return this.pageEditMenu.nextElementSibling.getElementsByTagName("a")}get randomJumpButton(){return document.getElementsByClassName("random-jump-button")?.[0]}get pageCustomButtons(){return document.getElementsByClassName("page-menu-extension")}},at=new D2;var gp=e=>new Promise(t=>setTimeout(t,e));async function cr(e,{wait:t=1}={}){let r=at.textInput;r.focus(),r.value=e;let n=document.createEvent("UIEvent");n.initEvent("input",!0,!1),r.dispatchEvent(n),await gp(t)}async function g2({tweetUrl:e}={}){if(!window.getTweetInfo){alert('Please install "getTweetInfo" from https://scrapbox.io/api/code/takker/scrapbox-embed-tweet/temperMonkey.js');return}try{let t=await window.getTweetInfo(https://publish.twitter.com/oembed?url=${e}).then(o=>o.response),r=document.createElement("div");r.insertAdjacentHTML("beforeend",t.html),console.log(t.html);let n=r.getElementsByTagName("blockquote")?.[0],[s,u,c]=[...n?.childNodes];return[...s?.getElementsByTagName("a")].forEach?.(o=>o.innerHTML=${o.href} ${o.textContent}),[...s?.getElementsByTagName("br")].forEach?.(o=>o.innerHTML= ),{author:{name:t.author_name,url:t.author_url},content:s?.textContent.split(
),signature:u?.textContent,date:{href:c?.href,text:c?.textContent}}}catch(t){console.error(t)}}async function y2(e,t){let r=/https:\/\/twitter\.com\S+\/status\/\d+(?:\?s=\d+)?/g,n=e.match(r)??[];if(n.length===0)return;let s=(await Promise.all(n.map(o=>g2({tweetUrl:o})))).map(o=>QP({tweetInfo:o,indent:t}));console.log(s);let u={};for(let o of n){let l=n.indexOf(o);if(!s[l])break;u[o]=s[l]}return e.replace(r,o=>u[o]??o)}function QP({tweetInfo:e,indent:t}){return[...e.content.map(r=>${t}> ${r}),${t}> ${e.signature}${e.date.href} ${e.date.text}].join( )}scrapbox.PopupMenu.addButton({title:e=>/https:\/\/twitter\.com\S+\/status\/\d+/.test(e)?"":"",onClick:e=>{if(!!/https:\/\/twitter\.com\S+\/status\/\d+/.test(e))return Promise.all(e.split(
).map(t=>{let r=t.match(/^\s+|.*/g),n=/^\s+$/.test(r[0])?r[0]:"",s=/^\s+$/.test(r[0])?r[1]:r[0];return console.log([n,s]),y2(s,n)})).then(t=>cr(t.join(
))),""}});(()=>{let e="/api/table/rmaruon-settings/page-menu-append-link/table.csv",t="",r="append";scrapbox.PageMenu.addMenu({title:r,image:"https://gyazo.com/4f14c17b12661472c38a3ca3c91096e4/thumb/100"}),scrapbox.PageMenu(r).addItem({title:"Enter ...",image:"https://gyazo.com/7930135d79a8de8c97380ccc0b32ebc4/thumb/50",onClick:()=>{let u=window.prompt("Enter a title");!u||window.open(https://scrapbox.io/${scrapbox.Project.name}/${t}${u}?body=[${encodeURIComponent(scrapbox.Page.title)}])}});try{fetch(e).then(u=>u.text()).then(u=>n(u)).then(u=>s(u))}catch{console.error("Failed to load.")}let n=u=>{let c=[];return u.split( ).slice(1).forEach(l=>{let[h,a]=l.split(",");c.push({title:h,image:a})}),c},s=u=>{u.forEach(({title:c,image:o})=>{scrapbox.PageMenu(r).addItem({title:c,image:o||"https://gyazo.com/7930135d79a8de8c97380ccc0b32ebc4/thumb/50",onClick:()=>window.open(https://scrapbox.io/${scrapbox.Project.name}/${t}${c}?body=[${encodeURIComponent(scrapbox.Page.title)}])})})}})();scrapbox.PageMenu.addMenu({title:"search",image:"https://gyazo.com/f471d818c3bf082f56d9df09c6996d1c/raw"});scrapbox.PageMenu("search").addItem({title:"Scrapbox",image:"https://i.gyazo.com/5f93e65a3b979ae5333aca4f32600611.png",onClick:()=>window.open(https://scrapbox.io/${scrapbox.Project.name}/search/page?q="${scrapbox.Page.title}")});scrapbox.PageMenu("search").addItem({title:"Google",image:"https://google.com/favicon.ico",onClick:()=>window.open(https://www.google.co.jp/search?q=${encodeURIComponent(scrapbox.Page.title)})});scrapbox.PageMenu("search").addItem({title:"Oxford Learner's Dictionary",image:"https://i.gyazo.com/663905eda4648a4a733c5195d6241fe2.png",onClick:()=>window.open(https://www.oxfordlearnersdictionaries.com/search/english/?q=${scrapbox.Page.title})});scrapbox.PageMenu("search").addItem({title:"Collins English Dictionary",image:"https://i.gyazo.com/925acde65493015b3bc3a743c2697b26.png",onClick:()=>window.open(https://www.collinsdictionary.com/search/?dictCode=english&q=${scrapbox.Page.title})});scrapbox.PageMenu("search").addItem({title:"NDC Navi",image:"https://gyazo.com/e79e7c22874e663a15917599d8784fbb/thumb/200",onClick:()=>window.open(http://jasmine.media.osaka-cu.ac.jp/ndc_navi10/search/${scrapbox.Page.title}/3?)});scrapbox.PageMenu("search").addItem({title:"国立国会図書館",image:"https://i.gyazo.com/8eba2ef7e63fa783d9519a9a9416ae40.png",onClick:()=>window.open(https://ndlsearch.ndl.go.jp/search?cs=bib&display=panel&from=0&size=100&keyword=${scrapbox.Page.title}&f-ht=ndl&f-ht=library)});scrapbox.PageMenu.addMenu({title:"Listen",image:"https://gyazo.com/2a2166f5c4b1467e2a46697cc334bba9/thumb/100",onClick:()=>{let t=yn(window.getSelection().toString())||scrapbox.Page.title;wu(t)}});var mN=fE(E2());var C2=e=>e.split(/\n/).map(t=>t===""?t:${t}).join( );var b2=e=>{let t=window.prompt("search");if(t==null||t==="")return;let r=window.prompt("replace");if(r!=null)return e.replaceAll(t,r)};function A2(e){switch(typeof e){case"number":return scrapbox.Page.lines[e]?.id;case"string":return e.startsWith("L")?e.slice(1):e;case"object":{if(!(e instanceof HTMLElement))return;if(e.classList.contains("line"))return e.id.slice(1);let t=e.closest(".line");return t?t.id:void 0}default:return}}function os(e){switch(typeof e){case"number":return e;case"string":case"object":default:let t=A2(e);return t?scrapbox.Page.lines.findIndex(r=>r.id===t):-1}}function x2(e){switch(typeof e){case"number":return scrapbox.Page.lines[e];case"string":case"object":default:let t=A2(e);return t?scrapbox.Page.lines.find(r=>r.id===t):void 0}}function F2(e){switch(typeof e){case"number":case"string":return x2(e).text;case"object":return e instanceof HTMLElement?e.classList.contains("line")?x2(e).text:e.classList.contains("page-link")?e.textContent.startsWith("[")||e.textContent.startsWith("#")?e.textContent:${e.textContent}:e.classList.contains("char-index")?e.textContent:void 0:void 0}}function bi(e){if(e==null)return;if(!e?.classList?.contains?.("char-index"))throw Error("A char DOM is required.");let t=e.className.match(/c-(\d+)/)?.[1];return t?parseInt(t):void 0}function yp(e,t){let r=document.elementsFromPoint(e,t),n=r.find(u=>u.classList.contains("char-index")),s=r.find(u=>u.classList.contains("line"));return{char:n,line:s}}function cs({pos:e="right"}={}){let{top:t,left:r}=at.editor.getBoundingClientRect(),n=at.cursor.style,s={top:parseInt(n.top),left:parseInt(n.left),height:parseInt(n.height)},u={x:s.left+r+1,y:s.top+t+s.height/2},c=document.elementsFromPoint(u.x,u.y),o=c.find(h=>h.classList.contains("char-index")),l=c.find(h=>h.classList.contains("line"));return{char:o,line:l}}var v2=(e,t)=>[...Array(t+1).keys()].slice(e,t+1),Ep={Backspace:8,Tab:9,Enter:13,Delete:46,Escape:27," ":32,PageUp:33,PageDown:34,End:35,Home:36,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,...Object.fromEntries(v2("a".charCodeAt(0),"z".charCodeAt(0)).flatMap((e,t)=>[[String.fromCodePoint(e),65+t],[String.fromCodePoint(e).toUpperCase(),65+t]])),...Object.fromEntries([...Array(10).keys()].map(e=>[e,e+48])),...Object.fromEntries(v2(1,12).map(e=>[F${e},112+e])),":":186,"*":186,";":187,"+":187,"-":189,"=":189,".":190,">":190,"/":191,"?":191,"@":192,"":192,"":219,"{":219,"\\":220,"|":220,"":221,"}":221,"^":222,"~":222,_:226};var w2=(e,t)=>...Array(t+1).keys().slice(e,t+1),Cp=Object.fromEntries(w2("!".charCodeAt(0),"~".charCodeAt(0)).flatMap(e=>{let t=String.fromCodePoint(e);return t==="<"?"<","\\<":t==="\\"?"\\","\\\\":t,t})),bp={Backspace:"BS",Enter:"CR",Delete:"Del",Escape:"Esc"," ":"Space",ArrowLeft:"Left",ArrowUp:"Up",ArrowRight:"Right",ArrowDown:"Down",...Object.fromEntries(["Tab","PageUp","PageDown","End","Home",...w2(1,12).map(e=>F${e+1})].map(e=>e,e))},g7={...bp,...Cp},S2={0:"LeftMouse",1:"MiddleMouse",2:"RightMouse"};var C7=Ap(S2),b7=Ap(Cp),A7=Ap(bp);function Ap(e){return Object.fromEntries(Object.entries(e).map(t=>t.reverse()))}function ut(e,{shiftKey:t=!1,ctrlKey:r=!1,altKey:n=!1,noKey:s=!1}={}){if(!(e in Ep))throw Error(No key code of ${e});let u={bubbles:!0,cancelable:!0,keyCode:Epe,shiftKey:t,ctrlKey:r,altKey:n};at.textInput.dispatchEvent(new KeyboardEvent("keydown",u)),at.textInput.dispatchEvent(new KeyboardEvent("keyup",u))}var T2=class{constructor(){this._cursorObserver=void 0,this._selectionObserver=new MutationObserver(t=>{t.flatMap(r=>...r.addedNodes).some(r=>r.classList.contains("selections"))&&(this._selectMode=!0,this._recordSelectionEdge()),t.flatMap(r=>...r.removedNodes).some(r=>r.classList.contains("selections"))&&(this._selectMode=!1)}),this._selectionObserver.observe(at.editor,{childList:!0}),this._cursorObserver=new MutationObserver(t=>{if(at.cursor.style.display==="none")return;let{char:r,line:n}=cs();this._position={index:bi(r),lineNo:os(n)}}),this._cursorObserver.observe(at.cursor,{attributes:!0}),this._recordedEdge={}}get exist(){return this.text!==""}get range(){return this._recordedEdge.lineNo>this._position.lineNo?{start:this._position,end:this._recordedEdge}:this._recordedEdge.lineNo<this._position.lineNo?{start:this._recordedEdge,end:this._position}:this._recordedEdge.index>this._position.index?{start:this._position,end:this._recordedEdge}:this._recordedEdge.index<this._position.index?{start:this._recordedEdge,end:this._position}:{message:"range@scrapbox-selection-3 the start position is the same as the end one."}}get text(){if(!/mobile/i.test(navigator.userAgent))return at.textInput.value;let t=nt.range;if(!t.start||!t.end)return;let{start:r,end:n}=t;return[scrapbox.Page.linesr.lineNo.text.substring(r.index),...scrapbox.Page.lines.map(s=>s.text).slice(r.lineNo+1,n.lineNo),scrapbox.Page.linesn.lineNo.text.substring(0,n.index+1)].join(` )}_recordSelectionEdge(){if(!this.exist)return;let t=at.selections?.getElementsByClassName("selection");if(!t||t?.length===0){this._selectMode=!1;return}let r=t[0].getBoundingClientRect(),n=(t[2]??t[0]).getBoundingClientRect(),s=yp(r.left,r.top),u=yp(n.right,n.bottom),c={index:bi(s.char),lineNo:os(s.line)},o={index:bi(u.char),lineNo:os(u.line)},l=cs(),h={index:bi(l.char),lineNo:os(l.line)};if(c.lineNo===o.lineNo){h.index===c.index&&h.lineNo===c.lineNo?this._recordedEdge=o:this._recordedEdge=c;return}this._recordedEdge=this._position}},nt=new T2;var ZP=()=>{let{line:e}=cs();return F2(e)},xp=()=>{let e=ZP();return navigator.clipboard.writeText(e+
),e},B2=()=>{ut("End"),ut("Home",{shiftKey:!0}),ut("Home",{shiftKey:!0})},Fp=e=>{e.preventDefault(),ut("End"),ut("Enter")},P2=e=>{e.preventDefault(),ut("Home"),ut("Enter"),ut("ArrowUp")},N2=e=>{nt._selectMode||(e.preventDefault(),xp(),cr("."),B2(),ut("Delete"),ut("Delete"))},k2=e=>{nt._selectMode||(e.preventDefault(),xp())},I2=e=>{e.preventDefault();let t=nt._selectMode?nt.text:xp();console.log(t,nt.range),nt._selectMode&&(ut("ArrowRight"),ut("End")),Fp(e),B2(),cr(t)};var L2=e=>{!nt._selectMode||(e.preventDefault(),cr(C2(nt.text)))},O2=e=>{if(!nt._selectMode)return;e.preventDefault();let t=yn(nt.text);nt.text!==t&&cr(t)},ls=e=>t=>{t.preventDefault(),cr(e)},M2=e=>{!nt._selectMode||(e.preventDefault(),cr(b2(nt.text)))};var R2=e=>t=>{t.preventDefault(),document.location.href=e},j2=class{get pageData(){return R2(https://scrapbox.io/projects/${scrapbox.Project.name}/settings/page-data)}get backup(){return R2(https://scrapbox.io/projects/${scrapbox.Project.name}/settings/backup)}},vp=new j2;scrapboxShortcut.onEdit("mod+enter",Fp);scrapboxShortcut.onEdit("mod+shift+enter",P2);scrapboxShortcut.onEdit("mod+x",N2);scrapboxShortcut.onEdit("mod+c",k2);scrapboxShortcut.onEdit("mod+shift+d",I2);scrapboxShortcut.onEdit("[",L2);scrapboxShortcut.onEdit("]",O2);scrapboxShortcut.onEdit("mod+h",M2);scrapboxShortcut.onEdit("alt+/",ls("/thumb/100"));scrapboxShortcut.onEdit("alt+3",ls("#.png"));scrapboxShortcut.onEdit("alt+i",ls(".icon"));scrapboxShortcut.onEdit("alt+v",ls("✅"));scrapboxShortcut.onEdit("mod+shift+i",ls("[rmaruon.icon]"));scrapboxShortcut.onBrowse("mod+shift+p",vp.pageData);scrapboxShortcut.onEdit("mod+shift+p",vp.pageData);scrapbox.TimeStamp.removeAllFormats();scrapbox.TimeStamp.addFormat("YYYY-MM-DD");scrapbox.TimeStamp.addFormat("[[]YYYY-MM[]]-DD");scrapbox.TimeStamp.addFormat(()=>{function e(c){return String(c).padStart(2,"0")}function t(c){return${c.getFullYear()}-${e(c.getMonth()+1)}-${e(c.getDate())}}function r(c){let o=t(c);return${o.slice(0,7)}-${o.slice(8)}}let n=new Date,s=new Date(n);s.setDate(s.getDate()-1);let u=new Date(n);return u.setDate(u.getDate()+1),${t(s)} ← ${r(n)} → ${t(u)}});var mn;setInterval(()=>{mn?.remove();let e=document.querySelector(".lines .line-title .text"),t=e?.textContent??"";if(t==="")return;let r=[];r.push(t.includes("[")||t.includes("]")),r.push(t.indexOf("")!==t.lastIndexOf("")),r.push(/^[!"#%&'\(\)\*\+,-\.\/{\|}<>_~]+\s/.test(t)),r.push(/^$\s/.test(t)),r.push(/^\//.test(t)),r.push(/https?:\/\//.test(t)),!r.every(n=>n===!1)&&(mn=document.createElement("span"),mn.style.position="absolute",mn.style.left="100%",mn.style.color="red",mn.textContent="!",e.prepend(mn))},1e3);(async()=>{let e="https://scrapbox.io/api/code/ry/.watchlist/.watchlist",t=r=>{let n=r.split( `),s=JSON.parse(localStorage.getItem("projectsLastAccessed")),u=Object.assign({},...n.map(c=>({c:sc??0})));localStorage.setItem("projectsLastAccessed",JSON.stringify(u))};try{fetch(e).then(r=>r.text()).then(r=>t(r))}catch{console.error("Failed to load.")}})();$(".brand-icon").fadeOut().fadeIn().fadeOut().fadeIn(); /*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
*/