3 lines
403 KiB
JavaScript
3 lines
403 KiB
JavaScript
/*! For license information please see extension.js.LICENSE.txt */
|
||
(()=>{var __webpack_modules__={163:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createChainableApi=function(e,t,n,o){const s=this;if(s[`${e}Promise`]&&0===s[`${e}Promise`].status&&s[`${e}Proxy`])return s[`${e}Proxy`];s[`${e}Promise`]=n(),[...i,...Object.getOwnPropertyNames(t.prototype)].forEach((t=>{Object.defineProperty(s[`${e}Promise`],t,{enumerable:!0,writable:!0,configurable:!0})}));const a={get:(n,i)=>{const a=Object.prototype.hasOwnProperty.call(t.prototype,i)||Object.prototype.hasOwnProperty.call(r.BaseApi.prototype,i),u=Object.getOwnPropertyDescriptor(t.prototype,i)||Object.getOwnPropertyDescriptor(r.BaseApi.prototype,i),c=u&&(void 0!==u.get||void 0!==u.set);return t&&a?a&&!c&&(i in t.prototype&&"function"==typeof t.prototype[i]||i in r.BaseApi.prototype&&"function"==typeof r.BaseApi.prototype[i])?(...t)=>s[`${e}Promise`].then((e=>e[i].call(e,...t))):o&&o()||s[`${e}Promise`].then((e=>e[i])):i in n?"function"==typeof n[i]?n[i].bind(n):n[i]:null},set:(e,t,n,r)=>(r&&(r instanceof Promise||"then"in r)?r.then((e=>{t in e&&(e[t]=n)})):e[t]=n,!0)};return s[`${e}Proxy`]=new Proxy(s[`${e}Promise`],a),s[`${e}Proxy`]};const r=n(9691),i=Object.getOwnPropertyNames(r.BaseApi.prototype)},181:e=>{"use strict";e.exports=require("buffer")},203:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exportsForTesting=void 0,t.findNvim=function(e={}){var t,n,s;const h=function(){const e=new Set,{PATH:t,USERPROFILE:n,LOCALAPPDATA:r,PROGRAMFILES:o,HOME:s}=process.env;return null==t||t.split(i.delimiter).forEach((t=>e.add(f(t)))),l?(n&&e.add(f(`${n}/scoop/shims`)),e.add(f("C:/ProgramData/scoop/shims")),r&&(e.add(f(`${r}/Microsoft/WindowsApps`)),e.add(f(`${r}/Microsoft/WinGet/Packages`))),o&&(e.add(f(`${o}/Neovim/bin`)),e.add(f(`${o} (x86)/Neovim/bin`)),e.add(f(`${o}/WinGet/Packages`)),e.add(f(`${o} (x86)/WinGet/Packages`)))):(["/usr/local/bin","/usr/bin","/opt/homebrew/bin","/home/linuxbrew/.linuxbrew/bin","/snap/nvim/current/usr/bin"].forEach((t=>e.add(t))),s&&(e.add(f(`${s}/bin`)),e.add(f(`${s}/.linuxbrew/bin`)))),e}(),p=l?"nvim.exe":"nvim",g=(null!==(t=e.paths)&&void 0!==t?t:[]).map(f),v=new Set([...g,...(null!==(n=e.dirs)&&void 0!==n?n:[]).map((e=>f((0,i.join)(e,p)))),...[...h].map((e=>(0,i.join)(e,p)))]),m=new Array,y=new Array;for(const t of v)if((0,o.existsSync)(t)||g.includes(t))try{(0,o.accessSync)(t,o.constants.X_OK);const n=(0,r.execFileSync)(t,["--version"]).toString(),i=a.exec(n),l=u.exec(n),h=c.exec(n);if(i&&l&&h)if("minVersion"in e&&1===d(null!==(s=e.minVersion)&&void 0!==s?s:"0.0.0",i[1]))y.push({nvimVersion:i[1],path:t,buildType:l[1],luaJitVersion:h[1]});else if(m.push({nvimVersion:i[1],path:t,buildType:l[1],luaJitVersion:h[1]}),e.firstMatch)return{matches:m,invalid:y}}catch(e){y.push({path:t,error:e})}return void 0!==e.orderBy&&"desc"!==e.orderBy||m.sort(((e,t)=>{var n,r;return d(null!==(n=t.nvimVersion)&&void 0!==n?n:"0.0.0",null!==(r=e.nvimVersion)&&void 0!==r?r:"0.0.0")})),{matches:m,invalid:y}};const r=n(1421),i=n(6760),o=n(3024),s=/^(\d+)\.(\d+)\.(\d+)(?:-(.+))?$/,a=/^NVIM\s+v(.+)$/m,u=/^Build\s+type:\s+(.+)$/m,c=/^LuaJIT\s+(.+)$/m,l="win32"===process.platform;function h(e){if("string"!=typeof e)throw new TypeError("Invalid version format: not a string");const t=e.match(s);if(!t)return;const[,n,r,i,o]=t,a=[Number(n),Number(r),Number(i)];return void 0!==o?a.push(o):a.push("zzz"),a}function d(e,t){var n,r,i,o,s,a;const u=h(e),c=h(t),l=Math.min(null!==(n=null==u?void 0:u.length)&&void 0!==n?n:0,null!==(r=null==c?void 0:c.length)&&void 0!==r?r:0);for(let e=0;e<l;e+=1){const t=null!==(i=null==u?void 0:u[e])&&void 0!==i?i:0,n=null!==(o=null==c?void 0:c[e])&&void 0!==o?o:0;if(t<n)return-1;if(t>n)return 1}return(null!==(s=null==c?void 0:c.length)&&void 0!==s?s:0)>(null!==(a=null==u?void 0:u.length)&&void 0!==a?a:0)?-1:0}function f(e){return(0,i.normalize)(l?e.toLowerCase():e)}},223:e=>{"use strict";const t={};function n(e,n,r){r||(r=Error);class i extends r{constructor(e,t,r){super(function(e,t,r){return"string"==typeof n?n:n(e,t,r)}(e,t,r))}}i.prototype.name=r.name,i.prototype.code=e,t[e]=i}function r(e,t){if(Array.isArray(e)){const n=e.length;return e=e.map((e=>String(e))),n>2?`one of ${t} ${e.slice(0,n-1).join(", ")}, or `+e[n-1]:2===n?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}return`of ${t} ${String(e)}`}n("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),n("ERR_INVALID_ARG_TYPE",(function(e,t,n){let i;var o;let s;if("string"==typeof t&&(o="not ",t.substr(0,4)===o)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-9,n)===t}(e," argument"))s=`The ${e} ${i} ${r(t,"type")}`;else{s=`The "${e}" ${"number"!=typeof u&&(u=0),u+1>(a=e).length||-1===a.indexOf(".",u)?"argument":"property"} ${i} ${r(t,"type")}`}var a,u;return s+=". Received type "+typeof n,s}),TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.F=t},257:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.isAsync)(e)?function(...t){const n=t.pop();return a(e.apply(this,t),n)}:(0,r.default)((function(t,n){var r;try{r=e.apply(this,t)}catch(e){return n(e)}if(r&&"function"==typeof r.then)return a(r,n);n(null,r)}))};var r=s(n(795)),i=s(n(6368)),o=n(4877);function s(e){return e&&e.__esModule?e:{default:e}}function a(e,t){return e.then((e=>{u(t,null,e)}),(e=>{u(t,e&&(e instanceof Error||e.message)?e:new Error(e))}))}function u(e,t,n){try{e(t,n)}catch(e){(0,i.default)((e=>{throw e}),e)}}e.exports=t.default},358:e=>{"use strict";function t(e,t){r(e,t),n(e)}function n(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function r(e,t){e.emit("error",t)}e.exports={destroy:function(e,i){var o=this,s=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return s||a?(i?i(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(r,this,e)):process.nextTick(r,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!i&&e?o._writableState?o._writableState.errorEmitted?process.nextTick(n,o):(o._writableState.errorEmitted=!0,process.nextTick(t,o,e)):process.nextTick(t,o,e):i?(process.nextTick(n,o),i(e)):process.nextTick(n,o)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}}},504:(e,t,n)=>{"use strict";const r=n(857),i=n(8521),o=n(7918)("winston:exception"),s=n(7347),a=n(5031),u=n(5238);e.exports=class{constructor(e){if(!e)throw new Error("Logger is required to handle exceptions");this.logger=e,this.handlers=new Map}handle(...e){e.forEach((e=>{if(Array.isArray(e))return e.forEach((e=>this._addHandler(e)));this._addHandler(e)})),this.catcher||(this.catcher=this._uncaughtException.bind(this),process.on("uncaughtException",this.catcher))}unhandle(){this.catcher&&(process.removeListener("uncaughtException",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach((e=>this.logger.unpipe(e))))}getAllInfo(e){let t=null;return e&&(t="string"==typeof e?e:e.message),{error:e,level:"error",message:[`uncaughtException: ${t||"(no error message)"}`,e&&e.stack||" No stack trace"].join("\n"),stack:e&&e.stack,exception:!0,date:(new Date).toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}getProcessInfo(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}getOsInfo(){return{loadavg:r.loadavg(),uptime:r.uptime()}}getTrace(e){return(e?a.parse(e):a.get()).map((e=>({column:e.getColumnNumber(),file:e.getFileName(),function:e.getFunctionName(),line:e.getLineNumber(),method:e.getMethodName(),native:e.isNative()})))}_addHandler(e){if(!this.handlers.has(e)){e.handleExceptions=!0;const t=new u(e);this.handlers.set(e,t),this.logger.pipe(t)}}_uncaughtException(e){const t=this.getAllInfo(e),n=this._getExceptionHandlers();let r,a="function"==typeof this.logger.exitOnError?this.logger.exitOnError(e):this.logger.exitOnError;function u(){o("doExit",a),o("process._exiting",process._exiting),a&&!process._exiting&&(r&&clearTimeout(r),process.exit(1))}if(!n.length&&a&&(console.warn("winston: exitOnError cannot be true with no exception handlers."),console.warn("winston: not exiting process."),a=!1),!n||0===n.length)return process.nextTick(u);i(n,((e,t)=>{const n=s(t),r=e.transport||e;function i(e){return()=>{o(e),n()}}r._ending=!0,r.once("finish",i("finished")),r.once("error",i("error"))}),(()=>a&&u())),this.logger.log(t),a&&(r=setTimeout(u,3e3))}_getExceptionHandlers(){return this.logger.transports.filter((e=>(e.transport||e).handleExceptions))}}},555:(e,t,n)=>{"use strict";const r=n(2711),{warn:i}=n(2159);t.version=n(6256).version,t.transports=n(3475),t.config=n(4575),t.addColors=r.levels,t.format=r.format,t.createLogger=n(2751),t.Logger=n(8010),t.ExceptionHandler=n(504),t.RejectionHandler=n(2134),t.Container=n(7083),t.Transport=n(3623),t.loggers=new t.Container;const o=t.createLogger();Object.keys(t.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach((e=>t[e]=(...t)=>o[e](...t))),Object.defineProperty(t,"level",{get:()=>o.level,set(e){o.level=e}}),Object.defineProperty(t,"exceptions",{get:()=>o.exceptions}),Object.defineProperty(t,"rejections",{get:()=>o.rejections}),["exitOnError"].forEach((e=>{Object.defineProperty(t,e,{get:()=>o[e],set(t){o[e]=t}})})),Object.defineProperty(t,"default",{get:()=>({exceptionHandlers:o.exceptionHandlers,rejectionHandlers:o.rejectionHandlers,transports:o.transports})}),i.deprecated(t,"setLevels"),i.forFunctions(t,"useFormat",["cli"]),i.forProperties(t,"useFormat",["padLevels","stripColors"]),i.forFunctions(t,"deprecated",["addRewriter","addFilter","clone","extend"]),i.forProperties(t,"deprecated",["emitErrs","levelLength"])},589:(e,t)=>{"use strict";t.levels={emerg:0,alert:1,crit:2,error:3,warning:4,notice:5,info:6,debug:7},t.colors={emerg:"red",alert:"yellow",crit:"red",error:"red",warning:"red",notice:"yellow",info:"green",debug:"blue"}},618:(e,t)=>{"use strict";t.iT=void 0;class n{constructor(e){this.state=e,this.c=0,this.result={value:null,done:!1}}[Symbol.iterator](){return this}next(){const{state:e,result:t}=this;if(this.c>1)return t.done=!0,t.value=void 0,t;const n=function(e,t){const{b:n,eq:r,stack_base:i}=e;let{i:o,N:s,j:a,M:u,Z:c,stack_top:l}=e;for(;;)switch(t){case 0:e:for(;s>0&&u>0;){n.fill(0,0,2*c);const e=s-u,t=s+u,h=1&t,d=o+s-1,f=a+u-1,p=(t+h)/2;let g;t:for(let t=0;t<=p;t++){const p=2*Math.max(0,t-u)-t,v=t-2*Math.max(0,t-s);for(let d=p;d<=v;d+=2){const f=n[d-1-c*Math.floor((d-1)/c)],p=n[d+1-c*Math.floor((d+1)/c)],v=d===-t||d!==t&&f<p?p:f+1,m=v-d;let y=v,b=m;for(;y<s&&b<u&&r(o+y,a+b);)y++,b++;if(n[d-c*Math.floor(d/c)]=y,1===h&&(g=e-d)>=1-t&&g<t&&y+n[c+g-c*Math.floor(g/c)]>=s){if(t>1||y!==v){i[l++]=o+y,i[l++]=s-y,i[l++]=a+b,i[l++]=u-b,s=v,u=m,c=2*(Math.min(s,u)+1);continue e}break t}}for(let m=p;m<=v;m+=2){const p=n[c+m-1-c*Math.floor((m-1)/c)],v=n[c+m+1-c*Math.floor((m+1)/c)],y=m===-t||m!==t&&p<v?v:p+1,b=y-m;let w=y,_=b;for(;w<s&&_<u&&r(d-w,f-_);)w++,_++;if(n[c+m-c*Math.floor(m/c)]=w,0===h&&(g=e-m)>=-t&&g<=t&&w+n[g-c*Math.floor(g/c)]>=s){if(t>0||w!==y){i[l++]=o+s-y,i[l++]=y,i[l++]=a+u-b,i[l++]=b,s-=w,u-=_,c=2*(Math.min(s,u)+1);continue e}break t}}}if(s!==u){u>s?(o+=s,a+=s,u-=s,s=0):(o+=u,a+=u,s-=u,u=0);break}}if(s+u!==0)if(e.pxe===o||e.pye===a)e.pxe=o+s,e.pye=a+u;else{const t=e.pxs;if(e.oxs=e.pxs,e.oxe=e.pxe,e.oys=e.pys,e.oye=e.pye,e.pxs=o,e.pxe=o+s,e.pys=a,e.pye=a+u,t>=0)return e.i=o,e.N=s,e.j=a,e.M=u,e.Z=c,e.stack_top=l,1}case 1:if(0===l)return 2;u=i[--l],a=i[--l],s=i[--l],o=i[--l],c=2*(Math.min(s,u)+1),t=0}}(e,this.c);return this.c=n,1===n?(t.value=[e.oxs,e.oxe,e.oys,e.oye],t):e.pxs>=0?(t.value=[e.pxs,e.pxe,e.pys,e.pye],t):(t.done=!0,t.value=void 0,t)}}function r(e,t,r){let[i,o,s]=[0,e.length,t.length];if("function"==typeof r){for(;i<o&&i<s&&r(i,i);)i++;if(i===o&&i===s)return[][Symbol.iterator]();for(;r(--o,--s)&&o>i&&s>i;);}else{for(;i<o&&i<s&&e[i]===t[i];)i++;if(i===o&&i===s)return[][Symbol.iterator]();for(;e[--o]===t[--s]&&o>i&&s>i;);r=(n,r)=>e[n]===t[r]}return function(e,t,r,i,o){const s=2*(Math.min(t,i)+1),a=t+i,u=new(a<256?Uint8Array:a<65536?Uint16Array:Uint32Array)(2*s);return new n({i:e,N:t,j:r,M:i,Z:s,b:u,eq:o,pxs:-1,pxe:-1,pys:-1,pye:-1,oxs:-1,oxe:-1,oys:-1,oye:-1,stack_top:0,stack_base:[]})}(i,o+1-i,i,s+1-i,r)}Symbol.iterator;t.iT=function*(e,t,n){const i=ArrayBuffer.isView(e)?Uint8Array.prototype.subarray:e.slice;for(const o of r(e,t,n))o[2]=i.call(t,o[2],o[3]),yield o}},795:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(...t){var n=t.pop();return e.call(this,t,n)}},e.exports=t.default},811:e=>{e.exports=function(e){var t=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(n,r,i){return" "===n?n:e[t[Math.round(Math.random()*(t.length-2))]](n)}}},857:e=>{"use strict";e.exports=require("os")},929:(e,t,n)=>{"use strict";const r=n(5532),{MESSAGE:i}=n(4763),o=n(2068);e.exports=r((e=>{const t=o(Object.assign({},e,{level:void 0,message:void 0,splat:void 0})),n=e.padding&&e.padding[e.level]||"";return e[i]="{}"!==t?`${e.level}:${n} ${e.message} ${t}`:`${e.level}:${n} ${e.message}`,e}))},963:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e[Symbol.iterator]&&e[Symbol.iterator]()},e.exports=t.default},1019:(e,t,n)=>{"use strict";n.d(t,{$:()=>a});var r=n(1398),i=n(2640),o=n(2298);const s="win32"===process.platform,a=new class{constructor(){this.disposables=[],this.root=i.Gv,this.requireRestartConfigs=["highlightGroups.highlights","neovimClean","NVIM_APPNAME","logOutputToConsole","neovimWidth","useWSL","wslDistribution","neovimInitVimPaths.darwin","neovimInitVimPaths.linux","neovimInitVimPaths.win32","neovimExecutablePaths.darwin","neovimExecutablePaths.linux","neovimExecutablePaths.win32","afterInitConfig"].map((e=>`${this.root}.${e}`))}dispose(){(0,o.v3)(this.disposables)}init(){this.onConfigurationChanged(),r.workspace.onDidChangeConfiguration(this.onConfigurationChanged,this,this.disposables)}onConfigurationChanged(e){this.cfg=r.workspace.getConfiguration(this.root),o.CJ.set("neovim.editorLangIdExclusions",this.editorLangIdExclusions);const t=this.ctrlKeysNormalMode,n=this.ctrlKeysInsertMode;if(i.Dz.forEach((e=>{o.CJ.set(`neovim.ctrlKeysNormal.${e}`,t.includes(e)),o.CJ.set(`neovim.ctrlKeysInsert.${e}`,n.includes(e))})),!e)return;const s=this.requireRestartConfigs.find((t=>e.affectsConfiguration(t)));s&&r.window.showInformationMessage(`Changing "${s}" requires restart to take effect.`,"Restart").then((e=>{"Restart"===e&&r.commands.executeCommand("vscode-neovim.restart")}))}getSystemSpecificSetting(e){let t=process.platform;return t=this.useWsl&&"win32"===t?"linux":t,this.cfg.get(`${e}.${t}`)}getNeovimPath(){var e;return null!==(e=this.getSystemSpecificSetting("neovimExecutablePaths"))&&void 0!==e?e:"nvim"}getNeovimInitPath(){return this.getSystemSpecificSetting("neovimInitVimPaths")}get highlights(){return this.cfg.get("highlightGroups.highlights")}get ctrlKeysNormalMode(){return this.cfg.get("ctrlKeysForNormalMode")}get ctrlKeysInsertMode(){return this.cfg.get("ctrlKeysForInsertMode")}get editorLangIdExclusions(){return this.cfg.get("editorLangIdExclusions")}get useWsl(){return r.extensions.getExtension(i.sp).extensionKind!==r.ExtensionKind.Workspace&&s&&this.cfg.get("useWSL",!1)}get wslDistribution(){return this.cfg.get("wslDistribution","")}get revealCursorScrollLine(){return this.cfg.get("revealCursorScrollLine",!1)}get neovimWidth(){return this.cfg.get("neovimWidth",1e3)}get neovimViewportWidth(){return this.neovimWidth}get neovimViewportHeightExtend(){return this.cfg.get("neovimViewportHeightExtend",1)}get neovimPath(){return this.getNeovimPath()}get neovimInitPath(){var e;return null!==(e=this.getNeovimInitPath())&&void 0!==e?e:""}get clean(){return this.cfg.get("neovimClean",!1)}get NVIM_APPNAME(){return this.cfg.get("NVIM_APPNAME","")}get logPath(){return this.cfg.get("logPath","")}get outputToConsole(){return this.cfg.get("logOutputToConsole",!1)}get statusLineSeparator(){return this.cfg.get("statusLineSeparator","|")}get normalSelectionDebounceTime(){return this.cfg.get("normalSelectionDebounceTime",50)}get mouseSelectionDebounceTime(){return this.cfg.get("mouseSelectionDebounceTime",100)}get disableMouseSelection(){return 0===this.mouseSelectionDebounceTime}get compositeTimeout(){return this.cfg.get("compositeTimeout",300)}get compositeKeys(){return this.cfg.get("compositeKeys",{})}get autoGeneratedDocumentSchemes(){return this.cfg.get("autoGeneratedDocumentSchemes",[])}}},1049:(e,t,n)=>{"use strict";const r=n(5532),{MESSAGE:i}=n(4763),o=n(2068);function s(e,t){return"bigint"==typeof t?t.toString():t}e.exports=r(((e,t)=>{const n=o.configure(t);return e[i]=n(e,t.replacer||s,t.space),e}))},1136:(e,t,n)=>{"use strict";const r=n(9023),{LEVEL:i}=n(4763),o=n(8056),s=e.exports=function(e={}){if(o.call(this,e),!e.transport||"function"!=typeof e.transport.log)throw new Error("Invalid transport, must be an object with a log method.");this.transport=e.transport,this.level=this.level||e.transport.level,this.handleExceptions=this.handleExceptions||e.transport.handleExceptions,this._deprecated(),this.transport.__winstonError||(this.transport.__winstonError=function(e){this.emit("error",e,this.transport)}.bind(this),this.transport.on("error",this.transport.__winstonError))};r.inherits(s,o),s.prototype._write=function(e,t,n){if(this.silent||!0===e.exception&&!this.handleExceptions)return n(null);(!this.level||this.levels[this.level]>=this.levels[e[i]])&&this.transport.log(e[i],e.message,e,this._nop),n(null)},s.prototype._writev=function(e,t){for(let t=0;t<e.length;t++)this._accept(e[t])&&(this.transport.log(e[t].chunk[i],e[t].chunk.message,e[t].chunk,this._nop),e[t].callback());return t(null)},s.prototype._deprecated=function(){console.error([`${this.transport.name} is a legacy winston transport. Consider upgrading: `,"- Upgrade docs: https://github.com/winstonjs/winston/blob/master/UPGRADE-3.0.md"].join("\n"))},s.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)}},1232:e=>{"use strict";const t=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;t.writable=e=>t(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,t.readable=e=>t(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,t.duplex=e=>t.writable(e)&&t.readable(e),t.transform=e=>t.duplex(e)&&"function"==typeof e._transform,e.exports=t},1377:(e,t,n)=>{"use strict";n.d(t,{h:()=>l,vF:()=>c});var r=n(9896),i=n.n(r),o=n(9023),s=n(1398),a=n(2298),u=n(2640);const c=new class{constructor(){this.disposables=[],this.loggers=new Map}init(e,t=!1){this.outputChannel=s.window.createOutputChannel(`${u.Gv} logs`,{log:!0}),this.disposables.push(this.outputChannel,this.outputChannel.onDidChangeLogLevel((e=>this.onLogLevelChanged(e)))),this.level=this.outputChannel.logLevel,this.logToConsole=t,this.filePath=e,this.setupLogFile()}dispose(){(0,a.v3)(this.disposables)}onLogLevelChanged(e){this.level=e,this.setupLogFile()}setupLogFile(){if(this.filePath){if(this.level===s.LogLevel.Off||!this.fd){if(this.level===s.LogLevel.Off&&this.fd)return i().closeSync(this.fd),void(this.fd=void 0);try{this.fd=i().openSync(this.filePath,"w")}catch(e){return void s.window.showErrorMessage(`Can not open log file at ${this.filePath}: ${e}`)}this.disposables.push({dispose:()=>{this.fd&&i().closeSync(this.fd)}})}}else this.fd&&(i().closeSync(this.fd),this.fd=void 0)}log(e,t,n,r){var a,u;const c=r.reduce(((e,t,n)=>{if("object"==typeof t)try{t=(0,o.inspect)(t,!1,2,!1)}catch(e){}return e+(n>0?" ":"")+t}),"");if(this.fd||this.logToConsole){const n=`${(new Date).toISOString()} ${t}: ${c}`;this.fd&&i().appendFileSync(this.fd,n+"\n"),this.logToConsole&&console[e===s.LogLevel.Error?"error":"log"](n)}const l=null===(a=s.window.activeTextEditor)||void 0===a?void 0:a.document,h="output"===(null==l?void 0:l.uri.scheme)||(null===(u=null==l?void 0:l.fileName)||void 0===u?void 0:u.startsWith("output:"));if(n&&this.outputChannel&&l&&!h){const n=`${t}: ${c}`;switch(e){case s.LogLevel.Error:this.outputChannel.error(n);break;case s.LogLevel.Warning:this.outputChannel.warn(n);break;case s.LogLevel.Info:this.outputChannel.info(n);break;case s.LogLevel.Debug:this.outputChannel.debug(n);break;case s.LogLevel.Trace:this.outputChannel.trace(n);case s.LogLevel.Off:}}e===s.LogLevel.Error&&s.window.showErrorMessage(c)}createLogger(e,t){const n=this.loggers.has(e)?this.loggers.get(e):{trace:(...n)=>{this.level<=s.LogLevel.Trace&&this.log(s.LogLevel.Trace,e,t,n)},debug:(...n)=>{this.level<=s.LogLevel.Debug&&this.log(s.LogLevel.Debug,e,t,n)},info:(...n)=>{this.level<=s.LogLevel.Info&&this.log(s.LogLevel.Info,e,t,n)},warn:(...n)=>{this.level<=s.LogLevel.Warning&&this.log(s.LogLevel.Warning,e,t,n)},error:(...n)=>{this.level<=s.LogLevel.Error&&this.log(s.LogLevel.Error,e,t,n)},log(e,t,...r){if(e&&"output"!==e.scheme&&!e.toString().startsWith("output:")&&!/[/\\]output:[^/\\]+$/i.test(e.path))switch(t){case s.LogLevel.Error:n.error(...r);break;case s.LogLevel.Warning:n.warn(...r);break;case s.LogLevel.Info:n.info(...r);break;case s.LogLevel.Debug:n.debug(...r);break;case s.LogLevel.Trace:n.trace(...r);case s.LogLevel.Off:}}};return this.loggers.set(e,n),n}};function l(e="Neovim",t=!0){return c.createLogger(e,t)}},1398:e=>{"use strict";e.exports=require("vscode")},1421:e=>{"use strict";e.exports=require("node:child_process")},1588:e=>{e.exports=function(e){var t=["red","yellow","green","blue","magenta"];return function(n,r,i){return" "===n?n:e[t[r++%t.length]](n)}}},1716:function(e,t,n){"use strict";var r,i,o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.Buffer=t.ATTACH=t.DETACH=void 0;const s=n(9691),a=n(7905);t.DETACH=Symbol("detachBuffer"),t.ATTACH=Symbol("attachBuffer");class u extends s.BaseApi{constructor(){super(...arguments),this.prefix=a.Metadata[a.ExtType.Buffer].prefix,this[r]=(...e)=>o(this,[...e],void 0,(function*(e=!1,t={}){return!!this.client.isAttached(this)||this.request(`${this.prefix}attach`,[this,e,t])})),this[i]=()=>this.request(`${this.prefix}detach`,[this])}get isAttached(){return this.client.isAttached(this)}get id(){return this.data}get length(){return this.request(`${this.prefix}line_count`,[this])}get lines(){return this.getLines()}get changedtick(){return this.request(`${this.prefix}get_changedtick`,[this])}get commands(){return this.getCommands()}getCommands(e={}){return this.request(`${this.prefix}get_commands`,[this,e])}getLines({start:e,end:t,strictIndexing:n}={start:0,end:-1,strictIndexing:!0}){const r=void 0===n||n;return this.request(`${this.prefix}get_lines`,[this,e,t,r])}setLines(e,{start:t,end:n,strictIndexing:r}={strictIndexing:!0}){if(void 0===t||void 0===n)throw new Error("start and end are required");const i=void 0===r||r,o="string"==typeof e?[e]:e,s=void 0!==n?n:t+1;return this.request(`${this.prefix}set_lines`,[this,t,s,i,o])}insert(e,t){return this.setLines(e,{start:t,end:t,strictIndexing:!0})}replace(e,t){const n="string"==typeof e?[e]:e;return this.setLines(n,{start:t,end:t+n.length,strictIndexing:!1})}remove(e,t,n){return this.setLines([],{start:e,end:t,strictIndexing:n})}append(e){return this.setLines(e,{start:-1,end:-1,strictIndexing:!1})}get name(){return this.request(`${this.prefix}get_name`,[this])}set name(e){this.request(`${this.prefix}set_name`,[this,e])}get valid(){return this.request(`${this.prefix}is_valid`,[this])}mark(e){return this.request(`${this.prefix}get_mark`,[this,e])}getKeymap(e){return this.request(`${this.prefix}get_keymap`,[this,e])}get loaded(){return this.request(`${this.prefix}is_loaded`,[this])}getOffset(e){return this.request(`${this.prefix}get_offset`,[this,e])}addHighlight({hlGroup:e,line:t,colStart:n,colEnd:r,srcId:i}){const o=void 0!==e?e:"",s=void 0!==r?r:-1,a=void 0!==n?n:-0,u=void 0!==i?i:-1;return this.request(`${this.prefix}add_highlight`,[this,u,o,t,a,s])}clearHighlight(e={}){console.warn("`clearHighlight` is deprecated, use ``clearNamespace()` instead");const{srcId:t,lineStart:n,lineEnd:r}=Object.assign(Object.assign({},{srcId:-1,lineStart:0,lineEnd:-1}),e);return this.request(`${this.prefix}clear_highlight`,[this,t,n,r])}clearNamespace(e){const{nsId:t,lineStart:n,lineEnd:r}=Object.assign(Object.assign({},{nsId:-1,lineStart:0,lineEnd:-1}),e);this.request(`${this.prefix}clear_namespace`,[this,t,n,r])}setVirtualText(e,t,n,r={}){return this.request(`${this.prefix}set_virtual_text`,[this,e,t,n,r])}listen(e,n){return this.isAttached||this[t.ATTACH]().then((t=>{t||this.unlisten(e,n)})),this.client.attachBuffer(this,e,n),()=>{this.unlisten(e,n)}}unlisten(e,n){this.isAttached&&this.client.detachBuffer(this,e,n)&&this[t.DETACH]()}}t.Buffer=u,r=t.ATTACH,i=t.DETACH},1814:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(...t){if(null===e)throw new Error("Callback was already called.");var n=e;e=null,n.apply(this,t)}},e.exports=t.default},1863:function(e,t,n){"use strict";const r=n(5532),i=n(6585);e.exports=r((e=>{const t=+new Date;return this.diff=t-(this.prevTime||t),this.prevTime=t,e.ms=`+${i(this.diff)}`,e}))},1911:(e,t,n)=>{"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e,t,n){return(t=a(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function a(e){var t=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}var u=n(181).Buffer,c=n(9023).inspect,l=c&&c.custom||"inspect";e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,n;return t=e,(n=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return u.alloc(0);for(var t,n,r,i=u.allocUnsafe(e>>>0),o=this.head,s=0;o;)t=o.data,n=i,r=s,u.prototype.copy.call(t,n,r),s+=o.data.length,o=o.next;return i}},{key:"consume",value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,n=1,r=t.data;for(e-=r.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?r+=i:r+=i.slice(0,e),0==(e-=o)){o===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=u.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(o));break}++r}return this.length-=r,t}},{key:l,value:function(e,t){return c(this,i(i({},t),{},{depth:0,customInspect:!1}))}}])&&s(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()},1928:(e,t,n)=>{"use strict";function r(e,t){if(0===t||!e)return 0;let n=0,r=0;for(;n<t;){const t=o(e.codePointAt(n));if(r+=t,n+=4===t?2:1,n>=e.length)return r}return r}function i(e,t){let n=0,r=0;for(;n<t;){if(r>=e.length)return r+(t-n);const i=o(e.codePointAt(r));n+=i,r+=4===i?2:1}return r}function o(e){return null==e?0:e<=127?1:e<=2047?2:e>=55296&&e<=57343?4:e<65535?3:4}function s(e,t=!0){let n=e.replace(/</g,"<LT>");return t&&(n=n.replace(/\n/g,"<CR>")),n}n.d(t,{$V:()=>r,LH:()=>s,Z6:()=>i})},2017:(e,t,n)=>{try{var r=n(9023);if("function"!=typeof r.inherits)throw"";e.exports=r.inherits}catch(t){e.exports=n(6698)}},2052:e=>{e.exports&&(e.exports=function(){var e=3,t=4,n=12,r=13,i=16,o=17;function s(e,t){void 0===t&&(t=0);var n=e.charCodeAt(t);if(55296<=n&&n<=56319&&t<e.length-1){var r=n;return 56320<=(i=e.charCodeAt(t+1))&&i<=57343?1024*(r-55296)+(i-56320)+65536:r}if(56320<=n&&n<=57343&&t>=1){var i=n;return 55296<=(r=e.charCodeAt(t-1))&&r<=56319?1024*(r-55296)+(i-56320)+65536:i}return n}function a(s,a,u){var c=[s].concat(a).concat([u]),l=c[c.length-2],h=u,d=c.lastIndexOf(14);if(d>1&&c.slice(1,d).every((function(t){return t==e}))&&-1==[e,r,o].indexOf(s))return 2;var f=c.lastIndexOf(t);if(f>0&&c.slice(1,f).every((function(e){return e==t}))&&-1==[n,t].indexOf(l))return c.filter((function(e){return e==t})).length%2==1?3:4;if(0==l&&1==h)return 0;if(2==l||0==l||1==l)return 14==h&&a.every((function(t){return t==e}))?2:1;if(2==h||0==h||1==h)return 1;if(6==l&&(6==h||7==h||9==h||10==h))return 0;if(!(9!=l&&7!=l||7!=h&&8!=h))return 0;if((10==l||8==l)&&8==h)return 0;if(h==e||15==h)return 0;if(5==h)return 0;if(l==n)return 0;var p=-1!=c.indexOf(e)?c.lastIndexOf(e)-1:c.length-2;return-1!=[r,o].indexOf(c[p])&&c.slice(p+1,-1).every((function(t){return t==e}))&&14==h||15==l&&-1!=[i,o].indexOf(h)?0:-1!=a.indexOf(t)?2:l==t&&h==t?0:1}function u(s){return 1536<=s&&s<=1541||1757==s||1807==s||2274==s||3406==s||69821==s||70082<=s&&s<=70083||72250==s||72326<=s&&s<=72329||73030==s?n:13==s?0:10==s?1:0<=s&&s<=9||11<=s&&s<=12||14<=s&&s<=31||127<=s&&s<=159||173==s||1564==s||6158==s||8203==s||8206<=s&&s<=8207||8232==s||8233==s||8234<=s&&s<=8238||8288<=s&&s<=8292||8293==s||8294<=s&&s<=8303||55296<=s&&s<=57343||65279==s||65520<=s&&s<=65528||65529<=s&&s<=65531||113824<=s&&s<=113827||119155<=s&&s<=119162||917504==s||917505==s||917506<=s&&s<=917535||917632<=s&&s<=917759||918e3<=s&&s<=921599?2:768<=s&&s<=879||1155<=s&&s<=1159||1160<=s&&s<=1161||1425<=s&&s<=1469||1471==s||1473<=s&&s<=1474||1476<=s&&s<=1477||1479==s||1552<=s&&s<=1562||1611<=s&&s<=1631||1648==s||1750<=s&&s<=1756||1759<=s&&s<=1764||1767<=s&&s<=1768||1770<=s&&s<=1773||1809==s||1840<=s&&s<=1866||1958<=s&&s<=1968||2027<=s&&s<=2035||2070<=s&&s<=2073||2075<=s&&s<=2083||2085<=s&&s<=2087||2089<=s&&s<=2093||2137<=s&&s<=2139||2260<=s&&s<=2273||2275<=s&&s<=2306||2362==s||2364==s||2369<=s&&s<=2376||2381==s||2385<=s&&s<=2391||2402<=s&&s<=2403||2433==s||2492==s||2494==s||2497<=s&&s<=2500||2509==s||2519==s||2530<=s&&s<=2531||2561<=s&&s<=2562||2620==s||2625<=s&&s<=2626||2631<=s&&s<=2632||2635<=s&&s<=2637||2641==s||2672<=s&&s<=2673||2677==s||2689<=s&&s<=2690||2748==s||2753<=s&&s<=2757||2759<=s&&s<=2760||2765==s||2786<=s&&s<=2787||2810<=s&&s<=2815||2817==s||2876==s||2878==s||2879==s||2881<=s&&s<=2884||2893==s||2902==s||2903==s||2914<=s&&s<=2915||2946==s||3006==s||3008==s||3021==s||3031==s||3072==s||3134<=s&&s<=3136||3142<=s&&s<=3144||3146<=s&&s<=3149||3157<=s&&s<=3158||3170<=s&&s<=3171||3201==s||3260==s||3263==s||3266==s||3270==s||3276<=s&&s<=3277||3285<=s&&s<=3286||3298<=s&&s<=3299||3328<=s&&s<=3329||3387<=s&&s<=3388||3390==s||3393<=s&&s<=3396||3405==s||3415==s||3426<=s&&s<=3427||3530==s||3535==s||3538<=s&&s<=3540||3542==s||3551==s||3633==s||3636<=s&&s<=3642||3655<=s&&s<=3662||3761==s||3764<=s&&s<=3769||3771<=s&&s<=3772||3784<=s&&s<=3789||3864<=s&&s<=3865||3893==s||3895==s||3897==s||3953<=s&&s<=3966||3968<=s&&s<=3972||3974<=s&&s<=3975||3981<=s&&s<=3991||3993<=s&&s<=4028||4038==s||4141<=s&&s<=4144||4146<=s&&s<=4151||4153<=s&&s<=4154||4157<=s&&s<=4158||4184<=s&&s<=4185||4190<=s&&s<=4192||4209<=s&&s<=4212||4226==s||4229<=s&&s<=4230||4237==s||4253==s||4957<=s&&s<=4959||5906<=s&&s<=5908||5938<=s&&s<=5940||5970<=s&&s<=5971||6002<=s&&s<=6003||6068<=s&&s<=6069||6071<=s&&s<=6077||6086==s||6089<=s&&s<=6099||6109==s||6155<=s&&s<=6157||6277<=s&&s<=6278||6313==s||6432<=s&&s<=6434||6439<=s&&s<=6440||6450==s||6457<=s&&s<=6459||6679<=s&&s<=6680||6683==s||6742==s||6744<=s&&s<=6750||6752==s||6754==s||6757<=s&&s<=6764||6771<=s&&s<=6780||6783==s||6832<=s&&s<=6845||6846==s||6912<=s&&s<=6915||6964==s||6966<=s&&s<=6970||6972==s||6978==s||7019<=s&&s<=7027||7040<=s&&s<=7041||7074<=s&&s<=7077||7080<=s&&s<=7081||7083<=s&&s<=7085||7142==s||7144<=s&&s<=7145||7149==s||7151<=s&&s<=7153||7212<=s&&s<=7219||7222<=s&&s<=7223||7376<=s&&s<=7378||7380<=s&&s<=7392||7394<=s&&s<=7400||7405==s||7412==s||7416<=s&&s<=7417||7616<=s&&s<=7673||7675<=s&&s<=7679||8204==s||8400<=s&&s<=8412||8413<=s&&s<=8416||8417==s||8418<=s&&s<=8420||8421<=s&&s<=8432||11503<=s&&s<=11505||11647==s||11744<=s&&s<=11775||12330<=s&&s<=12333||12334<=s&&s<=12335||12441<=s&&s<=12442||42607==s||42608<=s&&s<=42610||42612<=s&&s<=42621||42654<=s&&s<=42655||42736<=s&&s<=42737||43010==s||43014==s||43019==s||43045<=s&&s<=43046||43204<=s&&s<=43205||43232<=s&&s<=43249||43302<=s&&s<=43309||43335<=s&&s<=43345||43392<=s&&s<=43394||43443==s||43446<=s&&s<=43449||43452==s||43493==s||43561<=s&&s<=43566||43569<=s&&s<=43570||43573<=s&&s<=43574||43587==s||43596==s||43644==s||43696==s||43698<=s&&s<=43700||43703<=s&&s<=43704||43710<=s&&s<=43711||43713==s||43756<=s&&s<=43757||43766==s||44005==s||44008==s||44013==s||64286==s||65024<=s&&s<=65039||65056<=s&&s<=65071||65438<=s&&s<=65439||66045==s||66272==s||66422<=s&&s<=66426||68097<=s&&s<=68099||68101<=s&&s<=68102||68108<=s&&s<=68111||68152<=s&&s<=68154||68159==s||68325<=s&&s<=68326||69633==s||69688<=s&&s<=69702||69759<=s&&s<=69761||69811<=s&&s<=69814||69817<=s&&s<=69818||69888<=s&&s<=69890||69927<=s&&s<=69931||69933<=s&&s<=69940||70003==s||70016<=s&&s<=70017||70070<=s&&s<=70078||70090<=s&&s<=70092||70191<=s&&s<=70193||70196==s||70198<=s&&s<=70199||70206==s||70367==s||70371<=s&&s<=70378||70400<=s&&s<=70401||70460==s||70462==s||70464==s||70487==s||70502<=s&&s<=70508||70512<=s&&s<=70516||70712<=s&&s<=70719||70722<=s&&s<=70724||70726==s||70832==s||70835<=s&&s<=70840||70842==s||70845==s||70847<=s&&s<=70848||70850<=s&&s<=70851||71087==s||71090<=s&&s<=71093||71100<=s&&s<=71101||71103<=s&&s<=71104||71132<=s&&s<=71133||71219<=s&&s<=71226||71229==s||71231<=s&&s<=71232||71339==s||71341==s||71344<=s&&s<=71349||71351==s||71453<=s&&s<=71455||71458<=s&&s<=71461||71463<=s&&s<=71467||72193<=s&&s<=72198||72201<=s&&s<=72202||72243<=s&&s<=72248||72251<=s&&s<=72254||72263==s||72273<=s&&s<=72278||72281<=s&&s<=72283||72330<=s&&s<=72342||72344<=s&&s<=72345||72752<=s&&s<=72758||72760<=s&&s<=72765||72767==s||72850<=s&&s<=72871||72874<=s&&s<=72880||72882<=s&&s<=72883||72885<=s&&s<=72886||73009<=s&&s<=73014||73018==s||73020<=s&&s<=73021||73023<=s&&s<=73029||73031==s||92912<=s&&s<=92916||92976<=s&&s<=92982||94095<=s&&s<=94098||113821<=s&&s<=113822||119141==s||119143<=s&&s<=119145||119150<=s&&s<=119154||119163<=s&&s<=119170||119173<=s&&s<=119179||119210<=s&&s<=119213||119362<=s&&s<=119364||121344<=s&&s<=121398||121403<=s&&s<=121452||121461==s||121476==s||121499<=s&&s<=121503||121505<=s&&s<=121519||122880<=s&&s<=122886||122888<=s&&s<=122904||122907<=s&&s<=122913||122915<=s&&s<=122916||122918<=s&&s<=122922||125136<=s&&s<=125142||125252<=s&&s<=125258||917536<=s&&s<=917631||917760<=s&&s<=917999?e:127462<=s&&s<=127487?t:2307==s||2363==s||2366<=s&&s<=2368||2377<=s&&s<=2380||2382<=s&&s<=2383||2434<=s&&s<=2435||2495<=s&&s<=2496||2503<=s&&s<=2504||2507<=s&&s<=2508||2563==s||2622<=s&&s<=2624||2691==s||2750<=s&&s<=2752||2761==s||2763<=s&&s<=2764||2818<=s&&s<=2819||2880==s||2887<=s&&s<=2888||2891<=s&&s<=2892||3007==s||3009<=s&&s<=3010||3014<=s&&s<=3016||3018<=s&&s<=3020||3073<=s&&s<=3075||3137<=s&&s<=3140||3202<=s&&s<=3203||3262==s||3264<=s&&s<=3265||3267<=s&&s<=3268||3271<=s&&s<=3272||3274<=s&&s<=3275||3330<=s&&s<=3331||3391<=s&&s<=3392||3398<=s&&s<=3400||3402<=s&&s<=3404||3458<=s&&s<=3459||3536<=s&&s<=3537||3544<=s&&s<=3550||3570<=s&&s<=3571||3635==s||3763==s||3902<=s&&s<=3903||3967==s||4145==s||4155<=s&&s<=4156||4182<=s&&s<=4183||4228==s||6070==s||6078<=s&&s<=6085||6087<=s&&s<=6088||6435<=s&&s<=6438||6441<=s&&s<=6443||6448<=s&&s<=6449||6451<=s&&s<=6456||6681<=s&&s<=6682||6741==s||6743==s||6765<=s&&s<=6770||6916==s||6965==s||6971==s||6973<=s&&s<=6977||6979<=s&&s<=6980||7042==s||7073==s||7078<=s&&s<=7079||7082==s||7143==s||7146<=s&&s<=7148||7150==s||7154<=s&&s<=7155||7204<=s&&s<=7211||7220<=s&&s<=7221||7393==s||7410<=s&&s<=7411||7415==s||43043<=s&&s<=43044||43047==s||43136<=s&&s<=43137||43188<=s&&s<=43203||43346<=s&&s<=43347||43395==s||43444<=s&&s<=43445||43450<=s&&s<=43451||43453<=s&&s<=43456||43567<=s&&s<=43568||43571<=s&&s<=43572||43597==s||43755==s||43758<=s&&s<=43759||43765==s||44003<=s&&s<=44004||44006<=s&&s<=44007||44009<=s&&s<=44010||44012==s||69632==s||69634==s||69762==s||69808<=s&&s<=69810||69815<=s&&s<=69816||69932==s||70018==s||70067<=s&&s<=70069||70079<=s&&s<=70080||70188<=s&&s<=70190||70194<=s&&s<=70195||70197==s||70368<=s&&s<=70370||70402<=s&&s<=70403||70463==s||70465<=s&&s<=70468||70471<=s&&s<=70472||70475<=s&&s<=70477||70498<=s&&s<=70499||70709<=s&&s<=70711||70720<=s&&s<=70721||70725==s||70833<=s&&s<=70834||70841==s||70843<=s&&s<=70844||70846==s||70849==s||71088<=s&&s<=71089||71096<=s&&s<=71099||71102==s||71216<=s&&s<=71218||71227<=s&&s<=71228||71230==s||71340==s||71342<=s&&s<=71343||71350==s||71456<=s&&s<=71457||71462==s||72199<=s&&s<=72200||72249==s||72279<=s&&s<=72280||72343==s||72751==s||72766==s||72873==s||72881==s||72884==s||94033<=s&&s<=94078||119142==s||119149==s?5:4352<=s&&s<=4447||43360<=s&&s<=43388?6:4448<=s&&s<=4519||55216<=s&&s<=55238?7:4520<=s&&s<=4607||55243<=s&&s<=55291?8:44032==s||44060==s||44088==s||44116==s||44144==s||44172==s||44200==s||44228==s||44256==s||44284==s||44312==s||44340==s||44368==s||44396==s||44424==s||44452==s||44480==s||44508==s||44536==s||44564==s||44592==s||44620==s||44648==s||44676==s||44704==s||44732==s||44760==s||44788==s||44816==s||44844==s||44872==s||44900==s||44928==s||44956==s||44984==s||45012==s||45040==s||45068==s||45096==s||45124==s||45152==s||45180==s||45208==s||45236==s||45264==s||45292==s||45320==s||45348==s||45376==s||45404==s||45432==s||45460==s||45488==s||45516==s||45544==s||45572==s||45600==s||45628==s||45656==s||45684==s||45712==s||45740==s||45768==s||45796==s||45824==s||45852==s||45880==s||45908==s||45936==s||45964==s||45992==s||46020==s||46048==s||46076==s||46104==s||46132==s||46160==s||46188==s||46216==s||46244==s||46272==s||46300==s||46328==s||46356==s||46384==s||46412==s||46440==s||46468==s||46496==s||46524==s||46552==s||46580==s||46608==s||46636==s||46664==s||46692==s||46720==s||46748==s||46776==s||46804==s||46832==s||46860==s||46888==s||46916==s||46944==s||46972==s||47e3==s||47028==s||47056==s||47084==s||47112==s||47140==s||47168==s||47196==s||47224==s||47252==s||47280==s||47308==s||47336==s||47364==s||47392==s||47420==s||47448==s||47476==s||47504==s||47532==s||47560==s||47588==s||47616==s||47644==s||47672==s||47700==s||47728==s||47756==s||47784==s||47812==s||47840==s||47868==s||47896==s||47924==s||47952==s||47980==s||48008==s||48036==s||48064==s||48092==s||48120==s||48148==s||48176==s||48204==s||48232==s||48260==s||48288==s||48316==s||48344==s||48372==s||48400==s||48428==s||48456==s||48484==s||48512==s||48540==s||48568==s||48596==s||48624==s||48652==s||48680==s||48708==s||48736==s||48764==s||48792==s||48820==s||48848==s||48876==s||48904==s||48932==s||48960==s||48988==s||49016==s||49044==s||49072==s||49100==s||49128==s||49156==s||49184==s||49212==s||49240==s||49268==s||49296==s||49324==s||49352==s||49380==s||49408==s||49436==s||49464==s||49492==s||49520==s||49548==s||49576==s||49604==s||49632==s||49660==s||49688==s||49716==s||49744==s||49772==s||49800==s||49828==s||49856==s||49884==s||49912==s||49940==s||49968==s||49996==s||50024==s||50052==s||50080==s||50108==s||50136==s||50164==s||50192==s||50220==s||50248==s||50276==s||50304==s||50332==s||50360==s||50388==s||50416==s||50444==s||50472==s||50500==s||50528==s||50556==s||50584==s||50612==s||50640==s||50668==s||50696==s||50724==s||50752==s||50780==s||50808==s||50836==s||50864==s||50892==s||50920==s||50948==s||50976==s||51004==s||51032==s||51060==s||51088==s||51116==s||51144==s||51172==s||51200==s||51228==s||51256==s||51284==s||51312==s||51340==s||51368==s||51396==s||51424==s||51452==s||51480==s||51508==s||51536==s||51564==s||51592==s||51620==s||51648==s||51676==s||51704==s||51732==s||51760==s||51788==s||51816==s||51844==s||51872==s||51900==s||51928==s||51956==s||51984==s||52012==s||52040==s||52068==s||52096==s||52124==s||52152==s||52180==s||52208==s||52236==s||52264==s||52292==s||52320==s||52348==s||52376==s||52404==s||52432==s||52460==s||52488==s||52516==s||52544==s||52572==s||52600==s||52628==s||52656==s||52684==s||52712==s||52740==s||52768==s||52796==s||52824==s||52852==s||52880==s||52908==s||52936==s||52964==s||52992==s||53020==s||53048==s||53076==s||53104==s||53132==s||53160==s||53188==s||53216==s||53244==s||53272==s||53300==s||53328==s||53356==s||53384==s||53412==s||53440==s||53468==s||53496==s||53524==s||53552==s||53580==s||53608==s||53636==s||53664==s||53692==s||53720==s||53748==s||53776==s||53804==s||53832==s||53860==s||53888==s||53916==s||53944==s||53972==s||54e3==s||54028==s||54056==s||54084==s||54112==s||54140==s||54168==s||54196==s||54224==s||54252==s||54280==s||54308==s||54336==s||54364==s||54392==s||54420==s||54448==s||54476==s||54504==s||54532==s||54560==s||54588==s||54616==s||54644==s||54672==s||54700==s||54728==s||54756==s||54784==s||54812==s||54840==s||54868==s||54896==s||54924==s||54952==s||54980==s||55008==s||55036==s||55064==s||55092==s||55120==s||55148==s||55176==s?9:44033<=s&&s<=44059||44061<=s&&s<=44087||44089<=s&&s<=44115||44117<=s&&s<=44143||44145<=s&&s<=44171||44173<=s&&s<=44199||44201<=s&&s<=44227||44229<=s&&s<=44255||44257<=s&&s<=44283||44285<=s&&s<=44311||44313<=s&&s<=44339||44341<=s&&s<=44367||44369<=s&&s<=44395||44397<=s&&s<=44423||44425<=s&&s<=44451||44453<=s&&s<=44479||44481<=s&&s<=44507||44509<=s&&s<=44535||44537<=s&&s<=44563||44565<=s&&s<=44591||44593<=s&&s<=44619||44621<=s&&s<=44647||44649<=s&&s<=44675||44677<=s&&s<=44703||44705<=s&&s<=44731||44733<=s&&s<=44759||44761<=s&&s<=44787||44789<=s&&s<=44815||44817<=s&&s<=44843||44845<=s&&s<=44871||44873<=s&&s<=44899||44901<=s&&s<=44927||44929<=s&&s<=44955||44957<=s&&s<=44983||44985<=s&&s<=45011||45013<=s&&s<=45039||45041<=s&&s<=45067||45069<=s&&s<=45095||45097<=s&&s<=45123||45125<=s&&s<=45151||45153<=s&&s<=45179||45181<=s&&s<=45207||45209<=s&&s<=45235||45237<=s&&s<=45263||45265<=s&&s<=45291||45293<=s&&s<=45319||45321<=s&&s<=45347||45349<=s&&s<=45375||45377<=s&&s<=45403||45405<=s&&s<=45431||45433<=s&&s<=45459||45461<=s&&s<=45487||45489<=s&&s<=45515||45517<=s&&s<=45543||45545<=s&&s<=45571||45573<=s&&s<=45599||45601<=s&&s<=45627||45629<=s&&s<=45655||45657<=s&&s<=45683||45685<=s&&s<=45711||45713<=s&&s<=45739||45741<=s&&s<=45767||45769<=s&&s<=45795||45797<=s&&s<=45823||45825<=s&&s<=45851||45853<=s&&s<=45879||45881<=s&&s<=45907||45909<=s&&s<=45935||45937<=s&&s<=45963||45965<=s&&s<=45991||45993<=s&&s<=46019||46021<=s&&s<=46047||46049<=s&&s<=46075||46077<=s&&s<=46103||46105<=s&&s<=46131||46133<=s&&s<=46159||46161<=s&&s<=46187||46189<=s&&s<=46215||46217<=s&&s<=46243||46245<=s&&s<=46271||46273<=s&&s<=46299||46301<=s&&s<=46327||46329<=s&&s<=46355||46357<=s&&s<=46383||46385<=s&&s<=46411||46413<=s&&s<=46439||46441<=s&&s<=46467||46469<=s&&s<=46495||46497<=s&&s<=46523||46525<=s&&s<=46551||46553<=s&&s<=46579||46581<=s&&s<=46607||46609<=s&&s<=46635||46637<=s&&s<=46663||46665<=s&&s<=46691||46693<=s&&s<=46719||46721<=s&&s<=46747||46749<=s&&s<=46775||46777<=s&&s<=46803||46805<=s&&s<=46831||46833<=s&&s<=46859||46861<=s&&s<=46887||46889<=s&&s<=46915||46917<=s&&s<=46943||46945<=s&&s<=46971||46973<=s&&s<=46999||47001<=s&&s<=47027||47029<=s&&s<=47055||47057<=s&&s<=47083||47085<=s&&s<=47111||47113<=s&&s<=47139||47141<=s&&s<=47167||47169<=s&&s<=47195||47197<=s&&s<=47223||47225<=s&&s<=47251||47253<=s&&s<=47279||47281<=s&&s<=47307||47309<=s&&s<=47335||47337<=s&&s<=47363||47365<=s&&s<=47391||47393<=s&&s<=47419||47421<=s&&s<=47447||47449<=s&&s<=47475||47477<=s&&s<=47503||47505<=s&&s<=47531||47533<=s&&s<=47559||47561<=s&&s<=47587||47589<=s&&s<=47615||47617<=s&&s<=47643||47645<=s&&s<=47671||47673<=s&&s<=47699||47701<=s&&s<=47727||47729<=s&&s<=47755||47757<=s&&s<=47783||47785<=s&&s<=47811||47813<=s&&s<=47839||47841<=s&&s<=47867||47869<=s&&s<=47895||47897<=s&&s<=47923||47925<=s&&s<=47951||47953<=s&&s<=47979||47981<=s&&s<=48007||48009<=s&&s<=48035||48037<=s&&s<=48063||48065<=s&&s<=48091||48093<=s&&s<=48119||48121<=s&&s<=48147||48149<=s&&s<=48175||48177<=s&&s<=48203||48205<=s&&s<=48231||48233<=s&&s<=48259||48261<=s&&s<=48287||48289<=s&&s<=48315||48317<=s&&s<=48343||48345<=s&&s<=48371||48373<=s&&s<=48399||48401<=s&&s<=48427||48429<=s&&s<=48455||48457<=s&&s<=48483||48485<=s&&s<=48511||48513<=s&&s<=48539||48541<=s&&s<=48567||48569<=s&&s<=48595||48597<=s&&s<=48623||48625<=s&&s<=48651||48653<=s&&s<=48679||48681<=s&&s<=48707||48709<=s&&s<=48735||48737<=s&&s<=48763||48765<=s&&s<=48791||48793<=s&&s<=48819||48821<=s&&s<=48847||48849<=s&&s<=48875||48877<=s&&s<=48903||48905<=s&&s<=48931||48933<=s&&s<=48959||48961<=s&&s<=48987||48989<=s&&s<=49015||49017<=s&&s<=49043||49045<=s&&s<=49071||49073<=s&&s<=49099||49101<=s&&s<=49127||49129<=s&&s<=49155||49157<=s&&s<=49183||49185<=s&&s<=49211||49213<=s&&s<=49239||49241<=s&&s<=49267||49269<=s&&s<=49295||49297<=s&&s<=49323||49325<=s&&s<=49351||49353<=s&&s<=49379||49381<=s&&s<=49407||49409<=s&&s<=49435||49437<=s&&s<=49463||49465<=s&&s<=49491||49493<=s&&s<=49519||49521<=s&&s<=49547||49549<=s&&s<=49575||49577<=s&&s<=49603||49605<=s&&s<=49631||49633<=s&&s<=49659||49661<=s&&s<=49687||49689<=s&&s<=49715||49717<=s&&s<=49743||49745<=s&&s<=49771||49773<=s&&s<=49799||49801<=s&&s<=49827||49829<=s&&s<=49855||49857<=s&&s<=49883||49885<=s&&s<=49911||49913<=s&&s<=49939||49941<=s&&s<=49967||49969<=s&&s<=49995||49997<=s&&s<=50023||50025<=s&&s<=50051||50053<=s&&s<=50079||50081<=s&&s<=50107||50109<=s&&s<=50135||50137<=s&&s<=50163||50165<=s&&s<=50191||50193<=s&&s<=50219||50221<=s&&s<=50247||50249<=s&&s<=50275||50277<=s&&s<=50303||50305<=s&&s<=50331||50333<=s&&s<=50359||50361<=s&&s<=50387||50389<=s&&s<=50415||50417<=s&&s<=50443||50445<=s&&s<=50471||50473<=s&&s<=50499||50501<=s&&s<=50527||50529<=s&&s<=50555||50557<=s&&s<=50583||50585<=s&&s<=50611||50613<=s&&s<=50639||50641<=s&&s<=50667||50669<=s&&s<=50695||50697<=s&&s<=50723||50725<=s&&s<=50751||50753<=s&&s<=50779||50781<=s&&s<=50807||50809<=s&&s<=50835||50837<=s&&s<=50863||50865<=s&&s<=50891||50893<=s&&s<=50919||50921<=s&&s<=50947||50949<=s&&s<=50975||50977<=s&&s<=51003||51005<=s&&s<=51031||51033<=s&&s<=51059||51061<=s&&s<=51087||51089<=s&&s<=51115||51117<=s&&s<=51143||51145<=s&&s<=51171||51173<=s&&s<=51199||51201<=s&&s<=51227||51229<=s&&s<=51255||51257<=s&&s<=51283||51285<=s&&s<=51311||51313<=s&&s<=51339||51341<=s&&s<=51367||51369<=s&&s<=51395||51397<=s&&s<=51423||51425<=s&&s<=51451||51453<=s&&s<=51479||51481<=s&&s<=51507||51509<=s&&s<=51535||51537<=s&&s<=51563||51565<=s&&s<=51591||51593<=s&&s<=51619||51621<=s&&s<=51647||51649<=s&&s<=51675||51677<=s&&s<=51703||51705<=s&&s<=51731||51733<=s&&s<=51759||51761<=s&&s<=51787||51789<=s&&s<=51815||51817<=s&&s<=51843||51845<=s&&s<=51871||51873<=s&&s<=51899||51901<=s&&s<=51927||51929<=s&&s<=51955||51957<=s&&s<=51983||51985<=s&&s<=52011||52013<=s&&s<=52039||52041<=s&&s<=52067||52069<=s&&s<=52095||52097<=s&&s<=52123||52125<=s&&s<=52151||52153<=s&&s<=52179||52181<=s&&s<=52207||52209<=s&&s<=52235||52237<=s&&s<=52263||52265<=s&&s<=52291||52293<=s&&s<=52319||52321<=s&&s<=52347||52349<=s&&s<=52375||52377<=s&&s<=52403||52405<=s&&s<=52431||52433<=s&&s<=52459||52461<=s&&s<=52487||52489<=s&&s<=52515||52517<=s&&s<=52543||52545<=s&&s<=52571||52573<=s&&s<=52599||52601<=s&&s<=52627||52629<=s&&s<=52655||52657<=s&&s<=52683||52685<=s&&s<=52711||52713<=s&&s<=52739||52741<=s&&s<=52767||52769<=s&&s<=52795||52797<=s&&s<=52823||52825<=s&&s<=52851||52853<=s&&s<=52879||52881<=s&&s<=52907||52909<=s&&s<=52935||52937<=s&&s<=52963||52965<=s&&s<=52991||52993<=s&&s<=53019||53021<=s&&s<=53047||53049<=s&&s<=53075||53077<=s&&s<=53103||53105<=s&&s<=53131||53133<=s&&s<=53159||53161<=s&&s<=53187||53189<=s&&s<=53215||53217<=s&&s<=53243||53245<=s&&s<=53271||53273<=s&&s<=53299||53301<=s&&s<=53327||53329<=s&&s<=53355||53357<=s&&s<=53383||53385<=s&&s<=53411||53413<=s&&s<=53439||53441<=s&&s<=53467||53469<=s&&s<=53495||53497<=s&&s<=53523||53525<=s&&s<=53551||53553<=s&&s<=53579||53581<=s&&s<=53607||53609<=s&&s<=53635||53637<=s&&s<=53663||53665<=s&&s<=53691||53693<=s&&s<=53719||53721<=s&&s<=53747||53749<=s&&s<=53775||53777<=s&&s<=53803||53805<=s&&s<=53831||53833<=s&&s<=53859||53861<=s&&s<=53887||53889<=s&&s<=53915||53917<=s&&s<=53943||53945<=s&&s<=53971||53973<=s&&s<=53999||54001<=s&&s<=54027||54029<=s&&s<=54055||54057<=s&&s<=54083||54085<=s&&s<=54111||54113<=s&&s<=54139||54141<=s&&s<=54167||54169<=s&&s<=54195||54197<=s&&s<=54223||54225<=s&&s<=54251||54253<=s&&s<=54279||54281<=s&&s<=54307||54309<=s&&s<=54335||54337<=s&&s<=54363||54365<=s&&s<=54391||54393<=s&&s<=54419||54421<=s&&s<=54447||54449<=s&&s<=54475||54477<=s&&s<=54503||54505<=s&&s<=54531||54533<=s&&s<=54559||54561<=s&&s<=54587||54589<=s&&s<=54615||54617<=s&&s<=54643||54645<=s&&s<=54671||54673<=s&&s<=54699||54701<=s&&s<=54727||54729<=s&&s<=54755||54757<=s&&s<=54783||54785<=s&&s<=54811||54813<=s&&s<=54839||54841<=s&&s<=54867||54869<=s&&s<=54895||54897<=s&&s<=54923||54925<=s&&s<=54951||54953<=s&&s<=54979||54981<=s&&s<=55007||55009<=s&&s<=55035||55037<=s&&s<=55063||55065<=s&&s<=55091||55093<=s&&s<=55119||55121<=s&&s<=55147||55149<=s&&s<=55175||55177<=s&&s<=55203?10:9757==s||9977==s||9994<=s&&s<=9997||127877==s||127938<=s&&s<=127940||127943==s||127946<=s&&s<=127948||128066<=s&&s<=128067||128070<=s&&s<=128080||128110==s||128112<=s&&s<=128120||128124==s||128129<=s&&s<=128131||128133<=s&&s<=128135||128170==s||128372<=s&&s<=128373||128378==s||128400==s||128405<=s&&s<=128406||128581<=s&&s<=128583||128587<=s&&s<=128591||128675==s||128692<=s&&s<=128694||128704==s||128716==s||129304<=s&&s<=129308||129310<=s&&s<=129311||129318==s||129328<=s&&s<=129337||129341<=s&&s<=129342||129489<=s&&s<=129501?r:127995<=s&&s<=127999?14:8205==s?15:9792==s||9794==s||9877<=s&&s<=9878||9992==s||10084==s||127752==s||127806==s||127859==s||127891==s||127908==s||127912==s||127979==s||127981==s||128139==s||128187<=s&&s<=128188||128295==s||128300==s||128488==s||128640==s||128658==s?i:128102<=s&&s<=128105?o:11}return this.nextBreak=function(e,t){if(void 0===t&&(t=0),t<0)return 0;if(t>=e.length-1)return e.length;for(var n,r,i=u(s(e,t)),o=[],c=t+1;c<e.length;c++)if(r=c-1,!(55296<=(n=e).charCodeAt(r)&&n.charCodeAt(r)<=56319&&56320<=n.charCodeAt(r+1)&&n.charCodeAt(r+1)<=57343)){var l=u(s(e,c));if(a(i,o,l))return c;o.push(l)}return e.length},this.splitGraphemes=function(e){for(var t,n=[],r=0;(t=this.nextBreak(e,r))<e.length;)n.push(e.slice(r,t)),r=t;return r<e.length&&n.push(e.slice(r)),n},this.iterateGraphemes=function(e){var t=0,n={next:function(){var n,r;return(r=this.nextBreak(e,t))<e.length?(n=e.slice(t,r),t=r,{value:n,done:!1}):t<e.length?(n=e.slice(t),t=e.length,{value:n,done:!1}):{value:void 0,done:!0}}.bind(this)};return"undefined"!=typeof Symbol&&Symbol.iterator&&(n[Symbol.iterator]=function(){return n}),n},this.countGraphemes=function(e){for(var t,n=0,r=0;(t=this.nextBreak(e,r))<e.length;)r=t,n++;return r<e.length&&n++,n},this})},2068:(e,t)=>{"use strict";const{hasOwnProperty:n}=Object.prototype,r=d();r.configure=d,r.stringify=r,r.default=r,t.stringify=r,t.configure=d,e.exports=r;const i=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function o(e){return e.length<5e3&&!i.test(e)?`"${e}"`:JSON.stringify(e)}function s(e,t){if(e.length>200||t)return e.sort(t);for(let t=1;t<e.length;t++){const n=e[t];let r=t;for(;0!==r&&e[r-1]>n;)e[r]=e[r-1],r--;e[r]=n}return e}const a=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function u(e){return void 0!==a.call(e)&&0!==e.length}function c(e,t,n){e.length<n&&(n=e.length);const r=","===t?"":" ";let i=`"0":${r}${e[0]}`;for(let o=1;o<n;o++)i+=`${t}"${o}":${r}${e[o]}`;return i}function l(e,t){let r;if(n.call(e,t)){if(r=e[t],"number"!=typeof r)throw new TypeError(`The "${t}" argument must be of type number`);if(!Number.isInteger(r))throw new TypeError(`The "${t}" argument must be an integer`);if(r<1)throw new RangeError(`The "${t}" argument must be >= 1`)}return void 0===r?1/0:r}function h(e){return 1===e?"1 item":`${e} items`}function d(e){const t=function(e){if(n.call(e,"strict")){const t=e.strict;if("boolean"!=typeof t)throw new TypeError('The "strict" argument must be of type boolean');if(t)return e=>{let t="Object can not safely be stringified. Received type "+typeof e;throw"function"!=typeof e&&(t+=` (${e.toString()})`),new Error(t)}}}(e={...e});t&&(void 0===e.bigint&&(e.bigint=!1),"circularValue"in e||(e.circularValue=Error));const r=function(e){if(n.call(e,"circularValue")){const t=e.circularValue;if("string"==typeof t)return`"${t}"`;if(null==t)return t;if(t===Error||t===TypeError)return{toString(){throw new TypeError("Converting circular structure to JSON")}};throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return'"[Circular]"'}(e),i=function(e,t){let r;if(n.call(e,t)&&(r=e[t],"boolean"!=typeof r))throw new TypeError(`The "${t}" argument must be of type boolean`);return void 0===r||r}(e,"bigint"),a=function(e){let t;if(n.call(e,"deterministic")&&(t=e.deterministic,"boolean"!=typeof t&&"function"!=typeof t))throw new TypeError('The "deterministic" argument must be of type boolean or comparator function');return void 0===t||t}(e),d="function"==typeof a?a:void 0,f=l(e,"maximumDepth"),p=l(e,"maximumBreadth");function g(e,n,c,l,v,m){let y=n[e];switch("object"==typeof y&&null!==y&&"function"==typeof y.toJSON&&(y=y.toJSON(e)),y=l.call(n,e,y),typeof y){case"string":return o(y);case"object":{if(null===y)return"null";if(-1!==c.indexOf(y))return r;let e="",t=",";const n=m;if(Array.isArray(y)){if(0===y.length)return"[]";if(f<c.length+1)return'"[Array]"';c.push(y),""!==v&&(e+=`\n${m+=v}`,t=`,\n${m}`);const r=Math.min(y.length,p);let i=0;for(;i<r-1;i++){const n=g(String(i),y,c,l,v,m);e+=void 0!==n?n:"null",e+=t}const o=g(String(i),y,c,l,v,m);return e+=void 0!==o?o:"null",y.length-1>p&&(e+=`${t}"... ${h(y.length-p-1)} not stringified"`),""!==v&&(e+=`\n${n}`),c.pop(),`[${e}]`}let i=Object.keys(y);const b=i.length;if(0===b)return"{}";if(f<c.length+1)return'"[Object]"';let w="",_="";""!==v&&(t=`,\n${m+=v}`,w=" ");const x=Math.min(b,p);a&&!u(y)&&(i=s(i,d)),c.push(y);for(let n=0;n<x;n++){const r=i[n],s=g(r,y,c,l,v,m);void 0!==s&&(e+=`${_}${o(r)}:${w}${s}`,_=t)}return b>p&&(e+=`${_}"...":${w}"${h(b-p)} not stringified"`,_=t),""!==v&&_.length>1&&(e=`\n${m}${e}\n${n}`),c.pop(),`{${e}}`}case"number":return isFinite(y)?String(y):t?t(y):"null";case"boolean":return!0===y?"true":"false";case"undefined":return;case"bigint":if(i)return String(y);default:return t?t(y):void 0}}function v(e,n,s,a,u,c){switch("object"==typeof n&&null!==n&&"function"==typeof n.toJSON&&(n=n.toJSON(e)),typeof n){case"string":return o(n);case"object":{if(null===n)return"null";if(-1!==s.indexOf(n))return r;const e=c;let t="",i=",";if(Array.isArray(n)){if(0===n.length)return"[]";if(f<s.length+1)return'"[Array]"';s.push(n),""!==u&&(t+=`\n${c+=u}`,i=`,\n${c}`);const r=Math.min(n.length,p);let o=0;for(;o<r-1;o++){const e=v(String(o),n[o],s,a,u,c);t+=void 0!==e?e:"null",t+=i}const l=v(String(o),n[o],s,a,u,c);return t+=void 0!==l?l:"null",n.length-1>p&&(t+=`${i}"... ${h(n.length-p-1)} not stringified"`),""!==u&&(t+=`\n${e}`),s.pop(),`[${t}]`}s.push(n);let l="";""!==u&&(i=`,\n${c+=u}`,l=" ");let d="";for(const e of a){const r=v(e,n[e],s,a,u,c);void 0!==r&&(t+=`${d}${o(e)}:${l}${r}`,d=i)}return""!==u&&d.length>1&&(t=`\n${c}${t}\n${e}`),s.pop(),`{${t}}`}case"number":return isFinite(n)?String(n):t?t(n):"null";case"boolean":return!0===n?"true":"false";case"undefined":return;case"bigint":if(i)return String(n);default:return t?t(n):void 0}}function m(e,n,l,g,v){switch(typeof n){case"string":return o(n);case"object":{if(null===n)return"null";if("function"==typeof n.toJSON){if("object"!=typeof(n=n.toJSON(e)))return m(e,n,l,g,v);if(null===n)return"null"}if(-1!==l.indexOf(n))return r;const t=v;if(Array.isArray(n)){if(0===n.length)return"[]";if(f<l.length+1)return'"[Array]"';l.push(n);let e=`\n${v+=g}`;const r=`,\n${v}`,i=Math.min(n.length,p);let o=0;for(;o<i-1;o++){const t=m(String(o),n[o],l,g,v);e+=void 0!==t?t:"null",e+=r}const s=m(String(o),n[o],l,g,v);return e+=void 0!==s?s:"null",n.length-1>p&&(e+=`${r}"... ${h(n.length-p-1)} not stringified"`),e+=`\n${t}`,l.pop(),`[${e}]`}let i=Object.keys(n);const y=i.length;if(0===y)return"{}";if(f<l.length+1)return'"[Object]"';const b=`,\n${v+=g}`;let w="",_="",x=Math.min(y,p);u(n)&&(w+=c(n,b,p),i=i.slice(n.length),x-=n.length,_=b),a&&(i=s(i,d)),l.push(n);for(let e=0;e<x;e++){const t=i[e],r=m(t,n[t],l,g,v);void 0!==r&&(w+=`${_}${o(t)}: ${r}`,_=b)}return y>p&&(w+=`${_}"...": "${h(y-p)} not stringified"`,_=b),""!==_&&(w=`\n${v}${w}\n${t}`),l.pop(),`{${w}}`}case"number":return isFinite(n)?String(n):t?t(n):"null";case"boolean":return!0===n?"true":"false";case"undefined":return;case"bigint":if(i)return String(n);default:return t?t(n):void 0}}function y(e,n,l){switch(typeof n){case"string":return o(n);case"object":{if(null===n)return"null";if("function"==typeof n.toJSON){if("object"!=typeof(n=n.toJSON(e)))return y(e,n,l);if(null===n)return"null"}if(-1!==l.indexOf(n))return r;let t="";const i=void 0!==n.length;if(i&&Array.isArray(n)){if(0===n.length)return"[]";if(f<l.length+1)return'"[Array]"';l.push(n);const e=Math.min(n.length,p);let r=0;for(;r<e-1;r++){const e=y(String(r),n[r],l);t+=void 0!==e?e:"null",t+=","}const i=y(String(r),n[r],l);return t+=void 0!==i?i:"null",n.length-1>p&&(t+=`,"... ${h(n.length-p-1)} not stringified"`),l.pop(),`[${t}]`}let g=Object.keys(n);const v=g.length;if(0===v)return"{}";if(f<l.length+1)return'"[Object]"';let m="",b=Math.min(v,p);i&&u(n)&&(t+=c(n,",",p),g=g.slice(n.length),b-=n.length,m=","),a&&(g=s(g,d)),l.push(n);for(let e=0;e<b;e++){const r=g[e],i=y(r,n[r],l);void 0!==i&&(t+=`${m}${o(r)}:${i}`,m=",")}return v>p&&(t+=`${m}"...":"${h(v-p)} not stringified"`),l.pop(),`{${t}}`}case"number":return isFinite(n)?String(n):t?t(n):"null";case"boolean":return!0===n?"true":"false";case"undefined":return;case"bigint":if(i)return String(n);default:return t?t(n):void 0}}return function(e,t,n){if(arguments.length>1){let r="";if("number"==typeof n?r=" ".repeat(Math.min(n,10)):"string"==typeof n&&(r=n.slice(0,10)),null!=t){if("function"==typeof t)return g("",{"":e},[],t,r,"");if(Array.isArray(t))return v("",e,[],function(e){const t=new Set;for(const n of e)"string"!=typeof n&&"number"!=typeof n||t.add(String(n));return t}(t),r,"")}if(0!==r.length)return m("",e,[],r,"")}return y("",e,[])}}},2092:(e,t,n)=>{var r=n(2203);"disable"===process.env.READABLE_STREAM&&r?(e.exports=r.Readable,Object.assign(e.exports,r),e.exports.Stream=r):((t=e.exports=n(9362)).Stream=r||t,t.Readable=t,t.Writable=n(5494),t.Duplex=n(2812),t.Transform=n(2828),t.PassThrough=n(3622),t.finished=n(6856),t.pipeline=n(2452))},2102:(e,t,n)=>{"use strict";const r=n(5532);function i(e){if(e.every(o))return t=>{let n=t;for(let t=0;t<e.length;t++)if(n=e[t].transform(n,e[t].options),!n)return!1;return n}}function o(e){if("function"!=typeof e.transform)throw new Error(["No transform function found on format. Did you create a format instance?","const myFormat = format(formatFn);","const instance = myFormat();"].join("\n"));return!0}e.exports=(...e)=>{const t=r(i(e)),n=t();return n.Format=t.Format,n},e.exports.cascade=i},2132:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(...t){if(null!==e){var n=e;e=null,n.apply(this,t)}}return Object.assign(t,e),t},e.exports=t.default},2134:(e,t,n)=>{"use strict";const r=n(857),i=n(8521),o=n(7918)("winston:rejection"),s=n(7347),a=n(5031),u=n(4048);e.exports=class{constructor(e){if(!e)throw new Error("Logger is required to handle rejections");this.logger=e,this.handlers=new Map}handle(...e){e.forEach((e=>{if(Array.isArray(e))return e.forEach((e=>this._addHandler(e)));this._addHandler(e)})),this.catcher||(this.catcher=this._unhandledRejection.bind(this),process.on("unhandledRejection",this.catcher))}unhandle(){this.catcher&&(process.removeListener("unhandledRejection",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach((e=>this.logger.unpipe(e))))}getAllInfo(e){let t=null;return e&&(t="string"==typeof e?e:e.message),{error:e,level:"error",message:[`unhandledRejection: ${t||"(no error message)"}`,e&&e.stack||" No stack trace"].join("\n"),stack:e&&e.stack,rejection:!0,date:(new Date).toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}getProcessInfo(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}getOsInfo(){return{loadavg:r.loadavg(),uptime:r.uptime()}}getTrace(e){return(e?a.parse(e):a.get()).map((e=>({column:e.getColumnNumber(),file:e.getFileName(),function:e.getFunctionName(),line:e.getLineNumber(),method:e.getMethodName(),native:e.isNative()})))}_addHandler(e){if(!this.handlers.has(e)){e.handleRejections=!0;const t=new u(e);this.handlers.set(e,t),this.logger.pipe(t)}}_unhandledRejection(e){const t=this.getAllInfo(e),n=this._getRejectionHandlers();let r,a="function"==typeof this.logger.exitOnError?this.logger.exitOnError(e):this.logger.exitOnError;function u(){o("doExit",a),o("process._exiting",process._exiting),a&&!process._exiting&&(r&&clearTimeout(r),process.exit(1))}if(!n.length&&a&&(console.warn("winston: exitOnError cannot be true with no rejection handlers."),console.warn("winston: not exiting process."),a=!1),!n||0===n.length)return process.nextTick(u);i(n,((e,t)=>{const n=s(t),r=e.transport||e;function i(e){return()=>{o(e),n()}}r._ending=!0,r.once("finish",i("finished")),r.once("error",i("error"))}),(()=>a&&u())),this.logger.log(t),a&&(r=setTimeout(u,3e3))}_getRejectionHandlers(){return this.logger.transports.filter((e=>(e.transport||e).handleRejections))}}},2159:(e,t,n)=>{"use strict";const{format:r}=n(9023);t.warn={deprecated:e=>()=>{throw new Error(r("{ %s } was removed in winston@3.0.0.",e))},useFormat:e=>()=>{throw new Error([r("{ %s } was removed in winston@3.0.0.",e),"Use a custom winston.format = winston.format(function) instead."].join("\n"))},forFunctions(e,n,r){r.forEach((r=>{e[r]=t.warn[n](r)}))},forProperties(e,n,r){r.forEach((r=>{const i=t.warn[n](r);Object.defineProperty(e,r,{get:i,set:i})}))}}},2203:e=>{"use strict";e.exports=require("stream")},2204:(e,t)=>{"use strict";t.levels={error:0,warn:1,help:2,data:3,info:4,debug:5,prompt:6,verbose:7,input:8,silly:9},t.colors={error:"red",warn:"yellow",help:"cyan",data:"grey",info:"green",debug:"blue",prompt:"grey",verbose:"cyan",input:"grey",silly:"magenta"}},2228:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Transport=t.exportsForTesting=void 0;const r=n(8474),i=n(7975),o=n(3986),s=n(7905);class a{constructor(e,t){this.encoder=e,this.requestId=t}send(e,t){if(this.sent)throw new Error(`Response to id ${this.requestId} already sent`);const n=(0,o.encode)([1,this.requestId,t?e:null,t?null:e]);this.encoder.write(Buffer.from(n.buffer,n.byteOffset,n.byteLength)),this.sent=!0}}class u extends r.EventEmitter{constructor(){super(...arguments),this.pending=new Map,this.nextRequestId=1,this.extensionCodec=this.initializeExtensionCodec()}initializeExtensionCodec(){const e=new o.ExtensionCodec;return s.Metadata.forEach((({constructor:t},n)=>{e.register({type:n,encode:e=>e instanceof t?(0,o.encode)(e.data):null,decode:e=>new t({transport:this,client:this.client,data:(0,o.decode)(e)})})})),e}encodeToBuffer(e){const t=(0,o.encode)(e,{extensionCodec:this.extensionCodec});return Buffer.from(t.buffer,t.byteOffset,t.byteLength)}attach(e,n,r){this.writer=e,this.reader=n,this.client=r,this.reader.on("end",(()=>{this.emit("detach")}));const s=(0,o.decodeMultiStream)(this.reader,{extensionCodec:this.extensionCodec}),a=e=>{e.next().then((n=>{if(!n.done){if(!Array.isArray(n.value)){let e="?";try{e=(0,i.inspect)(n.value,{sorted:!0,maxArrayLength:10,maxStringLength:500,compact:!0,breakLength:500})}catch(e){}const r=`invalid msgpack-RPC message: expected array, got: ${e}`,o=null===t.exportsForTesting||void 0===t.exportsForTesting?void 0:t.exportsForTesting.onTransportFail;if(o)return void o.emit("fail",r);throw new TypeError(r)}return this.parseMessage(n.value),void a(e)}Promise.resolve()}))};a(s)}request(e,t,n){this.nextRequestId=this.nextRequestId+1,this.writer.write(this.encodeToBuffer([0,this.nextRequestId,e,t])),this.pending.set(this.nextRequestId,n)}notify(e,t){this.writer.write(this.encodeToBuffer([2,e,t]))}parseMessage(e){const t=e[0];if(0===t)this.emit("request",e[2].toString(),e[3],new a(this.writer,e[1]));else if(1===t){const t=e[1],n=this.pending.get(t);if(!n)throw new Error(`no pending handler for id ${t}`);this.pending.delete(t),n(e[2],e[3])}else 2===t?this.emit("notification",e[1].toString(),e[2]):this.writer.write(this.encodeToBuffer([1,0,"Invalid message type",null]))}}t.Transport=u},2270:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.autocmd=function(e,t){return function(n,i){const o=t&&!!t.sync,s="string"==typeof i,a=s?n[i]:n,u={pattern:""};["pattern","eval"].forEach((e=>{t&&void 0!==t[e]&&(u[e]=t[e])}));const c=`${e}${(null==t?void 0:t.pattern)?`:${t.pattern}`:""}`;return Object.defineProperty(a,r.NVIM_METHOD_NAME,{value:`autocmd:${c}`}),Object.defineProperty(a,r.NVIM_SYNC,{value:!!o}),Object.defineProperty(a,r.NVIM_SPEC,{value:{type:"autocmd",name:e,sync:!!o,opts:u}}),s&&(n[i]=a),n}};const r=n(3118)},2294:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){if("string"==typeof e.displayName&&e.constructor.name)return e.displayName;if("string"==typeof e.name&&e.name)return e.name;if("object"==typeof e&&e.constructor&&"string"==typeof e.constructor.name)return e.constructor.name;var n=e.toString(),r=t.call(e).slice(8,-1);return(n="Function"===r?n.substring(n.indexOf("(")+1,n.indexOf(")")):r)||"anonymous"}},2298:(e,t,n)=>{"use strict";n.d(t,{ie:()=>o,ke:()=>k,CJ:()=>T,rZ:()=>E,IH:()=>v,Z6:()=>l.Z6,$V:()=>l.$V,Gf:()=>w,IP:()=>b,v3:()=>m,hR:()=>c,KV:()=>i,ZM:()=>y,H$:()=>S,RP:()=>_,E1:()=>x,LH:()=>l.LH,Jq:()=>C,uk:()=>s,i9:()=>M});var r=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};function i(e,t){return t.findLast((([t])=>t===e))}class o{constructor(){this.resolve=()=>{},this.reject=()=>{},this.promise=new Promise(((e,t)=>{this.resolve=e,this.reject=t})),this.promise.catch((e=>{}))}}function s(e){return r(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,e)))}))}var a=n(1398),u=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};function c(e){return u(this,void 0,void 0,(function*(){try{yield a.workspace.fs.stat(e)}catch(e){return!1}return!0}))}var l=n(1928),h=n(5317),d=n(618),f=n(1019),p=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};function g(e,t,n){let r=n,i=e.length-1;for(;r<i;){const n=r+Math.floor((i-r)/2);e[n]<=t?r=n+1:i=n}return[r,r>0?e[r-1]:0]}function*v(e,t){const n=(0,d.iT)(e,t),r=e.split("\n"),i=new Array(r.length);let o=0;for(let e=0;e<r.length;e++)o+=r[e].length+1,i[e]=o;let s=0;for(const[e,t,r]of n){const[n,o]=g(i,e,s),[u,c]=g(i,t,n),l=e-o,h=t-c,d=new a.Range(new a.Position(n,l),new a.Position(u,h));s=u,yield{range:d,text:r,rangeLength:t-e}}}function m(e){for(var t;e.length;)try{null===(t=e.pop())||void 0===t||t.dispose()}catch(e){console.warn(e)}}function y(e){const t=e.eol===a.EndOfLine.CRLF?"\r\n":"\n";return e.getText().split(t)}function b(e,t){const n=e.document.lineAt(t.line).text,r=(0,l.Z6)(n,t.character);return new a.Position(t.line,r)}function w(e,t){const n=e.document.lineAt(t.line).text,r=(0,l.$V)(n,t.character);return new a.Position(t.line,r)}function _(e,t,n){if(e.range.contains(t))return!0;if(e.range.isSingleLine&&e.text){const r=e.text.split(n),i=r.length,o=e.range.start.line+i-1,s=e.range.end.character+r.slice(-1)[0].length;if(o>=t.line&&s>=t.character)return!0}return!1}function x(e,t){return{rangeLength:e.rangeLength,rangeOffset:e.rangeOffset,text:e.text,eol:t}}function E(e,t){const n=Object.assign({},t),r=e.rangeOffset<=t.rangeOffset?e.rangeOffset-t.rangeOffset+e.rangeLength:e.rangeLength,i=e.rangeOffset<=t.rangeOffset?0:e.rangeOffset-t.rangeOffset,o=e.rangeOffset-t.rangeOffset+r;return n.text=t.text.slice(0,i)+e.text+t.text.slice(o),e.rangeOffset<t.rangeOffset&&(n.rangeOffset=e.rangeOffset,n.rangeLength+=e.rangeLength),n}function S(e,t){const n=t.text.length,r=t.rangeOffset,i=t.rangeOffset+n;return e.rangeOffset>=r&&e.rangeOffset<=i||e.rangeOffset<r&&e.rangeOffset+e.rangeLength>=r}function C(e,t){return e.map((e=>{const n=new a.Position(e.start.line,e.start.character),r=new a.Position(e.end.line,e.end.character);if(!t)return new a.Selection(n,r);const i=n.isAfter(r),o=t.validateRange(new a.Range(n,r));return o.start.isBefore(o.end)&&i?new a.Selection(o.end,o.start):new a.Selection(o.start,o.end)}))}const M=e=>{const t=f.$.wslDistribution.length?["-d",f.$.wslDistribution]:[],n=(0,h.spawnSync)("C:\\Windows\\system32\\wsl.exe",[...t,"wslpath",e],{encoding:"utf-8"});if(n.error)throw new Error(`Failed to run wslpath: ${n.error.message}`);return n.stdout.trim()};class T{static set(e,t){return p(this,void 0,void 0,(function*(){this.get(e)!==t&&(void 0===t?this.cache.delete(e):this.cache.set(e,t),yield a.commands.executeCommand("setContext",e,t))}))}static get(e){return this.cache.get(e)}static reset(){for(const e of this.cache.keys())a.commands.executeCommand("setContext",e,void 0);this.cache.clear()}}T.cache=new Map;class k{constructor(){this.disposed=!1}get isProgressing(){return!!this.progress}report(e){var t;this.message=e;try{null===(t=this.progress)||void 0===t||t.report({message:e})}catch(e){}}start(e,t=0){this.disposed||(this.done(),this.startTimer=setTimeout((()=>{this.promise=new o,a.window.withProgress(e,(e=>p(this,void 0,void 0,(function*(){var t;this.progress=e,this.message&&e.report({message:this.message}),yield null===(t=this.promise)||void 0===t?void 0:t.promise}))))}),t))}done(){var e;this.progress=void 0,null===(e=this.promise)||void 0===e||e.resolve(),this.promise=void 0,clearTimeout(this.startTimer),this.startTimer=void 0,this.message=void 0}dispose(){this.done(),this.disposed=!0}}},2365:(e,t,n)=>{"use strict";var r=n(3291).F.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,n,i){var o=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,i,n);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new r(i?n:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},2452:(e,t,n)=>{"use strict";var r,i=n(3291).F,o=i.ERR_MISSING_ARGS,s=i.ERR_STREAM_DESTROYED;function a(e){if(e)throw e}function u(e){e()}function c(e,t){return e.pipe(t)}e.exports=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var l,h=function(e){return e.length?"function"!=typeof e[e.length-1]?a:e.pop():a}(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new o("streams");var d=t.map((function(e,i){var o=i<t.length-1;return function(e,t,i,o){o=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(o);var a=!1;e.on("close",(function(){a=!0})),void 0===r&&(r=n(6856)),r(e,{readable:t,writable:i},(function(e){if(e)return o(e);a=!0,o()}));var u=!1;return function(t){if(!a&&!u)return u=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void o(t||new s("pipe"))}}(e,o,i>0,(function(e){l||(l=e),e&&d.forEach(u),o||(d.forEach(u),h(l))}))}));return t.reduce(c)}},2543:function(e,t,n){var r;e=n.nmd(e),function(){var i,o="Expected a function",s="__lodash_hash_undefined__",a="__lodash_placeholder__",u=32,c=128,l=1/0,h=9007199254740991,d=NaN,f=4294967295,p=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",u],["partialRight",64],["rearg",256]],g="[object Arguments]",v="[object Array]",m="[object Boolean]",y="[object Date]",b="[object Error]",w="[object Function]",_="[object GeneratorFunction]",x="[object Map]",E="[object Number]",S="[object Object]",C="[object Promise]",M="[object RegExp]",T="[object Set]",k="[object String]",O="[object Symbol]",L="[object WeakMap]",P="[object ArrayBuffer]",I="[object DataView]",R="[object Float32Array]",A="[object Float64Array]",$="[object Int8Array]",D="[object Int16Array]",j="[object Int32Array]",N="[object Uint8Array]",B="[object Uint8ClampedArray]",q="[object Uint16Array]",U="[object Uint32Array]",F=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,V=/(__e\(.*?\)|\b__t\)) \+\n'';/g,H=/&(?:amp|lt|gt|quot|#39);/g,z=/[&<>"']/g,G=RegExp(H.source),K=RegExp(z.source),Y=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,Z=/<%=([\s\S]+?)%>/g,Q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,X=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,ie=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,ae=/,? & /,ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,le=/\\(\\)?/g,he=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,de=/\w*$/,fe=/^[-+]0x[0-9a-f]+$/i,pe=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,ve=/^0o[0-7]+$/i,me=/^(?:0|[1-9]\d*)$/,ye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,we=/['\n\r\u2028\u2029\\]/g,_e="\\ud800-\\udfff",xe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ee="\\u2700-\\u27bf",Se="a-z\\xdf-\\xf6\\xf8-\\xff",Ce="A-Z\\xc0-\\xd6\\xd8-\\xde",Me="\\ufe0e\\ufe0f",Te="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ke="["+_e+"]",Oe="["+Te+"]",Le="["+xe+"]",Pe="\\d+",Ie="["+Ee+"]",Re="["+Se+"]",Ae="[^"+_e+Te+Pe+Ee+Se+Ce+"]",$e="\\ud83c[\\udffb-\\udfff]",De="[^"+_e+"]",je="(?:\\ud83c[\\udde6-\\uddff]){2}",Ne="[\\ud800-\\udbff][\\udc00-\\udfff]",Be="["+Ce+"]",qe="\\u200d",Ue="(?:"+Re+"|"+Ae+")",Fe="(?:"+Be+"|"+Ae+")",We="(?:['’](?:d|ll|m|re|s|t|ve))?",Ve="(?:['’](?:D|LL|M|RE|S|T|VE))?",He="(?:"+Le+"|"+$e+")?",ze="["+Me+"]?",Ge=ze+He+"(?:"+qe+"(?:"+[De,je,Ne].join("|")+")"+ze+He+")*",Ke="(?:"+[Ie,je,Ne].join("|")+")"+Ge,Ye="(?:"+[De+Le+"?",Le,je,Ne,ke].join("|")+")",Je=RegExp("['’]","g"),Ze=RegExp(Le,"g"),Qe=RegExp($e+"(?="+$e+")|"+Ye+Ge,"g"),Xe=RegExp([Be+"?"+Re+"+"+We+"(?="+[Oe,Be,"$"].join("|")+")",Fe+"+"+Ve+"(?="+[Oe,Be+Ue,"$"].join("|")+")",Be+"?"+Ue+"+"+We,Be+"+"+Ve,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Pe,Ke].join("|"),"g"),et=RegExp("["+qe+_e+xe+Me+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rt=-1,it={};it[R]=it[A]=it[$]=it[D]=it[j]=it[N]=it[B]=it[q]=it[U]=!0,it[g]=it[v]=it[P]=it[m]=it[I]=it[y]=it[b]=it[w]=it[x]=it[E]=it[S]=it[M]=it[T]=it[k]=it[L]=!1;var ot={};ot[g]=ot[v]=ot[P]=ot[I]=ot[m]=ot[y]=ot[R]=ot[A]=ot[$]=ot[D]=ot[j]=ot[x]=ot[E]=ot[S]=ot[M]=ot[T]=ot[k]=ot[O]=ot[N]=ot[B]=ot[q]=ot[U]=!0,ot[b]=ot[w]=ot[L]=!1;var st={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},at=parseFloat,ut=parseInt,ct="object"==typeof global&&global&&global.Object===Object&&global,lt="object"==typeof self&&self&&self.Object===Object&&self,ht=ct||lt||Function("return this")(),dt=t&&!t.nodeType&&t,ft=dt&&e&&!e.nodeType&&e,pt=ft&&ft.exports===dt,gt=pt&&ct.process,vt=function(){try{return ft&&ft.require&&ft.require("util").types||gt&>.binding&>.binding("util")}catch(e){}}(),mt=vt&&vt.isArrayBuffer,yt=vt&&vt.isDate,bt=vt&&vt.isMap,wt=vt&&vt.isRegExp,_t=vt&&vt.isSet,xt=vt&&vt.isTypedArray;function Et(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function St(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var s=e[i];t(r,s,n(s),e)}return r}function Ct(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Mt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Tt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function kt(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var s=e[n];t(s,n,e)&&(o[i++]=s)}return o}function Ot(e,t){return!(null==e||!e.length)&&Bt(e,t,0)>-1}function Lt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Pt(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function It(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Rt(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function At(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function $t(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Dt=Wt("length");function jt(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function Nt(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function Bt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):Nt(e,Ut,n)}function qt(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function Ut(e){return e!=e}function Ft(e,t){var n=null==e?0:e.length;return n?zt(e,t)/n:d}function Wt(e){return function(t){return null==t?i:t[e]}}function Vt(e){return function(t){return null==e?i:e[t]}}function Ht(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function zt(e,t){for(var n,r=-1,o=e.length;++r<o;){var s=t(e[r]);s!==i&&(n=n===i?s:n+s)}return n}function Gt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Kt(e){return e?e.slice(0,dn(e)+1).replace(re,""):e}function Yt(e){return function(t){return e(t)}}function Jt(e,t){return Pt(t,(function(t){return e[t]}))}function Zt(e,t){return e.has(t)}function Qt(e,t){for(var n=-1,r=e.length;++n<r&&Bt(t,e[n],0)>-1;);return n}function Xt(e,t){for(var n=e.length;n--&&Bt(t,e[n],0)>-1;);return n}var en=Vt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),tn=Vt({"&":"&","<":"<",">":">",'"':""","'":"'"});function nn(e){return"\\"+st[e]}function rn(e){return et.test(e)}function on(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function sn(e,t){return function(n){return e(t(n))}}function an(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n];s!==t&&s!==a||(e[n]=a,o[i++]=n)}return o}function un(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function cn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function ln(e){return rn(e)?function(e){for(var t=Qe.lastIndex=0;Qe.test(e);)++t;return t}(e):Dt(e)}function hn(e){return rn(e)?function(e){return e.match(Qe)||[]}(e):function(e){return e.split("")}(e)}function dn(e){for(var t=e.length;t--&&ie.test(e.charAt(t)););return t}var fn=Vt({"&":"&","<":"<",">":">",""":'"',"'":"'"}),pn=function e(t){var n,r=(t=null==t?ht:pn.defaults(ht.Object(),t,pn.pick(ht,nt))).Array,ie=t.Date,_e=t.Error,xe=t.Function,Ee=t.Math,Se=t.Object,Ce=t.RegExp,Me=t.String,Te=t.TypeError,ke=r.prototype,Oe=xe.prototype,Le=Se.prototype,Pe=t["__core-js_shared__"],Ie=Oe.toString,Re=Le.hasOwnProperty,Ae=0,$e=(n=/[^.]+$/.exec(Pe&&Pe.keys&&Pe.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",De=Le.toString,je=Ie.call(Se),Ne=ht._,Be=Ce("^"+Ie.call(Re).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qe=pt?t.Buffer:i,Ue=t.Symbol,Fe=t.Uint8Array,We=qe?qe.allocUnsafe:i,Ve=sn(Se.getPrototypeOf,Se),He=Se.create,ze=Le.propertyIsEnumerable,Ge=ke.splice,Ke=Ue?Ue.isConcatSpreadable:i,Ye=Ue?Ue.iterator:i,Qe=Ue?Ue.toStringTag:i,et=function(){try{var e=uo(Se,"defineProperty");return e({},"",{}),e}catch(e){}}(),st=t.clearTimeout!==ht.clearTimeout&&t.clearTimeout,ct=ie&&ie.now!==ht.Date.now&&ie.now,lt=t.setTimeout!==ht.setTimeout&&t.setTimeout,dt=Ee.ceil,ft=Ee.floor,gt=Se.getOwnPropertySymbols,vt=qe?qe.isBuffer:i,Dt=t.isFinite,Vt=ke.join,gn=sn(Se.keys,Se),vn=Ee.max,mn=Ee.min,yn=ie.now,bn=t.parseInt,wn=Ee.random,_n=ke.reverse,xn=uo(t,"DataView"),En=uo(t,"Map"),Sn=uo(t,"Promise"),Cn=uo(t,"Set"),Mn=uo(t,"WeakMap"),Tn=uo(Se,"create"),kn=Mn&&new Mn,On={},Ln=jo(xn),Pn=jo(En),In=jo(Sn),Rn=jo(Cn),An=jo(Mn),$n=Ue?Ue.prototype:i,Dn=$n?$n.valueOf:i,jn=$n?$n.toString:i;function Nn(e){if(ea(e)&&!Ws(e)&&!(e instanceof Fn)){if(e instanceof Un)return e;if(Re.call(e,"__wrapped__"))return No(e)}return new Un(e)}var Bn=function(){function e(){}return function(t){if(!Xs(t))return{};if(He)return He(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function qn(){}function Un(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Fn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=f,this.__views__=[]}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Hn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function zn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Hn;++t<n;)this.add(e[t])}function Gn(e){var t=this.__data__=new Vn(e);this.size=t.size}function Kn(e,t){var n=Ws(e),r=!n&&Fs(e),i=!n&&!r&&Gs(e),o=!n&&!r&&!i&&ua(e),s=n||r||i||o,a=s?Gt(e.length,Me):[],u=a.length;for(var c in e)!t&&!Re.call(e,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||vo(c,u))||a.push(c);return a}function Yn(e){var t=e.length;return t?e[Hr(0,t-1)]:i}function Jn(e,t){return Io(Mi(e),or(t,0,e.length))}function Zn(e){return Io(Mi(e))}function Qn(e,t,n){(n!==i&&!Bs(e[t],n)||n===i&&!(t in e))&&rr(e,t,n)}function Xn(e,t,n){var r=e[t];Re.call(e,t)&&Bs(r,n)&&(n!==i||t in e)||rr(e,t,n)}function er(e,t){for(var n=e.length;n--;)if(Bs(e[n][0],t))return n;return-1}function tr(e,t,n,r){return lr(e,(function(e,i,o){t(r,e,n(e),o)})),r}function nr(e,t){return e&&Ti(t,La(t),e)}function rr(e,t,n){"__proto__"==t&&et?et(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ir(e,t){for(var n=-1,o=t.length,s=r(o),a=null==e;++n<o;)s[n]=a?i:Ca(e,t[n]);return s}function or(e,t,n){return e==e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function sr(e,t,n,r,o,s){var a,u=1&t,c=2&t,l=4&t;if(n&&(a=o?n(e,r,o,s):n(e)),a!==i)return a;if(!Xs(e))return e;var h=Ws(e);if(h){if(a=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Re.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!u)return Mi(e,a)}else{var d=ho(e),f=d==w||d==_;if(Gs(e))return wi(e,u);if(d==S||d==g||f&&!o){if(a=c||f?{}:po(e),!u)return c?function(e,t){return Ti(e,lo(e),t)}(e,function(e,t){return e&&Ti(t,Pa(t),e)}(a,e)):function(e,t){return Ti(e,co(e),t)}(e,nr(a,e))}else{if(!ot[d])return o?e:{};a=function(e,t,n){var r,i=e.constructor;switch(t){case P:return _i(e);case m:case y:return new i(+e);case I:return function(e,t){var n=t?_i(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case R:case A:case $:case D:case j:case N:case B:case q:case U:return xi(e,n);case x:return new i;case E:case k:return new i(e);case M:return function(e){var t=new e.constructor(e.source,de.exec(e));return t.lastIndex=e.lastIndex,t}(e);case T:return new i;case O:return r=e,Dn?Se(Dn.call(r)):{}}}(e,d,u)}}s||(s=new Gn);var p=s.get(e);if(p)return p;s.set(e,a),oa(e)?e.forEach((function(r){a.add(sr(r,t,n,r,e,s))})):ta(e)&&e.forEach((function(r,i){a.set(i,sr(r,t,n,i,e,s))}));var v=h?i:(l?c?to:eo:c?Pa:La)(e);return Ct(v||e,(function(r,i){v&&(r=e[i=r]),Xn(a,i,sr(r,t,n,i,e,s))})),a}function ar(e,t,n){var r=n.length;if(null==e)return!r;for(e=Se(e);r--;){var o=n[r],s=t[o],a=e[o];if(a===i&&!(o in e)||!s(a))return!1}return!0}function ur(e,t,n){if("function"!=typeof e)throw new Te(o);return ko((function(){e.apply(i,n)}),t)}function cr(e,t,n,r){var i=-1,o=Ot,s=!0,a=e.length,u=[],c=t.length;if(!a)return u;n&&(t=Pt(t,Yt(n))),r?(o=Lt,s=!1):t.length>=200&&(o=Zt,s=!1,t=new zn(t));e:for(;++i<a;){var l=e[i],h=null==n?l:n(l);if(l=r||0!==l?l:0,s&&h==h){for(var d=c;d--;)if(t[d]===h)continue e;u.push(l)}else o(t,h,r)||u.push(l)}return u}Nn.templateSettings={escape:Y,evaluate:J,interpolate:Z,variable:"",imports:{_:Nn}},Nn.prototype=qn.prototype,Nn.prototype.constructor=Nn,Un.prototype=Bn(qn.prototype),Un.prototype.constructor=Un,Fn.prototype=Bn(qn.prototype),Fn.prototype.constructor=Fn,Wn.prototype.clear=function(){this.__data__=Tn?Tn(null):{},this.size=0},Wn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Wn.prototype.get=function(e){var t=this.__data__;if(Tn){var n=t[e];return n===s?i:n}return Re.call(t,e)?t[e]:i},Wn.prototype.has=function(e){var t=this.__data__;return Tn?t[e]!==i:Re.call(t,e)},Wn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Tn&&t===i?s:t,this},Vn.prototype.clear=function(){this.__data__=[],this.size=0},Vn.prototype.delete=function(e){var t=this.__data__,n=er(t,e);return!(n<0||(n==t.length-1?t.pop():Ge.call(t,n,1),--this.size,0))},Vn.prototype.get=function(e){var t=this.__data__,n=er(t,e);return n<0?i:t[n][1]},Vn.prototype.has=function(e){return er(this.__data__,e)>-1},Vn.prototype.set=function(e,t){var n=this.__data__,r=er(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Hn.prototype.clear=function(){this.size=0,this.__data__={hash:new Wn,map:new(En||Vn),string:new Wn}},Hn.prototype.delete=function(e){var t=so(this,e).delete(e);return this.size-=t?1:0,t},Hn.prototype.get=function(e){return so(this,e).get(e)},Hn.prototype.has=function(e){return so(this,e).has(e)},Hn.prototype.set=function(e,t){var n=so(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},zn.prototype.add=zn.prototype.push=function(e){return this.__data__.set(e,s),this},zn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.clear=function(){this.__data__=new Vn,this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Gn.prototype.get=function(e){return this.__data__.get(e)},Gn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Vn){var r=n.__data__;if(!En||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Hn(r)}return n.set(e,t),this.size=n.size,this};var lr=Li(yr),hr=Li(br,!0);function dr(e,t){var n=!0;return lr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function fr(e,t,n){for(var r=-1,o=e.length;++r<o;){var s=e[r],a=t(s);if(null!=a&&(u===i?a==a&&!aa(a):n(a,u)))var u=a,c=s}return c}function pr(e,t){var n=[];return lr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function gr(e,t,n,r,i){var o=-1,s=e.length;for(n||(n=go),i||(i=[]);++o<s;){var a=e[o];t>0&&n(a)?t>1?gr(a,t-1,n,r,i):It(i,a):r||(i[i.length]=a)}return i}var vr=Pi(),mr=Pi(!0);function yr(e,t){return e&&vr(e,t,La)}function br(e,t){return e&&mr(e,t,La)}function wr(e,t){return kt(t,(function(t){return Js(e[t])}))}function _r(e,t){for(var n=0,r=(t=vi(t,e)).length;null!=e&&n<r;)e=e[Do(t[n++])];return n&&n==r?e:i}function xr(e,t,n){var r=t(e);return Ws(e)?r:It(r,n(e))}function Er(e){return null==e?e===i?"[object Undefined]":"[object Null]":Qe&&Qe in Se(e)?function(e){var t=Re.call(e,Qe),n=e[Qe];try{e[Qe]=i;var r=!0}catch(e){}var o=De.call(e);return r&&(t?e[Qe]=n:delete e[Qe]),o}(e):function(e){return De.call(e)}(e)}function Sr(e,t){return e>t}function Cr(e,t){return null!=e&&Re.call(e,t)}function Mr(e,t){return null!=e&&t in Se(e)}function Tr(e,t,n){for(var o=n?Lt:Ot,s=e[0].length,a=e.length,u=a,c=r(a),l=1/0,h=[];u--;){var d=e[u];u&&t&&(d=Pt(d,Yt(t))),l=mn(d.length,l),c[u]=!n&&(t||s>=120&&d.length>=120)?new zn(u&&d):i}d=e[0];var f=-1,p=c[0];e:for(;++f<s&&h.length<l;){var g=d[f],v=t?t(g):g;if(g=n||0!==g?g:0,!(p?Zt(p,v):o(h,v,n))){for(u=a;--u;){var m=c[u];if(!(m?Zt(m,v):o(e[u],v,n)))continue e}p&&p.push(v),h.push(g)}}return h}function kr(e,t,n){var r=null==(e=Co(e,t=vi(t,e)))?e:e[Do(Yo(t))];return null==r?i:Et(r,e,n)}function Or(e){return ea(e)&&Er(e)==g}function Lr(e,t,n,r,o){return e===t||(null==e||null==t||!ea(e)&&!ea(t)?e!=e&&t!=t:function(e,t,n,r,o,s){var a=Ws(e),u=Ws(t),c=a?v:ho(e),l=u?v:ho(t),h=(c=c==g?S:c)==S,d=(l=l==g?S:l)==S,f=c==l;if(f&&Gs(e)){if(!Gs(t))return!1;a=!0,h=!1}if(f&&!h)return s||(s=new Gn),a||ua(e)?Qi(e,t,n,r,o,s):function(e,t,n,r,i,o,s){switch(n){case I:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case P:return!(e.byteLength!=t.byteLength||!o(new Fe(e),new Fe(t)));case m:case y:case E:return Bs(+e,+t);case b:return e.name==t.name&&e.message==t.message;case M:case k:return e==t+"";case x:var a=on;case T:var u=1&r;if(a||(a=un),e.size!=t.size&&!u)return!1;var c=s.get(e);if(c)return c==t;r|=2,s.set(e,t);var l=Qi(a(e),a(t),r,i,o,s);return s.delete(e),l;case O:if(Dn)return Dn.call(e)==Dn.call(t)}return!1}(e,t,c,n,r,o,s);if(!(1&n)){var p=h&&Re.call(e,"__wrapped__"),w=d&&Re.call(t,"__wrapped__");if(p||w){var _=p?e.value():e,C=w?t.value():t;return s||(s=new Gn),o(_,C,n,r,s)}}return!!f&&(s||(s=new Gn),function(e,t,n,r,o,s){var a=1&n,u=eo(e),c=u.length;if(c!=eo(t).length&&!a)return!1;for(var l=c;l--;){var h=u[l];if(!(a?h in t:Re.call(t,h)))return!1}var d=s.get(e),f=s.get(t);if(d&&f)return d==t&&f==e;var p=!0;s.set(e,t),s.set(t,e);for(var g=a;++l<c;){var v=e[h=u[l]],m=t[h];if(r)var y=a?r(m,v,h,t,e,s):r(v,m,h,e,t,s);if(!(y===i?v===m||o(v,m,n,r,s):y)){p=!1;break}g||(g="constructor"==h)}if(p&&!g){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(p=!1)}return s.delete(e),s.delete(t),p}(e,t,n,r,o,s))}(e,t,n,r,Lr,o))}function Pr(e,t,n,r){var o=n.length,s=o,a=!r;if(null==e)return!s;for(e=Se(e);o--;){var u=n[o];if(a&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++o<s;){var c=(u=n[o])[0],l=e[c],h=u[1];if(a&&u[2]){if(l===i&&!(c in e))return!1}else{var d=new Gn;if(r)var f=r(l,h,c,e,t,d);if(!(f===i?Lr(h,l,3,r,d):f))return!1}}return!0}function Ir(e){return!(!Xs(e)||(t=e,$e&&$e in t))&&(Js(e)?Be:ge).test(jo(e));var t}function Rr(e){return"function"==typeof e?e:null==e?nu:"object"==typeof e?Ws(e)?Nr(e[0],e[1]):jr(e):hu(e)}function Ar(e){if(!_o(e))return gn(e);var t=[];for(var n in Se(e))Re.call(e,n)&&"constructor"!=n&&t.push(n);return t}function $r(e,t){return e<t}function Dr(e,t){var n=-1,i=Hs(e)?r(e.length):[];return lr(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}function jr(e){var t=ao(e);return 1==t.length&&t[0][2]?Eo(t[0][0],t[0][1]):function(n){return n===e||Pr(n,e,t)}}function Nr(e,t){return yo(e)&&xo(t)?Eo(Do(e),t):function(n){var r=Ca(n,e);return r===i&&r===t?Ma(n,e):Lr(t,r,3)}}function Br(e,t,n,r,o){e!==t&&vr(t,(function(s,a){if(o||(o=new Gn),Xs(s))!function(e,t,n,r,o,s,a){var u=Mo(e,n),c=Mo(t,n),l=a.get(c);if(l)Qn(e,n,l);else{var h=s?s(u,c,n+"",e,t,a):i,d=h===i;if(d){var f=Ws(c),p=!f&&Gs(c),g=!f&&!p&&ua(c);h=c,f||p||g?Ws(u)?h=u:zs(u)?h=Mi(u):p?(d=!1,h=wi(c,!0)):g?(d=!1,h=xi(c,!0)):h=[]:ra(c)||Fs(c)?(h=u,Fs(u)?h=va(u):Xs(u)&&!Js(u)||(h=po(c))):d=!1}d&&(a.set(c,h),o(h,c,r,s,a),a.delete(c)),Qn(e,n,h)}}(e,t,a,n,Br,r,o);else{var u=r?r(Mo(e,a),s,a+"",e,t,o):i;u===i&&(u=s),Qn(e,a,u)}}),Pa)}function qr(e,t){var n=e.length;if(n)return vo(t+=t<0?n:0,n)?e[t]:i}function Ur(e,t,n){t=t.length?Pt(t,(function(e){return Ws(e)?function(t){return _r(t,1===e.length?e[0]:e)}:e})):[nu];var r=-1;t=Pt(t,Yt(oo()));var i=Dr(e,(function(e,n,i){var o=Pt(t,(function(t){return t(e)}));return{criteria:o,index:++r,value:e}}));return function(e){var t=e.length;for(e.sort((function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,s=i.length,a=n.length;++r<s;){var u=Ei(i[r],o[r]);if(u)return r>=a?u:u*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}));t--;)e[t]=e[t].value;return e}(i)}function Fr(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var s=t[r],a=_r(e,s);n(a,s)&&Jr(o,vi(s,e),a)}return o}function Wr(e,t,n,r){var i=r?qt:Bt,o=-1,s=t.length,a=e;for(e===t&&(t=Mi(t)),n&&(a=Pt(e,Yt(n)));++o<s;)for(var u=0,c=t[o],l=n?n(c):c;(u=i(a,l,u,r))>-1;)a!==e&&Ge.call(a,u,1),Ge.call(e,u,1);return e}function Vr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;vo(i)?Ge.call(e,i,1):ui(e,i)}}return e}function Hr(e,t){return e+ft(wn()*(t-e+1))}function zr(e,t){var n="";if(!e||t<1||t>h)return n;do{t%2&&(n+=e),(t=ft(t/2))&&(e+=e)}while(t);return n}function Gr(e,t){return Oo(So(e,t,nu),e+"")}function Kr(e){return Yn(Ba(e))}function Yr(e,t){var n=Ba(e);return Io(n,or(t,0,n.length))}function Jr(e,t,n,r){if(!Xs(e))return e;for(var o=-1,s=(t=vi(t,e)).length,a=s-1,u=e;null!=u&&++o<s;){var c=Do(t[o]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=a){var h=u[c];(l=r?r(h,c,u):i)===i&&(l=Xs(h)?h:vo(t[o+1])?[]:{})}Xn(u,c,l),u=u[c]}return e}var Zr=kn?function(e,t){return kn.set(e,t),e}:nu,Qr=et?function(e,t){return et(e,"toString",{configurable:!0,enumerable:!1,value:Xa(t),writable:!0})}:nu;function Xr(e){return Io(Ba(e))}function ei(e,t,n){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var s=r(o);++i<o;)s[i]=e[i+t];return s}function ti(e,t){var n;return lr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function ni(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,s=e[o];null!==s&&!aa(s)&&(n?s<=t:s<t)?r=o+1:i=o}return i}return ri(e,t,nu,n)}function ri(e,t,n,r){var o=0,s=null==e?0:e.length;if(0===s)return 0;for(var a=(t=n(t))!=t,u=null===t,c=aa(t),l=t===i;o<s;){var h=ft((o+s)/2),d=n(e[h]),f=d!==i,p=null===d,g=d==d,v=aa(d);if(a)var m=r||g;else m=l?g&&(r||f):u?g&&f&&(r||!p):c?g&&f&&!p&&(r||!v):!p&&!v&&(r?d<=t:d<t);m?o=h+1:s=h}return mn(s,4294967294)}function ii(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n],a=t?t(s):s;if(!n||!Bs(a,u)){var u=a;o[i++]=0===s?0:s}}return o}function oi(e){return"number"==typeof e?e:aa(e)?d:+e}function si(e){if("string"==typeof e)return e;if(Ws(e))return Pt(e,si)+"";if(aa(e))return jn?jn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ai(e,t,n){var r=-1,i=Ot,o=e.length,s=!0,a=[],u=a;if(n)s=!1,i=Lt;else if(o>=200){var c=t?null:zi(e);if(c)return un(c);s=!1,i=Zt,u=new zn}else u=t?[]:a;e:for(;++r<o;){var l=e[r],h=t?t(l):l;if(l=n||0!==l?l:0,s&&h==h){for(var d=u.length;d--;)if(u[d]===h)continue e;t&&u.push(h),a.push(l)}else i(u,h,n)||(u!==a&&u.push(h),a.push(l))}return a}function ui(e,t){return null==(e=Co(e,t=vi(t,e)))||delete e[Do(Yo(t))]}function ci(e,t,n,r){return Jr(e,t,n(_r(e,t)),r)}function li(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?ei(e,r?0:o,r?o+1:i):ei(e,r?o+1:0,r?i:o)}function hi(e,t){var n=e;return n instanceof Fn&&(n=n.value()),Rt(t,(function(e,t){return t.func.apply(t.thisArg,It([e],t.args))}),n)}function di(e,t,n){var i=e.length;if(i<2)return i?ai(e[0]):[];for(var o=-1,s=r(i);++o<i;)for(var a=e[o],u=-1;++u<i;)u!=o&&(s[o]=cr(s[o]||a,e[u],t,n));return ai(gr(s,1),t,n)}function fi(e,t,n){for(var r=-1,o=e.length,s=t.length,a={};++r<o;){var u=r<s?t[r]:i;n(a,e[r],u)}return a}function pi(e){return zs(e)?e:[]}function gi(e){return"function"==typeof e?e:nu}function vi(e,t){return Ws(e)?e:yo(e,t)?[e]:$o(ma(e))}var mi=Gr;function yi(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:ei(e,t,n)}var bi=st||function(e){return ht.clearTimeout(e)};function wi(e,t){if(t)return e.slice();var n=e.length,r=We?We(n):new e.constructor(n);return e.copy(r),r}function _i(e){var t=new e.constructor(e.byteLength);return new Fe(t).set(new Fe(e)),t}function xi(e,t){var n=t?_i(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ei(e,t){if(e!==t){var n=e!==i,r=null===e,o=e==e,s=aa(e),a=t!==i,u=null===t,c=t==t,l=aa(t);if(!u&&!l&&!s&&e>t||s&&a&&c&&!u&&!l||r&&a&&c||!n&&c||!o)return 1;if(!r&&!s&&!l&&e<t||l&&n&&o&&!r&&!s||u&&n&&o||!a&&o||!c)return-1}return 0}function Si(e,t,n,i){for(var o=-1,s=e.length,a=n.length,u=-1,c=t.length,l=vn(s-a,0),h=r(c+l),d=!i;++u<c;)h[u]=t[u];for(;++o<a;)(d||o<s)&&(h[n[o]]=e[o]);for(;l--;)h[u++]=e[o++];return h}function Ci(e,t,n,i){for(var o=-1,s=e.length,a=-1,u=n.length,c=-1,l=t.length,h=vn(s-u,0),d=r(h+l),f=!i;++o<h;)d[o]=e[o];for(var p=o;++c<l;)d[p+c]=t[c];for(;++a<u;)(f||o<s)&&(d[p+n[a]]=e[o++]);return d}function Mi(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function Ti(e,t,n,r){var o=!n;n||(n={});for(var s=-1,a=t.length;++s<a;){var u=t[s],c=r?r(n[u],e[u],u,n,e):i;c===i&&(c=e[u]),o?rr(n,u,c):Xn(n,u,c)}return n}function ki(e,t){return function(n,r){var i=Ws(n)?St:tr,o=t?t():{};return i(n,e,oo(r,2),o)}}function Oi(e){return Gr((function(t,n){var r=-1,o=n.length,s=o>1?n[o-1]:i,a=o>2?n[2]:i;for(s=e.length>3&&"function"==typeof s?(o--,s):i,a&&mo(n[0],n[1],a)&&(s=o<3?i:s,o=1),t=Se(t);++r<o;){var u=n[r];u&&e(t,u,r,s)}return t}))}function Li(e,t){return function(n,r){if(null==n)return n;if(!Hs(n))return e(n,r);for(var i=n.length,o=t?i:-1,s=Se(n);(t?o--:++o<i)&&!1!==r(s[o],o,s););return n}}function Pi(e){return function(t,n,r){for(var i=-1,o=Se(t),s=r(t),a=s.length;a--;){var u=s[e?a:++i];if(!1===n(o[u],u,o))break}return t}}function Ii(e){return function(t){var n=rn(t=ma(t))?hn(t):i,r=n?n[0]:t.charAt(0),o=n?yi(n,1).join(""):t.slice(1);return r[e]()+o}}function Ri(e){return function(t){return Rt(Ja(Fa(t).replace(Je,"")),e,"")}}function Ai(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Bn(e.prototype),r=e.apply(n,t);return Xs(r)?r:n}}function $i(e){return function(t,n,r){var o=Se(t);if(!Hs(t)){var s=oo(n,3);t=La(t),n=function(e){return s(o[e],e,o)}}var a=e(t,n,r);return a>-1?o[s?t[a]:a]:i}}function Di(e){return Xi((function(t){var n=t.length,r=n,s=Un.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new Te(o);if(s&&!u&&"wrapper"==ro(a))var u=new Un([],!0)}for(r=u?r:n;++r<n;){var c=ro(a=t[r]),l="wrapper"==c?no(a):i;u=l&&bo(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?u[ro(l[0])].apply(u,l[3]):1==a.length&&bo(a)?u[c]():u.thru(a)}return function(){var e=arguments,r=e[0];if(u&&1==e.length&&Ws(r))return u.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}}))}function ji(e,t,n,o,s,a,u,l,h,d){var f=t&c,p=1&t,g=2&t,v=24&t,m=512&t,y=g?i:Ai(e);return function c(){for(var b=arguments.length,w=r(b),_=b;_--;)w[_]=arguments[_];if(v)var x=io(c),E=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(w,x);if(o&&(w=Si(w,o,s,v)),a&&(w=Ci(w,a,u,v)),b-=E,v&&b<d){var S=an(w,x);return Vi(e,t,ji,c.placeholder,n,w,S,l,h,d-b)}var C=p?n:this,M=g?C[e]:e;return b=w.length,l?w=function(e,t){for(var n=e.length,r=mn(t.length,n),o=Mi(e);r--;){var s=t[r];e[r]=vo(s,n)?o[s]:i}return e}(w,l):m&&b>1&&w.reverse(),f&&h<b&&(w.length=h),this&&this!==ht&&this instanceof c&&(M=y||Ai(M)),M.apply(C,w)}}function Ni(e,t){return function(n,r){return function(e,t,n,r){return yr(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function Bi(e,t){return function(n,r){var o;if(n===i&&r===i)return t;if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=si(n),r=si(r)):(n=oi(n),r=oi(r)),o=e(n,r)}return o}}function qi(e){return Xi((function(t){return t=Pt(t,Yt(oo())),Gr((function(n){var r=this;return e(t,(function(e){return Et(e,r,n)}))}))}))}function Ui(e,t){var n=(t=t===i?" ":si(t)).length;if(n<2)return n?zr(t,e):t;var r=zr(t,dt(e/ln(t)));return rn(t)?yi(hn(r),0,e).join(""):r.slice(0,e)}function Fi(e){return function(t,n,o){return o&&"number"!=typeof o&&mo(t,n,o)&&(n=o=i),t=da(t),n===i?(n=t,t=0):n=da(n),function(e,t,n,i){for(var o=-1,s=vn(dt((t-e)/(n||1)),0),a=r(s);s--;)a[i?s:++o]=e,e+=n;return a}(t,n,o=o===i?t<n?1:-1:da(o),e)}}function Wi(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ga(t),n=ga(n)),e(t,n)}}function Vi(e,t,n,r,o,s,a,c,l,h){var d=8&t;t|=d?u:64,4&(t&=~(d?64:u))||(t&=-4);var f=[e,t,o,d?s:i,d?a:i,d?i:s,d?i:a,c,l,h],p=n.apply(i,f);return bo(e)&&To(p,f),p.placeholder=r,Lo(p,e,t)}function Hi(e){var t=Ee[e];return function(e,n){if(e=ga(e),(n=null==n?0:mn(fa(n),292))&&Dt(e)){var r=(ma(e)+"e").split("e");return+((r=(ma(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var zi=Cn&&1/un(new Cn([,-0]))[1]==l?function(e){return new Cn(e)}:au;function Gi(e){return function(t){var n=ho(t);return n==x?on(t):n==T?cn(t):function(e,t){return Pt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Ki(e,t,n,s,l,h,d,f){var p=2&t;if(!p&&"function"!=typeof e)throw new Te(o);var g=s?s.length:0;if(g||(t&=-97,s=l=i),d=d===i?d:vn(fa(d),0),f=f===i?f:fa(f),g-=l?l.length:0,64&t){var v=s,m=l;s=l=i}var y=p?i:no(e),b=[e,t,n,s,l,v,m,h,d,f];if(y&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<131,s=r==c&&8==n||r==c&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!o&&!s)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var u=t[3];if(u){var l=e[3];e[3]=l?Si(l,u,t[4]):u,e[4]=l?an(e[3],a):t[4]}(u=t[5])&&(l=e[5],e[5]=l?Ci(l,u,t[6]):u,e[6]=l?an(e[5],a):t[6]),(u=t[7])&&(e[7]=u),r&c&&(e[8]=null==e[8]?t[8]:mn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(b,y),e=b[0],t=b[1],n=b[2],s=b[3],l=b[4],!(f=b[9]=b[9]===i?p?0:e.length:vn(b[9]-g,0))&&24&t&&(t&=-25),t&&1!=t)w=8==t||16==t?function(e,t,n){var o=Ai(e);return function s(){for(var a=arguments.length,u=r(a),c=a,l=io(s);c--;)u[c]=arguments[c];var h=a<3&&u[0]!==l&&u[a-1]!==l?[]:an(u,l);return(a-=h.length)<n?Vi(e,t,ji,s.placeholder,i,u,h,i,i,n-a):Et(this&&this!==ht&&this instanceof s?o:e,this,u)}}(e,t,f):t!=u&&33!=t||l.length?ji.apply(i,b):function(e,t,n,i){var o=1&t,s=Ai(e);return function t(){for(var a=-1,u=arguments.length,c=-1,l=i.length,h=r(l+u),d=this&&this!==ht&&this instanceof t?s:e;++c<l;)h[c]=i[c];for(;u--;)h[c++]=arguments[++a];return Et(d,o?n:this,h)}}(e,t,n,s);else var w=function(e,t,n){var r=1&t,i=Ai(e);return function t(){return(this&&this!==ht&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,n);return Lo((y?Zr:To)(w,b),e,t)}function Yi(e,t,n,r){return e===i||Bs(e,Le[n])&&!Re.call(r,n)?t:e}function Ji(e,t,n,r,o,s){return Xs(e)&&Xs(t)&&(s.set(t,e),Br(e,t,i,Ji,s),s.delete(t)),e}function Zi(e){return ra(e)?i:e}function Qi(e,t,n,r,o,s){var a=1&n,u=e.length,c=t.length;if(u!=c&&!(a&&c>u))return!1;var l=s.get(e),h=s.get(t);if(l&&h)return l==t&&h==e;var d=-1,f=!0,p=2&n?new zn:i;for(s.set(e,t),s.set(t,e);++d<u;){var g=e[d],v=t[d];if(r)var m=a?r(v,g,d,t,e,s):r(g,v,d,e,t,s);if(m!==i){if(m)continue;f=!1;break}if(p){if(!$t(t,(function(e,t){if(!Zt(p,t)&&(g===e||o(g,e,n,r,s)))return p.push(t)}))){f=!1;break}}else if(g!==v&&!o(g,v,n,r,s)){f=!1;break}}return s.delete(e),s.delete(t),f}function Xi(e){return Oo(So(e,i,Vo),e+"")}function eo(e){return xr(e,La,co)}function to(e){return xr(e,Pa,lo)}var no=kn?function(e){return kn.get(e)}:au;function ro(e){for(var t=e.name+"",n=On[t],r=Re.call(On,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function io(e){return(Re.call(Nn,"placeholder")?Nn:e).placeholder}function oo(){var e=Nn.iteratee||ru;return e=e===ru?Rr:e,arguments.length?e(arguments[0],arguments[1]):e}function so(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function ao(e){for(var t=La(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,xo(i)]}return t}function uo(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return Ir(n)?n:i}var co=gt?function(e){return null==e?[]:(e=Se(e),kt(gt(e),(function(t){return ze.call(e,t)})))}:pu,lo=gt?function(e){for(var t=[];e;)It(t,co(e)),e=Ve(e);return t}:pu,ho=Er;function fo(e,t,n){for(var r=-1,i=(t=vi(t,e)).length,o=!1;++r<i;){var s=Do(t[r]);if(!(o=null!=e&&n(e,s)))break;e=e[s]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Qs(i)&&vo(s,i)&&(Ws(e)||Fs(e))}function po(e){return"function"!=typeof e.constructor||_o(e)?{}:Bn(Ve(e))}function go(e){return Ws(e)||Fs(e)||!!(Ke&&e&&e[Ke])}function vo(e,t){var n=typeof e;return!!(t=null==t?h:t)&&("number"==n||"symbol"!=n&&me.test(e))&&e>-1&&e%1==0&&e<t}function mo(e,t,n){if(!Xs(n))return!1;var r=typeof t;return!!("number"==r?Hs(n)&&vo(t,n.length):"string"==r&&t in n)&&Bs(n[t],e)}function yo(e,t){if(Ws(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!aa(e))||X.test(e)||!Q.test(e)||null!=t&&e in Se(t)}function bo(e){var t=ro(e),n=Nn[t];if("function"!=typeof n||!(t in Fn.prototype))return!1;if(e===n)return!0;var r=no(n);return!!r&&e===r[0]}(xn&&ho(new xn(new ArrayBuffer(1)))!=I||En&&ho(new En)!=x||Sn&&ho(Sn.resolve())!=C||Cn&&ho(new Cn)!=T||Mn&&ho(new Mn)!=L)&&(ho=function(e){var t=Er(e),n=t==S?e.constructor:i,r=n?jo(n):"";if(r)switch(r){case Ln:return I;case Pn:return x;case In:return C;case Rn:return T;case An:return L}return t});var wo=Pe?Js:gu;function _o(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Le)}function xo(e){return e==e&&!Xs(e)}function Eo(e,t){return function(n){return null!=n&&n[e]===t&&(t!==i||e in Se(n))}}function So(e,t,n){return t=vn(t===i?e.length-1:t,0),function(){for(var i=arguments,o=-1,s=vn(i.length-t,0),a=r(s);++o<s;)a[o]=i[t+o];o=-1;for(var u=r(t+1);++o<t;)u[o]=i[o];return u[t]=n(a),Et(e,this,u)}}function Co(e,t){return t.length<2?e:_r(e,ei(t,0,-1))}function Mo(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var To=Po(Zr),ko=lt||function(e,t){return ht.setTimeout(e,t)},Oo=Po(Qr);function Lo(e,t,n){var r=t+"";return Oo(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(oe,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Ct(p,(function(n){var r="_."+n[0];t&n[1]&&!Ot(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(ae):[]}(r),n)))}function Po(e){var t=0,n=0;return function(){var r=yn(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Io(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n<t;){var s=Hr(n,o),a=e[s];e[s]=e[n],e[n]=a}return e.length=t,e}var Ro,Ao,$o=(Ro=Rs((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,n,r,i){t.push(r?i.replace(le,"$1"):n||e)})),t}),(function(e){return 500===Ao.size&&Ao.clear(),e})),Ao=Ro.cache,Ro);function Do(e){if("string"==typeof e||aa(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function jo(e){if(null!=e){try{return Ie.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function No(e){if(e instanceof Fn)return e.clone();var t=new Un(e.__wrapped__,e.__chain__);return t.__actions__=Mi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Bo=Gr((function(e,t){return zs(e)?cr(e,gr(t,1,zs,!0)):[]})),qo=Gr((function(e,t){var n=Yo(t);return zs(n)&&(n=i),zs(e)?cr(e,gr(t,1,zs,!0),oo(n,2)):[]})),Uo=Gr((function(e,t){var n=Yo(t);return zs(n)&&(n=i),zs(e)?cr(e,gr(t,1,zs,!0),i,n):[]}));function Fo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:fa(n);return i<0&&(i=vn(r+i,0)),Nt(e,oo(t,3),i)}function Wo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==i&&(o=fa(n),o=n<0?vn(r+o,0):mn(o,r-1)),Nt(e,oo(t,3),o,!0)}function Vo(e){return null!=e&&e.length?gr(e,1):[]}function Ho(e){return e&&e.length?e[0]:i}var zo=Gr((function(e){var t=Pt(e,pi);return t.length&&t[0]===e[0]?Tr(t):[]})),Go=Gr((function(e){var t=Yo(e),n=Pt(e,pi);return t===Yo(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Tr(n,oo(t,2)):[]})),Ko=Gr((function(e){var t=Yo(e),n=Pt(e,pi);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?Tr(n,i,t):[]}));function Yo(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Jo=Gr(Zo);function Zo(e,t){return e&&e.length&&t&&t.length?Wr(e,t):e}var Qo=Xi((function(e,t){var n=null==e?0:e.length,r=ir(e,t);return Vr(e,Pt(t,(function(e){return vo(e,n)?+e:e})).sort(Ei)),r}));function Xo(e){return null==e?e:_n.call(e)}var es=Gr((function(e){return ai(gr(e,1,zs,!0))})),ts=Gr((function(e){var t=Yo(e);return zs(t)&&(t=i),ai(gr(e,1,zs,!0),oo(t,2))})),ns=Gr((function(e){var t=Yo(e);return t="function"==typeof t?t:i,ai(gr(e,1,zs,!0),i,t)}));function rs(e){if(!e||!e.length)return[];var t=0;return e=kt(e,(function(e){if(zs(e))return t=vn(e.length,t),!0})),Gt(t,(function(t){return Pt(e,Wt(t))}))}function is(e,t){if(!e||!e.length)return[];var n=rs(e);return null==t?n:Pt(n,(function(e){return Et(t,i,e)}))}var os=Gr((function(e,t){return zs(e)?cr(e,t):[]})),ss=Gr((function(e){return di(kt(e,zs))})),as=Gr((function(e){var t=Yo(e);return zs(t)&&(t=i),di(kt(e,zs),oo(t,2))})),us=Gr((function(e){var t=Yo(e);return t="function"==typeof t?t:i,di(kt(e,zs),i,t)})),cs=Gr(rs),ls=Gr((function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,is(e,n)}));function hs(e){var t=Nn(e);return t.__chain__=!0,t}function ds(e,t){return t(e)}var fs=Xi((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return ir(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Fn&&vo(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ds,args:[o],thisArg:i}),new Un(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(o)})),ps=ki((function(e,t,n){Re.call(e,n)?++e[n]:rr(e,n,1)})),gs=$i(Fo),vs=$i(Wo);function ms(e,t){return(Ws(e)?Ct:lr)(e,oo(t,3))}function ys(e,t){return(Ws(e)?Mt:hr)(e,oo(t,3))}var bs=ki((function(e,t,n){Re.call(e,n)?e[n].push(t):rr(e,n,[t])})),ws=Gr((function(e,t,n){var i=-1,o="function"==typeof t,s=Hs(e)?r(e.length):[];return lr(e,(function(e){s[++i]=o?Et(t,e,n):kr(e,t,n)})),s})),_s=ki((function(e,t,n){rr(e,n,t)}));function xs(e,t){return(Ws(e)?Pt:Dr)(e,oo(t,3))}var Es=ki((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),Ss=Gr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&mo(e,t[0],t[1])?t=[]:n>2&&mo(t[0],t[1],t[2])&&(t=[t[0]]),Ur(e,gr(t,1),[])})),Cs=ct||function(){return ht.Date.now()};function Ms(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Ki(e,c,i,i,i,i,t)}function Ts(e,t){var n;if("function"!=typeof t)throw new Te(o);return e=fa(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var ks=Gr((function(e,t,n){var r=1;if(n.length){var i=an(n,io(ks));r|=u}return Ki(e,r,t,n,i)})),Os=Gr((function(e,t,n){var r=3;if(n.length){var i=an(n,io(Os));r|=u}return Ki(t,r,e,n,i)}));function Ls(e,t,n){var r,s,a,u,c,l,h=0,d=!1,f=!1,p=!0;if("function"!=typeof e)throw new Te(o);function g(t){var n=r,o=s;return r=s=i,h=t,u=e.apply(o,n)}function v(e){var n=e-l;return l===i||n>=t||n<0||f&&e-h>=a}function m(){var e=Cs();if(v(e))return y(e);c=ko(m,function(e){var n=t-(e-l);return f?mn(n,a-(e-h)):n}(e))}function y(e){return c=i,p&&r?g(e):(r=s=i,u)}function b(){var e=Cs(),n=v(e);if(r=arguments,s=this,l=e,n){if(c===i)return function(e){return h=e,c=ko(m,t),d?g(e):u}(l);if(f)return bi(c),c=ko(m,t),g(l)}return c===i&&(c=ko(m,t)),u}return t=ga(t)||0,Xs(n)&&(d=!!n.leading,a=(f="maxWait"in n)?vn(ga(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p),b.cancel=function(){c!==i&&bi(c),h=0,r=l=s=c=i},b.flush=function(){return c===i?u:y(Cs())},b}var Ps=Gr((function(e,t){return ur(e,1,t)})),Is=Gr((function(e,t,n){return ur(e,ga(t)||0,n)}));function Rs(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Te(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(Rs.Cache||Hn),n}function As(e){if("function"!=typeof e)throw new Te(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Rs.Cache=Hn;var $s=mi((function(e,t){var n=(t=1==t.length&&Ws(t[0])?Pt(t[0],Yt(oo())):Pt(gr(t,1),Yt(oo()))).length;return Gr((function(r){for(var i=-1,o=mn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return Et(e,this,r)}))})),Ds=Gr((function(e,t){var n=an(t,io(Ds));return Ki(e,u,i,t,n)})),js=Gr((function(e,t){var n=an(t,io(js));return Ki(e,64,i,t,n)})),Ns=Xi((function(e,t){return Ki(e,256,i,i,i,t)}));function Bs(e,t){return e===t||e!=e&&t!=t}var qs=Wi(Sr),Us=Wi((function(e,t){return e>=t})),Fs=Or(function(){return arguments}())?Or:function(e){return ea(e)&&Re.call(e,"callee")&&!ze.call(e,"callee")},Ws=r.isArray,Vs=mt?Yt(mt):function(e){return ea(e)&&Er(e)==P};function Hs(e){return null!=e&&Qs(e.length)&&!Js(e)}function zs(e){return ea(e)&&Hs(e)}var Gs=vt||gu,Ks=yt?Yt(yt):function(e){return ea(e)&&Er(e)==y};function Ys(e){if(!ea(e))return!1;var t=Er(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ra(e)}function Js(e){if(!Xs(e))return!1;var t=Er(e);return t==w||t==_||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Zs(e){return"number"==typeof e&&e==fa(e)}function Qs(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=h}function Xs(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ea(e){return null!=e&&"object"==typeof e}var ta=bt?Yt(bt):function(e){return ea(e)&&ho(e)==x};function na(e){return"number"==typeof e||ea(e)&&Er(e)==E}function ra(e){if(!ea(e)||Er(e)!=S)return!1;var t=Ve(e);if(null===t)return!0;var n=Re.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ie.call(n)==je}var ia=wt?Yt(wt):function(e){return ea(e)&&Er(e)==M},oa=_t?Yt(_t):function(e){return ea(e)&&ho(e)==T};function sa(e){return"string"==typeof e||!Ws(e)&&ea(e)&&Er(e)==k}function aa(e){return"symbol"==typeof e||ea(e)&&Er(e)==O}var ua=xt?Yt(xt):function(e){return ea(e)&&Qs(e.length)&&!!it[Er(e)]},ca=Wi($r),la=Wi((function(e,t){return e<=t}));function ha(e){if(!e)return[];if(Hs(e))return sa(e)?hn(e):Mi(e);if(Ye&&e[Ye])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ye]());var t=ho(e);return(t==x?on:t==T?un:Ba)(e)}function da(e){return e?(e=ga(e))===l||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function fa(e){var t=da(e),n=t%1;return t==t?n?t-n:t:0}function pa(e){return e?or(fa(e),0,f):0}function ga(e){if("number"==typeof e)return e;if(aa(e))return d;if(Xs(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Xs(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Kt(e);var n=pe.test(e);return n||ve.test(e)?ut(e.slice(2),n?2:8):fe.test(e)?d:+e}function va(e){return Ti(e,Pa(e))}function ma(e){return null==e?"":si(e)}var ya=Oi((function(e,t){if(_o(t)||Hs(t))Ti(t,La(t),e);else for(var n in t)Re.call(t,n)&&Xn(e,n,t[n])})),ba=Oi((function(e,t){Ti(t,Pa(t),e)})),wa=Oi((function(e,t,n,r){Ti(t,Pa(t),e,r)})),_a=Oi((function(e,t,n,r){Ti(t,La(t),e,r)})),xa=Xi(ir),Ea=Gr((function(e,t){e=Se(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&mo(t[0],t[1],o)&&(r=1);++n<r;)for(var s=t[n],a=Pa(s),u=-1,c=a.length;++u<c;){var l=a[u],h=e[l];(h===i||Bs(h,Le[l])&&!Re.call(e,l))&&(e[l]=s[l])}return e})),Sa=Gr((function(e){return e.push(i,Ji),Et(Ra,i,e)}));function Ca(e,t,n){var r=null==e?i:_r(e,t);return r===i?n:r}function Ma(e,t){return null!=e&&fo(e,t,Mr)}var Ta=Ni((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=De.call(t)),e[t]=n}),Xa(nu)),ka=Ni((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=De.call(t)),Re.call(e,t)?e[t].push(n):e[t]=[n]}),oo),Oa=Gr(kr);function La(e){return Hs(e)?Kn(e):Ar(e)}function Pa(e){return Hs(e)?Kn(e,!0):function(e){if(!Xs(e))return function(e){var t=[];if(null!=e)for(var n in Se(e))t.push(n);return t}(e);var t=_o(e),n=[];for(var r in e)("constructor"!=r||!t&&Re.call(e,r))&&n.push(r);return n}(e)}var Ia=Oi((function(e,t,n){Br(e,t,n)})),Ra=Oi((function(e,t,n,r){Br(e,t,n,r)})),Aa=Xi((function(e,t){var n={};if(null==e)return n;var r=!1;t=Pt(t,(function(t){return t=vi(t,e),r||(r=t.length>1),t})),Ti(e,to(e),n),r&&(n=sr(n,7,Zi));for(var i=t.length;i--;)ui(n,t[i]);return n})),$a=Xi((function(e,t){return null==e?{}:function(e,t){return Fr(e,t,(function(t,n){return Ma(e,n)}))}(e,t)}));function Da(e,t){if(null==e)return{};var n=Pt(to(e),(function(e){return[e]}));return t=oo(t),Fr(e,n,(function(e,n){return t(e,n[0])}))}var ja=Gi(La),Na=Gi(Pa);function Ba(e){return null==e?[]:Jt(e,La(e))}var qa=Ri((function(e,t,n){return t=t.toLowerCase(),e+(n?Ua(t):t)}));function Ua(e){return Ya(ma(e).toLowerCase())}function Fa(e){return(e=ma(e))&&e.replace(ye,en).replace(Ze,"")}var Wa=Ri((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Va=Ri((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ha=Ii("toLowerCase"),za=Ri((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Ga=Ri((function(e,t,n){return e+(n?" ":"")+Ya(t)})),Ka=Ri((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ya=Ii("toUpperCase");function Ja(e,t,n){return e=ma(e),(t=n?i:t)===i?function(e){return tt.test(e)}(e)?function(e){return e.match(Xe)||[]}(e):function(e){return e.match(ue)||[]}(e):e.match(t)||[]}var Za=Gr((function(e,t){try{return Et(e,i,t)}catch(e){return Ys(e)?e:new _e(e)}})),Qa=Xi((function(e,t){return Ct(t,(function(t){t=Do(t),rr(e,t,ks(e[t],e))})),e}));function Xa(e){return function(){return e}}var eu=Di(),tu=Di(!0);function nu(e){return e}function ru(e){return Rr("function"==typeof e?e:sr(e,1))}var iu=Gr((function(e,t){return function(n){return kr(n,e,t)}})),ou=Gr((function(e,t){return function(n){return kr(e,n,t)}}));function su(e,t,n){var r=La(t),i=wr(t,r);null!=n||Xs(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=wr(t,La(t)));var o=!(Xs(n)&&"chain"in n&&!n.chain),s=Js(e);return Ct(i,(function(n){var r=t[n];e[n]=r,s&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=Mi(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,It([this.value()],arguments))})})),e}function au(){}var uu=qi(Pt),cu=qi(Tt),lu=qi($t);function hu(e){return yo(e)?Wt(Do(e)):function(e){return function(t){return _r(t,e)}}(e)}var du=Fi(),fu=Fi(!0);function pu(){return[]}function gu(){return!1}var vu,mu=Bi((function(e,t){return e+t}),0),yu=Hi("ceil"),bu=Bi((function(e,t){return e/t}),1),wu=Hi("floor"),_u=Bi((function(e,t){return e*t}),1),xu=Hi("round"),Eu=Bi((function(e,t){return e-t}),0);return Nn.after=function(e,t){if("function"!=typeof t)throw new Te(o);return e=fa(e),function(){if(--e<1)return t.apply(this,arguments)}},Nn.ary=Ms,Nn.assign=ya,Nn.assignIn=ba,Nn.assignInWith=wa,Nn.assignWith=_a,Nn.at=xa,Nn.before=Ts,Nn.bind=ks,Nn.bindAll=Qa,Nn.bindKey=Os,Nn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ws(e)?e:[e]},Nn.chain=hs,Nn.chunk=function(e,t,n){t=(n?mo(e,t,n):t===i)?1:vn(fa(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var s=0,a=0,u=r(dt(o/t));s<o;)u[a++]=ei(e,s,s+=t);return u},Nn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},Nn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return It(Ws(n)?Mi(n):[n],gr(t,1))},Nn.cond=function(e){var t=null==e?0:e.length,n=oo();return e=t?Pt(e,(function(e){if("function"!=typeof e[1])throw new Te(o);return[n(e[0]),e[1]]})):[],Gr((function(n){for(var r=-1;++r<t;){var i=e[r];if(Et(i[0],this,n))return Et(i[1],this,n)}}))},Nn.conforms=function(e){return function(e){var t=La(e);return function(n){return ar(n,e,t)}}(sr(e,1))},Nn.constant=Xa,Nn.countBy=ps,Nn.create=function(e,t){var n=Bn(e);return null==t?n:nr(n,t)},Nn.curry=function e(t,n,r){var o=Ki(t,8,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},Nn.curryRight=function e(t,n,r){var o=Ki(t,16,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},Nn.debounce=Ls,Nn.defaults=Ea,Nn.defaultsDeep=Sa,Nn.defer=Ps,Nn.delay=Is,Nn.difference=Bo,Nn.differenceBy=qo,Nn.differenceWith=Uo,Nn.drop=function(e,t,n){var r=null==e?0:e.length;return r?ei(e,(t=n||t===i?1:fa(t))<0?0:t,r):[]},Nn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?ei(e,0,(t=r-(t=n||t===i?1:fa(t)))<0?0:t):[]},Nn.dropRightWhile=function(e,t){return e&&e.length?li(e,oo(t,3),!0,!0):[]},Nn.dropWhile=function(e,t){return e&&e.length?li(e,oo(t,3),!0):[]},Nn.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&mo(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=fa(n))<0&&(n=-n>o?0:o+n),(r=r===i||r>o?o:fa(r))<0&&(r+=o),r=n>r?0:pa(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Nn.filter=function(e,t){return(Ws(e)?kt:pr)(e,oo(t,3))},Nn.flatMap=function(e,t){return gr(xs(e,t),1)},Nn.flatMapDeep=function(e,t){return gr(xs(e,t),l)},Nn.flatMapDepth=function(e,t,n){return n=n===i?1:fa(n),gr(xs(e,t),n)},Nn.flatten=Vo,Nn.flattenDeep=function(e){return null!=e&&e.length?gr(e,l):[]},Nn.flattenDepth=function(e,t){return null!=e&&e.length?gr(e,t=t===i?1:fa(t)):[]},Nn.flip=function(e){return Ki(e,512)},Nn.flow=eu,Nn.flowRight=tu,Nn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},Nn.functions=function(e){return null==e?[]:wr(e,La(e))},Nn.functionsIn=function(e){return null==e?[]:wr(e,Pa(e))},Nn.groupBy=bs,Nn.initial=function(e){return null!=e&&e.length?ei(e,0,-1):[]},Nn.intersection=zo,Nn.intersectionBy=Go,Nn.intersectionWith=Ko,Nn.invert=Ta,Nn.invertBy=ka,Nn.invokeMap=ws,Nn.iteratee=ru,Nn.keyBy=_s,Nn.keys=La,Nn.keysIn=Pa,Nn.map=xs,Nn.mapKeys=function(e,t){var n={};return t=oo(t,3),yr(e,(function(e,r,i){rr(n,t(e,r,i),e)})),n},Nn.mapValues=function(e,t){var n={};return t=oo(t,3),yr(e,(function(e,r,i){rr(n,r,t(e,r,i))})),n},Nn.matches=function(e){return jr(sr(e,1))},Nn.matchesProperty=function(e,t){return Nr(e,sr(t,1))},Nn.memoize=Rs,Nn.merge=Ia,Nn.mergeWith=Ra,Nn.method=iu,Nn.methodOf=ou,Nn.mixin=su,Nn.negate=As,Nn.nthArg=function(e){return e=fa(e),Gr((function(t){return qr(t,e)}))},Nn.omit=Aa,Nn.omitBy=function(e,t){return Da(e,As(oo(t)))},Nn.once=function(e){return Ts(2,e)},Nn.orderBy=function(e,t,n,r){return null==e?[]:(Ws(t)||(t=null==t?[]:[t]),Ws(n=r?i:n)||(n=null==n?[]:[n]),Ur(e,t,n))},Nn.over=uu,Nn.overArgs=$s,Nn.overEvery=cu,Nn.overSome=lu,Nn.partial=Ds,Nn.partialRight=js,Nn.partition=Es,Nn.pick=$a,Nn.pickBy=Da,Nn.property=hu,Nn.propertyOf=function(e){return function(t){return null==e?i:_r(e,t)}},Nn.pull=Jo,Nn.pullAll=Zo,Nn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Wr(e,t,oo(n,2)):e},Nn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Wr(e,t,i,n):e},Nn.pullAt=Qo,Nn.range=du,Nn.rangeRight=fu,Nn.rearg=Ns,Nn.reject=function(e,t){return(Ws(e)?kt:pr)(e,As(oo(t,3)))},Nn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=oo(t,3);++r<o;){var s=e[r];t(s,r,e)&&(n.push(s),i.push(r))}return Vr(e,i),n},Nn.rest=function(e,t){if("function"!=typeof e)throw new Te(o);return Gr(e,t=t===i?t:fa(t))},Nn.reverse=Xo,Nn.sampleSize=function(e,t,n){return t=(n?mo(e,t,n):t===i)?1:fa(t),(Ws(e)?Jn:Yr)(e,t)},Nn.set=function(e,t,n){return null==e?e:Jr(e,t,n)},Nn.setWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Jr(e,t,n,r)},Nn.shuffle=function(e){return(Ws(e)?Zn:Xr)(e)},Nn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&mo(e,t,n)?(t=0,n=r):(t=null==t?0:fa(t),n=n===i?r:fa(n)),ei(e,t,n)):[]},Nn.sortBy=Ss,Nn.sortedUniq=function(e){return e&&e.length?ii(e):[]},Nn.sortedUniqBy=function(e,t){return e&&e.length?ii(e,oo(t,2)):[]},Nn.split=function(e,t,n){return n&&"number"!=typeof n&&mo(e,t,n)&&(t=n=i),(n=n===i?f:n>>>0)?(e=ma(e))&&("string"==typeof t||null!=t&&!ia(t))&&!(t=si(t))&&rn(e)?yi(hn(e),0,n):e.split(t,n):[]},Nn.spread=function(e,t){if("function"!=typeof e)throw new Te(o);return t=null==t?0:vn(fa(t),0),Gr((function(n){var r=n[t],i=yi(n,0,t);return r&&It(i,r),Et(e,this,i)}))},Nn.tail=function(e){var t=null==e?0:e.length;return t?ei(e,1,t):[]},Nn.take=function(e,t,n){return e&&e.length?ei(e,0,(t=n||t===i?1:fa(t))<0?0:t):[]},Nn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ei(e,(t=r-(t=n||t===i?1:fa(t)))<0?0:t,r):[]},Nn.takeRightWhile=function(e,t){return e&&e.length?li(e,oo(t,3),!1,!0):[]},Nn.takeWhile=function(e,t){return e&&e.length?li(e,oo(t,3)):[]},Nn.tap=function(e,t){return t(e),e},Nn.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new Te(o);return Xs(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Ls(e,t,{leading:r,maxWait:t,trailing:i})},Nn.thru=ds,Nn.toArray=ha,Nn.toPairs=ja,Nn.toPairsIn=Na,Nn.toPath=function(e){return Ws(e)?Pt(e,Do):aa(e)?[e]:Mi($o(ma(e)))},Nn.toPlainObject=va,Nn.transform=function(e,t,n){var r=Ws(e),i=r||Gs(e)||ua(e);if(t=oo(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:Xs(e)&&Js(o)?Bn(Ve(e)):{}}return(i?Ct:yr)(e,(function(e,r,i){return t(n,e,r,i)})),n},Nn.unary=function(e){return Ms(e,1)},Nn.union=es,Nn.unionBy=ts,Nn.unionWith=ns,Nn.uniq=function(e){return e&&e.length?ai(e):[]},Nn.uniqBy=function(e,t){return e&&e.length?ai(e,oo(t,2)):[]},Nn.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?ai(e,i,t):[]},Nn.unset=function(e,t){return null==e||ui(e,t)},Nn.unzip=rs,Nn.unzipWith=is,Nn.update=function(e,t,n){return null==e?e:ci(e,t,gi(n))},Nn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:ci(e,t,gi(n),r)},Nn.values=Ba,Nn.valuesIn=function(e){return null==e?[]:Jt(e,Pa(e))},Nn.without=os,Nn.words=Ja,Nn.wrap=function(e,t){return Ds(gi(t),e)},Nn.xor=ss,Nn.xorBy=as,Nn.xorWith=us,Nn.zip=cs,Nn.zipObject=function(e,t){return fi(e||[],t||[],Xn)},Nn.zipObjectDeep=function(e,t){return fi(e||[],t||[],Jr)},Nn.zipWith=ls,Nn.entries=ja,Nn.entriesIn=Na,Nn.extend=ba,Nn.extendWith=wa,su(Nn,Nn),Nn.add=mu,Nn.attempt=Za,Nn.camelCase=qa,Nn.capitalize=Ua,Nn.ceil=yu,Nn.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=ga(n))==n?n:0),t!==i&&(t=(t=ga(t))==t?t:0),or(ga(e),t,n)},Nn.clone=function(e){return sr(e,4)},Nn.cloneDeep=function(e){return sr(e,5)},Nn.cloneDeepWith=function(e,t){return sr(e,5,t="function"==typeof t?t:i)},Nn.cloneWith=function(e,t){return sr(e,4,t="function"==typeof t?t:i)},Nn.conformsTo=function(e,t){return null==t||ar(e,t,La(t))},Nn.deburr=Fa,Nn.defaultTo=function(e,t){return null==e||e!=e?t:e},Nn.divide=bu,Nn.endsWith=function(e,t,n){e=ma(e),t=si(t);var r=e.length,o=n=n===i?r:or(fa(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},Nn.eq=Bs,Nn.escape=function(e){return(e=ma(e))&&K.test(e)?e.replace(z,tn):e},Nn.escapeRegExp=function(e){return(e=ma(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Nn.every=function(e,t,n){var r=Ws(e)?Tt:dr;return n&&mo(e,t,n)&&(t=i),r(e,oo(t,3))},Nn.find=gs,Nn.findIndex=Fo,Nn.findKey=function(e,t){return jt(e,oo(t,3),yr)},Nn.findLast=vs,Nn.findLastIndex=Wo,Nn.findLastKey=function(e,t){return jt(e,oo(t,3),br)},Nn.floor=wu,Nn.forEach=ms,Nn.forEachRight=ys,Nn.forIn=function(e,t){return null==e?e:vr(e,oo(t,3),Pa)},Nn.forInRight=function(e,t){return null==e?e:mr(e,oo(t,3),Pa)},Nn.forOwn=function(e,t){return e&&yr(e,oo(t,3))},Nn.forOwnRight=function(e,t){return e&&br(e,oo(t,3))},Nn.get=Ca,Nn.gt=qs,Nn.gte=Us,Nn.has=function(e,t){return null!=e&&fo(e,t,Cr)},Nn.hasIn=Ma,Nn.head=Ho,Nn.identity=nu,Nn.includes=function(e,t,n,r){e=Hs(e)?e:Ba(e),n=n&&!r?fa(n):0;var i=e.length;return n<0&&(n=vn(i+n,0)),sa(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Bt(e,t,n)>-1},Nn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:fa(n);return i<0&&(i=vn(r+i,0)),Bt(e,t,i)},Nn.inRange=function(e,t,n){return t=da(t),n===i?(n=t,t=0):n=da(n),function(e,t,n){return e>=mn(t,n)&&e<vn(t,n)}(e=ga(e),t,n)},Nn.invoke=Oa,Nn.isArguments=Fs,Nn.isArray=Ws,Nn.isArrayBuffer=Vs,Nn.isArrayLike=Hs,Nn.isArrayLikeObject=zs,Nn.isBoolean=function(e){return!0===e||!1===e||ea(e)&&Er(e)==m},Nn.isBuffer=Gs,Nn.isDate=Ks,Nn.isElement=function(e){return ea(e)&&1===e.nodeType&&!ra(e)},Nn.isEmpty=function(e){if(null==e)return!0;if(Hs(e)&&(Ws(e)||"string"==typeof e||"function"==typeof e.splice||Gs(e)||ua(e)||Fs(e)))return!e.length;var t=ho(e);if(t==x||t==T)return!e.size;if(_o(e))return!Ar(e).length;for(var n in e)if(Re.call(e,n))return!1;return!0},Nn.isEqual=function(e,t){return Lr(e,t)},Nn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:i)?n(e,t):i;return r===i?Lr(e,t,i,n):!!r},Nn.isError=Ys,Nn.isFinite=function(e){return"number"==typeof e&&Dt(e)},Nn.isFunction=Js,Nn.isInteger=Zs,Nn.isLength=Qs,Nn.isMap=ta,Nn.isMatch=function(e,t){return e===t||Pr(e,t,ao(t))},Nn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,Pr(e,t,ao(t),n)},Nn.isNaN=function(e){return na(e)&&e!=+e},Nn.isNative=function(e){if(wo(e))throw new _e("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ir(e)},Nn.isNil=function(e){return null==e},Nn.isNull=function(e){return null===e},Nn.isNumber=na,Nn.isObject=Xs,Nn.isObjectLike=ea,Nn.isPlainObject=ra,Nn.isRegExp=ia,Nn.isSafeInteger=function(e){return Zs(e)&&e>=-9007199254740991&&e<=h},Nn.isSet=oa,Nn.isString=sa,Nn.isSymbol=aa,Nn.isTypedArray=ua,Nn.isUndefined=function(e){return e===i},Nn.isWeakMap=function(e){return ea(e)&&ho(e)==L},Nn.isWeakSet=function(e){return ea(e)&&"[object WeakSet]"==Er(e)},Nn.join=function(e,t){return null==e?"":Vt.call(e,t)},Nn.kebabCase=Wa,Nn.last=Yo,Nn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=fa(n))<0?vn(r+o,0):mn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):Nt(e,Ut,o,!0)},Nn.lowerCase=Va,Nn.lowerFirst=Ha,Nn.lt=ca,Nn.lte=la,Nn.max=function(e){return e&&e.length?fr(e,nu,Sr):i},Nn.maxBy=function(e,t){return e&&e.length?fr(e,oo(t,2),Sr):i},Nn.mean=function(e){return Ft(e,nu)},Nn.meanBy=function(e,t){return Ft(e,oo(t,2))},Nn.min=function(e){return e&&e.length?fr(e,nu,$r):i},Nn.minBy=function(e,t){return e&&e.length?fr(e,oo(t,2),$r):i},Nn.stubArray=pu,Nn.stubFalse=gu,Nn.stubObject=function(){return{}},Nn.stubString=function(){return""},Nn.stubTrue=function(){return!0},Nn.multiply=_u,Nn.nth=function(e,t){return e&&e.length?qr(e,fa(t)):i},Nn.noConflict=function(){return ht._===this&&(ht._=Ne),this},Nn.noop=au,Nn.now=Cs,Nn.pad=function(e,t,n){e=ma(e);var r=(t=fa(t))?ln(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Ui(ft(i),n)+e+Ui(dt(i),n)},Nn.padEnd=function(e,t,n){e=ma(e);var r=(t=fa(t))?ln(e):0;return t&&r<t?e+Ui(t-r,n):e},Nn.padStart=function(e,t,n){e=ma(e);var r=(t=fa(t))?ln(e):0;return t&&r<t?Ui(t-r,n)+e:e},Nn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),bn(ma(e).replace(re,""),t||0)},Nn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&mo(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=da(e),t===i?(t=e,e=0):t=da(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=wn();return mn(e+o*(t-e+at("1e-"+((o+"").length-1))),t)}return Hr(e,t)},Nn.reduce=function(e,t,n){var r=Ws(e)?Rt:Ht,i=arguments.length<3;return r(e,oo(t,4),n,i,lr)},Nn.reduceRight=function(e,t,n){var r=Ws(e)?At:Ht,i=arguments.length<3;return r(e,oo(t,4),n,i,hr)},Nn.repeat=function(e,t,n){return t=(n?mo(e,t,n):t===i)?1:fa(t),zr(ma(e),t)},Nn.replace=function(){var e=arguments,t=ma(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Nn.result=function(e,t,n){var r=-1,o=(t=vi(t,e)).length;for(o||(o=1,e=i);++r<o;){var s=null==e?i:e[Do(t[r])];s===i&&(r=o,s=n),e=Js(s)?s.call(e):s}return e},Nn.round=xu,Nn.runInContext=e,Nn.sample=function(e){return(Ws(e)?Yn:Kr)(e)},Nn.size=function(e){if(null==e)return 0;if(Hs(e))return sa(e)?ln(e):e.length;var t=ho(e);return t==x||t==T?e.size:Ar(e).length},Nn.snakeCase=za,Nn.some=function(e,t,n){var r=Ws(e)?$t:ti;return n&&mo(e,t,n)&&(t=i),r(e,oo(t,3))},Nn.sortedIndex=function(e,t){return ni(e,t)},Nn.sortedIndexBy=function(e,t,n){return ri(e,t,oo(n,2))},Nn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ni(e,t);if(r<n&&Bs(e[r],t))return r}return-1},Nn.sortedLastIndex=function(e,t){return ni(e,t,!0)},Nn.sortedLastIndexBy=function(e,t,n){return ri(e,t,oo(n,2),!0)},Nn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ni(e,t,!0)-1;if(Bs(e[n],t))return n}return-1},Nn.startCase=Ga,Nn.startsWith=function(e,t,n){return e=ma(e),n=null==n?0:or(fa(n),0,e.length),t=si(t),e.slice(n,n+t.length)==t},Nn.subtract=Eu,Nn.sum=function(e){return e&&e.length?zt(e,nu):0},Nn.sumBy=function(e,t){return e&&e.length?zt(e,oo(t,2)):0},Nn.template=function(e,t,n){var r=Nn.templateSettings;n&&mo(e,t,n)&&(t=i),e=ma(e),t=wa({},t,r,Yi);var o,s,a=wa({},t.imports,r.imports,Yi),u=La(a),c=Jt(a,u),l=0,h=t.interpolate||be,d="__p += '",f=Ce((t.escape||be).source+"|"+h.source+"|"+(h===Z?he:be).source+"|"+(t.evaluate||be).source+"|$","g"),p="//# sourceURL="+(Re.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rt+"]")+"\n";e.replace(f,(function(t,n,r,i,a,u){return r||(r=i),d+=e.slice(l,u).replace(we,nn),n&&(o=!0,d+="' +\n__e("+n+") +\n'"),a&&(s=!0,d+="';\n"+a+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=u+t.length,t})),d+="';\n";var g=Re.call(t,"variable")&&t.variable;if(g){if(ce.test(g))throw new _e("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(s?d.replace(F,""):d).replace(W,"$1").replace(V,"$1;"),d="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var v=Za((function(){return xe(u,p+"return "+d).apply(i,c)}));if(v.source=d,Ys(v))throw v;return v},Nn.times=function(e,t){if((e=fa(e))<1||e>h)return[];var n=f,r=mn(e,f);t=oo(t),e-=f;for(var i=Gt(r,t);++n<e;)t(n);return i},Nn.toFinite=da,Nn.toInteger=fa,Nn.toLength=pa,Nn.toLower=function(e){return ma(e).toLowerCase()},Nn.toNumber=ga,Nn.toSafeInteger=function(e){return e?or(fa(e),-9007199254740991,h):0===e?e:0},Nn.toString=ma,Nn.toUpper=function(e){return ma(e).toUpperCase()},Nn.trim=function(e,t,n){if((e=ma(e))&&(n||t===i))return Kt(e);if(!e||!(t=si(t)))return e;var r=hn(e),o=hn(t);return yi(r,Qt(r,o),Xt(r,o)+1).join("")},Nn.trimEnd=function(e,t,n){if((e=ma(e))&&(n||t===i))return e.slice(0,dn(e)+1);if(!e||!(t=si(t)))return e;var r=hn(e);return yi(r,0,Xt(r,hn(t))+1).join("")},Nn.trimStart=function(e,t,n){if((e=ma(e))&&(n||t===i))return e.replace(re,"");if(!e||!(t=si(t)))return e;var r=hn(e);return yi(r,Qt(r,hn(t))).join("")},Nn.truncate=function(e,t){var n=30,r="...";if(Xs(t)){var o="separator"in t?t.separator:o;n="length"in t?fa(t.length):n,r="omission"in t?si(t.omission):r}var s=(e=ma(e)).length;if(rn(e)){var a=hn(e);s=a.length}if(n>=s)return e;var u=n-ln(r);if(u<1)return r;var c=a?yi(a,0,u).join(""):e.slice(0,u);if(o===i)return c+r;if(a&&(u+=c.length-u),ia(o)){if(e.slice(u).search(o)){var l,h=c;for(o.global||(o=Ce(o.source,ma(de.exec(o))+"g")),o.lastIndex=0;l=o.exec(h);)var d=l.index;c=c.slice(0,d===i?u:d)}}else if(e.indexOf(si(o),u)!=u){var f=c.lastIndexOf(o);f>-1&&(c=c.slice(0,f))}return c+r},Nn.unescape=function(e){return(e=ma(e))&&G.test(e)?e.replace(H,fn):e},Nn.uniqueId=function(e){var t=++Ae;return ma(e)+t},Nn.upperCase=Ka,Nn.upperFirst=Ya,Nn.each=ms,Nn.eachRight=ys,Nn.first=Ho,su(Nn,(vu={},yr(Nn,(function(e,t){Re.call(Nn.prototype,t)||(vu[t]=e)})),vu),{chain:!1}),Nn.VERSION="4.17.21",Ct(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Nn[e].placeholder=Nn})),Ct(["drop","take"],(function(e,t){Fn.prototype[e]=function(n){n=n===i?1:vn(fa(n),0);var r=this.__filtered__&&!t?new Fn(this):this.clone();return r.__filtered__?r.__takeCount__=mn(n,r.__takeCount__):r.__views__.push({size:mn(n,f),type:e+(r.__dir__<0?"Right":"")}),r},Fn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Ct(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Fn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:oo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Ct(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Fn.prototype[e]=function(){return this[n](1).value()[0]}})),Ct(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Fn.prototype[e]=function(){return this.__filtered__?new Fn(this):this[n](1)}})),Fn.prototype.compact=function(){return this.filter(nu)},Fn.prototype.find=function(e){return this.filter(e).head()},Fn.prototype.findLast=function(e){return this.reverse().find(e)},Fn.prototype.invokeMap=Gr((function(e,t){return"function"==typeof e?new Fn(this):this.map((function(n){return kr(n,e,t)}))})),Fn.prototype.reject=function(e){return this.filter(As(oo(e)))},Fn.prototype.slice=function(e,t){e=fa(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Fn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=fa(t))<0?n.dropRight(-t):n.take(t-e)),n)},Fn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Fn.prototype.toArray=function(){return this.take(f)},yr(Fn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Nn[r?"take"+("last"==t?"Right":""):t],s=r||/^find/.test(t);o&&(Nn.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,u=t instanceof Fn,c=a[0],l=u||Ws(t),h=function(e){var t=o.apply(Nn,It([e],a));return r&&d?t[0]:t};l&&n&&"function"==typeof c&&1!=c.length&&(u=l=!1);var d=this.__chain__,f=!!this.__actions__.length,p=s&&!d,g=u&&!f;if(!s&&l){t=g?t:new Fn(this);var v=e.apply(t,a);return v.__actions__.push({func:ds,args:[h],thisArg:i}),new Un(v,d)}return p&&g?e.apply(this,a):(v=this.thru(h),p?r?v.value()[0]:v.value():v)})})),Ct(["pop","push","shift","sort","splice","unshift"],(function(e){var t=ke[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Nn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Ws(i)?i:[],e)}return this[n]((function(n){return t.apply(Ws(n)?n:[],e)}))}})),yr(Fn.prototype,(function(e,t){var n=Nn[t];if(n){var r=n.name+"";Re.call(On,r)||(On[r]=[]),On[r].push({name:t,func:n})}})),On[ji(i,2).name]=[{name:"wrapper",func:i}],Fn.prototype.clone=function(){var e=new Fn(this.__wrapped__);return e.__actions__=Mi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Mi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Mi(this.__views__),e},Fn.prototype.reverse=function(){if(this.__filtered__){var e=new Fn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Fn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ws(e),r=t<0,i=n?e.length:0,o=function(e,t,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],s=o.size;switch(o.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=mn(t,e+s);break;case"takeRight":e=vn(e,t-s)}}return{start:e,end:t}}(0,i,this.__views__),s=o.start,a=o.end,u=a-s,c=r?a:s-1,l=this.__iteratees__,h=l.length,d=0,f=mn(u,this.__takeCount__);if(!n||!r&&i==u&&f==u)return hi(e,this.__actions__);var p=[];e:for(;u--&&d<f;){for(var g=-1,v=e[c+=t];++g<h;){var m=l[g],y=m.iteratee,b=m.type,w=y(v);if(2==b)v=w;else if(!w){if(1==b)continue e;break e}}p[d++]=v}return p},Nn.prototype.at=fs,Nn.prototype.chain=function(){return hs(this)},Nn.prototype.commit=function(){return new Un(this.value(),this.__chain__)},Nn.prototype.next=function(){this.__values__===i&&(this.__values__=ha(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Nn.prototype.plant=function(e){for(var t,n=this;n instanceof qn;){var r=No(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},Nn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Fn){var t=e;return this.__actions__.length&&(t=new Fn(this)),(t=t.reverse()).__actions__.push({func:ds,args:[Xo],thisArg:i}),new Un(t,this.__chain__)}return this.thru(Xo)},Nn.prototype.toJSON=Nn.prototype.valueOf=Nn.prototype.value=function(){return hi(this.__wrapped__,this.__actions__)},Nn.prototype.first=Nn.prototype.head,Ye&&(Nn.prototype[Ye]=function(){return this}),Nn}();ht._=pn,(r=function(){return pn}.call(t,n,t,e))===i||(e.exports=r)}.call(this)},2545:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.partialClone=function e(t,n=3,r=[],i=void 0){if("object"!=typeof t||null===t||0===Object.getOwnPropertyNames(t).length)return t;const o=Array.isArray(t)?[]:{};if(0===n)return i||o;for(const s of Object.keys(t))r.includes(s)?o[s]=i||(Array.isArray(t)?[]:{}):Object.prototype.hasOwnProperty.call(t,s)&&(o[s]=e(t[s],n-1,r,i));return o}},2584:(e,t,n)=>{"use strict";const{configs:r,LEVEL:i,MESSAGE:o}=n(4763);class s{constructor(e={levels:r.npm.levels}){this.paddings=s.paddingForLevels(e.levels,e.filler),this.options=e}static getLongestLevel(e){const t=Object.keys(e).map((e=>e.length));return Math.max(...t)}static paddingForLevel(e,t,n){const r=n+1-e.length,i=Math.floor(r/t.length);return`${t}${t.repeat(i)}`.slice(0,r)}static paddingForLevels(e,t=" "){const n=s.getLongestLevel(e);return Object.keys(e).reduce(((e,r)=>(e[r]=s.paddingForLevel(r,t,n),e)),{})}transform(e,t){return e.message=`${this.paddings[e[i]]}${e.message}`,e[o]&&(e[o]=`${this.paddings[e[i]]}${e[o]}`),e}}e.exports=e=>new s(e),e.exports.Padder=e.exports.Format=s},2640:(e,t,n)=>{"use strict";n.d(t,{D4:()=>r,Dz:()=>a,EO:()=>i,Gv:()=>o,sp:()=>s});const r="0.10.0",i={COMMAND:"⌘",SEARCH_FORWARD:"⟳",SEARCH_BACKWARD:"⟲"},o="vscode-neovim",s=`asvetliakov.${o}`,a=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","/","]","right","left","up","down","backspace","delete"]},2711:(e,t,n)=>{"use strict";const r=t.format=n(5532);function i(e,t){Object.defineProperty(r,e,{get:()=>t(),configurable:!0})}t.levels=n(8272),i("align",(function(){return n(9426)})),i("errors",(function(){return n(7360)})),i("cli",(function(){return n(8745)})),i("combine",(function(){return n(2102)})),i("colorize",(function(){return n(9680)})),i("json",(function(){return n(1049)})),i("label",(function(){return n(8525)})),i("logstash",(function(){return n(6816)})),i("metadata",(function(){return n(8266)})),i("ms",(function(){return n(1863)})),i("padLevels",(function(){return n(2584)})),i("prettyPrint",(function(){return n(7133)})),i("printf",(function(){return n(8668)})),i("simple",(function(){return n(929)})),i("splat",(function(){return n(9099)})),i("timestamp",(function(){return n(4867)})),i("uncolorize",(function(){return n(6439)}))},2751:(e,t,n)=>{"use strict";const{LEVEL:r}=n(4763),i=n(4575),o=n(8010),s=n(7918)("winston:create-logger");e.exports=function(e={}){e.levels=e.levels||i.npm.levels;class t extends o{constructor(e){super(e)}}const n=new t(e);return Object.keys(e.levels).forEach((function(e){s('Define prototype method for "%s"',e),"log"!==e?(t.prototype[e]=function(...t){const i=this||n;if(1===t.length){const[o]=t,s=o&&o.message&&o||{message:o};return s.level=s[r]=e,i._addDefaultMeta(s),i.write(s),this||n}return 0===t.length?(i.log(e,""),i):i.log(e,...t)},t.prototype[function(e){return"is"+e.charAt(0).toUpperCase()+e.slice(1)+"Enabled"}(e)]=function(){return(this||n).isLevelEnabled(e)}):console.warn('Level "log" not defined: conflicts with the method "log". Use a different level name.')})),n}},2812:(e,t,n)=>{"use strict";var r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=c;var i=n(9362),o=n(5494);n(2017)(c,i);for(var s=r(o.prototype),a=0;a<s.length;a++){var u=s[a];c.prototype[u]||(c.prototype[u]=o.prototype[u])}function c(e){if(!(this instanceof c))return new c(e);i.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",l)))}function l(){this._writableState.ended||process.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},2828:(e,t,n)=>{"use strict";e.exports=l;var r=n(3291).F,i=r.ERR_METHOD_NOT_IMPLEMENTED,o=r.ERR_MULTIPLE_CALLBACK,s=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=r.ERR_TRANSFORM_WITH_LENGTH_0,u=n(2812);function c(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new o);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function l(e){if(!(this instanceof l))return new l(e);u.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",h)}function h(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush((function(t,n){d(e,t,n)}))}function d(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new a;if(e._transformState.transforming)throw new s;return e.push(null)}n(2017)(l,u),l.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},l.prototype._transform=function(e,t,n){n(new i("_transform()"))},l.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},l.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},l.prototype._destroy=function(e,t){u.prototype._destroy.call(this,e,(function(e){t(e)}))}},2858:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=c(n(2132)),i=c(n(8303)),o=c(n(1814)),s=n(4877),a=c(n(8494)),u=c(n(6884));function c(e){return e&&e.__esModule?e:{default:e}}t.default=e=>(t,n,c)=>{if(c=(0,r.default)(c),e<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!t)return c(null);if((0,s.isAsyncGenerator)(t))return(0,a.default)(t,e,n,c);if((0,s.isAsyncIterable)(t))return(0,a.default)(t[Symbol.asyncIterator](),e,n,c);var l=(0,i.default)(t),h=!1,d=!1,f=0,p=!1;function g(e,t){if(!d)if(f-=1,e)h=!0,c(e);else if(!1===e)h=!0,d=!0;else{if(t===u.default||h&&f<=0)return h=!0,c(null);p||v()}}function v(){for(p=!0;f<e&&!h;){var t=l();if(null===t)return h=!0,void(f<=0&&c(null));f+=1,n(t.value,t.key,(0,o.default)(g))}p=!1}v()},e.exports=t.default},2861:(e,t,n)=>{var r=n(181),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function s(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=s),o(i,s),s.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},s.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},3018:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.command=function(e,t){return function(n,i){const o=t&&!!t.sync,s="string"==typeof i,a=s?n[i]:n,u={};return["range","nargs","complete"].forEach((e=>{t&&void 0!==t[e]&&(u[e]=t[e])})),Object.defineProperty(a,r.NVIM_METHOD_NAME,{value:`command:${e}`}),Object.defineProperty(a,r.NVIM_SYNC,{value:!!o}),Object.defineProperty(a,r.NVIM_SPEC,{value:{type:"command",name:e,sync:!!o,opts:u}}),s&&(n[i]=a),n}};const r=n(3118)},3024:e=>{"use strict";e.exports=require("node:fs")},3106:e=>{"use strict";e.exports=require("zlib")},3118:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NVIM_METHOD_NAME=t.NVIM_SYNC=t.NVIM_SPEC=t.NVIM_DEV_MODE=t.NVIM_PLUGIN=void 0,t.NVIM_PLUGIN="_nvim_plugin",t.NVIM_DEV_MODE="_nvim_dev_mode",t.NVIM_SPEC="_nvim_rpc_spec",t.NVIM_SYNC="_nvim_rpc_sync",t.NVIM_METHOD_NAME="_nvim_rpc_method_name"},3141:(e,t,n)=>{"use strict";var r=n(2861).Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=c,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=l,this.end=h,t=3;break;default:return this.write=d,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,n=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"<22>";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"<22>";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"<22>"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function l(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function f(e){return e&&e.length?this.write(e):""}t.I=o,o.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"<22>":t},o.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=s(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||-2===i?0:(i=s(t[r]))>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||-2===i?0:(i=s(t[r]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},3193:e=>{"use strict";e.exports=require("string_decoder")},3199:e=>{"use strict";e.exports=function(e,t){var n=(t=t||process.argv||[]).indexOf("--"),r=/^-{1,2}/.test(e)?"":"--",i=t.indexOf(r+e);return-1!==i&&(-1===n||i<n)}},3252:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Tabpage=t.Window=t.Buffer=t.NeovimClient=t.Neovim=void 0;var r=n(3324);Object.defineProperty(t,"Neovim",{enumerable:!0,get:function(){return r.Neovim}});var i=n(5085);Object.defineProperty(t,"NeovimClient",{enumerable:!0,get:function(){return i.NeovimClient}});var o=n(1716);Object.defineProperty(t,"Buffer",{enumerable:!0,get:function(){return o.Buffer}});var s=n(6866);Object.defineProperty(t,"Window",{enumerable:!0,get:function(){return s.Window}});var a=n(6104);Object.defineProperty(t,"Tabpage",{enumerable:!0,get:function(){return a.Tabpage}})},3283:(e,t,n)=>{"use strict";n.r(t),n.d(t,{assign:()=>l,default:()=>L,defaultI18n:()=>p,format:()=>k,parse:()=>O,setGlobalDateI18n:()=>v,setGlobalDateMasks:()=>T});var r=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,i="\\d\\d?",o="\\d\\d",s="[^\\s]+",a=/\[([^]*?)\]/gm;function u(e,t){for(var n=[],r=0,i=e.length;r<i;r++)n.push(e[r].substr(0,t));return n}var c=function(e){return function(t,n){var r=n[e].map((function(e){return e.toLowerCase()})),i=r.indexOf(t.toLowerCase());return i>-1?i:null}};function l(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,i=t;r<i.length;r++){var o=i[r];for(var s in o)e[s]=o[s]}return e}var h=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],d=["January","February","March","April","May","June","July","August","September","October","November","December"],f=u(d,3),p={dayNamesShort:u(h,3),dayNames:h,monthNamesShort:f,monthNames:d,amPm:["am","pm"],DoFn:function(e){return e+["th","st","nd","rd"][e%10>3?0:(e-e%10!=10?1:0)*e%10]}},g=l({},p),v=function(e){return g=l(g,e)},m=function(e){return e.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},y=function(e,t){for(void 0===t&&(t=2),e=String(e);e.length<t;)e="0"+e;return e},b={D:function(e){return String(e.getDate())},DD:function(e){return y(e.getDate())},Do:function(e,t){return t.DoFn(e.getDate())},d:function(e){return String(e.getDay())},dd:function(e){return y(e.getDay())},ddd:function(e,t){return t.dayNamesShort[e.getDay()]},dddd:function(e,t){return t.dayNames[e.getDay()]},M:function(e){return String(e.getMonth()+1)},MM:function(e){return y(e.getMonth()+1)},MMM:function(e,t){return t.monthNamesShort[e.getMonth()]},MMMM:function(e,t){return t.monthNames[e.getMonth()]},YY:function(e){return y(String(e.getFullYear()),4).substr(2)},YYYY:function(e){return y(e.getFullYear(),4)},h:function(e){return String(e.getHours()%12||12)},hh:function(e){return y(e.getHours()%12||12)},H:function(e){return String(e.getHours())},HH:function(e){return y(e.getHours())},m:function(e){return String(e.getMinutes())},mm:function(e){return y(e.getMinutes())},s:function(e){return String(e.getSeconds())},ss:function(e){return y(e.getSeconds())},S:function(e){return String(Math.round(e.getMilliseconds()/100))},SS:function(e){return y(Math.round(e.getMilliseconds()/10),2)},SSS:function(e){return y(e.getMilliseconds(),3)},a:function(e,t){return e.getHours()<12?t.amPm[0]:t.amPm[1]},A:function(e,t){return e.getHours()<12?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},ZZ:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+y(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)},Z:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+y(Math.floor(Math.abs(t)/60),2)+":"+y(Math.abs(t)%60,2)}},w=function(e){return+e-1},_=[null,i],x=[null,s],E=["isPm",s,function(e,t){var n=e.toLowerCase();return n===t.amPm[0]?0:n===t.amPm[1]?1:null}],S=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(e){var t=(e+"").match(/([+-]|\d\d)/gi);if(t){var n=60*+t[1]+parseInt(t[2],10);return"+"===t[0]?n:-n}return 0}],C={D:["day",i],DD:["day",o],Do:["day",i+s,function(e){return parseInt(e,10)}],M:["month",i,w],MM:["month",o,w],YY:["year",o,function(e){var t=+(""+(new Date).getFullYear()).substr(0,2);return+(""+(+e>68?t-1:t)+e)}],h:["hour",i,void 0,"isPm"],hh:["hour",o,void 0,"isPm"],H:["hour",i],HH:["hour",o],m:["minute",i],mm:["minute",o],s:["second",i],ss:["second",o],YYYY:["year","\\d{4}"],S:["millisecond","\\d",function(e){return 100*+e}],SS:["millisecond",o,function(e){return 10*+e}],SSS:["millisecond","\\d{3}"],d:_,dd:_,ddd:x,dddd:x,MMM:["month",s,c("monthNamesShort")],MMMM:["month",s,c("monthNames")],a:E,A:E,ZZ:S,Z:S},M={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},T=function(e){return l(M,e)},k=function(e,t,n){if(void 0===t&&(t=M.default),void 0===n&&(n={}),"number"==typeof e&&(e=new Date(e)),"[object Date]"!==Object.prototype.toString.call(e)||isNaN(e.getTime()))throw new Error("Invalid Date pass to format");t=M[t]||t;var i=[];t=t.replace(a,(function(e,t){return i.push(t),"@@@"}));var o=l(l({},g),n);return(t=t.replace(r,(function(t){return b[t](e,o)}))).replace(/@@@/g,(function(){return i.shift()}))};function O(e,t,n){if(void 0===n&&(n={}),"string"!=typeof t)throw new Error("Invalid format in fecha parse");if(t=M[t]||t,e.length>1e3)return null;var i={year:(new Date).getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},o=[],s=[],u=t.replace(a,(function(e,t){return s.push(m(t)),"@@@"})),c={},h={};u=m(u).replace(r,(function(e){var t=C[e],n=t[0],r=t[1],i=t[3];if(c[n])throw new Error("Invalid format. "+n+" specified twice in format");return c[n]=!0,i&&(h[i]=!0),o.push(t),"("+r+")"})),Object.keys(h).forEach((function(e){if(!c[e])throw new Error("Invalid format. "+e+" is required in specified format")})),u=u.replace(/@@@/g,(function(){return s.shift()}));var d=e.match(new RegExp(u,"i"));if(!d)return null;for(var f,p=l(l({},g),n),v=1;v<d.length;v++){var y=o[v-1],b=y[0],w=y[2],_=w?w(d[v],p):+d[v];if(null==_)return null;i[b]=_}if(1===i.isPm&&null!=i.hour&&12!=+i.hour?i.hour=+i.hour+12:0===i.isPm&&12==+i.hour&&(i.hour=0),null==i.timezoneOffset){f=new Date(i.year,i.month,i.day,i.hour,i.minute,i.second,i.millisecond);for(var x=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],E=(v=0,x.length);v<E;v++)if(c[x[v][0]]&&i[x[v][0]]!==f[x[v][1]]())return null}else if(f=new Date(Date.UTC(i.year,i.month,i.day,i.hour,i.minute-i.timezoneOffset,i.second,i.millisecond)),i.month>11||i.month<0||i.day>31||i.day<1||i.hour>23||i.hour<0||i.minute>59||i.minute<0||i.second>59||i.second<0)return null;return f}const L={format:k,parse:O,defaultI18n:p,setGlobalDateI18n:v,setGlobalDateMasks:T}},3285:(e,t,n)=>{"use strict";var r;function i(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(3484),s=Symbol("lastResolve"),a=Symbol("lastReject"),u=Symbol("error"),c=Symbol("ended"),l=Symbol("lastPromise"),h=Symbol("handlePromise"),d=Symbol("stream");function f(e,t){return{value:e,done:t}}function p(e){var t=e[s];if(null!==t){var n=e[d].read();null!==n&&(e[l]=null,e[s]=null,e[a]=null,t(f(n,!1)))}}function g(e){process.nextTick(p,e)}var v=Object.getPrototypeOf((function(){})),m=Object.setPrototypeOf((i(r={get stream(){return this[d]},next:function(){var e=this,t=this[u];if(null!==t)return Promise.reject(t);if(this[c])return Promise.resolve(f(void 0,!0));if(this[d].destroyed)return new Promise((function(t,n){process.nextTick((function(){e[u]?n(e[u]):t(f(void 0,!0))}))}));var n,r=this[l];if(r)n=new Promise(function(e,t){return function(n,r){e.then((function(){t[c]?n(f(void 0,!0)):t[h](n,r)}),r)}}(r,this));else{var i=this[d].read();if(null!==i)return Promise.resolve(f(i,!1));n=new Promise(this[h])}return this[l]=n,n}},Symbol.asyncIterator,(function(){return this})),i(r,"return",(function(){var e=this;return new Promise((function(t,n){e[d].destroy(null,(function(e){e?n(e):t(f(void 0,!0))}))}))})),r),v);e.exports=function(e){var t,n=Object.create(m,(i(t={},d,{value:e,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,u,{value:null,writable:!0}),i(t,c,{value:e._readableState.endEmitted,writable:!0}),i(t,h,{value:function(e,t){var r=n[d].read();r?(n[l]=null,n[s]=null,n[a]=null,e(f(r,!1))):(n[s]=e,n[a]=t)},writable:!0}),t));return n[l]=null,o(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[a];return null!==t&&(n[l]=null,n[s]=null,n[a]=null,t(e)),void(n[u]=e)}var r=n[s];null!==r&&(n[l]=null,n[s]=null,n[a]=null,r(f(void 0,!0))),n[c]=!0})),e.on("readable",g.bind(null,n)),n}},3291:e=>{"use strict";const t={};function n(e,n,r){r||(r=Error);class i extends r{constructor(e,t,r){super(function(e,t,r){return"string"==typeof n?n:n(e,t,r)}(e,t,r))}}i.prototype.name=r.name,i.prototype.code=e,t[e]=i}function r(e,t){if(Array.isArray(e)){const n=e.length;return e=e.map((e=>String(e))),n>2?`one of ${t} ${e.slice(0,n-1).join(", ")}, or `+e[n-1]:2===n?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}return`of ${t} ${String(e)}`}n("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),n("ERR_INVALID_ARG_TYPE",(function(e,t,n){let i;var o;let s;if("string"==typeof t&&(o="not ",t.substr(0,4)===o)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-9,n)===t}(e," argument"))s=`The ${e} ${i} ${r(t,"type")}`;else{s=`The "${e}" ${"number"!=typeof u&&(u=0),u+1>(a=e).length||-1===a.indexOf(".",u)?"argument":"property"} ${i} ${r(t,"type")}`}var a,u;return s+=". Received type "+typeof n,s}),TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.F=t},3324:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Neovim=void 0;const r=n(9691),i=n(163),o=n(1716),s=n(6104),a=n(6866);class u extends r.BaseApi{constructor(){super(...arguments),this.prefix="nvim_",this.Buffer=o.Buffer,this.Window=a.Window,this.Tabpage=s.Tabpage}get apiInfo(){return this.request(`${this.prefix}get_api_info`)}get buffers(){return this.request(`${this.prefix}list_bufs`)}get buffer(){return i.createChainableApi.call(this,"Buffer",o.Buffer,(()=>this.request(`${this.prefix}get_current_buf`)))}set buffer(e){this.request(`${this.prefix}set_current_buf`,[e])}get chans(){return this.request(`${this.prefix}list_chans`)}getChanInfo(e){return this.request(`${this.prefix}get_chan_info`,[e])}get commands(){return this.getCommands()}getCommands(e={}){return this.request(`${this.prefix}get_commands`,[e])}get tabpages(){return this.request(`${this.prefix}list_tabpages`)}get tabpage(){return i.createChainableApi.call(this,"Tabpage",s.Tabpage,(()=>this.request(`${this.prefix}get_current_tabpage`)))}set tabpage(e){this.request(`${this.prefix}set_current_tabpage`,[e])}get windows(){return this.getWindows()}get window(){return this.getWindow()}set window(e){e instanceof a.Window?this.setWindow(e):e.then((e=>this.setWindow(e)))}getWindows(){return this.request(`${this.prefix}list_wins`)}getWindow(){return i.createChainableApi.call(this,"Window",a.Window,(()=>this.request(`${this.prefix}get_current_win`)))}setWindow(e){return this.request(`${this.prefix}set_current_win`,[e])}get runtimePaths(){return this.request(`${this.prefix}list_runtime_paths`)}set dir(e){this.request(`${this.prefix}set_current_dir`,[e])}get line(){return this.getLine()}set line(e){"string"==typeof e&&this.setLine(e)}getLine(){return this.request(`${this.prefix}get_current_line`)}setLine(e){return this.request(`${this.prefix}set_current_line`,[e])}getKeymap(e){return this.request(`${this.prefix}get_keymap`,[e])}get mode(){return this.request(`${this.prefix}get_mode`)}get colorMap(){return this.request(`${this.prefix}get_color_map`)}getColorByName(e){return this.request(`${this.prefix}get_color_by_name`,[e])}getHighlight(e,t=!0){const n="string"==typeof e?"by_name":"by_id";return this.request(`${this.prefix}get_hl_${n}`,[e,t])}getHighlightByName(e,t=!0){return this.request(`${this.prefix}get_hl_by_name`,[e,t])}getHighlightById(e,t=!0){return this.request(`${this.prefix}get_hl_by_id`,[e,t])}deleteCurrentLine(){return this.request(`${this.prefix}del_current_line`)}eval(e){return this.request(`${this.prefix}eval`,[e])}lua(e,t=[]){const n=Array.isArray(t)?t:[t];return this.request(`${this.prefix}execute_lua`,[e,n])}executeLua(e,t=[]){return this.lua(e,t)}callDictFunction(e,t,n=[]){const r=Array.isArray(n)?n:[n];return this.request(`${this.prefix}call_dict_function`,[e,t,r])}call(e,t=[]){const n=Array.isArray(t)?t:[t];return this.request(`${this.prefix}call_function`,[e,n])}callFunction(e,t=[]){return this.call(e,t)}callAtomic(e){return this.request(`${this.prefix}call_atomic`,[e])}command(e){return this.request(`${this.prefix}command`,[e])}commandOutput(e){return this.request(`${this.prefix}command_output`,[e])}getVvar(e){return this.request(`${this.prefix}get_vvar`,[e])}setVvar(e,t){return this.request(`${this.prefix}set_vvar`,[e,t])}feedKeys(e,t,n){return this.request(`${this.prefix}feedkeys`,[e,t,n])}input(e){return this.request(`${this.prefix}input`,[e])}inputMouse(e,t,n,r,i,o){return this.request(`${this.prefix}input_mouse`,[e,t,n,r,i,o])}parseExpression(e,t,n){return this.request(`${this.prefix}parse_expression`,[e,t,n])}getProc(e){return this.request(`${this.prefix}get_proc`,[e])}getProcChildren(e){return this.request(`${this.prefix}get_proc_children`,[e])}replaceTermcodes(e,t,n,r){return this.request(`${this.prefix}replace_termcodes`,[e,t,n,r])}strWidth(e){return this.request(`${this.prefix}strwidth`,[e])}outWrite(e){return this.request(`${this.prefix}out_write`,[e])}outWriteLine(e){return this.outWrite(`${e}\n`)}errWrite(e){return this.request(`${this.prefix}err_write`,[e])}errWriteLine(e){return this.request(`${this.prefix}err_writeln`,[e])}get uis(){return this.request(`${this.prefix}list_uis`)}uiAttach(e,t,n){return this.request(`${this.prefix}ui_attach`,[e,t,n])}uiDetach(){return this.request(`${this.prefix}ui_detach`,[])}uiTryResize(e,t){return this.request(`${this.prefix}ui_try_resize`,[e,t])}uiTryResizeGrid(e,t,n){return this.request(`${this.prefix}ui_try_resize_grid`,[e,t,n])}uiSetOption(e,t){return this.request(`${this.prefix}ui_set_option`,[e,t])}subscribe(e){return this.request(`${this.prefix}subscribe`,[e])}unsubscribe(e){return this.request(`${this.prefix}unsubscribe`,[e])}setClientInfo(e,t,n,r,i){this.request(`${this.prefix}set_client_info`,[e,t,n,r,i])}createNamespace(e=""){return this.request(`${this.prefix}create_namespace`,[e])}get namespaces(){return this.getNamespaces()}getNamespaces(){return this.request(`${this.prefix}get_namespaces`)}selectPopupmenuItem(e,t,n,r={}){return this.request(`${this.prefix}select_popupmenu_item`,[e,t,n,r])}createBuf(e,t){return this.request(`${this.prefix}create_buf`,[e,t])}createBuffer(e,t){return this.createBuf(e,t)}openWin(e,t,n){return this.request(`${this.prefix}open_win`,[e,t,n])}openWindow(e,t,n){return this.openWin(e,t,n)}winConfig(e,t={}){return e.config(t)}windowConfig(e,t={}){return this.winConfig(e,t)}winClose(e,t){return e.close(t)}windowClose(e,t){return this.winClose(e,t)}quit(){this.command("qa!")}}t.Neovim=u},3336:(e,t,n)=>{"use strict";var r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=c;var i=n(3342),o=n(4418);n(2017)(c,i);for(var s=r(o.prototype),a=0;a<s.length;a++){var u=s[a];c.prototype[u]||(c.prototype[u]=o.prototype[u])}function c(e){if(!(this instanceof c))return new c(e);i.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",l)))}function l(){this._writableState.ended||process.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},3339:e=>{"use strict";e.exports=require("module")},3342:(e,t,n)=>{"use strict";var r;e.exports=S,S.ReadableState=E,n(4434).EventEmitter;var i,o=function(e,t){return e.listeners(t).length},s=n(5926),a=n(181).Buffer,u=("undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},c=n(9023);i=c&&c.debuglog?c.debuglog("stream"):function(){};var l,h,d,f=n(4979),p=n(358),g=n(6969).getHighWaterMark,v=n(223).F,m=v.ERR_INVALID_ARG_TYPE,y=v.ERR_STREAM_PUSH_AFTER_EOF,b=v.ERR_METHOD_NOT_IMPLEMENTED,w=v.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(2017)(S,s);var _=p.errorOrDestroy,x=["error","close","destroy","pause","resume"];function E(e,t,i){r=r||n(3336),e=e||{},"boolean"!=typeof i&&(i=t instanceof r),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=g(this,e,"readableHighWaterMark",i),this.buffer=new f,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(l||(l=n(3141).I),this.decoder=new l(e.encoding),this.encoding=e.encoding)}function S(e){if(r=r||n(3336),!(this instanceof S))return new S(e);var t=this instanceof r;this._readableState=new E(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),s.call(this)}function C(e,t,n,r,o){i("readableAddChunk",t);var s,c=e._readableState;if(null===t)c.reading=!1,function(e,t){if(i("onEofChunk"),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?O(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,L(e)))}}(e,c);else if(o||(s=function(e,t){var n,r;return r=t,a.isBuffer(r)||r instanceof u||"string"==typeof t||void 0===t||e.objectMode||(n=new m("chunk",["string","Buffer","Uint8Array"],t)),n}(c,t)),s)_(e,s);else if(c.objectMode||t&&t.length>0)if("string"==typeof t||c.objectMode||Object.getPrototypeOf(t)===a.prototype||(t=function(e){return a.from(e)}(t)),r)c.endEmitted?_(e,new w):M(e,c,t,!0);else if(c.ended)_(e,new y);else{if(c.destroyed)return!1;c.reading=!1,c.decoder&&!n?(t=c.decoder.write(t),c.objectMode||0!==t.length?M(e,c,t,!1):P(e,c)):M(e,c,t,!1)}else r||(c.reading=!1,P(e,c));return!c.ended&&(c.length<c.highWaterMark||0===c.length)}function M(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&O(e)),P(e,t)}Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),S.prototype.destroy=p.destroy,S.prototype._undestroy=p.undestroy,S.prototype._destroy=function(e,t){t(e)},S.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=a.from(e,t),t=""),n=!0),C(this,e,t,!1,n)},S.prototype.unshift=function(e){return C(this,e,null,!0,!1)},S.prototype.isPaused=function(){return!1===this._readableState.flowing},S.prototype.setEncoding=function(e){l||(l=n(3141).I);var t=new l(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";null!==r;)i+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var T=1073741824;function k(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=T?e=T:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function O(e){var t=e._readableState;i("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(i("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(L,e))}function L(e){var t=e._readableState;i("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,D(e)}function P(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(I,e,t))}function I(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var n=t.length;if(i("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function R(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function A(e){i("readable nexttick read 0"),e.read(0)}function $(e,t){i("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),D(e),t.flowing&&!t.reading&&e.read(0)}function D(e){var t=e._readableState;for(i("flow",t.flowing);t.flowing&&null!==e.read(););}function j(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function N(e){var t=e._readableState;i("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(B,t,e))}function B(e,t){if(i("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function q(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}S.prototype.read=function(e){i("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return i("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?N(this):O(this),null;if(0===(e=k(e,t))&&t.ended)return 0===t.length&&N(this),null;var r,o=t.needReadable;return i("need readable",o),(0===t.length||t.length-e<t.highWaterMark)&&i("length less than watermark",o=!0),t.ended||t.reading?i("reading or ended",o=!1):o&&(i("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=k(n,t))),null===(r=e>0?j(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&N(this)),null!==r&&this.emit("data",r),r},S.prototype._read=function(e){_(this,new b("_read()"))},S.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,i("pipe count=%d opts=%j",r.pipesCount,t);var s=t&&!1===t.end||e===process.stdout||e===process.stderr?p:a;function a(){i("onend"),e.end()}r.endEmitted?process.nextTick(s):n.once("end",s),e.on("unpipe",(function t(o,s){i("onunpipe"),o===n&&s&&!1===s.hasUnpiped&&(s.hasUnpiped=!0,i("cleanup"),e.removeListener("close",d),e.removeListener("finish",f),e.removeListener("drain",u),e.removeListener("error",h),e.removeListener("unpipe",t),n.removeListener("end",a),n.removeListener("end",p),n.removeListener("data",l),c=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}));var u=function(e){return function(){var t=e._readableState;i("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,D(e))}}(n);e.on("drain",u);var c=!1;function l(t){i("ondata");var o=e.write(t);i("dest.write",o),!1===o&&((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==q(r.pipes,e))&&!c&&(i("false write response, pause",r.awaitDrain),r.awaitDrain++),n.pause())}function h(t){i("onerror",t),p(),e.removeListener("error",h),0===o(e,"error")&&_(e,t)}function d(){e.removeListener("finish",f),p()}function f(){i("onfinish"),e.removeListener("close",d),p()}function p(){i("unpipe"),n.unpipe(e)}return n.on("data",l),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",h),e.once("close",d),e.once("finish",f),e.emit("pipe",n),r.flowing||(i("pipe resume"),n.resume()),e},S.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=q(t.pipes,e);return-1===s||(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},S.prototype.on=function(e,t){var n=s.prototype.on.call(this,e,t),r=this._readableState;return"data"===e?(r.readableListening=this.listenerCount("readable")>0,!1!==r.flowing&&this.resume()):"readable"===e&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,i("on readable",r.length,r.reading),r.length?O(this):r.reading||process.nextTick(A,this))),n},S.prototype.addListener=S.prototype.on,S.prototype.removeListener=function(e,t){var n=s.prototype.removeListener.call(this,e,t);return"readable"===e&&process.nextTick(R,this),n},S.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||process.nextTick(R,this),t},S.prototype.resume=function(){var e=this._readableState;return e.flowing||(i("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick($,e,t))}(this,e)),e.paused=!1,this},S.prototype.pause=function(){return i("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(i("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},S.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var o in e.on("end",(function(){if(i("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(o){i("wrapped data"),n.decoder&&(o=n.decoder.write(o)),n.objectMode&&null==o||(n.objectMode||o&&o.length)&&(t.push(o)||(r=!0,e.pause()))})),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var s=0;s<x.length;s++)e.on(x[s],this.emit.bind(this,x[s]));return this._read=function(t){i("wrapped _read",t),r&&(r=!1,e.resume())},this},"function"==typeof Symbol&&(S.prototype[Symbol.asyncIterator]=function(){return void 0===h&&(h=n(3285)),h(this)}),Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(S.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(S.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),S._fromList=j,Object.defineProperty(S.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(S.from=function(e,t){return void 0===d&&(d=n(6182)),d(S,e,t)})},3427:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l(n(9875)),i=l(n(6884)),o=l(n(3852)),s=l(n(2132)),a=l(n(1814)),u=l(n(4877)),c=l(n(8409));function l(e){return e&&e.__esModule?e:{default:e}}function h(e,t,n){n=(0,s.default)(n);var r=0,o=0,{length:u}=e,c=!1;function l(e,t){!1===e&&(c=!0),!0!==c&&(e?n(e):++o!==u&&t!==i.default||n(null))}for(0===u&&n(null);r<u;r++)t(e[r],r,(0,a.default)(l))}function d(e,t,n){return(0,o.default)(e,1/0,t,n)}t.default=(0,c.default)((function(e,t,n){return((0,r.default)(e)?h:d)(e,(0,u.default)(t),n)}),3),e.exports=t.default},3475:(e,t,n)=>{"use strict";Object.defineProperty(t,"Console",{configurable:!0,enumerable:!0,get:()=>n(7522)}),Object.defineProperty(t,"File",{configurable:!0,enumerable:!0,get:()=>n(4873)}),Object.defineProperty(t,"Http",{configurable:!0,enumerable:!0,get:()=>n(5071)}),Object.defineProperty(t,"Stream",{configurable:!0,enumerable:!0,get:()=>n(5767)})},3484:(e,t,n)=>{"use strict";var r=n(223).F.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,n,o){if("function"==typeof n)return e(t,null,n);n||(n={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r)}}}(o||i);var s=n.readable||!1!==n.readable&&t.readable,a=n.writable||!1!==n.writable&&t.writable,u=function(){t.writable||l()},c=t._writableState&&t._writableState.finished,l=function(){a=!1,c=!0,s||o.call(t)},h=t._readableState&&t._readableState.endEmitted,d=function(){s=!1,h=!0,a||o.call(t)},f=function(e){o.call(t,e)},p=function(){var e;return s&&!h?(t._readableState&&t._readableState.ended||(e=new r),o.call(t,e)):a&&!c?(t._writableState&&t._writableState.ended||(e=new r),o.call(t,e)):void 0},g=function(){t.req.on("finish",l)};return function(e){return e.setHeader&&"function"==typeof e.abort}(t)?(t.on("complete",l),t.on("abort",p),t.req?g():t.on("request",g)):a&&!t._writableState&&(t.on("end",u),t.on("close",u)),t.on("end",d),t.on("finish",l),!1!==n.error&&t.on("error",f),t.on("close",p),function(){t.removeListener("complete",l),t.removeListener("abort",p),t.removeListener("request",g),t.req&&t.req.removeListener("finish",l),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",l),t.removeListener("end",d),t.removeListener("error",f),t.removeListener("close",p)}}},3575:(e,t,n)=>{var r=n(9161)((function e(t,n){return(n=n||{}).namespace=t,n.prod=!0,n.dev=!1,n.force||e.force?e.yep(n):e.nope(n)}));e.exports=r},3579:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Command=t.Autocmd=t.Function=t.Plugin=void 0;var r=n(4416);Object.defineProperty(t,"Plugin",{enumerable:!0,get:function(){return r.plugin}});var i=n(7135);Object.defineProperty(t,"Function",{enumerable:!0,get:function(){return i.nvimFunction}});var o=n(2270);Object.defineProperty(t,"Autocmd",{enumerable:!0,get:function(){return o.autocmd}});var s=n(3018);Object.defineProperty(t,"Command",{enumerable:!0,get:function(){return s.command}})},3583:(e,t,n)=>{"use strict";e.exports=class{constructor(e){const t=n(8010);if("object"!=typeof e||Array.isArray(e)||!(e instanceof t))throw new Error("Logger is required for profiling");this.logger=e,this.start=Date.now()}done(...e){"function"==typeof e[e.length-1]&&(console.warn("Callback function no longer supported as of winston@3.0.0"),e.pop());const t="object"==typeof e[e.length-1]?e.pop():{};return t.level=t.level||"info",t.durationMs=Date.now()-this.start,this.logger.write(t)}}},3622:(e,t,n)=>{"use strict";e.exports=i;var r=n(2828);function i(e){if(!(this instanceof i))return new i(e);r.call(this,e)}n(2017)(i,r),i.prototype._transform=function(e,t,n){n(null,e)}},3623:(e,t,n)=>{"use strict";e.exports=n(8056),e.exports.LegacyTransportStream=n(1136)},3852:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(n(2858)),i=s(n(4877)),o=s(n(8409));function s(e){return e&&e.__esModule?e:{default:e}}t.default=(0,o.default)((function(e,t,n,o){return(0,r.default)(t)(e,(0,i.default)(n),o)}),4),e.exports=t.default},3986:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DataViewIndexOutOfBoundsError:()=>F,DecodeError:()=>w,Decoder:()=>H,EXT_TIMESTAMP:()=>_,Encoder:()=>I,ExtData:()=>y,ExtensionCodec:()=>L,decode:()=>G,decodeArrayStream:()=>ne,decodeAsync:()=>te,decodeMulti:()=>K,decodeMultiStream:()=>re,decodeStream:()=>ie,decodeTimestampExtension:()=>k,decodeTimestampToTimeSpec:()=>T,encode:()=>A,encodeDateToTimeSpec:()=>C,encodeTimeSpecToTimestamp:()=>S,encodeTimestampExtension:()=>M});var r,i,o,s=4294967295;function a(e,t,n){var r=Math.floor(n/4294967296),i=n;e.setUint32(t,r),e.setUint32(t+4,i)}function u(e,t){return 4294967296*e.getInt32(t)+e.getUint32(t+4)}var c=("undefined"==typeof process||"never"!==(null===(r=null===process||void 0===process?void 0:process.env)||void 0===r?void 0:r.TEXT_ENCODING))&&"undefined"!=typeof TextEncoder&&"undefined"!=typeof TextDecoder;function l(e){for(var t=e.length,n=0,r=0;r<t;){var i=e.charCodeAt(r++);if(4294967168&i)if(4294965248&i){if(i>=55296&&i<=56319&&r<t){var o=e.charCodeAt(r);56320==(64512&o)&&(++r,i=((1023&i)<<10)+(1023&o)+65536)}n+=4294901760&i?4:3}else n+=2;else n++}return n}var h=c?new TextEncoder:void 0,d=c?"undefined"!=typeof process&&"force"!==(null===(i=null===process||void 0===process?void 0:process.env)||void 0===i?void 0:i.TEXT_ENCODING)?200:0:s,f=(null==h?void 0:h.encodeInto)?function(e,t,n){h.encodeInto(e,t.subarray(n))}:function(e,t,n){t.set(h.encode(e),n)};function p(e,t,n){for(var r=t,i=r+n,o=[],s="";r<i;){var a=e[r++];if(128&a)if(192==(224&a)){var u=63&e[r++];o.push((31&a)<<6|u)}else if(224==(240&a)){u=63&e[r++];var c=63&e[r++];o.push((31&a)<<12|u<<6|c)}else if(240==(248&a)){var l=(7&a)<<18|(u=63&e[r++])<<12|(c=63&e[r++])<<6|63&e[r++];l>65535&&(l-=65536,o.push(l>>>10&1023|55296),l=56320|1023&l),o.push(l)}else o.push(a);else o.push(a);o.length>=4096&&(s+=String.fromCharCode.apply(String,o),o.length=0)}return o.length>0&&(s+=String.fromCharCode.apply(String,o)),s}var g,v=c?new TextDecoder:null,m=c?"undefined"!=typeof process&&"force"!==(null===(o=null===process||void 0===process?void 0:process.env)||void 0===o?void 0:o.TEXT_DECODER)?200:0:s,y=function(e,t){this.type=e,this.data=t},b=(g=function(e,t){return g=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])},g(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}g(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),w=function(e){function t(n){var r=e.call(this,n)||this,i=Object.create(t.prototype);return Object.setPrototypeOf(r,i),Object.defineProperty(r,"name",{configurable:!0,enumerable:!1,value:t.name}),r}return b(t,e),t}(Error),_=-1,x=4294967295,E=17179869183;function S(e){var t,n=e.sec,r=e.nsec;if(n>=0&&r>=0&&n<=E){if(0===r&&n<=x){var i=new Uint8Array(4);return(t=new DataView(i.buffer)).setUint32(0,n),i}var o=n/4294967296,s=4294967295&n;return i=new Uint8Array(8),(t=new DataView(i.buffer)).setUint32(0,r<<2|3&o),t.setUint32(4,s),i}return i=new Uint8Array(12),(t=new DataView(i.buffer)).setUint32(0,r),a(t,4,n),i}function C(e){var t=e.getTime(),n=Math.floor(t/1e3),r=1e6*(t-1e3*n),i=Math.floor(r/1e9);return{sec:n+i,nsec:r-1e9*i}}function M(e){return e instanceof Date?S(C(e)):null}function T(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);switch(e.byteLength){case 4:return{sec:t.getUint32(0),nsec:0};case 8:var n=t.getUint32(0);return{sec:4294967296*(3&n)+t.getUint32(4),nsec:n>>>2};case 12:return{sec:u(t,4),nsec:t.getUint32(0)};default:throw new w("Unrecognized data size for timestamp (expected 4, 8, or 12): ".concat(e.length))}}function k(e){var t=T(e);return new Date(1e3*t.sec+t.nsec/1e6)}var O={type:_,encode:M,decode:k},L=function(){function e(){this.builtInEncoders=[],this.builtInDecoders=[],this.encoders=[],this.decoders=[],this.register(O)}return e.prototype.register=function(e){var t=e.type,n=e.encode,r=e.decode;if(t>=0)this.encoders[t]=n,this.decoders[t]=r;else{var i=1+t;this.builtInEncoders[i]=n,this.builtInDecoders[i]=r}},e.prototype.tryToEncode=function(e,t){for(var n=0;n<this.builtInEncoders.length;n++)if(null!=(r=this.builtInEncoders[n])&&null!=(i=r(e,t)))return new y(-1-n,i);for(n=0;n<this.encoders.length;n++){var r,i;if(null!=(r=this.encoders[n])&&null!=(i=r(e,t)))return new y(n,i)}return e instanceof y?e:null},e.prototype.decode=function(e,t,n){var r=t<0?this.builtInDecoders[-1-t]:this.decoders[t];return r?r(e,t,n):new y(t,e)},e.defaultCodec=new e,e}();function P(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e instanceof ArrayBuffer?new Uint8Array(e):Uint8Array.from(e)}var I=function(){function e(e,t,n,r,i,o,s,a){void 0===e&&(e=L.defaultCodec),void 0===t&&(t=void 0),void 0===n&&(n=100),void 0===r&&(r=2048),void 0===i&&(i=!1),void 0===o&&(o=!1),void 0===s&&(s=!1),void 0===a&&(a=!1),this.extensionCodec=e,this.context=t,this.maxDepth=n,this.initialBufferSize=r,this.sortKeys=i,this.forceFloat32=o,this.ignoreUndefined=s,this.forceIntegerToFloat=a,this.pos=0,this.view=new DataView(new ArrayBuffer(this.initialBufferSize)),this.bytes=new Uint8Array(this.view.buffer)}return e.prototype.reinitializeState=function(){this.pos=0},e.prototype.encodeSharedRef=function(e){return this.reinitializeState(),this.doEncode(e,1),this.bytes.subarray(0,this.pos)},e.prototype.encode=function(e){return this.reinitializeState(),this.doEncode(e,1),this.bytes.slice(0,this.pos)},e.prototype.doEncode=function(e,t){if(t>this.maxDepth)throw new Error("Too deep objects in depth ".concat(t));null==e?this.encodeNil():"boolean"==typeof e?this.encodeBoolean(e):"number"==typeof e?this.encodeNumber(e):"string"==typeof e?this.encodeString(e):this.encodeObject(e,t)},e.prototype.ensureBufferSizeToWrite=function(e){var t=this.pos+e;this.view.byteLength<t&&this.resizeBuffer(2*t)},e.prototype.resizeBuffer=function(e){var t=new ArrayBuffer(e),n=new Uint8Array(t),r=new DataView(t);n.set(this.bytes),this.view=r,this.bytes=n},e.prototype.encodeNil=function(){this.writeU8(192)},e.prototype.encodeBoolean=function(e){!1===e?this.writeU8(194):this.writeU8(195)},e.prototype.encodeNumber=function(e){Number.isSafeInteger(e)&&!this.forceIntegerToFloat?e>=0?e<128?this.writeU8(e):e<256?(this.writeU8(204),this.writeU8(e)):e<65536?(this.writeU8(205),this.writeU16(e)):e<4294967296?(this.writeU8(206),this.writeU32(e)):(this.writeU8(207),this.writeU64(e)):e>=-32?this.writeU8(224|e+32):e>=-128?(this.writeU8(208),this.writeI8(e)):e>=-32768?(this.writeU8(209),this.writeI16(e)):e>=-2147483648?(this.writeU8(210),this.writeI32(e)):(this.writeU8(211),this.writeI64(e)):this.forceFloat32?(this.writeU8(202),this.writeF32(e)):(this.writeU8(203),this.writeF64(e))},e.prototype.writeStringHeader=function(e){if(e<32)this.writeU8(160+e);else if(e<256)this.writeU8(217),this.writeU8(e);else if(e<65536)this.writeU8(218),this.writeU16(e);else{if(!(e<4294967296))throw new Error("Too long string: ".concat(e," bytes in UTF-8"));this.writeU8(219),this.writeU32(e)}},e.prototype.encodeString=function(e){if(e.length>d){var t=l(e);this.ensureBufferSizeToWrite(5+t),this.writeStringHeader(t),f(e,this.bytes,this.pos),this.pos+=t}else t=l(e),this.ensureBufferSizeToWrite(5+t),this.writeStringHeader(t),function(e,t,n){for(var r=e.length,i=n,o=0;o<r;){var s=e.charCodeAt(o++);if(4294967168&s){if(4294965248&s){if(s>=55296&&s<=56319&&o<r){var a=e.charCodeAt(o);56320==(64512&a)&&(++o,s=((1023&s)<<10)+(1023&a)+65536)}4294901760&s?(t[i++]=s>>18&7|240,t[i++]=s>>12&63|128,t[i++]=s>>6&63|128):(t[i++]=s>>12&15|224,t[i++]=s>>6&63|128)}else t[i++]=s>>6&31|192;t[i++]=63&s|128}else t[i++]=s}}(e,this.bytes,this.pos),this.pos+=t},e.prototype.encodeObject=function(e,t){var n=this.extensionCodec.tryToEncode(e,this.context);if(null!=n)this.encodeExtension(n);else if(Array.isArray(e))this.encodeArray(e,t);else if(ArrayBuffer.isView(e))this.encodeBinary(e);else{if("object"!=typeof e)throw new Error("Unrecognized object: ".concat(Object.prototype.toString.apply(e)));this.encodeMap(e,t)}},e.prototype.encodeBinary=function(e){var t=e.byteLength;if(t<256)this.writeU8(196),this.writeU8(t);else if(t<65536)this.writeU8(197),this.writeU16(t);else{if(!(t<4294967296))throw new Error("Too large binary: ".concat(t));this.writeU8(198),this.writeU32(t)}var n=P(e);this.writeU8a(n)},e.prototype.encodeArray=function(e,t){var n=e.length;if(n<16)this.writeU8(144+n);else if(n<65536)this.writeU8(220),this.writeU16(n);else{if(!(n<4294967296))throw new Error("Too large array: ".concat(n));this.writeU8(221),this.writeU32(n)}for(var r=0,i=e;r<i.length;r++){var o=i[r];this.doEncode(o,t+1)}},e.prototype.countWithoutUndefined=function(e,t){for(var n=0,r=0,i=t;r<i.length;r++)void 0!==e[i[r]]&&n++;return n},e.prototype.encodeMap=function(e,t){var n=Object.keys(e);this.sortKeys&&n.sort();var r=this.ignoreUndefined?this.countWithoutUndefined(e,n):n.length;if(r<16)this.writeU8(128+r);else if(r<65536)this.writeU8(222),this.writeU16(r);else{if(!(r<4294967296))throw new Error("Too large map object: ".concat(r));this.writeU8(223),this.writeU32(r)}for(var i=0,o=n;i<o.length;i++){var s=o[i],a=e[s];this.ignoreUndefined&&void 0===a||(this.encodeString(s),this.doEncode(a,t+1))}},e.prototype.encodeExtension=function(e){var t=e.data.length;if(1===t)this.writeU8(212);else if(2===t)this.writeU8(213);else if(4===t)this.writeU8(214);else if(8===t)this.writeU8(215);else if(16===t)this.writeU8(216);else if(t<256)this.writeU8(199),this.writeU8(t);else if(t<65536)this.writeU8(200),this.writeU16(t);else{if(!(t<4294967296))throw new Error("Too large extension object: ".concat(t));this.writeU8(201),this.writeU32(t)}this.writeI8(e.type),this.writeU8a(e.data)},e.prototype.writeU8=function(e){this.ensureBufferSizeToWrite(1),this.view.setUint8(this.pos,e),this.pos++},e.prototype.writeU8a=function(e){var t=e.length;this.ensureBufferSizeToWrite(t),this.bytes.set(e,this.pos),this.pos+=t},e.prototype.writeI8=function(e){this.ensureBufferSizeToWrite(1),this.view.setInt8(this.pos,e),this.pos++},e.prototype.writeU16=function(e){this.ensureBufferSizeToWrite(2),this.view.setUint16(this.pos,e),this.pos+=2},e.prototype.writeI16=function(e){this.ensureBufferSizeToWrite(2),this.view.setInt16(this.pos,e),this.pos+=2},e.prototype.writeU32=function(e){this.ensureBufferSizeToWrite(4),this.view.setUint32(this.pos,e),this.pos+=4},e.prototype.writeI32=function(e){this.ensureBufferSizeToWrite(4),this.view.setInt32(this.pos,e),this.pos+=4},e.prototype.writeF32=function(e){this.ensureBufferSizeToWrite(4),this.view.setFloat32(this.pos,e),this.pos+=4},e.prototype.writeF64=function(e){this.ensureBufferSizeToWrite(8),this.view.setFloat64(this.pos,e),this.pos+=8},e.prototype.writeU64=function(e){this.ensureBufferSizeToWrite(8),function(e,t,n){var r=n/4294967296,i=n;e.setUint32(t,r),e.setUint32(t+4,i)}(this.view,this.pos,e),this.pos+=8},e.prototype.writeI64=function(e){this.ensureBufferSizeToWrite(8),a(this.view,this.pos,e),this.pos+=8},e}(),R={};function A(e,t){return void 0===t&&(t=R),new I(t.extensionCodec,t.context,t.maxDepth,t.initialBufferSize,t.sortKeys,t.forceFloat32,t.ignoreUndefined,t.forceIntegerToFloat).encodeSharedRef(e)}function $(e){return"".concat(e<0?"-":"","0x").concat(Math.abs(e).toString(16).padStart(2,"0"))}var D=function(){function e(e,t){void 0===e&&(e=16),void 0===t&&(t=16),this.maxKeyLength=e,this.maxLengthPerKey=t,this.hit=0,this.miss=0,this.caches=[];for(var n=0;n<this.maxKeyLength;n++)this.caches.push([])}return e.prototype.canBeCached=function(e){return e>0&&e<=this.maxKeyLength},e.prototype.find=function(e,t,n){e:for(var r=0,i=this.caches[n-1];r<i.length;r++){for(var o=i[r],s=o.bytes,a=0;a<n;a++)if(s[a]!==e[t+a])continue e;return o.str}return null},e.prototype.store=function(e,t){var n=this.caches[e.length-1],r={bytes:e,str:t};n.length>=this.maxLengthPerKey?n[Math.random()*n.length|0]=r:n.push(r)},e.prototype.decode=function(e,t,n){var r=this.find(e,t,n);if(null!=r)return this.hit++,r;this.miss++;var i=p(e,t,n),o=Uint8Array.prototype.slice.call(e,t,t+n);return this.store(o,i),i},e}(),j=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]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},N=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)}))}}},B=function(e){return this instanceof B?(this.v=e,this):new B(e)},q=new DataView(new ArrayBuffer(0)),U=new Uint8Array(q.buffer),F=function(){try{q.getInt8(0)}catch(e){return e.constructor}throw new Error("never reached")}(),W=new F("Insufficient data"),V=new D,H=function(){function e(e,t,n,r,i,o,a,u){void 0===e&&(e=L.defaultCodec),void 0===t&&(t=void 0),void 0===n&&(n=s),void 0===r&&(r=s),void 0===i&&(i=s),void 0===o&&(o=s),void 0===a&&(a=s),void 0===u&&(u=V),this.extensionCodec=e,this.context=t,this.maxStrLength=n,this.maxBinLength=r,this.maxArrayLength=i,this.maxMapLength=o,this.maxExtLength=a,this.keyDecoder=u,this.totalPos=0,this.pos=0,this.view=q,this.bytes=U,this.headByte=-1,this.stack=[]}return e.prototype.reinitializeState=function(){this.totalPos=0,this.headByte=-1,this.stack.length=0},e.prototype.setBuffer=function(e){this.bytes=P(e),this.view=function(e){if(e instanceof ArrayBuffer)return new DataView(e);var t=P(e);return new DataView(t.buffer,t.byteOffset,t.byteLength)}(this.bytes),this.pos=0},e.prototype.appendBuffer=function(e){if(-1!==this.headByte||this.hasRemaining(1)){var t=this.bytes.subarray(this.pos),n=P(e),r=new Uint8Array(t.length+n.length);r.set(t),r.set(n,t.length),this.setBuffer(r)}else this.setBuffer(e)},e.prototype.hasRemaining=function(e){return this.view.byteLength-this.pos>=e},e.prototype.createExtraByteError=function(e){var t=this.view,n=this.pos;return new RangeError("Extra ".concat(t.byteLength-n," of ").concat(t.byteLength," byte(s) found at buffer[").concat(e,"]"))},e.prototype.decode=function(e){this.reinitializeState(),this.setBuffer(e);var t=this.doDecodeSync();if(this.hasRemaining(1))throw this.createExtraByteError(this.pos);return t},e.prototype.decodeMulti=function(e){return j(this,(function(t){switch(t.label){case 0:this.reinitializeState(),this.setBuffer(e),t.label=1;case 1:return this.hasRemaining(1)?[4,this.doDecodeSync()]:[3,3];case 2:return t.sent(),[3,1];case 3:return[2]}}))},e.prototype.decodeAsync=function(e){var t,n,r,i,o,s,a,u;return o=this,s=void 0,u=function(){var o,s,a,u,c,l,h,d;return j(this,(function(f){switch(f.label){case 0:o=!1,f.label=1;case 1:f.trys.push([1,6,7,12]),t=N(e),f.label=2;case 2:return[4,t.next()];case 3:if((n=f.sent()).done)return[3,5];if(a=n.value,o)throw this.createExtraByteError(this.totalPos);this.appendBuffer(a);try{s=this.doDecodeSync(),o=!0}catch(e){if(!(e instanceof F))throw e}this.totalPos+=this.pos,f.label=4;case 4:return[3,2];case 5:return[3,12];case 6:return u=f.sent(),r={error:u},[3,12];case 7:return f.trys.push([7,,10,11]),n&&!n.done&&(i=t.return)?[4,i.call(t)]:[3,9];case 8:f.sent(),f.label=9;case 9:return[3,11];case 10:if(r)throw r.error;return[7];case 11:return[7];case 12:if(o){if(this.hasRemaining(1))throw this.createExtraByteError(this.totalPos);return[2,s]}throw l=(c=this).headByte,h=c.pos,d=c.totalPos,new RangeError("Insufficient data in parsing ".concat($(l)," at ").concat(d," (").concat(h," in the current buffer)"))}}))},new((a=void 0)||(a=Promise))((function(e,t){function n(e){try{i(u.next(e))}catch(e){t(e)}}function r(e){try{i(u.throw(e))}catch(e){t(e)}}function i(t){var i;t.done?e(t.value):(i=t.value,i instanceof a?i:new a((function(e){e(i)}))).then(n,r)}i((u=u.apply(o,s||[])).next())}))},e.prototype.decodeArrayStream=function(e){return this.decodeMultiAsync(e,!0)},e.prototype.decodeStream=function(e){return this.decodeMultiAsync(e,!1)},e.prototype.decodeMultiAsync=function(e,t){return function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){o.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof B?Promise.resolve(n.value.v).then(u,c):l(o[0][2],n)}catch(e){l(o[0][3],e)}var n}function u(e){a("next",e)}function c(e){a("throw",e)}function l(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}(this,arguments,(function(){var n,r,i,o,s,a,u,c,l;return j(this,(function(h){switch(h.label){case 0:n=t,r=-1,h.label=1;case 1:h.trys.push([1,13,14,19]),i=N(e),h.label=2;case 2:return[4,B(i.next())];case 3:if((o=h.sent()).done)return[3,12];if(s=o.value,t&&0===r)throw this.createExtraByteError(this.totalPos);this.appendBuffer(s),n&&(r=this.readArraySize(),n=!1,this.complete()),h.label=4;case 4:h.trys.push([4,9,,10]),h.label=5;case 5:return[4,B(this.doDecodeSync())];case 6:return[4,h.sent()];case 7:return h.sent(),0==--r?[3,8]:[3,5];case 8:return[3,10];case 9:if(!((a=h.sent())instanceof F))throw a;return[3,10];case 10:this.totalPos+=this.pos,h.label=11;case 11:return[3,2];case 12:return[3,19];case 13:return u=h.sent(),c={error:u},[3,19];case 14:return h.trys.push([14,,17,18]),o&&!o.done&&(l=i.return)?[4,B(l.call(i))]:[3,16];case 15:h.sent(),h.label=16;case 16:return[3,18];case 17:if(c)throw c.error;return[7];case 18:return[7];case 19:return[2]}}))}))},e.prototype.doDecodeSync=function(){e:for(;;){var e=this.readHeadByte(),t=void 0;if(e>=224)t=e-256;else if(e<192)if(e<128)t=e;else if(e<144){if(0!=(r=e-128)){this.pushMapState(r),this.complete();continue e}t={}}else if(e<160){if(0!=(r=e-144)){this.pushArrayState(r),this.complete();continue e}t=[]}else{var n=e-160;t=this.decodeUtf8String(n,0)}else if(192===e)t=null;else if(194===e)t=!1;else if(195===e)t=!0;else if(202===e)t=this.readF32();else if(203===e)t=this.readF64();else if(204===e)t=this.readU8();else if(205===e)t=this.readU16();else if(206===e)t=this.readU32();else if(207===e)t=this.readU64();else if(208===e)t=this.readI8();else if(209===e)t=this.readI16();else if(210===e)t=this.readI32();else if(211===e)t=this.readI64();else if(217===e)n=this.lookU8(),t=this.decodeUtf8String(n,1);else if(218===e)n=this.lookU16(),t=this.decodeUtf8String(n,2);else if(219===e)n=this.lookU32(),t=this.decodeUtf8String(n,4);else if(220===e){if(0!==(r=this.readU16())){this.pushArrayState(r),this.complete();continue e}t=[]}else if(221===e){if(0!==(r=this.readU32())){this.pushArrayState(r),this.complete();continue e}t=[]}else if(222===e){if(0!==(r=this.readU16())){this.pushMapState(r),this.complete();continue e}t={}}else if(223===e){if(0!==(r=this.readU32())){this.pushMapState(r),this.complete();continue e}t={}}else if(196===e){var r=this.lookU8();t=this.decodeBinary(r,1)}else if(197===e)r=this.lookU16(),t=this.decodeBinary(r,2);else if(198===e)r=this.lookU32(),t=this.decodeBinary(r,4);else if(212===e)t=this.decodeExtension(1,0);else if(213===e)t=this.decodeExtension(2,0);else if(214===e)t=this.decodeExtension(4,0);else if(215===e)t=this.decodeExtension(8,0);else if(216===e)t=this.decodeExtension(16,0);else if(199===e)r=this.lookU8(),t=this.decodeExtension(r,1);else if(200===e)r=this.lookU16(),t=this.decodeExtension(r,2);else{if(201!==e)throw new w("Unrecognized type byte: ".concat($(e)));r=this.lookU32(),t=this.decodeExtension(r,4)}this.complete();for(var i=this.stack;i.length>0;){var o=i[i.length-1];if(0===o.type){if(o.array[o.position]=t,o.position++,o.position!==o.size)continue e;i.pop(),t=o.array}else{if(1===o.type){if(void 0,"string"!=(s=typeof t)&&"number"!==s)throw new w("The type of key must be string or number but "+typeof t);if("__proto__"===t)throw new w("The key __proto__ is not allowed");o.key=t,o.type=2;continue e}if(o.map[o.key]=t,o.readCount++,o.readCount!==o.size){o.key=null,o.type=1;continue e}i.pop(),t=o.map}}return t}var s},e.prototype.readHeadByte=function(){return-1===this.headByte&&(this.headByte=this.readU8()),this.headByte},e.prototype.complete=function(){this.headByte=-1},e.prototype.readArraySize=function(){var e=this.readHeadByte();switch(e){case 220:return this.readU16();case 221:return this.readU32();default:if(e<160)return e-144;throw new w("Unrecognized array type byte: ".concat($(e)))}},e.prototype.pushMapState=function(e){if(e>this.maxMapLength)throw new w("Max length exceeded: map length (".concat(e,") > maxMapLengthLength (").concat(this.maxMapLength,")"));this.stack.push({type:1,size:e,key:null,readCount:0,map:{}})},e.prototype.pushArrayState=function(e){if(e>this.maxArrayLength)throw new w("Max length exceeded: array length (".concat(e,") > maxArrayLength (").concat(this.maxArrayLength,")"));this.stack.push({type:0,size:e,array:new Array(e),position:0})},e.prototype.decodeUtf8String=function(e,t){var n;if(e>this.maxStrLength)throw new w("Max length exceeded: UTF-8 byte length (".concat(e,") > maxStrLength (").concat(this.maxStrLength,")"));if(this.bytes.byteLength<this.pos+t+e)throw W;var r,i=this.pos+t;return r=this.stateIsMapKey()&&(null===(n=this.keyDecoder)||void 0===n?void 0:n.canBeCached(e))?this.keyDecoder.decode(this.bytes,i,e):e>m?function(e,t,n){var r=e.subarray(t,t+n);return v.decode(r)}(this.bytes,i,e):p(this.bytes,i,e),this.pos+=t+e,r},e.prototype.stateIsMapKey=function(){return this.stack.length>0&&1===this.stack[this.stack.length-1].type},e.prototype.decodeBinary=function(e,t){if(e>this.maxBinLength)throw new w("Max length exceeded: bin length (".concat(e,") > maxBinLength (").concat(this.maxBinLength,")"));if(!this.hasRemaining(e+t))throw W;var n=this.pos+t,r=this.bytes.subarray(n,n+e);return this.pos+=t+e,r},e.prototype.decodeExtension=function(e,t){if(e>this.maxExtLength)throw new w("Max length exceeded: ext length (".concat(e,") > maxExtLength (").concat(this.maxExtLength,")"));var n=this.view.getInt8(this.pos+t),r=this.decodeBinary(e,t+1);return this.extensionCodec.decode(r,n,this.context)},e.prototype.lookU8=function(){return this.view.getUint8(this.pos)},e.prototype.lookU16=function(){return this.view.getUint16(this.pos)},e.prototype.lookU32=function(){return this.view.getUint32(this.pos)},e.prototype.readU8=function(){var e=this.view.getUint8(this.pos);return this.pos++,e},e.prototype.readI8=function(){var e=this.view.getInt8(this.pos);return this.pos++,e},e.prototype.readU16=function(){var e=this.view.getUint16(this.pos);return this.pos+=2,e},e.prototype.readI16=function(){var e=this.view.getInt16(this.pos);return this.pos+=2,e},e.prototype.readU32=function(){var e=this.view.getUint32(this.pos);return this.pos+=4,e},e.prototype.readI32=function(){var e=this.view.getInt32(this.pos);return this.pos+=4,e},e.prototype.readU64=function(){var e,t,n=(e=this.view,t=this.pos,4294967296*e.getUint32(t)+e.getUint32(t+4));return this.pos+=8,n},e.prototype.readI64=function(){var e=u(this.view,this.pos);return this.pos+=8,e},e.prototype.readF32=function(){var e=this.view.getFloat32(this.pos);return this.pos+=4,e},e.prototype.readF64=function(){var e=this.view.getFloat64(this.pos);return this.pos+=8,e},e}(),z={};function G(e,t){return void 0===t&&(t=z),new H(t.extensionCodec,t.context,t.maxStrLength,t.maxBinLength,t.maxArrayLength,t.maxMapLength,t.maxExtLength).decode(e)}function K(e,t){return void 0===t&&(t=z),new H(t.extensionCodec,t.context,t.maxStrLength,t.maxBinLength,t.maxArrayLength,t.maxMapLength,t.maxExtLength).decodeMulti(e)}var Y=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]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},J=function(e){return this instanceof J?(this.v=e,this):new J(e)},Z=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){o.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof J?Promise.resolve(n.value.v).then(u,c):l(o[0][2],n)}catch(e){l(o[0][3],e)}var n}function u(e){a("next",e)}function c(e){a("throw",e)}function l(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}};function Q(e){return null!=e[Symbol.asyncIterator]?e:function(e){return Z(this,arguments,(function(){var t,n,r,i;return Y(this,(function(o){switch(o.label){case 0:t=e.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,J(t.read())];case 3:return n=o.sent(),r=n.done,i=n.value,r?[4,J(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return function(e){if(null==e)throw new Error("Assertion Failure: value must not be null nor undefined")}(i),[4,J(i)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}}))}))}(e)}var X=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},ee=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]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};function te(e,t){return void 0===t&&(t=z),X(this,void 0,void 0,(function(){var n;return ee(this,(function(r){return n=Q(e),[2,new H(t.extensionCodec,t.context,t.maxStrLength,t.maxBinLength,t.maxArrayLength,t.maxMapLength,t.maxExtLength).decodeAsync(n)]}))}))}function ne(e,t){void 0===t&&(t=z);var n=Q(e);return new H(t.extensionCodec,t.context,t.maxStrLength,t.maxBinLength,t.maxArrayLength,t.maxMapLength,t.maxExtLength).decodeArrayStream(n)}function re(e,t){void 0===t&&(t=z);var n=Q(e);return new H(t.extensionCodec,t.context,t.maxStrLength,t.maxBinLength,t.maxArrayLength,t.maxMapLength,t.maxExtLength).decodeStream(n)}function ie(e,t){return void 0===t&&(t=z),re(e,t)}},4048:(e,t,n)=>{"use strict";const{Writable:r}=n(2092);e.exports=class extends r{constructor(e){if(super({objectMode:!0}),!e)throw new Error("RejectionStream requires a TransportStream instance.");this.handleRejections=!0,this.transport=e}_write(e,t,n){return e.rejection?this.transport.log(e,n):(n(),!0)}}},4416:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NvimPlugin=t.Neovim=void 0,t.plugin=function(e){return"function"!=typeof e?t=>s(t,e):s(e)};const r=n(3118),i=n(3324);Object.defineProperty(t,"Neovim",{enumerable:!0,get:function(){return i.Neovim}});const o=n(6329);function s(e,t){return class extends e{constructor(...n){const i=n[0];super(i.nvim,i),this.setApi(i.nvim),t&&i.setOptions(t),i.nvim.logger.info(`Decorating class ${e}`),Object.getOwnPropertyNames(e.prototype).forEach((t=>{i.nvim.logger.info(`Method name ${t}`),i.nvim.logger.info(`${e.prototype[t]} ${typeof e.prototype[t]}`),i.nvim.logger.info(`${this} ${typeof this}`);const n=e.prototype[t];if(n&&n[r.NVIM_SPEC]){const e=n[r.NVIM_SPEC];switch(e.type){case"autocmd":const t={pattern:e.opts.pattern,sync:e.sync};void 0!==e.opts.eval&&(t.eval=e.opts.eval),i.registerAutocmd(e.name,[this,n],t);break;case"command":const r={sync:e.sync};void 0!==e.opts.range&&(r.range=e.opts.range),void 0!==e.opts.nargs&&(r.nargs=e.opts.nargs),void 0!==e.opts.complete&&(r.complete=e.opts.complete),i.registerCommand(e.name,[this,n],r);break;case"function":const o={sync:e.sync};void 0!==e.opts.range&&(o.range=e.opts.range),void 0!==e.opts.eval&&(o.eval=e.opts.eval),i.registerFunction(e.name,[this,n],o)}}}))}setApi(e){this.nvim=e}}}Object.defineProperty(t,"NvimPlugin",{enumerable:!0,get:function(){return o.NvimPlugin}})},4418:(e,t,n)=>{"use strict";function r(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t){var n=e.entry;for(e.entry=null;n;){var r=n.callback;t.pendingcb--,r(undefined),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}var i;e.exports=S,S.WritableState=E;var o,s={deprecate:n(7983)},a=n(5926),u=n(181).Buffer,c=("undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},l=n(358),h=n(6969).getHighWaterMark,d=n(223).F,f=d.ERR_INVALID_ARG_TYPE,p=d.ERR_METHOD_NOT_IMPLEMENTED,g=d.ERR_MULTIPLE_CALLBACK,v=d.ERR_STREAM_CANNOT_PIPE,m=d.ERR_STREAM_DESTROYED,y=d.ERR_STREAM_NULL_VALUES,b=d.ERR_STREAM_WRITE_AFTER_END,w=d.ERR_UNKNOWN_ENCODING,_=l.errorOrDestroy;function x(){}function E(e,t,o){i=i||n(3336),e=e||{},"boolean"!=typeof o&&(o=t instanceof i),this.objectMode=!!e.objectMode,o&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=h(this,e,"writableHighWaterMark",o),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if("function"!=typeof i)throw new g;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){--t.pendingcb,n?(process.nextTick(i,r),process.nextTick(L,e,t),e._writableState.errorEmitted=!0,_(e,r)):(i(r),e._writableState.errorEmitted=!0,_(e,r),L(e,t))}(e,n,r,t,i);else{var o=k(n)||e.destroyed;o||n.corked||n.bufferProcessing||!n.bufferedRequest||T(e,n),r?process.nextTick(M,e,n,o,i):M(e,n,o,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new r(this)}function S(e){var t=this instanceof(i=i||n(3336));if(!t&&!o.call(S,this))return new S(e);this._writableState=new E(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),a.call(this)}function C(e,t,n,r,i,o,s){t.writelen=r,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new m("write")):n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function M(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),L(e,t)}function T(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var i=t.bufferedRequestCount,o=new Array(i),s=t.corkedRequestsFree;s.entry=n;for(var a=0,u=!0;n;)o[a]=n,n.isBuf||(u=!1),n=n.next,a+=1;o.allBuffers=u,C(e,t,!0,t.length,o,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new r(t),t.bufferedRequestCount=0}else{for(;n;){var c=n.chunk,l=n.encoding,h=n.callback;if(C(e,t,!1,t.objectMode?1:c.length,c,l,h),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function k(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function O(e,t){e._final((function(n){t.pendingcb--,n&&_(e,n),t.prefinished=!0,e.emit("prefinish"),L(e,t)}))}function L(e,t){var n=k(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,process.nextTick(O,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var r=e._readableState;(!r||r.autoDestroy&&r.endEmitted)&&e.destroy()}return n}n(2017)(S,a),E.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(E.prototype,"buffer",{get:s.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(o=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(e){return!!o.call(this,e)||this===S&&e&&e._writableState instanceof E}})):o=function(e){return e instanceof this},S.prototype.pipe=function(){_(this,new v)},S.prototype.write=function(e,t,n){var r,i=this._writableState,o=!1,s=!i.objectMode&&(r=e,u.isBuffer(r)||r instanceof c);return s&&!u.isBuffer(e)&&(e=function(e){return u.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof n&&(n=x),i.ending?function(e,t){var n=new b;_(e,n),process.nextTick(t,n)}(this,n):(s||function(e,t,n,r){var i;return null===n?i=new y:"string"==typeof n||t.objectMode||(i=new f("chunk",["string","Buffer"],n)),!i||(_(e,i),process.nextTick(r,i),!1)}(this,i,e,n))&&(i.pendingcb++,o=function(e,t,n,r,i,o){if(!n){var s=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=u.from(t,n)),t}(t,r,i);r!==s&&(n=!0,i="buffer",r=s)}var a=t.objectMode?1:r.length;t.length+=a;var c=t.length<t.highWaterMark;if(c||(t.needDrain=!0),t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else C(e,t,!1,a,r,i,o);return c}(this,i,s,e,t,n)),o},S.prototype.cork=function(){this._writableState.corked++},S.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||T(this,e))},S.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new w(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(e,t,n){n(new p("_write()"))},S.prototype._writev=null,S.prototype.end=function(e,t,n){var r=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||function(e,t,n){t.ending=!0,L(e,t),n&&(t.finished?process.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,r,n),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),S.prototype.destroy=l.destroy,S.prototype._undestroy=l.undestroy,S.prototype._destroy=function(e,t){t(e)}},4434:e=>{"use strict";e.exports=require("events")},4466:(e,t,n)=>{var r={};e.exports=r,r.themes={};var i=n(9023),o=r.styles=n(8692),s=Object.defineProperties,a=new RegExp(/[\r\n]+/g);r.supportsColor=n(7419).supportsColor,void 0===r.enabled&&(r.enabled=!1!==r.supportsColor()),r.enable=function(){r.enabled=!0},r.disable=function(){r.enabled=!1},r.stripColors=r.strip=function(e){return(""+e).replace(/\x1B\[\d+m/g,"")},r.stylize=function(e,t){if(!r.enabled)return e+"";var n=o[t];return!n&&t in r?r[t](e):n.open+e+n.close};var u=/[|\\{}()[\]^$+*?.]/g;function c(e){var t=function e(){return f.apply(e,arguments)};return t._styles=e,t.__proto__=d,t}var l,h=(l={},o.grey=o.gray,Object.keys(o).forEach((function(e){o[e].closeRe=new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(u,"\\$&")}(o[e].close),"g"),l[e]={get:function(){return c(this._styles.concat(e))}}})),l),d=s((function(){}),h);function f(){var e=Array.prototype.slice.call(arguments).map((function(e){return null!=e&&e.constructor===String?e:i.inspect(e)})).join(" ");if(!r.enabled||!e)return e;for(var t=-1!=e.indexOf("\n"),n=this._styles,s=n.length;s--;){var u=o[n[s]];e=u.open+e.replace(u.closeRe,u.open)+u.close,t&&(e=e.replace(a,(function(e){return u.close+e+u.open})))}return e}r.setTheme=function(e){if("string"!=typeof e)for(var t in e)!function(t){r[t]=function(n){if("object"==typeof e[t]){var i=n;for(var o in e[t])i=r[e[t][o]](i);return i}return r[e[t]](n)}}(t);else console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));")};var p=function(e,t){var n=t.split("");return(n=n.map(e)).join("")};for(var g in r.trap=n(7379),r.zalgo=n(9387),r.maps={},r.maps.america=n(4918)(r),r.maps.zebra=n(9742)(r),r.maps.rainbow=n(1588)(r),r.maps.random=n(811)(r),r.maps)!function(e){r[e]=function(t){return p(r.maps[e],t)}}(g);s(r,function(){var e={};return Object.keys(h).forEach((function(t){e[t]={get:function(){return c([t])}}})),e}())},4470:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(n(9875)),i=s(n(4877)),o=s(n(8409));function s(e){return e&&e.__esModule?e:{default:e}}t.default=(0,o.default)(((e,t,n)=>{var o=(0,r.default)(t)?[]:{};e(t,((e,t,n)=>{(0,i.default)(e)(((e,...r)=>{r.length<2&&([r]=r),o[t]=r,n(e)}))}),(e=>n(e,o)))}),3),e.exports=t.default},4575:(e,t,n)=>{"use strict";const r=n(2711),{configs:i}=n(4763);t.cli=r.levels(i.cli),t.npm=r.levels(i.npm),t.syslog=r.levels(i.syslog),t.addColors=r.levels},4580:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Command=t.Autocmd=t.Function=t.Plugin=void 0;var r=n(3579);Object.defineProperty(t,"Plugin",{enumerable:!0,get:function(){return r.Plugin}}),Object.defineProperty(t,"Function",{enumerable:!0,get:function(){return r.Function}}),Object.defineProperty(t,"Autocmd",{enumerable:!0,get:function(){return r.Autocmd}}),Object.defineProperty(t,"Command",{enumerable:!0,get:function(){return r.Command}})},4640:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.attach=function({reader:e,writer:t,proc:n,socket:s,options:a={}}){let u,c;if(s){const e=(0,r.createConnection)(s);u=e,c=e}else e&&t?(u=t,c=e):n&&(u=n.stdin,c=n.stdout);if(u&&c){const e=a.logger||(0,o.getLogger)(),t=new i.NeovimClient({logger:e});return t.attach({writer:u,reader:c}),t}throw new Error("Invalid arguments, could not attach")};const r=n(7030),i=n(5085),o=n(8729)},4763:(e,t,n)=>{"use strict";Object.defineProperty(t,"LEVEL",{value:Symbol.for("level")}),Object.defineProperty(t,"MESSAGE",{value:Symbol.for("message")}),Object.defineProperty(t,"SPLAT",{value:Symbol.for("splat")}),Object.defineProperty(t,"configs",{value:n(5146)})},4867:(e,t,n)=>{"use strict";const r=n(3283),i=n(5532);e.exports=i(((e,t={})=>(t.format&&(e.timestamp="function"==typeof t.format?t.format():r.format(new Date,t.format)),e.timestamp||(e.timestamp=(new Date).toISOString()),t.alias&&(e[t.alias]=e.timestamp),e)))},4873:(e,t,n)=>{"use strict";const r=n(9896),i=n(6928),o=n(7814),s=n(3106),{MESSAGE:a}=n(4763),{Stream:u,PassThrough:c}=n(2092),l=n(3623),h=n(7918)("winston:file"),d=n(857),f=n(7959);e.exports=class extends l{constructor(e={}){function t(t,...n){n.slice(1).forEach((n=>{if(e[n])throw new Error(`Cannot set ${n} and ${t} together`)}))}if(super(e),this.name=e.name||"file",this._stream=new c,this._stream.setMaxListeners(30),this._onError=this._onError.bind(this),e.filename||e.dirname)t("filename or dirname","stream"),this._basename=this.filename=e.filename?i.basename(e.filename):"winston.log",this.dirname=e.dirname||i.dirname(e.filename),this.options=e.options||{flags:"a"};else{if(!e.stream)throw new Error("Cannot log to file without filename or stream.");console.warn("options.stream will be removed in winston@4. Use winston.transports.Stream"),t("stream","filename","maxsize"),this._dest=this._stream.pipe(this._setupStream(e.stream)),this.dirname=i.dirname(this._dest.path)}this.maxsize=e.maxsize||null,this.rotationFormat=e.rotationFormat||!1,this.zippedArchive=e.zippedArchive||!1,this.maxFiles=e.maxFiles||null,this.eol="string"==typeof e.eol?e.eol:d.EOL,this.tailable=e.tailable||!1,this.lazy=e.lazy||!1,this._size=0,this._pendingSize=0,this._created=0,this._drain=!1,this._opening=!1,this._ending=!1,this._fileExist=!1,this.dirname&&this._createLogDirIfNotExist(this.dirname),this.lazy||this.open()}finishIfEnding(){this._ending&&(this._opening?this.once("open",(()=>{this._stream.once("finish",(()=>this.emit("finish"))),setImmediate((()=>this._stream.end()))})):(this._stream.once("finish",(()=>this.emit("finish"))),setImmediate((()=>this._stream.end()))))}log(e,t=()=>{}){if(this.silent)return t(),!0;if(this._drain)return void this._stream.once("drain",(()=>{this._drain=!1,this.log(e,t)}));if(this._rotate)return void this._stream.once("rotate",(()=>{this._rotate=!1,this.log(e,t)}));if(this.lazy){if(!this._fileExist)return this._opening||this.open(),void this.once("open",(()=>{this._fileExist=!0,this.log(e,t)}));if(this._needsNewFile(this._pendingSize))return void this._dest.once("close",(()=>{this._opening||this.open(),this.once("open",(()=>{this.log(e,t)}))}))}const n=`${e[a]}${this.eol}`,r=Buffer.byteLength(n);this._pendingSize+=r,this._opening&&!this.rotatedWhileOpening&&this._needsNewFile(this._size+this._pendingSize)&&(this.rotatedWhileOpening=!0);const i=this._stream.write(n,function(){this._size+=r,this._pendingSize-=r,h("logged %s %s",this._size,n),this.emit("logged",e),this._rotate||this._opening||this._needsNewFile()&&(this.lazy?this._endStream((()=>{this.emit("fileclosed")})):(this._rotate=!0,this._endStream((()=>this._rotateFile()))))}.bind(this));return i?t():(this._drain=!0,this._stream.once("drain",(()=>{this._drain=!1,t()}))),h("written",i,this._drain),this.finishIfEnding(),i}query(e,t){"function"==typeof e&&(t=e,e={}),e=function(e){return(e=e||{}).rows=e.rows||e.limit||10,e.start=e.start||0,e.until=e.until||new Date,"object"!=typeof e.until&&(e.until=new Date(e.until)),e.from=e.from||e.until-864e5,"object"!=typeof e.from&&(e.from=new Date(e.from)),e.order=e.order||"desc",e}(e);const n=i.join(this.dirname,this.filename);let o="",s=[],a=0;const u=r.createReadStream(n,{encoding:"utf8"});function c(t,n){try{const n=JSON.parse(t);(function(t){if(!t)return;if("object"!=typeof t)return;const n=new Date(t.timestamp);return!(e.from&&n<e.from||e.until&&n>e.until||e.level&&e.level!==t.level)||void 0})(n)&&function(t){e.rows&&s.length>=e.rows&&"desc"!==e.order?u.readable&&u.destroy():(e.fields&&(t=e.fields.reduce(((e,n)=>(e[n]=t[n],e)),{})),"desc"===e.order&&s.length>=e.rows&&s.shift(),s.push(t))}(n)}catch(e){n||u.emit("error",e)}}u.on("error",(e=>{if(u.readable&&u.destroy(),t)return"ENOENT"!==e.code?t(e):t(null,s)})),u.on("data",(t=>{const n=(t=(o+t).split(/\n+/)).length-1;let r=0;for(;r<n;r++)(!e.start||a>=e.start)&&c(t[r]),a++;o=t[n]})),u.on("close",(()=>{o&&c(o,!0),"desc"===e.order&&(s=s.reverse()),t&&t(null,s)}))}stream(e={}){const t=i.join(this.dirname,this.filename),n=new u,r={file:t,start:e.start};return n.destroy=f(r,((e,t)=>{if(e)return n.emit("error",e);try{n.emit("data",t),t=JSON.parse(t),n.emit("log",t)}catch(e){n.emit("error",e)}})),n}open(){this.filename&&(this._opening||(this._opening=!0,this.stat(((e,t)=>{if(e)return this.emit("error",e);h("stat done: %s { size: %s }",this.filename,t),this._size=t,this._dest=this._createStream(this._stream),this._opening=!1,this.once("open",(()=>{this._stream.emit("rotate")||(this._rotate=!1)}))}))))}stat(e){const t=this._getFile(),n=i.join(this.dirname,t);r.stat(n,((r,i)=>r&&"ENOENT"===r.code?(h("ENOENT ok",n),this.filename=t,e(null,0)):r?(h(`err ${r.code} ${n}`),e(r)):!i||this._needsNewFile(i.size)?this._incFile((()=>this.stat(e))):(this.filename=t,void e(null,i.size))))}close(e){this._stream&&this._stream.end((()=>{e&&e(),this.emit("flush"),this.emit("closed")}))}_needsNewFile(e){return e=e||this._size,this.maxsize&&e>=this.maxsize}_onError(e){this.emit("error",e)}_setupStream(e){return e.on("error",this._onError),e}_cleanupStream(e){return e.removeListener("error",this._onError),e.destroy(),e}_rotateFile(){this._incFile((()=>this.open()))}_endStream(e=()=>{}){this._dest?(this._stream.unpipe(this._dest),this._dest.end((()=>{this._cleanupStream(this._dest),e()}))):e()}_createStream(e){const t=i.join(this.dirname,this.filename);h("create stream start",t,this.options);const n=r.createWriteStream(t,this.options).on("error",(e=>h(e))).on("close",(()=>h("close",n.path,n.bytesWritten))).on("open",(()=>{h("file open ok",t),this.emit("open",t),e.pipe(n),this.rotatedWhileOpening&&(this._stream=new c,this._stream.setMaxListeners(30),this._rotateFile(),this.rotatedWhileOpening=!1,this._cleanupStream(n),e.end())}));return h("create stream ok",t),n}_incFile(e){h("_incFile",this.filename);const t=i.extname(this._basename),n=i.basename(this._basename,t),r=[];this.zippedArchive&&r.push(function(e){const r=this._created>0&&!this.tailable?this._created:"";this._compressFile(i.join(this.dirname,`${n}${r}${t}`),i.join(this.dirname,`${n}${r}${t}.gz`),e)}.bind(this)),r.push(function(e){this.tailable?this._checkMaxFilesTailable(t,n,e):(this._created+=1,this._checkMaxFilesIncrementing(t,n,e))}.bind(this)),o(r,e)}_getFile(){const e=i.extname(this._basename),t=i.basename(this._basename,e),n=this.rotationFormat?this.rotationFormat():this._created;return!this.tailable&&this._created?`${t}${n}${e}`:`${t}${e}`}_checkMaxFilesIncrementing(e,t,n){if(!this.maxFiles||this._created<this.maxFiles)return setImmediate(n);const o=this._created-this.maxFiles,s=`${t}${0!==o?o:""}${e}${this.zippedArchive?".gz":""}`,a=i.join(this.dirname,s);r.unlink(a,n)}_checkMaxFilesTailable(e,t,n){const s=[];if(!this.maxFiles)return;const a=this.zippedArchive?".gz":"";for(let n=this.maxFiles-1;n>1;n--)s.push(function(n,o){let s=`${t}${n-1}${e}${a}`;const u=i.join(this.dirname,s);r.exists(u,(c=>{if(!c)return o(null);s=`${t}${n}${e}${a}`,r.rename(u,i.join(this.dirname,s),o)}))}.bind(this,n));o(s,(()=>{r.rename(i.join(this.dirname,`${t}${e}${a}`),i.join(this.dirname,`${t}1${e}${a}`),n)}))}_compressFile(e,t,n){r.access(e,r.F_OK,(i=>{if(i)return n();var o=s.createGzip(),a=r.createReadStream(e),u=r.createWriteStream(t);u.on("finish",(()=>{r.unlink(e,n)})),a.pipe(o).pipe(u)}))}_createLogDirIfNotExist(e){r.existsSync(e)||r.mkdirSync(e,{recursive:!0})}}},4877:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAsyncIterable=t.isAsyncGenerator=t.isAsync=void 0;var r,i=(r=n(257))&&r.__esModule?r:{default:r};function o(e){return"AsyncFunction"===e[Symbol.toStringTag]}t.default=function(e){if("function"!=typeof e)throw new Error("expected a function");return o(e)?(0,i.default)(e):e},t.isAsync=o,t.isAsyncGenerator=function(e){return"AsyncGenerator"===e[Symbol.toStringTag]},t.isAsyncIterable=function(e){return"function"==typeof e[Symbol.asyncIterator]}},4918:e=>{e.exports=function(e){return function(t,n,r){if(" "===t)return t;switch(n%3){case 0:return e.red(t);case 1:return e.white(t);case 2:return e.blue(t)}}}},4979:(e,t,n)=>{"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e,t,n){return(t=a(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function a(e){var t=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}var u=n(181).Buffer,c=n(9023).inspect,l=c&&c.custom||"inspect";e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,n;return t=e,(n=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return u.alloc(0);for(var t,n,r,i=u.allocUnsafe(e>>>0),o=this.head,s=0;o;)t=o.data,n=i,r=s,u.prototype.copy.call(t,n,r),s+=o.data.length,o=o.next;return i}},{key:"consume",value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,n=1,r=t.data;for(e-=r.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?r+=i:r+=i.slice(0,e),0==(e-=o)){o===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=u.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(o));break}++r}return this.length-=r,t}},{key:l,value:function(e,t){return c(this,i(i({},t),{},{depth:0,customInspect:!1}))}}])&&s(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()},5031:(e,t)=>{function n(e){for(var t in e)this[t]=e[t]}t.get=function(e){var n=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var r={},i=Error.prepareStackTrace;Error.prepareStackTrace=function(e,t){return t},Error.captureStackTrace(r,e||t.get);var o=r.stack;return Error.prepareStackTrace=i,Error.stackTraceLimit=n,o},t.parse=function(e){if(!e.stack)return[];var t=this;return e.stack.split("\n").slice(1).map((function(e){if(e.match(/^\s*[-]{4,}$/))return t._createParsedCallSite({fileName:e,lineNumber:null,functionName:null,typeName:null,methodName:null,columnNumber:null,native:null});var n=e.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(n){var r=null,i=null,o=null,s=null,a=null,u="native"===n[5];if(n[1]){var c=(o=n[1]).lastIndexOf(".");if("."==o[c-1]&&c--,c>0){r=o.substr(0,c),i=o.substr(c+1);var l=r.indexOf(".Module");l>0&&(o=o.substr(l+1),r=r.substr(0,l))}s=null}i&&(s=r,a=i),"<anonymous>"===i&&(a=null,o=null);var h={fileName:n[2]||null,lineNumber:parseInt(n[3],10)||null,functionName:o,typeName:s,methodName:a,columnNumber:parseInt(n[4],10)||null,native:u};return t._createParsedCallSite(h)}})).filter((function(e){return!!e}))},["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"].forEach((function(e){n.prototype[e]=null,n.prototype["get"+e[0].toUpperCase()+e.substr(1)]=function(){return this[e]}})),["topLevel","eval","native","constructor"].forEach((function(e){n.prototype[e]=!1,n.prototype["is"+e[0].toUpperCase()+e.substr(1)]=function(){return this[e]}})),t._createParsedCallSite=function(e){return new n(e)}},5071:(e,t,n)=>{"use strict";const r=n(8611),i=n(5692),{Stream:o}=n(2092),s=n(3623),{configure:a}=n(2068);e.exports=class extends s{constructor(e={}){super(e),this.options=e,this.name=e.name||"http",this.ssl=!!e.ssl,this.host=e.host||"localhost",this.port=e.port,this.auth=e.auth,this.path=e.path||"",this.maximumDepth=e.maximumDepth,this.agent=e.agent,this.headers=e.headers||{},this.headers["content-type"]="application/json",this.batch=e.batch||!1,this.batchInterval=e.batchInterval||5e3,this.batchCount=e.batchCount||10,this.batchOptions=[],this.batchTimeoutID=-1,this.batchCallback={},this.port||(this.port=this.ssl?443:80)}log(e,t){this._request(e,null,null,((t,n)=>{n&&200!==n.statusCode&&(t=new Error(`Invalid HTTP Status Code: ${n.statusCode}`)),t?this.emit("warn",t):this.emit("logged",e)})),t&&setImmediate(t)}query(e,t){"function"==typeof e&&(t=e,e={});const n=(e={method:"query",params:this.normalizeQuery(e)}).params.auth||null;delete e.params.auth;const r=e.params.path||null;delete e.params.path,this._request(e,n,r,((e,n,r)=>{if(n&&200!==n.statusCode&&(e=new Error(`Invalid HTTP Status Code: ${n.statusCode}`)),e)return t(e);if("string"==typeof r)try{r=JSON.parse(r)}catch(e){return t(e)}t(null,r)}))}stream(e={}){const t=new o,n=(e={method:"stream",params:e}).params.path||null;delete e.params.path;const r=e.params.auth||null;delete e.params.auth;let i="";const s=this._request(e,r,n);return t.destroy=()=>s.destroy(),s.on("data",(e=>{const n=(e=(i+e).split(/\n+/)).length-1;let r=0;for(;r<n;r++)try{t.emit("log",JSON.parse(e[r]))}catch(e){t.emit("error",e)}i=e[n]})),s.on("error",(e=>t.emit("error",e))),t}_request(e,t,n,r){e=e||{},t=t||this.auth,n=n||this.path||"",this.batch?this._doBatch(e,r,t,n):this._doRequest(e,r,t,n)}_doBatch(e,t,n,r){if(this.batchOptions.push(e),1===this.batchOptions.length){const e=this;this.batchCallback=t,this.batchTimeoutID=setTimeout((function(){e.batchTimeoutID=-1,e._doBatchRequest(e.batchCallback,n,r)}),this.batchInterval)}this.batchOptions.length===this.batchCount&&this._doBatchRequest(this.batchCallback,n,r)}_doBatchRequest(e,t,n){this.batchTimeoutID>0&&(clearTimeout(this.batchTimeoutID),this.batchTimeoutID=-1);const r=this.batchOptions.slice();this.batchOptions=[],this._doRequest(r,e,t,n)}_doRequest(e,t,n,o){const s=Object.assign({},this.headers);n&&n.bearer&&(s.Authorization=`Bearer ${n.bearer}`);const u=(this.ssl?i:r).request({...this.options,method:"POST",host:this.host,port:this.port,path:`/${o.replace(/^\//,"")}`,headers:s,auth:n&&n.username&&n.password?`${n.username}:${n.password}`:"",agent:this.agent});u.on("error",t),u.on("response",(e=>e.on("end",(()=>t(null,e))).resume()));const c=a({...this.maximumDepth&&{maximumDepth:this.maximumDepth}});u.end(Buffer.from(c(e,this.options.replacer),"utf8"))}}},5085: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{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.NeovimClient=void 0;const i=n(2228),o=n(3324),s=/nvim_buf_(.*)_event/;class a extends o.Neovim{constructor(e={}){super({logger:e.logger,transport:e.transport||new i.Transport}),this.attachedBuffers=new Map,this.requestQueue=[],this.transportAttached=!1,this.handleRequest=this.handleRequest.bind(this),this.handleNotification=this.handleNotification.bind(this)}attach({reader:e,writer:t}){this.transport.attach(t,e,this),this.transportAttached=!0,this.setupTransport()}get isApiReady(){return this.transportAttached&&void 0!==this._channelId}get channelId(){return(()=>r(this,void 0,void 0,(function*(){if(yield this._isReady,!this._channelId)throw new Error("channelId requested before _isReady");return this._channelId})))()}isAttached(e){const t=`${e.data}`;return this.attachedBuffers.has(t)}handleRequest(e,t,n,...r){this.isApiReady||"specs"===e?(this.logger.info("handleRequest: %s",e),this.emit("request",e,t,n)):(this.logger.info("handleRequest (queued): %s",e),this.requestQueue.push({type:"request",args:[e,t,n,...r]}))}emitNotification(e,t){if(e.endsWith("_event")){if(!e.startsWith("nvim_buf_"))return void this.logger.error("Unhandled event: %s",e);const n=e.replace(s,"$1"),[r]=t,i=`${r.data}`,o=this.attachedBuffers.get(i);if(void 0===o)return;(o.get(n)||[]).forEach((e=>e(...t))),"detach"===n&&this.attachedBuffers.delete(i)}else this.emit("notification",e,t)}handleNotification(e,t,...n){this.logger.info("handleNotification: %s",e),this.isApiReady?this.emitNotification(e,t):this.requestQueue.push({type:"notification",args:[e,t,...n]})}setupTransport(){if(!this.transportAttached)throw new Error("Not attached to input/output");this.transport.on("request",this.handleRequest),this.transport.on("notification",this.handleNotification),this.transport.on("detach",(()=>{this.emit("disconnect"),this.transport.removeAllListeners("request"),this.transport.removeAllListeners("notification"),this.transport.removeAllListeners("detach")})),this._isReady=this.generateApi()}requestApi(){return new Promise(((e,t)=>{this.transport.request("nvim_get_api_info",[],((n,r)=>{n?t(n):e(r)}))}))}generateApi(){return r(this,void 0,void 0,(function*(){let e;try{e=yield this.requestApi()}catch(e){this.logger.error("Could not get vim api results"),this.logger.error(e)}if(e)try{const[t]=e;return this._channelId=t,this.requestQueue.forEach((e=>{"notification"===e.type?this.emitNotification(e.args[0],e.args[1]):this.emit(e.type,...e.args)})),this.requestQueue=[],!0}catch(e){const t=e;return this.logger.error("Could not dynamically generate neovim API: %s: %O",t.name,{error:t}),this.logger.error(t.stack),!1}return!1}))}attachBuffer(e,t,n){var r;const i=`${e.data}`;this.attachedBuffers.has(i)||this.attachedBuffers.set(i,new Map);const o=this.attachedBuffers.get(i);if(!o)throw Error(`buffer not found: ${i}`);o.get(t)||o.set(t,[]);const s=null!==(r=o.get(t))&&void 0!==r?r:[];return s.includes(n)||(s.push(n),o.set(t,s),this.attachedBuffers.set(i,o)),n}detachBuffer(e,t,n){const r=`${e.data}`,i=this.attachedBuffers.get(r);if(!i)return!1;const o=(i.get(t)||[]).filter((e=>e!==n));return o.length?i.set(t,o):i.delete(t),!i.size&&(this.attachedBuffers.delete(r),!0)}}t.NeovimClient=a},5103:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{v:()=>eval_for_client});var vscode__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1398),vscode__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(vscode__WEBPACK_IMPORTED_MODULE_0__),_logger__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(1377),__awaiter=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};const vscode=vscode__WEBPACK_IMPORTED_MODULE_0___default(),logger=(0,_logger__WEBPACK_IMPORTED_MODULE_1__.h)("eval");function eval_for_client(code,args){return __awaiter(this,void 0,void 0,(function*(){const func=eval("async () => {"+code+"}"),result=yield func();let data;try{data=JSON.stringify(result)}catch(e){throw new Error(`Return value of eval not JSON serializable: ${e}`)}return data?JSON.parse(data):data}))}},5146:(e,t,n)=>{"use strict";Object.defineProperty(t,"cli",{value:n(2204)}),Object.defineProperty(t,"npm",{value:n(7767)}),Object.defineProperty(t,"syslog",{value:n(589)})},5238:(e,t,n)=>{"use strict";const{Writable:r}=n(2092);e.exports=class extends r{constructor(e){if(super({objectMode:!0}),!e)throw new Error("ExceptionStream requires a TransportStream instance.");this.handleExceptions=!0,this.transport=e}_write(e,t,n){return e.exception?this.transport.log(e,n):(n(),!0)}}},5314:e=>{"use strict";function t(e,t){r(e,t),n(e)}function n(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function r(e,t){e.emit("error",t)}e.exports={destroy:function(e,i){var o=this,s=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return s||a?(i?i(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(r,this,e)):process.nextTick(r,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!i&&e?o._writableState?o._writableState.errorEmitted?process.nextTick(n,o):(o._writableState.errorEmitted=!0,process.nextTick(t,o,e)):process.nextTick(t,o,e):i?(process.nextTick(n,o),i(e)):process.nextTick(n,o)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}}},5317:e=>{"use strict";e.exports=require("child_process")},5337:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(t,n,r)=>e(t,r)},e.exports=t.default},5362:(e,t,n)=>{"use strict";function r(e,t,n,r,i,o,s){try{var a=e[o](s),u=a.value}catch(e){return void n(e)}a.done?t(u):Promise.resolve(u).then(r,i)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=n(3291).F.ERR_INVALID_ARG_TYPE;e.exports=function(e,t,n){var a;if(t&&"function"==typeof t.next)a=t;else if(t&&t[Symbol.asyncIterator])a=t[Symbol.asyncIterator]();else{if(!t||!t[Symbol.iterator])throw new s("iterable",["Iterable"],t);a=t[Symbol.iterator]()}var u=new e(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({objectMode:!0},n)),c=!1;function l(){return h.apply(this,arguments)}function h(){var e;return e=function*(){try{var e=yield a.next(),t=e.value;e.done?u.push(null):u.push(yield t)?l():c=!1}catch(e){u.destroy(e)}},h=function(){var t=this,n=arguments;return new Promise((function(i,o){var s=e.apply(t,n);function a(e){r(s,i,o,a,u,"next",e)}function u(e){r(s,i,o,a,u,"throw",e)}a(void 0)}))},h.apply(this,arguments)}return u._read=function(){c||(c=!0,l())},u}},5426:(e,t,n)=>{e.exports=n(2203)},5494:(e,t,n)=>{"use strict";function r(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t){var n=e.entry;for(e.entry=null;n;){var r=n.callback;t.pendingcb--,r(undefined),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}var i;e.exports=S,S.WritableState=E;var o,s={deprecate:n(7983)},a=n(5426),u=n(181).Buffer,c=("undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},l=n(5314),h=n(2365).getHighWaterMark,d=n(3291).F,f=d.ERR_INVALID_ARG_TYPE,p=d.ERR_METHOD_NOT_IMPLEMENTED,g=d.ERR_MULTIPLE_CALLBACK,v=d.ERR_STREAM_CANNOT_PIPE,m=d.ERR_STREAM_DESTROYED,y=d.ERR_STREAM_NULL_VALUES,b=d.ERR_STREAM_WRITE_AFTER_END,w=d.ERR_UNKNOWN_ENCODING,_=l.errorOrDestroy;function x(){}function E(e,t,o){i=i||n(2812),e=e||{},"boolean"!=typeof o&&(o=t instanceof i),this.objectMode=!!e.objectMode,o&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=h(this,e,"writableHighWaterMark",o),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if("function"!=typeof i)throw new g;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){--t.pendingcb,n?(process.nextTick(i,r),process.nextTick(L,e,t),e._writableState.errorEmitted=!0,_(e,r)):(i(r),e._writableState.errorEmitted=!0,_(e,r),L(e,t))}(e,n,r,t,i);else{var o=k(n)||e.destroyed;o||n.corked||n.bufferProcessing||!n.bufferedRequest||T(e,n),r?process.nextTick(M,e,n,o,i):M(e,n,o,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new r(this)}function S(e){var t=this instanceof(i=i||n(2812));if(!t&&!o.call(S,this))return new S(e);this._writableState=new E(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),a.call(this)}function C(e,t,n,r,i,o,s){t.writelen=r,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new m("write")):n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function M(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),L(e,t)}function T(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var i=t.bufferedRequestCount,o=new Array(i),s=t.corkedRequestsFree;s.entry=n;for(var a=0,u=!0;n;)o[a]=n,n.isBuf||(u=!1),n=n.next,a+=1;o.allBuffers=u,C(e,t,!0,t.length,o,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new r(t),t.bufferedRequestCount=0}else{for(;n;){var c=n.chunk,l=n.encoding,h=n.callback;if(C(e,t,!1,t.objectMode?1:c.length,c,l,h),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function k(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function O(e,t){e._final((function(n){t.pendingcb--,n&&_(e,n),t.prefinished=!0,e.emit("prefinish"),L(e,t)}))}function L(e,t){var n=k(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,process.nextTick(O,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var r=e._readableState;(!r||r.autoDestroy&&r.endEmitted)&&e.destroy()}return n}n(2017)(S,a),E.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(E.prototype,"buffer",{get:s.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(o=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(e){return!!o.call(this,e)||this===S&&e&&e._writableState instanceof E}})):o=function(e){return e instanceof this},S.prototype.pipe=function(){_(this,new v)},S.prototype.write=function(e,t,n){var r,i=this._writableState,o=!1,s=!i.objectMode&&(r=e,u.isBuffer(r)||r instanceof c);return s&&!u.isBuffer(e)&&(e=function(e){return u.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof n&&(n=x),i.ending?function(e,t){var n=new b;_(e,n),process.nextTick(t,n)}(this,n):(s||function(e,t,n,r){var i;return null===n?i=new y:"string"==typeof n||t.objectMode||(i=new f("chunk",["string","Buffer"],n)),!i||(_(e,i),process.nextTick(r,i),!1)}(this,i,e,n))&&(i.pendingcb++,o=function(e,t,n,r,i,o){if(!n){var s=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=u.from(t,n)),t}(t,r,i);r!==s&&(n=!0,i="buffer",r=s)}var a=t.objectMode?1:r.length;t.length+=a;var c=t.length<t.highWaterMark;if(c||(t.needDrain=!0),t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else C(e,t,!1,a,r,i,o);return c}(this,i,s,e,t,n)),o},S.prototype.cork=function(){this._writableState.corked++},S.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||T(this,e))},S.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new w(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(e,t,n){n(new p("_write()"))},S.prototype._writev=null,S.prototype.end=function(e,t,n){var r=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||function(e,t,n){t.ending=!0,L(e,t),n&&(t.finished?process.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,r,n),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),S.prototype.destroy=l.destroy,S.prototype._undestroy=l.undestroy,S.prototype._destroy=function(e,t){t(e)}},5532:e=>{"use strict";class t extends Error{constructor(e){super(`Format functions must be synchronous taking a two arguments: (info, opts)\nFound: ${e.toString().split("\n")[0]}\n`),Error.captureStackTrace(this,t)}}e.exports=e=>{if(e.length>2)throw new t(e);function n(e={}){this.options=e}function r(e){return new n(e)}return n.prototype.transform=e,r.Format=n,r}},5692:e=>{"use strict";e.exports=require("https")},5767:(e,t,n)=>{"use strict";const r=n(1232),{MESSAGE:i}=n(4763),o=n(857),s=n(3623);e.exports=class extends s{constructor(e={}){if(super(e),!e.stream||!r(e.stream))throw new Error("options.stream is required.");this._stream=e.stream,this._stream.setMaxListeners(1/0),this.isObjectMode=e.stream._writableState.objectMode,this.eol="string"==typeof e.eol?e.eol:o.EOL}log(e,t){if(setImmediate((()=>this.emit("logged",e))),this.isObjectMode)return this._stream.write(e),void(t&&t());this._stream.write(`${e[i]}${this.eol}`),t&&t()}}},5874:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(3852)),i=o(n(8409));function o(e){return e&&e.__esModule?e:{default:e}}t.default=(0,i.default)((function(e,t,n){return(0,r.default)(e,1,t,n)}),3),e.exports=t.default},5926:(e,t,n)=>{e.exports=n(2203)},6104:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Tabpage=void 0;const r=n(9691),i=n(7905),o=n(163),s=n(6866);class a extends r.BaseApi{constructor(){super(...arguments),this.prefix=i.Metadata[i.ExtType.Tabpage].prefix}get windows(){return this.request(`${this.prefix}list_wins`,[this])}get window(){return o.createChainableApi.call(this,"Window",s.Window,(()=>this.request(`${this.prefix}get_win`,[this])))}get valid(){return this.request(`${this.prefix}is_valid`,[this])}get number(){return this.request(`${this.prefix}get_number`,[this])}getOption(){this.logger.error("Tabpage does not have `getOption`")}setOption(){this.logger.error("Tabpage does not have `setOption`")}}t.Tabpage=a},6182:(e,t,n)=>{"use strict";function r(e,t,n,r,i,o,s){try{var a=e[o](s),u=a.value}catch(e){return void n(e)}a.done?t(u):Promise.resolve(u).then(r,i)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=n(223).F.ERR_INVALID_ARG_TYPE;e.exports=function(e,t,n){var a;if(t&&"function"==typeof t.next)a=t;else if(t&&t[Symbol.asyncIterator])a=t[Symbol.asyncIterator]();else{if(!t||!t[Symbol.iterator])throw new s("iterable",["Iterable"],t);a=t[Symbol.iterator]()}var u=new e(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({objectMode:!0},n)),c=!1;function l(){return h.apply(this,arguments)}function h(){var e;return e=function*(){try{var e=yield a.next(),t=e.value;e.done?u.push(null):u.push(yield t)?l():c=!1}catch(e){u.destroy(e)}},h=function(){var t=this,n=arguments;return new Promise((function(i,o){var s=e.apply(t,n);function a(e){r(s,i,o,a,u,"next",e)}function u(e){r(s,i,o,a,u,"throw",e)}a(void 0)}))},h.apply(this,arguments)}return u._read=function(){c||(c=!0,l())},u}},6256:e=>{"use strict";e.exports={version:"3.14.1"}},6329: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{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};function r(e){if("function"==typeof e)return e;if(Array.isArray(e)&&2===e.length)return function(...t){return e[1].apply(e[0],t)};throw new Error}Object.defineProperty(t,"__esModule",{value:!0}),t.NvimPlugin=void 0,t.callable=r,t.NvimPlugin=class{constructor(e,t,n){this.filename=e,this.nvim=n,this.dev=!1,this.alwaysInit=!1,this.autocmds={},this.commands={},this.functions={};try{this.instance=new t(this)}catch(e){if(!(e instanceof TypeError))throw e;this.instance=t(this)}}setOptions(e){this.dev=void 0===e.dev?this.dev:e.dev,this.alwaysInit=!!e.alwaysInit}get shouldCacheModule(){return!this.dev}registerAutocmd(e,t,n){if(!(null==n?void 0:n.pattern))return void this.nvim.logger.error(`registerAutocmd expected pattern option for ${e}`);const i={type:"autocmd",name:e,sync:!!(null==n?void 0:n.sync),opts:{}};["pattern","eval"].forEach((e=>{n&&void 0!==n[e]&&(i.opts[e]=n[e])}));try{this.autocmds[`${e} ${n.pattern}`]={fn:r(t),spec:i}}catch(t){this.nvim.logger.error(`registerAutocmd expected callable argument for ${e}`)}}registerCommand(e,t,n){const i={type:"command",name:e,sync:!!(null==n?void 0:n.sync),opts:{}};["range","nargs","complete"].forEach((e=>{n&&void 0!==n[e]&&(i.opts[e]=n[e])}));try{this.commands[e]={fn:r(t),spec:i}}catch(t){this.nvim.logger.error(`registerCommand expected callable argument for ${e}`)}}registerFunction(e,t,n){const i={type:"function",name:e,sync:!!(null==n?void 0:n.sync),opts:{}};["range","eval"].forEach((e=>{n&&void 0!==n[e]&&(i.opts[e]=n[e])}));try{this.functions[e]={fn:r(t),spec:i}}catch(t){this.nvim.logger.error(`registerFunction expected callable argument for ${e}`)}}get specs(){const e=Object.keys(this.autocmds).map((e=>this.autocmds[e].spec)),t=Object.keys(this.commands).map((e=>this.commands[e].spec)),n=Object.keys(this.functions).map((e=>this.functions[e].spec));return e.concat(t).concat(n)}handleRequest(e,t,r){return n(this,void 0,void 0,(function*(){let n;switch(t){case"autocmd":n=this.autocmds;break;case"command":n=this.commands;break;case"function":n=this.functions;break;default:const r=`No handler for unknown type ${t}: "${e}" in ${this.filename}`;throw this.nvim.logger.error(r),new Error(r)}if(!n.hasOwnProperty(e)){const n=`Missing handler for ${t}: "${e}" in ${this.filename}`;throw this.nvim.logger.error(n),new Error(n)}{const i=n[e];try{return i.spec.sync?i.fn(...r):yield i.fn(...r)}catch(n){const r=n,i=`Error in plugin for ${t}:${e}: ${r.message}`;throw this.nvim.logger.error(`${i} (file: ${this.filename}, stack: ${r.stack})`),new Error(i,{cause:r})}}}))}}},6368:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fallback=s,t.wrap=a;var n,r=t.hasQueueMicrotask="function"==typeof queueMicrotask&&queueMicrotask,i=t.hasSetImmediate="function"==typeof setImmediate&&setImmediate,o=t.hasNextTick="object"==typeof process&&"function"==typeof process.nextTick;function s(e){setTimeout(e,0)}function a(e){return(t,...n)=>e((()=>t(...n)))}n=r?queueMicrotask:i?setImmediate:o?process.nextTick:s,t.default=a(n)},6372: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.loadPlugin=function(e,t,r={}){try{return function(e,t,r={}){try{if(t.logger.debug(`createPlugin.${e}.clearCache: ${r&&!r.cache}`),r&&!r.cache)try{delete a._cache[n(7699).resolve(e)]}catch(e){}const i=n(7699)(e),o=i&&i.default||i;if("function"==typeof o)return new u.NvimPlugin(e,o,t)}catch(n){const r=n,i=s.basename(e);t.logger.error(`[${i}] ${r.stack}`),t.logger.error(`[${i}] Error loading child ChildPlugin ${e}`)}return null}(e,t,r)}catch(e){return null}};const s=o(n(6760)),a=n(3339),u=n(6329)},6439:(e,t,n)=>{"use strict";const r=n(7627),i=n(5532),{MESSAGE:o}=n(4763);e.exports=i(((e,t)=>(!1!==t.level&&(e.level=r.strip(e.level)),!1!==t.message&&(e.message=r.strip(String(e.message))),!1!==t.raw&&e[o]&&(e[o]=r.strip(String(e[o]))),e)))},6585:e=>{var t=1e3,n=60*t,r=60*n,i=24*r,o=7*i;function s(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,a){a=a||{};var u,c,l=typeof e;if("string"===l&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(s){var a=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"weeks":case"week":case"w":return a*o;case"days":case"day":case"d":return a*i;case"hours":case"hour":case"hrs":case"hr":case"h":return a*r;case"minutes":case"minute":case"mins":case"min":case"m":return a*n;case"seconds":case"second":case"secs":case"sec":case"s":return a*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}(e);if("number"===l&&isFinite(e))return a.long?(u=e,(c=Math.abs(u))>=i?s(u,c,i,"day"):c>=r?s(u,c,r,"hour"):c>=n?s(u,c,n,"minute"):c>=t?s(u,c,t,"second"):u+" ms"):function(e){var o=Math.abs(e);return o>=i?Math.round(e/i)+"d":o>=r?Math.round(e/r)+"h":o>=n?Math.round(e/n)+"m":o>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},6698:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},6760:e=>{"use strict";e.exports=require("node:path")},6816:(e,t,n)=>{"use strict";const r=n(5532),{MESSAGE:i}=n(4763),o=n(2068);e.exports=r((e=>{const t={};return e.message&&(t["@message"]=e.message,delete e.message),e.timestamp&&(t["@timestamp"]=e.timestamp,delete e.timestamp),t["@fields"]=e,e[i]=o(t),e}))},6856:(e,t,n)=>{"use strict";var r=n(3291).F.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,n,o){if("function"==typeof n)return e(t,null,n);n||(n={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r)}}}(o||i);var s=n.readable||!1!==n.readable&&t.readable,a=n.writable||!1!==n.writable&&t.writable,u=function(){t.writable||l()},c=t._writableState&&t._writableState.finished,l=function(){a=!1,c=!0,s||o.call(t)},h=t._readableState&&t._readableState.endEmitted,d=function(){s=!1,h=!0,a||o.call(t)},f=function(e){o.call(t,e)},p=function(){var e;return s&&!h?(t._readableState&&t._readableState.ended||(e=new r),o.call(t,e)):a&&!c?(t._writableState&&t._writableState.ended||(e=new r),o.call(t,e)):void 0},g=function(){t.req.on("finish",l)};return function(e){return e.setHeader&&"function"==typeof e.abort}(t)?(t.on("complete",l),t.on("abort",p),t.req?g():t.on("request",g)):a&&!t._writableState&&(t.on("end",u),t.on("close",u)),t.on("end",d),t.on("finish",l),!1!==n.error&&t.on("error",f),t.on("close",p),function(){t.removeListener("complete",l),t.removeListener("abort",p),t.removeListener("request",g),t.req&&t.req.removeListener("finish",l),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",l),t.removeListener("end",d),t.removeListener("error",f),t.removeListener("close",p)}}},6866:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Window=void 0;const r=n(9691),i=n(7905),o=n(163),s=n(6104),a=n(1716);class u extends r.BaseApi{constructor(){super(...arguments),this.prefix=i.Metadata[i.ExtType.Window].prefix}get id(){return this.data}get buffer(){return o.createChainableApi.call(this,"Buffer",a.Buffer,(()=>this.request(`${this.prefix}get_buf`,[this])))}get tabpage(){return o.createChainableApi.call(this,"Tabpage",s.Tabpage,(()=>this.request(`${this.prefix}get_tabpage`,[this])))}get cursor(){return this.request(`${this.prefix}get_cursor`,[this])}set cursor(e){this.request(`${this.prefix}set_cursor`,[this,e])}get height(){return this.request(`${this.prefix}get_height`,[this])}set height(e){this.request(`${this.prefix}set_height`,[this,e])}get width(){return this.request(`${this.prefix}get_width`,[this])}set width(e){this.request(`${this.prefix}set_width`,[this,e])}get position(){return this.request(`${this.prefix}get_position`,[this])}get row(){return this.request(`${this.prefix}get_position`,[this]).then((e=>e[0]))}get col(){return this.request(`${this.prefix}get_position`,[this]).then((e=>e[1]))}get valid(){return this.request(`${this.prefix}is_valid`,[this])}get number(){return this.request(`${this.prefix}get_number`,[this])}close(e=!1){return this.request(`${this.prefix}close`,[this,e])}config(e={}){return this.request(`${this.prefix}set_config`,[this,e])}}t.Window=u},6884:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={},e.exports=t.default},6928:e=>{"use strict";e.exports=require("path")},6969:(e,t,n)=>{"use strict";var r=n(223).F.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,n,i){var o=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,i,n);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new r(i?n:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},7030:e=>{"use strict";e.exports=require("node:net")},7083:(e,t,n)=>{"use strict";const r=n(2751);e.exports=class{constructor(e={}){this.loggers=new Map,this.options=e}add(e,t){if(!this.loggers.has(e)){const n=(t=Object.assign({},t||this.options)).transports||this.options.transports;t.transports=n?Array.isArray(n)?n.slice():[n]:[];const i=r(t);i.on("close",(()=>this._delete(e))),this.loggers.set(e,i)}return this.loggers.get(e)}get(e,t){return this.add(e,t)}has(e){return!!this.loggers.has(e)}close(e){if(e)return this._removeLogger(e);this.loggers.forEach(((e,t)=>this._removeLogger(t)))}_removeLogger(e){this.loggers.has(e)&&(this.loggers.get(e).close(),this._delete(e))}_delete(e){this.loggers.delete(e)}}},7133:(e,t,n)=>{"use strict";const r=n(9023).inspect,i=n(5532),{LEVEL:o,MESSAGE:s,SPLAT:a}=n(4763);e.exports=i(((e,t={})=>{const n=Object.assign({},e);return delete n[o],delete n[s],delete n[a],e[s]=r(n,!1,t.depth||null,t.colorize),e}))},7135:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nvimFunction=function(e,t={}){return function(n,i){const o=t&&!!t.sync,s="string"==typeof i,a=s?n[i]:n,u={};return t&&t.range&&(u.range=t.range),t&&t.eval&&(u.eval=t.eval),Object.defineProperty(a,r.NVIM_METHOD_NAME,{value:`function:${e}`}),Object.defineProperty(a,r.NVIM_SYNC,{value:!!o}),Object.defineProperty(a,r.NVIM_SPEC,{value:{type:"function",name:e,sync:!!o,opts:u}}),s&&(n[i]=a),n}};const r=n(3118)},7177:(e,t,n)=>{"use strict";var r;function i(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(6856),s=Symbol("lastResolve"),a=Symbol("lastReject"),u=Symbol("error"),c=Symbol("ended"),l=Symbol("lastPromise"),h=Symbol("handlePromise"),d=Symbol("stream");function f(e,t){return{value:e,done:t}}function p(e){var t=e[s];if(null!==t){var n=e[d].read();null!==n&&(e[l]=null,e[s]=null,e[a]=null,t(f(n,!1)))}}function g(e){process.nextTick(p,e)}var v=Object.getPrototypeOf((function(){})),m=Object.setPrototypeOf((i(r={get stream(){return this[d]},next:function(){var e=this,t=this[u];if(null!==t)return Promise.reject(t);if(this[c])return Promise.resolve(f(void 0,!0));if(this[d].destroyed)return new Promise((function(t,n){process.nextTick((function(){e[u]?n(e[u]):t(f(void 0,!0))}))}));var n,r=this[l];if(r)n=new Promise(function(e,t){return function(n,r){e.then((function(){t[c]?n(f(void 0,!0)):t[h](n,r)}),r)}}(r,this));else{var i=this[d].read();if(null!==i)return Promise.resolve(f(i,!1));n=new Promise(this[h])}return this[l]=n,n}},Symbol.asyncIterator,(function(){return this})),i(r,"return",(function(){var e=this;return new Promise((function(t,n){e[d].destroy(null,(function(e){e?n(e):t(f(void 0,!0))}))}))})),r),v);e.exports=function(e){var t,n=Object.create(m,(i(t={},d,{value:e,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,u,{value:null,writable:!0}),i(t,c,{value:e._readableState.endEmitted,writable:!0}),i(t,h,{value:function(e,t){var r=n[d].read();r?(n[l]=null,n[s]=null,n[a]=null,e(f(r,!1))):(n[s]=e,n[a]=t)},writable:!0}),t));return n[l]=null,o(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[a];return null!==t&&(n[l]=null,n[s]=null,n[a]=null,t(e)),void(n[u]=e)}var r=n[s];null!==r&&(n[l]=null,n[s]=null,n[a]=null,r(f(void 0,!0))),n[c]=!0})),e.on("readable",g.bind(null,n)),n}},7260:(e,t)=>{"use strict";t.P=void 0;var n=function(){function e(){this.current=0,this.queued=[]}return e.prototype.queue=function(e){0===this.current?e():this.queued.push(e)},e.prototype.resolveQueue=function(){for(var e;this.queued.length>0;)null===(e=this.queued.shift())||void 0===e||e()},e.prototype.add=function(e){if(void 0===e&&(e=1),this.current+=e,this.current<0)throw new Error("Negative WaitGroup counter");0===this.current&&this.resolveQueue()},e.prototype.done=function(){this.add(-1)},e.prototype.wait=function(){var e=this;return new Promise((function(t){e.queue((function(){return t()}))}))},e}();t.P=n},7347:(e,t,n)=>{"use strict";var r=n(2294);e.exports=function(e){var t,n=0;function i(){return n||(n=1,t=e.apply(this,arguments),e=null),t}return i.displayName=r(e),i}},7360:(e,t,n)=>{"use strict";const r=n(5532),{LEVEL:i,MESSAGE:o}=n(4763);e.exports=r(((e,{stack:t,cause:n})=>{if(e instanceof Error){const r=Object.assign({},e,{level:e.level,[i]:e[i]||e.level,message:e.message,[o]:e[o]||e.message});return t&&(r.stack=e.stack),n&&(r.cause=e.cause),r}if(!(e.message instanceof Error))return e;const r=e.message;return Object.assign(e,r),e.message=r.message,e[o]=r.message,t&&(e.stack=r.stack),n&&(e.cause=r.cause),e}))},7379:e=>{e.exports=function(e,t){var n="";e=(e=e||"Run the trap, drop the bass").split("");var r={a:["@","Ą","Ⱥ","Ʌ","Δ","Λ","Д"],b:["ß","Ɓ","Ƀ","ɮ","β","฿"],c:["©","Ȼ","Ͼ"],d:["Ð","Ɗ","Ԁ","ԁ","Ԃ","ԃ"],e:["Ë","ĕ","Ǝ","ɘ","Σ","ξ","Ҽ","੬"],f:["Ӻ"],g:["ɢ"],h:["Ħ","ƕ","Ң","Һ","Ӈ","Ԋ"],i:["༏"],j:["Ĵ"],k:["ĸ","Ҡ","Ӄ","Ԟ"],l:["Ĺ"],m:["ʍ","Ӎ","ӎ","Ԡ","ԡ","൩"],n:["Ñ","ŋ","Ɲ","Ͷ","Π","Ҋ"],o:["Ø","õ","ø","Ǿ","ʘ","Ѻ","ם","","๏"],p:["Ƿ","Ҏ"],q:["্"],r:["®","Ʀ","Ȑ","Ɍ","ʀ","Я"],s:["§","Ϟ","ϟ","Ϩ"],t:["Ł","Ŧ","ͳ"],u:["Ʊ","Ս"],v:["ט"],w:["Ш","Ѡ","Ѽ","൰"],x:["Ҳ","Ӿ","Ӽ","ӽ"],y:["¥","Ұ","Ӌ"],z:["Ƶ","ɀ"]};return e.forEach((function(e){e=e.toLowerCase();var t=r[e]||[" "],i=Math.floor(Math.random()*t.length);n+=void 0!==r[e]?r[e][i]:e})),n}},7419:(e,t,n)=>{"use strict";var r=n(857),i=n(3199),o=process.env,s=void 0;function a(e){var 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;var t=s?1:0;if("win32"===process.platform){var n=r.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in o)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((function(e){return 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("TERM_PROGRAM"in o){var a=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(o.TERM)?2:/^screen|^xterm|^vt100|^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)}},7522:(e,t,n)=>{"use strict";const r=n(857),{LEVEL:i,MESSAGE:o}=n(4763),s=n(3623);e.exports=class extends s{_consoleLog=console.log.bind(console);_consoleWarn=console.warn.bind(console);_consoleError=console.error.bind(console);constructor(e={}){super(e),this.name=e.name||"console",this.stderrLevels=this._stringArrayToSet(e.stderrLevels),this.consoleWarnLevels=this._stringArrayToSet(e.consoleWarnLevels),this.eol="string"==typeof e.eol?e.eol:r.EOL,this.forceConsole=e.forceConsole||!1,this.setMaxListeners(30)}log(e,t){return setImmediate((()=>this.emit("logged",e))),this.stderrLevels[e[i]]?(console._stderr&&!this.forceConsole?console._stderr.write(`${e[o]}${this.eol}`):this._consoleError(e[o]),void(t&&t())):this.consoleWarnLevels[e[i]]?(console._stderr&&!this.forceConsole?console._stderr.write(`${e[o]}${this.eol}`):this._consoleWarn(e[o]),void(t&&t())):(console._stdout&&!this.forceConsole?console._stdout.write(`${e[o]}${this.eol}`):this._consoleLog(e[o]),void(t&&t()))}_stringArrayToSet(e,t){if(!e)return{};if(t=t||"Cannot make set from type other than Array of string elements",!Array.isArray(e))throw new Error(t);return e.reduce(((e,n)=>{if("string"!=typeof n)throw new Error(t);return e[n]=!0,e}),{})}}},7627:(e,t,n)=>{var r=n(4466);e.exports=r},7699: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=7699,e.exports=t},7767:(e,t)=>{"use strict";t.levels={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6},t.colors={error:"red",warn:"yellow",info:"green",http:"green",verbose:"cyan",debug:"blue",silly:"magenta"}},7814:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(i.default,e,t)};var r=o(n(4470)),i=o(n(5874));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},7905:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=t.ExtType=void 0;const r=n(1716),i=n(6866),o=n(6104);var s;!function(e){e[e.Buffer=0]="Buffer",e[e.Window=1]="Window",e[e.Tabpage=2]="Tabpage"}(s||(t.ExtType=s={})),t.Metadata=[{constructor:r.Buffer,name:"Buffer",prefix:"nvim_buf_"},{constructor:i.Window,name:"Window",prefix:"nvim_win_"},{constructor:o.Tabpage,name:"Tabpage",prefix:"nvim_tabpage_"}]},7918:(e,t,n)=>{e.exports=n(3575)},7959:(e,t,n)=>{"use strict";const r=n(9896),{StringDecoder:i}=n(3193),{Stream:o}=n(2092);function s(){}e.exports=(e,t)=>{const n=Buffer.alloc(65536),a=new i("utf8"),u=new o;let c="",l=0,h=0;return-1===e.start&&delete e.start,u.readable=!0,u.destroy=()=>{u.destroyed=!0,u.emit("end"),u.emit("close")},r.open(e.file,"a+","0644",((i,o)=>{if(i)return t?t(i):u.emit("error",i),void u.destroy();!function i(){if(!u.destroyed)return r.read(o,n,0,n.length,l,((r,o)=>{if(r)return t?t(r):u.emit("error",r),void u.destroy();if(!o)return c&&((null==e.start||h>e.start)&&(t?t(null,c):u.emit("line",c)),h++,c=""),setTimeout(i,1e3);let s=a.write(n.slice(0,o));t||u.emit("data",s),s=(c+s).split(/\n+/);const d=s.length-1;let f=0;for(;f<d;f++)(null==e.start||h>e.start)&&(t?t(null,s[f]):u.emit("line",s[f])),h++;return c=s[d],l+=o,i()}));r.close(o,s)}()})),t?u.destroy:u}},7967:(e,t,n)=>{"use strict";t.Kg=t.K0=void 0;var r=n(4640);Object.defineProperty(t,"K0",{enumerable:!0,get:function(){return r.attach}});n(3252),n(4580),n(6329),n(6372);var i=n(203);Object.defineProperty(t,"Kg",{enumerable:!0,get:function(){return i.findNvim}})},7975:e=>{"use strict";e.exports=require("node:util")},7983:(e,t,n)=>{e.exports=n(9023).deprecate},8010:(e,t,n)=>{"use strict";const{Stream:r,Transform:i}=n(2092),o=n(8521),{LEVEL:s,SPLAT:a}=n(4763),u=n(1232),c=n(504),l=n(2134),h=n(1136),d=n(3583),{warn:f}=n(2159),p=n(4575),g=/%[scdjifoO%]/g;class v extends i{constructor(e){super({objectMode:!0}),this.configure(e)}child(e){const t=this;return Object.create(t,{write:{value:function(n){const r=Object.assign({},e,n);n instanceof Error&&(r.stack=n.stack,r.message=n.message),t.write(r)}}})}configure({silent:e,format:t,defaultMeta:r,levels:i,level:o="info",exitOnError:s=!0,transports:a,colors:u,emitErrs:h,formatters:d,padLevels:f,rewriters:g,stripColors:v,exceptionHandlers:m,rejectionHandlers:y}={}){if(this.transports.length&&this.clear(),this.silent=e,this.format=t||this.format||n(1049)(),this.defaultMeta=r||null,this.levels=i||this.levels||p.npm.levels,this.level=o,this.exceptions&&this.exceptions.unhandle(),this.rejections&&this.rejections.unhandle(),this.exceptions=new c(this),this.rejections=new l(this),this.profilers={},this.exitOnError=s,a&&(a=Array.isArray(a)?a:[a]).forEach((e=>this.add(e))),u||h||d||f||g||v)throw new Error(["{ colors, emitErrs, formatters, padLevels, rewriters, stripColors } were removed in winston@3.0.0.","Use a custom winston.format(function) instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join("\n"));m&&this.exceptions.handle(m),y&&this.rejections.handle(y)}isLevelEnabled(e){const t=m(this.levels,e);if(null===t)return!1;const n=m(this.levels,this.level);return null!==n&&(this.transports&&0!==this.transports.length?-1!==this.transports.findIndex((e=>{let r=m(this.levels,e.level);return null===r&&(r=n),r>=t})):n>=t)}log(e,t,...n){if(1===arguments.length)return e[s]=e.level,this._addDefaultMeta(e),this.write(e),this;if(2===arguments.length)return t&&"object"==typeof t?(t[s]=t.level=e,this._addDefaultMeta(t),this.write(t),this):(t={[s]:e,level:e,message:t},this._addDefaultMeta(t),this.write(t),this);const[r]=n;if("object"==typeof r&&null!==r&&!(t&&t.match&&t.match(g))){const i=Object.assign({},this.defaultMeta,r,{[s]:e,[a]:n,level:e,message:t});return r.message&&(i.message=`${i.message} ${r.message}`),r.stack&&(i.stack=r.stack),this.write(i),this}return this.write(Object.assign({},this.defaultMeta,{[s]:e,[a]:n,level:e,message:t})),this}_transform(e,t,n){if(this.silent)return n();e[s]||(e[s]=e.level),this.levels[e[s]]||0===this.levels[e[s]]||console.error("[winston] Unknown logger level: %s",e[s]),this._readableState.pipes||console.error("[winston] Attempt to write logs with no transports, which can increase memory usage: %j",e);try{this.push(this.format.transform(e,this.format.options))}finally{this._writableState.sync=!1,n()}}_final(e){const t=this.transports.slice();o(t,((e,t)=>{if(!e||e.finished)return setImmediate(t);e.once("finish",t),e.end()}),e)}add(e){const t=!u(e)||e.log.length>2?new h({transport:e}):e;if(!t._writableState||!t._writableState.objectMode)throw new Error("Transports must WritableStreams in objectMode. Set { objectMode: true }.");return this._onEvent("error",t),this._onEvent("warn",t),this.pipe(t),e.handleExceptions&&this.exceptions.handle(),e.handleRejections&&this.rejections.handle(),this}remove(e){if(!e)return this;let t=e;return(!u(e)||e.log.length>2)&&(t=this.transports.filter((t=>t.transport===e))[0]),t&&this.unpipe(t),this}clear(){return this.unpipe(),this}close(){return this.exceptions.unhandle(),this.rejections.unhandle(),this.clear(),this.emit("close"),this}setLevels(){f.deprecated("setLevels")}query(e,t){"function"==typeof e&&(t=e,e={}),e=e||{};const n={},r=Object.assign({},e.query||{});o(this.transports.filter((e=>!!e.query)),(function(t,i){!function(t,n){e.query&&"function"==typeof t.formatQuery&&(e.query=t.formatQuery(r)),t.query(e,((r,i)=>{if(r)return n(r);"function"==typeof t.formatResults&&(i=t.formatResults(i,e.format)),n(null,i)}))}(t,((e,r)=>{i&&((r=e||r)&&(n[t.name]=r),i()),i=null}))}),(()=>t(null,n)))}stream(e={}){const t=new r,n=[];return t._streams=n,t.destroy=()=>{let e=n.length;for(;e--;)n[e].destroy()},this.transports.filter((e=>!!e.stream)).forEach((r=>{const i=r.stream(e);i&&(n.push(i),i.on("log",(e=>{e.transport=e.transport||[],e.transport.push(r.name),t.emit("log",e)})),i.on("error",(e=>{e.transport=e.transport||[],e.transport.push(r.name),t.emit("error",e)})))})),t}startTimer(){return new d(this)}profile(e,...t){const n=Date.now();if(this.profilers[e]){const r=this.profilers[e];delete this.profilers[e],"function"==typeof t[t.length-2]&&(console.warn("Callback function no longer supported as of winston@3.0.0"),t.pop());const i="object"==typeof t[t.length-1]?t.pop():{};return i.level=i.level||"info",i.durationMs=n-r,i.message=i.message||e,this.write(i)}return this.profilers[e]=n,this}handleExceptions(...e){console.warn("Deprecated: .handleExceptions() will be removed in winston@4. Use .exceptions.handle()"),this.exceptions.handle(...e)}unhandleExceptions(...e){console.warn("Deprecated: .unhandleExceptions() will be removed in winston@4. Use .exceptions.unhandle()"),this.exceptions.unhandle(...e)}cli(){throw new Error(["Logger.cli() was removed in winston@3.0.0","Use a custom winston.formats.cli() instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join("\n"))}_onEvent(e,t){t["__winston"+e]||(t["__winston"+e]=function(n){"error"!==e||this.transports.includes(t)||this.add(t),this.emit(e,n,t)}.bind(this),t.on(e,t["__winston"+e]))}_addDefaultMeta(e){this.defaultMeta&&Object.assign(e,this.defaultMeta)}}function m(e,t){const n=e[t];return n||0===n?n:null}Object.defineProperty(v.prototype,"transports",{configurable:!1,enumerable:!0,get(){const{pipes:e}=this._readableState;return Array.isArray(e)?e:[e].filter(Boolean)}}),e.exports=v},8056:(e,t,n)=>{"use strict";const r=n(9023),i=n(4418),{LEVEL:o}=n(4763),s=e.exports=function(e={}){i.call(this,{objectMode:!0,highWaterMark:e.highWaterMark}),this.format=e.format,this.level=e.level,this.handleExceptions=e.handleExceptions,this.handleRejections=e.handleRejections,this.silent=e.silent,e.log&&(this.log=e.log),e.logv&&(this.logv=e.logv),e.close&&(this.close=e.close),this.once("pipe",(e=>{this.levels=e.levels,this.parent=e})),this.once("unpipe",(e=>{e===this.parent&&(this.parent=null,this.close&&this.close())}))};r.inherits(s,i),s.prototype._write=function(e,t,n){if(this.silent||!0===e.exception&&!this.handleExceptions)return n(null);const r=this.level||this.parent&&this.parent.level;if(!r||this.levels[r]>=this.levels[e[o]]){if(e&&!this.format)return this.log(e,n);let t,r;try{r=this.format.transform(Object.assign({},e),this.format.options)}catch(e){t=e}if(t||!r){if(n(),t)throw t;return}return this.log(r,n)}return this._writableState.sync=!1,n(null)},s.prototype._writev=function(e,t){if(this.logv){const n=e.filter(this._accept,this);return n.length?this.logv(n,t):t(null)}for(let n=0;n<e.length;n++){if(!this._accept(e[n]))continue;if(e[n].chunk&&!this.format){this.log(e[n].chunk,e[n].callback);continue}let r,i;try{i=this.format.transform(Object.assign({},e[n].chunk),this.format.options)}catch(e){r=e}if(r||!i){if(e[n].callback(),r)throw t(null),r}else this.log(i,e[n].callback)}return t(null)},s.prototype._accept=function(e){const t=e.chunk;if(this.silent)return!1;const n=this.level||this.parent&&this.parent.level;return!(!0!==t.exception&&n&&!(this.levels[n]>=this.levels[t[o]])||!this.handleExceptions&&!0===t.exception)},s.prototype._nop=function(){}},8266:(e,t,n)=>{"use strict";const r=n(5532);e.exports=r(((e,t={})=>{let n="metadata";t.key&&(n=t.key);let r=[];return t.fillExcept||t.fillWith||(r.push("level"),r.push("message")),t.fillExcept&&(r=t.fillExcept),r.length>0?function(e,t,n){const r=t.reduce(((t,n)=>(t[n]=e[n],delete e[n],t)),{}),i=Object.keys(e).reduce(((t,n)=>(t[n]=e[n],delete e[n],t)),{});return Object.assign(e,r,{[n]:i}),e}(e,r,n):t.fillWith?function(e,t,n){return e[n]=t.reduce(((t,n)=>(t[n]=e[n],delete e[n],t)),{}),e}(e,t.fillWith,n):e}))},8272:(e,t,n)=>{"use strict";const{Colorizer:r}=n(9680);e.exports=e=>(r.addColors(e.colors||e),e)},8303:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,r.default)(e))return function(e){var t=-1,n=e.length;return function(){return++t<n?{value:e[t],key:t}:null}}(e);var t,n,o,s,a=(0,i.default)(e);return a?function(e){var t=-1;return function(){var n=e.next();return n.done?null:(t++,{value:n.value,key:t})}}(a):(n=(t=e)?Object.keys(t):[],o=-1,s=n.length,function e(){var r=n[++o];return"__proto__"===r?e():o<s?{value:t[r],key:r}:null})};var r=o(n(9875)),i=o(n(963));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},8409:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(t||(t=e.length),!t)throw new Error("arity is undefined");return function(...n){return"function"==typeof n[t-1]?e.apply(this,n):new Promise(((r,i)=>{n[t-1]=(e,...t)=>{if(e)return i(e);r(t.length>1?t:t[0])},e.apply(this,n)}))}},e.exports=t.default},8474:e=>{"use strict";e.exports=require("node:events")},8494:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r){let o=!1,s=!1,a=!1,u=0,c=0;function l(){u>=t||a||o||(a=!0,e.next().then((({value:e,done:t})=>{if(!s&&!o){if(a=!1,t)return o=!0,void(u<=0&&r(null));u++,n(e,c,h),c++,l()}})).catch(d))}function h(e,t){if(u-=1,!s)return e?d(e):!1===e?(o=!0,void(s=!0)):t===i.default||o&&u<=0?(o=!0,r(null)):void l()}function d(e){s||(a=!1,o=!0,r(e))}l()};var r,i=(r=n(6884))&&r.__esModule?r:{default:r};e.exports=t.default},8521:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(3427)),i=a(n(5337)),o=a(n(4877)),s=a(n(8409));function a(e){return e&&e.__esModule?e:{default:e}}t.default=(0,s.default)((function(e,t,n){return(0,r.default)(e,(0,i.default)((0,o.default)(t)),n)}),3),e.exports=t.default},8525:(e,t,n)=>{"use strict";const r=n(5532);e.exports=r(((e,t)=>t.message?(e.message=`[${t.label}] ${e.message}`,e):(e.label=t.label,e)))},8611:e=>{"use strict";e.exports=require("http")},8668:(e,t,n)=>{"use strict";const{MESSAGE:r}=n(4763);class i{constructor(e){this.template=e}transform(e){return e[r]=this.template(e),e}}e.exports=e=>new i(e),e.exports.Printf=e.exports.Format=i},8692:e=>{var t={};e.exports=t;var n={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],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],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(n).forEach((function(e){var r=n[e],i=t[e]=[];i.open="["+r[0]+"m",i.close="["+r[1]+"m"}))},8729: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.getLogger=function(){return h||(h=function(){const e=s.createLogger({level:u});return process.env.NVIM_NODE_LOG_FILE&&e.add(new s.transports.File({filename:process.env.NVIM_NODE_LOG_FILE,level:u,format:l(!1)})),e.add(new s.transports.Console({format:l(!0)})),process.env.NVIM_NODE_LOG_FILE,Object.keys(console).forEach((t=>{const n="log"===t?"info":t;"assert"===t?console.assert=function(t,...n){t||e.error("assertion failed",...n)}:c.includes(n)&&(console[t]=function(...t){e[n].apply(e,t)})})),e}()),h};const s=o(n(555)),a=n(7975),u="error",c=["info","warn","error","debug","level"];function l(e){return s.format.combine(s.format.splat(),s.format.timestamp({format:"YYYY-MM-DD HH:mm:ss"}),s.format.printf((t=>{let n;try{n="object"==typeof t.message?(0,a.inspect)(t.message,!1,2,e):t.message}catch(e){n=t.message}const r="debug"===t.level?"DBG":t.level.slice(0,3).toUpperCase();return`${t.timestamp} ${r} ${n}`})))}let h},8745:(e,t,n)=>{"use strict";const{Colorizer:r}=n(9680),{Padder:i}=n(2584),{configs:o,MESSAGE:s}=n(4763);class a{constructor(e={}){e.levels||(e.levels=o.cli.levels),this.colorizer=new r(e),this.padder=new i(e),this.options=e}transform(e,t){return this.colorizer.transform(this.padder.transform(e,t),t),e[s]=`${e.level}:${e.message}`,e}}e.exports=e=>new a(e),e.exports.Format=a},9023:e=>{"use strict";e.exports=require("util")},9099:(e,t,n)=>{"use strict";const r=n(9023),{SPLAT:i}=n(4763),o=/%[scdjifoO%]/g,s=/%%/g;class a{constructor(e){this.options=e}_splat(e,t){const n=e.message,o=e[i]||e.splat||[],a=n.match(s),u=a&&a.length||0,c=t.length-u-o.length,l=c<0?o.splice(c,-1*c):[],h=l.length;if(h)for(let t=0;t<h;t++)Object.assign(e,l[t]);return e.message=r.format(n,...o),e}transform(e){const t=e.message,n=e[i]||e.splat;if(!n||!n.length)return e;const r=t&&t.match&&t.match(o);if(!r&&(n||n.length)){const t=n.length>1?n.splice(0):n,r=t.length;if(r)for(let n=0;n<r;n++)Object.assign(e,t[n]);return e}return r?this._splat(e,r):e}}e.exports=e=>new a(e)},9161:e=>{var t=[],n=[],r=function(){};function i(e){return!~t.indexOf(e)&&(t.push(e),!0)}function o(e){r=e}function s(e){for(var n=[],r=0;r<t.length;r++)if(t[r].async)n.push(t[r]);else if(t[r](e))return!0;return!!n.length&&new Promise((function(t){Promise.all(n.map((function(t){return t(e)}))).then((function(e){t(e.some(Boolean))}))}))}function a(e){return!~n.indexOf(e)&&(n.push(e),!0)}function u(){r.apply(r,arguments)}function c(e){for(var t=0;t<n.length;t++)e=n[t].apply(n[t],arguments);return e}function l(e,t){var n=Object.prototype.hasOwnProperty;for(var r in t)n.call(t,r)&&(e[r]=t[r]);return e}function h(e){return e.enabled=!1,e.modify=a,e.set=o,e.use=i,l((function(){return!1}),e)}function d(e){return e.enabled=!0,e.modify=a,e.set=o,e.use=i,l((function(){var t=Array.prototype.slice.call(arguments,0);return u.call(u,e,c(t,e)),!0}),e)}e.exports=function(e){return e.introduce=l,e.enabled=s,e.process=c,e.modify=a,e.write=u,e.nope=h,e.yep=d,e.set=o,e.use=i,e}},9362:(e,t,n)=>{"use strict";var r;e.exports=S,S.ReadableState=E,n(4434).EventEmitter;var i,o=function(e,t){return e.listeners(t).length},s=n(5426),a=n(181).Buffer,u=("undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},c=n(9023);i=c&&c.debuglog?c.debuglog("stream"):function(){};var l,h,d,f=n(1911),p=n(5314),g=n(2365).getHighWaterMark,v=n(3291).F,m=v.ERR_INVALID_ARG_TYPE,y=v.ERR_STREAM_PUSH_AFTER_EOF,b=v.ERR_METHOD_NOT_IMPLEMENTED,w=v.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(2017)(S,s);var _=p.errorOrDestroy,x=["error","close","destroy","pause","resume"];function E(e,t,i){r=r||n(2812),e=e||{},"boolean"!=typeof i&&(i=t instanceof r),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=g(this,e,"readableHighWaterMark",i),this.buffer=new f,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(l||(l=n(3141).I),this.decoder=new l(e.encoding),this.encoding=e.encoding)}function S(e){if(r=r||n(2812),!(this instanceof S))return new S(e);var t=this instanceof r;this._readableState=new E(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),s.call(this)}function C(e,t,n,r,o){i("readableAddChunk",t);var s,c=e._readableState;if(null===t)c.reading=!1,function(e,t){if(i("onEofChunk"),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?O(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,L(e)))}}(e,c);else if(o||(s=function(e,t){var n,r;return r=t,a.isBuffer(r)||r instanceof u||"string"==typeof t||void 0===t||e.objectMode||(n=new m("chunk",["string","Buffer","Uint8Array"],t)),n}(c,t)),s)_(e,s);else if(c.objectMode||t&&t.length>0)if("string"==typeof t||c.objectMode||Object.getPrototypeOf(t)===a.prototype||(t=function(e){return a.from(e)}(t)),r)c.endEmitted?_(e,new w):M(e,c,t,!0);else if(c.ended)_(e,new y);else{if(c.destroyed)return!1;c.reading=!1,c.decoder&&!n?(t=c.decoder.write(t),c.objectMode||0!==t.length?M(e,c,t,!1):P(e,c)):M(e,c,t,!1)}else r||(c.reading=!1,P(e,c));return!c.ended&&(c.length<c.highWaterMark||0===c.length)}function M(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&O(e)),P(e,t)}Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),S.prototype.destroy=p.destroy,S.prototype._undestroy=p.undestroy,S.prototype._destroy=function(e,t){t(e)},S.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=a.from(e,t),t=""),n=!0),C(this,e,t,!1,n)},S.prototype.unshift=function(e){return C(this,e,null,!0,!1)},S.prototype.isPaused=function(){return!1===this._readableState.flowing},S.prototype.setEncoding=function(e){l||(l=n(3141).I);var t=new l(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";null!==r;)i+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var T=1073741824;function k(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=T?e=T:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function O(e){var t=e._readableState;i("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(i("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(L,e))}function L(e){var t=e._readableState;i("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,D(e)}function P(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(I,e,t))}function I(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var n=t.length;if(i("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function R(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function A(e){i("readable nexttick read 0"),e.read(0)}function $(e,t){i("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),D(e),t.flowing&&!t.reading&&e.read(0)}function D(e){var t=e._readableState;for(i("flow",t.flowing);t.flowing&&null!==e.read(););}function j(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function N(e){var t=e._readableState;i("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(B,t,e))}function B(e,t){if(i("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function q(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}S.prototype.read=function(e){i("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return i("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?N(this):O(this),null;if(0===(e=k(e,t))&&t.ended)return 0===t.length&&N(this),null;var r,o=t.needReadable;return i("need readable",o),(0===t.length||t.length-e<t.highWaterMark)&&i("length less than watermark",o=!0),t.ended||t.reading?i("reading or ended",o=!1):o&&(i("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=k(n,t))),null===(r=e>0?j(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&N(this)),null!==r&&this.emit("data",r),r},S.prototype._read=function(e){_(this,new b("_read()"))},S.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,i("pipe count=%d opts=%j",r.pipesCount,t);var s=t&&!1===t.end||e===process.stdout||e===process.stderr?p:a;function a(){i("onend"),e.end()}r.endEmitted?process.nextTick(s):n.once("end",s),e.on("unpipe",(function t(o,s){i("onunpipe"),o===n&&s&&!1===s.hasUnpiped&&(s.hasUnpiped=!0,i("cleanup"),e.removeListener("close",d),e.removeListener("finish",f),e.removeListener("drain",u),e.removeListener("error",h),e.removeListener("unpipe",t),n.removeListener("end",a),n.removeListener("end",p),n.removeListener("data",l),c=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}));var u=function(e){return function(){var t=e._readableState;i("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,D(e))}}(n);e.on("drain",u);var c=!1;function l(t){i("ondata");var o=e.write(t);i("dest.write",o),!1===o&&((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==q(r.pipes,e))&&!c&&(i("false write response, pause",r.awaitDrain),r.awaitDrain++),n.pause())}function h(t){i("onerror",t),p(),e.removeListener("error",h),0===o(e,"error")&&_(e,t)}function d(){e.removeListener("finish",f),p()}function f(){i("onfinish"),e.removeListener("close",d),p()}function p(){i("unpipe"),n.unpipe(e)}return n.on("data",l),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",h),e.once("close",d),e.once("finish",f),e.emit("pipe",n),r.flowing||(i("pipe resume"),n.resume()),e},S.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=q(t.pipes,e);return-1===s||(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},S.prototype.on=function(e,t){var n=s.prototype.on.call(this,e,t),r=this._readableState;return"data"===e?(r.readableListening=this.listenerCount("readable")>0,!1!==r.flowing&&this.resume()):"readable"===e&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,i("on readable",r.length,r.reading),r.length?O(this):r.reading||process.nextTick(A,this))),n},S.prototype.addListener=S.prototype.on,S.prototype.removeListener=function(e,t){var n=s.prototype.removeListener.call(this,e,t);return"readable"===e&&process.nextTick(R,this),n},S.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||process.nextTick(R,this),t},S.prototype.resume=function(){var e=this._readableState;return e.flowing||(i("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick($,e,t))}(this,e)),e.paused=!1,this},S.prototype.pause=function(){return i("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(i("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},S.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var o in e.on("end",(function(){if(i("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(o){i("wrapped data"),n.decoder&&(o=n.decoder.write(o)),n.objectMode&&null==o||(n.objectMode||o&&o.length)&&(t.push(o)||(r=!0,e.pause()))})),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var s=0;s<x.length;s++)e.on(x[s],this.emit.bind(this,x[s]));return this._read=function(t){i("wrapped _read",t),r&&(r=!1,e.resume())},this},"function"==typeof Symbol&&(S.prototype[Symbol.asyncIterator]=function(){return void 0===h&&(h=n(7177)),h(this)}),Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(S.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(S.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),S._fromList=j,Object.defineProperty(S.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(S.from=function(e,t){return void 0===d&&(d=n(5362)),d(S,e,t)})},9387:e=>{e.exports=function(e,t){e=e||" he is here ";var n={up:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],down:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],mid:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͜","͝","͞","͟","͠","͢","̸","̷","͡"," ҉"]},r=[].concat(n.up,n.down,n.mid);function i(e){return Math.floor(Math.random()*e)}function o(e){var t=!1;return r.filter((function(n){t=n===e})),t}return function(e,t){var r,s,a="";for(s in(t=t||{}).up=void 0===t.up||t.up,t.mid=void 0===t.mid||t.mid,t.down=void 0===t.down||t.down,t.size=void 0!==t.size?t.size:"maxi",e=e.split(""))if(!o(s)){switch(a+=e[s],r={up:0,down:0,mid:0},t.size){case"mini":r.up=i(8),r.mid=i(2),r.down=i(8);break;case"maxi":r.up=i(16)+3,r.mid=i(4)+1,r.down=i(64)+3;break;default:r.up=i(8)+1,r.mid=i(6)/2,r.down=i(8)+1}var u=["up","mid","down"];for(var c in u)for(var l=u[c],h=0;h<=r[l];h++)t[l]&&(a+=n[l][i(n[l].length)])}return a}(e,t)}},9426:(e,t,n)=>{"use strict";const r=n(5532);e.exports=r((e=>(e.message=`\t${e.message}`,e)))},9680:(e,t,n)=>{"use strict";const r=n(7627),{LEVEL:i,MESSAGE:o}=n(4763);r.enabled=!0;const s=/\s+/;class a{constructor(e={}){e.colors&&this.addColors(e.colors),this.options=e}static addColors(e){const t=Object.keys(e).reduce(((t,n)=>(t[n]=s.test(e[n])?e[n].split(s):e[n],t)),{});return a.allColors=Object.assign({},a.allColors||{},t),a.allColors}addColors(e){return a.addColors(e)}colorize(e,t,n){if(void 0===n&&(n=t),!Array.isArray(a.allColors[e]))return r[a.allColors[e]](n);for(let t=0,i=a.allColors[e].length;t<i;t++)n=r[a.allColors[e][t]](n);return n}transform(e,t){return t.all&&"string"==typeof e[o]&&(e[o]=this.colorize(e[i],e.level,e[o])),(t.level||t.all||!t.message)&&(e.level=this.colorize(e[i],e.level)),(t.all||t.message)&&(e.message=this.colorize(e[i],e.level,e.message)),e}}e.exports=e=>new a(e),e.exports.Colorizer=e.exports.Format=a},9691:function(e,t,n){"use strict";var r,i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.BaseApi=void 0;const o=n(8474),s=n(2545),a=n(8729),u=Symbol("DO_REQUEST");class c extends o.EventEmitter{constructor({transport:e,data:t,logger:n,metadata:i,client:o}){super(),this._isReady=Promise.resolve(!1),this[r]=(e,t=[])=>new Promise(((n,r)=>{this.transport.request(e,t,((t,i)=>{if("debug"===this.logger.level){let t;try{t=i&&"object"==typeof i?(0,s.partialClone)(i,2,["logger","transport","client"],"[Object]"):i}catch(e){t=String(i)}this.logger.debug(`response -> ${e}: %O`,t)}t?r(new Error(`${e}: ${t[1]}`)):n(i)}))})),this.transport=e,this.data=t,this.logger=n||(0,a.getLogger)(),this.client=o,i&&Object.defineProperty(this,"metadata",{value:i})}equals(e){try{return String(this.data)===String(e.data)}catch(e){return!1}}asyncRequest(e){return i(this,arguments,void 0,(function*(e,t=[]){return yield this._isReady,this.logger.debug(`request -> ${e}`),this[u](e,t).catch((t=>{const n=new Error(t.message);throw this.logger.error('failed request to "%s": %s: %s',e,n.name,n.message),n}))}))}request(e,t=[]){return this.asyncRequest(e,t)}_getArgsByPrefix(...e){const t=[];return"nvim_"!==this.prefix&&t.push(this),t.concat(e)}getVar(e){return i(this,void 0,void 0,(function*(){const t=this._getArgsByPrefix(e);return this.request(`${this.prefix}get_var`,t).then((e=>e),(e=>{if(e&&e.message&&e.message.includes("not found"))return null;throw e}))}))}setVar(e,t){const n=this._getArgsByPrefix(e,t);return this.request(`${this.prefix}set_var`,n)}deleteVar(e){const t=this._getArgsByPrefix(e);return this.request(`${this.prefix}del_var`,t)}getOption(e){const t=this._getArgsByPrefix(e);return this.request(`${this.prefix}get_option`,t)}setOption(e,t){const n=this._getArgsByPrefix(e,t);return this.request(`${this.prefix}set_option`,n)}notify(e,t){this.logger.debug(`notify -> ${e}`),this.transport.notify(e,t)}}t.BaseApi=c,r=u},9742:e=>{e.exports=function(e){return function(t,n,r){return n%2==0?t:e.inverse(t)}}},9875:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e&&"number"==typeof e.length&&e.length>=0&&e.length%1==0},e.exports=t.default},9896:e=>{"use strict";e.exports=require("fs")}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.loaded=!0,n.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var __webpack_exports__={};(()=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{activate:()=>Pe,deactivate:()=>Ie});var e=__webpack_require__(1398),t=__webpack_require__.n(e),n=__webpack_require__(5103),r=__webpack_require__(2298),i=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};function o(e){return`neovim:${e}`}const s=new class{constructor(){this.disposables=[],this.actions=[]}init(){this.initActions(),this.initHooks()}dispose(){this.actions=[],(0,r.v3)(this.disposables)}add(t,n){if(this.actions.includes(t))throw new Error(`Action "${t}" already exist`);this.actions.push(t),this.disposables.push(e.commands.registerCommand(o(t),n))}run(t,...n){return i(this,void 0,void 0,(function*(){const r=this.actions.includes(t)?o(t):t;return e.commands.executeCommand(r,...n)}))}fireNvimEvent(e,...t){var n;null===(n=this.client)||void 0===n||n.executeLua('require"vscode.api".fire_event(...)',[e,...t])}lua(e,...t){return i(this,void 0,void 0,(function*(){var n;return null===(n=this.client)||void 0===n?void 0:n.lua(`return require"vscode.internal".${e}(...)`,t)}))}initActions(){this.add("_ping",(()=>"pong")),this.add("_wait",((e=1e3)=>(0,r.uk)(e).then((()=>"ok")))),this.add("eval",((e,t)=>(0,n.v)(e,t))),this.add("has_config",(t=>{const n=e.workspace.getConfiguration();return Array.isArray(t)?t.map((e=>n.has(e))):n.has(t)})),this.add("get_config",(t=>{const n=e.workspace.getConfiguration();return Array.isArray(t)?t.map((e=>n.get(e))):n.get(t)})),this.add("update_config",((t,n,r)=>i(this,void 0,void 0,(function*(){const i=e.workspace.getConfiguration(),o="global"===r?e.ConfigurationTarget.Global:"workspace"===r?e.ConfigurationTarget.Workspace:e.ConfigurationTarget.WorkspaceFolder;Array.isArray(t)||(t=[t],n=[n]);for(const[e,r]of t.entries())yield i.update(r,n[e],o)})))),this.add("start-multiple-cursors",(t=>{const n=e.window.activeTextEditor;n&&t.length&&(n.selections=(0,r.Jq)(t,n.document))})),this.add("setContext",((e,t)=>r.CJ.set(e,t)))}initHooks(){this.disposables.push(e.window.onDidChangeWindowState((e=>{var t;return null===(t=this.client)||void 0===t?void 0:t.command("doautocmd "+(e.focused?"FocusGained":"FocusLost"))})))}};var a=__webpack_require__(1019),u=__webpack_require__(2640);const c=new class{dispose(){this.emitter.dispose()}init(){this.emitter=new e.EventEmitter}fire(e,t){this.emitter.fire({name:e,data:t})}on(e,t,n,r){return this.emitter.event((r=>{(e===r.name||Array.isArray(e)&&e.includes(r.name))&&t.call(n,r.data)}),n,r)}};var l=__webpack_require__(1377),h=__webpack_require__(5317),d=__webpack_require__(6928),f=__webpack_require__.n(d),p=__webpack_require__(7967),g=__webpack_require__(555),v=__webpack_require__(2543),m=__webpack_require__(1716),y=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};const b=(0,l.h)("BufferManager"),w="vscode-neovim";function _(t){if(!t){const t=e.workspace.getConfiguration("editor");return{tabSize:t.get("tabSize"),insertSpaces:t.get("insertSpaces"),lineNumbers:t.get("lineNumbers")}}const{tabSize:n,insertSpaces:r,lineNumbers:i}=t;return{tabSize:n,insertSpaces:r,lineNumbers:{[e.TextEditorLineNumbersStyle.On]:"on",[e.TextEditorLineNumbersStyle.Off]:"off",[e.TextEditorLineNumbersStyle.Relative]:"relative",[e.TextEditorLineNumbersStyle.Interval]:"interval"}[i]}}function x(e){const{scheme:t}=e.uri;if(!["vscode-remote","file"].includes(t))return e.languageId.toLowerCase()}class E{get client(){return this.main.client}constructor(t){this.main=t,this.disposables=[],this.isSyncingLayout=!1,this.isLayoutOutdated=!1,this.externalTextDocuments=new Set,this.textDocumentToBufferId=new Map,this.textEditorToWinId=new Map,this.winIdToEditor=new Map,this.grids=new Map,this.editorOptionsChangedTimers=new WeakMap,this.editorOptionsMap=new WeakMap,this.handleWindowChanged=(t,n)=>y(this,void 0,void 0,(function*(){if(b.debug(`window changed, target window id: ${t}`),1e3===t)return void b.debug("window id is 1000, skipping");const i=()=>y(this,void 0,void 0,(function*(){const t=e.window.activeTextEditor;t&&(yield e.window.showTextDocument(t.document,t.viewColumn))}));let o=this.getEditorFromWinId(t);if(!o)return b.debug("target editor not found <check 1>, return to active editor"),i();if(e.window.activeTextEditor===o)return;if(yield(0,r.uk)(50),yield this.waitForLayoutSync(),n.isCancellationRequested)return void b.debug(`Cancelling window change operation for winId: ${t}`);if(void 0===e.window.activeTextEditor)return void b.debug("activeTextEditor is undefined, skipping");yield this.main.cursorManager.waitForCursorUpdate(e.window.activeTextEditor);const{id:s}=yield this.client.getWindow();if(o=this.getEditorFromWinId(s),!o)return b.debug("target editor not found <check 2>, return to active editor"),i();if(e.window.activeTextEditor===o)return;yield this.main.cursorManager.waitForCursorUpdate(o);const a=o.document.uri,{scheme:u}=a;switch(u){case"output":return void(yield e.commands.executeCommand("workbench.panel.output.focus"));case"vscode-notebook-cell":{const t=e.window.visibleNotebookEditors.find((e=>e.notebook.uri.fsPath===a.fsPath));if(t)return yield e.window.showTextDocument(o.document,t.viewColumn),yield(0,r.uk)(50),void(yield e.window.showTextDocument(o.document,o.viewColumn));break}default:return void(yield e.window.showTextDocument(o.document,o.viewColumn))}yield i()})),this.handleWindowChangedDebounced=(0,v.debounce)(this.handleWindowChanged,100,{leading:!1,trailing:!0}),this.onWindowChanged=t=>{var n;const[r]=t;null===(n=this.windowChangedTokenSource)||void 0===n||n.cancel(),this.windowChangedTokenSource=new e.CancellationTokenSource,this.handleWindowChangedDebounced(r,this.windowChangedTokenSource.token)},this.onEditorLayoutChanged=()=>y(this,void 0,void 0,(function*(){var t,n;this.syncLayoutPromise=null!==(t=this.syncLayoutPromise)&&void 0!==t?t:new r.ie,this.isLayoutOutdated=!0,null===(n=this.syncLayoutSource)||void 0===n||n.cancel(),this.syncLayoutSource=new e.CancellationTokenSource,this.isSyncingLayout||(yield this.syncEditorLayoutDebounced())})),this.syncEditorLayout=()=>y(this,void 0,void 0,(function*(){var t,n;this.isSyncingLayout=!0,this.syncLayoutProgress.start({title:"Syncing layout",location:e.ProgressLocation.Notification},3e3);try{for(;this.isLayoutOutdated;){this.isLayoutOutdated=!1;const n=null===(t=this.syncLayoutSource)||void 0===t?void 0:t.token,r=e.window.activeTextEditor;if(null==this.excludeEditorsWithoutViewColumn){const e=1===(yield this.client.call("has","nvim-0.10"));this.excludeEditorsWithoutViewColumn=e}const i=this.excludeEditorsWithoutViewColumn?[...e.window.visibleTextEditors].filter((e=>null!=e.viewColumn||e===r||["output","vscode-notebook-cell"].includes(e.document.uri.scheme))):[...e.window.visibleTextEditors];(null==n?void 0:n.isCancellationRequested)||(this.syncLayoutProgress.report("Cleaning up windows and buffers"),this.cleanupWindowsAndBuffers(i),(null==n?void 0:n.isCancellationRequested)||(this.syncLayoutProgress.report("Syncing visible editors"),yield this.syncVisibleEditors(i),(null==n?void 0:n.isCancellationRequested)||(this.syncLayoutProgress.report("Syncing active editor"),yield this.syncActiveEditor(r))))}}catch(e){b.error("Error syncing layout:",e)}finally{this.syncLayoutProgress.done(),this.isSyncingLayout=!1,null===(n=this.syncLayoutPromise)||void 0===n||n.resolve(),this.syncLayoutPromise=void 0}})),this.syncEditorLayoutDebounced=(0,v.debounce)(this.syncEditorLayout,100,{leading:!1,trailing:!0}),this.onDidChangeEditorOptions=e=>{let t=this.editorOptionsChangedTimers.get(e);clearTimeout(t);const n=Object.assign({},this.editorOptionsMap.get(e)),r=Object.assign({},e.options);this.editorOptionsMap.set(e,r),n&&n.tabSize===r.tabSize&&n.insertSpaces===r.insertSpaces&&n.lineNumbers===r.lineNumbers||(t=setTimeout((()=>{const t=this.textDocumentToBufferId.get(e.document);t&&s.fireNvimEvent("editor_options_changed",t,_(e.options))}),50),this.editorOptionsChangedTimers.set(e,t))},this.receivedBufferEvent=(t,n,r,i,o,s)=>{var a;null===(a=this.onBufferEvent)||void 0===a||a.call(this,t.id,n,r,i,o,s),(()=>y(this,void 0,void 0,(function*(){const n=this.buildExternalBufferUri(yield t.name,t.id);return b.log(n,e.LogLevel.Debug,`received buffer event for ${n}`),this.bufferProvider.documentDidChange.fire(n),n})))().then(void 0,(t=>{b.log(void 0,e.LogLevel.Error,`failed to notify document change: ${t}`)}))},this.bufferProvider=new S(this.client,this.receivedBufferEvent),this.syncLayoutProgress=new r.ke,this.disposables.push(this.syncLayoutProgress,e.window.onDidChangeVisibleTextEditors(this.onEditorLayoutChanged),e.window.onDidChangeActiveTextEditor(this.onEditorLayoutChanged),e.workspace.onDidCloseTextDocument(this.onEditorLayoutChanged),e.workspace.onDidCloseNotebookDocument(this.onEditorLayoutChanged),e.workspace.onDidSaveTextDocument((()=>this.syncDocumentDirtyState())),e.window.onDidChangeTextEditorOptions((e=>this.onDidChangeEditorOptions(e.textEditor))),e.workspace.registerTextDocumentContentProvider(w,this.bufferProvider),c.on("redraw",this.handleRedraw,this),c.on("open-file",this.handleOpenFile,this),c.on("external-buffer",this.handleExternalBuffer,this),c.on("window-changed",this.onWindowChanged,this),c.on("BufModifiedSet",(([e])=>this.handleBufferModifiedSet(e)))),s.add("set_editor_options",((t,n)=>{const[r]=[...this.textDocumentToBufferId.entries()].find((([e,n])=>n===t))||[];if(!r)return;const i=e.window.visibleTextEditors.find((e=>e.document===r));if(!i)return;const{tabSize:o,insertSpaces:s,lineNumbers:a}=n,u="off"===a?e.TextEditorLineNumbersStyle.Off:"on"===a?e.TextEditorLineNumbersStyle.On:e.TextEditorLineNumbersStyle.Relative;i.options={tabSize:o,insertSpaces:s,lineNumbers:u}})),s.add("save_buffer",(e=>this.handleSaveBuf(e)))}dispose(){var e;null===(e=this.syncLayoutSource)||void 0===e||e.dispose(),(0,r.v3)(this.disposables)}forceSyncLayout(){return y(this,void 0,void 0,(function*(){return b.debug("force syncing layout"),this.onEditorLayoutChanged()}))}waitForLayoutSync(){return y(this,void 0,void 0,(function*(){var e;return null===(e=this.syncLayoutPromise)||void 0===e?void 0:e.promise}))}getTextDocumentForBufferId(e){var t;const n=null===(t=[...this.textDocumentToBufferId].find((([,t])=>e===t)))||void 0===t?void 0:t[0];return n&&!n.isClosed?n:void 0}getBufferIdForTextDocument(e){return this.textDocumentToBufferId.get(e)}getGridIdForWinId(e){const t=[...this.grids].reverse().find((([,t])=>t.winId===e));return t?t[0]:void 0}getWinIdForGridId(e){var t;return null===(t=this.grids.get(e))||void 0===t?void 0:t.winId}getWinIdForTextEditor(e){return this.textEditorToWinId.get(e)}getEditorFromWinId(e){const t=[...this.textEditorToWinId].find((([,t])=>t===e));return t?t[0]:this.winIdToEditor.get(e)}getGridIdFromEditor(e){return this.getGridIdForWinId(this.getWinIdForTextEditor(e)||0)}getEditorFromGridId(e){const t=this.getWinIdForGridId(e);if(t)return this.getEditorFromWinId(t)}isExternalTextDocument(e){return"output"===e.uri.scheme||a.$.autoGeneratedDocumentSchemes.includes(e.uri.scheme)||this.externalTextDocuments.has(e)}handleRedraw({name:e,args:t}){switch(e){case"win_external_pos":case"win_pos":for(const[e,n]of t)this.grids.set(e,{winId:n.id});break;case"win_close":for(const[e]of t)this.grids.delete(e)}}handleOpenFile(t){return y(this,void 0,void 0,(function*(){const[n,i]=t,o=e.window.activeTextEditor;let s,a;try{if("__vscode_new__"===n)s=yield e.workspace.openTextDocument();else{const t=n.trim();let i=e.Uri.from({scheme:"file",path:this.findPathFromFileName(t)});(yield(0,r.hR)(i))||(i=e.Uri.from({scheme:"untitled",path:t}),s=yield e.workspace.openNotebookDocument(i)),null!=s||(s=yield e.workspace.openTextDocument(i))}}catch(t){b.log(null==s?void 0:s.uri,e.LogLevel.Error,`Error opening file ${n}, ${t}`)}s&&(i&&"all"!==i&&o&&(a=o.viewColumn,yield e.commands.executeCommand("workbench.action.revertAndCloseActiveEditor")),yield e.window.showTextDocument(s,a),"all"===i&&(yield e.commands.executeCommand("workbench.action.closeOtherEditors")))}))}handleExternalBuffer(t){return y(this,void 0,void 0,(function*(){var n;const[r,i,o]=t,{name:s,bufnr:a,variables:{vscode_uri:u}}=r;if(!u)return b.debug(`Attaching new external buffer: '${s}', id: ${a}`),1===a?void b.debug(`${a} is the first neovim buffer, skipping`):void(yield this.attachNeovimExternalBuffer(s,a,!!i,o));const c=e.Uri.parse(u,!0);b.log(c,e.LogLevel.Debug,`Buffer request for ${c.fsPath}, bufId: ${a}`);try{let t=this.findDocFromUri(c.toString());if(t||(b.log(c,e.LogLevel.Debug,`Opening a doc: ${c.fsPath}`),t=yield e.workspace.openTextDocument(c)),!this.textDocumentToBufferId.has(t)){b.log(c,e.LogLevel.Debug,"No doc -> buffer mapping exists, assigning mapping and init buffer options");const n=(yield this.client.buffers).find((e=>e.id===a));n&&(yield this.initBufferForDocument(t,n)),this.textDocumentToBufferId.set(t,a)}if((null===(n=e.window.activeTextEditor)||void 0===n?void 0:n.document)!==t){const n=yield e.window.showTextDocument(t,{viewColumn:e.window.activeTextEditor?e.window.activeTextEditor.viewColumn:e.ViewColumn.Active,preserveFocus:!1,preview:!1});this.onDidChangeEditorOptions(n)}}catch(e){}}))}syncDocumentDirtyState(){return y(this,void 0,void 0,(function*(){const e=Array.from(this.textDocumentToBufferId.entries()).map((([e,t])=>({buf:t,modified:e.isDirty})));yield this.client.lua("\n local states = ...\n for _, state in ipairs(states) do\n vim.bo[state.buf].modified = state.modified\n end\n ",[e])}))}handleBufferModifiedSet({buf:e,modified:t}){if(t)return;const n=this.getTextDocumentForBufferId(e);n&&n.isDirty&&!n.isUntitled&&!n.isClosed&&n.save()}handleSaveBuf(t){return y(this,arguments,void 0,(function*({buf:t,bang:n,current_name:i,target_name:o}){const s=this.getTextDocumentForBufferId(t);if(null==s)throw new Error(`Cannot save buffer ${t} - ${o}`);const a=s.uri;if(s.isUntitled)return void(yield e.workspace.save(a));const u=e=>f().normalize(e).split(f().sep).join(f().posix.sep),c=u(i),l=u(o);if(c===l)return void(yield e.workspace.save(a));const h=u(yield this.main.client.call("getcwd")),d=u(f().relative(h,l));if(d===l)return void(yield e.workspace.saveAs(a));const p=e.workspace.getWorkspaceFolder(a);if(!p)return void(yield e.workspace.saveAs(a));const g=e.Uri.joinPath(p.uri,d);if((yield(0,r.hR)(g))&&!n&&"Override"!==(yield e.window.showErrorMessage(`File exists (add ! to override): ${g.fsPath}`,"Override")))return;b.debug(`Saving ${a} to ${g}`);const v=s.getText(),m=(new TextEncoder).encode(v);try{yield e.workspace.fs.writeFile(g,m),e.window.setStatusBarMessage(`Saved "${f().basename(g.fsPath)}"`,3e3)}catch(t){e.window.showErrorMessage(`Failed to save "${g.fsPath}": ${t}`)}}))}cleanupWindowsAndBuffers(e){const t=[],n=[];if([...this.textEditorToWinId.entries()].forEach((([n,r])=>{e.includes(n)||(b.debug(`Editor viewColumn: ${n.viewColumn}, winId: ${r}, closing`),this.textEditorToWinId.delete(n),this.winIdToEditor.delete(r),t.push(r))})),[...this.textDocumentToBufferId.entries()].forEach((([t,r])=>{t.isClosed&&(e.some((e=>e.document===t))||(b.debug(`Document: ${t.uri}, bufId: ${r}, deleting`),this.textDocumentToBufferId.delete(t),n.push(r)))})),t.length||n.length){const e={windows:t,buffers:n},r=setTimeout((()=>b.warn("Cleanup took longer than 5s: ",e)),5e3);s.lua("cleanup_windows_and_buffers",e).catch((t=>b.warn("Failed to cleanup",e,t))).finally((()=>clearTimeout(r)))}}syncVisibleEditors(t){return y(this,void 0,void 0,(function*(){for(const n of t){const{document:t}=n;if(b.log(t.uri,e.LogLevel.Debug,`Visible editor, viewColumn: ${n.viewColumn}, doc: ${t.uri}`),!this.textDocumentToBufferId.has(t)){b.log(t.uri,e.LogLevel.Debug,"Document not known, init in neovim");const r=yield this.client.createBuffer(!1,!0);if("number"==typeof r){b.error(`Cannot create a buffer, code: ${r}`);continue}yield this.initBufferForDocument(t,r,n),b.log(t.uri,e.LogLevel.Debug,`Document: ${t.uri}, BufId: ${r.id}`),this.textDocumentToBufferId.set(t,r.id)}if(this.textEditorToWinId.has(n))continue;const r=this.textDocumentToBufferId.get(t);try{b.log(t.uri,e.LogLevel.Debug,`Creating new window for ${n.viewColumn} column (undefined is OK here)`);const i=yield this.createNeovimWindow(r);b.log(t.uri,e.LogLevel.Debug,`Created new window: ${i} ViewColumn: ${n.viewColumn}`),this.textEditorToWinId.set(n,i),this.winIdToEditor.set(i,n),yield this.main.cursorManager.updateNeovimCursorPosition(n,n.selection.active)}catch(n){b.log(t.uri,e.LogLevel.Error,n.message)}}}))}syncActiveEditor(t){return y(this,void 0,void 0,(function*(){var n;if(!t)return;const r=this.textEditorToWinId.get(t),i=t.document.uri;if(r){if((yield this.client.window).id!==r){b.log(i,e.LogLevel.Debug,`Setting active editor - winId: ${r}`),null===(n=this.windowChangedTokenSource)||void 0===n||n.cancel(),yield this.main.cursorManager.updateNeovimCursorPosition(t,t.selection.active),this.main.modeManager.isVisualMode&&(b.log(i,e.LogLevel.Debug,"Cancel visual mode to prevent selection from previous editor to carry over to active editor"),yield this.client.input("<Esc>"));try{yield this.client.request("nvim_set_current_win",[r])}catch(t){b.log(i,e.LogLevel.Error,t.message)}}}else b.log(i,e.LogLevel.Error,`Unable to determine neovim window id for editor, docUri: ${i}`)}))}initBufferForDocument(t,n,r){return y(this,void 0,void 0,(function*(){var i;const o=n.id;b.log(t.uri,e.LogLevel.Debug,`Init buffer for ${o}, doc: ${t.uri}`);const a=t.eol===e.EndOfLine.LF?"\n":"\r\n",u=t.getText(),c=u.split(a),{version:l}=t,h=yield this.bufnameForTextDocument(t);yield s.lua("init_document_buffer",{buf:o,bufname:h,lines:c,uri:t.uri.toString(),uri_data:t.uri.toJSON(),editor_options:_(null==r?void 0:r.options),modifiable:!this.isExternalTextDocument(t),modified:t.isDirty,filetype:x(t)}),this.isExternalTextDocument(t)||(yield s.lua("clear_undo",o)),null===(i=this.onBufferInit)||void 0===i||i.call(this,o,t,u,l),n.listen("lines",this.receivedBufferEvent),s.fireNvimEvent("document_buffer_init",o)}))}bufnameForTextDocument(e){return y(this,void 0,void 0,(function*(){const t=e.uri;return"file"===t.scheme?a.$.useWsl?s.lua("wslpath",t.fsPath):t.fsPath:t.toString()}))}createNeovimWindow(e){return y(this,void 0,void 0,(function*(){yield this.client.setOption("eventignore","BufWinEnter,BufEnter,BufLeave");const t=yield this.client.openWindow(e,!1,{external:!0,width:a.$.neovimViewportWidth,height:100});if(yield this.client.setOption("eventignore",""),"number"==typeof t)throw new Error(`Unable to create a new neovim window, code: ${t}`);return t.id}))}findPathFromFileName(t){const n=e.workspace.workspaceFolders;return n&&n.length>0?f().resolve(n[0].uri.fsPath,t):t}findDocFromUri(t){return t.startsWith("/search-editor")&&(t=t.slice(1)),e.workspace.textDocuments.find((e=>e.uri.toString()===t))}buildExternalBufferUri(t,n){return e.Uri.file(t).with({scheme:w,authority:n.toString()})}attachNeovimExternalBuffer(t,n,i,o){return y(this,void 0,void 0,(function*(){var s;const a=this.buildExternalBufferUri(t,n);let u;b.debug(`opening external buffer ${a}`);try{u=yield e.workspace.openTextDocument(a)}catch(e){return void b.debug(`unable to open external buffer: ${e}`)}this.externalTextDocuments.add(u),this.textDocumentToBufferId.set(u,n),null===(s=this.onBufferInit)||void 0===s||s.call(this,n,u,u.getText(),u.version);const c=yield this.client.windows;let l=0;for(const e of c)(yield e.buffer).id===n&&(b.debug(`Found window assigned to external buffer ${n}, winId: ${e.id}, isKnownWindow: ${this.winIdToEditor.has(e.id)}`),this.winIdToEditor.has(e.id)||(l=e.id));const h=yield e.window.showTextDocument(u,{preserveFocus:!1,preview:!0,viewColumn:e.ViewColumn.Active});h.options.insertSpaces=i,h.options.tabSize=o,l&&(setTimeout((()=>y(this,void 0,void 0,(function*(){const t=yield this.client.request("nvim_win_get_cursor",[l]);if(t){b.debug(`Adjusting cursor pos for external buffer: ${n}, originalPos: [${t[0]}, ${t[1]}]`);const i=t[0]-1;let o=t[1];try{o=(0,r.Z6)(u.lineAt(i).text,t[1]),b.debug(`Adjusted cursor: [${i}, ${o}]`)}catch(e){b.warn(`Unable to get cursor pos for external buffer: ${n}`)}const s=new e.Selection(i,o,i,o);h.selections=[s],h.revealRange(s,e.TextEditorRevealType.AtTop)}}))),1e3),setTimeout((()=>{b.debug(`Closing window ${l} for external buffer: ${n}`);try{this.client.request("nvim_win_close",[l,!0])}catch(e){b.warn(`Closing the window: ${l} for external buffer failed: ${e.message}`)}}),5e3))}))}}class S{constructor(t,n){this.client=t,this.receivedBufferEvent=n,this.documentDidChange=new e.EventEmitter,this.onDidChange=this.documentDidChange.event}provideTextDocumentContent(e,t){return y(this,void 0,void 0,(function*(){b.debug(`trying to provide content for ${e}`);const n=parseInt(e.authority,10),r=(yield this.client.buffers).find((e=>e.id===n));if(!r||t.isCancellationRequested)return void b.debug(`external buffer ${n} not found`);const i=yield r.lines;if(i.length&&(1!==i.length||i[0]))return r.listen("lines",this.receivedBufferEvent),yield r[m.ATTACH](!0),i.join("\n");b.debug(`Skipping empty external buffer ${n}`)}))}}var C=__webpack_require__(1928);class M{constructor(){this.pendingBatches=[],this.needFlush=!1,this.lastSeenLevel=null}handleNvimRedrawEvent(e){const t=!this.needFlush;if(this.needFlush&&this.addToBatch(e),"cmdline_show"===e.name){const[t,n,r,i,o,s]=e.args[0];this.lastSeenLevel=s}else"cmdline_hide"===e.name&&1===this.lastSeenLevel&&this.prepareBatch();return t}flushBatch(){var e;const t=null!==(e=this.pendingBatches.shift())&&void 0!==e?e:null;return this.needFlush=!1,this.lastSeenLevel=null,t}prepareBatch(){this.pendingBatches.push([]),this.needFlush=!0,this.lastSeenLevel=null}addToBatch(e){if(0===this.pendingBatches.length)throw new Error("Invalid cmdline state");this.pendingBatches[this.pendingBatches.length-1].push(e)}}var T=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};const k=(0,l.h)("CmdLine",!1);class O{constructor(){this.lastTypedText="",this.level=void 0,this.ignoreHideEvent=!1,this.redrawExpected=!0,this.pendingNvimUpdates=0}}class L{constructor(t){this.main=t,this.disposables=[],this.state=new O,this.queue=new M,this.cmdlineShow=(e,t,n,r)=>{if(this.isVisible()||this.reset(),this.state.level=r,this.input.title=n||this.getTitle(t),this.state.redrawExpected){if(this.state.redrawExpected=!1,this.showInput(),this.input.value!==e){k.debug(`cmdline_show: setting input value: "${e}"`),this.state.lastTypedText=e,this.state.pendingNvimUpdates++;const t=this.input.activeItems;this.input.value=e,this.input.activeItems=t}}else k.debug(`cmdline_show: ignoring cmdline_show because no redraw expected: "${e}"`)},this.setSelection=e=>{this.input.activeItems=-1===e?[]:[this.input.items[e]]},this.onAccept=()=>T(this,void 0,void 0,(function*(){k.debug("onAccept, entering <CR>"),yield this.main.client.input("<CR>")})),this.onChange=e=>T(this,void 0,void 0,(function*(){if(this.state.pendingNvimUpdates)return this.state.pendingNvimUpdates=Math.max(0,this.state.pendingNvimUpdates-1),void k.debug(`onChange: skip updating cmdline because change originates from nvim: "${e}"`);const t=function(e,t){const n=function(e,t){const n=t.length-e.length;return e===t?{action:"none"}:1===n&&e+t[t.length-1]===t?{action:"added",char:t[t.length-1]}:-1===n&&e.substring(0,e.length-1)===t?{action:"removed",char:e[e.length-1]}:{action:"other"}}(e,t);switch(n.action){case"added":return(0,C.LH)(n.char);case"removed":return"<BS>";case"none":return"";case"other":return`<C-u>${(0,C.LH)(t)}`}}(this.state.lastTypedText,e);k.debug(`onChange: sending cmdline to nvim: "${this.state.lastTypedText}" + "${t}" -> "${e}"`),yield this.main.client.input(t),this.state.lastTypedText=e})),this.onHide=()=>T(this,void 0,void 0,(function*(){this.state.ignoreHideEvent?(k.debug("onHide: skipping event"),this.state.ignoreHideEvent=!1):(k.debug("onHide: entering <ESC>"),yield this.main.client.input("<Esc>"));const e=this.queue.flushBatch();null!==e&&(k.debug("onHide: flushing events"),e.forEach((e=>{this.handleRedrawEvent(e)})))})),this.onSelection=e=>T(this,void 0,void 0,(function*(){if(0===e.length)return;k.debug(`onSelection: "${e[0].label}"`),this.state.redrawExpected=!0;const t=this.input.items.indexOf(e[0]);yield this.main.client.request("nvim_select_popupmenu_item",[t,!1,!1,{}])})),this.onButton=e=>T(this,void 0,void 0,(function*(){"Cancel"===e.tooltip?this.input.hide():"Accept"===e.tooltip&&(yield this.onAccept())})),this.sendRedraw=e=>{k.debug(`sendRedraw: "${e}"`),this.state.redrawExpected=!0,this.main.client.input(e)},this.testCmdline=e=>{this.input.value+=e},c.on("redraw",this.handleRedraw,this,this.disposables),this.input=e.window.createQuickPick(),this.input.sortByLabel=!1,this.input.ignoreFocusOut=!0,this.input.buttons=[{iconPath:new e.ThemeIcon("close"),tooltip:"Cancel"},{iconPath:new e.ThemeIcon("check"),tooltip:"Accept"}],this.disposables.push(this.input,this.input.onDidAccept(this.onAccept),this.input.onDidChangeValue(this.onChange),this.input.onDidHide(this.onHide),this.input.onDidChangeSelection(this.onSelection),this.input.onDidTriggerButton(this.onButton),e.commands.registerCommand("vscode-neovim.commit-cmdline",this.onAccept),e.commands.registerCommand("vscode-neovim.send-cmdline",this.sendRedraw),e.commands.registerCommand("vscode-neovim.test-cmdline",this.testCmdline))}dispose(){(0,r.v3)(this.disposables)}reset(){this.state=new O,this.input.value="",this.input.title="",this.input.items=[],this.input.activeItems=[]}handleRedraw(e){-1!==["cmdline_show","cmdline_hide","popupmenu_show","popupmenu_select","popupmenu_hide"].indexOf(e.name)&&this.queue.handleNvimRedrawEvent(e)&&this.handleRedrawEvent(e)}handleRedrawEvent({name:e,args:t}){switch(e){case"cmdline_show":{const[e,n,r,i,o,s]=t[0],a=e.map((([,e])=>e)).join("");k.debug(`cmdline_show: "${e}"`),this.cmdlineShow(a,r,i,s);break}case"popupmenu_show":{const[e,n,r,i,o]=t[0];k.debug(`popupmenu_show: ${e.length} items`),this.input.items=e.map((e=>({label:e[0],alwaysShow:!0}))),this.setSelection(n);break}case"popupmenu_select":{const[e]=t[0];k.debug(`popupmenu_select: "${e}"`),this.setSelection(e);break}case"popupmenu_hide":k.debug("popupmenu_hide"),this.input.items=[];break;case"cmdline_hide":k.debug("cmdline_hide"),this.cmdlineHide()}}cmdlineHide(){this.state.ignoreHideEvent=!0,this.state.redrawExpected=!0,1!==this.state.level&&this.isVisible()?k.debug(`visible level is ${this.state.level}, not hiding`):(k.debug(`visible level is ${this.state.level}, hiding`),this.hideInput())}getTitle(e){switch(e){case"/":return`${u.EO.SEARCH_FORWARD} Forward Search:`;case"?":return`${u.EO.SEARCH_BACKWARD} Backward Search:`;case":":return`${u.EO.COMMAND} VIM Command Line:`;default:return e}}showInput(){this.input.show()}hideInput(){this.state.level=void 0,this.input.hide()}isVisible(){return void 0!==this.state.level}}class P{constructor(n){this.main=n,this.disposables=[],this.scrollPage=(e,n)=>{t().commands.executeCommand("editorScroll",{to:n,by:e,revealCursor:!0})},this.scrollLine=e=>{t().commands.executeCommand("editorScroll",{to:e,by:"line",revealCursor:a.$.revealCursorScrollLine})},this.goToLine=e=>{const n=t().window.activeTextEditor;if(!n)return;const r=n.visibleRanges[0].start.line,i=n.visibleRanges[0].end.line,o="top"===e?r:"bottom"===e?i:Math.floor(r+(i-r)/2),s=n.document.lineAt(o);n.selections=[new(t().Selection)(o,s.firstNonWhitespaceCharacterIndex,o,s.firstNonWhitespaceCharacterIndex)]},this.revealLine=(e,n=!1)=>{const r=t().window.activeTextEditor;if(!r)return;const i=r.selection.active;if(t().commands.executeCommand("revealLine",{lineNumber:i.line,at:e}),n){const e=r.document.lineAt(i.line);r.selections=[new(t().Selection)(i.line,e.firstNonWhitespaceCharacterIndex,i.line,e.firstNonWhitespaceCharacterIndex)]}},this.main,this.disposables.push(e.commands.registerCommand("vscode-neovim.ctrl-f",(()=>this.scrollPage("page","down"))),e.commands.registerCommand("vscode-neovim.ctrl-b",(()=>this.scrollPage("page","up"))),e.commands.registerCommand("vscode-neovim.ctrl-d",(()=>this.scrollPage("halfPage","down"))),e.commands.registerCommand("vscode-neovim.ctrl-u",(()=>this.scrollPage("halfPage","up"))),e.commands.registerCommand("vscode-neovim.ctrl-e",(()=>this.scrollLine("down"))),e.commands.registerCommand("vscode-neovim.ctrl-y",(()=>this.scrollLine("up"))),c.on("reveal",(([e,t])=>this.revealLine(e,!!t))),c.on("move-cursor",(([e])=>this.goToLine(e))),c.on("scroll",(([e,t])=>this.scrollPage(e,t))),c.on("scroll-line",(([e])=>this.scrollLine(e))))}dispose(){(0,r.v3)(this.disposables)}}class I{constructor(){this.pendingUpdates=new Map}size(){return this.pendingUpdates.size}empty(){return 0===this.size()}clear(){this.pendingUpdates.clear()}entries(){return Array.from(this.pendingUpdates.entries()).map((([e,t])=>[e,()=>this.evaluateUpdates(t)]))}addConditionalUpdate(e,t){this.push(e,t)}addForceUpdate(e){this.push(e,(()=>!0))}evaluateUpdates(e){let t=!1;for(const n of e)n()&&(t=!0);return t}push(e,t){var n;const r=null!==(n=this.pendingUpdates.get(e))&&void 0!==n?n:[];r.push(t),this.pendingUpdates.set(e,r)}}var R=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};const A=(0,l.h)("CursorManager",!1);class ${get client(){return this.main.client}constructor(t){this.main=t,this.disposables=[],this.cursorModes=new Map,this.defaultCursorStyle=e.TextEditorCursorStyle.Line,this.neovimCursorPosition=new WeakMap,this.cursorUpdatePromise=new Map,this.applySelectionChangedPromise=new Map,this._wantInsertCursorUpdate=new WeakMap,this.wantInsertCursorUpdate=e=>{var t;return null!==(t=this._wantInsertCursorUpdate.get(e))&&void 0!==t&&t},this.setWantInsertCursorUpdate=(e,t)=>{e&&(t?this._wantInsertCursorUpdate.set(e,t):this._wantInsertCursorUpdate.delete(e))},this.gridCursorUpdates=new I,this.debouncedCursorUpdates=new WeakMap,this.debouncedApplySelectionChanged=new Map,this.updateCursorStyleTimeouts=new Set,this.getDebouncedUpdateCursorPos=e=>{const t=this.debouncedCursorUpdates.get(e);if(t)return t;const n=(0,v.debounce)(this.updateCursorPosInEditor,5,{leading:!1,trailing:!0,maxWait:10});return this.debouncedCursorUpdates.set(e,n),n},this.updateCursorPosInEditor=(t,n)=>R(this,void 0,void 0,(function*(){var i,o;if(A.debug("Waiting for document change completion before setting the editor cursor"),yield this.main.changeManager.getDocumentChangeCompletionLock(t.document),this.main.modeManager.isInsertMode&&!this.wantInsertCursorUpdate(t)&&!this.main.modeManager.isRecordingInInsertMode)return A.debug("Skipping insert cursor update in editor"),null===(i=this.cursorUpdatePromise.get(t))||void 0===i||i.resolve(),void this.cursorUpdatePromise.delete(t);const a=this.main.viewportManager.getCursorFromViewport(n),u=(0,r.IP)(t,a);let c=[];if(this.main.modeManager.isVisualMode){const e=this.main.bufferManager.getWinIdForTextEditor(t);if(!e)return void A.warn("No window for editor");try{const n=yield s.lua("get_selections",e);c=(0,r.Jq)(n,t.document)}catch(e){return void A.error(e)}}else c=[new e.Selection(u,u)];const{selections:l}=t;(c.length!==l.length||c.some(((e,t)=>!(e.active.isEqual(l[t].active)&&e.anchor.isEqual(l[t].anchor)))))&&(t.selections=c),this.neovimCursorPosition.set(t,c[0]),c[0].active.isEqual(l[0].active)||this.triggerMovementFunctions(t,u),null===(o=this.cursorUpdatePromise.get(t))||void 0===o||o.resolve(),this.cursorUpdatePromise.delete(t)})),this.onSelectionChanged=t=>{if(this.main.modeManager.isInsertMode)return;const{textEditor:n,kind:i}=t;A.debug(`onSelectionChanged, kind: ${i}, editor: ${n.document.uri.fsPath}, active: [${n.selection.active.line}, ${n.selection.active.character}]`),i!==e.TextEditorSelectionChangeKind.Mouse||n.selection.isEmpty||this.updateEditorCursorStyle("visual"),n.selection.isEmpty||this.applySelectionChangedPromise.has(n)||this.applySelectionChangedPromise.set(n,new r.ie),this.getDebouncedApplySelectionChanged(i)(n,i)},this.getDebouncedApplySelectionChanged=t=>{let n;n=void 0!==this.previousApplyDebounceTime?this.previousApplyDebounceTime:t===e.TextEditorSelectionChangeKind.Mouse?a.$.mouseSelectionDebounceTime:a.$.normalSelectionDebounceTime,this.previousApplyDebounceTime=n;let r=this.debouncedApplySelectionChanged.get(n);return r||(r=(0,v.debounce)(this.applySelectionChanged,n,{leading:!1,trailing:!0}),this.debouncedApplySelectionChanged.set(n,r),r)},this.applySelectionChanged=(t,n)=>R(this,void 0,void 0,(function*(){var r,i;this.updateEditorCursorStyle(this.main.modeManager.currentMode.name),A.debug("Waiting for possible layout completion operation"),yield this.main.bufferManager.waitForLayoutSync(),A.debug("Waiting for possible document change completion operation"),yield this.main.changeManager.getDocumentChangeCompletionLock(t.document),yield this.main.changeManager.documentChangeLock.waitForUnlock(),A.debug("Waiting done");const o=t.selection,s=1===t.selections.length,u=this.main.changeManager.eatDocumentCursorAfterChange(t.document);if(u&&u.isEqual(o.active))A.debug("Skipping onSelectionChanged event since it was selection produced by doc change");else if(A.debug(`Applying changed selection, kind: ${n}, cursor: [${o.active.line}, ${o.active.character}], isSingleSelection: ${s}`),o.isEmpty){const i=n===e.TextEditorSelectionChangeKind.Mouse,a=n===e.TextEditorSelectionChangeKind.Command&&(null===(r=this.neovimCursorPosition.get(t))||void 0===r?void 0:r.isEqual(o)),u=i||s&&!a;this.main.modeManager.isVisualMode&&u&&(yield this.client.input("<Esc>")),yield this.updateNeovimCursorPosition(t,o.active)}else n===e.TextEditorSelectionChangeKind.Mouse&&a.$.disableMouseSelection||(yield this.updateNeovimVisualSelection(t,o));this.previousApplyDebounceTime=void 0,null===(i=this.applySelectionChangedPromise.get(t))||void 0===i||i.resolve(),this.applySelectionChangedPromise.delete(t)})),this.triggerMovementFunctions=(t,n)=>{e.commands.executeCommand("editor.action.wordHighlight.trigger");const r=Math.min(...t.visibleRanges.map((e=>e.start.line))),i=Math.max(...t.visibleRanges.map((e=>e.end.line))),o=n.line-t.selection.active.line,s=o>0?n.line>i+10?e.TextEditorRevealType.InCenterIfOutsideViewport:e.TextEditorRevealType.Default:o<0&&n.line<r-10?e.TextEditorRevealType.InCenterIfOutsideViewport:e.TextEditorRevealType.Default;t.revealRange(new e.Selection(n,n),s),this.main.viewportManager.scrollNeovim(t)};const n=()=>{this.updateEditorCursorStyle();const e=setTimeout((()=>{this.updateEditorCursorStyle(),this.updateCursorStyleTimeouts.delete(e)}),100);this.updateCursorStyleTimeouts.add(e)};this.disposables.push(e.window.onDidChangeTextEditorSelection(this.onSelectionChanged),e.window.onDidChangeVisibleTextEditors(n),e.window.onDidChangeActiveTextEditor(n),c.on("redraw",this.handleRedraw,this),c.on("flush-redraw",this.handleRedrawFlush,this),c.on("visual-changed",(([e])=>{const t=this.main.bufferManager.getGridIdForWinId(e);t&&this.gridCursorUpdates.addForceUpdate(t)})),t.viewportManager.onCursorChanged((e=>this.gridCursorUpdates.addForceUpdate(e))),e.workspace.onDidChangeConfiguration((e=>{e.affectsConfiguration("editor.cursorStyle")&&(this.updateDefaultCursorStyle(),this.updateEditorCursorStyle())})),new e.Disposable((()=>{this.updateCursorStyleTimeouts.forEach((e=>clearTimeout(e))),e.window.visibleTextEditors.forEach((e=>e.options.cursorStyle=this.defaultCursorStyle))}))),this.updateDefaultCursorStyle()}updateDefaultCursorStyle(){const t=e.workspace.getConfiguration("editor").get("cursorStyle","line").split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join("");this.defaultCursorStyle=e.TextEditorCursorStyle[t]}handleRedraw({name:t,args:n}){switch(t){case"grid_cursor_goto":case"grid_scroll":n.forEach((e=>this.gridCursorUpdates.addForceUpdate(e[0])));break;case"mode_info_set":n.forEach((e=>e[1].forEach((e=>{e.name&&e.cursor_shape&&this.cursorModes.set(e.name,{cursorShape:e.cursor_shape})}))));break;case"mode_change":this.main.modeManager.isInsertMode&&this.setWantInsertCursorUpdate(e.window.activeTextEditor,!0),n.forEach((e=>this.updateEditorCursorStyle(e[0])))}}handleRedrawFlush(){this.processCursorMoved(),this.gridCursorUpdates.clear()}waitForCursorUpdate(e){return R(this,void 0,void 0,(function*(){var t,n;return Promise.all([Promise.resolve(null===(t=this.cursorUpdatePromise.get(e))||void 0===t?void 0:t.promise),Promise.resolve(null===(n=this.applySelectionChangedPromise.get(e))||void 0===n?void 0:n.promise)])}))}updateEditorCursorStyle(t=this.main.modeManager.currentMode.name){const n=this.cursorModes.get(t);if(!n)return;let r;r="visual"===t?e.TextEditorCursorStyle.LineThin:"block"===n.cursorShape?e.TextEditorCursorStyle.Block:"horizontal"===n.cursorShape?e.TextEditorCursorStyle.Underline:this.defaultCursorStyle;for(const t of e.window.visibleTextEditors)t.options.cursorStyle=r}processCursorMoved(){for(const[e,t]of this.gridCursorUpdates.entries()){if(!t())continue;A.debug(`Received cursor update from neovim, gridId: ${e}`);const n=this.main.bufferManager.getEditorFromGridId(e);n?(this.cursorUpdatePromise.has(n)||this.cursorUpdatePromise.set(n,new r.ie),this.getDebouncedUpdateCursorPos(n)(n,e)):A.warn(`No editor for gridId: ${e}`)}}updateNeovimCursorPosition(e,t){return R(this,arguments,void 0,(function*(e,t,n=!0){const i=this.main.bufferManager.getWinIdForTextEditor(e);if(!i)return;const o=this.neovimCursorPosition.get(e);if(n&&o&&o.active.isEqual(t))return void A.debug("Skipping event since neovim has same cursor pos");const s=(0,r.Gf)(e,t);A.debug(`Updating cursor pos in neovim, winId: ${i}, pos: [${s.line}, ${s.character}]`);const u=[s.line+1,s.character];try{yield this.client.request("nvim_win_set_cursor",[i,u])}catch(t){a.$.autoGeneratedDocumentSchemes.includes(e.document.uri.scheme)||A.error(`${t.message}`)}}))}updateNeovimVisualSelection(e,t){return R(this,void 0,void 0,(function*(){if(this.main.modeManager.isInsertMode)return;if(!this.main.bufferManager.getWinIdForTextEditor(e))return;const n=this.main.bufferManager.getBufferIdForTextDocument(e.document);if(!n)return;const r=this.neovimCursorPosition.get(e);if(null==r?void 0:r.isEqual(t))return void A.debug("Skipping event since neovim has same visual pos");const i=t.anchor,o=t.active;yield s.lua("start_visual",n,{line:i.line,character:i.character},{line:o.line,character:o.character})}))}dispose(){(0,r.v3)(this.disposables)}}new Error("timeout while waiting for mutex to become available"),new Error("mutex already locked");const D=new Error("request for lock canceled");class j{constructor(e,t=D){this._value=e,this._cancelError=t,this._queue=[],this._weightedWaiters=[]}acquire(e=1,t=0){if(e<=0)throw new Error(`invalid weight ${e}: must be positive`);return new Promise(((n,r)=>{const i={resolve:n,reject:r,weight:e,priority:t},o=N(this._queue,(e=>t<=e.priority));-1===o&&e<=this._value?this._dispatchItem(i):this._queue.splice(o+1,0,i)}))}runExclusive(e){return t=this,n=arguments,i=function*(e,t=1,n=0){const[r,i]=yield this.acquire(t,n);try{return yield e(r)}finally{i()}},new((r=void 0)||(r=Promise))((function(e,o){function s(e){try{u(i.next(e))}catch(e){o(e)}}function a(e){try{u(i.throw(e))}catch(e){o(e)}}function u(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(s,a)}u((i=i.apply(t,n||[])).next())}));var t,n,r,i}waitForUnlock(e=1,t=0){if(e<=0)throw new Error(`invalid weight ${e}: must be positive`);return this._couldLockImmediately(e,t)?Promise.resolve():new Promise((n=>{this._weightedWaiters[e-1]||(this._weightedWaiters[e-1]=[]),function(e,t){const n=N(e,(e=>t.priority<=e.priority));e.splice(n+1,0,t)}(this._weightedWaiters[e-1],{resolve:n,priority:t})}))}isLocked(){return this._value<=0}getValue(){return this._value}setValue(e){this._value=e,this._dispatchQueue()}release(e=1){if(e<=0)throw new Error(`invalid weight ${e}: must be positive`);this._value+=e,this._dispatchQueue()}cancel(){this._queue.forEach((e=>e.reject(this._cancelError))),this._queue=[]}_dispatchQueue(){for(this._drainUnlockWaiters();this._queue.length>0&&this._queue[0].weight<=this._value;)this._dispatchItem(this._queue.shift()),this._drainUnlockWaiters()}_dispatchItem(e){const t=this._value;this._value-=e.weight,e.resolve([t,this._newReleaser(e.weight)])}_newReleaser(e){let t=!1;return()=>{t||(t=!0,this.release(e))}}_drainUnlockWaiters(){if(0===this._queue.length)for(let e=this._value;e>0;e--){const t=this._weightedWaiters[e-1];t&&(t.forEach((e=>e.resolve())),this._weightedWaiters[e-1]=[])}else{const e=this._queue[0].priority;for(let t=this._value;t>0;t--){const n=this._weightedWaiters[t-1];if(!n)continue;const r=n.findIndex((t=>t.priority<=e));(-1===r?n:n.splice(0,r)).forEach((e=>e.resolve()))}}}_couldLockImmediately(e,t){return(0===this._queue.length||this._queue[0].priority<t)&&e<=this._value}}function N(e,t){for(let n=e.length-1;n>=0;n--)if(t(e[n]))return n;return-1}class B{constructor(e){this._semaphore=new j(1,e)}acquire(){return e=this,t=arguments,r=function*(e=0){const[,t]=yield this._semaphore.acquire(1,e);return t},new((n=void 0)||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}));var e,t,n,r}runExclusive(e,t=0){return this._semaphore.runExclusive((()=>e()),1,t)}isLocked(){return this._semaphore.isLocked()}waitForUnlock(e=0){return this._semaphore.waitForUnlock(1,e)}release(){this._semaphore.isLocked()&&this._semaphore.release()}cancel(){return this._semaphore.cancel()}}var q=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};const U=(0,l.h)("DocumentChangeManager");class F{get isDirtyStateChange(){return 0===this.contentChanges.length}constructor(e){this.text=e.document.getText(),this.version=e.document.version,this.isDirty=e.document.isDirty,this.contentChanges=e.contentChanges}}class W{get client(){return this.main.client}constructor(t){this.main=t,this.disposables=[],this.pendingEvents=[],this.bufferSkipTicks=new Map,this.documentSkipVersionOnChange=new WeakMap,this.textDocumentChangePromise=new Map,this.cursorAfterTextDocumentChange=new WeakMap,this.documentContentInNeovim=new WeakMap,this.documentChangeQueue=new WeakMap,this.applyingEdits=!1,this.documentChangeLock=new B,this.onBufferInit=(t,n,r,i)=>{U.log(n.uri,e.LogLevel.Debug,`Init buffer content for bufId: ${t}, uri: ${n.uri}, version: ${i}`),this.documentContentInNeovim.set(n,{text:r,version:i})},this.onNeovimChangeEvent=(t,n,i,o,s,a)=>{const u=this.main.bufferManager.getTextDocumentForBufferId(t);U.log(null==u?void 0:u.uri,e.LogLevel.Debug,`Received neovim buffer changed event for bufId: ${t}, tick: ${n}`),u?(this.bufferSkipTicks.get(t)||0)>=n?U.log(u.uri,e.LogLevel.Debug,`BufId: ${t} skipping tick: ${n}`):i!==o||0!==s.length?(this.textDocumentChangePromise.has(u)||this.textDocumentChangePromise.set(u,[]),this.textDocumentChangePromise.get(u).push(new r.ie),this.pendingEvents.push([t,n,i,o,s,a]),this.applyingEdits||this.applyEdits()):U.log(u.uri,e.LogLevel.Debug,`BufId: ${t} empty change, skipping`):U.log(void 0,e.LogLevel.Debug,`No text document for buffer: ${t}`)},this.applyEdits=()=>q(this,void 0,void 0,(function*(){var t,n;for(this.applyingEdits=!0,U.log(void 0,e.LogLevel.Debug,"Applying neovim edits"),this.applyingEditsProgress.start({location:e.ProgressLocation.Notification,title:"Applying neovim edits"},1e3);this.pendingEvents.length;){const i=new Map;let o=this.pendingEvents.shift();for(;o;){const[t,n,s,a,u,c]=o,l=this.main.bufferManager.getTextDocumentForBufferId(t);if(!l){U.log(void 0,e.LogLevel.Warning,`No document for ${t}, skip`);continue}U.log(l.uri,e.LogLevel.Debug,`Accumulating edits for ${l.uri.toString()}, bufId: ${t}`),i.get(l)||i.set(l,(0,r.ZM)(l));let h=i.get(l);if(s!==a&&a===s+1&&1===u.length&&""===u[0])for(let e=s;e<a;e++)h[e]="";else if(s!==a&&1===u.length&&""===u[0]){for(let e=1;e<a-s;e++)h.splice(s,1);h[s]=""}else if(s===a||u.length)s===a?(s>h.length&&u.unshift(""),0===s?h.unshift(...u):h=[...h.slice(0,s),...u,...h.slice(s)]):(s>=h.length&&u.unshift(""),h=[...h.slice(0,s),...u,...h.slice(a)]);else for(let e=0;e<a-s;e++)h.splice(s,1);i.set(l,h),o=this.pendingEvents.shift()}for(const[o,s]of i){const i=(null===(t=this.textDocumentChangePromise.get(o))||void 0===t?void 0:t.length)||0;try{if(U.log(o.uri,e.LogLevel.Debug,`Applying edits for ${o.uri.toString()}`),o.isClosed){U.log(o.uri,e.LogLevel.Debug,"Document was closed, skippnig");continue}const t=e.window.visibleTextEditors.find((e=>e.document===o));if(!t){U.log(o.uri,e.LogLevel.Debug,"No visible text editor for document, skipping");continue}const a=o.getText().replace(/\r\n/g,"\n"),u=s.join("\n"),c=t.selection.active;this.documentSkipVersionOnChange.set(o,o.version+1);const l=yield t.edit((e=>{const t=(0,r.IH)(a,u);for(const{range:n,text:r}of t)e.replace(n,r)}),{undoStopAfter:!1,undoStopBefore:!1});this.documentSkipVersionOnChange.set(o,o.version);const h=(null===(n=this.textDocumentChangePromise.get(o))||void 0===n?void 0:n.splice(0,i))||[];l?(t.selection.anchor.isEqual(t.selection.active)?t.selections=[new e.Selection(c,c)]:t.selections=[new e.Selection(t.selection.active,t.selection.active)],this.cursorAfterTextDocumentChange.set(t.document,t.selection.active),h.forEach((e=>e.resolve&&e.resolve())),U.log(o.uri,e.LogLevel.Debug,`Changes succesfully applied for ${o.uri.toString()}`),this.documentContentInNeovim.set(o,{text:o.getText(),version:o.version})):(h.forEach((t=>{t.promise.catch((()=>U.log(o.uri,e.LogLevel.Warning,`Edit was canceled for doc: ${o.uri.toString()}`))),t.reject()})),U.log(o.uri,e.LogLevel.Warning,`Changes were not applied for ${o.uri.toString()}`))}catch(t){U.log(o.uri,e.LogLevel.Error,`Error applying neovim edits, error: ${t.message}`)}}}const i=[...this.textDocumentChangePromise.values()].flatMap((e=>e));this.textDocumentChangePromise.clear(),i.forEach((e=>e.resolve&&e.resolve())),this.applyingEditsProgress.done(),this.pendingEvents.length?this.applyEdits():this.applyingEdits=!1})),this.onChangeTextDocument=e=>q(this,void 0,void 0,(function*(){const{document:t}=e;this.documentChangeQueue.has(t)||this.documentChangeQueue.set(t,[]);const n=new F(e);this.documentChangeQueue.get(t).push(n),this.documentContentInNeovim.has(t)&&(yield this.documentChangeLock.runExclusive((()=>q(this,void 0,void 0,(function*(){var e;const n=null!==(e=this.documentChangeQueue.get(t))&&void 0!==e?e:[];this.documentChangeQueue.set(t,[]);for(const e of n)yield this.processTextDocumentChange(t,e)})))))})),this.processTextDocumentChange=(t,n)=>q(this,void 0,void 0,(function*(){var i;const o=this.documentContentInNeovim.get(t);if(!o)return;const{contentChanges:a,isDirty:u,isDirtyStateChange:c,version:l}=n;if(!c&&l<=o.version)return;this.documentContentInNeovim.set(t,{text:n.text,version:n.version}),U.log(t.uri,e.LogLevel.Debug,`Change text document for: ${t.uri}`);const h=e.window.visibleTextEditors.find((e=>e.document===t)),d=this.main.bufferManager.getBufferIdForTextDocument(t);if(!d)return void U.log(t.uri,e.LogLevel.Warning,`No neovim buffer for ${t.uri}`);c&&!u&&(yield this.client.request("nvim_buf_set_option",[d,"modified",!1]));const f=null!==(i=this.documentSkipVersionOnChange.get(t))&&void 0!==i?i:0;if(U.log(t.uri,e.LogLevel.Debug,`Version: ${l}, skipVersion: ${f}`),f>=l)return void U.log(t.uri,e.LogLevel.Debug,"Skipping a change since versions equals");const p=t.eol===e.EndOfLine.LF?"\n":"\r\n",g=e.window.activeTextEditor;if(g&&g.document===t&&this.main.modeManager.isInsertMode){const e=g.selection.active;for(const t of a)(0,r.RP)(t,e,p)&&(this.dotRepeatChange&&(0,r.H$)(t,this.dotRepeatChange)?this.dotRepeatChange=(0,r.rZ)(t,this.dotRepeatChange):this.dotRepeatChange=(0,r.E1)(t,p))}const v=o.text.split(p),m=[];for(const e of a){const{text:t,range:{start:n,end:i}}=e,o=(0,r.$V)(v[n.line],n.character),s=(0,r.$V)(v[i.line],i.character);m.push([n.line,o,i.line,s,t.split(p)])}const y=yield this.client.request("nvim_buf_get_changedtick",[d]);y?(this.bufferSkipTicks.set(d,y+m.length),U.log(t.uri,e.LogLevel.Debug,"Setting wantInsertCursorUpdate to false"),h&&this.main.cursorManager.setWantInsertCursorUpdate(h,!1),yield s.lua("handle_changes",d,m),u||(yield this.client.request("nvim_buf_set_option",[d,"modified",!1])),h&&h===g&&!this.main.modeManager.isInsertMode&&this.main.cursorManager.applySelectionChanged(h)):U.log(t.uri,e.LogLevel.Warning,`Can't get changed tick for bufId: ${d}, deleted?`)})),this.main.bufferManager.onBufferEvent=this.onNeovimChangeEvent,this.main.bufferManager.onBufferInit=this.onBufferInit,this.applyingEditsProgress=new r.ke,this.disposables.push(this.applyingEditsProgress,e.workspace.onDidChangeTextDocument(this.onChangeTextDocument))}dispose(){(0,r.v3)(this.disposables)}eatDocumentCursorAfterChange(e){const t=this.cursorAfterTextDocumentChange.get(e);return this.cursorAfterTextDocumentChange.delete(e),t}getDocumentChangeCompletionLock(e){return q(this,void 0,void 0,(function*(){const t=this.textDocumentChangePromise.get(e);t&&t.length&&(yield Promise.all(t.map((e=>e.promise)).filter(Boolean)))}))}hasDocumentChangeCompletionLock(e){var t;return((null===(t=this.textDocumentChangePromise.get(e))||void 0===t?void 0:t.length)||0)>0}syncDotRepeatWithNeovim(){return q(this,void 0,void 0,(function*(){if(!this.dotRepeatChange)return;const e=this.dotRepeatChange.text.replace(/\r\n/g,"\n"),t=this.dotRepeatChange.rangeLength;if(this.dotRepeatChange=void 0,e.length||t)try{yield s.lua("dotrepeat_sync",e,t)}finally{yield s.lua("dotrepeat_restore",e,t)}}))}}var V=__webpack_require__(7260),H=__webpack_require__(2052);const z=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],G={nul:0,control:0};function K(e,t=G){return 0===e?t.nul:e<32||e>=127&&e<160?t.control:function(e){let t,n=0,r=z.length-1;if(e<z[0][0]||e>z[r][1])return!1;for(;r>=n;)if(t=Math.floor((n+r)/2),e>z[t][1])n=t+1;else{if(!(e<z[t][0]))return!0;r=t-1}return!1}(e)?0:1+Number(e>=4352&&(e<=4447||9001===e||9002===e||e>=11904&&e<=42191&&12351!==e||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65135||e>=65280&&e<=65376||e>=65504&&e<=65510||e>=131072&&e<=196605||e>=196608&&e<=262141))}const Y=new(__webpack_require__.n(H)());function J(e){return 2===function(e){let t=G;if("string"!=typeof e)return K(e,t);let n=0;for(let r=0;r<e.length;r++){const i=K(e.charCodeAt(r),t);if(i<0)return-1;n+=i}return n}(e)||e.length>1}function Z(e,t){return Q(function(e,t){const[n,r]=e.split("").reduce((([e,n],r)=>{if("\t"===r){const r=t-n%t;return[e+" ".repeat(r),n+r]}return[e+r,n+1]}),["",0]);return n}(e,t)).reduce(((e,t)=>e+(J(t)?2:1)),0)}function Q(e){return Y.splitGraphemes(e)}class X{constructor(e){this._cells=e,this._index=0}takeNext(){return this._cells[this._index++]}discardNext(){this._index++}getNext(){return this._cells[this._index]}setNext(e){this._index<this._cells.length&&(this._cells[this._index]=e)}}class ee{constructor(){this.lineCells=[]}handleGridLine(e,t,n){var r;const i=null!==(r=this.lineCells[e])&&void 0!==r?r:[];if(i.length<t){const e=t-i.length;for(let t=0;t<e;t++)i.push({text:" ",hlId:0})}const o=[];{let e=0;for(const[t,r,i]of n){null!=r&&(e=r);for(let n=0;n<(null!=i?i:1);n++)o.push({text:t,hlId:e})}}const s=i.slice(0,t),a=i.slice(t+o.length);this.lineCells[e]=[...s,...o,...a]}lineHighlightsToRanges(e,t){const n=new Map,r=[];t.forEach(((t,i)=>{var o;if(0===t.length)return;if(t.length>1||t[0].virtText)return void r.push({textType:"virtual",highlights:t,line:e,col:i});const s=t[0],a=null!==(o=n.get(s.hlId))&&void 0!==o?o:[],u=(0,v.findLast)(a,(e=>e.endCol===i));if(u)u.endCol=i+1;else{const t={textType:"normal",hlId:s.hlId,line:e,startCol:i,endCol:i+1};a.push(t)}n.set(s.hlId,a)}));const i=Array.from(n.values()).flat();return i.push(...r),i}computeLineHighlights(e,t,n){var r;const i=(0,v.cloneDeep)(null!==(r=this.lineCells[e])&&void 0!==r?r:[]);if(!i.length)return new Map;const o=new Map,s=[];{const e=Z(t,n);s.push(...i.slice(0,e));const r=[];let o=0;for(const t of i.slice(e))t.hlId===o&&r.length?r[r.length-1].text+=t.text:r.push(t),o=t.hlId;s.push(...r)}const a=new X(s),u=Q(t),c=Q(t).reduce(((e,t)=>e+t+" ".repeat(t.length-1)),""),l=Q(c),h=e=>{let t=u.slice(0,e).lastIndexOf("\t");t=-1===t?0:t+1;const r=u.slice(t,e).join("");return n-Z(r,n)%n};let d=0,f=a.takeNext();for(;f;){const e=[],t=(t,n)=>e.push(Object.assign(Object.assign({},t),{virtText:n})),n=l[d],r=n?n.length-1:0;d+=r;const i=d-(n?[...n].length-1:0);do{if("\t"===n){t(f,f.text);for(let e=0;e<h(d)-1;e++)f=a.takeNext(),f&&t(f,f.text);break}if(n&&J(n)){if(n===f.text){t(f),a.discardNext();break}if(t(f,f.text),!J(f.text)){const e=a.takeNext();e&&t(e,e.text),r&&t(null!=e?e:f," ".repeat(r))}break}n===f.text?t(f):(t(f,f.text),J(f.text)&&d++)}while(0);o.set(i,e),d++,f=a.takeNext()}return o}}class te{constructor(e,t,n,r,i){this.gridId=e,this.groupStore=t,this.bufferManager=n,this.viewportManager=r,this.changeManager=i,this.gridLineHandler=new ee,this.prevDecorators=new Set,this.isDirty=!1,this.lineDecorationsCache=new Map}get editor(){return this.bufferManager.getEditorFromGridId(this.gridId)}get viewport(){return this.viewportManager.getViewport(this.gridId)}handleGridLine(e,t,n){const r=n.map((e=>{const t=e[1];return t&&(e[1]=this.groupStore.normalizeHighlightId(t)),e}));this.gridLineHandler.handleGridLine(e,t,r),this.lineDecorationsCache.delete(e),this.isDirty=!0}handleRedrawFlush(){if(this.isDirty){if(this.isDirty=!1,!this.editor)return;this.changeManager.getDocumentChangeCompletionLock(this.editor.document).then((()=>this.refreshDecorations()))}}refreshDecorations(){const{editor:e,viewport:t}=this,n=new Map,r=Math.max(0,t.topline),i=Math.min(e.document.lineCount-1,t.botline);this.getDecorations(r,i).forEach(((e,t)=>{n.has(t)||n.set(t,[]),n.get(t).push(...e)}));const o=new Set(n.keys());this.prevDecorators.forEach((e=>{o.has(e)||n.set(e,[])})),this.prevDecorators=o;for(const[t,r]of n)e.setDecorations(t,r)}getDecorations(e,t){const n=new Map;for(let r=e;r<=t;r++){const e=this.lineDecorationsCache.has(r)?this.lineDecorationsCache.get(r):this.getDecorationsForLine(r);this.lineDecorationsCache.set(r,e),e.forEach(((e,t)=>{const{decorator:r}=this.groupStore.getDecorator(t);r&&(n.has(r)||n.set(r,[]),n.get(r).push(...e))}))}return n}getDecorationsForLine(e){const t=this.editor,n=t.document.lineAt(e).text,r=t.options.tabSize,i=this.gridLineHandler.computeLineHighlights(e,n,r),o=this.gridLineHandler.lineHighlightsToRanges(e,i);return this.highlightRangesToOptions(o)}highlightRangesToOptions(t){const n=new Map,r=(e,...t)=>{n.has(e)||n.set(e,[]),n.get(e).push(...t)};return t.forEach((t=>{"normal"===t.textType&&0===t.hlId||"virtual"===t.textType&&t.highlights.every((e=>0===e.hlId))||("virtual"===t.textType?this.createColVirtTextOptions(t.line,t.col,t.highlights).forEach(((e,t)=>r(t,...e))):r(t.hlId,{range:new e.Range(t.line,t.startCol,t.line,t.endCol)}))})),n}createColVirtTextOptions(t,n,r){const i=this.editor.document.lineAt(t).text,o=new Map;r=(0,v.cloneDeep)(r);const s=[];r.forEach((({virtText:e,hlId:t,text:n})=>{null!=e||(e=n),0===t&&s.length>0?s[s.length-1].virtText+=e:s.push({hlId:t,virtText:e})}));const a=Math.min(i.length,n),u=new e.Range(t,a,t,a),c=new e.ThemeColor("editor.background");return s.forEach((({virtText:e,hlId:t},r)=>{const{decorator:s,options:a}=this.groupStore.getDecorator(t);s&&(o.has(t)||o.set(t,[]),n>i.length&&(r+=n-i.length),o.get(t).push({range:u,renderOptions:{before:Object.assign(Object.assign({backgroundColor:c},a),{contentText:e,margin:`0 0 0 ${r}ch`,width:`fit-content; position:absolute; z-index:${99-r}; white-space: pre; --hlId: ${t};`})}}))})),o}dispose(){const e=this.editor;e&&(this.prevDecorators.forEach((t=>e.setDecorations(t,[]))),this.prevDecorators.clear())}}function ne(t){return"string"==typeof t&&t.startsWith("theme.")&&(t=new e.ThemeColor(t.slice(6))),t}function re(e){const t=Object.assign({},e);return t.backgroundColor=ne(t.backgroundColor),t.borderColor=ne(t.borderColor),t.color=ne(t.color),t.outlineColor=ne(t.outlineColor),t.overviewRulerColor=ne(t.overviewRulerColor),t}class ie{constructor(){this.disposables=[],this.highlighIdToDecorator=new Map,this.decoratorConfigurations=new Map,this.visualHighlightIds=[];const e={};for(const[t,n]of Object.entries(a.$.highlights))e[t]=re(n);this.configuration={highlights:e}}createDecoratorForHighlightId(t,n){null!=n.borderColor&&null==n.border&&(n.border="1px solid");const r=e.window.createTextEditorDecorationType(Object.assign(Object.assign({},n),{rangeBehavior:e.DecorationRangeBehavior.ClosedClosed}));this.decoratorConfigurations.set(r,n),this.highlighIdToDecorator.set(t,r),this.disposables.push(r)}add(t,n,r){var i;delete n.altfont,r.includes("Visual")&&(1===r.length?this.visualHighlightId=t:this.visualHighlightIds.push(t));const o=r.reverse().find((e=>void 0!==this.configuration.highlights[e])),s=o&&this.configuration.highlights[o];if(!s||1!==r.length&&0!==Object.keys(n).length){if(this.highlighIdToDecorator.has(t)&&(null===(i=this.highlighIdToDecorator.get(t))||void 0===i||i.dispose()),Object.keys(n).length){const r=function(t){const n={};void 0!==t.background&&(n.backgroundColor="#"+t.background.toString(16).padStart(6,"0")),void 0!==t.foreground&&(n.color="#"+t.foreground.toString(16).padStart(6,"0"));const r=void 0!==t.special?"#"+t.special.toString(16).padStart(6,"0"):"";return void 0!==t.reverse&&(n.backgroundColor=new e.ThemeColor("editor.foreground"),n.color=new e.ThemeColor("editor.background")),void 0!==t.italic&&(n.fontStyle="italic"),void 0!==t.bold&&(n.fontWeight="bold"),void 0!==t.strikethrough&&(n.textDecoration="line-through solid"),void 0!==t.underline&&(n.textDecoration=`underline ${r} solid`),void 0!==t.undercurl&&(n.textDecoration=`underline ${r} wavy`),n}(n);this.createDecoratorForHighlightId(t,r)}}else this.highlighIdToDecorator.has(t)||this.createDecoratorForHighlightId(t,s)}getDecorator(e){const t=this.highlighIdToDecorator.get(e);return t?{decorator:t,options:this.decoratorConfigurations.get(t)}:{decorator:void 0,options:void 0}}normalizeHighlightId(e){return this.visualHighlightId&&this.visualHighlightIds.includes(e)?this.visualHighlightId:e}dispose(){(0,r.v3)(this.disposables)}}var oe=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};class se{constructor(e){this.main=e,this.disposables=[],this.redrawWaitGroup=new V.P,this.highlightGrids=new Map,this.groupStore=new ie,this.disposables.push(this.groupStore,c.on("redraw",this.handleRedraw,this),c.on("flush-redraw",this.handleRedrawFlush,this))}getGrid(e){return this.highlightGrids.has(e)||this.highlightGrids.set(e,new te(e,this.groupStore,this.main.bufferManager,this.main.viewportManager,this.main.changeManager)),this.highlightGrids.get(e)}handleRedraw(e){return oe(this,arguments,void 0,(function*({name:e,args:t}){this.redrawWaitGroup.add(),yield this.main.viewportManager.isSyncDone;try{switch(e){case"hl_attr_define":for(const[e,n,,r]of t)this.handleAttrDefine(e,n,r.map((e=>e.hi_name)));break;case"grid_line":for(const[e,n,r,i]of t)1!==e&&this.handleGridLine(e,n,r,i);break;case"grid_destroy":t.forEach((([e])=>this.handleGridDestroy(e)))}}finally{this.redrawWaitGroup.done()}}))}handleRedrawFlush(){return oe(this,void 0,void 0,(function*(){yield this.redrawWaitGroup.wait(),this.highlightGrids.forEach((e=>e.handleRedrawFlush()))}))}handleAttrDefine(e,t,n){this.groupStore.add(e,t,n)}handleGridLine(e,t,n,r){const i=this.main.viewportManager.getGridOffset(e),o=i.line+t,s=n+i.character,a=s<20?0:s-20;if(s<20){const e=20-s;r[0][2]>e?r[0][2]-=e:r.shift()}this.getGrid(e).handleGridLine(o,a,r)}handleGridDestroy(e){var t;null===(t=this.highlightGrids.get(e))||void 0===t||t.dispose(),this.highlightGrids.delete(e)}dispose(){(0,r.v3)(this.disposables)}}var ae=__webpack_require__(9023);const ue=(0,l.h)("MessagesManager");class ce{constructor(t){this.main=t,this.disposables=[],this.redrawing=Promise.resolve(),this.revealOutput=!1,this.displayHistory=!1,this.didChange=!1,this.messageBuffer=[],this.historyBuffer=[],this.channel=e.window.createOutputChannel(`${u.Gv} messages`);const n=c.on("redraw",(e=>{this.redrawing=this.redrawing.then((()=>this.handleRedraw(e)))})),r=c.on("flush-redraw",(()=>{this.redrawing=this.redrawing.then((()=>this.handleFlush()))}));this.disposables.push(n,r,this.channel)}dispose(){(0,r.v3)(this.disposables)}handleRedraw({name:e,args:t}){switch(e){case"msg_show":for(const[e,n,r]of t){if("return_prompt"===e)continue;const t=n.map((([e,t])=>t)).join("");r&&this.messageBuffer.pop(),this.messageBuffer.push(t)}break;case"msg_clear":this.messageBuffer=[];break;case"msg_history_show":for(const[e]of t)for(const[t,n]of e){const e=n.map((([e,t])=>t)).join("");0===t.length?this.historyBuffer.push(e):this.historyBuffer.push(`${t}: ${e}`)}this.displayHistory=!0,this.revealOutput=!0;break;case"msg_history_clear":this.historyBuffer=[];break;default:return}switch(e){case"msg_clear":case"msg_history_clear":break;default:this.didChange=!0}ue.trace(e,(0,ae.inspect)(t,{depth:5,compact:3}))}handleFlush(){return e=this,t=void 0,r=function*(){if(!this.didChange)return;const e=this.displayHistory?this.historyBuffer:this.messageBuffer;ue.trace(`Flushing ${this.displayHistory?"history":"message"} buffer: ${(0,ae.inspect)(e)}`);const t=e.join("\n"),n=t.split("\n").length,r=yield this.main.client.getOption("cmdheight"),i=this.revealOutput||n>r,{didChange:o,revealOutput:s,displayHistory:a}=this;ue.trace((0,ae.inspect)({didChange:o,revealOutput:s,displayHistory:a,lineCount:n})),this.writeMessage(this.ensureEOL(t)),i&&this.channel.show(!0),this.didChange=!1,this.displayHistory=!1,this.revealOutput=!1},new((n=void 0)||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}));var e,t,n,r}writeMessage(e){ue.info((0,ae.inspect)(e)),this.channel.clear(),this.channel.replace(e)}ensureEOL(e){return 0===e.length||"\n"===e[e.length-1]?e:e+"\n"}}const le=(0,l.h)("ModeManager");class he{constructor(e=""){this.shortname=e}get char(){return this.shortname.charAt(0).replace("","v")}get name(){switch(this.char.toLowerCase()){case"i":return"insert";case"v":return"visual";case"c":return"cmdline";case"r":return"replace";default:return"normal"}}get visual(){return"V"===this.char?"line":"v"===this.shortname.charAt(0)?"char":"block"}get isVisual(){return"visual"===this.name}get isInsert(){return"insert"===this.name}get isNormal(){return"normal"===this.name}get isCmdline(){return"cmdline"===this.name}}class de{constructor(){this.disposables=[],this.mode=new he("n"),this.isRecording=!1,this.eventEmitter=new e.EventEmitter,this.disposables.push(c.on("mode-changed",this.handleModeChanged,this),c.on("notify-recording",(()=>{le.debug("setting recording flag"),this.isRecording=!0,r.CJ.set("neovim.recording",!0)}),this))}get currentMode(){return this.mode}get isInsertMode(){return this.mode.isInsert}get isVisualMode(){return this.mode.isVisual}get isNormalMode(){return this.mode.isNormal}get isCmdlineMode(){return this.mode.isCmdline}get isRecordingInInsertMode(){return this.isRecording}onModeChange(e){return this.eventEmitter.event(e)}handleModeChanged([e]){le.debug(`Changing mode to ${e}`),this.mode=new he(e),!this.isInsertMode&&this.isRecording&&(this.isRecording=!1,r.CJ.set("neovim.recording",!1)),r.CJ.set("neovim.mode",this.mode.name),le.debug(`Setting mode context to ${this.mode.name}`),this.eventEmitter.fire(null)}dispose(){(0,r.v3)(this.disposables)}}var fe,pe;(pe=fe||(fe={}))[pe.StagedClear=0]="StagedClear",pe[pe.PerformedClear=1]="PerformedClear";class ge{constructor(e,t){this.debouncePending=!1,this.clearPending=!1,this.doClear=e,this.debouncedDoClear=(0,v.debounce)((()=>this.onDebounceReady()),t)}dispose(){this.debouncedDoClear.cancel()}onMessageEvent(){this.debouncedDoClear(),this.debouncePending=!0,this.clearPending=!1}onClearEvent(){return this.debouncePending?(this.clearPending=!0,fe.StagedClear):(this.doClear(),fe.PerformedClear)}onDebounceReady(){this.debouncePending=!1,this.clearPending&&this.doClear(),this.clearPending=!1}}const ve=(0,l.h)("StatusLineManager");var me,ye;(ye=me||(me={}))[ye.Mode=0]="Mode",ye[ye.Cmd=1]="Cmd",ye[ye.Msg=2]="Msg",ye[ye.StatusLine=3]="StatusLine";class be{get client(){return this.main.client}constructor(t){this.main=t,this.disposables=[],this._modeText="",this._cmdText="",this._msgText="",this._statusline="",this.statusBar=e.window.createStatusBarItem("vscode-neovim-status",e.StatusBarAlignment.Left,-10),this.statusBar.show(),this.messageDisplayTimer=new ge((()=>{ve.debug("Clearing statusline after timer expiry"),this.clearMessages()}),5e3),this.disposables.push(this.statusBar,this.messageDisplayTimer,c.on("redraw",this.handleRedraw,this),c.on("statusline",(([e])=>this.setStatus(e,me.StatusLine))))}setStatus(e,t){switch(t){case me.Mode:this._modeText=e;break;case me.Cmd:this._cmdText=e;break;case me.Msg:this._msgText=e;break;case me.StatusLine:this._statusline=e}this.updateStatus()}updateStatus(){this.statusBar.text=[this._statusline,this._modeText,this._cmdText,this._msgText].map((e=>e.replace(/\n/g," ").trim())).filter((e=>e.length)).join(a.$.statusLineSeparator)}handleRedraw({name:e,args:t}){switch(e){case"msg_showcmd":{const[e]=t[0],n=this.flattenMessageContent(e);this.setStatus(n,me.Cmd);break}case"msg_show":this.handleMsgShow({name:e,args:t});break;case"msg_showmode":{const[e]=t[t.length-1],n=this.flattenMessageContent(e);this.setStatus(n,me.Mode);break}case"msg_clear":this.handleMsgClear()}}dispose(){(0,r.v3)(this.disposables)}handleMsgShow({name:e,args:t}){if("msg_show"!==e)throw new Error("Expected a msg_show event");this.ensurePressEnterCleared({name:e,args:t}),this.messageDisplayTimer.onMessageEvent();const n=t.reduce(((e,[t,n,r])=>{if("return_prompt"===t)return e;const i=n.map((([e,t])=>t)).join("");return r?i:e+i}),"");this.setStatus(n,me.Msg)}handleMsgClear(){switch(this.messageDisplayTimer.onClearEvent()){case fe.PerformedClear:ve.debug("Clearing statusline after event");break;case fe.StagedClear:ve.debug("Skipping statusline clear as a message is currently pending")}}ensurePressEnterCleared({name:e,args:t}){if("msg_show"!==e)throw new Error("Expected a msg_show event");t.find((([e,t])=>"return_prompt"===e))&&this.client.input("<CR>")}clearMessages(){this.setStatus("",me.Msg)}flattenMessageContent(e){return e.map((([e,t])=>t)).join("")}}var we=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};const _e=(0,l.h)("TypingManager");class xe{get takeOverVSCodeInput(){return this._takeOverVSCodeInput}set takeOverVSCodeInput(t){var n,r;if(this._takeOverVSCodeInput=t,t)return this.typeHandler||(this.typeHandler=e.commands.registerTextEditorCommand("type",this.onVSCodeType)),void(this.replacePreviousCharHandler||(this.replacePreviousCharHandler=e.commands.registerCommand("replacePreviousChar",this.onReplacePreviousChar)));this.useCompositeKeys||(null===(n=this.typeHandler)||void 0===n||n.dispose(),this.typeHandler=void 0,null===(r=this.replacePreviousCharHandler)||void 0===r||r.dispose(),this.replacePreviousCharHandler=void 0)}get client(){return this.main.client}get isInsertMode(){return this.main.modeManager.isInsertMode}get isRecordingInInsertMode(){return this.main.modeManager.isRecordingInInsertMode}constructor(t){this.main=t,this.disposables=[],this.isExitingInsertMode=!1,this.isEnteringInsertMode=!1,this.pendingKeysAfterExit="",this.pendingKeysAfterEnter="",this.isInComposition=!1,this.composingText="",this._takeOverVSCodeInput=!1,this.vscodeDefaultType=t=>e.commands.executeCommand("default:type",{text:t}),this.onModeChange=()=>{if(this.main.modeManager.isInsertMode&&this.takeOverVSCodeInput&&!this.isRecordingInInsertMode){const t=e.window.activeTextEditor,n=t&&this.main.changeManager.getDocumentChangeCompletionLock(t.document);n?(_e.debug("Waiting for cursor completion operation before disposing type handler"),this.pendingKeysAfterEnter="",this.isEnteringInsertMode=!0,n.then((()=>we(this,void 0,void 0,(function*(){yield this.main.cursorManager.waitForCursorUpdate(t),this.isInsertMode&&(this.takeOverVSCodeInput=!1),this.pendingKeysAfterEnter&&(_e.debug(`Replaying pending keys after entering insert mode: ${this.pendingKeysAfterEnter}`),yield e.commands.executeCommand(this.isInsertMode?"default:type":"type",{text:this.pendingKeysAfterEnter}),this.pendingKeysAfterEnter=""),this.isEnteringInsertMode=!1}))))):this.takeOverVSCodeInput=!1}else this.isInsertMode||(this.isEnteringInsertMode=!1,this.isExitingInsertMode=!1,this.takeOverVSCodeInput=!0)},this.onVSCodeType=(e,t,n)=>we(this,[e,t,n],void 0,(function*(e,t,{text:n}){this.takeOverVSCodeInput?this.isEnteringInsertMode?this.pendingKeysAfterEnter+=n:this.isExitingInsertMode?this.pendingKeysAfterExit+=n:this.isInComposition?this.composingText+=n:this.isInsertMode&&!this.isRecordingInInsertMode?(yield this.client.mode).blocking?this.client.input((0,r.LH)(n,!this.isRecordingInInsertMode)):(this.takeOverVSCodeInput=!1,this.compositeInput(n)):this.client.input((0,r.LH)(n,!this.isRecordingInInsertMode)):this.isInsertMode&&!this.isInComposition?this.compositeInput(n):this.vscodeDefaultType(n)})),this.onSendCommand=t=>we(this,void 0,void 0,(function*(){if(_e.debug(`Send for: ${t}`),this.main.cursorManager.setWantInsertCursorUpdate(e.window.activeTextEditor,!0),this.isInsertMode&&!(yield this.client.mode).blocking){_e.debug(`Syncing buffers with neovim (${t})`),yield this.main.changeManager.documentChangeLock.waitForUnlock(),e.window.activeTextEditor&&(yield this.main.cursorManager.updateNeovimCursorPosition(e.window.activeTextEditor,e.window.activeTextEditor.selection.active,!1)),yield this.main.changeManager.syncDotRepeatWithNeovim();const n=(0,r.LH)(this.pendingKeysAfterExit);_e.debug(`Pending keys sent with ${t}: ${n}`),this.pendingKeysAfterExit="",yield this.client.input(`${t}${n}`)}else this.isExitingInsertMode=!1,yield this.client.input(`${t}`)})),this.onSendBlockingCommand=e=>we(this,void 0,void 0,(function*(){this.takeOverVSCodeInput=!0,yield this.onSendCommand(e)})),this.onEscapeKeyCommand=(...e)=>we(this,[...e],void 0,(function*(e="<Esc>"){this.isExitingInsertMode=!0,yield this.onSendBlockingCommand(e)})),this.onReplacePreviousChar=t=>{this.takeOverVSCodeInput?this.isInComposition&&(this.composingText=this.composingText.substring(0,this.composingText.length-t.replaceCharCnt)+t.text):e.commands.executeCommand("default:replacePreviousChar",t)},this.onCompositionStart=()=>{this.isInComposition=!0},this.onCompositionEnd=()=>{this.isInComposition=!1,this.isInsertMode||this.client.input((0,r.LH)(this.composingText,!this.isRecordingInInsertMode)),this.composingText=""};const n=()=>{e.window.showWarningMessage('The command "compositeEscape1" and "compositeEscape2" are deprecated. ',"Read More").then((t=>t&&e.commands.executeCommand("vscode.open","https://github.com/vscode-neovim/vscode-neovim/tree/master#composite-escape-keys")))};this.disposables.push(e.commands.registerCommand("vscode-neovim.compositeEscape1",n),e.commands.registerCommand("vscode-neovim.compositeEscape2",n)),this.prepareCompositeKeys(),e.workspace.onDidChangeConfiguration(this.prepareCompositeKeys,this,this.disposables);const i=t=>n=>{if(n)return t.apply(this,[n]);{const t="command:workbench.action.openGlobalKeybindings?"+encodeURIComponent('["vscode-neovim.send"]');return e.window.showErrorMessage(`No args provided to vscode-neovim.send. Please check your [keybinds](${t}) to ensure that all send commands include the args parameter.`),Promise.resolve()}};this.takeOverVSCodeInput=!0;const o=(t,n)=>{this.disposables.push(e.commands.registerCommand(t,n,this))};o("vscode-neovim.send",i(this.onSendCommand)),o("vscode-neovim.send-blocking",i(this.onSendBlockingCommand)),o("vscode-neovim.escape",this.onEscapeKeyCommand),o("compositionStart",this.onCompositionStart),o("compositionEnd",this.onCompositionEnd),this.main.modeManager.onModeChange(this.onModeChange)}prepareCompositeKeys(){this.compositeKeys=a.$.compositeKeys,this.compositeFirstKeys=[],this.compositeSecondKeysForFirstKey=new Map,Object.keys(this.compositeKeys).forEach((t=>{if(!/^[ -~]{2}$/.test(t))return void e.window.showErrorMessage(`Invalid composite key: ${t}. Composite key must be exactly 2 ASCII characters long.`);const[n,r]=t.split("");this.compositeFirstKeys.push(n);const i=this.compositeSecondKeysForFirstKey.get(n)||[];i.push(r),this.compositeSecondKeysForFirstKey.set(n,i)})),this.useCompositeKeys=this.compositeFirstKeys.length>0}compositeInput(t){if(!this.compositeMatchedFirstKey)return void(this.compositeFirstKeys.includes(t)?(this.compositeMatchedFirstKey=t,this.compositeTimer=setTimeout((()=>{this.compositeTimer=void 0,this.compositeMatchedFirstKey=void 0,this.vscodeDefaultType(t)}),a.$.compositeTimeout)):this.vscodeDefaultType(t));const n=this.compositeSecondKeysForFirstKey.get(this.compositeMatchedFirstKey);if(null==n?void 0:n.includes(t)){clearTimeout(this.compositeTimer),this.compositeTimer=void 0;const n=this.compositeMatchedFirstKey;this.compositeMatchedFirstKey=void 0;const{command:r,args:i}=this.compositeKeys[n+t];e.commands.executeCommand(r,...i||[])}else{if(this.compositeTimer){clearTimeout(this.compositeTimer),this.compositeTimer=void 0;const e=this.compositeMatchedFirstKey;return this.compositeMatchedFirstKey=void 0,void this.vscodeDefaultType(e+t)}this.vscodeDefaultType(t)}}dispose(){var e,t;null===(e=this.typeHandler)||void 0===e||e.dispose(),null===(t=this.replacePreviousCharHandler)||void 0===t||t.dispose(),(0,r.v3)(this.disposables)}}class Ee{constructor(){this.line=0,this.col=0,this.topline=0,this.botline=0,this.leftcol=0,this.skipcol=0}}class Se{get isSyncDone(){var e;return Promise.resolve(null===(e=this.viewportChangedPromise)||void 0===e?void 0:e.promise)}constructor(t){this.main=t,this.disposables=[],this.gridViewport=new Map,this.cursorChanged=new e.EventEmitter,this.onCursorChanged=this.cursorChanged.event,this.debounceTime=20,this.onDidChangeVisibleRange=t=>{this.debouncedScrollNeovim||(this.refreshDebounceTime(),this.refreshDebounceScroll(),e.workspace.onDidChangeConfiguration((e=>e.affectsConfiguration("editor")&&this.refreshDebounceTime()&&this.refreshDebounceScroll()),null,this.disposables)),this.debouncedScrollNeovim(t.textEditor)},this.disposables.push(this.cursorChanged,e.window.onDidChangeTextEditorVisibleRanges(this.onDidChangeVisibleRange),c.on("redraw",this.handleRedraw,this),c.on("viewport-changed",(([e])=>this.handleViewportChanged(e))))}handleViewportChanged({winid:e,leftcol:t,skipcol:n,lnum:i,col:o,topline:s}){var a;null===(a=this.viewportChangedPromise)||void 0===a||a.resolve(),this.viewportChangedPromise=void 0;const u=this.main.bufferManager.getGridIdForWinId(e);if(!u)return;this.viewportChangedPromise=new r.ie;const c=this.getViewport(u),{line:l,col:h}=c;c.line=i,c.col=o,c.topline=s,c.leftcol=t,c.skipcol=n,l===c.line&&h===c.col||this.cursorChanged.fire(u),this.viewportChangedPromise.resolve(),this.viewportChangedPromise=void 0}getViewport(e){return this.gridViewport.has(e)||this.gridViewport.set(e,new Ee),this.gridViewport.get(e)}getCursorFromViewport(t){const n=this.getViewport(t);return new e.Position(n.line,n.col)}getGridOffset(t){const n=this.getViewport(t);return new e.Position(n.topline,n.leftcol)}handleRedraw({name:e,args:t}){switch(e){case"win_viewport":for(const[e,,n,r,i,o]of t){const t=this.getViewport(e),{line:s,col:a}=t;t.topline=n,t.botline=r,t.line=i,t.col=o,s===i&&a===o||this.cursorChanged.fire(e)}break;case"grid_destroy":for(const[e]of t)this.gridViewport.delete(e)}}refreshDebounceTime(){const t=e.workspace.getConfiguration("editor").get("smoothScrolling",!1)?100:20,n=this.debounceTime!==t;return this.debounceTime=t,n}refreshDebounceScroll(){this.debouncedScrollNeovim=(0,v.debounce)(this.scrollNeovim.bind(this),this.debounceTime,{leading:!1,trailing:!0})}scrollNeovim(e){if(null==e||this.main.modeManager.isInsertMode)return;const t=e.visibleRanges;if(!t||0===t.length||t[0].end.line-t[0].start.line<=1)return;const n=t[0].start.line-a.$.neovimViewportHeightExtend,r=t[t.length-1].end.line+t.length+a.$.neovimViewportHeightExtend,i=e.selection.active.line,o=this.main.bufferManager.getGridIdFromEditor(e);if(null==o)return;const u=this.gridViewport.get(o);u&&n!==(null==u?void 0:u.topline)&&i===(null==u?void 0:u.line)&&s.lua("scroll_viewport",Math.max(n,0),r)}dispose(){(0,r.v3)(this.disposables)}}var Ce=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};const Me=(0,l.h)("MainController");class Te{constructor(e){this.extContext=e,this.disposables=[],this.currentRedrawBatch=[],this.onNeovimNotification=(e,t)=>Ce(this,void 0,void 0,(function*(){switch(e){case"vscode-action":{const e=t[0];let n=t[1];Array.isArray(n)&&(n={});const r=n.callback;if(r)this.client.handleRequest("vscode-action",t,{send:(e,t)=>{this.client.executeLua('require"vscode.api".invoke_callback(...)',[r,e,!!t])}});else try{yield this.runAction(e,n)}catch(e){const t=e instanceof Error?e.message:e;Me.error("Error on notification: ",t)}break}case"vscode-neovim":{const[e,n]=t;c.fire(e,n);break}case"redraw":{const e=t;(0,r.KV)("flush",t)?([...this.currentRedrawBatch.splice(0),...e].forEach((e=>{const t={name:e[0],args:e.slice(1)};c.fire("redraw",t)})),c.fire("flush-redraw",[])):this.currentRedrawBatch.push(...e)}}})),this.onNeovimRequest=(e,t,n)=>Ce(this,void 0,void 0,(function*(){switch(e){case"vscode-action":{const e=t[0];let r=t[1];Array.isArray(r)&&(r={});try{const t=yield this.runAction(e,r);n.send(t)}catch(e){const t=e instanceof Error?e.message:e;n.send(t,!0),Me.error("Request error: ",t)}break}}}))}init(){return Ce(this,void 0,void 0,(function*(){const[n,i]=this.buildSpawnArgs();Me.info(`Starting nvim: ${n} ${i.join(" ")}`),this.nvimProc=(0,h.spawn)(n,i),this.disposables.push(new e.Disposable((()=>{this.nvimProc.removeAllListeners(),this.nvimProc.kill()})));const o=new Promise(((e,t)=>{this.nvimProc.once("spawn",(()=>e())),this.nvimProc.once("close",((e,n)=>t(`Neovim exited: ${e} ${n}`))),this.nvimProc.once("error",(e=>t(`Neovim spawn error: ${e.message}`)))}));yield o,this.nvimProc.removeAllListeners(),this.nvimProc.on("close",((e,t)=>this._stop(`Neovim exited: ${e} ${t}`))),this.nvimProc.on("error",(e=>this._stop(`Neovim spawn error: ${e.message}`))),Me.debug("Attaching to neovim"),this.client=(0,p.K0)({proc:this.nvimProc,options:{logger:(0,g.createLogger)({transports:[new g.transports.Console],level:"error",exitOnError:!1})}}),this.disposables.push(new e.Disposable((()=>{this.client.removeAllListeners(),this.client.quit()}))),this.client.on("disconnect",(()=>this._stop("Neovim was disconnected"))),this.client.on("notification",this.onNeovimNotification),this.client.on("request",this.onNeovimRequest),this.setClientInfo(),yield this.setCurrentDir(),yield this.client.setVar("vscode_channel",yield this.client.channelId),yield this.client.setVar("vscode_nvim_min_version",u.D4),Object.defineProperty(s,"client",{get:()=>this.client,configurable:!0}),this.disposables.push(t().commands.registerCommand("_getNeovimClient",(()=>this.client)),t().commands.registerCommand("vscode-neovim.lua",(t=>Ce(this,void 0,void 0,(function*(){const n="string"==typeof t?t:t.join("\n");if(n.length)try{yield this.client.lua(n)}catch(e){Me.error(e instanceof Error?e.message:e)}else e.window.showWarningMessage("No lua code provided")})))),this.modeManager=new de,this.typingManager=new xe(this),this.bufferManager=new E(this),this.viewportManager=new Se(this),this.cursorManager=new $(this),this.commandsController=new P(this),this.highlightManager=new se(this),this.changeManager=new W(this),this.commandLineManager=new L(this),this.statusLineManager=new be(this),this.messagesManager=new ce(this)),Me.debug("UIAttach"),yield this.client.uiAttach(a.$.neovimViewportWidth,100,{rgb:!0,ext_cmdline:!0,ext_linegrid:!0,ext_hlstate:!0,ext_messages:!0,ext_multigrid:!0,ext_popupmenu:!0,ext_tabline:!0}),yield this.bufferManager.forceSyncLayout(),yield r.CJ.set("neovim.init",!0),yield this.logNvimInfo(),yield this.validateNvimRuntime(),Me.debug("Init completed")}))}_stop(e){t().commands.executeCommand("vscode-neovim.stop"),t().window.showErrorMessage(e,"Restart").then((e=>{"Restart"===e&&t().commands.executeCommand("vscode-neovim.restart")}))}buildSpawnArgs(){let e=this.extContext.extensionPath.replace(/\\/g,"\\\\");a.$.useWsl&&(e=(0,r.i9)(e));const t=f().posix.join(e,"runtime","vscode-neovim.vim"),n=[];a.$.useWsl&&(n.push("C:\\Windows\\system32\\wsl.exe"),a.$.wslDistribution.length&&n.push("-d",a.$.wslDistribution));let i=a.$.neovimPath;if("nvim"===i&&!a.$.useWsl){const e=(0,p.Kg)({minVersion:u.D4});Me.debug("Find nvim result: ",e);const t=e.matches.find((e=>!e.error));if(!t)throw new Error("Unable to find a suitable neovim executable. Please check your neovim installation.");i=t.path}return n.push(i,"-N","--embed","--cmd",`source ${t}`),1===parseInt(process.env.NEOVIM_DEBUG||"",10)&&n.push("-u","NONE","--listen",`${process.env.NEOVIM_DEBUG_HOST||"127.0.0.1"}:${process.env.NEOVIM_DEBUG_PORT||4e3}`),a.$.clean&&n.push("--clean"),!a.$.clean&&a.$.neovimInitPath&&n.push("-u",a.$.neovimInitPath),a.$.NVIM_APPNAME&&(process.env.NVIM_APPNAME=a.$.NVIM_APPNAME,a.$.useWsl&&(process.env.WSLENV="NVIM_APPNAME/u")),[n[0],n.slice(1)]}runAction(n,r){return Ce(this,void 0,void 0,(function*(){const i=t().window.activeTextEditor;if(i&&(yield this.cursorManager.waitForCursorUpdate(i)),i&&r.range){const o=i.document,a=i.selections,u=r.range;let c;if(Array.isArray(u))if(2===u.length){const t=Math.max(0,u[0]),n=Math.min(i.document.lineCount-1,u[1]);c=new e.Range(o.lineAt(t).range.start,o.lineAt(n).range.end)}else c=new e.Range(...u);else c=new e.Range(u.start.line,u.start.character,u.end.line,u.end.character);c=o.validateRange(c),i.selections=[new(t().Selection)(c.start,c.end)];const l=yield s.run(n,...r.args||[]);return!1!==r.restore_selection&&(i.selections=a),l}return s.run(n,...r.args||[])}))}setClientInfo(){const e=this.extContext.extension.packageJSON.version,[t,n,r]=[...e.split(".").map((e=>+e)),0,0,0];Me.debug(`Setting client info: vscode-neovim ${t}.${n}.${r}`),this.client.setClientInfo("vscode-neovim",{major:t,minor:n,patch:r},"embedder",{},{})}setCurrentDir(){return Ce(this,void 0,void 0,(function*(){var n,i;let o;const s=null===(i=null===(n=t().workspace.workspaceFolders)||void 0===n?void 0:n[0])||void 0===i?void 0:i.uri.fsPath;if(!s)return o;if(t().env.remoteName?this.extContext.extension.extensionKind===e.ExtensionKind.Workspace&&(o=s):o=a.$.useWsl?(0,r.i9)(s):s,o){Me.debug(`Setting current dir to: ${o}`);try{yield this.client.request("nvim_set_current_dir",[o])}catch(e){Me.error(`Failed to set current dir: ${e}`)}}}))}logNvimInfo(){return Ce(this,void 0,void 0,(function*(){const e=yield this.client.executeLua("\n local rv = {\n configDir = vim.fn.stdpath('config'),\n configFile = vim.env.MYVIMRC,\n logFile = vim.env.NVIM_LOG_FILE,\n nvimVersion = vim.fn.api_info().version,\n }\n return rv\n ",[]);Me.info("Nvim info:",e)}))}validateNvimRuntime(){return Ce(this,void 0,void 0,(function*(){const e=yield this.client.executeLua("\n local rt = vim.env.VIMRUNTIME\n return { vim.fs.dir(rt)() ~= nil, rt }\n ",[]),[t,n]=e;t||Me.error(`Cannot read $VIMRUNTIME directory "${n}". Ensure that VSCode has access to that directory. Also try :checkhealth.`)}))}dispose(){(0,r.v3)(this.disposables)}}var ke=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};const Oe=(0,l.h)(u.sp),Le=[];function Pe(t){return ke(this,arguments,void 0,(function*(t,n=!1){n||(Le.push(e.commands.registerCommand("vscode-neovim.restart",(()=>ke(this,void 0,void 0,(function*(){Ie(!0),(0,r.v3)(t.subscriptions),yield Pe(t,!0)})))),e.commands.registerCommand("vscode-neovim.stop",(()=>{Ie(!0),(0,r.v3)(t.subscriptions)}))),function(){const t=e.workspace.getConfiguration("extensions"),n=t.inspect("experimental.affinity"),r=null==n?void 0:n.workspaceValue;if(r&&u.sp in r)return void Oe.debug(`Extension affinity value ${r[u.sp]} found in Workspace settings`);const i=null==n?void 0:n.globalValue;if(i&&u.sp in i)return void Oe.debug(`Extension affinity value ${i[u.sp]} found in User settings`);Oe.debug("Extension affinity value not set in User and Workspace settings");e.window.showWarningMessage("No affinity assigned to vscode-neovim. It is recommended to assign affinity for major performance improvements. Would you like to set default affinity? [Learn more](https://github.com/vscode-neovim/vscode-neovim/issues/1051)","Yes","Cancel").then((n=>{"Yes"===n&&((e=>{Oe.debug(`Setting extension affinity value to ${e} in User settings`),t.update("experimental.affinity",Object.assign(Object.assign({},i),{[u.sp]:e}),!0).then((()=>{Oe.debug(`Successfull set extension affinity value to ${e} in User settings`)}),(e=>{Oe.error(`Error while setting experimental affinity. ${e}`)}))})(1),e.window.showInformationMessage("Requires restart of extension host for changes to take effect. This restarts all extensions.","Restart").then((t=>{"Restart"===t&&e.commands.executeCommand("workbench.action.restartExtensionHost")})))}))}()),a.$.init(),l.vF.init(a.$.logPath,a.$.outputToConsole),c.init(),s.init(),t.subscriptions.push(a.$,l.vF,c,s,new e.Disposable((()=>r.CJ.reset())));try{const e=new Te(t);t.subscriptions.push(e),yield e.init()}catch(t){e.window.showErrorMessage(`[Failed to start nvim] ${t instanceof Error?t.message:t}`,"Restart").then((t=>{"Restart"===t&&e.commands.executeCommand("vscode-neovim.restart")}))}}))}function Ie(e=!1){e||(0,r.v3)(Le)}})(),module.exports=__webpack_exports__})();
|
||
//# sourceMappingURL=extension.js.map
|