/*! For license information please see main.js.LICENSE.txt */ (()=>{var e={86502:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.codeFrameColumns=s,t.default=function(e,t,n,r={}){if(!i){i=!0;const e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";process.emitWarning?process.emitWarning(e,"DeprecationWarning"):(new Error(e).name="DeprecationWarning",console.warn(new Error(e)))}return s(e,{start:{column:n=Math.max(n,0),line:t}},r)};var r=n(15389);let i=!1;const o=/\r\n|[\n\r\u2028\u2029]/;function s(e,t,n={}){const i=(n.highlightCode||n.forceColor)&&(0,r.shouldHighlight)(n),s=(0,r.getChalk)(n),a=function(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}(s),c=(e,t)=>i?e(t):t,u=e.split(o),{start:l,end:f,markerLines:d}=function(e,t,n){const r=Object.assign({column:0,line:-1},e.start),i=Object.assign({},r,e.end),{linesAbove:o=2,linesBelow:s=3}=n||{},a=r.line,c=r.column,u=i.line,l=i.column;let f=Math.max(a-(o+1),0),d=Math.min(t.length,u+s);-1===a&&(f=0),-1===u&&(d=t.length);const p=u-a,h={};if(p)for(let e=0;e<=p;e++){const n=e+a;if(c)if(0===e){const e=t[n-1].length;h[n]=[c,e-c+1]}else if(e===p)h[n]=[0,l];else{const r=t[n-e].length;h[n]=[0,r]}else h[n]=!0}else h[a]=c===l?!c||[c,0]:[c,l-c];return{start:f,end:d,markerLines:h}}(t,u,n),p=t.start&&"number"==typeof t.start.column,h=String(f).length;let g=(i?(0,r.default)(e,n):e).split(o,f).slice(l,f).map(((e,t)=>{const r=l+1+t,i=` ${` ${r}`.slice(-h)} |`,o=d[r],s=!d[r+1];if(o){let t="";if(Array.isArray(o)){const r=e.slice(0,Math.max(o[0]-1,0)).replace(/[^\t]/g," "),u=o[1]||1;t=["\n ",c(a.gutter,i.replace(/\d/g," "))," ",r,c(a.marker,"^").repeat(u)].join(""),s&&n.message&&(t+=" "+c(a.message,n.message))}return[c(a.marker,">"),c(a.gutter,i),e.length>0?` ${e}`:"",t].join("")}return` ${c(a.gutter,i)}${e.length>0?` ${e}`:""}`})).join("\n");return n.message&&!p&&(g=`${" ".repeat(h+1)}${n.message}\n${g}`),i?s.reset(g):g}},41950:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isIdentifierChar=l,t.isIdentifierName=function(e){let t=!0;for(let n=0;ne)return!1;if(n+=t[r+1],n>=e)return!0}return!1}function u(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&i.test(String.fromCharCode(e)):c(e,s)))}function l(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&o.test(String.fromCharCode(e)):c(e,s)||c(e,a))))}},69762:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isIdentifierChar",{enumerable:!0,get:function(){return r.isIdentifierChar}}),Object.defineProperty(t,"isIdentifierName",{enumerable:!0,get:function(){return r.isIdentifierName}}),Object.defineProperty(t,"isIdentifierStart",{enumerable:!0,get:function(){return r.isIdentifierStart}}),Object.defineProperty(t,"isKeyword",{enumerable:!0,get:function(){return i.isKeyword}}),Object.defineProperty(t,"isReservedWord",{enumerable:!0,get:function(){return i.isReservedWord}}),Object.defineProperty(t,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return i.isStrictBindOnlyReservedWord}}),Object.defineProperty(t,"isStrictBindReservedWord",{enumerable:!0,get:function(){return i.isStrictBindReservedWord}}),Object.defineProperty(t,"isStrictReservedWord",{enumerable:!0,get:function(){return i.isStrictReservedWord}});var r=n(41950),i=n(70750)},70750:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isKeyword=function(e){return n.has(e)},t.isReservedWord=o,t.isStrictBindOnlyReservedWord=a,t.isStrictBindReservedWord=function(e,t){return s(e,t)||a(e)},t.isStrictReservedWord=s;const n=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),r=new Set(["implements","interface","let","package","private","protected","public","static","yield"]),i=new Set(["eval","arguments"]);function o(e,t){return t&&"await"===e||"enum"===e}function s(e,t){return o(e,t)||r.has(e)}function a(e){return i.has(e)}},15389:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t={}){if(""!==e&&l(t)){return function(e,t){let n="";for(const{type:r,value:i}of u(t)){const t=e[r];n+=t?i.split(a).map((e=>t(e))).join("\n"):i}return n}({keyword:(n=f(t)).cyan,capitalized:n.yellow,jsxIdentifier:n.yellow,punctuator:n.yellow,number:n.magenta,string:n.green,regex:n.magenta,comment:n.grey,invalid:n.white.bgRed.bold},e)}var n;return e},t.getChalk=f,t.shouldHighlight=l;var r=n(39520),i=n(69762),o=n(57808);const s=new Set(["as","async","from","get","of","set"]),a=/\r\n|[\n\r\u2028\u2029]/,c=/^[()[\]{}]$/;let u;{const e=/^[a-z][\w-]*$/i,t=function(t,n,r){if("name"===t.type){if((0,i.isKeyword)(t.value)||(0,i.isStrictReservedWord)(t.value,!0)||s.has(t.value))return"keyword";if(e.test(t.value)&&("<"===r[n-1]||"{"use strict";e=n.nmd(e);const r=n(6357),i=(e,t)=>function(){const n=e.apply(r,arguments);return`[${n+t}m`},o=(e,t)=>function(){const n=e.apply(r,arguments);return`[${38+t};5;${n}m`},s=(e,t)=>function(){const n=e.apply(r,arguments);return`[${38+t};2;${n[0]};${n[1]};${n[2]}m`};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.grey=t.color.gray;for(const n of Object.keys(t)){const r=t[n];for(const n of Object.keys(r)){const i=r[n];t[n]={open:`[${i[0]}m`,close:`[${i[1]}m`},r[n]=t[n],e.set(i[0],i[1])}Object.defineProperty(t,n,{value:r,enumerable:!1}),Object.defineProperty(t,"codes",{value:e,enumerable:!1})}const n=e=>e,a=(e,t,n)=>[e,t,n];t.color.close="",t.bgColor.close="",t.color.ansi={ansi:i(n,0)},t.color.ansi256={ansi256:o(n,0)},t.color.ansi16m={rgb:s(a,0)},t.bgColor.ansi={ansi:i(n,10)},t.bgColor.ansi256={ansi256:o(n,10)},t.bgColor.ansi16m={rgb:s(a,10)};for(let e of Object.keys(r)){if("object"!=typeof r[e])continue;const n=r[e];"ansi16"===e&&(e="ansi"),"ansi16"in n&&(t.color.ansi[e]=i(n.ansi16,0),t.bgColor.ansi[e]=i(n.ansi16,10)),"ansi256"in n&&(t.color.ansi256[e]=o(n.ansi256,0),t.bgColor.ansi256[e]=o(n.ansi256,10)),"rgb"in n&&(t.color.ansi16m[e]=s(n.rgb,0),t.bgColor.ansi16m[e]=s(n.rgb,10))}return t}})},57808:(e,t,n)=>{"use strict";const r=n(48102),i=n(54600),o=n(6755).stdout,s=n(56676),a="win32"===process.platform&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),c=["ansi","ansi","ansi256","ansi16m"],u=new Set(["gray"]),l=Object.create(null);function f(e,t){t=t||{};const n=o?o.level:0;e.level=void 0===t.level?n:t.level,e.enabled="enabled"in t?t.enabled:e.level>0}function d(e){if(!this||!(this instanceof d)||this.template){const t={};return f(t,e),t.template=function(){const e=[].slice.call(arguments);return m.apply(null,[t.template].concat(e))},Object.setPrototypeOf(t,d.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=d,t.template}f(this,e)}a&&(i.blue.open="");for(const e of Object.keys(i))i[e].closeRe=new RegExp(r(i[e].close),"g"),l[e]={get(){const t=i[e];return h.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};l.visible={get(){return h.call(this,this._styles||[],!0,"visible")}},i.color.closeRe=new RegExp(r(i.color.close),"g");for(const e of Object.keys(i.color.ansi))u.has(e)||(l[e]={get(){const t=this.level;return function(){const n=i.color[c[t]][e].apply(null,arguments),r={open:n,close:i.color.close,closeRe:i.color.closeRe};return h.call(this,this._styles?this._styles.concat(r):[r],this._empty,e)}}});i.bgColor.closeRe=new RegExp(r(i.bgColor.close),"g");for(const e of Object.keys(i.bgColor.ansi))u.has(e)||(l["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const t=this.level;return function(){const n=i.bgColor[c[t]][e].apply(null,arguments),r={open:n,close:i.bgColor.close,closeRe:i.bgColor.closeRe};return h.call(this,this._styles?this._styles.concat(r):[r],this._empty,e)}}});const p=Object.defineProperties((()=>{}),l);function h(e,t,n){const r=function(){return g.apply(r,arguments)};r._styles=e,r._empty=t;const i=this;return Object.defineProperty(r,"level",{enumerable:!0,get:()=>i.level,set(e){i.level=e}}),Object.defineProperty(r,"enabled",{enumerable:!0,get:()=>i.enabled,set(e){i.enabled=e}}),r.hasGrey=this.hasGrey||"gray"===n||"grey"===n,r.__proto__=p,r}function g(){const e=arguments,t=e.length;let n=String(arguments[0]);if(0===t)return"";if(t>1)for(let r=1;r{"use strict";const t=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,r=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,i=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,o=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function s(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):o.get(e)||e}function a(e,t){const n=[],o=t.trim().split(/\s*,\s*/g);let a;for(const t of o)if(isNaN(t)){if(!(a=t.match(r)))throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`);n.push(a[2].replace(i,((e,t,n)=>t?s(t):n)))}else n.push(Number(t));return n}function c(e){n.lastIndex=0;const t=[];let r;for(;null!==(r=n.exec(e));){const e=r[1];if(r[2]){const n=a(e,r[2]);t.push([e].concat(n))}else t.push([e])}return t}function u(e,t){const n={};for(const e of t)for(const t of e.styles)n[t[0]]=e.inverse?null:t.slice(1);let r=e;for(const e of Object.keys(n))if(Array.isArray(n[e])){if(!(e in r))throw new Error(`Unknown Chalk style: ${e}`);r=n[e].length>0?r[e].apply(r,n[e]):r[e]}return r}e.exports=(e,n)=>{const r=[],i=[];let o=[];if(n.replace(t,((t,n,a,l,f,d)=>{if(n)o.push(s(n));else if(l){const t=o.join("");o=[],i.push(0===r.length?t:u(e,r)(t)),r.push({inverse:a,styles:c(l)})}else if(f){if(0===r.length)throw new Error("Found extraneous } in Chalk template literal");i.push(u(e,r)(o.join(""))),o=[],r.pop()}else o.push(d)})),i.push(o.join("")),r.length>0){const e=`Chalk template literal is missing ${r.length} closing bracket${1===r.length?"":"s"} (\`}\`)`;throw new Error(e)}return i.join("")}},89099:(e,t,n)=>{var r=n(38230),i={};for(var o in r)r.hasOwnProperty(o)&&(i[r[o]]=o);var s=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var a in s)if(s.hasOwnProperty(a)){if(!("channels"in s[a]))throw new Error("missing channels property: "+a);if(!("labels"in s[a]))throw new Error("missing channel labels property: "+a);if(s[a].labels.length!==s[a].channels)throw new Error("channel and label counts mismatch: "+a);var c=s[a].channels,u=s[a].labels;delete s[a].channels,delete s[a].labels,Object.defineProperty(s[a],"channels",{value:c}),Object.defineProperty(s[a],"labels",{value:u})}s.rgb.hsl=function(e){var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,s=Math.min(r,i,o),a=Math.max(r,i,o),c=a-s;return a===s?t=0:r===a?t=(i-o)/c:i===a?t=2+(o-r)/c:o===a&&(t=4+(r-i)/c),(t=Math.min(60*t,360))<0&&(t+=360),n=(s+a)/2,[t,100*(a===s?0:n<=.5?c/(a+s):c/(2-a-s)),100*n]},s.rgb.hsv=function(e){var t,n,r,i,o,s=e[0]/255,a=e[1]/255,c=e[2]/255,u=Math.max(s,a,c),l=u-Math.min(s,a,c),f=function(e){return(u-e)/6/l+.5};return 0===l?i=o=0:(o=l/u,t=f(s),n=f(a),r=f(c),s===u?i=r-n:a===u?i=1/3+t-r:c===u&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*o,100*u]},s.rgb.hwb=function(e){var t=e[0],n=e[1],r=e[2];return[s.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(n,r))*100,100*(r=1-1/255*Math.max(t,Math.max(n,r)))]},s.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-i)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-i-t)/(1-t)||0),100*t]},s.rgb.keyword=function(e){var t=i[e];if(t)return t;var n,o,s,a=1/0;for(var c in r)if(r.hasOwnProperty(c)){var u=(o=e,s=r[c],Math.pow(o[0]-s[0],2)+Math.pow(o[1]-s[1],2)+Math.pow(o[2]-s[2],2));u.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},s.rgb.lab=function(e){var t=s.rgb.xyz(e),n=t[0],r=t[1],i=t[2];return r/=100,i/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},s.hsl.rgb=function(e){var t,n,r,i,o,s=e[0]/360,a=e[1]/100,c=e[2]/100;if(0===a)return[o=255*c,o,o];t=2*c-(n=c<.5?c*(1+a):c+a-c*a),i=[0,0,0];for(var u=0;u<3;u++)(r=s+1/3*-(u-1))<0&&r++,r>1&&r--,o=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,i[u]=255*o;return i},s.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,i=n,o=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,i*=o<=1?o:2-o,[t,100*(0===r?2*i/(o+i):2*n/(r+n)),(r+n)/2*100]},s.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,o=t-Math.floor(t),s=255*r*(1-n),a=255*r*(1-n*o),c=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,c,s];case 1:return[a,r,s];case 2:return[s,r,c];case 3:return[s,a,r];case 4:return[c,s,r];case 5:return[r,s,a]}},s.hsv.hsl=function(e){var t,n,r,i=e[0],o=e[1]/100,s=e[2]/100,a=Math.max(s,.01);return r=(2-o)*s,n=o*a,[i,100*(n=(n/=(t=(2-o)*a)<=1?t:2-t)||0),100*(r/=2)]},s.hwb.rgb=function(e){var t,n,r,i,o,s,a,c=e[0]/360,u=e[1]/100,l=e[2]/100,f=u+l;switch(f>1&&(u/=f,l/=f),r=6*c-(t=Math.floor(6*c)),0!=(1&t)&&(r=1-r),i=u+r*((n=1-l)-u),t){default:case 6:case 0:o=n,s=i,a=u;break;case 1:o=i,s=n,a=u;break;case 2:o=u,s=n,a=i;break;case 3:o=u,s=i,a=n;break;case 4:o=i,s=u,a=n;break;case 5:o=n,s=u,a=i}return[255*o,255*s,255*a]},s.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},s.xyz.rgb=function(e){var t,n,r,i=e[0]/100,o=e[1]/100,s=e[2]/100;return n=-.9689*i+1.8758*o+.0415*s,r=.0557*i+-.204*o+1.057*s,t=(t=3.2406*i+-1.5372*o+-.4986*s)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},s.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},s.lab.xyz=function(e){var t,n,r,i=e[0];t=e[1]/500+(n=(i+16)/116),r=n-e[2]/200;var o=Math.pow(n,3),s=Math.pow(t,3),a=Math.pow(r,3);return n=o>.008856?o:(n-16/116)/7.787,t=s>.008856?s:(t-16/116)/7.787,r=a>.008856?a:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},s.lab.lch=function(e){var t,n=e[0],r=e[1],i=e[2];return(t=360*Math.atan2(i,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+i*i),t]},s.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},s.rgb.ansi16=function(e){var t=e[0],n=e[1],r=e[2],i=1 in arguments?arguments[1]:s.rgb.hsv(e)[2];if(0===(i=Math.round(i/50)))return 30;var o=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===i&&(o+=60),o},s.hsv.ansi16=function(e){return s.rgb.ansi16(s.hsv.rgb(e),e[2])},s.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},s.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},s.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},s.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},s.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},s.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255,o=Math.max(Math.max(n,r),i),s=Math.min(Math.min(n,r),i),a=o-s;return t=a<=0?0:o===n?(r-i)/a%6:o===r?2+(i-n)/a:4+(n-r)/a+4,t/=6,[360*(t%=1),100*a,100*(a<1?s/(1-a):0)]},s.hsl.hcg=function(e){var t,n=e[1]/100,r=e[2]/100,i=0;return(t=r<.5?2*n*r:2*n*(1-r))<1&&(i=(r-.5*t)/(1-t)),[e[0],100*t,100*i]},s.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},s.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var i,o=[0,0,0],s=t%1*6,a=s%1,c=1-a;switch(Math.floor(s)){case 0:o[0]=1,o[1]=a,o[2]=0;break;case 1:o[0]=c,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=a;break;case 3:o[0]=0,o[1]=c,o[2]=1;break;case 4:o[0]=a,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=c}return i=(1-n)*r,[255*(n*o[0]+i),255*(n*o[1]+i),255*(n*o[2]+i)]},s.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},s.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},s.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},s.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},s.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},s.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},s.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},s.gray.hsl=s.gray.hsv=function(e){return[0,0,e[0]]},s.gray.hwb=function(e){return[0,100,e[0]]},s.gray.cmyk=function(e){return[0,0,0,e[0]]},s.gray.lab=function(e){return[e[0],0,0]},s.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},s.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},6357:(e,t,n)=>{var r=n(89099),i=n(4230),o={};Object.keys(r).forEach((function(e){o[e]={},Object.defineProperty(o[e],"channels",{value:r[e].channels}),Object.defineProperty(o[e],"labels",{value:r[e].labels});var t=i(e);Object.keys(t).forEach((function(n){var r=t[n];o[e][n]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var r=n.length,i=0;i1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))})),e.exports=o},4230:(e,t,n)=>{var r=n(89099);function i(e,t){return function(n){return t(e(n))}}function o(e,t){for(var n=[t[e].parent,e],o=r[t[e].parent][e],s=t[e].parent;t[s].parent;)n.unshift(t[s].parent),o=i(r[t[s].parent][s],o),s=t[s].parent;return o.conversion=n,o}e.exports=function(e){for(var t=function(e){var t=function(){for(var e={},t=Object.keys(r),n=t.length,i=0;i{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},50810:e=>{"use strict";e.exports=(e,t)=>{t=t||process.argv;const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),i=t.indexOf("--");return-1!==r&&(-1===i||r{"use strict";const r=n(22037),i=n(50810),o=process.env;let s;function a(e){const t=function(e){if(!1===s)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(e&&!e.isTTY&&!0!==s)return 0;const t=s?1:0;if("win32"===process.platform){const e=r.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in o)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in o))||"codeship"===o.CI_NAME?1:t;if("TEAMCITY_VERSION"in o)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0;if("truecolor"===o.COLORTERM)return 3;if("TERM_PROGRAM"in o){const e=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(o.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)||"COLORTERM"in o?1:(o.TERM,t)}(e);return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(t)}i("no-color")||i("no-colors")||i("color=false")?s=!1:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(s=!0),"FORCE_COLOR"in o&&(s=0===o.FORCE_COLOR.length||0!==parseInt(o.FORCE_COLOR,10)),e.exports={supportsColor:a,stdout:a(process.stdout),stderr:a(process.stderr)}},17842:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toArray=t.isAsyncIterable=t.toAsyncIterable=void 0;var r=n(19270);Object.defineProperty(t,"toAsyncIterable",{enumerable:!0,get:function(){return r.toAsyncIterable}});var i=n(49905);Object.defineProperty(t,"isAsyncIterable",{enumerable:!0,get:function(){return i.isAsyncIterable}});var o=n(22251);Object.defineProperty(t,"toArray",{enumerable:!0,get:function(){return o.toArray}})},22251:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toArray=void 0;const r=n(17842);t.toArray=function(e){return(0,r.isAsyncIterable)(e)?async function(e){const t=[];for await(const n of e)t.push(n);return t}(e):(t=e,[...t]);var t}},19270:(e,t)=>{"use strict";async function*n(e,...t){for await(const n of[e,...t])yield*n}Object.defineProperty(t,"__esModule",{value:!0}),t.toAsyncIterable=t.mergeAsyncIterables=void 0,t.mergeAsyncIterables=n,t.toAsyncIterable=n},49905:(e,t)=>{"use strict";function n(e){return"function"==typeof e[Symbol.asyncIterator]}Object.defineProperty(t,"__esModule",{value:!0}),t.isAsyncIterable=t.toPipeFn=void 0,t.toPipeFn=function(e,t){return function(r){return n(r)?t(r):e(r)}},t.isAsyncIterable=n},46444:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.helpers=t.operators=t.pipeSync=t.pipeAsync=t.opUnique=t.opTap=t.opTake=t.opSkip=t.opMap=t.opJoinStrings=t.opFlatten=t.opFilter=t.opConcatMap=t.opAwaitAsync=t.toAsyncIterable=t.toArray=t.isAsyncIterable=void 0;const s=o(n(17842)),a=o(n(3693));var c=n(17842);Object.defineProperty(t,"isAsyncIterable",{enumerable:!0,get:function(){return c.isAsyncIterable}}),Object.defineProperty(t,"toArray",{enumerable:!0,get:function(){return c.toArray}}),Object.defineProperty(t,"toAsyncIterable",{enumerable:!0,get:function(){return c.toAsyncIterable}});var u=n(3693);Object.defineProperty(t,"opAwaitAsync",{enumerable:!0,get:function(){return u.opAwaitAsync}}),Object.defineProperty(t,"opConcatMap",{enumerable:!0,get:function(){return u.opConcatMap}}),Object.defineProperty(t,"opFilter",{enumerable:!0,get:function(){return u.opFilter}}),Object.defineProperty(t,"opFlatten",{enumerable:!0,get:function(){return u.opFlatten}}),Object.defineProperty(t,"opJoinStrings",{enumerable:!0,get:function(){return u.opJoinStrings}}),Object.defineProperty(t,"opMap",{enumerable:!0,get:function(){return u.opMap}}),Object.defineProperty(t,"opSkip",{enumerable:!0,get:function(){return u.opSkip}}),Object.defineProperty(t,"opTake",{enumerable:!0,get:function(){return u.opTake}}),Object.defineProperty(t,"opTap",{enumerable:!0,get:function(){return u.opTap}}),Object.defineProperty(t,"opUnique",{enumerable:!0,get:function(){return u.opUnique}});var l=n(72032);Object.defineProperty(t,"pipeAsync",{enumerable:!0,get:function(){return l.pipeAsync}}),Object.defineProperty(t,"pipeSync",{enumerable:!0,get:function(){return l.pipeSync}}),t.operators=a,t.helpers=s},58347:(e,t)=>{"use strict";async function*n(e){for await(const t of e)yield t}Object.defineProperty(t,"__esModule",{value:!0}),t.opAwaitAsync=void 0,t.opAwaitAsync=function(){return n}},3035:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.opConcatMap=t.opConcatMapSync=t.opConcatMapAsync=void 0;const r=n(49905);function i(e){return async function*(t){for await(const n of t)yield*e(n)}}function o(e){return function*(t){for(const n of t)yield*e(n)}}t.opConcatMapAsync=i,t.opConcatMapSync=o,t.opConcatMap=e=>(0,r.toPipeFn)(o(e),i(e))},33461:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.opFilter=t.opFilterSync=t.opFilterAsync=void 0;const r=n(49905);function i(e){return async function*(t){for await(const n of t)e(n)&&(yield n)}}function o(e){return function*(t){for(const n of t)e(n)&&(yield n)}}t.opFilterAsync=i,t.opFilterSync=o,t.opFilter=function(e){const t=i(e),n=o(e);return function(e){return(0,r.isAsyncIterable)(e)?t(e):n(e)}}},47924:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.opFlatten=t.opFlattenSync=t.opFlattenAsync=void 0;const r=n(49905);t.opFlattenAsync=function(){return async function*(e){for await(const t of e)yield*t}},t.opFlattenSync=function(){return function*(e){for(const t of e)yield*t}},t.opFlatten=()=>(0,r.toPipeFn)((function*(e){for(const t of e)yield*t}),(async function*(e){for await(const t of e)yield*t}))},3693:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.opUniqueSync=t.opUniqueAsync=t.opUnique=t.opTapSync=t.opTapAsync=t.opTap=t.opTakeSync=t.opTakeAsync=t.opTake=t.opSkipSync=t.opSkipAsync=t.opSkip=t.opMapSync=t.opMapAsync=t.opMap=t.opJoinStringsSync=t.opJoinStringsAsync=t.opJoinStrings=t.opFlattenSync=t.opFlattenAsync=t.opFlatten=t.opFilterSync=t.opFilterAsync=t.opFilter=t.opConcatMapSync=t.opConcatMapAsync=t.opConcatMap=t.opAwaitAsync=void 0;var r=n(58347);Object.defineProperty(t,"opAwaitAsync",{enumerable:!0,get:function(){return r.opAwaitAsync}});var i=n(3035);Object.defineProperty(t,"opConcatMap",{enumerable:!0,get:function(){return i.opConcatMap}}),Object.defineProperty(t,"opConcatMapAsync",{enumerable:!0,get:function(){return i.opConcatMapAsync}}),Object.defineProperty(t,"opConcatMapSync",{enumerable:!0,get:function(){return i.opConcatMapSync}});var o=n(33461);Object.defineProperty(t,"opFilter",{enumerable:!0,get:function(){return o.opFilter}}),Object.defineProperty(t,"opFilterAsync",{enumerable:!0,get:function(){return o.opFilterAsync}}),Object.defineProperty(t,"opFilterSync",{enumerable:!0,get:function(){return o.opFilterSync}});var s=n(47924);Object.defineProperty(t,"opFlatten",{enumerable:!0,get:function(){return s.opFlatten}}),Object.defineProperty(t,"opFlattenAsync",{enumerable:!0,get:function(){return s.opFlattenAsync}}),Object.defineProperty(t,"opFlattenSync",{enumerable:!0,get:function(){return s.opFlattenSync}});var a=n(91345);Object.defineProperty(t,"opJoinStrings",{enumerable:!0,get:function(){return a.opJoinStrings}}),Object.defineProperty(t,"opJoinStringsAsync",{enumerable:!0,get:function(){return a.opJoinStringsAsync}}),Object.defineProperty(t,"opJoinStringsSync",{enumerable:!0,get:function(){return a.opJoinStringsSync}});var c=n(18750);Object.defineProperty(t,"opMap",{enumerable:!0,get:function(){return c.opMap}}),Object.defineProperty(t,"opMapAsync",{enumerable:!0,get:function(){return c.opMapAsync}}),Object.defineProperty(t,"opMapSync",{enumerable:!0,get:function(){return c.opMapSync}});var u=n(97302);Object.defineProperty(t,"opSkip",{enumerable:!0,get:function(){return u.opSkip}}),Object.defineProperty(t,"opSkipAsync",{enumerable:!0,get:function(){return u.opSkipAsync}}),Object.defineProperty(t,"opSkipSync",{enumerable:!0,get:function(){return u.opSkipSync}});var l=n(33548);Object.defineProperty(t,"opTake",{enumerable:!0,get:function(){return l.opTake}}),Object.defineProperty(t,"opTakeAsync",{enumerable:!0,get:function(){return l.opTakeAsync}}),Object.defineProperty(t,"opTakeSync",{enumerable:!0,get:function(){return l.opTakeSync}});var f=n(97304);Object.defineProperty(t,"opTap",{enumerable:!0,get:function(){return f.opTap}}),Object.defineProperty(t,"opTapAsync",{enumerable:!0,get:function(){return f.opTapAsync}}),Object.defineProperty(t,"opTapSync",{enumerable:!0,get:function(){return f.opTapSync}});var d=n(78130);Object.defineProperty(t,"opUnique",{enumerable:!0,get:function(){return d.opUnique}}),Object.defineProperty(t,"opUniqueAsync",{enumerable:!0,get:function(){return d.opUniqueAsync}}),Object.defineProperty(t,"opUniqueSync",{enumerable:!0,get:function(){return d.opUniqueSync}})},91345:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.opJoinStrings=t.opJoinStringsSync=t.opJoinStringsAsync=void 0;const r=n(17842),i=n(49905);function o(e=","){return async function*(t){for await(const n of t){const t=await(0,r.toArray)(n);yield t.join(e)}}}function s(e=","){return function*(t){for(const n of t){const t=(0,r.toArray)(n);yield t.join(e)}}}t.opJoinStringsAsync=o,t.opJoinStringsSync=s,t.opJoinStrings=(e=",")=>(0,i.toPipeFn)(s(e),o(e))},18750:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.opMap=t.opMapSync=t.opMapAsync=void 0;const r=n(49905);function i(e){return async function*(t){for await(const n of t)yield e(n)}}function o(e){return function*(t){for(const n of t)yield e(n)}}t.opMapAsync=i,t.opMapSync=o,t.opMap=e=>(0,r.toPipeFn)(o(e),i(e))},97302:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.opSkip=t.opSkipSync=t.opSkipAsync=void 0;const r=n(49905);function i(e){return async function*(t){for await(const n of t)e>0?--e:yield n}}function o(e){return function*(t){for(const n of t)e>0?--e:yield n}}t.opSkipAsync=i,t.opSkipSync=o,t.opSkip=e=>(0,r.toPipeFn)(o(e),i(e))},33548:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.opTake=t.opTakeSync=t.opTakeAsync=void 0;const r=n(49905);function i(e){return async function*(t){if(!(e<=0))for await(const n of t)if(yield n,--e<=0)return}}function o(e){return function*(t){if(!(e<=0))for(const n of t)if(yield n,--e<=0)return}}t.opTakeAsync=i,t.opTakeSync=o,t.opTake=e=>(0,r.toPipeFn)(o(e),i(e))},97304:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.opTap=t.opTapSync=t.opTapAsync=void 0;const r=n(49905);function i(e){return async function*(t){for await(const n of t)e(n),yield n}}function o(e){return function*(t){for(const n of t)e(n),yield n}}t.opTapAsync=i,t.opTapSync=o,t.opTap=e=>(0,r.toPipeFn)(o(e),i(e))},78130:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.opUnique=t.opUniqueSync=t.opUniqueAsync=void 0;const r=n(49905);function i(e){return e?function(e){return async function*(t){const n=new Set;for await(const r of t){const t=e(r);n.has(t)||(n.add(t),yield r)}}}(e):async function*(e){const t=new Set;for await(const n of e)t.has(n)||(t.add(n),yield n)}}function o(e){return e?(t=e,function*(e){const n=new Set;for(const r of e){const e=t(r);n.has(e)||(n.add(e),yield r)}}):function*(e){const t=new Set;for(const n of e)t.has(n)||(t.add(n),yield n)};var t}t.opUniqueAsync=i,t.opUniqueSync=o,t.opUnique=e=>(0,r.toPipeFn)(o(e),i(e))},72032:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pipeSync=t.pipeAsync=void 0;const r=n(17842);t.pipeAsync=function(e,...t){let n=(0,r.toAsyncIterable)(e);for(const e of t)n=e(n);return n},t.pipeSync=function(e,...t){let n=e;for(const e of t)n=e(n);return n}},11456:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageTypes=void 0,t.MessageTypes={Debug:"Debug",Info:"Info",Warning:"Warning"}},82130:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},56449:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigFields=void 0,t.ConfigFields={allowCompoundWords:"allowCompoundWords",cache:"cache",caseSensitive:"caseSensitive",description:"description",dictionaries:"dictionaries",dictionaryDefinitions:"dictionaryDefinitions",enabled:"enabled",enabledLanguageIds:"enabledLanguageIds",enableFiletypes:"enableFiletypes",enableGlobDot:"enableGlobDot",failFast:"failFast",features:"features",files:"files",flagWords:"flagWords",gitignoreRoot:"gitignoreRoot",globRoot:"globRoot",ignorePaths:"ignorePaths",ignoreRegExpList:"ignoreRegExpList",ignoreWords:"ignoreWords",import:"import",includeRegExpList:"includeRegExpList",language:"language",languageId:"languageId",languageSettings:"languageSettings",maxDuplicateProblems:"maxDuplicateProblems",maxNumberOfProblems:"maxNumberOfProblems",minWordLength:"minWordLength",name:"name",noConfigSearch:"noConfigSearch",noSuggestDictionaries:"noSuggestDictionaries",numSuggestions:"numSuggestions",overrides:"overrides",patterns:"patterns",pnpFiles:"pnpFiles",readonly:"readonly",reporters:"reporters",showStatus:"showStatus",spellCheckDelayMs:"spellCheckDelayMs",suggestionNumChanges:"suggestionNumChanges",suggestionsTimeout:"suggestionsTimeout",useGitignore:"useGitignore",usePnP:"usePnP",userWords:"userWords",words:"words"}},53158:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigFields=void 0;var o=n(56449);Object.defineProperty(t,"ConfigFields",{enumerable:!0,get:function(){return o.ConfigFields}}),i(n(11456),t),i(n(82130),t)},27092:e=>{const t=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9];let n;const r=e=>e<1e5?e<100?e<10?0:1:e<1e4?e<1e3?2:3:4:e<1e7?e<1e6?5:6:e<1e9?e<1e8?7:8:9;function i(e,n){if(e===n)return 0;if(~~e===e&&~~n===n){if(0===e||0===n)return e=0)return-1;if(e>=0)return 1;e=-e,n=-n}const i=r(e),o=r(n);let s=0;return io&&(n*=t[i-o-1],e/=10,s=1),e===n?s:e=0;)o++;return o-t}function s(e,t,n){for(n--;t>>1;o(r,e[t])<0?c=t:a=t+1}let u=i-a;switch(u){case 3:e[a+3]=e[a+2],n[a+3]=n[a+2];case 2:e[a+2]=e[a+1],n[a+2]=n[a+1];case 1:e[a+1]=e[a],n[a+1]=n[a];break;default:for(;u>0;)e[a+u]=e[a+u-1],n[a+u]=n[a+u-1],u--}e[a]=r,n[a]=s}}function c(e,t,n,r,i,o){let s=0,a=0,c=1;if(o(e,t[n+i])>0){for(a=r-i;c0;)s=c,c=1+(c<<1),c<=0&&(c=a);c>a&&(c=a),s+=i,c+=i}else{for(a=i+1;ca&&(c=a);const r=s;s=i-c,c=i-r}for(s++;s>>1);o(e,t[n+r])>0?s=r+1:c=r}return c}function u(e,t,n,r,i,o){let s=0,a=0,c=1;if(o(e,t[n+i])<0){for(a=i+1;ca&&(c=a);const r=s;s=i-c,c=i-r}else{for(a=r-i;c=0;)s=c,c=1+(c<<1),c<=0&&(c=a);c>a&&(c=a),s+=i,c+=i}for(s++;s>>1);o(e,t[n+r])<0?c=r:s=r+1}return c}class l{constructor(e,t){this.array=e,this.compare=t;const{length:n}=e;this.length=n,this.minGallop=7,this.tmpStorageLength=n<512?n>>>1:256,this.tmp=new Array(this.tmpStorageLength),this.tmpIndex=new Array(this.tmpStorageLength),this.stackLength=n<120?5:n<1542?10:n<119151?19:40,this.runStart=new Array(this.stackLength),this.runLength=new Array(this.stackLength),this.stackSize=0}pushRun(e,t){this.runStart[this.stackSize]=e,this.runLength[this.stackSize]=t,this.stackSize+=1}mergeRuns(){for(;this.stackSize>1;){let e=this.stackSize-2;if(e>=1&&this.runLength[e-1]<=this.runLength[e]+this.runLength[e+1]||e>=2&&this.runLength[e-2]<=this.runLength[e]+this.runLength[e-1])this.runLength[e-1]this.runLength[e+1])break;this.mergeAt(e)}}forceMergeRuns(){for(;this.stackSize>1;){let e=this.stackSize-2;e>0&&this.runLength[e-1]=7||r>=7);if(m)break;g<0&&(g=0),g+=2}if(this.minGallop=g,g<1&&(this.minGallop=1),1===t){for(f=0;f=0;f--)s[m+f]=s[g+f],n[m+f]=n[g+f];return s[h]=a[p],void(n[h]=l[p])}let{minGallop:y}=this;for(;;){let r=0,v=0,b=!1;do{if(o(a[p],s[d])<0){if(s[h]=s[d],n[h]=n[d],h--,d--,r++,v=0,0==--t){b=!0;break}}else if(s[h]=a[p],n[h]=l[p],h--,p--,v++,r=0,1==--i){b=!0;break}}while((r|v)=0;f--)s[m+f]=s[g+f],n[m+f]=n[g+f];if(0===t){b=!0;break}}if(s[h]=a[p],n[h]=l[p],h--,p--,1==--i){b=!0;break}if(v=i-c(s[d],a,0,i,i-1,o),0!==v){for(h-=v,p-=v,i-=v,m=h+1,g=p+1,f=0;f=7||v>=7);if(b)break;y<0&&(y=0),y+=2}if(this.minGallop=y,y<1&&(this.minGallop=1),1===i){for(h-=t,d-=t,m=h+1,g=d+1,f=t-1;f>=0;f--)s[m+f]=s[g+f],n[m+f]=n[g+f];s[h]=a[p],n[h]=l[p]}else{if(0===i)throw new Error("mergeHigh preconditions were not respected");for(g=h-(i-1),f=0;f=32;)t|=1&e,e>>=1;return e+t}(f);do{if(d=o(e,r,s,t),dh&&(n=h),a(e,r,r+n,r+d,t),d=n}p.pushRun(r,d),p.mergeRuns(),f-=d,r+=d}while(0!==f);return p.forceMergeRuns(),n}}},95234:(e,t,n)=>{"use strict";const r=n(33026),i=n(33528),o=n(38873),s=n(31623),a=(e,t={})=>{let n=[];if(Array.isArray(e))for(let r of e){let e=a.create(r,t);Array.isArray(e)?n.push(...e):n.push(e)}else n=[].concat(a.create(e,t));return t&&!0===t.expand&&!0===t.nodupes&&(n=[...new Set(n)]),n};a.parse=(e,t={})=>s(e,t),a.stringify=(e,t={})=>r("string"==typeof e?a.parse(e,t):e,t),a.compile=(e,t={})=>("string"==typeof e&&(e=a.parse(e,t)),i(e,t)),a.expand=(e,t={})=>{"string"==typeof e&&(e=a.parse(e,t));let n=o(e,t);return!0===t.noempty&&(n=n.filter(Boolean)),!0===t.nodupes&&(n=[...new Set(n)]),n},a.create=(e,t={})=>""===e||e.length<3?[e]:!0!==t.expand?a.compile(e,t):a.expand(e,t),e.exports=a},33528:(e,t,n)=>{"use strict";const r=n(47305),i=n(12012);e.exports=(e,t={})=>{let n=(e,o={})=>{let s=i.isInvalidBrace(o),a=!0===e.invalid&&!0===t.escapeInvalid,c=!0===s||!0===a,u=!0===t.escapeInvalid?"\\":"",l="";if(!0===e.isOpen)return u+e.value;if(!0===e.isClose)return u+e.value;if("open"===e.type)return c?u+e.value:"(";if("close"===e.type)return c?u+e.value:")";if("comma"===e.type)return"comma"===e.prev.type?"":c?e.value:"|";if(e.value)return e.value;if(e.nodes&&e.ranges>0){let n=i.reduce(e.nodes),o=r(...n,{...t,wrap:!1,toRegex:!0});if(0!==o.length)return n.length>1&&o.length>1?`(${o})`:o}if(e.nodes)for(let t of e.nodes)l+=n(t,e);return l};return n(e)}},58514:e=>{"use strict";e.exports={MAX_LENGTH:65536,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:"\n",CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\ufeff"}},38873:(e,t,n)=>{"use strict";const r=n(47305),i=n(33026),o=n(12012),s=(e="",t="",n=!1)=>{let r=[];if(e=[].concat(e),!(t=[].concat(t)).length)return e;if(!e.length)return n?o.flatten(t).map((e=>`{${e}}`)):t;for(let i of e)if(Array.isArray(i))for(let e of i)r.push(s(e,t,n));else for(let e of t)!0===n&&"string"==typeof e&&(e=`{${e}}`),r.push(Array.isArray(e)?s(i,e,n):i+e);return o.flatten(r)};e.exports=(e,t={})=>{let n=void 0===t.rangeLimit?1e3:t.rangeLimit,a=(e,c={})=>{e.queue=[];let u=c,l=c.queue;for(;"brace"!==u.type&&"root"!==u.type&&u.parent;)u=u.parent,l=u.queue;if(e.invalid||e.dollar)return void l.push(s(l.pop(),i(e,t)));if("brace"===e.type&&!0!==e.invalid&&2===e.nodes.length)return void l.push(s(l.pop(),["{}"]));if(e.nodes&&e.ranges>0){let a=o.reduce(e.nodes);if(o.exceedsLimit(...a,t.step,n))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let c=r(...a,t);return 0===c.length&&(c=i(e,t)),l.push(s(l.pop(),c)),void(e.nodes=[])}let f=o.encloseBrace(e),d=e.queue,p=e;for(;"brace"!==p.type&&"root"!==p.type&&p.parent;)p=p.parent,d=p.queue;for(let t=0;t{"use strict";const r=n(33026),{MAX_LENGTH:i,CHAR_BACKSLASH:o,CHAR_BACKTICK:s,CHAR_COMMA:a,CHAR_DOT:c,CHAR_LEFT_PARENTHESES:u,CHAR_RIGHT_PARENTHESES:l,CHAR_LEFT_CURLY_BRACE:f,CHAR_RIGHT_CURLY_BRACE:d,CHAR_LEFT_SQUARE_BRACKET:p,CHAR_RIGHT_SQUARE_BRACKET:h,CHAR_DOUBLE_QUOTE:g,CHAR_SINGLE_QUOTE:m,CHAR_NO_BREAK_SPACE:y,CHAR_ZERO_WIDTH_NOBREAK_SPACE:v}=n(58514);e.exports=(e,t={})=>{if("string"!=typeof e)throw new TypeError("Expected a string");let n=t||{},b="number"==typeof n.maxLength?Math.min(i,n.maxLength):i;if(e.length>b)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${b})`);let S,E={type:"root",input:e,nodes:[]},x=[E],w=E,_=E,O=0,C=e.length,D=0,A=0;const P=()=>e[D++],T=e=>{if("text"===e.type&&"dot"===_.type&&(_.type="text"),!_||"text"!==_.type||"text"!==e.type)return w.nodes.push(e),e.parent=w,e.prev=_,_=e,e;_.value+=e.value};for(T({type:"bos"});D0){if(w.ranges>0){w.ranges=0;let e=w.nodes.shift();w.nodes=[e,{type:"text",value:r(w)}]}T({type:"comma",value:S}),w.commas++}else if(S===c&&A>0&&0===w.commas){let e=w.nodes;if(0===A||0===e.length){T({type:"text",value:S});continue}if("dot"===_.type){if(w.range=[],_.value+=S,_.type="range",3!==w.nodes.length&&5!==w.nodes.length){w.invalid=!0,w.ranges=0,_.type="text";continue}w.ranges++,w.args=[];continue}if("range"===_.type){e.pop();let t=e[e.length-1];t.value+=_.value+S,_=t,w.ranges--;continue}T({type:"dot",value:S})}else T({type:"text",value:S});else{if("brace"!==w.type){T({type:"text",value:S});continue}let e="close";w=x.pop(),w.close=!0,T({type:e,value:S}),A--,w=x[x.length-1]}else{A++;let e=_.value&&"$"===_.value.slice(-1)||!0===w.dollar;w=T({type:"brace",open:!0,close:!1,dollar:e,depth:A,commas:0,ranges:0,nodes:[]}),x.push(w),T({type:"open",value:S})}else{let e,n=S;for(!0!==t.keepQuotes&&(S="");D{e.nodes||("open"===e.type&&(e.isOpen=!0),"close"===e.type&&(e.isClose=!0),e.nodes||(e.type="text"),e.invalid=!0)}));let e=x[x.length-1],t=e.nodes.indexOf(w);e.nodes.splice(t,1,...w.nodes)}}while(x.length>0);return T({type:"eos"}),E}},33026:(e,t,n)=>{"use strict";const r=n(12012);e.exports=(e,t={})=>{let n=(e,i={})=>{let o=t.escapeInvalid&&r.isInvalidBrace(i),s=!0===e.invalid&&!0===t.escapeInvalid,a="";if(e.value)return(o||s)&&r.isOpenOrClose(e)?"\\"+e.value:e.value;if(e.value)return e.value;if(e.nodes)for(let t of e.nodes)a+=n(t);return a};return n(e)}},12012:(e,t)=>{"use strict";t.isInteger=e=>"number"==typeof e?Number.isInteger(e):"string"==typeof e&&""!==e.trim()&&Number.isInteger(Number(e)),t.find=(e,t)=>e.nodes.find((e=>e.type===t)),t.exceedsLimit=(e,n,r=1,i)=>!1!==i&&!(!t.isInteger(e)||!t.isInteger(n))&&(Number(n)-Number(e))/Number(r)>=i,t.escapeNode=(e,t=0,n)=>{let r=e.nodes[t];r&&(n&&r.type===n||"open"===r.type||"close"===r.type)&&!0!==r.escaped&&(r.value="\\"+r.value,r.escaped=!0)},t.encloseBrace=e=>"brace"===e.type&&e.commas>>0+e.ranges>>0==0&&(e.invalid=!0,!0),t.isInvalidBrace=e=>!("brace"!==e.type||!0!==e.invalid&&!e.dollar&&(e.commas>>0+e.ranges>>0!=0&&!0===e.open&&!0===e.close||(e.invalid=!0,0))),t.isOpenOrClose=e=>"open"===e.type||"close"===e.type||!0===e.open||!0===e.close,t.reduce=e=>e.reduce(((e,t)=>("text"===t.type&&e.push(t.value),"range"===t.type&&(t.type="text"),e)),[]),t.flatten=(...e)=>{const t=[],n=e=>{for(let r=0;r{"use strict";const t=()=>{const e=Error.prepareStackTrace;Error.prepareStackTrace=(e,t)=>t;const t=(new Error).stack.slice(1);return Error.prepareStackTrace=e,t};e.exports=t,e.exports.default=t},6387:(e,t,n)=>{"use strict";const r=n(71017),i=n(16748),o=n(79286),s=e=>{try{return i(r.dirname(o(__filename)),e)}catch(e){}},a=e=>{if("string"!=typeof e)throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);const t=s(e);if(t){if(n.c[t]&&n.c[t].parent){let e=n.c[t].parent.children.length;for(;e--;)n.c[t].parent.children[e].id===t&&n.c[t].parent.children.splice(e,1)}if(n.c[t]){const e=n.c[t].children.map((e=>e.id));delete n.c[t];for(const t of e)a(t)}}};a.all=()=>{const e=r.dirname(o(__filename));for(const t of Object.keys(n.c))delete n.c[i(e,t)]},a.match=e=>{for(const t of Object.keys(n.c))e.test(t)&&a(t)},a.single=e=>{if("string"!=typeof e)throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);delete n.c[s(e)]},e.exports=a},79286:(e,t,n)=>{"use strict";const r=n(72541);e.exports=e=>{const t=r();if(!e)return t[2].getFileName();let n=!1;t.shift();for(const r of t){const t=r.getFileName();if("string"==typeof t)if(t!==e){if("module.js"!==t&&n&&t!==e)return t}else n=!0}}},48458:(e,t,n)=>{const{isArray:r}=n(7646),{sort:i}=n(27092),{SYMBOL_PREFIXES:o,UNDEFINED:s,symbol:a,copy_comments:c,swap_comments:u}=n(5344),l=(e,t,n,r,i)=>{c(e,t,n+r,n,i)},f=(e,t,n,r,i,o)=>{if(i>0){let s=r;for(;s-- >0;)l(e,t,n+s,i,o);return}let s=0;for(;s{o.forEach((n=>{const r=a(n,t);delete e[r]}))};class p extends Array{splice(...e){const{length:t}=this,n=super.splice(...e);let[r,i,...o]=e;r<0&&(r+=t),i=1===arguments.length?t-r:Math.min(t-r,i);const{length:s}=o,a=r+i;return f(this,this,a,t-a,s-i,!0),n}slice(...e){const{length:t}=this,n=super.slice(...e);if(!n.length)return new p;let[r,i]=e;return i===s?i=t:i<0&&(i+=t),r<0?r+=t:r===s&&(r=0),f(n,this,r,i-r,-r),n}unshift(...e){const{length:t}=this,n=super.unshift(...e),{length:r}=e;return r>0&&f(this,this,0,t,r,!0),n}shift(){const e=super.shift(),{length:t}=this;return d(this,0),f(this,this,1,t,-1,!0),e}reverse(){return super.reverse(),(e=>{const{length:t}=e;let n=0;const r=t/2;for(;n{const i=t;t+=r(e)?e.length:1,e instanceof p&&f(n,e,0,e.length,i)})),n):n}sort(...e){const t=i(this,...e.slice(0,1)),n=Object.create(null);return t.forEach(((e,t)=>{if(e===t)return;const r=((e,t)=>{let n=t;for(;n in e;)n=e[n];return n})(n,e);r!==t&&(n[t]=r,u(this,t,r))})),this}}e.exports={CommentArray:p}},5344:(e,t,n)=>{const r=n(92001),{isObject:i,isArray:o,isString:s,isNumber:a}=n(7646),c="before",u="after-prop",l="after-colon",f="after-value",d="after",p="before-all",h="after-all",g=[c,u,l,f,d],m=[c,p,h].map(Symbol.for),y=void 0,v=(e,t)=>Symbol.for(e+":"+t),b=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),S=(e,t,n,i,o,s)=>{const a=v(o,i);if(!r(t,a))return;const c=n===i?a:v(o,n);b(e,c,t[a]),s&&delete t[a]},E=(e,t,n,r,i)=>{g.forEach((o=>{S(e,t,n,r,o,i)}))},x=(e,t)=>{m.forEach((n=>{const r=t[n];r&&b(e,n,r)}))};e.exports={SYMBOL_PREFIXES:g,PREFIX_BEFORE:c,PREFIX_AFTER_PROP:u,PREFIX_AFTER_COLON:l,PREFIX_AFTER_VALUE:f,PREFIX_AFTER:d,PREFIX_BEFORE_ALL:p,PREFIX_AFTER_ALL:h,BRACKET_OPEN:"[",BRACKET_CLOSE:"]",CURLY_BRACKET_OPEN:"{",CURLY_BRACKET_CLOSE:"}",COLON:":",COMMA:",",MINUS:"-",EMPTY:"",UNDEFINED:y,symbol:v,define:b,copy_comments:E,swap_comments:(e,t,n)=>{t!==n&&g.forEach((i=>{const o=v(i,n);if(!r(e,o))return void S(e,e,n,t,i,!0);const s=e[o];delete e[o],S(e,e,n,t,i,!0),b(e,v(i,t),s)}))},assign_non_prop_comments:x,assign(e,t,n){if(!i(e))throw new TypeError("Cannot convert undefined or null to object");if(!i(t))return e;if(n===y)n=Object.keys(t),x(e,t);else{if(!o(n))throw new TypeError("keys must be array or undefined");0===n.length&&x(e,t)}return((e,t,n)=>(n.forEach((n=>{(s(n)||a(n))&&r(t,n)&&(e[n]=t[n],E(e,t,n,n))})),e))(e,t,n)}}},56724:(e,t,n)=>{const{parse:r,tokenize:i}=n(27745),o=n(57437),{CommentArray:s}=n(48458),{assign:a}=n(5344);e.exports={parse:r,stringify:o,tokenize:i,CommentArray:s,assign:a}},27745:(e,t,n)=>{const r=n(90671),{CommentArray:i}=n(48458),{PREFIX_BEFORE:o,PREFIX_AFTER_PROP:s,PREFIX_AFTER_COLON:a,PREFIX_AFTER_VALUE:c,PREFIX_AFTER:u,PREFIX_BEFORE_ALL:l,PREFIX_AFTER_ALL:f,BRACKET_OPEN:d,BRACKET_CLOSE:p,CURLY_BRACKET_OPEN:h,CURLY_BRACKET_CLOSE:g,COLON:m,COMMA:y,MINUS:v,EMPTY:b,UNDEFINED:S,define:E,assign_non_prop_comments:x}=n(5344),w=e=>r.tokenize(e,{comment:!0,loc:!0}),_=[];let O=null,C=null;const D=[];let A,P,T=!1,R=!1,k=null,F=null,M=null,j=null;const I=()=>{D.length=_.length=0,F=null,A=S},N=e=>Symbol.for(A!==S?e+m+A:e),L=(e,t)=>j?j(e,t):t,B=()=>{const e=new SyntaxError(`Unexpected token ${M.value.slice(0,1)}`);throw Object.assign(e,M.loc.start),e},W=()=>{const e=new SyntaxError("Unexpected end of JSON input");throw Object.assign(e,F?F.loc.end:{line:1,column:0}),e},U=()=>{const e=k[++P];R=M&&e&&M.loc.end.line===e.loc.start.line||!1,F=M,M=e},q=()=>(M||W(),"Punctuator"===M.type?M.value:M.type),$=e=>q()===e,z=e=>{$(e)||B()},G=e=>{_.push(O),O=e},H=()=>{O=_.pop()},K=()=>{if(!C)return;const e=[];for(const t of C){if(!t.inline)break;e.push(t)}const{length:t}=e;t&&(t===C.length?C=null:C.splice(0,t),E(O,N(u),e))},J=e=>{C&&(E(O,N(e),C),C=null)},X=e=>{const t=[];for(;M&&($("LineComment")||$("BlockComment"));){const e={...M,inline:R};t.push(e),U()}T||t.length&&(e?E(O,N(e),t):C=t)},V=(e,t)=>{t&&D.push(A),A=e},Y=()=>{A=D.pop()};function Q(){let e=q();if(e===h)return U(),(()=>{const e={};G(e),V(S,!0);let t,n=!1;for(X();!($(g)||n&&(J(c),z(y),U(),X(),K(),$(g)));)n=!0,z("String"),t=JSON.parse(M.value),V(t),J(o),U(),X(s),z(m),U(),X(a),e[t]=L(t,Q()),X();return n&&J(u),U(),A=void 0,n||J(o),H(),Y(),e})();if(e===d)return U(),(()=>{const e=new i;G(e),V(S,!0);let t=!1,n=0;for(X();!($(p)||t&&(J(c),z(y),U(),X(),K(),$(p)));)t=!0,V(n),J(o),e[n]=L(n,Q()),n++,X();return t&&J(u),U(),A=void 0,t||J(o),H(),Y(),e})();let t,n=b;switch(e===v&&(U(),e=q(),n=v),e){case"String":case"Boolean":case"Null":case"Numeric":return t=M.value,U(),JSON.parse(n+t)}}e.exports={parse:(e,t,n)=>{I(),k=w(e),j=t,T=n,k.length||W(),P=-1,U(),G({}),X(l);let r=Q();var i;return X(f),M&&B(),n||null===r||(i=r,Object(i)!==i&&(r=new Object(r)),x(r,O)),H(),r=L("",r),I(),k.length=0,C=O=k=F=M=j=null,r},tokenize:w}},57437:(e,t,n)=>{const{isArray:r,isObject:i,isFunction:o,isNumber:s,isString:a}=n(7646),c=n(34076),{PREFIX_BEFORE_ALL:u,PREFIX_BEFORE:l,PREFIX_AFTER_PROP:f,PREFIX_AFTER_COLON:d,PREFIX_AFTER_VALUE:p,PREFIX_AFTER:h,PREFIX_AFTER_ALL:g,BRACKET_OPEN:m,BRACKET_CLOSE:y,CURLY_BRACKET_OPEN:v,CURLY_BRACKET_CLOSE:b,COLON:S,COMMA:E,EMPTY:x,UNDEFINED:w}=n(5344),_=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,O="\n",C="null",D=e=>`${l}:${e}`,A=e=>`${p}:${e}`,P=e=>`${h}:${e}`,T={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},R=e=>`"${(e=>(_.lastIndex=0,_.test(e)?e.replace(_,(e=>{const t=T[e];return"string"==typeof t?t:e})):e))(e)}"`,k=(e,t,n,r)=>{const i=e[Symbol.for(t)];if(!i||!i.length)return x;let o=!1;const s=i.reduce(((e,{inline:t,type:r,value:i})=>(o="LineComment"===r,e+(t?" ":O+n)+((e,t)=>t?`//${e}`:`/*${e}*/`)(i,o))),x);return r||o?s+O+n:s};let F=null,M=x;const j=(e,t,n)=>e?t?e+t.trim()+O+n:e.trimRight()+O+n:t?t.trimRight()+O+n:x,I=(e,t,n)=>{const r=k(t,l,n+M,!0);return j(r,e,n)};function N(e,t,n){let s=t[e];switch(i(s)&&o(s.toJSON)&&(s=s.toJSON(e)),o(F)&&(s=F.call(t,e,s)),typeof s){case"string":return R(s);case"number":return Number.isFinite(s)?String(s):C;case"boolean":case"null":return String(s);case"object":return r(s)?((e,t)=>{const n=t+M,{length:r}=e;let i=x,o=x;for(let t=0;t{if(!e)return"null";const n=t+M;let i=x,o=x,s=!0;return(r(F)?F:Object.keys(e)).forEach((t=>{const r=N(t,e,n);if(r===w)return;s||(i+=E),s=!1;const a=j(o,k(e,D(t),n),n);i+=a||O+n,i+=R(t)+k(e,`${f}:${t}`,n)+S+k(e,`${d}:${t}`,n)+" "+r+k(e,A(t),n),o=k(e,P(t),n)})),i+=j(o,k(e,h,n),n),v+I(i,e,t)+b})(s,n)}}const{toString:L}=Object.prototype,B=["[object Number]","[object String]","[object Boolean]"];e.exports=(e,t,n)=>{const l=(e=>a(e)?e:s(e)?c(" ",e):x)(n);if(!l)return JSON.stringify(e,t);o(t)||r(t)||(t=null),F=t,M=l;const f=(e=>{if("object"!=typeof e)return!1;const t=L.call(e);return B.includes(t)})(e)?JSON.stringify(e):N("",{"":e},x);return F=null,M=x,i(e)?k(e,u,x).trimLeft()+f+k(e,g,x).trimRight():f}},62494:(e,t,n)=>{"use strict";const r=n(71017),i=n(22037),o=n(60085),s=n(5870),a=n(24199),c=n(1162),u=n(56562),l=n(55654),f=a.config||r.join(i.tmpdir(),l()),d="You don't have access to this file.",p={mode:448},h={mode:384};e.exports=class{constructor(e,t,n={}){const i=n.globalConfigPath?r.join(e,"config.json"):r.join("configstore",`${e}.json`);this.path=n.configPath||r.join(f,i),t&&(this.all={...t,...this.all})}get all(){try{return JSON.parse(o.readFileSync(this.path,"utf8"))}catch(e){if("ENOENT"===e.code)return{};if("EACCES"===e.code&&(e.message=`${e.message}\n${d}\n`),"SyntaxError"===e.name)return c.sync(this.path,"",h),{};throw e}}set all(e){try{s.sync(r.dirname(this.path),p),c.sync(this.path,JSON.stringify(e,void 0,"\t"),h)}catch(e){throw"EACCES"===e.code&&(e.message=`${e.message}\n${d}\n`),e}}get size(){return Object.keys(this.all||{}).length}get(e){return u.get(this.all,e)}set(e,t){const n=this.all;if(1===arguments.length)for(const t of Object.keys(e))u.set(n,t,e[t]);else u.set(n,e,t);this.all=n}has(e){return u.has(this.all,e)}delete(e){const t=this.all;u.delete(t,e),this.all=t}clear(){this.all={}}}},7646:(e,t,n)=>{function r(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===r(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===r(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===r(e)},t.isError=function(e){return"[object Error]"===r(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(14300).Buffer.isBuffer},41118:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Explorer=void 0;var r,i=(r=n(71017))&&r.__esModule?r:{default:r},o=n(22449),s=n(64372),a=n(22311),c=n(67374);class u extends o.ExplorerBase{constructor(e){super(e)}async search(e=process.cwd()){const t=await(0,c.getDirectory)(e);return await this.searchFromDirectory(t)}async searchFromDirectory(e){const t=i.default.resolve(process.cwd(),e),n=async()=>{const e=await this.searchDirectory(t),n=this.nextDirectoryToSearch(t,e);return n?this.searchFromDirectory(n):await this.config.transform(e)};return this.searchCache?(0,a.cacheWrapper)(this.searchCache,t,n):n()}async searchDirectory(e){for await(const t of this.config.searchPlaces){const n=await this.loadSearchPlace(e,t);if(!0===this.shouldSearchStopWithResult(n))return n}return null}async loadSearchPlace(e,t){const n=i.default.join(e,t),r=await(0,s.readFile)(n);return await this.createCosmiconfigResult(n,r)}async loadFileContent(e,t){if(null===t)return null;if(""===t.trim())return;const n=this.getLoaderEntryForFile(e);return await n(e,t)}async createCosmiconfigResult(e,t){const n=await this.loadFileContent(e,t);return this.loadedContentToCosmiconfigResult(e,n)}async load(e){this.validateFilePath(e);const t=i.default.resolve(process.cwd(),e),n=async()=>{const e=await(0,s.readFile)(t,{throwNotFound:!0}),n=await this.createCosmiconfigResult(t,e);return await this.config.transform(n)};return this.loadCache?(0,a.cacheWrapper)(this.loadCache,t,n):n()}}t.Explorer=u},22449:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getExtensionDescription=a,t.ExplorerBase=void 0;var r,i=(r=n(71017))&&r.__esModule?r:{default:r},o=n(40952),s=n(46147);function a(e){const t=i.default.extname(e);return t?`extension "${t}"`:"files without extensions"}t.ExplorerBase=class{constructor(e){!0===e.cache&&(this.loadCache=new Map,this.searchCache=new Map),this.config=e,this.validateConfig()}clearLoadCache(){this.loadCache&&this.loadCache.clear()}clearSearchCache(){this.searchCache&&this.searchCache.clear()}clearCaches(){this.clearLoadCache(),this.clearSearchCache()}validateConfig(){const e=this.config;e.searchPlaces.forEach((t=>{const n=i.default.extname(t)||"noExt",r=e.loaders[n];if(!r)throw new Error(`No loader specified for ${a(t)}, so searchPlaces item "${t}" is invalid`);if("function"!=typeof r)throw new Error(`loader for ${a(t)} is not a function (type provided: "${typeof r}"), so searchPlaces item "${t}" is invalid`)}))}shouldSearchStopWithResult(e){return!(null===e||e.isEmpty&&this.config.ignoreEmptySearchPlaces)}nextDirectoryToSearch(e,t){if(this.shouldSearchStopWithResult(t))return null;const n=(r=e,i.default.dirname(r));var r;return n===e||e===this.config.stopDir?null:n}loadPackageProp(e,t){const n=o.loaders.loadJson(e,t);return(0,s.getPropertyByPath)(n,this.config.packageProp)||null}getLoaderEntryForFile(e){if("package.json"===i.default.basename(e))return this.loadPackageProp.bind(this);const t=i.default.extname(e)||"noExt",n=this.config.loaders[t];if(!n)throw new Error(`No loader specified for ${a(e)}`);return n}loadedContentToCosmiconfigResult(e,t){return null===t?null:void 0===t?{filepath:e,config:void 0,isEmpty:!0}:{config:t,filepath:e}}validateFilePath(e){if(!e)throw new Error("load must pass a non-empty string")}}},45232:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExplorerSync=void 0;var r,i=(r=n(71017))&&r.__esModule?r:{default:r},o=n(22449),s=n(64372),a=n(22311),c=n(67374);class u extends o.ExplorerBase{constructor(e){super(e)}searchSync(e=process.cwd()){const t=(0,c.getDirectorySync)(e);return this.searchFromDirectorySync(t)}searchFromDirectorySync(e){const t=i.default.resolve(process.cwd(),e),n=()=>{const e=this.searchDirectorySync(t),n=this.nextDirectoryToSearch(t,e);return n?this.searchFromDirectorySync(n):this.config.transform(e)};return this.searchCache?(0,a.cacheWrapperSync)(this.searchCache,t,n):n()}searchDirectorySync(e){for(const t of this.config.searchPlaces){const n=this.loadSearchPlaceSync(e,t);if(!0===this.shouldSearchStopWithResult(n))return n}return null}loadSearchPlaceSync(e,t){const n=i.default.join(e,t),r=(0,s.readFileSync)(n);return this.createCosmiconfigResultSync(n,r)}loadFileContentSync(e,t){return null===t?null:""!==t.trim()?this.getLoaderEntryForFile(e)(e,t):void 0}createCosmiconfigResultSync(e,t){const n=this.loadFileContentSync(e,t);return this.loadedContentToCosmiconfigResult(e,n)}loadSync(e){this.validateFilePath(e);const t=i.default.resolve(process.cwd(),e),n=()=>{const e=(0,s.readFileSync)(t,{throwNotFound:!0}),n=this.createCosmiconfigResultSync(t,e);return this.config.transform(n)};return this.loadCache?(0,a.cacheWrapperSync)(this.loadCache,t,n):n()}}t.ExplorerSync=u},22311:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cacheWrapper=async function(e,t,n){const r=e.get(t);if(void 0!==r)return r;const i=await n();return e.set(t,i),i},t.cacheWrapperSync=function(e,t,n){const r=e.get(t);if(void 0!==r)return r;const i=n();return e.set(t,i),i}},67374:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDirectory=async function(e){return!0===await(0,o.isDirectory)(e)?e:i.default.dirname(e)},t.getDirectorySync=function(e){return!0===(0,o.isDirectorySync)(e)?e:i.default.dirname(e)};var r,i=(r=n(71017))&&r.__esModule?r:{default:r},o=n(77898)},46147:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPropertyByPath=function(e,t){return"string"==typeof t&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:("string"==typeof t?t.split("."):t).reduce(((e,t)=>void 0===e?e:e[t]),e)}},75274:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cosmiconfig=function(e,t={}){const n=l(e,t),r=new o.Explorer(n);return{search:r.search.bind(r),load:r.load.bind(r),clearLoadCache:r.clearLoadCache.bind(r),clearSearchCache:r.clearSearchCache.bind(r),clearCaches:r.clearCaches.bind(r)}},t.cosmiconfigSync=function(e,t={}){const n=l(e,t),r=new s.ExplorerSync(n);return{search:r.searchSync.bind(r),load:r.loadSync.bind(r),clearLoadCache:r.clearLoadCache.bind(r),clearSearchCache:r.clearSearchCache.bind(r),clearCaches:r.clearCaches.bind(r)}},t.defaultLoaders=void 0;var r,i=(r=n(22037))&&r.__esModule?r:{default:r},o=n(41118),s=n(45232),a=n(40952);n(48315);const c=Object.freeze({".cjs":a.loaders.loadJs,".js":a.loaders.loadJs,".json":a.loaders.loadJson,".yaml":a.loaders.loadYaml,".yml":a.loaders.loadYaml,noExt:a.loaders.loadYaml});t.defaultLoaders=c;const u=function(e){return e};function l(e,t){const n={packageProp:e,searchPlaces:["package.json",`.${e}rc`,`.${e}rc.json`,`.${e}rc.yaml`,`.${e}rc.yml`,`.${e}rc.js`,`.${e}rc.cjs`,`${e}.config.js`,`${e}.config.cjs`],ignoreEmptySearchPlaces:!0,stopDir:i.default.homedir(),cache:!0,transform:u,loaders:c};return{...n,...t,loaders:{...n.loaders,...t.loaders}}}},40952:(e,t,n)=>{"use strict";let r,i,o;Object.defineProperty(t,"__esModule",{value:!0}),t.loaders=void 0;const s={loadJs:function(e){return void 0===r&&(r=n(13303)),r(e)},loadJson:function(e,t){void 0===i&&(i=n(855));try{return i(t)}catch(t){throw t.message=`JSON Error in ${e}:\n${t.message}`,t}},loadYaml:function(e,t){void 0===o&&(o=n(21078));try{return o.parse(t,{prettyErrors:!0})}catch(t){throw t.message=`YAML Error in ${e}:\n${t.message}`,t}}};t.loaders=s},64372:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.readFile=async function(e,t={}){const n=!0===t.throwNotFound;try{return await async function(e,t){return new Promise(((t,n)=>{i.default.readFile(e,"utf8",((e,r)=>{e?n(e):t(r)}))}))}(e)}catch(e){if(!1===n&&("ENOENT"===e.code||"EISDIR"===e.code))return null;throw e}},t.readFileSync=function(e,t={}){const n=!0===t.throwNotFound;try{return i.default.readFileSync(e,"utf8")}catch(e){if(!1===n&&("ENOENT"===e.code||"EISDIR"===e.code))return null;throw e}};var r,i=(r=n(57147))&&r.__esModule?r:{default:r}},48315:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},82829:(e,t,n)=>{"use strict";const r=n(6113);e.exports=e=>{if(!Number.isFinite(e))throw new TypeError("Expected a finite number");return r.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}},48947:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.GitIgnore=void 0;const s=o(n(71017)),a=n(75965),c=n(36211);function u(e){const t=e.map((e=>s.resolve(e)));return function(e){e.sort(((e,t)=>e.length-t.length))}(t),Object.freeze(t),t}t.GitIgnore=class{constructor(e=[]){this.resolvedGitIgnoreHierarchies=new Map,this.knownGitIgnoreHierarchies=new Map,this._sortedRoots=u(e),this._roots=new Set(this._sortedRoots)}findResolvedGitIgnoreHierarchy(e){return this.resolvedGitIgnoreHierarchies.get(e)}isIgnoredQuick(e){const t=this.findResolvedGitIgnoreHierarchy(s.dirname(e));return null==t?void 0:t.isIgnored(e)}async isIgnored(e){return(await this.findGitIgnoreHierarchy(s.dirname(e))).isIgnored(e)}async isIgnoredEx(e){return(await this.findGitIgnoreHierarchy(s.dirname(e))).isIgnoredEx(e)}async findGitIgnoreHierarchy(e){const t=this.knownGitIgnoreHierarchies.get(e);if(t)return t;const n=this._findGitIgnoreHierarchy(e);this.knownGitIgnoreHierarchies.set(e,n);const r=await n;return this.resolvedGitIgnoreHierarchies.set(e,r),n}filterOutIgnored(e){const t=this.filterOutIgnoredAsync(e);return"function"==typeof e[Symbol.asyncIterator]?t:async function(e){const t=[];for await(const n of e)t.push(n);return t}(t)}async*filterOutIgnoredAsync(e){var t;for await(const n of e)(null!==(t=this.isIgnoredQuick(n))&&void 0!==t?t:await this.isIgnored(n))||(yield n)}get roots(){return this._sortedRoots}addRoots(e){const t=e.map((e=>s.resolve(e))).filter((e=>!this._roots.has(e)));t.length&&(t.forEach((e=>this._roots.add(e))),this._sortedRoots=u([...this._roots]),this.cleanCachedEntries())}peekGitIgnoreHierarchy(e){return this.knownGitIgnoreHierarchies.get(e)}cleanCachedEntries(){this.knownGitIgnoreHierarchies.clear(),this.resolvedGitIgnoreHierarchies.clear()}async _findGitIgnoreHierarchy(e){var t;const n=this.determineRoot(e),r=s.dirname(e),i=r!==e&&(0,a.contains)(n,r)?await this.findGitIgnoreHierarchy(r):void 0,o=await(0,c.loadGitIgnore)(e);if(!o)return i||new c.GitIgnoreHierarchy([]);const u=null!==(t=null==i?void 0:i.gitIgnoreChain.concat([o]))&&void 0!==t?t:[o];return new c.GitIgnoreHierarchy(u)}determineRoot(e){const t=this.roots;for(let n=t.length-1;n>=0;--n){const r=t[n];if((0,a.contains)(r,e))return r}return s.parse(e).root}}},36211:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.__testing__=t.loadGitIgnore=t.GitIgnoreHierarchy=t.GitIgnoreFile=void 0;const s=n(11638),a=n(57147),c=o(n(71017));class u{constructor(e,t){this.matcher=e,this.gitignore=t}get root(){return this.matcher.root}isIgnored(e){return this.matcher.match(e)}isIgnoredEx(e){var t;const n=this.matcher.matchEx(e),{matched:r}=n,i=n,o=i.pattern,s=null!==(t=null==o?void 0:o.rawGlob)&&void 0!==t?t:i.glob,a=i.root,c=null==o?void 0:o.line;return{glob:s,matched:r,gitIgnoreFile:this.gitignore,root:a,line:c}}static async loadGitignore(e){e=c.resolve(e);const t=await a.promises.readFile(e,"utf8"),n={root:c.dirname(e)},r=t.split("\n").map(((t,n)=>({glob:t,source:e,line:n+1}))),i=new s.GlobMatcher(r,n);return new u(i,e)}}function l(e){let t="";for(const n of e){if(!n.root.startsWith(t))throw new Error("Hierarchy violation - files are not nested");t=n.root}}t.GitIgnoreFile=u,t.GitIgnoreHierarchy=class{constructor(e){this.gitIgnoreChain=e,l(e)}isIgnored(e){for(const t of this.gitIgnoreChain)if(t.isIgnored(e))return!0;return!1}isIgnoredEx(e){for(const t of this.gitIgnoreChain){const n=t.isIgnoredEx(e);if(n.matched)return n}}},t.loadGitIgnore=async function(e){const t=c.join(e,".gitignore");try{return await u.loadGitignore(t)}catch(e){return}},t.__testing__={mustBeHierarchical:l}},76805:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.contains=t.isParentOf=t.findRepoRoot=t.directoryRoot=void 0;const s=o(n(71017)),a=n(35616);t.directoryRoot=function(e){return s.parse(e).root},t.findRepoRoot=async function(e){const t=await a(".git",{cwd:e,type:"directory"});if(t)return s.dirname(t)},t.isParentOf=function(e,t){const n=s.relative(e,t);return!!n&&!s.isAbsolute(n)&&"."!==n[0]},t.contains=function(e,t){const n=s.relative(e,t);return!n||!s.isAbsolute(n)&&"."!==n[0]}},75965:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadGitIgnore=t.GitIgnoreHierarchy=t.GitIgnoreFile=t.isParentOf=t.contains=t.directoryRoot=t.findRepoRoot=t.GitIgnore=void 0;var r=n(48947);Object.defineProperty(t,"GitIgnore",{enumerable:!0,get:function(){return r.GitIgnore}});var i=n(76805);Object.defineProperty(t,"findRepoRoot",{enumerable:!0,get:function(){return i.findRepoRoot}}),Object.defineProperty(t,"directoryRoot",{enumerable:!0,get:function(){return i.directoryRoot}}),Object.defineProperty(t,"contains",{enumerable:!0,get:function(){return i.contains}}),Object.defineProperty(t,"isParentOf",{enumerable:!0,get:function(){return i.isParentOf}});var o=n(36211);Object.defineProperty(t,"GitIgnoreFile",{enumerable:!0,get:function(){return o.GitIgnoreFile}}),Object.defineProperty(t,"GitIgnoreHierarchy",{enumerable:!0,get:function(){return o.GitIgnoreHierarchy}}),Object.defineProperty(t,"loadGitIgnore",{enumerable:!0,get:function(){return o.loadGitIgnore}})},10543:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.GlobMatcher=void 0;const s=n(71876),a=o(n(71017)),c=n(41967);t.GlobMatcher=class{constructor(e,t,n){var r;n=null!=n?n:a;const i="string"==typeof t?{root:t}:null!=t?t:{},{mode:o="exclude"}=i,u="include"!==o;n=null!==(r=i.nodePath)&&void 0!==r?r:n;const{root:l=n.resolve(),dot:f=u,nodePath:d=n,nested:p=u,cwd:h=process.cwd(),nobrace:g}=function(e){if("object"!=typeof e)return e;const t=e;for(const e of Object.keys(t))void 0===t[e]&&delete t[e];return e}(i),m=d.resolve(d.normalize(l));this.options={root:m,dot:f,nodePath:d,nested:p,mode:o,nobrace:g,cwd:h},e=Array.isArray(e)?e:"string"==typeof e?e.split(/\r?\n/g):[e];const y=(0,c.normalizeGlobPatterns)(e,this.options);this.patternsNormalizedToRoot=y.map((e=>(0,c.normalizeGlobToRoot)(e,m,d))).filter((e=>""===d.relative(e.root,m))),this.patterns=y,this.root=m,this.path=d,this.dot=f,this.matchEx=function(e,t){const{nodePath:n,dot:r,nobrace:i}=t,o={dot:r,nobrace:i},a=e.map(((e,t)=>({pattern:e,index:t}))).filter((e=>!!e.pattern.glob)).filter((e=>!e.pattern.glob.startsWith("#"))).map((({pattern:e,index:t})=>{const n=e.glob.match(/^!/),r=e.glob.replace(/^!/,""),i=!!(n&&1&n[0].length),a=s.makeRe(r,o);return{pattern:e,index:t,isNeg:i,fn:e=>!!e.match(a),reg:a}})),u=a.filter((e=>e.isNeg)),l=a.filter((e=>!e.isNeg));return e=>{function t(t,r){for(const i of t){const t=i.pattern,o=t.root;if(!(0,c.doesRootContainPath)(o,e,n))continue;const s=n.relative(o,e),a="\\"===n.sep?s.replace(/\\/g,"/"):s;if(i.fn(a))return{matched:r,glob:t.glob,root:o,pattern:t,index:i.index,isNeg:i.isNeg}}}return e=n.resolve(n.normalize(e)),t(u,!1)||t(l,!0)||{matched:!1}}}(this.patterns,this.options)}match(e){return this.matchEx(e).matched}}},53803:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},41967:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.__testing__=t.normalizeGlobToRoot=t.normalizeGlobPattern=t.normalizeGlobPatterns=t.isGlobPatternNormalized=t.isGlobPatternWithRoot=t.isGlobPatternWithOptionalRoot=t.doesRootContainPath=t.fileOrGlobToGlob=void 0;const s=o(n(71017)),{posix:a}=s,c=/^\.[\\/]/;function u(e,t,n){if(t.startsWith(e))return!0;const r=n.relative(e,t);return!r||r!==t&&!r.startsWith("..")&&!n.isAbsolute(r)}function l(e){return"string"!=typeof e&&"string"==typeof e.glob}function f(e){return!!e.root}function d(e){return!!l(e)&&(!!f(e)&&("rawGlob"in e&&"rawRoot"in e&&"string"==typeof e.rawGlob))}function p(e,t){var n;const{root:r,nodePath:i=s,nested:o,cwd:a=s.resolve()}=t;e=l(e)?e:{glob:e};const c={...e,root:null!==(n=e.root)&&void 0!==n?n:r},u=c.root,f=e.glob;c.glob=c.glob.trim(),c.glob.startsWith("${cwd}")&&(c.glob=c.glob.replace("${cwd}",""),c.root="${cwd}"),c.root.startsWith("${cwd}")&&(c.root=i.resolve(c.root.replace("${cwd}",a))),c.root=i.resolve(r,i.normalize(c.root));const d=function(e,t){const n=(e=e.replace(/^(!!)+/,"")).startsWith("!"),r=n?"!":"";e=n?e.slice(1):e;const i=t?function(e){if(!e.includes("/"))return"**"===e?["**"]:["**/"+e,"**/"+e+"/**"];const t=e.startsWith("/");return(e=t?e.slice(1):e).endsWith("/")?t||e.slice(0,-1).includes("/")?[e+"**/*"]:["**/"+e+"**/*"]:e.endsWith("**")?[e]:[e,e+"/**"]}(e):function(e){return[e=(e=e.startsWith("/")?e.slice(1):e).endsWith("/")?e+"**/*":e]}(e);return i.map((e=>r+e))}(c.glob,o);return d.map((e=>({...c,glob:e,rawGlob:f,rawRoot:u})))}function h(e,t){if(!t||"/"===t)return e;if(e.startsWith("**"))return e;if(t=t.endsWith("/")?t:t+"/",e.startsWith(t))return e.slice(t.length);const n=t.split("/"),r=e.split("/");for(let e=0;ee.replace(/\\/g,"/"):e=>e;if("string"!=typeof e){const n=null!==(r=e.root)&&void 0!==r?r:t;return{...e,root:n}}return u(t,e,n)||c.test(e)?{glob:i(n.relative(t,n.resolve(t,e))),root:t}:{glob:i(e),root:t}},t.doesRootContainPath=u,t.isGlobPatternWithOptionalRoot=l,t.isGlobPatternWithRoot=f,t.isGlobPatternNormalized=d,t.normalizeGlobPatterns=function(e,t){return[...function*(){for(const n of e)d(n)?yield n:yield*p(n,t)}()]},t.normalizeGlobPattern=p,t.normalizeGlobToRoot=function(e,t,n){function r(e){return"\\"===n.sep?e.replace(/\\/g,"/"):e}if(e.root===t)return e;const i=n.relative(t,e.root);if(!i)return e;const o=n.relative(e.root,t),s="."!==i[0]&&!n.isAbsolute(i),c="."!==o[0]&&!n.isAbsolute(o);if(!s&&!c)return e;const u=e.glob.startsWith("!"),l=u?e.glob.slice(1):e.glob,f=u?"!":"";if(s){const n=r(i);return{...e,glob:f+a.join(n,l),root:t}}const d=h(l,r(o)+"/");return d?{...e,glob:f+d,root:t}:e};const g={" ":!0,"\t":!0,"\n":!0,"\r":!0};t.__testing__={rebaseGlob:h,trimGlob:function(e){return function(e){const t=e.length-1;let n=t;for(;n>=0&&e[n]in g;)--n;return"\\"===e[n]&&n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toArray=void 0,t.toArray=async function(e){const t=[];for await(const n of e)t.push(n);return t}},23193:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.readFileSync=t.readFile=void 0;const s=o(n(57147)),a=o(n(59796));t.readFile=function(e,t="utf8"){return new Promise(((n,r)=>{const i=[],o=function(e,t,n){const r=[];c.test(e)&&r.push(a.createGunzip());const i=s.createReadStream(e);i.on("error",n);const o=r.reduce(((e,t)=>e.pipe(t).on("error",n)),i);return o.setEncoding(t),o}(e,t,r);let u=!1;function l(){n(i.join("")),u=u||(n(i.join("")),!0)}o.on("error",r),o.on("data",(e=>i.push(e))),o.on("close",l),o.on("end",l)}))};const c=/\.gz$/i;t.readFileSync=function(e,t="utf8"){const n=s.readFileSync(e);return(c.test(e)?a.gunzipSync(n):n).toString(t)}},87661:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.writeToFileIterableP=t.writeToFileIterable=t.writeToFile=void 0;const s=o(n(57147)),a=o(n(59796)),c=o(n(12781));function u(e,t){const n=c.Readable.from(t),r=s.createWriteStream(e),i=e.match(/\.gz$/)?a.createGzip():new c.PassThrough;return n.pipe(i).pipe(r)}t.writeToFile=function(e,t){return u(e,[t])},t.writeToFileIterable=u,t.writeToFileIterableP=function(e,t){const n=u(e,t);return new Promise(((e,t)=>{n.on("finish",(()=>e())),n.on("error",(e=>t(e)))}))}},67789:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(23193),t),i(n(87661),t)},20975:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.asyncIterableToArray=void 0,i(n(67789),t);var o=n(18215);Object.defineProperty(t,"asyncIterableToArray",{enumerable:!0,get:function(){return o.toArray}})},39237:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLanguagesForBasename=t.getLanguagesForExt=t.buildLanguageExtensionMapSet=t.isGenerated=t.isGeneratedFile=t.isGeneratedExt=t.isBinary=t.isBinaryFile=t.isBinaryExt=t.languageIds=t.generatedFiles=t.binaryLanguages=t.languageExtensionDefinitions=void 0,t.languageExtensionDefinitions=[{id:"ada",extensions:[".adb",".ads"]},{id:"apiblueprint",extensions:[".apib",".apiblueprint"]},{id:"asciidoc",extensions:[".adoc",".asc",".asciidoc"]},{id:"bat",extensions:[".bat",".cmd"]},{id:"clojure",extensions:[".clj",".cljs",".cljx",".clojure",".edn"]},{id:"coffeescript",extensions:[".coffee",".cson"]},{id:"c",extensions:[".c"]},{id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx",".h",".mm",".ino",".inl"]},{id:"csharp",extensions:[".cs"]},{id:"css",extensions:[".css"]},{id:"dhall",extensions:[".dhall"]},{id:"diff",extensions:[".diff",".patch",".rej"]},{id:"dockerfile",extensions:[".dockerfile"]},{id:"elixir",extensions:[".ex",".exs"]},{id:"fsharp",extensions:[".fs",".fsi",".fsx",".fsscript"]},{id:"go",extensions:[".go"]},{id:"groovy",extensions:[".groovy",".gvy",".gradle"]},{id:"handlebars",extensions:[".handlebars",".hbs"]},{id:"haskell",extensions:[".hs",".lhs"]},{id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm",".volt",".vue"]},{id:"ini",extensions:[".ini"]},{id:"properties",extensions:[".properties",".gitconfig",".cfg",".conf"]},{id:"jade",extensions:[".jade",".pug"]},{id:"java",extensions:[".java",".jav"]},{id:"javascriptreact",extensions:[".jsx"]},{id:"javascript",extensions:[".js",".mjs",".es6",".cjs"]},{id:"json",extensions:[".json",".jsonc",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".webmanifest"]},{id:"jsonc",extensions:[".jsonc"]},{id:"jsonc",extensions:[],filenames:[".code-workspace"]},{id:"jungle",extensions:[".jungle"]},{id:"less",extensions:[".less"]},{id:"literate haskell",extensions:[".lhs"]},{id:"lua",extensions:[".lua"]},{id:"makefile",extensions:[".mk"]},{id:"markdown",extensions:[".md",".mdown",".markdown",".markdn"]},{id:"mdx",extensions:[".mdx"]},{id:"monkeyc",extensions:[".mc",".mb"]},{id:"objective-c",extensions:[".m"]},{id:"perl",extensions:[".pl",".pm",".pod",".t",".PL",".psgi"]},{id:"perl6",extensions:[".p6",".pl6",".pm6",".nqp"]},{id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"]},{id:"plaintext",extensions:[".txt"]},{id:"powershell",extensions:[".ps1",".psm1",".psd1",".pssc",".psrc"]},{id:"purescript",extensions:[".purs"]},{id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"]},{id:"r",extensions:[".r",".R",".rhistory",".rprofile",".rt"]},{id:"razor",extensions:[".cshtml"]},{id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".rake",".ru"]},{id:"ruby",extensions:[],filenames:["Gemfile"]},{id:"rust",extensions:[".rs"]},{id:"scala",extensions:[".scala",".sc"]},{id:"scss",extensions:[".scss"]},{id:"shaderlab",extensions:[".shader",".cginc"]},{id:"shellscript",extensions:[".sh",".bash",".bashrc",".bash_aliases",".bash_profile",".bash_login",".ebuild",".install",".profile",".bash_logout",".zsh",".zshrc",".zprofile",".zlogin",".zlogout",".zshenv",".zsh-theme"]},{id:"sql",extensions:[".sql",".dsql"]},{id:"swift",extensions:[".swift"]},{id:"toml",extensions:[".toml"]},{id:"typescript",extensions:[".ts",".cts",".mts"]},{id:"typescriptreact",extensions:[".tsx"]},{id:"vb",extensions:[".vb",".brs",".vbs",".bas"]},{id:"vue",extensions:[".vue"]},{id:"xml",extensions:[".ascx",".atom",".axml",".bpmn",".config",".cpt",".csl",".csproj.user",".csproj",".dita",".ditamap",".dtd",".dtml",".ent",".fsproj",".fxml",".iml",".isml",".jmx",".launch",".menu",".mod",".mxml",".nuspec",".opml",".owl",".proj",".pt",".pubxml.user",".pubxml",".rdf",".rng",".rss",".shproj",".storyboard",".svg",".targets",".tld",".tmx",".vbproj.user",".vbproj",".vcxproj.filters",".vcxproj",".wsdl",".wxi",".wxl",".wxs",".xaml",".xbl",".xib",".xlf",".xliff",".xml",".xoml",".xpdl",".xsd",".xul"]},{id:"xsl",extensions:[".xsl",".xslt"]},{id:"yaml",extensions:[".eyaml",".eyml",".yaml",".yml"]},{id:"latex",extensions:[".tex"]},{id:"map",extensions:[".map"]},{id:"pdf",extensions:[".pdf"]},{id:"rsa",extensions:[".pub"],filenames:["id_rsa","id_rsa.pub"]},{id:"pem",extensions:[".private-key.pem",".pem"]},{id:"pem-private-key",extensions:[".private-key.pem"]},{id:"image",extensions:[".jpg",".png",".jpeg",".tiff",".bmp",".gif",".ico"]},{id:"binary",extensions:[".gz",".exe",".dll",".lib",".obj",".o",".eot",".cur",".zip"]},{id:"fonts",extensions:[".ttf",".woff",".woff2"]},{id:"video",extensions:[".mov",".mpg"]},{id:"lock",extensions:[".lock"],filenames:["package-lock.json"]},{id:"cache_files",extensions:[],filenames:[".cspellcache",".DS_Store",".eslintcache"]}],t.binaryLanguages=new Set(["binary","image","video","fonts"]),t.generatedFiles=new Set([...t.binaryLanguages,"map","lock","pdf","cache_files","rsa","pem"]),t.languageIds=t.languageExtensionDefinitions.map((({id:e})=>e));const n=(r=a(t.languageExtensionDefinitions),new Map([...r].map((([e,t])=>[e,[...t]]))));var r;function i(e){return s(t.binaryLanguages,e)}function o(e){return s(t.generatedFiles,e)}function s(e,t){if("string"==typeof t)return e.has(t);for(const n of t)if(e.has(n))return!0;return!1}function a(e){return e.reduce(((e,t)=>{var n;function r(n){(function(t){const n=e.get(t);if(n)return n;const r=new Set;return e.set(t,r),r})(n).add(t.id)}return t.extensions.forEach(r),null===(n=t.filenames)||void 0===n||n.forEach(r),e}),new Map)}function c(e){return n.get(e)||n.get("."+e)||[]}function u(e){const t=n.get(e);if(t)return t;for(let t=e.indexOf(".");t>=0;t=e.indexOf(".",t+1)){const r=n.get(e.slice(t));if(r)return r}return[]}t.isBinaryExt=function(e){return i(c(e))},t.isBinaryFile=function(e){return i(u(e))},t.isBinary=i,t.isGeneratedExt=function(e){return o(c(e))},t.isGeneratedFile=function(e){return o(u(e))},t.isGenerated=o,t.buildLanguageExtensionMapSet=a,t.getLanguagesForExt=c,t.getLanguagesForBasename=u},85215:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isCSpellSettingsInternal=t.createCSpellSettingsInternal=t.SymbolCSpellSettingsInternal=void 0;const r=n(70303);t.SymbolCSpellSettingsInternal=Symbol("CSpellSettingsInternal"),t.createCSpellSettingsInternal=function(e={}){return(0,r.clean)({...e,[t.SymbolCSpellSettingsInternal]:!0})},t.isCSpellSettingsInternal=function(e){return!!e[t.SymbolCSpellSettingsInternal]}},80672:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.updateTextDocument=t.createTextDocument=void 0;const a=n(39237),c=o(n(21046)),u=n(64881),l=s(n(39491));class f{constructor(e,t,n,r,i){this.uri=e,this.languageId=n,this.locale=r;const o="string"==typeof n?n:n[0]||"plaintext";this.vsTextDoc=u.TextDocument.create(e.toString(),o,i,t)}get version(){return this.vsTextDoc.version}get text(){return this.vsTextDoc.getText()}positionAt(e){return this.vsTextDoc.positionAt(e)}offsetAt(e){return this.vsTextDoc.offsetAt(e)}lineAt(e){const t=this.vsTextDoc.positionAt(e);t.character=0;const n=this.vsTextDoc.offsetAt(t),r={start:t,end:{line:t.line+1,character:0}};let i;const o=()=>this.vsTextDoc.getText(r);return{get text(){return null!=i?i:i=o()},offset:n,position:t}}update(e,t){t=null!=t?t:this.version+1;for(const n of e){const e=n.range?{range:{start:this.positionAt(n.range[0]),end:this.positionAt(n.range[1])},text:n.text}:n;u.TextDocument.update(this.vsTextDoc,[e],t)}return this}}t.createTextDocument=function({uri:e,content:t,languageId:n,locale:r,version:i}){return i=null!=i?i:1,e=c.toUri(e),n=0===(n=null!=n?n:(0,a.getLanguagesForBasename)(c.basename(e))).length?"text":n,new f(e,t,n,r,i)},t.updateTextDocument=function(e,t,n){return(0,l.default)(e instanceof f,"Unknown TextDocument type"),e.update(t,n)}},21046:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toUri=t.resolvePath=t.joinPath=t.extname=t.dirname=t.basename=t.Uri=void 0;const r=n(70355);var i=n(70355);Object.defineProperty(t,"Uri",{enumerable:!0,get:function(){return i.URI}}),t.basename=r.Utils.basename,t.dirname=r.Utils.dirname,t.extname=r.Utils.extname,t.joinPath=r.Utils.joinPath,t.resolvePath=r.Utils.resolvePath;const o=/^(?:[a-zA-Z]:|[/\\])/,s=/\w:\/\//;t.toUri=function(e){return e instanceof r.URI?e:o.test(e)&&!s.test(e)?r.URI.file(e):r.URI.parse(e)}},11830:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.__testing__=t.extractDependencies=t.getSources=t.checkFilenameMatchesGlob=t.toInternalSettings=t.finalizeSettings=t.calcOverrideSettings=t.mergeInDocSettings=t.mergeSettings=t.ENV_CSPELL_GLOB_ROOT=t.currentSettingsFileVersion=t.configSettingsFileVersion0_2=t.configSettingsFileVersion0_1=void 0;const s=n(11638),a=o(n(71017)),c=n(85215),u=o(n(70303)),l=n(30384),f=n(15661);function d(e,t){return void 0===e?t:void 0===t?e:t.length?e.length?(n=[...e,...t],[...new Set(n)]):t:e;var n}function p(e,t){return void 0===e?t:void 0===t?e:e.length?t.length?e.concat(t):e:t}t.configSettingsFileVersion0_1="0.1",t.configSettingsFileVersion0_2="0.2",t.currentSettingsFileVersion=t.configSettingsFileVersion0_2,t.ENV_CSPELL_GLOB_ROOT="CSPELL_GLOB_ROOT";const h=[];function g(e,t){return void 0===e?!t||t.length?t:h:void 0===t?!e||e.length?e:h:e.length?t.length?e.concat(t):!e||e.length?e:h:!t||t.length?t:h}function m(e,t){return void 0===e?t:void 0===t?e:{...e,...t}}function y(e=[],t=[]){const n=t.filter((e=>!!e));return n.length?n:e}function v(e,...t){const n=t.filter((e=>!!e)).reduce(S,_(e));return u.clean(n)}function b(e){return 0===Object.keys(e).length&&e.constructor===Object}function S(e,t){const n=_(e),r=_(t);if(e===t)return n;if(b(t))return n;if(b(e))return r;if(function(e,t){return x(t,e,0)}(n,r))return r;if(function(e,t){return x(e,t,1)}(n,r))return n;const i=n.id||n.languageId||"",o=r.id||r.languageId||"",s=w(n.includeRegExpList,r.includeRegExpList),a=(null==s?void 0:s.length)?{includeRegExpList:s}:{},u=(l=n.version,f=r.version,void 0===l?f:void 0===f||l>f?l:f);var l,f;return(0,c.createCSpellSettingsInternal)({...n,...r,...a,version:u,id:[i,o].join("|"),name:[n.name||"",r.name||""].join("|"),words:g(n.words,r.words),userWords:g(n.userWords,r.userWords),flagWords:g(n.flagWords,r.flagWords),ignoreWords:g(n.ignoreWords,r.ignoreWords),enabledLanguageIds:y(n.enabledLanguageIds,r.enabledLanguageIds),enableFiletypes:p(n.enableFiletypes,r.enableFiletypes),ignoreRegExpList:d(n.ignoreRegExpList,r.ignoreRegExpList),patterns:d(n.patterns,r.patterns),dictionaryDefinitions:d(n.dictionaryDefinitions,r.dictionaryDefinitions),dictionaries:d(n.dictionaries,r.dictionaries),noSuggestDictionaries:d(n.noSuggestDictionaries,r.noSuggestDictionaries),languageSettings:p(n.languageSettings,r.languageSettings),enabled:void 0!==r.enabled?r.enabled:n.enabled,files:d(n.files,r.files),ignorePaths:E(n.ignorePaths,r.ignorePaths,u),overrides:E(n.overrides,r.overrides,u),features:m(n.features,r.features),source:C(n,r),description:void 0,globRoot:void 0,import:void 0,__imports:D(n,r),__importRef:void 0})}function E(e,n,r){return r===t.configSettingsFileVersion0_1?w(e,n):d(e,n)}function x(e,t,n){var r;const i=null===(r=e.source)||void 0===r?void 0:r.sources;if(!i)return!1;const o=i[n?i.length-1:0];return o===t||o&&x(o,t,n)||!1}function w(e,t){return(null==t?void 0:t.length)?t:e||t}function _(e){var n;if(void 0===e)return;if((0,c.isCSpellSettingsInternal)(e))return e;const{dictionaryDefinitions:r,...i}=e,o=(0,l.mapDictDefsToInternal)(r,((s=null===(n=e.source)||void 0===n?void 0:n.filename)?a.dirname(s):void 0)||process.env[t.ENV_CSPELL_GLOB_ROOT]||process.cwd());var s;const u=o?{...i,dictionaryDefinitions:o}:i;return(0,c.createCSpellSettingsInternal)(u)}function O(e,t){return new s.GlobMatcher(t).match(e)}function C(e,t){const{source:n={name:"left"}}=e,{source:r={name:"right"}}=t;return{name:[e.name||n.name,t.name||r.name].join("|"),sources:[e,t]}}function D(e,t={}){var n;const r=new Map(e.__imports||[]);e.__importRef&&r.set(e.__importRef.filename,e.__importRef),t.__importRef&&r.set(t.__importRef.filename,t.__importRef);const i=(null===(n=t.__imports)||void 0===n?void 0:n.values())||[];for(const e of i)r.set(e.filename,e);return r.size?r:void 0}Object.freeze(h),t.mergeSettings=v,t.mergeInDocSettings=function(e,t){const n={...v(e,t),includeRegExpList:d(e.includeRegExpList,t.includeRegExpList)};return u.clean(n)},t.calcOverrideSettings=function(e,t){const n=_(e),r=(n.overrides||[]).filter((e=>O(t,e.filename))).reduce(((e,t)=>v(e,t)),n);return r},t.finalizeSettings=function(e){return function(e){const t={...e,finalized:!0,ignoreRegExpList:(0,f.resolvePatterns)(e.ignoreRegExpList,e.patterns),includeRegExpList:(0,f.resolvePatterns)(e.includeRegExpList,e.patterns)};return t.name="Finalized "+(t.name||""),t.source={name:e.name||"src",sources:[e]},t}(_(e))},t.toInternalSettings=_,t.checkFilenameMatchesGlob=O,t.getSources=function(e){const t=new Set,n=[];return function e(r){var i,o;r&&!t.has(r)&&(t.add(r),(null===(o=null===(i=r.source)||void 0===i?void 0:i.sources)||void 0===o?void 0:o.length)?r.source.sources.forEach(e):n.push(r))}(e),n},t.extractDependencies=function(e){const t=_(e);return{configFiles:[...D(t)||[]].map((([e])=>e)),dictionaryFiles:(0,l.calcDictionaryDefsToLoad)(t).map((e=>e.path))}},t.__testing__={mergeObjects:m}},62155:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.getDefaultSettings=t._defaultSettings=void 0;const s=n(85215),a=n(21089),c=n(27464),u=n(5124),l=o(n(60091)),f=o(n(55948)),d=("@cspell/cspell-bundled-dicts/cspell-default.json",(0,a.resolveFile)("@cspell/cspell-bundled-dicts/cspell-default.json",__dirname).filename);const p=[f.regExSpellingGuardBlock,f.regExSpellingGuardLine,f.regExSpellingGuardNext],h=[{name:"CommitHash",pattern:f.regExCommitHash},{name:"CommitHashLink",pattern:f.regExCommitHashLink},{name:"CStyleHexValue",pattern:f.regExCStyleHexValue},{name:"CSSHexValue",pattern:f.regExCSSHexValue},{name:"Urls",pattern:f.regExMatchUrls},{name:"HexValues",pattern:f.regExMatchCommonHexFormats},{name:"SpellCheckerDisable",pattern:p},{name:"PublicKey",pattern:f.regExPublicKey},{name:"RsaCert",pattern:f.regExCert},{name:"SshRsa",pattern:f.regExSshRSA},{name:"EscapeCharacters",pattern:f.regExEscapeCharacters},{name:"Base64",pattern:f.regExBase64},{name:"Base64SingleLine",pattern:f.regExBase64SingleLine},{name:"Base64MultiLine",pattern:f.regExBase64MultiLine},{name:"Email",pattern:f.regExEmail},{name:"SHA",pattern:f.regExSha},{name:"HashStrings",pattern:f.regExHashStrings},{name:"UnicodeRef",pattern:f.regExUnicodeRef},{name:"UUID",pattern:f.regExUUID},{name:"href",pattern:f.regExHRef},{name:"SpellCheckerDisableBlock",pattern:f.regExSpellingGuardBlock},{name:"SpellCheckerDisableLine",pattern:f.regExSpellingGuardLine},{name:"SpellCheckerDisableNext",pattern:f.regExSpellingGuardNext},{name:"SpellCheckerIgnoreInDocSetting",pattern:f.regExIgnoreSpellingDirectives},{name:"PhpHereDoc",pattern:f.regExPhpHereDoc},{name:"string",pattern:f.regExString},{name:"CStyleComment",pattern:f.regExCStyleComments},{name:"Everything",pattern:".*"}];t._defaultSettings=Object.freeze((0,s.createCSpellSettingsInternal)({id:"static_defaults",language:"en",name:"Static Defaults",enabled:!0,enabledLanguageIds:["ada","csharp","go","javascript","javascriptreact","json","markdown","mdx","php","plaintext","python","text","typescript","typescriptreact","haskell","html","css","less","scss","latex","ruby","rust","shellscript","toml"],maxNumberOfProblems:100,numSuggestions:10,suggestionsTimeout:500,suggestionNumChanges:3,words:[],userWords:[],ignorePaths:[],allowCompoundWords:!1,patterns:h,ignoreRegExpList:["SpellCheckerDisable","SpellCheckerIgnoreInDocSetting","Urls","Email","RsaCert","SshRsa","Base64MultiLine","Base64SingleLine","CommitHash","CommitHashLink","CStyleHexValue","CSSHexValue","SHA","HashStrings","UnicodeRef","UUID"],languageSettings:l.getDefaultLanguageSettings(),source:{name:"defaultSettings"},reporters:[]}));const g=function(){let e;return function(){if(!e){const n=(0,c.readSettings)(d);e=(0,u.mergeSettings)(t._defaultSettings,n),void 0!==n.name?e.name=n.name:delete e.name}return e}}();t.getDefaultSettings=function(){return g()}},84914:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDictionaryReferenceCollection=void 0,t.createDictionaryReferenceCollection=function(e){return new n(e)};class n{constructor(e){this.dictionaries=e,this.collection=function(e){const t=e.map(r).map(i),n={};for(const e of t)n[e.name]=Math.max(e.weight,n[e.name]||0);return n}(e)}isEnabled(e){const t=this.collection[e];return void 0===t?void 0:!!(1&t)}isBlocked(e){const t=this.collection[e];return void 0===t?void 0:!(1&t)}enabled(){return this.dictionaryIds.filter((e=>this.isEnabled(e)))}blocked(){return this.dictionaryIds.filter((e=>this.isBlocked(e)))}get dictionaryIds(){return Object.keys(this.collection)}}function r(e){return e.normalize().trim()}function i(e){const t=e.replace(/^!+/,""),n=e.length-t.length+1;return{name:t.trim(),weight:n}}},30384:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.isDictionaryDefinitionInternal=t.calcDictionaryDefsToLoad=t.isDictionaryDefinitionWithSource=t.mapDictDefToInternal=t.mapDictDefsToInternal=t.filterDictDefsToLoad=void 0;const s=o(n(71017)),a=n(21089),c=n(84914),u=n(3777),l=n(70303);function f(e,t){const n=t.filter((({name:t})=>e.isEnabled(t))).map(d);return[...new Map(n.map((e=>[e.name,e]))).values()]}function d(e){if(e instanceof g)return e;const{path:t="",file:n=""}=e,r=t||n?s.join(t,n):"";return{...e,file:void 0,path:r}}function p(e,t){if(h(e)){if(e.__source!==t)throw new Error("Trying to normalize a dictionary definition with a different source.");return e}return new g(e,t)}function h(e){return e instanceof g}t.filterDictDefsToLoad=f,t.mapDictDefsToInternal=function(e,t){return null==e?void 0:e.map((e=>p(e,t)))},t.mapDictDefToInternal=p,t.isDictionaryDefinitionWithSource=h,t.calcDictionaryDefsToLoad=function(e){const{dictionaries:t=[],dictionaryDefinitions:n=[],noSuggestDictionaries:r=[]}=e,i=(0,c.createDictionaryReferenceCollection)(r);return f((0,c.createDictionaryReferenceCollection)(t.concat(i.enabled())),n.map((e=>{const t=i.isEnabled(e.name);return void 0===t?e:{...e,noSuggest:t}})))},t.isDictionaryDefinitionInternal=function(e){return e instanceof g};class g{constructor(e,t){this.__source=t;const n=e,{path:r="",file:i="",addWords:o,description:c,dictionaryInformation:f,type:d,repMap:p,noSuggest:h,scope:g,useCompounds:m}=n,y=s.dirname(t),v=s.join(r,i);var b;const S={name:(b=v,e.name||s.basename(b)),file:void 0,path:(0,a.resolveFile)(v,y).filename,addWords:o,description:c,dictionaryInformation:f,type:d,repMap:p,noSuggest:h,scope:g,useCompounds:m};Object.assign(this,(0,l.clean)(S)),this.name=S.name,this.file=S.file,this.path=S.path,this._weightMap=this.dictionaryInformation?(0,u.mapDictionaryInformationToWeightMap)(this.dictionaryInformation):void 0}get weightMap(){return this._weightMap}}},27e3:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getGlobalConfigPath=t.writeRawGlobalSettings=t.getRawGlobalSettings=void 0;const i=r(n(62494)),o=n(73837),s=n(32196),a=n(94542),c="cspell";t.getRawGlobalSettings=function(){const e="CSpell Configstore",t={source:{name:e,filename:void 0}};try{const n=new i.default(c),r=n.all;r&&Object.keys(r).length&&(Object.assign(t,r),t.source={name:e,filename:n.path})}catch(e){(0,s.isErrnoException)(e)&&e.code&&["ENOENT","EACCES","ENOTDIR","EISDIR"].includes(e.code)||(0,a.logError)(e)}return t},t.writeRawGlobalSettings=function(e){const t={import:e.import};try{return void new i.default(c).set(t)}catch(e){return e instanceof Error?e:new Error((0,o.format)(e))}},t.getGlobalConfigPath=function(){return new i.default(c).path}},42219:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImportError=void 0;const r=n(32196);class i extends Error{constructor(e,t){super(e),this.cause=(0,r.isError)(t)?t:void 0}}t.ImportError=i},88664:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.internal=t.getIgnoreRegExpFromDocument=t.getIgnoreWordsFromDocument=t.getInDocumentSettings=void 0;const s=n(80915),a=o(n(96734)),c=n(70303),u=n(11830),l=/\/.*\/[gimuy]*/,f=[/(?:spell-?checker|c?spell)::?(.*)/gi,/(LocalWords:?.*)/g],d=[];function p(e){return w(e).concatMap((e=>function(e){const[,t=""]=e,n=t.trim();return[[/^(?:enable|disable)(?:allow)?CompoundWords/i,h],[/^(?:enable|disable)CaseSensitive/i,g],[/^words?\s/i,m],[/^ignore(?:words?)?\s/i,v],[/^ignore_?Reg_?Exp\s+.+$/i,S],[/^include_?Reg_?Exp\s+.+$/i,E],[/^locale?\s/i,y],[/^language\s/i,y],[/^dictionaries\s/i,x],[/^LocalWords:/,e=>m(e.replace(/LocalWords:?/gi," "))]].filter((([e])=>e.test(n))).map((([,e])=>e)).map((e=>e(n)))}(e))).reduce(((e,t)=>(0,u.mergeInDocSettings)(e,t)),{id:"in-doc-settings"})}function h(e){return{id:"in-doc-allowCompoundWords",allowCompoundWords:/enable/i.test(e)}}function g(e){return{id:"in-doc-caseSensitive",caseSensitive:/enable/i.test(e)}}function m(e){return{id:"in-doc-words",words:e.split(/[,\s]+/g).slice(1)}}function y(e){const t=e.trim().split(/[\s,]+/).slice(1).join(",");return t?{id:"in-doc-local",language:t}:{}}function v(e){const t=m(e);return(0,c.clean)({id:"in-doc-ignore",ignoreWords:t.words})}function b(e){return[e.replace(/^[^\s]+\s+/,"")].map((e=>{const t=e.match(l);return t&&t[0]?t[0]:e.replace(/((?:[^\s]|\\ )+).*/,"$1")}))}function S(e){return{id:"in-doc-ignoreRegExp",ignoreRegExpList:b(e)}}function E(e){return{id:"in-doc-includeRegExp",includeRegExpList:b(e)}}function x(e){return{id:"in-doc-dictionaries",dictionaries:e.split(/[,\s]+/g).slice(1)}}function w(e){return(0,s.genSequence)(f).concatMap((t=>a.match(t,e)))}Object.freeze(d),t.getInDocumentSettings=p,t.getIgnoreWordsFromDocument=function(e){const{ignoreWords:t=d}=p(e);return t},t.getIgnoreRegExpFromDocument=function(e){const{ignoreRegExpList:t=[]}=p(e);return t},t.internal={getPossibleInDocSettings:w,getWordsFromDocument:function(e){const{words:t=d}=p(e);return t},parseWords:m,parseCompoundWords:h,parseIgnoreRegExp:S,parseIgnoreWords:v}},60091:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.calcSettingsForLanguageId=t.calcUserSettingsForLanguage=t.calcSettingsForLanguage=t.isLocaleInSet=t.normalizeLocale=t.normalizeLanguageId=t.getDefaultLanguageSettings=void 0;const s=n(53240),a=n(70303),c=o(n(11830)),u="en",l=[];function f(e){return e.replace(/[|;]/g,",").split(",").map((e=>e.trim())).filter((e=>!!e))}t.getDefaultLanguageSettings=function(){return l};const d=(0,s.memorizerAll)((function(e){const t=f(e);return new Set(t.map((e=>e.toLowerCase())))}));function p(e){return d("string"==typeof e?e:e.join(","))}t.normalizeLanguageId=p;const h=(0,s.memorizerAll)((function(e){const t=function(e){return f(e.replace(/\s+/g,","))}(e);return new Set(t.map((e=>e.toLowerCase().replace(/[^a-z]/g,""))))}));function g(e){return e="string"==typeof e?e:e.join(","),h(e)}function m(e,t){const n=g(e);return(0,a.doSetsIntersect)(n,t)}function y(e,t,n){t=t.toLowerCase();const r=g(n),i=e.filter((e=>function(e,t){var n;const r=null!==(n=v.get(e))&&void 0!==n?n:new Map,i=r.get(t);if(void 0!==i)return i;const o=function(e,t){const n=e.languageId;if(!n||"*"===n)return!0;const r=p(n);return!!r.has(t)||!r.has("!"+t)&&[...r].filter((e=>e.startsWith("!"))).length===r.size}(e,t);return r.set(t,o),v.set(e,r),o}(e,t))).filter((e=>!e.locale||"*"===e.locale||m(e.locale,r))).map((e=>{const{languageId:t,locale:n,...r}=e;return r})).reduce(((e,t)=>c.mergeSettings(e,t)),{});return i.languageId=t,i.locale=n,i}t.normalizeLocale=g,t.isLocaleInSet=m,t.calcSettingsForLanguage=y;const v=new WeakMap;function b(e,t){const{languageSettings:n=[],language:r=u,allowCompoundWords:i,enabled:o}=e,s={allowCompoundWords:i,enabled:o,...y(n,t,r)};return c.mergeSettings(e,s)}t.calcUserSettingsForLanguage=b,t.calcSettingsForLanguageId=function(e,t){return["*"].concat(t instanceof Array?t:[t]).reduce(((e,t)=>b(e,t)),e)}},55948:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.regExHashStrings=t.regExSha=t.regExRepeatedChar=t.regExEmail=t.rexExPythonStyleComments=t.regExCStyleComments=t.regExString=t.regExPhpHereDoc=t.regExBase64MultiLine=t.regExBase64SingleLine=t.regExBase64=t.regExEscapeCharacters=t.regExSshRSA=t.regExCert=t.regExPublicKey=t.regExIgnoreSpellingDirectives=t.regExSpellingGuardLine=t.regExSpellingGuardNext=t.regExSpellingGuardBlock=t.regExUnicodeRef=t.regExUUID=t.regExCSSHexValue=t.regExCStyleHexValue=t.regExCommitHashLink=t.regExCommitHash=t.regExMatchCommonHexFormats=t.regExHRef=t.regExMatchUrls=void 0,t.regExMatchUrls=/(?:https?|ftp):\/\/[^\s"]+/gi,t.regExHRef=/\bhref\s*=\s*".*?"/gi,t.regExMatchCommonHexFormats=/(?:#[0-9a-f]{3,8})|(?:0x[0-9a-f]+)|(?:\\u[0-9a-f]{4})|(?:\\x\{[0-9a-f]{4}\})/gi,t.regExCommitHash=/\b(?![a-f]+\b)(?:0x)?[0-9a-f]{7,}\b/gi,t.regExCommitHashLink=/\[[0-9a-f]{7,}\]/gi,t.regExCStyleHexValue=/\b0x[0-9a-f]+\b/gi,t.regExCSSHexValue=/#[0-9a-f]{3,8}\b/gi,t.regExUUID=/\b[0-9a-fx]{8}-[0-9a-fx]{4}-[0-9a-fx]{4}-[0-9a-fx]{4}-[0-9a-fx]{12}\b/gi,t.regExUnicodeRef=/\bU\+[0-9a-f]{4,5}(?:-[0-9a-f]{4,5})?/gi,t.regExSpellingGuardBlock=/(\bc?spell(?:-?checker)?::?)\s*disable(?!-line|-next)\b[\s\S]*?((?:\1\s*enable\b)|$)/gi,t.regExSpellingGuardNext=/\bc?spell(?:-?checker)?::?\s*disable-next\b.*\s\s?.*/gi,t.regExSpellingGuardLine=/^.*\bc?spell(?:-?checker)?::?\s*disable-line\b.*/gim,t.regExIgnoreSpellingDirectives=/\bc?spell(?:-?checker)?::?\s*ignoreRegExp.*/gim,t.regExPublicKey=/-{5}BEGIN\s+((?:RSA\s+)?PUBLIC\s+KEY)[\w=+\-/=\\\s]+?END\s+\1-{5}/g,t.regExCert=/-{5}BEGIN\s+(CERTIFICATE|(?:RSA\s+)?(?:PRIVATE|PUBLIC)\s+KEY)[\w=+\-/=\\\s]+?END\s+\1-{5}/g,t.regExSshRSA=/ssh-rsa\s+[a-z0-9/+]{28,}={0,3}(?![a-z0-9/+=])/gi,t.regExEscapeCharacters=/\\(?:[anrvtbf]|[xu][a-f0-9]+)/gi,t.regExBase64=/(??/gi,t.regExRepeatedChar=/^(\w)\1{3,}$/i,t.regExSha=/\bsha\d+-[a-z0-9+/]{25,}={0,3}/gi,t.regExHashStrings=/(?:\b(?:sha\d+|md5|base64|crypt|bcrypt|scrypt|security-token|assertion)[-,:$=]|#code[/])[-\w/+%.]{25,}={0,3}(?:(['"])\s*\+?\s*\1?[-\w/+%.]+={0,3})*(?![-\w/+=%.])/gi},62095:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.extractSettingsFromText=t.combineTextAndLanguageSettings=void 0;const s=o(n(11830)),a=n(88664),c=n(60091);function u(e){return(0,a.getInDocumentSettings)(e)}t.combineTextAndLanguageSettings=function(e,t,n){const r=u(t),i=s.mergeSettings(e,r),o=(0,c.calcSettingsForLanguageId)(i,n);return s.mergeSettings(o,r)},t.extractSettingsFromText=u},27464:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.__testing__=t.extractImportErrors=t.clearCachedSettingsFiles=t.getCachedFileSize=t.getGlobalSettings=t.readSettingsFiles=t.readRawSettings=t.loadPnPSync=t.loadPnP=t.loadConfigSync=t.loadConfig=t.searchForConfigSync=t.searchForConfig=t.readSettings=t.defaultConfigFilenames=t.defaultFileName=t.sectionCSpell=void 0;const s=o(n(56724)),a=n(75274),c=o(n(71017)),u=n(70355),l=n(85215),f=n(94542),d=n(21089),p=o(n(70303)),h=n(11830),g=n(30384),m=n(27e3),y=n(42219),v=n(9531),b=[h.configSettingsFileVersion0_2],S=new Set(b);t.sectionCSpell="cSpell",t.defaultFileName="cspell.json";const E=["package.json",".cspell.json","cspell.json",".cSpell.json","cSpell.json",".cspell.jsonc","cspell.jsonc",".vscode/cspell.json",".vscode/cSpell.json",".vscode/.cspell.json","cspell.config.json","cspell.config.jsonc","cspell.config.yaml","cspell.config.yml","cspell.yaml","cspell.yml","cspell.config.js","cspell.config.cjs"],x={searchPlaces:E,loaders:{".json":w,".jsonc":w}};function w(e,t){return s.parse(t)}t.defaultConfigFilenames=Object.freeze(E.concat());const _=(0,a.cosmiconfig)("cspell",x),O=(0,a.cosmiconfigSync)("cspell",x);let C;const D=(0,l.createCSpellSettingsInternal)({id:"default",name:"default",version:h.currentSettingsFileVersion}),A={},P=new Map;function T(e){const{filename:t}=e,n={};try{const i=O.load(t);if(!(null==i?void 0:i.config))throw new Error(`not found: "${t}"`);Object.assign(n,i.config),"number"==typeof(r=n).version&&(r.version=r.version.toString()),function(e,t){[K,H].forEach((n=>n(e,t)))}(n,e)}catch(n){e.error=n instanceof y.ImportError?n:new y.ImportError(`Failed to read config file: "${t}"`,n)}var r;return n.__importRef=e,n}function R(e,t,n){const r=e.id||[c.basename(c.dirname(t)),c.basename(t)].join("/"),i=e.name||r,{usePnP:o=n.usePnP,pnpFiles:s=n.pnpFiles}=e,a={usePnP:o,pnpFiles:s},f=c.dirname(t);I(a,u.URI.file(f));const g={version:D.version,...e,id:r,name:i,globRoot:B(e,t),languageSettings:$(e.languageSettings)},m=c.dirname(t),y=q(g,t),v=function(e,t){const{globRoot:n}=e;return void 0===e.ignorePaths?{}:{ignorePaths:U(e.ignorePaths,n,t)}}(g,t),b=function(e,t){var n;const{globRoot:r=c.dirname(t)}=e,i=null===(n=e.overrides)||void 0===n?void 0:n.map((e=>{const n=U(e.filename,r,t),{dictionaryDefinitions:i,languageSettings:o}=q(e,t);return p.clean({...e,filename:n,dictionaryDefinitions:i,languageSettings:$(o)})}));return i?{overrides:i}:{}}(g,t),S=function(e,t){if(void 0===e.reporters)return{};const n=c.dirname(t);function r(e){const t=(0,d.resolveFile)(e,n);if(!t.found)throw new Error(`Not found: "${e}"`);return t.filename}return{reporters:e.reporters.map((function(e){if("string"==typeof e)return r(e);if(!Array.isArray(e)||"string"!=typeof e[0])throw new Error("Invalid Reporter");const[t,...n]=e;return[r(t),...n]}))}}(g,t),E=function(e,t){const{gitignoreRoot:n}=e;if(!n)return{};const r=c.dirname(t);return{gitignoreRoot:(Array.isArray(n)?n:[n]).map((e=>c.resolve(r,e)))}}(g,t),x=z(g,f),w="string"==typeof g.import?[g.import]:g.import||[],_=g.source||{name:g.name,filename:t},O=(0,l.createCSpellSettingsInternal)({...g,source:_,...y,...v,...b,...S,...E,...x});if(!w.length)return O;const C=w.map((e=>N(e,m))).map((e=>(e.referencedBy=[_],e))).map((e=>k(e,void 0,a))).reduce(((e,t)=>(0,h.mergeSettings)(e,t))),A=(0,h.mergeSettings)(C,O);return A.name=g.name||A.name||"",A.id=g.id||A.id||"",A}function k(e,t,n){t=null!=t?t:D;let{filename:r}=e;r=c.resolve(r);const i={...e,filename:r},o=P.get(r);if(o){const e=o.__importRef||i;return e.referencedBy=function(e,t){const n=new Map(e.map((e=>[e.name+(e.filename||""),e])));for(const e of t||[]){const t=e.name+(e.filename||"");n.has(t)||n.set(t,e)}return[...n.values()]}(e.referencedBy||[],i.referencedBy),o.__importRef=e,o}const s=[c.basename(c.dirname(r)),c.basename(r)].join("/"),a=s,u=(0,l.createCSpellSettingsInternal)({id:s,name:a,__importRef:i});P.set(r,u);const f={...t,id:s,name:a,...T(i)};Object.assign(u,R(f,r,n));const d={name:c.basename(r),...u.source};return u.source={...d,filename:r},P.set(r,u),u}function F(e,t,n){return n=n||("string"!=typeof t?t:void 0),k(N(e,"string"==typeof t?t:process.cwd()),n,n||A)}async function M(e,t,n){let r;try{r=await t||void 0}catch(t){r=new y.ImportError(`Failed to find config file at: "${e}"`,t)}return j(e,r,n)}function j(e,t,n){var r;const i=t instanceof y.ImportError?t:void 0,o=t instanceof y.ImportError?void 0:t,s=null==o?void 0:o.filepath;if(s){const e=P.get(s);if(e)return{config:e,filepath:s,error:i}}const{config:a=(0,l.createCSpellSettingsInternal)({})}=o||{},u=null!==(r=null==o?void 0:o.filepath)&&void 0!==r?r:e,f={filename:u,error:i},d=[c.basename(c.dirname(u)),c.basename(u)].join("/"),p=(null==o?void 0:o.filepath)?d:`Config not found: ${d}`,h=(0,l.createCSpellSettingsInternal)({id:d,name:p,__importRef:f}),g={id:d,...a};return P.set(u,h),Object.assign(h,R(g,u,n)),{config:h,filepath:s,error:i}}function I(e,t){if(e.usePnP)return(0,v.pnpLoader)(e.pnpFiles).loadSync(t)}function N(e,t){const n=(0,d.resolveFile)(e,t);return{filename:n.filename,error:n.found?void 0:new Error(`Failed to resolve file: "${e}"`)}}function L(e){return!!e.error}function B(e,t){var n;const r=c.dirname(t),i=".vscode"===c.basename(r),o=i?c.dirname(r):r,s=process.env[h.ENV_CSPELL_GLOB_ROOT],a=null!=s?s:"${cwd}",u=null!==(n=e.globRoot)&&void 0!==n?n:e.version===h.configSettingsFileVersion0_1||s&&!e.version||i&&!e.version?a:o;return u.startsWith("${cwd}")?u:c.resolve(o,u)}function W(e,t){const n=process.cwd();return c.resolve(t,e.replace("${cwd}",n))}function U(e,t,n){if(void 0!==e){if(Array.isArray(e))return e.map((e=>U(e,t,n)));if("string"==typeof e){const r={glob:e};return void 0!==t&&(r.root=t),U(r,t,n)}return n?{...e,source:n}:e}}function q(e,t){var n;const r=(0,g.mapDictDefsToInternal)(e.dictionaryDefinitions,t),i=null===(n=e.languageSettings)||void 0===n?void 0:n.map((e=>p.clean({...e,dictionaryDefinitions:(0,g.mapDictDefsToInternal)(e.dictionaryDefinitions,t)})));return p.clean({dictionaryDefinitions:r,languageSettings:i})}function $(e){if(e)return e.map((function(e){const{local:t,...n}=e;return p.clean({locale:t,...n})}))}function z(e,t){const{cache:n}=e;if(void 0===n)return{};const{cacheLocation:r}=n;return void 0===r?{cache:n}:{cache:{...n,cacheLocation:W(r,t)}}}function G(e,t){return e+`\n File: "${t.filename}"`}function H(e,t){const{version:n}=e;if(void 0===n)return;if("string"!=typeof n)return void(0,f.logError)(G(`Unsupported config file version: "${n}", string expected`,t));if(S.has(n))return;if(!/^\d+(\.\d+)*$/.test(n))return void(0,f.logError)(G(`Unsupported config file version: "${n}"`,t));const r=n>h.currentSettingsFileVersion?`Newer config file version found: "${n}". Supported version is "${h.currentSettingsFileVersion}"`:`Legacy config file version found: "${n}", upgrade to "${h.currentSettingsFileVersion}"`;(0,f.logWarning)(G(r,t))}function K(e,t){if(e.default)throw new y.ImportError(G("Module `export default` is not supported.\n Use `module.exports =` instead.",t))}t.readSettings=F,t.searchForConfig=function(e,t=A){return M(e||process.cwd(),_.search(e),t).then((e=>e.filepath?e.config:void 0))},t.searchForConfigSync=function(e,t=A){let n;try{n=O.search(e)||void 0}catch(t){n=new y.ImportError(`Failed to find config file from: "${e}"`,t)}return j(e||process.cwd(),n,t).config},t.loadConfig=function(e,t=A){const n=P.get(c.resolve(e));return n?Promise.resolve(n):M(e,_.load(e),t).then((e=>e.config))},t.loadConfigSync=function(e,t=A){const n=P.get(c.resolve(e));if(n)return n;let r;try{r=O.load(e)||void 0}catch(t){r=new y.ImportError(`Failed to find config file at: "${e}"`,t)}return j(e,r,t).config},t.loadPnP=function(e,t){return e.usePnP?(0,v.pnpLoader)(e.pnpFiles).load(t):Promise.resolve(void 0)},t.loadPnPSync=I,t.readRawSettings=function(e,t){return T(N(e,t=t||process.cwd()))},t.readSettingsFiles=function(e){return e.map((e=>F(e))).reduce(((e,t)=>(0,h.mergeSettings)(e,t)),D)},t.getGlobalSettings=function(){if(!C){const e=(0,m.getRawGlobalSettings)();C={id:"global_config",...R(e||{},"./global_config",{})}}return C},t.getCachedFileSize=function(){return P.size},t.clearCachedSettingsFiles=function(){C=void 0,P.clear(),_.clearCaches(),O.clearCaches()},t.extractImportErrors=function(e){const t=function(e,t={}){var n;const r=new Map(e.__imports||[]);e.__importRef&&r.set(e.__importRef.filename,e.__importRef),t.__importRef&&r.set(t.__importRef.filename,t.__importRef);const i=(null===(n=t.__imports)||void 0===n?void 0:n.values())||[];for(const e of i)r.set(e.filename,e);return r.size?r:void 0}(e);return t?[...t.values()].filter(L):[]},t.__testing__={normalizeCacheSettings:z,normalizeSettings:R,validateRawConfigExports:K,validateRawConfigVersion:H}},5124:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImportError=t.getDefaultSettings=t.mergeSettings=t.mergeInDocSettings=t.getSources=t.finalizeSettings=t.extractDependencies=t.ENV_CSPELL_GLOB_ROOT=t.currentSettingsFileVersion=t.checkFilenameMatchesGlob=t.calcOverrideSettings=t.sectionCSpell=t.searchForConfig=t.readSettingsFiles=t.readSettings=t.readRawSettings=t.loadPnPSync=t.loadPnP=t.loadConfig=t.getGlobalSettings=t.getCachedFileSize=t.extractImportErrors=t.defaultFileName=t.defaultConfigFilenames=t.clearCachedSettingsFiles=void 0;var r=n(27464);Object.defineProperty(t,"clearCachedSettingsFiles",{enumerable:!0,get:function(){return r.clearCachedSettingsFiles}}),Object.defineProperty(t,"defaultConfigFilenames",{enumerable:!0,get:function(){return r.defaultConfigFilenames}}),Object.defineProperty(t,"defaultFileName",{enumerable:!0,get:function(){return r.defaultFileName}}),Object.defineProperty(t,"extractImportErrors",{enumerable:!0,get:function(){return r.extractImportErrors}}),Object.defineProperty(t,"getCachedFileSize",{enumerable:!0,get:function(){return r.getCachedFileSize}}),Object.defineProperty(t,"getGlobalSettings",{enumerable:!0,get:function(){return r.getGlobalSettings}}),Object.defineProperty(t,"loadConfig",{enumerable:!0,get:function(){return r.loadConfig}}),Object.defineProperty(t,"loadPnP",{enumerable:!0,get:function(){return r.loadPnP}}),Object.defineProperty(t,"loadPnPSync",{enumerable:!0,get:function(){return r.loadPnPSync}}),Object.defineProperty(t,"readRawSettings",{enumerable:!0,get:function(){return r.readRawSettings}}),Object.defineProperty(t,"readSettings",{enumerable:!0,get:function(){return r.readSettings}}),Object.defineProperty(t,"readSettingsFiles",{enumerable:!0,get:function(){return r.readSettingsFiles}}),Object.defineProperty(t,"searchForConfig",{enumerable:!0,get:function(){return r.searchForConfig}}),Object.defineProperty(t,"sectionCSpell",{enumerable:!0,get:function(){return r.sectionCSpell}});var i=n(11830);Object.defineProperty(t,"calcOverrideSettings",{enumerable:!0,get:function(){return i.calcOverrideSettings}}),Object.defineProperty(t,"checkFilenameMatchesGlob",{enumerable:!0,get:function(){return i.checkFilenameMatchesGlob}}),Object.defineProperty(t,"currentSettingsFileVersion",{enumerable:!0,get:function(){return i.currentSettingsFileVersion}}),Object.defineProperty(t,"ENV_CSPELL_GLOB_ROOT",{enumerable:!0,get:function(){return i.ENV_CSPELL_GLOB_ROOT}}),Object.defineProperty(t,"extractDependencies",{enumerable:!0,get:function(){return i.extractDependencies}}),Object.defineProperty(t,"finalizeSettings",{enumerable:!0,get:function(){return i.finalizeSettings}}),Object.defineProperty(t,"getSources",{enumerable:!0,get:function(){return i.getSources}}),Object.defineProperty(t,"mergeInDocSettings",{enumerable:!0,get:function(){return i.mergeInDocSettings}}),Object.defineProperty(t,"mergeSettings",{enumerable:!0,get:function(){return i.mergeSettings}});var o=n(62155);Object.defineProperty(t,"getDefaultSettings",{enumerable:!0,get:function(){return o.getDefaultSettings}});var s=n(42219);Object.defineProperty(t,"ImportError",{enumerable:!0,get:function(){return s.ImportError}})},86982:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removePathsFromGlobalImports=t.listGlobalImports=t.addPathsToGlobalImports=void 0;var r=n(37210);Object.defineProperty(t,"addPathsToGlobalImports",{enumerable:!0,get:function(){return r.addPathsToGlobalImports}}),Object.defineProperty(t,"listGlobalImports",{enumerable:!0,get:function(){return r.listGlobalImports}}),Object.defineProperty(t,"removePathsFromGlobalImports",{enumerable:!0,get:function(){return r.removePathsFromGlobalImports}})},37210:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.__testing__=t.removePathsFromGlobalImports=t.addPathsToGlobalImports=t.listGlobalImports=void 0;const s=o(n(57147)),a=o(n(71017)),c=n(70303),u=n(27464),l=n(27e3);function f(){const e=(0,l.getRawGlobalSettings)();return{list:g(e).map((({filename:e,settings:t,error:n})=>({filename:e,error:n,id:t.id,name:t.name,dictionaryDefinitions:t.dictionaryDefinitions,languageSettings:t.languageSettings,package:m(a.dirname(e))}))),globalSettings:e}}function d(e){return void 0!==e}function p(e){var t;const n=(0,u.readRawSettings)(e),r=n.__importRef,i=null==r?void 0:r.filename,o=(null===(t=null==r?void 0:r.error)||void 0===t?void 0:t.message)||!i&&"File not Found"||void 0;return(0,c.clean)({filename:e,resolvedToFilename:i,error:o,settings:n})}function h(e){return"string"==typeof e?[e]:e||[]}function g(e){return h(e.import).map(p)}function m(e){try{const t=a.join(e,"package.json");return{filename:t,name:JSON.parse(s.readFileSync(t,"utf8")).name}}catch(e){return}}t.listGlobalImports=f,t.addPathsToGlobalImports=function(e){const t=e.map(p);if(t.filter((e=>!!e.error)).length>0)return{success:!1,resolvedSettings:t,error:"Unable to resolve files."};const n=g((0,l.getRawGlobalSettings)()),r=new Set(n.map((e=>e.resolvedToFilename||e.filename)));t.map((e=>e.resolvedToFilename)).filter(d).reduce(((e,t)=>e.add(t)),r);const i={import:[...r]},o=(0,l.writeRawGlobalSettings)(i);return{success:!o,error:null==o?void 0:o.message,resolvedSettings:t}},t.removePathsFromGlobalImports=function(e){const t=f(),n=new Set;e.map((e=>e.trim())).filter((e=>!!e)).forEach((e=>{const r=function(e){return({package:t,id:n})=>e===(null==t?void 0:t.name)||e===n}(e),i=function(e){return"."!=a.dirname(e)?({filename:t})=>function(e,t){if(e===t)return!0;if(!e.endsWith(t))return!1;const n=e[e.length-t.length-1];return n===a.sep||n===a.posix.sep}(t,e):()=>!1}(e),o=e=>r(e)||i(e);for(const e of t.list)o(e)&&n.add(e.filename)}));const r={import:h(t.globalSettings.import).filter((e=>!n.has(e)))},i=n.size>0?(0,l.writeRawGlobalSettings)(r):void 0;return{success:!0,removed:[...n],error:null==i?void 0:i.toString()}},t.__testing__={findPackageForCSpellConfig:m}},15661:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolvePatterns=void 0;const r=n(96734),i=n(70303);function o(e){return e instanceof RegExp?new RegExp(e):(0,r.stringToRegExp)(e,"gim","g")}t.resolvePatterns=function(e=[],t=[]){const n=new Map(t.map((e=>[e.name.toLowerCase(),e.pattern]))),r=new Set;function s(e){if(!r.has(e))return r.add(e),n.get(e.toString().toLowerCase())||e}return[...function*e(t){for(const n of t)Array.isArray(n)?yield*e(n.map(s).filter(i.isDefined)):yield n}(e.map(s).filter(i.isDefined))].map(o).filter(i.isDefined)}},9531:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.clearPnPGlobalCache=t.UnsupportedPnpFile=t.UnsupportedSchema=t.pnpLoader=t.PnpLoader=void 0;const i=n(70355),o=r(n(13303)),s=r(n(35616)),a=r(n(6387)),c=[".pnp.cjs",".pnp.js"],u=new Set(["file"]),l=new Map;let f;const d=new Map,p=new Map;class h{constructor(e=c){this.pnpFiles=e,this.cacheKeySuffix=":"+e.join()}async load(e){await f;const t=this.calcKey(e),n=l.get(t);if(n)return n;const r=async function(e,t){return v(e),y(await(0,s.default)(t,{cwd:e.fsPath}))}(e,this.pnpFiles);l.set(t,r);const i=await r;return p.set(t,i),i}async peek(e){var t;await f;const n=this.calcKey(e);return null!==(t=l.get(n))&&void 0!==t?t:Promise.resolve(void 0)}loadSync(e){const t=this.calcKey(e),n=p.get(t);if(n)return n;const r=function(e,t){return v(e),y(s.default.sync(t,{cwd:e.fsPath}))}(e,this.pnpFiles);return p.set(t,r),l.set(t,Promise.resolve(r)),r}peekSync(e){const t=this.calcKey(e);return p.get(t)}clearCache(){return b()}calcKey(e){return e.toString()+this.cacheKeySuffix}}t.PnpLoader=h,t.pnpLoader=function(e){return new h(e)};class g extends Error{constructor(e){super(e)}}t.UnsupportedSchema=g;class m extends Error{constructor(e){super(e)}}function y(e){if(!e)return;const t=d.get(e);if(t||d.has(e))return t;const n=function(e){const t=(0,o.default)(e);if(t.setup)return t.setup(),i.URI.file(e);throw new m(`Unsupported pnp file: "${e}"`)}(e);return d.set(e,n),n}function v(e){if(!u.has(e.scheme))throw new g(`Unsupported schema for PNP: "${e.scheme}"`);return!0}function b(){return f||(f=async function(){return await Promise.all([...l.values()].map(S)),[...d.values()].forEach((e=>e&&a.default.single(e.fsPath))),l.clear(),p.clear(),void d.clear()}().finally((()=>{f=void 0})),f)}function S(e){return e.catch((()=>{}))}t.UnsupportedPnpFile=m,t.clearPnPGlobalCache=b},75912:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDictionaryInternalSync=t.getDictionaryInternal=t.refreshDictionaryCache=t.loadDictionaryDefsSync=t.loadDictionaryDefs=void 0;const r=n(30384),i=n(70303),o=n(90913),s=n(58544),a=n(93539);function c(e){return e.map(s.loadDictionary)}function u(e){return e.map(s.loadDictionarySync)}t.loadDictionaryDefs=c,t.loadDictionaryDefsSync=u,t.refreshDictionaryCache=function(e){return(0,s.refreshCacheEntries)(e)};const l=Object.freeze([]);function f(e,t){const{words:n=l,userWords:r=l,flagWords:s=l,ignoreWords:c=l}=e,u=[...t,(0,o.createSpellingDictionary)(n,"[words]","From Settings `words`",{caseSensitive:!0,weightMap:void 0}),r.length?(0,o.createSpellingDictionary)(r,"[userWords]","From Settings `userWords`",{caseSensitive:!0,weightMap:void 0}):void 0,(0,o.createSpellingDictionary)(c,"[ignoreWords]","From Settings `ignoreWords`",{caseSensitive:!0,noSuggest:!0,weightMap:void 0}),(0,o.createForbiddenWordsDictionary)(s,"[flagWords]","From Settings `flagWords`",{weightMap:void 0})].filter(i.isDefined);return(0,a.createCollection)(u,"dictionary collection")}t.getDictionaryInternal=async function(e){return f(e,await Promise.all(c((0,r.calcDictionaryDefsToLoad)(e))))},t.getDictionaryInternalSync=function(e){return f(e,u((0,r.calcDictionaryDefsToLoad)(e)))}},58544:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.__testing__=t.testing=t.refreshCacheEntries=t.loadDictionarySync=t.loadDictionary=void 0;const s=n(57147),a=n(80915),c=o(n(71017)),u=n(73837),l=n(32196),f=n(19775),d=n(90913),p=n(95980),h=n(35899),g={S:R,C:async function(e,t){return P(await(0,f.readLines)(e),e,t)},W:async function(e,t){return T(await(0,f.readLines)(e),e,t)},T:async function(e,t){const n=await(0,f.readLines)(e);return(0,h.createSpellingDictionaryTrie)(n,F(e,t),e,t)},default:R},m={S:k,C:function(e,t){return P((0,f.readLinesSync)(e),e,t)},W:function(e,t){return T((0,f.readLinesSync)(e),e,t)},T:function(e,t){const n=(0,f.readLinesSync)(e);return(0,h.createSpellingDictionaryTrie)(n,F(e,t),e,t)},default:k};var y;!function(e){e[e.Loaded=0]="Loaded",e[e.Loading=1]="Loading"}(y||(y={}));const v=new Map,b=new Map;function S(e){const t=b.get(e);if(t)return t;const n=w(e),r=v.get(n);return r&&(r.options=e),{key:n,entry:r}}function E(e,t,n){v.set(e,t),b.set(n,{key:e,entry:t})}t.loadDictionary=function(e){const{key:t,entry:n}=S(e);if(n)return n.pending.then((([e])=>e));const r=C(e.path,e);return E(t,r,e),r.pending.then((([e])=>e))},t.loadDictionarySync=function(e){const{key:t,entry:n}=S(e);if((null==n?void 0:n.dictionary)&&n.loadingState===y.Loaded)return n.dictionary;const r=function(e,t,n=Date.now()){const r=function(e){try{return(0,s.statSync)(e)}catch(e){return M(e)}}(e),i=n+Math.random();try{const o=function(e,t){const n=D(e,t);return(m[n]||g.default)(e,t)}(e,t);return{uri:e,options:t,ts:n,stat:r,dictionary:o,pending:Promise.resolve([o,r]),loadingState:y.Loaded,sig:i}}catch(o){const s=o instanceof Error?o:new Error((0,u.format)(o)),a=(0,d.createFailedToLoadDictionary)(new p.SpellingDictionaryLoadError(e,t,s,"failed to load"));return{uri:e,options:t,ts:n,stat:r,dictionary:a,pending:Promise.resolve([a,r]),loadingState:y.Loaded,sig:i}}}(e.path,e);return E(t,r,e),r.dictionary};const x=["name","noSuggest","useCompounds","type"];function w(e){const t=e.path,n=D(t,e),r=x.map((t=>{var n;return(null===(n=e[t])||void 0===n?void 0:n.toString())||""}));return[t,n].concat(r).join("|")}async function _(e,t,n){if(n-e.ts>=t){const t=n+Math.random();e.sig=t,e.ts=n;const o=j(e.uri),[s]=await Promise.all([o,e.pending]),a=(r=s,!((i=e.stat)&&(O(r)?O(i)&&r.message===i.message&&r.name===i.name:!O(i)&&(r.mtimeMs===i.mtimeMs||r.size===i.size))));if(e.sig===t&&a){e.loadingState=y.Loading;const t=w(e.options),n=C(e.uri,e.options);v.set(t,n),b.set(e.options,{key:t,entry:n})}}var r,i}function O(e){return!!e.message}function C(e,t,n=Date.now()){const r=A(e,t).catch((n=>(0,d.createFailedToLoadDictionary)(new p.SpellingDictionaryLoadError(e,t,n,"failed to load")))),i=j(e),o=Promise.all([r,i]),s=n+Math.random(),a={uri:e,options:t,ts:n,stat:void 0,dictionary:void 0,pending:o,loadingState:y.Loading,sig:s};return o.then((([e,t])=>{a.stat=t,a.dictionary=e,a.loadingState=y.Loaded})),a}function D(e,t){const n=t.type&&t.type in g&&t.type||"S",r=e.endsWith(".trie.gz")?"T":n;return/\.trie\b/i.test(e)?"T":r}function A(e,t){const n=D(e,t);return(g[n]||g.default)(e,t)}function P(e,t,n){const r=(0,a.genSequence)(e).map((e=>e.replace(/#.*/g,""))).concatMap((e=>e.split(/[^\w\p{L}\p{M}'’]+/gu))).filter((e=>!!e));return(0,d.createSpellingDictionary)(r,F(t,n),t,n)}function T(e,t,n){const r=(0,a.genSequence)(e).map((e=>e.replace(/#.*/g,""))).concatMap((e=>e.split(/\s+/gu))).filter((e=>!!e));return(0,d.createSpellingDictionary)(r,F(t,n),t,n)}async function R(e,t){const n=await(0,f.readLines)(e);return(0,d.createSpellingDictionary)(n,F(e,t),e,t)}function k(e,t){const n=(0,f.readLinesSync)(e);return(0,d.createSpellingDictionary)(n,F(e,t),e,t)}function F(e,t){return t.name||c.basename(e)}function M(e){return(0,l.isErrnoException)(e)||e instanceof Error?e:new Error((0,u.format)(e))}function j(e){return s.promises.stat(e).catch((e=>M(e)))}t.refreshCacheEntries=async function(e=1e4,t=Date.now()){await Promise.all([...v.values()].map((n=>_(n,e,t))))},t.testing={dictionaryCache:v,refreshEntry:_,loadEntry:C,load:A},t.__testing__={debugLog:[]}},33158:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompoundWordsMethod=void 0;var r=n(3777);Object.defineProperty(t,"CompoundWordsMethod",{enumerable:!0,get:function(){return r.CompoundWordsMethod}})},93539:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__testing__=t.createCollection=t.SpellingDictionaryCollection=void 0;const r=n(3777),i=n(80915),o=n(5124),s=n(53240),a=n(70303),c=n(33158),u=n(35899),l=n(67307);function f(e){return e}class d{constructor(e,t){this.dictionaries=e,this.name=t,this.options={weightMap:void 0},this.mapWord=f,this.type="SpellingDictionaryCollection",this._isForbiddenInDict=(0,s.memorizer)((e=>h(this.dictionaries,e)),u.SpellingDictionaryFromTrie.cachedWordsLimit),this._isNoSuggestWord=(0,s.memorizerKeyBy)(((e,t)=>!!this.containsNoSuggestWords&&!!function(e,t,n){return(0,i.genSequence)(e).first((e=>e.isNoSuggestWord(t,n)))}(this.dictionaries,e,t||{})),((e,t)=>{const n=(0,l.hasOptionToSearchOption)(t);return[e,n.useCompounds,n.ignoreCase].join()}),u.SpellingDictionaryFromTrie.cachedWordsLimit),this.dictionaries=this.dictionaries.sort(((e,t)=>t.size-e.size)),this.source=e.map((e=>e.name)).join(", "),this.isDictionaryCaseSensitive=this.dictionaries.reduce(((e,t)=>e||t.isDictionaryCaseSensitive),!1),this.containsNoSuggestWords=this.dictionaries.reduce(((e,t)=>e||t.containsNoSuggestWords),!1)}has(e,t){const n=(0,l.hasOptionToSearchOption)(t);return!!p(this.dictionaries,e,n)&&!this.isForbidden(e)}find(e,t){const n=(0,l.hasOptionToSearchOption)(t),{found:r=!1,forbidden:i=!1,noSuggest:o=!1}=function(e,t,n){const r=e.map((e=>e.find(t,n))).filter(a.isDefined);return r.length?r.reduce(((e,t)=>({found:e.forbidden?e.found:t.forbidden?t.found:e.found||t.found,forbidden:e.forbidden||t.forbidden,noSuggest:e.noSuggest||t.noSuggest}))):void 0}(this.dictionaries,e,n)||{};return{found:r,forbidden:i,noSuggest:o}}isNoSuggestWord(e,t){return this._isNoSuggestWord(e,t)}isForbidden(e){return!!this._isForbiddenInDict(e)&&!this.isNoSuggestWord(e)}suggest(...e){const[t]=e,n=(0,l.suggestArgsToSuggestOptions)(e);return this._suggest(t,n)}_suggest(e,t){const{numSuggestions:n=(0,o.getDefaultSettings)().numSuggestions||l.defaultNumSuggestions,numChanges:i,ignoreCase:s,includeTies:c,timeout:u}=t,f=r.CASE_INSENSITIVE_PREFIX,d=(0,l.suggestionCollector)(e,(0,a.clean)({numSuggestions:n,filter:(e,n)=>(s||e[0]!==f)&&!this.isForbidden(e)&&!this.isNoSuggestWord(e,t),changeLimit:i,includeTies:c,ignoreCase:s,timeout:u}));return this.genSuggestions(d,t),d.suggestions.map((e=>({...e,word:e.word})))}get size(){return this.dictionaries.reduce(((e,t)=>e+t.size),0)}genSuggestions(e,t){const n={...t},{compoundMethod:r=c.CompoundWordsMethod.SEPARATE_WORDS}=t;n.compoundMethod=this.options.useCompounds?c.CompoundWordsMethod.JOIN_WORDS:r,this.dictionaries.forEach((t=>t.genSuggestions(e,n)))}getErrors(){return this.dictionaries.reduce(((e,t)=>{var n;return e.concat((null===(n=t.getErrors)||void 0===n?void 0:n.call(t))||[])}),[])}}function p(e,t,n){return(0,i.genSequence)(e).first((e=>e.has(t,n)))}function h(e,t){return(0,i.genSequence)(e).first((e=>e.isForbidden(t)))}t.SpellingDictionaryCollection=d,t.createCollection=function(e,t){return new d(e,t)},t.__testing__={isWordInAnyDictionary:p,isWordForbiddenInAnyDictionary:h}},95980:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSpellingDictionaryLoadError=t.SpellingDictionaryLoadError=void 0;class n extends Error{constructor(e,t,n,r){super(r),this.uri=e,this.options=t,this.cause=n,this.name=t.name}}t.SpellingDictionaryLoadError=n,t.isSpellingDictionaryLoadError=function(e){return e instanceof n}},35899:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSpellingDictionaryTrie=t.SpellingDictionaryFromTrie=void 0;const r=n(3777),i=n(5124),o=n(53240),s=n(14526),a=n(70303),c=n(67307);class u{constructor(e,t,n,r="from trie",i){var a;this.trie=e,this.name=t,this.options=n,this.source=r,this._size=0,this.knownWords=new Set,this.unknownWords=new Set,this.type="SpellingDictionaryFromTrie",this._find=(0,o.memorizer)(((e,t,n)=>this.findAnyForm(e,t,n)),u.cachedWordsLimit),this.mapWord=(0,s.createMapper)(n.repMap||[]),this.isDictionaryCaseSensitive=null!==(a=n.caseSensitive)&&void 0!==a?a:!e.isLegacy,this.containsNoSuggestWords=n.noSuggest||!1,this._size=i||0,this.weightMap=n.weightMap||(0,c.createWeightMapFromDictionaryInformation)(n.dictionaryInformation)}get size(){if(!this._size){const e=this.trie.iterate();let t=!0,n=0;for(let r=e.next();!r.done;r=e.next(t))n+=1,t=r.value.text.length<5;this._size=n}return this._size}has(e,t){const{useCompounds:n,ignoreCase:r}=this.resolveOptions(t),i=this._find(e,n,r);return!!i&&!i.forbidden&&!!i.found}find(e,t){const{useCompounds:n,ignoreCase:r}=this.resolveOptions(t),i=this._find(e,n,r),{forbidden:o=this.isForbidden(e)}=i||{};if(!i&&!o)return;const{found:s=!!o&&e}=i||{};return{found:s,forbidden:o,noSuggest:!1!==s&&this.containsNoSuggestWords}}resolveOptions(e){const{useCompounds:t=this.options.useCompounds,ignoreCase:n=!0}=(0,c.hasOptionToSearchOption)(e);return{useCompounds:t,ignoreCase:n}}findAnyForm(e,t,n){const r=this.mapWord(e.normalize("NFC")),i={caseSensitive:!n},o=this.trie.findWord(r,i);if(!1!==o.found)return o;const s=(0,c.wordSearchForms)(r,this.isDictionaryCaseSensitive,n);for(const e of s){const t=this.trie.findWord(e,i);if(!1!==t.found)return t}if(t){i.useLegacyWordCompounds=t;for(const e of s){const t=this.trie.findWord(e,i);if(!1!==t.found)return t}}}isNoSuggestWord(e,t){return!!this.containsNoSuggestWords&&this.has(e,t)}isForbidden(e){return this.trie.isForbiddenWord(e)}suggest(...e){const[t]=e,n=(0,c.suggestArgsToSuggestOptions)(e);return this._suggest(t,n)}_suggest(e,t){const{numSuggestions:n=(0,i.getDefaultSettings)().numSuggestions||c.defaultNumSuggestions,numChanges:o,includeTies:s,ignoreCase:u,timeout:l}=t,f=(0,r.suggestionCollector)(e,(0,a.clean)({numSuggestions:n,filter:function(e){return!0},changeLimit:o,includeTies:s,ignoreCase:u,timeout:l,weightMap:this.weightMap}));return this.genSuggestions(f,t),f.suggestions.map((e=>({...e,word:e.word})))}genSuggestions(e,t){var n;if(this.options.noSuggest)return;const i=null!==(n=t.compoundMethod)&&void 0!==n?n:this.options.useCompounds?r.CompoundWordsMethod.JOIN_WORDS:r.CompoundWordsMethod.NONE;(0,c.wordSuggestFormsArray)(e.word).forEach((t=>this.trie.genSuggestions((0,c.impersonateCollector)(e,t),i)))}getErrors(){return[]}}t.SpellingDictionaryFromTrie=u,u.cachedWordsLimit=5e4,t.createSpellingDictionaryTrie=function(e,t,n,i){const o=(0,r.importTrie)(e),s=new r.Trie(o);return new u(s,t,i,n)}},67307:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__testMethods=t.createWeightMapFromDictionaryInformation=t.suggestArgsToSuggestOptions=t.hasOptionToSearchOption=t.wordDictionaryFormsCollector=t.wordSuggestForms=t.wordSuggestFormsArray=t.wordSearchForms=t.wordSearchFormsArray=t.defaultNumSuggestions=t.suggestionCollector=t.impersonateCollector=void 0;const r=n(3777),i=n(99764),o=n(80915),s=n(96734);var a=n(3777);function c(e,t,n){return[...u(e,t,n)]}function u(e,t,n){const r=new Set,i=(e=e.normalize("NFC")).toLowerCase();return n?t?r.add(i):(r.add(i),r.add(i.replace(/\p{M}/gu,""))):t?(r.add(e),r.add(i),(0,s.isUpperCase)(e)&&r.add((0,s.ucFirst)(i))):(r.add(i),r.add(i.replace(/\p{M}/gu,""))),r}function l(e){e=e.normalize("NFC");const t=new Set([e]),n=e.toLowerCase();return t.add(n),t}function*f(e,t){const n=(e=e.normalize("NFC")).toLowerCase(),r=(0,s.removeAccents)(e),i=(0,s.removeAccents)(n);function o(e,t=""){return{w:e,p:t}}const a=t;yield o(e),yield o(r,a),yield o(n,a),yield o(i,a)}function d(e){const t=new Set;return n=>(0,o.genSequence)(f(n,e)).filter((e=>!t.has(e.w))).map((e=>e.p+e.w)).filter((e=>!t.has(e))).map((e=>(t.add(e),e)))}Object.defineProperty(t,"impersonateCollector",{enumerable:!0,get:function(){return a.impersonateCollector}}),Object.defineProperty(t,"suggestionCollector",{enumerable:!0,get:function(){return a.suggestionCollector}}),t.defaultNumSuggestions=10,t.wordSearchFormsArray=c,t.wordSearchForms=u,t.wordSuggestFormsArray=function(e){return[...l(e)]},t.wordSuggestForms=l,t.wordDictionaryFormsCollector=d,t.hasOptionToSearchOption=function(e){return e||{}},t.suggestArgsToSuggestOptions=function(e){const[t,n,r,o,s]=e;return"object"==typeof n?n:(0,i.clean)({numSuggestions:n,compoundMethod:r,numChanges:o,ignoreCase:s,includeTies:void 0,timeout:void 0})},t.createWeightMapFromDictionaryInformation=function(e){return e?(0,r.mapDictionaryInformationToWeightMap)(e):void 0},t.__testMethods={wordSearchForms:u,wordSearchFormsArray:c,wordDictionaryForms:f,wordDictionaryFormsCollector:d}},90913:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createFailedToLoadDictionary=t.createForbiddenWordsDictionary=t.createSpellingDictionary=void 0;const r=n(3777),i=n(60956),o=n(80915),s=n(20888),a=n(35899),c=n(67307),u=Object.freeze({weightMap:void 0}),l=new s.AutoWeakCache(d,64),f=new s.SimpleCache(64);function d(e){const[t,n,i,o]=e,s=(0,r.parseDictionaryLines)(t),l=(0,r.buildTrieFast)(s),f={...o||u};return void 0===f.weightMap&&f.dictionaryInformation&&(f.weightMap=(0,c.createWeightMapFromDictionaryInformation)(f.dictionaryInformation)),new a.SpellingDictionaryFromTrie(l,n,f,i)}t.createSpellingDictionary=function(e,t,n,r){const o=[e,t,n,r];if(!Array.isArray(e))return d(o);const s=f.get(t)||new Set;for(const e of s)if((0,i.deepEqual)(o,e))return l.get(e);return s.size>3&&s.clear(),s.add(o),f.set(t,s),l.get(o)},t.createForbiddenWordsDictionary=function(e,t,n,i){const s=(0,r.parseDictionaryLines)(e.concat(e.map((e=>e.toLowerCase()))),{stripCaseAndAccents:!(null==i?void 0:i.noSuggest)}),c=o.operators.map((e=>"!"+e))(s),l=(0,r.buildTrieFast)(c);return new a.SpellingDictionaryFromTrie(l,t,i||u,n)},t.createFailedToLoadDictionary=function(e){const{options:t,uri:n}=e,r=[e];return{name:t.name,source:n,type:"error",containsNoSuggestWords:!1,has:()=>!1,find:()=>{},isNoSuggestWord:()=>!1,isForbidden:()=>!1,suggest:()=>[],mapWord:e=>e,genSuggestions:()=>{},size:0,options:t,isDictionaryCaseSensitive:!1,getErrors:()=>r}}},95274:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(33158),t),i(n(93539),t),i(n(75912),t),i(n(90913),t),i(n(95980),t)},60377:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateExclusionFunctionForFiles=t.generateExclusionFunctionForUri=t.extractGlobsFromExcludeFilesGlobMap=void 0;const r=n(70355),i=n(11638),o=new Set(["file","untitled"]);t.extractGlobsFromExcludeFilesGlobMap=function(e){return Object.getOwnPropertyNames(e).filter((t=>e[t]))};const s=/^\*\*\/([^/*{}]+)$/;function a(e){return e.replace(s,"**/{$1,$1/**}")}function c(e,t){const n=new i.GlobMatcher(e,{root:t,dot:!0});return e=>n.match(e)}t.generateExclusionFunctionForUri=function(e,t,n=o){const i=function(e){return e.map((e=>"string"==typeof e?a(e):{...e,glob:a(e.glob)}))}(e),s=c(i,t);return function(e){return t=r.URI.parse(e),!n.has(t.scheme)||s("file"===t.scheme?t.fsPath:t.path);var t}},t.generateExclusionFunctionForFiles=c},42114:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.getDictionary=t.clearCachedFiles=t.ExclusionHelper=t.Link=t.Text=t.validateText=t.IncludeExcludeFlag=t.checkText=t.resolveFile=t.setLogger=t.getLogger=t.traceWordsAsync=t.traceWords=t.DocumentValidator=t.suggestionsForWords=t.suggestionsForWord=t.SuggestionError=t.SpellingDictionaryLoadError=t.SpellingDictionaryCollection=t.refreshDictionaryCache=t.isSpellingDictionaryLoadError=t.createSpellingDictionary=t.CompoundWordsMethod=t.spellCheckFile=t.spellCheckDocument=t.isBinaryFile=t.fileToDocument=t.determineFinalDocumentSettings=t.constructSettingsForText=t.combineTextAndLanguageSettings=t.defaultSettingsFilename=t.updateTextDocument=t.createTextDocument=t.getLanguagesForExt=void 0;const a=o(n(60377));t.ExclusionHelper=a;const c=n(5124),u=n(11830),l=o(n(86982));t.Link=l;const f=n(95274),d=o(n(96734));t.Text=d,s(n(53158),t),s(n(20975),t);var p=n(39237);Object.defineProperty(t,"getLanguagesForExt",{enumerable:!0,get:function(){return p.getLanguagesForExt}});var h=n(80672);Object.defineProperty(t,"createTextDocument",{enumerable:!0,get:function(){return h.createTextDocument}}),Object.defineProperty(t,"updateTextDocument",{enumerable:!0,get:function(){return h.updateTextDocument}}),s(n(5124),t);var g=n(5124);Object.defineProperty(t,"defaultSettingsFilename",{enumerable:!0,get:function(){return g.defaultFileName}});var m=n(62095);Object.defineProperty(t,"combineTextAndLanguageSettings",{enumerable:!0,get:function(){return m.combineTextAndLanguageSettings}}),Object.defineProperty(t,"constructSettingsForText",{enumerable:!0,get:function(){return m.combineTextAndLanguageSettings}});var y=n(62548);Object.defineProperty(t,"determineFinalDocumentSettings",{enumerable:!0,get:function(){return y.determineFinalDocumentSettings}}),Object.defineProperty(t,"fileToDocument",{enumerable:!0,get:function(){return y.fileToDocument}}),Object.defineProperty(t,"isBinaryFile",{enumerable:!0,get:function(){return y.isBinaryFile}}),Object.defineProperty(t,"spellCheckDocument",{enumerable:!0,get:function(){return y.spellCheckDocument}}),Object.defineProperty(t,"spellCheckFile",{enumerable:!0,get:function(){return y.spellCheckFile}});var v=n(95274);Object.defineProperty(t,"CompoundWordsMethod",{enumerable:!0,get:function(){return v.CompoundWordsMethod}}),Object.defineProperty(t,"createSpellingDictionary",{enumerable:!0,get:function(){return v.createSpellingDictionary}}),Object.defineProperty(t,"isSpellingDictionaryLoadError",{enumerable:!0,get:function(){return v.isSpellingDictionaryLoadError}}),Object.defineProperty(t,"refreshDictionaryCache",{enumerable:!0,get:function(){return v.refreshDictionaryCache}}),Object.defineProperty(t,"SpellingDictionaryCollection",{enumerable:!0,get:function(){return v.SpellingDictionaryCollection}}),Object.defineProperty(t,"SpellingDictionaryLoadError",{enumerable:!0,get:function(){return v.SpellingDictionaryLoadError}});var b=n(17279);Object.defineProperty(t,"SuggestionError",{enumerable:!0,get:function(){return b.SuggestionError}}),Object.defineProperty(t,"suggestionsForWord",{enumerable:!0,get:function(){return b.suggestionsForWord}}),Object.defineProperty(t,"suggestionsForWords",{enumerable:!0,get:function(){return b.suggestionsForWords}});var S=n(98936);Object.defineProperty(t,"DocumentValidator",{enumerable:!0,get:function(){return S.DocumentValidator}});var E=n(99437);Object.defineProperty(t,"traceWords",{enumerable:!0,get:function(){return E.traceWords}}),Object.defineProperty(t,"traceWordsAsync",{enumerable:!0,get:function(){return E.traceWordsAsync}});var x=n(94542);Object.defineProperty(t,"getLogger",{enumerable:!0,get:function(){return x.getLogger}}),Object.defineProperty(t,"setLogger",{enumerable:!0,get:function(){return x.setLogger}});var w=n(21089);Object.defineProperty(t,"resolveFile",{enumerable:!0,get:function(){return w.resolveFile}});var _=n(42864);Object.defineProperty(t,"checkText",{enumerable:!0,get:function(){return _.checkText}}),Object.defineProperty(t,"IncludeExcludeFlag",{enumerable:!0,get:function(){return _.IncludeExcludeFlag}}),Object.defineProperty(t,"validateText",{enumerable:!0,get:function(){return _.validateText}}),t.clearCachedFiles=async function(){await Promise.all([(0,c.clearCachedSettingsFiles)(),(0,f.refreshDictionaryCache)(0)])},t.getDictionary=function(e){return(0,f.getDictionaryInternal)((0,u.toInternalSettings)(e))}},62548:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fileToDocument=t.isBinaryFile=t.isBinaryDoc=t.determineFinalDocumentSettings=t.spellCheckDocument=t.spellCheckFile=void 0;const r=n(11638),i=n(10890),o=n(70355),s=n(50335),a=n(39237),c=n(80672),u=n(5124),l=n(32196),f=n(70303),d=n(42864);async function p(e,t,n){if(g(e))return{document:e,options:t,settingsUsed:n,localConfigFilepath:void 0,issues:[],checked:!1,errors:void 0};try{return async function(e,t,n){var i,s,a,c;const l=[];function p(e){e&&l.push(e)}function g(e){return e.catch((e=>{p(e)}))}const m=!t.noConfigSearch&&!n.noConfigSearch||!1===t.noConfigSearch,y=t.configFile?g((0,u.loadConfig)(t.configFile,n)):m?g(async function(e,t,n){const{uri:r}=e,i=o.URI.parse(r);return"file"!==i.scheme?Promise.resolve(t):(0,u.searchForConfig)(i.fsPath,n).then((e=>e||t))}(e,n,n)):void 0,v=await y;if(p(null===(i=null==v?void 0:v.__importRef)||void 0===i?void 0:i.error),l.length)return{document:e,options:t,settingsUsed:v||n,localConfigFilepath:null===(s=null==v?void 0:v.__importRef)||void 0===s?void 0:s.filename,issues:[],checked:!1,errors:l};const b=new r.GlobMatcher((null==v?void 0:v.ignorePaths)||[],{root:process.cwd(),dot:!0}),S=h(e,v?(0,u.mergeSettings)(n,v):n),E=o.URI.parse(e.uri),x=!b.match(E.fsPath)&&(null===(a=S.settings.enabled)||void 0===a||a),{generateSuggestions:w,numSuggestions:_}=t,O=(0,f.clean)({generateSuggestions:w,numSuggestions:_}),C=x?await(0,d.validateText)(e.text,S.settings,O):[];return{document:e,options:t,settingsUsed:S.settings,localConfigFilepath:null===(c=null==v?void 0:v.__importRef)||void 0===c?void 0:c.filename,issues:C,checked:x,errors:void 0}}(await function(e,t){if(void 0!==e.text)return Promise.resolve(e);const n=o.URI.parse(e.uri);if("file"!==n.scheme)throw new Error(`Unsupported schema: "${n.scheme}", open "${n.toString()}"`);return async function(e,t="utf8"){const n=await(0,i.readFile)(e,t);return{uri:o.URI.file(e).toString(),text:n}}(n.fsPath,void 0)}(e),t,n)}catch(r){return{document:e,options:t,settingsUsed:n,localConfigFilepath:void 0,issues:[],checked:!1,errors:(0,l.isError)(r)?[r]:[]}}}function h(e,t){const n=(0,c.createTextDocument)({uri:e.uri,content:e.text,languageId:e.languageId,locale:e.locale});return{document:e,settings:(0,s.determineTextDocumentSettings)(n,t)}}function g(e){return m(o.URI.parse(e.uri),e.languageId)}function m(e,t){if(t){const e=function(e){return(Array.isArray(e)?e.join(","):e).split(",").map((e=>e.trim()))}(t);if(e.length)return(0,a.isGenerated)(e)}const n=o.Utils.basename(e);return(0,a.isGeneratedFile)(n)}t.spellCheckFile=function(e,t,n){return p({uri:o.URI.file(e).toString()},t,n)},t.spellCheckDocument=p,t.determineFinalDocumentSettings=h,t.isBinaryDoc=g,t.isBinaryFile=m,t.fileToDocument=function(e,t,n,r){return(0,f.clean)({uri:o.URI.file(e).toString(),text:t,languageId:n,locale:r})}},17279:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.SuggestionError=t.suggestionsForWord=t.suggestionsForWords=void 0;const s=n(5124),a=n(60091),c=n(95274),u=o(n(70303));async function l(e,t,n={}){const{languageId:r,locale:i,strict:o=!0,numChanges:l=4,numSuggestions:p=8,includeTies:h=!0,includeDefaultConfig:g=!0,dictionaries:m}=t||{},y=!o;await(0,c.refreshDictionaryCache)();const v=g?(0,s.mergeSettings)((0,s.getDefaultSettings)(),(0,s.getGlobalSettings)(),n):n,{dictionaryCollection:b,allDictionaryCollection:S}=await async function(e){var t,n;const o=(0,s.mergeSettings)(e,u.clean({language:i||e.language})),l=(0,a.calcSettingsForLanguageId)(o,null!==(t=null!=r?r:o.languageId)&&void 0!==t?t:"plaintext"),f=(0,s.finalizeSettings)(l);f.dictionaries=(null==m?void 0:m.length)?m:f.dictionaries||[],function(e,t){var n;if(!(null==t?void 0:t.length))return;const r=new Set((null===(n=e.dictionaryDefinitions)||void 0===n?void 0:n.map((e=>e.name)))||[]);for(const e of t)if(!r.has(e))throw new d(`Unknown dictionary: "${e}"`,"E_dictionary_unknown")}(f,m);const p=await(0,c.getDictionaryInternal)(f);return f.dictionaries=(null===(n=f.dictionaryDefinitions)||void 0===n?void 0:n.map((e=>e.name)))||[],{dictionaryCollection:p,allDictionaryCollection:await(0,c.getDictionaryInternal)(f)}}(v),E={ignoreCase:y,numChanges:l,numSuggestions:p,includeTies:h},x=b.dictionaries.map((t=>t.suggest(e,E).map((e=>({...e,dictName:t.name}))))),w=function(e){const t=new Map;for(const n of e){const{word:e,cost:r,dictName:i,...o}=n,s=t.get(e)||{word:e,cost:r,...o,dictionaries:[]};s.cost=Math.min(s.cost,r),s.dictionaries.push(i),s.dictionaries.sort(),t.set(e,s)}return[...t.values()]}(u.flatten(x).sort(((e,t)=>e.cost-t.cost||(e.word<=t.word?-1:1)))),_={},O=w.map((e=>{const t=S.find(e.word,_);return{...e,forbidden:(null==t?void 0:t.forbidden)||!1,noSuggest:(null==t?void 0:t.noSuggest)||!1}}));return{word:e,suggestions:f(O,p,h)}}function f(e,t,n){var r;let i=null===(r=e[0])||void 0===r?void 0:r.cost,o=0;for(;o=t&&(!n||e[o].cost>i));++o)i=e[o].cost;return e.slice(0,o)}t.suggestionsForWords=async function*(e,t,n={}){for await(const r of e)yield await l(r,t,n)},t.suggestionsForWord=l;class d extends Error{constructor(e,t){super(e),this.code=t}}t.SuggestionError=d},50335:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.determineTextDocumentSettings=void 0;const s=o(n(71017)),a=n(39237),c=n(5124),u=n(62095);t.determineTextDocumentSettings=function(e,t){var n;const r=e.uri.fsPath,i=(0,c.mergeSettings)((0,c.getDefaultSettings)(),(0,c.getGlobalSettings)(),t),o=(0,c.calcOverrideSettings)(i,r),l=(null===(n=null==o?void 0:o.languageId)||void 0===n?void 0:n.length)?o.languageId:e.languageId?e.languageId:function(e){const t=s.basename(e);return(0,a.getLanguagesForBasename)(t)}(r);return e.locale&&(o.language=e.locale),(0,u.combineTextAndLanguageSettings)(o,e.text,l)}},94868:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentValidator=void 0;const i=n(46444),o=r(n(39491)),s=n(80672),a=n(5124),c=n(27464),u=n(95274),l=n(32196),f=n(53240),d=n(20888),p=n(13455),h=n(70303),g=n(50335),m=n(2172),y=n(86433);t.DocumentValidator=class{constructor(e,t,n){this.options=t,this.settings=n,this._ready=!1,this.errors=[],this._preparationTime=-1,this._suggestions=new d.AutoCache((e=>this.genSuggestions(e)),1e3),this._document=e}get ready(){return this._ready}prepareSync(){var e,t;if(this._ready)return;const n=(0,p.createTimer)(),{options:r,settings:i}=this,o=!r.noConfigSearch&&!i.noConfigSearch||!1===r.noConfigSearch,s=r.configFile,l=s?this.errorCatcherWrapper((()=>(0,c.loadConfigSync)(s,i))):o?this.errorCatcherWrapper((()=>function(e,t,n){const{uri:r}=e;return r.scheme,(0,c.searchForConfigSync)(r.fsPath,n)||t}(this._document,i,i))):void 0;this.addPossibleError(null===(e=null==l?void 0:l.__importRef)||void 0===e?void 0:e.error);const f=(0,a.mergeSettings)(i,l),d=(0,g.determineTextDocumentSettings)(this._document,f),h=(0,u.getDictionaryInternalSync)(d),v=null===(t=d.enabled)||void 0===t||t,b=(0,a.finalizeSettings)(d),S=(0,y.settingsToValidateOptions)(b),E=(0,m.calcTextInclusionRanges)(this._document.text,S),x=(0,m.mapLineSegmentAgainstRangesFactory)(E),w=(0,m.lineValidatorFactory)(h,S);this._preparations={config:f,dictionary:h,docSettings:d,shouldCheck:v,validateOptions:S,includeRanges:E,segmenter:x,lineValidator:w},this._ready=!0,this._preparationTime=n.elapsed()}async prepare(){if(!this._ready)return this._prepared||(this._prepared=this._prepareAsync()),this._prepared}async _prepareAsync(){var e,t;(0,o.default)(!this._ready);const n=(0,p.createTimer)(),{options:r,settings:i}=this,s=!r.noConfigSearch&&!i.noConfigSearch||!1===r.noConfigSearch,c=r.configFile?this.catchError((0,a.loadConfig)(r.configFile,i)):s?this.catchError(async function(e,t,n){const{uri:r}=e;return"file"!==r.scheme?Promise.resolve(t):(0,a.searchForConfig)(r.fsPath,n).then((e=>e||t))}(this._document,i,i)):void 0,l=await c||{};this.addPossibleError(null===(e=null==l?void 0:l.__importRef)||void 0===e?void 0:e.error);const f=(0,a.mergeSettings)(i,l),d=(0,g.determineTextDocumentSettings)(this._document,f),h=await(0,u.getDictionaryInternal)(d),v=null===(t=d.enabled)||void 0===t||t,b=(0,a.finalizeSettings)(d),S=(0,y.settingsToValidateOptions)(b),E=(0,m.calcTextInclusionRanges)(this._document.text,S),x=(0,m.mapLineSegmentAgainstRangesFactory)(E),w=(0,m.lineValidatorFactory)(h,S);this._preparations={config:f,dictionary:h,docSettings:d,shouldCheck:v,validateOptions:S,includeRanges:E,segmenter:x,lineValidator:w},this._ready=!0,this._preparationTime=n.elapsed()}_updatePrep(){var e;(0,o.default)(this._preparations);const t=(0,p.createTimer)(),{config:n}=this._preparations,r=(0,g.determineTextDocumentSettings)(this._document,n),i=(0,u.getDictionaryInternalSync)(r),s=null===(e=r.enabled)||void 0===e||e,c=(0,a.finalizeSettings)(r),l=(0,y.settingsToValidateOptions)(c),f=(0,m.calcTextInclusionRanges)(this._document.text,l),d=(0,m.mapLineSegmentAgainstRangesFactory)(f),h=(0,m.lineValidatorFactory)(i,l);this._preparations={config:n,dictionary:i,docSettings:r,shouldCheck:s,validateOptions:l,includeRanges:f,segmenter:d,lineValidator:h},this._preparationTime=t.elapsed()}get prepTime(){return this._preparationTime}checkText(e,t,n){(0,o.default)(this._ready),(0,o.default)(this._preparations);const{segmenter:r,lineValidator:s}=this._preparations,a=e[0],c=e[1],u=this._document.text.slice(a,c),l={line:this._document.lineAt(a),segment:{text:u,offset:a}},d=[...(0,i.pipeSync)(r(l),(0,i.opConcatMap)(s))];if(!this.options.generateSuggestions)return d;const p=d.map((e=>{const t=e.text,n=(0,f.callOnce)((()=>this.suggest(t)));return Object.defineProperty({...e},"suggestions",{enumerable:!0,get:n})}));return p}get document(){return this._document}updateDocumentText(e){(0,s.updateTextDocument)(this._document,[{text:e}]),this._updatePrep()}addPossibleError(e){e&&(e=this.errors.push((0,l.toError)(e)))}catchError(e){return e.catch((e=>{this.addPossibleError(e)}))}errorCatcherWrapper(e){try{return e()}catch(e){this.addPossibleError(e)}}suggest(e){return this._suggestions.get(e)}genSuggestions(e){var t;(0,o.default)(this._preparations);const n=this._preparations.docSettings,r=this._preparations.dictionary,i=(0,h.clean)({compoundMethod:0,numSuggestions:this.options.numSuggestions,includeTies:!1,ignoreCase:!(null!==(t=n.caseSensitive)&&void 0!==t&&t),timeout:n.suggestionsTimeout,numChanges:n.suggestionNumChanges});return r.suggest(e,i).map((e=>e.word))}}},98936:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentValidator=t.validateText=t.IncludeExcludeFlag=t.checkText=t.calcTextInclusionRanges=void 0;var r=n(2172);Object.defineProperty(t,"calcTextInclusionRanges",{enumerable:!0,get:function(){return r.calcTextInclusionRanges}});var i=n(86433);Object.defineProperty(t,"checkText",{enumerable:!0,get:function(){return i.checkText}}),Object.defineProperty(t,"IncludeExcludeFlag",{enumerable:!0,get:function(){return i.IncludeExcludeFlag}}),Object.defineProperty(t,"validateText",{enumerable:!0,get:function(){return i.validateText}});var o=n(94868);Object.defineProperty(t,"DocumentValidator",{enumerable:!0,get:function(){return o.DocumentValidator}})},2172:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t._testMethods=t.mapLineSegmentAgainstRangesFactory=t.hasWordCheck=t.isWordValid=t.lineValidatorFactory=t.calcTextInclusionRanges=t.validateText=t.minWordSplitLen=t.defaultMinWordLength=t.defaultMaxDuplicateProblems=t.defaultMaxNumberOfProblems=void 0;const s=n(46444),a=n(80915),c=o(n(55948)),u=o(n(96734)),l=o(n(33168)),f=n(70303),d=n(56409);function p(e,t){const{ignoreRegExpList:n=[],includeRegExpList:r=[]}=t,i=r.filter((e=>!!e)),o=i.length?i:[/.*/gim];return l.excludeRanges(l.findMatchingRangesForPatterns(o,e),l.findMatchingRangesForPatterns(n,e))}function h(e,n){const{minWordLength:r=t.defaultMinWordLength,flagWords:i=[],allowCompoundWords:o=!1,ignoreCase:l=!0}=n,p={ignoreCase:l,useCompounds:o||void 0},h=e,m=new Set(i),y=new Set,v=e=>t=>{const n=e(t);return n||y.add(t.text),n},b=e=>!y.has(e.text);function S(e){const t=e.text;return m.has(t)||m.has(t.toLowerCase())||h.isForbidden(t)}function E(t){return e.isNoSuggestWord(t,n)}function x(e){return!E(e.text)&&S(e)}function w(e){return e.isFlagged=x(e),e}function _(e,t){const n=E(e.text),{isFlagged:r=!n&&S(e)}=e,i=r?void 0:n||g(h,e,e.line,t);return(0,f.clean)({...e,isFlagged:r,isFound:i})}return e=>{function t(t){return y.has(t.text)||!S(t)&&g(h,t,e.line,p)}function n(t){if(t.isFlagged)return[t];const n=(0,s.toArray)((0,s.pipeSync)(u.extractWordsFromCodeTextOffset(t),(0,s.opFilter)(b),(0,s.opMap)((e=>({...e,line:t.line}))),(0,s.opMap)(w),(0,s.opFilter)(v((e=>e.text.length>=r||!!e.isFlagged))),(0,s.opMap)((e=>e.isFlagged?e:_(e,p))),(0,s.opFilter)(v((e=>e.isFlagged||!e.isFound))),(0,s.opFilter)(v((e=>!c.regExRepeatedChar.test(e.text)))),(0,s.opMap)((t=>({...t,text:u.extractText(e.segment,t.offset,t.offset+t.text.length)})))));return!n.length||E(t.text)||_(t,p).isFound?(v((e=>!1))(t),[]):n}return(0,a.genSequence)((0,s.pipeSync)(u.extractPossibleWordsFromTextOffset(e.segment),(0,s.opFilter)(b),(0,s.opConcatMap)((function(i){if(x(i))return[{...i,line:e.line,isFlagged:!0}];const o=(0,s.toArray)((0,s.pipeSync)(u.extractWordsFromTextOffset(i),(0,s.opFilter)(b),(0,s.opMap)((t=>({...t,line:e.line}))),(0,s.opMap)(w),(0,s.opFilter)(v((e=>e.text.length>=r||!!e.isFlagged))),(0,s.opConcatMap)(n)));if(o.length){const n=(0,d.split)(e.segment,i.offset,t).words.filter((e=>!e.isFound));if(n.length({...t,line:e.line}))).map(w)}return o}))))}}function g(e,t,n,r){return m(e,t.text,r)||"\\"===n.text[t.offset-n.offset-1]&&m(e,t.text.slice(1),r)}function m(e,t,n){return t=t.replace(/\\/g,""),e.has(t,function(e){const{ignoreCase:t,useCompounds:n}=e;return(0,f.clean)({ignoreCase:t,useCompounds:n})}(n))}function y(e){let t=0;return n=>{if(!e.length)return[];const r=[],{segment:i,line:o}=n,{text:s,offset:a,length:c}=i,u=a+(null!=c?c:s.length);let l=a;for(;t&&(t>=e.length||e[t].startPos>l);)t-=1;const f=e[t];if(u<=f.endPos&&l>=f.startPos)return[n];for(;lt({line:e,segment:e})}(l)),(0,s.opConcatMap)(f),(0,s.opFilter)((e=>{const t=e.text,n=(c.get(t)||0)+1;return c.set(t,n),n<=o})),(0,s.opTake)(i));return(0,a.genSequence)(d)},t.calcTextInclusionRanges=p,t.lineValidatorFactory=h,t.isWordValid=g,t.hasWordCheck=m,t.mapLineSegmentAgainstRangesFactory=y,t._testMethods={mapWordsAgainstRanges:y}},86433:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.checkText=t.IncludeExcludeFlag=t.settingsToValidateOptions=t.validateText=t.diagSource=void 0;const s=o(n(5124)),a=n(95274),c=n(53240),u=n(70303),l=n(2172);async function f(e,t,n={}){var r;const i=s.finalizeSettings(t),o=await(0,a.getDictionaryInternal)(i),f=[...(0,l.validateText)(e,o,d(i))];if(!n.generateSuggestions)return f;const p=(0,u.clean)({numSuggestions:n.numSuggestions,compoundMethod:a.CompoundWordsMethod.NONE,includeTies:!1,ignoreCase:!(null!==(r=t.caseSensitive)&&void 0!==r&&r),timeout:t.suggestionsTimeout,numChanges:t.suggestionNumChanges}),h=f.map((e=>{const t=e.text,n=(0,c.callOnce)((()=>o.suggest(t,p).map((e=>e.word))));return Object.defineProperty({...e},"suggestions",{enumerable:!0,get:n})}));return h}function d(e){var t;return{...e,ignoreCase:!(null!==(t=e.caseSensitive)&&void 0!==t&&t)}}var p;t.diagSource="cSpell Checker",t.validateText=f,t.settingsToValidateOptions=d,function(e){e.INCLUDE="I",e.EXCLUDE="E"}(p=t.IncludeExcludeFlag||(t.IncludeExcludeFlag={})),t.checkText=async function(e,t){const n=f(e,t),r=s.finalizeSettings(t),i=(0,l.calcTextInclusionRanges)(e,r),o=[];let a=0;for(const{startPos:t,endPos:n}of i)o.push({text:e.slice(a,t),startPos:a,endPos:t,flagIE:p.EXCLUDE}),o.push({text:e.slice(t,n),startPos:t,endPos:n,flagIE:p.INCLUDE}),a=n;o.push({text:e.slice(a),startPos:a,endPos:e.length,flagIE:p.EXCLUDE});const c=await n;return{text:e,items:[...function*(){let e=0;for(const t of o){if(e>=c.length||c[e].offset>=t.endPos){yield t;continue}const n={...t};for(;ee.startPose.name))).filter(f.uniqueFn),h=(0,c.toInternalSettings)({...d,dictionaries:p}),g=await(0,l.getDictionaryInternal)(d),m=await(0,l.getDictionaryInternal)(h);return{activeDictionaries:g.dictionaries.map((e=>e.name)),config:d,dicts:m}}(t),g=new Set(h),m=f.clean({ignoreCase:o,useCompounds:d.allowCompoundWords});function y(e){if(null==e?void 0:e.length)return e}function v(e){return p.dictionaries.map((t=>({dict:t,findResult:t.find(e,m)}))).map((({dict:t,findResult:n})=>{var r;return{word:e,found:!!(null==n?void 0:n.found),foundWord:(null==n?void 0:n.found)||void 0,forbidden:(null==n?void 0:n.forbidden)||!1,noSuggest:(null==n?void 0:n.noSuggest)||!1,dictName:t.name,dictSource:t.source,dictActive:g.has(t.name),configSource:d.name||"",errors:y(null===(r=t.getErrors)||void 0===r?void 0:r.call(t))}}))}for await(const t of e)yield v(t)}t.traceWords=async function(e,t,n){const r=await f.asyncIterableToArray(d(e,t,n));return(0,s.genSequence)(r).concatMap((e=>e)).toArray()},t.traceWordsAsync=d},53240:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.memorizerAll=t.callOnce=t.memorizeLastCall=t.memorizerKeyBy=t.memorizer=void 0;const r=n(70303);function i(e,t,n=5e4){let r=0,i=Object.create(null),o=Object.create(null);return(...s)=>{const a=t(...s);if(a in i)return i[a];const c=a in o?o[a]:e(...s);return r>=n&&(o=i,i=Object.create(null),r=0),i[a]=c,++r,c}}t.memorizer=function(e,t){return i(e,((...e)=>e.join(">!@[")),t)},t.memorizerKeyBy=i,t.memorizeLastCall=function(e){let t;return(...n)=>{if(t&&(0,r.isArrayEqual)(t.args,n))return t.value;const i=n,o=e(...i);return t={args:i,value:o},o}},t.callOnce=function(e){let t;return()=>(t||(t={value:e()}),t.value)},t.memorizerAll=function(e){const t={};return(...n)=>{const r=function(e){var n;let r=t;for(const t of e){if(!r)break;r=null===(n=r.c)||void 0===n?void 0:n.get(t)}return r}(n);if(r&&"v"in r)return r.v;const i=e(...n);return function(e,n){var r;let i=t;for(const t of e){const e=null===(r=i.c)||void 0===r?void 0:r.get(t);if(e){i=e;continue}const n={};i.c=i.c||new Map,i.c.set(t,n),i=n}i.v=n}(n,i),i}}},90120:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.heapMethods=t.PairingHeap=void 0;class n{constructor(e){this.compare=e,this._size=0}add(e){return this._heap=r(this.compare,this._heap,e),++this._size,this}dequeue(){const e=this.next();if(!e.done)return e.value}concat(e){for(const t of e)this.add(t);return this}next(){if(!this._heap)return{value:void 0,done:!0};const e=this._heap.v;var t,n;return--this._size,this._heap=(t=this.compare,(n=this._heap)&&n.c?o(t,n.c):void 0),{value:e}}peek(){var e;return null===(e=this._heap)||void 0===e?void 0:e.v}[Symbol.iterator](){return this}get length(){return this._size}}function r(e,t,n){const r={v:n,s:void 0,c:void 0};return!t||e(n,t.v)<=0?(r.c=t,r):(r.s=t.c,t.c=r,t)}function i(e,t,n){return e(t.v,n.v)<=0?(t.s=void 0,n.s=t.c,t.c=n,t):(n.s=void 0,t.s=n.c,n.c=t,n)}function o(e,t){if(!t.s)return t;const n=t.s,r=n.s,s=i(e,t,n);return r?i(e,s,o(e,r)):s}t.PairingHeap=n,t.heapMethods={insert:r,merge:i,mergeSiblings:o}},33168:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.__testing__=t.extractRangeText=t.excludeRanges=t.findMatchingRangesForPatterns=t.unionRanges=t.findMatchingRanges=void 0;const s=o(n(80915));function a(e){const t=e.index||0,n=e[0];return{startPos:t,endPos:t+n.length,text:n}}function c(e,t){if(".*"===e.source)return[{startPos:0,endPos:t.length}];const n=new RegExp(e);if(!n.global){const e=t.match(n);return e?[a(e)]:[]}return[...t.matchAll(n)].map(a)}function u(e,t){return e.startPos-t.startPos||e.endPos-t.endPos}function l(e){return g([...f(e)])}function*f(e){const t=h(e);if(!t.length)return;let{startPos:n,endPos:r}=t[0];for(const t of e)t.startPos>r?(yield{startPos:n,endPos:r},n=t.startPos,r=t.endPos):r=Math.max(r,t.endPos);n=e)break;if(!(r.endPos<=o)&&(r.startPos>o&&(yield{startPos:o,endPos:r.startPos}),o=r.endPos,o>=e))break}oc(e,t))).toArray())},t.excludeRanges=function(e,t){return[...d(h(e),h(t))]},t.extractRangeText=function(e,t){return t.map((({startPos:t,endPos:n})=>({startPos:t,endPos:n,text:e.slice(t,n)})))};const p=Symbol("SortedMatchRangeArray");function h(e){return!0===e[p]?e:g(e.sort(u))}function g(e){const t=e;return t[p]=!0,Object.freeze(t),t}t.__testing__={makeSortedMatchRangeArray:g}},32196:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__testing__=t.UnknownError=t.toError=t.isError=t.isErrnoException=void 0;const r=n(73837),i={string:!0,undefined:!0},o={number:!0,undefined:!0};function s(e){if(e instanceof Error)return!0;if(!e||"object"!=typeof e)return!1;const t=e;return"string"==typeof t.name&&"string"==typeof t.message&&typeof t.stack in i}t.isErrnoException=function(e){if(!e||"object"!=typeof e)return!1;if(!s(e))return!1;const t=e;return typeof t.errno in o&&typeof t.code in i&&typeof t.path in i},t.isError=s,t.toError=function(e,t=a){return s(e)?e:new t(e)};class a extends Error{constructor(e){super((0,r.format)(e)),this.cause=e}}t.UnknownError=a,t.__testing__={getTypeOf:function(e){return typeof e}}},19775:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.readLinesSync=t.readLines=void 0;const r=n(20975),i=n(97542);t.readLines=async function(e,t="utf8"){try{const n=await(0,r.readFile)(e,t);return(0,i.toIterableIterator)(n.split(/\r?\n/g))}catch(e){return Promise.reject(e)}},t.readLinesSync=function(e,t="utf8"){return(0,r.readFileSync)(e,t).split(/\r?\n/g)}},97542:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatIterables=t.toIterableIterator=void 0,t.toIterableIterator=function*(e){yield*e},t.concatIterables=function*(...e){for(const t of e)yield*t}},94542:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLogger=t.setLogger=t.log=t.logWarning=t.logError=void 0;let n=console;t.logError=function(...e){n.error(...e)},t.logWarning=function(...e){n.warn(...e)},t.log=function(...e){n.log(...e)},t.setLogger=function(e){const t=n;return n=e,t},t.getLogger=function(){return n}},20111:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.escapeRegEx=void 0,t.escapeRegEx=function(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},14526:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createMapper=void 0;const r=n(20111);t.createMapper=function(e){const t=e.filter((([e,t])=>!!e));if(!t.length)return e=>e;const n=t.map((([e,t])=>e)).map((e=>{try{const t=e.match(/\(/)?e.replace(/\((?=.*\))/g,"(?:").replace(/\(\?:\?/g,"(?"):e;new RegExp(t),e=t}catch(t){return(0,r.escapeRegEx)(e)}return e})).map((e=>`(${e})`)).join("|"),i=new RegExp(n,"g"),o=e.filter((([e,t])=>!!e)).map((([e,t])=>t));function s(e,...t){const n=t.findIndex((e=>!!e));return 0<=n&&n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.binarySearch=void 0,t.binarySearch=function(e,t,n,r){let i=Math.max(null!=n?n:0,0),o=Math.min(null!=r?r:e.length,e.length);for(;i>1;e[n]{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AutoCache=t.SimpleCache=t.AutoWeakCache=t.SimpleWeakCache=void 0;class n{constructor(e){this.size=e,this.L0=new WeakMap,this.L1=new WeakMap,this.L2=new WeakMap,this.sizeL0=0}has(e){for(const t of this.caches())if(t.has(e))return!0;return!1}get(e){for(const t of this.caches()){const n=t.get(e);if(n)return t!==this.L0&&this._set(e,n),n.v}}set(e,t){this._set(e,{v:t})}_set(e,t){if(this.L0.has(e))return this.L0.set(e,t),this;this.sizeL0>=this.size&&this.rotate(),this.sizeL0+=1,this.L0.set(e,t)}caches(){return[this.L0,this.L1,this.L2]}rotate(){this.L2=this.L1,this.L1=this.L0,this.L0=new WeakMap,this.sizeL0=0}}t.SimpleWeakCache=n,t.AutoWeakCache=class extends n{constructor(e,t){super(t),this.factory=e}get(e){const t=super.get(e);if(void 0!==t)return t;const n=this.factory(e);return this.set(e,n),n}};class r{constructor(e){this.size=e,this.L0=new Map,this.L1=new Map,this.L2=new Map}has(e){for(const t of this.caches())if(t.has(e))return!0;return!1}get(e){for(const t of this.caches()){const n=t.get(e);if(n)return t!==this.L0&&this._set(e,n),n.v}}set(e,t){this._set(e,{v:t})}_set(e,t){if(this.L0.has(e))return this.L0.set(e,t),this;this.L0.size>=this.size&&this.rotate(),this.L0.set(e,t)}caches(){return[this.L0,this.L1,this.L2]}rotate(){this.L2=this.L1,this.L1=this.L0,this.L0=new Map}}t.SimpleCache=r,t.AutoCache=class extends r{constructor(e,t){super(t),this.factory=e}get(e){const t=super.get(e);if(void 0!==t)return t;const n=this.factory(e);return this.set(e,n),n}}},96734:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__testing__=t.removeAccents=t.calculateTextDocumentOffsets=t.stringToRegExp=t.extractText=t.textOffset=t.matchCase=t.camelToSnake=t.snakeToCamel=t.lcFirst=t.ucFirst=t.isFirstCharacterLower=t.isFirstCharacterUpper=t.isLowerCase=t.isUpperCase=t.extractWordsFromCodeTextOffset=t.extractWordsFromCode=t.extractPossibleWordsFromTextOffset=t.cleanTextOffset=t.cleanText=t.extractWordsFromTextOffset=t.extractWordsFromText=t.extractLinesOfText=t.matchToTextOffset=t.matchStringToTextOffset=t.match=t.splitCamelCaseWord=t.splitCamelCaseWordWithOffset=void 0;const r=n(46444),i=n(80915),o=n(2677),s=n(73835),a=n(70303);function c(e){return u(e.text).map((0,a.scanMap)(((e,t)=>({text:t,offset:e.offset+e.text.length})),{text:"",offset:e.offset}))}function u(e){return e.replace(s.regExUpperSOrIng,(e=>e[0]+e.slice(1).toLowerCase())).replace(s.regExSplitWords,"$1_<^*_*^>_$2").replace(s.regExSplitWords2,"$1_<^*_*^>_$2").split("_<^*_*^>_")}function l(e,t){return(0,i.sequenceFromRegExpMatch)(e,t)}function f(e,t){return d(e,{text:t,offset:0})}function d(e,t){const n=t,i=(o=n.offset,e=>({...e,offset:e.offset+o}));var o;return n.text.matchAll(e),(0,r.pipeSync)(l(e,n.text),(0,r.opMap)((e=>i({text:e[0],offset:e.index||0}))))}function p(e){return d(new RegExp(s.regExWords),g(e))}function h(e){return e=e.replace(s.regExIgnoreCharacters,(e=>" ".repeat(e.length))),e}function g(e){return{text:h(e.text),offset:e.offset}}function m(e){return(0,r.pipeSync)(p(e),(0,r.opConcatMap)(c))}function y(e){return!!e.match(s.regExAllUpper)}function v(e){return!!e.match(s.regExAllLower)}function b(e){return y(e.slice(0,1))}function S(e){return v(e.slice(0,1))}function E(e){return e.slice(0,1).toUpperCase()+e.slice(1)}function x(e){return e.slice(0,1).toLowerCase()+e.slice(1)}function w(e,t=0){return{text:e,offset:t}}t.splitCamelCaseWordWithOffset=c,t.splitCamelCaseWord=u,t.match=l,t.matchStringToTextOffset=f,t.matchToTextOffset=d,t.extractLinesOfText=function(e){return f(s.regExLines,e)},t.extractWordsFromText=function(e){return p(w(e))},t.extractWordsFromTextOffset=p,t.cleanText=h,t.cleanTextOffset=g,t.extractPossibleWordsFromTextOffset=function(e){return d(new RegExp(s.regExWordsAndDigits),e)},t.extractWordsFromCode=function(e){return m(w(e))},t.extractWordsFromCodeTextOffset=m,t.isUpperCase=y,t.isLowerCase=v,t.isFirstCharacterUpper=b,t.isFirstCharacterLower=S,t.ucFirst=E,t.lcFirst=x,t.snakeToCamel=function(e){return e.split("_").map(E).join("")},t.camelToSnake=function(e){return u(e).join("_").toLowerCase()},t.matchCase=function(e,t){return e.match(s.regExFirstUpper)?t.slice(0,1).toUpperCase()+t.slice(1).toLowerCase():e.match(s.regExAllLower)?t.toLowerCase():e.match(s.regExAllUpper)?t.toUpperCase():b(e)?E(t):S(e)?x(t):t},t.textOffset=w,t.extractText=function(e,t,n){const{text:r,offset:i}=e,o=Math.max(t-i,0),s=Math.max(n-i,0);return r.slice(o,s)},t.stringToRegExp=function(e,t="gimu",n="g"){if(e instanceof RegExp)return e;try{const[,r,i]=[...e.match(s.regExMatchRegExParts)||["",e,t],n],o=[...new Set(n+i)].join("").replace(/[^gimuy]/g,"");if(r)return new RegExp(r,o)}catch(e){}},t.calculateTextDocumentOffsets=function(e,t,n){const i=[-1,...(0,r.pipeSync)(l(/\n/g,t),(0,r.opMap)((e=>e.index))),t.length];let s,a=-1,c=t.length+1,u=-1;function f(e){const n=u===e?s:void 0;u=e;const r=null!=n?n:function(e){const n=i[e-1]+1;return{text:t.slice(n,i[e]+1),offset:n}}(e);return s=r,r}return n.map((n=>{const[r,s]=function(e){const t=(0,o.binarySearch)(i,e,e>=c?a:void 0),n=e-i[Math.max(0,t-1)];return c=e,a=t,[t,n]}(n.offset);return{...n,row:r,col:s,doc:t,uri:e,line:f(r)}}))},t.removeAccents=function(e){return e.normalize("NFD").replace(s.regExAccents,"")},t.__testing__={regExWords:s.regExWords,regExWordsAndDigits:s.regExWordsAndDigits}},73835:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.regExTrailingEndings=t.regExDanglingQuote=t.regExEscapeCharacters=t.regExAccents=t.regExMatchRegExParts=t.regExPossibleWordBreaks=t.regExAllLower=t.regExAllUpper=t.regExFirstUpper=t.regExIgnoreCharacters=t.regExWordsAndDigits=t.regExWords=t.regExSplitWords2=t.regExSplitWords=t.regExUpperSOrIng=t.regExLines=void 0,t.regExLines=/.*(\r?\n|$)/g,t.regExUpperSOrIng=/([\p{Lu}\p{M}]+\\?['’]?(?:s|ing|ies|es|ings|ed|ning))(?!\p{Ll})/gu,t.regExSplitWords=/(\p{Ll}\p{M}?)(\p{Lu})/gu,t.regExSplitWords2=/(\p{Lu}\p{M}?)(\p{Lu}\p{M}?\p{Ll})/gu,t.regExWords=/\p{L}\p{M}?(?:(?:\\?['’])?\p{L}\p{M}?)*/gu,t.regExWordsAndDigits=/(?:\d+)?[\p{L}\p{M}_'’-](?:(?:\\?['’])?[\p{L}\p{M}\w'’-])*/gu,t.regExIgnoreCharacters=/[\p{sc=Hiragana}\p{sc=Han}\p{sc=Katakana}\u30A0-\u30FF\p{sc=Hangul}]/gu,t.regExFirstUpper=/^\p{Lu}\p{M}?\p{Ll}+$/u,t.regExAllUpper=/^(?:\p{Lu}\p{M}?)+$/u,t.regExAllLower=/^(?:\p{Ll}\p{M}?)+$/u,t.regExPossibleWordBreaks=/[-_’']/g,t.regExMatchRegExParts=/^\/(.*)\/([gimuy]*)$/,t.regExAccents=/\p{M}/gu,t.regExEscapeCharacters=/(?<=\\)[anrvtbf]/gi,t.regExDanglingQuote=/(?<=(?:^|(?!\p{M})\P{L})(?:\p{L}\p{M}?)?)[']/gu,t.regExTrailingEndings=/(?<=(?:\p{Lu}\p{M}?){2})['’]?(?:s|d|ings?|ies|e[ds]?|ning|th|nth)(?!\p{Ll})/gu},13455:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createLapRecorder=t.polyHrTime=t.toMilliseconds=t.createTimer=void 0;const n=(null===process||void 0===process?void 0:process.hrtime)||o;function r(e=n){let t=e(),r=0;function o(){return i(e(t))}return{start(){t=e(),r=0},elapsed:o,lap(){const e=o(),t=e-r;return r=e,t}}}function i(e){return 1e3*(e[0]+1e-9*e[1])}function o(e){const t=.001*(Date.now()-(e?i(e):0)),n=Math.floor(t);return[n,1e9*(t-n)]}t.createTimer=r,t.toMilliseconds=i,t.polyHrTime=o,t.createLapRecorder=function(){const e=r(),t=[];let n=0;return{times:t,lap:function(r){const i=e.elapsed(),o=i-n;t.push([r,o,i]),n=o},report:function(){return t.map((([e,t])=>`${e}: ${t.toFixed(2)}`))}}}},70303:(e,t)=>{"use strict";function n(e){const t=new Set,n=e||(e=>e);return e=>{const r=n(e),i=!t.has(r);return t.add(r),i}}function*r(e){for(const t of e)yield*t}Object.defineProperty(t,"__esModule",{value:!0}),t.doSetsIntersect=t.isArrayEqual=t.asyncIterableToArray=t.flatten=t.flattenIterable=t.isDefined=t.scanMap=t.clean=t.unique=t.uniqueFilterFnGenerator=t.uniqueFn=void 0,t.uniqueFn=n,t.uniqueFilterFnGenerator=n,t.unique=function(e){return[...new Set(e)]},t.clean=function(e){const t=e;for(const e of Object.keys(t))void 0===t[e]&&delete t[e];return t},t.scanMap=function(e,t){let n=t,r=!0;return function(t){return r&&void 0===n?(r=!1,n=t,n):(n=e(n,t),n)}},t.isDefined=function(e){return void 0!==e},t.flattenIterable=r,t.flatten=function(e){return[...r(e)]},t.asyncIterableToArray=async function(e){const t=[];for await(const n of e)t.push(n);return t},t.isArrayEqual=function(e,t){if(e===t)return!0;let n=e.length===t.length;for(let r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__testing__=t.split=void 0;const r=n(90120),i=n(20111),o=n(73835),s=Object.freeze([]);function a(e,t){const n=function(e){const t=[],n=e.line.text.slice(0,e.relEnd);for(const r of n.matchAll(c(o.regExSplitWords,e.relStart))){if(void 0===r.index)break;const e=r.index+1;t.push({offset:r.index,breaks:[[e,e],s]})}const r=[];for(const t of n.matchAll(c(o.regExSplitWords2,e.relStart))){if(void 0===t.index)break;const e=t.index+t[1].length,n=e+1;r.push({offset:t.index,breaks:[[e,e],[n,n],s]})}return[t,r]}(e),r=function(e){function t(e){const t=e.index;if(void 0===t)return;const n=t+e[0].length;return{offset:t,breaks:[[t,n],[t,t],[n,n],s]}}return[u(e,o.regExPossibleWordBreaks,t),u(e,/\d+/g,t),u(e,o.regExEscapeCharacters,t)]}(e),a=function(e,t){function n(e){const t=e.index;if(void 0!==t)return{offset:t,breaks:[[t,t+e[0].length],s]}}const r=[u(e,o.regExDanglingQuote,n),u(e,o.regExTrailingEndings,n)];if(t){const o=new RegExp(`[${(0,i.escapeRegEx)(t)}]`,"gu");r.push(u(e,o,n))}return r}(e,t.optionalWordBreakCharacters);return function(...e){return[].concat(...e).sort(((e,t)=>e.offset-t.offset))}(...n,...r,...a)}function c(e,t){const n=new RegExp(e);return n.lastIndex=t,n}function u(e,t,n){const r=[],i=e.line.text.slice(0,e.relEnd);for(const o of i.matchAll(c(t,e.relStart))){const e=n(o);e&&r.push(e)}return r}function l(e,t,n){var i;const o=e.relEnd,s=new Map;function a(e,n,r,i){const s=o;for(;r=t.length?[]:t[r].breaks.map((function(t){const o=t.length<2?s-n:.5*(t[0]-n)+s-t[1];return{p:e,i:n,bi:r,bp:t,c:i,ec:i+o,text:void 0}}))}function c(e,t){return{text:e,offset:t,isFound:n({text:e,offset:t})}}function u(e,t){var n;for(let r=e;void 0!==r;r=r.p){const e=r.text,i=r.i,o=(!e||e.isFound?0:e.text.length)+(null!==(n=null==t?void 0:t.c)&&void 0!==n?n:0),a=s.get(i);if(a&&a.c<=o)return;const c={n:t,i,c:o,text:e};s.set(i,c),t=c}return t}let l=e.relEnd-e.relStart;const f=new r.PairingHeap((function(e,t){return e.ec-t.ec||t.i-e.i})),d=e.line.text;f.concat(a(void 0,e.relStart,0,0));let p,h=0;for(;l&&f.length&&h++<1e3;){const e=f.dequeue();if(e&&!(e.c>=l)){if(e.bp.length){const t=e.bp[0],n=e.bp[1],r=t>e.i?c(d.slice(e.i,t),e.i):void 0,i=!r||r.isFound?0:r.text.length,h=o-n;e.c+=i,e.ec=e.c+h,e.text=r;const g=s.get(n);if(g){const t=u(e,g);p=!p||t&&t.ce.i?c(d.slice(e.i,o),e.i):void 0,n=!t||t.isFound?0:t.text.length;e.c+=n,e.ec=e.c,e.text=t;const r=t||(null===(i=e.p)||void 0===i?void 0:i.text)||c("",e.i),s=u(t?{...e,text:r}:{...e,...e.p,text:r},void 0);p=!p||s&&s.c=0&&u.set(i,o),o})).map(p),endOffset:c+f.relEnd}},t.__testing__={generateWordBreaks:a}},79208:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=79208,e.exports=t},42864:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateText=t.IncludeExcludeFlag=t.checkText=void 0;var r=n(98936);Object.defineProperty(t,"checkText",{enumerable:!0,get:function(){return r.checkText}}),Object.defineProperty(t,"IncludeExcludeFlag",{enumerable:!0,get:function(){return r.IncludeExcludeFlag}}),Object.defineProperty(t,"validateText",{enumerable:!0,get:function(){return r.validateText}})},3777:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(2733),t)},13868:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseDictionary=t.parseLinesToDictionary=t.parseDictionaryLines=t.defaultParseDictionaryOptions=void 0;const r=n(80915),i=n(99764),o=n(74752),s=n(8437),a={commentCharacter:o.LINE_COMMENT,optionalCompoundCharacter:o.OPTIONAL_COMPOUND_FIX,compoundCharacter:o.COMPOUND_FIX,forbiddenPrefix:o.FORBID_PREFIX,caseInsensitivePrefix:o.CASE_INSENSITIVE_PREFIX,keepExactPrefix:o.IDENTITY_PREFIX,stripCaseAndAccents:!0};function c(e,t){const n=l(a,t),{commentCharacter:o,optionalCompoundCharacter:s,compoundCharacter:c,caseInsensitivePrefix:u,forbiddenPrefix:f,keepExactPrefix:d,stripCaseAndAccents:p}=n,h=new RegExp(o.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")+".*","g"),g=new Set([f,u,d,'"']);return r.operators.pipe(r.operators.filter((function(e){return"string"==typeof e})),r.operators.map((function(e){return e.replace(h,"").trim()})),r.operators.map((function(e){return e.trim()})),r.operators.filter((function(e){return!!e})),r.operators.concatMap((function*(e){if(e[0]===s){const t=e.slice(1);yield t,yield c+t}else yield e})),r.operators.concatMap((function*(e){if(e.slice(-1)===s){const t=e.slice(0,-1);yield t,yield t+c}else yield e})),r.operators.concatMap((function*(e){const t=function(e){return(0,i.normalizeWord)(function(e){return(e=e.replace(/"(.*)"/,"$1"))[0]===d?e.slice(1):e}(e))}(e),n=new Set;if(n.add(t),p&&!g.has(e[0]))for(const e of(0,i.normalizeWordForCaseInsensitive)(t))e!==t&&n.add(u+e);yield*n})),r.operators.map((function(e){return e.startsWith(u+u)?e.slice(1):e})))(e)}function u(e,t){const n=l(a,t),r=c(e,n);return(0,s.buildTrieFast)([...new Set(r)].sort(),{compoundCharacter:n.compoundCharacter,forbiddenWordPrefix:n.forbiddenPrefix,stripCaseAndAccentsPrefix:n.caseInsensitivePrefix})}function l(e,...t){const n={...e};for(const e of t)e&&Object.assign(n,e);return n}t.defaultParseDictionaryOptions=Object.freeze(a),t.parseDictionaryLines=c,t.parseLinesToDictionary=u,t.parseDictionary=function(e,t){return u(e.split("\n"),t)}},8437:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TrieBuilder=t.buildTrieFast=t.buildTrie=void 0;const r=n(64890),i=n(72779),o=n(99764),s=n(61753);t.buildTrie=function(e,t){return new a(e,t).build()},t.buildTrieFast=function(e,t){const n=(0,o.createTriFromList)(e,t);return new r.Trie(n,void 0)};class a{constructor(e,t){this.count=0,this.signatures=new s.SecondChanceCache(1e5),this.cached=new s.SecondChanceCache(1e6),this.transforms=new s.SecondChanceCache(1e6),this._eow=Object.freeze({f:1}),this.lastPath=[{s:"",n:{f:void 0,c:void 0}}],this.tails=new Map([["",this._eow]]),this._canBeCached(this._eow),this.signatures.set(this.signature(this._eow),this._eow),this.cached.set(this._eow,this.count++),this.trieOptions=Object.freeze((0,o.mergeOptionalWithDefaults)(t)),e&&this.insert(e)}set _root(e){this.lastPath[0].n=e}get _root(){return(0,o.trieNodeToRoot)(this.lastPath[0].n,this.trieOptions)}signature(e){return(e.f?"*":"")+(e.c?JSON.stringify([...e.c.entries()].map((([e,t])=>[e,this.cached.get(t)]))):"")}_canBeCached(e){if(!e.c)return!0;for(const t of e.c)if(!this.cached.has(t[1]))return!1;return!0}tryCacheFrozen(e){return this.cached.has(e)||this.cached.set(e,this.count++),e}freeze(e){if(Object.isFrozen(e))return e;if(e.c){const t=[...e.c].sort(((e,t)=>e[0][e,this.freeze(t)]));e.c=new Map(t),Object.freeze(e.c)}return Object.freeze(e)}tryToCache(e){if(!this._canBeCached(e))return e;const t=this.signature(e),n=this.signatures.get(t);return void 0!==n?this.tryCacheFrozen(n):(this.signatures.set(t,this.freeze(e)),e)}storeTransform(e,t,n){var r;if(!Object.isFrozen(n)||!Object.isFrozen(e))return;const i=null!==(r=this.transforms.get(e))&&void 0!==r?r:new Map;i.set(t,n),this.transforms.set(e,i)}addChild(e,t,n){var r,i,o;return(null===(r=e.c)||void 0===r?void 0:r.get(t))!==n&&(e.c&&!Object.isFrozen(e)||(e={...e,c:new Map(null!==(i=e.c)&&void 0!==i?i:[])}),null===(o=e.c)||void 0===o||o.set(t,n)),Object.isFrozen(n)?this.tryToCache(e):e}buildTail(e){const t=this.tails.get(e);if(t)return t;const n=e[0],r=e.slice(1),i=this.tails.get(r),o=i||this.buildTail(r),s=this.addChild({f:void 0,c:void 0},n,o);if(!i)return s;const a=this.tryCacheFrozen(Object.freeze(s));return this.tails.set(e,a),a}_insert(e,t,n){var r,i;const o=e;if(Object.isFrozen(e)){const n=null===(r=this.transforms.get(e))||void 0===r?void 0:r.get(t);if(n)return this.tryCacheFrozen(n)}if(!t)return e.c?((e=function(e){if(!Object.isFrozen(e))return e;const t=e.c?new Map(e.c):void 0;return{f:e.f,c:t}}(e)).f=this._eow.f,e):this._eow;const s=t[0],a=t.slice(1),c=null===(i=e.c)||void 0===i?void 0:i.get(s),u=c?this._insert(c,a,n+1):this.buildTail(a);return e=this.addChild(e,s,u),this.storeTransform(o,t,e),this.lastPath[n]={s,n:u},e}insertWord(e){let t=1;for(const n of e.split("")){const e=this.lastPath[t];if((null==e?void 0:e.s)!==n)break;t++}e.length0;){const{s:n,n:r}=this.lastPath[t];t-=1;const i=this.lastPath[t],o=i.n;if(i.n=this.addChild(o,n,r),o===i.n)break;const s=e.slice(t);this.storeTransform(o,s,i.n)}}insert(e){for(const t of e)t&&this.insertWord(t)}reset(){this._root=(0,o.createTrieRoot)(this.trieOptions),this.cached.clear(),this.signatures.clear(),this.signatures.set(this.signature(this._eow),this._eow),this.count=0,this.cached.set(this._eow,this.count++)}build(e=!1){const t=this._root;return this.reset(),new r.Trie(e?(0,i.consolidate)(t):t)}}t.TrieBuilder=a},16133:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChildMap=t.FLAG_WORD=void 0,t.FLAG_WORD=1;class n extends Map{}t.ChildMap=n},72779:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.consolidate=void 0;const r=n(16133),i=n(99764);t.consolidate=function(e){let t=0;const n=new Map,o=new Map,s=new Map;function a(e){return(e.f?"*":"")+(e.c?JSON.stringify([...e.c.entries()].map((([e,t])=>[e,o.get(t)]))):"")}function c(e){const r=s.get(e);if(r)return r;const i=e;if(e.c){const t=[...e.c].map((e=>[e[0],c(e[1])]));(function(e,t){for(const n of e)if(t.get(n[0])!==n[1])return!1;return e.length===t.size})(t,e.c)||(e={f:e.f,c:new Map(t)})}const u=a(e),l=n.get(u);return l?(s.set(i,l),l):(Object.freeze(e),n.set(u,e),o.set(e,t++),s.set(i,e),e)}const u=function e(t){if(t.f&&!t.c)return t;let n;if(t.c)for(const r of t.c.values())if(n=e(r),n)break;return n}(e)||{f:r.FLAG_WORD,c:void 0};return n.set(a(u),u),o.set(u,t++),(0,i.trieNodeToRoot)(function e(r){if(o.has(r))return r;if(Object.isFrozen(r))return s.get(r)||c(r);if(r.c){const t=[...r.c].sort(((e,t)=>e[0][t[0],e(t[1])]));r.c=new Map(t)}const i=a(r);return n.get(i)||(n.set(i,r),o.set(r,t++),r)}(e),e)}},74752:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultTrieOptions=t.IDENTITY_PREFIX=t.LINE_COMMENT=t.FORBID_PREFIX=t.CASE_INSENSITIVE_PREFIX=t.OPTIONAL_COMPOUND_FIX=t.COMPOUND_FIX=void 0,t.COMPOUND_FIX="+",t.OPTIONAL_COMPOUND_FIX="*",t.CASE_INSENSITIVE_PREFIX="~",t.FORBID_PREFIX="!",t.LINE_COMMENT="#",t.IDENTITY_PREFIX="=",t.defaultTrieOptions=Object.freeze({compoundCharacter:t.COMPOUND_FIX,forbiddenWordPrefix:t.FORBID_PREFIX,stripCaseAndAccentsPrefix:t.CASE_INSENSITIVE_PREFIX})},41269:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertToTrieRefNodes=void 0;const r=n(16133),i=n(80915);t.convertToTrieRefNodes=function(e){const t={f:r.FLAG_WORD,c:void 0},n=new Map([[t,0]]);let o=0;const s=new Map,a=new Map;function*c(e){var n;if(s.has(e))return;if(e.f&&!e.c)return void s.set(e,s.get(t));const r=[...(null===(n=e.c)||void 0===n?void 0:n.values())||[]].sort(((e,t)=>(a.get(t)||0)-(a.get(e)||0)));for(const e of r)yield*c(e);s.set(e,o++),yield u(e)}function u(e){const{f:t,c:n}=e,r=n?[...n].sort(((e,t)=>e[0][e,s.get(t)])):void 0;return r?t?{f:t,r}:{r}:{f:t}}return function e(r){var i;if(r.f&&!r.c)return void n.set(t,(n.get(t)||0)+1);const o=n.get(r);if(o)n.set(r,o+1);else{n.set(r,1);for(const t of(null===(i=r.c)||void 0===i?void 0:i.values())||[])e(t)}}(e),function e(r){const i=a.get(r);if(i)return i;if(!r.c){const e=n.get(t)||0;return a.set(r,e),e}const o=[...r.c.values()].reduce(((t,n)=>t+e(n)),n.get(r)||0);return a.set(r,o),o}(e),function*(e){s.set(t,o++),yield u(t),yield*function*(e){const t=[...(0,i.genSequence)(e).filter((e=>e[1]>=3))].sort(((e,t)=>t[1]-e[1]));for(const[e]of t)yield*c(e)}(n),yield*c(e)}(e)}},94841:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updatedWeightedMap=t.createWeightedMap=t.editDistanceWeighted=t.editDistance=void 0;const r=n(39265),i=n(47651),o=n(59285);t.editDistance=function(e,t,n=100){return(0,i.levenshteinDistance)(e,t)*n},t.editDistanceWeighted=function(e,t,n,i=100){return(0,r.distanceAStarWeighted)(e,t,n,i)},t.createWeightedMap=function(e){return(0,o.createWeightMap)(...e)},t.updatedWeightedMap=function(e,t){(0,o.addDefToWeightMap)(e,t)}},39265:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.distanceAStarWeightedEx=t.distanceAStarWeighted=void 0;const i=r(n(39491)),o=n(52533);function s(e,t,n,r=100){const o="^"+e+"$",s="^"+t+"$",c=o.length,u=s.length,l=new a(c,u);function f(e){const{ai:t,bi:n,c:i,p:a}=e;if(t{for(const n of t)l.add({...n,f:e})}))}let m;for(l.add({ai:0,bi:0,c:0,p:0,f:void 0});(m=l.next())&&(m.ai!==c||m.bi!==u);)h(m),d(m),p(m),g(m),f(m);return(0,i.default)(m),m}t.distanceAStarWeighted=function(e,t,n,r=100){const i=s(e,t,n,r),o=n.calcAdjustment(t);return i.c+i.p+o},t.distanceAStarWeightedEx=function(e,t,n,r=100){const i=s(e,t,n,r),o="^"+e+"$",a="^"+t+"$",c=n.calcAdjustment(t),u={a:o,b:a,cost:i.c+i.p+c,penalty:c,segments:[]},l=u.segments;for(let e=i;e.f;e=e.f){const t=e.f,n=o.slice(t.ai,e.ai),r=a.slice(t.bi,e.bi),i=e.c-t.c,s=e.p-t.p;l.push({a:n,b:r,c:i,p:s})}return l.reverse(),u};class a{constructor(e,t){this.aN=e,this.bN=t,this.pool=new o.PairingHeap(c),this.grid=[]}next(){let e;for(;e=this.pool.dequeue();)if(!e.d)return e}add(e){const t=(n=e.ai,r=e.bi,n*this.bN+r);var n,r;const i=this.grid[t];if(!i)return this.grid[t]=e,void this.pool.add(e);i.c<=e.c||(i.d=!0,this.grid[t]=e,this.pool.add(e))}}function c(e,t){return e.c-t.c||t.ai+t.bi-e.ai-e.bi}},76889:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.editDistanceWeighted=t.editDistance=t.createWeightedMap=void 0;var r=n(94841);Object.defineProperty(t,"createWeightedMap",{enumerable:!0,get:function(){return r.createWeightedMap}}),Object.defineProperty(t,"editDistance",{enumerable:!0,get:function(){return r.editDistance}}),Object.defineProperty(t,"editDistanceWeighted",{enumerable:!0,get:function(){return r.editDistanceWeighted}})},47651:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.levenshteinDistance=void 0,t.levenshteinDistance=function(e,t){const n=" "+e,r=" "+t,i=e.length+1,o=t.length+1,s=[];for(let e=0;e<=i;++e)s[e]=e;const a=[s,[1].concat(s),[2,1].concat(s)];let c=a[0],u=a[1];for(let e=2;e<=o;++e){const t=a[e%3];t[0]=u[0]+1,t[1]=u[1]+1;const o=r[e-1],s=r[e];let l=n[0];for(let e=2,r=1;e<=i;r=e,++e){const i=n[e],a=u[r]+(i==s?0:1),f=i==o&&l==s?c[r-1]+1:a;t[e]=Math.min(a,f,u[e]+1,t[r]+1),l=i}c=u,u=t}return u[i]}},59285:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__testing__=t.lookupReplaceCost=t.prettyPrintWeightMap=t.prettyPrintSwap=t.prettyPrintReplace=t.splitMapSubstrings=t.splitMapSubstringsIterable=t.addDefsToWeightMap=t.addAdjustment=t.addDefToWeightMap=t.createWeightMap=void 0;const r=n(3500),i=/[+∙•・●]/g;function o(e,t){function n(t,n){!function(e,t,n,r){if(void 0!==n)for(const i of t)l(e,i,n,r)}(e.insDel,t,n.insDel,n.penalty),d(e.replace,t,n.replace,n.penalty),d(e.swap,t,n.swap,n.penalty)}for(const e of t){const t=w(e);u(t).forEach((e=>n(e,t)))}return e}function s(e){const t=new Set([e]);return t.add(e.normalize("NFC")),t.add(e.normalize("NFD")),t}function*a(e){let t="",n=0;for(const r of e)n&&")"===r?(yield*s(t),n=0):n?t+=r:"("!==r?yield*s(r):(n=1,t="")}function c(e){return[...a(e)]}function u(e){const{map:t}=e;return t.split("|").map(c).filter((e=>e.length>0))}function l(e,t,n,r){if(!t)return;let i=e;for(const e of t){const t=i.n=i.n||Object.create(null);i=t[e]=t[e]||Object.create(null)}var o,s;i.c=(s=n,void 0===(o=i.c)?s:void 0===s||o<=s?o:s),i.p=function(e,t){return void 0===e?t:void 0===t||e>=t?e:t}(i.p,r)}function f(e,t,n,r,i){let o=e;for(const e of t){const t=o.n=o.n||Object.create(null);o=t[e]=t[e]||Object.create(null)}l(o.t=o.t||Object.create(null),n,r,i)}function d(e,t,n,r){if(void 0!==n)for(const i of t)for(const o of t)i!==o&&f(e,i,o,n,r)}function*p(e,t,n){const r=t.length;for(let i=e.n;nt+e+"\n")).join("")}function E(e,t="",n=" "){return["Replace:",...[...function*(){for(const{a:t,b:r,c:i,p:o}of m(e)){const e=o?` + ${o}`:"";yield n+`(${t}) -> (${r}) = ${i}${e}`}}()].sort()].map((e=>t+e+"\n")).join("")}function x(e,t="",n=" "){return["Swap:",...[...function*(){for(const{a:t,b:r,c:i,p:o}of m(e)){const e=o?` + ${o}`:"";yield n+`(${t}) <-> (${r}) = ${i}${e}`}}()].sort()].map((e=>t+e+"\n")).join("")}function w(e){const{map:t,...n}=e;return{...n,map:_(t)}}function _(e){return e.replace(i,r.DEFAULT_COMPOUNDED_WORD_SEPARATOR)}t.prettyPrintReplace=E,t.prettyPrintSwap=x,t.prettyPrintWeightMap=function(e){return[S(e.insDel),E(e.replace),x(e.swap)].join("\n")},t.lookupReplaceCost=function(e,t,n){var r,i;let o=e.replace;for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__testing__=t.createFindOptions=t.isForbiddenWord=t.isEndOfWordNode=t.findWordExact=t.findCompoundNode=t.findLegacyCompound=t.findWordNode=t.findWord=void 0;const r=n(74752),i=n(99764),o=n(16133),s={matchCase:!1,compoundMode:"compound",forbidPrefix:r.FORBID_PREFIX,compoundFix:r.COMPOUND_FIX,caseInsensitivePrefix:r.CASE_INSENSITIVE_PREFIX,legacyMinCompoundLength:3},a=new Map(["none","compound","legacy"].map((e=>[e,e])));function c(e,t,n){var r,i;const o=a.get(n.compoundMode)||s.compoundMode,c="compound"===n.compoundMode?null!==(r=e.compoundCharacter)&&void 0!==r?r:n.compoundFix:"",f=n.matchCase?"":null!==(i=e.stripCaseAndAccentsPrefix)&&void 0!==i?i:n.caseInsensitivePrefix;function h(){const r=function(e,t,n,r){const{found:i,compoundUsed:o,node:s,caseMatched:a}=l(e,t,n,r);return s&&s.f?{found:i,compoundUsed:o,node:s,forbidden:void 0,caseMatched:a}:{found:!1,compoundUsed:o,node:s,forbidden:void 0,caseMatched:a}}(e,t,c,f),i={...r};if(!1!==r.found&&r.compoundUsed){const o=r.caseMatched?e:p(e,n.caseInsensitivePrefix);i.forbidden=g(o,t,n.forbidPrefix)}return i}switch(o){case"none":return n.matchCase?function(){const r=p(e,t);return{found:d(r)&&t,compoundUsed:!1,forbidden:g(e,t,n.forbidPrefix),node:r,caseMatched:!0}}():h();case"compound":return h();case"legacy":return u(e,t,n)}}function u(e,t,n){const r=[e];return n.matchCase||r.push(p(e,n.caseInsensitivePrefix)),h(r,t,n.legacyMinCompoundLength)}function l(e,t,n,r){var i,o,s;const a=[{n:e,compoundPrefix:r,cr:void 0,caseMatched:!0}],c=n||r,u=r&&n?r+n:"",l=t.normalize();function f(t){var n;const i=t.compoundPrefix;let o,s=e;for(o=0;o0&&(!a[g].compoundPrefix||!(null===(s=null===(o=a[g].n)||void 0===o?void 0:o.c)||void 0===s?void 0:s.has(n))););if(!(g>=0&&a[g].compoundPrefix))break;{p=g>0;const e=f(a[g]);if(a[g]=e,!e.cr)break;if(!g&&!e.caseMatched&&l!==l.toLowerCase())break}}}return{found:g&&g===t.length&&t||!1,compoundUsed:p,node:d,forbidden:void 0,caseMatched:h}}function f(e,t){return d(p(e,t))}function d(e){return(null==e?void 0:e.f)===o.FLAG_WORD}function p(e,t){var n;const r=t;let i=e,o=0;for(;i&&o0;){const e=a[p];if(e.usedRoots=n||!e.subLength)&&u-p>=n)break}if(!(p>0||a[p].usedRoots0;const t=a[p];t.cr=e[t.usedRoots++],t.subLength=0,t.isCompound=f,t.caseMatched=t.caseMatched&&t.usedRoots<=1}}}return{found:function(){if(!t||p{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.walker=t.JOIN_SEPARATOR=t.hintedWalker=t.CompoundWordsMethod=t.FLAG_WORD=t.ChildMap=t.TrieBuilder=t.buildTrieFast=t.buildTrie=t.walk=t.trieNodeToRoot=t.orderTrie=t.normalizeWordToLowercase=t.normalizeWordForCaseInsensitive=t.normalizeWord=t.mergeOptionalWithDefaults=t.mergeDefaults=t.iteratorTrieWords=t.iterateTrie=t.isWordTerminationNode=t.isDefined=t.isCircular=t.insert=t.has=t.findNode=t.createTriFromList=t.createTrieRoot=t.countWords=t.countNodes=t.Trie=t.OPTIONAL_COMPOUND_FIX=t.OPTIONAL_COMPOUND=t.NORMALIZED=t.FORBID_PREFIX=t.FORBID=t.defaultTrieOptions=t.COMPOUND_FIX=t.COMPOUND=t.CASE_INSENSITIVE_PREFIX=t.suggestionCollector=t.impersonateCollector=t.parseDictionaryLines=t.parseDictionary=t.mapDictionaryInformationToWeightMap=t.serializeTrie=t.importTrie=t.editDistanceWeighted=t.editDistance=t.createWeightedMap=t.consolidate=void 0,t.WORD_SEPARATOR=void 0;var r=n(72779);Object.defineProperty(t,"consolidate",{enumerable:!0,get:function(){return r.consolidate}});var i=n(76889);Object.defineProperty(t,"createWeightedMap",{enumerable:!0,get:function(){return i.createWeightedMap}}),Object.defineProperty(t,"editDistance",{enumerable:!0,get:function(){return i.editDistance}}),Object.defineProperty(t,"editDistanceWeighted",{enumerable:!0,get:function(){return i.editDistanceWeighted}});var o=n(68597);Object.defineProperty(t,"importTrie",{enumerable:!0,get:function(){return o.importTrie}}),Object.defineProperty(t,"serializeTrie",{enumerable:!0,get:function(){return o.serializeTrie}});var s=n(91553);Object.defineProperty(t,"mapDictionaryInformationToWeightMap",{enumerable:!0,get:function(){return s.mapDictionaryInformationToWeightMap}});var a=n(13868);Object.defineProperty(t,"parseDictionary",{enumerable:!0,get:function(){return a.parseDictionary}}),Object.defineProperty(t,"parseDictionaryLines",{enumerable:!0,get:function(){return a.parseDictionaryLines}});var c=n(833);Object.defineProperty(t,"impersonateCollector",{enumerable:!0,get:function(){return c.impersonateCollector}}),Object.defineProperty(t,"suggestionCollector",{enumerable:!0,get:function(){return c.suggestionCollector}});var u=n(64890);Object.defineProperty(t,"CASE_INSENSITIVE_PREFIX",{enumerable:!0,get:function(){return u.CASE_INSENSITIVE_PREFIX}}),Object.defineProperty(t,"COMPOUND",{enumerable:!0,get:function(){return u.COMPOUND}}),Object.defineProperty(t,"COMPOUND_FIX",{enumerable:!0,get:function(){return u.COMPOUND_FIX}}),Object.defineProperty(t,"defaultTrieOptions",{enumerable:!0,get:function(){return u.defaultTrieOptions}}),Object.defineProperty(t,"FORBID",{enumerable:!0,get:function(){return u.FORBID}}),Object.defineProperty(t,"FORBID_PREFIX",{enumerable:!0,get:function(){return u.FORBID_PREFIX}}),Object.defineProperty(t,"NORMALIZED",{enumerable:!0,get:function(){return u.NORMALIZED}}),Object.defineProperty(t,"OPTIONAL_COMPOUND",{enumerable:!0,get:function(){return u.OPTIONAL_COMPOUND}}),Object.defineProperty(t,"OPTIONAL_COMPOUND_FIX",{enumerable:!0,get:function(){return u.OPTIONAL_COMPOUND_FIX}}),Object.defineProperty(t,"Trie",{enumerable:!0,get:function(){return u.Trie}});var l=n(99764);Object.defineProperty(t,"countNodes",{enumerable:!0,get:function(){return l.countNodes}}),Object.defineProperty(t,"countWords",{enumerable:!0,get:function(){return l.countWords}}),Object.defineProperty(t,"createTrieRoot",{enumerable:!0,get:function(){return l.createTrieRoot}}),Object.defineProperty(t,"createTriFromList",{enumerable:!0,get:function(){return l.createTriFromList}}),Object.defineProperty(t,"findNode",{enumerable:!0,get:function(){return l.findNode}}),Object.defineProperty(t,"has",{enumerable:!0,get:function(){return l.has}}),Object.defineProperty(t,"insert",{enumerable:!0,get:function(){return l.insert}}),Object.defineProperty(t,"isCircular",{enumerable:!0,get:function(){return l.isCircular}}),Object.defineProperty(t,"isDefined",{enumerable:!0,get:function(){return l.isDefined}}),Object.defineProperty(t,"isWordTerminationNode",{enumerable:!0,get:function(){return l.isWordTerminationNode}}),Object.defineProperty(t,"iterateTrie",{enumerable:!0,get:function(){return l.iterateTrie}}),Object.defineProperty(t,"iteratorTrieWords",{enumerable:!0,get:function(){return l.iteratorTrieWords}}),Object.defineProperty(t,"mergeDefaults",{enumerable:!0,get:function(){return l.mergeDefaults}}),Object.defineProperty(t,"mergeOptionalWithDefaults",{enumerable:!0,get:function(){return l.mergeOptionalWithDefaults}}),Object.defineProperty(t,"normalizeWord",{enumerable:!0,get:function(){return l.normalizeWord}}),Object.defineProperty(t,"normalizeWordForCaseInsensitive",{enumerable:!0,get:function(){return l.normalizeWordForCaseInsensitive}}),Object.defineProperty(t,"normalizeWordToLowercase",{enumerable:!0,get:function(){return l.normalizeWordToLowercase}}),Object.defineProperty(t,"orderTrie",{enumerable:!0,get:function(){return l.orderTrie}}),Object.defineProperty(t,"trieNodeToRoot",{enumerable:!0,get:function(){return l.trieNodeToRoot}}),Object.defineProperty(t,"walk",{enumerable:!0,get:function(){return l.walk}});var f=n(8437);Object.defineProperty(t,"buildTrie",{enumerable:!0,get:function(){return f.buildTrie}}),Object.defineProperty(t,"buildTrieFast",{enumerable:!0,get:function(){return f.buildTrieFast}}),Object.defineProperty(t,"TrieBuilder",{enumerable:!0,get:function(){return f.TrieBuilder}});var d=n(16133);Object.defineProperty(t,"ChildMap",{enumerable:!0,get:function(){return d.ChildMap}}),Object.defineProperty(t,"FLAG_WORD",{enumerable:!0,get:function(){return d.FLAG_WORD}});var p=n(68364);Object.defineProperty(t,"CompoundWordsMethod",{enumerable:!0,get:function(){return p.CompoundWordsMethod}}),Object.defineProperty(t,"hintedWalker",{enumerable:!0,get:function(){return p.hintedWalker}}),Object.defineProperty(t,"JOIN_SEPARATOR",{enumerable:!0,get:function(){return p.JOIN_SEPARATOR}}),Object.defineProperty(t,"walker",{enumerable:!0,get:function(){return p.walker}}),Object.defineProperty(t,"WORD_SEPARATOR",{enumerable:!0,get:function(){return p.WORD_SEPARATOR}})},68597:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.importTrie=t.serializeTrie=void 0;const s=n(80915),a=o(n(51612)),c=o(n(92681)),u=o(n(26055)),l=[a.serializeTrie,a.serializeTrie,c.serializeTrie,u.serializeTrie],f=[a.importTrie,a.importTrie,c.importTrie,u.importTrie];t.serializeTrie=function(e,t=16){const n="number"!=typeof t&&t.version?t.version:0,r=l[n];if(!r)throw new Error(`Unknown version: ${n}`);return r(e,t)},t.importTrie=function(e){const t=/^\s*#/,n=function*(e){yield*e}(e),r=function(e){const n=[];for(;;){const r=e.next();if(r.done)break;const i=r.value.trim();if(i&&!t.test(i)&&(n.push(i),i===a.DATA||i===c.DATA))break}return n}(n),i=function(e){const t=e.join("\n").match(/\bTrieXv(\d+)/);if(!t)throw new Error("Unknown file format");return parseInt(t[1],10)}(r),o=(0,s.genSequence)(r).concat(n),u=f[i];if(!u)throw new Error(`Unsupported version: ${i}`);return u(o)}},51612:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.importTrie=t.serializeTrie=t.DATA=void 0;const r=n(16133),i=n(80915),o=n(41269),s=n(99764);t.DATA="*";const a=/([[\]\\,:{}*])/g,c=/,(\}|\n)/g;function u(e,t){return(0,i.genSequence)(function*(e){if(e.f&&(yield"*"),e.r){const r=[...e.r].sort(((e,t)=>e[0]36?36:n<10?10:n,a=(l=e,(0,i.genSequence)((0,o.convertToTrieRefNodes)(l))).map((e=>[...u(e,s),"\n"].join("").replace(c,"$1")));var l;return function(e,t){const n=["#!/usr/bin/env cspell-trie reader","TrieXv1","base="+e].concat(t?t.split("\n").map((e=>"# "+e)):[]).concat(["# Data:"]);return(0,i.genSequence)(n).map((e=>e+"\n"))}(s,r).concat(a)},t.importTrie=function(e){let n=16;const o=/^\s*#/,a=function*(e){yield*e}(e),c=/(^|[^\\]),/g,u=/__COMMA__/g,l=/[\\](.)/g,f={f:r.FLAG_WORD};!function(e){const r=[];for(;;){const n=e.next();if(n.done)break;const i=n.value.trim();if(i&&!o.test(i)){if(i===t.DATA)break;r.push(i)}}!function(e){const t=e.slice(0,2).join("\n"),r=/^TrieXv1\nbase=(\d+)$/;if(!r.test(t))throw new Error("Unknown file format");n=Number.parseInt(t.replace(r,"$1"),10)}(r)}(a);const d=(0,i.genSequence)([t.DATA]).concat(a).map((e=>e.replace(/\r?\n/,""))).filter((e=>!!e)).reduce(((e,t)=>{const{lines:i,nodes:o}=e,s=function(e,t){const i="*"===e[0];e=i?e.slice(1):e;const o=i?f:{},s=function(e){return e.replace(c,"$1__COMMA__").split(u).map((e=>e.replace(l,"$1")))}(e).filter((e=>!!e)).map((e=>[e[0],Number.parseInt(e.slice(1)||"0",n)])).map((([e,n])=>[e,t[n]]));return{...s.length?{c:new r.ChildMap(s)}:{},...o}}(t,o);return o[i]=s,{lines:i+1,root:s,nodes:o}}),{lines:0,nodes:[],root:{}});return(0,s.trieNodeToRoot)(d.root,{})}},92681:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.importTrie=t.serializeTrie=t.DATA=void 0;const r=n(16133),i=n(80915),o=n(99764);function s(e){return(0,i.genSequence)(function*e(t,n,r){const i=function(e,t){var n;const r=e;return r.s=null!==(n=r.s)&&void 0!==n?n:t,r}(t,n);if(i.c)for(const t of i.c)yield*e(t[1],t[0],i);else yield{n:i,p:r}}(e,""))}function a(e){const t=e.f?"*":"",n=e.r?e.r.sort(((e,t)=>e-t)).join(","):"";return e.s+t+n}t.DATA="__DATA__",t.serializeTrie=function(e,n=16){n="number"==typeof n?{base:n}:n;const{base:r=16,comment:o=""}=n,c=r>36?36:r<10?10:r,u={...e,s:"^"},l=(f=u,(0,i.genSequence)(function*(){let e=100,t=0,n=0;do{t=0;const r=new Map;for(const e of s(f)){const i=a(e.n);let o=r.get(i);void 0===o&&(yield e.n,o=n,r.set(i,o),n+=1),e.p&&e.p.c&&(e.p.r=e.p.r||[],e.p.r.push(o),e.p.c.delete(e.n.s),e.p.c.size||delete e.p.c),t+=1}e-=1}while(t&&e&&f.c);yield f}())).map((e=>function(e,t){const n=e.f?"*":"",r=e.r?e.r.sort(((e,t)=>e-t)).map((e=>e.toString(t))).join(","):"";return e.s+n+r}(e,r)));var f;return function(e,n){const r=["#!/usr/bin/env cspell-trie reader","TrieXv2","base="+e].concat(n?n.split("\n").map((e=>"# "+e)):[]).concat(["# Data:",t.DATA]);return(0,i.genSequence)(r)}(c,o).concat(l).map((e=>e+"\n"))},t.importTrie=function(e){let n=16;const s=/^\s*#/,a=function*(e){yield*e}(e),c={f:r.FLAG_WORD};!function(e){const r=[];for(;;){const n=e.next();if(n.done)break;const i=n.value.trim();if(i&&!s.test(i)){if(i===t.DATA)break;r.push(i)}}!function(e){const t=e.slice(0,2).join("\n"),r=/^TrieXv2\nbase=(\d+)$/;if(!r.test(t))throw new Error("Unknown file format");n=Number.parseInt(t.replace(r,"$1"),10)}(r)}(a);const u=(0,i.genSequence)(a).map((e=>e.replace(/\r?\n/,""))).filter((e=>!!e)).reduce(((e,t)=>{const{nodes:i}=e,o=function(e,t){const{letter:i,isWord:o,refs:s}=function(e,t){const n="*"===e[1],r=n?2:1,i=e.slice(r).split(",").filter((e=>!!e)).map((e=>parseInt(e,t)));return{letter:e[0],isWord:n,refs:i}}(e,n),a=o?c:{},u=s.map((e=>t[e])).sort(((e,t)=>e.s[e.s,e]));return{s:i,...u.length?{c:new r.ChildMap(u)}:{},...a}}(t,i);return i.push(o),{root:o,nodes:i}}),{nodes:[],root:{s:"",c:new Map}});return(0,o.trieNodeToRoot)(u.root,{})}},26055:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.importTrie=t.serializeTrie=t.DATA=void 0;const r=n(16133),i=n(80915),o=n(54987),s=n(99764),a="$",c="<",u="\n",l="\r",f="#",d=";",p="\\",h=new Set([a,c,u,f,d,p,l].concat("0123456789".split("")).concat("`~!@#$%^&*()_-+=[]{};:'\"<>,./?\\|".split(""))),g=new Map([["\n","\\n"],["\r","\\r"],["\\","\\\\"]]),m=new Map([...g].map((e=>[e[1],e[0]])));t.DATA="__DATA__",t.serializeTrie=function(e,n=16){n="number"==typeof n?{base:n}:n;const{base:r=16,comment:s=""}=n,l=r>36?36:r<10?10:r,f=new Map;let d=0;const m={last:"",count:0};function y(e){return h.has(e)?p+(g.get(e)||e):e}function*v(){for(;m.count;){const e=Math.min(9,m.count);yield e>1?m.last+e:m.last,m.last=c,m.count-=e}}function*b(e){switch(e){case a:yield*v(),m.last=a,m.count=0;break;case c:m.count++;break;default:yield*v(),yield e}}function*S(e,t){const n=f.get(e);if(void 0===n){var r;if(e.c){f.set(e,d++);const n=[...e.c].sort(((e,t)=>e[0]"# "+e)):[]).concat(["# Data:",t.DATA]);return(0,i.genSequence)(r).map((e=>e+"\n"))}(l,s).concat((0,o.bufferLines)((0,o.bufferLines)(function*(e){yield*S(e,0),yield*v()}(e),120,"\n"),10,""))},t.importTrie=function(e){const n=(0,s.trieNodeToRoot)({},{});let o=16;const h=/^\s*#/,g=function*(e){yield*e}(e);!function(e){const n=[];for(;;){const r=e.next();if(r.done)break;const i=r.value.trim().replace(/\r|\n/g,"");if(i&&!h.test(i)){if(i===t.DATA)break;n.push(i)}}!function(e){const t=e.slice(0,2).join("\n"),n=/^TrieXv3\nbase=(\d+)$/;if(!n.test(t))throw new Error("Unknown file format");o=Number.parseInt(t.replace(n,"$1"),10)}(n)}(g);const y=(0,i.genSequence)(g).concatMap((e=>e.split(""))).reduce(function(e){const t=Object.freeze({f:1});function n(e,t){var n;const{root:r,nodes:i,stack:o}=e,s=o[o.length-1].node;s.c=null!==(n=s.c)&&void 0!==n?n:new Map;const a={f:void 0,c:void 0,n:i.length};return s.c.set(t,a),o.push({node:a,s:t}),i.push(a),{root:r,nodes:i,stack:o,parser:void 0}}const i=new Set((c+"23456789").split(""));function o(e,t){if(!i.has(t))return g({...e,parser:void 0},t);let n=t===c?1:parseInt(t,10)-1;const{stack:r}=e;for(;n-- >0;)r.pop();return{...e,parser:o}}function s(e,t){return e}const h=new Map([[a,function(e,n){var i;const s=o,{root:a,nodes:c,stack:u}=e,l=u[u.length-1],f=l.node;return f.f=r.FLAG_WORD,f.c||(l.node=t,null===(i=u[u.length-2].node.c)||void 0===i||i.set(l.s,t),c.pop()),u.pop(),{root:a,nodes:c,stack:u,parser:s}}],[c,o],[f,function(t,n){let r="";const{nodes:i}=t;return i.pop(),{...t,nodes:i,parser:function(t,n){var i;if(n===d){const{root:n,nodes:o,stack:s}=t,a=parseInt(r,e),c=s[s.length-1];return null===(i=s[s.length-2].node.c)||void 0===i||i.set(c.s,o[a]),{root:n,nodes:o,stack:s,parser:void 0}}return r+=n,t}}}],[p,function(e,t){let r="";return{...e,parser:function(e,t){return r?(t=m.get(r+t)||t,n({...e,parser:void 0},t)):t===p?(r=t,e):n({...e,parser:void 0},t)}}}],[u,s],[l,s]]);function g(e,t){var r,i;return(null!==(i=null!==(r=e.parser)&&void 0!==r?r:h.get(t))&&void 0!==i?i:n)(e,t)}return g}(o),{nodes:[n],root:n,stack:[{node:n,s:""}],parser:void 0});return y.root}},6259:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapEditCosts=t.mapHunspellCosts=void 0;const r=n(33365),i={accentCosts:1,baseCost:100,capsCosts:1,firstLetterPenalty:4,nonAlphabetCosts:110},o={...i,ioConvertCost:30,keyboardCost:99,mapCost:25,replaceCosts:75,tryCharCost:100};t.mapHunspellCosts=function(e={}){return{...o,...(0,r.cleanCopy)(e)}},t.mapEditCosts=function(e={}){return{...i,...(0,r.cleanCopy)(e)}}},30083:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapDictionaryInformationToAdjustment=t.mapDictionaryInformation=void 0;const r=n(46444),i=n(2073),o=n(33365),s=n(6259),a=n(91657),c=n(58200);function u(e,t,n){const i=l(e,"a-zA-Z",n.baseCost);return[...(0,r.pipeSync)(i,(0,r.opMap)((e=>(0,c.parseAlphabet)(e,t,n))),(0,r.opFlatten)()),...(0,c.calcFirstCharacterReplaceDefs)(i,n)]}function l(e,t,n,r){return(e=null!=e?e:t)?("string"==typeof e&&(e=[{characters:e,cost:n}]),void 0!==r&&e.forEach((e=>e.penalty=r)),e):[]}function f(e){const{id:t,regexp:n,penalty:r}=e;return{id:t,regexp:new RegExp(n),penalty:r}}t.mapDictionaryInformation=function(e){const t=e.locale,n=t?(0,i.parseLocale)(t).filter((e=>e.isValid())):void 0,r=null==n?void 0:n.map((e=>e.locale)),f=(0,s.mapEditCosts)(e.costs),d=e.suggestionEditCosts||[],p=e.hunspellInformation?(0,a.hunspellInformationToSuggestionCostDef)(e.hunspellInformation,n):[];return[...d,...u(e.alphabet,r,f),...(h=e.accents,g=f,l(h,"̀-́",g.accentCosts).map((e=>(0,c.parseAccents)(e,g))).filter(o.isDefined)),...p];var h,g},t.mapDictionaryInformationToAdjustment=function(e){return e.adjustments?e.adjustments.map(f):[]}},91553:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__testing__=t.mapDictionaryInformationToWeightMap=void 0;const r=n(59285),i=n(30083),o=[{map:"1234567890-.",insDel:1,penalty:200}],s=[{id:"compound-case-change",regexp:/\p{Ll}∙\p{Lu}/gu,penalty:1e3},{id:"short-compounds-1",regexp:/^[^∙]{0,2}(?=∙)|∙[^∙]{0,2}(?=∙|$)/gm,penalty:100},{id:"short-compounds-3",regexp:/^[^∙]{3}(?=∙)|∙[^∙]{3}(?=∙|$)/gm,penalty:50}];t.mapDictionaryInformationToWeightMap=function(e){const t=(0,i.mapDictionaryInformation)(e).concat(o),n=(0,i.mapDictionaryInformationToAdjustment)(e),a=(0,r.createWeightMap)(...t);return(0,r.addAdjustment)(a,...s,...n),a},t.__testing__={}},91657:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__testing__=t.joinLetters=t.hunspellInformationToSuggestionCostDef=void 0;const r=n(46444),i=n(7053),o=n(33365),s=n(6259),a=n(58200);function c(e={},t){const n=(null==t?void 0:t.length)?t.map((e=>e.locale)):void 0;return{...(0,s.mapHunspellCosts)(e),locale:n}}t.hunspellInformationToSuggestionCostDef=function(e,t){const n=c(e.costs,t),i=[b,S,l,w,E,g,y,d,x,p];return function(e,t){const n=/^(?:MAP|KEY|TRY|NO-TRY|ICONV|OCONV|REP)\s/,s=/^(?:MAP|KEY|TRY|ICONV|OCONV|REP)\s+\d+$/,a=e.split("\n").map((e=>e.replace(/#.*/,""))).map((e=>e.trim())).filter((e=>n.test(e))).filter((e=>!s.test(e)));return[...(0,r.pipeSync)(a,(0,r.opMap)((e=>(0,r.pipeSync)(i,(0,r.opMap)((n=>n(e,t))),(0,r.opMap)(C),(0,r.opFlatten)()))),(0,r.opFlatten)(),(0,r.opFilter)(o.isDefined))]}(e.aff,n)};const u=/^(?:MAP)\s+(\S+)$/;function l(e,t){const n=e.match(u);if(!n)return;const r=n[1],i=t.mapCost;return{map:r,replace:i,swap:i}}const f=/^(?:TRY)\s+(\S+)$/;function d(e,t){const n=e.match(f);if(!n)return;const r=t.tryCharCost,i=n[1];return(0,a.parseAlphabet)({characters:i,cost:r},t.locale,t)}function p(e,t){const n=e.match(f);if(!n)return;const r=n[1],i=t.tryCharCost;return(0,a.calcFirstCharacterReplace)({characters:r,cost:i},t)}const h=/^NO-TRY\s+(\S+)$/;function g(e,t){const n=e.match(h);if(n)return{map:n[1],insDel:Math.max(t.nonAlphabetCosts-t.tryCharCost,0),penalty:t.nonAlphabetCosts+t.tryCharCost}}const m=/^(?:REP|(?:I|O)CONV)\s+(\S+)\s+(\S+)$/;function y(e,t){const n=e.match(m);if(!n)return;const r=e.startsWith("REP")?t.replaceCosts:t.ioConvertCost,i=n[1];let o=n[2];return o=o.replace(/^0$/,""),i.startsWith("^")&&!o.startsWith("^")&&(o="^"+o),i.endsWith("$")&&!o.endsWith("$")&&(o+="$"),{map:O([i,o]),replace:r}}const v=/^(?:KEY)\s+(\S+)$/;function b(e,t){const n=e.match(v);if(!n)return;const r=n[1],i=[...(0,a.splitMap)(r)].map(function(e,t){let n={a:"|",b:"|"};return(e,t)=>{return r=e,n={a:n.b,b:r};var r}}()).filter((e=>"|"!==e.a&&"|"!==e.b)).map((({a:e,b:t})=>O([e,t]))),s=i.map((e=>e.toLocaleUpperCase(t.locale))),c=(0,o.unique)(i.concat(s)).join("|"),u=t.keyboardCost;return{map:c,replace:u,swap:u}}function S(e,t){const n=e.match(v);if(n)return _(n[1],t)}function E(e,t){const n=e.match(u);if(n)return _(n[1],t)}function x(e,t){const n=e.match(f);if(n)return(0,a.calcCostsForAccentedLetters)(n[1],t.locale,t)}function w(e,t){const n=e.match(u);if(n)return(0,a.calcCostsForAccentedLetters)(n[1],t.locale,t)}function _(e,t){const n=t.locale,r=[...(0,a.splitMap)(e)].filter((e=>"|"!==e)).map((e=>(0,i.caseForms)(e,n))).filter((e=>e.length>1)).map(O),s=(0,o.unique)(r).join("|"),c=t.capsCosts;if(s)return{map:s,replace:c}}function O(e){return[...e].map((e=>e.length>1||!e.length?`(${e})`:e)).join("")}function C(e){return Array.isArray(e)?e:[e]}t.joinLetters=O,t.__testing__={affKey:b,affKeyCaps:S,affMap:l,affMapAccents:w,affMapCaps:E,affNoTry:g,affRepConv:y,affTry:d,affTryAccents:x,affTryFirstCharacterReplace:p,calcCosts:c,split:a.splitMap}},58200:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.splitMap=t.calcCostsForAccentedLetters=t.parseAccents=t.calcFirstCharacterReplace=t.calcFirstCharacterReplaceDefs=t.parseAlphabetCaps=t.parseAlphabet=void 0;const r=n(46444),i=n(50162),o=n(7053),s=n(33365),a=n(91657);function c(e,t,n){const i=(0,o.expandCharacterSet)(e);return{map:[...(0,r.pipeSync)(i,(0,r.opMap)((e=>(0,o.caseForms)(e,t).sort())))].map((e=>(0,a.joinLetters)(e))).join("|"),replace:n.capsCosts}}function u(e,t){const n=[...(0,r.pipeSync)((0,o.expandCharacterSet)(e.characters),(0,r.opUnique)(),(0,r.opMap)((e=>`(^${e})`)))].sort().join("")+"(^)",i=t.firstLetterPenalty;return{map:n,replace:e.cost-i,penalty:2*i}}function l(e,t,n){const i=[...(0,r.pipeSync)(f(e),(0,r.opMap)((e=>(0,o.caseForms)(e,t))),(0,r.opFlatten)(),(0,r.opMap)((e=>[...(0,o.accentForms)(e)])),(0,r.opFilter)((e=>e.length>1)))],s=[...(0,r.pipeSync)(i,(0,r.opMap)((e=>new Set([...e,...e.map((e=>(0,o.stripAccents)(e)))]))),(0,r.opMap)((e=>[...e].sort())),(0,r.opFilter)((e=>e.length>1)),(0,r.opMap)(a.joinLetters),(0,r.opUnique)())].join("|"),c=n.accentCosts,u=s?[{map:s,replace:c}]:[],l=i.map((e=>e.sort())).map(a.joinLetters).join("|");return[...u,...l?[{map:l,replace:0}]:[]]}function*f(e){let t="",n=0;for(const r of e)n&&")"===r?(yield t,n=0):n?t+=r:"("!==r?yield r:(n=1,t="")}t.parseAlphabet=function(e,t,n){const{cost:i,penalty:u}=e,f=(0,o.expandCharacterSet)(e.characters),d=[...(0,r.pipeSync)(f,(0,r.opMap)((e=>(0,o.caseForms)(e,t).sort())))],p=(0,a.joinLetters)([...(0,r.pipeSync)(d,(0,r.opFlatten)(),(0,r.opMap)((e=>(0,o.accentForms)(e))),(0,r.opFlatten)(),(0,r.opUnique)())].sort());return[(0,s.clean)({map:p,replace:i,insDel:i,swap:i,penalty:u}),c(e.characters,t,n),...l(p,t,n)]},t.parseAlphabetCaps=c,t.calcFirstCharacterReplaceDefs=function(e,t){return e.map((e=>u(e,t)))},t.calcFirstCharacterReplace=u,t.parseAccents=function(e,t){const{cost:n,penalty:c}=e,u=(0,a.joinLetters)([...(0,r.pipeSync)((0,o.expandCharacterSet)(e.characters),(0,i.map)((e=>(0,o.stripNonAccents)(e))))]);if(u)return(0,s.clean)({map:u,replace:n,insDel:n,penalty:c})},t.calcCostsForAccentedLetters=l,t.splitMap=f},2073:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseLocale=t.Locale=void 0;var r=n(41229);Object.defineProperty(t,"Locale",{enumerable:!0,get:function(){return r.Locale}}),Object.defineProperty(t,"parseLocale",{enumerable:!0,get:function(){return r.parseLocale}})},43381:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.codes=void 0,t.codes=[["af","Afrikaans"],["af-NA","Afrikaans","Namibia"],["af-ZA","Afrikaans","South Africa"],["ak","Akan"],["ak-GH","Akan","Ghana"],["am","Amharic"],["am-ET","Amharic","Ethiopia"],["ar","Arabic"],["ar-1","Arabic"],["ar-AE","Arabic","United Arab Emirates"],["ar-BH","Arabic","Bahrain"],["ar-DJ","Arabic","Djibouti"],["ar-DZ","Arabic","Algeria"],["ar-EG","Arabic","Egypt"],["ar-EH","Arabic"],["ar-ER","Arabic","Eritrea"],["ar-IL","Arabic","Israel"],["ar-IQ","Arabic","Iraq"],["ar-JO","Arabic","Jordan"],["ar-KM","Arabic","Comoros"],["ar-KW","Arabic","Kuwait"],["ar-LB","Arabic","Lebanon"],["ar-LY","Arabic","Libya"],["ar-MA","Arabic","Morocco"],["ar-MR","Arabic","Mauritania"],["ar-OM","Arabic","Oman"],["ar-PS","Arabic"],["ar-QA","Arabic","Qatar"],["ar-SA","Arabic","Saudi Arabia"],["ar-SD","Arabic","Sudan"],["ar-SO","Arabic","Somalia"],["ar-SS","Arabic"],["ar-SY","Arabic","Syria"],["ar-TD","Arabic","Chad"],["ar-TN","Arabic","Tunisia"],["ar-YE","Arabic","Yemen"],["as","Assamese"],["as-IN","Assamese","India"],["az","Azerbaijani"],["az-AZ","Azerbaijani","Azerbaijan"],["be","Belarusian"],["be-BY","Belarusian","Belarus"],["bg","Bulgarian"],["bg-BG","Bulgarian","Bulgaria"],["bm","Bambara"],["bm-ML","Bambara","Mali"],["bn","Bengali"],["bn-BD","Bengali","Bangladesh"],["bn-IN","Bengali","India"],["bo","Tibetan"],["bo-CN","Tibetan","China"],["bo-IN","Tibetan","India"],["br","Breton"],["br-FR","Breton","France"],["bs","Bosnian"],["bs-BA","Bosnian","Bosnia and Herzegovina"],["ca","Catalan"],["ca-AD","Catalan","Andorra"],["ca-ES","Catalan","Spain"],["ca-FR","Catalan","France"],["ca-IT","Catalan","Italy"],["ce","Chechen"],["ce-RU","Chechen","Russia"],["cs","Czech"],["cs-CZ","Czech","Czech Republic"],["cu","Old Slavonic"],["cu-RU","Old Slavonic","Russia"],["cy","Welsh"],["cy-GB","Welsh","United Kingdom"],["da","Danish"],["da-DK","Danish","Denmark"],["da-GL","Danish","Greenland"],["de","German"],["de-AT","German","Austria"],["de-BE","German","Belgium"],["de-CH","German","Switzerland"],["de-DE","German","Germany"],["de-IT","German","Italy"],["de-LI","German","Liechtenstein"],["de-LU","German","Luxembourg"],["dz","Dzongkha"],["dz-BT","Dzongkha","Bhutan"],["ee","Ewe"],["ee-GH","Ewe","Ghana"],["ee-TG","Ewe","Togo"],["el","Greek","Modern (1453-)"],["el-CY","Greek","Cyprus"],["el-GR","Greek","Greece"],["en","English"],["en-AG","English","Antigua and Barbuda"],["en-AI","English","Anguilla"],["en-AS","English","American Samoa"],["en-AT","English","Austria"],["en-AU","English","Australia"],["en-BB","English","Barbados"],["en-BE","English","Belgium"],["en-BI","English","Burundi"],["en-BM","English","Bermuda"],["en-BS","English","Bahamas"],["en-BW","English","Botswana"],["en-BZ","English","Belize"],["en-CA","English","Canada"],["en-CC","English","Cocos (Keeling) Islands"],["en-CH","English","Switzerland"],["en-CK","English","Cook Islands"],["en-CM","English","Cameroon"],["en-CX","English","Christmas Island"],["en-CY","English","Cyprus"],["en-DE","English","Germany"],["en-DG","English"],["en-DK","English","Denmark"],["en-DM","English","Dominica"],["en-ER","English","Eritrea"],["en-FI","English","Finland"],["en-FJ","English","Fiji"],["en-FK","English","Falkland Islands (Islas Malvinas)"],["en-FM","English","Micronesia"],["en-GB","English","United Kingdom"],["en-GD","English","Grenada"],["en-GG","English","Guernsey"],["en-GH","English","Ghana"],["en-GI","English","Gibraltar"],["en-GM","English","Gambia"],["en-GU","English","Guam"],["en-GY","English","Guyana"],["en-HK","English","Hong Kong"],["en-IE","English","Ireland"],["en-IL","English","Israel"],["en-IM","English","Isle of Man"],["en-IN","English","India"],["en-IO","English","British Indian Ocean Territory"],["en-JE","English","Jersey"],["en-JM","English","Jamaica"],["en-KE","English","Kenya"],["en-KI","English","Kiribati"],["en-KN","English","Saint Kitts and Nevis"],["en-KY","English","Cayman Islands"],["en-LC","English","Saint Lucia"],["en-LR","English","Liberia"],["en-LS","English","Lesotho"],["en-MG","English","Madagascar"],["en-MH","English","Marshall Islands"],["en-MO","English","Macau"],["en-MP","English","Northern Mariana Islands"],["en-MS","English","Montserrat"],["en-MT","English","Malta"],["en-MU","English","Mauritius"],["en-MW","English","Malawi"],["en-MY","English","Malaysia"],["en-NA","English","Namibia"],["en-NF","English","Norfolk Island"],["en-NG","English","Nigeria"],["en-NL","English","Netherlands"],["en-NR","English","Nauru"],["en-NU","English","Niue"],["en-NZ","English","New Zealand"],["en-PG","English","Papua New Guinea"],["en-PH","English","Philippines"],["en-PK","English","Pakistan"],["en-PN","English","Pitcairn Islands"],["en-PR","English","Puerto Rico"],["en-PW","English","Palau"],["en-RW","English","Rwanda"],["en-SB","English","Solomon Islands"],["en-SC","English","Seychelles"],["en-SD","English","Sudan"],["en-SE","English","Sweden"],["en-SG","English","Singapore"],["en-SH","English","Saint Helena"],["en-SI","English","Slovenia"],["en-SL","English","Sierra Leone"],["en-SS","English"],["en-SX","English"],["en-SZ","English","Swaziland"],["en-TC","English","Turks and Caicos Islands"],["en-TK","English","Tokelau"],["en-TO","English","Tonga"],["en-TT","English","Trinidad and Tobago"],["en-TV","English","Tuvalu"],["en-TZ","English","Tanzania"],["en-UG","English","Uganda"],["en-UM","English","Baker Island"],["en-US","English","United States"],["en-VC","English","Saint Vincent and the Grenadines"],["en-VG","English","British Virgin Islands"],["en-VI","English","U.S. Virgin Islands"],["en-VU","English","Vanuatu"],["en-WS","English","Samoa"],["en-ZA","English","South Africa"],["en-ZM","English","Zambia"],["en-ZW","English","Zimbabwe"],["eo","Esperanto"],["es","Spanish"],["es-AR","Spanish","Argentina"],["es-BO","Spanish","Bolivia"],["es-BR","Spanish","Brazil"],["es-BZ","Spanish","Belize"],["es-CL","Spanish","Chile"],["es-CO","Spanish","Colombia"],["es-CR","Spanish","Costa Rica"],["es-CU","Spanish","Cuba"],["es-DO","Spanish","Dominican Republic"],["es-EA","Spanish"],["es-EC","Spanish","Ecuador"],["es-ES","Spanish","Spain"],["es-GQ","Spanish","Equatorial Guinea"],["es-GT","Spanish","Guatemala"],["es-HN","Spanish","Honduras"],["es-IC","Spanish"],["es-MX","Spanish","Mexico"],["es-NI","Spanish","Nicaragua"],["es-PA","Spanish","Panama"],["es-PE","Spanish","Peru"],["es-PH","Spanish","Philippines"],["es-PR","Spanish","Puerto Rico"],["es-PY","Spanish","Paraguay"],["es-SV","Spanish","El Salvador"],["es-US","Spanish","United States"],["es-UY","Spanish","Uruguay"],["es-VE","Spanish","Venezuela"],["et","Estonian"],["et-EE","Estonian","Estonia"],["eu","Basque"],["eu-ES","Basque","Spain"],["fa","Persian"],["fa-AF","Persian","Afghanistan"],["fa-IR","Persian","Iran"],["ff","Fulah"],["ff-CM","Fulah","Cameroon"],["ff-GN","Fulah","Guinea"],["ff-MR","Fulah","Mauritania"],["ff-SN","Fulah","Senegal"],["fi","Finnish"],["fi-FI","Finnish","Finland"],["fo","Faroese"],["fo-DK","Faroese","Denmark"],["fo-FO","Faroese","Faroe Islands"],["fr","French"],["fr-BE","French","Belgium"],["fr-BF","French","Burkina Faso"],["fr-BI","French","Burundi"],["fr-BJ","French","Benin"],["fr-BL","French"],["fr-CA","French","Canada"],["fr-CD","French","Congo"],["fr-CF","French","Central African Republic"],["fr-CG","French","Congo"],["fr-CH","French","Switzerland"],["fr-CI","French, Cote d'Ivoire (Ivory Coast)"],["fr-CM","French","Cameroon"],["fr-DJ","French","Djibouti"],["fr-DZ","French","Algeria"],["fr-FR","French","France"],["fr-GA","French","Gabon"],["fr-GF","French","French Guiana"],["fr-GN","French","Guinea"],["fr-GP","French","Saint Barthelemy"],["fr-GQ","French","Equatorial Guinea"],["fr-HT","French","Haiti"],["fr-KM","French","Comoros"],["fr-LU","French","Luxembourg"],["fr-MA","French","Morocco"],["fr-MC","French","Monaco"],["fr-MF","French"],["fr-MG","French","Madagascar"],["fr-ML","French","Mali"],["fr-MQ","French","Martinique"],["fr-MR","French","Mauritania"],["fr-MU","French","Mauritius"],["fr-NC","French","New Caledonia"],["fr-NE","French","Niger"],["fr-PF","French","French Polynesia"],["fr-PM","French","Saint Pierre and Miquelon"],["fr-RE","French","Reunion"],["fr-RW","French","Rwanda"],["fr-SC","French","Seychelles"],["fr-SN","French","Senegal"],["fr-SY","French","Syria"],["fr-TD","French","Chad"],["fr-TG","French","Togo"],["fr-TN","French","Tunisia"],["fr-VU","French","Vanuatu"],["fr-WF","French","Wallis and Futuna"],["fr-YT","French","Mayotte"],["fy","Western Frisian"],["fy-NL","Western Frisian","Netherlands"],["ga","Irish"],["ga-IE","Irish","Ireland"],["gd","Gaelic"],["gd-GB","Gaelic","United Kingdom"],["gl","Galician"],["gl-ES","Galician","Spain"],["gu","Gujarati"],["gu-IN","Gujarati","India"],["gv","Manx"],["gv-IM","Manx","Isle of Man"],["ha","Hausa"],["ha-GH","Hausa","Ghana"],["ha-NE","Hausa","Niger"],["ha-NG","Hausa","Nigeria"],["he","Hebrew"],["he-IL","Hebrew","Israel"],["hi","Hindi"],["hi-IN","Hindi","India"],["hr","Croatian"],["hr-BA","Croatian","Bosnia and Herzegovina"],["hr-HR","Croatian","Croatia"],["hu","Hungarian"],["hu-HU","Hungarian","Hungary"],["hy","Armenian"],["hy-AM","Armenian","Armenia"],["id","Indonesian"],["id-ID","Indonesian","Indonesia"],["ig","Igbo"],["ig-NG","Igbo","Nigeria"],["ii","Sichuan Yi"],["ii-CN","Sichuan Yi","China"],["is","Icelandic"],["is-IS","Icelandic","Iceland"],["it","Italian"],["it-CH","Italian","Switzerland"],["it-IT","Italian","Italy"],["it-SM","Italian","San Marino"],["it-VA","Italian","Vatican City"],["ja","Japanese"],["ja-JP","Japanese","Japan"],["ka","Georgian"],["ka-GE","Georgian","Georgia"],["ki","Kikuyu"],["ki-KE","Kikuyu","Kenya"],["kk","Kazakh"],["kk-KZ","Kazakh","Kazakhstan"],["kl","Kalaallisut"],["kl-GL","Kalaallisut","Greenland"],["km","Central Khmer"],["km-KH","Central Khmer","Cambodia"],["kn","Kannada"],["kn-IN","Kannada","India"],["ko","Korean"],["ko-KP","Korean","Korea"],["ko-KR","Korean","Korea"],["ks","Kashmiri"],["ks-IN","Kashmiri","India"],["kw","Cornish"],["kw-GB","Cornish","United Kingdom"],["ky","Kirghiz"],["ky-KG","Kirghiz","Kyrgyzstan"],["lb","Luxembourgish"],["lb-LU","Luxembourgish","Luxembourg"],["lg","Ganda"],["lg-UG","Ganda","Uganda"],["ln","Lingala"],["ln-AO","Lingala","Angola"],["ln-CD","Lingala","Congo"],["ln-CF","Lingala","Central African Republic"],["ln-CG","Lingala","Congo"],["lo","Lao"],["lo-LA","Lao","Laos"],["lt","Lithuanian"],["lt-LT","Lithuanian","Lithuania"],["lu","Luba-Katanga"],["lu-CD","Luba-Katanga","Congo"],["lv","Latvian"],["lv-LV","Latvian","Latvia"],["mg","Malagasy"],["mg-MG","Malagasy","Madagascar"],["mk","Macedonian"],["mk-MK","Macedonian","Macedonia"],["ml","Malayalam"],["ml-IN","Malayalam","India"],["mn","Mongolian"],["mn-MN","Mongolian","Mongolia"],["mr","Marathi"],["mr-IN","Marathi","India"],["ms","Malay"],["ms-BN","Malay","Brunei"],["ms-MY","Malay","Malaysia"],["ms-SG","Malay","Singapore"],["mt","Maltese"],["mt-MT","Maltese","Malta"],["my","Burmese"],["my-MM","Burmese","Myanmar (Burma)"],["nb","Bokmål Norwegian"],["nb-NO","Bokmål Norwegian","Norway"],["nb-SJ","Bokmål Norwegian","Svalbard"],["nd","Ndebele, North"],["nd-ZW","Ndebele, North","Zimbabwe"],["ne","Nepali"],["ne-IN","Nepali","India"],["ne-NP","Nepali","Nepal"],["nl","Dutch"],["nl-AW","Dutch","Aruba"],["nl-BE","Dutch","Belgium"],["nl-BQ","Dutch"],["nl-CW","Dutch"],["nl-NL","Dutch","Netherlands"],["nl-SR","Dutch","Suriname"],["nl-SX","Dutch"],["nn","Norwegian Nynorsk"],["nn-NO","Norwegian Nynorsk","Norway"],["om","Oromo"],["om-ET","Oromo","Ethiopia"],["om-KE","Oromo","Kenya"],["or","Oriya"],["or-IN","Oriya","India"],["os","Ossetian"],["os-GE","Ossetian","Georgia"],["os-RU","Ossetian","Russia"],["pa","Panjabi"],["pa-IN","Panjabi","India"],["pa-PK","Panjabi","Pakistan"],["pl","Polish"],["pl-PL","Polish","Poland"],["ps","Pushto"],["ps-AF","Pushto","Afghanistan"],["pt","Portuguese"],["pt-AO","Portuguese","Angola"],["pt-BR","Portuguese","Brazil"],["pt-CH","Portuguese","Switzerland"],["pt-CV","Portuguese","Cape Verde"],["pt-GQ","Portuguese","Equatorial Guinea"],["pt-GW","Portuguese","Guinea-Bissau"],["pt-LU","Portuguese","Luxembourg"],["pt-MO","Portuguese","Macau"],["pt-MZ","Portuguese","Mozambique"],["pt-PT","Portuguese","Portugal"],["pt-ST","Portuguese","Sao Tome and Principe"],["pt-TL","Portuguese","Timor-Leste (East Timor)"],["qu","Quechua"],["qu-BO","Quechua","Bolivia"],["qu-EC","Quechua","Ecuador"],["qu-PE","Quechua","Peru"],["rm","Romansh"],["rm-CH","Romansh","Switzerland"],["rn","Rundi"],["rn-BI","Rundi","Burundi"],["ro","Romanian"],["ro-MD","Romanian","Moldova"],["ro-RO","Romanian","Romania"],["ru","Russian"],["ru-BY","Russian","Belarus"],["ru-KG","Russian","Kyrgyzstan"],["ru-KZ","Russian","Kazakhstan"],["ru-MD","Russian","Moldova"],["ru-RU","Russian","Russia"],["ru-UA","Russian","Ukraine"],["rw","Kinyarwanda"],["rw-RW","Kinyarwanda","Rwanda"],["se","Northern Sami"],["se-FI","Northern Sami","Finland"],["se-NO","Northern Sami","Norway"],["se-SE","Northern Sami","Sweden"],["sg","Sango"],["sg-CF","Sango","Central African Republic"],["si","Sinhala"],["si-LK","Sinhala","Sri Lanka"],["sk","Slovak"],["sk-SK","Slovak","Slovakia"],["sl","Slovenian"],["sl-SI","Slovenian","Slovenia"],["sn","Shona"],["sn-ZW","Shona","Zimbabwe"],["so","Somali"],["so-DJ","Somali","Djibouti"],["so-ET","Somali","Ethiopia"],["so-KE","Somali","Kenya"],["so-SO","Somali","Somalia"],["sq","Albanian"],["sq-AL","Albanian","Albania"],["sq-MK","Albanian","Macedonia"],["sq-XK","Albanian"],["sr","Serbian"],["sr-BA","Serbian","Bosnia and Herzegovina"],["sr-ME","Serbian","Montenegro"],["sr-RS","Serbian","Serbia"],["sr-XK","Serbian"],["sv","Swedish"],["sv-AX","Swedish","Aland"],["sv-FI","Swedish","Finland"],["sv-SE","Swedish","Sweden"],["sw","Swahili"],["sw-CD","Swahili","Congo"],["sw-KE","Swahili","Kenya"],["sw-TZ","Swahili","Tanzania"],["sw-UG","Swahili","Uganda"],["ta","Tamil"],["ta-IN","Tamil","India"],["ta-LK","Tamil","Sri Lanka"],["ta-MY","Tamil","Malaysia"],["ta-SG","Tamil","Singapore"],["te","Telugu"],["te-IN","Telugu","India"],["th","Thai"],["th-TH","Thai","Thailand"],["ti","Tigrinya"],["ti-ER","Tigrinya","Eritrea"],["ti-ET","Tigrinya","Ethiopia"],["tk","Turkmen"],["tk-TM","Turkmen","Turkmenistan"],["to","Tonga (Tonga Islands)"],["to-TO","Tonga (Tonga Islands)","Tonga"],["tr","Turkish"],["tr-CY","Turkish","Cyprus"],["tr-TR","Turkish","Turkey"],["ug","Uighur"],["ug-CN","Uighur","China"],["uk","Ukrainian"],["uk-UA","Ukrainian","Ukraine"],["ur","Urdu"],["ur-IN","Urdu","India"],["ur-PK","Urdu","Pakistan"],["uz","Uzbek"],["uz-AF","Uzbek","Afghanistan"],["uz-UZ","Uzbek","Uzbekistan"],["vi","Vietnamese"],["vi-VN","Vietnamese","Vietnam"],["vo","Volapük"],["yi","Yiddish"],["yi-1","Yiddish"],["yo","Yoruba"],["yo-BJ","Yoruba","Benin"],["yo-NG","Yoruba","Nigeria"],["zh","Chinese"],["zh-CN","Chinese","China"],["zh-HK","Chinese","Hong Kong"],["zh-MO","Chinese","Macau"],["zh-SG","Chinese","Singapore"],["zh-TW","Chinese","China"],["zu","Zulu"],["zu-ZA","Zulu","South Africa"]]},41229:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseLocale=t.lookupLocaleInfo=t.isStandardLocale=t.normalizeLocale=t.Locale=void 0;const r=n(43381);let i;class o{constructor(e){this._raw=e,this._locale=u(e)}get locale(){return this._locale}localInfo(){return f(this._locale)}isValid(){return l(this._locale)}toJSON(){return this.locale}toString(){return this.locale}}t.Locale=o;const s=/^[a-z]{2}$/i,a=/^([a-z]{2})[_-]?([a-z]{2,3})$/i,c=/^([a-z]{2})(?:-([A-Z]{2,3}))?$/;function u(e){if(e=e.trim(),s.test(e))return e.toLowerCase();const t=e.match(a);return t?`${t[1].toLowerCase()}-${t[2].toUpperCase()}`:e}function l(e){return c.test(e)}function f(e){return i=i||function(){const e=r.codes.map((([e,t,n])=>({locale:e,language:t,country:n})));return new Map(e.map((e=>[e.locale,e])))}(),i.get(e)}function d(e){return new o(e)}t.normalizeLocale=u,t.isStandardLocale=l,t.lookupLocaleInfo=f,t.parseLocale=function(e){return(e="string"==typeof e?e.split(","):e).map(d)}},15063:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.suggest=t.genSuggestions=t.genCompoundableSuggestions=void 0;var r=n(21096);Object.defineProperty(t,"genCompoundableSuggestions",{enumerable:!0,get:function(){return r.genCompoundableSuggestions}}),Object.defineProperty(t,"genSuggestions",{enumerable:!0,get:function(){return r.genSuggestions}}),Object.defineProperty(t,"suggest",{enumerable:!0,get:function(){return r.suggest}})},833:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.suggestionCollector=t.isSuggestionResult=t.impersonateCollector=t.defaultSuggestionCollectorOptions=t.compSuggestionResults=void 0;var r=n(3500);Object.defineProperty(t,"compSuggestionResults",{enumerable:!0,get:function(){return r.compSuggestionResults}}),Object.defineProperty(t,"defaultSuggestionCollectorOptions",{enumerable:!0,get:function(){return r.defaultSuggestionCollectorOptions}}),Object.defineProperty(t,"impersonateCollector",{enumerable:!0,get:function(){return r.impersonateCollector}}),Object.defineProperty(t,"isSuggestionResult",{enumerable:!0,get:function(){return r.isSuggestionResult}}),Object.defineProperty(t,"suggestionCollector",{enumerable:!0,get:function(){return r.suggestionCollector}})},66766:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSuggestionOptions=t.defaultSuggestionOptions=t.defaultGenSuggestionOptions=void 0;const r=n(19877);t.defaultGenSuggestionOptions={compoundMethod:r.CompoundWordsMethod.NONE,ignoreCase:!0,changeLimit:5},t.defaultSuggestionOptions={...t.defaultGenSuggestionOptions,numSuggestions:8,includeTies:!0,timeout:5e3};const i={changeLimit:"changeLimit",compoundMethod:"compoundMethod",ignoreCase:"ignoreCase",compoundSeparator:"compoundSeparator",filter:"filter",includeTies:"includeTies",numSuggestions:"numSuggestions",timeout:"timeout",weightMap:"weightMap"};t.createSuggestionOptions=function(...e){const n={...t.defaultSuggestionOptions},r=Object.keys(i);for(const t of e)for(const e of r)s=t,void 0,(o=n)[a=e]=null!==(c=s[a])&&void 0!==c?c:o[a];var o,s,a,c;return n}},97561:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.visualLetterMaskMap=t.visualLetterGroups=t.compare=void 0;const n=new Intl.Collator("en",{sensitivity:"base"});function r(e){const t=e.normalize("NFC").replace(/\p{M}/gu,""),n=t.normalize("NFD").replace(/\p{M}/gu,"");return[...new Set(t+t.toLowerCase()+t.toUpperCase()+n+n.toLowerCase()+n.toUpperCase())].join("")}t.compare=n.compare,t.visualLetterGroups=[r("ǎàåÄÀAãâáǟặắấĀāăąaäæɐɑαаᾳ")+"ᾳ",r("Bbḃвъь"),r("ċČčcĉçCÇćĊСсς"),r("ḎḋḏḑďđḍDd"),r("ēëÈÊËềéèếệĕeEĒėęěêəɛёЁеʒ"),r("fḟF"),r("ġĠĞǧĝģGgɣ"),r("ħĦĥḥHhḤȟн"),r("IįïİÎÍīiÌìíîıɪɨїΊΙ"),r("jJĵ"),r("ķKkκкќ"),r("ḷłľļLlĺḶίι"),r("Mṃṁm"),r("nņÑNṇňŇñńŋѝий"),r("ÒOøȭŌōőỏoÖòȱȯóôõöơɔόδо"),r("PṗpрРρ"),r("Qq"),r("řRṛrŕŗѓгя"),r("ṣšȘṢsSŠṡŞŝśșʃΣ"),r("tțȚťTṭṬṫ"),r("ÜüûŪưůūűúÛŭÙùuųU"),r("Vvν"),r("ŵwWẃẅẁωш"),r("xXх"),r("ÿýYŷyÝỳУўу"),r("ZẓžŽżŻźz")],t.visualLetterMaskMap=function(e){const t=Object.create(null);for(let n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.genCompoundableSuggestions=t.genSuggestions=t.suggest=void 0;const r=n(99764),i=n(66766),o=n(97561),s=n(3500),a=n(19877),c=new Set([a.JOIN_SEPARATOR,a.WORD_SEPARATOR]);function*u(e,t,n={}){const r=Array.isArray(e)?e:[e];for(const e of r)yield*l(e,t,n)}function*l(e,t,n={}){const{compoundMethod:s=a.CompoundWordsMethod.NONE,changeLimit:u,ignoreCase:l}=(0,i.createSuggestionOptions)(n),f=[],d=new Map,p=[[]],h=[],g=" "+t,m=g.length-1,y=Object.assign(Object.create(null),{[a.WORD_SEPARATOR]:-1,[a.JOIN_SEPARATOR]:-1}),v=Object.assign(Object.create(null),{"-":100});let b=!1,S=100*Math.min(.5*t.length,u);function E(e){switch(typeof e){case"number":S=e;break;case"symbol":b=!0}}let x=0;for(let e=0,t=0;e<=m&&t<=S;++e)t=100*e,p[0][e]=t,x=e;h[0]={a:0,b:x};const w=t,_=(0,a.hintedWalker)(e,l,w,s,n.compoundSeparator);let O=!0;for(let e=_.next({goDeeper:O});!b&&!e.done;e=_.next({goDeeper:O})){const{text:t,node:n,depth:i}=e.value;let{a:s,b:a}=h[i];const u=t.slice(-1),l=o.visualLetterMaskMap[u]||0;if(c.has(u)){const e=p[i].slice(s,a+1),n=Math.min(...e),r=[s].concat(e.map((e=>e-n))).join(),o=d.get(r);if(o&&o.m<=n){O=!1;const{i:e,w:r,m:i}=o;if(e>=f.length)continue;if(f[e].word.slice(0,r.length)!==r)continue;const s=n-i;for(let n=e;n1?t[b-2]:"",w=100-b+(v[u]||0),_=w+(y[u]||0);p[b]=p[b]||[],p[b][s]=p[b-1][s]+_+b-s;let C,D=g[s],A=p[b][s];for(C=s+1;C<=a;++C){const e=g[C],t=o.visualLetterMaskMap[e]||0,n=u===e?0:l&t?1:e===x&&u===D?-25:w,r=Math.min(p[b-1][C-1]+n,p[b-1][C]+_,p[b][C-1]+w);A=Math.min(A,r),p[b][C]=r,D=e}const{b:P}=h[b-1];for(;aS)break}for(;a>s&&p[b][a]>S;a-=1);for(;sS;s+=1);a=Math.min(a+1,m),h[b]={a:s,b:a};const T=p[b][a];if(n.f&&(0,r.isWordTerminationNode)(n)&&T<=S){const e={word:t,cost:T};f.push(e),E(yield e)}else E(yield);O=A<=S}}t.suggest=function(e,t,n={}){const o=(0,i.createSuggestionOptions)(n),a=(0,r.clean)(o),c=(0,s.suggestionCollector)(t,a);return c.collect(u(e,t,{...o,...c.genSuggestionOptions})),c.suggestions},t.genSuggestions=u,t.genCompoundableSuggestions=l},3500:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSuggestionResult=t.impersonateCollector=t.suggestionCollector=t.defaultSuggestionCollectorOptions=t.compSuggestionResults=t.DEFAULT_COMPOUNDED_WORD_SEPARATOR=void 0;const r=n(2733),i=n(59285),o=n(52762),s=n(33365),a=n(19877),c=5,u=new Intl.Collator,l=new RegExp(`[${(0,s.regexQuote)(a.WORD_SEPARATOR)}]`,"g"),f=[0,50,25,5,0];t.DEFAULT_COMPOUNDED_WORD_SEPARATOR="∙";const d=1e3,p=Symbol("Collector Stop Processing");function h(e,t){return e.cost-t.cost||e.word.length-t.word.length||u.compare(e.word,t.word)}function g(e){const t=e;return void 0!==(null==t?void 0:t.cost)&&null!=t.word}t.compSuggestionResults=h,t.defaultSuggestionCollectorOptions=Object.freeze({numSuggestions:10,filter:()=>!0,changeLimit:c,includeTies:!1,ignoreCase:!0,timeout:d,weightMap:void 0,compoundSeparator:"",compoundMethod:void 0}),t.suggestionCollector=function(e,n){const{filter:a=(()=>!0),changeLimit:u=c,includeTies:m=!1,ignoreCase:y=!0,timeout:v=d,weightMap:b,compoundSeparator:S=t.defaultSuggestionCollectorOptions.compoundSeparator}=n,E=Math.max(n.numSuggestions,0)||0,x=b?2*E:E,w=new Map;let _=100*Math.min(.515*e.length,u);const O=S||(b?t.DEFAULT_COMPOUNDED_WORD_SEPARATOR:t.defaultSuggestionCollectorOptions.compoundSeparator),C=O&&O!==S?(0,s.replaceAllFactory)(O,""):e=>e;O&&b&&(0,i.addDefToWeightMap)(b,{map:O,insDel:50});const D=(0,s.clean)({changeLimit:u,ignoreCase:y,compoundMethod:n.compoundMethod,compoundSeparator:O});let A=v;function P(e){const{word:t,cost:n}=function(e){const t=e.word.split(l),n=t.map((e=>f[e.length]||0)).reduce(((e,t)=>e+t),0)+5*(t.length-1);return{word:e.word,cost:e.cost+n}}(e);if(n<=_&&a(e.word,n)){const e=w.get(t);e?e.cost=Math.min(e.cost,n):(w.set(t,{word:t,cost:n}),n<_&&w.size>x&&function(){if(w.size<2||!E)return void w.clear();const e=[...w.values()].sort(h);let t=x-1;for(_=e[t].cost;tt&&(r=p);const{value:e}=s;e&&g(e)&&(n&&!n(e.word,e.cost)||P(e))}A-=i.elapsed()},add:function(e){return P(e),this},get suggestions(){return function(){if(E<1||!w.size)return[];const t=e.normalize("NFD"),n=[...w.values()],i=(b?n.map((({word:e})=>({word:e,cost:(0,r.editDistanceWeighted)(t,e.normalize("NFD"),b,110)}))):n).sort(h).map(T);let o=Math.min(i.length,E)-1;const s=m?i.length:Math.min(i.length,E),a=i[o].cost,c=Math.min(a,b?100*u-1:a);for(o=1;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__testing__=t.hintedWalker=void 0;const r=n(99764),i=n(51627);function*o(e,t,n,o,s=""){const a=null!=o?o:i.CompoundWordsMethod.NONE,c=e.compoundCharacter,u=e.stripCaseAndAccentsPrefix,l=[e,t?e.c.get(u):void 0].filter(r.isDefined),f=function(e){const t=Object.create(null);for(const n of e)t[n]=!0;return t}([c,u,e.forbiddenWordPrefix]),d=l.map((function(e){var t;const n=null===(t=e.c)||void 0===t?void 0:t.entries(),r=n&&[...n].filter((([e])=>!(e in f)));return{c:r&&new Map(r)}})),p=l.map((e=>{var t;return null===(t=e.c)||void 0===t?void 0:t.get(c)})).filter(r.isDefined),h=new Set(p),g=d.concat(p),m={[i.CompoundWordsMethod.NONE]:[],[i.CompoundWordsMethod.JOIN_WORDS]:[...g.map((e=>[i.JOIN_SEPARATOR,e]))],[i.CompoundWordsMethod.SEPARATE_WORDS]:[...g.map((e=>[i.WORD_SEPARATOR,e]))]};function*y(e,t){if(e.c){const r=n.slice(t,t+3)+n.slice(Math.max(0,t-2),t),i=new Set(r),o=e.c;if(yield*[...i].filter((e=>o.has(e))).map((e=>({letter:e,node:o.get(e),hintOffset:t+1}))),i.add(c),yield*[...o].filter((e=>!i.has(e[0]))).map((([e,n])=>({letter:e,node:n,hintOffset:t+1}))),o.has(c)&&!h.has(e))for(const e of p)for(const n of y(e,t)){const{letter:e,node:t,hintOffset:r}=n;yield{letter:s+e,node:t,hintOffset:r}}}e.f&&(yield*[...m[a]].map((([e,n])=>({letter:e,node:n,hintOffset:t}))))}for(const e of d){let t=0;const n=[],r=[""];let i;for(n[t]=y(e,t);t>=0;){for(;!(i=n[t].next()).done;){const{letter:e,node:o,hintOffset:s}=i.value,a=r[t]+e,c=yield{text:a,node:o,depth:t};c&&c.goDeeper&&(t++,r[t]=a,n[t]=y(o,s))}t-=1}}}t.hintedWalker=function(e,t,n,r,i){return o(e,t,n,r,i)},t.__testing__={hintedWalkerNext:o}},19877:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.hintedWalker=void 0,i(n(59057),t);var o=n(9990);Object.defineProperty(t,"hintedWalker",{enumerable:!0,get:function(){return o.hintedWalker}}),i(n(51627),t)},59057:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.walker=void 0;const r=n(51627);t.walker=function*(e,t=r.CompoundWordsMethod.NONE){const n={[r.CompoundWordsMethod.NONE]:[],[r.CompoundWordsMethod.JOIN_WORDS]:[[r.JOIN_SEPARATOR,e]],[r.CompoundWordsMethod.SEPARATE_WORDS]:[[r.WORD_SEPARATOR,e]]};function*i(e){e.c&&(yield*e.c),e.f&&(yield*n[t])}let o=0;const s=[];let a;for(s[o]={t:"",c:i(e)};o>=0;){let e=s[o].t;for(;!(a=s[o].c.next()).done;){const[t,n]=a.value,r=e+t,c=yield{text:r,node:n,depth:o};(c||void 0===c)&&(o++,e=r,s[o]={t:r,c:i(n)})}o-=1}}},51627:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.CompoundWordsMethod=t.WORD_SEPARATOR=t.JOIN_SEPARATOR=void 0,t.JOIN_SEPARATOR="+",t.WORD_SEPARATOR=" ",(n=t.CompoundWordsMethod||(t.CompoundWordsMethod={}))[n.NONE=0]="NONE",n[n.SEPARATE_WORDS=1]="SEPARATE_WORDS",n[n.JOIN_WORDS=2]="JOIN_WORDS"},99764:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clean=t.isDefined=t.normalizeWordForCaseInsensitive=t.normalizeWordToLowercase=t.normalizeWord=t.trieNodeToRoot=t.mergeDefaults=t.isCircular=t.countWords=t.countNodes=t.findNode=t.has=t.createTriFromList=t.createTrieRoot=t.mergeOptionalWithDefaults=t.iteratorTrieWords=t.iterateTrie=t.walk=t.orderTrie=t.isWordTerminationNode=t.insert=void 0;const r=n(80915),i=n(74752),o=n(16133),s=n(68364);function a(e,t={}){if(e.length){const n=e[0],r=e.slice(1);t.c=t.c||new o.ChildMap,t.c.set(n,a(r,t.c.get(n)))}else t.f=(t.f||0)|o.FLAG_WORD;return t}function c(e){return((e.f||0)&o.FLAG_WORD)===o.FLAG_WORD}function u(e){return(0,r.genSequence)((0,s.walker)(e))}function l(e){return d(e,i.defaultTrieOptions)}function f(e){return{...l(e),c:new Map}}function d(e,t){const n={...t};if(e)for(const[t,r]of Object.entries(e))t in n&&(n[t]=null!=r?r:n[t]);return n}t.insert=a,t.isWordTerminationNode=c,t.orderTrie=function e(t){if(!t.c)return;const n=[...t.c].sort((([e],[t])=>ec(e.node))).map((e=>e.text))},t.mergeOptionalWithDefaults=l,t.createTrieRoot=f,t.createTriFromList=function(e,t){const n=f(t);for(const t of e)t.length&&a(t,n);return n},t.has=function(e,t){let n=t.slice(0,1),r=t.slice(1);for(;e.c&&e.c.has(n);)e=e.c.get(n),n=r.slice(0,1),r=r.slice(1);return!n.length&&!!((e.f||0)&o.FLAG_WORD)},t.findNode=function(e,t){let n=t.slice(0,1),r=t.slice(1),i=e;for(;n.length&&i&&i.c;)i=i.c.get(n),n=r.slice(0,1),r=r.slice(1);return i},t.countNodes=function(e){const t=new Set;return function e(n){t.has(n)||(t.add(n),n.c&&[...n.c.values()].forEach((t=>e(t))))}(e),t.size},t.countWords=function(e){const t=new Map;return function e(n){if(t.has(n))return t.get(n);let r=n.f?1:0;if(t.set(n,r),!n.c)return r;for(const t of n.c.values())r+=e(t);return t.set(n,r),r}(e)},t.isCircular=function(e){const t=new Set,n=new Set;return function e(r){if(t.has(r))return{isCircular:!1,allSeen:!0};if(n.has(r))return{isCircular:!0,allSeen:!1};n.add(r);let i={isCircular:!1,allSeen:!0};return r.c&&(i=[...r.c.values()].reduce(((t,n)=>{if(t.isCircular)return t;const r=e(n);return r.allSeen=r.allSeen&&t.allSeen,r}),i)),i.allSeen&&t.add(r),n.delete(r),i}(e).isCircular},t.mergeDefaults=d,t.trieNodeToRoot=function(e,t){return{...l(t),c:e.c||new Map}},t.normalizeWord=e=>e.normalize(),t.normalizeWordToLowercase=e=>e.toLowerCase().normalize("NFD").replace(/\p{M}/gu,""),t.normalizeWordForCaseInsensitive=e=>{const t=e.toLowerCase();return[t,t.normalize("NFD").replace(/\p{M}/gu,"")]},t.isDefined=function(e){return void 0!==e},t.clean=function(e){const t={...e};for(const e of Object.keys(t))void 0===t[e]&&delete t[e];return t}},64890:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Trie=t.FORBID=t.NORMALIZED=t.OPTIONAL_COMPOUND=t.COMPOUND=t.OPTIONAL_COMPOUND_FIX=t.FORBID_PREFIX=t.defaultTrieOptions=t.COMPOUND_FIX=t.CASE_INSENSITIVE_PREFIX=void 0;const r=n(80915),i=n(74752),o=n(34864),s=n(15063),a=n(99764),c=n(33365),u=n(68364);var l=n(74752);Object.defineProperty(t,"CASE_INSENSITIVE_PREFIX",{enumerable:!0,get:function(){return l.CASE_INSENSITIVE_PREFIX}}),Object.defineProperty(t,"COMPOUND_FIX",{enumerable:!0,get:function(){return l.COMPOUND_FIX}}),Object.defineProperty(t,"defaultTrieOptions",{enumerable:!0,get:function(){return l.defaultTrieOptions}}),Object.defineProperty(t,"FORBID_PREFIX",{enumerable:!0,get:function(){return l.FORBID_PREFIX}}),Object.defineProperty(t,"OPTIONAL_COMPOUND_FIX",{enumerable:!0,get:function(){return l.OPTIONAL_COMPOUND_FIX}}),t.COMPOUND=i.COMPOUND_FIX,t.OPTIONAL_COMPOUND=i.OPTIONAL_COMPOUND_FIX,t.NORMALIZED=i.CASE_INSENSITIVE_PREFIX,t.FORBID=i.FORBID_PREFIX;class f{constructor(e,t){this.root=e,this.count=t,this._options=(0,a.mergeOptionalWithDefaults)(e),this.isLegacy=this.calcIsLegacy(),this.hasForbidden=!!e.c.get(e.forbiddenWordPrefix)}size(){var e;return this.count=null!==(e=this.count)&&void 0!==e?e:(0,a.countWords)(this.root),this.count}isSizeKnown(){return void 0!==this.count}get options(){return this._options}find(e,t=!1){const n=t?!0===t?3:t:void 0,r=this.createFindOptions({compoundMode:n?"legacy":"compound",legacyMinCompoundLength:n});return(0,o.findWordNode)(this.root,e,r).node}findCompound(e,t=3){const n=this.createFindOptions({legacyMinCompoundLength:t});return(0,o.findLegacyCompound)(this.root,e,n).node}findExact(e){const t=this.createFindOptions({compoundMode:"none"});return(0,o.findWordNode)(this.root,e,t).node}has(e,t){return!!this.hasWord(e,!1)||!!t&&!!this.findWord(e,{useLegacyWordCompounds:t}).found}hasWord(e,t){const n=this.findWord(e,{caseSensitive:t});return!!n.found&&!n.forbidden}findWord(e,t){if(null==t?void 0:t.useLegacyWordCompounds){const n=!0!==t.useLegacyWordCompounds?t.useLegacyWordCompounds:3,r=this.createFindOptions({legacyMinCompoundLength:n,matchCase:t.caseSensitive});return(0,o.findLegacyCompound)(this.root,e,r)}const n=this.createFindOptions({matchCase:null==t?void 0:t.caseSensitive});return(0,o.findWord)(this.root,e,n)}isForbiddenWord(e){return this.hasForbidden&&(0,o.isForbiddenWord)(this.root,e,this.options.forbiddenWordPrefix)}completeWord(e){const t=this.find(e),n=this.options.compoundCharacter,i=(0,a.iteratorTrieWords)(t||{}).filter((e=>e[e.length-1]!==n)).map((t=>e+t));return(0,r.genSequence)(t&&(0,a.isWordTerminationNode)(t)?[e]:[]).concat(i)}suggest(e,t){return this.suggestWithCost(e,t).map((e=>e.word))}suggestWithCost(e,t){const n=t.compoundSeparator,r=n?(0,c.replaceAllFactory)(n,""):e=>e,i=t.filter,o=i?(e,t)=>{const n=r(e);return!this.isForbiddenWord(n)&&i(n,t)}:e=>!this.isForbiddenWord(r(e)),a={...t,filter:o};return(0,s.suggest)(this.root,e,a)}genSuggestions(e,t){const n=(0,a.clean)({compoundMethod:t,...e.genSuggestionOptions}),r=(0,s.genSuggestions)(this.root,e.word,n);e.collect(r,void 0,(e=>!this.isForbiddenWord(e)))}words(){return(0,a.iteratorTrieWords)(this.root)}iterate(){return(0,u.walker)(this.root)}insert(e){return(0,a.insert)(e,this.root),this}calcIsLegacy(){const e=this.root.c;return!((null==e?void 0:e.get(this._options.compoundCharacter))||(null==e?void 0:e.get(this._options.stripCaseAndAccentsPrefix))||(null==e?void 0:e.get(this._options.forbiddenWordPrefix)))}static create(e,t){const n=(0,a.createTriFromList)(e,t);return(0,a.orderTrie)(n),new f(n,void 0)}createFindOptions(e={}){const{caseInsensitivePrefix:t=this._options.stripCaseAndAccentsPrefix,compoundFix:n=this._options.compoundCharacter,forbidPrefix:r=this._options.forbiddenWordPrefix}=(0,a.clean)(e);return(0,o.createFindOptions)({...e,caseInsensitivePrefix:t,compoundFix:n,forbidPrefix:r})}}t.Trie=f},52533:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.heapMethods=t.PairingHeap=void 0;class n{constructor(e){this.compare=e,this._size=0}add(e){return this._heap=r(this.compare,this._heap,e),++this._size,this}dequeue(){const e=this.next();if(!e.done)return e.value}concat(e){for(const t of e)this.add(t);return this}next(){if(!this._heap)return{value:void 0,done:!0};const e=this._heap.v;var t,n;return--this._size,this._heap=(t=this.compare,(n=this._heap)&&n.c?o(t,n.c):void 0),{value:e}}peek(){var e;return null===(e=this._heap)||void 0===e?void 0:e.v}[Symbol.iterator](){return this}get length(){return this._size}}function r(e,t,n){const r={v:n,s:void 0,c:void 0};return!t||e(n,t.v)<=0?(r.c=t,r):(r.s=t.c,t.c=r,t)}function i(e,t,n){return e(t.v,n.v)<=0?(t.s=void 0,n.s=t.c,t.c=n,t):(n.s=void 0,t.s=n.c,n.c=t,n)}function o(e,t){if(!t.s)return t;const n=t.s,r=n.s,s=i(e,t,n);return r?i(e,s,o(e,r)):s}t.PairingHeap=n,t.heapMethods={insert:r,merge:i,mergeSiblings:o}},54987:(e,t)=>{"use strict";function*n(e,t){const n=[];for(const r of e)n.push(r),n.length>=t&&(yield n,n.length=0);n.length&&(yield n,n.length=0)}Object.defineProperty(t,"__esModule",{value:!0}),t.bufferLines=t.buffer=void 0,t.buffer=n,t.bufferLines=function*(e,t,r){if(r)for(const i of n(e,t))yield i.join("")+r;else for(const r of n(e,t))yield r.join("")}},61753:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SecondChanceCache=void 0,t.SecondChanceCache=class{constructor(e){this.maxL0Size=e,this.map0=new Map,this.map1=new Map}has(e){return!!this.map0.has(e)||!!this.map1.has(e)&&(this.set(e,this.get1(e)),!0)}get(e){var t;return null!==(t=this.map0.get(e))&&void 0!==t?t:this.get1(e)}set(e,t){return this.map0.size>=this.maxL0Size&&!this.map0.has(e)&&(this.map1=this.map0,this.map0=new Map),this.map0.set(e,t),this}get size(){return this.map0.size+this.map1.size}get size0(){return this.map0.size}get size1(){return this.map1.size}clear(){return this.map0.clear(),this.map1.clear(),this}get1(e){if(this.map1.has(e)){const t=this.map1.get(e);return this.map1.delete(e),this.set(e,t),t}}toArray(){return[...this.map1,...this.map0]}}},7053:(e,t)=>{"use strict";function n(e,t){const n=[],r=t.codePointAt(0),i=e.codePointAt(0);if(!i||!r)return n;for(let e=i;e<=r;++e)n.push(String.fromCodePoint(e));return n}Object.defineProperty(t,"__esModule",{value:!0}),t.stripNonAccents=t.stripAccents=t.accentForms=t.caseForms=t.expandRange=t.expandCharacterSet=void 0,t.expandCharacterSet=function(e,t="-"){const r=new Set;let i=0,o="";for(const s of e)i&&(n(o,s).forEach((e=>r.add(e))),i=0),s===t&&o?i=1:(r.add(s),o=s);return i&&r.add(t),r},t.expandRange=n,t.caseForms=function(e,t){const n=new Set([e]);function r(e){n.add(e.toLocaleLowerCase(t)),n.add(e.toLocaleUpperCase(t))}return r(e),[...n].forEach(r),[...n].filter((e=>!!e))},t.accentForms=function(e){return new Set([e,e.normalize("NFC"),e.normalize("NFD")])},t.stripAccents=function(e){return e.normalize("NFD").replace(/\p{M}/gu,"")},t.stripNonAccents=function(e){return e.normalize("NFD").replace(/[^\p{M}]/gu,"")}},52762:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.polyHrTime=t.toMilliseconds=t.createTimer=void 0;const n=(null===process||void 0===process?void 0:process.hrtime)||i;function r(e){return 1e3*(e[0]+1e-9*e[1])}function i(e){const t=.001*(Date.now()-(e?r(e):0)),n=Math.floor(t);return[n,1e9*(t-n)]}t.createTimer=function(e=n){let t=e();return{start(){t=e()},elapsed:()=>r(e(t))}},t.toMilliseconds=r,t.polyHrTime=i},33365:(e,t)=>{"use strict";function n(e){for(const t in e)void 0===e[t]&&delete e[t];return e}function r(e){return e.replace(/([[\]\-+(){},|*.\\])/g,"\\$1")}function i(e,t){const n=RegExp(r(e),"g");return e=>e.replace(n,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.replaceAllFactory=t.regexQuote=t.replaceAll=t.flatten=t.unique=t.clean=t.cleanCopy=t.isDefined=void 0,t.isDefined=function(e){return void 0!==e},t.cleanCopy=function(e){return n({...e})},t.clean=n,t.unique=function(e){return[...new Set(e)]},t.flatten=function*(e){for(const t of e)yield*t},t.replaceAll=function(e,t,n){return i(t,n)(e)},t.regexQuote=r,t.replaceAllFactory=i},68364:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(19877),t)},56562:(e,t,n)=>{"use strict";const r=n(91212),i=["__proto__","prototype","constructor"];function o(e){const t=e.split("."),n=[];for(let e=0;ei.includes(e)))?[]:n}e.exports={get(e,t,n){if(!r(e)||"string"!=typeof t)return void 0===n?e:n;const i=o(t);if(0!==i.length){for(let t=0;t{"use strict";var r=n(73837),i=n(13429),o=function(e,t){e&&e.constructor===String||(t=e||{},e=Error.name);var n=function r(o){if(!this)return new r(o);o=o instanceof Error?o.message:o||this.message,Error.call(this,o),Error.captureStackTrace(this,n),this.name=e,Object.defineProperty(this,"message",{configurable:!0,enumerable:!1,get:function(){var e=o.split(/\r?\n/g);for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"message"in r&&(e=r.message(this[n],e)||e,i(e)||(e=[e]))}return e.join("\n")},set:function(e){o=e}});var s=null,a=Object.getOwnPropertyDescriptor(this,"stack"),c=a.get,u=a.value;delete a.value,delete a.writable,a.set=function(e){s=e},a.get=function(){var e=(s||(c?c.call(this):u)).split(/\r?\n+/g);s||(e[0]=this.name+": "+this.message);var n=1;for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];if("line"in i){var o=i.line(this[r]);o&&e.splice(n++,0," "+o)}"stack"in i&&i.stack(this[r],e)}return e.join("\n")},Object.defineProperty(this,"stack",a)};return Object.setPrototypeOf?(Object.setPrototypeOf(n.prototype,Error.prototype),Object.setPrototypeOf(n,Error)):r.inherits(n,Error),n};o.append=function(e,t){return{message:function(n,r){return(n=n||t)&&(r[0]+=" "+e.replace("%s",n.toString())),r}}},o.line=function(e,t){return{line:function(n){return(n=n||t)?e.replace("%s",n.toString()):null}}},e.exports=o},48102:e=>{"use strict";var t=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(t,"\\$&")}},90671:function(e){var t;t=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(3),o=n(8),s=n(15);function a(e,t,n){var s=null,a=function(e,t){n&&n(e,t),s&&s.visit(e,t)},c="function"==typeof n?a:null,u=!1;if(t){u="boolean"==typeof t.comment&&t.comment;var l="boolean"==typeof t.attachComment&&t.attachComment;(u||l)&&((s=new r.CommentHandler).attach=l,t.comment=!0,c=a)}var f,d=!1;t&&"string"==typeof t.sourceType&&(d="module"===t.sourceType),f=t&&"boolean"==typeof t.jsx&&t.jsx?new i.JSXParser(e,t,c):new o.Parser(e,t,c);var p=d?f.parseModule():f.parseScript();return u&&s&&(p.comments=s.comments),f.config.tokens&&(p.tokens=f.tokens),f.config.tolerant&&(p.errors=f.errorHandler.errors),p}t.parse=a,t.parseModule=function(e,t,n){var r=t||{};return r.sourceType="module",a(e,r,n)},t.parseScript=function(e,t,n){var r=t||{};return r.sourceType="script",a(e,r,n)},t.tokenize=function(e,t,n){var r,i=new s.Tokenizer(e,t);r=[];try{for(;;){var o=i.getNextToken();if(!o)break;n&&(o=n(o)),r.push(o)}}catch(e){i.errorHandler.tolerate(e)}return i.errorHandler.tolerant&&(r.errors=i.errors()),r};var c=n(2);t.Syntax=c.Syntax,t.version="4.0.1"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),i=function(){function e(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return e.prototype.insertInnerComments=function(e,t){if(e.type===r.Syntax.BlockStatement&&0===e.body.length){for(var n=[],i=this.leading.length-1;i>=0;--i){var o=this.leading[i];t.end.offset>=o.start&&(n.unshift(o.comment),this.leading.splice(i,1),this.trailing.splice(i,1))}n.length&&(e.innerComments=n)}},e.prototype.findTrailingComments=function(e){var t=[];if(this.trailing.length>0){for(var n=this.trailing.length-1;n>=0;--n){var r=this.trailing[n];r.start>=e.end.offset&&t.unshift(r.comment)}return this.trailing.length=0,t}var i=this.stack[this.stack.length-1];if(i&&i.node.trailingComments){var o=i.node.trailingComments[0];o&&o.range[0]>=e.end.offset&&(t=i.node.trailingComments,delete i.node.trailingComments)}return t},e.prototype.findLeadingComments=function(e){for(var t,n=[];this.stack.length>0&&(o=this.stack[this.stack.length-1])&&o.start>=e.start.offset;)t=o.node,this.stack.pop();if(t){for(var r=(t.leadingComments?t.leadingComments.length:0)-1;r>=0;--r){var i=t.leadingComments[r];i.range[1]<=e.start.offset&&(n.unshift(i),t.leadingComments.splice(r,1))}return t.leadingComments&&0===t.leadingComments.length&&delete t.leadingComments,n}for(r=this.leading.length-1;r>=0;--r){var o;(o=this.leading[r]).start<=e.start.offset&&(n.unshift(o.comment),this.leading.splice(r,1))}return n},e.prototype.visitNode=function(e,t){if(!(e.type===r.Syntax.Program&&e.body.length>0)){this.insertInnerComments(e,t);var n=this.findTrailingComments(t),i=this.findLeadingComments(t);i.length>0&&(e.leadingComments=i),n.length>0&&(e.trailingComments=n),this.stack.push({node:e,start:t.start.offset})}},e.prototype.visitComment=function(e,t){var n="L"===e.type[0]?"Line":"Block",r={type:n,value:e.value};if(e.range&&(r.range=e.range),e.loc&&(r.loc=e.loc),this.comments.push(r),this.attach){var i={comment:{type:n,value:e.value,range:[t.start.offset,t.end.offset]},start:t.start.offset};e.loc&&(i.comment.loc=e.loc),e.type=n,this.leading.push(i),this.trailing.push(i)}},e.prototype.visit=function(e,t){"LineComment"===e.type||"BlockComment"===e.type?this.visitComment(e,t):this.attach&&this.visitNode(e,t)},e}();t.CommentHandler=i},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"}},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(4),s=n(5),a=n(6),c=n(7),u=n(8),l=n(13),f=n(14);function d(e){var t;switch(e.type){case a.JSXSyntax.JSXIdentifier:t=e.name;break;case a.JSXSyntax.JSXNamespacedName:var n=e;t=d(n.namespace)+":"+d(n.name);break;case a.JSXSyntax.JSXMemberExpression:var r=e;t=d(r.object)+"."+d(r.property)}return t}l.TokenName[100]="JSXIdentifier",l.TokenName[101]="JSXText";var p=function(e){function t(t,n,r){return e.call(this,t,n,r)||this}return i(t,e),t.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():e.prototype.parsePrimaryExpression.call(this)},t.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},t.prototype.finishJSX=function(){this.nextToken()},t.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX("}"),this.config.tokens&&this.tokens.pop()},t.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},t.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},t.prototype.scanXHTMLEntity=function(e){for(var t="&",n=!0,r=!1,i=!1,s=!1;!this.scanner.eof()&&n&&!r;){var a=this.scanner.source[this.scanner.index];if(a===e)break;if(r=";"===a,t+=a,++this.scanner.index,!r)switch(t.length){case 2:i="#"===a;break;case 3:i&&(n=(s="x"===a)||o.Character.isDecimalDigit(a.charCodeAt(0)),i=i&&!s);break;default:n=(n=n&&!(i&&!o.Character.isDecimalDigit(a.charCodeAt(0))))&&!(s&&!o.Character.isHexDigit(a.charCodeAt(0)))}}if(n&&r&&t.length>2){var c=t.substr(1,t.length-2);i&&c.length>1?t=String.fromCharCode(parseInt(c.substr(1),10)):s&&c.length>2?t=String.fromCharCode(parseInt("0"+c.substr(1),16)):i||s||!f.XHTMLEntities[c]||(t=f.XHTMLEntities[c])}return t},t.prototype.lexJSX=function(){var e=this.scanner.source.charCodeAt(this.scanner.index);if(60===e||62===e||47===e||58===e||61===e||123===e||125===e)return{type:7,value:a=this.scanner.source[this.scanner.index++],lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index};if(34===e||39===e){for(var t=this.scanner.index,n=this.scanner.source[this.scanner.index++],r="";!this.scanner.eof()&&(c=this.scanner.source[this.scanner.index++])!==n;)r+="&"===c?this.scanXHTMLEntity(n):c;return{type:8,value:r,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index}}if(46===e){var i=this.scanner.source.charCodeAt(this.scanner.index+1),s=this.scanner.source.charCodeAt(this.scanner.index+2),a=46===i&&46===s?"...":".";return t=this.scanner.index,this.scanner.index+=a.length,{type:7,value:a,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index}}if(96===e)return{type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(o.Character.isIdentifierStart(e)&&92!==e){for(t=this.scanner.index,++this.scanner.index;!this.scanner.eof();){var c=this.scanner.source.charCodeAt(this.scanner.index);if(o.Character.isIdentifierPart(c)&&92!==c)++this.scanner.index;else{if(45!==c)break;++this.scanner.index}}return{type:100,value:this.scanner.source.slice(t,this.scanner.index),lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index}}return this.scanner.lex()},t.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var e=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(e)),e},t.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var e=this.scanner.index,t="";!this.scanner.eof();){var n=this.scanner.source[this.scanner.index];if("{"===n||"<"===n)break;++this.scanner.index,t+=n,o.Character.isLineTerminator(n.charCodeAt(0))&&(++this.scanner.lineNumber,"\r"===n&&"\n"===this.scanner.source[this.scanner.index]&&++this.scanner.index,this.scanner.lineStart=this.scanner.index)}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var r={type:101,value:t,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:e,end:this.scanner.index};return t.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(r)),r},t.prototype.peekJSXToken=function(){var e=this.scanner.saveState();this.scanner.scanComments();var t=this.lexJSX();return this.scanner.restoreState(e),t},t.prototype.expectJSX=function(e){var t=this.nextJSXToken();7===t.type&&t.value===e||this.throwUnexpectedToken(t)},t.prototype.matchJSX=function(e){var t=this.peekJSXToken();return 7===t.type&&t.value===e},t.prototype.parseJSXIdentifier=function(){var e=this.createJSXNode(),t=this.nextJSXToken();return 100!==t.type&&this.throwUnexpectedToken(t),this.finalize(e,new s.JSXIdentifier(t.value))},t.prototype.parseJSXElementName=function(){var e=this.createJSXNode(),t=this.parseJSXIdentifier();if(this.matchJSX(":")){var n=t;this.expectJSX(":");var r=this.parseJSXIdentifier();t=this.finalize(e,new s.JSXNamespacedName(n,r))}else if(this.matchJSX("."))for(;this.matchJSX(".");){var i=t;this.expectJSX(".");var o=this.parseJSXIdentifier();t=this.finalize(e,new s.JSXMemberExpression(i,o))}return t},t.prototype.parseJSXAttributeName=function(){var e,t=this.createJSXNode(),n=this.parseJSXIdentifier();if(this.matchJSX(":")){var r=n;this.expectJSX(":");var i=this.parseJSXIdentifier();e=this.finalize(t,new s.JSXNamespacedName(r,i))}else e=n;return e},t.prototype.parseJSXStringLiteralAttribute=function(){var e=this.createJSXNode(),t=this.nextJSXToken();8!==t.type&&this.throwUnexpectedToken(t);var n=this.getTokenRaw(t);return this.finalize(e,new c.Literal(t.value,n))},t.prototype.parseJSXExpressionAttribute=function(){var e=this.createJSXNode();this.expectJSX("{"),this.finishJSX(),this.match("}")&&this.tolerateError("JSX attributes must only be assigned a non-empty expression");var t=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(e,new s.JSXExpressionContainer(t))},t.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},t.prototype.parseJSXNameValueAttribute=function(){var e=this.createJSXNode(),t=this.parseJSXAttributeName(),n=null;return this.matchJSX("=")&&(this.expectJSX("="),n=this.parseJSXAttributeValue()),this.finalize(e,new s.JSXAttribute(t,n))},t.prototype.parseJSXSpreadAttribute=function(){var e=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var t=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(e,new s.JSXSpreadAttribute(t))},t.prototype.parseJSXAttributes=function(){for(var e=[];!this.matchJSX("/")&&!this.matchJSX(">");){var t=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();e.push(t)}return e},t.prototype.parseJSXOpeningElement=function(){var e=this.createJSXNode();this.expectJSX("<");var t=this.parseJSXElementName(),n=this.parseJSXAttributes(),r=this.matchJSX("/");return r&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(e,new s.JSXOpeningElement(t,r,n))},t.prototype.parseJSXBoundaryElement=function(){var e=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var t=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(e,new s.JSXClosingElement(t))}var n=this.parseJSXElementName(),r=this.parseJSXAttributes(),i=this.matchJSX("/");return i&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(e,new s.JSXOpeningElement(n,i,r))},t.prototype.parseJSXEmptyExpression=function(){var e=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(e,new s.JSXEmptyExpression)},t.prototype.parseJSXExpressionContainer=function(){var e,t=this.createJSXNode();return this.expectJSX("{"),this.matchJSX("}")?(e=this.parseJSXEmptyExpression(),this.expectJSX("}")):(this.finishJSX(),e=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(t,new s.JSXExpressionContainer(e))},t.prototype.parseJSXChildren=function(){for(var e=[];!this.scanner.eof();){var t=this.createJSXChildNode(),n=this.nextJSXText();if(n.start0))break;o=this.finalize(e.node,new s.JSXElement(e.opening,e.children,e.closing)),(e=t[t.length-1]).children.push(o),t.pop()}}return e},t.prototype.parseJSXElement=function(){var e=this.createJSXNode(),t=this.parseJSXOpeningElement(),n=[],r=null;if(!t.selfClosing){var i=this.parseComplexJSXElement({node:e,opening:t,closing:r,children:n});n=i.children,r=i.closing}return this.finalize(e,new s.JSXElement(t,n,r))},t.prototype.parseJSXRoot=function(){this.config.tokens&&this.tokens.pop(),this.startJSX();var e=this.parseJSXElement();return this.finishJSX(),e},t.prototype.isStartOfExpression=function(){return e.prototype.isStartOfExpression.call(this)||this.match("<")},t}(u.Parser);t.JSXParser=p},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};t.Character={fromCodePoint:function(e){return e<65536?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10))+String.fromCharCode(56320+(e-65536&1023))},isWhiteSpace:function(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(e)>=0},isLineTerminator:function(e){return 10===e||13===e||8232===e||8233===e},isIdentifierStart:function(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||92===e||e>=128&&n.NonAsciiIdentifierStart.test(t.Character.fromCodePoint(e))},isIdentifierPart:function(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||92===e||e>=128&&n.NonAsciiIdentifierPart.test(t.Character.fromCodePoint(e))},isDecimalDigit:function(e){return e>=48&&e<=57},isHexDigit:function(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102},isOctalDigit:function(e){return e>=48&&e<=55}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6);t.JSXClosingElement=function(e){this.type=r.JSXSyntax.JSXClosingElement,this.name=e};t.JSXElement=function(e,t,n){this.type=r.JSXSyntax.JSXElement,this.openingElement=e,this.children=t,this.closingElement=n};t.JSXEmptyExpression=function(){this.type=r.JSXSyntax.JSXEmptyExpression};t.JSXExpressionContainer=function(e){this.type=r.JSXSyntax.JSXExpressionContainer,this.expression=e};t.JSXIdentifier=function(e){this.type=r.JSXSyntax.JSXIdentifier,this.name=e};t.JSXMemberExpression=function(e,t){this.type=r.JSXSyntax.JSXMemberExpression,this.object=e,this.property=t};t.JSXAttribute=function(e,t){this.type=r.JSXSyntax.JSXAttribute,this.name=e,this.value=t};t.JSXNamespacedName=function(e,t){this.type=r.JSXSyntax.JSXNamespacedName,this.namespace=e,this.name=t};t.JSXOpeningElement=function(e,t,n){this.type=r.JSXSyntax.JSXOpeningElement,this.name=e,this.selfClosing=t,this.attributes=n};t.JSXSpreadAttribute=function(e){this.type=r.JSXSyntax.JSXSpreadAttribute,this.argument=e};t.JSXText=function(e,t){this.type=r.JSXSyntax.JSXText,this.value=e,this.raw=t}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JSXSyntax={JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);t.ArrayExpression=function(e){this.type=r.Syntax.ArrayExpression,this.elements=e};t.ArrayPattern=function(e){this.type=r.Syntax.ArrayPattern,this.elements=e};t.ArrowFunctionExpression=function(e,t,n){this.type=r.Syntax.ArrowFunctionExpression,this.id=null,this.params=e,this.body=t,this.generator=!1,this.expression=n,this.async=!1};t.AssignmentExpression=function(e,t,n){this.type=r.Syntax.AssignmentExpression,this.operator=e,this.left=t,this.right=n};t.AssignmentPattern=function(e,t){this.type=r.Syntax.AssignmentPattern,this.left=e,this.right=t};t.AsyncArrowFunctionExpression=function(e,t,n){this.type=r.Syntax.ArrowFunctionExpression,this.id=null,this.params=e,this.body=t,this.generator=!1,this.expression=n,this.async=!0};t.AsyncFunctionDeclaration=function(e,t,n){this.type=r.Syntax.FunctionDeclaration,this.id=e,this.params=t,this.body=n,this.generator=!1,this.expression=!1,this.async=!0};t.AsyncFunctionExpression=function(e,t,n){this.type=r.Syntax.FunctionExpression,this.id=e,this.params=t,this.body=n,this.generator=!1,this.expression=!1,this.async=!0};t.AwaitExpression=function(e){this.type=r.Syntax.AwaitExpression,this.argument=e};t.BinaryExpression=function(e,t,n){var i="||"===e||"&&"===e;this.type=i?r.Syntax.LogicalExpression:r.Syntax.BinaryExpression,this.operator=e,this.left=t,this.right=n};t.BlockStatement=function(e){this.type=r.Syntax.BlockStatement,this.body=e};t.BreakStatement=function(e){this.type=r.Syntax.BreakStatement,this.label=e};t.CallExpression=function(e,t){this.type=r.Syntax.CallExpression,this.callee=e,this.arguments=t};t.CatchClause=function(e,t){this.type=r.Syntax.CatchClause,this.param=e,this.body=t};t.ClassBody=function(e){this.type=r.Syntax.ClassBody,this.body=e};t.ClassDeclaration=function(e,t,n){this.type=r.Syntax.ClassDeclaration,this.id=e,this.superClass=t,this.body=n};t.ClassExpression=function(e,t,n){this.type=r.Syntax.ClassExpression,this.id=e,this.superClass=t,this.body=n};t.ComputedMemberExpression=function(e,t){this.type=r.Syntax.MemberExpression,this.computed=!0,this.object=e,this.property=t};t.ConditionalExpression=function(e,t,n){this.type=r.Syntax.ConditionalExpression,this.test=e,this.consequent=t,this.alternate=n};t.ContinueStatement=function(e){this.type=r.Syntax.ContinueStatement,this.label=e};t.DebuggerStatement=function(){this.type=r.Syntax.DebuggerStatement};t.Directive=function(e,t){this.type=r.Syntax.ExpressionStatement,this.expression=e,this.directive=t};t.DoWhileStatement=function(e,t){this.type=r.Syntax.DoWhileStatement,this.body=e,this.test=t};t.EmptyStatement=function(){this.type=r.Syntax.EmptyStatement};t.ExportAllDeclaration=function(e){this.type=r.Syntax.ExportAllDeclaration,this.source=e};t.ExportDefaultDeclaration=function(e){this.type=r.Syntax.ExportDefaultDeclaration,this.declaration=e};t.ExportNamedDeclaration=function(e,t,n){this.type=r.Syntax.ExportNamedDeclaration,this.declaration=e,this.specifiers=t,this.source=n};t.ExportSpecifier=function(e,t){this.type=r.Syntax.ExportSpecifier,this.exported=t,this.local=e};t.ExpressionStatement=function(e){this.type=r.Syntax.ExpressionStatement,this.expression=e};t.ForInStatement=function(e,t,n){this.type=r.Syntax.ForInStatement,this.left=e,this.right=t,this.body=n,this.each=!1};t.ForOfStatement=function(e,t,n){this.type=r.Syntax.ForOfStatement,this.left=e,this.right=t,this.body=n};t.ForStatement=function(e,t,n,i){this.type=r.Syntax.ForStatement,this.init=e,this.test=t,this.update=n,this.body=i};t.FunctionDeclaration=function(e,t,n,i){this.type=r.Syntax.FunctionDeclaration,this.id=e,this.params=t,this.body=n,this.generator=i,this.expression=!1,this.async=!1};t.FunctionExpression=function(e,t,n,i){this.type=r.Syntax.FunctionExpression,this.id=e,this.params=t,this.body=n,this.generator=i,this.expression=!1,this.async=!1};t.Identifier=function(e){this.type=r.Syntax.Identifier,this.name=e};t.IfStatement=function(e,t,n){this.type=r.Syntax.IfStatement,this.test=e,this.consequent=t,this.alternate=n};t.ImportDeclaration=function(e,t){this.type=r.Syntax.ImportDeclaration,this.specifiers=e,this.source=t};t.ImportDefaultSpecifier=function(e){this.type=r.Syntax.ImportDefaultSpecifier,this.local=e};t.ImportNamespaceSpecifier=function(e){this.type=r.Syntax.ImportNamespaceSpecifier,this.local=e};t.ImportSpecifier=function(e,t){this.type=r.Syntax.ImportSpecifier,this.local=e,this.imported=t};t.LabeledStatement=function(e,t){this.type=r.Syntax.LabeledStatement,this.label=e,this.body=t};t.Literal=function(e,t){this.type=r.Syntax.Literal,this.value=e,this.raw=t};t.MetaProperty=function(e,t){this.type=r.Syntax.MetaProperty,this.meta=e,this.property=t};t.MethodDefinition=function(e,t,n,i,o){this.type=r.Syntax.MethodDefinition,this.key=e,this.computed=t,this.value=n,this.kind=i,this.static=o};t.Module=function(e){this.type=r.Syntax.Program,this.body=e,this.sourceType="module"};t.NewExpression=function(e,t){this.type=r.Syntax.NewExpression,this.callee=e,this.arguments=t};t.ObjectExpression=function(e){this.type=r.Syntax.ObjectExpression,this.properties=e};t.ObjectPattern=function(e){this.type=r.Syntax.ObjectPattern,this.properties=e};t.Property=function(e,t,n,i,o,s){this.type=r.Syntax.Property,this.key=t,this.computed=n,this.value=i,this.kind=e,this.method=o,this.shorthand=s};t.RegexLiteral=function(e,t,n,i){this.type=r.Syntax.Literal,this.value=e,this.raw=t,this.regex={pattern:n,flags:i}};t.RestElement=function(e){this.type=r.Syntax.RestElement,this.argument=e};t.ReturnStatement=function(e){this.type=r.Syntax.ReturnStatement,this.argument=e};t.Script=function(e){this.type=r.Syntax.Program,this.body=e,this.sourceType="script"};t.SequenceExpression=function(e){this.type=r.Syntax.SequenceExpression,this.expressions=e};t.SpreadElement=function(e){this.type=r.Syntax.SpreadElement,this.argument=e};t.StaticMemberExpression=function(e,t){this.type=r.Syntax.MemberExpression,this.computed=!1,this.object=e,this.property=t};t.Super=function(){this.type=r.Syntax.Super};t.SwitchCase=function(e,t){this.type=r.Syntax.SwitchCase,this.test=e,this.consequent=t};t.SwitchStatement=function(e,t){this.type=r.Syntax.SwitchStatement,this.discriminant=e,this.cases=t};t.TaggedTemplateExpression=function(e,t){this.type=r.Syntax.TaggedTemplateExpression,this.tag=e,this.quasi=t};t.TemplateElement=function(e,t){this.type=r.Syntax.TemplateElement,this.value=e,this.tail=t};t.TemplateLiteral=function(e,t){this.type=r.Syntax.TemplateLiteral,this.quasis=e,this.expressions=t};t.ThisExpression=function(){this.type=r.Syntax.ThisExpression};t.ThrowStatement=function(e){this.type=r.Syntax.ThrowStatement,this.argument=e};t.TryStatement=function(e,t,n){this.type=r.Syntax.TryStatement,this.block=e,this.handler=t,this.finalizer=n};t.UnaryExpression=function(e,t){this.type=r.Syntax.UnaryExpression,this.operator=e,this.argument=t,this.prefix=!0};t.UpdateExpression=function(e,t,n){this.type=r.Syntax.UpdateExpression,this.operator=e,this.argument=t,this.prefix=n};t.VariableDeclaration=function(e,t){this.type=r.Syntax.VariableDeclaration,this.declarations=e,this.kind=t};t.VariableDeclarator=function(e,t){this.type=r.Syntax.VariableDeclarator,this.id=e,this.init=t};t.WhileStatement=function(e,t){this.type=r.Syntax.WhileStatement,this.test=e,this.body=t};t.WithStatement=function(e,t){this.type=r.Syntax.WithStatement,this.object=e,this.body=t};t.YieldExpression=function(e,t){this.type=r.Syntax.YieldExpression,this.argument=e,this.delegate=t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9),i=n(10),o=n(11),s=n(7),a=n(12),c=n(2),u=n(13),l="ArrowParameterPlaceHolder",f=function(){function e(e,t,n){void 0===t&&(t={}),this.config={range:"boolean"==typeof t.range&&t.range,loc:"boolean"==typeof t.loc&&t.loc,source:null,tokens:"boolean"==typeof t.tokens&&t.tokens,comment:"boolean"==typeof t.comment&&t.comment,tolerant:"boolean"==typeof t.tolerant&&t.tolerant},this.config.loc&&t.source&&null!==t.source&&(this.config.source=String(t.source)),this.delegate=n,this.errorHandler=new i.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new a.Scanner(e,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.lookahead={type:2,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:!1},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}return e.prototype.throwError=function(e){for(var t=[],n=1;n0&&this.delegate)for(var t=0;t>="===e||">>>="===e||"&="===e||"^="===e||"|="===e},e.prototype.isolateCoverGrammar=function(e){var t=this.context.isBindingElement,n=this.context.isAssignmentTarget,r=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var i=e.call(this);return null!==this.context.firstCoverInitializedNameError&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=t,this.context.isAssignmentTarget=n,this.context.firstCoverInitializedNameError=r,i},e.prototype.inheritCoverGrammar=function(e){var t=this.context.isBindingElement,n=this.context.isAssignmentTarget,r=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var i=e.call(this);return this.context.isBindingElement=this.context.isBindingElement&&t,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&n,this.context.firstCoverInitializedNameError=r||this.context.firstCoverInitializedNameError,i},e.prototype.consumeSemicolon=function(){this.match(";")?this.nextToken():this.hasLineTerminator||(2===this.lookahead.type||this.match("}")||this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column)},e.prototype.parsePrimaryExpression=function(){var e,t,n,r=this.createNode();switch(this.lookahead.type){case 3:(this.context.isModule||this.context.await)&&"await"===this.lookahead.value&&this.tolerateUnexpectedToken(this.lookahead),e=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(r,new s.Identifier(this.nextToken().value));break;case 6:case 8:this.context.strict&&this.lookahead.octal&&this.tolerateUnexpectedToken(this.lookahead,o.Messages.StrictOctalLiteral),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,t=this.nextToken(),n=this.getTokenRaw(t),e=this.finalize(r,new s.Literal(t.value,n));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,t=this.nextToken(),n=this.getTokenRaw(t),e=this.finalize(r,new s.Literal("true"===t.value,n));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,t=this.nextToken(),n=this.getTokenRaw(t),e=this.finalize(r,new s.Literal(null,n));break;case 10:e=this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case"(":this.context.isBindingElement=!1,e=this.inheritCoverGrammar(this.parseGroupExpression);break;case"[":e=this.inheritCoverGrammar(this.parseArrayInitializer);break;case"{":e=this.inheritCoverGrammar(this.parseObjectInitializer);break;case"/":case"/=":this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,t=this.nextRegexToken(),n=this.getTokenRaw(t),e=this.finalize(r,new s.RegexLiteral(t.regex,n,t.pattern,t.flags));break;default:e=this.throwUnexpectedToken(this.nextToken())}break;case 4:!this.context.strict&&this.context.allowYield&&this.matchKeyword("yield")?e=this.parseIdentifierName():!this.context.strict&&this.matchKeyword("let")?e=this.finalize(r,new s.Identifier(this.nextToken().value)):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword("function")?e=this.parseFunctionExpression():this.matchKeyword("this")?(this.nextToken(),e=this.finalize(r,new s.ThisExpression)):e=this.matchKeyword("class")?this.parseClassExpression():this.throwUnexpectedToken(this.nextToken()));break;default:e=this.throwUnexpectedToken(this.nextToken())}return e},e.prototype.parseSpreadElement=function(){var e=this.createNode();this.expect("...");var t=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(e,new s.SpreadElement(t))},e.prototype.parseArrayInitializer=function(){var e=this.createNode(),t=[];for(this.expect("[");!this.match("]");)if(this.match(","))this.nextToken(),t.push(null);else if(this.match("...")){var n=this.parseSpreadElement();this.match("]")||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(",")),t.push(n)}else t.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match("]")||this.expect(",");return this.expect("]"),this.finalize(e,new s.ArrayExpression(t))},e.prototype.parsePropertyMethod=function(e){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var t=this.context.strict,n=this.context.allowStrictDirective;this.context.allowStrictDirective=e.simple;var r=this.isolateCoverGrammar(this.parseFunctionSourceElements);return this.context.strict&&e.firstRestricted&&this.tolerateUnexpectedToken(e.firstRestricted,e.message),this.context.strict&&e.stricted&&this.tolerateUnexpectedToken(e.stricted,e.message),this.context.strict=t,this.context.allowStrictDirective=n,r},e.prototype.parsePropertyMethodFunction=function(){var e=this.createNode(),t=this.context.allowYield;this.context.allowYield=!0;var n=this.parseFormalParameters(),r=this.parsePropertyMethod(n);return this.context.allowYield=t,this.finalize(e,new s.FunctionExpression(null,n.params,r,!1))},e.prototype.parsePropertyMethodAsyncFunction=function(){var e=this.createNode(),t=this.context.allowYield,n=this.context.await;this.context.allowYield=!1,this.context.await=!0;var r=this.parseFormalParameters(),i=this.parsePropertyMethod(r);return this.context.allowYield=t,this.context.await=n,this.finalize(e,new s.AsyncFunctionExpression(null,r.params,i))},e.prototype.parseObjectPropertyKey=function(){var e,t=this.createNode(),n=this.nextToken();switch(n.type){case 8:case 6:this.context.strict&&n.octal&&this.tolerateUnexpectedToken(n,o.Messages.StrictOctalLiteral);var r=this.getTokenRaw(n);e=this.finalize(t,new s.Literal(n.value,r));break;case 3:case 1:case 5:case 4:e=this.finalize(t,new s.Identifier(n.value));break;case 7:"["===n.value?(e=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect("]")):e=this.throwUnexpectedToken(n);break;default:e=this.throwUnexpectedToken(n)}return e},e.prototype.isPropertyKey=function(e,t){return e.type===c.Syntax.Identifier&&e.name===t||e.type===c.Syntax.Literal&&e.value===t},e.prototype.parseObjectProperty=function(e){var t,n=this.createNode(),r=this.lookahead,i=null,a=null,c=!1,u=!1,l=!1,f=!1;if(3===r.type){var d=r.value;this.nextToken(),c=this.match("["),i=(f=!(this.hasLineTerminator||"async"!==d||this.match(":")||this.match("(")||this.match("*")||this.match(",")))?this.parseObjectPropertyKey():this.finalize(n,new s.Identifier(d))}else this.match("*")?this.nextToken():(c=this.match("["),i=this.parseObjectPropertyKey());var p=this.qualifiedPropertyName(this.lookahead);if(3===r.type&&!f&&"get"===r.value&&p)t="get",c=this.match("["),i=this.parseObjectPropertyKey(),this.context.allowYield=!1,a=this.parseGetterMethod();else if(3===r.type&&!f&&"set"===r.value&&p)t="set",c=this.match("["),i=this.parseObjectPropertyKey(),a=this.parseSetterMethod();else if(7===r.type&&"*"===r.value&&p)t="init",c=this.match("["),i=this.parseObjectPropertyKey(),a=this.parseGeneratorMethod(),u=!0;else if(i||this.throwUnexpectedToken(this.lookahead),t="init",this.match(":")&&!f)!c&&this.isPropertyKey(i,"__proto__")&&(e.value&&this.tolerateError(o.Messages.DuplicateProtoProperty),e.value=!0),this.nextToken(),a=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match("("))a=f?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),u=!0;else if(3===r.type)if(d=this.finalize(n,new s.Identifier(r.value)),this.match("=")){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),l=!0;var h=this.isolateCoverGrammar(this.parseAssignmentExpression);a=this.finalize(n,new s.AssignmentPattern(d,h))}else l=!0,a=d;else this.throwUnexpectedToken(this.nextToken());return this.finalize(n,new s.Property(t,i,c,a,u,l))},e.prototype.parseObjectInitializer=function(){var e=this.createNode();this.expect("{");for(var t=[],n={value:!1};!this.match("}");)t.push(this.parseObjectProperty(n)),this.match("}")||this.expectCommaSeparator();return this.expect("}"),this.finalize(e,new s.ObjectExpression(t))},e.prototype.parseTemplateHead=function(){r.assert(this.lookahead.head,"Template literal must start with a template head");var e=this.createNode(),t=this.nextToken(),n=t.value,i=t.cooked;return this.finalize(e,new s.TemplateElement({raw:n,cooked:i},t.tail))},e.prototype.parseTemplateElement=function(){10!==this.lookahead.type&&this.throwUnexpectedToken();var e=this.createNode(),t=this.nextToken(),n=t.value,r=t.cooked;return this.finalize(e,new s.TemplateElement({raw:n,cooked:r},t.tail))},e.prototype.parseTemplateLiteral=function(){var e=this.createNode(),t=[],n=[],r=this.parseTemplateHead();for(n.push(r);!r.tail;)t.push(this.parseExpression()),r=this.parseTemplateElement(),n.push(r);return this.finalize(e,new s.TemplateLiteral(n,t))},e.prototype.reinterpretExpressionAsPattern=function(e){switch(e.type){case c.Syntax.Identifier:case c.Syntax.MemberExpression:case c.Syntax.RestElement:case c.Syntax.AssignmentPattern:break;case c.Syntax.SpreadElement:e.type=c.Syntax.RestElement,this.reinterpretExpressionAsPattern(e.argument);break;case c.Syntax.ArrayExpression:e.type=c.Syntax.ArrayPattern;for(var t=0;t")||this.expect("=>"),e={type:l,params:[],async:!1};else{var t=this.lookahead,n=[];if(this.match("..."))e=this.parseRestElement(n),this.expect(")"),this.match("=>")||this.expect("=>"),e={type:l,params:[e],async:!1};else{var r=!1;if(this.context.isBindingElement=!0,e=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(",")){var i=[];for(this.context.isAssignmentTarget=!1,i.push(e);2!==this.lookahead.type&&this.match(",");){if(this.nextToken(),this.match(")")){this.nextToken();for(var o=0;o")||this.expect("=>"),this.context.isBindingElement=!1,o=0;o")&&(e.type===c.Syntax.Identifier&&"yield"===e.name&&(r=!0,e={type:l,params:[e],async:!1}),!r)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),e.type===c.Syntax.SequenceExpression)for(o=0;o")){for(var c=0;c0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var i=[e,this.lookahead],o=t,a=this.isolateCoverGrammar(this.parseExponentiationExpression),c=[o,n.value,a],u=[r];!((r=this.binaryPrecedence(this.lookahead))<=0);){for(;c.length>2&&r<=u[u.length-1];){a=c.pop();var l=c.pop();u.pop(),o=c.pop(),i.pop();var f=this.startNode(i[i.length-1]);c.push(this.finalize(f,new s.BinaryExpression(l,o,a)))}c.push(this.nextToken().value),u.push(r),i.push(this.lookahead),c.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var d=c.length-1;t=c[d];for(var p=i.pop();d>1;){var h=i.pop(),g=p&&p.lineStart;f=this.startNode(h,g),l=c[d-1],t=this.finalize(f,new s.BinaryExpression(l,c[d-2],t)),d-=2,p=h}}return t},e.prototype.parseConditionalExpression=function(){var e=this.lookahead,t=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match("?")){this.nextToken();var n=this.context.allowIn;this.context.allowIn=!0;var r=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=n,this.expect(":");var i=this.isolateCoverGrammar(this.parseAssignmentExpression);t=this.finalize(this.startNode(e),new s.ConditionalExpression(t,r,i)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return t},e.prototype.checkPatternParam=function(e,t){switch(t.type){case c.Syntax.Identifier:this.validateParam(e,t,t.name);break;case c.Syntax.RestElement:this.checkPatternParam(e,t.argument);break;case c.Syntax.AssignmentPattern:this.checkPatternParam(e,t.left);break;case c.Syntax.ArrayPattern:for(var n=0;n")){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var i=e.async,a=this.reinterpretAsCoverFormalsList(e);if(a){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var u=this.context.strict,f=this.context.allowStrictDirective;this.context.allowStrictDirective=a.simple;var d=this.context.allowYield,p=this.context.await;this.context.allowYield=!0,this.context.await=i;var h=this.startNode(t);this.expect("=>");var g=void 0;if(this.match("{")){var m=this.context.allowIn;this.context.allowIn=!0,g=this.parseFunctionSourceElements(),this.context.allowIn=m}else g=this.isolateCoverGrammar(this.parseAssignmentExpression);var y=g.type!==c.Syntax.BlockStatement;this.context.strict&&a.firstRestricted&&this.throwUnexpectedToken(a.firstRestricted,a.message),this.context.strict&&a.stricted&&this.tolerateUnexpectedToken(a.stricted,a.message),e=i?this.finalize(h,new s.AsyncArrowFunctionExpression(a.params,g,y)):this.finalize(h,new s.ArrowFunctionExpression(a.params,g,y)),this.context.strict=u,this.context.allowStrictDirective=f,this.context.allowYield=d,this.context.await=p}}else if(this.matchAssign()){if(this.context.isAssignmentTarget||this.tolerateError(o.Messages.InvalidLHSInAssignment),this.context.strict&&e.type===c.Syntax.Identifier){var v=e;this.scanner.isRestrictedWord(v.name)&&this.tolerateUnexpectedToken(n,o.Messages.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(v.name)&&this.tolerateUnexpectedToken(n,o.Messages.StrictReservedWord)}this.match("=")?this.reinterpretExpressionAsPattern(e):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1);var b=(n=this.nextToken()).value,S=this.isolateCoverGrammar(this.parseAssignmentExpression);e=this.finalize(this.startNode(t),new s.AssignmentExpression(b,e,S)),this.context.firstCoverInitializedNameError=null}}return e},e.prototype.parseExpression=function(){var e=this.lookahead,t=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(",")){var n=[];for(n.push(t);2!==this.lookahead.type&&this.match(",");)this.nextToken(),n.push(this.isolateCoverGrammar(this.parseAssignmentExpression));t=this.finalize(this.startNode(e),new s.SequenceExpression(n))}return t},e.prototype.parseStatementListItem=function(){var e;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,4===this.lookahead.type)switch(this.lookahead.value){case"export":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,o.Messages.IllegalExportDeclaration),e=this.parseExportDeclaration();break;case"import":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,o.Messages.IllegalImportDeclaration),e=this.parseImportDeclaration();break;case"const":e=this.parseLexicalDeclaration({inFor:!1});break;case"function":e=this.parseFunctionDeclaration();break;case"class":e=this.parseClassDeclaration();break;case"let":e=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:e=this.parseStatement()}else e=this.parseStatement();return e},e.prototype.parseBlock=function(){var e=this.createNode();this.expect("{");for(var t=[];!this.match("}");)t.push(this.parseStatementListItem());return this.expect("}"),this.finalize(e,new s.BlockStatement(t))},e.prototype.parseLexicalBinding=function(e,t){var n=this.createNode(),r=this.parsePattern([],e);this.context.strict&&r.type===c.Syntax.Identifier&&this.scanner.isRestrictedWord(r.name)&&this.tolerateError(o.Messages.StrictVarName);var i=null;return"const"===e?this.matchKeyword("in")||this.matchContextualKeyword("of")||(this.match("=")?(this.nextToken(),i=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError(o.Messages.DeclarationMissingInitializer,"const")):(!t.inFor&&r.type!==c.Syntax.Identifier||this.match("="))&&(this.expect("="),i=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(n,new s.VariableDeclarator(r,i))},e.prototype.parseBindingList=function(e,t){for(var n=[this.parseLexicalBinding(e,t)];this.match(",");)this.nextToken(),n.push(this.parseLexicalBinding(e,t));return n},e.prototype.isLexicalDeclaration=function(){var e=this.scanner.saveState();this.scanner.scanComments();var t=this.scanner.lex();return this.scanner.restoreState(e),3===t.type||7===t.type&&"["===t.value||7===t.type&&"{"===t.value||4===t.type&&"let"===t.value||4===t.type&&"yield"===t.value},e.prototype.parseLexicalDeclaration=function(e){var t=this.createNode(),n=this.nextToken().value;r.assert("let"===n||"const"===n,"Lexical declaration must be either let or const");var i=this.parseBindingList(n,e);return this.consumeSemicolon(),this.finalize(t,new s.VariableDeclaration(i,n))},e.prototype.parseBindingRestElement=function(e,t){var n=this.createNode();this.expect("...");var r=this.parsePattern(e,t);return this.finalize(n,new s.RestElement(r))},e.prototype.parseArrayPattern=function(e,t){var n=this.createNode();this.expect("[");for(var r=[];!this.match("]");)if(this.match(","))this.nextToken(),r.push(null);else{if(this.match("...")){r.push(this.parseBindingRestElement(e,t));break}r.push(this.parsePatternWithDefault(e,t)),this.match("]")||this.expect(",")}return this.expect("]"),this.finalize(n,new s.ArrayPattern(r))},e.prototype.parsePropertyPattern=function(e,t){var n,r,i=this.createNode(),o=!1,a=!1;if(3===this.lookahead.type){var c=this.lookahead;n=this.parseVariableIdentifier();var u=this.finalize(i,new s.Identifier(c.value));if(this.match("=")){e.push(c),a=!0,this.nextToken();var l=this.parseAssignmentExpression();r=this.finalize(this.startNode(c),new s.AssignmentPattern(u,l))}else this.match(":")?(this.expect(":"),r=this.parsePatternWithDefault(e,t)):(e.push(c),a=!0,r=u)}else o=this.match("["),n=this.parseObjectPropertyKey(),this.expect(":"),r=this.parsePatternWithDefault(e,t);return this.finalize(i,new s.Property("init",n,o,r,!1,a))},e.prototype.parseObjectPattern=function(e,t){var n=this.createNode(),r=[];for(this.expect("{");!this.match("}");)r.push(this.parsePropertyPattern(e,t)),this.match("}")||this.expect(",");return this.expect("}"),this.finalize(n,new s.ObjectPattern(r))},e.prototype.parsePattern=function(e,t){var n;return this.match("[")?n=this.parseArrayPattern(e,t):this.match("{")?n=this.parseObjectPattern(e,t):(!this.matchKeyword("let")||"const"!==t&&"let"!==t||this.tolerateUnexpectedToken(this.lookahead,o.Messages.LetInLexicalBinding),e.push(this.lookahead),n=this.parseVariableIdentifier(t)),n},e.prototype.parsePatternWithDefault=function(e,t){var n=this.lookahead,r=this.parsePattern(e,t);if(this.match("=")){this.nextToken();var i=this.context.allowYield;this.context.allowYield=!0;var o=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=i,r=this.finalize(this.startNode(n),new s.AssignmentPattern(r,o))}return r},e.prototype.parseVariableIdentifier=function(e){var t=this.createNode(),n=this.nextToken();return 4===n.type&&"yield"===n.value?this.context.strict?this.tolerateUnexpectedToken(n,o.Messages.StrictReservedWord):this.context.allowYield||this.throwUnexpectedToken(n):3!==n.type?this.context.strict&&4===n.type&&this.scanner.isStrictModeReservedWord(n.value)?this.tolerateUnexpectedToken(n,o.Messages.StrictReservedWord):(this.context.strict||"let"!==n.value||"var"!==e)&&this.throwUnexpectedToken(n):(this.context.isModule||this.context.await)&&3===n.type&&"await"===n.value&&this.tolerateUnexpectedToken(n),this.finalize(t,new s.Identifier(n.value))},e.prototype.parseVariableDeclaration=function(e){var t=this.createNode(),n=this.parsePattern([],"var");this.context.strict&&n.type===c.Syntax.Identifier&&this.scanner.isRestrictedWord(n.name)&&this.tolerateError(o.Messages.StrictVarName);var r=null;return this.match("=")?(this.nextToken(),r=this.isolateCoverGrammar(this.parseAssignmentExpression)):n.type===c.Syntax.Identifier||e.inFor||this.expect("="),this.finalize(t,new s.VariableDeclarator(n,r))},e.prototype.parseVariableDeclarationList=function(e){var t={inFor:e.inFor},n=[];for(n.push(this.parseVariableDeclaration(t));this.match(",");)this.nextToken(),n.push(this.parseVariableDeclaration(t));return n},e.prototype.parseVariableStatement=function(){var e=this.createNode();this.expectKeyword("var");var t=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(e,new s.VariableDeclaration(t,"var"))},e.prototype.parseEmptyStatement=function(){var e=this.createNode();return this.expect(";"),this.finalize(e,new s.EmptyStatement)},e.prototype.parseExpressionStatement=function(){var e=this.createNode(),t=this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new s.ExpressionStatement(t))},e.prototype.parseIfClause=function(){return this.context.strict&&this.matchKeyword("function")&&this.tolerateError(o.Messages.StrictFunction),this.parseStatement()},e.prototype.parseIfStatement=function(){var e,t=this.createNode(),n=null;this.expectKeyword("if"),this.expect("(");var r=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),e=this.finalize(this.createNode(),new s.EmptyStatement)):(this.expect(")"),e=this.parseIfClause(),this.matchKeyword("else")&&(this.nextToken(),n=this.parseIfClause())),this.finalize(t,new s.IfStatement(r,e,n))},e.prototype.parseDoWhileStatement=function(){var e=this.createNode();this.expectKeyword("do");var t=this.context.inIteration;this.context.inIteration=!0;var n=this.parseStatement();this.context.inIteration=t,this.expectKeyword("while"),this.expect("(");var r=this.parseExpression();return!this.match(")")&&this.config.tolerant?this.tolerateUnexpectedToken(this.nextToken()):(this.expect(")"),this.match(";")&&this.nextToken()),this.finalize(e,new s.DoWhileStatement(n,r))},e.prototype.parseWhileStatement=function(){var e,t=this.createNode();this.expectKeyword("while"),this.expect("(");var n=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),e=this.finalize(this.createNode(),new s.EmptyStatement);else{this.expect(")");var r=this.context.inIteration;this.context.inIteration=!0,e=this.parseStatement(),this.context.inIteration=r}return this.finalize(t,new s.WhileStatement(n,e))},e.prototype.parseForStatement=function(){var e,t,n,r=null,i=null,a=null,u=!0,l=this.createNode();if(this.expectKeyword("for"),this.expect("("),this.match(";"))this.nextToken();else if(this.matchKeyword("var")){r=this.createNode(),this.nextToken();var f=this.context.allowIn;this.context.allowIn=!1;var d=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=f,1===d.length&&this.matchKeyword("in")){var p=d[0];p.init&&(p.id.type===c.Syntax.ArrayPattern||p.id.type===c.Syntax.ObjectPattern||this.context.strict)&&this.tolerateError(o.Messages.ForInOfLoopInitializer,"for-in"),r=this.finalize(r,new s.VariableDeclaration(d,"var")),this.nextToken(),e=r,t=this.parseExpression(),r=null}else 1===d.length&&null===d[0].init&&this.matchContextualKeyword("of")?(r=this.finalize(r,new s.VariableDeclaration(d,"var")),this.nextToken(),e=r,t=this.parseAssignmentExpression(),r=null,u=!1):(r=this.finalize(r,new s.VariableDeclaration(d,"var")),this.expect(";"))}else if(this.matchKeyword("const")||this.matchKeyword("let")){r=this.createNode();var h=this.nextToken().value;this.context.strict||"in"!==this.lookahead.value?(f=this.context.allowIn,this.context.allowIn=!1,d=this.parseBindingList(h,{inFor:!0}),this.context.allowIn=f,1===d.length&&null===d[0].init&&this.matchKeyword("in")?(r=this.finalize(r,new s.VariableDeclaration(d,h)),this.nextToken(),e=r,t=this.parseExpression(),r=null):1===d.length&&null===d[0].init&&this.matchContextualKeyword("of")?(r=this.finalize(r,new s.VariableDeclaration(d,h)),this.nextToken(),e=r,t=this.parseAssignmentExpression(),r=null,u=!1):(this.consumeSemicolon(),r=this.finalize(r,new s.VariableDeclaration(d,h)))):(r=this.finalize(r,new s.Identifier(h)),this.nextToken(),e=r,t=this.parseExpression(),r=null)}else{var g=this.lookahead;if(f=this.context.allowIn,this.context.allowIn=!1,r=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=f,this.matchKeyword("in"))this.context.isAssignmentTarget&&r.type!==c.Syntax.AssignmentExpression||this.tolerateError(o.Messages.InvalidLHSInForIn),this.nextToken(),this.reinterpretExpressionAsPattern(r),e=r,t=this.parseExpression(),r=null;else if(this.matchContextualKeyword("of"))this.context.isAssignmentTarget&&r.type!==c.Syntax.AssignmentExpression||this.tolerateError(o.Messages.InvalidLHSInForLoop),this.nextToken(),this.reinterpretExpressionAsPattern(r),e=r,t=this.parseAssignmentExpression(),r=null,u=!1;else{if(this.match(",")){for(var m=[r];this.match(",");)this.nextToken(),m.push(this.isolateCoverGrammar(this.parseAssignmentExpression));r=this.finalize(this.startNode(g),new s.SequenceExpression(m))}this.expect(";")}}if(void 0===e&&(this.match(";")||(i=this.parseExpression()),this.expect(";"),this.match(")")||(a=this.parseExpression())),!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),n=this.finalize(this.createNode(),new s.EmptyStatement);else{this.expect(")");var y=this.context.inIteration;this.context.inIteration=!0,n=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=y}return void 0===e?this.finalize(l,new s.ForStatement(r,i,a,n)):u?this.finalize(l,new s.ForInStatement(e,t,n)):this.finalize(l,new s.ForOfStatement(e,t,n))},e.prototype.parseContinueStatement=function(){var e=this.createNode();this.expectKeyword("continue");var t=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var n=this.parseVariableIdentifier();t=n;var r="$"+n.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,r)||this.throwError(o.Messages.UnknownLabel,n.name)}return this.consumeSemicolon(),null!==t||this.context.inIteration||this.throwError(o.Messages.IllegalContinue),this.finalize(e,new s.ContinueStatement(t))},e.prototype.parseBreakStatement=function(){var e=this.createNode();this.expectKeyword("break");var t=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var n=this.parseVariableIdentifier(),r="$"+n.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,r)||this.throwError(o.Messages.UnknownLabel,n.name),t=n}return this.consumeSemicolon(),null!==t||this.context.inIteration||this.context.inSwitch||this.throwError(o.Messages.IllegalBreak),this.finalize(e,new s.BreakStatement(t))},e.prototype.parseReturnStatement=function(){this.context.inFunctionBody||this.tolerateError(o.Messages.IllegalReturn);var e=this.createNode();this.expectKeyword("return");var t=(this.match(";")||this.match("}")||this.hasLineTerminator||2===this.lookahead.type)&&8!==this.lookahead.type&&10!==this.lookahead.type?null:this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new s.ReturnStatement(t))},e.prototype.parseWithStatement=function(){this.context.strict&&this.tolerateError(o.Messages.StrictModeWith);var e,t=this.createNode();this.expectKeyword("with"),this.expect("(");var n=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),e=this.finalize(this.createNode(),new s.EmptyStatement)):(this.expect(")"),e=this.parseStatement()),this.finalize(t,new s.WithStatement(n,e))},e.prototype.parseSwitchCase=function(){var e,t=this.createNode();this.matchKeyword("default")?(this.nextToken(),e=null):(this.expectKeyword("case"),e=this.parseExpression()),this.expect(":");for(var n=[];!(this.match("}")||this.matchKeyword("default")||this.matchKeyword("case"));)n.push(this.parseStatementListItem());return this.finalize(t,new s.SwitchCase(e,n))},e.prototype.parseSwitchStatement=function(){var e=this.createNode();this.expectKeyword("switch"),this.expect("(");var t=this.parseExpression();this.expect(")");var n=this.context.inSwitch;this.context.inSwitch=!0;var r=[],i=!1;for(this.expect("{");!this.match("}");){var a=this.parseSwitchCase();null===a.test&&(i&&this.throwError(o.Messages.MultipleDefaultsInSwitch),i=!0),r.push(a)}return this.expect("}"),this.context.inSwitch=n,this.finalize(e,new s.SwitchStatement(t,r))},e.prototype.parseLabelledStatement=function(){var e,t=this.createNode(),n=this.parseExpression();if(n.type===c.Syntax.Identifier&&this.match(":")){this.nextToken();var r=n,i="$"+r.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,i)&&this.throwError(o.Messages.Redeclaration,"Label",r.name),this.context.labelSet[i]=!0;var a=void 0;if(this.matchKeyword("class"))this.tolerateUnexpectedToken(this.lookahead),a=this.parseClassDeclaration();else if(this.matchKeyword("function")){var u=this.lookahead,l=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(u,o.Messages.StrictFunction):l.generator&&this.tolerateUnexpectedToken(u,o.Messages.GeneratorInLegacyContext),a=l}else a=this.parseStatement();delete this.context.labelSet[i],e=new s.LabeledStatement(r,a)}else this.consumeSemicolon(),e=new s.ExpressionStatement(n);return this.finalize(t,e)},e.prototype.parseThrowStatement=function(){var e=this.createNode();this.expectKeyword("throw"),this.hasLineTerminator&&this.throwError(o.Messages.NewlineAfterThrow);var t=this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new s.ThrowStatement(t))},e.prototype.parseCatchClause=function(){var e=this.createNode();this.expectKeyword("catch"),this.expect("("),this.match(")")&&this.throwUnexpectedToken(this.lookahead);for(var t=[],n=this.parsePattern(t),r={},i=0;i0&&this.tolerateError(o.Messages.BadGetterArity);var r=this.parsePropertyMethod(n);return this.context.allowYield=t,this.finalize(e,new s.FunctionExpression(null,n.params,r,!1))},e.prototype.parseSetterMethod=function(){var e=this.createNode(),t=this.context.allowYield;this.context.allowYield=!0;var n=this.parseFormalParameters();1!==n.params.length?this.tolerateError(o.Messages.BadSetterArity):n.params[0]instanceof s.RestElement&&this.tolerateError(o.Messages.BadSetterRestParameter);var r=this.parsePropertyMethod(n);return this.context.allowYield=t,this.finalize(e,new s.FunctionExpression(null,n.params,r,!1))},e.prototype.parseGeneratorMethod=function(){var e=this.createNode(),t=this.context.allowYield;this.context.allowYield=!0;var n=this.parseFormalParameters();this.context.allowYield=!1;var r=this.parsePropertyMethod(n);return this.context.allowYield=t,this.finalize(e,new s.FunctionExpression(null,n.params,r,!0))},e.prototype.isStartOfExpression=function(){var e=!0,t=this.lookahead.value;switch(this.lookahead.type){case 7:e="["===t||"("===t||"{"===t||"+"===t||"-"===t||"!"===t||"~"===t||"++"===t||"--"===t||"/"===t||"/="===t;break;case 4:e="class"===t||"delete"===t||"function"===t||"let"===t||"new"===t||"super"===t||"this"===t||"typeof"===t||"void"===t||"yield"===t}return e},e.prototype.parseYieldExpression=function(){var e=this.createNode();this.expectKeyword("yield");var t=null,n=!1;if(!this.hasLineTerminator){var r=this.context.allowYield;this.context.allowYield=!1,(n=this.match("*"))?(this.nextToken(),t=this.parseAssignmentExpression()):this.isStartOfExpression()&&(t=this.parseAssignmentExpression()),this.context.allowYield=r}return this.finalize(e,new s.YieldExpression(t,n))},e.prototype.parseClassElement=function(e){var t=this.lookahead,n=this.createNode(),r="",i=null,a=null,c=!1,u=!1,l=!1,f=!1;if(this.match("*"))this.nextToken();else if(c=this.match("["),"static"===(i=this.parseObjectPropertyKey()).name&&(this.qualifiedPropertyName(this.lookahead)||this.match("*"))&&(t=this.lookahead,l=!0,c=this.match("["),this.match("*")?this.nextToken():i=this.parseObjectPropertyKey()),3===t.type&&!this.hasLineTerminator&&"async"===t.value){var d=this.lookahead.value;":"!==d&&"("!==d&&"*"!==d&&(f=!0,t=this.lookahead,i=this.parseObjectPropertyKey(),3===t.type&&"constructor"===t.value&&this.tolerateUnexpectedToken(t,o.Messages.ConstructorIsAsync))}var p=this.qualifiedPropertyName(this.lookahead);return 3===t.type?"get"===t.value&&p?(r="get",c=this.match("["),i=this.parseObjectPropertyKey(),this.context.allowYield=!1,a=this.parseGetterMethod()):"set"===t.value&&p&&(r="set",c=this.match("["),i=this.parseObjectPropertyKey(),a=this.parseSetterMethod()):7===t.type&&"*"===t.value&&p&&(r="init",c=this.match("["),i=this.parseObjectPropertyKey(),a=this.parseGeneratorMethod(),u=!0),!r&&i&&this.match("(")&&(r="init",a=f?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),u=!0),r||this.throwUnexpectedToken(this.lookahead),"init"===r&&(r="method"),c||(l&&this.isPropertyKey(i,"prototype")&&this.throwUnexpectedToken(t,o.Messages.StaticPrototype),!l&&this.isPropertyKey(i,"constructor")&&(("method"!==r||!u||a&&a.generator)&&this.throwUnexpectedToken(t,o.Messages.ConstructorSpecialMethod),e.value?this.throwUnexpectedToken(t,o.Messages.DuplicateConstructor):e.value=!0,r="constructor")),this.finalize(n,new s.MethodDefinition(i,c,a,r,l))},e.prototype.parseClassElementList=function(){var e=[],t={value:!1};for(this.expect("{");!this.match("}");)this.match(";")?this.nextToken():e.push(this.parseClassElement(t));return this.expect("}"),e},e.prototype.parseClassBody=function(){var e=this.createNode(),t=this.parseClassElementList();return this.finalize(e,new s.ClassBody(t))},e.prototype.parseClassDeclaration=function(e){var t=this.createNode(),n=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var r=e&&3!==this.lookahead.type?null:this.parseVariableIdentifier(),i=null;this.matchKeyword("extends")&&(this.nextToken(),i=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var o=this.parseClassBody();return this.context.strict=n,this.finalize(t,new s.ClassDeclaration(r,i,o))},e.prototype.parseClassExpression=function(){var e=this.createNode(),t=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var n=3===this.lookahead.type?this.parseVariableIdentifier():null,r=null;this.matchKeyword("extends")&&(this.nextToken(),r=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var i=this.parseClassBody();return this.context.strict=t,this.finalize(e,new s.ClassExpression(n,r,i))},e.prototype.parseModule=function(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;for(var e=this.createNode(),t=this.parseDirectivePrologues();2!==this.lookahead.type;)t.push(this.parseStatementListItem());return this.finalize(e,new s.Module(t))},e.prototype.parseScript=function(){for(var e=this.createNode(),t=this.parseDirectivePrologues();2!==this.lookahead.type;)t.push(this.parseStatementListItem());return this.finalize(e,new s.Script(t))},e.prototype.parseModuleSpecifier=function(){var e=this.createNode();8!==this.lookahead.type&&this.throwError(o.Messages.InvalidModuleSpecifier);var t=this.nextToken(),n=this.getTokenRaw(t);return this.finalize(e,new s.Literal(t.value,n))},e.prototype.parseImportSpecifier=function(){var e,t,n=this.createNode();return 3===this.lookahead.type?(t=e=this.parseVariableIdentifier(),this.matchContextualKeyword("as")&&(this.nextToken(),t=this.parseVariableIdentifier())):(t=e=this.parseIdentifierName(),this.matchContextualKeyword("as")?(this.nextToken(),t=this.parseVariableIdentifier()):this.throwUnexpectedToken(this.nextToken())),this.finalize(n,new s.ImportSpecifier(t,e))},e.prototype.parseNamedImports=function(){this.expect("{");for(var e=[];!this.match("}");)e.push(this.parseImportSpecifier()),this.match("}")||this.expect(",");return this.expect("}"),e},e.prototype.parseImportDefaultSpecifier=function(){var e=this.createNode(),t=this.parseIdentifierName();return this.finalize(e,new s.ImportDefaultSpecifier(t))},e.prototype.parseImportNamespaceSpecifier=function(){var e=this.createNode();this.expect("*"),this.matchContextualKeyword("as")||this.throwError(o.Messages.NoAsAfterImportNamespace),this.nextToken();var t=this.parseIdentifierName();return this.finalize(e,new s.ImportNamespaceSpecifier(t))},e.prototype.parseImportDeclaration=function(){this.context.inFunctionBody&&this.throwError(o.Messages.IllegalImportDeclaration);var e,t=this.createNode();this.expectKeyword("import");var n=[];if(8===this.lookahead.type)e=this.parseModuleSpecifier();else{if(this.match("{")?n=n.concat(this.parseNamedImports()):this.match("*")?n.push(this.parseImportNamespaceSpecifier()):this.isIdentifierName(this.lookahead)&&!this.matchKeyword("default")?(n.push(this.parseImportDefaultSpecifier()),this.match(",")&&(this.nextToken(),this.match("*")?n.push(this.parseImportNamespaceSpecifier()):this.match("{")?n=n.concat(this.parseNamedImports()):this.throwUnexpectedToken(this.lookahead))):this.throwUnexpectedToken(this.nextToken()),!this.matchContextualKeyword("from")){var r=this.lookahead.value?o.Messages.UnexpectedToken:o.Messages.MissingFromClause;this.throwError(r,this.lookahead.value)}this.nextToken(),e=this.parseModuleSpecifier()}return this.consumeSemicolon(),this.finalize(t,new s.ImportDeclaration(n,e))},e.prototype.parseExportSpecifier=function(){var e=this.createNode(),t=this.parseIdentifierName(),n=t;return this.matchContextualKeyword("as")&&(this.nextToken(),n=this.parseIdentifierName()),this.finalize(e,new s.ExportSpecifier(t,n))},e.prototype.parseExportDeclaration=function(){this.context.inFunctionBody&&this.throwError(o.Messages.IllegalExportDeclaration);var e,t=this.createNode();if(this.expectKeyword("export"),this.matchKeyword("default"))if(this.nextToken(),this.matchKeyword("function")){var n=this.parseFunctionDeclaration(!0);e=this.finalize(t,new s.ExportDefaultDeclaration(n))}else this.matchKeyword("class")?(n=this.parseClassDeclaration(!0),e=this.finalize(t,new s.ExportDefaultDeclaration(n))):this.matchContextualKeyword("async")?(n=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression(),e=this.finalize(t,new s.ExportDefaultDeclaration(n))):(this.matchContextualKeyword("from")&&this.throwError(o.Messages.UnexpectedToken,this.lookahead.value),n=this.match("{")?this.parseObjectInitializer():this.match("[")?this.parseArrayInitializer():this.parseAssignmentExpression(),this.consumeSemicolon(),e=this.finalize(t,new s.ExportDefaultDeclaration(n)));else if(this.match("*")){if(this.nextToken(),!this.matchContextualKeyword("from")){var r=this.lookahead.value?o.Messages.UnexpectedToken:o.Messages.MissingFromClause;this.throwError(r,this.lookahead.value)}this.nextToken();var i=this.parseModuleSpecifier();this.consumeSemicolon(),e=this.finalize(t,new s.ExportAllDeclaration(i))}else if(4===this.lookahead.type){switch(n=void 0,this.lookahead.value){case"let":case"const":n=this.parseLexicalDeclaration({inFor:!1});break;case"var":case"class":case"function":n=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead)}e=this.finalize(t,new s.ExportNamedDeclaration(n,[],null))}else if(this.matchAsyncFunction())n=this.parseFunctionDeclaration(),e=this.finalize(t,new s.ExportNamedDeclaration(n,[],null));else{var a=[],c=null,u=!1;for(this.expect("{");!this.match("}");)u=u||this.matchKeyword("default"),a.push(this.parseExportSpecifier()),this.match("}")||this.expect(",");this.expect("}"),this.matchContextualKeyword("from")?(this.nextToken(),c=this.parseModuleSpecifier(),this.consumeSemicolon()):u?(r=this.lookahead.value?o.Messages.UnexpectedToken:o.Messages.MissingFromClause,this.throwError(r,this.lookahead.value)):this.consumeSemicolon(),e=this.finalize(t,new s.ExportNamedDeclaration(null,a,c))}return e},e}();t.Parser=f},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assert=function(e,t){if(!e)throw new Error("ASSERT: "+t)}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this.errors=[],this.tolerant=!1}return e.prototype.recordError=function(e){this.errors.push(e)},e.prototype.tolerate=function(e){if(!this.tolerant)throw e;this.recordError(e)},e.prototype.constructError=function(e,t){var n=new Error(e);try{throw n}catch(e){Object.create&&Object.defineProperty&&(n=Object.create(e),Object.defineProperty(n,"column",{value:t}))}return n},e.prototype.createError=function(e,t,n,r){var i="Line "+t+": "+r,o=this.constructError(i,n);return o.index=e,o.lineNumber=t,o.description=r,o},e.prototype.throwError=function(e,t,n,r){throw this.createError(e,t,n,r)},e.prototype.tolerateError=function(e,t,n,r){var i=this.createError(e,t,n,r);if(!this.tolerant)throw i;this.recordError(i)},e}();t.ErrorHandler=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Messages={BadGetterArity:"Getter must not have any formal parameters",BadSetterArity:"Setter must have exactly one formal parameter",BadSetterRestParameter:"Setter function argument must not be a rest parameter",ConstructorIsAsync:"Class constructor may not be an async method",ConstructorSpecialMethod:"Class constructor may not be an accessor",DeclarationMissingInitializer:"Missing initializer in %0 declaration",DefaultRestParameter:"Unexpected token =",DuplicateBinding:"Duplicate binding %0",DuplicateConstructor:"A class may only have one constructor",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInLegacyContext:"Generator declarations are not allowed in legacy contexts",IllegalBreak:"Illegal break statement",IllegalContinue:"Illegal continue statement",IllegalExportDeclaration:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"Illegal return statement",InvalidEscapedReservedWord:"Keyword must not contain escaped characters",InvalidHexEscapeSequence:"Invalid hexadecimal escape sequence",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",InvalidModuleSpecifier:"Unexpected token",InvalidRegExp:"Invalid regular expression",LetInLexicalBinding:"let is disallowed as a lexically bound name",MissingFromClause:"Unexpected token",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NewlineAfterThrow:"Illegal newline after throw",NoAsAfterImportNamespace:"Unexpected token",NoCatchOrFinally:"Missing catch or finally after try",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",Redeclaration:"%0 '%1' has already been declared",StaticPrototype:"Classes may not have static property named prototype",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictModeWith:"Strict mode code may not include a with statement",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",UnexpectedEOS:"Unexpected end of input",UnexpectedIdentifier:"Unexpected identifier",UnexpectedNumber:"Unexpected number",UnexpectedReserved:"Unexpected reserved word",UnexpectedString:"Unexpected string",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedToken:"Unexpected token %0",UnexpectedTokenIllegal:"Unexpected token ILLEGAL",UnknownLabel:"Undefined label '%0'",UnterminatedRegExp:"Invalid regular expression: missing /"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9),i=n(4),o=n(11);function s(e){return"0123456789abcdef".indexOf(e.toLowerCase())}function a(e){return"01234567".indexOf(e)}var c=function(){function e(e,t){this.source=e,this.errorHandler=t,this.trackComment=!1,this.isModule=!1,this.length=e.length,this.index=0,this.lineNumber=e.length>0?1:0,this.lineStart=0,this.curlyStack=[]}return e.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart}},e.prototype.restoreState=function(e){this.index=e.index,this.lineNumber=e.lineNumber,this.lineStart=e.lineStart},e.prototype.eof=function(){return this.index>=this.length},e.prototype.throwUnexpectedToken=function(e){return void 0===e&&(e=o.Messages.UnexpectedTokenIllegal),this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,e)},e.prototype.tolerateUnexpectedToken=function(e){void 0===e&&(e=o.Messages.UnexpectedTokenIllegal),this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,e)},e.prototype.skipSingleLineComment=function(e){var t,n,r=[];for(this.trackComment&&(r=[],t=this.index-e,n={start:{line:this.lineNumber,column:this.index-this.lineStart-e},end:{}});!this.eof();){var o=this.source.charCodeAt(this.index);if(++this.index,i.Character.isLineTerminator(o)){if(this.trackComment){n.end={line:this.lineNumber,column:this.index-this.lineStart-1};var s={multiLine:!1,slice:[t+e,this.index-1],range:[t,this.index-1],loc:n};r.push(s)}return 13===o&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,r}}return this.trackComment&&(n.end={line:this.lineNumber,column:this.index-this.lineStart},s={multiLine:!1,slice:[t+e,this.index],range:[t,this.index],loc:n},r.push(s)),r},e.prototype.skipMultiLineComment=function(){var e,t,n=[];for(this.trackComment&&(n=[],e=this.index-2,t={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}});!this.eof();){var r=this.source.charCodeAt(this.index);if(i.Character.isLineTerminator(r))13===r&&10===this.source.charCodeAt(this.index+1)&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(42===r){if(47===this.source.charCodeAt(this.index+1)){if(this.index+=2,this.trackComment){t.end={line:this.lineNumber,column:this.index-this.lineStart};var o={multiLine:!0,slice:[e+2,this.index-2],range:[e,this.index],loc:t};n.push(o)}return n}++this.index}else++this.index}return this.trackComment&&(t.end={line:this.lineNumber,column:this.index-this.lineStart},o={multiLine:!0,slice:[e+2,this.index],range:[e,this.index],loc:t},n.push(o)),this.tolerateUnexpectedToken(),n},e.prototype.scanComments=function(){var e;this.trackComment&&(e=[]);for(var t=0===this.index;!this.eof();){var n=this.source.charCodeAt(this.index);if(i.Character.isWhiteSpace(n))++this.index;else if(i.Character.isLineTerminator(n))++this.index,13===n&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,t=!0;else if(47===n)if(47===(n=this.source.charCodeAt(this.index+1))){this.index+=2;var r=this.skipSingleLineComment(2);this.trackComment&&(e=e.concat(r)),t=!0}else{if(42!==n)break;this.index+=2,r=this.skipMultiLineComment(),this.trackComment&&(e=e.concat(r))}else if(t&&45===n){if(45!==this.source.charCodeAt(this.index+1)||62!==this.source.charCodeAt(this.index+2))break;this.index+=3,r=this.skipSingleLineComment(3),this.trackComment&&(e=e.concat(r))}else{if(60!==n||this.isModule)break;if("!--"!==this.source.slice(this.index+1,this.index+4))break;this.index+=4,r=this.skipSingleLineComment(4),this.trackComment&&(e=e.concat(r))}}return e},e.prototype.isFutureReservedWord=function(e){switch(e){case"enum":case"export":case"import":case"super":return!0;default:return!1}},e.prototype.isStrictModeReservedWord=function(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}},e.prototype.isRestrictedWord=function(e){return"eval"===e||"arguments"===e},e.prototype.isKeyword=function(e){switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e||"let"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}},e.prototype.codePointAt=function(e){var t=this.source.charCodeAt(e);if(t>=55296&&t<=56319){var n=this.source.charCodeAt(e+1);n>=56320&&n<=57343&&(t=1024*(t-55296)+n-56320+65536)}return t},e.prototype.scanHexEscape=function(e){for(var t="u"===e?4:2,n=0,r=0;r1114111||"}"!==e)&&this.throwUnexpectedToken(),i.Character.fromCodePoint(t)},e.prototype.getIdentifier=function(){for(var e=this.index++;!this.eof();){var t=this.source.charCodeAt(this.index);if(92===t)return this.index=e,this.getComplexIdentifier();if(t>=55296&&t<57343)return this.index=e,this.getComplexIdentifier();if(!i.Character.isIdentifierPart(t))break;++this.index}return this.source.slice(e,this.index)},e.prototype.getComplexIdentifier=function(){var e,t=this.codePointAt(this.index),n=i.Character.fromCodePoint(t);for(this.index+=n.length,92===t&&(117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,e=this.scanUnicodeCodePointEscape()):null!==(e=this.scanHexEscape("u"))&&"\\"!==e&&i.Character.isIdentifierStart(e.charCodeAt(0))||this.throwUnexpectedToken(),n=e);!this.eof()&&(t=this.codePointAt(this.index),i.Character.isIdentifierPart(t));)n+=e=i.Character.fromCodePoint(t),this.index+=e.length,92===t&&(n=n.substr(0,n.length-1),117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,e=this.scanUnicodeCodePointEscape()):null!==(e=this.scanHexEscape("u"))&&"\\"!==e&&i.Character.isIdentifierPart(e.charCodeAt(0))||this.throwUnexpectedToken(),n+=e);return n},e.prototype.octalToDecimal=function(e){var t="0"!==e,n=a(e);return!this.eof()&&i.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(t=!0,n=8*n+a(this.source[this.index++]),"0123".indexOf(e)>=0&&!this.eof()&&i.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(n=8*n+a(this.source[this.index++]))),{code:n,octal:t}},e.prototype.scanIdentifier=function(){var e,t=this.index,n=92===this.source.charCodeAt(t)?this.getComplexIdentifier():this.getIdentifier();if(3!=(e=1===n.length?3:this.isKeyword(n)?4:"null"===n?5:"true"===n||"false"===n?1:3)&&t+n.length!==this.index){var r=this.index;this.index=t,this.tolerateUnexpectedToken(o.Messages.InvalidEscapedReservedWord),this.index=r}return{type:e,value:n,lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},e.prototype.scanPunctuator=function(){var e=this.index,t=this.source[this.index];switch(t){case"(":case"{":"{"===t&&this.curlyStack.push("{"),++this.index;break;case".":++this.index,"."===this.source[this.index]&&"."===this.source[this.index+1]&&(this.index+=2,t="...");break;case"}":++this.index,this.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":++this.index;break;default:">>>="===(t=this.source.substr(this.index,4))?this.index+=4:"==="===(t=t.substr(0,3))||"!=="===t||">>>"===t||"<<="===t||">>="===t||"**="===t?this.index+=3:"&&"===(t=t.substr(0,2))||"||"===t||"=="===t||"!="===t||"+="===t||"-="===t||"*="===t||"/="===t||"++"===t||"--"===t||"<<"===t||">>"===t||"&="===t||"|="===t||"^="===t||"%="===t||"<="===t||">="===t||"=>"===t||"**"===t?this.index+=2:(t=this.source[this.index],"<>=!+-*%&|^/".indexOf(t)>=0&&++this.index)}return this.index===e&&this.throwUnexpectedToken(),{type:7,value:t,lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanHexLiteral=function(e){for(var t="";!this.eof()&&i.Character.isHexDigit(this.source.charCodeAt(this.index));)t+=this.source[this.index++];return 0===t.length&&this.throwUnexpectedToken(),i.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseInt("0x"+t,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanBinaryLiteral=function(e){for(var t,n="";!this.eof()&&("0"===(t=this.source[this.index])||"1"===t);)n+=this.source[this.index++];return 0===n.length&&this.throwUnexpectedToken(),this.eof()||(t=this.source.charCodeAt(this.index),(i.Character.isIdentifierStart(t)||i.Character.isDecimalDigit(t))&&this.throwUnexpectedToken()),{type:6,value:parseInt(n,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanOctalLiteral=function(e,t){var n="",r=!1;for(i.Character.isOctalDigit(e.charCodeAt(0))?(r=!0,n="0"+this.source[this.index++]):++this.index;!this.eof()&&i.Character.isOctalDigit(this.source.charCodeAt(this.index));)n+=this.source[this.index++];return r||0!==n.length||this.throwUnexpectedToken(),(i.Character.isIdentifierStart(this.source.charCodeAt(this.index))||i.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(n,8),octal:r,lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},e.prototype.isImplicitOctalLiteral=function(){for(var e=this.index+1;e=0&&(n=n.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,(function(e,t,n){var i=parseInt(t||n,16);return i>1114111&&r.throwUnexpectedToken(o.Messages.InvalidRegExp),i<=65535?String.fromCharCode(i):"￿"})).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"￿"));try{RegExp(n)}catch(e){this.throwUnexpectedToken(o.Messages.InvalidRegExp)}try{return new RegExp(e,t)}catch(e){return null}},e.prototype.scanRegExpBody=function(){var e=this.source[this.index];r.assert("/"===e,"Regular expression literal must start with a slash");for(var t=this.source[this.index++],n=!1,s=!1;!this.eof();)if(t+=e=this.source[this.index++],"\\"===e)e=this.source[this.index++],i.Character.isLineTerminator(e.charCodeAt(0))&&this.throwUnexpectedToken(o.Messages.UnterminatedRegExp),t+=e;else if(i.Character.isLineTerminator(e.charCodeAt(0)))this.throwUnexpectedToken(o.Messages.UnterminatedRegExp);else if(n)"]"===e&&(n=!1);else{if("/"===e){s=!0;break}"["===e&&(n=!0)}return s||this.throwUnexpectedToken(o.Messages.UnterminatedRegExp),t.substr(1,t.length-2)},e.prototype.scanRegExpFlags=function(){for(var e="";!this.eof();){var t=this.source[this.index];if(!i.Character.isIdentifierPart(t.charCodeAt(0)))break;if(++this.index,"\\"!==t||this.eof())e+=t;else if("u"===(t=this.source[this.index])){++this.index;var n=this.index,r=this.scanHexEscape("u");if(null!==r)for(e+=r;n=55296&&e<57343&&i.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},e}();t.Scanner=c},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenName={},t.TokenName[1]="Boolean",t.TokenName[2]="",t.TokenName[3]="Identifier",t.TokenName[4]="Keyword",t.TokenName[5]="Null",t.TokenName[6]="Numeric",t.TokenName[7]="Punctuator",t.TokenName[8]="String",t.TokenName[9]="RegularExpression",t.TokenName[10]="Template"},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XHTMLEntities={quot:'"',amp:"&",apos:"'",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",lang:"⟨",rang:"⟩"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(10),i=n(12),o=n(13),s=function(){function e(){this.values=[],this.curly=this.paren=-1}return e.prototype.beforeFunctionExpression=function(e){return["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","**","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="].indexOf(e)>=0},e.prototype.isRegexStart=function(){var e=this.values[this.values.length-1],t=null!==e;switch(e){case"this":case"]":t=!1;break;case")":var n=this.values[this.paren-1];t="if"===n||"while"===n||"for"===n||"with"===n;break;case"}":if(t=!1,"function"===this.values[this.curly-3])t=!!(r=this.values[this.curly-4])&&!this.beforeFunctionExpression(r);else if("function"===this.values[this.curly-4]){var r;t=!(r=this.values[this.curly-5])||!this.beforeFunctionExpression(r)}}return t},e.prototype.push=function(e){7===e.type||4===e.type?("{"===e.value?this.curly=this.values.length:"("===e.value&&(this.paren=this.values.length),this.values.push(e.value)):this.values.push(null)},e}(),a=function(){function e(e,t){this.errorHandler=new r.ErrorHandler,this.errorHandler.tolerant=!!t&&"boolean"==typeof t.tolerant&&t.tolerant,this.scanner=new i.Scanner(e,this.errorHandler),this.scanner.trackComment=!!t&&"boolean"==typeof t.comment&&t.comment,this.trackRange=!!t&&"boolean"==typeof t.range&&t.range,this.trackLoc=!!t&&"boolean"==typeof t.loc&&t.loc,this.buffer=[],this.reader=new s}return e.prototype.errors=function(){return this.errorHandler.errors},e.prototype.getNextToken=function(){if(0===this.buffer.length){var e=this.scanner.scanComments();if(this.scanner.trackComment)for(var t=0;t{"use strict";n.r(t),n.d(t,{circularDeepEqual:()=>v,circularShallowEqual:()=>b,createCustomEqual:()=>g,deepEqual:()=>m,sameValueZeroEqual:()=>o,shallowEqual:()=>y});var r="function"==typeof WeakSet,i=Object.keys;function o(e,t){return e===t||e!=e&&t!=t}function s(e){return e.constructor===Object||null==e.constructor}function a(e){return!!e&&"function"==typeof e.then}function c(e){return!(!e||!e.$$typeof)}var u=r?function(){return new WeakSet}:function(){var e=[];return{add:function(t){e.push(t)},has:function(t){return-1!==e.indexOf(t)}}};function l(e){return function(t){var n=e||t;return function(e,t,r,i,o,s,a){void 0===a&&(a=u());var c=!!e&&"object"==typeof e,l=!!t&&"object"==typeof t;if(c||l){var f=c&&a.has(e),d=l&&a.has(t);if(f||d)return f&&d;c&&a.add(e),l&&a.add(t)}return n(e,t,a)}}}var f=Function.prototype.bind.call(Function.prototype.call,Object.prototype.hasOwnProperty);function d(e,t,n,r){var o=i(e),s=o.length;if(i(t).length!==s)return!1;if(s)for(var a=void 0;s-- >0;){if("_owner"===(a=o[s])){var u=c(e),l=c(t);if((u||l)&&u!==l)return!1}if(!f(t,a)||!n(e[a],t[a],a,a,e,t,r))return!1}return!0}var p="function"==typeof Map,h="function"==typeof Set;function g(e){var t="function"==typeof e?e(n):function(e,t,r,i,o,s,a){return n(e,t,a)};function n(e,n,r){if(e===n)return!0;if(e&&n&&"object"==typeof e&&"object"==typeof n){if(s(e)&&s(n))return d(e,n,t,r);var i=Array.isArray(e),c=Array.isArray(n);return i||c?i===c&&function(e,t,n,r){var i=e.length;if(t.length!==i)return!1;for(;i-- >0;)if(!n(e[i],t[i],i,i,e,t,r))return!1;return!0}(e,n,t,r):(i=e instanceof Date,c=n instanceof Date,i||c?i===c&&o(e.getTime(),n.getTime()):(i=e instanceof RegExp,c=n instanceof RegExp,i||c?i===c&&function(e,t){return e.source===t.source&&e.global===t.global&&e.ignoreCase===t.ignoreCase&&e.multiline===t.multiline&&e.unicode===t.unicode&&e.sticky===t.sticky&&e.lastIndex===t.lastIndex}(e,n):a(e)||a(n)?e===n:p&&(i=e instanceof Map,c=n instanceof Map,i||c)?i===c&&function(e,t,n,r){var i=e.size===t.size;if(i&&e.size){var o={},s=0;e.forEach((function(a,c){if(i){var u=!1,l=0;t.forEach((function(i,f){u||o[l]||(u=n(c,f,s,l,e,t,r)&&n(a,i,c,f,e,t,r))&&(o[l]=!0),l++})),s++,i=u}}))}return i}(e,n,t,r):h&&(i=e instanceof Set,c=n instanceof Set,i||c)?i===c&&function(e,t,n,r){var i=e.size===t.size;if(i&&e.size){var o={};e.forEach((function(s,a){if(i){var c=!1,u=0;t.forEach((function(i,l){c||o[u]||(c=n(s,i,a,l,e,t,r))&&(o[u]=!0),u++})),i=c}}))}return i}(e,n,t,r):d(e,n,t,r)))}return e!=e&&n!=n}return n}var m=g(),y=g((function(){return o})),v=g(l()),b=g(l(o))},47305:(e,t,n)=>{"use strict";const r=n(73837),i=n(21914),o=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),s=e=>"number"==typeof e||"string"==typeof e&&""!==e,a=e=>Number.isInteger(+e),c=e=>{let t=`${e}`,n=-1;if("-"===t[0]&&(t=t.slice(1)),"0"===t)return!1;for(;"0"===t[++n];);return n>0},u=(e,t,n)=>{if(t>0){let n="-"===e[0]?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return!1===n?String(e):e},l=(e,t)=>{let n="-"===e[0]?"-":"";for(n&&(e=e.slice(1),t--);e.length{if(n)return i(e,t,{wrap:!1,...r});let o=String.fromCharCode(e);return e===t?o:`[${o}-${String.fromCharCode(t)}]`},d=(e,t,n)=>{if(Array.isArray(e)){let t=!0===n.wrap,r=n.capture?"":"?:";return t?`(${r}${e.join("|")})`:e.join("|")}return i(e,t,n)},p=(...e)=>new RangeError("Invalid range arguments: "+r.inspect(...e)),h=(e,t,n)=>{if(!0===n.strictRanges)throw p([e,t]);return[]},g=(e,t,n,r={})=>{if(null==t&&s(e))return[e];if(!s(e)||!s(t))return h(e,t,r);if("function"==typeof n)return g(e,t,1,{transform:n});if(o(n))return g(e,t,0,n);let i={...r};return!0===i.capture&&(i.wrap=!0),n=n||i.step||1,a(n)?a(e)&&a(t)?((e,t,n=1,r={})=>{let i=Number(e),o=Number(t);if(!Number.isInteger(i)||!Number.isInteger(o)){if(!0===r.strictRanges)throw p([e,t]);return[]}0===i&&(i=0),0===o&&(o=0);let s=i>o,a=String(e),h=String(t),g=String(n);n=Math.max(Math.abs(n),1);let m=c(a)||c(h)||c(g),y=m?Math.max(a.length,h.length,g.length):0,v=!1===m&&!1===((e,t,n)=>"string"==typeof e||"string"==typeof t||!0===n.stringify)(e,t,r),b=r.transform||(e=>t=>!0===e?Number(t):String(t))(v);if(r.toRegex&&1===n)return f(l(e,y),l(t,y),!0,r);let S={negatives:[],positives:[]},E=[],x=0;for(;s?i>=o:i<=o;)!0===r.toRegex&&n>1?S[(w=i)<0?"negatives":"positives"].push(Math.abs(w)):E.push(u(b(i,x),y,v)),i=s?i-n:i+n,x++;var w;return!0===r.toRegex?n>1?((e,t)=>{e.negatives.sort(((e,t)=>et?1:0)),e.positives.sort(((e,t)=>et?1:0));let n,r=t.capture?"":"?:",i="",o="";return e.positives.length&&(i=e.positives.join("|")),e.negatives.length&&(o=`-(${r}${e.negatives.join("|")})`),n=i&&o?`${i}|${o}`:i||o,t.wrap?`(${r}${n})`:n})(S,r):d(E,null,{wrap:!1,...r}):E})(e,t,n,i):((e,t,n=1,r={})=>{if(!a(e)&&e.length>1||!a(t)&&t.length>1)return h(e,t,r);let i=r.transform||(e=>String.fromCharCode(e)),o=`${e}`.charCodeAt(0),s=`${t}`.charCodeAt(0),c=o>s,u=Math.min(o,s),l=Math.max(o,s);if(r.toRegex&&1===n)return f(u,l,!1,r);let p=[],g=0;for(;c?o>=s:o<=s;)p.push(i(o,g)),o=c?o-n:o+n,g++;return!0===r.toRegex?d(p,null,{wrap:!1,options:r}):p})(e,t,Math.max(Math.abs(n),1),i):null==n||o(n)?g(e,t,1,n):((e,t)=>{if(!0===t.strictRanges)throw new TypeError(`Expected step "${e}" to be a number`);return[]})(n,i)};e.exports=g},35616:(e,t,n)=>{"use strict";const r=n(71017),i=n(53567),o=n(98373),s=Symbol("findUp.stop");e.exports=async(e,t={})=>{let n=r.resolve(t.cwd||"");const{root:o}=r.parse(n),a=[].concat(e),c=async t=>{if("function"!=typeof e)return i(a,t);const n=await e(t.cwd);return"string"==typeof n?i([n],t):n};for(;;){const e=await c({...t,cwd:n});if(e===s)return;if(e)return r.resolve(n,e);if(n===o)return;n=r.dirname(n)}},e.exports.sync=(e,t={})=>{let n=r.resolve(t.cwd||"");const{root:o}=r.parse(n),a=[].concat(e),c=t=>{if("function"!=typeof e)return i.sync(a,t);const n=e(t.cwd);return"string"==typeof n?i.sync([n],t):n};for(;;){const e=c({...t,cwd:n});if(e===s)return;if(e)return r.resolve(n,e);if(n===o)return;n=r.dirname(n)}},e.exports.exists=o,e.exports.sync.exists=o.sync,e.exports.stop=s},98373:(e,t,n)=>{"use strict";const r=n(57147),{promisify:i}=n(73837),o=i(r.access);e.exports=async e=>{try{return await o(e),!0}catch(e){return!1}},e.exports.sync=e=>{try{return r.accessSync(e),!0}catch(e){return!1}}},22178:(e,t,n)=>{"use strict";const r=n(60085),i=n(71017),o=n(5145).mkdirsSync,s=n(52450).utimesMillisSync,a=n(83719);function c(e,t,n,o){const s=(o.dereference?r.statSync:r.lstatSync)(t);if(s.isDirectory())return function(e,t,n,i,o){return t?f(n,i,o):function(e,t,n,i){return r.mkdirSync(n),f(t,n,i),l(n,e)}(e.mode,n,i,o)}(s,e,t,n,o);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return function(e,t,n,i,o){return t?function(e,t,n,i){if(i.overwrite)return r.unlinkSync(n),u(e,t,n,i);if(i.errorOnExist)throw new Error(`'${n}' already exists`)}(e,n,i,o):u(e,n,i,o)}(s,e,t,n,o);if(s.isSymbolicLink())return function(e,t,n,o){let s=r.readlinkSync(t);if(o.dereference&&(s=i.resolve(process.cwd(),s)),e){let e;try{e=r.readlinkSync(n)}catch(e){if("EINVAL"===e.code||"UNKNOWN"===e.code)return r.symlinkSync(s,n);throw e}if(o.dereference&&(e=i.resolve(process.cwd(),e)),a.isSrcSubdir(s,e))throw new Error(`Cannot copy '${s}' to a subdirectory of itself, '${e}'.`);if(r.statSync(n).isDirectory()&&a.isSrcSubdir(e,s))throw new Error(`Cannot overwrite '${e}' with '${s}'.`);return function(e,t){return r.unlinkSync(t),r.symlinkSync(e,t)}(s,n)}return r.symlinkSync(s,n)}(e,t,n,o);if(s.isSocket())throw new Error(`Cannot copy a socket file: ${t}`);if(s.isFIFO())throw new Error(`Cannot copy a FIFO pipe: ${t}`);throw new Error(`Unknown file: ${t}`)}function u(e,t,n,i){return r.copyFileSync(t,n),i.preserveTimestamps&&function(e,t,n){(function(e){return 0==(128&e)})(e)&&function(e,t){l(e,128|t)}(n,e),function(e,t){const n=r.statSync(e);s(t,n.atime,n.mtime)}(t,n)}(e.mode,t,n),l(n,e.mode)}function l(e,t){return r.chmodSync(e,t)}function f(e,t,n){r.readdirSync(e).forEach((r=>function(e,t,n,r){const o=i.join(t,e),s=i.join(n,e),{destStat:u}=a.checkPathsSync(o,s,"copy",r);return function(e,t,n,r){if(!r.filter||r.filter(t,n))return c(e,t,n,r)}(u,o,s,r)}(r,e,t,n)))}e.exports=function(e,t,n){"function"==typeof n&&(n={filter:n}),(n=n||{}).clobber=!("clobber"in n)||!!n.clobber,n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&"ia32"===process.arch&&console.warn("fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269");const{srcStat:s,destStat:u}=a.checkPathsSync(e,t,"copy",n);return a.checkParentPathsSync(e,s,t,"copy"),function(e,t,n,s){if(s.filter&&!s.filter(t,n))return;const a=i.dirname(n);return r.existsSync(a)||o(a),c(e,t,n,s)}(u,e,t,n)}},95205:(e,t,n)=>{"use strict";const r=n(60085),i=n(71017),o=n(5145).mkdirs,s=n(19699).pathExists,a=n(52450).utimesMillis,c=n(83719);function u(e,t,n,r,a){const c=i.dirname(n);s(c,((i,s)=>i?a(i):s?f(e,t,n,r,a):void o(c,(i=>i?a(i):f(e,t,n,r,a)))))}function l(e,t,n,r,i,o){Promise.resolve(i.filter(n,r)).then((s=>s?e(t,n,r,i,o):o()),(e=>o(e)))}function f(e,t,n,o,s){(o.dereference?r.stat:r.lstat)(t,((a,u)=>a?s(a):u.isDirectory()?function(e,t,n,i,o,s){return t?g(n,i,o,s):function(e,t,n,i,o){r.mkdir(n,(r=>{if(r)return o(r);g(t,n,i,(t=>t?o(t):h(n,e,o)))}))}(e.mode,n,i,o,s)}(u,e,t,n,o,s):u.isFile()||u.isCharacterDevice()||u.isBlockDevice()?function(e,t,n,i,o,s){return t?function(e,t,n,i,o){if(!i.overwrite)return i.errorOnExist?o(new Error(`'${n}' already exists`)):o();r.unlink(n,(r=>r?o(r):d(e,t,n,i,o)))}(e,n,i,o,s):d(e,n,i,o,s)}(u,e,t,n,o,s):u.isSymbolicLink()?function(e,t,n,o,s){r.readlink(t,((t,a)=>t?s(t):(o.dereference&&(a=i.resolve(process.cwd(),a)),e?void r.readlink(n,((t,u)=>t?"EINVAL"===t.code||"UNKNOWN"===t.code?r.symlink(a,n,s):s(t):(o.dereference&&(u=i.resolve(process.cwd(),u)),c.isSrcSubdir(a,u)?s(new Error(`Cannot copy '${a}' to a subdirectory of itself, '${u}'.`)):e.isDirectory()&&c.isSrcSubdir(u,a)?s(new Error(`Cannot overwrite '${u}' with '${a}'.`)):function(e,t,n){r.unlink(t,(i=>i?n(i):r.symlink(e,t,n)))}(a,n,s)))):r.symlink(a,n,s))))}(e,t,n,o,s):u.isSocket()?s(new Error(`Cannot copy a socket file: ${t}`)):u.isFIFO()?s(new Error(`Cannot copy a FIFO pipe: ${t}`)):s(new Error(`Unknown file: ${t}`))))}function d(e,t,n,i,o){r.copyFile(t,n,(r=>r?o(r):i.preserveTimestamps?function(e,t,n,r){return function(e){return 0==(128&e)}(e)?function(e,t,n){return h(e,128|t,n)}(n,e,(i=>i?r(i):p(e,t,n,r))):p(e,t,n,r)}(e.mode,t,n,o):h(n,e.mode,o)))}function p(e,t,n,i){!function(e,t,n){r.stat(e,((e,r)=>e?n(e):a(t,r.atime,r.mtime,n)))}(t,n,(t=>t?i(t):h(n,e,i)))}function h(e,t,n){return r.chmod(e,t,n)}function g(e,t,n,i){r.readdir(e,((r,o)=>r?i(r):m(o,e,t,n,i)))}function m(e,t,n,r,o){const s=e.pop();return s?function(e,t,n,r,o,s){const a=i.join(n,t),u=i.join(r,t);c.checkPaths(a,u,"copy",o,((t,i)=>{if(t)return s(t);const{destStat:c}=i;!function(e,t,n,r,i){r.filter?l(f,e,t,n,r,i):f(e,t,n,r,i)}(c,a,u,o,(t=>t?s(t):m(e,n,r,o,s)))}))}(e,s,t,n,r,o):o()}e.exports=function(e,t,n,r){"function"!=typeof n||r?"function"==typeof n&&(n={filter:n}):(r=n,n={}),r=r||function(){},(n=n||{}).clobber=!("clobber"in n)||!!n.clobber,n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&"ia32"===process.arch&&console.warn("fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269"),c.checkPaths(e,t,"copy",n,((i,o)=>{if(i)return r(i);const{srcStat:s,destStat:a}=o;c.checkParentPaths(e,s,t,"copy",(i=>i?r(i):n.filter?l(u,a,e,t,n,r):u(a,e,t,n,r)))}))}},71889:(e,t,n)=>{"use strict";const r=n(55725).fromCallback;e.exports={copy:r(n(95205)),copySync:n(22178)}},14088:(e,t,n)=>{"use strict";const r=n(55725).fromPromise,i=n(52143),o=n(71017),s=n(5145),a=n(53495),c=r((async function(e){let t;try{t=await i.readdir(e)}catch{return s.mkdirs(e)}return Promise.all(t.map((t=>a.remove(o.join(e,t)))))}));function u(e){let t;try{t=i.readdirSync(e)}catch{return s.mkdirsSync(e)}t.forEach((t=>{t=o.join(e,t),a.removeSync(t)}))}e.exports={emptyDirSync:u,emptydirSync:u,emptyDir:c,emptydir:c}},11454:(e,t,n)=>{"use strict";const r=n(55725).fromCallback,i=n(71017),o=n(60085),s=n(5145);e.exports={createFile:r((function(e,t){function n(){o.writeFile(e,"",(e=>{if(e)return t(e);t()}))}o.stat(e,((r,a)=>{if(!r&&a.isFile())return t();const c=i.dirname(e);o.stat(c,((e,r)=>{if(e)return"ENOENT"===e.code?s.mkdirs(c,(e=>{if(e)return t(e);n()})):t(e);r.isDirectory()?n():o.readdir(c,(e=>{if(e)return t(e)}))}))}))})),createFileSync:function(e){let t;try{t=o.statSync(e)}catch{}if(t&&t.isFile())return;const n=i.dirname(e);try{o.statSync(n).isDirectory()||o.readdirSync(n)}catch(e){if(!e||"ENOENT"!==e.code)throw e;s.mkdirsSync(n)}o.writeFileSync(e,"")}}},22689:(e,t,n)=>{"use strict";const{createFile:r,createFileSync:i}=n(11454),{createLink:o,createLinkSync:s}=n(40462),{createSymlink:a,createSymlinkSync:c}=n(73318);e.exports={createFile:r,createFileSync:i,ensureFile:r,ensureFileSync:i,createLink:o,createLinkSync:s,ensureLink:o,ensureLinkSync:s,createSymlink:a,createSymlinkSync:c,ensureSymlink:a,ensureSymlinkSync:c}},40462:(e,t,n)=>{"use strict";const r=n(55725).fromCallback,i=n(71017),o=n(60085),s=n(5145),a=n(19699).pathExists,{areIdentical:c}=n(83719);e.exports={createLink:r((function(e,t,n){function r(e,t){o.link(e,t,(e=>{if(e)return n(e);n(null)}))}o.lstat(t,((u,l)=>{o.lstat(e,((o,u)=>{if(o)return o.message=o.message.replace("lstat","ensureLink"),n(o);if(l&&c(u,l))return n(null);const f=i.dirname(t);a(f,((i,o)=>i?n(i):o?r(e,t):void s.mkdirs(f,(i=>{if(i)return n(i);r(e,t)}))))}))}))})),createLinkSync:function(e,t){let n;try{n=o.lstatSync(t)}catch{}try{const t=o.lstatSync(e);if(n&&c(t,n))return}catch(e){throw e.message=e.message.replace("lstat","ensureLink"),e}const r=i.dirname(t);return o.existsSync(r)||s.mkdirsSync(r),o.linkSync(e,t)}}},67650:(e,t,n)=>{"use strict";const r=n(71017),i=n(60085),o=n(19699).pathExists;e.exports={symlinkPaths:function(e,t,n){if(r.isAbsolute(e))return i.lstat(e,(t=>t?(t.message=t.message.replace("lstat","ensureSymlink"),n(t)):n(null,{toCwd:e,toDst:e})));{const s=r.dirname(t),a=r.join(s,e);return o(a,((t,o)=>t?n(t):o?n(null,{toCwd:a,toDst:e}):i.lstat(e,(t=>t?(t.message=t.message.replace("lstat","ensureSymlink"),n(t)):n(null,{toCwd:e,toDst:r.relative(s,e)})))))}},symlinkPathsSync:function(e,t){let n;if(r.isAbsolute(e)){if(n=i.existsSync(e),!n)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}{const o=r.dirname(t),s=r.join(o,e);if(n=i.existsSync(s),n)return{toCwd:s,toDst:e};if(n=i.existsSync(e),!n)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:r.relative(o,e)}}}}},72947:(e,t,n)=>{"use strict";const r=n(60085);e.exports={symlinkType:function(e,t,n){if(n="function"==typeof t?t:n,t="function"!=typeof t&&t)return n(null,t);r.lstat(e,((e,r)=>{if(e)return n(null,"file");t=r&&r.isDirectory()?"dir":"file",n(null,t)}))},symlinkTypeSync:function(e,t){let n;if(t)return t;try{n=r.lstatSync(e)}catch{return"file"}return n&&n.isDirectory()?"dir":"file"}}},73318:(e,t,n)=>{"use strict";const r=n(55725).fromCallback,i=n(71017),o=n(52143),s=n(5145),a=s.mkdirs,c=s.mkdirsSync,u=n(67650),l=u.symlinkPaths,f=u.symlinkPathsSync,d=n(72947),p=d.symlinkType,h=d.symlinkTypeSync,g=n(19699).pathExists,{areIdentical:m}=n(83719);function y(e,t,n,r){l(e,t,((s,c)=>{if(s)return r(s);e=c.toDst,p(c.toCwd,n,((n,s)=>{if(n)return r(n);const c=i.dirname(t);g(c,((n,i)=>n?r(n):i?o.symlink(e,t,s,r):void a(c,(n=>{if(n)return r(n);o.symlink(e,t,s,r)}))))}))}))}e.exports={createSymlink:r((function(e,t,n,r){r="function"==typeof n?n:r,n="function"!=typeof n&&n,o.lstat(t,((i,s)=>{!i&&s.isSymbolicLink()?Promise.all([o.stat(e),o.stat(t)]).then((([i,o])=>{if(m(i,o))return r(null);y(e,t,n,r)})):y(e,t,n,r)}))})),createSymlinkSync:function(e,t,n){let r;try{r=o.lstatSync(t)}catch{}if(r&&r.isSymbolicLink()){const n=o.statSync(e),r=o.statSync(t);if(m(n,r))return}const s=f(e,t);e=s.toDst,n=h(s.toCwd,n);const a=i.dirname(t);return o.existsSync(a)||c(a),o.symlinkSync(e,t,n)}}},52143:(e,t,n)=>{"use strict";const r=n(55725).fromCallback,i=n(60085),o=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter((e=>"function"==typeof i[e]));Object.assign(t,i),o.forEach((e=>{t[e]=r(i[e])})),t.realpath.native=r(i.realpath.native),t.exists=function(e,t){return"function"==typeof t?i.exists(e,t):new Promise((t=>i.exists(e,t)))},t.read=function(e,t,n,r,o,s){return"function"==typeof s?i.read(e,t,n,r,o,s):new Promise(((s,a)=>{i.read(e,t,n,r,o,((e,t,n)=>{if(e)return a(e);s({bytesRead:t,buffer:n})}))}))},t.write=function(e,t,...n){return"function"==typeof n[n.length-1]?i.write(e,t,...n):new Promise(((r,o)=>{i.write(e,t,...n,((e,t,n)=>{if(e)return o(e);r({bytesWritten:t,buffer:n})}))}))},"function"==typeof i.writev&&(t.writev=function(e,t,...n){return"function"==typeof n[n.length-1]?i.writev(e,t,...n):new Promise(((r,o)=>{i.writev(e,t,...n,((e,t,n)=>{if(e)return o(e);r({bytesWritten:t,buffers:n})}))}))})},10890:(e,t,n)=>{"use strict";e.exports={...n(52143),...n(71889),...n(14088),...n(22689),...n(59270),...n(5145),...n(54146),...n(15048),...n(19699),...n(53495)}},59270:(e,t,n)=>{"use strict";const r=n(55725).fromPromise,i=n(79691);i.outputJson=r(n(38700)),i.outputJsonSync=n(82286),i.outputJSON=i.outputJson,i.outputJSONSync=i.outputJsonSync,i.writeJSON=i.writeJson,i.writeJSONSync=i.writeJsonSync,i.readJSON=i.readJson,i.readJSONSync=i.readJsonSync,e.exports=i},79691:(e,t,n)=>{"use strict";const r=n(30370);e.exports={readJson:r.readFile,readJsonSync:r.readFileSync,writeJson:r.writeFile,writeJsonSync:r.writeFileSync}},82286:(e,t,n)=>{"use strict";const{stringify:r}=n(87154),{outputFileSync:i}=n(15048);e.exports=function(e,t,n){const o=r(t,n);i(e,o,n)}},38700:(e,t,n)=>{"use strict";const{stringify:r}=n(87154),{outputFile:i}=n(15048);e.exports=async function(e,t,n={}){const o=r(t,n);await i(e,o,n)}},5145:(e,t,n)=>{"use strict";const r=n(55725).fromPromise,{makeDir:i,makeDirSync:o}=n(646),s=r(i);e.exports={mkdirs:s,mkdirsSync:o,mkdirp:s,mkdirpSync:o,ensureDir:s,ensureDirSync:o}},646:(e,t,n)=>{"use strict";const r=n(52143),{checkPath:i}=n(8051),o=e=>"number"==typeof e?e:{mode:511,...e}.mode;e.exports.makeDir=async(e,t)=>(i(e),r.mkdir(e,{mode:o(t),recursive:!0})),e.exports.makeDirSync=(e,t)=>(i(e),r.mkdirSync(e,{mode:o(t),recursive:!0}))},8051:(e,t,n)=>{"use strict";const r=n(71017);e.exports.checkPath=function(e){if("win32"===process.platform&&/[<>:"|?*]/.test(e.replace(r.parse(e).root,""))){const t=new Error(`Path contains invalid characters: ${e}`);throw t.code="EINVAL",t}}},54146:(e,t,n)=>{"use strict";const r=n(55725).fromCallback;e.exports={move:r(n(82571)),moveSync:n(81612)}},81612:(e,t,n)=>{"use strict";const r=n(60085),i=n(71017),o=n(71889).copySync,s=n(53495).removeSync,a=n(5145).mkdirpSync,c=n(83719);function u(e,t,n){try{r.renameSync(e,t)}catch(r){if("EXDEV"!==r.code)throw r;return function(e,t,n){return o(e,t,{overwrite:n,errorOnExist:!0}),s(e)}(e,t,n)}}e.exports=function(e,t,n){const o=(n=n||{}).overwrite||n.clobber||!1,{srcStat:l,isChangingCase:f=!1}=c.checkPathsSync(e,t,"move",n);return c.checkParentPathsSync(e,l,t,"move"),function(e){const t=i.dirname(e);return i.parse(t).root===t}(t)||a(i.dirname(t)),function(e,t,n,i){if(i)return u(e,t,n);if(n)return s(t),u(e,t,n);if(r.existsSync(t))throw new Error("dest already exists.");return u(e,t,n)}(e,t,o,f)}},82571:(e,t,n)=>{"use strict";const r=n(60085),i=n(71017),o=n(71889).copy,s=n(53495).remove,a=n(5145).mkdirp,c=n(19699).pathExists,u=n(83719);function l(e,t,n,r,i){return r?f(e,t,n,i):n?s(t,(r=>r?i(r):f(e,t,n,i))):void c(t,((r,o)=>r?i(r):o?i(new Error("dest already exists.")):f(e,t,n,i)))}function f(e,t,n,i){r.rename(e,t,(r=>r?"EXDEV"!==r.code?i(r):function(e,t,n,r){o(e,t,{overwrite:n,errorOnExist:!0},(t=>t?r(t):s(e,r)))}(e,t,n,i):i()))}e.exports=function(e,t,n,r){"function"==typeof n&&(r=n,n={});const o=n.overwrite||n.clobber||!1;u.checkPaths(e,t,"move",n,((n,s)=>{if(n)return r(n);const{srcStat:c,isChangingCase:f=!1}=s;u.checkParentPaths(e,c,t,"move",(n=>n?r(n):function(e){const t=i.dirname(e);return i.parse(t).root===t}(t)?l(e,t,o,f,r):void a(i.dirname(t),(n=>n?r(n):l(e,t,o,f,r)))))}))}},15048:(e,t,n)=>{"use strict";const r=n(55725).fromCallback,i=n(60085),o=n(71017),s=n(5145),a=n(19699).pathExists;e.exports={outputFile:r((function(e,t,n,r){"function"==typeof n&&(r=n,n="utf8");const c=o.dirname(e);a(c,((o,a)=>o?r(o):a?i.writeFile(e,t,n,r):void s.mkdirs(c,(o=>{if(o)return r(o);i.writeFile(e,t,n,r)}))))})),outputFileSync:function(e,...t){const n=o.dirname(e);if(i.existsSync(n))return i.writeFileSync(e,...t);s.mkdirsSync(n),i.writeFileSync(e,...t)}}},19699:(e,t,n)=>{"use strict";const r=n(55725).fromPromise,i=n(52143);e.exports={pathExists:r((function(e){return i.access(e).then((()=>!0)).catch((()=>!1))})),pathExistsSync:i.existsSync}},53495:(e,t,n)=>{"use strict";const r=n(60085),i=n(55725).fromCallback,o=n(89373);e.exports={remove:i((function(e,t){if(r.rm)return r.rm(e,{recursive:!0,force:!0},t);o(e,t)})),removeSync:function(e){if(r.rmSync)return r.rmSync(e,{recursive:!0,force:!0});o.sync(e)}}},89373:(e,t,n)=>{"use strict";const r=n(60085),i=n(71017),o=n(39491),s="win32"===process.platform;function a(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach((t=>{e[t]=e[t]||r[t],e[t+="Sync"]=e[t]||r[t]})),e.maxBusyTries=e.maxBusyTries||3}function c(e,t,n){let r=0;"function"==typeof t&&(n=t,t={}),o(e,"rimraf: missing path"),o.strictEqual(typeof e,"string","rimraf: path should be a string"),o.strictEqual(typeof n,"function","rimraf: callback function required"),o(t,"rimraf: invalid options argument provided"),o.strictEqual(typeof t,"object","rimraf: options should be object"),a(t),u(e,t,(function i(o){if(o){if(("EBUSY"===o.code||"ENOTEMPTY"===o.code||"EPERM"===o.code)&&ru(e,t,i)),100*r);"ENOENT"===o.code&&(o=null)}n(o)}))}function u(e,t,n){o(e),o(t),o("function"==typeof n),t.lstat(e,((r,i)=>r&&"ENOENT"===r.code?n(null):r&&"EPERM"===r.code&&s?l(e,t,r,n):i&&i.isDirectory()?d(e,t,r,n):void t.unlink(e,(r=>{if(r){if("ENOENT"===r.code)return n(null);if("EPERM"===r.code)return s?l(e,t,r,n):d(e,t,r,n);if("EISDIR"===r.code)return d(e,t,r,n)}return n(r)}))))}function l(e,t,n,r){o(e),o(t),o("function"==typeof r),t.chmod(e,438,(i=>{i?r("ENOENT"===i.code?null:n):t.stat(e,((i,o)=>{i?r("ENOENT"===i.code?null:n):o.isDirectory()?d(e,t,n,r):t.unlink(e,r)}))}))}function f(e,t,n){let r;o(e),o(t);try{t.chmodSync(e,438)}catch(e){if("ENOENT"===e.code)return;throw n}try{r=t.statSync(e)}catch(e){if("ENOENT"===e.code)return;throw n}r.isDirectory()?h(e,t,n):t.unlinkSync(e)}function d(e,t,n,r){o(e),o(t),o("function"==typeof r),t.rmdir(e,(s=>{!s||"ENOTEMPTY"!==s.code&&"EEXIST"!==s.code&&"EPERM"!==s.code?s&&"ENOTDIR"===s.code?r(n):r(s):function(e,t,n){o(e),o(t),o("function"==typeof n),t.readdir(e,((r,o)=>{if(r)return n(r);let s,a=o.length;if(0===a)return t.rmdir(e,n);o.forEach((r=>{c(i.join(e,r),t,(r=>{if(!s)return r?n(s=r):void(0==--a&&t.rmdir(e,n))}))}))}))}(e,t,r)}))}function p(e,t){let n;a(t=t||{}),o(e,"rimraf: missing path"),o.strictEqual(typeof e,"string","rimraf: path should be a string"),o(t,"rimraf: missing options"),o.strictEqual(typeof t,"object","rimraf: options should be object");try{n=t.lstatSync(e)}catch(n){if("ENOENT"===n.code)return;"EPERM"===n.code&&s&&f(e,t,n)}try{n&&n.isDirectory()?h(e,t,null):t.unlinkSync(e)}catch(n){if("ENOENT"===n.code)return;if("EPERM"===n.code)return s?f(e,t,n):h(e,t,n);if("EISDIR"!==n.code)throw n;h(e,t,n)}}function h(e,t,n){o(e),o(t);try{t.rmdirSync(e)}catch(r){if("ENOTDIR"===r.code)throw n;if("ENOTEMPTY"===r.code||"EEXIST"===r.code||"EPERM"===r.code)!function(e,t){if(o(e),o(t),t.readdirSync(e).forEach((n=>p(i.join(e,n),t))),!s)return t.rmdirSync(e,t);{const n=Date.now();do{try{return t.rmdirSync(e,t)}catch{}}while(Date.now()-n<500)}}(e,t);else if("ENOENT"!==r.code)throw r}}e.exports=c,c.sync=p},83719:(e,t,n)=>{"use strict";const r=n(52143),i=n(71017),o=n(73837);function s(e,t,n){const i=n.dereference?e=>r.stat(e,{bigint:!0}):e=>r.lstat(e,{bigint:!0});return Promise.all([i(e),i(t).catch((e=>{if("ENOENT"===e.code)return null;throw e}))]).then((([e,t])=>({srcStat:e,destStat:t})))}function a(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function c(e,t){const n=i.resolve(e).split(i.sep).filter((e=>e)),r=i.resolve(t).split(i.sep).filter((e=>e));return n.reduce(((e,t,n)=>e&&r[n]===t),!0)}function u(e,t,n){return`Cannot ${n} '${e}' to a subdirectory of itself, '${t}'.`}e.exports={checkPaths:function(e,t,n,r,l){o.callbackify(s)(e,t,r,((r,o)=>{if(r)return l(r);const{srcStat:s,destStat:f}=o;if(f){if(a(s,f)){const r=i.basename(e),o=i.basename(t);return"move"===n&&r!==o&&r.toLowerCase()===o.toLowerCase()?l(null,{srcStat:s,destStat:f,isChangingCase:!0}):l(new Error("Source and destination must not be the same."))}if(s.isDirectory()&&!f.isDirectory())return l(new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`));if(!s.isDirectory()&&f.isDirectory())return l(new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`))}return s.isDirectory()&&c(e,t)?l(new Error(u(e,t,n))):l(null,{srcStat:s,destStat:f})}))},checkPathsSync:function(e,t,n,o){const{srcStat:s,destStat:l}=function(e,t,n){let i;const o=n.dereference?e=>r.statSync(e,{bigint:!0}):e=>r.lstatSync(e,{bigint:!0}),s=o(e);try{i=o(t)}catch(e){if("ENOENT"===e.code)return{srcStat:s,destStat:null};throw e}return{srcStat:s,destStat:i}}(e,t,o);if(l){if(a(s,l)){const r=i.basename(e),o=i.basename(t);if("move"===n&&r!==o&&r.toLowerCase()===o.toLowerCase())return{srcStat:s,destStat:l,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(s.isDirectory()&&!l.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!s.isDirectory()&&l.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(s.isDirectory()&&c(e,t))throw new Error(u(e,t,n));return{srcStat:s,destStat:l}},checkParentPaths:function e(t,n,o,s,c){const l=i.resolve(i.dirname(t)),f=i.resolve(i.dirname(o));if(f===l||f===i.parse(f).root)return c();r.stat(f,{bigint:!0},((r,i)=>r?"ENOENT"===r.code?c():c(r):a(n,i)?c(new Error(u(t,o,s))):e(t,n,f,s,c)))},checkParentPathsSync:function e(t,n,o,s){const c=i.resolve(i.dirname(t)),l=i.resolve(i.dirname(o));if(l===c||l===i.parse(l).root)return;let f;try{f=r.statSync(l,{bigint:!0})}catch(e){if("ENOENT"===e.code)return;throw e}if(a(n,f))throw new Error(u(t,o,s));return e(t,n,l,s)},isSrcSubdir:c,areIdentical:a}},52450:(e,t,n)=>{"use strict";const r=n(60085);e.exports={utimesMillis:function(e,t,n,i){r.open(e,"r+",((e,o)=>{if(e)return i(e);r.futimes(o,t,n,(e=>{r.close(o,(t=>{i&&i(e||t)}))}))}))},utimesMillisSync:function(e,t,n){const i=r.openSync(e,"r+");return r.futimesSync(i,t,n),r.closeSync(i)}}},90317:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(5889);t.asyncGenSequence=function(e){return new r.ImplAsyncSequence(e)}},41683:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(26685),i=n(26919);var o=n(26685);function s(e){return new i.ImplSequence(e)}function*a(e){const t=new Set(Object.keys(e));for(const n in e)t.has(n)&&(yield[n,e[n]])}function c(e){return s((()=>a(e)))}function u(e,t){return s((()=>function*(){const n=new RegExp(e);let r,i;for(;(r=n.exec(t))&&r.index!==i;)i=r.index,yield r}()))}t.toIterableIterator=o.toIterableIterator,t.genSequence=s,t.GenSequence={genSequence:s,sequenceFromRegExpMatch:u,sequenceFromObject:c},t.toIterator=r.toIterableIterator,t.objectIterator=a,t.objectToSequence=function(e){return c(e)},t.sequenceFromObject=c,t.sequenceFromRegExpMatch=u,t.default=s},5889:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(50162);class i{constructor(e){this.i=e}get iter(){return"function"==typeof this.i?this.i():this.i}[Symbol.asyncIterator](){return this.iter[Symbol.asyncIterator]()}reduceAsync(e,t){return r.reduceAsyncForAsyncIterator(e,t)(this.iter)}}t.ImplAsyncSequence=i},26919:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(50162),i=n(26685);class o{constructor(e){this.i=e}get iter(){return"function"==typeof this.i?this.i():this.i}get iterator(){return this._iterator||(this._iterator=this.iter[Symbol.iterator]()),this._iterator}inject(e){const t=this.i;return()=>e("function"==typeof t?t():t)}chain(e){return new o(this.inject(e))}[Symbol.iterator](){return this.iter[Symbol.iterator]()}next(){return this.iterator.next()}filter(e){return this.chain(r.filter(e))}skip(e){return this.chain(r.skip(e))}take(e){return this.chain(r.take(e))}concat(e){return this.chain(r.concat(e))}concatMap(e){return this.chain(r.concatMap(e))}combine(e,t){return this.chain(r.combine(e,t))}map(e){return this.chain(r.map(e))}scan(e,t){return this.chain(r.scan(e,t))}pipe(...e){return e.length?this.chain(r.pipe.apply(null,e)):this}all(e){return r.all(e)(this.iter)}any(e){return r.any(e)(this.iter)}count(){return r.count()(this.iter)}first(e,t){return r.first(e,t)(this.iter)}forEach(e){return r.forEach(e)(this.iter)}max(e){return r.max(e)(this.iter)}min(e){return r.min(e)(this.iter)}reduce(e,t){return r.reduce(e,t)(this.iter)}reduceAsync(e,t){return r.reduceAsync(e,t)(this.iter)}reduceToSequence(e,t){return this.chain(r.reduce(e,t))}toArray(){return[...this.iter]}toIterable(){return i.toIterableIterator(this.iter)}}t.ImplSequence=o},23945:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(50162),i=n(26919);class o{constructor(e=[]){this.operators=[],this.operators=e}build(e){return new i.ImplSequence(e).pipe(r.pipe.apply(null,this.operators))}pipe(...e){return new o([...this.operators,...e])}filter(e){return this.pipe(r.filter(e))}skip(e){return this.pipe(r.skip(e))}take(e){return this.pipe(r.take(e))}concat(e){return this.pipe(r.concat(e))}concatMap(e){return this.pipe(r.concatMap(e))}combine(e,t){return this.pipe(r.combine(e,t))}map(e){return this.pipe(r.map(e))}scan(e,t){return this.pipe(r.scan(e,t))}}t.ImplSequenceBuilder=o},37604:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(23945),i=n(50162);function o(e){return new r.ImplSequenceBuilder([e])}t.builder=Object.freeze({pipe:e=>o(e),filter:e=>o(i.filter(e)),skip:e=>o(i.skip(e)),take:e=>o(i.take(e)),concat:e=>o(i.concat(e)),concatMap:e=>o(i.concatMap(e)),combine:(e,t)=>o(i.combine(e,t)),map:e=>o(i.map(e)),scan:(e,t)=>o(i.scan(e,t))})},80915:(e,t,n)=>{"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(41683)),r(n(90317)),r(n(37604));const i=n(50162);t.operators=i},50162:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(6340))},6340:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(89725);t.filter=function(e){return t=>r.filter(t,e)},t.skip=function(e){return t=>r.skip(t,e)},t.take=function(e){return t=>r.take(t,e)},t.concat=function(e){return t=>r.concat(t,e)},t.concatMap=function(e){return t=>r.concatMap(t,e)},t.combine=function(e,t){return n=>r.combine(n,t,e)},t.map=function(e){return t=>r.map(t,e)},t.scan=function(e,t){return n=>r.scan(n,e,t)},t.all=function(e){return t=>r.all(t,e)},t.any=function(e){return t=>r.any(t,e)},t.count=function(){return e=>r.count(e)},t.first=function(e,t){return n=>r.first(n,e,t)},t.forEach=function(e){return t=>r.forEach(t,e)},t.max=function(e){return t=>r.max(t,e)},t.min=function(e){return t=>r.min(t,e)},t.reduce=function(e,t){return n=>r.reduce(n,e,t)},t.reduceAsync=function(e,t){return n=>r.reduceAsync(n,e,t)},t.reduceAsyncForAsyncIterator=function(e,t){return n=>r.reduceAsyncForAsyncIterator(n,e,t)},t.pipe=function(...e){return t=>{for(const n of e)t=n?n(t):t;return t}}},89725:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},r=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}},i=this&&this.__await||function(e){return this instanceof i?(this.v=e,this):new i(e)},o=this&&this.__asyncGenerator||function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),s=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){s.push([e,t,n,r])>1||c(e,t)}))})}function c(e,t){try{(n=o[e](t)).value instanceof i?Promise.resolve(n.value.v).then(u,l):f(s[0][2],n)}catch(e){f(s[0][3],e)}var n}function u(e){c("next",e)}function l(e){c("throw",e)}function f(e,t){e(t),s.shift(),s.length&&c(s[0][0],s[0][1])}},s=this&&this.__asyncDelegator||function(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:i(e[r](t)),done:"return"===r}:o?o(t):t}:o}};function a(e,t,n){const r=c(e[Symbol.iterator]());let i=0;void 0===n&&(i=1,n=r.next().value);let o=n;for(const e of r)o=t(o,e,i),i+=1;return o}function c(e){return u(e)?l(e)?e:function*(e){yield*e}(e):function*(e){for(let t=e.next();!t.done;t=e.next())yield t.value}(e)}function u(e){return!!e[Symbol.iterator]}function l(e){return"function"==typeof e.next}function f(e){return d(e)?p(e)?e:function(e){return o(this,arguments,(function*(){yield i(yield*s(r(e)))}))}(e):u(e)?function(e){return o(this,arguments,(function*(){for(const t of e)yield yield i(t)}))}(e):function(e){return o(this,arguments,(function*(){for(let t=yield i(e.next());!t.done;t=yield i(e.next()))yield yield i(t.value)}))}(e)}function d(e){return!!e[Symbol.asyncIterator]}function p(e){return"function"==typeof e.next}Object.defineProperty(t,"__esModule",{value:!0}),t.filter=function*(e,t){for(const n of e)t(n)&&(yield n)},t.skip=function*(e,t){let n=0;for(const r of e)n>=t&&(yield r),n+=1},t.take=function*(e,t){let n=0;if(t)for(const r of e){if(n>=t)break;yield r,n+=1}},t.concat=function*(e,t){yield*e,yield*t},t.concatMap=function*(e,t){for(const n of e)yield*t(n)},t.combine=function*(e,t,n){const r=t[Symbol.iterator]();for(const t of e){const e=r.next().value;yield n(t,e)}},t.map=function(e,t){return function*(e,t){for(const n of e)yield t(n)}(e,t)},t.scan=function*(e,t,n){let r=0;if(void 0===n){r=1;const t=e[Symbol.iterator]();let i=t.next();i.done||(yield i.value),n=i.value,e=c(t)}let i=n;for(const n of e){const e=t(i,n,r);yield e,i=e,r+=1}},t.all=function(e,t){for(const n of e)if(!t(n))return!1;return!0},t.any=function(e,t){for(const n of e)if(t(n))return!0;return!1},t.count=function(e){return a(e,(e=>e+1),0)},t.first=function(e,t,n){t=t||(()=>!0);for(const n of e)if(t(n))return n;return n},t.forEach=function(e,t){let n=0;for(const r of e)t(r,n),n+=1},t.max=function(e,t=(e=>e)){return a(e,((e,n)=>t(n)>t(e)?n:e),void 0)},t.min=function(e,t=(e=>e)){return a(e,((e,n)=>t(n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toIterator=function(e){let t;return{next:function(){return t||(t=e[Symbol.iterator]()),t.next()}}},t.toIterableIterator=function*(e){yield*e}},4783:(e,t,n)=>{"use strict";const r=n(71017),i=n(22037),o=n(57147),s=n(23097),a=e=>{try{return s.parse(o.readFileSync(e,"utf8")).prefix}catch(e){}},c=process.env.PREFIX?process.env.PREFIX:"win32"===process.platform?r.dirname(process.execPath):r.dirname(r.dirname(process.execPath)),u=r.resolve((()=>{if(process.env.PREFIX)return process.env.PREFIX;const e=a(r.join(i.homedir(),".npmrc"));if(e)return e;const t=a(r.resolve(c,"etc","npmrc"));if(t)return t;if("win32"===process.platform&&process.env.APPDATA){const e=r.join(process.env.APPDATA,"npm");if(o.existsSync(e))return e}return c})());t.npm={},t.npm.prefix=u,t.npm.packages=r.join(u,"win32"===process.platform?"node_modules":"lib/node_modules"),t.npm.binaries="win32"===process.platform?u:r.join(u,"bin");const l=r.resolve((()=>{if(process.env.PREFIX)return process.env.PREFIX;if("win32"===process.platform&&process.env.LOCALAPPDATA){const e=r.join(process.env.LOCALAPPDATA,"Yarn");if(o.existsSync(e))return e}const e=r.join(i.homedir(),".config/yarn");if(o.existsSync(e))return e;const t=r.join(i.homedir(),".yarn-config");return o.existsSync(t)?t:u})());t.yarn={},t.yarn.prefix=l,t.yarn.packages=r.join(l,"win32"===process.platform?"config/global/node_modules":"global/node_modules"),t.yarn.binaries=r.join(t.yarn.packages,".bin")},14203:e=>{"use strict";e.exports=function(e){if(null===e||"object"!=typeof e)return e;if(e instanceof Object)var n={__proto__:t(e)};else n=Object.create(null);return Object.getOwnPropertyNames(e).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})),n};var t=Object.getPrototypeOf||function(e){return e.__proto__}},60085:(e,t,n)=>{var r,i,o=n(57147),s=n(62965),a=n(65361),c=n(14203),u=n(73837);function l(e,t){Object.defineProperty(e,r,{get:function(){return t}})}"function"==typeof Symbol&&"function"==typeof Symbol.for?(r=Symbol.for("graceful-fs.queue"),i=Symbol.for("graceful-fs.previous")):(r="___graceful-fs.queue",i="___graceful-fs.previous");var f,d=function(){};if(u.debuglog?d=u.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(d=function(){var e=u.format.apply(u,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: "),console.error(e)}),!o[r]){var p=global[r]||[];l(o,p),o.close=function(e){function t(t,n){return e.call(o,t,(function(e){e||m(),"function"==typeof n&&n.apply(this,arguments)}))}return Object.defineProperty(t,i,{value:e}),t}(o.close),o.closeSync=function(e){function t(t){e.apply(o,arguments),m()}return Object.defineProperty(t,i,{value:e}),t}(o.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",(function(){d(o[r]),n(39491).equal(o[r].length,0)}))}function h(e){s(e),e.gracefulify=h,e.createReadStream=function(t,n){return new e.ReadStream(t,n)},e.createWriteStream=function(t,n){return new e.WriteStream(t,n)};var t=e.readFile;e.readFile=function(e,n,r){return"function"==typeof n&&(r=n,n=null),function e(n,r,i,o){return t(n,r,(function(t){!t||"EMFILE"!==t.code&&"ENFILE"!==t.code?"function"==typeof i&&i.apply(this,arguments):g([e,[n,r,i],t,o||Date.now(),Date.now()])}))}(e,n,r)};var n=e.writeFile;e.writeFile=function(e,t,r,i){return"function"==typeof r&&(i=r,r=null),function e(t,r,i,o,s){return n(t,r,i,(function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?"function"==typeof o&&o.apply(this,arguments):g([e,[t,r,i,o],n,s||Date.now(),Date.now()])}))}(e,t,r,i)};var r=e.appendFile;r&&(e.appendFile=function(e,t,n,i){return"function"==typeof n&&(i=n,n=null),function e(t,n,i,o,s){return r(t,n,i,(function(r){!r||"EMFILE"!==r.code&&"ENFILE"!==r.code?"function"==typeof o&&o.apply(this,arguments):g([e,[t,n,i,o],r,s||Date.now(),Date.now()])}))}(e,t,n,i)});var i=e.copyFile;i&&(e.copyFile=function(e,t,n,r){return"function"==typeof n&&(r=n,n=0),function e(t,n,r,o,s){return i(t,n,r,(function(i){!i||"EMFILE"!==i.code&&"ENFILE"!==i.code?"function"==typeof o&&o.apply(this,arguments):g([e,[t,n,r,o],i,s||Date.now(),Date.now()])}))}(e,t,n,r)});var o=e.readdir;if(e.readdir=function(e,t,n){return"function"==typeof t&&(n=t,t=null),function e(t,n,r,i){return o(t,n,(function(o,s){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?(s&&s.sort&&s.sort(),"function"==typeof r&&r.call(this,o,s)):g([e,[t,n,r],o,i||Date.now(),Date.now()])}))}(e,t,n)},"v0.8"===process.version.substr(0,4)){var c=a(e);p=c.ReadStream,m=c.WriteStream}var u=e.ReadStream;u&&(p.prototype=Object.create(u.prototype),p.prototype.open=function(){var e=this;v(e.path,e.flags,e.mode,(function(t,n){t?(e.autoClose&&e.destroy(),e.emit("error",t)):(e.fd=n,e.emit("open",n),e.read())}))});var l=e.WriteStream;l&&(m.prototype=Object.create(l.prototype),m.prototype.open=function(){var e=this;v(e.path,e.flags,e.mode,(function(t,n){t?(e.destroy(),e.emit("error",t)):(e.fd=n,e.emit("open",n))}))}),Object.defineProperty(e,"ReadStream",{get:function(){return p},set:function(e){p=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return m},set:function(e){m=e},enumerable:!0,configurable:!0});var f=p;Object.defineProperty(e,"FileReadStream",{get:function(){return f},set:function(e){f=e},enumerable:!0,configurable:!0});var d=m;function p(e,t){return this instanceof p?(u.apply(this,arguments),this):p.apply(Object.create(p.prototype),arguments)}function m(e,t){return this instanceof m?(l.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}Object.defineProperty(e,"FileWriteStream",{get:function(){return d},set:function(e){d=e},enumerable:!0,configurable:!0});var y=e.open;function v(e,t,n,r){return"function"==typeof n&&(r=n,n=null),function e(t,n,r,i,o){return y(t,n,r,(function(s,a){!s||"EMFILE"!==s.code&&"ENFILE"!==s.code?"function"==typeof i&&i.apply(this,arguments):g([e,[t,n,r,i],s,o||Date.now(),Date.now()])}))}(e,t,n,r)}return e.open=v,e}function g(e){d("ENQUEUE",e[0].name,e[1]),o[r].push(e),y()}function m(){for(var e=Date.now(),t=0;t2&&(o[r][t][3]=e,o[r][t][4]=e);y()}function y(){if(clearTimeout(f),f=void 0,0!==o[r].length){var e=o[r].shift(),t=e[0],n=e[1],i=e[2],s=e[3],a=e[4];if(void 0===s)d("RETRY",t.name,n),t.apply(null,n);else if(Date.now()-s>=6e4){d("TIMEOUT",t.name,n);var c=n.pop();"function"==typeof c&&c.call(null,i)}else{var u=Date.now()-a,l=Math.max(a-s,1);u>=Math.min(1.2*l,100)?(d("RETRY",t.name,n),t.apply(null,n.concat([s]))):o[r].push(e)}void 0===f&&(f=setTimeout(y,0))}}global[r]||l(global,o[r]),e.exports=h(c(o)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!o.__patched&&(e.exports=h(o),o.__patched=!0)},65361:(e,t,n)=>{var r=n(12781).Stream;e.exports=function(e){return{ReadStream:function t(n,i){if(!(this instanceof t))return new t(n,i);r.call(this);var o=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,i=i||{};for(var s=Object.keys(i),a=0,c=s.length;athis.end)throw new Error("start must be <= end");this.pos=this.start}null===this.fd?e.open(this.path,this.flags,this.mode,(function(e,t){if(e)return o.emit("error",e),void(o.readable=!1);o.fd=t,o.emit("open",t),o._read()})):process.nextTick((function(){o._read()}))},WriteStream:function t(n,i){if(!(this instanceof t))return new t(n,i);r.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var o=Object.keys(i),s=0,a=o.length;s= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}},62965:(e,t,n)=>{var r=n(22057),i=process.cwd,o=null,s=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return o||(o=i.call(process)),o};try{process.cwd()}catch(e){}if("function"==typeof process.chdir){var a=process.chdir;process.chdir=function(e){o=null,a.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,a)}e.exports=function(e){var t,n;function i(t){return t?function(n,r,i){return t.call(e,n,r,(function(e){f(e)&&(e=null),i&&i.apply(this,arguments)}))}:t}function o(t){return t?function(n,r){try{return t.call(e,n,r)}catch(e){if(!f(e))throw e}}:t}function a(t){return t?function(n,r,i,o){return t.call(e,n,r,i,(function(e){f(e)&&(e=null),o&&o.apply(this,arguments)}))}:t}function c(t){return t?function(n,r,i){try{return t.call(e,n,r,i)}catch(e){if(!f(e))throw e}}:t}function u(t){return t?function(n,r,i){function o(e,t){t&&(t.uid<0&&(t.uid+=4294967296),t.gid<0&&(t.gid+=4294967296)),i&&i.apply(this,arguments)}return"function"==typeof r&&(i=r,r=null),r?t.call(e,n,r,o):t.call(e,n,o)}:t}function l(t){return t?function(n,r){var i=r?t.call(e,n,r):t.call(e,n);return i&&(i.uid<0&&(i.uid+=4294967296),i.gid<0&&(i.gid+=4294967296)),i}:t}function f(e){return!e||"ENOSYS"===e.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code)}r.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(e){e.lchmod=function(t,n,i){e.open(t,r.O_WRONLY|r.O_SYMLINK,n,(function(t,r){t?i&&i(t):e.fchmod(r,n,(function(t){e.close(r,(function(e){i&&i(t||e)}))}))}))},e.lchmodSync=function(t,n){var i,o=e.openSync(t,r.O_WRONLY|r.O_SYMLINK,n),s=!0;try{i=e.fchmodSync(o,n),s=!1}finally{if(s)try{e.closeSync(o)}catch(e){}else e.closeSync(o)}return i}}(e),e.lutimes||function(e){r.hasOwnProperty("O_SYMLINK")?(e.lutimes=function(t,n,i,o){e.open(t,r.O_SYMLINK,(function(t,r){t?o&&o(t):e.futimes(r,n,i,(function(t){e.close(r,(function(e){o&&o(t||e)}))}))}))},e.lutimesSync=function(t,n,i){var o,s=e.openSync(t,r.O_SYMLINK),a=!0;try{o=e.futimesSync(s,n,i),a=!1}finally{if(a)try{e.closeSync(s)}catch(e){}else e.closeSync(s)}return o}):(e.lutimes=function(e,t,n,r){r&&process.nextTick(r)},e.lutimesSync=function(){})}(e),e.chown=a(e.chown),e.fchown=a(e.fchown),e.lchown=a(e.lchown),e.chmod=i(e.chmod),e.fchmod=i(e.fchmod),e.lchmod=i(e.lchmod),e.chownSync=c(e.chownSync),e.fchownSync=c(e.fchownSync),e.lchownSync=c(e.lchownSync),e.chmodSync=o(e.chmodSync),e.fchmodSync=o(e.fchmodSync),e.lchmodSync=o(e.lchmodSync),e.stat=u(e.stat),e.fstat=u(e.fstat),e.lstat=u(e.lstat),e.statSync=l(e.statSync),e.fstatSync=l(e.fstatSync),e.lstatSync=l(e.lstatSync),e.lchmod||(e.lchmod=function(e,t,n){n&&process.nextTick(n)},e.lchmodSync=function(){}),e.lchown||(e.lchown=function(e,t,n,r){r&&process.nextTick(r)},e.lchownSync=function(){}),"win32"===s&&(e.rename=(t=e.rename,function(n,r,i){var o=Date.now(),s=0;t(n,r,(function a(c){if(c&&("EACCES"===c.code||"EPERM"===c.code)&&Date.now()-o<6e4)return setTimeout((function(){e.stat(r,(function(e,o){e&&"ENOENT"===e.code?t(n,r,a):i(c)}))}),s),void(s<100&&(s+=10));i&&i(c)}))})),e.read=function(t){function n(n,r,i,o,s,a){var c;if(a&&"function"==typeof a){var u=0;c=function(l,f,d){if(l&&"EAGAIN"===l.code&&u<10)return u++,t.call(e,n,r,i,o,s,c);a.apply(this,arguments)}}return t.call(e,n,r,i,o,s,c)}return Object.setPrototypeOf&&Object.setPrototypeOf(n,t),n}(e.read),e.readSync=(n=e.readSync,function(t,r,i,o,s){for(var a=0;;)try{return n.call(e,t,r,i,o,s)}catch(e){if("EAGAIN"===e.code&&a<10){a++;continue}throw e}})}},92001:e=>{"use strict";const t=Object.prototype.hasOwnProperty;e.exports=(e,n)=>t.call(e,n)},43481:e=>{!function(){var t;function n(e,r){var i=this instanceof n?this:t;if(i.reset(r),"string"==typeof e&&e.length>0&&i.hash(e),i!==this)return i}n.prototype.hash=function(e){var t,n,r,i,o;switch(o=e.length,this.len+=o,n=this.k1,r=0,this.rem){case 0:n^=o>r?65535&e.charCodeAt(r++):0;case 1:n^=o>r?(65535&e.charCodeAt(r++))<<8:0;case 2:n^=o>r?(65535&e.charCodeAt(r++))<<16:0;case 3:n^=o>r?(255&e.charCodeAt(r))<<24:0,n^=o>r?(65280&e.charCodeAt(r++))>>8:0}if(this.rem=o+this.rem&3,(o-=this.rem)>0){for(t=this.h1;t=5*(t=(t^=n=13715*(n=(n=11601*n+3432906752*(65535&n)&4294967295)<<15|n>>>17)+461832192*(65535&n)&4294967295)<<13|t>>>19)+3864292196&4294967295,!(r>=o);)n=65535&e.charCodeAt(r++)^(65535&e.charCodeAt(r++))<<8^(65535&e.charCodeAt(r++))<<16,n^=(255&(i=e.charCodeAt(r++)))<<24^(65280&i)>>8;switch(n=0,this.rem){case 3:n^=(65535&e.charCodeAt(r+2))<<16;case 2:n^=(65535&e.charCodeAt(r+1))<<8;case 1:n^=65535&e.charCodeAt(r)}this.h1=t}return this.k1=n,this},n.prototype.result=function(){var e,t;return e=this.k1,t=this.h1,e>0&&(t^=e=13715*(e=(e=11601*e+3432906752*(65535&e)&4294967295)<<15|e>>>17)+461832192*(65535&e)&4294967295),t^=this.len,t=51819*(t^=t>>>16)+2246770688*(65535&t)&4294967295,t=44597*(t^=t>>>13)+3266445312*(65535&t)&4294967295,(t^=t>>>16)>>>0},n.prototype.reset=function(e){return this.h1="number"==typeof e?e:0,this.rem=this.k1=this.len=0,this},t=new n,e.exports=n}()},23097:(e,t)=>{t.parse=t.decode=function(e){var t={},n=t,i=null,o=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i;return e.split(/[\r\n]+/g).forEach((function(e,r,a){if(e&&!e.match(/^\s*[;#]/)){var c=e.match(o);if(c){if(void 0!==c[1])return"__proto__"===(i=s(c[1]))?void(n={}):void(n=t[i]=t[i]||{});var u=s(c[2]);if("__proto__"!==u){var l=!c[3]||s(c[4]);switch(l){case"true":case"false":case"null":l=JSON.parse(l)}if(u.length>2&&"[]"===u.slice(-2)){if("__proto__"===(u=u.substring(0,u.length-2)))return;n[u]?Array.isArray(n[u])||(n[u]=[n[u]]):n[u]=[]}Array.isArray(n[u])?n[u].push(l):n[u]=l}}}})),Object.keys(t).filter((function(e,n,i){if(!t[e]||"object"!=typeof t[e]||Array.isArray(t[e]))return!1;var o=r(e),s=t,a=o.pop(),c=a.replace(/\\\./g,".");return o.forEach((function(e,t,n){"__proto__"!==e&&(s[e]&&"object"==typeof s[e]||(s[e]={}),s=s[e])})),(s!==t||c!==a)&&(s[c]=t[e],!0)})).forEach((function(e,n,r){delete t[e]})),t},t.stringify=t.encode=function e(t,i){var s=[],a="";"string"==typeof i?i={section:i,whitespace:!1}:(i=i||{}).whitespace=!0===i.whitespace;var c=i.whitespace?" = ":"=";return Object.keys(t).forEach((function(e,r,i){var u=t[e];u&&Array.isArray(u)?u.forEach((function(t){a+=o(e+"[]")+c+o(t)+"\n"})):u&&"object"==typeof u?s.push(e):a+=o(e)+c+o(u)+n})),i.section&&a.length&&(a="["+o(i.section)+"]"+n+a),s.forEach((function(o,s,c){var u=r(o).join("\\."),l=(i.section?i.section+".":"")+u,f=e(t[o],{section:l,whitespace:i.whitespace});a.length&&f.length&&(a+=n),a+=f})),a},t.safe=o,t.unsafe=s;var n="undefined"!=typeof process&&"win32"===process.platform?"\r\n":"\n";function r(e){return e.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map((function(e){return e.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,"")}))}function i(e){return'"'===e.charAt(0)&&'"'===e.slice(-1)||"'"===e.charAt(0)&&"'"===e.slice(-1)}function o(e){return"string"!=typeof e||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&i(e)||e!==e.trim()?JSON.stringify(e):e.replace(/;/g,"\\;").replace(/#/g,"\\#")}function s(e,t){if(!i(e=(e||"").trim())){for(var n=!1,r="",o=0,s=e.length;o{"use strict";e.exports=function(e){return!!e&&(e instanceof Array||Array.isArray(e)||e.length>=0&&e.splice instanceof Function)}},41346:e=>{"use strict";e.exports=function(e){return"number"==typeof e?e-e==0:"string"==typeof e&&""!==e.trim()&&(Number.isFinite?Number.isFinite(+e):isFinite(+e))}},91212:e=>{"use strict";e.exports=e=>{const t=typeof e;return null!==e&&("object"===t||"function"===t)}},30775:e=>{e.exports=r,r.strict=i,r.loose=o;var t=Object.prototype.toString,n={"[object Int8Array]":!0,"[object Int16Array]":!0,"[object Int32Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Uint16Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0};function r(e){return i(e)||o(e)}function i(e){return e instanceof Int8Array||e instanceof Int16Array||e instanceof Int32Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Uint16Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array}function o(e){return n[t.call(e)]}},39520:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,t.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!(!e[3]&&!e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}},16735:e=>{"use strict";class t extends SyntaxError{constructor(e,t,n,r){const i=((e,t,n)=>{if(!t)return{message:e.message+" while parsing empty string",position:0};const r=e.message.match(/^Unexpected token (.) .*position\s+(\d+)/i),i=r?+r[2]:e.message.match(/^Unexpected end of JSON.*/i)?t.length-1:null,o=r?e.message.replace(/^Unexpected token ./,`Unexpected token ${JSON.stringify(r[1])} (${(e=>{const t=e.charCodeAt(0).toString(16).toUpperCase();return"0x"+(t.length%2?"0":"")+t})(r[1])})`):e.message;if(null!=i){const e=i<=n?0:i-n,r=i+n>=t.length?t.length:i+n,s=(0===e?"":"...")+t.slice(e,r)+(r===t.length?"":"...");return{message:o+` while parsing ${t===s?"":"near "}${JSON.stringify(s)}`,position:i}}return{message:o+` while parsing '${t.slice(0,2*n)}'`,position:0}})(e,t,n=n||20);super(i.message),Object.assign(this,i),this.code="EJSONPARSE",this.systemError=e,Error.captureStackTrace(this,r||this.constructor)}get name(){return this.constructor.name}set name(e){}get[Symbol.toStringTag](){return this.constructor.name}}const n=Symbol.for("indent"),r=Symbol.for("newline"),i=/^\s*[{\[]((?:\r?\n)+)([\s\t]*)/,o=/^(?:\{\}|\[\])((?:\r?\n)+)?$/,s=(e,c,u)=>{const l=a(e);u=u||20;try{const[,e="\n",t=" "]=l.match(o)||l.match(i)||[,"",""],s=JSON.parse(l,c);return s&&"object"==typeof s&&(s[r]=e,s[n]=t),s}catch(n){if("string"!=typeof e&&!Buffer.isBuffer(e)){const t=Array.isArray(e)&&0===e.length;throw Object.assign(new TypeError(`Cannot parse ${t?"an empty array":String(e)}`),{code:"EJSONPARSE",systemError:n})}throw new t(n,l,u,s)}},a=e=>String(e).replace(/^\uFEFF/,"");e.exports=s,s.JSONParseError=t,s.noExceptions=(e,t)=>{try{return JSON.parse(a(e),t)}catch(e){}}},30370:(e,t,n)=>{let r;try{r=n(60085)}catch(e){r=n(57147)}const i=n(55725),{stringify:o,stripBom:s}=n(87154),a={readFile:i.fromPromise((async function(e,t={}){"string"==typeof t&&(t={encoding:t});const n=t.fs||r,o=!("throws"in t)||t.throws;let a,c=await i.fromCallback(n.readFile)(e,t);c=s(c);try{a=JSON.parse(c,t?t.reviver:null)}catch(t){if(o)throw t.message=`${e}: ${t.message}`,t;return null}return a})),readFileSync:function(e,t={}){"string"==typeof t&&(t={encoding:t});const n=t.fs||r,i=!("throws"in t)||t.throws;try{let r=n.readFileSync(e,t);return r=s(r),JSON.parse(r,t.reviver)}catch(t){if(i)throw t.message=`${e}: ${t.message}`,t;return null}},writeFile:i.fromPromise((async function(e,t,n={}){const s=n.fs||r,a=o(t,n);await i.fromCallback(s.writeFile)(e,a,n)})),writeFileSync:function(e,t,n={}){const i=n.fs||r,s=o(t,n);return i.writeFileSync(e,s,n)}};e.exports=a},87154:e=>{e.exports={stringify:function(e,{EOL:t="\n",finalEOL:n=!0,replacer:r=null,spaces:i}={}){const o=n?t:"";return JSON.stringify(e,r,i).replace(/\n/g,t)+o},stripBom:function(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}}},61353:(e,t)=>{"use strict";t.__esModule=!0,t.LinesAndColumns=void 0;var n="\n",r=function(){function e(e){this.string=e;for(var t=[0],r=0;rthis.string.length)return null;for(var t=0,n=this.offsets;n[t+1]<=e;)t++;return{line:t,column:e-n[t]}},e.prototype.indexForLocation=function(e){var t=e.line,n=e.column;return t<0||t>=this.offsets.length||n<0||n>this.lengthOfLine(t)?null:this.offsets[t]+n},e.prototype.lengthOfLine=function(e){var t=this.offsets[e];return(e===this.offsets.length-1?this.string.length:this.offsets[e+1])-t},e}();t.LinesAndColumns=r,t.default=r},53567:(e,t,n)=>{"use strict";const r=n(71017),i=n(57147),{promisify:o}=n(73837),s=n(87020),a=o(i.stat),c=o(i.lstat),u={directory:"isDirectory",file:"isFile"};function l({type:e}){if(!(e in u))throw new Error(`Invalid type specified: ${e}`)}const f=(e,t)=>void 0===e||t[u[e]]();e.exports=async(e,t)=>{l(t={cwd:process.cwd(),type:"file",allowSymlinks:!0,...t});const n=t.allowSymlinks?a:c;return s(e,(async e=>{try{const i=await n(r.resolve(t.cwd,e));return f(t.type,i)}catch{return!1}}),t)},e.exports.sync=(e,t)=>{l(t={cwd:process.cwd(),allowSymlinks:!0,type:"file",...t});const n=t.allowSymlinks?i.statSync:i.lstatSync;for(const i of e)try{const e=n(r.resolve(t.cwd,i));if(f(t.type,e))return i}catch{}}},5870:(e,t,n)=>{"use strict";const r=n(57147),i=n(71017),{promisify:o}=n(73837),s=n(83802).satisfies(process.version,">=10.12.0"),a=e=>{if("win32"===process.platform&&/[<>:"|?*]/.test(e.replace(i.parse(e).root,""))){const t=new Error(`Path contains invalid characters: ${e}`);throw t.code="EINVAL",t}},c=e=>({mode:511,fs:r,...e}),u=e=>{const t=new Error(`operation not permitted, mkdir '${e}'`);return t.code="EPERM",t.errno=-4048,t.path=e,t.syscall="mkdir",t};e.exports=async(e,t)=>{a(e),t=c(t);const n=o(t.fs.mkdir),l=o(t.fs.stat);if(s&&t.fs.mkdir===r.mkdir){const r=i.resolve(e);return await n(r,{mode:t.mode,recursive:!0}),r}const f=async e=>{try{return await n(e,t.mode),e}catch(t){if("EPERM"===t.code)throw t;if("ENOENT"===t.code){if(i.dirname(e)===e)throw u(e);if(t.message.includes("null bytes"))throw t;return await f(i.dirname(e)),f(e)}try{if(!(await l(e)).isDirectory())throw new Error("The path is not a directory")}catch(e){throw t}return e}};return f(i.resolve(e))},e.exports.sync=(e,t)=>{if(a(e),t=c(t),s&&t.fs.mkdirSync===r.mkdirSync){const n=i.resolve(e);return r.mkdirSync(n,{mode:t.mode,recursive:!0}),n}const n=e=>{try{t.fs.mkdirSync(e,t.mode)}catch(r){if("EPERM"===r.code)throw r;if("ENOENT"===r.code){if(i.dirname(e)===e)throw u(e);if(r.message.includes("null bytes"))throw r;return n(i.dirname(e)),n(e)}try{if(!t.fs.statSync(e).isDirectory())throw new Error("The path is not a directory")}catch(e){throw r}}return e};return n(i.resolve(e))}},83802:(e,t)=>{var n;t=e.exports=f,n="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=t.tokens={},a=0;function c(e){s[e]=a++}c("NUMERICIDENTIFIER"),o[s.NUMERICIDENTIFIER]="0|[1-9]\\d*",c("NUMERICIDENTIFIERLOOSE"),o[s.NUMERICIDENTIFIERLOOSE]="[0-9]+",c("NONNUMERICIDENTIFIER"),o[s.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",c("MAINVERSION"),o[s.MAINVERSION]="("+o[s.NUMERICIDENTIFIER]+")\\.("+o[s.NUMERICIDENTIFIER]+")\\.("+o[s.NUMERICIDENTIFIER]+")",c("MAINVERSIONLOOSE"),o[s.MAINVERSIONLOOSE]="("+o[s.NUMERICIDENTIFIERLOOSE]+")\\.("+o[s.NUMERICIDENTIFIERLOOSE]+")\\.("+o[s.NUMERICIDENTIFIERLOOSE]+")",c("PRERELEASEIDENTIFIER"),o[s.PRERELEASEIDENTIFIER]="(?:"+o[s.NUMERICIDENTIFIER]+"|"+o[s.NONNUMERICIDENTIFIER]+")",c("PRERELEASEIDENTIFIERLOOSE"),o[s.PRERELEASEIDENTIFIERLOOSE]="(?:"+o[s.NUMERICIDENTIFIERLOOSE]+"|"+o[s.NONNUMERICIDENTIFIER]+")",c("PRERELEASE"),o[s.PRERELEASE]="(?:-("+o[s.PRERELEASEIDENTIFIER]+"(?:\\."+o[s.PRERELEASEIDENTIFIER]+")*))",c("PRERELEASELOOSE"),o[s.PRERELEASELOOSE]="(?:-?("+o[s.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+o[s.PRERELEASEIDENTIFIERLOOSE]+")*))",c("BUILDIDENTIFIER"),o[s.BUILDIDENTIFIER]="[0-9A-Za-z-]+",c("BUILD"),o[s.BUILD]="(?:\\+("+o[s.BUILDIDENTIFIER]+"(?:\\."+o[s.BUILDIDENTIFIER]+")*))",c("FULL"),c("FULLPLAIN"),o[s.FULLPLAIN]="v?"+o[s.MAINVERSION]+o[s.PRERELEASE]+"?"+o[s.BUILD]+"?",o[s.FULL]="^"+o[s.FULLPLAIN]+"$",c("LOOSEPLAIN"),o[s.LOOSEPLAIN]="[v=\\s]*"+o[s.MAINVERSIONLOOSE]+o[s.PRERELEASELOOSE]+"?"+o[s.BUILD]+"?",c("LOOSE"),o[s.LOOSE]="^"+o[s.LOOSEPLAIN]+"$",c("GTLT"),o[s.GTLT]="((?:<|>)?=?)",c("XRANGEIDENTIFIERLOOSE"),o[s.XRANGEIDENTIFIERLOOSE]=o[s.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",c("XRANGEIDENTIFIER"),o[s.XRANGEIDENTIFIER]=o[s.NUMERICIDENTIFIER]+"|x|X|\\*",c("XRANGEPLAIN"),o[s.XRANGEPLAIN]="[v=\\s]*("+o[s.XRANGEIDENTIFIER]+")(?:\\.("+o[s.XRANGEIDENTIFIER]+")(?:\\.("+o[s.XRANGEIDENTIFIER]+")(?:"+o[s.PRERELEASE]+")?"+o[s.BUILD]+"?)?)?",c("XRANGEPLAINLOOSE"),o[s.XRANGEPLAINLOOSE]="[v=\\s]*("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:"+o[s.PRERELEASELOOSE]+")?"+o[s.BUILD]+"?)?)?",c("XRANGE"),o[s.XRANGE]="^"+o[s.GTLT]+"\\s*"+o[s.XRANGEPLAIN]+"$",c("XRANGELOOSE"),o[s.XRANGELOOSE]="^"+o[s.GTLT]+"\\s*"+o[s.XRANGEPLAINLOOSE]+"$",c("COERCE"),o[s.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",c("COERCERTL"),i[s.COERCERTL]=new RegExp(o[s.COERCE],"g"),c("LONETILDE"),o[s.LONETILDE]="(?:~>?)",c("TILDETRIM"),o[s.TILDETRIM]="(\\s*)"+o[s.LONETILDE]+"\\s+",i[s.TILDETRIM]=new RegExp(o[s.TILDETRIM],"g"),c("TILDE"),o[s.TILDE]="^"+o[s.LONETILDE]+o[s.XRANGEPLAIN]+"$",c("TILDELOOSE"),o[s.TILDELOOSE]="^"+o[s.LONETILDE]+o[s.XRANGEPLAINLOOSE]+"$",c("LONECARET"),o[s.LONECARET]="(?:\\^)",c("CARETTRIM"),o[s.CARETTRIM]="(\\s*)"+o[s.LONECARET]+"\\s+",i[s.CARETTRIM]=new RegExp(o[s.CARETTRIM],"g"),c("CARET"),o[s.CARET]="^"+o[s.LONECARET]+o[s.XRANGEPLAIN]+"$",c("CARETLOOSE"),o[s.CARETLOOSE]="^"+o[s.LONECARET]+o[s.XRANGEPLAINLOOSE]+"$",c("COMPARATORLOOSE"),o[s.COMPARATORLOOSE]="^"+o[s.GTLT]+"\\s*("+o[s.LOOSEPLAIN]+")$|^$",c("COMPARATOR"),o[s.COMPARATOR]="^"+o[s.GTLT]+"\\s*("+o[s.FULLPLAIN]+")$|^$",c("COMPARATORTRIM"),o[s.COMPARATORTRIM]="(\\s*)"+o[s.GTLT]+"\\s*("+o[s.LOOSEPLAIN]+"|"+o[s.XRANGEPLAIN]+")",i[s.COMPARATORTRIM]=new RegExp(o[s.COMPARATORTRIM],"g"),c("HYPHENRANGE"),o[s.HYPHENRANGE]="^\\s*("+o[s.XRANGEPLAIN]+")\\s+-\\s+("+o[s.XRANGEPLAIN]+")\\s*$",c("HYPHENRANGELOOSE"),o[s.HYPHENRANGELOOSE]="^\\s*("+o[s.XRANGEPLAINLOOSE]+")\\s+-\\s+("+o[s.XRANGEPLAINLOOSE]+")\\s*$",c("STAR"),o[s.STAR]="(<|>)?=?\\s*\\*";for(var u=0;u256)return null;if(!(t.loose?i[s.LOOSE]:i[s.FULL]).test(e))return null;try{return new f(e,t)}catch(e){return null}}function f(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof f){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>256)throw new TypeError("version is longer than 256 characters");if(!(this instanceof f))return new f(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[s.LOOSE]:i[s.FULL]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new f(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(y(e,t))return null;var n=l(e),r=l(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=p;var d=/^[0-9]+$/;function p(e,t){var n=d.test(e),r=d.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function m(e,t,n){return h(e,t,n)<0}function y(e,t,n){return 0===h(e,t,n)}function v(e,t,n){return 0!==h(e,t,n)}function b(e,t,n){return h(e,t,n)>=0}function S(e,t,n){return h(e,t,n)<=0}function E(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return y(e,n,r);case"!=":return v(e,n,r);case">":return g(e,n,r);case">=":return b(e,n,r);case"<":return m(e,n,r);case"<=":return S(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function x(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof x){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof x))return new x(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===w?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return p(t,e)},t.major=function(e,t){return new f(e,t).major},t.minor=function(e,t){return new f(e,t).minor},t.patch=function(e,t){return new f(e,t).patch},t.compare=h,t.compareLoose=function(e,t){return h(e,t,!0)},t.compareBuild=function(e,t,n){var r=new f(e,n),i=new f(t,n);return r.compare(i)||r.compareBuild(i)},t.rcompare=function(e,t,n){return h(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compareBuild(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.compareBuild(r,e,n)}))},t.gt=g,t.lt=m,t.eq=y,t.neq=v,t.gte=b,t.lte=S,t.cmp=E,t.Comparator=x;var w={};function _(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof _)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new _(e.raw,t);if(e instanceof x)return new _(e.value,t);if(!(this instanceof _))return new _(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function O(e,t){for(var n=!0,r=e.slice(),i=r.pop();n&&r.length;)n=r.every((function(e){return i.intersects(e,t)})),i=r.pop();return n}function C(e){return!e||"x"===e.toLowerCase()||"*"===e}function D(e,t,n,r,i,o,s,a,c,u,l,f,d){return((t=C(n)?"":C(r)?">="+n+".0.0":C(i)?">="+n+"."+r+".0":">="+t)+" "+(a=C(c)?"":C(u)?"<"+(+c+1)+".0.0":C(l)?"<"+c+"."+(+u+1)+".0":f?"<="+c+"."+u+"."+l+"-"+f:"<="+a)).trim()}function A(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function P(e,t,n){try{t=new _(t,n)}catch(e){return!1}return t.test(e)}function T(e,t,n,r){var i,o,s,a,c;switch(e=new f(e,r),t=new _(t,r),n){case">":i=g,o=S,s=m,a=">",c=">=";break;case"<":i=m,o=b,s=g,a="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(P(e,t,r))return!1;for(var u=0;u=0.0.0")),d=d||e,p=p||e,i(e.semver,d.semver,r)?d=e:s(e.semver,p.semver,r)&&(p=e)})),d.operator===a||d.operator===c)return!1;if((!p.operator||p.operator===a)&&o(e,p.semver))return!1;if(p.operator===c&&s(e,p.semver))return!1}return!0}x.prototype.parse=function(e){var t=this.options.loose?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new f(n[2],this.options.loose):this.semver=w},x.prototype.toString=function(){return this.value},x.prototype.test=function(e){if(n("Comparator.test",e,this.options.loose),this.semver===w||e===w)return!0;if("string"==typeof e)try{e=new f(e,this.options)}catch(e){return!1}return E(e,this.operator,this.semver,this.options)},x.prototype.intersects=function(e,t){if(!(e instanceof x))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(n=new _(e.value,t),P(this.value,n,t));if(""===e.operator)return""===e.value||(n=new _(this.value,t),P(e.semver,n,t));var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=E(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=E(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||c},t.Range=_,_.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},_.prototype.toString=function(){return this.range},_.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[s.HYPHENRANGELOOSE]:i[s.HYPHENRANGE];e=e.replace(r,D),n("hyphen replace",e),e=e.replace(i[s.COMPARATORTRIM],"$1$2$3"),n("comparator trim",e,i[s.COMPARATORTRIM]),e=(e=(e=e.replace(i[s.TILDETRIM],"$1~")).replace(i[s.CARETTRIM],"$1^")).split(/\s+/).join(" ");var o=t?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],a=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[s.CARETLOOSE]:i[s.CARET];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),C(r)?a="":C(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":C(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[s.TILDELOOSE]:i[s.TILDE];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),C(r)?a="":C(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":C(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[s.XRANGELOOSE]:i[s.XRANGE];return e.replace(r,(function(r,i,o,s,a,c){n("xRange",e,r,i,o,s,a,c);var u=C(o),l=u||C(s),f=l||C(a),d=f;return"="===i&&d&&(i=""),c=t.includePrerelease?"-0":"",u?r=">"===i||"<"===i?"<0.0.0-0":"*":i&&d?(l&&(s=0),a=0,">"===i?(i=">=",l?(o=+o+1,s=0,a=0):(s=+s+1,a=0)):"<="===i&&(i="<",l?o=+o+1:s=+s+1),r=i+o+"."+s+"."+a+c):l?r=">="+o+".0.0"+c+" <"+(+o+1)+".0.0"+c:f&&(r=">="+o+"."+s+".0"+c+" <"+o+"."+(+s+1)+".0"+c),n("xRange return",r),r}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[s.STAR],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(a=a.filter((function(e){return!!e.match(o)}))),a.map((function(e){return new x(e,this.options)}),this)},_.prototype.intersects=function(e,t){if(!(e instanceof _))throw new TypeError("a Range is required");return this.set.some((function(n){return O(n,t)&&e.set.some((function(e){return O(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new _(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},_.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new f(e,this.options)}catch(e){return!1}for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!g(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}));return n&&e.test(n)?n:null},t.validRange=function(e,t){try{return new _(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return T(e,t,"<",n)},t.gtr=function(e,t,n){return T(e,t,">",n)},t.outside=T,t.prerelease=function(e,t){var n=l(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new _(e,n),t=new _(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof f)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;var n=null;if((t=t||{}).rtl){for(var r;(r=i[s.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),i[s.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;i[s.COERCERTL].lastIndex=-1}else n=e.match(i[s.COERCE]);return null===n?null:l(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}},71876:(e,t,n)=>{"use strict";const r=n(73837),i=n(95234),o=n(4763),s=n(53338),a=e=>""===e||"./"===e,c=(e,t,n)=>{t=[].concat(t),e=[].concat(e);let r=new Set,i=new Set,s=new Set,a=0,c=e=>{s.add(e.output),n&&n.onResult&&n.onResult(e)};for(let s=0;s!r.has(e)));if(n&&0===u.length){if(!0===n.failglob)throw new Error(`No matches found for "${t.join(", ")}"`);if(!0===n.nonull||!0===n.nullglob)return n.unescape?t.map((e=>e.replace(/\\/g,""))):t}return u};c.match=c,c.matcher=(e,t)=>o(e,t),c.any=c.isMatch=(e,t,n)=>o(t,n)(e),c.not=(e,t,n={})=>{t=[].concat(t).map(String);let r=new Set,i=[],o=new Set(c(e,t,{...n,onResult:e=>{n.onResult&&n.onResult(e),i.push(e.output)}}));for(let e of i)o.has(e)||r.add(e);return[...r]},c.contains=(e,t,n)=>{if("string"!=typeof e)throw new TypeError(`Expected a string: "${r.inspect(e)}"`);if(Array.isArray(t))return t.some((t=>c.contains(e,t,n)));if("string"==typeof t){if(a(e)||a(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return c.isMatch(e,t,{...n,contains:!0})},c.matchKeys=(e,t,n)=>{if(!s.isObject(e))throw new TypeError("Expected the first argument to be an object");let r=c(Object.keys(e),t,n),i={};for(let t of r)i[t]=e[t];return i},c.some=(e,t,n)=>{let r=[].concat(e);for(let e of[].concat(t)){let t=o(String(e),n);if(r.some((e=>t(e))))return!0}return!1},c.every=(e,t,n)=>{let r=[].concat(e);for(let e of[].concat(t)){let t=o(String(e),n);if(!r.every((e=>t(e))))return!1}return!0},c.all=(e,t,n)=>{if("string"!=typeof e)throw new TypeError(`Expected a string: "${r.inspect(e)}"`);return[].concat(t).every((t=>o(t,n)(e)))},c.capture=(e,t,n)=>{let r=s.isWindows(n),i=o.makeRe(String(e),{...n,capture:!0}).exec(r?s.toPosixSlashes(t):t);if(i)return i.slice(1).map((e=>void 0===e?"":e))},c.makeRe=(...e)=>o.makeRe(...e),c.scan=(...e)=>o.scan(...e),c.parse=(e,t)=>{let n=[];for(let r of[].concat(e||[]))for(let e of i(String(r),t))n.push(o.parse(e,t));return n},c.braces=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");return t&&!0===t.nobrace||!/\{.*\}/.test(e)?[e]:i(e,t)},c.braceExpand=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");return c.braces(e,{...t,expand:!0})},e.exports=c},39613:(e,t,n)=>{var r,i=n(57147),o=n(22037),s=n(71017),a=n(62017),c=o.tmpdir&&o.tmpdir()||process.env.TMPDIR||process.env.TEMP||process.cwd();function u(){this.stack=[]}u.prototype={create:function(e,t){var n=s.join(t,"node-watch-"+Math.random().toString(16).substr(2));return this.stack.push({name:n,type:e}),n},write:function(){for(var e=0;e{var r=n(57147),i=n(71017),o=n(22037);function s(e,t){return Object.prototype.toString.call(e)==="[object "+t+"]"}function a(e,t){try{return t(e)}catch(t){if(/^(ENOENT|EPERM|EACCES)$/.test(t.code))return"ENOENT"!==t.code&&console.warn("Warning: Cannot access %s",e),!1;throw t}}var c={nil:function(e){return null==e},array:function(e){return Array.isArray(e)},emptyObject:function(e){for(var t in e)return!1;return!0},buffer:function(e){return Buffer.isBuffer(e)},regExp:function(e){return s(e,"RegExp")},string:function(e){return s(e,"String")},func:function(e){return"function"==typeof e},number:function(e){return s(e,"Number")},exists:function(e){return r.existsSync(e)},file:function(e){return a(e,(function(e){return r.statSync(e).isFile()}))},samePath:function(e,t){return i.resolve(e)===i.resolve(t)},directory:function(e){return a(e,(function(e){return r.statSync(e).isDirectory()}))},symbolicLink:function(e){return a(e,(function(e){return r.lstatSync(e).isSymbolicLink()}))},windows:function(){return"win32"===o.platform()}};e.exports=c},15914:(e,t,n)=>{var r=n(57147),i=n(71017),o=n(73837),s=n(82361),a=n(39613),c=n(62017),u="remove",l=Symbol("skip");function f(e){return e.filter((function(e,t,n){return n.indexOf(e)===t}))}function d(e){if(e&&"buffer"!==e&&!Buffer.isEncoding(e))throw new Error("Unknown encoding: "+e)}function p(){var e={};return function(t){return function(n,r){e[n+r]=[n,r],setTimeout((function(){Object.keys(e).forEach((function(n){t.apply(null,e[n])})),e={}}))}}}function h(e,t,n=function(){}){c.directory(e)?r.readdir(e,(function(r,o){if(r){if(!/^(EPERM|EACCES)$/.test(r.code))throw r;console.warn("Warning: Cannot access %s.",e)}else o.forEach((function(n){var r=i.join(e,n);c.directory(r)&&t(r)})),n()})):n()}function g(e){var t=0;return function(){return t++,function(){0==--t&&e()}}}function m(){return function(){}}function y(e,t){return!c.func(t)||t(e,l)!==l}var v=o.deprecate((function(){}),"(node-watch) First param in callback function is replaced with event name since 0.5.0, use `(evt, filename) => {}` if you want to get the filename");function b(){s.EventEmitter.call(this),this.watchers={},this._isReady=!1,this._isClosed=!1}function S(e){e._isReady||(e._isReady=!0,process.nextTick((function(){e.emit("ready")})))}function E(e){e.emit("close")}function x(e){var t=new b,n=p(),r=e.length;return e.forEach((function(e){e.on("change",n((function(e,n){t.emit("change",e,n)}))),e.on("error",(function(e){t.emit("error",e)})),e.on("ready",(function(){--r||S(t)}))})),t.close=function(){e.forEach((function(e){e.close()})),process.nextTick(E,t)},t.getWatchedPaths=function(t){if(c.func(t)){var n=e.map((function(e){return new Promise((function(t){e.getWatchedPaths(t)}))}));Promise.all(n).then((function(e){var n=f(e.reduce((function(e,t){return e.concat(t)}),[]));t(n)}))}},t.expose()}function w(e,t,n){var r=new b;if(c.buffer(e)&&(e=e.toString()),c.array(e)||c.exists(e)||r.emit("error",new Error(e+" does not exist.")),c.string(t)&&(t={encoding:t}),c.func(t)&&(n=t,t={}),arguments.length<2&&(t={}),t.encoding?d(t.encoding):t.encoding="utf8",c.array(e)){if(1===e.length)return w(e[0],t,n);var i=p();return x(f(e).map((function(e){var r=w(e,t);return c.func(n)&&r.on("change",i(n)),r})))}if(c.file(e))r.watchFile(e,t,n),S(r);else if(c.directory(e)){var o=g((function(){S(r)}));r.watchDirectory(e,t,n,o)}return r.expose()}o.inherits(b,s.EventEmitter),b.prototype.expose=function(){var e={},t=this;return["on","emit","once","close","isClosed","listeners","setMaxListeners","getMaxListeners","getWatchedPaths"].forEach((function(n){e[n]=function(){return t[n].apply(t,arguments)}})),e},b.prototype.isClosed=function(){return this._isClosed},b.prototype.close=function(e){var t=this;if(e){var n=this.watchers[e];n&&n.close&&(n.close(),delete t.watchers[e]),h(e,(function(e){t.close(e)}))}else Object.keys(t.watchers).forEach((function(e){var n=t.watchers[e];n&&n.close&&n.close()})),this.watchers={};c.emptyObject(t.watchers)&&(this._isClosed||(this._isClosed=!0,process.nextTick(E,this)))},b.prototype.getWatchedPaths=function(e){if(c.func(e)){var t=this;t._isReady?e(Object.keys(t.watchers)):t.on("ready",(function(){e(Object.keys(t.watchers))}))}},b.prototype.add=function(e,t){var n=this;t=t||{fpath:""};var r=i.resolve(t.fpath);this.watchers[r]=e;var o=function(e,t){var n,r=[],i=e.options.encoding,o=e.options.delay;function s(){(function(e){var t=f(e),n=/~$|^\.#|^##$/g;return e.some((function(e){return n.test(e)}))&&e.map((function(e){return e.replace(n,"")})).some((function(e,t,n){return n.indexOf(e)!==t}))&&(t=t.filter((function(e){return c.exists(e)}))),t.map((function(e){return c.exists(e)?["update",e]:[u,e]}))})(r).forEach((function(e){e[1]=Buffer.from(e[1]),"buffer"!==i&&(e[1]=e[1].toString(i)),t.apply(null,e)})),n=null,r=[]}return c.number(o)||(o=200),function(e,t){r.push(t),n||(n=setTimeout(s,o))}}(t,(function(e,r){var i;t.compareName?t.compareName(r)&&n.emit("change",e,r):(i=t.options.filter,c.func(i)?function(e,t){i(e,!1)&&t()}:c.regExp(i)?function(e,t){i.test(e)&&t()}:function(e,t){t()})(r,(function(){n.flag?n.flag="":n.emit("change",e,r)}))}));e.on("error",(function(i){n.isClosed()||(c.windows()&&"EPERM"===i.code?(e.emit("change",u,t.fpath&&""),n.flag="windows-error",n.close(r)):n.emit("error",i))})),e.on("change",(function(e,r){if(!n.isClosed()){var s=r;c.nil(s)&&(s=""),s=i.join(t.fpath,s),t.options.recursive&&a((function(e){if(!e){var r=i.resolve(s);c.exists(s)?c.directory(s)&&!n.watchers[r]&&y(s,t.options.filter)&&n.watchDirectory(s,t.options):n.close(r)}})),o(e,s)}}))},b.prototype.watchFile=function(e,t,n){var o=i.join(e,"../"),s=Object.assign({},t,{filter:null,encoding:"utf8"});delete s.recursive;var a=r.watch(o,s);this.add(a,{type:"file",fpath:o,options:Object.assign({},s,{encoding:t.encoding}),compareName:function(t){return c.samePath(t,e)}}),c.func(n)&&(1===n.length&&v(),this.on("change",n))},b.prototype.watchDirectory=function(e,t,n,i=m){var o=this,s=i();a((function(a){t.recursive=!!t.recursive;var u=Object.assign({},t,{encoding:"utf8"});if(a||delete u.recursive,o._isClosed)return s(),o.close();var l=r.watch(e,u);o.add(l,{type:"dir",fpath:e,options:t}),c.func(n)&&(1===n.length&&v(),o.on("change",n)),t.recursive&&!a&&h(e,(function(e){y(e,t.filter)&&o.watchDirectory(e,t,null,i)}),i()),s()}))},e.exports=w,e.exports.default=w},87020:(e,t,n)=>{"use strict";const r=n(0);class i extends Error{constructor(e){super(),this.value=e}}const o=async(e,t)=>t(await e),s=async e=>{const t=await Promise.all(e);if(!0===t[1])throw new i(t[0]);return!1};e.exports=async(e,t,n)=>{n={concurrency:1/0,preserveOrder:!0,...n};const a=r(n.concurrency),c=[...e].map((e=>[e,a(o,e,t)])),u=r(n.preserveOrder?1:1/0);try{await Promise.all(c.map((e=>u(s,e))))}catch(e){if(e instanceof i)return e.value;throw e}}},0:(e,t,n)=>{"use strict";const r=n(14950);e.exports=e=>{if(!Number.isInteger(e)&&e!==1/0||!(e>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");const t=new r;let n=0;const i=async(e,r,...i)=>{n++;const o=(async()=>e(...i))();r(o);try{await o}catch{}n--,t.size>0&&t.dequeue()()},o=(r,...o)=>new Promise((s=>{((r,o,...s)=>{t.enqueue(i.bind(null,r,o,...s)),(async()=>{await Promise.resolve(),n0&&t.dequeue()()})()})(r,s,...o)}));return Object.defineProperties(o,{activeCount:{get:()=>n},pendingCount:{get:()=>t.size},clearQueue:{value:()=>{t.clear()}}}),o}},855:(e,t,n)=>{"use strict";const r=n(89598),i=n(16735),{default:o}=n(61353),{codeFrameColumns:s}=n(86502),a=r("JSONError",{fileName:r.append("in %s"),codeFrame:r.append("\n\n%s\n")}),c=(e,t,n)=>{"string"==typeof t&&(n=t,t=null);try{try{return JSON.parse(e,t)}catch(n){throw i(e,t),n}}catch(t){t.message=t.message.replace(/\n/g,"");const r=t.message.match(/in JSON at position (\d+) while parsing/),i=new a(t);if(n&&(i.fileName=n),r&&r.length>0){const t=new o(e),n=Number(r[1]),a=t.locationForIndex(n),c=s(e,{start:{line:a.line+1,column:a.column+1}},{highlightCode:!0});i.codeFrame=c}throw i}};c.JSONError=a,e.exports=c},77898:(e,t,n)=>{"use strict";const{promisify:r}=n(73837),i=n(57147);async function o(e,t,n){if("string"!=typeof n)throw new TypeError("Expected a string, got "+typeof n);try{return(await r(i[e])(n))[t]()}catch(e){if("ENOENT"===e.code)return!1;throw e}}function s(e,t,n){if("string"!=typeof n)throw new TypeError("Expected a string, got "+typeof n);try{return i[e](n)[t]()}catch(e){if("ENOENT"===e.code)return!1;throw e}}t.isFile=o.bind(null,"stat","isFile"),t.isDirectory=o.bind(null,"stat","isDirectory"),t.isSymlink=o.bind(null,"lstat","isSymbolicLink"),t.isFileSync=s.bind(null,"statSync","isFile"),t.isDirectorySync=s.bind(null,"statSync","isDirectory"),t.isSymlinkSync=s.bind(null,"lstatSync","isSymbolicLink")},4763:(e,t,n)=>{"use strict";e.exports=n(32595)},47411:(e,t,n)=>{"use strict";const r=n(71017),i="\\.{1,2}(?:\\/|$)",o={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:"[^/]",END_ANCHOR:"(?:\\/|$)",DOTS_SLASH:i,NO_DOT:"(?!\\.)",NO_DOTS:`(?!(?:^|\\/)${i})`,NO_DOT_SLASH:"(?!\\.{0,1}(?:\\/|$))",NO_DOTS_SLASH:`(?!${i})`,QMARK_NO_DOT:"[^.\\/]",STAR:"[^/]*?",START_ANCHOR:"(?:^|\\/)"},s={...o,SLASH_LITERAL:"[\\\\/]",QMARK:"[^\\\\/]",STAR:"[^\\\\/]*?",DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)"};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,SEP:r.sep,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?s:o}},52902:(e,t,n)=>{"use strict";const r=n(47411),i=n(53338),{MAX_LENGTH:o,POSIX_REGEX_SOURCE:s,REGEX_NON_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_BACKREF:c,REPLACEMENTS:u}=r,l=(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=>i.escapeRegex(e))).join("..")}return n},f=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,d=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");e=u[e]||e;const n={...t},p="number"==typeof n.maxLength?Math.min(o,n.maxLength):o;let h=e.length;if(h>p)throw new SyntaxError(`Input length: ${h}, exceeds maximum allowed length: ${p}`);const g={type:"bos",value:"",output:n.prepend||""},m=[g],y=n.capture?"":"?:",v=i.isWindows(t),b=r.globChars(v),S=r.extglobChars(b),{DOT_LITERAL:E,PLUS_LITERAL:x,SLASH_LITERAL:w,ONE_CHAR:_,DOTS_SLASH:O,NO_DOT:C,NO_DOT_SLASH:D,NO_DOTS_SLASH:A,QMARK:P,QMARK_NO_DOT:T,STAR:R,START_ANCHOR:k}=b,F=e=>`(${y}(?:(?!${k}${e.dot?O:E}).)*?)`,M=n.dot?"":C,j=n.dot?P:T;let I=!0===n.bash?F(n):R;n.capture&&(I=`(${I})`),"boolean"==typeof n.noext&&(n.noextglob=n.noext);const N={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=i.removePrefix(e,N),h=e.length;const L=[],B=[],W=[];let U,q=g;const $=()=>N.index===h-1,z=N.peek=(t=1)=>e[N.index+t],G=N.advance=()=>e[++N.index]||"",H=()=>e.slice(N.index+1),K=(e="",t=0)=>{N.consumed+=e,N.index+=t},J=e=>{N.output+=null!=e.output?e.output:e.value,K(e.value)},X=()=>{let e=1;for(;"!"===z()&&("("!==z(2)||"?"===z(3));)G(),N.start++,e++;return e%2!=0&&(N.negated=!0,N.start++,!0)},V=e=>{N[e]++,W.push(e)},Y=e=>{N[e]--,W.pop()},Q=e=>{if("globstar"===q.type){const t=N.braces>0&&("comma"===e.type||"brace"===e.type),n=!0===e.extglob||L.length&&("pipe"===e.type||"paren"===e.type);"slash"===e.type||"paren"===e.type||t||n||(N.output=N.output.slice(0,-q.output.length),q.type="star",q.value="*",q.output=I,N.output+=q.output)}if(L.length&&"paren"!==e.type&&(L[L.length-1].inner+=e.value),(e.value||e.output)&&J(e),q&&"text"===q.type&&"text"===e.type)return q.value+=e.value,void(q.output=(q.output||"")+e.value);e.prev=q,m.push(e),q=e},Z=(e,t)=>{const r={...S[t],conditions:1,inner:""};r.prev=q,r.parens=N.parens,r.output=N.output;const i=(n.capture?"(":"")+r.open;V("parens"),Q({type:e,value:t,output:N.output?"":_}),Q({type:"paren",extglob:!0,value:G(),output:i}),L.push(r)},ee=e=>{let r,i=e.close+(n.capture?")":"");if("negate"===e.type){let o=I;if(e.inner&&e.inner.length>1&&e.inner.includes("/")&&(o=F(n)),(o!==I||$()||/^\)+$/.test(H()))&&(i=e.close=`)$))${o}`),e.inner.includes("*")&&(r=H())&&/^\.[^\\/.]+$/.test(r)){const n=d(r,{...t,fastpaths:!1}).output;i=e.close=`)${n})${o})`}"bos"===e.prev.type&&(N.negatedExtglob=!0)}Q({type:"paren",extglob:!0,value:U,output:i}),Y("parens")};if(!1!==n.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(e)){let r=!1,o=e.replace(c,((e,t,n,i,o,s)=>"\\"===i?(r=!0,e):"?"===i?t?t+i+(o?P.repeat(o.length):""):0===s?j+(o?P.repeat(o.length):""):P.repeat(n.length):"."===i?E.repeat(n.length):"*"===i?t?t+i+(o?I:""):I:t?e:`\\${e}`));return!0===r&&(o=!0===n.unescape?o.replace(/\\/g,""):o.replace(/\\+/g,(e=>e.length%2==0?"\\\\":e?"\\":""))),o===e&&!0===n.contains?(N.output=e,N):(N.output=i.wrapOutput(o,N,t),N)}for(;!$();){if(U=G(),"\0"===U)continue;if("\\"===U){const e=z();if("/"===e&&!0!==n.bash)continue;if("."===e||";"===e)continue;if(!e){U+="\\",Q({type:"text",value:U});continue}const t=/^\\+/.exec(H());let r=0;if(t&&t[0].length>2&&(r=t[0].length,N.index+=r,r%2!=0&&(U+="\\")),!0===n.unescape?U=G():U+=G(),0===N.brackets){Q({type:"text",value:U});continue}}if(N.brackets>0&&("]"!==U||"["===q.value||"[^"===q.value)){if(!1!==n.posix&&":"===U){const e=q.value.slice(1);if(e.includes("[")&&(q.posix=!0,e.includes(":"))){const e=q.value.lastIndexOf("["),t=q.value.slice(0,e),n=q.value.slice(e+2),r=s[n];if(r){q.value=t+r,N.backtrack=!0,G(),g.output||1!==m.indexOf(q)||(g.output=_);continue}}}("["===U&&":"!==z()||"-"===U&&"]"===z())&&(U=`\\${U}`),"]"!==U||"["!==q.value&&"[^"!==q.value||(U=`\\${U}`),!0===n.posix&&"!"===U&&"["===q.value&&(U="^"),q.value+=U,J({value:U});continue}if(1===N.quotes&&'"'!==U){U=i.escapeRegex(U),q.value+=U,J({value:U});continue}if('"'===U){N.quotes=1===N.quotes?0:1,!0===n.keepQuotes&&Q({type:"text",value:U});continue}if("("===U){V("parens"),Q({type:"paren",value:U});continue}if(")"===U){if(0===N.parens&&!0===n.strictBrackets)throw new SyntaxError(f("opening","("));const e=L[L.length-1];if(e&&N.parens===e.parens+1){ee(L.pop());continue}Q({type:"paren",value:U,output:N.parens?")":"\\)"}),Y("parens");continue}if("["===U){if(!0!==n.nobracket&&H().includes("]"))V("brackets");else{if(!0!==n.nobracket&&!0===n.strictBrackets)throw new SyntaxError(f("closing","]"));U=`\\${U}`}Q({type:"bracket",value:U});continue}if("]"===U){if(!0===n.nobracket||q&&"bracket"===q.type&&1===q.value.length){Q({type:"text",value:U,output:`\\${U}`});continue}if(0===N.brackets){if(!0===n.strictBrackets)throw new SyntaxError(f("opening","["));Q({type:"text",value:U,output:`\\${U}`});continue}Y("brackets");const e=q.value.slice(1);if(!0===q.posix||"^"!==e[0]||e.includes("/")||(U=`/${U}`),q.value+=U,J({value:U}),!1===n.literalBrackets||i.hasRegexChars(e))continue;const t=i.escapeRegex(q.value);if(N.output=N.output.slice(0,-q.value.length),!0===n.literalBrackets){N.output+=t,q.value=t;continue}q.value=`(${y}${t}|${q.value})`,N.output+=q.value;continue}if("{"===U&&!0!==n.nobrace){V("braces");const e={type:"brace",value:U,output:"(",outputIndex:N.output.length,tokensIndex:N.tokens.length};B.push(e),Q(e);continue}if("}"===U){const e=B[B.length-1];if(!0===n.nobrace||!e){Q({type:"text",value:U,output:U});continue}let t=")";if(!0===e.dots){const e=m.slice(),r=[];for(let t=e.length-1;t>=0&&(m.pop(),"brace"!==e[t].type);t--)"dots"!==e[t].type&&r.unshift(e[t].value);t=l(r,n),N.backtrack=!0}if(!0!==e.comma&&!0!==e.dots){const n=N.output.slice(0,e.outputIndex),r=N.tokens.slice(e.tokensIndex);e.value=e.output="\\{",U=t="\\}",N.output=n;for(const e of r)N.output+=e.output||e.value}Q({type:"brace",value:U,output:t}),Y("braces"),B.pop();continue}if("|"===U){L.length>0&&L[L.length-1].conditions++,Q({type:"text",value:U});continue}if(","===U){let e=U;const t=B[B.length-1];t&&"braces"===W[W.length-1]&&(t.comma=!0,e="|"),Q({type:"comma",value:U,output:e});continue}if("/"===U){if("dot"===q.type&&N.index===N.start+1){N.start=N.index+1,N.consumed="",N.output="",m.pop(),q=g;continue}Q({type:"slash",value:U,output:w});continue}if("."===U){if(N.braces>0&&"dot"===q.type){"."===q.value&&(q.output=E);const e=B[B.length-1];q.type="dots",q.output+=U,q.value+=U,e.dots=!0;continue}if(N.braces+N.parens===0&&"bos"!==q.type&&"slash"!==q.type){Q({type:"text",value:U,output:E});continue}Q({type:"dot",value:U,output:E});continue}if("?"===U){if((!q||"("!==q.value)&&!0!==n.noextglob&&"("===z()&&"?"!==z(2)){Z("qmark",U);continue}if(q&&"paren"===q.type){const e=z();let t=U;if("<"===e&&!i.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");("("===q.value&&!/[!=<:]/.test(e)||"<"===e&&!/<([!=]|\w+>)/.test(H()))&&(t=`\\${U}`),Q({type:"text",value:U,output:t});continue}if(!0!==n.dot&&("slash"===q.type||"bos"===q.type)){Q({type:"qmark",value:U,output:T});continue}Q({type:"qmark",value:U,output:P});continue}if("!"===U){if(!0!==n.noextglob&&"("===z()&&("?"!==z(2)||!/[!=<:]/.test(z(3)))){Z("negate",U);continue}if(!0!==n.nonegate&&0===N.index){X();continue}}if("+"===U){if(!0!==n.noextglob&&"("===z()&&"?"!==z(2)){Z("plus",U);continue}if(q&&"("===q.value||!1===n.regex){Q({type:"plus",value:U,output:x});continue}if(q&&("bracket"===q.type||"paren"===q.type||"brace"===q.type)||N.parens>0){Q({type:"plus",value:U});continue}Q({type:"plus",value:x});continue}if("@"===U){if(!0!==n.noextglob&&"("===z()&&"?"!==z(2)){Q({type:"at",extglob:!0,value:U,output:""});continue}Q({type:"text",value:U});continue}if("*"!==U){"$"!==U&&"^"!==U||(U=`\\${U}`);const e=a.exec(H());e&&(U+=e[0],N.index+=e[0].length),Q({type:"text",value:U});continue}if(q&&("globstar"===q.type||!0===q.star)){q.type="star",q.star=!0,q.value+=U,q.output=I,N.backtrack=!0,N.globstar=!0,K(U);continue}let t=H();if(!0!==n.noextglob&&/^\([^?]/.test(t)){Z("star",U);continue}if("star"===q.type){if(!0===n.noglobstar){K(U);continue}const r=q.prev,i=r.prev,o="slash"===r.type||"bos"===r.type,s=i&&("star"===i.type||"globstar"===i.type);if(!0===n.bash&&(!o||t[0]&&"/"!==t[0])){Q({type:"star",value:U,output:""});continue}const a=N.braces>0&&("comma"===r.type||"brace"===r.type),c=L.length&&("pipe"===r.type||"paren"===r.type);if(!o&&"paren"!==r.type&&!a&&!c){Q({type:"star",value:U,output:""});continue}for(;"/**"===t.slice(0,3);){const n=e[N.index+4];if(n&&"/"!==n)break;t=t.slice(3),K("/**",3)}if("bos"===r.type&&$()){q.type="globstar",q.value+=U,q.output=F(n),N.output=q.output,N.globstar=!0,K(U);continue}if("slash"===r.type&&"bos"!==r.prev.type&&!s&&$()){N.output=N.output.slice(0,-(r.output+q.output).length),r.output=`(?:${r.output}`,q.type="globstar",q.output=F(n)+(n.strictSlashes?")":"|$)"),q.value+=U,N.globstar=!0,N.output+=r.output+q.output,K(U);continue}if("slash"===r.type&&"bos"!==r.prev.type&&"/"===t[0]){const e=void 0!==t[1]?"|$":"";N.output=N.output.slice(0,-(r.output+q.output).length),r.output=`(?:${r.output}`,q.type="globstar",q.output=`${F(n)}${w}|${w}${e})`,q.value+=U,N.output+=r.output+q.output,N.globstar=!0,K(U+G()),Q({type:"slash",value:"/",output:""});continue}if("bos"===r.type&&"/"===t[0]){q.type="globstar",q.value+=U,q.output=`(?:^|${w}|${F(n)}${w})`,N.output=q.output,N.globstar=!0,K(U+G()),Q({type:"slash",value:"/",output:""});continue}N.output=N.output.slice(0,-q.output.length),q.type="globstar",q.output=F(n),q.value+=U,N.output+=q.output,N.globstar=!0,K(U);continue}const r={type:"star",value:U,output:I};!0!==n.bash?!q||"bracket"!==q.type&&"paren"!==q.type||!0!==n.regex?(N.index!==N.start&&"slash"!==q.type&&"dot"!==q.type||("dot"===q.type?(N.output+=D,q.output+=D):!0===n.dot?(N.output+=A,q.output+=A):(N.output+=M,q.output+=M),"*"!==z()&&(N.output+=_,q.output+=_)),Q(r)):(r.output=U,Q(r)):(r.output=".*?","bos"!==q.type&&"slash"!==q.type||(r.output=M+r.output),Q(r))}for(;N.brackets>0;){if(!0===n.strictBrackets)throw new SyntaxError(f("closing","]"));N.output=i.escapeLast(N.output,"["),Y("brackets")}for(;N.parens>0;){if(!0===n.strictBrackets)throw new SyntaxError(f("closing",")"));N.output=i.escapeLast(N.output,"("),Y("parens")}for(;N.braces>0;){if(!0===n.strictBrackets)throw new SyntaxError(f("closing","}"));N.output=i.escapeLast(N.output,"{"),Y("braces")}if(!0===n.strictSlashes||"star"!==q.type&&"bracket"!==q.type||Q({type:"maybe_slash",value:"",output:`${w}?`}),!0===N.backtrack){N.output="";for(const e of N.tokens)N.output+=null!=e.output?e.output:e.value,e.suffix&&(N.output+=e.suffix)}return N};d.fastpaths=(e,t)=>{const n={...t},s="number"==typeof n.maxLength?Math.min(o,n.maxLength):o,a=e.length;if(a>s)throw new SyntaxError(`Input length: ${a}, exceeds maximum allowed length: ${s}`);e=u[e]||e;const c=i.isWindows(t),{DOT_LITERAL:l,SLASH_LITERAL:f,ONE_CHAR:d,DOTS_SLASH:p,NO_DOT:h,NO_DOTS:g,NO_DOTS_SLASH:m,STAR:y,START_ANCHOR:v}=r.globChars(c),b=n.dot?g:h,S=n.dot?m:h,E=n.capture?"":"?:";let x=!0===n.bash?".*?":y;n.capture&&(x=`(${x})`);const w=e=>!0===e.noglobstar?x:`(${E}(?:(?!${v}${e.dot?p:l}).)*?)`,_=e=>{switch(e){case"*":return`${b}${d}${x}`;case".*":return`${l}${d}${x}`;case"*.*":return`${b}${x}${l}${d}${x}`;case"*/*":return`${b}${x}${f}${d}${S}${x}`;case"**":return b+w(n);case"**/*":return`(?:${b}${w(n)}${f})?${S}${d}${x}`;case"**/*.*":return`(?:${b}${w(n)}${f})?${S}${x}${l}${d}${x}`;case"**/.*":return`(?:${b}${w(n)}${f})?${l}${d}${x}`;default:{const t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;const n=_(t[1]);if(!n)return;return n+l+t[2]}}},O=i.removePrefix(e,{negated:!1,prefix:""});let C=_(O);return C&&!0!==n.strictSlashes&&(C+=`${f}?`),C},e.exports=d},32595:(e,t,n)=>{"use strict";const r=n(71017),i=n(4933),o=n(52902),s=n(53338),a=n(47411),c=(e,t,n=!1)=>{if(Array.isArray(e)){const r=e.map((e=>c(e,t,n))),i=e=>{for(const t of r){const n=t(e);if(n)return n}return!1};return i}const r=(i=e)&&"object"==typeof i&&!Array.isArray(i)&&e.tokens&&e.input;var i;if(""===e||"string"!=typeof e&&!r)throw new TypeError("Expected pattern to be a non-empty string");const o=t||{},a=s.isWindows(t),u=r?c.compileRe(e,t):c.makeRe(e,t,!1,!0),l=u.state;delete u.state;let f=()=>!1;if(o.ignore){const e={...t,ignore:null,onMatch:null,onResult:null};f=c(o.ignore,e,n)}const d=(n,r=!1)=>{const{isMatch:i,match:s,output:d}=c.test(n,u,t,{glob:e,posix:a}),p={glob:e,state:l,regex:u,posix:a,input:n,output:d,match:s,isMatch:i};return"function"==typeof o.onResult&&o.onResult(p),!1===i?(p.isMatch=!1,!!r&&p):f(n)?("function"==typeof o.onIgnore&&o.onIgnore(p),p.isMatch=!1,!!r&&p):("function"==typeof o.onMatch&&o.onMatch(p),!r||p)};return n&&(d.state=l),d};c.test=(e,t,n,{glob:r,posix:i}={})=>{if("string"!=typeof e)throw new TypeError("Expected input to be a string");if(""===e)return{isMatch:!1,output:""};const o=n||{},a=o.format||(i?s.toPosixSlashes:null);let u=e===r,l=u&&a?a(e):e;return!1===u&&(l=a?a(e):e,u=l===r),!1!==u&&!0!==o.capture||(u=!0===o.matchBase||!0===o.basename?c.matchBase(e,t,n,i):t.exec(l)),{isMatch:Boolean(u),match:u,output:l}},c.matchBase=(e,t,n,i=s.isWindows(n))=>(t instanceof RegExp?t:c.makeRe(t,n)).test(r.basename(e)),c.isMatch=(e,t,n)=>c(t,n)(e),c.parse=(e,t)=>Array.isArray(e)?e.map((e=>c.parse(e,t))):o(e,{...t,fastpaths:!1}),c.scan=(e,t)=>i(e,t),c.compileRe=(e,t,n=!1,r=!1)=>{if(!0===n)return e.output;const i=t||{},o=i.contains?"":"^",s=i.contains?"":"$";let a=`${o}(?:${e.output})${s}`;e&&!0===e.negated&&(a=`^(?!${a}).*$`);const u=c.toRegex(a,t);return!0===r&&(u.state=e),u},c.makeRe=(e,t={},n=!1,r=!1)=>{if(!e||"string"!=typeof e)throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return!1===t.fastpaths||"."!==e[0]&&"*"!==e[0]||(i.output=o.fastpaths(e,t)),i.output||(i=o(e,t)),c.compileRe(i,t,n,r)},c.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/$^/}},c.constants=a,e.exports=c},4933:(e,t,n)=>{"use strict";const r=n(53338),{CHAR_ASTERISK:i,CHAR_AT:o,CHAR_BACKWARD_SLASH:s,CHAR_COMMA:a,CHAR_DOT:c,CHAR_EXCLAMATION_MARK:u,CHAR_FORWARD_SLASH:l,CHAR_LEFT_CURLY_BRACE:f,CHAR_LEFT_PARENTHESES:d,CHAR_LEFT_SQUARE_BRACKET:p,CHAR_PLUS:h,CHAR_QUESTION_MARK:g,CHAR_RIGHT_CURLY_BRACE:m,CHAR_RIGHT_PARENTHESES:y,CHAR_RIGHT_SQUARE_BRACKET:v}=n(47411),b=e=>e===l||e===s,S=e=>{!0!==e.isPrefix&&(e.depth=e.isGlobstar?1/0:1)};e.exports=(e,t)=>{const n=t||{},E=e.length-1,x=!0===n.parts||!0===n.scanToEnd,w=[],_=[],O=[];let C,D,A=e,P=-1,T=0,R=0,k=!1,F=!1,M=!1,j=!1,I=!1,N=!1,L=!1,B=!1,W=!1,U=!1,q=0,$={value:"",depth:0,isGlob:!1};const z=()=>P>=E,G=()=>(C=D,A.charCodeAt(++P));for(;P0&&(K=A.slice(0,T),A=A.slice(T),R-=T),H&&!0===M&&R>0?(H=A.slice(0,R),J=A.slice(R)):!0===M?(H="",J=A):H=A,H&&""!==H&&"/"!==H&&H!==A&&b(H.charCodeAt(H.length-1))&&(H=H.slice(0,-1)),!0===n.unescape&&(J&&(J=r.removeBackslashes(J)),H&&!0===L&&(H=r.removeBackslashes(H)));const X={prefix:K,input:e,start:T,base:H,glob:J,isBrace:k,isBracket:F,isGlob:M,isExtglob:j,isGlobstar:I,negated:B,negatedExtglob:W};if(!0===n.tokens&&(X.maxDepth=0,b(D)||_.push($),X.tokens=_),!0===n.parts||!0===n.tokens){let t;for(let r=0;r{"use strict";const r=n(71017),i="win32"===process.platform,{REGEX_BACKSLASH:o,REGEX_REMOVE_BACKSLASH:s,REGEX_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_GLOBAL:c}=n(47411);t.isObject=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),t.hasRegexChars=e=>a.test(e),t.isRegexChar=e=>1===e.length&&t.hasRegexChars(e),t.escapeRegex=e=>e.replace(c,"\\$1"),t.toPosixSlashes=e=>e.replace(o,"/"),t.removeBackslashes=e=>e.replace(s,(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.isWindows=e=>e&&"boolean"==typeof e.windows?e.windows:!0===i||"\\"===r.sep,t.escapeLast=(e,n,r)=>{const i=e.lastIndexOf(n,r);return-1===i?e:"\\"===e[i-1]?t.escapeLast(e,n,i-1):`${e.slice(0,i)}\\${e.slice(i)}`},t.removePrefix=(e,t={})=>{let n=e;return n.startsWith("./")&&(n=n.slice(2),t.prefix="./"),n},t.wrapOutput=(e,t={},n={})=>{let r=`${n.contains?"":"^"}(?:${e})${n.contains?"":"$"}`;return!0===t.negated&&(r=`(?:^(?!${r}).*$)`),r}},34076:e=>{"use strict";var t,n="";e.exports=function(e,r){if("string"!=typeof e)throw new TypeError("expected a string");if(1===r)return e;if(2===r)return e+e;var i=e.length*r;if(t!==e||void 0===t)t=e,n="";else if(n.length>=i)return n.substr(0,i);for(;i>n.length&&r>1;)1&r&&(n+=e),r>>=1,e+=e;return n=(n+=e).substr(0,i)}},16748:(e,t,n)=>{"use strict";const r=n(71017),i=n(98188),o=n(57147),s=(e,t,n)=>{if("string"!=typeof e)throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof e}\``);if("string"!=typeof t)throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof t}\``);try{e=o.realpathSync(e)}catch(t){if("ENOENT"!==t.code){if(n)return;throw t}e=r.resolve(e)}const s=r.join(e,"noop.js"),a=()=>i._resolveFilename(t,{id:s,filename:s,paths:i._nodeModulePaths(e)});if(n)try{return a()}catch(e){return}return a()};e.exports=(e,t)=>s(e,t),e.exports.silent=(e,t)=>s(e,t,!0)},1916:(e,t,n)=>{"use strict";const r=n(71017),i=n(4783),o=e=>{try{return n(86336).resolve(r.join(i.yarn.packages,e))}catch(t){return n(86336).resolve(r.join(i.npm.packages,e))}};e.exports=o,e.exports.silent=e=>{try{return o(e)}catch(e){return}}},86336:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=86336,e.exports=t},80977:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.interval=t.iif=t.generate=t.fromEventPattern=t.fromEvent=t.from=t.forkJoin=t.empty=t.defer=t.connectable=t.concat=t.combineLatest=t.bindNodeCallback=t.bindCallback=t.UnsubscriptionError=t.TimeoutError=t.SequenceError=t.ObjectUnsubscribedError=t.NotFoundError=t.EmptyError=t.ArgumentOutOfRangeError=t.firstValueFrom=t.lastValueFrom=t.isObservable=t.identity=t.noop=t.pipe=t.NotificationKind=t.Notification=t.Subscriber=t.Subscription=t.Scheduler=t.VirtualAction=t.VirtualTimeScheduler=t.animationFrameScheduler=t.animationFrame=t.queueScheduler=t.queue=t.asyncScheduler=t.async=t.asapScheduler=t.asap=t.AsyncSubject=t.ReplaySubject=t.BehaviorSubject=t.Subject=t.animationFrames=t.observable=t.ConnectableObservable=t.Observable=void 0,t.filter=t.expand=t.exhaustMap=t.exhaustAll=t.exhaust=t.every=t.endWith=t.elementAt=t.distinctUntilKeyChanged=t.distinctUntilChanged=t.distinct=t.dematerialize=t.delayWhen=t.delay=t.defaultIfEmpty=t.debounceTime=t.debounce=t.count=t.connect=t.concatWith=t.concatMapTo=t.concatMap=t.concatAll=t.combineLatestWith=t.combineLatestAll=t.combineAll=t.catchError=t.bufferWhen=t.bufferToggle=t.bufferTime=t.bufferCount=t.buffer=t.auditTime=t.audit=t.config=t.NEVER=t.EMPTY=t.scheduled=t.zip=t.using=t.timer=t.throwError=t.range=t.race=t.partition=t.pairs=t.onErrorResumeNext=t.of=t.never=t.merge=void 0,t.switchMapTo=t.switchMap=t.switchAll=t.subscribeOn=t.startWith=t.skipWhile=t.skipUntil=t.skipLast=t.skip=t.single=t.shareReplay=t.share=t.sequenceEqual=t.scan=t.sampleTime=t.sample=t.refCount=t.retryWhen=t.retry=t.repeatWhen=t.repeat=t.reduce=t.raceWith=t.publishReplay=t.publishLast=t.publishBehavior=t.publish=t.pluck=t.pairwise=t.observeOn=t.multicast=t.min=t.mergeWith=t.mergeScan=t.mergeMapTo=t.mergeMap=t.flatMap=t.mergeAll=t.max=t.materialize=t.mapTo=t.map=t.last=t.isEmpty=t.ignoreElements=t.groupBy=t.first=t.findIndex=t.find=t.finalize=void 0,t.zipWith=t.zipAll=t.withLatestFrom=t.windowWhen=t.windowToggle=t.windowTime=t.windowCount=t.window=t.toArray=t.timestamp=t.timeoutWith=t.timeout=t.timeInterval=t.throwIfEmpty=t.throttleTime=t.throttle=t.tap=t.takeWhile=t.takeUntil=t.takeLast=t.take=t.switchScan=void 0;var o=n(64174);Object.defineProperty(t,"Observable",{enumerable:!0,get:function(){return o.Observable}});var s=n(87165);Object.defineProperty(t,"ConnectableObservable",{enumerable:!0,get:function(){return s.ConnectableObservable}});var a=n(34595);Object.defineProperty(t,"observable",{enumerable:!0,get:function(){return a.observable}});var c=n(12447);Object.defineProperty(t,"animationFrames",{enumerable:!0,get:function(){return c.animationFrames}});var u=n(55294);Object.defineProperty(t,"Subject",{enumerable:!0,get:function(){return u.Subject}});var l=n(61577);Object.defineProperty(t,"BehaviorSubject",{enumerable:!0,get:function(){return l.BehaviorSubject}});var f=n(68806);Object.defineProperty(t,"ReplaySubject",{enumerable:!0,get:function(){return f.ReplaySubject}});var d=n(69960);Object.defineProperty(t,"AsyncSubject",{enumerable:!0,get:function(){return d.AsyncSubject}});var p=n(93769);Object.defineProperty(t,"asap",{enumerable:!0,get:function(){return p.asap}}),Object.defineProperty(t,"asapScheduler",{enumerable:!0,get:function(){return p.asapScheduler}});var h=n(17152);Object.defineProperty(t,"async",{enumerable:!0,get:function(){return h.async}}),Object.defineProperty(t,"asyncScheduler",{enumerable:!0,get:function(){return h.asyncScheduler}});var g=n(84093);Object.defineProperty(t,"queue",{enumerable:!0,get:function(){return g.queue}}),Object.defineProperty(t,"queueScheduler",{enumerable:!0,get:function(){return g.queueScheduler}});var m=n(88989);Object.defineProperty(t,"animationFrame",{enumerable:!0,get:function(){return m.animationFrame}}),Object.defineProperty(t,"animationFrameScheduler",{enumerable:!0,get:function(){return m.animationFrameScheduler}});var y=n(12929);Object.defineProperty(t,"VirtualTimeScheduler",{enumerable:!0,get:function(){return y.VirtualTimeScheduler}}),Object.defineProperty(t,"VirtualAction",{enumerable:!0,get:function(){return y.VirtualAction}});var v=n(86949);Object.defineProperty(t,"Scheduler",{enumerable:!0,get:function(){return v.Scheduler}});var b=n(44666);Object.defineProperty(t,"Subscription",{enumerable:!0,get:function(){return b.Subscription}});var S=n(7747);Object.defineProperty(t,"Subscriber",{enumerable:!0,get:function(){return S.Subscriber}});var E=n(79828);Object.defineProperty(t,"Notification",{enumerable:!0,get:function(){return E.Notification}}),Object.defineProperty(t,"NotificationKind",{enumerable:!0,get:function(){return E.NotificationKind}});var x=n(65250);Object.defineProperty(t,"pipe",{enumerable:!0,get:function(){return x.pipe}});var w=n(37116);Object.defineProperty(t,"noop",{enumerable:!0,get:function(){return w.noop}});var _=n(98987);Object.defineProperty(t,"identity",{enumerable:!0,get:function(){return _.identity}});var O=n(83659);Object.defineProperty(t,"isObservable",{enumerable:!0,get:function(){return O.isObservable}});var C=n(74798);Object.defineProperty(t,"lastValueFrom",{enumerable:!0,get:function(){return C.lastValueFrom}});var D=n(77327);Object.defineProperty(t,"firstValueFrom",{enumerable:!0,get:function(){return D.firstValueFrom}});var A=n(19216);Object.defineProperty(t,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return A.ArgumentOutOfRangeError}});var P=n(99088);Object.defineProperty(t,"EmptyError",{enumerable:!0,get:function(){return P.EmptyError}});var T=n(25722);Object.defineProperty(t,"NotFoundError",{enumerable:!0,get:function(){return T.NotFoundError}});var R=n(68499);Object.defineProperty(t,"ObjectUnsubscribedError",{enumerable:!0,get:function(){return R.ObjectUnsubscribedError}});var k=n(57298);Object.defineProperty(t,"SequenceError",{enumerable:!0,get:function(){return k.SequenceError}});var F=n(54485);Object.defineProperty(t,"TimeoutError",{enumerable:!0,get:function(){return F.TimeoutError}});var M=n(54043);Object.defineProperty(t,"UnsubscriptionError",{enumerable:!0,get:function(){return M.UnsubscriptionError}});var j=n(56238);Object.defineProperty(t,"bindCallback",{enumerable:!0,get:function(){return j.bindCallback}});var I=n(92375);Object.defineProperty(t,"bindNodeCallback",{enumerable:!0,get:function(){return I.bindNodeCallback}});var N=n(40508);Object.defineProperty(t,"combineLatest",{enumerable:!0,get:function(){return N.combineLatest}});var L=n(3364);Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return L.concat}});var B=n(15360);Object.defineProperty(t,"connectable",{enumerable:!0,get:function(){return B.connectable}});var W=n(89623);Object.defineProperty(t,"defer",{enumerable:!0,get:function(){return W.defer}});var U=n(26929);Object.defineProperty(t,"empty",{enumerable:!0,get:function(){return U.empty}});var q=n(69220);Object.defineProperty(t,"forkJoin",{enumerable:!0,get:function(){return q.forkJoin}});var $=n(44417);Object.defineProperty(t,"from",{enumerable:!0,get:function(){return $.from}});var z=n(59671);Object.defineProperty(t,"fromEvent",{enumerable:!0,get:function(){return z.fromEvent}});var G=n(37357);Object.defineProperty(t,"fromEventPattern",{enumerable:!0,get:function(){return G.fromEventPattern}});var H=n(3482);Object.defineProperty(t,"generate",{enumerable:!0,get:function(){return H.generate}});var K=n(550);Object.defineProperty(t,"iif",{enumerable:!0,get:function(){return K.iif}});var J=n(33154);Object.defineProperty(t,"interval",{enumerable:!0,get:function(){return J.interval}});var X=n(2039);Object.defineProperty(t,"merge",{enumerable:!0,get:function(){return X.merge}});var V=n(2980);Object.defineProperty(t,"never",{enumerable:!0,get:function(){return V.never}});var Y=n(61377);Object.defineProperty(t,"of",{enumerable:!0,get:function(){return Y.of}});var Q=n(38362);Object.defineProperty(t,"onErrorResumeNext",{enumerable:!0,get:function(){return Q.onErrorResumeNext}});var Z=n(90968);Object.defineProperty(t,"pairs",{enumerable:!0,get:function(){return Z.pairs}});var ee=n(36394);Object.defineProperty(t,"partition",{enumerable:!0,get:function(){return ee.partition}});var te=n(76849);Object.defineProperty(t,"race",{enumerable:!0,get:function(){return te.race}});var ne=n(57284);Object.defineProperty(t,"range",{enumerable:!0,get:function(){return ne.range}});var re=n(30040);Object.defineProperty(t,"throwError",{enumerable:!0,get:function(){return re.throwError}});var ie=n(18069);Object.defineProperty(t,"timer",{enumerable:!0,get:function(){return ie.timer}});var oe=n(63348);Object.defineProperty(t,"using",{enumerable:!0,get:function(){return oe.using}});var se=n(74981);Object.defineProperty(t,"zip",{enumerable:!0,get:function(){return se.zip}});var ae=n(42862);Object.defineProperty(t,"scheduled",{enumerable:!0,get:function(){return ae.scheduled}});var ce=n(26929);Object.defineProperty(t,"EMPTY",{enumerable:!0,get:function(){return ce.EMPTY}});var ue=n(2980);Object.defineProperty(t,"NEVER",{enumerable:!0,get:function(){return ue.NEVER}}),i(n(53659),t);var le=n(19179);Object.defineProperty(t,"config",{enumerable:!0,get:function(){return le.config}});var fe=n(22605);Object.defineProperty(t,"audit",{enumerable:!0,get:function(){return fe.audit}});var de=n(24152);Object.defineProperty(t,"auditTime",{enumerable:!0,get:function(){return de.auditTime}});var pe=n(35149);Object.defineProperty(t,"buffer",{enumerable:!0,get:function(){return pe.buffer}});var he=n(33189);Object.defineProperty(t,"bufferCount",{enumerable:!0,get:function(){return he.bufferCount}});var ge=n(99459);Object.defineProperty(t,"bufferTime",{enumerable:!0,get:function(){return ge.bufferTime}});var me=n(68145);Object.defineProperty(t,"bufferToggle",{enumerable:!0,get:function(){return me.bufferToggle}});var ye=n(27764);Object.defineProperty(t,"bufferWhen",{enumerable:!0,get:function(){return ye.bufferWhen}});var ve=n(73056);Object.defineProperty(t,"catchError",{enumerable:!0,get:function(){return ve.catchError}});var be=n(10498);Object.defineProperty(t,"combineAll",{enumerable:!0,get:function(){return be.combineAll}});var Se=n(97484);Object.defineProperty(t,"combineLatestAll",{enumerable:!0,get:function(){return Se.combineLatestAll}});var Ee=n(64755);Object.defineProperty(t,"combineLatestWith",{enumerable:!0,get:function(){return Ee.combineLatestWith}});var xe=n(90482);Object.defineProperty(t,"concatAll",{enumerable:!0,get:function(){return xe.concatAll}});var we=n(31774);Object.defineProperty(t,"concatMap",{enumerable:!0,get:function(){return we.concatMap}});var _e=n(63977);Object.defineProperty(t,"concatMapTo",{enumerable:!0,get:function(){return _e.concatMapTo}});var Oe=n(67672);Object.defineProperty(t,"concatWith",{enumerable:!0,get:function(){return Oe.concatWith}});var Ce=n(65561);Object.defineProperty(t,"connect",{enumerable:!0,get:function(){return Ce.connect}});var De=n(78259);Object.defineProperty(t,"count",{enumerable:!0,get:function(){return De.count}});var Ae=n(23473);Object.defineProperty(t,"debounce",{enumerable:!0,get:function(){return Ae.debounce}});var Pe=n(78390);Object.defineProperty(t,"debounceTime",{enumerable:!0,get:function(){return Pe.debounceTime}});var Te=n(24562);Object.defineProperty(t,"defaultIfEmpty",{enumerable:!0,get:function(){return Te.defaultIfEmpty}});var Re=n(58151);Object.defineProperty(t,"delay",{enumerable:!0,get:function(){return Re.delay}});var ke=n(40744);Object.defineProperty(t,"delayWhen",{enumerable:!0,get:function(){return ke.delayWhen}});var Fe=n(8590);Object.defineProperty(t,"dematerialize",{enumerable:!0,get:function(){return Fe.dematerialize}});var Me=n(28406);Object.defineProperty(t,"distinct",{enumerable:!0,get:function(){return Me.distinct}});var je=n(37300);Object.defineProperty(t,"distinctUntilChanged",{enumerable:!0,get:function(){return je.distinctUntilChanged}});var Ie=n(84405);Object.defineProperty(t,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return Ie.distinctUntilKeyChanged}});var Ne=n(42787);Object.defineProperty(t,"elementAt",{enumerable:!0,get:function(){return Ne.elementAt}});var Le=n(11665);Object.defineProperty(t,"endWith",{enumerable:!0,get:function(){return Le.endWith}});var Be=n(41511);Object.defineProperty(t,"every",{enumerable:!0,get:function(){return Be.every}});var We=n(42208);Object.defineProperty(t,"exhaust",{enumerable:!0,get:function(){return We.exhaust}});var Ue=n(62008);Object.defineProperty(t,"exhaustAll",{enumerable:!0,get:function(){return Ue.exhaustAll}});var qe=n(84019);Object.defineProperty(t,"exhaustMap",{enumerable:!0,get:function(){return qe.exhaustMap}});var $e=n(29101);Object.defineProperty(t,"expand",{enumerable:!0,get:function(){return $e.expand}});var ze=n(47261);Object.defineProperty(t,"filter",{enumerable:!0,get:function(){return ze.filter}});var Ge=n(55381);Object.defineProperty(t,"finalize",{enumerable:!0,get:function(){return Ge.finalize}});var He=n(24127);Object.defineProperty(t,"find",{enumerable:!0,get:function(){return He.find}});var Ke=n(69727);Object.defineProperty(t,"findIndex",{enumerable:!0,get:function(){return Ke.findIndex}});var Je=n(87418);Object.defineProperty(t,"first",{enumerable:!0,get:function(){return Je.first}});var Xe=n(7533);Object.defineProperty(t,"groupBy",{enumerable:!0,get:function(){return Xe.groupBy}});var Ve=n(89186);Object.defineProperty(t,"ignoreElements",{enumerable:!0,get:function(){return Ve.ignoreElements}});var Ye=n(27757);Object.defineProperty(t,"isEmpty",{enumerable:!0,get:function(){return Ye.isEmpty}});var Qe=n(83374);Object.defineProperty(t,"last",{enumerable:!0,get:function(){return Qe.last}});var Ze=n(56269);Object.defineProperty(t,"map",{enumerable:!0,get:function(){return Ze.map}});var et=n(55471);Object.defineProperty(t,"mapTo",{enumerable:!0,get:function(){return et.mapTo}});var tt=n(21160);Object.defineProperty(t,"materialize",{enumerable:!0,get:function(){return tt.materialize}});var nt=n(91890);Object.defineProperty(t,"max",{enumerable:!0,get:function(){return nt.max}});var rt=n(40400);Object.defineProperty(t,"mergeAll",{enumerable:!0,get:function(){return rt.mergeAll}});var it=n(89121);Object.defineProperty(t,"flatMap",{enumerable:!0,get:function(){return it.flatMap}});var ot=n(36086);Object.defineProperty(t,"mergeMap",{enumerable:!0,get:function(){return ot.mergeMap}});var st=n(71244);Object.defineProperty(t,"mergeMapTo",{enumerable:!0,get:function(){return st.mergeMapTo}});var at=n(23699);Object.defineProperty(t,"mergeScan",{enumerable:!0,get:function(){return at.mergeScan}});var ct=n(98220);Object.defineProperty(t,"mergeWith",{enumerable:!0,get:function(){return ct.mergeWith}});var ut=n(90770);Object.defineProperty(t,"min",{enumerable:!0,get:function(){return ut.min}});var lt=n(68413);Object.defineProperty(t,"multicast",{enumerable:!0,get:function(){return lt.multicast}});var ft=n(89314);Object.defineProperty(t,"observeOn",{enumerable:!0,get:function(){return ft.observeOn}});var dt=n(31186);Object.defineProperty(t,"pairwise",{enumerable:!0,get:function(){return dt.pairwise}});var pt=n(39532);Object.defineProperty(t,"pluck",{enumerable:!0,get:function(){return pt.pluck}});var ht=n(5745);Object.defineProperty(t,"publish",{enumerable:!0,get:function(){return ht.publish}});var gt=n(48103);Object.defineProperty(t,"publishBehavior",{enumerable:!0,get:function(){return gt.publishBehavior}});var mt=n(22610);Object.defineProperty(t,"publishLast",{enumerable:!0,get:function(){return mt.publishLast}});var yt=n(45299);Object.defineProperty(t,"publishReplay",{enumerable:!0,get:function(){return yt.publishReplay}});var vt=n(73820);Object.defineProperty(t,"raceWith",{enumerable:!0,get:function(){return vt.raceWith}});var bt=n(78083);Object.defineProperty(t,"reduce",{enumerable:!0,get:function(){return bt.reduce}});var St=n(72588);Object.defineProperty(t,"repeat",{enumerable:!0,get:function(){return St.repeat}});var Et=n(79249);Object.defineProperty(t,"repeatWhen",{enumerable:!0,get:function(){return Et.repeatWhen}});var xt=n(74486);Object.defineProperty(t,"retry",{enumerable:!0,get:function(){return xt.retry}});var wt=n(59112);Object.defineProperty(t,"retryWhen",{enumerable:!0,get:function(){return wt.retryWhen}});var _t=n(14508);Object.defineProperty(t,"refCount",{enumerable:!0,get:function(){return _t.refCount}});var Ot=n(20778);Object.defineProperty(t,"sample",{enumerable:!0,get:function(){return Ot.sample}});var Ct=n(67701);Object.defineProperty(t,"sampleTime",{enumerable:!0,get:function(){return Ct.sampleTime}});var Dt=n(18167);Object.defineProperty(t,"scan",{enumerable:!0,get:function(){return Dt.scan}});var At=n(57821);Object.defineProperty(t,"sequenceEqual",{enumerable:!0,get:function(){return At.sequenceEqual}});var Pt=n(52645);Object.defineProperty(t,"share",{enumerable:!0,get:function(){return Pt.share}});var Tt=n(27566);Object.defineProperty(t,"shareReplay",{enumerable:!0,get:function(){return Tt.shareReplay}});var Rt=n(44610);Object.defineProperty(t,"single",{enumerable:!0,get:function(){return Rt.single}});var kt=n(75735);Object.defineProperty(t,"skip",{enumerable:!0,get:function(){return kt.skip}});var Ft=n(63252);Object.defineProperty(t,"skipLast",{enumerable:!0,get:function(){return Ft.skipLast}});var Mt=n(81779);Object.defineProperty(t,"skipUntil",{enumerable:!0,get:function(){return Mt.skipUntil}});var jt=n(45454);Object.defineProperty(t,"skipWhile",{enumerable:!0,get:function(){return jt.skipWhile}});var It=n(1923);Object.defineProperty(t,"startWith",{enumerable:!0,get:function(){return It.startWith}});var Nt=n(79130);Object.defineProperty(t,"subscribeOn",{enumerable:!0,get:function(){return Nt.subscribeOn}});var Lt=n(91695);Object.defineProperty(t,"switchAll",{enumerable:!0,get:function(){return Lt.switchAll}});var Bt=n(66649);Object.defineProperty(t,"switchMap",{enumerable:!0,get:function(){return Bt.switchMap}});var Wt=n(83054);Object.defineProperty(t,"switchMapTo",{enumerable:!0,get:function(){return Wt.switchMapTo}});var Ut=n(62890);Object.defineProperty(t,"switchScan",{enumerable:!0,get:function(){return Ut.switchScan}});var qt=n(29438);Object.defineProperty(t,"take",{enumerable:!0,get:function(){return qt.take}});var $t=n(74125);Object.defineProperty(t,"takeLast",{enumerable:!0,get:function(){return $t.takeLast}});var zt=n(37549);Object.defineProperty(t,"takeUntil",{enumerable:!0,get:function(){return zt.takeUntil}});var Gt=n(85884);Object.defineProperty(t,"takeWhile",{enumerable:!0,get:function(){return Gt.takeWhile}});var Ht=n(5383);Object.defineProperty(t,"tap",{enumerable:!0,get:function(){return Ht.tap}});var Kt=n(11016);Object.defineProperty(t,"throttle",{enumerable:!0,get:function(){return Kt.throttle}});var Jt=n(90567);Object.defineProperty(t,"throttleTime",{enumerable:!0,get:function(){return Jt.throttleTime}});var Xt=n(21332);Object.defineProperty(t,"throwIfEmpty",{enumerable:!0,get:function(){return Xt.throwIfEmpty}});var Vt=n(51149);Object.defineProperty(t,"timeInterval",{enumerable:!0,get:function(){return Vt.timeInterval}});var Yt=n(54485);Object.defineProperty(t,"timeout",{enumerable:!0,get:function(){return Yt.timeout}});var Qt=n(94972);Object.defineProperty(t,"timeoutWith",{enumerable:!0,get:function(){return Qt.timeoutWith}});var Zt=n(11275);Object.defineProperty(t,"timestamp",{enumerable:!0,get:function(){return Zt.timestamp}});var en=n(29867);Object.defineProperty(t,"toArray",{enumerable:!0,get:function(){return en.toArray}});var tn=n(17649);Object.defineProperty(t,"window",{enumerable:!0,get:function(){return tn.window}});var nn=n(75612);Object.defineProperty(t,"windowCount",{enumerable:!0,get:function(){return nn.windowCount}});var rn=n(59972);Object.defineProperty(t,"windowTime",{enumerable:!0,get:function(){return rn.windowTime}});var on=n(49593);Object.defineProperty(t,"windowToggle",{enumerable:!0,get:function(){return on.windowToggle}});var sn=n(26307);Object.defineProperty(t,"windowWhen",{enumerable:!0,get:function(){return sn.windowWhen}});var an=n(35512);Object.defineProperty(t,"withLatestFrom",{enumerable:!0,get:function(){return an.withLatestFrom}});var cn=n(81221);Object.defineProperty(t,"zipAll",{enumerable:!0,get:function(){return cn.zipAll}});var un=n(97594);Object.defineProperty(t,"zipWith",{enumerable:!0,get:function(){return un.zipWith}})},69960:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncSubject=void 0;var o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._value=null,t._hasValue=!1,t._isComplete=!1,t}return i(t,e),t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t._hasValue,i=t._value,o=t.thrownError,s=t.isStopped,a=t._isComplete;n?e.error(o):(s||a)&&(r&&e.next(i),e.complete())},t.prototype.next=function(e){this.isStopped||(this._value=e,this._hasValue=!0)},t.prototype.complete=function(){var t=this,n=t._hasValue,r=t._value;t._isComplete||(this._isComplete=!0,n&&e.prototype.next.call(this,r),e.prototype.complete.call(this))},t}(n(55294).Subject);t.AsyncSubject=o},61577:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.BehaviorSubject=void 0;var o=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return i(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){var e=this,t=e.hasError,n=e.thrownError,r=e._value;if(t)throw n;return this._throwIfClosed(),r},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(n(55294).Subject);t.BehaviorSubject=o},79828:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.observeNotification=t.Notification=t.NotificationKind=void 0;var r,i=n(26929),o=n(61377),s=n(30040),a=n(42935);(r=t.NotificationKind||(t.NotificationKind={})).NEXT="N",r.ERROR="E",r.COMPLETE="C";var c=function(){function e(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}return e.prototype.observe=function(e){return u(this,e)},e.prototype.do=function(e,t,n){var r=this,i=r.kind,o=r.value,s=r.error;return"N"===i?null==e?void 0:e(o):"E"===i?null==t?void 0:t(s):null==n?void 0:n()},e.prototype.accept=function(e,t,n){var r;return a.isFunction(null===(r=e)||void 0===r?void 0:r.next)?this.observe(e):this.do(e,t,n)},e.prototype.toObservable=function(){var e=this,t=e.kind,n=e.value,r=e.error,a="N"===t?o.of(n):"E"===t?s.throwError((function(){return r})):"C"===t?i.EMPTY:0;if(!a)throw new TypeError("Unexpected notification kind "+t);return a},e.createNext=function(t){return new e("N",t)},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e}();function u(e,t){var n,r,i,o=e,s=o.kind,a=o.value,c=o.error;if("string"!=typeof s)throw new TypeError('Invalid notification, missing "kind"');"N"===s?null===(n=t.next)||void 0===n||n.call(t,a):"E"===s?null===(r=t.error)||void 0===r||r.call(t,c):null===(i=t.complete)||void 0===i||i.call(t)}t.Notification=c,t.observeNotification=u},13005:(e,t)=>{"use strict";function n(e,t,n){return{kind:e,value:t,error:n}}Object.defineProperty(t,"__esModule",{value:!0}),t.createNotification=t.nextNotification=t.errorNotification=t.COMPLETE_NOTIFICATION=void 0,t.COMPLETE_NOTIFICATION=n("C",void 0,void 0),t.errorNotification=function(e){return n("E",void 0,e)},t.nextNotification=function(e){return n("N",e,void 0)},t.createNotification=n},64174:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Observable=void 0;var r=n(7747),i=n(44666),o=n(34595),s=n(65250),a=n(19179),c=n(42935),u=n(10977),l=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var o,s=this,a=(o=e)&&o instanceof r.Subscriber||function(e){return e&&c.isFunction(e.next)&&c.isFunction(e.error)&&c.isFunction(e.complete)}(o)&&i.isSubscription(o)?e:new r.SafeSubscriber(e,t,n);return u.errorContext((function(){var e=s,t=e.operator,n=e.source;a.add(t?t.call(a,n):n?s._subscribe(a):s._trySubscribe(a))})),a},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=f(t))((function(t,i){var o=new r.SafeSubscriber({next:function(t){try{e(t)}catch(e){i(e),o.unsubscribe()}},error:i,complete:t});n.subscribe(o)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[o.observable]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Scheduler=void 0;var r=n(79168),i=function(){function e(t,n){void 0===n&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(n,t)},e.now=r.dateTimestampProvider.now,e}();t.Scheduler=i},55294:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.AnonymousSubject=t.Subject=void 0;var s=n(64174),a=n(44666),c=n(68499),u=n(91291),l=n(10977),f=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return i(t,e),t.prototype.lift=function(e){var t=new d(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new c.ObjectUnsubscribedError},t.prototype.next=function(e){var t=this;l.errorContext((function(){var n,r;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=o(t.currentObservers),s=i.next();!s.done;s=i.next())s.value.next(e)}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}}))},t.prototype.error=function(e){var t=this;l.errorContext((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}}))},t.prototype.complete=function(){var e=this;l.errorContext((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=this,r=n.hasError,i=n.isStopped,o=n.observers;return r||i?a.EMPTY_SUBSCRIPTION:(this.currentObservers=null,o.push(e),new a.Subscription((function(){t.currentObservers=null,u.arrRemove(o,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t.thrownError,i=t.isStopped;n?e.error(r):i&&e.complete()},t.prototype.asObservable=function(){var e=new s.Observable;return e.source=this,e},t.create=function(e,t){return new d(e,t)},t}(s.Observable);t.Subject=f;var d=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return i(t,e),t.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},t.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:a.EMPTY_SUBSCRIPTION},t}(f);t.AnonymousSubject=d},7747:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.EMPTY_OBSERVER=t.SafeSubscriber=t.Subscriber=void 0;var o=n(42935),s=n(44666),a=n(19179),c=n(51600),u=n(37116),l=n(13005),f=n(81577),d=n(10977),p=function(e){function n(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,s.isSubscription(n)&&n.add(r)):r.destination=t.EMPTY_OBSERVER,r}return i(n,e),n.create=function(e,t,n){return new y(e,t,n)},n.prototype.next=function(e){this.isStopped?b(l.nextNotification(e),this):this._next(e)},n.prototype.error=function(e){this.isStopped?b(l.errorNotification(e),this):(this.isStopped=!0,this._error(e))},n.prototype.complete=function(){this.isStopped?b(l.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},n.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},n.prototype._next=function(e){this.destination.next(e)},n.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},n.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},n}(s.Subscription);t.Subscriber=p;var h=Function.prototype.bind;function g(e,t){return h.call(e,t)}var m=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){v(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){v(e)}else v(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){v(e)}},e}(),y=function(e){function t(t,n,r){var i,s,c=e.call(this)||this;return o.isFunction(t)||!t?i={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:c&&a.config.useDeprecatedNextContext?((s=Object.create(t)).unsubscribe=function(){return c.unsubscribe()},i={next:t.next&&g(t.next,s),error:t.error&&g(t.error,s),complete:t.complete&&g(t.complete,s)}):i=t,c.destination=new m(i),c}return i(t,e),t}(p);function v(e){a.config.useDeprecatedSynchronousErrorHandling?d.captureError(e):c.reportUnhandledError(e)}function b(e,t){var n=a.config.onStoppedNotification;n&&f.timeoutProvider.setTimeout((function(){return n(e,t)}))}t.SafeSubscriber=y,t.EMPTY_OBSERVER={closed:!0,next:u.noop,error:function(e){throw e},complete:u.noop}},44666:function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},o=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.config=void 0,t.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},77327:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.firstValueFrom=void 0;var r=n(99088),i=n(7747);t.firstValueFrom=function(e,t){var n="object"==typeof t;return new Promise((function(o,s){var a=new i.SafeSubscriber({next:function(e){o(e),a.unsubscribe()},error:s,complete:function(){n?o(t.defaultValue):s(new r.EmptyError)}});e.subscribe(a)}))}},74798:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lastValueFrom=void 0;var r=n(99088);t.lastValueFrom=function(e,t){var n="object"==typeof t;return new Promise((function(i,o){var s,a=!1;e.subscribe({next:function(e){s=e,a=!0},error:o,complete:function(){a?i(s):n?i(t.defaultValue):o(new r.EmptyError)}})}))}},87165:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectableObservable=void 0;var o=n(64174),s=n(44666),a=n(14508),c=n(37326),u=n(16097),l=function(e){function t(t,n){var r=e.call(this)||this;return r.source=t,r.subjectFactory=n,r._subject=null,r._refCount=0,r._connection=null,u.hasLift(t)&&(r.lift=t.lift),r}return i(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype._teardown=function(){this._refCount=0;var e=this._connection;this._subject=this._connection=null,null==e||e.unsubscribe()},t.prototype.connect=function(){var e=this,t=this._connection;if(!t){t=this._connection=new s.Subscription;var n=this.getSubject();t.add(this.source.subscribe(c.createOperatorSubscriber(n,void 0,(function(){e._teardown(),n.complete()}),(function(t){e._teardown(),n.error(t)}),(function(){return e._teardown()})))),t.closed&&(this._connection=null,t=s.Subscription.EMPTY)}return t},t.prototype.refCount=function(){return a.refCount()(this)},t}(o.Observable);t.ConnectableObservable=l},56238:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bindCallback=void 0;var r=n(89706);t.bindCallback=function(e,t,n){return r.bindCallbackInternals(!1,e,t,n)}},89706:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bindNodeCallback=void 0;var r=n(89706);t.bindNodeCallback=function(e,t,n){return r.bindCallbackInternals(!0,e,t,n)}},40508:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatestInit=t.combineLatest=void 0;var r=n(64174),i=n(82398),o=n(44417),s=n(98987),a=n(9364),c=n(84544),u=n(64800),l=n(37326),f=n(75267);function d(e,t,n){return void 0===n&&(n=s.identity),function(r){p(t,(function(){for(var i=e.length,s=new Array(i),a=i,c=i,u=function(i){p(t,(function(){var u=o.from(e[i],t),f=!1;u.subscribe(l.createOperatorSubscriber(r,(function(e){s[i]=e,f||(f=!0,c--),c||r.next(n(s.slice()))}),(function(){--a||r.complete()})))}),r)},f=0;f{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concat=void 0;var r=n(90482),i=n(84544),o=n(44417);t.concat=function(){for(var e=[],t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.connectable=void 0;var r=n(55294),i=n(64174),o=n(89623),s={connector:function(){return new r.Subject},resetOnDisconnect:!0};t.connectable=function(e,t){void 0===t&&(t=s);var n=null,r=t.connector,a=t.resetOnDisconnect,c=void 0===a||a,u=r(),l=new i.Observable((function(e){return u.subscribe(e)}));return l.connect=function(){return n&&!n.closed||(n=o.defer((function(){return e})).subscribe(u),c&&n.add((function(){return u=r()}))),n},l}},89623:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defer=void 0;var r=n(64174),i=n(16958);t.defer=function(e){return new r.Observable((function(t){i.innerFrom(e()).subscribe(t)}))}},12447:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.animationFrames=void 0;var r=n(64174),i=n(44666),o=n(52261),s=n(29015);function a(e){var t=s.animationFrameProvider.schedule;return new r.Observable((function(n){var r=new i.Subscription,s=e||o.performanceTimestampProvider,a=s.now(),c=function(i){var o=s.now();n.next({timestamp:e?o:i,elapsed:o-a}),n.closed||r.add(t(c))};return r.add(t(c)),r}))}t.animationFrames=function(e){return e?a(e):c};var c=a()},26929:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.empty=t.EMPTY=void 0;var r=n(64174);t.EMPTY=new r.Observable((function(e){return e.complete()})),t.empty=function(e){return e?function(e){return new r.Observable((function(t){return e.schedule((function(){return t.complete()}))}))}(e):t.EMPTY}},69220:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.forkJoin=void 0;var r=n(64174),i=n(82398),o=n(16958),s=n(84544),a=n(37326),c=n(9364),u=n(64800);t.forkJoin=function(){for(var e=[],t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.from=void 0;var r=n(42862),i=n(16958);t.from=function(e,t){return t?r.scheduled(e,t):i.innerFrom(e)}},59671:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(t,"__esModule",{value:!0}),t.fromEvent=void 0;var i=n(16958),o=n(64174),s=n(36086),a=n(5445),c=n(42935),u=n(9364),l=["addListener","removeListener"],f=["addEventListener","removeEventListener"],d=["on","off"];function p(e,t){return function(n){return function(r){return e[n](t,r)}}}t.fromEvent=function e(t,n,h,g){if(c.isFunction(h)&&(g=h,h=void 0),g)return e(t,n,h).pipe(u.mapOneOrManyArgs(g));var m=r(function(e){return c.isFunction(e.addEventListener)&&c.isFunction(e.removeEventListener)}(t)?f.map((function(e){return function(r){return t[e](n,r,h)}})):function(e){return c.isFunction(e.addListener)&&c.isFunction(e.removeListener)}(t)?l.map(p(t,n)):function(e){return c.isFunction(e.on)&&c.isFunction(e.off)}(t)?d.map(p(t,n)):[],2),y=m[0],v=m[1];if(!y&&a.isArrayLike(t))return s.mergeMap((function(t){return e(t,n,h)}))(i.innerFrom(t));if(!y)throw new TypeError("Invalid event target");return new o.Observable((function(e){var t=function(){for(var t=[],n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromEventPattern=void 0;var r=n(64174),i=n(42935),o=n(9364);t.fromEventPattern=function e(t,n,s){return s?e(t,n).pipe(o.mapOneOrManyArgs(s)):new r.Observable((function(e){var r=function(){for(var t=[],n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromSubscribable=void 0;var r=n(64174);t.fromSubscribable=function(e){return new r.Observable((function(t){return e.subscribe(t)}))}},3482:function(e,t,n){"use strict";var r=this&&this.__generator||function(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.iif=void 0;var r=n(89623);t.iif=function(e,t,n){return r.defer((function(){return e()?t:n}))}},16958:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.fromReadableStreamLike=t.fromAsyncIterable=t.fromIterable=t.fromPromise=t.fromArrayLike=t.fromInteropObservable=t.innerFrom=void 0;var a=n(5445),c=n(94283),u=n(64174),l=n(33124),f=n(83260),d=n(17756),p=n(98131),h=n(42221),g=n(42935),m=n(51600),y=n(34595);function v(e){return new u.Observable((function(t){var n=e[y.observable]();if(g.isFunction(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")}))}function b(e){return new u.Observable((function(t){for(var n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.interval=void 0;var r=n(17152),i=n(18069);t.interval=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=r.asyncScheduler),e<0&&(e=0),i.timer(e,e,t)}},2039:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.merge=void 0;var r=n(40400),i=n(16958),o=n(26929),s=n(84544),a=n(44417);t.merge=function(){for(var e=[],t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.never=t.NEVER=void 0;var r=n(64174),i=n(37116);t.NEVER=new r.Observable(i.noop),t.never=function(){return t.NEVER}},61377:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.of=void 0;var r=n(84544),i=n(44417);t.of=function(){for(var e=[],t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onErrorResumeNext=void 0;var r=n(26929),i=n(43821),o=n(35034);t.onErrorResumeNext=function(){for(var e=[],t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pairs=void 0;var r=n(44417);t.pairs=function(e,t){return r.from(Object.entries(e),t)}},36394:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.partition=void 0;var r=n(38781),i=n(47261),o=n(16958);t.partition=function(e,t,n){return[i.filter(t,n)(o.innerFrom(e)),i.filter(r.not(t,n))(o.innerFrom(e))]}},76849:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.raceInit=t.race=void 0;var r=n(64174),i=n(16958),o=n(35034),s=n(37326);function a(e){return function(t){for(var n=[],r=function(r){n.push(i.innerFrom(e[r]).subscribe(s.createOperatorSubscriber(t,(function(e){if(n){for(var i=0;i{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.range=void 0;var r=n(64174),i=n(26929);t.range=function(e,t,n){if(null==t&&(t=e,e=0),t<=0)return i.EMPTY;var o=t+e;return new r.Observable(n?function(t){var r=e;return n.schedule((function(){r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throwError=void 0;var r=n(64174),i=n(42935);t.throwError=function(e,t){var n=i.isFunction(e)?e:function(){return e},o=function(e){return e.error(n())};return new r.Observable(t?function(e){return t.schedule(o,0,e)}:o)}},18069:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timer=void 0;var r=n(64174),i=n(17152),o=n(19668),s=n(14426);t.timer=function(e,t,n){void 0===e&&(e=0),void 0===n&&(n=i.async);var a=-1;return null!=t&&(o.isScheduler(t)?n=t:a=t),new r.Observable((function(t){var r=s.isValidDate(e)?+e-n.now():e;r<0&&(r=0);var i=0;return n.schedule((function(){t.closed||(t.next(i++),0<=a?this.schedule(void 0,a):t.complete())}),r)}))}},63348:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.using=void 0;var r=n(64174),i=n(16958),o=n(26929);t.using=function(e,t){return new r.Observable((function(n){var r=e(),s=t(r);return(s?i.innerFrom(s):o.EMPTY).subscribe(n),function(){r&&r.unsubscribe()}}))}},74981:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.audit=void 0;var r=n(16097),i=n(16958),o=n(37326);t.audit=function(e){return r.operate((function(t,n){var r=!1,s=null,a=null,c=!1,u=function(){if(null==a||a.unsubscribe(),a=null,r){r=!1;var e=s;s=null,n.next(e)}c&&n.complete()},l=function(){a=null,c&&n.complete()};t.subscribe(o.createOperatorSubscriber(n,(function(t){r=!0,s=t,a||i.innerFrom(e(t)).subscribe(a=o.createOperatorSubscriber(n,u,l))}),(function(){c=!0,(!r||!a||a.closed)&&n.complete()})))}))}},24152:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.auditTime=void 0;var r=n(17152),i=n(22605),o=n(18069);t.auditTime=function(e,t){return void 0===t&&(t=r.asyncScheduler),i.audit((function(){return o.timer(e,t)}))}},35149:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buffer=void 0;var r=n(16097),i=n(37116),o=n(37326);t.buffer=function(e){return r.operate((function(t,n){var r=[];return t.subscribe(o.createOperatorSubscriber(n,(function(e){return r.push(e)}),(function(){n.next(r),n.complete()}))),e.subscribe(o.createOperatorSubscriber(n,(function(){var e=r;r=[],n.next(e)}),i.noop)),function(){r=null}}))}},33189:function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.bufferCount=void 0;var i=n(16097),o=n(37326),s=n(91291);t.bufferCount=function(e,t){return void 0===t&&(t=null),t=null!=t?t:e,i.operate((function(n,i){var a=[],c=0;n.subscribe(o.createOperatorSubscriber(i,(function(n){var o,u,l,f,d=null;c++%t==0&&a.push([]);try{for(var p=r(a),h=p.next();!h.done;h=p.next())(y=h.value).push(n),e<=y.length&&(d=null!=d?d:[]).push(y)}catch(e){o={error:e}}finally{try{h&&!h.done&&(u=p.return)&&u.call(p)}finally{if(o)throw o.error}}if(d)try{for(var g=r(d),m=g.next();!m.done;m=g.next()){var y=m.value;s.arrRemove(a,y),i.next(y)}}catch(e){l={error:e}}finally{try{m&&!m.done&&(f=g.return)&&f.call(g)}finally{if(l)throw l.error}}}),(function(){var e,t;try{for(var n=r(a),o=n.next();!o.done;o=n.next()){var s=o.value;i.next(s)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}i.complete()}),void 0,(function(){a=null})))}))}},99459:function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.bufferTime=void 0;var i=n(44666),o=n(16097),s=n(37326),a=n(91291),c=n(17152),u=n(84544),l=n(75267);t.bufferTime=function(e){for(var t,n,f=[],d=1;d=0?l.executeSchedule(n,p,f,h,!0):c=!0,f();var d=s.createOperatorSubscriber(n,(function(e){var t,n,i=o.slice();try{for(var s=r(i),a=s.next();!a.done;a=s.next()){var c=a.value,l=c.buffer;l.push(e),g<=l.length&&u(c)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}}),(function(){for(;null==o?void 0:o.length;)n.next(o.shift().buffer);null==d||d.unsubscribe(),n.complete(),n.unsubscribe()}),void 0,(function(){return o=null}));t.subscribe(d)}))}},68145:function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.bufferToggle=void 0;var i=n(44666),o=n(16097),s=n(16958),a=n(37326),c=n(37116),u=n(91291);t.bufferToggle=function(e,t){return o.operate((function(n,o){var l=[];s.innerFrom(e).subscribe(a.createOperatorSubscriber(o,(function(e){var n=[];l.push(n);var r=new i.Subscription;r.add(s.innerFrom(t(e)).subscribe(a.createOperatorSubscriber(o,(function(){u.arrRemove(l,n),o.next(n),r.unsubscribe()}),c.noop)))}),c.noop)),n.subscribe(a.createOperatorSubscriber(o,(function(e){var t,n;try{for(var i=r(l),o=i.next();!o.done;o=i.next())o.value.push(e)}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}}),(function(){for(;l.length>0;)o.next(l.shift());o.complete()})))}))}},27764:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bufferWhen=void 0;var r=n(16097),i=n(37116),o=n(37326),s=n(16958);t.bufferWhen=function(e){return r.operate((function(t,n){var r=null,a=null,c=function(){null==a||a.unsubscribe();var t=r;r=[],t&&n.next(t),s.innerFrom(e()).subscribe(a=o.createOperatorSubscriber(n,c,i.noop))};c(),t.subscribe(o.createOperatorSubscriber(n,(function(e){return null==r?void 0:r.push(e)}),(function(){r&&n.next(r),n.complete()}),void 0,(function(){return r=a=null})))}))}},73056:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.catchError=void 0;var r=n(16958),i=n(37326),o=n(16097);t.catchError=function e(t){return o.operate((function(n,o){var s,a=null,c=!1;a=n.subscribe(i.createOperatorSubscriber(o,void 0,void 0,(function(i){s=r.innerFrom(t(i,e(t)(n))),a?(a.unsubscribe(),a=null,s.subscribe(o)):c=!0}))),c&&(a.unsubscribe(),a=null,s.subscribe(o))}))}},10498:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.combineAll=void 0;var r=n(97484);t.combineAll=r.combineLatestAll},6527:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatestAll=void 0;var r=n(40508),i=n(72208);t.combineLatestAll=function(e){return i.joinAllInternals(r.combineLatest,e)}},64755:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatAll=void 0;var r=n(40400);t.concatAll=function(){return r.mergeAll(1)}},31774:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatMap=void 0;var r=n(36086),i=n(42935);t.concatMap=function(e,t){return i.isFunction(t)?r.mergeMap(e,t,1):r.mergeMap(e,1)}},63977:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatMapTo=void 0;var r=n(31774),i=n(42935);t.concatMapTo=function(e,t){return i.isFunction(t)?r.concatMap((function(){return e}),t):r.concatMap((function(){return e}))}},67672:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.connect=void 0;var r=n(55294),i=n(44417),o=n(16097),s=n(46884),a={connector:function(){return new r.Subject}};t.connect=function(e,t){void 0===t&&(t=a);var n=t.connector;return o.operate((function(t,r){var o=n();i.from(e(s.fromSubscribable(o))).subscribe(r),r.add(t.subscribe(o))}))}},78259:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.count=void 0;var r=n(78083);t.count=function(e){return r.reduce((function(t,n,r){return!e||e(n,r)?t+1:t}),0)}},23473:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debounce=void 0;var r=n(16097),i=n(37116),o=n(37326),s=n(16958);t.debounce=function(e){return r.operate((function(t,n){var r=!1,a=null,c=null,u=function(){if(null==c||c.unsubscribe(),c=null,r){r=!1;var e=a;a=null,n.next(e)}};t.subscribe(o.createOperatorSubscriber(n,(function(t){null==c||c.unsubscribe(),r=!0,a=t,c=o.createOperatorSubscriber(n,u,i.noop),s.innerFrom(e(t)).subscribe(c)}),(function(){u(),n.complete()}),void 0,(function(){a=c=null})))}))}},78390:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debounceTime=void 0;var r=n(17152),i=n(16097),o=n(37326);t.debounceTime=function(e,t){return void 0===t&&(t=r.asyncScheduler),i.operate((function(n,r){var i=null,s=null,a=null,c=function(){if(i){i.unsubscribe(),i=null;var e=s;s=null,r.next(e)}};function u(){var n=a+e,o=t.now();if(o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultIfEmpty=void 0;var r=n(16097),i=n(37326);t.defaultIfEmpty=function(e){return r.operate((function(t,n){var r=!1;t.subscribe(i.createOperatorSubscriber(n,(function(e){r=!0,n.next(e)}),(function(){r||n.next(e),n.complete()})))}))}},58151:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.delay=void 0;var r=n(17152),i=n(40744),o=n(18069);t.delay=function(e,t){void 0===t&&(t=r.asyncScheduler);var n=o.timer(e,t);return i.delayWhen((function(){return n}))}},40744:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.delayWhen=void 0;var r=n(3364),i=n(29438),o=n(89186),s=n(55471),a=n(36086);t.delayWhen=function e(t,n){return n?function(s){return r.concat(n.pipe(i.take(1),o.ignoreElements()),s.pipe(e(t)))}:a.mergeMap((function(e,n){return t(e,n).pipe(i.take(1),s.mapTo(e))}))}},8590:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dematerialize=void 0;var r=n(79828),i=n(16097),o=n(37326);t.dematerialize=function(){return i.operate((function(e,t){e.subscribe(o.createOperatorSubscriber(t,(function(e){return r.observeNotification(e,t)})))}))}},28406:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distinct=void 0;var r=n(16097),i=n(37326),o=n(37116);t.distinct=function(e,t){return r.operate((function(n,r){var s=new Set;n.subscribe(i.createOperatorSubscriber(r,(function(t){var n=e?e(t):t;s.has(n)||(s.add(n),r.next(t))}))),null==t||t.subscribe(i.createOperatorSubscriber(r,(function(){return s.clear()}),o.noop))}))}},37300:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distinctUntilChanged=void 0;var r=n(98987),i=n(16097),o=n(37326);function s(e,t){return e===t}t.distinctUntilChanged=function(e,t){return void 0===t&&(t=r.identity),e=null!=e?e:s,i.operate((function(n,r){var i,s=!0;n.subscribe(o.createOperatorSubscriber(r,(function(n){var o=t(n);!s&&e(i,o)||(s=!1,i=o,r.next(n))})))}))}},84405:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distinctUntilKeyChanged=void 0;var r=n(37300);t.distinctUntilKeyChanged=function(e,t){return r.distinctUntilChanged((function(n,r){return t?t(n[e],r[e]):n[e]===r[e]}))}},42787:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.elementAt=void 0;var r=n(19216),i=n(47261),o=n(21332),s=n(24562),a=n(29438);t.elementAt=function(e,t){if(e<0)throw new r.ArgumentOutOfRangeError;var n=arguments.length>=2;return function(c){return c.pipe(i.filter((function(t,n){return n===e})),a.take(1),n?s.defaultIfEmpty(t):o.throwIfEmpty((function(){return new r.ArgumentOutOfRangeError})))}}},11665:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.every=void 0;var r=n(16097),i=n(37326);t.every=function(e,t){return r.operate((function(n,r){var o=0;n.subscribe(i.createOperatorSubscriber(r,(function(i){e.call(t,i,o++,n)||(r.next(!1),r.complete())}),(function(){r.next(!0),r.complete()})))}))}},42208:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exhaust=void 0;var r=n(62008);t.exhaust=r.exhaustAll},62008:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exhaustAll=void 0;var r=n(16097),i=n(16958),o=n(37326);t.exhaustAll=function(){return r.operate((function(e,t){var n=!1,r=null;e.subscribe(o.createOperatorSubscriber(t,(function(e){r||(r=i.innerFrom(e).subscribe(o.createOperatorSubscriber(t,void 0,(function(){r=null,n&&t.complete()}))))}),(function(){n=!0,!r&&t.complete()})))}))}},84019:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exhaustMap=void 0;var r=n(56269),i=n(16958),o=n(16097),s=n(37326);t.exhaustMap=function e(t,n){return n?function(o){return o.pipe(e((function(e,o){return i.innerFrom(t(e,o)).pipe(r.map((function(t,r){return n(e,t,o,r)})))})))}:o.operate((function(e,n){var r=0,o=null,a=!1;e.subscribe(s.createOperatorSubscriber(n,(function(e){o||(o=s.createOperatorSubscriber(n,void 0,(function(){o=null,a&&n.complete()})),i.innerFrom(t(e,r++)).subscribe(o))}),(function(){a=!0,!o&&n.complete()})))}))}},29101:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.expand=void 0;var r=n(16097),i=n(25926);t.expand=function(e,t,n){return void 0===t&&(t=1/0),t=(t||0)<1?1/0:t,r.operate((function(r,o){return i.mergeInternals(r,o,e,t,void 0,!0,n)}))}},47261:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.filter=void 0;var r=n(16097),i=n(37326);t.filter=function(e,t){return r.operate((function(n,r){var o=0;n.subscribe(i.createOperatorSubscriber(r,(function(n){return e.call(t,n,o++)&&r.next(n)})))}))}},55381:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.finalize=void 0;var r=n(16097);t.finalize=function(e){return r.operate((function(t,n){try{t.subscribe(n)}finally{n.add(e)}}))}},24127:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createFind=t.find=void 0;var r=n(16097),i=n(37326);function o(e,t,n){var r="index"===n;return function(n,o){var s=0;n.subscribe(i.createOperatorSubscriber(o,(function(i){var a=s++;e.call(t,i,a,n)&&(o.next(r?a:i),o.complete())}),(function(){o.next(r?-1:void 0),o.complete()})))}}t.find=function(e,t){return r.operate(o(e,t,"value"))},t.createFind=o},69727:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findIndex=void 0;var r=n(16097),i=n(24127);t.findIndex=function(e,t){return r.operate(i.createFind(e,t,"index"))}},87418:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.first=void 0;var r=n(99088),i=n(47261),o=n(29438),s=n(24562),a=n(21332),c=n(98987);t.first=function(e,t){var n=arguments.length>=2;return function(u){return u.pipe(e?i.filter((function(t,n){return e(t,n,u)})):c.identity,o.take(1),n?s.defaultIfEmpty(t):a.throwIfEmpty((function(){return new r.EmptyError})))}}},89121:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flatMap=void 0;var r=n(36086);t.flatMap=r.mergeMap},7533:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.groupBy=void 0;var r=n(64174),i=n(16958),o=n(55294),s=n(16097),a=n(37326);t.groupBy=function(e,t,n,c){return s.operate((function(s,u){var l;t&&"function"!=typeof t?(n=t.duration,l=t.element,c=t.connector):l=t;var f=new Map,d=function(e){f.forEach(e),e(u)},p=function(e){return d((function(t){return t.error(e)}))},h=0,g=!1,m=new a.OperatorSubscriber(u,(function(t){try{var s=e(t),d=f.get(s);if(!d){f.set(s,d=c?c():new o.Subject);var y=(b=s,S=d,(E=new r.Observable((function(e){h++;var t=S.subscribe(e);return function(){t.unsubscribe(),0==--h&&g&&m.unsubscribe()}}))).key=b,E);if(u.next(y),n){var v=a.createOperatorSubscriber(d,(function(){d.complete(),null==v||v.unsubscribe()}),void 0,void 0,(function(){return f.delete(s)}));m.add(i.innerFrom(n(y)).subscribe(v))}}d.next(l?l(t):t)}catch(e){p(e)}var b,S,E}),(function(){return d((function(e){return e.complete()}))}),p,(function(){return f.clear()}),(function(){return g=!0,0===h}));s.subscribe(m)}))}},89186:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ignoreElements=void 0;var r=n(16097),i=n(37326),o=n(37116);t.ignoreElements=function(){return r.operate((function(e,t){e.subscribe(i.createOperatorSubscriber(t,o.noop))}))}},27757:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmpty=void 0;var r=n(16097),i=n(37326);t.isEmpty=function(){return r.operate((function(e,t){e.subscribe(i.createOperatorSubscriber(t,(function(){t.next(!1),t.complete()}),(function(){t.next(!0),t.complete()})))}))}},72208:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.joinAllInternals=void 0;var r=n(98987),i=n(9364),o=n(65250),s=n(36086),a=n(29867);t.joinAllInternals=function(e,t){return o.pipe(a.toArray(),s.mergeMap((function(t){return e(t)})),t?i.mapOneOrManyArgs(t):r.identity)}},83374:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.last=void 0;var r=n(99088),i=n(47261),o=n(74125),s=n(21332),a=n(24562),c=n(98987);t.last=function(e,t){var n=arguments.length>=2;return function(u){return u.pipe(e?i.filter((function(t,n){return e(t,n,u)})):c.identity,o.takeLast(1),n?a.defaultIfEmpty(t):s.throwIfEmpty((function(){return new r.EmptyError})))}}},56269:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.map=void 0;var r=n(16097),i=n(37326);t.map=function(e,t){return r.operate((function(n,r){var o=0;n.subscribe(i.createOperatorSubscriber(r,(function(n){r.next(e.call(t,n,o++))})))}))}},55471:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapTo=void 0;var r=n(56269);t.mapTo=function(e){return r.map((function(){return e}))}},21160:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.materialize=void 0;var r=n(79828),i=n(16097),o=n(37326);t.materialize=function(){return i.operate((function(e,t){e.subscribe(o.createOperatorSubscriber(t,(function(e){t.next(r.Notification.createNext(e))}),(function(){t.next(r.Notification.createComplete()),t.complete()}),(function(e){t.next(r.Notification.createError(e)),t.complete()})))}))}},91890:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.max=void 0;var r=n(78083),i=n(42935);t.max=function(e){return r.reduce(i.isFunction(e)?function(t,n){return e(t,n)>0?t:n}:function(e,t){return e>t?e:t})}},33982:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeAll=void 0;var r=n(36086),i=n(98987);t.mergeAll=function(e){return void 0===e&&(e=1/0),r.mergeMap(i.identity,e)}},25926:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeInternals=void 0;var r=n(16958),i=n(75267),o=n(37326);t.mergeInternals=function(e,t,n,s,a,c,u,l){var f=[],d=0,p=0,h=!1,g=function(){!h||f.length||d||t.complete()},m=function(e){return d{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeMap=void 0;var r=n(56269),i=n(16958),o=n(16097),s=n(25926),a=n(42935);t.mergeMap=function e(t,n,c){return void 0===c&&(c=1/0),a.isFunction(n)?e((function(e,o){return r.map((function(t,r){return n(e,t,o,r)}))(i.innerFrom(t(e,o)))}),c):("number"==typeof n&&(c=n),o.operate((function(e,n){return s.mergeInternals(e,n,t,c)})))}},71244:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeMapTo=void 0;var r=n(36086),i=n(42935);t.mergeMapTo=function(e,t,n){return void 0===n&&(n=1/0),i.isFunction(t)?r.mergeMap((function(){return e}),t,n):("number"==typeof t&&(n=t),r.mergeMap((function(){return e}),n))}},23699:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeScan=void 0;var r=n(16097),i=n(25926);t.mergeScan=function(e,t,n){return void 0===n&&(n=1/0),r.operate((function(r,o){var s=t;return i.mergeInternals(r,o,(function(t,n){return e(s,t,n)}),n,(function(e){s=e}),!1,void 0,(function(){return s=null}))}))}},98220:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.min=void 0;var r=n(78083),i=n(42935);t.min=function(e){return r.reduce(i.isFunction(e)?function(t,n){return e(t,n)<0?t:n}:function(e,t){return e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.multicast=void 0;var r=n(87165),i=n(42935),o=n(65561);t.multicast=function(e,t){var n=i.isFunction(e)?e:function(){return e};return i.isFunction(t)?o.connect(t,{connector:n}):function(e){return new r.ConnectableObservable(e,n)}}},89314:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.observeOn=void 0;var r=n(75267),i=n(16097),o=n(37326);t.observeOn=function(e,t){return void 0===t&&(t=0),i.operate((function(n,i){n.subscribe(o.createOperatorSubscriber(i,(function(n){return r.executeSchedule(i,e,(function(){return i.next(n)}),t)}),(function(){return r.executeSchedule(i,e,(function(){return i.complete()}),t)}),(function(n){return r.executeSchedule(i,e,(function(){return i.error(n)}),t)})))}))}},43821:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n0){var e=void 0;try{e=s.innerFrom(o.shift())}catch(e){return void a()}var n=c.createOperatorSubscriber(t,void 0,u.noop,u.noop);e.subscribe(n),n.add(a)}else t.complete()};a()}))}},31186:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pairwise=void 0;var r=n(16097),i=n(37326);t.pairwise=function(){return r.operate((function(e,t){var n,r=!1;e.subscribe(i.createOperatorSubscriber(t,(function(e){var i=n;n=e,r&&t.next([i,e]),r=!0})))}))}},9857:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.partition=void 0;var r=n(38781),i=n(47261);t.partition=function(e,t){return function(n){return[i.filter(e,t)(n),i.filter(r.not(e,t))(n)]}}},39532:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pluck=void 0;var r=n(56269);t.pluck=function(){for(var e=[],t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publish=void 0;var r=n(55294),i=n(68413),o=n(65561);t.publish=function(e){return e?function(t){return o.connect(e)(t)}:function(e){return i.multicast(new r.Subject)(e)}}},48103:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publishBehavior=void 0;var r=n(61577),i=n(87165);t.publishBehavior=function(e){return function(t){var n=new r.BehaviorSubject(e);return new i.ConnectableObservable(t,(function(){return n}))}}},22610:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publishLast=void 0;var r=n(69960),i=n(87165);t.publishLast=function(){return function(e){var t=new r.AsyncSubject;return new i.ConnectableObservable(e,(function(){return t}))}}},45299:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publishReplay=void 0;var r=n(68806),i=n(68413),o=n(42935);t.publishReplay=function(e,t,n,s){n&&!o.isFunction(n)&&(s=n);var a=o.isFunction(n)?n:void 0;return function(n){return i.multicast(new r.ReplaySubject(e,t,s),a)(n)}}},26699:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reduce=void 0;var r=n(87235),i=n(16097);t.reduce=function(e,t){return i.operate(r.scanInternals(e,t,arguments.length>=2,!1,!0))}},14508:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.refCount=void 0;var r=n(16097),i=n(37326);t.refCount=function(){return r.operate((function(e,t){var n=null;e._refCount++;var r=i.createOperatorSubscriber(t,void 0,void 0,void 0,(function(){if(!e||e._refCount<=0||0<--e._refCount)n=null;else{var r=e._connection,i=n;n=null,!r||i&&r!==i||r.unsubscribe(),t.unsubscribe()}}));e.subscribe(r),r.closed||(n=e.connect())}))}},72588:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.repeat=void 0;var r=n(26929),i=n(16097),o=n(37326),s=n(16958),a=n(18069);t.repeat=function(e){var t,n,c=1/0;return null!=e&&("object"==typeof e?(t=e.count,c=void 0===t?1/0:t,n=e.delay):c=e),c<=0?function(){return r.EMPTY}:i.operate((function(e,t){var r,i=0,u=function(){if(null==r||r.unsubscribe(),r=null,null!=n){var e="number"==typeof n?a.timer(n):s.innerFrom(n(i)),c=o.createOperatorSubscriber(t,(function(){c.unsubscribe(),l()}));e.subscribe(c)}else l()},l=function(){var n=!1;r=e.subscribe(o.createOperatorSubscriber(t,void 0,(function(){++i{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.repeatWhen=void 0;var r=n(55294),i=n(16097),o=n(37326);t.repeatWhen=function(e){return i.operate((function(t,n){var i,s,a=!1,c=!1,u=!1,l=function(){return u&&c&&(n.complete(),!0)},f=function(){u=!1,i=t.subscribe(o.createOperatorSubscriber(n,void 0,(function(){u=!0,!l()&&(s||(s=new r.Subject,e(s).subscribe(o.createOperatorSubscriber(n,(function(){i?f():a=!0}),(function(){c=!0,l()})))),s).next()}))),a&&(i.unsubscribe(),i=null,a=!1,f())};f()}))}},74486:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.retry=void 0;var r=n(16097),i=n(37326),o=n(98987),s=n(18069),a=n(16958);t.retry=function(e){var t;void 0===e&&(e=1/0);var n=(t=e&&"object"==typeof e?e:{count:e}).count,c=void 0===n?1/0:n,u=t.delay,l=t.resetOnSuccess,f=void 0!==l&&l;return c<=0?o.identity:r.operate((function(e,t){var n,r=0,o=function(){var l=!1;n=e.subscribe(i.createOperatorSubscriber(t,(function(e){f&&(r=0),t.next(e)}),void 0,(function(e){if(r++{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.retryWhen=void 0;var r=n(55294),i=n(16097),o=n(37326);t.retryWhen=function(e){return i.operate((function(t,n){var i,s,a=!1,c=function(){i=t.subscribe(o.createOperatorSubscriber(n,void 0,void 0,(function(t){s||(s=new r.Subject,e(s).subscribe(o.createOperatorSubscriber(n,(function(){return i?c():a=!0})))),s&&s.next(t)}))),a&&(i.unsubscribe(),i=null,a=!1,c())};c()}))}},20778:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sample=void 0;var r=n(16097),i=n(37116),o=n(37326);t.sample=function(e){return r.operate((function(t,n){var r=!1,s=null;t.subscribe(o.createOperatorSubscriber(n,(function(e){r=!0,s=e}))),e.subscribe(o.createOperatorSubscriber(n,(function(){if(r){r=!1;var e=s;s=null,n.next(e)}}),i.noop))}))}},67701:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sampleTime=void 0;var r=n(17152),i=n(20778),o=n(33154);t.sampleTime=function(e,t){return void 0===t&&(t=r.asyncScheduler),i.sample(o.interval(e,t))}},18167:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scan=void 0;var r=n(16097),i=n(87235);t.scan=function(e,t){return r.operate(i.scanInternals(e,t,arguments.length>=2,!0))}},87235:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scanInternals=void 0;var r=n(37326);t.scanInternals=function(e,t,n,i,o){return function(s,a){var c=n,u=t,l=0;s.subscribe(r.createOperatorSubscriber(a,(function(t){var n=l++;u=c?e(u,t,n):(c=!0,t),i&&a.next(u)}),o&&function(){c&&a.next(u),a.complete()}))}}},57821:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sequenceEqual=void 0;var r=n(16097),i=n(37326);t.sequenceEqual=function(e,t){return void 0===t&&(t=function(e,t){return e===t}),r.operate((function(n,r){var o={buffer:[],complete:!1},s={buffer:[],complete:!1},a=function(e){r.next(e),r.complete()},c=function(e,n){var o=i.createOperatorSubscriber(r,(function(r){var i=n.buffer,o=n.complete;0===i.length?o?a(!1):e.buffer.push(r):!t(r,i.shift())&&a(!1)}),(function(){e.complete=!0;var t=n.complete,r=n.buffer;t&&a(0===r.length),null==o||o.unsubscribe()}));return o};n.subscribe(c(o,s)),e.subscribe(c(s,o))}))}},52645:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shareReplay=void 0;var r=n(68806),i=n(52645);t.shareReplay=function(e,t,n){var o,s,a,c,u=!1;return e&&"object"==typeof e?(o=e.bufferSize,c=void 0===o?1/0:o,s=e.windowTime,t=void 0===s?1/0:s,u=void 0!==(a=e.refCount)&&a,n=e.scheduler):c=null!=e?e:1/0,i.share({connector:function(){return new r.ReplaySubject(c,t,n)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:u})}},44610:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.single=void 0;var r=n(99088),i=n(57298),o=n(25722),s=n(16097),a=n(37326);t.single=function(e){return s.operate((function(t,n){var s,c=!1,u=!1,l=0;t.subscribe(a.createOperatorSubscriber(n,(function(r){u=!0,e&&!e(r,l++,t)||(c&&n.error(new i.SequenceError("Too many matching values")),c=!0,s=r)}),(function(){c?(n.next(s),n.complete()):n.error(u?new o.NotFoundError("No matching values"):new r.EmptyError)})))}))}},75735:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skip=void 0;var r=n(47261);t.skip=function(e){return r.filter((function(t,n){return e<=n}))}},63252:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skipLast=void 0;var r=n(98987),i=n(16097),o=n(37326);t.skipLast=function(e){return e<=0?r.identity:i.operate((function(t,n){var r=new Array(e),i=0;return t.subscribe(o.createOperatorSubscriber(n,(function(t){var o=i++;if(o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skipUntil=void 0;var r=n(16097),i=n(37326),o=n(16958),s=n(37116);t.skipUntil=function(e){return r.operate((function(t,n){var r=!1,a=i.createOperatorSubscriber(n,(function(){null==a||a.unsubscribe(),r=!0}),s.noop);o.innerFrom(e).subscribe(a),t.subscribe(i.createOperatorSubscriber(n,(function(e){return r&&n.next(e)})))}))}},45454:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skipWhile=void 0;var r=n(16097),i=n(37326);t.skipWhile=function(e){return r.operate((function(t,n){var r=!1,o=0;t.subscribe(i.createOperatorSubscriber(n,(function(t){return(r||(r=!e(t,o++)))&&n.next(t)})))}))}},1923:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.startWith=void 0;var r=n(3364),i=n(84544),o=n(16097);t.startWith=function(){for(var e=[],t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.subscribeOn=void 0;var r=n(16097);t.subscribeOn=function(e,t){return void 0===t&&(t=0),r.operate((function(n,r){r.add(e.schedule((function(){return n.subscribe(r)}),t))}))}},91695:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchAll=void 0;var r=n(66649),i=n(98987);t.switchAll=function(){return r.switchMap(i.identity)}},66649:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchMap=void 0;var r=n(16958),i=n(16097),o=n(37326);t.switchMap=function(e,t){return i.operate((function(n,i){var s=null,a=0,c=!1,u=function(){return c&&!s&&i.complete()};n.subscribe(o.createOperatorSubscriber(i,(function(n){null==s||s.unsubscribe();var c=0,l=a++;r.innerFrom(e(n,l)).subscribe(s=o.createOperatorSubscriber(i,(function(e){return i.next(t?t(n,e,l,c++):e)}),(function(){s=null,u()})))}),(function(){c=!0,u()})))}))}},83054:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchMapTo=void 0;var r=n(66649),i=n(42935);t.switchMapTo=function(e,t){return i.isFunction(t)?r.switchMap((function(){return e}),t):r.switchMap((function(){return e}))}},62890:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchScan=void 0;var r=n(66649),i=n(16097);t.switchScan=function(e,t){return i.operate((function(n,i){var o=t;return r.switchMap((function(t,n){return e(o,t,n)}),(function(e,t){return o=t,t}))(n).subscribe(i),function(){o=null}}))}},29438:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.take=void 0;var r=n(26929),i=n(16097),o=n(37326);t.take=function(e){return e<=0?function(){return r.EMPTY}:i.operate((function(t,n){var r=0;t.subscribe(o.createOperatorSubscriber(n,(function(t){++r<=e&&(n.next(t),e<=r&&n.complete())})))}))}},74125:function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.takeLast=void 0;var i=n(26929),o=n(16097),s=n(37326);t.takeLast=function(e){return e<=0?function(){return i.EMPTY}:o.operate((function(t,n){var i=[];t.subscribe(s.createOperatorSubscriber(n,(function(t){i.push(t),e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.takeUntil=void 0;var r=n(16097),i=n(37326),o=n(16958),s=n(37116);t.takeUntil=function(e){return r.operate((function(t,n){o.innerFrom(e).subscribe(i.createOperatorSubscriber(n,(function(){return n.complete()}),s.noop)),!n.closed&&t.subscribe(n)}))}},85884:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.takeWhile=void 0;var r=n(16097),i=n(37326);t.takeWhile=function(e,t){return void 0===t&&(t=!1),r.operate((function(n,r){var o=0;n.subscribe(i.createOperatorSubscriber(r,(function(n){var i=e(n,o++);(i||t)&&r.next(n),!i&&r.complete()})))}))}},5383:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tap=void 0;var r=n(42935),i=n(16097),o=n(37326),s=n(98987);t.tap=function(e,t,n){var a=r.isFunction(e)||t||n?{next:e,error:t,complete:n}:e;return a?i.operate((function(e,t){var n;null===(n=a.subscribe)||void 0===n||n.call(a);var r=!0;e.subscribe(o.createOperatorSubscriber(t,(function(e){var n;null===(n=a.next)||void 0===n||n.call(a,e),t.next(e)}),(function(){var e;r=!1,null===(e=a.complete)||void 0===e||e.call(a),t.complete()}),(function(e){var n;r=!1,null===(n=a.error)||void 0===n||n.call(a,e),t.error(e)}),(function(){var e,t;r&&(null===(e=a.unsubscribe)||void 0===e||e.call(a)),null===(t=a.finalize)||void 0===t||t.call(a)})))})):s.identity}},11016:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throttle=t.defaultThrottleConfig=void 0;var r=n(16097),i=n(37326),o=n(16958);t.defaultThrottleConfig={leading:!0,trailing:!1},t.throttle=function(e,n){return void 0===n&&(n=t.defaultThrottleConfig),r.operate((function(t,r){var s=n.leading,a=n.trailing,c=!1,u=null,l=null,f=!1,d=function(){null==l||l.unsubscribe(),l=null,a&&(g(),f&&r.complete())},p=function(){l=null,f&&r.complete()},h=function(t){return l=o.innerFrom(e(t)).subscribe(i.createOperatorSubscriber(r,d,p))},g=function(){if(c){c=!1;var e=u;u=null,r.next(e),!f&&h(e)}};t.subscribe(i.createOperatorSubscriber(r,(function(e){c=!0,u=e,(!l||l.closed)&&(s?g():h(e))}),(function(){f=!0,(!(a&&c&&l)||l.closed)&&r.complete()})))}))}},90567:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throttleTime=void 0;var r=n(17152),i=n(11016),o=n(18069);t.throttleTime=function(e,t,n){void 0===t&&(t=r.asyncScheduler),void 0===n&&(n=i.defaultThrottleConfig);var s=o.timer(e,t);return i.throttle((function(){return s}),n)}},21332:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throwIfEmpty=void 0;var r=n(99088),i=n(16097),o=n(37326);function s(){return new r.EmptyError}t.throwIfEmpty=function(e){return void 0===e&&(e=s),i.operate((function(t,n){var r=!1;t.subscribe(o.createOperatorSubscriber(n,(function(e){r=!0,n.next(e)}),(function(){return r?n.complete():n.error(e())})))}))}},51149:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimeInterval=t.timeInterval=void 0;var r=n(17152),i=n(16097),o=n(37326);t.timeInterval=function(e){return void 0===e&&(e=r.asyncScheduler),i.operate((function(t,n){var r=e.now();t.subscribe(o.createOperatorSubscriber(n,(function(t){var i=e.now(),o=i-r;r=i,n.next(new s(t,o))})))}))};var s=function(e,t){this.value=e,this.interval=t};t.TimeInterval=s},54485:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timeout=t.TimeoutError=void 0;var r=n(17152),i=n(14426),o=n(16097),s=n(16958),a=n(83126),c=n(37326),u=n(75267);function l(e){throw new t.TimeoutError(e)}t.TimeoutError=a.createErrorClass((function(e){return function(t){void 0===t&&(t=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}})),t.timeout=function(e,t){var n=i.isValidDate(e)?{first:e}:"number"==typeof e?{each:e}:e,a=n.first,f=n.each,d=n.with,p=void 0===d?l:d,h=n.scheduler,g=void 0===h?null!=t?t:r.asyncScheduler:h,m=n.meta,y=void 0===m?null:m;if(null==a&&null==f)throw new TypeError("No timeout provided.");return o.operate((function(e,t){var n,r,i=null,o=0,l=function(e){r=u.executeSchedule(t,g,(function(){try{n.unsubscribe(),s.innerFrom(p({meta:y,lastValue:i,seen:o})).subscribe(t)}catch(e){t.error(e)}}),e)};n=e.subscribe(c.createOperatorSubscriber(t,(function(e){null==r||r.unsubscribe(),o++,t.next(i=e),f>0&&l(f)}),void 0,void 0,(function(){(null==r?void 0:r.closed)||null==r||r.unsubscribe(),i=null}))),!o&&l(null!=a?"number"==typeof a?a:+a-g.now():f)}))}},94972:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timeoutWith=void 0;var r=n(17152),i=n(14426),o=n(54485);t.timeoutWith=function(e,t,n){var s,a,c;if(n=null!=n?n:r.async,i.isValidDate(e)?s=e:"number"==typeof e&&(a=e),!t)throw new TypeError("No observable provided to switch to");if(c=function(){return t},null==s&&null==a)throw new TypeError("No timeout provided.");return o.timeout({first:s,each:a,scheduler:n,with:c})}},11275:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timestamp=void 0;var r=n(79168),i=n(56269);t.timestamp=function(e){return void 0===e&&(e=r.dateTimestampProvider),i.map((function(t){return{value:t,timestamp:e.now()}}))}},29867:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toArray=void 0;var r=n(78083),i=n(16097),o=function(e,t){return e.push(t),e};t.toArray=function(){return i.operate((function(e,t){r.reduce(o,[])(e).subscribe(t)}))}},17649:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.window=void 0;var r=n(55294),i=n(16097),o=n(37326),s=n(37116);t.window=function(e){return i.operate((function(t,n){var i=new r.Subject;n.next(i.asObservable());var a=function(e){i.error(e),n.error(e)};return t.subscribe(o.createOperatorSubscriber(n,(function(e){return null==i?void 0:i.next(e)}),(function(){i.complete(),n.complete()}),a)),e.subscribe(o.createOperatorSubscriber(n,(function(){i.complete(),n.next(i=new r.Subject)}),s.noop,a)),function(){null==i||i.unsubscribe(),i=null}}))}},75612:function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.windowCount=void 0;var i=n(55294),o=n(16097),s=n(37326);t.windowCount=function(e,t){void 0===t&&(t=0);var n=t>0?t:e;return o.operate((function(t,o){var a=[new i.Subject],c=0;o.next(a[0].asObservable()),t.subscribe(s.createOperatorSubscriber(o,(function(t){var s,u;try{for(var l=r(a),f=l.next();!f.done;f=l.next())f.value.next(t)}catch(e){s={error:e}}finally{try{f&&!f.done&&(u=l.return)&&u.call(l)}finally{if(s)throw s.error}}var d=c-e+1;if(d>=0&&d%n==0&&a.shift().complete(),++c%n==0){var p=new i.Subject;a.push(p),o.next(p.asObservable())}}),(function(){for(;a.length>0;)a.shift().complete();o.complete()}),(function(e){for(;a.length>0;)a.shift().error(e);o.error(e)}),(function(){a=null})))}))}},59972:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.windowTime=void 0;var r=n(55294),i=n(17152),o=n(44666),s=n(16097),a=n(37326),c=n(91291),u=n(84544),l=n(75267);t.windowTime=function(e){for(var t,n,f=[],d=1;d=0?l.executeSchedule(n,p,f,h,!0):s=!0,f();var d=function(e){return i.slice().forEach(e)},m=function(e){d((function(t){var n=t.window;return e(n)})),e(n),n.unsubscribe()};return t.subscribe(a.createOperatorSubscriber(n,(function(e){d((function(t){t.window.next(e),g<=++t.seen&&u(t)}))}),(function(){return m((function(e){return e.complete()}))}),(function(e){return m((function(t){return t.error(e)}))}))),function(){i=null}}))}},49593:function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.windowToggle=void 0;var i=n(55294),o=n(44666),s=n(16097),a=n(16958),c=n(37326),u=n(37116),l=n(91291);t.windowToggle=function(e,t){return s.operate((function(n,s){var f=[],d=function(e){for(;0{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.windowWhen=void 0;var r=n(55294),i=n(16097),o=n(37326),s=n(16958);t.windowWhen=function(e){return i.operate((function(t,n){var i,a,c=function(e){i.error(e),n.error(e)},u=function(){var t;null==a||a.unsubscribe(),null==i||i.complete(),i=new r.Subject,n.next(i.asObservable());try{t=s.innerFrom(e())}catch(e){return void c(e)}t.subscribe(a=o.createOperatorSubscriber(n,u,u,c))};u(),t.subscribe(o.createOperatorSubscriber(n,(function(e){return i.next(e)}),(function(){i.complete(),n.complete()}),c,(function(){null==a||a.unsubscribe(),i=null})))}))}},35512:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zipAll=void 0;var r=n(74981),i=n(72208);t.zipAll=function(e){return i.joinAllInternals(r.zip,e)}},97594:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleArray=void 0;var r=n(64174);t.scheduleArray=function(e,t){return new r.Observable((function(n){var r=0;return t.schedule((function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())}))}))}},94271:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleAsyncIterable=void 0;var r=n(64174),i=n(75267);t.scheduleAsyncIterable=function(e,t){if(!e)throw new Error("Iterable cannot be null");return new r.Observable((function(n){i.executeSchedule(n,t,(function(){var r=e[Symbol.asyncIterator]();i.executeSchedule(n,t,(function(){r.next().then((function(e){e.done?n.complete():n.next(e.value)}))}),0,!0)}))}))}},82485:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleIterable=void 0;var r=n(64174),i=n(17630),o=n(42935),s=n(75267);t.scheduleIterable=function(e,t){return new r.Observable((function(n){var r;return s.executeSchedule(n,t,(function(){r=e[i.iterator](),s.executeSchedule(n,t,(function(){var e,t,i;try{t=(e=r.next()).value,i=e.done}catch(e){return void n.error(e)}i?n.complete():n.next(t)}),0,!0)})),function(){return o.isFunction(null==r?void 0:r.return)&&r.return()}}))}},55892:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleObservable=void 0;var r=n(16958),i=n(89314),o=n(79130);t.scheduleObservable=function(e,t){return r.innerFrom(e).pipe(o.subscribeOn(t),i.observeOn(t))}},66976:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.schedulePromise=void 0;var r=n(16958),i=n(89314),o=n(79130);t.schedulePromise=function(e,t){return r.innerFrom(e).pipe(o.subscribeOn(t),i.observeOn(t))}},34260:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleReadableStreamLike=void 0;var r=n(94271),i=n(42221);t.scheduleReadableStreamLike=function(e,t){return r.scheduleAsyncIterable(i.readableStreamLikeToAsyncGenerator(e),t)}},42862:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduled=void 0;var r=n(55892),i=n(66976),o=n(75125),s=n(82485),a=n(94271),c=n(33124),u=n(94283),l=n(5445),f=n(98131),d=n(83260),p=n(17756),h=n(42221),g=n(34260);t.scheduled=function(e,t){if(null!=e){if(c.isInteropObservable(e))return r.scheduleObservable(e,t);if(l.isArrayLike(e))return o.scheduleArray(e,t);if(u.isPromise(e))return i.schedulePromise(e,t);if(d.isAsyncIterable(e))return a.scheduleAsyncIterable(e,t);if(f.isIterable(e))return s.scheduleIterable(e,t);if(h.isReadableStreamLike(e))return g.scheduleReadableStreamLike(e,t)}throw p.createInvalidObservableTypeError(e)}},12502:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Action=void 0;var o=function(e){function t(t,n){return e.call(this)||this}return i(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(n(44666).Subscription);t.Action=o},32142:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AnimationFrameAction=void 0;var o=n(49462),s=n(29015),a=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return i(t,e),t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=s.animationFrameProvider.requestAnimationFrame((function(){return t.flush(void 0)}))))},t.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);t.actions.some((function(e){return e.id===n}))||(s.animationFrameProvider.cancelAnimationFrame(n),t._scheduled=void 0)},t}(o.AsyncAction);t.AnimationFrameAction=a},37104:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AnimationFrameScheduler=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.flush=function(e){this._active=!0;var t=this._scheduled;this._scheduled=void 0;var n,r=this.actions;e=e||r.shift();do{if(n=e.execute(e.state,e.delay))break}while((e=r[0])&&e.id===t&&r.shift());if(this._active=!1,n){for(;(e=r[0])&&e.id===t&&r.shift();)e.unsubscribe();throw n}},t}(n(19812).AsyncScheduler);t.AnimationFrameScheduler=o},94151:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AsapAction=void 0;var o=n(49462),s=n(14409),a=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return i(t,e),t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=s.immediateProvider.setImmediate(t.flush.bind(t,void 0))))},t.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);t.actions.some((function(e){return e.id===n}))||(s.immediateProvider.clearImmediate(n),t._scheduled=void 0)},t}(o.AsyncAction);t.AsapAction=a},94726:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AsapScheduler=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.flush=function(e){this._active=!0;var t=this._scheduled;this._scheduled=void 0;var n,r=this.actions;e=e||r.shift();do{if(n=e.execute(e.state,e.delay))break}while((e=r[0])&&e.id===t&&r.shift());if(this._active=!1,n){for(;(e=r[0])&&e.id===t&&r.shift();)e.unsubscribe();throw n}},t}(n(19812).AsyncScheduler);t.AsapScheduler=o},49462:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncAction=void 0;var o=n(12502),s=n(27549),a=n(91291),c=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return i(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),s.intervalProvider.setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!=n&&this.delay===n&&!1===this.pending)return t;s.intervalProvider.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n,r=!1;try{this.work(e)}catch(e){r=!0,n=e||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),n},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,n=this.scheduler,r=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,a.arrRemove(r,this),null!=t&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(o.Action);t.AsyncAction=c},19812:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncScheduler=void 0;var o=n(86949),s=function(e){function t(t,n){void 0===n&&(n=o.Scheduler.now);var r=e.call(this,t,n)||this;return r.actions=[],r._active=!1,r._scheduled=void 0,r}return i(t,e),t.prototype.flush=function(e){var t=this.actions;if(this._active)t.push(e);else{var n;this._active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(o.Scheduler);t.AsyncScheduler=s},85336:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.QueueAction=void 0;var o=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return i(t,e),t.prototype.schedule=function(t,n){return void 0===n&&(n=0),n>0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,r):t.flush(this)},t}(n(49462).AsyncAction);t.QueueAction=o},93667:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.QueueScheduler=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(n(19812).AsyncScheduler);t.QueueScheduler=o},12929:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.VirtualAction=t.VirtualTimeScheduler=void 0;var o=n(49462),s=n(44666),a=function(e){function t(t,n){void 0===t&&(t=c),void 0===n&&(n=1/0);var r=e.call(this,t,(function(){return r.frame}))||this;return r.maxFrames=n,r.frame=0,r.index=-1,r}return i(t,e),t.prototype.flush=function(){for(var e,t,n=this.actions,r=this.maxFrames;(t=n[0])&&t.delay<=r&&(n.shift(),this.frame=t.delay,!(e=t.execute(t.state,t.delay))););if(e){for(;t=n.shift();)t.unsubscribe();throw e}},t.frameTimeFactor=10,t}(n(19812).AsyncScheduler);t.VirtualTimeScheduler=a;var c=function(e){function t(t,n,r){void 0===r&&(r=t.index+=1);var i=e.call(this,t,n)||this;return i.scheduler=t,i.work=n,i.index=r,i.active=!0,i.index=t.index=r,i}return i(t,e),t.prototype.schedule=function(n,r){if(void 0===r&&(r=0),Number.isFinite(r)){if(!this.id)return e.prototype.schedule.call(this,n,r);this.active=!1;var i=new t(this.scheduler,this.work);return this.add(i),i.schedule(n,r)}return s.Subscription.EMPTY},t.prototype.requestAsyncId=function(e,n,r){void 0===r&&(r=0),this.delay=e.frame+r;var i=e.actions;return i.push(this),i.sort(t.sortActions),!0},t.prototype.recycleAsyncId=function(e,t,n){void 0===n&&(n=0)},t.prototype._execute=function(t,n){if(!0===this.active)return e.prototype._execute.call(this,t,n)},t.sortActions=function(e,t){return e.delay===t.delay?e.index===t.index?0:e.index>t.index?1:-1:e.delay>t.delay?1:-1},t}(o.AsyncAction);t.VirtualAction=c},88989:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.animationFrame=t.animationFrameScheduler=void 0;var r=n(32142),i=n(37104);t.animationFrameScheduler=new i.AnimationFrameScheduler(r.AnimationFrameAction),t.animationFrame=t.animationFrameScheduler},29015:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.asap=t.asapScheduler=void 0;var r=n(94151),i=n(94726);t.asapScheduler=new i.AsapScheduler(r.AsapAction),t.asap=t.asapScheduler},17152:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.async=t.asyncScheduler=void 0;var r=n(49462),i=n(19812);t.asyncScheduler=new i.AsyncScheduler(r.AsyncAction),t.async=t.asyncScheduler},79168:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dateTimestampProvider=void 0,t.dateTimestampProvider={now:function(){return(t.dateTimestampProvider.delegate||Date).now()},delegate:void 0}},14409:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},r=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.performanceTimestampProvider=void 0,t.performanceTimestampProvider={now:function(){return(t.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}},84093:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.queue=t.queueScheduler=void 0;var r=n(85336),i=n(93667);t.queueScheduler=new i.QueueScheduler(r.QueueAction),t.queue=t.queueScheduler},81577:function(e,t){"use strict";var n=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},r=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n{"use strict";function n(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}Object.defineProperty(t,"__esModule",{value:!0}),t.iterator=t.getSymbolIterator=void 0,t.getSymbolIterator=n,t.iterator=n()},34595:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.observable=void 0,t.observable="function"==typeof Symbol&&Symbol.observable||"@@observable"},53659:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},19216:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArgumentOutOfRangeError=void 0;var r=n(83126);t.ArgumentOutOfRangeError=r.createErrorClass((function(e){return function(){e(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}}))},99088:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyError=void 0;var r=n(83126);t.EmptyError=r.createErrorClass((function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}}))},50998:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TestTools=t.Immediate=void 0;var n,r=1,i={};function o(e){return e in i&&(delete i[e],!0)}t.Immediate={setImmediate:function(e){var t=r++;return i[t]=!0,n||(n=Promise.resolve()),n.then((function(){return o(t)&&e()})),t},clearImmediate:function(e){o(e)}},t.TestTools={pending:function(){return Object.keys(i).length}}},25722:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NotFoundError=void 0;var r=n(83126);t.NotFoundError=r.createErrorClass((function(e){return function(t){e(this),this.name="NotFoundError",this.message=t}}))},68499:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectUnsubscribedError=void 0;var r=n(83126);t.ObjectUnsubscribedError=r.createErrorClass((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}))},57298:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SequenceError=void 0;var r=n(83126);t.SequenceError=r.createErrorClass((function(e){return function(t){e(this),this.name="SequenceError",this.message=t}}))},54043:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnsubscriptionError=void 0;var r=n(83126);t.UnsubscriptionError=r.createErrorClass((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}))},84544:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.popNumber=t.popScheduler=t.popResultSelector=void 0;var r=n(42935),i=n(19668);function o(e){return e[e.length-1]}t.popResultSelector=function(e){return r.isFunction(o(e))?e.pop():void 0},t.popScheduler=function(e){return i.isScheduler(o(e))?e.pop():void 0},t.popNumber=function(e,t){return"number"==typeof o(e)?e.pop():t}},82398:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.argsArgArrayOrObject=void 0;var n=Array.isArray,r=Object.getPrototypeOf,i=Object.prototype,o=Object.keys;t.argsArgArrayOrObject=function(e){if(1===e.length){var t=e[0];if(n(t))return{args:t,keys:null};if((a=t)&&"object"==typeof a&&r(a)===i){var s=o(t);return{args:s.map((function(e){return t[e]})),keys:s}}}var a;return{args:e,keys:null}}},35034:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.argsOrArgArray=void 0;var n=Array.isArray;t.argsOrArgArray=function(e){return 1===e.length&&n(e[0])?e[0]:e}},91291:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrRemove=void 0,t.arrRemove=function(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}},83126:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createErrorClass=void 0,t.createErrorClass=function(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}},64800:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createObject=void 0,t.createObject=function(e,t){return e.reduce((function(e,n,r){return e[n]=t[r],e}),{})}},10977:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.captureError=t.errorContext=void 0;var r=n(19179),i=null;t.errorContext=function(e){if(r.config.useDeprecatedSynchronousErrorHandling){var t=!i;if(t&&(i={errorThrown:!1,error:null}),e(),t){var n=i,o=n.errorThrown,s=n.error;if(i=null,o)throw s}}else e()},t.captureError=function(e){r.config.useDeprecatedSynchronousErrorHandling&&i&&(i.errorThrown=!0,i.error=e)}},75267:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.executeSchedule=void 0,t.executeSchedule=function(e,t,n,r,i){void 0===r&&(r=0),void 0===i&&(i=!1);var o=t.schedule((function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()}),r);if(e.add(o),!i)return o}},98987:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.identity=void 0,t.identity=function(e){return e}},5445:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isArrayLike=void 0,t.isArrayLike=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},83260:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAsyncIterable=void 0;var r=n(42935);t.isAsyncIterable=function(e){return Symbol.asyncIterator&&r.isFunction(null==e?void 0:e[Symbol.asyncIterator])}},14426:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidDate=void 0,t.isValidDate=function(e){return e instanceof Date&&!isNaN(e)}},42935:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFunction=void 0,t.isFunction=function(e){return"function"==typeof e}},33124:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isInteropObservable=void 0;var r=n(34595),i=n(42935);t.isInteropObservable=function(e){return i.isFunction(e[r.observable])}},98131:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isIterable=void 0;var r=n(17630),i=n(42935);t.isIterable=function(e){return i.isFunction(null==e?void 0:e[r.iterator])}},83659:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isObservable=void 0;var r=n(64174),i=n(42935);t.isObservable=function(e){return!!e&&(e instanceof r.Observable||i.isFunction(e.lift)&&i.isFunction(e.subscribe))}},94283:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPromise=void 0;var r=n(42935);t.isPromise=function(e){return r.isFunction(null==e?void 0:e.then)}},42221:function(e,t,n){"use strict";var r=this&&this.__generator||function(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]1||c(e,t)}))})}function c(e,t){try{(n=o[e](t)).value instanceof i?Promise.resolve(n.value.v).then(u,l):f(s[0][2],n)}catch(e){f(s[0][3],e)}var n}function u(e){c("next",e)}function l(e){c("throw",e)}function f(e,t){e(t),s.shift(),s.length&&c(s[0][0],s[0][1])}};Object.defineProperty(t,"__esModule",{value:!0}),t.isReadableStreamLike=t.readableStreamLikeToAsyncGenerator=void 0;var s=n(42935);t.readableStreamLikeToAsyncGenerator=function(e){return o(this,arguments,(function(){var t,n,o;return r(this,(function(r){switch(r.label){case 0:t=e.getReader(),r.label=1;case 1:r.trys.push([1,,9,10]),r.label=2;case 2:return[4,i(t.read())];case 3:return n=r.sent(),o=n.value,n.done?[4,i(void 0)]:[3,5];case 4:return[2,r.sent()];case 5:return[4,i(o)];case 6:return[4,r.sent()];case 7:return r.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}}))}))},t.isReadableStreamLike=function(e){return s.isFunction(null==e?void 0:e.getReader)}},19668:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isScheduler=void 0;var r=n(42935);t.isScheduler=function(e){return e&&r.isFunction(e.schedule)}},16097:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.operate=t.hasLift=void 0;var r=n(42935);function i(e){return r.isFunction(null==e?void 0:e.lift)}t.hasLift=i,t.operate=function(e){return function(t){if(i(t))return t.lift((function(t){try{return e(t,this)}catch(e){this.error(e)}}));throw new TypeError("Unable to lift unknown Observable type")}}},9364:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.noop=void 0,t.noop=function(){}},38781:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.not=void 0,t.not=function(e,t){return function(n,r){return!e.call(t,n,r)}}},65250:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pipeFromArray=t.pipe=void 0;var r=n(98987);function i(e){return 0===e.length?r.identity:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}t.pipe=function(){for(var e=[],t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reportUnhandledError=void 0;var r=n(19179),i=n(81577);t.reportUnhandledError=function(e){i.timeoutProvider.setTimeout((function(){var t=r.config.onUnhandledError;if(!t)throw e;t(e)}))}},17756:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createInvalidObservableTypeError=void 0,t.createInvalidObservableTypeError=function(e){return new TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}},39002:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeAll=t.merge=t.max=t.materialize=t.mapTo=t.map=t.last=t.isEmpty=t.ignoreElements=t.groupBy=t.first=t.findIndex=t.find=t.finalize=t.filter=t.expand=t.exhaustMap=t.exhaustAll=t.exhaust=t.every=t.endWith=t.elementAt=t.distinctUntilKeyChanged=t.distinctUntilChanged=t.distinct=t.dematerialize=t.delayWhen=t.delay=t.defaultIfEmpty=t.debounceTime=t.debounce=t.count=t.connect=t.concatWith=t.concatMapTo=t.concatMap=t.concatAll=t.concat=t.combineLatestWith=t.combineLatest=t.combineLatestAll=t.combineAll=t.catchError=t.bufferWhen=t.bufferToggle=t.bufferTime=t.bufferCount=t.buffer=t.auditTime=t.audit=void 0,t.timeInterval=t.throwIfEmpty=t.throttleTime=t.throttle=t.tap=t.takeWhile=t.takeUntil=t.takeLast=t.take=t.switchScan=t.switchMapTo=t.switchMap=t.switchAll=t.subscribeOn=t.startWith=t.skipWhile=t.skipUntil=t.skipLast=t.skip=t.single=t.shareReplay=t.share=t.sequenceEqual=t.scan=t.sampleTime=t.sample=t.refCount=t.retryWhen=t.retry=t.repeatWhen=t.repeat=t.reduce=t.raceWith=t.race=t.publishReplay=t.publishLast=t.publishBehavior=t.publish=t.pluck=t.partition=t.pairwise=t.onErrorResumeNext=t.observeOn=t.multicast=t.min=t.mergeWith=t.mergeScan=t.mergeMapTo=t.mergeMap=t.flatMap=void 0,t.zipWith=t.zipAll=t.zip=t.withLatestFrom=t.windowWhen=t.windowToggle=t.windowTime=t.windowCount=t.window=t.toArray=t.timestamp=t.timeoutWith=t.timeout=void 0;var r=n(22605);Object.defineProperty(t,"audit",{enumerable:!0,get:function(){return r.audit}});var i=n(24152);Object.defineProperty(t,"auditTime",{enumerable:!0,get:function(){return i.auditTime}});var o=n(35149);Object.defineProperty(t,"buffer",{enumerable:!0,get:function(){return o.buffer}});var s=n(33189);Object.defineProperty(t,"bufferCount",{enumerable:!0,get:function(){return s.bufferCount}});var a=n(99459);Object.defineProperty(t,"bufferTime",{enumerable:!0,get:function(){return a.bufferTime}});var c=n(68145);Object.defineProperty(t,"bufferToggle",{enumerable:!0,get:function(){return c.bufferToggle}});var u=n(27764);Object.defineProperty(t,"bufferWhen",{enumerable:!0,get:function(){return u.bufferWhen}});var l=n(73056);Object.defineProperty(t,"catchError",{enumerable:!0,get:function(){return l.catchError}});var f=n(10498);Object.defineProperty(t,"combineAll",{enumerable:!0,get:function(){return f.combineAll}});var d=n(97484);Object.defineProperty(t,"combineLatestAll",{enumerable:!0,get:function(){return d.combineLatestAll}});var p=n(6527);Object.defineProperty(t,"combineLatest",{enumerable:!0,get:function(){return p.combineLatest}});var h=n(64755);Object.defineProperty(t,"combineLatestWith",{enumerable:!0,get:function(){return h.combineLatestWith}});var g=n(3792);Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return g.concat}});var m=n(90482);Object.defineProperty(t,"concatAll",{enumerable:!0,get:function(){return m.concatAll}});var y=n(31774);Object.defineProperty(t,"concatMap",{enumerable:!0,get:function(){return y.concatMap}});var v=n(63977);Object.defineProperty(t,"concatMapTo",{enumerable:!0,get:function(){return v.concatMapTo}});var b=n(67672);Object.defineProperty(t,"concatWith",{enumerable:!0,get:function(){return b.concatWith}});var S=n(65561);Object.defineProperty(t,"connect",{enumerable:!0,get:function(){return S.connect}});var E=n(78259);Object.defineProperty(t,"count",{enumerable:!0,get:function(){return E.count}});var x=n(23473);Object.defineProperty(t,"debounce",{enumerable:!0,get:function(){return x.debounce}});var w=n(78390);Object.defineProperty(t,"debounceTime",{enumerable:!0,get:function(){return w.debounceTime}});var _=n(24562);Object.defineProperty(t,"defaultIfEmpty",{enumerable:!0,get:function(){return _.defaultIfEmpty}});var O=n(58151);Object.defineProperty(t,"delay",{enumerable:!0,get:function(){return O.delay}});var C=n(40744);Object.defineProperty(t,"delayWhen",{enumerable:!0,get:function(){return C.delayWhen}});var D=n(8590);Object.defineProperty(t,"dematerialize",{enumerable:!0,get:function(){return D.dematerialize}});var A=n(28406);Object.defineProperty(t,"distinct",{enumerable:!0,get:function(){return A.distinct}});var P=n(37300);Object.defineProperty(t,"distinctUntilChanged",{enumerable:!0,get:function(){return P.distinctUntilChanged}});var T=n(84405);Object.defineProperty(t,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return T.distinctUntilKeyChanged}});var R=n(42787);Object.defineProperty(t,"elementAt",{enumerable:!0,get:function(){return R.elementAt}});var k=n(11665);Object.defineProperty(t,"endWith",{enumerable:!0,get:function(){return k.endWith}});var F=n(41511);Object.defineProperty(t,"every",{enumerable:!0,get:function(){return F.every}});var M=n(42208);Object.defineProperty(t,"exhaust",{enumerable:!0,get:function(){return M.exhaust}});var j=n(62008);Object.defineProperty(t,"exhaustAll",{enumerable:!0,get:function(){return j.exhaustAll}});var I=n(84019);Object.defineProperty(t,"exhaustMap",{enumerable:!0,get:function(){return I.exhaustMap}});var N=n(29101);Object.defineProperty(t,"expand",{enumerable:!0,get:function(){return N.expand}});var L=n(47261);Object.defineProperty(t,"filter",{enumerable:!0,get:function(){return L.filter}});var B=n(55381);Object.defineProperty(t,"finalize",{enumerable:!0,get:function(){return B.finalize}});var W=n(24127);Object.defineProperty(t,"find",{enumerable:!0,get:function(){return W.find}});var U=n(69727);Object.defineProperty(t,"findIndex",{enumerable:!0,get:function(){return U.findIndex}});var q=n(87418);Object.defineProperty(t,"first",{enumerable:!0,get:function(){return q.first}});var $=n(7533);Object.defineProperty(t,"groupBy",{enumerable:!0,get:function(){return $.groupBy}});var z=n(89186);Object.defineProperty(t,"ignoreElements",{enumerable:!0,get:function(){return z.ignoreElements}});var G=n(27757);Object.defineProperty(t,"isEmpty",{enumerable:!0,get:function(){return G.isEmpty}});var H=n(83374);Object.defineProperty(t,"last",{enumerable:!0,get:function(){return H.last}});var K=n(56269);Object.defineProperty(t,"map",{enumerable:!0,get:function(){return K.map}});var J=n(55471);Object.defineProperty(t,"mapTo",{enumerable:!0,get:function(){return J.mapTo}});var X=n(21160);Object.defineProperty(t,"materialize",{enumerable:!0,get:function(){return X.materialize}});var V=n(91890);Object.defineProperty(t,"max",{enumerable:!0,get:function(){return V.max}});var Y=n(33982);Object.defineProperty(t,"merge",{enumerable:!0,get:function(){return Y.merge}});var Q=n(40400);Object.defineProperty(t,"mergeAll",{enumerable:!0,get:function(){return Q.mergeAll}});var Z=n(89121);Object.defineProperty(t,"flatMap",{enumerable:!0,get:function(){return Z.flatMap}});var ee=n(36086);Object.defineProperty(t,"mergeMap",{enumerable:!0,get:function(){return ee.mergeMap}});var te=n(71244);Object.defineProperty(t,"mergeMapTo",{enumerable:!0,get:function(){return te.mergeMapTo}});var ne=n(23699);Object.defineProperty(t,"mergeScan",{enumerable:!0,get:function(){return ne.mergeScan}});var re=n(98220);Object.defineProperty(t,"mergeWith",{enumerable:!0,get:function(){return re.mergeWith}});var ie=n(90770);Object.defineProperty(t,"min",{enumerable:!0,get:function(){return ie.min}});var oe=n(68413);Object.defineProperty(t,"multicast",{enumerable:!0,get:function(){return oe.multicast}});var se=n(89314);Object.defineProperty(t,"observeOn",{enumerable:!0,get:function(){return se.observeOn}});var ae=n(43821);Object.defineProperty(t,"onErrorResumeNext",{enumerable:!0,get:function(){return ae.onErrorResumeNext}});var ce=n(31186);Object.defineProperty(t,"pairwise",{enumerable:!0,get:function(){return ce.pairwise}});var ue=n(9857);Object.defineProperty(t,"partition",{enumerable:!0,get:function(){return ue.partition}});var le=n(39532);Object.defineProperty(t,"pluck",{enumerable:!0,get:function(){return le.pluck}});var fe=n(5745);Object.defineProperty(t,"publish",{enumerable:!0,get:function(){return fe.publish}});var de=n(48103);Object.defineProperty(t,"publishBehavior",{enumerable:!0,get:function(){return de.publishBehavior}});var pe=n(22610);Object.defineProperty(t,"publishLast",{enumerable:!0,get:function(){return pe.publishLast}});var he=n(45299);Object.defineProperty(t,"publishReplay",{enumerable:!0,get:function(){return he.publishReplay}});var ge=n(26699);Object.defineProperty(t,"race",{enumerable:!0,get:function(){return ge.race}});var me=n(73820);Object.defineProperty(t,"raceWith",{enumerable:!0,get:function(){return me.raceWith}});var ye=n(78083);Object.defineProperty(t,"reduce",{enumerable:!0,get:function(){return ye.reduce}});var ve=n(72588);Object.defineProperty(t,"repeat",{enumerable:!0,get:function(){return ve.repeat}});var be=n(79249);Object.defineProperty(t,"repeatWhen",{enumerable:!0,get:function(){return be.repeatWhen}});var Se=n(74486);Object.defineProperty(t,"retry",{enumerable:!0,get:function(){return Se.retry}});var Ee=n(59112);Object.defineProperty(t,"retryWhen",{enumerable:!0,get:function(){return Ee.retryWhen}});var xe=n(14508);Object.defineProperty(t,"refCount",{enumerable:!0,get:function(){return xe.refCount}});var we=n(20778);Object.defineProperty(t,"sample",{enumerable:!0,get:function(){return we.sample}});var _e=n(67701);Object.defineProperty(t,"sampleTime",{enumerable:!0,get:function(){return _e.sampleTime}});var Oe=n(18167);Object.defineProperty(t,"scan",{enumerable:!0,get:function(){return Oe.scan}});var Ce=n(57821);Object.defineProperty(t,"sequenceEqual",{enumerable:!0,get:function(){return Ce.sequenceEqual}});var De=n(52645);Object.defineProperty(t,"share",{enumerable:!0,get:function(){return De.share}});var Ae=n(27566);Object.defineProperty(t,"shareReplay",{enumerable:!0,get:function(){return Ae.shareReplay}});var Pe=n(44610);Object.defineProperty(t,"single",{enumerable:!0,get:function(){return Pe.single}});var Te=n(75735);Object.defineProperty(t,"skip",{enumerable:!0,get:function(){return Te.skip}});var Re=n(63252);Object.defineProperty(t,"skipLast",{enumerable:!0,get:function(){return Re.skipLast}});var ke=n(81779);Object.defineProperty(t,"skipUntil",{enumerable:!0,get:function(){return ke.skipUntil}});var Fe=n(45454);Object.defineProperty(t,"skipWhile",{enumerable:!0,get:function(){return Fe.skipWhile}});var Me=n(1923);Object.defineProperty(t,"startWith",{enumerable:!0,get:function(){return Me.startWith}});var je=n(79130);Object.defineProperty(t,"subscribeOn",{enumerable:!0,get:function(){return je.subscribeOn}});var Ie=n(91695);Object.defineProperty(t,"switchAll",{enumerable:!0,get:function(){return Ie.switchAll}});var Ne=n(66649);Object.defineProperty(t,"switchMap",{enumerable:!0,get:function(){return Ne.switchMap}});var Le=n(83054);Object.defineProperty(t,"switchMapTo",{enumerable:!0,get:function(){return Le.switchMapTo}});var Be=n(62890);Object.defineProperty(t,"switchScan",{enumerable:!0,get:function(){return Be.switchScan}});var We=n(29438);Object.defineProperty(t,"take",{enumerable:!0,get:function(){return We.take}});var Ue=n(74125);Object.defineProperty(t,"takeLast",{enumerable:!0,get:function(){return Ue.takeLast}});var qe=n(37549);Object.defineProperty(t,"takeUntil",{enumerable:!0,get:function(){return qe.takeUntil}});var $e=n(85884);Object.defineProperty(t,"takeWhile",{enumerable:!0,get:function(){return $e.takeWhile}});var ze=n(5383);Object.defineProperty(t,"tap",{enumerable:!0,get:function(){return ze.tap}});var Ge=n(11016);Object.defineProperty(t,"throttle",{enumerable:!0,get:function(){return Ge.throttle}});var He=n(90567);Object.defineProperty(t,"throttleTime",{enumerable:!0,get:function(){return He.throttleTime}});var Ke=n(21332);Object.defineProperty(t,"throwIfEmpty",{enumerable:!0,get:function(){return Ke.throwIfEmpty}});var Je=n(51149);Object.defineProperty(t,"timeInterval",{enumerable:!0,get:function(){return Je.timeInterval}});var Xe=n(54485);Object.defineProperty(t,"timeout",{enumerable:!0,get:function(){return Xe.timeout}});var Ve=n(94972);Object.defineProperty(t,"timeoutWith",{enumerable:!0,get:function(){return Ve.timeoutWith}});var Ye=n(11275);Object.defineProperty(t,"timestamp",{enumerable:!0,get:function(){return Ye.timestamp}});var Qe=n(29867);Object.defineProperty(t,"toArray",{enumerable:!0,get:function(){return Qe.toArray}});var Ze=n(17649);Object.defineProperty(t,"window",{enumerable:!0,get:function(){return Ze.window}});var et=n(75612);Object.defineProperty(t,"windowCount",{enumerable:!0,get:function(){return et.windowCount}});var tt=n(59972);Object.defineProperty(t,"windowTime",{enumerable:!0,get:function(){return tt.windowTime}});var nt=n(49593);Object.defineProperty(t,"windowToggle",{enumerable:!0,get:function(){return nt.windowToggle}});var rt=n(26307);Object.defineProperty(t,"windowWhen",{enumerable:!0,get:function(){return rt.windowWhen}});var it=n(35512);Object.defineProperty(t,"withLatestFrom",{enumerable:!0,get:function(){return it.withLatestFrom}});var ot=n(40586);Object.defineProperty(t,"zip",{enumerable:!0,get:function(){return ot.zip}});var st=n(81221);Object.defineProperty(t,"zipAll",{enumerable:!0,get:function(){return st.zipAll}});var at=n(97594);Object.defineProperty(t,"zipWith",{enumerable:!0,get:function(){return at.zipWith}})},90260:(e,t,n)=>{var r=global.process;const i=function(e){return e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on};if(i(r)){var o,s=n(39491),a=n(83261),c=/^win/i.test(r.platform),u=n(82361);"function"!=typeof u&&(u=u.EventEmitter),r.__signal_exit_emitter__?o=r.__signal_exit_emitter__:((o=r.__signal_exit_emitter__=new u).count=0,o.emitted={}),o.infinite||(o.setMaxListeners(1/0),o.infinite=!0),e.exports=function(e,t){if(!i(global.process))return function(){};s.equal(typeof e,"function","a callback must be provided for exit handler"),!1===p&&h();var n="exit";return t&&t.alwaysLast&&(n="afterexit"),o.on(n,e),function(){o.removeListener(n,e),0===o.listeners("exit").length&&0===o.listeners("afterexit").length&&l()}};var l=function(){p&&i(global.process)&&(p=!1,a.forEach((function(e){try{r.removeListener(e,d[e])}catch(e){}})),r.emit=y,r.reallyExit=g,o.count-=1)};e.exports.unload=l;var f=function(e,t,n){o.emitted[e]||(o.emitted[e]=!0,o.emit(e,t,n))},d={};a.forEach((function(e){d[e]=function(){i(global.process)&&r.listeners(e).length===o.count&&(l(),f("exit",null,e),f("afterexit",null,e),c&&"SIGHUP"===e&&(e="SIGINT"),r.kill(r.pid,e))}})),e.exports.signals=function(){return a};var p=!1,h=function(){!p&&i(global.process)&&(p=!0,o.count+=1,a=a.filter((function(e){try{return r.on(e,d[e]),!0}catch(e){return!1}})),r.emit=v,r.reallyExit=m)};e.exports.load=h;var g=r.reallyExit,m=function(e){i(global.process)&&(r.exitCode=e||0,f("exit",r.exitCode,null),f("afterexit",r.exitCode,null),g.call(r,r.exitCode))},y=r.emit,v=function(e,t){if("exit"===e&&i(global.process)){void 0!==t&&(r.exitCode=t);var n=y.apply(this,arguments);return f("exit",r.exitCode,null),f("afterexit",r.exitCode,null),n}return y.apply(this,arguments)}}else e.exports=function(){return function(){}}},83261:e=>{e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")},21914:(e,t,n)=>{"use strict";const r=n(41346),i=(e,t,n)=>{if(!1===r(e))throw new TypeError("toRegexRange: expected the first argument to be a number");if(void 0===t||e===t)return String(e);if(!1===r(t))throw new TypeError("toRegexRange: expected the second argument to be a number.");let o={relaxZeros:!0,...n};"boolean"==typeof o.strictZeros&&(o.relaxZeros=!1===o.strictZeros);let c=e+":"+t+"="+String(o.relaxZeros)+String(o.shorthand)+String(o.capture)+String(o.wrap);if(i.cache.hasOwnProperty(c))return i.cache[c].result;let u=Math.min(e,t),l=Math.max(e,t);if(1===Math.abs(u-l)){let n=e+"|"+t;return o.capture?`(${n})`:!1===o.wrap?n:`(?:${n})`}let f=p(e)||p(t),d={min:e,max:t,a:u,b:l},h=[],g=[];return f&&(d.isPadded=f,d.maxLen=String(d.max).length),u<0&&(g=s(l<0?Math.abs(l):1,Math.abs(u),d,o),u=d.a=0),l>=0&&(h=s(u,l,d,o)),d.negatives=g,d.positives=h,d.result=function(e,t,n){let r=a(e,t,"-",!1)||[],i=a(t,e,"",!1)||[],o=a(e,t,"-?",!0)||[];return r.concat(o).concat(i).join("|")}(g,h),!0===o.capture?d.result=`(${d.result})`:!1!==o.wrap&&h.length+g.length>1&&(d.result=`(?:${d.result})`),i.cache[c]=d,d.result};function o(e,t,n){if(e===t)return{pattern:e,count:[],digits:0};let r=function(e,t){let n=[];for(let r=0;r1&&i.count.pop(),i.count.push(c.count[0]),i.string=i.pattern+d(i.count),u=t+1)}return a}function a(e,t,n,r,i){let o=[];for(let i of e){let{string:e}=i;r||u(t,"string",e)||o.push(n+e),r&&u(t,"string",e)&&o.push(n+e)}return o}function c(e,t){return e>t?1:t>e?-1:0}function u(e,t,n){return e.some((e=>e[t]===n))}function l(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function f(e,t){return e-e%Math.pow(10,t)}function d(e){let[t=0,n=""]=e;return n||t>1?`{${t+(n?","+n:"")}}`:""}function p(e){return/^-?(0+)\d/.test(e)}function h(e,t,n){if(!t.isPadded)return e;let r=Math.abs(t.maxLen-String(e).length),i=!1!==n.relaxZeros;switch(r){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${r}}`:`0{${r}}`}}i.cache={},i.clearCache=()=>i.cache={},e.exports=i},92643:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SuggestionGenerator=t.maxNumberOfSuggestionsForLongWords=t.wordLengthForLimitingSuggestions=t.maxWordLengthForSuggestions=void 0;const r=n(42114),i=10,o=/[+]/g;t.maxWordLengthForSuggestions=20,t.wordLengthForLimitingSuggestions=15,t.maxNumberOfSuggestionsForLongWords=1,t.SuggestionGenerator=class{constructor(e){this.getSettings=e}async genSuggestions(e,n){const{settings:s,dictionary:a}=await this.getSettings(e),{numSuggestions:c=i}=s;if(n.length>t.maxWordLengthForSuggestions)return[];const u={numChanges:3,numSuggestions:n.length>t.wordLengthForLimitingSuggestions?Math.min(t.maxNumberOfSuggestionsForLongWords,c):c,compoundMethod:r.CompoundWordsMethod.NONE,ignoreCase:!s.caseSensitive,includeTies:!1};return a.suggest(n,u).map((e=>({...e,word:e.word.replace(o,"")})))}async genWordSuggestions(e,t){return(await this.genSuggestions(e,t)).map((e=>e.word))}}},37755:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createClientApi=void 0;const r=n(29439);t.createClientApi=function(e){return{sendOnSpellCheckDocument:t=>function(t,n){const i=new r.NotificationType("onSpellCheckDocument");e.sendNotification(i,n)}(0,t),sendOnWorkspaceConfigForDocumentRequest:t=>function(t,n){const i=new r.RequestType("onWorkspaceConfigForDocumentRequest");return e.sendRequest(i,n)}(0,t)}}},71816:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.onCodeActionHandler=void 0;const s=n(34288),a=n(54767),c=o(n(56442)),u=n(42114),l=n(72937),f=n(92643),d=n(46797),p=n(52808),h=(n(73837),n(67811)),g=n(97586),m=n(77601),y=n(92131),v=s.Command.create;function b(e,t){return e.getText(t)}function S(e,t){const n=a.CodeAction.create(e.title,e,a.CodeActionKind.QuickFix);return n.diagnostics=t,n}t.onCodeActionHandler=function(e,t,n,r){const i=new f.SuggestionGenerator(s),o=new Map;async function s(e){const r=o.get(e.uri),i=n(e);if(!r||r.docVersion!==e.version||r.settingsVersion!==i){const n=async function(e){const n=(0,u.constructSettingsForText)(await t(e),e.getText(),e.languageId);return{settings:n,dictionary:await(0,u.getDictionary)(n)}}(e);o.set(e.uri,{docVersion:e.version,settings:n,settingsVersion:i})}return o.get(e.uri).settings}return async t=>{const n=[],{context:o,textDocument:{uri:f}}=t,{diagnostics:E}=o,x=E.filter((e=>e.source===c.diagSource));if(!x.length)return[];const w=e.get(f);if(!w)return[];(0,p.log)(`CodeAction Only: ${o.only} Num: ${E.length}`,f);const _=w,{settings:O,dictionary:C}=await s(_);if(!(0,l.isUriAllowed)(f,O.allowedSchemas))return(0,p.log)(`CodeAction Uri Not allowed: ${f}`),[];const D=r.sendOnWorkspaceConfigForDocumentRequest({uri:f});function A(e){return i.genWordSuggestions(_,e)}return async function(e){let r;(0,p.log)("CodeAction generate suggestions");for(const e of x){const t=b(_,e.range);r=r||t,(await A(t)).map((e=>u.Text.isLowerCase(e)?u.Text.matchCase(t,e):e)).filter((0,d.uniqueFilter)()).forEach((t=>{var r,i;const o=S(v(t,"cSpell.editText",f,_.version,[(r=e.range,i=t,a.TextEdit.replace(r,i||""))]),[e]);n.push(o)}))}const i=r||b(_,t.range);if(i&&x.length){const e=await D,t=(0,g.calculateConfigTargets)(O,e);n.push(...function(e,t,n,r){const i=new Set;return r.filter((e=>!("dictionary"!==e.kind&&i.has(e.scope)&&!e.has.words||(i.add(e.scope),0)))).map((r=>{switch(r.kind){case m.ConfigKinds.Vscode:return function(r){return S(h.clientCommands.addWordsToVSCodeSettingsFromServer(`Add: "${n}" to ${r.scope} settings`,[n],e.uri,r.scope),t)}(r);case m.ConfigKinds.Cspell:return function(r){return S(h.clientCommands.addWordsToConfigFileFromServer(`Add: "${n}" to config: ${r.name}`,[n],e.uri,{name:r.name,uri:r.configUri}),t)}(r);case m.ConfigKinds.Dictionary:return function(r){const i=r.name,o=r.dictionaryUri,s=function(e){return e.scope!==m.ConfigScopes.Unknown?` (${(0,y.capitalize)(e.scope)})`:""}(r);return S(h.clientCommands.addWordsToDictionaryFileFromServer(`Add: "${n}" to dictionary: ${r.name}${s}`,[n],e.uri,{name:i,uri:o}),t)}(r)}}))}(_,x,i,t))}return n}()}}},67811:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clientCommands=void 0;const r=n(34288);t.clientCommands={addWordsToConfigFileFromServer:(e,...t)=>r.Command.create(e,"cSpell.addWordsToConfigFileFromServer",...t),addWordsToDictionaryFileFromServer:(e,...t)=>r.Command.create(e,"cSpell.addWordsToDictionaryFileFromServer",...t),addWordsToVSCodeSettingsFromServer:(e,...t)=>r.Command.create(e,"cSpell.addWordsToVSCodeSettingsFromServer",...t)}},73979:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.debugExports=t.createWorkspaceNamesResolver=t.resolveSettings=void 0;const s=n(52808),a=o(n(22037)),c=o(n(71017)),u=n(70355),l=n(38563);function f(e){const t=u.URI.parse(e.uri);return{name:e.name,path:t.fsPath,uri:t}}function d(e,t,n){return function(e,t,n){const r=[].concat([[".",e.path],["~",a.homedir()],["${workspaceFolder}",e.path],["${root}",n||t[0]?.path||e.path],["${workspaceRoot}",n||t[0]?.path||e.path]]).concat(t.map((e=>[`\${workspaceFolder:${e.name}}`,e.path]))),i=new Map(r),o=/^(?:\.|~|\$\{(?:workspaceFolder|workspaceRoot|root)(?:[^}]*)\})/i;function c(e){return i.get(e)||((0,s.logError)(`Failed to resolve ${e}`),e)}return e=>e.replace(o,c)}(f(e),t.map(f),n)}function p(e,t,n){return function(e,t,n){const r={...e},i=[...t];return e=>{const t=[["${workspaceFolder}",r.path]].concat(i.map((e=>[`\${workspaceFolder:${e.name}}`,e.path])));n=n||r.path;const o=new Map(t),a=/^\$\{workspaceFolder(?:[^}]*)\}/i,u=f(e||"${workspaceFolder}");function l(e){const t=o.get(e);return void 0!==t?t:((0,s.logError)(`Failed to resolve ${e}`),e)}function f(e){const t=e?.match(a);if(t&&e){const n=l(t[0]);return c.join(n,e.slice(t[0].length))}return e}return e=>{"string"==typeof e&&(e={glob:e,root:u});const t=e.glob.match(a);if(t){const n=l(t[0]);return{...e,glob:e.glob.slice(t[0].length),root:n}}return{...e,root:f(e.root)}}}}(f(e),t.map(f),n)}function h(e,t){const n=function(e,t){return g(e,t)}(e,t);return n.dictionaryDefinitions=y(n.dictionaryDefinitions,t),n.languageSettings=function(e,t){return e?e.map((e=>v({...g(e,t)}))):e}(n.languageSettings,t),n.ignorePaths=m(n.ignorePaths,t.resolveGlob(n.globRoot)),n.files=m(n.files,t.resolveGlob(n.globRoot)),n.workspaceRootPath=n.workspaceRootPath?t.resolveFile(n.workspaceRootPath):void 0,v(n)}function g(e,t){const n={...e};return n.dictionaryDefinitions=y(n.dictionaryDefinitions,t),v(n)}function m(e,t){return e?e.map(t):e}function y(e,t){return e?e.map((e=>e.path?{...e,path:t.resolveFile(e.path)}:e)):e}function v(e){if("object"!=typeof e)return e;const t=e;for(const e of Object.keys(t))void 0===t[e]&&delete t[e];return e}t.resolveSettings=function(e,t){const n=h(e,t);n.import=function(e,t){return e?("string"==typeof e?[e]:e).map(t.resolveFile):e}(n.import,t),n.overrides=function(e,t){const{overrides:n}=e;if(!n)return n;const r=t.resolveGlob(e.globRoot);return n.map((e=>{const n={...h(e,t)};return n.filename=(i=n.filename)?Array.isArray(i)?i.map(r):r(i):i,v(n);var i}))}(n,t);const r=y((0,l.extractDictionaryDefinitions)(n),t);n.dictionaryDefinitions=r.length?r:void 0;const i=(0,l.extractDictionaryList)(n);return n.dictionaries=i.length?i:void 0,delete n.customUserDictionaries,delete n.customWorkspaceDictionaries,delete n.customFolderDictionaries,v(n)},t.createWorkspaceNamesResolver=function(e,t,n){return{resolveFile:d(e,t,n),resolveGlob:p(e,t,n)}},t.debugExports={shallowCleanObject:v}},77601:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.weight=t.isConfigTargetVSCode=t.isConfigTargetCSpell=t.isConfigTargetDictionary=t.isConfigTargetOfKind=t.ConfigScopes=t.ConfigKinds=void 0;const n={dictionary_unknown:340,dictionary_folder:330,dictionary_workspace:320,dictionary_user:130,cspell_unknown:220,cspell_folder:219,cspell_workspace:218,cspell_user:120,vscode_unknown:210,vscode_folder:210,vscode_workspace:200,vscode_user:110};function r(e){return t=>"object"==typeof t&&t.kind===e}t.ConfigKinds={Dictionary:"dictionary",Cspell:"cspell",Vscode:"vscode"},t.ConfigScopes={Unknown:"unknown",User:"user",Workspace:"workspace",Folder:"folder"},t.isConfigTargetOfKind=function(e,t){return"object"==typeof e&&e.kind===t},t.isConfigTargetDictionary=r(t.ConfigKinds.Dictionary),t.isConfigTargetCSpell=r(t.ConfigKinds.Cspell),t.isConfigTargetVSCode=r(t.ConfigKinds.Vscode),t.weight=function(e){return n[function(e){return`${e.kind}_${e.scope}`}(e)]}},97586:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.__testing__=t.calculateConfigTargets=void 0;const s=n(80915),a=o(n(71017)),c=n(70355),u=n(92131),l=n(77601),f=n(72937);function*d(e){function t(t){return{kind:l.ConfigKinds.Vscode,scope:t,name:(0,u.capitalize)(t),docUri:e.uri,folderUri:e.workspaceFolder,has:{words:e.words[t],ignoreWords:e.ignoreWords[t]}}}yield t(l.ConfigScopes.User),e.workspaceFolder&&(yield t(l.ConfigScopes.Workspace)),e.workspaceFile&&(yield t(l.ConfigScopes.Folder))}function p(e){return e.map((function(e,t){return{kind:l.ConfigKinds.Cspell,scope:l.ConfigScopes.Unknown,name:e.name||a.basename(e.source.filename),configUri:c.URI.file(e.source.filename).toString(),has:{words:e.words&&!0,ignoreWords:e.ignoreWords&&!0},sortKey:t}}))}function h(e){return(0,s.genSequence)(e).concatMap((function*(e){const t=function(e){const{scope:t}=e,n="string"==typeof t?[t]:t||[];let r=0;for(const e of n)r|=g[e]||0;return r||g.unknown}(e),n={kind:"dictionary",name:e.name,dictionaryUri:c.URI.file(e.path).toString(),scope:l.ConfigScopes.Unknown};t&g.user&&(yield{...n,scope:l.ConfigScopes.User}),t&g.workspace&&(yield{...n,scope:l.ConfigScopes.Workspace}),t&g.folder&&(yield{...n,scope:l.ConfigScopes.Folder}),t&g.unknown&&(yield{...n,scope:l.ConfigScopes.Unknown})})).toArray()}t.calculateConfigTargets=function(e,t){const n=[],r=(0,f.extractCSpellFileConfigurations)(e).filter((e=>!e.readonly)),i=(0,f.extractTargetDictionaries)(e);return n.push(...d(t)),n.push(...p(r)),n.push(...h(i)),y(n)};const g={user:1,workspace:2,folder:4,unknown:8};function m(e,t){return(0,l.weight)(t)-(0,l.weight)(e)||(e.sortKey||0)-(t.sortKey||0)}function y(e){return e.sort(m)}t.__testing__={workspaceConfigToTargets:d,dictionariesToTargets:h,cspellToTargets:p,sortTargets:y}},45606:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigWatcher=void 0;const r=n(37371),i=n(42114);class o extends r.FileWatcher{constructor(){super()}processSettings(e){try{(0,i.getSources)(e).filter(s).map((e=>e.source)).filter(s).map((e=>e.filename)).filter(s).forEach((e=>this.addFile(e)))}finally{}}}function s(e){return void 0!==e}t.ConfigWatcher=o},38563:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.extractDictionaryList=t.extractDictionaryDefinitions=t.extractCustomDictionaries=t.mapCustomDictionaryEntryToCustomDictionaries=void 0;const s=o(n(71017));function a(e,t){return e?e.map((e=>"string"==typeof e?{[e]:!0}:{[e.name]:{...e,scope:e.scope||t}})).reduce(((e,t)=>Object.assign(e,t)),{}):{}}function c(e){return Object.assign({},a(e.customUserDictionaries,"user"),a(e.customWorkspaceDictionaries,"workspace"),a(e.customFolderDictionaries,"folder"),e.customDictionaries||{})}function u(e){if(void 0===e.file)return e;const{file:t,path:n,...r}=e;return{...r,path:s.join(n||".",t)}}t.mapCustomDictionaryEntryToCustomDictionaries=a,t.extractCustomDictionaries=c,t.extractDictionaryDefinitions=function(e){const t=c(e),n=new Map((e.dictionaryDefinitions||[]).map(u).map((e=>[e.name,e])));for(const[e,r]of Object.entries(t)){if("boolean"==typeof r){const t=n.get(e),i=r;t&&t.addWords!==i&&n.set(e,{...t,addWords:i});continue}const t=r.name||e,i=n.get(t);if(i){n.set(t,{...i,...r});continue}const o=r.path;o&&n.set(t,{...r,path:o,name:t})}return[...n.values()]},t.extractDictionaryList=function(e){const t=c(e);var n;return(e.dictionaries||[]).concat((n=t,Object.entries(n).map((([e,t])=>"boolean"==typeof t?t?e:"!"+e:t.name||e))))}},92805:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DictionaryWatcher=void 0;const r=n(37371);class i extends r.FileWatcher{constructor(){super()}processSettings(e){const t=new Map(e.dictionaryDefinitions?.map((e=>[e.name,e.path])));e.dictionaries?.map((e=>t.get(e))).filter((e=>!!e)).forEach((e=>this.addFile(e)))}}t.DictionaryWatcher=i},72937:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.__testing__=t.isExcluded=t.isIncluded=t.calcIncludeExclude=t.extractTargetDictionaries=t.extractCSpellFileConfigurations=t.debugExports=t.stringifyPatterns=t.correctBadSettings=t.doesUriMatchAnyScheme=t.isUriBlocked=t.isUriAllowed=t.DocumentSettings=void 0;const s=n(27298),a=n(745),c=n(52808),u=n(4561),l=n(75965),f=n(11638),d=n(42114),p=o(n(10890)),h=n(80915),g=o(n(22037)),m=o(n(71017)),y=n(70355),v=n(38027),b=n(46797),S=n(11690),E=n(73979),x=v.extensionId,w=["**/*.rendered","__pycache__/**"],_=["gist","file","sftp","untitled","vscode-notebook-cell"],O=["git","output","debug","vscode"],C=y.URI.file("").toString(),D=Object.freeze({}),A=Object.freeze({"vscode-notebook-cell":!0});function P(e){const t=e.filter((e=>function(e){try{return p.statSync(e).isFile()}catch(e){}return!1}(e)));return(0,c.log)("readSettingsFiles:",t),t.length?(0,d.readSettingsFiles)(t):{}}function T(...e){const t=e.map((e=>"~"===e[0]?g.homedir()+e.slice(1):e));return m.resolve(...t)}function R(e,t){const n=y.URI.parse(e).scheme;return t.findIndex((e=>e===n))>=0}function k(...e){return e.map((({enableFiletypes:e=[]})=>e)).reduce(((e,t)=>e.concat(t)),[])}function F(e,t){const{enableFiletypes:n,enabledLanguageIds:r=[],...i}=t,o=new Set(r);return M(e).forEach((e=>{"!"===e[0]?o.delete(e.slice(1)):o.add(e)})),o.size||void 0!==t.enabledLanguageIds?{...i,enabledLanguageIds:[...o]}:{...i}}function M(e){return e.map((e=>e.replace(/!/g,"~"))).sort().map((e=>e.replace(/~/g,"!"))).map((e=>e.replace(/^(!!)+/,"")))}t.DocumentSettings=class{constructor(e,t=D){this.connection=e,this.defaultSettings=t,this.cachedValues=[],this.fetchSettingsForUri=this.createCache((e=>this._fetchSettingsForUri(e))),this.fetchVSCodeConfiguration=this.createCache((e=>this._fetchVSCodeConfiguration(e))),this.fetchRepoRootForDir=this.createCache((e=>(0,l.findRepoRoot)(e))),this._folders=this.createLazy((()=>this.fetchFolders())),this.configsToImport=new Set,this.importedSettings=this.createLazy((()=>this._importSettings())),this._version=0,this.gitIgnore=new l.GitIgnore,this.extractCSpellConfigurationFiles=U,this.extractCSpellFileConfigurations=z,this.extractTargetDictionaries=G}async getSettings(e){return this.getUriSettings(e.uri)}getUriSettings(e){return this.fetchUriSettings(e)}async calcIncludeExclude(e){const t=await this.fetchSettingsForUri(e.toString()),n=J(t,e),r=await this._isGitIgnoredEx(t,e);return{...n,ignored:r?.matched,gitignoreInfo:r}}async isExcluded(e){return V(await this.fetchSettingsForUri(e),y.URI.parse(e))}async isGitIgnored(e){const t=await this.fetchUriSettingsEx(e.toString());return this._isGitIgnored(t,e)}async _isGitIgnored(e,t){if(e.settings.useGitignore)return await this.gitIgnore.isIgnored(t.fsPath)}async _isGitIgnoredEx(e,t){if(!e.settings.useGitignore)return;const n=await this.fetchRepoRootForFile(t);return n&&this.gitIgnore.addRoots([n]),await this.gitIgnore.isIgnoredEx(t.fsPath)}async calcExcludedBy(e){return function(e,t){const n=m.normalize(y.URI.parse(e).fsPath),r=t.excludeGlobMatcher.matchEx(n);if(!1===r.matched)return[];const i={glob:(o=r).pattern.rawGlob||o.pattern.glob||o.glob,root:o.pattern.rawRoot||o.pattern.root||o.root};var o;const s=(0,h.genSequence)((0,d.getSources)(t.settings)).filter((function(e){return!e.source?.sources?.length})).filter((0,b.uniqueFilter)()).concatMap((e=>e.ignorePaths?.map((t=>({glob:t,settings:e})))||[]));return s.filter((function(e){return t=i,n=e.glob,t=B(t),n=B(n),t.glob===n.glob&&t.root===n.root;var t,n})).toArray()}(e,await this.fetchUriSettingsEx(e))}resetSettings(){(0,c.log)("resetSettings"),(0,d.clearCachedFiles)(),this.cachedValues.forEach((e=>e.clear())),this._version+=1,this.gitIgnore=new l.GitIgnore}get folders(){return this._folders()}_importSettings(){return(0,c.log)("importSettings"),P([...this.configsToImport].sort())}get version(){return this._version}registerConfigurationFile(e){(0,c.log)("registerConfigurationFile:",e),this.configsToImport.add(e),this.importedSettings.clear(),this.resetSettings()}async fetchUriSettings(e){return(await this.fetchUriSettingsEx(e)).settings}fetchUriSettingsEx(e){return this.fetchSettingsForUri(e)}async findMatchingFolder(e,t){return(await this.matchingFoldersForUri(e))[0]||t}rootForUri(e){return y.URI.parse(e||C).with({path:""})}rootFolderForUri(e){return{uri:this.rootForUri(e).toString(),name:"root"}}async fetchFolders(){return await(0,S.getWorkspaceFolders)(this.connection)||[]}async _fetchVSCodeConfiguration(e){const[t,n]=(await(0,S.getConfiguration)(this.connection,[{scopeUri:e||void 0,section:x},{section:"search"}])).map((e=>e||{}));return{cSpell:t,search:n}}async fetchRepoRootForFile(e){const t=(0,u.toUri)(e),n=y.Utils.dirname(t);return this.fetchRepoRootForDir(n.fsPath)}async findCSpellConfigurationFilesForUri(e){const t=("string"==typeof e?y.URI.parse(e):e).toString(),n=await this.fetchSettingsForUri(t);return this.extractCSpellConfigurationFiles(n.settings)}async fetchSettingsFromVSCode(e){const{cSpell:t,search:n}=await this.fetchVSCodeConfiguration(e||""),{exclude:r={}}=n,{ignorePaths:i=[]}=t;return{...t,id:"VSCode-Config",ignorePaths:i.concat(d.ExclusionHelper.extractGlobsFromExcludeFilesGlobMap(r))}}async _fetchSettingsForUri(e){(0,c.log)(`fetchFolderSettings: URI ${e}`);const t=y.URI.parse(e);if(t.scheme in A)return this.fetchSettingsForUri(function(e){return e.with({scheme:"file",query:"",fragment:""})}(t).toString());const n=m.normalize(t.fsPath),r=await this.fetchSettingsFromVSCode(e),i=await this.resolveWorkspacePaths(r,e),o=await(0,d.searchForConfig)(n),s=this.rootFolderForUri(e),u=await this.folders,l=await this.findMatchingFolder(e,s),p=function(e,t){(0,c.log)("resolveConfigImports:",t);const n=m.normalize(y.URI.parse(t).fsPath),r="string"==typeof e.import?[e.import]:e.import||[],i=r.map((e=>T(n,e)));(0,c.log)(`resolvingConfigImports: [\n${r.join("\n")}]`),(0,c.log)(`resolvingConfigImports ABS: [\n${i.join("\n")}]`);const{import:o,...s}=i.length?(0,d.mergeSettings)(P([...i]),e):e;return s}(i,l.uri),h=l!==s?l:u[0]||l,g=[];this.defaultSettings!==D&&g.push(this.defaultSettings),g.push(this.importedSettings()),g.push(p),o&&g.push(o);const v=(0,d.mergeSettings)(g[0],...g.slice(1)),b=F(k(v),v),S=(0,d.calcOverrideSettings)(b,n),{ignorePaths:E=[],files:x=[]}=S,_=y.URI.parse(h.uri).fsPath;x.length||!1===i.spellCheckOnlyWorkspaceFiles||(u.forEach((e=>x.push({glob:"**",root:y.URI.parse(e.uri).fsPath}))),S.enableGlobDot=S.enableGlobDot??!0),S.files=x;const O=E.concat(w),C=new f.GlobMatcher(O,_),R={root:_,mode:"include"};return(0,a.setIfDefined)(R,"dot",S.enableGlobDot),{uri:e,vscodeSettings:{cSpell:i},settings:S,excludeGlobMatcher:C,includeGlobMatcher:new f.GlobMatcher(x,R)}}async resolveWorkspacePaths(e,t){const n=await this.folders,r=await this.findMatchingFolder(t)||n[0]||this.rootFolderForUri(t),i=(0,E.createWorkspaceNamesResolver)(r,n,e.workspaceRootPath);return(0,E.resolveSettings)(e,i)}async matchingFoldersForUri(e){return function(e,t){return e.filter((({uri:e})=>t.startsWith(e))).sort(((e,t)=>t.uri.length-e.uri.length))}(await this.folders,e)}createCache(e){const t=(0,s.createAutoLoadCache)(e);return this.cachedValues.push(t),t}createLazy(e){const t=(0,s.createLazyValue)(e);return this.cachedValues.push(t),t}},t.isUriAllowed=function(e,t){return R(e,t=t||_)},t.isUriBlocked=function(e,t=O){return R(e,t)},t.doesUriMatchAnyScheme=R;const j=new Map([['/"""(.*?\\n?)+?"""/g','/(""")[^\\1]*?\\1/g'],["/'''(.*?\\n?)+?'''/g","/(''')[^\\1]*?\\1/g"]]);function I(e){return"string"!=typeof e?e:j.get(e)||e}function N(e){return Array.isArray(e)?e.map(I):I(e)}function L(e){const t=N(e.pattern);return t===e.pattern?e:{...e,pattern:t}}function B(e){return"string"==typeof e?{glob:e}:e}function W(e){return!!e.source?.filename}function U(e){return z(e).map((({source:e})=>y.URI.file(e.filename)))}t.correctBadSettings=function(e){const t={...e};return t.patterns=t?.patterns?.map(L),t.ignoreRegExpList=t?.ignoreRegExpList?.map(I),t.includeRegExpList=t?.includeRegExpList?.map(I),t},t.stringifyPatterns=function(e){if(!e)return e;const t=e.patterns?.map((e=>({...e,pattern:e.pattern.toString()})));return{...e,patterns:t}},t.debugExports={fixRegEx:N,fixPattern:L,resolvePath:T,filterConfigFilesToMatchInheritedPathOfFile:function(e,t){const n=function(e){const t=e.toString();return e=>{const n=y.Utils.dirname(e);return!!t.startsWith(n.toString())||".vscode"===y.Utils.basename(n)&&t.startsWith(y.Utils.dirname(n).toString())}}(y.Utils.dirname(t));return e.filter(n)}};const q=/@cspell\b/,$=/\bstreetsidesoftware\.code-spell-checker\b/;function z(e){return(0,d.getSources)(e).filter(W).filter((({source:e})=>!q.test(e.filename))).filter((({source:e})=>!$.test(e.filename))).reverse()}function G(e){const{dictionaries:t=[],dictionaryDefinitions:n=[]}=e,r=new Map(n.map((e=>[e.name,e]))),i=t.map((e=>r.get(e))).filter(K),o=/\.txt$/;return i.filter(H).filter((e=>o.test(e.path)&&e.addWords)).filter((e=>!q.test(e.path))).filter((e=>!$.test(e.path)))}function H(e){return void 0===e.file&&!!e.path&&e.addWords}function K(e){return null!=e}function J(e,t){return{include:X(e,t),exclude:V(e,t)}}function X(e,t){return!e.settings.files?.length||e.includeGlobMatcher.match(t.fsPath)}function V(e,t){return e.excludeGlobMatcher.match(t.fsPath)}t.extractCSpellFileConfigurations=z,t.extractTargetDictionaries=G,t.calcIncludeExclude=J,t.isIncluded=X,t.isExcluded=V,t.__testing__={extractTargetDictionaries:G,extractEnableFiletypes:k,normalizeEnableFiletypes:M,applyEnableFiletypes:F}},11690:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getWorkspaceFolders=t.getConfiguration=void 0;const r=n(52808),i=n(46797);t.getConfiguration=function(e,t){const n=t.map((e=>e.scopeUri)).filter(i.isDefined);return(0,r.log)("getConfiguration",n),e.workspace.getConfiguration(t)},t.getWorkspaceFolders=function(e){return e.workspace.getWorkspaceFolders()}},38027:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.diagnosticSource=t.extensionId=void 0,t.extensionId="cSpell",t.diagnosticSource=t.extensionId},57424:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(44168);process.on("unhandledRejection",(e=>{console.log("unhandledRejection",e)})),process.on("uncaughtException",(e=>{console.log("uncaughtException",e)})),(0,r.run)()},88953:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createProgressNotifier=void 0;let n=0;t.createProgressNotifier=function(e){return{emitSpellCheckDocumentStep:(t,r,i)=>e.sendOnSpellCheckDocument(function(e,t,r){return{uri:e.uri,version:e.version,step:t,seq:++n,ts:Date.now(),numIssues:r,done:void 0!==r}}(t,r,i))}}},44168:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.run=void 0;const s=n(745),a=n(52808),c=n(4561),u=o(n(42114)),l=n(42114),f=n(80977),d=n(39002),p=n(64881),h=n(34288),g=n(37755),m=n(71816),y=n(97586),v=n(45606),b=n(92805),S=n(72937),E=n(88953),x=n(46797),w=n(10629),_=n(32917),O=o(n(56442));(0,a.log)("Starting Spell Checker Server");const C=u,D=O.defaultCheckLimit,A={...u.mergeSettings((0,l.getDefaultSettings)(),u.getGlobalSettings(),{id:"Extension overrides",patterns:[],ignoreRegExpList:[]}),checkLimit:D,enabled:!1};t.run=function(){const e=new f.ReplaySubject(1),t=new f.ReplaySubject(1),n=new f.ReplaySubject(1),r=new Map,i=new Map;let o=!1;const D=[],P=new b.DictionaryWatcher;D.push(P);const T=new Map,R=new v.ConfigWatcher;D.push(R);const k={isSpellCheckEnabled:async function(e){return z(e)},getConfigurationForDocument:async function(e){return G(e)},splitTextIntoWords:function(e){return{words:(0,x.textToWords)(e)}},spellingSuggestions:async function(e){return{}}};(0,a.log)("Create Connection");const F=(0,h.createConnection)(h.ProposedFeatures.all),M=new S.DocumentSettings(F,A),j=(0,g.createClientApi)(F),I=(0,E.createProgressNotifier)(j),N=new h.TextDocuments(p.TextDocument);function L(e){(0,a.logInfo)("Configuration Change"),B()}function B(){t.next(void 0),async function(){try{const e=await F.workspace.getConfiguration([{section:"cSpell.logLevel"},{section:"cSpell.logFile"}]),t=e[0],n=e[1];a.logger.level=t,function(e){if(!e?.endsWith(".log"))return void a.logger.setConnection(F);const t=a.logger.connection;t instanceof s.LogFileConnection&&t.filename===e||(a.logger.setConnection(new s.LogFileConnection(e)),t instanceof s.LogFileConnection&&t.close())}(n),console.error("UpdateLogLevel: %o %s",[t,n],process.cwd())}catch(e){a.logger.setConnection({console,onExit:()=>{}});const t=`Failed to get config: ${JSON.stringify(e)}`;a.logger.error(t)}!async function(){const e=await F.workspace.getWorkspaceFolders();e?(0,a.setWorkspaceFolders)(e.map((e=>e.uri))):(0,a.setWorkspaceFolders)([])}()}()}function W(e){return U(e.uri)}function U(e){return q(e)}F.onInitialize((e=>((0,a.log)("onInitialize"),(0,a.setWorkspaceBase)(e.rootUri?e.rootUri:""),{capabilities:{textDocumentSync:{openClose:!0,change:h.TextDocumentSyncKind.Incremental,willSave:!0,save:{includeText:!0}},codeActionProvider:{codeActionKinds:[h.CodeActionKind.QuickFix]}}}))),F.onDidChangeConfiguration(L);const q=(0,_.debounce)((function(e){return(0,a.log)("getActiveUriSettings",e),(0,l.refreshDictionaryCache)(1e3),M.getUriSettings(e||"")}),50),$={notifyConfigChange:()=>L(),registerConfigurationFile:function([e]){M.registerConfigurationFile(e),(0,a.logInfo)("Register Configuration File",e),t.next(void 0)}};Object.entries($).forEach((([e,t])=>{F.onNotification(e,t)})),D.push(P.listen((function(e,n){(0,a.logInfo)(`Dictionary Change ${e}`,n),t.next(void 0)}))),D.push(R.listen((function(e,t){(0,a.logInfo)(`Config File Change ${e}`,t),B()})));const z=(0,_.debounce)((async function(e){return(0,a.log)("handleIsSpellCheckEnabled",e.uri),Y(await U(e.uri),e)}),50,(({uri:e,languageId:t})=>`(${e})::(${t})`)),G=(0,_.debounce)((async function(e){(0,a.log)("handleGetConfigurationForDocument",e.uri);const{uri:t,workspaceConfig:n}=e,r=t&&N.get(t),i=(0,S.stringifyPatterns)(r&&await ee(r)||void 0),o=await U(t),s=(0,S.stringifyPatterns)(o),c=t?(await M.findCSpellConfigurationFilesForUri(t)).map((e=>e.toString())):[];return{configFiles:c,configTargets:n?(0,y.calculateConfigTargets)(s,n):[],docSettings:i,settings:s,...await Y(o,e)}}),100,(e=>JSON.stringify(e)));Object.entries(k).forEach((([e,t])=>{F.onRequest(e,t)}));const H=e.pipe((0,d.filter)((e=>!r.has(e.uri)))).subscribe((t=>{if(r.has(t.uri))return;const n=t.uri;(0,a.log)("Register Document Handler:",n),(0,S.isUriBlocked)(n)?r.set(t.uri,e.pipe((0,d.filter)((e=>n===e.uri)),(0,d.take)(1),(0,d.tap)((e=>I.emitSpellCheckDocumentStep(e,"ignore"))),(0,d.tap)((e=>(0,a.log)("Ignoring:",e.uri)))).subscribe()):r.set(t.uri,e.pipe((0,d.filter)((e=>n===e.uri)),(0,d.tap)((e=>I.emitSpellCheckDocumentStep(e,"start"))),(0,d.tap)((e=>(0,a.log)(`Request Validate: v${e.version}`,e.uri)))).pipe((0,d.debounceTime)(50),(0,d.mergeMap)((async e=>({doc:e,settings:await W(e)}))),(0,d.tap)((e=>I.emitSpellCheckDocumentStep(e.doc,"settings determined"))),(0,d.debounce)((e=>(0,f.interval)(e.settings.spellCheckDelayMs||50).pipe((0,d.filter)((()=>!o))))),(0,d.filter)((e=>!i.has(e.doc.uri))),(0,d.mergeMap)(ne)).subscribe(K))}));function K(e){(0,a.log)(`Send Diagnostics v${e.version}`,e.uri);const t={uri:e.uri,version:e.version,diagnostics:e.diagnostics};F.sendDiagnostics(t)}const J=t.pipe((0,d.tap)((()=>(0,a.log)("Trigger Update Config"))),(0,d.debounceTime)(100),(0,d.tap)((()=>(0,a.log)("Update Config Triggered")))).subscribe((()=>{(0,a.log)("updateActiveSettings"),M.resetSettings(),P.clear(),T.clear(),n.next(void 0)})),X=n.pipe((0,d.debounceTime)(250)).subscribe((()=>{(0,a.log)("Validate all documents"),N.all().forEach((t=>e.next(t)))}));function V(e,t){const{enabledLanguageIds:n=[]}=t;return n.indexOf(e.languageId)>=0}async function Y(e,t){(0,a.log)("calcIncludeExcludeInfo",t.uri);const{uri:n,languageId:r}=t,i=r&&n?await V({uri:n,languageId:r},e):void 0,{include:o=!0,exclude:s=!1,ignored:u,gitignoreInfo:l}=n?await Q(n):{},f=n?T.get(n):void 0,d=o&&!s&&!u&&!f,p=s&&n?await async function(e){function t(e){const t=e.__importRef?.filename||e.source?.filename;return(0,c.toFileUri)(t)?.toString()}return(await M.calcExcludedBy(e)).map((e=>{return{glob:(n=e.glob,"string"==typeof n?n:n.glob),configUri:t(e.settings),id:e.settings.id,name:e.settings.name};var n}))}(n):void 0;return(0,a.log)("calcIncludeExcludeInfo done",t.uri),{excludedBy:p,fileEnabled:d,fileIsExcluded:s,fileIsIncluded:o,languageEnabled:i,gitignored:u,gitignoreInfo:l,blockedReason:n?T.get(n):void 0}}function Q(e){return M.calcIncludeExclude((0,c.toUri)(e))}async function Z(e){const t=await W(e);return{...u.mergeSettings(A,t),enabledLanguageIds:t.enabledLanguageIds}}async function ee(e){return C.constructSettingsForText(await Z(e),e.getText(),e.languageId)}function te(e,t=!0){const n=N.get(e.uri),r=n?.version!==e.version;return r&&t&&(0,a.log)(`validateTextDocument stale ${n?.version} <> ${e.version}:`,e.uri),r}async function ne(e){o=!0,I.emitSpellCheckDocumentStep(e.doc,"start validation");const t=await async function(){const{doc:t,settings:n}=e,{uri:r,version:i}=t;try{if(!(0,S.isUriAllowed)(r,n.allowedSchemas)){const e=r.split(":")[0];return(0,a.log)(`Schema not allowed (${e}), skipping:`,r),{uri:r,version:i,diagnostics:[]}}if(te(t))return{uri:r,version:i,diagnostics:[]};if(!await async function(e,t){const{uri:n}=e;return!!t.enabled&&V(e,t)&&!await async function(e){const t=await Q(e);return!t.include||t.exclude||!!t.ignored}(n)&&!function(e,t){const{uri:n}=e,{blockCheckingWhenLineLengthGreaterThan:r=w.defaultIsTextLikelyMinifiedOptions.blockCheckingWhenLineLengthGreaterThan,blockCheckingWhenAverageChunkSizeGreaterThan:i=w.defaultIsTextLikelyMinifiedOptions.blockCheckingWhenAverageChunkSizeGreaterThan,blockCheckingWhenTextChunkSizeGreaterThan:o=w.defaultIsTextLikelyMinifiedOptions.blockCheckingWhenTextChunkSizeGreaterThan}=t;if(T.has(n))return(0,a.log)(`File is blocked ${T.get(n)?.message}`,n),!0;const s=(0,w.isTextLikelyMinified)(e.getText(),{blockCheckingWhenAverageChunkSizeGreaterThan:i,blockCheckingWhenLineLengthGreaterThan:r,blockCheckingWhenTextChunkSizeGreaterThan:o});return s&&(T.set(n,s),(0,a.log)(`File is blocked: ${s.message}`,n)),!!s}(e,t)}(t,n))return(0,a.log)("validateTextDocument skip:",r),{uri:r,version:i,diagnostics:[]};(0,a.log)(`getSettingsToUseForDocument start ${t.version}`,r);const e=await ee(t);if((0,a.log)(`getSettingsToUseForDocument middle ${t.version}`,r),R.processSettings(e),(0,a.log)(`getSettingsToUseForDocument done ${t.version}`,r),te(t))return{uri:r,version:i,diagnostics:[]};if(e.enabled){(0,a.logInfo)(`Validate File: v${t.version}`,r),(0,a.log)(`validateTextDocument start: v${t.version}`,r);const n=(0,S.correctBadSettings)(e);!function(e){function t(...e){return e.filter((e=>!!e)).join(" ")}(0,l.extractImportErrors)(e).forEach((e=>{const n=e.error.toString(),r=e.referencedBy?.map((e=>e.filename)).filter(ie).map((e=>'"'+e+'"'))||[],i=r.length?t(" imported by \n",...r):"",o=t(n,i);re.has(o)||(re.add(o),F.console.warn(o),F.window.showWarningMessage(t(n,i)))}))}(n),P.processSettings(n);const o=await O.validateTextDocument(t,n);return(0,a.log)(`validateTextDocument done: v${t.version}`,r),{uri:r,version:i,diagnostics:o}}}catch(e){(0,a.logError)(`validateTextDocument: ${JSON.stringify(e)}`)}return{uri:r,version:i,diagnostics:[]}}();return I.emitSpellCheckDocumentStep(e.doc,"end validation",t.diagnostics.length),o=!1,t}const re=new Set;function ie(e){return!!e}N.listen(F),D.push(N.onDidChangeContent((t=>{e.next(t.document)})),N.onWillSave((e=>{const{uri:t,version:n}=e.document;(0,a.log)(`onWillSave: v${n}`,t),i.set(t,n)})),N.onDidSave((t=>{const{uri:n,version:r}=t.document;(0,a.log)(`onDidSave: v${r}`,n),i.delete(n),e.next(t.document)})),N.onDidClose((e=>{const t=e.document.uri,n=r.get(t);n&&(r.delete(t),n.unsubscribe()),F.sendDiagnostics({uri:t,diagnostics:[]})}))),F.onCodeAction((0,m.onCodeActionHandler)(N,Z,(()=>M.version),j)),F.onShutdown((()=>{D.forEach((e=>e.dispose())),D.length=0,H.unsubscribe(),J.unsubscribe(),X.unsubscribe();const e=[...r.values()];r.clear(),e.forEach((e=>e.unsubscribe()))})),F.listen()}},10629:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isTextLikelyMinified=t.defaultIsTextLikelyMinifiedOptions=t.ReasonMaxWordsSize=t.ReasonAverageWordsSize=t.ReasonLineLength=void 0;const r=n(80915);t.ReasonLineLength={code:"Lines_too_long.",message:"Lines are too long.",documentationRefUri:"https://streetsidesoftware.github.io/vscode-spell-checker/docs/configuration/#cspellblockcheckingwhenlinelengthgreaterthan"},t.ReasonAverageWordsSize={code:"Word_Size_Too_High.",message:"Average Word Size is Too High.",documentationRefUri:"https://streetsidesoftware.github.io/vscode-spell-checker/docs/configuration/#cspellblockcheckingwhenaveragechunksizegreaterthan"},t.ReasonMaxWordsSize={code:"Maximum_Word_Length_Exceeded",message:"Average Word Size is Too High.",documentationRefUri:"https://streetsidesoftware.github.io/vscode-spell-checker/docs/configuration/#cspellblockcheckingwhentextchunksizegreaterthan"},t.defaultIsTextLikelyMinifiedOptions={blockCheckingWhenLineLengthGreaterThan:1e4,blockCheckingWhenTextChunkSizeGreaterThan:500,blockCheckingWhenAverageChunkSizeGreaterThan:80},t.isTextLikelyMinified=function(e,n){const i=[0].concat((0,r.genSequence)(e.matchAll(/\n/g)).map((e=>e.index||0)).take(100).toArray());i.length<100&&i.push(e.length);const o=(0,r.genSequence)(i).scan(((e,t)=>[e[1],t]),[0,0]).map((([t,n])=>e.slice(t,n).trim())).filter((e=>!!e)).toArray();if((0,r.genSequence)(o).first((e=>e.length>n.blockCheckingWhenLineLengthGreaterThan)))return t.ReasonLineLength;const s=o.join("\n"),a=[...s.matchAll(/[\s,{}[\]]+/g)].map((e=>e.index||0));a.push(s.length);const c=a.length;return s.length/c>n.blockCheckingWhenAverageChunkSizeGreaterThan?t.ReasonAverageWordsSize:a.reduce(((e,t)=>[t,Math.max(e[1],t-e[0])]),[0,0])[1]>n.blockCheckingWhenTextChunkSizeGreaterThan&&t.ReasonMaxWordsSize}},32917:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debounce=void 0,t.debounce=function(e,t,n=(e=>e)){const r=new Map;return i=>{const o=n(i),s=r.get(o);if(s)return s.v;setTimeout((()=>r.delete(o)),t);const a=e(i);return r.set(o,{v:a}),a}}},37371:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FileWatcher=void 0;const i=n(52808),o=r(n(15914)),s=n(73837);t.FileWatcher=class{constructor(){this.watchedFile=new Map,this.listeners=new Set,this.dispose=()=>{this.clear()},this.trigger=(e,t)=>{this.notifyListeners(e,t)}}listen(e){return this.listeners.add(e),{dispose:()=>{this.listeners.delete(e)}}}addFile(e){if(!this.watchedFile.has(e))try{this.watchedFile.set(e,(0,o.default)(e,{persistent:!1},this.trigger))}catch(e){return(0,i.logError)((0,s.format)(e)),!1}return!0}clearFile(e){this.watchedFile.get(e)?.close(),this.watchedFile.delete(e)}clear(){for(const e of this.watchedFile.values())e.close();this.watchedFile.clear()}get watchedFiles(){return[...this.watchedFile.keys()]}notifyListeners(e,t){for(const n of this.listeners)n(e,t)}}},46797:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.textToWords=t.isDefined=t.uniqueFilter=void 0;var r=n(92131);Object.defineProperty(t,"uniqueFilter",{enumerable:!0,get:function(){return r.uniqueFilter}}),Object.defineProperty(t,"isDefined",{enumerable:!0,get:function(){return r.isDefined}}),Object.defineProperty(t,"textToWords",{enumerable:!0,get:function(){return r.textToWords}})},56442:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateTextDocument=t.defaultCheckLimit=t.diagSource=t.diagnosticCollectionName=t.validateText=void 0;const r=n(42114),i=n(54767),o=n(38027);var s=n(42114);Object.defineProperty(t,"validateText",{enumerable:!0,get:function(){return s.validateText}}),t.diagnosticCollectionName=o.diagnosticSource,t.diagSource=t.diagnosticCollectionName,t.defaultCheckLimit=500;const a=new Map([["error",i.DiagnosticSeverity.Error],["warning",i.DiagnosticSeverity.Warning],["information",i.DiagnosticSeverity.Information],["hint",i.DiagnosticSeverity.Hint]]);t.validateTextDocument=async function(e,n){const{diagnosticLevel:o=i.DiagnosticSeverity.Information.toString()}=n,s=a.get(o.toLowerCase())||i.DiagnosticSeverity.Information,c=1024*(n.checkLimit||t.defaultCheckLimit),u=e.getText().slice(0,c);return(await(0,r.validateText)(u,n)).map((t=>({...t,position:e.positionAt(t.offset)}))).map((e=>({...e,range:{start:e.position,end:{...e.position,character:e.position.character+e.text.length}}}))).map((({text:e,range:n,isFlagged:r})=>({severity:s,range:n,message:`"${e}": ${r?"Forbidden":"Unknown"} word.`,source:t.diagSource})))}},78743:(e,t,n)=>{var r=n(30775).strict;e.exports=function(e){if(r(e)){var t=Buffer.from(e.buffer);return e.byteLength!==e.buffer.byteLength&&(t=t.slice(e.byteOffset,e.byteOffset+e.byteLength)),t}return Buffer.from(e)}},55654:(e,t,n)=>{"use strict";const r=n(82829);e.exports=()=>r(32)},55725:(e,t)=>{"use strict";t.fromCallback=function(e){return Object.defineProperty((function(...t){if("function"!=typeof t[t.length-1])return new Promise(((n,r)=>{e.call(this,...t,((e,t)=>null!=e?r(e):n(t)))}));e.apply(this,t)}),"name",{value:e.name})},t.fromPromise=function(e){return Object.defineProperty((function(...t){const n=t[t.length-1];if("function"!=typeof n)return e.apply(this,t);e.apply(this,t.slice(0,-1)).then((e=>n(null,e)),n)}),"name",{value:e.name})}},5247:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CancellationSenderStrategy=t.CancellationReceiverStrategy=t.ConnectionError=t.ConnectionErrors=t.LogTraceNotification=t.SetTraceNotification=t.TraceFormat=t.Trace=t.ProgressType=t.createMessageConnection=t.NullLogger=t.ConnectionOptions=t.ConnectionStrategy=t.WriteableStreamMessageWriter=t.AbstractMessageWriter=t.MessageWriter=t.ReadableStreamMessageReader=t.AbstractMessageReader=t.MessageReader=t.CancellationToken=t.CancellationTokenSource=t.Emitter=t.Event=t.Disposable=t.ParameterStructures=t.NotificationType9=t.NotificationType8=t.NotificationType7=t.NotificationType6=t.NotificationType5=t.NotificationType4=t.NotificationType3=t.NotificationType2=t.NotificationType1=t.NotificationType0=t.NotificationType=t.ErrorCodes=t.ResponseError=t.RequestType9=t.RequestType8=t.RequestType7=t.RequestType6=t.RequestType5=t.RequestType4=t.RequestType3=t.RequestType2=t.RequestType1=t.RequestType0=t.RequestType=t.RAL=void 0,t.CancellationStrategy=void 0;const r=n(79141);Object.defineProperty(t,"RequestType",{enumerable:!0,get:function(){return r.RequestType}}),Object.defineProperty(t,"RequestType0",{enumerable:!0,get:function(){return r.RequestType0}}),Object.defineProperty(t,"RequestType1",{enumerable:!0,get:function(){return r.RequestType1}}),Object.defineProperty(t,"RequestType2",{enumerable:!0,get:function(){return r.RequestType2}}),Object.defineProperty(t,"RequestType3",{enumerable:!0,get:function(){return r.RequestType3}}),Object.defineProperty(t,"RequestType4",{enumerable:!0,get:function(){return r.RequestType4}}),Object.defineProperty(t,"RequestType5",{enumerable:!0,get:function(){return r.RequestType5}}),Object.defineProperty(t,"RequestType6",{enumerable:!0,get:function(){return r.RequestType6}}),Object.defineProperty(t,"RequestType7",{enumerable:!0,get:function(){return r.RequestType7}}),Object.defineProperty(t,"RequestType8",{enumerable:!0,get:function(){return r.RequestType8}}),Object.defineProperty(t,"RequestType9",{enumerable:!0,get:function(){return r.RequestType9}}),Object.defineProperty(t,"ResponseError",{enumerable:!0,get:function(){return r.ResponseError}}),Object.defineProperty(t,"ErrorCodes",{enumerable:!0,get:function(){return r.ErrorCodes}}),Object.defineProperty(t,"NotificationType",{enumerable:!0,get:function(){return r.NotificationType}}),Object.defineProperty(t,"NotificationType0",{enumerable:!0,get:function(){return r.NotificationType0}}),Object.defineProperty(t,"NotificationType1",{enumerable:!0,get:function(){return r.NotificationType1}}),Object.defineProperty(t,"NotificationType2",{enumerable:!0,get:function(){return r.NotificationType2}}),Object.defineProperty(t,"NotificationType3",{enumerable:!0,get:function(){return r.NotificationType3}}),Object.defineProperty(t,"NotificationType4",{enumerable:!0,get:function(){return r.NotificationType4}}),Object.defineProperty(t,"NotificationType5",{enumerable:!0,get:function(){return r.NotificationType5}}),Object.defineProperty(t,"NotificationType6",{enumerable:!0,get:function(){return r.NotificationType6}}),Object.defineProperty(t,"NotificationType7",{enumerable:!0,get:function(){return r.NotificationType7}}),Object.defineProperty(t,"NotificationType8",{enumerable:!0,get:function(){return r.NotificationType8}}),Object.defineProperty(t,"NotificationType9",{enumerable:!0,get:function(){return r.NotificationType9}}),Object.defineProperty(t,"ParameterStructures",{enumerable:!0,get:function(){return r.ParameterStructures}});const i=n(58437);Object.defineProperty(t,"Disposable",{enumerable:!0,get:function(){return i.Disposable}});const o=n(75165);Object.defineProperty(t,"Event",{enumerable:!0,get:function(){return o.Event}}),Object.defineProperty(t,"Emitter",{enumerable:!0,get:function(){return o.Emitter}});const s=n(10415);Object.defineProperty(t,"CancellationTokenSource",{enumerable:!0,get:function(){return s.CancellationTokenSource}}),Object.defineProperty(t,"CancellationToken",{enumerable:!0,get:function(){return s.CancellationToken}});const a=n(90451);Object.defineProperty(t,"MessageReader",{enumerable:!0,get:function(){return a.MessageReader}}),Object.defineProperty(t,"AbstractMessageReader",{enumerable:!0,get:function(){return a.AbstractMessageReader}}),Object.defineProperty(t,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return a.ReadableStreamMessageReader}});const c=n(41251);Object.defineProperty(t,"MessageWriter",{enumerable:!0,get:function(){return c.MessageWriter}}),Object.defineProperty(t,"AbstractMessageWriter",{enumerable:!0,get:function(){return c.AbstractMessageWriter}}),Object.defineProperty(t,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return c.WriteableStreamMessageWriter}});const u=n(31908);Object.defineProperty(t,"ConnectionStrategy",{enumerable:!0,get:function(){return u.ConnectionStrategy}}),Object.defineProperty(t,"ConnectionOptions",{enumerable:!0,get:function(){return u.ConnectionOptions}}),Object.defineProperty(t,"NullLogger",{enumerable:!0,get:function(){return u.NullLogger}}),Object.defineProperty(t,"createMessageConnection",{enumerable:!0,get:function(){return u.createMessageConnection}}),Object.defineProperty(t,"ProgressType",{enumerable:!0,get:function(){return u.ProgressType}}),Object.defineProperty(t,"Trace",{enumerable:!0,get:function(){return u.Trace}}),Object.defineProperty(t,"TraceFormat",{enumerable:!0,get:function(){return u.TraceFormat}}),Object.defineProperty(t,"SetTraceNotification",{enumerable:!0,get:function(){return u.SetTraceNotification}}),Object.defineProperty(t,"LogTraceNotification",{enumerable:!0,get:function(){return u.LogTraceNotification}}),Object.defineProperty(t,"ConnectionErrors",{enumerable:!0,get:function(){return u.ConnectionErrors}}),Object.defineProperty(t,"ConnectionError",{enumerable:!0,get:function(){return u.ConnectionError}}),Object.defineProperty(t,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return u.CancellationReceiverStrategy}}),Object.defineProperty(t,"CancellationSenderStrategy",{enumerable:!0,get:function(){return u.CancellationSenderStrategy}}),Object.defineProperty(t,"CancellationStrategy",{enumerable:!0,get:function(){return u.CancellationStrategy}});const l=n(35706);t.RAL=l.default},10415:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CancellationTokenSource=t.CancellationToken=void 0;const r=n(35706),i=n(88811),o=n(75165);var s;!function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:o.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:o.Event.None}),e.is=function(t){const n=t;return n&&(n===e.None||n===e.Cancelled||i.boolean(n.isCancellationRequested)&&!!n.onCancellationRequested)}}(s=t.CancellationToken||(t.CancellationToken={}));const a=Object.freeze((function(e,t){const n=r.default().timer.setTimeout(e.bind(t),0);return{dispose(){r.default().timer.clearTimeout(n)}}}));class c{constructor(){this._isCancelled=!1}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?a:(this._emitter||(this._emitter=new o.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}}t.CancellationTokenSource=class{get token(){return this._token||(this._token=new c),this._token}cancel(){this._token?this._token.cancel():this._token=s.Cancelled}dispose(){this._token?this._token instanceof c&&this._token.dispose():this._token=s.None}}},31908:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createMessageConnection=t.ConnectionOptions=t.CancellationStrategy=t.CancellationSenderStrategy=t.CancellationReceiverStrategy=t.ConnectionStrategy=t.ConnectionError=t.ConnectionErrors=t.LogTraceNotification=t.SetTraceNotification=t.TraceFormat=t.Trace=t.NullLogger=t.ProgressType=void 0;const r=n(35706),i=n(88811),o=n(79141),s=n(57040),a=n(75165),c=n(10415);var u,l,f,d,p,h,g,m,y,v,b,S,E;!function(e){e.type=new o.NotificationType("$/cancelRequest")}(u||(u={})),function(e){e.type=new o.NotificationType("$/progress")}(l||(l={})),t.ProgressType=class{constructor(){}},function(e){e.is=function(e){return i.func(e)}}(f||(f={})),t.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}}),function(e){e[e.Off=0]="Off",e[e.Messages=1]="Messages",e[e.Verbose=2]="Verbose"}(d=t.Trace||(t.Trace={})),function(e){e.fromString=function(t){if(!i.string(t))return e.Off;switch(t=t.toLowerCase()){case"off":default:return e.Off;case"messages":return e.Messages;case"verbose":return e.Verbose}},e.toString=function(t){switch(t){case e.Off:return"off";case e.Messages:return"messages";case e.Verbose:return"verbose";default:return"off"}}}(d=t.Trace||(t.Trace={})),function(e){e.Text="text",e.JSON="json"}(t.TraceFormat||(t.TraceFormat={})),function(e){e.fromString=function(t){return"json"===(t=t.toLowerCase())?e.JSON:e.Text}}(p=t.TraceFormat||(t.TraceFormat={})),function(e){e.type=new o.NotificationType("$/setTrace")}(h=t.SetTraceNotification||(t.SetTraceNotification={})),function(e){e.type=new o.NotificationType("$/logTrace")}(g=t.LogTraceNotification||(t.LogTraceNotification={})),function(e){e[e.Closed=1]="Closed",e[e.Disposed=2]="Disposed",e[e.AlreadyListening=3]="AlreadyListening"}(m=t.ConnectionErrors||(t.ConnectionErrors={}));class x extends Error{constructor(e,t){super(t),this.code=e,Object.setPrototypeOf(this,x.prototype)}}t.ConnectionError=x,function(e){e.is=function(e){const t=e;return t&&i.func(t.cancelUndispatched)}}(y=t.ConnectionStrategy||(t.ConnectionStrategy={})),function(e){e.Message=Object.freeze({createCancellationTokenSource:e=>new c.CancellationTokenSource}),e.is=function(e){const t=e;return t&&i.func(t.createCancellationTokenSource)}}(v=t.CancellationReceiverStrategy||(t.CancellationReceiverStrategy={})),function(e){e.Message=Object.freeze({sendCancellation(e,t){e.sendNotification(u.type,{id:t})},cleanup(e){}}),e.is=function(e){const t=e;return t&&i.func(t.sendCancellation)&&i.func(t.cleanup)}}(b=t.CancellationSenderStrategy||(t.CancellationSenderStrategy={})),function(e){e.Message=Object.freeze({receiver:v.Message,sender:b.Message}),e.is=function(e){const t=e;return t&&v.is(t.receiver)&&b.is(t.sender)}}(S=t.CancellationStrategy||(t.CancellationStrategy={})),(t.ConnectionOptions||(t.ConnectionOptions={})).is=function(e){const t=e;return t&&(S.is(t.cancellationStrategy)||y.is(t.connectionStrategy))},function(e){e[e.New=1]="New",e[e.Listening=2]="Listening",e[e.Closed=3]="Closed",e[e.Disposed=4]="Disposed"}(E||(E={})),t.createMessageConnection=function(e,n,y,v){const b=void 0!==y?y:t.NullLogger;let w=0,_=0,O=0;const C="2.0";let D;const A=Object.create(null);let P;const T=Object.create(null),R=new Map;let k,F,M=new s.LinkedMap,j=Object.create(null),I=Object.create(null),N=d.Off,L=p.Text,B=E.New;const W=new a.Emitter,U=new a.Emitter,q=new a.Emitter,$=new a.Emitter,z=new a.Emitter,G=v&&v.cancellationStrategy?v.cancellationStrategy:S.Message;function H(e){if(null===e)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+e.toString()}function K(e){}function J(){return B===E.Listening}function X(){return B===E.Closed}function V(){return B===E.Disposed}function Y(){B!==E.New&&B!==E.Listening||(B=E.Closed,U.fire(void 0))}function Q(){k||0===M.size||(k=r.default().timer.setImmediate((()=>{k=void 0,function(){if(0===M.size)return;const e=M.shift();try{o.isRequestMessage(e)?function(e){if(V())return;function t(t,r,i){const s={jsonrpc:C,id:e.id};t instanceof o.ResponseError?s.error=t.toJson():s.result=void 0===t?null:t,ee(s,r,i),n.write(s)}function r(t,r,i){const o={jsonrpc:C,id:e.id,error:t.toJson()};ee(o,r,i),n.write(o)}!function(e){if(N!==d.Off&&F)if(L===p.Text){let t;N===d.Verbose&&e.params&&(t=`Params: ${JSON.stringify(e.params,null,4)}\n\n`),F.log(`Received request '${e.method} - (${e.id})'.`,t)}else te("receive-request",e)}(e);const s=A[e.method];let a,c;s&&(a=s.type,c=s.handler);const u=Date.now();if(c||D){const s=String(e.id),l=G.receiver.createCancellationTokenSource(s);I[s]=l;try{let f;if(c)if(void 0===e.params){if(void 0!==a&&0!==a.numberOfParams)return void r(new o.ResponseError(o.ErrorCodes.InvalidParams,`Request ${e.method} defines ${a.numberOfParams} params but recevied none.`),e.method,u);f=c(l.token)}else if(Array.isArray(e.params)){if(void 0!==a&&a.parameterStructures===o.ParameterStructures.byName)return void r(new o.ResponseError(o.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by name but received parameters by position`),e.method,u);f=c(...e.params,l.token)}else{if(void 0!==a&&a.parameterStructures===o.ParameterStructures.byPosition)return void r(new o.ResponseError(o.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by position but received parameters by name`),e.method,u);f=c(e.params,l.token)}else D&&(f=D(e.method,e.params,l.token));const d=f;f?d.then?d.then((n=>{delete I[s],t(n,e.method,u)}),(t=>{delete I[s],t instanceof o.ResponseError?r(t,e.method,u):t&&i.string(t.message)?r(new o.ResponseError(o.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${t.message}`),e.method,u):r(new o.ResponseError(o.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,u)})):(delete I[s],t(f,e.method,u)):(delete I[s],function(t,r,i){void 0===t&&(t=null);const o={jsonrpc:C,id:e.id,result:t};ee(o,r,i),n.write(o)}(f,e.method,u))}catch(n){delete I[s],n instanceof o.ResponseError?t(n,e.method,u):n&&i.string(n.message)?r(new o.ResponseError(o.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${n.message}`),e.method,u):r(new o.ResponseError(o.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,u)}}else r(new o.ResponseError(o.ErrorCodes.MethodNotFound,`Unhandled method ${e.method}`),e.method,u)}(e):o.isNotificationMessage(e)?function(e){if(V())return;let t,n;if(e.method===u.type.method)n=e=>{const t=e.id,n=I[String(t)];n&&n.cancel()};else{const r=T[e.method];r&&(n=r.handler,t=r.type)}if(n||P)try{!function(e){if(N!==d.Off&&F&&e.method!==g.type.method)if(L===p.Text){let t;N===d.Verbose&&(t=e.params?`Params: ${JSON.stringify(e.params,null,4)}\n\n`:"No parameters provided.\n\n"),F.log(`Received notification '${e.method}'.`,t)}else te("receive-notification",e)}(e),n?void 0===e.params?(void 0!==t&&0!==t.numberOfParams&&t.parameterStructures!==o.ParameterStructures.byName&&b.error(`Notification ${e.method} defines ${t.numberOfParams} params but recevied none.`),n()):Array.isArray(e.params)?(void 0!==t&&(t.parameterStructures===o.ParameterStructures.byName&&b.error(`Notification ${e.method} defines parameters by name but received parameters by position`),t.numberOfParams!==e.params.length&&b.error(`Notification ${e.method} defines ${t.numberOfParams} params but received ${e.params.length} argumennts`)),n(...e.params)):(void 0!==t&&t.parameterStructures===o.ParameterStructures.byPosition&&b.error(`Notification ${e.method} defines parameters by position but received parameters by name`),n(e.params)):P&&P(e.method,e.params)}catch(t){t.message?b.error(`Notification handler '${e.method}' failed with message: ${t.message}`):b.error(`Notification handler '${e.method}' failed unexpectedly.`)}else q.fire(e)}(e):o.isResponseMessage(e)?function(e){if(!V())if(null===e.id)e.error?b.error(`Received response message without id: Error is: \n${JSON.stringify(e.error,void 0,4)}`):b.error("Received response message without id. No further error information provided.");else{const t=String(e.id),n=j[t];if(function(e,t){if(N!==d.Off&&F)if(L===p.Text){let n;if(N===d.Verbose&&(e.error&&e.error.data?n=`Error data: ${JSON.stringify(e.error.data,null,4)}\n\n`:e.result?n=`Result: ${JSON.stringify(e.result,null,4)}\n\n`:void 0===e.error&&(n="No result returned.\n\n")),t){const r=e.error?` Request failed: ${e.error.message} (${e.error.code}).`:"";F.log(`Received response '${t.method} - (${e.id})' in ${Date.now()-t.timerStart}ms.${r}`,n)}else F.log(`Received response ${e.id} without active response promise.`,n)}else te("receive-response",e)}(e,n),n){delete j[t];try{if(e.error){const t=e.error;n.reject(new o.ResponseError(t.code,t.message,t.data))}else{if(void 0===e.result)throw new Error("Should never happen.");n.resolve(e.result)}}catch(e){e.message?b.error(`Response handler '${n.method}' failed with message: ${e.message}`):b.error(`Response handler '${n.method}' failed unexpectedly.`)}}}}(e):function(e){if(!e)return void b.error("Received empty message.");b.error(`Received message which is neither a response nor a notification message:\n${JSON.stringify(e,null,4)}`);const t=e;if(i.string(t.id)||i.number(t.id)){const e=String(t.id),n=j[e];n&&n.reject(new Error("The received response has neither a result nor an error property."))}}(e)}finally{Q()}}()})))}e.onClose(Y),e.onError((function(e){W.fire([e,void 0,void 0])})),n.onClose(Y),n.onError((function(e){W.fire(e)}));const Z=e=>{try{if(o.isNotificationMessage(e)&&e.method===u.type.method){const t=H(e.params.id),r=M.get(t);if(o.isRequestMessage(r)){const i=null==v?void 0:v.connectionStrategy,o=i&&i.cancelUndispatched?i.cancelUndispatched(r,K):void 0;if(o&&(void 0!==o.error||void 0!==o.result))return M.delete(t),o.id=r.id,ee(o,e.method,Date.now()),void n.write(o)}}!function(e,t){var n;o.isRequestMessage(t)?e.set(H(t.id),t):o.isResponseMessage(t)?e.set(null===(n=t.id)?"res-unknown-"+(++O).toString():"res-"+n.toString(),t):e.set("not-"+(++_).toString(),t)}(M,e)}finally{Q()}};function ee(e,t,n){if(N!==d.Off&&F)if(L===p.Text){let r;N===d.Verbose&&(e.error&&e.error.data?r=`Error data: ${JSON.stringify(e.error.data,null,4)}\n\n`:e.result?r=`Result: ${JSON.stringify(e.result,null,4)}\n\n`:void 0===e.error&&(r="No result returned.\n\n")),F.log(`Sending response '${t} - (${e.id})'. Processing request took ${Date.now()-n}ms`,r)}else te("send-response",e)}function te(e,t){if(!F||N===d.Off)return;const n={isLSPMessage:!0,type:e,message:t,timestamp:Date.now()};F.log(n)}function ne(){if(X())throw new x(m.Closed,"Connection is closed.");if(V())throw new x(m.Disposed,"Connection is disposed.")}function re(e){return void 0===e?null:e}function ie(e){return null===e?void 0:e}function oe(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function se(e,t){switch(e){case o.ParameterStructures.auto:return oe(t)?ie(t):[re(t)];case o.ParameterStructures.byName:if(!oe(t))throw new Error("Recevied parameters by name but param is not an object literal.");return ie(t);case o.ParameterStructures.byPosition:return[re(t)];default:throw new Error(`Unknown parameter structure ${e.toString()}`)}}function ae(e,t){let n;const r=e.numberOfParams;switch(r){case 0:n=void 0;break;case 1:n=se(e.parameterStructures,t[0]);break;default:n=[];for(let e=0;e{let r,s;if(ne(),i.string(e)){r=e;const n=t[0];let i=0,a=o.ParameterStructures.auto;o.ParameterStructures.is(n)&&(i=1,a=n);let c=t.length;const u=c-i;switch(u){case 0:s=void 0;break;case 1:s=se(a,t[i]);break;default:if(a===o.ParameterStructures.byName)throw new Error(`Recevied ${u} parameters for 'by Name' notification parameter structure.`);s=t.slice(i,c).map((e=>re(e)))}}else{const n=t;r=e.method,s=ae(e,n)}const a={jsonrpc:C,method:r,params:s};!function(e){if(N!==d.Off&&F)if(L===p.Text){let t;N===d.Verbose&&(t=e.params?`Params: ${JSON.stringify(e.params,null,4)}\n\n`:"No parameters provided.\n\n"),F.log(`Sending notification '${e.method}'.`,t)}else te("send-notification",e)}(a),n.write(a)},onNotification:(e,t)=>{let n;return ne(),i.func(e)?P=e:t&&(i.string(e)?(n=e,T[e]={type:void 0,handler:t}):(n=e.method,T[e.method]={type:e,handler:t})),{dispose:()=>{void 0!==n?delete T[n]:P=void 0}}},onProgress:(e,t,n)=>{if(R.has(t))throw new Error(`Progress handler for token ${t} already registered`);return R.set(t,n),{dispose:()=>{R.delete(t)}}},sendProgress:(e,t,n)=>{ce.sendNotification(l.type,{token:t,value:n})},onUnhandledProgress:$.event,sendRequest:(e,...t)=>{let r,s,a;if(ne(),function(){if(!J())throw new Error("Call listen() first.")}(),i.string(e)){r=e;const n=t[0],i=t[t.length-1];let u=0,l=o.ParameterStructures.auto;o.ParameterStructures.is(n)&&(u=1,l=n);let f=t.length;c.CancellationToken.is(i)&&(f-=1,a=i);const d=f-u;switch(d){case 0:s=void 0;break;case 1:s=se(l,t[u]);break;default:if(l===o.ParameterStructures.byName)throw new Error(`Recevied ${d} parameters for 'by Name' request parameter structure.`);s=t.slice(u,f).map((e=>re(e)))}}else{const n=t;r=e.method,s=ae(e,n);const i=e.numberOfParams;a=c.CancellationToken.is(n[i])?n[i]:void 0}const u=w++;let l;return a&&(l=a.onCancellationRequested((()=>{G.sender.sendCancellation(ce,u)}))),new Promise(((e,t)=>{const i={jsonrpc:C,id:u,method:r,params:s};let a={method:r,timerStart:Date.now(),resolve:t=>{e(t),G.sender.cleanup(u),null==l||l.dispose()},reject:e=>{t(e),G.sender.cleanup(u),null==l||l.dispose()}};!function(e){if(N!==d.Off&&F)if(L===p.Text){let t;N===d.Verbose&&e.params&&(t=`Params: ${JSON.stringify(e.params,null,4)}\n\n`),F.log(`Sending request '${e.method} - (${e.id})'.`,t)}else te("send-request",e)}(i);try{n.write(i)}catch(e){a.reject(new o.ResponseError(o.ErrorCodes.MessageWriteError,e.message?e.message:"Unknown reason")),a=null}a&&(j[String(u)]=a)}))},onRequest:(e,t)=>{ne();let n=null;return f.is(e)?(n=void 0,D=e):i.string(e)?(n=null,void 0!==t&&(n=e,A[e]={handler:t,type:void 0})):void 0!==t&&(n=e.method,A[e.method]={type:e,handler:t}),{dispose:()=>{null!==n&&(void 0!==n?delete A[n]:D=void 0)}}},trace:(e,t,n)=>{let r=!1,o=p.Text;void 0!==n&&(i.boolean(n)?r=n:(r=n.sendNotification||!1,o=n.traceFormat||p.Text)),N=e,L=o,F=N===d.Off?void 0:t,!r||X()||V()||ce.sendNotification(h.type,{value:d.toString(e)})},onError:W.event,onClose:U.event,onUnhandledNotification:q.event,onDispose:z.event,end:()=>{n.end()},dispose:()=>{if(V())return;B=E.Disposed,z.fire(void 0);const t=new Error("Connection got disposed.");Object.keys(j).forEach((e=>{j[e].reject(t)})),j=Object.create(null),I=Object.create(null),M=new s.LinkedMap,i.func(n.dispose)&&n.dispose(),i.func(e.dispose)&&e.dispose()},listen:()=>{ne(),function(){if(J())throw new x(m.AlreadyListening,"Connection is already listening")}(),B=E.Listening,e.listen(Z)},inspect:()=>{r.default().console.log("inspect")}};return ce.onNotification(g.type,(e=>{N!==d.Off&&F&&F.log(e.message,N===d.Verbose?e.verbose:void 0)})),ce.onNotification(l.type,(e=>{const t=R.get(e.token);t?t(e.value):$.fire(e)})),ce}},58437:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Disposable=void 0,(t.Disposable||(t.Disposable={})).create=function(e){return{dispose:e}}},75165:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Emitter=t.Event=void 0;const r=n(35706);!function(e){const t={dispose(){}};e.None=function(){return t}}(t.Event||(t.Event={}));class i{add(e,t=null,n){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(t),Array.isArray(n)&&n.push({dispose:()=>this.remove(e,t)})}remove(e,t=null){if(!this._callbacks)return;let n=!1;for(let r=0,i=this._callbacks.length;r{this._callbacks||(this._callbacks=new i),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,t);const r={dispose:()=>{this._callbacks&&(this._callbacks.remove(e,t),r.dispose=o._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(n)&&n.push(r),r}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}}t.Emitter=o,o._noop=function(){}},88811:(e,t)=>{"use strict";function n(e){return"string"==typeof e||e instanceof String}function r(e){return Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.stringArray=t.array=t.func=t.error=t.number=t.string=t.boolean=void 0,t.boolean=function(e){return!0===e||!1===e},t.string=n,t.number=function(e){return"number"==typeof e||e instanceof Number},t.error=function(e){return e instanceof Error},t.func=function(e){return"function"==typeof e},t.array=r,t.stringArray=function(e){return r(e)&&e.every((e=>n(e)))}},57040:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.LRUCache=t.LinkedMap=t.Touch=void 0,function(e){e.None=0,e.First=1,e.AsOld=e.First,e.Last=2,e.AsNew=e.Last}(n=t.Touch||(t.Touch={}));class r{constructor(){this[Symbol.toStringTag]="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(){var e;return null===(e=this._head)||void 0===e?void 0:e.value}get last(){var e;return null===(e=this._tail)||void 0===e?void 0:e.value}has(e){return this._map.has(e)}get(e,t=n.None){const r=this._map.get(e);if(r)return t!==n.None&&this.touch(r,t),r.value}set(e,t,r=n.None){let i=this._map.get(e);if(i)i.value=t,r!==n.None&&this.touch(i,r);else{switch(i={key:e,value:t,next:void 0,previous:void 0},r){case n.None:this.addItemLast(i);break;case n.First:this.addItemFirst(i);break;case n.Last:default:this.addItemLast(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 r=this._head;for(;r;){if(t?e.bind(t)(r.value,r.key,this):e(r.value,r.key,this),this._state!==n)throw new Error("LinkedMap got modified during iteration.");r=r.next}}keys(){const e=this,t=this._state;let n=this._head;const r={[Symbol.iterator]:()=>r,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 r}values(){const e=this,t=this._state;let n=this._head;const r={[Symbol.iterator]:()=>r,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 r}entries(){const e=this,t=this._state;let n=this._head;const r={[Symbol.iterator]:()=>r,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 r}[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++}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(t===n.First||t===n.Last)if(t===n.First){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(t===n.Last){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)}}t.LinkedMap=r,t.LRUCache=class extends r{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 ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,t=n.AsNew){return super.get(e,t)}peek(e){return super.get(e,n.None)}set(e,t){return super.set(e,t,n.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}},78652:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractMessageBuffer=void 0,t.AbstractMessageBuffer=class{constructor(e="utf-8"){this._encoding=e,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(e){const t="string"==typeof e?this.fromString(e,this._encoding):e;this._chunks.push(t),this._totalLength+=t.byteLength}tryReadHeaders(){if(0===this._chunks.length)return;let e=0,t=0,n=0,r=0;e:for(;tthis._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===e){const t=this._chunks[0];return this._chunks.shift(),this._totalLength-=e,this.asNative(t)}if(this._chunks[0].byteLength>e){const t=this._chunks[0],n=this.asNative(t,e);return this._chunks[0]=t.slice(e),this._totalLength-=e,n}const t=this.allocNative(e);let n=0;for(;e>0;){const r=this._chunks[0];if(r.byteLength>e){const i=r.slice(0,e);t.set(i,n),n+=e,this._chunks[0]=r.slice(e),this._totalLength-=e,e-=e}else t.set(r,n),n+=r.byteLength,this._chunks.shift(),this._totalLength-=r.byteLength,e-=r.byteLength}return t}}},90451:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReadableStreamMessageReader=t.AbstractMessageReader=t.MessageReader=void 0;const r=n(35706),i=n(88811),o=n(75165);var s;(t.MessageReader||(t.MessageReader={})).is=function(e){let t=e;return t&&i.func(t.listen)&&i.func(t.dispose)&&i.func(t.onError)&&i.func(t.onClose)&&i.func(t.onPartialMessage)};class a{constructor(){this.errorEmitter=new o.Emitter,this.closeEmitter=new o.Emitter,this.partialMessageEmitter=new o.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e){this.errorEmitter.fire(this.asError(e))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(e){this.partialMessageEmitter.fire(e)}asError(e){return e instanceof Error?e:new Error(`Reader received error. Reason: ${i.string(e.message)?e.message:"unknown"}`)}}t.AbstractMessageReader=a,function(e){e.fromOptions=function(e){var t;let n,i;const o=new Map;let s;const a=new Map;if(void 0===e||"string"==typeof e)n=null!=e?e:"utf-8";else{if(n=null!==(t=e.charset)&&void 0!==t?t:"utf-8",void 0!==e.contentDecoder&&(i=e.contentDecoder,o.set(i.name,i)),void 0!==e.contentDecoders)for(const t of e.contentDecoders)o.set(t.name,t);if(void 0!==e.contentTypeDecoder&&(s=e.contentTypeDecoder,a.set(s.name,s)),void 0!==e.contentTypeDecoders)for(const t of e.contentTypeDecoders)a.set(t.name,t)}return void 0===s&&(s=r.default().applicationJson.decoder,a.set(s.name,s)),{charset:n,contentDecoder:i,contentDecoders:o,contentTypeDecoder:s,contentTypeDecoders:a}}}(s||(s={})),t.ReadableStreamMessageReader=class extends a{constructor(e,t){super(),this.readable=e,this.options=s.fromOptions(t),this.buffer=r.default().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0}set partialMessageTimeout(e){this._partialMessageTimeout=e}get partialMessageTimeout(){return this._partialMessageTimeout}listen(e){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=e;const t=this.readable.onData((e=>{this.onData(e)}));return this.readable.onError((e=>this.fireError(e))),this.readable.onClose((()=>this.fireClose())),t}onData(e){for(this.buffer.append(e);;){if(-1===this.nextMessageLength){const e=this.buffer.tryReadHeaders();if(!e)return;const t=e.get("Content-Length");if(!t)throw new Error("Header must provide a Content-Length property.");const n=parseInt(t);if(isNaN(n))throw new Error("Content-Length value must be a number.");this.nextMessageLength=n}const e=this.buffer.tryReadBody(this.nextMessageLength);if(void 0===e)return void this.setPartialMessageTimer();let t;this.clearPartialMessageTimer(),this.nextMessageLength=-1,t=void 0!==this.options.contentDecoder?this.options.contentDecoder.decode(e):Promise.resolve(e),t.then((e=>{this.options.contentTypeDecoder.decode(e,this.options).then((e=>{this.callback(e)}),(e=>{this.fireError(e)}))}),(e=>{this.fireError(e)}))}}clearPartialMessageTimer(){this.partialMessageTimer&&(r.default().timer.clearTimeout(this.partialMessageTimer),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),this._partialMessageTimeout<=0||(this.partialMessageTimer=r.default().timer.setTimeout(((e,t)=>{this.partialMessageTimer=void 0,e===this.messageToken&&(this.firePartialMessage({messageToken:e,waitingTime:t}),this.setPartialMessageTimer())}),this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}}},41251:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WriteableStreamMessageWriter=t.AbstractMessageWriter=t.MessageWriter=void 0;const r=n(35706),i=n(88811),o=n(32339),s=n(75165);var a;(t.MessageWriter||(t.MessageWriter={})).is=function(e){let t=e;return t&&i.func(t.dispose)&&i.func(t.onClose)&&i.func(t.onError)&&i.func(t.write)};class c{constructor(){this.errorEmitter=new s.Emitter,this.closeEmitter=new s.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,t,n){this.errorEmitter.fire([this.asError(e),t,n])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(e){return e instanceof Error?e:new Error(`Writer received error. Reason: ${i.string(e.message)?e.message:"unknown"}`)}}t.AbstractMessageWriter=c,function(e){e.fromOptions=function(e){var t,n;return void 0===e||"string"==typeof e?{charset:null!=e?e:"utf-8",contentTypeEncoder:r.default().applicationJson.encoder}:{charset:null!==(t=e.charset)&&void 0!==t?t:"utf-8",contentEncoder:e.contentEncoder,contentTypeEncoder:null!==(n=e.contentTypeEncoder)&&void 0!==n?n:r.default().applicationJson.encoder}}}(a||(a={})),t.WriteableStreamMessageWriter=class extends c{constructor(e,t){super(),this.writable=e,this.options=a.fromOptions(t),this.errorCount=0,this.writeSemaphore=new o.Semaphore(1),this.writable.onError((e=>this.fireError(e))),this.writable.onClose((()=>this.fireClose()))}async write(e){return this.writeSemaphore.lock((async()=>this.options.contentTypeEncoder.encode(e,this.options).then((e=>void 0!==this.options.contentEncoder?this.options.contentEncoder.encode(e):e)).then((t=>{const n=[];return n.push("Content-Length: ",t.byteLength.toString(),"\r\n"),n.push("\r\n"),this.doWrite(e,n,t)}),(e=>{throw this.fireError(e),e}))))}async doWrite(e,t,n){try{return await this.writable.write(t.join(""),"ascii"),this.writable.write(n)}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){this.writable.end()}}},79141:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isResponseMessage=t.isNotificationMessage=t.isRequestMessage=t.NotificationType9=t.NotificationType8=t.NotificationType7=t.NotificationType6=t.NotificationType5=t.NotificationType4=t.NotificationType3=t.NotificationType2=t.NotificationType1=t.NotificationType0=t.NotificationType=t.RequestType9=t.RequestType8=t.RequestType7=t.RequestType6=t.RequestType5=t.RequestType4=t.RequestType3=t.RequestType2=t.RequestType1=t.RequestType=t.RequestType0=t.AbstractMessageSignature=t.ParameterStructures=t.ResponseError=t.ErrorCodes=void 0;const r=n(88811);var i;!function(e){e.ParseError=-32700,e.InvalidRequest=-32600,e.MethodNotFound=-32601,e.InvalidParams=-32602,e.InternalError=-32603,e.jsonrpcReservedErrorRangeStart=-32099,e.serverErrorStart=e.jsonrpcReservedErrorRangeStart,e.MessageWriteError=-32099,e.MessageReadError=-32098,e.ServerNotInitialized=-32002,e.UnknownErrorCode=-32001,e.jsonrpcReservedErrorRangeEnd=-32e3,e.serverErrorEnd=e.jsonrpcReservedErrorRangeEnd}(i=t.ErrorCodes||(t.ErrorCodes={}));class o extends Error{constructor(e,t,n){super(t),this.code=r.number(e)?e:i.UnknownErrorCode,this.data=n,Object.setPrototypeOf(this,o.prototype)}toJson(){return{code:this.code,message:this.message,data:this.data}}}t.ResponseError=o;class s{constructor(e){this.kind=e}static is(e){return e===s.auto||e===s.byName||e===s.byPosition}toString(){return this.kind}}t.ParameterStructures=s,s.auto=new s("auto"),s.byPosition=new s("byPosition"),s.byName=new s("byName");class a{constructor(e,t){this.method=e,this.numberOfParams=t}get parameterStructures(){return s.auto}}t.AbstractMessageSignature=a,t.RequestType0=class extends a{constructor(e){super(e,0)}},t.RequestType=class extends a{constructor(e,t=s.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},t.RequestType1=class extends a{constructor(e,t=s.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},t.RequestType2=class extends a{constructor(e){super(e,2)}},t.RequestType3=class extends a{constructor(e){super(e,3)}},t.RequestType4=class extends a{constructor(e){super(e,4)}},t.RequestType5=class extends a{constructor(e){super(e,5)}},t.RequestType6=class extends a{constructor(e){super(e,6)}},t.RequestType7=class extends a{constructor(e){super(e,7)}},t.RequestType8=class extends a{constructor(e){super(e,8)}},t.RequestType9=class extends a{constructor(e){super(e,9)}},t.NotificationType=class extends a{constructor(e,t=s.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},t.NotificationType0=class extends a{constructor(e){super(e,0)}},t.NotificationType1=class extends a{constructor(e,t=s.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},t.NotificationType2=class extends a{constructor(e){super(e,2)}},t.NotificationType3=class extends a{constructor(e){super(e,3)}},t.NotificationType4=class extends a{constructor(e){super(e,4)}},t.NotificationType5=class extends a{constructor(e){super(e,5)}},t.NotificationType6=class extends a{constructor(e){super(e,6)}},t.NotificationType7=class extends a{constructor(e){super(e,7)}},t.NotificationType8=class extends a{constructor(e){super(e,8)}},t.NotificationType9=class extends a{constructor(e){super(e,9)}},t.isRequestMessage=function(e){const t=e;return t&&r.string(t.method)&&(r.string(t.id)||r.number(t.id))},t.isNotificationMessage=function(e){const t=e;return t&&r.string(t.method)&&void 0===e.id},t.isResponseMessage=function(e){const t=e;return t&&(void 0!==t.result||!!t.error)&&(r.string(t.id)||r.number(t.id)||null===t.id)}},35706:(e,t)=>{"use strict";let n;function r(){if(void 0===n)throw new Error("No runtime abstraction layer installed");return n}Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.install=function(e){if(void 0===e)throw new Error("No runtime abstraction layer provided");n=e}}(r||(r={})),t.default=r},32339:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Semaphore=void 0;const r=n(35706);t.Semaphore=class{constructor(e=1){if(e<=0)throw new Error("Capacity must be greater than 0");this._capacity=e,this._active=0,this._waiting=[]}lock(e){return new Promise(((t,n)=>{this._waiting.push({thunk:e,resolve:t,reject:n}),this.runNext()}))}get active(){return this._active}runNext(){0!==this._waiting.length&&this._active!==this._capacity&&r.default().timer.setImmediate((()=>this.doRunNext()))}doRunNext(){if(0===this._waiting.length||this._active===this._capacity)return;const e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{const t=e.thunk();t instanceof Promise?t.then((t=>{this._active--,e.resolve(t),this.runNext()}),(t=>{this._active--,e.reject(t),this.runNext()})):(this._active--,e.resolve(t),this.runNext())}catch(t){this._active--,e.reject(t),this.runNext()}}}},40039:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.createMessageConnection=t.createServerSocketTransport=t.createClientSocketTransport=t.createServerPipeTransport=t.createClientPipeTransport=t.generateRandomPipeName=t.StreamMessageWriter=t.StreamMessageReader=t.SocketMessageWriter=t.SocketMessageReader=t.IPCMessageWriter=t.IPCMessageReader=void 0;const o=n(620);o.default.install();const s=n(5247),a=n(71017),c=n(22037),u=n(6113),l=n(41808);i(n(5247),t);class f extends s.AbstractMessageReader{constructor(e){super(),this.process=e;let t=this.process;t.on("error",(e=>this.fireError(e))),t.on("close",(()=>this.fireClose()))}listen(e){return this.process.on("message",e),s.Disposable.create((()=>this.process.off("message",e)))}}t.IPCMessageReader=f;class d extends s.AbstractMessageWriter{constructor(e){super(),this.process=e,this.errorCount=0;let t=this.process;t.on("error",(e=>this.fireError(e))),t.on("close",(()=>this.fireClose))}write(e){try{return"function"==typeof this.process.send&&this.process.send(e,void 0,void 0,(t=>{t?(this.errorCount++,this.handleError(t,e)):this.errorCount=0})),Promise.resolve()}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){}}t.IPCMessageWriter=d;class p extends s.ReadableStreamMessageReader{constructor(e,t="utf-8"){super(o.default().stream.asReadableStream(e),t)}}t.SocketMessageReader=p;class h extends s.WriteableStreamMessageWriter{constructor(e,t){super(o.default().stream.asWritableStream(e),t),this.socket=e}dispose(){super.dispose(),this.socket.destroy()}}t.SocketMessageWriter=h;class g extends s.ReadableStreamMessageReader{constructor(e,t){super(o.default().stream.asReadableStream(e),t)}}t.StreamMessageReader=g;class m extends s.WriteableStreamMessageWriter{constructor(e,t){super(o.default().stream.asWritableStream(e),t)}}t.StreamMessageWriter=m;const y=process.env.XDG_RUNTIME_DIR,v=new Map([["linux",107],["darwin",103]]);t.generateRandomPipeName=function(){const e=u.randomBytes(21).toString("hex");if("win32"===process.platform)return`\\\\.\\pipe\\vscode-jsonrpc-${e}-sock`;let t;t=y?a.join(y,`vscode-ipc-${e}.sock`):a.join(c.tmpdir(),`vscode-${e}.sock`);const n=v.get(process.platform);return void 0!==n&&t.length>=n&&o.default().console.warn(`WARNING: IPC handle "${t}" is longer than ${n} characters.`),t},t.createClientPipeTransport=function(e,t="utf-8"){let n;const r=new Promise(((e,t)=>{n=e}));return new Promise(((i,o)=>{let s=l.createServer((e=>{s.close(),n([new p(e,t),new h(e,t)])}));s.on("error",o),s.listen(e,(()=>{s.removeListener("error",o),i({onConnected:()=>r})}))}))},t.createServerPipeTransport=function(e,t="utf-8"){const n=l.createConnection(e);return[new p(n,t),new h(n,t)]},t.createClientSocketTransport=function(e,t="utf-8"){let n;const r=new Promise(((e,t)=>{n=e}));return new Promise(((i,o)=>{const s=l.createServer((e=>{s.close(),n([new p(e,t),new h(e,t)])}));s.on("error",o),s.listen(e,"127.0.0.1",(()=>{s.removeListener("error",o),i({onConnected:()=>r})}))}))},t.createServerSocketTransport=function(e,t="utf-8"){const n=l.createConnection(e,"127.0.0.1");return[new p(n,t),new h(n,t)]},t.createMessageConnection=function(e,t,n,r){n||(n=s.NullLogger);const i=function(e){const t=e;return void 0!==t.read&&void 0!==t.addListener}(e)?new g(e):e,o=function(e){const t=e;return void 0!==t.write&&void 0!==t.addListener}(t)?new m(t):t;return s.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),s.createMessageConnection(i,o,n,r)}},620:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(35706),i=n(73837),o=n(58437),s=n(78652);class a extends s.AbstractMessageBuffer{constructor(e="utf-8"){super(e)}emptyBuffer(){return a.emptyBuffer}fromString(e,t){return Buffer.from(e,t)}toString(e,t){return e instanceof Buffer?e.toString(t):new i.TextDecoder(t).decode(e)}asNative(e,t){return void 0===t?e instanceof Buffer?e:Buffer.from(e):e instanceof Buffer?e.slice(0,t):Buffer.from(e,0,t)}allocNative(e){return Buffer.allocUnsafe(e)}}a.emptyBuffer=Buffer.allocUnsafe(0);class c{constructor(e){this.stream=e}onClose(e){return this.stream.on("close",e),o.Disposable.create((()=>this.stream.off("close",e)))}onError(e){return this.stream.on("error",e),o.Disposable.create((()=>this.stream.off("error",e)))}onEnd(e){return this.stream.on("end",e),o.Disposable.create((()=>this.stream.off("end",e)))}onData(e){return this.stream.on("data",e),o.Disposable.create((()=>this.stream.off("data",e)))}}class u{constructor(e){this.stream=e}onClose(e){return this.stream.on("close",e),o.Disposable.create((()=>this.stream.off("close",e)))}onError(e){return this.stream.on("error",e),o.Disposable.create((()=>this.stream.off("error",e)))}onEnd(e){return this.stream.on("end",e),o.Disposable.create((()=>this.stream.off("end",e)))}write(e,t){return new Promise(((n,r)=>{const i=e=>{null==e?n():r(e)};"string"==typeof e?this.stream.write(e,t,i):this.stream.write(e,i)}))}end(){this.stream.end()}}const l=Object.freeze({messageBuffer:Object.freeze({create:e=>new a(e)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(e,t)=>{try{return Promise.resolve(Buffer.from(JSON.stringify(e,void 0,0),t.charset))}catch(e){return Promise.reject(e)}}}),decoder:Object.freeze({name:"application/json",decode:(e,t)=>{try{return e instanceof Buffer?Promise.resolve(JSON.parse(e.toString(t.charset))):Promise.resolve(JSON.parse(new i.TextDecoder(t.charset).decode(e)))}catch(e){return Promise.reject(e)}}})}),stream:Object.freeze({asReadableStream:e=>new c(e),asWritableStream:e=>new u(e)}),console,timer:Object.freeze({setTimeout:(e,t,...n)=>setTimeout(e,t,...n),clearTimeout(e){clearTimeout(e)},setImmediate:(e,...t)=>setImmediate(e,...t),clearImmediate(e){clearImmediate(e)}})});function f(){return l}!function(e){e.install=function(){r.default.install(l)}}(f||(f={})),t.default=f},31335:(e,t,n)=>{"use strict";e.exports=n(40039)},69372:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.LSPErrorCodes=t.createProtocolConnection=void 0,i(n(40039),t),i(n(54767),t),i(n(58599),t),i(n(56525),t);var o,s=n(2798);Object.defineProperty(t,"createProtocolConnection",{enumerable:!0,get:function(){return s.createProtocolConnection}}),(o=t.LSPErrorCodes||(t.LSPErrorCodes={})).lspReservedErrorRangeStart=-32899,o.ContentModified=-32801,o.RequestCancelled=-32800,o.lspReservedErrorRangeEnd=-32800},2798:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createProtocolConnection=void 0;const r=n(40039);t.createProtocolConnection=function(e,t,n,i){return r.ConnectionStrategy.is(i)&&(i={connectionStrategy:i}),r.createMessageConnection(e,t,n,i)}},58599:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProtocolNotificationType=t.ProtocolNotificationType0=t.ProtocolRequestType=t.ProtocolRequestType0=t.RegistrationType=void 0;const r=n(40039);t.RegistrationType=class{constructor(e){this.method=e}};class i extends r.RequestType0{constructor(e){super(e)}}t.ProtocolRequestType0=i;class o extends r.RequestType{constructor(e){super(e,r.ParameterStructures.byName)}}t.ProtocolRequestType=o;class s extends r.NotificationType0{constructor(e){super(e)}}t.ProtocolNotificationType0=s;class a extends r.NotificationType{constructor(e){super(e,r.ParameterStructures.byName)}}t.ProtocolNotificationType=a},24434:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CallHierarchyOutgoingCallsRequest=t.CallHierarchyIncomingCallsRequest=t.CallHierarchyPrepareRequest=void 0;const r=n(58599);var i,o,s;(s=t.CallHierarchyPrepareRequest||(t.CallHierarchyPrepareRequest={})).method="textDocument/prepareCallHierarchy",s.type=new r.ProtocolRequestType(s.method),(o=t.CallHierarchyIncomingCallsRequest||(t.CallHierarchyIncomingCallsRequest={})).method="callHierarchy/incomingCalls",o.type=new r.ProtocolRequestType(o.method),(i=t.CallHierarchyOutgoingCallsRequest||(t.CallHierarchyOutgoingCallsRequest={})).method="callHierarchy/outgoingCalls",i.type=new r.ProtocolRequestType(i.method)},7908:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorPresentationRequest=t.DocumentColorRequest=void 0;const r=n(58599);var i;(i=t.DocumentColorRequest||(t.DocumentColorRequest={})).method="textDocument/documentColor",i.type=new r.ProtocolRequestType(i.method),(t.ColorPresentationRequest||(t.ColorPresentationRequest={})).type=new r.ProtocolRequestType("textDocument/colorPresentation")},15442:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigurationRequest=void 0;const r=n(58599);(t.ConfigurationRequest||(t.ConfigurationRequest={})).type=new r.ProtocolRequestType("workspace/configuration")},57210:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeclarationRequest=void 0;const r=n(58599);var i;(i=t.DeclarationRequest||(t.DeclarationRequest={})).method="textDocument/declaration",i.type=new r.ProtocolRequestType(i.method)},56190:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WillDeleteFilesRequest=t.DidDeleteFilesNotification=t.DidRenameFilesNotification=t.WillRenameFilesRequest=t.DidCreateFilesNotification=t.WillCreateFilesRequest=t.FileOperationPatternKind=void 0;const r=n(58599);var i,o,s,a,c,u,l;(l=t.FileOperationPatternKind||(t.FileOperationPatternKind={})).file="file",l.folder="folder",(u=t.WillCreateFilesRequest||(t.WillCreateFilesRequest={})).method="workspace/willCreateFiles",u.type=new r.ProtocolRequestType(u.method),(c=t.DidCreateFilesNotification||(t.DidCreateFilesNotification={})).method="workspace/didCreateFiles",c.type=new r.ProtocolNotificationType(c.method),(a=t.WillRenameFilesRequest||(t.WillRenameFilesRequest={})).method="workspace/willRenameFiles",a.type=new r.ProtocolRequestType(a.method),(s=t.DidRenameFilesNotification||(t.DidRenameFilesNotification={})).method="workspace/didRenameFiles",s.type=new r.ProtocolNotificationType(s.method),(o=t.DidDeleteFilesNotification||(t.DidDeleteFilesNotification={})).method="workspace/didDeleteFiles",o.type=new r.ProtocolNotificationType(o.method),(i=t.WillDeleteFilesRequest||(t.WillDeleteFilesRequest={})).method="workspace/willDeleteFiles",i.type=new r.ProtocolRequestType(i.method)},77029:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FoldingRangeRequest=t.FoldingRangeKind=void 0;const r=n(58599);var i,o;(o=t.FoldingRangeKind||(t.FoldingRangeKind={})).Comment="comment",o.Imports="imports",o.Region="region",(i=t.FoldingRangeRequest||(t.FoldingRangeRequest={})).method="textDocument/foldingRange",i.type=new r.ProtocolRequestType(i.method)},79380:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImplementationRequest=void 0;const r=n(58599);var i;(i=t.ImplementationRequest||(t.ImplementationRequest={})).method="textDocument/implementation",i.type=new r.ProtocolRequestType(i.method)},56525:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentLinkRequest=t.CodeLensRefreshRequest=t.CodeLensResolveRequest=t.CodeLensRequest=t.WorkspaceSymbolRequest=t.CodeActionResolveRequest=t.CodeActionRequest=t.DocumentSymbolRequest=t.DocumentHighlightRequest=t.ReferencesRequest=t.DefinitionRequest=t.SignatureHelpRequest=t.SignatureHelpTriggerKind=t.HoverRequest=t.CompletionResolveRequest=t.CompletionRequest=t.CompletionTriggerKind=t.PublishDiagnosticsNotification=t.WatchKind=t.FileChangeType=t.DidChangeWatchedFilesNotification=t.WillSaveTextDocumentWaitUntilRequest=t.WillSaveTextDocumentNotification=t.TextDocumentSaveReason=t.DidSaveTextDocumentNotification=t.DidCloseTextDocumentNotification=t.DidChangeTextDocumentNotification=t.TextDocumentContentChangeEvent=t.DidOpenTextDocumentNotification=t.TextDocumentSyncKind=t.TelemetryEventNotification=t.LogMessageNotification=t.ShowMessageRequest=t.ShowMessageNotification=t.MessageType=t.DidChangeConfigurationNotification=t.ExitNotification=t.ShutdownRequest=t.InitializedNotification=t.InitializeError=t.InitializeRequest=t.WorkDoneProgressOptions=t.TextDocumentRegistrationOptions=t.StaticRegistrationOptions=t.FailureHandlingKind=t.ResourceOperationKind=t.UnregistrationRequest=t.RegistrationRequest=t.DocumentSelector=t.DocumentFilter=void 0,t.MonikerRequest=t.MonikerKind=t.UniquenessLevel=t.WillDeleteFilesRequest=t.DidDeleteFilesNotification=t.WillRenameFilesRequest=t.DidRenameFilesNotification=t.WillCreateFilesRequest=t.DidCreateFilesNotification=t.FileOperationPatternKind=t.LinkedEditingRangeRequest=t.ShowDocumentRequest=t.SemanticTokensRegistrationType=t.SemanticTokensRefreshRequest=t.SemanticTokensRangeRequest=t.SemanticTokensDeltaRequest=t.SemanticTokensRequest=t.TokenFormat=t.SemanticTokens=t.SemanticTokenModifiers=t.SemanticTokenTypes=t.CallHierarchyPrepareRequest=t.CallHierarchyOutgoingCallsRequest=t.CallHierarchyIncomingCallsRequest=t.WorkDoneProgressCancelNotification=t.WorkDoneProgressCreateRequest=t.WorkDoneProgress=t.SelectionRangeRequest=t.DeclarationRequest=t.FoldingRangeRequest=t.ColorPresentationRequest=t.DocumentColorRequest=t.ConfigurationRequest=t.DidChangeWorkspaceFoldersNotification=t.WorkspaceFoldersRequest=t.TypeDefinitionRequest=t.ImplementationRequest=t.ApplyWorkspaceEditRequest=t.ExecuteCommandRequest=t.PrepareRenameRequest=t.RenameRequest=t.PrepareSupportDefaultBehavior=t.DocumentOnTypeFormattingRequest=t.DocumentRangeFormattingRequest=t.DocumentFormattingRequest=t.DocumentLinkResolveRequest=void 0;const r=n(82523),i=n(58599),o=n(79380);Object.defineProperty(t,"ImplementationRequest",{enumerable:!0,get:function(){return o.ImplementationRequest}});const s=n(98642);Object.defineProperty(t,"TypeDefinitionRequest",{enumerable:!0,get:function(){return s.TypeDefinitionRequest}});const a=n(53699);Object.defineProperty(t,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return a.WorkspaceFoldersRequest}}),Object.defineProperty(t,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return a.DidChangeWorkspaceFoldersNotification}});const c=n(15442);Object.defineProperty(t,"ConfigurationRequest",{enumerable:!0,get:function(){return c.ConfigurationRequest}});const u=n(7908);Object.defineProperty(t,"DocumentColorRequest",{enumerable:!0,get:function(){return u.DocumentColorRequest}}),Object.defineProperty(t,"ColorPresentationRequest",{enumerable:!0,get:function(){return u.ColorPresentationRequest}});const l=n(77029);Object.defineProperty(t,"FoldingRangeRequest",{enumerable:!0,get:function(){return l.FoldingRangeRequest}});const f=n(57210);Object.defineProperty(t,"DeclarationRequest",{enumerable:!0,get:function(){return f.DeclarationRequest}});const d=n(22392);Object.defineProperty(t,"SelectionRangeRequest",{enumerable:!0,get:function(){return d.SelectionRangeRequest}});const p=n(57895);Object.defineProperty(t,"WorkDoneProgress",{enumerable:!0,get:function(){return p.WorkDoneProgress}}),Object.defineProperty(t,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return p.WorkDoneProgressCreateRequest}}),Object.defineProperty(t,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return p.WorkDoneProgressCancelNotification}});const h=n(24434);Object.defineProperty(t,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return h.CallHierarchyIncomingCallsRequest}}),Object.defineProperty(t,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return h.CallHierarchyOutgoingCallsRequest}}),Object.defineProperty(t,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return h.CallHierarchyPrepareRequest}});const g=n(8489);Object.defineProperty(t,"SemanticTokenTypes",{enumerable:!0,get:function(){return g.SemanticTokenTypes}}),Object.defineProperty(t,"SemanticTokenModifiers",{enumerable:!0,get:function(){return g.SemanticTokenModifiers}}),Object.defineProperty(t,"SemanticTokens",{enumerable:!0,get:function(){return g.SemanticTokens}}),Object.defineProperty(t,"TokenFormat",{enumerable:!0,get:function(){return g.TokenFormat}}),Object.defineProperty(t,"SemanticTokensRequest",{enumerable:!0,get:function(){return g.SemanticTokensRequest}}),Object.defineProperty(t,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return g.SemanticTokensDeltaRequest}}),Object.defineProperty(t,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return g.SemanticTokensRangeRequest}}),Object.defineProperty(t,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return g.SemanticTokensRefreshRequest}}),Object.defineProperty(t,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return g.SemanticTokensRegistrationType}});const m=n(81541);Object.defineProperty(t,"ShowDocumentRequest",{enumerable:!0,get:function(){return m.ShowDocumentRequest}});const y=n(50527);Object.defineProperty(t,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return y.LinkedEditingRangeRequest}});const v=n(56190);Object.defineProperty(t,"FileOperationPatternKind",{enumerable:!0,get:function(){return v.FileOperationPatternKind}}),Object.defineProperty(t,"DidCreateFilesNotification",{enumerable:!0,get:function(){return v.DidCreateFilesNotification}}),Object.defineProperty(t,"WillCreateFilesRequest",{enumerable:!0,get:function(){return v.WillCreateFilesRequest}}),Object.defineProperty(t,"DidRenameFilesNotification",{enumerable:!0,get:function(){return v.DidRenameFilesNotification}}),Object.defineProperty(t,"WillRenameFilesRequest",{enumerable:!0,get:function(){return v.WillRenameFilesRequest}}),Object.defineProperty(t,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return v.DidDeleteFilesNotification}}),Object.defineProperty(t,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return v.WillDeleteFilesRequest}});const b=n(81964);var S,E,x,w,_,O,C,D,A,P,T,R,k,F,M,j,I,N,L,B,W,U,q,$,z,G,H,K,J,X,V,Y,Q,Z,ee,te,ne,re,ie,oe;Object.defineProperty(t,"UniquenessLevel",{enumerable:!0,get:function(){return b.UniquenessLevel}}),Object.defineProperty(t,"MonikerKind",{enumerable:!0,get:function(){return b.MonikerKind}}),Object.defineProperty(t,"MonikerRequest",{enumerable:!0,get:function(){return b.MonikerRequest}}),function(e){e.is=function(e){const t=e;return r.string(t.language)||r.string(t.scheme)||r.string(t.pattern)}}(S=t.DocumentFilter||(t.DocumentFilter={})),function(e){e.is=function(e){if(!Array.isArray(e))return!1;for(let t of e)if(!r.string(t)&&!S.is(t))return!1;return!0}}(E=t.DocumentSelector||(t.DocumentSelector={})),(t.RegistrationRequest||(t.RegistrationRequest={})).type=new i.ProtocolRequestType("client/registerCapability"),(t.UnregistrationRequest||(t.UnregistrationRequest={})).type=new i.ProtocolRequestType("client/unregisterCapability"),(oe=t.ResourceOperationKind||(t.ResourceOperationKind={})).Create="create",oe.Rename="rename",oe.Delete="delete",(ie=t.FailureHandlingKind||(t.FailureHandlingKind={})).Abort="abort",ie.Transactional="transactional",ie.TextOnlyTransactional="textOnlyTransactional",ie.Undo="undo",(t.StaticRegistrationOptions||(t.StaticRegistrationOptions={})).hasId=function(e){const t=e;return t&&r.string(t.id)&&t.id.length>0},(t.TextDocumentRegistrationOptions||(t.TextDocumentRegistrationOptions={})).is=function(e){const t=e;return t&&(null===t.documentSelector||E.is(t.documentSelector))},(re=t.WorkDoneProgressOptions||(t.WorkDoneProgressOptions={})).is=function(e){const t=e;return r.objectLiteral(t)&&(void 0===t.workDoneProgress||r.boolean(t.workDoneProgress))},re.hasWorkDoneProgress=function(e){const t=e;return t&&r.boolean(t.workDoneProgress)},(t.InitializeRequest||(t.InitializeRequest={})).type=new i.ProtocolRequestType("initialize"),(t.InitializeError||(t.InitializeError={})).unknownProtocolVersion=1,(t.InitializedNotification||(t.InitializedNotification={})).type=new i.ProtocolNotificationType("initialized"),(t.ShutdownRequest||(t.ShutdownRequest={})).type=new i.ProtocolRequestType0("shutdown"),(t.ExitNotification||(t.ExitNotification={})).type=new i.ProtocolNotificationType0("exit"),(t.DidChangeConfigurationNotification||(t.DidChangeConfigurationNotification={})).type=new i.ProtocolNotificationType("workspace/didChangeConfiguration"),(ne=t.MessageType||(t.MessageType={})).Error=1,ne.Warning=2,ne.Info=3,ne.Log=4,(t.ShowMessageNotification||(t.ShowMessageNotification={})).type=new i.ProtocolNotificationType("window/showMessage"),(t.ShowMessageRequest||(t.ShowMessageRequest={})).type=new i.ProtocolRequestType("window/showMessageRequest"),(t.LogMessageNotification||(t.LogMessageNotification={})).type=new i.ProtocolNotificationType("window/logMessage"),(t.TelemetryEventNotification||(t.TelemetryEventNotification={})).type=new i.ProtocolNotificationType("telemetry/event"),(te=t.TextDocumentSyncKind||(t.TextDocumentSyncKind={})).None=0,te.Full=1,te.Incremental=2,(ee=t.DidOpenTextDocumentNotification||(t.DidOpenTextDocumentNotification={})).method="textDocument/didOpen",ee.type=new i.ProtocolNotificationType(ee.method),(Z=t.TextDocumentContentChangeEvent||(t.TextDocumentContentChangeEvent={})).isIncremental=function(e){let t=e;return null!=t&&"string"==typeof t.text&&void 0!==t.range&&(void 0===t.rangeLength||"number"==typeof t.rangeLength)},Z.isFull=function(e){let t=e;return null!=t&&"string"==typeof t.text&&void 0===t.range&&void 0===t.rangeLength},(Q=t.DidChangeTextDocumentNotification||(t.DidChangeTextDocumentNotification={})).method="textDocument/didChange",Q.type=new i.ProtocolNotificationType(Q.method),(Y=t.DidCloseTextDocumentNotification||(t.DidCloseTextDocumentNotification={})).method="textDocument/didClose",Y.type=new i.ProtocolNotificationType(Y.method),(V=t.DidSaveTextDocumentNotification||(t.DidSaveTextDocumentNotification={})).method="textDocument/didSave",V.type=new i.ProtocolNotificationType(V.method),(X=t.TextDocumentSaveReason||(t.TextDocumentSaveReason={})).Manual=1,X.AfterDelay=2,X.FocusOut=3,(J=t.WillSaveTextDocumentNotification||(t.WillSaveTextDocumentNotification={})).method="textDocument/willSave",J.type=new i.ProtocolNotificationType(J.method),(K=t.WillSaveTextDocumentWaitUntilRequest||(t.WillSaveTextDocumentWaitUntilRequest={})).method="textDocument/willSaveWaitUntil",K.type=new i.ProtocolRequestType(K.method),(t.DidChangeWatchedFilesNotification||(t.DidChangeWatchedFilesNotification={})).type=new i.ProtocolNotificationType("workspace/didChangeWatchedFiles"),(H=t.FileChangeType||(t.FileChangeType={})).Created=1,H.Changed=2,H.Deleted=3,(G=t.WatchKind||(t.WatchKind={})).Create=1,G.Change=2,G.Delete=4,(t.PublishDiagnosticsNotification||(t.PublishDiagnosticsNotification={})).type=new i.ProtocolNotificationType("textDocument/publishDiagnostics"),(z=t.CompletionTriggerKind||(t.CompletionTriggerKind={})).Invoked=1,z.TriggerCharacter=2,z.TriggerForIncompleteCompletions=3,($=t.CompletionRequest||(t.CompletionRequest={})).method="textDocument/completion",$.type=new i.ProtocolRequestType($.method),(q=t.CompletionResolveRequest||(t.CompletionResolveRequest={})).method="completionItem/resolve",q.type=new i.ProtocolRequestType(q.method),(U=t.HoverRequest||(t.HoverRequest={})).method="textDocument/hover",U.type=new i.ProtocolRequestType(U.method),(W=t.SignatureHelpTriggerKind||(t.SignatureHelpTriggerKind={})).Invoked=1,W.TriggerCharacter=2,W.ContentChange=3,(B=t.SignatureHelpRequest||(t.SignatureHelpRequest={})).method="textDocument/signatureHelp",B.type=new i.ProtocolRequestType(B.method),(L=t.DefinitionRequest||(t.DefinitionRequest={})).method="textDocument/definition",L.type=new i.ProtocolRequestType(L.method),(N=t.ReferencesRequest||(t.ReferencesRequest={})).method="textDocument/references",N.type=new i.ProtocolRequestType(N.method),(I=t.DocumentHighlightRequest||(t.DocumentHighlightRequest={})).method="textDocument/documentHighlight",I.type=new i.ProtocolRequestType(I.method),(j=t.DocumentSymbolRequest||(t.DocumentSymbolRequest={})).method="textDocument/documentSymbol",j.type=new i.ProtocolRequestType(j.method),(M=t.CodeActionRequest||(t.CodeActionRequest={})).method="textDocument/codeAction",M.type=new i.ProtocolRequestType(M.method),(F=t.CodeActionResolveRequest||(t.CodeActionResolveRequest={})).method="codeAction/resolve",F.type=new i.ProtocolRequestType(F.method),(k=t.WorkspaceSymbolRequest||(t.WorkspaceSymbolRequest={})).method="workspace/symbol",k.type=new i.ProtocolRequestType(k.method),(R=t.CodeLensRequest||(t.CodeLensRequest={})).method="textDocument/codeLens",R.type=new i.ProtocolRequestType(R.method),(T=t.CodeLensResolveRequest||(t.CodeLensResolveRequest={})).method="codeLens/resolve",T.type=new i.ProtocolRequestType(T.method),(P=t.CodeLensRefreshRequest||(t.CodeLensRefreshRequest={})).method="workspace/codeLens/refresh",P.type=new i.ProtocolRequestType0(P.method),(A=t.DocumentLinkRequest||(t.DocumentLinkRequest={})).method="textDocument/documentLink",A.type=new i.ProtocolRequestType(A.method),(D=t.DocumentLinkResolveRequest||(t.DocumentLinkResolveRequest={})).method="documentLink/resolve",D.type=new i.ProtocolRequestType(D.method),(C=t.DocumentFormattingRequest||(t.DocumentFormattingRequest={})).method="textDocument/formatting",C.type=new i.ProtocolRequestType(C.method),(O=t.DocumentRangeFormattingRequest||(t.DocumentRangeFormattingRequest={})).method="textDocument/rangeFormatting",O.type=new i.ProtocolRequestType(O.method),(_=t.DocumentOnTypeFormattingRequest||(t.DocumentOnTypeFormattingRequest={})).method="textDocument/onTypeFormatting",_.type=new i.ProtocolRequestType(_.method),(t.PrepareSupportDefaultBehavior||(t.PrepareSupportDefaultBehavior={})).Identifier=1,(w=t.RenameRequest||(t.RenameRequest={})).method="textDocument/rename",w.type=new i.ProtocolRequestType(w.method),(x=t.PrepareRenameRequest||(t.PrepareRenameRequest={})).method="textDocument/prepareRename",x.type=new i.ProtocolRequestType(x.method),(t.ExecuteCommandRequest||(t.ExecuteCommandRequest={})).type=new i.ProtocolRequestType("workspace/executeCommand"),(t.ApplyWorkspaceEditRequest||(t.ApplyWorkspaceEditRequest={})).type=new i.ProtocolRequestType("workspace/applyEdit")},50527:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LinkedEditingRangeRequest=void 0;const r=n(58599);var i;(i=t.LinkedEditingRangeRequest||(t.LinkedEditingRangeRequest={})).method="textDocument/linkedEditingRange",i.type=new r.ProtocolRequestType(i.method)},81964:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MonikerRequest=t.MonikerKind=t.UniquenessLevel=void 0;const r=n(58599);var i,o,s;(s=t.UniquenessLevel||(t.UniquenessLevel={})).document="document",s.project="project",s.group="group",s.scheme="scheme",s.global="global",(o=t.MonikerKind||(t.MonikerKind={})).import="import",o.export="export",o.local="local",(i=t.MonikerRequest||(t.MonikerRequest={})).method="textDocument/moniker",i.type=new r.ProtocolRequestType(i.method)},57895:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkDoneProgressCancelNotification=t.WorkDoneProgressCreateRequest=t.WorkDoneProgress=void 0;const r=n(40039),i=n(58599);var o;(o=t.WorkDoneProgress||(t.WorkDoneProgress={})).type=new r.ProgressType,o.is=function(e){return e===o.type},(t.WorkDoneProgressCreateRequest||(t.WorkDoneProgressCreateRequest={})).type=new i.ProtocolRequestType("window/workDoneProgress/create"),(t.WorkDoneProgressCancelNotification||(t.WorkDoneProgressCancelNotification={})).type=new i.ProtocolNotificationType("window/workDoneProgress/cancel")},22392:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionRangeRequest=void 0;const r=n(58599);var i;(i=t.SelectionRangeRequest||(t.SelectionRangeRequest={})).method="textDocument/selectionRange",i.type=new r.ProtocolRequestType(i.method)},8489:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SemanticTokensRefreshRequest=t.SemanticTokensRangeRequest=t.SemanticTokensDeltaRequest=t.SemanticTokensRequest=t.SemanticTokensRegistrationType=t.TokenFormat=t.SemanticTokens=t.SemanticTokenModifiers=t.SemanticTokenTypes=void 0;const r=n(58599);var i,o,s,a,c,u,l;(l=t.SemanticTokenTypes||(t.SemanticTokenTypes={})).namespace="namespace",l.type="type",l.class="class",l.enum="enum",l.interface="interface",l.struct="struct",l.typeParameter="typeParameter",l.parameter="parameter",l.variable="variable",l.property="property",l.enumMember="enumMember",l.event="event",l.function="function",l.method="method",l.macro="macro",l.keyword="keyword",l.modifier="modifier",l.comment="comment",l.string="string",l.number="number",l.regexp="regexp",l.operator="operator",(u=t.SemanticTokenModifiers||(t.SemanticTokenModifiers={})).declaration="declaration",u.definition="definition",u.readonly="readonly",u.static="static",u.deprecated="deprecated",u.abstract="abstract",u.async="async",u.modification="modification",u.documentation="documentation",u.defaultLibrary="defaultLibrary",(t.SemanticTokens||(t.SemanticTokens={})).is=function(e){const t=e;return void 0!==t&&(void 0===t.resultId||"string"==typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"==typeof t.data[0])},(t.TokenFormat||(t.TokenFormat={})).Relative="relative",(c=t.SemanticTokensRegistrationType||(t.SemanticTokensRegistrationType={})).method="textDocument/semanticTokens",c.type=new r.RegistrationType(c.method),(a=t.SemanticTokensRequest||(t.SemanticTokensRequest={})).method="textDocument/semanticTokens/full",a.type=new r.ProtocolRequestType(a.method),(s=t.SemanticTokensDeltaRequest||(t.SemanticTokensDeltaRequest={})).method="textDocument/semanticTokens/full/delta",s.type=new r.ProtocolRequestType(s.method),(o=t.SemanticTokensRangeRequest||(t.SemanticTokensRangeRequest={})).method="textDocument/semanticTokens/range",o.type=new r.ProtocolRequestType(o.method),(i=t.SemanticTokensRefreshRequest||(t.SemanticTokensRefreshRequest={})).method="workspace/semanticTokens/refresh",i.type=new r.ProtocolRequestType0(i.method)},81541:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ShowDocumentRequest=void 0;const r=n(58599);var i;(i=t.ShowDocumentRequest||(t.ShowDocumentRequest={})).method="window/showDocument",i.type=new r.ProtocolRequestType(i.method)},98642:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeDefinitionRequest=void 0;const r=n(58599);var i;(i=t.TypeDefinitionRequest||(t.TypeDefinitionRequest={})).method="textDocument/typeDefinition",i.type=new r.ProtocolRequestType(i.method)},53699:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DidChangeWorkspaceFoldersNotification=t.WorkspaceFoldersRequest=void 0;const r=n(58599);(t.WorkspaceFoldersRequest||(t.WorkspaceFoldersRequest={})).type=new r.ProtocolRequestType0("workspace/workspaceFolders"),(t.DidChangeWorkspaceFoldersNotification||(t.DidChangeWorkspaceFoldersNotification={})).type=new r.ProtocolNotificationType("workspace/didChangeWorkspaceFolders")},82523:(e,t)=>{"use strict";function n(e){return"string"==typeof e||e instanceof String}function r(e){return Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.objectLiteral=t.typedArray=t.stringArray=t.array=t.func=t.error=t.number=t.string=t.boolean=void 0,t.boolean=function(e){return!0===e||!1===e},t.string=n,t.number=function(e){return"number"==typeof e||e instanceof Number},t.error=function(e){return e instanceof Error},t.func=function(e){return"function"==typeof e},t.array=r,t.stringArray=function(e){return r(e)&&e.every((e=>n(e)))},t.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)},t.objectLiteral=function(e){return null!==e&&"object"==typeof e}},61747:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.createProtocolConnection=void 0;const o=n(31335);i(n(31335),t),i(n(69372),t),t.createProtocolConnection=function(e,t,n,r){return o.createMessageConnection(e,t,n,r)}},42570:(e,t,n)=>{"use strict";e.exports=n(61747)},64881:(e,t,n)=>{"use strict";n.r(t),n.d(t,{TextDocument:()=>i});class r{constructor(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){const t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){for(let t of e)if(r.isIncremental(t)){const e=a(t.range),n=this.offsetAt(e.start),r=this.offsetAt(e.end);this._content=this._content.substring(0,n)+t.text+this._content.substring(r,this._content.length);const i=Math.max(e.start.line,0),o=Math.max(e.end.line,0);let c=this._lineOffsets;const u=s(t.text,!1,n);if(o-i===u.length)for(let e=0,t=u.length;ee?r=i:n=i+1}let i=n-1;return{line:i,character:e-t[i]}}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],r=e.line+1n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function c(e){const t=a(e.range);return t!==e.range?{newText:e.newText,range:t}:e}!function(e){e.create=function(e,t,n,i){return new r(e,t,n,i)},e.update=function(e,t,n){if(e instanceof r)return e.update(t,n),e;throw new Error("TextDocument.update: document must be created by TextDocument.create")},e.applyEdits=function(e,t){let n=e.getText(),r=o(t.map(c),((e,t)=>{let n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),i=0;const s=[];for(const t of r){let r=e.offsetAt(t.range.start);if(ri&&s.push(n.substring(i,r)),t.newText.length&&s.push(t.newText),i=e.offsetAt(t.range.end)}return s.push(n.substr(i)),s.join("")}}(i||(i={}))},54767:(e,t,n)=>{"use strict";var r,i,o,s,a,c,u,l,f,d,p,h,g,m,y,v,b,S,E,x,w,_,O,C,D,A;n.r(t),n.d(t,{AnnotatedTextEdit:()=>w,ChangeAnnotation:()=>E,ChangeAnnotationIdentifier:()=>x,CodeAction:()=>ee,CodeActionContext:()=>Z,CodeActionKind:()=>Q,CodeDescription:()=>y,CodeLens:()=>te,Color:()=>u,ColorInformation:()=>l,ColorPresentation:()=>f,Command:()=>b,CompletionItem:()=>W,CompletionItemKind:()=>j,CompletionItemTag:()=>N,CompletionList:()=>U,CreateFile:()=>O,DeleteFile:()=>D,Diagnostic:()=>v,DiagnosticRelatedInformation:()=>h,DiagnosticSeverity:()=>g,DiagnosticTag:()=>m,DocumentHighlight:()=>K,DocumentHighlightKind:()=>H,DocumentLink:()=>re,DocumentSymbol:()=>Y,EOL:()=>ue,FoldingRange:()=>p,FoldingRangeKind:()=>d,FormattingOptions:()=>ne,Hover:()=>$,InsertReplaceEdit:()=>L,InsertTextFormat:()=>I,InsertTextMode:()=>B,Location:()=>a,LocationLink:()=>c,MarkedString:()=>q,MarkupContent:()=>M,MarkupKind:()=>F,OptionalVersionedTextDocumentIdentifier:()=>R,ParameterInformation:()=>z,Position:()=>o,Range:()=>s,RenameFile:()=>C,SelectionRange:()=>ie,SignatureInformation:()=>G,SymbolInformation:()=>V,SymbolKind:()=>J,SymbolTag:()=>X,TextDocument:()=>ce,TextDocumentEdit:()=>_,TextDocumentIdentifier:()=>P,TextDocumentItem:()=>k,TextEdit:()=>S,VersionedTextDocumentIdentifier:()=>T,WorkspaceChange:()=>ae,WorkspaceEdit:()=>A,integer:()=>r,uinteger:()=>i}),function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647}(r||(r={})),function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647}(i||(i={})),function(e){e.create=function(e,t){return e===Number.MAX_VALUE&&(e=i.MAX_VALUE),t===Number.MAX_VALUE&&(t=i.MAX_VALUE),{line:e,character:t}},e.is=function(e){var t=e;return le.objectLiteral(t)&&le.uinteger(t.line)&&le.uinteger(t.character)}}(o||(o={})),function(e){e.create=function(e,t,n,r){if(le.uinteger(e)&&le.uinteger(t)&&le.uinteger(n)&&le.uinteger(r))return{start:o.create(e,t),end:o.create(n,r)};if(o.is(e)&&o.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments["+e+", "+t+", "+n+", "+r+"]")},e.is=function(e){var t=e;return le.objectLiteral(t)&&o.is(t.start)&&o.is(t.end)}}(s||(s={})),function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){var t=e;return le.defined(t)&&s.is(t.range)&&(le.string(t.uri)||le.undefined(t.uri))}}(a||(a={})),function(e){e.create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},e.is=function(e){var t=e;return le.defined(t)&&s.is(t.targetRange)&&le.string(t.targetUri)&&(s.is(t.targetSelectionRange)||le.undefined(t.targetSelectionRange))&&(s.is(t.originSelectionRange)||le.undefined(t.originSelectionRange))}}(c||(c={})),function(e){e.create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},e.is=function(e){var t=e;return le.numberRange(t.red,0,1)&&le.numberRange(t.green,0,1)&&le.numberRange(t.blue,0,1)&&le.numberRange(t.alpha,0,1)}}(u||(u={})),function(e){e.create=function(e,t){return{range:e,color:t}},e.is=function(e){var t=e;return s.is(t.range)&&u.is(t.color)}}(l||(l={})),function(e){e.create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},e.is=function(e){var t=e;return le.string(t.label)&&(le.undefined(t.textEdit)||S.is(t))&&(le.undefined(t.additionalTextEdits)||le.typedArray(t.additionalTextEdits,S.is))}}(f||(f={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(d||(d={})),function(e){e.create=function(e,t,n,r,i){var o={startLine:e,endLine:t};return le.defined(n)&&(o.startCharacter=n),le.defined(r)&&(o.endCharacter=r),le.defined(i)&&(o.kind=i),o},e.is=function(e){var t=e;return le.uinteger(t.startLine)&&le.uinteger(t.startLine)&&(le.undefined(t.startCharacter)||le.uinteger(t.startCharacter))&&(le.undefined(t.endCharacter)||le.uinteger(t.endCharacter))&&(le.undefined(t.kind)||le.string(t.kind))}}(p||(p={})),function(e){e.create=function(e,t){return{location:e,message:t}},e.is=function(e){var t=e;return le.defined(t)&&a.is(t.location)&&le.string(t.message)}}(h||(h={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(g||(g={})),function(e){e.Unnecessary=1,e.Deprecated=2}(m||(m={})),function(e){e.is=function(e){var t=e;return null!=t&&le.string(t.href)}}(y||(y={})),function(e){e.create=function(e,t,n,r,i,o){var s={range:e,message:t};return le.defined(n)&&(s.severity=n),le.defined(r)&&(s.code=r),le.defined(i)&&(s.source=i),le.defined(o)&&(s.relatedInformation=o),s},e.is=function(e){var t,n=e;return le.defined(n)&&s.is(n.range)&&le.string(n.message)&&(le.number(n.severity)||le.undefined(n.severity))&&(le.integer(n.code)||le.string(n.code)||le.undefined(n.code))&&(le.undefined(n.codeDescription)||le.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(le.string(n.source)||le.undefined(n.source))&&(le.undefined(n.relatedInformation)||le.typedArray(n.relatedInformation,h.is))}}(v||(v={})),function(e){e.create=function(e,t){for(var n=[],r=2;r0&&(i.arguments=n),i},e.is=function(e){var t=e;return le.defined(t)&&le.string(t.title)&&le.string(t.command)}}(b||(b={})),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){var t=e;return le.objectLiteral(t)&&le.string(t.newText)&&s.is(t.range)}}(S||(S={})),function(e){e.create=function(e,t,n){var r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},e.is=function(e){var t=e;return void 0!==t&&le.objectLiteral(t)&&le.string(t.label)&&(le.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(le.string(t.description)||void 0===t.description)}}(E||(E={})),function(e){e.is=function(e){return"string"==typeof e}}(x||(x={})),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){var t=e;return S.is(t)&&(E.is(t.annotationId)||x.is(t.annotationId))}}(w||(w={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){var t=e;return le.defined(t)&&R.is(t.textDocument)&&Array.isArray(t.edits)}}(_||(_={})),function(e){e.create=function(e,t,n){var r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},e.is=function(e){var t=e;return t&&"create"===t.kind&&le.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||le.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||le.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||x.is(t.annotationId))}}(O||(O={})),function(e){e.create=function(e,t,n,r){var i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==r&&(i.annotationId=r),i},e.is=function(e){var t=e;return t&&"rename"===t.kind&&le.string(t.oldUri)&&le.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||le.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||le.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||x.is(t.annotationId))}}(C||(C={})),function(e){e.create=function(e,t,n){var r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},e.is=function(e){var t=e;return t&&"delete"===t.kind&&le.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||le.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||le.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||x.is(t.annotationId))}}(D||(D={})),function(e){e.is=function(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return le.string(e.kind)?O.is(e)||C.is(e)||D.is(e):_.is(e)})))}}(A||(A={}));var P,T,R,k,F,M,j,I,N,L,B,W,U,q,$,z,G,H,K,J,X,V,Y,Q,Z,ee,te,ne,re,ie,oe=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return e.prototype.insert=function(e,t,n){var r,i;if(void 0===n?r=S.insert(e,t):x.is(n)?(i=n,r=w.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=w.insert(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.replace=function(e,t,n){var r,i;if(void 0===n?r=S.replace(e,t):x.is(n)?(i=n,r=w.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=w.replace(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.delete=function(e,t){var n,r;if(void 0===t?n=S.del(e):x.is(t)?(r=t,n=w.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=w.del(e,r)),this.edits.push(n),void 0!==r)return r},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),se=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,t){var n;if(x.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error("Id "+n+" is already in use.");if(void 0===t)throw new Error("No annotation provided for id "+n);return this._annotations[n]=t,this._size++,n},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}(),ae=function(){function e(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new se(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(_.is(e)){var n=new oe(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=n}}))):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new oe(e.changes[n]);t._textEditChanges[n]=r}))):this._workspaceEdit={}}return Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(R.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version};if(!(r=this._textEditChanges[t.uri])){var n={textDocument:t,edits:i=[]};this._workspaceEdit.documentChanges.push(n),r=new oe(i,this._changeAnnotations),this._textEditChanges[t.uri]=r}return r}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r;if(!(r=this._textEditChanges[e])){var i=[];this._workspaceEdit.changes[e]=i,r=new oe(i),this._textEditChanges[e]=r}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new se,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(E.is(t)||x.is(t)?r=t:n=t,void 0===r?i=O.create(e,n):(o=x.is(r)?r:this._changeAnnotations.manage(r),i=O.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o},e.prototype.renameFile=function(e,t,n,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,o,s;if(E.is(n)||x.is(n)?i=n:r=n,void 0===i?o=C.create(e,t,r):(s=x.is(i)?i:this._changeAnnotations.manage(i),o=C.create(e,t,r,s)),this._workspaceEdit.documentChanges.push(o),void 0!==s)return s},e.prototype.deleteFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(E.is(t)||x.is(t)?r=t:n=t,void 0===r?i=D.create(e,n):(o=x.is(r)?r:this._changeAnnotations.manage(r),i=D.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o},e}();!function(e){e.create=function(e){return{uri:e}},e.is=function(e){var t=e;return le.defined(t)&&le.string(t.uri)}}(P||(P={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return le.defined(t)&&le.string(t.uri)&&le.integer(t.version)}}(T||(T={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return le.defined(t)&&le.string(t.uri)&&(null===t.version||le.integer(t.version))}}(R||(R={})),function(e){e.create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},e.is=function(e){var t=e;return le.defined(t)&&le.string(t.uri)&&le.string(t.languageId)&&le.integer(t.version)&&le.string(t.text)}}(k||(k={})),function(e){e.PlainText="plaintext",e.Markdown="markdown"}(F||(F={})),function(e){e.is=function(t){var n=t;return n===e.PlainText||n===e.Markdown}}(F||(F={})),function(e){e.is=function(e){var t=e;return le.objectLiteral(e)&&F.is(t.kind)&&le.string(t.value)}}(M||(M={})),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}(j||(j={})),function(e){e.PlainText=1,e.Snippet=2}(I||(I={})),function(e){e.Deprecated=1}(N||(N={})),function(e){e.create=function(e,t,n){return{newText:e,insert:t,replace:n}},e.is=function(e){var t=e;return t&&le.string(t.newText)&&s.is(t.insert)&&s.is(t.replace)}}(L||(L={})),function(e){e.asIs=1,e.adjustIndentation=2}(B||(B={})),function(e){e.create=function(e){return{label:e}}}(W||(W={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}(U||(U={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){var t=e;return le.string(t)||le.objectLiteral(t)&&le.string(t.language)&&le.string(t.value)}}(q||(q={})),function(e){e.is=function(e){var t=e;return!!t&&le.objectLiteral(t)&&(M.is(t.contents)||q.is(t.contents)||le.typedArray(t.contents,q.is))&&(void 0===e.range||s.is(e.range))}}($||($={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(z||(z={})),function(e){e.create=function(e,t){for(var n=[],r=2;r=0;s--){var a=i[s],c=e.offsetAt(a.range.start),u=e.offsetAt(a.range.end);if(!(u<=o))throw new Error("Overlapping edit");r=r.substring(0,c)+a.newText+r.substring(u,r.length),o=c}return r}}(ce||(ce={}));var le,fe=function(){function e(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,n=!0,r=0;r0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return o.create(0,e);for(;ne?r=i:n=i+1}var s=n-1;return o.create(s,e-t[s])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],r=e.line+1{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CallHierarchyFeature=void 0;const r=n(61747);t.CallHierarchyFeature=e=>class extends e{get callHierarchy(){return{onPrepare:e=>{this.connection.onRequest(r.CallHierarchyPrepareRequest.type,((t,n)=>e(t,n,this.attachWorkDoneProgress(t),void 0)))},onIncomingCalls:e=>{const t=r.CallHierarchyIncomingCallsRequest.type;this.connection.onRequest(t,((n,r)=>e(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(t,n))))},onOutgoingCalls:e=>{const t=r.CallHierarchyOutgoingCallsRequest.type;this.connection.onRequest(t,((n,r)=>e(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(t,n))))}}}}},60905:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigurationFeature=void 0;const r=n(61747),i=n(306);t.ConfigurationFeature=e=>class extends e{getConfiguration(e){return e?i.string(e)?this._getConfiguration({section:e}):this._getConfiguration(e):this._getConfiguration({})}_getConfiguration(e){let t={items:Array.isArray(e)?e:[e]};return this.connection.sendRequest(r.ConfigurationRequest.type,t).then((t=>Array.isArray(e)?t:t[0]))}}},13447:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileOperationsFeature=void 0;const r=n(61747);t.FileOperationsFeature=e=>class extends e{onDidCreateFiles(e){this.connection.onNotification(r.DidCreateFilesNotification.type,(t=>{e(t)}))}onDidRenameFiles(e){this.connection.onNotification(r.DidRenameFilesNotification.type,(t=>{e(t)}))}onDidDeleteFiles(e){this.connection.onNotification(r.DidDeleteFilesNotification.type,(t=>{e(t)}))}onWillCreateFiles(e){return this.connection.onRequest(r.WillCreateFilesRequest.type,((t,n)=>e(t,n)))}onWillRenameFiles(e){return this.connection.onRequest(r.WillRenameFilesRequest.type,((t,n)=>e(t,n)))}onWillDeleteFiles(e){return this.connection.onRequest(r.WillDeleteFilesRequest.type,((t,n)=>e(t,n)))}}},37004:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LinkedEditingRangeFeature=void 0;const r=n(61747);t.LinkedEditingRangeFeature=e=>class extends e{onLinkedEditingRange(e){this.connection.onRequest(r.LinkedEditingRangeRequest.type,((t,n)=>e(t,n,this.attachWorkDoneProgress(t),void 0)))}}},75212:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MonikerFeature=void 0;const r=n(61747);t.MonikerFeature=e=>class extends e{get moniker(){return{on:e=>{const t=r.MonikerRequest.type;this.connection.onRequest(t,((n,r)=>e(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(t,n))))}}}}},77846:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.attachPartialResult=t.ProgressFeature=t.attachWorkDone=void 0;const r=n(61747),i=n(72086);class o{constructor(e,t){this._connection=e,this._token=t,o.Instances.set(this._token,this)}begin(e,t,n,i){let o={kind:"begin",title:e,percentage:t,message:n,cancellable:i};this._connection.sendProgress(r.WorkDoneProgress.type,this._token,o)}report(e,t){let n={kind:"report"};"number"==typeof e?(n.percentage=e,void 0!==t&&(n.message=t)):n.message=e,this._connection.sendProgress(r.WorkDoneProgress.type,this._token,n)}done(){o.Instances.delete(this._token),this._connection.sendProgress(r.WorkDoneProgress.type,this._token,{kind:"end"})}}o.Instances=new Map;class s extends o{constructor(e,t){super(e,t),this._source=new r.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}}class a{constructor(){}begin(){}report(){}done(){}}class c extends a{constructor(){super(),this._source=new r.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}}var u;t.attachWorkDone=function(e,t){if(void 0===t||void 0===t.workDoneToken)return new a;const n=t.workDoneToken;return delete t.workDoneToken,new o(e,n)},t.ProgressFeature=e=>class extends e{constructor(){super(),this._progressSupported=!1}initialize(e){var t;!0===(null===(t=null==e?void 0:e.window)||void 0===t?void 0:t.workDoneProgress)&&(this._progressSupported=!0,this.connection.onNotification(r.WorkDoneProgressCancelNotification.type,(e=>{let t=o.Instances.get(e.token);(t instanceof s||t instanceof c)&&t.cancel()})))}attachWorkDoneProgress(e){return void 0===e?new a:new o(this.connection,e)}createWorkDoneProgress(){if(this._progressSupported){const e=i.generateUuid();return this.connection.sendRequest(r.WorkDoneProgressCreateRequest.type,{token:e}).then((()=>new s(this.connection,e)))}return Promise.resolve(new c)}},function(e){e.type=new r.ProgressType}(u||(u={}));class l{constructor(e,t){this._connection=e,this._token=t}report(e){this._connection.sendProgress(u.type,this._token,e)}}t.attachPartialResult=function(e,t){if(void 0===t||void 0===t.partialResultToken)return;const n=t.partialResultToken;return delete t.partialResultToken,new l(e,n)}},15185:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SemanticTokensBuilder=t.SemanticTokensFeature=void 0;const r=n(61747);t.SemanticTokensFeature=e=>class extends e{get semanticTokens(){return{on:e=>{const t=r.SemanticTokensRequest.type;this.connection.onRequest(t,((n,r)=>e(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(t,n))))},onDelta:e=>{const t=r.SemanticTokensDeltaRequest.type;this.connection.onRequest(t,((n,r)=>e(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(t,n))))},onRange:e=>{const t=r.SemanticTokensRangeRequest.type;this.connection.onRequest(t,((n,r)=>e(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(t,n))))}}}},t.SemanticTokensBuilder=class{constructor(){this._prevData=void 0,this.initialize()}initialize(){this._id=Date.now(),this._prevLine=0,this._prevChar=0,this._data=[],this._dataLen=0}push(e,t,n,r,i){let o=e,s=t;this._dataLen>0&&(o-=this._prevLine,0===o&&(s-=this._prevChar)),this._data[this._dataLen++]=o,this._data[this._dataLen++]=s,this._data[this._dataLen++]=n,this._data[this._dataLen++]=r,this._data[this._dataLen++]=i,this._prevLine=e,this._prevChar=t}get id(){return this._id.toString()}previousResult(e){this.id===e&&(this._prevData=this._data),this.initialize()}build(){return this._prevData=void 0,{resultId:this.id,data:this._data}}canBuildEdits(){return void 0!==this._prevData}buildEdits(){if(void 0!==this._prevData){const e=this._prevData.length,t=this._data.length;let n=0;for(;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createConnection=t.combineFeatures=t.combineLanguagesFeatures=t.combineWorkspaceFeatures=t.combineWindowFeatures=t.combineClientFeatures=t.combineTracerFeatures=t.combineTelemetryFeatures=t.combineConsoleFeatures=t._LanguagesImpl=t.BulkUnregistration=t.BulkRegistration=t.ErrorMessageTracker=t.TextDocuments=void 0;const r=n(61747),i=n(306),o=n(72086),s=n(77846),a=n(60905),c=n(42550),u=n(43700),l=n(15185),f=n(66776),d=n(13447),p=n(37004),h=n(75212);function g(e){if(null!==e)return e}t.TextDocuments=class{constructor(e){this._documents=Object.create(null),this._configuration=e,this._onDidChangeContent=new r.Emitter,this._onDidOpen=new r.Emitter,this._onDidClose=new r.Emitter,this._onDidSave=new r.Emitter,this._onWillSave=new r.Emitter}get onDidChangeContent(){return this._onDidChangeContent.event}get onDidOpen(){return this._onDidOpen.event}get onWillSave(){return this._onWillSave.event}onWillSaveWaitUntil(e){this._willSaveWaitUntil=e}get onDidSave(){return this._onDidSave.event}get onDidClose(){return this._onDidClose.event}get(e){return this._documents[e]}all(){return Object.keys(this._documents).map((e=>this._documents[e]))}keys(){return Object.keys(this._documents)}listen(e){e.__textDocumentSync=r.TextDocumentSyncKind.Full,e.onDidOpenTextDocument((e=>{let t=e.textDocument,n=this._configuration.create(t.uri,t.languageId,t.version,t.text);this._documents[t.uri]=n;let r=Object.freeze({document:n});this._onDidOpen.fire(r),this._onDidChangeContent.fire(r)})),e.onDidChangeTextDocument((e=>{let t=e.textDocument,n=e.contentChanges;if(0===n.length)return;let r=this._documents[t.uri];const{version:i}=t;if(null==i)throw new Error(`Received document change event for ${t.uri} without valid version identifier`);r=this._configuration.update(r,n,i),this._documents[t.uri]=r,this._onDidChangeContent.fire(Object.freeze({document:r}))})),e.onDidCloseTextDocument((e=>{let t=this._documents[e.textDocument.uri];t&&(delete this._documents[e.textDocument.uri],this._onDidClose.fire(Object.freeze({document:t})))})),e.onWillSaveTextDocument((e=>{let t=this._documents[e.textDocument.uri];t&&this._onWillSave.fire(Object.freeze({document:t,reason:e.reason}))})),e.onWillSaveTextDocumentWaitUntil(((e,t)=>{let n=this._documents[e.textDocument.uri];return n&&this._willSaveWaitUntil?this._willSaveWaitUntil(Object.freeze({document:n,reason:e.reason}),t):[]})),e.onDidSaveTextDocument((e=>{let t=this._documents[e.textDocument.uri];t&&this._onDidSave.fire(Object.freeze({document:t}))}))}},t.ErrorMessageTracker=class{constructor(){this._messages=Object.create(null)}add(e){let t=this._messages[e];t||(t=0),t++,this._messages[e]=t}sendErrors(e){Object.keys(this._messages).forEach((t=>{e.window.showErrorMessage(t)}))}};class m{constructor(){}rawAttach(e){this._rawConnection=e}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}fillServerCapabilities(e){}initialize(e){}error(e){this.send(r.MessageType.Error,e)}warn(e){this.send(r.MessageType.Warning,e)}info(e){this.send(r.MessageType.Info,e)}log(e){this.send(r.MessageType.Log,e)}send(e,t){this._rawConnection&&this._rawConnection.sendNotification(r.LogMessageNotification.type,{type:e,message:t})}}const y=f.ShowDocumentFeature(s.ProgressFeature(class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}showErrorMessage(e,...t){let n={type:r.MessageType.Error,message:e,actions:t};return this.connection.sendRequest(r.ShowMessageRequest.type,n).then(g)}showWarningMessage(e,...t){let n={type:r.MessageType.Warning,message:e,actions:t};return this.connection.sendRequest(r.ShowMessageRequest.type,n).then(g)}showInformationMessage(e,...t){let n={type:r.MessageType.Info,message:e,actions:t};return this.connection.sendRequest(r.ShowMessageRequest.type,n).then(g)}}));(t.BulkRegistration||(t.BulkRegistration={})).create=function(){return new v};class v{constructor(){this._registrations=[],this._registered=new Set}add(e,t){const n=i.string(e)?e:e.method;if(this._registered.has(n))throw new Error(`${n} is already added to this registration`);const r=o.generateUuid();this._registrations.push({id:r,method:n,registerOptions:t||{}}),this._registered.add(n)}asRegistrationParams(){return{registrations:this._registrations}}}(t.BulkUnregistration||(t.BulkUnregistration={})).create=function(){return new b(void 0,[])};class b{constructor(e,t){this._connection=e,this._unregistrations=new Map,t.forEach((e=>{this._unregistrations.set(e.method,e)}))}get isAttached(){return!!this._connection}attach(e){this._connection=e}add(e){this._unregistrations.set(e.method,e)}dispose(){let e=[];for(let t of this._unregistrations.values())e.push(t);let t={unregisterations:e};this._connection.sendRequest(r.UnregistrationRequest.type,t).then(void 0,(e=>{this._connection.console.info("Bulk unregistration failed.")}))}disposeSingle(e){const t=i.string(e)?e:e.method,n=this._unregistrations.get(t);if(!n)return!1;let o={unregisterations:[n]};return this._connection.sendRequest(r.UnregistrationRequest.type,o).then((()=>{this._unregistrations.delete(t)}),(e=>{this._connection.console.info(`Un-registering request handler for ${n.id} failed.`)})),!0}}class S{attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}register(e,t,n){return e instanceof v?this.registerMany(e):e instanceof b?this.registerSingle1(e,t,n):this.registerSingle2(e,t)}registerSingle1(e,t,n){const s=i.string(t)?t:t.method,a=o.generateUuid();let c={registrations:[{id:a,method:s,registerOptions:n||{}}]};return e.isAttached||e.attach(this.connection),this.connection.sendRequest(r.RegistrationRequest.type,c).then((t=>(e.add({id:a,method:s}),e)),(e=>(this.connection.console.info(`Registering request handler for ${s} failed.`),Promise.reject(e))))}registerSingle2(e,t){const n=i.string(e)?e:e.method,s=o.generateUuid();let a={registrations:[{id:s,method:n,registerOptions:t||{}}]};return this.connection.sendRequest(r.RegistrationRequest.type,a).then((e=>r.Disposable.create((()=>{this.unregisterSingle(s,n)}))),(e=>(this.connection.console.info(`Registering request handler for ${n} failed.`),Promise.reject(e))))}unregisterSingle(e,t){let n={unregisterations:[{id:e,method:t}]};return this.connection.sendRequest(r.UnregistrationRequest.type,n).then(void 0,(t=>{this.connection.console.info(`Un-registering request handler for ${e} failed.`)}))}registerMany(e){let t=e.asRegistrationParams();return this.connection.sendRequest(r.RegistrationRequest.type,t).then((()=>new b(this._connection,t.registrations.map((e=>({id:e.id,method:e.method}))))),(e=>(this.connection.console.info("Bulk registration failed."),Promise.reject(e))))}}const E=d.FileOperationsFeature(c.WorkspaceFoldersFeature(a.ConfigurationFeature(class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}applyEdit(e){let t=(n=e)&&n.edit?e:{edit:e};var n;return this.connection.sendRequest(r.ApplyWorkspaceEditRequest.type,t)}})));class x{constructor(){this._trace=r.Trace.Off}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}set trace(e){this._trace=e}log(e,t){this._trace!==r.Trace.Off&&this.connection.sendNotification(r.LogTraceNotification.type,{message:e,verbose:this._trace===r.Trace.Verbose?t:void 0})}}class w{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}logEvent(e){this.connection.sendNotification(r.TelemetryEventNotification.type,e)}}class _{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}attachWorkDoneProgress(e){return s.attachWorkDone(this.connection,e)}attachPartialResultProgress(e,t){return s.attachPartialResult(this.connection,t)}}t._LanguagesImpl=_;const O=h.MonikerFeature(p.LinkedEditingRangeFeature(l.SemanticTokensFeature(u.CallHierarchyFeature(_))));function C(e,t){return function(n){return t(e(n))}}function D(e,t){return function(n){return t(e(n))}}function A(e,t){return function(n){return t(e(n))}}function P(e,t){return function(n){return t(e(n))}}function T(e,t){return function(n){return t(e(n))}}function R(e,t){return function(n){return t(e(n))}}t.combineConsoleFeatures=C,t.combineTelemetryFeatures=D,t.combineTracerFeatures=A,t.combineClientFeatures=P,t.combineWindowFeatures=T,t.combineWorkspaceFeatures=R,t.combineLanguagesFeatures=function(e,t){return function(n){return t(e(n))}},t.combineFeatures=function(e,t){function n(e,t,n){return e&&t?n(e,t):e||t}return{__brand:"features",console:n(e.console,t.console,C),tracer:n(e.tracer,t.tracer,A),telemetry:n(e.telemetry,t.telemetry,D),client:n(e.client,t.client,P),window:n(e.window,t.window,T),workspace:n(e.workspace,t.workspace,R)}},t.createConnection=function(e,t,n){const o=n&&n.console?new(n.console(m)):new m,a=e(o);o.rawAttach(a);const c=n&&n.tracer?new(n.tracer(x)):new x,u=n&&n.telemetry?new(n.telemetry(w)):new w,l=n&&n.client?new(n.client(S)):new S,f=n&&n.window?new(n.window(y)):new y,d=n&&n.workspace?new(n.workspace(E)):new E,p=n&&n.languages?new(n.languages(O)):new O,h=[o,c,u,l,f,d,p];function g(e){return e instanceof Promise?e:i.thenable(e)?new Promise(((t,n)=>{e.then((e=>t(e)),(e=>n(e)))})):Promise.resolve(e)}let v,b,_,C={listen:()=>a.listen(),sendRequest:(e,...t)=>a.sendRequest(i.string(e)?e:e.method,...t),onRequest:(e,t)=>a.onRequest(e,t),sendNotification:(e,t)=>{const n=i.string(e)?e:e.method;1===arguments.length?a.sendNotification(n):a.sendNotification(n,t)},onNotification:(e,t)=>a.onNotification(e,t),onProgress:a.onProgress,sendProgress:a.sendProgress,onInitialize:e=>b=e,onInitialized:e=>a.onNotification(r.InitializedNotification.type,e),onShutdown:e=>v=e,onExit:e=>_=e,get console(){return o},get telemetry(){return u},get tracer(){return c},get client(){return l},get window(){return f},get workspace(){return d},get languages(){return p},onDidChangeConfiguration:e=>a.onNotification(r.DidChangeConfigurationNotification.type,e),onDidChangeWatchedFiles:e=>a.onNotification(r.DidChangeWatchedFilesNotification.type,e),__textDocumentSync:void 0,onDidOpenTextDocument:e=>a.onNotification(r.DidOpenTextDocumentNotification.type,e),onDidChangeTextDocument:e=>a.onNotification(r.DidChangeTextDocumentNotification.type,e),onDidCloseTextDocument:e=>a.onNotification(r.DidCloseTextDocumentNotification.type,e),onWillSaveTextDocument:e=>a.onNotification(r.WillSaveTextDocumentNotification.type,e),onWillSaveTextDocumentWaitUntil:e=>a.onRequest(r.WillSaveTextDocumentWaitUntilRequest.type,e),onDidSaveTextDocument:e=>a.onNotification(r.DidSaveTextDocumentNotification.type,e),sendDiagnostics:e=>a.sendNotification(r.PublishDiagnosticsNotification.type,e),onHover:e=>a.onRequest(r.HoverRequest.type,((t,n)=>e(t,n,s.attachWorkDone(a,t),void 0))),onCompletion:e=>a.onRequest(r.CompletionRequest.type,((t,n)=>e(t,n,s.attachWorkDone(a,t),s.attachPartialResult(a,t)))),onCompletionResolve:e=>a.onRequest(r.CompletionResolveRequest.type,e),onSignatureHelp:e=>a.onRequest(r.SignatureHelpRequest.type,((t,n)=>e(t,n,s.attachWorkDone(a,t),void 0))),onDeclaration:e=>a.onRequest(r.DeclarationRequest.type,((t,n)=>e(t,n,s.attachWorkDone(a,t),s.attachPartialResult(a,t)))),onDefinition:e=>a.onRequest(r.DefinitionRequest.type,((t,n)=>e(t,n,s.attachWorkDone(a,t),s.attachPartialResult(a,t)))),onTypeDefinition:e=>a.onRequest(r.TypeDefinitionRequest.type,((t,n)=>e(t,n,s.attachWorkDone(a,t),s.attachPartialResult(a,t)))),onImplementation:e=>a.onRequest(r.ImplementationRequest.type,((t,n)=>e(t,n,s.attachWorkDone(a,t),s.attachPartialResult(a,t)))),onReferences:e=>a.onRequest(r.ReferencesRequest.type,((t,n)=>e(t,n,s.attachWorkDone(a,t),s.attachPartialResult(a,t)))),onDocumentHighlight:e=>a.onRequest(r.DocumentHighlightRequest.type,((t,n)=>e(t,n,s.attachWorkDone(a,t),s.attachPartialResult(a,t)))),onDocumentSymbol:e=>a.onRequest(r.DocumentSymbolRequest.type,((t,n)=>e(t,n,s.attachWorkDone(a,t),s.attachPartialResult(a,t)))),onWorkspaceSymbol:e=>a.onRequest(r.WorkspaceSymbolRequest.type,((t,n)=>e(t,n,s.attachWorkDone(a,t),s.attachPartialResult(a,t)))),onCodeAction:e=>a.onRequest(r.CodeActionRequest.type,((t,n)=>e(t,n,s.attachWorkDone(a,t),s.attachPartialResult(a,t)))),onCodeActionResolve:e=>a.onRequest(r.CodeActionResolveRequest.type,((t,n)=>e(t,n))),onCodeLens:e=>a.onRequest(r.CodeLensRequest.type,((t,n)=>e(t,n,s.attachWorkDone(a,t),s.attachPartialResult(a,t)))),onCodeLensResolve:e=>a.onRequest(r.CodeLensResolveRequest.type,((t,n)=>e(t,n))),onDocumentFormatting:e=>a.onRequest(r.DocumentFormattingRequest.type,((t,n)=>e(t,n,s.attachWorkDone(a,t),void 0))),onDocumentRangeFormatting:e=>a.onRequest(r.DocumentRangeFormattingRequest.type,((t,n)=>e(t,n,s.attachWorkDone(a,t),void 0))),onDocumentOnTypeFormatting:e=>a.onRequest(r.DocumentOnTypeFormattingRequest.type,((t,n)=>e(t,n))),onRenameRequest:e=>a.onRequest(r.RenameRequest.type,((t,n)=>e(t,n,s.attachWorkDone(a,t),void 0))),onPrepareRename:e=>a.onRequest(r.PrepareRenameRequest.type,((t,n)=>e(t,n))),onDocumentLinks:e=>a.onRequest(r.DocumentLinkRequest.type,((t,n)=>e(t,n,s.attachWorkDone(a,t),s.attachPartialResult(a,t)))),onDocumentLinkResolve:e=>a.onRequest(r.DocumentLinkResolveRequest.type,((t,n)=>e(t,n))),onDocumentColor:e=>a.onRequest(r.DocumentColorRequest.type,((t,n)=>e(t,n,s.attachWorkDone(a,t),s.attachPartialResult(a,t)))),onColorPresentation:e=>a.onRequest(r.ColorPresentationRequest.type,((t,n)=>e(t,n,s.attachWorkDone(a,t),s.attachPartialResult(a,t)))),onFoldingRanges:e=>a.onRequest(r.FoldingRangeRequest.type,((t,n)=>e(t,n,s.attachWorkDone(a,t),s.attachPartialResult(a,t)))),onSelectionRanges:e=>a.onRequest(r.SelectionRangeRequest.type,((t,n)=>e(t,n,s.attachWorkDone(a,t),s.attachPartialResult(a,t)))),onExecuteCommand:e=>a.onRequest(r.ExecuteCommandRequest.type,((t,n)=>e(t,n,s.attachWorkDone(a,t),void 0))),dispose:()=>a.dispose()};for(let e of h)e.attach(C);return a.onRequest(r.InitializeRequest.type,(e=>{t.initialize(e),i.string(e.trace)&&(c.trace=r.Trace.fromString(e.trace));for(let t of h)t.initialize(e.capabilities);if(b)return g(b(e,(new r.CancellationTokenSource).token,s.attachWorkDone(a,e),void 0)).then((e=>{if(e instanceof r.ResponseError)return e;let t=e;t||(t={capabilities:{}});let n=t.capabilities;n||(n={},t.capabilities=n),void 0===n.textDocumentSync||null===n.textDocumentSync?n.textDocumentSync=i.number(C.__textDocumentSync)?C.__textDocumentSync:r.TextDocumentSyncKind.None:i.number(n.textDocumentSync)||i.number(n.textDocumentSync.change)||(n.textDocumentSync.change=i.number(C.__textDocumentSync)?C.__textDocumentSync:r.TextDocumentSyncKind.None);for(let e of h)e.fillServerCapabilities(n);return t}));{let e={capabilities:{textDocumentSync:r.TextDocumentSyncKind.None}};for(let t of h)t.fillServerCapabilities(e.capabilities);return e}})),a.onRequest(r.ShutdownRequest.type,(()=>(t.shutdownReceived=!0,v?v((new r.CancellationTokenSource).token):void 0))),a.onNotification(r.ExitNotification.type,(()=>{try{_&&_()}finally{t.shutdownReceived?t.exit(0):t.exit(1)}})),a.onNotification(r.SetTraceNotification.type,(e=>{c.trace=r.Trace.fromString(e.value)})),C}},66776:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ShowDocumentFeature=void 0;const r=n(61747);t.ShowDocumentFeature=e=>class extends e{showDocument(e){return this.connection.sendRequest(r.ShowDocumentRequest.type,e)}}},306:(e,t)=>{"use strict";function n(e){return"string"==typeof e||e instanceof String}function r(e){return"function"==typeof e}function i(e){return Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.thenable=t.typedArray=t.stringArray=t.array=t.func=t.error=t.number=t.string=t.boolean=void 0,t.boolean=function(e){return!0===e||!1===e},t.string=n,t.number=function(e){return"number"==typeof e||e instanceof Number},t.error=function(e){return e instanceof Error},t.func=r,t.array=i,t.stringArray=function(e){return i(e)&&e.every((e=>n(e)))},t.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)},t.thenable=function(e){return e&&r(e.then)}},72086:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateUuid=t.parse=t.isUUID=t.v4=t.empty=void 0;class n{constructor(e){this._value=e}asHex(){return this._value}equals(e){return this.asHex()===e.asHex()}}class r extends n{constructor(){super([r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),"-",r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),"-","4",r._randomHex(),r._randomHex(),r._randomHex(),"-",r._oneOf(r._timeHighBits),r._randomHex(),r._randomHex(),r._randomHex(),"-",r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex()].join(""))}static _oneOf(e){return e[Math.floor(e.length*Math.random())]}static _randomHex(){return r._oneOf(r._chars)}}function i(){return new r}r._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"],r._timeHighBits=["8","9","a","b"],t.empty=new n("00000000-0000-0000-0000-000000000000"),t.v4=i;const o=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function s(e){return o.test(e)}t.isUUID=s,t.parse=function(e){if(!s(e))throw new Error("invalid uuid");return new n(e)},t.generateUuid=function(){return i().asHex()}},42550:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceFoldersFeature=void 0;const r=n(61747);t.WorkspaceFoldersFeature=e=>class extends e{initialize(e){let t=e.workspace;t&&t.workspaceFolders&&(this._onDidChangeWorkspaceFolders=new r.Emitter,this.connection.onNotification(r.DidChangeWorkspaceFoldersNotification.type,(e=>{this._onDidChangeWorkspaceFolders.fire(e.event)})))}getWorkspaceFolders(){return this.connection.sendRequest(r.WorkspaceFoldersRequest.type)}get onDidChangeWorkspaceFolders(){if(!this._onDidChangeWorkspaceFolders)throw new Error("Client doesn't support sending workspace folder change events.");return this._unregistration||(this._unregistration=this.connection.client.register(r.DidChangeWorkspaceFoldersNotification.type)),this._onDidChangeWorkspaceFolders.event}}},64765:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveModulePath=t.FileSystem=t.resolveGlobalYarnPath=t.resolveGlobalNodePath=t.resolve=t.uriToFilePath=void 0;const r=n(57310),i=n(71017),o=n(57147),s=n(32081);function a(){return"win32"===process.platform}function c(e,t,n,r){const a=["var p = process;","p.on('message',function(m){","if(m.c==='e'){","p.exit(0);","}","else if(m.c==='rs'){","try{","var r=require.resolve(m.a);","p.send({c:'r',s:true,r:r});","}","catch(err){","p.send({c:'r',s:false});","}","}","});"].join("");return new Promise(((c,u)=>{let l=process.env,f=Object.create(null);Object.keys(l).forEach((e=>f[e]=l[e])),t&&o.existsSync(t)&&(f.NODE_PATH?f.NODE_PATH=t+i.delimiter+f.NODE_PATH:f.NODE_PATH=t,r&&r(`NODE_PATH value is: ${f.NODE_PATH}`)),f.ELECTRON_RUN_AS_NODE="1";try{let t=s.fork("",[],{cwd:n,env:f,execArgv:["-e",a]});if(void 0===t.pid)return void u(new Error(`Starting process to resolve node module ${e} failed`));t.on("error",(e=>{u(e)})),t.on("message",(n=>{"r"===n.c&&(t.send({c:"e"}),n.s?c(n.r):u(new Error(`Failed to resolve module: ${e}`)))}));let r={c:"rs",a:e};t.send(r)}catch(e){u(e)}}))}function u(e){let t="npm";const n=Object.create(null);Object.keys(process.env).forEach((e=>n[e]=process.env[e])),n.NO_UPDATE_NOTIFIER="true";const r={encoding:"utf8",env:n};a()&&(t="npm.cmd",r.shell=!0);let o=()=>{};try{process.on("SIGPIPE",o);let n=s.spawnSync(t,["config","get","prefix"],r).stdout;if(!n)return void(e&&e("'npm config get prefix' didn't return a value."));let c=n.trim();return e&&e(`'npm config get prefix' value is: ${c}`),c.length>0?a()?i.join(c,"node_modules"):i.join(c,"lib","node_modules"):void 0}catch(e){return}finally{process.removeListener("SIGPIPE",o)}}var l;t.uriToFilePath=function(e){let t=r.parse(e);if("file:"!==t.protocol||!t.path)return;let n=t.path.split("/");for(var o=0,s=n.length;o1){let e=n[0],t=n[1];0===e.length&&t.length>1&&":"===t[1]&&n.shift()}return i.normalize(n.join("/"))},t.resolve=c,t.resolveGlobalNodePath=u,t.resolveGlobalYarnPath=function(e){let t="yarn",n={encoding:"utf8"};a()&&(t="yarn.cmd",n.shell=!0);let r=()=>{};try{process.on("SIGPIPE",r);let o=s.spawnSync(t,["global","dir","--json"],n),a=o.stdout;if(!a)return void(e&&(e("'yarn global dir' didn't return a value."),o.stderr&&e(o.stderr)));let c=a.trim().split(/\r?\n/);for(let e of c)try{let t=JSON.parse(e);if("log"===t.type)return i.join(t.data,"node_modules")}catch(e){}return}catch(e){return}finally{process.removeListener("SIGPIPE",r)}},function(e){let t;function n(){return void 0!==t||(t=!("win32"===process.platform||o.existsSync(__filename.toUpperCase())&&o.existsSync(__filename.toLowerCase()))),t}e.isCaseSensitive=n,e.isParent=function(e,t){return n()?0===i.normalize(t).indexOf(i.normalize(e)):0===i.normalize(t).toLowerCase().indexOf(i.normalize(e).toLowerCase())}}(l=t.FileSystem||(t.FileSystem={})),t.resolveModulePath=function(e,t,n,r){return n?(i.isAbsolute(n)||(n=i.join(e,n)),c(t,n,n,r).then((e=>l.isParent(n,e)?e:Promise.reject(new Error(`Failed to load ${t} from node path location.`)))).then(void 0,(n=>c(t,u(r),e,r)))):c(t,u(r),e,r)}},29439:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.createConnection=t.Files=void 0;const o=n(306),s=n(36131),a=n(64765),c=n(42570);var u;i(n(42570),t),i(n(23497),t),(u=t.Files||(t.Files={})).uriToFilePath=a.uriToFilePath,u.resolveGlobalNodePath=a.resolveGlobalNodePath,u.resolveGlobalYarnPath=a.resolveGlobalYarnPath,u.resolve=a.resolve,u.resolveModulePath=a.resolveModulePath;let l,f=!1;!function(){const e="--clientProcessId";function t(e){try{let t=parseInt(e);isNaN(t)||(l=setInterval((()=>{try{process.kill(t,0)}catch(e){process.exit(f?0:1)}}),3e3))}catch(e){}}for(let n=2;n{const t=e.processId;o.number(t)&&void 0===l&&setInterval((()=>{try{process.kill(t,0)}catch(e){process.exit(f?0:1)}}),3e3)},get shutdownReceived(){return f},set shutdownReceived(e){f=e},exit:e=>{process.exit(e)}};t.createConnection=function(e,t,n,r){let i,a,u,l;return void 0!==e&&"features"===e.__brand&&(i=e,e=t,t=n,n=r),c.ConnectionStrategy.is(e)||c.ConnectionOptions.is(e)?l=e:(a=e,u=t,l=n),function(e,t,n,r){if(!e&&!t&&process.argv.length>2){let n,r,o=process.argv.slice(2);for(let s=0;s{process.exit(f?0:1)})),t.on("close",(()=>{process.exit(f?0:1)}))}return s.createConnection((r=>c.createProtocolConnection(e,t,r,n)),d,r)}(a,u,l,i)}},34288:(e,t,n)=>{"use strict";e.exports=n(29439)},70355:(e,t,n)=>{"use strict";var r;n.r(t),n.d(t,{URI:()=>i,Utils:()=>o}),r=(()=>{var e={470:e=>{function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",i=0,o=-1,s=0,a=0;a<=e.length;++a){if(a2){var c=r.lastIndexOf("/");if(c!==r.length-1){-1===c?(r="",i=0):i=(r=r.slice(0,c)).length-1-r.lastIndexOf("/"),o=a,s=0;continue}}else if(2===r.length||1===r.length){r="",i=0,o=a,s=0;continue}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(o+1,a):r=e.slice(o+1,a),i=a-o-1;o=a,s=0}else 46===n&&-1!==s?++s:s=-1}return r}var r={resolve:function(){for(var e,r="",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var s;o>=0?s=arguments[o]:(void 0===e&&(e=process.cwd()),s=e),t(s),0!==s.length&&(r=s+"/"+r,i=47===s.charCodeAt(0))}return r=n(r,!i),i?r.length>0?"/"+r:"/":r.length>0?r:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!r)).length||r||(e="."),e.length>0&&i&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n)return"";if((e=r.resolve(e))===(n=r.resolve(n)))return"";for(var i=1;iu){if(47===n.charCodeAt(a+f))return n.slice(a+f+1);if(0===f)return n.slice(a+f)}else s>u&&(47===e.charCodeAt(i+f)?l=f:0===f&&(l=0));break}var d=e.charCodeAt(i+f);if(d!==n.charCodeAt(a+f))break;47===d&&(l=f)}var p="";for(f=i+l+1;f<=o;++f)f!==o&&47!==e.charCodeAt(f)||(0===p.length?p+="..":p+="/..");return p.length>0?p+n.slice(a+l):(a+=l,47===n.charCodeAt(a)&&++a,n.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,i=-1,o=!0,s=e.length-1;s>=1;--s)if(47===(n=e.charCodeAt(s))){if(!o){i=s;break}}else o=!1;return-1===i?r?"/":".":r&&1===i?"//":e.slice(0,i)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');t(e);var r,i=0,o=-1,s=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var a=n.length-1,c=-1;for(r=e.length-1;r>=0;--r){var u=e.charCodeAt(r);if(47===u){if(!s){i=r+1;break}}else-1===c&&(s=!1,c=r+1),a>=0&&(u===n.charCodeAt(a)?-1==--a&&(o=r):(a=-1,o=c))}return i===o?o=c:-1===o&&(o=e.length),e.slice(i,o)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!s){i=r+1;break}}else-1===o&&(s=!1,o=r+1);return-1===o?"":e.slice(i,o)},extname:function(e){t(e);for(var n=-1,r=0,i=-1,o=!0,s=0,a=e.length-1;a>=0;--a){var c=e.charCodeAt(a);if(47!==c)-1===i&&(o=!1,i=a+1),46===c?-1===n?n=a:1!==s&&(s=1):-1!==n&&(s=-1);else if(!o){r=a+1;break}}return-1===n||-1===i||0===s||1===s&&n===i-1&&n===r+1?"":e.slice(n,i)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+"/"+r:r}(0,e)},parse:function(e){t(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var r,i=e.charCodeAt(0),o=47===i;o?(n.root="/",r=1):r=0;for(var s=-1,a=0,c=-1,u=!0,l=e.length-1,f=0;l>=r;--l)if(47!==(i=e.charCodeAt(l)))-1===c&&(u=!1,c=l+1),46===i?-1===s?s=l:1!==f&&(f=1):-1!==s&&(f=-1);else if(!u){a=l+1;break}return-1===s||-1===c||0===f||1===f&&s===c-1&&s===a+1?-1!==c&&(n.base=n.name=0===a&&o?e.slice(1,c):e.slice(a,c)):(0===a&&o?(n.name=e.slice(1,s),n.base=e.slice(1,c)):(n.name=e.slice(a,s),n.base=e.slice(a,c)),n.ext=e.slice(s,c)),a>0?n.dir=e.slice(0,a-1):o&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r},447:(e,t,n)=>{var r;if(n.r(t),n.d(t,{URI:()=>g,Utils:()=>C}),"object"==typeof process)r="win32"===process.platform;else if("object"==typeof navigator){var i=navigator.userAgent;r=i.indexOf("Windows")>=0}var o,s,a=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=/^\w[\w\d+.-]*$/,u=/^\//,l=/^\/\//;function f(e,t){if(!e.scheme&&t)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'.concat(e.authority,'", path: "').concat(e.path,'", query: "').concat(e.query,'", fragment: "').concat(e.fragment,'"}'));if(e.scheme&&!c.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!u.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(l.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 ("//")')}var d="",p="/",h=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,g=function(){function e(e,t,n,r,i,o){void 0===o&&(o=!1),"object"==typeof e?(this.scheme=e.scheme||d,this.authority=e.authority||d,this.path=e.path||d,this.query=e.query||d,this.fragment=e.fragment||d):(this.scheme=function(e,t){return e||t?e:"file"}(e,o),this.authority=t||d,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==p&&(t=p+t):t=p}return t}(this.scheme,n||d),this.query=r||d,this.fragment=i||d,f(this,o))}return e.isUri=function(t){return t instanceof e||!!t&&"string"==typeof t.authority&&"string"==typeof t.fragment&&"string"==typeof t.path&&"string"==typeof t.query&&"string"==typeof t.scheme&&"string"==typeof t.fsPath&&"function"==typeof t.with&&"function"==typeof t.toString},Object.defineProperty(e.prototype,"fsPath",{get:function(){return E(this,!1)},enumerable:!1,configurable:!0}),e.prototype.with=function(e){if(!e)return this;var t=e.scheme,n=e.authority,r=e.path,i=e.query,o=e.fragment;return void 0===t?t=this.scheme:null===t&&(t=d),void 0===n?n=this.authority:null===n&&(n=d),void 0===r?r=this.path:null===r&&(r=d),void 0===i?i=this.query:null===i&&(i=d),void 0===o?o=this.fragment:null===o&&(o=d),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&o===this.fragment?this:new y(t,n,r,i,o)},e.parse=function(e,t){void 0===t&&(t=!1);var n=h.exec(e);return n?new y(n[2]||d,O(n[4]||d),O(n[5]||d),O(n[7]||d),O(n[9]||d),t):new y(d,d,d,d,d)},e.file=function(e){var t=d;if(r&&(e=e.replace(/\\/g,p)),e[0]===p&&e[1]===p){var n=e.indexOf(p,2);-1===n?(t=e.substring(2),e=p):(t=e.substring(2,n),e=e.substring(n)||p)}return new y("file",t,e,d,d)},e.from=function(e){var t=new y(e.scheme,e.authority,e.path,e.query,e.fragment);return f(t,!0),t},e.prototype.toString=function(e){return void 0===e&&(e=!1),x(this,e)},e.prototype.toJSON=function(){return this},e.revive=function(t){if(t){if(t instanceof e)return t;var n=new y(t);return n._formatted=t.external,n._fsPath=t._sep===m?t.fsPath:null,n}return t},e}(),m=r?1:void 0,y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._formatted=null,t._fsPath=null,t}return a(t,e),Object.defineProperty(t.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=E(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),t.prototype.toString=function(e){return void 0===e&&(e=!1),e?x(this,!0):(this._formatted||(this._formatted=x(this,!1)),this._formatted)},t.prototype.toJSON=function(){var e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=m),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},t}(g),v=((s={})[58]="%3A",s[47]="%2F",s[63]="%3F",s[35]="%23",s[91]="%5B",s[93]="%5D",s[64]="%40",s[33]="%21",s[36]="%24",s[38]="%26",s[39]="%27",s[40]="%28",s[41]="%29",s[42]="%2A",s[43]="%2B",s[44]="%2C",s[59]="%3B",s[61]="%3D",s[32]="%20",s);function b(e,t){for(var n=void 0,r=-1,i=0;i=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o)-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),void 0!==n&&(n+=e.charAt(i));else{void 0===n&&(n=e.substr(0,i));var s=v[o];void 0!==s?(-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),n+=s):-1===r&&(r=i)}}return-1!==r&&(n+=encodeURIComponent(e.substring(r))),void 0!==n?n:e}function S(e){for(var t=void 0,n=0;n1&&"file"===e.scheme?"//".concat(e.authority).concat(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&&(n=n.replace(/\//g,"\\")),n}function x(e,t){var n=t?S:b,r="",i=e.scheme,o=e.authority,s=e.path,a=e.query,c=e.fragment;if(i&&(r+=i,r+=":"),(o||"file"===i)&&(r+=p,r+=p),o){var u=o.indexOf("@");if(-1!==u){var l=o.substr(0,u);o=o.substr(u+1),-1===(u=l.indexOf(":"))?r+=n(l,!1):(r+=n(l.substr(0,u),!1),r+=":",r+=n(l.substr(u+1),!1)),r+="@"}-1===(u=(o=o.toLowerCase()).indexOf(":"))?r+=n(o,!1):(r+=n(o.substr(0,u),!1),r+=o.substr(u))}if(s){if(s.length>=3&&47===s.charCodeAt(0)&&58===s.charCodeAt(2))(f=s.charCodeAt(1))>=65&&f<=90&&(s="/".concat(String.fromCharCode(f+32),":").concat(s.substr(3)));else if(s.length>=2&&58===s.charCodeAt(1)){var f;(f=s.charCodeAt(0))>=65&&f<=90&&(s="".concat(String.fromCharCode(f+32),":").concat(s.substr(2)))}r+=n(s,!0)}return a&&(r+="?",r+=n(a,!1)),c&&(r+="#",r+=t?c:b(c,!1)),r}function w(e){try{return decodeURIComponent(e)}catch(t){return e.length>3?e.substr(0,3)+w(e.substr(3)):e}}var _=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function O(e){return e.match(_)?e.replace(_,(function(e){return w(e)})):e}var C,D=n(470),A=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(447)})();const{URI:i,Utils:o}=r},1162:(e,t,n)=>{"use strict";e.exports=function(e,t,n,i){n instanceof Function&&(i=n,n={});const f=async function(e,t,n={}){let i,f;"string"==typeof n&&(n={encoding:n});const d=o(h((()=>f))),m=s.resolve(e);try{await function(e){return new Promise((t=>{l[e]||(l[e]=[]),l[e].push(t),1===l[e].length&&t()}))}(m);const o=await u(r.realpath)(e).catch((()=>e));if(f=p(o),!n.mode||!n.chown){const e=await u(r.stat)(o).catch((()=>{}));e&&(null==n.mode&&(n.mode=e.mode),null==n.chown&&process.getuid&&(n.chown={uid:e.uid,gid:e.gid}))}i=await u(r.open)(f,"w",n.mode),n.tmpfileCreated&&await n.tmpfileCreated(f),a(t)&&(t=c(t)),Buffer.isBuffer(t)?await u(r.write)(i,t,0,t.length,0):null!=t&&await u(r.write)(i,String(t),0,String(n.encoding||"utf8")),!1!==n.fsync&&await u(r.fsync)(i),await u(r.close)(i),i=null,n.chown&&await u(r.chown)(f,n.chown.uid,n.chown.gid).catch((e=>{if(!g(e))throw e})),n.mode&&await u(r.chmod)(f,n.mode).catch((e=>{if(!g(e))throw e})),await u(r.rename)(f,o)}finally{i&&await u(r.close)(i).catch((()=>{})),d(),await u(r.unlink)(f).catch((()=>{})),l[m].shift(),l[m].length>0?l[m][0]():delete l[m]}}(e,t,n);return i&&f.then(i,i),f},e.exports.sync=function(e,t,n){"string"==typeof n?n={encoding:n}:n||(n={});try{e=r.realpathSync(e)}catch(e){}const i=p(e);if(!n.mode||!n.chown)try{const t=r.statSync(e);(n=Object.assign({},n)).mode||(n.mode=t.mode),!n.chown&&process.getuid&&(n.chown={uid:t.uid,gid:t.gid})}catch(e){}let s;const u=h(i),l=o(u);let f=!0;try{if(s=r.openSync(i,"w",n.mode||438),n.tmpfileCreated&&n.tmpfileCreated(i),a(t)&&(t=c(t)),Buffer.isBuffer(t)?r.writeSync(s,t,0,t.length,0):null!=t&&r.writeSync(s,String(t),0,String(n.encoding||"utf8")),!1!==n.fsync&&r.fsyncSync(s),r.closeSync(s),s=null,n.chown)try{r.chownSync(i,n.chown.uid,n.chown.gid)}catch(e){if(!g(e))throw e}if(n.mode)try{r.chmodSync(i,n.mode)}catch(e){if(!g(e))throw e}r.renameSync(i,e),f=!1}finally{if(s)try{r.closeSync(s)}catch(e){}l(),f&&u()}},e.exports._getTmpname=p,e.exports._cleanupOnExit=h;const r=n(57147),i=n(43481),o=n(90260),s=n(71017),a=n(30775),c=n(78743),{promisify:u}=n(73837),l={},f=function(){try{return n(71267).threadId}catch(e){return 0}}();let d=0;function p(e){return e+"."+i(__filename).hash(String(process.pid)).hash(String(f)).hash(String(++d)).result()}function h(e){return()=>{try{r.unlinkSync("function"==typeof e?e():e)}catch(e){}}}function g(e){return"ENOSYS"===e.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code)}},24199:(e,t,n)=>{"use strict";const r=n(22037),i=n(71017),o=r.homedir(),{env:s}=process;t.data=s.XDG_DATA_HOME||(o?i.join(o,".local","share"):void 0),t.config=s.XDG_CONFIG_HOME||(o?i.join(o,".config"):void 0),t.cache=s.XDG_CACHE_HOME||(o?i.join(o,".cache"):void 0),t.runtime=s.XDG_RUNTIME_DIR||void 0,t.dataDirs=(s.XDG_DATA_DIRS||"/usr/local/share/:/usr/share/").split(":"),t.data&&t.dataDirs.unshift(t.data),t.configDirs=(s.XDG_CONFIG_DIRS||"/etc/xdg").split(":"),t.config&&t.configDirs.unshift(t.config)},14950:e=>{class t{constructor(e){this.value=e,this.next=void 0}}class n{constructor(){this.clear()}enqueue(e){const n=new t(e);this._head?(this._tail.next=n,this._tail=n):(this._head=n,this._tail=n),this._size++}dequeue(){const e=this._head;if(e)return this._head=this._head.next,this._size--,e.value}clear(){this._head=void 0,this._tail=void 0,this._size=0}get size(){return this._size}*[Symbol.iterator](){let e=this._head;for(;e;)yield e.value,e=e.next}}e.exports=n},27298:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createLazyValue=t.createAutoLoadCache=void 0,t.createAutoLoadCache=function(e){const t=new Map,n=n=>{const r=t.get(n);if(r)return r;const i=e(n);return t.set(n,i),i};return n.get=n,n.has=e=>t.has(e),n.delete=e=>t.delete(e),n.clear=()=>t.clear(),n};const n=Symbol("Value Not Set");t.createLazyValue=function(e){let t=n;const r=()=>(t===n&&(t=e()),t);return r.clear=()=>t=n,r.get=r,r}},76139:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isErrnoException=void 0;const n={string:!0,undefined:!0},r={number:!0,undefined:!0};t.isErrnoException=function(e){if(!e||"object"!=typeof e)return!1;const t=e;return"string"==typeof t.name&&"string"==typeof t.message&&typeof t.errno in r&&typeof t.code in n&&typeof t.path in n&&typeof t.stack in n}},745:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.LogFileConnection=void 0,i(n(92131),t),i(n(4561),t),i(n(76139),t);var o=n(53282);Object.defineProperty(t,"LogFileConnection",{enumerable:!0,get:function(){return o.LogFileConnection}})},52808:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setWorkspaceFolders=t.setWorkspaceBase=t.logDebug=t.logInfo=t.logError=t.log=t.logger=t.LogLevel=void 0;const r=n(19068);var i=n(19068);Object.defineProperty(t,"LogLevel",{enumerable:!0,get:function(){return i.LogLevel}});let o="",s=[];function a(e,n){t.logger.log(u(e,n))}function c(e){a(`setWorkspaceBase URI: ${e}`),o=e}function u(e,t){return e+"\t"+(Array.isArray(t)?t:[t]).map(l).join("\n\t\t\t")}function l(e){if(!e)return"";const t=f(e,o);return t?e.replace(t,"..."):e}function f(e,t){const n=function(e,t){const n=e.split("/"),r=t.split("/"),i=Math.min(n.length,r.length);let o=0;for(o=0;of(e||t,t)),"")}(s))}},53282:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LogFileConnection=t.LogFile=void 0;const r=n(57147);class i{constructor(e){this.filename=e,this._buffer=[],this.pfh=r.promises.open(e,"a").then((e=>this.fh=e)).catch((e=>{console.error(this._error=e)}))}onReady(){return this.pfh.then((e=>!(!e||!this.fh))).catch((()=>!1))}getError(){return this._error}isReady(){return!!this.fh}log(e){return this._log("LOG",e),this}info(e){return this._log("INF",e),this}warn(e){return this._log("WRN",e),this}error(e){return this._log("ERR",e),this}close(){return this.fh=void 0,this.pfh.then((e=>e?.close())).catch((e=>console.error(e)))}_log(e,t){const n=`${(new Date).toISOString()} ${e}: `,r=" ".repeat(n.length),i=t.split("\n").join("\n"+r);this._buffer.push(`${n}${i}\n`),this.process()}process(){this._pending||(this._pending=this._processAsync())}async _processAsync(){const e=await this.pfh;for(let t=this._buffer;t.length;t=this._buffer){this._buffer=[];try{await(e?.writeFile(t.join("")))}catch(e){this._error=e}}this._pending=void 0}}t.LogFile=i,t.LogFileConnection=class{constructor(e){this.filename=e,this.onExitHandlers=[],this.console=new i(e)}onExit(e){this.onExitHandlers.push(e)}async close(){this.notifyOnExit(),await this.console.close()}notifyOnExit(){for(const e of this.onExitHandlers)try{e()}catch(e){console.error(e)}}}},19068:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Logger=t.LogLevel=void 0,function(e){e[e.NONE=0]="NONE",e[e.ERROR=1]="ERROR",e[e.WARNING=2]="WARNING",e[e.INFO=3]="INFO",e[e.DEBUG=4]="DEBUG"}(n=t.LogLevel||(t.LogLevel={}));const r=[[n[n.NONE],n.NONE],[n[n.ERROR],n.ERROR],[n[n.WARNING],n.WARNING],[n[n.INFO],n.INFO],[n[n.DEBUG],n.DEBUG],["INFORMATION",n.INFO]],i=new Map(r),o=()=>{};t.Logger=class{constructor(e=n.DEBUG,t){this.logLevel=e,this.seq=0,this.logs=[],this.loggers={[n.NONE]:o,[n.ERROR]:o,[n.WARNING]:o,[n.INFO]:o,[n.DEBUG]:o},t&&this.setConnection(t)}writeLog(e){if(this._connection){if(e.level>this.logLevel)return;const t=`${e.seq}\t${e.ts.toISOString()}\t${e.msg}`,n=this.loggers[e.level];n?n(t):console.error(`Unknown log level: ${e.level}; msg: ${e.msg}`)}else this.logs.push(e)}get connection(){return this._connection}logMessage(e,t){const n={seq:++this.seq,level:e,ts:new Date,msg:t};this.writeLog(n)}set level(e){this.logLevel=function(e){const t="string"==typeof e?i.get(e.toUpperCase())||n.NONE:e;return"number"!=typeof t||tn.DEBUG?n.DEBUG:t}(e)}get level(){return this.logLevel}setConnection(e){this._connection=e,this._connection.onExit((()=>{this._connection=void 0,this.loggers[n.ERROR]=o,this.loggers[n.WARNING]=o,this.loggers[n.INFO]=o,this.loggers[n.DEBUG]=o})),this.loggers[n.ERROR]=t=>{e.console.error(t)},this.loggers[n.WARNING]=t=>{e.console.warn(t)},this.loggers[n.INFO]=t=>{e.console.info(t)},this.loggers[n.DEBUG]=t=>{e.console.log(t)},this.logs.forEach((e=>this.writeLog(e))),this.logs.length=0}error(e){this.logMessage(n.ERROR,e)}warn(e){this.logMessage(n.WARNING,e)}info(e){this.logMessage(n.INFO,e)}debug(e){this.logMessage(n.DEBUG,e)}log(e){this.debug(e)}getPendingEntries(){return this.logs}}},4561:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uriToName=t.cleanUri=t.relativeToFile=t.relativeTo=t.toFileUri=t.toUri=t.isSupportedDoc=t.isSupportedUri=t.setOfSupportedSchemes=t.supportedSchemes=void 0;const r=n(70355);function i(e){return!!e&&t.setOfSupportedSchemes.has(e.scheme)}t.supportedSchemes=["gist","file","sftp","untitled"],t.setOfSupportedSchemes=new Set(t.supportedSchemes),t.isSupportedUri=i,t.isSupportedDoc=function(e){return!!e&&!e.isClosed&&i(e.uri)};const o=/^[\w.-]{2,}:/;function s(e,t){const n=c(e),r=c(t);let i=0;for(i=0;i!!e))}t.toUri=function(e){return"string"==typeof e?r.URI.parse(e):e||void 0},t.toFileUri=function(e){return"string"==typeof e?o.test(e)?r.URI.parse(e):r.URI.file(e):e},t.relativeTo=s,t.relativeToFile=function(e,t){return s(r.Utils.dirname(e),t)},t.cleanUri=a,t.uriToName=function(e,t=2){return c(e).slice(-t).join("/")}},92131:(e,t)=>{"use strict";function n(e){return null!=e}Object.defineProperty(t,"__esModule",{value:!0}),t.setIfDefined=t.pick=t.capitalize=t.textToWords=t.escapeRegExp=t.mustBeDefined=t.isDefined=t.freqCount=t.uniqueFilter=t.unique=void 0,t.unique=function(e){return[...new Set(e)]},t.uniqueFilter=function(e){const t=new Set;return e?n=>{const r=e(n);return!t.has(r)&&(t.add(r),!0)}:e=>!t.has(e)&&(t.add(e),!0)},t.freqCount=function(e){const t=new Map;return e.forEach((e=>t.set(e,(t.get(e)||0)+1))),[...t.entries()]},t.isDefined=n,t.mustBeDefined=function(e){if(n(e))return e;throw new Error("Value must be defined.")},t.escapeRegExp=function(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},t.textToWords=function(e){const t=/^[\p{L}\w'-]+$/u;return e.normalize("NFC").split(/(?t.test(e)))},t.capitalize=function(e){return e.slice(0,1).toUpperCase()+e.slice(1)},t.pick=function(e,t){const n={};for(const r of t)n[r]=e[r];return n},t.setIfDefined=function(e,t,n){return void 0!==n&&(e[t]=n),e}},13303:e=>{"use strict";e.exports=require("import-fresh")},39491:e=>{"use strict";e.exports=require("assert")},14300:e=>{"use strict";e.exports=require("buffer")},32081:e=>{"use strict";e.exports=require("child_process")},22057:e=>{"use strict";e.exports=require("constants")},6113:e=>{"use strict";e.exports=require("crypto")},82361:e=>{"use strict";e.exports=require("events")},57147:e=>{"use strict";e.exports=require("fs")},98188:e=>{"use strict";e.exports=require("module")},41808:e=>{"use strict";e.exports=require("net")},22037:e=>{"use strict";e.exports=require("os")},71017:e=>{"use strict";e.exports=require("path")},12781:e=>{"use strict";e.exports=require("stream")},57310:e=>{"use strict";e.exports=require("url")},73837:e=>{"use strict";e.exports=require("util")},71267:e=>{"use strict";e.exports=require("worker_threads")},59796:e=>{"use strict";e.exports=require("zlib")},68453:(e,t,n)=>{"use strict";var r=n(48487),i=n(76314),o=n(69359);const s={get binary(){return i.binaryOptions},set binary(e){Object.assign(i.binaryOptions,e)},get bool(){return i.boolOptions},set bool(e){Object.assign(i.boolOptions,e)},get int(){return i.intOptions},set int(e){Object.assign(i.intOptions,e)},get null(){return i.nullOptions},set null(e){Object.assign(i.nullOptions,e)},get str(){return i.strOptions},set str(e){Object.assign(i.strOptions,e)}},a={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:r.defaultTagPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:r.defaultTagPrefix}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:r.defaultTagPrefix}]}};function c(e,t){if("1.0"===(e.version||e.options.version)){const e=t.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(e)return"!"+e[1];const n=t.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return n?`!${n[1]}/${n[2]}`:`!${t.replace(/^tag:/,"")}`}let n=e.tagPrefixes.find((e=>0===t.indexOf(e.prefix)));if(!n){const r=e.getDefaults().tagPrefixes;n=r&&r.find((e=>0===t.indexOf(e.prefix)))}if(!n)return"!"===t[0]?t:`!<${t}>`;const r=t.substr(n.prefix.length).replace(/[!,[\]{}]/g,(e=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"}[e])));return n.handle+r}function u(e,t,n,r){const{anchors:o,schema:s}=t.doc;let a;if(!(e instanceof i.Node)){const t={aliasNodes:[],onTagObj:e=>a=e,prevObjects:new Map};e=s.createNode(e,!0,null,t);for(const e of t.aliasNodes){e.source=e.source.node;let t=o.getName(e.source);t||(t=o.newName(),o.map[t]=e.source)}}if(e instanceof i.Pair)return e.toString(t,n,r);a||(a=function(e,t){if(t instanceof i.Alias)return i.Alias;if(t.tag){const n=e.filter((e=>e.tag===t.tag));if(n.length>0)return n.find((e=>e.format===t.format))||n[0]}let n,r;if(t instanceof i.Scalar){r=t.value;const i=e.filter((e=>e.identify&&e.identify(r)||e.class&&r instanceof e.class));n=i.find((e=>e.format===t.format))||i.find((e=>!e.format))}else r=t,n=e.find((e=>e.nodeClass&&r instanceof e.nodeClass));if(!n){const e=r&&r.constructor?r.constructor.name:typeof r;throw new Error(`Tag not resolved for ${e} value`)}return n}(s.tags,e));const u=function(e,t,{anchors:n,doc:r}){const i=[],o=r.anchors.getName(e);return o&&(n[o]=e,i.push(`&${o}`)),e.tag?i.push(c(r,e.tag)):t.default||i.push(c(r,t.tag)),i.join(" ")}(e,a,t);u.length>0&&(t.indentAtStart=(t.indentAtStart||0)+u.length+1);const l="function"==typeof a.stringify?a.stringify(e,t,n,r):e instanceof i.Scalar?i.stringifyString(e,t,n,r):e.toString(t,n,r);return u?e instanceof i.Scalar||"{"===l[0]||"["===l[0]?`${u} ${l}`:`${u}\n${t.indent}${l}`:l}class l{static validAnchorNode(e){return e instanceof i.Scalar||e instanceof i.YAMLSeq||e instanceof i.YAMLMap}constructor(e){r._defineProperty(this,"map",Object.create(null)),this.prefix=e}createAlias(e,t){return this.setAnchor(e,t),new i.Alias(e)}createMergePair(...e){const t=new i.Merge;return t.value.items=e.map((e=>{if(e instanceof i.Alias){if(e.source instanceof i.YAMLMap)return e}else if(e instanceof i.YAMLMap)return this.createAlias(e);throw new Error("Merge sources must be Map nodes or their Aliases")})),t}getName(e){const{map:t}=this;return Object.keys(t).find((n=>t[n]===e))}getNames(){return Object.keys(this.map)}getNode(e){return this.map[e]}newName(e){e||(e=this.prefix);const t=Object.keys(this.map);for(let n=1;;++n){const r=`${e}${n}`;if(!t.includes(r))return r}}resolveNodes(){const{map:e,_cstAliases:t}=this;Object.keys(e).forEach((t=>{e[t]=e[t].resolved})),t.forEach((e=>{e.source=e.source.resolved})),delete this._cstAliases}setAnchor(e,t){if(null!=e&&!l.validAnchorNode(e))throw new Error("Anchors may only be set for Scalar, Seq and Map nodes");if(t&&/[\x00-\x19\s,[\]{}]/.test(t))throw new Error("Anchor names must not contain whitespace or control characters");const{map:n}=this,r=e&&Object.keys(n).find((t=>n[t]===e));if(r){if(!t)return r;r!==t&&(delete n[r],n[t]=e)}else{if(!t){if(!e)return null;t=this.newName()}n[t]=e}return t}}const f=(e,t)=>{if(e&&"object"==typeof e){const{tag:n}=e;e instanceof i.Collection?(n&&(t[n]=!0),e.items.forEach((e=>f(e,t)))):e instanceof i.Pair?(f(e.key,t),f(e.value,t)):e instanceof i.Scalar&&n&&(t[n]=!0)}return t};function d({tagPrefixes:e},t){const[n,i]=t.parameters;if(!n||!i){const e="Insufficient parameters given for %TAG directive";throw new r.YAMLSemanticError(t,e)}if(e.some((e=>e.handle===n))){const e="The %TAG directive must only be given at most once per handle in the same document.";throw new r.YAMLSemanticError(t,e)}return{handle:n,prefix:i}}function p(e,t){let[n]=t.parameters;if("YAML:1.0"===t.name&&(n="1.0"),!n){const e="Insufficient parameters given for %YAML directive";throw new r.YAMLSemanticError(t,e)}if(!a[n]){const i=`Document will be parsed as YAML ${e.version||e.options.version} rather than YAML ${n}`;e.warnings.push(new r.YAMLWarning(t,i))}return n}function h(e){if(e instanceof i.Collection)return!0;throw new Error("Expected a YAML collection as document contents")}class g{constructor(e){this.anchors=new l(e.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=e,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}add(e){return h(this.contents),this.contents.add(e)}addIn(e,t){h(this.contents),this.contents.addIn(e,t)}delete(e){return h(this.contents),this.contents.delete(e)}deleteIn(e){return i.isEmptyPath(e)?null!=this.contents&&(this.contents=null,!0):(h(this.contents),this.contents.deleteIn(e))}getDefaults(){return g.defaults[this.version]||g.defaults[this.options.version]||{}}get(e,t){return this.contents instanceof i.Collection?this.contents.get(e,t):void 0}getIn(e,t){return i.isEmptyPath(e)?!t&&this.contents instanceof i.Scalar?this.contents.value:this.contents:this.contents instanceof i.Collection?this.contents.getIn(e,t):void 0}has(e){return this.contents instanceof i.Collection&&this.contents.has(e)}hasIn(e){return i.isEmptyPath(e)?void 0!==this.contents:this.contents instanceof i.Collection&&this.contents.hasIn(e)}set(e,t){h(this.contents),this.contents.set(e,t)}setIn(e,t){i.isEmptyPath(e)?this.contents=t:(h(this.contents),this.contents.setIn(e,t))}setSchema(e,t){if(!e&&!t&&this.schema)return;"number"==typeof e&&(e=e.toFixed(1)),"1.0"===e||"1.1"===e||"1.2"===e?(this.version?this.version=e:this.options.version=e,delete this.options.schema):e&&"string"==typeof e&&(this.options.schema=e),Array.isArray(t)&&(this.options.customTags=t);const n=Object.assign({},this.getDefaults(),this.options);this.schema=new o.Schema(n)}parse(e,t){this.options.keepCstNodes&&(this.cstNode=e),this.options.keepNodeTypes&&(this.type="DOCUMENT");const{directives:n=[],contents:o=[],directivesEndMarker:s,error:a,valueRange:c}=e;if(a&&(a.source||(a.source=this),this.errors.push(a)),function(e,t,n){const i=[];let o=!1;for(const n of t){const{comment:t,name:s}=n;switch(s){case"TAG":try{e.tagPrefixes.push(d(e,n))}catch(t){e.errors.push(t)}o=!0;break;case"YAML":case"YAML:1.0":if(e.version){const t="The %YAML directive must only be given at most once per document.";e.errors.push(new r.YAMLSemanticError(n,t))}try{e.version=p(e,n)}catch(t){e.errors.push(t)}o=!0;break;default:if(s){const t=`YAML only supports %TAG and %YAML directives, and not %${s}`;e.warnings.push(new r.YAMLWarning(n,t))}}t&&i.push(t)}if(n&&!o&&"1.1"===(e.version||n.version||e.options.version)){const t=({handle:e,prefix:t})=>({handle:e,prefix:t});e.tagPrefixes=n.tagPrefixes.map(t),e.version=n.version}e.commentBefore=i.join("\n")||null}(this,n,t),s&&(this.directivesEndMarker=!0),this.range=c?[c.start,c.end]:null,this.setSchema(),this.anchors._cstAliases=[],function(e,t){const n={before:[],after:[]};let o,s=!1;for(const a of t)if(a.valueRange){if(void 0!==o){const t="Document contains trailing content not separated by a ... or --- line";e.errors.push(new r.YAMLSyntaxError(a,t));break}const t=i.resolveNode(e,a);s&&(t.spaceBefore=!0,s=!1),o=t}else null!==a.comment?(void 0===o?n.before:n.after).push(a.comment):a.type===r.Type.BLANK_LINE&&(s=!0,void 0===o&&n.before.length>0&&!e.commentBefore&&(e.commentBefore=n.before.join("\n"),n.before=[]));if(e.contents=o||null,o){const t=n.before.join("\n");if(t){const e=o instanceof i.Collection&&o.items[0]?o.items[0]:o;e.commentBefore=e.commentBefore?`${t}\n${e.commentBefore}`:t}e.comment=n.after.join("\n")||null}else e.comment=n.before.concat(n.after).join("\n")||null}(this,o),this.anchors.resolveNodes(),this.options.prettyErrors){for(const e of this.errors)e instanceof r.YAMLError&&e.makePretty();for(const e of this.warnings)e instanceof r.YAMLError&&e.makePretty()}return this}listNonDefaultTags(){return(e=this.contents,Object.keys(f(e,{}))).filter((e=>0!==e.indexOf(o.Schema.defaultPrefix)));var e}setTagPrefix(e,t){if("!"!==e[0]||"!"!==e[e.length-1])throw new Error("Handle must start and end with !");if(t){const n=this.tagPrefixes.find((t=>t.handle===e));n?n.prefix=t:this.tagPrefixes.push({handle:e,prefix:t})}else this.tagPrefixes=this.tagPrefixes.filter((t=>t.handle!==e))}toJSON(e,t){const{keepBlobsInJSON:n,mapAsMap:r,maxAliasCount:o}=this.options,s=n&&("string"!=typeof e||!(this.contents instanceof i.Scalar)),a={doc:this,indentStep:" ",keep:s,mapAsMap:s&&!!r,maxAliasCount:o,stringify:u},c=Object.keys(this.anchors.map);c.length>0&&(a.anchors=new Map(c.map((e=>[this.anchors.map[e],{alias:[],aliasCount:0,count:1}]))));const l=i.toJSON(this.contents,e,a);if("function"==typeof t&&a.anchors)for(const{count:e,res:n}of a.anchors.values())t(n,e);return l}toString(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");const e=this.options.indent;if(!Number.isInteger(e)||e<=0){const t=JSON.stringify(e);throw new Error(`"indent" option must be a positive integer, not ${t}`)}this.setSchema();const t=[];let n=!1;if(this.version){let e="%YAML 1.2";"yaml-1.1"===this.schema.name&&("1.0"===this.version?e="%YAML:1.0":"1.1"===this.version&&(e="%YAML 1.1")),t.push(e),n=!0}const r=this.listNonDefaultTags();this.tagPrefixes.forEach((({handle:e,prefix:i})=>{r.some((e=>0===e.indexOf(i)))&&(t.push(`%TAG ${e} ${i}`),n=!0)})),(n||this.directivesEndMarker)&&t.push("---"),this.commentBefore&&(!n&&this.directivesEndMarker||t.unshift(""),t.unshift(this.commentBefore.replace(/^/gm,"#")));const o={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(e),stringify:u};let s=!1,a=null;if(this.contents){this.contents instanceof i.Node&&(this.contents.spaceBefore&&(n||this.directivesEndMarker)&&t.push(""),this.contents.commentBefore&&t.push(this.contents.commentBefore.replace(/^/gm,"#")),o.forceBlockIndent=!!this.comment,a=this.contents.comment);const e=a?null:()=>s=!0,r=u(this.contents,o,(()=>a=null),e);t.push(i.addComment(r,"",a))}else void 0!==this.contents&&t.push(u(this.contents,o));return this.comment&&(s&&!a||""===t[t.length-1]||t.push(""),t.push(this.comment.replace(/^/gm,"#"))),t.join("\n")+"\n"}}r._defineProperty(g,"defaults",a),t.Document=g,t.defaultOptions={anchorPrefix:"a",customTags:null,indent:2,indentSeq:!0,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"},t.scalarOptions=s},48487:(e,t)=>{"use strict";const n={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."},r={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"};function i(e){const t=[0];let n=e.indexOf("\n");for(;-1!==n;)n+=1,t.push(n),n=e.indexOf("\n",n);return t}function o(e){let t,n;return"string"==typeof e?(t=i(e),n=e):(Array.isArray(e)&&(e=e[0]),e&&e.context&&(e.lineStarts||(e.lineStarts=i(e.context.src)),t=e.lineStarts,n=e.context.src)),{lineStarts:t,src:n}}function s(e,t){if("number"!=typeof e||e<0)return null;const{lineStarts:n,src:r}=o(t);if(!n||!r||e>r.length)return null;for(let t=0;tn);)++i;this.origStart=n+i;const o=i;for(;i=r);)++i;return this.origEnd=r+i,o}}class c{static addStringTerminator(e,t,n){if("\n"===n[n.length-1])return n;const r=c.endOfWhiteSpace(e,t);return r>=e.length||"\n"===e[r]?n+"\n":n}static atDocumentBoundary(e,t,r){const i=e[t];if(!i)return!0;const o=e[t-1];if(o&&"\n"!==o)return!1;if(r){if(i!==r)return!1}else if(i!==n.DIRECTIVES_END&&i!==n.DOCUMENT_END)return!1;const s=e[t+1],a=e[t+2];if(s!==i||a!==i)return!1;const c=e[t+3];return!c||"\n"===c||"\t"===c||" "===c}static endOfIdentifier(e,t){let n=e[t];const r="<"===n,i=r?["\n","\t"," ",">"]:["\n","\t"," ","[","]","{","}",","];for(;n&&-1===i.indexOf(n);)n=e[t+=1];return r&&">"===n&&(t+=1),t}static endOfIndent(e,t){let n=e[t];for(;" "===n;)n=e[t+=1];return t}static endOfLine(e,t){let n=e[t];for(;n&&"\n"!==n;)n=e[t+=1];return t}static endOfWhiteSpace(e,t){let n=e[t];for(;"\t"===n||" "===n;)n=e[t+=1];return t}static startOfLine(e,t){let n=e[t-1];if("\n"===n)return t;for(;n&&"\n"!==n;)n=e[t-=1];return t+1}static endOfBlockIndent(e,t,n){const r=c.endOfIndent(e,n);if(r>n+t)return r;{const t=c.endOfWhiteSpace(e,r),n=e[t];if(!n||"\n"===n)return t}return null}static atBlank(e,t,n){const r=e[t];return"\n"===r||"\t"===r||" "===r||n&&!r}static nextNodeIsIndented(e,t,n){return!(!e||t<0)&&(t>0||n&&"-"===e)}static normalizeOffset(e,t){const n=e[t];return n?"\n"!==n&&"\n"===e[t-1]?t-1:c.endOfWhiteSpace(e,t):t}static foldNewline(e,t,n){let r=0,i=!1,o="",s=e[t+1];for(;" "===s||"\t"===s||"\n"===s;){switch(s){case"\n":r=0,t+=1,o+="\n";break;case"\t":r<=n&&(i=!0),t=c.endOfWhiteSpace(e,t+2)-1;break;case" ":r+=1,t+=1}s=e[t+1]}return o||(o=" "),s&&r<=n&&(i=!0),{fold:o,offset:t,error:i}}constructor(e,t,n){Object.defineProperty(this,"context",{value:n||null,writable:!0}),this.error=null,this.range=null,this.valueRange=null,this.props=t||[],this.type=e,this.value=null}getPropValue(e,t,n){if(!this.context)return null;const{src:r}=this.context,i=this.props[e];return i&&r[i.start]===t?r.slice(i.start+(n?1:0),i.end):null}get anchor(){for(let e=0;e0?e.join("\n"):null}commentHasRequiredWhitespace(e){const{src:t}=this.context;if(this.header&&e===this.header.end)return!1;if(!this.valueRange)return!1;const{end:n}=this.valueRange;return e!==n||c.atBlank(t,n-1)}get hasComment(){if(this.context){const{src:e}=this.context;for(let t=0;tn.setOrigRange(e,t))),t}toString(){const{context:{src:e},range:t,value:n}=this;if(null!=n)return n;const r=e.slice(t.start,t.end);return c.addStringTerminator(e,t.end,r)}}class u extends Error{constructor(e,t,n){if(!(n&&t instanceof c))throw new Error(`Invalid arguments for new ${e}`);super(),this.name=e,this.message=n,this.source=t}makePretty(){if(!this.source)return;this.nodeType=this.source.type;const e=this.source.context&&this.source.context.root;if("number"==typeof this.offset){this.range=new a(this.offset,this.offset+1);const t=e&&s(this.offset,e);if(t){const e={line:t.line,col:t.col+1};this.linePos={start:t,end:e}}delete this.offset}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){const{line:t,col:n}=this.linePos.start;this.message+=` at line ${t}, column ${n}`;const r=e&&function({start:e,end:t},n,r=80){let i=function(e,t){const{lineStarts:n,src:r}=o(t);if(!n||!(e>=1)||e>n.length)return null;const i=n[e-1];let s=n[e];for(;s&&s>i&&"\n"===r[s-1];)--s;return r.slice(i,s)}(e.line,n);if(!i)return null;let{col:s}=e;if(i.length>r)if(s<=r-10)i=i.substr(0,r-1)+"…";else{const e=Math.round(r/2);i.length>s+e&&(i=i.substr(0,s+e-1)+"…"),s-=i.length-r,i="…"+i.substr(1-r)}let a=1,c="";return t&&(t.line===e.line&&s+(t.col-e.col)<=r+1?a=t.col-e.col:(a=Math.min(i.length+1,r)-s,c="…")),`${i}\n${s>1?" ".repeat(s-1):""}${"^".repeat(a)}${c}`}(this.linePos,e);r&&(this.message+=`:\n\n${r}\n`)}delete this.source}}class l extends u{constructor(e,t){super("YAMLSemanticError",e,t)}}class f extends c{static endOfLine(e,t,n){let r=e[t],i=t;for(;r&&"\n"!==r&&(!n||"["!==r&&"]"!==r&&"{"!==r&&"}"!==r&&","!==r);){const t=e[i+1];if(":"===r&&(!t||"\n"===t||"\t"===t||" "===t||n&&","===t))break;if((" "===r||"\t"===r)&&"#"===t)break;i+=1,r=t}return i}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange;const{src:n}=this.context;let r=n[t-1];for(;eo?n.slice(o,r+1):e)}else i+=e}const o=n[e];switch(o){case"\t":return{errors:[new l(this,"Plain value cannot start with a tab character")],str:i};case"@":case"`":return{errors:[new l(this,`Plain value cannot start with reserved character ${o}`)],str:i};default:return i}}parseBlockValue(e){const{indent:t,inFlow:n,src:r}=this.context;let i=e,o=e;for(let e=r[i];"\n"===e&&!c.atDocumentBoundary(r,i+1);e=r[i]){const e=c.endOfBlockIndent(r,t,i+1);if(null===e||"#"===r[e])break;"\n"===r[e]?i=e:(o=f.endOfLine(r,e,n),i=o)}return this.valueRange.isEmpty()&&(this.valueRange.start=e),this.valueRange.end=o,o}parse(e,t){this.context=e;const{inFlow:n,src:r}=e;let i=t;const o=r[i];return o&&"#"!==o&&"\n"!==o&&(i=f.endOfLine(r,t,n)),this.valueRange=new a(t,i),i=c.endOfWhiteSpace(r,i),i=this.parseComment(i),this.hasComment&&!this.valueRange.isEmpty()||(i=this.parseBlockValue(i)),i}}t.Char=n,t.Node=c,t.PlainValue=f,t.Range=a,t.Type=r,t.YAMLError=u,t.YAMLReferenceError=class extends u{constructor(e,t){super("YAMLReferenceError",e,t)}},t.YAMLSemanticError=l,t.YAMLSyntaxError=class extends u{constructor(e,t){super("YAMLSyntaxError",e,t)}},t.YAMLWarning=class extends u{constructor(e,t){super("YAMLWarning",e,t)}},t._defineProperty=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},t.defaultTagPrefix="tag:yaml.org,2002:",t.defaultTags={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"}},69359:(e,t,n)=>{"use strict";var r=n(48487),i=n(76314),o=n(51125);const s={createNode:function(e,t,n){const r=new i.YAMLMap(e);if(t instanceof Map)for(const[i,o]of t)r.items.push(e.createPair(i,o,n));else if(t&&"object"==typeof t)for(const i of Object.keys(t))r.items.push(e.createPair(i,t[i],n));return"function"==typeof e.sortMapEntries&&r.items.sort(e.sortMapEntries),r},default:!0,nodeClass:i.YAMLMap,tag:"tag:yaml.org,2002:map",resolve:i.resolveMap},a={createNode:function(e,t,n){const r=new i.YAMLSeq(e);if(t&&t[Symbol.iterator])for(const i of t){const t=e.createNode(i,n.wrapScalars,null,n);r.items.push(t)}return r},default:!0,nodeClass:i.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:i.resolveSeq},c={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:i.resolveString,stringify:(e,t,n,r)=>(t=Object.assign({actualString:!0},t),i.stringifyString(e,t,n,r)),options:i.strOptions},u=[s,a,c],l=e=>"bigint"==typeof e||Number.isInteger(e),f=(e,t,n)=>i.intOptions.asBigInt?BigInt(e):parseInt(t,n);function d(e,t,n){const{value:r}=e;return l(r)&&r>=0?n+r.toString(t):i.stringifyNumber(e)}const p={identify:e=>null==e,createNode:(e,t,n)=>n.wrapScalars?new i.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:i.nullOptions,stringify:()=>i.nullOptions.nullStr},h={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>"t"===e[0]||"T"===e[0],options:i.boolOptions,stringify:({value:e})=>e?i.boolOptions.trueStr:i.boolOptions.falseStr},g={identify:e=>l(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(e,t)=>f(e,t,8),options:i.intOptions,stringify:e=>d(e,8,"0o")},m={identify:l,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:e=>f(e,e,10),options:i.intOptions,stringify:i.stringifyNumber},y={identify:e=>l(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(e,t)=>f(e,t,16),options:i.intOptions,stringify:e=>d(e,16,"0x")},v={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:i.stringifyNumber},b={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify:({value:e})=>Number(e).toExponential()},S={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve(e,t,n){const r=t||n,o=new i.Scalar(parseFloat(e));return r&&"0"===r[r.length-1]&&(o.minFractionDigits=r.length),o},stringify:i.stringifyNumber},E=u.concat([p,h,g,m,y,v,b,S]),x=e=>"bigint"==typeof e||Number.isInteger(e),w=({value:e})=>JSON.stringify(e),_=[s,a,{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:i.resolveString,stringify:w},{identify:e=>null==e,createNode:(e,t,n)=>n.wrapScalars?new i.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:w},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>"true"===e,stringify:w},{identify:x,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:e=>i.intOptions.asBigInt?BigInt(e):parseInt(e,10),stringify:({value:e})=>x(e)?e.toString():JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:w}];_.scalarFallback=e=>{throw new SyntaxError(`Unresolved plain scalar ${JSON.stringify(e)}`)};const O=({value:e})=>e?i.boolOptions.trueStr:i.boolOptions.falseStr,C=e=>"bigint"==typeof e||Number.isInteger(e);function D(e,t,n){let r=t.replace(/_/g,"");if(i.intOptions.asBigInt){switch(n){case 2:r=`0b${r}`;break;case 8:r=`0o${r}`;break;case 16:r=`0x${r}`}const t=BigInt(r);return"-"===e?BigInt(-1)*t:t}const o=parseInt(r,n);return"-"===e?-1*o:o}function A(e,t,n){const{value:r}=e;if(C(r)){const e=r.toString(t);return r<0?"-"+n+e.substr(1):n+e}return i.stringifyNumber(e)}const P=u.concat([{identify:e=>null==e,createNode:(e,t,n)=>n.wrapScalars?new i.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:i.nullOptions,stringify:()=>i.nullOptions.nullStr},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>!0,options:i.boolOptions,stringify:O},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>!1,options:i.boolOptions,stringify:O},{identify:C,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:(e,t,n)=>D(t,n,2),stringify:e=>A(e,2,"0b")},{identify:C,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:(e,t,n)=>D(t,n,8),stringify:e=>A(e,8,"0")},{identify:C,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:(e,t,n)=>D(t,n,10),stringify:i.stringifyNumber},{identify:C,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:(e,t,n)=>D(t,n,16),stringify:e=>A(e,16,"0x")},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:i.stringifyNumber},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify:({value:e})=>Number(e).toExponential()},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve(e,t){const n=new i.Scalar(parseFloat(e.replace(/_/g,"")));if(t){const e=t.replace(/_/g,"");"0"===e[e.length-1]&&(n.minFractionDigits=e.length)}return n},stringify:i.stringifyNumber}],o.binary,o.omap,o.pairs,o.set,o.intTime,o.floatTime,o.timestamp),T={core:E,failsafe:u,json:_,yaml11:P},R={binary:o.binary,bool:h,float:S,floatExp:b,floatNaN:v,floatTime:o.floatTime,int:m,intHex:y,intOct:g,intTime:o.intTime,map:s,null:p,omap:o.omap,pairs:o.pairs,seq:a,set:o.set,timestamp:o.timestamp};const k=(e,t)=>e.keyt.key?1:0;class F{constructor({customTags:e,merge:t,schema:n,sortMapEntries:r,tags:i}){this.merge=!!t,this.name=n,this.sortMapEntries=!0===r?k:r||null,!e&&i&&o.warnOptionDeprecation("tags","customTags"),this.tags=function(e,t,n,r){let i=e[r.replace(/\W/g,"")];if(!i){const t=Object.keys(e).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${r}"; use one of ${t}`)}if(Array.isArray(n))for(const e of n)i=i.concat(e);else"function"==typeof n&&(i=n(i.slice()));for(let e=0;eJSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag "${n}"; use one of ${e}`)}i[e]=r}}return i}(T,R,e||i,n)}createNode(e,t,n,r){const o={defaultPrefix:F.defaultPrefix,schema:this,wrapScalars:t};return function(e,t,n){if(e instanceof i.Node)return e;const{defaultPrefix:r,onTagObj:o,prevObjects:c,schema:u,wrapScalars:l}=n;t&&t.startsWith("!!")&&(t=r+t.slice(2));let f=function(e,t,n){if(t){const e=n.filter((e=>e.tag===t)),r=e.find((e=>!e.format))||e[0];if(!r)throw new Error(`Tag ${t} not found`);return r}return n.find((t=>(t.identify&&t.identify(e)||t.class&&e instanceof t.class)&&!t.format))}(e,t,u.tags);if(!f){if("function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e)return l?new i.Scalar(e):e;f=e instanceof Map?s:e[Symbol.iterator]?a:s}o&&(o(f),delete n.onTagObj);const d={value:void 0,node:void 0};if(e&&"object"==typeof e&&c){const t=c.get(e);if(t){const e=new i.Alias(t);return n.aliasNodes.push(e),e}d.value=e,c.set(e,d)}return d.node=f.createNode?f.createNode(n.schema,e,n):l?new i.Scalar(e):e,t&&d.node instanceof i.Node&&(d.node.tag=t),d.node}(e,n,r?Object.assign(r,o):o)}createPair(e,t,n){n||(n={wrapScalars:!0});const r=this.createNode(e,n.wrapScalars,null,n),o=this.createNode(t,n.wrapScalars,null,n);return new i.Pair(r,o)}}r._defineProperty(F,"defaultPrefix",r.defaultTagPrefix),r._defineProperty(F,"defaultTags",r.defaultTags),t.Schema=F},4667:(e,t,n)=>{"use strict";var r=n(62024),i=n(68453),o=n(69359),s=n(48487),a=n(51125);n(76314);class c extends i.Document{constructor(e){super(Object.assign({},i.defaultOptions,e))}}function u(e,t){const n=r.parse(e),i=new c(t).parse(n[0]);if(n.length>1){const e="Source contains multiple documents; please use YAML.parseAllDocuments()";i.errors.unshift(new s.YAMLSemanticError(n[1],e))}return i}const l={createNode:function(e,t=!0,n){void 0===n&&"string"==typeof t&&(n=t,t=!0);const r=Object.assign({},i.Document.defaults[i.defaultOptions.version],i.defaultOptions);return new o.Schema(r).createNode(e,t,n)},defaultOptions:i.defaultOptions,Document:c,parse:function(e,t){const n=u(e,t);if(n.warnings.forEach((e=>a.warn(e))),n.errors.length>0)throw n.errors[0];return n.toJSON()},parseAllDocuments:function(e,t){const n=[];let i;for(const o of r.parse(e)){const e=new c(t);e.parse(o,i),n.push(e),i=e}return n},parseCST:r.parse,parseDocument:u,scalarOptions:i.scalarOptions,stringify:function(e,t){const n=new c(t);return n.contents=e,String(n)}};t.YAML=l},62024:(e,t,n)=>{"use strict";var r=n(48487);class i extends r.Node{constructor(){super(r.Type.BLANK_LINE)}get includesTrailingLines(){return!0}parse(e,t){return this.context=e,this.range=new r.Range(t,t+1),t+1}}class o extends r.Node{constructor(e,t){super(e,t),this.node=null}get includesTrailingLines(){return!!this.node&&this.node.includesTrailingLines}parse(e,t){this.context=e;const{parseNode:n,src:o}=e;let{atLineStart:s,lineStart:a}=e;s||this.type!==r.Type.SEQ_ITEM||(this.error=new r.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line"));const c=s?t-a:e.indent;let u=r.Node.endOfWhiteSpace(o,t+1),l=o[u];const f="#"===l,d=[];let p=null;for(;"\n"===l||"#"===l;){if("#"===l){const e=r.Node.endOfLine(o,u+1);d.push(new r.Range(u,e)),u=e}else s=!0,a=u+1,"\n"===o[r.Node.endOfWhiteSpace(o,a)]&&0===d.length&&(p=new i,a=p.parse({src:o},a)),u=r.Node.endOfIndent(o,a);l=o[u]}if(r.Node.nextNodeIsIndented(l,u-(a+c),this.type!==r.Type.SEQ_ITEM)?this.node=n({atLineStart:s,inCollection:!1,indent:c,lineStart:a,parent:this},u):l&&a>t+1&&(u=a-1),this.node){if(p){const t=e.parent.items||e.parent.contents;t&&t.push(p)}d.length&&Array.prototype.push.apply(this.props,d),u=this.node.range.end}else if(f){const e=d[0];this.props.push(e),u=e.end}else u=r.Node.endOfLine(o,t+1);const h=this.node?this.node.valueRange.end:u;return this.valueRange=new r.Range(t,h),u}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.node?this.node.setOrigRanges(e,t):t}toString(){const{context:{src:e},node:t,range:n,value:i}=this;if(null!=i)return i;const o=t?e.slice(n.start,t.range.start)+String(t):e.slice(n.start,n.end);return r.Node.addStringTerminator(e,n.end,o)}}class s extends r.Node{constructor(){super(r.Type.COMMENT)}parse(e,t){this.context=e;const n=this.parseComment(t);return this.range=new r.Range(t,n),n}}function a(e){let t=e;for(;t instanceof o;)t=t.node;if(!(t instanceof c))return null;const n=t.items.length;let i=-1;for(let e=n-1;e>=0;--e){const n=t.items[e];if(n.type===r.Type.COMMENT){const{indent:t,lineStart:r}=n.context;if(t>0&&n.range.start>=r+t)break;i=e}else{if(n.type!==r.Type.BLANK_LINE)break;i=e}}if(-1===i)return null;const s=t.items.splice(i,n-i),a=s[0].range.start;for(;t.range.end=a,t.valueRange&&t.valueRange.end>a&&(t.valueRange.end=a),t!==e;)t=t.context.parent;return s}class c extends r.Node{static nextContentHasIndent(e,t,n){const i=r.Node.endOfLine(e,t)+1,o=e[t=r.Node.endOfWhiteSpace(e,i)];return!!o&&(t>=i+n||("#"===o||"\n"===o)&&c.nextContentHasIndent(e,t,n))}constructor(e){super(e.type===r.Type.SEQ_ITEM?r.Type.SEQ:r.Type.MAP);for(let t=e.props.length-1;t>=0;--t)if(e.props[t].start0}parse(e,t){this.context=e;const{parseNode:n,src:o}=e;let u=r.Node.startOfLine(o,t);const l=this.items[0];l.context.parent=this,this.valueRange=r.Range.copy(l.valueRange);const f=l.range.start-l.context.lineStart;let d=t;d=r.Node.normalizeOffset(o,d);let p=o[d],h=r.Node.endOfWhiteSpace(o,u)===d,g=!1;for(;p;){for(;"\n"===p||"#"===p;){if(h&&"\n"===p&&!g){const e=new i;if(d=e.parse({src:o},d),this.valueRange.end=d,d>=o.length){p=null;break}this.items.push(e),d-=1}else if("#"===p){if(d=o.length){p=null;break}}if(u=d+1,d=r.Node.endOfIndent(o,u),r.Node.atBlank(o,d)){const e=r.Node.endOfWhiteSpace(o,d),t=o[e];t&&"\n"!==t&&"#"!==t||(d=e)}p=o[d],h=!0}if(!p)break;if(d!==u+f&&(h||":"!==p)){if(dt&&(d=u);break}if(!this.error){const e="All collection items must start at the same column";this.error=new r.YAMLSyntaxError(this,e)}}if(l.type===r.Type.SEQ_ITEM){if("-"!==p){u>t&&(d=u);break}}else if("-"===p&&!this.error){const e=o[d+1];if(!e||"\n"===e||"\t"===e||" "===e){const e="A collection cannot be both a mapping and a sequence";this.error=new r.YAMLSyntaxError(this,e)}}const e=n({atLineStart:h,inCollection:!0,indent:f,lineStart:u,parent:this},d);if(!e)return d;if(this.items.push(e),this.valueRange.end=e.valueRange.end,d=r.Node.normalizeOffset(o,e.range.end),p=o[d],h=!1,g=e.includesTrailingLines,p){let e=d-1,t=o[e];for(;" "===t||"\t"===t;)t=o[--e];"\n"===t&&(u=e+1,h=!0)}const m=a(e);m&&Array.prototype.push.apply(this.items,m)}return d}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.items.forEach((n=>{t=n.setOrigRanges(e,t)})),t}toString(){const{context:{src:e},items:t,range:n,value:i}=this;if(null!=i)return i;let o=e.slice(n.start,t[0].range.start)+String(t[0]);for(let e=1;e0&&(this.contents=this.directives,this.directives=[]),a}return t[a]?(this.directivesEndMarker=new r.Range(a,a+3),a+3):(o?this.error=new r.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),a)}parseContents(e){const{parseNode:t,src:n}=this.context;this.contents||(this.contents=[]);let o=e;for(;"-"===n[o-1];)o-=1;let c=r.Node.endOfWhiteSpace(n,e),u=o===e;for(this.valueRange=new r.Range(c);!r.Node.atDocumentBoundary(n,c,r.Char.DOCUMENT_END);){switch(n[c]){case"\n":if(u){const e=new i;c=e.parse({src:n},c),c{t=n.setOrigRanges(e,t)})),this.directivesEndMarker&&(t=this.directivesEndMarker.setOrigRange(e,t)),this.contents.forEach((n=>{t=n.setOrigRanges(e,t)})),this.documentEndMarker&&(t=this.documentEndMarker.setOrigRange(e,t)),t}toString(){const{contents:e,directives:t,value:n}=this;if(null!=n)return n;let i=t.join("");return e.length>0&&((t.length>0||e[0].type===r.Type.COMMENT)&&(i+="---\n"),i+=e.join("")),"\n"!==i[i.length-1]&&(i+="\n"),i}}class f extends r.Node{parse(e,t){this.context=e;const{src:n}=e;let i=r.Node.endOfIdentifier(n,t+1);return this.valueRange=new r.Range(t+1,i),i=r.Node.endOfWhiteSpace(n,i),i=this.parseComment(i),i}}const d="KEEP",p="STRIP";class h extends r.Node{constructor(e,t){super(e,t),this.blockIndent=null,this.chomping="CLIP",this.header=null}get includesTrailingLines(){return this.chomping===d}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange;const{indent:n,src:i}=this.context;if(this.valueRange.isEmpty())return"";let o=null,s=i[t-1];for(;"\n"===s||"\t"===s||" "===s;){if(t-=1,t<=e){if(this.chomping===d)break;return""}"\n"===s&&(o=t),s=i[t-1]}let a=t+1;o&&(this.chomping===d?(a=o,t=this.valueRange.end):t=o);const c=n+this.blockIndent,u=this.type===r.Type.BLOCK_FOLDED;let l=!0,f="",h="",g=!1;for(let n=e;na&&(a=u);o="\n"===n[e]?e:s=r.Node.endOfLine(n,e)}return this.chomping!==d&&(o=n[s]?s+1:s),this.valueRange=new r.Range(e+1,o),o}parse(e,t){this.context=e;const{src:n}=e;let i=this.parseBlockHeader(t);return i=r.Node.endOfWhiteSpace(n,i),i=this.parseComment(i),i=this.parseBlockValue(i),i}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.header?this.header.setOrigRange(e,t):t}}class g extends r.Node{constructor(e,t){super(e,t),this.items=null}prevNodeIsJsonLike(e=this.items.length){const t=this.items[e-1];return!!t&&(t.jsonLike||t.type===r.Type.COMMENT&&this.prevNodeIsJsonLike(e-1))}parse(e,t){this.context=e;const{parseNode:n,src:o}=e;let{indent:a,lineStart:c}=e,u=o[t];this.items=[{char:u,offset:t}];let l=r.Node.endOfWhiteSpace(o,t+1);for(u=o[l];u&&"]"!==u&&"}"!==u;){switch(u){case"\n":if(c=l+1,"\n"===o[r.Node.endOfWhiteSpace(o,c)]){const e=new i;c=e.parse({src:o},c),this.items.push(e)}if(l=r.Node.endOfIndent(o,c),l<=c+a&&(u=o[l],l{if(n instanceof r.Node)t=n.setOrigRanges(e,t);else if(0===e.length)n.origOffset=n.offset;else{let r=t;for(;rn.offset);)++r;n.origOffset=n.offset+r,t=r}})),t}toString(){const{context:{src:e},items:t,range:n,value:i}=this;if(null!=i)return i;const o=t.filter((e=>e instanceof r.Node));let s="",a=n.start;return o.forEach((t=>{const n=e.slice(a,t.range.start);a=t.range.end,s+=n+String(t),"\n"===s[s.length-1]&&"\n"!==e[a-1]&&"\n"===e[a]&&(a+=1)})),s+=e.slice(a,n.end),r.Node.addStringTerminator(e,n.end,s)}}class m extends r.Node{static endOfQuote(e,t){let n=e[t];for(;n&&'"'!==n;)n=e[t+="\\"===n?2:1];return t+1}get strValue(){if(!this.valueRange||!this.context)return null;const e=[],{start:t,end:n}=this.valueRange,{indent:i,src:o}=this.context;'"'!==o[n-1]&&e.push(new r.YAMLSyntaxError(this,'Missing closing "quote'));let s="";for(let a=t+1;ae?o.slice(e,a+1):t)}else s+=t}return e.length>0?{errors:e,str:s}:s}parseCharCode(e,t,n){const{src:i}=this.context,o=i.substr(e,t),s=o.length===t&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;return isNaN(s)?(n.push(new r.YAMLSyntaxError(this,`Invalid escape sequence ${i.substr(e-2,t+2)}`)),i.substr(e-2,t+2)):String.fromCodePoint(s)}parse(e,t){this.context=e;const{src:n}=e;let i=m.endOfQuote(n,t+1);return this.valueRange=new r.Range(t,i),i=r.Node.endOfWhiteSpace(n,i),i=this.parseComment(i),i}}class y extends r.Node{static endOfQuote(e,t){let n=e[t];for(;n;)if("'"===n){if("'"!==e[t+1])break;n=e[t+=2]}else n=e[t+=1];return t+1}get strValue(){if(!this.valueRange||!this.context)return null;const e=[],{start:t,end:n}=this.valueRange,{indent:i,src:o}=this.context;"'"!==o[n-1]&&e.push(new r.YAMLSyntaxError(this,"Missing closing 'quote"));let s="";for(let a=t+1;ae?o.slice(e,a+1):t)}else s+=t}return e.length>0?{errors:e,str:s}:s}parse(e,t){this.context=e;const{src:n}=e;let i=y.endOfQuote(n,t+1);return this.valueRange=new r.Range(t,i),i=r.Node.endOfWhiteSpace(n,i),i=this.parseComment(i),i}}class v{static parseType(e,t,n){switch(e[t]){case"*":return r.Type.ALIAS;case">":return r.Type.BLOCK_FOLDED;case"|":return r.Type.BLOCK_LITERAL;case"{":return r.Type.FLOW_MAP;case"[":return r.Type.FLOW_SEQ;case"?":return!n&&r.Node.atBlank(e,t+1,!0)?r.Type.MAP_KEY:r.Type.PLAIN;case":":return!n&&r.Node.atBlank(e,t+1,!0)?r.Type.MAP_VALUE:r.Type.PLAIN;case"-":return!n&&r.Node.atBlank(e,t+1,!0)?r.Type.SEQ_ITEM:r.Type.PLAIN;case'"':return r.Type.QUOTE_DOUBLE;case"'":return r.Type.QUOTE_SINGLE;default:return r.Type.PLAIN}}constructor(e={},{atLineStart:t,inCollection:n,inFlow:i,indent:s,lineStart:a,parent:u}={}){r._defineProperty(this,"parseNode",((e,t)=>{if(r.Node.atDocumentBoundary(this.src,t))return null;const n=new v(this,e),{props:i,type:s,valueStart:a}=n.parseProps(t),u=function(e,t){switch(e){case r.Type.ALIAS:return new f(e,t);case r.Type.BLOCK_FOLDED:case r.Type.BLOCK_LITERAL:return new h(e,t);case r.Type.FLOW_MAP:case r.Type.FLOW_SEQ:return new g(e,t);case r.Type.MAP_KEY:case r.Type.MAP_VALUE:case r.Type.SEQ_ITEM:return new o(e,t);case r.Type.COMMENT:case r.Type.PLAIN:return new r.PlainValue(e,t);case r.Type.QUOTE_DOUBLE:return new m(e,t);case r.Type.QUOTE_SINGLE:return new y(e,t);default:return null}}(s,i);let l=u.parse(n,a);if(u.range=new r.Range(t,l),l<=t&&(u.error=new Error("Node#parse consumed no characters"),u.error.parseEnd=l,u.error.source=u,u.range.end=t+1),n.nodeStartsCollection(u)){u.error||n.atLineStart||n.parent.type!==r.Type.DOCUMENT||(u.error=new r.YAMLSyntaxError(u,"Block collection must not have preceding content here (e.g. directives-end indicator)"));const e=new c(u);return l=e.parse(new v(n),l),e.range=new r.Range(t,l),e}return u})),this.atLineStart=null!=t?t:e.atLineStart||!1,this.inCollection=null!=n?n:e.inCollection||!1,this.inFlow=null!=i?i:e.inFlow||!1,this.indent=null!=s?s:e.indent,this.lineStart=null!=a?a:e.lineStart,this.parent=null!=u?u:e.parent||{},this.root=e.root,this.src=e.src}nodeStartsCollection(e){const{inCollection:t,inFlow:n,src:i}=this;if(t||n)return!1;if(e instanceof o)return!0;let s=e.range.end;return"\n"!==i[s]&&"\n"!==i[s-1]&&(s=r.Node.endOfWhiteSpace(i,s),":"===i[s])}parseProps(e){const{inFlow:t,parent:n,src:i}=this,o=[];let s=!1,a=i[e=this.atLineStart?r.Node.endOfIndent(i,e):r.Node.endOfWhiteSpace(i,e)];for(;a===r.Char.ANCHOR||a===r.Char.COMMENT||a===r.Char.TAG||"\n"===a;){if("\n"===a){let t,o=e;do{t=o+1,o=r.Node.endOfIndent(i,t)}while("\n"===i[o]);const a=o-(t+this.indent),c=n.type===r.Type.SEQ_ITEM&&n.context.atLineStart;if("#"!==i[o]&&!r.Node.nextNodeIsIndented(i[o],a,!c))break;this.atLineStart=!0,this.lineStart=t,s=!1,e=o}else if(a===r.Char.COMMENT){const t=r.Node.endOfLine(i,e+1);o.push(new r.Range(e,t)),e=t}else{let t=r.Node.endOfIdentifier(i,e+1);a===r.Char.TAG&&","===i[t]&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(i.slice(e+1,t+13))&&(t=r.Node.endOfIdentifier(i,t+5)),o.push(new r.Range(e,t)),s=!0,e=r.Node.endOfWhiteSpace(i,t)}a=i[e]}return s&&":"===a&&r.Node.atBlank(i,e+1,!0)&&(e-=1),{props:o,type:v.parseType(i,e,t),valueStart:e}}}t.parse=function(e){const t=[];-1!==e.indexOf("\r")&&(e=e.replace(/\r\n?/g,((e,n)=>(e.length>1&&t.push(n),"\n"))));const n=[];let r=0;do{const t=new l,i=new v({src:e});r=t.parse(i,r),n.push(t)}while(r{if(0===t.length)return!1;for(let e=1;en.join("...\n"),n}},76314:(e,t,n)=>{"use strict";var r=n(48487);function i(e,t,n){return n?-1===n.indexOf("\n")?`${e} #${n}`:`${e}\n`+n.replace(/^/gm,`${t||""}#`):e}class o{}function s(e,t,n){if(Array.isArray(e))return e.map(((e,t)=>s(e,String(t),n)));if(e&&"function"==typeof e.toJSON){const r=n&&n.anchors&&n.anchors.get(e);r&&(n.onCreate=e=>{r.res=e,delete n.onCreate});const i=e.toJSON(t,n);return r&&n.onCreate&&n.onCreate(i),i}return n&&n.keep||"bigint"!=typeof e?e:Number(e)}class a extends o{constructor(e){super(),this.value=e}toJSON(e,t){return t&&t.keep?this.value:s(this.value,e,t)}toString(){return String(this.value)}}function c(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){const n=t[e];if(Number.isInteger(n)&&n>=0){const e=[];e[n]=r,r=e}else{const e={};Object.defineProperty(e,n,{value:r,writable:!0,enumerable:!0,configurable:!0}),r=e}}return e.createNode(r,!1)}const u=e=>null==e||"object"==typeof e&&e[Symbol.iterator]().next().done;class l extends o{constructor(e){super(),r._defineProperty(this,"items",[]),this.schema=e}addIn(e,t){if(u(e))this.add(t);else{const[n,...r]=e,i=this.get(n,!0);if(i instanceof l)i.addIn(r,t);else{if(void 0!==i||!this.schema)throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`);this.set(n,c(this.schema,r,t))}}}deleteIn([e,...t]){if(0===t.length)return this.delete(e);const n=this.get(e,!0);if(n instanceof l)return n.deleteIn(t);throw new Error(`Expected YAML collection at ${e}. Remaining path: ${t}`)}getIn([e,...t],n){const r=this.get(e,!0);return 0===t.length?!n&&r instanceof a?r.value:r:r instanceof l?r.getIn(t,n):void 0}hasAllNullValues(){return this.items.every((e=>{if(!e||"PAIR"!==e.type)return!1;const t=e.value;return null==t||t instanceof a&&null==t.value&&!t.commentBefore&&!t.comment&&!t.tag}))}hasIn([e,...t]){if(0===t.length)return this.has(e);const n=this.get(e,!0);return n instanceof l&&n.hasIn(t)}setIn([e,...t],n){if(0===t.length)this.set(e,n);else{const r=this.get(e,!0);if(r instanceof l)r.setIn(t,n);else{if(void 0!==r||!this.schema)throw new Error(`Expected YAML collection at ${e}. Remaining path: ${t}`);this.set(e,c(this.schema,t,n))}}}toJSON(){return null}toString(e,{blockItem:t,flowChars:n,isMap:o,itemIndent:s},a,c){const{indent:u,indentStep:f,stringify:d}=e,p=this.type===r.Type.FLOW_MAP||this.type===r.Type.FLOW_SEQ||e.inFlow;p&&(s+=f);const h=o&&this.hasAllNullValues();e=Object.assign({},e,{allNullValues:h,indent:s,inFlow:p,type:null});let g=!1,m=!1;const y=this.items.reduce(((t,n,r)=>{let o;n&&(!g&&n.spaceBefore&&t.push({type:"comment",str:""}),n.commentBefore&&n.commentBefore.match(/^.*$/gm).forEach((e=>{t.push({type:"comment",str:`#${e}`})})),n.comment&&(o=n.comment),p&&(!g&&n.spaceBefore||n.commentBefore||n.comment||n.key&&(n.key.commentBefore||n.key.comment)||n.value&&(n.value.commentBefore||n.value.comment))&&(m=!0)),g=!1;let a=d(n,e,(()=>o=null),(()=>g=!0));return p&&!m&&a.includes("\n")&&(m=!0),p&&re.str));if(m||r.reduce(((e,t)=>e+t.length+2),2)>l.maxFlowStringSingleLineLength){v=e;for(const e of r)v+=e?`\n${f}${u}${e}`:"\n";v+=`\n${u}${t}`}else v=`${e} ${r.join(" ")} ${t}`}else{const e=y.map(t);v=e.shift();for(const t of e)v+=t?`\n${u}${t}`:"\n"}return this.comment?(v+="\n"+this.comment.replace(/^/gm,`${u}#`),a&&a()):g&&c&&c(),v}}function f(e){let t=e instanceof a?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),Number.isInteger(t)&&t>=0?t:null}r._defineProperty(l,"maxFlowStringSingleLineLength",60);class d extends l{add(e){this.items.push(e)}delete(e){const t=f(e);return"number"==typeof t&&this.items.splice(t,1).length>0}get(e,t){const n=f(e);if("number"!=typeof n)return;const r=this.items[n];return!t&&r instanceof a?r.value:r}has(e){const t=f(e);return"number"==typeof t&&t"comment"===e.type?e.str:`- ${e.str}`,flowChars:{start:"[",end:"]"},isMap:!1,itemIndent:(e.indent||"")+" "},t,n):JSON.stringify(this)}}class p extends o{constructor(e,t=null){super(),this.key=e,this.value=t,this.type=p.Type.PAIR}get commentBefore(){return this.key instanceof o?this.key.commentBefore:void 0}set commentBefore(e){if(null==this.key&&(this.key=new a(null)),!(this.key instanceof o))throw new Error("Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.");this.key.commentBefore=e}addToJSMap(e,t){const n=s(this.key,"",e);if(t instanceof Map){const r=s(this.value,n,e);t.set(n,r)}else if(t instanceof Set)t.add(n);else{const r=((e,t,n)=>null===t?"":"object"!=typeof t?String(t):e instanceof o&&n&&n.doc?e.toString({anchors:Object.create(null),doc:n.doc,indent:"",indentStep:n.indentStep,inFlow:!0,inStringifyKey:!0,stringify:n.stringify}):JSON.stringify(t))(this.key,n,e),i=s(this.value,r,e);r in t?Object.defineProperty(t,r,{value:i,writable:!0,enumerable:!0,configurable:!0}):t[r]=i}return t}toJSON(e,t){const n=t&&t.mapAsMap?new Map:{};return this.addToJSMap(t,n)}toString(e,t,n){if(!e||!e.doc)return JSON.stringify(this);const{indent:s,indentSeq:c,simpleKeys:u}=e.doc.options;let{key:f,value:p}=this,h=f instanceof o&&f.comment;if(u){if(h)throw new Error("With simple keys, key nodes cannot have comments");if(f instanceof l)throw new Error("With simple keys, collection cannot be used as a key value")}let g=!u&&(!f||h||(f instanceof o?f instanceof l||f.type===r.Type.BLOCK_FOLDED||f.type===r.Type.BLOCK_LITERAL:"object"==typeof f));const{doc:m,indent:y,indentStep:v,stringify:b}=e;e=Object.assign({},e,{implicitKey:!g,indent:y+v});let S=!1,E=b(f,e,(()=>h=null),(()=>S=!0));if(E=i(E,e.indent,h),!g&&E.length>1024){if(u)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");g=!0}if(e.allNullValues&&!u)return this.comment?(E=i(E,e.indent,this.comment),t&&t()):S&&!h&&n&&n(),e.inFlow&&!g?E:`? ${E}`;E=g?`? ${E}\n${y}:`:`${E}:`,this.comment&&(E=i(E,e.indent,this.comment),t&&t());let x="",w=null;p instanceof o?(p.spaceBefore&&(x="\n"),p.commentBefore&&(x+=`\n${p.commentBefore.replace(/^/gm,`${e.indent}#`)}`),w=p.comment):p&&"object"==typeof p&&(p=m.schema.createNode(p,!0)),e.implicitKey=!1,!g&&!this.comment&&p instanceof a&&(e.indentAtStart=E.length+1),S=!1,!c&&s>=2&&!e.inFlow&&!g&&p instanceof d&&p.type!==r.Type.FLOW_SEQ&&!p.tag&&!m.anchors.getName(p)&&(e.indent=e.indent.substr(2));const _=b(p,e,(()=>w=null),(()=>S=!0));let O=" ";return x||this.comment?O=`${x}\n${e.indent}`:!g&&p instanceof l?("["===_[0]||"{"===_[0])&&!_.includes("\n")||(O=`\n${e.indent}`):"\n"===_[0]&&(O=""),S&&!w&&n&&n(),i(E+O+_,e.indent,w)}}r._defineProperty(p,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});const h=(e,t)=>{if(e instanceof g){const n=t.get(e.source);return n.count*n.aliasCount}if(e instanceof l){let n=0;for(const r of e.items){const e=h(r,t);e>n&&(n=e)}return n}if(e instanceof p){const n=h(e.key,t),r=h(e.value,t);return Math.max(n,r)}return 1};class g extends o{static stringify({range:e,source:t},{anchors:n,doc:r,implicitKey:i,inStringifyKey:o}){let s=Object.keys(n).find((e=>n[e]===t));if(!s&&o&&(s=r.anchors.getName(t)||r.anchors.newName()),s)return`*${s}${i?" ":""}`;const a=r.anchors.getName(t)?"Alias node must be after source node":"Source node not found for alias node";throw new Error(`${a} [${e}]`)}constructor(e){super(),this.source=e,this.type=r.Type.ALIAS}set tag(e){throw new Error("Alias nodes cannot have tags")}toJSON(e,t){if(!t)return s(this.source,e,t);const{anchors:n,maxAliasCount:i}=t,o=n.get(this.source);if(!o||void 0===o.res){const e="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new r.YAMLReferenceError(this.cstNode,e):new ReferenceError(e)}if(i>=0&&(o.count+=1,0===o.aliasCount&&(o.aliasCount=h(this.source,n)),o.count*o.aliasCount>i)){const e="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new r.YAMLReferenceError(this.cstNode,e):new ReferenceError(e)}return o.res}toString(e){return g.stringify(this,e)}}function m(e,t){const n=t instanceof a?t.value:t;for(const r of e)if(r instanceof p){if(r.key===t||r.key===n)return r;if(r.key&&r.key.value===n)return r}}r._defineProperty(g,"default",!0);class y extends l{add(e,t){e?e instanceof p||(e=new p(e.key||e,e.value)):e=new p(e);const n=m(this.items,e.key),r=this.schema&&this.schema.sortMapEntries;if(n){if(!t)throw new Error(`Key ${e.key} already set`);n.value=e.value}else if(r){const t=this.items.findIndex((t=>r(e,t)<0));-1===t?this.items.push(e):this.items.splice(t,0,e)}else this.items.push(e)}delete(e){const t=m(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){const n=m(this.items,e),r=n&&n.value;return!t&&r instanceof a?r.value:r}has(e){return!!m(this.items,e)}set(e,t){this.add(new p(e,t),!0)}toJSON(e,t,n){const r=n?new n:t&&t.mapAsMap?new Map:{};t&&t.onCreate&&t.onCreate(r);for(const e of this.items)e.addToJSMap(t,r);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(const e of this.items)if(!(e instanceof p))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return super.toString(e,{blockItem:e=>e.str,flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:e.indent||""},t,n)}}class v extends p{constructor(e){if(e instanceof p){let t=e.value;t instanceof d||(t=new d,t.items.push(e.value),t.range=e.value.range),super(e.key,t),this.range=e.range}else super(new a("<<"),new d);this.type=p.Type.MERGE_PAIR}addToJSMap(e,t){for(const{source:n}of this.value.items){if(!(n instanceof y))throw new Error("Merge sources must be maps");const r=n.toJSON(null,e,Map);for(const[e,n]of r)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0})}return t}toString(e,t){const n=this.value;if(n.items.length>1)return super.toString(e,t);this.value=n.items[0];const r=super.toString(e,t);return this.value=n,r}}const b={defaultType:r.Type.BLOCK_LITERAL,lineWidth:76},S={defaultType:r.Type.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function E(e,t,n){for(const{format:n,test:r,resolve:i}of t)if(r){const t=e.match(r);if(t){let e=i.apply(null,t);return e instanceof a||(e=new a(e)),n&&(e.format=n),e}}return n&&(e=n(e)),new a(e)}const x="flow",w="block",_="quoted",O=(e,t)=>{let n=e[t+1];for(;" "===n||"\t"===n;){do{n=e[t+=1]}while(n&&"\n"!==n);n=e[t+1]}return t};function C(e,t,n,{indentAtStart:r,lineWidth:i=80,minContentWidth:o=20,onFold:s,onOverflow:a}){if(!i||i<0)return e;const c=Math.max(1+o,1+i-t.length);if(e.length<=c)return e;const u=[],l={};let f,d,p=i-t.length;"number"==typeof r&&(r>i-Math.max(2,o)?u.push(0):p=i-r);let h,g=!1,m=-1,y=-1,v=-1;for(n===w&&(m=O(e,m),-1!==m&&(p=m+c));h=e[m+=1];){if(n===_&&"\\"===h){switch(y=m,e[m+1]){case"x":m+=3;break;case"u":m+=5;break;case"U":m+=9;break;default:m+=1}v=m}if("\n"===h)n===w&&(m=O(e,m)),p=m+c,f=void 0;else{if(" "===h&&d&&" "!==d&&"\n"!==d&&"\t"!==d){const t=e[m+1];t&&" "!==t&&"\n"!==t&&"\t"!==t&&(f=m)}if(m>=p)if(f)u.push(f),p=f+c,f=void 0;else if(n===_){for(;" "===d||"\t"===d;)d=h,h=e[m+=1],g=!0;const t=m>v+1?m-2:y-1;if(l[t])return e;u.push(t),l[t]=!0,p=t+c,f=void 0}else g=!0}d=h}if(g&&a&&a(),0===u.length)return e;s&&s();let b=e.slice(0,u[0]);for(let r=0;re?Object.assign({indentAtStart:e},S.fold):S.fold,A=e=>/^(%|---|\.\.\.)/m.test(e);function P(e,t){const{implicitKey:n}=t,{jsonEncoding:r,minMultiLineLength:i}=S.doubleQuoted,o=JSON.stringify(e);if(r)return o;const s=t.indent||(A(e)?" ":"");let a="",c=0;for(let e=0,t=o[e];t;t=o[++e])if(" "===t&&"\\"===o[e+1]&&"n"===o[e+2]&&(a+=o.slice(c,e)+"\\ ",e+=1,c=e,t="\\"),"\\"===t)switch(o[e+1]){case"u":{a+=o.slice(c,e);const t=o.substr(e+2,4);switch(t){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:"00"===t.substr(0,2)?a+="\\x"+t.substr(2):a+=o.substr(e,6)}e+=5,c=e+1}break;case"n":if(n||'"'===o[e+2]||o.lengthr)return!0;if(n=t+1,i-n<=r)return!1}return!0}(n,S.fold.lineWidth,a.length));let l=u?"|":">";if(!n)return l+"\n";let f="",d="";if(n=n.replace(/[\n\t ]*$/,(e=>{const t=e.indexOf("\n");return-1===t?l+="-":n!==e&&t===e.length-1||(l+="+",s&&s()),d=e.replace(/\n$/,""),""})).replace(/^[\n ]*/,(e=>{-1!==e.indexOf(" ")&&(l+=c);const t=e.match(/ +$/);return t?(f=e.slice(0,-t[0].length),t[0]):(f=e,"")})),d&&(d=d.replace(/\n+(?!\n|$)/g,`$&${a}`)),f&&(f=f.replace(/\n+/g,`$&${a}`)),e&&(l+=" #"+e.replace(/ ?[\r\n]+/g," "),o&&o()),!n)return`${l}${c}\n${a}${d}`;if(u)return n=n.replace(/\n+/g,`$&${a}`),`${l}\n${a}${f}${n}${d}`;n=n.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${a}`);const p=C(`${f}${n}${d}`,a,w,S.fold);return`${l}\n${a}${p}`}function k(e,t){let n,i,o;switch(t.type){case r.Type.FLOW_MAP:n="}",i="flow map";break;case r.Type.FLOW_SEQ:n="]",i="flow sequence";break;default:return void e.push(new r.YAMLSemanticError(t,"Not a flow collection!?"))}for(let e=t.items.length-1;e>=0;--e){const n=t.items[e];if(!n||n.type!==r.Type.COMMENT){o=n;break}}if(o&&o.char!==n){const s=`Expected ${i} to end with ${n}`;let a;"number"==typeof o.offset?(a=new r.YAMLSemanticError(t,s),a.offset=o.offset+1):(a=new r.YAMLSemanticError(o,s),o.range&&o.range.end&&(a.offset=o.range.end-o.range.start)),e.push(a)}}function F(e,t){const n=t.context.src[t.range.start-1];if("\n"!==n&&"\t"!==n&&" "!==n){const n="Comments must be separated from other tokens by white space characters";e.push(new r.YAMLSemanticError(t,n))}}function M(e,t){const n=String(t),i=n.substr(0,8)+"..."+n.substr(-8);return new r.YAMLSemanticError(e,`The "${i}" key is too long`)}function j(e,t){for(const{afterKey:n,before:r,comment:i}of t){let t=e.items[r];t?(n&&t.value&&(t=t.value),void 0===i?!n&&t.commentBefore||(t.spaceBefore=!0):t.commentBefore?t.commentBefore+="\n"+i:t.commentBefore=i):void 0!==i&&(e.comment?e.comment+="\n"+i:e.comment=i)}}function I(e,t){const n=t.strValue;return n?"string"==typeof n?n:(n.errors.forEach((n=>{n.source||(n.source=t),e.errors.push(n)})),n.str):""}function N(e,t,n){const{tags:r}=e.schema,i=[];for(const o of r)if(o.tag===n){if(!o.test){const n=o.resolve(e,t);return n instanceof l?n:new a(n)}i.push(o)}const o=I(e,t);return"string"==typeof o&&i.length>0?E(o,i,r.scalarFallback):null}function L(e,t){if(!t)return null;t.error&&e.errors.push(t.error);const{comments:n,hasAnchor:i,hasTag:o}=function(e,t){const n={before:[],after:[]};let i=!1,o=!1;const s=(e=>{if(!e)return!1;const{type:t}=e;return t===r.Type.MAP_KEY||t===r.Type.MAP_VALUE||t===r.Type.SEQ_ITEM})(t.context.parent)?t.context.parent.props.concat(t.props):t.props;for(const{start:a,end:c}of s)switch(t.context.src[a]){case r.Char.COMMENT:{if(!t.commentHasRequiredWhitespace(a)){const n="Comments must be separated from other tokens by white space characters";e.push(new r.YAMLSemanticError(t,n))}const{header:i,valueRange:o}=t;(o&&(a>o.start||i&&a>i.start)?n.after:n.before).push(t.context.src.slice(a+1,c));break}case r.Char.ANCHOR:if(i){const n="A node can have at most one anchor";e.push(new r.YAMLSemanticError(t,n))}i=!0;break;case r.Char.TAG:if(o){const n="A node can have at most one tag";e.push(new r.YAMLSemanticError(t,n))}o=!0}return{comments:n,hasAnchor:i,hasTag:o}}(e.errors,t);if(i){const{anchors:n}=e,r=t.anchor,i=n.getNode(r);i&&(n.map[n.newName(r)]=i),n.map[r]=t}if(t.type===r.Type.ALIAS&&(i||o)){const n="An alias node must not specify any properties";e.errors.push(new r.YAMLSemanticError(t,n))}const s=function(e,t){const{anchors:n,errors:i,schema:o}=e;if(t.type===r.Type.ALIAS){const e=t.rawValue,o=n.getNode(e);if(!o){const n=`Aliased anchor not found: ${e}`;return i.push(new r.YAMLReferenceError(t,n)),null}const s=new g(o);return n._cstAliases.push(s),s}const s=function(e,t){const{tag:n,type:i}=t;let o=!1;if(n){const{handle:i,suffix:s,verbatim:a}=n;if(a){if("!"!==a&&"!!"!==a)return a;const n=`Verbatim tags aren't resolved, so ${a} is invalid.`;e.errors.push(new r.YAMLSemanticError(t,n))}else if("!"!==i||s)try{return function(e,t){const{handle:n,suffix:i}=t.tag;let o=e.tagPrefixes.find((e=>e.handle===n));if(!o){const i=e.getDefaults().tagPrefixes;if(i&&(o=i.find((e=>e.handle===n))),!o)throw new r.YAMLSemanticError(t,`The ${n} tag handle is non-default and was not declared.`)}if(!i)throw new r.YAMLSemanticError(t,`The ${n} tag has no suffix.`);if("!"===n&&"1.0"===(e.version||e.options.version)){if("^"===i[0])return e.warnings.push(new r.YAMLWarning(t,"YAML 1.0 ^ tag expansion is not supported")),i;if(/[:/]/.test(i)){const e=i.match(/^([a-z0-9-]+)\/(.*)/i);return e?`tag:${e[1]}.yaml.org,2002:${e[2]}`:`tag:${i}`}}return o.prefix+decodeURIComponent(i)}(e,t)}catch(t){e.errors.push(t)}else o=!0}switch(i){case r.Type.BLOCK_FOLDED:case r.Type.BLOCK_LITERAL:case r.Type.QUOTE_DOUBLE:case r.Type.QUOTE_SINGLE:return r.defaultTags.STR;case r.Type.FLOW_MAP:case r.Type.MAP:return r.defaultTags.MAP;case r.Type.FLOW_SEQ:case r.Type.SEQ:return r.defaultTags.SEQ;case r.Type.PLAIN:return o?r.defaultTags.STR:null;default:return null}}(e,t);if(s)return function(e,t,n){try{const r=N(e,t,n);if(r)return n&&t.tag&&(r.tag=n),r}catch(n){return n.source||(n.source=t),e.errors.push(n),null}try{const i=function({type:e}){switch(e){case r.Type.FLOW_MAP:case r.Type.MAP:return r.defaultTags.MAP;case r.Type.FLOW_SEQ:case r.Type.SEQ:return r.defaultTags.SEQ;default:return r.defaultTags.STR}}(t);if(!i)throw new Error(`The tag ${n} is unavailable`);const o=`The tag ${n} is unavailable, falling back to ${i}`;e.warnings.push(new r.YAMLWarning(t,o));const s=N(e,t,i);return s.tag=n,s}catch(n){const i=new r.YAMLReferenceError(t,n.message);return i.stack=n.stack,e.errors.push(i),null}}(e,t,s);if(t.type!==r.Type.PLAIN){const e=`Failed to resolve ${t.type} node here`;return i.push(new r.YAMLSyntaxError(t,e)),null}try{return E(I(e,t),o.tags,o.tags.scalarFallback)}catch(e){return e.source||(e.source=t),i.push(e),null}}(e,t);if(s){s.range=[t.range.start,t.range.end],e.options.keepCstNodes&&(s.cstNode=t),e.options.keepNodeTypes&&(s.type=t.type);const r=n.before.join("\n");r&&(s.commentBefore=s.commentBefore?`${s.commentBefore}\n${r}`:r);const i=n.after.join("\n");i&&(s.comment=s.comment?`${s.comment}\n${i}`:i)}return t.resolved=s}function B(e,t){if(!(({context:{lineStart:e,node:t,src:n},props:i})=>{if(0===i.length)return!1;const{start:o}=i[0];if(t&&o>t.valueRange.start)return!1;if(n[o]!==r.Char.COMMENT)return!1;for(let t=e;t0){n=new r.PlainValue(r.Type.PLAIN,[]),n.context={parent:c,src:c.context.src};const e=c.range.start+1;if(n.range={start:e,end:e},n.valueRange={start:e,end:e},"number"==typeof c.range.origStart){const e=c.range.origStart+1;n.range.origStart=n.range.origEnd=e,n.valueRange.origStart=n.valueRange.origEnd=e}}const a=new p(o,L(e,n));B(c,a),i.push(a),o&&"number"==typeof s&&c.range.start>s+1024&&e.errors.push(M(t,o)),o=void 0,s=null}break;default:void 0!==o&&i.push(new p(o)),o=L(e,c),s=c.range.start,c.error&&e.errors.push(c.error);e:for(let n=a+1;;++n){const i=t.items[n];switch(i&&i.type){case r.Type.BLANK_LINE:case r.Type.COMMENT:continue e;case r.Type.MAP_VALUE:break e;default:{const t="Implicit map keys need to be followed by map values";e.errors.push(new r.YAMLSemanticError(c,t));break e}}}if(c.valueRangeContainsNewline){const t="Implicit map keys need to be on a single line";e.errors.push(new r.YAMLSemanticError(c,t))}}}return void 0!==o&&i.push(new p(o)),{comments:n,items:i}}(e,t),o=new y;o.items=i,j(o,n);let s=!1;for(let n=0;n{if(e instanceof g){const{type:t}=e.source;return t!==r.Type.MAP&&t!==r.Type.FLOW_MAP&&(s="Merge nodes aliases can only point to maps")}return s="Merge nodes can only have Alias nodes as values"})),s&&e.errors.push(new r.YAMLSemanticError(t,s))}else for(let s=n+1;sa+1024&&e.errors.push(M(t,o));const{src:i}=u.context;for(let t=a;te instanceof p&&e.key instanceof l))){const n="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";e.warnings.push(new r.YAMLWarning(t,n))}return t.resolved=o,o},t.resolveString=I,t.strOptions=S,t.stringifyNumber=function({format:e,minFractionDigits:t,tag:n,value:r}){if("bigint"==typeof r)return String(r);if(!isFinite(r))return isNaN(r)?".nan":r<0?"-.inf":".inf";let i=JSON.stringify(r);if(!e&&t&&(!n||"tag:yaml.org,2002:float"===n)&&/^\d/.test(i)){let e=i.indexOf(".");e<0&&(e=i.length,i+=".");let n=t-(i.length-e-1);for(;n-- >0;)i+="0"}return i},t.stringifyString=function(e,t,n,i){const{defaultType:o}=S,{implicitKey:s,inFlow:a}=t;let{type:c,value:u}=e;"string"!=typeof u&&(u=String(u),e=Object.assign({},e,{value:u}));const l=o=>{switch(o){case r.Type.BLOCK_FOLDED:case r.Type.BLOCK_LITERAL:return R(e,t,n,i);case r.Type.QUOTE_DOUBLE:return P(u,t);case r.Type.QUOTE_SINGLE:return T(u,t);case r.Type.PLAIN:return function(e,t,n,i){const{comment:o,type:s,value:a}=e,{actualString:c,implicitKey:u,indent:l,inFlow:f}=t;if(u&&/[\n[\]{},]/.test(a)||f&&/[[\]{},]/.test(a))return P(a,t);if(!a||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a))return u||f||-1===a.indexOf("\n")?-1!==a.indexOf('"')&&-1===a.indexOf("'")?T(a,t):P(a,t):R(e,t,n,i);if(!u&&!f&&s!==r.Type.PLAIN&&-1!==a.indexOf("\n"))return R(e,t,n,i);if(""===l&&A(a))return t.forceBlockIndent=!0,R(e,t,n,i);const d=a.replace(/\n+/g,`$&\n${l}`);if(c){const{tags:e}=t.doc.schema;if("string"!=typeof E(d,e,e.scalarFallback).value)return P(a,t)}const p=u?d:C(d,l,x,D(t));return!o||f||-1===p.indexOf("\n")&&-1===o.indexOf("\n")?p:(n&&n(),function(e,t,n){return n?`#${n.replace(/[\s\S]^/gm,`$&${t}#`)}\n${t}${e}`:e}(p,l,o))}(e,t,n,i);default:return null}};c!==r.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(u)?c=r.Type.QUOTE_DOUBLE:!s&&!a||c!==r.Type.BLOCK_FOLDED&&c!==r.Type.BLOCK_LITERAL||(c=r.Type.QUOTE_DOUBLE);let f=l(c);if(null===f&&(f=l(o),null===f))throw new Error(`Unsupported default string type ${o}`);return f},t.toJSON=s},51125:(e,t,n)=>{"use strict";var r=n(48487),i=n(76314);const o={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve:(e,t)=>{const n=i.resolveString(e,t);if("function"==typeof Buffer)return Buffer.from(n,"base64");if("function"==typeof atob){const e=atob(n.replace(/[\n\r]/g,"")),t=new Uint8Array(e.length);for(let n=0;n{let c;if("function"==typeof Buffer)c=n instanceof Buffer?n.toString("base64"):Buffer.from(n.buffer).toString("base64");else{if("function"!=typeof btoa)throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");{let e="";for(let t=0;t1){const e="Each pair must have its own sequence indicator";throw new r.YAMLSemanticError(t,e)}const e=o.items[0]||new i.Pair;o.commentBefore&&(e.commentBefore=e.commentBefore?`${o.commentBefore}\n${e.commentBefore}`:o.commentBefore),o.comment&&(e.comment=e.comment?`${o.comment}\n${e.comment}`:o.comment),o=e}n.items[e]=o instanceof i.Pair?o:new i.Pair(o)}}return n}function a(e,t,n){const r=new i.YAMLSeq(e);r.tag="tag:yaml.org,2002:pairs";for(const i of t){let t,o;if(Array.isArray(i)){if(2!==i.length)throw new TypeError(`Expected [key, value] tuple: ${i}`);t=i[0],o=i[1]}else if(i&&i instanceof Object){const e=Object.keys(i);if(1!==e.length)throw new TypeError(`Expected { key: value } tuple: ${i}`);t=e[0],o=i[t]}else t=i;const s=e.createPair(t,o,n);r.items.push(s)}return r}const c={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:s,createNode:a};class u extends i.YAMLSeq{constructor(){super(),r._defineProperty(this,"add",i.YAMLMap.prototype.add.bind(this)),r._defineProperty(this,"delete",i.YAMLMap.prototype.delete.bind(this)),r._defineProperty(this,"get",i.YAMLMap.prototype.get.bind(this)),r._defineProperty(this,"has",i.YAMLMap.prototype.has.bind(this)),r._defineProperty(this,"set",i.YAMLMap.prototype.set.bind(this)),this.tag=u.tag}toJSON(e,t){const n=new Map;t&&t.onCreate&&t.onCreate(n);for(const e of this.items){let r,o;if(e instanceof i.Pair?(r=i.toJSON(e.key,"",t),o=i.toJSON(e.value,r,t)):r=i.toJSON(e,"",t),n.has(r))throw new Error("Ordered maps must not include duplicate keys");n.set(r,o)}return n}}r._defineProperty(u,"tag","tag:yaml.org,2002:omap");const l={identify:e=>e instanceof Map,nodeClass:u,default:!1,tag:"tag:yaml.org,2002:omap",resolve:function(e,t){const n=s(e,t),o=[];for(const{key:e}of n.items)if(e instanceof i.Scalar){if(o.includes(e.value)){const e="Ordered maps must not include duplicate keys";throw new r.YAMLSemanticError(t,e)}o.push(e.value)}return Object.assign(new u,n)},createNode:function(e,t,n){const r=a(e,t,n),i=new u;return i.items=r.items,i}};class f extends i.YAMLMap{constructor(){super(),this.tag=f.tag}add(e){const t=e instanceof i.Pair?e:new i.Pair(e);i.findPair(this.items,t.key)||this.items.push(t)}get(e,t){const n=i.findPair(this.items,e);return!t&&n instanceof i.Pair?n.key instanceof i.Scalar?n.key.value:n.key:n}set(e,t){if("boolean"!=typeof t)throw new Error("Expected boolean value for set(key, value) in a YAML set, not "+typeof t);const n=i.findPair(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new i.Pair(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(e,t,n);throw new Error("Set items must all have null values")}}r._defineProperty(f,"tag","tag:yaml.org,2002:set");const d={identify:e=>e instanceof Set,nodeClass:f,default:!1,tag:"tag:yaml.org,2002:set",resolve:function(e,t){const n=i.resolveMap(e,t);if(!n.hasAllNullValues())throw new r.YAMLSemanticError(t,"Set items must all have null values");return Object.assign(new f,n)},createNode:function(e,t,n){const r=new f;for(const i of t)r.items.push(e.createPair(i,null,n));return r}},p=(e,t)=>{const n=t.split(":").reduce(((e,t)=>60*e+Number(t)),0);return"-"===e?-n:n},h=({value:e})=>{if(isNaN(e)||!isFinite(e))return i.stringifyNumber(e);let t="";e<0&&(t="-",e=Math.abs(e));const n=[e%60];return e<60?n.unshift(0):(e=Math.round((e-n[0])/60),n.unshift(e%60),e>=60&&(e=Math.round((e-n[0])/60),n.unshift(e))),t+n.map((e=>e<10?"0"+String(e):String(e))).join(":").replace(/000000\d*$/,"")},g={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(e,t,n)=>p(t,n.replace(/_/g,"")),stringify:h},m={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:(e,t,n)=>p(t,n.replace(/_/g,"")),stringify:h},y={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:(e,t,n,r,i,o,s,a,c)=>{a&&(a=(a+"00").substr(1,3));let u=Date.UTC(t,n-1,r,i||0,o||0,s||0,a||0);if(c&&"Z"!==c){let e=p(c[0],c.slice(1));Math.abs(e)<30&&(e*=60),u-=6e4*e}return new Date(u)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};function v(e){const t="undefined"!=typeof process&&process.env||{};return e?"undefined"!=typeof YAML_SILENCE_DEPRECATION_WARNINGS?!YAML_SILENCE_DEPRECATION_WARNINGS:!t.YAML_SILENCE_DEPRECATION_WARNINGS:"undefined"!=typeof YAML_SILENCE_WARNINGS?!YAML_SILENCE_WARNINGS:!t.YAML_SILENCE_WARNINGS}function b(e,t){if(v(!1)){const n="undefined"!=typeof process&&process.emitWarning;n?n(e,t):console.warn(t?`${t}: ${e}`:e)}}const S={};t.binary=o,t.floatTime=m,t.intTime=g,t.omap=l,t.pairs=c,t.set=d,t.timestamp=y,t.warn=b,t.warnFileDeprecation=function(e){v(!0)&&b(`The endpoint 'yaml/${e.replace(/.*yaml[/\\]/i,"").replace(/\.js$/,"").replace(/\\/g,"/")}' will be removed in a future release.`,"DeprecationWarning")},t.warnOptionDeprecation=function(e,t){if(!S[e]&&v(!0)){S[e]=!0;let n=`The option '${e}' will be removed in a future release`;n+=t?`, use '${t}' instead.`:".",b(n,"DeprecationWarning")}}},21078:(e,t,n)=>{e.exports=n(4667).YAML}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.c=t,n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var r=n(57424);module.exports=r})(); //# sourceMappingURL=main.js.map