UNPKG

ruru

Version:

Grafast-flavoured GraphiQL distribution

2 lines 507 kB
var e,t,n,i,r={337:(e,t,n)=>{e.exports=n(16895)},974:(e,t,n)=>{const i=n(27536),r=n(43044),{MAX_LENGTH:s,POSIX_REGEX_SOURCE:o,REGEX_NON_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_BACKREF:l,REPLACEMENTS:u}=i,c=(e,t)=>{if("function"==typeof t.expandRange)return t.expandRange(...e,t);e.sort();const n=`[${e.join("-")}]`;try{new RegExp(n)}catch(t){return e.map(e=>r.escapeRegex(e)).join("..")}return n},d=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,h=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");e=u[e]||e;const n={...t},h="number"==typeof n.maxLength?Math.min(s,n.maxLength):s;let f=e.length;if(f>h)throw new SyntaxError(`Input length: ${f}, exceeds maximum allowed length: ${h}`);const p={type:"bos",value:"",output:n.prepend||""},m=[p],g=n.capture?"":"?:",v=i.globChars(n.windows),y=i.extglobChars(v),{DOT_LITERAL:_,PLUS_LITERAL:b,SLASH_LITERAL:E,ONE_CHAR:N,DOTS_SLASH:T,NO_DOT:S,NO_DOT_SLASH:k,NO_DOTS_SLASH:C,QMARK:w,QMARK_NO_DOT:L,STAR:A,START_ANCHOR:I}=v,x=e=>`(${g}(?:(?!${I}${e.dot?T:_}).)*?)`,O=n.dot?"":S,R=n.dot?w:L;let D=!0===n.bash?x(n):A;n.capture&&(D=`(${D})`),"boolean"==typeof n.noext&&(n.noextglob=n.noext);const M={input:e,index:-1,start:0,dot:!0===n.dot,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:m};e=r.removePrefix(e,M),f=e.length;const F=[],P=[],$=[];let V,U=p;const B=()=>M.index===f-1,j=M.peek=(t=1)=>e[M.index+t],K=M.advance=()=>e[++M.index],q=()=>e.slice(M.index+1),W=(e="",t=0)=>{M.consumed+=e,M.index+=t},H=e=>{M.output+=null!=e.output?e.output:e.value,W(e.value)},G=()=>{let e=1;for(;"!"===j()&&("("!==j(2)||"?"===j(3));)K(),M.start++,e++;return e%2!=0&&(M.negated=!0,M.start++,!0)},z=e=>{M[e]++,$.push(e)},Y=e=>{M[e]--,$.pop()},Q=e=>{if("globstar"===U.type){const t=M.braces>0&&("comma"===e.type||"brace"===e.type),n=!0===e.extglob||F.length&&("pipe"===e.type||"paren"===e.type);"slash"===e.type||"paren"===e.type||t||n||(M.output=M.output.slice(0,-U.output.length),U.type="star",U.value="*",U.output=D,M.output+=U.output)}if(F.length&&"paren"!==e.type&&!y[e.value]&&(F[F.length-1].inner+=e.value),(e.value||e.output)&&H(e),U&&"text"===U.type&&"text"===e.type)return U.value+=e.value,void(U.output=(U.output||"")+e.value);e.prev=U,m.push(e),U=e},X=(e,t)=>{const i={...y[t],conditions:1,inner:""};i.prev=U,i.parens=M.parens,i.output=M.output;const r=(n.capture?"(":"")+i.open;z("parens"),Q({type:e,value:t,output:M.output?"":N}),Q({type:"paren",extglob:!0,value:K(),output:r}),F.push(i)},J=e=>{let t=e.close+(n.capture?")":"");if("negate"===e.type){let i=D;e.inner&&e.inner.length>1&&e.inner.includes("/")&&(i=x(n)),(i!==D||B()||/^\)+$/.test(q()))&&(t=e.close=`)$))${i}`),"bos"===e.prev.type&&B()&&(M.negatedExtglob=!0)}Q({type:"paren",extglob:!0,value:V,output:t}),Y("parens")};if(!1!==n.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(e)){let i=!1,s=e.replace(l,(e,t,n,r,s,o)=>"\\"===r?(i=!0,e):"?"===r?t?t+r+(s?w.repeat(s.length):""):0===o?R+(s?w.repeat(s.length):""):w.repeat(n.length):"."===r?_.repeat(n.length):"*"===r?t?t+r+(s?D:""):D:t?e:`\\${e}`);return!0===i&&(s=!0===n.unescape?s.replace(/\\/g,""):s.replace(/\\+/g,e=>e.length%2==0?"\\\\":e?"\\":"")),s===e&&!0===n.contains?(M.output=e,M):(M.output=r.wrapOutput(s,M,t),M)}for(;!B();){if(V=K(),"\0"===V)continue;if("\\"===V){const e=j();if("/"===e&&!0!==n.bash)continue;if("."===e||";"===e)continue;if(!e){V+="\\",Q({type:"text",value:V});continue}const t=/^\\+/.exec(q());let i=0;if(t&&t[0].length>2&&(i=t[0].length,M.index+=i,i%2!=0&&(V+="\\")),!0===n.unescape?V=K()||"":V+=K()||"",0===M.brackets){Q({type:"text",value:V});continue}}if(M.brackets>0&&("]"!==V||"["===U.value||"[^"===U.value)){if(!1!==n.posix&&":"===V){const e=U.value.slice(1);if(e.includes("[")&&(U.posix=!0,e.includes(":"))){const e=U.value.lastIndexOf("["),t=U.value.slice(0,e),n=U.value.slice(e+2),i=o[n];if(i){U.value=t+i,M.backtrack=!0,K(),p.output||1!==m.indexOf(U)||(p.output=N);continue}}}("["===V&&":"!==j()||"-"===V&&"]"===j())&&(V=`\\${V}`),"]"!==V||"["!==U.value&&"[^"!==U.value||(V=`\\${V}`),!0===n.posix&&"!"===V&&"["===U.value&&(V="^"),U.value+=V,H({value:V});continue}if(1===M.quotes&&'"'!==V){V=r.escapeRegex(V),U.value+=V,H({value:V});continue}if('"'===V){M.quotes=1===M.quotes?0:1,!0===n.keepQuotes&&Q({type:"text",value:V});continue}if("("===V){z("parens"),Q({type:"paren",value:V});continue}if(")"===V){if(0===M.parens&&!0===n.strictBrackets)throw new SyntaxError(d("opening","("));const e=F[F.length-1];if(e&&M.parens===e.parens+1){J(F.pop());continue}Q({type:"paren",value:V,output:M.parens?")":"\\)"}),Y("parens");continue}if("["===V){if(!0!==n.nobracket&&q().includes("]"))z("brackets");else{if(!0!==n.nobracket&&!0===n.strictBrackets)throw new SyntaxError(d("closing","]"));V=`\\${V}`}Q({type:"bracket",value:V});continue}if("]"===V){if(!0===n.nobracket||U&&"bracket"===U.type&&1===U.value.length){Q({type:"text",value:V,output:`\\${V}`});continue}if(0===M.brackets){if(!0===n.strictBrackets)throw new SyntaxError(d("opening","["));Q({type:"text",value:V,output:`\\${V}`});continue}Y("brackets");const e=U.value.slice(1);if(!0===U.posix||"^"!==e[0]||e.includes("/")||(V=`/${V}`),U.value+=V,H({value:V}),!1===n.literalBrackets||r.hasRegexChars(e))continue;const t=r.escapeRegex(U.value);if(M.output=M.output.slice(0,-U.value.length),!0===n.literalBrackets){M.output+=t,U.value=t;continue}U.value=`(${g}${t}|${U.value})`,M.output+=U.value;continue}if("{"===V&&!0!==n.nobrace){z("braces");const e={type:"brace",value:V,output:"(",outputIndex:M.output.length,tokensIndex:M.tokens.length};P.push(e),Q(e);continue}if("}"===V){const e=P[P.length-1];if(!0===n.nobrace||!e){Q({type:"text",value:V,output:V});continue}let t=")";if(!0===e.dots){const e=m.slice(),i=[];for(let t=e.length-1;t>=0&&(m.pop(),"brace"!==e[t].type);t--)"dots"!==e[t].type&&i.unshift(e[t].value);t=c(i,n),M.backtrack=!0}if(!0!==e.comma&&!0!==e.dots){const n=M.output.slice(0,e.outputIndex),i=M.tokens.slice(e.tokensIndex);e.value=e.output="\\{",V=t="\\}",M.output=n;for(const e of i)M.output+=e.output||e.value}Q({type:"brace",value:V,output:t}),Y("braces"),P.pop();continue}if("|"===V){F.length>0&&F[F.length-1].conditions++,Q({type:"text",value:V});continue}if(","===V){let e=V;const t=P[P.length-1];t&&"braces"===$[$.length-1]&&(t.comma=!0,e="|"),Q({type:"comma",value:V,output:e});continue}if("/"===V){if("dot"===U.type&&M.index===M.start+1){M.start=M.index+1,M.consumed="",M.output="",m.pop(),U=p;continue}Q({type:"slash",value:V,output:E});continue}if("."===V){if(M.braces>0&&"dot"===U.type){"."===U.value&&(U.output=_);const e=P[P.length-1];U.type="dots",U.output+=V,U.value+=V,e.dots=!0;continue}if(M.braces+M.parens===0&&"bos"!==U.type&&"slash"!==U.type){Q({type:"text",value:V,output:_});continue}Q({type:"dot",value:V,output:_});continue}if("?"===V){if((!U||"("!==U.value)&&!0!==n.noextglob&&"("===j()&&"?"!==j(2)){X("qmark",V);continue}if(U&&"paren"===U.type){const e=j();let t=V;if("<"===e&&!r.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");("("===U.value&&!/[!=<:]/.test(e)||"<"===e&&!/<([!=]|\w+>)/.test(q()))&&(t=`\\${V}`),Q({type:"text",value:V,output:t});continue}if(!0!==n.dot&&("slash"===U.type||"bos"===U.type)){Q({type:"qmark",value:V,output:L});continue}Q({type:"qmark",value:V,output:w});continue}if("!"===V){if(!0!==n.noextglob&&"("===j()&&("?"!==j(2)||!/[!=<:]/.test(j(3)))){X("negate",V);continue}if(!0!==n.nonegate&&0===M.index){G();continue}}if("+"===V){if(!0!==n.noextglob&&"("===j()&&"?"!==j(2)){X("plus",V);continue}if(U&&"("===U.value||!1===n.regex){Q({type:"plus",value:V,output:b});continue}if(U&&("bracket"===U.type||"paren"===U.type||"brace"===U.type)||M.parens>0){Q({type:"plus",value:V});continue}Q({type:"plus",value:b});continue}if("@"===V){if(!0!==n.noextglob&&"("===j()&&"?"!==j(2)){Q({type:"at",extglob:!0,value:V,output:""});continue}Q({type:"text",value:V});continue}if("*"!==V){"$"!==V&&"^"!==V||(V=`\\${V}`);const e=a.exec(q());e&&(V+=e[0],M.index+=e[0].length),Q({type:"text",value:V});continue}if(U&&("globstar"===U.type||!0===U.star)){U.type="star",U.star=!0,U.value+=V,U.output=D,M.backtrack=!0,M.globstar=!0,W(V);continue}let t=q();if(!0!==n.noextglob&&/^\([^?]/.test(t)){X("star",V);continue}if("star"===U.type){if(!0===n.noglobstar){W(V);continue}const i=U.prev,r=i.prev,s="slash"===i.type||"bos"===i.type,o=r&&("star"===r.type||"globstar"===r.type);if(!0===n.bash&&(!s||t[0]&&"/"!==t[0])){Q({type:"star",value:V,output:""});continue}const a=M.braces>0&&("comma"===i.type||"brace"===i.type),l=F.length&&("pipe"===i.type||"paren"===i.type);if(!s&&"paren"!==i.type&&!a&&!l){Q({type:"star",value:V,output:""});continue}for(;"/**"===t.slice(0,3);){const n=e[M.index+4];if(n&&"/"!==n)break;t=t.slice(3),W("/**",3)}if("bos"===i.type&&B()){U.type="globstar",U.value+=V,U.output=x(n),M.output=U.output,M.globstar=!0,W(V);continue}if("slash"===i.type&&"bos"!==i.prev.type&&!o&&B()){M.output=M.output.slice(0,-(i.output+U.output).length),i.output=`(?:${i.output}`,U.type="globstar",U.output=x(n)+(n.strictSlashes?")":"|$)"),U.value+=V,M.globstar=!0,M.output+=i.output+U.output,W(V);continue}if("slash"===i.type&&"bos"!==i.prev.type&&"/"===t[0]){const e=void 0!==t[1]?"|$":"";M.output=M.output.slice(0,-(i.output+U.output).length),i.output=`(?:${i.output}`,U.type="globstar",U.output=`${x(n)}${E}|${E}${e})`,U.value+=V,M.output+=i.output+U.output,M.globstar=!0,W(V+K()),Q({type:"slash",value:"/",output:""});continue}if("bos"===i.type&&"/"===t[0]){U.type="globstar",U.value+=V,U.output=`(?:^|${E}|${x(n)}${E})`,M.output=U.output,M.globstar=!0,W(V+K()),Q({type:"slash",value:"/",output:""});continue}M.output=M.output.slice(0,-U.output.length),U.type="globstar",U.output=x(n),U.value+=V,M.output+=U.output,M.globstar=!0,W(V);continue}const i={type:"star",value:V,output:D};!0!==n.bash?!U||"bracket"!==U.type&&"paren"!==U.type||!0!==n.regex?(M.index!==M.start&&"slash"!==U.type&&"dot"!==U.type||("dot"===U.type?(M.output+=k,U.output+=k):!0===n.dot?(M.output+=C,U.output+=C):(M.output+=O,U.output+=O),"*"!==j()&&(M.output+=N,U.output+=N)),Q(i)):(i.output=V,Q(i)):(i.output=".*?","bos"!==U.type&&"slash"!==U.type||(i.output=O+i.output),Q(i))}for(;M.brackets>0;){if(!0===n.strictBrackets)throw new SyntaxError(d("closing","]"));M.output=r.escapeLast(M.output,"["),Y("brackets")}for(;M.parens>0;){if(!0===n.strictBrackets)throw new SyntaxError(d("closing",")"));M.output=r.escapeLast(M.output,"("),Y("parens")}for(;M.braces>0;){if(!0===n.strictBrackets)throw new SyntaxError(d("closing","}"));M.output=r.escapeLast(M.output,"{"),Y("braces")}if(!0===n.strictSlashes||"star"!==U.type&&"bracket"!==U.type||Q({type:"maybe_slash",value:"",output:`${E}?`}),!0===M.backtrack){M.output="";for(const e of M.tokens)M.output+=null!=e.output?e.output:e.value,e.suffix&&(M.output+=e.suffix)}return M};h.fastpaths=(e,t)=>{const n={...t},o="number"==typeof n.maxLength?Math.min(s,n.maxLength):s,a=e.length;if(a>o)throw new SyntaxError(`Input length: ${a}, exceeds maximum allowed length: ${o}`);e=u[e]||e;const{DOT_LITERAL:l,SLASH_LITERAL:c,ONE_CHAR:d,DOTS_SLASH:h,NO_DOT:f,NO_DOTS:p,NO_DOTS_SLASH:m,STAR:g,START_ANCHOR:v}=i.globChars(n.windows),y=n.dot?p:f,_=n.dot?m:f,b=n.capture?"":"?:";let E=!0===n.bash?".*?":g;n.capture&&(E=`(${E})`);const N=e=>!0===e.noglobstar?E:`(${b}(?:(?!${v}${e.dot?h:l}).)*?)`,T=e=>{switch(e){case"*":return`${y}${d}${E}`;case".*":return`${l}${d}${E}`;case"*.*":return`${y}${E}${l}${d}${E}`;case"*/*":return`${y}${E}${c}${d}${_}${E}`;case"**":return y+N(n);case"**/*":return`(?:${y}${N(n)}${c})?${_}${d}${E}`;case"**/*.*":return`(?:${y}${N(n)}${c})?${_}${E}${l}${d}${E}`;case"**/.*":return`(?:${y}${N(n)}${c})?${l}${d}${E}`;default:{const t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;const n=T(t[1]);if(!n)return;return n+l+t[2]}}},S=r.removePrefix(e,{negated:!1,prefix:""});let k=T(S);return k&&!0!==n.strictSlashes&&(k+=`${c}?`),k},e.exports=h},4732:(e,t,n)=>{n.d(t,{n:()=>a});var i=n(99246),r=n(41122),s=n(70869);let o=!1;function a(e){if(o)return;o=!0;const t=new i.SimpleWorkerServer(e=>{globalThis.postMessage(e)},t=>new r.EditorSimpleWorker(s.EditorWorkerHost.getChannel(t),e));globalThis.onmessage=e=>{t.onmessage(e.data)}}globalThis.onmessage=e=>{o||a(null)}},5839:(e,t,n)=>{n.d(t,{I:()=>v,r:()=>d});var i=n(60942),r=n(69958);const s=/^\w[\w\d+.-]*$/,o=/^\//,a=/^\/\//,l="",u="/",c=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class d{static isUri(e){return e instanceof d||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString}constructor(e,t,n,i,r,c=!1){"object"==typeof e?(this.scheme=e.scheme||l,this.authority=e.authority||l,this.path=e.path||l,this.query=e.query||l,this.fragment=e.fragment||l):(this.scheme=function(e,t){return e||t?e:"file"}(e,c),this.authority=t||l,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==u&&(t=u+t):t=u}return t}(this.scheme,n||l),this.query=i||l,this.fragment=r||l,function(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!s.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!o.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(a.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,c))}get fsPath(){return v(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:i,query:r,fragment:s}=e;return void 0===t?t=this.scheme:null===t&&(t=l),void 0===n?n=this.authority:null===n&&(n=l),void 0===i?i=this.path:null===i&&(i=l),void 0===r?r=this.query:null===r&&(r=l),void 0===s?s=this.fragment:null===s&&(s=l),t===this.scheme&&n===this.authority&&i===this.path&&r===this.query&&s===this.fragment?this:new f(t,n,i,r,s)}static parse(e,t=!1){const n=c.exec(e);return n?new f(n[2]||l,E(n[4]||l),E(n[5]||l),E(n[7]||l),E(n[9]||l),t):new f(l,l,l,l,l)}static file(e){let t=l;if(r.uF&&(e=e.replace(/\\/g,u)),e[0]===u&&e[1]===u){const n=e.indexOf(u,2);-1===n?(t=e.substring(2),e=u):(t=e.substring(2,n),e=e.substring(n)||u)}return new f("file",t,e,l,l)}static from(e,t){return new f(e.scheme,e.authority,e.path,e.query,e.fragment,t)}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let n;return n=r.uF&&"file"===e.scheme?d.file(i.IN.join(v(e,!0),...t)).path:i.SA.join(e.path,...t),e.with({path:n})}toString(e=!1){return y(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof d)return e;{const t=new f(e);return t._formatted=e.external??null,t._fsPath=e._sep===h?e.fsPath??null:null,t}}return e}}const h=r.uF?1:void 0;class f extends d{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=v(this,!1)),this._fsPath}toString(e=!1){return e?y(this,!0):(this._formatted||(this._formatted=y(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=h),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const p={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function m(e,t,n){let i,r=-1;for(let s=0;s<e.length;s++){const o=e.charCodeAt(s);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o||n&&91===o||n&&93===o||n&&58===o)-1!==r&&(i+=encodeURIComponent(e.substring(r,s)),r=-1),void 0!==i&&(i+=e.charAt(s));else{void 0===i&&(i=e.substr(0,s));const t=p[o];void 0!==t?(-1!==r&&(i+=encodeURIComponent(e.substring(r,s)),r=-1),i+=t):-1===r&&(r=s)}}return-1!==r&&(i+=encodeURIComponent(e.substring(r))),void 0!==i?i:e}function g(e){let t;for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);35===i||63===i?(void 0===t&&(t=e.substr(0,n)),t+=p[i]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function v(e,t){let n;return n=e.authority&&e.path.length>1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,r.uF&&(n=n.replace(/\//g,"\\")),n}function y(e,t){const n=t?g:m;let i="",{scheme:r,authority:s,path:o,query:a,fragment:l}=e;if(r&&(i+=r,i+=":"),(s||"file"===r)&&(i+=u,i+=u),s){let e=s.indexOf("@");if(-1!==e){const t=s.substr(0,e);s=s.substr(e+1),e=t.lastIndexOf(":"),-1===e?i+=n(t,!1,!1):(i+=n(t.substr(0,e),!1,!1),i+=":",i+=n(t.substr(e+1),!1,!0)),i+="@"}s=s.toLowerCase(),e=s.lastIndexOf(":"),-1===e?i+=n(s,!1,!0):(i+=n(s.substr(0,e),!1,!0),i+=s.substr(e))}if(o){if(o.length>=3&&47===o.charCodeAt(0)&&58===o.charCodeAt(2)){const e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&58===o.charCodeAt(1)){const e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}i+=n(o,!0,!1)}return a&&(i+="?",i+=n(a,!1,!1)),l&&(i+="#",i+=t?l:m(l,!1,!1)),i}function _(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+_(e.substr(3)):e}}const b=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function E(e){return e.match(b)?e.replace(b,e=>_(e)):e}},6995:(e,t,n)=>{function i(e,t,n=(e,t)=>e===t){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let i=0,r=e.length;i<r;i++)if(!n(e[i],t[i]))return!1;return!0}function*r(e,t){let n,i;for(const r of e)void 0!==i&&t(i,r)?n.push(r):(n&&(yield n),n=[r]),i=r;n&&(yield n)}function s(e,t){for(let n=0;n<=e.length;n++)t(0===n?void 0:e[n-1],n===e.length?void 0:e[n])}function o(e,t){for(let n=0;n<e.length;n++)t(0===n?void 0:e[n-1],e[n],n+1===e.length?void 0:e[n+1])}function a(e,t=e=>e){const n=new Set;return e.filter(e=>{const i=t(e);return!n.has(i)&&(n.add(i),!0)})}function l(e,t){return e.length>0?e[0]:t}function u(e,t,n){const i=e.slice(0,t),r=e.slice(t);return i.concat(n,r)}function c(e,t){for(const n of t)e.push(n)}var d;function h(e,t){return(n,i)=>t(e(n),e(i))}n.d(t,{E4:()=>c,Fy:()=>l,Hw:()=>p,U9:()=>f,VE:()=>h,aI:()=>i,c1:()=>g,dM:()=>a,j3:()=>m,kj:()=>o,n:()=>r,nK:()=>u,pN:()=>s}),function(e){e.isLessThan=function(e){return e<0},e.isLessThanOrEqual=function(e){return e<=0},e.isGreaterThan=function(e){return e>0},e.isNeitherLessOrGreaterThan=function(e){return 0===e},e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0}(d||(d={}));const f=(e,t)=>e-t;function p(e){return(t,n)=>-e(t,n)}class m{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t<this.items.length&&e(this.items[t]);)t++;const n=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);return this.firstIdx=t,n}takeFromEndWhile(e){let t=this.lastIdx;for(;t>=0&&e(this.items[t]);)t--;const n=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,n}peek(){if(0!==this.length)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class g{static{this.empty=new g(e=>{})}constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(e){return new g(t=>this.iterate(n=>!e(n)||t(n)))}map(e){return new g(t=>this.iterate(n=>t(e(n))))}findLast(e){let t;return this.iterate(n=>(e(n)&&(t=n),!0)),t}findLastMaxBy(e){let t,n=!0;return this.iterate(i=>((n||d.isGreaterThan(e(i,t)))&&(n=!1,t=i),!0)),t}}},8144:(e,t,n)=>{n.d(t,{_K:()=>a,bJ:()=>o,iD:()=>l});var i=n(69958);let r;const s=globalThis.vscode;if(void 0!==s&&void 0!==s.process){const e=s.process;r={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd:()=>e.cwd()}}else r="undefined"!=typeof process&&"string"==typeof process?.versions?.node?{get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd:()=>process.env.VSCODE_CWD||process.cwd()}:{get platform(){return i.uF?"win32":i.zx?"darwin":"linux"},get arch(){},get env(){return{}},cwd:()=>"/"};const o=r.cwd,a=r.env,l=r.platform},12003:(e,t,n)=>{function i(){return globalThis._VSCODE_NLS_LANGUAGE}n.d(t,{i8:()=>i,kg:()=>s});const r="pseudo"===i()||"undefined"!=typeof document&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function s(e,t,...n){return function(e,t){let n;return n=0===t.length?e:e.replace(/\{(\d+)\}/g,(e,n)=>{const i=n[0],r=t[i];let s=e;return"string"==typeof r?s=r:"number"!=typeof r&&"boolean"!=typeof r&&null!=r||(s=String(r)),s}),r&&(n="["+n.replace(/[aouei]/g,"$&$&")+"]"),n}("number"==typeof e?function(e,t){const n=globalThis._VSCODE_NLS_MESSAGES?.[e];if("string"!=typeof n){if("string"==typeof t)return t;throw new Error(`!!! NLS MISSING: ${e} !!!`)}return n}(e,t):t,n)}},14818:(e,t,n)=>{n.r(t),n.d(t,{UnicodeTextModelHighlighter:()=>l});var i=n(81304),r=n(15439),s=n(60891),o=n(72667),a=n(58561);class l{static computeUnicodeHighlights(e,t,n){const l=n?n.startLineNumber:1,c=n?n.endLineNumber:e.getLineCount(),d=new u(t),h=d.getCandidateCodePoints();let f;var p;f="allNonBasicAscii"===h?new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):new RegExp((p=Array.from(h),`[${s.bm(p.map(e=>String.fromCodePoint(e)).join(""))}]`),"g");const m=new r.W5(null,f),g=[];let v,y=!1,_=0,b=0,E=0;e:for(let t=l,n=c;t<=n;t++){const n=e.getLineContent(t),r=n.length;m.reset(0);do{if(v=m.next(n),v){let e=v.index,l=v.index+v[0].length;if(e>0){const t=n.charCodeAt(e-1);s.pc(t)&&e--}if(l+1<r){const e=n.charCodeAt(l-1);s.pc(e)&&l++}const u=n.substring(e,l);let c=(0,a.Th)(e+1,a.Ld,n,0);c&&c.endColumn<=e+1&&(c=null);const h=d.shouldHighlightNonBasicASCII(u,c?c.word:null);if(0!==h){3===h?_++:2===h?b++:1===h?E++:(0,o.xb)(h);const n=1e3;if(g.length>=n){y=!0;break e}g.push(new i.Q(t,e+1,t,l+1))}}}while(v)}return{ranges:g,hasMore:y,ambiguousCharacterCount:_,invisibleCharacterCount:b,nonBasicAsciiCharacterCount:E}}static computeUnicodeHighlightReason(e,t){const n=new u(t);switch(n.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const i=e.codePointAt(0),r=n.ambiguousCharacters.getPrimaryConfusable(i),o=s.tl.getLocales().filter(e=>!s.tl.getInstance(new Set([...t.allowedLocales,e])).isAmbiguous(i));return{kind:0,confusableWith:String.fromCodePoint(r),notAmbiguousInLocales:o}}case 1:return{kind:2}}}}class u{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=s.tl.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const t of s.y_.codePoints)c(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(const t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(const t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){const n=e.codePointAt(0);if(this.allowedCodePoints.has(n))return 0;if(this.options.nonBasicASCII)return 1;let i=!1,r=!1;if(t)for(const e of t){const t=e.codePointAt(0),n=s.aC(e);i=i||n,n||this.ambiguousCharacters.isAmbiguous(t)||s.y_.isInvisibleCharacter(t)||(r=!0)}return!i&&r?0:this.options.invisibleCharacters&&!c(e)&&s.y_.isInvisibleCharacter(n)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(n)?3:0}}function c(e){return" "===e||"\n"===e||"\t"===e}},15439:(e,t,n)=>{n.d(t,{W5:()=>f,dr:()=>u,hB:()=>d,lt:()=>l,wC:()=>h});var i=n(60891),r=n(28227),s=n(55818),o=n(81304),a=n(92692);class l{constructor(e,t,n,i){this.searchString=e,this.isRegex=t,this.matchCase=n,this.wordSeparators=i}parseSearchRequest(){if(""===this.searchString)return null;let e;e=this.isRegex?function(e){if(!e||0===e.length)return!1;for(let t=0,n=e.length;t<n;t++){const i=e.charCodeAt(t);if(10===i)return!0;if(92===i){if(t++,t>=n)break;const i=e.charCodeAt(t);if(110===i||114===i||87===i)return!0}}return!1}(this.searchString):this.searchString.indexOf("\n")>=0;let t=null;try{t=i.OS(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch(e){return null}if(!t)return null;let n=!this.isRegex&&!e;return n&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(n=this.matchCase),new a.L5(t,this.wordSeparators?(0,r.i)(this.wordSeparators,[]):null,n?this.searchString:null)}}function u(e,t,n){if(!n)return new a.Dg(e,null);const i=[];for(let e=0,n=t.length;e<n;e++)i[e]=t[e];return new a.Dg(e,i)}class c{constructor(e){const t=[];let n=0;for(let i=0,r=e.length;i<r;i++)10===e.charCodeAt(i)&&(t[n++]=i);this._lineFeedsOffsets=t}findLineFeedCountBeforeOffset(e){const t=this._lineFeedsOffsets;let n=0,i=t.length-1;if(-1===i)return 0;if(e<=t[0])return 0;for(;n<i;){const r=n+((i-n)/2|0);t[r]>=e?i=r-1:t[r+1]>=e?(n=r,i=r):n=r+1}return n+1}}class d{static findMatches(e,t,n,i,r){const s=t.parseSearchRequest();return s?s.regex.multiline?this._doFindMatchesMultiline(e,n,new f(s.wordSeparators,s.regex),i,r):this._doFindMatchesLineByLine(e,n,s,i,r):[]}static _getMultilineMatchRange(e,t,n,i,r,s){let a,l,u=0;if(i?(u=i.findLineFeedCountBeforeOffset(r),a=t+r+u):a=t+r,i){const e=i.findLineFeedCountBeforeOffset(r+s.length)-u;l=a+s.length+e}else l=a+s.length;const c=e.getPositionAt(a),d=e.getPositionAt(l);return new o.Q(c.lineNumber,c.column,d.lineNumber,d.column)}static _doFindMatchesMultiline(e,t,n,i,r){const s=e.getOffsetAt(t.getStartPosition()),o=e.getValueInRange(t,1),a="\r\n"===e.getEOL()?new c(o):null,l=[];let d,h=0;for(n.reset(0);d=n.next(o);)if(l[h++]=u(this._getMultilineMatchRange(e,s,o,a,d.index,d[0]),d,i),h>=r)return l;return l}static _doFindMatchesLineByLine(e,t,n,i,r){const s=[];let o=0;if(t.startLineNumber===t.endLineNumber){const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return o=this._findMatchesInLine(n,a,t.startLineNumber,t.startColumn-1,o,s,i,r),s}const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);o=this._findMatchesInLine(n,a,t.startLineNumber,t.startColumn-1,o,s,i,r);for(let a=t.startLineNumber+1;a<t.endLineNumber&&o<r;a++)o=this._findMatchesInLine(n,e.getLineContent(a),a,0,o,s,i,r);if(o<r){const a=e.getLineContent(t.endLineNumber).substring(0,t.endColumn-1);o=this._findMatchesInLine(n,a,t.endLineNumber,0,o,s,i,r)}return s}static _findMatchesInLine(e,t,n,i,r,s,l,c){const d=e.wordSeparators;if(!l&&e.simpleSearch){const l=e.simpleSearch,u=l.length,f=t.length;let p=-u;for(;-1!==(p=t.indexOf(l,p+u));)if((!d||h(d,t,f,p,u))&&(s[r++]=new a.Dg(new o.Q(n,p+1+i,n,p+1+u+i),null),r>=c))return r;return r}const p=new f(e.wordSeparators,e.regex);let m;p.reset(0);do{if(m=p.next(t),m&&(s[r++]=u(new o.Q(n,m.index+1+i,n,m.index+1+m[0].length+i),m,l),r>=c))return r}while(m);return r}static findNextMatch(e,t,n,i){const r=t.parseSearchRequest();if(!r)return null;const s=new f(r.wordSeparators,r.regex);return r.regex.multiline?this._doFindNextMatchMultiline(e,n,s,i):this._doFindNextMatchLineByLine(e,n,s,i)}static _doFindNextMatchMultiline(e,t,n,i){const r=new s.y(t.lineNumber,1),a=e.getOffsetAt(r),l=e.getLineCount(),d=e.getValueInRange(new o.Q(r.lineNumber,r.column,l,e.getLineMaxColumn(l)),1),h="\r\n"===e.getEOL()?new c(d):null;n.reset(t.column-1);const f=n.next(d);return f?u(this._getMultilineMatchRange(e,a,d,h,f.index,f[0]),f,i):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new s.y(1,1),n,i):null}static _doFindNextMatchLineByLine(e,t,n,i){const r=e.getLineCount(),s=t.lineNumber,o=e.getLineContent(s),a=this._findFirstMatchInLine(n,o,s,t.column,i);if(a)return a;for(let t=1;t<=r;t++){const o=(s+t-1)%r,a=e.getLineContent(o+1),l=this._findFirstMatchInLine(n,a,o+1,1,i);if(l)return l}return null}static _findFirstMatchInLine(e,t,n,i,r){e.reset(i-1);const s=e.next(t);return s?u(new o.Q(n,s.index+1,n,s.index+1+s[0].length),s,r):null}static findPreviousMatch(e,t,n,i){const r=t.parseSearchRequest();if(!r)return null;const s=new f(r.wordSeparators,r.regex);return r.regex.multiline?this._doFindPreviousMatchMultiline(e,n,s,i):this._doFindPreviousMatchLineByLine(e,n,s,i)}static _doFindPreviousMatchMultiline(e,t,n,i){const r=this._doFindMatchesMultiline(e,new o.Q(1,1,t.lineNumber,t.column),n,i,9990);if(r.length>0)return r[r.length-1];const a=e.getLineCount();return t.lineNumber!==a||t.column!==e.getLineMaxColumn(a)?this._doFindPreviousMatchMultiline(e,new s.y(a,e.getLineMaxColumn(a)),n,i):null}static _doFindPreviousMatchLineByLine(e,t,n,i){const r=e.getLineCount(),s=t.lineNumber,o=e.getLineContent(s).substring(0,t.column-1),a=this._findLastMatchInLine(n,o,s,i);if(a)return a;for(let t=1;t<=r;t++){const o=(r+s-t-1)%r,a=e.getLineContent(o+1),l=this._findLastMatchInLine(n,a,o+1,i);if(l)return l}return null}static _findLastMatchInLine(e,t,n,i){let r,s=null;for(e.reset(0);r=e.next(t);)s=u(new o.Q(n,r.index+1,n,r.index+1+r[0].length),r,i);return s}}function h(e,t,n,i,r){return function(e,t,n,i,r){if(0===i)return!0;const s=t.charCodeAt(i-1);if(0!==e.get(s))return!0;if(13===s||10===s)return!0;if(r>0){const n=t.charCodeAt(i);if(0!==e.get(n))return!0}return!1}(e,t,0,i,r)&&function(e,t,n,i,r){if(i+r===n)return!0;const s=t.charCodeAt(i+r);if(0!==e.get(s))return!0;if(13===s||10===s)return!0;if(r>0){const n=t.charCodeAt(i+r-1);if(0!==e.get(n))return!0}return!1}(e,t,n,i,r)}class f{constructor(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const t=e.length;let n;do{if(this._prevMatchStartIndex+this._prevMatchLength===t)return null;if(n=this._searchRegex.exec(e),!n)return null;const r=n.index,s=n[0].length;if(r===this._prevMatchStartIndex&&s===this._prevMatchLength){if(0===s){i.Z5(e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=r,this._prevMatchLength=s,!this._wordSeparators||h(this._wordSeparators,e,t,r,s))return n}while(n);return null}}},15719:(e,t,n)=>{n.d(t,{L:()=>s});var i=n(55818),r=n(81304);class s extends r.Q{constructor(e,t,n,i){super(e,t,n,i),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=n,this.positionColumn=i}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return s.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return 0===this.getDirection()?new s(this.startLineNumber,this.startColumn,e,t):new s(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new i.y(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new i.y(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return 0===this.getDirection()?new s(e,t,this.endLineNumber,this.endColumn):new s(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new s(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return 0===t?new s(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new s(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new s(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let n=0,i=e.length;n<i;n++)if(!this.selectionsEqual(e[n],t[n]))return!1;return!0}static isISelection(e){return e&&"number"==typeof e.selectionStartLineNumber&&"number"==typeof e.selectionStartColumn&&"number"==typeof e.positionLineNumber&&"number"==typeof e.positionColumn}static createWithDirection(e,t,n,i,r){return 0===r?new s(e,t,n,i):new s(n,i,e,t)}}},16895:(e,t,n)=>{const i=n(21364),r=n(974),s=n(43044),o=n(27536),a=(e,t,n=!1)=>{if(Array.isArray(e)){const i=e.map(e=>a(e,t,n)),r=e=>{for(const t of i){const n=t(e);if(n)return n}return!1};return r}const i=(r=e)&&"object"==typeof r&&!Array.isArray(r)&&e.tokens&&e.input;var r;if(""===e||"string"!=typeof e&&!i)throw new TypeError("Expected pattern to be a non-empty string");const s=t||{},o=s.windows,l=i?a.compileRe(e,t):a.makeRe(e,t,!1,!0),u=l.state;delete l.state;let c=()=>!1;if(s.ignore){const e={...t,ignore:null,onMatch:null,onResult:null};c=a(s.ignore,e,n)}const d=(n,i=!1)=>{const{isMatch:r,match:d,output:h}=a.test(n,l,t,{glob:e,posix:o}),f={glob:e,state:u,regex:l,posix:o,input:n,output:h,match:d,isMatch:r};return"function"==typeof s.onResult&&s.onResult(f),!1===r?(f.isMatch=!1,!!i&&f):c(n)?("function"==typeof s.onIgnore&&s.onIgnore(f),f.isMatch=!1,!!i&&f):("function"==typeof s.onMatch&&s.onMatch(f),!i||f)};return n&&(d.state=u),d};a.test=(e,t,n,{glob:i,posix:r}={})=>{if("string"!=typeof e)throw new TypeError("Expected input to be a string");if(""===e)return{isMatch:!1,output:""};const o=n||{},l=o.format||(r?s.toPosixSlashes:null);let u=e===i,c=u&&l?l(e):e;return!1===u&&(c=l?l(e):e,u=c===i),!1!==u&&!0!==o.capture||(u=!0===o.matchBase||!0===o.basename?a.matchBase(e,t,n,r):t.exec(c)),{isMatch:Boolean(u),match:u,output:c}},a.matchBase=(e,t,n)=>(t instanceof RegExp?t:a.makeRe(t,n)).test(s.basename(e)),a.isMatch=(e,t,n)=>a(t,n)(e),a.parse=(e,t)=>Array.isArray(e)?e.map(e=>a.parse(e,t)):r(e,{...t,fastpaths:!1}),a.scan=(e,t)=>i(e,t),a.compileRe=(e,t,n=!1,i=!1)=>{if(!0===n)return e.output;const r=t||{},s=r.contains?"":"^",o=r.contains?"":"$";let l=`${s}(?:${e.output})${o}`;e&&!0===e.negated&&(l=`^(?!${l}).*$`);const u=a.toRegex(l,t);return!0===i&&(u.state=e),u},a.makeRe=(e,t,n=!1,i=!1)=>{if(!e||"string"!=typeof e)throw new TypeError("Expected a non-empty string");const s=t||{};let o,l={negated:!1,fastpaths:!0},u="";return e.startsWith("./")&&(e=e.slice(2),u=l.prefix="./"),!1===s.fastpaths||"."!==e[0]&&"*"!==e[0]||(o=r.fastpaths(e,t)),void 0===o?(l=r(e,t),l.prefix=u+(l.prefix||"")):l.output=o,a.compileRe(l,t,n,i)},a.toRegex=(e,t)=>{try{const n=t||{};return new RegExp(e,n.flags||(n.nocase?"i":""))}catch(e){if(t&&!0===t.debug)throw e;return/$^/}},a.constants=o,e.exports=a},20951:(e,t,n)=>{n.d(t,{V:()=>r});var i=n(88477);class r{constructor(e){const t=(0,i.W)(e);this._defaultValue=t,this._asciiMap=r._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){const t=new Uint8Array(256);return t.fill(e),t}set(e,t){const n=(0,i.W)(t);e>=0&&e<256?this._asciiMap[e]=n:this._map.set(e,n)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}},21364:(e,t,n)=>{const i=n(43044),{CHAR_ASTERISK:r,CHAR_AT:s,CHAR_BACKWARD_SLASH:o,CHAR_COMMA:a,CHAR_DOT:l,CHAR_EXCLAMATION_MARK:u,CHAR_FORWARD_SLASH:c,CHAR_LEFT_CURLY_BRACE:d,CHAR_LEFT_PARENTHESES:h,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_PLUS:p,CHAR_QUESTION_MARK:m,CHAR_RIGHT_CURLY_BRACE:g,CHAR_RIGHT_PARENTHESES:v,CHAR_RIGHT_SQUARE_BRACKET:y}=n(27536),_=e=>e===c||e===o,b=e=>{!0!==e.isPrefix&&(e.depth=e.isGlobstar?1/0:1)};e.exports=(e,t)=>{const n=t||{},E=e.length-1,N=!0===n.parts||!0===n.scanToEnd,T=[],S=[],k=[];let C,w,L=e,A=-1,I=0,x=0,O=!1,R=!1,D=!1,M=!1,F=!1,P=!1,$=!1,V=!1,U=!1,B=0,j={value:"",depth:0,isGlob:!1};const K=()=>A>=E,q=()=>L.charCodeAt(A+1),W=()=>(C=w,L.charCodeAt(++A));for(;A<E;){let e;if(w=W(),w!==o){if(!0===P||w===d){for(B++;!0!==K()&&(w=W());)if(w!==o)if(w!==d){if(!0!==P&&w===l&&(w=W())===l){if(O=j.isBrace=!0,D=j.isGlob=!0,U=!0,!0===N)continue;break}if(!0!==P&&w===a){if(O=j.isBrace=!0,D=j.isGlob=!0,U=!0,!0===N)continue;break}if(w===g&&(B--,0===B)){P=!1,O=j.isBrace=!0,U=!0;break}}else B++;else $=j.backslashes=!0,W();if(!0===N)continue;break}if(w!==c){if(!0!==n.noext&&!0==(w===p||w===s||w===r||w===m||w===u)&&q()===h){if(D=j.isGlob=!0,M=j.isExtglob=!0,U=!0,!0===N){for(;!0!==K()&&(w=W());)if(w!==o){if(w===v){D=j.isGlob=!0,U=!0;break}}else $=j.backslashes=!0,w=W();continue}break}if(w===r){if(C===r&&(F=j.isGlobstar=!0),D=j.isGlob=!0,U=!0,!0===N)continue;break}if(w===m){if(D=j.isGlob=!0,U=!0,!0===N)continue;break}if(w===f)for(;!0!==K()&&(e=W());)if(e!==o){if(e===y){if(R=j.isBracket=!0,D=j.isGlob=!0,U=!0,!0===N)continue;break}}else $=j.backslashes=!0,W();if(!0===n.nonegate||w!==u||A!==I){if(!0!==n.noparen&&w===h){if(D=j.isGlob=!0,!0===N){for(;!0!==K()&&(w=W());)if(w!==h){if(w===v){U=!0;break}}else $=j.backslashes=!0,w=W();continue}break}if(!0===D){if(U=!0,!0===N)continue;break}}else V=j.negated=!0,I++}else{if(T.push(A),S.push(j),j={value:"",depth:0,isGlob:!1},!0===U)continue;if(C===l&&A===I+1){I+=2;continue}x=A+1}}else $=j.backslashes=!0,w=W(),w===d&&(P=!0)}!0===n.noext&&(M=!1,D=!1);let H=L,G="",z="";I>0&&(G=L.slice(0,I),L=L.slice(I),x-=I),H&&!0===D&&x>0?(H=L.slice(0,x),z=L.slice(x)):!0===D?(H="",z=L):H=L,H&&""!==H&&"/"!==H&&H!==L&&_(H.charCodeAt(H.length-1))&&(H=H.slice(0,-1)),!0===n.unescape&&(z&&(z=i.removeBackslashes(z)),H&&!0===$&&(H=i.removeBackslashes(H)));const Y={prefix:G,input:e,start:I,base:H,glob:z,isBrace:O,isBracket:R,isGlob:D,isExtglob:M,isGlobstar:F,negated:V};if(!0===n.tokens&&(Y.maxDepth=0,_(w)||S.push(j),Y.tokens=S),!0===n.parts||!0===n.tokens){let t;for(let i=0;i<T.length;i++){const r=t?t+1:I,s=T[i],o=e.slice(r,s);n.tokens&&(0===i&&0!==I?(S[i].isPrefix=!0,S[i].value=G):S[i].value=o,b(S[i]),Y.maxDepth+=S[i].depth),0===i&&""===o||k.push(o),t=s}if(t&&t+1<e.length){const i=e.slice(t+1);k.push(i),n.tokens&&(S[S.length-1].value=i,b(S[S.length-1]),Y.maxDepth+=S[S.length-1].depth)}Y.slashes=T,Y.parts=k}return Y}},22573:(e,t,n)=>{n.d(t,{Jh:()=>i,vl:()=>f});var i,r=n(73226),s=n(32293),o=(n(70092),n(30222));!function(e){function t(e){return(t,n=null,i)=>{let r,s=!1;return r=e(e=>{if(!s)return r?r.dispose():s=!0,t.call(n,e)},null,i),s&&r.dispose(),r}}function n(e,t,n){return r((n,i=null,r)=>e(e=>n.call(i,t(e)),null,r),n)}function i(e,t,n){return r((n,i=null,r)=>e(e=>t(e)&&n.call(i,e),null,r),n)}function r(e,t){let n;const i=new f({onWillAddFirstListener(){n=e(i.fire,i)},onDidRemoveLastListener(){n?.dispose()}});return t?.add(i),i.event}function o(e,t,n=100,i=!1,r=!1,s,o){let a,l,u,c,d=0;const h=new f({leakWarningThreshold:s,onWillAddFirstListener(){a=e(e=>{d++,l=t(l,e),i&&!u&&(h.fire(l),l=void 0),c=()=>{const e=l;l=void 0,u=void 0,(!i||d>1)&&h.fire(e),d=0},"number"==typeof n?(clearTimeout(u),u=setTimeout(c,n)):void 0===u&&(u=0,queueMicrotask(c))})},onWillRemoveListener(){r&&d>0&&c?.()},onDidRemoveLastListener(){c=void 0,a.dispose()}});return o?.add(h),h.event}e.None=()=>s.jG.None,e.defer=function(e,t){return o(e,()=>{},0,void 0,!0,void 0,t)},e.once=t,e.onceIf=function(t,n){return e.once(e.filter(t,n))},e.map=n,e.forEach=function(e,t,n){return r((n,i=null,r)=>e(e=>{t(e),n.call(i,e)},null,r),n)},e.filter=i,e.signal=function(e){return e},e.any=function(...e){return(t,n=null,i)=>{return r=(0,s.qE)(...e.map(e=>e(e=>t.call(n,e)))),(o=i)instanceof Array?o.push(r):o&&o.add(r),r;var r,o}},e.reduce=function(e,t,i,r){let s=i;return n(e,e=>(s=t(s,e),s),r)},e.debounce=o,e.accumulate=function(t,n=0,i){return e.debounce(t,(e,t)=>e?(e.push(t),e):[t],n,void 0,!0,void 0,i)},e.latch=function(e,t=(e,t)=>e===t,n){let r,s=!0;return i(e,e=>{const n=s||!t(e,r);return s=!1,r=e,n},n)},e.split=function(t,n,i){return[e.filter(t,n,i),e.filter(t,e=>!n(e),i)]},e.buffer=function(e,t=!1,n=[],i){let r=n.slice(),s=e(e=>{r?r.push(e):a.fire(e)});i&&i.add(s);const o=()=>{r?.forEach(e=>a.fire(e)),r=null},a=new f({onWillAddFirstListener(){s||(s=e(e=>a.fire(e)),i&&i.add(s))},onDidAddFirstListener(){r&&(t?setTimeout(o):o())},onDidRemoveLastListener(){s&&s.dispose(),s=null}});return i&&i.add(a),a.event},e.chain=function(e,t){return(n,i,r)=>{const s=t(new l);return e(function(e){const t=s.evaluate(e);t!==a&&n.call(i,t)},void 0,r)}};const a=Symbol("HaltChainable");class l{constructor(){this.steps=[]}map(e){return this.steps.push(e),this}forEach(e){return this.steps.push(t=>(e(t),t)),this}filter(e){return this.steps.push(t=>e(t)?t:a),this}reduce(e,t){let n=t;return this.steps.push(t=>(n=e(n,t),n)),this}latch(e=(e,t)=>e===t){let t,n=!0;return this.steps.push(i=>{const r=n||!e(i,t);return n=!1,t=i,r?i:a}),this}evaluate(e){for(const t of this.steps)if((e=t(e))===a)break;return e}}e.fromNodeEventEmitter=function(e,t,n=e=>e){const i=(...e)=>r.fire(n(...e)),r=new f({onWillAddFirstListener:()=>e.on(t,i),onDidRemoveLastListener:()=>e.removeListener(t,i)});return r.event},e.fromDOMEventEmitter=function(e,t,n=e=>e){const i=(...e)=>r.fire(n(...e)),r=new f({onWillAddFirstListener:()=>e.addEventListener(t,i),onDidRemoveLastListener:()=>e.removeEventListener(t,i)});return r.event},e.toPromise=function(e){return new Promise(n=>t(e)(n))},e.fromPromise=function(e){const t=new f;return e.then(e=>{t.fire(e)},()=>{t.fire(void 0)}).finally(()=>{t.dispose()}),t.event},e.forward=function(e,t){return e(e=>t.fire(e))},e.runAndSubscribe=function(e,t,n){return t(n),e(e=>t(e))};class u{constructor(e,t){this._observable=e,this._counter=0,this._hasChanged=!1;const n={onWillAddFirstListener:()=>{e.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{e.removeObserver(this)}};this.emitter=new f(n),t&&t.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,0===this._counter&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}e.fromObservable=function(e,t){return new u(e,t).emitter.event},e.fromObservableLight=function(e){return(t,n,i)=>{let r=0,o=!1;const a={beginUpdate(){r++},endUpdate(){r--,0===r&&(e.reportChanges(),o&&(o=!1,t.call(n)))},handlePossibleChange(){},handleChange(){o=!0}};e.addObserver(a),e.reportChanges();const l={dispose(){e.removeObserver(a)}};return i instanceof s.Cm?i.add(l):Array.isArray(i)&&i.push(l),l}}}(i||(i={}));class a{static{this.all=new Set}static{this._idPool=0}constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${a._idPool++}`,a.all.add(this)}start(e){this._stopWatch=new o.W,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}class l{static{this._idPool=1}constructor(e,t,n=(l._idPool++).toString(16).padStart(3,"0")){this._errorHandler=e,this.threshold=t,this.name=n,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(e,t){const n=this.threshold;if(n<=0||t<n)return;this._stacks||(this._stacks=new Map);const i=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,i+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=.5*n;const[e,i]=this.getMostFrequentStack(),r=`[${this.name}] potential listener LEAK detected, having ${t} listeners already. MOST frequent listener (${i}):`;console.warn(r),console.warn(e);const s=new c(r,e);this._errorHandler(s)}return()=>{const t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}getMostFrequentStack(){if(!this._stacks)return;let e,t=0;for(const[n,i]of this._stacks)(!e||t<i)&&(e=[n,i],t=i);return e}}class u{static create(){const e=new Error;return new u(e.stack??"")}constructor(e){this.value=e}print(){console.warn(this.value.split("\n").slice(2).join("\n"))}}class c extends Error{constructor(e,t){super(e),this.name="ListenerLeakError",this.stack=t}}class d extends Error{constructor(e,t){super(e),this.name="ListenerRefusalError",this.stack=t}}class h{constructor(e){this.value=e}}class f{constructor(e){this._size=0,this._options=e,this._leakageMon=this._options?.leakWarningThreshold?new l(e?.onListenerError??r.dz,this._options?.leakWarningThreshold??-1):void 0,this._perfMon=this._options?._profName?new a(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){this._disposed||(this._disposed=!0,this._deliveryQueue?.current===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),this._options?.onDidRemoveLastListener?.(),this._leakageMon?.dispose())}get event(){return this._event??=(e,t,n)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const e=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(e);const t=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],n=new d(`${e}. HINT: Stack shows most frequent listener (${t[1]}-times)`,t[0]);return(this._options?.onListenerError||r.dz)(n),s.jG.None}if(this._disposed)return s.jG.None;t&&(e=e.bind(t));const i=new h(e);let o;this._leakageMon&&this._size>=Math.ceil(.2*this._leakageMon.threshold)&&(i.stack=u.create(),o=this._leakageMon.check(i.stack,this._size+1)),this._listeners?this._listeners instanceof h?(this._deliveryQueue??=new p,this._listeners=[this._listeners,i]):this._listeners.push(i):(this._options?.onWillAddFirstListener?.(this),this._listeners=i,this._options?.onDidAddFirstListener?.(this)),this._size++;const a=(0,s.s)(()=>{o?.(),this._removeListener(i)});return n instanceof s.Cm?n.add(a):Array.isArray(n)&&n.push(a),a},this._event}_removeListener(e){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(1===this._size)return this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),void(this._size=0);const t=this._listeners,n=t.indexOf(e);if(-1===n)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,t[n]=void 0;const i=this._deliveryQueue.current===this;if(2*this._size<=t.length){let e=0;for(let n=0;n<t.length;n++)t[n]?t[e++]=t[n]:i&&(this._deliveryQueue.end--,e<this._deliveryQueue.i&&this._deliveryQueue.i--);t.length=e}}_deliver(e,t){if(!e)return;const n=this._options?.onListenerError||r.dz;if(n)try{e.value(t)}catch(e){n(e)}else e.value(t)}_deliverQueue(e){const t=e.current._listeners;for(;e.i<e.end;)this._deliver(t[e.i++],e.value);e.reset()}fire(e){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners)if(this._listeners instanceof h)this._deliver(this._listeners,e);else{const t=this._deliveryQueue;t.enqueue(this,e,this._listeners.length),this._deliverQueue(t)}this._perfMon?.stop()}hasListeners(){return this._size>0}}class p{constructor(){this.i=-1,this.end=0}enqueue(e,t,n){this.i=0,this.end=n,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}},23854:(e,t,n)=>{n.d(t,{uP:()=>c,F1:()=>o});class i{constructor(e,t,n,i){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=i}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}var r=n(58053);class s{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let n=0,i=e.length;n<i;n++)t[n]=e.charCodeAt(n);return t}}function o(e,t,n){return new c(new s(e),new s(t)).ComputeDiff(n).changes}class a{static Assert(e,t){if(!e)throw new Error(t)}}class l{static Copy(e,t,n,i,r){for(let s=0;s<r;s++)n[i+s]=e[t+s]}static Copy2(e,t,n,i,r){for(let s=0;s<r;s++)n[i+s]=e[t+s]}}class u{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new i(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class c{constructor(e,t,n=null){this.ContinueProcessingPredicate=n,this._originalSequence=e,this._modifiedSequence=t;const[i,r,s]=c._getElements(e),[o,a,l]=c._getElements(t);this._hasStrings=s&&l,this._originalStringElements=i,this._originalElementsOrHash=r,this._modifiedStringElements=o,this._modifiedElementsOrHash=a,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"==typeof e[0]}static _getElements(e){const t=e.getElements();if(c._isStringArray(t)){const e=new Int32Array(t.length);for(let n=0,i=t.length;n<i;n++)e[n]=(0,r.e2)(t[n],0);return[t,e,!0]}return t instanceof Int32Array?[[],t,!1]:[[],new Int32Array(t),!1]}ElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[t])}ElementsAreStrictEqual(e,t){return!!this.ElementsAreEqual(e,t)&&c._getStrictElement(this._originalSequence,e)===c._getStrictElement(this._modifiedSequence,t)}static _getStrictElement(e,t){return"function"==typeof e.getStrictElement?e.getStrictElement(t):null}OriginalElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._originalElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[t])}ModifiedElementsAreEqual(e,t){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[t])}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,t,n,i,r){const s=[!1];let o=this.ComputeDiffRecursive(e,t,n,i,s);return r&&(o=this.PrettifyChanges(o)),{quitEarly:s[0],changes:o}}ComputeDiffRecursive(e,t,n,r,s){for(s[0]=!1;e<=t&&n<=r&&this.ElementsAreEqual(e,n);)e++,n++;for(;t>=e&&r>=n&&this.ElementsAreEqual(t,r);)t--,r--;if(e>t||n>r){let s;return n<=r?(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),s=[new i(e,0,n,r-n+1)]):e<=t?(a.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),s=[new i(e,t-e+1,n,0)]):(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),a.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),s=[]),s}const o=[0],l=[0],u=this.ComputeRecursionPoint(e,t,n,r,o,l,s),c=o[0],d=l[0];if(null!==u)return u;if(!s[0]){const o=this.ComputeDiffRecursive(e,c,n,d,s);let a=[];return a=s[0]?[new i(c+1,t-(c+1)+1,d+1,r-(d+1)+1)]:this.ComputeDiffRecursive(c+1,t,d+1,r,s),this.ConcatenateChanges(o,a)}return[new i(e,t-e+1,n,r-n+1)]}WALKTRACE(e,t,n,r,s,o,a,l,c,d,h,f,p,m,g,v,y,_){let b=null,E=null,N=new u,T=t,S=n,k=p[0]-v[0]-r,C=-1073741824,w=this.m_forwardHistory.length-1;do{const t=k+e;t===T||t<S&&c[t-1]<c[t+1]?(m=(h=c[t+1])-k-r,h<C&&N.MarkNextChange(),C=h,N.AddModifiedElement(h+1,m),k=t+1-e):(m=(h=c[t-1]+1)-k-r,h<C&&N.MarkNextChange(),C=h-1,N.AddOriginalElement(h,m+1),k=t-1-e),w>=0&&(e=(c=this.m_forwardHistory[w])[0],T=1,S=c.length-1)}while(--w>=-1);if(b=N.getReverseChanges(),_[0]){let e=p[0]+1,t=v[0]+1;if(null!==b&&b.length>0){const n=b[b.length-1];e=Math.max(e,n.getOriginalEnd()),t=Math.max(t,n.getModifiedEnd())}E=[new i(e,f-e+1,t,g-t+1)]}else{N=new u,T=o,S=a,k=p[0]-v[0]-l,C=1073741824,w=y?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=k+s;e===T||e<S&&d[e-1]>=d[e+1]?(m=(h=d[e+1]-1)-k-l,h>C&&N.MarkNextChange(),C=h+1,N.AddOriginalElement(h+1,m+1),k=e+1-s):(m=(h=d[e-1])-k-l,h>C&&N.MarkNextChange(),C=h,N.AddModifiedElement(h+1,m+1),k=e-1-s),w>=0&&(s=(d=this.m_reverseHistory[w])[0],T=1,S=d.length-1)}while(--w>=-1);E=N.getChanges()}return this.ConcatenateChanges(b,E)}ComputeRecursionPoint(e,t,n,r,s,o,a){let u=0,c=0,d=0,h=0,f=0,p=0;e--,n--,s[0]=0,o[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const m=t-e+(r-n),g=m+1,v=new Int32Array(g),y=new Int32Array(g),_=r-n,b=t-e,E=e-n,N=t-r,T=(b-_)%2==0;v[_]=e,y[b]=t,a[0]=!1;for(let S=1;S<=m/2+1;S++){let m=0,k=0;d=this.ClipDiagonalBound(_-S,S,_,g),h=this.ClipDiagonalBound(_+S,S,_,g);for(let e=d;e<=h;e+=2){u=e===d||e<h&&v[e-1]<v[e+1]?v[e+1]:v[e-1]+1,c=u-(e-_)-E;const n=u;for(;u<t&&c<r&&this.ElementsAreEqual(u+1,c+1);)u++,c++;if(v[e]=u,u+c>m+k&&(m=u,k=c),!T&&Math.abs(e-b)<=S-1&&u>=y[e])return s[0]=u,o[0]=c,n<=y[e]&&S<=1448?this.WALKTRACE(_,d,h,E,b,f,p,N,v,y,u,t,s,c,r,o,T,a):null}const C=(m-e+(k-n)-S)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(m,C))return a[0]=!0,s[0]=m,o[0]=k,C>0&&S<=1448?this.WALKTRACE(_,d,h,E,b,f,p,N,v,y,u,t,s,c,r,o,T,a):(e++,n++,[new i(e,t-e+1,n,r-n+1)]);f=this.ClipDiagonalBound(b-S,S,b,g),p=this.ClipDiagonalBound(b+S,S,b,g);for(let i=f;i<=p;i+=2){u=i===f||i<p&&y[i-1]>=y[i+1]?y[i+1]-1:y[i-1],c=u-(i-b)-N;const l=u;for(;u>e&&c>n&&this.ElementsAreEqual(u,c);)u--,c--;if(y[i]=u,T&&Math.abs(i-_)<=S&&u<=v[i])return s[0]=u,o[0]=c,l>=v[i]&&S<=1448?this.WALKTRACE(_,d,h,E,b,f,p,N,v,y,u,t,s,c,r,o,T,a):null}if(S<=1447){let e=new Int32Array(h-d+2);e[0]=_-d+1,l.Copy2(v,d,e,1,h-d+1),this.m_forwardHistory.push(e),e=new Int32Array(p-f+2),e[0]=b-f+1,l.Copy2(y,f,e,1,p-f+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(_,d,h,E,b,f,p,N,v,y,u,t,s,c,r,o,T,a)}PrettifyChanges(e){for(let t=0;t<e.length;t++){const n=e[t],i=t<e.length-1?e[t+1].originalStart:this._originalElementsOrHash.length,r=t<e.length-1?e[t+1].modifiedStart:this._modifiedElementsOrHash.length,s=n.originalLength>0,o=n.modifiedLength>0;for(;n.originalStart+n.originalLength<i&&n.modifiedStart+n.modifiedLength<r&&(!s||this.OriginalElementsAreEqual(n.originalStart,n.originalStart+n.originalLength))&&(!o||this.ModifiedElementsAreEqual(n.modifiedStart,n.modifiedStart+n.modifiedLength));){const e=this.ElementsAreStrictEqual(n.originalStart,n.modifiedStart);if(this.ElementsAreStrictEqual(n.originalStart+n.originalLength,n.modifiedStart+n.modifiedLength)&&!e)break;n.originalStart++,n.modifiedStart++}const a=[null];t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],a)&&(e[t]=a[0],e.splice(t+1,1),t--)}for(let t=e.length-1;t>=0;t--){const n=e[t];let i=0,r=0;if(t>0){const n=e[t-1];i=n.originalStart+n.originalLength,r=n.modifiedStart+n.modifiedLength}const s=n.originalLength>0,o=n.modifiedLength>0;let a=0,l=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let e=1;;e++){const t=n.originalStart-e,u=n.modifiedStart-e;if(t<i||u<r)break;if(s&&!this.OriginalElementsAreEqual(t,t+n.originalLength))break;if(o&&!this.ModifiedElementsAreEqual(u,u+n.modifiedLength))break;const c=(t===i&&u===r?5:0)+this._boundaryScore(t,n.originalLength,u,n.modifiedLength);c>l&&(l=c,a=e)}n.originalStart-=a,n.modifiedStart-=a;const u=[null];t>0&&this.ChangesOverlap(e[t-1],e[t],u)&&(e[t-1]=u[0],e.splice(t,1),t++)}if(this._hasStrings)for(let t=1,n=e.length;t<n;t++){const n=e[t-1],i=e[t],r=i.originalStart-n.originalStart-n.originalLength,s=n.originalStart,o=i.originalStart+i.originalLength,a=o-s,l=n.modifiedStart,u=i.modifiedStart+i.modifiedLength,c=u-l;if(r<5&&a<20&&c<20){const e=this._findBetterContiguousSequence(s,a,l,c,r);if(e){const[t,s]=e;t===n.originalStart+n.originalLength&&s===n.modifiedStart+n.modifiedLength||(n.originalLength=t-n.originalStart,n.modifiedLength=s-n.modifiedStart,i.originalStart=t+r,i.modifiedStart=s+r,i.originalLength=o-i.originalStart,i.modifiedLength=u-i.modifiedStart)}}}return e}_findBetterContiguousSequence(e,t,n,i,r){if(t<r||i<r)return null;const s=e+t-r+1,o=n+i-r+1;let a=0,l=0,u=0;for(let t=e;t<s;t++)for(let e=n;e<o;e++){const n=this._contiguousSequenceScore(t,e,r);n>0&&n>a&&(a=n,l=t,u=e)}return a>0?[l,u]:null}_contiguousSequenceScore(e,t,n){let i=0;for(let r=0;r<n;r++){if(!this.ElementsAreEqual(e+r,t+r))return 0;i+=this._originalStringElements[e+r].length}return i}_OriginalIsBoundary(e){return e<=0||e>=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1}_boundaryScore(e,t,n,i){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(n,i)?1:0)}ConcatenateChanges(e,t){const n=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){const i=new Array(e.length+t.length-1);return l.Copy(e,0,i,0,e.length-1),i[e.length-1]=n[0],l.Copy(t,1,i,e.length,t.length-1),i}{const n=new Array(e.length+t.length);return l.Copy(e,0,n,0,e.length),l.Copy(t,0,n,e.length,t.length),n}}ChangesOverlap(e,t,n){if(a.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),a.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){const r=e.originalStart;let s=e.originalLength;const o=e.modifiedStart;let a=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(s=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(a=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new i(r,s,o,a),!0}return n[0]=null,!1}ClipDiagonalBound(e,t,n,i){if(e>=0&&e<i)return e;const r=t%2==0;return e<0?r===(n%2==0)?0:1:r===((i-n-1)%2==0)?i-1:i-2}}},27536:e=>{const t="\\\\/",n=`[^${t}]`,i="\\.",r="\\/",s="[^/]",o=`(?:${r}|$)`,a=`(?:^|${r})`,l=`${i}{1,2}${o}`,u={DOT_LITERAL:i,PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:r,ONE_CHAR:"(?=.)",QMARK:s,END_ANCHOR:o,DOTS_SLASH:l,NO_DOT:`(?!${i})`,NO_DOTS:`(?!${a}${l})`,NO_DOT_SLASH:`(?!${i}{0,1}${o})`,NO_DOTS_SLASH:`(?!${l})`,QMARK_NO_DOT:`[^.${r}]`,STAR:`${s}*?`,START_ANCHOR:a,SEP:"/"},c={...u,SLASH_LITERAL:`[${t}]`,QMARK:n,STAR:`${n}*?`,DOTS_SLASH:`${i}{1,2}(?:[${t}]|$)`,NO_DOT:`(?!${i})`,NO_DOTS:`(?!(?:^|[${t}])${i}{1,2}(?:[${t}]|$))`,NO_DOT_SLASH:`(?!${i}{0,1}(?:[${t}]|$))`,NO_DOTS_SLASH:`(?!${i}{1,2}(?:[${t}]|$))`,QMARK_NO_DOT:`[^.${t}]`,START_ANCHOR:`(?:^|[${t}])`,END_ANCHOR:`(?:[${t}]|$)`,SEP:"\\"};e.exports={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars:e=>({"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}),globChars:e=>!0===e?c:u}},27735:(e,t,n)=>{var i,r;n.d(t,{cO:()=>c,db:()=>d,fT:()=>o,qK:()=>u});class s{constructor(e,t){this.uri=e,this.value=t}}class o{static{this.defaultToKey=e=>e.toString()}constructor(e,t){if(this[i]="ResourceMap",e instanceof o)this.map=new Map(e.map),this.toKey=t??o.defaultToKey;else if(function(e){return Array.isArray(e)}(e)){this.map=new Map,this.toKey=t??o.defaultToKey;for(const[t,n]of e)this.set(t,n)}else this.map=new Map,this.toKey=e??o.defaultToKey}set(e,t){return this.map.set(this.toKey(e),new s(e,t)),this}get(e){return this.map.get(this.toKey(e))?.value}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,t){void 0!==t&&(e=e.bind(t));for(const[t,n]of this.map)e(n.value,n.uri,this)}*values(){for(const e of this.map.values())yield e.value}*keys(){for(const e of this.map.values())yield e.uri}*entries(){for(const e of this.map.values())yield[e.uri,e.value]}*[(i=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.map)yield[e.uri,e.value]}}class a{constructor(){this[r]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,t=0){const n=this._map.get(e);if(n)return 0!==t&&this.touch(n,t),n.value}set(e,t,n=0){let i=this._map.get(e);if(i)i.value=t,0!==n&&this.touch(i,n);else{switch(i={key:e,value:t,next:void 0,previous:void 0},n){case 0:case 2:default:this.addItemLast(i);break;case 1:this.addItemFirst(i)}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const n=this._state;let i=this._head;for(;i;){if(t?e.bind(t)(i.value,i.key,this):e(i.value,i.key,this),this._state!==n)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.key,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}values(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.value,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}entries(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:[n.key,n.value],done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}[(r=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0),this._state++}trimNew(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._tail,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.previous,n--;this._tail=t,this._size=n,t&&(t.next=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,n=e.previous;if(!t||!n)throw new Error("Invalid list");t.previous=n,n.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;const t=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(t.previous=n,n.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(2===t){if(e===this._tail)return;const t=e.next,n=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=n,n.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach((t,n)=>{e.push([n,t])}),e}fromJSON(e){this.clear();for(const[t,n]of e)this.set(t,n)}}class l extends a{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,t=2){return super.get(e,t)}peek(e){return super.get(e,0)}set(e,t){return super.set(e,t,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}}class u extends l{constructor(e,t=1){super(e,t)}trim(e){this.trimOld(e)}set(e,t){return super.set(e,t),this.checkTrim(),this}}class c{constructor(e){if(this._m1=new Map,this._m2=new Map,e)for(const[t,n]of e)this.set(t,n)}clear(){this._m1.clear(),this._m2.clear()}set(e,t){this._m1.set(e,t),this._m2.set(t,e)}get(e){return this._m1.get(e)}getKey(e){return this._m2.get(e)}delete(e){const t=this._m1.get(e);return void 0!==t&&(this._m1.delete(e),this._m2.delete(t),!0)}keys(){return this._m1.keys()}values(){return this._m1.values()}}class d{constructor(){this.map=new Map}add(e,t){let n=this.map.get(e);n||(n=new Set,this.map.set(e,n)),n.add(t)}delete(e,t){const n=this.map.get(e);n&&(n.delete(t),0===n.size&&this.map.delete(e))}forEach(e,t){const n=this.map.get(e);n&&n.forEach(t)}get(e){return this.map.get(e)||new Set}}},28227:(e,t,n)=>{n.d(t,{i:()=>a});var i=n(27735),r=n(20951);class s extends r.V{constructor(e,t){super(0),this._segmenter=null,this._cachedLine=null,this._cachedSegments=[],this.intlSegmenterLocales=t,this.intlSegmenterLocales.length>0?this._segmenter=new Intl.Segmenter(this.intlSegmenterLocales,{granularity:"word"}):this._segmenter=null;for(let t=0,n=e.length;t<n;t++)this.set(e.charCodeAt(t),2);this.set(32,1),this.set(9,1)}findPrevIntlWordBeforeOrAtOffset(e,t){let n=null;for(const i of this._getIntlSegmenterWordsOnLine(e)){if(i.index>t)break;n=i}return n}findNextIntlWordAtOrAfterOffset(e,t){for(const n of this._getIntlSegmenterWordsOnLine(e))if(!(n.index<t))return n;return null}_getIntlSegmenterWordsOnLine(e){return this._segmenter?(this._cachedLine===e||(this._cachedLine=e,this._cachedSegments=this._filterWordSegments(this._segmenter.segment(e))),this._cachedSegments):[]}_filterWordSegments(e){const t=[];for(const n of e)this._isWordLike(n)&&t.push(n);return t}_isWordLike(e){return!!e.isWordLike}}const o=new i.qK(10);function a(e,t){const n=`${e}/${t.join(",")}`;let i=o.get(n);return i||(i=new s(e,t),o.set(n,i)),i}},30222:(e,t,n)=>{n.d(t,{W:()=>r});const i=globalThis.performance&&"function"==typeof globalThis.performance.now;class r{static create(e){return new r(e)}constructor(e){this._now=i&&!1===e?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}}},30325:(e,t,n)=>{n.d(t,{$6:()=>c,Qg:()=>a,uC:()=>u,vb:()=>l}),n(31710);var i=n(73226),r=n(22573),s=n(32293),o=n(69958);function a(e){return!!e&&"function"==typeof e.then}n(60988);class l{constructor(){this.disposable=void 0,this.isDisposed=!1}cancel(){this.disposable?.dispose(),this.disposable=void 0}cancelAndSet(e,t,n=globalThis){if(this.isDisposed)throw new i.D7("Calling 'cancelAndSet' on a disposed IntervalTimer");this.cancel();const r=n.setInterval(()=>{e()},t);this.disposable=(0,s.s)(()=>{n.clearInterval(r),this.disposable=void 0})}dispose(){this.cancel(),this.isDisposed=!0}}class u{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return-1!==this.timeoutToken}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner?.()}}let c,d;var h;d="function"!=typeof globalThis.requestIdleCallback||"function"!=typeof globalThis.cancelIdleCallback?(e,t)=>{(0,o._p)(()=>{if(n)return;const e=Date.now()+15,i={didTimeout:!0,timeRemaining:()=>Math.max(0,e-Date.now())};t(Object.freeze(i))});let n=!1;return{dispose(){n||(n=!0)}}}:(e,t,n)=>{const i=e.requestIdleCallback(t,"number"==typeof n?{timeout:n}:void 0);let r=!1;return{dispose(){r||(r=!0,e.cancelIdleCallback(i))}}},c=e=>d(globalThis,e),function(e){e.settled=async function(e){let t;const n=await Promise.all(e.map(e=>e.then(e=>e,e=>{t||(t=e)})));if(void 0!==t)throw t;return n},e.withAsyncBody=function(e){return new Promise(async(t,n)=>{try{await e(t,n)}catch(e){n(e)}})}}(h||(h={}));class f{static fromArray(e){return new f(t=>{t.emitMany(e)})}static fromPromise(e){return new f(async t=>{t.emitMany(await e)})}static fromPromises(e){return new f(async t=>{await Promise.all(e.map(async e=>t.emitOne(await e)))})}static merge(e){return new f(async t=>{await Promise.all(e.map(async e=>{for await(const n of e)t.emitOne(n)}))})}static{this.EMPTY=f.fromArray([])}constructor(e,t){this._state=0,this._results=[],this._error=null,this._onReturn=t,this._onStateChanged=new r.vl,queueMicrotask(async()=>{const t={emitOne:e=>this.emitOne(e),emitMany:e=>this.emitMany(e),reject:e=>this.reject(e)};try{await Promise.resolve(e(t)),this.resolve()}catch(e){this.reject(e)}finally{t.emitOne=void 0,t.emitMany=void 0,t.reject=void 0}})}[Symbol.asyncIterator](){let e=0;return{next:async()=>{for(;;){if(2===this._state)throw this._error;if(e<this._results.length)return{done:!1,value:this._results[e++]};if(1===this._state)return{done:!0,value:void 0};await r.Jh.toPromise(this._onStateChanged.event)}},return:async()=>(this._onReturn?.(),{done:!0,value:void 0})}}static map(e,t){return new f(async n=>{for await(const i of e)n.emitOne(t(i))})}map(e){return f.map(this,e)}static filter(e,t){return new f(async n=>{for await(const i of e)t(i)&&n.emitOne(i)})}filter(e){return f.filter(this,e)}static coalesce(e){return f.filter(e,e=>!!e)}coalesce(){return f.coalesce(this)}static async toPromise(e){const t=[];for await(const n of e)t.push(n);return t}toPromise(){return f.toPromise(this)}emitOne(e){0===this._state&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){0===this._state&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){0===this._state&&(this._state=1,this._onStateChanged.fire())}reject(e){0===this._state&&(this._state=2,this._error=e,this._onStateChanged.fire())}}},31710:(e,t,n)=>{n.d(t,{Qi:()=>a});var i=n(22573);const r=Object.freeze(function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}});var s;!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||t instanceof o||!(!t||"object"!=typeof t)&&"boolean"==typeof t.isCancellationRequested&&"function"==typeof t.onCancellationRequested},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:i.Jh.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:r})}(s||(s={}));class o{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?r:(this._emitter||(this._emitter=new i.vl),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class a{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new o),this._token}cancel(){this._token?this._token instanceof o&&this._token.cancel():this._token=s.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof o&&this._token.dispose():this._token=s.None}}},32293:(e,t,n)=>{n.d(t,{$w:()=>m,AS:()=>u,Ay:()=>o,Cm:()=>h,HE:()=>p,VD:()=>a,jG:()=>f,qE:()=>c,s:()=>d});var i=n(93444),r=n(73179);let s=null;function o(e){return s?.trackDisposable(e),e}function a(e){s?.markAsDisposed(e)}function l(e,t){s?.setParent(e,t)}function u(e){if(r.f.is(e)){const t=[];for(const n of e)if(n)try{n.dispose()}catch(e){t.push(e)}if(1===t.length)throw t[0];if(t.length>1)throw new AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function c(...e){const t=d(()=>u(e));return function(e,t){if(s)for(const n of e)s.setParent(n,t)}(e,t),t}function d(e){const t=o({dispose:(0,i.P)(()=>{a(t),e()})});return t}class h{static{this.DISABLE_DISPOSED_WARNING=!1}constructor(){this._toDispose=new Set,this._isDisposed=!1,o(this)}dispose(){this._isDisposed||(a(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(0!==this._toDispose.size)try{u(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return l(e,this),this._isDisposed?h.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}deleteAndLeak(e){e&&this._toDispose.has(e)&&(this._toDispose.delete(e),l(e,null))}}class f{static{this.None=Object.freeze({dispose(){}})}constructor(){this._store=new h,o(this),l(this._store,this)}dispose(){a(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}class p{constructor(){this._isDisposed=!1,o(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){this._isDisposed||e===this._value||(this._value?.dispose(),e&&l(e,this),this._value=e)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,a(this),this._value?.dispose(),this._value=void 0}}class m{constructor(){this._store=new Map,this._isDisposed=!1,o(this)}dispose(){a(this),this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{u(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,t,n=!1){this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),n||this._store.get(e)?.dispose(),this._store.set(e,t)}deleteAndDispose(e){this._store.get(e)?.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}},32477:(e,t,n)=>{function i(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(typeof e!=typeof t)return!1;if("object"!=typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;let n,r;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!i(e[n],t[n]))return!1}else{const s=[];for(r in e)s.push(r);s.sort();const o=[];for(r in t)o.push(r);if(o.sort(),!i(s,o))return!1;for(n=0;n<s.length;n++)if(!i(e[s[n]],t[s[n]]))return!1}return!0}function r(e){const t=[];for(const n of function(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}(e))"function"==typeof e[n]&&t.push(n);return t}function s(e,t){const n=e=>function(){const n=Array.prototype.slice.call(arguments,0);return t(e,n)},i={};for(const t of e)i[t]=n(t);return i}n.d(t,{V0:()=>r,aI:()=>i,kT:()=>s}),Object.prototype.hasOwnProperty},32643:(e,t,n)=>{n.d(t,{D8:()=>x});var i=n(6995),r=n(72667),s=n(81394),o=n(66401),a=n(81304),l=n(98123);class u{constructor(e,t){this.width=e,this.height=t,this.array=[],this.array=new Array(e*t)}get(e,t){return this.array[e+t*this.width]}set(e,t,n){this.array[e+t*this.width]=n}}function c(e){return 32===e||9===e}class d{static{this.chrKeys=new Map}static getKey(e){let t=this.chrKeys.get(e);return void 0===t&&(t=this.chrKeys.size,this.chrKeys.set(e,t)),t}constructor(e,t,n){this.range=e,this.lines=t,this.source=n,this.histogram=[];let i=0;for(let n=e.startLineNumber-1;n<e.endLineNumberExclusive-1;n++){const e=t[n];for(let t=0;t<e.length;t++){i++;const n=e[t],r=d.getKey(n);this.histogram[r]=(this.histogram[r]||0)+1}i++;const r=d.getKey("\n");this.histogram[r]=(this.histogram[r]||0)+1}this.totalCount=i}computeSimilarity(e){let t=0;const n=Math.max(this.histogram.length,e.histogram.length);for(let i=0;i<n;i++)t+=Math.abs((this.histogram[i]??0)-(e.histogram[i]??0));return 1-t/(this.totalCount+e.totalCount)}}class h{compute(e,t,n=l.uY.instance,i){if(0===e.length||0===t.length)return l.SL.trivial(e,t);const r=new u(e.length,t.length),s=new u(e.length,t.length),a=new u(e.length,t.length);for(let o=0;o<e.length;o++)for(let u=0;u<t.length;u++){if(!n.isValid())return l.SL.trivialTimedOut(e,t);const c=0===o?0:r.get(o-1,u),d=0===u?0:r.get(o,u-1);let h;e.getElement(o)===t.getElement(u)?(h=0===o||0===u?0:r.get(o-1,u-1),o>0&&u>0&&3===s.get(o-1,u-1)&&(h+=a.get(o-1,u-1)),h+=i?i(o,u):1):h=-1;const f=Math.max(c,d,h);if(f===h){const e=o>0&&u>0?a.get(o-1,u-1):0;a.set(o,u,e+1),s.set(o,u,3)}else f===c?(a.set(o,u,0),s.set(o,u,1)):f===d&&(a.set(o,u,0),s.set(o,u,2));r.set(o,u,f)}const c=[];let d=e.length,h=t.length;function f(e,t){e+1===d&&t+1===h||c.push(new l.$8(new o.L(e+1,d),new o.L(t+1,h))),d=e,h=t}let p=e.length-1,m=t.length-1;for(;p>=0&&m>=0;)3===s.get(p,m)?(f(p,m),p--,m--):1===s.get(p,m)?p--:m--;return f(-1,-1),c.reverse(),new l.SL(c,!1)}}class f{compute(e,t,n=l.uY.instance){if(0===e.length||0===t.length)return l.SL.trivial(e,t);const i=e,r=t;function s(e,t){for(;e<i.length&&t<r.length&&i.getElement(e)===r.getElement(t);)e++,t++;return e}let a=0;const u=new m;u.set(0,s(0,0));const c=new g;c.set(0,0===u.get(0)?null:new p(null,0,0,u.get(0)));let d=0;e:for(;;){if(a++,!n.isValid())return l.SL.trivialTimedOut(i,r);const e=-Math.min(a,r.length+a%2),t=Math.min(a,i.length+a%2);for(d=e;d<=t;d+=2){let n=0;const o=d===t?-1:u.get(d+1),a=d===e?-1:u.get(d-1)+1;n++;const l=Math.min(Math.max(o,a),i.length),h=l-d;if(n++,l>i.length||h>r.length)continue;const f=s(l,h);u.set(d,f);const m=l===o?c.get(d+1):c.get(d-1);if(c.set(d,f!==l?new p(m,l,h,f-l):m),u.get(d)===i.length&&u.get(d)-d===r.length)break e}}let h=c.get(d);const f=[];let v=i.length,y=r.length;for(;;){const e=h?h.x+h.length:0,t=h?h.y+h.length:0;if(e===v&&t===y||f.push(new l.$8(new o.L(e,v),new o.L(t,y))),!h)break;v=h.x,y=h.y,h=h.prev}return f.reverse(),new l.SL(f,!1)}}class p{constructor(e,t,n,i){this.prev=e,this.x=t,this.y=n,this.length=i}}class m{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){if(e<0){if((e=-e-1)>=this.negativeArr.length){const e=this.negativeArr;this.negativeArr=new Int32Array(2*e.length),this.negativeArr.set(e)}this.negativeArr[e]=t}else{if(e>=this.positiveArr.length){const e=this.positiveArr;this.positiveArr=new Int32Array(2*e.length),this.positiveArr.set(e)}this.positiveArr[e]=t}}}class g{constructor(){this.positiveArr=[],this.negativeArr=[]}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){e<0?(e=-e-1,this.negativeArr[e]=t):this.positiveArr[e]=t}}var v=n(43960),y=n(35380),_=n(27735),b=n(55818);class E{constructor(e,t,n){this.lines=e,this.range=t,this.considerWhitespaceChanges=n,this.elements=[],this.firstElementOffsetByLineIdx=[],this.lineStartOffsets=[],this.trimmedWsLengthsByLineIdx=[],this.firstElementOffsetByLineIdx.push(0);for(let t=this.range.startLineNumber;t<=this.range.endLineNumber;t++){let i=e[t-1],r=0;t===this.range.startLineNumber&&this.range.startColumn>1&&(r=this.range.startColumn-1,i=i.substring(r)),this.lineStartOffsets.push(r);let s=0;if(!n){const e=i.trimStart();s=i.length-e.length,i=e.trimEnd()}this.trimmedWsLengthsByLineIdx.push(s);const o=t===this.range.endLineNumber?Math.min(this.range.endColumn-1-r-s,i.length):i.length;for(let e=0;e<o;e++)this.elements.push(i.charCodeAt(e));t<this.range.endLineNumber&&(this.elements.push("\n".charCodeAt(0)),this.firstElementOffsetByLineIdx.push(this.elements.length))}}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new o.L(0,this.length))}getText(e){return this.elements.slice(e.start,e.endExclusive).map(e=>String.fromCharCode(e)).join("")}getElement(e){return this.elements[e]}get length(){return this.elements.length}getBoundaryScore(e){const t=k(e>0?this.elements[e-1]:-1),n=k(e<this.elements.length?this.elements[e]:-1);if(7===t&&8===n)return 0;if(8===t)return 150;let i=0;return t!==n&&(i+=10,0===t&&1===n&&(i+=1)),i+=S(t),i+=S(n),i}translateOffset(e,t="right"){const n=(0,y.iM)(this.firstElementOffsetByLineIdx,t=>t<=e),i=e-this.firstElementOffsetByLineIdx[n];return new b.y(this.range.startLineNumber+n,1+this.lineStartOffsets[n]+i+(0===i&&"left"===t?0:this.trimmedWsLengthsByLineIdx[n]))}translateRange(e){const t=this.translateOffset(e.start,"right"),n=this.translateOffset(e.endExclusive,"left");return n.isBefore(t)?a.Q.fromPositions(n,n):a.Q.fromPositions(t,n)}findWordContaining(e){if(e<0||e>=this.elements.length)return;if(!N(this.elements[e]))return;let t=e;for(;t>0&&N(this.elements[t-1]);)t--;let n=e;for(;n<this.elements.length&&N(this.elements[n]);)n++;return new o.L(t,n)}countLinesIn(e){return this.translateOffset(e.endExclusive).lineNumber-this.translateOffset(e.start).lineNumber}isStronglyEqual(e,t){return this.elements[e]===this.elements[t]}extendToFullLines(e){const t=(0,y.lx)(this.firstElementOffsetByLineIdx,t=>t<=e.start)??0,n=(0,y.XP)(this.firstElementOffsetByLineIdx,t=>e.endExclusive<=t)??this.elements.length;return new o.L(t,n)}}function N(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}const T={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function S(e){return T[e]}function k(e){return 10===e?8:13===e?7:c(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:-1===e?3:44===e||59===e?5:4}function C(e,t,n){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;const i=(new f).compute(new E([e],new a.Q(1,1,1,e.length),!1),new E([t],new a.Q(1,1,1,t.length),!1),n);let r=0;const s=l.$8.invert(i.diffs,e.length);for(const t of s)t.seq1Range.forEach(t=>{c(e.charCodeAt(t))||r++});const o=function(t){let n=0;for(let i=0;i<e.length;i++)c(t.charCodeAt(i))||n++;return n}(e.length>t.length?e:t);return r/o>.6&&o>10}var w=n(79119);class L{constructor(e,t){this.trimmedHash=e,this.lines=t}getElement(e){return this.trimmedHash[e]}get length(){return this.trimmedHash.length}getBoundaryScore(e){return 1e3-((0===e?0:A(this.lines[e-1]))+(e===this.lines.length?0:A(this.lines[e])))}getText(e){return this.lines.slice(e.start,e.endExclusive).join("\n")}isStronglyEqual(e,t){return this.lines[e]===this.lines[t]}}function A(e){let t=0;for(;t<e.length&&(32===e.charCodeAt(t)||9===e.charCodeAt(t));)t++;return t}var I=n(66528);class x{constructor(){this.dynamicProgrammingDiffing=new h,this.myersDiffingAlgorithm=new f}computeDiff(e,t,n){if(e.length<=1&&(0,i.aI)(e,t,(e,t)=>e===t))return new I.p([],[],!1);if(1===e.length&&0===e[0].length||1===t.length&&0===t[0].length)return new I.p([new v.wm(new s.M(1,e.length+1),new s.M(1,t.length+1),[new v.q6(new a.Q(1,1,e.length,e[e.length-1].length+1),new a.Q(1,1,t.length,t[t.length-1].length+1))])],[],!1);const u=0===n.maxComputationTimeMs?l.uY.instance:new l.aY(n.maxComputationTimeMs),c=!n.ignoreTrimWhitespace,d=new Map;function h(e){let t=d.get(e);return void 0===t&&(t=d.size,d.set(e,t)),t}const f=e.map(e=>h(e.trim())),p=t.map(e=>h(e.trim())),m=new L(f,e),g=new L(p,t),y=(()=>m.length+g.length<1700?this.dynamicProgrammingDiffing.compute(m,g,u,(n,i)=>e[n]===t[i]?0===t[i].length?.1:1+Math.log(1+t[i].length):.99):this.myersDiffingAlgorithm.compute(m,g,u))();let _=y.diffs,b=y.hitTimeout;_=(0,w.NC)(m,g,_),_=(0,w.X5)(m,g,_);const E=[],N=n=>{if(c)for(let i=0;i<n;i++){const n=T+i,r=S+i;if(e[n]!==t[r]){const i=this.refineDiff(e,t,new l.$8(new o.L(n,n+1),new o.L(r,r+1)),u,c);for(const e of i.mappings)E.push(e);i.hitTimeout&&(b=!0)}}};let T=0,S=0;for(const n of _){(0,r.Ft)(()=>n.seq1Range.start-T===n.seq2Range.start-S),N(n.seq1Range.start-T),T=n.seq1Range.endExclusive,S=n.seq2Range.endExclusive;const i=this.refineDiff(e,t,n,u,c);i.hitTimeout&&(b=!0);for(const e of i.mappings)E.push(e)}N(e.length-T);const k=O(E,e,t);let C=[];return n.computeMoves&&(C=this.computeMoves(k,e,t,f,p,u,c)),(0,r.Ft)(()=>{function n(e,t){if(e.lineNumber<1||e.lineNumber>t.length)return!1;const n=t[e.lineNumber-1];return!(e.column<1||e.column>n.length+1)}function i(e,t){return!(e.startLineNumber<1||e.startLineNumber>t.length+1||e.endLineNumberExclusive<1||e.endLineNumberExclusive>t.length+1)}for(const r of k){if(!r.innerChanges)return!1;for(const i of r.innerChanges)if(!(n(i.modifiedRange.getStartPosition(),t)&&n(i.modifiedRange.getEndPosition(),t)&&n(i.originalRange.getStartPosition(),e)&&n(i.originalRange.getEndPosition(),e)))return!1;if(!i(r.modified,t)||!i(r.original,e))return!1}return!0}),new I.p(k,C,b)}computeMoves(e,t,n,r,o,a,u){return function(e,t,n,r,o,a){let{moves:l,excludedChanges:u}=function(e,t,n,i){const r=[],s=e.filter(e=>e.modified.isEmpty&&e.original.length>=3).map(e=>new d(e.original,t,e)),o=new Set(e.filter(e=>e.original.isEmpty&&e.modified.length>=3).map(e=>new d(e.modified,n,e))),a=new Set;for(const e of s){let t,n=-1;for(const i of o){const r=e.computeSimilarity(i);r>n&&(n=r,t=i)}if(n>.9&&t&&(o.delete(t),r.push(new v.WL(e.range,t.range)),a.add(e.source),a.add(t.source)),!i.isValid())return{moves:r,excludedChanges:a}}return{moves:r,excludedChanges:a}}(e,t,n,a);if(!a.isValid())return[];const c=function(e,t,n,r,o,a){const l=[],u=new _.db;for(const n of e)for(let e=n.original.startLineNumber;e<n.original.endLineNumberExclusive-2;e++){const n=`${t[e-1]}:${t[e+1-1]}:${t[e+2-1]}`;u.add(n,{range:new s.M(e,e+3)})}const c=[];e.sort((0,i.VE)(e=>e.modified.startLineNumber,i.U9));for(const t of e){let e=[];for(let i=t.modified.startLineNumber;i<t.modified.endLineNumberExclusive-2;i++){const t=`${n[i-1]}:${n[i+1-1]}:${n[i+2-1]}`,r=new s.M(i,i+3),o=[];u.forEach(t,({range:t})=>{for(const n of e)if(n.originalLineRange.endLineNumberExclusive+1===t.endLineNumberExclusive&&n.modifiedLineRange.endLineNumberExclusive+1===r.endLineNumberExclusive)return n.originalLineRange=new s.M(n.originalLineRange.startLineNumber,t.endLineNumberExclusive),n.modifiedLineRange=new s.M(n.modifiedLineRange.startLineNumber,r.endLineNumberExclusive),void o.push(n);const n={modifiedLineRange:r,originalLineRange:t};c.push(n),o.push(n)}),e=o}if(!a.isValid())return[]}c.sort((0,i.Hw)((0,i.VE)(e=>e.modifiedLineRange.length,i.U9)));const d=new s.S,h=new s.S;for(const e of c){const t=e.modifiedLineRange.startLineNumber-e.originalLineRange.startLineNumber,n=d.subtractFrom(e.modifiedLineRange),i=h.subtractFrom(e.originalLineRange).getWithDelta(t),r=n.getIntersection(i);for(const e of r.ranges){if(e.length<3)continue;const n=e,i=e.delta(-t);l.push(new v.WL(i,n)),d.addRange(n),h.addRange(i)}}l.sort((0,i.VE)(e=>e.original.startLineNumber,i.U9));const f=new y.vJ(e);for(let t=0;t<l.length;t++){const n=l[t],i=f.findLastMonotonous(e=>e.original.startLineNumber<=n.original.startLineNumber),u=(0,y.lx)(e,e=>e.modified.startLineNumber<=n.modified.startLineNumber),c=Math.max(n.original.startLineNumber-i.original.startLineNumber,n.modified.startLineNumber-u.modified.startLineNumber),p=f.findLastMonotonous(e=>e.original.startLineNumber<n.original.endLineNumberExclusive),m=(0,y.lx)(e,e=>e.modified.startLineNumber<n.modified.endLineNumberExclusive),g=Math.max(p.original.endLineNumberExclusive-n.original.endLineNumberExclusive,m.modified.endLineNumberExclusive-n.modified.endLineNumberExclusive);let _,b;for(_=0;_<c;_++){const e=n.original.startLineNumber-_-1,t=n.modified.startLineNumber-_-1;if(e>r.length||t>o.length)break;if(d.contains(t)||h.contains(e))break;if(!C(r[e-1],o[t-1],a))break}for(_>0&&(h.addRange(new s.M(n.original.startLineNumber-_,n.original.startLineNumber)),d.addRange(new s.M(n.modified.startLineNumber-_,n.modified.startLineNumber))),b=0;b<g;b++){const e=n.original.endLineNumberExclusive+b,t=n.modified.endLineNumberExclusive+b;if(e>r.length||t>o.length)break;if(d.contains(t)||h.contains(e))break;if(!C(r[e-1],o[t-1],a))break}b>0&&(h.addRange(new s.M(n.original.endLineNumberExclusive,n.original.endLineNumberExclusive+b)),d.addRange(new s.M(n.modified.endLineNumberExclusive,n.modified.endLineNumberExclusive+b))),(_>0||b>0)&&(l[t]=new v.WL(new s.M(n.original.startLineNumber-_,n.original.endLineNumberExclusive+b),new s.M(n.modified.startLineNumber-_,n.modified.endLineNumberExclusive+b)))}return l}(e.filter(e=>!u.has(e)),r,o,t,n,a);return(0,i.E4)(l,c),l=function(e){if(0===e.length)return e;e.sort((0,i.VE)(e=>e.original.startLineNumber,i.U9));const t=[e[0]];for(let n=1;n<e.length;n++){const i=t[t.length-1],r=e[n],s=r.original.startLineNumber-i.original.endLineNumberExclusive,o=r.modified.startLineNumber-i.modified.endLineNumberExclusive;s>=0&&o>=0&&s+o<=2?t[t.length-1]=i.join(r):t.push(r)}return t}(l),l=l.filter(e=>{const n=e.original.toOffsetRange().slice(t).map(e=>e.trim());return n.join("\n").length>=15&&function(e,t){let n=0;for(const i of e)t(i)&&n++;return n}(n,e=>e.length>=2)>=2}),l=function(e,t){const n=new y.vJ(e);return t.filter(t=>(n.findLastMonotonous(e=>e.original.startLineNumber<t.original.endLineNumberExclusive)||new v.WL(new s.M(1,1),new s.M(1,1)))!==(0,y.lx)(e,e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive))}(e,l),l}(e,t,n,r,o,a).map(e=>{const i=O(this.refineDiff(t,n,new l.$8(e.original.toOffsetRange(),e.modified.toOffsetRange()),a,u).mappings,t,n,!0);return new I.t(e,i)})}refineDiff(e,t,n,i,r){var o;const a=(o=n,new v.WL(new s.M(o.seq1Range.start+1,o.seq1Range.endExclusive+1),new s.M(o.seq2Range.start+1,o.seq2Range.endExclusive+1))).toRangeMapping2(e,t),l=new E(e,a.originalRange,r),u=new E(t,a.modifiedRange,r),c=l.length+u.length<500?this.dynamicProgrammingDiffing.compute(l,u,i):this.myersDiffingAlgorithm.compute(l,u,i);let d=c.diffs;d=(0,w.NC)(l,u,d),d=(0,w.Lk)(l,u,d),d=(0,w.sq)(l,u,d),d=(0,w.Rl)(l,u,d);return{mappings:d.map(e=>new v.q6(l.translateRange(e.seq1Range),u.translateRange(e.seq2Range))),hitTimeout:c.hitTimeout}}}function O(e,t,n,o=!1){const a=[];for(const r of(0,i.n)(e.map(e=>function(e,t,n){let i=0,r=0;1===e.modifiedRange.endColumn&&1===e.originalRange.endColumn&&e.originalRange.startLineNumber+i<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+i<=e.modifiedRange.endLineNumber&&(r=-1),e.modifiedRange.startColumn-1>=n[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+r&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+r&&(i=1);const o=new s.M(e.originalRange.startLineNumber+i,e.originalRange.endLineNumber+1+r),a=new s.M(e.modifiedRange.startLineNumber+i,e.modifiedRange.endLineNumber+1+r);return new v.wm(o,a,[e])}(e,t,n)),(e,t)=>e.original.overlapOrTouch(t.original)||e.modified.overlapOrTouch(t.modified))){const e=r[0],t=r[r.length-1];a.push(new v.wm(e.original.join(t.original),e.modified.join(t.modified),r.map(e=>e.innerChanges[0])))}return(0,r.Ft)(()=>{if(!o&&a.length>0){if(a[0].modified.startLineNumber!==a[0].original.startLineNumber)return!1;if(n.length-a[a.length-1].modified.endLineNumberExclusive!==t.length-a[a.length-1].original.endLineNumberExclusive)return!1}return(0,r.Xo)(a,(e,t)=>t.original.startLineNumber-e.original.endLineNumberExclusive===t.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive<t.original.startLineNumber&&e.modified.endLineNumberExclusive<t.modified.startLineNumber)}),a}},35380:(e,t,n)=>{function i(e,t){const n=function(e,t,n=e.length-1){for(let i=n;i>=0;i--)if(t(e[i]))return i;return-1}(e,t);if(-1!==n)return e[n]}function r(e,t){const n=s(e,t);return-1===n?void 0:e[n]}function s(e,t,n=0,i=e.length){let r=n,s=i;for(;r<s;){const n=Math.floor((r+s)/2);t(e[n])?r=n+1:s=n}return r-1}function o(e,t){const n=a(e,t);return n===e.length?void 0:e[n]}function a(e,t,n=0,i=e.length){let r=n,s=i;for(;r<s;){const n=Math.floor((r+s)/2);t(e[n])?s=n:r=n+1}return r}n.d(t,{Uk:()=>i,XP:()=>o,hw:()=>a,iM:()=>s,lx:()=>r,vJ:()=>l});class l{static{this.assertInvariants=!1}constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(e){if(l.assertInvariants){if(this._prevFindLastPredicate)for(const t of this._array)if(this._prevFindLastPredicate(t)&&!e(t))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.");this._prevFindLastPredicate=e}const t=s(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=t+1,-1===t?void 0:this._array[t]}}},36972:(e,t,n)=>{n.d(t,{W:()=>r});var i=n(55833);const r={add:(0,i.k)("add",6e4),plus:(0,i.k)("plus",6e4),gistNew:(0,i.k)("gist-new",6e4),repoCreate:(0,i.k)("repo-create",6e4),lightbulb:(0,i.k)("lightbulb",60001),lightBulb:(0,i.k)("light-bulb",60001),repo:(0,i.k)("repo",60002),repoDelete:(0,i.k)("repo-delete",60002),gistFork:(0,i.k)("gist-fork",60003),repoForked:(0,i.k)("repo-forked",60003),gitPullRequest:(0,i.k)("git-pull-request",60004),gitPullRequestAbandoned:(0,i.k)("git-pull-request-abandoned",60004),recordKeys:(0,i.k)("record-keys",60005),keyboard:(0,i.k)("keyboard",60005),tag:(0,i.k)("tag",60006),gitPullRequestLabel:(0,i.k)("git-pull-request-label",60006),tagAdd:(0,i.k)("tag-add",60006),tagRemove:(0,i.k)("tag-remove",60006),person:(0,i.k)("person",60007),personFollow:(0,i.k)("person-follow",60007),personOutline:(0,i.k)("person-outline",60007),personFilled:(0,i.k)("person-filled",60007),gitBranch:(0,i.k)("git-branch",60008),gitBranchCreate:(0,i.k)("git-branch-create",60008),gitBranchDelete:(0,i.k)("git-branch-delete",60008),sourceControl:(0,i.k)("source-control",60008),mirror:(0,i.k)("mirror",60009),mirrorPublic:(0,i.k)("mirror-public",60009),star:(0,i.k)("star",60010),starAdd:(0,i.k)("star-add",60010),starDelete:(0,i.k)("star-delete",60010),starEmpty:(0,i.k)("star-empty",60010),comment:(0,i.k)("comment",60011),commentAdd:(0,i.k)("comment-add",60011),alert:(0,i.k)("alert",60012),warning:(0,i.k)("warning",60012),search:(0,i.k)("search",60013),searchSave:(0,i.k)("search-save",60013),logOut:(0,i.k)("log-out",60014),signOut:(0,i.k)("sign-out",60014),logIn:(0,i.k)("log-in",60015),signIn:(0,i.k)("sign-in",60015),eye:(0,i.k)("eye",60016),eyeUnwatch:(0,i.k)("eye-unwatch",60016),eyeWatch:(0,i.k)("eye-watch",60016),circleFilled:(0,i.k)("circle-filled",60017),primitiveDot:(0,i.k)("primitive-dot",60017),closeDirty:(0,i.k)("close-dirty",60017),debugBreakpoint:(0,i.k)("debug-breakpoint",60017),debugBreakpointDisabled:(0,i.k)("debug-breakpoint-disabled",60017),debugHint:(0,i.k)("debug-hint",60017),terminalDecorationSuccess:(0,i.k)("terminal-decoration-success",60017),primitiveSquare:(0,i.k)("primitive-square",60018),edit:(0,i.k)("edit",60019),pencil:(0,i.k)("pencil",60019),info:(0,i.k)("info",60020),issueOpened:(0,i.k)("issue-opened",60020),gistPrivate:(0,i.k)("gist-private",60021),gitForkPrivate:(0,i.k)("git-fork-private",60021),lock:(0,i.k)("lock",60021),mirrorPrivate:(0,i.k)("mirror-private",60021),close:(0,i.k)("close",60022),removeClose:(0,i.k)("remove-close",60022),x:(0,i.k)("x",60022),repoSync:(0,i.k)("repo-sync",60023),sync:(0,i.k)("sync",60023),clone:(0,i.k)("clone",60024),desktopDownload:(0,i.k)("desktop-download",60024),beaker:(0,i.k)("beaker",60025),microscope:(0,i.k)("microscope",60025),vm:(0,i.k)("vm",60026),deviceDesktop:(0,i.k)("device-desktop",60026),file:(0,i.k)("file",60027),fileText:(0,i.k)("file-text",60027),more:(0,i.k)("more",60028),ellipsis:(0,i.k)("ellipsis",60028),kebabHorizontal:(0,i.k)("kebab-horizontal",60028),mailReply:(0,i.k)("mail-reply",60029),reply:(0,i.k)("reply",60029),organization:(0,i.k)("organization",60030),organizationFilled:(0,i.k)("organization-filled",60030),organizationOutline:(0,i.k)("organization-outline",60030),newFile:(0,i.k)("new-file",60031),fileAdd:(0,i.k)("file-add",60031),newFolder:(0,i.k)("new-folder",60032),fileDirectoryCreate:(0,i.k)("file-directory-create",60032),trash:(0,i.k)("trash",60033),trashcan:(0,i.k)("trashcan",60033),history:(0,i.k)("history",60034),clock:(0,i.k)("clock",60034),folder:(0,i.k)("folder",60035),fileDirectory:(0,i.k)("file-directory",60035),symbolFolder:(0,i.k)("symbol-folder",60035),logoGithub:(0,i.k)("logo-github",60036),markGithub:(0,i.k)("mark-github",60036),github:(0,i.k)("github",60036),terminal:(0,i.k)("terminal",60037),console:(0,i.k)("console",60037),repl:(0,i.k)("repl",60037),zap:(0,i.k)("zap",60038),symbolEvent:(0,i.k)("symbol-event",60038),error:(0,i.k)("error",60039),stop:(0,i.k)("stop",60039),variable:(0,i.k)("variable",60040),symbolVariable:(0,i.k)("symbol-variable",60040),array:(0,i.k)("array",60042),symbolArray:(0,i.k)("symbol-array",60042),symbolModule:(0,i.k)("symbol-module",60043),symbolPackage:(0,i.k)("symbol-package",60043),symbolNamespace:(0,i.k)("symbol-namespace",60043),symbolObject:(0,i.k)("symbol-object",60043),symbolMethod:(0,i.k)("symbol-method",60044),symbolFunction:(0,i.k)("symbol-function",60044),symbolConstructor:(0,i.k)("symbol-constructor",60044),symbolBoolean:(0,i.k)("symbol-boolean",60047),symbolNull:(0,i.k)("symbol-null",60047),symbolNumeric:(0,i.k)("symbol-numeric",60048),symbolNumber:(0,i.k)("symbol-number",60048),symbolStructure:(0,i.k)("symbol-structure",60049),symbolStruct:(0,i.k)("symbol-struct",60049),symbolParameter:(0,i.k)("symbol-parameter",60050),symbolTypeParameter:(0,i.k)("symbol-type-parameter",60050),symbolKey:(0,i.k)("symbol-key",60051),symbolText:(0,i.k)("symbol-text",60051),symbolReference:(0,i.k)("symbol-reference",60052),goToFile:(0,i.k)("go-to-file",60052),symbolEnum:(0,i.k)("symbol-enum",60053),symbolValue:(0,i.k)("symbol-value",60053),symbolRuler:(0,i.k)("symbol-ruler",60054),symbolUnit:(0,i.k)("symbol-unit",60054),activateBreakpoints:(0,i.k)("activate-breakpoints",60055),archive:(0,i.k)("archive",60056),arrowBoth:(0,i.k)("arrow-both",60057),arrowDown:(0,i.k)("arrow-down",60058),arrowLeft:(0,i.k)("arrow-left",60059),arrowRight:(0,i.k)("arrow-right",60060),arrowSmallDown:(0,i.k)("arrow-small-down",60061),arrowSmallLeft:(0,i.k)("arrow-small-left",60062),arrowSmallRight:(0,i.k)("arrow-small-right",60063),arrowSmallUp:(0,i.k)("arrow-small-up",60064),arrowUp:(0,i.k)("arrow-up",60065),bell:(0,i.k)("bell",60066),bold:(0,i.k)("bold",60067),book:(0,i.k)("book",60068),bookmark:(0,i.k)("bookmark",60069),debugBreakpointConditionalUnverified:(0,i.k)("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:(0,i.k)("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:(0,i.k)("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:(0,i.k)("debug-breakpoint-data-unverified",60072),debugBreakpointData:(0,i.k)("debug-breakpoint-data",60073),debugBreakpointDataDisabled:(0,i.k)("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:(0,i.k)("debug-breakpoint-log-unverified",60074),debugBreakpointLog:(0,i.k)("debug-breakpoint-log",60075),debugBreakpointLogDisabled:(0,i.k)("debug-breakpoint-log-disabled",60075),briefcase:(0,i.k)("briefcase",60076),broadcast:(0,i.k)("broadcast",60077),browser:(0,i.k)("browser",60078),bug:(0,i.k)("bug",60079),calendar:(0,i.k)("calendar",60080),caseSensitive:(0,i.k)("case-sensitive",60081),check:(0,i.k)("check",60082),checklist:(0,i.k)("checklist",60083),chevronDown:(0,i.k)("chevron-down",60084),chevronLeft:(0,i.k)("chevron-left",60085),chevronRight:(0,i.k)("chevron-right",60086),chevronUp:(0,i.k)("chevron-up",60087),chromeClose:(0,i.k)("chrome-close",60088),chromeMaximize:(0,i.k)("chrome-maximize",60089),chromeMinimize:(0,i.k)("chrome-minimize",60090),chromeRestore:(0,i.k)("chrome-restore",60091),circleOutline:(0,i.k)("circle-outline",60092),circle:(0,i.k)("circle",60092),debugBreakpointUnverified:(0,i.k)("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:(0,i.k)("terminal-decoration-incomplete",60092),circleSlash:(0,i.k)("circle-slash",60093),circuitBoard:(0,i.k)("circuit-board",60094),clearAll:(0,i.k)("clear-all",60095),clippy:(0,i.k)("clippy",60096),closeAll:(0,i.k)("close-all",60097),cloudDownload:(0,i.k)("cloud-download",60098),cloudUpload:(0,i.k)("cloud-upload",60099),code:(0,i.k)("code",60100),collapseAll:(0,i.k)("collapse-all",60101),colorMode:(0,i.k)("color-mode",60102),commentDiscussion:(0,i.k)("comment-discussion",60103),creditCard:(0,i.k)("credit-card",60105),dash:(0,i.k)("dash",60108),dashboard:(0,i.k)("dashboard",60109),database:(0,i.k)("database",60110),debugContinue:(0,i.k)("debug-continue",60111),debugDisconnect:(0,i.k)("debug-disconnect",60112),debugPause:(0,i.k)("debug-pause",60113),debugRestart:(0,i.k)("debug-restart",60114),debugStart:(0,i.k)("debug-start",60115),debugStepInto:(0,i.k)("debug-step-into",60116),debugStepOut:(0,i.k)("debug-step-out",60117),debugStepOver:(0,i.k)("debug-step-over",60118),debugStop:(0,i.k)("debug-stop",60119),debug:(0,i.k)("debug",60120),deviceCameraVideo:(0,i.k)("device-camera-video",60121),deviceCamera:(0,i.k)("device-camera",60122),deviceMobile:(0,i.k)("device-mobile",60123),diffAdded:(0,i.k)("diff-added",60124),diffIgnored:(0,i.k)("diff-ignored",60125),diffModified:(0,i.k)("diff-modified",60126),diffRemoved:(0,i.k)("diff-removed",60127),diffRenamed:(0,i.k)("diff-renamed",60128),diff:(0,i.k)("diff",60129),diffSidebyside:(0,i.k)("diff-sidebyside",60129),discard:(0,i.k)("discard",60130),editorLayout:(0,i.k)("editor-layout",60131),emptyWindow:(0,i.k)("empty-window",60132),exclude:(0,i.k)("exclude",60133),extensions:(0,i.k)("extensions",60134),eyeClosed:(0,i.k)("eye-closed",60135),fileBinary:(0,i.k)("file-binary",60136),fileCode:(0,i.k)("file-code",60137),fileMedia:(0,i.k)("file-media",60138),filePdf:(0,i.k)("file-pdf",60139),fileSubmodule:(0,i.k)("file-submodule",60140),fileSymlinkDirectory:(0,i.k)("file-symlink-directory",60141),fileSymlinkFile:(0,i.k)("file-symlink-file",60142),fileZip:(0,i.k)("file-zip",60143),files:(0,i.k)("files",60144),filter:(0,i.k)("filter",60145),flame:(0,i.k)("flame",60146),foldDown:(0,i.k)("fold-down",60147),foldUp:(0,i.k)("fold-up",60148),fold:(0,i.k)("fold",60149),folderActive:(0,i.k)("folder-active",60150),folderOpened:(0,i.k)("folder-opened",60151),gear:(0,i.k)("gear",60152),gift:(0,i.k)("gift",60153),gistSecret:(0,i.k)("gist-secret",60154),gist:(0,i.k)("gist",60155),gitCommit:(0,i.k)("git-commit",60156),gitCompare:(0,i.k)("git-compare",60157),compareChanges:(0,i.k)("compare-changes",60157),gitMerge:(0,i.k)("git-merge",60158),githubAction:(0,i.k)("github-action",60159),githubAlt:(0,i.k)("github-alt",60160),globe:(0,i.k)("globe",60161),grabber:(0,i.k)("grabber",60162),graph:(0,i.k)("graph",60163),gripper:(0,i.k)("gripper",60164),heart:(0,i.k)("heart",60165),home:(0,i.k)("home",60166),horizontalRule:(0,i.k)("horizontal-rule",60167),hubot:(0,i.k)("hubot",60168),inbox:(0,i.k)("inbox",60169),issueReopened:(0,i.k)("issue-reopened",60171),issues:(0,i.k)("issues",60172),italic:(0,i.k)("italic",60173),jersey:(0,i.k)("jersey",60174),json:(0,i.k)("json",60175),kebabVertical:(0,i.k)("kebab-vertical",60176),key:(0,i.k)("key",60177),law:(0,i.k)("law",60178),lightbulbAutofix:(0,i.k)("lightbulb-autofix",60179),linkExternal:(0,i.k)("link-external",60180),link:(0,i.k)("link",60181),listOrdered:(0,i.k)("list-ordered",60182),listUnordered:(0,i.k)("list-unordered",60183),liveShare:(0,i.k)("live-share",60184),loading:(0,i.k)("loading",60185),location:(0,i.k)("location",60186),mailRead:(0,i.k)("mail-read",60187),mail:(0,i.k)("mail",60188),markdown:(0,i.k)("markdown",60189),megaphone:(0,i.k)("megaphone",60190),mention:(0,i.k)("mention",60191),milestone:(0,i.k)("milestone",60192),gitPullRequestMilestone:(0,i.k)("git-pull-request-milestone",60192),mortarBoard:(0,i.k)("mortar-board",60193),move:(0,i.k)("move",60194),multipleWindows:(0,i.k)("multiple-windows",60195),mute:(0,i.k)("mute",60196),noNewline:(0,i.k)("no-newline",60197),note:(0,i.k)("note",60198),octoface:(0,i.k)("octoface",60199),openPreview:(0,i.k)("open-preview",60200),package:(0,i.k)("package",60201),paintcan:(0,i.k)("paintcan",60202),pin:(0,i.k)("pin",60203),play:(0,i.k)("play",60204),run:(0,i.k)("run",60204),plug:(0,i.k)("plug",60205),preserveCase:(0,i.k)("preserve-case",60206),preview:(0,i.k)("preview",60207),project:(0,i.k)("project",60208),pulse:(0,i.k)("pulse",60209),question:(0,i.k)("question",60210),quote:(0,i.k)("quote",60211),radioTower:(0,i.k)("radio-tower",60212),reactions:(0,i.k)("reactions",60213),references:(0,i.k)("references",60214),refresh:(0,i.k)("refresh",60215),regex:(0,i.k)("regex",60216),remoteExplorer:(0,i.k)("remote-explorer",60217),remote:(0,i.k)("remote",60218),remove:(0,i.k)("remove",60219),replaceAll:(0,i.k)("replace-all",60220),replace:(0,i.k)("replace",60221),repoClone:(0,i.k)("repo-clone",60222),repoForcePush:(0,i.k)("repo-force-push",60223),repoPull:(0,i.k)("repo-pull",60224),repoPush:(0,i.k)("repo-push",60225),report:(0,i.k)("report",60226),requestChanges:(0,i.k)("request-changes",60227),rocket:(0,i.k)("rocket",60228),rootFolderOpened:(0,i.k)("root-folder-opened",60229),rootFolder:(0,i.k)("root-folder",60230),rss:(0,i.k)("rss",60231),ruby:(0,i.k)("ruby",60232),saveAll:(0,i.k)("save-all",60233),saveAs:(0,i.k)("save-as",60234),save:(0,i.k)("save",60235),screenFull:(0,i.k)("screen-full",60236),screenNormal:(0,i.k)("screen-normal",60237),searchStop:(0,i.k)("search-stop",60238),server:(0,i.k)("server",60240),settingsGear:(0,i.k)("settings-gear",60241),settings:(0,i.k)("settings",60242),shield:(0,i.k)("shield",60243),smiley:(0,i.k)("smiley",60244),sortPrecedence:(0,i.k)("sort-precedence",60245),splitHorizontal:(0,i.k)("split-horizontal",60246),splitVertical:(0,i.k)("split-vertical",60247),squirrel:(0,i.k)("squirrel",60248),starFull:(0,i.k)("star-full",60249),starHalf:(0,i.k)("star-half",60250),symbolClass:(0,i.k)("symbol-class",60251),symbolColor:(0,i.k)("symbol-color",60252),symbolConstant:(0,i.k)("symbol-constant",60253),symbolEnumMember:(0,i.k)("symbol-enum-member",60254),symbolField:(0,i.k)("symbol-field",60255),symbolFile:(0,i.k)("symbol-file",60256),symbolInterface:(0,i.k)("symbol-interface",60257),symbolKeyword:(0,i.k)("symbol-keyword",60258),symbolMisc:(0,i.k)("symbol-misc",60259),symbolOperator:(0,i.k)("symbol-operator",60260),symbolProperty:(0,i.k)("symbol-property",60261),wrench:(0,i.k)("wrench",60261),wrenchSubaction:(0,i.k)("wrench-subaction",60261),symbolSnippet:(0,i.k)("symbol-snippet",60262),tasklist:(0,i.k)("tasklist",60263),telescope:(0,i.k)("telescope",60264),textSize:(0,i.k)("text-size",60265),threeBars:(0,i.k)("three-bars",60266),thumbsdown:(0,i.k)("thumbsdown",60267),thumbsup:(0,i.k)("thumbsup",60268),tools:(0,i.k)("tools",60269),triangleDown:(0,i.k)("triangle-down",60270),triangleLeft:(0,i.k)("triangle-left",60271),triangleRight:(0,i.k)("triangle-right",60272),triangleUp:(0,i.k)("triangle-up",60273),twitter:(0,i.k)("twitter",60274),unfold:(0,i.k)("unfold",60275),unlock:(0,i.k)("unlock",60276),unmute:(0,i.k)("unmute",60277),unverified:(0,i.k)("unverified",60278),verified:(0,i.k)("verified",60279),versions:(0,i.k)("versions",60280),vmActive:(0,i.k)("vm-active",60281),vmOutline:(0,i.k)("vm-outline",60282),vmRunning:(0,i.k)("vm-running",60283),watch:(0,i.k)("watch",60284),whitespace:(0,i.k)("whitespace",60285),wholeWord:(0,i.k)("whole-word",60286),window:(0,i.k)("window",60287),wordWrap:(0,i.k)("word-wrap",60288),zoomIn:(0,i.k)("zoom-in",60289),zoomOut:(0,i.k)("zoom-out",60290),listFilter:(0,i.k)("list-filter",60291),listFlat:(0,i.k)("list-flat",60292),listSelection:(0,i.k)("list-selection",60293),selection:(0,i.k)("selection",60293),listTree:(0,i.k)("list-tree",60294),debugBreakpointFunctionUnverified:(0,i.k)("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:(0,i.k)("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:(0,i.k)("debug-breakpoint-function-disabled",60296),debugStackframeActive:(0,i.k)("debug-stackframe-active",60297),circleSmallFilled:(0,i.k)("circle-small-filled",60298),debugStackframeDot:(0,i.k)("debug-stackframe-dot",60298),terminalDecorationMark:(0,i.k)("terminal-decoration-mark",60298),debugStackframe:(0,i.k)("debug-stackframe",60299),debugStackframeFocused:(0,i.k)("debug-stackframe-focused",60299),debugBreakpointUnsupported:(0,i.k)("debug-breakpoint-unsupported",60300),symbolString:(0,i.k)("symbol-string",60301),debugReverseContinue:(0,i.k)("debug-reverse-continue",60302),debugStepBack:(0,i.k)("debug-step-back",60303),debugRestartFrame:(0,i.k)("debug-restart-frame",60304),debugAlt:(0,i.k)("debug-alt",60305),callIncoming:(0,i.k)("call-incoming",60306),callOutgoing:(0,i.k)("call-outgoing",60307),menu:(0,i.k)("menu",60308),expandAll:(0,i.k)("expand-all",60309),feedback:(0,i.k)("feedback",60310),gitPullRequestReviewer:(0,i.k)("git-pull-request-reviewer",60310),groupByRefType:(0,i.k)("group-by-ref-type",60311),ungroupByRefType:(0,i.k)("ungroup-by-ref-type",60312),account:(0,i.k)("account",60313),gitPullRequestAssignee:(0,i.k)("git-pull-request-assignee",60313),bellDot:(0,i.k)("bell-dot",60314),debugConsole:(0,i.k)("debug-console",60315),library:(0,i.k)("library",60316),output:(0,i.k)("output",60317),runAll:(0,i.k)("run-all",60318),syncIgnored:(0,i.k)("sync-ignored",60319),pinned:(0,i.k)("pinned",60320),githubInverted:(0,i.k)("github-inverted",60321),serverProcess:(0,i.k)("server-process",60322),serverEnvironment:(0,i.k)("server-environment",60323),pass:(0,i.k)("pass",60324),issueClosed:(0,i.k)("issue-closed",60324),stopCircle:(0,i.k)("stop-circle",60325),playCircle:(0,i.k)("play-circle",60326),record:(0,i.k)("record",60327),debugAltSmall:(0,i.k)("debug-alt-small",60328),vmConnect:(0,i.k)("vm-connect",60329),cloud:(0,i.k)("cloud",60330),merge:(0,i.k)("merge",60331),export:(0,i.k)("export",60332),graphLeft:(0,i.k)("graph-left",60333),magnet:(0,i.k)("magnet",60334),notebook:(0,i.k)("notebook",60335),redo:(0,i.k)("redo",60336),checkAll:(0,i.k)("check-all",60337),pinnedDirty:(0,i.k)("pinned-dirty",60338),passFilled:(0,i.k)("pass-filled",60339),circleLargeFilled:(0,i.k)("circle-large-filled",60340),circleLarge:(0,i.k)("circle-large",60341),circleLargeOutline:(0,i.k)("circle-large-outline",60341),combine:(0,i.k)("combine",60342),gather:(0,i.k)("gather",60342),table:(0,i.k)("table",60343),variableGroup:(0,i.k)("variable-group",60344),typeHierarchy:(0,i.k)("type-hierarchy",60345),typeHierarchySub:(0,i.k)("type-hierarchy-sub",60346),typeHierarchySuper:(0,i.k)("type-hierarchy-super",60347),gitPullRequestCreate:(0,i.k)("git-pull-request-create",60348),runAbove:(0,i.k)("run-above",60349),runBelow:(0,i.k)("run-below",60350),notebookTemplate:(0,i.k)("notebook-template",60351),debugRerun:(0,i.k)("debug-rerun",60352),workspaceTrusted:(0,i.k)("workspace-trusted",60353),workspaceUntrusted:(0,i.k)("workspace-untrusted",60354),workspaceUnknown:(0,i.k)("workspace-unknown",60355),terminalCmd:(0,i.k)("terminal-cmd",60356),terminalDebian:(0,i.k)("terminal-debian",60357),terminalLinux:(0,i.k)("terminal-linux",60358),terminalPowershell:(0,i.k)("terminal-powershell",60359),terminalTmux:(0,i.k)("terminal-tmux",60360),terminalUbuntu:(0,i.k)("terminal-ubuntu",60361),terminalBash:(0,i.k)("terminal-bash",60362),arrowSwap:(0,i.k)("arrow-swap",60363),copy:(0,i.k)("copy",60364),personAdd:(0,i.k)("person-add",60365),filterFilled:(0,i.k)("filter-filled",60366),wand:(0,i.k)("wand",60367),debugLineByLine:(0,i.k)("debug-line-by-line",60368),inspect:(0,i.k)("inspect",60369),layers:(0,i.k)("layers",60370),layersDot:(0,i.k)("layers-dot",60371),layersActive:(0,i.k)("layers-active",60372),compass:(0,i.k)("compass",60373),compassDot:(0,i.k)("compass-dot",60374),compassActive:(0,i.k)("compass-active",60375),azure:(0,i.k)("azure",60376),issueDraft:(0,i.k)("issue-draft",60377),gitPullRequestClosed:(0,i.k)("git-pull-request-closed",60378),gitPullRequestDraft:(0,i.k)("git-pull-request-draft",60379),debugAll:(0,i.k)("debug-all",60380),debugCoverage:(0,i.k)("debug-coverage",60381),runErrors:(0,i.k)("run-errors",60382),folderLibrary:(0,i.k)("folder-library",60383),debugContinueSmall:(0,i.k)("debug-continue-small",60384),beakerStop:(0,i.k)("beaker-stop",60385),graphLine:(0,i.k)("graph-line",60386),graphScatter:(0,i.k)("graph-scatter",60387),pieChart:(0,i.k)("pie-chart",60388),bracket:(0,i.k)("bracket",60175),bracketDot:(0,i.k)("bracket-dot",60389),bracketError:(0,i.k)("bracket-error",60390),lockSmall:(0,i.k)("lock-small",60391),azureDevops:(0,i.k)("azure-devops",60392),verifiedFilled:(0,i.k)("verified-filled",60393),newline:(0,i.k)("newline",60394),layout:(0,i.k)("layout",60395),layoutActivitybarLeft:(0,i.k)("layout-activitybar-left",60396),layoutActivitybarRight:(0,i.k)("layout-activitybar-right",60397),layoutPanelLeft:(0,i.k)("layout-panel-left",60398),layoutPanelCenter:(0,i.k)("layout-panel-center",60399),layoutPanelJustify:(0,i.k)("layout-panel-justify",60400),layoutPanelRight:(0,i.k)("layout-panel-right",60401),layoutPanel:(0,i.k)("layout-panel",60402),layoutSidebarLeft:(0,i.k)("layout-sidebar-left",60403),layoutSidebarRight:(0,i.k)("layout-sidebar-right",60404),layoutStatusbar:(0,i.k)("layout-statusbar",60405),layoutMenubar:(0,i.k)("layout-menubar",60406),layoutCentered:(0,i.k)("layout-centered",60407),target:(0,i.k)("target",60408),indent:(0,i.k)("indent",60409),recordSmall:(0,i.k)("record-small",60410),errorSmall:(0,i.k)("error-small",60411),terminalDecorationError:(0,i.k)("terminal-decoration-error",60411),arrowCircleDown:(0,i.k)("arrow-circle-down",60412),arrowCircleLeft:(0,i.k)("arrow-circle-left",60413),arrowCircleRight:(0,i.k)("arrow-circle-right",60414),arrowCircleUp:(0,i.k)("arrow-circle-up",60415),layoutSidebarRightOff:(0,i.k)("layout-sidebar-right-off",60416),layoutPanelOff:(0,i.k)("layout-panel-off",60417),layoutSidebarLeftOff:(0,i.k)("layout-sidebar-left-off",60418),blank:(0,i.k)("blank",60419),heartFilled:(0,i.k)("heart-filled",60420),map:(0,i.k)("map",60421),mapHorizontal:(0,i.k)("map-horizontal",60421),foldHorizontal:(0,i.k)("fold-horizontal",60421),mapFilled:(0,i.k)("map-filled",60422),mapHorizontalFilled:(0,i.k)("map-horizontal-filled",60422),foldHorizontalFilled:(0,i.k)("fold-horizontal-filled",60422),circleSmall:(0,i.k)("circle-small",60423),bellSlash:(0,i.k)("bell-slash",60424),bellSlashDot:(0,i.k)("bell-slash-dot",60425),commentUnresolved:(0,i.k)("comment-unresolved",60426),gitPullRequestGoToChanges:(0,i.k)("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:(0,i.k)("git-pull-request-new-changes",60428),searchFuzzy:(0,i.k)("search-fuzzy",60429),commentDraft:(0,i.k)("comment-draft",60430),send:(0,i.k)("send",60431),sparkle:(0,i.k)("sparkle",60432),insert:(0,i.k)("insert",60433),mic:(0,i.k)("mic",60434),thumbsdownFilled:(0,i.k)("thumbsdown-filled",60435),thumbsupFilled:(0,i.k)("thumbsup-filled",60436),coffee:(0,i.k)("coffee",60437),snake:(0,i.k)("snake",60438),game:(0,i.k)("game",60439),vr:(0,i.k)("vr",60440),chip:(0,i.k)("chip",60441),piano:(0,i.k)("piano",60442),music:(0,i.k)("music",60443),micFilled:(0,i.k)("mic-filled",60444),repoFetch:(0,i.k)("repo-fetch",60445),copilot:(0,i.k)("copilot",60446),lightbulbSparkle:(0,i.k)("lightbulb-sparkle",60447),robot:(0,i.k)("robot",60448),sparkleFilled:(0,i.k)("sparkle-filled",60449),diffSingle:(0,i.k)("diff-single",60450),diffMultiple:(0,i.k)("diff-multiple",60451),surroundWith:(0,i.k)("surround-with",60452),share:(0,i.k)("share",60453),gitStash:(0,i.k)("git-stash",60454),gitStashApply:(0,i.k)("git-stash-apply",60455),gitStashPop:(0,i.k)("git-stash-pop",60456),vscode:(0,i.k)("vscode",60457),vscodeInsiders:(0,i.k)("vscode-insiders",60458),codeOss:(0,i.k)("code-oss",60459),runCoverage:(0,i.k)("run-coverage",60460),runAllCoverage:(0,i.k)("run-all-coverage",60461),coverage:(0,i.k)("coverage",60462),githubProject:(0,i.k)("github-project",60463),mapVertical:(0,i.k)("map-vertical",60464),foldVertical:(0,i.k)("fold-vertical",60464),mapVerticalFilled:(0,i.k)("map-vertical-filled",60465),foldVerticalFilled:(0,i.k)("fold-vertical-filled",60465),goToSearch:(0,i.k)("go-to-search",60466),percentage:(0,i.k)("percentage",60467),sortPercentage:(0,i.k)("sort-percentage",60467),attach:(0,i.k)("attach",60468),dialogError:(0,i.k)("dialog-error","error"),dialogWarning:(0,i.k)("dialog-warning","warning"),dialogInfo:(0,i.k)("dialog-info","info"),dialogClose:(0,i.k)("dialog-close","close"),treeItemExpanded:(0,i.k)("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:(0,i.k)("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:(0,i.k)("tree-filter-on-type-off","list-selection"),treeFilterClear:(0,i.k)("tree-filter-clear","close"),treeItemLoading:(0,i.k)("tree-item-loading","loading"),menuSelection:(0,i.k)("menu-selection","check"),menuSubmenu:(0,i.k)("menu-submenu","chevron-right"),menuBarMore:(0,i.k)("menubar-more","more"),scrollbarButtonLeft:(0,i.k)("scrollbar-button-left","triangle-left"),scrollbarButtonRight:(0,i.k)("scrollbar-button-right","triangle-right"),scrollbarButtonUp:(0,i.k)("scrollbar-button-up","triangle-up"),scrollbarButtonDown:(0,i.k)("scrollbar-button-down","triangle-down"),toolBarMore:(0,i.k)("toolbar-more","more"),quickInputBack:(0,i.k)("quick-input-back","arrow-left"),dropDownButton:(0,i.k)("drop-down-button",60084),symbolCustomColor:(0,i.k)("symbol-customcolor",60252),exportIcon:(0,i.k)("export",60332),workspaceUnspecified:(0,i.k)("workspace-unspecified",60355),newLine:(0,i.k)("newline",60394),thumbsDownFilled:(0,i.k)("thumbsdown-filled",60435),thumbsUpFilled:(0,i.k)("thumbsup-filled",60436),gitFetch:(0,i.k)("git-fetch",60445),lightbulbSparkleAutofix:(0,i.k)("lightbulb-sparkle-autofix",60447),debugBreakpointPending:(0,i.k)("debug-breakpoint-pending",60377)}},37970:(e,t,n)=>{n.r(t),n.d(t,{KeyMod:()=>h,createMonacoBaseAPI:()=>f});var i=n(31710),r=n(22573),s=n(58518),o=n(5839),a=n(55818),l=n(81304),u=n(15719),c=n(51753),d=n(69014);class h{static{this.CtrlCmd=2048}static{this.Shift=1024}static{this.Alt=512}static{this.WinCtrl=256}static chord(e,t){return(0,s.m5)(e,t)}}function f(){return{editor:void 0,languages:void 0,CancellationTokenSource:i.Qi,Emitter:r.vl,KeyCode:d.DD,KeyMod:h,Position:a.y,Range:l.Q,Selection:u.L,SelectionDirection:d.SB,MarkerSeverity:d.cj,MarkerTag:d.d_,Uri:o.r,Token:c.ou}}},41122:(e,t,n)=>{n.r(t),n.d(t,{BaseEditorSimpleWorker:()=>q,EditorSimpleWorker:()=>W,create:()=>H});var i=n(23854),r=n(81304),s=n(20951);class o{constructor(e,t,n){const i=new Uint8Array(e*t);for(let r=0,s=e*t;r<s;r++)i[r]=n;this._data=i,this.rows=e,this.cols=t}get(e,t){return this._data[e*this.cols+t]}set(e,t,n){this._data[e*this.cols+t]=n}}class a{constructor(e){let t=0,n=0;for(let i=0,r=e.length;i<r;i++){const[r,s,o]=e[i];s>t&&(t=s),r>n&&(n=r),o>n&&(n=o)}t++,n++;const i=new o(n,t,0);for(let t=0,n=e.length;t<n;t++){const[n,r,s]=e[t];i.set(n,r,s)}this._states=i,this._maxCharCode=t}nextState(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)}}let l=null,u=null;class c{static _createLink(e,t,n,i,r){let s=r-1;do{const n=t.charCodeAt(s);if(2!==e.get(n))break;s--}while(s>i);if(i>0){const e=t.charCodeAt(i-1),n=t.charCodeAt(s);(40===e&&41===n||91===e&&93===n||123===e&&125===n)&&s--}return{range:{startLineNumber:n,startColumn:i+1,endLineNumber:n,endColumn:s+2},url:t.substring(i,s+1)}}static computeLinks(e,t=function(){return null===l&&(l=new a([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),l}()){const n=function(){if(null===u){u=new s.V(0);const e=" \t<>'\"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…";for(let t=0;t<e.length;t++)u.set(e.charCodeAt(t),1);const t=".,;:";for(let e=0;e<t.length;e++)u.set(t.charCodeAt(e),2)}return u}(),i=[];for(let r=1,s=e.getLineCount();r<=s;r++){const s=e.getLineContent(r),o=s.length;let a=0,l=0,u=0,d=1,h=!1,f=!1,p=!1,m=!1;for(;a<o;){let e=!1;const o=s.charCodeAt(a);if(13===d){let t;switch(o){case 40:h=!0,t=0;break;case 41:t=h?0:1;break;case 91:p=!0,f=!0,t=0;break;case 93:p=!1,t=f?0:1;break;case 123:m=!0,t=0;break;case 125:t=m?0:1;break;case 39:case 34:case 96:t=u===o?1:39===u||34===u||96===u?0:1;break;case 42:t=42===u?1:0;break;case 124:t=124===u?1:0;break;case 32:t=p?0:1;break;default:t=n.get(o)}1===t&&(i.push(c._createLink(n,s,r,l,a)),e=!0)}else if(12===d){let t;91===o?(f=!0,t=0):t=n.get(o),1===t?e=!0:d=13}else d=t.nextState(d,o),0===d&&(e=!0);e&&(d=1,h=!1,f=!1,m=!1,l=a+1,u=o),a++}13===d&&i.push(c._createLink(n,s,r,l,o))}return i}}class d{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}static{this.INSTANCE=new d}navigateValueSet(e,t,n,i,r){if(e&&t){const n=this.doNavigateValueSet(t,r);if(n)return{range:e,value:n}}if(n&&i){const e=this.doNavigateValueSet(i,r);if(e)return{range:n,value:e}}return null}doNavigateValueSet(e,t){const n=this.numberReplace(e,t);return null!==n?n:this.textReplace(e,t)}numberReplace(e,t){const n=Math.pow(10,e.length-(e.lastIndexOf(".")+1));let i=Number(e);const r=parseFloat(e);return isNaN(i)||isNaN(r)||i!==r?null:0!==i||t?(i=Math.floor(i*n),i+=t?n:-n,String(i/n)):null}textReplace(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)}valueSetsReplace(e,t,n){let i=null;for(let r=0,s=e.length;null===i&&r<s;r++)i=this.valueSetReplace(e[r],t,n);return i}valueSetReplace(e,t,n){let i=e.indexOf(t);return i>=0?(i+=n?1:-1,i<0?i=e.length-1:i%=e.length,e[i]):null}}var h=n(37970),f=n(70869),p=n(30222),m=n(14818),g=n(66528),v=n(43960),y=n(60891),_=n(72667),b=n(81394);class E{computeDiff(e,t,n){const i=new w(e,t,{maxComputationTime:n.maxComputationTimeMs,shouldIgnoreTrimWhitespace:n.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),s=[];let o=null;for(const e of i.changes){let t,n;t=0===e.originalEndLineNumber?new b.M(e.originalStartLineNumber+1,e.originalStartLineNumber+1):new b.M(e.originalStartLineNumber,e.originalEndLineNumber+1),n=0===e.modifiedEndLineNumber?new b.M(e.modifiedStartLineNumber+1,e.modifiedStartLineNumber+1):new b.M(e.modifiedStartLineNumber,e.modifiedEndLineNumber+1);let i=new v.wm(t,n,e.charChanges?.map(e=>new v.q6(new r.Q(e.originalStartLineNumber,e.originalStartColumn,e.originalEndLineNumber,e.originalEndColumn),new r.Q(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn))));o&&(o.modified.endLineNumberExclusive!==i.modified.startLineNumber&&o.original.endLineNumberExclusive!==i.original.startLineNumber||(i=new v.wm(o.original.join(i.original),o.modified.join(i.modified),o.innerChanges&&i.innerChanges?o.innerChanges.concat(i.innerChanges):void 0),s.pop())),s.push(i),o=i}return(0,_.Ft)(()=>(0,_.Xo)(s,(e,t)=>t.original.startLineNumber-e.original.endLineNumberExclusive===t.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive<t.original.startLineNumber&&e.modified.endLineNumberExclusive<t.modified.startLineNumber)),new g.p(s,[],i.quitEarly)}}function N(e,t,n,r){return new i.uP(e,t,n).ComputeDiff(r)}class T{constructor(e){const t=[],n=[];for(let i=0,r=e.length;i<r;i++)t[i]=L(e[i],1),n[i]=A(e[i],1);this.lines=e,this._startColumns=t,this._endColumns=n}getElements(){const e=[];for(let t=0,n=this.lines.length;t<n;t++)e[t]=this.lines[t].substring(this._startColumns[t]-1,this._endColumns[t]-1);return e}getStrictElement(e){return this.lines[e]}getStartLineNumber(e){return e+1}getEndLineNumber(e){return e+1}createCharSequence(e,t,n){const i=[],r=[],s=[];let o=0;for(let a=t;a<=n;a++){const t=this.lines[a],l=e?this._startColumns[a]:1,u=e?this._endColumns[a]:t.length+1;for(let e=l;e<u;e++)i[o]=t.charCodeAt(e-1),r[o]=a+1,s[o]=e,o++;!e&&a<n&&(i[o]=10,r[o]=a+1,s[o]=t.length+1,o++)}return new S(i,r,s)}}class S{constructor(e,t,n){this._charCodes=e,this._lineNumbers=t,this._columns=n}toString(){return"["+this._charCodes.map((e,t)=>(10===e?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[t]},${this._columns[t]})`).join(", ")+"]"}_assertIndex(e,t){if(e<0||e>=t.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}getEndLineNumber(e){return-1===e?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),10===this._charCodes[e]?this._lineNumbers[e]+1:this._lineNumbers[e])}getStartColumn(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}getEndColumn(e){return-1===e?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),10===this._charCodes[e]?1:this._columns[e]+1)}}class k{constructor(e,t,n,i,r,s,o,a){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=n,this.originalEndColumn=i,this.modifiedStartLineNumber=r,this.modifiedStartColumn=s,this.modifiedEndLineNumber=o,this.modifiedEndColumn=a}static createFromDiffChange(e,t,n){const i=t.getStartLineNumber(e.originalStart),r=t.getStartColumn(e.originalStart),s=t.getEndLineNumber(e.originalStart+e.originalLength-1),o=t.getEndColumn(e.originalStart+e.originalLength-1),a=n.getStartLineNumber(e.modifiedStart),l=n.getStartColumn(e.modifiedStart),u=n.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),c=n.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new k(i,r,s,o,a,l,u,c)}}class C{constructor(e,t,n,i,r){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=n,this.modifiedEndLineNumber=i,this.charChanges=r}static createFromDiffResult(e,t,n,i,r,s,o){let a,l,u,c,d;if(0===t.originalLength?(a=n.getStartLineNumber(t.originalStart)-1,l=0):(a=n.getStartLineNumber(t.originalStart),l=n.getEndLineNumber(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(u=i.getStartLineNumber(t.modifiedStart)-1,c=0):(u=i.getStartLineNumber(t.modifiedStart),c=i.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),s&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&r()){const s=n.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),a=i.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);if(s.getElements().length>0&&a.getElements().length>0){let e=N(s,a,r,!0).changes;o&&(e=function(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let i=1,r=e.length;i<r;i++){const r=e[i],s=r.originalStart-(n.originalStart+n.originalLength),o=r.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(s,o)<3?(n.originalLength=r.originalStart+r.originalLength-n.originalStart,n.modifiedLength=r.modifiedStart+r.modifiedLength-n.modifiedStart):(t.push(r),n=r)}return t}(e)),d=[];for(let t=0,n=e.length;t<n;t++)d.push(k.createFromDiffChange(e[t],s,a))}}return new C(a,l,u,c,d)}}class w{constructor(e,t,n){this.shouldComputeCharChanges=n.shouldComputeCharChanges,this.shouldPostProcessCharChanges=n.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=n.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=n.shouldMakePrettyDiff,this.originalLines=e,this.modifiedLines=t,this.original=new T(e),this.modified=new T(t),this.continueLineDiff=I(n.maxComputationTime),this.continueCharDiff=I(0===n.maxComputationTime?0:Math.min(n.maxComputationTime,5e3))}computeDiff(){if(1===this.original.lines.length&&0===this.original.lines[0].length)return 1===this.modified.lines.length&&0===this.modified.lines[0].length?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(1===this.modified.lines.length&&0===this.modified.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const e=N(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes,n=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){const e=[];for(let n=0,i=t.length;n<i;n++)e.push(C.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[n],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:n,changes:e}}const i=[];let r=0,s=0;for(let e=-1,n=t.length;e<n;e++){const o=e+1<n?t[e+1]:null,a=o?o.originalStart:this.originalLines.length,l=o?o.modifiedStart:this.modifiedLines.length;for(;r<a&&s<l;){const e=this.originalLines[r],t=this.modifiedLines[s];if(e!==t){{let n=L(e,1),o=L(t,1);for(;n>1&&o>1&&e.charCodeAt(n-2)===t.charCodeAt(o-2);)n--,o--;(n>1||o>1)&&this._pushTrimWhitespaceCharChange(i,r+1,1,n,s+1,1,o)}{let n=A(e,1),o=A(t,1);const a=e.length+1,l=t.length+1;for(;n<a&&o<l&&e.charCodeAt(n-1)===e.charCodeAt(o-1);)n++,o++;(n<a||o<l)&&this._pushTrimWhitespaceCharChange(i,r+1,n,a,s+1,o,l)}}r++,s++}o&&(i.push(C.createFromDiffResult(this.shouldIgnoreTrimWhitespace,o,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),r+=o.originalLength,s+=o.modifiedLength)}return{quitEarly:n,changes:i}}_pushTrimWhitespaceCharChange(e,t,n,i,r,s,o){if(this._mergeTrimWhitespaceCharChange(e,t,n,i,r,s,o))return;let a;this.shouldComputeCharChanges&&(a=[new k(t,n,t,i,r,s,r,o)]),e.push(new C(t,t,r,r,a))}_mergeTrimWhitespaceCharChange(e,t,n,i,r,s,o){const a=e.length;if(0===a)return!1;const l=e[a-1];return 0!==l.originalEndLineNumber&&0!==l.modifiedEndLineNumber&&(l.originalEndLineNumber===t&&l.modifiedEndLineNumber===r?(this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new k(t,n,t,i,r,s,r,o)),!0):l.originalEndLineNumber+1===t&&l.modifiedEndLineNumber+1===r&&(l.originalEndLineNumber=t,l.modifiedEndLineNumber=r,this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new k(t,n,t,i,r,s,r,o)),!0))}}function L(e,t){const n=y.HG(e);return-1===n?t:n+1}function A(e,t){const n=y.lT(e);return-1===n?t:n+2}function I(e){if(0===e)return()=>!0;const t=Date.now();return()=>Date.now()-t<e}var x=n(32643);var O=n(32477),R=n(54835),D=n(63962);function M(e){const t=[];for(const n of e){const e=Number(n);(e||0===e&&""!==n.replace(/\s/g,""))&&t.push(e)}return t}function F(e,t,n,i){return{red:e/255,blue:n/255,green:t/255,alpha:i}}function P(e,t){const n=t.index,i=t[0].length;if(!n)return;const r=e.positionAt(n);return{startLineNumber:r.lineNumber,startColumn:r.column,endLineNumber:r.lineNumber,endColumn:r.column+i}}function $(e,t){if(!e)return;const n=D.Q1.Format.CSS.parseHex(t);return n?{range:e,color:F(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}:void 0}function V(e,t,n){if(!e||1!==t.length)return;const i=M(t[0].values());return{range:e,color:F(i[0],i[1],i[2],n?i[3]:1)}}function U(e,t,n){if(!e||1!==t.length)return;const i=M(t[0].values()),r=new D.Q1(new D.hB(i[0],i[1]/100,i[2]/100,n?i[3]:1));return{range:e,color:F(r.rgba.r,r.rgba.g,r.rgba.b,r.rgba.a)}}function B(e,t){return"string"==typeof e?[...e.matchAll(t)]:e.findMatches(t)}var j=n(97716),K=n(43481);class q{constructor(){this._workerTextModelSyncServer=new K.WorkerTextModelSyncServer}dispose(){}_getModel(e){return this._workerTextModelSyncServer.getModel(e)}_getModels(){return this._workerTextModelSyncServer.getModels()}$acceptNewModel(e){this._workerTextModelSyncServer.$acceptNewModel(e)}$acceptModelChanged(e,t){this._workerTextModelSyncServer.$acceptModelChanged(e,t)}$acceptRemovedModel(e){this._workerTextModelSyncServer.$acceptRemovedModel(e)}async $computeUnicodeHighlights(e,t,n){const i=this._getModel(e);return i?m.UnicodeTextModelHighlighter.computeUnicodeHighlights(i,t,n):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async $findSectionHeaders(e,t){const n=this._getModel(e);return n?(0,j.findSectionHeaders)(n,t):[]}async $computeDiff(e,t,n,i){const r=this._getModel(e),s=this._getModel(t);return r&&s?W.computeDiff(r,s,n,i):null}static computeDiff(e,t,n,i){const r="advanced"===i?new x.D8:new E,s=e.getLinesContent(),o=t.getLinesContent(),a=r.computeDiff(s,o,n);function l(e){return e.map(e=>[e.original.startLineNumber,e.original.endLineNumberExclusive,e.modified.startLineNumber,e.modified.endLineNumberExclusive,e.innerChanges?.map(e=>[e.originalRange.startLineNumber,e.originalRange.startColumn,e.originalRange.endLineNumber,e.originalRange.endColumn,e.modifiedRange.startLineNumber,e.modifiedRange.startColumn,e.modifiedRange.endLineNumber,e.modifiedRange.endColumn])])}return{identical:!(a.changes.length>0)&&this._modelsAreIdentical(e,t),quitEarly:a.hitTimeout,changes:l(a.changes),moves:a.moves.map(e=>[e.lineRangeMapping.original.startLineNumber,e.lineRangeMapping.original.endLineNumberExclusive,e.lineRangeMapping.modified.startLineNumber,e.lineRangeMapping.modified.endLineNumberExclusive,l(e.changes)])}}static _modelsAreIdentical(e,t){const n=e.getLineCount();if(n!==t.getLineCount())return!1;for(let i=1;i<=n;i++)if(e.getLineContent(i)!==t.getLineContent(i))return!1;return!0}static{this._diffLimit=1e5}async $computeMoreMinimalEdits(e,t,n){const s=this._getModel(e);if(!s)return t;const o=[];let a;t=t.slice(0).sort((e,t)=>e.range&&t.range?r.Q.compareRangesUsingStarts(e.range,t.range):(e.range?0:1)-(t.range?0:1));let l=0;for(let e=1;e<t.length;e++)r.Q.getEndPosition(t[l].range).equals(r.Q.getStartPosition(t[e].range))?(t[l].range=r.Q.fromPositions(r.Q.getStartPosition(t[l].range),r.Q.getEndPosition(t[e].range)),t[l].text+=t[e].text):(l++,t[l]=t[e]);t.length=l+1;for(let{range:e,text:l,eol:u}of t){if("number"==typeof u&&(a=u),r.Q.isEmpty(e)&&!l)continue;const t=s.getValueInRange(e);if(l=l.replace(/\r\n|\n|\r/g,s.eol),t===l)continue;if(Math.max(l.length,t.length)>W._diffLimit){o.push({range:e,text:l});continue}const c=(0,i.F1)(t,l,n),d=s.offsetAt(r.Q.lift(e).getStartPosition());for(const e of c){const t=s.positionAt(d+e.originalStart),n=s.positionAt(d+e.originalStart+e.originalLength),i={text:l.substr(e.modifiedStart,e.modifiedLength),range:{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:n.lineNumber,endColumn:n.column}};s.getValueInRange(i.range)!==i.text&&o.push(i)}}return"number"==typeof a&&o.push({eol:a,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),o}async $computeLinks(e){const t=this._getModel(e);return t?function(e){return e&&"function"==typeof e.getLineCount&&"function"==typeof e.getLineContent?c.computeLinks(e):[]}(t):null}async $computeDefaultDocumentColors(e){const t=this._getModel(e);return t?function(e){return e&&"function"==typeof e.getValue&&"function"==typeof e.positionAt?function(e){const t=[],n=B(e,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|(#)([A-Fa-f0-9]{3})\b|(#)([A-Fa-f0-9]{4})\b|(#)([A-Fa-f0-9]{6})\b|(#)([A-Fa-f0-9]{8})\b/gm);if(n.length>0)for(const i of n){const n=i.filter(e=>void 0!==e),r=n[1],s=n[2];if(!s)continue;let o;if("rgb"===r){const t=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;o=V(P(e,i),B(s,t),!1)}else if("rgba"===r){const t=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;o=V(P(e,i),B(s,t),!0)}else if("hsl"===r){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;o=U(P(e,i),B(s,t),!1)}else if("hsla"===r){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;o=U(P(e,i),B(s,t),!0)}else"#"===r&&(o=$(P(e,i),r+s));o&&t.push(o)}return t}(e):[]}(t):null}static{this._suggestionsLimit=1e4}async $textualSuggest(e,t,n,i){const r=new p.W,s=new RegExp(n,i),o=new Set;e:for(const n of e){const e=this._getModel(n);if(e)for(const n of e.words(s))if(n!==t&&isNaN(Number(n))&&(o.add(n),o.size>W._suggestionsLimit))break e}return{words:Array.from(o),duration:r.elapsed()}}async $computeWordRanges(e,t,n,i){const r=this._getModel(e);if(!r)return Object.create(null);const s=new RegExp(n,i),o=Object.create(null);for(let e=t.startLineNumber;e<t.endLineNumber;e++){const t=r.getLineWords(e,s);for(const n of t){if(!isNaN(Number(n.word)))continue;let t=o[n.word];t||(t=[],o[n.word]=t),t.push({startLineNumber:e,startColumn:n.startColumn,endLineNumber:e,endColumn:n.endColumn})}}return o}async $navigateValueSet(e,t,n,i,r){const s=this._getModel(e);if(!s)return null;const o=new RegExp(i,r);t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1});const a=s.getValueInRange(t),l=s.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},o);if(!l)return null;const u=s.getValueInRange(l);return d.INSTANCE.navigateValueSet(t,a,l,u,n)}}class W extends q{constructor(e,t){super(),this._host=e,this._foreignModuleFactory=t,this._foreignModule=null}async $ping(){return"pong"}$loadForeignModule(e,t,i){const r={host:(0,O.kT)(i,(e,t)=>this._host.$fhr(e,t)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(r,t),Promise.resolve((0,O.V0)(this._foreignModule))):new Promise((i,s)=>{const o=e=>{this._foreignModule=e.create(r,t),i((0,O.V0)(this._foreignModule))};{const t=R.zl.asBrowserUri(`${e}.js`).toString(!0);n(59135)(`${t}`).then(o).catch(s)}})}$fmr(e,t){if(!this._foreignModule||"function"!=typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(e){return Promise.reject(e)}}}function H(e){return new W(f.EditorWorkerHost.getChannel(e),null)}"function"==typeof importScripts&&(globalThis.monaco=(0,h.createMonacoBaseAPI)())},43044:(e,t,n)=>{const{REGEX_BACKSLASH:i,REGEX_REMOVE_BACKSLASH:r,REGEX_SPECIAL_CHARS:s,REGEX_SPECIAL_CHARS_GLOBAL:o}=n(27536);t.isObject=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),t.hasRegexChars=e=>s.test(e),t.isRegexChar=e=>1===e.length&&t.hasRegexChars(e),t.escapeRegex=e=>e.replace(o,"\\$1"),t.toPosixSlashes=e=>e.replace(i,"/"),t.removeBackslashes=e=>e.replace(r,e=>"\\"===e?"":e),t.supportsLookbehinds=()=>{const e=process.version.slice(1).split(".").map(Number);return 3===e.length&&e[0]>=9||8===e[0]&&e[1]>=10},t.escapeLast=(e,n,i)=>{const r=e.lastIndexOf(n,i);return-1===r?e:"\\"===e[r-1]?t.escapeLast(e,n,r-1):`${e.slice(0,r)}\\${e.slice(r)}`},t.removePrefix=(e,t={})=>{let n=e;return n.startsWith("./")&&(n=n.slice(2),t.prefix="./"),n},t.wrapOutput=(e,t={},n={})=>{let i=`${n.contains?"":"^"}(?:${e})${n.contains?"":"$"}`;return!0===t.negated&&(i=`(?:^(?!${i}).*$)`),i},t.basename=(e,{windows:t}={})=>t?e.replace(/[\\/]$/,"").replace(/.*[\\/]/,""):e.replace(/\/$/,"").replace(/.*\//,"")},43481:(e,t,n)=>{n.r(t),n.d(t,{MirrorModel:()=>m,STOP_SYNC_MODEL_DELTA_TIME_MS:()=>h,WorkerTextModelSyncClient:()=>f,WorkerTextModelSyncServer:()=>p});var i=n(30325),r=n(32293),s=n(5839),o=n(55818),a=n(81304),l=n(58561),u=n(60891),c=n(54641);class d{constructor(e,t,n,i){this._uri=e,this._lines=t,this._eol=n,this._versionId=i,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const t=e.changes;for(const e of t)this._acceptDeleteRange(e.range),this._acceptInsertText(new o.y(e.range.startLineNumber,e.range.startColumn),e.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,t=this._lines.length,n=new Uint32Array(t);for(let i=0;i<t;i++)n[i]=this._lines[i].length+e;this._lineStarts=new c.N(n)}}_setLineText(e,t){this._lines[e]=t,this._lineStarts&&this._lineStarts.setValue(e,this._lines[e].length+this._eol.length)}_acceptDeleteRange(e){if(e.startLineNumber!==e.endLineNumber)this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.endLineNumber-1].substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(e.startLineNumber,e.endLineNumber-e.startLineNumber);else{if(e.startColumn===e.endColumn)return;this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1))}}_acceptInsertText(e,t){if(0===t.length)return;const n=(0,u.uz)(t);if(1===n.length)return void this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]+this._lines[e.lineNumber-1].substring(e.column-1));n[n.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]);const i=new Uint32Array(n.length-1);for(let t=1;t<n.length;t++)this._lines.splice(e.lineNumber+t-1,0,n[t]),i[t-1]=n[t].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,i)}}const h=6e4;class f extends r.jG{constructor(e,t,n=!1){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=e,this._modelService=t,!n){const e=new i.vb;e.cancelAndSet(()=>this._checkStopModelSync(),Math.round(h/2)),this._register(e)}}dispose(){for(const e in this._syncedModels)(0,r.AS)(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(e,t=!1){for(const n of e){const e=n.toString();this._syncedModels[e]||this._beginModelSync(n,t),this._syncedModels[e]&&(this._syncedModelsLastUsedTime[e]=(new Date).getTime())}}_checkStopModelSync(){const e=(new Date).getTime(),t=[];for(const n in this._syncedModelsLastUsedTime)e-this._syncedModelsLastUsedTime[n]>h&&t.push(n);for(const e of t)this._stopModelSync(e)}_beginModelSync(e,t){const n=this._modelService.getModel(e);if(!n)return;if(!t&&n.isTooLargeForSyncing())return;const i=e.toString();this._proxy.$acceptNewModel({url:n.uri.toString(),lines:n.getLinesContent(),EOL:n.getEOL(),versionId:n.getVersionId()});const s=new r.Cm;s.add(n.onDidChangeContent(e=>{this._proxy.$acceptModelChanged(i.toString(),e)})),s.add(n.onWillDispose(()=>{this._stopModelSync(i)})),s.add((0,r.s)(()=>{this._proxy.$acceptRemovedModel(i)})),this._syncedModels[i]=s}_stopModelSync(e){const t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],(0,r.AS)(t)}}class p{constructor(){this._models=Object.create(null)}getModel(e){return this._models[e]}getModels(){const e=[];return Object.keys(this._models).forEach(t=>e.push(this._models[t])),e}$acceptNewModel(e){this._models[e.url]=new m(s.r.parse(e.url),e.lines,e.EOL,e.versionId)}$acceptModelChanged(e,t){this._models[e]&&this._models[e].onEvents(t)}$acceptRemovedModel(e){this._models[e]&&delete this._models[e]}}class m extends d{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){const t=[];for(let n=0;n<this._lines.length;n++){const i=this._lines[n],r=this.offsetAt(new o.y(n+1,1)),s=i.matchAll(e);for(const e of s)(e.index||0===e.index)&&(e.index=e.index+r),t.push(e)}return t}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(e){return this._lines[e-1]}getWordAtPosition(e,t){const n=(0,l.Th)(e.column,(0,l.Io)(t),this._lines[e.lineNumber-1],0);return n?new a.Q(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null}words(e){const t=this._lines,n=this._wordenize.bind(this);let i=0,r="",s=0,o=[];return{*[Symbol.iterator](){for(;;)if(s<o.length){const e=r.substring(o[s].start,o[s].end);s+=1,yield e}else{if(!(i<t.length))break;r=t[i],o=n(r,e),s=0,i+=1}}}}getLineWords(e,t){const n=this._lines[e-1],i=this._wordenize(n,t),r=[];for(const e of i)r.push({word:n.substring(e.start,e.end),startColumn:e.start+1,endColumn:e.end+1});return r}_wordenize(e,t){const n=[];let i;for(t.lastIndex=0;(i=t.exec(e))&&0!==i[0].length;)n.push({start:i.index,end:i.index+i[0].length});return n}getValueInRange(e){if((e=this._validateRange(e)).startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);const t=this._eol,n=e.startLineNumber-1,i=e.endLineNumber-1,r=[];r.push(this._lines[n].substring(e.startColumn-1));for(let e=n+1;e<i;e++)r.push(this._lines[e]);return r.push(this._lines[i].substring(0,e.endColumn-1)),r.join(t)}offsetAt(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getPrefixSum(e.lineNumber-2)+(e.column-1)}positionAt(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();const t=this._lineStarts.getIndexOf(e),n=this._lines[t.index].length;return{lineNumber:1+t.index,column:1+Math.min(t.remainder,n)}}_validateRange(e){const t=this._validatePosition({lineNumber:e.startLineNumber,column:e.startColumn}),n=this._validatePosition({lineNumber:e.endLineNumber,column:e.endColumn});return t.lineNumber!==e.startLineNumber||t.column!==e.startColumn||n.lineNumber!==e.endLineNumber||n.column!==e.endColumn?{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:n.lineNumber,endColumn:n.column}:e}_validatePosition(e){if(!o.y.isIPosition(e))throw new Error("bad position");let{lineNumber:t,column:n}=e,i=!1;if(t<1)t=1,n=1,i=!0;else if(t>this._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,i=!0;else{const e=this._lines[t-1].length+1;n<1?(n=1,i=!0):n>e&&(n=e,i=!0)}return i?{lineNumber:t,column:n}:e}}},43960:(e,t,n)=>{n.d(t,{WL:()=>l,q6:()=>h,wm:()=>d});var i=n(73226),r=n(81394),s=n(55818),o=n(81304),a=n(68354);class l{static inverse(e,t,n){const i=[];let s=1,o=1;for(const t of e){const e=new l(new r.M(s,t.original.startLineNumber),new r.M(o,t.modified.startLineNumber));e.modified.isEmpty||i.push(e),s=t.original.endLineNumberExclusive,o=t.modified.endLineNumberExclusive}const a=new l(new r.M(s,t+1),new r.M(o,n+1));return a.modified.isEmpty||i.push(a),i}static clip(e,t,n){const i=[];for(const r of e){const e=r.original.intersect(t),s=r.modified.intersect(n);e&&!e.isEmpty&&s&&!s.isEmpty&&i.push(new l(e,s))}return i}constructor(e,t){this.original=e,this.modified=t}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new l(this.modified,this.original)}join(e){return new l(this.original.join(e.original),this.modified.join(e.modified))}toRangeMapping(){const e=this.original.toInclusiveRange(),t=this.modified.toInclusiveRange();if(e&&t)return new h(e,t);if(1===this.original.startLineNumber||1===this.modified.startLineNumber){if(1!==this.modified.startLineNumber||1!==this.original.startLineNumber)throw new i.D7("not a valid diff");return new h(new o.Q(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new o.Q(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}return new h(new o.Q(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new o.Q(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}toRangeMapping2(e,t){if(c(this.original.endLineNumberExclusive,e)&&c(this.modified.endLineNumberExclusive,t))return new h(new o.Q(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new o.Q(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1));if(!this.original.isEmpty&&!this.modified.isEmpty)return new h(o.Q.fromPositions(new s.y(this.original.startLineNumber,1),u(new s.y(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),o.Q.fromPositions(new s.y(this.modified.startLineNumber,1),u(new s.y(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)));if(this.original.startLineNumber>1&&this.modified.startLineNumber>1)return new h(o.Q.fromPositions(u(new s.y(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER),e),u(new s.y(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),o.Q.fromPositions(u(new s.y(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER),t),u(new s.y(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)));throw new i.D7}}function u(e,t){if(e.lineNumber<1)return new s.y(1,1);if(e.lineNumber>t.length)return new s.y(t.length,t[t.length-1].length+1);const n=t[e.lineNumber-1];return e.column>n.length+1?new s.y(e.lineNumber,n.length+1):e}function c(e,t){return e>=1&&e<=t.length}class d extends l{static fromRangeMappings(e){const t=r.M.join(e.map(e=>r.M.fromRangeInclusive(e.originalRange))),n=r.M.join(e.map(e=>r.M.fromRangeInclusive(e.modifiedRange)));return new d(t,n,e)}constructor(e,t,n){super(e,t),this.innerChanges=n}flip(){return new d(this.modified,this.original,this.innerChanges?.map(e=>e.flip()))}withInnerChangesFromLineRanges(){return new d(this.original,this.modified,[this.toRangeMapping()])}}class h{static assertSorted(e){for(let t=1;t<e.length;t++){const n=e[t-1],r=e[t];if(!n.originalRange.getEndPosition().isBeforeOrEqual(r.originalRange.getStartPosition())||!n.modifiedRange.getEndPosition().isBeforeOrEqual(r.modifiedRange.getStartPosition()))throw new i.D7("Range mappings must be sorted")}}constructor(e,t){this.originalRange=e,this.modifiedRange=t}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new h(this.modifiedRange,this.originalRange)}toTextEdit(e){const t=e.getValueOfRange(this.modifiedRange);return new a.WR(this.originalRange,t)}}},51753:(e,t,n)=>{n.d(t,{rY:()=>E,ou:()=>b,dG:()=>T,OB:()=>S});var i=n(36972),r=(n(5839),n(22573)),s=n(32293);class o{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new r.vl,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,t){return this._tokenizationSupports.set(e,t),this.handleChange([e]),(0,s.s)(()=>{this._tokenizationSupports.get(e)===t&&(this._tokenizationSupports.delete(e),this.handleChange([e]))})}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,t){this._factories.get(e)?.dispose();const n=new a(this,e,t);return this._factories.set(e,n),(0,s.s)(()=>{const t=this._factories.get(e);t&&t===n&&(this._factories.delete(e),t.dispose())})}async getOrCreate(e){const t=this.get(e);if(t)return t;const n=this._factories.get(e);return!n||n.isResolved?null:(await n.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;const t=this._factories.get(e);return!(t&&!t.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}class a extends s.jG{get isResolved(){return this._isResolved}constructor(e,t,n){super(),this._registry=e,this._languageId=t,this._factory=n,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const e=await this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}}var l,u,c,d,h,f,p,m,g,v,y,_=n(12003);class b{constructor(e,t,n){this.offset=e,this.type=t,this.language=n,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}class E{constructor(e,t){this.tokens=e,this.endState=t,this._encodedTokenizationResultBrand=void 0}}!function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(l||(l={})),function(e){const t=new Map;t.set(0,i.W.symbolMethod),t.set(1,i.W.symbolFunction),t.set(2,i.W.symbolConstructor),t.set(3,i.W.symbolField),t.set(4,i.W.symbolVariable),t.set(5,i.W.symbolClass),t.set(6,i.W.symbolStruct),t.set(7,i.W.symbolInterface),t.set(8,i.W.symbolModule),t.set(9,i.W.symbolProperty),t.set(10,i.W.symbolEvent),t.set(11,i.W.symbolOperator),t.set(12,i.W.symbolUnit),t.set(13,i.W.symbolValue),t.set(15,i.W.symbolEnum),t.set(14,i.W.symbolConstant),t.set(15,i.W.symbolEnum),t.set(16,i.W.symbolEnumMember),t.set(17,i.W.symbolKeyword),t.set(27,i.W.symbolSnippet),t.set(18,i.W.symbolText),t.set(19,i.W.symbolColor),t.set(20,i.W.symbolFile),t.set(21,i.W.symbolReference),t.set(22,i.W.symbolCustomColor),t.set(23,i.W.symbolFolder),t.set(24,i.W.symbolTypeParameter),t.set(25,i.W.account),t.set(26,i.W.issues),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for CompletionItemKind "+e),n=i.W.symbolProperty),n};const n=new Map;n.set("method",0),n.set("function",1),n.set("constructor",2),n.set("field",3),n.set("variable",4),n.set("class",5),n.set("struct",6),n.set("interface",7),n.set("module",8),n.set("property",9),n.set("event",10),n.set("operator",11),n.set("unit",12),n.set("value",13),n.set("constant",14),n.set("enum",15),n.set("enum-member",16),n.set("enumMember",16),n.set("keyword",17),n.set("snippet",27),n.set("text",18),n.set("color",19),n.set("file",20),n.set("reference",21),n.set("customcolor",22),n.set("folder",23),n.set("type-parameter",24),n.set("typeParameter",24),n.set("account",25),n.set("issue",26),e.fromString=function(e,t){let i=n.get(e);return void 0!==i||t||(i=9),i}}(u||(u={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(c||(c={})),function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"}(d||(d={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(h||(h={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(f||(f={})),(0,_.kg)("Array","array"),(0,_.kg)("Boolean","boolean"),(0,_.kg)("Class","class"),(0,_.kg)("Constant","constant"),(0,_.kg)("Constructor","constructor"),(0,_.kg)("Enum","enumeration"),(0,_.kg)("EnumMember","enumeration member"),(0,_.kg)("Event","event"),(0,_.kg)("Field","field"),(0,_.kg)("File","file"),(0,_.kg)("Function","function"),(0,_.kg)("Interface","interface"),(0,_.kg)("Key","key"),(0,_.kg)("Method","method"),(0,_.kg)("Module","module"),(0,_.kg)("Namespace","namespace"),(0,_.kg)("Null","null"),(0,_.kg)("Number","number"),(0,_.kg)("Object","object"),(0,_.kg)("Operator","operator"),(0,_.kg)("Package","package"),(0,_.kg)("Property","property"),(0,_.kg)("String","string"),(0,_.kg)("Struct","struct"),(0,_.kg)("TypeParameter","type parameter"),(0,_.kg)("Variable","variable"),function(e){const t=new Map;t.set(0,i.W.symbolFile),t.set(1,i.W.symbolModule),t.set(2,i.W.symbolNamespace),t.set(3,i.W.symbolPackage),t.set(4,i.W.symbolClass),t.set(5,i.W.symbolMethod),t.set(6,i.W.symbolProperty),t.set(7,i.W.symbolField),t.set(8,i.W.symbolConstructor),t.set(9,i.W.symbolEnum),t.set(10,i.W.symbolInterface),t.set(11,i.W.symbolFunction),t.set(12,i.W.symbolVariable),t.set(13,i.W.symbolConstant),t.set(14,i.W.symbolString),t.set(15,i.W.symbolNumber),t.set(16,i.W.symbolBoolean),t.set(17,i.W.symbolArray),t.set(18,i.W.symbolObject),t.set(19,i.W.symbolKey),t.set(20,i.W.symbolNull),t.set(21,i.W.symbolEnumMember),t.set(22,i.W.symbolStruct),t.set(23,i.W.symbolEvent),t.set(24,i.W.symbolOperator),t.set(25,i.W.symbolTypeParameter),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for SymbolKind "+e),n=i.W.symbolProperty),n}}(p||(p={}));class N{static{this.Comment=new N("comment")}static{this.Imports=new N("imports")}static{this.Region=new N("region")}static fromValue(e){switch(e){case"comment":return N.Comment;case"imports":return N.Imports;case"region":return N.Region}return new N(e)}constructor(e){this.value=e}}!function(e){e[e.AIGenerated=1]="AIGenerated"}(m||(m={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(g||(g={})),function(e){e.is=function(e){return!(!e||"object"!=typeof e)&&"string"==typeof e.id&&"string"==typeof e.title}}(v||(v={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(y||(y={}));const T=new o,S=new o;var k;!function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(k||(k={}))},53334:(e,t,n)=>{n.d(t,{W:()=>s});var i=n(55818),r=n(81304);class s{static{this.zero=new s(0,0)}static betweenPositions(e,t){return e.lineNumber===t.lineNumber?new s(0,t.column-e.column):new s(t.lineNumber-e.lineNumber,t.column-1)}static ofRange(e){return s.betweenPositions(e.getStartPosition(),e.getEndPosition())}static ofText(e){let t=0,n=0;for(const i of e)"\n"===i?(t++,n=0):n++;return new s(t,n)}constructor(e,t){this.lineCount=e,this.columnCount=t}isGreaterThanOrEqualTo(e){return this.lineCount!==e.lineCount?this.lineCount>e.lineCount:this.columnCount>=e.columnCount}createRange(e){return 0===this.lineCount?new r.Q(e.lineNumber,e.column,e.lineNumber,e.column+this.columnCount):new r.Q(e.lineNumber,e.column,e.lineNumber+this.lineCount,this.columnCount+1)}addToPosition(e){return 0===this.lineCount?new i.y(e.lineNumber,e.column+this.columnCount):new i.y(e.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}}},54641:(e,t,n)=>{n.d(t,{N:()=>r}),n(6995);var i=n(88477);class r{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=(0,i.j)(e);const n=this.values,r=this.prefixSum,s=t.length;return 0!==s&&(this.values=new Uint32Array(n.length+s),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+s),this.values.set(t,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,t){return e=(0,i.j)(e),t=(0,i.j)(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,t){e=(0,i.j)(e),t=(0,i.j)(t);const n=this.values,r=this.prefixSum;if(e>=n.length)return!1;const s=n.length-e;return t>=s&&(t=s),0!==t&&(this.values=new Uint32Array(n.length-t),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=(0,i.j)(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let n=t;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let t=0,n=this.values.length-1,i=0,r=0,o=0;for(;t<=n;)if(i=t+(n-t)/2|0,r=this.prefixSum[i],o=r-this.values[i],e<o)n=i-1;else{if(!(e>=r))break;t=i+1}return new s(i,e-o)}}class s{constructor(e,t){this.index=e,this.remainder=t,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=t}}},54835:(e,t,n)=>{n.d(t,{ny:()=>i,v$:()=>u,zl:()=>h});var i,r=n(73226),s=n(69958),o=n(60891),a=n(5839),l=n(60942);function u(e,t){return a.r.isUri(e)?(0,o.Q_)(e.scheme,t):(0,o.ns)(e,t+":")}!function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote",e.vscodeRemoteResource="vscode-remote-resource",e.vscodeManagedRemoteResource="vscode-managed-remote-resource",e.vscodeUserData="vscode-userdata",e.vscodeCustomEditor="vscode-custom-editor",e.vscodeNotebookCell="vscode-notebook-cell",e.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",e.vscodeNotebookCellMetadataDiff="vscode-notebook-cell-metadata-diff",e.vscodeNotebookCellOutput="vscode-notebook-cell-output",e.vscodeNotebookCellOutputDiff="vscode-notebook-cell-output-diff",e.vscodeNotebookMetadata="vscode-notebook-metadata",e.vscodeInteractiveInput="vscode-interactive-input",e.vscodeSettings="vscode-settings",e.vscodeWorkspaceTrust="vscode-workspace-trust",e.vscodeTerminal="vscode-terminal",e.vscodeChatCodeBlock="vscode-chat-code-block",e.vscodeChatCodeCompareBlock="vscode-chat-code-compare-block",e.vscodeChatSesssion="vscode-chat-editor",e.webviewPanel="webview-panel",e.vscodeWebview="vscode-webview",e.extension="extension",e.vscodeFileResource="vscode-file",e.tmp="tmp",e.vsls="vsls",e.vscodeSourceControl="vscode-scm",e.commentsInput="comment",e.codeSetting="code-setting",e.outputChannel="output"}(i||(i={}));const c=new class{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(e){this._preferredWebSchema=e}get _remoteResourcesPath(){return l.SA.join(this._serverRootPath,i.vscodeRemoteResource)}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(t){return r.dz(t),e}const t=e.authority;let n=this._hosts[t];n&&-1!==n.indexOf(":")&&-1===n.indexOf("[")&&(n=`[${n}]`);const o=this._ports[t],l=this._connectionTokens[t];let u=`path=${encodeURIComponent(e.path)}`;return"string"==typeof l&&(u+=`&tkn=${encodeURIComponent(l)}`),a.r.from({scheme:s.HZ?this._preferredWebSchema:i.vscodeRemoteResource,authority:`${n}:${o}`,path:this._remoteResourcesPath,query:u})}};class d{static{this.FALLBACK_AUTHORITY="vscode-app"}asBrowserUri(e){const t=this.toUri(e);return this.uriToBrowserUri(t)}uriToBrowserUri(e){return e.scheme===i.vscodeRemote?c.rewrite(e):e.scheme!==i.file||!s.ib&&s.lg!==`${i.vscodeFileResource}://${d.FALLBACK_AUTHORITY}`?e:e.with({scheme:i.vscodeFileResource,authority:e.authority||d.FALLBACK_AUTHORITY,query:null,fragment:null})}toUri(e,t){if(a.r.isUri(e))return e;if(globalThis._VSCODE_FILE_ROOT){const t=globalThis._VSCODE_FILE_ROOT;if(/^\w[\w\d+.-]*:\/\//.test(t))return a.r.joinPath(a.r.parse(t,!0),e);const n=l.fj(t,e);return a.r.file(n)}return a.r.parse(t.toUrl(e))}}const h=new d;var f;!function(e){const t=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);e.CoopAndCoep=Object.freeze(t.get("3"));const n="vscode-coi";e.getHeadersFromQuery=function(e){let i;"string"==typeof e?i=new URL(e).searchParams:e instanceof URL?i=e.searchParams:a.r.isUri(e)&&(i=new URL(e.toString(!0)).searchParams);const r=i?.get(n);if(r)return t.get(r)},e.addSearchParam=function(e,t,i){if(!globalThis.crossOriginIsolated)return;const r=t&&i?"3":i?"2":"1";e instanceof URLSearchParams?e.set(n,r):e[n]=r}}(f||(f={}))},55003:(e,t,n)=>{n.d(t,{d:()=>i});class i{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}},55818:(e,t,n)=>{n.d(t,{y:()=>i});class i{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new i(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return i.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return i.isBefore(this,e)}static isBefore(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column}isBeforeOrEqual(e){return i.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column}static compare(e,t){const n=0|e.lineNumber,i=0|t.lineNumber;return n===i?(0|e.column)-(0|t.column):n-i}clone(){return new i(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new i(e.lineNumber,e.column)}static isIPosition(e){return e&&"number"==typeof e.lineNumber&&"number"==typeof e.column}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}}},55833:(e,t,n)=>{n.d(t,{k:()=>s});var i=n(69708);const r=Object.create(null);function s(e,t){if((0,i.Kg)(t)){const n=r[t];if(void 0===n)throw new Error(`${e} references an unknown codicon: ${t}`);t=n}return r[e]=t,{id:e}}},58053:(e,t,n)=>{n.d(t,{e2:()=>o,sN:()=>r,v7:()=>c});var i=n(60891);function r(e,t){switch(typeof e){case"object":return null===e?s(349,t):Array.isArray(e)?(n=e,i=s(104579,i=t),n.reduce((e,t)=>r(t,e),i)):function(e,t){return t=s(181387,t),Object.keys(e).sort().reduce((t,n)=>(t=o(n,t),r(e[n],t)),t)}(e,t);case"string":return o(e,t);case"boolean":return function(e,t){return s(e?433:863,t)}(e,t);case"number":return s(e,t);case"undefined":return s(937,t);default:return s(617,t)}var n,i}function s(e,t){return(t<<5)-t+e|0}function o(e,t){t=s(149417,t);for(let n=0,i=e.length;n<i;n++)t=s(e.charCodeAt(n),t);return t}function a(e,t,n=32){const i=n-t;return(e<<t|(~((1<<i)-1)&e)>>>i)>>>0}function l(e,t=0,n=e.byteLength,i=0){for(let r=0;r<n;r++)e[t+r]=i}function u(e,t=32){return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map(e=>e.toString(16).padStart(2,"0")).join(""):function(e,t,n="0"){for(;e.length<t;)e=n+e;return e}((e>>>0).toString(16),t/4)}class c{static{this._bigBlock32=new DataView(new ArrayBuffer(320))}constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(0===t)return;const n=this._buff;let r,s,o=this._buffLen,a=this._leftoverHighSurrogate;for(0!==a?(r=a,s=-1,a=0):(r=e.charCodeAt(0),s=0);;){let l=r;if(i.pc(r)){if(!(s+1<t)){a=r;break}{const t=e.charCodeAt(s+1);i.LJ(t)?(s++,l=i.z_(r,t)):l=65533}}else i.LJ(r)&&(l=65533);if(o=this._push(n,o,l),s++,!(s<t))break;r=e.charCodeAt(s)}this._buffLen=o,this._leftoverHighSurrogate=a}_push(e,t,n){return n<128?e[t++]=n:n<2048?(e[t++]=192|(1984&n)>>>6,e[t++]=128|(63&n)>>>0):n<65536?(e[t++]=224|(61440&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0):(e[t++]=240|(1835008&n)>>>18,e[t++]=128|(258048&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),u(this._h0)+u(this._h1)+u(this._h2)+u(this._h3)+u(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,l(this._buff,this._buffLen),this._buffLen>56&&(this._step(),l(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=c._bigBlock32,t=this._buffDV;for(let n=0;n<64;n+=4)e.setUint32(n,t.getUint32(n,!1),!1);for(let t=64;t<320;t+=4)e.setUint32(t,a(e.getUint32(t-12,!1)^e.getUint32(t-32,!1)^e.getUint32(t-56,!1)^e.getUint32(t-64,!1),1),!1);let n,i,r,s=this._h0,o=this._h1,l=this._h2,u=this._h3,d=this._h4;for(let t=0;t<80;t++)t<20?(n=o&l|~o&u,i=1518500249):t<40?(n=o^l^u,i=1859775393):t<60?(n=o&l|o&u|l&u,i=2400959708):(n=o^l^u,i=3395469782),r=a(s,5)+n+d+i+e.getUint32(4*t,!1)&4294967295,d=u,u=l,l=a(o,30),o=s,s=r;this._h0=this._h0+s&4294967295,this._h1=this._h1+o&4294967295,this._h2=this._h2+l&4294967295,this._h3=this._h3+u&4294967295,this._h4=this._h4+d&4294967295}}},58518:(e,t,n)=>{n.d(t,{m5:()=>m});class i{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const r=new i,s=new i,o=new i,a=new Array(230),l={},u=[],c=Object.create(null),d=Object.create(null),h=[],f=[];for(let e=0;e<=193;e++)h[e]=-1;for(let e=0;e<=132;e++)f[e]=-1;var p;function m(e,t){return(e|(65535&t)<<16>>>0)>>>0}!function(){const e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,e,0,e,e,e],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],n=[],i=[];for(const e of t){const[t,p,m,g,v,y,_,b,E]=e;if(i[p]||(i[p]=!0,u[p]=m,c[m]=p,d[m.toLowerCase()]=p,t&&(h[p]=g,0!==g&&3!==g&&5!==g&&4!==g&&6!==g&&57!==g&&(f[g]=p))),!n[g]){if(n[g]=!0,!v)throw new Error(`String representation missing for key code ${g} around scan code ${m}`);r.define(g,v),s.define(g,b||v),o.define(g,E||b||v)}y&&(a[y]=g),_&&(l[_]=g)}f[3]=46}(),function(e){e.toString=function(e){return r.keyCodeToStr(e)},e.fromString=function(e){return r.strToKeyCode(e)},e.toUserSettingsUS=function(e){return s.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return o.keyCodeToStr(e)},e.fromUserSettings=function(e){return s.strToKeyCode(e)||o.strToKeyCode(e)},e.toElectronAccelerator=function(e){if(e>=98&&e<=113)return null;switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return r.keyCodeToStr(e)}}(p||(p={}))},58561:(e,t,n)=>{n.d(t,{Io:()=>o,Ld:()=>s,Th:()=>l});var i=n(73179),r=n(70092);const s=function(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const n of"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?")e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}();function o(e){let t=s;if(e&&e instanceof RegExp)if(e.global)t=e;else{let n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}const a=new r.w;function l(e,t,n,r,s){if(t=o(t),s||(s=i.f.first(a)),n.length>s.maxLen){let i=e-s.maxLen/2;return i<0?i=0:r+=i,l(e,t,n=n.substring(i,e+s.maxLen/2),r,s)}const c=Date.now(),d=e-1-r;let h=-1,f=null;for(let e=1;!(Date.now()-c>=s.timeBudget);e++){const i=d-s.windowSize*e;t.lastIndex=Math.max(0,i);const r=u(t,n,d,h);if(!r&&f)break;if(f=r,i<=0)break;h=i}if(f){const e={word:f[0],startColumn:r+1+f.index,endColumn:r+1+f.index+f[0].length};return t.lastIndex=0,e}return null}function u(e,t,n,i){let r;for(;r=e.exec(t);){const t=r.index||0;if(t<=n&&e.lastIndex>=n)return r;if(i>0&&t>i)return null}return null}a.unshift({maxLen:1e3,windowSize:15,timeBudget:150})},59135:(e,t,n)=>{var i={"./editorBaseApi":[37970],"./editorBaseApi.js":[37970],"./editorSimpleWorker":[41122],"./editorSimpleWorker.js":[41122],"./editorWorker":[22143,2143],"./editorWorker.js":[22143,2143],"./editorWorkerHost":[70869],"./editorWorkerHost.js":[70869],"./findSectionHeaders":[97716],"./findSectionHeaders.js":[97716],"./getIconClasses":[45555,1613,5555],"./getIconClasses.js":[45555,1613,5555],"./languageFeatureDebounce":[26973,9570,6973],"./languageFeatureDebounce.js":[26973,9570,6973],"./languageFeatures":[33653,3653],"./languageFeatures.js":[33653,3653],"./languageFeaturesService":[50022,6611,5198],"./languageFeaturesService.js":[50022,6611,5198],"./languageService":[22155,1613,6611,2155,6610],"./languageService.js":[22155,1613,6611,2155,6610],"./languagesAssociations":[25709,1613,6611,5709],"./languagesAssociations.js":[25709,1613,6611,5709],"./languagesRegistry":[35074,1613,6611,5074],"./languagesRegistry.js":[35074,1613,6611,5074],"./markerDecorations":[86259,6259],"./markerDecorations.js":[86259,6259],"./markerDecorationsService":[72524,1237,226,6828],"./markerDecorationsService.js":[72524,1237,226,6828],"./model":[16911,6911],"./model.js":[16911,6911],"./modelService":[91320,1613,1237,1320,226,8549],"./modelService.js":[91320,1613,1237,1320,226,8549],"./resolverService":[55387,5387],"./resolverService.js":[55387,5387],"./semanticTokensDto":[7029,7029],"./semanticTokensDto.js":[7029,7029],"./semanticTokensProviderStyling":[4399,9570,4399,3658],"./semanticTokensProviderStyling.js":[4399,9570,4399,3658],"./semanticTokensStyling":[74566,4566],"./semanticTokensStyling.js":[74566,4566],"./semanticTokensStylingService":[28843,9570,4399,1853],"./semanticTokensStylingService.js":[28843,9570,4399,1853],"./textModelSync/textModelSync.impl":[43481],"./textModelSync/textModelSync.impl.js":[43481],"./textModelSync/textModelSync.protocol":[37619,7619],"./textModelSync/textModelSync.protocol.js":[37619,7619],"./textResourceConfiguration":[93533,3533],"./textResourceConfiguration.js":[93533,3533],"./treeSitterParserService":[47105,7105],"./treeSitterParserService.js":[47105,7105],"./treeViewsDnd":[29740,9740],"./treeViewsDnd.js":[29740,9740],"./treeViewsDndService":[95621,5621],"./treeViewsDndService.js":[95621,5621],"./unicodeTextModelHighlighter":[14818],"./unicodeTextModelHighlighter.js":[14818]};function r(e){if(!n.o(i,e))return Promise.resolve().then(()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=i[e],r=t[0];return Promise.all(t.slice(1).map(n.e)).then(()=>n(r))}r.keys=()=>Object.keys(i),r.id=59135,e.exports=r},60891:(e,t,n)=>{n.d(t,{$X:()=>O,AV:()=>s,E_:()=>L,HG:()=>h,LJ:()=>N,LU:()=>F,NB:()=>l,OS:()=>u,Q_:()=>_,Ss:()=>D,UD:()=>p,Wv:()=>y,Z5:()=>S,_J:()=>x,aC:()=>I,bm:()=>a,eY:()=>c,jy:()=>o,km:()=>C,lT:()=>f,ne:()=>R,ns:()=>b,pc:()=>E,r_:()=>M,tk:()=>P,tl:()=>U,uz:()=>d,y_:()=>B,z_:()=>T});var i=n(97747),r=n(55003);function s(e){return!e||"string"!=typeof e||0===e.trim().length}function o(e){return e.replace(/[<>"'&]/g,e=>{switch(e){case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case"'":return"&apos;";case"&":return"&amp;"}return e})}function a(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function l(e,t){if(!e||!t)return e;const n=t.length;if(0===n||0===e.length)return e;let i=0;for(;e.indexOf(t,i)===i;)i+=n;return e.substring(i)}function u(e,t,n={}){if(!e)throw new Error("Cannot create regex from empty string");t||(e=a(e)),n.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));let i="";return n.global&&(i+="g"),n.matchCase||(i+="i"),n.multiline&&(i+="m"),n.unicode&&(i+="u"),new RegExp(e,i)}function c(e){return"^"!==e.source&&"^$"!==e.source&&"$"!==e.source&&"^\\s*$"!==e.source&&!(!e.exec("")||0!==e.lastIndex)}function d(e){return e.split(/\r\n|\r|\n/)}function h(e){for(let t=0,n=e.length;t<n;t++){const n=e.charCodeAt(t);if(32!==n&&9!==n)return t}return-1}function f(e,t=e.length-1){for(let n=t;n>=0;n--){const t=e.charCodeAt(n);if(32!==t&&9!==t)return n}return-1}function p(e,t){return e<t?-1:e>t?1:0}function m(e,t,n=0,i=e.length,r=0,s=t.length){for(;n<i&&r<s;n++,r++){const i=e.charCodeAt(n),s=t.charCodeAt(r);if(i<s)return-1;if(i>s)return 1}const o=i-n,a=s-r;return o<a?-1:o>a?1:0}function g(e,t,n=0,i=e.length,r=0,s=t.length){for(;n<i&&r<s;n++,r++){let o=e.charCodeAt(n),a=t.charCodeAt(r);if(o===a)continue;if(o>=128||a>=128)return m(e.toLowerCase(),t.toLowerCase(),n,i,r,s);v(o)&&(o-=32),v(a)&&(a-=32);const l=o-a;if(0!==l)return l}const o=i-n,a=s-r;return o<a?-1:o>a?1:0}function v(e){return e>=97&&e<=122}function y(e){return e>=65&&e<=90}function _(e,t){return e.length===t.length&&0===g(e,t)}function b(e,t){const n=t.length;return!(t.length>e.length)&&0===g(e,t,0,n)}function E(e){return 55296<=e&&e<=56319}function N(e){return 56320<=e&&e<=57343}function T(e,t){return t-56320+(e-55296<<10)+65536}function S(e,t,n){const i=e.charCodeAt(n);if(E(i)&&n+1<t){const t=e.charCodeAt(n+1);if(N(t))return T(i,t)}return i}class k{get offset(){return this._offset}constructor(e,t=0){this._str=e,this._len=e.length,this._offset=t}setOffset(e){this._offset=e}prevCodePoint(){const e=function(e,t){const n=e.charCodeAt(t-1);if(N(n)&&t>1){const i=e.charCodeAt(t-2);if(E(i))return T(i,n)}return n}(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=S(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class C{get offset(){return this._iterator.offset}constructor(e,t=0){this._iterator=new k(e,t)}nextGraphemeLength(){const e=V.getInstance(),t=this._iterator,n=t.offset;let i=e.getGraphemeBreakType(t.nextCodePoint());for(;!t.eol();){const n=t.offset,r=e.getGraphemeBreakType(t.nextCodePoint());if($(i,r)){t.setOffset(n);break}i=r}return t.offset-n}prevGraphemeLength(){const e=V.getInstance(),t=this._iterator,n=t.offset;let i=e.getGraphemeBreakType(t.prevCodePoint());for(;t.offset>0;){const n=t.offset,r=e.getGraphemeBreakType(t.prevCodePoint());if($(r,i)){t.setOffset(n);break}i=r}return n-t.offset}eol(){return this._iterator.eol()}}let w;function L(e){return w||(w=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/),w.test(e)}const A=/^[\t\n\r\x20-\x7E]*$/;function I(e){return A.test(e)}const x=/[\u2028\u2029]/;function O(e){return x.test(e)}function R(e){return e>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function D(e){return e>=127462&&e<=127487||8986===e||8987===e||9200===e||9203===e||e>=9728&&e<=10175||11088===e||11093===e||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129008||e>=129280&&e<=129535||e>=129648&&e<=129782}const M=String.fromCharCode(65279);function F(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function P(e){return(e%=52)<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)}function $(e,t){return 0===e?5!==t&&7!==t:!(2===e&&3===t||4!==e&&2!==e&&3!==e&&4!==t&&2!==t&&3!==t&&(8===e&&(8===t||9===t||11===t||12===t)||!(11!==e&&9!==e||9!==t&&10!==t)||(12===e||10===e)&&10===t||5===t||13===t||7===t||1===e||13===e&&14===t||6===e&&6===t))}class V{static{this._INSTANCE=null}static getInstance(){return V._INSTANCE||(V._INSTANCE=new V),V._INSTANCE}constructor(){this._data=JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;const t=this._data,n=t.length/3;let i=1;for(;i<=n;)if(e<t[3*i])i*=2;else{if(!(e>t[3*i+1]))return t[3*i+2];i=2*i+1}return 0}}class U{static{this.ambiguousCharacterData=new r.d(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}'))}static{this.cache=new i.o5({getCacheKey:JSON.stringify},e=>{function t(e){const t=new Map;for(let n=0;n<e.length;n+=2)t.set(e[n],e[n+1]);return t}function n(e,t){if(!e)return t;const n=new Map;for(const[i,r]of e)t.has(i)&&n.set(i,r);return n}const i=this.ambiguousCharacterData.value;let r,s=e.filter(e=>!e.startsWith("_")&&e in i);0===s.length&&(s=["_default"]);for(const e of s)r=n(r,t(i[e]));const o=function(e,t){const n=new Map(e);for(const[e,i]of t)n.set(e,i);return n}(t(i._common),r);return new U(o)})}static getInstance(e){return U.cache.get(Array.from(e))}static{this._locales=new r.d(()=>Object.keys(U.ambiguousCharacterData.value).filter(e=>!e.startsWith("_")))}static getLocales(){return U._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}class B{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static{this._data=void 0}static getData(){return this._data||(this._data=new Set(B.getRawData())),this._data}static isInvisibleCharacter(e){return B.getData().has(e)}static get codePoints(){return B.getData()}}},60942:(e,t,n)=>{n.d(t,{IN:()=>g,LC:()=>k,P8:()=>S,S8:()=>_,SA:()=>y,V8:()=>N,Vn:()=>C,fj:()=>b,hd:()=>E,pD:()=>T});var i=n(8144);const r=46,s=47,o=92,a=58;class l extends Error{constructor(e,t,n){let i;"string"==typeof t&&0===t.indexOf("not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";const r=-1!==e.indexOf(".")?"property":"argument";let s=`The "${e}" ${r} ${i} of type ${t}`;s+=". Received type "+typeof n,super(s),this.code="ERR_INVALID_ARG_TYPE"}}function u(e,t){if("string"!=typeof e)throw new l(t,"string",e)}const c="win32"===i.iD;function d(e){return e===s||e===o}function h(e){return e===s}function f(e){return e>=65&&e<=90||e>=97&&e<=122}function p(e,t,n,i){let o="",a=0,l=-1,u=0,c=0;for(let d=0;d<=e.length;++d){if(d<e.length)c=e.charCodeAt(d);else{if(i(c))break;c=s}if(i(c)){if(l===d-1||1===u);else if(2===u){if(o.length<2||2!==a||o.charCodeAt(o.length-1)!==r||o.charCodeAt(o.length-2)!==r){if(o.length>2){const e=o.lastIndexOf(n);-1===e?(o="",a=0):(o=o.slice(0,e),a=o.length-1-o.lastIndexOf(n)),l=d,u=0;continue}if(0!==o.length){o="",a=0,l=d,u=0;continue}}t&&(o+=o.length>0?`${n}..`:"..",a=2)}else o.length>0?o+=`${n}${e.slice(l+1,d)}`:o=e.slice(l+1,d),a=d-l-1;l=d,u=0}else c===r&&-1!==u?++u:u=-1}return o}function m(e,t){!function(e){if(null===e||"object"!=typeof e)throw new l("pathObject","Object",e)}(t);const n=t.dir||t.root,i=t.base||`${t.name||""}${r=t.ext,r?`${"."===r[0]?"":"."}${r}`:""}`;var r;return n?n===t.root?`${n}${i}`:`${n}${e}${i}`:i}const g={resolve(...e){let t="",n="",r=!1;for(let s=e.length-1;s>=-1;s--){let l;if(s>=0){if(l=e[s],u(l,`paths[${s}]`),0===l.length)continue}else 0===t.length?l=i.bJ():(l=i._K[`=${t}`]||i.bJ(),(void 0===l||l.slice(0,2).toLowerCase()!==t.toLowerCase()&&l.charCodeAt(2)===o)&&(l=`${t}\\`));const c=l.length;let h=0,p="",m=!1;const g=l.charCodeAt(0);if(1===c)d(g)&&(h=1,m=!0);else if(d(g))if(m=!0,d(l.charCodeAt(1))){let e=2,t=e;for(;e<c&&!d(l.charCodeAt(e));)e++;if(e<c&&e!==t){const n=l.slice(t,e);for(t=e;e<c&&d(l.charCodeAt(e));)e++;if(e<c&&e!==t){for(t=e;e<c&&!d(l.charCodeAt(e));)e++;e!==c&&e===t||(p=`\\\\${n}\\${l.slice(t,e)}`,h=e)}}}else h=1;else f(g)&&l.charCodeAt(1)===a&&(p=l.slice(0,2),h=2,c>2&&d(l.charCodeAt(2))&&(m=!0,h=3));if(p.length>0)if(t.length>0){if(p.toLowerCase()!==t.toLowerCase())continue}else t=p;if(r){if(t.length>0)break}else if(n=`${l.slice(h)}\\${n}`,r=m,m&&t.length>0)break}return n=p(n,!r,"\\",d),r?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){u(e,"path");const t=e.length;if(0===t)return".";let n,i=0,r=!1;const s=e.charCodeAt(0);if(1===t)return h(s)?"\\":e;if(d(s))if(r=!0,d(e.charCodeAt(1))){let r=2,s=r;for(;r<t&&!d(e.charCodeAt(r));)r++;if(r<t&&r!==s){const o=e.slice(s,r);for(s=r;r<t&&d(e.charCodeAt(r));)r++;if(r<t&&r!==s){for(s=r;r<t&&!d(e.charCodeAt(r));)r++;if(r===t)return`\\\\${o}\\${e.slice(s)}\\`;r!==s&&(n=`\\\\${o}\\${e.slice(s,r)}`,i=r)}}}else i=1;else f(s)&&e.charCodeAt(1)===a&&(n=e.slice(0,2),i=2,t>2&&d(e.charCodeAt(2))&&(r=!0,i=3));let o=i<t?p(e.slice(i),!r,"\\",d):"";return 0!==o.length||r||(o="."),o.length>0&&d(e.charCodeAt(t-1))&&(o+="\\"),void 0===n?r?`\\${o}`:o:r?`${n}\\${o}`:`${n}${o}`},isAbsolute(e){u(e,"path");const t=e.length;if(0===t)return!1;const n=e.charCodeAt(0);return d(n)||t>2&&f(n)&&e.charCodeAt(1)===a&&d(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,n;for(let i=0;i<e.length;++i){const r=e[i];u(r,"path"),r.length>0&&(void 0===t?t=n=r:t+=`\\${r}`)}if(void 0===t)return".";let i=!0,r=0;if("string"==typeof n&&d(n.charCodeAt(0))){++r;const e=n.length;e>1&&d(n.charCodeAt(1))&&(++r,e>2&&(d(n.charCodeAt(2))?++r:i=!1))}if(i){for(;r<t.length&&d(t.charCodeAt(r));)r++;r>=2&&(t=`\\${t.slice(r)}`)}return g.normalize(t)},relative(e,t){if(u(e,"from"),u(t,"to"),e===t)return"";const n=g.resolve(e),i=g.resolve(t);if(n===i)return"";if((e=n.toLowerCase())===(t=i.toLowerCase()))return"";let r=0;for(;r<e.length&&e.charCodeAt(r)===o;)r++;let s=e.length;for(;s-1>r&&e.charCodeAt(s-1)===o;)s--;const a=s-r;let l=0;for(;l<t.length&&t.charCodeAt(l)===o;)l++;let c=t.length;for(;c-1>l&&t.charCodeAt(c-1)===o;)c--;const d=c-l,h=a<d?a:d;let f=-1,p=0;for(;p<h;p++){const n=e.charCodeAt(r+p);if(n!==t.charCodeAt(l+p))break;n===o&&(f=p)}if(p!==h){if(-1===f)return i}else{if(d>h){if(t.charCodeAt(l+p)===o)return i.slice(l+p+1);if(2===p)return i.slice(l+p)}a>h&&(e.charCodeAt(r+p)===o?f=p:2===p&&(f=3)),-1===f&&(f=0)}let m="";for(p=r+f+1;p<=s;++p)p!==s&&e.charCodeAt(p)!==o||(m+=0===m.length?"..":"\\..");return l+=f,m.length>0?`${m}${i.slice(l,c)}`:(i.charCodeAt(l)===o&&++l,i.slice(l,c))},toNamespacedPath(e){if("string"!=typeof e||0===e.length)return e;const t=g.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===o){if(t.charCodeAt(1)===o){const e=t.charCodeAt(2);if(63!==e&&e!==r)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(f(t.charCodeAt(0))&&t.charCodeAt(1)===a&&t.charCodeAt(2)===o)return`\\\\?\\${t}`;return e},dirname(e){u(e,"path");const t=e.length;if(0===t)return".";let n=-1,i=0;const r=e.charCodeAt(0);if(1===t)return d(r)?e:".";if(d(r)){if(n=i=1,d(e.charCodeAt(1))){let r=2,s=r;for(;r<t&&!d(e.charCodeAt(r));)r++;if(r<t&&r!==s){for(s=r;r<t&&d(e.charCodeAt(r));)r++;if(r<t&&r!==s){for(s=r;r<t&&!d(e.charCodeAt(r));)r++;if(r===t)return e;r!==s&&(n=i=r+1)}}}}else f(r)&&e.charCodeAt(1)===a&&(n=t>2&&d(e.charCodeAt(2))?3:2,i=n);let s=-1,o=!0;for(let n=t-1;n>=i;--n)if(d(e.charCodeAt(n))){if(!o){s=n;break}}else o=!1;if(-1===s){if(-1===n)return".";s=n}return e.slice(0,s)},basename(e,t){void 0!==t&&u(t,"suffix"),u(e,"path");let n,i=0,r=-1,s=!0;if(e.length>=2&&f(e.charCodeAt(0))&&e.charCodeAt(1)===a&&(i=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(n=e.length-1;n>=i;--n){const l=e.charCodeAt(n);if(d(l)){if(!s){i=n+1;break}}else-1===a&&(s=!1,a=n+1),o>=0&&(l===t.charCodeAt(o)?-1===--o&&(r=n):(o=-1,r=a))}return i===r?r=a:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=i;--n)if(d(e.charCodeAt(n))){if(!s){i=n+1;break}}else-1===r&&(s=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname(e){u(e,"path");let t=0,n=-1,i=0,s=-1,o=!0,l=0;e.length>=2&&e.charCodeAt(1)===a&&f(e.charCodeAt(0))&&(t=i=2);for(let a=e.length-1;a>=t;--a){const t=e.charCodeAt(a);if(d(t)){if(!o){i=a+1;break}}else-1===s&&(o=!1,s=a+1),t===r?-1===n?n=a:1!==l&&(l=1):-1!==n&&(l=-1)}return-1===n||-1===s||0===l||1===l&&n===s-1&&n===i+1?"":e.slice(n,s)},format:m.bind(null,"\\"),parse(e){u(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.length;let i=0,s=e.charCodeAt(0);if(1===n)return d(s)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(d(s)){if(i=1,d(e.charCodeAt(1))){let t=2,r=t;for(;t<n&&!d(e.charCodeAt(t));)t++;if(t<n&&t!==r){for(r=t;t<n&&d(e.charCodeAt(t));)t++;if(t<n&&t!==r){for(r=t;t<n&&!d(e.charCodeAt(t));)t++;t===n?i=t:t!==r&&(i=t+1)}}}}else if(f(s)&&e.charCodeAt(1)===a){if(n<=2)return t.root=t.dir=e,t;if(i=2,d(e.charCodeAt(2))){if(3===n)return t.root=t.dir=e,t;i=3}}i>0&&(t.root=e.slice(0,i));let o=-1,l=i,c=-1,h=!0,p=e.length-1,m=0;for(;p>=i;--p)if(s=e.charCodeAt(p),d(s)){if(!h){l=p+1;break}}else-1===c&&(h=!1,c=p+1),s===r?-1===o?o=p:1!==m&&(m=1):-1!==o&&(m=-1);return-1!==c&&(-1===o||0===m||1===m&&o===c-1&&o===l+1?t.base=t.name=e.slice(l,c):(t.name=e.slice(l,o),t.base=e.slice(l,c),t.ext=e.slice(o,c))),t.dir=l>0&&l!==i?e.slice(0,l-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},v=(()=>{if(c){const e=/\\/g;return()=>{const t=i.bJ().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>i.bJ()})(),y={resolve(...e){let t="",n=!1;for(let i=e.length-1;i>=-1&&!n;i--){const r=i>=0?e[i]:v();u(r,`paths[${i}]`),0!==r.length&&(t=`${r}/${t}`,n=r.charCodeAt(0)===s)}return t=p(t,!n,"/",h),n?`/${t}`:t.length>0?t:"."},normalize(e){if(u(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===s,n=e.charCodeAt(e.length-1)===s;return 0===(e=p(e,!t,"/",h)).length?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(u(e,"path"),e.length>0&&e.charCodeAt(0)===s),join(...e){if(0===e.length)return".";let t;for(let n=0;n<e.length;++n){const i=e[n];u(i,"path"),i.length>0&&(void 0===t?t=i:t+=`/${i}`)}return void 0===t?".":y.normalize(t)},relative(e,t){if(u(e,"from"),u(t,"to"),e===t)return"";if((e=y.resolve(e))===(t=y.resolve(t)))return"";const n=e.length,i=n-1,r=t.length-1,o=i<r?i:r;let a=-1,l=0;for(;l<o;l++){const n=e.charCodeAt(1+l);if(n!==t.charCodeAt(1+l))break;n===s&&(a=l)}if(l===o)if(r>o){if(t.charCodeAt(1+l)===s)return t.slice(1+l+1);if(0===l)return t.slice(1+l)}else i>o&&(e.charCodeAt(1+l)===s?a=l:0===l&&(a=0));let c="";for(l=1+a+1;l<=n;++l)l!==n&&e.charCodeAt(l)!==s||(c+=0===c.length?"..":"/..");return`${c}${t.slice(1+a)}`},toNamespacedPath:e=>e,dirname(e){if(u(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===s;let n=-1,i=!0;for(let t=e.length-1;t>=1;--t)if(e.charCodeAt(t)===s){if(!i){n=t;break}}else i=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename(e,t){void 0!==t&&u(t,"ext"),u(e,"path");let n,i=0,r=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let a=t.length-1,l=-1;for(n=e.length-1;n>=0;--n){const u=e.charCodeAt(n);if(u===s){if(!o){i=n+1;break}}else-1===l&&(o=!1,l=n+1),a>=0&&(u===t.charCodeAt(a)?-1===--a&&(r=n):(a=-1,r=l))}return i===r?r=l:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===s){if(!o){i=n+1;break}}else-1===r&&(o=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname(e){u(e,"path");let t=-1,n=0,i=-1,o=!0,a=0;for(let l=e.length-1;l>=0;--l){const u=e.charCodeAt(l);if(u!==s)-1===i&&(o=!1,i=l+1),u===r?-1===t?t=l:1!==a&&(a=1):-1!==t&&(a=-1);else if(!o){n=l+1;break}}return-1===t||-1===i||0===a||1===a&&t===i-1&&t===n+1?"":e.slice(t,i)},format:m.bind(null,"/"),parse(e){u(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.charCodeAt(0)===s;let i;n?(t.root="/",i=1):i=0;let o=-1,a=0,l=-1,c=!0,d=e.length-1,h=0;for(;d>=i;--d){const t=e.charCodeAt(d);if(t!==s)-1===l&&(c=!1,l=d+1),t===r?-1===o?o=d:1!==h&&(h=1):-1!==o&&(h=-1);else if(!c){a=d+1;break}}if(-1!==l){const i=0===a&&n?1:a;-1===o||0===h||1===h&&o===l-1&&o===a+1?t.base=t.name=e.slice(i,l):(t.name=e.slice(i,o),t.base=e.slice(i,l),t.ext=e.slice(o,l))}return a>0?t.dir=e.slice(0,a-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};y.win32=g.win32=g,y.posix=g.posix=y;const _=c?g.normalize:y.normalize,b=c?g.join:y.join,E=c?g.resolve:y.resolve,N=c?g.relative:y.relative,T=c?g.dirname:y.dirname,S=c?g.basename:y.basename,k=c?g.extname:y.extname,C=c?g.sep:y.sep},60988:(e,t,n)=>{Symbol("MicrotaskDelay")},62012:e=>{function t(e,t){if(null!=e)return e;var n=new Error(void 0!==t?t:"Got unexpected "+e);throw n.framesToPop=1,n}e.exports=t,e.exports.default=t,Object.defineProperty(e.exports,"__esModule",{value:!0})},63962:(e,t,n)=>{function i(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}n.d(t,{Q1:()=>a,bU:()=>r,hB:()=>s});class r{constructor(e,t,n,r=1){this._rgbaBrand=void 0,this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,n)),this.a=i(Math.max(Math.min(1,r),0),3)}static equals(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}}class s{constructor(e,t,n,r){this._hslaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=i(Math.max(Math.min(1,t),0),3),this.l=i(Math.max(Math.min(1,n),0),3),this.a=i(Math.max(Math.min(1,r),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a}static fromRGBA(e){const t=e.r/255,n=e.g/255,i=e.b/255,r=e.a,o=Math.max(t,n,i),a=Math.min(t,n,i);let l=0,u=0;const c=(a+o)/2,d=o-a;if(d>0){switch(u=Math.min(c<=.5?d/(2*c):d/(2-2*c),1),o){case t:l=(n-i)/d+(n<i?6:0);break;case n:l=(i-t)/d+2;break;case i:l=(t-n)/d+4}l*=60,l=Math.round(l)}return new s(l,u,c,r)}static _hue2rgb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}static toRGBA(e){const t=e.h/360,{s:n,l:i,a:o}=e;let a,l,u;if(0===n)a=l=u=i;else{const e=i<.5?i*(1+n):i+n-i*n,r=2*i-e;a=s._hue2rgb(r,e,t+1/3),l=s._hue2rgb(r,e,t),u=s._hue2rgb(r,e,t-1/3)}return new r(Math.round(255*a),Math.round(255*l),Math.round(255*u),o)}}class o{constructor(e,t,n,r){this._hsvaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=i(Math.max(Math.min(1,t),0),3),this.v=i(Math.max(Math.min(1,n),0),3),this.a=i(Math.max(Math.min(1,r),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a}static fromRGBA(e){const t=e.r/255,n=e.g/255,i=e.b/255,r=Math.max(t,n,i),s=r-Math.min(t,n,i),a=0===r?0:s/r;let l;return l=0===s?0:r===t?((n-i)/s%6+6)%6:r===n?(i-t)/s+2:(t-n)/s+4,new o(Math.round(60*l),a,r,e.a)}static toRGBA(e){const{h:t,s:n,v:i,a:s}=e,o=i*n,a=o*(1-Math.abs(t/60%2-1)),l=i-o;let[u,c,d]=[0,0,0];return t<60?(u=o,c=a):t<120?(u=a,c=o):t<180?(c=o,d=a):t<240?(c=a,d=o):t<300?(u=a,d=o):t<=360&&(u=o,d=a),u=Math.round(255*(u+l)),c=Math.round(255*(c+l)),d=Math.round(255*(d+l)),new r(u,c,d,s)}}class a{static fromHex(e){return a.Format.CSS.parseHex(e)||a.red}static equals(e,t){return!e&&!t||!(!e||!t)&&e.equals(t)}get hsla(){return this._hsla?this._hsla:s.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:o.fromRGBA(this.rgba)}constructor(e){if(!e)throw new Error("Color needs a value");if(e instanceof r)this.rgba=e;else if(e instanceof s)this._hsla=e,this.rgba=s.toRGBA(e);else{if(!(e instanceof o))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=o.toRGBA(e)}}equals(e){return!!e&&r.equals(this.rgba,e.rgba)&&s.equals(this.hsla,e.hsla)&&o.equals(this.hsva,e.hsva)}getRelativeLuminance(){return i(.2126*a._relativeLuminanceForComponent(this.rgba.r)+.7152*a._relativeLuminanceForComponent(this.rgba.g)+.0722*a._relativeLuminanceForComponent(this.rgba.b),4)}static _relativeLuminanceForComponent(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}isLighter(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128}isLighterThan(e){return this.getRelativeLuminance()>e.getRelativeLuminance()}isDarkerThan(e){return this.getRelativeLuminance()<e.getRelativeLuminance()}lighten(e){return new a(new s(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*e,this.hsla.a))}darken(e){return new a(new s(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*e,this.hsla.a))}transparent(e){const{r:t,g:n,b:i,a:s}=this.rgba;return new a(new r(t,n,i,s*e))}isTransparent(){return 0===this.rgba.a}isOpaque(){return 1===this.rgba.a}opposite(){return new a(new r(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(e){if(this.isOpaque()||1!==e.rgba.a)return this;const{r:t,g:n,b:i,a:s}=this.rgba;return new a(new r(e.rgba.r-s*(e.rgba.r-t),e.rgba.g-s*(e.rgba.g-n),e.rgba.b-s*(e.rgba.b-i),1))}toString(){return this._toString||(this._toString=a.Format.CSS.format(this)),this._toString}static getLighterColor(e,t,n){if(e.isLighterThan(t))return e;n=n||.5;const i=e.getRelativeLuminance(),r=t.getRelativeLuminance();return n=n*(r-i)/r,e.lighten(n)}static getDarkerColor(e,t,n){if(e.isDarkerThan(t))return e;n=n||.5;const i=e.getRelativeLuminance();return n=n*(i-t.getRelativeLuminance())/i,e.darken(n)}static{this.white=new a(new r(255,255,255,1))}static{this.black=new a(new r(0,0,0,1))}static{this.red=new a(new r(255,0,0,1))}static{this.blue=new a(new r(0,0,255,1))}static{this.green=new a(new r(0,255,0,1))}static{this.cyan=new a(new r(0,255,255,1))}static{this.lightgrey=new a(new r(211,211,211,1))}static{this.transparent=new a(new r(0,0,0,0))}}!function(e){let t;!function(t){let n;!function(t){function n(e){const t=e.toString(16);return 2!==t.length?"0"+t:t}function i(e){switch(e){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15}return 0}t.formatRGB=function(t){return 1===t.rgba.a?`rgb(${t.rgba.r}, ${t.rgba.g}, ${t.rgba.b})`:e.Format.CSS.formatRGBA(t)},t.formatRGBA=function(e){return`rgba(${e.rgba.r}, ${e.rgba.g}, ${e.rgba.b}, ${+e.rgba.a.toFixed(2)})`},t.formatHSL=function(t){return 1===t.hsla.a?`hsl(${t.hsla.h}, ${(100*t.hsla.s).toFixed(2)}%, ${(100*t.hsla.l).toFixed(2)}%)`:e.Format.CSS.formatHSLA(t)},t.formatHSLA=function(e){return`hsla(${e.hsla.h}, ${(100*e.hsla.s).toFixed(2)}%, ${(100*e.hsla.l).toFixed(2)}%, ${e.hsla.a.toFixed(2)})`},t.formatHex=function(e){return`#${n(e.rgba.r)}${n(e.rgba.g)}${n(e.rgba.b)}`},t.formatHexA=function(t,i=!1){return i&&1===t.rgba.a?e.Format.CSS.formatHex(t):`#${n(t.rgba.r)}${n(t.rgba.g)}${n(t.rgba.b)}${n(Math.round(255*t.rgba.a))}`},t.format=function(t){return t.isOpaque()?e.Format.CSS.formatHex(t):e.Format.CSS.formatRGBA(t)},t.parseHex=function(t){const n=t.length;if(0===n)return null;if(35!==t.charCodeAt(0))return null;if(7===n){const n=16*i(t.charCodeAt(1))+i(t.charCodeAt(2)),s=16*i(t.charCodeAt(3))+i(t.charCodeAt(4)),o=16*i(t.charCodeAt(5))+i(t.charCodeAt(6));return new e(new r(n,s,o,1))}if(9===n){const n=16*i(t.charCodeAt(1))+i(t.charCodeAt(2)),s=16*i(t.charCodeAt(3))+i(t.charCodeAt(4)),o=16*i(t.charCodeAt(5))+i(t.charCodeAt(6)),a=16*i(t.charCodeAt(7))+i(t.charCodeAt(8));return new e(new r(n,s,o,a/255))}if(4===n){const n=i(t.charCodeAt(1)),s=i(t.charCodeAt(2)),o=i(t.charCodeAt(3));return new e(new r(16*n+n,16*s+s,16*o+o))}if(5===n){const n=i(t.charCodeAt(1)),s=i(t.charCodeAt(2)),o=i(t.charCodeAt(3)),a=i(t.charCodeAt(4));return new e(new r(16*n+n,16*s+s,16*o+o,(16*a+a)/255))}return null}}(n=t.CSS||(t.CSS={}))}(t=e.Format||(e.Format={}))}(a||(a={}))},66401:(e,t,n)=>{n.d(t,{L:()=>r});var i=n(73226);class r{static addRange(e,t){let n=0;for(;n<t.length&&t[n].endExclusive<e.start;)n++;let i=n;for(;i<t.length&&t[i].start<=e.endExclusive;)i++;if(n===i)t.splice(n,0,e);else{const s=Math.min(e.start,t[n].start),o=Math.max(e.endExclusive,t[i-1].endExclusive);t.splice(n,i-n,new r(s,o))}}static tryCreate(e,t){if(!(e>t))return new r(e,t)}static ofLength(e){return new r(0,e)}static ofStartAndLength(e,t){return new r(e,e+t)}constructor(e,t){if(this.start=e,this.endExclusive=t,e>t)throw new i.D7(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new r(this.start+e,this.endExclusive+e)}deltaStart(e){return new r(this.start+e,this.endExclusive)}deltaEnd(e){return new r(this.start,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(e){return this.start<=e&&e<this.endExclusive}join(e){return new r(Math.min(this.start,e.start),Math.max(this.endExclusive,e.endExclusive))}intersect(e){const t=Math.max(this.start,e.start),n=Math.min(this.endExclusive,e.endExclusive);if(t<=n)return new r(t,n)}intersects(e){return Math.max(this.start,e.start)<Math.min(this.endExclusive,e.endExclusive)}isBefore(e){return this.endExclusive<=e.start}isAfter(e){return this.start>=e.endExclusive}slice(e){return e.slice(this.start,this.endExclusive)}substring(e){return e.substring(this.start,this.endExclusive)}clip(e){if(this.isEmpty)throw new i.D7(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,e))}clipCyclic(e){if(this.isEmpty)throw new i.D7(`Invalid clipping range: ${this.toString()}`);return e<this.start?this.endExclusive-(this.start-e)%this.length:e>=this.endExclusive?this.start+(e-this.start)%this.length:e}forEach(e){for(let t=this.start;t<this.endExclusive;t++)e(t)}}},66528:(e,t,n)=>{n.d(t,{p:()=>i,t:()=>r});class i{constructor(e,t,n){this.changes=e,this.moves=t,this.hitTimeout=n}}class r{constructor(e,t){this.lineRangeMapping=e,this.changes=t}}},68354:(e,t,n)=>{n.d(t,{WR:()=>i}),n(72667),n(73226),n(55818),n(66401),n(53334);class i{constructor(e,t){this.range=e,this.text=t}toSingleEditOperation(){return{range:this.range,text:this.text}}}},69014:(e,t,n)=>{var i,r,s,o,a,l,u,c,d,h,f,p,m,g,v,y,_,b,E,N,T,S,k,C,w,L,A,I,x,O,R,D,M,F,P,$,V,U,B,j,K,q,W,H,G,z;n.d(t,{DD:()=>S,SB:()=>U,cj:()=>k,d_:()=>C}),function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(i||(i={})),function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"}(r||(r={})),function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(s||(s={})),function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"}(o||(o={})),function(e){e[e.Deprecated=1]="Deprecated"}(a||(a={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(l||(l={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(u||(u={})),function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"}(c||(c={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(d||(d={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(h||(h={})),function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"}(f||(f={})),function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.ariaRequired=5]="ariaRequired",e[e.autoClosingBrackets=6]="autoClosingBrackets",e[e.autoClosingComments=7]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=9]="autoClosingDelete",e[e.autoClosingOvertype=10]="autoClosingOvertype",e[e.autoClosingQuotes=11]="autoClosingQuotes",e[e.autoIndent=12]="autoIndent",e[e.automaticLayout=13]="automaticLayout",e[e.autoSurround=14]="autoSurround",e[e.bracketPairColorization=15]="bracketPairColorization",e[e.guides=16]="guides",e[e.codeLens=17]="codeLens",e[e.codeLensFontFamily=18]="codeLensFontFamily",e[e.codeLensFontSize=19]="codeLensFontSize",e[e.colorDecorators=20]="colorDecorators",e[e.colorDecoratorsLimit=21]="colorDecoratorsLimit",e[e.columnSelection=22]="columnSelection",e[e.comments=23]="comments",e[e.contextmenu=24]="contextmenu",e[e.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",e[e.cursorBlinking=26]="cursorBlinking",e[e.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",e[e.cursorStyle=28]="cursorStyle",e[e.cursorSurroundingLines=29]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",e[e.cursorWidth=31]="cursorWidth",e[e.disableLayerHinting=32]="disableLayerHinting",e[e.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",e[e.domReadOnly=34]="domReadOnly",e[e.dragAndDrop=35]="dragAndDrop",e[e.dropIntoEditor=36]="dropIntoEditor",e[e.emptySelectionClipboard=37]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",e[e.extraEditorClassName=39]="extraEditorClassName",e[e.fastScrollSensitivity=40]="fastScrollSensitivity",e[e.find=41]="find",e[e.fixedOverflowWidgets=42]="fixedOverflowWidgets",e[e.folding=43]="folding",e[e.foldingStrategy=44]="foldingStrategy",e[e.foldingHighlight=45]="foldingHighlight",e[e.foldingImportsByDefault=46]="foldingImportsByDefault",e[e.foldingMaximumRegions=47]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=49]="fontFamily",e[e.fontInfo=50]="fontInfo",e[e.fontLigatures=51]="fontLigatures",e[e.fontSize=52]="fontSize",e[e.fontWeight=53]="fontWeight",e[e.fontVariations=54]="fontVariations",e[e.formatOnPaste=55]="formatOnPaste",e[e.formatOnType=56]="formatOnType",e[e.glyphMargin=57]="glyphMargin",e[e.gotoLocation=58]="gotoLocation",e[e.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",e[e.hover=60]="hover",e[e.inDiffEditor=61]="inDiffEditor",e[e.inlineSuggest=62]="inlineSuggest",e[e.inlineEdit=63]="inlineEdit",e[e.letterSpacing=64]="letterSpacing",e[e.lightbulb=65]="lightbulb",e[e.lineDecorationsWidth=66]="lineDecorationsWidth",e[e.lineHeight=67]="lineHeight",e[e.lineNumbers=68]="lineNumbers",e[e.lineNumbersMinChars=69]="lineNumbersMinChars",e[e.linkedEditing=70]="linkedEditing",e[e.links=71]="links",e[e.matchBrackets=72]="matchBrackets",e[e.minimap=73]="minimap",e[e.mouseStyle=74]="mouseStyle",e[e.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=76]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",e[e.multiCursorModifier=78]="multiCursorModifier",e[e.multiCursorPaste=79]="multiCursorPaste",e[e.multiCursorLimit=80]="multiCursorLimit",e[e.occurrencesHighlight=81]="occurrencesHighlight",e[e.overviewRulerBorder=82]="overviewRulerBorder",e[e.overviewRulerLanes=83]="overviewRulerLanes",e[e.padding=84]="padding",e[e.pasteAs=85]="pasteAs",e[e.parameterHints=86]="parameterHints",e[e.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",e[e.placeholder=88]="placeholder",e[e.definitionLinkOpensInPeek=89]="definitionLinkOpensInPeek",e[e.quickSuggestions=90]="quickSuggestions",e[e.quickSuggestionsDelay=91]="quickSuggestionsDelay",e[e.readOnly=92]="readOnly",e[e.readOnlyMessage=93]="readOnlyMessage",e[e.renameOnType=94]="renameOnType",e[e.renderControlCharacters=95]="renderControlCharacters",e[e.renderFinalNewline=96]="renderFinalNewline",e[e.renderLineHighlight=97]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=98]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=99]="renderValidationDecorations",e[e.renderWhitespace=100]="renderWhitespace",e[e.revealHorizontalRightPadding=101]="revealHorizontalRightPadding",e[e.roundedSelection=102]="roundedSelection",e[e.rulers=103]="rulers",e[e.scrollbar=104]="scrollbar",e[e.scrollBeyondLastColumn=105]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=106]="scrollBeyondLastLine",e[e.scrollPredominantAxis=107]="scrollPredominantAxis",e[e.selectionClipboard=108]="selectionClipboard",e[e.selectionHighlight=109]="selectionHighlight",e[e.selectOnLineNumbers=110]="selectOnLineNumbers",e[e.showFoldingControls=111]="showFoldingControls",e[e.showUnused=112]="showUnused",e[e.snippetSuggestions=113]="snippetSuggestions",e[e.smartSelect=114]="smartSelect",e[e.smoothScrolling=115]="smoothScrolling",e[e.stickyScroll=116]="stickyScroll",e[e.stickyTabStops=117]="stickyTabStops",e[e.stopRenderingLineAfter=118]="stopRenderingLineAfter",e[e.suggest=119]="suggest",e[e.suggestFontSize=120]="suggestFontSize",e[e.suggestLineHeight=121]="suggestLineHeight",e[e.suggestOnTriggerCharacters=122]="suggestOnTriggerCharacters",e[e.suggestSelection=123]="suggestSelection",e[e.tabCompletion=124]="tabCompletion",e[e.tabIndex=125]="tabIndex",e[e.unicodeHighlighting=126]="unicodeHighlighting",e[e.unusualLineTerminators=127]="unusualLineTerminators",e[e.useShadowDOM=128]="useShadowDOM",e[e.useTabStops=129]="useTabStops",e[e.wordBreak=130]="wordBreak",e[e.wordSegmenterLocales=131]="wordSegmenterLocales",e[e.wordSeparators=132]="wordSeparators",e[e.wordWrap=133]="wordWrap",e[e.wordWrapBreakAfterCharacters=134]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=135]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=136]="wordWrapColumn",e[e.wordWrapOverride1=137]="wordWrapOverride1",e[e.wordWrapOverride2=138]="wordWrapOverride2",e[e.wrappingIndent=139]="wrappingIndent",e[e.wrappingStrategy=140]="wrappingStrategy",e[e.showDeprecated=141]="showDeprecated",e[e.inlayHints=142]="inlayHints",e[e.editorClassName=143]="editorClassName",e[e.pixelRatio=144]="pixelRatio",e[e.tabFocusMode=145]="tabFocusMode",e[e.layoutInfo=146]="layoutInfo",e[e.wrappingInfo=147]="wrappingInfo",e[e.defaultColorDecorators=148]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=149]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=150]="inlineCompletionsAccessibilityVerbose"}(p||(p={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(m||(m={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(g||(g={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(v||(v={})),function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(y||(y={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(_||(_={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(b||(b={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(E||(E={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(N||(N={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(T||(T={})),function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.F20=78]="F20",e[e.F21=79]="F21",e[e.F22=80]="F22",e[e.F23=81]="F23",e[e.F24=82]="F24",e[e.NumLock=83]="NumLock",e[e.ScrollLock=84]="ScrollLock",e[e.Semicolon=85]="Semicolon",e[e.Equal=86]="Equal",e[e.Comma=87]="Comma",e[e.Minus=88]="Minus",e[e.Period=89]="Period",e[e.Slash=90]="Slash",e[e.Backquote=91]="Backquote",e[e.BracketLeft=92]="BracketLeft",e[e.Backslash=93]="Backslash",e[e.BracketRight=94]="BracketRight",e[e.Quote=95]="Quote",e[e.OEM_8=96]="OEM_8",e[e.IntlBackslash=97]="IntlBackslash",e[e.Numpad0=98]="Numpad0",e[e.Numpad1=99]="Numpad1",e[e.Numpad2=100]="Numpad2",e[e.Numpad3=101]="Numpad3",e[e.Numpad4=102]="Numpad4",e[e.Numpad5=103]="Numpad5",e[e.Numpad6=104]="Numpad6",e[e.Numpad7=105]="Numpad7",e[e.Numpad8=106]="Numpad8",e[e.Numpad9=107]="Numpad9",e[e.NumpadMultiply=108]="NumpadMultiply",e[e.NumpadAdd=109]="NumpadAdd",e[e.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=111]="NumpadSubtract",e[e.NumpadDecimal=112]="NumpadDecimal",e[e.NumpadDivide=113]="NumpadDivide",e[e.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",e[e.ABNT_C1=115]="ABNT_C1",e[e.ABNT_C2=116]="ABNT_C2",e[e.AudioVolumeMute=117]="AudioVolumeMute",e[e.AudioVolumeUp=118]="AudioVolumeUp",e[e.AudioVolumeDown=119]="AudioVolumeDown",e[e.BrowserSearch=120]="BrowserSearch",e[e.BrowserHome=121]="BrowserHome",e[e.BrowserBack=122]="BrowserBack",e[e.BrowserForward=123]="BrowserForward",e[e.MediaTrackNext=124]="MediaTrackNext",e[e.MediaTrackPrevious=125]="MediaTrackPrevious",e[e.MediaStop=126]="MediaStop",e[e.MediaPlayPause=127]="MediaPlayPause",e[e.LaunchMediaPlayer=128]="LaunchMediaPlayer",e[e.LaunchMail=129]="LaunchMail",e[e.LaunchApp2=130]="LaunchApp2",e[e.Clear=131]="Clear",e[e.MAX_VALUE=132]="MAX_VALUE"}(S||(S={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(k||(k={})),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(C||(C={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(w||(w={})),function(e){e[e.Normal=1]="Normal",e[e.Underlined=2]="Underlined"}(L||(L={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"}(A||(A={})),function(e){e[e.AIGenerated=1]="AIGenerated"}(I||(I={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(x||(x={})),function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"}(O||(O={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(R||(R={})),function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"}(D||(D={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"}(M||(M={})),function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"}(F||(F={})),function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}(P||(P={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}($||($={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(V||(V={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(U||(U={})),function(e){e.Off="off",e.OnCode="onCode",e.On="on"}(B||(B={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(j||(j={})),function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"}(K||(K={})),function(e){e[e.Deprecated=1]="Deprecated"}(q||(q={})),function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"}(W||(W={})),function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(H||(H={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(G||(G={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(z||(z={}))},69708:(e,t,n)=>{function i(e){return"string"==typeof e}function r(e){return!("object"!=typeof e||null===e||Array.isArray(e)||e instanceof RegExp||e instanceof Date)}function s(e){return void 0===e}function o(e){return s(e)||null===e}n.d(t,{Gv:()=>r,Kg:()=>i,b0:()=>s,z:()=>o})},69958:(e,t,n)=>{n.d(t,{H8:()=>$,HZ:()=>A,OS:()=>D,UP:()=>B,_p:()=>R,cm:()=>P,gm:()=>V,ib:()=>L,j9:()=>w,lg:()=>I,nr:()=>U,uF:()=>k,zx:()=>C});var i=n(12003);const r="en";let s,o,a=!1,l=!1,u=!1,c=!1,d=!1,h=!1,f=!1,p=!1,m=!1,g=!1,v=null,y=null,_=null;const b=globalThis;let E;void 0!==b.vscode&&void 0!==b.vscode.process?E=b.vscode.process:"undefined"!=typeof process&&"string"==typeof process?.versions?.node&&(E=process);const N="string"==typeof E?.versions?.electron,T=N&&"renderer"===E?.type;if("object"==typeof E){a="win32"===E.platform,l="darwin"===E.platform,u="linux"===E.platform,c=u&&!!E.env.SNAP&&!!E.env.SNAP_REVISION,f=N,m=!!E.env.CI||!!E.env.BUILD_ARTIFACTSTAGINGDIRECTORY,s=r,v=r;const e=E.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e);s=t.userLocale,y=t.osLocale,v=t.resolvedLanguage||r,_=t.languagePack?.translationsConfigFile}catch(e){}d=!0}else"object"!=typeof navigator||T?console.error("Unable to resolve platform."):(o=navigator.userAgent,a=o.indexOf("Windows")>=0,l=o.indexOf("Macintosh")>=0,p=(o.indexOf("Macintosh")>=0||o.indexOf("iPad")>=0||o.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,u=o.indexOf("Linux")>=0,o?.indexOf("Mobi")>=0,h=!0,v=i.i8()||r,s=navigator.language.toLowerCase(),y=s);let S=0;l?S=1:a?S=3:u&&(S=2);const k=a,C=l,w=u,L=d,A=h,I=h&&"function"==typeof b.importScripts?b.origin:void 0,x=o,O="function"==typeof b.postMessage&&!b.importScripts,R=(()=>{if(O){const e=[];b.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let n=0,i=e.length;n<i;n++){const i=e[n];if(i.id===t.data.vscodeScheduleAsyncWork)return e.splice(n,1),void i.callback()}});let t=0;return n=>{const i=++t;e.push({id:i,callback:n}),b.postMessage({vscodeScheduleAsyncWork:i},"*")}}return e=>setTimeout(e)})(),D=l||p?2:a?1:3;let M=!0,F=!1;function P(){if(!F){F=!0;const e=new Uint8Array(2);e[0]=1,e[1]=2;const t=new Uint16Array(e.buffer);M=513===t[0]}return M}const $=!!(x&&x.indexOf("Chrome")>=0),V=!!(x&&x.indexOf("Firefox")>=0),U=!!(!$&&x&&x.indexOf("Safari")>=0),B=!!(x&&x.indexOf("Edg/")>=0);x&&x.indexOf("Android")},70092:(e,t,n)=>{n.d(t,{w:()=>r});class i{static{this.Undefined=new i(void 0)}constructor(e){this.element=e,this.next=i.Undefined,this.prev=i.Undefined}}class r{constructor(){this._first=i.Undefined,this._last=i.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===i.Undefined}clear(){let e=this._first;for(;e!==i.Undefined;){const t=e.next;e.prev=i.Undefined,e.next=i.Undefined,e=t}this._first=i.Undefined,this._last=i.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new i(e);if(this._first===i.Undefined)this._first=n,this._last=n;else if(t){const e=this._last;this._last=n,n.prev=e,e.next=n}else{const e=this._first;this._first=n,n.next=e,e.prev=n}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(n))}}shift(){if(this._first!==i.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==i.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==i.Undefined&&e.next!==i.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===i.Undefined&&e.next===i.Undefined?(this._first=i.Undefined,this._last=i.Undefined):e.next===i.Undefined?(this._last=this._last.prev,this._last.next=i.Undefined):e.prev===i.Undefined&&(this._first=this._first.next,this._first.prev=i.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==i.Undefined;)yield e.element,e=e.next}}},70869:(e,t,n)=>{n.r(t),n.d(t,{EditorWorkerHost:()=>i});class i{static{this.CHANNEL_NAME="editorWorkerHost"}static getChannel(e){return e.getChannel(i.CHANNEL_NAME)}static setChannel(e,t){e.setChannel(i.CHANNEL_NAME,t)}}},72667:(e,t,n)=>{n.d(t,{Ft:()=>o,Xo:()=>a,ok:()=>r,xb:()=>s});var i=n(73226);function r(e,t){if(!e)throw new Error(t?`Assertion failed (${t})`:"Assertion Failed")}function s(e,t="Unreachable"){throw new Error(t)}function o(e){e()||(e(),(0,i.dz)(new i.D7("Assertion Failed")))}function a(e,t){let n=0;for(;n<e.length-1;){if(!t(e[n],e[n+1]))return!1;n++}return!0}},73179:(e,t,n)=>{var i;n.d(t,{f:()=>i}),function(e){function t(e){return e&&"object"==typeof e&&"function"==typeof e[Symbol.iterator]}e.is=t;const n=Object.freeze([]);function*i(e){yield e}e.empty=function(){return n},e.single=i,e.wrap=function(e){return t(e)?e:i(e)},e.from=function(e){return e||n},e.reverse=function*(e){for(let t=e.length-1;t>=0;t--)yield e[t]},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){let n=0;for(const i of e)if(t(i,n++))return!0;return!1},e.find=function(e,t){for(const n of e)if(t(n))return n},e.filter=function*(e,t){for(const n of e)t(n)&&(yield n)},e.map=function*(e,t){let n=0;for(const i of e)yield t(i,n++)},e.flatMap=function*(e,t){let n=0;for(const i of e)yield*t(i,n++)},e.concat=function*(...e){for(const t of e)yield*t},e.reduce=function(e,t,n){let i=n;for(const n of e)i=t(i,n);return i},e.slice=function*(e,t,n=e.length){for(t<0&&(t+=e.length),n<0?n+=e.length:n>e.length&&(n=e.length);t<n;t++)yield e[t]},e.consume=function(t,n=Number.POSITIVE_INFINITY){const i=[];if(0===n)return[i,t];const r=t[Symbol.iterator]();for(let t=0;t<n;t++){const t=r.next();if(t.done)return[i,e.empty()];i.push(t.value)}return[i,{[Symbol.iterator]:()=>r}]},e.asyncToArray=async function(e){const t=[];for await(const n of e)t.push(n);return Promise.resolve(t)}}(i||(i={}))},73226:(e,t,n)=>{n.d(t,{D7:()=>h,EM:()=>c,Qg:()=>l,cU:()=>s,dz:()=>r,iH:()=>u});const i=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{if(e.stack){if(d.isErrorNoTelemetry(e))throw new d(e.message+"\n\n"+e.stack);throw new Error(e.message+"\n\n"+e.stack)}throw e},0)}}emit(e){this.listeners.forEach(t=>{t(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function r(e){var t;(t=e)instanceof a||t instanceof Error&&t.name===o&&t.message===o||i.onUnexpectedError(e)}function s(e){if(e instanceof Error){const{name:t,message:n}=e;return{$isError:!0,name:t,message:n,stack:e.stacktrace||e.stack,noTelemetry:d.isErrorNoTelemetry(e)}}return e}const o="Canceled";class a extends Error{constructor(){super(o),this.name=this.message}}function l(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")}function u(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")}class c extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class d extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof d)return e;const t=new d;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return"CodeExpectedError"===e.name}}class h extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,h.prototype)}}},79119:(e,t,n)=>{n.d(t,{Lk:()=>c,NC:()=>o,Rl:()=>h,X5:()=>d,sq:()=>u});var i=n(6995),r=n(66401),s=n(98123);function o(e,t,n){let i=n;return i=a(e,t,i),i=a(e,t,i),i=function(e,t,n){if(!e.getBoundaryScore||!t.getBoundaryScore)return n;for(let i=0;i<n.length;i++){const s=i>0?n[i-1]:void 0,o=n[i],a=i+1<n.length?n[i+1]:void 0,u=new r.L(s?s.seq1Range.endExclusive+1:0,a?a.seq1Range.start-1:e.length),c=new r.L(s?s.seq2Range.endExclusive+1:0,a?a.seq2Range.start-1:t.length);o.seq1Range.isEmpty?n[i]=l(o,e,t,u,c):o.seq2Range.isEmpty&&(n[i]=l(o.swap(),t,e,c,u).swap())}return n}(e,t,i),i}function a(e,t,n){if(0===n.length)return n;const i=[];i.push(n[0]);for(let o=1;o<n.length;o++){const a=i[i.length-1];let l=n[o];if(l.seq1Range.isEmpty||l.seq2Range.isEmpty){const n=l.seq1Range.start-a.seq1Range.endExclusive;let o;for(o=1;o<=n&&e.getElement(l.seq1Range.start-o)===e.getElement(l.seq1Range.endExclusive-o)&&t.getElement(l.seq2Range.start-o)===t.getElement(l.seq2Range.endExclusive-o);o++);if(o--,o===n){i[i.length-1]=new s.$8(new r.L(a.seq1Range.start,l.seq1Range.endExclusive-n),new r.L(a.seq2Range.start,l.seq2Range.endExclusive-n));continue}l=l.delta(-o)}i.push(l)}const o=[];for(let n=0;n<i.length-1;n++){const a=i[n+1];let l=i[n];if(l.seq1Range.isEmpty||l.seq2Range.isEmpty){const o=a.seq1Range.start-l.seq1Range.endExclusive;let u;for(u=0;u<o&&e.isStronglyEqual(l.seq1Range.start+u,l.seq1Range.endExclusive+u)&&t.isStronglyEqual(l.seq2Range.start+u,l.seq2Range.endExclusive+u);u++);if(u===o){i[n+1]=new s.$8(new r.L(l.seq1Range.start+o,a.seq1Range.endExclusive),new r.L(l.seq2Range.start+o,a.seq2Range.endExclusive));continue}u>0&&(l=l.delta(u))}o.push(l)}return i.length>0&&o.push(i[i.length-1]),o}function l(e,t,n,i,r){let s=1;for(;e.seq1Range.start-s>=i.start&&e.seq2Range.start-s>=r.start&&n.isStronglyEqual(e.seq2Range.start-s,e.seq2Range.endExclusive-s)&&s<100;)s++;s--;let o=0;for(;e.seq1Range.start+o<i.endExclusive&&e.seq2Range.endExclusive+o<r.endExclusive&&n.isStronglyEqual(e.seq2Range.start+o,e.seq2Range.endExclusive+o)&&o<100;)o++;if(0===s&&0===o)return e;let a=0,l=-1;for(let i=-s;i<=o;i++){const r=e.seq2Range.start+i,s=e.seq2Range.endExclusive+i,o=e.seq1Range.start+i,u=t.getBoundaryScore(o)+n.getBoundaryScore(r)+n.getBoundaryScore(s);u>l&&(l=u,a=i)}return e.delta(a)}function u(e,t,n){const i=[];for(const e of n){const t=i[i.length-1];t&&(e.seq1Range.start-t.seq1Range.endExclusive<=2||e.seq2Range.start-t.seq2Range.endExclusive<=2)?i[i.length-1]=new s.$8(t.seq1Range.join(e.seq1Range),t.seq2Range.join(e.seq2Range)):i.push(e)}return i}function c(e,t,n){const i=s.$8.invert(n,e.length),r=[];let o=new s._3(0,0);function a(n,a){if(n.offset1<o.offset1||n.offset2<o.offset2)return;const l=e.findWordContaining(n.offset1),u=t.findWordContaining(n.offset2);if(!l||!u)return;let c=new s.$8(l,u);const d=c.intersect(a);let h=d.seq1Range.length,f=d.seq2Range.length;for(;i.length>0;){const n=i[0];if(!n.seq1Range.intersects(c.seq1Range)&&!n.seq2Range.intersects(c.seq2Range))break;const r=e.findWordContaining(n.seq1Range.start),o=t.findWordContaining(n.seq2Range.start),a=new s.$8(r,o),l=a.intersect(n);if(h+=l.seq1Range.length,f+=l.seq2Range.length,c=c.join(a),!(c.seq1Range.endExclusive>=n.seq1Range.endExclusive))break;i.shift()}h+f<2*(c.seq1Range.length+c.seq2Range.length)/3&&r.push(c),o=c.getEndExclusives()}for(;i.length>0;){const e=i.shift();e.seq1Range.isEmpty||(a(e.getStarts(),e),a(e.getEndExclusives().delta(-1),e))}return function(e,t){const n=[];for(;e.length>0||t.length>0;){const i=e[0],r=t[0];let s;s=i&&(!r||i.seq1Range.start<r.seq1Range.start)?e.shift():t.shift(),n.length>0&&n[n.length-1].seq1Range.endExclusive>=s.seq1Range.start?n[n.length-1]=n[n.length-1].join(s):n.push(s)}return n}(n,r)}function d(e,t,n){let i=n;if(0===i.length)return i;let s,o=0;do{s=!1;const a=[i[0]];for(let l=1;l<i.length;l++){const u=i[l],c=a[a.length-1];function d(t,n){const i=new r.L(c.seq1Range.endExclusive,u.seq1Range.start);return e.getText(i).replace(/\s/g,"").length<=4&&(t.seq1Range.length+t.seq2Range.length>5||n.seq1Range.length+n.seq2Range.length>5)}d(c,u)?(s=!0,a[a.length-1]=a[a.length-1].join(u)):a.push(u)}i=a}while(o++<10&&s);return i}function h(e,t,n){let o=n;if(0===o.length)return o;let a,l=0;do{a=!1;const c=[o[0]];for(let d=1;d<o.length;d++){const h=o[d],f=c[c.length-1];function p(n,i){const s=new r.L(f.seq1Range.endExclusive,h.seq1Range.start);if(e.countLinesIn(s)>5||s.length>500)return!1;const o=e.getText(s).trim();if(o.length>20||o.split(/\r\n|\r|\n/).length>1)return!1;const a=e.countLinesIn(n.seq1Range),l=n.seq1Range.length,u=t.countLinesIn(n.seq2Range),c=n.seq2Range.length,d=e.countLinesIn(i.seq1Range),p=i.seq1Range.length,m=t.countLinesIn(i.seq2Range),g=i.seq2Range.length;function v(e){return Math.min(e,130)}return Math.pow(Math.pow(v(40*a+l),1.5)+Math.pow(v(40*u+c),1.5),1.5)+Math.pow(Math.pow(v(40*d+p),1.5)+Math.pow(v(40*m+g),1.5),1.5)>74184.96480721243}p(f,h)?(a=!0,c[c.length-1]=c[c.length-1].join(h)):c.push(h)}o=c}while(l++<10&&a);const u=[];return(0,i.kj)(o,(t,n,i)=>{let o=n;function a(e){return e.length>0&&e.trim().length<=3&&n.seq1Range.length+n.seq2Range.length>100}const l=e.extendToFullLines(n.seq1Range),c=e.getText(new r.L(l.start,n.seq1Range.start));a(c)&&(o=o.deltaStart(-c.length));const d=e.getText(new r.L(n.seq1Range.endExclusive,l.endExclusive));a(d)&&(o=o.deltaEnd(d.length));const h=s.$8.fromOffsetPairs(t?t.getEndExclusives():s._3.zero,i?i.getStarts():s._3.max),f=o.intersect(h);u.length>0&&f.getStarts().equals(u[u.length-1].getEndExclusives())?u[u.length-1]=u[u.length-1].join(f):u.push(f)}),u}},81304:(e,t,n)=>{n.d(t,{Q:()=>r});var i=n(55818);class r{constructor(e,t,n,i){e>n||e===n&&t>i?(this.startLineNumber=n,this.startColumn=i,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=i)}isEmpty(){return r.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return r.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber||t.lineNumber===e.startLineNumber&&t.column<e.startColumn||t.lineNumber===e.endLineNumber&&t.column>e.endColumn)}static strictContainsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber||t.lineNumber===e.startLineNumber&&t.column<=e.startColumn||t.lineNumber===e.endLineNumber&&t.column>=e.endColumn)}containsRange(e){return r.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber||t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumn<e.startColumn||t.endLineNumber===e.endLineNumber&&t.endColumn>e.endColumn)}strictContainsRange(e){return r.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber||t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn||t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)}plusRange(e){return r.plusRange(this,e)}static plusRange(e,t){let n,i,s,o;return t.startLineNumber<e.startLineNumber?(n=t.startLineNumber,i=t.startColumn):t.startLineNumber===e.startLineNumber?(n=t.startLineNumber,i=Math.min(t.startColumn,e.startColumn)):(n=e.startLineNumber,i=e.startColumn),t.endLineNumber>e.endLineNumber?(s=t.endLineNumber,o=t.endColumn):t.endLineNumber===e.endLineNumber?(s=t.endLineNumber,o=Math.max(t.endColumn,e.endColumn)):(s=e.endLineNumber,o=e.endColumn),new r(n,i,s,o)}intersectRanges(e){return r.intersectRanges(this,e)}static intersectRanges(e,t){let n=e.startLineNumber,i=e.startColumn,s=e.endLineNumber,o=e.endColumn;const a=t.startLineNumber,l=t.startColumn,u=t.endLineNumber,c=t.endColumn;return n<a?(n=a,i=l):n===a&&(i=Math.max(i,l)),s>u?(s=u,o=c):s===u&&(o=Math.min(o,c)),n>s||n===s&&i>o?null:new r(n,i,s,o)}equalsRange(e){return r.equalsRange(this,e)}static equalsRange(e,t){return!e&&!t||!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return r.getEndPosition(this)}static getEndPosition(e){return new i.y(e.endLineNumber,e.endColumn)}getStartPosition(){return r.getStartPosition(this)}static getStartPosition(e){return new i.y(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new r(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new r(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return r.collapseToStart(this)}static collapseToStart(e){return new r(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return r.collapseToEnd(this)}static collapseToEnd(e){return new r(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new r(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,t=e){return new r(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new r(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn}static areIntersectingOrTouching(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<t.startColumn||t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<e.startColumn)}static areIntersecting(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<=t.startColumn||t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<=e.startColumn)}static compareRangesUsingStarts(e,t){if(e&&t){const n=0|e.startLineNumber,i=0|t.startLineNumber;if(n===i){const n=0|e.startColumn,i=0|t.startColumn;if(n===i){const n=0|e.endLineNumber,i=0|t.endLineNumber;return n===i?(0|e.endColumn)-(0|t.endColumn):n-i}return n-i}return n-i}return(e?1:0)-(t?1:0)}static compareRangesUsingEnds(e,t){return e.endLineNumber===t.endLineNumber?e.endColumn===t.endColumn?e.startLineNumber===t.startLineNumber?e.startColumn-t.startColumn:e.startLineNumber-t.startLineNumber:e.endColumn-t.endColumn:e.endLineNumber-t.endLineNumber}static spansMultipleLines(e){return e.endLineNumber>e.startLineNumber}toJSON(){return this}}},81394:(e,t,n)=>{n.d(t,{M:()=>a,S:()=>l});var i=n(73226),r=n(66401),s=n(81304),o=n(35380);class a{static fromRangeInclusive(e){return new a(e.startLineNumber,e.endLineNumber+1)}static joinMany(e){if(0===e.length)return[];let t=new l(e[0].slice());for(let n=1;n<e.length;n++)t=t.getUnion(new l(e[n].slice()));return t.ranges}static join(e){if(0===e.length)throw new i.D7("lineRanges cannot be empty");let t=e[0].startLineNumber,n=e[0].endLineNumberExclusive;for(let i=1;i<e.length;i++)t=Math.min(t,e[i].startLineNumber),n=Math.max(n,e[i].endLineNumberExclusive);return new a(t,n)}static ofLength(e,t){return new a(e,e+t)}static deserialize(e){return new a(e[0],e[1])}constructor(e,t){if(e>t)throw new i.D7(`startLineNumber ${e} cannot be after endLineNumberExclusive ${t}`);this.startLineNumber=e,this.endLineNumberExclusive=t}contains(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(e){return new a(this.startLineNumber+e,this.endLineNumberExclusive+e)}deltaLength(e){return new a(this.startLineNumber,this.endLineNumberExclusive+e)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(e){return new a(Math.min(this.startLineNumber,e.startLineNumber),Math.max(this.endLineNumberExclusive,e.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(e){const t=Math.max(this.startLineNumber,e.startLineNumber),n=Math.min(this.endLineNumberExclusive,e.endLineNumberExclusive);if(t<=n)return new a(t,n)}intersectsStrict(e){return this.startLineNumber<e.endLineNumberExclusive&&e.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(e){return this.startLineNumber<=e.endLineNumberExclusive&&e.startLineNumber<=this.endLineNumberExclusive}equals(e){return this.startLineNumber===e.startLineNumber&&this.endLineNumberExclusive===e.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new s.Q(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new s.Q(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(e){const t=[];for(let n=this.startLineNumber;n<this.endLineNumberExclusive;n++)t.push(e(n));return t}forEach(e){for(let t=this.startLineNumber;t<this.endLineNumberExclusive;t++)e(t)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}includes(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}toOffsetRange(){return new r.L(this.startLineNumber-1,this.endLineNumberExclusive-1)}}class l{constructor(e=[]){this._normalizedRanges=e}get ranges(){return this._normalizedRanges}addRange(e){if(0===e.length)return;const t=(0,o.hw)(this._normalizedRanges,t=>t.endLineNumberExclusive>=e.startLineNumber),n=(0,o.iM)(this._normalizedRanges,t=>t.startLineNumber<=e.endLineNumberExclusive)+1;if(t===n)this._normalizedRanges.splice(t,0,e);else if(t===n-1){const n=this._normalizedRanges[t];this._normalizedRanges[t]=n.join(e)}else{const i=this._normalizedRanges[t].join(this._normalizedRanges[n-1]).join(e);this._normalizedRanges.splice(t,n-t,i)}}contains(e){const t=(0,o.lx)(this._normalizedRanges,t=>t.startLineNumber<=e);return!!t&&t.endLineNumberExclusive>e}intersects(e){const t=(0,o.lx)(this._normalizedRanges,t=>t.startLineNumber<e.endLineNumberExclusive);return!!t&&t.endLineNumberExclusive>e.startLineNumber}getUnion(e){if(0===this._normalizedRanges.length)return e;if(0===e._normalizedRanges.length)return this;const t=[];let n=0,i=0,r=null;for(;n<this._normalizedRanges.length||i<e._normalizedRanges.length;){let s=null;if(n<this._normalizedRanges.length&&i<e._normalizedRanges.length){const t=this._normalizedRanges[n],r=e._normalizedRanges[i];t.startLineNumber<r.startLineNumber?(s=t,n++):(s=r,i++)}else n<this._normalizedRanges.length?(s=this._normalizedRanges[n],n++):(s=e._normalizedRanges[i],i++);null===r?r=s:r.endLineNumberExclusive>=s.startLineNumber?r=new a(r.startLineNumber,Math.max(r.endLineNumberExclusive,s.endLineNumberExclusive)):(t.push(r),r=s)}return null!==r&&t.push(r),new l(t)}subtractFrom(e){const t=(0,o.hw)(this._normalizedRanges,t=>t.endLineNumberExclusive>=e.startLineNumber),n=(0,o.iM)(this._normalizedRanges,t=>t.startLineNumber<=e.endLineNumberExclusive)+1;if(t===n)return new l([e]);const i=[];let r=e.startLineNumber;for(let e=t;e<n;e++){const t=this._normalizedRanges[e];t.startLineNumber>r&&i.push(new a(r,t.startLineNumber)),r=t.endLineNumberExclusive}return r<e.endLineNumberExclusive&&i.push(new a(r,e.endLineNumberExclusive)),new l(i)}toString(){return this._normalizedRanges.map(e=>e.toString()).join(", ")}getIntersection(e){const t=[];let n=0,i=0;for(;n<this._normalizedRanges.length&&i<e._normalizedRanges.length;){const r=this._normalizedRanges[n],s=e._normalizedRanges[i],o=r.intersect(s);o&&!o.isEmpty&&t.push(o),r.endLineNumberExclusive<s.endLineNumberExclusive?n++:i++}return new l(t)}getWithDelta(e){return new l(this._normalizedRanges.map(t=>t.delta(e)))}}},88477:(e,t,n)=>{function i(e){return e<0?0:e>255?255:0|e}function r(e){return e<0?0:e>4294967295?4294967295:0|e}n.d(t,{W:()=>i,j:()=>r})},92692:(e,t,n)=>{n.d(t,{A5:()=>i,Dg:()=>l,F4:()=>h,L5:()=>d,Wo:()=>c,X2:()=>a,ZS:()=>r,nk:()=>u,vd:()=>f});var i,r,s,o=n(32477);!function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(i||(i={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(r||(r={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(s||(s={}));class a{get originalIndentSize(){return this._indentSizeIsTabSize?"tabSize":this.indentSize}constructor(e){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,0|e.tabSize),"tabSize"===e.indentSize?(this.indentSize=this.tabSize,this._indentSizeIsTabSize=!0):(this.indentSize=Math.max(1,0|e.indentSize),this._indentSizeIsTabSize=!1),this.insertSpaces=Boolean(e.insertSpaces),this.defaultEOL=0|e.defaultEOL,this.trimAutoWhitespace=Boolean(e.trimAutoWhitespace),this.bracketPairColorizationOptions=e.bracketPairColorizationOptions}equals(e){return this.tabSize===e.tabSize&&this._indentSizeIsTabSize===e._indentSizeIsTabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace&&(0,o.aI)(this.bracketPairColorizationOptions,e.bracketPairColorizationOptions)}createChangeEvent(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}}}class l{constructor(e,t){this._findMatchBrand=void 0,this.range=e,this.matches=t}}function u(e){return e&&"function"==typeof e.read}class c{constructor(e,t,n,i,r,s){this.identifier=e,this.range=t,this.text=n,this.forceMoveMarkers=i,this.isAutoWhitespaceEdit=r,this._isTracked=s}}class d{constructor(e,t,n){this.regex=e,this.wordSeparators=t,this.simpleSearch=n}}class h{constructor(e,t,n){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=n}}function f(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget}},93444:(e,t,n)=>{function i(e,t){const n=this;let i,r=!1;return function(){if(r)return i;if(r=!0,t)try{i=e.apply(n,arguments)}finally{t()}else i=e.apply(n,arguments);return i}}n.d(t,{P:()=>i})},97716:(e,t,n)=>{n.r(t),n.d(t,{findSectionHeaders:()=>s});const i=new RegExp("\\bMARK:\\s*(.*)$","d"),r=/^-+|-+$/g;function s(e,t){let n=[];if(t.findRegionSectionHeaders&&t.foldingRules?.markers){const i=function(e,t){const n=[],i=e.getLineCount();for(let r=1;r<=i;r++){const i=e.getLineContent(r),s=i.match(t.foldingRules.markers.start);if(s){const e={startLineNumber:r,startColumn:s[0].length+1,endLineNumber:r,endColumn:i.length+1};if(e.endColumn>e.startColumn){const t={range:e,...a(i.substring(s[0].length)),shouldBeInComments:!1};(t.text||t.hasSeparatorLine)&&n.push(t)}}}return n}(e,t);n=n.concat(i)}if(t.findMarkSectionHeaders){const t=function(e){const t=[],n=e.getLineCount();for(let i=1;i<=n;i++)o(e.getLineContent(i),i,t);return t}(e);n=n.concat(t)}return n}function o(e,t,n){i.lastIndex=0;const r=i.exec(e);if(r){const e={startLineNumber:t,startColumn:r.indices[1][0]+1,endLineNumber:t,endColumn:r.indices[1][1]+1};if(e.endColumn>e.startColumn){const t={range:e,...a(r[1]),shouldBeInComments:!0};(t.text||t.hasSeparatorLine)&&n.push(t)}}}function a(e){const t=(e=e.trim()).startsWith("-");return{text:e=e.replace(r,""),hasSeparatorLine:t}}},97747:(e,t,n)=>{function i(e){return e}n.d(t,{VV:()=>s,o5:()=>r});class r{constructor(e,t){this.lastCache=void 0,this.lastArgKey=void 0,"function"==typeof e?(this._fn=e,this._computeKey=i):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this._fn(e)),this.lastCache}}class s{get cachedValues(){return this._map}constructor(e,t){this._map=new Map,this._map2=new Map,"function"==typeof e?(this._fn=e,this._computeKey=i):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);if(this._map2.has(t))return this._map2.get(t);const n=this._fn(e);return this._map.set(e,n),this._map2.set(t,n),n}}},98123:(e,t,n)=>{n.d(t,{$8:()=>a,SL:()=>o,_3:()=>l,aY:()=>c,uY:()=>u});var i=n(6995),r=n(73226),s=n(66401);class o{static trivial(e,t){return new o([new a(s.L.ofLength(e.length),s.L.ofLength(t.length))],!1)}static trivialTimedOut(e,t){return new o([new a(s.L.ofLength(e.length),s.L.ofLength(t.length))],!0)}constructor(e,t){this.diffs=e,this.hitTimeout=t}}class a{static invert(e,t){const n=[];return(0,i.pN)(e,(e,i)=>{n.push(a.fromOffsetPairs(e?e.getEndExclusives():l.zero,i?i.getStarts():new l(t,(e?e.seq2Range.endExclusive-e.seq1Range.endExclusive:0)+t)))}),n}static fromOffsetPairs(e,t){return new a(new s.L(e.offset1,t.offset1),new s.L(e.offset2,t.offset2))}static assertSorted(e){let t;for(const n of e){if(t&&!(t.seq1Range.endExclusive<=n.seq1Range.start&&t.seq2Range.endExclusive<=n.seq2Range.start))throw new r.D7("Sequence diffs must be sorted");t=n}}constructor(e,t){this.seq1Range=e,this.seq2Range=t}swap(){return new a(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(e){return new a(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return 0===e?this:new a(this.seq1Range.delta(e),this.seq2Range.delta(e))}deltaStart(e){return 0===e?this:new a(this.seq1Range.deltaStart(e),this.seq2Range.deltaStart(e))}deltaEnd(e){return 0===e?this:new a(this.seq1Range.deltaEnd(e),this.seq2Range.deltaEnd(e))}intersect(e){const t=this.seq1Range.intersect(e.seq1Range),n=this.seq2Range.intersect(e.seq2Range);if(t&&n)return new a(t,n)}getStarts(){return new l(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new l(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class l{static{this.zero=new l(0,0)}static{this.max=new l(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER)}constructor(e,t){this.offset1=e,this.offset2=t}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(e){return 0===e?this:new l(this.offset1+e,this.offset2+e)}equals(e){return this.offset1===e.offset1&&this.offset2===e.offset2}}class u{static{this.instance=new u}isValid(){return!0}}class c{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new r.D7("timeout must be positive")}isValid(){return!(Date.now()-this.startTime<this.timeout)&&this.valid&&(this.valid=!1),this.valid}}},98933:(e,t,n)=>{var i={"./simpleWorker":99246,"./simpleWorker.js":99246};function r(e){return Promise.resolve().then(()=>{if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n(i[e])})}r.keys=()=>Object.keys(i),r.id=98933,e.exports=r},99246:(e,t,n)=>{n.r(t),n.d(t,{SimpleWorkerClient:()=>_,SimpleWorkerServer:()=>N,create:()=>T,logOnceWebWorkerWarning:()=>h});var i=n(73226),r=n(22573),s=n(32293),o=n(54835),a=n(69958),l=n(60891);const u="default",c="$initialize";let d=!1;function h(e){a.HZ&&(d||(d=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(e.message))}class f{constructor(e,t,n,i,r){this.vsWorker=e,this.req=t,this.channel=n,this.method=i,this.args=r,this.type=0}}class p{constructor(e,t,n,i){this.vsWorker=e,this.seq=t,this.res=n,this.err=i,this.type=1}}class m{constructor(e,t,n,i,r){this.vsWorker=e,this.req=t,this.channel=n,this.eventName=i,this.arg=r,this.type=2}}class g{constructor(e,t,n){this.vsWorker=e,this.req=t,this.event=n,this.type=3}}class v{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class y{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,t,n){const i=String(++this._lastSentReq);return new Promise((r,s)=>{this._pendingReplies[i]={resolve:r,reject:s},this._send(new f(this._workerId,i,e,t,n))})}listen(e,t,n){let i=null;const s=new r.vl({onWillAddFirstListener:()=>{i=String(++this._lastSentReq),this._pendingEmitters.set(i,s),this._send(new m(this._workerId,i,e,t,n))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(i),this._send(new v(this._workerId,i)),i=null}});return s.event}handleMessage(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}createProxyToRemoteChannel(e,t){const n={get:(n,i)=>("string"!=typeof i||n[i]||(E(i)?n[i]=t=>this.listen(e,i,t):b(i)?n[i]=this.listen(e,i,void 0):36===i.charCodeAt(0)&&(n[i]=async(...n)=>(await(t?.()),this.sendMessage(e,i,n)))),n[i])};return new Proxy(Object.create(null),n)}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq])return void console.warn("Got reply to unknown seq");const t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let n=e.err;return e.err.$isError&&(n=new Error,n.name=e.err.name,n.message=e.err.message,n.stack=e.err.stack),void t.reject(n)}t.resolve(e.res)}_handleRequestMessage(e){const t=e.req;this._handler.handleMessage(e.channel,e.method,e.args).then(e=>{this._send(new p(this._workerId,t,e,void 0))},e=>{e.detail instanceof Error&&(e.detail=(0,i.cU)(e.detail)),this._send(new p(this._workerId,t,void 0,(0,i.cU)(e)))})}_handleSubscribeEventMessage(e){const t=e.req,n=this._handler.handleEvent(e.channel,e.eventName,e.arg)(e=>{this._send(new g(this._workerId,t,e))});this._pendingEvents.set(t,n)}_handleEventMessage(e){this._pendingEmitters.has(e.req)?this._pendingEmitters.get(e.req).fire(e.event):console.warn("Got event for unknown req")}_handleUnsubscribeEventMessage(e){this._pendingEvents.has(e.req)?(this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)):console.warn("Got unsubscribe for unknown req")}_send(e){const t=[];if(0===e.type)for(let n=0;n<e.args.length;n++)e.args[n]instanceof ArrayBuffer&&t.push(e.args[n]);else 1===e.type&&e.res instanceof ArrayBuffer&&t.push(e.res);this._handler.sendMessage(e,t)}}class _ extends s.jG{constructor(e,t){super(),this._localChannels=new Map,this._worker=this._register(e.create({amdModuleId:"vs/base/common/worker/simpleWorker",esmModuleLocation:t.esmModuleLocation,label:t.label},e=>{this._protocol.handleMessage(e)},e=>{(0,i.dz)(e)})),this._protocol=new y({sendMessage:(e,t)=>{this._worker.postMessage(e,t)},handleMessage:(e,t,n)=>this._handleMessage(e,t,n),handleEvent:(e,t,n)=>this._handleEvent(e,t,n)}),this._protocol.setWorkerId(this._worker.getId());let n=null;const r=globalThis.require;void 0!==r&&"function"==typeof r.getConfig?n=r.getConfig():void 0!==globalThis.requirejs&&(n=globalThis.requirejs.s.contexts._.config),this._onModuleLoaded=this._protocol.sendMessage(u,c,[this._worker.getId(),JSON.parse(JSON.stringify(n)),t.amdModuleId]),this.proxy=this._protocol.createProxyToRemoteChannel(u,async()=>{await this._onModuleLoaded}),this._onModuleLoaded.catch(e=>{this._onError("Worker failed to load "+t.amdModuleId,e)})}_handleMessage(e,t,n){const i=this._localChannels.get(e);if(!i)return Promise.reject(new Error(`Missing channel ${e} on main thread`));if("function"!=typeof i[t])return Promise.reject(new Error(`Missing method ${t} on main thread channel ${e}`));try{return Promise.resolve(i[t].apply(i,n))}catch(e){return Promise.reject(e)}}_handleEvent(e,t,n){const i=this._localChannels.get(e);if(!i)throw new Error(`Missing channel ${e} on main thread`);if(E(t)){const r=i[t].call(i,n);if("function"!=typeof r)throw new Error(`Missing dynamic event ${t} on main thread channel ${e}.`);return r}if(b(t)){const n=i[t];if("function"!=typeof n)throw new Error(`Missing event ${t} on main thread channel ${e}.`);return n}throw new Error(`Malformed event name ${t}`)}setChannel(e,t){this._localChannels.set(e,t)}_onError(e,t){console.error(e),console.info(t)}}function b(e){return"o"===e[0]&&"n"===e[1]&&l.Wv(e.charCodeAt(2))}function E(e){return/^onDynamic/.test(e)&&l.Wv(e.charCodeAt(9))}class N{constructor(e,t){this._localChannels=new Map,this._remoteChannels=new Map,this._requestHandlerFactory=t,this._requestHandler=null,this._protocol=new y({sendMessage:(t,n)=>{e(t,n)},handleMessage:(e,t,n)=>this._handleMessage(e,t,n),handleEvent:(e,t,n)=>this._handleEvent(e,t,n)})}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,t,n){if(e===u&&t===c)return this.initialize(n[0],n[1],n[2]);const i=e===u?this._requestHandler:this._localChannels.get(e);if(!i)return Promise.reject(new Error(`Missing channel ${e} on worker thread`));if("function"!=typeof i[t])return Promise.reject(new Error(`Missing method ${t} on worker thread channel ${e}`));try{return Promise.resolve(i[t].apply(i,n))}catch(e){return Promise.reject(e)}}_handleEvent(e,t,n){const i=e===u?this._requestHandler:this._localChannels.get(e);if(!i)throw new Error(`Missing channel ${e} on worker thread`);if(E(t)){const e=i[t].call(i,n);if("function"!=typeof e)throw new Error(`Missing dynamic event ${t} on request handler.`);return e}if(b(t)){const e=i[t];if("function"!=typeof e)throw new Error(`Missing event ${t} on request handler.`);return e}throw new Error(`Malformed event name ${t}`)}getChannel(e){if(!this._remoteChannels.has(e)){const t=this._protocol.createProxyToRemoteChannel(e);this._remoteChannels.set(e,t)}return this._remoteChannels.get(e)}async initialize(e,t,i){if(this._protocol.setWorkerId(e),!this._requestHandlerFactory){t&&(void 0!==t.baseUrl&&delete t.baseUrl,void 0!==t.paths&&void 0!==t.paths.vs&&delete t.paths.vs,void 0!==t.trustedTypesPolicy&&delete t.trustedTypesPolicy,t.catchError=!0,globalThis.require.config(t));{const e=o.zl.asBrowserUri(`${i}.js`).toString(!0);return n(98933)(`${e}`).then(e=>{if(this._requestHandler=e.create(this),!this._requestHandler)throw new Error("No RequestHandler!")})}}this._requestHandler=this._requestHandlerFactory(this)}}function T(e){return new N(e,null)}}},s={};function o(e){var t=s[e];if(void 0!==t)return t.exports;var n=s[e]={exports:{}};return r[e](n,n.exports,o),n.exports}o.m=r,o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,i){if(1&i&&(n=this(n)),8&i)return n;if("object"==typeof n&&n){if(4&i&&n.__esModule)return n;if(16&i&&"function"==typeof n.then)return n}var r=Object.create(null);o.r(r);var s={};e=e||[null,t({}),t([]),t(t)];for(var a=2&i&&n;("object"==typeof a||"function"==typeof a)&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach(e=>s[e]=()=>n[e]);return s.default=()=>n,o.d(r,s),r},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce((t,n)=>(o.f[n](e,t),t),[])),o.u=e=>e+".js",o.miniCssF=e=>{},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.j=9116,(()=>{var e;if("string"==typeof import.meta.url&&(e=import.meta.url),!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),n={1251:0,8178:0,9116:0},i=e=>{var t,i,{__webpack_ids__:r,__webpack_modules__:s,__webpack_runtime__:a}=e,l=0;for(t in s)o.o(s,t)&&(o.m[t]=s[t]);for(a&&a(o);l<r.length;l++)i=r[l],o.o(n,i)&&n[i]&&n[i][0](),n[r[l]]=0},o.f.j=(e,t)=>{var r=o.o(n,e)?n[e]:void 0;if(0!==r)if(r)t.push(r[1]);else{var s=import("./"+o.u(e)).then(i,t=>{throw 0!==n[e]&&(n[e]=void 0),t});s=Promise.race([s,new Promise(t=>r=n[e]=[t])]),t.push(r[1]=s)}};var a=o(4732);function l(e){return u(e,[])}function u(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:u(t,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";const n=Math.min(10,e.length),i=e.length-n,r=[];for(let i=0;i<n;++i)r.push(u(e[i],t));return 1===i?r.push("... 1 more item"):i>1&&r.push(`... ${i} more items`),"["+r.join(", ")+"]"}(e,n);return function(e,t){const n=Object.entries(e);if(0===n.length)return"{}";if(t.length>2)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]";const i=n.map(([e,n])=>e+": "+u(n,t));return"{ "+i.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}function c(e,t){if(!Boolean(e))throw new Error(t)}class d{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class h{constructor(e,t,n,i,r,s){this.kind=e,this.start=t,this.end=n,this.line=i,this.column=r,this.value=s,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const f={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},p=new Set(Object.keys(f));function m(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&p.has(t)}let g,v;var y;!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(g||(g={})),(y=v||(v={})).NAME="Name",y.DOCUMENT="Document",y.OPERATION_DEFINITION="OperationDefinition",y.VARIABLE_DEFINITION="VariableDefinition",y.SELECTION_SET="SelectionSet",y.FIELD="Field",y.ARGUMENT="Argument",y.FRAGMENT_SPREAD="FragmentSpread",y.INLINE_FRAGMENT="InlineFragment",y.FRAGMENT_DEFINITION="FragmentDefinition",y.VARIABLE="Variable",y.INT="IntValue",y.FLOAT="FloatValue",y.STRING="StringValue",y.BOOLEAN="BooleanValue",y.NULL="NullValue",y.ENUM="EnumValue",y.LIST="ListValue",y.OBJECT="ObjectValue",y.OBJECT_FIELD="ObjectField",y.DIRECTIVE="Directive",y.NAMED_TYPE="NamedType",y.LIST_TYPE="ListType",y.NON_NULL_TYPE="NonNullType",y.SCHEMA_DEFINITION="SchemaDefinition",y.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",y.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",y.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",y.FIELD_DEFINITION="FieldDefinition",y.INPUT_VALUE_DEFINITION="InputValueDefinition",y.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",y.UNION_TYPE_DEFINITION="UnionTypeDefinition",y.ENUM_TYPE_DEFINITION="EnumTypeDefinition",y.ENUM_VALUE_DEFINITION="EnumValueDefinition",y.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",y.DIRECTIVE_DEFINITION="DirectiveDefinition",y.SCHEMA_EXTENSION="SchemaExtension",y.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",y.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",y.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",y.UNION_TYPE_EXTENSION="UnionTypeExtension",y.ENUM_TYPE_EXTENSION="EnumTypeExtension",y.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension";const _=Object.freeze({});function b(e,t,n=f){const i=new Map;for(const e of Object.values(v))i.set(e,N(t,e));let r,s,o,a,u=Array.isArray(e),d=[e],h=-1,p=[];const g=[],y=[];let b=e;do{h++;const e=h===d.length,f=e&&0!==p.length;if(e){if(o=0===y.length?void 0:g[g.length-1],s=a,a=y.pop(),f)if(u){s=s.slice();let e=0;for(const[t,n]of p){const i=t-e;null===n?(s.splice(i,1),e++):s[i]=n}}else{s=Object.defineProperties({},Object.getOwnPropertyDescriptors(s));for(const[e,t]of p)s[e]=t}h=r.index,d=r.keys,p=r.edits,u=r.inArray,r=r.prev}else{if(o=a?u?h:d[h]:void 0,s=a?a[o]:b,null==s)continue;a&&g.push(o)}let v;if(!Array.isArray(s)){var E,T;m(s)||c(!1,`Invalid AST Node: ${l(s)}.`);const n=e?null===(E=i.get(s.kind))||void 0===E?void 0:E.leave:null===(T=i.get(s.kind))||void 0===T?void 0:T.enter;if(v=null==n?void 0:n.call(t,s,o,a,g,y),v===_)break;if(!1===v){if(!e){g.pop();continue}}else if(void 0!==v&&(p.push([o,v]),!e)){if(!m(v)){g.pop();continue}s=v}}var S;void 0===v&&f&&p.push([o,s]),e?g.pop():(r={inArray:u,index:h,keys:d,edits:p,prev:r},u=Array.isArray(s),d=u?s:null!==(S=n[s.kind])&&void 0!==S?S:[],h=-1,p=[],a&&y.push(a),a=s)}while(void 0!==r);return 0!==p.length&&(b=p[p.length-1][1]),b}function E(e){const t=new Array(e.length).fill(null),n=Object.create(null);for(const i of Object.values(v)){let r=!1;const s=new Array(e.length).fill(void 0),o=new Array(e.length).fill(void 0);for(let t=0;t<e.length;++t){const{enter:n,leave:a}=N(e[t],i);r||(r=null!=n||null!=a),s[t]=n,o[t]=a}if(!r)continue;const a={enter(...n){const i=n[0];for(let o=0;o<e.length;o++)if(null===t[o]){var r;const a=null===(r=s[o])||void 0===r?void 0:r.apply(e[o],n);if(!1===a)t[o]=i;else if(a===_)t[o]=_;else if(void 0!==a)return a}},leave(...n){const i=n[0];for(let s=0;s<e.length;s++)if(null===t[s]){var r;const i=null===(r=o[s])||void 0===r?void 0:r.apply(e[s],n);if(i===_)t[s]=_;else if(void 0!==i&&!1!==i)return i}else t[s]===i&&(t[s]=null)}};n[i]=a}return n}function N(e,t){const n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function T(e){return"object"==typeof e&&null!==e}function S(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}const k=/\r\n|[\n\r]/g;function C(e,t){let n=0,i=1;for(const r of e.body.matchAll(k)){if("number"==typeof r.index||S(!1),r.index>=t)break;n=r.index+r[0].length,i+=1}return{line:i,column:t+1-n}}function w(e){return L(e.source,C(e.source,e.start))}function L(e,t){const n=e.locationOffset.column-1,i="".padStart(n)+e.body,r=t.line-1,s=e.locationOffset.line-1,o=t.line+s,a=1===t.line?n:0,l=t.column+a,u=`${e.name}:${o}:${l}\n`,c=i.split(/\r\n|[\n\r]/g),d=c[r];if(d.length>120){const e=Math.floor(l/80),t=l%80,n=[];for(let e=0;e<d.length;e+=80)n.push(d.slice(e,e+80));return u+A([[`${o} |`,n[0]],...n.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(t)],["|",n[e+1]]])}return u+A([[o-1+" |",c[r-1]],[`${o} |`,d],["|","^".padStart(l)],[`${o+1} |`,c[r+1]]])}function A(e){const t=e.filter(([e,t])=>void 0!==t),n=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(n)+(t?" "+t:"")).join("\n")}class I extends Error{constructor(e,t,n,i,r,s,o){var a,l,u;super(e),this.name="GraphQLError",this.path=null!=r?r:void 0,this.originalError=null!=s?s:void 0,this.nodes=x(Array.isArray(t)?t:t?[t]:void 0);const c=x(null===(a=this.nodes)||void 0===a?void 0:a.map(e=>e.loc).filter(e=>null!=e));this.source=null!=n?n:null==c||null===(l=c[0])||void 0===l?void 0:l.source,this.positions=null!=i?i:null==c?void 0:c.map(e=>e.start),this.locations=i&&n?i.map(e=>C(n,e)):null==c?void 0:c.map(e=>C(e.source,e.start));const d=T(null==s?void 0:s.extensions)?null==s?void 0:s.extensions:void 0;this.extensions=null!==(u=null!=o?o:d)&&void 0!==u?u:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=s&&s.stack?Object.defineProperty(this,"stack",{value:s.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,I):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const t of this.nodes)t.loc&&(e+="\n\n"+w(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+L(this.source,t);return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function x(e){return void 0===e||0===e.length?void 0:e}function O(e,t,n){return new I(`Syntax Error: ${n}`,void 0,e,[t])}let R;var D;(D=R||(R={})).SOF="<SOF>",D.EOF="<EOF>",D.BANG="!",D.DOLLAR="$",D.AMP="&",D.PAREN_L="(",D.PAREN_R=")",D.SPREAD="...",D.COLON=":",D.EQUALS="=",D.AT="@",D.BRACKET_L="[",D.BRACKET_R="]",D.BRACE_L="{",D.PIPE="|",D.BRACE_R="}",D.NAME="Name",D.INT="Int",D.FLOAT="Float",D.STRING="String",D.BLOCK_STRING="BlockString",D.COMMENT="Comment";const M=function(e,t){return e instanceof t};class F{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||c(!1,`Body must be a string. Received: ${l(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||c(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||c(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}let P;function $(e){return 9===e||32===e}function V(e){return e>=48&&e<=57}function U(e){return e>=97&&e<=122||e>=65&&e<=90}function B(e){return U(e)||95===e}function j(e){return U(e)||V(e)||95===e}function K(e){var t;let n=Number.MAX_SAFE_INTEGER,i=null,r=-1;for(let t=0;t<e.length;++t){var s;const o=e[t],a=q(o);a!==o.length&&(i=null!==(s=i)&&void 0!==s?s:t,r=t,0!==t&&a<n&&(n=a))}return e.map((e,t)=>0===t?e:e.slice(n)).slice(null!==(t=i)&&void 0!==t?t:0,r+1)}function q(e){let t=0;for(;t<e.length&&$(e.charCodeAt(t));)++t;return t}!function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(P||(P={}));class W{constructor(e){const t=new h(R.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==R.EOF)do{if(e.next)e=e.next;else{const t=J(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===R.COMMENT);return e}}function H(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function G(e,t){return z(e.charCodeAt(t))&&Y(e.charCodeAt(t+1))}function z(e){return e>=55296&&e<=56319}function Y(e){return e>=56320&&e<=57343}function Q(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return R.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function X(e,t,n,i,r){const s=e.line,o=1+n-e.lineStart;return new h(t,n,i,s,o,r)}function J(e,t){const n=e.source.body,i=n.length;let r=t;for(;r<i;){const t=n.charCodeAt(r);switch(t){case 65279:case 9:case 32:case 44:++r;continue;case 10:++r,++e.line,e.lineStart=r;continue;case 13:10===n.charCodeAt(r+1)?r+=2:++r,++e.line,e.lineStart=r;continue;case 35:return Z(e,r);case 33:return X(e,R.BANG,r,r+1);case 36:return X(e,R.DOLLAR,r,r+1);case 38:return X(e,R.AMP,r,r+1);case 40:return X(e,R.PAREN_L,r,r+1);case 41:return X(e,R.PAREN_R,r,r+1);case 46:if(46===n.charCodeAt(r+1)&&46===n.charCodeAt(r+2))return X(e,R.SPREAD,r,r+3);break;case 58:return X(e,R.COLON,r,r+1);case 61:return X(e,R.EQUALS,r,r+1);case 64:return X(e,R.AT,r,r+1);case 91:return X(e,R.BRACKET_L,r,r+1);case 93:return X(e,R.BRACKET_R,r,r+1);case 123:return X(e,R.BRACE_L,r,r+1);case 124:return X(e,R.PIPE,r,r+1);case 125:return X(e,R.BRACE_R,r,r+1);case 34:return 34===n.charCodeAt(r+1)&&34===n.charCodeAt(r+2)?le(e,r):ne(e,r)}if(V(t)||45===t)return ee(e,r,t);if(B(t))return ue(e,r);throw O(e.source,r,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":H(t)||G(n,r)?`Unexpected character: ${Q(e,r)}.`:`Invalid character: ${Q(e,r)}.`)}return X(e,R.EOF,i,i)}function Z(e,t){const n=e.source.body,i=n.length;let r=t+1;for(;r<i;){const e=n.charCodeAt(r);if(10===e||13===e)break;if(H(e))++r;else{if(!G(n,r))break;r+=2}}return X(e,R.COMMENT,t,r,n.slice(t+1,r))}function ee(e,t,n){const i=e.source.body;let r=t,s=n,o=!1;if(45===s&&(s=i.charCodeAt(++r)),48===s){if(s=i.charCodeAt(++r),V(s))throw O(e.source,r,`Invalid number, unexpected digit after 0: ${Q(e,r)}.`)}else r=te(e,r,s),s=i.charCodeAt(r);if(46===s&&(o=!0,s=i.charCodeAt(++r),r=te(e,r,s),s=i.charCodeAt(r)),69!==s&&101!==s||(o=!0,s=i.charCodeAt(++r),43!==s&&45!==s||(s=i.charCodeAt(++r)),r=te(e,r,s),s=i.charCodeAt(r)),46===s||B(s))throw O(e.source,r,`Invalid number, expected digit but got: ${Q(e,r)}.`);return X(e,o?R.FLOAT:R.INT,t,r,i.slice(t,r))}function te(e,t,n){if(!V(n))throw O(e.source,t,`Invalid number, expected digit but got: ${Q(e,t)}.`);const i=e.source.body;let r=t+1;for(;V(i.charCodeAt(r));)++r;return r}function ne(e,t){const n=e.source.body,i=n.length;let r=t+1,s=r,o="";for(;r<i;){const i=n.charCodeAt(r);if(34===i)return o+=n.slice(s,r),X(e,R.STRING,t,r+1,o);if(92!==i){if(10===i||13===i)break;if(H(i))++r;else{if(!G(n,r))throw O(e.source,r,`Invalid character within String: ${Q(e,r)}.`);r+=2}}else{o+=n.slice(s,r);const t=117===n.charCodeAt(r+1)?123===n.charCodeAt(r+2)?ie(e,r):re(e,r):ae(e,r);o+=t.value,r+=t.size,s=r}}throw O(e.source,r,"Unterminated string.")}function ie(e,t){const n=e.source.body;let i=0,r=3;for(;r<12;){const e=n.charCodeAt(t+r++);if(125===e){if(r<5||!H(i))break;return{value:String.fromCodePoint(i),size:r}}if(i=i<<4|oe(e),i<0)break}throw O(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+r)}".`)}function re(e,t){const n=e.source.body,i=se(n,t+2);if(H(i))return{value:String.fromCodePoint(i),size:6};if(z(i)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){const e=se(n,t+8);if(Y(e))return{value:String.fromCodePoint(i,e),size:12}}throw O(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function se(e,t){return oe(e.charCodeAt(t))<<12|oe(e.charCodeAt(t+1))<<8|oe(e.charCodeAt(t+2))<<4|oe(e.charCodeAt(t+3))}function oe(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function ae(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw O(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function le(e,t){const n=e.source.body,i=n.length;let r=e.lineStart,s=t+3,o=s,a="";const l=[];for(;s<i;){const i=n.charCodeAt(s);if(34===i&&34===n.charCodeAt(s+1)&&34===n.charCodeAt(s+2)){a+=n.slice(o,s),l.push(a);const i=X(e,R.BLOCK_STRING,t,s+3,K(l).join("\n"));return e.line+=l.length-1,e.lineStart=r,i}if(92!==i||34!==n.charCodeAt(s+1)||34!==n.charCodeAt(s+2)||34!==n.charCodeAt(s+3))if(10!==i&&13!==i)if(H(i))++s;else{if(!G(n,s))throw O(e.source,s,`Invalid character within String: ${Q(e,s)}.`);s+=2}else a+=n.slice(o,s),l.push(a),13===i&&10===n.charCodeAt(s+1)?s+=2:++s,a="",o=s,r=s;else a+=n.slice(o,s),o=s+1,s+=4}throw O(e.source,s,"Unterminated string.")}function ue(e,t){const n=e.source.body,i=n.length;let r=t+1;for(;r<i&&j(n.charCodeAt(r));)++r;return X(e,R.NAME,t,r,n.slice(t,r))}function ce(e,t){return new de(e,t).parseDocument()}class de{constructor(e,t){const n=function(e){return M(e,F)}(e)?e:new F(e);this._lexer=new W(n),this._options=t}parseName(){const e=this.expectToken(R.NAME);return this.node(e,{kind:v.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:v.DOCUMENT,definitions:this.many(R.SOF,this.parseDefinition,R.EOF)})}parseDefinition(){if(this.peek(R.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===R.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw O(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(R.BRACE_L))return this.node(e,{kind:v.OPERATION_DEFINITION,operation:g.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let n;return this.peek(R.NAME)&&(n=this.parseName()),this.node(e,{kind:v.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(R.NAME);switch(e.value){case"query":return g.QUERY;case"mutation":return g.MUTATION;case"subscription":return g.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(R.PAREN_L,this.parseVariableDefinition,R.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:v.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(R.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(R.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(R.DOLLAR),this.node(e,{kind:v.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:v.SELECTION_SET,selections:this.many(R.BRACE_L,this.parseSelection,R.BRACE_R)})}parseSelection(){return this.peek(R.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,i;return this.expectOptionalToken(R.COLON)?(n=t,i=this.parseName()):i=t,this.node(e,{kind:v.FIELD,alias:n,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(R.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(R.PAREN_L,t,R.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(R.COLON),this.node(t,{kind:v.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(R.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(R.NAME)?this.node(e,{kind:v.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:v.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){var e;const t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacyFragmentVariables)?this.node(t,{kind:v.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:v.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case R.BRACKET_L:return this.parseList(e);case R.BRACE_L:return this.parseObject(e);case R.INT:return this._lexer.advance(),this.node(t,{kind:v.INT,value:t.value});case R.FLOAT:return this._lexer.advance(),this.node(t,{kind:v.FLOAT,value:t.value});case R.STRING:case R.BLOCK_STRING:return this.parseStringLiteral();case R.NAME:switch(this._lexer.advance(),t.value){case"true":return this.node(t,{kind:v.BOOLEAN,value:!0});case"false":return this.node(t,{kind:v.BOOLEAN,value:!1});case"null":return this.node(t,{kind:v.NULL});default:return this.node(t,{kind:v.ENUM,value:t.value})}case R.DOLLAR:if(e){if(this.expectToken(R.DOLLAR),this._lexer.token.kind===R.NAME){const e=this._lexer.token.value;throw O(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this._lexer.advance(),this.node(e,{kind:v.STRING,value:e.value,block:e.kind===R.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:v.LIST,values:this.any(R.BRACKET_L,()=>this.parseValueLiteral(e),R.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:v.OBJECT,fields:this.any(R.BRACE_L,()=>this.parseObjectField(e),R.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(R.COLON),this.node(t,{kind:v.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(R.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(R.AT),this.node(t,{kind:v.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(R.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(R.BRACKET_R),t=this.node(e,{kind:v.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(R.BANG)?this.node(e,{kind:v.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:v.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(R.STRING)||this.peek(R.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),i=this.many(R.BRACE_L,this.parseOperationTypeDefinition,R.BRACE_R);return this.node(e,{kind:v.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:i})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(R.COLON);const n=this.parseNamedType();return this.node(e,{kind:v.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),i=this.parseConstDirectives();return this.node(e,{kind:v.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:i})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:v.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:r,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(R.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(R.BRACE_L,this.parseFieldDefinition,R.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),i=this.parseArgumentDefs();this.expectToken(R.COLON);const r=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(e,{kind:v.FIELD_DEFINITION,description:t,name:n,arguments:i,type:r,directives:s})}parseArgumentDefs(){return this.optionalMany(R.PAREN_L,this.parseInputValueDef,R.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(R.COLON);const i=this.parseTypeReference();let r;this.expectOptionalToken(R.EQUALS)&&(r=this.parseConstValueLiteral());const s=this.parseConstDirectives();return this.node(e,{kind:v.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:r,directives:s})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:v.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:r,fields:s})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),i=this.parseConstDirectives(),r=this.parseUnionMemberTypes();return this.node(e,{kind:v.UNION_TYPE_DEFINITION,description:t,name:n,directives:i,types:r})}parseUnionMemberTypes(){return this.expectOptionalToken(R.EQUALS)?this.delimitedMany(R.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),i=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();return this.node(e,{kind:v.ENUM_TYPE_DEFINITION,description:t,name:n,directives:i,values:r})}parseEnumValuesDefinition(){return this.optionalMany(R.BRACE_L,this.parseEnumValueDefinition,R.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(e,{kind:v.ENUM_VALUE_DEFINITION,description:t,name:n,directives:i})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw O(this._lexer.source,this._lexer.token.start,`${he(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),i=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();return this.node(e,{kind:v.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:i,fields:r})}parseInputFieldsDefinition(){return this.optionalMany(R.BRACE_L,this.parseInputValueDef,R.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===R.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(R.BRACE_L,this.parseOperationTypeDefinition,R.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:v.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:v.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),r=this.parseFieldsDefinition();if(0===n.length&&0===i.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:v.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:r})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),r=this.parseFieldsDefinition();if(0===n.length&&0===i.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:v.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:r})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:v.UNION_TYPE_EXTENSION,name:t,directives:n,types:i})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:v.ENUM_TYPE_EXTENSION,name:t,directives:n,values:i})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:v.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:i})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(R.AT);const n=this.parseName(),i=this.parseArgumentDefs(),r=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const s=this.parseDirectiveLocations();return this.node(e,{kind:v.DIRECTIVE_DEFINITION,description:t,name:n,arguments:i,repeatable:r,locations:s})}parseDirectiveLocations(){return this.delimitedMany(R.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(P,t.value))return t;throw this.unexpected(e)}node(e,t){var n;return!0!==(null===(n=this._options)||void 0===n?void 0:n.noLocation)&&(t.loc=new d(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw O(this._lexer.source,t.start,`Expected ${fe(e)}, found ${he(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this._lexer.advance(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==R.NAME||t.value!==e)throw O(this._lexer.source,t.start,`Expected "${e}", found ${he(t)}.`);this._lexer.advance()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===R.NAME&&t.value===e&&(this._lexer.advance(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return O(this._lexer.source,t.start,`Unexpected ${he(t)}.`)}any(e,t,n){this.expectToken(e);const i=[];for(;!this.expectOptionalToken(n);)i.push(t.call(this));return i}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);const i=[];do{i.push(t.call(this))}while(!this.expectOptionalToken(n));return i}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}}function he(e){const t=e.value;return fe(e.kind)+(null!=t?` "${t}"`:"")}function fe(e){return function(e){return e===R.BANG||e===R.DOLLAR||e===R.AMP||e===R.PAREN_L||e===R.PAREN_R||e===R.SPREAD||e===R.COLON||e===R.EQUALS||e===R.AT||e===R.BRACKET_L||e===R.BRACKET_R||e===R.BRACE_L||e===R.PIPE||e===R.BRACE_R}(e)?`"${e}"`:e}function pe(e,t){const n=Object.create(null);for(const i of e)n[t(i)]=i;return n}function me(e,t){const n=Object.create(null);for(const i of Object.keys(e))n[i]=t(e[i],i);return n}function ge(e){if(null==e)return Object.create(null);if(null===Object.getPrototypeOf(e))return e;const t=Object.create(null);for(const[n,i]of Object.entries(e))t[n]=i;return t}function ve(e,t,n){const i=Object.create(null);for(const r of e)i[t(r)]=n(r);return i}function ye(e,t){const[n,i]=t?[e,t]:[void 0,e];let r=" Did you mean ";n&&(r+=n+" ");const s=i.map(e=>`"${e}"`);switch(s.length){case 0:return"";case 1:return r+s[0]+"?";case 2:return r+s[0]+" or "+s[1]+"?"}const o=s.slice(0,5),a=o.pop();return r+o.join(", ")+", or "+a+"?"}function _e(e){return e}function be(e,t){let n=0,i=0;for(;n<e.length&&i<t.length;){let r=e.charCodeAt(n),s=t.charCodeAt(i);if(Te(r)&&Te(s)){let o=0;do{++n,o=10*o+r-Ee,r=e.charCodeAt(n)}while(Te(r)&&o>0);let a=0;do{++i,a=10*a+s-Ee,s=t.charCodeAt(i)}while(Te(s)&&a>0);if(o<a)return-1;if(o>a)return 1}else{if(r<s)return-1;if(r>s)return 1;++n,++i}}return e.length-t.length}const Ee=48,Ne=57;function Te(e){return!isNaN(e)&&Ee<=e&&e<=Ne}function Se(e,t){const n=Object.create(null),i=new ke(e),r=Math.floor(.4*e.length)+1;for(const e of t){const t=i.measure(e,r);void 0!==t&&(n[e]=t)}return Object.keys(n).sort((e,t)=>{const i=n[e]-n[t];return 0!==i?i:be(e,t)})}class ke{constructor(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=Ce(this._inputLowerCase),this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e)return 0;const n=e.toLowerCase();if(this._inputLowerCase===n)return 1;let i=Ce(n),r=this._inputArray;if(i.length<r.length){const e=i;i=r,r=e}const s=i.length,o=r.length;if(s-o>t)return;const a=this._rows;for(let e=0;e<=o;e++)a[0][e]=e;for(let e=1;e<=s;e++){const n=a[(e-1)%3],s=a[e%3];let l=s[0]=e;for(let t=1;t<=o;t++){const o=i[e-1]===r[t-1]?0:1;let u=Math.min(n[t]+1,s[t-1]+1,n[t-1]+o);if(e>1&&t>1&&i[e-1]===r[t-2]&&i[e-2]===r[t-1]){const n=a[(e-2)%3][t-2];u=Math.min(u,n+1)}u<l&&(l=u),s[t]=u}if(l>t)return}const l=a[s%3][o];return l<=t?l:void 0}}function Ce(e){const t=e.length,n=new Array(t);for(let i=0;i<t;++i)n[i]=e.charCodeAt(i);return n}const we=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function Le(e){return Ae[e.charCodeAt(0)]}const Ae=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];function Ie(e){return b(e,xe)}const xe={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>Oe(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=De("(",Oe(e.variableDefinitions,", "),")"),n=Oe([e.operation,Oe([e.name,t]),Oe(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:i})=>e+": "+t+De(" = ",n)+De(" ",Oe(i," "))},SelectionSet:{leave:({selections:e})=>Re(e)},Field:{leave({alias:e,name:t,arguments:n,directives:i,selectionSet:r}){const s=De("",e,": ")+t;let o=s+De("(",Oe(n,", "),")");return o.length>80&&(o=s+De("(\n",Me(Oe(n,"\n")),"\n)")),Oe([o,Oe(i," "),r]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+De(" ",Oe(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>Oe(["...",De("on ",e),Oe(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:i,selectionSet:r})=>`fragment ${e}${De("(",Oe(n,", "),")")} on ${t} ${De("",Oe(i," ")," ")}`+r},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?function(e){const t=e.replace(/"""/g,'\\"""'),n=t.split(/\r\n|[\n\r]/g),i=1===n.length,r=n.length>1&&n.slice(1).every(e=>0===e.length||$(e.charCodeAt(0))),s=t.endsWith('\\"""'),o=e.endsWith('"')&&!s,a=e.endsWith("\\"),l=o||a,u=!i||e.length>70||l||r||s;let c="";const d=i&&$(e.charCodeAt(0));return(u&&!d||r)&&(c+="\n"),c+=t,(u||l)&&(c+="\n"),'"""'+c+'"""'}(e):`"${e.replace(we,Le)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+Oe(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+Oe(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+De("(",Oe(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>De("",e,"\n")+Oe(["schema",Oe(t," "),Re(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>De("",e,"\n")+Oe(["scalar",t,Oe(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:i,fields:r})=>De("",e,"\n")+Oe(["type",t,De("implements ",Oe(n," & ")),Oe(i," "),Re(r)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:i,directives:r})=>De("",e,"\n")+t+(Fe(n)?De("(\n",Me(Oe(n,"\n")),"\n)"):De("(",Oe(n,", "),")"))+": "+i+De(" ",Oe(r," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:i,directives:r})=>De("",e,"\n")+Oe([t+": "+n,De("= ",i),Oe(r," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:i,fields:r})=>De("",e,"\n")+Oe(["interface",t,De("implements ",Oe(n," & ")),Oe(i," "),Re(r)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:i})=>De("",e,"\n")+Oe(["union",t,Oe(n," "),De("= ",Oe(i," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:i})=>De("",e,"\n")+Oe(["enum",t,Oe(n," "),Re(i)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>De("",e,"\n")+Oe([t,Oe(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:i})=>De("",e,"\n")+Oe(["input",t,Oe(n," "),Re(i)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:i,locations:r})=>De("",e,"\n")+"directive @"+t+(Fe(n)?De("(\n",Me(Oe(n,"\n")),"\n)"):De("(",Oe(n,", "),")"))+(i?" repeatable":"")+" on "+Oe(r," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>Oe(["extend schema",Oe(e," "),Re(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>Oe(["extend scalar",e,Oe(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:i})=>Oe(["extend type",e,De("implements ",Oe(t," & ")),Oe(n," "),Re(i)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:i})=>Oe(["extend interface",e,De("implements ",Oe(t," & ")),Oe(n," "),Re(i)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>Oe(["extend union",e,Oe(t," "),De("= ",Oe(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>Oe(["extend enum",e,Oe(t," "),Re(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>Oe(["extend input",e,Oe(t," "),Re(n)]," ")}};function Oe(e,t=""){var n;return null!==(n=null==e?void 0:e.filter(e=>e).join(t))&&void 0!==n?n:""}function Re(e){return De("{\n",Me(Oe(e,"\n")),"\n}")}function De(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function Me(e){return De("  ",e.replace(/\n/g,"\n  "))}function Fe(e){var t;return null!==(t=null==e?void 0:e.some(e=>e.includes("\n")))&&void 0!==t&&t}function Pe(e,t){switch(e.kind){case v.NULL:return null;case v.INT:return parseInt(e.value,10);case v.FLOAT:return parseFloat(e.value);case v.STRING:case v.ENUM:case v.BOOLEAN:return e.value;case v.LIST:return e.values.map(e=>Pe(e,t));case v.OBJECT:return ve(e.fields,e=>e.name.value,e=>Pe(e.value,t));case v.VARIABLE:return null==t?void 0:t[e.name.value]}}function $e(e){if(null!=e||c(!1,"Must provide name."),"string"==typeof e||c(!1,"Expected name to be a string."),0===e.length)throw new I("Expected name to be a non-empty string.");for(let t=1;t<e.length;++t)if(!j(e.charCodeAt(t)))throw new I(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!B(e.charCodeAt(0)))throw new I(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function Ve(e){if("true"===e||"false"===e||"null"===e)throw new I(`Enum values cannot be named: ${e}`);return $e(e)}function Ue(e){return Be(e)||je(e)||Ke(e)||qe(e)||We(e)||He(e)||Ge(e)||ze(e)}function Be(e){return M(e,ut)}function je(e){return M(e,ct)}function Ke(e){return M(e,yt)}function qe(e){return M(e,_t)}function We(e){return M(e,Et)}function He(e){return M(e,Tt)}function Ge(e){return M(e,et)}function ze(e){return M(e,tt)}function Ye(e){return Be(e)||We(e)||He(e)||nt(e)&&Ye(e.ofType)}function Qe(e){return Be(e)||je(e)||Ke(e)||qe(e)||We(e)||nt(e)&&Qe(e.ofType)}function Xe(e){return Be(e)||We(e)}function Je(e){return je(e)||Ke(e)||qe(e)}function Ze(e){return Ke(e)||qe(e)}class et{constructor(e){Ue(e)||c(!1,`Expected ${l(e)} to be a GraphQL type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}class tt{constructor(e){it(e)||c(!1,`Expected ${l(e)} to be a GraphQL nullable type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}function nt(e){return Ge(e)||ze(e)}function it(e){return Ue(e)&&!ze(e)}function rt(e){if(e)return ze(e)?e.ofType:e}function st(e){return Be(e)||je(e)||Ke(e)||qe(e)||We(e)||He(e)}function ot(e){if(e){let t=e;for(;nt(t);)t=t.ofType;return t}}function at(e){return"function"==typeof e?e():e}function lt(e){return"function"==typeof e?e():e}class ut{constructor(e){var t,n,i,r;const s=null!==(t=e.parseValue)&&void 0!==t?t:_e;this.name=$e(e.name),this.description=e.description,this.specifiedByURL=e.specifiedByURL,this.serialize=null!==(n=e.serialize)&&void 0!==n?n:_e,this.parseValue=s,this.parseLiteral=null!==(i=e.parseLiteral)&&void 0!==i?i:(e,t)=>s(Pe(e,t)),this.extensions=ge(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(r=e.extensionASTNodes)&&void 0!==r?r:[],null==e.specifiedByURL||"string"==typeof e.specifiedByURL||c(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${l(e.specifiedByURL)}.`),null==e.serialize||"function"==typeof e.serialize||c(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),e.parseLiteral&&("function"==typeof e.parseValue&&"function"==typeof e.parseLiteral||c(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class ct{constructor(e){var t;this.name=$e(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=ge(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=()=>ht(e),this._interfaces=()=>dt(e),null==e.isTypeOf||"function"==typeof e.isTypeOf||c(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${l(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:mt(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function dt(e){var t;const n=at(null!==(t=e.interfaces)&&void 0!==t?t:[]);return Array.isArray(n)||c(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function ht(e){const t=lt(e.fields);return pt(t)||c(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),me(t,(t,n)=>{var i;pt(t)||c(!1,`${e.name}.${n} field config must be an object.`),null==t.resolve||"function"==typeof t.resolve||c(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${l(t.resolve)}.`);const r=null!==(i=t.args)&&void 0!==i?i:{};return pt(r)||c(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:$e(n),description:t.description,type:t.type,args:ft(r),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:ge(t.extensions),astNode:t.astNode}})}function ft(e){return Object.entries(e).map(([e,t])=>({name:$e(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:ge(t.extensions),astNode:t.astNode}))}function pt(e){return T(e)&&!Array.isArray(e)}function mt(e){return me(e,e=>({description:e.description,type:e.type,args:gt(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function gt(e){return ve(e,e=>e.name,e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function vt(e){return ze(e.type)&&void 0===e.defaultValue}class yt{constructor(e){var t;this.name=$e(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=ge(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=ht.bind(void 0,e),this._interfaces=dt.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||c(!1,`${this.name} must provide "resolveType" as a function, but got: ${l(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:mt(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class _t{constructor(e){var t;this.name=$e(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=ge(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._types=bt.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||c(!1,`${this.name} must provide "resolveType" as a function, but got: ${l(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return"function"==typeof this._types&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function bt(e){const t=at(e.types);return Array.isArray(t)||c(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}class Et{constructor(e){var t,n,i;this.name=$e(e.name),this.description=e.description,this.extensions=ge(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._values=(n=this.name,pt(i=e.values)||c(!1,`${n} values must be an object with value names as keys.`),Object.entries(i).map(([e,t])=>(pt(t)||c(!1,`${n}.${e} must refer to an object with a "value" key representing an internal value but got: ${l(t)}.`),{name:Ve(e),description:t.description,value:void 0!==t.value?t.value:e,deprecationReason:t.deprecationReason,extensions:ge(t.extensions),astNode:t.astNode}))),this._valueLookup=new Map(this._values.map(e=>[e.value,e])),this._nameLookup=pe(this._values,e=>e.name)}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return this._values}getValue(e){return this._nameLookup[e]}serialize(e){const t=this._valueLookup.get(e);if(void 0===t)throw new I(`Enum "${this.name}" cannot represent value: ${l(e)}`);return t.name}parseValue(e){if("string"!=typeof e){const t=l(e);throw new I(`Enum "${this.name}" cannot represent non-string value: ${t}.`+Nt(this,t))}const t=this.getValue(e);if(null==t)throw new I(`Value "${e}" does not exist in "${this.name}" enum.`+Nt(this,e));return t.value}parseLiteral(e,t){if(e.kind!==v.ENUM){const t=Ie(e);throw new I(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+Nt(this,t),e)}const n=this.getValue(e.value);if(null==n){const t=Ie(e);throw new I(`Value "${t}" does not exist in "${this.name}" enum.`+Nt(this,t),e)}return n.value}toConfig(){const e=ve(this.getValues(),e=>e.name,e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Nt(e,t){return ye("the enum value",Se(t,e.getValues().map(e=>e.name)))}class Tt{constructor(e){var t;this.name=$e(e.name),this.description=e.description,this.extensions=ge(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=St.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}toConfig(){const e=me(this.getFields(),e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function St(e){const t=lt(e.fields);return pt(t)||c(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),me(t,(t,n)=>(!("resolve"in t)||c(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:$e(n),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:ge(t.extensions),astNode:t.astNode}))}function kt(e){return ze(e.type)&&void 0===e.defaultValue}const Ct=2147483647,wt=-2147483648,Lt=new ut({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){const t=Dt(e);if("boolean"==typeof t)return t?1:0;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isInteger(n))throw new I(`Int cannot represent non-integer value: ${l(t)}`);if(n>Ct||n<wt)throw new I("Int cannot represent non 32-bit signed integer value: "+l(t));return n},parseValue(e){if("number"!=typeof e||!Number.isInteger(e))throw new I(`Int cannot represent non-integer value: ${l(e)}`);if(e>Ct||e<wt)throw new I(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==v.INT)throw new I(`Int cannot represent non-integer value: ${Ie(e)}`,e);const t=parseInt(e.value,10);if(t>Ct||t<wt)throw new I(`Int cannot represent non 32-bit signed integer value: ${e.value}`,e);return t}}),At=new ut({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize(e){const t=Dt(e);if("boolean"==typeof t)return t?1:0;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isFinite(n))throw new I(`Float cannot represent non numeric value: ${l(t)}`);return n},parseValue(e){if("number"!=typeof e||!Number.isFinite(e))throw new I(`Float cannot represent non numeric value: ${l(e)}`);return e},parseLiteral(e){if(e.kind!==v.FLOAT&&e.kind!==v.INT)throw new I(`Float cannot represent non numeric value: ${Ie(e)}`,e);return parseFloat(e.value)}}),It=new ut({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize(e){const t=Dt(e);if("string"==typeof t)return t;if("boolean"==typeof t)return t?"true":"false";if("number"==typeof t&&Number.isFinite(t))return t.toString();throw new I(`String cannot represent value: ${l(e)}`)},parseValue(e){if("string"!=typeof e)throw new I(`String cannot represent a non string value: ${l(e)}`);return e},parseLiteral(e){if(e.kind!==v.STRING)throw new I(`String cannot represent a non string value: ${Ie(e)}`,e);return e.value}}),xt=new ut({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){const t=Dt(e);if("boolean"==typeof t)return t;if(Number.isFinite(t))return 0!==t;throw new I(`Boolean cannot represent a non boolean value: ${l(t)}`)},parseValue(e){if("boolean"!=typeof e)throw new I(`Boolean cannot represent a non boolean value: ${l(e)}`);return e},parseLiteral(e){if(e.kind!==v.BOOLEAN)throw new I(`Boolean cannot represent a non boolean value: ${Ie(e)}`,e);return e.value}}),Ot=new ut({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize(e){const t=Dt(e);if("string"==typeof t)return t;if(Number.isInteger(t))return String(t);throw new I(`ID cannot represent value: ${l(e)}`)},parseValue(e){if("string"==typeof e)return e;if("number"==typeof e&&Number.isInteger(e))return e.toString();throw new I(`ID cannot represent value: ${l(e)}`)},parseLiteral(e){if(e.kind!==v.STRING&&e.kind!==v.INT)throw new I("ID cannot represent a non-string and non-integer value: "+Ie(e),e);return e.value}}),Rt=Object.freeze([It,Lt,At,xt,Ot]);function Dt(e){if(T(e)){if("function"==typeof e.valueOf){const t=e.valueOf();if(!T(t))return t}if("function"==typeof e.toJSON)return e.toJSON()}return e}function Mt(e,t){if(ze(t)){const n=Mt(e,t.ofType);return(null==n?void 0:n.kind)===v.NULL?null:n}if(null===e)return{kind:v.NULL};if(void 0===e)return null;if(Ge(t)){const i=t.ofType;if("object"==typeof(n=e)&&"function"==typeof(null==n?void 0:n[Symbol.iterator])){const t=[];for(const n of e){const e=Mt(n,i);null!=e&&t.push(e)}return{kind:v.LIST,values:t}}return Mt(e,i)}var n;if(He(t)){if(!T(e))return null;const n=[];for(const i of Object.values(t.getFields())){const t=Mt(e[i.name],i.type);t&&n.push({kind:v.OBJECT_FIELD,name:{kind:v.NAME,value:i.name},value:t})}return{kind:v.OBJECT,fields:n}}if(Xe(t)){const n=t.serialize(e);if(null==n)return null;if("boolean"==typeof n)return{kind:v.BOOLEAN,value:n};if("number"==typeof n&&Number.isFinite(n)){const e=String(n);return Ft.test(e)?{kind:v.INT,value:e}:{kind:v.FLOAT,value:e}}if("string"==typeof n)return We(t)?{kind:v.ENUM,value:n}:t===Ot&&Ft.test(n)?{kind:v.INT,value:n}:{kind:v.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${l(n)}.`)}S(!1,"Unexpected input type: "+l(t))}const Ft=/^-?(?:0|[1-9][0-9]*)$/,Pt=new ct({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:It,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new tt(new et(new tt(Ut))),resolve:e=>Object.values(e.getTypeMap())},queryType:{description:"The type that query operations will be rooted at.",type:new tt(Ut),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Ut,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Ut,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new tt(new et(new tt($t))),resolve:e=>e.getDirectives()}})}),$t=new ct({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:()=>({name:{type:new tt(It),resolve:e=>e.name},description:{type:It,resolve:e=>e.description},isRepeatable:{type:new tt(xt),resolve:e=>e.isRepeatable},locations:{type:new tt(new et(new tt(Vt))),resolve:e=>e.locations},args:{type:new tt(new et(new tt(jt))),args:{includeDeprecated:{type:xt,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter(e=>null==e.deprecationReason)}})}),Vt=new Et({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:P.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:P.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:P.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:P.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:P.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:P.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:P.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:P.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:P.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:P.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:P.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:P.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:P.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:P.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:P.UNION,description:"Location adjacent to a union definition."},ENUM:{value:P.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:P.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:P.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:P.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),Ut=new ct({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new tt(Wt),resolve:e=>Be(e)?qt.SCALAR:je(e)?qt.OBJECT:Ke(e)?qt.INTERFACE:qe(e)?qt.UNION:We(e)?qt.ENUM:He(e)?qt.INPUT_OBJECT:Ge(e)?qt.LIST:ze(e)?qt.NON_NULL:void S(!1,`Unexpected type: "${l(e)}".`)},name:{type:It,resolve:e=>"name"in e?e.name:void 0},description:{type:It,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:It,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new et(new tt(Bt)),args:{includeDeprecated:{type:xt,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(je(e)||Ke(e)){const n=Object.values(e.getFields());return t?n:n.filter(e=>null==e.deprecationReason)}}},interfaces:{type:new et(new tt(Ut)),resolve(e){if(je(e)||Ke(e))return e.getInterfaces()}},possibleTypes:{type:new et(new tt(Ut)),resolve(e,t,n,{schema:i}){if(Ze(e))return i.getPossibleTypes(e)}},enumValues:{type:new et(new tt(Kt)),args:{includeDeprecated:{type:xt,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(We(e)){const n=e.getValues();return t?n:n.filter(e=>null==e.deprecationReason)}}},inputFields:{type:new et(new tt(jt)),args:{includeDeprecated:{type:xt,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(He(e)){const n=Object.values(e.getFields());return t?n:n.filter(e=>null==e.deprecationReason)}}},ofType:{type:Ut,resolve:e=>"ofType"in e?e.ofType:void 0}})}),Bt=new ct({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new tt(It),resolve:e=>e.name},description:{type:It,resolve:e=>e.description},args:{type:new tt(new et(new tt(jt))),args:{includeDeprecated:{type:xt,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter(e=>null==e.deprecationReason)},type:{type:new tt(Ut),resolve:e=>e.type},isDeprecated:{type:new tt(xt),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:It,resolve:e=>e.deprecationReason}})}),jt=new ct({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new tt(It),resolve:e=>e.name},description:{type:It,resolve:e=>e.description},type:{type:new tt(Ut),resolve:e=>e.type},defaultValue:{type:It,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:n}=e,i=Mt(n,t);return i?Ie(i):null}},isDeprecated:{type:new tt(xt),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:It,resolve:e=>e.deprecationReason}})}),Kt=new ct({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new tt(It),resolve:e=>e.name},description:{type:It,resolve:e=>e.description},isDeprecated:{type:new tt(xt),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:It,resolve:e=>e.deprecationReason}})});let qt;!function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"}(qt||(qt={}));const Wt=new Et({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:qt.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:qt.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:qt.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:qt.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:qt.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:qt.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:qt.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:qt.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),Ht={name:"__schema",type:new tt(Pt),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:i})=>i,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Gt={name:"__type",type:Ut,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new tt(It),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:i})=>i.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},zt={name:"__typename",type:new tt(It),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:i})=>i.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Yt=Object.freeze([Pt,$t,Vt,Ut,Bt,jt,Kt,Wt]);function Qt(e){return Yt.some(({name:t})=>e.name===t)}function Xt(e,t){return e===t||(ze(e)&&ze(t)||!(!Ge(e)||!Ge(t)))&&Xt(e.ofType,t.ofType)}function Jt(e,t,n){return t===n||(ze(n)?!!ze(t)&&Jt(e,t.ofType,n.ofType):ze(t)?Jt(e,t.ofType,n):Ge(n)?!!Ge(t)&&Jt(e,t.ofType,n.ofType):!Ge(t)&&Ze(n)&&(Ke(t)||je(t))&&e.isSubType(n,t))}function Zt(e,t,n){return t===n||(Ze(t)?Ze(n)?e.getPossibleTypes(t).some(t=>e.isSubType(n,t)):e.isSubType(t,n):!!Ze(n)&&e.isSubType(n,t))}var en,tn,nn,rn,sn,on,an,ln,un,cn,dn,hn,fn,pn,mn,gn,vn,yn,_n,bn,En,Nn,Tn,Sn,kn,Cn,wn,Ln,An,In,xn,On,Rn,Dn,Mn,Fn,Pn,$n,Vn,Un,Bn,jn,Kn,qn,Wn,Hn,Gn,zn,Yn,Qn,Xn,Jn,Zn,ei,ti,ni,ii,ri,si,oi,ai,li,ui,ci,di,hi,fi,pi,mi,gi,vi,yi,_i,bi,Ei,Ni,Ti,Si,ki,Ci,wi,Li;!function(e){e.is=function(e){return"string"==typeof e}}(en||(en={})),(tn||(tn={})).is=function(e){return"string"==typeof e},function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647,e.is=function(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}}(nn||(nn={})),function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647,e.is=function(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}}(rn||(rn={})),(Ci=sn||(sn={})).create=function(e,t){return e===Number.MAX_VALUE&&(e=rn.MAX_VALUE),t===Number.MAX_VALUE&&(t=rn.MAX_VALUE),{line:e,character:t}},Ci.is=function(e){let t=e;return Li.objectLiteral(t)&&Li.uinteger(t.line)&&Li.uinteger(t.character)},(ki=on||(on={})).create=function(e,t,n,i){if(Li.uinteger(e)&&Li.uinteger(t)&&Li.uinteger(n)&&Li.uinteger(i))return{start:sn.create(e,t),end:sn.create(n,i)};if(sn.is(e)&&sn.is(t))return{start:e,end:t};throw new Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${i}]`)},ki.is=function(e){let t=e;return Li.objectLiteral(t)&&sn.is(t.start)&&sn.is(t.end)},function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){let t=e;return Li.objectLiteral(t)&&on.is(t.range)&&(Li.string(t.uri)||Li.undefined(t.uri))}}(an||(an={})),function(e){e.create=function(e,t,n,i){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:i}},e.is=function(e){let t=e;return Li.objectLiteral(t)&&on.is(t.targetRange)&&Li.string(t.targetUri)&&on.is(t.targetSelectionRange)&&(on.is(t.originSelectionRange)||Li.undefined(t.originSelectionRange))}}(ln||(ln={})),function(e){e.create=function(e,t,n,i){return{red:e,green:t,blue:n,alpha:i}},e.is=function(e){const t=e;return Li.objectLiteral(t)&&Li.numberRange(t.red,0,1)&&Li.numberRange(t.green,0,1)&&Li.numberRange(t.blue,0,1)&&Li.numberRange(t.alpha,0,1)}}(un||(un={})),function(e){e.create=function(e,t){return{range:e,color:t}},e.is=function(e){const t=e;return Li.objectLiteral(t)&&on.is(t.range)&&un.is(t.color)}}(cn||(cn={})),function(e){e.create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},e.is=function(e){const t=e;return Li.objectLiteral(t)&&Li.string(t.label)&&(Li.undefined(t.textEdit)||bn.is(t))&&(Li.undefined(t.additionalTextEdits)||Li.typedArray(t.additionalTextEdits,bn.is))}}(dn||(dn={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(hn||(hn={})),function(e){e.create=function(e,t,n,i,r,s){const o={startLine:e,endLine:t};return Li.defined(n)&&(o.startCharacter=n),Li.defined(i)&&(o.endCharacter=i),Li.defined(r)&&(o.kind=r),Li.defined(s)&&(o.collapsedText=s),o},e.is=function(e){const t=e;return Li.objectLiteral(t)&&Li.uinteger(t.startLine)&&Li.uinteger(t.startLine)&&(Li.undefined(t.startCharacter)||Li.uinteger(t.startCharacter))&&(Li.undefined(t.endCharacter)||Li.uinteger(t.endCharacter))&&(Li.undefined(t.kind)||Li.string(t.kind))}}(fn||(fn={})),function(e){e.create=function(e,t){return{location:e,message:t}},e.is=function(e){let t=e;return Li.defined(t)&&an.is(t.location)&&Li.string(t.message)}}(pn||(pn={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(mn||(mn={})),function(e){e.Unnecessary=1,e.Deprecated=2}(gn||(gn={})),function(e){e.is=function(e){const t=e;return Li.objectLiteral(t)&&Li.string(t.href)}}(vn||(vn={})),function(e){e.create=function(e,t,n,i,r,s){let o={range:e,message:t};return Li.defined(n)&&(o.severity=n),Li.defined(i)&&(o.code=i),Li.defined(r)&&(o.source=r),Li.defined(s)&&(o.relatedInformation=s),o},e.is=function(e){var t;let n=e;return Li.defined(n)&&on.is(n.range)&&Li.string(n.message)&&(Li.number(n.severity)||Li.undefined(n.severity))&&(Li.integer(n.code)||Li.string(n.code)||Li.undefined(n.code))&&(Li.undefined(n.codeDescription)||Li.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(Li.string(n.source)||Li.undefined(n.source))&&(Li.undefined(n.relatedInformation)||Li.typedArray(n.relatedInformation,pn.is))}}(yn||(yn={})),function(e){e.create=function(e,t,...n){let i={title:e,command:t};return Li.defined(n)&&n.length>0&&(i.arguments=n),i},e.is=function(e){let t=e;return Li.defined(t)&&Li.string(t.title)&&Li.string(t.command)}}(_n||(_n={})),function(e){e.replace=function(e,t){return{range:e,newText:t}},e.insert=function(e,t){return{range:{start:e,end:e},newText:t}},e.del=function(e){return{range:e,newText:""}},e.is=function(e){const t=e;return Li.objectLiteral(t)&&Li.string(t.newText)&&on.is(t.range)}}(bn||(bn={})),function(e){e.create=function(e,t,n){const i={label:e};return void 0!==t&&(i.needsConfirmation=t),void 0!==n&&(i.description=n),i},e.is=function(e){const t=e;return Li.objectLiteral(t)&&Li.string(t.label)&&(Li.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(Li.string(t.description)||void 0===t.description)}}(En||(En={})),function(e){e.is=function(e){const t=e;return Li.string(t)}}(Nn||(Nn={})),function(e){e.replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},e.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},e.del=function(e,t){return{range:e,newText:"",annotationId:t}},e.is=function(e){const t=e;return bn.is(t)&&(En.is(t.annotationId)||Nn.is(t.annotationId))}}(Tn||(Tn={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){let t=e;return Li.defined(t)&&xn.is(t.textDocument)&&Array.isArray(t.edits)}}(Sn||(Sn={})),function(e){e.create=function(e,t,n){let i={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(i.options=t),void 0!==n&&(i.annotationId=n),i},e.is=function(e){let t=e;return t&&"create"===t.kind&&Li.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||Li.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Li.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||Nn.is(t.annotationId))}}(kn||(kn={})),function(e){e.create=function(e,t,n,i){let r={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(r.options=n),void 0!==i&&(r.annotationId=i),r},e.is=function(e){let t=e;return t&&"rename"===t.kind&&Li.string(t.oldUri)&&Li.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||Li.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Li.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||Nn.is(t.annotationId))}}(Cn||(Cn={})),function(e){e.create=function(e,t,n){let i={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(i.options=t),void 0!==n&&(i.annotationId=n),i},e.is=function(e){let t=e;return t&&"delete"===t.kind&&Li.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||Li.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||Li.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||Nn.is(t.annotationId))}}(wn||(wn={})),function(e){e.is=function(e){let t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every(e=>Li.string(e.kind)?kn.is(e)||Cn.is(e)||wn.is(e):Sn.is(e)))}}(Ln||(Ln={})),function(e){e.create=function(e){return{uri:e}},e.is=function(e){let t=e;return Li.defined(t)&&Li.string(t.uri)}}(An||(An={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){let t=e;return Li.defined(t)&&Li.string(t.uri)&&Li.integer(t.version)}}(In||(In={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){let t=e;return Li.defined(t)&&Li.string(t.uri)&&(null===t.version||Li.integer(t.version))}}(xn||(xn={})),function(e){e.create=function(e,t,n,i){return{uri:e,languageId:t,version:n,text:i}},e.is=function(e){let t=e;return Li.defined(t)&&Li.string(t.uri)&&Li.string(t.languageId)&&Li.integer(t.version)&&Li.string(t.text)}}(On||(On={})),function(e){e.PlainText="plaintext",e.Markdown="markdown",e.is=function(t){const n=t;return n===e.PlainText||n===e.Markdown}}(Rn||(Rn={})),function(e){e.is=function(e){const t=e;return Li.objectLiteral(e)&&Rn.is(t.kind)&&Li.string(t.value)}}(Dn||(Dn={})),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(Mn||(Mn={})),function(e){e.PlainText=1,e.Snippet=2}(Fn||(Fn={})),function(e){e.Deprecated=1}(Pn||(Pn={})),function(e){e.create=function(e,t,n){return{newText:e,insert:t,replace:n}},e.is=function(e){const t=e;return t&&Li.string(t.newText)&&on.is(t.insert)&&on.is(t.replace)}}($n||($n={})),function(e){e.asIs=1,e.adjustIndentation=2}(Vn||(Vn={})),function(e){e.is=function(e){const t=e;return t&&(Li.string(t.detail)||void 0===t.detail)&&(Li.string(t.description)||void 0===t.description)}}(Un||(Un={})),function(e){e.create=function(e){return{label:e}}}(Bn||(Bn={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}(jn||(jn={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){const t=e;return Li.string(t)||Li.objectLiteral(t)&&Li.string(t.language)&&Li.string(t.value)}}(Kn||(Kn={})),function(e){e.is=function(e){let t=e;return!!t&&Li.objectLiteral(t)&&(Dn.is(t.contents)||Kn.is(t.contents)||Li.typedArray(t.contents,Kn.is))&&(void 0===e.range||on.is(e.range))}}(qn||(qn={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(Wn||(Wn={})),function(e){e.create=function(e,t,...n){let i={label:e};return Li.defined(t)&&(i.documentation=t),Li.defined(n)?i.parameters=n:i.parameters=[],i}}(Hn||(Hn={})),function(e){e.Text=1,e.Read=2,e.Write=3}(Gn||(Gn={})),function(e){e.create=function(e,t){let n={range:e};return Li.number(t)&&(n.kind=t),n}}(zn||(zn={})),function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26}(Yn||(Yn={})),function(e){e.Deprecated=1}(Qn||(Qn={})),function(e){e.create=function(e,t,n,i,r){let s={name:e,kind:t,location:{uri:i,range:n}};return r&&(s.containerName=r),s}}(Xn||(Xn={})),function(e){e.create=function(e,t,n,i){return void 0!==i?{name:e,kind:t,location:{uri:n,range:i}}:{name:e,kind:t,location:{uri:n}}}}(Jn||(Jn={})),function(e){e.create=function(e,t,n,i,r,s){let o={name:e,detail:t,kind:n,range:i,selectionRange:r};return void 0!==s&&(o.children=s),o},e.is=function(e){let t=e;return t&&Li.string(t.name)&&Li.number(t.kind)&&on.is(t.range)&&on.is(t.selectionRange)&&(void 0===t.detail||Li.string(t.detail))&&(void 0===t.deprecated||Li.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))}}(Zn||(Zn={})),function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"}(ei||(ei={})),function(e){e.Invoked=1,e.Automatic=2}(ti||(ti={})),function(e){e.create=function(e,t,n){let i={diagnostics:e};return null!=t&&(i.only=t),null!=n&&(i.triggerKind=n),i},e.is=function(e){let t=e;return Li.defined(t)&&Li.typedArray(t.diagnostics,yn.is)&&(void 0===t.only||Li.typedArray(t.only,Li.string))&&(void 0===t.triggerKind||t.triggerKind===ti.Invoked||t.triggerKind===ti.Automatic)}}(ni||(ni={})),function(e){e.create=function(e,t,n){let i={title:e},r=!0;return"string"==typeof t?(r=!1,i.kind=t):_n.is(t)?i.command=t:i.edit=t,r&&void 0!==n&&(i.kind=n),i},e.is=function(e){let t=e;return t&&Li.string(t.title)&&(void 0===t.diagnostics||Li.typedArray(t.diagnostics,yn.is))&&(void 0===t.kind||Li.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||_n.is(t.command))&&(void 0===t.isPreferred||Li.boolean(t.isPreferred))&&(void 0===t.edit||Ln.is(t.edit))}}(ii||(ii={})),function(e){e.create=function(e,t){let n={range:e};return Li.defined(t)&&(n.data=t),n},e.is=function(e){let t=e;return Li.defined(t)&&on.is(t.range)&&(Li.undefined(t.command)||_n.is(t.command))}}(ri||(ri={})),function(e){e.create=function(e,t){return{tabSize:e,insertSpaces:t}},e.is=function(e){let t=e;return Li.defined(t)&&Li.uinteger(t.tabSize)&&Li.boolean(t.insertSpaces)}}(si||(si={})),function(e){e.create=function(e,t,n){return{range:e,target:t,data:n}},e.is=function(e){let t=e;return Li.defined(t)&&on.is(t.range)&&(Li.undefined(t.target)||Li.string(t.target))}}(oi||(oi={})),function(e){e.create=function(e,t){return{range:e,parent:t}},e.is=function(t){let n=t;return Li.objectLiteral(n)&&on.is(n.range)&&(void 0===n.parent||e.is(n.parent))}}(ai||(ai={})),function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"}(li||(li={})),function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"}(ui||(ui={})),function(e){e.is=function(e){const t=e;return Li.objectLiteral(t)&&(void 0===t.resultId||"string"==typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"==typeof t.data[0])}}(ci||(ci={})),function(e){e.create=function(e,t){return{range:e,text:t}},e.is=function(e){const t=e;return null!=t&&on.is(t.range)&&Li.string(t.text)}}(di||(di={})),function(e){e.create=function(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}},e.is=function(e){const t=e;return null!=t&&on.is(t.range)&&Li.boolean(t.caseSensitiveLookup)&&(Li.string(t.variableName)||void 0===t.variableName)}}(hi||(hi={})),function(e){e.create=function(e,t){return{range:e,expression:t}},e.is=function(e){const t=e;return null!=t&&on.is(t.range)&&(Li.string(t.expression)||void 0===t.expression)}}(fi||(fi={})),function(e){e.create=function(e,t){return{frameId:e,stoppedLocation:t}},e.is=function(e){const t=e;return Li.defined(t)&&on.is(e.stoppedLocation)}}(pi||(pi={})),function(e){e.Type=1,e.Parameter=2,e.is=function(e){return 1===e||2===e}}(mi||(mi={})),function(e){e.create=function(e){return{value:e}},e.is=function(e){const t=e;return Li.objectLiteral(t)&&(void 0===t.tooltip||Li.string(t.tooltip)||Dn.is(t.tooltip))&&(void 0===t.location||an.is(t.location))&&(void 0===t.command||_n.is(t.command))}}(gi||(gi={})),function(e){e.create=function(e,t,n){const i={position:e,label:t};return void 0!==n&&(i.kind=n),i},e.is=function(e){const t=e;return Li.objectLiteral(t)&&sn.is(t.position)&&(Li.string(t.label)||Li.typedArray(t.label,gi.is))&&(void 0===t.kind||mi.is(t.kind))&&void 0===t.textEdits||Li.typedArray(t.textEdits,bn.is)&&(void 0===t.tooltip||Li.string(t.tooltip)||Dn.is(t.tooltip))&&(void 0===t.paddingLeft||Li.boolean(t.paddingLeft))&&(void 0===t.paddingRight||Li.boolean(t.paddingRight))}}(vi||(vi={})),function(e){e.createSnippet=function(e){return{kind:"snippet",value:e}}}(yi||(yi={})),function(e){e.create=function(e,t,n,i){return{insertText:e,filterText:t,range:n,command:i}}}(_i||(_i={})),function(e){e.create=function(e){return{items:e}}}(bi||(bi={})),function(e){e.Invoked=0,e.Automatic=1}(Ei||(Ei={})),function(e){e.create=function(e,t){return{range:e,text:t}}}(Ni||(Ni={})),function(e){e.create=function(e,t){return{triggerKind:e,selectedCompletionInfo:t}}}(Ti||(Ti={})),function(e){e.is=function(e){const t=e;return Li.objectLiteral(t)&&tn.is(t.uri)&&Li.string(t.name)}}(Si||(Si={})),function(e){function t(e,n){if(e.length<=1)return e;const i=e.length/2|0,r=e.slice(0,i),s=e.slice(i);t(r,n),t(s,n);let o=0,a=0,l=0;for(;o<r.length&&a<s.length;){let t=n(r[o],s[a]);e[l++]=t<=0?r[o++]:s[a++]}for(;o<r.length;)e[l++]=r[o++];for(;a<s.length;)e[l++]=s[a++];return e}e.create=function(e,t,n,i){return new Ai(e,t,n,i)},e.is=function(e){let t=e;return!!(Li.defined(t)&&Li.string(t.uri)&&(Li.undefined(t.languageId)||Li.string(t.languageId))&&Li.uinteger(t.lineCount)&&Li.func(t.getText)&&Li.func(t.positionAt)&&Li.func(t.offsetAt))},e.applyEdits=function(e,n){let i=e.getText(),r=t(n,(e,t)=>{let n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n}),s=i.length;for(let t=r.length-1;t>=0;t--){let n=r[t],o=e.offsetAt(n.range.start),a=e.offsetAt(n.range.end);if(!(a<=s))throw new Error("Overlapping edit");i=i.substring(0,o)+n.newText+i.substring(a,i.length),s=o}return i}}(wi||(wi={}));class Ai{constructor(e,t,n,i){this._uri=e,this._languageId=t,this._version=n,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(void 0===this._lineOffsets){let e=[],t=this._content,n=!0;for(let i=0;i<t.length;i++){n&&(e.push(i),n=!1);let r=t.charAt(i);n="\r"===r||"\n"===r,"\r"===r&&i+1<t.length&&"\n"===t.charAt(i+1)&&i++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,i=t.length;if(0===i)return sn.create(0,e);for(;n<i;){let r=Math.floor((n+i)/2);t[r]>e?i=r:n=r+1}let r=n-1;return sn.create(r,e-t[r])}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],i=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,i),n)}get lineCount(){return this.getLineOffsets().length}}!function(e){const t=Object.prototype.toString;e.defined=function(e){return void 0!==e},e.undefined=function(e){return void 0===e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)},e.number=function(e){return"[object Number]"===t.call(e)},e.numberRange=function(e,n,i){return"[object Number]"===t.call(e)&&n<=e&&e<=i},e.integer=function(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647},e.uinteger=function(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647},e.func=function(e){return"[object Function]"===t.call(e)},e.objectLiteral=function(e){return null!==e&&"object"==typeof e},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)}}(Li||(Li={}));class Ii{constructor(e){this._start=0,this._pos=0,this.getStartOfToken=()=>this._start,this.getCurrentPosition=()=>this._pos,this.eol=()=>this._sourceText.length===this._pos,this.sol=()=>0===this._pos,this.peek=()=>this._sourceText.charAt(this._pos)||null,this.next=()=>{const e=this._sourceText.charAt(this._pos);return this._pos++,e},this.eat=e=>{if(this._testNextCharacter(e))return this._start=this._pos,this._pos++,this._sourceText.charAt(this._pos-1)},this.eatWhile=e=>{let t=this._testNextCharacter(e),n=!1;for(t&&(n=t,this._start=this._pos);t;)this._pos++,t=this._testNextCharacter(e),n=!0;return n},this.eatSpace=()=>this.eatWhile(/[\s\u00a0]/),this.skipToEnd=()=>{this._pos=this._sourceText.length},this.skipTo=e=>{this._pos=e},this.match=(e,t=!0,n=!1)=>{let i=null,r=null;return"string"==typeof e?(r=new RegExp(e,n?"i":"g").test(this._sourceText.slice(this._pos,this._pos+e.length)),i=e):e instanceof RegExp&&(r=this._sourceText.slice(this._pos).match(e),i=null==r?void 0:r[0]),!(null==r||!("string"==typeof e||r instanceof Array&&this._sourceText.startsWith(r[0],this._pos)))&&(t&&(this._start=this._pos,i&&i.length&&(this._pos+=i.length)),r)},this.backUp=e=>{this._pos-=e},this.column=()=>this._pos,this.indentation=()=>{const e=this._sourceText.match(/\s*/);let t=0;if(e&&0!==e.length){const n=e[0];let i=0;for(;n.length>i;)9===n.charCodeAt(i)?t+=2:t++,i++}return t},this.current=()=>this._sourceText.slice(this._start,this._pos),this._sourceText=e}_testNextCharacter(e){const t=this._sourceText.charAt(this._pos);let n=!1;return n="string"==typeof e?t===e:e instanceof RegExp?e.test(t):e(t),n}}function xi(e){return{ofRule:e}}function Oi(e,t){return{ofRule:e,isList:!0,separator:t}}function Ri(e,t){return{style:t,match:t=>t.kind===e}}function Di(e,t){return{style:t||"punctuation",match:t=>"Punctuation"===t.kind&&t.value===e}}const Mi=e=>" "===e||"\t"===e||","===e||"\n"===e||"\r"===e||"\ufeff"===e||" "===e,Fi={Name:/^[_A-Za-z][_0-9A-Za-z]*/,Punctuation:/^(?:!|\$|\(|\)|\.\.\.|:|=|&|@|\[|]|\{|\||\})/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^(?:"""(?:\\"""|[^"]|"[^"]|""[^"])*(?:""")?|"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?)/,Comment:/^#.*/},Pi={Document:[Oi("Definition")],Definition(e){switch(e.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return v.FRAGMENT_DEFINITION;case"schema":return"SchemaDef";case"scalar":return"ScalarDef";case"type":return"ObjectTypeDef";case"interface":return"InterfaceDef";case"union":return"UnionDef";case"enum":return"EnumDef";case"input":return"InputDef";case"extend":return"ExtendDef";case"directive":return"DirectiveDef"}},ShortQuery:["SelectionSet"],Query:[$i("query"),xi(Vi("def")),xi("VariableDefinitions"),Oi("Directive"),"SelectionSet"],Mutation:[$i("mutation"),xi(Vi("def")),xi("VariableDefinitions"),Oi("Directive"),"SelectionSet"],Subscription:[$i("subscription"),xi(Vi("def")),xi("VariableDefinitions"),Oi("Directive"),"SelectionSet"],VariableDefinitions:[Di("("),Oi("VariableDefinition"),Di(")")],VariableDefinition:["Variable",Di(":"),"Type",xi("DefaultValue")],Variable:[Di("$","variable"),Vi("variable")],DefaultValue:[Di("="),"Value"],SelectionSet:[Di("{"),Oi("Selection"),Di("}")],Selection:(e,t)=>"..."===e.value?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field",AliasedField:[Vi("property"),Di(":"),Vi("qualifier"),xi("Arguments"),Oi("Directive"),xi("SelectionSet")],Field:[Vi("property"),xi("Arguments"),Oi("Directive"),xi("SelectionSet")],Arguments:[Di("("),Oi("Argument"),Di(")")],Argument:[Vi("attribute"),Di(":"),"Value"],FragmentSpread:[Di("..."),Vi("def"),Oi("Directive")],InlineFragment:[Di("..."),xi("TypeCondition"),Oi("Directive"),"SelectionSet"],FragmentDefinition:[$i("fragment"),xi(function(e,t){const n=e.match;return e.match=e=>{let i=!1;return n&&(i=n(e)),i&&t.every(t=>t.match&&!t.match(e))},e}(Vi("def"),[$i("on")])),"TypeCondition",Oi("Directive"),"SelectionSet"],TypeCondition:[$i("on"),"NamedType"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue";case"$":return"Variable";case"&":return"NamedType"}return null;case"Name":switch(e.value){case"true":case"false":return"BooleanValue"}return"null"===e.value?"NullValue":"EnumValue"}},NumberValue:[Ri("Number","number")],StringValue:[{style:"string",match:e=>"String"===e.kind,update(e,t){t.value.startsWith('"""')&&(e.inBlockstring=!t.value.slice(3).endsWith('"""'))}}],BooleanValue:[Ri("Name","builtin")],NullValue:[Ri("Name","keyword")],EnumValue:[Vi("string-2")],ListValue:[Di("["),Oi("Value"),Di("]")],ObjectValue:[Di("{"),Oi("ObjectField"),Di("}")],ObjectField:[Vi("attribute"),Di(":"),"Value"],Type:e=>"["===e.value?"ListType":"NonNullType",ListType:[Di("["),"Type",Di("]"),xi(Di("!"))],NonNullType:["NamedType",xi(Di("!"))],NamedType:[{style:"atom",match:e=>"Name"===e.kind,update(e,t){var n;(null===(n=e.prevState)||void 0===n?void 0:n.prevState)&&(e.name=t.value,e.prevState.prevState.type=t.value)}}],Directive:[Di("@","meta"),Vi("meta"),xi("Arguments")],DirectiveDef:[$i("directive"),Di("@","meta"),Vi("meta"),xi("ArgumentsDef"),$i("on"),Oi("DirectiveLocation",Di("|"))],InterfaceDef:[$i("interface"),Vi("atom"),xi("Implements"),Oi("Directive"),Di("{"),Oi("FieldDef"),Di("}")],Implements:[$i("implements"),Oi("NamedType",Di("&"))],DirectiveLocation:[Vi("string-2")],SchemaDef:[$i("schema"),Oi("Directive"),Di("{"),Oi("OperationTypeDef"),Di("}")],OperationTypeDef:[Vi("keyword"),Di(":"),Vi("atom")],ScalarDef:[$i("scalar"),Vi("atom"),Oi("Directive")],ObjectTypeDef:[$i("type"),Vi("atom"),xi("Implements"),Oi("Directive"),Di("{"),Oi("FieldDef"),Di("}")],FieldDef:[Vi("property"),xi("ArgumentsDef"),Di(":"),"Type",Oi("Directive")],ArgumentsDef:[Di("("),Oi("InputValueDef"),Di(")")],InputValueDef:[Vi("attribute"),Di(":"),"Type",xi("DefaultValue"),Oi("Directive")],UnionDef:[$i("union"),Vi("atom"),Oi("Directive"),Di("="),Oi("UnionMember",Di("|"))],UnionMember:["NamedType"],EnumDef:[$i("enum"),Vi("atom"),Oi("Directive"),Di("{"),Oi("EnumValueDef"),Di("}")],EnumValueDef:[Vi("string-2"),Oi("Directive")],InputDef:[$i("input"),Vi("atom"),Oi("Directive"),Di("{"),Oi("InputValueDef"),Di("}")],ExtendDef:[$i("extend"),"ExtensionDefinition"],ExtensionDefinition(e){switch(e.value){case"schema":return v.SCHEMA_EXTENSION;case"scalar":return v.SCALAR_TYPE_EXTENSION;case"type":return v.OBJECT_TYPE_EXTENSION;case"interface":return v.INTERFACE_TYPE_EXTENSION;case"union":return v.UNION_TYPE_EXTENSION;case"enum":return v.ENUM_TYPE_EXTENSION;case"input":return v.INPUT_OBJECT_TYPE_EXTENSION}},[v.SCHEMA_EXTENSION]:["SchemaDef"],[v.SCALAR_TYPE_EXTENSION]:["ScalarDef"],[v.OBJECT_TYPE_EXTENSION]:["ObjectTypeDef"],[v.INTERFACE_TYPE_EXTENSION]:["InterfaceDef"],[v.UNION_TYPE_EXTENSION]:["UnionDef"],[v.ENUM_TYPE_EXTENSION]:["EnumDef"],[v.INPUT_OBJECT_TYPE_EXTENSION]:["InputDef"]};function $i(e){return{style:"keyword",match:t=>"Name"===t.kind&&t.value===e}}function Vi(e){return{style:e,match:e=>"Name"===e.kind,update(e,t){e.name=t.value}}}function Ui(e={eatWhitespace:e=>e.eatWhile(Mi),lexRules:Fi,parseRules:Pi,editorConfig:{}}){return{startState(){const t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeparator:!1,prevState:null};return Ki(e.parseRules,t,v.DOCUMENT),t},token:(t,n)=>function(e,t,n){var i;if(t.inBlockstring)return e.match(/.*"""/)?(t.inBlockstring=!1,"string"):(e.skipToEnd(),"string");const{lexRules:r,parseRules:s,eatWhitespace:o,editorConfig:a}=n;if(t.rule&&0===t.rule.length?qi(t):t.needsAdvance&&(t.needsAdvance=!1,Wi(t,!0)),e.sol()){const n=(null==a?void 0:a.tabSize)||2;t.indentLevel=Math.floor(e.indentation()/n)}if(o(e))return"ws";const l=function(e,t){const n=Object.keys(e);for(let i=0;i<n.length;i++){const r=t.match(e[n[i]]);if(r&&r instanceof Array)return{kind:n[i],value:r[0]}}}(r,e);if(!l)return e.match(/\S+/)||e.match(/\s/),Ki(ji,t,"Invalid"),"invalidchar";if("Comment"===l.kind)return Ki(ji,t,"Comment"),"comment";const u=Bi({},t);if("Punctuation"===l.kind)if(/^[{([]/.test(l.value))void 0!==t.indentLevel&&(t.levels=(t.levels||[]).concat(t.indentLevel+1));else if(/^[})\]]/.test(l.value)){const e=t.levels=(t.levels||[]).slice(0,-1);t.indentLevel&&e.length>0&&e.at(-1)<t.indentLevel&&(t.indentLevel=e.at(-1))}for(;t.rule;){let n="function"==typeof t.rule?0===t.step?t.rule(l,e):null:t.rule[t.step];if(t.needsSeparator&&(n=null==n?void 0:n.separator),n){if(n.ofRule&&(n=n.ofRule),"string"==typeof n){Ki(s,t,n);continue}if(null===(i=n.match)||void 0===i?void 0:i.call(n,l))return n.update&&n.update(t,l),"Punctuation"===l.kind?Wi(t,!0):t.needsAdvance=!0,n.style}Gi(t)}return Bi(t,u),Ki(ji,t,"Invalid"),"invalidchar"}(t,n,e)}}function Bi(e,t){const n=Object.keys(t);for(let i=0;i<n.length;i++)e[n[i]]=t[n[i]];return e}const ji={Invalid:[],Comment:[]};function Ki(e,t,n){if(!e[n])throw new TypeError("Unknown rule: "+n);t.prevState=Object.assign({},t),t.kind=n,t.name=null,t.type=null,t.rule=e[n],t.step=0,t.needsSeparator=!1}function qi(e){e.prevState&&(e.kind=e.prevState.kind,e.name=e.prevState.name,e.type=e.prevState.type,e.rule=e.prevState.rule,e.step=e.prevState.step,e.needsSeparator=e.prevState.needsSeparator,e.prevState=e.prevState.prevState)}function Wi(e,t){var n;if(Hi(e)&&e.rule){const n=e.rule[e.step];if(n.separator){const{separator:t}=n;if(e.needsSeparator=!e.needsSeparator,!e.needsSeparator&&t.ofRule)return}if(t)return}for(e.needsSeparator=!1,e.step++;e.rule&&!(Array.isArray(e.rule)&&e.step<e.rule.length);)qi(e),e.rule&&(Hi(e)?(null===(n=e.rule)||void 0===n?void 0:n[e.step].separator)&&(e.needsSeparator=!e.needsSeparator):(e.needsSeparator=!1,e.step++))}function Hi(e){const t=Array.isArray(e.rule)&&"string"!=typeof e.rule[e.step]&&e.rule[e.step];return t&&t.isList}function Gi(e){for(;e.rule&&(!Array.isArray(e.rule)||!e.rule[e.step].ofRule);)qi(e);e.rule&&Wi(e,!1)}function zi(e,t){const n=e.split("\n"),i=Ui();let r=i.startState(),s="",o=new Ii("");for(let e=0;e<n.length;e++){for(o=new Ii(n[e]);!o.eol()&&(s=i.token(o,r),"BREAK"!==t(o,r,s,e)););t(o,r,s,e),r.kind||(r=i.startState())}return{start:o.getStartOfToken(),end:o.getCurrentPosition(),string:o.current(),state:r,style:s}}var Yi;!function(e){e.TYPE_SYSTEM="TYPE_SYSTEM",e.EXECUTABLE="EXECUTABLE",e.UNKNOWN="UNKNOWN"}(Yi||(Yi={}));const Qi=[v.SCHEMA_DEFINITION,v.OPERATION_TYPE_DEFINITION,v.SCALAR_TYPE_DEFINITION,v.OBJECT_TYPE_DEFINITION,v.INTERFACE_TYPE_DEFINITION,v.UNION_TYPE_DEFINITION,v.ENUM_TYPE_DEFINITION,v.INPUT_OBJECT_TYPE_DEFINITION,v.DIRECTIVE_DEFINITION,v.SCHEMA_EXTENSION,v.SCALAR_TYPE_EXTENSION,v.OBJECT_TYPE_EXTENSION,v.INTERFACE_TYPE_EXTENSION,v.UNION_TYPE_EXTENSION,v.ENUM_TYPE_EXTENSION,v.INPUT_OBJECT_TYPE_EXTENSION];function Xi(e,t,n,i,r){const s=i||function(e,t,n=0){let i=null,r=null,s=null;const o=zi(e,(e,o,a,l)=>{if(!(l!==t.line||e.getCurrentPosition()+n<t.character+1))return i=a,r=Object.assign({},o),s=e.current(),"BREAK"});return{start:o.start,end:o.end,string:s||o.string,state:r||o.state,style:i||o.style}}(e,t,1);if(!s)return null;const o="Invalid"===s.state.kind?s.state.prevState:s.state;if(!o)return null;const a=function(e,t){let n,i,r,s,o,a,l,u,c,d,h;return Zi(t,t=>{var f;switch(t.kind){case er.QUERY:case"ShortQuery":d=e.getQueryType();break;case er.MUTATION:d=e.getMutationType();break;case er.SUBSCRIPTION:d=e.getSubscriptionType();break;case er.INLINE_FRAGMENT:case er.FRAGMENT_DEFINITION:t.type&&(d=e.getType(t.type));break;case er.FIELD:case er.ALIASED_FIELD:d&&t.name?(o=c?Ji(e,c,t.name):null,d=o?o.type:null):o=null;break;case er.SELECTION_SET:c=ot(d);break;case er.DIRECTIVE:r=t.name?e.getDirective(t.name):null;break;case er.INTERFACE_DEF:t.name&&(l=null,h=new yt({name:t.name,interfaces:[],fields:{}}));break;case er.OBJECT_TYPE_DEF:t.name&&(h=null,l=new ct({name:t.name,interfaces:[],fields:{}}));break;case er.ARGUMENTS:if(t.prevState)switch(t.prevState.kind){case er.FIELD:i=o&&o.args;break;case er.DIRECTIVE:i=r&&r.args;break;case er.ALIASED_FIELD:{const n=null===(f=t.prevState)||void 0===f?void 0:f.name;if(!n){i=null;break}const r=c?Ji(e,c,n):null;if(!r){i=null;break}i=r.args;break}default:i=null}else i=null;break;case er.ARGUMENT:if(i)for(let e=0;e<i.length;e++)if(i[e].name===t.name){n=i[e];break}a=null==n?void 0:n.type;break;case er.VARIABLE_DEFINITION:case er.VARIABLE:d=a;break;case er.ENUM_VALUE:const p=ot(a);s=p instanceof Et?p.getValues().find(e=>e.value===t.name):null;break;case er.LIST_VALUE:const m=rt(a);a=m instanceof et?m.ofType:null;break;case er.OBJECT_VALUE:const g=ot(a);u=g instanceof Tt?g.getFields():null;break;case er.OBJECT_FIELD:const v=t.name&&u?u[t.name]:null;a=null==v?void 0:v.type,o=v,d=o?o.type:null;break;case er.NAMED_TYPE:t.name&&(d=e.getType(t.name))}}),{argDef:n,argDefs:i,directiveDef:r,enumValue:s,fieldDef:o,inputType:a,objectFieldDefs:u,parentType:c,type:d,interfaceDef:h,objectTypeDef:l}}(n,s.state);return{token:s,state:o,typeInfo:a,mode:(null==r?void 0:r.mode)||(l=e,u=null==r?void 0:r.uri,(null==u?void 0:u.endsWith(".graphqls"))?Yi.TYPE_SYSTEM:(e=>{let t=Yi.UNKNOWN;if(e)try{b(ce(e),{enter(e){if("Document"!==e.kind)return!!Qi.includes(e.kind)&&(t=Yi.TYPE_SYSTEM,_);t=Yi.EXECUTABLE}})}catch(e){return t}return t})(l))};var l,u}function Ji(e,t,n){return n===Ht.name&&e.getQueryType()===t?Ht:n===Gt.name&&e.getQueryType()===t?Gt:n===zt.name&&Je(t)?zt:"getFields"in t?t.getFields()[n]:null}function Zi(e,t){const n=[];let i=e;for(;null==i?void 0:i.kind;)n.push(i),i=i.prevState;for(let e=n.length-1;e>=0;e--)t(n[e])}const er=Object.assign(Object.assign({},v),{ALIASED_FIELD:"AliasedField",ARGUMENTS:"Arguments",SHORT_QUERY:"ShortQuery",QUERY:"Query",MUTATION:"Mutation",SUBSCRIPTION:"Subscription",TYPE_CONDITION:"TypeCondition",INVALID:"Invalid",COMMENT:"Comment",SCHEMA_DEF:"SchemaDef",SCALAR_DEF:"ScalarDef",OBJECT_TYPE_DEF:"ObjectTypeDef",OBJECT_VALUE:"ObjectValue",LIST_VALUE:"ListValue",INTERFACE_DEF:"InterfaceDef",UNION_DEF:"UnionDef",ENUM_DEF:"EnumDef",ENUM_VALUE:"EnumValue",FIELD_DEF:"FieldDef",INPUT_DEF:"InputDef",INPUT_VALUE_DEF:"InputValueDef",ARGUMENTS_DEF:"ArgumentsDef",EXTEND_DEF:"ExtendDef",EXTENSION_DEFINITION:"ExtensionDefinition",DIRECTIVE_DEF:"DirectiveDef",IMPLEMENTS:"Implements",VARIABLE_DEFINITIONS:"VariableDefinitions",TYPE:"Type",VARIABLE:"Variable"});var tr;function nr(e){const t=Object.keys(e),n=t.length,i=new Array(n);for(let r=0;r<n;++r)i[r]=e[t[r]];return i}function ir(e,t){return function(e,t){if(!t||""===t.trim()||":"===t.trim()||"{"===t.trim())return rr(e,e=>!e.isDeprecated);return rr(rr(e.map(e=>({proximity:or(sr(e.label),t),entry:e})),e=>e.proximity<=2),e=>!e.entry.isDeprecated).sort((e,t)=>(e.entry.isDeprecated?1:0)-(t.entry.isDeprecated?1:0)||e.proximity-t.proximity||e.entry.label.length-t.entry.label.length).map(e=>e.entry)}(t,sr(e.string))}function rr(e,t){const n=e.filter(t);return 0===n.length?e:n}function sr(e){return e.toLowerCase().replaceAll(/\W/g,"")}function or(e,t){let n=function(e,t){let n,i;const r=[],s=e.length,o=t.length;for(n=0;n<=s;n++)r[n]=[n];for(i=1;i<=o;i++)r[0][i]=i;for(n=1;n<=s;n++)for(i=1;i<=o;i++){const s=e[n-1]===t[i-1]?0:1;r[n][i]=Math.min(r[n-1][i]+1,r[n][i-1]+1,r[n-1][i-1]+s),n>1&&i>1&&e[n-1]===t[i-2]&&e[n-2]===t[i-1]&&(r[n][i]=Math.min(r[n][i],r[n-2][i-2]+s))}return r[s][o]}(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}!function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(tr||(tr={}));const ar=(e,t,n)=>{if(!t)return null!=n?n:e;const i=ot(t);return je(i)||He(i)||Ge(i)||Ze(i)?e+" {\n   $1\n}":null!=n?n:e},lr=(e,t,n)=>{if(Ge(t)){const n=ot(t.ofType);return e+`[${ar("",n,"$1")}]`}return ar(e,t,n)},ur={command:"editor.action.triggerSuggest",title:"Suggestions"};function cr(e,t,n,i,r,s){var o;const a=Object.assign(Object.assign({},s),{schema:e}),u=Xi(t,n,e,i,s);if(!u)return[];const{state:c,typeInfo:d,mode:h,token:f}=u,{kind:p,step:m,prevState:g}=c;if(p===er.DOCUMENT)return h===Yi.TYPE_SYSTEM?function(e){return ir(e,[{label:"extend",kind:tr.Function},...dr])}(f):h===Yi.EXECUTABLE?function(e){return ir(e,hr)}(f):function(e){return ir(e,[{label:"extend",kind:tr.Function},...hr,...dr])}(f);if(p===er.EXTEND_DEF)return function(e){return ir(e,dr)}(f);if((null===(o=null==g?void 0:g.prevState)||void 0===o?void 0:o.kind)===er.EXTENSION_DEFINITION&&c.name)return ir(f,[]);if((null==g?void 0:g.kind)===v.SCALAR_TYPE_EXTENSION)return ir(f,Object.values(e.getTypeMap()).filter(Be).map(e=>({label:e.name,kind:tr.Function})));if((null==g?void 0:g.kind)===v.OBJECT_TYPE_EXTENSION)return ir(f,Object.values(e.getTypeMap()).filter(e=>je(e)&&!e.name.startsWith("__")).map(e=>({label:e.name,kind:tr.Function})));if((null==g?void 0:g.kind)===v.INTERFACE_TYPE_EXTENSION)return ir(f,Object.values(e.getTypeMap()).filter(Ke).map(e=>({label:e.name,kind:tr.Function})));if((null==g?void 0:g.kind)===v.UNION_TYPE_EXTENSION)return ir(f,Object.values(e.getTypeMap()).filter(qe).map(e=>({label:e.name,kind:tr.Function})));if((null==g?void 0:g.kind)===v.ENUM_TYPE_EXTENSION)return ir(f,Object.values(e.getTypeMap()).filter(e=>We(e)&&!e.name.startsWith("__")).map(e=>({label:e.name,kind:tr.Function})));if((null==g?void 0:g.kind)===v.INPUT_OBJECT_TYPE_EXTENSION)return ir(f,Object.values(e.getTypeMap()).filter(He).map(e=>({label:e.name,kind:tr.Function})));if(p===er.IMPLEMENTS||p===er.NAMED_TYPE&&(null==g?void 0:g.kind)===er.IMPLEMENTS)return function(e,t,n,i,r){if(t.needsSeparator)return[];const s=nr(n.getTypeMap()).filter(Ke),o=s.map(({name:e})=>e),a=new Set;zi(i,(e,t)=>{var i,s,l,u,c;if(t.name&&(t.kind!==er.INTERFACE_DEF||o.includes(t.name)||a.add(t.name),t.kind===er.NAMED_TYPE&&(null===(i=t.prevState)||void 0===i?void 0:i.kind)===er.IMPLEMENTS))if(r.interfaceDef){if(null===(s=r.interfaceDef)||void 0===s?void 0:s.getInterfaces().find(({name:e})=>e===t.name))return;const e=n.getType(t.name),i=null===(l=r.interfaceDef)||void 0===l?void 0:l.toConfig();r.interfaceDef=new yt(Object.assign(Object.assign({},i),{interfaces:[...i.interfaces,e||new yt({name:t.name,fields:{}})]}))}else if(r.objectTypeDef){if(null===(u=r.objectTypeDef)||void 0===u?void 0:u.getInterfaces().find(({name:e})=>e===t.name))return;const e=n.getType(t.name),i=null===(c=r.objectTypeDef)||void 0===c?void 0:c.toConfig();r.objectTypeDef=new ct(Object.assign(Object.assign({},i),{interfaces:[...i.interfaces,e||new yt({name:t.name,fields:{}})]}))}});const l=r.interfaceDef||r.objectTypeDef,u=((null==l?void 0:l.getInterfaces())||[]).map(({name:e})=>e);return ir(e,s.concat([...a].map(e=>({name:e}))).filter(({name:e})=>e!==(null==l?void 0:l.name)&&!u.includes(e)).map(e=>{const t={label:e.name,kind:tr.Interface,type:e};return(null==e?void 0:e.description)&&(t.documentation=e.description),t}))}(f,c,e,t,d);if(p===er.SELECTION_SET||p===er.FIELD||p===er.ALIASED_FIELD)return function(e,t,n){var i;if(t.parentType){const{parentType:r}=t;let s=[];return"getFields"in r&&(s=nr(r.getFields())),Je(r)&&s.push(zt),r===(null===(i=null==n?void 0:n.schema)||void 0===i?void 0:i.getQueryType())&&s.push(Ht,Gt),ir(e,s.map((t,i)=>{var r;const s={sortText:String(i)+t.name,label:t.name,detail:String(t.type),documentation:null!==(r=t.description)&&void 0!==r?r:void 0,deprecated:Boolean(t.deprecationReason),isDeprecated:Boolean(t.deprecationReason),deprecationReason:t.deprecationReason,kind:tr.Field,labelDetails:{detail:" "+t.type.toString()},type:t.type};return(null==n?void 0:n.fillLeafsOnComplete)&&(s.insertText=(e=>{const t=e.args.filter(e=>e.type.toString().endsWith("!"));if(t.length)return e.name+`(${t.map((e,t)=>`${e.name}: $${t+1}`)}) ${ar("",e.type,"\n")}`})(t),s.insertText||(s.insertText=ar(t.name,t.type,t.name+(e.state.needsAdvance?"":"\n"))),s.insertText&&(s.insertTextFormat=Fn.Snippet,s.insertTextMode=Vn.adjustIndentation,s.command=ur)),s}))}return[]}(f,d,a);if(p===er.ARGUMENTS||p===er.ARGUMENT&&0===m){const{argDefs:e}=d;if(e)return ir(f,e.map(e=>{var t;return{label:e.name,insertText:lr(e.name+": ",e.type),insertTextMode:Vn.adjustIndentation,insertTextFormat:Fn.Snippet,command:ur,labelDetails:{detail:" "+String(e.type)},documentation:null!==(t=e.description)&&void 0!==t?t:void 0,kind:tr.Variable,type:e.type}}))}if((p===er.OBJECT_VALUE||p===er.OBJECT_FIELD&&0===m)&&d.objectFieldDefs){const e=nr(d.objectFieldDefs),t=p===er.OBJECT_VALUE?tr.Value:tr.Field;return ir(f,e.map(e=>{var n;return{label:e.name,detail:String(e.type),documentation:null!==(n=null==e?void 0:e.description)&&void 0!==n?n:void 0,kind:t,type:e.type,insertText:lr(e.name+": ",e.type),insertTextMode:Vn.adjustIndentation,insertTextFormat:Fn.Snippet,command:ur}}))}if(p===er.ENUM_VALUE||p===er.LIST_VALUE&&1===m||p===er.OBJECT_FIELD&&2===m||p===er.ARGUMENT&&2===m)return function(e,t,n,i){const r=ot(t.inputType),s=pr(n,i,e).filter(e=>e.detail===(null==r?void 0:r.name));return r instanceof Et?ir(e,r.getValues().map(e=>{var t;return{label:e.name,detail:String(r),documentation:null!==(t=e.description)&&void 0!==t?t:void 0,deprecated:Boolean(e.deprecationReason),isDeprecated:Boolean(e.deprecationReason),deprecationReason:e.deprecationReason,kind:tr.EnumMember,type:r}}).concat(s)):r===xt?ir(e,s.concat([{label:"true",detail:String(xt),documentation:"Not false.",kind:tr.Variable,type:xt},{label:"false",detail:String(xt),documentation:"Not true.",kind:tr.Variable,type:xt}])):s}(f,d,t,e);if(p===er.VARIABLE&&1===m){const n=ot(d.inputType);return ir(f,pr(t,e,f).filter(e=>e.detail===(null==n?void 0:n.name)))}if(p===er.TYPE_CONDITION&&1===m||p===er.NAMED_TYPE&&null!=g&&g.kind===er.TYPE_CONDITION)return function(e,t,n){let i;if(t.parentType)if(Ze(t.parentType)){const e=function(e){if(!Ze(e))throw new Error(`Expected ${l(e)} to be a GraphQL abstract type.`);return e}(t.parentType),r=n.getPossibleTypes(e),s=Object.create(null);for(const e of r)for(const t of e.getInterfaces())s[t.name]=t;i=r.concat(nr(s))}else i=[t.parentType];else i=nr(n.getTypeMap()).filter(e=>Je(e)&&!e.name.startsWith("__"));return ir(e,i.map(e=>{const t=ot(e);return{label:String(e),documentation:(null==t?void 0:t.description)||"",kind:tr.Field}}))}(f,d,e);if(p===er.FRAGMENT_SPREAD&&1===m)return function(e,t,n,i,r){if(!i)return[];const s=n.getTypeMap(),o=function(e){let t;return Zi(e,e=>{switch(e.kind){case"Query":case"ShortQuery":case"Mutation":case"Subscription":case"FragmentDefinition":t=e}}),t}(e.state),a=function(e){const t=[];return zi(e,(e,n)=>{n.kind===er.FRAGMENT_DEFINITION&&n.name&&n.type&&t.push({kind:er.FRAGMENT_DEFINITION,name:{kind:v.NAME,value:n.name},selectionSet:{kind:er.SELECTION_SET,selections:[]},typeCondition:{kind:er.NAMED_TYPE,name:{kind:v.NAME,value:n.type}}})}),t}(i);r&&r.length>0&&a.push(...r);return ir(e,a.filter(e=>s[e.typeCondition.name.value]&&!(o&&o.kind===er.FRAGMENT_DEFINITION&&o.name===e.name.value)&&Je(t.parentType)&&Je(s[e.typeCondition.name.value])&&Zt(n,t.parentType,s[e.typeCondition.name.value])).map(e=>({label:e.name.value,detail:String(s[e.typeCondition.name.value]),documentation:`fragment ${e.name.value} on ${e.typeCondition.name.value}`,labelDetails:{detail:`fragment ${e.name.value} on ${e.typeCondition.name.value}`},kind:tr.Field,type:s[e.typeCondition.name.value]})))}(f,d,e,t,Array.isArray(r)?r:(e=>{const t=[];if(e)try{b(ce(e),{FragmentDefinition(e){t.push(e)}})}catch(e){return[]}return t})(r));const y=mr(c);return y.kind===er.FIELD_DEF?ir(f,Object.values(e.getTypeMap()).filter(e=>Qe(e)&&!e.name.startsWith("__")).map(e=>({label:e.name,kind:tr.Function,insertText:(null==s?void 0:s.fillLeafsOnComplete)?e.name+"\n":e.name,insertTextMode:Vn.adjustIndentation}))):y.kind===er.INPUT_VALUE_DEF&&2===m?ir(f,Object.values(e.getTypeMap()).filter(e=>Ye(e)&&!e.name.startsWith("__")).map(e=>({label:e.name,kind:tr.Function,insertText:(null==s?void 0:s.fillLeafsOnComplete)?e.name+"\n$1":e.name,insertTextMode:Vn.adjustIndentation,insertTextFormat:Fn.Snippet}))):p===er.VARIABLE_DEFINITION&&2===m||p===er.LIST_TYPE&&1===m||p===er.NAMED_TYPE&&g&&(g.kind===er.VARIABLE_DEFINITION||g.kind===er.LIST_TYPE||g.kind===er.NON_NULL_TYPE)?function(e,t){return ir(e,nr(t.getTypeMap()).filter(Ye).map(e=>({label:e.name,documentation:(null==e?void 0:e.description)||"",kind:tr.Variable})))}(f,e):p===er.DIRECTIVE?function(e,t,n){var i;if(null===(i=t.prevState)||void 0===i?void 0:i.kind){const i=n.getDirectives().filter(e=>function(e,t){if(!(null==e?void 0:e.kind))return!1;const{kind:n,prevState:i}=e,{locations:r}=t;switch(n){case er.QUERY:return r.includes(P.QUERY);case er.MUTATION:return r.includes(P.MUTATION);case er.SUBSCRIPTION:return r.includes(P.SUBSCRIPTION);case er.FIELD:case er.ALIASED_FIELD:return r.includes(P.FIELD);case er.FRAGMENT_DEFINITION:return r.includes(P.FRAGMENT_DEFINITION);case er.FRAGMENT_SPREAD:return r.includes(P.FRAGMENT_SPREAD);case er.INLINE_FRAGMENT:return r.includes(P.INLINE_FRAGMENT);case er.SCHEMA_DEF:return r.includes(P.SCHEMA);case er.SCALAR_DEF:return r.includes(P.SCALAR);case er.OBJECT_TYPE_DEF:return r.includes(P.OBJECT);case er.FIELD_DEF:return r.includes(P.FIELD_DEFINITION);case er.INTERFACE_DEF:return r.includes(P.INTERFACE);case er.UNION_DEF:return r.includes(P.UNION);case er.ENUM_DEF:return r.includes(P.ENUM);case er.ENUM_VALUE:return r.includes(P.ENUM_VALUE);case er.INPUT_DEF:return r.includes(P.INPUT_OBJECT);case er.INPUT_VALUE_DEF:switch(null==i?void 0:i.kind){case er.ARGUMENTS_DEF:return r.includes(P.ARGUMENT_DEFINITION);case er.INPUT_DEF:return r.includes(P.INPUT_FIELD_DEFINITION)}}return!1}(t.prevState,e));return ir(e,i.map(e=>({label:e.name,documentation:(null==e?void 0:e.description)||"",kind:tr.Function})))}return[]}(f,c,e):p===er.DIRECTIVE_DEF?function(e,t,n){const i=n.getDirectives().find(e=>e.name===t.name);return ir(e,(null==i?void 0:i.args.map(e=>({label:e.name,documentation:e.description||"",kind:tr.Field})))||[])}(f,c,e):[]}const dr=[{label:"type",kind:tr.Function},{label:"interface",kind:tr.Function},{label:"union",kind:tr.Function},{label:"input",kind:tr.Function},{label:"scalar",kind:tr.Function},{label:"schema",kind:tr.Function}],hr=[{label:"query",kind:tr.Function},{label:"mutation",kind:tr.Function},{label:"subscription",kind:tr.Function},{label:"fragment",kind:tr.Function},{label:"{",kind:tr.Constructor}],fr=(e,t)=>{var n,i,r,s,o,a,l,u,c,d;return(null===(n=e.prevState)||void 0===n?void 0:n.kind)===t?e.prevState:(null===(r=null===(i=e.prevState)||void 0===i?void 0:i.prevState)||void 0===r?void 0:r.kind)===t?e.prevState.prevState:(null===(a=null===(o=null===(s=e.prevState)||void 0===s?void 0:s.prevState)||void 0===o?void 0:o.prevState)||void 0===a?void 0:a.kind)===t?e.prevState.prevState.prevState:(null===(d=null===(c=null===(u=null===(l=e.prevState)||void 0===l?void 0:l.prevState)||void 0===u?void 0:u.prevState)||void 0===c?void 0:c.prevState)||void 0===d?void 0:d.kind)===t?e.prevState.prevState.prevState.prevState:void 0};function pr(e,t,n){let i,r=null;const s=Object.create({});return zi(e,(e,o)=>{var a;if((null==o?void 0:o.kind)===er.VARIABLE&&o.name&&(r=o.name),(null==o?void 0:o.kind)===er.NAMED_TYPE&&r){const e=fr(o,er.TYPE);(null==e?void 0:e.type)&&(i=t.getType(null==e?void 0:e.type))}if(r&&i&&!s[r]){const e="$"===n.string||"Variable"===(null===(a=null==n?void 0:n.state)||void 0===a?void 0:a.kind)?r:"$"+r;s[r]={detail:i.toString(),insertText:e,label:"$"+r,rawInsert:e,type:i,kind:tr.Variable},r=null,i=null}}),nr(s)}function mr(e){return e.prevState&&e.kind&&[er.NAMED_TYPE,er.LIST_TYPE,er.TYPE,er.NON_NULL_TYPE].includes(e.kind)?mr(e.prevState):e}function gr(e,t){e.push(t)}function vr(e,t){ze(t)?(vr(e,t.ofType),gr(e,"!")):Ge(t)?(gr(e,"["),vr(e,t.ofType),gr(e,"]")):gr(e,t.name)}function yr(e,t,n){const i=[],r="type"in e?e.type:e;return"type"in e&&e.description&&(gr(i,e.description),gr(i,"\n\n")),gr(i,function(e,t){const n=[];return t&&gr(n,"```graphql\n"),vr(n,e),t&&gr(n,"\n```"),n.join("")}(r,t)),n?(gr(i,"\n"),gr(i,n)):!Be(r)&&"description"in r&&r.description?(gr(i,"\n"),gr(i,r.description)):"ofType"in r&&!Be(r.ofType)&&"description"in r.ofType&&r.ofType.description&&(gr(i,"\n"),gr(i,r.ofType.description)),i.join("")}o(62012);const _r={Int:{type:"integer"},String:{type:"string"},Float:{type:"number"},ID:{type:"string"},Boolean:{type:"boolean"},DateTime:{type:"string"}};class br{constructor(){this.set=new Set}mark(e){return!this.set.has(e)&&(this.set.add(e),!0)}}function Er(e,t){var n,i;let r=Object.create(null);const s=Object.create(null),o="type"in e?e.type:e,a=ze(o)?o.ofType:o,l=ze(o);if(Be(a))(null===(n=null==t?void 0:t.scalarSchemas)||void 0===n?void 0:n[a.name])?r=JSON.parse(JSON.stringify(t.scalarSchemas[a.name])):r.type=["string","number","boolean","integer"],l||(Array.isArray(r.type)?r.type.push("null"):r.type?r.type=[r.type,"null"]:r.enum?r.enum.push(null):r.oneOf?r.oneOf.push({type:"null"}):r={oneOf:[r,{type:"null"}]});else if(We(a))r.enum=a.getValues().map(e=>e.name),l||r.enum.push(null);else if(Ge(a)){r.type=l?"array":["array","null"];const{definition:e,definitions:n}=Er(a.ofType,t);if(r.items=e,n)for(const e of Object.keys(n))s[e]=n[e]}else if(He(a)&&(l?r.$ref=`#/definitions/${a.name}`:r.oneOf=[{$ref:`#/definitions/${a.name}`},{type:"null"}],null===(i=null==t?void 0:t.definitionMarker)||void 0===i?void 0:i.mark(a.name))){const e=a.getFields(),n={type:"object",properties:{},required:[]};n.description=yr(a),(null==t?void 0:t.useMarkdownDescription)&&(n.markdownDescription=yr(a,!0));for(const i of Object.keys(e)){const r=e[i],{required:o,definition:a,definitions:l}=Er(r,t);if(n.properties[i]=a,o&&n.required.push(i),l)for(const[e,t]of Object.entries(l))s[e]=t}s[a.name]=n}"defaultValue"in e&&void 0!==e.defaultValue&&(r.default=e.defaultValue);const{description:u}=r;return r.description=yr(e,!1,u),(null==t?void 0:t.useMarkdownDescription)&&(r.markdownDescription=yr(e,!0,u)),{required:l,definition:r,definitions:s}}class Nr{constructor(e,t){this.containsPosition=e=>this.start.line===e.line?this.start.character<=e.character:this.end.line===e.line?this.end.character>=e.character:this.start.line<=e.line&&this.end.line>=e.line,this.start=e,this.end=t}setStart(e,t){this.start=new Tr(e,t)}setEnd(e,t){this.end=new Tr(e,t)}}class Tr{constructor(e,t){this.lessThanOrEqualTo=e=>this.line<e.line||this.line===e.line&&this.character<=e.character,this.line=e,this.character=t}setLine(e){this.line=e}setCharacter(e){this.character=e}}function Sr(e){var t,n,i;const r=e.getSchema(),s=null!==(t=null!==(n=null!==(i=null==r?void 0:r.astNode)&&void 0!==i?i:null==r?void 0:r.getQueryType())&&void 0!==n?n:null==r?void 0:r.getMutationType())&&void 0!==t?t:null==r?void 0:r.getSubscriptionType();let o=0;return{SchemaDefinition(t){s?e.reportError(new I("Cannot define a new schema within a schema extension.",t)):(o>0&&e.reportError(new I("Must provide only one schema definition.",t)),++o)}}}function kr(e){const t=e.getSchema(),n=Object.create(null),i=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:r,SchemaExtension:r};function r(t){var r;const s=null!==(r=t.operationTypes)&&void 0!==r?r:[];for(const t of s){const r=t.operation,s=n[r];i[r]?e.reportError(new I(`Type for ${r} already defined in the schema. It cannot be redefined.`,t)):s?e.reportError(new I(`There can be only one ${r} type in schema.`,[s,t])):n[r]=t}return!1}}function Cr(e){const t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:i,ObjectTypeDefinition:i,InterfaceTypeDefinition:i,UnionTypeDefinition:i,EnumTypeDefinition:i,InputObjectTypeDefinition:i};function i(i){const r=i.name.value;if(null==n||!n.getType(r))return t[r]?e.reportError(new I(`There can be only one type named "${r}".`,[t[r],i.name])):t[r]=i.name,!1;e.reportError(new I(`Type "${r}" already exists in the schema. It cannot also be defined in this type definition.`,i.name))}}function wr(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),i=Object.create(null);return{EnumTypeDefinition:r,EnumTypeExtension:r};function r(t){var r;const s=t.name.value;i[s]||(i[s]=Object.create(null));const o=null!==(r=t.values)&&void 0!==r?r:[],a=i[s];for(const t of o){const i=t.name.value,r=n[s];We(r)&&r.getValue(i)?e.reportError(new I(`Enum value "${s}.${i}" already exists in the schema. It cannot also be defined in this type extension.`,t.name)):a[i]?e.reportError(new I(`Enum value "${s}.${i}" can only be defined once.`,[a[i],t.name])):a[i]=t.name}return!1}}function Lr(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),i=Object.create(null);return{InputObjectTypeDefinition:r,InputObjectTypeExtension:r,InterfaceTypeDefinition:r,InterfaceTypeExtension:r,ObjectTypeDefinition:r,ObjectTypeExtension:r};function r(t){var r;const s=t.name.value;i[s]||(i[s]=Object.create(null));const o=null!==(r=t.fields)&&void 0!==r?r:[],a=i[s];for(const t of o){const i=t.name.value;Ar(n[s],i)?e.reportError(new I(`Field "${s}.${i}" already exists in the schema. It cannot also be defined in this type extension.`,t.name)):a[i]?e.reportError(new I(`Field "${s}.${i}" can only be defined once.`,[a[i],t.name])):a[i]=t.name}return!1}}function Ar(e,t){return!!(je(e)||Ke(e)||He(e))&&null!=e.getFields()[t]}function Ir(e){const t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(i){const r=i.name.value;if(null==n||!n.getDirective(r))return t[r]?e.reportError(new I(`There can be only one directive named "@${r}".`,[t[r],i.name])):t[r]=i.name,!1;e.reportError(new I(`Directive "@${r}" already exists in the schema. It cannot be redefined.`,i.name))}}}function xr(e){return e.kind===v.OPERATION_DEFINITION||e.kind===v.FRAGMENT_DEFINITION}function Or(e){return e.kind===v.SCALAR_TYPE_DEFINITION||e.kind===v.OBJECT_TYPE_DEFINITION||e.kind===v.INTERFACE_TYPE_DEFINITION||e.kind===v.UNION_TYPE_DEFINITION||e.kind===v.ENUM_TYPE_DEFINITION||e.kind===v.INPUT_OBJECT_TYPE_DEFINITION}function Rr(e){return e.kind===v.SCALAR_TYPE_EXTENSION||e.kind===v.OBJECT_TYPE_EXTENSION||e.kind===v.INTERFACE_TYPE_EXTENSION||e.kind===v.UNION_TYPE_EXTENSION||e.kind===v.ENUM_TYPE_EXTENSION||e.kind===v.INPUT_OBJECT_TYPE_EXTENSION}function Dr(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),i=Object.create(null);for(const t of e.getDocument().definitions)Or(t)&&(i[t.name.value]=!0);const r=[...Object.keys(n),...Object.keys(i)];return{NamedType(t,s,o,a,l){const u=t.name.value;if(!n[u]&&!i[u]){var c;const n=null!==(c=l[2])&&void 0!==c?c:o,i=null!=n&&"kind"in(d=n)&&(function(e){return e.kind===v.SCHEMA_DEFINITION||Or(e)||e.kind===v.DIRECTIVE_DEFINITION}(d)||function(e){return e.kind===v.SCHEMA_EXTENSION||Rr(e)}(d));if(i&&Mr.includes(u))return;const s=Se(u,i?Mr.concat(r):r);e.reportError(new I(`Unknown type "${u}".`+ye(s),t))}var d}}}const Mr=[...Rt,...Yt].map(e=>e.name);function Fr(e){return M(e,Pr)}class Pr{constructor(e){var t,n;this.name=$e(e.name),this.description=e.description,this.locations=e.locations,this.isRepeatable=null!==(t=e.isRepeatable)&&void 0!==t&&t,this.extensions=ge(e.extensions),this.astNode=e.astNode,Array.isArray(e.locations)||c(!1,`@${e.name} locations must be an Array.`);const i=null!==(n=e.args)&&void 0!==n?n:{};T(i)&&!Array.isArray(i)||c(!1,`@${e.name} args must be an object with argument names as keys.`),this.args=ft(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:gt(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}const $r=new Pr({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[P.FIELD,P.FRAGMENT_SPREAD,P.INLINE_FRAGMENT],args:{if:{type:new tt(xt),description:"Included when true."}}}),Vr=new Pr({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[P.FIELD,P.FRAGMENT_SPREAD,P.INLINE_FRAGMENT],args:{if:{type:new tt(xt),description:"Skipped when true."}}}),Ur=new Pr({name:"defer",description:"Directs the executor to defer this fragment when the `if` argument is true or undefined.",locations:[P.FRAGMENT_SPREAD,P.INLINE_FRAGMENT],args:{if:{type:xt,description:"Deferred when true or undefined."},label:{type:It,description:"Unique name"}}}),Br=new Pr({name:"stream",description:"Directs the executor to stream plural fields when the `if` argument is true or undefined.",locations:[P.FIELD],args:{if:{type:xt,description:"Stream when true or undefined."},label:{type:It,description:"Unique name"},initialCount:{defaultValue:0,type:Lt,description:"Number of items to return immediately"}}}),jr=new Pr({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[P.FIELD_DEFINITION,P.ARGUMENT_DEFINITION,P.INPUT_FIELD_DEFINITION,P.ENUM_VALUE],args:{reason:{type:It,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:"No longer supported"}}}),Kr=new Pr({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[P.SCALAR],args:{url:{type:new tt(It),description:"The URL that specifies the behavior of this scalar."}}}),qr=Object.freeze([$r,Vr,jr,Kr]);function Wr(e){const t=Object.create(null),n=e.getSchema(),i=n?n.getDirectives():qr;for(const e of i)t[e.name]=e.locations;const r=e.getDocument().definitions;for(const e of r)e.kind===v.DIRECTIVE_DEFINITION&&(t[e.name.value]=e.locations.map(e=>e.value));return{Directive(n,i,r,s,o){const a=n.name.value,u=t[a];if(!u)return void e.reportError(new I(`Unknown directive "@${a}".`,n));const c=function(e){const t=e[e.length-1];switch("kind"in t||S(!1),t.kind){case v.OPERATION_DEFINITION:return function(e){switch(e){case g.QUERY:return P.QUERY;case g.MUTATION:return P.MUTATION;case g.SUBSCRIPTION:return P.SUBSCRIPTION}}(t.operation);case v.FIELD:return P.FIELD;case v.FRAGMENT_SPREAD:return P.FRAGMENT_SPREAD;case v.INLINE_FRAGMENT:return P.INLINE_FRAGMENT;case v.FRAGMENT_DEFINITION:return P.FRAGMENT_DEFINITION;case v.VARIABLE_DEFINITION:return P.VARIABLE_DEFINITION;case v.SCHEMA_DEFINITION:case v.SCHEMA_EXTENSION:return P.SCHEMA;case v.SCALAR_TYPE_DEFINITION:case v.SCALAR_TYPE_EXTENSION:return P.SCALAR;case v.OBJECT_TYPE_DEFINITION:case v.OBJECT_TYPE_EXTENSION:return P.OBJECT;case v.FIELD_DEFINITION:return P.FIELD_DEFINITION;case v.INTERFACE_TYPE_DEFINITION:case v.INTERFACE_TYPE_EXTENSION:return P.INTERFACE;case v.UNION_TYPE_DEFINITION:case v.UNION_TYPE_EXTENSION:return P.UNION;case v.ENUM_TYPE_DEFINITION:case v.ENUM_TYPE_EXTENSION:return P.ENUM;case v.ENUM_VALUE_DEFINITION:return P.ENUM_VALUE;case v.INPUT_OBJECT_TYPE_DEFINITION:case v.INPUT_OBJECT_TYPE_EXTENSION:return P.INPUT_OBJECT;case v.INPUT_VALUE_DEFINITION:{const t=e[e.length-3];return"kind"in t||S(!1),t.kind===v.INPUT_OBJECT_TYPE_DEFINITION?P.INPUT_FIELD_DEFINITION:P.ARGUMENT_DEFINITION}default:S(!1,"Unexpected kind: "+l(t.kind))}}(o);c&&!u.includes(c)&&e.reportError(new I(`Directive "@${a}" may not be used on ${c}.`,n))}}}function Hr(e){const t=Object.create(null),n=e.getSchema(),i=n?n.getDirectives():qr;for(const e of i)t[e.name]=!e.isRepeatable;const r=e.getDocument().definitions;for(const e of r)e.kind===v.DIRECTIVE_DEFINITION&&(t[e.name.value]=!e.repeatable);const s=Object.create(null),o=Object.create(null);return{enter(n){if(!("directives"in n)||!n.directives)return;let i;if(n.kind===v.SCHEMA_DEFINITION||n.kind===v.SCHEMA_EXTENSION)i=s;else if(Or(n)||Rr(n)){const e=n.name.value;i=o[e],void 0===i&&(o[e]=i=Object.create(null))}else i=Object.create(null);for(const r of n.directives){const n=r.name.value;t[n]&&(i[n]?e.reportError(new I(`The directive "@${n}" can only be used once at this location.`,[i[n],r])):i[n]=r)}}}}function Gr(e){const t=e.getSchema(),n=Object.create(null);for(const t of e.getDocument().definitions)Or(t)&&(n[t.name.value]=t);return{ScalarTypeExtension:i,ObjectTypeExtension:i,InterfaceTypeExtension:i,UnionTypeExtension:i,EnumTypeExtension:i,InputObjectTypeExtension:i};function i(i){const r=i.name.value,s=n[r],o=null==t?void 0:t.getType(r);let a;if(s?a=zr[s.kind]:o&&(a=Be(u=o)?v.SCALAR_TYPE_EXTENSION:je(u)?v.OBJECT_TYPE_EXTENSION:Ke(u)?v.INTERFACE_TYPE_EXTENSION:qe(u)?v.UNION_TYPE_EXTENSION:We(u)?v.ENUM_TYPE_EXTENSION:He(u)?v.INPUT_OBJECT_TYPE_EXTENSION:void S(!1,"Unexpected type: "+l(u))),a){if(a!==i.kind){const t=function(e){switch(e){case v.SCALAR_TYPE_EXTENSION:return"scalar";case v.OBJECT_TYPE_EXTENSION:return"object";case v.INTERFACE_TYPE_EXTENSION:return"interface";case v.UNION_TYPE_EXTENSION:return"union";case v.ENUM_TYPE_EXTENSION:return"enum";case v.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:S(!1,"Unexpected kind: "+l(e))}}(i.kind);e.reportError(new I(`Cannot extend non-${t} type "${r}".`,s?[s,i]:i))}}else{const s=Se(r,Object.keys({...n,...null==t?void 0:t.getTypeMap()}));e.reportError(new I(`Cannot extend type "${r}" because it is not defined.`+ye(s),i.name))}var u}}const zr={[v.SCALAR_TYPE_DEFINITION]:v.SCALAR_TYPE_EXTENSION,[v.OBJECT_TYPE_DEFINITION]:v.OBJECT_TYPE_EXTENSION,[v.INTERFACE_TYPE_DEFINITION]:v.INTERFACE_TYPE_EXTENSION,[v.UNION_TYPE_DEFINITION]:v.UNION_TYPE_EXTENSION,[v.ENUM_TYPE_DEFINITION]:v.ENUM_TYPE_EXTENSION,[v.INPUT_OBJECT_TYPE_DEFINITION]:v.INPUT_OBJECT_TYPE_EXTENSION};function Yr(e,t){const n=new Map;for(const i of e){const e=t(i),r=n.get(e);void 0===r?n.set(e,[i]):r.push(i)}return n}function Qr(e){return{Field:t,Directive:t};function t(t){var n;const i=Yr(null!==(n=t.arguments)&&void 0!==n?n:[],e=>e.name.value);for(const[t,n]of i)n.length>1&&e.reportError(new I(`There can be only one argument named "${t}".`,n.map(e=>e.name)))}}function Xr(e){const t=[];let n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){const e=t.pop();e||S(!1),n=e}},ObjectField(t){const i=t.name.value;n[i]?e.reportError(new I(`There can be only one input field named "${i}".`,[n[i],t.name])):n[i]=t.name}}}function Jr(e){return{OperationDefinition(t){var n;const i=Yr(null!==(n=t.variableDefinitions)&&void 0!==n?n:[],e=>e.variable.name.value);for(const[t,n]of i)n.length>1&&e.reportError(new I(`There can be only one variable named "$${t}".`,n.map(e=>e.variable.name)))}}}function Zr(e,t){switch(t.kind){case v.LIST_TYPE:{const n=Zr(e,t.type);return n&&new et(n)}case v.NON_NULL_TYPE:{const n=Zr(e,t.type);return n&&new tt(n)}case v.NAMED_TYPE:return e.getType(t.name.value)}}function es(e){return{InlineFragment(t){const n=t.typeCondition;if(n){const t=Zr(e.getSchema(),n);if(t&&!Je(t)){const t=Ie(n);e.reportError(new I(`Fragment cannot condition on non composite type "${t}".`,n))}}},FragmentDefinition(t){const n=Zr(e.getSchema(),t.typeCondition);if(n&&!Je(n)){const n=Ie(t.typeCondition);e.reportError(new I(`Fragment "${t.name.value}" cannot condition on non composite type "${n}".`,t.typeCondition))}}}}function ts(e){return{...ns(e),Field:{leave(t){var n;const i=e.getFieldDef();if(!i)return!1;const r=new Set(null===(n=t.arguments)||void 0===n?void 0:n.map(e=>e.name.value));for(const n of i.args)if(!r.has(n.name)&&vt(n)){const r=l(n.type);e.reportError(new I(`Field "${i.name}" argument "${n.name}" of type "${r}" is required, but it was not provided.`,t))}}}}}function ns(e){var t;const n=Object.create(null),i=e.getSchema(),r=null!==(t=null==i?void 0:i.getDirectives())&&void 0!==t?t:qr;for(const e of r)n[e.name]=pe(e.args.filter(vt),e=>e.name);const s=e.getDocument().definitions;for(const e of s)if(e.kind===v.DIRECTIVE_DEFINITION){var o;const t=null!==(o=e.arguments)&&void 0!==o?o:[];n[e.name.value]=pe(t.filter(is),e=>e.name.value)}return{Directive:{leave(t){const i=t.name.value,r=n[i];if(r){var s;const n=null!==(s=t.arguments)&&void 0!==s?s:[],o=new Set(n.map(e=>e.name.value));for(const[n,s]of Object.entries(r))if(!o.has(n)){const r=Ue(s.type)?l(s.type):Ie(s.type);e.reportError(new I(`Directive "@${i}" argument "${n}" of type "${r}" is required, but it was not provided.`,t))}}}}}}function is(e){return e.type.kind===v.NON_NULL_TYPE&&null==e.defaultValue}function rs(e){return{Document(t){for(const n of t.definitions)if(!xr(n)){const t=n.kind===v.SCHEMA_DEFINITION||n.kind===v.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new I(`The ${t} definition is not executable.`,n))}return!1}}}function ss(e,t,n){if(e){if(e.kind===v.VARIABLE){const i=e.name.value;if(null==n||void 0===n[i])return;const r=n[i];if(null===r&&ze(t))return;return r}if(ze(t)){if(e.kind===v.NULL)return;return ss(e,t.ofType,n)}if(e.kind===v.NULL)return null;if(Ge(t)){const i=t.ofType;if(e.kind===v.LIST){const t=[];for(const r of e.values)if(os(r,n)){if(ze(i))return;t.push(null)}else{const e=ss(r,i,n);if(void 0===e)return;t.push(e)}return t}const r=ss(e,i,n);if(void 0===r)return;return[r]}if(He(t)){if(e.kind!==v.OBJECT)return;const i=Object.create(null),r=pe(e.fields,e=>e.name.value);for(const e of Object.values(t.getFields())){const t=r[e.name];if(!t||os(t.value,n)){if(void 0!==e.defaultValue)i[e.name]=e.defaultValue;else if(ze(e.type))return;continue}const s=ss(t.value,e.type,n);if(void 0===s)return;i[e.name]=s}return i}if(Xe(t)){let i;try{i=t.parseLiteral(e,n)}catch(e){return}if(void 0===i)return;return i}S(!1,"Unexpected input type: "+l(t))}}function os(e,t){return e.kind===v.VARIABLE&&(null==t||void 0===t[e.name.value])}function as(e,t,n){var i;const r=null===(i=t.directives)||void 0===i?void 0:i.find(t=>t.name.value===e.name);if(r)return function(e,t,n){var i;const r={},s=pe(null!==(i=t.arguments)&&void 0!==i?i:[],e=>e.name.value);for(const i of e.args){const e=i.name,o=i.type,a=s[e];if(!a){if(void 0!==i.defaultValue)r[e]=i.defaultValue;else if(ze(o))throw new I(`Argument "${e}" of required type "${l(o)}" was not provided.`,t);continue}const u=a.value;let c=u.kind===v.NULL;if(u.kind===v.VARIABLE){const t=u.name.value;if(null==n||!ls(n,t)){if(void 0!==i.defaultValue)r[e]=i.defaultValue;else if(ze(o))throw new I(`Argument "${e}" of required type "${l(o)}" was provided the variable "$${t}" which was not provided a runtime value.`,u);continue}c=null==n[t]}if(c&&ze(o))throw new I(`Argument "${e}" of non-null type "${l(o)}" must not be null.`,u);const d=ss(u,o,n);if(void 0===d)throw new I(`Argument "${e}" has invalid value ${Ie(u)}.`,u);r[e]=d}return r}(e,r,n)}function ls(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function us(e,t,n,i,r,s,o,a){for(const l of r.selections)switch(l.kind){case v.FIELD:{if(!ds(n,l))continue;const e=fs(l),t=s.get(e);void 0!==t?t.push(l):s.set(e,[l]);break}case v.INLINE_FRAGMENT:{if(!ds(n,l)||!hs(e,l,i))continue;const r=cs(e,n,l);if(r){const s=new Map;us(e,t,n,i,l.selectionSet,s,o,a),o.push({label:r.label,fields:s})}else us(e,t,n,i,l.selectionSet,s,o,a);break}case v.FRAGMENT_SPREAD:{const r=l.name.value;if(!ds(n,l))continue;const u=cs(e,n,l);if(a.has(r)&&!u)continue;const c=t[r];if(!c||!hs(e,c,i))continue;if(a.add(r),u){const r=new Map;us(e,t,n,i,c.selectionSet,r,o,a),o.push({label:u.label,fields:r})}else us(e,t,n,i,c.selectionSet,s,o,a);break}}}function cs(e,t,n){if(!0!==e._enableDeferStream)return;const i=as(Ur,n,t);return i&&!1!==i.if?{label:"string"==typeof i.label?i.label:void 0}:void 0}function ds(e,t){const n=as(Vr,t,e);if(!0===(null==n?void 0:n.if))return!1;const i=as($r,t,e);return!1!==(null==i?void 0:i.if)}function hs(e,t,n){const i=t.typeCondition;if(!i)return!0;const r=Zr(e,i);return r===n||!!Ze(r)&&e.isSubType(r,n)}function fs(e){return e.alias?e.alias.value:e.name.value}function ps(e){return{FragmentSpread(t){const n=t.name.value;e.getFragment(n)||e.reportError(new I(`Unknown fragment "${n}".`,t.name))}}}function ms(e){const t=[],n=[];return{OperationDefinition:e=>(t.push(e),!1),FragmentDefinition:e=>(n.push(e),!1),Document:{leave(){const i=Object.create(null);for(const n of t)for(const t of e.getRecursivelyReferencedFragments(n))i[t.name.value]=!0;for(const t of n){const n=t.name.value;!0!==i[n]&&e.reportError(new I(`Fragment "${n}" is never used.`,t))}}}}}function gs(e){const t=Object.create(null),n=e.getSchema(),i=n?n.getDirectives():qr;for(const e of i)t[e.name]=e.args.map(e=>e.name);const r=e.getDocument().definitions;for(const e of r)if(e.kind===v.DIRECTIVE_DEFINITION){var s;const n=null!==(s=e.arguments)&&void 0!==s?s:[];t[e.name.value]=n.map(e=>e.name.value)}return{Directive(n){const i=n.name.value,r=t[i];if(n.arguments&&r)for(const t of n.arguments){const n=t.name.value;if(!r.includes(n)){const s=Se(n,r);e.reportError(new I(`Unknown argument "${n}" on directive "@${i}".`+ye(s),t))}}return!1}}}function vs(e,t){const n=e.getInputType();if(!n)return;const i=ot(n);if(Xe(i))try{if(void 0===i.parseLiteral(t,void 0)){const i=l(n);e.reportError(new I(`Expected value of type "${i}", found ${Ie(t)}.`,t))}}catch(i){const r=l(n);i instanceof I?e.reportError(i):e.reportError(new I(`Expected value of type "${r}", found ${Ie(t)}; `+i.message,t,void 0,void 0,void 0,i))}else{const i=l(n);e.reportError(new I(`Expected value of type "${i}", found ${Ie(t)}.`,t))}}function ys(e,t,n,i,r){return ze(i)&&!ze(t)?(null!=n&&n.kind!==v.NULL||void 0!==r)&&Jt(e,t,i.ofType):Jt(e,t,i)}function _s(e){return Array.isArray(e)?e.map(([e,t])=>`subfields "${e}" conflict because `+_s(t)).join(" and "):e}function bs(e,t,n,i,r,s,o){const a=e.getFragment(o);if(!a)return;const[l,u]=As(e,n,a);if(s!==l){Ns(e,t,n,i,r,s,l);for(const o of u)bs(e,t,n,i,r,s,o)}}function Es(e,t,n,i,r,s,o){if(s===o)return;if(i.has(s,o,r))return;i.add(s,o,r);const a=e.getFragment(s),l=e.getFragment(o);if(!a||!l)return;const[u,c]=As(e,n,a),[d,h]=As(e,n,l);Ns(e,t,n,i,r,u,d);for(const o of h)Es(e,t,n,i,r,s,o);for(const s of c)Es(e,t,n,i,r,s,o)}function Ns(e,t,n,i,r,s,o){for(const[a,l]of Object.entries(s)){const s=o[a];if(s)for(const o of l)for(const l of s){const s=Ts(e,n,i,r,a,o,l);s&&t.push(s)}}}function Ts(e,t,n,i,r,s,o){const[a,u,c]=s,[d,h,f]=o,p=i||a!==d&&je(a)&&je(d);if(!p){var m,g,v,y;const e=u.name.value,t=h.name.value;if(e!==t)return[[r,`"${e}" and "${t}" are different fields`],[u],[h]];if(_=null!==(m=u.arguments)&&void 0!==m?m:[],b=null!==(g=h.arguments)&&void 0!==g?g:[],_.length!==b.length||!_.every(e=>{const t=b.find(t=>t.name.value===e.name.value);return!!t&&Cs(e.value,t.value)}))return[[r,"they have differing arguments"],[u],[h]];if(!function(e,t){const n=ks(e),i=ks(t);return!n&&!i||!(!n||!i)&&(Ss(n,i,"initialCount")&&Ss(n,i,"label"))}(null!==(v=u.directives)&&void 0!==v?v:[],null!==(y=h.directives)&&void 0!==y?y:[]))return[[r,"they have differing stream directives"],[u],[h]]}var _,b;const E=null==c?void 0:c.type,N=null==f?void 0:f.type;if(E&&N&&ws(E,N))return[[r,`they return conflicting types "${l(E)}" and "${l(N)}"`],[u],[h]];const T=u.selectionSet,S=h.selectionSet;if(T&&S){const i=function(e,t,n,i,r,s,o,a){const l=[],[u,c]=Ls(e,t,r,s),[d,h]=Ls(e,t,o,a);Ns(e,l,t,n,i,u,d);for(const r of h)bs(e,l,t,n,i,u,r);for(const r of c)bs(e,l,t,n,i,d,r);for(const r of c)for(const s of h)Es(e,l,t,n,i,r,s);return l}(e,t,n,p,ot(E),T,ot(N),S);return function(e,t,n,i){if(e.length>0)return[[t,e.map(([e])=>e)],[n,...e.map(([,e])=>e).flat()],[i,...e.map(([,,e])=>e).flat()]]}(i,r,u,h)}}function Ss(e,t,n){var i,r;const s=(null!==(i=e.arguments)&&void 0!==i?i:[]).find(e=>e.name.value===n);if(!s)return!1;const o=(null!==(r=t.arguments)&&void 0!==r?r:[]).find(e=>e.name.value===n);return!!o&&Cs(s.value,o.value)}function ks(e){return e.find(e=>"stream"===e.name.value)}function Cs(e,t){return Ie(e)===Ie(t)}function ws(e,t){return Ge(e)?!Ge(t)||ws(e.ofType,t.ofType):!!Ge(t)||(ze(e)?!ze(t)||ws(e.ofType,t.ofType):!!ze(t)||!(!Xe(e)&&!Xe(t))&&e!==t)}function Ls(e,t,n,i){const r=t.get(i);if(r)return r;const s=Object.create(null),o=Object.create(null);Is(e,n,i,s,o);const a=[s,Object.keys(o)];return t.set(i,a),a}function As(e,t,n){const i=t.get(n.selectionSet);if(i)return i;const r=Zr(e.getSchema(),n.typeCondition);return Ls(e,t,r,n.selectionSet)}function Is(e,t,n,i,r){for(const s of n.selections)switch(s.kind){case v.FIELD:{const e=s.name.value;let n;(je(t)||Ke(t))&&(n=t.getFields()[e]);const r=s.alias?s.alias.value:e;i[r]||(i[r]=[]),i[r].push([t,s,n]);break}case v.FRAGMENT_SPREAD:r[s.name.value]=!0;break;case v.INLINE_FRAGMENT:{const n=s.typeCondition,o=n?Zr(e.getSchema(),n):t;Is(e,o,s.selectionSet,i,r);break}}}class xs{constructor(){this._data=new Map}has(e,t,n){var i;const[r,s]=e<t?[e,t]:[t,e],o=null===(i=this._data.get(r))||void 0===i?void 0:i.get(s);return void 0!==o&&(!!n||n===o)}add(e,t,n){const[i,r]=e<t?[e,t]:[t,e],s=this._data.get(i);void 0===s?this._data.set(i,new Map([[r,n]])):s.set(r,n)}}const Os=Object.freeze([rs,function(e){const t=Object.create(null);return{OperationDefinition(n){const i=n.name;return i&&(t[i.value]?e.reportError(new I(`There can be only one operation named "${i.value}".`,[t[i.value],i])):t[i.value]=i),!1},FragmentDefinition:()=>!1}},function(e){let t=0;return{Document(e){t=e.definitions.filter(e=>e.kind===v.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new I("This anonymous operation must be the only defined operation.",n))}}},function(e){return{OperationDefinition(t){if("subscription"===t.operation){const n=e.getSchema(),i=n.getSubscriptionType();if(i){const r=t.name?t.name.value:null,s=Object.create(null),o=e.getDocument(),a=Object.create(null);for(const e of o.definitions)e.kind===v.FRAGMENT_DEFINITION&&(a[e.name.value]=e);const{fields:l}=function(e,t,n,i,r){const s=new Map,o=[];return us(e,t,n,i,r,s,o,new Set),{fields:s,patches:o}}(n,a,s,i,t.selectionSet);if(l.size>1){const t=[...l.values()].slice(1).flat();e.reportError(new I(null!=r?`Subscription "${r}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",t))}for(const t of l.values())t[0].name.value.startsWith("__")&&e.reportError(new I(null!=r?`Subscription "${r}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",t))}}}}},Dr,es,function(e){return{VariableDefinition(t){const n=Zr(e.getSchema(),t.type);if(void 0!==n&&!Ye(n)){const n=t.variable.name.value,i=Ie(t.type);e.reportError(new I(`Variable "$${n}" cannot be non-input type "${i}".`,t.type))}}}},function(e){return{Field(t){const n=e.getType(),i=t.selectionSet;if(n)if(Xe(ot(n))){if(i){const r=t.name.value,s=l(n);e.reportError(new I(`Field "${r}" must not have a selection since type "${s}" has no subfields.`,i))}}else if(!i){const i=t.name.value,r=l(n);e.reportError(new I(`Field "${i}" of type "${r}" must have a selection of subfields. Did you mean "${i} { ... }"?`,t))}}}},function(e){return{Field(t){const n=e.getParentType();if(n&&!e.getFieldDef()){const i=e.getSchema(),r=t.name.value;let s=ye("to use an inline fragment on",function(e,t,n){if(!Ze(t))return[];const i=new Set,r=Object.create(null);for(const o of e.getPossibleTypes(t))if(o.getFields()[n]){i.add(o),r[o.name]=1;for(const e of o.getInterfaces()){var s;e.getFields()[n]&&(i.add(e),r[e.name]=(null!==(s=r[e.name])&&void 0!==s?s:0)+1)}}return[...i].sort((t,n)=>{const i=r[n.name]-r[t.name];return 0!==i?i:Ke(t)&&e.isSubType(t,n)?-1:Ke(n)&&e.isSubType(n,t)?1:be(t.name,n.name)}).map(e=>e.name)}(i,n,r));""===s&&(s=ye(function(e,t){return je(e)||Ke(e)?Se(t,Object.keys(e.getFields())):[]}(n,r))),e.reportError(new I(`Cannot query field "${r}" on type "${n.name}".`+s,t))}}}},function(e){const t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){const i=n.name.value;return t[i]?e.reportError(new I(`There can be only one fragment named "${i}".`,[t[i],n.name])):t[i]=n.name,!1}}},ps,ms,function(e){return{InlineFragment(t){const n=e.getType(),i=e.getParentType();if(Je(n)&&Je(i)&&!Zt(e.getSchema(),n,i)){const r=l(i),s=l(n);e.reportError(new I(`Fragment cannot be spread here as objects of type "${r}" can never be of type "${s}".`,t))}},FragmentSpread(t){const n=t.name.value,i=function(e,t){const n=e.getFragment(t);if(n){const t=Zr(e.getSchema(),n.typeCondition);if(Je(t))return t}}(e,n),r=e.getParentType();if(i&&r&&!Zt(e.getSchema(),i,r)){const s=l(r),o=l(i);e.reportError(new I(`Fragment "${n}" cannot be spread here as objects of type "${s}" can never be of type "${o}".`,t))}}}},function(e){const t=Object.create(null),n=[],i=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition:e=>(r(e),!1)};function r(s){if(t[s.name.value])return;const o=s.name.value;t[o]=!0;const a=e.getFragmentSpreads(s.selectionSet);if(0!==a.length){i[o]=n.length;for(const t of a){const s=t.name.value,o=i[s];if(n.push(t),void 0===o){const t=e.getFragment(s);t&&r(t)}else{const t=n.slice(o),i=t.slice(0,-1).map(e=>'"'+e.name.value+'"').join(", ");e.reportError(new I(`Cannot spread fragment "${s}" within itself`+(""!==i?` via ${i}.`:"."),t))}n.pop()}i[o]=void 0}}},Jr,function(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const i=e.getRecursiveVariableUsages(n);for(const{node:r}of i){const i=r.name.value;!0!==t[i]&&e.reportError(new I(n.name?`Variable "$${i}" is not defined by operation "${n.name.value}".`:`Variable "$${i}" is not defined.`,[r,n]))}}},VariableDefinition(e){t[e.variable.name.value]=!0}}},function(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){const i=Object.create(null),r=e.getRecursiveVariableUsages(n);for(const{node:e}of r)i[e.name.value]=!0;for(const r of t){const t=r.variable.name.value;!0!==i[t]&&e.reportError(new I(n.name?`Variable "$${t}" is never used in operation "${n.name.value}".`:`Variable "$${t}" is never used.`,r))}}},VariableDefinition(e){t.push(e)}}},Wr,Hr,function(e){return{Directive(t){const n=e.getSchema().getMutationType(),i=e.getSchema().getSubscriptionType(),r=e.getParentType();r&&t.name.value===Ur.name&&(n&&r===n&&e.reportError(new I(`Defer directive cannot be used on root mutation type "${r.name}".`,t)),i&&r===i&&e.reportError(new I(`Defer directive cannot be used on root subscription type "${r.name}".`,t))),r&&t.name.value===Br.name&&(n&&r===n&&e.reportError(new I(`Stream directive cannot be used on root mutation type "${r.name}".`,t)),i&&r===i&&e.reportError(new I(`Stream directive cannot be used on root subscription type "${r.name}".`,t)))}}},function(e){return{Directive(t){const n=e.getFieldDef(),i=e.getParentType();n&&i&&t.name.value===Br.name&&!(Ge(n.type)||nt(n.type)&&Ge(n.type.ofType))&&e.reportError(new I(`Stream directive cannot be used on non-list field "${n.name}" on type "${i.name}".`,t))}}},function(e){return{...gs(e),Argument(t){const n=e.getArgument(),i=e.getFieldDef(),r=e.getParentType();if(!n&&i&&r){const n=t.name.value,s=Se(n,i.args.map(e=>e.name));e.reportError(new I(`Unknown argument "${n}" on field "${r.name}.${i.name}".`+ye(s),t))}}}},Qr,function(e){return{ListValue(t){if(!Ge(rt(e.getParentInputType())))return vs(e,t),!1},ObjectValue(t){const n=ot(e.getInputType());if(!He(n))return vs(e,t),!1;const i=pe(t.fields,e=>e.name.value);for(const r of Object.values(n.getFields()))if(!i[r.name]&&kt(r)){const i=l(r.type);e.reportError(new I(`Field "${n.name}.${r.name}" of required type "${i}" was not provided.`,t))}},ObjectField(t){const n=ot(e.getParentInputType());if(!e.getInputType()&&He(n)){const i=Se(t.name.value,Object.keys(n.getFields()));e.reportError(new I(`Field "${t.name.value}" is not defined by type "${n.name}".`+ye(i),t))}},NullValue(t){const n=e.getInputType();ze(n)&&e.reportError(new I(`Expected value of type "${l(n)}", found ${Ie(t)}.`,t))},EnumValue:t=>vs(e,t),IntValue:t=>vs(e,t),FloatValue:t=>vs(e,t),StringValue:t=>vs(e,t),BooleanValue:t=>vs(e,t)}},ts,function(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const i=e.getRecursiveVariableUsages(n);for(const{node:n,type:r,defaultValue:s}of i){const i=n.name.value,o=t[i];if(o&&r){const t=e.getSchema(),a=Zr(t,o.type);if(a&&!ys(t,a,o.defaultValue,r,s)){const t=l(a),s=l(r);e.reportError(new I(`Variable "$${i}" of type "${t}" used in position expecting type "${s}".`,[o,n]))}}}}},VariableDefinition(e){t[e.variable.name.value]=e}}},function(e){const t=new xs,n=new Map;return{SelectionSet(i){const r=function(e,t,n,i,r){const s=[],[o,a]=Ls(e,t,i,r);if(function(e,t,n,i,r){for(const[s,o]of Object.entries(r))if(o.length>1)for(let r=0;r<o.length;r++)for(let a=r+1;a<o.length;a++){const l=Ts(e,n,i,!1,s,o[r],o[a]);l&&t.push(l)}}(e,s,t,n,o),0!==a.length)for(let i=0;i<a.length;i++){bs(e,s,t,n,!1,o,a[i]);for(let r=i+1;r<a.length;r++)Es(e,s,t,n,!1,a[i],a[r])}return s}(e,n,t,e.getParentType(),i);for(const[[t,n],i,s]of r){const r=_s(n);e.reportError(new I(`Fields "${t}" conflict because ${r}. Use different aliases on the fields to fetch both if this was intentional.`,i.concat(s)))}}}},Xr]),Rs=Object.freeze([Sr,kr,Cr,wr,Lr,function(e){return{DirectiveDefinition(e){var t;const i=null!==(t=e.arguments)&&void 0!==t?t:[];return n(`@${e.name.value}`,i)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(e){var t;const i=e.name.value,r=null!==(t=e.fields)&&void 0!==t?t:[];for(const e of r){var s;n(`${i}.${e.name.value}`,null!==(s=e.arguments)&&void 0!==s?s:[])}return!1}function n(t,n){const i=Yr(n,e=>e.name.value);for(const[n,r]of i)r.length>1&&e.reportError(new I(`Argument "${t}(${n}:)" can only be defined once.`,r.map(e=>e.name)));return!1}},Ir,Dr,Wr,Hr,Gr,gs,Qr,Xr,ns]);class Ds{constructor(e){var t,n;this.__validationErrors=!0===e.assumeValid?[]:void 0,this._enableDeferStream=e.enableDeferStream,T(e)||c(!1,"Must provide configuration object."),!e.types||Array.isArray(e.types)||c(!1,`"types" must be Array if provided but got: ${l(e.types)}.`),!e.directives||Array.isArray(e.directives)||c(!1,`"directives" must be Array if provided but got: ${l(e.directives)}.`),this.description=e.description,this.extensions=ge(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=null!==(n=e.directives)&&void 0!==n?n:qr,!0===e.enableDeferStream&&(this._directives.some(e=>"defer"===e.name)||(this._directives=[...this._directives,Ur]),this._directives.some(e=>"stream"===e.name)||(this._directives=[...this._directives,Br]));const i=new Set(e.types);if(null!=e.types)for(const t of e.types)i.delete(t),Ms(t,i);null!=this._queryType&&Ms(this._queryType,i),null!=this._mutationType&&Ms(this._mutationType,i),null!=this._subscriptionType&&Ms(this._subscriptionType,i);for(const e of this._directives)if(Fr(e))for(const t of e.args)Ms(t.type,i);Ms(Pt,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(const e of i){if(null==e)continue;const t=e.name;if(t||c(!1,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[t])throw new Error(`Schema must contain uniquely named types but contains multiple types named "${t}".`);if(this._typeMap[t]=e,Ke(e)){for(const t of e.getInterfaces())if(Ke(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.interfaces.push(e)}}else if(je(e))for(const t of e.getInterfaces())if(Ke(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.objects.push(e)}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case g.QUERY:return this.getQueryType();case g.MUTATION:return this.getMutationType();case g.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return qe(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){const t=this._implementationsMap[e.name];return null!=t?t:{objects:[],interfaces:[]}}isSubType(e,t){let n=this._subTypeMap[e.name];if(void 0===n){if(n=Object.create(null),qe(e))for(const t of e.getTypes())n[t.name]=!0;else{const t=this.getImplementations(e);for(const e of t.objects)n[e.name]=!0;for(const e of t.interfaces)n[e.name]=!0}this._subTypeMap[e.name]=n}return void 0!==n[t.name]}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find(t=>t.name===e)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:void 0!==this.__validationErrors}}}function Ms(e,t){const n=ot(e);if(!t.has(n))if(t.add(n),qe(n))for(const e of n.getTypes())Ms(e,t);else if(je(n)||Ke(n)){for(const e of n.getInterfaces())Ms(e,t);for(const e of Object.values(n.getFields())){Ms(e.type,t);for(const n of e.args)Ms(n.type,t)}}else if(He(n))for(const e of Object.values(n.getFields()))Ms(e.type,t);return t}function Fs(e){if(function(e){if(!function(e){return M(e,Ds)}(e))throw new Error(`Expected ${l(e)} to be a GraphQL schema.`)}(e),e.__validationErrors)return e.__validationErrors;const t=new Ps(e);!function(e){const t=e.schema,n=t.getQueryType();if(n){if(!je(n)){var i;e.reportError(`Query root type must be Object type, it cannot be ${l(n)}.`,null!==(i=$s(t,g.QUERY))&&void 0!==i?i:n.astNode)}}else e.reportError("Query root type must be provided.",t.astNode);const r=t.getMutationType();var s;r&&!je(r)&&e.reportError(`Mutation root type must be Object type if provided, it cannot be ${l(r)}.`,null!==(s=$s(t,g.MUTATION))&&void 0!==s?s:r.astNode);const o=t.getSubscriptionType();var a;o&&!je(o)&&e.reportError(`Subscription root type must be Object type if provided, it cannot be ${l(o)}.`,null!==(a=$s(t,g.SUBSCRIPTION))&&void 0!==a?a:o.astNode)}(t),function(e){for(const n of e.schema.getDirectives())if(Fr(n)){Vs(e,n);for(const i of n.args){var t;Vs(e,i),Ye(i.type)||e.reportError(`The type of @${n.name}(${i.name}:) must be Input Type but got: ${l(i.type)}.`,i.astNode),vt(i)&&null!=i.deprecationReason&&e.reportError(`Required argument @${n.name}(${i.name}:) cannot be deprecated.`,[Ys(i.astNode),null===(t=i.astNode)||void 0===t?void 0:t.type])}}else e.reportError(`Expected directive but got: ${l(n)}.`,null==n?void 0:n.astNode)}(t),function(e){const t=function(e){const t=Object.create(null),n=[],i=Object.create(null);return function r(s){if(t[s.name])return;t[s.name]=!0,i[s.name]=n.length;const o=Object.values(s.getFields());for(const t of o)if(ze(t.type)&&He(t.type.ofType)){const s=t.type.ofType,o=i[s.name];if(n.push(t),void 0===o)r(s);else{const t=n.slice(o),i=t.map(e=>e.name).join(".");e.reportError(`Cannot reference Input Object "${s.name}" within itself through a series of non-null fields: "${i}".`,t.map(e=>e.astNode))}n.pop()}i[s.name]=void 0}}(e),n=e.schema.getTypeMap();for(const i of Object.values(n))st(i)?(Qt(i)||Vs(e,i),je(i)||Ke(i)?(Us(e,i),Bs(e,i)):qe(i)?qs(e,i):We(i)?Ws(e,i):He(i)&&(Hs(e,i),t(i))):e.reportError(`Expected GraphQL named type but got: ${l(i)}.`,i.astNode)}(t);const n=t.getErrors();return e.__validationErrors=n,n}class Ps{constructor(e){this._errors=[],this.schema=e}reportError(e,t){const n=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new I(e,n))}getErrors(){return this._errors}}function $s(e,t){var n;return null===(n=[e.astNode,...e.extensionASTNodes].flatMap(e=>{var t;return null!==(t=null==e?void 0:e.operationTypes)&&void 0!==t?t:[]}).find(e=>e.operation===t))||void 0===n?void 0:n.type}function Vs(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function Us(e,t){const n=Object.values(t.getFields());0===n.length&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const o of n){var i;Vs(e,o),Qe(o.type)||e.reportError(`The type of ${t.name}.${o.name} must be Output Type but got: ${l(o.type)}.`,null===(i=o.astNode)||void 0===i?void 0:i.type);for(const n of o.args){const i=n.name;var r,s;Vs(e,n),Ye(n.type)||e.reportError(`The type of ${t.name}.${o.name}(${i}:) must be Input Type but got: ${l(n.type)}.`,null===(r=n.astNode)||void 0===r?void 0:r.type),vt(n)&&null!=n.deprecationReason&&e.reportError(`Required argument ${t.name}.${o.name}(${i}:) cannot be deprecated.`,[Ys(n.astNode),null===(s=n.astNode)||void 0===s?void 0:s.type])}}}function Bs(e,t){const n=Object.create(null);for(const i of t.getInterfaces())Ke(i)?t!==i?n[i.name]?e.reportError(`Type ${t.name} can only implement ${i.name} once.`,Gs(t,i)):(n[i.name]=!0,Ks(e,t,i),js(e,t,i)):e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,Gs(t,i)):e.reportError(`Type ${l(t)} must only implement Interface types, it cannot implement ${l(i)}.`,Gs(t,i))}function js(e,t,n){const i=t.getFields();for(const u of Object.values(n.getFields())){const c=u.name,d=i[c];if(d){var r,s;Jt(e.schema,d.type,u.type)||e.reportError(`Interface field ${n.name}.${c} expects type ${l(u.type)} but ${t.name}.${c} is type ${l(d.type)}.`,[null===(r=u.astNode)||void 0===r?void 0:r.type,null===(s=d.astNode)||void 0===s?void 0:s.type]);for(const i of u.args){const r=i.name,s=d.args.find(e=>e.name===r);var o,a;s?Xt(i.type,s.type)||e.reportError(`Interface field argument ${n.name}.${c}(${r}:) expects type ${l(i.type)} but ${t.name}.${c}(${r}:) is type ${l(s.type)}.`,[null===(o=i.astNode)||void 0===o?void 0:o.type,null===(a=s.astNode)||void 0===a?void 0:a.type]):e.reportError(`Interface field argument ${n.name}.${c}(${r}:) expected but ${t.name}.${c} does not provide it.`,[i.astNode,d.astNode])}for(const i of d.args){const r=i.name;!u.args.find(e=>e.name===r)&&vt(i)&&e.reportError(`Object field ${t.name}.${c} includes required argument ${r} that is missing from the Interface field ${n.name}.${c}.`,[i.astNode,u.astNode])}}else e.reportError(`Interface field ${n.name}.${c} expected but ${t.name} does not provide it.`,[u.astNode,t.astNode,...t.extensionASTNodes])}}function Ks(e,t,n){const i=t.getInterfaces();for(const r of n.getInterfaces())i.includes(r)||e.reportError(r===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${r.name} because it is implemented by ${n.name}.`,[...Gs(n,r),...Gs(t,n)])}function qs(e,t){const n=t.getTypes();0===n.length&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);const i=Object.create(null);for(const r of n)i[r.name]?e.reportError(`Union type ${t.name} can only include type ${r.name} once.`,zs(t,r.name)):(i[r.name]=!0,je(r)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${l(r)}.`,zs(t,String(r))))}function Ws(e,t){const n=t.getValues();0===n.length&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(const t of n)Vs(e,t)}function Hs(e,t){const n=Object.values(t.getFields());0===n.length&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const s of n){var i,r;Vs(e,s),Ye(s.type)||e.reportError(`The type of ${t.name}.${s.name} must be Input Type but got: ${l(s.type)}.`,null===(i=s.astNode)||void 0===i?void 0:i.type),kt(s)&&null!=s.deprecationReason&&e.reportError(`Required input field ${t.name}.${s.name} cannot be deprecated.`,[Ys(s.astNode),null===(r=s.astNode)||void 0===r?void 0:r.type])}}function Gs(e,t){const{astNode:n,extensionASTNodes:i}=e;return(null!=n?[n,...i]:i).flatMap(e=>{var t;return null!==(t=e.interfaces)&&void 0!==t?t:[]}).filter(e=>e.name.value===t.name)}function zs(e,t){const{astNode:n,extensionASTNodes:i}=e;return(null!=n?[n,...i]:i).flatMap(e=>{var t;return null!==(t=e.types)&&void 0!==t?t:[]}).filter(e=>e.name.value===t)}function Ys(e){var t;return null==e||null===(t=e.directives)||void 0===t?void 0:t.find(e=>e.name.value===jr.name)}class Qs{constructor(e,t,n){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=null!=n?n:Xs,t&&(Ye(t)&&this._inputTypeStack.push(t),Je(t)&&this._parentTypeStack.push(t),Qe(t)&&this._typeStack.push(t))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){const t=this._schema;switch(e.kind){case v.SELECTION_SET:{const e=ot(this.getType());this._parentTypeStack.push(Je(e)?e:void 0);break}case v.FIELD:{const n=this.getParentType();let i,r;n&&(i=this._getFieldDef(t,n,e),i&&(r=i.type)),this._fieldDefStack.push(i),this._typeStack.push(Qe(r)?r:void 0);break}case v.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case v.OPERATION_DEFINITION:{const n=t.getRootType(e.operation);this._typeStack.push(je(n)?n:void 0);break}case v.INLINE_FRAGMENT:case v.FRAGMENT_DEFINITION:{const n=e.typeCondition,i=n?Zr(t,n):ot(this.getType());this._typeStack.push(Qe(i)?i:void 0);break}case v.VARIABLE_DEFINITION:{const n=Zr(t,e.type);this._inputTypeStack.push(Ye(n)?n:void 0);break}case v.ARGUMENT:{var n;let t,i;const r=null!==(n=this.getDirective())&&void 0!==n?n:this.getFieldDef();r&&(t=r.args.find(t=>t.name===e.name.value),t&&(i=t.type)),this._argument=t,this._defaultValueStack.push(t?t.defaultValue:void 0),this._inputTypeStack.push(Ye(i)?i:void 0);break}case v.LIST:{const e=rt(this.getInputType()),t=Ge(e)?e.ofType:e;this._defaultValueStack.push(void 0),this._inputTypeStack.push(Ye(t)?t:void 0);break}case v.OBJECT_FIELD:{const t=ot(this.getInputType());let n,i;He(t)&&(i=t.getFields()[e.name.value],i&&(n=i.type)),this._defaultValueStack.push(i?i.defaultValue:void 0),this._inputTypeStack.push(Ye(n)?n:void 0);break}case v.ENUM:{const t=ot(this.getInputType());let n;We(t)&&(n=t.getValue(e.value)),this._enumValue=n;break}}}leave(e){switch(e.kind){case v.SELECTION_SET:this._parentTypeStack.pop();break;case v.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case v.DIRECTIVE:this._directive=null;break;case v.OPERATION_DEFINITION:case v.INLINE_FRAGMENT:case v.FRAGMENT_DEFINITION:this._typeStack.pop();break;case v.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case v.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case v.LIST:case v.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case v.ENUM:this._enumValue=null}}}function Xs(e,t,n){const i=n.name.value;return i===Ht.name&&e.getQueryType()===t?Ht:i===Gt.name&&e.getQueryType()===t?Gt:i===zt.name&&Je(t)?zt:je(t)||Ke(t)?t.getFields()[i]:void 0}function Js(e,t){return{enter(...n){const i=n[0];e.enter(i);const r=N(t,i.kind).enter;if(r){const s=r.apply(t,n);return void 0!==s&&(e.leave(i),m(s)&&e.enter(s)),s}},leave(...n){const i=n[0],r=N(t,i.kind).leave;let s;return r&&(s=r.apply(t,n)),e.leave(i),s}}}class Zs{constructor(e,t){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let t;if(this._fragments)t=this._fragments;else{t=Object.create(null);for(const e of this.getDocument().definitions)e.kind===v.FRAGMENT_DEFINITION&&(t[e.name.value]=e);this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){t=[];const n=[e];let i;for(;i=n.pop();)for(const e of i.selections)e.kind===v.FRAGMENT_SPREAD?t.push(e):e.selectionSet&&n.push(e.selectionSet);this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){t=[];const n=Object.create(null),i=[e.selectionSet];let r;for(;r=i.pop();)for(const e of this.getFragmentSpreads(r)){const r=e.name.value;if(!0!==n[r]){n[r]=!0;const e=this.getFragment(r);e&&(t.push(e),i.push(e.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t}}class eo extends Zs{constructor(e,t,n){super(e,n),this._schema=t}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}class to extends Zs{constructor(e,t,n,i){super(t,i),this._schema=e,this._typeInfo=n,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let t=this._variableUsages.get(e);if(!t){const n=[],i=new Qs(this._schema);b(e,Js(i,{VariableDefinition:()=>!1,Variable(e){n.push({node:e,type:i.getInputType(),defaultValue:i.getDefaultValue()})}})),t=n,this._variableUsages.set(e,t)}return t}getRecursiveVariableUsages(e){let t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);for(const n of this.getRecursivelyReferencedFragments(e))t=t.concat(this.getVariableUsages(n));this._recursiveVariableUsages.set(e,t)}return t}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}function no(e,t,n=Os,i,r=new Qs(e)){var s;const o=null!==(s=null==i?void 0:i.maxErrors)&&void 0!==s?s:100;t||c(!1,"Must provide document."),function(e){const t=Fs(e);if(0!==t.length)throw new Error(t.map(e=>e.message).join("\n\n"))}(e);const a=Object.freeze({}),l=[],u=new to(e,t,r,e=>{if(l.length>=o)throw l.push(new I("Too many validation errors, error limit reached. Validation aborted.")),a;l.push(e)}),d=E(n.map(e=>e(u)));try{b(t,Js(r,d))}catch(e){if(e!==a)throw e}return l}function io(e){return{Field(t){const n=e.getFieldDef(),i=null==n?void 0:n.deprecationReason;if(n&&null!=i){const r=e.getParentType();null!=r||S(!1),e.reportError(new I(`The field ${r.name}.${n.name} is deprecated. ${i}`,t))}},Argument(t){const n=e.getArgument(),i=null==n?void 0:n.deprecationReason;if(n&&null!=i){const r=e.getDirective();if(null!=r)e.reportError(new I(`Directive "@${r.name}" argument "${n.name}" is deprecated. ${i}`,t));else{const r=e.getParentType(),s=e.getFieldDef();null!=r&&null!=s||S(!1),e.reportError(new I(`Field "${r.name}.${s.name}" argument "${n.name}" is deprecated. ${i}`,t))}}},ObjectField(t){const n=ot(e.getParentInputType());if(He(n)){const i=n.getFields()[t.name.value],r=null==i?void 0:i.deprecationReason;null!=r&&e.reportError(new I(`The input field ${n.name}.${i.name} is deprecated. ${r}`,t))}},EnumValue(t){const n=e.getEnumValue(),i=null==n?void 0:n.deprecationReason;if(n&&null!=i){const r=ot(e.getInputType());null!=r||S(!1),e.reportError(new I(`The enum value "${r.name}.${n.name}" is deprecated. ${i}`,t))}}}}const ro="Error",so="Warning",oo="Information",ao="Hint",lo={[ro]:1,[so]:2,[oo]:3,[ao]:4},uo=(e,t)=>{if(!e)throw new Error(t)};function co(e,t,n){if(!e.nodes)return[];const i=[];for(const[r,s]of e.nodes.entries()){const o="Variable"!==s.kind&&"name"in s&&void 0!==s.name?s.name:"variable"in s&&void 0!==s.variable?s.variable:s;if(o){uo(e.locations,"GraphQL validation error requires locations.");const s=e.locations[r],a=fo(o),l=s.column+(a.end-a.start);i.push({source:`GraphQL: ${n}`,message:e.message,severity:t,range:new Nr(new Tr(s.line-1,s.column-1),new Tr(s.line-1,l))})}}return i}function ho(e,t){const n=Ui(),i=n.startState(),r=t.split("\n");uo(r.length>=e.line,"Query text must have more lines than where the error happened");let s=null;for(let t=0;t<e.line;t++)for(s=new Ii(r[t]);!s.eol()&&"invalidchar"!==n.token(s,i););uo(s,"Expected Parser stream to be available.");const o=e.line-1,a=s.getStartOfToken(),l=s.getCurrentPosition();return new Nr(new Tr(o,a),new Tr(o,l))}function fo(e){const t=e.loc;return uo(t,"Expected ASTNode to have a location."),t}function po(e,t){t.useMarkdown&&Eo(e,"```graphql\n")}function mo(e,t){t.useMarkdown&&Eo(e,"\n```")}function go(e,t,n){if(!t.fieldDef)return;const i=t.fieldDef.name;"__"!==i.slice(0,2)&&(_o(e,t,n,t.parentType),Eo(e,".")),Eo(e,i)}function vo(e,t,n){t.directiveDef&&Eo(e,"@"+t.directiveDef.name)}function yo(e,t,n,i){Eo(e,": "),_o(e,t,n,i)}function _o(e,t,n,i){i&&(i instanceof tt?(_o(e,t,n,i.ofType),Eo(e,"!")):i instanceof et?(Eo(e,"["),_o(e,t,n,i.ofType),Eo(e,"]")):Eo(e,i.name))}function bo(e,t,n){if(!n)return;const i="string"==typeof n.description?n.description:null;i&&(Eo(e,"\n\n"),Eo(e,i)),function(e,t,n){if(!n)return;const i=n.deprecationReason;i&&(Eo(e,"\n\n"),Eo(e,"Deprecated: "),Eo(e,i))}(e,0,n)}function Eo(e,t){e.push(t)}var No=o(337),To=o.n(No);function So(e,t){T(e)&&T(e.__schema)||c(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${l(e)}.`);const n=e.__schema,i=ve(n.types,e=>e.name,e=>function(e){if(null!=e&&null!=e.name&&null!=e.kind)switch(e.kind){case qt.SCALAR:return new ut({name:(i=e).name,description:i.description,specifiedByURL:i.specifiedByURL});case qt.OBJECT:return new ct({name:(n=e).name,description:n.description,interfaces:()=>p(n),fields:()=>m(n)});case qt.INTERFACE:return new yt({name:(t=e).name,description:t.description,interfaces:()=>p(t),fields:()=>m(t)});case qt.UNION:return function(e){if(!e.possibleTypes){const t=l(e);throw new Error(`Introspection result missing possibleTypes: ${t}.`)}return new _t({name:e.name,description:e.description,types:()=>e.possibleTypes.map(h)})}(e);case qt.ENUM:return function(e){if(!e.enumValues){const t=l(e);throw new Error(`Introspection result missing enumValues: ${t}.`)}return new Et({name:e.name,description:e.description,values:ve(e.enumValues,e=>e.name,e=>({description:e.description,deprecationReason:e.deprecationReason}))})}(e);case qt.INPUT_OBJECT:return function(e){if(!e.inputFields){const t=l(e);throw new Error(`Introspection result missing inputFields: ${t}.`)}return new Tt({name:e.name,description:e.description,fields:()=>v(e.inputFields)})}(e)}var t,n,i;const r=l(e);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${r}.`)}(e));for(const e of[...Rt,...Yt])i[e.name]&&(i[e.name]=e);const r=n.queryType?h(n.queryType):null,s=n.mutationType?h(n.mutationType):null,o=n.subscriptionType?h(n.subscriptionType):null,a=n.directives?n.directives.map(function(e){if(!e.args){const t=l(e);throw new Error(`Introspection result missing directive args: ${t}.`)}if(!e.locations){const t=l(e);throw new Error(`Introspection result missing directive locations: ${t}.`)}return new Pr({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:v(e.args)})}):[];return new Ds({description:n.description,query:r,mutation:s,subscription:o,types:Object.values(i),directives:a,assumeValid:null==t?void 0:t.assumeValid});function u(e){if(e.kind===qt.LIST){const t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");return new et(u(t))}if(e.kind===qt.NON_NULL){const t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");const n=u(t);return new tt(function(e){if(!it(e))throw new Error(`Expected ${l(e)} to be a GraphQL nullable type.`);return e}(n))}return d(e)}function d(e){const t=e.name;if(!t)throw new Error(`Unknown type reference: ${l(e)}.`);const n=i[t];if(!n)throw new Error(`Invalid or incomplete schema, unknown type: ${t}. Ensure that a full introspection query is used in order to build a client schema.`);return n}function h(e){return function(e){if(!je(e))throw new Error(`Expected ${l(e)} to be a GraphQL Object type.`);return e}(d(e))}function f(e){return function(e){if(!Ke(e))throw new Error(`Expected ${l(e)} to be a GraphQL Interface type.`);return e}(d(e))}function p(e){if(null===e.interfaces&&e.kind===qt.INTERFACE)return[];if(!e.interfaces){const t=l(e);throw new Error(`Introspection result missing interfaces: ${t}.`)}return e.interfaces.map(f)}function m(e){if(!e.fields)throw new Error(`Introspection result missing fields: ${l(e)}.`);return ve(e.fields,e=>e.name,g)}function g(e){const t=u(e.type);if(!Qe(t)){const e=l(t);throw new Error(`Introspection must provide output type for fields, but received: ${e}.`)}if(!e.args){const t=l(e);throw new Error(`Introspection result missing field args: ${t}.`)}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:v(e.args)}}function v(e){return ve(e,e=>e.name,y)}function y(e){const t=u(e.type);if(!Ye(t)){const e=l(t);throw new Error(`Introspection must provide input type for arguments, but received: ${e}.`)}const n=null!=e.defaultValue?ss(function(e){const t=new de(e,void 0);t.expectToken(R.SOF);const n=t.parseValueLiteral(!1);return t.expectToken(R.EOF),n}(e.defaultValue),t):void 0;return{description:e.description,type:t,defaultValue:n,deprecationReason:e.deprecationReason}}}const ko=pe([...Rt,...Yt],e=>e.name);function Co(e){const t=as(jr,e);return null==t?void 0:t.reason}function wo(e){const t=as(Kr,e);return null==t?void 0:t.url}function Lo(e,t){null!=e&&e.kind===v.DOCUMENT||c(!1,"Must provide valid Document AST."),!0!==(null==t?void 0:t.assumeValid)&&!0!==(null==t?void 0:t.assumeValidSDL)&&function(e){const t=function(e,t,n=Rs){const i=[],r=new eo(e,t,e=>{i.push(e)});return b(e,E(n.map(e=>e(r)))),i}(e);if(0!==t.length)throw new Error(t.map(e=>e.message).join("\n\n"))}(e);const n=function(e,t,n){var i,r,s,o,a;const u=[],c=Object.create(null),d=[];let h;const f=[];for(const e of t.definitions)if(e.kind===v.SCHEMA_DEFINITION)h=e;else if(e.kind===v.SCHEMA_EXTENSION)f.push(e);else if(Or(e))u.push(e);else if(Rr(e)){const t=e.name.value,n=c[t];c[t]=n?n.concat([e]):[e]}else e.kind===v.DIRECTIVE_DEFINITION&&d.push(e);if(0===Object.keys(c).length&&0===u.length&&0===d.length&&0===f.length&&null==h)return e;const p=Object.create(null);for(const t of e.types)p[t.name]=b(t);for(const e of u){var m;const t=e.name.value;p[t]=null!==(m=ko[t])&&void 0!==m?m:R(e)}const g={query:e.query&&_(e.query),mutation:e.mutation&&_(e.mutation),subscription:e.subscription&&_(e.subscription),...h&&T([h]),...T(f)};return{description:null===(i=h)||void 0===i||null===(r=i.description)||void 0===r?void 0:r.value,...g,types:Object.values(p),directives:[...e.directives.map(function(e){const t=e.toConfig();return new Pr({...t,args:me(t.args,N)})}),...d.map(function(e){var t;return new Pr({name:e.name.value,description:null===(t=e.description)||void 0===t?void 0:t.value,locations:e.locations.map(({value:e})=>e),isRepeatable:e.repeatable,args:L(e.arguments),astNode:e})})],extensions:Object.create(null),astNode:null!==(s=h)&&void 0!==s?s:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(f),assumeValid:null!==(o=null==n?void 0:n.assumeValid)&&void 0!==o&&o,enableDeferStream:null!==(a=null==n?void 0:n.enableDeferStream)&&void 0!==a&&a};function y(e){return Ge(e)?new et(y(e.ofType)):ze(e)?new tt(y(e.ofType)):_(e)}function _(e){return p[e.name]}function b(e){return Qt(e)||function(e){return Rt.some(({name:t})=>e.name===t)}(e)?e:Be(e)?function(e){var t;const n=e.toConfig(),i=null!==(t=c[n.name])&&void 0!==t?t:[];let r=n.specifiedByURL;for(const e of i){var s;r=null!==(s=wo(e))&&void 0!==s?s:r}return new ut({...n,specifiedByURL:r,extensionASTNodes:n.extensionASTNodes.concat(i)})}(e):je(e)?function(e){var t;const n=e.toConfig(),i=null!==(t=c[n.name])&&void 0!==t?t:[];return new ct({...n,interfaces:()=>[...e.getInterfaces().map(_),...x(i)],fields:()=>({...me(n.fields,E),...w(i)}),extensionASTNodes:n.extensionASTNodes.concat(i)})}(e):Ke(e)?function(e){var t;const n=e.toConfig(),i=null!==(t=c[n.name])&&void 0!==t?t:[];return new yt({...n,interfaces:()=>[...e.getInterfaces().map(_),...x(i)],fields:()=>({...me(n.fields,E),...w(i)}),extensionASTNodes:n.extensionASTNodes.concat(i)})}(e):qe(e)?function(e){var t;const n=e.toConfig(),i=null!==(t=c[n.name])&&void 0!==t?t:[];return new _t({...n,types:()=>[...e.getTypes().map(_),...O(i)],extensionASTNodes:n.extensionASTNodes.concat(i)})}(e):We(e)?function(e){var t;const n=e.toConfig(),i=null!==(t=c[e.name])&&void 0!==t?t:[];return new Et({...n,values:{...n.values,...I(i)},extensionASTNodes:n.extensionASTNodes.concat(i)})}(e):He(e)?function(e){var t;const n=e.toConfig(),i=null!==(t=c[n.name])&&void 0!==t?t:[];return new Tt({...n,fields:()=>({...me(n.fields,e=>({...e,type:y(e.type)})),...A(i)}),extensionASTNodes:n.extensionASTNodes.concat(i)})}(e):void S(!1,"Unexpected type: "+l(e))}function E(e){return{...e,type:y(e.type),args:e.args&&me(e.args,N)}}function N(e){return{...e,type:y(e.type)}}function T(e){const t={};for(const i of e){var n;const e=null!==(n=i.operationTypes)&&void 0!==n?n:[];for(const n of e)t[n.operation]=k(n.type)}return t}function k(e){var t;const n=e.name.value,i=null!==(t=ko[n])&&void 0!==t?t:p[n];if(void 0===i)throw new Error(`Unknown type: "${n}".`);return i}function C(e){return e.kind===v.LIST_TYPE?new et(C(e.type)):e.kind===v.NON_NULL_TYPE?new tt(C(e.type)):k(e)}function w(e){const t=Object.create(null);for(const r of e){var n;const e=null!==(n=r.fields)&&void 0!==n?n:[];for(const n of e){var i;t[n.name.value]={type:C(n.type),description:null===(i=n.description)||void 0===i?void 0:i.value,args:L(n.arguments),deprecationReason:Co(n),astNode:n}}}return t}function L(e){const t=null!=e?e:[],n=Object.create(null);for(const e of t){var i;const t=C(e.type);n[e.name.value]={type:t,description:null===(i=e.description)||void 0===i?void 0:i.value,defaultValue:ss(e.defaultValue,t),deprecationReason:Co(e),astNode:e}}return n}function A(e){const t=Object.create(null);for(const r of e){var n;const e=null!==(n=r.fields)&&void 0!==n?n:[];for(const n of e){var i;const e=C(n.type);t[n.name.value]={type:e,description:null===(i=n.description)||void 0===i?void 0:i.value,defaultValue:ss(n.defaultValue,e),deprecationReason:Co(n),astNode:n}}}return t}function I(e){const t=Object.create(null);for(const r of e){var n;const e=null!==(n=r.values)&&void 0!==n?n:[];for(const n of e){var i;t[n.name.value]={description:null===(i=n.description)||void 0===i?void 0:i.value,deprecationReason:Co(n),astNode:n}}}return t}function x(e){return e.flatMap(e=>{var t,n;return null!==(t=null===(n=e.interfaces)||void 0===n?void 0:n.map(k))&&void 0!==t?t:[]})}function O(e){return e.flatMap(e=>{var t,n;return null!==(t=null===(n=e.types)||void 0===n?void 0:n.map(k))&&void 0!==t?t:[]})}function R(e){var t;const n=e.name.value,i=null!==(t=c[n])&&void 0!==t?t:[];switch(e.kind){case v.OBJECT_TYPE_DEFINITION:{var r;const t=[e,...i];return new ct({name:n,description:null===(r=e.description)||void 0===r?void 0:r.value,interfaces:()=>x(t),fields:()=>w(t),astNode:e,extensionASTNodes:i})}case v.INTERFACE_TYPE_DEFINITION:{var s;const t=[e,...i];return new yt({name:n,description:null===(s=e.description)||void 0===s?void 0:s.value,interfaces:()=>x(t),fields:()=>w(t),astNode:e,extensionASTNodes:i})}case v.ENUM_TYPE_DEFINITION:{var o;const t=[e,...i];return new Et({name:n,description:null===(o=e.description)||void 0===o?void 0:o.value,values:I(t),astNode:e,extensionASTNodes:i})}case v.UNION_TYPE_DEFINITION:{var a;const t=[e,...i];return new _t({name:n,description:null===(a=e.description)||void 0===a?void 0:a.value,types:()=>O(t),astNode:e,extensionASTNodes:i})}case v.SCALAR_TYPE_DEFINITION:var l;return new ut({name:n,description:null===(l=e.description)||void 0===l?void 0:l.value,specifiedByURL:wo(e),astNode:e,extensionASTNodes:i});case v.INPUT_OBJECT_TYPE_DEFINITION:{var u;const t=[e,...i];return new Tt({name:n,description:null===(u=e.description)||void 0===u?void 0:u.value,fields:()=>A(t),astNode:e,extensionASTNodes:i})}}}}({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},e,t);if(null==n.astNode)for(const e of n.types)switch(e.name){case"Query":n.query=e;break;case"Mutation":n.mutation=e;break;case"Subscription":n.subscription=e}const i=[...n.directives,...qr.filter(e=>n.directives.every(t=>t.name!==e.name))];return new Ds({...n,directives:i})}const Ao=(e,t)=>{const{schema:n,documentAST:i,introspectionJSON:r,introspectionJSONString:s,buildSchemaOptions:o,documentString:a}=e;if(n)return n;if(s)return So(JSON.parse(s),o);if(a&&t)return Lo(t(a),o);if(r)return So(r,o);if(i)return Lo(i,o);throw new Error("No schema supplied")},Io=new Map;class xo{_parser=ce;_schemas=[];_schemaCache=Io;_schemaLoader=Ao;_parseOptions;_customValidationRules;_externalFragmentDefinitionNodes=null;_externalFragmentDefinitionsString=null;_completionSettings;constructor({parser:e,schemas:t,parseOptions:n,externalFragmentDefinitions:i,customValidationRules:r,fillLeafsOnComplete:s,completionSettings:o}){this._schemaLoader=Ao,t&&(this._schemas=t,this._cacheSchemas()),e&&(this._parser=e),this._completionSettings={...o,fillLeafsOnComplete:o?.fillLeafsOnComplete??s},n&&(this._parseOptions=n),r&&(this._customValidationRules=r),i&&(Array.isArray(i)?this._externalFragmentDefinitionNodes=i:this._externalFragmentDefinitionsString=i)}_cacheSchemas(){for(const e of this._schemas)this._cacheSchema(e)}_cacheSchema(e){const t=this._schemaLoader(e,this.parse.bind(this));return this._schemaCache.set(e.uri,{...e,schema:t})}getSchemaForFile(e){if(!this._schemas.length)return;if(1===this._schemas.length)return this._schemaCache.get(this._schemas[0].uri);const t=this._schemas.find(t=>!!t.fileMatch&&t.fileMatch.some(t=>To()(t)(e)));if(t){const e=this._schemaCache.get(t.uri);return e||this._cacheSchema(t).get(t.uri)}}getExternalFragmentDefinitions(){if(!this._externalFragmentDefinitionNodes&&this._externalFragmentDefinitionsString){const e=[];try{b(this._parser(this._externalFragmentDefinitionsString),{FragmentDefinition(t){e.push(t)}})}catch{throw new Error(`Failed parsing externalFragmentDefinitions string:\n${this._externalFragmentDefinitionsString}`)}this._externalFragmentDefinitionNodes=e}return this._externalFragmentDefinitionNodes}async updateSchemas(e){this._schemas=e,this._cacheSchemas()}updateSchema(e){const t=this._schemas.findIndex(t=>t.uri===e.uri);t<0?console.warn("updateSchema could not find a schema in your config by that URI",e.uri):(this._schemas[t]=e,this._cacheSchema(e))}addSchema(e){this._schemas.push(e),this._cacheSchema(e)}parse(e,t){return this._parser(e,t||this._parseOptions)}getCompletion=(e,t,n)=>{const i=this.getSchemaForFile(e);return t&&i?.schema?cr(i.schema,t,n,void 0,this.getExternalFragmentDefinitions(),{uri:e,...this._completionSettings}):[]};getDiagnostics=(e,t,n)=>{const i=this.getSchemaForFile(e);return!t||t.trim().length<2||!i?.schema?[]:function(e,t=null,n,i,r){var s,o;let a=null,l="";r&&(l="string"==typeof r?r:r.reduce((e,t)=>e+Ie(t)+"\n\n",""));const u=l?`${e}\n\n${l}`:e;try{a=ce(u)}catch(e){if(e instanceof I){const t=ho(null!==(o=null===(s=e.locations)||void 0===s?void 0:s[0])&&void 0!==o?o:{line:0,column:0},u);return[{severity:lo.Error,message:e.message,source:"GraphQL: Syntax",range:t}]}throw e}return function(e,t=null,n,i){if(!t)return[];const r=function(e,t,n,i){const r=Os.filter(e=>e!==ms&&e!==rs&&(!i||e!==ps));return n&&Array.prototype.push.apply(r,n),no(e,t,r).filter(e=>{if(e.message.includes("Unknown directive")&&e.nodes){const t=e.nodes[0];if(t&&t.kind===v.DIRECTIVE){const e=t.name.value;if("arguments"===e||"argumentDefinitions"===e)return!1}}return!0})}(t,e,n,i).flatMap(e=>co(e,lo.Error,"Validation")),s=no(t,e,[io]).flatMap(e=>co(e,lo.Warning,"Deprecation"));return r.concat(s)}(a,t,n,i)}(t,i.schema,n??this._customValidationRules,!1,this.getExternalFragmentDefinitions())};getHover=(e,t,n,i)=>{const r=this.getSchemaForFile(e);if(r&&t.length>3)return function(e,t,n,i,r){const s=Object.assign(Object.assign({},r),{schema:e}),o=Xi(t,n,e,i);if(!o)return"";const{typeInfo:a,token:l}=o,{kind:u,step:c}=l.state;if("Field"===u&&0===c&&a.fieldDef||"AliasedField"===u&&2===c&&a.fieldDef||"ObjectField"===u&&0===c&&a.fieldDef){const e=[];return po(e,s),function(e,t,n){go(e,t,n),yo(e,t,n,t.type)}(e,a,s),mo(e,s),bo(e,0,a.fieldDef),e.join("").trim()}if("Directive"===u&&1===c&&a.directiveDef){const e=[];return po(e,s),vo(e,a),mo(e,s),bo(e,0,a.directiveDef),e.join("").trim()}if("Variable"===u&&a.type){const e=[];return po(e,s),_o(e,a,s,a.type),mo(e,s),bo(e,0,a.type),e.join("").trim()}if("Argument"===u&&0===c&&a.argDef){const e=[];return po(e,s),function(e,t,n){if(t.directiveDef?vo(e,t):t.fieldDef&&go(e,t,n),!t.argDef)return;const{name:i}=t.argDef;Eo(e,"("),Eo(e,i),yo(e,t,n,t.inputType),Eo(e,")")}(e,a,s),mo(e,s),bo(e,0,a.argDef),e.join("").trim()}if("EnumValue"===u&&a.enumValue&&"description"in a.enumValue){const e=[];return po(e,s),function(e,t,n){if(!t.enumValue)return;const{name:i}=t.enumValue;_o(e,t,n,t.inputType),Eo(e,"."),Eo(e,i)}(e,a,s),mo(e,s),bo(e,0,a.enumValue),e.join("").trim()}if("NamedType"===u&&a.type&&"description"in a.type){const e=[];return po(e,s),_o(e,a,s,a.type),mo(e,s),bo(e,0,a.type),e.join("").trim()}return""}(r.schema,t,n,void 0,{useMarkdown:!0,...i})};getVariablesJSONSchema=(e,t,n)=>{const i=this.getSchemaForFile(e);if(i&&t.length>3)try{const e=this.parse(t),{variableToType:r}=function(e,t){const n=t?function(e,t){const n=Object.create(null);for(const i of t.definitions)if("OperationDefinition"===i.kind){const{variableDefinitions:t}=i;if(t)for(const{variable:i,type:r}of t){const t=Zr(e,r);t?n[i.name.value]=t:r.kind===v.NAMED_TYPE&&"Float"===r.name.value&&(n[i.name.value]=At)}}return n}(t,e):void 0,i=[];return b(e,{OperationDefinition(e){i.push(e)}}),{variableToType:n,operations:i}}(e,i.schema);if(r)return function(e,t){var n;const i={$schema:"http://json-schema.org/draft-04/schema",type:"object",properties:{},required:[],additionalProperties:!1},r=Object.assign(Object.assign({},t),{definitionMarker:new br,scalarSchemas:Object.assign(Object.assign({},_r),null==t?void 0:t.scalarSchemas)});if(e)for(const[t,s]of Object.entries(e)){const{definition:e,required:o,definitions:a}=Er(s,r);i.properties[t]=e,o&&(null===(n=i.required)||void 0===n||n.push(t)),a&&(i.definitions=Object.assign(Object.assign({},null==i?void 0:i.definitions),a))}return i}(r,{...n,scalarSchemas:i.customScalarSchemas})}catch{}return null}}var Oo=o(69014);function Ro(e){return{startLineNumber:e.start.line+1,startColumn:e.start.character+1,endLineNumber:e.end.line+1,endColumn:e.end.character+1}}function Do(e){return new Tr(e.lineNumber-1,e.column-1)}function Mo(e){const t={1:Oo.cj.Error,2:Oo.cj.Warning,3:Oo.cj.Info,4:Oo.cj.Hint};return e?t[e]:t[2]}function Fo(e){return{startLineNumber:e.range.start.line+1,endLineNumber:e.range.end.line+1,startColumn:e.range.start.character+1,endColumn:e.range.end.character,message:e.message,severity:Mo(e.severity),code:e.code||void 0}}class Po{_ctx;_languageService;_formattingOptions;constructor(e,t){this._ctx=e,this._languageService=new xo(t.languageConfig),this._formattingOptions=t.formattingOptions}async doValidation(e){try{const t=this._getTextModel(e),n=t?.getValue();return n?this._languageService.getDiagnostics(e,n).map(Fo):[]}catch(e){return console.error(e),[]}}async doComplete(e,t){try{const n=this._getTextModel(e),i=n?.getValue();if(!i)return[];const r=Do(t);return this._languageService.getCompletion(e,i,r).map(e=>{return{label:(t=e).label,insertText:t.insertText,sortText:t.sortText,filterText:t.filterText,...t.documentation&&{documentation:{value:t.documentation}},detail:t.detail,...n,kind:t.kind,...t.insertTextFormat&&{insertTextFormat:t.insertTextFormat},...t.insertTextMode&&{insertTextMode:t.insertTextMode},...t.command&&{command:{...t.command,id:t.command.command}},...t.labelDetails&&{labelDetails:t.labelDetails}};var t,n})}catch(e){return console.error(e),[]}}async doHover(e,t){try{const n=this._getTextModel(e),i=n?.getValue();if(!i)return null;const r=Do(t);return{content:this._languageService.getHover(e,i,r),range:Ro(ho({column:r.character,line:r.line},i))}}catch(e){return console.error(e),null}}async doGetVariablesJSONSchema(e){const t=this._getTextModel(e),n=t?.getValue();if(!t||!n)return null;const i=this._languageService.getVariablesJSONSchema(e,n,{useMarkdownDescription:!0});return i?{...i,$id:"monaco://variables-schema.json",title:"GraphQL Variables"}:null}async doFormat(e){const t=this._getTextModel(e),n=t?.getValue();if(!t||!n)return null;const i=await o.e(2408).then(o.bind(o,12408)),r=await o.e(5708).then(o.t.bind(o,5708,23));return i.format(n,{parser:"graphql",plugins:[r],...this._formattingOptions?.prettierConfig})}_getTextModel(e){const t=this._ctx.getMirrorModels();for(const n of t)if(n.uri.toString()===e)return n;return null}doUpdateSchema(e){return this._languageService.updateSchema(e)}doUpdateSchemas(e){return this._languageService.updateSchemas(e)}}globalThis.onmessage=()=>{(0,a.n)((e,t)=>new Po(e,t))};
//# sourceMappingURL=graphqlWorker.js.map