1
0
Fork 0
mirror of synced 2024-12-25 08:13:20 -05:00
ultimate-vim/sources_non_forked/coc.nvim/build/index.js
2022-05-19 01:29:28 +08:00

326 lines
1.5 MiB
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"use strict";(function () {
var v = process.version
var parts = v.slice(1).split('.')
var major = parseInt(parts[0], 10)
var minor = parseInt(parts[1], 10)
if (major < 12 || (major == 12 && minor < 12)) {
throw new Error('coc.nvim requires node >= v12.12.0, current version: ' + v)
}
})();
var Dte=Object.create;var Nh=Object.defineProperty,Ete=Object.defineProperties,_te=Object.getOwnPropertyDescriptor,Pte=Object.getOwnPropertyDescriptors,Rte=Object.getOwnPropertyNames,tR=Object.getOwnPropertySymbols,Lte=Object.getPrototypeOf,nR=Object.prototype.hasOwnProperty,Ite=Object.prototype.propertyIsEnumerable;var iR=(n,e,t)=>e in n?Nh(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,me=(n,e)=>{for(var t in e||(e={}))nR.call(e,t)&&iR(n,t,e[t]);if(tR)for(var t of tR(e))Ite.call(e,t)&&iR(n,t,e[t]);return n},Hh=(n,e)=>Ete(n,Pte(e)),rR=n=>Nh(n,"__esModule",{value:!0});var P=(n,e)=>()=>(n&&(e=n(n=0)),e);var m=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports),vs=(n,e)=>{for(var t in e)Nh(n,t,{get:e[t],enumerable:!0})},oR=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of Rte(e))!nR.call(n,r)&&(t||r!=="default")&&Nh(n,r,{get:()=>e[r],enumerable:!(i=_te(e,r))||i.enumerable});return n},S=(n,e)=>oR(rR(Nh(n!=null?Dte(Lte(n)):{},"default",!e&&n&&n.__esModule?{get:()=>n.default,enumerable:!0}:{value:n,enumerable:!0})),n),Fa=(n=>(e,t)=>n&&n.get(e)||(t=oR(rR({}),e,1),n&&n.set(e,t),t))(typeof WeakMap!="undefined"?new WeakMap:0);var aR=m((mDe,sR)=>{var lu=1e3,uu=lu*60,cu=uu*60,Oa=cu*24,jte=Oa*7,Fte=Oa*365.25;sR.exports=function(n,e){e=e||{};var t=typeof n;if(t==="string"&&n.length>0)return Ote(n);if(t==="number"&&isFinite(n))return e.long?Ate(n):Mte(n);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(n))};function Ote(n){if(n=String(n),!(n.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(n);if(!!e){var t=parseFloat(e[1]),i=(e[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return t*Fte;case"weeks":case"week":case"w":return t*jte;case"days":case"day":case"d":return t*Oa;case"hours":case"hour":case"hrs":case"hr":case"h":return t*cu;case"minutes":case"minute":case"mins":case"min":case"m":return t*uu;case"seconds":case"second":case"secs":case"sec":case"s":return t*lu;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}function Mte(n){var e=Math.abs(n);return e>=Oa?Math.round(n/Oa)+"d":e>=cu?Math.round(n/cu)+"h":e>=uu?Math.round(n/uu)+"m":e>=lu?Math.round(n/lu)+"s":n+"ms"}function Ate(n){var e=Math.abs(n);return e>=Oa?lp(n,e,Oa,"day"):e>=cu?lp(n,e,cu,"hour"):e>=uu?lp(n,e,uu,"minute"):e>=lu?lp(n,e,lu,"second"):n+" ms"}function lp(n,e,t,i){var r=e>=t*1.5;return Math.round(n/t)+" "+i+(r?"s":"")}});var gC=m((bDe,lR)=>{function Nte(n){t.debug=t,t.default=t,t.coerce=l,t.disable=o,t.enable=r,t.enabled=s,t.humanize=aR(),t.destroy=u,Object.keys(n).forEach(c=>{t[c]=n[c]}),t.names=[],t.skips=[],t.formatters={};function e(c){let h=0;for(let d=0;d<c.length;d++)h=(h<<5)-h+c.charCodeAt(d),h|=0;return t.colors[Math.abs(h)%t.colors.length]}t.selectColor=e;function t(c){let h,d=null,g,f;function p(...b){if(!p.enabled)return;let y=p,w=Number(new Date),x=w-(h||w);y.diff=x,y.prev=h,y.curr=w,h=w,b[0]=t.coerce(b[0]),typeof b[0]!="string"&&b.unshift("%O");let k=0;b[0]=b[0].replace(/%([a-zA-Z%])/g,(j,O)=>{if(j==="%%")return"%";k++;let W=t.formatters[O];if(typeof W=="function"){let H=b[k];j=W.call(y,H),b.splice(k,1),k--}return j}),t.formatArgs.call(y,b),(y.log||t.log).apply(y,b)}return p.namespace=c,p.useColors=t.useColors(),p.color=t.selectColor(c),p.extend=i,p.destroy=t.destroy,Object.defineProperty(p,"enabled",{enumerable:!0,configurable:!1,get:()=>d!==null?d:(g!==t.namespaces&&(g=t.namespaces,f=t.enabled(c)),f),set:b=>{d=b}}),typeof t.init=="function"&&t.init(p),p}function i(c,h){let d=t(this.namespace+(typeof h>"u"?":":h)+c);return d.log=this.log,d}function r(c){t.save(c),t.namespaces=c,t.names=[],t.skips=[];let h,d=(typeof c=="string"?c:"").split(/[\s,]+/),g=d.length;for(h=0;h<g;h++)!d[h]||(c=d[h].replace(/\*/g,".*?"),c[0]==="-"?t.skips.push(new RegExp("^"+c.slice(1)+"$")):t.names.push(new RegExp("^"+c+"$")))}function o(){let c=[...t.names.map(a),...t.skips.map(a).map(h=>"-"+h)].join(",");return t.enable(""),c}function s(c){if(c[c.length-1]==="*")return!0;let h,d;for(h=0,d=t.skips.length;h<d;h++)if(t.skips[h].test(c))return!1;for(h=0,d=t.names.length;h<d;h++)if(t.names[h].test(c))return!0;return!1}function a(c){return c.toString().substring(2,c.toString().length-2).replace(/\.\*\?$/,"*")}function l(c){return c instanceof Error?c.stack||c.message:c}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return t.enable(t.load()),t}lR.exports=Nte});var uR=m((En,up)=>{En.formatArgs=qte;En.save=Bte;En.load=Yte;En.useColors=Hte;En.storage=Wte();En.destroy=(()=>{let n=!1;return()=>{n||(n=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();En.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function Hte(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function qte(n){if(n[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+n[0]+(this.useColors?"%c ":" ")+"+"+up.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;n.splice(1,0,e,"color: inherit");let t=0,i=0;n[0].replace(/%[a-zA-Z%]/g,r=>{r!=="%%"&&(t++,r==="%c"&&(i=t))}),n.splice(i,0,e)}En.log=console.debug||console.log||(()=>{});function Bte(n){try{n?En.storage.setItem("debug",n):En.storage.removeItem("debug")}catch{}}function Yte(){let n;try{n=En.storage.getItem("debug")}catch{}return!n&&typeof process<"u"&&"env"in process&&(n=process.env.DEBUG),n}function Wte(){try{return localStorage}catch{}}up.exports=gC()(En);var{formatters:Zte}=up.exports;Zte.j=function(n){try{return JSON.stringify(n)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var hR=m((yDe,cR)=>{"use strict";cR.exports=(n,e=process.argv)=>{let t=n.startsWith("-")?"":n.length===1?"-":"--",i=e.indexOf(t+n),r=e.indexOf("--");return i!==-1&&(r===-1||i<r)}});var fR=m((vDe,gR)=>{"use strict";var Jte=require("os"),dR=require("tty"),Yn=hR(),{env:ni}=process,ws;Yn("no-color")||Yn("no-colors")||Yn("color=false")||Yn("color=never")?ws=0:(Yn("color")||Yn("colors")||Yn("color=true")||Yn("color=always"))&&(ws=1);"FORCE_COLOR"in ni&&(ni.FORCE_COLOR==="true"?ws=1:ni.FORCE_COLOR==="false"?ws=0:ws=ni.FORCE_COLOR.length===0?1:Math.min(parseInt(ni.FORCE_COLOR,10),3));function fC(n){return n===0?!1:{level:n,hasBasic:!0,has256:n>=2,has16m:n>=3}}function pC(n,e){if(ws===0)return 0;if(Yn("color=16m")||Yn("color=full")||Yn("color=truecolor"))return 3;if(Yn("color=256"))return 2;if(n&&!e&&ws===void 0)return 0;let t=ws||0;if(ni.TERM==="dumb")return t;if(process.platform==="win32"){let i=Jte.release().split(".");return Number(i[0])>=10&&Number(i[2])>=10586?Number(i[2])>=14931?3:2:1}if("CI"in ni)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(i=>i in ni)||ni.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in ni)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ni.TEAMCITY_VERSION)?1:0;if(ni.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in ni){let i=parseInt((ni.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ni.TERM_PROGRAM){case"iTerm.app":return i>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ni.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ni.TERM)||"COLORTERM"in ni?1:t}function $te(n){let e=pC(n,n&&n.isTTY);return fC(e)}gR.exports={supportsColor:$te,stdout:fC(pC(!0,dR.isatty(1))),stderr:fC(pC(!0,dR.isatty(2)))}});var mR=m((gi,hp)=>{var Xte=require("tty"),cp=require("util");gi.init=eie;gi.log=zte;gi.formatArgs=Gte;gi.save=Qte;gi.load=Vte;gi.useColors=Ute;gi.destroy=cp.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");gi.colors=[6,2,3,4,5,1];try{let n=fR();n&&(n.stderr||n).level>=2&&(gi.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}gi.inspectOpts=Object.keys(process.env).filter(n=>/^debug_/i.test(n)).reduce((n,e)=>{let t=e.substring(6).toLowerCase().replace(/_([a-z])/g,(r,o)=>o.toUpperCase()),i=process.env[e];return/^(yes|on|true|enabled)$/i.test(i)?i=!0:/^(no|off|false|disabled)$/i.test(i)?i=!1:i==="null"?i=null:i=Number(i),n[t]=i,n},{});function Ute(){return"colors"in gi.inspectOpts?Boolean(gi.inspectOpts.colors):Xte.isatty(process.stderr.fd)}function Gte(n){let{namespace:e,useColors:t}=this;if(t){let i=this.color,r="\x1B[3"+(i<8?i:"8;5;"+i),o=` ${r};1m${e} \x1B[0m`;n[0]=o+n[0].split(`
`).join(`
`+o),n.push(r+"m+"+hp.exports.humanize(this.diff)+"\x1B[0m")}else n[0]=Kte()+e+" "+n[0]}function Kte(){return gi.inspectOpts.hideDate?"":new Date().toISOString()+" "}function zte(...n){return process.stderr.write(cp.format(...n)+`
`)}function Qte(n){n?process.env.DEBUG=n:delete process.env.DEBUG}function Vte(){return process.env.DEBUG}function eie(n){n.inspectOpts={};let e=Object.keys(gi.inspectOpts);for(let t=0;t<e.length;t++)n.inspectOpts[e[t]]=gi.inspectOpts[e[t]]}hp.exports=gC()(gi);var{formatters:pR}=hp.exports;pR.o=function(n){return this.inspectOpts.colors=this.useColors,cp.inspect(n,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};pR.O=function(n){return this.inspectOpts.colors=this.useColors,cp.inspect(n,this.inspectOpts)}});var jt=m((wDe,mC)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?mC.exports=uR():mC.exports=mR()});var yR=m((xDe,bR)=>{"use strict";bR.exports=tie;function hu(n){return n instanceof Buffer?Buffer.from(n):new n.constructor(n.buffer.slice(),n.byteOffset,n.length)}function tie(n){if(n=n||{},n.circles)return iie(n);return n.proto?i:t;function e(r,o){for(var s=Object.keys(r),a=new Array(s.length),l=0;l<s.length;l++){var u=s[l],c=r[u];typeof c!="object"||c===null?a[u]=c:c instanceof Date?a[u]=new Date(c):ArrayBuffer.isView(c)?a[u]=hu(c):a[u]=o(c)}return a}function t(r){if(typeof r!="object"||r===null)return r;if(r instanceof Date)return new Date(r);if(Array.isArray(r))return e(r,t);if(r instanceof Map)return new Map(e(Array.from(r),t));if(r instanceof Set)return new Set(e(Array.from(r),t));var o={};for(var s in r)if(Object.hasOwnProperty.call(r,s)!==!1){var a=r[s];typeof a!="object"||a===null?o[s]=a:a instanceof Date?o[s]=new Date(a):a instanceof Map?o[s]=new Map(e(Array.from(a),t)):a instanceof Set?o[s]=new Set(e(Array.from(a),t)):ArrayBuffer.isView(a)?o[s]=hu(a):o[s]=t(a)}return o}function i(r){if(typeof r!="object"||r===null)return r;if(r instanceof Date)return new Date(r);if(Array.isArray(r))return e(r,i);if(r instanceof Map)return new Map(e(Array.from(r),i));if(r instanceof Set)return new Set(e(Array.from(r),i));var o={};for(var s in r){var a=r[s];typeof a!="object"||a===null?o[s]=a:a instanceof Date?o[s]=new Date(a):a instanceof Map?o[s]=new Map(e(Array.from(a),i)):a instanceof Set?o[s]=new Set(e(Array.from(a),i)):ArrayBuffer.isView(a)?o[s]=hu(a):o[s]=i(a)}return o}}function iie(n){var e=[],t=[];return n.proto?o:r;function i(s,a){for(var l=Object.keys(s),u=new Array(l.length),c=0;c<l.length;c++){var h=l[c],d=s[h];if(typeof d!="object"||d===null)u[h]=d;else if(d instanceof Date)u[h]=new Date(d);else if(ArrayBuffer.isView(d))u[h]=hu(d);else{var g=e.indexOf(d);g!==-1?u[h]=t[g]:u[h]=a(d)}}return u}function r(s){if(typeof s!="object"||s===null)return s;if(s instanceof Date)return new Date(s);if(Array.isArray(s))return i(s,r);if(s instanceof Map)return new Map(i(Array.from(s),r));if(s instanceof Set)return new Set(i(Array.from(s),r));var a={};e.push(s),t.push(a);for(var l in s)if(Object.hasOwnProperty.call(s,l)!==!1){var u=s[l];if(typeof u!="object"||u===null)a[l]=u;else if(u instanceof Date)a[l]=new Date(u);else if(u instanceof Map)a[l]=new Map(i(Array.from(u),r));else if(u instanceof Set)a[l]=new Set(i(Array.from(u),r));else if(ArrayBuffer.isView(u))a[l]=hu(u);else{var c=e.indexOf(u);c!==-1?a[l]=t[c]:a[l]=r(u)}}return e.pop(),t.pop(),a}function o(s){if(typeof s!="object"||s===null)return s;if(s instanceof Date)return new Date(s);if(Array.isArray(s))return i(s,o);if(s instanceof Map)return new Map(i(Array.from(s),o));if(s instanceof Set)return new Set(i(Array.from(s),o));var a={};e.push(s),t.push(a);for(var l in s){var u=s[l];if(typeof u!="object"||u===null)a[l]=u;else if(u instanceof Date)a[l]=new Date(u);else if(u instanceof Map)a[l]=new Map(i(Array.from(u),o));else if(u instanceof Set)a[l]=new Set(i(Array.from(u),o));else if(ArrayBuffer.isView(u))a[l]=hu(u);else{var c=e.indexOf(u);c!==-1?a[l]=t[c]:a[l]=o(u)}}return e.pop(),t.pop(),a}}});var Aa=m((CDe,CR)=>{var nie=require("util"),Ma=jt()("log4js:configuration"),dp=[],gp=[],vR=n=>!n,wR=n=>n&&typeof n=="object"&&!Array.isArray(n),rie=n=>/^[A-Za-z][A-Za-z0-9_]*$/g.test(n),oie=n=>n&&typeof n=="number"&&Number.isInteger(n),sie=n=>{gp.push(n),Ma(`Added listener, now ${gp.length} listeners`)},aie=n=>{dp.push(n),Ma(`Added pre-processing listener, now ${dp.length} listeners`)},xR=(n,e,t)=>{(Array.isArray(e)?e:[e]).forEach(r=>{if(r)throw new Error(`Problem with log4js configuration: (${nie.inspect(n,{depth:5})}) - ${t}`)})},lie=n=>{Ma("New configuration to be validated: ",n),xR(n,vR(wR(n)),"must be an object."),Ma(`Calling pre-processing listeners (${dp.length})`),dp.forEach(e=>e(n)),Ma("Configuration pre-processing finished."),Ma(`Calling configuration listeners (${gp.length})`),gp.forEach(e=>e(n)),Ma("Configuration finished.")};CR.exports={configure:lie,addListener:sie,addPreProcessingListener:aie,throwExceptionIf:xR,anObject:wR,anInteger:oie,validIdentifier:rie,not:vR}});var fp=m((SDe,Wn)=>{"use strict";function SR(n,e){for(var t=n.toString();t.length<e;)t="0"+t;return t}function Na(n){return SR(n,2)}function uie(n){var e=Math.abs(n),t=String(Math.floor(e/60)),i=String(e%60);return t=("0"+t).slice(-2),i=("0"+i).slice(-2),n===0?"Z":(n<0?"+":"-")+t+":"+i}function TR(n,e){typeof n!="string"&&(e=n,n=Wn.exports.ISO8601_FORMAT),e||(e=Wn.exports.now());var t=Na(e.getDate()),i=Na(e.getMonth()+1),r=Na(e.getFullYear()),o=Na(r.substring(2,4)),s=n.indexOf("yyyy")>-1?r:o,a=Na(e.getHours()),l=Na(e.getMinutes()),u=Na(e.getSeconds()),c=SR(e.getMilliseconds(),3),h=uie(e.getTimezoneOffset()),d=n.replace(/dd/g,t).replace(/MM/g,i).replace(/y{1,4}/g,s).replace(/hh/g,a).replace(/mm/g,l).replace(/ss/g,u).replace(/SSS/g,c).replace(/O/g,h);return d}function Ha(n,e,t,i){n["set"+(i?"":"UTC")+e](t)}function cie(n,e,t){var i=n.indexOf("O")<0,r=[{pattern:/y{1,4}/,regexp:"\\d{1,4}",fn:function(c,h){Ha(c,"FullYear",h,i)}},{pattern:/MM/,regexp:"\\d{1,2}",fn:function(c,h){Ha(c,"Month",h-1,i)}},{pattern:/dd/,regexp:"\\d{1,2}",fn:function(c,h){Ha(c,"Date",h,i)}},{pattern:/hh/,regexp:"\\d{1,2}",fn:function(c,h){Ha(c,"Hours",h,i)}},{pattern:/mm/,regexp:"\\d\\d",fn:function(c,h){Ha(c,"Minutes",h,i)}},{pattern:/ss/,regexp:"\\d\\d",fn:function(c,h){Ha(c,"Seconds",h,i)}},{pattern:/SSS/,regexp:"\\d\\d\\d",fn:function(c,h){Ha(c,"Milliseconds",h,i)}},{pattern:/O/,regexp:"[+-]\\d{1,2}:?\\d{2}?|Z",fn:function(c,h){h==="Z"?h=0:h=h.replace(":","");var d=Math.abs(h),g=(h>0?-1:1)*(d%100+Math.floor(d/100)*60);c.setUTCMinutes(c.getUTCMinutes()+g)}}],o=r.reduce(function(c,h){return h.pattern.test(c.regexp)?(h.index=c.regexp.match(h.pattern).index,c.regexp=c.regexp.replace(h.pattern,"("+h.regexp+")")):h.index=-1,c},{regexp:n,index:[]}),s=r.filter(function(c){return c.index>-1});s.sort(function(c,h){return c.index-h.index});var a=new RegExp(o.regexp),l=a.exec(e);if(l){var u=t||Wn.exports.now();return s.forEach(function(c,h){c.fn(u,l[h+1])}),u}throw new Error("String '"+e+"' could not be parsed as '"+n+"'")}function hie(n,e,t){if(!n)throw new Error("pattern must be supplied");return cie(n,e,t)}function die(){return new Date}Wn.exports=TR;Wn.exports.asString=TR;Wn.exports.parse=hie;Wn.exports.now=die;Wn.exports.ISO8601_FORMAT="yyyy-MM-ddThh:mm:ss.SSS";Wn.exports.ISO8601_WITH_TZ_OFFSET_FORMAT="yyyy-MM-ddThh:mm:ss.SSSO";Wn.exports.DATETIME_FORMAT="dd MM yyyy hh:mm:ss.SSS";Wn.exports.ABSOLUTETIME_FORMAT="hh:mm:ss.SSS"});var yC=m((TDe,OR)=>{var xs=fp(),kR=require("os"),qh=require("util"),DR=require("path"),ER={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[90,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[91,39],yellow:[33,39]};function _R(n){return n?`\x1B[${ER[n][0]}m`:""}function PR(n){return n?`\x1B[${ER[n][1]}m`:""}function gie(n,e){return _R(e)+n+PR(e)}function RR(n,e){return gie(qh.format("[%s] [%s] %s - ",xs.asString(n.startTime),n.level.toString(),n.categoryName),e)}function LR(n){return RR(n)+qh.format(...n.data)}function pp(n){return RR(n,n.level.colour)+qh.format(...n.data)}function IR(n){return qh.format(...n.data)}function jR(n){return n.data[0]}function FR(n,e){let t="%r %p %c - %m%n",i=/%(-?[0-9]+)?(\.?-?[0-9]+)?([[\]cdhmnprzxXyflos%])(\{([^}]+)\})?|([^%]+)/;n=n||t;function r(I,A){let Z=I.categoryName;if(A){let K=parseInt(A,10),ae=Z.split(".");K<ae.length&&(Z=ae.slice(ae.length-K).join("."))}return Z}function o(I,A){let Z=xs.ISO8601_FORMAT;return A&&(Z=A,Z==="ISO8601"?Z=xs.ISO8601_FORMAT:Z==="ISO8601_WITH_TZ_OFFSET"?Z=xs.ISO8601_WITH_TZ_OFFSET_FORMAT:Z==="ABSOLUTE"?Z=xs.ABSOLUTETIME_FORMAT:Z==="DATE"&&(Z=xs.DATETIME_FORMAT)),xs.asString(Z,I.startTime)}function s(){return kR.hostname().toString()}function a(I){return qh.format(...I.data)}function l(){return kR.EOL}function u(I){return I.level.toString()}function c(I){return xs.asString("hh:mm:ss",I.startTime)}function h(I){return _R(I.level.colour)}function d(I){return PR(I.level.colour)}function g(){return"%"}function f(I){return I&&I.pid?I.pid.toString():process.pid.toString()}function p(){return f()}function b(I,A){return typeof e[A]<"u"?typeof e[A]=="function"?e[A](I):e[A]:null}function y(I,A){let Z=I.context[A];return typeof Z<"u"?typeof Z=="function"?Z(I):Z:null}function w(I,A){let Z=I.fileName||"";if(A){let K=parseInt(A,10),ae=Z.split(DR.sep);ae.length>K&&(Z=ae.slice(-K).join(DR.sep))}return Z}function x(I){return I.lineNumber?`${I.lineNumber}`:""}function k(I){return I.columnNumber?`${I.columnNumber}`:""}function L(I){return I.callStack||""}let j={c:r,d:o,h:s,m:a,n:l,p:u,r:c,"[":h,"]":d,y:p,z:f,"%":g,x:b,X:y,f:w,l:x,o:k,s:L};function O(I,A,Z){return j[I](A,Z)}function W(I,A){let Z;return I?(Z=parseInt(I.substr(1),10),Z>0?A.slice(0,Z):A.slice(Z)):A}function H(I,A){let Z;if(I)if(I.charAt(0)==="-")for(Z=parseInt(I.substr(1),10);A.length<Z;)A+=" ";else for(Z=parseInt(I,10);A.length<Z;)A=` ${A}`;return A}function N(I,A,Z){let K=I;return K=W(A,K),K=H(Z,K),K}return function(I){let A="",Z,K=n;for(;(Z=i.exec(K))!==null;){let ae=Z[1],je=Z[2],Pe=Z[3],Ve=Z[5],Tt=Z[6];if(Tt)A+=Tt.toString();else{let Si=O(Pe,I,Ve);A+=N(Si,je,ae)}K=K.substr(Z.index+Z[0].length)}return A}}var bC={messagePassThrough(){return IR},basic(){return LR},colored(){return pp},coloured(){return pp},pattern(n){return FR(n&&n.pattern,n&&n.tokens)},dummy(){return jR}};OR.exports={basicLayout:LR,messagePassThroughLayout:IR,patternLayout:FR,colouredLayout:pp,coloredLayout:pp,dummyLayout:jR,addLayout(n,e){bC[n]=e},layout(n,e){return bC[n]&&bC[n](e)}}});var qa=m((kDe,AR)=>{var Yt=Aa(),MR=["white","grey","black","blue","cyan","green","magenta","red","yellow"],zt=class{constructor(e,t,i){this.level=e,this.levelStr=t,this.colour=i}toString(){return this.levelStr}static getLevel(e,t){return e?e instanceof zt?e:(e instanceof Object&&e.levelStr&&(e=e.levelStr),zt[e.toString().toUpperCase()]||t):t}static addLevels(e){e&&(Object.keys(e).forEach(i=>{let r=i.toUpperCase();zt[r]=new zt(e[i].value,r,e[i].colour);let o=zt.levels.findIndex(s=>s.levelStr===r);o>-1?zt.levels[o]=zt[r]:zt.levels.push(zt[r])}),zt.levels.sort((i,r)=>i.level-r.level))}isLessThanOrEqualTo(e){return typeof e=="string"&&(e=zt.getLevel(e)),this.level<=e.level}isGreaterThanOrEqualTo(e){return typeof e=="string"&&(e=zt.getLevel(e)),this.level>=e.level}isEqualTo(e){return typeof e=="string"&&(e=zt.getLevel(e)),this.level===e.level}};zt.levels=[];zt.addLevels({ALL:{value:Number.MIN_VALUE,colour:"grey"},TRACE:{value:5e3,colour:"blue"},DEBUG:{value:1e4,colour:"cyan"},INFO:{value:2e4,colour:"green"},WARN:{value:3e4,colour:"yellow"},ERROR:{value:4e4,colour:"red"},FATAL:{value:5e4,colour:"magenta"},MARK:{value:9007199254740992,colour:"grey"},OFF:{value:Number.MAX_VALUE,colour:"grey"}});Yt.addListener(n=>{let e=n.levels;e&&(Yt.throwExceptionIf(n,Yt.not(Yt.anObject(e)),"levels must be an object"),Object.keys(e).forEach(i=>{Yt.throwExceptionIf(n,Yt.not(Yt.validIdentifier(i)),`level name "${i}" is not a valid identifier (must start with a letter, only contain A-Z,a-z,0-9,_)`),Yt.throwExceptionIf(n,Yt.not(Yt.anObject(e[i])),`level "${i}" must be an object`),Yt.throwExceptionIf(n,Yt.not(e[i].value),`level "${i}" must have a 'value' property`),Yt.throwExceptionIf(n,Yt.not(Yt.anInteger(e[i].value)),`level "${i}".value must have an integer value`),Yt.throwExceptionIf(n,Yt.not(e[i].colour),`level "${i}" must have a 'colour' property`),Yt.throwExceptionIf(n,Yt.not(MR.indexOf(e[i].colour)>-1),`level "${i}".colour must be one of ${MR.join(", ")}`)}))});Yt.addListener(n=>{zt.addLevels(n.levels)});AR.exports=zt});var XR=m(Yh=>{"use strict";var{parse:qR,stringify:BR}=JSON,{keys:fie}=Object,Bh=String,YR="string",NR={},mp="object",WR=(n,e)=>e,pie=n=>n instanceof Bh?Bh(n):n,mie=(n,e)=>typeof e===YR?new Bh(e):e,ZR=(n,e,t,i)=>{let r=[];for(let o=fie(t),{length:s}=o,a=0;a<s;a++){let l=o[a],u=t[l];if(u instanceof Bh){let c=n[u];typeof c===mp&&!e.has(c)?(e.add(c),t[l]=NR,r.push({k:l,a:[n,e,c,i]})):t[l]=i.call(t,l,c)}else t[l]!==NR&&(t[l]=i.call(t,l,u))}for(let{length:o}=r,s=0;s<o;s++){let{k:a,a:l}=r[s];t[a]=i.call(t,a,ZR.apply(null,l))}return t},HR=(n,e,t)=>{let i=Bh(e.push(t)-1);return n.set(t,i),i},JR=(n,e)=>{let t=qR(n,mie).map(pie),i=t[0],r=e||WR,o=typeof i===mp&&i?ZR(t,new Set,i,r):i;return r.call({"":o},"",o)};Yh.parse=JR;var $R=(n,e,t)=>{let i=e&&typeof e===mp?(c,h)=>c===""||-1<e.indexOf(c)?h:void 0:e||WR,r=new Map,o=[],s=[],a=+HR(r,o,i.call({"":n},"",n)),l=!a;for(;a<o.length;)l=!0,s[a]=BR(o[a++],u,t);return"["+s.join(",")+"]";function u(c,h){if(l)return l=!l,h;let d=i.call(this,c,h);switch(typeof d){case mp:if(d===null)return d;case YR:return r.get(d)||HR(r,o,d)}return d}};Yh.stringify=$R;var bie=n=>qR($R(n));Yh.toJSON=bie;var yie=n=>JR(BR(n));Yh.fromJSON=yie});var vC=m((EDe,KR)=>{var UR=XR(),GR=qa(),Wh=class{constructor(e,t,i,r,o){this.startTime=new Date,this.categoryName=e,this.data=i,this.level=t,this.context=Object.assign({},r),this.pid=process.pid,o&&(this.functionName=o.functionName,this.fileName=o.fileName,this.lineNumber=o.lineNumber,this.columnNumber=o.columnNumber,this.callStack=o.callStack)}serialise(){let e=this.data.map(t=>(t&&t.message&&t.stack&&(t=Object.assign({message:t.message,stack:t.stack},t)),t));return this.data=e,UR.stringify(this)}static deserialise(e){let t;try{let i=UR.parse(e);i.data=i.data.map(r=>{if(r&&r.message&&r.stack){let o=new Error(r);Object.keys(r).forEach(s=>{o[s]=r[s]}),r=o}return r}),t=new Wh(i.categoryName,GR.getLevel(i.level.levelStr),i.data,i.context),t.startTime=new Date(i.startTime),t.pid=i.pid,t.cluster=i.cluster}catch(i){t=new Wh("log4js",GR.ERROR,["Unable to parse log:",e,"because: ",i])}return t}};KR.exports=Wh});var yp=m((_De,VR)=>{var Zn=jt()("log4js:clustering"),vie=vC(),wie=Aa(),du=!1,Wr=null;try{Wr=require("cluster")}catch{Zn("cluster module not present"),du=!0}var xC=[],Jh=!1,Zh="NODE_APP_INSTANCE",zR=()=>Jh&&process.env[Zh]==="0",wC=()=>du||Wr.isMaster||zR(),QR=n=>{xC.forEach(e=>e(n))},bp=(n,e)=>{if(Zn("cluster message received from worker ",n,": ",e),n.topic&&n.data&&(e=n,n=void 0),e&&e.topic&&e.topic==="log4js:message"){Zn("received message: ",e.data);let t=vie.deserialise(e.data);QR(t)}};du||wie.addListener(n=>{xC.length=0,{pm2:Jh,disableClustering:du,pm2InstanceVar:Zh="NODE_APP_INSTANCE"}=n,Zn(`clustering disabled ? ${du}`),Zn(`cluster.isMaster ? ${Wr&&Wr.isMaster}`),Zn(`pm2 enabled ? ${Jh}`),Zn(`pm2InstanceVar = ${Zh}`),Zn(`process.env[${Zh}] = ${process.env[Zh]}`),Jh&&process.removeListener("message",bp),Wr&&Wr.removeListener&&Wr.removeListener("message",bp),du||n.disableClustering?Zn("Not listening for cluster messages, because clustering disabled."):zR()?(Zn("listening for PM2 broadcast messages"),process.on("message",bp)):Wr.isMaster?(Zn("listening for cluster messages"),Wr.on("message",bp)):Zn("not listening for messages, because we are not a master process")});VR.exports={onlyOnMaster:(n,e)=>wC()?n():e,isMaster:wC,send:n=>{wC()?QR(n):(Jh||(n.cluster={workerId:Wr.worker.id,worker:process.pid}),process.send({topic:"log4js:message",data:n.serialise()}))},onMessage:n=>{xC.push(n)}}});var nL=m((PDe,iL)=>{function xie(n){if(typeof n=="number"&&Number.isInteger(n))return n;let e={K:1024,M:1024*1024,G:1024*1024*1024},t=Object.keys(e),i=n.substr(n.length-1).toLocaleUpperCase(),r=n.substring(0,n.length-1).trim();if(t.indexOf(i)<0||!Number.isInteger(Number(r)))throw Error(`maxLogSize: "${n}" is invalid`);return r*e[i]}function Cie(n,e){let t=Object.assign({},e);return Object.keys(n).forEach(i=>{t[i]&&(t[i]=n[i](e[i]))}),t}function eL(n){return Cie({maxLogSize:xie},n)}var tL={file:eL,fileSync:eL};iL.exports.modifyConfig=n=>tL[n.type]?tL[n.type](n):n});var oL=m((RDe,rL)=>{var Sie=console.log.bind(console);function Tie(n,e){return t=>{Sie(n(t,e))}}function kie(n,e){let t=e.colouredLayout;return n.layout&&(t=e.layout(n.layout.type,n.layout)),Tie(t,n.timezoneOffset)}rL.exports.configure=kie});var aL=m(sL=>{function Die(n,e){return t=>{process.stdout.write(`${n(t,e)}
`)}}function Eie(n,e){let t=e.colouredLayout;return n.layout&&(t=e.layout(n.layout.type,n.layout)),Die(t,n.timezoneOffset)}sL.configure=Eie});var uL=m((IDe,lL)=>{function _ie(n,e){return t=>{process.stderr.write(`${n(t,e)}
`)}}function Pie(n,e){let t=e.colouredLayout;return n.layout&&(t=e.layout(n.layout.type,n.layout)),_ie(t,n.timezoneOffset)}lL.exports.configure=Pie});var hL=m((jDe,cL)=>{function Rie(n,e,t,i){let r=i.getLevel(n),o=i.getLevel(e,i.FATAL);return s=>{let a=s.level;a.isGreaterThanOrEqualTo(r)&&a.isLessThanOrEqualTo(o)&&t(s)}}function Lie(n,e,t,i){let r=t(n.appender);return Rie(n.level,n.maxLevel,r,i)}cL.exports.configure=Lie});var fL=m((FDe,gL)=>{var dL=jt()("log4js:categoryFilter");function Iie(n,e){return typeof n=="string"&&(n=[n]),t=>{dL(`Checking ${t.categoryName} against ${n}`),n.indexOf(t.categoryName)===-1&&(dL("Not excluded, sending to appender"),e(t))}}function jie(n,e,t){let i=t(n.appender);return Iie(n.exclude,i)}gL.exports.configure=jie});var bL=m((ODe,mL)=>{var pL=jt()("log4js:noLogFilter");function Fie(n){return n.filter(t=>t!=null&&t!=="")}function Oie(n,e){return t=>{pL(`Checking data: ${t.data} against filters: ${n}`),typeof n=="string"&&(n=[n]),n=Fie(n);let i=new RegExp(n.join("|"),"i");(n.length===0||t.data.findIndex(r=>i.test(r))<0)&&(pL("Not excluded, sending to appender"),e(t))}}function Mie(n,e,t){let i=t(n.appender);return Oie(n.exclude,i)}mL.exports.configure=Mie});var gt=m(CC=>{"use strict";CC.fromCallback=function(n){return Object.defineProperty(function(...e){if(typeof e[e.length-1]=="function")n.apply(this,e);else return new Promise((t,i)=>{n.call(this,...e,(r,o)=>r!=null?i(r):t(o))})},"name",{value:n.name})};CC.fromPromise=function(n){return Object.defineProperty(function(...e){let t=e[e.length-1];if(typeof t!="function")return n.apply(this,e);n.apply(this,e.slice(0,-1)).then(i=>t(null,i),t)},"name",{value:n.name})}});var vL=m((ADe,yL)=>{var Cs=require("constants"),Aie=process.cwd,vp=null,Nie=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return vp||(vp=Aie.call(process)),vp};try{process.cwd()}catch{}typeof process.chdir=="function"&&(SC=process.chdir,process.chdir=function(n){vp=null,SC.call(process,n)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,SC));var SC;yL.exports=Hie;function Hie(n){Cs.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(n),n.lutimes||t(n),n.chown=o(n.chown),n.fchown=o(n.fchown),n.lchown=o(n.lchown),n.chmod=i(n.chmod),n.fchmod=i(n.fchmod),n.lchmod=i(n.lchmod),n.chownSync=s(n.chownSync),n.fchownSync=s(n.fchownSync),n.lchownSync=s(n.lchownSync),n.chmodSync=r(n.chmodSync),n.fchmodSync=r(n.fchmodSync),n.lchmodSync=r(n.lchmodSync),n.stat=a(n.stat),n.fstat=a(n.fstat),n.lstat=a(n.lstat),n.statSync=l(n.statSync),n.fstatSync=l(n.fstatSync),n.lstatSync=l(n.lstatSync),n.lchmod||(n.lchmod=function(c,h,d){d&&process.nextTick(d)},n.lchmodSync=function(){}),n.lchown||(n.lchown=function(c,h,d,g){g&&process.nextTick(g)},n.lchownSync=function(){}),Nie==="win32"&&(n.rename=function(c){return function(h,d,g){var f=Date.now(),p=0;c(h,d,function b(y){if(y&&(y.code==="EACCES"||y.code==="EPERM")&&Date.now()-f<6e4){setTimeout(function(){n.stat(d,function(w,x){w&&w.code==="ENOENT"?c(h,d,b):g(y)})},p),p<100&&(p+=10);return}g&&g(y)})}}(n.rename)),n.read=function(c){function h(d,g,f,p,b,y){var w;if(y&&typeof y=="function"){var x=0;w=function(k,L,j){if(k&&k.code==="EAGAIN"&&x<10)return x++,c.call(n,d,g,f,p,b,w);y.apply(this,arguments)}}return c.call(n,d,g,f,p,b,w)}return Object.setPrototypeOf&&Object.setPrototypeOf(h,c),h}(n.read),n.readSync=function(c){return function(h,d,g,f,p){for(var b=0;;)try{return c.call(n,h,d,g,f,p)}catch(y){if(y.code==="EAGAIN"&&b<10){b++;continue}throw y}}}(n.readSync);function e(c){c.lchmod=function(h,d,g){c.open(h,Cs.O_WRONLY|Cs.O_SYMLINK,d,function(f,p){if(f){g&&g(f);return}c.fchmod(p,d,function(b){c.close(p,function(y){g&&g(b||y)})})})},c.lchmodSync=function(h,d){var g=c.openSync(h,Cs.O_WRONLY|Cs.O_SYMLINK,d),f=!0,p;try{p=c.fchmodSync(g,d),f=!1}finally{if(f)try{c.closeSync(g)}catch{}else c.closeSync(g)}return p}}function t(c){Cs.hasOwnProperty("O_SYMLINK")?(c.lutimes=function(h,d,g,f){c.open(h,Cs.O_SYMLINK,function(p,b){if(p){f&&f(p);return}c.futimes(b,d,g,function(y){c.close(b,function(w){f&&f(y||w)})})})},c.lutimesSync=function(h,d,g){var f=c.openSync(h,Cs.O_SYMLINK),p,b=!0;try{p=c.futimesSync(f,d,g),b=!1}finally{if(b)try{c.closeSync(f)}catch{}else c.closeSync(f)}return p}):(c.lutimes=function(h,d,g,f){f&&process.nextTick(f)},c.lutimesSync=function(){})}function i(c){return c&&function(h,d,g){return c.call(n,h,d,function(f){u(f)&&(f=null),g&&g.apply(this,arguments)})}}function r(c){return c&&function(h,d){try{return c.call(n,h,d)}catch(g){if(!u(g))throw g}}}function o(c){return c&&function(h,d,g,f){return c.call(n,h,d,g,function(p){u(p)&&(p=null),f&&f.apply(this,arguments)})}}function s(c){return c&&function(h,d,g){try{return c.call(n,h,d,g)}catch(f){if(!u(f))throw f}}}function a(c){return c&&function(h,d,g){typeof d=="function"&&(g=d,d=null);function f(p,b){b&&(b.uid<0&&(b.uid+=4294967296),b.gid<0&&(b.gid+=4294967296)),g&&g.apply(this,arguments)}return d?c.call(n,h,d,f):c.call(n,h,f)}}function l(c){return c&&function(h,d){var g=d?c.call(n,h,d):c.call(n,h);return g.uid<0&&(g.uid+=4294967296),g.gid<0&&(g.gid+=4294967296),g}}function u(c){if(!c||c.code==="ENOSYS")return!0;var h=!process.getuid||process.getuid()!==0;return!!(h&&(c.code==="EINVAL"||c.code==="EPERM"))}}});var CL=m((NDe,xL)=>{var wL=require("stream").Stream;xL.exports=qie;function qie(n){return{ReadStream:e,WriteStream:t};function e(i,r){if(!(this instanceof e))return new e(i,r);wL.call(this);var o=this;this.path=i,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,r=r||{};for(var s=Object.keys(r),a=0,l=s.length;a<l;a++){var u=s[a];this[u]=r[u]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){o._read()});return}n.open(this.path,this.flags,this.mode,function(c,h){if(c){o.emit("error",c),o.readable=!1;return}o.fd=h,o.emit("open",h),o._read()})}function t(i,r){if(!(this instanceof t))return new t(i,r);wL.call(this),this.path=i,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,r=r||{};for(var o=Object.keys(r),s=0,a=o.length;s<a;s++){var l=o[s];this[l]=r[l]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=n.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var TL=m((HDe,SL)=>{"use strict";SL.exports=Yie;var Bie=Object.getPrototypeOf||function(n){return n.__proto__};function Yie(n){if(n===null||typeof n!="object")return n;if(n instanceof Object)var e={__proto__:Bie(n)};else var e=Object.create(null);return Object.getOwnPropertyNames(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}),e}});var Ge=m((qDe,kC)=>{var fi=require("fs"),Wie=vL(),Zie=CL(),Jie=TL(),wp=require("util"),pr,xp;typeof Symbol=="function"&&typeof Symbol.for=="function"?(pr=Symbol.for("graceful-fs.queue"),xp=Symbol.for("graceful-fs.previous")):(pr="___graceful-fs.queue",xp="___graceful-fs.previous");function $ie(){}function DL(n,e){Object.defineProperty(n,pr,{get:function(){return e}})}var $h=$ie;wp.debuglog?$h=wp.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&($h=function(){var n=wp.format.apply(wp,arguments);n="GFS4: "+n.split(/\n/).join(`
GFS4: `),console.error(n)});fi[pr]||(kL=global[pr]||[],DL(fi,kL),fi.close=function(n){function e(t,i){return n.call(fi,t,function(r){r||Ss(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(e,xp,{value:n}),e}(fi.close),fi.closeSync=function(n){function e(t){n.apply(fi,arguments),Ss()}return Object.defineProperty(e,xp,{value:n}),e}(fi.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){$h(fi[pr]),require("assert").equal(fi[pr].length,0)}));var kL;global[pr]||DL(global,fi[pr]);kC.exports=TC(Jie(fi));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!fi.__patched&&(kC.exports=TC(fi),fi.__patched=!0);function TC(n){Wie(n),n.gracefulify=TC,n.createReadStream=L,n.createWriteStream=j;var e=n.readFile;n.readFile=t;function t(H,N,I){return typeof N=="function"&&(I=N,N=null),A(H,N,I);function A(Z,K,ae){return e(Z,K,function(je){je&&(je.code==="EMFILE"||je.code==="ENFILE")?gu([A,[Z,K,ae]]):(typeof ae=="function"&&ae.apply(this,arguments),Ss())})}}var i=n.writeFile;n.writeFile=r;function r(H,N,I,A){return typeof I=="function"&&(A=I,I=null),Z(H,N,I,A);function Z(K,ae,je,Pe){return i(K,ae,je,function(Ve){Ve&&(Ve.code==="EMFILE"||Ve.code==="ENFILE")?gu([Z,[K,ae,je,Pe]]):(typeof Pe=="function"&&Pe.apply(this,arguments),Ss())})}}var o=n.appendFile;o&&(n.appendFile=s);function s(H,N,I,A){return typeof I=="function"&&(A=I,I=null),Z(H,N,I,A);function Z(K,ae,je,Pe){return o(K,ae,je,function(Ve){Ve&&(Ve.code==="EMFILE"||Ve.code==="ENFILE")?gu([Z,[K,ae,je,Pe]]):(typeof Pe=="function"&&Pe.apply(this,arguments),Ss())})}}var a=n.copyFile;a&&(n.copyFile=l);function l(H,N,I,A){return typeof I=="function"&&(A=I,I=0),a(H,N,I,function(Z){Z&&(Z.code==="EMFILE"||Z.code==="ENFILE")?gu([a,[H,N,I,A]]):(typeof A=="function"&&A.apply(this,arguments),Ss())})}var u=n.readdir;n.readdir=c;function c(H,N,I){var A=[H];return typeof N!="function"?A.push(N):I=N,A.push(Z),h(A);function Z(K,ae){ae&&ae.sort&&ae.sort(),K&&(K.code==="EMFILE"||K.code==="ENFILE")?gu([h,[A]]):(typeof I=="function"&&I.apply(this,arguments),Ss())}}function h(H){return u.apply(n,H)}if(process.version.substr(0,4)==="v0.8"){var d=Zie(n);y=d.ReadStream,x=d.WriteStream}var g=n.ReadStream;g&&(y.prototype=Object.create(g.prototype),y.prototype.open=w);var f=n.WriteStream;f&&(x.prototype=Object.create(f.prototype),x.prototype.open=k),Object.defineProperty(n,"ReadStream",{get:function(){return y},set:function(H){y=H},enumerable:!0,configurable:!0}),Object.defineProperty(n,"WriteStream",{get:function(){return x},set:function(H){x=H},enumerable:!0,configurable:!0});var p=y;Object.defineProperty(n,"FileReadStream",{get:function(){return p},set:function(H){p=H},enumerable:!0,configurable:!0});var b=x;Object.defineProperty(n,"FileWriteStream",{get:function(){return b},set:function(H){b=H},enumerable:!0,configurable:!0});function y(H,N){return this instanceof y?(g.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function w(){var H=this;W(H.path,H.flags,H.mode,function(N,I){N?(H.autoClose&&H.destroy(),H.emit("error",N)):(H.fd=I,H.emit("open",I),H.read())})}function x(H,N){return this instanceof x?(f.apply(this,arguments),this):x.apply(Object.create(x.prototype),arguments)}function k(){var H=this;W(H.path,H.flags,H.mode,function(N,I){N?(H.destroy(),H.emit("error",N)):(H.fd=I,H.emit("open",I))})}function L(H,N){return new n.ReadStream(H,N)}function j(H,N){return new n.WriteStream(H,N)}var O=n.open;n.open=W;function W(H,N,I,A){return typeof I=="function"&&(A=I,I=null),Z(H,N,I,A);function Z(K,ae,je,Pe){return O(K,ae,je,function(Ve,Tt){Ve&&(Ve.code==="EMFILE"||Ve.code==="ENFILE")?gu([Z,[K,ae,je,Pe]]):(typeof Pe=="function"&&Pe.apply(this,arguments),Ss())})}}return n}function gu(n){$h("ENQUEUE",n[0].name,n[1]),fi[pr].push(n)}function Ss(){var n=fi[pr].shift();n&&($h("RETRY",n[0].name,n[1]),n[0].apply(null,n[1]))}});var Ba=m(Ts=>{"use strict";var EL=gt().fromCallback,_n=Ge(),Xie=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(n=>typeof _n[n]=="function");Object.assign(Ts,_n);Xie.forEach(n=>{Ts[n]=EL(_n[n])});Ts.realpath.native=EL(_n.realpath.native);Ts.exists=function(n,e){return typeof e=="function"?_n.exists(n,e):new Promise(t=>_n.exists(n,t))};Ts.read=function(n,e,t,i,r,o){return typeof o=="function"?_n.read(n,e,t,i,r,o):new Promise((s,a)=>{_n.read(n,e,t,i,r,(l,u,c)=>{if(l)return a(l);s({bytesRead:u,buffer:c})})})};Ts.write=function(n,e,...t){return typeof t[t.length-1]=="function"?_n.write(n,e,...t):new Promise((i,r)=>{_n.write(n,e,...t,(o,s,a)=>{if(o)return r(o);i({bytesWritten:s,buffer:a})})})};typeof _n.writev=="function"&&(Ts.writev=function(n,e,...t){return typeof t[t.length-1]=="function"?_n.writev(n,e,...t):new Promise((i,r)=>{_n.writev(n,e,...t,(o,s,a)=>{if(o)return r(o);i({bytesWritten:s,buffers:a})})})})});var PL=m((YDe,_L)=>{"use strict";var Uie=require("path");_L.exports.checkPath=function(e){if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(Uie.parse(e).root,""))){let i=new Error(`Path contains invalid characters: ${e}`);throw i.code="EINVAL",i}}});var jL=m((WDe,DC)=>{"use strict";var RL=Ba(),{checkPath:LL}=PL(),IL=n=>{let e={mode:511};return typeof n=="number"?n:me(me({},e),n).mode};DC.exports.makeDir=async(n,e)=>(LL(n),RL.mkdir(n,{mode:IL(e),recursive:!0}));DC.exports.makeDirSync=(n,e)=>(LL(n),RL.mkdirSync(n,{mode:IL(e),recursive:!0}))});var mr=m((ZDe,FL)=>{"use strict";var Gie=gt().fromPromise,{makeDir:Kie,makeDirSync:EC}=jL(),_C=Gie(Kie);FL.exports={mkdirs:_C,mkdirsSync:EC,mkdirp:_C,mkdirpSync:EC,ensureDir:_C,ensureDirSync:EC}});var PC=m((JDe,OL)=>{"use strict";var fu=Ge();function zie(n,e,t,i){fu.open(n,"r+",(r,o)=>{if(r)return i(r);fu.futimes(o,e,t,s=>{fu.close(o,a=>{i&&i(s||a)})})})}function Qie(n,e,t){let i=fu.openSync(n,"r+");return fu.futimesSync(i,e,t),fu.closeSync(i)}OL.exports={utimesMillis:zie,utimesMillisSync:Qie}});var Ya=m(($De,NL)=>{"use strict";var pu=Ba(),ri=require("path"),Vie=require("util");function ene(n,e,t){let i=t.dereference?r=>pu.stat(r,{bigint:!0}):r=>pu.lstat(r,{bigint:!0});return Promise.all([i(n),i(e).catch(r=>{if(r.code==="ENOENT")return null;throw r})]).then(([r,o])=>({srcStat:r,destStat:o}))}function tne(n,e,t){let i,r=t.dereference?s=>pu.statSync(s,{bigint:!0}):s=>pu.lstatSync(s,{bigint:!0}),o=r(n);try{i=r(e)}catch(s){if(s.code==="ENOENT")return{srcStat:o,destStat:null};throw s}return{srcStat:o,destStat:i}}function ine(n,e,t,i,r){Vie.callbackify(ene)(n,e,i,(o,s)=>{if(o)return r(o);let{srcStat:a,destStat:l}=s;if(l){if(Xh(a,l)){let u=ri.basename(n),c=ri.basename(e);return t==="move"&&u!==c&&u.toLowerCase()===c.toLowerCase()?r(null,{srcStat:a,destStat:l,isChangingCase:!0}):r(new Error("Source and destination must not be the same."))}if(a.isDirectory()&&!l.isDirectory())return r(new Error(`Cannot overwrite non-directory '${e}' with directory '${n}'.`));if(!a.isDirectory()&&l.isDirectory())return r(new Error(`Cannot overwrite directory '${e}' with non-directory '${n}'.`))}return a.isDirectory()&&RC(n,e)?r(new Error(Cp(n,e,t))):r(null,{srcStat:a,destStat:l})})}function nne(n,e,t,i){let{srcStat:r,destStat:o}=tne(n,e,i);if(o){if(Xh(r,o)){let s=ri.basename(n),a=ri.basename(e);if(t==="move"&&s!==a&&s.toLowerCase()===a.toLowerCase())return{srcStat:r,destStat:o,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(r.isDirectory()&&!o.isDirectory())throw new Error(`Cannot overwrite non-directory '${e}' with directory '${n}'.`);if(!r.isDirectory()&&o.isDirectory())throw new Error(`Cannot overwrite directory '${e}' with non-directory '${n}'.`)}if(r.isDirectory()&&RC(n,e))throw new Error(Cp(n,e,t));return{srcStat:r,destStat:o}}function ML(n,e,t,i,r){let o=ri.resolve(ri.dirname(n)),s=ri.resolve(ri.dirname(t));if(s===o||s===ri.parse(s).root)return r();pu.stat(s,{bigint:!0},(a,l)=>a?a.code==="ENOENT"?r():r(a):Xh(e,l)?r(new Error(Cp(n,t,i))):ML(n,e,s,i,r))}function AL(n,e,t,i){let r=ri.resolve(ri.dirname(n)),o=ri.resolve(ri.dirname(t));if(o===r||o===ri.parse(o).root)return;let s;try{s=pu.statSync(o,{bigint:!0})}catch(a){if(a.code==="ENOENT")return;throw a}if(Xh(e,s))throw new Error(Cp(n,t,i));return AL(n,e,o,i)}function Xh(n,e){return e.ino&&e.dev&&e.ino===n.ino&&e.dev===n.dev}function RC(n,e){let t=ri.resolve(n).split(ri.sep).filter(r=>r),i=ri.resolve(e).split(ri.sep).filter(r=>r);return t.reduce((r,o,s)=>r&&i[s]===o,!0)}function Cp(n,e,t){return`Cannot ${t} '${n}' to a subdirectory of itself, '${e}'.`}NL.exports={checkPaths:ine,checkPathsSync:nne,checkParentPaths:ML,checkParentPathsSync:AL,isSrcSubdir:RC,areIdentical:Xh}});var WL=m((XDe,YL)=>{"use strict";var Ti=Ge(),Uh=require("path"),rne=mr().mkdirsSync,one=PC().utimesMillisSync,Gh=Ya();function sne(n,e,t){typeof t=="function"&&(t={filter:t}),t=t||{},t.clobber="clobber"in t?!!t.clobber:!0,t.overwrite="overwrite"in t?!!t.overwrite:t.clobber,t.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:i,destStat:r}=Gh.checkPathsSync(n,e,"copy",t);return Gh.checkParentPathsSync(n,i,e,"copy"),ane(r,n,e,t)}function ane(n,e,t,i){if(i.filter&&!i.filter(e,t))return;let r=Uh.dirname(t);return Ti.existsSync(r)||rne(r),HL(n,e,t,i)}function lne(n,e,t,i){if(!(i.filter&&!i.filter(e,t)))return HL(n,e,t,i)}function HL(n,e,t,i){let o=(i.dereference?Ti.statSync:Ti.lstatSync)(e);if(o.isDirectory())return pne(o,n,e,t,i);if(o.isFile()||o.isCharacterDevice()||o.isBlockDevice())return une(o,n,e,t,i);if(o.isSymbolicLink())return yne(n,e,t,i);throw o.isSocket()?new Error(`Cannot copy a socket file: ${e}`):o.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${e}`):new Error(`Unknown file: ${e}`)}function une(n,e,t,i,r){return e?cne(n,t,i,r):qL(n,t,i,r)}function cne(n,e,t,i){if(i.overwrite)return Ti.unlinkSync(t),qL(n,e,t,i);if(i.errorOnExist)throw new Error(`'${t}' already exists`)}function qL(n,e,t,i){return Ti.copyFileSync(e,t),i.preserveTimestamps&&hne(n.mode,e,t),LC(t,n.mode)}function hne(n,e,t){return dne(n)&&gne(t,n),fne(e,t)}function dne(n){return(n&128)===0}function gne(n,e){return LC(n,e|128)}function LC(n,e){return Ti.chmodSync(n,e)}function fne(n,e){let t=Ti.statSync(n);return one(e,t.atime,t.mtime)}function pne(n,e,t,i,r){return e?BL(t,i,r):mne(n.mode,t,i,r)}function mne(n,e,t,i){return Ti.mkdirSync(t),BL(e,t,i),LC(t,n)}function BL(n,e,t){Ti.readdirSync(n).forEach(i=>bne(i,n,e,t))}function bne(n,e,t,i){let r=Uh.join(e,n),o=Uh.join(t,n),{destStat:s}=Gh.checkPathsSync(r,o,"copy",i);return lne(s,r,o,i)}function yne(n,e,t,i){let r=Ti.readlinkSync(e);if(i.dereference&&(r=Uh.resolve(process.cwd(),r)),n){let o;try{o=Ti.readlinkSync(t)}catch(s){if(s.code==="EINVAL"||s.code==="UNKNOWN")return Ti.symlinkSync(r,t);throw s}if(i.dereference&&(o=Uh.resolve(process.cwd(),o)),Gh.isSrcSubdir(r,o))throw new Error(`Cannot copy '${r}' to a subdirectory of itself, '${o}'.`);if(Ti.statSync(t).isDirectory()&&Gh.isSrcSubdir(o,r))throw new Error(`Cannot overwrite '${o}' with '${r}'.`);return vne(r,t)}else return Ti.symlinkSync(r,t)}function vne(n,e){return Ti.unlinkSync(e),Ti.symlinkSync(n,e)}YL.exports=sne});var IC=m((UDe,ZL)=>{"use strict";ZL.exports={copySync:WL()}});var ks=m((GDe,$L)=>{"use strict";var wne=gt().fromPromise,JL=Ba();function xne(n){return JL.access(n).then(()=>!0).catch(()=>!1)}$L.exports={pathExists:wne(xne),pathExistsSync:JL.existsSync}});var eI=m((KDe,VL)=>{"use strict";var nn=Ge(),Kh=require("path"),Cne=mr().mkdirs,Sne=ks().pathExists,Tne=PC().utimesMillis,zh=Ya();function kne(n,e,t,i){typeof t=="function"&&!i?(i=t,t={}):typeof t=="function"&&(t={filter:t}),i=i||function(){},t=t||{},t.clobber="clobber"in t?!!t.clobber:!0,t.overwrite="overwrite"in t?!!t.overwrite:t.clobber,t.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
see https://github.com/jprichardson/node-fs-extra/issues/269`),zh.checkPaths(n,e,"copy",t,(r,o)=>{if(r)return i(r);let{srcStat:s,destStat:a}=o;zh.checkParentPaths(n,s,e,"copy",l=>l?i(l):t.filter?GL(XL,a,n,e,t,i):XL(a,n,e,t,i))})}function XL(n,e,t,i,r){let o=Kh.dirname(t);Sne(o,(s,a)=>{if(s)return r(s);if(a)return Sp(n,e,t,i,r);Cne(o,l=>l?r(l):Sp(n,e,t,i,r))})}function GL(n,e,t,i,r,o){Promise.resolve(r.filter(t,i)).then(s=>s?n(e,t,i,r,o):o(),s=>o(s))}function Dne(n,e,t,i,r){return i.filter?GL(Sp,n,e,t,i,r):Sp(n,e,t,i,r)}function Sp(n,e,t,i,r){(i.dereference?nn.stat:nn.lstat)(e,(s,a)=>s?r(s):a.isDirectory()?jne(a,n,e,t,i,r):a.isFile()||a.isCharacterDevice()||a.isBlockDevice()?Ene(a,n,e,t,i,r):a.isSymbolicLink()?Mne(n,e,t,i,r):a.isSocket()?r(new Error(`Cannot copy a socket file: ${e}`)):a.isFIFO()?r(new Error(`Cannot copy a FIFO pipe: ${e}`)):r(new Error(`Unknown file: ${e}`)))}function Ene(n,e,t,i,r,o){return e?_ne(n,t,i,r,o):KL(n,t,i,r,o)}function _ne(n,e,t,i,r){if(i.overwrite)nn.unlink(t,o=>o?r(o):KL(n,e,t,i,r));else return i.errorOnExist?r(new Error(`'${t}' already exists`)):r()}function KL(n,e,t,i,r){nn.copyFile(e,t,o=>o?r(o):i.preserveTimestamps?Pne(n.mode,e,t,r):Tp(t,n.mode,r))}function Pne(n,e,t,i){return Rne(n)?Lne(t,n,r=>r?i(r):UL(n,e,t,i)):UL(n,e,t,i)}function Rne(n){return(n&128)===0}function Lne(n,e,t){return Tp(n,e|128,t)}function UL(n,e,t,i){Ine(e,t,r=>r?i(r):Tp(t,n,i))}function Tp(n,e,t){return nn.chmod(n,e,t)}function Ine(n,e,t){nn.stat(n,(i,r)=>i?t(i):Tne(e,r.atime,r.mtime,t))}function jne(n,e,t,i,r,o){return e?zL(t,i,r,o):Fne(n.mode,t,i,r,o)}function Fne(n,e,t,i,r){nn.mkdir(t,o=>{if(o)return r(o);zL(e,t,i,s=>s?r(s):Tp(t,n,r))})}function zL(n,e,t,i){nn.readdir(n,(r,o)=>r?i(r):QL(o,n,e,t,i))}function QL(n,e,t,i,r){let o=n.pop();return o?One(n,o,e,t,i,r):r()}function One(n,e,t,i,r,o){let s=Kh.join(t,e),a=Kh.join(i,e);zh.checkPaths(s,a,"copy",r,(l,u)=>{if(l)return o(l);let{destStat:c}=u;Dne(c,s,a,r,h=>h?o(h):QL(n,t,i,r,o))})}function Mne(n,e,t,i,r){nn.readlink(e,(o,s)=>{if(o)return r(o);if(i.dereference&&(s=Kh.resolve(process.cwd(),s)),n)nn.readlink(t,(a,l)=>a?a.code==="EINVAL"||a.code==="UNKNOWN"?nn.symlink(s,t,r):r(a):(i.dereference&&(l=Kh.resolve(process.cwd(),l)),zh.isSrcSubdir(s,l)?r(new Error(`Cannot copy '${s}' to a subdirectory of itself, '${l}'.`)):n.isDirectory()&&zh.isSrcSubdir(l,s)?r(new Error(`Cannot overwrite '${l}' with '${s}'.`)):Ane(s,t,r)));else return nn.symlink(s,t,r)})}function Ane(n,e,t){nn.unlink(e,i=>i?t(i):nn.symlink(n,e,t))}VL.exports=kne});var jC=m((zDe,tI)=>{"use strict";var Nne=gt().fromCallback;tI.exports={copy:Nne(eI())}});var cI=m((QDe,uI)=>{"use strict";var iI=Ge(),sI=require("path"),st=require("assert"),Qh=process.platform==="win32";function aI(n){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(t=>{n[t]=n[t]||iI[t],t=t+"Sync",n[t]=n[t]||iI[t]}),n.maxBusyTries=n.maxBusyTries||3}function FC(n,e,t){let i=0;typeof e=="function"&&(t=e,e={}),st(n,"rimraf: missing path"),st.strictEqual(typeof n,"string","rimraf: path should be a string"),st.strictEqual(typeof t,"function","rimraf: callback function required"),st(e,"rimraf: invalid options argument provided"),st.strictEqual(typeof e,"object","rimraf: options should be object"),aI(e),nI(n,e,function r(o){if(o){if((o.code==="EBUSY"||o.code==="ENOTEMPTY"||o.code==="EPERM")&&i<e.maxBusyTries){i++;let s=i*100;return setTimeout(()=>nI(n,e,r),s)}o.code==="ENOENT"&&(o=null)}t(o)})}function nI(n,e,t){st(n),st(e),st(typeof t=="function"),e.lstat(n,(i,r)=>{if(i&&i.code==="ENOENT")return t(null);if(i&&i.code==="EPERM"&&Qh)return rI(n,e,i,t);if(r&&r.isDirectory())return kp(n,e,i,t);e.unlink(n,o=>{if(o){if(o.code==="ENOENT")return t(null);if(o.code==="EPERM")return Qh?rI(n,e,o,t):kp(n,e,o,t);if(o.code==="EISDIR")return kp(n,e,o,t)}return t(o)})})}function rI(n,e,t,i){st(n),st(e),st(typeof i=="function"),e.chmod(n,438,r=>{r?i(r.code==="ENOENT"?null:t):e.stat(n,(o,s)=>{o?i(o.code==="ENOENT"?null:t):s.isDirectory()?kp(n,e,t,i):e.unlink(n,i)})})}function oI(n,e,t){let i;st(n),st(e);try{e.chmodSync(n,438)}catch(r){if(r.code==="ENOENT")return;throw t}try{i=e.statSync(n)}catch(r){if(r.code==="ENOENT")return;throw t}i.isDirectory()?Dp(n,e,t):e.unlinkSync(n)}function kp(n,e,t,i){st(n),st(e),st(typeof i=="function"),e.rmdir(n,r=>{r&&(r.code==="ENOTEMPTY"||r.code==="EEXIST"||r.code==="EPERM")?Hne(n,e,i):r&&r.code==="ENOTDIR"?i(t):i(r)})}function Hne(n,e,t){st(n),st(e),st(typeof t=="function"),e.readdir(n,(i,r)=>{if(i)return t(i);let o=r.length,s;if(o===0)return e.rmdir(n,t);r.forEach(a=>{FC(sI.join(n,a),e,l=>{if(!s){if(l)return t(s=l);--o===0&&e.rmdir(n,t)}})})})}function lI(n,e){let t;e=e||{},aI(e),st(n,"rimraf: missing path"),st.strictEqual(typeof n,"string","rimraf: path should be a string"),st(e,"rimraf: missing options"),st.strictEqual(typeof e,"object","rimraf: options should be object");try{t=e.lstatSync(n)}catch(i){if(i.code==="ENOENT")return;i.code==="EPERM"&&Qh&&oI(n,e,i)}try{t&&t.isDirectory()?Dp(n,e,null):e.unlinkSync(n)}catch(i){if(i.code==="ENOENT")return;if(i.code==="EPERM")return Qh?oI(n,e,i):Dp(n,e,i);if(i.code!=="EISDIR")throw i;Dp(n,e,i)}}function Dp(n,e,t){st(n),st(e);try{e.rmdirSync(n)}catch(i){if(i.code==="ENOTDIR")throw t;if(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")qne(n,e);else if(i.code!=="ENOENT")throw i}}function qne(n,e){if(st(n),st(e),e.readdirSync(n).forEach(t=>lI(sI.join(n,t),e)),Qh){let t=Date.now();do try{return e.rmdirSync(n,e)}catch{}while(Date.now()-t<500)}else return e.rmdirSync(n,e)}uI.exports=FC;FC.sync=lI});var Vh=m((VDe,dI)=>{"use strict";var Ep=Ge(),Bne=gt().fromCallback,hI=cI();function Yne(n,e){if(Ep.rm)return Ep.rm(n,{recursive:!0,force:!0},e);hI(n,e)}function Wne(n){if(Ep.rmSync)return Ep.rmSync(n,{recursive:!0,force:!0});hI.sync(n)}dI.exports={remove:Bne(Yne),removeSync:Wne}});var wI=m((eEe,vI)=>{"use strict";var Zne=gt().fromPromise,pI=Ba(),mI=require("path"),bI=mr(),yI=Vh(),gI=Zne(async function(e){let t;try{t=await pI.readdir(e)}catch{return bI.mkdirs(e)}return Promise.all(t.map(i=>yI.remove(mI.join(e,i))))});function fI(n){let e;try{e=pI.readdirSync(n)}catch{return bI.mkdirsSync(n)}e.forEach(t=>{t=mI.join(n,t),yI.removeSync(t)})}vI.exports={emptyDirSync:fI,emptydirSync:fI,emptyDir:gI,emptydir:gI}});var TI=m((tEe,SI)=>{"use strict";var Jne=gt().fromCallback,xI=require("path"),Ds=Ge(),CI=mr();function $ne(n,e){function t(){Ds.writeFile(n,"",i=>{if(i)return e(i);e()})}Ds.stat(n,(i,r)=>{if(!i&&r.isFile())return e();let o=xI.dirname(n);Ds.stat(o,(s,a)=>{if(s)return s.code==="ENOENT"?CI.mkdirs(o,l=>{if(l)return e(l);t()}):e(s);a.isDirectory()?t():Ds.readdir(o,l=>{if(l)return e(l)})})})}function Xne(n){let e;try{e=Ds.statSync(n)}catch{}if(e&&e.isFile())return;let t=xI.dirname(n);try{Ds.statSync(t).isDirectory()||Ds.readdirSync(t)}catch(i){if(i&&i.code==="ENOENT")CI.mkdirsSync(t);else throw i}Ds.writeFileSync(n,"")}SI.exports={createFile:Jne($ne),createFileSync:Xne}});var PI=m((iEe,_I)=>{"use strict";var Une=gt().fromCallback,kI=require("path"),Es=Ge(),DI=mr(),Gne=ks().pathExists,{areIdentical:EI}=Ya();function Kne(n,e,t){function i(r,o){Es.link(r,o,s=>{if(s)return t(s);t(null)})}Es.lstat(e,(r,o)=>{Es.lstat(n,(s,a)=>{if(s)return s.message=s.message.replace("lstat","ensureLink"),t(s);if(o&&EI(a,o))return t(null);let l=kI.dirname(e);Gne(l,(u,c)=>{if(u)return t(u);if(c)return i(n,e);DI.mkdirs(l,h=>{if(h)return t(h);i(n,e)})})})})}function zne(n,e){let t;try{t=Es.lstatSync(e)}catch{}try{let o=Es.lstatSync(n);if(t&&EI(o,t))return}catch(o){throw o.message=o.message.replace("lstat","ensureLink"),o}let i=kI.dirname(e);return Es.existsSync(i)||DI.mkdirsSync(i),Es.linkSync(n,e)}_I.exports={createLink:Une(Kne),createLinkSync:zne}});var LI=m((nEe,RI)=>{"use strict";var _s=require("path"),ed=Ge(),Qne=ks().pathExists;function Vne(n,e,t){if(_s.isAbsolute(n))return ed.lstat(n,i=>i?(i.message=i.message.replace("lstat","ensureSymlink"),t(i)):t(null,{toCwd:n,toDst:n}));{let i=_s.dirname(e),r=_s.join(i,n);return Qne(r,(o,s)=>o?t(o):s?t(null,{toCwd:r,toDst:n}):ed.lstat(n,a=>a?(a.message=a.message.replace("lstat","ensureSymlink"),t(a)):t(null,{toCwd:n,toDst:_s.relative(i,n)})))}}function ere(n,e){let t;if(_s.isAbsolute(n)){if(t=ed.existsSync(n),!t)throw new Error("absolute srcpath does not exist");return{toCwd:n,toDst:n}}else{let i=_s.dirname(e),r=_s.join(i,n);if(t=ed.existsSync(r),t)return{toCwd:r,toDst:n};if(t=ed.existsSync(n),!t)throw new Error("relative srcpath does not exist");return{toCwd:n,toDst:_s.relative(i,n)}}}RI.exports={symlinkPaths:Vne,symlinkPathsSync:ere}});var FI=m((rEe,jI)=>{"use strict";var II=Ge();function tre(n,e,t){if(t=typeof e=="function"?e:t,e=typeof e=="function"?!1:e,e)return t(null,e);II.lstat(n,(i,r)=>{if(i)return t(null,"file");e=r&&r.isDirectory()?"dir":"file",t(null,e)})}function ire(n,e){let t;if(e)return e;try{t=II.lstatSync(n)}catch{return"file"}return t&&t.isDirectory()?"dir":"file"}jI.exports={symlinkType:tre,symlinkTypeSync:ire}});var YI=m((oEe,BI)=>{"use strict";var nre=gt().fromCallback,MI=require("path"),br=Ba(),AI=mr(),rre=AI.mkdirs,ore=AI.mkdirsSync,NI=LI(),sre=NI.symlinkPaths,are=NI.symlinkPathsSync,HI=FI(),lre=HI.symlinkType,ure=HI.symlinkTypeSync,cre=ks().pathExists,{areIdentical:qI}=Ya();function hre(n,e,t,i){i=typeof t=="function"?t:i,t=typeof t=="function"?!1:t,br.lstat(e,(r,o)=>{!r&&o.isSymbolicLink()?Promise.all([br.stat(n),br.stat(e)]).then(([s,a])=>{if(qI(s,a))return i(null);OI(n,e,t,i)}):OI(n,e,t,i)})}function OI(n,e,t,i){sre(n,e,(r,o)=>{if(r)return i(r);n=o.toDst,lre(o.toCwd,t,(s,a)=>{if(s)return i(s);let l=MI.dirname(e);cre(l,(u,c)=>{if(u)return i(u);if(c)return br.symlink(n,e,a,i);rre(l,h=>{if(h)return i(h);br.symlink(n,e,a,i)})})})})}function dre(n,e,t){let i;try{i=br.lstatSync(e)}catch{}if(i&&i.isSymbolicLink()){let a=br.statSync(n),l=br.statSync(e);if(qI(a,l))return}let r=are(n,e);n=r.toDst,t=ure(r.toCwd,t);let o=MI.dirname(e);return br.existsSync(o)||ore(o),br.symlinkSync(n,e,t)}BI.exports={createSymlink:nre(hre),createSymlinkSync:dre}});var ZI=m((sEe,WI)=>{"use strict";var _p=TI(),Pp=PI(),Rp=YI();WI.exports={createFile:_p.createFile,createFileSync:_p.createFileSync,ensureFile:_p.createFile,ensureFileSync:_p.createFileSync,createLink:Pp.createLink,createLinkSync:Pp.createLinkSync,ensureLink:Pp.createLink,ensureLinkSync:Pp.createLinkSync,createSymlink:Rp.createSymlink,createSymlinkSync:Rp.createSymlinkSync,ensureSymlink:Rp.createSymlink,ensureSymlinkSync:Rp.createSymlinkSync}});var mu=m((aEe,JI)=>{function gre(n,{EOL:e=`
`,finalEOL:t=!0,replacer:i=null,spaces:r}={}){let o=t?e:"";return JSON.stringify(n,i,r).replace(/\n/g,e)+o}function fre(n){return Buffer.isBuffer(n)&&(n=n.toString("utf8")),n.replace(/^\uFEFF/,"")}JI.exports={stringify:gre,stripBom:fre}});var OC=m((lEe,UI)=>{var bu;try{bu=Ge()}catch{bu=require("fs")}var Lp=gt(),{stringify:$I,stripBom:XI}=mu();async function pre(n,e={}){typeof e=="string"&&(e={encoding:e});let t=e.fs||bu,i="throws"in e?e.throws:!0,r=await Lp.fromCallback(t.readFile)(n,e);r=XI(r);let o;try{o=JSON.parse(r,e?e.reviver:null)}catch(s){if(i)throw s.message=`${n}: ${s.message}`,s;return null}return o}var mre=Lp.fromPromise(pre);function bre(n,e={}){typeof e=="string"&&(e={encoding:e});let t=e.fs||bu,i="throws"in e?e.throws:!0;try{let r=t.readFileSync(n,e);return r=XI(r),JSON.parse(r,e.reviver)}catch(r){if(i)throw r.message=`${n}: ${r.message}`,r;return null}}async function yre(n,e,t={}){let i=t.fs||bu,r=$I(e,t);await Lp.fromCallback(i.writeFile)(n,r,t)}var vre=Lp.fromPromise(yre);function wre(n,e,t={}){let i=t.fs||bu,r=$I(e,t);return i.writeFileSync(n,r,t)}var xre={readFile:mre,readFileSync:bre,writeFile:vre,writeFileSync:wre};UI.exports=xre});var KI=m((uEe,GI)=>{"use strict";var Ip=OC();GI.exports={readJson:Ip.readFile,readJsonSync:Ip.readFileSync,writeJson:Ip.writeFile,writeJsonSync:Ip.writeFileSync}});var jp=m((cEe,VI)=>{"use strict";var Cre=gt().fromCallback,td=Ge(),zI=require("path"),QI=mr(),Sre=ks().pathExists;function Tre(n,e,t,i){typeof t=="function"&&(i=t,t="utf8");let r=zI.dirname(n);Sre(r,(o,s)=>{if(o)return i(o);if(s)return td.writeFile(n,e,t,i);QI.mkdirs(r,a=>{if(a)return i(a);td.writeFile(n,e,t,i)})})}function kre(n,...e){let t=zI.dirname(n);if(td.existsSync(t))return td.writeFileSync(n,...e);QI.mkdirsSync(t),td.writeFileSync(n,...e)}VI.exports={outputFile:Cre(Tre),outputFileSync:kre}});var tj=m((hEe,ej)=>{"use strict";var{stringify:Dre}=mu(),{outputFile:Ere}=jp();async function _re(n,e,t={}){let i=Dre(e,t);await Ere(n,i,t)}ej.exports=_re});var nj=m((dEe,ij)=>{"use strict";var{stringify:Pre}=mu(),{outputFileSync:Rre}=jp();function Lre(n,e,t){let i=Pre(e,t);Rre(n,i,t)}ij.exports=Lre});var oj=m((gEe,rj)=>{"use strict";var Ire=gt().fromPromise,Bi=KI();Bi.outputJson=Ire(tj());Bi.outputJsonSync=nj();Bi.outputJSON=Bi.outputJson;Bi.outputJSONSync=Bi.outputJsonSync;Bi.writeJSON=Bi.writeJson;Bi.writeJSONSync=Bi.writeJsonSync;Bi.readJSON=Bi.readJson;Bi.readJSONSync=Bi.readJsonSync;rj.exports=Bi});var cj=m((fEe,uj)=>{"use strict";var aj=Ge(),AC=require("path"),jre=IC().copySync,lj=Vh().removeSync,Fre=mr().mkdirpSync,sj=Ya();function Ore(n,e,t){t=t||{};let i=t.overwrite||t.clobber||!1,{srcStat:r,isChangingCase:o=!1}=sj.checkPathsSync(n,e,"move",t);return sj.checkParentPathsSync(n,r,e,"move"),Mre(e)||Fre(AC.dirname(e)),Are(n,e,i,o)}function Mre(n){let e=AC.dirname(n);return AC.parse(e).root===e}function Are(n,e,t,i){if(i)return MC(n,e,t);if(t)return lj(e),MC(n,e,t);if(aj.existsSync(e))throw new Error("dest already exists.");return MC(n,e,t)}function MC(n,e,t){try{aj.renameSync(n,e)}catch(i){if(i.code!=="EXDEV")throw i;return Nre(n,e,t)}}function Nre(n,e,t){return jre(n,e,{overwrite:t,errorOnExist:!0}),lj(n)}uj.exports=Ore});var dj=m((pEe,hj)=>{"use strict";hj.exports={moveSync:cj()}});var bj=m((mEe,mj)=>{"use strict";var Hre=Ge(),HC=require("path"),qre=jC().copy,pj=Vh().remove,Bre=mr().mkdirp,Yre=ks().pathExists,gj=Ya();function Wre(n,e,t,i){typeof t=="function"&&(i=t,t={});let r=t.overwrite||t.clobber||!1;gj.checkPaths(n,e,"move",t,(o,s)=>{if(o)return i(o);let{srcStat:a,isChangingCase:l=!1}=s;gj.checkParentPaths(n,a,e,"move",u=>{if(u)return i(u);if(Zre(e))return fj(n,e,r,l,i);Bre(HC.dirname(e),c=>c?i(c):fj(n,e,r,l,i))})})}function Zre(n){let e=HC.dirname(n);return HC.parse(e).root===e}function fj(n,e,t,i,r){if(i)return NC(n,e,t,r);if(t)return pj(e,o=>o?r(o):NC(n,e,t,r));Yre(e,(o,s)=>o?r(o):s?r(new Error("dest already exists.")):NC(n,e,t,r))}function NC(n,e,t,i){Hre.rename(n,e,r=>r?r.code!=="EXDEV"?i(r):Jre(n,e,t,i):i())}function Jre(n,e,t,i){qre(n,e,{overwrite:t,errorOnExist:!0},o=>o?i(o):pj(n,i))}mj.exports=Wre});var vj=m((bEe,yj)=>{"use strict";var $re=gt().fromCallback;yj.exports={move:$re(bj())}});var qC=m((yEe,wj)=>{"use strict";wj.exports=me(me(me(me(me(me(me(me(me(me(me(me({},Ba()),IC()),jC()),wI()),ZI()),oj()),mr()),dj()),vj()),jp()),ks()),Vh())});var Cj=m((vEe,xj)=>{xj.exports=()=>new Date});var Tj=m((wEe,Sj)=>{var Xre=jt()("streamroller:fileNameFormatter"),Ure=require("path"),Gre=".gz",Kre=".";Sj.exports=({file:n,keepFileExt:e,needsIndex:t,alwaysIncludeDate:i,compress:r,fileNameSep:o})=>{let s=o||Kre,a=Ure.join(n.dir,n.name),l=g=>g+n.ext,u=(g,f,p)=>(t||!p)&&f?g+s+f:g,c=(g,f,p)=>(f>0||i)&&p?g+s+p:g,h=(g,f)=>f&&r?g+Gre:g,d=e?[c,u,l,h]:[l,c,u,h];return({date:g,index:f})=>(Xre(`_formatFileName: date=${g}, index=${f}`),d.reduce((p,b)=>b(p,f,g),a))}});var _j=m((xEe,Ej)=>{var Wa=jt()("streamroller:fileNameParser"),kj=".gz",Dj=fp(),zre=".";Ej.exports=({file:n,keepFileExt:e,pattern:t,fileNameSep:i})=>{let r=i||zre,o=(d,g)=>d.endsWith(kj)?(Wa("it is gzipped"),g.isCompressed=!0,d.slice(0,-1*kj.length)):d,s="__NOT_MATCHING__",h=[o,e?d=>d.startsWith(n.name)&&d.endsWith(n.ext)?(Wa("it starts and ends with the right things"),d.slice(n.name.length+1,-1*n.ext.length)):s:d=>d.startsWith(n.base)?(Wa("it starts with the right things"),d.slice(n.base.length+1)):s,t?(d,g)=>{let f=d.split(r),p=f[f.length-1];Wa("items: ",f,", indexStr: ",p);let b=d;p!==void 0&&p.match(/^\d+$/)?(b=d.slice(0,-1*(p.length+1)),Wa(`dateStr is ${b}`),t&&!b&&(b=p,p="0")):p="0";try{let y=Dj.parse(t,b,new Date(0,0));return Dj.asString(t,y)!==b?d:(g.index=parseInt(p,10),g.date=b,g.timestamp=y.getTime(),"")}catch(y){return Wa(`Problem parsing ${b} as ${t}, error was: `,y),d}}:(d,g)=>d.match(/^\d+$/)?(Wa("it has an index"),g.index=parseInt(d,10),""):d];return d=>{let g={filename:d,index:0,isCompressed:!1};return h.reduce((p,b)=>b(p,g),d)?null:g}}});var Rj=m((CEe,Pj)=>{var Rs=jt()("streamroller:moveAndMaybeCompressFile"),Ps=qC(),Qre=require("zlib"),Vre=function(n){let e={mode:parseInt("0600",8),compress:!1},t=Object.assign({},e,n);return Rs(`_parseOption: moveAndMaybeCompressFile called with option=${JSON.stringify(t)}`),t},eoe=async(n,e,t)=>{if(t=Vre(t),n===e){Rs("moveAndMaybeCompressFile: source and target are the same, not doing anything");return}if(await Ps.pathExists(n))if(Rs(`moveAndMaybeCompressFile: moving file from ${n} to ${e} ${t.compress?"with":"without"} compress`),t.compress)await new Promise((i,r)=>{Ps.createReadStream(n).pipe(Qre.createGzip()).pipe(Ps.createWriteStream(e,{mode:t.mode})).on("finish",()=>{Rs(`moveAndMaybeCompressFile: finished compressing ${e}, deleting ${n}`),Ps.unlink(n).then(i).catch(()=>{Rs(`Deleting ${n} failed, truncating instead`),Ps.truncate(n).then(i).catch(r)})})});else{Rs(`moveAndMaybeCompressFile: deleting file=${e}, renaming ${n} to ${e}`);try{await Ps.move(n,e,{overwrite:!0})}catch(i){Rs(`moveAndMaybeCompressFile: error moving ${n} to ${e}`,i),Rs("Trying copy+truncate instead"),await Ps.copy(n,e,{overwrite:!0}),await Ps.truncate(n)}}};Pj.exports=eoe});var Ap=m((SEe,Ij)=>{var Pn=jt()("streamroller:RollingFileWriteStream"),id=qC(),Fp=require("path"),Op=Cj(),Mp=fp(),{Writable:toe}=require("stream"),ioe=Tj(),noe=_j(),roe=Rj(),Lj=class extends toe{constructor(e,t){Pn(`constructor: creating RollingFileWriteStream. path=${e}`);super(t);this.options=this._parseOption(t),this.fileObject=Fp.parse(e),this.fileObject.dir===""&&(this.fileObject=Fp.parse(Fp.join(process.cwd(),e))),this.fileFormatter=ioe({file:this.fileObject,alwaysIncludeDate:this.options.alwaysIncludePattern,needsIndex:this.options.maxSize<Number.MAX_SAFE_INTEGER,compress:this.options.compress,keepFileExt:this.options.keepFileExt,fileNameSep:this.options.fileNameSep}),this.fileNameParser=noe({file:this.fileObject,keepFileExt:this.options.keepFileExt,pattern:this.options.pattern,fileNameSep:this.options.fileNameSep}),this.state={currentSize:0},this.options.pattern&&(this.state.currentDate=Mp(this.options.pattern,Op())),this.filename=this.fileFormatter({index:0,date:this.state.currentDate}),["a","a+","as","as+"].includes(this.options.flags)&&this._setExistingSizeAndDate(),Pn(`constructor: create new file ${this.filename}, state=${JSON.stringify(this.state)}`),this._renewWriteStream()}_setExistingSizeAndDate(){try{let e=id.statSync(this.filename);this.state.currentSize=e.size,this.options.pattern&&(this.state.currentDate=Mp(this.options.pattern,e.mtime))}catch{return}}_parseOption(e){let t={maxSize:Number.MAX_SAFE_INTEGER,numToKeep:Number.MAX_SAFE_INTEGER,encoding:"utf8",mode:parseInt("0600",8),flags:"a",compress:!1,keepFileExt:!1,alwaysIncludePattern:!1},i=Object.assign({},t,e);if(i.maxSize<=0)throw new Error(`options.maxSize (${i.maxSize}) should be > 0`);if(i.numBackups||i.numBackups===0){if(i.numBackups<0)throw new Error(`options.numBackups (${i.numBackups}) should be >= 0`);if(i.numBackups>=Number.MAX_SAFE_INTEGER)throw new Error(`options.numBackups (${i.numBackups}) should be < Number.MAX_SAFE_INTEGER`);i.numToKeep=i.numBackups+1}else if(i.numToKeep<=0)throw new Error(`options.numToKeep (${i.numToKeep}) should be > 0`);return Pn(`_parseOption: creating stream with option=${JSON.stringify(i)}`),i}_final(e){this.currentFileStream.end("",this.options.encoding,e)}_write(e,t,i){this._shouldRoll().then(()=>{Pn(`_write: writing chunk. file=${this.currentFileStream.path} state=${JSON.stringify(this.state)} chunk=${e}`),this.currentFileStream.write(e,t,r=>{this.state.currentSize+=e.length,i(r)})})}async _shouldRoll(){(this._dateChanged()||this._tooBig())&&(Pn(`_shouldRoll: rolling because dateChanged? ${this._dateChanged()} or tooBig? ${this._tooBig()}`),await this._roll())}_dateChanged(){return this.state.currentDate&&this.state.currentDate!==Mp(this.options.pattern,Op())}_tooBig(){return this.state.currentSize>=this.options.maxSize}_roll(){return Pn("_roll: closing the current stream"),new Promise((e,t)=>{this.currentFileStream.end("",this.options.encoding,()=>{this._moveOldFiles().then(e).catch(t)})})}async _moveOldFiles(){let e=await this._getExistingFiles(),t=this.state.currentDate?e.filter(i=>i.date===this.state.currentDate):e;for(let i=t.length;i>=0;i--){Pn(`_moveOldFiles: i = ${i}`);let r=this.fileFormatter({date:this.state.currentDate,index:i}),o=this.fileFormatter({date:this.state.currentDate,index:i+1}),s={compress:this.options.compress&&i===0,mode:this.options.mode};await roe(r,o,s)}this.state.currentSize=0,this.state.currentDate=this.state.currentDate?Mp(this.options.pattern,Op()):null,Pn(`_moveOldFiles: finished rolling files. state=${JSON.stringify(this.state)}`),this._renewWriteStream(),await new Promise((i,r)=>{this.currentFileStream.write("","utf8",()=>{this._clean().then(i).catch(r)})})}async _getExistingFiles(){let e=await id.readdir(this.fileObject.dir).catch(()=>[]);Pn(`_getExistingFiles: files=${e}`);let t=e.map(r=>this.fileNameParser(r)).filter(r=>r),i=r=>(r.timestamp?r.timestamp:Op().getTime())-r.index;return t.sort((r,o)=>i(r)-i(o)),t}_renewWriteStream(){id.ensureDirSync(this.fileObject.dir);let e=this.fileFormatter({date:this.state.currentDate,index:0}),t={flags:this.options.flags,encoding:this.options.encoding,mode:this.options.mode};this.currentFileStream=id.createWriteStream(e,t),this.currentFileStream.on("error",i=>{this.emit("error",i)})}async _clean(){let e=await this._getExistingFiles();if(Pn(`_clean: numToKeep = ${this.options.numToKeep}, existingFiles = ${e.length}`),Pn("_clean: existing files are: ",e),this._tooManyFiles(e.length)){let t=e.slice(0,e.length-this.options.numToKeep).map(i=>Fp.format({dir:this.fileObject.dir,base:i.filename}));await ooe(t)}}_tooManyFiles(e){return this.options.numToKeep>0&&e>this.options.numToKeep}},ooe=n=>(Pn(`deleteFiles: files to delete: ${n}`),Promise.all(n.map(e=>id.unlink(e).catch(t=>{Pn(`deleteFiles: error when unlinking ${e}, ignoring. Error was ${t}`)}))));Ij.exports=Lj});var Oj=m((TEe,Fj)=>{var soe=Ap(),jj=class extends soe{constructor(e,t,i,r){r||(r={}),t&&(r.maxSize=t),!r.numBackups&&r.numBackups!==0&&(!i&&i!==0&&(i=1),r.numBackups=i);super(e,r);this.backups=r.numBackups,this.size=this.options.maxSize}get theStream(){return this.currentFileStream}};Fj.exports=jj});var Nj=m((kEe,Aj)=>{var aoe=Ap(),Mj=class extends aoe{constructor(e,t,i){t&&typeof t=="object"&&(i=t,t=null),i||(i={}),t||(t="yyyy-MM-dd"),i.pattern=t,!i.numBackups&&i.numBackups!==0?(!i.daysToKeep&&i.daysToKeep!==0?i.daysToKeep=1:process.emitWarning("options.daysToKeep is deprecated due the confusion it causes when used together with file size rolling. Please use options.numBackups instead.","DeprecationWarning","StreamRoller0001"),i.numBackups=i.daysToKeep):i.daysToKeep=i.numBackups;super(e,i);this.mode=this.options.mode}get theStream(){return this.currentFileStream}};Aj.exports=Mj});var BC=m((DEe,Hj)=>{Hj.exports={RollingFileWriteStream:Ap(),RollingFileStream:Oj(),DateRollingFileStream:Nj()}});var Zj=m((EEe,Wj)=>{var qj=jt()("log4js:file"),loe=require("path"),uoe=BC(),coe=require("os"),hoe=coe.EOL,Np=!1,Hp=new Set;function Bj(){Hp.forEach(n=>{n.sighupHandler()})}function Yj(n,e,t,i){let r=new uoe.RollingFileStream(n,e,t,i);return r.on("error",o=>{console.error("log4js.fileAppender - Writing to file %s, error happened ",n,o)}),r.on("drain",()=>{process.emit("log4js:pause",!1)}),r}function doe(n,e,t,i,r,o){n=loe.normalize(n),i=!i&&i!==0?5:i,qj("Creating file appender (",n,", ",t,", ",i,", ",r,", ",o,")");let s=Yj(n,t,i,r),a=function(l){if(!!s.writable){if(r.removeColor===!0){let u=/\x1b[[0-9;]*m/g;l.data=l.data.map(c=>typeof c=="string"?c.replace(u,""):c)}s.write(e(l,o)+hoe,"utf8")||process.emit("log4js:pause",!0)}};return a.reopen=function(){s.end(()=>{s=Yj(n,t,i,r)})},a.sighupHandler=function(){qj("SIGHUP handler called."),a.reopen()},a.shutdown=function(l){Hp.delete(a),Hp.size===0&&Np&&(process.removeListener("SIGHUP",Bj),Np=!1),s.end("","utf-8",l)},Hp.add(a),Np||(process.on("SIGHUP",Bj),Np=!0),a}function goe(n,e){let t=e.basicLayout;return n.layout&&(t=e.layout(n.layout.type,n.layout)),n.mode=n.mode||384,doe(n.filename,t,n.maxLogSize,n.backups,n,n.timezoneOffset)}Wj.exports.configure=goe});var $j=m((_Ee,Jj)=>{var foe=BC(),poe=require("os"),moe=poe.EOL;function boe(n,e,t){let i=new foe.DateRollingFileStream(n,e,t);return i.on("error",r=>{console.error("log4js.dateFileAppender - Writing to file %s, error happened ",n,r)}),i.on("drain",()=>{process.emit("log4js:pause",!1)}),i}function yoe(n,e,t,i,r){i.maxSize=i.maxLogSize;let o=boe(n,e,i),s=function(a){!o.writable||o.write(t(a,r)+moe,"utf8")||process.emit("log4js:pause",!0)};return s.shutdown=function(a){o.end("","utf-8",a)},s}function voe(n,e){let t=e.basicLayout;return n.layout&&(t=e.layout(n.layout.type,n.layout)),n.alwaysIncludePattern||(n.alwaysIncludePattern=!1),n.mode=n.mode||384,yoe(n.filename,n.pattern,t,n,n.timezoneOffset)}Jj.exports.configure=voe});var Kj=m((PEe,Gj)=>{var Do=jt()("log4js:fileSync"),yu=require("path"),Zr=require("fs"),woe=require("os"),xoe=woe.EOL||`
`;function Xj(n,e){if(Zr.existsSync(n))return;let t=Zr.openSync(n,e.flags,e.mode);Zr.closeSync(t)}var Uj=class{constructor(e,t,i,r){Do("In RollingFileStream");function o(){if(!e||!t||t<=0)throw new Error("You must specify a filename and file size")}o(),this.filename=e,this.size=t,this.backups=i,this.options=r,this.currentSize=0;function s(a){let l=0;try{l=Zr.statSync(a).size}catch{Xj(a,r)}return l}this.currentSize=s(this.filename)}shouldRoll(){return Do("should roll with current size %d, and max size %d",this.currentSize,this.size),this.currentSize>=this.size}roll(e){let t=this,i=new RegExp(`^${yu.basename(e)}`);function r(u){return i.test(u)}function o(u){return parseInt(u.substring(`${yu.basename(e)}.`.length),10)||0}function s(u,c){return o(u)>o(c)?1:o(u)<o(c)?-1:0}function a(u){let c=o(u);if(Do(`Index of ${u} is ${c}`),t.backups===0)Zr.truncateSync(e,0);else if(c<t.backups){try{Zr.unlinkSync(`${e}.${c+1}`)}catch{}Do(`Renaming ${u} -> ${e}.${c+1}`),Zr.renameSync(yu.join(yu.dirname(e),u),`${e}.${c+1}`)}}function l(){Do("Renaming the old files"),Zr.readdirSync(yu.dirname(e)).filter(r).sort(s).reverse().forEach(a)}Do("Rolling, rolling, rolling"),l()}write(e,t){let i=this;function r(){Do("writing the chunk to the file"),i.currentSize+=e.length,Zr.appendFileSync(i.filename,e)}Do("in write"),this.shouldRoll()&&(this.currentSize=0,this.roll(this.filename)),r()}};function Coe(n,e,t,i,r,o){Do("fileSync appender created"),n=yu.normalize(n),i=!i&&i!==0?5:i;function s(l,u,c){let h;return u?h=new Uj(l,u,c,o):h=(d=>(Xj(d,o),{write(g){Zr.appendFileSync(d,g)}}))(l),h}let a=s(n,t,i);return l=>{a.write(e(l,r)+xoe)}}function Soe(n,e){let t=e.basicLayout;n.layout&&(t=e.layout(n.layout.type,n.layout));let i={flags:n.flags||"a",encoding:n.encoding||"utf8",mode:n.mode||384};return Coe(n.filename,t,n.maxLogSize,n.backups,n.timezoneOffset,i)}Gj.exports.configure=Soe});var Qj=m((REe,zj)=>{var Jr=jt()("log4js:tcp"),Toe=require("net");function koe(n,e){let t=!1,i=[],r,o=3,s="__LOG4JS__";function a(h){Jr("Writing log event to socket"),t=r.write(`${e(h)}${s}`,"utf8")}function l(){let h;for(Jr("emptying buffer");h=i.shift();)a(h)}function u(){Jr(`appender creating socket to ${n.host||"localhost"}:${n.port||5e3}`),s=`${n.endMsg||"__LOG4JS__"}`,r=Toe.createConnection(n.port||5e3,n.host||"localhost"),r.on("connect",()=>{Jr("socket connected"),l(),t=!0}),r.on("drain",()=>{Jr("drain event received, emptying buffer"),t=!0,l()}),r.on("timeout",r.end.bind(r)),r.on("error",h=>{Jr("connection error",h),t=!1,l()}),r.on("close",u)}u();function c(h){t?a(h):(Jr("buffering log event because it cannot write at the moment"),i.push(h))}return c.shutdown=function(h){Jr("shutdown called"),i.length&&o?(Jr("buffer has items, waiting 100ms to empty"),o-=1,setTimeout(()=>{c.shutdown(h)},100)):(r.removeAllListeners("close"),r.end(h))},c}function Doe(n,e){Jr(`configure with config = ${n}`);let t=function(i){return i.serialise()};return n.layout&&(t=e.layout(n.layout.type,n.layout)),koe(n,t)}zj.exports.configure=Doe});var ZC=m((LEe,WC)=>{var Eoe=require("path"),Za=jt()("log4js:appenders"),Jn=Aa(),Vj=yp(),_oe=qa(),Poe=yC(),Roe=nL(),yr=new Map;yr.set("console",oL());yr.set("stdout",aL());yr.set("stderr",uL());yr.set("logLevelFilter",hL());yr.set("categoryFilter",fL());yr.set("noLogFilter",bL());yr.set("file",Zj());yr.set("dateFile",$j());yr.set("fileSync",Kj());yr.set("tcp",Qj());var nd=new Map,YC=(n,e)=>{Za("Loading module from ",n);try{return require(n)}catch(t){Jn.throwExceptionIf(e,t.code!=="MODULE_NOT_FOUND",`appender "${n}" could not be loaded (error was: ${t})`);return}},Loe=(n,e)=>yr.get(n)||YC(`./${n}`,e)||YC(n,e)||""||YC(Eoe.join(process.cwd(),n),e),qp=new Set,eF=(n,e)=>{if(nd.has(n))return nd.get(n);if(!e.appenders[n])return!1;if(qp.has(n))throw new Error(`Dependency loop detected for appender ${n}.`);qp.add(n),Za(`Creating appender ${n}`);let t=Ioe(n,e);return qp.delete(n),nd.set(n,t),t},Ioe=(n,e)=>{let t=e.appenders[n],i=t.type.configure?t.type:Loe(t.type,e);return Jn.throwExceptionIf(e,Jn.not(i),`appender "${n}" is not valid (type "${t.type}" could not be found)`),i.appender&&Za(`DEPRECATION: Appender ${t.type} exports an appender function.`),i.shutdown&&Za(`DEPRECATION: Appender ${t.type} exports a shutdown function.`),Za(`${n}: clustering.isMaster ? ${Vj.isMaster()}`),Za(`${n}: appenderModule is ${require("util").inspect(i)}`),Vj.onlyOnMaster(()=>(Za(`calling appenderModule.configure for ${n} / ${t.type}`),i.configure(Roe.modifyConfig(t),Poe,r=>eF(r,e),_oe)),()=>{})},tF=n=>{nd.clear(),qp.clear();let e=[];Object.values(n.categories).forEach(t=>{e.push(...t.appenders)}),Object.keys(n.appenders).forEach(t=>{(e.includes(t)||n.appenders[t].type==="tcp-server")&&eF(t,n)})},iF=()=>{tF({appenders:{out:{type:"stdout"}},categories:{default:{appenders:["out"],level:"trace"}}})};iF();Jn.addListener(n=>{Jn.throwExceptionIf(n,Jn.not(Jn.anObject(n.appenders)),'must have a property "appenders" of type object.');let e=Object.keys(n.appenders);Jn.throwExceptionIf(n,Jn.not(e.length),"must define at least one appender."),e.forEach(t=>{Jn.throwExceptionIf(n,Jn.not(n.appenders[t].type),`appender "${t}" is not valid (must be an object with property "type")`)})});Jn.addListener(tF);WC.exports=nd;WC.exports.init=iF});var $C=m((IEe,Bp)=>{var Ja=jt()("log4js:categories"),Ft=Aa(),JC=qa(),nF=ZC(),$a=new Map;function rF(n,e,t){if(e.inherit===!1)return;let i=t.lastIndexOf(".");if(i<0)return;let r=t.substring(0,i),o=n.categories[r];o||(o={inherit:!0,appenders:[]}),rF(n,o,r),!n.categories[r]&&o.appenders&&o.appenders.length&&o.level&&(n.categories[r]=o),e.appenders=e.appenders||[],e.level=e.level||o.level,o.appenders.forEach(s=>{e.appenders.includes(s)||e.appenders.push(s)}),e.parent=o}function joe(n){if(!n.categories)return;Object.keys(n.categories).forEach(t=>{let i=n.categories[t];rF(n,i,t)})}Ft.addPreProcessingListener(n=>joe(n));Ft.addListener(n=>{Ft.throwExceptionIf(n,Ft.not(Ft.anObject(n.categories)),'must have a property "categories" of type object.');let e=Object.keys(n.categories);Ft.throwExceptionIf(n,Ft.not(e.length),"must define at least one category."),e.forEach(t=>{let i=n.categories[t];Ft.throwExceptionIf(n,[Ft.not(i.appenders),Ft.not(i.level)],`category "${t}" is not valid (must be an object with properties "appenders" and "level")`),Ft.throwExceptionIf(n,Ft.not(Array.isArray(i.appenders)),`category "${t}" is not valid (appenders must be an array of appender names)`),Ft.throwExceptionIf(n,Ft.not(i.appenders.length),`category "${t}" is not valid (appenders must contain at least one appender name)`),Object.prototype.hasOwnProperty.call(i,"enableCallStack")&&Ft.throwExceptionIf(n,typeof i.enableCallStack!="boolean",`category "${t}" is not valid (enableCallStack must be boolean type)`),i.appenders.forEach(r=>{Ft.throwExceptionIf(n,Ft.not(nF.get(r)),`category "${t}" is not valid (appender "${r}" is not defined)`)}),Ft.throwExceptionIf(n,Ft.not(JC.getLevel(i.level)),`category "${t}" is not valid (level "${i.level}" not recognised; valid levels are ${JC.levels.join(", ")})`)}),Ft.throwExceptionIf(n,Ft.not(n.categories.default),'must define a "default" category.')});var oF=n=>{$a.clear(),Object.keys(n.categories).forEach(t=>{let i=n.categories[t],r=[];i.appenders.forEach(o=>{r.push(nF.get(o)),Ja(`Creating category ${t}`),$a.set(t,{appenders:r,level:JC.getLevel(i.level),enableCallStack:i.enableCallStack||!1})})})},sF=()=>{oF({categories:{default:{appenders:["out"],level:"OFF"}}})};sF();Ft.addListener(oF);var Xa=n=>(Ja(`configForCategory: searching for config for ${n}`),$a.has(n)?(Ja(`configForCategory: ${n} exists in config, returning it`),$a.get(n)):n.indexOf(".")>0?(Ja(`configForCategory: ${n} has hierarchy, searching for parents`),Xa(n.substring(0,n.lastIndexOf(".")))):(Ja("configForCategory: returning config for default category"),Xa("default"))),Foe=n=>Xa(n).appenders,Ooe=n=>Xa(n).level,Moe=(n,e)=>{let t=$a.get(n);if(Ja(`setLevelForCategory: found ${t} for ${n}`),!t){let i=Xa(n);Ja(`setLevelForCategory: no config found for category, found ${i} for parents of ${n}`),t={appenders:i.appenders}}t.level=e,$a.set(n,t)},Aoe=n=>Xa(n).enableCallStack===!0,Noe=(n,e)=>{Xa(n).enableCallStack=e};Bp.exports=$a;Bp.exports=Object.assign(Bp.exports,{appendersForCategory:Foe,getLevelForCategory:Ooe,setLevelForCategory:Moe,getEnableCallStackForCategory:Aoe,setEnableCallStackForCategory:Noe,init:sF})});var cF=m((jEe,uF)=>{var aF=jt()("log4js:logger"),Hoe=vC(),Eo=qa(),qoe=yp(),Yp=$C(),Boe=Aa(),Yoe=/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/;function Woe(n,e=4){let t=n.stack.split(`
`).slice(e),i=Yoe.exec(t[0]);return i&&i.length===6?{functionName:i[1],fileName:i[2],lineNumber:parseInt(i[3],10),columnNumber:parseInt(i[4],10),callStack:t.join(`
`)}:null}var Wp=class{constructor(e){if(!e)throw new Error("No category provided.");this.category=e,this.context={},this.parseCallStack=Woe,aF(`Logger created (${this.category}, ${this.level})`)}get level(){return Eo.getLevel(Yp.getLevelForCategory(this.category),Eo.TRACE)}set level(e){Yp.setLevelForCategory(this.category,Eo.getLevel(e,this.level))}get useCallStack(){return Yp.getEnableCallStackForCategory(this.category)}set useCallStack(e){Yp.setEnableCallStackForCategory(this.category,e===!0)}log(e,...t){let i=Eo.getLevel(e);i||(this._log(Eo.WARN,"log4js:logger.log: invalid value for log-level as first parameter given: ",e),i=Eo.INFO),this.isLevelEnabled(i)&&this._log(i,t)}isLevelEnabled(e){return this.level.isLessThanOrEqualTo(e)}_log(e,t){aF(`sending log data (${e}) to appenders`);let i=new Hoe(this.category,e,t,this.context,this.useCallStack&&this.parseCallStack(new Error));qoe.send(i)}addContext(e,t){this.context[e]=t}removeContext(e){delete this.context[e]}clearContext(){this.context={}}setParseCallStackFunction(e){this.parseCallStack=e}};function lF(n){let e=Eo.getLevel(n),i=e.toString().toLowerCase().replace(/_([a-z])/g,o=>o[1].toUpperCase()),r=i[0].toUpperCase()+i.slice(1);Wp.prototype[`is${r}Enabled`]=function(){return this.isLevelEnabled(e)},Wp.prototype[i]=function(...o){this.log(e,...o)}}Eo.levels.forEach(lF);Boe.addListener(()=>{Eo.levels.forEach(lF)});uF.exports=Wp});var gF=m((FEe,dF)=>{var vu=qa(),Zoe=':remote-addr - - ":method :url HTTP/:http-version" :status :content-length ":referrer" ":user-agent"';function Joe(n){return n.originalUrl||n.url}function $oe(n,e,t){let i=o=>{let s=o.concat();for(let a=0;a<s.length;++a)for(let l=a+1;l<s.length;++l)s[a].token==s[l].token&&s.splice(l--,1);return s},r=[];return r.push({token:":url",replacement:Joe(n)}),r.push({token:":protocol",replacement:n.protocol}),r.push({token:":hostname",replacement:n.hostname}),r.push({token:":method",replacement:n.method}),r.push({token:":status",replacement:e.__statusCode||e.statusCode}),r.push({token:":response-time",replacement:e.responseTime}),r.push({token:":date",replacement:new Date().toUTCString()}),r.push({token:":referrer",replacement:n.headers.referer||n.headers.referrer||""}),r.push({token:":http-version",replacement:`${n.httpVersionMajor}.${n.httpVersionMinor}`}),r.push({token:":remote-addr",replacement:n.headers["x-forwarded-for"]||n.ip||n._remoteAddress||n.socket&&(n.socket.remoteAddress||n.socket.socket&&n.socket.socket.remoteAddress)}),r.push({token:":user-agent",replacement:n.headers["user-agent"]}),r.push({token:":content-length",replacement:e.getHeader("content-length")||e.__headers&&e.__headers["Content-Length"]||"-"}),r.push({token:/:req\[([^\]]+)]/g,replacement(o,s){return n.headers[s.toLowerCase()]}}),r.push({token:/:res\[([^\]]+)]/g,replacement(o,s){return e.getHeader(s.toLowerCase())||e.__headers&&e.__headers[s]}}),i(t.concat(r))}function hF(n,e){for(let t=0;t<e.length;t++)n=n.replace(e[t].token,e[t].replacement);return n}function Xoe(n){let e=null;if(n instanceof RegExp&&(e=n),typeof n=="string"&&(e=new RegExp(n)),Array.isArray(n)){let t=n.map(i=>i.source?i.source:i);e=new RegExp(t.join("|"))}return e}function Uoe(n,e,t){let i=e;if(t){let r=t.find(o=>{let s=!1;return o.from&&o.to?s=n>=o.from&&n<=o.to:s=o.codes.indexOf(n)!==-1,s});r&&(i=vu.getLevel(r.level,i))}return i}dF.exports=function(e,t){typeof t=="string"||typeof t=="function"?t={format:t}:t=t||{};let i=e,r=vu.getLevel(t.level,vu.INFO),o=t.format||Zoe,s=Xoe(t.nolog);return(a,l,u)=>{if(a._logging||s&&s.test(a.originalUrl))return u();if(i.isLevelEnabled(r)||t.level==="auto"){let c=new Date,{writeHead:h}=l;a._logging=!0,l.writeHead=(d,g)=>{l.writeHead=h,l.writeHead(d,g),l.__statusCode=d,l.__headers=g||{}},l.on("finish",()=>{l.responseTime=new Date-c,l.statusCode&&t.level==="auto"&&(r=vu.INFO,l.statusCode>=300&&(r=vu.WARN),l.statusCode>=400&&(r=vu.ERROR)),r=Uoe(l.statusCode,r,t.statusRules);let d=$oe(a,l,t.tokens||[]);if(t.context&&i.addContext("res",l),typeof o=="function"){let g=o(a,l,f=>hF(f,d));g&&i.log(r,g)}else i.log(r,hF(o,d));t.context&&i.removeContext("res")})}return u()}}});var yF=m((OEe,bF)=>{var fF=jt()("log4js:recording"),Zp=[];function Goe(){return function(n){fF(`received logEvent, number of events now ${Zp.length+1}`),fF("log event was ",n),Zp.push(n)}}function pF(){return Zp.slice()}function mF(){Zp.length=0}bF.exports={configure:Goe,replay:pF,playback:pF,reset:mF,erase:mF}});var XC=m((MEe,TF)=>{var Ls=jt()("log4js:main"),Koe=require("fs"),zoe=yR()({proto:!0}),Qoe=Aa(),Voe=yC(),ese=qa(),vF=ZC(),wF=$C(),tse=cF(),ise=yp(),nse=gF(),rse=yF(),rd=!1;function ose(n){if(!rd)return;Ls("Received log event ",n),wF.appendersForCategory(n.categoryName).forEach(t=>{t(n)})}function sse(n){Ls(`Loading configuration from ${n}`);try{return JSON.parse(Koe.readFileSync(n,"utf8"))}catch(e){throw new Error(`Problem reading config from file "${n}". Error was ${e.message}`,e)}}function xF(n){rd&&CF();let e=n;return typeof e=="string"&&(e=sse(n)),Ls(`Configuration is ${e}`),Qoe.configure(zoe(e)),ise.onMessage(ose),rd=!0,SF}function ase(){return rse}function CF(n){Ls("Shutdown called. Disabling all log writing."),rd=!1;let e=Array.from(vF.values());vF.init(),wF.init();let t=e.reduceRight((s,a)=>a.shutdown?s+1:s,0);if(t===0)return Ls("No appenders with shutdown functions found."),n!==void 0&&n();let i=0,r;Ls(`Found ${t} appenders with shutdown functions.`);function o(s){r=r||s,i+=1,Ls(`Appender shutdowns complete: ${i} / ${t}`),i>=t&&(Ls("All shutdown functions completed."),n&&n(r))}return e.filter(s=>s.shutdown).forEach(s=>s.shutdown(o)),null}function lse(n){return rd||xF(process.env.LOG4JS_CONFIG||{appenders:{out:{type:"stdout"}},categories:{default:{appenders:["out"],level:"OFF"}}}),new tse(n||"default")}var SF={getLogger:lse,configure:xF,shutdown:CF,connectLogger:nse,levels:ese,addLayout:Voe.addLayout,recording:ase};TF.exports=SF});var od=m(Is=>{"use strict";var kF=gt().fromCallback,Yi=Ge(),use=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(n=>typeof Yi[n]=="function");Object.keys(Yi).forEach(n=>{n!=="promises"&&(Is[n]=Yi[n])});use.forEach(n=>{Is[n]=kF(Yi[n])});Is.exists=function(n,e){return typeof e=="function"?Yi.exists(n,e):new Promise(t=>Yi.exists(n,t))};Is.read=function(n,e,t,i,r,o){return typeof o=="function"?Yi.read(n,e,t,i,r,o):new Promise((s,a)=>{Yi.read(n,e,t,i,r,(l,u,c)=>{if(l)return a(l);s({bytesRead:u,buffer:c})})})};Is.write=function(n,e,...t){return typeof t[t.length-1]=="function"?Yi.write(n,e,...t):new Promise((i,r)=>{Yi.write(n,e,...t,(o,s,a)=>{if(o)return r(o);i({bytesWritten:s,buffer:a})})})};typeof Yi.writev=="function"&&(Is.writev=function(n,e,...t){return typeof t[t.length-1]=="function"?Yi.writev(n,e,...t):new Promise((i,r)=>{Yi.writev(n,e,...t,(o,s,a)=>{if(o)return r(o);i({bytesWritten:s,buffers:a})})})});typeof Yi.realpath.native=="function"&&(Is.realpath.native=kF(Yi.realpath.native))});var UC=m((NEe,DF)=>{DF.exports=n=>{let e=process.versions.node.split(".").map(t=>parseInt(t,10));return n=n.split(".").map(t=>parseInt(t,10)),e[0]>n[0]||e[0]===n[0]&&(e[1]>n[1]||e[1]===n[1]&&e[2]>=n[2])}});var LF=m((HEe,GC)=>{"use strict";var wu=od(),_o=require("path"),cse=UC(),EF=cse("10.12.0"),_F=n=>{if(process.platform==="win32"&&/[<>:"|?*]/.test(n.replace(_o.parse(n).root,""))){let t=new Error(`Path contains invalid characters: ${n}`);throw t.code="EINVAL",t}},PF=n=>{let e={mode:511};return typeof n=="number"&&(n={mode:n}),me(me({},e),n)},RF=n=>{let e=new Error(`operation not permitted, mkdir '${n}'`);return e.code="EPERM",e.errno=-4048,e.path=n,e.syscall="mkdir",e};GC.exports.makeDir=async(n,e)=>{if(_F(n),e=PF(e),EF){let i=_o.resolve(n);return wu.mkdir(i,{mode:e.mode,recursive:!0})}let t=async i=>{try{await wu.mkdir(i,e.mode)}catch(r){if(r.code==="EPERM")throw r;if(r.code==="ENOENT"){if(_o.dirname(i)===i)throw RF(i);if(r.message.includes("null bytes"))throw r;return await t(_o.dirname(i)),t(i)}try{if(!(await wu.stat(i)).isDirectory())throw new Error("The path is not a directory")}catch{throw r}}};return t(_o.resolve(n))};GC.exports.makeDirSync=(n,e)=>{if(_F(n),e=PF(e),EF){let i=_o.resolve(n);return wu.mkdirSync(i,{mode:e.mode,recursive:!0})}let t=i=>{try{wu.mkdirSync(i,e.mode)}catch(r){if(r.code==="EPERM")throw r;if(r.code==="ENOENT"){if(_o.dirname(i)===i)throw RF(i);if(r.message.includes("null bytes"))throw r;return t(_o.dirname(i)),t(i)}try{if(!wu.statSync(i).isDirectory())throw new Error("The path is not a directory")}catch{throw r}}};return t(_o.resolve(n))}});var vr=m((qEe,IF)=>{"use strict";var hse=gt().fromPromise,{makeDir:dse,makeDirSync:KC}=LF(),zC=hse(dse);IF.exports={mkdirs:zC,mkdirsSync:KC,mkdirp:zC,mkdirpSync:KC,ensureDir:zC,ensureDirSync:KC}});var QC=m((BEe,jF)=>{"use strict";var xu=Ge();function gse(n,e,t,i){xu.open(n,"r+",(r,o)=>{if(r)return i(r);xu.futimes(o,e,t,s=>{xu.close(o,a=>{i&&i(s||a)})})})}function fse(n,e,t){let i=xu.openSync(n,"r+");return xu.futimesSync(i,e,t),xu.closeSync(i)}jF.exports={utimesMillis:gse,utimesMillisSync:fse}});var sd=m((YEe,AF)=>{"use strict";var Cu=od(),rn=require("path"),pse=require("util"),mse=UC(),Jp=mse("10.5.0"),FF=n=>Jp?Cu.stat(n,{bigint:!0}):Cu.stat(n),VC=n=>Jp?Cu.statSync(n,{bigint:!0}):Cu.statSync(n);function bse(n,e){return Promise.all([FF(n),FF(e).catch(t=>{if(t.code==="ENOENT")return null;throw t})]).then(([t,i])=>({srcStat:t,destStat:i}))}function yse(n,e){let t,i=VC(n);try{t=VC(e)}catch(r){if(r.code==="ENOENT")return{srcStat:i,destStat:null};throw r}return{srcStat:i,destStat:t}}function vse(n,e,t,i){pse.callbackify(bse)(n,e,(r,o)=>{if(r)return i(r);let{srcStat:s,destStat:a}=o;return a&&$p(s,a)?i(new Error("Source and destination must not be the same.")):s.isDirectory()&&eS(n,e)?i(new Error(Xp(n,e,t))):i(null,{srcStat:s,destStat:a})})}function wse(n,e,t){let{srcStat:i,destStat:r}=yse(n,e);if(r&&$p(i,r))throw new Error("Source and destination must not be the same.");if(i.isDirectory()&&eS(n,e))throw new Error(Xp(n,e,t));return{srcStat:i,destStat:r}}function OF(n,e,t,i,r){let o=rn.resolve(rn.dirname(n)),s=rn.resolve(rn.dirname(t));if(s===o||s===rn.parse(s).root)return r();let a=(l,u)=>l?l.code==="ENOENT"?r():r(l):$p(e,u)?r(new Error(Xp(n,t,i))):OF(n,e,s,i,r);Jp?Cu.stat(s,{bigint:!0},a):Cu.stat(s,a)}function MF(n,e,t,i){let r=rn.resolve(rn.dirname(n)),o=rn.resolve(rn.dirname(t));if(o===r||o===rn.parse(o).root)return;let s;try{s=VC(o)}catch(a){if(a.code==="ENOENT")return;throw a}if($p(e,s))throw new Error(Xp(n,t,i));return MF(n,e,o,i)}function $p(n,e){return!!(e.ino&&e.dev&&e.ino===n.ino&&e.dev===n.dev&&(Jp||e.ino<Number.MAX_SAFE_INTEGER||e.size===n.size&&e.mode===n.mode&&e.nlink===n.nlink&&e.atimeMs===n.atimeMs&&e.mtimeMs===n.mtimeMs&&e.ctimeMs===n.ctimeMs&&e.birthtimeMs===n.birthtimeMs))}function eS(n,e){let t=rn.resolve(n).split(rn.sep).filter(r=>r),i=rn.resolve(e).split(rn.sep).filter(r=>r);return t.reduce((r,o,s)=>r&&i[s]===o,!0)}function Xp(n,e,t){return`Cannot ${t} '${n}' to a subdirectory of itself, '${e}'.`}AF.exports={checkPaths:vse,checkPathsSync:wse,checkParentPaths:OF,checkParentPathsSync:MF,isSrcSubdir:eS}});var YF=m((WEe,BF)=>{"use strict";var ki=Ge(),ad=require("path"),xse=vr().mkdirsSync,Cse=QC().utimesMillisSync,ld=sd();function Sse(n,e,t){typeof t=="function"&&(t={filter:t}),t=t||{},t.clobber="clobber"in t?!!t.clobber:!0,t.overwrite="overwrite"in t?!!t.overwrite:t.clobber,t.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:i,destStat:r}=ld.checkPathsSync(n,e,"copy");return ld.checkParentPathsSync(n,i,e,"copy"),Tse(r,n,e,t)}function Tse(n,e,t,i){if(i.filter&&!i.filter(e,t))return;let r=ad.dirname(t);return ki.existsSync(r)||xse(r),NF(n,e,t,i)}function NF(n,e,t,i){if(!(i.filter&&!i.filter(e,t)))return kse(n,e,t,i)}function kse(n,e,t,i){let o=(i.dereference?ki.statSync:ki.lstatSync)(e);if(o.isDirectory())return Ise(o,n,e,t,i);if(o.isFile()||o.isCharacterDevice()||o.isBlockDevice())return Dse(o,n,e,t,i);if(o.isSymbolicLink())return Ose(n,e,t,i)}function Dse(n,e,t,i,r){return e?Ese(n,t,i,r):HF(n,t,i,r)}function Ese(n,e,t,i){if(i.overwrite)return ki.unlinkSync(t),HF(n,e,t,i);if(i.errorOnExist)throw new Error(`'${t}' already exists`)}function HF(n,e,t,i){return ki.copyFileSync(e,t),i.preserveTimestamps&&_se(n.mode,e,t),tS(t,n.mode)}function _se(n,e,t){return Pse(n)&&Rse(t,n),Lse(e,t)}function Pse(n){return(n&128)===0}function Rse(n,e){return tS(n,e|128)}function tS(n,e){return ki.chmodSync(n,e)}function Lse(n,e){let t=ki.statSync(n);return Cse(e,t.atime,t.mtime)}function Ise(n,e,t,i,r){if(!e)return jse(n.mode,t,i,r);if(e&&!e.isDirectory())throw new Error(`Cannot overwrite non-directory '${i}' with directory '${t}'.`);return qF(t,i,r)}function jse(n,e,t,i){return ki.mkdirSync(t),qF(e,t,i),tS(t,n)}function qF(n,e,t){ki.readdirSync(n).forEach(i=>Fse(i,n,e,t))}function Fse(n,e,t,i){let r=ad.join(e,n),o=ad.join(t,n),{destStat:s}=ld.checkPathsSync(r,o,"copy");return NF(s,r,o,i)}function Ose(n,e,t,i){let r=ki.readlinkSync(e);if(i.dereference&&(r=ad.resolve(process.cwd(),r)),n){let o;try{o=ki.readlinkSync(t)}catch(s){if(s.code==="EINVAL"||s.code==="UNKNOWN")return ki.symlinkSync(r,t);throw s}if(i.dereference&&(o=ad.resolve(process.cwd(),o)),ld.isSrcSubdir(r,o))throw new Error(`Cannot copy '${r}' to a subdirectory of itself, '${o}'.`);if(ki.statSync(t).isDirectory()&&ld.isSrcSubdir(o,r))throw new Error(`Cannot overwrite '${o}' with '${r}'.`);return Mse(r,t)}else return ki.symlinkSync(r,t)}function Mse(n,e){return ki.unlinkSync(e),ki.symlinkSync(n,e)}BF.exports=Sse});var iS=m((ZEe,WF)=>{"use strict";WF.exports={copySync:YF()}});var js=m((JEe,JF)=>{"use strict";var Ase=gt().fromPromise,ZF=od();function Nse(n){return ZF.access(n).then(()=>!0).catch(()=>!1)}JF.exports={pathExists:Ase(Nse),pathExistsSync:ZF.existsSync}});var eO=m(($Ee,VF)=>{"use strict";var on=Ge(),ud=require("path"),Hse=vr().mkdirs,qse=js().pathExists,Bse=QC().utimesMillis,cd=sd();function Yse(n,e,t,i){typeof t=="function"&&!i?(i=t,t={}):typeof t=="function"&&(t={filter:t}),i=i||function(){},t=t||{},t.clobber="clobber"in t?!!t.clobber:!0,t.overwrite="overwrite"in t?!!t.overwrite:t.clobber,t.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
see https://github.com/jprichardson/node-fs-extra/issues/269`),cd.checkPaths(n,e,"copy",(r,o)=>{if(r)return i(r);let{srcStat:s,destStat:a}=o;cd.checkParentPaths(n,s,e,"copy",l=>l?i(l):t.filter?GF($F,a,n,e,t,i):$F(a,n,e,t,i))})}function $F(n,e,t,i,r){let o=ud.dirname(t);qse(o,(s,a)=>{if(s)return r(s);if(a)return nS(n,e,t,i,r);Hse(o,l=>l?r(l):nS(n,e,t,i,r))})}function GF(n,e,t,i,r,o){Promise.resolve(r.filter(t,i)).then(s=>s?n(e,t,i,r,o):o(),s=>o(s))}function nS(n,e,t,i,r){return i.filter?GF(XF,n,e,t,i,r):XF(n,e,t,i,r)}function XF(n,e,t,i,r){(i.dereference?on.stat:on.lstat)(e,(s,a)=>{if(s)return r(s);if(a.isDirectory())return Gse(a,n,e,t,i,r);if(a.isFile()||a.isCharacterDevice()||a.isBlockDevice())return Wse(a,n,e,t,i,r);if(a.isSymbolicLink())return Qse(n,e,t,i,r)})}function Wse(n,e,t,i,r,o){return e?Zse(n,t,i,r,o):KF(n,t,i,r,o)}function Zse(n,e,t,i,r){if(i.overwrite)on.unlink(t,o=>o?r(o):KF(n,e,t,i,r));else return i.errorOnExist?r(new Error(`'${t}' already exists`)):r()}function KF(n,e,t,i,r){on.copyFile(e,t,o=>o?r(o):i.preserveTimestamps?Jse(n.mode,e,t,r):Up(t,n.mode,r))}function Jse(n,e,t,i){return $se(n)?Xse(t,n,r=>r?i(r):UF(n,e,t,i)):UF(n,e,t,i)}function $se(n){return(n&128)===0}function Xse(n,e,t){return Up(n,e|128,t)}function UF(n,e,t,i){Use(e,t,r=>r?i(r):Up(t,n,i))}function Up(n,e,t){return on.chmod(n,e,t)}function Use(n,e,t){on.stat(n,(i,r)=>i?t(i):Bse(e,r.atime,r.mtime,t))}function Gse(n,e,t,i,r,o){return e?e&&!e.isDirectory()?o(new Error(`Cannot overwrite non-directory '${i}' with directory '${t}'.`)):zF(t,i,r,o):Kse(n.mode,t,i,r,o)}function Kse(n,e,t,i,r){on.mkdir(t,o=>{if(o)return r(o);zF(e,t,i,s=>s?r(s):Up(t,n,r))})}function zF(n,e,t,i){on.readdir(n,(r,o)=>r?i(r):QF(o,n,e,t,i))}function QF(n,e,t,i,r){let o=n.pop();return o?zse(n,o,e,t,i,r):r()}function zse(n,e,t,i,r,o){let s=ud.join(t,e),a=ud.join(i,e);cd.checkPaths(s,a,"copy",(l,u)=>{if(l)return o(l);let{destStat:c}=u;nS(c,s,a,r,h=>h?o(h):QF(n,t,i,r,o))})}function Qse(n,e,t,i,r){on.readlink(e,(o,s)=>{if(o)return r(o);if(i.dereference&&(s=ud.resolve(process.cwd(),s)),n)on.readlink(t,(a,l)=>a?a.code==="EINVAL"||a.code==="UNKNOWN"?on.symlink(s,t,r):r(a):(i.dereference&&(l=ud.resolve(process.cwd(),l)),cd.isSrcSubdir(s,l)?r(new Error(`Cannot copy '${s}' to a subdirectory of itself, '${l}'.`)):n.isDirectory()&&cd.isSrcSubdir(l,s)?r(new Error(`Cannot overwrite '${l}' with '${s}'.`)):Vse(s,t,r)));else return on.symlink(s,t,r)})}function Vse(n,e,t){on.unlink(e,i=>i?t(i):on.symlink(n,e,t))}VF.exports=Yse});var rS=m((XEe,tO)=>{"use strict";var eae=gt().fromCallback;tO.exports={copy:eae(eO())}});var cO=m((UEe,uO)=>{"use strict";var iO=Ge(),sO=require("path"),at=require("assert"),hd=process.platform==="win32";function aO(n){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(t=>{n[t]=n[t]||iO[t],t=t+"Sync",n[t]=n[t]||iO[t]}),n.maxBusyTries=n.maxBusyTries||3}function oS(n,e,t){let i=0;typeof e=="function"&&(t=e,e={}),at(n,"rimraf: missing path"),at.strictEqual(typeof n,"string","rimraf: path should be a string"),at.strictEqual(typeof t,"function","rimraf: callback function required"),at(e,"rimraf: invalid options argument provided"),at.strictEqual(typeof e,"object","rimraf: options should be object"),aO(e),nO(n,e,function r(o){if(o){if((o.code==="EBUSY"||o.code==="ENOTEMPTY"||o.code==="EPERM")&&i<e.maxBusyTries){i++;let s=i*100;return setTimeout(()=>nO(n,e,r),s)}o.code==="ENOENT"&&(o=null)}t(o)})}function nO(n,e,t){at(n),at(e),at(typeof t=="function"),e.lstat(n,(i,r)=>{if(i&&i.code==="ENOENT")return t(null);if(i&&i.code==="EPERM"&&hd)return rO(n,e,i,t);if(r&&r.isDirectory())return Gp(n,e,i,t);e.unlink(n,o=>{if(o){if(o.code==="ENOENT")return t(null);if(o.code==="EPERM")return hd?rO(n,e,o,t):Gp(n,e,o,t);if(o.code==="EISDIR")return Gp(n,e,o,t)}return t(o)})})}function rO(n,e,t,i){at(n),at(e),at(typeof i=="function"),e.chmod(n,438,r=>{r?i(r.code==="ENOENT"?null:t):e.stat(n,(o,s)=>{o?i(o.code==="ENOENT"?null:t):s.isDirectory()?Gp(n,e,t,i):e.unlink(n,i)})})}function oO(n,e,t){let i;at(n),at(e);try{e.chmodSync(n,438)}catch(r){if(r.code==="ENOENT")return;throw t}try{i=e.statSync(n)}catch(r){if(r.code==="ENOENT")return;throw t}i.isDirectory()?Kp(n,e,t):e.unlinkSync(n)}function Gp(n,e,t,i){at(n),at(e),at(typeof i=="function"),e.rmdir(n,r=>{r&&(r.code==="ENOTEMPTY"||r.code==="EEXIST"||r.code==="EPERM")?tae(n,e,i):r&&r.code==="ENOTDIR"?i(t):i(r)})}function tae(n,e,t){at(n),at(e),at(typeof t=="function"),e.readdir(n,(i,r)=>{if(i)return t(i);let o=r.length,s;if(o===0)return e.rmdir(n,t);r.forEach(a=>{oS(sO.join(n,a),e,l=>{if(!s){if(l)return t(s=l);--o===0&&e.rmdir(n,t)}})})})}function lO(n,e){let t;e=e||{},aO(e),at(n,"rimraf: missing path"),at.strictEqual(typeof n,"string","rimraf: path should be a string"),at(e,"rimraf: missing options"),at.strictEqual(typeof e,"object","rimraf: options should be object");try{t=e.lstatSync(n)}catch(i){if(i.code==="ENOENT")return;i.code==="EPERM"&&hd&&oO(n,e,i)}try{t&&t.isDirectory()?Kp(n,e,null):e.unlinkSync(n)}catch(i){if(i.code==="ENOENT")return;if(i.code==="EPERM")return hd?oO(n,e,i):Kp(n,e,i);if(i.code!=="EISDIR")throw i;Kp(n,e,i)}}function Kp(n,e,t){at(n),at(e);try{e.rmdirSync(n)}catch(i){if(i.code==="ENOTDIR")throw t;if(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")iae(n,e);else if(i.code!=="ENOENT")throw i}}function iae(n,e){if(at(n),at(e),e.readdirSync(n).forEach(t=>lO(sO.join(n,t),e)),hd){let t=Date.now();do try{return e.rmdirSync(n,e)}catch{}while(Date.now()-t<500)}else return e.rmdirSync(n,e)}uO.exports=oS;oS.sync=lO});var dd=m((GEe,dO)=>{"use strict";var nae=gt().fromCallback,hO=cO();dO.exports={remove:nae(hO),removeSync:hO.sync}});var wO=m((KEe,vO)=>{"use strict";var rae=gt().fromCallback,pO=Ge(),mO=require("path"),bO=vr(),yO=dd(),gO=rae(function(e,t){t=t||function(){},pO.readdir(e,(i,r)=>{if(i)return bO.mkdirs(e,t);r=r.map(s=>mO.join(e,s)),o();function o(){let s=r.pop();if(!s)return t();yO.remove(s,a=>{if(a)return t(a);o()})}})});function fO(n){let e;try{e=pO.readdirSync(n)}catch{return bO.mkdirsSync(n)}e.forEach(t=>{t=mO.join(n,t),yO.removeSync(t)})}vO.exports={emptyDirSync:fO,emptydirSync:fO,emptyDir:gO,emptydir:gO}});var TO=m((zEe,SO)=>{"use strict";var oae=gt().fromCallback,xO=require("path"),Fs=Ge(),CO=vr();function sae(n,e){function t(){Fs.writeFile(n,"",i=>{if(i)return e(i);e()})}Fs.stat(n,(i,r)=>{if(!i&&r.isFile())return e();let o=xO.dirname(n);Fs.stat(o,(s,a)=>{if(s)return s.code==="ENOENT"?CO.mkdirs(o,l=>{if(l)return e(l);t()}):e(s);a.isDirectory()?t():Fs.readdir(o,l=>{if(l)return e(l)})})})}function aae(n){let e;try{e=Fs.statSync(n)}catch{}if(e&&e.isFile())return;let t=xO.dirname(n);try{Fs.statSync(t).isDirectory()||Fs.readdirSync(t)}catch(i){if(i&&i.code==="ENOENT")CO.mkdirsSync(t);else throw i}Fs.writeFileSync(n,"")}SO.exports={createFile:oae(sae),createFileSync:aae}});var PO=m((QEe,_O)=>{"use strict";var lae=gt().fromCallback,DO=require("path"),Ua=Ge(),EO=vr(),kO=js().pathExists;function uae(n,e,t){function i(r,o){Ua.link(r,o,s=>{if(s)return t(s);t(null)})}kO(e,(r,o)=>{if(r)return t(r);if(o)return t(null);Ua.lstat(n,s=>{if(s)return s.message=s.message.replace("lstat","ensureLink"),t(s);let a=DO.dirname(e);kO(a,(l,u)=>{if(l)return t(l);if(u)return i(n,e);EO.mkdirs(a,c=>{if(c)return t(c);i(n,e)})})})})}function cae(n,e){if(Ua.existsSync(e))return;try{Ua.lstatSync(n)}catch(o){throw o.message=o.message.replace("lstat","ensureLink"),o}let i=DO.dirname(e);return Ua.existsSync(i)||EO.mkdirsSync(i),Ua.linkSync(n,e)}_O.exports={createLink:lae(uae),createLinkSync:cae}});var LO=m((VEe,RO)=>{"use strict";var Os=require("path"),gd=Ge(),hae=js().pathExists;function dae(n,e,t){if(Os.isAbsolute(n))return gd.lstat(n,i=>i?(i.message=i.message.replace("lstat","ensureSymlink"),t(i)):t(null,{toCwd:n,toDst:n}));{let i=Os.dirname(e),r=Os.join(i,n);return hae(r,(o,s)=>o?t(o):s?t(null,{toCwd:r,toDst:n}):gd.lstat(n,a=>a?(a.message=a.message.replace("lstat","ensureSymlink"),t(a)):t(null,{toCwd:n,toDst:Os.relative(i,n)})))}}function gae(n,e){let t;if(Os.isAbsolute(n)){if(t=gd.existsSync(n),!t)throw new Error("absolute srcpath does not exist");return{toCwd:n,toDst:n}}else{let i=Os.dirname(e),r=Os.join(i,n);if(t=gd.existsSync(r),t)return{toCwd:r,toDst:n};if(t=gd.existsSync(n),!t)throw new Error("relative srcpath does not exist");return{toCwd:n,toDst:Os.relative(i,n)}}}RO.exports={symlinkPaths:dae,symlinkPathsSync:gae}});var FO=m((e0e,jO)=>{"use strict";var IO=Ge();function fae(n,e,t){if(t=typeof e=="function"?e:t,e=typeof e=="function"?!1:e,e)return t(null,e);IO.lstat(n,(i,r)=>{if(i)return t(null,"file");e=r&&r.isDirectory()?"dir":"file",t(null,e)})}function pae(n,e){let t;if(e)return e;try{t=IO.lstatSync(n)}catch{return"file"}return t&&t.isDirectory()?"dir":"file"}jO.exports={symlinkType:fae,symlinkTypeSync:pae}});var BO=m((t0e,qO)=>{"use strict";var mae=gt().fromCallback,MO=require("path"),Su=Ge(),AO=vr(),bae=AO.mkdirs,yae=AO.mkdirsSync,NO=LO(),vae=NO.symlinkPaths,wae=NO.symlinkPathsSync,HO=FO(),xae=HO.symlinkType,Cae=HO.symlinkTypeSync,OO=js().pathExists;function Sae(n,e,t,i){i=typeof t=="function"?t:i,t=typeof t=="function"?!1:t,OO(e,(r,o)=>{if(r)return i(r);if(o)return i(null);vae(n,e,(s,a)=>{if(s)return i(s);n=a.toDst,xae(a.toCwd,t,(l,u)=>{if(l)return i(l);let c=MO.dirname(e);OO(c,(h,d)=>{if(h)return i(h);if(d)return Su.symlink(n,e,u,i);bae(c,g=>{if(g)return i(g);Su.symlink(n,e,u,i)})})})})})}function Tae(n,e,t){if(Su.existsSync(e))return;let r=wae(n,e);n=r.toDst,t=Cae(r.toCwd,t);let o=MO.dirname(e);return Su.existsSync(o)||yae(o),Su.symlinkSync(n,e,t)}qO.exports={createSymlink:mae(Sae),createSymlinkSync:Tae}});var WO=m((i0e,YO)=>{"use strict";var zp=TO(),Qp=PO(),Vp=BO();YO.exports={createFile:zp.createFile,createFileSync:zp.createFileSync,ensureFile:zp.createFile,ensureFileSync:zp.createFileSync,createLink:Qp.createLink,createLinkSync:Qp.createLinkSync,ensureLink:Qp.createLink,ensureLinkSync:Qp.createLinkSync,createSymlink:Vp.createSymlink,createSymlinkSync:Vp.createSymlinkSync,ensureSymlink:Vp.createSymlink,ensureSymlinkSync:Vp.createSymlinkSync}});var JO=m((n0e,ZO)=>{"use strict";var em=OC();ZO.exports={readJson:em.readFile,readJsonSync:em.readFileSync,writeJson:em.writeFile,writeJsonSync:em.writeFileSync}});var tm=m((r0e,UO)=>{"use strict";var kae=gt().fromCallback,fd=Ge(),$O=require("path"),XO=vr(),Dae=js().pathExists;function Eae(n,e,t,i){typeof t=="function"&&(i=t,t="utf8");let r=$O.dirname(n);Dae(r,(o,s)=>{if(o)return i(o);if(s)return fd.writeFile(n,e,t,i);XO.mkdirs(r,a=>{if(a)return i(a);fd.writeFile(n,e,t,i)})})}function _ae(n,...e){let t=$O.dirname(n);if(fd.existsSync(t))return fd.writeFileSync(n,...e);XO.mkdirsSync(t),fd.writeFileSync(n,...e)}UO.exports={outputFile:kae(Eae),outputFileSync:_ae}});var KO=m((o0e,GO)=>{"use strict";var{stringify:Pae}=mu(),{outputFile:Rae}=tm();async function Lae(n,e,t={}){let i=Pae(e,t);await Rae(n,i,t)}GO.exports=Lae});var QO=m((s0e,zO)=>{"use strict";var{stringify:Iae}=mu(),{outputFileSync:jae}=tm();function Fae(n,e,t){let i=Iae(e,t);jae(n,i,t)}zO.exports=Fae});var eM=m((a0e,VO)=>{"use strict";var Oae=gt().fromPromise,Wi=JO();Wi.outputJson=Oae(KO());Wi.outputJsonSync=QO();Wi.outputJSON=Wi.outputJson;Wi.outputJSONSync=Wi.outputJsonSync;Wi.writeJSON=Wi.writeJson;Wi.writeJSONSync=Wi.writeJsonSync;Wi.readJSON=Wi.readJson;Wi.readJSONSync=Wi.readJsonSync;VO.exports=Wi});var sM=m((l0e,oM)=>{"use strict";var nM=Ge(),Mae=require("path"),Aae=iS().copySync,rM=dd().removeSync,Nae=vr().mkdirpSync,tM=sd();function Hae(n,e,t){t=t||{};let i=t.overwrite||t.clobber||!1,{srcStat:r}=tM.checkPathsSync(n,e,"move");return tM.checkParentPathsSync(n,r,e,"move"),Nae(Mae.dirname(e)),qae(n,e,i)}function qae(n,e,t){if(t)return rM(e),iM(n,e,t);if(nM.existsSync(e))throw new Error("dest already exists.");return iM(n,e,t)}function iM(n,e,t){try{nM.renameSync(n,e)}catch(i){if(i.code!=="EXDEV")throw i;return Bae(n,e,t)}}function Bae(n,e,t){return Aae(n,e,{overwrite:t,errorOnExist:!0}),rM(n)}oM.exports=Hae});var lM=m((u0e,aM)=>{"use strict";aM.exports={moveSync:sM()}});var gM=m((c0e,dM)=>{"use strict";var Yae=Ge(),Wae=require("path"),Zae=rS().copy,hM=dd().remove,Jae=vr().mkdirp,$ae=js().pathExists,uM=sd();function Xae(n,e,t,i){typeof t=="function"&&(i=t,t={});let r=t.overwrite||t.clobber||!1;uM.checkPaths(n,e,"move",(o,s)=>{if(o)return i(o);let{srcStat:a}=s;uM.checkParentPaths(n,a,e,"move",l=>{if(l)return i(l);Jae(Wae.dirname(e),u=>u?i(u):Uae(n,e,r,i))})})}function Uae(n,e,t,i){if(t)return hM(e,r=>r?i(r):cM(n,e,t,i));$ae(e,(r,o)=>r?i(r):o?i(new Error("dest already exists.")):cM(n,e,t,i))}function cM(n,e,t,i){Yae.rename(n,e,r=>r?r.code!=="EXDEV"?i(r):Gae(n,e,t,i):i())}function Gae(n,e,t,i){Zae(n,e,{overwrite:t,errorOnExist:!0},o=>o?i(o):hM(n,i))}dM.exports=Xae});var pM=m((h0e,fM)=>{"use strict";var Kae=gt().fromCallback;fM.exports={move:Kae(gM())}});var Rn=m((d0e,sS)=>{"use strict";sS.exports=me(me(me(me(me(me(me(me(me(me(me(me({},od()),iS()),rS()),wO()),WO()),eM()),vr()),lM()),pM()),tm()),js()),dd());var mM=require("fs");Object.getOwnPropertyDescriptor(mM,"promises")&&Object.defineProperty(sS.exports,"promises",{get(){return mM.promises}})});var Y=m((vM,wM)=>{"use strict";var Ga=S(require("fs")),aS=S(XC()),im=S(require("path")),bM=S(require("os")),yM=S(Rn());function lS(){let n=process.env.NVIM_COC_LOG_FILE;if(n)return n;let e=process.env.XDG_RUNTIME_DIR;if(e)try{return Ga.default.accessSync(e,Ga.default.constants.R_OK|Ga.default.constants.W_OK),im.default.join(e,`coc-nvim-${process.pid}.log`)}catch{}let t=bM.default.tmpdir();return e=im.default.join(t,`coc.nvim-${process.pid}`),Ga.default.existsSync(e)||(0,yM.mkdirpSync)(e),im.default.join(e,"coc-nvim.log")}var zae=1024*1024,Qae=10,nm=lS(),Vae=process.env.NVIM_COC_LOG_LEVEL||"info";if(Ga.default.existsSync(nm))try{Ga.default.writeFileSync(nm,"",{encoding:"utf8",mode:438})}catch{}vM.getLogFile=lS;aS.default.configure({disableClustering:!0,appenders:{out:{type:"file",mode:438,filename:nm,maxLogSize:zae,backups:Qae,layout:{type:"pattern",pattern:`%d{ISO8601} %p (pid:${process.pid}) [%c] - %m`}}},categories:{default:{appenders:["out"],level:Vae}}});wM.exports=(n="coc-nvim")=>{let e=aS.default.getLogger(n);return Object.assign(e,{getLogFile:lS,logfile:nm})}});var uS=P(()=>{"use strict";Promise.prototype.logError=function(){this.catch(n=>{Y()("util-extensions").error(n)})}});var CM=m((hS,xM)=>{xM.exports=cS(typeof Buffer<"u"&&Buffer)||cS(hS.Buffer)||cS(typeof window<"u"&&window.Buffer)||hS.Buffer;function cS(n){return n&&n.isBuffer&&n}});var rm=m((g0e,SM)=>{var ele={}.toString;SM.exports=Array.isArray||function(n){return ele.call(n)=="[object Array]"}});var DM=m((ku,kM)=>{var Tu=Ln(),ku=kM.exports=TM(0);ku.alloc=TM;ku.concat=Tu.concat;ku.from=tle;function TM(n){return new Array(n)}function tle(n){if(!Tu.isBuffer(n)&&Tu.isView(n))n=Tu.Uint8Array.from(n);else if(Tu.isArrayBuffer(n))n=new Uint8Array(n);else{if(typeof n=="string")return Tu.from.call(ku,n);if(typeof n=="number")throw new TypeError('"value" argument must not be a number')}return Array.prototype.slice.call(n)}});var PM=m((Eu,_M)=>{var Po=Ln(),Du=Po.global,Eu=_M.exports=Po.hasBuffer?EM(0):[];Eu.alloc=Po.hasBuffer&&Du.alloc||EM;Eu.concat=Po.concat;Eu.from=ile;function EM(n){return new Du(n)}function ile(n){if(!Po.isBuffer(n)&&Po.isView(n))n=Po.Uint8Array.from(n);else if(Po.isArrayBuffer(n))n=new Uint8Array(n);else{if(typeof n=="string")return Po.from.call(Eu,n);if(typeof n=="number")throw new TypeError('"value" argument must not be a number')}return Du.from&&Du.from.length!==1?Du.from(n):new Du(n)}});var IM=m((_u,LM)=>{var om=Ln(),_u=LM.exports=om.hasArrayBuffer?RM(0):[];_u.alloc=RM;_u.concat=om.concat;_u.from=nle;function RM(n){return new Uint8Array(n)}function nle(n){if(om.isView(n)){var e=n.byteOffset,t=n.byteLength;n=n.buffer,n.byteLength!==t&&(n.slice?n=n.slice(e,e+t):(n=new Uint8Array(n),n.byteLength!==t&&(n=Array.prototype.slice.call(n,e,e+t))))}else{if(typeof n=="string")return om.from.call(_u,n);if(typeof n=="number")throw new TypeError('"value" argument must not be a number')}return new Uint8Array(n)}});var jM=m(sm=>{sm.copy=sle;sm.toString=ole;sm.write=rle;function rle(n,e){for(var t=this,i=e||(e|=0),r=n.length,o=0,s=0;s<r;)o=n.charCodeAt(s++),o<128?t[i++]=o:o<2048?(t[i++]=192|o>>>6,t[i++]=128|o&63):o<55296||o>57343?(t[i++]=224|o>>>12,t[i++]=128|o>>>6&63,t[i++]=128|o&63):(o=(o-55296<<10|n.charCodeAt(s++)-56320)+65536,t[i++]=240|o>>>18,t[i++]=128|o>>>12&63,t[i++]=128|o>>>6&63,t[i++]=128|o&63);return i-e}function ole(n,e,t){var i=this,r=e|0;t||(t=i.length);for(var o="",s=0;r<t;){if(s=i[r++],s<128){o+=String.fromCharCode(s);continue}(s&224)===192?s=(s&31)<<6|i[r++]&63:(s&240)===224?s=(s&15)<<12|(i[r++]&63)<<6|i[r++]&63:(s&248)===240&&(s=(s&7)<<18|(i[r++]&63)<<12|(i[r++]&63)<<6|i[r++]&63),s>=65536?(s-=65536,o+=String.fromCharCode((s>>>10)+55296,(s&1023)+56320)):o+=String.fromCharCode(s)}return o}function sle(n,e,t,i){var r;t||(t=0),!i&&i!==0&&(i=this.length),e||(e=0);var o=i-t;if(n===this&&t<e&&e<i)for(r=o-1;r>=0;r--)n[r+e]=this[r+t];else for(r=0;r<o;r++)n[r+e]=this[r+t];return o}});var am=m(pd=>{var dS=jM();pd.copy=AM;pd.slice=NM;pd.toString=ale;pd.write=lle("write");var Ms=Ln(),FM=Ms.global,OM=Ms.hasBuffer&&"TYPED_ARRAY_SUPPORT"in FM,MM=OM&&!FM.TYPED_ARRAY_SUPPORT;function AM(n,e,t,i){var r=Ms.isBuffer(this),o=Ms.isBuffer(n);if(r&&o)return this.copy(n,e,t,i);if(!MM&&!r&&!o&&Ms.isView(this)&&Ms.isView(n)){var s=t||i!=null?NM.call(this,t,i):this;return n.set(s,e),s.length}else return dS.copy.call(this,n,e,t,i)}function NM(n,e){var t=this.slice||!MM&&this.subarray;if(t)return t.call(this,n,e);var i=Ms.alloc.call(this,e-n);return AM.call(this,i,0,n,e),i}function ale(n,e,t){var i=!OM&&Ms.isBuffer(this)?this.toString:dS.toString;return i.apply(this,arguments)}function lle(n){return e;function e(){var t=this[n]||dS[n];return t.apply(this,arguments)}}});var Ln=m(Di=>{var gS=Di.global=CM(),YM=Di.hasBuffer=gS&&!!gS.isBuffer,pS=Di.hasArrayBuffer=typeof ArrayBuffer<"u",ule=Di.isArray=rm();Di.isArrayBuffer=pS?ple:bS;var cle=Di.isBuffer=YM?gS.isBuffer:bS,hle=Di.isView=pS?ArrayBuffer.isView||ZM("ArrayBuffer","buffer"):bS;Di.alloc=mS;Di.concat=gle;Di.from=dle;var HM=Di.Array=DM(),qM=Di.Buffer=PM(),BM=Di.Uint8Array=IM(),fS=Di.prototype=am();function dle(n){return typeof n=="string"?mle.call(this,n):WM(this).from(n)}function mS(n){return WM(this).alloc(n)}function gle(n,e){e||(e=0,Array.prototype.forEach.call(n,o));var t=this!==Di&&this||n[0],i=mS.call(t,e),r=0;return Array.prototype.forEach.call(n,s),i;function o(a){e+=a.length}function s(a){r+=fS.copy.call(a,i,r)}}var fle=ZM("ArrayBuffer");function ple(n){return n instanceof ArrayBuffer||fle(n)}function mle(n){var e=n.length*3,t=mS.call(this,e),i=fS.write.call(t,n);return e!==i&&(t=fS.slice.call(t,0,i)),t}function WM(n){return cle(n)?qM:hle(n)?BM:ule(n)?HM:YM?qM:pS?BM:HM}function bS(){return!1}function ZM(n,e){return n="[object "+n+"]",function(t){return t!=null&&{}.toString.call(e?t[e]:t)===n}}});var lm=m(JM=>{JM.ExtBuffer=yS;var ble=Ln();function yS(n,e){if(!(this instanceof yS))return new yS(n,e);this.buffer=ble.from(n),this.type=e}});var XM=m($M=>{$M.setExtPackers=wle;var um=Ln(),yle=um.global,wr=um.Uint8Array.from,vS,vle={name:1,message:1,stack:1,columnNumber:1,fileName:1,lineNumber:1};function wle(n){n.addExtPacker(14,Error,[Ka,$n]),n.addExtPacker(1,EvalError,[Ka,$n]),n.addExtPacker(2,RangeError,[Ka,$n]),n.addExtPacker(3,ReferenceError,[Ka,$n]),n.addExtPacker(4,SyntaxError,[Ka,$n]),n.addExtPacker(5,TypeError,[Ka,$n]),n.addExtPacker(6,URIError,[Ka,$n]),n.addExtPacker(10,RegExp,[xle,$n]),n.addExtPacker(11,Boolean,[wS,$n]),n.addExtPacker(12,String,[wS,$n]),n.addExtPacker(13,Date,[Number,$n]),n.addExtPacker(15,Number,[wS,$n]),typeof Uint8Array<"u"&&(n.addExtPacker(17,Int8Array,wr),n.addExtPacker(18,Uint8Array,wr),n.addExtPacker(19,Int16Array,wr),n.addExtPacker(20,Uint16Array,wr),n.addExtPacker(21,Int32Array,wr),n.addExtPacker(22,Uint32Array,wr),n.addExtPacker(23,Float32Array,wr),typeof Float64Array<"u"&&n.addExtPacker(24,Float64Array,wr),typeof Uint8ClampedArray<"u"&&n.addExtPacker(25,Uint8ClampedArray,wr),n.addExtPacker(26,ArrayBuffer,wr),n.addExtPacker(29,DataView,wr)),um.hasBuffer&&n.addExtPacker(27,yle,um.from)}function $n(n){return vS||(vS=xS().encode),vS(n)}function wS(n){return n.valueOf()}function xle(n){n=RegExp.prototype.toString.call(n).split("/"),n.shift();var e=[n.pop()];return e.unshift(n.join("/")),e}function Ka(n){var e={};for(var t in vle)e[t]=n[t];return e}});var cm=m(md=>{var Cle,Sle,Tle,kle;(function(n){var e="undefined",t=e!==typeof Buffer&&Buffer,i=e!==typeof Uint8Array&&Uint8Array,r=e!==typeof ArrayBuffer&&ArrayBuffer,o=[0,0,0,0,0,0,0,0],s=Array.isArray||L,a=4294967296,l=16777216,u;Cle=c("Uint64BE",!0,!0),Sle=c("Int64BE",!0,!1),Tle=c("Uint64LE",!1,!0),kle=c("Int64LE",!1,!1);function c(j,O,W){var H=O?0:4,N=O?4:0,I=O?0:3,A=O?1:2,Z=O?2:1,K=O?3:0,ae=O?y:x,je=O?w:k,Pe=Si.prototype,Ve="is"+j,Tt="_"+Ve;return Pe.buffer=void 0,Pe.offset=0,Pe[Tt]=!0,Pe.toNumber=ap,Pe.toString=hC,Pe.toJSON=ap,Pe.toArray=h,t&&(Pe.toBuffer=d),i&&(Pe.toArrayBuffer=g),Si[Ve]=ps,n[j]=Si,Si;function Si(Re,Te,ke,Le){return this instanceof Si?ko(this,Re,Te,ke,Le):new Si(Re,Te,ke,Le)}function ps(Re){return!!(Re&&Re[Tt])}function ko(Re,Te,ke,Le,Rt){if(i&&r&&(Te instanceof r&&(Te=new i(Te)),Le instanceof r&&(Le=new i(Le))),!Te&&!ke&&!Le&&!u){Re.buffer=b(o,0);return}if(!f(Te,ke)){var gr=u||Array;Rt=ke,Le=Te,ke=0,Te=new gr(8)}Re.buffer=Te,Re.offset=ke|=0,e!==typeof Le&&(typeof Le=="string"?sp(Te,ke,Le,Rt||10):f(Le,Rt)?p(Te,ke,Le,Rt):typeof Rt=="number"?(ou(Te,ke+H,Le),ou(Te,ke+N,Rt)):Le>0?ae(Te,ke,Le):Le<0?je(Te,ke,Le):p(Te,ke,o,0))}function sp(Re,Te,ke,Le){var Rt=0,gr=ke.length,fr=0,Dn=0;ke[0]==="-"&&Rt++;for(var ms=Rt;Rt<gr;){var bs=parseInt(ke[Rt++],Le);if(!(bs>=0))break;Dn=Dn*Le+bs,fr=fr*Le+Math.floor(Dn/a),Dn%=a}ms&&(fr=~fr,Dn?Dn=a-Dn:fr++),ou(Re,Te+H,fr),ou(Re,Te+N,Dn)}function ap(){var Re=this.buffer,Te=this.offset,ke=su(Re,Te+H),Le=su(Re,Te+N);return W||(ke|=0),ke?ke*a+Le:Le}function hC(Re){var Te=this.buffer,ke=this.offset,Le=su(Te,ke+H),Rt=su(Te,ke+N),gr="",fr=!W&&Le&2147483648;for(fr&&(Le=~Le,Rt=a-Rt),Re=Re||10;;){var Dn=Le%Re*a+Rt;if(Le=Math.floor(Le/Re),Rt=Math.floor(Dn/Re),gr=(Dn%Re).toString(Re)+gr,!Le&&!Rt)break}return fr&&(gr="-"+gr),gr}function ou(Re,Te,ke){Re[Te+K]=ke&255,ke=ke>>8,Re[Te+Z]=ke&255,ke=ke>>8,Re[Te+A]=ke&255,ke=ke>>8,Re[Te+I]=ke&255}function su(Re,Te){return Re[Te+I]*l+(Re[Te+A]<<16)+(Re[Te+Z]<<8)+Re[Te+K]}}function h(j){var O=this.buffer,W=this.offset;return u=null,j!==!1&&W===0&&O.length===8&&s(O)?O:b(O,W)}function d(j){var O=this.buffer,W=this.offset;if(u=t,j!==!1&&W===0&&O.length===8&&Buffer.isBuffer(O))return O;var H=new t(8);return p(H,0,O,W),H}function g(j){var O=this.buffer,W=this.offset,H=O.buffer;if(u=i,j!==!1&&W===0&&H instanceof r&&H.byteLength===8)return H;var N=new i(8);return p(N,0,O,W),N.buffer}function f(j,O){var W=j&&j.length;return O|=0,W&&O+8<=W&&typeof j[O]!="string"}function p(j,O,W,H){O|=0,H|=0;for(var N=0;N<8;N++)j[O++]=W[H++]&255}function b(j,O){return Array.prototype.slice.call(j,O,O+8)}function y(j,O,W){for(var H=O+8;H>O;)j[--H]=W&255,W/=256}function w(j,O,W){var H=O+8;for(W++;H>O;)j[--H]=-W&255^255,W/=256}function x(j,O,W){for(var H=O+8;O<H;)j[O++]=W&255,W/=256}function k(j,O,W){var H=O+8;for(W++;O<H;)j[O++]=-W&255^255,W/=256}function L(j){return!!j&&Object.prototype.toString.call(j)=="[object Array]"}})(typeof md=="object"&&typeof md.nodeName!="string"?md:md||{})});var SS=m(CS=>{CS.read=function(n,e,t,i,r){var o,s,a=r*8-i-1,l=(1<<a)-1,u=l>>1,c=-7,h=t?r-1:0,d=t?-1:1,g=n[e+h];for(h+=d,o=g&(1<<-c)-1,g>>=-c,c+=a;c>0;o=o*256+n[e+h],h+=d,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=i;c>0;s=s*256+n[e+h],h+=d,c-=8);if(o===0)o=1-u;else{if(o===l)return s?NaN:(g?-1:1)*(1/0);s=s+Math.pow(2,i),o=o-u}return(g?-1:1)*s*Math.pow(2,o-i)};CS.write=function(n,e,t,i,r,o){var s,a,l,u=o*8-r-1,c=(1<<u)-1,h=c>>1,d=r===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=i?0:o-1,f=i?1:-1,p=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=c):(s=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-s))<1&&(s--,l*=2),s+h>=1?e+=d/l:e+=d*Math.pow(2,1-h),e*l>=2&&(s++,l/=2),s+h>=c?(a=0,s=c):s+h>=1?(a=(e*l-1)*Math.pow(2,r),s=s+h):(a=e*Math.pow(2,h-1)*Math.pow(2,r),s=0));r>=8;n[t+g]=a&255,g+=f,a/=256,r-=8);for(s=s<<r|a,u+=r;u>0;n[t+g]=s&255,g+=f,s/=256,u-=8);n[t+g-f]|=p*128}});var TS=m(UM=>{var Dle=UM.uint8=new Array(256);for(bd=0;bd<=255;bd++)Dle[bd]=Ele(bd);var bd;function Ele(n){return function(e){var t=e.reserve(1);e.buffer[t]=n}}});var o1=m(r1=>{var KM=SS(),zM=cm(),_le=zM.Uint64BE,Ple=zM.Int64BE,QM=TS().uint8,hm=Ln(),wt=hm.global,Rle=hm.hasBuffer&&"TYPED_ARRAY_SUPPORT"in wt,Lle=Rle&&!wt.TYPED_ARRAY_SUPPORT,GM=hm.hasBuffer&&wt.prototype||{};r1.getWriteToken=Ile;function Ile(n){return n&&n.uint8array?jle():Lle||hm.hasBuffer&&n&&n.safe?Fle():VM()}function jle(){var n=VM();return n[202]=Ke(202,4,i1),n[203]=Ke(203,8,n1),n}function VM(){var n=QM.slice();return n[196]=yd(196),n[197]=za(197),n[198]=Qa(198),n[199]=yd(199),n[200]=za(200),n[201]=Qa(201),n[202]=Ke(202,4,GM.writeFloatBE||i1,!0),n[203]=Ke(203,8,GM.writeDoubleBE||n1,!0),n[204]=yd(204),n[205]=za(205),n[206]=Qa(206),n[207]=Ke(207,8,e1),n[208]=yd(208),n[209]=za(209),n[210]=Qa(210),n[211]=Ke(211,8,t1),n[217]=yd(217),n[218]=za(218),n[219]=Qa(219),n[220]=za(220),n[221]=Qa(221),n[222]=za(222),n[223]=Qa(223),n}function Fle(){var n=QM.slice();return n[196]=Ke(196,1,wt.prototype.writeUInt8),n[197]=Ke(197,2,wt.prototype.writeUInt16BE),n[198]=Ke(198,4,wt.prototype.writeUInt32BE),n[199]=Ke(199,1,wt.prototype.writeUInt8),n[200]=Ke(200,2,wt.prototype.writeUInt16BE),n[201]=Ke(201,4,wt.prototype.writeUInt32BE),n[202]=Ke(202,4,wt.prototype.writeFloatBE),n[203]=Ke(203,8,wt.prototype.writeDoubleBE),n[204]=Ke(204,1,wt.prototype.writeUInt8),n[205]=Ke(205,2,wt.prototype.writeUInt16BE),n[206]=Ke(206,4,wt.prototype.writeUInt32BE),n[207]=Ke(207,8,e1),n[208]=Ke(208,1,wt.prototype.writeInt8),n[209]=Ke(209,2,wt.prototype.writeInt16BE),n[210]=Ke(210,4,wt.prototype.writeInt32BE),n[211]=Ke(211,8,t1),n[217]=Ke(217,1,wt.prototype.writeUInt8),n[218]=Ke(218,2,wt.prototype.writeUInt16BE),n[219]=Ke(219,4,wt.prototype.writeUInt32BE),n[220]=Ke(220,2,wt.prototype.writeUInt16BE),n[221]=Ke(221,4,wt.prototype.writeUInt32BE),n[222]=Ke(222,2,wt.prototype.writeUInt16BE),n[223]=Ke(223,4,wt.prototype.writeUInt32BE),n}function yd(n){return function(e,t){var i=e.reserve(2),r=e.buffer;r[i++]=n,r[i]=t}}function za(n){return function(e,t){var i=e.reserve(3),r=e.buffer;r[i++]=n,r[i++]=t>>>8,r[i]=t}}function Qa(n){return function(e,t){var i=e.reserve(5),r=e.buffer;r[i++]=n,r[i++]=t>>>24,r[i++]=t>>>16,r[i++]=t>>>8,r[i]=t}}function Ke(n,e,t,i){return function(r,o){var s=r.reserve(e+1);r.buffer[s++]=n,t.call(r.buffer,o,s,i)}}function e1(n,e){new _le(this,e,n)}function t1(n,e){new Ple(this,e,n)}function i1(n,e){KM.write(this,n,e,!1,23,4)}function n1(n,e){KM.write(this,n,e,!1,52,8)}});var c1=m(u1=>{var Ole=rm(),l1=cm(),Mle=l1.Uint64BE,Ale=l1.Int64BE,s1=Ln(),a1=am(),Nle=o1(),Hle=TS().uint8,qle=lm().ExtBuffer,Ble=typeof Uint8Array<"u",Yle=typeof Map<"u",Pu=[];Pu[1]=212;Pu[2]=213;Pu[4]=214;Pu[8]=215;Pu[16]=216;u1.getWriteType=Wle;function Wle(n){var e=Nle.getWriteToken(n),t=n&&n.useraw,i=Ble&&n&&n.binarraybuffer,r=i?s1.isArrayBuffer:s1.isBuffer,o=i?L:k,s=Yle&&n&&n.usemap,a=s?W:O,l={boolean:u,function:w,number:c,object:t?y:b,string:p(t?f:g),symbol:w,undefined:w};return l;function u(N,I){var A=I?195:194;e[A](N,I)}function c(N,I){var A=I|0,Z;if(I!==A){Z=203,e[Z](N,I);return}else-32<=A&&A<=127?Z=A&255:0<=A?Z=A<=255?204:A<=65535?205:206:Z=-128<=A?208:-32768<=A?209:210;e[Z](N,A)}function h(N,I){var A=207;e[A](N,I.toArray())}function d(N,I){var A=211;e[A](N,I.toArray())}function g(N){return N<32?1:N<=255?2:N<=65535?3:5}function f(N){return N<32?1:N<=65535?3:5}function p(N){return I;function I(A,Z){var K=Z.length,ae=5+K*3;A.offset=A.reserve(ae);var je=A.buffer,Pe=N(K),Ve=A.offset+Pe;K=a1.write.call(je,Z,Ve);var Tt=N(K);if(Pe!==Tt){var Si=Ve+Tt-Pe,ps=Ve+K;a1.copy.call(je,je,Si,Ve,ps)}var ko=Tt===1?160+K:Tt<=3?215+Tt:219;e[ko](A,K),A.offset+=K}}function b(N,I){if(I===null)return w(N,I);if(r(I))return o(N,I);if(Ole(I))return x(N,I);if(Mle.isUint64BE(I))return h(N,I);if(Ale.isInt64BE(I))return d(N,I);var A=N.codec.getExtPacker(I);if(A&&(I=A(I)),I instanceof qle)return j(N,I);a(N,I)}function y(N,I){if(r(I))return H(N,I);b(N,I)}function w(N,I){var A=192;e[A](N,I)}function x(N,I){var A=I.length,Z=A<16?144+A:A<=65535?220:221;e[Z](N,A);for(var K=N.codec.encode,ae=0;ae<A;ae++)K(N,I[ae])}function k(N,I){var A=I.length,Z=A<255?196:A<=65535?197:198;e[Z](N,A),N.send(I)}function L(N,I){k(N,new Uint8Array(I))}function j(N,I){var A=I.buffer,Z=A.length,K=Pu[Z]||(Z<255?199:Z<=65535?200:201);e[K](N,Z),Hle[I.type](N),N.send(A)}function O(N,I){var A=Object.keys(I),Z=A.length,K=Z<16?128+Z:Z<=65535?222:223;e[K](N,Z);var ae=N.codec.encode;A.forEach(function(je){ae(N,je),ae(N,I[je])})}function W(N,I){if(!(I instanceof Map))return O(N,I);var A=I.size,Z=A<16?128+A:A<=65535?222:223;e[Z](N,A);var K=N.codec.encode;I.forEach(function(ae,je,Pe){K(N,je),K(N,ae)})}function H(N,I){var A=I.length,Z=A<32?160+A:A<=65535?218:219;e[Z](N,A),N.send(I)}}});var wd=m(vd=>{var Zle=rm();vd.createCodec=h1;vd.install=$le;vd.filter=Gle;var Jle=Ln();function Ru(n){if(!(this instanceof Ru))return new Ru(n);this.options=n,this.init()}Ru.prototype.init=function(){var n=this.options;return n&&n.uint8array&&(this.bufferish=Jle.Uint8Array),this};function $le(n){for(var e in n)Ru.prototype[e]=Xle(Ru.prototype[e],n[e])}function Xle(n,e){return n&&e?t:n||e;function t(){return n.apply(this,arguments),e.apply(this,arguments)}}function Ule(n){return n=n.slice(),function(t){return n.reduce(e,t)};function e(t,i){return i(t)}}function Gle(n){return Zle(n)?Ule(n):n}function h1(n){return new Ru(n)}vd.preset=h1({preset:!0})});var dm=m(g1=>{var Kle=lm().ExtBuffer,zle=XM(),Qle=c1(),kS=wd();kS.install({addExtPacker:eue,getExtPacker:tue,init:d1});g1.preset=d1.call(kS.preset);function Vle(n){var e=Qle.getWriteType(n);return t;function t(i,r){var o=e[typeof r];if(!o)throw new Error('Unsupported type "'+typeof r+'": '+r);o(i,r)}}function d1(){var n=this.options;return this.encode=Vle(n),n&&n.preset&&zle.setExtPackers(this),this}function eue(n,e,t){t=kS.filter(t);var i=e.name;if(i&&i!=="Object"){var r=this.extPackers||(this.extPackers={});r[i]=s}else{var o=this.extEncoderList||(this.extEncoderList=[]);o.unshift([e,s])}function s(a){return t&&(a=t(a)),new Kle(a,n)}}function tue(n){var e=this.extPackers||(this.extPackers={}),t=n.constructor,i=t&&t.name&&e[t.name];if(i)return i;for(var r=this.extEncoderList||(this.extEncoderList=[]),o=r.length,s=0;s<o;s++){var a=r[s];if(t===a[0])return a[1]}}});var ES=m(DS=>{DS.FlexDecoder=Lu;DS.FlexEncoder=Iu;var xd=Ln(),iue=2048,nue=65536,f1="BUFFER_SHORTAGE";function Lu(){if(!(this instanceof Lu))return new Lu}function Iu(){if(!(this instanceof Iu))return new Iu}Lu.mixin=b1(rue());Lu.mixin(Lu.prototype);Iu.mixin=b1(oue());Iu.mixin(Iu.prototype);function rue(){return{bufferish:xd,write:n,fetch:aue,flush:e,push:m1,pull:lue,read:p1,reserve:t,offset:0};function n(i){var r=this.offset?xd.prototype.slice.call(this.buffer,this.offset):this.buffer;this.buffer=r?i?this.bufferish.concat([r,i]):r:i,this.offset=0}function e(){for(;this.offset<this.buffer.length;){var i=this.offset,r;try{r=this.fetch()}catch(o){if(o&&o.message!=f1)throw o;this.offset=i;break}this.push(r)}}function t(i){var r=this.offset,o=r+i;if(o>this.buffer.length)throw new Error(f1);return this.offset=o,r}}function oue(){return{bufferish:xd,write:sue,fetch:n,flush:e,push:m1,pull:t,read:p1,reserve:i,send:r,maxBufferSize:nue,minBufferSize:iue,offset:0,start:0};function n(){var o=this.start;if(o<this.offset){var s=this.start=this.offset;return xd.prototype.slice.call(this.buffer,o,s)}}function e(){for(;this.start<this.offset;){var o=this.fetch();o&&this.push(o)}}function t(){var o=this.buffers||(this.buffers=[]),s=o.length>1?this.bufferish.concat(o):o[0];return o.length=0,s}function i(o){var s=o|0;if(this.buffer){var a=this.buffer.length,l=this.offset|0,u=l+s;if(u<a)return this.offset=u,l;this.flush(),o=Math.max(o,Math.min(a*2,this.maxBufferSize))}return o=Math.max(o,this.minBufferSize),this.buffer=this.bufferish.alloc(o),this.start=0,this.offset=s,0}function r(o){var s=o.length;if(s>this.minBufferSize)this.flush(),this.push(o);else{var a=this.reserve(s);xd.prototype.copy.call(o,this.buffer,a)}}}function sue(){throw new Error("method not implemented: write()")}function aue(){throw new Error("method not implemented: fetch()")}function p1(){var n=this.buffers&&this.buffers.length;return n?(this.flush(),this.pull()):this.fetch()}function m1(n){var e=this.buffers||(this.buffers=[]);e.push(n)}function lue(){var n=this.buffers||(this.buffers=[]);return n.shift()}function b1(n){return e;function e(t){for(var i in n)t[i]=n[i];return t}}});var gm=m(y1=>{y1.EncodeBuffer=ju;var uue=dm().preset,cue=ES().FlexEncoder;cue.mixin(ju.prototype);function ju(n){if(!(this instanceof ju))return new ju(n);if(n&&(this.options=n,n.codec)){var e=this.codec=n.codec;e.bufferish&&(this.bufferish=e.bufferish)}}ju.prototype.codec=uue;ju.prototype.write=function(n){this.codec.encode(this,n)}});var xS=m(v1=>{v1.encode=due;var hue=gm().EncodeBuffer;function due(n,e){var t=new hue(e);return t.write(n),t.read()}});var C1=m(x1=>{x1.setExtUnpackers=pue;var w1=Ln(),gue=w1.global,_S,fue={name:1,message:1,stack:1,columnNumber:1,fileName:1,lineNumber:1};function pue(n){n.addExtUnpacker(14,[Xn,Va(Error)]),n.addExtUnpacker(1,[Xn,Va(EvalError)]),n.addExtUnpacker(2,[Xn,Va(RangeError)]),n.addExtUnpacker(3,[Xn,Va(ReferenceError)]),n.addExtUnpacker(4,[Xn,Va(SyntaxError)]),n.addExtUnpacker(5,[Xn,Va(TypeError)]),n.addExtUnpacker(6,[Xn,Va(URIError)]),n.addExtUnpacker(10,[Xn,mue]),n.addExtUnpacker(11,[Xn,Zi(Boolean)]),n.addExtUnpacker(12,[Xn,Zi(String)]),n.addExtUnpacker(13,[Xn,Zi(Date)]),n.addExtUnpacker(15,[Xn,Zi(Number)]),typeof Uint8Array<"u"&&(n.addExtUnpacker(17,Zi(Int8Array)),n.addExtUnpacker(18,Zi(Uint8Array)),n.addExtUnpacker(19,[As,Zi(Int16Array)]),n.addExtUnpacker(20,[As,Zi(Uint16Array)]),n.addExtUnpacker(21,[As,Zi(Int32Array)]),n.addExtUnpacker(22,[As,Zi(Uint32Array)]),n.addExtUnpacker(23,[As,Zi(Float32Array)]),typeof Float64Array<"u"&&n.addExtUnpacker(24,[As,Zi(Float64Array)]),typeof Uint8ClampedArray<"u"&&n.addExtUnpacker(25,Zi(Uint8ClampedArray)),n.addExtUnpacker(26,As),n.addExtUnpacker(29,[As,Zi(DataView)])),w1.hasBuffer&&n.addExtUnpacker(27,Zi(gue))}function Xn(n){return _S||(_S=PS().decode),_S(n)}function mue(n){return RegExp.apply(null,n)}function Va(n){return function(e){var t=new n;for(var i in fue)t[i]=e[i];return t}}function Zi(n){return function(e){return new n(e)}}function As(n){return new Uint8Array(n).buffer}});var IS=m(LS=>{var S1=SS(),T1=cm(),k1=T1.Uint64BE,D1=T1.Int64BE;LS.getReadFormat=vue;LS.readUint8=E1;var RS=Ln(),pm=am(),bue=typeof Map<"u",yue=!0;function vue(n){var e=RS.hasArrayBuffer&&n&&n.binarraybuffer,t=n&&n.int64,i=bue&&n&&n.usemap,r={map:i?xue:wue,array:Cue,str:Sue,bin:e?kue:Tue,ext:Due,uint8:E1,uint16:_ue,uint32:Rue,uint64:fm(8,t?Fue:Iue),int8:Eue,int16:Pue,int32:Lue,int64:fm(8,t?Oue:jue),float32:fm(4,Mue),float64:fm(8,Aue)};return r}function wue(n,e){var t={},i,r=new Array(e),o=new Array(e),s=n.codec.decode;for(i=0;i<e;i++)r[i]=s(n),o[i]=s(n);for(i=0;i<e;i++)t[r[i]]=o[i];return t}function xue(n,e){var t=new Map,i,r=new Array(e),o=new Array(e),s=n.codec.decode;for(i=0;i<e;i++)r[i]=s(n),o[i]=s(n);for(i=0;i<e;i++)t.set(r[i],o[i]);return t}function Cue(n,e){for(var t=new Array(e),i=n.codec.decode,r=0;r<e;r++)t[r]=i(n);return t}function Sue(n,e){var t=n.reserve(e),i=t+e;return pm.toString.call(n.buffer,"utf-8",t,i)}function Tue(n,e){var t=n.reserve(e),i=t+e,r=pm.slice.call(n.buffer,t,i);return RS.from(r)}function kue(n,e){var t=n.reserve(e),i=t+e,r=pm.slice.call(n.buffer,t,i);return RS.Uint8Array.from(r).buffer}function Due(n,e){var t=n.reserve(e+1),i=n.buffer[t++],r=t+e,o=n.codec.getExtUnpacker(i);if(!o)throw new Error("Invalid ext type: "+(i&&"0x"+i.toString(16)));var s=pm.slice.call(n.buffer,t,r);return o(s)}function E1(n){var e=n.reserve(1);return n.buffer[e]}function Eue(n){var e=n.reserve(1),t=n.buffer[e];return t&128?t-256:t}function _ue(n){var e=n.reserve(2),t=n.buffer;return t[e++]<<8|t[e]}function Pue(n){var e=n.reserve(2),t=n.buffer,i=t[e++]<<8|t[e];return i&32768?i-65536:i}function Rue(n){var e=n.reserve(4),t=n.buffer;return t[e++]*16777216+(t[e++]<<16)+(t[e++]<<8)+t[e]}function Lue(n){var e=n.reserve(4),t=n.buffer;return t[e++]<<24|t[e++]<<16|t[e++]<<8|t[e]}function fm(n,e){return function(t){var i=t.reserve(n);return e.call(t.buffer,i,yue)}}function Iue(n){return new k1(this,n).toNumber()}function jue(n){return new D1(this,n).toNumber()}function Fue(n){return new k1(this,n)}function Oue(n){return new D1(this,n)}function Mue(n){return S1.read(this,n,!1,23,4)}function Aue(n){return S1.read(this,n,!1,52,8)}});var R1=m(P1=>{var Nue=IS();P1.getReadToken=Hue;function Hue(n){var e=Nue.getReadFormat(n);return n&&n.useraw?que(e):_1(e)}function _1(n){var e,t=new Array(256);for(e=0;e<=127;e++)t[e]=Cd(e);for(e=128;e<=143;e++)t[e]=Ro(e-128,n.map);for(e=144;e<=159;e++)t[e]=Ro(e-144,n.array);for(e=160;e<=191;e++)t[e]=Ro(e-160,n.str);for(t[192]=Cd(null),t[193]=null,t[194]=Cd(!1),t[195]=Cd(!0),t[196]=In(n.uint8,n.bin),t[197]=In(n.uint16,n.bin),t[198]=In(n.uint32,n.bin),t[199]=In(n.uint8,n.ext),t[200]=In(n.uint16,n.ext),t[201]=In(n.uint32,n.ext),t[202]=n.float32,t[203]=n.float64,t[204]=n.uint8,t[205]=n.uint16,t[206]=n.uint32,t[207]=n.uint64,t[208]=n.int8,t[209]=n.int16,t[210]=n.int32,t[211]=n.int64,t[212]=Ro(1,n.ext),t[213]=Ro(2,n.ext),t[214]=Ro(4,n.ext),t[215]=Ro(8,n.ext),t[216]=Ro(16,n.ext),t[217]=In(n.uint8,n.str),t[218]=In(n.uint16,n.str),t[219]=In(n.uint32,n.str),t[220]=In(n.uint16,n.array),t[221]=In(n.uint32,n.array),t[222]=In(n.uint16,n.map),t[223]=In(n.uint32,n.map),e=224;e<=255;e++)t[e]=Cd(e-256);return t}function que(n){var e,t=_1(n).slice();for(t[217]=t[196],t[218]=t[197],t[219]=t[198],e=160;e<=191;e++)t[e]=Ro(e-160,n.bin);return t}function Cd(n){return function(){return n}}function In(n,e){return function(t){var i=n(t);return e(t,i)}}function Ro(n,e){return function(t){return e(t,n)}}});var mm=m(I1=>{var Bue=lm().ExtBuffer,Yue=C1(),Wue=IS().readUint8,Zue=R1(),jS=wd();jS.install({addExtUnpacker:$ue,getExtUnpacker:Xue,init:L1});I1.preset=L1.call(jS.preset);function Jue(n){var e=Zue.getReadToken(n);return t;function t(i){var r=Wue(i),o=e[r];if(!o)throw new Error("Invalid type: "+(r&&"0x"+r.toString(16)));return o(i)}}function L1(){var n=this.options;return this.decode=Jue(n),n&&n.preset&&Yue.setExtUnpackers(this),this}function $ue(n,e){var t=this.extUnpackers||(this.extUnpackers=[]);t[n]=jS.filter(e)}function Xue(n){var e=this.extUnpackers||(this.extUnpackers=[]);return e[n]||t;function t(i){return new Bue(i,n)}}});var bm=m(j1=>{j1.DecodeBuffer=Fu;var Uue=mm().preset,Gue=ES().FlexDecoder;Gue.mixin(Fu.prototype);function Fu(n){if(!(this instanceof Fu))return new Fu(n);if(n&&(this.options=n,n.codec)){var e=this.codec=n.codec;e.bufferish&&(this.bufferish=e.bufferish)}}Fu.prototype.codec=Uue;Fu.prototype.fetch=function(){return this.codec.decode(this)}});var PS=m(F1=>{F1.decode=zue;var Kue=bm().DecodeBuffer;function zue(n,e){var t=new Kue(e);return t.write(n),t.read()}});var MS=m((O0e,OS)=>{function FS(){if(!(this instanceof FS))return new FS}(function(n){typeof OS<"u"&&(OS.exports=n);var e="listeners",t={on:r,once:o,off:s,emit:a};i(n.prototype),n.mixin=i;function i(u){for(var c in t)u[c]=t[c];return u}function r(u,c){return l(this,u).push(c),this}function o(u,c){var h=this;return d.originalListener=c,l(h,u).push(d),h;function d(){s.call(h,u,d),c.apply(this,arguments)}}function s(u,c){var h=this,d;if(!arguments.length)delete h[e];else if(c){if(d=l(h,u,!0),d){if(d=d.filter(g),!d.length)return s.call(h,u);h[e][u]=d}}else if(d=h[e],d&&(delete d[u],!Object.keys(d).length))return s.call(h);return h;function g(f){return f!==c&&f.originalListener!==c}}function a(u,c){var h=this,d=l(h,u,!0);if(!d)return!1;var g=arguments.length;if(g===1)d.forEach(p);else if(g===2)d.forEach(b);else{var f=Array.prototype.slice.call(arguments,1);d.forEach(y)}return!!d.length;function p(w){w.call(h)}function b(w){w.call(h,c)}function y(w){w.apply(h,f)}}function l(u,c,h){if(!(h&&!u[e])){var d=u[e]||(u[e]={});return d[c]||(d[c]=[])}}})(FS)});var A1=m(M1=>{M1.Encoder=el;var Que=MS(),O1=gm().EncodeBuffer;function el(n){if(!(this instanceof el))return new el(n);O1.call(this,n)}el.prototype=new O1;Que.mixin(el.prototype);el.prototype.encode=function(n){this.write(n),this.emit("data",this.read())};el.prototype.end=function(n){arguments.length&&this.encode(n),this.flush(),this.emit("end")}});var q1=m(H1=>{H1.Decoder=Ns;var Vue=MS(),N1=bm().DecodeBuffer;function Ns(n){if(!(this instanceof Ns))return new Ns(n);N1.call(this,n)}Ns.prototype=new N1;Vue.mixin(Ns.prototype);Ns.prototype.decode=function(n){arguments.length&&this.write(n),this.flush()};Ns.prototype.push=function(n){this.emit("data",n)};Ns.prototype.end=function(n){this.decode(n),this.emit("end")}});var W1=m(Y1=>{Y1.createEncodeStream=Ou;var ece=require("util"),B1=require("stream").Transform,tce=gm().EncodeBuffer;ece.inherits(Ou,B1);var ice={objectMode:!0};function Ou(n){if(!(this instanceof Ou))return new Ou(n);n?n.objectMode=!0:n=ice,B1.call(this,n);var e=this,t=this.encoder=new tce(n);t.push=function(i){e.push(i)}}Ou.prototype._transform=function(n,e,t){this.encoder.write(n),t&&t()};Ou.prototype._flush=function(n){this.encoder.flush(),n&&n()}});var $1=m(J1=>{J1.createDecodeStream=Sd;var nce=require("util"),Z1=require("stream").Transform,rce=bm().DecodeBuffer;nce.inherits(Sd,Z1);var oce={objectMode:!0};function Sd(n){if(!(this instanceof Sd))return new Sd(n);n?n.objectMode=!0:n=oce,Z1.call(this,n);var e=this,t=this.decoder=new rce(n);t.push=function(i){e.push(i)}}Sd.prototype._transform=function(n,e,t){this.decoder.write(n),this.decoder.flush(),t&&t()}});var U1=m(X1=>{mm();dm();X1.createCodec=wd().createCodec});var K1=m(G1=>{mm();dm();G1.codec={preset:wd().preset}});var z1=m(Lo=>{Lo.encode=xS().encode;Lo.decode=PS().decode;Lo.Encoder=A1().Encoder;Lo.Decoder=q1().Decoder;Lo.createEncodeStream=W1().createEncodeStream;Lo.createDecodeStream=$1().createDecodeStream;Lo.createCodec=U1().createCodec;Lo.codec=K1().codec});var V1=m(AS=>{"use strict";Object.defineProperty(AS,"__esModule",{value:!0});var sce=require("stream"),Q1=class extends sce.Transform{constructor(){super({readableHighWaterMark:10*1024*1024,writableHighWaterMark:10*1024*1024});this.chunks=null,this.timer=null}sendData(){let{chunks:e}=this;if(e){this.chunks=null;let t=Buffer.concat(e);this.push(t)}}_transform(e,t,i){let{chunks:r,timer:o}=this,s=Buffer.poolSize;if(o&&clearTimeout(o),e.length<s){if(!r)return i(null,e);r.push(e),this.sendData(),i()}else r?r.push(e):this.chunks=[e],this.timer=setTimeout(this.sendData.bind(this),20),i()}_flush(e){let{chunks:t}=this;if(t){this.chunks=null;let i=Buffer.concat(t);e(null,i)}else e()}};AS.default=Q1});var Td=m(ym=>{"use strict";Object.defineProperty(ym,"__esModule",{value:!0});ym.BaseApi=void 0;var ace=require("events"),lce=process.env.VIM_NODE_RPC=="1",eA=class extends ace.EventEmitter{constructor({transport:e,data:t,client:i}){super();this.setTransport(e),this.data=t,this.client=i}setTransport(e){this.transport=e}equals(e){try{return String(this.data)===String(e.data)}catch{return!1}}async request(e,t=[]){let i=Error().stack;return new Promise((r,o)=>{this.transport.request(e,this.getArgsByPrefix(t),(s,a)=>{if(s){let l=new Error(`${s[1].split(/\r?\n/)[0]}`);l.stack=`Error: request error on ${e} - ${s[1]}
`+i.split(/\r?\n/).slice(3).join(`
`),e.endsWith("get_var")||this.client.logError(`request error on "${e}"`,t,s[1],i),o(l)}else r(a)})})}getArgsByPrefix(e){return this.prefix!=="nvim_"&&e[0]!=this?[lce?this.data:this,...e]:e}getVar(e){return this.request(`${this.prefix}get_var`,[e]).then(t=>t,t=>null)}setVar(e,t,i=!1){if(i){this.notify(`${this.prefix}set_var`,[e,t]);return}return this.request(`${this.prefix}set_var`,[e,t])}deleteVar(e){this.notify(`${this.prefix}del_var`,[e])}getOption(e){return this.request(`${this.prefix}get_option`,[e])}setOption(e,t,i){if(i){this.notify(`${this.prefix}set_option`,[e,t]);return}return this.request(`${this.prefix}set_option`,[e,t])}notify(e,t=[]){this.transport.notify(e,this.getArgsByPrefix(t))}};ym.BaseApi=eA});var kd=m(vm=>{"use strict";Object.defineProperty(vm,"__esModule",{value:!0});vm.Buffer=void 0;var uce=Td(),tA=class extends uce.BaseApi{constructor(){super(...arguments);this.prefix="nvim_buf_"}async attach(e=!1,t={}){return await this.request(`${this.prefix}attach`,[e,t])}async detach(){return await this.request(`${this.prefix}detach`,[])}get id(){return this.data}get length(){return this.request(`${this.prefix}line_count`,[])}get lines(){return this.getLines()}get changedtick(){return this.request(`${this.prefix}get_changedtick`,[])}get commands(){return this.getCommands()}getCommands(e={}){return this.request(`${this.prefix}get_commands`,[e])}getLines({start:e,end:t,strictIndexing:i}={start:0,end:-1,strictIndexing:!0}){let r=typeof i>"u"?!0:i;return this.request(`${this.prefix}get_lines`,[e,t,r])}setLines(e,t,i=!1){let{start:r,end:o,strictIndexing:s}=t!=null?t:{};r=r!=null?r:0,o=o!=null?o:r+1;let a=s!=null?s:!0;return this[i?"notify":"request"](`${this.prefix}set_lines`,[r,o,a,typeof e=="string"?[e]:e])}setVirtualText(e,t,i,r={}){return this.client.isVim?Promise.resolve(-1):(this.notify(`${this.prefix}set_virtual_text`,[e,t,i,r]),Promise.resolve(e))}deleteExtMark(e,t){this.client.isVim||this.notify(`${this.prefix}del_extmark`,[e,t])}async getExtMarkById(e,t,i={}){return this.client.isVim?Promise.resolve([]):this.request(`${this.prefix}get_extmark_by_id`,[e,t,i])}async getExtMarks(e,t,i,r={}){return this.client.isVim?Promise.resolve([]):this.request(`${this.prefix}get_extmarks`,[e,t,i,r])}setExtMark(e,t,i,r={}){this.client.isVim||this.notify(`${this.prefix}set_extmark`,[e,t,i,r])}insert(e,t){return this.setLines(e,{start:t,end:t,strictIndexing:!0})}replace(e,t){let i=typeof e=="string"?[e]:e;return this.setLines(i,{start:t,end:t+i.length,strictIndexing:!1})}remove(e,t,i=!1){return this.setLines([],{start:e,end:t,strictIndexing:i})}append(e){return this.setLines(e,{start:-1,end:-1,strictIndexing:!1})}get name(){return this.request(`${this.prefix}get_name`,[])}setName(e){return this.request(`${this.prefix}set_name`,[e])}get valid(){return this.request(`${this.prefix}is_valid`,[])}mark(e){return this.request(`${this.prefix}get_mark`,[e])}getKeymap(e){return this.request(`${this.prefix}get_keymap`,[e])}setKeymap(e,t,i,r={}){this.client.call("coc#compat#buf_add_keymap",[this.id,e,t,i,r],!0)}get loaded(){return this.request(`${this.prefix}is_loaded`,[])}getOffset(e){return this.request(`${this.prefix}get_offset`,[e])}addHighlight({hlGroup:e,line:t,colStart:i,colEnd:r,srcId:o}){if(!e)throw new Error("hlGroup should not empty");let s=typeof r<"u"?r:-1,a=typeof i<"u"?i:-0,l=typeof o<"u"?o:-1,u=l==0?"request":"notify",c=this[u](`${this.prefix}add_highlight`,[l,e,t,a,s]);return u==="request"?c:Promise.resolve(null)}clearHighlight(e={}){let t={srcId:-1,lineStart:0,lineEnd:-1},{srcId:i,lineStart:r,lineEnd:o}=Object.assign({},t,e);return this.notify(`${this.prefix}clear_highlight`,[i,r,o])}highlightRanges(e,t,i){this.client.call("coc#highlight#ranges",[this.id,e,t,i],!0)}clearNamespace(e,t=0,i=-1){this.client.call("coc#highlight#clear_highlight",[this.id,e,t,i],!0)}placeSign(e){let t={lnum:e.lnum};typeof e.priority=="number"&&(t.priority=e.priority),this.client.call("sign_place",[e.id||0,e.group||"",e.name,this.id,t],!0)}unplaceSign(e){let t={buffer:this.id};e.id!=null&&(t.id=e.id),this.client.call("sign_unplace",[e.group||"",t],!0)}async getSigns(e){return(await this.client.call("sign_getplaced",[this.id,e||{}]))[0].signs}async getHighlights(e,t=0,i=-1){let r=[],o=await this.client.call("coc#highlight#get_highlights",[this.id,e,t,i]);for(let s of o)r.push({hlGroup:s[0],lnum:s[1],colStart:s[2],colEnd:s[3],id:s[4]});return r}updateHighlights(e,t,i={}){if(typeof i=="number"){this.client.logError("Bad option for buffer.updateHighlights()",new Error().stack);return}let r=typeof i.start=="number"?i.start:0,o=typeof i.end=="number"?i.end:-1,s=typeof i.changedtick=="number"?i.changedtick:null,a=typeof i.priority=="number"?i.priority:null;if(r==0&&o==-1){let l=t.map(u=>[u.hlGroup,u.lnum,u.colStart,u.colEnd,u.combine===!1?0:1,u.start_incl?1:0,u.end_incl?1:0]);this.client.call("coc#highlight#buffer_update",[this.id,e,l,a,s],!0);return}this.client.call("coc#highlight#update_highlights",[this.id,e,t,r,o,a,s],!0)}listen(e,t,i){this.client.attachBufferEvent(this,e,t),i&&i.push({dispose:()=>{this.client.detachBufferEvent(this,e,t)}})}};vm.Buffer=tA});var Dd=m(wm=>{"use strict";Object.defineProperty(wm,"__esModule",{value:!0});wm.Window=void 0;var cce=Td(),NS=require("timers"),iA=class extends cce.BaseApi{constructor(){super(...arguments);this.prefix="nvim_win_"}get id(){return this.data}get buffer(){return this.request(`${this.prefix}get_buf`,[])}get tabpage(){return this.request(`${this.prefix}get_tabpage`,[])}get cursor(){return this.request(`${this.prefix}get_cursor`,[])}setCursor(e,t=!1){return this[t?"notify":"request"](`${this.prefix}set_cursor`,[e])}get height(){return this.request(`${this.prefix}get_height`,[])}setHeight(e,t=!1){return this[t?"notify":"request"](`${this.prefix}set_height`,[e])}get width(){return this.request(`${this.prefix}get_width`,[])}setWidth(e,t=!1){return this[t?"notify":"request"](`${this.prefix}set_height`,[e])}get position(){return this.request(`${this.prefix}get_position`,[])}get row(){return this.request(`${this.prefix}get_position`,[]).then(e=>e[0])}get col(){return this.request(`${this.prefix}get_position`,[]).then(e=>e[1])}get valid(){return this.request(`${this.prefix}is_valid`,[])}get number(){return this.request(`${this.prefix}get_number`,[])}setConfig(e,t){return this[t?"notify":"request"](`${this.prefix}set_config`,[e])}getConfig(){return this.request(`${this.prefix}get_config`,[])}close(e,t){if(t){this.notify(`${this.prefix}close`,[e]);let i=0,r=setInterval(()=>{if(i==5)return(0,NS.clearInterval)(r);this.request(`${this.prefix}is_valid`,[]).then(o=>{o?this.notify(`${this.prefix}close`,[e]):(0,NS.clearInterval)(r)},()=>{(0,NS.clearInterval)(r)}),i++},50);return null}return this.request(`${this.prefix}close`,[e])}highlightRanges(e,t,i=10,r){if(r){this.client.call("coc#highlight#match_ranges",[this.id,0,t,e,i],!0);return}return this.client.call("coc#highlight#match_ranges",[this.id,0,t,e,i])}clearMatchGroup(e){this.client.call("coc#highlight#clear_match_group",[this.id,e],!0)}clearMatches(e){this.client.call("coc#highlight#clear_matches",[this.id,e],!0)}};wm.Window=iA});var Ed=m(xm=>{"use strict";Object.defineProperty(xm,"__esModule",{value:!0});xm.Tabpage=void 0;var hce=Td(),nA=class extends hce.BaseApi{constructor(){super(...arguments);this.prefix="nvim_tabpage_"}get windows(){return this.request(`${this.prefix}list_wins`,[])}get window(){return this.request(`${this.prefix}get_win`,[])}get valid(){return this.request(`${this.prefix}is_valid`,[])}get number(){return this.request(`${this.prefix}get_number`,[])}getOption(){throw new Error("Tabpage does not have `getOption`")}setOption(){throw new Error("Tabpage does not have `setOption`")}};xm.Tabpage=nA});var rA=m(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});tl.Metadata=tl.ExtType=void 0;var dce=kd(),gce=Dd(),fce=Ed(),pce;(function(n){n[n.Buffer=0]="Buffer",n[n.Window=1]="Window",n[n.Tabpage=2]="Tabpage"})(pce=tl.ExtType||(tl.ExtType={}));tl.Metadata=[{constructor:dce.Buffer,name:"Buffer",prefix:"nvim_buf_"},{constructor:gce.Window,name:"Window",prefix:"nvim_win_"},{constructor:fce.Tabpage,name:"Tabpage",prefix:"nvim_tabpage_"}]});var Mu=m(Hs=>{"use strict";var WS=Hs&&Hs.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Hs,"__esModule",{value:!0});Hs.createLogger=Hs.nullLogger=void 0;var HS=WS(require("fs")),mce=WS(require("os")),qS=WS(require("path"));Hs.nullLogger={debug:()=>{},info:()=>{},warn:()=>{},error:()=>{},trace:()=>{}};function bce(){let n=process.env.NODE_CLIENT_LOG_FILE;if(n)return n;let e=process.env.XDG_RUNTIME_DIR;return e?qS.default.join(e,"node-client.log"):qS.default.join(mce.default.tmpdir(),`node-client-${process.pid}.log`)}var BS=bce(),oA=process.env.NODE_CLIENT_LOG_LEVEL||"info",YS=process.getuid&&process.getuid()==0;if(!YS)try{HS.default.mkdirSync(qS.default.dirname(BS),{recursive:!0}),HS.default.writeFileSync(BS,"",{encoding:"utf8",mode:438})}catch{YS=!0}function sA(n){return n==null?n:Array.isArray(n)?n.map(e=>sA(e)):typeof n=="object"&&typeof n.prefix=="string"&&typeof n.data=="number"?"["+n.prefix+n.data+"]":n}function yce(n){return n==null?String(n):typeof n=="object"?JSON.stringify(n,null,2):String(n)}function vce(n){return`${n.getHours()}:${n.getMinutes()}:${n.getSeconds()}.${n.getMilliseconds()}`}var aA=class{constructor(e){this.name=e}get stream(){return YS?null:this._stream?this._stream:(this._stream=HS.default.createWriteStream(BS,{encoding:"utf8"}),this._stream)}getText(e,t,i){let r="";if(i.length){let o=sA(i);r=" "+o.map(s=>yce(s))}return`${vce(new Date)} ${e.toUpperCase()} [${this.name}] - ${t}${r}
`}debug(e,...t){oA!="debug"||this.stream==null||this.stream.write(this.getText("debug",e,t))}info(e,...t){this.stream!=null&&this.stream.write(this.getText("info",e,t))}warn(e,...t){this.stream!=null&&this.stream.write(this.getText("warn",e,t))}error(e,...t){this.stream!=null&&this.stream.write(this.getText("error",e,t))}trace(e,...t){oA!="trace"||this.stream==null||this.stream.write(this.getText("trace",e,t))}};function wce(n){return new aA(n)}Hs.createLogger=wce});var JS=m(ZS=>{"use strict";Object.defineProperty(ZS,"__esModule",{value:!0});var xce=require("events"),Cce=Mu(),lA=process.env.NODE_CLIENT_LOG_LEVEL=="debug",_d=(0,Cce.createLogger)("transport"),uA=class extends xce.EventEmitter{constructor(e){super();this.logger=e,this.pauseLevel=0,this.paused=new Map}debug(e,...t){!lA||_d.debug(e,...t)}info(e,...t){_d.info(e,...t)}debugMessage(e){if(!lA)return;let t=e[0];t==0?_d.debug("receive request:",e.slice(1)):t==1||(t==2?_d.debug("receive notification:",e.slice(1)):_d.debug("unknown message:",e))}pauseNotification(){this.pauseLevel=this.pauseLevel+1,this.paused.set(this.pauseLevel,[])}cancelNotification(){let{pauseLevel:e}=this;e>0&&(this.paused.delete(e),this.pauseLevel=e-1)}resumeNotification(e=!1){let{pauseLevel:t}=this;if(t==0)return e?null:Promise.resolve([[],null]);let i=Error().stack;this.pauseLevel=t-1;let r=this.paused.get(t);return this.paused.delete(t),r&&r.length?new Promise((o,s)=>{if(!e)return this.request("nvim_call_atomic",[r],(a,l)=>{if(a){let u=new Error(`call_atomic error: ${a[1]}`);return u.stack=i,s(u)}if(Array.isArray(l)&&l[1]!=null){let[u,c,h]=l[1],[d,g]=r[u],f=new Error(`call_atomic request error on "${d}": ${h}`);return f.stack=i,this.logger.error(`call_atomic request error ${c} on "${d}"`,g,h,i),s(f)}o(l)});this.notify("nvim_call_atomic",[r]),o(void 0)}):e?null:Promise.resolve([[],void 0])}};ZS.default=uA});var dA=m(Un=>{"use strict";var Sce=Un&&Un.__createBinding||(Object.create?function(n,e,t,i){i===void 0&&(i=t);var r=Object.getOwnPropertyDescriptor(e,t);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(n,i,r)}:function(n,e,t,i){i===void 0&&(i=t),n[i]=e[t]}),Tce=Un&&Un.__setModuleDefault||(Object.create?function(n,e){Object.defineProperty(n,"default",{enumerable:!0,value:e})}:function(n,e){n.default=e}),kce=Un&&Un.__importStar||function(n){if(n&&n.__esModule)return n;var e={};if(n!=null)for(var t in n)t!=="default"&&Object.prototype.hasOwnProperty.call(n,t)&&Sce(e,n,t);return Tce(e,n),e},cA=Un&&Un.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Un,"__esModule",{value:!0});Un.NvimTransport=void 0;var Io=kce(z1()),Dce=cA(V1()),Ece=rA(),_ce=cA(JS()),hA=class extends _ce.default{constructor(e){super(e);this.pending=new Map,this.nextRequestId=1,this.attached=!1;let t=this.setupCodec();this.encodeStream=Io.createEncodeStream({codec:t}),this.decodeStream=Io.createDecodeStream({codec:t}),this.decodeStream.on("data",i=>{this.parseMessage(i)}),this.decodeStream.on("end",()=>{this.detach(),this.emit("detach")})}parseMessage(e){let t=e[0];if(this.debugMessage(e),t===0)this.emit("request",e[2].toString(),e[3],this.createResponse(e[1]));else if(t===1){let i=e[1],r=this.pending.get(i);if(r){this.pending.delete(i);let o=e[2];o&&o.length!=2&&(o=[0,o instanceof Error?o.message:o]),r(o,e[3])}}else t===2?this.emit("notification",e[1].toString(),e[2]):console.error(`Invalid message type ${t}`)}setupCodec(){let e=Io.createCodec();return Ece.Metadata.forEach(({constructor:t},i)=>{e.addExtPacker(i,t,r=>Io.encode(r.data)),e.addExtUnpacker(i,r=>new t({transport:this,client:this.client,data:Io.decode(r)}))}),this.codec=e,this.codec}attach(e,t,i){this.encodeStream=this.encodeStream.pipe(e);let r=new Dce.default;t.pipe(r).pipe(this.decodeStream),this.writer=e,this.reader=t,this.client=i,this.attached=!0}detach(){!this.attached||(this.attached=!1,this.encodeStream.unpipe(this.writer),this.reader.unpipe(this.decodeStream))}request(e,t,i){if(!this.attached)return;let r=this.nextRequestId;this.nextRequestId=this.nextRequestId+1;let o=Date.now();this.debug("request to nvim:",r,e,t),this.encodeStream.write(Io.encode([0,r,e,t],{codec:this.codec}));let s=Error().stack,a=setTimeout(()=>{this.debug(`request to vim blocked more than 1s: ${e}`,t,s)},1e3);this.pending.set(r,(l,u)=>{clearTimeout(a),this.debug("response of nvim:",r,`${Date.now()-o}ms`,u,l),i(l,u)})}notify(e,t){if(!!this.attached){if(this.pauseLevel!=0){let i=this.paused.get(this.pauseLevel);if(i){i.push([e,t]);return}}this.debug("nvim notification:",e,t),this.encodeStream.write(Io.encode([2,e,t],{codec:this.codec}))}}send(e){this.encodeStream.write(Io.encode(e,{codec:this.codec}))}createResponse(e){let{encodeStream:t}=this,i=Date.now(),r=!1,o=setTimeout(()=>{this.debug("request to client cost more than 1s",e)},1e3);return{send:(s,a)=>{clearTimeout(o),!(r||!this.attached)&&(this.debug("response of client:",e,`${Date.now()-i}ms`,s,a==!0),r=!0,t.write(Io.encode([1,e,a?s:null,a?null:s])))}}}};Un.NvimTransport=hA});var pA=m(Pd=>{"use strict";var gA=Pd&&Pd.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Pd,"__esModule",{value:!0});var Pce=gA(require("events")),Rce=gA(require("readline")),Lce=Mu(),Au=(0,Lce.createLogger)("connection"),fA=class extends Pce.default{constructor(e,t){super();this.readable=e,this.writeable=t;let i=Rce.default.createInterface(this.readable);i.on("line",r=>{this.parseData(r)}),i.on("close",()=>{Au.error("connection closed"),process.exit(0)})}parseData(e){if(e.length==0)return;let t;try{t=JSON.parse(e)}catch{console.error(`Invalid data from vim: ${e}`);return}let[i,r]=t;i>0?(Au.debug("received request:",i,r),this.emit("request",i,r)):i==0?(Au.debug("received notification:",r),this.emit("notification",r)):(Au.debug("received response:",i,r),this.emit("response",i,r))}response(e,t){this.send([e,t||null])}notify(e,t){this.send([0,[e,t||null]])}send(e){Au.debug("send to vim:",e);try{this.writeable.write(JSON.stringify(e)+`
`)}catch{Au.error("Send error:",e)}}redraw(e){this.send(["redraw",e?"force":""])}command(e){this.send(["ex",e])}expr(e){this.send(["expr",e])}call(e,t,i){if(!i){this.send(["call",e,t]);return}this.send(["call",e,t,i])}dispose(){this.removeAllListeners()}};Pd.default=fA});var bA=m($S=>{"use strict";Object.defineProperty($S,"__esModule",{value:!0});var Ice=Mu(),V0e=(0,Ice.createLogger)("request"),jce=process.env.COC_NVIM=="1"?"coc#api#call":"nvim#api#call",mA=class{constructor(e,t,i){this.connection=e,this.cb=t,this.id=i}request(e,t=[]){this.method=e,this.connection.call(jce,[e.slice(5),t],this.id)}callback(e,t,i){let{method:r,cb:o}=this;if(t)return o([0,t.toString()]);switch(r){case"nvim_list_wins":case"nvim_tabpage_list_wins":return o(null,i.map(s=>e.createWindow(s)));case"nvim_tabpage_get_win":case"nvim_get_current_win":case"nvim_open_win":return o(null,e.createWindow(i));case"nvim_list_bufs":return o(null,i.map(s=>e.createBuffer(s)));case"nvim_win_get_buf":case"nvim_create_buf":case"nvim_get_current_buf":return o(null,e.createBuffer(i));case"nvim_list_tabpages":return o(null,i.map(s=>e.createTabpage(s)));case"nvim_get_current_tabpage":return o(null,e.createTabpage(i));default:return o(null,i)}}};$S.default=mA});var vA=m(Nu=>{"use strict";var XS=Nu&&Nu.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Nu,"__esModule",{value:!0});Nu.VimTransport=void 0;var Fce=XS(JS()),Oce=XS(pA()),Mce=XS(bA()),yA=class extends Fce.default{constructor(e){super(e);this.pending=new Map,this.nextRequestId=-1,this.attached=!1,this.errText="",this.outText="",this.notifyMethod=process.env.COC_NVIM=="1"?"coc#api#notify":"nvim#api#notify"}attach(e,t,i){let r=this.connection=new Oce.default(t,e);this.attached=!0,this.client=i,r.on("request",(o,s)=>{let[a,l]=s;this.emit("request",a,l,this.createResponse(o))}),r.on("notification",o=>{let[s,a]=o;this.emit("notification",s.toString(),a)}),r.on("response",(o,s)=>{let a=this.pending.get(o);if(a){this.pending.delete(o);let l=null,u=null;Array.isArray(s)?(l=s[0],u=s[1]):l=s,a.callback(this.client,l,u)}})}send(e){this.connection.send(e)}detach(){!this.attached||(this.attached=!1,this.connection.dispose())}request(e,t,i){if(!this.attached)return i([0,"transport disconnected"]);let r=this.nextRequestId;this.nextRequestId=this.nextRequestId-1;let o=Date.now();this.debug("request to vim:",r,e,t);let s=setTimeout(()=>{this.debug("request to vim cost more than 1s",e,t)},1e3),a=new Mce.default(this.connection,(l,u)=>{clearTimeout(s),this.debug("response from vim cost:",r,`${Date.now()-o}ms`),i(l,u)},r);this.pending.set(r,a),a.request(e,t)}notify(e,t){if(!this.attached)return;if(this.pauseLevel!=0){let r=this.paused.get(this.pauseLevel);if(r){r.push([e,t]);return}}let i=e.slice(5);if(i=="err_write"){this.errText=this.errText+t[0].toString();return}if(i=="out_write"){let r=t[0].toString()||"";if(!r.includes(`
`))this.outText=this.outText+r;else{let o=this.outText+t[0].toString();this.outText="",this.connection.call(this.notifyMethod,[i,[o]])}return}if(i=="err_writeln"){let r=this.errText+t[0].toString();this.errText="",this.connection.call(this.notifyMethod,[i,[r]]);return}this.connection.call(this.notifyMethod,[i,t])}createResponse(e){let t=!1,{connection:i}=this,r=Date.now(),o=setTimeout(()=>{this.debug("request to client cost more than 1s",e)},1e3);return{send:(s,a)=>{if(clearTimeout(o),t||!this.attached)return;t=!0;let l=null;a&&(l=typeof s=="string"?s:s.toString()),this.debug("response of client cost:",e,`${Date.now()-r}ms`),i.response(e,[l,a?null:s])}}}};Nu.VimTransport=yA});var xA=m(Cm=>{"use strict";Object.defineProperty(Cm,"__esModule",{value:!0});Cm.Neovim=void 0;var Ace=Td(),Nce=kd(),Hce=Ed(),qce=Dd(),Bce=process.env.VIM_NODE_RPC=="1",wA=class extends Ace.BaseApi{constructor(){super(...arguments);this.prefix="nvim_",this.Buffer=Nce.Buffer,this.Window=qce.Window,this.Tabpage=Hce.Tabpage}getArgs(e){return e?Array.isArray(e)?e:[e]:[]}get apiInfo(){return this.request(`${this.prefix}get_api_info`)}get buffers(){return this.request(`${this.prefix}list_bufs`)}get buffer(){return this.request(`${this.prefix}get_current_buf`)}async setBuffer(e){await 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])}createNamespace(e=""){return process.env.COC_NVIM=="1"?(e=e.startsWith("coc-")?e.slice(4):e,this.request(`${this.prefix}call_function`,["coc#highlight#create_namespace",[e]])):this.request(`${this.prefix}create_namespace`,[e])}get namespaces(){return this.request(`${this.prefix}get_namespaces`,[])}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 this.request(`${this.prefix}get_current_tabpage`)}async setTabpage(e){await this.request(`${this.prefix}set_current_tabpage`,[e])}get windows(){return this.getWindows()}get window(){return this.request(`${this.prefix}get_current_win`)}getWindows(){return this.request(`${this.prefix}list_wins`)}async setWindow(e){await this.request(`${this.prefix}set_current_win`,[e])}get runtimePaths(){return this.request(`${this.prefix}list_runtime_paths`)}setDirectory(e){return this.request(`${this.prefix}set_current_dir`,[e])}get line(){return this.getLine()}createNewBuffer(e=!1,t=!1){return this.request(`${this.prefix}create_buf`,[e,t])}openFloatWindow(e,t,i){return this.request(`${this.prefix}open_win`,[e,t,i])}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){let i=typeof e=="string"?"by_name":"by_id";return this.request(`${this.prefix}get_hl_${i}`,[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=[]){return this.request(`${this.prefix}exec_lua`,[e,t])}executeLua(e,t=[]){let i=this.getArgs(t);return this.lua(e,i)}callDictFunction(e,t,i=[]){let r=this.getArgs(i);return this.request(`${this.prefix}call_dict_function`,[e,t,r])}call(e,t=[],i){let r=this.getArgs(t);return i?(this.notify(`${this.prefix}call_function`,[e,r]),null):this.request(`${this.prefix}call_function`,[e,r])}callTimer(e,t=[],i){let r=this.getArgs(t);return i?(this.notify(`${this.prefix}call_function`,["coc#util#timer",[e,r]]),null):Bce?(this.notify(`${this.prefix}call_function`,["coc#util#timer",[e,r]]),new Promise(o=>{setTimeout(()=>{o(null)},20)})):this.request(`${this.prefix}call_function`,["coc#util#timer",[e,r]])}callAsync(e,t=[]){let i=this.getArgs(t);return this.client.sendAsyncRequest(e,i)}callFunction(e,t=[]){return this.call(e,t)}callAtomic(e){return this.request(`${this.prefix}call_atomic`,[e])}command(e,t){return t?(this.notify(`${this.prefix}command`,[e]),null):this.request(`${this.prefix}command`,[e])}commandOutput(e){return this.request(`${this.prefix}command_output`,[e])}exec(e,t=!1){return this.request(`${this.prefix}exec`,[e,t])}getVvar(e){return this.request(`${this.prefix}get_vvar`,[e])}feedKeys(e,t,i){return this.request(`${this.prefix}feedkeys`,[e,t,i])}input(e){return this.request(`${this.prefix}input`,[e])}parseExpression(e,t,i){return this.request(`${this.prefix}parse_expression`,[e,t,i])}getProc(e){return this.request(`${this.prefix}get_proc`,[e])}getProcChildren(e){return this.request(`${this.prefix}get_proc_children`,[e])}replaceTermcodes(e,t,i,r){return this.request(`${this.prefix}replace_termcodes`,[e,t,i,r])}strWidth(e){return this.request(`${this.prefix}strwidth`,[e])}outWrite(e){this.notify(`${this.prefix}out_write`,[e])}outWriteLine(e){this.outWrite(`${e}
`)}errWrite(e){this.notify(`${this.prefix}err_write`,[e])}errWriteLine(e){this.notify(`${this.prefix}err_writeln`,[e])}get uis(){return this.request(`${this.prefix}list_uis`)}uiAttach(e,t,i){return this.request(`${this.prefix}ui_attach`,[e,t,i])}uiDetach(){return this.request(`${this.prefix}ui_detach`,[])}uiTryResize(e,t){return this.request(`${this.prefix}ui_try_resize`,[e,t])}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,i,r,o){this.notify(`${this.prefix}set_client_info`,[e,t,i,r,o])}async quit(){this.command("qa!",!0),this.transport&&this.transport.detach()}};Cm.Neovim=wA});var Tm=m(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{value:!0});Hu.NeovimClient=Hu.AsyncResponse=void 0;var Yce=dA(),Wce=vA(),Zce=xA(),Jce=kd(),$ce=Dd(),Xce=Ed(),Uce=Mu(),CA=(0,Uce.createLogger)("client"),Sm=process.env.VIM_NODE_RPC=="1",US=class{constructor(e,t){this.requestId=e,this.cb=t,this.finished=!1}finish(e,t){if(!this.finished){if(this.finished=!0,e){this.cb(new Error(e));return}this.cb(null,t)}}};Hu.AsyncResponse=US;var SA=class extends Zce.Neovim{constructor(e){super({});this.logger=e,this.requestId=1,this.responses=new Map,this.attachedBuffers=new Map,this.isVim=Sm,Object.defineProperty(this,"client",{value:this});let t=Sm?new Wce.VimTransport(e):new Yce.NvimTransport(e);this.setTransport(t),this.transportAttached=!1,this.handleRequest=this.handleRequest.bind(this),this.handleNotification=this.handleNotification.bind(this)}echoError(e){let t=process.env.COC_NVIM=="1"?"[coc.nvim] ":"";e instanceof Error?(this.errWriteLine(t+e.message+" use :CocOpenLog for details"),this.logError(e.message||"Unknown error",e.stack)):(this.errWriteLine(t+e),this.logError(e.toString(),Error().stack))}logError(e,...t){!this.logger||this.logger.error(e,...t)}createBuffer(e){return new Jce.Buffer({transport:this.transport,data:e,client:this})}createWindow(e){return new $ce.Window({transport:this.transport,data:e,client:this})}createTabpage(e){return new Xce.Tabpage({transport:this.transport,data:e,client:this})}send(e){this.transport.send(e)}redrawVim(e){!Sm||this.transport.notify("nvim_command",["redraw"+(e?"!":"")])}attach({reader:e,writer:t},i=!0){this.transport.attach(t,e,this),this.transportAttached=!0,this.setupTransport(i)}detach(){this.transport.detach(),this.transportAttached=!1}get isApiReady(){return this.transportAttached&&typeof this._channelId<"u"}get channelId(){return this._isReady.then(()=>this._channelId)}isAttached(e){return this.attachedBuffers.has(e)}handleRequest(e,t,i){this.emit("request",e,t,i)}sendAsyncRequest(e,t){let i=this.requestId;return this.requestId=i+1,this.notify("nvim_call_function",["coc#rpc#async_request",[i,e,t||[]]]),new Promise((r,o)=>{let s=new US(i,(a,l)=>{if(a)return o(a);r(l)});this.responses.set(i,s)})}emitNotification(e,t){if(e.endsWith("_event")){if(e.startsWith("nvim_buf_")){let i=e.replace(/nvim_buf_(.*)_event/,"$1"),{id:r}=t[0];if(!this.attachedBuffers.has(r))return;(this.attachedBuffers.get(r).get(i)||[]).forEach(a=>a(...t)),i==="detach"&&this.attachedBuffers.delete(r);return}if(e.startsWith("nvim_async_request")){let[i,r,o]=t;this.handleRequest(r,o,{send:(s,a)=>{this.notify("nvim_call_function",["coc#rpc#async_response",[i,s,a]])}});return}if(e.startsWith("nvim_async_response")){let[i,r,o]=t,s=this.responses.get(i);if(!s){console.error(`Response not found for request ${i}`);return}this.responses.delete(i),s.finish(r,o);return}if(e==="nvim_error_event"){this.logger.error("Error event from nvim:",t[0],t[1]);return}this.logger.debug(`Unhandled event: ${e}`,t)}else this.emit("notification",e,t)}handleNotification(e,t){this.emitNotification(e,t)}setupTransport(e=!0){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")}),e?this._isReady=this.generateApi():(this._channelId=0,this._isReady=Promise.resolve(!0))}requestApi(){return new Promise((e,t)=>{this.transport.request("nvim_get_api_info",[],(i,r)=>{i?t(new Error(Array.isArray(i)?i[1]:i.message||i.toString())):e(r)})})}async generateApi(){let e;try{e=await this.requestApi()}catch(t){console.error("Could not get vim api results"),CA.error(t)}if(e)try{let[t,i]=e;return this.functions=i.functions.map(r=>r.name),this._channelId=t,!0}catch(t){return CA.error(t.stack),null}return null}attachBufferEvent(e,t,i){let r=this.attachedBuffers.get(e.id)||new Map,o=r.get(t)||[];o.includes(i)||(o.push(i),r.set(t,o),this.attachedBuffers.set(e.id,r))}detachBufferEvent(e,t,i){let r=this.attachedBuffers.get(e.id);if(!r||!r.has(t))return;let o=r.get(t).filter(s=>s!==i);r.set(t,o)}pauseNotification(){let e=Error().stack;this.transport.pauseLevel!=0&&this.logError("Nested nvim.pauseNotification() detected, please avoid it:",e),this.transport.pauseNotification(),process.nextTick(()=>{this.transport.pauseLevel>0&&this.logError("resumeNotification not called within same tick:",e)})}resumeNotification(e,t){return Sm&&e&&this.transport.notify("nvim_command",["redraw"]),t?(this.transport.resumeNotification(!0),Promise.resolve(null)):this.transport.resumeNotification()}hasFunction(e){return this.functions?this.functions.includes(e):!0}};Hu.NeovimClient=SA});var TA=m(km=>{"use strict";Object.defineProperty(km,"__esModule",{value:!0});km.attach=void 0;var Gce=require("net"),Kce=Tm(),zce=Mu();function Qce({reader:n,writer:e,proc:t,socket:i},r=null,o=!0){let s,a,l;if(r||(r=zce.nullLogger),i){let u=(0,Gce.createConnection)(i);s=u,a=u,u.once("close",()=>{l.detach()})}else n&&e?(s=e,a=n):t&&(s=t.stdin,a=t.stdout,t.once("disconnect",()=>{l.detach()}));if(s.on("error",u=>{u.code=="EPIPE"&&l.detach()}),s&&a)return l=new Kce.NeovimClient(r),l.attach({writer:s,reader:a},o),l;throw new Error("Invalid arguments, could not attach")}km.attach=Qce});var kA=m(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.Tabpage=Gn.Window=Gn.Buffer=Gn.NeovimClient=Gn.Neovim=void 0;var Vce=Tm();Object.defineProperty(Gn,"Neovim",{enumerable:!0,get:function(){return Vce.NeovimClient}});var ehe=Tm();Object.defineProperty(Gn,"NeovimClient",{enumerable:!0,get:function(){return ehe.NeovimClient}});var the=kd();Object.defineProperty(Gn,"Buffer",{enumerable:!0,get:function(){return the.Buffer}});var ihe=Dd();Object.defineProperty(Gn,"Window",{enumerable:!0,get:function(){return ihe.Window}});var nhe=Ed();Object.defineProperty(Gn,"Tabpage",{enumerable:!0,get:function(){return nhe.Tabpage}})});var DA=m(sn=>{"use strict";Object.defineProperty(sn,"__esModule",{value:!0});sn.Window=sn.Tabpage=sn.Buffer=sn.NeovimClient=sn.Neovim=sn.attach=void 0;var rhe=TA();Object.defineProperty(sn,"attach",{enumerable:!0,get:function(){return rhe.attach}});var Rd=kA();Object.defineProperty(sn,"Neovim",{enumerable:!0,get:function(){return Rd.Neovim}});Object.defineProperty(sn,"NeovimClient",{enumerable:!0,get:function(){return Rd.NeovimClient}});Object.defineProperty(sn,"Buffer",{enumerable:!0,get:function(){return Rd.Buffer}});Object.defineProperty(sn,"Tabpage",{enumerable:!0,get:function(){return Rd.Tabpage}});Object.defineProperty(sn,"Window",{enumerable:!0,get:function(){return Rd.Window}})});var jo=m(zS=>{"use strict";Object.defineProperty(zS,"__esModule",{value:!0});var GS;function KS(){if(GS===void 0)throw new Error("No runtime abstraction layer installed");return GS}(function(n){function e(t){if(t===void 0)throw new Error("No runtime abstraction layer provided");GS=t}n.install=e})(KS||(KS={}));zS.default=KS});var QS=m(Ld=>{"use strict";Object.defineProperty(Ld,"__esModule",{value:!0});Ld.Disposable=void 0;var ohe;(function(n){function e(t){return{dispose:t}}n.create=e})(ohe=Ld.Disposable||(Ld.Disposable={}))});var _A=m(Dm=>{"use strict";Object.defineProperty(Dm,"__esModule",{value:!0});Dm.AbstractMessageBuffer=void 0;var she=13,ahe=10,lhe=`\r
`,EA=class{constructor(e="utf-8"){this._encoding=e,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(e){let t=typeof e=="string"?this.fromString(e,this._encoding):e;this._chunks.push(t),this._totalLength+=t.byteLength}tryReadHeaders(){if(this._chunks.length===0)return;let e=0,t=0,i=0,r=0;e:for(;t<this._chunks.length;){let l=this._chunks[t];i=0;t:for(;i<l.length;){switch(l[i]){case she:switch(e){case 0:e=1;break;case 2:e=3;break;default:e=0}break;case ahe:switch(e){case 1:e=2;break;case 3:e=4,i++;break e;default:e=0}break;default:e=0}i++}r+=l.byteLength,t++}if(e!==4)return;let o=this._read(r+i),s=new Map,a=this.toString(o,"ascii").split(lhe);if(a.length<2)return s;for(let l=0;l<a.length-2;l++){let u=a[l],c=u.indexOf(":");if(c===-1)throw new Error("Message header must separate key and value using :");let h=u.substr(0,c),d=u.substr(c+1).trim();s.set(h,d)}return s}tryReadBody(e){if(!(this._totalLength<e))return this._read(e)}get numberOfBytes(){return this._totalLength}_read(e){if(e===0)return this.emptyBuffer();if(e>this._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===e){let o=this._chunks[0];return this._chunks.shift(),this._totalLength-=e,this.asNative(o)}if(this._chunks[0].byteLength>e){let o=this._chunks[0],s=this.asNative(o,e);return this._chunks[0]=o.slice(e),this._totalLength-=e,s}let t=this.allocNative(e),i=0,r=0;for(;e>0;){let o=this._chunks[r];if(o.byteLength>e){let s=o.slice(0,e);t.set(s,i),i+=e,this._chunks[r]=o.slice(e),this._totalLength-=e,e-=e}else t.set(o,i),i+=o.byteLength,this._chunks.shift(),this._totalLength-=o.byteLength,e-=o.byteLength}return t}};Dm.AbstractMessageBuffer=EA});var jA=m(eT=>{"use strict";Object.defineProperty(eT,"__esModule",{value:!0});var uhe=jo(),PA=require("util"),il=QS(),che=_A(),Id=class extends che.AbstractMessageBuffer{constructor(e="utf-8"){super(e)}emptyBuffer(){return Id.emptyBuffer}fromString(e,t){return Buffer.from(e,t)}toString(e,t){return e instanceof Buffer?e.toString(t):new PA.TextDecoder(t).decode(e)}asNative(e,t){return t===void 0?e instanceof Buffer?e:Buffer.from(e):e instanceof Buffer?e.slice(0,t):Buffer.from(e,0,t)}allocNative(e){return Buffer.allocUnsafe(e)}};Id.emptyBuffer=Buffer.allocUnsafe(0);var RA=class{constructor(e){this.stream=e}onClose(e){return this.stream.on("close",e),il.Disposable.create(()=>this.stream.off("close",e))}onError(e){return this.stream.on("error",e),il.Disposable.create(()=>this.stream.off("error",e))}onEnd(e){return this.stream.on("end",e),il.Disposable.create(()=>this.stream.off("end",e))}onData(e){return this.stream.on("data",e),il.Disposable.create(()=>this.stream.off("data",e))}},LA=class{constructor(e){this.stream=e}onClose(e){return this.stream.on("close",e),il.Disposable.create(()=>this.stream.off("close",e))}onError(e){return this.stream.on("error",e),il.Disposable.create(()=>this.stream.off("error",e))}onEnd(e){return this.stream.on("end",e),il.Disposable.create(()=>this.stream.off("end",e))}write(e,t){return new Promise((i,r)=>{let o=s=>{s==null?i():r(s)};typeof e=="string"?this.stream.write(e,t,o):this.stream.write(e,o)})}end(){this.stream.end()}},IA=Object.freeze({messageBuffer:Object.freeze({create:n=>new Id(n)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(n,e)=>{try{return Promise.resolve(Buffer.from(JSON.stringify(n,void 0,0),e.charset))}catch(t){return Promise.reject(t)}}}),decoder:Object.freeze({name:"application/json",decode:(n,e)=>{try{return n instanceof Buffer?Promise.resolve(JSON.parse(n.toString(e.charset))):Promise.resolve(JSON.parse(new PA.TextDecoder(e.charset).decode(n)))}catch(t){return Promise.reject(t)}}})}),stream:Object.freeze({asReadableStream:n=>new RA(n),asWritableStream:n=>new LA(n)}),console,timer:Object.freeze({setTimeout(n,e,...t){return setTimeout(n,e,...t)},clearTimeout(n){clearTimeout(n)},setImmediate(n,...e){return setImmediate(n,...e)},clearImmediate(n){clearImmediate(n)}})});function VS(){return IA}(function(n){function e(){uhe.default.install(IA)}n.install=e})(VS||(VS={}));eT.default=VS});var qu=m(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});Ei.stringArray=Ei.array=Ei.func=Ei.error=Ei.number=Ei.string=Ei.boolean=void 0;function hhe(n){return n===!0||n===!1}Ei.boolean=hhe;function FA(n){return typeof n=="string"||n instanceof String}Ei.string=FA;function dhe(n){return typeof n=="number"||n instanceof Number}Ei.number=dhe;function ghe(n){return n instanceof Error}Ei.error=ghe;function fhe(n){return typeof n=="function"}Ei.func=fhe;function OA(n){return Array.isArray(n)}Ei.array=OA;function phe(n){return OA(n)&&n.every(e=>FA(e))}Ei.stringArray=phe});var tT=m(ne=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0});ne.isResponseMessage=ne.isNotificationMessage=ne.isRequestMessage=ne.NotificationType9=ne.NotificationType8=ne.NotificationType7=ne.NotificationType6=ne.NotificationType5=ne.NotificationType4=ne.NotificationType3=ne.NotificationType2=ne.NotificationType1=ne.NotificationType0=ne.NotificationType=ne.RequestType9=ne.RequestType8=ne.RequestType7=ne.RequestType6=ne.RequestType5=ne.RequestType4=ne.RequestType3=ne.RequestType2=ne.RequestType1=ne.RequestType=ne.RequestType0=ne.AbstractMessageSignature=ne.ParameterStructures=ne.ResponseError=ne.ErrorCodes=void 0;var nl=qu(),MA;(function(n){n.ParseError=-32700,n.InvalidRequest=-32600,n.MethodNotFound=-32601,n.InvalidParams=-32602,n.InternalError=-32603,n.jsonrpcReservedErrorRangeStart=-32099,n.serverErrorStart=n.jsonrpcReservedErrorRangeStart,n.MessageWriteError=-32099,n.MessageReadError=-32098,n.ServerNotInitialized=-32002,n.UnknownErrorCode=-32001,n.jsonrpcReservedErrorRangeEnd=-32e3,n.serverErrorEnd=n.jsonrpcReservedErrorRangeEnd})(MA=ne.ErrorCodes||(ne.ErrorCodes={}));var Em=class extends Error{constructor(e,t,i){super(t);this.code=nl.number(e)?e:MA.UnknownErrorCode,this.data=i,Object.setPrototypeOf(this,Em.prototype)}toJson(){return{code:this.code,message:this.message,data:this.data}}};ne.ResponseError=Em;var pi=class{constructor(e){this.kind=e}static is(e){return e===pi.auto||e===pi.byName||e===pi.byPosition}toString(){return this.kind}};ne.ParameterStructures=pi;pi.auto=new pi("auto");pi.byPosition=new pi("byPosition");pi.byName=new pi("byName");var xt=class{constructor(e,t){this.method=e,this.numberOfParams=t}get parameterStructures(){return pi.auto}};ne.AbstractMessageSignature=xt;var AA=class extends xt{constructor(e){super(e,0)}};ne.RequestType0=AA;var NA=class extends xt{constructor(e,t=pi.auto){super(e,1);this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}};ne.RequestType=NA;var HA=class extends xt{constructor(e,t=pi.auto){super(e,1);this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}};ne.RequestType1=HA;var qA=class extends xt{constructor(e){super(e,2)}};ne.RequestType2=qA;var BA=class extends xt{constructor(e){super(e,3)}};ne.RequestType3=BA;var YA=class extends xt{constructor(e){super(e,4)}};ne.RequestType4=YA;var WA=class extends xt{constructor(e){super(e,5)}};ne.RequestType5=WA;var ZA=class extends xt{constructor(e){super(e,6)}};ne.RequestType6=ZA;var JA=class extends xt{constructor(e){super(e,7)}};ne.RequestType7=JA;var $A=class extends xt{constructor(e){super(e,8)}};ne.RequestType8=$A;var XA=class extends xt{constructor(e){super(e,9)}};ne.RequestType9=XA;var UA=class extends xt{constructor(e,t=pi.auto){super(e,1);this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}};ne.NotificationType=UA;var GA=class extends xt{constructor(e){super(e,0)}};ne.NotificationType0=GA;var KA=class extends xt{constructor(e,t=pi.auto){super(e,1);this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}};ne.NotificationType1=KA;var zA=class extends xt{constructor(e){super(e,2)}};ne.NotificationType2=zA;var QA=class extends xt{constructor(e){super(e,3)}};ne.NotificationType3=QA;var VA=class extends xt{constructor(e){super(e,4)}};ne.NotificationType4=VA;var eN=class extends xt{constructor(e){super(e,5)}};ne.NotificationType5=eN;var tN=class extends xt{constructor(e){super(e,6)}};ne.NotificationType6=tN;var iN=class extends xt{constructor(e){super(e,7)}};ne.NotificationType7=iN;var nN=class extends xt{constructor(e){super(e,8)}};ne.NotificationType8=nN;var rN=class extends xt{constructor(e){super(e,9)}};ne.NotificationType9=rN;function mhe(n){let e=n;return e&&nl.string(e.method)&&(nl.string(e.id)||nl.number(e.id))}ne.isRequestMessage=mhe;function bhe(n){let e=n;return e&&nl.string(e.method)&&n.id===void 0}ne.isNotificationMessage=bhe;function yhe(n){let e=n;return e&&(e.result!==void 0||!!e.error)&&(nl.string(e.id)||nl.number(e.id)||e.id===null)}ne.isResponseMessage=yhe});var Bu=m(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});rl.Emitter=rl.Event=void 0;var vhe=jo(),whe;(function(n){let e={dispose(){}};n.None=function(){return e}})(whe=rl.Event||(rl.Event={}));var oN=class{add(e,t=null,i){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(t),Array.isArray(i)&&i.push({dispose:()=>this.remove(e,t)})}remove(e,t=null){if(!this._callbacks)return;let i=!1;for(let r=0,o=this._callbacks.length;r<o;r++)if(this._callbacks[r]===e)if(this._contexts[r]===t){this._callbacks.splice(r,1),this._contexts.splice(r,1);return}else i=!0;if(i)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...e){if(!this._callbacks)return[];let t=[],i=this._callbacks.slice(0),r=this._contexts.slice(0);for(let o=0,s=i.length;o<s;o++)try{t.push(i[o].apply(r[o],e))}catch(a){vhe.default().console.error(a)}return t}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},jd=class{constructor(e){this._options=e}get event(){return this._event||(this._event=(e,t,i)=>{this._callbacks||(this._callbacks=new oN),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,t);let r={dispose:()=>{!this._callbacks||(this._callbacks.remove(e,t),r.dispose=jd._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(i)&&i.push(r),r}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};rl.Emitter=jd;jd._noop=function(){}});var oT=m(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});ol.CancellationTokenSource=ol.CancellationToken=void 0;var sN=jo(),xhe=qu(),iT=Bu(),nT;(function(n){n.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:iT.Event.None}),n.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:iT.Event.None});function e(t){let i=t;return i&&(i===n.None||i===n.Cancelled||xhe.boolean(i.isCancellationRequested)&&!!i.onCancellationRequested)}n.is=e})(nT=ol.CancellationToken||(ol.CancellationToken={}));var Che=Object.freeze(function(n,e){let t=sN.default().timer.setTimeout(n.bind(e),0);return{dispose(){sN.default().timer.clearTimeout(t)}}}),rT=class{constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?Che:(this._emitter||(this._emitter=new iT.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},aN=class{get token(){return this._token||(this._token=new rT),this._token}cancel(){this._token?this._token.cancel():this._token=nT.Cancelled}dispose(){this._token?this._token instanceof rT&&this._token.dispose():this._token=nT.None}};ol.CancellationTokenSource=aN});var uN=m(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.ReadableStreamMessageReader=Fo.AbstractMessageReader=Fo.MessageReader=void 0;var _m=jo(),Yu=qu(),sT=Bu(),She;(function(n){function e(t){let i=t;return i&&Yu.func(i.listen)&&Yu.func(i.dispose)&&Yu.func(i.onError)&&Yu.func(i.onClose)&&Yu.func(i.onPartialMessage)}n.is=e})(She=Fo.MessageReader||(Fo.MessageReader={}));var lT=class{constructor(){this.errorEmitter=new sT.Emitter,this.closeEmitter=new sT.Emitter,this.partialMessageEmitter=new sT.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e){this.errorEmitter.fire(this.asError(e))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(e){this.partialMessageEmitter.fire(e)}asError(e){return e instanceof Error?e:new Error(`Reader received error. Reason: ${Yu.string(e.message)?e.message:"unknown"}`)}};Fo.AbstractMessageReader=lT;var aT;(function(n){function e(t){var i;let r,o,s,a=new Map,l,u=new Map;if(t===void 0||typeof t=="string")r=t!=null?t:"utf-8";else{if(r=(i=t.charset)!==null&&i!==void 0?i:"utf-8",t.contentDecoder!==void 0&&(s=t.contentDecoder,a.set(s.name,s)),t.contentDecoders!==void 0)for(let c of t.contentDecoders)a.set(c.name,c);if(t.contentTypeDecoder!==void 0&&(l=t.contentTypeDecoder,u.set(l.name,l)),t.contentTypeDecoders!==void 0)for(let c of t.contentTypeDecoders)u.set(c.name,c)}return l===void 0&&(l=_m.default().applicationJson.decoder,u.set(l.name,l)),{charset:r,contentDecoder:s,contentDecoders:a,contentTypeDecoder:l,contentTypeDecoders:u}}n.fromOptions=e})(aT||(aT={}));var lN=class extends lT{constructor(e,t){super();this.readable=e,this.options=aT.fromOptions(t),this.buffer=_m.default().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0}set partialMessageTimeout(e){this._partialMessageTimeout=e}get partialMessageTimeout(){return this._partialMessageTimeout}listen(e){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=e;let t=this.readable.onData(i=>{this.onData(i)});return this.readable.onError(i=>this.fireError(i)),this.readable.onClose(()=>this.fireClose()),t}onData(e){for(this.buffer.append(e);;){if(this.nextMessageLength===-1){let r=this.buffer.tryReadHeaders();if(!r)return;let o=r.get("Content-Length");if(!o)throw new Error("Header must provide a Content-Length property.");let s=parseInt(o);if(isNaN(s))throw new Error("Content-Length value must be a number.");this.nextMessageLength=s}let t=this.buffer.tryReadBody(this.nextMessageLength);if(t===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1;let i;this.options.contentDecoder!==void 0?i=this.options.contentDecoder.decode(t):i=Promise.resolve(t),i.then(r=>{this.options.contentTypeDecoder.decode(r,this.options).then(o=>{this.callback(o)},o=>{this.fireError(o)})},r=>{this.fireError(r)})}}clearPartialMessageTimer(){this.partialMessageTimer&&(_m.default().timer.clearTimeout(this.partialMessageTimer),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=_m.default().timer.setTimeout((e,t)=>{this.partialMessageTimer=void 0,e===this.messageToken&&(this.firePartialMessage({messageToken:e,waitingTime:t}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}};Fo.ReadableStreamMessageReader=lN});var hN=m(Pm=>{"use strict";Object.defineProperty(Pm,"__esModule",{value:!0});Pm.Semaphore=void 0;var The=jo(),cN=class{constructor(e=1){if(e<=0)throw new Error("Capacity must be greater than 0");this._capacity=e,this._active=0,this._waiting=[]}lock(e){return new Promise((t,i)=>{this._waiting.push({thunk:e,resolve:t,reject:i}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||The.default().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;let e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{let t=e.thunk();t instanceof Promise?t.then(i=>{this._active--,e.resolve(i),this.runNext()},i=>{this._active--,e.reject(i),this.runNext()}):(this._active--,e.resolve(t),this.runNext())}catch(t){this._active--,e.reject(t),this.runNext()}}};Pm.Semaphore=cN});var mN=m(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.WriteableStreamMessageWriter=Oo.AbstractMessageWriter=Oo.MessageWriter=void 0;var dN=jo(),Fd=qu(),khe=hN(),gN=Bu(),Dhe="Content-Length: ",fN=`\r
`,Ehe;(function(n){function e(t){let i=t;return i&&Fd.func(i.dispose)&&Fd.func(i.onClose)&&Fd.func(i.onError)&&Fd.func(i.write)}n.is=e})(Ehe=Oo.MessageWriter||(Oo.MessageWriter={}));var cT=class{constructor(){this.errorEmitter=new gN.Emitter,this.closeEmitter=new gN.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,t,i){this.errorEmitter.fire([this.asError(e),t,i])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(e){return e instanceof Error?e:new Error(`Writer received error. Reason: ${Fd.string(e.message)?e.message:"unknown"}`)}};Oo.AbstractMessageWriter=cT;var uT;(function(n){function e(t){var i,r;return t===void 0||typeof t=="string"?{charset:t!=null?t:"utf-8",contentTypeEncoder:dN.default().applicationJson.encoder}:{charset:(i=t.charset)!==null&&i!==void 0?i:"utf-8",contentEncoder:t.contentEncoder,contentTypeEncoder:(r=t.contentTypeEncoder)!==null&&r!==void 0?r:dN.default().applicationJson.encoder}}n.fromOptions=e})(uT||(uT={}));var pN=class extends cT{constructor(e,t){super();this.writable=e,this.options=uT.fromOptions(t),this.errorCount=0,this.writeSemaphore=new khe.Semaphore(1),this.writable.onError(i=>this.fireError(i)),this.writable.onClose(()=>this.fireClose())}async write(e){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(e,this.options).then(i=>this.options.contentEncoder!==void 0?this.options.contentEncoder.encode(i):i).then(i=>{let r=[];return r.push(Dhe,i.byteLength.toString(),fN),r.push(fN),this.doWrite(e,r,i)},i=>{throw this.fireError(i),i}))}async doWrite(e,t,i){try{return await this.writable.write(t.join(""),"ascii"),this.writable.write(i)}catch(r){return this.handleError(r,e),Promise.reject(r)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){this.writable.end()}};Oo.WriteableStreamMessageWriter=pN});var yN=m(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.LRUCache=Mo.LinkedMap=Mo.Touch=void 0;var Ji;(function(n){n.None=0,n.First=1,n.AsOld=n.First,n.Last=2,n.AsNew=n.Last})(Ji=Mo.Touch||(Mo.Touch={}));var hT=class{constructor(){this[Symbol.toStringTag]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var e;return(e=this._head)===null||e===void 0?void 0:e.value}get last(){var e;return(e=this._tail)===null||e===void 0?void 0:e.value}has(e){return this._map.has(e)}get(e,t=Ji.None){let i=this._map.get(e);if(!!i)return t!==Ji.None&&this.touch(i,t),i.value}set(e,t,i=Ji.None){let r=this._map.get(e);if(r)r.value=t,i!==Ji.None&&this.touch(r,i);else{switch(r={key:e,value:t,next:void 0,previous:void 0},i){case Ji.None:this.addItemLast(r);break;case Ji.First:this.addItemFirst(r);break;case Ji.Last:this.addItemLast(r);break;default:this.addItemLast(r);break}this._map.set(e,r),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){let t=this._map.get(e);if(!!t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");let e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){let i=this._state,r=this._head;for(;r;){if(t?e.bind(t)(r.value,r.key,this):e(r.value,r.key,this),this._state!==i)throw new Error("LinkedMap got modified during iteration.");r=r.next}}keys(){let e=this,t=this._state,i=this._head,r={[Symbol.iterator](){return r},next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){let o={value:i.key,done:!1};return i=i.next,o}else return{value:void 0,done:!0}}};return r}values(){let e=this,t=this._state,i=this._head,r={[Symbol.iterator](){return r},next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){let o={value:i.value,done:!1};return i=i.next,o}else return{value:void 0,done:!0}}};return r}entries(){let e=this,t=this._state,i=this._head,r={[Symbol.iterator](){return r},next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){let o={value:[i.key,i.value],done:!1};return i=i.next,o}else return{value:void 0,done:!0}}};return r}[Symbol.iterator](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let t=this._head,i=this.size;for(;t&&i>e;)this._map.delete(t.key),t=t.next,i--;this._head=t,this._size=i,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw new Error("Invalid list");this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw new Error("Invalid list");this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{let t=e.next,i=e.previous;if(!t||!i)throw new Error("Invalid list");t.previous=i,i.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(t!==Ji.First&&t!==Ji.Last)){if(t===Ji.First){if(e===this._head)return;let i=e.next,r=e.previous;e===this._tail?(r.next=void 0,this._tail=r):(i.previous=r,r.next=i),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===Ji.Last){if(e===this._tail)return;let i=e.next,r=e.previous;e===this._head?(i.previous=void 0,this._head=i):(i.previous=r,r.next=i),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){let e=[];return this.forEach((t,i)=>{e.push([i,t])}),e}fromJSON(e){this.clear();for(let[t,i]of e)this.set(t,i)}};Mo.LinkedMap=hT;var bN=class extends hT{constructor(e,t=1){super();this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,t=Ji.AsNew){return super.get(e,t)}peek(e){return super.get(e,Ji.None)}set(e,t){return super.set(e,t,Ji.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};Mo.LRUCache=bN});var TN=m(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.createMessageConnection=be.ConnectionOptions=be.CancellationStrategy=be.CancellationSenderStrategy=be.CancellationReceiverStrategy=be.ConnectionStrategy=be.ConnectionError=be.ConnectionErrors=be.LogTraceNotification=be.SetTraceNotification=be.TraceFormat=be.Trace=be.NullLogger=be.ProgressType=void 0;var vN=jo(),oi=qu(),pe=tT(),wN=yN(),Od=Bu(),dT=oT(),Md;(function(n){n.type=new pe.NotificationType("$/cancelRequest")})(Md||(Md={}));var Lm;(function(n){n.type=new pe.NotificationType("$/progress")})(Lm||(Lm={}));var xN=class{constructor(){}};be.ProgressType=xN;var gT;(function(n){function e(t){return oi.func(t)}n.is=e})(gT||(gT={}));be.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}});var Wt;(function(n){n[n.Off=0]="Off",n[n.Messages=1]="Messages",n[n.Verbose=2]="Verbose"})(Wt=be.Trace||(be.Trace={}));(function(n){function e(i){if(!oi.string(i))return n.Off;switch(i=i.toLowerCase(),i){case"off":return n.Off;case"messages":return n.Messages;case"verbose":return n.Verbose;default:return n.Off}}n.fromString=e;function t(i){switch(i){case n.Off:return"off";case n.Messages:return"messages";case n.Verbose:return"verbose";default:return"off"}}n.toString=t})(Wt=be.Trace||(be.Trace={}));var xr;(function(n){n.Text="text",n.JSON="json"})(xr=be.TraceFormat||(be.TraceFormat={}));(function(n){function e(t){return t=t.toLowerCase(),t==="json"?n.JSON:n.Text}n.fromString=e})(xr=be.TraceFormat||(be.TraceFormat={}));var CN;(function(n){n.type=new pe.NotificationType("$/setTrace")})(CN=be.SetTraceNotification||(be.SetTraceNotification={}));var fT;(function(n){n.type=new pe.NotificationType("$/logTrace")})(fT=be.LogTraceNotification||(be.LogTraceNotification={}));var Rm;(function(n){n[n.Closed=1]="Closed",n[n.Disposed=2]="Disposed",n[n.AlreadyListening=3]="AlreadyListening"})(Rm=be.ConnectionErrors||(be.ConnectionErrors={}));var sl=class extends Error{constructor(e,t){super(t);this.code=e,Object.setPrototypeOf(this,sl.prototype)}};be.ConnectionError=sl;var SN;(function(n){function e(t){let i=t;return i&&oi.func(i.cancelUndispatched)}n.is=e})(SN=be.ConnectionStrategy||(be.ConnectionStrategy={}));var pT;(function(n){n.Message=Object.freeze({createCancellationTokenSource(t){return new dT.CancellationTokenSource}});function e(t){let i=t;return i&&oi.func(i.createCancellationTokenSource)}n.is=e})(pT=be.CancellationReceiverStrategy||(be.CancellationReceiverStrategy={}));var mT;(function(n){n.Message=Object.freeze({sendCancellation(t,i){t.sendNotification(Md.type,{id:i})},cleanup(t){}});function e(t){let i=t;return i&&oi.func(i.sendCancellation)&&oi.func(i.cleanup)}n.is=e})(mT=be.CancellationSenderStrategy||(be.CancellationSenderStrategy={}));var bT;(function(n){n.Message=Object.freeze({receiver:pT.Message,sender:mT.Message});function e(t){let i=t;return i&&pT.is(i.receiver)&&mT.is(i.sender)}n.is=e})(bT=be.CancellationStrategy||(be.CancellationStrategy={}));var _he;(function(n){function e(t){let i=t;return i&&(bT.is(i.cancellationStrategy)||SN.is(i.connectionStrategy))}n.is=e})(_he=be.ConnectionOptions||(be.ConnectionOptions={}));var Cr;(function(n){n[n.New=1]="New",n[n.Listening=2]="Listening",n[n.Closed=3]="Closed",n[n.Disposed=4]="Disposed"})(Cr||(Cr={}));function Phe(n,e,t,i){let r=t!==void 0?t:be.NullLogger,o=0,s=0,a=0,l="2.0",u,c=Object.create(null),h,d=Object.create(null),g=new Map,f,p=new wN.LinkedMap,b=Object.create(null),y=Object.create(null),w=Wt.Off,x=xr.Text,k,L=Cr.New,j=new Od.Emitter,O=new Od.Emitter,W=new Od.Emitter,H=new Od.Emitter,N=new Od.Emitter,I=i&&i.cancellationStrategy?i.cancellationStrategy:bT.Message;function A(E){if(E===null)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+E.toString()}function Z(E){return E===null?"res-unknown-"+(++a).toString():"res-"+E.toString()}function K(){return"not-"+(++s).toString()}function ae(E,$){pe.isRequestMessage($)?E.set(A($.id),$):pe.isResponseMessage($)?E.set(Z($.id),$):E.set(K(),$)}function je(E){}function Pe(){return L===Cr.Listening}function Ve(){return L===Cr.Closed}function Tt(){return L===Cr.Disposed}function Si(){(L===Cr.New||L===Cr.Listening)&&(L=Cr.Closed,O.fire(void 0))}function ps(E){j.fire([E,void 0,void 0])}function ko(E){j.fire(E)}n.onClose(Si),n.onError(ps),e.onClose(Si),e.onError(ko);function sp(){f||p.size===0||(f=vN.default().timer.setImmediate(()=>{f=void 0,ap()}))}function ap(){if(p.size===0)return;let E=p.shift();try{pe.isRequestMessage(E)?ou(E):pe.isNotificationMessage(E)?Re(E):pe.isResponseMessage(E)?su(E):Te(E)}finally{sp()}}let hC=E=>{try{if(pe.isNotificationMessage(E)&&E.method===Md.type.method){let $=A(E.params.id),G=p.get($);if(pe.isRequestMessage(G)){let ue=i==null?void 0:i.connectionStrategy,Ye=ue&&ue.cancelUndispatched?ue.cancelUndispatched(G,je):void 0;if(Ye&&(Ye.error!==void 0||Ye.result!==void 0)){p.delete($),Ye.id=G.id,Rt(Ye,E.method,Date.now()),e.write(Ye);return}}}ae(p,E)}finally{sp()}};function ou(E){if(Tt())return;function $(Ze,It,Je){let Kt={jsonrpc:l,id:E.id};Ze instanceof pe.ResponseError?Kt.error=Ze.toJson():Kt.result=Ze===void 0?null:Ze,Rt(Kt,It,Je),e.write(Kt)}function G(Ze,It,Je){let Kt={jsonrpc:l,id:E.id,error:Ze.toJson()};Rt(Kt,It,Je),e.write(Kt)}function ue(Ze,It,Je){Ze===void 0&&(Ze=null);let Kt={jsonrpc:l,id:E.id,result:Ze};Rt(Kt,It,Je),e.write(Kt)}gr(E);let Ye=c[E.method],Lt,Gt;Ye&&(Lt=Ye.type,Gt=Ye.handler);let ii=Date.now();if(Gt||u){let Ze=String(E.id),It=I.receiver.createCancellationTokenSource(Ze);y[Ze]=It;try{let Je;if(Gt)if(E.params===void 0){if(Lt!==void 0&&Lt.numberOfParams!==0){G(new pe.ResponseError(pe.ErrorCodes.InvalidParams,`Request ${E.method} defines ${Lt.numberOfParams} params but recevied none.`),E.method,ii);return}Je=Gt(It.token)}else if(Array.isArray(E.params)){if(Lt!==void 0&&Lt.parameterStructures===pe.ParameterStructures.byName){G(new pe.ResponseError(pe.ErrorCodes.InvalidParams,`Request ${E.method} defines parameters by name but received parameters by position`),E.method,ii);return}Je=Gt(...E.params,It.token)}else{if(Lt!==void 0&&Lt.parameterStructures===pe.ParameterStructures.byPosition){G(new pe.ResponseError(pe.ErrorCodes.InvalidParams,`Request ${E.method} defines parameters by position but received parameters by name`),E.method,ii);return}Je=Gt(E.params,It.token)}else u&&(Je=u(E.method,E.params,It.token));let Kt=Je;Je?Kt.then?Kt.then(tn=>{delete y[Ze],$(tn,E.method,ii)},tn=>{delete y[Ze],tn instanceof pe.ResponseError?G(tn,E.method,ii):tn&&oi.string(tn.message)?G(new pe.ResponseError(pe.ErrorCodes.InternalError,`Request ${E.method} failed with message: ${tn.message}`),E.method,ii):G(new pe.ResponseError(pe.ErrorCodes.InternalError,`Request ${E.method} failed unexpectedly without providing any details.`),E.method,ii)}):(delete y[Ze],$(Je,E.method,ii)):(delete y[Ze],ue(Je,E.method,ii))}catch(Je){delete y[Ze],Je instanceof pe.ResponseError?$(Je,E.method,ii):Je&&oi.string(Je.message)?G(new pe.ResponseError(pe.ErrorCodes.InternalError,`Request ${E.method} failed with message: ${Je.message}`),E.method,ii):G(new pe.ResponseError(pe.ErrorCodes.InternalError,`Request ${E.method} failed unexpectedly without providing any details.`),E.method,ii)}}else G(new pe.ResponseError(pe.ErrorCodes.MethodNotFound,`Unhandled method ${E.method}`),E.method,ii)}function su(E){if(!Tt())if(E.id===null)E.error?r.error(`Received response message without id: Error is:
${JSON.stringify(E.error,void 0,4)}`):r.error("Received response message without id. No further error information provided.");else{let $=String(E.id),G=b[$];if(Dn(E,G),G){delete b[$];try{if(E.error){let ue=E.error;G.reject(new pe.ResponseError(ue.code,ue.message,ue.data))}else if(E.result!==void 0)G.resolve(E.result);else throw new Error("Should never happen.")}catch(ue){ue.message?r.error(`Response handler '${G.method}' failed with message: ${ue.message}`):r.error(`Response handler '${G.method}' failed unexpectedly.`)}}}}function Re(E){if(Tt())return;let $,G;if(E.method===Md.type.method)G=ue=>{let Ye=ue.id,Lt=y[String(Ye)];Lt&&Lt.cancel()};else{let ue=d[E.method];ue&&(G=ue.handler,$=ue.type)}if(G||h)try{fr(E),G?E.params===void 0?($!==void 0&&$.numberOfParams!==0&&$.parameterStructures!==pe.ParameterStructures.byName&&r.error(`Notification ${E.method} defines ${$.numberOfParams} params but recevied none.`),G()):Array.isArray(E.params)?($!==void 0&&($.parameterStructures===pe.ParameterStructures.byName&&r.error(`Notification ${E.method} defines parameters by name but received parameters by position`),$.numberOfParams!==E.params.length&&r.error(`Notification ${E.method} defines ${$.numberOfParams} params but received ${E.params.length} argumennts`)),G(...E.params)):($!==void 0&&$.parameterStructures===pe.ParameterStructures.byPosition&&r.error(`Notification ${E.method} defines parameters by position but received parameters by name`),G(E.params)):h&&h(E.method,E.params)}catch(ue){ue.message?r.error(`Notification handler '${E.method}' failed with message: ${ue.message}`):r.error(`Notification handler '${E.method}' failed unexpectedly.`)}else W.fire(E)}function Te(E){if(!E){r.error("Received empty message.");return}r.error(`Received message which is neither a response nor a notification message:
${JSON.stringify(E,null,4)}`);let $=E;if(oi.string($.id)||oi.number($.id)){let G=String($.id),ue=b[G];ue&&ue.reject(new Error("The received response has neither a result nor an error property."))}}function ke(E){if(!(w===Wt.Off||!k))if(x===xr.Text){let $;w===Wt.Verbose&&E.params&&($=`Params: ${JSON.stringify(E.params,null,4)}
`),k.log(`Sending request '${E.method} - (${E.id})'.`,$)}else ms("send-request",E)}function Le(E){if(!(w===Wt.Off||!k))if(x===xr.Text){let $;w===Wt.Verbose&&(E.params?$=`Params: ${JSON.stringify(E.params,null,4)}
`:$=`No parameters provided.
`),k.log(`Sending notification '${E.method}'.`,$)}else ms("send-notification",E)}function Rt(E,$,G){if(!(w===Wt.Off||!k))if(x===xr.Text){let ue;w===Wt.Verbose&&(E.error&&E.error.data?ue=`Error data: ${JSON.stringify(E.error.data,null,4)}
`:E.result?ue=`Result: ${JSON.stringify(E.result,null,4)}
`:E.error===void 0&&(ue=`No result returned.
`)),k.log(`Sending response '${$} - (${E.id})'. Processing request took ${Date.now()-G}ms`,ue)}else ms("send-response",E)}function gr(E){if(!(w===Wt.Off||!k))if(x===xr.Text){let $;w===Wt.Verbose&&E.params&&($=`Params: ${JSON.stringify(E.params,null,4)}
`),k.log(`Received request '${E.method} - (${E.id})'.`,$)}else ms("receive-request",E)}function fr(E){if(!(w===Wt.Off||!k||E.method===fT.type.method))if(x===xr.Text){let $;w===Wt.Verbose&&(E.params?$=`Params: ${JSON.stringify(E.params,null,4)}
`:$=`No parameters provided.
`),k.log(`Received notification '${E.method}'.`,$)}else ms("receive-notification",E)}function Dn(E,$){if(!(w===Wt.Off||!k))if(x===xr.Text){let G;if(w===Wt.Verbose&&(E.error&&E.error.data?G=`Error data: ${JSON.stringify(E.error.data,null,4)}
`:E.result?G=`Result: ${JSON.stringify(E.result,null,4)}
`:E.error===void 0&&(G=`No result returned.
`)),$){let ue=E.error?` Request failed: ${E.error.message} (${E.error.code}).`:"";k.log(`Received response '${$.method} - (${E.id})' in ${Date.now()-$.timerStart}ms.${ue}`,G)}else k.log(`Received response ${E.id} without active response promise.`,G)}else ms("receive-response",E)}function ms(E,$){if(!k||w===Wt.Off)return;let G={isLSPMessage:!0,type:E,message:$,timestamp:Date.now()};k.log(G)}function bs(){if(Ve())throw new sl(Rm.Closed,"Connection is closed.");if(Tt())throw new sl(Rm.Disposed,"Connection is disposed.")}function Tte(){if(Pe())throw new sl(Rm.AlreadyListening,"Connection is already listening")}function kte(){if(!Pe())throw new Error("Call listen() first.")}function Ah(E){return E===void 0?null:E}function QP(E){if(E!==null)return E}function VP(E){return E!=null&&!Array.isArray(E)&&typeof E=="object"}function dC(E,$){switch(E){case pe.ParameterStructures.auto:return VP($)?QP($):[Ah($)];case pe.ParameterStructures.byName:if(!VP($))throw new Error("Recevied parameters by name but param is not an object literal.");return QP($);case pe.ParameterStructures.byPosition:return[Ah($)];default:throw new Error(`Unknown parameter structure ${E.toString()}`)}}function eR(E,$){let G,ue=E.numberOfParams;switch(ue){case 0:G=void 0;break;case 1:G=dC(E.parameterStructures,$[0]);break;default:G=[];for(let Ye=0;Ye<$.length&&Ye<ue;Ye++)G.push(Ah($[Ye]));if($.length<ue)for(let Ye=$.length;Ye<ue;Ye++)G.push(null);break}return G}let au={sendNotification:(E,...$)=>{bs();let G,ue;if(oi.string(E)){G=E;let Lt=$[0],Gt=0,ii=pe.ParameterStructures.auto;pe.ParameterStructures.is(Lt)&&(Gt=1,ii=Lt);let Ze=$.length,It=Ze-Gt;switch(It){case 0:ue=void 0;break;case 1:ue=dC(ii,$[Gt]);break;default:if(ii===pe.ParameterStructures.byName)throw new Error(`Recevied ${It} parameters for 'by Name' notification parameter structure.`);ue=$.slice(Gt,Ze).map(Je=>Ah(Je));break}}else{let Lt=$;G=E.method,ue=eR(E,Lt)}let Ye={jsonrpc:l,method:G,params:ue};Le(Ye),e.write(Ye)},onNotification:(E,$)=>{bs();let G;return oi.func(E)?h=E:$&&(oi.string(E)?(G=E,d[E]={type:void 0,handler:$}):(G=E.method,d[E.method]={type:E,handler:$})),{dispose:()=>{G!==void 0?delete d[G]:h=void 0}}},onProgress:(E,$,G)=>{if(g.has($))throw new Error(`Progress handler for token ${$} already registered`);return g.set($,G),{dispose:()=>{g.delete($)}}},sendProgress:(E,$,G)=>{au.sendNotification(Lm.type,{token:$,value:G})},onUnhandledProgress:H.event,sendRequest:(E,...$)=>{bs(),kte();let G,ue,Ye;if(oi.string(E)){G=E;let Ze=$[0],It=$[$.length-1],Je=0,Kt=pe.ParameterStructures.auto;pe.ParameterStructures.is(Ze)&&(Je=1,Kt=Ze);let tn=$.length;dT.CancellationToken.is(It)&&(tn=tn-1,Ye=It);let ja=tn-Je;switch(ja){case 0:ue=void 0;break;case 1:ue=dC(Kt,$[Je]);break;default:if(Kt===pe.ParameterStructures.byName)throw new Error(`Recevied ${ja} parameters for 'by Name' request parameter structure.`);ue=$.slice(Je,tn).map(ys=>Ah(ys));break}}else{let Ze=$;G=E.method,ue=eR(E,Ze);let It=E.numberOfParams;Ye=dT.CancellationToken.is(Ze[It])?Ze[It]:void 0}let Lt=o++,Gt;return Ye&&(Gt=Ye.onCancellationRequested(()=>{I.sender.sendCancellation(au,Lt)})),new Promise((Ze,It)=>{let Je={jsonrpc:l,id:Lt,method:G,params:ue},Kt=ys=>{Ze(ys),I.sender.cleanup(Lt),Gt==null||Gt.dispose()},tn=ys=>{It(ys),I.sender.cleanup(Lt),Gt==null||Gt.dispose()},ja={method:G,timerStart:Date.now(),resolve:Kt,reject:tn};ke(Je);try{e.write(Je)}catch(ys){ja.reject(new pe.ResponseError(pe.ErrorCodes.MessageWriteError,ys.message?ys.message:"Unknown reason")),ja=null}ja&&(b[String(Lt)]=ja)})},onRequest:(E,$)=>{bs();let G=null;return gT.is(E)?(G=void 0,u=E):oi.string(E)?(G=null,$!==void 0&&(G=E,c[E]={handler:$,type:void 0})):$!==void 0&&(G=E.method,c[E.method]={type:E,handler:$}),{dispose:()=>{G!==null&&(G!==void 0?delete c[G]:u=void 0)}}},trace:(E,$,G)=>{let ue=!1,Ye=xr.Text;G!==void 0&&(oi.boolean(G)?ue=G:(ue=G.sendNotification||!1,Ye=G.traceFormat||xr.Text)),w=E,x=Ye,w===Wt.Off?k=void 0:k=$,ue&&!Ve()&&!Tt()&&au.sendNotification(CN.type,{value:Wt.toString(E)})},onError:j.event,onClose:O.event,onUnhandledNotification:W.event,onDispose:N.event,end:()=>{e.end()},dispose:()=>{if(Tt())return;L=Cr.Disposed,N.fire(void 0);let E=new Error("Connection got disposed.");Object.keys(b).forEach($=>{b[$].reject(E)}),b=Object.create(null),y=Object.create(null),p=new wN.LinkedMap,oi.func(e.dispose)&&e.dispose(),oi.func(n.dispose)&&n.dispose()},listen:()=>{bs(),Tte(),L=Cr.Listening,n.listen(hC)},inspect:()=>{vN.default().console.log("inspect")}};return au.onNotification(fT.type,E=>{w===Wt.Off||!k||k.log(E.message,w===Wt.Verbose?E.verbose:void 0)}),au.onNotification(Lm.type,E=>{let $=g.get(E.token);$?$(E.value):H.fire(E)}),au}be.createMessageConnection=Phe});var wT=m(X=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0});X.CancellationSenderStrategy=X.CancellationReceiverStrategy=X.ConnectionError=X.ConnectionErrors=X.LogTraceNotification=X.SetTraceNotification=X.TraceFormat=X.Trace=X.ProgressType=X.createMessageConnection=X.NullLogger=X.ConnectionOptions=X.ConnectionStrategy=X.WriteableStreamMessageWriter=X.AbstractMessageWriter=X.MessageWriter=X.ReadableStreamMessageReader=X.AbstractMessageReader=X.MessageReader=X.CancellationToken=X.CancellationTokenSource=X.Emitter=X.Event=X.Disposable=X.ParameterStructures=X.NotificationType9=X.NotificationType8=X.NotificationType7=X.NotificationType6=X.NotificationType5=X.NotificationType4=X.NotificationType3=X.NotificationType2=X.NotificationType1=X.NotificationType0=X.NotificationType=X.ErrorCodes=X.ResponseError=X.RequestType9=X.RequestType8=X.RequestType7=X.RequestType6=X.RequestType5=X.RequestType4=X.RequestType3=X.RequestType2=X.RequestType1=X.RequestType0=X.RequestType=X.RAL=void 0;X.CancellationStrategy=void 0;var mt=tT();Object.defineProperty(X,"RequestType",{enumerable:!0,get:function(){return mt.RequestType}});Object.defineProperty(X,"RequestType0",{enumerable:!0,get:function(){return mt.RequestType0}});Object.defineProperty(X,"RequestType1",{enumerable:!0,get:function(){return mt.RequestType1}});Object.defineProperty(X,"RequestType2",{enumerable:!0,get:function(){return mt.RequestType2}});Object.defineProperty(X,"RequestType3",{enumerable:!0,get:function(){return mt.RequestType3}});Object.defineProperty(X,"RequestType4",{enumerable:!0,get:function(){return mt.RequestType4}});Object.defineProperty(X,"RequestType5",{enumerable:!0,get:function(){return mt.RequestType5}});Object.defineProperty(X,"RequestType6",{enumerable:!0,get:function(){return mt.RequestType6}});Object.defineProperty(X,"RequestType7",{enumerable:!0,get:function(){return mt.RequestType7}});Object.defineProperty(X,"RequestType8",{enumerable:!0,get:function(){return mt.RequestType8}});Object.defineProperty(X,"RequestType9",{enumerable:!0,get:function(){return mt.RequestType9}});Object.defineProperty(X,"ResponseError",{enumerable:!0,get:function(){return mt.ResponseError}});Object.defineProperty(X,"ErrorCodes",{enumerable:!0,get:function(){return mt.ErrorCodes}});Object.defineProperty(X,"NotificationType",{enumerable:!0,get:function(){return mt.NotificationType}});Object.defineProperty(X,"NotificationType0",{enumerable:!0,get:function(){return mt.NotificationType0}});Object.defineProperty(X,"NotificationType1",{enumerable:!0,get:function(){return mt.NotificationType1}});Object.defineProperty(X,"NotificationType2",{enumerable:!0,get:function(){return mt.NotificationType2}});Object.defineProperty(X,"NotificationType3",{enumerable:!0,get:function(){return mt.NotificationType3}});Object.defineProperty(X,"NotificationType4",{enumerable:!0,get:function(){return mt.NotificationType4}});Object.defineProperty(X,"NotificationType5",{enumerable:!0,get:function(){return mt.NotificationType5}});Object.defineProperty(X,"NotificationType6",{enumerable:!0,get:function(){return mt.NotificationType6}});Object.defineProperty(X,"NotificationType7",{enumerable:!0,get:function(){return mt.NotificationType7}});Object.defineProperty(X,"NotificationType8",{enumerable:!0,get:function(){return mt.NotificationType8}});Object.defineProperty(X,"NotificationType9",{enumerable:!0,get:function(){return mt.NotificationType9}});Object.defineProperty(X,"ParameterStructures",{enumerable:!0,get:function(){return mt.ParameterStructures}});var Rhe=QS();Object.defineProperty(X,"Disposable",{enumerable:!0,get:function(){return Rhe.Disposable}});var kN=Bu();Object.defineProperty(X,"Event",{enumerable:!0,get:function(){return kN.Event}});Object.defineProperty(X,"Emitter",{enumerable:!0,get:function(){return kN.Emitter}});var DN=oT();Object.defineProperty(X,"CancellationTokenSource",{enumerable:!0,get:function(){return DN.CancellationTokenSource}});Object.defineProperty(X,"CancellationToken",{enumerable:!0,get:function(){return DN.CancellationToken}});var yT=uN();Object.defineProperty(X,"MessageReader",{enumerable:!0,get:function(){return yT.MessageReader}});Object.defineProperty(X,"AbstractMessageReader",{enumerable:!0,get:function(){return yT.AbstractMessageReader}});Object.defineProperty(X,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return yT.ReadableStreamMessageReader}});var vT=mN();Object.defineProperty(X,"MessageWriter",{enumerable:!0,get:function(){return vT.MessageWriter}});Object.defineProperty(X,"AbstractMessageWriter",{enumerable:!0,get:function(){return vT.AbstractMessageWriter}});Object.defineProperty(X,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return vT.WriteableStreamMessageWriter}});var an=TN();Object.defineProperty(X,"ConnectionStrategy",{enumerable:!0,get:function(){return an.ConnectionStrategy}});Object.defineProperty(X,"ConnectionOptions",{enumerable:!0,get:function(){return an.ConnectionOptions}});Object.defineProperty(X,"NullLogger",{enumerable:!0,get:function(){return an.NullLogger}});Object.defineProperty(X,"createMessageConnection",{enumerable:!0,get:function(){return an.createMessageConnection}});Object.defineProperty(X,"ProgressType",{enumerable:!0,get:function(){return an.ProgressType}});Object.defineProperty(X,"Trace",{enumerable:!0,get:function(){return an.Trace}});Object.defineProperty(X,"TraceFormat",{enumerable:!0,get:function(){return an.TraceFormat}});Object.defineProperty(X,"SetTraceNotification",{enumerable:!0,get:function(){return an.SetTraceNotification}});Object.defineProperty(X,"LogTraceNotification",{enumerable:!0,get:function(){return an.LogTraceNotification}});Object.defineProperty(X,"ConnectionErrors",{enumerable:!0,get:function(){return an.ConnectionErrors}});Object.defineProperty(X,"ConnectionError",{enumerable:!0,get:function(){return an.ConnectionError}});Object.defineProperty(X,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return an.CancellationReceiverStrategy}});Object.defineProperty(X,"CancellationSenderStrategy",{enumerable:!0,get:function(){return an.CancellationSenderStrategy}});Object.defineProperty(X,"CancellationStrategy",{enumerable:!0,get:function(){return an.CancellationStrategy}});var Lhe=jo();X.RAL=Lhe.default});var $u=m(We=>{"use strict";var Ihe=We&&We.__createBinding||(Object.create?function(n,e,t,i){i===void 0&&(i=t),Object.defineProperty(n,i,{enumerable:!0,get:function(){return e[t]}})}:function(n,e,t,i){i===void 0&&(i=t),n[i]=e[t]}),jhe=We&&We.__exportStar||function(n,e){for(var t in n)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Ihe(e,n,t)};Object.defineProperty(We,"__esModule",{value:!0});We.createMessageConnection=We.createServerSocketTransport=We.createClientSocketTransport=We.createServerPipeTransport=We.createClientPipeTransport=We.generateRandomPipeName=We.StreamMessageWriter=We.StreamMessageReader=We.SocketMessageWriter=We.SocketMessageReader=We.IPCMessageWriter=We.IPCMessageReader=void 0;var Wu=jA();Wu.default.install();var $r=wT(),EN=require("path"),Fhe=require("os"),Ohe=require("crypto"),Im=require("net");jhe(wT(),We);var PN=class extends $r.AbstractMessageReader{constructor(e){super();this.process=e;let t=this.process;t.on("error",i=>this.fireError(i)),t.on("close",()=>this.fireClose())}listen(e){return this.process.on("message",e),$r.Disposable.create(()=>this.process.off("message",e))}};We.IPCMessageReader=PN;var RN=class extends $r.AbstractMessageWriter{constructor(e){super();this.process=e,this.errorCount=0;let t=this.process;t.on("error",i=>this.fireError(i)),t.on("close",()=>this.fireClose)}write(e){try{return typeof this.process.send=="function"&&this.process.send(e,void 0,void 0,t=>{t?(this.errorCount++,this.handleError(t,e)):this.errorCount=0}),Promise.resolve()}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){}};We.IPCMessageWriter=RN;var Zu=class extends $r.ReadableStreamMessageReader{constructor(e,t="utf-8"){super(Wu.default().stream.asReadableStream(e),t)}};We.SocketMessageReader=Zu;var Ju=class extends $r.WriteableStreamMessageWriter{constructor(e,t){super(Wu.default().stream.asWritableStream(e),t);this.socket=e}dispose(){super.dispose(),this.socket.destroy()}};We.SocketMessageWriter=Ju;var xT=class extends $r.ReadableStreamMessageReader{constructor(e,t){super(Wu.default().stream.asReadableStream(e),t)}};We.StreamMessageReader=xT;var CT=class extends $r.WriteableStreamMessageWriter{constructor(e,t){super(Wu.default().stream.asWritableStream(e),t)}};We.StreamMessageWriter=CT;var _N=process.env.XDG_RUNTIME_DIR,Mhe=new Map([["linux",107],["darwin",103]]);function Ahe(){let n=Ohe.randomBytes(21).toString("hex");if(process.platform==="win32")return`\\\\.\\pipe\\vscode-jsonrpc-${n}-sock`;let e;_N?e=EN.join(_N,`vscode-ipc-${n}.sock`):e=EN.join(Fhe.tmpdir(),`vscode-${n}.sock`);let t=Mhe.get(process.platform);return t!==void 0&&e.length>=t&&Wu.default().console.warn(`WARNING: IPC handle "${e}" is longer than ${t} characters.`),e}We.generateRandomPipeName=Ahe;function Nhe(n,e="utf-8"){let t,i=new Promise((r,o)=>{t=r});return new Promise((r,o)=>{let s=Im.createServer(a=>{s.close(),t([new Zu(a,e),new Ju(a,e)])});s.on("error",o),s.listen(n,()=>{s.removeListener("error",o),r({onConnected:()=>i})})})}We.createClientPipeTransport=Nhe;function Hhe(n,e="utf-8"){let t=Im.createConnection(n);return[new Zu(t,e),new Ju(t,e)]}We.createServerPipeTransport=Hhe;function qhe(n,e="utf-8"){let t,i=new Promise((r,o)=>{t=r});return new Promise((r,o)=>{let s=Im.createServer(a=>{s.close(),t([new Zu(a,e),new Ju(a,e)])});s.on("error",o),s.listen(n,"127.0.0.1",()=>{s.removeListener("error",o),r({onConnected:()=>i})})})}We.createClientSocketTransport=qhe;function Bhe(n,e="utf-8"){let t=Im.createConnection(n,"127.0.0.1");return[new Zu(t,e),new Ju(t,e)]}We.createServerSocketTransport=Bhe;function Yhe(n){let e=n;return e.read!==void 0&&e.addListener!==void 0}function Whe(n){let e=n;return e.write!==void 0&&e.addListener!==void 0}function Zhe(n,e,t,i){t||(t=$r.NullLogger);let r=Yhe(n)?new xT(n):n,o=Whe(e)?new CT(e):e;return $r.ConnectionStrategy.is(i)&&(i={connectionStrategy:i}),$r.createMessageConnection(r,o,t,i)}We.createMessageConnection=Zhe});var ST=m((C_e,LN)=>{"use strict";LN.exports=$u()});var jN={};vs(jN,{AnnotatedTextEdit:()=>Ao,ChangeAnnotation:()=>al,ChangeAnnotationIdentifier:()=>bi,CodeAction:()=>ek,CodeActionContext:()=>VT,CodeActionKind:()=>QT,CodeDescription:()=>IT,CodeLens:()=>tk,Color:()=>Fm,ColorInformation:()=>DT,ColorPresentation:()=>ET,Command:()=>Xu,CompletionItem:()=>BT,CompletionItemKind:()=>MT,CompletionItemTag:()=>NT,CompletionList:()=>YT,CreateFile:()=>Uu,DeleteFile:()=>Ku,Diagnostic:()=>Nd,DiagnosticRelatedInformation:()=>Om,DiagnosticSeverity:()=>RT,DiagnosticTag:()=>LT,DocumentHighlight:()=>XT,DocumentHighlightKind:()=>$T,DocumentLink:()=>nk,DocumentSymbol:()=>zT,EOL:()=>$he,FoldingRange:()=>PT,FoldingRangeKind:()=>_T,FormattingOptions:()=>ik,Hover:()=>WT,InsertReplaceEdit:()=>HT,InsertTextFormat:()=>AT,InsertTextMode:()=>qT,Location:()=>un,LocationLink:()=>kT,MarkedString:()=>Bd,MarkupContent:()=>Am,MarkupKind:()=>zu,OptionalVersionedTextDocumentIdentifier:()=>qd,ParameterInformation:()=>ZT,Position:()=>mi,Range:()=>Me,RenameFile:()=>Gu,SelectionRange:()=>rk,SignatureInformation:()=>JT,SymbolInformation:()=>KT,SymbolKind:()=>UT,SymbolTag:()=>GT,TextDocument:()=>ok,TextDocumentEdit:()=>Hd,TextDocumentIdentifier:()=>jT,TextDocumentItem:()=>OT,TextEdit:()=>ln,VersionedTextDocumentIdentifier:()=>FT,WorkspaceChange:()=>Jhe,WorkspaceEdit:()=>Mm,integer:()=>TT,uinteger:()=>Ad});var TT,Ad,mi,Me,un,kT,Fm,DT,ET,_T,PT,Om,RT,LT,IT,Nd,Xu,ln,al,bi,Ao,Hd,Uu,Gu,Ku,Mm,jm,IN,Jhe,jT,FT,qd,OT,zu,Am,MT,AT,NT,HT,qT,BT,YT,Bd,WT,ZT,JT,$T,XT,UT,GT,KT,zT,QT,VT,ek,tk,ik,nk,rk,$he,ok,Xhe,B,No=P(()=>{"use strict";(function(n){n.MIN_VALUE=-2147483648,n.MAX_VALUE=2147483647})(TT||(TT={}));(function(n){n.MIN_VALUE=0,n.MAX_VALUE=2147483647})(Ad||(Ad={}));(function(n){function e(i,r){return i===Number.MAX_VALUE&&(i=Ad.MAX_VALUE),r===Number.MAX_VALUE&&(r=Ad.MAX_VALUE),{line:i,character:r}}n.create=e;function t(i){var r=i;return B.objectLiteral(r)&&B.uinteger(r.line)&&B.uinteger(r.character)}n.is=t})(mi||(mi={}));(function(n){function e(i,r,o,s){if(B.uinteger(i)&&B.uinteger(r)&&B.uinteger(o)&&B.uinteger(s))return{start:mi.create(i,r),end:mi.create(o,s)};if(mi.is(i)&&mi.is(r))return{start:i,end:r};throw new Error("Range#create called with invalid arguments["+i+", "+r+", "+o+", "+s+"]")}n.create=e;function t(i){var r=i;return B.objectLiteral(r)&&mi.is(r.start)&&mi.is(r.end)}n.is=t})(Me||(Me={}));(function(n){function e(i,r){return{uri:i,range:r}}n.create=e;function t(i){var r=i;return B.defined(r)&&Me.is(r.range)&&(B.string(r.uri)||B.undefined(r.uri))}n.is=t})(un||(un={}));(function(n){function e(i,r,o,s){return{targetUri:i,targetRange:r,targetSelectionRange:o,originSelectionRange:s}}n.create=e;function t(i){var r=i;return B.defined(r)&&Me.is(r.targetRange)&&B.string(r.targetUri)&&(Me.is(r.targetSelectionRange)||B.undefined(r.targetSelectionRange))&&(Me.is(r.originSelectionRange)||B.undefined(r.originSelectionRange))}n.is=t})(kT||(kT={}));(function(n){function e(i,r,o,s){return{red:i,green:r,blue:o,alpha:s}}n.create=e;function t(i){var r=i;return B.numberRange(r.red,0,1)&&B.numberRange(r.green,0,1)&&B.numberRange(r.blue,0,1)&&B.numberRange(r.alpha,0,1)}n.is=t})(Fm||(Fm={}));(function(n){function e(i,r){return{range:i,color:r}}n.create=e;function t(i){var r=i;return Me.is(r.range)&&Fm.is(r.color)}n.is=t})(DT||(DT={}));(function(n){function e(i,r,o){return{label:i,textEdit:r,additionalTextEdits:o}}n.create=e;function t(i){var r=i;return B.string(r.label)&&(B.undefined(r.textEdit)||ln.is(r))&&(B.undefined(r.additionalTextEdits)||B.typedArray(r.additionalTextEdits,ln.is))}n.is=t})(ET||(ET={}));(function(n){n.Comment="comment",n.Imports="imports",n.Region="region"})(_T||(_T={}));(function(n){function e(i,r,o,s,a){var l={startLine:i,endLine:r};return B.defined(o)&&(l.startCharacter=o),B.defined(s)&&(l.endCharacter=s),B.defined(a)&&(l.kind=a),l}n.create=e;function t(i){var r=i;return B.uinteger(r.startLine)&&B.uinteger(r.startLine)&&(B.undefined(r.startCharacter)||B.uinteger(r.startCharacter))&&(B.undefined(r.endCharacter)||B.uinteger(r.endCharacter))&&(B.undefined(r.kind)||B.string(r.kind))}n.is=t})(PT||(PT={}));(function(n){function e(i,r){return{location:i,message:r}}n.create=e;function t(i){var r=i;return B.defined(r)&&un.is(r.location)&&B.string(r.message)}n.is=t})(Om||(Om={}));(function(n){n.Error=1,n.Warning=2,n.Information=3,n.Hint=4})(RT||(RT={}));(function(n){n.Unnecessary=1,n.Deprecated=2})(LT||(LT={}));(function(n){function e(t){var i=t;return i!=null&&B.string(i.href)}n.is=e})(IT||(IT={}));(function(n){function e(i,r,o,s,a,l){var u={range:i,message:r};return B.defined(o)&&(u.severity=o),B.defined(s)&&(u.code=s),B.defined(a)&&(u.source=a),B.defined(l)&&(u.relatedInformation=l),u}n.create=e;function t(i){var r,o=i;return B.defined(o)&&Me.is(o.range)&&B.string(o.message)&&(B.number(o.severity)||B.undefined(o.severity))&&(B.integer(o.code)||B.string(o.code)||B.undefined(o.code))&&(B.undefined(o.codeDescription)||B.string((r=o.codeDescription)===null||r===void 0?void 0:r.href))&&(B.string(o.source)||B.undefined(o.source))&&(B.undefined(o.relatedInformation)||B.typedArray(o.relatedInformation,Om.is))}n.is=t})(Nd||(Nd={}));(function(n){function e(i,r){for(var o=[],s=2;s<arguments.length;s++)o[s-2]=arguments[s];var a={title:i,command:r};return B.defined(o)&&o.length>0&&(a.arguments=o),a}n.create=e;function t(i){var r=i;return B.defined(r)&&B.string(r.title)&&B.string(r.command)}n.is=t})(Xu||(Xu={}));(function(n){function e(o,s){return{range:o,newText:s}}n.replace=e;function t(o,s){return{range:{start:o,end:o},newText:s}}n.insert=t;function i(o){return{range:o,newText:""}}n.del=i;function r(o){var s=o;return B.objectLiteral(s)&&B.string(s.newText)&&Me.is(s.range)}n.is=r})(ln||(ln={}));(function(n){function e(i,r,o){var s={label:i};return r!==void 0&&(s.needsConfirmation=r),o!==void 0&&(s.description=o),s}n.create=e;function t(i){var r=i;return r!==void 0&&B.objectLiteral(r)&&B.string(r.label)&&(B.boolean(r.needsConfirmation)||r.needsConfirmation===void 0)&&(B.string(r.description)||r.description===void 0)}n.is=t})(al||(al={}));(function(n){function e(t){var i=t;return typeof i=="string"}n.is=e})(bi||(bi={}));(function(n){function e(o,s,a){return{range:o,newText:s,annotationId:a}}n.replace=e;function t(o,s,a){return{range:{start:o,end:o},newText:s,annotationId:a}}n.insert=t;function i(o,s){return{range:o,newText:"",annotationId:s}}n.del=i;function r(o){var s=o;return ln.is(s)&&(al.is(s.annotationId)||bi.is(s.annotationId))}n.is=r})(Ao||(Ao={}));(function(n){function e(i,r){return{textDocument:i,edits:r}}n.create=e;function t(i){var r=i;return B.defined(r)&&qd.is(r.textDocument)&&Array.isArray(r.edits)}n.is=t})(Hd||(Hd={}));(function(n){function e(i,r,o){var s={kind:"create",uri:i};return r!==void 0&&(r.overwrite!==void 0||r.ignoreIfExists!==void 0)&&(s.options=r),o!==void 0&&(s.annotationId=o),s}n.create=e;function t(i){var r=i;return r&&r.kind==="create"&&B.string(r.uri)&&(r.options===void 0||(r.options.overwrite===void 0||B.boolean(r.options.overwrite))&&(r.options.ignoreIfExists===void 0||B.boolean(r.options.ignoreIfExists)))&&(r.annotationId===void 0||bi.is(r.annotationId))}n.is=t})(Uu||(Uu={}));(function(n){function e(i,r,o,s){var a={kind:"rename",oldUri:i,newUri:r};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(a.options=o),s!==void 0&&(a.annotationId=s),a}n.create=e;function t(i){var r=i;return r&&r.kind==="rename"&&B.string(r.oldUri)&&B.string(r.newUri)&&(r.options===void 0||(r.options.overwrite===void 0||B.boolean(r.options.overwrite))&&(r.options.ignoreIfExists===void 0||B.boolean(r.options.ignoreIfExists)))&&(r.annotationId===void 0||bi.is(r.annotationId))}n.is=t})(Gu||(Gu={}));(function(n){function e(i,r,o){var s={kind:"delete",uri:i};return r!==void 0&&(r.recursive!==void 0||r.ignoreIfNotExists!==void 0)&&(s.options=r),o!==void 0&&(s.annotationId=o),s}n.create=e;function t(i){var r=i;return r&&r.kind==="delete"&&B.string(r.uri)&&(r.options===void 0||(r.options.recursive===void 0||B.boolean(r.options.recursive))&&(r.options.ignoreIfNotExists===void 0||B.boolean(r.options.ignoreIfNotExists)))&&(r.annotationId===void 0||bi.is(r.annotationId))}n.is=t})(Ku||(Ku={}));(function(n){function e(t){var i=t;return i&&(i.changes!==void 0||i.documentChanges!==void 0)&&(i.documentChanges===void 0||i.documentChanges.every(function(r){return B.string(r.kind)?Uu.is(r)||Gu.is(r)||Ku.is(r):Hd.is(r)}))}n.is=e})(Mm||(Mm={}));jm=function(){function n(e,t){this.edits=e,this.changeAnnotations=t}return n.prototype.insert=function(e,t,i){var r,o;if(i===void 0?r=ln.insert(e,t):bi.is(i)?(o=i,r=Ao.insert(e,t,i)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(i),r=Ao.insert(e,t,o)),this.edits.push(r),o!==void 0)return o},n.prototype.replace=function(e,t,i){var r,o;if(i===void 0?r=ln.replace(e,t):bi.is(i)?(o=i,r=Ao.replace(e,t,i)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(i),r=Ao.replace(e,t,o)),this.edits.push(r),o!==void 0)return o},n.prototype.delete=function(e,t){var i,r;if(t===void 0?i=ln.del(e):bi.is(t)?(r=t,i=Ao.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),i=Ao.del(e,r)),this.edits.push(i),r!==void 0)return r},n.prototype.add=function(e){this.edits.push(e)},n.prototype.all=function(){return this.edits},n.prototype.clear=function(){this.edits.splice(0,this.edits.length)},n.prototype.assertChangeAnnotations=function(e){if(e===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},n}(),IN=function(){function n(e){this._annotations=e===void 0?Object.create(null):e,this._counter=0,this._size=0}return n.prototype.all=function(){return this._annotations},Object.defineProperty(n.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),n.prototype.manage=function(e,t){var i;if(bi.is(e)?i=e:(i=this.nextId(),t=e),this._annotations[i]!==void 0)throw new Error("Id "+i+" is already in use.");if(t===void 0)throw new Error("No annotation provided for id "+i);return this._annotations[i]=t,this._size++,i},n.prototype.nextId=function(){return this._counter++,this._counter.toString()},n}(),Jhe=function(){function n(e){var t=this;this._textEditChanges=Object.create(null),e!==void 0?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new IN(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(function(i){if(Hd.is(i)){var r=new jm(i.edits,t._changeAnnotations);t._textEditChanges[i.textDocument.uri]=r}})):e.changes&&Object.keys(e.changes).forEach(function(i){var r=new jm(e.changes[i]);t._textEditChanges[i]=r})):this._workspaceEdit={}}return Object.defineProperty(n.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),n.prototype.getTextEditChange=function(e){if(qd.is(e)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version},i=this._textEditChanges[t.uri];if(!i){var r=[],o={textDocument:t,edits:r};this._workspaceEdit.documentChanges.push(o),i=new jm(r,this._changeAnnotations),this._textEditChanges[t.uri]=i}return i}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var i=this._textEditChanges[e];if(!i){var r=[];this._workspaceEdit.changes[e]=r,i=new jm(r),this._textEditChanges[e]=i}return i}},n.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new IN,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},n.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},n.prototype.createFile=function(e,t,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var r;al.is(t)||bi.is(t)?r=t:i=t;var o,s;if(r===void 0?o=Uu.create(e,i):(s=bi.is(r)?r:this._changeAnnotations.manage(r),o=Uu.create(e,i,s)),this._workspaceEdit.documentChanges.push(o),s!==void 0)return s},n.prototype.renameFile=function(e,t,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var o;al.is(i)||bi.is(i)?o=i:r=i;var s,a;if(o===void 0?s=Gu.create(e,t,r):(a=bi.is(o)?o:this._changeAnnotations.manage(o),s=Gu.create(e,t,r,a)),this._workspaceEdit.documentChanges.push(s),a!==void 0)return a},n.prototype.deleteFile=function(e,t,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var r;al.is(t)||bi.is(t)?r=t:i=t;var o,s;if(r===void 0?o=Ku.create(e,i):(s=bi.is(r)?r:this._changeAnnotations.manage(r),o=Ku.create(e,i,s)),this._workspaceEdit.documentChanges.push(o),s!==void 0)return s},n}();(function(n){function e(i){return{uri:i}}n.create=e;function t(i){var r=i;return B.defined(r)&&B.string(r.uri)}n.is=t})(jT||(jT={}));(function(n){function e(i,r){return{uri:i,version:r}}n.create=e;function t(i){var r=i;return B.defined(r)&&B.string(r.uri)&&B.integer(r.version)}n.is=t})(FT||(FT={}));(function(n){function e(i,r){return{uri:i,version:r}}n.create=e;function t(i){var r=i;return B.defined(r)&&B.string(r.uri)&&(r.version===null||B.integer(r.version))}n.is=t})(qd||(qd={}));(function(n){function e(i,r,o,s){return{uri:i,languageId:r,version:o,text:s}}n.create=e;function t(i){var r=i;return B.defined(r)&&B.string(r.uri)&&B.string(r.languageId)&&B.integer(r.version)&&B.string(r.text)}n.is=t})(OT||(OT={}));(function(n){n.PlainText="plaintext",n.Markdown="markdown"})(zu||(zu={}));(function(n){function e(t){var i=t;return i===n.PlainText||i===n.Markdown}n.is=e})(zu||(zu={}));(function(n){function e(t){var i=t;return B.objectLiteral(t)&&zu.is(i.kind)&&B.string(i.value)}n.is=e})(Am||(Am={}));(function(n){n.Text=1,n.Method=2,n.Function=3,n.Constructor=4,n.Field=5,n.Variable=6,n.Class=7,n.Interface=8,n.Module=9,n.Property=10,n.Unit=11,n.Value=12,n.Enum=13,n.Keyword=14,n.Snippet=15,n.Color=16,n.File=17,n.Reference=18,n.Folder=19,n.EnumMember=20,n.Constant=21,n.Struct=22,n.Event=23,n.Operator=24,n.TypeParameter=25})(MT||(MT={}));(function(n){n.PlainText=1,n.Snippet=2})(AT||(AT={}));(function(n){n.Deprecated=1})(NT||(NT={}));(function(n){function e(i,r,o){return{newText:i,insert:r,replace:o}}n.create=e;function t(i){var r=i;return r&&B.string(r.newText)&&Me.is(r.insert)&&Me.is(r.replace)}n.is=t})(HT||(HT={}));(function(n){n.asIs=1,n.adjustIndentation=2})(qT||(qT={}));(function(n){function e(t){return{label:t}}n.create=e})(BT||(BT={}));(function(n){function e(t,i){return{items:t||[],isIncomplete:!!i}}n.create=e})(YT||(YT={}));(function(n){function e(i){return i.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}n.fromPlainText=e;function t(i){var r=i;return B.string(r)||B.objectLiteral(r)&&B.string(r.language)&&B.string(r.value)}n.is=t})(Bd||(Bd={}));(function(n){function e(t){var i=t;return!!i&&B.objectLiteral(i)&&(Am.is(i.contents)||Bd.is(i.contents)||B.typedArray(i.contents,Bd.is))&&(t.range===void 0||Me.is(t.range))}n.is=e})(WT||(WT={}));(function(n){function e(t,i){return i?{label:t,documentation:i}:{label:t}}n.create=e})(ZT||(ZT={}));(function(n){function e(t,i){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var s={label:t};return B.defined(i)&&(s.documentation=i),B.defined(r)?s.parameters=r:s.parameters=[],s}n.create=e})(JT||(JT={}));(function(n){n.Text=1,n.Read=2,n.Write=3})($T||($T={}));(function(n){function e(t,i){var r={range:t};return B.number(i)&&(r.kind=i),r}n.create=e})(XT||(XT={}));(function(n){n.File=1,n.Module=2,n.Namespace=3,n.Package=4,n.Class=5,n.Method=6,n.Property=7,n.Field=8,n.Constructor=9,n.Enum=10,n.Interface=11,n.Function=12,n.Variable=13,n.Constant=14,n.String=15,n.Number=16,n.Boolean=17,n.Array=18,n.Object=19,n.Key=20,n.Null=21,n.EnumMember=22,n.Struct=23,n.Event=24,n.Operator=25,n.TypeParameter=26})(UT||(UT={}));(function(n){n.Deprecated=1})(GT||(GT={}));(function(n){function e(t,i,r,o,s){var a={name:t,kind:i,location:{uri:o,range:r}};return s&&(a.containerName=s),a}n.create=e})(KT||(KT={}));(function(n){function e(i,r,o,s,a,l){var u={name:i,detail:r,kind:o,range:s,selectionRange:a};return l!==void 0&&(u.children=l),u}n.create=e;function t(i){var r=i;return r&&B.string(r.name)&&B.number(r.kind)&&Me.is(r.range)&&Me.is(r.selectionRange)&&(r.detail===void 0||B.string(r.detail))&&(r.deprecated===void 0||B.boolean(r.deprecated))&&(r.children===void 0||Array.isArray(r.children))&&(r.tags===void 0||Array.isArray(r.tags))}n.is=t})(zT||(zT={}));(function(n){n.Empty="",n.QuickFix="quickfix",n.Refactor="refactor",n.RefactorExtract="refactor.extract",n.RefactorInline="refactor.inline",n.RefactorRewrite="refactor.rewrite",n.Source="source",n.SourceOrganizeImports="source.organizeImports",n.SourceFixAll="source.fixAll"})(QT||(QT={}));(function(n){function e(i,r){var o={diagnostics:i};return r!=null&&(o.only=r),o}n.create=e;function t(i){var r=i;return B.defined(r)&&B.typedArray(r.diagnostics,Nd.is)&&(r.only===void 0||B.typedArray(r.only,B.string))}n.is=t})(VT||(VT={}));(function(n){function e(i,r,o){var s={title:i},a=!0;return typeof r=="string"?(a=!1,s.kind=r):Xu.is(r)?s.command=r:s.edit=r,a&&o!==void 0&&(s.kind=o),s}n.create=e;function t(i){var r=i;return r&&B.string(r.title)&&(r.diagnostics===void 0||B.typedArray(r.diagnostics,Nd.is))&&(r.kind===void 0||B.string(r.kind))&&(r.edit!==void 0||r.command!==void 0)&&(r.command===void 0||Xu.is(r.command))&&(r.isPreferred===void 0||B.boolean(r.isPreferred))&&(r.edit===void 0||Mm.is(r.edit))}n.is=t})(ek||(ek={}));(function(n){function e(i,r){var o={range:i};return B.defined(r)&&(o.data=r),o}n.create=e;function t(i){var r=i;return B.defined(r)&&Me.is(r.range)&&(B.undefined(r.command)||Xu.is(r.command))}n.is=t})(tk||(tk={}));(function(n){function e(i,r){return{tabSize:i,insertSpaces:r}}n.create=e;function t(i){var r=i;return B.defined(r)&&B.uinteger(r.tabSize)&&B.boolean(r.insertSpaces)}n.is=t})(ik||(ik={}));(function(n){function e(i,r,o){return{range:i,target:r,data:o}}n.create=e;function t(i){var r=i;return B.defined(r)&&Me.is(r.range)&&(B.undefined(r.target)||B.string(r.target))}n.is=t})(nk||(nk={}));(function(n){function e(i,r){return{range:i,parent:r}}n.create=e;function t(i){var r=i;return r!==void 0&&Me.is(r.range)&&(r.parent===void 0||n.is(r.parent))}n.is=t})(rk||(rk={}));$he=[`
`,`\r
`,"\r"];(function(n){function e(o,s,a,l){return new Xhe(o,s,a,l)}n.create=e;function t(o){var s=o;return!!(B.defined(s)&&B.string(s.uri)&&(B.undefined(s.languageId)||B.string(s.languageId))&&B.uinteger(s.lineCount)&&B.func(s.getText)&&B.func(s.positionAt)&&B.func(s.offsetAt))}n.is=t;function i(o,s){for(var a=o.getText(),l=r(s,function(f,p){var b=f.range.start.line-p.range.start.line;return b===0?f.range.start.character-p.range.start.character:b}),u=a.length,c=l.length-1;c>=0;c--){var h=l[c],d=o.offsetAt(h.range.start),g=o.offsetAt(h.range.end);if(g<=u)a=a.substring(0,d)+h.newText+a.substring(g,a.length);else throw new Error("Overlapping edit");u=d}return a}n.applyEdits=i;function r(o,s){if(o.length<=1)return o;var a=o.length/2|0,l=o.slice(0,a),u=o.slice(a);r(l,s),r(u,s);for(var c=0,h=0,d=0;c<l.length&&h<u.length;){var g=s(l[c],u[h]);g<=0?o[d++]=l[c++]:o[d++]=u[h++]}for(;c<l.length;)o[d++]=l[c++];for(;h<u.length;)o[d++]=u[h++];return o}})(ok||(ok={}));Xhe=function(){function n(e,t,i,r){this._uri=e,this._languageId=t,this._version=i,this._content=r,this._lineOffsets=void 0}return Object.defineProperty(n.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),n.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),i=this.offsetAt(e.end);return this._content.substring(t,i)}return this._content},n.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},n.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var e=[],t=this._content,i=!0,r=0;r<t.length;r++){i&&(e.push(r),i=!1);var o=t.charAt(r);i=o==="\r"||o===`
`,o==="\r"&&r+1<t.length&&t.charAt(r+1)===`
`&&r++}i&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},n.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),i=0,r=t.length;if(r===0)return mi.create(0,e);for(;i<r;){var o=Math.floor((i+r)/2);t[o]>e?r=o:i=o+1}var s=i-1;return mi.create(s,e-t[s])},n.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var i=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(i+e.character,r),i)},Object.defineProperty(n.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),n}();(function(n){var e=Object.prototype.toString;function t(g){return typeof g<"u"}n.defined=t;function i(g){return typeof g>"u"}n.undefined=i;function r(g){return g===!0||g===!1}n.boolean=r;function o(g){return e.call(g)==="[object String]"}n.string=o;function s(g){return e.call(g)==="[object Number]"}n.number=s;function a(g,f,p){return e.call(g)==="[object Number]"&&f<=g&&g<=p}n.numberRange=a;function l(g){return e.call(g)==="[object Number]"&&-2147483648<=g&&g<=2147483647}n.integer=l;function u(g){return e.call(g)==="[object Number]"&&0<=g&&g<=2147483647}n.uinteger=u;function c(g){return e.call(g)==="[object Function]"}n.func=c;function h(g){return g!==null&&typeof g=="object"}n.objectLiteral=h;function d(g,f){return Array.isArray(g)&&g.every(f)}n.typedArray=d})(B||(B={}))});var si=m(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.ProtocolNotificationType=Kn.ProtocolNotificationType0=Kn.ProtocolRequestType=Kn.ProtocolRequestType0=Kn.RegistrationType=void 0;var Qu=$u(),FN=class{constructor(e){this.method=e}};Kn.RegistrationType=FN;var ON=class extends Qu.RequestType0{constructor(e){super(e)}};Kn.ProtocolRequestType0=ON;var MN=class extends Qu.RequestType{constructor(e){super(e,Qu.ParameterStructures.byName)}};Kn.ProtocolRequestType=MN;var AN=class extends Qu.NotificationType0{constructor(e){super(e)}};Kn.ProtocolNotificationType0=AN;var NN=class extends Qu.NotificationType{constructor(e){super(e,Qu.ParameterStructures.byName)}};Kn.ProtocolNotificationType=NN});var BN=m(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.objectLiteral=Zt.typedArray=Zt.stringArray=Zt.array=Zt.func=Zt.error=Zt.number=Zt.string=Zt.boolean=void 0;function Uhe(n){return n===!0||n===!1}Zt.boolean=Uhe;function HN(n){return typeof n=="string"||n instanceof String}Zt.string=HN;function Ghe(n){return typeof n=="number"||n instanceof Number}Zt.number=Ghe;function Khe(n){return n instanceof Error}Zt.error=Khe;function zhe(n){return typeof n=="function"}Zt.func=zhe;function qN(n){return Array.isArray(n)}Zt.array=qN;function Qhe(n){return qN(n)&&n.every(e=>HN(e))}Zt.stringArray=Qhe;function Vhe(n,e){return Array.isArray(n)&&n.every(e)}Zt.typedArray=Vhe;function ede(n){return n!==null&&typeof n=="object"}Zt.objectLiteral=ede});var YN=m(Yd=>{"use strict";Object.defineProperty(Yd,"__esModule",{value:!0});Yd.ImplementationRequest=void 0;var tde=si(),ide;(function(n){n.method="textDocument/implementation",n.type=new tde.ProtocolRequestType(n.method)})(ide=Yd.ImplementationRequest||(Yd.ImplementationRequest={}))});var WN=m(Wd=>{"use strict";Object.defineProperty(Wd,"__esModule",{value:!0});Wd.TypeDefinitionRequest=void 0;var nde=si(),rde;(function(n){n.method="textDocument/typeDefinition",n.type=new nde.ProtocolRequestType(n.method)})(rde=Wd.TypeDefinitionRequest||(Wd.TypeDefinitionRequest={}))});var JN=m(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});qs.DidChangeWorkspaceFoldersNotification=qs.WorkspaceFoldersRequest=void 0;var ZN=si(),ode;(function(n){n.type=new ZN.ProtocolRequestType0("workspace/workspaceFolders")})(ode=qs.WorkspaceFoldersRequest||(qs.WorkspaceFoldersRequest={}));var sde;(function(n){n.type=new ZN.ProtocolNotificationType("workspace/didChangeWorkspaceFolders")})(sde=qs.DidChangeWorkspaceFoldersNotification||(qs.DidChangeWorkspaceFoldersNotification={}))});var $N=m(Zd=>{"use strict";Object.defineProperty(Zd,"__esModule",{value:!0});Zd.ConfigurationRequest=void 0;var ade=si(),lde;(function(n){n.type=new ade.ProtocolRequestType("workspace/configuration")})(lde=Zd.ConfigurationRequest||(Zd.ConfigurationRequest={}))});var UN=m(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});Bs.ColorPresentationRequest=Bs.DocumentColorRequest=void 0;var XN=si(),ude;(function(n){n.method="textDocument/documentColor",n.type=new XN.ProtocolRequestType(n.method)})(ude=Bs.DocumentColorRequest||(Bs.DocumentColorRequest={}));var cde;(function(n){n.type=new XN.ProtocolRequestType("textDocument/colorPresentation")})(cde=Bs.ColorPresentationRequest||(Bs.ColorPresentationRequest={}))});var GN=m(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});Ys.FoldingRangeRequest=Ys.FoldingRangeKind=void 0;var hde=si(),dde;(function(n){n.Comment="comment",n.Imports="imports",n.Region="region"})(dde=Ys.FoldingRangeKind||(Ys.FoldingRangeKind={}));var gde;(function(n){n.method="textDocument/foldingRange",n.type=new hde.ProtocolRequestType(n.method)})(gde=Ys.FoldingRangeRequest||(Ys.FoldingRangeRequest={}))});var KN=m(Jd=>{"use strict";Object.defineProperty(Jd,"__esModule",{value:!0});Jd.DeclarationRequest=void 0;var fde=si(),pde;(function(n){n.method="textDocument/declaration",n.type=new fde.ProtocolRequestType(n.method)})(pde=Jd.DeclarationRequest||(Jd.DeclarationRequest={}))});var zN=m($d=>{"use strict";Object.defineProperty($d,"__esModule",{value:!0});$d.SelectionRangeRequest=void 0;var mde=si(),bde;(function(n){n.method="textDocument/selectionRange",n.type=new mde.ProtocolRequestType(n.method)})(bde=$d.SelectionRangeRequest||($d.SelectionRangeRequest={}))});var VN=m(Sr=>{"use strict";Object.defineProperty(Sr,"__esModule",{value:!0});Sr.WorkDoneProgressCancelNotification=Sr.WorkDoneProgressCreateRequest=Sr.WorkDoneProgress=void 0;var yde=$u(),QN=si(),vde;(function(n){n.type=new yde.ProgressType;function e(t){return t===n.type}n.is=e})(vde=Sr.WorkDoneProgress||(Sr.WorkDoneProgress={}));var wde;(function(n){n.type=new QN.ProtocolRequestType("window/workDoneProgress/create")})(wde=Sr.WorkDoneProgressCreateRequest||(Sr.WorkDoneProgressCreateRequest={}));var xde;(function(n){n.type=new QN.ProtocolNotificationType("window/workDoneProgress/cancel")})(xde=Sr.WorkDoneProgressCancelNotification||(Sr.WorkDoneProgressCancelNotification={}))});var eH=m(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.CallHierarchyOutgoingCallsRequest=Tr.CallHierarchyIncomingCallsRequest=Tr.CallHierarchyPrepareRequest=void 0;var sk=si(),Cde;(function(n){n.method="textDocument/prepareCallHierarchy",n.type=new sk.ProtocolRequestType(n.method)})(Cde=Tr.CallHierarchyPrepareRequest||(Tr.CallHierarchyPrepareRequest={}));var Sde;(function(n){n.method="callHierarchy/incomingCalls",n.type=new sk.ProtocolRequestType(n.method)})(Sde=Tr.CallHierarchyIncomingCallsRequest||(Tr.CallHierarchyIncomingCallsRequest={}));var Tde;(function(n){n.method="callHierarchy/outgoingCalls",n.type=new sk.ProtocolRequestType(n.method)})(Tde=Tr.CallHierarchyOutgoingCallsRequest||(Tr.CallHierarchyOutgoingCallsRequest={}))});var tH=m(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.SemanticTokensRefreshRequest=ze.SemanticTokensRangeRequest=ze.SemanticTokensDeltaRequest=ze.SemanticTokensRequest=ze.SemanticTokensRegistrationType=ze.TokenFormat=ze.SemanticTokens=ze.SemanticTokenModifiers=ze.SemanticTokenTypes=void 0;var Xd=si(),kde;(function(n){n.namespace="namespace",n.type="type",n.class="class",n.enum="enum",n.interface="interface",n.struct="struct",n.typeParameter="typeParameter",n.parameter="parameter",n.variable="variable",n.property="property",n.enumMember="enumMember",n.event="event",n.function="function",n.method="method",n.macro="macro",n.keyword="keyword",n.modifier="modifier",n.comment="comment",n.string="string",n.number="number",n.regexp="regexp",n.operator="operator"})(kde=ze.SemanticTokenTypes||(ze.SemanticTokenTypes={}));var Dde;(function(n){n.declaration="declaration",n.definition="definition",n.readonly="readonly",n.static="static",n.deprecated="deprecated",n.abstract="abstract",n.async="async",n.modification="modification",n.documentation="documentation",n.defaultLibrary="defaultLibrary"})(Dde=ze.SemanticTokenModifiers||(ze.SemanticTokenModifiers={}));var Ede;(function(n){function e(t){let i=t;return i!==void 0&&(i.resultId===void 0||typeof i.resultId=="string")&&Array.isArray(i.data)&&(i.data.length===0||typeof i.data[0]=="number")}n.is=e})(Ede=ze.SemanticTokens||(ze.SemanticTokens={}));var _de;(function(n){n.Relative="relative"})(_de=ze.TokenFormat||(ze.TokenFormat={}));var Pde;(function(n){n.method="textDocument/semanticTokens",n.type=new Xd.RegistrationType(n.method)})(Pde=ze.SemanticTokensRegistrationType||(ze.SemanticTokensRegistrationType={}));var Rde;(function(n){n.method="textDocument/semanticTokens/full",n.type=new Xd.ProtocolRequestType(n.method)})(Rde=ze.SemanticTokensRequest||(ze.SemanticTokensRequest={}));var Lde;(function(n){n.method="textDocument/semanticTokens/full/delta",n.type=new Xd.ProtocolRequestType(n.method)})(Lde=ze.SemanticTokensDeltaRequest||(ze.SemanticTokensDeltaRequest={}));var Ide;(function(n){n.method="textDocument/semanticTokens/range",n.type=new Xd.ProtocolRequestType(n.method)})(Ide=ze.SemanticTokensRangeRequest||(ze.SemanticTokensRangeRequest={}));var jde;(function(n){n.method="workspace/semanticTokens/refresh",n.type=new Xd.ProtocolRequestType0(n.method)})(jde=ze.SemanticTokensRefreshRequest||(ze.SemanticTokensRefreshRequest={}))});var iH=m(Ud=>{"use strict";Object.defineProperty(Ud,"__esModule",{value:!0});Ud.ShowDocumentRequest=void 0;var Fde=si(),Ode;(function(n){n.method="window/showDocument",n.type=new Fde.ProtocolRequestType(n.method)})(Ode=Ud.ShowDocumentRequest||(Ud.ShowDocumentRequest={}))});var nH=m(Gd=>{"use strict";Object.defineProperty(Gd,"__esModule",{value:!0});Gd.LinkedEditingRangeRequest=void 0;var Mde=si(),Ade;(function(n){n.method="textDocument/linkedEditingRange",n.type=new Mde.ProtocolRequestType(n.method)})(Ade=Gd.LinkedEditingRangeRequest||(Gd.LinkedEditingRangeRequest={}))});var rH=m(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.WillDeleteFilesRequest=kt.DidDeleteFilesNotification=kt.DidRenameFilesNotification=kt.WillRenameFilesRequest=kt.DidCreateFilesNotification=kt.WillCreateFilesRequest=kt.FileOperationPatternKind=void 0;var Vu=si(),Nde;(function(n){n.file="file",n.folder="folder"})(Nde=kt.FileOperationPatternKind||(kt.FileOperationPatternKind={}));var Hde;(function(n){n.method="workspace/willCreateFiles",n.type=new Vu.ProtocolRequestType(n.method)})(Hde=kt.WillCreateFilesRequest||(kt.WillCreateFilesRequest={}));var qde;(function(n){n.method="workspace/didCreateFiles",n.type=new Vu.ProtocolNotificationType(n.method)})(qde=kt.DidCreateFilesNotification||(kt.DidCreateFilesNotification={}));var Bde;(function(n){n.method="workspace/willRenameFiles",n.type=new Vu.ProtocolRequestType(n.method)})(Bde=kt.WillRenameFilesRequest||(kt.WillRenameFilesRequest={}));var Yde;(function(n){n.method="workspace/didRenameFiles",n.type=new Vu.ProtocolNotificationType(n.method)})(Yde=kt.DidRenameFilesNotification||(kt.DidRenameFilesNotification={}));var Wde;(function(n){n.method="workspace/didDeleteFiles",n.type=new Vu.ProtocolNotificationType(n.method)})(Wde=kt.DidDeleteFilesNotification||(kt.DidDeleteFilesNotification={}));var Zde;(function(n){n.method="workspace/willDeleteFiles",n.type=new Vu.ProtocolRequestType(n.method)})(Zde=kt.WillDeleteFilesRequest||(kt.WillDeleteFilesRequest={}))});var oH=m(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.MonikerRequest=kr.MonikerKind=kr.UniquenessLevel=void 0;var Jde=si(),$de;(function(n){n.document="document",n.project="project",n.group="group",n.scheme="scheme",n.global="global"})($de=kr.UniquenessLevel||(kr.UniquenessLevel={}));var Xde;(function(n){n.import="import",n.export="export",n.local="local"})(Xde=kr.MonikerKind||(kr.MonikerKind={}));var Ude;(function(n){n.method="textDocument/moniker",n.type=new Jde.ProtocolRequestType(n.method)})(Ude=kr.MonikerRequest||(kr.MonikerRequest={}))});var cH=m(T=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0});T.DocumentLinkRequest=T.CodeLensRefreshRequest=T.CodeLensResolveRequest=T.CodeLensRequest=T.WorkspaceSymbolRequest=T.CodeActionResolveRequest=T.CodeActionRequest=T.DocumentSymbolRequest=T.DocumentHighlightRequest=T.ReferencesRequest=T.DefinitionRequest=T.SignatureHelpRequest=T.SignatureHelpTriggerKind=T.HoverRequest=T.CompletionResolveRequest=T.CompletionRequest=T.CompletionTriggerKind=T.PublishDiagnosticsNotification=T.WatchKind=T.FileChangeType=T.DidChangeWatchedFilesNotification=T.WillSaveTextDocumentWaitUntilRequest=T.WillSaveTextDocumentNotification=T.TextDocumentSaveReason=T.DidSaveTextDocumentNotification=T.DidCloseTextDocumentNotification=T.DidChangeTextDocumentNotification=T.TextDocumentContentChangeEvent=T.DidOpenTextDocumentNotification=T.TextDocumentSyncKind=T.TelemetryEventNotification=T.LogMessageNotification=T.ShowMessageRequest=T.ShowMessageNotification=T.MessageType=T.DidChangeConfigurationNotification=T.ExitNotification=T.ShutdownRequest=T.InitializedNotification=T.InitializeError=T.InitializeRequest=T.WorkDoneProgressOptions=T.TextDocumentRegistrationOptions=T.StaticRegistrationOptions=T.FailureHandlingKind=T.ResourceOperationKind=T.UnregistrationRequest=T.RegistrationRequest=T.DocumentSelector=T.DocumentFilter=void 0;T.MonikerRequest=T.MonikerKind=T.UniquenessLevel=T.WillDeleteFilesRequest=T.DidDeleteFilesNotification=T.WillRenameFilesRequest=T.DidRenameFilesNotification=T.WillCreateFilesRequest=T.DidCreateFilesNotification=T.FileOperationPatternKind=T.LinkedEditingRangeRequest=T.ShowDocumentRequest=T.SemanticTokensRegistrationType=T.SemanticTokensRefreshRequest=T.SemanticTokensRangeRequest=T.SemanticTokensDeltaRequest=T.SemanticTokensRequest=T.TokenFormat=T.SemanticTokens=T.SemanticTokenModifiers=T.SemanticTokenTypes=T.CallHierarchyPrepareRequest=T.CallHierarchyOutgoingCallsRequest=T.CallHierarchyIncomingCallsRequest=T.WorkDoneProgressCancelNotification=T.WorkDoneProgressCreateRequest=T.WorkDoneProgress=T.SelectionRangeRequest=T.DeclarationRequest=T.FoldingRangeRequest=T.ColorPresentationRequest=T.DocumentColorRequest=T.ConfigurationRequest=T.DidChangeWorkspaceFoldersNotification=T.WorkspaceFoldersRequest=T.TypeDefinitionRequest=T.ImplementationRequest=T.ApplyWorkspaceEditRequest=T.ExecuteCommandRequest=T.PrepareRenameRequest=T.RenameRequest=T.PrepareSupportDefaultBehavior=T.DocumentOnTypeFormattingRequest=T.DocumentRangeFormattingRequest=T.DocumentFormattingRequest=T.DocumentLinkResolveRequest=void 0;var Ws=BN(),ve=si(),Gde=YN();Object.defineProperty(T,"ImplementationRequest",{enumerable:!0,get:function(){return Gde.ImplementationRequest}});var Kde=WN();Object.defineProperty(T,"TypeDefinitionRequest",{enumerable:!0,get:function(){return Kde.TypeDefinitionRequest}});var sH=JN();Object.defineProperty(T,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return sH.WorkspaceFoldersRequest}});Object.defineProperty(T,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return sH.DidChangeWorkspaceFoldersNotification}});var zde=$N();Object.defineProperty(T,"ConfigurationRequest",{enumerable:!0,get:function(){return zde.ConfigurationRequest}});var aH=UN();Object.defineProperty(T,"DocumentColorRequest",{enumerable:!0,get:function(){return aH.DocumentColorRequest}});Object.defineProperty(T,"ColorPresentationRequest",{enumerable:!0,get:function(){return aH.ColorPresentationRequest}});var Qde=GN();Object.defineProperty(T,"FoldingRangeRequest",{enumerable:!0,get:function(){return Qde.FoldingRangeRequest}});var Vde=KN();Object.defineProperty(T,"DeclarationRequest",{enumerable:!0,get:function(){return Vde.DeclarationRequest}});var ege=zN();Object.defineProperty(T,"SelectionRangeRequest",{enumerable:!0,get:function(){return ege.SelectionRangeRequest}});var ak=VN();Object.defineProperty(T,"WorkDoneProgress",{enumerable:!0,get:function(){return ak.WorkDoneProgress}});Object.defineProperty(T,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return ak.WorkDoneProgressCreateRequest}});Object.defineProperty(T,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return ak.WorkDoneProgressCancelNotification}});var lk=eH();Object.defineProperty(T,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return lk.CallHierarchyIncomingCallsRequest}});Object.defineProperty(T,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return lk.CallHierarchyOutgoingCallsRequest}});Object.defineProperty(T,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return lk.CallHierarchyPrepareRequest}});var Ho=tH();Object.defineProperty(T,"SemanticTokenTypes",{enumerable:!0,get:function(){return Ho.SemanticTokenTypes}});Object.defineProperty(T,"SemanticTokenModifiers",{enumerable:!0,get:function(){return Ho.SemanticTokenModifiers}});Object.defineProperty(T,"SemanticTokens",{enumerable:!0,get:function(){return Ho.SemanticTokens}});Object.defineProperty(T,"TokenFormat",{enumerable:!0,get:function(){return Ho.TokenFormat}});Object.defineProperty(T,"SemanticTokensRequest",{enumerable:!0,get:function(){return Ho.SemanticTokensRequest}});Object.defineProperty(T,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return Ho.SemanticTokensDeltaRequest}});Object.defineProperty(T,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return Ho.SemanticTokensRangeRequest}});Object.defineProperty(T,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return Ho.SemanticTokensRefreshRequest}});Object.defineProperty(T,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return Ho.SemanticTokensRegistrationType}});var tge=iH();Object.defineProperty(T,"ShowDocumentRequest",{enumerable:!0,get:function(){return tge.ShowDocumentRequest}});var ige=nH();Object.defineProperty(T,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return ige.LinkedEditingRangeRequest}});var ll=rH();Object.defineProperty(T,"FileOperationPatternKind",{enumerable:!0,get:function(){return ll.FileOperationPatternKind}});Object.defineProperty(T,"DidCreateFilesNotification",{enumerable:!0,get:function(){return ll.DidCreateFilesNotification}});Object.defineProperty(T,"WillCreateFilesRequest",{enumerable:!0,get:function(){return ll.WillCreateFilesRequest}});Object.defineProperty(T,"DidRenameFilesNotification",{enumerable:!0,get:function(){return ll.DidRenameFilesNotification}});Object.defineProperty(T,"WillRenameFilesRequest",{enumerable:!0,get:function(){return ll.WillRenameFilesRequest}});Object.defineProperty(T,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return ll.DidDeleteFilesNotification}});Object.defineProperty(T,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return ll.WillDeleteFilesRequest}});var uk=oH();Object.defineProperty(T,"UniquenessLevel",{enumerable:!0,get:function(){return uk.UniquenessLevel}});Object.defineProperty(T,"MonikerKind",{enumerable:!0,get:function(){return uk.MonikerKind}});Object.defineProperty(T,"MonikerRequest",{enumerable:!0,get:function(){return uk.MonikerRequest}});var lH;(function(n){function e(t){let i=t;return Ws.string(i.language)||Ws.string(i.scheme)||Ws.string(i.pattern)}n.is=e})(lH=T.DocumentFilter||(T.DocumentFilter={}));var uH;(function(n){function e(t){if(!Array.isArray(t))return!1;for(let i of t)if(!Ws.string(i)&&!lH.is(i))return!1;return!0}n.is=e})(uH=T.DocumentSelector||(T.DocumentSelector={}));var nge;(function(n){n.type=new ve.ProtocolRequestType("client/registerCapability")})(nge=T.RegistrationRequest||(T.RegistrationRequest={}));var rge;(function(n){n.type=new ve.ProtocolRequestType("client/unregisterCapability")})(rge=T.UnregistrationRequest||(T.UnregistrationRequest={}));var oge;(function(n){n.Create="create",n.Rename="rename",n.Delete="delete"})(oge=T.ResourceOperationKind||(T.ResourceOperationKind={}));var sge;(function(n){n.Abort="abort",n.Transactional="transactional",n.TextOnlyTransactional="textOnlyTransactional",n.Undo="undo"})(sge=T.FailureHandlingKind||(T.FailureHandlingKind={}));var age;(function(n){function e(t){let i=t;return i&&Ws.string(i.id)&&i.id.length>0}n.hasId=e})(age=T.StaticRegistrationOptions||(T.StaticRegistrationOptions={}));var lge;(function(n){function e(t){let i=t;return i&&(i.documentSelector===null||uH.is(i.documentSelector))}n.is=e})(lge=T.TextDocumentRegistrationOptions||(T.TextDocumentRegistrationOptions={}));var uge;(function(n){function e(i){let r=i;return Ws.objectLiteral(r)&&(r.workDoneProgress===void 0||Ws.boolean(r.workDoneProgress))}n.is=e;function t(i){let r=i;return r&&Ws.boolean(r.workDoneProgress)}n.hasWorkDoneProgress=t})(uge=T.WorkDoneProgressOptions||(T.WorkDoneProgressOptions={}));var cge;(function(n){n.type=new ve.ProtocolRequestType("initialize")})(cge=T.InitializeRequest||(T.InitializeRequest={}));var hge;(function(n){n.unknownProtocolVersion=1})(hge=T.InitializeError||(T.InitializeError={}));var dge;(function(n){n.type=new ve.ProtocolNotificationType("initialized")})(dge=T.InitializedNotification||(T.InitializedNotification={}));var gge;(function(n){n.type=new ve.ProtocolRequestType0("shutdown")})(gge=T.ShutdownRequest||(T.ShutdownRequest={}));var fge;(function(n){n.type=new ve.ProtocolNotificationType0("exit")})(fge=T.ExitNotification||(T.ExitNotification={}));var pge;(function(n){n.type=new ve.ProtocolNotificationType("workspace/didChangeConfiguration")})(pge=T.DidChangeConfigurationNotification||(T.DidChangeConfigurationNotification={}));var mge;(function(n){n.Error=1,n.Warning=2,n.Info=3,n.Log=4})(mge=T.MessageType||(T.MessageType={}));var bge;(function(n){n.type=new ve.ProtocolNotificationType("window/showMessage")})(bge=T.ShowMessageNotification||(T.ShowMessageNotification={}));var yge;(function(n){n.type=new ve.ProtocolRequestType("window/showMessageRequest")})(yge=T.ShowMessageRequest||(T.ShowMessageRequest={}));var vge;(function(n){n.type=new ve.ProtocolNotificationType("window/logMessage")})(vge=T.LogMessageNotification||(T.LogMessageNotification={}));var wge;(function(n){n.type=new ve.ProtocolNotificationType("telemetry/event")})(wge=T.TelemetryEventNotification||(T.TelemetryEventNotification={}));var xge;(function(n){n.None=0,n.Full=1,n.Incremental=2})(xge=T.TextDocumentSyncKind||(T.TextDocumentSyncKind={}));var Cge;(function(n){n.method="textDocument/didOpen",n.type=new ve.ProtocolNotificationType(n.method)})(Cge=T.DidOpenTextDocumentNotification||(T.DidOpenTextDocumentNotification={}));var Sge;(function(n){function e(i){let r=i;return r!=null&&typeof r.text=="string"&&r.range!==void 0&&(r.rangeLength===void 0||typeof r.rangeLength=="number")}n.isIncremental=e;function t(i){let r=i;return r!=null&&typeof r.text=="string"&&r.range===void 0&&r.rangeLength===void 0}n.isFull=t})(Sge=T.TextDocumentContentChangeEvent||(T.TextDocumentContentChangeEvent={}));var Tge;(function(n){n.method="textDocument/didChange",n.type=new ve.ProtocolNotificationType(n.method)})(Tge=T.DidChangeTextDocumentNotification||(T.DidChangeTextDocumentNotification={}));var kge;(function(n){n.method="textDocument/didClose",n.type=new ve.ProtocolNotificationType(n.method)})(kge=T.DidCloseTextDocumentNotification||(T.DidCloseTextDocumentNotification={}));var Dge;(function(n){n.method="textDocument/didSave",n.type=new ve.ProtocolNotificationType(n.method)})(Dge=T.DidSaveTextDocumentNotification||(T.DidSaveTextDocumentNotification={}));var Ege;(function(n){n.Manual=1,n.AfterDelay=2,n.FocusOut=3})(Ege=T.TextDocumentSaveReason||(T.TextDocumentSaveReason={}));var _ge;(function(n){n.method="textDocument/willSave",n.type=new ve.ProtocolNotificationType(n.method)})(_ge=T.WillSaveTextDocumentNotification||(T.WillSaveTextDocumentNotification={}));var Pge;(function(n){n.method="textDocument/willSaveWaitUntil",n.type=new ve.ProtocolRequestType(n.method)})(Pge=T.WillSaveTextDocumentWaitUntilRequest||(T.WillSaveTextDocumentWaitUntilRequest={}));var Rge;(function(n){n.type=new ve.ProtocolNotificationType("workspace/didChangeWatchedFiles")})(Rge=T.DidChangeWatchedFilesNotification||(T.DidChangeWatchedFilesNotification={}));var Lge;(function(n){n.Created=1,n.Changed=2,n.Deleted=3})(Lge=T.FileChangeType||(T.FileChangeType={}));var Ige;(function(n){n.Create=1,n.Change=2,n.Delete=4})(Ige=T.WatchKind||(T.WatchKind={}));var jge;(function(n){n.type=new ve.ProtocolNotificationType("textDocument/publishDiagnostics")})(jge=T.PublishDiagnosticsNotification||(T.PublishDiagnosticsNotification={}));var Fge;(function(n){n.Invoked=1,n.TriggerCharacter=2,n.TriggerForIncompleteCompletions=3})(Fge=T.CompletionTriggerKind||(T.CompletionTriggerKind={}));var Oge;(function(n){n.method="textDocument/completion",n.type=new ve.ProtocolRequestType(n.method)})(Oge=T.CompletionRequest||(T.CompletionRequest={}));var Mge;(function(n){n.method="completionItem/resolve",n.type=new ve.ProtocolRequestType(n.method)})(Mge=T.CompletionResolveRequest||(T.CompletionResolveRequest={}));var Age;(function(n){n.method="textDocument/hover",n.type=new ve.ProtocolRequestType(n.method)})(Age=T.HoverRequest||(T.HoverRequest={}));var Nge;(function(n){n.Invoked=1,n.TriggerCharacter=2,n.ContentChange=3})(Nge=T.SignatureHelpTriggerKind||(T.SignatureHelpTriggerKind={}));var Hge;(function(n){n.method="textDocument/signatureHelp",n.type=new ve.ProtocolRequestType(n.method)})(Hge=T.SignatureHelpRequest||(T.SignatureHelpRequest={}));var qge;(function(n){n.method="textDocument/definition",n.type=new ve.ProtocolRequestType(n.method)})(qge=T.DefinitionRequest||(T.DefinitionRequest={}));var Bge;(function(n){n.method="textDocument/references",n.type=new ve.ProtocolRequestType(n.method)})(Bge=T.ReferencesRequest||(T.ReferencesRequest={}));var Yge;(function(n){n.method="textDocument/documentHighlight",n.type=new ve.ProtocolRequestType(n.method)})(Yge=T.DocumentHighlightRequest||(T.DocumentHighlightRequest={}));var Wge;(function(n){n.method="textDocument/documentSymbol",n.type=new ve.ProtocolRequestType(n.method)})(Wge=T.DocumentSymbolRequest||(T.DocumentSymbolRequest={}));var Zge;(function(n){n.method="textDocument/codeAction",n.type=new ve.ProtocolRequestType(n.method)})(Zge=T.CodeActionRequest||(T.CodeActionRequest={}));var Jge;(function(n){n.method="codeAction/resolve",n.type=new ve.ProtocolRequestType(n.method)})(Jge=T.CodeActionResolveRequest||(T.CodeActionResolveRequest={}));var $ge;(function(n){n.method="workspace/symbol",n.type=new ve.ProtocolRequestType(n.method)})($ge=T.WorkspaceSymbolRequest||(T.WorkspaceSymbolRequest={}));var Xge;(function(n){n.method="textDocument/codeLens",n.type=new ve.ProtocolRequestType(n.method)})(Xge=T.CodeLensRequest||(T.CodeLensRequest={}));var Uge;(function(n){n.method="codeLens/resolve",n.type=new ve.ProtocolRequestType(n.method)})(Uge=T.CodeLensResolveRequest||(T.CodeLensResolveRequest={}));var Gge;(function(n){n.method="workspace/codeLens/refresh",n.type=new ve.ProtocolRequestType0(n.method)})(Gge=T.CodeLensRefreshRequest||(T.CodeLensRefreshRequest={}));var Kge;(function(n){n.method="textDocument/documentLink",n.type=new ve.ProtocolRequestType(n.method)})(Kge=T.DocumentLinkRequest||(T.DocumentLinkRequest={}));var zge;(function(n){n.method="documentLink/resolve",n.type=new ve.ProtocolRequestType(n.method)})(zge=T.DocumentLinkResolveRequest||(T.DocumentLinkResolveRequest={}));var Qge;(function(n){n.method="textDocument/formatting",n.type=new ve.ProtocolRequestType(n.method)})(Qge=T.DocumentFormattingRequest||(T.DocumentFormattingRequest={}));var Vge;(function(n){n.method="textDocument/rangeFormatting",n.type=new ve.ProtocolRequestType(n.method)})(Vge=T.DocumentRangeFormattingRequest||(T.DocumentRangeFormattingRequest={}));var efe;(function(n){n.method="textDocument/onTypeFormatting",n.type=new ve.ProtocolRequestType(n.method)})(efe=T.DocumentOnTypeFormattingRequest||(T.DocumentOnTypeFormattingRequest={}));var tfe;(function(n){n.Identifier=1})(tfe=T.PrepareSupportDefaultBehavior||(T.PrepareSupportDefaultBehavior={}));var ife;(function(n){n.method="textDocument/rename",n.type=new ve.ProtocolRequestType(n.method)})(ife=T.RenameRequest||(T.RenameRequest={}));var nfe;(function(n){n.method="textDocument/prepareRename",n.type=new ve.ProtocolRequestType(n.method)})(nfe=T.PrepareRenameRequest||(T.PrepareRenameRequest={}));var rfe;(function(n){n.type=new ve.ProtocolRequestType("workspace/executeCommand")})(rfe=T.ExecuteCommandRequest||(T.ExecuteCommandRequest={}));var ofe;(function(n){n.type=new ve.ProtocolRequestType("workspace/applyEdit")})(ofe=T.ApplyWorkspaceEditRequest||(T.ApplyWorkspaceEditRequest={}))});var dH=m(Nm=>{"use strict";Object.defineProperty(Nm,"__esModule",{value:!0});Nm.createProtocolConnection=void 0;var hH=$u();function sfe(n,e,t,i){return hH.ConnectionStrategy.is(i)&&(i={connectionStrategy:i}),hH.createMessageConnection(n,e,t,i)}Nm.createProtocolConnection=sfe});var gH=m($i=>{"use strict";var afe=$i&&$i.__createBinding||(Object.create?function(n,e,t,i){i===void 0&&(i=t),Object.defineProperty(n,i,{enumerable:!0,get:function(){return e[t]}})}:function(n,e,t,i){i===void 0&&(i=t),n[i]=e[t]}),Hm=$i&&$i.__exportStar||function(n,e){for(var t in n)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&afe(e,n,t)};Object.defineProperty($i,"__esModule",{value:!0});$i.LSPErrorCodes=$i.createProtocolConnection=void 0;Hm($u(),$i);Hm((No(),Fa(jN)),$i);Hm(si(),$i);Hm(cH(),$i);var lfe=dH();Object.defineProperty($i,"createProtocolConnection",{enumerable:!0,get:function(){return lfe.createProtocolConnection}});var ufe;(function(n){n.lspReservedErrorRangeStart=-32899,n.ContentModified=-32801,n.RequestCancelled=-32800,n.lspReservedErrorRangeEnd=-32800})(ufe=$i.LSPErrorCodes||($i.LSPErrorCodes={}))});var q=m(Xr=>{"use strict";var cfe=Xr&&Xr.__createBinding||(Object.create?function(n,e,t,i){i===void 0&&(i=t),Object.defineProperty(n,i,{enumerable:!0,get:function(){return e[t]}})}:function(n,e,t,i){i===void 0&&(i=t),n[i]=e[t]}),fH=Xr&&Xr.__exportStar||function(n,e){for(var t in n)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&cfe(e,n,t)};Object.defineProperty(Xr,"__esModule",{value:!0});Xr.createProtocolConnection=void 0;var hfe=ST();fH(ST(),Xr);fH(gH(),Xr);function dfe(n,e,t,i){return hfe.createMessageConnection(n,e,t,i)}Xr.createProtocolConnection=dfe});var _i=m((Z_e,pH)=>{function ck(n,e,t){var i,r,o,s,a;e==null&&(e=100);function l(){var c=Date.now()-s;c<e&&c>=0?i=setTimeout(l,e-c):(i=null,t||(a=n.apply(o,r),o=r=null))}var u=function(){o=this,r=arguments,s=Date.now();var c=t&&!i;return i||(i=setTimeout(l,e)),c&&(a=n.apply(o,r),o=r=null),a};return u.clear=function(){i&&(clearTimeout(i),i=null)},u.flush=function(){i&&(a=n.apply(o,r),o=r=null,clearTimeout(i),i=null)},u}ck.debounce=ck;pH.exports=ck});var bH=m((J_e,mH)=>{"use strict";var Ot={rfc3986:{}};Ot.generate=function(){var n="|",e="0-9",t="["+e+"]",i="a-zA-Z",r="["+i+"]";Ot.rfc3986.cidr=t+n+"[1-2]"+t+n+"3[0-2]";var o=e+"A-Fa-f",s="["+o+"]",a=i+e+"-\\._~",l="!\\$&'\\(\\)\\*\\+,;=",u="%"+o,c=a+u+l+":@",h="["+c+"]",d="0?",g="(?:"+d+d+t+n+d+"[1-9]"+t+n+"1"+t+t+n+"2[0-4]"+t+n+"25[0-5])";Ot.rfc3986.IPv4address="(?:"+g+"\\.){3}"+g;var f=s+"{1,4}",p="(?:"+f+":"+f+"|"+Ot.rfc3986.IPv4address+")",b="(?:"+f+":){6}"+p,y="::(?:"+f+":){5}"+p,w="(?:"+f+")?::(?:"+f+":){4}"+p,x="(?:(?:"+f+":){0,1}"+f+")?::(?:"+f+":){3}"+p,k="(?:(?:"+f+":){0,2}"+f+")?::(?:"+f+":){2}"+p,L="(?:(?:"+f+":){0,3}"+f+")?::"+f+":"+p,j="(?:(?:"+f+":){0,4}"+f+")?::"+p,O="(?:(?:"+f+":){0,5}"+f+")?::"+f,W="(?:(?:"+f+":){0,6}"+f+")?::";Ot.rfc3986.IPv6address="(?:"+b+n+y+n+w+n+x+n+k+n+L+n+j+n+O+n+W+")",Ot.rfc3986.IPvFuture="v"+s+"+\\.["+a+l+":]+",Ot.rfc3986.scheme=r+"["+i+e+"+-\\.]*";var H="["+a+u+l+":]*";Ot.rfc3986.IPLiteral="\\[(?:"+Ot.rfc3986.IPv6address+n+Ot.rfc3986.IPvFuture+")\\]";var N="["+a+u+l+"]{0,255}",I="(?:"+Ot.rfc3986.IPLiteral+n+Ot.rfc3986.IPv4address+n+N+")",A=t+"*",Z="(?:"+H+"@)?"+I+"(?::"+A+")?",K=h+"*",ae=h+"+",je="(?:\\/"+K+")*",Pe="\\/(?:"+ae+je+")?",Ve=ae+je;Ot.rfc3986.hierPart="(?:(?:\\/\\/"+Z+je+")"+n+Pe+n+Ve+")",Ot.rfc3986.query="["+c+"\\/\\?]*(?=#|$)",Ot.rfc3986.fragment="["+c+"\\/\\?]*",Ot.rfc3986.uri="^(?:"+Ot.rfc3986.scheme+":"+Ot.rfc3986.hierPart+")(?:\\?"+Ot.rfc3986.query+")?(?:#"+Ot.rfc3986.fragment+")?$"};Ot.generate();mH.exports=Ot.rfc3986});var hk=m(($_e,yH)=>{"use strict";var Kd=bH();function gfe(n){return n.replace(/[\^\$\.\*\+\-\?\=\!\:\|\\\/\(\)\[\]\{\}\,]/g,"\\$&")}var zd={Uri:{createUriRegex:function(n){if(n=n||{},typeof n!="object"||Array.isArray(n))throw new Error("options must be an object");var e="";if(n.scheme){if(Array.isArray(n.scheme)||(n.scheme=[n.scheme]),n.scheme.length<=0)throw new Error("scheme must have at least 1 scheme specified");for(var t=0;t<n.scheme.length;++t){var i=n.scheme[t];if(!(i instanceof RegExp||typeof i=="string"))throw new Error("scheme must only contain Regular Expressions or Strings");if(e=e+(e?"|":""),i instanceof RegExp)e=e+i.source;else{if(!/[a-zA-Z][a-zA-Z0-9+-\.]*/.test(i))throw new Error("scheme at position "+t+" must be a valid scheme");e=e+gfe(i)}}}var r="(?:"+(e||Kd.scheme)+")";return new RegExp("^(?:"+r+":"+Kd.hierPart+")(?:\\?"+Kd.query+")?(?:#"+Kd.fragment+")?$")},uriRegex:new RegExp(Kd.uri)}};zd.Uri.isValid=function(n){return zd.Uri.uriRegex.test(n)};yH.exports={createUriRegex:zd.Uri.createUriRegex,uriRegex:zd.Uri.uriRegex,isValid:zd.Uri.isValid}});function yfe(n,e){if(!n.scheme&&e)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+n.authority+'", path: "'+n.path+'", query: "'+n.query+'", fragment: "'+n.fragment+'"}');if(n.scheme&&!pfe.test(n.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(n.path){if(n.authority){if(!mfe.test(n.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(bfe.test(n.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function vfe(n,e){return!n&&!e?"file":n}function wfe(n,e){switch(n){case"https":case"http":case"file":e?e[0]!==Dr&&(e=Dr+e):e=Dr;break}return e}function wH(n,e){for(var t=void 0,i=-1,r=0;r<n.length;r++){var o=n.charCodeAt(r);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===45||o===46||o===95||o===126||e&&o===47)i!==-1&&(t+=encodeURIComponent(n.substring(i,r)),i=-1),t!==void 0&&(t+=n.charAt(r));else{t===void 0&&(t=n.substr(0,r));var s=SH[o];s!==void 0?(i!==-1&&(t+=encodeURIComponent(n.substring(i,r)),i=-1),t+=s):i===-1&&(i=r)}}return i!==-1&&(t+=encodeURIComponent(n.substring(i))),t!==void 0?t:n}function Cfe(n){for(var e=void 0,t=0;t<n.length;t++){var i=n.charCodeAt(t);i===35||i===63?(e===void 0&&(e=n.substr(0,t)),e+=SH[i]):e!==void 0&&(e+=n[t])}return e!==void 0?e:n}function TH(n,e){var t;return n.authority&&n.path.length>1&&n.scheme==="file"?t="//"+n.authority+n.path:n.path.charCodeAt(0)===47&&(n.path.charCodeAt(1)>=65&&n.path.charCodeAt(1)<=90||n.path.charCodeAt(1)>=97&&n.path.charCodeAt(1)<=122)&&n.path.charCodeAt(2)===58?e?t=n.path.substr(1):t=n.path[1].toLowerCase()+n.path.substr(2):t=n.path,Qd&&(t=t.replace(/\//g,"\\")),t}function dk(n,e){var t=e?Cfe:wH,i="",r=n.scheme,o=n.authority,s=n.path,a=n.query,l=n.fragment;if(r&&(i+=r,i+=":"),(o||r==="file")&&(i+=Dr,i+=Dr),o){var u=o.indexOf("@");if(u!==-1){var c=o.substr(0,u);o=o.substr(u+1),u=c.indexOf(":"),u===-1?i+=t(c,!1):(i+=t(c.substr(0,u),!1),i+=":",i+=t(c.substr(u+1),!1)),i+="@"}o=o.toLowerCase(),u=o.indexOf(":"),u===-1?i+=t(o,!1):(i+=t(o.substr(0,u),!1),i+=o.substr(u))}if(s){if(s.length>=3&&s.charCodeAt(0)===47&&s.charCodeAt(2)===58){var h=s.charCodeAt(1);h>=65&&h<=90&&(s="/"+String.fromCharCode(h+32)+":"+s.substr(3))}else if(s.length>=2&&s.charCodeAt(1)===58){var h=s.charCodeAt(0);h>=65&&h<=90&&(s=String.fromCharCode(h+32)+":"+s.substr(2))}i+=t(s,!0)}return a&&(i+="?",i+=t(a,!1)),l&&(i+="#",i+=e?l:wH(l,!1)),i}function kH(n){try{return decodeURIComponent(n)}catch{return n.length>3?n.substr(0,3)+kH(n.substr(3)):n}}function qm(n){return n.match(xH)?n.replace(xH,function(e){return kH(e)}):n}var ffe,Nt,Qd,vH,pfe,mfe,bfe,lt,Dr,xfe,M,CH,ec,SH,xH,we=P(()=>{"use strict";ffe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var o in r)r.hasOwnProperty(o)&&(i[o]=r[o])},n(e,t)};return function(e,t){n(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();typeof process=="object"?Qd=process.platform==="win32":typeof navigator=="object"&&(vH=navigator.userAgent,Qd=vH.indexOf("Windows")>=0);pfe=/^\w[\w\d+.-]*$/,mfe=/^\//,bfe=/^\/\//;lt="",Dr="/",xfe=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,M=function(){function n(e,t,i,r,o,s){s===void 0&&(s=!1),typeof e=="object"?(this.scheme=e.scheme||lt,this.authority=e.authority||lt,this.path=e.path||lt,this.query=e.query||lt,this.fragment=e.fragment||lt):(this.scheme=vfe(e,s),this.authority=t||lt,this.path=wfe(this.scheme,i||lt),this.query=r||lt,this.fragment=o||lt,yfe(this,s))}return n.isUri=function(e){return e instanceof n?!0:e?typeof e.authority=="string"&&typeof e.fragment=="string"&&typeof e.path=="string"&&typeof e.query=="string"&&typeof e.scheme=="string"&&typeof e.fsPath=="function"&&typeof e.with=="function"&&typeof e.toString=="function":!1},Object.defineProperty(n.prototype,"fsPath",{get:function(){return TH(this,!1)},enumerable:!0,configurable:!0}),n.prototype.with=function(e){if(!e)return this;var t=e.scheme,i=e.authority,r=e.path,o=e.query,s=e.fragment;return t===void 0?t=this.scheme:t===null&&(t=lt),i===void 0?i=this.authority:i===null&&(i=lt),r===void 0?r=this.path:r===null&&(r=lt),o===void 0?o=this.query:o===null&&(o=lt),s===void 0?s=this.fragment:s===null&&(s=lt),t===this.scheme&&i===this.authority&&r===this.path&&o===this.query&&s===this.fragment?this:new ec(t,i,r,o,s)},n.parse=function(e,t){t===void 0&&(t=!1);var i=xfe.exec(e);return i?new ec(i[2]||lt,qm(i[4]||lt),qm(i[5]||lt),qm(i[7]||lt),qm(i[9]||lt),t):new ec(lt,lt,lt,lt,lt)},n.file=function(e){var t=lt;if(Qd&&(e=e.replace(/\\/g,Dr)),e[0]===Dr&&e[1]===Dr){var i=e.indexOf(Dr,2);i===-1?(t=e.substring(2),e=Dr):(t=e.substring(2,i),e=e.substring(i)||Dr)}return new ec("file",t,e,lt,lt)},n.from=function(e){return new ec(e.scheme,e.authority,e.path,e.query,e.fragment)},n.prototype.toString=function(e){return e===void 0&&(e=!1),dk(this,e)},n.prototype.toJSON=function(){return this},n.revive=function(e){if(e){if(e instanceof n)return e;var t=new ec(e);return t._formatted=e.external,t._fsPath=e._sep===CH?e.fsPath:null,t}else return e},n}(),CH=Qd?1:void 0,ec=function(n){ffe(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t._formatted=null,t._fsPath=null,t}return Object.defineProperty(e.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=TH(this,!1)),this._fsPath},enumerable:!0,configurable:!0}),e.prototype.toString=function(t){return t===void 0&&(t=!1),t?dk(this,!0):(this._formatted||(this._formatted=dk(this,!1)),this._formatted)},e.prototype.toJSON=function(){var t={$mid:1};return this._fsPath&&(t.fsPath=this._fsPath,t._sep=CH),this._formatted&&(t.external=this._formatted),this.path&&(t.path=this.path),this.scheme&&(t.scheme=this.scheme),this.authority&&(t.authority=this.authority),this.query&&(t.query=this.query),this.fragment&&(t.fragment=this.fragment),t},e}(M),SH=(Nt={},Nt[58]="%3A",Nt[47]="%2F",Nt[63]="%3F",Nt[35]="%23",Nt[91]="%5B",Nt[93]="%5D",Nt[64]="%40",Nt[33]="%21",Nt[36]="%24",Nt[38]="%26",Nt[39]="%27",Nt[40]="%28",Nt[41]="%29",Nt[42]="%2A",Nt[43]="%2B",Nt[44]="%2C",Nt[59]="%3B",Nt[61]="%3D",Nt[32]="%20",Nt);xH=/(%[0-9A-Za-z][0-9A-Za-z])+/g});var RH=m((U_e,PH)=>{PH.exports=_H;_H.sync=Tfe;var DH=require("fs");function Sfe(n,e){var t=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!t||(t=t.split(";"),t.indexOf("")!==-1))return!0;for(var i=0;i<t.length;i++){var r=t[i].toLowerCase();if(r&&n.substr(-r.length).toLowerCase()===r)return!0}return!1}function EH(n,e,t){return!n.isSymbolicLink()&&!n.isFile()?!1:Sfe(e,t)}function _H(n,e,t){DH.stat(n,function(i,r){t(i,i?!1:EH(r,n,e))})}function Tfe(n,e){return EH(DH.statSync(n),n,e)}});var OH=m((G_e,FH)=>{FH.exports=IH;IH.sync=kfe;var LH=require("fs");function IH(n,e,t){LH.stat(n,function(i,r){t(i,i?!1:jH(r,e))})}function kfe(n,e){return jH(LH.statSync(n),e)}function jH(n,e){return n.isFile()&&Dfe(n,e)}function Dfe(n,e){var t=n.mode,i=n.uid,r=n.gid,o=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),s=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),a=parseInt("100",8),l=parseInt("010",8),u=parseInt("001",8),c=a|l,h=t&u||t&l&&r===s||t&a&&i===o||t&c&&o===0;return h}});var AH=m((z_e,MH)=>{var K_e=require("fs"),Bm;process.platform==="win32"||global.TESTING_WINDOWS?Bm=RH():Bm=OH();MH.exports=gk;gk.sync=Efe;function gk(n,e,t){if(typeof e=="function"&&(t=e,e={}),!t){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(i,r){gk(n,e||{},function(o,s){o?r(o):i(s)})})}Bm(n,e||{},function(i,r){i&&(i.code==="EACCES"||e&&e.ignoreErrors)&&(i=null,r=!1),t(i,r)})}function Efe(n,e){try{return Bm.sync(n,e||{})}catch(t){if(e&&e.ignoreErrors||t.code==="EACCES")return!1;throw t}}});var Vd=m((Q_e,WH)=>{var tc=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",NH=require("path"),_fe=tc?";":":",HH=AH(),qH=n=>Object.assign(new Error(`not found: ${n}`),{code:"ENOENT"}),BH=(n,e)=>{let t=e.colon||_fe,i=n.match(/\//)||tc&&n.match(/\\/)?[""]:[...tc?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(t)],r=tc?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",o=tc?r.split(t):[""];return tc&&n.indexOf(".")!==-1&&o[0]!==""&&o.unshift(""),{pathEnv:i,pathExt:o,pathExtExe:r}},YH=(n,e,t)=>{typeof e=="function"&&(t=e,e={}),e||(e={});let{pathEnv:i,pathExt:r,pathExtExe:o}=BH(n,e),s=[],a=u=>new Promise((c,h)=>{if(u===i.length)return e.all&&s.length?c(s):h(qH(n));let d=i[u],g=/^".*"$/.test(d)?d.slice(1,-1):d,f=NH.join(g,n),p=!g&&/^\.[\\\/]/.test(n)?n.slice(0,2)+f:f;c(l(p,u,0))}),l=(u,c,h)=>new Promise((d,g)=>{if(h===r.length)return d(a(c+1));let f=r[h];HH(u+f,{pathExt:o},(p,b)=>{if(!p&&b)if(e.all)s.push(u+f);else return d(u+f);return d(l(u,c,h+1))})});return t?a(0).then(u=>t(null,u),t):a(0)},Pfe=(n,e)=>{e=e||{};let{pathEnv:t,pathExt:i,pathExtExe:r}=BH(n,e),o=[];for(let s=0;s<t.length;s++){let a=t[s],l=/^".*"$/.test(a)?a.slice(1,-1):a,u=NH.join(l,n),c=!l&&/^\.[\\\/]/.test(n)?n.slice(0,2)+u:u;for(let h=0;h<i.length;h++){let d=c+i[h];try{if(HH.sync(d,{pathExt:r}))if(e.all)o.push(d);else return d}catch{}}}if(e.all&&o.length)return o;if(e.nothrow)return null;throw qH(n)};WH.exports=YH;YH.sync=Pfe});var qo={};vs(qo,{OS:()=>Nfe,OperatingSystem:()=>JH,Platform:()=>ZH,globals:()=>Afe,isLinux:()=>Ife,isMacintosh:()=>ic,isNative:()=>jfe,isWeb:()=>Ffe,isWindows:()=>Xi,language:()=>Lfe,platform:()=>Ofe});var Wm,Zm,fk,pk,Rfe,Lfe,ZH,Ym,Xi,ic,Ife,jfe,Ffe,Ofe,Mfe,Afe,JH,Nfe,nc=P(()=>{"use strict";Wm=!1,Zm=!1,fk=!1,pk=!1,Rfe=!1,Lfe="en";typeof process=="object"&&typeof process.nextTick=="function"&&typeof process.platform=="string"&&(Wm=process.platform==="win32",Zm=process.platform==="darwin",fk=process.platform==="linux",pk=!0);ZH=(r=>(r[r.Web=0]="Web",r[r.Mac=1]="Mac",r[r.Linux=2]="Linux",r[r.Windows=3]="Windows",r))(ZH||{}),Ym=0;pk&&(Zm?Ym=1:Wm?Ym=3:fk&&(Ym=2));Xi=Wm,ic=Zm,Ife=fk,jfe=pk,Ffe=Rfe,Ofe=Ym,Mfe=typeof self=="object"?self:typeof global=="object"?global:{},Afe=Mfe,JH=(i=>(i[i.Windows=1]="Windows",i[i.Macintosh=2]="Macintosh",i[i.Linux=3]="Linux",i))(JH||{}),Nfe=Zm?2:Wm?1:3});function eg(n){return!!(ul.MarkupContent.is(n)&&n.kind==ul.MarkupKind.Markdown)}function Qe(n){return n<=0?Promise.resolve(void 0):new Promise(e=>{setTimeout(()=>{e(void 0)},n)})}function zH(n){return new Promise(e=>{process.nextTick(()=>{n&&n(),e(void 0)})})}function Ur(){return new Promise(n=>{setImmediate(()=>{n(void 0)})})}function Jm(n,e,t,i){return n?(Xi&&!i&&!n.startsWith("jdt://")&&(n=mk.default.win32.normalize(n)),mk.default.isAbsolute(n)?M.file(n).toString():GH.default.isValid(n)?M.parse(n).toString():t!=""?`${t}:${e}`:`unknown:${e}`):`untitled:${e}`}function J(n){for(;n.length;){let e=n.pop();e&&e.dispose()}}function tg(n){try{KH.default.sync(n)}catch{return!1}return!0}function Gr(n,e={},t){return Xi||(e.shell=e.shell||process.env.SHELL),e.maxBuffer=500*1024,new Promise((i,r)=>{let o;t&&(o=setTimeout(()=>{r(new Error(`timeout after ${t}s`))},t*1e3)),(0,$H.exec)(n,e,(s,a,l)=>{if(o&&clearTimeout(o),s){r(new Error(`exited with ${s.code}
${s}
${l}`));return}i(a)})})}function rc(n,e){let t=(0,XH.default)(e,100);try{let i=UH.default.watch(n,{persistent:!0,recursive:!1,encoding:"utf8"},()=>{t()});return ul.Disposable.create(()=>{t.clear(),i.close()})}catch{return ul.Disposable.create(()=>{t.clear()})}}function QH(n){try{return process.kill(n,0)==!0}catch(e){return e.code==="EPERM"}}function bk(n){return n=="n"||n=="o"||n=="x"||n=="v"?"<C-U>":n=="i"?"<C-o>":n=="s"?"<Esc>":""}function ig(n,e,t=3){if(n.length==0)return Promise.resolve();let i=0,r=n.length,o=n.slice();return new Promise(s=>{let a=l=>{let u=()=>{if(i=i+1,i==r)s();else if(o.length){let c=o.shift();a(c)}};e(l).then(u,u)};for(let l=0;l<Math.min(t,o.length);l++){let u=o.shift();a(u)}})}var $H,XH,UH,GH,mk,ul,KH,tPe,Er,z=P(()=>{"use strict";$H=require("child_process"),XH=S(_i()),UH=S(require("fs")),GH=S(hk()),mk=S(require("path")),ul=S(q());we();KH=S(Vd());nc();tPe=Y()("util-index"),Er="coc-settings.json"});function oc(n){return n&&typeof n.word=="string"&&n.user_data!==""}function zn(n){return typeof n=="boolean"}function Ee(n){return typeof n=="string"}function $m(n){return typeof n=="number"}function Zs(n){return typeof n=="function"}function Dt(n){return n!=null&&typeof n=="object"&&!Array.isArray(n)&&!(n instanceof RegExp)&&!(n instanceof Date)}function VH(n){if(!Dt(n))return!1;for(let e in n)if(Hfe.call(n,e))return!1;return!0}function yk(n,e){return Array.isArray(n)&&n.every(e)}var Hfe,jn=P(()=>{"use strict";Hfe=Object.prototype.hasOwnProperty});function _r(n){if(!n||typeof n!="object"||n instanceof RegExp)return n;let e=Array.isArray(n)?[]:{};return Object.keys(n).forEach(t=>{n[t]&&typeof n[t]=="object"?e[t]=_r(n[t]):e[t]=n[t]}),e}function eq(n){if(!n||typeof n!="object")return n;let e=[n];for(;e.length>0;){let t=e.shift();Object.freeze(t);for(let i in t)if(qfe.call(t,i)){let r=t[i];typeof r=="object"&&!Object.isFrozen(r)&&e.push(r)}}return n}function vk(n,e,t=!0){return Dt(n)?(Dt(e)&&Object.keys(e).forEach(i=>{i in n?t&&(Dt(n[i])&&Dt(e[i])?vk(n[i],e[i],t):n[i]=e[i]):n[i]=e[i]}),n):e}function _e(n,e){if(n===e)return!0;if(n==null||e===null||e===void 0||typeof n!=typeof e||typeof n!="object"||Array.isArray(n)!==Array.isArray(e))return!1;let t,i;if(Array.isArray(n)){if(n.length!==e.length)return!1;for(t=0;t<n.length;t++)if(!_e(n[t],e[t]))return!1}else{let r=[];for(i in n)r.push(i);r.sort();let o=[];for(i in e)o.push(i);if(o.sort(),!_e(r,o))return!1;for(t=0;t<r.length;t++)if(!_e(n[r[t]],e[r[t]]))return!1}return!0}var qfe,Ht=P(()=>{"use strict";jn();qfe=Object.prototype.hasOwnProperty});function tq(n,e){let t=[];for(let i=0;i<n.length;i++)n[i]==e&&t.push(i);return t}function V(n){return Buffer.byteLength(n)}function cn(n){return(n==null?void 0:n.length)>0?n[0].toUpperCase()+n.slice(1):""}function et(n,e){let t=n.slice(0,e);return Buffer.byteLength(t)}function yi(n,e){return Buffer.from(n,"utf8").slice(0,e).toString("utf8").length}function tt(n,e,t){return Buffer.from(n,"utf8").slice(e,t).toString("utf8")}function ac(n){let e=n.charCodeAt(0);return e>128?!1:!!(e==95||e>=48&&e<=57||wk(e))}function wk(n){return n>=65&&n<=90||n>=97&&n<=122}function iq(n,e){return e&&n.endsWith(`
`)?n.slice(0,-1).split(`
`):n.split(`
`)}var Fe=P(()=>{"use strict"});var lc,Bfe,nq,_,he=P(()=>{"use strict";lc=S(q());z();Ht();Fe();Bfe=Y()("events"),nq=class{constructor(){this.handlers=new Map;this._recentInserts=[];this._lastChange=0;this._insertMode=!1;this._pumAlignTop=!1;this._pumVisible=!1}get cursor(){return this._cursor}get bufnr(){return this._bufnr}get pumvisible(){return this._pumVisible}get pumAlignTop(){return this._pumAlignTop}get insertMode(){return this._insertMode}get lastChangeTs(){return this._lastChange}race(e,t){let i=[];return new Promise(r=>{if(typeof t=="number"){let o=setTimeout(()=>{J(i),r(void 0)},t);i.push(lc.Disposable.create(()=>{clearTimeout(o)}))}else lc.CancellationToken.is(t)&&t.onCancellationRequested(()=>{J(i),r(void 0)},null,i);e.forEach(o=>{this.on(o,(...s)=>{J(i),r({name:o,args:s})},null,i)})})}async fire(e,t){var r,o;let i=this.handlers.get(e);if(e=="InsertEnter")this._insertMode=!0;else if(e=="InsertLeave")this._insertMode=!1,this._pumVisible=!1,this._recentInserts=[];else if(e=="CursorHoldI"||e=="CursorMovedI")this._bufnr=t[0],this._insertMode||(this._insertMode=!0,this.fire("InsertEnter",[t[0]]));else if(e=="CursorHold"||e=="CursorMoved")this._bufnr=t[0],this._insertMode&&(this._insertMode=!1,this.fire("InsertLeave",[t[0]]));else if(e=="MenuPopupChanged")this._pumVisible=!0,this._pumAlignTop=t[1]>t[0].row;else if(e=="CompleteDone")this._pumVisible=!1;else if(e=="InsertCharPre")this._recentInserts.push([t[1],t[0]]);else if(e=="TextChanged")this._lastChange=Date.now();else if(e=="BufEnter")this._bufnr=t[0];else if(e=="TextChangedI"||e=="TextChangedP"){let s=this._recentInserts.filter(u=>u[0]==t[0]);this._bufnr=t[0],this._recentInserts=[],this._pumVisible=e=="TextChangedP",this._lastChange=Date.now();let a=t[1],l=tt((r=a.line)!=null?r:"",0,a.col-1);if(a.pre=l,this._cursor=Object.freeze({bufnr:t[0],lnum:a.lnum,col:a.col,insert:!0}),s.length&&l.length){let u=l.slice(-1);s.findIndex(c=>c[1]==u)!==-1&&(a.insertChar=u,process.nextTick(()=>{this.fire("TextInsert",[...t,u])}))}}if(e=="CursorMoved"||e=="CursorMovedI"){t.push(this._recentInserts.length>0);let s={bufnr:t[0],lnum:t[1][0],col:t[1][1],insert:e=="CursorMovedI"};if(this._cursor&&_e(this._cursor,s))return;this._cursor=Object.freeze(s)}if(i)try{t.forEach(s=>{typeof s=="object"&&Object.freeze(s)}),await Promise.all(i.slice().map(s=>s(t)))}catch(s){if(s instanceof Error&&((o=s.message)==null?void 0:o.includes("transport disconnected")))return;Bfe.error(`Error on event: ${e}`,s instanceof Error?s.stack:s)}}on(e,t,i,r){if(Array.isArray(e)){let o=r||[];for(let s of e)this.on(s,t,i,o);return lc.Disposable.create(()=>{J(o)})}else{let o=this.handlers.get(e)||[],s=l=>new Promise((u,c)=>{try{Promise.resolve(t.apply(i!=null?i:null,l)).then(()=>{u(void 0)},h=>{c(h)})}catch(h){c(h)}});o.push(s),this.handlers.set(e,o);let a=lc.Disposable.create(()=>{let l=o.indexOf(s);l!==-1&&o.splice(l,1)});return Array.isArray(r)&&r.push(a),a}}},_=new nq});function cq(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function Yfe(n){uc=n}function ai(n,e){if(e){if(Wfe.test(n))return n.replace(Zfe,rq)}else if(Jfe.test(n))return n.replace($fe,rq);return n}function hq(n){return n.replace(Ufe,(e,t)=>(t=t.toLowerCase(),t==="colon"?":":t.charAt(0)==="#"?t.charAt(1)==="x"?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}function ut(n,e){n=n.source||n,e=e||"";let t={replace:(i,r)=>(r=r.source||r,r=r.replace(Gfe,"$1"),n=n.replace(i,r),t),getRegex:()=>new RegExp(n,e)};return t}function oq(n,e,t){if(n){let i;try{i=decodeURIComponent(hq(t)).replace(Kfe,"").toLowerCase()}catch{return null}if(i.indexOf("javascript:")===0||i.indexOf("vbscript:")===0||i.indexOf("data:")===0)return null}e&&!zfe.test(t)&&(t=tpe(e,t));try{t=encodeURI(t).replace(/%25/g,"%")}catch{return null}return t}function tpe(n,e){Xm[" "+n]||(Qfe.test(n)?Xm[" "+n]=n+"/":Xm[" "+n]=Um(n,"/",!0)),n=Xm[" "+n];let t=n.indexOf(":")===-1;return e.substring(0,2)==="//"?t?e:n.replace(Vfe,"$1")+e:e.charAt(0)==="/"?t?e:n.replace(epe,"$1")+e:n+e}function Pr(n){let e=1,t,i;for(;e<arguments.length;e++){t=arguments[e];for(i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n}function sq(n,e){let t=n.replace(/\|/g,(o,s,a)=>{let l=!1,u=s;for(;--u>=0&&a[u]==="\\";)l=!l;return l?"|":" |"}),i=t.split(/ \|/),r=0;if(i[0].trim()||i.shift(),i.length>0&&!i[i.length-1].trim()&&i.pop(),i.length>e)i.splice(e);else for(;i.length<e;)i.push("");for(;r<i.length;r++)i[r]=i[r].trim().replace(/\\\|/g,"|");return i}function Um(n,e,t){let i=n.length;if(i===0)return"";let r=0;for(;r<i;){let o=n.charAt(i-r-1);if(o===e&&!t)r++;else if(o!==e&&t)r++;else break}return n.substr(0,i-r)}function ipe(n,e){if(n.indexOf(e[1])===-1)return-1;let t=n.length,i=0,r=0;for(;r<t;r++)if(n[r]==="\\")r++;else if(n[r]===e[0])i++;else if(n[r]===e[1]&&(i--,i<0))return r;return-1}function dq(n){n&&n.sanitize&&!n.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function aq(n,e){if(e<1)return"";let t="";for(;e>1;)e&1&&(t+=n),e>>=1,n+=n;return t+n}function lq(n,e,t,i){let r=e.href,o=e.title?ai(e.title):null,s=n[1].replace(/\\([\[\]])/g,"$1");if(n[0].charAt(0)!=="!"){i.state.inLink=!0;let a={type:"link",raw:t,href:r,title:o,text:s,tokens:i.inlineTokens(s,[])};return i.state.inLink=!1,a}else return{type:"image",raw:t,href:r,title:o,text:ai(s)}}function npe(n,e){let t=n.match(/^(\s+)(?:```)/);if(t===null)return e;let i=t[1];return e.split(`
`).map(r=>{let o=r.match(/^\s+/);if(o===null)return r;let[s]=o;return s.length>=i.length?r.slice(i.length):r}).join(`
`)}function rpe(n){return n.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function uq(n){let e="",t,i,r=n.length;for(t=0;t<r;t++)i=n.charCodeAt(t),Math.random()>.5&&(i="x"+i.toString(16)),e+="&#"+i+";";return e}function ge(n,e,t){if(typeof n>"u"||n===null)throw new Error("marked(): input parameter is undefined or null");if(typeof n!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected");if(typeof e=="function"&&(t=e,e=null),e=Pr({},ge.defaults,e||{}),dq(e),t){let i=e.highlight,r;try{r=Kr.lex(n,e)}catch(a){return t(a)}let o=function(a){let l;if(!a)try{e.walkTokens&&ge.walkTokens(r,e.walkTokens),l=zr.parse(r,e)}catch(u){a=u}return e.highlight=i,a?t(a):t(null,l)};if(!i||i.length<3||(delete e.highlight,!r.length))return o();let s=0;ge.walkTokens(r,function(a){a.type==="code"&&(s++,setTimeout(()=>{i(a.text,a.lang,function(l,u){if(l)return o(l);u!=null&&u!==a.text&&(a.text=u,a.escaped=!0),s--,s===0&&o()})},0))}),s===0&&o();return}try{let i=Kr.lex(n,e);return e.walkTokens&&ge.walkTokens(i,e.walkTokens),zr.parse(i,e)}catch(i){if(i.message+=`
Please report this to https://github.com/markedjs/marked.`,e.silent)return"<p>An error occurred:</p><pre>"+ai(i.message+"",!0)+"</pre>";throw i}}var uc,Wfe,Zfe,Jfe,$fe,Xfe,rq,Ufe,Gfe,Kfe,zfe,Xm,Qfe,Vfe,epe,Gm,Km,ce,ee,Kr,zm,xk,Ck,zr,uPe,cPe,hPe,dPe,gPe,fPe,pPe,gq=P(()=>{uc=cq();Wfe=/[&<>"']/,Zfe=/[&<>"']/g,Jfe=/[<>"']|&(?!#?\w+;)/,$fe=/[<>"']|&(?!#?\w+;)/g,Xfe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},rq=n=>Xfe[n];Ufe=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;Gfe=/(^|[^\[])\^/g;Kfe=/[^\w:]/g,zfe=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;Xm={},Qfe=/^[^:]+:\/*[^/]*$/,Vfe=/^([^:]+:)[\s\S]*$/,epe=/^([^:]+:\/*[^/]*)[\s\S]*$/;Gm={exec:function(){}};Km=class{constructor(e){this.options=e||uc}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let i=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?i:Um(i,`
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let i=t[0],r=npe(i,t[3]||"");return{type:"code",raw:i,lang:t[2]?t[2].trim():t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let i=t[2].trim();if(/#$/.test(i)){let o=Um(i,"#");(this.options.pedantic||!o||/ $/.test(o))&&(i=o.trim())}let r={type:"heading",raw:t[0],depth:t[1].length,text:i,tokens:[]};return this.lexer.inline(r.text,r.tokens),r}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let i=t[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(i,[]),text:i}}}list(e){let t=this.rules.block.list.exec(e);if(t){let i,r,o,s,a,l,u,c,h,d,g,f,p=t[1].trim(),b=p.length>1,y={type:"list",raw:"",ordered:b,start:b?+p.slice(0,-1):"",loose:!1,items:[]};p=b?`\\d{1,9}\\${p.slice(-1)}`:`\\${p}`,this.options.pedantic&&(p=b?p:"[*+-]");let w=new RegExp(`^( {0,3}${p})((?: [^\\n]*)?(?:\\n|$))`);for(;e&&(f=!1,!(!(t=w.exec(e))||this.rules.block.hr.test(e)));){if(i=t[0],e=e.substring(i.length),c=t[2].split(`
`,1)[0],h=e.split(`
`,1)[0],this.options.pedantic?(s=2,g=c.trimLeft()):(s=t[2].search(/[^ ]/),s=s>4?1:s,g=c.slice(s),s+=t[1].length),l=!1,!c&&/^ *$/.test(h)&&(i+=h+`
`,e=e.substring(h.length+1),f=!0),!f){let k=new RegExp(`^ {0,${Math.min(3,s-1)}}(?:[*+-]|\\d{1,9}[.)])`);for(;e&&(d=e.split(`
`,1)[0],c=d,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!k.test(c));){if(c.search(/[^ ]/)>=s||!c.trim())g+=`
`+c.slice(s);else if(!l)g+=`
`+c;else break;!l&&!c.trim()&&(l=!0),i+=d+`
`,e=e.substring(d.length+1)}}y.loose||(u?y.loose=!0:/\n *\n *$/.test(i)&&(u=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(g),r&&(o=r[0]!=="[ ] ",g=g.replace(/^\[[ xX]\] +/,""))),y.items.push({type:"list_item",raw:i,task:!!r,checked:o,loose:!1,text:g}),y.raw+=i}y.items[y.items.length-1].raw=i.trimRight(),y.items[y.items.length-1].text=g.trimRight(),y.raw=y.raw.trimRight();let x=y.items.length;for(a=0;a<x;a++){this.lexer.state.top=!1,y.items[a].tokens=this.lexer.blockTokens(y.items[a].text,[]);let k=y.items[a].tokens.filter(j=>j.type==="space"),L=k.every(j=>{let O=j.raw.split(""),W=0;for(let H of O)if(H===`
`&&(W+=1),W>1)return!0;return!1});!y.loose&&k.length&&L&&(y.loose=!0,y.items[a].loose=!0)}return y}}html(e){let t=this.rules.block.html.exec(e);if(t){let i={type:"html",raw:t[0],pre:!this.options.sanitizer&&(t[1]==="pre"||t[1]==="script"||t[1]==="style"),text:t[0]};return this.options.sanitize&&(i.type="paragraph",i.text=this.options.sanitizer?this.options.sanitizer(t[0]):ai(t[0]),i.tokens=[],this.lexer.inline(i.text,i.tokens)),i}}def(e){let t=this.rules.block.def.exec(e);if(t){t[3]&&(t[3]=t[3].substring(1,t[3].length-1));let i=t[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:i,raw:t[0],href:t[2],title:t[3]}}}table(e){let t=this.rules.block.table.exec(e);if(t){let i={type:"table",header:sq(t[1]).map(r=>({text:r})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split(`
`):[]};if(i.header.length===i.align.length){i.raw=t[0];let r=i.align.length,o,s,a,l;for(o=0;o<r;o++)/^ *-+: *$/.test(i.align[o])?i.align[o]="right":/^ *:-+: *$/.test(i.align[o])?i.align[o]="center":/^ *:-+ *$/.test(i.align[o])?i.align[o]="left":i.align[o]=null;for(r=i.rows.length,o=0;o<r;o++)i.rows[o]=sq(i.rows[o],i.header.length).map(u=>({text:u}));for(r=i.header.length,s=0;s<r;s++)i.header[s].tokens=[],this.lexer.inlineTokens(i.header[s].text,i.header[s].tokens);for(r=i.rows.length,s=0;s<r;s++)for(l=i.rows[s],a=0;a<l.length;a++)l[a].tokens=[],this.lexer.inlineTokens(l[a].text,l[a].tokens);return i}}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let i={type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:[]};return this.lexer.inline(i.text,i.tokens),i}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let i={type:"paragraph",raw:t[0],text:t[1].charAt(t[1].length-1)===`
`?t[1].slice(0,-1):t[1],tokens:[]};return this.lexer.inline(i.text,i.tokens),i}}text(e){let t=this.rules.block.text.exec(e);if(t){let i={type:"text",raw:t[0],text:t[0],tokens:[]};return this.lexer.inline(i.text,i.tokens),i}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:ai(t[1])}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):ai(t[0]):t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let i=t[2].trim();if(!this.options.pedantic&&/^</.test(i)){if(!/>$/.test(i))return;let s=Um(i.slice(0,-1),"\\");if((i.length-s.length)%2===0)return}else{let s=ipe(t[2],"()");if(s>-1){let l=(t[0].indexOf("!")===0?5:4)+t[1].length+s;t[2]=t[2].substring(0,s),t[0]=t[0].substring(0,l).trim(),t[3]=""}}let r=t[2],o="";if(this.options.pedantic){let s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r);s&&(r=s[1],o=s[3])}else o=t[3]?t[3].slice(1,-1):"";return r=r.trim(),/^</.test(r)&&(this.options.pedantic&&!/>$/.test(i)?r=r.slice(1):r=r.slice(1,-1)),lq(t,{href:r&&r.replace(this.rules.inline._escapes,"$1"),title:o&&o.replace(this.rules.inline._escapes,"$1")},t[0],this.lexer)}}reflink(e,t){let i;if((i=this.rules.inline.reflink.exec(e))||(i=this.rules.inline.nolink.exec(e))){let r=(i[2]||i[1]).replace(/\s+/g," ");if(r=t[r.toLowerCase()],!r||!r.href){let o=i[0].charAt(0);return{type:"text",raw:o,text:o}}return lq(i,r,i[0],this.lexer)}}emStrong(e,t,i=""){let r=this.rules.inline.emStrong.lDelim.exec(e);if(!r||r[3]&&i.match(/[\p{L}\p{N}]/u))return;let o=r[1]||r[2]||"";if(!o||o&&(i===""||this.rules.inline.punctuation.exec(i))){let s=r[0].length-1,a,l,u=s,c=0,h=r[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(h.lastIndex=0,t=t.slice(-1*e.length+s);(r=h.exec(t))!=null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a)continue;if(l=a.length,r[3]||r[4]){u+=l;continue}else if((r[5]||r[6])&&s%3&&!((s+l)%3)){c+=l;continue}if(u-=l,u>0)continue;if(l=Math.min(l,l+u+c),Math.min(s,l)%2){let g=e.slice(1,s+r.index+l);return{type:"em",raw:e.slice(0,s+r.index+l+1),text:g,tokens:this.lexer.inlineTokens(g,[])}}let d=e.slice(2,s+r.index+l-1);return{type:"strong",raw:e.slice(0,s+r.index+l+1),text:d,tokens:this.lexer.inlineTokens(d,[])}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let i=t[2].replace(/\n/g," "),r=/[^ ]/.test(i),o=/^ /.test(i)&&/ $/.test(i);return r&&o&&(i=i.substring(1,i.length-1)),i=ai(i,!0),{type:"codespan",raw:t[0],text:i}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2],[])}}autolink(e,t){let i=this.rules.inline.autolink.exec(e);if(i){let r,o;return i[2]==="@"?(r=ai(this.options.mangle?t(i[1]):i[1]),o="mailto:"+r):(r=ai(i[1]),o=r),{type:"link",raw:i[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}url(e,t){let i;if(i=this.rules.inline.url.exec(e)){let r,o;if(i[2]==="@")r=ai(this.options.mangle?t(i[0]):i[0]),o="mailto:"+r;else{let s;do s=i[0],i[0]=this.rules.inline._backpedal.exec(i[0])[0];while(s!==i[0]);r=ai(i[0]),i[1]==="www."?o="http://"+r:o=r}return{type:"link",raw:i[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(e,t){let i=this.rules.inline.text.exec(e);if(i){let r;return this.lexer.state.inRawBlock?r=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):ai(i[0]):i[0]:r=ai(this.options.smartypants?t(i[0]):i[0]),{type:"text",raw:i[0],text:r}}}},ce={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)( [^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?<?([^\s>]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Gm,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};ce._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;ce._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;ce.def=ut(ce.def).replace("label",ce._label).replace("title",ce._title).getRegex();ce.bullet=/(?:[*+-]|\d{1,9}[.)])/;ce.listItemStart=ut(/^( *)(bull) */).replace("bull",ce.bullet).getRegex();ce.list=ut(ce.list).replace(/bull/g,ce.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+ce.def.source+")").getRegex();ce._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";ce._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/;ce.html=ut(ce.html,"i").replace("comment",ce._comment).replace("tag",ce._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();ce.paragraph=ut(ce._paragraph).replace("hr",ce.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ce._tag).getRegex();ce.blockquote=ut(ce.blockquote).replace("paragraph",ce.paragraph).getRegex();ce.normal=Pr({},ce);ce.gfm=Pr({},ce.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"});ce.gfm.table=ut(ce.gfm.table).replace("hr",ce.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ce._tag).getRegex();ce.gfm.paragraph=ut(ce._paragraph).replace("hr",ce.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",ce.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ce._tag).getRegex();ce.pedantic=Pr({},ce.normal,{html:ut(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ce._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Gm,paragraph:ut(ce.normal._paragraph).replace("hr",ce.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",ce.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});ee={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Gm,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Gm,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};ee._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~";ee.punctuation=ut(ee.punctuation).replace(/punctuation/g,ee._punctuation).getRegex();ee.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g;ee.escapedEmSt=/\\\*|\\_/g;ee._comment=ut(ce._comment).replace("(?:-->|$)","-->").getRegex();ee.emStrong.lDelim=ut(ee.emStrong.lDelim).replace(/punct/g,ee._punctuation).getRegex();ee.emStrong.rDelimAst=ut(ee.emStrong.rDelimAst,"g").replace(/punct/g,ee._punctuation).getRegex();ee.emStrong.rDelimUnd=ut(ee.emStrong.rDelimUnd,"g").replace(/punct/g,ee._punctuation).getRegex();ee._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;ee._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;ee._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/;ee.autolink=ut(ee.autolink).replace("scheme",ee._scheme).replace("email",ee._email).getRegex();ee._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;ee.tag=ut(ee.tag).replace("comment",ee._comment).replace("attribute",ee._attribute).getRegex();ee._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;ee._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;ee._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;ee.link=ut(ee.link).replace("label",ee._label).replace("href",ee._href).replace("title",ee._title).getRegex();ee.reflink=ut(ee.reflink).replace("label",ee._label).replace("ref",ce._label).getRegex();ee.nolink=ut(ee.nolink).replace("ref",ce._label).getRegex();ee.reflinkSearch=ut(ee.reflinkSearch,"g").replace("reflink",ee.reflink).replace("nolink",ee.nolink).getRegex();ee.normal=Pr({},ee);ee.pedantic=Pr({},ee.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:ut(/^!?\[(label)\]\((.*?)\)/).replace("label",ee._label).getRegex(),reflink:ut(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ee._label).getRegex()});ee.gfm=Pr({},ee.normal,{escape:ut(ee.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/});ee.gfm.url=ut(ee.gfm.url,"i").replace("email",ee.gfm._extended_email).getRegex();ee.breaks=Pr({},ee.gfm,{br:ut(ee.br).replace("{2,}","*").getRegex(),text:ut(ee.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});Kr=class{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||uc,this.options.tokenizer=this.options.tokenizer||new Km,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={block:ce.normal,inline:ee.normal};this.options.pedantic?(t.block=ce.pedantic,t.inline=ee.pedantic):this.options.gfm&&(t.block=ce.gfm,this.options.breaks?t.inline=ee.breaks:t.inline=ee.gfm),this.tokenizer.rules=t}static get rules(){return{block:ce,inline:ee}}static lex(e,t){return new Kr(t).lex(e)}static lexInline(e,t){return new Kr(t).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(e,this.tokens);let t;for(;t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens}blockTokens(e,t=[]){this.options.pedantic&&(e=e.replace(/^ +$/gm,""));let i,r,o,s;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(a=>(i=a.call({lexer:this},e,t))?(e=e.substring(i.raw.length),t.push(i),!0):!1))){if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length),i.raw.length===1&&t.length>0?t[t.length-1].raw+=`
`:t.push(i);continue}if(i=this.tokenizer.code(e)){e=e.substring(i.raw.length),r=t[t.length-1],r&&(r.type==="paragraph"||r.type==="text")?(r.raw+=`
`+i.raw,r.text+=`
`+i.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(i);continue}if(i=this.tokenizer.fences(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.heading(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.hr(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.blockquote(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.list(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.html(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.def(e)){e=e.substring(i.raw.length),r=t[t.length-1],r&&(r.type==="paragraph"||r.type==="text")?(r.raw+=`
`+i.raw,r.text+=`
`+i.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title});continue}if(i=this.tokenizer.table(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.lheading(e)){e=e.substring(i.raw.length),t.push(i);continue}if(o=e,this.options.extensions&&this.options.extensions.startBlock){let a=1/0,l=e.slice(1),u;this.options.extensions.startBlock.forEach(function(c){u=c.call({lexer:this},l),typeof u=="number"&&u>=0&&(a=Math.min(a,u))}),a<1/0&&a>=0&&(o=e.substring(0,a+1))}if(this.state.top&&(i=this.tokenizer.paragraph(o))){r=t[t.length-1],s&&r.type==="paragraph"?(r.raw+=`
`+i.raw,r.text+=`
`+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(i),s=o.length!==e.length,e=e.substring(i.raw.length);continue}if(i=this.tokenizer.text(e)){e=e.substring(i.raw.length),r=t[t.length-1],r&&r.type==="text"?(r.raw+=`
`+i.raw,r.text+=`
`+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(i);continue}if(e){let a="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,t}inline(e,t){this.inlineQueue.push({src:e,tokens:t})}inlineTokens(e,t=[]){let i,r,o,s=e,a,l,u;if(this.tokens.links){let c=Object.keys(this.tokens.links);if(c.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)c.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,a.index)+"["+aq("a",a[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(a=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)s=s.slice(0,a.index)+"["+aq("a",a[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(a=this.tokenizer.rules.inline.escapedEmSt.exec(s))!=null;)s=s.slice(0,a.index)+"++"+s.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(l||(u=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(c=>(i=c.call({lexer:this},e,t))?(e=e.substring(i.raw.length),t.push(i),!0):!1))){if(i=this.tokenizer.escape(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.tag(e)){e=e.substring(i.raw.length),r=t[t.length-1],r&&i.type==="text"&&r.type==="text"?(r.raw+=i.raw,r.text+=i.text):t.push(i);continue}if(i=this.tokenizer.link(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(i.raw.length),r=t[t.length-1],r&&i.type==="text"&&r.type==="text"?(r.raw+=i.raw,r.text+=i.text):t.push(i);continue}if(i=this.tokenizer.emStrong(e,s,u)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.codespan(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.br(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.del(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.autolink(e,uq)){e=e.substring(i.raw.length),t.push(i);continue}if(!this.state.inLink&&(i=this.tokenizer.url(e,uq))){e=e.substring(i.raw.length),t.push(i);continue}if(o=e,this.options.extensions&&this.options.extensions.startInline){let c=1/0,h=e.slice(1),d;this.options.extensions.startInline.forEach(function(g){d=g.call({lexer:this},h),typeof d=="number"&&d>=0&&(c=Math.min(c,d))}),c<1/0&&c>=0&&(o=e.substring(0,c+1))}if(i=this.tokenizer.inlineText(o,rpe)){e=e.substring(i.raw.length),i.raw.slice(-1)!=="_"&&(u=i.raw.slice(-1)),l=!0,r=t[t.length-1],r&&r.type==="text"?(r.raw+=i.raw,r.text+=i.text):t.push(i);continue}if(e){let c="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return t}},zm=class{constructor(e){this.options=e||uc}code(e,t,i){let r=(t||"").match(/\S*/)[0];if(this.options.highlight){let o=this.options.highlight(e,r);o!=null&&o!==e&&(i=!0,e=o)}return e=e.replace(/\n$/,"")+`
`,r?'<pre><code class="'+this.options.langPrefix+ai(r,!0)+'">'+(i?e:ai(e,!0))+`</code></pre>
`:"<pre><code>"+(i?e:ai(e,!0))+`</code></pre>
`}blockquote(e){return`<blockquote>
`+e+`</blockquote>
`}html(e){return e}heading(e,t,i,r){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+r.slug(i)+'">'+e+"</h"+t+`>
`:"<h"+t+">"+e+"</h"+t+`>
`}hr(){return this.options.xhtml?`<hr/>
`:`<hr>
`}list(e,t,i){let r=t?"ol":"ul",o=t&&i!==1?' start="'+i+'"':"";return"<"+r+o+`>
`+e+"</"+r+`>
`}listitem(e){return"<li>"+e+`</li>
`}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return"<p>"+e+`</p>
`}table(e,t){return t&&(t="<tbody>"+t+"</tbody>"),`<table>
<thead>
`+e+`</thead>
`+t+`</table>
`}tablerow(e){return`<tr>
`+e+`</tr>
`}tablecell(e,t){let i=t.header?"th":"td";return(t.align?"<"+i+' align="'+t.align+'">':"<"+i+">")+e+"</"+i+`>
`}strong(e){return"<strong>"+e+"</strong>"}em(e){return"<em>"+e+"</em>"}codespan(e){return"<code>"+e+"</code>"}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return"<del>"+e+"</del>"}link(e,t,i){if(e=oq(this.options.sanitize,this.options.baseUrl,e),e===null)return i;let r='<a href="'+ai(e)+'"';return t&&(r+=' title="'+t+'"'),r+=">"+i+"</a>",r}image(e,t,i){if(e=oq(this.options.sanitize,this.options.baseUrl,e),e===null)return i;let r='<img src="'+e+'" alt="'+i+'"';return t&&(r+=' title="'+t+'"'),r+=this.options.xhtml?"/>":">",r}text(e){return e}},xk=class{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,i){return""+i}image(e,t,i){return""+i}br(){return""}},Ck=class{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let i=e,r=0;if(this.seen.hasOwnProperty(i)){r=this.seen[e];do r++,i=e+"-"+r;while(this.seen.hasOwnProperty(i))}return t||(this.seen[e]=r,this.seen[i]=0),i}slug(e,t={}){let i=this.serialize(e);return this.getNextSafeSlug(i,t.dryrun)}},zr=class{constructor(e){this.options=e||uc,this.options.renderer=this.options.renderer||new zm,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new xk,this.slugger=new Ck}static parse(e,t){return new zr(t).parse(e)}static parseInline(e,t){return new zr(t).parseInline(e)}parse(e,t=!0){let i="",r,o,s,a,l,u,c,h,d,g,f,p,b,y,w,x,k,L,j,O=e.length;for(r=0;r<O;r++){if(g=e[r],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[g.type]&&(j=this.options.extensions.renderers[g.type].call({parser:this},g),j!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(g.type))){i+=j||"";continue}switch(g.type){case"space":continue;case"hr":{i+=this.renderer.hr();continue}case"heading":{i+=this.renderer.heading(this.parseInline(g.tokens),g.depth,hq(this.parseInline(g.tokens,this.textRenderer)),this.slugger);continue}case"code":{i+=this.renderer.code(g.text,g.lang,g.escaped);continue}case"table":{for(h="",c="",a=g.header.length,o=0;o<a;o++)c+=this.renderer.tablecell(this.parseInline(g.header[o].tokens),{header:!0,align:g.align[o]});for(h+=this.renderer.tablerow(c),d="",a=g.rows.length,o=0;o<a;o++){for(u=g.rows[o],c="",l=u.length,s=0;s<l;s++)c+=this.renderer.tablecell(this.parseInline(u[s].tokens),{header:!1,align:g.align[s]});d+=this.renderer.tablerow(c)}i+=this.renderer.table(h,d);continue}case"blockquote":{d=this.parse(g.tokens),i+=this.renderer.blockquote(d);continue}case"list":{for(f=g.ordered,p=g.start,b=g.loose,a=g.items.length,d="",o=0;o<a;o++)w=g.items[o],x=w.checked,k=w.task,y="",w.task&&(L=this.renderer.checkbox(x),b?w.tokens.length>0&&w.tokens[0].type==="paragraph"?(w.tokens[0].text=L+" "+w.tokens[0].text,w.tokens[0].tokens&&w.tokens[0].tokens.length>0&&w.tokens[0].tokens[0].type==="text"&&(w.tokens[0].tokens[0].text=L+" "+w.tokens[0].tokens[0].text)):w.tokens.unshift({type:"text",text:L}):y+=L),y+=this.parse(w.tokens,b),d+=this.renderer.listitem(y,k,x);i+=this.renderer.list(d,f,p);continue}case"html":{i+=this.renderer.html(g.text);continue}case"paragraph":{i+=this.renderer.paragraph(this.parseInline(g.tokens));continue}case"text":{for(d=g.tokens?this.parseInline(g.tokens):g.text;r+1<O&&e[r+1].type==="text";)g=e[++r],d+=`
`+(g.tokens?this.parseInline(g.tokens):g.text);i+=t?this.renderer.paragraph(d):d;continue}default:{let W='Token with "'+g.type+'" type was not found.';if(this.options.silent){console.error(W);return}else throw new Error(W)}}}return i}parseInline(e,t){t=t||this.renderer;let i="",r,o,s,a=e.length;for(r=0;r<a;r++){if(o=e[r],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[o.type]&&(s=this.options.extensions.renderers[o.type].call({parser:this},o),s!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type))){i+=s||"";continue}switch(o.type){case"escape":{i+=t.text(o.text);break}case"html":{i+=t.html(o.text);break}case"link":{i+=t.link(o.href,o.title,this.parseInline(o.tokens,t));break}case"image":{i+=t.image(o.href,o.title,o.text);break}case"strong":{i+=t.strong(this.parseInline(o.tokens,t));break}case"em":{i+=t.em(this.parseInline(o.tokens,t));break}case"codespan":{i+=t.codespan(o.text);break}case"br":{i+=t.br();break}case"del":{i+=t.del(this.parseInline(o.tokens,t));break}case"text":{i+=t.text(o.text);break}default:{let l='Token with "'+o.type+'" type was not found.';if(this.options.silent){console.error(l);return}else throw new Error(l)}}}return i}};ge.options=ge.setOptions=function(n){return Pr(ge.defaults,n),Yfe(ge.defaults),ge};ge.getDefaults=cq;ge.defaults=uc;ge.use=function(...n){let e=Pr({},...n),t=ge.defaults.extensions||{renderers:{},childTokens:{}},i;n.forEach(r=>{if(r.extensions&&(i=!0,r.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if(o.renderer){let s=t.renderers?t.renderers[o.name]:null;s?t.renderers[o.name]=function(...a){let l=o.renderer.apply(this,a);return l===!1&&(l=s.apply(this,a)),l}:t.renderers[o.name]=o.renderer}if(o.tokenizer){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");t[o.level]?t[o.level].unshift(o.tokenizer):t[o.level]=[o.tokenizer],o.start&&(o.level==="block"?t.startBlock?t.startBlock.push(o.start):t.startBlock=[o.start]:o.level==="inline"&&(t.startInline?t.startInline.push(o.start):t.startInline=[o.start]))}o.childTokens&&(t.childTokens[o.name]=o.childTokens)})),r.renderer){let o=ge.defaults.renderer||new zm;for(let s in r.renderer){let a=o[s];o[s]=(...l)=>{let u=r.renderer[s].apply(o,l);return u===!1&&(u=a.apply(o,l)),u}}e.renderer=o}if(r.tokenizer){let o=ge.defaults.tokenizer||new Km;for(let s in r.tokenizer){let a=o[s];o[s]=(...l)=>{let u=r.tokenizer[s].apply(o,l);return u===!1&&(u=a.apply(o,l)),u}}e.tokenizer=o}if(r.walkTokens){let o=ge.defaults.walkTokens;e.walkTokens=function(s){r.walkTokens.call(this,s),o&&o.call(this,s)}}i&&(e.extensions=t),ge.setOptions(e)})};ge.walkTokens=function(n,e){for(let t of n)switch(e.call(ge,t),t.type){case"table":{for(let i of t.header)ge.walkTokens(i.tokens,e);for(let i of t.rows)for(let r of i)ge.walkTokens(r.tokens,e);break}case"list":{ge.walkTokens(t.items,e);break}default:ge.defaults.extensions&&ge.defaults.extensions.childTokens&&ge.defaults.extensions.childTokens[t.type]?ge.defaults.extensions.childTokens[t.type].forEach(function(i){ge.walkTokens(t[i],e)}):t.tokens&&ge.walkTokens(t.tokens,e)}};ge.parseInline=function(n,e){if(typeof n>"u"||n===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof n!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected");e=Pr({},ge.defaults,e||{}),dq(e);try{let t=Kr.lexInline(n,e);return e.walkTokens&&ge.walkTokens(t,e.walkTokens),zr.parseInline(t,e)}catch(t){if(t.message+=`
Please report this to https://github.com/markedjs/marked.`,e.silent)return"<p>An error occurred:</p><pre>"+ai(t.message+"",!0)+"</pre>";throw t}};ge.Parser=zr;ge.parser=zr.parse;ge.Renderer=zm;ge.TextRenderer=xk;ge.Lexer=Kr;ge.lexer=Kr.lex;ge.Tokenizer=Km;ge.Slugger=Ck;ge.parse=ge;uPe=ge.options,cPe=ge.setOptions,hPe=ge.use,dPe=ge.walkTokens,gPe=ge.parseInline,fPe=zr.parse,pPe=Kr.lex});var bq=m((bPe,mq)=>{var pq={};mq.exports=pq;var fq={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],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,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(fq).forEach(function(n){var e=fq[n],t=pq[n]=[];t.open="\x1B["+e[0]+"m",t.close="\x1B["+e[1]+"m"})});var vq=m((yPe,yq)=>{var ng=process.argv;yq.exports=function(){return ng.indexOf("--no-color")!==-1||ng.indexOf("--color=false")!==-1?!1:ng.indexOf("--color")!==-1||ng.indexOf("--color=true")!==-1||ng.indexOf("--color=always")!==-1?!0:process.stdout&&!process.stdout.isTTY?!1:process.platform==="win32"||"COLORTERM"in process.env?!0:process.env.TERM==="dumb"?!1:!!/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(process.env.TERM)}()});var xq=m((vPe,wq)=>{wq.exports=function(e,t){var i="";e=e||"Run the trap, drop the bass",e=e.split("");var r={a:["@","\u0104","\u023A","\u0245","\u0394","\u039B","\u0414"],b:["\xDF","\u0181","\u0243","\u026E","\u03B2","\u0E3F"],c:["\xA9","\u023B","\u03FE"],d:["\xD0","\u018A","\u0500","\u0501","\u0502","\u0503"],e:["\xCB","\u0115","\u018E","\u0258","\u03A3","\u03BE","\u04BC","\u0A6C"],f:["\u04FA"],g:["\u0262"],h:["\u0126","\u0195","\u04A2","\u04BA","\u04C7","\u050A"],i:["\u0F0F"],j:["\u0134"],k:["\u0138","\u04A0","\u04C3","\u051E"],l:["\u0139"],m:["\u028D","\u04CD","\u04CE","\u0520","\u0521","\u0D69"],n:["\xD1","\u014B","\u019D","\u0376","\u03A0","\u048A"],o:["\xD8","\xF5","\xF8","\u01FE","\u0298","\u047A","\u05DD","\u06DD","\u0E4F"],p:["\u01F7","\u048E"],q:["\u09CD"],r:["\xAE","\u01A6","\u0210","\u024C","\u0280","\u042F"],s:["\xA7","\u03DE","\u03DF","\u03E8"],t:["\u0141","\u0166","\u0373"],u:["\u01B1","\u054D"],v:["\u05D8"],w:["\u0428","\u0460","\u047C","\u0D70"],x:["\u04B2","\u04FE","\u04FC","\u04FD"],y:["\xA5","\u04B0","\u04CB"],z:["\u01B5","\u0240"]};return e.forEach(function(o){o=o.toLowerCase();var s=r[o]||[" "],a=Math.floor(Math.random()*s.length);typeof r[o]<"u"?i+=r[o][a]:i+=o}),i}});var Sq=m((wPe,Cq)=>{Cq.exports=function(e,t){e=e||" he is here ";var i={up:["\u030D","\u030E","\u0304","\u0305","\u033F","\u0311","\u0306","\u0310","\u0352","\u0357","\u0351","\u0307","\u0308","\u030A","\u0342","\u0313","\u0308","\u034A","\u034B","\u034C","\u0303","\u0302","\u030C","\u0350","\u0300","\u0301","\u030B","\u030F","\u0312","\u0313","\u0314","\u033D","\u0309","\u0363","\u0364","\u0365","\u0366","\u0367","\u0368","\u0369","\u036A","\u036B","\u036C","\u036D","\u036E","\u036F","\u033E","\u035B","\u0346","\u031A"],down:["\u0316","\u0317","\u0318","\u0319","\u031C","\u031D","\u031E","\u031F","\u0320","\u0324","\u0325","\u0326","\u0329","\u032A","\u032B","\u032C","\u032D","\u032E","\u032F","\u0330","\u0331","\u0332","\u0333","\u0339","\u033A","\u033B","\u033C","\u0345","\u0347","\u0348","\u0349","\u034D","\u034E","\u0353","\u0354","\u0355","\u0356","\u0359","\u035A","\u0323"],mid:["\u0315","\u031B","\u0300","\u0301","\u0358","\u0321","\u0322","\u0327","\u0328","\u0334","\u0335","\u0336","\u035C","\u035D","\u035E","\u035F","\u0360","\u0362","\u0338","\u0337","\u0361"," \u0489"]},r=[].concat(i.up,i.down,i.mid),o={};function s(u){var c=Math.floor(Math.random()*u);return c}function a(u){var c=!1;return r.filter(function(h){c=h===u}),c}function l(u,c){var h="",d,g;c=c||{},c.up=c.up||!0,c.mid=c.mid||!0,c.down=c.down||!0,c.size=c.size||"maxi",u=u.split("");for(g in u)if(!a(g)){switch(h=h+u[g],d={up:0,down:0,mid:0},c.size){case"mini":d.up=s(8),d.min=s(2),d.down=s(8);break;case"maxi":d.up=s(16)+3,d.min=s(4)+1,d.down=s(64)+3;break;default:d.up=s(8)+1,d.mid=s(6)/2,d.down=s(8)+1;break}var f=["up","mid","down"];for(var p in f)for(var b=f[p],y=0;y<=d[b];y++)c[b]&&(h=h+i[b][s(i[b].length)])}return h}return l(e)}});var kq=m((xPe,Tq)=>{var Sk=cc();Tq.exports=function(){return function(n,e,t){if(n===" ")return n;switch(e%3){case 0:return Sk.red(n);case 1:return Sk.white(n);case 2:return Sk.blue(n)}}}()});var Eq=m((CPe,Dq)=>{var ope=cc();Dq.exports=function(n,e,t){return e%2===0?n:ope.inverse(n)}});var Pq=m((SPe,_q)=>{var spe=cc();_q.exports=function(){var n=["red","yellow","green","blue","magenta"];return function(e,t,i){return e===" "?e:spe[n[t++%n.length]](e)}}()});var Lq=m((TPe,Rq)=>{var ape=cc();Rq.exports=function(){var n=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta"];return function(e,t,i){return e===" "?e:ape[n[Math.round(Math.random()*(n.length-1))]](e)}}()});var cc=m((DPe,Aq)=>{var it={};Aq.exports=it;it.themes={};var Js=it.styles=bq(),Fq=Object.defineProperties;it.supportsColor=vq();typeof it.enabled>"u"&&(it.enabled=it.supportsColor);it.stripColors=it.strip=function(n){return(""+n).replace(/\x1B\[\d+m/g,"")};var kPe=it.stylize=function(e,t){return Js[t].open+e+Js[t].close},lpe=/[|\\{}()[\]^$+*?.]/g,upe=function(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(lpe,"\\$&")};function Oq(n){var e=function t(){return hpe.apply(t,arguments)};return e._styles=n,e.__proto__=cpe,e}var Mq=function(){var n={};return Js.grey=Js.gray,Object.keys(Js).forEach(function(e){Js[e].closeRe=new RegExp(upe(Js[e].close),"g"),n[e]={get:function(){return Oq(this._styles.concat(e))}}}),n}(),cpe=Fq(function(){},Mq);function hpe(){var n=arguments,e=n.length,t=e!==0&&String(arguments[0]);if(e>1)for(var i=1;i<e;i++)t+=" "+n[i];if(!it.enabled||!t)return t;for(var r=this._styles,o=r.length;o--;){var s=Js[r[o]];t=s.open+t.replace(s.closeRe,s.open)+s.close}return t}function Iq(n){for(var e in n)(function(t){it[t]=function(i){return it[n[t]](i)}})(e)}it.setTheme=function(n){if(typeof n=="string")try{return it.themes[n]=require(n),Iq(it.themes[n]),it.themes[n]}catch(e){return console.log(e),e}else Iq(n)};function dpe(){var n={};return Object.keys(Mq).forEach(function(e){n[e]={get:function(){return Oq([e])}}}),n}var gpe=function(e,t){var i=t.split(""),r=0;return i=i.map(e),i.join("")};it.trap=xq();it.zalgo=Sq();it.maps={};it.maps.america=kq();it.maps.zebra=Eq();it.maps.rainbow=Pq();it.maps.random=Lq();for(jq in it.maps)(function(n){it[n]=function(e){return gpe(it.maps[n],e)}})(jq);var jq;Fq(it,dpe())});var Hq=m((EPe,Nq)=>{var fpe=cc();Nq.exports=fpe});var Bq=m(hc=>{hc.repeat=function(n,e){return Array(e+1).join(n)};hc.pad=function(n,e,t,i){if(e+1>=n.length)switch(i){case"left":n=Array(e+1-n.length).join(t)+n;break;case"both":var r=Math.ceil((padlen=e-n.length)/2),o=padlen-r;n=Array(o+1).join(t)+n+Array(r+1).join(t);break;default:n=n+Array(e+1-n.length).join(t)}return n};hc.truncate=function(n,e,t){return t=t||"\u2026",n.length>=e?n.substr(0,e-t.length)+t:n};function qq(n,e){for(var t in e)t==="__proto__"||t==="constructor"||t==="prototype"||(e[t]&&e[t].constructor&&e[t].constructor===Object?(n[t]=n[t]||{},qq(n[t],e[t])):n[t]=e[t]);return n}hc.options=qq;hc.strlen=function(n){var e=/\u001b\[(?:\d*;){0,5}\d*m/g,t=(""+n).replace(e,""),i=t.split(`
`);return i.reduce(function(r,o){return o.length>r?o.length:r},0)}});var Yq=m((PPe,kk)=>{var ppe=Hq(),cl=Bq(),Tk=cl.repeat,mpe=cl.truncate,bpe=cl.pad;function rg(n){this.options=cl.options({chars:{top:"\u2500","top-mid":"\u252C","top-left":"\u250C","top-right":"\u2510",bottom:"\u2500","bottom-mid":"\u2534","bottom-left":"\u2514","bottom-right":"\u2518",left:"\u2502","left-mid":"\u251C",mid:"\u2500","mid-mid":"\u253C",right:"\u2502","right-mid":"\u2524",middle:"\u2502"},truncate:"\u2026",colWidths:[],colAligns:[],style:{"padding-left":1,"padding-right":1,head:["red"],border:["grey"],compact:!1},head:[]},n)}rg.prototype.__proto__=Array.prototype;rg.prototype.__defineGetter__("width",function(){var n=this.toString().split(`
`);return n.length?n[0].length:0});rg.prototype.render;rg.prototype.toString=function(){var n="",e=this.options,t=e.style,i=e.head,r=e.chars,o=e.truncate,s=e.colWidths||new Array(this.head.length),a=0;if(!i.length&&!this.length)return"";if(!s.length){var l=this.slice(0);i.length&&(l=l.concat([i])),l.forEach(function(y){if(typeof y=="object"&&y.length)u(y);else{var w=Object.keys(y)[0],x=y[w];s[0]=Math.max(s[0]||0,c(w)||0),typeof x=="object"&&x.length?u(x,1):s[1]=Math.max(s[1]||0,c(x)||0)}})}a=(s.length==1?s[0]:s.reduce(function(y,w){return y+w}))+s.length+1;function u(y,x){var x=x||0;y.forEach(function(k,L){s[L+x]=Math.max(s[L+x]||0,c(k)||0)})}function c(y){return typeof y=="object"&&y.width!=null?y.width:(typeof y=="object"?cl.strlen(y.text):cl.strlen(y))+(t["padding-left"]||0)+(t["padding-right"]||0)}function h(j,w,x,k){var L=0,j=w+Tk(j,a-2)+x;return s.forEach(function(O,W){W!=s.length-1&&(L+=O+1,j=j.substr(0,L)+k+j.substr(L+1))}),f(e.style.border,j)}function d(){var y=h(r.top,r["top-left"]||r.top,r["top-right"]||r.top,r["top-mid"]);y&&(n+=y+`
`)}function g(y,w){var x=[],k=0;if(!Array.isArray(y)&&typeof y=="object"){var L=Object.keys(y)[0],j=y[L],O=!0;Array.isArray(j)?(y=j,y.unshift(L)):y=[L,j]}y.forEach(function(N,I){var A=N.toString().split(`
`).reduce(function(K,ae){return K.push(p(ae,I)),K},[]),Z=A.length;Z>k&&(k=Z),x.push({contents:A,height:Z})});var W=new Array(k);x.forEach(function(N,I){N.contents.forEach(function(K,ae){W[ae]||(W[ae]=[]),(w||O&&I===0&&e.style.head)&&(K=f(e.style.head,K)),W[ae].push(K)});for(var A=N.height,Z=k;A<Z;A++)W[A]||(W[A]=[]),W[A].push(p("",I))});var H="";return W.forEach(function(N,I){H.length>0&&(H+=`
`+f(e.style.border,r.left)),H+=N.join(f(e.style.border,r.middle))+f(e.style.border,r.right)}),f(e.style.border,r.left)+H}function f(y,w){return w?(y.forEach(function(x){w=ppe[x](w)}),w):""}function p(x,w){var x=String(typeof x=="object"&&x.text?x.text:x),k=cl.strlen(x),L=s[w]-(t["padding-left"]||0)-(t["padding-right"]||0),j=e.colAligns[w]||"left";return Tk(" ",t["padding-left"]||0)+(k==L?x:k<L?bpe(x,L+(x.length-k)," ",j=="left"?"right":j=="middle"?"both":"left"):o?mpe(x,L,o):x)+Tk(" ",t["padding-right"]||0)}i.length&&(d(),n+=g(i,t.head)+`
`),this.length&&this.forEach(function(y,w){if(!i.length&&w==0)d();else if(!t.compact||w<!!i.length||y.length==0){var x=h(r.mid,r["left-mid"],r["right-mid"],r["mid-mid"]);x&&(n+=x+`
`)}y.hasOwnProperty("length")&&!y.length||(n+=g(y)+`
`)});var b=h(r.bottom,r["bottom-left"]||r.bottom,r["bottom-right"]||r.bottom,r["bottom-mid"]);return b?n+=b:n=n.slice(0,-1),n};kk.exports=rg;kk.exports.version="0.0.1"});var $q=m((RPe,Jq)=>{"use strict";var Wq=(n=0)=>e=>`\x1B[${38+n};5;${e}m`,Zq=(n=0)=>(e,t,i)=>`\x1B[${38+n};2;${e};${t};${i}m`;function ype(){let n=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[t,i]of Object.entries(e)){for(let[r,o]of Object.entries(i))e[r]={open:`\x1B[${o[0]}m`,close:`\x1B[${o[1]}m`},i[r]=e[r],n.set(o[0],o[1]);Object.defineProperty(e,t,{value:i,enumerable:!1})}return Object.defineProperty(e,"codes",{value:n,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi256=Wq(),e.color.ansi16m=Zq(),e.bgColor.ansi256=Wq(10),e.bgColor.ansi16m=Zq(10),Object.defineProperties(e,{rgbToAnsi256:{value:(t,i,r)=>t===i&&i===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(i/255*5)+Math.round(r/255*5),enumerable:!1},hexToRgb:{value:t=>{let i=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(t.toString(16));if(!i)return[0,0,0];let{colorString:r}=i.groups;r.length===3&&(r=r.split("").map(s=>s+s).join(""));let o=Number.parseInt(r,16);return[o>>16&255,o>>8&255,o&255]},enumerable:!1},hexToAnsi256:{value:t=>e.rgbToAnsi256(...e.hexToRgb(t)),enumerable:!1}}),e}Object.defineProperty(Jq,"exports",{enumerable:!0,get:ype})});function Xq(n){return`${vi.default.gray.open}${n}${vi.default.gray.close}`}function Dk(n){return`${vi.default.magenta.open}${n}${vi.default.magenta.close}`}function Uq(n){return`${vi.default.bold.open}${n}${vi.default.bold.close}`}function Ek(n){return`${vi.default.underline.open}${n}${vi.default.underline.close}`}function Gq(n){return`${vi.default.strikethrough.open}${n}${vi.default.strikethrough.close}`}function Kq(n){return`${vi.default.italic.open}${n}${vi.default.italic.close}`}function zq(n){return`${vi.default.yellow.open}${n}${vi.default.yellow.close}`}function _k(n){return`${vi.default.blue.open}${n}${vi.default.blue.close}`}var vi,Qq=P(()=>{"use strict";vi=S($q())});function Rr(n){return n}function Spe(n){return Xq(n.replace(/(<([^>]+)>)/ig,""))}function Vq(n,e){return e?n.replace(Cpe,/\n/g):n}function kpe(n,e){return e.replace(/(^|\n)(.+)/g,"$1"+n+"$2")}function Dpe(n,e){return e&&n+e.split(`
`).join(`
`+n)}function Ppe(n,e){let t=new RegExp("(\\S(?: | )?)((?:"+e+")+)("+oB+"(?:.*)+)$","gm");return n.replace(t,`$1
`+e+"$2$3")}function aB(n){return" ".repeat(n.length)}function Rpe(n,e){return sB(e,n)?e:aB(Lk)+e}function Lpe(n,e){let t=Rpe.bind(null,e);return n.split(`
`).filter(Rr).map(t).join(`
`)}function Ipe(n,e,t){return sB(e,n)?{num:t+1,line:e.replace(Lk,eB(t+1))}:{num:t,line:aB(eB(t))+e}}function jpe(n,e){let t=Ipe.bind(null,e),i=0;return n.split(`
`).filter(Rr).map(r=>{let o=t(r,i);return i=o.num,o.line}).join(`
`)}function Fpe(n,e,t){return n=n.trim(),n=e?jpe(n,t):Lpe(n,t),n}function og(n){return n+`
`}function Ope(n){return n.replace(xpe,":")}function tB(n,e=null){if(!n)return[];e=e||Rr;let t=e(n).split(`
`),i=[];return t.forEach(function(r){if(!r)return;let o=r.replace(wpe,"").split(nB);i.push(o.splice(0,o.length-1))}),i}function lB(n){return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Mpe(n){return n.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#39;/g,"'")}var iB,LPe,nB,Rk,wpe,rB,xpe,Cpe,Tpe,Epe,_pe,oB,sB,Lk,eB,Pk,uB,Ik,cB=P(()=>{"use strict";iB=S(Yq());Qq();LPe=Y()("markdown-renderer"),nB="^*||*^",Rk="*|*|*|*",wpe=new RegExp(lB(Rk),"g"),rB="*#COLON|*",xpe=new RegExp(lB(rB),"g"),Cpe="\r";Tpe={code:Rr,blockquote:Rr,html:Spe,heading:Dk,firstHeading:Dk,hr:Rr,listitem:Rr,list:Fpe,table:Rr,paragraph:Rr,strong:Uq,em:Kq,codespan:zq,del:Gq,link:Ek,href:Ek,text:Rr,unescape:!0,emoji:!1,width:80,showSectionPrefix:!0,tab:2,tableOptions:{}};Epe="\\*",_pe="\\d+\\.",oB="(?:"+[Epe,_pe].join("|")+")";sB=function(n,e){return n.match("^(?:"+e+")*"+oB)};Lk="* ";eB=function(n){return n+". "};Pk=new Map,uB=class{constructor(e={},t={}){this.options=e;this.highlightOptions=t;this.o=Object.assign({},Tpe,e),this.tab=" ",this.tableSettings=this.o.tableOptions,this.unescape=this.o.unescape?Mpe:Rr,this.highlightOptions=t||{},this.transform=this.compose(Ope,this.unescape)}text(e){return this.o.text(e)}code(e,t,i){return"``` "+t+`
`+e+"\n```\n"}blockquote(e){return og(this.o.blockquote(Dpe(this.tab,e.trim())))}html(e){return this.o.html(e)}heading(e,t,i){return e=this.transform(e),e=(this.o.showSectionPrefix?new Array(t+1).join("#")+" ":"")+e,og(t===1?this.o.firstHeading(e):this.o.heading(e))}hr(){return`\u2500\u2500\u2500
`}list(e,t){return e=this.o.list(e,t,this.tab),og(Ppe(kpe(this.tab,e),this.tab))}listitem(e){let t=this.compose(this.o.listitem,this.transform);return e.indexOf(`
`)!==-1&&(e=e.trim()),`
`+Lk+t(e)}checkbox(e){return"["+(e?"X":" ")+"] "}paragraph(e){return e=this.compose(this.o.paragraph,this.transform)(e),og(e)}table(e,t){let i=new iB.default(Object.assign({},{head:tB(e)[0]},this.tableSettings));return tB(t,this.transform).forEach(function(r){i.push(r)}),og(this.o.table(i.toString()))}tablerow(e){return Rk+e+Rk+`
`}tablecell(e,t){return e+nB}strong(e){return this.o.strong(e)}em(e){return e=Vq(e,this.o.reflowText),this.o.em(e)}codespan(e){return e=Vq(e,this.o.reflowText),this.o.codespan(e.replace(/:/g,rB))}br(){return`
`}del(e){return this.o.del(e)}link(e,t,i){let r;try{r=decodeURIComponent(unescape(e)).replace(/[^\w:]/g,"").toLowerCase()}catch{return""}if(r.startsWith("javascript:"))return"";if(i&&e&&i!=e&&Pk.set(i,e),i&&i!=e)return _k(i);let o=this.o.href(e);return this.o.link(o)}image(e,t,i){let r="!["+i;return t&&(r+=" \u2013 "+t),r+"]("+e+")"}compose(...e){return(...t)=>{for(let i=e.length;i-- >0;)t=[e[i].apply(this,t)];return t[0]}}static getLinks(){let e=[];for(let[t,i]of Pk.entries())e.push(`${_k(t)}: ${i}`);return Pk.clear(),e}},Ik=uB});function dc(n,e=!1){let t=sg(n),i=[],r="";for(let o of t){if(!o.text)continue;let{foreground:s,background:a}=o,l=V(r),u=[l,l+V(o.text)];if(s&&a){let c=`CocList${cn(s)}${cn(a)}`;i.push({span:u,hlGroup:c})}else if(s){let c;e?s=="yellow"?c="CocMarkdownCode":s=="blue"?c="CocMarkdownLink":s=="magenta"?c="CocMarkdownHeader":c=`CocListFg${cn(s)}`:c=`CocListFg${cn(s)}`,i.push({span:u,hlGroup:c})}else if(a){let c=`CocListBg${cn(a)}`;i.push({span:u,hlGroup:c})}o.bold?i.push({span:u,hlGroup:"CocBold"}):o.italic?i.push({span:u,hlGroup:"CocItalic"}):o.underline?i.push({span:u,hlGroup:"CocUnderline"}):o.strikethrough&&i.push({span:u,hlGroup:"CocStrikeThrough"}),r=r+o.text}return{line:r,highlights:i}}function sg(n){let e=null,t=null,i="",r=[],o=[],s={},a;a=()=>{let l,u;i.length?i=i.substr(0,i.length-1):o.length&&(l=o.length-1,u=o[l].text,u.length===1?o.pop():o[l].text=u.substr(0,u.length-1))};for(let l=0;l<n.length;l++){if(e!=null){e=="\x1B"&&n[l]=="["?(i&&(s.text=i,o.push(s),s={},i=""),i==""&&(n[l+1]=="m"||n[l+1]=="K")&&((s.foreground||s.background)&&(s.text="",o.push(s)),s={}),e=null,t=""):(i+=e+n[l],e=null);continue}else if(t!=null){n[l]==";"?(r.push(t),t=""):n[l]=="m"||n[l]=="K"?(r.push(t),t=null,i="",r.forEach(u=>{hB[u]?s.foreground=hB[u]:dB[u]?s.background=dB[u]:u==39?delete s.foreground:u==49?delete s.background:gB[u]?s[gB[u]]=!0:u==22?s.bold=!1:u==23?s.italic=!1:u==24?s.underline=!1:u==29&&(s.strikethrough=!1)}),r=[]):t+=n[l];continue}n[l]=="\x1B"?e=n[l]:n[l]=="\b"?a():i+=n[l]}return i&&(s.text=i+(e||""),o.push(s)),o}var hB,dB,gB,gc=P(()=>{"use strict";Fe();hB={30:"black",31:"red",32:"green",33:"yellow",34:"blue",35:"magenta",36:"cyan",37:"white",90:"grey"},dB={40:"black",41:"red",42:"green",43:"yellow",44:"blue",45:"magenta",46:"cyan",47:"white"},gB={1:"bold",3:"italic",4:"underline",9:"strikethrough"}});var pB=m((OPe,fB)=>{"use strict";fB.exports=({onlyFirst:n=!1}={})=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,n?void 0:"g")}});var Qm=m((MPe,mB)=>{"use strict";var Ape=pB();mB.exports=n=>typeof n=="string"?n.replace(Ape(),""):n});function Vm(n,e={}){let t=[],i=[],r=[],o=0;for(let s of n){let a=t.length,{content:l,filetype:u}=s,c=s.highlights;if(u=="markdown"){let h=qpe(l,e);r.push(...h.codes.map(d=>(d.startLine=d.startLine+a,d.endLine=d.endLine+a,d))),i.push(...h.highlights.map(d=>(d.lnum=d.lnum+a,d))),t.push(...h.lines)}else{let h=l.trim().split(/\r?\n/);Npe.includes(s.filetype)?r.push({hlGroup:`Coc${u}Float`,startLine:a,endLine:a+h.length}):r.push({filetype:s.filetype,startLine:a,endLine:a+h.length}),t.push(...h)}if(Array.isArray(c)&&i.push(...c.map(h=>Object.assign({},h,{lnum:h.lnum+a}))),Array.isArray(s.active)){let h=Hpe(l,a,s.active);h.length&&i.push(...h)}o!=n.length-1&&t.push("\u2500"),o=o+1}return{lines:t,highlights:i,codes:r}}function Hpe(n,e,t){let i=[],[r,o]=t,s=n.split(/\r?\n/),a=0,l=!1;for(let u=0;u<s.length;u++){let c=s[u];if(l)if(a+c.length>o){let h=V(c.slice(0,o-a));i.push({colStart:0,colEnd:h,lnum:u+e,hlGroup:"CocUnderline"}),l=!1;break}else{let h=V(c);i.push({colStart:0,colEnd:h,lnum:u+e,hlGroup:"CocUnderline"})}else if(a+c.length>r){l=!0;let h=V(c.slice(0,r-a));if(a+c.length>o){let d=V(c.slice(0,o-a));l=!1,i.push({colStart:h,colEnd:d,lnum:u+e,hlGroup:"CocUnderline"});break}else{let d=V(c);i.push({colStart:h,colEnd:d,lnum:u+e,hlGroup:"CocUnderline"})}}a=a+c.length+1}return i}function qpe(n,e){ge.setOptions({renderer:new Ik,gfm:!0,breaks:!0});let t=[],i=[],r=[],o=0,s=!1,a,l=0,u=ge(n),c=Ik.getLinks();c.length&&(u=u+`
`+c.join(`
`)),u=u.replace(/\s*$/,"");let h=u.split(/\n/);for(let d=0;d<h.length;d++){let g=h[d];if(!g.length){t[t.length-1]&&(t.push(g),o++);continue}if(e.excludeImages&&g.indexOf("![")!==-1&&(g=g.replace(/\s*!\[.*?\]\(.*?\)/g,""),!(0,bB.default)(g).trim().length))continue;if(/\s*```\s*([A-Za-z0-9_,]+)?$/.test(g)){if(s)s=!1,r.push({filetype:a,startLine:l,endLine:o});else{let p=h[d-1];p&&/^\s*```\s*/.test(p)&&(t.push(""),o++),s=!0,a=g.replace(/^\s*```\s*/,""),a=="js"&&(a="javascript"),a=="ts"&&(a="typescript"),a=="bash"&&(a="sh"),l=o}continue}if(s){t.push(g),o++;continue}let f=dc(g,!0);if(f.highlights)for(let p of f.highlights){let{hlGroup:b,span:y}=p;i.push({hlGroup:b,lnum:o,colStart:y[0],colEnd:y[1]})}t.push(f.line),o++}return{lines:t,highlights:i,codes:r}}var bB,Npe,BPe,jk=P(()=>{"use strict";gq();cB();gc();Fe();bB=S(Qm()),Npe=["Error","Warning","Info","Hint"],BPe=Y()("markdown-index")});var Qt,Qr=P(()=>{"use strict";Qt=class{constructor(){this.tasks=[];this.count=1}sched(){this.count>0&&this.tasks.length>0&&(this.count--,this.tasks.shift()())}get busy(){return this.count==0}acquire(){return new Promise(e=>{let t=()=>{let i=!1;e(()=>{i||(i=!0,this.count++,this.sched())})};this.tasks.push(t),process.nextTick(this.sched.bind(this))})}use(e){return this.acquire().then(t=>e().then(i=>(t(),i)).catch(i=>{throw t(),i}))}}});var yB,vB,Bpe,KPe,li,Bo=P(()=>{"use strict";yB=S(_i()),vB=S(q());he();jk();z();Qr();Ht();Bpe=process.env.VIM_NODE_RPC=="1",KPe=Y()("model-float"),li=class{constructor(e){this.nvim=e;this.winid=0;this._bufnr=0;this.mutex=new Qt;this.disposables=[];this.onCursorMoved=(0,yB.default)(this._onCursorMoved.bind(this),100)}bindEvents(e,t){let i=["InsertLeave","InsertEnter","BufEnter"];for(let r of i)_.on(r,o=>{o!=this._bufnr&&this.close()},null,this.disposables);_.on("MenuPopupChanged",()=>{_.pumAlignTop==t&&this.close()},null,this.disposables),this.disposables.push(vB.Disposable.create(()=>{this.onCursorMoved.clear()})),_.on("CursorMoved",this.onCursorMoved.bind(this,e),this,this.disposables),_.on("CursorMovedI",this.onCursorMoved.bind(this,e),this,this.disposables)}unbind(){this.disposables.length&&(J(this.disposables),this.disposables=[])}_onCursorMoved(e,t,i){if(t!=this._bufnr&&!(t==this.targetBufnr&&_e(i,this.cursor))&&(e||t!=this.targetBufnr||!_.insertMode)){this.close();return}}async create(e,t=!1,i=0){await this.show(e,{offsetX:i})}applyFloatConfig(e,t){for(let i of Object.keys(t)){if(i=="border"){t.border&&(e.border=[1,1,1,1]);continue}e[i]=t[i]}return e}async show(e,t={}){if(e.length==0||e.every(o=>o.content.length==0)){this.close();return}let i=Date.now(),r=await this.mutex.acquire();try{await this.createPopup(e,t,i),r()}catch(o){this.nvim.echoError(o),r()}}async createPopup(e,t,i){e=e.filter(p=>p.content.trim().length>0);let{lines:r,codes:o,highlights:s}=Vm(e),a={pumAlignTop:_.pumAlignTop,preferTop:typeof t.preferTop=="boolean"?t.preferTop:!1,offsetX:t.offsetX||0,title:t.title||"",close:t.close?1:0,codes:o,highlights:s,modes:t.modes||["n","i","ic","s"]};Bpe||(typeof t.winblend=="number"&&(a.winblend=t.winblend),t.focusable!=null&&(a.focusable=t.focusable?1:0),t.shadow&&(a.shadow=1)),t.maxHeight&&(a.maxHeight=t.maxHeight),t.maxWidth&&(a.maxWidth=t.maxWidth),t.border&&!t.border.every(p=>p==0)&&(a.border=t.border),t.title&&!a.border&&(a.border=[1,1,1,1]),t.highlight&&(a.highlight=t.highlight),t.borderhighlight&&(a.borderhighlight=[t.borderhighlight]),t.cursorline&&(a.cursorline=1);let l=t.autoHide!=!1;l&&(a.autohide=1),this.unbind();let u=await this.nvim.call("coc#dialog#create_cursor_float",[this.winid,this._bufnr,r,a]);if(this.nvim.redrawVim(),!u||u.length==0||this.closeTs>i){let p=u&&u.length>0?u[2]:this.winid;p&&(this.winid=0,this.nvim.call("coc#float#close",[p],!0),this.nvim.redrawVim());return}let[c,h,d,g,f]=u;this.winid=d,this._bufnr=g,this.targetBufnr=c,this.cursor=h,this.bindEvents(l,f==1)}close(){let{winid:e,nvim:t}=this;this.closeTs=Date.now(),this.unbind(),e&&(this.winid=0,t.call("coc#float#close",[e],!0),t.redrawVim())}checkRetrigger(e){return!!(this.winid&&this.targetBufnr==e)}get bufnr(){return this._bufnr}get buffer(){return this.bufnr?this.nvim.createBuffer(this.bufnr):null}get window(){return this.winid?this.nvim.createWindow(this.winid):null}async activated(){return this.winid?await this.nvim.call("coc#float#valid",[this.winid])!=0:!1}dispose(){this.cursor=void 0,this.close()}}});var xB=m((QPe,wB)=>{wB.exports=function(n,e){for(var t=[],i=0;i<n.length;i++){var r=e(n[i],i);Ype(r)?t.push.apply(t,r):t.push(r)}return t};var Ype=Array.isArray||function(n){return Object.prototype.toString.call(n)==="[object Array]"}});var DB=m((VPe,kB)=>{"use strict";kB.exports=SB;function SB(n,e,t){n instanceof RegExp&&(n=CB(n,t)),e instanceof RegExp&&(e=CB(e,t));var i=TB(n,e,t);return i&&{start:i[0],end:i[1],pre:t.slice(0,i[0]),body:t.slice(i[0]+n.length,i[1]),post:t.slice(i[1]+e.length)}}function CB(n,e){var t=e.match(n);return t?t[0]:null}SB.range=TB;function TB(n,e,t){var i,r,o,s,a,l=t.indexOf(n),u=t.indexOf(e,l+1),c=l;if(l>=0&&u>0){if(n===e)return[l,u];for(i=[],o=t.length;c>=0&&!a;)c==l?(i.push(c),l=t.indexOf(n,c+1)):i.length==1?a=[i.pop(),u]:(r=i.pop(),r<o&&(o=r,s=u),u=t.indexOf(e,c+1)),c=l<u&&l>=0?l:u;i.length&&(a=[o,s])}return a}});var FB=m((eRe,jB)=>{var Wpe=xB(),EB=DB();jB.exports=$pe;var _B="\0SLASH"+Math.random()+"\0",PB="\0OPEN"+Math.random()+"\0",Ok="\0CLOSE"+Math.random()+"\0",RB="\0COMMA"+Math.random()+"\0",LB="\0PERIOD"+Math.random()+"\0";function Fk(n){return parseInt(n,10)==n?parseInt(n,10):n.charCodeAt(0)}function Zpe(n){return n.split("\\\\").join(_B).split("\\{").join(PB).split("\\}").join(Ok).split("\\,").join(RB).split("\\.").join(LB)}function Jpe(n){return n.split(_B).join("\\").split(PB).join("{").split(Ok).join("}").split(RB).join(",").split(LB).join(".")}function IB(n){if(!n)return[""];var e=[],t=EB("{","}",n);if(!t)return n.split(",");var i=t.pre,r=t.body,o=t.post,s=i.split(",");s[s.length-1]+="{"+r+"}";var a=IB(o);return o.length&&(s[s.length-1]+=a.shift(),s.push.apply(s,a)),e.push.apply(e,s),e}function $pe(n){return n?(n.substr(0,2)==="{}"&&(n="\\{\\}"+n.substr(2)),fc(Zpe(n),!0).map(Jpe)):[]}function Xpe(n){return"{"+n+"}"}function Upe(n){return/^-?0\d/.test(n)}function Gpe(n,e){return n<=e}function Kpe(n,e){return n>=e}function fc(n,e){var t=[],i=EB("{","}",n);if(!i||/\$$/.test(i.pre))return[n];var r=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),o=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),s=r||o,a=i.body.indexOf(",")>=0;if(!s&&!a)return i.post.match(/,.*\}/)?(n=i.pre+"{"+i.body+Ok+i.post,fc(n)):[n];var l;if(s)l=i.body.split(/\.\./);else if(l=IB(i.body),l.length===1&&(l=fc(l[0],!1).map(Xpe),l.length===1)){var c=i.post.length?fc(i.post,!1):[""];return c.map(function(I){return i.pre+l[0]+I})}var u=i.pre,c=i.post.length?fc(i.post,!1):[""],h;if(s){var d=Fk(l[0]),g=Fk(l[1]),f=Math.max(l[0].length,l[1].length),p=l.length==3?Math.abs(Fk(l[2])):1,b=Gpe,y=g<d;y&&(p*=-1,b=Kpe);var w=l.some(Upe);h=[];for(var x=d;b(x,g);x+=p){var k;if(o)k=String.fromCharCode(x),k==="\\"&&(k="");else if(k=String(x),w){var L=f-k.length;if(L>0){var j=new Array(L+1).join("0");x<0?k="-"+j+k.slice(1):k=j+k}}h.push(k)}}else h=Wpe(l,function(N){return fc(N,!1)});for(var O=0;O<h.length;O++)for(var W=0;W<c.length;W++){var H=u+h[O]+c[W];(!e||s||H)&&t.push(H)}return t}});var Vn=m((tRe,qB)=>{qB.exports=Qn;Qn.Minimatch=ui;var ag={sep:"/"};try{ag=require("path")}catch{}var Nk=Qn.GLOBSTAR=ui.GLOBSTAR={},zpe=FB(),OB={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},Mk="[^/]",Ak=Mk+"*?",Qpe="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Vpe="(?:(?!(?:\\/|^)\\.).)*?",MB=eme("().*{}+?[]^$\\!");function eme(n){return n.split("").reduce(function(e,t){return e[t]=!0,e},{})}var NB=/\/+/;Qn.filter=tme;function tme(n,e){return e=e||{},function(t,i,r){return Qn(t,n,e)}}function AB(n,e){n=n||{},e=e||{};var t={};return Object.keys(e).forEach(function(i){t[i]=e[i]}),Object.keys(n).forEach(function(i){t[i]=n[i]}),t}Qn.defaults=function(n){if(!n||!Object.keys(n).length)return Qn;var e=Qn,t=function(r,o,s){return e.minimatch(r,o,AB(n,s))};return t.Minimatch=function(r,o){return new e.Minimatch(r,AB(n,o))},t};ui.defaults=function(n){return!n||!Object.keys(n).length?ui:Qn.defaults(n).Minimatch};function Qn(n,e,t){if(typeof e!="string")throw new TypeError("glob pattern string required");return t||(t={}),!t.nocomment&&e.charAt(0)==="#"?!1:e.trim()===""?n==="":new ui(e,t).match(n)}function ui(n,e){if(!(this instanceof ui))return new ui(n,e);if(typeof n!="string")throw new TypeError("glob pattern string required");e||(e={}),n=n.trim(),ag.sep!=="/"&&(n=n.split(ag.sep).join("/")),this.options=e,this.set=[],this.pattern=n,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}ui.prototype.debug=function(){};ui.prototype.make=ime;function ime(){if(!this._made){var n=this.pattern,e=this.options;if(!e.nocomment&&n.charAt(0)==="#"){this.comment=!0;return}if(!n){this.empty=!0;return}this.parseNegate();var t=this.globSet=this.braceExpand();e.debug&&(this.debug=console.error),this.debug(this.pattern,t),t=this.globParts=t.map(function(i){return i.split(NB)}),this.debug(this.pattern,t),t=t.map(function(i,r,o){return i.map(this.parse,this)},this),this.debug(this.pattern,t),t=t.filter(function(i){return i.indexOf(!1)===-1}),this.debug(this.pattern,t),this.set=t}}ui.prototype.parseNegate=nme;function nme(){var n=this.pattern,e=!1,t=this.options,i=0;if(!t.nonegate){for(var r=0,o=n.length;r<o&&n.charAt(r)==="!";r++)e=!e,i++;i&&(this.pattern=n.substr(i)),this.negate=e}}Qn.braceExpand=function(n,e){return HB(n,e)};ui.prototype.braceExpand=HB;function HB(n,e){if(e||(this instanceof ui?e=this.options:e={}),n=typeof n>"u"?this.pattern:n,typeof n>"u")throw new TypeError("undefined pattern");return e.nobrace||!n.match(/\{.*\}/)?[n]:zpe(n)}ui.prototype.parse=rme;var eb={};function rme(n,e){if(n.length>1024*64)throw new TypeError("pattern is too long");var t=this.options;if(!t.noglobstar&&n==="**")return Nk;if(n==="")return"";var i="",r=!!t.nocase,o=!1,s=[],a=[],l,u=!1,c=-1,h=-1,d=n.charAt(0)==="."?"":t.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",g=this;function f(){if(l){switch(l){case"*":i+=Ak,r=!0;break;case"?":i+=Mk,r=!0;break;default:i+="\\"+l;break}g.debug("clearStateChar %j %j",l,i),l=!1}}for(var p=0,b=n.length,y;p<b&&(y=n.charAt(p));p++){if(this.debug("%s %s %s %j",n,p,i,y),o&&MB[y]){i+="\\"+y,o=!1;continue}switch(y){case"/":return!1;case"\\":f(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",n,p,i,y),u){this.debug(" in class"),y==="!"&&p===h+1&&(y="^"),i+=y;continue}g.debug("call clearStateChar %j",l),f(),l=y,t.noext&&f();continue;case"(":if(u){i+="(";continue}if(!l){i+="\\(";continue}s.push({type:l,start:p-1,reStart:i.length,open:OB[l].open,close:OB[l].close}),i+=l==="!"?"(?:(?!(?:":"(?:",this.debug("plType %j %j",l,i),l=!1;continue;case")":if(u||!s.length){i+="\\)";continue}f(),r=!0;var w=s.pop();i+=w.close,w.type==="!"&&a.push(w),w.reEnd=i.length;continue;case"|":if(u||!s.length||o){i+="\\|",o=!1;continue}f(),i+="|";continue;case"[":if(f(),u){i+="\\"+y;continue}u=!0,h=p,c=i.length,i+=y;continue;case"]":if(p===h+1||!u){i+="\\"+y,o=!1;continue}if(u){var x=n.substring(h+1,p);try{RegExp("["+x+"]")}catch{var k=this.parse(x,eb);i=i.substr(0,c)+"\\["+k[0]+"\\]",r=r||k[1],u=!1;continue}}r=!0,u=!1,i+=y;continue;default:f(),o?o=!1:MB[y]&&!(y==="^"&&u)&&(i+="\\"),i+=y}}for(u&&(x=n.substr(h+1),k=this.parse(x,eb),i=i.substr(0,c)+"\\["+k[0],r=r||k[1]),w=s.pop();w;w=s.pop()){var L=i.slice(w.reStart+w.open.length);this.debug("setting tail",i,w),L=L.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(Si,ps,ko){return ko||(ko="\\"),ps+ps+ko+"|"}),this.debug(`tail=%j
%s`,L,L,w,i);var j=w.type==="*"?Ak:w.type==="?"?Mk:"\\"+w.type;r=!0,i=i.slice(0,w.reStart)+j+"\\("+L}f(),o&&(i+="\\\\");var O=!1;switch(i.charAt(0)){case".":case"[":case"(":O=!0}for(var W=a.length-1;W>-1;W--){var H=a[W],N=i.slice(0,H.reStart),I=i.slice(H.reStart,H.reEnd-8),A=i.slice(H.reEnd-8,H.reEnd),Z=i.slice(H.reEnd);A+=Z;var K=N.split("(").length-1,ae=Z;for(p=0;p<K;p++)ae=ae.replace(/\)[+*?]?/,"");Z=ae;var je="";Z===""&&e!==eb&&(je="$");var Pe=N+I+Z+je+A;i=Pe}if(i!==""&&r&&(i="(?=.)"+i),O&&(i=d+i),e===eb)return[i,r];if(!r)return ame(n);var Ve=t.nocase?"i":"";try{var Tt=new RegExp("^"+i+"$",Ve)}catch{return new RegExp("$.")}return Tt._glob=n,Tt._src=i,Tt}Qn.makeRe=function(n,e){return new ui(n,e||{}).makeRe()};ui.prototype.makeRe=ome;function ome(){if(this.regexp||this.regexp===!1)return this.regexp;var n=this.set;if(!n.length)return this.regexp=!1,this.regexp;var e=this.options,t=e.noglobstar?Ak:e.dot?Qpe:Vpe,i=e.nocase?"i":"",r=n.map(function(o){return o.map(function(s){return s===Nk?t:typeof s=="string"?lme(s):s._src}).join("\\/")}).join("|");r="^(?:"+r+")$",this.negate&&(r="^(?!"+r+").*$");try{this.regexp=new RegExp(r,i)}catch{this.regexp=!1}return this.regexp}Qn.match=function(n,e,t){t=t||{};var i=new ui(e,t);return n=n.filter(function(r){return i.match(r)}),i.options.nonull&&!n.length&&n.push(e),n};ui.prototype.match=sme;function sme(n,e){if(this.debug("match",n,this.pattern),this.comment)return!1;if(this.empty)return n==="";if(n==="/"&&e)return!0;var t=this.options;ag.sep!=="/"&&(n=n.split(ag.sep).join("/")),n=n.split(NB),this.debug(this.pattern,"split",n);var i=this.set;this.debug(this.pattern,"set",i);var r,o;for(o=n.length-1;o>=0&&(r=n[o],!r);o--);for(o=0;o<i.length;o++){var s=i[o],a=n;t.matchBase&&s.length===1&&(a=[r]);var l=this.matchOne(a,s,e);if(l)return t.flipNegate?!0:!this.negate}return t.flipNegate?!1:this.negate}ui.prototype.matchOne=function(n,e,t){var i=this.options;this.debug("matchOne",{this:this,file:n,pattern:e}),this.debug("matchOne",n.length,e.length);for(var r=0,o=0,s=n.length,a=e.length;r<s&&o<a;r++,o++){this.debug("matchOne loop");var l=e[o],u=n[r];if(this.debug(e,l,u),l===!1)return!1;if(l===Nk){this.debug("GLOBSTAR",[e,l,u]);var c=r,h=o+1;if(h===a){for(this.debug("** at the end");r<s;r++)if(n[r]==="."||n[r]===".."||!i.dot&&n[r].charAt(0)===".")return!1;return!0}for(;c<s;){var d=n[c];if(this.debug(`
globstar while`,n,c,e,h,d),this.matchOne(n.slice(c),e.slice(h),t))return this.debug("globstar found match!",c,s,d),!0;if(d==="."||d===".."||!i.dot&&d.charAt(0)==="."){this.debug("dot detected!",n,c,e,h);break}this.debug("globstar swallow a segment, and continue"),c++}return!!(t&&(this.debug(`
>>> no match, partial?`,n,c,e,h),c===s))}var g;if(typeof l=="string"?(i.nocase?g=u.toLowerCase()===l.toLowerCase():g=u===l,this.debug("string match",l,u,g)):(g=u.match(l),this.debug("pattern match",l,u,g)),!g)return!1}if(r===s&&o===a)return!0;if(r===s)return t;if(o===a){var f=r===s-1&&n[r]==="";return f}throw new Error("wtf?")};function ame(n){return n.replace(/\\(.)/g,"$1")}function lme(n){return n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var BB=m(Hk=>{var hl=require("path"),Xs=process.platform==="win32",$s=require("fs"),ume=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function cme(){var n;if(ume){var e=new Error;n=t}else n=i;return n;function t(r){r&&(e.message=r.message,r=e,i(r))}function i(r){if(r){if(process.throwDeprecation)throw r;if(!process.noDeprecation){var o="fs: missing callback "+(r.stack||r.message);process.traceDeprecation?console.trace(o):console.error(o)}}}}function hme(n){return typeof n=="function"?n:cme()}var iRe=hl.normalize;Xs?Yo=/(.*?)(?:[\/\\]+|$)/g:Yo=/(.*?)(?:[\/]+|$)/g;var Yo;Xs?lg=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/:lg=/^[\/]*/;var lg;Hk.realpathSync=function(e,t){if(e=hl.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return t[e];var i=e,r={},o={},s,a,l,u;c();function c(){var b=lg.exec(e);s=b[0].length,a=b[0],l=b[0],u="",Xs&&!o[l]&&($s.lstatSync(l),o[l]=!0)}for(;s<e.length;){Yo.lastIndex=s;var h=Yo.exec(e);if(u=a,a+=h[0],l=u+h[1],s=Yo.lastIndex,!(o[l]||t&&t[l]===l)){var d;if(t&&Object.prototype.hasOwnProperty.call(t,l))d=t[l];else{var g=$s.lstatSync(l);if(!g.isSymbolicLink()){o[l]=!0,t&&(t[l]=l);continue}var f=null;if(!Xs){var p=g.dev.toString(32)+":"+g.ino.toString(32);r.hasOwnProperty(p)&&(f=r[p])}f===null&&($s.statSync(l),f=$s.readlinkSync(l)),d=hl.resolve(u,f),t&&(t[l]=d),Xs||(r[p]=f)}e=hl.resolve(d,e.slice(s)),c()}}return t&&(t[i]=e),e};Hk.realpath=function(e,t,i){if(typeof i!="function"&&(i=hme(t),t=null),e=hl.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return process.nextTick(i.bind(null,null,t[e]));var r=e,o={},s={},a,l,u,c;h();function h(){var b=lg.exec(e);a=b[0].length,l=b[0],u=b[0],c="",Xs&&!s[u]?$s.lstat(u,function(y){if(y)return i(y);s[u]=!0,d()}):process.nextTick(d)}function d(){if(a>=e.length)return t&&(t[r]=e),i(null,e);Yo.lastIndex=a;var b=Yo.exec(e);return c=l,l+=b[0],u=c+b[1],a=Yo.lastIndex,s[u]||t&&t[u]===u?process.nextTick(d):t&&Object.prototype.hasOwnProperty.call(t,u)?p(t[u]):$s.lstat(u,g)}function g(b,y){if(b)return i(b);if(!y.isSymbolicLink())return s[u]=!0,t&&(t[u]=u),process.nextTick(d);if(!Xs){var w=y.dev.toString(32)+":"+y.ino.toString(32);if(o.hasOwnProperty(w))return f(null,o[w],u)}$s.stat(u,function(x){if(x)return i(x);$s.readlink(u,function(k,L){Xs||(o[w]=L),f(k,L)})})}function f(b,y,w){if(b)return i(b);var x=hl.resolve(c,y);t&&(t[w]=x),p(x)}function p(b){e=hl.resolve(b,e.slice(a)),h()}}});var Wk=m((rRe,JB)=>{JB.exports=Us;Us.realpath=Us;Us.sync=Yk;Us.realpathSync=Yk;Us.monkeypatch=gme;Us.unmonkeypatch=fme;var pc=require("fs"),qk=pc.realpath,Bk=pc.realpathSync,dme=process.version,YB=/^v[0-5]\./.test(dme),WB=BB();function ZB(n){return n&&n.syscall==="realpath"&&(n.code==="ELOOP"||n.code==="ENOMEM"||n.code==="ENAMETOOLONG")}function Us(n,e,t){if(YB)return qk(n,e,t);typeof e=="function"&&(t=e,e=null),qk(n,e,function(i,r){ZB(i)?WB.realpath(n,e,t):t(i,r)})}function Yk(n,e){if(YB)return Bk(n,e);try{return Bk(n,e)}catch(t){if(ZB(t))return WB.realpathSync(n,e);throw t}}function gme(){pc.realpath=Us,pc.realpathSync=Yk}function fme(){pc.realpath=qk,pc.realpathSync=Bk}});var $B=m((oRe,Zk)=>{typeof Object.create=="function"?Zk.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Zk.exports=function(e,t){if(t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}}});var XB=m((sRe,$k)=>{try{if(Jk=require("util"),typeof Jk.inherits!="function")throw"";$k.exports=Jk.inherits}catch{$k.exports=$B()}var Jk});var ib=m((aRe,tb)=>{"use strict";function UB(n){return n.charAt(0)==="/"}function GB(n){var e=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,t=e.exec(n),i=t[1]||"",r=Boolean(i&&i.charAt(1)!==":");return Boolean(t[2]||r)}tb.exports=process.platform==="win32"?GB:UB;tb.exports.posix=UB;tb.exports.win32=GB});var Uk=m(Gs=>{Gs.setopts=wme;Gs.ownProp=KB;Gs.makeAbs=ug;Gs.finish=xme;Gs.mark=Cme;Gs.isIgnored=QB;Gs.childrenIgnored=Sme;function KB(n,e){return Object.prototype.hasOwnProperty.call(n,e)}var pme=require("fs"),mc=require("path"),mme=Vn(),zB=ib(),Xk=mme.Minimatch;function bme(n,e){return n.localeCompare(e,"en")}function yme(n,e){n.ignore=e.ignore||[],Array.isArray(n.ignore)||(n.ignore=[n.ignore]),n.ignore.length&&(n.ignore=n.ignore.map(vme))}function vme(n){var e=null;if(n.slice(-3)==="/**"){var t=n.replace(/(\/\*\*)+$/,"");e=new Xk(t,{dot:!0})}return{matcher:new Xk(n,{dot:!0}),gmatcher:e}}function wme(n,e,t){if(t||(t={}),t.matchBase&&e.indexOf("/")===-1){if(t.noglobstar)throw new Error("base matching requires globstar");e="**/"+e}n.silent=!!t.silent,n.pattern=e,n.strict=t.strict!==!1,n.realpath=!!t.realpath,n.realpathCache=t.realpathCache||Object.create(null),n.follow=!!t.follow,n.dot=!!t.dot,n.mark=!!t.mark,n.nodir=!!t.nodir,n.nodir&&(n.mark=!0),n.sync=!!t.sync,n.nounique=!!t.nounique,n.nonull=!!t.nonull,n.nosort=!!t.nosort,n.nocase=!!t.nocase,n.stat=!!t.stat,n.noprocess=!!t.noprocess,n.absolute=!!t.absolute,n.fs=t.fs||pme,n.maxLength=t.maxLength||1/0,n.cache=t.cache||Object.create(null),n.statCache=t.statCache||Object.create(null),n.symlinks=t.symlinks||Object.create(null),yme(n,t),n.changedCwd=!1;var i=process.cwd();KB(t,"cwd")?(n.cwd=mc.resolve(t.cwd),n.changedCwd=n.cwd!==i):n.cwd=i,n.root=t.root||mc.resolve(n.cwd,"/"),n.root=mc.resolve(n.root),process.platform==="win32"&&(n.root=n.root.replace(/\\/g,"/")),n.cwdAbs=zB(n.cwd)?n.cwd:ug(n,n.cwd),process.platform==="win32"&&(n.cwdAbs=n.cwdAbs.replace(/\\/g,"/")),n.nomount=!!t.nomount,t.nonegate=!0,t.nocomment=!0,n.minimatch=new Xk(e,t),n.options=n.minimatch.options}function xme(n){for(var e=n.nounique,t=e?[]:Object.create(null),i=0,r=n.matches.length;i<r;i++){var o=n.matches[i];if(!o||Object.keys(o).length===0){if(n.nonull){var s=n.minimatch.globSet[i];e?t.push(s):t[s]=!0}}else{var a=Object.keys(o);e?t.push.apply(t,a):a.forEach(function(l){t[l]=!0})}}if(e||(t=Object.keys(t)),n.nosort||(t=t.sort(bme)),n.mark){for(var i=0;i<t.length;i++)t[i]=n._mark(t[i]);n.nodir&&(t=t.filter(function(l){var u=!/\/$/.test(l),c=n.cache[l]||n.cache[ug(n,l)];return u&&c&&(u=c!=="DIR"&&!Array.isArray(c)),u}))}n.ignore.length&&(t=t.filter(function(l){return!QB(n,l)})),n.found=t}function Cme(n,e){var t=ug(n,e),i=n.cache[t],r=e;if(i){var o=i==="DIR"||Array.isArray(i),s=e.slice(-1)==="/";if(o&&!s?r+="/":!o&&s&&(r=r.slice(0,-1)),r!==e){var a=ug(n,r);n.statCache[a]=n.statCache[t],n.cache[a]=n.cache[t]}}return r}function ug(n,e){var t=e;return e.charAt(0)==="/"?t=mc.join(n.root,e):zB(e)||e===""?t=e:n.changedCwd?t=mc.resolve(n.cwd,e):t=mc.resolve(e),process.platform==="win32"&&(t=t.replace(/\\/g,"/")),t}function QB(n,e){return n.ignore.length?n.ignore.some(function(t){return t.matcher.match(e)||!!(t.gmatcher&&t.gmatcher.match(e))}):!1}function Sme(n,e){return n.ignore.length?n.ignore.some(function(t){return!!(t.gmatcher&&t.gmatcher.match(e))}):!1}});var nY=m((dRe,iY)=>{iY.exports=tY;tY.GlobSync=Vt;var Tme=Wk(),VB=Vn(),uRe=VB.Minimatch,cRe=rb().Glob,hRe=require("util"),Gk=require("path"),eY=require("assert"),nb=ib(),dl=Uk(),kme=dl.setopts,Kk=dl.ownProp,Dme=dl.childrenIgnored,Eme=dl.isIgnored;function tY(n,e){if(typeof e=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
See: https://github.com/isaacs/node-glob/issues/167`);return new Vt(n,e).found}function Vt(n,e){if(!n)throw new Error("must provide pattern");if(typeof e=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof Vt))return new Vt(n,e);if(kme(this,n,e),this.noprocess)return this;var t=this.minimatch.set.length;this.matches=new Array(t);for(var i=0;i<t;i++)this._process(this.minimatch.set[i],i,!1);this._finish()}Vt.prototype._finish=function(){if(eY(this instanceof Vt),this.realpath){var n=this;this.matches.forEach(function(e,t){var i=n.matches[t]=Object.create(null);for(var r in e)try{r=n._makeAbs(r);var o=Tme.realpathSync(r,n.realpathCache);i[o]=!0}catch(s){if(s.syscall==="stat")i[n._makeAbs(r)]=!0;else throw s}})}dl.finish(this)};Vt.prototype._process=function(n,e,t){eY(this instanceof Vt);for(var i=0;typeof n[i]=="string";)i++;var r;switch(i){case n.length:this._processSimple(n.join("/"),e);return;case 0:r=null;break;default:r=n.slice(0,i).join("/");break}var o=n.slice(i),s;r===null?s=".":((nb(r)||nb(n.join("/")))&&(!r||!nb(r))&&(r="/"+r),s=r);var a=this._makeAbs(s);if(!Dme(this,s)){var l=o[0]===VB.GLOBSTAR;l?this._processGlobStar(r,s,a,o,e,t):this._processReaddir(r,s,a,o,e,t)}};Vt.prototype._processReaddir=function(n,e,t,i,r,o){var s=this._readdir(t,o);if(!!s){for(var a=i[0],l=!!this.minimatch.negate,u=a._glob,c=this.dot||u.charAt(0)===".",h=[],d=0;d<s.length;d++){var g=s[d];if(g.charAt(0)!=="."||c){var f;l&&!n?f=!g.match(a):f=g.match(a),f&&h.push(g)}}var p=h.length;if(p!==0){if(i.length===1&&!this.mark&&!this.stat){this.matches[r]||(this.matches[r]=Object.create(null));for(var d=0;d<p;d++){var g=h[d];n&&(n.slice(-1)!=="/"?g=n+"/"+g:g=n+g),g.charAt(0)==="/"&&!this.nomount&&(g=Gk.join(this.root,g)),this._emitMatch(r,g)}return}i.shift();for(var d=0;d<p;d++){var g=h[d],b;n?b=[n,g]:b=[g],this._process(b.concat(i),r,o)}}}};Vt.prototype._emitMatch=function(n,e){if(!Eme(this,e)){var t=this._makeAbs(e);if(this.mark&&(e=this._mark(e)),this.absolute&&(e=t),!this.matches[n][e]){if(this.nodir){var i=this.cache[t];if(i==="DIR"||Array.isArray(i))return}this.matches[n][e]=!0,this.stat&&this._stat(e)}}};Vt.prototype._readdirInGlobStar=function(n){if(this.follow)return this._readdir(n,!1);var e,t,i;try{t=this.fs.lstatSync(n)}catch(o){if(o.code==="ENOENT")return null}var r=t&&t.isSymbolicLink();return this.symlinks[n]=r,!r&&t&&!t.isDirectory()?this.cache[n]="FILE":e=this._readdir(n,!1),e};Vt.prototype._readdir=function(n,e){var t;if(e&&!Kk(this.symlinks,n))return this._readdirInGlobStar(n);if(Kk(this.cache,n)){var i=this.cache[n];if(!i||i==="FILE")return null;if(Array.isArray(i))return i}try{return this._readdirEntries(n,this.fs.readdirSync(n))}catch(r){return this._readdirError(n,r),null}};Vt.prototype._readdirEntries=function(n,e){if(!this.mark&&!this.stat)for(var t=0;t<e.length;t++){var i=e[t];n==="/"?i=n+i:i=n+"/"+i,this.cache[i]=!0}return this.cache[n]=e,e};Vt.prototype._readdirError=function(n,e){switch(e.code){case"ENOTSUP":case"ENOTDIR":var t=this._makeAbs(n);if(this.cache[t]="FILE",t===this.cwdAbs){var i=new Error(e.code+" invalid cwd "+this.cwd);throw i.path=this.cwd,i.code=e.code,i}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(n)]=!1;break;default:if(this.cache[this._makeAbs(n)]=!1,this.strict)throw e;this.silent||console.error("glob error",e);break}};Vt.prototype._processGlobStar=function(n,e,t,i,r,o){var s=this._readdir(t,o);if(!!s){var a=i.slice(1),l=n?[n]:[],u=l.concat(a);this._process(u,r,!1);var c=s.length,h=this.symlinks[t];if(!(h&&o))for(var d=0;d<c;d++){var g=s[d];if(!(g.charAt(0)==="."&&!this.dot)){var f=l.concat(s[d],a);this._process(f,r,!0);var p=l.concat(s[d],i);this._process(p,r,!0)}}}};Vt.prototype._processSimple=function(n,e){var t=this._stat(n);if(this.matches[e]||(this.matches[e]=Object.create(null)),!!t){if(n&&nb(n)&&!this.nomount){var i=/[\/\\]$/.test(n);n.charAt(0)==="/"?n=Gk.join(this.root,n):(n=Gk.resolve(this.root,n),i&&(n+="/"))}process.platform==="win32"&&(n=n.replace(/\\/g,"/")),this._emitMatch(e,n)}};Vt.prototype._stat=function(n){var e=this._makeAbs(n),t=n.slice(-1)==="/";if(n.length>this.maxLength)return!1;if(!this.stat&&Kk(this.cache,e)){var s=this.cache[e];if(Array.isArray(s)&&(s="DIR"),!t||s==="DIR")return s;if(t&&s==="FILE")return!1}var i,r=this.statCache[e];if(!r){var o;try{o=this.fs.lstatSync(e)}catch(a){if(a&&(a.code==="ENOENT"||a.code==="ENOTDIR"))return this.statCache[e]=!1,!1}if(o&&o.isSymbolicLink())try{r=this.fs.statSync(e)}catch{r=o}else r=o}this.statCache[e]=r;var s=!0;return r&&(s=r.isDirectory()?"DIR":"FILE"),this.cache[e]=this.cache[e]||s,t&&s==="FILE"?!1:s};Vt.prototype._mark=function(n){return dl.mark(this,n)};Vt.prototype._makeAbs=function(n){return dl.makeAbs(this,n)}});var zk=m((gRe,oY)=>{oY.exports=rY;function rY(n,e){if(n&&e)return rY(n)(e);if(typeof n!="function")throw new TypeError("need wrapper function");return Object.keys(n).forEach(function(i){t[i]=n[i]}),t;function t(){for(var i=new Array(arguments.length),r=0;r<i.length;r++)i[r]=arguments[r];var o=n.apply(this,i),s=i[i.length-1];return typeof o=="function"&&o!==s&&Object.keys(s).forEach(function(a){o[a]=s[a]}),o}}});var Vk=m((fRe,Qk)=>{var sY=zk();Qk.exports=sY(ob);Qk.exports.strict=sY(aY);ob.proto=ob(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return ob(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return aY(this)},configurable:!0})});function ob(n){var e=function(){return e.called?e.value:(e.called=!0,e.value=n.apply(this,arguments))};return e.called=!1,e}function aY(n){var e=function(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=n.apply(this,arguments)},t=n.name||"Function wrapped with `once`";return e.onceError=t+" shouldn't be called more than once",e.called=!1,e}});var uY=m((pRe,lY)=>{var _me=zk(),cg=Object.create(null),Pme=Vk();lY.exports=_me(Rme);function Rme(n,e){return cg[n]?(cg[n].push(e),null):(cg[n]=[e],Lme(n))}function Lme(n){return Pme(function e(){var t=cg[n],i=t.length,r=Ime(arguments);try{for(var o=0;o<i;o++)t[o].apply(null,r)}finally{t.length>i?(t.splice(0,i),process.nextTick(function(){e.apply(null,r)})):delete cg[n]}})}function Ime(n){for(var e=n.length,t=[],i=0;i<e;i++)t[i]=n[i];return t}});var rb=m((yRe,hY)=>{hY.exports=gl;var jme=Wk(),cY=Vn(),mRe=cY.Minimatch,Fme=XB(),Ome=require("events").EventEmitter,eD=require("path"),tD=require("assert"),hg=ib(),nD=nY(),fl=Uk(),Mme=fl.setopts,iD=fl.ownProp,rD=uY(),bRe=require("util"),Ame=fl.childrenIgnored,Nme=fl.isIgnored,Hme=Vk();function gl(n,e,t){if(typeof e=="function"&&(t=e,e={}),e||(e={}),e.sync){if(t)throw new TypeError("callback provided to sync glob");return nD(n,e)}return new $e(n,e,t)}gl.sync=nD;var qme=gl.GlobSync=nD.GlobSync;gl.glob=gl;function Bme(n,e){if(e===null||typeof e!="object")return n;for(var t=Object.keys(e),i=t.length;i--;)n[t[i]]=e[t[i]];return n}gl.hasMagic=function(n,e){var t=Bme({},e);t.noprocess=!0;var i=new $e(n,t),r=i.minimatch.set;if(!n)return!1;if(r.length>1)return!0;for(var o=0;o<r[0].length;o++)if(typeof r[0][o]!="string")return!0;return!1};gl.Glob=$e;Fme($e,Ome);function $e(n,e,t){if(typeof e=="function"&&(t=e,e=null),e&&e.sync){if(t)throw new TypeError("callback provided to sync glob");return new qme(n,e)}if(!(this instanceof $e))return new $e(n,e,t);Mme(this,n,e),this._didRealPath=!1;var i=this.minimatch.set.length;this.matches=new Array(i),typeof t=="function"&&(t=Hme(t),this.on("error",t),this.on("end",function(l){t(null,l)}));var r=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(i===0)return a();for(var o=!0,s=0;s<i;s++)this._process(this.minimatch.set[s],s,!1,a);o=!1;function a(){--r._processing,r._processing<=0&&(o?process.nextTick(function(){r._finish()}):r._finish())}}$e.prototype._finish=function(){if(tD(this instanceof $e),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();fl.finish(this),this.emit("end",this.found)}};$e.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=!0;var n=this.matches.length;if(n===0)return this._finish();for(var e=this,t=0;t<this.matches.length;t++)this._realpathSet(t,i);function i(){--n===0&&e._finish()}};$e.prototype._realpathSet=function(n,e){var t=this.matches[n];if(!t)return e();var i=Object.keys(t),r=this,o=i.length;if(o===0)return e();var s=this.matches[n]=Object.create(null);i.forEach(function(a,l){a=r._makeAbs(a),jme.realpath(a,r.realpathCache,function(u,c){u?u.syscall==="stat"?s[a]=!0:r.emit("error",u):s[c]=!0,--o===0&&(r.matches[n]=s,e())})})};$e.prototype._mark=function(n){return fl.mark(this,n)};$e.prototype._makeAbs=function(n){return fl.makeAbs(this,n)};$e.prototype.abort=function(){this.aborted=!0,this.emit("abort")};$e.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))};$e.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var n=this._emitQueue.slice(0);this._emitQueue.length=0;for(var e=0;e<n.length;e++){var t=n[e];this._emitMatch(t[0],t[1])}}if(this._processQueue.length){var i=this._processQueue.slice(0);this._processQueue.length=0;for(var e=0;e<i.length;e++){var r=i[e];this._processing--,this._process(r[0],r[1],r[2],r[3])}}}};$e.prototype._process=function(n,e,t,i){if(tD(this instanceof $e),tD(typeof i=="function"),!this.aborted){if(this._processing++,this.paused){this._processQueue.push([n,e,t,i]);return}for(var r=0;typeof n[r]=="string";)r++;var o;switch(r){case n.length:this._processSimple(n.join("/"),e,i);return;case 0:o=null;break;default:o=n.slice(0,r).join("/");break}var s=n.slice(r),a;o===null?a=".":((hg(o)||hg(n.join("/")))&&(!o||!hg(o))&&(o="/"+o),a=o);var l=this._makeAbs(a);if(Ame(this,a))return i();var u=s[0]===cY.GLOBSTAR;u?this._processGlobStar(o,a,l,s,e,t,i):this._processReaddir(o,a,l,s,e,t,i)}};$e.prototype._processReaddir=function(n,e,t,i,r,o,s){var a=this;this._readdir(t,o,function(l,u){return a._processReaddir2(n,e,t,i,r,o,u,s)})};$e.prototype._processReaddir2=function(n,e,t,i,r,o,s,a){if(!s)return a();for(var l=i[0],u=!!this.minimatch.negate,c=l._glob,h=this.dot||c.charAt(0)===".",d=[],g=0;g<s.length;g++){var f=s[g];if(f.charAt(0)!=="."||h){var p;u&&!n?p=!f.match(l):p=f.match(l),p&&d.push(f)}}var b=d.length;if(b===0)return a();if(i.length===1&&!this.mark&&!this.stat){this.matches[r]||(this.matches[r]=Object.create(null));for(var g=0;g<b;g++){var f=d[g];n&&(n!=="/"?f=n+"/"+f:f=n+f),f.charAt(0)==="/"&&!this.nomount&&(f=eD.join(this.root,f)),this._emitMatch(r,f)}return a()}i.shift();for(var g=0;g<b;g++){var f=d[g],y;n&&(n!=="/"?f=n+"/"+f:f=n+f),this._process([f].concat(i),r,o,a)}a()};$e.prototype._emitMatch=function(n,e){if(!this.aborted&&!Nme(this,e)){if(this.paused){this._emitQueue.push([n,e]);return}var t=hg(e)?e:this._makeAbs(e);if(this.mark&&(e=this._mark(e)),this.absolute&&(e=t),!this.matches[n][e]){if(this.nodir){var i=this.cache[t];if(i==="DIR"||Array.isArray(i))return}this.matches[n][e]=!0;var r=this.statCache[t];r&&this.emit("stat",e,r),this.emit("match",e)}}};$e.prototype._readdirInGlobStar=function(n,e){if(this.aborted)return;if(this.follow)return this._readdir(n,!1,e);var t="lstat\0"+n,i=this,r=rD(t,o);r&&i.fs.lstat(n,r);function o(s,a){if(s&&s.code==="ENOENT")return e();var l=a&&a.isSymbolicLink();i.symlinks[n]=l,!l&&a&&!a.isDirectory()?(i.cache[n]="FILE",e()):i._readdir(n,!1,e)}};$e.prototype._readdir=function(n,e,t){if(!this.aborted&&(t=rD("readdir\0"+n+"\0"+e,t),!!t)){if(e&&!iD(this.symlinks,n))return this._readdirInGlobStar(n,t);if(iD(this.cache,n)){var i=this.cache[n];if(!i||i==="FILE")return t();if(Array.isArray(i))return t(null,i)}var r=this;r.fs.readdir(n,Yme(this,n,t))}};function Yme(n,e,t){return function(i,r){i?n._readdirError(e,i,t):n._readdirEntries(e,r,t)}}$e.prototype._readdirEntries=function(n,e,t){if(!this.aborted){if(!this.mark&&!this.stat)for(var i=0;i<e.length;i++){var r=e[i];n==="/"?r=n+r:r=n+"/"+r,this.cache[r]=!0}return this.cache[n]=e,t(null,e)}};$e.prototype._readdirError=function(n,e,t){if(!this.aborted){switch(e.code){case"ENOTSUP":case"ENOTDIR":var i=this._makeAbs(n);if(this.cache[i]="FILE",i===this.cwdAbs){var r=new Error(e.code+" invalid cwd "+this.cwd);r.path=this.cwd,r.code=e.code,this.emit("error",r),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(n)]=!1;break;default:this.cache[this._makeAbs(n)]=!1,this.strict&&(this.emit("error",e),this.abort()),this.silent||console.error("glob error",e);break}return t()}};$e.prototype._processGlobStar=function(n,e,t,i,r,o,s){var a=this;this._readdir(t,o,function(l,u){a._processGlobStar2(n,e,t,i,r,o,u,s)})};$e.prototype._processGlobStar2=function(n,e,t,i,r,o,s,a){if(!s)return a();var l=i.slice(1),u=n?[n]:[],c=u.concat(l);this._process(c,r,!1,a);var h=this.symlinks[t],d=s.length;if(h&&o)return a();for(var g=0;g<d;g++){var f=s[g];if(!(f.charAt(0)==="."&&!this.dot)){var p=u.concat(s[g],l);this._process(p,r,!0,a);var b=u.concat(s[g],i);this._process(b,r,!0,a)}}a()};$e.prototype._processSimple=function(n,e,t){var i=this;this._stat(n,function(r,o){i._processSimple2(n,e,r,o,t)})};$e.prototype._processSimple2=function(n,e,t,i,r){if(this.matches[e]||(this.matches[e]=Object.create(null)),!i)return r();if(n&&hg(n)&&!this.nomount){var o=/[\/\\]$/.test(n);n.charAt(0)==="/"?n=eD.join(this.root,n):(n=eD.resolve(this.root,n),o&&(n+="/"))}process.platform==="win32"&&(n=n.replace(/\\/g,"/")),this._emitMatch(e,n),r()};$e.prototype._stat=function(n,e){var t=this._makeAbs(n),i=n.slice(-1)==="/";if(n.length>this.maxLength)return e();if(!this.stat&&iD(this.cache,t)){var r=this.cache[t];if(Array.isArray(r)&&(r="DIR"),!i||r==="DIR")return e(null,r);if(i&&r==="FILE")return e()}var o,s=this.statCache[t];if(s!==void 0){if(s===!1)return e(null,s);var a=s.isDirectory()?"DIR":"FILE";return i&&a==="FILE"?e():e(null,a,s)}var l=this,u=rD("stat\0"+t,c);u&&l.fs.lstat(t,u);function c(h,d){if(d&&d.isSymbolicLink())return l.fs.stat(t,function(g,f){g?l._stat2(n,t,null,d,e):l._stat2(n,t,g,f,e)});l._stat2(n,t,h,d,e)}};$e.prototype._stat2=function(n,e,t,i,r){if(t&&(t.code==="ENOENT"||t.code==="ENOTDIR"))return this.statCache[e]=!1,r();var o=n.slice(-1)==="/";if(this.statCache[e]=i,e.slice(-1)==="/"&&i&&!i.isDirectory())return r(null,!1,i);var s=!0;return i&&(s=i.isDirectory()?"DIR":"FILE"),this.cache[e]=this.cache[e]||s,o&&s==="FILE"?r():r(null,s,i)}});async function Mt(n){let e=null;try{e=await er.default.stat(n)}catch{}return e}function pY(n,e){return new Promise((t,i)=>{er.default.rename(n,e,r=>{if(r)return i(r);t()})})}async function mY(n){if(!n)return!1;let e=await Mt(n);if(!e||!e.isFile())return!1;let t=null;try{let{stdout:r}=await aD.default.promisify(sD.exec)("git rev-parse --show-toplevel",{cwd:Ui.default.dirname(n)});t=r.trim()}catch{}if(!t)return!1;let i=Ui.default.relative(t,n);try{let{stdout:r}=await aD.default.promisify(sD.exec)(`git check-ignore ${i}`,{cwd:t});return r.trim()==i}catch{}return!1}function oD(n,e=[]){return!e||!e.length?!1:e.some(t=>(0,lD.default)(n,t,{dot:!0}))}function ab(n,e,t,i=!1,r=!0,o=[]){let s=dg(n);if(r&&t&&Ae(t,s,!0)&&!oD(t,o)&&sb(t,e))return t;let a=s.split(Ui.default.sep);if(i){for(;a.length>0;){let l=a.join(Ui.default.sep);if(!oD(l,o)&&sb(l,e))return l;a.pop()}return null}else{let l=[a.shift()];for(let u of a){l.push(u);let c=l.join(Ui.default.sep);if(!oD(c,o)&&sb(c,e))return c}return null}}async function bY(n,e,t=500){return new Promise((i,r)=>{let o=setTimeout(()=>{i(!1)},t),s=!1,a=(0,fY.default)(e,{nosort:!0,dot:!0,cwd:n,nodir:!0,absolute:!1},l=>{clearTimeout(o),l&&r(l)});a.on("match",()=>{clearTimeout(o),s=!0,a.abort(),i(!0)}),a.on("end",()=>{clearTimeout(o),i(s)})})}function sb(n,e){try{let t=er.default.readdirSync(n);for(let i of e)if(i.includes("*")?lD.default.match(t,i,{nobrace:!0,noext:!0,nocomment:!0,nonegate:!0,dot:!0}).length!==0:t.includes(i))return!0}catch{}return!1}function bc(n,e){let t=Ui.default.parse(e).root,i=Array.isArray(n)?n:[n];for(;e&&e!==t;){if(sb(e,i))for(let o of i){let s=Ui.default.join(e,o);if(er.default.existsSync(s))return s}e=Ui.default.dirname(e)}return null}function yc(n,e){return new Promise((t,i)=>{er.default.readFile(n,e,(r,o)=>{r&&i(r),t(o)})})}function yY(n){let e,t=0;return new Promise((i,r)=>{er.default.createReadStream(n).on("error",o=>r(o)).on("data",o=>{for(e=0;e<o.length;++e)o[e]==10&&t++}).on("end",()=>i(t))})}function Ks(n,e,t){if(!er.default.existsSync(n))return Promise.reject(new Error(`file does not exist: ${n}`));let i=[],r=uD.default.createInterface({input:er.default.createReadStream(n,{encoding:"utf8"}),crlfDelay:1/0,terminal:!1}),o=0;return new Promise((s,a)=>{r.on("line",l=>{o>=e&&o<=t&&i.push(l),o==t&&r.close(),o=o+1}),r.on("close",()=>{s(i)}),r.on("error",a)})}function vY(n,e){if(!er.default.existsSync(n))return Promise.reject(new Error(`file does not exist: ${n}`));let t=uD.default.createInterface({input:er.default.createReadStream(n,{encoding:"utf8"}),crlfDelay:1/0,terminal:!1}),i=0;return new Promise((r,o)=>{t.on("line",s=>{if(i==e){i==0&&s.startsWith("\uFEFF")&&(s=s.slice(1)),t.close(),r(s);return}i=i+1}),t.on("error",o)})}function ei(n,e,t){return t=typeof t=="boolean"?t:Xi||ic,!n||!e?!1:t?n.toLowerCase()===e.toLowerCase():n===e}function dY(n,e){return Xi||ic?n.toLowerCase().startsWith(e.toLowerCase()):n.startsWith(e)}async function lb(n,e){await er.default.writeFile(n,e,{encoding:"utf8"})}function ub(n){return n.startsWith("file:")}function Ae(n,e,t=!1){let i=dg(Ui.default.resolve(Ui.default.normalize(n))),r=dg(Ui.default.resolve(Ui.default.normalize(e)));return i=="//"&&(i="/"),ei(i,r)?!!t:i.endsWith(Ui.default.sep)?dY(r,i):dY(r,i)&&r[i.length]==Ui.default.sep}function dg(n,e=gY.default.platform()){return e!="win32"||n[1]!=":"?n:n[0].toUpperCase()+n.slice(1)}var sD,er,lD,gY,Ui,uD,aD,fY,vRe,Xe=P(()=>{"use strict";sD=require("child_process"),er=S(Rn()),lD=S(Vn()),gY=S(require("os")),Ui=S(require("path")),uD=S(require("readline")),aD=S(require("util")),fY=S(rb());nc();vRe=Y()("util-fs")});function Pi(n,e){return ct(n.start,e)===0&&ct(n.end,e)===0}function wY(n,e){return n.line===e.line&&n.character===e.character}function xY(n,e){let{start:t,end:i}=n;if(t.line>i.line||t.line===i.line&&t.character>i.character){let r=t;t=i,i=r}return t=vc.Position.create(Math.max(0,t.line),Math.max(0,t.character)),i=vc.Position.create(Math.max(0,i.line),Math.max(0,i.character)),{start:t,end:i}}function cb(n,e){return xe(n.end,e.start)==0||xe(e.end,n.start)==0}function hb(n,e){let{start:t,end:i}=n;return!(xe(i,e.start)<=0||xe(t,e.end)>=0)}function pl(n,e){return!!(ct(n.start,e)==0||ct(n.end,e)==0||Pi(e,n))}function CY(n,e){let{line:t,character:i}=e,{start:r,end:o}=n,s=o.line==r.line?o.character+i:o.character;return vc.Range.create(r.line+t,i+r.character,o.line+t,s)}function SY(n,e){let{start:t,end:i}=e;return n>=t.line&&n<=i.line}function Ct(n){let{start:e,end:t}=n;return e.line==t.line&&e.character==t.character}function ct(n,e){let{start:t,end:i}=e;return xe(n,t)<0?-1:xe(n,i)>0?1:0}function xe(n,e){return n.line>e.line||e.line==n.line&&n.character>e.character?1:e.line==n.line&&n.character==e.character?0:-1}function TY(n){return n.start.line==n.end.line}function Ri(n,e){let t=e.split(/\r?\n/),i=t.length,r=t[i-1],o=i==1?n.character+e.length:r.length;return vc.Position.create(n.line+i-1,o)}var vc,bt=P(()=>{"use strict";vc=S(q())});var xRe,db,kY=P(()=>{"use strict";xRe=Y()("outpubChannel"),db=class{constructor(e,t,i){this.name=e;this.nvim=t;this.onDispose=i;this.lines=[""];this._disposed=!1;this.created=!1;if(!/^[\w\s-.]+$/.test(e))throw new Error(`Invalid channel name "${e}", only word characters and white space allowed.`)}get content(){return this.lines.join(`
`)}_append(e){let{nvim:t}=this,i=this.lines.length-1,r=e.split(/\r?\n/),o=this.lines[i]+r[0];this.lines[i]=o;let s=r.slice(1);this.lines=this.lines.concat(s),this.created&&(t.pauseNotification(),t.call("setbufline",[this.bufname,"$",o],!0),s.length&&t.call("appendbufline",[this.bufname,"$",s],!0),t.resumeNotification(!1,!0))}append(e){!this.validate()||this._append(e)}appendLine(e){!this.validate()||this._append(e+`
`)}clear(e){if(!this.validate())return;let{nvim:t}=this;this.lines=e?this.lines.slice(-e):[],this.created&&(t.pauseNotification(),t.call("deletebufline",[this.bufname,1,"$"],!0),this.lines.length&&t.call("appendbufline",[this.bufname,"$",this.lines],!0),t.resumeNotification(!0,!0))}hide(){this.created=!1,this.nvim.command(`exe 'silent! bd! '.fnameescape('${this.bufname}')`,!0)}get bufname(){return`output:///${this.name}`}show(e){let{nvim:t}=this;t.pauseNotification(),t.command(`exe 'vsplit '.fnameescape('${this.bufname}')`,!0),e&&t.command("wincmd p",!0),t.resumeNotification(!0,!0),this.created=!0}validate(){return!this._disposed}dispose(){this.onDispose&&this.onDispose(),this._disposed=!0,this.hide(),this.lines=[]}}});var kRe,DY,Wo,gb=P(()=>{"use strict";he();kY();kRe=Y()("core-channels"),DY=class{constructor(){this.outputChannels=new Map;this.bufnrs=new Map;this.disposable=_.on("BufUnload",e=>{let t=this.bufnrs.get(e);if(t){let i=this.outputChannels.get(t);i&&(i.created=!1)}})}getProvider(e){return{onDidChange:null,provideTextDocumentContent:async i=>{let r=this.get(i.path.slice(1));if(!r)return"";e.pauseNotification(),e.call("bufnr",["%"],!0),e.command("setlocal nospell nofoldenable nowrap noswapfile",!0),e.command("setlocal buftype=nofile bufhidden=hide",!0),e.command("setfiletype log",!0);let o=await e.resumeNotification();return this.bufnrs.set(o[0][0],r.name),r.created=!0,r.content}}}get names(){return Array.from(this.outputChannels.keys())}get(e){return this.outputChannels.get(e)}create(e,t){if(this.outputChannels.has(e))return this.outputChannels.get(e);let i=new db(e,t,()=>{this.outputChannels.delete(e)});return this.outputChannels.set(e,i),i}show(e,t){let i=this.outputChannels.get(e);!i||i.show(t)}dispose(){this.disposable.dispose();for(let e of this.outputChannels.values())e.dispose();this.outputChannels.clear()}},Wo=new DY});var ERe,fb,EY=P(()=>{"use strict";ERe=Y()("model-terminal"),fb=class{constructor(e,t,i,r,o){this.cmd=e;this.args=t;this.nvim=i;this._name=r;this.strictEnv=o;this.pid=0}async start(e,t){let{nvim:i}=this,r=[this.cmd,...this.args],[o,s]=await i.call("coc#terminal#start",[r,e,t||{},!!this.strictEnv]);this.bufnr=o,this.pid=s}onExit(e){this.exitStatus={code:e===-1?void 0:e}}get name(){return this._name||this.cmd}get processId(){return Promise.resolve(this.pid)}sendText(e,t=!0){!this.bufnr||this.nvim.call("coc#terminal#send",[this.bufnr,e,t],!0)}async show(e){let{bufnr:t,nvim:i}=this;if(!t)return;let[r,o,s]=await i.eval(`[bufloaded(${t}),bufwinid(${t}),win_getid()]`);return r?(s==o||(i.pauseNotification(),o==-1?(i.command(`below ${t}sb`,!0),i.command("resize 8",!0),i.call("coc#util#do_autocmd",["CocTerminalOpen"],!0)):i.call("win_gotoid",[o],!0),i.command("normal! G",!0),e&&i.command("wincmd p",!0),await i.resumeNotification()),!0):!1}async hide(){let{bufnr:e,nvim:t}=this;!e||await t.eval(`coc#window#close(bufwinid(${e}))`)}dispose(){this.exitStatus||(this.exitStatus={code:void 0});let{bufnr:e,nvim:t}=this;!e||(this.bufnr=void 0,t.call("coc#terminal#close",[e],!0))}}});var cD,Zme,pb,_Y=P(()=>{"use strict";EY();cD=S(q());z();he();Zme=Y()("core-terminals"),pb=class{constructor(){this._terminals=new Map;this.disposables=[];this._onDidOpenTerminal=new cD.Emitter;this._onDidCloseTerminal=new cD.Emitter;this.onDidCloseTerminal=this._onDidCloseTerminal.event;this.onDidOpenTerminal=this._onDidOpenTerminal.event;_.on("BufUnload",e=>{if(this._terminals.has(e)){Zme.debug("terminal detach",e);let t=this._terminals.get(e);this._onDidCloseTerminal.fire(t),this._terminals.delete(e)}},null,this.disposables),_.on("TermExit",(e,t)=>{let i=this._terminals.get(e);i&&(i.onExit(t),i.dispose())},null,this.disposables)}get terminals(){return Array.from(this._terminals.values())}async createTerminal(e,t){let i=t.cwd,r=t.shellPath,o=t.shellArgs;r||(r=await e.getOption("shell")),i||(i=await e.call("getcwd"));let s=new fb(r,o||[],e,t.name,t.strictEnv);return await s.start(i,t.env),this._terminals.set(s.bufnr,s),this._onDidOpenTerminal.fire(s),s}reset(){for(let e of this._terminals.values())e.dispose();this._terminals.clear()}dispose(){this._onDidOpenTerminal.dispose(),this._onDidCloseTerminal.dispose(),J(this.disposables),this.reset()}}});async function mb(n){let[e,t]=await n.eval("[line('.')-1, strpart(getline('.'), 0, col('.') - 1)]");return wc.Position.create(e,t.length)}async function xc(n,e){return await n.callAsync("coc#dialog#prompt_confirm",[e])==1}async function PY(n,e,t){await n.call("coc#cursor#move_to",[e.line,e.character]),t&&n.command("redraw",!0)}async function RY(n){return await n.call("coc#cursor#char_offset")}async function LY(n){let[e,t]=await n.call("coc#cursor#screen_pos");return{row:e,col:t}}function tr(n,e,t="MoreMsg",i=!1){n[i||Jme?"callTimer":"call"]("coc#ui#echo_messages",[t,("[coc.nvim] "+e).split(`
`)],!0)}async function IY(n,e){if(e==="line"){let i=await n.call("line",["."]);return wc.Range.create(i-1,0,i,0)}if(e==="cursor"){let[i,r]=await n.eval("coc#cursor#position()");return wc.Range.create(i,r,i,r)}let t=await n.call("coc#cursor#get_selection",[e==="char"?1:0]);return t?wc.Range.create(t[0],t[1],t[2],t[3]):null}async function jY(n,e,t){let{start:i,end:r}=e,[o,s]=await n.eval(`[getline(${i.line+1}),getline(${r.line+1})]`),a=o.length>0?V(o.slice(0,i.character)):0,l,u,c=r.character==0;if(c){u=r.line==0?0:r.line-1;let h=await n.call("getline",[u+1]);l=V(h)}else u=r.line,l=s.length>0?V(s.slice(0,r.character)):0;n.pauseNotification(),n.command(`noa call cursor(${i.line+1},${a+1})`,!0),n.command("normal! v",!0),n.command(`noa call cursor(${u+1},${l})`,!0),c&&n.command("normal! $",!0),await n.resumeNotification(t)}var wc,Jme,bb=P(()=>{"use strict";wc=S(q());Fe();Jme=process.env.VIM_NODE_RPC=="1"});var yb,dD=P(()=>{yb="0.0.80"});var gg,fg,vb,wb,pg,xb,Lr=P(()=>{"use strict";gg=(i=>(i[i.Buffer=0]="Buffer",i[i.LanguageServer=1]="LanguageServer",i[i.Global=2]="Global",i))(gg||{}),fg=(i=>(i[i.Native=0]="Native",i[i.Remote=1]="Remote",i[i.Service=2]="Service",i))(fg||{}),vb=(i=>(i[i.More=0]="More",i[i.Warning=1]="Warning",i[i.Error=2]="Error",i))(vb||{}),wb=(i=>(i[i.Global=0]="Global",i[i.User=1]="User",i[i.Workspace=2]="Workspace",i))(wb||{}),pg=(s=>(s[s.Initial=0]="Initial",s[s.Starting=1]="Starting",s[s.StartFailed=2]="StartFailed",s[s.Running=3]="Running",s[s.Stopping=4]="Stopping",s[s.Stopped=5]="Stopped",s))(pg||{}),xb=(r=>(r[r.Unknown=0]="Unknown",r[r.File=1]="File",r[r.Directory=2]="Directory",r[r.SymbolicLink=64]="SymbolicLink",r))(xb||{})});function gD(n,e){if(n.length<=1)return n;let t=n.length/2|0,i=n.slice(0,t),r=n.slice(t);gD(i,e),gD(r,e);let o=0,s=0,a=0;for(;o<i.length&&s<r.length;)e(i[o],r[s])<=0?n[a++]=i[o++]:n[a++]=r[s++];for(;o<i.length;)n[a++]=i[o++];for(;s<r.length;)n[a++]=r[s++];return n}function FY(n,e,t=0){let i=e?[t]:[];for(let r=0;r<n.length;r++){let o=n.charCodeAt(r);(o===13||o===10)&&(o===13&&r+1<n.length&&n.charCodeAt(r+1)===10&&r++,i.push(t+r+1))}return i}function OY(n){let e=n.start,t=n.end;return e.line>t.line||e.line===t.line&&e.character>t.character?{start:t,end:e}:n}function Xme(n){let e=OY(n.range);return e!==n.range?{newText:n.newText,range:e}:n}var Cc,Fn,Sc=P(()=>{"use strict";Cc=class{constructor(e,t,i,r){this._uri=e,this._languageId=t,this._version=i,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),i=this.offsetAt(e.end);return this._content.substring(t,i)}return this._content}update(e,t){for(let i of e)if(Cc.isIncremental(i)){let r=OY(i.range),o=this.offsetAt(r.start),s=this.offsetAt(r.end);this._content=this._content.substring(0,o)+i.text+this._content.substring(s,this._content.length);let a=Math.max(r.start.line,0),l=Math.max(r.end.line,0),u=this._lineOffsets,c=FY(i.text,!1,o);if(l-a===c.length)for(let d=0,g=c.length;d<g;d++)u[d+a+1]=c[d];else c.length<1e4?u.splice(a+1,l-a,...c):this._lineOffsets=u=u.slice(0,a+1).concat(c,u.slice(l+1));let h=i.text.length-(s-o);if(h!==0)for(let d=a+1+c.length,g=u.length;d<g;d++)u[d]=u[d]+h}else if(Cc.isFull(i))this._content=i.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=t}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=FY(this._content,!0)),this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),i=0,r=t.length;if(r===0)return{line:0,character:e};for(;i<r;){let s=Math.floor((i+r)/2);t[s]>e?r=s:i=s+1}let o=i-1;return{line:o,character:e-t[o]}}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let i=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(i+e.character,r),i)}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){let t=e;return t!=null&&typeof t.text=="string"&&t.range!==void 0&&(t.rangeLength===void 0||typeof t.rangeLength=="number")}static isFull(e){let t=e;return t!=null&&typeof t.text=="string"&&t.range===void 0&&t.rangeLength===void 0}};(function(n){function e(r,o,s,a){return new Cc(r,o,s,a)}n.create=e;function t(r,o,s){if(r instanceof Cc)return r.update(o,s),r;throw new Error("TextDocument.update: document must be created by TextDocument.create")}n.update=t;function i(r,o){let s=r.getText(),a=gD(o.map(Xme),(c,h)=>{let d=c.range.start.line-h.range.start.line;return d===0?c.range.start.character-h.range.start.character:d}),l=0,u=[];for(let c of a){let h=r.offsetAt(c.range.start);if(h<l)throw new Error("Overlapping edit");h>l&&u.push(s.substring(l,h)),c.newText.length&&u.push(c.newText),l=r.offsetAt(c.range.end)}return u.push(s.substr(l)),u.join("")}n.applyEdits=i})(Fn||(Fn={}))});function bg(n,e){e===void 0&&(e=!1);var t=n.length,i=0,r="",o=0,s=16,a=0,l=0,u=0,c=0,h=0;function d(x,k){for(var L=0,j=0;L<x||!k;){var O=n.charCodeAt(i);if(O>=48&&O<=57)j=j*16+O-48;else if(O>=65&&O<=70)j=j*16+O-65+10;else if(O>=97&&O<=102)j=j*16+O-97+10;else break;i++,L++}return L<x&&(j=-1),j}function g(x){i=x,r="",o=0,s=16,h=0}function f(){var x=i;if(n.charCodeAt(i)===48)i++;else for(i++;i<n.length&&Tc(n.charCodeAt(i));)i++;if(i<n.length&&n.charCodeAt(i)===46)if(i++,i<n.length&&Tc(n.charCodeAt(i)))for(i++;i<n.length&&Tc(n.charCodeAt(i));)i++;else return h=3,n.substring(x,i);var k=i;if(i<n.length&&(n.charCodeAt(i)===69||n.charCodeAt(i)===101))if(i++,(i<n.length&&n.charCodeAt(i)===43||n.charCodeAt(i)===45)&&i++,i<n.length&&Tc(n.charCodeAt(i))){for(i++;i<n.length&&Tc(n.charCodeAt(i));)i++;k=i}else h=3;return n.substring(x,k)}function p(){for(var x="",k=i;;){if(i>=t){x+=n.substring(k,i),h=2;break}var L=n.charCodeAt(i);if(L===34){x+=n.substring(k,i),i++;break}if(L===92){if(x+=n.substring(k,i),i++,i>=t){h=2;break}var j=n.charCodeAt(i++);switch(j){case 34:x+='"';break;case 92:x+="\\";break;case 47:x+="/";break;case 98:x+="\b";break;case 102:x+="\f";break;case 110:x+=`
`;break;case 114:x+="\r";break;case 116:x+=" ";break;case 117:var O=d(4,!0);O>=0?x+=String.fromCharCode(O):h=4;break;default:h=5}k=i;continue}if(L>=0&&L<=31)if(mg(L)){x+=n.substring(k,i),h=2;break}else h=6;i++}return x}function b(){if(r="",h=0,o=i,l=a,c=u,i>=t)return o=t,s=17;var x=n.charCodeAt(i);if(fD(x)){do i++,r+=String.fromCharCode(x),x=n.charCodeAt(i);while(fD(x));return s=15}if(mg(x))return i++,r+=String.fromCharCode(x),x===13&&n.charCodeAt(i)===10&&(i++,r+=`
`),a++,u=i,s=14;switch(x){case 123:return i++,s=1;case 125:return i++,s=2;case 91:return i++,s=3;case 93:return i++,s=4;case 58:return i++,s=6;case 44:return i++,s=5;case 34:return i++,r=p(),s=10;case 47:var k=i-1;if(n.charCodeAt(i+1)===47){for(i+=2;i<t&&!mg(n.charCodeAt(i));)i++;return r=n.substring(k,i),s=12}if(n.charCodeAt(i+1)===42){i+=2;for(var L=t-1,j=!1;i<L;){var O=n.charCodeAt(i);if(O===42&&n.charCodeAt(i+1)===47){i+=2,j=!0;break}i++,mg(O)&&(O===13&&n.charCodeAt(i)===10&&i++,a++,u=i)}return j||(i++,h=1),r=n.substring(k,i),s=13}return r+=String.fromCharCode(x),i++,s=16;case 45:if(r+=String.fromCharCode(x),i++,i===t||!Tc(n.charCodeAt(i)))return s=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return r+=f(),s=11;default:for(;i<t&&y(x);)i++,x=n.charCodeAt(i);if(o!==i){switch(r=n.substring(o,i),r){case"true":return s=8;case"false":return s=9;case"null":return s=7}return s=16}return r+=String.fromCharCode(x),i++,s=16}}function y(x){if(fD(x)||mg(x))return!1;switch(x){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function w(){var x;do x=b();while(x>=12&&x<=15);return x}return{setPosition:g,getPosition:function(){return i},scan:e?w:b,getToken:function(){return s},getTokenValue:function(){return r},getTokenOffset:function(){return o},getTokenLength:function(){return i-o},getTokenStartLine:function(){return l},getTokenStartCharacter:function(){return o-c},getTokenError:function(){return h}}}function fD(n){return n===32||n===9||n===11||n===12||n===160||n===5760||n>=8192&&n<=8203||n===8239||n===8287||n===12288||n===65279}function mg(n){return n===10||n===13||n===8232||n===8233}function Tc(n){return n>=48&&n<=57}var Cb=P(()=>{"use strict"});function mD(n,e,t){var i,r,o,s,a;if(e){for(s=e.offset,a=s+e.length,o=s;o>0&&!yg(n,o-1);)o--;for(var l=a;l<n.length&&!yg(n,l);)l++;r=n.substring(o,l),i=Gme(r,t)}else r=n,i=0,o=0,s=0,a=n.length;var u=Kme(t,n),c=!1,h=0,d;t.insertSpaces?d=pD(" ",t.tabSize||4):d=" ";var g=bg(r,!1),f=!1;function p(){return u+pD(d,i+h)}function b(){var A=g.scan();for(c=!1;A===15||A===14;)c=c||A===14,A=g.scan();return f=A===16||g.getTokenError()!==0,A}var y=[];function w(A,Z,K){!f&&(!e||Z<a&&K>s)&&n.substring(Z,K)!==A&&y.push({offset:Z,length:K-Z,content:A})}var x=b();if(x!==17){var k=g.getTokenOffset()+o,L=pD(d,i);w(L,o,k)}for(;x!==17;){for(var j=g.getTokenOffset()+g.getTokenLength()+o,O=b(),W="",H=!1;!c&&(O===12||O===13);){var N=g.getTokenOffset()+o;w(" ",j,N),j=g.getTokenOffset()+g.getTokenLength()+o,H=O===12,W=H?p():"",O=b()}if(O===2)x!==1&&(h--,W=p());else if(O===4)x!==3&&(h--,W=p());else{switch(x){case 3:case 1:h++,W=p();break;case 5:case 12:W=p();break;case 13:c?W=p():H||(W=" ");break;case 6:H||(W=" ");break;case 10:if(O===6){H||(W="");break}case 7:case 8:case 9:case 11:case 2:case 4:O===12||O===13?H||(W=" "):O!==5&&O!==17&&(f=!0);break;case 16:f=!0;break}c&&(O===12||O===13)&&(W=p())}O===17&&(W=t.insertFinalNewline?u:"");var I=g.getTokenOffset()+o;w(W,j,I),x=O}return y}function pD(n,e){for(var t="",i=0;i<e;i++)t+=n;return t}function Gme(n,e){for(var t=0,i=0,r=e.tabSize||4;t<n.length;){var o=n.charAt(t);if(o===" ")i++;else if(o===" ")i+=r;else break;t++}return Math.floor(i/r)}function Kme(n,e){for(var t=0;t<e.length;t++){var i=e.charAt(t);if(i==="\r")return t+1<e.length&&e.charAt(t+1)===`
`?`\r
`:"\r";if(i===`
`)return`
`}return n&&n.eol||`
`}function yg(n,e){return`\r
`.indexOf(n.charAt(e))!==-1}var bD=P(()=>{"use strict";Cb()});function MY(n,e,t){e===void 0&&(e=[]),t===void 0&&(t=vg.DEFAULT);var i=null,r=[],o=[];function s(l){Array.isArray(r)?r.push(l):i!==null&&(r[i]=l)}var a={onObjectBegin:function(){var l={};s(l),o.push(r),r=l,i=null},onObjectProperty:function(l){i=l},onObjectEnd:function(){r=o.pop()},onArrayBegin:function(){var l=[];s(l),o.push(r),r=l,i=null},onArrayEnd:function(){r=o.pop()},onLiteralValue:s,onError:function(l,u,c){e.push({error:l,offset:u,length:c})}};return vD(n,a,t),r[0]}function yD(n,e,t){e===void 0&&(e=[]),t===void 0&&(t=vg.DEFAULT);var i={type:"array",offset:-1,length:-1,children:[],parent:void 0};function r(l){i.type==="property"&&(i.length=l-i.offset,i=i.parent)}function o(l){return i.children.push(l),l}var s={onObjectBegin:function(l){i=o({type:"object",offset:l,length:-1,parent:i,children:[]})},onObjectProperty:function(l,u,c){i=o({type:"property",offset:u,length:-1,parent:i,children:[]}),i.children.push({type:"string",value:l,offset:u,length:c,parent:i})},onObjectEnd:function(l,u){r(l+u),i.length=l+u-i.offset,i=i.parent,r(l+u)},onArrayBegin:function(l,u){i=o({type:"array",offset:l,length:-1,parent:i,children:[]})},onArrayEnd:function(l,u){i.length=l+u-i.offset,i=i.parent,r(l+u)},onLiteralValue:function(l,u,c){o({type:Qme(l),offset:u,length:c,parent:i,value:l}),r(u+c)},onSeparator:function(l,u,c){i.type==="property"&&(l===":"?i.colonOffset=u:l===","&&r(u))},onError:function(l,u,c){e.push({error:l,offset:u,length:c})}};vD(n,s,t);var a=i.children[0];return a&&delete a.parent,a}function Sb(n,e){if(!!n){for(var t=n,i=0,r=e;i<r.length;i++){var o=r[i];if(typeof o=="string"){if(t.type!=="object"||!Array.isArray(t.children))return;for(var s=!1,a=0,l=t.children;a<l.length;a++){var u=l[a];if(Array.isArray(u.children)&&u.children[0].value===o){t=u.children[1],s=!0;break}}if(!s)return}else{var c=o;if(t.type!=="array"||c<0||!Array.isArray(t.children)||c>=t.children.length)return;t=t.children[c]}}return t}}function vD(n,e,t){t===void 0&&(t=vg.DEFAULT);var i=bg(n,!1);function r(H){return H?function(){return H(i.getTokenOffset(),i.getTokenLength(),i.getTokenStartLine(),i.getTokenStartCharacter())}:function(){return!0}}function o(H){return H?function(N){return H(N,i.getTokenOffset(),i.getTokenLength(),i.getTokenStartLine(),i.getTokenStartCharacter())}:function(){return!0}}var s=r(e.onObjectBegin),a=o(e.onObjectProperty),l=r(e.onObjectEnd),u=r(e.onArrayBegin),c=r(e.onArrayEnd),h=o(e.onLiteralValue),d=o(e.onSeparator),g=r(e.onComment),f=o(e.onError),p=t&&t.disallowComments,b=t&&t.allowTrailingComma;function y(){for(;;){var H=i.scan();switch(i.getTokenError()){case 4:w(14);break;case 5:w(15);break;case 3:w(13);break;case 1:p||w(11);break;case 2:w(12);break;case 6:w(16);break}switch(H){case 12:case 13:p?w(10):g();break;case 16:w(1);break;case 15:case 14:break;default:return H}}}function w(H,N,I){if(N===void 0&&(N=[]),I===void 0&&(I=[]),f(H),N.length+I.length>0)for(var A=i.getToken();A!==17;){if(N.indexOf(A)!==-1){y();break}else if(I.indexOf(A)!==-1)break;A=y()}}function x(H){var N=i.getTokenValue();return H?h(N):a(N),y(),!0}function k(){switch(i.getToken()){case 11:var H=i.getTokenValue(),N=Number(H);isNaN(N)&&(w(2),N=0),h(N);break;case 7:h(null);break;case 8:h(!0);break;case 9:h(!1);break;default:return!1}return y(),!0}function L(){return i.getToken()!==10?(w(3,[],[2,5]),!1):(x(!1),i.getToken()===6?(d(":"),y(),W()||w(4,[],[2,5])):w(5,[],[2,5]),!0)}function j(){s(),y();for(var H=!1;i.getToken()!==2&&i.getToken()!==17;){if(i.getToken()===5){if(H||w(4,[],[]),d(","),y(),i.getToken()===2&&b)break}else H&&w(6,[],[]);L()||w(4,[],[2,5]),H=!0}return l(),i.getToken()!==2?w(7,[2],[]):y(),!0}function O(){u(),y();for(var H=!1;i.getToken()!==4&&i.getToken()!==17;){if(i.getToken()===5){if(H||w(4,[],[]),d(","),y(),i.getToken()===4&&b)break}else H&&w(6,[],[]);W()||w(4,[],[4,5]),H=!0}return c(),i.getToken()!==4?w(8,[4],[]):y(),!0}function W(){switch(i.getToken()){case 3:return O();case 1:return j();case 10:return x(!0);default:return k()}}return y(),i.getToken()===17?t.allowEmptyContent?!0:(w(4,[],[]),!1):W()?(i.getToken()!==17&&w(9,[],[]),!0):(w(4,[],[]),!1)}function Qme(n){switch(typeof n){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(n){if(Array.isArray(n))return"array"}else return"null";return"object"}default:return"null"}}var vg,wD=P(()=>{"use strict";Cb();(function(n){n.DEFAULT={allowTrailingComma:!1}})(vg||(vg={}))});function AY(n,e,t,i){for(var r,o=e.slice(),s=[],a=yD(n,s),l=void 0,u=void 0;o.length>0&&(u=o.pop(),l=Sb(a,o),l===void 0&&t!==void 0);)typeof u=="string"?t=(r={},r[u]=t,r):t=[t];if(l)if(l.type==="object"&&typeof u=="string"&&Array.isArray(l.children)){var c=Sb(l,[u]);if(c!==void 0)if(t===void 0){if(!c.parent)throw new Error("Malformed AST");var h=l.children.indexOf(c.parent),d=void 0,g=c.parent.offset+c.parent.length;if(h>0){var f=l.children[h-1];d=f.offset+f.length}else if(d=l.offset+1,l.children.length>1){var p=l.children[1];g=p.offset}return ml(n,{offset:d,length:g-d,content:""},i)}else return ml(n,{offset:c.offset,length:c.length,content:JSON.stringify(t)},i);else{if(t===void 0)return[];var b=JSON.stringify(u)+": "+JSON.stringify(t),y=i.getInsertionIndex?i.getInsertionIndex(l.children.map(function(H){return H.children[0].value})):l.children.length,w=void 0;if(y>0){var f=l.children[y-1];w={offset:f.offset+f.length,length:0,content:","+b}}else l.children.length===0?w={offset:l.offset+1,length:0,content:b}:w={offset:l.offset+1,length:0,content:b+","};return ml(n,w,i)}}else if(l.type==="array"&&typeof u=="number"&&Array.isArray(l.children)){var x=u;if(x===-1){var b=""+JSON.stringify(t),w=void 0;if(l.children.length===0)w={offset:l.offset+1,length:0,content:b};else{var f=l.children[l.children.length-1];w={offset:f.offset+f.length,length:0,content:","+b}}return ml(n,w,i)}else if(t===void 0&&l.children.length>=0){var k=u,L=l.children[k],w=void 0;if(l.children.length===1)w={offset:l.offset+1,length:l.length-2,content:""};else if(l.children.length-1===k){var f=l.children[k-1],j=f.offset+f.length,O=l.offset+l.length;w={offset:j,length:O-2-j,content:""}}else w={offset:L.offset,length:l.children[k+1].offset-L.offset,content:""};return ml(n,w,i)}else if(t!==void 0){var w=void 0,b=""+JSON.stringify(t);if(!i.isArrayInsertion&&l.children.length>u){var W=l.children[u];w={offset:W.offset,length:W.length,content:b}}else if(l.children.length===0||u===0)w={offset:l.offset+1,length:0,content:l.children.length===0?b:b+","};else{var y=u>l.children.length?l.children.length:u,f=l.children[y-1];w={offset:f.offset+f.length,length:0,content:","+b}}return ml(n,w,i)}else throw new Error("Can not "+(t===void 0?"remove":i.isArrayInsertion?"insert":"modify")+" Array index "+x+" as length is not sufficient")}else throw new Error("Can not add "+(typeof u!="number"?"index":"property")+" to parent of type "+l.type);else{if(t===void 0)throw new Error("Can not delete in empty document");return ml(n,{offset:a?a.offset:0,length:a?a.length:0,content:JSON.stringify(t)},i)}}function ml(n,e,t){if(!t.formattingOptions)return[e];var i=Tb(n,e),r=e.offset,o=e.offset+e.content.length;if(e.length===0||e.content.length===0){for(;r>0&&!yg(i,r-1);)r--;for(;o<i.length&&!yg(i,o);)o++}for(var s=mD(i,{offset:r,length:o-r},t.formattingOptions),a=s.length-1;a>=0;a--){var l=s[a];i=Tb(i,l),r=Math.min(r,l.offset),o=Math.max(o,l.offset+l.length),o+=l.content.length-l.length}var u=n.length-(i.length-o)-r;return[{offset:r,length:u,content:i.substring(r,o)}]}function Tb(n,e){return n.substring(0,e.offset)+e.content+n.substring(e.offset+e.length)}var NY=P(()=>{"use strict";bD();wD()});function HY(n,e,t,i){return AY(n,e,t,i)}function qY(n,e){for(var t=e.length-1;t>=0;t--)n=Tb(n,e[t]);return n}var kc,wg=P(()=>{"use strict";bD();NY();Cb();wD();kc=MY});function YY(n){let e={};for(let t of Object.keys(n))if(t.indexOf(".")==-1)e[t]=n[t];else{let i=t.split("."),r=e,o=i.length;for(let s=0;s<o;s++){let a=i[s];s==o-1?r[a]=n[t]:(r[a]=r[a]||{},r=r[a])}}return e}function WY(n,e){if(!n||!kb.default.existsSync(n))return{contents:{}};let t,i=M.file(n).toString();try{t=kb.default.readFileSync(n,"utf8")}catch{t=""}let[r,o]=nbe(t);return r&&r.length&&e(rbe(i,t,r)),{contents:o}}function nbe(n){if(n.length==0)return[[],{}];let e=[],t=kc(n,e,{allowTrailingComma:!0});function i(o,s,a,l){if(a.length==0)o[s]=r(l);else{o[s]||(o[s]={});let u=o[s],c=a.shift();i(u,c,a,l)}}function r(o,s=!1){if(!Dt(o))return o;if(VH(o))return{};let a={};for(let l of Object.keys(o))if(s&&l.includes(".")&&!/^.+:\//.test(l)){let u=l.split("."),c=u.shift();i(a,c,u,o[l])}else a[l]=r(o[l]);return a}return[e,r(t,!0)]}function rbe(n,e,t){let i=[],r=Fn.create(n,"json",0,e);for(let o of t){let s="parse error";switch(o.error){case 2:s="invalid number";break;case 8:s="close brace expected";break;case 5:s="colon expected";break;case 6:s="comma expected";break;case 9:s="end of file expected";break;case 16:s="invaliad character";break;case 10:s="invalid comment token";break;case 15:s="invalid escape character";break;case 1:s="invalid symbol";break;case 14:s="invalid unicode";break;case 3:s="property name expected";break;case 13:s="unexpected end of number";break;case 12:s="unexpected end of string";break;case 11:s="unexpected end of comment";break;case 4:s="value expected";break;default:s="Unknown error";break}let a={start:r.positionAt(o.offset),end:r.positionAt(o.offset+o.length)},l=BY.Location.create(n,a);i.push({location:l,message:s})}return i}function xg(n,e,t,i){let r=e.split("."),o=r.pop(),s=n;for(let a=0;a<r.length;a++){let l=r[a],u=s[l];switch(typeof u){case"function":{u=s[l]={};break}case"undefined":{u=s[l]={};break}case"object":break;default:i(`Ignoring ${e} as ${r.slice(0,a+1).join(".")} is ${JSON.stringify(u)}`);return}s=u}typeof s=="object"?s[o]=t:i(`Ignoring ${e} as ${r.join(".")} is ${JSON.stringify(s)}`)}function ZY(n,e){let t=e.split(".");JY(n,t)}function JY(n,e){let t=e.shift();if(e.length===0){delete n[t];return}if(Object.keys(n).includes(t)){let i=n[t];typeof i=="object"&&!Array.isArray(i)&&(JY(i,e),Object.keys(i).length===0&&delete n[t])}}function Db(n,e,t){function i(s,a){let l=s;for(let u=0;u<a.length;u++){if(typeof l!="object"||l===null)return;l=l[a[u]]}return l}let r=e.split("."),o=i(n,r);return typeof o>"u"?t:o}function CD(){let n=Eb.default.join(ibe,"data/schema.json"),e=kb.default.readFileSync(n,"utf8"),{properties:t}=JSON.parse(e),i={};return Object.keys(t).forEach(r=>{let o=t[r].default;o!==void 0&&xg(i,r,o,s=>{tbe.error(s)})}),{contents:i}}function xD(n,e){let t=[];for(let i of Object.keys(n)){let r=n[i],o=e?`${e}.${i}`:i;t.push(o),Dt(r)&&t.push(...xD(r,o))}return t}function $Y(n,e){let t=[],i=xD(n),r=xD(e),o=r.filter(a=>!i.includes(a)),s=i.filter(a=>!r.includes(a));t.push(...o),t.push(...s);for(let a of i){if(!r.includes(a))continue;let l=Db(n,a),u=Db(e,a);_e(l,u)||t.push(a)}return t}var BY,kb,Eb,tbe,ibe,_b=P(()=>{"use strict";BY=S(q());Sc();wg();jn();Ht();kb=S(require("fs"));we();Eb=S(require("path")),tbe=Y()("configuration-util"),ibe=(0,Eb.dirname)(__dirname)});var hn,SD=P(()=>{"use strict";jn();Ht();_b();hn=class{constructor(e={}){this._contents=e}get contents(){return this._contents}clone(){return new hn(_r(this._contents))}getValue(e){return e?Db(this.contents,e):this.contents}merge(...e){let t=_r(this.contents);for(let i of e)this.mergeContents(t,i.contents);return new hn(t)}freeze(){return Object.isFrozen(this._contents)||Object.freeze(this._contents),this}mergeContents(e,t){for(let i of Object.keys(t)){if(i in e&&Dt(e[i])&&Dt(t[i])){this.mergeContents(e[i],t[i]);continue}e[i]=_r(t[i])}}setValue(e,t){xg(this.contents,e,t,i=>{console.error(i)})}removeValue(e){ZY(this.contents,e)}}});var Pb,XY=P(()=>{"use strict";SD();Pb=class{constructor(e,t,i,r=new hn){this._defaultConfiguration=e;this._userConfiguration=t;this._workspaceConfiguration=i;this._memoryConfiguration=r}getConsolidateConfiguration(){return this._consolidateConfiguration||(this._consolidateConfiguration=this._defaultConfiguration.merge(this._userConfiguration,this._workspaceConfiguration,this._memoryConfiguration),this._consolidateConfiguration=this._consolidateConfiguration.freeze()),this._consolidateConfiguration}getValue(e){return this.getConsolidateConfiguration().getValue(e)}inspect(e){let t=this.getConsolidateConfiguration(),{_workspaceConfiguration:i,_memoryConfiguration:r}=this;return{default:this._defaultConfiguration.freeze().getValue(e),user:this._userConfiguration.freeze().getValue(e),workspace:i.freeze().getValue(e),memory:r.freeze().getValue(e),value:t.getValue(e)}}get defaults(){return this._defaultConfiguration}get user(){return this._userConfiguration}get workspace(){return this._workspaceConfiguration}toData(){return{defaults:{contents:this._defaultConfiguration.contents},user:{contents:this._userConfiguration.contents},workspace:{contents:this._workspaceConfiguration.contents}}}}});function TD(n,e){if(e){if(n&&n.hasOwnProperty(e))return n[e];let t=e.split("."),i=n;for(let r=0;i&&r<t.length;r++)i=i[t[r]];return i}return n}var kD,UY,Vr,DD,Dc,Zo,GY=P(()=>{"use strict";kD=S(require("fs")),UY=S(require("os")),Vr=S(require("path")),DD=S(q());we();Lr();z();Xe();jn();Ht();XY();SD();_b();Dc=Y()("configurations");Zo=class{constructor(e,t){this.userConfigFile=e;this._proxy=t;this.cwd=process.cwd();this._errorItems=[];this._folderConfigurations=new Map;this._onError=new DD.Emitter;this._onChange=new DD.Emitter;this.disposables=[];this.onError=this._onError.event;this.onDidChange=this._onChange.event;let i=this.parseContentFromFile(e),r={defaults:CD(),user:i,workspace:{contents:{}}};this._configuration=Zo.parse(r),this.watchFile(e,1),this.addFolderFromCwd()}parseContentFromFile(e){if(!e)return{contents:{}};let t=M.file(e).toString();this._errorItems=this._errorItems.filter(r=>r.location.uri!=t);let i=WY(e,r=>{this._errorItems.push(...r)});return this._onError.fire(this._errorItems),i}get errorItems(){return this._errorItems}get foldConfigurations(){return this._folderConfigurations}extendsDefaults(e){let{defaults:t}=this._configuration,{contents:i}=t;i=_r(i),Object.keys(e).forEach(o=>{xg(i,o,e[o],s=>{Dc.error(s)})});let r={defaults:{contents:i},user:this._configuration.user,workspace:this._configuration.workspace};this._configuration=Zo.parse(r)}updateUserConfig(e){if(!e||Object.keys(e).length==0)return;let{user:t}=this._configuration,i=t.clone();Object.keys(e).forEach(r=>{let o=e[r];if(o===void 0)i.removeValue(r);else if(Dt(o))for(let s of Object.keys(o))i.setValue(`${r}.${s}`,o[s]);else i.setValue(r,o)}),this.changeConfiguration(1,i,void 0)}get defaults(){return this._configuration.defaults}get user(){return this._configuration.user}get workspace(){return this._configuration.workspace}addFolderFile(e,t=!0,i=!1){if(!kD.default.existsSync(e)||ei(this.userConfigFile,e)||ei(e,Vr.default.join(UY.default.homedir(),`.vim/${Er}`)))return!1;this._folderConfigurations.has(e)||this.watchFile(e,2);let r=this.updateFolderConfiguration(e);return Dc.info(`Add folder configuration from ${i?"cwd":"file"}:`,e),t&&this.workspaceConfigFile!==e&&(this.workspaceConfigFile=e,Dc.info(`Change folder configuration from ${i?"cwd":"file"} to:`,e),this.changeConfiguration(2,r,e)),!0}addFolderFromCwd(){let e=Vr.default.join(this.cwd,`.vim/${Er}`);this.addFolderFile(e,!0,!0)}watchFile(e,t){if(!kD.default.existsSync(e)||global.__TEST__)return;let i=t===2,r=rc(e,()=>{let o=this.parseContentFromFile(e);i?(this._folderConfigurations.set(e,new hn(o.contents)),ei(this.workspaceConfigFile,e)&&this.changeConfiguration(t,o,e)):this.changeConfiguration(t,o,e)});this.disposables.push(r)}updateFolderConfiguration(e){let t=this.parseContentFromFile(e);return this._folderConfigurations.set(e,new hn(t.contents)),t}changeConfiguration(e,t,i){let{defaults:r,user:o,workspace:s}=this._configuration,a={defaults:e==0?t:r,user:e==1?t:o,workspace:e==2?t:s},l=Zo.parse(a),u=$Y(this._configuration.getValue(),l.getValue());u.length!=0&&(this._configuration=l,this._onChange.fire({affectsConfiguration:(c,h)=>{if(!h||!h.startsWith("file:")||e!=2)return u.includes(c);let g=M.parse(h).fsPath;return i&&!Ae(Vr.default.resolve(i,"../.."),g)?!1:u.includes(c)}}))}getFolderConfigFile(e){let{folders:t}=this,i=t.find(r=>Ae(r,e,!0));return i?Vr.default.join(i,`.vim/${Er}`):void 0}getConfigFile(e){return e==0?null:e==1?this.userConfigFile:this.workspaceConfigFile}get folders(){let e=[],{_folderConfigurations:t}=this;for(let i of t.keys())e.push(Vr.default.resolve(i,"../.."));return e}get configuration(){return this._configuration}getWorkspaceConfigUri(e){let t;return e||(t=this.workspaceConfigFile?M.file(this.workspaceConfigFile):void 0),!t&&this._proxy&&typeof this._proxy.getWorkspaceConfig=="function"&&(t=this._proxy.getWorkspaceConfig(e),t&&ei(this.userConfigFile,t.fsPath)&&(t=void 0)),t}getConfiguration(e,t){let i,r;if(t){let{defaults:a,user:l}=this._configuration,[u,c]=this.getFolderConfiguration(t);r=u,i=new Pb(a,l,c)}else r=this.workspaceConfigFile?M.file(this.workspaceConfigFile):void 0,i=this._configuration;let o=Object.freeze(TD(i.getValue(null),e)),s={has(a){return typeof TD(o,a)<"u"},get:(a,l)=>{let u=TD(o,a);return u==null?l:u},update:(a,l,u=!1)=>{let c=e?`${e}.${a}`:a,h=u?1:2,d=h==1?this.user.clone():this.workspace.clone();if(l===void 0?d.removeValue(c):d.setValue(c,l),r||(r=this.getWorkspaceConfigUri(t)),r&&!ei(this.workspaceConfigFile,r.fsPath)&&(Dc.info(`Change folder configuration ${t?"by "+t:""} to:`,r.fsPath),this.workspaceConfigFile=r.fsPath),this.changeConfiguration(h,d,h==2?this.workspaceConfigFile:this.userConfigFile),!u&&!r){global.__TEST__||console.error(`Unable to locate workspace configuration ${t?"for "+t:""}, workspace folder not resolved.`),Dc.error("Unable to locate workspace configuration",t);return}let g=u?M.parse(this.userConfigFile):r;this._proxy&&!global.__TEST__&&(l===void 0?this._proxy.$removeConfigurationOption(h,c,{resource:g}):this._proxy.$updateConfigurationOption(h,c,l,{resource:g})),!u&&r&&this.addFolderFile(r.fsPath,!1)},inspect:a=>{a=e?`${e}.${a}`:a;let l=this._configuration.inspect(a);return{key:a,defaultValue:l.default,globalValue:l.user,workspaceValue:l.workspace}}};return Object.defineProperty(s,"has",{enumerable:!1}),Object.defineProperty(s,"get",{enumerable:!1}),Object.defineProperty(s,"update",{enumerable:!1}),Object.defineProperty(s,"inspect",{enumerable:!1}),typeof o=="object"&&vk(s,o,!1),eq(s)}getFolderConfiguration(e){let t=M.parse(e),i;t.scheme!="file"?i=this.cwd:i=t.fsPath;for(let[r,o]of this.foldConfigurations){let s=Vr.default.resolve(r,"../..");if(Ae(s,i,!0))return[M.file(r),o]}return[void 0,new hn]}resolveFolderConfigution(e){let t=M.parse(e);if(t.scheme!="file")return;let i=Vr.default.dirname(t.fsPath),r=this.getFolderConfigFile(i);if(r)return r;let o=bc(".vim",i);if(!o)return;let s=Vr.default.join(o,Er);if(!!this.addFolderFile(s,!1))return s}setFolderConfiguration(e){let t=M.parse(e);if(t.scheme!="file")return;let i=t.fsPath;for(let[r,o]of this.foldConfigurations){let s=Vr.default.resolve(r,"../..");if(Ae(s,i,!0)){this.workspaceConfigFile!=r&&(this.workspaceConfigFile=r,Dc.info("Change folder configuration to:",r),this.changeConfiguration(2,o,r));break}}}static parse(e){let t=new hn(e.defaults.contents),i=new hn(e.user.contents),r=new hn(e.workspace.contents);return new Pb(t,i,r,new hn)}reset(){this._errorItems=[],this._folderConfigurations.clear();let e=this.parseContentFromFile(this.userConfigFile),t={defaults:CD(),user:e,workspace:{contents:{}}};this._configuration=Zo.parse(t),this._onChange.fire({affectsConfiguration:()=>!0})}dispose(){this._folderConfigurations.clear(),this._onError.dispose(),this._onChange.dispose(),J(this.disposables)}}});var Cg,KY,ED,obe,Rb,zY=P(()=>{"use strict";Cg=S(require("fs"));wg();KY=S(require("os")),ED=S(require("path"));we();z();Xe();obe=Y()("configuration-shape"),Rb=class{constructor(e){this.resolver=e}modifyConfiguration(e,t,i){if(!e||e.scheme!=="file")return;obe.info("modify configuration file:",e.fsPath);let r=e.fsPath,o=ED.default.dirname(r),s={tabSize:2,insertSpaces:!0};Cg.default.existsSync(o)||Cg.default.mkdirSync(o,{recursive:!0});let a=Cg.default.readFileSync(r,{encoding:"utf8",flag:"a+"});a=a||"{}";let l=HY(a,[t],i,{formattingOptions:s});a=qY(a,l),Cg.default.writeFileSync(r,a,"utf8")}getWorkspaceConfig(e){let t;if(e){if(typeof this.resolver.getWorkspaceFolder=="function"){let i=this.resolver.getWorkspaceFolder(e);i&&(t=M.parse(i.uri).fsPath)}}else t=this.resolver.root;if(t&&!ei(t,KY.default.homedir()))return M.file(ED.default.join(t,".vim",Er))}$updateConfigurationOption(e,t,i,r){this.modifyConfiguration(r==null?void 0:r.resource,t,i)}$removeConfigurationOption(e,t,i){this.modifyConfiguration(i==null?void 0:i.resource,t)}}});var _D,QY,PD,VY,sbe,Lb,eW=P(()=>{"use strict";_D=S(Rn()),QY=S(require("os")),PD=S(require("path")),VY=S(q());z();sbe=Y()("core-autocmds"),Lb=class{constructor(e,t){this.contentProvider=e;this.watchers=t;this._dynAutocmd=!1;this.autocmdMaxId=0;this.autocmds=new Map;this.disposables=[];this.contentProvider.onDidProviderChange(()=>{this.setupDynamicAutocmd()},null,this.disposables),this.watchers.onDidOptionChange(()=>{this.setupDynamicAutocmd()},null,this.disposables)}attach(e,t){this.nvim=e,this.env=t}async doAutocmd(e,t){let i=this.autocmds.get(e);if(i){let r=Array.isArray(i.event)?i.event.join(","):i.event;sbe.debug(`invoke ${i.request?"request":"notify"} autocmd:`,r),await Promise.resolve(i.callback.apply(i.thisArg,t))}}registerAutocmd(e){this.autocmdMaxId+=1;let t=this.autocmdMaxId;return this.autocmds.set(t,e),this.setupDynamicAutocmd(),VY.Disposable.create(()=>{this.autocmds.delete(t),this.setupDynamicAutocmd()})}setupDynamicAutocmd(e=!1){if(!e&&!this._dynAutocmd)return;this._dynAutocmd=!0;let t=this.contentProvider.schemes,i=[];for(let o of t)i.push(`autocmd BufReadCmd,FileReadCmd,SourceCmd ${o}:/* call coc#rpc#request('CocAutocmd', ['BufReadCmd','${o}', expand('<afile>')])`);for(let[o,s]of this.autocmds.entries()){let a=s.arglist&&s.arglist.length?", "+s.arglist.join(", "):"",l=Array.isArray(s.event)?s.event.join(","):s.event,u=s.pattern!=null?s.pattern:"*";/\buser\b/i.test(l)&&(u=""),i.push(`autocmd ${l} ${u} call coc#rpc#${s.request?"request":"notify"}('doAutocmd', [${o}${a}])`)}for(let o of this.watchers.options)i.push(`autocmd OptionSet ${o} call coc#rpc#notify('OptionSet',[expand('<amatch>'), v:option_old, v:option_new])`);let r=`
augroup coc_dynamic_autocmd
autocmd!
${i.join(`
`)}
augroup end`;if(this.nvim.hasFunction("nvim_exec"))this.nvim.exec(r,!1);else{let o=PD.default.join(process.env.TMPDIR||QY.default.tmpdir(),`coc.nvim-${process.pid}.vim`);_D.default.mkdirSync(o,{recursive:!0});let s=PD.default.join(o,`coc-${process.pid}.vim`);_D.default.writeFileSync(s,r,"utf8");let a=`source ${s}`;this.env.isCygwin&&qo.isWindows&&(a=`execute "source" . substitute(system('cygpath ${s.replace(/\\/g,"/")}'), '\\n', '', 'g')`),this.nvim.command(a)}}dispose(){this.nvim.command("augroup coc_dynamic_autocmd| autocmd!|augroup end",!0),J(this.disposables)}}});var bl,Ib,tW=P(()=>{"use strict";bl=S(q());we();he();z();Ib=class{constructor(e){this.documents=e;this.disposables=[];this.providers=new Map;this._onDidProviderChange=new bl.Emitter;this.onDidProviderChange=this._onDidProviderChange.event}attach(e){this.nvim=e,_.on("BufReadCmd",this.onBufReadCmd,this,this.disposables)}get schemes(){return Array.from(this.providers.keys())}async onBufReadCmd(e,t){let i=this.providers.get(e);if(!i)return;let r=new bl.CancellationTokenSource,o=await Promise.resolve(i.provideTextDocumentContent(M.parse(t),r.token)),s=await this.nvim.buffer;await s.setLines(o.split(/\r?\n/),{start:0,end:-1,strictIndexing:!1}),process.nextTick(()=>{_.fire("BufCreate",[s.id])})}registerTextDocumentContentProvider(e,t){this.providers.set(e,t),this._onDidProviderChange.fire();let i=[];return t.onDidChange&&t.onDidChange(async r=>{let{buffer:o}=this.documents.getDocument(r.toString()),s=new bl.CancellationTokenSource,a=await Promise.resolve(t.provideTextDocumentContent(r,s.token));await o.setLines(a.split(/\r?\n/),{start:0,end:-1,strictIndexing:!1})},null,i),bl.Disposable.create(()=>{this.providers.delete(e),J(i),this._onDidProviderChange.fire()})}dispose(){J(this.disposables),this._onDidProviderChange.dispose(),this.providers.clear()}}});var rW=m((YLe,jb)=>{"use strict";jb.exports=cbe;jb.exports.format=iW;jb.exports.parse=nW;var abe=/\B(?=(\d{3})+(?!\d))/g,lbe=/(?:\.0*|(\.[^0]+)0+)$/,zs={b:1,kb:1<<10,mb:1<<20,gb:1<<30,tb:Math.pow(1024,4),pb:Math.pow(1024,5)},ube=/^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb|pb)$/i;function cbe(n,e){return typeof n=="string"?nW(n):typeof n=="number"?iW(n,e):null}function iW(n,e){if(!Number.isFinite(n))return null;var t=Math.abs(n),i=e&&e.thousandsSeparator||"",r=e&&e.unitSeparator||"",o=e&&e.decimalPlaces!==void 0?e.decimalPlaces:2,s=Boolean(e&&e.fixedDecimals),a=e&&e.unit||"";(!a||!zs[a.toLowerCase()])&&(t>=zs.pb?a="PB":t>=zs.tb?a="TB":t>=zs.gb?a="GB":t>=zs.mb?a="MB":t>=zs.kb?a="KB":a="B");var l=n/zs[a.toLowerCase()],u=l.toFixed(o);return s||(u=u.replace(lbe,"$1")),i&&(u=u.replace(abe,i)),u+r+a}function nW(n){if(typeof n=="number"&&!isNaN(n))return n;if(typeof n!="string")return null;var e=ube.exec(n),t,i="b";return e?(t=parseFloat(e[1]),i=e[4].toLowerCase()):(t=parseInt(n,10),i="b"),Math.floor(zs[i]*t)}});var Ob=m((WLe,hW)=>{var eo=-1,Ir=1,dn=0;function Sg(n,e,t,i){if(n===e)return n?[[dn,n]]:[];if(t!=null){var r=pbe(n,e,t);if(r)return r}var o=LD(n,e),s=n.substring(0,o);n=n.substring(o),e=e.substring(o),o=ID(n,e);var a=n.substring(n.length-o);n=n.substring(0,n.length-o),e=e.substring(0,e.length-o);var l=hbe(n,e);return s&&l.unshift([dn,s]),a&&l.push([dn,a]),sW(l,i),l}function hbe(n,e){var t;if(!n)return[[Ir,e]];if(!e)return[[eo,n]];var i=n.length>e.length?n:e,r=n.length>e.length?e:n,o=i.indexOf(r);if(o!==-1)return t=[[Ir,i.substring(0,o)],[dn,r],[Ir,i.substring(o+r.length)]],n.length>e.length&&(t[0][0]=t[2][0]=eo),t;if(r.length===1)return[[eo,n],[Ir,e]];var s=gbe(n,e);if(s){var a=s[0],l=s[1],u=s[2],c=s[3],h=s[4],d=Sg(a,u),g=Sg(l,c);return d.concat([[dn,h]],g)}return dbe(n,e)}function dbe(n,e){for(var t=n.length,i=e.length,r=Math.ceil((t+i)/2),o=r,s=2*r,a=new Array(s),l=new Array(s),u=0;u<s;u++)a[u]=-1,l[u]=-1;a[o+1]=0,l[o+1]=0;for(var c=t-i,h=c%2!==0,d=0,g=0,f=0,p=0,b=0;b<r;b++){for(var y=-b+d;y<=b-g;y+=2){var w=o+y,x;y===-b||y!==b&&a[w-1]<a[w+1]?x=a[w+1]:x=a[w-1]+1;for(var k=x-y;x<t&&k<i&&n.charAt(x)===e.charAt(k);)x++,k++;if(a[w]=x,x>t)g+=2;else if(k>i)d+=2;else if(h){var L=o+c-y;if(L>=0&&L<s&&l[L]!==-1){var j=t-l[L];if(x>=j)return oW(n,e,x,k)}}}for(var O=-b+f;O<=b-p;O+=2){var L=o+O,j;O===-b||O!==b&&l[L-1]<l[L+1]?j=l[L+1]:j=l[L-1]+1;for(var W=j-O;j<t&&W<i&&n.charAt(t-j-1)===e.charAt(i-W-1);)j++,W++;if(l[L]=j,j>t)p+=2;else if(W>i)f+=2;else if(!h){var w=o+c-O;if(w>=0&&w<s&&a[w]!==-1){var x=a[w],k=o+x-w;if(j=t-j,x>=j)return oW(n,e,x,k)}}}}return[[eo,n],[Ir,e]]}function oW(n,e,t,i){var r=n.substring(0,t),o=e.substring(0,i),s=n.substring(t),a=e.substring(i),l=Sg(r,o),u=Sg(s,a);return l.concat(u)}function LD(n,e){if(!n||!e||n.charAt(0)!==e.charAt(0))return 0;for(var t=0,i=Math.min(n.length,e.length),r=i,o=0;t<r;)n.substring(o,r)==e.substring(o,r)?(t=r,o=t):i=r,r=Math.floor((i-t)/2+t);return aW(n.charCodeAt(r-1))&&r--,r}function ID(n,e){if(!n||!e||n.slice(-1)!==e.slice(-1))return 0;for(var t=0,i=Math.min(n.length,e.length),r=i,o=0;t<r;)n.substring(n.length-r,n.length-o)==e.substring(e.length-r,e.length-o)?(t=r,o=t):i=r,r=Math.floor((i-t)/2+t);return lW(n.charCodeAt(n.length-r))&&r--,r}function gbe(n,e){var t=n.length>e.length?n:e,i=n.length>e.length?e:n;if(t.length<4||i.length*2<t.length)return null;function r(g,f,p){for(var b=g.substring(p,p+Math.floor(g.length/4)),y=-1,w="",x,k,L,j;(y=f.indexOf(b,y+1))!==-1;){var O=LD(g.substring(p),f.substring(y)),W=ID(g.substring(0,p),f.substring(0,y));w.length<W+O&&(w=f.substring(y-W,y)+f.substring(y,y+O),x=g.substring(0,p-W),k=g.substring(p+O),L=f.substring(0,y-W),j=f.substring(y+O))}return w.length*2>=g.length?[x,k,L,j,w]:null}var o=r(t,i,Math.ceil(t.length/4)),s=r(t,i,Math.ceil(t.length/2)),a;if(!o&&!s)return null;s?o?a=o[4].length>s[4].length?o:s:a=s:a=o;var l,u,c,h;n.length>e.length?(l=a[0],u=a[1],c=a[2],h=a[3]):(c=a[0],h=a[1],l=a[2],u=a[3]);var d=a[4];return[l,u,c,h,d]}function sW(n,e){n.push([dn,""]);for(var t=0,i=0,r=0,o="",s="",a;t<n.length;){if(t<n.length-1&&!n[t][1]){n.splice(t,1);continue}switch(n[t][0]){case Ir:r++,s+=n[t][1],t++;break;case eo:i++,o+=n[t][1],t++;break;case dn:var l=t-r-i-1;if(e){if(l>=0&&cW(n[l][1])){var u=n[l][1].slice(-1);if(n[l][1]=n[l][1].slice(0,-1),o=u+o,s=u+s,!n[l][1]){n.splice(l,1),t--;var c=l-1;n[c]&&n[c][0]===Ir&&(r++,s=n[c][1]+s,c--),n[c]&&n[c][0]===eo&&(i++,o=n[c][1]+o,c--),l=c}}if(uW(n[t][1])){var u=n[t][1].charAt(0);n[t][1]=n[t][1].slice(1),o+=u,s+=u}}if(t<n.length-1&&!n[t][1]){n.splice(t,1);break}if(o.length>0||s.length>0){o.length>0&&s.length>0&&(a=LD(s,o),a!==0&&(l>=0?n[l][1]+=s.substring(0,a):(n.splice(0,0,[dn,s.substring(0,a)]),t++),s=s.substring(a),o=o.substring(a)),a=ID(s,o),a!==0&&(n[t][1]=s.substring(s.length-a)+n[t][1],s=s.substring(0,s.length-a),o=o.substring(0,o.length-a)));var h=r+i;o.length===0&&s.length===0?(n.splice(t-h,h),t=t-h):o.length===0?(n.splice(t-h,h,[Ir,s]),t=t-h+1):s.length===0?(n.splice(t-h,h,[eo,o]),t=t-h+1):(n.splice(t-h,h,[eo,o],[Ir,s]),t=t-h+2)}t!==0&&n[t-1][0]===dn?(n[t-1][1]+=n[t][1],n.splice(t,1)):t++,r=0,i=0,o="",s="";break}}n[n.length-1][1]===""&&n.pop();var d=!1;for(t=1;t<n.length-1;)n[t-1][0]===dn&&n[t+1][0]===dn&&(n[t][1].substring(n[t][1].length-n[t-1][1].length)===n[t-1][1]?(n[t][1]=n[t-1][1]+n[t][1].substring(0,n[t][1].length-n[t-1][1].length),n[t+1][1]=n[t-1][1]+n[t+1][1],n.splice(t-1,1),d=!0):n[t][1].substring(0,n[t+1][1].length)==n[t+1][1]&&(n[t-1][1]+=n[t+1][1],n[t][1]=n[t][1].substring(n[t+1][1].length)+n[t+1][1],n.splice(t+1,1),d=!0)),t++;d&&sW(n,e)}function aW(n){return n>=55296&&n<=56319}function lW(n){return n>=56320&&n<=57343}function uW(n){return lW(n.charCodeAt(0))}function cW(n){return aW(n.charCodeAt(n.length-1))}function fbe(n){for(var e=[],t=0;t<n.length;t++)n[t][1].length>0&&e.push(n[t]);return e}function RD(n,e,t,i){return cW(n)||uW(i)?null:fbe([[dn,n],[eo,e],[Ir,t],[dn,i]])}function pbe(n,e,t){var i=typeof t=="number"?{index:t,length:0}:t.oldRange,r=typeof t=="number"?null:t.newRange,o=n.length,s=e.length;if(i.length===0&&(r===null||r.length===0)){var a=i.index,l=n.slice(0,a),u=n.slice(a),c=r?r.index:null;e:{var h=a+s-o;if(c!==null&&c!==h||h<0||h>s)break e;var d=e.slice(0,h),g=e.slice(h);if(g!==u)break e;var f=Math.min(a,h),p=l.slice(0,f),b=d.slice(0,f);if(p!==b)break e;var y=l.slice(f),w=d.slice(f);return RD(p,y,w,u)}e:{if(c!==null&&c!==a)break e;var x=a,d=e.slice(0,x),g=e.slice(x);if(d!==l)break e;var k=Math.min(o-x,s-x),L=u.slice(u.length-k),j=g.slice(g.length-k);if(L!==j)break e;var y=u.slice(0,u.length-k),w=g.slice(0,g.length-k);return RD(l,y,w,L)}}if(i.length>0&&r&&r.length===0){e:{var p=n.slice(0,i.index),L=n.slice(i.index+i.length),f=p.length,k=L.length;if(s<f+k)break e;var b=e.slice(0,f),j=e.slice(s-k);if(p!==b||L!==j)break e;var y=n.slice(f,o-k),w=e.slice(f,s-k);return RD(p,y,w,L)}}return null}function Fb(n,e,t){return Sg(n,e,t,!0)}Fb.INSERT=Ir;Fb.DELETE=eo;Fb.EQUAL=dn;hW.exports=Fb});function dW(n,e,t){let i=0,r=0,o=n.slice(t+1);for(let l=0;l<Math.min(o.length,e.length)&&o[o.length-1-l]==e[e.length-1-l];l++)i=i+1;for(let l=0;l<=Math.min(t,e.length-1-i)&&n[l]==e[l];l++)r=r+1;let s=e.slice(r,e.length-i),a=n.length-i;if(a>r&&s.length){let l=0;for(let u=0;u<Math.min(s.length,a-r)&&s[u]==n[r+u];u++)l=l+1;if(l)return{start:r+l,end:a,replacement:s.slice(l)}}return{start:r,end:a,replacement:s}}function gW(n,e,t=" "){if(n==e)return e;let i=e.indexOf(n);if(i!==-1)return t.repeat(i)+n;let r=(0,Mb.default)(n,e),o="";for(let s of r){if(s[0]==Mb.default.DELETE)return e;s[0]==Mb.default.INSERT?o=o+t.repeat(V(s[1])):o=o+s[1]}return o}function fW(n,e,t,i){let r=n.length,o=e.length,s=t?t.line:Math.min(r,o),a=0;for(let g=0;g<s&&e[g]===n[g];g++)a+=1;if(r==o&&a==r)return;let l=o-r,u=Math.min(r-a,o-a),c=0;for(let g=0;g<u&&e[o-g-1]===n[r-g-1];g++)c+=1;let h=c==0?e.slice(a):e.slice(a,-c);if(l==0&&t&&h.length==1){let g=e[a],f=n[a],p=g.length,b=f.length;if(p===0)return ln.del(Me.create(a,0,a,b));if(b===0)return ln.insert(mi.create(a,0),g);let y=Math.min(t.character,p);!i&&p>=b&&y!==p&&(y+=1);let w=0;for(let L=0;L<p-y;L++){let j=b-1-L;if(j===-1)break;if(g[p-1-L]===f[j])w+=1;else break}let x=0;for(let L=0;L<Math.min(b-w,p-w)&&g[L]===f[L];L++)x+=1;let k=w===0?g.slice(x):g.slice(x,-w);return ln.replace(Me.create(a,x,a,b-w),k)}let d=h.length>0?h.join(`
`)+`
`:"";if(!(d.length===0&&a===r-c))return ln.replace(Me.create(a,0,r-c,0),d)}var Mb,$Le,jD=P(()=>{"use strict";Mb=S(Ob());No();Fe();$Le=Y()("util-diff")});function Qs(n){let{newText:e}=n,t=Ab(n.range),i=t.end.line-t.start.line;return e.split(/\r?\n/).length-i-1}function Ab(n){let e=n.start,t=n.end;return e.line>t.line||e.line===t.line&&e.character>t.character?{start:t,end:e}:n}function FD(n,e){if(n.length<=1)return n;let t=n.length/2|0,i=n.slice(0,t),r=n.slice(t);FD(i,e),FD(r,e);let o=0,s=0,a=0;for(;o<i.length&&s<r.length;)e(i[o],r[s])<=0?n[a++]=i[o++]:n[a++]=r[s++];for(;o<i.length;)n[a++]=i[o++];for(;s<r.length;)n[a++]=r[s++];return n}function pW(n){let{changes:e,documentChanges:t}=n;return!(t&&t.length||e&&Object.keys(e).length)}function mW(n,e){let t=[],i=n.end,r=i.line>0&&i.character==0,o;for(let s=0;s<e.length;s++){let a=e[s],{newText:l}=a,u=xY(a.range);if(o){if(wY(o,u.start)&&Ct(u)&&l.length>0){let h=t[t.length-1];h.newText=l,o=void 0;continue}o=void 0}l.includes("\r")&&(l=l.replace(/\r\n/g,`
`));let c=xe(u.end,i);if(c>0&&(u.end={line:i.line,character:i.character}),n.getText(u)!==l){if(c===0&&r&&!Ct(u)&&l.endsWith(`
`)){l=l.slice(0,-1);let h=n.lines[i.line-1];u.end=Vs.Position.create(i.line-1,h.length)}else l.length==0&&(o=u.start);t.push({range:u,newText:l})}}return FD(t,(s,a)=>{let l=s.range.start.line-a.range.start.line;return l===0?s.range.start.character-a.range.start.character:l})}function bW(n,e){var s,a;if(e.length==1){let{start:l,end:u}=e[0].range,{lines:c}=n,h=(s=c[l.line])!=null?s:"",d=(a=c[u.line])!=null?a:"",g=h.substring(0,l.character)+e[0].newText+d.substring(u.character);return u.line>=c.length&&n.eol?g==""?[...c.slice(0,l.line)]:(g.endsWith(`
`)&&(g=g.slice(0,-1)),[...c.slice(0,l.line),...g.split(`
`)]):[...c.slice(0,l.line),...g.split(`
`),...c.slice(u.line+1)]}let t=n.getText(),i=0,r=[];for(let l of e){let u=n.offsetAt(l.range.start);if(u<i)throw new Error("Overlapping edit");u>i&&r.push(t.substring(i,u)),l.newText.length&&r.push(l.newText),i=n.offsetAt(l.range.end)}r.push(t.substring(i));let o=r.join("");if(o!==t)return iq(o,n.eol)}function yW(n,e){return e.map(t=>{var c,h;let{start:i,end:r}=t.range,o=(c=n[i.line])!=null?c:"",s=V(o.slice(0,i.character)),a=r.line==i.line?o:(h=n[r.line])!=null?h:"",l=V(a.slice(0,r.character)),{newText:u}=t;return[u.length>0?u.split(`
`):[],i.line,s,r.line,l]})}function Nb(n,e){let{range:t,newText:i}=e;if(xe(t.end,n)<=0){let r=i.split(`
`),o=r.length-(t.end.line-t.start.line)-1,s=n.character;if(t.end.line==n.line){let a=r[r.length-1].length;r.length>1?s=a+s-t.end.character:s=t.start.character+a+s-t.end.character}return{line:o,character:s-n.character}}return{line:0,character:0}}function mbe(n,e){let{line:t,character:i}=n,{range:r,newText:o}=e,{end:s}=r,a=o.split(`
`),l=a.length-(s.line-r.start.line)-1;if(a.length>1){let c=a[a.length-1].length;return{line:t+l,character:c+i-s.character}}let u=r.start.character-r.end.character;return{line:t+l,character:u+o.length+i}}function vW(n,e){let t=Vs.Position.create(n.line,n.character),i=!1;for(let r=e.length-1;r>=0;r--){let o=e[r];if(i){t.line+=Qs(o);continue}xe(o.range.end,t)>0||(o.range.end.line==t.line?t=mbe(t,o):(i=!0,t.line+=Qs(o)))}return t}function OD(n,e){let t=0;for(let i of e){let r=Ab(i.range);xe(r.end,n)<=0&&(t+=Qs(i))}return t}function wW(n,e,t){var c,h;let i=n[0].range.start,r=n[n.length-1].range.end,o=e.length-r.line,s=((c=e[r.line])!=null?c:"").length-r.character,a=t.length-o,l=((h=t[a])!=null?h:"").length-s,u=bbe(i,Vs.Position.create(a,l),t);return Vs.TextEdit.replace(Vs.Range.create(i,r),u)}function bbe(n,e,t){var r,o;if(n.line===e.line)return((r=t[n.line])!=null?r:"").slice(n.character,e.character);let i=[];for(let s=n.line;s<=e.line;s++){let a=(o=t[s])!=null?o:"";s===n.line?i.push(a.slice(n.character)):s===e.line?i.push(a.slice(0,e.character)):i.push(a)}return i.join(`
`)}var Vs,ea=P(()=>{"use strict";Vs=S(q());bt();Fe()});var MD,tIe,ir,Tg,xW=P(()=>{"use strict";MD=S(q());z();Sc();tIe=Y()("model-chars"),ir=class{constructor(e,t){this.start=e,this.end=t||e}static fromKeywordOption(e){let t=e.split(","),i=[];for(let r of t)if(r=="@")i.push(new ir(65,90)),i.push(new ir(97,122));else if(r=="@-@")i.push(new ir(64));else if(/^([A-Za-z])-([A-Za-z])$/.test(r)){let o=r.match(/^([A-Za-z])-([A-Za-z])$/);i.push(new ir(o[1].charCodeAt(0),o[2].charCodeAt(0)))}else if(/^\d+-\d+$/.test(r)){let o=r.match(/^(\d+)-(\d+)$/);i.push(new ir(Number(o[1]),Number(o[2])))}else if(/^\d+$/.test(r))i.push(new ir(Number(r)));else{let o=r.charCodeAt(0);i.some(s=>s.contains(o))||i.push(new ir(o))}return i}contains(e){return e>=this.start&&e<=this.end}},Tg=class{constructor(e){this.ranges=[];e&&(this.ranges=ir.fromKeywordOption(e))}addKeyword(e){let t=e.charCodeAt(0),{ranges:i}=this;i.some(r=>r.contains(t))||i.push(new ir(t))}clone(){let e=new Tg;return e.ranges=this.ranges.slice(),e}setKeywordOption(e){this.ranges=ir.fromKeywordOption(e)}async matchLines(e,t=2,i){let r=new Set,o=Date.now();for(let s of e){if(s.length===0)continue;let a="";Date.now()-o>15&&(await Ur(),o=Date.now());for(let l of s){if(i&&i.isCancellationRequested)return;let u=l.codePointAt(0);this.isKeywordCode(u)?a=a+l:a.length>0&&(a.length>=t&&a.length<48&&r.add(a),a="")}a.length>=t&&a.length<48&&r.add(a)}return r}isKeywordCode(e){return e>255?!0:e<33?!1:this.ranges.some(t=>t.contains(e))}isKeywordChar(e){let{ranges:t}=this;if(/\s/.test(e))return!1;let i=e.charCodeAt(0);return i>255?!0:i<33?!1:t.some(r=>r.contains(i))}isKeyword(e){for(let t=0,i=e.length;t<i;t++)if(!this.isKeywordChar(e[t]))return!1;return!0}getLocalifyBonus(e,t,i,r=10*1024){let o=new Map,s=Math.max(0,e.line-50),a=Math.min(i.length,e.line+50),l=i.slice(s,a).join(`
`);if(l.length>r){let p=l.length,b=!1;for(;a>e.line+1;){let y=i[a-1].length;if(p-y<r){b=!0;break}a=a-1,p-=y}if(!b)for(;s<=e.line;){let y=i[s].length;if(p-y<r)break;p-=y,s+=1}l=i.slice(s,a).join(`
`)}e=MD.Position.create(e.line-s,e.character),t=MD.Position.create(t.line-s,t.character);let u=Fn.create("","",1,l),c=u.offsetAt(e),h=l.length,d=h-u.offsetAt(t),g=0,f=!1;for(let p=0;p<c;p++){let b=this.isKeyword(l[p]);if(!f&&b)g=p;else if(f&&!b&&p-g>1){let y=l.substring(g,p);o.set(y,p/c)}f=b}g=h-d,f=!1;for(let p=g;p<l.length;p++){let b=this.isKeyword(l[p]);if(!f&&b)g=p;else if(f&&(!b||p==h-1)&&p-g>1){let y=p==h-1?p+1:p,w=l.substring(g,y),x=o.get(w)||0,k=h-p+(y-g);k!==d&&o.set(w,Math.max(x,k/d))}f=b}return o}}});var AD,ND,CW=P(()=>{"use strict";AD=S(q()),ND=class{constructor(e,t,i){this._line=e,this._text=t,this._isLastLine=i}get lineNumber(){return this._line}get text(){return this._text}get range(){return AD.Range.create(this._line,0,this._line,this._text.length)}get rangeIncludingLineBreak(){return this._isLastLine?this.range:AD.Range.create(this._line,0,this._line+1,0)}get firstNonWhitespaceCharacterIndex(){return/^(\s*)/.exec(this._text)[1].length}get isEmptyOrWhitespace(){return this.firstNonWhitespaceCharacterIndex===this._text.length}}});function ybe(n,e){let t=[],i=0;for(let r of n)t.push(i),i+=r.length+1;return e&&t.push(i),t}var Hb,kg,SW=P(()=>{"use strict";Hb=S(q());CW();kg=class{constructor(e,t,i,r,o,s){this.uri=e;this.languageId=t;this.version=i;this.lines=r;this.bufnr=o;this.eol=s}get content(){return this._content||(this._content=this.lines.join(`
`)+(this.eol?`
`:"")),this._content}get length(){if(!this._content){let e=this.lines.reduce((t,i)=>t+i.length+1,0);return this.eol?e:e-1}return this._content.length}get end(){let e=this.lineCount-1;return this.eol?Hb.Position.create(e,0):Hb.Position.create(e,this.lines[e].length)}get lineCount(){return this.lines.length+(this.eol?1:0)}getText(e){var t;if(e){let{start:i,end:r}=e;return i.line===r.line?i.character===r.character?"":((t=this.lines[i.line])!=null?t:"").substring(i.character,r.character):this.content.substring(this.offsetAt(e.start),this.offsetAt(e.end))}return this.content}lineAt(e){var i;let t=Hb.Position.is(e)?e.line:e;if(typeof t!="number"||t<0||t>=this.lineCount||Math.floor(t)!==t)throw new Error("Illegal value for `line`");return new ND(t,(i=this.lines[t])!=null?i:"",t===this.lineCount-1)}positionAt(e){e=Math.max(Math.min(e,this.content.length),0);let t=this.getLineOffsets(),i=0,r=t.length;if(r===0)return{line:0,character:e};for(;i<r;){let s=Math.floor((i+r)/2);t[s]>e?r=s:i=s+1}let o=i-1;return{line:o,character:e-t[o]}}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this.content.length;if(e.line<0)return 0;let i=t[e.line],r=e.line+1<t.length?t[e.line+1]:this.content.length;return Math.max(Math.min(i+e.character,r),i)}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=ybe(this.lines,this.eol)),this._lineOffsets}}});function HD(n){_.fire("BufDetach",[n])}var qD,Jo,SIe,qb,TW=P(()=>{"use strict";qD=S(_i()),Jo=S(q());we();he();jD();z();Ht();bt();Fe();ea();xW();SW();SIe=Y()("model-document"),qb=class{constructor(e,t,i,r){this.buffer=e;this.env=t;this.nvim=i;this.isIgnored=!1;this.eol=!0;this._disposed=!1;this._attached=!1;this._previewwindow=!1;this._winid=-1;this.disposables=[];this.lines=[];this._onDocumentChange=new Jo.Emitter;this.onDocumentChange=this._onDocumentChange.event;this.fireContentChanges=(0,qD.default)(()=>{this._fireContentChanges()},global.__TEST__?20:150),this.fetchContent=(0,qD.default)(()=>{this._fetchContent()},100),this.init(r)}get content(){return this.syncLines.join(`
`)+(this.eol?`
`:"")}get attached(){return this._attached}get textDocument(){return this._textDocument}get syncLines(){return this._textDocument.lines}get version(){return this._textDocument.version}get bufnr(){return this.buffer.id}get bufname(){return this._bufname}get filetype(){return this._filetype}get uri(){return this._uri}get isCommandLine(){return this.uri&&this.uri.endsWith("%5BCommand%20Line%5D")}get enabled(){return this.getVar("enabled",!0)}get languageId(){let{_filetype:e}=this;return e.includes(".")?e.match(/(.*?)\./)[1]:e}get changedtick(){return this._changedtick}convertFiletype(e){switch(e){case"javascript.jsx":return"javascriptreact";case"typescript.jsx":case"typescript.tsx":return"typescriptreact";case"tex":return"latex";default:return this.env.filetypeMap[e]||e}}get schema(){return M.parse(this.uri).scheme}get lineCount(){return this.lines.length}get winid(){return this._winid}get indentkeys(){return this._indentkeys}get previewwindow(){return this._previewwindow}init(e){let t=this.buftype=e.buftype;this._indentkeys=e.indentkeys,this._bufname=e.bufname,this._previewwindow=!!e.previewwindow,this._winid=e.winid,this.variables=e.variables||{},this._changedtick=e.changedtick,this.eol=e.eol==1,this._uri=Jm(e.fullpath,this.bufnr,t,this.env.isCygwin),Array.isArray(e.lines)&&(this.lines=e.lines,this._noFetch=!0,this._attached=!0,this.attach()),this._filetype=this.convertFiletype(e.filetype),this.setIskeyword(e.iskeyword),this.createTextDocument(1,this.lines)}attach(){if(this.env.isVim)return;let e=this.lines;this.buffer.attach(!0).then(t=>{t||HD(this.bufnr)},t=>{HD(this.bufnr)}),this.buffer.listen("lines",(t,i,r,o,s)=>{if(!(t.id!==this.bufnr||!this._attached||i==null)&&i>this._changedtick){if(this._changedtick=i,e=[...e.slice(0,r),...s,...o==-1?[]:e.slice(o)],e.length==0&&(e=[""]),this.lines=e,_.pumvisible)return;this.fireContentChanges()}},this.disposables),this.buffer.listen("detach",()=>{HD(this.bufnr)},this.disposables)}get dirty(){return this.lines!==this.syncLines}get hasChanged(){return this.dirty?!_e(this.lines,this.syncLines):!1}_fireContentChanges(e){var s;if(this.lines===this.syncLines)return;let t=this._textDocument,i=[];if(!e){let{cursor:a,insertMode:l}=_,u;if(a&&a.bufnr==this.bufnr){let c=(s=this.lines[a.lnum-1])!=null?s:"";u=Jo.Position.create(a.lnum-1,yi(c,a.col-1))}e=fW(t.lines,this.lines,u,l)}let r;e?(r=t.getText(e.range),i.push({range:e.range,text:e.newText,rangeLength:r.length})):r="";let o=this.createTextDocument(this.version+(e?1:0),this.lines);this._onDocumentChange.fire(Object.freeze({bufnr:this.bufnr,original:r,originalLines:t.lines,textDocument:{version:o.version,uri:this.uri},contentChanges:i}))}async applyEdits(e,t=!1,i=!1){var p,b;if(Array.isArray(arguments[1])&&(e=arguments[1]),!this._attached||e.length===0)return;this._forceSync();let r=this.textDocument;if(e=mW(r,e),e.length===0)return;let o=bW(r,e);if(!o)return;let s=r.lines,a=dW(s,o,e[0].range.start.line);if(a.start===a.end&&a.replacement.length==0)return;let l=a.start===a.end&&a.start===s.length+(this.eol?0:1),u=s.slice(a.start,a.end),c=[];this.nvim.hasFunction("nvim_buf_set_text")&&e.length<200&&a.start!==a.end&&e[e.length-1].range.end.line<s.length+(this.eol?0:1)&&(c=yW(s,e));let h,d=_.bufnr==this.bufnr,g;if(i&&d&&!l){let y=Jo.Position.is(i)?i:void 0;if(i===!0&&this.bufnr===((p=_.cursor)==null?void 0:p.bufnr)){let{col:w,lnum:x}=_.cursor;y=Jo.Position.create(x-1,yi(this.lines[x-1],w-1))}if(y){let w=vW(y,e);if(xe(y,w)!==0){let x=(b=o[w.line])!=null?b:"",k=et(x,w.character)+1;h=[w.line+1,k]}g=et(this.lines[y.line],y.character)+1}}this.nvim.pauseNotification(),d&&t&&this.nvim.command("undojoin",!0),l?this.buffer.setLines(a.replacement,{start:-1,end:-1},!0):this.nvim.call("coc#ui#set_lines",[this.bufnr,this._changedtick,u,a.replacement,a.start,a.end,c,h,g],!0),this.nvim.resumeNotification(d,!0);let f=e.length==1?e[0]:wW(e,s,o);await zH(),this.lines=o,this.fireContentChanges.clear(),this._fireContentChanges(f)}async changeLines(e){let t=[],i=this.lines.slice();for(let[r,o]of e)i[r]!=o&&(t.push([r,o]),i[r]=o);!t.length||(this.nvim.call("coc#ui#change_lines",[this.bufnr,t],!0),this.nvim.redrawVim(),this.lines=i,this._forceSync())}_forceSync(){this.fireContentChanges.clear(),this._fireContentChanges()}forceSync(){global.hasOwnProperty("__TEST__")&&this._forceSync()}getOffset(e,t){return this.textDocument.offsetAt({line:e-1,character:t})}isWord(e){return this.chars.isKeyword(e)}async matchWords(e){return await this.chars.matchLines(this.textDocument.lines,2,e)}getWordRangeAtPosition(e,t,i=!0){let r=this.chars.clone();if(t&&t.length)for(let u of t)r.addKeyword(u);let o=this.getline(e.line,i),s=o[e.character];if(s==null||!r.isKeywordChar(s))return null;let a=e.character,l=e.character+1;for(;a>=0;){let u=o[a-1];if(!u||!r.isKeywordChar(u))break;a=a-1}for(;l<=o.length;){let u=o[l];if(!u||!r.isKeywordChar(u))break;l=l+1}return Jo.Range.create(e.line,a,e.line,l)}createTextDocument(e,t){let{uri:i,languageId:r,eol:o}=this;return this._textDocument=new kg(i,r,e,t,this.bufnr,o)}async _fetchContent(e){if(!this.env.isVim||!this._attached)return;let{nvim:t,bufnr:i,changedtick:r}=this,o=await t.call("coc#util#get_buf_lines",[i,r]);this._noFetch=!0,o?(this._changedtick=o.changedtick,this.lines=o.lines,e?this._forceSync():this.fireContentChanges()):e&&this._forceSync()}changeLine(e,t,i){if(this.lines[e-1]===void 0)return;let o=this.lines.slice();o[e-1]=t,this.lines=o,this._changedtick=i}async patchChange(e){if(!!this._attached)if(this.env.isVim)if(e){let t=await this.nvim.call("coc#util#get_changeinfo",[]);if(t.bufnr!==this.bufnr)return;if(t.changedtick<this._changedtick){this._forceSync();return}let{lnum:i,line:r,changedtick:o}=t,s=this.getline(i-1);if(this._changedtick=o,s==r)this._forceSync();else{let a=this.lines.slice();a[i-1]=r,this.lines=a,this._forceSync()}}else this.fetchContent.clear(),await this._fetchContent(!0);else this._changedtick=await this.buffer.getVar("changedtick"),this._forceSync()}getSymbolRanges(e){let{version:t,filetype:i,uri:r}=this,o=new kg(r,i,t,this.lines,this.bufnr,this.eol),s=[],a=o.getText(),l="";for(let u=0,c=a.length;u<c;u++){let h=a[u];if(h=="-"&&l.length==0)continue;let d=this.chars.isKeywordChar(h);d&&(l=l+h),l.length>0&&!d&&l==e&&s.push(Jo.Range.create(o.positionAt(u-l.length),o.positionAt(u))),d||(l="")}return s}fixStartcol(e,t){let i=this.getline(e.line);if(!i)return null;let{character:r}=e,o=i.slice(0,r),s=V(o),{chars:a}=this;for(let l=o.length-1;l>=0;l--){let u=o[l];if(u==" "||!a.isKeywordChar(u)&&!t.includes(u))break;s=s-V(u)}return s}addHighlights(e,t,i,r={}){let{start:o,end:s}=i;if(!Ct(i))for(let a=o.line;a<=s.line;a++){let l=this.getline(a,!1),u=a==o.line?et(l,o.character):0,c=a==s.line?et(l,s.character):global.Buffer.byteLength(l);u>=c||e.push(Object.assign({hlGroup:t,lnum:a,colStart:u,colEnd:c},r))}}getline(e,t=!0){return t?this.lines[e]||"":this.syncLines[e]||""}getLines(e,t){return this.lines.slice(e!=null?e:0,t!=null?t:this.lines.length)}getDocumentContent(){let e=this.lines.join(`
`);return this.eol?e+`
`:e}getVar(e,t){let i=this.variables[`coc_${e}`];return i===void 0?t:i}getPosition(e,t){let i=this.getline(e-1);if(!i||t==0)return{line:e-1,character:0};let r=tt(i,0,t-1);return{line:e-1,character:r.length}}getEndOffset(e,t,i){let r=0,o=this.lines.length;for(let s=e-1;s<o;s++){let a=this.lines[s],l=a.length;if(s==e-1&&l!=0){let u=global.Buffer.from(a,"utf8");u.byteLength<=t-1||(r=r+u.slice(t-1,u.length).toString("utf8").length,i||(r=r-1))}else r=r+l;if(!this.eol&&s==o-1)break;r=r+1}return r}setFiletype(e){this._filetype=this.convertFiletype(e);let t=this._textDocument.lines;this._textDocument=new kg(this.uri,this.languageId,1,t,this.bufnr,this.eol)}setIskeyword(e){let t=this.chars=new Tg(e),i=this.getVar("additional_keywords",[]);if(i&&Array.isArray(i))for(let r of i)t.addKeyword(r)}detach(){this._disposed||(J(this.disposables),this._disposed=!0,this._attached=!1,this.lines=[],this.fetchContent.clear(),this.fireContentChanges.clear(),this._onDocumentChange.dispose())}getLocalifyBonus(e,t,i){return this.chars.getLocalifyBonus(e,t,this.lines,i)}async synchronize(){if(!this.attached)return;let{changedtick:e}=this;await this.patchChange(),e!=this.changedtick&&await Qe(50)}onTextChange(e,t){if(e==="TextChanged"||e==="TextChangedI"&&!t.insertChar||!this._noFetch){this._noFetch=!1,this.fetchContent();return}let{line:i,changedtick:r,lnum:o}=t;r!==this.changedtick&&(this.changeLine(o,i,r),e!=="TextChangedP"&&this._forceSync())}onCursorHold(e){this.variables=e}}});var kW,BD,YD,yl,gn,Bb,Yb,DW=P(()=>{"use strict";kW=S(rW()),BD=S(require("fs")),YD=S(require("os")),yl=S(require("path")),gn=S(q());we();he();TW();z();Xe();Fe();Bb=Y()("core-documents"),Yb=class{constructor(e,t){this.configurations=e;this.workspaceFolder=t;this._initialized=!1;this._attached=!1;this._currentResolve=!1;this.disposables=[];this.creating=new Map;this.buffers=new Map;this.winids=new Set;this.resolves=[];this._onDidOpenTextDocument=new gn.Emitter;this._onDidCloseDocument=new gn.Emitter;this._onDidChangeDocument=new gn.Emitter;this._onDidSaveDocument=new gn.Emitter;this._onWillSaveDocument=new gn.Emitter;this.onDidOpenTextDocument=this._onDidOpenTextDocument.event;this.onDidCloseDocument=this._onDidCloseDocument.event;this.onDidChangeDocument=this._onDidChangeDocument.event;this.onDidSaveTextDocument=this._onDidSaveDocument.event;this.onWillSaveTextDocument=this._onWillSaveDocument.event;this._cwd=process.cwd()}async attach(e,t){if(this._attached)return;this.nvim=e,this._env=t,this._attached=!0;let r=this.configurations.getConfiguration("coc.preferences").get("maxFileSize","10MB");this.maxFileSize=kW.default.parse(r),e.setVar("coc_max_filesize",this.maxFileSize,!0);let{bufnrs:o,winid:s,bufnr:a,winids:l}=await this.nvim.call("coc#util#all_state");this.winids=new Set(l),this._bufnr=a,await Promise.all(o.map(c=>this.createDocument(c))),_.on("BufDetach",this.onBufDetach,this,this.disposables),_.on("VimLeavePre",()=>{this.resolveCurrent(void 0)},null,this.disposables),_.on("WinEnter",c=>{this.winids.add(c)},null,this.disposables),_.on("BufWinEnter",(c,h)=>{this.winids.add(h)},null,this.disposables),_.on("DirChanged",c=>{this._cwd=c},null,this.disposables),_.on("CursorHold",async()=>{let{bufnrs:c,winids:h}=await this.nvim.call("coc#util#all_state");for(let d of this.buffers.keys())c.includes(d)||_.fire("BufUnload",[d]);for(let d of this.winids)h.includes(d)||_.fire("WinClosed",[d]);this.winids=new Set(h)},null,this.disposables);let u=c=>{this._bufnr=c,this.createDocument(c)};_.on("CursorMoved",u,null,this.disposables),_.on("CursorMovedI",u,null,this.disposables),_.on("BufUnload",this.onBufUnload,this,this.disposables),_.on("BufEnter",this.onBufEnter,this,this.disposables),_.on("BufCreate",this.onBufCreate,this,this.disposables),_.on("TermOpen",this.onBufCreate,this,this.disposables),_.on("BufWritePost",this.onBufWritePost,this,this.disposables),_.on("BufWritePre",this.onBufWritePre,this,this.disposables),_.on("FileType",this.onFileTypeChange,this,this.disposables),_.fire("BufEnter",[a]),_.fire("BufWinEnter",[a,s]),_.on("BufEnter",c=>{this.createDocument(c)},null,this.disposables),_.on("CursorHold",(c,h,d)=>{let g=this.getDocument(c);g&&g.onCursorHold(d)},null,this.disposables),this._env.isVim?["TextChangedP","TextChangedI","TextChanged"].forEach(c=>{_.on(c,(h,d)=>{let g=this.buffers.get(h);g!=null&&g.attached&&g.onTextChange(c,d)},null,this.disposables)}):_.on("CompleteDone",async()=>{let c=await _.race(["TextChangedI","TextChanged","MenuPopupChanged"],100);if(c&&(c.name==="TextChangedI"||c.name==="TextChanged")){let h=this.buffers.get(_.bufnr);h!=null&&h.attached&&h._forceSync()}},null,this.disposables),this._initialized=!0}get bufnr(){return this._bufnr}get root(){return this._root}get cwd(){return this._cwd}get documents(){return Array.from(this.buffers.values()).filter(e=>e.attached&&!e.isCommandLine)}get bufnrs(){return Array.from(this.buffers.keys())}detach(){if(!!this._attached){this._attached=!1;for(let e of this.buffers.keys())this.onBufUnload(e);J(this.disposables)}}get textDocuments(){let e=[];for(let t of this.buffers.values())t.attached&&e.push(t.textDocument);return e}getDocument(e){if(typeof e=="number")return this.buffers.get(e);let t=qo.isWindows||qo.isMacintosh;e=M.parse(e).toString();for(let i of this.buffers.values())if(i.uri===e||t&&i.uri.toLowerCase()===e.toLowerCase())return i;return null}expand(e){if(e.startsWith("~")&&(e=YD.default.homedir()+e.slice(1)),e.includes("$")){let t=this.getDocument(this.bufnr),i=t?M.parse(t.uri).fsPath:"";e=e.replace(/\$\{(.*?)\}/g,(r,o)=>{if(o.startsWith("env:")){let s=o.split(":")[1];return s?process.env[s]:""}switch(o){case"workspace":case"workspaceRoot":case"workspaceFolder":return this._root;case"workspaceFolderBasename":return yl.default.dirname(this._root);case"cwd":return this._cwd;case"file":return i;case"fileDirname":return i?yl.default.dirname(i):"";case"fileExtname":return i?yl.default.extname(i):"";case"fileBasename":return i?yl.default.basename(i):"";case"fileBasenameNoExtension":{let s=i?yl.default.basename(i):"";return s?s.slice(0,s.length-yl.default.extname(s).length):""}default:return r}}),e=e.replace(/\$[\w]+/g,r=>r=="$HOME"?YD.default.homedir():process.env[r.slice(1)]||r)}return e}get document(){return this._currentResolve?new Promise(e=>{this.resolves.push(e)}):(this._currentResolve=!0,new Promise((e,t)=>{this.nvim.eval('coc#util#get_bufoptions(bufnr("%"))').then(i=>{let r;i!=null&&(this.creating.delete(i.bufnr),r=this._createDocument(i)),this.resolveCurrent(r),e(r),this._currentResolve=!1},t)}))}resolveCurrent(e){if(this.resolves.length>0)for(;this.resolves.length;){let t=this.resolves.pop();t&&t(e)}}get uri(){let{bufnr:e}=this;if(e){let t=this.getDocument(e);if(t)return t.uri}return null}get filetypes(){let e=new Set;for(let t of this.documents)e.add(t.filetype);return e}get languageIds(){let e=new Set;for(let t of this.documents)e.add(t.languageId);return e}async getFormatOptions(e){let t;e&&(t=this.getDocument(e));let i=t?t.bufnr:0,r=await this.nvim.call("coc#util#get_format_opts",[i]),o={tabSize:r.tabsize,insertSpaces:r.expandtab==1};return o.insertFinalNewline=r.insertFinalNewline==1,r.trimTrailingWhitespace&&(o.trimTrailingWhitespace=!0),r.trimFinalNewlines&&(o.trimFinalNewlines=!0),o}async createDocument(e){let t=this.buffers.get(e);if(t)return t;if(this.creating.has(e))return await this.creating.get(e);let i=new Promise(r=>{this.nvim.call("coc#util#get_bufoptions",[e]).then(o=>{if(!this.creating.has(e)){r(void 0);return}if(this.creating.delete(e),!o){r(void 0);return}t=this._createDocument(o),r(t)},()=>{this.creating.delete(e),r(void 0)})});return this.creating.set(e,i),await i}async onBufCreate(e){this.onBufUnload(e),await this.createDocument(e)}_createDocument(e){let{bufnr:t}=e;if(this.buffers.has(t))return this.buffers.get(t);let i=this.nvim.createBuffer(t),r=new qb(i,this._env,this.nvim,e);if(this.buffers.set(t,r),r.attached){if(r.schema=="file"){let o=this.configurations.resolveFolderConfigution(r.uri),s=this.workspaceFolder.resolveRoot(r,this._cwd,this._initialized,this.expand.bind(this));t==this._bufnr&&(o&&this.configurations.setFolderConfiguration(r.uri),s&&(this._root=s))}this._onDidOpenTextDocument.fire(r.textDocument),r.onDocumentChange(o=>this._onDidChangeDocument.fire(o))}return Bb.debug("buffer created",t,r.attached,r.uri),r}onBufEnter(e){this._bufnr=e;let t=this.buffers.get(e);if(t){this.configurations.setFolderConfiguration(t.uri);let i=this.workspaceFolder.getWorkspaceFolder(M.parse(t.uri));i&&(this._root=M.parse(i.uri).fsPath)}}onBufUnload(e){this.creating.delete(e),this.onBufDetach(e,!1)}async onBufDetach(e,t=!0){this.detachBuffer(e),t&&await this.nvim.call("bufloaded",[e])&&await this.createDocument(e)}detachBuffer(e){let t=this.buffers.get(e);!t||(Bb.debug("document detach",e,t.uri),this._onDidCloseDocument.fire(t.textDocument),this.buffers.delete(e),t.detach())}onBufWritePost(e){let t=this.buffers.get(e);t&&this._onDidSaveDocument.fire(t.textDocument)}async onBufWritePre(e,t){let i=this.buffers.get(e);if(!i||i.bufname!==t?(this.detachBuffer(e),i=await this.createDocument(e)):i!=null&&i.attached&&await i.synchronize(),!i||!i.attached)return;let r=!0,o=[],s={document:i.textDocument,reason:gn.TextDocumentSaveReason.Manual,waitUntil:l=>{r?o.push(l):(Bb.error("Can't call waitUntil in async manner:",Error().stack),this.nvim.echoError("waitUntil can't be used in async manner, check log for details"))}};this._onWillSaveDocument.fire(s),r=!1;let a=o.length;if(a){let u=await new Promise(c=>{let d=this.configurations.getConfiguration("coc.preferences").get("willSaveHandlerTimeout",500),g=setTimeout(()=>{this.nvim.outWriteLine(`Will save handler timeout after ${d}ms`),c(void 0)},d),f=0,p=!1;for(let b of o){let y=w=>{p||(p=!0,clearTimeout(g),c(w))};b.then(w=>{if(Array.isArray(w)&&w.length&&gn.TextEdit.is(w[0]))return y(w);f=f+1,f==a&&y(void 0)},w=>{Bb.error("Error on will save handler:",w),f=f+1,f==a&&y(void 0)})}});u&&await i.applyEdits(u)}}onFileTypeChange(e,t){let i=this.getDocument(t);!i||i.convertFiletype(e)==i.filetype||(this._onDidCloseDocument.fire(i.textDocument),i.setFiletype(e),this._onDidOpenTextDocument.fire(i.textDocument))}async getQuickfixList(e){let t={},i=e.reduce((r,o)=>{let s=M.parse(o.uri);return s.scheme=="file"&&!r.includes(s.fsPath)&&!this.getDocument(o.uri)&&r.push(s.fsPath),r},[]);return await Promise.all(i.map(r=>new Promise(o=>{BD.default.readFile(r,"utf8",(s,a)=>{if(s)return o(void 0);t[r]=a.split(/\r?\n/),o(void 0)})}))),await Promise.all(e.map(r=>{let{uri:o,range:s}=r,{fsPath:a}=M.parse(o),l,u=t[a];return u&&(l=u[s.start.line]),this.getQuickfixItem(r,l)}))}async getQuickfixItem(e,t,i="",r){gn.LocationLink.is(e)&&(e=gn.Location.create(e.targetUri,e.targetRange));let o=this.getDocument(e.uri),{uri:s,range:a}=e,{start:l,end:u}=a,c=M.parse(s);!t&&c.scheme=="file"&&(t=await this.getLine(s,l.line));let h=l.line==u.line?t:await this.getLine(s,u.line),d={uri:s,filename:c.scheme=="file"?c.fsPath:s,lnum:l.line+1,end_lnum:u.line+1,col:t?et(t,l.character)+1:l.character+1,end_col:h?et(h,u.character)+1:u.character+1,text:t||"",range:a};return r&&(d.module=r),i&&(d.type=i),o&&(d.bufnr=o.bufnr),d}async getLine(e,t){let i=this.getDocument(e);if(i&&i.attached)return i.getline(t)||"";if(!e.startsWith("file:"))return"";let r=M.parse(e).fsPath;return BD.default.existsSync(r)?await vY(r,t):""}async readFile(e){let t=this.getDocument(e);if(t)return await t.patchChange(),t.content;let i=M.parse(e);return i.scheme!="file"?"":(await this.nvim.call("readfile",[i.fsPath])).join(`
`)+`
`}reset(){this.creating.clear();for(let e of this.buffers.keys())this.onBufUnload(e);this.buffers.clear(),this._root=process.cwd()}dispose(){for(let e of this.buffers.keys())this.onBufUnload(e);this._attached=!1,this.buffers.clear(),J(this.disposables)}}});function wbe(n,e,t){let i=ta.default.join(n,e);if(typeof t!="string"){let r=t.baseUri.fsPath;if(!Ae(r,i))return!1;let o=ta.default.relative(r,i);return(0,WD.default)(o,t.pattern,{dot:!0})}return(0,WD.default)(e,t,{dot:!0})}var ci,EW,WD,_W,ta,PW,qt,vbe,Wb,RW=P(()=>{"use strict";ci=S(Rn()),EW=S(rb()),WD=S(Vn()),_W=S(require("os")),ta=S(require("path")),PW=require("util"),qt=S(q());we();z();Xe();Fe();bb();vbe=Y()("core-files"),Wb=class{constructor(e,t,i){this.documents=e;this.configurations=t;this.workspaceFolderControl=i;this._onDidCreateFiles=new qt.Emitter;this._onDidRenameFiles=new qt.Emitter;this._onDidDeleteFiles=new qt.Emitter;this._onWillCreateFiles=new qt.Emitter;this._onWillRenameFiles=new qt.Emitter;this._onWillDeleteFiles=new qt.Emitter;this.onDidCreateFiles=this._onDidCreateFiles.event;this.onDidRenameFiles=this._onDidRenameFiles.event;this.onDidDeleteFiles=this._onDidDeleteFiles.event;this.onWillCreateFiles=this._onWillCreateFiles.event;this.onWillRenameFiles=this._onWillRenameFiles.event;this.onWillDeleteFiles=this._onWillDeleteFiles.event}attach(e,t){this.nvim=e,this.env=t}async openTextDocument(e){e=typeof e=="string"?M.file(e):e;let t=this.documents.getDocument(e.toString());if(t)return await this.jumpTo(e.toString(),null,"drop"),t;let i=e.scheme;if(i=="file"){if(!ci.default.existsSync(e.fsPath))throw new Error(`${e.fsPath} doesn't exist.`);ci.default.accessSync(e.fsPath,ci.default.constants.R_OK)}return i=="untitled"?(await this.nvim.command(`edit ${e.path}`),t=await this.documents.document,await this.jumpTo(t.uri),t):(t=await this.loadResource(e.toString()),t&&await this.jumpTo(t.uri),t)}async jumpTo(e,t,i){let r=this.configurations.getConfiguration("coc.preferences"),o=i||r.get("jumpCommand","edit"),{nvim:s}=this,a=this.documents.getDocument(e),l=a?a.bufnr:-1;if(l!=-1&&o=="edit"){if(s.pauseNotification(),s.command("silent! normal! m'",!0),s.command(`buffer ${l}`,!0),s.command("if &filetype ==# '' | filetype detect | endif",!0),t){let u=a.getline(t.line),c=V(u.slice(0,t.character))+1;s.call("cursor",[t.line+1,c],!0)}await s.resumeNotification(!0)}else{let{fsPath:u,scheme:c}=M.parse(e),h=t==null?null:[t.line,t.character];if(c=="file"){let d=dg(ta.default.normalize(u));await this.nvim.call("coc#util#jump",[o,d,h])}else _W.default.platform()=="win32"&&(e=e.replace(/\/?/,"?")),await this.nvim.call("coc#util#jump",[o,e,h])}}async openResource(e){let{nvim:t}=this,i=M.parse(e);if(/^https?/.test(i.scheme)){await t.call("coc#ui#open_url",e);return}let r=await t.getOption("wildignore");await t.setOption("wildignore",""),await this.jumpTo(e),await t.setOption("wildignore",r)}loadResource(e){let t=this.documents.getDocument(e);return t?Promise.resolve(t):this.loadResources([e]).then(i=>Array.isArray(i)?i[0]:void 0)}async loadResources(e){let{documents:t}=this,i=e.map(o=>{let s=M.parse(o);return s.scheme=="file"?s.fsPath:o}),r=await this.nvim.call("coc#ui#open_files",[i]);return await Promise.all(r.map(o=>t.createDocument(o)))}async renameCurrent(){let{nvim:e,documents:t}=this,i=await e.call("bufnr","%"),r=await e.call("getcwd"),o=t.getDocument(i);if(!o||o.buftype!=""||o.schema!="file"){e.echoError("current buffer is not file.");return}let s=M.parse(o.uri).fsPath,a=await e.callAsync("coc#util#with_callback",["input",["New path: ",s,"file"]]);if(a=a?a.trim():null,a==s||!a)return;let l=await o.buffer.lines,u=ci.default.existsSync(s);if(u){if(await e.eval("&modified")&&await e.command("noa w"),s.toLowerCase()!=a.toLowerCase()&&ci.default.existsSync(a)){if(!await xc(this.nvim,`${a} exists, overwrite?`))return;ci.default.unlinkSync(a)}ci.default.renameSync(s,a)}this._onWillRenameFiles.fire({files:[{newUri:M.parse(a),oldUri:M.parse(s)}],waitUntil:async d=>{let g=await Promise.resolve(d);g&&qt.WorkspaceEdit.is(g)&&await this.applyEdit(g)}}),this._onDidRenameFiles.fire({files:[{newUri:M.parse(a),oldUri:M.parse(s)}]});let c=Ae(r,a)?ta.default.relative(r,a):a,h=await e.call("winsaveview");e.pauseNotification(),s.toLowerCase()==a.toLowerCase()?(e.command(`keepalt ${i}bwipeout!`,!0),e.call("coc#util#open_file",["keepalt edit",c],!0)):(e.call("coc#util#open_file",["keepalt edit",c],!0),e.command(`${i}bwipeout!`,!0)),!u&&l.join(`
`)!=`
`&&(e.call("append",[0,l],!0),e.command("normal! Gdd",!0)),e.call("winrestview",[h],!0),await e.resumeNotification()}async createFile(e,t={}){let{documents:i}=this,r=await Mt(e);if(r&&!t.overwrite&&!t.ignoreIfExists){tr(this.nvim,`${e} already exists!`,"Error");return}if(!r||t.overwrite)if(e.endsWith("/"))e=i.expand(e),await ci.default.mkdirp(e);else{let o=M.file(e).toString();if(i.getDocument(o))return;ci.default.existsSync(ta.default.dirname(e))||ci.default.mkdirpSync(ta.default.dirname(e)),ci.default.writeFileSync(e,"","utf8"),await this.loadResource(o)}}async deleteFile(e,t={}){let{ignoreIfNotExists:i,recursive:r}=t,o=await Mt(e.replace(/\/$/,"")),s=o&&o.isDirectory();if(e.endsWith("/")&&!s){tr(this.nvim,`${e} is not directory`,"Error");return}if(!o&&!i){tr(this.nvim,`${e} doesn't exist`,"Error");return}if(o!=null){if(s&&!r){tr(this.nvim,"Can't remove directory, recursive not set","Error");return}try{if(s&&r?await ci.default.remove(e):s?await ci.default.rmdir(e):await ci.default.unlink(e),!s){let a=M.file(e).toString(),l=this.documents.getDocument(a);l&&await this.nvim.command(`silent! bwipeout! ${l.bufnr}`)}}catch(a){tr(this.nvim,`Error on delete ${e}: ${a}`,"Error")}}}async renameFile(e,t,i={}){let{overwrite:r,ignoreIfExists:o}=i,{nvim:s,documents:a}=this;try{let l=await Mt(t);if(l&&!r&&!o)throw new Error(`${t} already exists`);if(!l||r){let u=M.file(e).toString(),c=M.file(t).toString(),h=a.getDocument(u);if(h!=null){let d=h.bufnr==a.bufnr,g=a.getDocument(c);g&&await this.nvim.command(`silent ${g.bufnr}bwipeout!`);let f=h.getDocumentContent();if(await ci.default.writeFile(t,f,"utf8"),!d)await s.call("coc#ui#open_files",[[t]]),await s.command(`silent ${h.bufnr}bwipeout!`);else{let p=await s.call("winsaveview");s.pauseNotification(),s.call("coc#util#open_file",["keepalt edit",t],!0),s.command(`silent ${h.bufnr}bwipeout!`,!0),s.call("winrestview",[p],!0),await s.resumeNotification()}await ci.default.unlink(e)}else await pY(e,t)}}catch(l){tr(this.nvim,`Rename error: ${l}`,"Error")}}async currentUri(){let e=await this.nvim.call("bufnr",["%"]),t=this.documents.getDocument(e);return t?t.uri:null}async applyEdit(e){let{nvim:t,documents:i,configurations:r}=this,{documentChanges:o,changes:s}=e,a=await this.currentUri(),l=!1,u=[],c=0,h=r.getConfiguration("coc.preferences"),d=!global.__TEST__&&h.get("promptWorkspaceEdit",!0),g=h.get("listOfWorkspaceEdit","quickfix");try{if(o&&o.length){let f=this.getChangedUris(o);if(c=f.length,d){let b=f.reduce((y,w)=>y+(i.getDocument(w)==null?1:0),0);if(b&&!await xc(this.nvim,`${b} documents on disk would be loaded for change, confirm?`))return}let p=new Map;for(let b of o)if(qt.TextDocumentEdit.is(b)){let{textDocument:y,edits:w}=b,x=await this.loadResource(y.uri),k=y.uri===a;k&&(l=!0),await x.applyEdits(w,!1,k);for(let L of w)u.push({uri:x.uri,range:L.range})}else if(qt.CreateFile.is(b)){let y=M.parse(b.uri).fsPath;await this.createFile(y,b.options)}else qt.RenameFile.is(b)?(p.set(b.oldUri,b.newUri),await this.renameFile(M.parse(b.oldUri).fsPath,M.parse(b.newUri).fsPath,b.options)):qt.DeleteFile.is(b)&&await this.deleteFile(M.parse(b.uri).fsPath,b.options);p.size&&u.forEach(b=>{let y=p.get(b.uri);y&&(b.uri=y)})}else if(s){let f=Object.keys(s),p=f.filter(b=>i.getDocument(b)==null);if(p.length){if(d&&!await xc(this.nvim,`${p.length} documents on disk would be loaded for change, confirm?`))return;await this.loadResources(p)}for(let b of Object.keys(s)){let y=i.getDocument(b),w=M.parse(b).toString()===b;w&&(l=!0);let x=s[b];for(let k of x)u.push({uri:y.uri,range:k.range});await y.applyEdits(x,!1,w)}c=f.length}if(l&&this.nvim.redrawVim(),u.length){let f=await this.documents.getQuickfixList(u),p=u.every(b=>b.uri==a);g=="quickfix"?(await this.nvim.call("setqflist",[f]),p||tr(this.nvim,`changed ${c} buffers, use :wa to save changes to disk and :copen to open quickfix list`,"MoreMsg")):g=="location"&&(await t.setVar("coc_jump_locations",f),p||tr(this.nvim,`changed ${c} buffers, use :wa to save changes to disk and :CocList location to manage changed locations`,"MoreMsg"))}}catch(f){return vbe.error("Error on applyEdits:",e,f),tr(this.nvim,`Error on applyEdits: ${f}`,"Error"),!1}return await Qe(50),!0}getChangedUris(e){let{documents:t}=this,i=new Set,r=new Set;for(let o of e)if(qt.TextDocumentEdit.is(o)){let{textDocument:s}=o,{uri:a,version:l}=s;if(i.add(a),typeof l=="number"&&l>0){let u=t.getDocument(a);if(!u)throw new Error(`${a} not loaded`);if(u.version!=l)throw new Error(`${a} changed before apply edit`)}}else if(qt.CreateFile.is(o)||qt.DeleteFile.is(o)){if(!ub(o.uri))throw new Error(`change of scheme ${o.uri} not supported`);r.add(o.uri),i.add(o.uri)}else if(qt.RenameFile.is(o)){if(!ub(o.oldUri)||!ub(o.newUri))throw new Error(`change of scheme ${o.oldUri} not supported`);let s=M.parse(o.newUri).fsPath;if(ci.default.existsSync(s))throw new Error(`file "${s}" already exists for rename`);i.add(o.oldUri)}else throw new Error(`Invalid document change: ${JSON.stringify(o,null,2)}`);return Array.from(i)}async findFiles(e,t,i,r){let o=this.workspaceFolderControl.workspaceFolders;if((r==null?void 0:r.isCancellationRequested)||!o.length||i===0)return[];i=i!=null?i:1/0;let s=o.map(u=>M.parse(u.uri).fsPath);if(typeof e!="string"){let u=e.baseUri.fsPath;s=s.filter(c=>Ae(u,c,!0))}let a=typeof e=="string"?e:e.pattern,l=[];for(let u of s){if(l.length>=i)break;let c=await(0,PW.promisify)(EW.default)(a,{dot:!0,cwd:u,nodir:!0,absolute:!1});if(r!=null&&r.isCancellationRequested)return[];for(let h of c)if(!(t&&wbe(u,h,t))&&(l.push(M.file(ta.default.join(u,h))),l.length===i))break}return l}}});function ZD(n,e){for(let t of e)if(n.includes(t))return!0;return!1}function Zb(n,e){let t=[[],[]];for(let i of n)e(i)?t[0].push(i):t[1].push(i);return t}function LW(n,e){let t=[[],[]];return n.forEach(i=>{e(i)?t[0].push(i):t[1].push(i)}),t}function ia(n,e){if(!e)return n.filter((i,r)=>n.indexOf(i)===r);let t=Object.create(null);return n.filter(i=>{let r=e(i);return t[r]?!1:(t[r]=!0,!0)})}var na=P(()=>{"use strict"});var FW=m((GIe,jW)=>{var JD=4294967296,IW=[];for(Ec=0;Ec<256;Ec++)IW[Ec]=(Ec>15?"":"0")+Ec.toString(16);var Ec,Dg=jW.exports=function(n,e){n instanceof Buffer?(this.buffer=n,this.offset=e||0):Object.prototype.toString.call(n)=="[object Uint8Array]"?(this.buffer=new Buffer(n),this.offset=e||0):(this.buffer=this.buffer||new Buffer(8),this.offset=0,this.setValue.apply(this,arguments))};Dg.MAX_INT=Math.pow(2,53);Dg.MIN_INT=-Math.pow(2,53);Dg.prototype={constructor:Dg,_2scomp:function(){for(var n=this.buffer,e=this.offset,t=1,i=e+7;i>=e;i--){var r=(n[i]^255)+t;n[i]=r&255,t=r>>8}},setValue:function(n,e){var t=!1;if(arguments.length==1)if(typeof n=="number"){if(t=n<0,n=Math.abs(n),e=n%JD,n=n/JD,n>JD)throw new RangeError(n+" is outside Int64 range");n=n|0}else if(typeof n=="string")n=(n+"").replace(/^0x/,""),e=n.substr(-8),n=n.length>8?n.substr(0,n.length-8):"",n=parseInt(n,16),e=parseInt(e,16);else throw new Error(n+" must be a Number or String");for(var i=this.buffer,r=this.offset,o=7;o>=0;o--)i[r+o]=e&255,e=o==4?n:e>>>8;t&&this._2scomp()},toNumber:function(n){for(var e=this.buffer,t=this.offset,i=e[t]&128,r=0,o=1,s=7,a=1;s>=0;s--,a*=256){var l=e[t+s];i&&(l=(l^255)+o,o=l>>8,l=l&255),r+=l*a}return!n&&r>=Dg.MAX_INT?i?-1/0:1/0:i?-r:r},valueOf:function(){return this.toNumber(!1)},toString:function(n){return this.valueOf().toString(n||10)},toOctetString:function(n){for(var e=new Array(8),t=this.buffer,i=this.offset,r=0;r<8;r++)e[r]=IW[t[i+r]];return e.join(n||"")},toBuffer:function(n){if(n&&this.offset===0)return this.buffer;var e=new Buffer(8);return this.buffer.copy(e,0,this.offset,this.offset+8),e},copy:function(n,e){this.buffer.copy(n,e||0,this.offset,this.offset+8)},compare:function(n){if((this.buffer[this.offset]&128)!=(n.buffer[n.offset]&128))return n.buffer[n.offset]-this.buffer[this.offset];for(var e=0;e<8;e++)if(this.buffer[this.offset+e]!==n.buffer[n.offset+e])return this.buffer[this.offset+e]-n.buffer[n.offset+e];return 0},equals:function(n){return this.compare(n)===0},inspect:function(){return"[Int64 value:"+this+" octets:"+this.toOctetString(" ")+"]"}}});var JW=m(_g=>{var MW=require("events").EventEmitter,xbe=require("util"),Cbe=require("os"),KIe=require("assert"),Eg=FW(),ra=Cbe.endianness()=="BE";function AW(n){return Math.pow(2,Math.ceil(Math.log(n)/Math.LN2))}function hi(n){this.buf=Buffer.alloc(AW(n||8192)),this.readOffset=0,this.writeOffset=0}_g.Accumulator=hi;hi.prototype.writeAvail=function(){return this.buf.length-this.writeOffset};hi.prototype.readAvail=function(){return this.writeOffset-this.readOffset};hi.prototype.reserve=function(n){if(!(n<this.writeAvail())&&(this.readOffset>0&&(this.buf.copy(this.buf,0,this.readOffset,this.writeOffset),this.writeOffset-=this.readOffset,this.readOffset=0),!(n<this.writeAvail()))){var e=Buffer.alloc(AW(this.buf.length+n-this.writeAvail()));this.buf.copy(e),this.buf=e}};hi.prototype.append=function(n){if(Buffer.isBuffer(n))this.reserve(n.length),n.copy(this.buf,this.writeOffset,0,n.length),this.writeOffset+=n.length;else{var e=Buffer.byteLength(n);this.reserve(e),this.buf.write(n,this.writeOffset),this.writeOffset+=e}};hi.prototype.assertReadableSize=function(n){if(this.readAvail()<n)throw new Error("wanted to read "+n+" bytes but only have "+this.readAvail())};hi.prototype.peekString=function(n){return this.assertReadableSize(n),this.buf.toString("utf-8",this.readOffset,this.readOffset+n)};hi.prototype.readString=function(n){var e=this.peekString(n);return this.readOffset+=n,e};hi.prototype.peekInt=function(n){switch(this.assertReadableSize(n),n){case 1:return this.buf.readInt8(this.readOffset,n);case 2:return ra?this.buf.readInt16BE(this.readOffset,n):this.buf.readInt16LE(this.readOffset,n);case 4:return ra?this.buf.readInt32BE(this.readOffset,n):this.buf.readInt32LE(this.readOffset,n);case 8:var e=this.buf.slice(this.readOffset,this.readOffset+8);return ra?new Eg(e):new Eg(WW(e));default:throw new Error("invalid integer size "+n)}};hi.prototype.readInt=function(n){var e=this.peekInt(n);return e instanceof Eg&&isFinite(e.valueOf())&&(e=e.valueOf()),this.readOffset+=n,e};hi.prototype.peekDouble=function(){return this.assertReadableSize(8),ra?this.buf.readDoubleBE(this.readOffset):this.buf.readDoubleLE(this.readOffset)};hi.prototype.readDouble=function(){var n=this.peekDouble();return this.readOffset+=8,n};hi.prototype.readAdvance=function(n){if(n>0)this.assertReadableSize(n);else if(n<0&&this.readOffset+n<0)throw new Error("advance with negative offset "+n+" would seek off the start of the buffer");this.readOffset+=n};hi.prototype.writeByte=function(n){this.reserve(1),this.buf.writeInt8(n,this.writeOffset),++this.writeOffset};hi.prototype.writeInt=function(n,e){switch(this.reserve(e),e){case 1:this.buf.writeInt8(n,this.writeOffset);break;case 2:ra?this.buf.writeInt16BE(n,this.writeOffset):this.buf.writeInt16LE(n,this.writeOffset);break;case 4:ra?this.buf.writeInt32BE(n,this.writeOffset):this.buf.writeInt32LE(n,this.writeOffset);break;default:throw new Error("unsupported integer size "+e)}this.writeOffset+=e};hi.prototype.writeDouble=function(n){this.reserve(8),ra?this.buf.writeDoubleBE(n,this.writeOffset):this.buf.writeDoubleLE(n,this.writeOffset),this.writeOffset+=8};var XD=0,UD=1,GD=2,KD=3,zD=4,Ub=5,Xb=6,NW=7,HW=8,qW=9,BW=10,YW=11,Sbe=12,$D=0,OW=1,Tbe=127,kbe=32767,Dbe=2147483647;function fn(){MW.call(this),this.buf=new hi,this.state=$D}xbe.inherits(fn,MW);_g.BunserBuf=fn;fn.prototype.append=function(n,e){if(e)return this.buf.append(n),this.process(e);try{this.buf.append(n)}catch(t){this.emit("error",t);return}this.processLater()};fn.prototype.processLater=function(){var n=this;process.nextTick(function(){try{n.process(!1)}catch(e){n.emit("error",e)}})};fn.prototype.process=function(n){if(this.state==$D){if(this.buf.readAvail()<2)return;if(this.expectCode(0),this.expectCode(1),this.pduLen=this.decodeInt(!0),this.pduLen===!1){this.buf.readAdvance(-2);return}this.buf.reserve(this.pduLen),this.state=OW}if(this.state==OW){if(this.buf.readAvail()<this.pduLen)return;var e=this.decodeAny();if(n)return e;this.emit("value",e),this.state=$D}!n&&this.buf.readAvail()>0&&this.processLater()};fn.prototype.raise=function(n){throw new Error(n+", in Buffer of length "+this.buf.buf.length+" ("+this.buf.readAvail()+" readable) at offset "+this.buf.readOffset+" buffer: "+JSON.stringify(this.buf.buf.slice(this.buf.readOffset,this.buf.readOffset+32).toJSON()))};fn.prototype.expectCode=function(n){var e=this.buf.readInt(1);e!=n&&this.raise("expected bser opcode "+n+" but got "+e)};fn.prototype.decodeAny=function(){var n=this.buf.peekInt(1);switch(n){case KD:case zD:case Ub:case Xb:return this.decodeInt();case NW:return this.buf.readAdvance(1),this.buf.readDouble();case HW:return this.buf.readAdvance(1),!0;case qW:return this.buf.readAdvance(1),!1;case BW:return this.buf.readAdvance(1),null;case GD:return this.decodeString();case XD:return this.decodeArray();case UD:return this.decodeObject();case YW:return this.decodeTemplate();default:this.raise("unhandled bser opcode "+n)}};fn.prototype.decodeArray=function(){this.expectCode(XD);for(var n=this.decodeInt(),e=[],t=0;t<n;++t)e.push(this.decodeAny());return e};fn.prototype.decodeObject=function(){this.expectCode(UD);for(var n=this.decodeInt(),e={},t=0;t<n;++t){var i=this.decodeString(),r=this.decodeAny();e[i]=r}return e};fn.prototype.decodeTemplate=function(){this.expectCode(YW);for(var n=this.decodeArray(),e=this.decodeInt(),t=[],i=0;i<e;++i){for(var r={},o=0;o<n.length;++o){if(this.buf.peekInt(1)==Sbe){this.buf.readAdvance(1);continue}var s=this.decodeAny();r[n[o]]=s}t.push(r)}return t};fn.prototype.decodeString=function(){this.expectCode(GD);var n=this.decodeInt();return this.buf.readString(n)};fn.prototype.decodeInt=function(n){if(n&&this.buf.readAvail()<1)return!1;this.buf.assertReadableSize(1);var e=this.buf.peekInt(1),t=0;switch(e){case KD:t=1;break;case zD:t=2;break;case Ub:t=4;break;case Xb:t=8;break;default:this.raise("invalid bser int encoding "+e)}return n&&this.buf.readAvail()<1+t?!1:(this.buf.readAdvance(1),this.buf.readInt(t))};function Ebe(n){var e=new fn,t=e.append(n,!0);if(e.buf.readAvail())throw Error("excess data found after input buffer, use BunserBuf instead");if(typeof t>"u")throw Error("no bser found in string and no error raised!?");return t}_g.loadFromBuffer=Ebe;function WW(n){for(var e=Buffer.alloc(n.length),t=0;t<n.length;t++)e[t]=n[n.length-1-t];return e}function ZW(n,e){var t=e.toBuffer();if(ra){n.writeByte(Xb),n.append(t);return}var i=WW(t);n.writeByte(Xb),n.append(i)}function Jb(n,e){var t=Math.abs(e);t<=Tbe?(n.writeByte(KD),n.writeInt(e,1)):t<=kbe?(n.writeByte(zD),n.writeInt(e,2)):t<=Dbe?(n.writeByte(Ub),n.writeInt(e,4)):ZW(n,new Eg(e))}function $b(n,e){switch(typeof e){case"number":isFinite(e)&&Math.floor(e)===e?Jb(n,e):(n.writeByte(NW),n.writeDouble(e));return;case"string":n.writeByte(GD),Jb(n,Buffer.byteLength(e)),n.append(e);return;case"boolean":n.writeByte(e?HW:qW);return;case"object":if(e===null){n.writeByte(BW);return}if(e instanceof Eg){ZW(n,e);return}if(Array.isArray(e)){n.writeByte(XD),Jb(n,e.length);for(var t=0;t<e.length;++t)$b(n,e[t]);return}n.writeByte(UD);for(var i=Object.keys(e),r=i.length,t=0;t<i.length;++t){var o=i[t],s=e[o];typeof s>"u"&&r--}Jb(n,r);for(var t=0;t<i.length;++t){var o=i[t],s=e[o];if(!(typeof s>"u")){$b(n,o);try{$b(n,s)}catch(c){throw new Error(c.message+" (while serializing object property with name `"+o+"')")}}}return;default:throw new Error("cannot serialize type "+typeof e+" to BSER")}}function _be(n){var e=new hi;e.writeByte(0),e.writeByte(1),e.writeByte(Ub),e.writeInt(0,4),$b(e,n);var t=e.writeOffset,i=t-7;return e.writeOffset=3,e.writeInt(i,4),e.writeOffset=t,e.buf.slice(0,t)}_g.dumpToBuffer=_be});var QW=m((QIe,zW)=>{"use strict";var Pbe=require("net"),GW=require("events").EventEmitter,Rbe=require("util"),Lbe=require("child_process"),KW=JW(),$W=["subscription","log"];function $o(n){var e=this;GW.call(this),this.watchmanBinaryPath="watchman",n&&n.watchmanBinaryPath&&(this.watchmanBinaryPath=n.watchmanBinaryPath.trim()),this.commands=[]}Rbe.inherits($o,GW);zW.exports.Client=$o;$o.prototype.sendNextCommand=function(){this.currentCommand||(this.currentCommand=this.commands.shift(),this.currentCommand&&this.socket.write(KW.dumpToBuffer(this.currentCommand.cmd)))};$o.prototype.cancelCommands=function(n){var e=new Error(n),t=this.commands;this.commands=[],this.currentCommand&&(t.unshift(this.currentCommand),this.currentCommand=null),t.forEach(function(i){i.cb(e)})};$o.prototype.connect=function(){var n=this;function e(l){n.bunser=new KW.BunserBuf,n.bunser.on("value",function(u){for(var c=!1,h=0;h<$W.length;h++){var d=$W[h];d in u&&(c=d)}if(c)n.emit(c,u);else if(n.currentCommand){var g=n.currentCommand;if(n.currentCommand=null,"error"in u){var f=new Error(u.error);f.watchmanResponse=u,g.cb(f)}else g.cb(null,u)}n.sendNextCommand()}),n.bunser.on("error",function(u){n.emit("error",u)}),n.socket=Pbe.createConnection(l),n.socket.on("connect",function(){n.connecting=!1,n.emit("connect"),n.sendNextCommand()}),n.socket.on("error",function(u){n.connecting=!1,n.emit("error",u)}),n.socket.on("data",function(u){n.bunser&&n.bunser.append(u)}),n.socket.on("end",function(){n.socket=null,n.bunser=null,n.cancelCommands("The watchman connection was closed"),n.emit("end")})}if(process.env.WATCHMAN_SOCK){e(process.env.WATCHMAN_SOCK);return}var t=["--no-pretty","get-sockname"],i=null,r=!1;function o(l){r||(r=!0,l.errno==="EACCES"?l.message="The Watchman CLI is installed but cannot be spawned because of a permission problem":l.errno==="ENOENT"&&(l.message="Watchman was not found in PATH. See https://facebook.github.io/watchman/docs/install.html for installation instructions"),console.error("Watchman: ",l.message),n.emit("error",l))}try{i=Lbe.spawn(this.watchmanBinaryPath,t,{stdio:["ignore","pipe","pipe"]})}catch(l){o(l);return}var s=[],a=[];i.stdout.on("data",function(l){s.push(l)}),i.stderr.on("data",function(l){l=l.toString("utf8"),a.push(l),console.error(l)}),i.on("error",function(l){o(l)}),i.on("close",function(l,u){if(l!==0){o(new Error(n.watchmanBinaryPath+" "+t.join(" ")+" returned with exit code="+l+", signal="+u+", stderr= "+a.join("")));return}try{var c=JSON.parse(s.join(""));if("error"in c){var h=new Error(c.error);h.watchmanResponse=c,n.emit("error",h);return}e(c.sockname)}catch(d){n.emit("error",d)}})};$o.prototype.command=function(n,e){if(e=e||function(){},this.commands.push({cmd:n,cb:e}),!this.socket){if(!this.connecting){this.connecting=!0,this.connect();return}return}this.sendNextCommand()};var XW={"cmd-watch-del-all":"3.1.1","cmd-watch-project":"3.1",relative_root:"3.3","term-dirname":"3.1","term-idirname":"3.1",wildmatch:"3.7"};function Ibe(n,e){n=n.split("."),e=e.split(".");for(var t=0;t<3;t++){var i=parseInt(n[t]||"0")-parseInt(e[t]||"0");if(i!=0)return i}return 0}function UW(n,e){return e in XW?Ibe(n,XW[e])>=0:!1}$o.prototype._synthesizeCapabilityCheck=function(n,e,t){n.capabilities={};var i=n.version;return e.forEach(function(r){n.capabilities[r]=UW(i,r)}),t.forEach(function(r){var o=UW(i,r);n.capabilities[r]=o,o||(n.error="client required capability `"+r+"` is not supported by this server")}),n};$o.prototype.capabilityCheck=function(n,e){var t=n.optional||[],i=n.required||[],r=this;this.command(["version",{optional:t,required:i}],function(o,s){if(o){e(o);return}if(!("capabilities"in s)&&(s=r._synthesizeCapabilityCheck(s,t,i),s.error)){o=new Error(s.error),o.watchmanResponse=s,e(o);return}e(null,s)})};$o.prototype.end=function(){this.cancelCommands("The client was ended"),this.socket&&(this.socket.end(),this.socket=null),this.bunser=null}});function Pg(){return VW.default.randomBytes(16)}var VW,QD=P(()=>{VW=S(require("crypto"))});function jbe(n,e){var t=e||0,i=eZ;return[i[n[t++]],i[n[t++]],i[n[t++]],i[n[t++]],"-",i[n[t++]],i[n[t++]],"-",i[n[t++]],i[n[t++]],"-",i[n[t++]],i[n[t++]],"-",i[n[t++]],i[n[t++]],i[n[t++]],i[n[t++]],i[n[t++]],i[n[t++]]].join("")}var eZ,Rg,Gb,VD=P(()=>{eZ=[];for(Rg=0;Rg<256;++Rg)eZ[Rg]=(Rg+256).toString(16).substr(1);Gb=jbe});function Fbe(n,e,t){var i=e&&t||0,r=e||[];n=n||{};var o=n.node||tZ,s=n.clockseq!==void 0?n.clockseq:eE;if(o==null||s==null){var a=n.random||(n.rng||Pg)();o==null&&(o=tZ=[a[0]|1,a[1],a[2],a[3],a[4],a[5]]),s==null&&(s=eE=(a[6]<<8|a[7])&16383)}var l=n.msecs!==void 0?n.msecs:new Date().getTime(),u=n.nsecs!==void 0?n.nsecs:iE+1,c=l-tE+(u-iE)/1e4;if(c<0&&n.clockseq===void 0&&(s=s+1&16383),(c<0||l>tE)&&n.nsecs===void 0&&(u=0),u>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");tE=l,iE=u,eE=s,l+=122192928e5;var h=((l&268435455)*1e4+u)%4294967296;r[i++]=h>>>24&255,r[i++]=h>>>16&255,r[i++]=h>>>8&255,r[i++]=h&255;var d=l/4294967296*1e4&268435455;r[i++]=d>>>8&255,r[i++]=d&255,r[i++]=d>>>24&15|16,r[i++]=d>>>16&255,r[i++]=s>>>8|128,r[i++]=s&255;for(var g=0;g<6;++g)r[i+g]=o[g];return e||Gb(r)}var tZ,eE,tE,iE,Xo,iZ=P(()=>{QD();VD();tE=0,iE=0;Xo=Fbe});function Obe(n,e,t){var i=e&&t||0;typeof n=="string"&&(e=n==="binary"?new Array(16):null,n=null),n=n||{};var r=n.random||(n.rng||Pg)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,e)for(var o=0;o<16;++o)e[i+o]=r[o];return e||Gb(r)}var se,nZ=P(()=>{QD();VD();se=Obe});var Ne=P(()=>{iZ();nZ()});function Abe(n){return!(n=="/"||n=="/tmp"||n=="/private/tmp"||Ae(n,nE.default.homedir(),!0)||zb.default.parse(n).base==n||n.startsWith("/tmp/")||n.startsWith("/private/tmp/")||Ae(nE.default.tmpdir(),n,!0))}var rZ,oZ,nE,zb,Kb,Mbe,oa,rE=P(()=>{"use strict";rZ=S(QW()),oZ=S(Vn()),nE=S(require("os")),zb=S(require("path"));Ne();Xe();Kb=Y()("core-watchman"),Mbe=["relative_root","cmd-watch-project","wildmatch","field-new"],oa=class{constructor(e,t){this.channel=t;this._disposed=!1;this.client=new rZ.default.Client({watchmanBinaryPath:e}),this.client.setMaxListeners(300)}checkCapability(){let{client:e}=this;return new Promise((t,i)=>{e.capabilityCheck({optional:[],required:Mbe},(r,o)=>{if(r)return t(!1);let{capabilities:s}=o;for(let a of Object.keys(s))if(!s[a])return t(!1);t(!0)})})}async watchProject(e){let t=await this.command(["watch-project",e]),{watch:i,warning:r,relative_path:o}=t;return i?(r&&Kb.warn(r),this.watch=i,this.relative_path=o,Kb.info(`watchman watching project: ${e}`),this.appendOutput(`watchman watching project: ${e}`),!0):!1}command(e){return new Promise((t,i)=>{this.client.command(e,(r,o)=>{if(r)return i(r);t(o)})})}async subscribe(e,t){let{watch:i,relative_path:r}=this;if(!i)throw new Error("watchman not watching");let{clock:o}=await this.command(["clock",i]),s=Xo(),a={expression:["allof",["match","**/*","wholename"]],fields:["name","size","new","exists","type","mtime_ms","ctime_ms"],since:o},l=i;r&&(a.relative_root=r,l=zb.default.join(i,r));let{subscribe:u}=await this.command(["subscribe",i,s,a]);return this.appendOutput(`subscribing "${e}" in ${l}`),this.client.on("subscription",c=>{if(!c||c.subscription!=s)return;let{files:h}=c;if(!h||(h=h.filter(g=>g.type=="f"&&(0,oZ.default)(g.name,e,{dot:!0})),!h.length))return;let d=Object.assign({},c);this.relative_path&&(d.root=zb.default.resolve(c.root,this.relative_path)),this.appendOutput(`file change detected: ${JSON.stringify(d,null,2)}`),t(d)}),{dispose:()=>{this.unsubscribe(u)},subscribe:u}}unsubscribe(e){if(this._disposed)return Promise.resolve();let{watch:t}=this;if(!!t)return this.appendOutput(`unsubscribe "${e}" in: ${t}`),this.command(["unsubscribe",t,e]).catch(i=>{var r;(r=i.message)!=null&&r.includes("The client was ended")&&Kb.error(i)})}dispose(){this._disposed||(this._disposed=!0,this.client&&(this.client.removeAllListeners(),this.client.end(),this.client=void 0))}appendOutput(e,t="Info"){this.channel&&this.channel.appendLine(`[${t} - ${new Date().toLocaleTimeString()}] ${e}`)}static async createClient(e,t,i){if(!Abe(t))return null;let r;try{if(r=new oa(e,i),!await r.checkCapability())throw new Error("required capabilities do not exist.");if(!await r.watchProject(t))throw new Error("unable to watch");return r}catch(o){return r&&r.dispose(),Kb.error("Error on watchman create",o),null}}}});var sZ,_c,Pc,Cje,Lg,Ig,aZ,lZ=P(()=>{"use strict";sZ=S(Vn()),_c=S(require("path")),Pc=S(q());we();z();na();rE();Cje=Y()("filesystem-watcher"),Lg=class{constructor(e,t){this.workspaceFolder=e;this.watchmanPath=t;this.clientsMap=new Map;this.disposables=[];this.creating=new Set;this._onDidCreateClient=new Pc.Emitter;this.onDidCreateClient=this._onDidCreateClient.event}attach(e){this.channel=e;let t=i=>{let r=M.parse(i.uri).fsPath;this.creating.has(r)||(this.creating.add(r),this.createClient(r).finally(()=>{this.creating.delete(r)}))};this.workspaceFolder.workspaceFolders.forEach(i=>{t(i)}),this.workspaceFolder.onDidChangeWorkspaceFolders(i=>{i.added.forEach(r=>{t(r)}),i.removed.forEach(r=>{let o=M.parse(r.uri).fsPath,s=this.clientsMap.get(o);s&&(this.clientsMap.delete(o),s.dispose())})},null,this.disposables)}waitClient(e){return this.clientsMap.has(e)?Promise.resolve():new Promise(t=>{let i=this.onDidCreateClient(r=>{r==e&&(i.dispose(),t())})})}async createClient(e){if(!(this.watchmanPath==null||this.clientsMap.has(e)))try{let t=await oa.createClient(this.watchmanPath,e,this.channel);if(!t)return;this.clientsMap.set(e,t);for(let i of Lg.watchers)i.listen(t);this._onDidCreateClient.fire(e)}catch(t){this.channel&&this.channel.appendLine("Error on create watchman client:"+t)}}createFileSystemWatcher(e,t,i,r){let o=new aZ(e,t,i,r);for(let s of this.clientsMap.values())o.listen(s);return Lg.watchers.add(o),o}dispose(){this._onDidCreateClient.dispose();for(let e of this.clientsMap.values())e&&e.dispose();this.clientsMap.clear(),Lg.watchers.clear(),J(this.disposables)}},Ig=Lg;Ig.watchers=new Set;aZ=class{constructor(e,t,i,r){this.globPattern=e;this.ignoreCreateEvents=t;this.ignoreChangeEvents=i;this.ignoreDeleteEvents=r;this._onDidCreate=new Pc.Emitter;this._onDidChange=new Pc.Emitter;this._onDidDelete=new Pc.Emitter;this._onDidRename=new Pc.Emitter;this.disposables=[];this._disposed=!1;this.onDidCreate=this._onDidCreate.event;this.onDidChange=this._onDidChange.event;this.onDidDelete=this._onDidDelete.event;this.onDidRename=this._onDidRename.event}listen(e){let{globPattern:t,ignoreCreateEvents:i,ignoreChangeEvents:r,ignoreDeleteEvents:o}=this,s=a=>{let{root:l,files:u}=a;u=u.filter(c=>c.type=="f"&&(0,sZ.default)(c.name,t,{dot:!0}));for(let c of u){let h=M.file(_c.default.join(l,c.name));c.exists?c.new===!0?i||this._onDidCreate.fire(h):r||this._onDidChange.fire(h):o||this._onDidDelete.fire(h)}if(u.length==2&&!u[0].exists&&u[1].exists){let c=u[0],h=u[1];c.size==h.size&&this._onDidRename.fire({oldUri:M.file(_c.default.join(l,c.name)),newUri:M.file(_c.default.join(l,h.name))})}if(u.length>=2){let[c,h]=Zb(u,d=>d.exists===!1);if(c.length==h.length)for(let d of c){let g=h.find(f=>f.size==d.size&&f.mtime_ms==d.mtime_ms);g&&this._onDidRename.fire({oldUri:M.file(_c.default.join(l,d.name)),newUri:M.file(_c.default.join(l,g.name))})}}};e.subscribe(t,s).then(a=>{if(this.subscribe=a.subscribe,this._disposed)return a.dispose();this.disposables.push(a)}).logError()}dispose(){this._disposed=!0,Ig.watchers.delete(this),this._onDidRename.dispose(),this._onDidCreate.dispose(),this._onDidChange.dispose(),J(this.disposables)}}});var jg=m((Tje,uZ)=>{var Nbe="2.0.0",Hbe=Number.MAX_SAFE_INTEGER||9007199254740991,qbe=16;uZ.exports={SEMVER_SPEC_VERSION:Nbe,MAX_LENGTH:256,MAX_SAFE_INTEGER:Hbe,MAX_SAFE_COMPONENT_LENGTH:qbe}});var Fg=m((kje,cZ)=>{var Bbe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...n)=>console.error("SEMVER",...n):()=>{};cZ.exports=Bbe});var vl=m((sa,hZ)=>{var{MAX_SAFE_COMPONENT_LENGTH:oE}=jg(),Ybe=Fg();sa=hZ.exports={};var Wbe=sa.re=[],te=sa.src=[],ie=sa.t={},Zbe=0,Ce=(n,e,t)=>{let i=Zbe++;Ybe(n,i,e),ie[n]=i,te[i]=e,Wbe[i]=new RegExp(e,t?"g":void 0)};Ce("NUMERICIDENTIFIER","0|[1-9]\\d*");Ce("NUMERICIDENTIFIERLOOSE","[0-9]+");Ce("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");Ce("MAINVERSION",`(${te[ie.NUMERICIDENTIFIER]})\\.(${te[ie.NUMERICIDENTIFIER]})\\.(${te[ie.NUMERICIDENTIFIER]})`);Ce("MAINVERSIONLOOSE",`(${te[ie.NUMERICIDENTIFIERLOOSE]})\\.(${te[ie.NUMERICIDENTIFIERLOOSE]})\\.(${te[ie.NUMERICIDENTIFIERLOOSE]})`);Ce("PRERELEASEIDENTIFIER",`(?:${te[ie.NUMERICIDENTIFIER]}|${te[ie.NONNUMERICIDENTIFIER]})`);Ce("PRERELEASEIDENTIFIERLOOSE",`(?:${te[ie.NUMERICIDENTIFIERLOOSE]}|${te[ie.NONNUMERICIDENTIFIER]})`);Ce("PRERELEASE",`(?:-(${te[ie.PRERELEASEIDENTIFIER]}(?:\\.${te[ie.PRERELEASEIDENTIFIER]})*))`);Ce("PRERELEASELOOSE",`(?:-?(${te[ie.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${te[ie.PRERELEASEIDENTIFIERLOOSE]})*))`);Ce("BUILDIDENTIFIER","[0-9A-Za-z-]+");Ce("BUILD",`(?:\\+(${te[ie.BUILDIDENTIFIER]}(?:\\.${te[ie.BUILDIDENTIFIER]})*))`);Ce("FULLPLAIN",`v?${te[ie.MAINVERSION]}${te[ie.PRERELEASE]}?${te[ie.BUILD]}?`);Ce("FULL",`^${te[ie.FULLPLAIN]}$`);Ce("LOOSEPLAIN",`[v=\\s]*${te[ie.MAINVERSIONLOOSE]}${te[ie.PRERELEASELOOSE]}?${te[ie.BUILD]}?`);Ce("LOOSE",`^${te[ie.LOOSEPLAIN]}$`);Ce("GTLT","((?:<|>)?=?)");Ce("XRANGEIDENTIFIERLOOSE",`${te[ie.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Ce("XRANGEIDENTIFIER",`${te[ie.NUMERICIDENTIFIER]}|x|X|\\*`);Ce("XRANGEPLAIN",`[v=\\s]*(${te[ie.XRANGEIDENTIFIER]})(?:\\.(${te[ie.XRANGEIDENTIFIER]})(?:\\.(${te[ie.XRANGEIDENTIFIER]})(?:${te[ie.PRERELEASE]})?${te[ie.BUILD]}?)?)?`);Ce("XRANGEPLAINLOOSE",`[v=\\s]*(${te[ie.XRANGEIDENTIFIERLOOSE]})(?:\\.(${te[ie.XRANGEIDENTIFIERLOOSE]})(?:\\.(${te[ie.XRANGEIDENTIFIERLOOSE]})(?:${te[ie.PRERELEASELOOSE]})?${te[ie.BUILD]}?)?)?`);Ce("XRANGE",`^${te[ie.GTLT]}\\s*${te[ie.XRANGEPLAIN]}$`);Ce("XRANGELOOSE",`^${te[ie.GTLT]}\\s*${te[ie.XRANGEPLAINLOOSE]}$`);Ce("COERCE",`(^|[^\\d])(\\d{1,${oE}})(?:\\.(\\d{1,${oE}}))?(?:\\.(\\d{1,${oE}}))?(?:$|[^\\d])`);Ce("COERCERTL",te[ie.COERCE],!0);Ce("LONETILDE","(?:~>?)");Ce("TILDETRIM",`(\\s*)${te[ie.LONETILDE]}\\s+`,!0);sa.tildeTrimReplace="$1~";Ce("TILDE",`^${te[ie.LONETILDE]}${te[ie.XRANGEPLAIN]}$`);Ce("TILDELOOSE",`^${te[ie.LONETILDE]}${te[ie.XRANGEPLAINLOOSE]}$`);Ce("LONECARET","(?:\\^)");Ce("CARETTRIM",`(\\s*)${te[ie.LONECARET]}\\s+`,!0);sa.caretTrimReplace="$1^";Ce("CARET",`^${te[ie.LONECARET]}${te[ie.XRANGEPLAIN]}$`);Ce("CARETLOOSE",`^${te[ie.LONECARET]}${te[ie.XRANGEPLAINLOOSE]}$`);Ce("COMPARATORLOOSE",`^${te[ie.GTLT]}\\s*(${te[ie.LOOSEPLAIN]})$|^$`);Ce("COMPARATOR",`^${te[ie.GTLT]}\\s*(${te[ie.FULLPLAIN]})$|^$`);Ce("COMPARATORTRIM",`(\\s*)${te[ie.GTLT]}\\s*(${te[ie.LOOSEPLAIN]}|${te[ie.XRANGEPLAIN]})`,!0);sa.comparatorTrimReplace="$1$2$3";Ce("HYPHENRANGE",`^\\s*(${te[ie.XRANGEPLAIN]})\\s+-\\s+(${te[ie.XRANGEPLAIN]})\\s*$`);Ce("HYPHENRANGELOOSE",`^\\s*(${te[ie.XRANGEPLAINLOOSE]})\\s+-\\s+(${te[ie.XRANGEPLAINLOOSE]})\\s*$`);Ce("STAR","(<|>)?=?\\s*\\*");Ce("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Ce("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Og=m((Dje,dZ)=>{var Jbe=["includePrerelease","loose","rtl"],$be=n=>n?typeof n!="object"?{loose:!0}:Jbe.filter(e=>n[e]).reduce((e,t)=>(e[t]=!0,e),{}):{};dZ.exports=$be});var Qb=m((Eje,pZ)=>{var gZ=/^[0-9]+$/,fZ=(n,e)=>{let t=gZ.test(n),i=gZ.test(e);return t&&i&&(n=+n,e=+e),n===e?0:t&&!i?-1:i&&!t?1:n<e?-1:1},Xbe=(n,e)=>fZ(e,n);pZ.exports={compareIdentifiers:fZ,rcompareIdentifiers:Xbe}});var Li=m((_je,vZ)=>{var Vb=Fg(),{MAX_LENGTH:mZ,MAX_SAFE_INTEGER:ey}=jg(),{re:bZ,t:yZ}=vl(),Ube=Og(),{compareIdentifiers:Rc}=Qb(),nr=class{constructor(e,t){if(t=Ube(t),e instanceof nr){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid Version: ${e}`);if(e.length>mZ)throw new TypeError(`version is longer than ${mZ} characters`);Vb("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let i=e.trim().match(t.loose?bZ[yZ.LOOSE]:bZ[yZ.FULL]);if(!i)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>ey||this.major<0)throw new TypeError("Invalid major version");if(this.minor>ey||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>ey||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(r=>{if(/^[0-9]+$/.test(r)){let o=+r;if(o>=0&&o<ey)return o}return r}):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(Vb("SemVer.compare",this.version,this.options,e),!(e instanceof nr)){if(typeof e=="string"&&e===this.version)return 0;e=new nr(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof nr||(e=new nr(e,this.options)),Rc(this.major,e.major)||Rc(this.minor,e.minor)||Rc(this.patch,e.patch)}comparePre(e){if(e instanceof nr||(e=new nr(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{let i=this.prerelease[t],r=e.prerelease[t];if(Vb("prerelease compare",t,i,r),i===void 0&&r===void 0)return 0;if(r===void 0)return 1;if(i===void 0)return-1;if(i===r)continue;return Rc(i,r)}while(++t)}compareBuild(e){e instanceof nr||(e=new nr(e,this.options));let t=0;do{let i=this.build[t],r=e.build[t];if(Vb("prerelease compare",t,i,r),i===void 0&&r===void 0)return 0;if(r===void 0)return 1;if(i===void 0)return-1;if(i===r)continue;return Rc(i,r)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",t),this.inc("pre",t);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);i===-1&&this.prerelease.push(0)}t&&(Rc(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}};vZ.exports=nr});var wl=m((Pje,SZ)=>{var{MAX_LENGTH:Gbe}=jg(),{re:wZ,t:xZ}=vl(),CZ=Li(),Kbe=Og(),zbe=(n,e)=>{if(e=Kbe(e),n instanceof CZ)return n;if(typeof n!="string"||n.length>Gbe||!(e.loose?wZ[xZ.LOOSE]:wZ[xZ.FULL]).test(n))return null;try{return new CZ(n,e)}catch{return null}};SZ.exports=zbe});var kZ=m((Rje,TZ)=>{var Qbe=wl(),Vbe=(n,e)=>{let t=Qbe(n,e);return t?t.version:null};TZ.exports=Vbe});var EZ=m((Lje,DZ)=>{var eye=wl(),tye=(n,e)=>{let t=eye(n.trim().replace(/^[=v]+/,""),e);return t?t.version:null};DZ.exports=tye});var RZ=m((Ije,PZ)=>{var _Z=Li(),iye=(n,e,t,i)=>{typeof t=="string"&&(i=t,t=void 0);try{return new _Z(n instanceof _Z?n.version:n,t).inc(e,i).version}catch{return null}};PZ.exports=iye});var rr=m((jje,IZ)=>{var LZ=Li(),nye=(n,e,t)=>new LZ(n,t).compare(new LZ(e,t));IZ.exports=nye});var ty=m((Fje,jZ)=>{var rye=rr(),oye=(n,e,t)=>rye(n,e,t)===0;jZ.exports=oye});var MZ=m((Oje,OZ)=>{var FZ=wl(),sye=ty(),aye=(n,e)=>{if(sye(n,e))return null;{let t=FZ(n),i=FZ(e),r=t.prerelease.length||i.prerelease.length,o=r?"pre":"",s=r?"prerelease":"";for(let a in t)if((a==="major"||a==="minor"||a==="patch")&&t[a]!==i[a])return o+a;return s}};OZ.exports=aye});var NZ=m((Mje,AZ)=>{var lye=Li(),uye=(n,e)=>new lye(n,e).major;AZ.exports=uye});var qZ=m((Aje,HZ)=>{var cye=Li(),hye=(n,e)=>new cye(n,e).minor;HZ.exports=hye});var YZ=m((Nje,BZ)=>{var dye=Li(),gye=(n,e)=>new dye(n,e).patch;BZ.exports=gye});var ZZ=m((Hje,WZ)=>{var fye=wl(),pye=(n,e)=>{let t=fye(n,e);return t&&t.prerelease.length?t.prerelease:null};WZ.exports=pye});var $Z=m((qje,JZ)=>{var mye=rr(),bye=(n,e,t)=>mye(e,n,t);JZ.exports=bye});var UZ=m((Bje,XZ)=>{var yye=rr(),vye=(n,e)=>yye(n,e,!0);XZ.exports=vye});var iy=m((Yje,KZ)=>{var GZ=Li(),wye=(n,e,t)=>{let i=new GZ(n,t),r=new GZ(e,t);return i.compare(r)||i.compareBuild(r)};KZ.exports=wye});var QZ=m((Wje,zZ)=>{var xye=iy(),Cye=(n,e)=>n.sort((t,i)=>xye(t,i,e));zZ.exports=Cye});var eJ=m((Zje,VZ)=>{var Sye=iy(),Tye=(n,e)=>n.sort((t,i)=>Sye(i,t,e));VZ.exports=Tye});var Mg=m((Jje,tJ)=>{var kye=rr(),Dye=(n,e,t)=>kye(n,e,t)>0;tJ.exports=Dye});var ny=m(($je,iJ)=>{var Eye=rr(),_ye=(n,e,t)=>Eye(n,e,t)<0;iJ.exports=_ye});var sE=m((Xje,nJ)=>{var Pye=rr(),Rye=(n,e,t)=>Pye(n,e,t)!==0;nJ.exports=Rye});var ry=m((Uje,rJ)=>{var Lye=rr(),Iye=(n,e,t)=>Lye(n,e,t)>=0;rJ.exports=Iye});var oy=m((Gje,oJ)=>{var jye=rr(),Fye=(n,e,t)=>jye(n,e,t)<=0;oJ.exports=Fye});var aE=m((Kje,sJ)=>{var Oye=ty(),Mye=sE(),Aye=Mg(),Nye=ry(),Hye=ny(),qye=oy(),Bye=(n,e,t,i)=>{switch(e){case"===":return typeof n=="object"&&(n=n.version),typeof t=="object"&&(t=t.version),n===t;case"!==":return typeof n=="object"&&(n=n.version),typeof t=="object"&&(t=t.version),n!==t;case"":case"=":case"==":return Oye(n,t,i);case"!=":return Mye(n,t,i);case">":return Aye(n,t,i);case">=":return Nye(n,t,i);case"<":return Hye(n,t,i);case"<=":return qye(n,t,i);default:throw new TypeError(`Invalid operator: ${e}`)}};sJ.exports=Bye});var lJ=m((zje,aJ)=>{var Yye=Li(),Wye=wl(),{re:sy,t:ay}=vl(),Zye=(n,e)=>{if(n instanceof Yye)return n;if(typeof n=="number"&&(n=String(n)),typeof n!="string")return null;e=e||{};let t=null;if(!e.rtl)t=n.match(sy[ay.COERCE]);else{let i;for(;(i=sy[ay.COERCERTL].exec(n))&&(!t||t.index+t[0].length!==n.length);)(!t||i.index+i[0].length!==t.index+t[0].length)&&(t=i),sy[ay.COERCERTL].lastIndex=i.index+i[1].length+i[2].length;sy[ay.COERCERTL].lastIndex=-1}return t===null?null:Wye(`${t[2]}.${t[3]||"0"}.${t[4]||"0"}`,e)};aJ.exports=Zye});var cJ=m((Qje,uJ)=>{"use strict";uJ.exports=function(n){n.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var Ag=m((Vje,hJ)=>{"use strict";hJ.exports=He;He.Node=xl;He.create=He;function He(n){var e=this;if(e instanceof He||(e=new He),e.tail=null,e.head=null,e.length=0,n&&typeof n.forEach=="function")n.forEach(function(r){e.push(r)});else if(arguments.length>0)for(var t=0,i=arguments.length;t<i;t++)e.push(arguments[t]);return e}He.prototype.removeNode=function(n){if(n.list!==this)throw new Error("removing node which does not belong to this list");var e=n.next,t=n.prev;return e&&(e.prev=t),t&&(t.next=e),n===this.head&&(this.head=e),n===this.tail&&(this.tail=t),n.list.length--,n.next=null,n.prev=null,n.list=null,e};He.prototype.unshiftNode=function(n){if(n!==this.head){n.list&&n.list.removeNode(n);var e=this.head;n.list=this,n.next=e,e&&(e.prev=n),this.head=n,this.tail||(this.tail=n),this.length++}};He.prototype.pushNode=function(n){if(n!==this.tail){n.list&&n.list.removeNode(n);var e=this.tail;n.list=this,n.prev=e,e&&(e.next=n),this.tail=n,this.head||(this.head=n),this.length++}};He.prototype.push=function(){for(var n=0,e=arguments.length;n<e;n++)$ye(this,arguments[n]);return this.length};He.prototype.unshift=function(){for(var n=0,e=arguments.length;n<e;n++)Xye(this,arguments[n]);return this.length};He.prototype.pop=function(){if(!!this.tail){var n=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,n}};He.prototype.shift=function(){if(!!this.head){var n=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,n}};He.prototype.forEach=function(n,e){e=e||this;for(var t=this.head,i=0;t!==null;i++)n.call(e,t.value,i,this),t=t.next};He.prototype.forEachReverse=function(n,e){e=e||this;for(var t=this.tail,i=this.length-1;t!==null;i--)n.call(e,t.value,i,this),t=t.prev};He.prototype.get=function(n){for(var e=0,t=this.head;t!==null&&e<n;e++)t=t.next;if(e===n&&t!==null)return t.value};He.prototype.getReverse=function(n){for(var e=0,t=this.tail;t!==null&&e<n;e++)t=t.prev;if(e===n&&t!==null)return t.value};He.prototype.map=function(n,e){e=e||this;for(var t=new He,i=this.head;i!==null;)t.push(n.call(e,i.value,this)),i=i.next;return t};He.prototype.mapReverse=function(n,e){e=e||this;for(var t=new He,i=this.tail;i!==null;)t.push(n.call(e,i.value,this)),i=i.prev;return t};He.prototype.reduce=function(n,e){var t,i=this.head;if(arguments.length>1)t=e;else if(this.head)i=this.head.next,t=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var r=0;i!==null;r++)t=n(t,i.value,r),i=i.next;return t};He.prototype.reduceReverse=function(n,e){var t,i=this.tail;if(arguments.length>1)t=e;else if(this.tail)i=this.tail.prev,t=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var r=this.length-1;i!==null;r--)t=n(t,i.value,r),i=i.prev;return t};He.prototype.toArray=function(){for(var n=new Array(this.length),e=0,t=this.head;t!==null;e++)n[e]=t.value,t=t.next;return n};He.prototype.toArrayReverse=function(){for(var n=new Array(this.length),e=0,t=this.tail;t!==null;e++)n[e]=t.value,t=t.prev;return n};He.prototype.slice=function(n,e){e=e||this.length,e<0&&(e+=this.length),n=n||0,n<0&&(n+=this.length);var t=new He;if(e<n||e<0)return t;n<0&&(n=0),e>this.length&&(e=this.length);for(var i=0,r=this.head;r!==null&&i<n;i++)r=r.next;for(;r!==null&&i<e;i++,r=r.next)t.push(r.value);return t};He.prototype.sliceReverse=function(n,e){e=e||this.length,e<0&&(e+=this.length),n=n||0,n<0&&(n+=this.length);var t=new He;if(e<n||e<0)return t;n<0&&(n=0),e>this.length&&(e=this.length);for(var i=this.length,r=this.tail;r!==null&&i>e;i--)r=r.prev;for(;r!==null&&i>n;i--,r=r.prev)t.push(r.value);return t};He.prototype.splice=function(n,e,...t){n>this.length&&(n=this.length-1),n<0&&(n=this.length+n);for(var i=0,r=this.head;r!==null&&i<n;i++)r=r.next;for(var o=[],i=0;r&&i<e;i++)o.push(r.value),r=this.removeNode(r);r===null&&(r=this.tail),r!==this.head&&r!==this.tail&&(r=r.prev);for(var i=0;i<t.length;i++)r=Jye(this,r,t[i]);return o};He.prototype.reverse=function(){for(var n=this.head,e=this.tail,t=n;t!==null;t=t.prev){var i=t.prev;t.prev=t.next,t.next=i}return this.head=e,this.tail=n,this};function Jye(n,e,t){var i=e===n.head?new xl(t,null,e,n):new xl(t,e,e.next,n);return i.next===null&&(n.tail=i),i.prev===null&&(n.head=i),n.length++,i}function $ye(n,e){n.tail=new xl(e,n.tail,null,n),n.head||(n.head=n.tail),n.length++}function Xye(n,e){n.head=new xl(e,null,n.head,n),n.tail||(n.tail=n.head),n.length++}function xl(n,e,t,i){if(!(this instanceof xl))return new xl(n,e,t,i);this.list=i,this.value=n,e?(e.next=this,this.prev=e):this.prev=null,t?(t.prev=this,this.next=t):this.next=null}try{cJ()(He)}catch{}});var yJ=m((eFe,bJ)=>{"use strict";var Uye=Ag(),Cl=Symbol("max"),Go=Symbol("length"),Lc=Symbol("lengthCalculator"),Hg=Symbol("allowStale"),Sl=Symbol("maxAge"),Uo=Symbol("dispose"),dJ=Symbol("noDisposeOnSet"),di=Symbol("lruList"),jr=Symbol("cache"),fJ=Symbol("updateAgeOnGet"),lE=()=>1,pJ=class{constructor(e){if(typeof e=="number"&&(e={max:e}),e||(e={}),e.max&&(typeof e.max!="number"||e.max<0))throw new TypeError("max must be a non-negative number");let t=this[Cl]=e.max||1/0,i=e.length||lE;if(this[Lc]=typeof i!="function"?lE:i,this[Hg]=e.stale||!1,e.maxAge&&typeof e.maxAge!="number")throw new TypeError("maxAge must be a number");this[Sl]=e.maxAge||0,this[Uo]=e.dispose,this[dJ]=e.noDisposeOnSet||!1,this[fJ]=e.updateAgeOnGet||!1,this.reset()}set max(e){if(typeof e!="number"||e<0)throw new TypeError("max must be a non-negative number");this[Cl]=e||1/0,Ng(this)}get max(){return this[Cl]}set allowStale(e){this[Hg]=!!e}get allowStale(){return this[Hg]}set maxAge(e){if(typeof e!="number")throw new TypeError("maxAge must be a non-negative number");this[Sl]=e,Ng(this)}get maxAge(){return this[Sl]}set lengthCalculator(e){typeof e!="function"&&(e=lE),e!==this[Lc]&&(this[Lc]=e,this[Go]=0,this[di].forEach(t=>{t.length=this[Lc](t.value,t.key),this[Go]+=t.length})),Ng(this)}get lengthCalculator(){return this[Lc]}get length(){return this[Go]}get itemCount(){return this[di].length}rforEach(e,t){t=t||this;for(let i=this[di].tail;i!==null;){let r=i.prev;gJ(this,e,i,t),i=r}}forEach(e,t){t=t||this;for(let i=this[di].head;i!==null;){let r=i.next;gJ(this,e,i,t),i=r}}keys(){return this[di].toArray().map(e=>e.key)}values(){return this[di].toArray().map(e=>e.value)}reset(){this[Uo]&&this[di]&&this[di].length&&this[di].forEach(e=>this[Uo](e.key,e.value)),this[jr]=new Map,this[di]=new Uye,this[Go]=0}dump(){return this[di].map(e=>ly(this,e)?!1:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[di]}set(e,t,i){if(i=i||this[Sl],i&&typeof i!="number")throw new TypeError("maxAge must be a number");let r=i?Date.now():0,o=this[Lc](t,e);if(this[jr].has(e)){if(o>this[Cl])return Ic(this,this[jr].get(e)),!1;let l=this[jr].get(e).value;return this[Uo]&&(this[dJ]||this[Uo](e,l.value)),l.now=r,l.maxAge=i,l.value=t,this[Go]+=o-l.length,l.length=o,this.get(e),Ng(this),!0}let s=new mJ(e,t,o,r,i);return s.length>this[Cl]?(this[Uo]&&this[Uo](e,t),!1):(this[Go]+=s.length,this[di].unshift(s),this[jr].set(e,this[di].head),Ng(this),!0)}has(e){if(!this[jr].has(e))return!1;let t=this[jr].get(e).value;return!ly(this,t)}get(e){return uE(this,e,!0)}peek(e){return uE(this,e,!1)}pop(){let e=this[di].tail;return e?(Ic(this,e),e.value):null}del(e){Ic(this,this[jr].get(e))}load(e){this.reset();let t=Date.now();for(let i=e.length-1;i>=0;i--){let r=e[i],o=r.e||0;if(o===0)this.set(r.k,r.v);else{let s=o-t;s>0&&this.set(r.k,r.v,s)}}}prune(){this[jr].forEach((e,t)=>uE(this,t,!1))}},uE=(n,e,t)=>{let i=n[jr].get(e);if(i){let r=i.value;if(ly(n,r)){if(Ic(n,i),!n[Hg])return}else t&&(n[fJ]&&(i.value.now=Date.now()),n[di].unshiftNode(i));return r.value}},ly=(n,e)=>{if(!e||!e.maxAge&&!n[Sl])return!1;let t=Date.now()-e.now;return e.maxAge?t>e.maxAge:n[Sl]&&t>n[Sl]},Ng=n=>{if(n[Go]>n[Cl])for(let e=n[di].tail;n[Go]>n[Cl]&&e!==null;){let t=e.prev;Ic(n,e),e=t}},Ic=(n,e)=>{if(e){let t=e.value;n[Uo]&&n[Uo](t.key,t.value),n[Go]-=t.length,n[jr].delete(t.key),n[di].removeNode(e)}},mJ=class{constructor(e,t,i,r,o){this.key=e,this.value=t,this.length=i,this.now=r,this.maxAge=o||0}},gJ=(n,e,t,i)=>{let r=t.value;ly(n,r)&&(Ic(n,t),n[Hg]||(r=void 0)),r&&e.call(i,r.value,r.key,n)};bJ.exports=pJ});var or=m((tFe,CJ)=>{var jc=class{constructor(e,t){if(t=Kye(t),e instanceof jc)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new jc(e.raw,t);if(e instanceof cE)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split("||").map(i=>this.parseRange(i.trim())).filter(i=>i.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);if(this.set.length>1){let i=this.set[0];if(this.set=this.set.filter(r=>!wJ(r[0])),this.set.length===0)this.set=[i];else if(this.set.length>1){for(let r of this.set)if(r.length===1&&tve(r[0])){this.set=[r];break}}}this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();let i=`parseRange:${Object.keys(this.options).join(",")}:${e}`,r=vJ.get(i);if(r)return r;let o=this.options.loose,s=o?pn[Gi.HYPHENRANGELOOSE]:pn[Gi.HYPHENRANGE];e=e.replace(s,hve(this.options.includePrerelease)),Et("hyphen replace",e),e=e.replace(pn[Gi.COMPARATORTRIM],Qye),Et("comparator trim",e),e=e.replace(pn[Gi.TILDETRIM],Vye),e=e.replace(pn[Gi.CARETTRIM],eve),e=e.split(/\s+/).join(" ");let a=e.split(" ").map(h=>ive(h,this.options)).join(" ").split(/\s+/).map(h=>cve(h,this.options));o&&(a=a.filter(h=>(Et("loose invalid filter",h,this.options),!!h.match(pn[Gi.COMPARATORLOOSE])))),Et("range list",a);let l=new Map,u=a.map(h=>new cE(h,this.options));for(let h of u){if(wJ(h))return[h];l.set(h.value,h)}l.size>1&&l.has("")&&l.delete("");let c=[...l.values()];return vJ.set(i,c),c}intersects(e,t){if(!(e instanceof jc))throw new TypeError("a Range is required");return this.set.some(i=>xJ(i,t)&&e.set.some(r=>xJ(r,t)&&i.every(o=>r.every(s=>o.intersects(s,t)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new zye(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(dve(this.set[t],e,this.options))return!0;return!1}};CJ.exports=jc;var Gye=yJ(),vJ=new Gye({max:1e3}),Kye=Og(),cE=qg(),Et=Fg(),zye=Li(),{re:pn,t:Gi,comparatorTrimReplace:Qye,tildeTrimReplace:Vye,caretTrimReplace:eve}=vl(),wJ=n=>n.value==="<0.0.0-0",tve=n=>n.value==="",xJ=(n,e)=>{let t=!0,i=n.slice(),r=i.pop();for(;t&&i.length;)t=i.every(o=>r.intersects(o,e)),r=i.pop();return t},ive=(n,e)=>(Et("comp",n,e),n=ove(n,e),Et("caret",n),n=nve(n,e),Et("tildes",n),n=ave(n,e),Et("xrange",n),n=uve(n,e),Et("stars",n),n),Ki=n=>!n||n.toLowerCase()==="x"||n==="*",nve=(n,e)=>n.trim().split(/\s+/).map(t=>rve(t,e)).join(" "),rve=(n,e)=>{let t=e.loose?pn[Gi.TILDELOOSE]:pn[Gi.TILDE];return n.replace(t,(i,r,o,s,a)=>{Et("tilde",n,i,r,o,s,a);let l;return Ki(r)?l="":Ki(o)?l=`>=${r}.0.0 <${+r+1}.0.0-0`:Ki(s)?l=`>=${r}.${o}.0 <${r}.${+o+1}.0-0`:a?(Et("replaceTilde pr",a),l=`>=${r}.${o}.${s}-${a} <${r}.${+o+1}.0-0`):l=`>=${r}.${o}.${s} <${r}.${+o+1}.0-0`,Et("tilde return",l),l})},ove=(n,e)=>n.trim().split(/\s+/).map(t=>sve(t,e)).join(" "),sve=(n,e)=>{Et("caret",n,e);let t=e.loose?pn[Gi.CARETLOOSE]:pn[Gi.CARET],i=e.includePrerelease?"-0":"";return n.replace(t,(r,o,s,a,l)=>{Et("caret",n,r,o,s,a,l);let u;return Ki(o)?u="":Ki(s)?u=`>=${o}.0.0${i} <${+o+1}.0.0-0`:Ki(a)?o==="0"?u=`>=${o}.${s}.0${i} <${o}.${+s+1}.0-0`:u=`>=${o}.${s}.0${i} <${+o+1}.0.0-0`:l?(Et("replaceCaret pr",l),o==="0"?s==="0"?u=`>=${o}.${s}.${a}-${l} <${o}.${s}.${+a+1}-0`:u=`>=${o}.${s}.${a}-${l} <${o}.${+s+1}.0-0`:u=`>=${o}.${s}.${a}-${l} <${+o+1}.0.0-0`):(Et("no pr"),o==="0"?s==="0"?u=`>=${o}.${s}.${a}${i} <${o}.${s}.${+a+1}-0`:u=`>=${o}.${s}.${a}${i} <${o}.${+s+1}.0-0`:u=`>=${o}.${s}.${a} <${+o+1}.0.0-0`),Et("caret return",u),u})},ave=(n,e)=>(Et("replaceXRanges",n,e),n.split(/\s+/).map(t=>lve(t,e)).join(" ")),lve=(n,e)=>{n=n.trim();let t=e.loose?pn[Gi.XRANGELOOSE]:pn[Gi.XRANGE];return n.replace(t,(i,r,o,s,a,l)=>{Et("xRange",n,i,r,o,s,a,l);let u=Ki(o),c=u||Ki(s),h=c||Ki(a),d=h;return r==="="&&d&&(r=""),l=e.includePrerelease?"-0":"",u?r===">"||r==="<"?i="<0.0.0-0":i="*":r&&d?(c&&(s=0),a=0,r===">"?(r=">=",c?(o=+o+1,s=0,a=0):(s=+s+1,a=0)):r==="<="&&(r="<",c?o=+o+1:s=+s+1),r==="<"&&(l="-0"),i=`${r+o}.${s}.${a}${l}`):c?i=`>=${o}.0.0${l} <${+o+1}.0.0-0`:h&&(i=`>=${o}.${s}.0${l} <${o}.${+s+1}.0-0`),Et("xRange return",i),i})},uve=(n,e)=>(Et("replaceStars",n,e),n.trim().replace(pn[Gi.STAR],"")),cve=(n,e)=>(Et("replaceGTE0",n,e),n.trim().replace(pn[e.includePrerelease?Gi.GTE0PRE:Gi.GTE0],"")),hve=n=>(e,t,i,r,o,s,a,l,u,c,h,d,g)=>(Ki(i)?t="":Ki(r)?t=`>=${i}.0.0${n?"-0":""}`:Ki(o)?t=`>=${i}.${r}.0${n?"-0":""}`:s?t=`>=${t}`:t=`>=${t}${n?"-0":""}`,Ki(u)?l="":Ki(c)?l=`<${+u+1}.0.0-0`:Ki(h)?l=`<${u}.${+c+1}.0-0`:d?l=`<=${u}.${c}.${h}-${d}`:n?l=`<${u}.${c}.${+h+1}-0`:l=`<=${l}`,`${t} ${l}`.trim()),dve=(n,e,t)=>{for(let i=0;i<n.length;i++)if(!n[i].test(e))return!1;if(e.prerelease.length&&!t.includePrerelease){for(let i=0;i<n.length;i++)if(Et(n[i].semver),n[i].semver!==cE.ANY&&n[i].semver.prerelease.length>0){let r=n[i].semver;if(r.major===e.major&&r.minor===e.minor&&r.patch===e.patch)return!0}return!1}return!0}});var qg=m((iFe,EJ)=>{var Bg=Symbol("SemVer ANY"),Yg=class{static get ANY(){return Bg}constructor(e,t){if(t=gve(t),e instanceof Yg){if(e.loose===!!t.loose)return e;e=e.value}dE("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===Bg?this.value="":this.value=this.operator+this.semver.version,dE("comp",this)}parse(e){let t=this.options.loose?SJ[TJ.COMPARATORLOOSE]:SJ[TJ.COMPARATOR],i=e.match(t);if(!i)throw new TypeError(`Invalid comparator: ${e}`);this.operator=i[1]!==void 0?i[1]:"",this.operator==="="&&(this.operator=""),i[2]?this.semver=new kJ(i[2],this.options.loose):this.semver=Bg}toString(){return this.value}test(e){if(dE("Comparator.test",e,this.options.loose),this.semver===Bg||e===Bg)return!0;if(typeof e=="string")try{e=new kJ(e,this.options)}catch{return!1}return hE(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Yg))throw new TypeError("a Comparator is required");if((!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new DJ(e.value,t).test(this.value);if(e.operator==="")return e.value===""?!0:new DJ(this.value,t).test(e.semver);let i=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">"),r=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<"),o=this.semver.version===e.semver.version,s=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<="),a=hE(this.semver,"<",e.semver,t)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"),l=hE(this.semver,">",e.semver,t)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return i||r||o&&s||a||l}};EJ.exports=Yg;var gve=Og(),{re:SJ,t:TJ}=vl(),hE=aE(),dE=Fg(),kJ=Li(),DJ=or()});var Wg=m((nFe,_J)=>{var fve=or(),pve=(n,e,t)=>{try{e=new fve(e,t)}catch{return!1}return e.test(n)};_J.exports=pve});var RJ=m((rFe,PJ)=>{var mve=or(),bve=(n,e)=>new mve(n,e).set.map(t=>t.map(i=>i.value).join(" ").trim().split(" "));PJ.exports=bve});var IJ=m((oFe,LJ)=>{var yve=Li(),vve=or(),wve=(n,e,t)=>{let i=null,r=null,o=null;try{o=new vve(e,t)}catch{return null}return n.forEach(s=>{o.test(s)&&(!i||r.compare(s)===-1)&&(i=s,r=new yve(i,t))}),i};LJ.exports=wve});var FJ=m((sFe,jJ)=>{var xve=Li(),Cve=or(),Sve=(n,e,t)=>{let i=null,r=null,o=null;try{o=new Cve(e,t)}catch{return null}return n.forEach(s=>{o.test(s)&&(!i||r.compare(s)===1)&&(i=s,r=new xve(i,t))}),i};jJ.exports=Sve});var AJ=m((aFe,MJ)=>{var gE=Li(),Tve=or(),OJ=Mg(),kve=(n,e)=>{n=new Tve(n,e);let t=new gE("0.0.0");if(n.test(t)||(t=new gE("0.0.0-0"),n.test(t)))return t;t=null;for(let i=0;i<n.set.length;++i){let r=n.set[i],o=null;r.forEach(s=>{let a=new gE(s.semver.version);switch(s.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!o||OJ(a,o))&&(o=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${s.operator}`)}}),o&&(!t||OJ(t,o))&&(t=o)}return t&&n.test(t)?t:null};MJ.exports=kve});var HJ=m((lFe,NJ)=>{var Dve=or(),Eve=(n,e)=>{try{return new Dve(n,e).range||"*"}catch{return null}};NJ.exports=Eve});var uy=m((uFe,WJ)=>{var _ve=Li(),YJ=qg(),{ANY:Pve}=YJ,Rve=or(),Lve=Wg(),qJ=Mg(),BJ=ny(),Ive=oy(),jve=ry(),Fve=(n,e,t,i)=>{n=new _ve(n,i),e=new Rve(e,i);let r,o,s,a,l;switch(t){case">":r=qJ,o=Ive,s=BJ,a=">",l=">=";break;case"<":r=BJ,o=jve,s=qJ,a="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Lve(n,e,i))return!1;for(let u=0;u<e.set.length;++u){let c=e.set[u],h=null,d=null;if(c.forEach(g=>{g.semver===Pve&&(g=new YJ(">=0.0.0")),h=h||g,d=d||g,r(g.semver,h.semver,i)?h=g:s(g.semver,d.semver,i)&&(d=g)}),h.operator===a||h.operator===l||(!d.operator||d.operator===a)&&o(n,d.semver))return!1;if(d.operator===l&&s(n,d.semver))return!1}return!0};WJ.exports=Fve});var JJ=m((cFe,ZJ)=>{var Ove=uy(),Mve=(n,e,t)=>Ove(n,e,">",t);ZJ.exports=Mve});var XJ=m((hFe,$J)=>{var Ave=uy(),Nve=(n,e,t)=>Ave(n,e,"<",t);$J.exports=Nve});var KJ=m((dFe,GJ)=>{var UJ=or(),Hve=(n,e,t)=>(n=new UJ(n,t),e=new UJ(e,t),n.intersects(e));GJ.exports=Hve});var QJ=m((gFe,zJ)=>{var qve=Wg(),Bve=rr();zJ.exports=(n,e,t)=>{let i=[],r=null,o=null,s=n.sort((c,h)=>Bve(c,h,t));for(let c of s)qve(c,e,t)?(o=c,r||(r=c)):(o&&i.push([r,o]),o=null,r=null);r&&i.push([r,null]);let a=[];for(let[c,h]of i)c===h?a.push(c):!h&&c===s[0]?a.push("*"):h?c===s[0]?a.push(`<=${h}`):a.push(`${c} - ${h}`):a.push(`>=${c}`);let l=a.join(" || "),u=typeof e.raw=="string"?e.raw:String(e);return l.length<u.length?l:e}});var n$=m((fFe,i$)=>{var VJ=or(),cy=qg(),{ANY:fE}=cy,Zg=Wg(),pE=rr(),Yve=(n,e,t={})=>{if(n===e)return!0;n=new VJ(n,t),e=new VJ(e,t);let i=!1;e:for(let r of n.set){for(let o of e.set){let s=Wve(r,o,t);if(i=i||s!==null,s)continue e}if(i)return!1}return!0},Wve=(n,e,t)=>{if(n===e)return!0;if(n.length===1&&n[0].semver===fE){if(e.length===1&&e[0].semver===fE)return!0;t.includePrerelease?n=[new cy(">=0.0.0-0")]:n=[new cy(">=0.0.0")]}if(e.length===1&&e[0].semver===fE){if(t.includePrerelease)return!0;e=[new cy(">=0.0.0")]}let i=new Set,r,o;for(let g of n)g.operator===">"||g.operator===">="?r=e$(r,g,t):g.operator==="<"||g.operator==="<="?o=t$(o,g,t):i.add(g.semver);if(i.size>1)return null;let s;if(r&&o){if(s=pE(r.semver,o.semver,t),s>0)return null;if(s===0&&(r.operator!==">="||o.operator!=="<="))return null}for(let g of i){if(r&&!Zg(g,String(r),t)||o&&!Zg(g,String(o),t))return null;for(let f of e)if(!Zg(g,String(f),t))return!1;return!0}let a,l,u,c,h=o&&!t.includePrerelease&&o.semver.prerelease.length?o.semver:!1,d=r&&!t.includePrerelease&&r.semver.prerelease.length?r.semver:!1;h&&h.prerelease.length===1&&o.operator==="<"&&h.prerelease[0]===0&&(h=!1);for(let g of e){if(c=c||g.operator===">"||g.operator===">=",u=u||g.operator==="<"||g.operator==="<=",r){if(d&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===d.major&&g.semver.minor===d.minor&&g.semver.patch===d.patch&&(d=!1),g.operator===">"||g.operator===">="){if(a=e$(r,g,t),a===g&&a!==r)return!1}else if(r.operator===">="&&!Zg(r.semver,String(g),t))return!1}if(o){if(h&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===h.major&&g.semver.minor===h.minor&&g.semver.patch===h.patch&&(h=!1),g.operator==="<"||g.operator==="<="){if(l=t$(o,g,t),l===g&&l!==o)return!1}else if(o.operator==="<="&&!Zg(o.semver,String(g),t))return!1}if(!g.operator&&(o||r)&&s!==0)return!1}return!(r&&u&&!o&&s!==0||o&&c&&!r&&s!==0||d||h)},e$=(n,e,t)=>{if(!n)return e;let i=pE(n.semver,e.semver,t);return i>0?n:i<0||e.operator===">"&&n.operator===">="?e:n},t$=(n,e,t)=>{if(!n)return e;let i=pE(n.semver,e.semver,t);return i<0?n:i>0||e.operator==="<"&&n.operator==="<="?e:n};i$.exports=Yve});var Jg=m((pFe,r$)=>{var mE=vl();r$.exports={re:mE.re,src:mE.src,tokens:mE.t,SEMVER_SPEC_VERSION:jg().SEMVER_SPEC_VERSION,SemVer:Li(),compareIdentifiers:Qb().compareIdentifiers,rcompareIdentifiers:Qb().rcompareIdentifiers,parse:wl(),valid:kZ(),clean:EZ(),inc:RZ(),diff:MZ(),major:NZ(),minor:qZ(),patch:YZ(),prerelease:ZZ(),compare:rr(),rcompare:$Z(),compareLoose:UZ(),compareBuild:iy(),sort:QZ(),rsort:eJ(),gt:Mg(),lt:ny(),eq:ty(),neq:sE(),gte:ry(),lte:oy(),cmp:aE(),coerce:lJ(),Comparator:qg(),Range:or(),satisfies:Wg(),toComparators:RJ(),maxSatisfying:IJ(),minSatisfying:FJ(),minVersion:AJ(),validRange:HJ(),outside:uy(),gtr:JJ(),ltr:XJ(),intersects:KJ(),simplifyRange:QJ(),subset:n$()}});var Fc,o$,bE,yFe,hy,s$=P(()=>{"use strict";Fc=S(require("path")),o$=S(require("fs"));z();Xe();bE=S(Qm()),yFe=Y()("model-resolver"),hy=class{get nodeFolder(){return tg("npm")?this._npmFolder?Promise.resolve(this._npmFolder):Gr("npm --loglevel silent root -g",{},3e3).then(e=>(this._npmFolder=(0,bE.default)(e).trim(),this._npmFolder)):Promise.resolve("")}get yarnFolder(){return tg("yarnpkg")?this._yarnFolder?Promise.resolve(this._yarnFolder):Gr("yarnpkg global dir",{},3e3).then(e=>{let t=Fc.default.join((0,bE.default)(e).trim(),"node_modules"),i=o$.default.existsSync(t);return i&&(this._yarnFolder=t),i?t:""}):Promise.resolve("")}async resolveModule(e){let t=await this.nodeFolder,i=await this.yarnFolder;if(i){let r=await Mt(Fc.default.join(i,e,"package.json"));if(r&&r.isFile())return Fc.default.join(i,e)}if(t){let r=await Mt(Fc.default.join(t,e,"package.json"));if(r&&r.isFile())return Fc.default.join(t,e)}return null}}});function c$(n,e){if(!e.startsWith("nvim-")&&!e.startsWith("patch-"))throw new Error("Feature param could only starts with nvim and patch");if(!n.isVim&&e.startsWith("patch-")||n.isVim&&e.startsWith("nvim-"))return!1;if(n.isVim){let[t,i,r,o]=n.version.match(/^(\d)(\d{2})(\d+)$/),s=`${i}.${parseInt(r,10)}.${parseInt(o,10)}`;return vE.default.gte(s,e.slice(6))}return vE.default.gte(n.version,e.slice(5))}function h$(n=""){return yE.has(n)?yE.get(n):(dy=dy+1,yE.set(n,dy),dy)}function d$(n){let t=n.getConfiguration("coc.preferences").get("watchmanPath","watchman");try{return u$.default.sync(t)}catch{return null}}async function g$(n,e,t){let i=await n.call("expand","%:p");i=$g.default.normalize(i);let r=i&&$g.default.isAbsolute(i);if(r&&!Ae(e,i,!0))return bc(t,$g.default.dirname(i));let o=bc(t,e);return o&&o!=l$.default.homedir()?o:r?bc(t,$g.default.dirname(i)):null}function f$(n){return Zve.resolveModule(n)}function wE(n,e,t){if(Array.isArray(n)){let i=0;for(let r of n){let o=wE(r,e,t);if(o===10)return o;o>i&&(i=o)}return i}else{if(typeof n=="string")return n==="*"?5:n===t?10:0;if(n){let i=M.parse(e),{language:r,pattern:o,scheme:s}=n,a=0;if(s)if(s===i.scheme)a=5;else if(s==="*")a=3;else return 0;if(r)if(r===t)a=10;else if(r==="*")a=Math.max(a,5);else return 0;if(o){let l=Xi||ic,u=l?o.toLowerCase():o,c=l?i.fsPath.toLowerCase():i.fsPath;if(u===c||(0,a$.default)(c,u,{dot:!0}))a=5;else return 0}return a}else return 0}}var a$,l$,$g,vE,u$,dy,Zve,yE,p$=P(()=>{"use strict";a$=S(Vn()),l$=S(require("os")),$g=S(require("path")),vE=S(Jg());we();u$=S(Vd());s$();Xe();nc();dy=2e3,Zve=new hy,yE=new Map});var gy,Jve,fy,m$=P(()=>{"use strict";Ne();gy=S(q());z();Jve=Y()("core-keymaps"),fy=class{constructor(e){this.documents=e;this.keymaps=new Map}attach(e){this.nvim=e}async doKeymap(e,t="",i){let r=this.keymaps.get(e);if(!r)return Jve.error(`keymap for ${e} not found`),i&&this.nvim.command(`silent! unmap <buffer> ${i.startsWith("{")&&i.endsWith("}")?`<${i.slice(1,-1)}>`:i}`,!0),t;let[o,s]=r,a=await Promise.resolve(o());return s&&await this.nvim.command(`silent! call repeat#set("\\<Plug>(coc-${e})", -1)`),a!=null?a:t}registerKeymap(e,t,i,r={}){if(!t)throw new Error(`Invalid key ${t} of registerKeymap`);if(this.keymaps.has(t))throw new Error(`${t} already exists.`);r=Object.assign({sync:!0,cancel:!0,silent:!0,repeat:!1},r);let{nvim:o}=this;this.keymaps.set(t,[i,!!r.repeat]);let s=r.sync?"request":"notify",a=r.silent?"<silent>":"";for(let l of e)if(l=="i")o.command(`inoremap ${a}<expr> <Plug>(coc-${t}) coc#_insert_key('${s}', '${t}', ${r.cancel?1:0})`,!0);else{let u=bk(l);o.command(`${l}noremap ${a} <Plug>(coc-${t}) :${u}call coc#rpc#${s}('doKeymap', ['${t}'])<cr>`,!0)}return gy.Disposable.create(()=>{this.keymaps.delete(t);for(let l of e)o.command(`${l}unmap <Plug>(coc-${t})`,!0)})}registerExprKeymap(e,t,i,r=!1){let o=`${e}${global.Buffer.from(t).toString("base64")}${r?"1":"0"}`,{nvim:s}=this;return this.keymaps.set(o,[i,!1]),e=="i"?s.command(`inoremap <silent><expr>${r?"<nowait><buffer>":""} ${t} coc#_insert_key('request', '${o}')`,!0):s.command(`${e}noremap <silent><expr>${r?"<nowait><buffer>":""} ${t} coc#rpc#request('doKeymap', ['${o}'])`,!0),gy.Disposable.create(()=>{this.keymaps.delete(o),s.command(`${e}unmap ${r?"<buffer>":""} ${t}`,!0)})}registerLocalKeymap(e,t,i,r=!1){let o=Xo(),{nvim:s}=this,a=this.documents.bufnr;this.keymaps.set(o,[i,!1]);let l=r?"notify":"request",u=bk(e),c=t.startsWith("<")&&t.endsWith(">")?`{${t.slice(1,-1)}}`:t;if(this.nvim.hasFunction("nvim_buf_set_keymap")&&!global.hasOwnProperty("__TEST__"))s.call("nvim_buf_set_keymap",[0,e,t,`:${u}call coc#rpc#${l}('doKeymap', ['${o}', '', '${c}'])<CR>`,{silent:!0,nowait:!0}],!0);else{let h=`${e}noremap <silent><nowait><buffer> ${t} :${u}call coc#rpc#${l}('doKeymap', ['${o}', '', '${c}'])<CR>`;s.command(h,!0)}return gy.Disposable.create(()=>{this.keymaps.delete(o),s.call("coc#compat#buf_del_keymap",[a,e,t],!0)})}}});var _Fe,py,b$=P(()=>{"use strict";z();_Fe=Y()("core-locations"),py=class{constructor(e,t,i){this.configurations=e;this.documents=t;this.contentProvider=i;this.disposables=[]}attach(e,t){this.nvim=e,this.env=t}async showLocations(e){let{documents:t,nvim:i,env:r,configurations:o}=this,s=await t.getQuickfixList(e);if(o.getConfiguration("coc.preferences").get("useQuickfixForLocations",!1)){let l=await i.getVar("coc_quickfix_open_command");typeof l!="string"&&(l=s.length<10?`copen ${s.length}`:"copen"),i.pauseNotification(),i.call("setqflist",[s],!0),i.command(l,!0),i.resumeNotification(!1,!0)}else await i.setVar("coc_jump_locations",s),r.locationlist?i.command("CocList --normal --auto-preview location",!0):i.call("coc#util#do_autocmd",["CocLocationsChange"],!0)}dispose(){J(this.disposables)}}});var Oc,jFe,my,y$=P(()=>{"use strict";he();Oc=S(q());z();jFe=Y()("core-watchers"),my=class{constructor(){this.watchedOptions=new Set;this.disposables=[];this._onDidRuntimePathChange=new Oc.Emitter;this._onDidOptionChange=new Oc.Emitter;this.onDidRuntimePathChange=this._onDidRuntimePathChange.event;this.onDidOptionChange=this._onDidOptionChange.event}get options(){return Array.from(this.watchedOptions)}attach(e,t){this.nvim=e,this.env=t,this.watchOption("runtimepath",(i,r)=>{let o=i.split(","),a=r.split(",").filter(l=>!o.includes(l));a.length>0&&this._onDidRuntimePathChange.fire(a),this.env.runtimepath=r},this.disposables)}watchOption(e,t,i){let r=this.watchedOptions.has(e);r||(this.watchedOptions.add(e),this._onDidOptionChange.fire());let o=_.on("OptionSet",async(s,a,l)=>{s==e&&t&&await Promise.resolve(t(a,l))});i&&i.push(Oc.Disposable.create(()=>{o.dispose(),!r&&(this.watchedOptions.delete(e),this._onDidOptionChange.fire())}))}watchGlobal(e,t,i){let{nvim:r}=this;r.call("coc#_watch",e,!0);let o=_.on("GlobalChange",async(s,a,l)=>{s==e&&await Promise.resolve(t(a,l))});i&&i.push(Oc.Disposable.create(()=>{o.dispose(),r.call("coc#_unwatch",e,!0)}))}dispose(){J(this.disposables),this._onDidOptionChange.dispose(),this._onDidRuntimePathChange.dispose()}}});var Xg,v$,by,w$=P(()=>{"use strict";Xg=S(q());he();De();v$=Y()("core-editors"),by=class{constructor(e){this.documents=e;this.disposables=[];this.editors=new Map;this._onDidChangeActiveTextEditor=new Xg.Emitter;this._onDidChangeVisibleTextEditors=new Xg.Emitter;this.onDidChangeActiveTextEditor=this._onDidChangeActiveTextEditor.event;this.onDidChangeVisibleTextEditors=this._onDidChangeVisibleTextEditors.event}get activeTextEditor(){return this.editors.get(this.winid)}get visibleTextEditors(){return Array.from(this.editors.values())}onChange(e){let t=`${e.winid}-${e.document.bufnr}-${e.document.uri}`;t!=this.previousId&&(this.previousId=t,this._onDidChangeActiveTextEditor.fire(e))}async attach(e){this.nvim=e;let{documents:t}=this,i=t.getDocument(t.bufnr);i&&i.winid>0&&(this.winid=i.winid,await this.createTextEditor(this.winid)),_.on("WinEnter",r=>{this.winid=r;let o=this.editors.get(r);o&&this.onChange(o)},null,this.disposables),_.on("CursorHold",async()=>{let[r,o,s]=await e.eval("[win_getid(),&buftype,coc#window#is_float(win_getid())]"),a=!1;!s&&["","acwrite"].includes(o)&&!this.editors.has(r)&&await this.createTextEditor(r)&&(a=!0),a&&this._onDidChangeVisibleTextEditors.fire(this.visibleTextEditors)},null,this.disposables),_.on("WinClosed",r=>{this.editors.has(r)&&(this.editors.delete(r),this._onDidChangeVisibleTextEditors.fire(this.visibleTextEditors))},null,this.disposables),_.on("BufWinEnter",async(r,o)=>{this.winid=o,await this.createTextEditor(o,!0)},null,this.disposables)}async createTextEditor(e,t=!1){let{documents:i,nvim:r}=this,o=await r.call("coc#util#get_editoroption",[e]);if(!o)return!1;let s=!1;if(t)for(let l of this.editors.keys())o.winids.includes(l)||(s=!0,this.editors.delete(l));let a=i.getDocument(o.bufnr);if(a){let l=this.fromOptions(o,a);return this.editors.set(e,l),e==this.winid&&this.onChange(l),this._onDidChangeVisibleTextEditors.fire(this.visibleTextEditors),v$.debug("editor created winid & bufnr & tabnr: ",e,o.bufnr,o.tabpagenr),!0}else s&&this._onDidChangeVisibleTextEditors.fire(this.visibleTextEditors);return v$.error(`document not found for window: ${e}`),!1}fromOptions(e,t){let{visibleRanges:i}=e,r=D.getTabId(e.tabpagenr);return{get tabpagenr(){return D.getTabNumber(r)},winid:e.winid,winnr:e.winnr,document:t,visibleRanges:i.map(o=>Xg.Range.create(o[0]-1,0,o[1],0)),options:{tabSize:e.tabSize,insertSpaces:!!e.insertSpaces}}}}});function Ug(n){if(!(!n||!Gg.default.isAbsolute(n)))return{name:Gg.default.basename(n),uri:M.file(n).toString()}}var Gg,x$,yy,C$=P(()=>{"use strict";Gg=S(require("path")),x$=S(q());we();Lr();na();Xe();yy=class{constructor(e){this.configurations=e;this._onDidChangeWorkspaceFolders=new x$.Emitter;this.onDidChangeWorkspaceFolders=this._onDidChangeWorkspaceFolders.event;this.rootPatterns=new Map;this._workspaceFolders=[]}setWorkspaceFolders(e){if(!e||!Array.isArray(e))return;let t=e.map(i=>Ug(i));this._workspaceFolders=t.filter(i=>i!=null)}getWorkspaceFolder(e){if(e.scheme!=="file")return;let t=Array.from(this._workspaceFolders).map(o=>M.parse(o.uri).fsPath);t.sort((o,s)=>s.length-o.length);let i=e.fsPath,r=t.find(o=>Ae(o,i,!0));return Ug(r)}getRelativePath(e,t){let i,r="";if(typeof e=="string"?(i=M.file(e),r=e):typeof e<"u"&&(i=e,r=e.fsPath),!i)return r;let o=this.getWorkspaceFolder(i);if(!o)return r;typeof t>"u"&&this._workspaceFolders&&(t=this._workspaceFolders.length>1);let s=Gg.default.relative(M.parse(o.uri).fsPath,i.fsPath);return s=s==""?i.fsPath:s,t&&o.name&&(s=`${o.name}/${s}`),s}get workspaceFolders(){return this._workspaceFolders}addRootPattern(e,t){let i=this.rootPatterns.get(e)||[];for(let r of t)i.includes(r)||i.push(r);this.rootPatterns.set(e,i)}resolveRoot(e,t,i,r){if(e.buftype!==""||e.schema!=="file"||!e.enabled)return null;let o=[0,1,2],s=M.parse(e.uri),a=Gg.default.dirname(s.fsPath),l=this.configurations.getConfiguration("workspace",e.uri),u=l.get("ignoredFiletypes",[]),c=l.get("bottomUpFiletypes",[]),h=l.get("workspaceFolderCheckCwd",!0),d=l.get("ignoredFolders",[]),g=l.get("workspaceFolderFallbackCwd",!0);if(u!=null&&u.includes(e.filetype))return null;let f=this.getWorkspaceFolder(M.parse(e.uri));if(f)return M.parse(f.uri).fsPath;d=Array.isArray(d)?d.filter(b=>b&&b.length>0).map(b=>r(b)):[];let p=null;for(let b of o){let y=this.getRootPatterns(e,b);if(y&&y.length){let w=c.includes(e.filetype),x=ab(a,y,t,w,h,d);if(x){p=x;break}}}return g&&!p&&!d.includes(t)&&Ae(t,a,!0)&&(p=t),p&&this.addWorkspaceFolder(p,i),p}addWorkspaceFolder(e,t){let i=Ug(e);if(!!i)return this._workspaceFolders.findIndex(r=>r.uri==i.uri)==-1&&(this._workspaceFolders.push(i),t&&this._onDidChangeWorkspaceFolders.fire({added:[i],removed:[]})),i}renameWorkspaceFolder(e,t){let i=Ug(t);if(!i)return;let r=this._workspaceFolders.findIndex(s=>M.parse(s.uri).fsPath==e);if(r==-1)return;let o=this.workspaceFolders[r];this._workspaceFolders.splice(r,1,i),this._onDidChangeWorkspaceFolders.fire({removed:[o],added:[i]})}removeWorkspaceFolder(e){let t=Ug(e);if(!t)return;let i=this._workspaceFolders.findIndex(r=>r.uri==t.uri);i!=-1&&(this._workspaceFolders.splice(i,1),this._onDidChangeWorkspaceFolders.fire({removed:[t],added:[]}))}getRootPatterns(e,t){let{uri:i}=e;return t==0?e.getVar("root_patterns",[])||[]:t==1?this.getServerRootPatterns(e.languageId):this.configurations.getConfiguration("coc.preferences",i).get("rootPatterns",[".git",".hg",".projections.json"]).slice()}reset(){this.rootPatterns.clear(),this._workspaceFolders=[]}getServerRootPatterns(e){let t=this.configurations.getConfiguration().get("languageserver",{}),i=[];for(let r of Object.keys(t)){let o=t[r],{filetypes:s,rootPatterns:a}=o;Array.isArray(s)&&a&&s.includes(e)&&i.push(...a)}return i=i.concat(this.rootPatterns.get(e)||[]),i.length?ia(i):[]}}});var vy,S$=P(()=>{"use strict";z();he();vy=class{constructor(e,t){this._create=e;this.disposables=[];this.itemsMap=new Map;let{disposables:i}=this;for(let o of t.documents)this.create(o);t.onDidOpenTextDocument(o=>{let s=t.getDocument(o.bufnr);s&&this.create(s)},null,i),t.onDidChangeTextDocument(o=>{this.onChange(o)},null,i),t.onDidCloseTextDocument(o=>{this.delete(o.bufnr)},null,i);let r=(o,s)=>{let a=this.itemsMap.get(o);if(a&&typeof a.item.onTextChange=="function"){if(s==a.changedtick)return;a.changedtick=s,a.item.onTextChange()}};_.on("TextChanged",(o,s)=>{r(o,s)},null,this.disposables),_.on("TextChangedI",(o,s)=>{r(o,s.changedtick)},null,this.disposables),_.on("BufWritePost",(o,s)=>{r(o,s)},null,this.disposables)}get items(){return Array.from(this.itemsMap.values()).map(e=>e.item)}getItem(e){var i;if(typeof e=="number")return(i=this.itemsMap.get(e))==null?void 0:i.item;let t=Array.from(this.itemsMap.values()).find(r=>r.uri==e);return t?t.item:void 0}create(e){if(!e)return;let t=this.itemsMap.get(e.bufnr);t&&t.item.dispose();let i=this._create(e);i&&this.itemsMap.set(e.bufnr,{uri:e.uri,changedtick:e.changedtick,item:i})}onChange(e){let t=this.itemsMap.get(e.bufnr);t&&typeof t.item.onChange=="function"&&t.item.onChange(e)}delete(e){let t=this.itemsMap.get(e);t&&(t.item.dispose(),this.itemsMap.delete(e))}reset(){for(let e of this.itemsMap.values())e.item.dispose();this.itemsMap.clear()}dispose(){J(this.disposables);for(let e of this.itemsMap.values())e.item.dispose();this._create=void 0,this.itemsMap.clear()}}});var On,xE,Mc,CE=P(()=>{"use strict";On=S(Rn()),xE=S(require("path")),Mc=class{constructor(e){this.filepath=e}fetch(e){let t=this.load();if(!e)return t;let i=e.split(".");for(let r of i){if(typeof t[r]>"u")return;t=t[r]}return t}exists(e){let t=this.load(),i=e.split(".");for(let r of i){if(typeof t[r]>"u")return!1;t=t[r]}return!0}delete(e){let t=this.load(),i=t,r=e.split("."),o=r.length;for(let s=0;s<o&&!(typeof t[r[s]]>"u");s++){if(s==o-1){delete t[r[s]],On.default.writeFileSync(this.filepath,JSON.stringify(i,null,2),"utf8");break}t=t[r[s]]}}push(e,t){let i=this.load()||{},r=i,o=e.split("."),s=o.length;if(r==null){let a=xE.default.dirname(this.filepath);On.default.mkdirpSync(a),r=i}for(let a=0;a<s;a++){let l=o[a];if(a==s-1){r[l]=t,On.default.writeFileSync(this.filepath,JSON.stringify(i,null,2));break}typeof r[l]>"u"&&(r[l]={}),r=r[l]}}load(){let e=xE.default.dirname(this.filepath),t=On.default.statSync(e);if(!t||!t.isDirectory())return On.default.mkdirpSync(e),On.default.writeFileSync(this.filepath,"{}","utf8"),{};try{let i=On.default.readFileSync(this.filepath,"utf8");return JSON.parse(i.trim())}catch{return On.default.writeFileSync(this.filepath,"{}","utf8"),{}}}clear(){let e=On.default.statSync(this.filepath);!e||!e.isFile()||On.default.writeFileSync(this.filepath,"{}","utf8")}destroy(){On.default.existsSync(this.filepath)&&On.default.unlinkSync(this.filepath)}}});var SE,aa,to,Kg=P(()=>{"use strict";SE=S(require("path")),aa=S(Rn());Xe();na();to=class{constructor(e,t,i=5e3){this.maximum=i;this.file=SE.default.join(t||process.env.COC_DATA_HOME,e);let r=SE.default.dirname(this.file);aa.default.mkdirpSync(r)}async load(){try{let e=await Ks(this.file,0,this.maximum);return e.length>this.maximum&&await lb(this.file,e.join(`
`)),e[e.length-1]==""&&(e=e.slice(0,-1)),ia(e)}catch{return[]}}loadSync(){if(!aa.default.existsSync(this.file))return[];try{let e=aa.default.readFileSync(this.file,"utf8");return e=e.trim(),e.length?e.trim().split(`
`):[]}catch{return[]}}async add(e){let t;try{t=aa.default.readFileSync(this.file),t[0]===239&&t[1]===187&&t[2]===191&&(t=t.slice(3)),t=Buffer.concat([Buffer.from(e,"utf8"),new Uint8Array([10]),t])}catch{t=Buffer.concat([Buffer.from(e,"utf8"),new Uint8Array([10])])}await aa.default.writeFile(this.file,t,"utf8")}async remove(e){let t=await this.load(),i=t.length;t=t.filter(r=>r!=e),t.length!=i&&await aa.default.writeFile(this.file,t.join(`
`),"utf8")}async clean(){try{await aa.default.unlink(this.file)}catch{}}}});var wy,xy,T$=P(()=>{"use strict";wy=S(q());he();z();xy=class{constructor(e,t){this.nvim=e;this.id=t;this.disposables=[];this._onExit=new wy.Emitter;this._onStderr=new wy.Emitter;this._onStdout=new wy.Emitter;this.onExit=this._onExit.event;this.onStdout=this._onStdout.event;this.onStderr=this._onStderr.event;_.on("TaskExit",(i,r)=>{i==this.id&&this._onExit.fire(r)},null,this.disposables),_.on("TaskStderr",(i,r)=>{i==this.id&&this._onStderr.fire(r)},null,this.disposables),_.on("TaskStdout",(i,r)=>{i==this.id&&this._onStdout.fire(r)},null,this.disposables)}async start(e){let{nvim:t}=this;return await t.call("coc#task#start",[this.id,e])}async stop(){let{nvim:e}=this;await e.call("coc#task#stop",[this.id])}get running(){let{nvim:e}=this;return e.call("coc#task#running",[this.id])}dispose(){let{nvim:e}=this;e.call("coc#task#stop",[this.id],!0),this._onStdout.dispose(),this._onStderr.dispose(),this._onExit.dispose(),J(this.disposables)}}});var E$,TE,la,k$,D$,$ve,_$,v,Q=P(()=>{"use strict";E$=S(Rn()),TE=S(require("os")),la=S(require("path"));we();dD();GY();zY();eW();gb();tW();DW();RW();lZ();p$();m$();b$();bb();y$();w$();C$();he();S$();CE();Kg();T$();z();k$=29,D$=Y()("workspace"),$ve=["showMessage","runTerminalCommand","openTerminal","showQuickpick","menuPick","openLocalConfig","showPrompt","createStatusBarItem","createOutputChannel","showOutputChannel","requestInput","echoLines","getCursorPosition","moveTo","getOffset","getSelectedRange","selectRange","createTerminal"],_$=class{constructor(){this.version=yb;let e=la.default.normalize(process.env.COC_VIMCONFIG)||la.default.join(TE.default.homedir(),".vim"),t=la.default.join(e,Er);this.configurations=new Zo(t,new Rb(this)),this.workspaceFolderControl=new yy(this.configurations);let i=this.documentsManager=new Yb(this.configurations,this.workspaceFolderControl);this.contentProvider=new Ib(i),this.watchers=new my,this.autocmds=new Lb(this.contentProvider,this.watchers),this.keymaps=new fy(i),this.locations=new py(this.configurations,i,this.contentProvider),this.files=new Wb(i,this.configurations,this.workspaceFolderControl),this.editors=new by(i),this.onDidRuntimePathChange=this.watchers.onDidRuntimePathChange,this.onDidChangeWorkspaceFolders=this.workspaceFolderControl.onDidChangeWorkspaceFolders,this.onDidChangeConfiguration=this.configurations.onDidChange,this.onDidOpenTextDocument=i.onDidOpenTextDocument,this.onDidChangeTextDocument=i.onDidChangeDocument,this.onDidCloseTextDocument=i.onDidCloseDocument,this.onDidSaveTextDocument=i.onDidSaveTextDocument,this.onWillSaveTextDocument=i.onWillSaveTextDocument,this.onDidCreateFiles=this.files.onDidCreateFiles,this.onDidRenameFiles=this.files.onDidRenameFiles,this.onDidDeleteFiles=this.files.onDidDeleteFiles,this.onWillCreateFiles=this.files.onWillCreateFiles,this.onWillRenameFiles=this.files.onWillRenameFiles,this.onWillDeleteFiles=this.files.onWillDeleteFiles;let r=global.__TEST__?null:this.getWatchmanPath();this.fileSystemWatchers=new Ig(this.workspaceFolderControl,r)}async init(e){let{nvim:t}=this;for(let o of $ve)Object.defineProperty(this,o,{get:()=>(...s)=>{let a=`
`+Error().stack.split(`
`).slice(2,4).join(`
`);return D$.warn(`workspace.${o} is deprecated, please use window.${o} instead.`,a),e[o].apply(e,s)}});for(let o of["onDidOpenTerminal","onDidCloseTerminal"])Object.defineProperty(this,o,{get:()=>{let s=`
`+Error().stack.split(`
`).slice(2,4).join(`
`);return D$.warn(`workspace.${o} is deprecated, please use window.${o} instead.`,s),e[o]}});let i=this._env=await t.call("coc#util#vim_info");e.init(i),this._env.apiversion!=k$&&t.echoError(`API version ${this._env.apiversion} is not ${k$}, please build coc.nvim by 'yarn install' after pull source code.`),this.workspaceFolderControl.setWorkspaceFolders(this._env.workspaceFolders),this.configurations.updateUserConfig(this._env.config),this.files.attach(t,i),this.contentProvider.attach(t),this.keymaps.attach(t),this.autocmds.attach(t,i),this.locations.attach(t,i),this.watchers.attach(t,i),await this.attach(),await this.editors.attach(t);let r=Wo.create("watchman",t);this.fileSystemWatchers.attach(r)}get cwd(){return this.documentsManager.cwd}get env(){return this._env}get root(){return this.documentsManager.root||this.cwd}get rootPath(){return this.root}get bufnr(){return this.documentsManager.bufnr}get insertMode(){return _.insertMode}get floatSupported(){return this.env.floating||this.env.textprop}get uri(){return this.documentsManager.uri}get workspaceFolder(){return this.workspaceFolders[0]}get textDocuments(){return this.documentsManager.textDocuments}get documents(){return this.documentsManager.documents}get document(){return this.documentsManager.document}get workspaceFolders(){return this.workspaceFolderControl.workspaceFolders}get folderPaths(){return this.workspaceFolders.map(e=>M.parse(e.uri).fsPath)}get channelNames(){return Wo.names}get pluginRoot(){return la.default.dirname(__dirname)}get isVim(){return this._env.isVim}get isNvim(){return!this._env.isVim}get completeOpt(){return this._env.completeOpt}get filetypes(){return this.documentsManager.filetypes}get languageIds(){return this.documentsManager.languageIds}createNameSpace(e){return h$(e)}getConfigFile(e){return this.configurations.getConfigFile(e)}has(e){return c$(this.env,e)}registerAutocmd(e){return this.autocmds.registerAutocmd(e)}watchOption(e,t,i){this.watchers.watchOption(e,t,i)}watchGlobal(e,t,i){this.watchers.watchGlobal(e,t||function(){},i)}match(e,t){return wE(e,t.uri,t.languageId)}createFileSystemWatcher(e,t,i,r){return this.fileSystemWatchers.createFileSystemWatcher(e,t,i,r)}getWatchmanPath(){return d$(this.configurations)}getConfiguration(e,t){return this.configurations.getConfiguration(e,t)}getDocument(e){return this.documentsManager.getDocument(e)}isAttached(e){let t=this.documentsManager.getDocument(e);return t!=null&&t.attached}getAttachedDocument(e){let t=this.getDocument(e);if(!t)throw new Error(`Buffer ${e} not created.`);if(!t.attached)throw new Error(`Buffer ${e} not attached, try :CocCommand document.checkBuffer`);return t}getQuickfixItem(e,t,i="",r){return this.documentsManager.getQuickfixItem(e,t,i,r)}createMru(e){return new to(e)}async getQuickfixList(e){return this.documentsManager.getQuickfixList(e)}async showLocations(e){await this.locations.showLocations(e)}getLine(e,t){return this.documentsManager.getLine(e,t)}getWorkspaceFolder(e){return this.workspaceFolderControl.getWorkspaceFolder(M.parse(e))}readFile(e){return this.documentsManager.readFile(e)}async getCurrentState(){let e=await this.document,t=await mb(this.nvim);return{document:e.textDocument,position:t}}async getFormatOptions(e){return this.documentsManager.getFormatOptions(e)}resolveModule(e){return f$(e)}async runCommand(e,t,i){return t=t||this.cwd,Gr(e,{cwd:t},i)}expand(e){return this.documentsManager.expand(e)}async callAsync(e,t){return this.isNvim?await this.nvim.call(e,t):await this.nvim.callAsync("coc#util#with_callback",[e,t])}registerTextDocumentContentProvider(e,t){return this.contentProvider.registerTextDocumentContentProvider(e,t)}registerKeymap(e,t,i,r={}){return this.keymaps.registerKeymap(e,t,i,r)}registerExprKeymap(e,t,i,r=!1){return this.keymaps.registerExprKeymap(e,t,i,r)}registerLocalKeymap(e,t,i,r=!1){return this.keymaps.registerLocalKeymap(e,t,i,r)}createTask(e){return new xy(this.nvim,e)}createDatabase(e){let t;global.hasOwnProperty("__TEST__")?(t=la.default.join(TE.default.tmpdir(),`coc-${process.pid}`),E$.default.mkdirpSync(t)):t=la.default.dirname(this.env.extensionRoot);let i=la.default.join(t,e+".json");return new Mc(i)}registerBufferSync(e){return new vy(e,this)}async attach(){await this.documentsManager.attach(this.nvim,this._env)}jumpTo(e,t,i){return this.files.jumpTo(e,t,i)}findUp(e){return g$(this.nvim,this.cwd,e)}applyEdit(e){return this.files.applyEdit(e)}createFile(e,t={}){return this.files.createFile(e,t)}loadFile(e){return this.files.loadResource(e)}async loadFiles(e){return this.files.loadResources(e)}async renameFile(e,t,i={}){await this.files.renameFile(e,t,i)}async deleteFile(e,t={}){await this.files.deleteFile(e,t)}async renameCurrent(){await this.files.renameCurrent()}async openResource(e){await this.files.openResource(e)}openTextDocument(e){return this.files.openTextDocument(e)}getRelativePath(e,t){return this.workspaceFolderControl.getRelativePath(e,t)}async findFiles(e,t,i,r){return this.files.findFiles(e,t,i,r)}detach(){this.documentsManager.detach()}reset(){this.configurations.reset(),this.workspaceFolderControl.reset(),this.documentsManager.reset()}dispose(){this.watchers.dispose(),this.autocmds.dispose(),this.contentProvider.dispose(),this.documentsManager.dispose(),this.configurations.dispose()}},v=new _$});function kE(n,e){let{range:t,uri:i}=e;n.find(r=>r.uri==i&&_e(r.range,t))==null&&n.push(e)}var Ac,Xve,fe,St=P(()=>{"use strict";Ac=S(q());Q();Ht();Xve=Y()("provider-manager"),fe=class{constructor(){this.providers=new Set}hasProvider(e){return this.getProvider(e)!=null}getProvider(e){let t=0,i;for(let r of this.providers){let{selector:o,priority:s}=r,a=v.match(o,e);a!=0&&(typeof s=="number"&&(a=s),!(a<t)&&(t=a,i=r))}return i}getProviderById(e){let t=Array.from(this.providers).find(i=>i.id==e);return t?t.provider:null}getProviders(e){let t=Array.from(this.providers);return t=t.filter(i=>v.match(i.selector,e)>0),t.sort((i,r)=>v.match(r.selector,e)-v.match(i.selector,e))}toLocations(e){let t=[];for(let i of e)if(!!i)if(Ac.Location.is(i))kE(t,i);else if(Array.isArray(i)){for(let r of i)if(Ac.Location.is(r))kE(t,r);else if(Ac.LocationLink.is(r)){let{targetUri:o,targetSelectionRange:s,targetRange:a}=r;kE(t,Ac.Location.create(o,s||a))}}else Xve.error("Bad definition",i);return t}}});var P$,Cy,R$=P(()=>{"use strict";P$=S(q());St();Ne();Cy=class extends fe{register(e,t){let i={id:se(),selector:e,provider:t};return this.providers.add(i),P$.Disposable.create(()=>{this.providers.delete(i)})}async prepareCallHierarchy(e,t,i){let r=this.getProvider(e);if(!r)return null;let{provider:o}=r;return o.prepareCallHierarchy===null?null:await Promise.resolve(o.prepareCallHierarchy(e,t,i))}async provideCallHierarchyOutgoingCalls(e,t,i){let r=this.getProvider(e);if(!r)return null;let{provider:o}=r;return o.provideCallHierarchyOutgoingCalls===null?null:await Promise.resolve(o.provideCallHierarchyOutgoingCalls(t,i))}async provideCallHierarchyIncomingCalls(e,t,i){let r=this.getProvider(e);if(!r)return null;let{provider:o}=r;return o.provideCallHierarchyIncomingCalls(t,i)===null?null:await Promise.resolve(o.provideCallHierarchyIncomingCalls(t,i))}}});function I$(n,...e){return n=Object(n),e.forEach(t=>{if(t!=null){t=Object(t);for(let i in t){let r=n[i];(r===void 0||r===L$[i]&&!Uve.call(n,i))&&(n[i]=t[i])}}}),n}function zi(n,e){let t={};for(let i of Object.keys(n))e.includes(i)||(t[i]=n[i]);return t}var L$,Uve,Ko=P(()=>{"use strict";L$=Object.prototype,Uve=L$.hasOwnProperty});var Sy,sMe,Ty,j$=P(()=>{"use strict";Sy=S(q());St();Ne();Ko();sMe=Y()("codeActionManager"),Ty=class extends fe{register(e,t,i,r){let o={id:se(),selector:e,provider:t,kinds:r,clientId:i};return this.providers.add(o),Sy.Disposable.create(()=>{this.providers.delete(o)})}async provideCodeActions(e,t,i,r){let o=this.getProviders(e);if(!o.length)return null;if(i.only){let{only:a}=i;o=o.filter(l=>!(l.kinds&&!l.kinds.some(u=>a.includes(u))))}let s=[];return await Promise.all(o.map(a=>{let{provider:l,id:u}=a;return Promise.resolve(l.provideCodeActions(e,t,i,r)).then(c=>{if(!(!c||c.length==0))for(let h of c)if(Sy.Command.is(h)){let d={title:h.title,command:h,providerId:u};s.push(d)}else{if(i.only){if(!h.kind)continue;let g=!1;for(let f of i.only)if(h.kind.startsWith(f)){g=!0;break}if(!g)continue}s.findIndex(g=>g.title==h.title)==-1&&s.push(Object.assign({providerId:u},h))}})})),s}async resolveCodeAction(e,t){if(e.edit!=null)return e;let i=e.providerId;if(!i)throw new Error("provider id not found from codeAction");let r=this.getProviderById(i);return!r||typeof r.resolveCodeAction!="function"?e:await Promise.resolve(r.resolveCodeAction(zi(e,["providerId"]),t))||e}}});var F$,ky,O$=P(()=>{"use strict";F$=S(q());St();Ne();Ko();ky=class extends fe{register(e,t){let i={id:se(),selector:e,provider:t};return this.providers.add(i),F$.Disposable.create(()=>{this.providers.delete(i)})}async provideCodeLenses(e,t){let i=this.getProviders(e);if(!i.length)return null;let r=await Promise.all(i.map(o=>{let{provider:s,id:a}=o;return Promise.resolve(s.provideCodeLenses(e,t)).then(l=>{if(Array.isArray(l))for(let u of l)u.source=a;return l})}));return[].concat(...r)}async resolveCodeLens(e,t){if(e.command)return e;let{source:i}=e,r=this.getProviderById(i);if(!r||typeof r.resolveCodeLens!="function")return e;let o=await Promise.resolve(r.resolveCodeLens(zi(e,["source"]),t));return Object.assign(e,o),e}}});var M$,TMe,Dy,A$=P(()=>{"use strict";M$=S(q());St();Ne();TMe=Y()("definitionManager"),Dy=class extends fe{register(e,t){let i={id:se(),selector:e,provider:t};return this.providers.add(i),M$.Disposable.create(()=>{this.providers.delete(i)})}async provideDeclaration(e,t,i){let r=this.getProvider(e);if(!r)return null;let{provider:o}=r;return await Promise.resolve(o.provideDeclaration(e,t,i))}}});var Ey,MMe,_y,N$=P(()=>{"use strict";Ey=S(q());St();Ne();Ht();MMe=Y()("definitionManager"),_y=class extends fe{register(e,t){let i={id:se(),selector:e,provider:t};return this.providers.add(i),Ey.Disposable.create(()=>{this.providers.delete(i)})}async getDefinitions(e,t,i){let r=this.getProviders(e);return r.length?await Promise.all(r.map(s=>{let{provider:a}=s;return Promise.resolve(a.provideDefinition(e,t,i))})):[]}async provideDefinition(e,t,i){let r=await this.getDefinitions(e,t,i);return this.toLocations(r)}async provideDefinitionLinks(e,t,i){let r=await this.getDefinitions(e,t,i),o=[];for(let s of r)if(!!Array.isArray(s))for(let a of s)Ey.LocationLink.is(a)&&o.findIndex(u=>u.targetUri==a.targetUri&&_e(u.targetRange,a.targetRange))==-1&&o.push(a);return o}}});var H$,Py,q$=P(()=>{"use strict";H$=S(q());St();Ne();Py=class extends fe{register(e,t){let i={id:se(),selector:e,provider:t};return this.providers.add(i),H$.Disposable.create(()=>{this.providers.delete(i)})}async provideDocumentColors(e,t){let i=this.getProvider(e);if(!i)return null;let{provider:r}=i;return await Promise.resolve(r.provideDocumentColors(e,t))}async provideColorPresentations(e,t,i){let{range:r,color:o}=e,s=this.getProvider(t);if(!s)return null;let{provider:a}=s;return await Promise.resolve(a.provideColorPresentations(o,{document:t,range:r},i))}}});var B$,Ry,Y$=P(()=>{"use strict";B$=S(q());St();Ne();Ry=class extends fe{register(e,t){let i={id:se(),selector:e,provider:t};return this.providers.add(i),B$.Disposable.create(()=>{this.providers.delete(i)})}async provideDocumentHighlights(e,t,i){let r=this.getProvider(e);if(!r)return null;let{provider:o}=r;return await Promise.resolve(o.provideDocumentHighlights(e,t,i))}}});var W$,Ly,Z$=P(()=>{"use strict";W$=S(q());St();Ne();Ly=class extends fe{register(e,t){let i={id:se(),selector:e,provider:t};return this.providers.add(i),W$.Disposable.create(()=>{this.providers.delete(i)})}async _provideDocumentLinks(e,t,i){let{provider:r,id:o}=e,s=await Promise.resolve(r.provideDocumentLinks(t,i));return!s||!s.length?[]:(s.forEach(a=>{a.data=a.data||{},a.data.source=o}),s)}async provideDocumentLinks(e,t){let i=this.getProviders(e);if(i.length==0)return[];let r=await Promise.all(i.map(o=>this._provideDocumentLinks(o,e,t)));return[].concat(...r)}async resolveDocumentLink(e,t){let{data:i}=e;if(!i||!i.source)return null;for(let r of this.providers)if(r.id==i.source){let{provider:o}=r;return e=await Promise.resolve(o.resolveDocumentLink(e,t)),e}return null}}});var J$,Iy,$$=P(()=>{"use strict";J$=S(q());St();Ne();Iy=class extends fe{register(e,t,i){let r={id:se(),meta:i,selector:e,provider:t};return this.providers.add(r),J$.Disposable.create(()=>{this.providers.delete(r)})}getMetaData(e){var i;let t=this.getProvider(e);return t?(i=t.provider.meta)!=null?i:{}:{}}async provideDocumentSymbols(e,t){let i=this.getProvider(e);if(!i)return null;let{provider:r}=i;return await Promise.resolve(r.provideDocumentSymbols(e,t))||[]}}});var X$,jy,U$=P(()=>{"use strict";X$=S(q());St();Ne();jy=class extends fe{register(e,t){let i={id:se(),selector:e,provider:t};return this.providers.add(i),X$.Disposable.create(()=>{this.providers.delete(i)})}async provideFoldingRanges(e,t,i){let r=this.getProvider(e);if(!r)return null;let{provider:o}=r;return await Promise.resolve(o.provideFoldingRanges(e,t,i))||[]}}});var G$,Fy,K$=P(()=>{"use strict";G$=S(q());St();Ne();Fy=class extends fe{register(e,t,i=0){let r={id:se(),selector:e,priority:i,provider:t};return this.providers.add(r),G$.Disposable.create(()=>{this.providers.delete(r)})}handles(e){return this.getProvider(e)!=null}async provideDocumentFormattingEdits(e,t,i){let r=this.getProvider(e);if(!r)return null;let{provider:o}=r;return await Promise.resolve(o.provideDocumentFormattingEdits(e,t,i))}}});var z$,Oy,Q$=P(()=>{"use strict";z$=S(q());St();Ne();Oy=class extends fe{register(e,t,i=0){let r={id:se(),selector:e,provider:t,priority:i};return this.providers.add(r),z$.Disposable.create(()=>{this.providers.delete(r)})}async provideDocumentRangeFormattingEdits(e,t,i,r){let o=this.getProvider(e);if(!o)return null;let{provider:s}=o;return await Promise.resolve(s.provideDocumentRangeFormattingEdits(e,t,i,r))}}});var V$,My,eX=P(()=>{"use strict";V$=S(q());St();Ne();My=class extends fe{register(e,t){let i={id:se(),selector:e,provider:t};return this.providers.add(i),V$.Disposable.create(()=>{this.providers.delete(i)})}async provideHover(e,t,i){let r=this.getProviders(e);if(r.length===0)return null;let o=[];for(let s=0,a=r.length;s<a;s+=1){let l=r[s],u=await Promise.resolve(l.provider.provideHover(e,t,i));u&&u.contents!=""&&o.push(u)}return o}}});var tX,Ay,iX=P(()=>{"use strict";tX=S(q());St();Ne();Ay=class extends fe{register(e,t){let i={id:se(),selector:e,provider:t};return this.providers.add(i),tX.Disposable.create(()=>{this.providers.delete(i)})}async provideReferences(e,t,i){let r=this.getProviders(e);if(!r.length)return null;let o=await Promise.all(r.map(s=>{let{provider:a}=s;return Promise.resolve(a.provideImplementation(e,t,i))}));return this.toLocations(o)}}});var nX,lAe,Ny,rX=P(()=>{"use strict";Ne();nX=S(q());St();lAe=Y()("linkedEditingManager"),Ny=class extends fe{register(e,t){let i={id:se(),selector:e,provider:t};return this.providers.add(i),nX.Disposable.create(()=>{this.providers.delete(i)})}async provideLinkedEditingRanges(e,t,i){let r=this.getProvider(e);if(!r)return null;let{provider:o}=r;return o.provideLinkedEditingRanges?await Promise.resolve(o.provideLinkedEditingRanges(e,t,i)):null}}});var oX,pAe,Hy,sX=P(()=>{"use strict";oX=S(q());Q();pAe=Y()("onTypeFormatManager"),Hy=class{constructor(){this.providers=new Set}register(e,t,i){let r={triggerCharacters:i,selector:e,provider:t};return this.providers.add(r),oX.Disposable.create(()=>{this.providers.delete(r)})}hasProvider(e){for(let t of this.providers){let{selector:i}=t;if(v.match(i,e)>0)return!0}return!1}getProvider(e,t){for(let i of this.providers){let{triggerCharacters:r,selector:o}=i;if(v.match(o,e)>0&&r.includes(t))return i.provider}return null}async onCharacterType(e,t,i,r){let o=this.getProvider(t,e);if(!o)return;let s=await v.getFormatOptions(t.uri);return await Promise.resolve(o.provideOnTypeFormattingEdits(t,i,e,s,r))}}});var aX,qy,lX=P(()=>{"use strict";aX=S(q());St();Ne();qy=class extends fe{register(e,t){let i={id:se(),selector:e,provider:t};return this.providers.add(i),aX.Disposable.create(()=>{this.providers.delete(i)})}async provideReferences(e,t,i,r){let o=this.getProviders(e);if(!o.length)return null;let s=await Promise.all(o.map(a=>{let{provider:l}=a;return Promise.resolve(l.provideReferences(e,t,i,r))}));return this.toLocations(s)}}});var uX,By,cX=P(()=>{"use strict";uX=S(q());St();Ne();By=class extends fe{register(e,t){let i={id:se(),selector:e,provider:t};return this.providers.add(i),uX.Disposable.create(()=>{this.providers.delete(i)})}async provideRenameEdits(e,t,i,r){let o=this.getProvider(e);if(!o)return null;let{provider:s}=o;return await Promise.resolve(s.provideRenameEdits(e,t,i,r))}async prepareRename(e,t,i){let r=this.getProvider(e);if(!r)return null;let{provider:o}=r;if(o.prepareRename==null)return null;let s=await Promise.resolve(o.prepareRename(e,t,i));return s==null?!1:s}}});var hX,Yy,dX=P(()=>{"use strict";hX=S(q());St();Ne();Yy=class extends fe{register(e,t){let i={id:se(),selector:e,provider:t};return this.providers.add(i),hX.Disposable.create(()=>{this.providers.delete(i)})}async provideSelectionRanges(e,t,i){let r=this.getProvider(e);if(!r)return null;let{provider:o}=r,s=await Promise.resolve(o.provideSelectionRanges(e,t,i));if(!s||s.length==0)return[];for(let a=0;a<s.length-1;a++){let l=s[a];l.parent||(l.parent=s[a+1])}return s}}});var gX,GAe,Wy,fX=P(()=>{"use strict";Ne();gX=S(q());St();GAe=Y()("semanticTokensManager"),Wy=class extends fe{constructor(){super(...arguments);this.resolvedProvider=new Map}register(e,t,i,r){let o=se(),s={id:o,selector:e,legend:i,provider:t};this.providers.add(s);let a;return typeof t.onDidChangeSemanticTokens=="function"&&(a=t.onDidChangeSemanticTokens(()=>{r()})),gX.Disposable.create(()=>{a==null||a.dispose();for(let[l,u]of this.resolvedProvider.entries())u==o&&this.resolvedProvider.delete(l);this.providers.delete(s)})}getLegend(e){let t=this.getProvider(e);if(!!t)return this.resolvedProvider.set(e.uri,t.id),t.legend}resolveProvider(e){var i;let t=this.resolvedProvider.get(e.uri);return t?this.getProviderById(t):(i=this.getProvider(e))==null?void 0:i.provider}hasSemanticTokensEdits(e){let t=this.resolveProvider(e);return t?typeof t.provideDocumentSemanticTokensEdits=="function":!1}async provideDocumentSemanticTokens(e,t){let i=this.resolveProvider(e);return!i||typeof i.provideDocumentSemanticTokens!="function"?null:await Promise.resolve(i.provideDocumentSemanticTokens(e,t))}async provideDocumentSemanticTokensEdits(e,t,i){let r=this.resolveProvider(e);return!r||typeof r.provideDocumentSemanticTokensEdits!="function"?null:await Promise.resolve(r.provideDocumentSemanticTokensEdits(e,t,i))}}});var pX,oNe,Zy,mX=P(()=>{"use strict";Ne();pX=S(q());St();oNe=Y()("semanticTokensRangeManager"),Zy=class extends fe{register(e,t,i){let r={id:se(),selector:e,legend:i,provider:t};return this.providers.add(r),pX.Disposable.create(()=>{this.providers.delete(r)})}getLegend(e){let t=this.getProvider(e);if(!!t)return t.legend}async provideDocumentRangeSemanticTokens(e,t,i){let r=this.getProvider(e);if(!r)return null;let{provider:o}=r;return o.provideDocumentRangeSemanticTokens===null?null:await Promise.resolve(o.provideDocumentRangeSemanticTokens(e,t,i))}}});var bX,Jy,yX=P(()=>{"use strict";bX=S(q());St();Ne();Jy=class extends fe{register(e,t,i){let r=i.reduce((s,a)=>s.concat(a.length==1?[a]:a.split(/\s*/g)),[]),o={id:se(),selector:e,provider:t,triggerCharacters:r};return this.providers.add(o),bX.Disposable.create(()=>{this.providers.delete(o)})}shouldTrigger(e,t){let i=this.getProvider(e);if(!i)return!1;let{triggerCharacters:r}=i;return r&&r.indexOf(t)!=-1}async provideSignatureHelp(e,t,i,r){let o=this.getProvider(e);if(!o)return null;let s=await Promise.resolve(o.provider.provideSignatureHelp(e,t,i,r));return s&&s.signatures&&s.signatures.length?s:null}}});var vX,$y,wX=P(()=>{"use strict";vX=S(q());St();Ne();$y=class extends fe{register(e,t){let i={id:se(),selector:e,provider:t};return this.providers.add(i),vX.Disposable.create(()=>{this.providers.delete(i)})}async provideTypeDefinition(e,t,i){let r=this.getProviders(e);if(!r.length)return null;let o=await Promise.all(r.map(s=>{let{provider:a}=s;return Promise.resolve(a.provideTypeDefinition(e,t,i))}));return this.toLocations(o)}}});var xX,Xy,CX=P(()=>{"use strict";Ne();xX=S(q()),Xy=class{constructor(){this.providers=new Map}register(e){let t=se();return this.providers.set(t,e),xX.Disposable.create(()=>{this.providers.delete(t)})}async provideWorkspaceSymbols(e,t){let i=Array.from(this.providers.entries());if(!i.length)return[];let r=[];return await Promise.all(i.map(o=>{let[s,a]=o;return Promise.resolve(a.provideWorkspaceSymbols(e,t)).then(l=>{l&&r.push(...l.map(u=>Object.assign({source:s},u)))})})),r}async resolveWorkspaceSymbol(e,t){let i=this.providers.get(e.source);if(!!i)return typeof i.resolveWorkspaceSymbol!="function"?Promise.resolve(e):await Promise.resolve(i.resolveWorkspaceSymbol(e,t))}hasProvider(){return this.providers.size>0}}});var Fr,DE,EE,Uy,SX=P(()=>{"use strict";Fr=S(q());jn();(i=>{i.Type=1,i.Parameter=2;function t(r){return r===1||r===2}i.is=t})(DE||(DE={}));(t=>{function n(i){return{value:i}}t.create=n;function e(i){let r=i;return Dt(r)&&(r.tooltip===void 0||Ee(r.tooltip)||Fr.MarkupContent.is(r.tooltip))&&(r.location===void 0||Fr.Location.is(r.location))&&(r.command===void 0||Fr.Command.is(r.command))}t.is=e})(EE||(EE={}));(t=>{function n(i,r,o){let s={position:i,label:r};return o!==void 0&&(s.kind=o),s}t.create=n;function e(i){let r=i;return Dt(r)&&Fr.Position.is(r.position)&&(Ee(r.label)||yk(r.label,EE.is))&&(r.kind===void 0||DE.is(r.kind))&&r.textEdits===void 0||yk(r.textEdits,Fr.TextEdit.is)&&(r.tooltip===void 0||Ee(r.tooltip)||Fr.MarkupContent.is(r.tooltip))&&(r.paddingLeft===void 0||zn(r.paddingLeft))&&(r.paddingRight===void 0||zn(r.paddingRight))}t.is=e})(Uy||(Uy={}))});function Gve(n,e){return xe(n.position,e.position)!==0?!1:Gy(n)===Gy(e)}function Kve(n,e){return n.label.length===0||Array.isArray(n.label)&&n.label.every(t=>t.value.length===0)?(_E.warn("INVALID inlay hint, empty label",n),!1):Uy.is(n)?!(e&&ct(n.position,e)!==0):(_E.warn("INVALID inlay hint",n),!1)}function Gy(n){return typeof n.label=="string"?n.label:n.label.map(e=>e.value).join(" ")}var TX,_E,Ky,PE=P(()=>{"use strict";Ne();TX=S(q());SX();bt();St();_E=Y()("inlayHintManger"),Ky=class extends fe{register(e,t){let i={id:se(),selector:e,provider:t};return this.providers.add(i),TX.Disposable.create(()=>{this.providers.delete(i)})}async provideInlayHints(e,t,i){let r=this.getProviders(e);if(r.length===0)return null;let o=[],s=0;return await Promise.all(r.map(a=>{let{id:l,provider:u}=a;return Promise.resolve(u.provideInlayHints(e,t,i)).then(c=>{if(!i.isCancellationRequested){for(let h of c)!Kve(h,t)||s>0&&o.findIndex(d=>Gve(d,h))!=-1||o.push(me({providerId:l},h));s+=1}},c=>{_E.error("Error on provideInlayHints",c)})})),o}async resolveInlayHint(e,t){let i=this.getProviderById(e.providerId);if(!i||typeof i.resolveInlayHint!="function"||e.resolved===!0)return e;let r=await Promise.resolve(i.resolveInlayHint(e,t));return t.isCancellationRequested?e:Object.assign(e,r,{resolved:!0})}}});var HNe,RE,zy,LE=P(()=>{"use strict";Ne();HNe=Y()("model-status"),RE=["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"],zy=class{constructor(e){this.nvim=e;this.items=new Map;this.shownIds=new Set;this._text="";this.interval=setInterval(()=>{this.setStatusText()},100)}dispose(){this.items.clear(),this.shownIds.clear(),clearInterval(this.interval)}createStatusBarItem(e=0,t=!1){let i=Xo(),r={text:"",priority:e,isProgress:t,show:()=>{this.shownIds.add(i),this.setStatusText()},hide:()=>{this.shownIds.delete(i),this.setStatusText()},dispose:()=>{this.shownIds.delete(i),this.items.delete(i),this.setStatusText()}};return this.items.set(i,r),r}getText(){if(this.shownIds.size==0)return"";let e=new Date,t=Math.floor(e.getMilliseconds()/100),i="",r=[];for(let[o,s]of this.items)this.shownIds.has(o)&&r.push(s);r.sort((o,s)=>o.priority-s.priority);for(let o of r)o.isProgress?i=`${i} ${RE[t]} ${o.text}`:i=`${i} ${o.text}`;return i}setStatusText(){let e=this.getText(),{nvim:t}=this;e!=this._text&&(this._text=e,t.pauseNotification(),this.nvim.setVar("coc_status",e,!0),this.nvim.call("coc#util#do_autocmd",["CocStatusChange"],!0),t.resumeNotification(!1,!0))}}});var kX,YNe,zg,DX=P(()=>{"use strict";kX=require("events");LE();YNe=Y()("model-installBuffer"),zg=class extends kX.EventEmitter{constructor(e=!1,t=!1,i=void 0){super();this.isUpdate=e;this.isSync=t;this.channel=i;this.statMap=new Map;this.messagesMap=new Map;this.names=[]}setExtensions(e){this.statMap.clear(),this.names=e;for(let t of e)this.statMap.set(t,0)}addMessage(e,t,i=!1){if(i&&this.channel)return;let r=this.messagesMap.get(e)||[];this.messagesMap.set(e,r.concat(t.trim().split(/\r?\n/))),this.channel&&this.channel.appendLine(`[${e}] ${t}`)}startProgress(e){for(let t of e)this.statMap.set(t,2)}finishProgress(e,t=!0){this.channel&&(t?this.channel.appendLine(`[${e}] install succeed!`):this.channel.appendLine(`[${e}] install failed!`)),this.statMap.set(e,t?3:1)}get remains(){let e=0;for(let t of this.names){let i=this.statMap.get(t);[3,1].includes(i)||(e=e+1)}return e}getLines(){let e=[];for(let t of this.names){let i=this.statMap.get(t),r="*";switch(i){case 2:{let s=new Date,a=Math.floor(s.getMilliseconds()/100);r=RE[a];break}case 1:r="\u2717";break;case 3:r="\u2713";break}let o=this.messagesMap.get(t)||[];e.push(`- ${r} ${t} ${o.length?o[o.length-1]:""}`)}return e}getMessages(e){if(e<=1)return[];let t=this.names[e-2];return t?this.messagesMap.get(t):[]}draw(e,t){let{remains:i}=this,o=[i==0?`${this.isUpdate?"Update":"Install"} finished`:`Installing, ${i} remaining...`,"",...this.getLines()];t.setLines(o,{start:0,end:-1,strictIndexing:!1},!0),i==0&&this.interval&&(clearInterval(this.interval),this.interval=null),process.env.VIM_NODE_RPC&&e.command("redraw",!0)}highlight(e){e.call("matchadd",["CocListFgCyan","^\\-\\s\\zs\\*"],!0),e.call("matchadd",["CocListFgGreen","^\\-\\s\\zs\u2713"],!0),e.call("matchadd",["CocListFgRed","^\\-\\s\\zs\u2717"],!0),e.call("matchadd",["CocListFgYellow","^-.\\{3\\}\\zs\\S\\+"],!0)}async show(e){let{isSync:t}=this;if(this.channel)return;e.pauseNotification(),e.command(t?"enew":"vs +enew",!0),e.call("bufnr",["%"],!0),e.command("setl buftype=nofile bufhidden=wipe noswapfile nobuflisted wrap undolevels=-1",!0),t||e.command("nnoremap <silent><nowait><buffer> q :q<CR>",!0),this.highlight(e);let i=await e.resumeNotification();this.bufnr=i[0][1];let r=e.createBuffer(this.bufnr);this.interval=setInterval(()=>{this.draw(e,r)},100)}dispose(){this.interval&&clearInterval(this.interval)}}});var PX=m((IE,_X)=>{var Qy=require("buffer"),zo=Qy.Buffer;function EX(n,e){for(var t in n)e[t]=n[t]}zo.from&&zo.alloc&&zo.allocUnsafe&&zo.allocUnsafeSlow?_X.exports=Qy:(EX(Qy,IE),IE.Buffer=Nc);function Nc(n,e,t){return zo(n,e,t)}EX(zo,Nc);Nc.from=function(n,e,t){if(typeof n=="number")throw new TypeError("Argument must not be a number");return zo(n,e,t)};Nc.alloc=function(n,e,t){if(typeof n!="number")throw new TypeError("Argument must be a number");var i=zo(n);return e!==void 0?typeof t=="string"?i.fill(e,t):i.fill(e):i.fill(0),i};Nc.allocUnsafe=function(n){if(typeof n!="number")throw new TypeError("Argument must be a number");return zo(n)};Nc.allocUnsafeSlow=function(n){if(typeof n!="number")throw new TypeError("Argument must be a number");return Qy.SlowBuffer(n)}});var OX=m((ZNe,jE)=>{"use strict";jE.exports=awe;jE.exports.parse=hwe;var RX=require("path").basename,zve=PX().Buffer,Qve=/[\x00-\x20"'()*,/:;<=>?@[\\\]{}\x7f]/g,Vve=/%[0-9A-Fa-f]{2}/,ewe=/%([0-9A-Fa-f]{2})/g,IX=/[^\x20-\x7e\xa0-\xff]/g,twe=/\\([\u0000-\u007f])/g,iwe=/([\\"])/g,LX=/;[\x09\x20]*([!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*=[\x09\x20]*("(?:[\x20!\x23-\x5b\x5d-\x7e\x80-\xff]|\\[\x20-\x7e])*"|[!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*/g,nwe=/^[\x20-\x7e\x80-\xff]+$/,rwe=/^[!#$%&'*+.0-9A-Z^_`a-z|~-]+$/,owe=/^([A-Za-z0-9!#$%&+\-^_`{}~]+)'(?:[A-Za-z]{2,3}(?:-[A-Za-z]{3}){0,3}|[A-Za-z]{4,8}|)'((?:%[0-9A-Fa-f]{2}|[A-Za-z0-9!#$&+.^_`|~-])+)$/,swe=/^([!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*(?:$|;)/;function awe(n,e){var t=e||{},i=t.type||"attachment",r=lwe(n,t.fallback);return uwe(new FX(i,r))}function lwe(n,e){if(n!==void 0){var t={};if(typeof n!="string")throw new TypeError("filename must be a string");if(e===void 0&&(e=!0),typeof e!="string"&&typeof e!="boolean")throw new TypeError("fallback must be a string or boolean");if(typeof e=="string"&&IX.test(e))throw new TypeError("fallback must be ISO-8859-1 string");var i=RX(n),r=nwe.test(i),o=typeof e!="string"?e&&jX(i):RX(e),s=typeof o=="string"&&o!==i;return(s||!r||Vve.test(i))&&(t["filename*"]=i),(r||s)&&(t.filename=s?o:i),t}}function uwe(n){var e=n.parameters,t=n.type;if(!t||typeof t!="string"||!rwe.test(t))throw new TypeError("invalid type");var i=String(t).toLowerCase();if(e&&typeof e=="object")for(var r,o=Object.keys(e).sort(),s=0;s<o.length;s++){r=o[s];var a=r.substr(-1)==="*"?pwe(e[r]):fwe(e[r]);i+="; "+r+"="+a}return i}function cwe(n){var e=owe.exec(n);if(!e)throw new TypeError("invalid extended field value");var t=e[1].toLowerCase(),i=e[2],r,o=i.replace(ewe,dwe);switch(t){case"iso-8859-1":r=jX(o);break;case"utf-8":r=zve.from(o,"binary").toString("utf8");break;default:throw new TypeError("unsupported charset in extended field")}return r}function jX(n){return String(n).replace(IX,"?")}function hwe(n){if(!n||typeof n!="string")throw new TypeError("argument string is required");var e=swe.exec(n);if(!e)throw new TypeError("invalid type format");var t=e[0].length,i=e[1].toLowerCase(),r,o=[],s={},a;for(t=LX.lastIndex=e[0].substr(-1)===";"?t-1:t;e=LX.exec(n);){if(e.index!==t)throw new TypeError("invalid parameter format");if(t+=e[0].length,r=e[1].toLowerCase(),a=e[2],o.indexOf(r)!==-1)throw new TypeError("invalid duplicate parameter");if(o.push(r),r.indexOf("*")+1===r.length){r=r.slice(0,-1),a=cwe(a),s[r]=a;continue}typeof s[r]!="string"&&(a[0]==='"'&&(a=a.substr(1,a.length-2).replace(twe,"$1")),s[r]=a)}if(t!==-1&&t!==n.length)throw new TypeError("invalid parameter format");return new FX(i,s)}function dwe(n,e){return String.fromCharCode(parseInt(e,16))}function gwe(n){return"%"+String(n).charCodeAt(0).toString(16).toUpperCase()}function fwe(n){var e=String(n);return'"'+e.replace(iwe,"\\$1")+'"'}function pwe(n){var e=String(n),t=encodeURIComponent(e).replace(Qve,gwe);return"UTF-8''"+t}function FX(n,e){this.type=n,this.parameters=e}});var AX=m((JNe,MX)=>{var Qg;MX.exports=function(){if(!Qg){try{Qg=jt()("follow-redirects")}catch{}typeof Qg!="function"&&(Qg=function(){})}Qg.apply(null,arguments)}});var NE=m(($Ne,AE)=>{var Tl=require("url"),FE=Tl.URL,mwe=require("http"),bwe=require("https"),qX=require("stream").Writable,ywe=require("assert"),BX=AX(),kl=["abort","aborted","connect","error","socket","timeout"],ME=Object.create(null);kl.forEach(function(n){ME[n]=function(e,t,i){this._redirectable.emit(n,e,t,i)}});var NX=Vy("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),vwe=Vy("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),wwe=Vy("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),xwe=Vy("ERR_STREAM_WRITE_AFTER_END","write after end");function Mn(n,e){qX.call(this),this._sanitizeOptions(n),this._options=n,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],e&&this.on("response",e);var t=this;this._onNativeResponse=function(i){t._processResponse(i)},this._performRequest()}Mn.prototype=Object.create(qX.prototype);Mn.prototype.abort=function(){WX(this._currentRequest),this.emit("abort")};Mn.prototype.write=function(n,e,t){if(this._ending)throw new xwe;if(!(typeof n=="string"||typeof n=="object"&&"length"in n))throw new TypeError("data should be a string, Buffer or Uint8Array");if(typeof e=="function"&&(t=e,e=null),n.length===0){t&&t();return}this._requestBodyLength+n.length<=this._options.maxBodyLength?(this._requestBodyLength+=n.length,this._requestBodyBuffers.push({data:n,encoding:e}),this._currentRequest.write(n,e,t)):(this.emit("error",new wwe),this.abort())};Mn.prototype.end=function(n,e,t){if(typeof n=="function"?(t=n,n=e=null):typeof e=="function"&&(t=e,e=null),!n)this._ended=this._ending=!0,this._currentRequest.end(null,null,t);else{var i=this,r=this._currentRequest;this.write(n,e,function(){i._ended=!0,r.end(null,null,t)}),this._ending=!0}};Mn.prototype.setHeader=function(n,e){this._options.headers[n]=e,this._currentRequest.setHeader(n,e)};Mn.prototype.removeHeader=function(n){delete this._options.headers[n],this._currentRequest.removeHeader(n)};Mn.prototype.setTimeout=function(n,e){var t=this;function i(s){s.setTimeout(n),s.removeListener("timeout",s.destroy),s.addListener("timeout",s.destroy)}function r(s){t._timeout&&clearTimeout(t._timeout),t._timeout=setTimeout(function(){t.emit("timeout"),o()},n),i(s)}function o(){t._timeout&&(clearTimeout(t._timeout),t._timeout=null),t.removeListener("abort",o),t.removeListener("error",o),t.removeListener("response",o),e&&t.removeListener("timeout",e),t.socket||t._currentRequest.removeListener("socket",r)}return e&&this.on("timeout",e),this.socket?r(this.socket):this._currentRequest.once("socket",r),this.on("socket",i),this.on("abort",o),this.on("error",o),this.on("response",o),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(n){Mn.prototype[n]=function(e,t){return this._currentRequest[n](e,t)}});["aborted","connection","socket"].forEach(function(n){Object.defineProperty(Mn.prototype,n,{get:function(){return this._currentRequest[n]}})});Mn.prototype._sanitizeOptions=function(n){if(n.headers||(n.headers={}),n.host&&(n.hostname||(n.hostname=n.host),delete n.host),!n.pathname&&n.path){var e=n.path.indexOf("?");e<0?n.pathname=n.path:(n.pathname=n.path.substring(0,e),n.search=n.path.substring(e))}};Mn.prototype._performRequest=function(){var n=this._options.protocol,e=this._options.nativeProtocols[n];if(!e){this.emit("error",new TypeError("Unsupported protocol "+n));return}if(this._options.agents){var t=n.substr(0,n.length-1);this._options.agent=this._options.agents[t]}var i=this._currentRequest=e.request(this._options,this._onNativeResponse);this._currentUrl=Tl.format(this._options),i._redirectable=this;for(var r=0;r<kl.length;r++)i.on(kl[r],ME[kl[r]]);if(this._isRedirect){var o=0,s=this,a=this._requestBodyBuffers;(function l(u){if(i===s._currentRequest)if(u)s.emit("error",u);else if(o<a.length){var c=a[o++];i.finished||i.write(c.data,c.encoding,l)}else s._ended&&i.end()})()}};Mn.prototype._processResponse=function(n){var e=n.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:n.headers,statusCode:e});var t=n.headers.location;if(t&&this._options.followRedirects!==!1&&e>=300&&e<400){if(WX(this._currentRequest),n.destroy(),++this._redirectCount>this._options.maxRedirects){this.emit("error",new vwe);return}((e===301||e===302)&&this._options.method==="POST"||e===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],OE(/^content-/i,this._options.headers));var i=OE(/^host$/i,this._options.headers),r=Tl.parse(this._currentUrl),o=i||r.host,s=/^\w+:/.test(t)?this._currentUrl:Tl.format(Object.assign(r,{host:o})),a;try{a=Tl.resolve(s,t)}catch(c){this.emit("error",new NX(c));return}BX("redirecting to",a),this._isRedirect=!0;var l=Tl.parse(a);if(Object.assign(this._options,l),(l.protocol!==r.protocol||!Swe(l.host,o))&&OE(/^(?:authorization|cookie)$/i,this._options.headers),typeof this._options.beforeRedirect=="function"){var u={headers:n.headers};try{this._options.beforeRedirect.call(null,this._options,u)}catch(c){this.emit("error",c);return}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(c){this.emit("error",new NX(c))}}else n.responseUrl=this._currentUrl,n.redirects=this._redirects,this.emit("response",n),this._requestBodyBuffers=[]};function YX(n){var e={maxRedirects:21,maxBodyLength:10485760},t={};return Object.keys(n).forEach(function(i){var r=i+":",o=t[r]=n[i],s=e[i]=Object.create(o);function a(u,c,h){if(typeof u=="string"){var d=u;try{u=HX(new FE(d))}catch{u=Tl.parse(d)}}else FE&&u instanceof FE?u=HX(u):(h=c,c=u,u={protocol:r});return typeof c=="function"&&(h=c,c=null),c=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},u,c),c.nativeProtocols=t,ywe.equal(c.protocol,r,"protocol mismatch"),BX("options",c),new Mn(c,h)}function l(u,c,h){var d=s.request(u,c,h);return d.end(),d}Object.defineProperties(s,{request:{value:a,configurable:!0,enumerable:!0,writable:!0},get:{value:l,configurable:!0,enumerable:!0,writable:!0}})}),e}function Cwe(){}function HX(n){var e={protocol:n.protocol,hostname:n.hostname.startsWith("[")?n.hostname.slice(1,-1):n.hostname,hash:n.hash,search:n.search,pathname:n.pathname,path:n.pathname+n.search,href:n.href};return n.port!==""&&(e.port=Number(n.port)),e}function OE(n,e){var t;for(var i in e)n.test(i)&&(t=e[i],delete e[i]);return t===null||typeof t>"u"?void 0:String(t).trim()}function Vy(n,e){function t(i){Error.captureStackTrace(this,this.constructor),i?(this.message=e+": "+i.message,this.cause=i):this.message=e}return t.prototype=new Error,t.prototype.constructor=t,t.prototype.name="Error ["+n+"]",t.prototype.code=n,t}function WX(n){for(var e=0;e<kl.length;e++)n.removeListener(kl[e],ME[kl[e]]);n.on("error",Cwe),n.abort()}function Swe(n,e){if(n===e)return!0;let t=n.length-e.length-1;return t>0&&n[t]==="."&&n.endsWith(e)}AE.exports=YX({http:mwe,https:bwe});AE.exports.wrap=YX});var Hc=m((XNe,JX)=>{"use strict";var ZX=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);JX.exports=n=>n?Object.keys(n).map(e=>[ZX.has(e)?ZX.get(e):e,n[e]]).reduce((e,t)=>(e[t[0]]=t[1],e),Object.create(null)):{}});var qc=m((UNe,eU)=>{"use strict";var Twe=require("events"),$X=require("stream"),Vg=Ag(),XX=require("string_decoder").StringDecoder,Qo=Symbol("EOF"),ef=Symbol("maybeEmitEnd"),ua=Symbol("emittedEnd"),ev=Symbol("emittingEnd"),tv=Symbol("closed"),UX=Symbol("read"),HE=Symbol("flush"),GX=Symbol("flushChunk"),mn=Symbol("encoding"),Vo=Symbol("decoder"),iv=Symbol("flowing"),tf=Symbol("paused"),nf=Symbol("resume"),Qi=Symbol("bufferLength"),KX=Symbol("bufferPush"),qE=Symbol("bufferShift"),Ii=Symbol("objectMode"),ji=Symbol("destroyed"),QX=global._MP_NO_ITERATOR_SYMBOLS_!=="1",kwe=QX&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),Dwe=QX&&Symbol.iterator||Symbol("iterator not implemented"),zX=n=>n==="end"||n==="finish"||n==="prefinish",Ewe=n=>n instanceof ArrayBuffer||typeof n=="object"&&n.constructor&&n.constructor.name==="ArrayBuffer"&&n.byteLength>=0,_we=n=>!Buffer.isBuffer(n)&&ArrayBuffer.isView(n);eU.exports=class VX extends $X{constructor(e){super();this[iv]=!1,this[tf]=!1,this.pipes=new Vg,this.buffer=new Vg,this[Ii]=e&&e.objectMode||!1,this[Ii]?this[mn]=null:this[mn]=e&&e.encoding||null,this[mn]==="buffer"&&(this[mn]=null),this[Vo]=this[mn]?new XX(this[mn]):null,this[Qo]=!1,this[ua]=!1,this[ev]=!1,this[tv]=!1,this.writable=!0,this.readable=!0,this[Qi]=0,this[ji]=!1}get bufferLength(){return this[Qi]}get encoding(){return this[mn]}set encoding(e){if(this[Ii])throw new Error("cannot set encoding in objectMode");if(this[mn]&&e!==this[mn]&&(this[Vo]&&this[Vo].lastNeed||this[Qi]))throw new Error("cannot change encoding");this[mn]!==e&&(this[Vo]=e?new XX(e):null,this.buffer.length&&(this.buffer=this.buffer.map(t=>this[Vo].write(t)))),this[mn]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[Ii]}set objectMode(e){this[Ii]=this[Ii]||!!e}write(e,t,i){if(this[Qo])throw new Error("write after end");return this[ji]?(this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0):(typeof t=="function"&&(i=t,t="utf8"),t||(t="utf8"),!this[Ii]&&!Buffer.isBuffer(e)&&(_we(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):Ewe(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),!this.objectMode&&!e.length?(this[Qi]!==0&&this.emit("readable"),i&&i(),this.flowing):(typeof e=="string"&&!this[Ii]&&!(t===this[mn]&&!this[Vo].lastNeed)&&(e=Buffer.from(e,t)),Buffer.isBuffer(e)&&this[mn]&&(e=this[Vo].write(e)),this.flowing?(this[Qi]!==0&&this[HE](!0),this.emit("data",e)):this[KX](e),this[Qi]!==0&&this.emit("readable"),i&&i(),this.flowing))}read(e){if(this[ji])return null;try{return this[Qi]===0||e===0||e>this[Qi]?null:(this[Ii]&&(e=null),this.buffer.length>1&&!this[Ii]&&(this.encoding?this.buffer=new Vg([Array.from(this.buffer).join("")]):this.buffer=new Vg([Buffer.concat(Array.from(this.buffer),this[Qi])])),this[UX](e||null,this.buffer.head.value))}finally{this[ef]()}}[UX](e,t){return e===t.length||e===null?this[qE]():(this.buffer.head.value=t.slice(e),t=t.slice(0,e),this[Qi]-=e),this.emit("data",t),!this.buffer.length&&!this[Qo]&&this.emit("drain"),t}end(e,t,i){return typeof e=="function"&&(i=e,e=null),typeof t=="function"&&(i=t,t="utf8"),e&&this.write(e,t),i&&this.once("end",i),this[Qo]=!0,this.writable=!1,(this.flowing||!this[tf])&&this[ef](),this}[nf](){this[ji]||(this[tf]=!1,this[iv]=!0,this.emit("resume"),this.buffer.length?this[HE]():this[Qo]?this[ef]():this.emit("drain"))}resume(){return this[nf]()}pause(){this[iv]=!1,this[tf]=!0}get destroyed(){return this[ji]}get flowing(){return this[iv]}get paused(){return this[tf]}[KX](e){return this[Ii]?this[Qi]+=1:this[Qi]+=e.length,this.buffer.push(e)}[qE](){return this.buffer.length&&(this[Ii]?this[Qi]-=1:this[Qi]-=this.buffer.head.value.length),this.buffer.shift()}[HE](e){do;while(this[GX](this[qE]()));!e&&!this.buffer.length&&!this[Qo]&&this.emit("drain")}[GX](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,t){if(this[ji])return;let i=this[ua];t=t||{},e===process.stdout||e===process.stderr?t.end=!1:t.end=t.end!==!1;let r={dest:e,opts:t,ondrain:o=>this[nf]()};return this.pipes.push(r),e.on("drain",r.ondrain),this[nf](),i&&r.opts.end&&r.dest.end(),e}addListener(e,t){return this.on(e,t)}on(e,t){try{return super.on(e,t)}finally{e==="data"&&!this.pipes.length&&!this.flowing?this[nf]():zX(e)&&this[ua]&&(super.emit(e),this.removeAllListeners(e))}}get emittedEnd(){return this[ua]}[ef](){!this[ev]&&!this[ua]&&!this[ji]&&this.buffer.length===0&&this[Qo]&&(this[ev]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[tv]&&this.emit("close"),this[ev]=!1)}emit(e,t){if(e!=="error"&&e!=="close"&&e!==ji&&this[ji])return;if(e==="data"){if(!t)return;this.pipes.length&&this.pipes.forEach(r=>r.dest.write(t)===!1&&this.pause())}else if(e==="end"){if(this[ua]===!0)return;this[ua]=!0,this.readable=!1,this[Vo]&&(t=this[Vo].end(),t&&(this.pipes.forEach(r=>r.dest.write(t)),super.emit("data",t))),this.pipes.forEach(r=>{r.dest.removeListener("drain",r.ondrain),r.opts.end&&r.dest.end()})}else if(e==="close"&&(this[tv]=!0,!this[ua]&&!this[ji]))return;let i=new Array(arguments.length);if(i[0]=e,i[1]=t,arguments.length>2)for(let r=2;r<arguments.length;r++)i[r]=arguments[r];try{return super.emit.apply(this,i)}finally{zX(e)?this.removeAllListeners(e):this[ef]()}}collect(){let e=[];this[Ii]||(e.dataLength=0);let t=this.promise();return this.on("data",i=>{e.push(i),this[Ii]||(e.dataLength+=i.length)}),t.then(()=>e)}concat(){return this[Ii]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[Ii]?Promise.reject(new Error("cannot concat in objectMode")):this[mn]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,t)=>{this.on(ji,()=>t(new Error("stream destroyed"))),this.on("end",()=>e()),this.on("error",i=>t(i))})}[kwe](){return{next:()=>{let t=this.read();if(t!==null)return Promise.resolve({done:!1,value:t});if(this[Qo])return Promise.resolve({done:!0});let i=null,r=null,o=u=>{this.removeListener("data",s),this.removeListener("end",a),r(u)},s=u=>{this.removeListener("error",o),this.removeListener("end",a),this.pause(),i({value:u,done:!!this[Qo]})},a=()=>{this.removeListener("error",o),this.removeListener("data",s),i({done:!0})},l=()=>o(new Error("stream destroyed"));return new Promise((u,c)=>{r=c,i=u,this.once(ji,l),this.once("error",o),this.once("end",a),this.once("data",s)})}}}[Dwe](){return{next:()=>{let t=this.read();return{value:t,done:t===null}}}}destroy(e){return this[ji]?(e?this.emit("error",e):this.emit(ji),this):(this[ji]=!0,this.buffer=new Vg,this[Qi]=0,typeof this.close=="function"&&!this[tv]&&this.close(),e?this.emit("error",e):this.emit(ji),this)}static isStream(e){return!!e&&(e instanceof VX||e instanceof $X||e instanceof Twe&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var iU=m((GNe,tU)=>{var Pwe=require("zlib").constants||{ZLIB_VERNUM:4736};tU.exports=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:1/0,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},Pwe))});var GE=m(An=>{"use strict";var JE=require("assert"),ca=require("buffer").Buffer,oU=require("zlib"),Dl=An.constants=iU(),Rwe=qc(),nU=ca.concat,El=Symbol("_superWrite"),of=class extends Error{constructor(e){super("zlib: "+e.message);this.code=e.code,this.errno=e.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+e.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},Lwe=Symbol("opts"),rf=Symbol("flushFlag"),rU=Symbol("finishFlushFlag"),$E=Symbol("fullFlushFlag"),ft=Symbol("handle"),nv=Symbol("onError"),Bc=Symbol("sawError"),BE=Symbol("level"),YE=Symbol("strategy"),WE=Symbol("ended"),KNe=Symbol("_defaultFullFlush"),XE=class extends Rwe{constructor(e,t){if(!e||typeof e!="object")throw new TypeError("invalid options for ZlibBase constructor");super(e);this[Bc]=!1,this[WE]=!1,this[Lwe]=e,this[rf]=e.flush,this[rU]=e.finishFlush;try{this[ft]=new oU[t](e)}catch(i){throw new of(i)}this[nv]=i=>{this[Bc]||(this[Bc]=!0,this.close(),this.emit("error",i))},this[ft].on("error",i=>this[nv](new of(i))),this.once("end",()=>this.close)}close(){this[ft]&&(this[ft].close(),this[ft]=null,this.emit("close"))}reset(){if(!this[Bc])return JE(this[ft],"zlib binding closed"),this[ft].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[$E]),this.write(Object.assign(ca.alloc(0),{[rf]:e})))}end(e,t,i){return e&&this.write(e,t),this.flush(this[rU]),this[WE]=!0,super.end(null,null,i)}get ended(){return this[WE]}write(e,t,i){if(typeof t=="function"&&(i=t,t="utf8"),typeof e=="string"&&(e=ca.from(e,t)),this[Bc])return;JE(this[ft],"zlib binding closed");let r=this[ft]._handle,o=r.close;r.close=()=>{};let s=this[ft].close;this[ft].close=()=>{},ca.concat=u=>u;let a;try{let u=typeof e[rf]=="number"?e[rf]:this[rf];a=this[ft]._processChunk(e,u),ca.concat=nU}catch(u){ca.concat=nU,this[nv](new of(u))}finally{this[ft]&&(this[ft]._handle=r,r.close=o,this[ft].close=s,this[ft].removeAllListeners("error"))}this[ft]&&this[ft].on("error",u=>this[nv](new of(u)));let l;if(a)if(Array.isArray(a)&&a.length>0){l=this[El](ca.from(a[0]));for(let u=1;u<a.length;u++)l=this[El](a[u])}else l=this[El](ca.from(a));return i&&i(),l}[El](e){return super.write(e)}},ha=class extends XE{constructor(e,t){e=e||{},e.flush=e.flush||Dl.Z_NO_FLUSH,e.finishFlush=e.finishFlush||Dl.Z_FINISH;super(e,t);this[$E]=Dl.Z_FULL_FLUSH,this[BE]=e.level,this[YE]=e.strategy}params(e,t){if(!this[Bc]){if(!this[ft])throw new Error("cannot switch params when binding is closed");if(!this[ft].params)throw new Error("not supported in this implementation");if(this[BE]!==e||this[YE]!==t){this.flush(Dl.Z_SYNC_FLUSH),JE(this[ft],"zlib binding closed");let i=this[ft].flush;this[ft].flush=(r,o)=>{this.flush(r),o()};try{this[ft].params(e,t)}finally{this[ft].flush=i}this[ft]&&(this[BE]=e,this[YE]=t)}}}},sU=class extends ha{constructor(e){super(e,"Deflate")}},aU=class extends ha{constructor(e){super(e,"Inflate")}},ZE=Symbol("_portable"),lU=class extends ha{constructor(e){super(e,"Gzip");this[ZE]=e&&!!e.portable}[El](e){return this[ZE]?(this[ZE]=!1,e[9]=255,super[El](e)):super[El](e)}},uU=class extends ha{constructor(e){super(e,"Gunzip")}},cU=class extends ha{constructor(e){super(e,"DeflateRaw")}},hU=class extends ha{constructor(e){super(e,"InflateRaw")}},dU=class extends ha{constructor(e){super(e,"Unzip")}},UE=class extends XE{constructor(e,t){e=e||{},e.flush=e.flush||Dl.BROTLI_OPERATION_PROCESS,e.finishFlush=e.finishFlush||Dl.BROTLI_OPERATION_FINISH;super(e,t);this[$E]=Dl.BROTLI_OPERATION_FLUSH}},gU=class extends UE{constructor(e){super(e,"BrotliCompress")}},fU=class extends UE{constructor(e){super(e,"BrotliDecompress")}};An.Deflate=sU;An.Inflate=aU;An.Gzip=lU;An.Gunzip=uU;An.DeflateRaw=cU;An.InflateRaw=hU;An.Unzip=dU;typeof oU.BrotliCompress=="function"?(An.BrotliCompress=gU,An.BrotliDecompress=fU):An.BrotliCompress=An.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var Yc=m((QNe,pU)=>{var Iwe=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;pU.exports=Iwe!=="win32"?n=>n:n=>n&&n.replace(/\\/g,"/")});var rv=m((eHe,mU)=>{"use strict";var jwe=qc(),KE=Yc(),zE=Symbol("slurp");mU.exports=class extends jwe{constructor(e,t,i){super();switch(this.pause(),this.extended=t,this.globalExtended=i,this.header=e,this.startBlockSize=512*Math.ceil(e.size/512),this.blockRemain=this.startBlockSize,this.remain=e.size,this.type=e.type,this.meta=!1,this.ignore=!1,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}this.path=KE(e.path),this.mode=e.mode,this.mode&&(this.mode=this.mode&4095),this.uid=e.uid,this.gid=e.gid,this.uname=e.uname,this.gname=e.gname,this.size=e.size,this.mtime=e.mtime,this.atime=e.atime,this.ctime=e.ctime,this.linkpath=KE(e.linkpath),this.uname=e.uname,this.gname=e.gname,t&&this[zE](t),i&&this[zE](i,!0)}write(e){let t=e.length;if(t>this.blockRemain)throw new Error("writing more to entry than is appropriate");let i=this.remain,r=this.blockRemain;return this.remain=Math.max(0,i-t),this.blockRemain=Math.max(0,r-t),this.ignore?!0:i>=t?super.write(e):super.write(e.slice(0,i))}[zE](e,t){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(t&&i==="path")&&(this[i]=i==="path"||i==="linkpath"?KE(e[i]):e[i])}}});var QE=m(ov=>{"use strict";ov.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]);ov.code=new Map(Array.from(ov.name).map(n=>[n[1],n[0]]))});var wU=m((iHe,vU)=>{"use strict";var Fwe=(n,e)=>{if(Number.isSafeInteger(n))n<0?Mwe(n,e):Owe(n,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},Owe=(n,e)=>{e[0]=128;for(var t=e.length;t>1;t--)e[t-1]=n&255,n=Math.floor(n/256)},Mwe=(n,e)=>{e[0]=255;var t=!1;n=n*-1;for(var i=e.length;i>1;i--){var r=n&255;n=Math.floor(n/256),t?e[i-1]=bU(r):r===0?e[i-1]=0:(t=!0,e[i-1]=yU(r))}},Awe=n=>{let e=n[0],t=e===128?Hwe(n.slice(1,n.length)):e===255?Nwe(n):null;if(t===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(t))throw Error("parsed number outside of javascript safe integer range");return t},Nwe=n=>{for(var e=n.length,t=0,i=!1,r=e-1;r>-1;r--){var o=n[r],s;i?s=bU(o):o===0?s=o:(i=!0,s=yU(o)),s!==0&&(t-=s*Math.pow(256,e-r-1))}return t},Hwe=n=>{for(var e=n.length,t=0,i=e-1;i>-1;i--){var r=n[i];r!==0&&(t+=r*Math.pow(256,e-i-1))}return t},bU=n=>(255^n)&255,yU=n=>(255^n)+1&255;vU.exports={encode:Fwe,parse:Awe}});var Zc=m((nHe,SU)=>{"use strict";var VE=QE(),Wc=require("path").posix,xU=wU(),e0=Symbol("slurp"),Nn=Symbol("type"),CU=class{constructor(e,t,i,r){this.cksumValid=!1,this.needPax=!1,this.nullBlock=!1,this.block=null,this.path=null,this.mode=null,this.uid=null,this.gid=null,this.size=null,this.mtime=null,this.cksum=null,this[Nn]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(e)?this.decode(e,t||0,i,r):e&&this.set(e)}decode(e,t,i,r){if(t||(t=0),!e||!(e.length>=t+512))throw new Error("need 512 bytes for header");if(this.path=_l(e,t,100),this.mode=da(e,t+100,8),this.uid=da(e,t+108,8),this.gid=da(e,t+116,8),this.size=da(e,t+124,12),this.mtime=t0(e,t+136,12),this.cksum=da(e,t+148,12),this[e0](i),this[e0](r,!0),this[Nn]=_l(e,t+156,1),this[Nn]===""&&(this[Nn]="0"),this[Nn]==="0"&&this.path.substr(-1)==="/"&&(this[Nn]="5"),this[Nn]==="5"&&(this.size=0),this.linkpath=_l(e,t+157,100),e.slice(t+257,t+265).toString()==="ustar\x0000")if(this.uname=_l(e,t+265,32),this.gname=_l(e,t+297,32),this.devmaj=da(e,t+329,8),this.devmin=da(e,t+337,8),e[t+475]!==0){let s=_l(e,t+345,155);this.path=s+"/"+this.path}else{let s=_l(e,t+345,130);s&&(this.path=s+"/"+this.path),this.atime=t0(e,t+476,12),this.ctime=t0(e,t+488,12)}let o=8*32;for(let s=t;s<t+148;s++)o+=e[s];for(let s=t+156;s<t+512;s++)o+=e[s];this.cksumValid=o===this.cksum,this.cksum===null&&o===8*32&&(this.nullBlock=!0)}[e0](e,t){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(t&&i==="path")&&(this[i]=e[i])}encode(e,t){if(e||(e=this.block=Buffer.alloc(512),t=0),t||(t=0),!(e.length>=t+512))throw new Error("need 512 bytes for header");let i=this.ctime||this.atime?130:155,r=qwe(this.path||"",i),o=r[0],s=r[1];this.needPax=r[2],this.needPax=Pl(e,t,100,o)||this.needPax,this.needPax=ga(e,t+100,8,this.mode)||this.needPax,this.needPax=ga(e,t+108,8,this.uid)||this.needPax,this.needPax=ga(e,t+116,8,this.gid)||this.needPax,this.needPax=ga(e,t+124,12,this.size)||this.needPax,this.needPax=i0(e,t+136,12,this.mtime)||this.needPax,e[t+156]=this[Nn].charCodeAt(0),this.needPax=Pl(e,t+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",t+257,8),this.needPax=Pl(e,t+265,32,this.uname)||this.needPax,this.needPax=Pl(e,t+297,32,this.gname)||this.needPax,this.needPax=ga(e,t+329,8,this.devmaj)||this.needPax,this.needPax=ga(e,t+337,8,this.devmin)||this.needPax,this.needPax=Pl(e,t+345,i,s)||this.needPax,e[t+475]!==0?this.needPax=Pl(e,t+345,155,s)||this.needPax:(this.needPax=Pl(e,t+345,130,s)||this.needPax,this.needPax=i0(e,t+476,12,this.atime)||this.needPax,this.needPax=i0(e,t+488,12,this.ctime)||this.needPax);let a=8*32;for(let l=t;l<t+148;l++)a+=e[l];for(let l=t+156;l<t+512;l++)a+=e[l];return this.cksum=a,ga(e,t+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(e){for(let t in e)e[t]!==null&&e[t]!==void 0&&(this[t]=e[t])}get type(){return VE.name.get(this[Nn])||this[Nn]}get typeKey(){return this[Nn]}set type(e){VE.code.has(e)?this[Nn]=VE.code.get(e):this[Nn]=e}},qwe=(n,e)=>{let i=n,r="",o,s=Wc.parse(n).root||".";if(Buffer.byteLength(i)<100)o=[i,r,!1];else{r=Wc.dirname(i),i=Wc.basename(i);do Buffer.byteLength(i)<=100&&Buffer.byteLength(r)<=e?o=[i,r,!1]:Buffer.byteLength(i)>100&&Buffer.byteLength(r)<=e?o=[i.substr(0,100-1),r,!0]:(i=Wc.join(Wc.basename(r),i),r=Wc.dirname(r));while(r!==s&&!o);o||(o=[n.substr(0,100-1),"",!0])}return o},_l=(n,e,t)=>n.slice(e,e+t).toString("utf8").replace(/\0.*/,""),t0=(n,e,t)=>Bwe(da(n,e,t)),Bwe=n=>n===null?null:new Date(n*1e3),da=(n,e,t)=>n[e]&128?xU.parse(n.slice(e,e+t)):Wwe(n,e,t),Ywe=n=>isNaN(n)?null:n,Wwe=(n,e,t)=>Ywe(parseInt(n.slice(e,e+t).toString("utf8").replace(/\0.*$/,"").trim(),8)),Zwe={12:8589934591,8:2097151},ga=(n,e,t,i)=>i===null?!1:i>Zwe[t]||i<0?(xU.encode(i,n.slice(e,e+t)),!0):(Jwe(n,e,t,i),!1),Jwe=(n,e,t,i)=>n.write($we(i,t),e,t,"ascii"),$we=(n,e)=>Xwe(Math.floor(n).toString(8),e),Xwe=(n,e)=>(n.length===e-1?n:new Array(e-n.length-1).join("0")+n+" ")+"\0",i0=(n,e,t,i)=>i===null?!1:ga(n,e,t,i.getTime()/1e3),Uwe=new Array(156).join("\0"),Pl=(n,e,t,i)=>i===null?!1:(n.write(i+Uwe,e,t,"utf8"),i.length!==Buffer.byteLength(i)||i.length>t);SU.exports=CU});var av=m((rHe,TU)=>{"use strict";var Gwe=Zc(),Kwe=require("path"),sv=class{constructor(e,t){this.atime=e.atime||null,this.charset=e.charset||null,this.comment=e.comment||null,this.ctime=e.ctime||null,this.gid=e.gid||null,this.gname=e.gname||null,this.linkpath=e.linkpath||null,this.mtime=e.mtime||null,this.path=e.path||null,this.size=e.size||null,this.uid=e.uid||null,this.uname=e.uname||null,this.dev=e.dev||null,this.ino=e.ino||null,this.nlink=e.nlink||null,this.global=t||!1}encode(){let e=this.encodeBody();if(e==="")return null;let t=Buffer.byteLength(e),i=512*Math.ceil(1+t/512),r=Buffer.allocUnsafe(i);for(let o=0;o<512;o++)r[o]=0;new Gwe({path:("PaxHeader/"+Kwe.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:t,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(r),r.write(e,512,t,"utf8");for(let o=t+512;o<r.length;o++)r[o]=0;return r}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(e){if(this[e]===null||this[e]===void 0)return"";let t=this[e]instanceof Date?this[e].getTime()/1e3:this[e],i=" "+(e==="dev"||e==="ino"||e==="nlink"?"SCHILY.":"")+e+"="+t+`
`,r=Buffer.byteLength(i),o=Math.floor(Math.log(r)/Math.log(10))+1;return r+o>=Math.pow(10,o)&&(o+=1),o+r+i}};sv.parse=(n,e,t)=>new sv(zwe(Qwe(n),e),t);var zwe=(n,e)=>e?Object.keys(n).reduce((t,i)=>(t[i]=n[i],t),e):n,Qwe=n=>n.replace(/\n$/,"").split(`
`).reduce(Vwe,Object.create(null)),Vwe=(n,e)=>{let t=parseInt(e,10);if(t!==Buffer.byteLength(e)+1)return n;e=e.substr((t+" ").length);let i=e.split("="),r=i.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!r)return n;let o=i.join("=");return n[r]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(r)?new Date(o*1e3):/^[0-9]+$/.test(o)?+o:o,n};TU.exports=sv});var Jc=m((oHe,kU)=>{kU.exports=n=>{let e=n.length-1,t=-1;for(;e>-1&&n.charAt(e)==="/";)t=e,e--;return t===-1?n:n.slice(0,t)}});var lv=m((sHe,DU)=>{"use strict";DU.exports=n=>class extends n{warn(e,t,i={}){this.file&&(i.file=this.file),this.cwd&&(i.cwd=this.cwd),i.code=t instanceof Error&&t.code||e,i.tarCode=e,!this.strict&&i.recoverable!==!1?(t instanceof Error&&(i=Object.assign(t,i),t=t.message),this.emit("warn",i.tarCode,t,i)):t instanceof Error?this.emit("error",Object.assign(t,i)):this.emit("error",Object.assign(new Error(`${e}: ${t}`),i))}}});var r0=m((aHe,EU)=>{"use strict";var uv=["|","<",">","?",":"],n0=uv.map(n=>String.fromCharCode(61440+n.charCodeAt(0))),exe=new Map(uv.map((n,e)=>[n,n0[e]])),txe=new Map(n0.map((n,e)=>[n,uv[e]]));EU.exports={encode:n=>uv.reduce((e,t)=>e.split(t).join(exe.get(t)),n),decode:n=>n0.reduce((e,t)=>e.split(t).join(txe.get(t)),n)}});var o0=m((lHe,PU)=>{var{isAbsolute:ixe,parse:_U}=require("path").win32;PU.exports=n=>{let e="",t=_U(n);for(;ixe(n)||t.root;){let i=n.charAt(0)==="/"&&n.slice(0,4)!=="//?/"?"/":t.root;n=n.substr(i.length),e+=i,t=_U(n)}return[e,n]}});var LU=m((uHe,RU)=>{"use strict";RU.exports=(n,e,t)=>(n&=4095,t&&(n=(n|384)&-19),e&&(n&256&&(n|=64),n&32&&(n|=8),n&4&&(n|=1)),n)});var f0=m((dHe,$U)=>{"use strict";var NU=qc(),HU=av(),qU=Zc(),no=require("fs"),IU=require("path"),io=Yc(),nxe=Jc(),BU=(n,e)=>e?(n=io(n).replace(/^\.(\/|$)/,""),nxe(e)+"/"+n):io(n),rxe=16*1024*1024,jU=Symbol("process"),FU=Symbol("file"),OU=Symbol("directory"),a0=Symbol("symlink"),MU=Symbol("hardlink"),sf=Symbol("header"),cv=Symbol("read"),l0=Symbol("lstat"),hv=Symbol("onlstat"),u0=Symbol("onread"),c0=Symbol("onreadlink"),h0=Symbol("openfile"),d0=Symbol("onopenfile"),fa=Symbol("close"),dv=Symbol("mode"),g0=Symbol("awaitDrain"),s0=Symbol("ondrain"),ro=Symbol("prefix"),AU=Symbol("hadError"),YU=lv(),oxe=r0(),WU=o0(),ZU=LU(),gv=YU(class extends NU{constructor(e,t){t=t||{};super(t);if(typeof e!="string")throw new TypeError("path is required");this.path=io(e),this.portable=!!t.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=t.maxReadSize||rxe,this.linkCache=t.linkCache||new Map,this.statCache=t.statCache||new Map,this.preservePaths=!!t.preservePaths,this.cwd=io(t.cwd||process.cwd()),this.strict=!!t.strict,this.noPax=!!t.noPax,this.noMtime=!!t.noMtime,this.mtime=t.mtime||null,this.prefix=t.prefix?io(t.prefix):null,this.fd=null,this.blockLen=null,this.blockRemain=null,this.buf=null,this.offset=null,this.length=null,this.pos=null,this.remain=null,typeof t.onwarn=="function"&&this.on("warn",t.onwarn);let i=!1;if(!this.preservePaths){let[r,o]=WU(this.path);r&&(this.path=o,i=r)}this.win32=!!t.win32||process.platform==="win32",this.win32&&(this.path=oxe.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=io(t.absolute||IU.resolve(this.cwd,e)),this.path===""&&(this.path="./"),i&&this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path}),this.statCache.has(this.absolute)?this[hv](this.statCache.get(this.absolute)):this[l0]()}emit(e,...t){return e==="error"&&(this[AU]=!0),super.emit(e,...t)}[l0](){no.lstat(this.absolute,(e,t)=>{if(e)return this.emit("error",e);this[hv](t)})}[hv](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=axe(e),this.emit("stat",e),this[jU]()}[jU](){switch(this.type){case"File":return this[FU]();case"Directory":return this[OU]();case"SymbolicLink":return this[a0]();default:return this.end()}}[dv](e){return ZU(e,this.type==="Directory",this.portable)}[ro](e){return BU(e,this.prefix)}[sf](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new qU({path:this[ro](this.path),linkpath:this.type==="Link"?this[ro](this.linkpath):this.linkpath,mode:this[dv](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime}),this.header.encode()&&!this.noPax&&super.write(new HU({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this[ro](this.path),linkpath:this.type==="Link"?this[ro](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode()),super.write(this.header.block)}[OU](){this.path.substr(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[sf](),this.end()}[a0](){no.readlink(this.absolute,(e,t)=>{if(e)return this.emit("error",e);this[c0](t)})}[c0](e){this.linkpath=io(e),this[sf](),this.end()}[MU](e){this.type="Link",this.linkpath=io(IU.relative(this.cwd,e)),this.stat.size=0,this[sf](),this.end()}[FU](){if(this.stat.nlink>1){let e=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(e)){let t=this.linkCache.get(e);if(t.indexOf(this.cwd)===0)return this[MU](t)}this.linkCache.set(e,this.absolute)}if(this[sf](),this.stat.size===0)return this.end();this[h0]()}[h0](){no.open(this.absolute,"r",(e,t)=>{if(e)return this.emit("error",e);this[d0](t)})}[d0](e){if(this.fd=e,this[AU])return this[fa]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let t=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(t),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[cv]()}[cv](){let{fd:e,buf:t,offset:i,length:r,pos:o}=this;no.read(e,t,i,r,o,(s,a)=>{if(s)return this[fa](()=>this.emit("error",s));this[u0](a)})}[fa](e){no.close(this.fd,e)}[u0](e){if(e<=0&&this.remain>0){let r=new Error("encountered unexpected EOF");return r.path=this.absolute,r.syscall="read",r.code="EOF",this[fa](()=>this.emit("error",r))}if(e>this.remain){let r=new Error("did not encounter expected EOF");return r.path=this.absolute,r.syscall="read",r.code="EOF",this[fa](()=>this.emit("error",r))}if(e===this.remain)for(let r=e;r<this.length&&e<this.blockRemain;r++)this.buf[r+this.offset]=0,e++,this.remain++;let t=this.offset===0&&e===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+e);this.write(t)?this[s0]():this[g0](()=>this[s0]())}[g0](e){this.once("drain",e)}write(e){if(this.blockRemain<e.length){let t=new Error("writing more data than expected");return t.path=this.absolute,this.emit("error",t)}return this.remain-=e.length,this.blockRemain-=e.length,this.pos+=e.length,this.offset+=e.length,super.write(e)}[s0](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[fa](e=>e?this.emit("error",e):this.end());this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[cv]()}}),JU=class extends gv{[l0](){this[hv](no.lstatSync(this.absolute))}[a0](){this[c0](no.readlinkSync(this.absolute))}[h0](){this[d0](no.openSync(this.absolute,"r"))}[cv](){let e=!0;try{let{fd:t,buf:i,offset:r,length:o,pos:s}=this,a=no.readSync(t,i,r,o,s);this[u0](a),e=!1}finally{if(e)try{this[fa](()=>{})}catch{}}}[g0](e){e()}[fa](e){no.closeSync(this.fd),e()}},sxe=YU(class extends NU{constructor(e,t){t=t||{};super(t);this.preservePaths=!!t.preservePaths,this.portable=!!t.portable,this.strict=!!t.strict,this.noPax=!!t.noPax,this.noMtime=!!t.noMtime,this.readEntry=e,this.type=e.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=t.prefix||null,this.path=io(e.path),this.mode=this[dv](e.mode),this.uid=this.portable?null:e.uid,this.gid=this.portable?null:e.gid,this.uname=this.portable?null:e.uname,this.gname=this.portable?null:e.gname,this.size=e.size,this.mtime=this.noMtime?null:t.mtime||e.mtime,this.atime=this.portable?null:e.atime,this.ctime=this.portable?null:e.ctime,this.linkpath=io(e.linkpath),typeof t.onwarn=="function"&&this.on("warn",t.onwarn);let i=!1;if(!this.preservePaths){let[r,o]=WU(this.path);r&&(this.path=o,i=r)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new qU({path:this[ro](this.path),linkpath:this.type==="Link"?this[ro](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime}),i&&this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path}),this.header.encode()&&!this.noPax&&super.write(new HU({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this[ro](this.path),linkpath:this.type==="Link"?this[ro](this.linkpath):this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode()),super.write(this.header.block),e.pipe(this)}[ro](e){return BU(e,this.prefix)}[dv](e){return ZU(e,this.type==="Directory",this.portable)}write(e){let t=e.length;if(t>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=t,super.write(e)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});gv.Sync=JU;gv.Tar=sxe;var axe=n=>n.isFile()?"File":n.isDirectory()?"Directory":n.isSymbolicLink()?"SymbolicLink":"Unsupported";$U.exports=gv});var xv=m((fHe,e2)=>{"use strict";var v0=class{constructor(e,t){this.path=e||"./",this.absolute=t,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},lxe=qc(),uxe=GE(),cxe=rv(),S0=f0(),hxe=S0.Sync,dxe=S0.Tar,gxe=Ag(),XU=Buffer.alloc(1024),mv=Symbol("onStat"),fv=Symbol("ended"),oo=Symbol("queue"),$c=Symbol("current"),Rl=Symbol("process"),pv=Symbol("processing"),UU=Symbol("processJob"),so=Symbol("jobs"),p0=Symbol("jobDone"),bv=Symbol("addFSEntry"),GU=Symbol("addTarEntry"),w0=Symbol("stat"),x0=Symbol("readdir"),yv=Symbol("onreaddir"),vv=Symbol("pipe"),KU=Symbol("entry"),m0=Symbol("entryOpt"),C0=Symbol("writeEntryClass"),QU=Symbol("write"),b0=Symbol("ondrain"),wv=require("fs"),zU=require("path"),fxe=lv(),y0=Yc(),T0=fxe(class extends lxe{constructor(e){super(e);e=e||Object.create(null),this.opt=e,this.file=e.file||"",this.cwd=e.cwd||process.cwd(),this.maxReadSize=e.maxReadSize,this.preservePaths=!!e.preservePaths,this.strict=!!e.strict,this.noPax=!!e.noPax,this.prefix=y0(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[C0]=S0,typeof e.onwarn=="function"&&this.on("warn",e.onwarn),this.portable=!!e.portable,this.zip=null,e.gzip?(typeof e.gzip!="object"&&(e.gzip={}),this.portable&&(e.gzip.portable=!0),this.zip=new uxe.Gzip(e.gzip),this.zip.on("data",t=>super.write(t)),this.zip.on("end",t=>super.end()),this.zip.on("drain",t=>this[b0]()),this.on("resume",t=>this.zip.resume())):this.on("drain",this[b0]),this.noDirRecurse=!!e.noDirRecurse,this.follow=!!e.follow,this.noMtime=!!e.noMtime,this.mtime=e.mtime||null,this.filter=typeof e.filter=="function"?e.filter:t=>!0,this[oo]=new gxe,this[so]=0,this.jobs=+e.jobs||4,this[pv]=!1,this[fv]=!1}[QU](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[fv]=!0,this[Rl](),this}write(e){if(this[fv])throw new Error("write after end");return e instanceof cxe?this[GU](e):this[bv](e),this.flowing}[GU](e){let t=y0(zU.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let i=new v0(e.path,t,!1);i.entry=new dxe(e,this[m0](i)),i.entry.on("end",r=>this[p0](i)),this[so]+=1,this[oo].push(i)}this[Rl]()}[bv](e){let t=y0(zU.resolve(this.cwd,e));this[oo].push(new v0(e,t)),this[Rl]()}[w0](e){e.pending=!0,this[so]+=1;let t=this.follow?"stat":"lstat";wv[t](e.absolute,(i,r)=>{e.pending=!1,this[so]-=1,i?this.emit("error",i):this[mv](e,r)})}[mv](e,t){this.statCache.set(e.absolute,t),e.stat=t,this.filter(e.path,t)||(e.ignore=!0),this[Rl]()}[x0](e){e.pending=!0,this[so]+=1,wv.readdir(e.absolute,(t,i)=>{if(e.pending=!1,this[so]-=1,t)return this.emit("error",t);this[yv](e,i)})}[yv](e,t){this.readdirCache.set(e.absolute,t),e.readdir=t,this[Rl]()}[Rl](){if(!this[pv]){this[pv]=!0;for(let e=this[oo].head;e!==null&&this[so]<this.jobs;e=e.next)if(this[UU](e.value),e.value.ignore){let t=e.next;this[oo].removeNode(e),e.next=t}this[pv]=!1,this[fv]&&!this[oo].length&&this[so]===0&&(this.zip?this.zip.end(XU):(super.write(XU),super.end()))}}get[$c](){return this[oo]&&this[oo].head&&this[oo].head.value}[p0](e){this[oo].shift(),this[so]-=1,this[Rl]()}[UU](e){if(!e.pending){if(e.entry){e===this[$c]&&!e.piped&&this[vv](e);return}if(e.stat||(this.statCache.has(e.absolute)?this[mv](e,this.statCache.get(e.absolute)):this[w0](e)),!!e.stat&&!e.ignore&&!(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir&&(this.readdirCache.has(e.absolute)?this[yv](e,this.readdirCache.get(e.absolute)):this[x0](e),!e.readdir))){if(e.entry=this[KU](e),!e.entry){e.ignore=!0;return}e===this[$c]&&!e.piped&&this[vv](e)}}}[m0](e){return{onwarn:(t,i,r)=>this.warn(t,i,r),noPax:this.noPax,cwd:this.cwd,absolute:e.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix}}[KU](e){this[so]+=1;try{return new this[C0](e.path,this[m0](e)).on("end",()=>this[p0](e)).on("error",t=>this.emit("error",t))}catch(t){this.emit("error",t)}}[b0](){this[$c]&&this[$c].entry&&this[$c].entry.resume()}[vv](e){e.piped=!0,e.readdir&&e.readdir.forEach(r=>{let o=e.path,s=o==="./"?"":o.replace(/\/*$/,"/");this[bv](s+r)});let t=e.entry,i=this.zip;i?t.on("data",r=>{i.write(r)||t.pause()}):t.on("data",r=>{super.write(r)||t.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),VU=class extends T0{constructor(e){super(e);this[C0]=hxe}pause(){}resume(){}[w0](e){let t=this.follow?"statSync":"lstatSync";this[mv](e,wv[t](e.absolute))}[x0](e,t){this[yv](e,wv.readdirSync(e.absolute))}[vv](e){let t=e.entry,i=this.zip;e.readdir&&e.readdir.forEach(r=>{let o=e.path,s=o==="./"?"":o.replace(/\/*$/,"/");this[bv](s+r)}),i?t.on("data",r=>{i.write(r)}):t.on("data",r=>{super[QU](r)})}};T0.Sync=VU;e2.exports=T0});var eh=m(lf=>{"use strict";var pxe=qc(),mxe=require("events").EventEmitter,bn=require("fs"),E0=bn.writev;if(!E0){let n=process.binding("fs"),e=n.FSReqWrap||n.FSReqCallback;E0=(t,i,r,o)=>{let s=(l,u)=>o(l,u,i),a=new e;a.oncomplete=s,n.writeBuffers(t,i,r,a)}}var Qc=Symbol("_autoClose"),Or=Symbol("_close"),af=Symbol("_ended"),nt=Symbol("_fd"),t2=Symbol("_finished"),ma=Symbol("_flags"),k0=Symbol("_flush"),_0=Symbol("_handleChunk"),P0=Symbol("_makeBuf"),Dv=Symbol("_mode"),Cv=Symbol("_needDrain"),Kc=Symbol("_onerror"),Vc=Symbol("_onopen"),D0=Symbol("_onread"),Uc=Symbol("_onwrite"),ba=Symbol("_open"),es=Symbol("_path"),Ll=Symbol("_pos"),ao=Symbol("_queue"),Gc=Symbol("_read"),i2=Symbol("_readSize"),pa=Symbol("_reading"),Sv=Symbol("_remain"),n2=Symbol("_size"),Tv=Symbol("_write"),Xc=Symbol("_writing"),kv=Symbol("_defaultFlag"),zc=Symbol("_errored"),R0=class extends pxe{constructor(e,t){t=t||{};super(t);if(this.readable=!0,this.writable=!1,typeof e!="string")throw new TypeError("path must be a string");this[zc]=!1,this[nt]=typeof t.fd=="number"?t.fd:null,this[es]=e,this[i2]=t.readSize||16*1024*1024,this[pa]=!1,this[n2]=typeof t.size=="number"?t.size:1/0,this[Sv]=this[n2],this[Qc]=typeof t.autoClose=="boolean"?t.autoClose:!0,typeof this[nt]=="number"?this[Gc]():this[ba]()}get fd(){return this[nt]}get path(){return this[es]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[ba](){bn.open(this[es],"r",(e,t)=>this[Vc](e,t))}[Vc](e,t){e?this[Kc](e):(this[nt]=t,this.emit("open",t),this[Gc]())}[P0](){return Buffer.allocUnsafe(Math.min(this[i2],this[Sv]))}[Gc](){if(!this[pa]){this[pa]=!0;let e=this[P0]();if(e.length===0)return process.nextTick(()=>this[D0](null,0,e));bn.read(this[nt],e,0,e.length,null,(t,i,r)=>this[D0](t,i,r))}}[D0](e,t,i){this[pa]=!1,e?this[Kc](e):this[_0](t,i)&&this[Gc]()}[Or](){if(this[Qc]&&typeof this[nt]=="number"){let e=this[nt];this[nt]=null,bn.close(e,t=>t?this.emit("error",t):this.emit("close"))}}[Kc](e){this[pa]=!0,this[Or](),this.emit("error",e)}[_0](e,t){let i=!1;return this[Sv]-=e,e>0&&(i=super.write(e<t.length?t.slice(0,e):t)),(e===0||this[Sv]<=0)&&(i=!1,this[Or](),super.end()),i}emit(e,t){switch(e){case"prefinish":case"finish":break;case"drain":typeof this[nt]=="number"&&this[Gc]();break;case"error":return this[zc]?void 0:(this[zc]=!0,super.emit(e,t));default:return super.emit(e,t)}}},r2=class extends R0{[ba](){let e=!0;try{this[Vc](null,bn.openSync(this[es],"r")),e=!1}finally{e&&this[Or]()}}[Gc](){let e=!0;try{if(!this[pa]){this[pa]=!0;do{let t=this[P0](),i=t.length===0?0:bn.readSync(this[nt],t,0,t.length,null);if(!this[_0](i,t))break}while(!0);this[pa]=!1}e=!1}finally{e&&this[Or]()}}[Or](){if(this[Qc]&&typeof this[nt]=="number"){let e=this[nt];this[nt]=null,bn.closeSync(e),this.emit("close")}}},L0=class extends mxe{constructor(e,t){t=t||{};super(t);this.readable=!1,this.writable=!0,this[zc]=!1,this[Xc]=!1,this[af]=!1,this[Cv]=!1,this[ao]=[],this[es]=e,this[nt]=typeof t.fd=="number"?t.fd:null,this[Dv]=t.mode===void 0?438:t.mode,this[Ll]=typeof t.start=="number"?t.start:null,this[Qc]=typeof t.autoClose=="boolean"?t.autoClose:!0;let i=this[Ll]!==null?"r+":"w";this[kv]=t.flags===void 0,this[ma]=this[kv]?i:t.flags,this[nt]===null&&this[ba]()}emit(e,t){if(e==="error"){if(this[zc])return;this[zc]=!0}return super.emit(e,t)}get fd(){return this[nt]}get path(){return this[es]}[Kc](e){this[Or](),this[Xc]=!0,this.emit("error",e)}[ba](){bn.open(this[es],this[ma],this[Dv],(e,t)=>this[Vc](e,t))}[Vc](e,t){this[kv]&&this[ma]==="r+"&&e&&e.code==="ENOENT"?(this[ma]="w",this[ba]()):e?this[Kc](e):(this[nt]=t,this.emit("open",t),this[k0]())}end(e,t){return e&&this.write(e,t),this[af]=!0,!this[Xc]&&!this[ao].length&&typeof this[nt]=="number"&&this[Uc](null,0),this}write(e,t){return typeof e=="string"&&(e=Buffer.from(e,t)),this[af]?(this.emit("error",new Error("write() after end()")),!1):this[nt]===null||this[Xc]||this[ao].length?(this[ao].push(e),this[Cv]=!0,!1):(this[Xc]=!0,this[Tv](e),!0)}[Tv](e){bn.write(this[nt],e,0,e.length,this[Ll],(t,i)=>this[Uc](t,i))}[Uc](e,t){e?this[Kc](e):(this[Ll]!==null&&(this[Ll]+=t),this[ao].length?this[k0]():(this[Xc]=!1,this[af]&&!this[t2]?(this[t2]=!0,this[Or](),this.emit("finish")):this[Cv]&&(this[Cv]=!1,this.emit("drain"))))}[k0](){if(this[ao].length===0)this[af]&&this[Uc](null,0);else if(this[ao].length===1)this[Tv](this[ao].pop());else{let e=this[ao];this[ao]=[],E0(this[nt],e,this[Ll],(t,i)=>this[Uc](t,i))}}[Or](){if(this[Qc]&&typeof this[nt]=="number"){let e=this[nt];this[nt]=null,bn.close(e,t=>t?this.emit("error",t):this.emit("close"))}}},o2=class extends L0{[ba](){let e;if(this[kv]&&this[ma]==="r+")try{e=bn.openSync(this[es],this[ma],this[Dv])}catch(t){if(t.code==="ENOENT")return this[ma]="w",this[ba]();throw t}else e=bn.openSync(this[es],this[ma],this[Dv]);this[Vc](null,e)}[Or](){if(this[Qc]&&typeof this[nt]=="number"){let e=this[nt];this[nt]=null,bn.closeSync(e),this.emit("close")}}[Tv](e){let t=!0;try{this[Uc](null,bn.writeSync(this[nt],e,0,e.length,this[Ll])),t=!1}finally{if(t)try{this[Or]()}catch{}}}};lf.ReadStream=R0;lf.ReadStreamSync=r2;lf.WriteStream=L0;lf.WriteStreamSync=o2});var jv=m((bHe,d2)=>{"use strict";var bxe=lv(),yxe=Zc(),vxe=require("events"),wxe=Ag(),xxe=1024*1024,Cxe=rv(),s2=av(),Sxe=GE(),I0=Buffer.from([31,139]),sr=Symbol("state"),Il=Symbol("writeEntry"),ts=Symbol("readEntry"),j0=Symbol("nextEntry"),a2=Symbol("processEntry"),ar=Symbol("extendedHeader"),uf=Symbol("globalExtendedHeader"),ya=Symbol("meta"),l2=Symbol("emitMeta"),yt=Symbol("buffer"),is=Symbol("queue"),jl=Symbol("ended"),u2=Symbol("emittedEnd"),Fl=Symbol("emit"),yn=Symbol("unzip"),Ev=Symbol("consumeChunk"),_v=Symbol("consumeChunkSub"),F0=Symbol("consumeBody"),c2=Symbol("consumeMeta"),h2=Symbol("consumeHeader"),Pv=Symbol("consuming"),O0=Symbol("bufferConcat"),M0=Symbol("maybeEnd"),cf=Symbol("writing"),va=Symbol("aborted"),Rv=Symbol("onDone"),Ol=Symbol("sawValidEntry"),Lv=Symbol("sawNullBlock"),Iv=Symbol("sawEOF"),Txe=n=>!0;d2.exports=bxe(class extends vxe{constructor(e){e=e||{};super(e);this.file=e.file||"",this[Ol]=null,this.on(Rv,t=>{(this[sr]==="begin"||this[Ol]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(Rv,e.ondone):this.on(Rv,t=>{this.emit("prefinish"),this.emit("finish"),this.emit("end"),this.emit("close")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||xxe,this.filter=typeof e.filter=="function"?e.filter:Txe,this.writable=!0,this.readable=!1,this[is]=new wxe,this[yt]=null,this[ts]=null,this[Il]=null,this[sr]="begin",this[ya]="",this[ar]=null,this[uf]=null,this[jl]=!1,this[yn]=null,this[va]=!1,this[Lv]=!1,this[Iv]=!1,typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[h2](e,t){this[Ol]===null&&(this[Ol]=!1);let i;try{i=new yxe(e,t,this[ar],this[uf])}catch(r){return this.warn("TAR_ENTRY_INVALID",r)}if(i.nullBlock)this[Lv]?(this[Iv]=!0,this[sr]==="begin"&&(this[sr]="header"),this[Fl]("eof")):(this[Lv]=!0,this[Fl]("nullBlock"));else if(this[Lv]=!1,!i.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:i});else if(!i.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:i});else{let r=i.type;if(/^(Symbolic)?Link$/.test(r)&&!i.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:i});else if(!/^(Symbolic)?Link$/.test(r)&&i.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:i});else{let o=this[Il]=new Cxe(i,this[ar],this[uf]);if(!this[Ol])if(o.remain){let s=()=>{o.invalid||(this[Ol]=!0)};o.on("end",s)}else this[Ol]=!0;o.meta?o.size>this.maxMetaEntrySize?(o.ignore=!0,this[Fl]("ignoredEntry",o),this[sr]="ignore",o.resume()):o.size>0&&(this[ya]="",o.on("data",s=>this[ya]+=s),this[sr]="meta"):(this[ar]=null,o.ignore=o.ignore||!this.filter(o.path,o),o.ignore?(this[Fl]("ignoredEntry",o),this[sr]=o.remain?"ignore":"header",o.resume()):(o.remain?this[sr]="body":(this[sr]="header",o.end()),this[ts]?this[is].push(o):(this[is].push(o),this[j0]())))}}}[a2](e){let t=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[ts]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",i=>this[j0]()),t=!1)):(this[ts]=null,t=!1),t}[j0](){do;while(this[a2](this[is].shift()));if(!this[is].length){let e=this[ts];!e||e.flowing||e.size===e.remain?this[cf]||this.emit("drain"):e.once("drain",i=>this.emit("drain"))}}[F0](e,t){let i=this[Il],r=i.blockRemain,o=r>=e.length&&t===0?e:e.slice(t,t+r);return i.write(o),i.blockRemain||(this[sr]="header",this[Il]=null,i.end()),o.length}[c2](e,t){let i=this[Il],r=this[F0](e,t);return this[Il]||this[l2](i),r}[Fl](e,t,i){!this[is].length&&!this[ts]?this.emit(e,t,i):this[is].push([e,t,i])}[l2](e){switch(this[Fl]("meta",this[ya]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[ar]=s2.parse(this[ya],this[ar],!1);break;case"GlobalExtendedHeader":this[uf]=s2.parse(this[ya],this[uf],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[ar]=this[ar]||Object.create(null),this[ar].path=this[ya].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[ar]=this[ar]||Object.create(null),this[ar].linkpath=this[ya].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e){this[va]=!0,this.emit("abort",e),this.warn("TAR_ABORT",e,{recoverable:!1})}write(e){if(this[va])return;if(this[yn]===null&&e){if(this[yt]&&(e=Buffer.concat([this[yt],e]),this[yt]=null),e.length<I0.length)return this[yt]=e,!0;for(let i=0;this[yn]===null&&i<I0.length;i++)e[i]!==I0[i]&&(this[yn]=!1);if(this[yn]===null){let i=this[jl];this[jl]=!1,this[yn]=new Sxe.Unzip,this[yn].on("data",o=>this[Ev](o)),this[yn].on("error",o=>this.abort(o)),this[yn].on("end",o=>{this[jl]=!0,this[Ev]()}),this[cf]=!0;let r=this[yn][i?"end":"write"](e);return this[cf]=!1,r}}this[cf]=!0,this[yn]?this[yn].write(e):this[Ev](e),this[cf]=!1;let t=this[is].length?!1:this[ts]?this[ts].flowing:!0;return!t&&!this[is].length&&this[ts].once("drain",i=>this.emit("drain")),t}[O0](e){e&&!this[va]&&(this[yt]=this[yt]?Buffer.concat([this[yt],e]):e)}[M0](){if(this[jl]&&!this[u2]&&!this[va]&&!this[Pv]){this[u2]=!0;let e=this[Il];if(e&&e.blockRemain){let t=this[yt]?this[yt].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${t} available)`,{entry:e}),this[yt]&&e.write(this[yt]),e.end()}this[Fl](Rv)}}[Ev](e){if(this[Pv])this[O0](e);else if(!e&&!this[yt])this[M0]();else{if(this[Pv]=!0,this[yt]){this[O0](e);let t=this[yt];this[yt]=null,this[_v](t)}else this[_v](e);for(;this[yt]&&this[yt].length>=512&&!this[va]&&!this[Iv];){let t=this[yt];this[yt]=null,this[_v](t)}this[Pv]=!1}(!this[yt]||this[jl])&&this[M0]()}[_v](e){let t=0,i=e.length;for(;t+512<=i&&!this[va]&&!this[Iv];)switch(this[sr]){case"begin":case"header":this[h2](e,t),t+=512;break;case"ignore":case"body":t+=this[F0](e,t);break;case"meta":t+=this[c2](e,t);break;default:throw new Error("invalid state: "+this[sr])}t<i&&(this[yt]?this[yt]=Buffer.concat([e.slice(t),this[yt]]):this[yt]=e.slice(t))}end(e){this[va]||(this[yn]?this[yn].end(e):(this[jl]=!0,this.write(e)))}})});var Fv=m((yHe,m2)=>{"use strict";var kxe=Hc(),f2=jv(),th=require("fs"),Dxe=eh(),g2=require("path"),A0=Jc();m2.exports=(n,e,t)=>{typeof n=="function"?(t=n,e=null,n={}):Array.isArray(n)&&(e=n,n={}),typeof e=="function"&&(t=e,e=null),e?e=Array.from(e):e=[];let i=kxe(n);if(i.sync&&typeof t=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof t=="function")throw new TypeError("callback only supported with file option");return e.length&&_xe(i,e),i.noResume||Exe(i),i.file&&i.sync?Pxe(i):i.file?Rxe(i,t):p2(i)};var Exe=n=>{let e=n.onentry;n.onentry=e?t=>{e(t),t.resume()}:t=>t.resume()},_xe=(n,e)=>{let t=new Map(e.map(o=>[A0(o),!0])),i=n.filter,r=(o,s)=>{let a=s||g2.parse(o).root||".",l=o===a?!1:t.has(o)?t.get(o):r(g2.dirname(o),a);return t.set(o,l),l};n.filter=i?(o,s)=>i(o,s)&&r(A0(o)):o=>r(A0(o))},Pxe=n=>{let e=p2(n),t=n.file,i=!0,r;try{let o=th.statSync(t),s=n.maxReadSize||16*1024*1024;if(o.size<s)e.end(th.readFileSync(t));else{let a=0,l=Buffer.allocUnsafe(s);for(r=th.openSync(t,"r");a<o.size;){let u=th.readSync(r,l,0,s,a);a+=u,e.write(l.slice(0,u))}e.end()}i=!1}finally{if(i&&r)try{th.closeSync(r)}catch{}}},Rxe=(n,e)=>{let t=new f2(n),i=n.maxReadSize||16*1024*1024,r=n.file,o=new Promise((s,a)=>{t.on("error",a),t.on("end",s),th.stat(r,(l,u)=>{if(l)a(l);else{let c=new Dxe.ReadStream(r,{readSize:i,size:u.size});c.on("error",a),c.pipe(t)}})});return e?o.then(e,e):o},p2=n=>new f2(n)});var C2=m((vHe,x2)=>{"use strict";var Lxe=Hc(),Ov=xv(),b2=eh(),y2=Fv(),v2=require("path");x2.exports=(n,e,t)=>{if(typeof e=="function"&&(t=e),Array.isArray(n)&&(e=n,n={}),!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");e=Array.from(e);let i=Lxe(n);if(i.sync&&typeof t=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof t=="function")throw new TypeError("callback only supported with file option");return i.file&&i.sync?Ixe(i,e):i.file?jxe(i,e,t):i.sync?Fxe(i,e):Oxe(i,e)};var Ixe=(n,e)=>{let t=new Ov.Sync(n),i=new b2.WriteStreamSync(n.file,{mode:n.mode||438});t.pipe(i),w2(t,e)},jxe=(n,e,t)=>{let i=new Ov(n),r=new b2.WriteStream(n.file,{mode:n.mode||438});i.pipe(r);let o=new Promise((s,a)=>{r.on("error",a),r.on("close",s),i.on("error",a)});return N0(i,e),t?o.then(t,t):o},w2=(n,e)=>{e.forEach(t=>{t.charAt(0)==="@"?y2({file:v2.resolve(n.cwd,t.substr(1)),sync:!0,noResume:!0,onentry:i=>n.add(i)}):n.add(t)}),n.end()},N0=(n,e)=>{for(;e.length;){let t=e.shift();if(t.charAt(0)==="@")return y2({file:v2.resolve(n.cwd,t.substr(1)),noResume:!0,onentry:i=>n.add(i)}).then(i=>N0(n,e));n.add(t)}n.end()},Fxe=(n,e)=>{let t=new Ov.Sync(n);return w2(t,e),t},Oxe=(n,e)=>{let t=new Ov(n);return N0(t,e),t}});var H0=m((wHe,P2)=>{"use strict";var Mxe=Hc(),S2=xv(),Hn=require("fs"),T2=eh(),k2=Fv(),D2=require("path"),E2=Zc();P2.exports=(n,e,t)=>{let i=Mxe(n);if(!i.file)throw new TypeError("file is required");if(i.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),i.sync?Axe(i,e):Hxe(i,e,t)};var Axe=(n,e)=>{let t=new S2.Sync(n),i=!0,r,o;try{try{r=Hn.openSync(n.file,"r+")}catch(l){if(l.code==="ENOENT")r=Hn.openSync(n.file,"w+");else throw l}let s=Hn.fstatSync(r),a=Buffer.alloc(512);e:for(o=0;o<s.size;o+=512){for(let c=0,h=0;c<512;c+=h){if(h=Hn.readSync(r,a,c,a.length-c,o+c),o===0&&a[0]===31&&a[1]===139)throw new Error("cannot append to compressed archives");if(!h)break e}let l=new E2(a);if(!l.cksumValid)break;let u=512*Math.ceil(l.size/512);if(o+u+512>s.size)break;o+=u,n.mtimeCache&&n.mtimeCache.set(l.path,l.mtime)}i=!1,Nxe(n,t,o,r,e)}finally{if(i)try{Hn.closeSync(r)}catch{}}},Nxe=(n,e,t,i,r)=>{let o=new T2.WriteStreamSync(n.file,{fd:i,start:t});e.pipe(o),qxe(e,r)},Hxe=(n,e,t)=>{e=Array.from(e);let i=new S2(n),r=(s,a,l)=>{let u=(f,p)=>{f?Hn.close(s,b=>l(f)):l(null,p)},c=0;if(a===0)return u(null,0);let h=0,d=Buffer.alloc(512),g=(f,p)=>{if(f)return u(f);if(h+=p,h<512&&p)return Hn.read(s,d,h,d.length-h,c+h,g);if(c===0&&d[0]===31&&d[1]===139)return u(new Error("cannot append to compressed archives"));if(h<512)return u(null,c);let b=new E2(d);if(!b.cksumValid)return u(null,c);let y=512*Math.ceil(b.size/512);if(c+y+512>a||(c+=y+512,c>=a))return u(null,c);n.mtimeCache&&n.mtimeCache.set(b.path,b.mtime),h=0,Hn.read(s,d,0,512,c,g)};Hn.read(s,d,0,512,c,g)},o=new Promise((s,a)=>{i.on("error",a);let l="r+",u=(c,h)=>{if(c&&c.code==="ENOENT"&&l==="r+")return l="w+",Hn.open(n.file,l,u);if(c)return a(c);Hn.fstat(h,(d,g)=>{if(d)return Hn.close(h,()=>a(d));r(h,g.size,(f,p)=>{if(f)return a(f);let b=new T2.WriteStream(n.file,{fd:h,start:p});i.pipe(b),b.on("error",a),b.on("close",s),_2(i,e)})})};Hn.open(n.file,l,u)});return t?o.then(t,t):o},qxe=(n,e)=>{e.forEach(t=>{t.charAt(0)==="@"?k2({file:D2.resolve(n.cwd,t.substr(1)),sync:!0,noResume:!0,onentry:i=>n.add(i)}):n.add(t)}),n.end()},_2=(n,e)=>{for(;e.length;){let t=e.shift();if(t.charAt(0)==="@")return k2({file:D2.resolve(n.cwd,t.substr(1)),noResume:!0,onentry:i=>n.add(i)}).then(i=>_2(n,e));n.add(t)}n.end()}});var L2=m((xHe,R2)=>{"use strict";var Bxe=Hc(),Yxe=H0();R2.exports=(n,e,t)=>{let i=Bxe(n);if(!i.file)throw new TypeError("file is required");if(i.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),Wxe(i),Yxe(i,e,t)};var Wxe=n=>{let e=n.filter;n.mtimeCache||(n.mtimeCache=new Map),n.filter=e?(t,i)=>e(t,i)&&!(n.mtimeCache.get(t)>i.mtime):(t,i)=>!(n.mtimeCache.get(t)>i.mtime)}});var F2=m((CHe,j2)=>{var{promisify:I2}=require("util"),wa=require("fs"),Zxe=n=>{if(!n)n={mode:511,fs:wa};else if(typeof n=="object")n=me({mode:511,fs:wa},n);else if(typeof n=="number")n={mode:n,fs:wa};else if(typeof n=="string")n={mode:parseInt(n,8),fs:wa};else throw new TypeError("invalid options argument");return n.mkdir=n.mkdir||n.fs.mkdir||wa.mkdir,n.mkdirAsync=I2(n.mkdir),n.stat=n.stat||n.fs.stat||wa.stat,n.statAsync=I2(n.stat),n.statSync=n.statSync||n.fs.statSync||wa.statSync,n.mkdirSync=n.mkdirSync||n.fs.mkdirSync||wa.mkdirSync,n};j2.exports=Zxe});var M2=m((SHe,O2)=>{var Jxe=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:$xe,parse:Xxe}=require("path"),Uxe=n=>{if(/\0/.test(n))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:n,code:"ERR_INVALID_ARG_VALUE"});if(n=$xe(n),Jxe==="win32"){let e=/[*|"<>?:]/,{root:t}=Xxe(n);if(e.test(n.substr(t.length)))throw Object.assign(new Error("Illegal characters in path."),{path:n,code:"EINVAL"})}return n};O2.exports=Uxe});var B2=m((THe,q2)=>{var{dirname:A2}=require("path"),N2=(n,e,t=void 0)=>t===e?Promise.resolve():n.statAsync(e).then(i=>i.isDirectory()?t:void 0,i=>i.code==="ENOENT"?N2(n,A2(e),e):void 0),H2=(n,e,t=void 0)=>{if(t!==e)try{return n.statSync(e).isDirectory()?t:void 0}catch(i){return i.code==="ENOENT"?H2(n,A2(e),e):void 0}};q2.exports={findMade:N2,findMadeSync:H2}});var Y0=m((kHe,W2)=>{var{dirname:Y2}=require("path"),q0=(n,e,t)=>{e.recursive=!1;let i=Y2(n);return i===n?e.mkdirAsync(n,e).catch(r=>{if(r.code!=="EISDIR")throw r}):e.mkdirAsync(n,e).then(()=>t||n,r=>{if(r.code==="ENOENT")return q0(i,e).then(o=>q0(n,e,o));if(r.code!=="EEXIST"&&r.code!=="EROFS")throw r;return e.statAsync(n).then(o=>{if(o.isDirectory())return t;throw r},()=>{throw r})})},B0=(n,e,t)=>{let i=Y2(n);if(e.recursive=!1,i===n)try{return e.mkdirSync(n,e)}catch(r){if(r.code!=="EISDIR")throw r;return}try{return e.mkdirSync(n,e),t||n}catch(r){if(r.code==="ENOENT")return B0(n,e,B0(i,e,t));if(r.code!=="EEXIST"&&r.code!=="EROFS")throw r;try{if(!e.statSync(n).isDirectory())throw r}catch{throw r}}};W2.exports={mkdirpManual:q0,mkdirpManualSync:B0}});var $2=m((DHe,J2)=>{var{dirname:Z2}=require("path"),{findMade:Gxe,findMadeSync:Kxe}=B2(),{mkdirpManual:zxe,mkdirpManualSync:Qxe}=Y0(),Vxe=(n,e)=>(e.recursive=!0,Z2(n)===n?e.mkdirAsync(n,e):Gxe(e,n).then(i=>e.mkdirAsync(n,e).then(()=>i).catch(r=>{if(r.code==="ENOENT")return zxe(n,e);throw r}))),eCe=(n,e)=>{if(e.recursive=!0,Z2(n)===n)return e.mkdirSync(n,e);let i=Kxe(e,n);try{return e.mkdirSync(n,e),i}catch(r){if(r.code==="ENOENT")return Qxe(n,e);throw r}};J2.exports={mkdirpNative:Vxe,mkdirpNativeSync:eCe}});var K2=m((EHe,G2)=>{var X2=require("fs"),tCe=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,W0=tCe.replace(/^v/,"").split("."),U2=+W0[0]>10||+W0[0]==10&&+W0[1]>=12,iCe=U2?n=>n.mkdir===X2.mkdir:()=>!1,nCe=U2?n=>n.mkdirSync===X2.mkdirSync:()=>!1;G2.exports={useNative:iCe,useNativeSync:nCe}});var iG=m((_He,tG)=>{var ih=F2(),nh=M2(),{mkdirpNative:z2,mkdirpNativeSync:Q2}=$2(),{mkdirpManual:V2,mkdirpManualSync:eG}=Y0(),{useNative:rCe,useNativeSync:oCe}=K2(),rh=(n,e)=>(n=nh(n),e=ih(e),rCe(e)?z2(n,e):V2(n,e)),sCe=(n,e)=>(n=nh(n),e=ih(e),oCe(e)?Q2(n,e):eG(n,e));rh.sync=sCe;rh.native=(n,e)=>z2(nh(n),ih(e));rh.manual=(n,e)=>V2(nh(n),ih(e));rh.nativeSync=(n,e)=>Q2(nh(n),ih(e));rh.manualSync=(n,e)=>eG(nh(n),ih(e));tG.exports=rh});var uG=m((PHe,lG)=>{"use strict";var lr=require("fs"),Ml=require("path"),aCe=lr.lchown?"lchown":"chown",lCe=lr.lchownSync?"lchownSync":"chownSync",rG=lr.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),nG=(n,e,t)=>{try{return lr[lCe](n,e,t)}catch(i){if(i.code!=="ENOENT")throw i}},uCe=(n,e,t)=>{try{return lr.chownSync(n,e,t)}catch(i){if(i.code!=="ENOENT")throw i}},cCe=rG?(n,e,t,i)=>r=>{!r||r.code!=="EISDIR"?i(r):lr.chown(n,e,t,i)}:(n,e,t,i)=>i,Z0=rG?(n,e,t)=>{try{return nG(n,e,t)}catch(i){if(i.code!=="EISDIR")throw i;uCe(n,e,t)}}:(n,e,t)=>nG(n,e,t),hCe=process.version,oG=(n,e,t)=>lr.readdir(n,e,t),dCe=(n,e)=>lr.readdirSync(n,e);/^v4\./.test(hCe)&&(oG=(n,e,t)=>lr.readdir(n,t));var Mv=(n,e,t,i)=>{lr[aCe](n,e,t,cCe(n,e,t,r=>{i(r&&r.code!=="ENOENT"?r:null)}))},sG=(n,e,t,i,r)=>{if(typeof e=="string")return lr.lstat(Ml.resolve(n,e),(o,s)=>{if(o)return r(o.code!=="ENOENT"?o:null);s.name=e,sG(n,s,t,i,r)});if(e.isDirectory())J0(Ml.resolve(n,e.name),t,i,o=>{if(o)return r(o);let s=Ml.resolve(n,e.name);Mv(s,t,i,r)});else{let o=Ml.resolve(n,e.name);Mv(o,t,i,r)}},J0=(n,e,t,i)=>{oG(n,{withFileTypes:!0},(r,o)=>{if(r){if(r.code==="ENOENT")return i();if(r.code!=="ENOTDIR"&&r.code!=="ENOTSUP")return i(r)}if(r||!o.length)return Mv(n,e,t,i);let s=o.length,a=null,l=u=>{if(!a){if(u)return i(a=u);if(--s===0)return Mv(n,e,t,i)}};o.forEach(u=>sG(n,u,e,t,l))})},gCe=(n,e,t,i)=>{if(typeof e=="string")try{let r=lr.lstatSync(Ml.resolve(n,e));r.name=e,e=r}catch(r){if(r.code==="ENOENT")return;throw r}e.isDirectory()&&aG(Ml.resolve(n,e.name),t,i),Z0(Ml.resolve(n,e.name),t,i)},aG=(n,e,t)=>{let i;try{i=dCe(n,{withFileTypes:!0})}catch(r){if(r.code==="ENOENT")return;if(r.code==="ENOTDIR"||r.code==="ENOTSUP")return Z0(n,e,t);throw r}return i&&i.length&&i.forEach(r=>gCe(n,r,e,t)),Z0(n,e,t)};lG.exports=J0;J0.sync=aG});var gG=m((RHe,U0)=>{"use strict";var cG=iG(),ur=require("fs"),Av=require("path"),hG=uG(),Mr=Yc(),$0=class extends Error{constructor(e,t){super("Cannot extract through symbolic link");this.path=t,this.symlink=e}get name(){return"SylinkError"}},X0=class extends Error{constructor(e,t){super(t+": Cannot cd into '"+e+"'");this.path=e,this.code=t}get name(){return"CwdError"}},Nv=(n,e)=>n.get(Mr(e)),hf=(n,e,t)=>n.set(Mr(e),t),fCe=(n,e)=>{ur.stat(n,(t,i)=>{(t||!i.isDirectory())&&(t=new X0(n,t&&t.code||"ENOTDIR")),e(t)})};U0.exports=(n,e,t)=>{n=Mr(n);let i=e.umask,r=e.mode|448,o=(r&i)!==0,s=e.uid,a=e.gid,l=typeof s=="number"&&typeof a=="number"&&(s!==e.processUid||a!==e.processGid),u=e.preserve,c=e.unlink,h=e.cache,d=Mr(e.cwd),g=(b,y)=>{b?t(b):(hf(h,n,!0),y&&l?hG(y,s,a,w=>g(w)):o?ur.chmod(n,r,t):t())};if(h&&Nv(h,n)===!0)return g();if(n===d)return fCe(n,g);if(u)return cG(n,{mode:r}).then(b=>g(null,b),g);let p=Mr(Av.relative(d,n)).split("/");Hv(d,p,r,h,c,d,null,g)};var Hv=(n,e,t,i,r,o,s,a)=>{if(!e.length)return a(null,s);let l=e.shift(),u=Mr(Av.resolve(n+"/"+l));if(Nv(i,u))return Hv(u,e,t,i,r,o,s,a);ur.mkdir(u,t,dG(u,e,t,i,r,o,s,a))},dG=(n,e,t,i,r,o,s,a)=>l=>{l?ur.lstat(n,(u,c)=>{if(u)u.path=u.path&&Mr(u.path),a(u);else if(c.isDirectory())Hv(n,e,t,i,r,o,s,a);else if(r)ur.unlink(n,h=>{if(h)return a(h);ur.mkdir(n,t,dG(n,e,t,i,r,o,s,a))});else{if(c.isSymbolicLink())return a(new $0(n,n+"/"+e.join("/")));a(l)}}):(s=s||n,Hv(n,e,t,i,r,o,s,a))},pCe=n=>{let e=!1,t="ENOTDIR";try{e=ur.statSync(n).isDirectory()}catch(i){t=i.code}finally{if(!e)throw new X0(n,t)}};U0.exports.sync=(n,e)=>{n=Mr(n);let t=e.umask,i=e.mode|448,r=(i&t)!==0,o=e.uid,s=e.gid,a=typeof o=="number"&&typeof s=="number"&&(o!==e.processUid||s!==e.processGid),l=e.preserve,u=e.unlink,c=e.cache,h=Mr(e.cwd),d=b=>{hf(c,n,!0),b&&a&&hG.sync(b,o,s),r&&ur.chmodSync(n,i)};if(c&&Nv(c,n)===!0)return d();if(n===h)return pCe(h),d();if(l)return d(cG.sync(n,i));let f=Mr(Av.relative(h,n)).split("/"),p=null;for(let b=f.shift(),y=h;b&&(y+="/"+b);b=f.shift())if(y=Mr(Av.resolve(y)),!Nv(c,y))try{ur.mkdirSync(y,i),p=p||y,hf(c,y,!0)}catch{let x=ur.lstatSync(y);if(x.isDirectory()){hf(c,y,!0);continue}else if(u){ur.unlinkSync(y),ur.mkdirSync(y,i),p=p||y,hf(c,y,!0);continue}else if(x.isSymbolicLink())return new $0(y,y+"/"+f.join("/"))}return d(p)}});var K0=m((LHe,fG)=>{var G0=Object.create(null),{hasOwnProperty:mCe}=Object.prototype;fG.exports=n=>(mCe.call(G0,n)||(G0[n]=n.normalize("NFKD")),G0[n])});var yG=m((IHe,bG)=>{var pG=require("assert"),bCe=K0(),yCe=Jc(),{join:mG}=require("path"),vCe=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,wCe=vCe==="win32";bG.exports=()=>{let n=new Map,e=new Map,t=u=>u.split("/").slice(0,-1).reduce((h,d)=>(h.length&&(d=mG(h[h.length-1],d)),h.push(d||"/"),h),[]),i=new Set,r=u=>{let c=e.get(u);if(!c)throw new Error("function does not have any path reservations");return{paths:c.paths.map(h=>n.get(h)),dirs:[...c.dirs].map(h=>n.get(h))}},o=u=>{let{paths:c,dirs:h}=r(u);return c.every(d=>d[0]===u)&&h.every(d=>d[0]instanceof Set&&d[0].has(u))},s=u=>i.has(u)||!o(u)?!1:(i.add(u),u(()=>a(u)),!0),a=u=>{if(!i.has(u))return!1;let{paths:c,dirs:h}=e.get(u),d=new Set;return c.forEach(g=>{let f=n.get(g);pG.equal(f[0],u),f.length===1?n.delete(g):(f.shift(),typeof f[0]=="function"?d.add(f[0]):f[0].forEach(p=>d.add(p)))}),h.forEach(g=>{let f=n.get(g);pG(f[0]instanceof Set),f[0].size===1&&f.length===1?n.delete(g):f[0].size===1?(f.shift(),d.add(f[0])):f[0].delete(u)}),i.delete(u),d.forEach(g=>s(g)),!0};return{check:o,reserve:(u,c)=>{u=wCe?["win32 parallelization disabled"]:u.map(d=>bCe(yCe(mG(d))).toLowerCase());let h=new Set(u.map(d=>t(d)).reduce((d,g)=>d.concat(g)));return e.set(c,{dirs:h,paths:u}),u.forEach(d=>{let g=n.get(d);g?g.push(c):n.set(d,[c])}),h.forEach(d=>{let g=n.get(d);g?g[g.length-1]instanceof Set?g[g.length-1].add(c):g.push(new Set([c])):n.set(d,[new Set([c])])}),s(c)}}}});var xG=m((jHe,wG)=>{var xCe=process.env.__FAKE_PLATFORM__||process.platform,CCe=xCe==="win32",SCe=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:TCe,O_TRUNC:kCe,O_WRONLY:DCe,UV_FS_O_FILEMAP:vG=0}=SCe.constants,ECe=CCe&&!!vG,_Ce=512*1024,PCe=vG|kCe|TCe|DCe;wG.exports=ECe?n=>n<_Ce?PCe:"w":()=>"w"});var r_=m((FHe,MG)=>{"use strict";var RCe=require("assert"),LCe=jv(),qe=require("fs"),ICe=eh(),ns=require("path"),IG=gG(),CG=r0(),jCe=yG(),FCe=o0(),qn=Yc(),OCe=Jc(),MCe=K0(),SG=Symbol("onEntry"),V0=Symbol("checkFs"),TG=Symbol("checkFs2"),Yv=Symbol("pruneCache"),e_=Symbol("isReusable"),cr=Symbol("makeFs"),t_=Symbol("file"),i_=Symbol("directory"),Wv=Symbol("link"),kG=Symbol("symlink"),DG=Symbol("hardlink"),EG=Symbol("unsupported"),_G=Symbol("checkPath"),xa=Symbol("mkdir"),Fi=Symbol("onError"),qv=Symbol("pending"),PG=Symbol("pend"),oh=Symbol("unpend"),z0=Symbol("ended"),Q0=Symbol("maybeClose"),n_=Symbol("skip"),df=Symbol("doChown"),gf=Symbol("uid"),ff=Symbol("gid"),pf=Symbol("checkedCwd"),jG=require("crypto"),FG=xG(),ACe=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,mf=ACe==="win32",NCe=(n,e)=>{if(!mf)return qe.unlink(n,e);let t=n+".DELETE."+jG.randomBytes(16).toString("hex");qe.rename(n,t,i=>{if(i)return e(i);qe.unlink(t,e)})},HCe=n=>{if(!mf)return qe.unlinkSync(n);let e=n+".DELETE."+jG.randomBytes(16).toString("hex");qe.renameSync(n,e),qe.unlinkSync(e)},RG=(n,e,t)=>n===n>>>0?n:e===e>>>0?e:t,LG=n=>MCe(OCe(qn(n))).toLowerCase(),qCe=(n,e)=>{e=LG(e);for(let t of n.keys()){let i=LG(t);(i===e||i.indexOf(e+"/")===0)&&n.delete(t)}},BCe=n=>{for(let e of n.keys())n.delete(e)},Zv=class extends LCe{constructor(e){e||(e={}),e.ondone=t=>{this[z0]=!0,this[Q0]()};super(e);if(this[pf]=!1,this.reservations=jCe(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[qv]=0,this[z0]=!1,this.dirCache=e.dirCache||new Map,typeof e.uid=="number"||typeof e.gid=="number"){if(typeof e.uid!="number"||typeof e.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(e.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=e.uid,this.gid=e.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;e.preserveOwner===void 0&&typeof e.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!e.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null,this.forceChown=e.forceChown===!0,this.win32=!!e.win32||mf,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=qn(ns.resolve(e.cwd||process.cwd())),this.strip=+e.strip||0,this.processUmask=e.noChmod?0:process.umask(),this.umask=typeof e.umask=="number"?e.umask:this.processUmask,this.dmode=e.dmode||511&~this.umask,this.fmode=e.fmode||438&~this.umask,this.on("entry",t=>this[SG](t))}warn(e,t,i={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(i.recoverable=!1),super.warn(e,t,i)}[Q0](){this[z0]&&this[qv]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"),this.emit("close"))}[_G](e){if(this.strip){let t=qn(e.path).split("/");if(t.length<this.strip)return!1;if(e.path=t.slice(this.strip).join("/"),e.type==="Link"){let i=qn(e.linkpath).split("/");if(i.length>=this.strip)e.linkpath=i.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let t=qn(e.path),i=t.split("/");if(i.includes("..")||mf&&/^[a-z]:\.\.$/i.test(i[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:t}),!1;let[r,o]=FCe(t);r&&(e.path=o,this.warn("TAR_ENTRY_INFO",`stripping ${r} from absolute path`,{entry:e,path:t}))}if(ns.isAbsolute(e.path)?e.absolute=qn(ns.resolve(e.path)):e.absolute=qn(ns.resolve(this.cwd,e.path)),!this.preservePaths&&e.absolute.indexOf(this.cwd+"/")!==0&&e.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:e,path:qn(e.path),resolvedPath:e.absolute,cwd:this.cwd}),!1;if(e.absolute===this.cwd&&e.type!=="Directory"&&e.type!=="GNUDumpDir")return!1;if(this.win32){let{root:t}=ns.win32.parse(e.absolute);e.absolute=t+CG.encode(e.absolute.substr(t.length));let{root:i}=ns.win32.parse(e.path);e.path=i+CG.encode(e.path.substr(i.length))}return!0}[SG](e){if(!this[_G](e))return e.resume();switch(RCe.equal(typeof e.absolute,"string"),e.type){case"Directory":case"GNUDumpDir":e.mode&&(e.mode=e.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[V0](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[EG](e)}}[Fi](e,t){e.name==="CwdError"?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:t}),this[oh](),t.resume())}[xa](e,t,i){IG(qn(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:t,noChmod:this.noChmod},i)}[df](e){return this.forceChown||this.preserveOwner&&(typeof e.uid=="number"&&e.uid!==this.processUid||typeof e.gid=="number"&&e.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[gf](e){return RG(this.uid,e.uid,this.processUid)}[ff](e){return RG(this.gid,e.gid,this.processGid)}[t_](e,t){let i=e.mode&4095||this.fmode,r=new ICe.WriteStream(e.absolute,{flags:FG(e.size),mode:i,autoClose:!1});r.on("error",l=>{r.fd&&qe.close(r.fd,()=>{}),r.write=()=>!0,this[Fi](l,e),t()});let o=1,s=l=>{if(l){r.fd&&qe.close(r.fd,()=>{}),this[Fi](l,e),t();return}--o===0&&qe.close(r.fd,u=>{u?this[Fi](u,e):this[oh](),t()})};r.on("finish",l=>{let u=e.absolute,c=r.fd;if(e.mtime&&!this.noMtime){o++;let h=e.atime||new Date,d=e.mtime;qe.futimes(c,h,d,g=>g?qe.utimes(u,h,d,f=>s(f&&g)):s())}if(this[df](e)){o++;let h=this[gf](e),d=this[ff](e);qe.fchown(c,h,d,g=>g?qe.chown(u,h,d,f=>s(f&&g)):s())}s()});let a=this.transform&&this.transform(e)||e;a!==e&&(a.on("error",l=>{this[Fi](l,e),t()}),e.pipe(a)),a.pipe(r)}[i_](e,t){let i=e.mode&4095||this.dmode;this[xa](e.absolute,i,r=>{if(r){this[Fi](r,e),t();return}let o=1,s=a=>{--o===0&&(t(),this[oh](),e.resume())};e.mtime&&!this.noMtime&&(o++,qe.utimes(e.absolute,e.atime||new Date,e.mtime,s)),this[df](e)&&(o++,qe.chown(e.absolute,this[gf](e),this[ff](e),s)),s()})}[EG](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[kG](e,t){this[Wv](e,e.linkpath,"symlink",t)}[DG](e,t){let i=qn(ns.resolve(this.cwd,e.linkpath));this[Wv](e,i,"link",t)}[PG](){this[qv]++}[oh](){this[qv]--,this[Q0]()}[n_](e){this[oh](),e.resume()}[e_](e,t){return e.type==="File"&&!this.unlink&&t.isFile()&&t.nlink<=1&&!mf}[V0](e){this[PG]();let t=[e.path];e.linkpath&&t.push(e.linkpath),this.reservations.reserve(t,i=>this[TG](e,i))}[Yv](e){e.type==="SymbolicLink"?BCe(this.dirCache):e.type!=="Directory"&&qCe(this.dirCache,e.absolute)}[TG](e,t){this[Yv](e);let i=a=>{this[Yv](e),t(a)},r=()=>{this[xa](this.cwd,this.dmode,a=>{if(a){this[Fi](a,e),i();return}this[pf]=!0,o()})},o=()=>{if(e.absolute!==this.cwd){let a=qn(ns.dirname(e.absolute));if(a!==this.cwd)return this[xa](a,this.dmode,l=>{if(l){this[Fi](l,e),i();return}s()})}s()},s=()=>{qe.lstat(e.absolute,(a,l)=>{if(l&&(this.keep||this.newer&&l.mtime>e.mtime)){this[n_](e),i();return}if(a||this[e_](e,l))return this[cr](null,e,i);if(l.isDirectory()){if(e.type==="Directory"){let u=!this.noChmod&&e.mode&&(l.mode&4095)!==e.mode,c=h=>this[cr](h,e,i);return u?qe.chmod(e.absolute,e.mode,c):c()}if(e.absolute!==this.cwd)return qe.rmdir(e.absolute,u=>this[cr](u,e,i))}if(e.absolute===this.cwd)return this[cr](null,e,i);NCe(e.absolute,u=>this[cr](u,e,i))})};this[pf]?o():r()}[cr](e,t,i){if(e){this[Fi](e,t),i();return}switch(t.type){case"File":case"OldFile":case"ContiguousFile":return this[t_](t,i);case"Link":return this[DG](t,i);case"SymbolicLink":return this[kG](t,i);case"Directory":case"GNUDumpDir":return this[i_](t,i)}}[Wv](e,t,i,r){qe[i](t,e.absolute,o=>{o?this[Fi](o,e):(this[oh](),e.resume()),r()})}},Bv=n=>{try{return[null,n()]}catch(e){return[e,null]}},OG=class extends Zv{[cr](e,t){return super[cr](e,t,()=>{})}[V0](e){if(this[Yv](e),!this[pf]){let o=this[xa](this.cwd,this.dmode);if(o)return this[Fi](o,e);this[pf]=!0}if(e.absolute!==this.cwd){let o=qn(ns.dirname(e.absolute));if(o!==this.cwd){let s=this[xa](o,this.dmode);if(s)return this[Fi](s,e)}}let[t,i]=Bv(()=>qe.lstatSync(e.absolute));if(i&&(this.keep||this.newer&&i.mtime>e.mtime))return this[n_](e);if(t||this[e_](e,i))return this[cr](null,e);if(i.isDirectory()){if(e.type==="Directory"){let s=!this.noChmod&&e.mode&&(i.mode&4095)!==e.mode,[a]=s?Bv(()=>{qe.chmodSync(e.absolute,e.mode)}):[];return this[cr](a,e)}let[o]=Bv(()=>qe.rmdirSync(e.absolute));this[cr](o,e)}let[r]=e.absolute===this.cwd?[]:Bv(()=>HCe(e.absolute));this[cr](r,e)}[t_](e,t){let i=e.mode&4095||this.fmode,r=a=>{let l;try{qe.closeSync(o)}catch(u){l=u}(a||l)&&this[Fi](a||l,e),t()},o;try{o=qe.openSync(e.absolute,FG(e.size),i)}catch(a){return r(a)}let s=this.transform&&this.transform(e)||e;s!==e&&(s.on("error",a=>this[Fi](a,e)),e.pipe(s)),s.on("data",a=>{try{qe.writeSync(o,a,0,a.length)}catch(l){r(l)}}),s.on("end",a=>{let l=null;if(e.mtime&&!this.noMtime){let u=e.atime||new Date,c=e.mtime;try{qe.futimesSync(o,u,c)}catch(h){try{qe.utimesSync(e.absolute,u,c)}catch{l=h}}}if(this[df](e)){let u=this[gf](e),c=this[ff](e);try{qe.fchownSync(o,u,c)}catch(h){try{qe.chownSync(e.absolute,u,c)}catch{l=l||h}}}r(l)})}[i_](e,t){let i=e.mode&4095||this.dmode,r=this[xa](e.absolute,i);if(r){this[Fi](r,e),t();return}if(e.mtime&&!this.noMtime)try{qe.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch{}if(this[df](e))try{qe.chownSync(e.absolute,this[gf](e),this[ff](e))}catch{}t(),e.resume()}[xa](e,t){try{return IG.sync(qn(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:t})}catch(i){return i}}[Wv](e,t,i,r){try{qe[i+"Sync"](t,e.absolute),r(),e.resume()}catch(o){return this[Fi](o,e)}}};Zv.Sync=OG;MG.exports=Zv});var BG=m((OHe,qG)=>{"use strict";var YCe=Hc(),Jv=r_(),NG=require("fs"),HG=eh(),AG=require("path"),o_=Jc();qG.exports=(n,e,t)=>{typeof n=="function"?(t=n,e=null,n={}):Array.isArray(n)&&(e=n,n={}),typeof e=="function"&&(t=e,e=null),e?e=Array.from(e):e=[];let i=YCe(n);if(i.sync&&typeof t=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof t=="function")throw new TypeError("callback only supported with file option");return e.length&&WCe(i,e),i.file&&i.sync?ZCe(i):i.file?JCe(i,t):i.sync?$Ce(i):XCe(i)};var WCe=(n,e)=>{let t=new Map(e.map(o=>[o_(o),!0])),i=n.filter,r=(o,s)=>{let a=s||AG.parse(o).root||".",l=o===a?!1:t.has(o)?t.get(o):r(AG.dirname(o),a);return t.set(o,l),l};n.filter=i?(o,s)=>i(o,s)&&r(o_(o)):o=>r(o_(o))},ZCe=n=>{let e=new Jv.Sync(n),t=n.file,i=NG.statSync(t),r=n.maxReadSize||16*1024*1024;new HG.ReadStreamSync(t,{readSize:r,size:i.size}).pipe(e)},JCe=(n,e)=>{let t=new Jv(n),i=n.maxReadSize||16*1024*1024,r=n.file,o=new Promise((s,a)=>{t.on("error",a),t.on("close",s),NG.stat(r,(l,u)=>{if(l)a(l);else{let c=new HG.ReadStream(r,{readSize:i,size:u.size});c.on("error",a),c.pipe(t)}})});return e?o.then(e,e):o},$Ce=n=>new Jv.Sync(n),XCe=n=>new Jv(n)});var YG=m(ti=>{"use strict";ti.c=ti.create=C2();ti.r=ti.replace=H0();ti.t=ti.list=Fv();ti.u=ti.update=L2();ti.x=ti.extract=BG();ti.Pack=xv();ti.Unpack=r_();ti.Parse=jv();ti.ReadEntry=rv();ti.WriteEntry=f0();ti.Header=Zc();ti.Pax=av();ti.types=QE()});var $G=m((AHe,JG)=>{JG.exports=Oi;function Oi(n){if(!(this instanceof Oi))return new Oi(n);this.value=n}Oi.prototype.get=function(n){for(var e=this.value,t=0;t<n.length;t++){var i=n[t];if(!Object.hasOwnProperty.call(e,i)){e=void 0;break}e=e[i]}return e};Oi.prototype.set=function(n,e){for(var t=this.value,i=0;i<n.length-1;i++){var r=n[i];Object.hasOwnProperty.call(t,r)||(t[r]={}),t=t[r]}return t[n[i]]=e,e};Oi.prototype.map=function(n){return WG(this.value,n,!0)};Oi.prototype.forEach=function(n){return this.value=WG(this.value,n,!1),this.value};Oi.prototype.reduce=function(n,e){var t=arguments.length===1,i=t?this.value:e;return this.forEach(function(r){(!this.isRoot||!t)&&(i=n.call(this,i,r))}),i};Oi.prototype.deepEqual=function(n){if(arguments.length!==1)throw new Error("deepEqual requires exactly one object to compare against");var e=!0,t=n;return this.forEach(function(i){var r=function(){e=!1}.bind(this);if(!this.isRoot){if(typeof t!="object")return r();t=t[this.key]}var o=t;this.post(function(){t=o});var s=function(h){return Object.prototype.toString.call(h)};if(this.circular)Oi(n).get(this.circular.path)!==o&&r();else if(typeof o!=typeof i)r();else if(o===null||i===null||o===void 0||i===void 0)o!==i&&r();else if(o.__proto__!==i.__proto__)r();else if(o!==i){if(typeof o=="function")o instanceof RegExp?o.toString()!=i.toString()&&r():o!==i&&r();else if(typeof o=="object")if(s(i)==="[object Arguments]"||s(o)==="[object Arguments]")s(o)!==s(i)&&r();else if(o instanceof Date||i instanceof Date)(!(o instanceof Date)||!(i instanceof Date)||o.getTime()!==i.getTime())&&r();else{var a=Object.keys(o),l=Object.keys(i);if(a.length!==l.length)return r();for(var u=0;u<a.length;u++){var c=a[u];Object.hasOwnProperty.call(i,c)||r()}}}}),e};Oi.prototype.paths=function(){var n=[];return this.forEach(function(e){n.push(this.path)}),n};Oi.prototype.nodes=function(){var n=[];return this.forEach(function(e){n.push(this.node)}),n};Oi.prototype.clone=function(){var n=[],e=[];return function t(i){for(var r=0;r<n.length;r++)if(n[r]===i)return e[r];if(typeof i=="object"&&i!==null){var o=ZG(i);return n.push(i),e.push(o),Object.keys(i).forEach(function(s){o[s]=t(i[s])}),n.pop(),e.pop(),o}else return i}(this.value)};function WG(n,e,t){var i=[],r=[],o=!0;return function s(a){var l=t?ZG(a):a,u={},c={node:l,node_:a,path:[].concat(i),parent:r.slice(-1)[0],key:i.slice(-1)[0],isRoot:i.length===0,level:i.length,circular:null,update:function(f){c.isRoot||(c.parent.node[c.key]=f),c.node=f},delete:function(){delete c.parent.node[c.key]},remove:function(){Array.isArray(c.parent.node)?c.parent.node.splice(c.key,1):delete c.parent.node[c.key]},before:function(f){u.before=f},after:function(f){u.after=f},pre:function(f){u.pre=f},post:function(f){u.post=f},stop:function(){o=!1}};if(!o)return c;if(typeof l=="object"&&l!==null){c.isLeaf=Object.keys(l).length==0;for(var h=0;h<r.length;h++)if(r[h].node_===a){c.circular=r[h];break}}else c.isLeaf=!0;c.notLeaf=!c.isLeaf,c.notRoot=!c.isRoot;var d=e.call(c,c.node);if(d!==void 0&&c.update&&c.update(d),u.before&&u.before.call(c,c.node),typeof c.node=="object"&&c.node!==null&&!c.circular){r.push(c);var g=Object.keys(c.node);g.forEach(function(f,p){i.push(f),u.pre&&u.pre.call(c,c.node[f],f);var b=s(c.node[f]);t&&Object.hasOwnProperty.call(c.node,f)&&(c.node[f]=b.node),b.isLast=p==g.length-1,b.isFirst=p==0,u.post&&u.post.call(c,b),i.pop()}),r.pop()}return u.after&&u.after.call(c,c.node),c}(n).node}Object.keys(Oi.prototype).forEach(function(n){Oi[n]=function(e){var t=[].slice.call(arguments,1),i=Oi(e);return i[n].apply(i,t)}});function ZG(n){if(typeof n=="object"&&n!==null){var e;return Array.isArray(n)?e=[]:n instanceof Date?e=new Date(n):n instanceof Boolean?e=new Boolean(n):n instanceof Number?e=new Number(n):n instanceof String?e=new String(n):e=Object.create(Object.getPrototypeOf(n)),Object.keys(n).forEach(function(t){e[t]=n[t]}),e}else return n}});var UG=m((NHe,XG)=>{var UCe=$G(),GCe=require("events").EventEmitter;XG.exports=sh;function sh(n){var e=sh.saw(n,{}),t=n.call(e.handlers,e);return t!==void 0&&(e.handlers=t),e.record(),e.chain()}sh.light=function(e){var t=sh.saw(e,{}),i=e.call(t.handlers,t);return i!==void 0&&(t.handlers=i),t.chain()};sh.saw=function(n,e){var t=new GCe;return t.handlers=e,t.actions=[],t.chain=function(){var i=UCe(t.handlers).map(function(r){if(this.isRoot)return r;var o=this.path;typeof r=="function"&&this.update(function(){return t.actions.push({path:o,args:[].slice.call(arguments)}),i})});return process.nextTick(function(){t.emit("begin"),t.next()}),i},t.pop=function(){return t.actions.shift()},t.next=function(){var i=t.pop();if(!i)t.emit("end");else if(!i.trap){var r=t.handlers;i.path.forEach(function(o){r=r[o]}),r.apply(t.handlers,i.args)}},t.nest=function(i){var r=[].slice.call(arguments,1),o=!0;if(typeof i=="boolean"){var o=i;i=r.shift()}var s=sh.saw(n,{}),a=n.call(s.handlers,s);a!==void 0&&(s.handlers=a),typeof t.step<"u"&&s.record(),i.apply(s.chain(),r),o!==!1&&s.on("end",t.next)},t.record=function(){KCe(t)},["trap","down","jump"].forEach(function(i){t[i]=function(){throw new Error("To use the trap, down and jump features, please call record() first to start recording actions.")}}),t};function KCe(n){n.step=0,n.pop=function(){return n.actions[n.step++]},n.trap=function(e,t){var i=Array.isArray(e)?e:[e];n.actions.push({path:i,step:n.step,cb:t,trap:!0})},n.down=function(e){var t=(Array.isArray(e)?e:[e]).join("/"),i=n.actions.slice(n.step).map(function(o){return o.trap&&o.step<=n.step?!1:o.path.join("/")==t}).indexOf(!0);i>=0?n.step+=i:n.step=n.actions.length;var r=n.actions[n.step-1];r&&r.trap?(n.step=r.step,r.cb()):n.next()},n.jump=function(e){n.step=e,n.next()}}});var KG=m((HHe,GG)=>{GG.exports=Vi;function Vi(n){if(!(this instanceof Vi))return new Vi(n);this.buffers=n||[],this.length=this.buffers.reduce(function(e,t){return e+t.length},0)}Vi.prototype.push=function(){for(var n=0;n<arguments.length;n++)if(!Buffer.isBuffer(arguments[n]))throw new TypeError("Tried to push a non-buffer");for(var n=0;n<arguments.length;n++){var e=arguments[n];this.buffers.push(e),this.length+=e.length}return this.length};Vi.prototype.unshift=function(){for(var n=0;n<arguments.length;n++)if(!Buffer.isBuffer(arguments[n]))throw new TypeError("Tried to unshift a non-buffer");for(var n=0;n<arguments.length;n++){var e=arguments[n];this.buffers.unshift(e),this.length+=e.length}return this.length};Vi.prototype.copy=function(n,e,t,i){return this.slice(t,i).copy(n,e,0,i-t)};Vi.prototype.splice=function(n,e){var t=this.buffers,i=n>=0?n:this.length-n,r=[].slice.call(arguments,2);e===void 0?e=this.length-i:e>this.length-i&&(e=this.length-i);for(var n=0;n<r.length;n++)this.length+=r[n].length;for(var o=new Vi,s=0,a=0,l=0;l<t.length&&a+t[l].length<i;l++)a+=t[l].length;if(i-a>0){var u=i-a;if(u+e<t[l].length){o.push(t[l].slice(u,u+e));for(var c=t[l],h=new Buffer(u),n=0;n<u;n++)h[n]=c[n];for(var d=new Buffer(c.length-u-e),n=u+e;n<c.length;n++)d[n-e-u]=c[n];if(r.length>0){var g=r.slice();g.unshift(h),g.push(d),t.splice.apply(t,[l,1].concat(g)),l+=g.length,r=[]}else t.splice(l,1,h,d),l+=2}else o.push(t[l].slice(u)),t[l]=t[l].slice(0,u),l++}for(r.length>0&&(t.splice.apply(t,[l,0].concat(r)),l+=r.length);o.length<e;){var f=t[l],p=f.length,b=Math.min(p,e-o.length);b===p?(o.push(f),t.splice(l,1)):(o.push(f.slice(0,b)),t[l]=t[l].slice(b))}return this.length-=o.length,o};Vi.prototype.slice=function(n,e){var t=this.buffers;e===void 0&&(e=this.length),n===void 0&&(n=0),e>this.length&&(e=this.length);for(var i=0,r=0;r<t.length&&i+t[r].length<=n;r++)i+=t[r].length;for(var o=new Buffer(e-n),s=0,a=r;s<e-n&&a<t.length;a++){var l=t[a].length,u=s===0?n-i:0,c=s+l>=e-n?Math.min(u+(e-n)-s,l):l;t[a].copy(o,s,u,c),s+=c-u}return o};Vi.prototype.pos=function(n){if(n<0||n>=this.length)throw new Error("oob");for(var e=n,t=0,i=null;;){if(i=this.buffers[t],e<i.length)return{buf:t,offset:e};e-=i.length,t++}};Vi.prototype.get=function(e){var t=this.pos(e);return this.buffers[t.buf].get(t.offset)};Vi.prototype.set=function(e,t){var i=this.pos(e);return this.buffers[i.buf].set(i.offset,t)};Vi.prototype.indexOf=function(n,e){if(typeof n=="string")n=new Buffer(n);else if(!(n instanceof Buffer))throw new Error("Invalid type for a search string");if(!n.length)return 0;if(!this.length)return-1;var t=0,i=0,r=0,o,s=0;if(e){var a=this.pos(e);t=a.buf,i=a.offset,s=e}for(;;){for(;i>=this.buffers[t].length;)if(i=0,t++,t>=this.buffers.length)return-1;var l=this.buffers[t][i];if(l==n[r]){if(r==0&&(o={i:t,j:i,pos:s}),r++,r==n.length)return o.pos}else r!=0&&(t=o.i,i=o.j,s=o.pos,r=0);i++,s++}};Vi.prototype.toBuffer=function(){return this.slice()};Vi.prototype.toString=function(n,e,t){return this.slice(e,t).toString(n)}});var QG=m((qHe,zG)=>{zG.exports=function(n){function e(i,r){var o=t.store,s=i.split(".");s.slice(0,-1).forEach(function(l){o[l]===void 0&&(o[l]={}),o=o[l]});var a=s[s.length-1];return arguments.length==1?o[a]:o[a]=r}var t={get:function(i){return e(i)},set:function(i,r){return e(i,r)},store:n||{}};return t}});var r3=m((Al,n3)=>{var zCe=UG(),VG=require("events").EventEmitter,QCe=KG(),$v=QG(),VCe=require("stream").Stream;Al=n3.exports=function(n,e){if(Buffer.isBuffer(n))return Al.parse(n);var t=Al.stream();return n&&n.pipe?n.pipe(t):n&&(n.on(e||"data",function(i){t.write(i)}),n.on("end",function(){t.end()})),t};Al.stream=function(n){if(n)return Al.apply(null,arguments);var e=null;function t(h,d,g){e={bytes:h,skip:g,cb:function(f){e=null,d(f)}},r()}var i=null;function r(){if(!e){c&&(u=!0);return}if(typeof e=="function")e();else{var h=i+e.bytes;if(a.length>=h){var d;i==null?(d=a.splice(0,h),e.skip||(d=d.slice())):(e.skip||(d=a.slice(i,h)),i=h),e.skip?e.cb():e.cb(d)}}}function o(h){function d(){u||h.next()}var g=i3(function(f,p){return function(b){t(f,function(y){l.set(b,p(y)),d()})}});return g.tap=function(f){h.nest(f,l.store)},g.into=function(f,p){l.get(f)||l.set(f,{});var b=l;l=$v(b.get(f)),h.nest(function(){p.apply(this,arguments),this.tap(function(){l=b})},l.store)},g.flush=function(){l.store={},d()},g.loop=function(f){var p=!1;h.nest(!1,function b(){this.vars=l.store,f.call(this,function(){p=!0,d()},l.store),this.tap(function(){p?h.next():b.call(this)}.bind(this))},l.store)},g.buffer=function(f,p){typeof p=="string"&&(p=l.get(p)),t(p,function(b){l.set(f,b),d()})},g.skip=function(f){typeof f=="string"&&(f=l.get(f)),t(f,function(){d()})},g.scan=function(p,b){if(typeof b=="string")b=new Buffer(b);else if(!Buffer.isBuffer(b))throw new Error("search must be a Buffer or a string");var y=0;e=function(){var w=a.indexOf(b,i+y),x=w-i-y;w!==-1?(e=null,i!=null?(l.set(p,a.slice(i,i+y+x)),i+=y+x+b.length):(l.set(p,a.slice(0,y+x)),a.splice(0,y+x+b.length)),d(),r()):x=Math.max(a.length-b.length-i-y,0),y+=x},r()},g.peek=function(f){i=0,h.nest(function(){f.call(this,l.store),this.tap(function(){i=null})})},g}var s=zCe.light(o);s.writable=!0;var a=QCe();s.write=function(h){a.push(h),r()};var l=$v(),u=!1,c=!1;return s.end=function(){c=!0},s.pipe=VCe.prototype.pipe,Object.getOwnPropertyNames(VG.prototype).forEach(function(h){s[h]=VG.prototype[h]}),s};Al.parse=function(e){var t=i3(function(o,s){return function(a){if(i+o<=e.length){var l=e.slice(i,i+o);i+=o,r.set(a,s(l))}else r.set(a,null);return t}}),i=0,r=$v();return t.vars=r.store,t.tap=function(o){return o.call(t,r.store),t},t.into=function(o,s){r.get(o)||r.set(o,{});var a=r;return r=$v(a.get(o)),s.call(t,r.store),r=a,t},t.loop=function(o){for(var s=!1,a=function(){s=!0};s===!1;)o.call(t,a,r.store);return t},t.buffer=function(o,s){typeof s=="string"&&(s=r.get(s));var a=e.slice(i,Math.min(e.length,i+s));return i+=s,r.set(o,a),t},t.skip=function(o){return typeof o=="string"&&(o=r.get(o)),i+=o,t},t.scan=function(o,s){if(typeof s=="string")s=new Buffer(s);else if(!Buffer.isBuffer(s))throw new Error("search must be a Buffer or a string");r.set(o,null);for(var a=0;a+i<=e.length-s.length+1;a++){for(var l=0;l<s.length&&e[i+a+l]===s[l];l++);if(l===s.length)break}return r.set(o,e.slice(i,i+a)),i+=a+s.length,t},t.peek=function(o){var s=i;return o.call(t,r.store),i=s,t},t.flush=function(){return r.store={},t},t.eof=function(){return i>=e.length},t};function e3(n){for(var e=0,t=0;t<n.length;t++)e+=Math.pow(256,t)*n[t];return e}function t3(n){for(var e=0,t=0;t<n.length;t++)e+=Math.pow(256,n.length-t-1)*n[t];return e}function eSe(n){var e=t3(n);return(n[0]&128)==128&&(e-=Math.pow(256,n.length)),e}function tSe(n){var e=e3(n);return(n[n.length-1]&128)==128&&(e-=Math.pow(256,n.length)),e}function i3(n){var e={};return[1,2,4,8].forEach(function(t){var i=t*8;e["word"+i+"le"]=e["word"+i+"lu"]=n(t,e3),e["word"+i+"ls"]=n(t,tSe),e["word"+i+"be"]=e["word"+i+"bu"]=n(t,t3),e["word"+i+"bs"]=n(t,eSe)}),e.word8=e.word8u=e.word8be,e.word8s=e.word8bs,e}});var a3=m((BHe,s3)=>{var o3=require("stream").Transform,iSe=require("util");function Nl(n,e){if(!(this instanceof Nl))return new Nl;o3.call(this);var t=typeof n=="object"?n.pattern:n;this.pattern=Buffer.isBuffer(t)?t:Buffer.from(t),this.requiredLength=this.pattern.length,n.requiredExtraSize&&(this.requiredLength+=n.requiredExtraSize),this.data=new Buffer(""),this.bytesSoFar=0,this.matchFn=e}iSe.inherits(Nl,o3);Nl.prototype.checkDataChunk=function(n){var e=this.data.length>=this.requiredLength;if(!!e){var t=this.data.indexOf(this.pattern,n?1:0);if(t>=0&&t+this.requiredLength>this.data.length){if(t>0){var i=this.data.slice(0,t);this.push(i),this.bytesSoFar+=t,this.data=this.data.slice(t)}return}if(t===-1){var r=this.data.length-this.requiredLength+1,i=this.data.slice(0,r);this.push(i),this.bytesSoFar+=r,this.data=this.data.slice(r);return}if(t>0){var i=this.data.slice(0,t);this.data=this.data.slice(t),this.push(i),this.bytesSoFar+=t}var o=this.matchFn?this.matchFn(this.data,this.bytesSoFar):!0;if(o){this.data=new Buffer("");return}return!0}};Nl.prototype._transform=function(n,e,t){this.data=Buffer.concat([this.data,n]);for(var i=!0;this.checkDataChunk(!i);)i=!1;t()};Nl.prototype._flush=function(n){if(this.data.length>0)for(var e=!0;this.checkDataChunk(!e);)e=!1;this.data.length>0&&(this.push(this.data),this.data=null),n()};s3.exports=Nl});var u3=m((YHe,l3)=>{"use strict";var s_=require("stream"),nSe=require("util").inherits;function bf(){if(!(this instanceof bf))return new bf;s_.PassThrough.call(this),this.path=null,this.type=null,this.isDirectory=!1}nSe(bf,s_.PassThrough);bf.prototype.autodrain=function(){return this.pipe(new s_.Transform({transform:function(n,e,t){t()}}))};l3.exports=bf});var l_=m((WHe,h3)=>{"use strict";var Ca=r3(),a_=require("stream"),rSe=require("util"),oSe=require("zlib"),sSe=a3(),c3=u3(),de={STREAM_START:0,START:1,LOCAL_FILE_HEADER:2,LOCAL_FILE_HEADER_SUFFIX:3,FILE_DATA:4,FILE_DATA_END:5,DATA_DESCRIPTOR:6,CENTRAL_DIRECTORY_FILE_HEADER:7,CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX:8,CDIR64_END:9,CDIR64_END_DATA_SECTOR:10,CDIR64_LOCATOR:11,CENTRAL_DIRECTORY_END:12,CENTRAL_DIRECTORY_END_COMMENT:13,TRAILING_JUNK:14,ERROR:99},yf=4294967296,aSe=67324752,lSe=134695760,uSe=33639248,cSe=101075792,hSe=117853008,dSe=101010256;function wi(n){if(!(this instanceof wi))return new wi(n);a_.Transform.call(this),this.options=n||{},this.data=new Buffer(""),this.state=de.STREAM_START,this.skippedBytes=0,this.parsedEntity=null,this.outStreamInfo={}}rSe.inherits(wi,a_.Transform);wi.prototype.processDataChunk=function(n){var e;switch(this.state){case de.STREAM_START:case de.START:e=4;break;case de.LOCAL_FILE_HEADER:e=26;break;case de.LOCAL_FILE_HEADER_SUFFIX:e=this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength;break;case de.DATA_DESCRIPTOR:e=12;break;case de.CENTRAL_DIRECTORY_FILE_HEADER:e=42;break;case de.CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX:e=this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength+this.parsedEntity.fileCommentLength;break;case de.CDIR64_END:e=52;break;case de.CDIR64_END_DATA_SECTOR:e=this.parsedEntity.centralDirectoryRecordSize-44;break;case de.CDIR64_LOCATOR:e=16;break;case de.CENTRAL_DIRECTORY_END:e=18;break;case de.CENTRAL_DIRECTORY_END_COMMENT:e=this.parsedEntity.commentLength;break;case de.FILE_DATA:return 0;case de.FILE_DATA_END:return 0;case de.TRAILING_JUNK:return this.options.debug&&console.log("found",n.length,"bytes of TRAILING_JUNK"),n.length;default:return n.length}var t=n.length;if(t<e)return 0;switch(this.state){case de.STREAM_START:case de.START:var i=n.readUInt32LE(0);switch(i){case aSe:this.state=de.LOCAL_FILE_HEADER;break;case uSe:this.state=de.CENTRAL_DIRECTORY_FILE_HEADER;break;case cSe:this.state=de.CDIR64_END;break;case hSe:this.state=de.CDIR64_LOCATOR;break;case dSe:this.state=de.CENTRAL_DIRECTORY_END;break;default:var r=this.state===de.STREAM_START;if(!r&&(i&65535)!==19280&&this.skippedBytes<26){for(var o=i,s=4,a=1;a<4&&o!==0;a++)if(o=o>>>8,(o&255)===80){s=a;break}return this.skippedBytes+=s,this.options.debug&&console.log("Skipped",this.skippedBytes,"bytes"),s}this.state=de.ERROR;var l=r?"Not a valid zip file":"Invalid signature in zip file";if(this.options.debug){var u=n.readUInt32LE(0),c;try{c=n.slice(0,4).toString()}catch{}console.log("Unexpected signature in zip file: 0x"+u.toString(16),'"'+c+'", skipped',this.skippedBytes,"bytes")}return this.emit("error",new Error(l)),n.length}return this.skippedBytes=0,e;case de.LOCAL_FILE_HEADER:return this.parsedEntity=this._readFile(n),this.state=de.LOCAL_FILE_HEADER_SUFFIX,e;case de.LOCAL_FILE_HEADER_SUFFIX:var h=new c3,d=(this.parsedEntity.flags&2048)!==0;h.path=this._decodeString(n.slice(0,this.parsedEntity.fileNameLength),d);var f=n.slice(this.parsedEntity.fileNameLength,this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength),p=this._readExtraFields(f);if(p&&p.parsed&&(p.parsed.path&&!d&&(h.path=p.parsed.path),Number.isFinite(p.parsed.uncompressedSize)&&this.parsedEntity.uncompressedSize===yf-1&&(this.parsedEntity.uncompressedSize=p.parsed.uncompressedSize),Number.isFinite(p.parsed.compressedSize)&&this.parsedEntity.compressedSize===yf-1&&(this.parsedEntity.compressedSize=p.parsed.compressedSize)),this.parsedEntity.extra=p.parsed||{},this.options.debug){let k=Object.assign({},this.parsedEntity,{path:h.path,flags:"0x"+this.parsedEntity.flags.toString(16),extraFields:p&&p.debug});console.log("decoded LOCAL_FILE_HEADER:",JSON.stringify(k,null,2))}return this._prepareOutStream(this.parsedEntity,h),this.emit("entry",h),this.state=de.FILE_DATA,e;case de.CENTRAL_DIRECTORY_FILE_HEADER:return this.parsedEntity=this._readCentralDirectoryEntry(n),this.state=de.CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX,e;case de.CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX:var d=(this.parsedEntity.flags&2048)!==0,g=this._decodeString(n.slice(0,this.parsedEntity.fileNameLength),d),f=n.slice(this.parsedEntity.fileNameLength,this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength),p=this._readExtraFields(f);p&&p.parsed&&p.parsed.path&&!d&&(g=p.parsed.path),this.parsedEntity.extra=p.parsed;var b=(this.parsedEntity.versionMadeBy&65280)>>8===3,y,w;if(b){y=this.parsedEntity.externalFileAttributes>>>16;var x=y>>>12;w=(x&10)===10}if(this.options.debug){let k=Object.assign({},this.parsedEntity,{path:g,flags:"0x"+this.parsedEntity.flags.toString(16),unixAttrs:y&&"0"+y.toString(8),isSymlink:w,extraFields:p.debug});console.log("decoded CENTRAL_DIRECTORY_FILE_HEADER:",JSON.stringify(k,null,2))}return this.state=de.START,e;case de.CDIR64_END:return this.parsedEntity=this._readEndOfCentralDirectory64(n),this.options.debug&&console.log("decoded CDIR64_END_RECORD:",this.parsedEntity),this.state=de.CDIR64_END_DATA_SECTOR,e;case de.CDIR64_END_DATA_SECTOR:return this.state=de.START,e;case de.CDIR64_LOCATOR:return this.state=de.START,e;case de.CENTRAL_DIRECTORY_END:return this.parsedEntity=this._readEndOfCentralDirectory(n),this.options.debug&&console.log("decoded CENTRAL_DIRECTORY_END:",this.parsedEntity),this.state=de.CENTRAL_DIRECTORY_END_COMMENT,e;case de.CENTRAL_DIRECTORY_END_COMMENT:return this.options.debug&&console.log("decoded CENTRAL_DIRECTORY_END_COMMENT:",n.slice(0,e).toString()),this.state=de.TRAILING_JUNK,e;case de.ERROR:return n.length;default:return console.log("didn't handle state #",this.state,"discarding"),n.length}};wi.prototype._prepareOutStream=function(n,e){var t=this,i=n.uncompressedSize===0&&/[\/\\]$/.test(e.path);e.path=e.path.replace(/^([/\\]*[.]+[/\\]+)*[/\\]*/,""),e.type=i?"Directory":"File",e.isDirectory=i;var r=!(n.flags&8);r&&(e.size=n.uncompressedSize);var o=n.versionsNeededToExtract<=45;if(this.outStreamInfo={stream:null,limit:r?n.compressedSize:-1,written:0},r)this.outStreamInfo.stream=new a_.PassThrough;else{var s=new Buffer(4);s.writeUInt32LE(lSe,0);var a=n.extra.zip64Mode,l=a?20:12,u={pattern:s,requiredExtraSize:l},c=new sSe(u,function(p,b){var y=t._readDataDescriptor(p,a),w=y.compressedSize===b;if(!a&&!w&&b>=yf)for(var x=b-yf;x>=0&&(w=y.compressedSize===x,!w);)x-=yf;if(!!w){t.state=de.FILE_DATA_END;var k=a?24:16;return t.data.length>0?t.data=Buffer.concat([p.slice(k),t.data]):t.data=p.slice(k),!0}});this.outStreamInfo.stream=c}var h=n.flags&1||n.flags&64;if(h||!o){var d=h?"Encrypted files are not supported!":"Zip version "+Math.floor(n.versionsNeededToExtract/10)+"."+n.versionsNeededToExtract%10+" is not supported";e.skip=!0,setImmediate(()=>{e.emit("error",new Error(d))}),this.outStreamInfo.stream.pipe(new c3().autodrain());return}var g=n.compressionMethod>0;if(g){var f=oSe.createInflateRaw();f.on("error",function(p){t.state=de.ERROR,t.emit("error",p)}),this.outStreamInfo.stream.pipe(f).pipe(e)}else this.outStreamInfo.stream.pipe(e);this._drainAllEntries&&e.autodrain()};wi.prototype._readFile=function(n){var e=Ca.parse(n).word16lu("versionsNeededToExtract").word16lu("flags").word16lu("compressionMethod").word16lu("lastModifiedTime").word16lu("lastModifiedDate").word32lu("crc32").word32lu("compressedSize").word32lu("uncompressedSize").word16lu("fileNameLength").word16lu("extraFieldLength").vars;return e};wi.prototype._readExtraFields=function(n){var e={},t={parsed:e};this.options.debug&&(t.debug=[]);for(var i=0;i<n.length;){var r=Ca.parse(n).skip(i).word16lu("extraId").word16lu("extraSize").vars;i+=4;var o=void 0;switch(r.extraId){case 1:o="Zip64 extended information extra field";var s=Ca.parse(n.slice(i,i+r.extraSize)).word64lu("uncompressedSize").word64lu("compressedSize").word64lu("offsetToLocalHeader").word32lu("diskStartNumber").vars;s.uncompressedSize!==null&&(e.uncompressedSize=s.uncompressedSize),s.compressedSize!==null&&(e.compressedSize=s.compressedSize),e.zip64Mode=!0;break;case 10:o="NTFS extra field";break;case 21589:o="extended timestamp";var a=n.readUInt8(i),w=1;r.extraSize>=w+4&&a&1&&(e.mtime=new Date(n.readUInt32LE(i+w)*1e3),w+=4),r.extraSize>=w+4&&a&2&&(e.atime=new Date(n.readUInt32LE(i+w)*1e3),w+=4),r.extraSize>=w+4&&a&4&&(e.ctime=new Date(n.readUInt32LE(i+w)*1e3));break;case 28789:o="Info-ZIP Unicode Path Extra Field";var l=n.readUInt8(i);if(l===1){var w=1,u=n.readUInt32LE(i+w);w+=4;var c=n.slice(i+w);e.path=c.toString()}break;case 13:case 22613:o=r.extraId===13?"PKWARE Unix":"Info-ZIP UNIX (type 1)";var w=0;if(r.extraSize>=8){var h=new Date(n.readUInt32LE(i+w)*1e3);w+=4;var d=new Date(n.readUInt32LE(i+w)*1e3);if(w+=4,e.atime=h,e.mtime=d,r.extraSize>=12){var g=n.readUInt16LE(i+w);w+=2;var f=n.readUInt16LE(i+w);w+=2,e.uid=g,e.gid=f}}break;case 30805:o="Info-ZIP UNIX (type 2)";var w=0;if(r.extraSize>=4){var g=n.readUInt16LE(i+w);w+=2;var f=n.readUInt16LE(i+w);w+=2,e.uid=g,e.gid=f}break;case 30837:o="Info-ZIP New Unix";var w=0,p=n.readUInt8(i);if(w+=1,p===1){var b=n.readUInt8(i+w);w+=1,b<=6&&(e.uid=n.readUIntLE(i+w,b)),w+=b;var y=n.readUInt8(i+w);w+=1,y<=6&&(e.gid=n.readUIntLE(i+w,y))}break;case 30062:o="ASi Unix";var w=0;if(r.extraSize>=14){var x=n.readUInt32LE(i+w);w+=4;var k=n.readUInt16LE(i+w);w+=2;var L=n.readUInt32LE(i+w);w+=4;var g=n.readUInt16LE(i+w);w+=2;var f=n.readUInt16LE(i+w);if(w+=2,e.mode=k,e.uid=g,e.gid=f,r.extraSize>14){var j=i+w,O=i+r.extraSize-14,W=this._decodeString(n.slice(j,O));e.symlink=W}}break}this.options.debug&&t.debug.push({extraId:"0x"+r.extraId.toString(16),description:o,data:n.slice(i,i+r.extraSize).inspect()}),i+=r.extraSize}return t};wi.prototype._readDataDescriptor=function(n,e){if(e){var t=Ca.parse(n).word32lu("dataDescriptorSignature").word32lu("crc32").word64lu("compressedSize").word64lu("uncompressedSize").vars;return t}var t=Ca.parse(n).word32lu("dataDescriptorSignature").word32lu("crc32").word32lu("compressedSize").word32lu("uncompressedSize").vars;return t};wi.prototype._readCentralDirectoryEntry=function(n){var e=Ca.parse(n).word16lu("versionMadeBy").word16lu("versionsNeededToExtract").word16lu("flags").word16lu("compressionMethod").word16lu("lastModifiedTime").word16lu("lastModifiedDate").word32lu("crc32").word32lu("compressedSize").word32lu("uncompressedSize").word16lu("fileNameLength").word16lu("extraFieldLength").word16lu("fileCommentLength").word16lu("diskNumber").word16lu("internalFileAttributes").word32lu("externalFileAttributes").word32lu("offsetToLocalFileHeader").vars;return e};wi.prototype._readEndOfCentralDirectory64=function(n){var e=Ca.parse(n).word64lu("centralDirectoryRecordSize").word16lu("versionMadeBy").word16lu("versionsNeededToExtract").word32lu("diskNumber").word32lu("diskNumberWithCentralDirectoryStart").word64lu("centralDirectoryEntries").word64lu("totalCentralDirectoryEntries").word64lu("sizeOfCentralDirectory").word64lu("offsetToStartOfCentralDirectory").vars;return e};wi.prototype._readEndOfCentralDirectory=function(n){var e=Ca.parse(n).word16lu("diskNumber").word16lu("diskStart").word16lu("centralDirectoryEntries").word16lu("totalCentralDirectoryEntries").word32lu("sizeOfCentralDirectory").word32lu("offsetToStartOfCentralDirectory").word16lu("commentLength").vars;return e};var gSe="\0\u263A\u263B\u2665\u2666\u2663\u2660\u2022\u25D8\u25CB\u25D9\u2642\u2640\u266A\u266B\u263C\u25BA\u25C4\u2195\u203C\xB6\xA7\u25AC\u21A8\u2191\u2193\u2192\u2190\u221F\u2194\u25B2\u25BC !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u2302\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xA2\xA3\xA5\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0 ";wi.prototype._decodeString=function(n,e){if(e)return n.toString("utf8");if(this.options.decodeString)return this.options.decodeString(n);let t="";for(var i=0;i<n.length;i++)t+=gSe[n[i]];return t};wi.prototype._parseOrOutput=function(n,e){for(var t;(t=this.processDataChunk(this.data))>0&&(this.data=this.data.slice(t),this.data.length!==0););if(this.state===de.FILE_DATA){if(this.outStreamInfo.limit>=0){var i=this.outStreamInfo.limit-this.outStreamInfo.written,r;i<this.data.length?(r=this.data.slice(0,i),this.data=this.data.slice(i)):(r=this.data,this.data=new Buffer("")),this.outStreamInfo.written+=r.length,this.outStreamInfo.limit===this.outStreamInfo.written?(this.state=de.START,this.outStreamInfo.stream.end(r,n,e)):this.outStreamInfo.stream.write(r,n,e)}else{var r=this.data;this.data=new Buffer(""),this.outStreamInfo.written+=r.length;var o=this.outStreamInfo.stream;o.write(r,n,()=>{if(this.state===de.FILE_DATA_END)return this.state=de.START,o.end(e);e()})}return}e()};wi.prototype.drainAll=function(){this._drainAllEntries=!0};wi.prototype._transform=function(n,e,t){var i=this;i.data.length>0?i.data=Buffer.concat([i.data,n]):i.data=n;var r=i.data.length,o=function(){if(i.data.length>0&&i.data.length<r){r=i.data.length,i._parseOrOutput(e,o);return}t()};i._parseOrOutput(e,o)};wi.prototype._flush=function(n){var e=this;if(e.data.length>0){e._parseOrOutput("buffer",function(){if(e.data.length>0)return setImmediate(function(){e._flush(n)});n()});return}if(e.state===de.FILE_DATA)return n(new Error("Stream finished in an invalid state, uncompression failed"));setImmediate(n)};h3.exports=wi});var g3=m((ZHe,d3)=>{var vf=require("stream").Transform,fSe=require("util"),pSe=l_();function Sa(n){if(!(this instanceof Sa))return new Sa(n);var e=n||{};vf.call(this,{readableObjectMode:!0}),this.opts=n||{},this.unzipStream=new pSe(this.opts);var t=this;this.unzipStream.on("entry",function(i){t.push(i)}),this.unzipStream.on("error",function(i){t.emit("error",i)})}fSe.inherits(Sa,vf);Sa.prototype._transform=function(n,e,t){this.unzipStream.write(n,e,t)};Sa.prototype._flush=function(n){var e=this;this.unzipStream.end(function(){process.nextTick(function(){e.emit("close")}),n()})};Sa.prototype.on=function(n,e){return n==="entry"?vf.prototype.on.call(this,"data",e):vf.prototype.on.call(this,n,e)};Sa.prototype.drainAll=function(){return this.unzipStream.drainAll(),this.pipe(new vf({objectMode:!0,transform:function(n,e,t){t()}}))};d3.exports=Sa});var b3=m((JHe,m3)=>{var wf=require("path"),f3=require("fs"),p3=parseInt("0777",8);m3.exports=ah.mkdirp=ah.mkdirP=ah;function ah(n,e,t,i){typeof e=="function"?(t=e,e={}):(!e||typeof e!="object")&&(e={mode:e});var r=e.mode,o=e.fs||f3;r===void 0&&(r=p3),i||(i=null);var s=t||function(){};n=wf.resolve(n),o.mkdir(n,r,function(a){if(!a)return i=i||n,s(null,i);switch(a.code){case"ENOENT":if(wf.dirname(n)===n)return s(a);ah(wf.dirname(n),e,function(l,u){l?s(l,u):ah(n,e,s,u)});break;default:o.stat(n,function(l,u){l||!u.isDirectory()?s(a,i):s(null,i)});break}})}ah.sync=function n(e,t,i){(!t||typeof t!="object")&&(t={mode:t});var r=t.mode,o=t.fs||f3;r===void 0&&(r=p3),i||(i=null),e=wf.resolve(e);try{o.mkdirSync(e,r),i=i||e}catch(a){switch(a.code){case"ENOENT":i=n(wf.dirname(e),t,i),n(e,t,i);break;default:var s;try{s=o.statSync(e)}catch{throw a}if(!s.isDirectory())throw a;break}}return i}});var x3=m(($He,w3)=>{var mSe=require("fs"),y3=require("path"),bSe=require("util"),ySe=b3(),v3=require("stream").Transform,vSe=l_();function Ta(n){if(!(this instanceof Ta))return new Ta(n);v3.call(this),this.opts=n||{},this.unzipStream=new vSe(this.opts),this.unfinishedEntries=0,this.afterFlushWait=!1,this.createdDirectories={};var e=this;this.unzipStream.on("entry",this._processEntry.bind(this)),this.unzipStream.on("error",function(t){e.emit("error",t)})}bSe.inherits(Ta,v3);Ta.prototype._transform=function(n,e,t){this.unzipStream.write(n,e,t)};Ta.prototype._flush=function(n){var e=this,t=function(){process.nextTick(function(){e.emit("close")}),n()};this.unzipStream.end(function(){if(e.unfinishedEntries>0)return e.afterFlushWait=!0,e.on("await-finished",t);t()})};Ta.prototype._processEntry=function(n){var e=this,t=y3.join(this.opts.path,n.path),i=n.isDirectory?t:y3.dirname(t);this.unfinishedEntries++;var r=function(){var o=mSe.createWriteStream(t);o.on("close",function(){e.unfinishedEntries--,e._notifyAwaiter()}),o.on("error",function(s){e.emit("error",s)}),n.pipe(o)};if(this.createdDirectories[i]||i===".")return r();ySe(i,function(o){if(o)return e.emit("error",o);if(e.createdDirectories[i]=!0,n.isDirectory){e.unfinishedEntries--,e._notifyAwaiter();return}r()})};Ta.prototype._notifyAwaiter=function(){this.afterFlushWait&&this.unfinishedEntries===0&&(this.emit("await-finished"),this.afterFlushWait=!1)};w3.exports=Ta});var C3=m(u_=>{"use strict";u_.Parse=g3();u_.Extract=x3()});var S3=m(c_=>{"use strict";Object.defineProperty(c_,"__esModule",{value:!0});function wSe(n,e,{signal:t}={}){return new Promise((i,r)=>{function o(){t==null||t.removeEventListener("abort",o),n.removeListener(e,s),n.removeListener("error",a)}function s(...l){o(),i(l)}function a(l){o(),r(l)}t==null||t.addEventListener("abort",o),n.on(e,s),n.on("error",a)})}c_.default=wSe});var T3=m(h_=>{"use strict";Object.defineProperty(h_,"__esModule",{value:!0});function xSe(n){return function(e,t){return new Promise((i,r)=>{n.call(this,e,t,(o,s)=>{o?r(o):i(s)})})}}h_.default=xSe});var f_=m((g_,D3)=>{"use strict";var k3=g_&&g_.__importDefault||function(n){return n&&n.__esModule?n:{default:n}},CSe=require("events"),SSe=k3(jt()),TSe=k3(T3()),xf=SSe.default("agent-base");function kSe(n){return Boolean(n)&&typeof n.addRequest=="function"}function d_(){let{stack:n}=new Error;return typeof n!="string"?!1:n.split(`
`).some(e=>e.indexOf("(https.js:")!==-1||e.indexOf("node:https:")!==-1)}function Xv(n,e){return new Xv.Agent(n,e)}(function(n){class e extends CSe.EventEmitter{constructor(i,r){super();let o=r;typeof i=="function"?this.callback=i:i&&(o=i),this.timeout=null,o&&typeof o.timeout=="number"&&(this.timeout=o.timeout),this.maxFreeSockets=1,this.maxSockets=1,this.maxTotalSockets=1/0,this.sockets={},this.freeSockets={},this.requests={},this.options={}}get defaultPort(){return typeof this.explicitDefaultPort=="number"?this.explicitDefaultPort:d_()?443:80}set defaultPort(i){this.explicitDefaultPort=i}get protocol(){return typeof this.explicitProtocol=="string"?this.explicitProtocol:d_()?"https:":"http:"}set protocol(i){this.explicitProtocol=i}callback(i,r,o){throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(i,r){let o=Object.assign({},r);typeof o.secureEndpoint!="boolean"&&(o.secureEndpoint=d_()),o.host==null&&(o.host="localhost"),o.port==null&&(o.port=o.secureEndpoint?443:80),o.protocol==null&&(o.protocol=o.secureEndpoint?"https:":"http:"),o.host&&o.path&&delete o.path,delete o.agent,delete o.hostname,delete o._defaultAgent,delete o.defaultPort,delete o.createConnection,i._last=!0,i.shouldKeepAlive=!1;let s=!1,a=null,l=o.timeout||this.timeout,u=g=>{i._hadError||(i.emit("error",g),i._hadError=!0)},c=()=>{a=null,s=!0;let g=new Error(`A "socket" was not created for HTTP request before ${l}ms`);g.code="ETIMEOUT",u(g)},h=g=>{s||(a!==null&&(clearTimeout(a),a=null),u(g))},d=g=>{if(s)return;if(a!=null&&(clearTimeout(a),a=null),kSe(g)){xf("Callback returned another Agent instance %o",g.constructor.name),g.addRequest(i,o);return}if(g){g.once("free",()=>{this.freeSocket(g,o)}),i.onSocket(g);return}let f=new Error(`no Duplex stream was returned to agent-base for \`${i.method} ${i.path}\``);u(f)};if(typeof this.callback!="function"){u(new Error("`callback` is not defined"));return}this.promisifiedCallback||(this.callback.length>=3?(xf("Converting legacy callback function to promise"),this.promisifiedCallback=TSe.default(this.callback)):this.promisifiedCallback=this.callback),typeof l=="number"&&l>0&&(a=setTimeout(c,l)),"port"in o&&typeof o.port!="number"&&(o.port=Number(o.port));try{xf("Resolving socket for %o request: %o",o.protocol,`${i.method} ${i.path}`),Promise.resolve(this.promisifiedCallback(i,o)).then(d,h)}catch(g){Promise.reject(g).catch(h)}}freeSocket(i,r){xf("Freeing socket %o %o",i.constructor.name,r),i.destroy()}destroy(){xf("Destroying agent %o",this.constructor.name)}}n.Agent=e,n.prototype=n.Agent.prototype})(Xv||(Xv={}));D3.exports=Xv});var _3=m(Hl=>{"use strict";var DSe=Hl&&Hl.__awaiter||function(n,e,t,i){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(c){try{u(i.next(c))}catch(h){s(h)}}function l(c){try{u(i.throw(c))}catch(h){s(h)}}function u(c){c.done?o(c.value):r(c.value).then(a,l)}u((i=i.apply(n,e||[])).next())})},Cf=Hl&&Hl.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Hl,"__esModule",{value:!0});var ESe=Cf(require("net")),_Se=Cf(require("tls")),p_=Cf(require("url")),PSe=Cf(jt()),RSe=Cf(S3()),LSe=f_(),ka=(0,PSe.default)("http-proxy-agent");function ISe(n){return typeof n=="string"?/^https:?$/i.test(n):!1}var E3=class extends LSe.Agent{constructor(e){let t;if(typeof e=="string"?t=p_.default.parse(e):t=e,!t)throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");ka("Creating new HttpProxyAgent instance: %o",t);super(t);let i=Object.assign({},t);this.secureProxy=t.secureProxy||ISe(i.protocol),i.host=i.hostname||i.host,typeof i.port=="string"&&(i.port=parseInt(i.port,10)),!i.port&&i.host&&(i.port=this.secureProxy?443:80),i.host&&i.path&&(delete i.path,delete i.pathname),this.proxy=i}callback(e,t){return DSe(this,void 0,void 0,function*(){let{proxy:i,secureProxy:r}=this,o=p_.default.parse(e.path);o.protocol||(o.protocol="http:"),o.hostname||(o.hostname=t.hostname||t.host||null),o.port==null&&typeof t.port&&(o.port=String(t.port)),o.port==="80"&&(o.port=""),e.path=p_.default.format(o),i.auth&&e.setHeader("Proxy-Authorization",`Basic ${Buffer.from(i.auth).toString("base64")}`);let s;if(r?(ka("Creating `tls.Socket`: %o",i),s=_Se.default.connect(i)):(ka("Creating `net.Socket`: %o",i),s=ESe.default.connect(i)),e._header){let a,l;ka("Regenerating stored HTTP header string for request"),e._header=null,e._implicitHeader(),e.output&&e.output.length>0?(ka("Patching connection write() output buffer with updated header"),a=e.output[0],l=a.indexOf(`\r
\r
`)+4,e.output[0]=e._header+a.substring(l),ka("Output buffer: %o",e.output)):e.outputData&&e.outputData.length>0&&(ka("Patching connection write() output buffer with updated header"),a=e.outputData[0].data,l=a.indexOf(`\r
\r
`)+4,e.outputData[0].data=e._header+a.substring(l),ka("Output buffer: %o",e.outputData[0].data))}return yield(0,RSe.default)(s,"connect"),s})}};Hl.default=E3});var R3=m((y_,P3)=>{"use strict";var jSe=y_&&y_.__importDefault||function(n){return n&&n.__esModule?n:{default:n}},m_=jSe(_3());function b_(n){return new m_.default(n)}(function(n){n.HttpProxyAgent=m_.default,n.prototype=m_.default.prototype})(b_||(b_={}));P3.exports=b_});var L3=m(Tf=>{"use strict";var FSe=Tf&&Tf.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Tf,"__esModule",{value:!0});var OSe=FSe(jt()),Sf=OSe.default("https-proxy-agent:parse-proxy-response");function MSe(n){return new Promise((e,t)=>{let i=0,r=[];function o(){let h=n.read();h?c(h):n.once("readable",o)}function s(){n.removeListener("end",l),n.removeListener("error",u),n.removeListener("close",a),n.removeListener("readable",o)}function a(h){Sf("onclose had error %o",h)}function l(){Sf("onend")}function u(h){s(),Sf("onerror %o",h),t(h)}function c(h){r.push(h),i+=h.length;let d=Buffer.concat(r,i);if(d.indexOf(`\r
\r
`)===-1){Sf("have not received end of HTTP headers yet..."),o();return}let f=d.toString("ascii",0,d.indexOf(`\r
`)),p=+f.split(" ")[1];Sf("got proxy server response: %o",f),e({statusCode:p,buffered:d})}n.on("error",u),n.on("close",a),n.on("end",l),o()})}Tf.default=MSe});var O3=m(ql=>{"use strict";var ASe=ql&&ql.__awaiter||function(n,e,t,i){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(c){try{u(i.next(c))}catch(h){s(h)}}function l(c){try{u(i.throw(c))}catch(h){s(h)}}function u(c){c.done?o(c.value):r(c.value).then(a,l)}u((i=i.apply(n,e||[])).next())})},lh=ql&&ql.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(ql,"__esModule",{value:!0});var I3=lh(require("net")),j3=lh(require("tls")),NSe=lh(require("url")),HSe=lh(require("assert")),qSe=lh(jt()),BSe=f_(),YSe=lh(L3()),kf=qSe.default("https-proxy-agent:agent"),F3=class extends BSe.Agent{constructor(e){let t;if(typeof e=="string"?t=NSe.default.parse(e):t=e,!t)throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");kf("creating new HttpsProxyAgent instance: %o",t);super(t);let i=Object.assign({},t);this.secureProxy=t.secureProxy||JSe(i.protocol),i.host=i.hostname||i.host,typeof i.port=="string"&&(i.port=parseInt(i.port,10)),!i.port&&i.host&&(i.port=this.secureProxy?443:80),this.secureProxy&&!("ALPNProtocols"in i)&&(i.ALPNProtocols=["http 1.1"]),i.host&&i.path&&(delete i.path,delete i.pathname),this.proxy=i}callback(e,t){return ASe(this,void 0,void 0,function*(){let{proxy:i,secureProxy:r}=this,o;r?(kf("Creating `tls.Socket`: %o",i),o=j3.default.connect(i)):(kf("Creating `net.Socket`: %o",i),o=I3.default.connect(i));let s=Object.assign({},i.headers),l=`CONNECT ${`${t.host}:${t.port}`} HTTP/1.1\r
`;i.auth&&(s["Proxy-Authorization"]=`Basic ${Buffer.from(i.auth).toString("base64")}`);let{host:u,port:c,secureEndpoint:h}=t;ZSe(c,h)||(u+=`:${c}`),s.Host=u,s.Connection="close";for(let b of Object.keys(s))l+=`${b}: ${s[b]}\r
`;let d=YSe.default(o);o.write(`${l}\r
`);let{statusCode:g,buffered:f}=yield d;if(g===200){if(e.once("socket",WSe),t.secureEndpoint){let b=t.servername||t.host;if(!b)throw new Error('Could not determine "servername"');return kf("Upgrading socket connection to TLS"),j3.default.connect(Object.assign(Object.assign({},$Se(t,"host","hostname","path","port")),{socket:o,servername:b}))}return o}o.destroy();let p=new I3.default.Socket;return p.readable=!0,e.once("socket",b=>{kf("replaying proxy buffer for failed request"),HSe.default(b.listenerCount("data")>0),b.push(f),b.push(null)}),p})}};ql.default=F3;function WSe(n){n.resume()}function ZSe(n,e){return Boolean(!e&&n===80||e&&n===443)}function JSe(n){return typeof n=="string"?/^https:?$/i.test(n):!1}function $Se(n,...e){let t={},i;for(i in n)e.includes(i)||(t[i]=n[i]);return t}});var A3=m((x_,M3)=>{"use strict";var XSe=x_&&x_.__importDefault||function(n){return n&&n.__esModule?n:{default:n}},v_=XSe(O3());function w_(n){return new v_.default(n)}(function(n){n.HttpsProxyAgent=v_.default,n.prototype=v_.default.prototype})(w_||(w_={}));M3.exports=w_});var H3=m((VHe,N3)=>{"use strict";var USe=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];N3.exports=(n,e)=>{if(e._readableState.autoDestroy)throw new Error("The second stream must have the `autoDestroy` option set to `false`");let t=new Set(Object.keys(n).concat(USe)),i={};for(let r of t)r in e||(i[r]={get(){let o=n[r];return typeof o=="function"?o.bind(n):o},set(o){n[r]=o},enumerable:!0,configurable:!1});return Object.defineProperties(e,i),n.once("aborted",()=>{e.destroy(),e.emit("aborted")}),n.once("close",()=>{n.complete&&e.readable?e.once("end",()=>{e.emit("close")}):e.emit("close")}),e}});var B3=m((eqe,q3)=>{"use strict";var{Transform:GSe,PassThrough:KSe}=require("stream"),C_=require("zlib"),zSe=H3();q3.exports=n=>{let e=(n.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(e))return n;let t=e==="br";if(t&&typeof C_.createBrotliDecompress!="function")return n.destroy(new Error("Brotli is not supported on Node.js < 12")),n;let i=!0,r=new GSe({transform(a,l,u){i=!1,u(null,a)},flush(a){a()}}),o=new KSe({autoDestroy:!1,destroy(a,l){n.destroy(),l(a)}}),s=t?C_.createBrotliDecompress():C_.createUnzip();return s.once("error",a=>{if(i&&!n.readable){o.end();return}o.destroy(a)}),zSe(n,o),n.pipe(r).pipe(s).pipe(o),o}});function QSe(n){let e;n.protocol==="http:"?e=process.env.HTTP_PROXY||process.env.http_proxy||null:n.protocol==="https:"&&(e=process.env.HTTPS_PROXY||process.env.https_proxy||process.env.HTTP_PROXY||process.env.http_proxy||null);let t=process.env.NO_PROXY||process.env.no_proxy;if(t==="*")e=null;else if(t){let i=n.hostname.replace(/^\.*/,".").toLowerCase(),r=n.port||n.protocol.startsWith("https")?"443":"80",o=t.split(",");for(let s=0,a=o.length;s<a;s++){let l=o[s].trim().toLowerCase();if(l.includes(":")){let u=l.split(":",2),c=u[0].replace(/^\.*/,"."),h=u[1];if(r===h&&i.endsWith(c)){e=null;break}}else if(l=l.replace(/^\.*/,"."),i.endsWith(l)){e=null;break}}}return e}function VSe(n,e){let t=e.proxyUrl||QSe(n);if(t){let i=(0,S_.parse)(t);if(!/^https?:$/.test(i.protocol))return null;let r={host:i.hostname,port:i.port?Number(i.port):i.protocol==="https"?"443":"80",auth:i.auth,rejectUnauthorized:typeof e.strictSSL=="boolean"?e.strictSSL:!0};return X3.info(`Using proxy ${t} from ${e.proxyUrl?"configuration":"system environment"} for ${n.hostname}:`),n.protocol==="http:"?(0,Z3.default)(r):(0,J3.default)(r)}return null}function T_(n,e={}){let t=v.getConfiguration("http"),{data:i}=e,r=tTe(i),o={proxyUrl:t.get("proxy",""),strictSSL:t.get("proxyStrictSSL",!0),proxyAuthorization:t.get("proxyAuthorization",null),proxyCA:t.get("proxyCA",null)};e.query&&!n.includes("?")&&(n=`${n}?${(0,W3.stringify)(e.query)}`);let s=Object.assign(e.headers||{},{"Proxy-Authorization":o.proxyAuthorization}),a=(0,S_.parse)(n),l=VSe(a,o),u={method:e.method||"GET",hostname:a.hostname,port:a.port?parseInt(a.port,10):a.protocol==="https:"?443:80,path:a.path,agent:l,rejectUnauthorized:o.strictSSL,maxRedirects:3,headers:Object.assign({"User-Agent":"Mozilla/5.0 (X11; Linux x86_64)","Accept-Encoding":"gzip, deflate"},s)};return o.proxyCA&&(u.ca=Y3.default.readFileSync(o.proxyCA)),r=="object"?u.headers["Content-Type"]="application/json":r=="string"&&(u.headers["Content-Type"]="text/plain"),e.user&&e.password&&(u.auth=e.user+":"+e.password),e.timeout&&(u.timeout=e.timeout),e.buffer&&(u.buffer=!0),u}function eTe(n,e,t,i){let r=n.startsWith("https:")?Uv.https:Uv.http;return new Promise((o,s)=>{if(i){let u=i.onCancellationRequested(()=>{u.dispose(),l.destroy(new Error("request aborted"))})}let a,l=r.request(t,u=>{let c=u;if(u.statusCode>=200&&u.statusCode<300||u.statusCode===1223){let h=u.headers||{},d=[],g=h["content-type"]||"";c=(0,$3.default)(u),c.on("data",f=>{d.push(f)}),c.on("end",()=>{a&&clearTimeout(a);let f=Buffer.concat(d);if(!t.buffer&&(g.startsWith("application/json")||g.startsWith("text/"))){let p=g.match(/charset=(\S+)/),b=p?p[1]:"utf8",y=f.toString(b);if(!g.includes("application/json"))o(y);else try{let w=JSON.parse(y);o(w)}catch(w){s(new Error(`Parse response error: ${w}`))}}else o(f)}),c.on("error",f=>{s(new Error(`Unable to connect ${n}: ${f.message}`))})}else s(new Error(`Bad response from ${n}: ${u.statusCode}`))});l.on("error",u=>{t.agent&&u.code=="ECONNRESET"?a=setTimeout(()=>{s(u)},500):s(u)}),l.on("timeout",()=>{l.destroy(new Error(`Request timeout after ${t.timeout}ms`))}),e&&(typeof e=="string"||Buffer.isBuffer(e)?l.write(e):l.write(JSON.stringify(e))),t.timeout&&l.setTimeout(t.timeout),l.end()})}function tTe(n){return n===null?"null":n===void 0?"undefined":typeof n=="string"?"string":Buffer.isBuffer(n)?"buffer":Array.isArray(n)||Dt(n)?"object":"unknown"}function uh(n,e={},t){let i=T_(n,e);return eTe(n,e.data,i,t).catch(r=>{if(X3.error(`Fetch error for ${n}:`,i,r),i.agent&&i.agent.proxy){let{proxy:o}=i.agent;throw new Error(`Request failed using proxy ${o.host}: ${r.message}`)}else throw r})}var Uv,S_,Y3,W3,Z3,J3,$3,X3,Gv=P(()=>{"use strict";Uv=S(NE()),S_=require("url"),Y3=S(require("fs"));jn();Q();W3=require("querystring"),Z3=S(R3()),J3=S(A3()),$3=S(B3()),X3=Y()("model-fetch")});function Ef(n,e,t){let{dest:i,onProgress:r,extract:o}=e;if(!i||!Df.default.isAbsolute(i))throw new Error("Expect absolute file path for dest option.");let s;try{s=Kv.default.statSync(i)}catch{Kv.default.mkdirpSync(i)}if(s&&!s.isDirectory())throw new Error(`${i} exists, but not directory!`);let a=n.startsWith("https")?zv.https:zv.http,l=T_(n,e),u=Df.default.extname(n);return new Promise((c,h)=>{if(t){let f=t.onCancellationRequested(()=>{f.dispose(),g.destroy(new Error("request aborted"))})}let d,g=a.request(l,f=>{var p,b;if(f.statusCode>=200&&f.statusCode<300||f.statusCode===1223){let y=f.headers||{},w=y["content-disposition"];if(!u&&w){let j=U3.default.parse(w);(p=j.parameters)!=null&&p.filename&&(u=Df.default.extname(j.parameters.filename))}if(o===!0)if(u===".zip"||y["content-type"]=="application/zip")o="unzip";else if(u==".tgz")o="untar";else{h(new Error(`Unable to extract for ${n}`));return}let x=Number(y["content-length"]),k=0;isNaN(x)||f.on("data",j=>{k+=j.length;let O=(k/x*100).toFixed(1);r?r(O):k_.info(`Download ${n} progress ${O}%`)}),f.on("error",j=>{h(new Error(`Unable to connect ${n}: ${j.message}`))}),f.on("data",()=>{d&&(clearTimeout(d),d=void 0)}),f.on("end",()=>{k_.info("Download completed:",n)});let L;o==="untar"?L=f.pipe(G3.default.x({strip:(b=e.strip)!=null?b:1,C:i})):o==="unzip"?L=f.pipe(K3.default.Extract({path:i})):(i=Df.default.join(i,`${Xo()}${u}`),L=f.pipe(Kv.default.createWriteStream(i))),L.on("finish",()=>{k_.info(`Downloaded ${n} => ${i}`),setTimeout(()=>{c(i)},100)}),L.on("error",h)}else h(new Error(`Invalid response from ${n}: ${f.statusCode}`))});g.on("error",f=>{l.agent&&f.code=="ECONNRESET"?d=setTimeout(()=>{h(f)},500):h(f)}),g.on("timeout",()=>{g.destroy(new Error(`request timeout after ${e.timeout}ms`))}),e.timeout&&g.setTimeout(e.timeout),g.end()})}var U3,zv,Kv,Df,G3,K3,k_,D_=P(()=>{"use strict";U3=S(OX()),zv=S(NE()),Kv=S(Rn()),Df=S(require("path")),G3=S(YG()),K3=S(C3());Ne();Gv();k_=Y()("model-download")});function nTe(n="coc.nvim"){let e="https://registry.npmjs.org/",t=Bn.default.join(iTe,".npmrc");if(Jt.default.existsSync(t))try{let i=Jt.default.readFileSync(t,"utf8"),r={};for(let o of i.split(/\r?\n/))if(o.indexOf("=")>-1){let[s,a,l]=o.match(/^(.*?)=(.*)$/);r[a]=l}r[`${n}:registry`]?e=r[`${n}:registry`]:r.registry&&(e=r.registry)}catch(i){E_.error("Error on read .npmrc:",i)}return e.endsWith("/")?e:e+"/"}function rTe(n){let e=Bn.default.basename(n);return e==="npm"||e==="npm.CMD"}function oTe(n){let e=Bn.default.basename(n);return["yarn","yarn.CMD","yarnpkg","yarnpkg.CMD"].includes(e)}function sTe(n,e){let t=["install","--ignore-scripts","--no-lockfile","--production"];return e.startsWith("https://github.com")&&(t=["install"]),rTe(n)&&(t.push("--legacy-peer-deps"),t.push("--no-global")),oTe(n)&&t.push("--ignore-engines"),t}function aTe(n){let e;try{e=JSON.parse(n).dependencies||{}}catch{e={}}return zi(e,["coc.nvim","esbuild","webpack","@types/node"])}function z3(n){return!!(Jt.default.existsSync(n)&&Jt.default.lstatSync(n).isSymbolicLink())}function ew(n,e){return t=>new tK(e,n,t)}var Q3,V3,Jt,Vv,Bn,eK,Qv,E_,iTe,tK,iK=P(()=>{"use strict";Q3=require("child_process"),V3=require("events"),Jt=S(Rn());wg();Vv=S(require("os")),Bn=S(require("path")),eK=S(require("readline")),Qv=S(Jg());Xe();Ko();Q();D_();Gv();E_=Y()("model-installer"),iTe=global.__TEST__?Vv.default.tmpdir():Vv.default.homedir();tK=class extends V3.EventEmitter{constructor(e,t,i){super();this.root=e;this.npm=t;this.def=i;if(Jt.default.existsSync(e)||Jt.default.mkdirpSync(e),/^https?:/.test(i))this.url=i;else{let r=i.match(/(.+)@([^/]+)$/);r?(this.name=r[1],this.version=r[2]):this.name=i}}get info(){return{name:this.name,version:this.version}}async install(){this.log(`Using npm from: ${this.npm}`);let e=await this.getInfo();E_.info(`Fetched info of ${this.def}`,e);let{name:t}=e,i=e["engines.coc"]?e["engines.coc"].replace(/^\^/,">="):"";if(i&&!Qv.default.satisfies(v.version,i))throw new Error(`${t} ${e.version} requires coc.nvim >= ${i}, please update coc.nvim.`);return await this.doInstall(e),t}async update(e){this.url=e;let t=Bn.default.join(this.root,this.name);if(z3(t)){this.log("Skipped update for symbol link");return}let i;if(Jt.default.existsSync(Bn.default.join(t,"package.json"))){let a=await Jt.default.readFile(Bn.default.join(t,"package.json"),"utf8");i=JSON.parse(a).version}this.log(`Using npm from: ${this.npm}`);let r=await this.getInfo();if(i&&r.version&&Qv.default.gte(i,r.version)){this.log(`Current version ${i} is up to date.`);return}let o=r["engines.coc"]?r["engines.coc"].replace(/^\^/,">="):"";if(o&&!Qv.default.satisfies(v.version,o))throw new Error(`${r.version} requires coc.nvim ${o}, please update coc.nvim.`);await this.doInstall(r);let s=Bn.default.join(this.root,r.name,"package.json");return this.log(`Updated to v${r.version}`),Bn.default.dirname(s)}async doInstall(e){let t=Bn.default.join(this.root,e.name);if(z3(t))return!1;let i=await Jt.default.mkdtemp(Bn.default.join(Vv.default.tmpdir(),`${e.name.replace("/","-")}-`)),r=e["dist.tarball"];this.log(`Downloading from ${r}`),await Ef(r,{dest:i,onProgress:d=>this.log(`Download progress ${d}%`,!0),extract:"untar"}),this.log(`Extension download at ${i}`);let o=await Jt.default.readFile(Bn.default.join(i,"package.json"),"utf8"),s=aTe(o);Object.keys(s).length&&await new Promise((g,f)=>{let p=sTe(this.npm,r);this.log(`Installing dependencies by: ${this.npm} ${p.join(" ")}.`);let b=(0,Q3.spawn)(this.npm,p,{cwd:i});eK.default.createInterface({input:b.stdout}).on("line",x=>{this.log(`[npm] ${x}`,!0)}),b.stderr.setEncoding("utf8"),b.stdout.setEncoding("utf8"),b.on("error",f);let w="";b.stderr.on("data",x=>{w+=x}),b.on("exit",x=>{if(x){w&&this.log(w),f(new Error(`${this.npm} install exited with ${x}`));return}g()})});let a=Bn.default.resolve(this.root,global.__TEST__?"":"..","package.json"),l=[];Jt.default.existsSync(a)||Jt.default.writeFileSync(a,"{}");let u=kc(Jt.default.readFileSync(a,"utf8"),l,{allowTrailingComma:!0});if(l&&l.length>0)throw new Error(`Error on load ${a}`);u.dependencies=u.dependencies||{},this.url?u.dependencies[e.name]=this.url:u.dependencies[e.name]=">="+e.version;let c={dependencies:{}};Object.keys(u.dependencies).sort().forEach(d=>{c.dependencies[d]=u.dependencies[d]});let h=await Mt(t);return h&&(h.isDirectory()?Jt.default.removeSync(t):Jt.default.unlinkSync(t)),await Jt.default.move(i,t,{overwrite:!0}),await Jt.default.writeFile(a,JSON.stringify(c,null,2),{encoding:"utf8"}),Jt.default.existsSync(i)&&Jt.default.rmdirSync(i),this.log(`Update package.json at ${a}`),this.log(`Installed extension ${this.name}@${e.version} at ${t}`),!0}async getInfo(){if(this.url)return await this.getInfoFromUri();let e=nTe();this.log(`Get info from ${e}`);let t=await uh(e+this.name,{timeout:1e4,buffer:!0}),i=JSON.parse(t.toString());this.version||(this.version=i["dist-tags"].latest);let r=i.versions[this.version];if(!r)throw new Error(`${this.def} doesn't exists in ${e}.`);let o=r.engines&&r.engines.coc;if(!o)throw new Error(`${this.def} is not valid coc extension, "engines" field with coc property required.`);return{"dist.tarball":r.dist.tarball,"engines.coc":o,version:r.version,name:i.name}}async getInfoFromUri(){let{url:e}=this;if(!e.startsWith("https://github.com"))throw new Error(`"${e}" is not supported, coc.nvim support github.com only`);e=e.replace(/\/$/,"");let t="master";if(e.includes("@")){let s=e.indexOf("@");t=e.substr(s+1),e=e.substring(0,s)}let i=e.replace("github.com","raw.githubusercontent.com")+`/${t}/package.json`;this.log(`Get info from ${i}`);let r=await uh(i,{timeout:1e4}),o=typeof r=="string"?JSON.parse(r):r;return this.name=o.name,{"dist.tarball":`${e}/archive/${t}.tar.gz`,"engines.coc":o.engines?o.engines.coc:null,name:o.name,version:o.version}}log(e,t=!1){E_.info(e),this.emit("message",e,t)}}});var ch,lTe,tw,nK=P(()=>{"use strict";ch=S(require("fs"));Ht();lTe=Y()("model-memos"),tw=class{constructor(e){this.filepath=e;ch.default.existsSync(e)||ch.default.writeFileSync(e,"{}","utf8")}fetchContent(e,t){try{let i=ch.default.readFileSync(this.filepath,"utf8"),o=JSON.parse(i)[e];return o?o[t]:void 0}catch{return}}async update(e,t,i){let{filepath:r}=this;try{let o=ch.default.readFileSync(r,"utf8"),s=o?JSON.parse(o):{};s[e]=s[e]||{},i!==void 0?s[e][t]=_r(i):delete s[e][t],o=JSON.stringify(s,null,2),ch.default.writeFileSync(r,o,"utf8")}catch(o){lTe.error("Error on update memos:",o)}}createMemento(e){return{get:(t,i)=>{let r=this.fetchContent(e,t);return r===void 0?i:r},update:async(t,i)=>{await this.update(e,t,i)}}}}});var vn,Bl=P(()=>{"use strict";gc();Fe();vn=class{constructor(){this.lines=[];this._highlights=[]}addLine(e,t){if(e.includes(`
`)){for(let i of e.split(/\r?\n/))this.addLine(i,t);return}if(t&&this._highlights.push({lnum:this.lines.length,colStart:e.match(/^\s*/)[0].length,colEnd:V(e),hlGroup:t}),e.includes("\x1B")){let i=dc(e);for(let r of i.highlights){let{span:o,hlGroup:s}=r;o[0]!=o[1]&&this._highlights.push({lnum:this.lines.length,colStart:o[0],colEnd:o[1],hlGroup:s})}this.lines.push(i.line)}else this.lines.push(e)}addLines(e){this.lines.push(...e)}addTexts(e){let t=this.lines.length,i="";for(let r of e){let o=V(i);r.hlGroup&&this._highlights.push({lnum:t,colStart:o,colEnd:o+V(r.text),hlGroup:r.hlGroup}),i+=r.text}this.lines.push(i)}addText(e,t){let{lines:i}=this,r=i[i.length-1]||"";if(t){let o=V(r);this._highlights.push({lnum:i.length?i.length-1:0,colStart:o,colEnd:o+V(e),hlGroup:t})}i.length?i[i.length-1]=`${r}${e}`:i.push(e)}get length(){return this.lines.length}getline(e){return this.lines[e]||""}get highlights(){return this._highlights}get content(){return this.lines.join(`
`)}render(e,t=0,i=-1){e.setLines(this.lines,{start:t,end:i,strictIndexing:!1},!0);for(let r of this._highlights)e.addHighlight({hlGroup:r.hlGroup,colStart:r.colStart,colEnd:r.colEnd==null?-1:r.colEnd,line:t+r.lnum,srcId:-1})}}});function __(n){return n?new Error(`Illegal argument: ${n}`):new Error("Illegal argument")}var rK=P(()=>{"use strict"});var iw,oK=P(()=>{"use strict";we();rK();iw=class{constructor(e,t){if(typeof e!="string"&&(!e||!M.isUri(e)&&typeof e.uri!="string"))throw __("base");if(typeof t!="string")throw __("pattern");typeof e=="string"?this.baseUri=M.file(e):M.isUri(e)?this.baseUri=e:this.baseUri=M.parse(e.uri),this.pattern=t}toJSON(){return{pattern:this.pattern,baseUri:this.baseUri.toJSON()}}}});var aK=m((Pqe,sK)=>{"use strict";sK.exports=q()});function lK(n,e){if(!n.killed)if(uTe)try{let t={stdio:["pipe","pipe","ignore"]};return e&&(t.cwd=e),_f.execFileSync("taskkill",["/T","/F","/PID",n.pid.toString()],t),!0}catch{return!1}else if(hTe||cTe)try{let t=(0,nw.join)(dTe,"bin/terminateProcess.sh");return!_f.spawnSync(t,[n.pid.toString()]).error}catch{return!1}else return n.kill("SIGKILL"),!0}var _f,nw,uTe,cTe,hTe,dTe,uK=P(()=>{"use strict";_f=S(require("child_process")),nw=require("path"),uTe=process.platform==="win32",cTe=process.platform==="darwin",hTe=process.platform==="linux",dTe=(0,nw.dirname)(__dirname)});var cK,Bqe,Pf,P_=P(()=>{"use strict";cK=S(q());z();De();"use strict";Bqe=Y()("language-client-progressPart"),Pf=class{constructor(e,t,i){this.client=e;this.token=t;this.disposables=[];this._cancelled=!1;this.statusBarItem=D.createStatusBarItem(99,{progress:!0}),this.disposables.push(e.onProgress(cK.WorkDoneProgress.type,this.token,r=>{switch(r.kind){case"begin":this.begin(r);break;case"report":this.report(r);break;case"end":this.done(r.message),i&&i(this);break}}))}begin(e){typeof this.title!="string"&&(this.title=e.title,this.report(e))}report(e){let t=this.statusBarItem,i=[];this.title&&i.push(this.title),typeof e.percentage=="number"&&i.push(e.percentage.toFixed(0)+"%"),e.message&&i.push(e.message),t.text=i.join(" "),t.show()}cancel(){this._cancelled||(this._cancelled=!0,J(this.disposables))}done(e){if(this._cancelled)return;let t=this.statusBarItem;t.text=`${this.title} ${e||"finished"}`,setTimeout(()=>{t.dispose()},300),this.cancel()}}});var R_,L_,hK=P(()=>{"use strict";R_=S(q()),L_=class{constructor(e){this.defaultDelay=e,this.timeout=void 0,this.completionPromise=void 0,this.onSuccess=void 0,this.task=void 0}trigger(e,t=this.defaultDelay){return this.task=e,t>=0&&this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise(i=>{this.onSuccess=i}).then(()=>{this.completionPromise=void 0,this.onSuccess=void 0;let i=this.task();return this.task=void 0,i})),(t>=0||this.timeout===void 0)&&(this.timeout=(0,R_.RAL)().timer.setTimeout(()=>{this.timeout=void 0,this.onSuccess(void 0)},t>=0?t:this.defaultDelay)),this.completionPromise}forceDelivery(){if(!this.completionPromise)return;this.cancelTimeout();let e=this.task();return this.completionPromise=void 0,this.onSuccess=void 0,this.task=void 0,e}isTriggered(){return this.timeout!==void 0}cancel(){this.cancelTimeout(),this.completionPromise=void 0}dispose(){this.cancelTimeout()}cancelTimeout(){this.timeout!==void 0&&((0,R_.RAL)().timer.clearTimeout(this.timeout),this.timeout=void 0)}}});function dK(n){return{uri:n.uri,languageId:n.languageId,version:n.version,text:n.getText()}}function gK(n){return{textDocument:{uri:n.uri}}}function fK(n){return{textDocument:{uri:n.uri,version:n.version},contentChanges:[{text:n.getText()}]}}function I_(n){return{textDocument:rw(n.document),reason:n.reason}}function rw(n){return{uri:n.uri,version:n.version}}function pK(n,e){let t={textDocument:rw(n)};return e&&(t.text=n.getText()),t}function Rf(n){return n.toString()}function mK(n,e,t){return{textDocument:{uri:n.uri},position:e,context:zi(t,["option"])}}function wn(n,e){return{textDocument:{uri:n.uri},position:e}}function bK(n,e,t){return{textDocument:Yl(n),position:e,context:t}}function Yl(n){return{uri:n.uri}}function yK(n,e,t){return{textDocument:{uri:n.uri},position:e,context:{includeDeclaration:t.includeDeclaration}}}function vK(n){return{textDocument:{uri:n.uri}}}function wK(n){return{textDocument:{uri:n.uri}}}var Da=P(()=>{"use strict";Ko()});function Be(){return se()}var ow=P(()=>{"use strict";Ne()});function gTe(n,e,t,i,r){let o=new CK,s=(0,C.createProtocolConnection)(n,e,o,r),a=[];return s.onError(u=>{t(u[0],u[1],u[2])},null,a),s.onClose(i,null,a),{listen:()=>s.listen(),unlisten:()=>{J(a)},sendRequest:(u,...c)=>s.sendRequest(Ee(u)?u:u.method,...c),onRequest:(u,c)=>s.onRequest(Ee(u)?u:u.method,c),sendNotification:(u,c)=>s.sendNotification(Ee(u)?u:u.method,c),onNotification:(u,c)=>s.onNotification(Ee(u)?u:u.method,c),onProgress:s.onProgress,sendProgress:s.sendProgress,trace:(u,c,h)=>{let d={sendNotification:!1,traceFormat:C.TraceFormat.Text};h===void 0?s.trace(u,c,d):(zn(h),s.trace(u,c,h))},initialize:u=>s.sendRequest(C.InitializeRequest.type,u),shutdown:()=>s.sendRequest(C.ShutdownRequest.type,void 0),exit:()=>s.sendNotification(C.ExitNotification.type),onLogMessage:u=>s.onNotification(C.LogMessageNotification.type,u),onShowMessage:u=>s.onNotification(C.ShowMessageNotification.type,u),onTelemetry:u=>s.onNotification(C.TelemetryEventNotification.type,u),didChangeConfiguration:u=>s.sendNotification(C.DidChangeConfigurationNotification.type,u),didChangeWatchedFiles:u=>s.sendNotification(C.DidChangeWatchedFilesNotification.type,u),didOpenTextDocument:u=>s.sendNotification(C.DidOpenTextDocumentNotification.type,u),didChangeTextDocument:u=>s.sendNotification(C.DidChangeTextDocumentNotification.type,u),didCloseTextDocument:u=>s.sendNotification(C.DidCloseTextDocumentNotification.type,u),didSaveTextDocument:u=>s.sendNotification(C.DidSaveTextDocumentNotification.type,u),onDiagnostics:u=>s.onNotification(C.PublishDiagnosticsNotification.type,u),end:()=>s.end(),dispose:()=>s.dispose()}}function U(n,e){return n[e]===void 0&&(n[e]={}),n[e]}var F_,C,xK,lo,CK,A_,N_,H_,SK,sw,aw,lw,TK,fTe,kK,O_,uo,DK,EK,_K,PK,RK,LK,IK,Oe,jK,FK,OK,MK,AK,NK,HK,qK,BK,YK,WK,ZK,JK,$K,XK,UK,GK,KK,hh,M_,q_,xn=P(()=>{"use strict";F_=S(require("path")),C=S(q());we();xi();Se();Xe();jn();Ko();_b();De();Q();Wl();P_();hK();xK=S(require("os"));Da();ow();bt();z();lo=Y()("language-client-client"),CK=class{error(e){lo.error(e)}warn(e){lo.warn(e)}info(e){lo.info(e)}log(e){lo.log(e)}},A_=class{error(e){}warn(e){}info(e){}log(e){}};N_=(t=>(t[t.Continue=1]="Continue",t[t.Shutdown=2]="Shutdown",t))(N_||{}),H_=(t=>(t[t.DoNotRestart=1]="DoNotRestart",t[t.Restart=2]="Restart",t))(H_||{}),SK=class{constructor(e,t){this.name=e;this.maxRestartCount=t;this.restarts=[]}error(e,t,i){return i&&i<=3?1:2}closed(){return this.restarts.push(Date.now()),this.restarts.length<this.maxRestartCount?2:this.restarts[this.restarts.length-1]-this.restarts[0]<=3*60*1e3?(D.showMessage(`The "${this.name}" server crashed ${this.maxRestartCount} times in the last 3 minutes. The server will not be restarted.`,"error"),1):(this.restarts.shift(),2)}},sw=(r=>(r[r.Info=1]="Info",r[r.Warn=2]="Warn",r[r.Error=3]="Error",r[r.Never=4]="Never",r))(sw||{}),aw=(i=>(i[i.Stopped=1]="Stopped",i[i.Running=2]="Running",i[i.Starting=3]="Starting",i))(aw||{}),lw=(s=>(s[s.Initial=0]="Initial",s[s.Starting=1]="Starting",s[s.StartFailed=2]="StartFailed",s[s.Running=3]="Running",s[s.Stopping=4]="Stopping",s[s.Stopped=5]="Stopped",s))(lw||{}),TK=[C.SymbolKind.File,C.SymbolKind.Module,C.SymbolKind.Namespace,C.SymbolKind.Package,C.SymbolKind.Class,C.SymbolKind.Method,C.SymbolKind.Property,C.SymbolKind.Field,C.SymbolKind.Constructor,C.SymbolKind.Enum,C.SymbolKind.Interface,C.SymbolKind.Function,C.SymbolKind.Variable,C.SymbolKind.Constant,C.SymbolKind.String,C.SymbolKind.Number,C.SymbolKind.Boolean,C.SymbolKind.Array,C.SymbolKind.Object,C.SymbolKind.Key,C.SymbolKind.Null,C.SymbolKind.EnumMember,C.SymbolKind.Struct,C.SymbolKind.Event,C.SymbolKind.Operator,C.SymbolKind.TypeParameter],fTe=[C.CompletionItemKind.Text,C.CompletionItemKind.Method,C.CompletionItemKind.Function,C.CompletionItemKind.Constructor,C.CompletionItemKind.Field,C.CompletionItemKind.Variable,C.CompletionItemKind.Class,C.CompletionItemKind.Interface,C.CompletionItemKind.Module,C.CompletionItemKind.Property,C.CompletionItemKind.Unit,C.CompletionItemKind.Value,C.CompletionItemKind.Enum,C.CompletionItemKind.Keyword,C.CompletionItemKind.Snippet,C.CompletionItemKind.Color,C.CompletionItemKind.File,C.CompletionItemKind.Reference,C.CompletionItemKind.Folder,C.CompletionItemKind.EnumMember,C.CompletionItemKind.Constant,C.CompletionItemKind.Struct,C.CompletionItemKind.Event,C.CompletionItemKind.Operator,C.CompletionItemKind.TypeParameter],kK=[C.SymbolTag.Deprecated];(e=>{function n(t){let i=t;return i&&Zs(i.register)&&Zs(i.unregister)&&Zs(i.dispose)&&i.registrationType!==void 0}e.is=n})(O_||(O_={}));uo=class{constructor(e,t,i,r,o,s){this._client=e;this._event=t;this._type=i;this._middleware=r;this._createParams=o;this._selectorFilter=s;this._selectors=new Map}static textDocumentFilter(e,t){for(let i of e)if(v.match(i,t)>0)return!0;return!1}register(e){!e.registerOptions.documentSelector||(this._listener||(this._listener=this._event(this.callback,this)),this._selectors.set(e.id,e.registerOptions.documentSelector))}callback(e){(!this._selectorFilter||this._selectorFilter(this._selectors.values(),e))&&(this._middleware?this._middleware(e,t=>this._client.sendNotification(this._type,this._createParams(t))):this._client.sendNotification(this._type,this._createParams(e)),this.notificationSent(e))}notificationSent(e){}unregister(e){this._selectors.delete(e),this._selectors.size===0&&this._listener&&(this._listener.dispose(),this._listener=void 0)}dispose(){this._selectors.clear(),this._listener&&(this._listener.dispose(),this._listener=void 0)}getProvider(e){for(let t of this._selectors.values())if(v.match(t,e))return{send:i=>{this.callback(i)}}}},DK=class extends uo{constructor(e,t){super(e,v.onDidOpenTextDocument,C.DidOpenTextDocumentNotification.type,e.clientOptions.middleware.didOpen,i=>({textDocument:dK(i)}),uo.textDocumentFilter);this._syncedDocuments=t}get registrationType(){return C.DidOpenTextDocumentNotification.type}fillClientCapabilities(e){U(U(e,"textDocument"),"synchronization").dynamicRegistration=!0}initialize(e,t){let i=e.resolvedTextDocumentSync;t&&i&&i.openClose&&this.register({id:Be(),registerOptions:{documentSelector:t}})}register(e){if(super.register(e),!e.registerOptions.documentSelector)return;let t=e.registerOptions.documentSelector;v.textDocuments.forEach(i=>{let r=i.uri.toString();if(!this._syncedDocuments.has(r)&&v.match(t,i)>0){let o=this._client.clientOptions.middleware,s=a=>{this._client.sendNotification(this._type,this._createParams(a))};o.didOpen?o.didOpen(i,s):s(i),this._syncedDocuments.set(r,i)}})}notificationSent(e){super.notificationSent(e),this._syncedDocuments.set(e.uri.toString(),e)}},EK=class extends uo{constructor(e,t){super(e,v.onDidCloseTextDocument,C.DidCloseTextDocumentNotification.type,e.clientOptions.middleware.didClose,i=>gK(i),uo.textDocumentFilter);this._syncedDocuments=t}get registrationType(){return C.DidCloseTextDocumentNotification.type}fillClientCapabilities(e){U(U(e,"textDocument"),"synchronization").dynamicRegistration=!0}initialize(e,t){let i=e.resolvedTextDocumentSync;t&&i&&i.openClose&&this.register({id:Be(),registerOptions:{documentSelector:t}})}notificationSent(e){super.notificationSent(e),this._syncedDocuments.delete(e.uri.toString())}unregister(e){let t=this._selectors.get(e);super.unregister(e);let i=this._selectors.values();this._syncedDocuments.forEach(r=>{if(v.match(t,r)>0&&!this._selectorFilter(i,r)){let o=this._client.clientOptions.middleware,s=a=>{this._client.sendNotification(this._type,this._createParams(a))};this._syncedDocuments.delete(r.uri.toString()),o.didClose?o.didClose(r,s):s(r)}})}},_K=class{constructor(e){this._client=e;this._changeData=new Map}get registrationType(){return C.DidChangeTextDocumentNotification.type}fillClientCapabilities(e){U(U(e,"textDocument"),"synchronization").dynamicRegistration=!0}initialize(e,t){let i=e.resolvedTextDocumentSync;t&&i&&i.change!==void 0&&i.change!==C.TextDocumentSyncKind.None&&this.register({id:Be(),registerOptions:Object.assign({},{documentSelector:t},{syncKind:i.change})})}register(e){!e.registerOptions.documentSelector||(this._listener||(this._listener=v.onDidChangeTextDocument(t=>{this.callback({textDocument:t.textDocument,contentChanges:t.contentChanges.slice()})},this)),this._changeData.set(e.id,{documentSelector:e.registerOptions.documentSelector,syncKind:e.registerOptions.syncKind}))}callback(e){if(e.contentChanges.length===0)return;let t=v.getDocument(e.textDocument.uri);if(!t)return;let{textDocument:i}=t;for(let r of this._changeData.values())if(v.match(r.documentSelector,i)>0){let o=this._client.clientOptions.middleware;if(r.syncKind===C.TextDocumentSyncKind.Incremental){let s=a=>{this._client.sendNotification(C.DidChangeTextDocumentNotification.type,zi(a,["bufnr","original","originalLines"]))};o.didChange?o.didChange(e,s):s(e)}else if(r.syncKind===C.TextDocumentSyncKind.Full){let s=()=>{this._client.sendNotification(C.DidChangeTextDocumentNotification.type,fK(i))};o.didChange?o.didChange(e,s):s(e)}}}unregister(e){this._changeData.delete(e),this._changeData.size===0&&this._listener&&(this._listener.dispose(),this._listener=void 0)}dispose(){this._changeData.clear(),this._listener&&(this._listener.dispose(),this._listener=void 0)}getProvider(e){for(let t of this._changeData.values())if(v.match(t.documentSelector,e))return{send:i=>{this.callback(i)}}}},PK=class extends uo{constructor(e){super(e,v.onWillSaveTextDocument,C.WillSaveTextDocumentNotification.type,e.clientOptions.middleware.willSave,t=>I_(t),(t,i)=>uo.textDocumentFilter(t,i.document))}get registrationType(){return C.WillSaveTextDocumentNotification.type}fillClientCapabilities(e){let t=U(U(e,"textDocument"),"synchronization");t.willSave=!0}initialize(e,t){let i=e.resolvedTextDocumentSync;t&&i&&i.willSave&&this.register({id:Be(),registerOptions:{documentSelector:t}})}},RK=class{constructor(e){this._client=e;this._selectors=new Map}get registrationType(){return C.WillSaveTextDocumentWaitUntilRequest.type}fillClientCapabilities(e){let t=U(U(e,"textDocument"),"synchronization");t.willSaveWaitUntil=!0}initialize(e,t){let i=e.resolvedTextDocumentSync;t&&i&&i.willSaveWaitUntil&&this.register({id:Be(),registerOptions:{documentSelector:t}})}register(e){!e.registerOptions.documentSelector||(this._listener||(this._listener=v.onWillSaveTextDocument(this.callback,this)),this._selectors.set(e.id,e.registerOptions.documentSelector))}callback(e){if(uo.textDocumentFilter(this._selectors.values(),e.document)){let t=this._client.clientOptions.middleware,i=r=>this._client.sendRequest(C.WillSaveTextDocumentWaitUntilRequest.type,I_(r)).then(o=>o||[],o=>(D.showMessage(`Error on willSaveWaitUntil: ${o}`,"error"),lo.error(o),[]));e.waitUntil(t.willSaveWaitUntil?t.willSaveWaitUntil(e,i):i(e))}}unregister(e){this._selectors.delete(e),this._selectors.size===0&&this._listener&&(this._listener.dispose(),this._listener=void 0)}dispose(){this._selectors.clear(),this._listener&&(this._listener.dispose(),this._listener=void 0)}},LK=class extends uo{constructor(e){super(e,v.onDidSaveTextDocument,C.DidSaveTextDocumentNotification.type,e.clientOptions.middleware.didSave,t=>pK(t,this._includeText),uo.textDocumentFilter);this._includeText=!1}get registrationType(){return C.DidSaveTextDocumentNotification.type}fillClientCapabilities(e){U(U(e,"textDocument"),"synchronization").didSave=!0}initialize(e,t){let i=e.resolvedTextDocumentSync;if(t&&i&&i.save){let r=typeof i.save=="boolean"?{includeText:!1}:{includeText:!!i.save.includeText};this.register({id:Be(),registerOptions:Object.assign({},{documentSelector:t},r)})}}register(e){this._includeText=!!e.registerOptions.includeText,super.register(e)}},IK=class{constructor(e,t){this._notifyFileEvent=t;this._watchers=new Map}get registrationType(){return C.DidChangeWatchedFilesNotification.type}fillClientCapabilities(e){U(U(e,"workspace"),"didChangeWatchedFiles").dynamicRegistration=!0}initialize(e,t){}register(e){if(!Array.isArray(e.registerOptions.watchers))return;let t=[];for(let i of e.registerOptions.watchers){if(!Ee(i.globPattern))continue;let r=!0,o=!0,s=!0;i.kind!=null&&(r=(i.kind&C.WatchKind.Create)!==0,o=(i.kind&C.WatchKind.Change)!=0,s=(i.kind&C.WatchKind.Delete)!=0);let a=v.createFileSystemWatcher(i.globPattern,!r,!o,!s);this.hookListeners(a,r,o,s,t),t.push(a)}this._watchers.set(e.id,t)}registerRaw(e,t){let i=[];for(let r of t)i.push(r),this.hookListeners(r,!0,!0,!0,i);this._watchers.set(e,i)}hookListeners(e,t,i,r,o){t&&e.onDidCreate(s=>this._notifyFileEvent({uri:Rf(s),type:C.FileChangeType.Created}),null,o),i&&e.onDidChange(s=>this._notifyFileEvent({uri:Rf(s),type:C.FileChangeType.Changed}),null,o),r&&e.onDidDelete(s=>this._notifyFileEvent({uri:Rf(s),type:C.FileChangeType.Deleted}),null,o)}unregister(e){let t=this._watchers.get(e);if(t)for(let i of t)i.dispose()}dispose(){this._watchers.forEach(e=>{for(let t of e)t.dispose()}),this._watchers.clear()}},Oe=class{constructor(e,t){this._client=e;this._registrationType=t;this._registrations=new Map}get registrationType(){return this._registrationType}register(e){if(!e.registerOptions.documentSelector)return;let t=this.registerLanguageProvider(e.registerOptions);this._registrations.set(e.id,{disposable:t[0],data:e,provider:t[1]})}unregister(e){let t=this._registrations.get(e);t&&t.disposable.dispose()}dispose(){this._registrations.forEach(e=>{e.disposable.dispose()}),this._registrations.clear()}getRegistration(e,t){if(t){if(C.TextDocumentRegistrationOptions.is(t)){let i=C.StaticRegistrationOptions.hasId(t)?t.id:Be(),r=t.documentSelector||e;if(r)return[i,Object.assign({},t,{documentSelector:r})]}else if(zn(t)&&t===!0||C.WorkDoneProgressOptions.is(t)){if(!e)return[void 0,void 0];let i=zn(t)&&t===!0?{documentSelector:e}:Object.assign({},t,{documentSelector:e});return[Be(),i]}}else return[void 0,void 0];return[void 0,void 0]}getRegistrationOptions(e,t){if(!(!e||!t))return zn(t)&&t===!0?{documentSelector:e}:Object.assign({},t,{documentSelector:e})}getProvider(e){for(let t of this._registrations.values()){let i=t.data.registerOptions.documentSelector;if(i!==null&&v.match(i,e)>0)return t.provider}}getAllProviders(){let e=[];for(let t of this._registrations.values())e.push(t.provider);return e}},jK=class{constructor(e,t){this._client=e;this._registrationType=t;this._registrations=new Map}get registrationType(){return this._registrationType}register(e){let t=this.registerLanguageProvider(e.registerOptions);this._registrations.set(e.id,{disposable:t[0],provider:t[1]})}unregister(e){let t=this._registrations.get(e);t&&t.disposable.dispose()}dispose(){this._registrations.forEach(e=>{e.disposable.dispose()}),this._registrations.clear()}getProviders(){let e=[];for(let t of this._registrations.values())e.push(t.provider);return e}},FK=class extends Oe{constructor(e){super(e,C.CompletionRequest.type)}fillClientCapabilities(e){let t=this._client.clientOptions.disableSnippetCompletion!==!0,i=U(U(e,"textDocument"),"completion");i.dynamicRegistration=!0,i.contextSupport=!0,i.completionItem={snippetSupport:t,commitCharactersSupport:!0,documentationFormat:this._client.supportedMarkupKind,deprecatedSupport:!0,preselectSupport:!0,insertReplaceSupport:!0,tagSupport:{valueSet:[C.CompletionItemTag.Deprecated]},resolveSupport:{properties:["documentation","detail","additionalTextEdits"]},insertTextModeSupport:{valueSet:[C.InsertTextMode.asIs,C.InsertTextMode.adjustIndentation]}},i.completionItemKind={valueSet:fTe},i.insertTextMode=C.InsertTextMode.adjustIndentation}initialize(e,t){this.index=0;let i=this.getRegistrationOptions(t,e.completionProvider);!i||this.register({id:Be(),registerOptions:i})}registerLanguageProvider(e){let t=e.triggerCharacters||[],i=e.allCommitCharacters||[],r=e.priority,o={provideCompletionItems:(l,u,c,h)=>{let d=this._client,g=this._client.clientOptions.middleware,f=(p,b,y,w)=>d.sendRequest(C.CompletionRequest.type,mK(p,b,y),w).then(x=>x!=null?x:[],x=>d.handleFailedRequest(C.CompletionRequest.type,w,x,[]));return g.provideCompletionItem?g.provideCompletionItem(l,u,h,c,f):f(l,u,h,c)},resolveCompletionItem:e.resolveProvider?(l,u)=>{let c=this._client,h=this._client.clientOptions.middleware,d=(g,f)=>c.sendRequest(C.CompletionResolveRequest.type,g,f).then(p=>p,p=>c.handleFailedRequest(C.CompletionResolveRequest.type,f,p,g));return h.resolveCompletionItem?h.resolveCompletionItem(l,u,d):d(l,u)}:void 0},s=this._client.id+(this.index?"-"+this.index:"");_t.removeSource(s);let a=F.registerCompletionItemProvider(s,"LS",e.documentSelector||this._client.clientOptions.documentSelector,o,t,r,i);return this.index=this.index+1,[a,o]}},OK=class extends Oe{constructor(e){super(e,C.HoverRequest.type)}fillClientCapabilities(e){let t=U(U(e,"textDocument"),"hover");t.dynamicRegistration=!0,t.contentFormat=this._client.supportedMarkupKind}initialize(e,t){let i=this.getRegistrationOptions(t,e.hoverProvider);!i||this.register({id:Be(),registerOptions:i})}registerLanguageProvider(e){let t={provideHover:(i,r,o)=>{let s=this._client,a=(u,c,h)=>s.sendRequest(C.HoverRequest.type,wn(u,c),h).then(d=>d,d=>s.handleFailedRequest(C.HoverRequest.type,h,d,null)),l=s.clientOptions.middleware;return l.provideHover?l.provideHover(i,r,o,a):a(i,r,o)}};return[F.registerHoverProvider(e.documentSelector,t),t]}},MK=class extends Oe{constructor(e){super(e,C.SignatureHelpRequest.type)}fillClientCapabilities(e){let t=U(U(e,"textDocument"),"signatureHelp");t.dynamicRegistration=!0,t.contextSupport=!0,t.signatureInformation={documentationFormat:this._client.supportedMarkupKind,activeParameterSupport:!0,parameterInformation:{labelOffsetSupport:!0}}}initialize(e,t){let i=this.getRegistrationOptions(t,e.signatureHelpProvider);!i||this.register({id:Be(),registerOptions:i})}registerLanguageProvider(e){let t={provideSignatureHelp:(o,s,a,l)=>{let u=this._client,c=(d,g,f,p)=>u.sendRequest(C.SignatureHelpRequest.type,bK(d,g,f),p).then(b=>b,b=>u.handleFailedRequest(C.SignatureHelpRequest.type,p,b,null)),h=u.clientOptions.middleware;return h.provideSignatureHelp?h.provideSignatureHelp(o,s,l,a,c):c(o,s,l,a)}},i=e.triggerCharacters||[];return[F.registerSignatureHelpProvider(e.documentSelector,t,i),t]}},AK=class extends Oe{constructor(e){super(e,C.DefinitionRequest.type)}fillClientCapabilities(e){let t=U(U(e,"textDocument"),"definition");t.dynamicRegistration=!0}initialize(e,t){let i=this.getRegistrationOptions(t,e.definitionProvider);!i||this.register({id:Be(),registerOptions:i})}registerLanguageProvider(e){let t={provideDefinition:(i,r,o)=>{let s=this._client,a=(u,c,h)=>s.sendRequest(C.DefinitionRequest.type,wn(u,c),h).then(d=>d,d=>s.handleFailedRequest(C.DefinitionRequest.type,h,d,null)),l=s.clientOptions.middleware;return l.provideDefinition?l.provideDefinition(i,r,o,a):a(i,r,o)}};return[F.registerDefinitionProvider(e.documentSelector,t),t]}},NK=class extends Oe{constructor(e){super(e,C.ReferencesRequest.type)}fillClientCapabilities(e){U(U(e,"textDocument"),"references").dynamicRegistration=!0}initialize(e,t){let i=this.getRegistrationOptions(t,e.referencesProvider);!i||this.register({id:Be(),registerOptions:i})}registerLanguageProvider(e){let t={provideReferences:(i,r,o,s)=>{let a=this._client,l=(c,h,d,g)=>a.sendRequest(C.ReferencesRequest.type,yK(c,h,d),g).then(f=>f,f=>a.handleFailedRequest(C.ReferencesRequest.type,g,f,null)),u=a.clientOptions.middleware;return u.provideReferences?u.provideReferences(i,r,o,s,l):l(i,r,o,s)}};return[F.registerReferencesProvider(e.documentSelector,t),t]}},HK=class extends Oe{constructor(e){super(e,C.DocumentHighlightRequest.type)}fillClientCapabilities(e){U(U(e,"textDocument"),"documentHighlight").dynamicRegistration=!0}initialize(e,t){let i=this.getRegistrationOptions(t,e.documentHighlightProvider);!i||this.register({id:Be(),registerOptions:i})}registerLanguageProvider(e){let t={provideDocumentHighlights:(i,r,o)=>{let s=this._client,a=(u,c,h)=>s.sendRequest(C.DocumentHighlightRequest.type,wn(u,c),h).then(d=>d,d=>s.handleFailedRequest(C.DocumentHighlightRequest.type,h,d,null)),l=s.clientOptions.middleware;return l.provideDocumentHighlights?l.provideDocumentHighlights(i,r,o,a):a(i,r,o)}};return[F.registerDocumentHighlightProvider(e.documentSelector,t),t]}},qK=class extends Oe{constructor(e){super(e,C.DocumentSymbolRequest.type)}fillClientCapabilities(e){let t=U(U(e,"textDocument"),"documentSymbol");t.dynamicRegistration=!0,t.symbolKind={valueSet:TK},t.hierarchicalDocumentSymbolSupport=!0,t.tagSupport={valueSet:kK},t.labelSupport=!0}initialize(e,t){let i=this.getRegistrationOptions(t,e.documentSymbolProvider);!i||this.register({id:Be(),registerOptions:i})}registerLanguageProvider(e){let t={provideDocumentSymbols:(r,o)=>{let s=this._client,a=(u,c)=>s.sendRequest(C.DocumentSymbolRequest.type,vK(u),c).then(h=>{if(h!==null){if(h.length===0)return[];{let d=h[0];return C.DocumentSymbol.is(d),h}}},h=>s.handleFailedRequest(C.DocumentSymbolRequest.type,c,h,null)),l=s.clientOptions.middleware;return l.provideDocumentSymbols?l.provideDocumentSymbols(r,o,a):a(r,o)}},i=e.label?{label:e.label}:void 0;return[F.registerDocumentSymbolProvider(e.documentSelector,t,i),t]}},BK=class extends jK{constructor(e){super(e,C.WorkspaceSymbolRequest.type)}fillClientCapabilities(e){let t=U(U(e,"workspace"),"symbol");t.dynamicRegistration=!0,t.symbolKind={valueSet:TK},t.tagSupport={valueSet:kK}}initialize(e){!e.workspaceSymbolProvider||this.register({id:Be(),registerOptions:e.workspaceSymbolProvider===!0?{workDoneProgress:!1}:e.workspaceSymbolProvider})}registerLanguageProvider(e){let t={provideWorkspaceSymbols:(i,r)=>{let o=this._client,s=(l,u)=>o.sendRequest(C.WorkspaceSymbolRequest.type,{query:l},u).then(c=>c,c=>o.handleFailedRequest(C.WorkspaceSymbolRequest.type,u,c,null)),a=o.clientOptions.middleware;return a.provideWorkspaceSymbols?a.provideWorkspaceSymbols(i,r,s):s(i,r)}};return[F.registerWorkspaceSymbolProvider(t),t]}},YK=class extends Oe{constructor(e){super(e,C.CodeActionRequest.type);this.disposables=[]}fillClientCapabilities(e){let t=U(U(e,"textDocument"),"codeAction");t.dynamicRegistration=!0,t.isPreferredSupport=!0,t.disabledSupport=!0,t.dataSupport=!0,t.honorsChangeAnnotations=!1,t.resolveSupport={properties:["edit"]},t.codeActionLiteralSupport={codeActionKind:{valueSet:[C.CodeActionKind.Empty,C.CodeActionKind.QuickFix,C.CodeActionKind.Refactor,C.CodeActionKind.RefactorExtract,C.CodeActionKind.RefactorInline,C.CodeActionKind.RefactorRewrite,C.CodeActionKind.Source,C.CodeActionKind.SourceOrganizeImports]}}}initialize(e,t){let i=this.getRegistrationOptions(t,e.codeActionProvider);!i||this.register({id:Be(),registerOptions:i})}registerLanguageProvider(e){let t=r=>{if(re.has(r))return;let o=this._client,s=(l,u)=>{let c={command:l,arguments:u};return o.sendRequest(C.ExecuteCommandRequest.type,c).then(void 0,h=>{throw o.handleFailedRequest(C.ExecuteCommandRequest.type,void 0,h,void 0),h})},a=o.clientOptions.middleware;this.disposables.push(re.registerCommand(r,(...l)=>a.executeCommand?a.executeCommand(r,l,s):s(r,l),null,!0))},i={provideCodeActions:(r,o,s,a)=>{let l=this._client,u=(h,d,g,f)=>{let p={textDocument:{uri:h.uri},range:d,context:g};return l.sendRequest(C.CodeActionRequest.type,p,f).then(b=>{if(b!==null)return b.forEach(y=>{var x;let w=C.Command.is(y)?y.command:(x=y.command)==null?void 0:x.command;w&&!re.has(w)&&t(w)}),b},b=>l.handleFailedRequest(C.CodeActionRequest.type,f,b,null))},c=l.clientOptions.middleware;return c.provideCodeActions?c.provideCodeActions(r,o,s,a,u):u(r,o,s,a)},resolveCodeAction:e.resolveProvider?(r,o)=>{let s=this._client,a=this._client.clientOptions.middleware,l=(u,c)=>s.sendRequest(C.CodeActionResolveRequest.type,u,c).then(h=>h,h=>s.handleFailedRequest(C.CodeActionResolveRequest.type,c,h,u));return a.resolveCodeAction?a.resolveCodeAction(r,o,l):l(r,o)}:void 0};return[F.registerCodeActionProvider(e.documentSelector,i,this._client.id,e.codeActionKinds),i]}dispose(){this.disposables.forEach(e=>{e.dispose()}),this.disposables=[],super.dispose()}},WK=class extends Oe{constructor(e){super(e,C.CodeLensRequest.type)}fillClientCapabilities(e){U(U(e,"textDocument"),"codeLens").dynamicRegistration=!0,U(U(e,"workspace"),"codeLens").refreshSupport=!0}initialize(e,t){this._client.onRequest(C.CodeLensRefreshRequest.type,async()=>{for(let o of this.getAllProviders())o.onDidChangeCodeLensEmitter.fire()});let r=this.getRegistrationOptions(t,e.codeLensProvider);!r||this.register({id:Be(),registerOptions:r})}registerLanguageProvider(e){let t=new C.Emitter,i={onDidChangeCodeLenses:t.event,provideCodeLenses:(r,o)=>{let s=this._client,a=(u,c)=>s.sendRequest(C.CodeLensRequest.type,wK(u),c).then(h=>h,h=>s.handleFailedRequest(C.CodeLensRequest.type,c,h,null)),l=s.clientOptions.middleware;return l.provideCodeLenses?l.provideCodeLenses(r,o,a):a(r,o)},resolveCodeLens:e.resolveProvider?(r,o)=>{let s=this._client,a=(u,c)=>s.sendRequest(C.CodeLensResolveRequest.type,u,c).then(h=>h,h=>s.handleFailedRequest(C.CodeLensResolveRequest.type,c,h,u)),l=s.clientOptions.middleware;return l.resolveCodeLens?l.resolveCodeLens(r,o,a):a(r,o)}:void 0};return[F.registerCodeLensProvider(e.documentSelector,i),{provider:i,onDidChangeCodeLensEmitter:t}]}},ZK=class extends Oe{constructor(e){super(e,C.DocumentFormattingRequest.type)}fillClientCapabilities(e){U(U(e,"textDocument"),"formatting").dynamicRegistration=!0}initialize(e,t){let i=this.getRegistrationOptions(t,e.documentFormattingProvider);!i||this.register({id:Be(),registerOptions:i})}registerLanguageProvider(e){let t={provideDocumentFormattingEdits:(i,r,o)=>{let s=this._client,a=(u,c,h)=>{let d={textDocument:{uri:u.uri},options:c};return s.sendRequest(C.DocumentFormattingRequest.type,d,h).then(g=>g,g=>s.handleFailedRequest(C.DocumentFormattingRequest.type,h,g,null))},l=s.clientOptions.middleware;return l.provideDocumentFormattingEdits?l.provideDocumentFormattingEdits(i,r,o,a):a(i,r,o)}};return[F.registerDocumentFormatProvider(e.documentSelector,t,this._client.clientOptions.formatterPriority),t]}},JK=class extends Oe{constructor(e){super(e,C.DocumentRangeFormattingRequest.type)}fillClientCapabilities(e){U(U(e,"textDocument"),"rangeFormatting").dynamicRegistration=!0}initialize(e,t){let i=this.getRegistrationOptions(t,e.documentRangeFormattingProvider);!i||this.register({id:Be(),registerOptions:i})}registerLanguageProvider(e){let t={provideDocumentRangeFormattingEdits:(i,r,o,s)=>{let a=this._client,l=(c,h,d,g)=>{let f={textDocument:{uri:c.uri},range:h,options:d};return a.sendRequest(C.DocumentRangeFormattingRequest.type,f,g).then(p=>p,p=>a.handleFailedRequest(C.DocumentRangeFormattingRequest.type,g,p,null))},u=a.clientOptions.middleware;return u.provideDocumentRangeFormattingEdits?u.provideDocumentRangeFormattingEdits(i,r,o,s,l):l(i,r,o,s)}};return[F.registerDocumentRangeFormatProvider(e.documentSelector,t),t]}},$K=class extends Oe{constructor(e){super(e,C.DocumentOnTypeFormattingRequest.type)}fillClientCapabilities(e){U(U(e,"textDocument"),"onTypeFormatting").dynamicRegistration=!0}initialize(e,t){let i=this.getRegistrationOptions(t,e.documentOnTypeFormattingProvider);!i||this.register({id:Be(),registerOptions:i})}registerLanguageProvider(e){let t={provideOnTypeFormattingEdits:(o,s,a,l,u)=>{let c=this._client,h=(g,f,p,b,y)=>{let w={textDocument:rw(g),position:f,ch:p,options:b};return c.sendRequest(C.DocumentOnTypeFormattingRequest.type,w,y).then(x=>x,x=>c.handleFailedRequest(C.DocumentOnTypeFormattingRequest.type,y,x,null))},d=c.clientOptions.middleware;return d.provideOnTypeFormattingEdits?d.provideOnTypeFormattingEdits(o,s,a,l,u,h):h(o,s,a,l,u)}},i=e.moreTriggerCharacter||[],r=[e.firstTriggerCharacter,...i];return[F.registerOnTypeFormattingEditProvider(e.documentSelector,t,r),t]}},XK=class extends Oe{constructor(e){super(e,C.RenameRequest.type)}fillClientCapabilities(e){let t=U(U(e,"textDocument"),"rename");t.dynamicRegistration=!0,t.prepareSupport=!0}initialize(e,t){let i=this.getRegistrationOptions(t,e.renameProvider);!i||(zn(e.renameProvider)&&(i.prepareProvider=!1),this.register({id:Be(),registerOptions:i}))}registerLanguageProvider(e){let t={provideRenameEdits:(i,r,o,s)=>{let a=this._client,l=(c,h,d,g)=>{let f={textDocument:{uri:c.uri},position:h,newName:d};return a.sendRequest(C.RenameRequest.type,f,g).then(p=>p,p=>a.handleFailedRequest(C.RenameRequest.type,g,p,null))},u=a.clientOptions.middleware;return u.provideRenameEdits?u.provideRenameEdits(i,r,o,s,l):l(i,r,o,s)},prepareRename:e.prepareProvider?(i,r,o)=>{let s=this._client,a=(u,c,h)=>{let d={textDocument:Yl(u),position:c};return s.sendRequest(C.PrepareRenameRequest.type,d,h).then(g=>C.Range.is(g)?g:this.isDefaultBehavior(g)?g.defaultBehavior===!0?null:Promise.reject(new Error("The element can't be renamed.")):g&&C.Range.is(g.range)?{range:g.range,placeholder:g.placeholder}:Promise.reject(new Error("The element can't be renamed.")),g=>s.handleFailedRequest(C.PrepareRenameRequest.type,h,g,void 0))},l=s.clientOptions.middleware;return l.prepareRename?l.prepareRename(i,r,o,a):a(i,r,o)}:void 0};return[F.registerRenameProvider(e.documentSelector,t),t]}isDefaultBehavior(e){let t=e;return t&&zn(t.defaultBehavior)}},UK=class extends Oe{constructor(e){super(e,C.DocumentLinkRequest.type)}fillClientCapabilities(e){let t=U(U(e,"textDocument"),"documentLink");t.dynamicRegistration=!0,t.tooltipSupport=!0}initialize(e,t){let i=this.getRegistrationOptions(t,e.documentLinkProvider);!i||this.register({id:Be(),registerOptions:i})}registerLanguageProvider(e){let t={provideDocumentLinks:(i,r)=>{let o=this._client,s=(l,u)=>o.sendRequest(C.DocumentLinkRequest.type,{textDocument:{uri:l.uri}},u).then(c=>c,c=>o.handleFailedRequest(C.DocumentLinkRequest.type,u,c,null)),a=o.clientOptions.middleware;return a.provideDocumentLinks?a.provideDocumentLinks(i,r,s):s(i,r)},resolveDocumentLink:e.resolveProvider?(i,r)=>{let o=this._client,s=(l,u)=>o.sendRequest(C.DocumentLinkResolveRequest.type,l,u).then(c=>c,c=>o.handleFailedRequest(C.DocumentLinkResolveRequest.type,u,c,l)),a=o.clientOptions.middleware;return a.resolveDocumentLink?a.resolveDocumentLink(i,r,s):s(i,r)}:void 0};return[F.registerDocumentLinkProvider(e.documentSelector,t),t]}},GK=class{constructor(e){this._client=e;this._listeners=new Map}get registrationType(){return C.DidChangeConfigurationNotification.type}fillClientCapabilities(e){U(U(e,"workspace"),"didChangeConfiguration").dynamicRegistration=!0}initialize(){var t;let e=(t=this._client.clientOptions.synchronize)==null?void 0:t.configurationSection;e!==void 0&&this.register({id:Be(),registerOptions:{section:e}})}register(e){let{section:t}=e.registerOptions,i=v.onDidChangeConfiguration(r=>{this.onDidChangeConfiguration(e.registerOptions.section,r)});this._listeners.set(e.id,i),t!=null&&this.onDidChangeConfiguration(t,void 0)}unregister(e){let t=this._listeners.get(e);t&&(this._listeners.delete(e),t.dispose())}dispose(){for(let e of this._listeners.values())e.dispose();this._listeners.clear()}onDidChangeConfiguration(e,t){let i=typeof e=="string"&&e.startsWith("languageserver."),r;if(Ee(e)?r=[e]:r=e,r!=null&&t!=null&&!r.some(l=>t.affectsConfiguration(l)))return;let o=a=>{if(a==null){this._client.sendNotification(C.DidChangeConfigurationNotification.type,{settings:null});return}this._client.sendNotification(C.DidChangeConfigurationNotification.type,{settings:i?this.getConfiguredSettings(a[0]):this.extractSettingsInformation(a)})},s=this.getMiddleware();s?s(r,o):o(r)}getConfiguredSettings(e){let t=9,i=v.getConfiguration(e.slice(0,-t));return YY(i.get("settings",{}))}extractSettingsInformation(e){function t(r,o){let s=r;for(let a=0;a<o.length-1;a++){let l=s[o[a]];l||(l=Object.create(null),s[o[a]]=l),s=l}return s}let i=Object.create(null);for(let r=0;r<e.length;r++){let o=e[r],s=o.indexOf("."),a=null;if(s>=0?a=v.getConfiguration(o.substr(0,s)).get(o.substr(s+1)):a=v.getConfiguration(o),a){let l=e[r].split(".");t(i,l)[l[l.length-1]]=a}}return i}getMiddleware(){let e=this._client.clientOptions.middleware;if(e.workspace&&e.workspace.didChangeConfiguration)return e.workspace.didChangeConfiguration}},KK=class{constructor(e){this._client=e;this._commands=new Map}get registrationType(){return C.ExecuteCommandRequest.type}fillClientCapabilities(e){U(U(e,"workspace"),"executeCommand").dynamicRegistration=!0}initialize(e){!e.executeCommandProvider||this.register({id:Be(),registerOptions:Object.assign({},e.executeCommandProvider)})}register(e){let t=this._client,i=t.clientOptions.middleware,r=(o,s)=>{let a={command:o,arguments:s};return t.sendRequest(C.ExecuteCommandRequest.type,a).then(void 0,l=>{throw t.handleFailedRequest(C.ExecuteCommandRequest.type,void 0,l,void 0),l})};if(e.registerOptions.commands){let o=[];for(let s of e.registerOptions.commands)o.push(re.registerCommand(s,(...a)=>i.executeCommand?i.executeCommand(s,a,r):r(s,a),null,!0));this._commands.set(e.id,o)}}unregister(e){let t=this._commands.get(e);t&&t.forEach(i=>i.dispose())}dispose(){this._commands.forEach(e=>{e.forEach(t=>t.dispose())}),this._commands.clear()}};(e=>{function n(t){return t&&C.MessageReader.is(t.reader)&&C.MessageWriter.is(t.writer)}e.is=n})(hh||(hh={}));M_=class{constructor(e,t){this._resolve=e;this._reject=t;this._used=!1}get isUsed(){return this._used}resolve(){this._used=!0,this._resolve()}reject(e){this._used=!0,this._reject(e)}},q_=class{constructor(e,t,i){this._features=[];this._dynamicFeatures=new Map;var l;this._id=e,this._name=t,i.outputChannel?this._outputChannel=i.outputChannel:this._outputChannel=void 0;let r=!1;(v.getConfiguration("suggest").get("snippetsSupport",!0)===!1||i.disableSnippetCompletion)&&(r=!0);let s={isTrusted:!1,supportHtml:!1};i.markdown!=null&&(s.isTrusted=i.markdown.isTrusted===!0,s.supportHtml=i.markdown.supportHtml===!0),this._clientOptions={disableSnippetCompletion:r,disableDynamicRegister:i.disableDynamicRegister,disabledFeatures:i.disabledFeatures||[],formatterPriority:i.formatterPriority,ignoredRootPaths:i.ignoredRootPaths,documentSelector:i.documentSelector||[],synchronize:i.synchronize||{},diagnosticCollectionName:i.diagnosticCollectionName,outputChannelName:i.outputChannelName||this._id,revealOutputChannelOn:i.revealOutputChannelOn||4,stdioEncoding:i.stdioEncoding||"utf8",initializationOptions:i.initializationOptions,initializationFailedHandler:i.initializationFailedHandler,progressOnInitialization:!!i.progressOnInitialization,errorHandler:i.errorHandler||this.createDefaultErrorHandler((l=i.connectionOptions)==null?void 0:l.maxRestartCount),middleware:i.middleware||{},workspaceFolder:i.workspaceFolder,connectionOptions:i.connectionOptions,markdown:s};for(let u of["disableCompletion","disableWorkspaceFolders","disableDiagnostics"])if(typeof i[u]=="boolean"){let c=`
`+Error().stack.split(`
`).slice(2,4).join(`
`);if(lo.warn(`${u} in the client options is deprecated. use disabledFeatures instead.`,c),this.warn(`${u} in the client options is deprecated. use disabledFeatures instead.`,c),i[u]===!0){let h=u.slice(7);this._clientOptions.disabledFeatures.push(h[0].toLowerCase()+h.slice(1))}}this.state=0,this._connectionPromise=void 0,this._resolvedConnection=void 0,this._initializeResult=void 0,this._listeners=void 0,this._providers=void 0,this._diagnostics=void 0,this._fileEvents=[],this._fileEventDelayer=new L_(250),this._onReady=new Promise((u,c)=>{this._onReadyCallbacks=new M_(u,c)}),this._onStop=void 0,this._stateChangeEmitter=new C.Emitter,this._trace=C.Trace.Off,this._tracer={log:(u,c)=>{Ee(u)?this.logTrace(u,c):this.logObjectTrace(u)}},this._syncedDocuments=new Map;let a=v.getConfiguration("coc.preferences");this._markdownSupport=a.get("enableMarkdown",!0),this.registerBuiltinFeatures()}get supportedMarkupKind(){return this._markdownSupport?[C.MarkupKind.Markdown,C.MarkupKind.PlainText]:[C.MarkupKind.PlainText]}get state(){return this._state}get id(){return this._id}get name(){return this._name}set state(e){let t=this.getPublicState();this._state=e;let i=this.getPublicState();i!==t&&this._stateChangeEmitter.fire({oldState:t,newState:i})}getPublicState(){return this.state===3?2:this.state===1?3:1}get initializeResult(){return this._initializeResult}sendRequest(e,...t){if(!this.isConnectionActive())throw new Error("Language client is not ready yet");try{return this._resolvedConnection.sendRequest(e,...t)}catch(i){throw this.error(`Sending request ${Ee(e)?e:e.method} failed.`,i),i}}onRequest(e,t){if(!this.isConnectionActive())throw new Error("Language client is not ready yet");try{return this._resolvedConnection.onRequest(e,t)}catch(i){throw this.error(`Registering request handler ${Ee(e)?e:e.method} failed.`,i),i}}sendNotification(e,t){if(!this.isConnectionActive())throw new Error("Language client is not ready yet");try{this._resolvedConnection.sendNotification(e,t)}catch(i){throw this.error(`Sending notification ${Ee(e)?e:e.method} failed.`,i),i}}onNotification(e,t){if(!this.isConnectionActive())throw new Error("Language client is not ready yet");try{return this._resolvedConnection.onNotification(e,t)}catch(i){throw this.error(`Registering notification handler ${Ee(e)?e:e.method} failed.`,i),i}}onProgress(e,t,i){if(!this.isConnectionActive())throw new Error("Language client is not ready yet");try{if(e==C.WorkDoneProgress.type){let r=this._clientOptions.middleware.handleWorkDoneProgress;if(r!==void 0)return this._resolvedConnection.onProgress(e,t,o=>{r(t,o,()=>i(o))})}return this._resolvedConnection.onProgress(e,t,i)}catch(r){throw this.error(`Registering progress handler for token ${t} failed.`,r),r}}sendProgress(e,t,i){if(!this.isConnectionActive())throw new Error("Language client is not ready yet");try{this._resolvedConnection.sendProgress(e,t,i)}catch(r){throw this.error(`Sending progress for token ${t} failed.`,r),r}}get clientOptions(){return this._clientOptions}get onDidChangeState(){return this._stateChangeEmitter.event}get outputChannel(){if(!this._outputChannel){let{outputChannelName:e}=this._clientOptions;this._outputChannel=D.createOutputChannel(e||this._name)}return this._outputChannel}get diagnostics(){return this._diagnostics}createDefaultErrorHandler(e){return new SK(this._id,e!=null?e:4)}set trace(e){this._trace=e,this.onReady().then(()=>{this.resolveConnection().then(t=>{t.trace(this._trace,this._tracer,{sendNotification:!1,traceFormat:this._traceFormat})})},()=>{})}logObjectTrace(e){e.isLSPMessage&&e.type?this.outputChannel.append(`[LSP - ${new Date().toLocaleTimeString()}] `):this.outputChannel.append(`[Trace - ${new Date().toLocaleTimeString()}] `),e&&this.outputChannel.appendLine(`${JSON.stringify(e)}`)}data2String(e){if(e instanceof C.ResponseError){let t=e;return` Message: ${t.message}
Code: ${t.code} ${t.data?`
`+t.data.toString():""}`}return e instanceof Error?Ee(e.stack)?e.stack:e.message:Ee(e)?e:e.toString()}_appendOutput(e,t,i){let r=3;switch(e){case"Info":r=1;break;case"Warn":r=2;break}this.outputChannel.appendLine(`[${e} - ${new Date().toLocaleTimeString()}] ${t}`);let o;i&&(o=this.data2String(i),this.outputChannel.appendLine(o)),this._clientOptions.revealOutputChannelOn<=r&&this.outputChannel.show(!0)}info(e,t){this._appendOutput("Info",e,t)}warn(e,t){this._appendOutput("Warn",e,t)}error(e,t){this._appendOutput("Error",e,t)}logTrace(e,t){this.outputChannel.appendLine(`[Trace - ${new Date().toLocaleTimeString()}] ${e}`),t&&this.outputChannel.appendLine(this.data2String(t))}needsStart(){return this.state===0||this.state===4||this.state===5}needsStop(){return this.state===1||this.state===3}onReady(){return this._onReady}get started(){return this.state!=0}isConnectionActive(){return this.state===3&&!!this._resolvedConnection}start(){if(this._rootPath=this.resolveRootPath(),this._rootPath===!1)return this.warn("Required root pattern not resolved, server won't start."),C.Disposable.create(()=>{});if(this._onReadyCallbacks.isUsed&&(this._onReady=new Promise((e,t)=>{this._onReadyCallbacks=new M_(e,t)})),this._listeners=[],this._providers=[],!this._diagnostics){let e=this._clientOptions,t=e.diagnosticCollectionName?e.diagnosticCollectionName:this._id;e.disabledFeatures.includes("diagnostics")||(this._diagnostics=F.createDiagnosticCollection(t))}return this.state=1,this.resolveConnection().then(e=>(e.onLogMessage(t=>{let i;switch(t.type){case C.MessageType.Error:i="error",this.error(t.message);break;case C.MessageType.Warning:i="warning",this.warn(t.message);break;case C.MessageType.Info:i="info",this.info(t.message);break;default:i="log",this.outputChannel.appendLine(t.message)}if(global.hasOwnProperty("__TEST__")){console.log(`[${i}] ${t.message}`);return}}),e.onShowMessage(t=>{switch(t.type){case C.MessageType.Error:D.showErrorMessage(t.message);break;case C.MessageType.Warning:D.showWarningMessage(t.message);break;case C.MessageType.Info:D.showInformationMessage(t.message);break;default:D.showInformationMessage(t.message)}}),e.onRequest(C.ShowMessageRequest.type,t=>{let i;switch(t.type){case C.MessageType.Error:i=D.showErrorMessage.bind(D);break;case C.MessageType.Warning:i=D.showWarningMessage.bind(D);break;case C.MessageType.Info:i=D.showInformationMessage.bind(D);break;default:i=D.showInformationMessage.bind(D)}let r=t.actions||[];return i(t.message,...r).then(o=>o==null?null:o)}),e.onRequest(C.ShowDocumentRequest.type,async t=>{var o;let i=async s=>{try{if(s.external===!0||/^https?:\/\//.test(s.uri))return await v.openResource(s.uri),{success:!0};{let{selection:a,takeFocus:l}=s;return l===!1?await v.loadFile(s.uri):(await v.jumpTo(s.uri,a==null?void 0:a.start),xe(a.start,a.end)!=0&&await D.selectRange(a)),{success:!0}}}catch{return{success:!0}}},r=(o=this._clientOptions.middleware.window)==null?void 0:o.showDocument;return r!==void 0?r(t,i):i(t)}),e.onTelemetry(t=>{}),e.listen(),this.initialize(e))).then(void 0,e=>{this.state=2,this._onReadyCallbacks.reject(e),this.error("Starting client failed ",e)}),C.Disposable.create(()=>{this.needsStop()&&this.stop()})}resolveConnection(){return this._connectionPromise||(this._connectionPromise=this.createConnection()),this._connectionPromise}resolveRootPath(){if(this._clientOptions.workspaceFolder)return M.parse(this._clientOptions.workspaceFolder.uri).fsPath;let{ignoredRootPaths:e}=this._clientOptions,t=v.getConfiguration(this.id),i=t.get("rootPatterns",[]),r=t.get("requireRootPattern",!1),o;if(i&&i.length){let a=v.getDocument(v.bufnr);if(a&&a.schema=="file"){let l=F_.default.dirname(M.parse(a.uri).fsPath);o=ab(l,i,v.cwd)}}if(r&&!o)return!1;let s=o||v.rootPath||v.cwd;return ei(s,xK.default.homedir())||Array.isArray(e)&&e.some(a=>ei(s,a))?(this.warn(`Ignored rootPath ${s} of client "${this._id}"`),null):s}initialize(e){let{initializationOptions:t,progressOnInitialization:i}=this._clientOptions;this.refreshTrace(e,!1);let r=this._rootPath,o={processId:process.pid,rootPath:r||null,rootUri:r?Rf(M.file(r)):null,capabilities:this.computeClientCapabilities(),initializationOptions:Zs(t)?t():t,trace:C.Trace.toString(this._trace),workspaceFolders:null,locale:this.getLocale(),clientInfo:{name:"coc.nvim",version:v.version}};if(this.fillInitializeParams(o),i){let s=Be();o.workDoneToken=s;let a=new Pf(e,s);return a.begin({title:`initializing ${this.id}`,kind:"begin"}),this.doInitialize(e,o).then(l=>(a.done(),l),l=>{throw a.cancel(),l})}else return this.doInitialize(e,o)}doInitialize(e,t){return e.initialize(t).then(i=>{this._resolvedConnection=e,this._initializeResult=i,this.state=3;let r;return $m(i.capabilities.textDocumentSync)?i.capabilities.textDocumentSync===C.TextDocumentSyncKind.None?r={openClose:!1,change:C.TextDocumentSyncKind.None,save:void 0}:r={openClose:!0,change:i.capabilities.textDocumentSync,save:{includeText:!1}}:i.capabilities.textDocumentSync!=null&&i.capabilities.textDocumentSync!==void 0&&(r=i.capabilities.textDocumentSync),this._capabilities=Object.assign({},i.capabilities,{resolvedTextDocumentSync:r}),e.onDiagnostics(o=>this.handleDiagnostics(o)),e.onRequest(C.RegistrationRequest.type,o=>this.handleRegistrationRequest(o)),e.onRequest("client/registerFeature",o=>this.handleRegistrationRequest(o)),e.onRequest(C.UnregistrationRequest.type,o=>this.handleUnregistrationRequest(o)),e.onRequest("client/unregisterFeature",o=>this.handleUnregistrationRequest(o)),e.onRequest(C.ApplyWorkspaceEditRequest.type,o=>this.handleApplyWorkspaceEdit(o)),e.sendNotification(C.InitializedNotification.type,{}),this.hookFileEvents(e),this.hookConfigurationChanged(e),this.initializeFeatures(e),this._onReadyCallbacks.resolve(),i}).then(void 0,i=>{throw this._clientOptions.initializationFailedHandler?this._clientOptions.initializationFailedHandler(i)?this.initialize(e):(this.stop(),this._onReadyCallbacks.reject(i)):i instanceof C.ResponseError&&i.data&&i.data.retry?D.showPrompt(i.message+" Retry?").then(r=>{r?this.initialize(e):(this.stop(),this._onReadyCallbacks.reject(i))}):(i&&i.message&&D.showMessage(i.message,"error"),this.error("Server initialization failed.",i),this.stop(),this._onReadyCallbacks.reject(i)),i})}stop(){if(this._initializeResult=void 0,!this._connectionPromise)return this.state=5,Promise.resolve();if(this.state===4&&this._onStop)return this._onStop;this.state=4,this.cleanUp();let e=this.resolveConnection().then(t=>{let i=!1,r=setTimeout(()=>{i=!0,t.end(),t.dispose()},2e3);return t.shutdown().then(()=>(clearTimeout(r),t.exit(),t),o=>{if(!i)throw t.end(),t.dispose(),o})});return(this._onStop=e.then(t=>{t&&t.unlisten()},t=>{throw lo.error("Stopping server failed:",t),this.error("Stopping server failed",t),t})).finally(()=>{this.state=5,this.cleanUpChannel(),this._onStop=void 0,this._connectionPromise=void 0,this._resolvedConnection=void 0})}cleanUp(e=!0,t=!0){this._listeners&&(this._listeners.forEach(i=>i.dispose()),this._listeners=void 0),this._providers&&(this._providers.forEach(i=>i.dispose()),this._providers=void 0);for(let i of this._features.values())typeof i.dispose=="function"?i.dispose():lo.error("Feature can't be disposed",i);this._syncedDocuments&&this._syncedDocuments.clear(),e&&this.cleanUpChannel(),this._diagnostics&&(t?(this._diagnostics.dispose(),this._diagnostics=void 0):this._diagnostics.clear())}cleanUpChannel(){this._outputChannel&&(this._outputChannel.dispose(),this._outputChannel=void 0)}notifyFileEvent(e){var o;let t=this;function i(s){t._fileEvents.push(s),t._fileEventDelayer.trigger(()=>{t.onReady().then(()=>{t.resolveConnection().then(a=>{t.isConnectionActive()&&a.didChangeWatchedFiles({changes:t._fileEvents}),t._fileEvents=[]})},a=>{t.error("Notify file events failed.",a)})})}let r=(o=this.clientOptions.middleware)==null?void 0:o.workspace;r!=null&&r.didChangeWatchedFile?r.didChangeWatchedFile(e,i):i(e)}handleDiagnostics(e){if(!this._diagnostics)return;let{uri:t,diagnostics:i,version:r}=e;if(typeof r=="number"){let s=v.getDocument(t);if(!s||s.version!=r)return}let o=this.clientOptions.middleware.handleDiagnostics;o?o(t,i,(s,a)=>this.setDiagnostics(s,a)):this.setDiagnostics(t,i)}setDiagnostics(e,t){var r;if(!this._diagnostics)return;if(v.getConfiguration("diagnostic").get("separateRelatedInformationAsDiagnostics")&&t.length>0){let o=new Map;o.set(e,t);for(let s of t){if((r=s.relatedInformation)!=null&&r.length){let a=`${s.message}
Related diagnostics:
`;for(let l of s.relatedInformation){let u=F_.default.basename(M.parse(l.location.uri).fsPath),c=l.location.range.start.line;a=`${a}
${u}(line ${c+1}): ${l.message}`;let h=o.get(l.location.uri)||[];h.push(C.Diagnostic.create(l.location.range,l.message,C.DiagnosticSeverity.Hint,s.code,s.source)),o.set(l.location.uri,h)}s.message=a}this._diagnostics.set(Array.from(o))}}else this._diagnostics.set(e,t)}createConnection(){let e=(i,r,o)=>{lo.error("connection error:",i,r),this.handleConnectionError(i,r,o)},t=()=>{this.handleConnectionClosed()};return this.createMessageTransports(this._clientOptions.stdioEncoding||"utf8").then(i=>gTe(i.reader,i.writer,e,t,this._clientOptions.connectionOptions))}handleConnectionClosed(){if(this.state===5){lo.debug(`client ${this._id} normal close`);return}try{this._resolvedConnection&&this._resolvedConnection.dispose()}catch{}let e=1;if(this.state!==4)try{e=this._clientOptions.errorHandler.closed()}catch{}this._connectionPromise=void 0,this._resolvedConnection=void 0,e===1?(this.error("Connection to server got closed. Server will not be restarted."),this.state===1?(this._onReadyCallbacks.reject(new Error("Connection to server got closed. Server will not be restarted.")),this.state=2):this.state=5,this.cleanUp(!1,!0)):e===2&&(this.info("Connection to server got closed. Server will restart."),this.cleanUp(!1,!0),this.state=0,this.start())}restart(){this.cleanUp(!0,!1),this.start()}handleConnectionError(e,t,i){this._clientOptions.errorHandler.error(e,t,i)===2&&(this.error("Connection to server is erroring. Shutting down server."),this.stop())}hookConfigurationChanged(e){v.onDidChangeConfiguration(t=>{t.affectsConfiguration(this._id)&&this.refreshTrace(e,!0)},null,this._listeners)}refreshTrace(e,t=!1){let i=v.getConfiguration(this._id),r=C.Trace.Off,o=C.TraceFormat.Text;if(i){let s=i.get("trace.server","off");typeof s=="string"?r=C.Trace.fromString(s):(r=C.Trace.fromString(i.get("trace.server.verbosity","off")),o=C.TraceFormat.fromString(i.get("trace.server.format","text")))}t&&this._trace==r&&this._traceFormat==o||(this._trace=r,this._traceFormat=o,e.trace(this._trace,this._tracer,{sendNotification:t,traceFormat:this._traceFormat}))}hookFileEvents(e){let t=this._clientOptions.synchronize.fileEvents;if(!t)return;let i;Array.isArray(t)?i=t:i=[t],i&&this._dynamicFeatures.get(C.DidChangeWatchedFilesNotification.type.method).registerRaw(Be(),i)}registerFeatures(e){for(let t of e)this.registerFeature(t)}registerFeature(e){if(this._features.push(e),O_.is(e)){let t=e.registrationType;this._dynamicFeatures.set(t.method,e)}}getFeature(e){return this._dynamicFeatures.get(e)}registerBuiltinFeatures(){let{disabledFeatures:e}=this._clientOptions;e.includes("configuration")||this.registerFeature(new GK(this)),this.registerFeature(new DK(this,this._syncedDocuments)),this.registerFeature(new _K(this)),this.registerFeature(new EK(this,this._syncedDocuments)),e.includes("willSave")||this.registerFeature(new PK(this)),e.includes("willSaveWaitUntil")||this.registerFeature(new RK(this)),e.includes("didSave")||this.registerFeature(new LK(this)),e.includes("fileSystemWatcher")||this.registerFeature(new IK(this,t=>this.notifyFileEvent(t))),e.includes("completion")||this.registerFeature(new FK(this)),e.includes("hover")||this.registerFeature(new OK(this)),e.includes("signatureHelp")||this.registerFeature(new MK(this)),e.includes("references")||this.registerFeature(new NK(this)),e.includes("definition")||this.registerFeature(new AK(this)),e.includes("documentHighlight")||this.registerFeature(new HK(this)),e.includes("documentSymbol")||this.registerFeature(new qK(this)),e.includes("codeAction")||this.registerFeature(new YK(this)),e.includes("workspaceSymbol")||this.registerFeature(new BK(this)),e.includes("codeLens")||this.registerFeature(new WK(this)),e.includes("documentFormatting")||this.registerFeature(new ZK(this)),e.includes("documentRangeFormatting")||this.registerFeature(new JK(this)),e.includes("documentOnTypeFormatting")||this.registerFeature(new $K(this)),e.includes("rename")||this.registerFeature(new XK(this)),e.includes("documentLink")||this.registerFeature(new UK(this)),e.includes("executeCommand")||this.registerFeature(new KK(this))}fillInitializeParams(e){for(let t of this._features)Zs(t.fillInitializeParams)&&t.fillInitializeParams(e)}computeClientCapabilities(){let e={};U(e,"workspace").applyEdit=!0;let t=U(U(e,"workspace"),"workspaceEdit");t.documentChanges=!0,t.resourceOperations=[C.ResourceOperationKind.Create,C.ResourceOperationKind.Rename,C.ResourceOperationKind.Delete],t.failureHandling=C.FailureHandlingKind.TextOnlyTransactional,t.normalizesLineEndings=!0;let i=U(U(e,"textDocument"),"publishDiagnostics");i.relatedInformation=!0,i.versionSupport=!0,i.tagSupport={valueSet:[C.DiagnosticTag.Unnecessary,C.DiagnosticTag.Deprecated]},i.codeDescriptionSupport=!0,i.dataSupport=!0;let r=U(e,"window"),o=U(r,"showMessage");o.messageActionItem={additionalPropertiesSupport:!0};let s=U(r,"showDocument");s.support=!0;let a=U(e,"general");a.regularExpressions={engine:"ECMAScript",version:"ES2020"},a.markdown={parser:"marked",version:"4.0.10"};for(let l of this._features)l.fillClientCapabilities(e);return e}initializeFeatures(e){let t=this._clientOptions.documentSelector;for(let i of this._features)i.initialize(this._capabilities,t)}handleRegistrationRequest(e){return this.clientOptions.disableDynamicRegister?Promise.resolve():new Promise((t,i)=>{for(let r of e.registrations){let o=this._dynamicFeatures.get(r.method);if(!o){i(new Error(`No feature implementation for ${r.method} found. Registration failed.`));return}let s=r.registerOptions||{};s.documentSelector=s.documentSelector||this._clientOptions.documentSelector;let a={id:r.id,registerOptions:s};try{o.register(a)}catch(l){i(l);return}}t()})}handleUnregistrationRequest(e){return new Promise((t,i)=>{for(let r of e.unregisterations){let o=this._dynamicFeatures.get(r.method);if(!o){i(new Error(`No feature implementation for ${r.method} found. Unregistration failed.`));return}o.unregister(r.id)}t()})}handleApplyWorkspaceEdit(e){let t=e.edit,i=new Map;v.textDocuments.forEach(o=>i.set(o.uri.toString(),o));let r=!1;if(t.documentChanges){for(let o of t.documentChanges)if(C.TextDocumentEdit.is(o)&&o.textDocument.version&&o.textDocument.version>=0){let s=i.get(o.textDocument.uri);if(s&&s.version!==o.textDocument.version){r=!0;break}}}return r?Promise.resolve({applied:!1}):v.applyEdit(e.edit).then(o=>({applied:o}))}getLocale(){let e=process.env.LANG;return e?e.split(".")[0]:"en"}handleFailedRequest(e,t,i,r){if(i instanceof C.ResponseError){if(i.code===C.LSPErrorCodes.RequestCancelled){if(t!==void 0&&t.isCancellationRequested)return r}else if(i.code===C.LSPErrorCodes.ContentModified)return r}this.error(`Request ${e.method} failed.`,i)}logFailedRequest(e,t){t instanceof C.ResponseError&&t.code===C.LSPErrorCodes.RequestCancelled||this.error(`Request ${e.method} failed.`,t)}}});var Zl,B_,zK=P(()=>{"use strict";Zl=S(q());Se();xn();"use strict";B_=class extends Oe{constructor(e){super(e,Zl.DocumentColorRequest.type)}fillClientCapabilities(e){U(U(e,"textDocument"),"colorProvider").dynamicRegistration=!0}initialize(e,t){let[i,r]=this.getRegistration(t,e.colorProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){let t={provideColorPresentations:(i,r,o)=>{let s=this._client,a=(u,c,h)=>{let d={color:u,textDocument:{uri:c.document.uri},range:c.range};return s.sendRequest(Zl.ColorPresentationRequest.type,d,h).then(g=>g,g=>s.handleFailedRequest(Zl.ColorPresentationRequest.type,h,g,null))},l=s.clientOptions.middleware;return l.provideColorPresentations?l.provideColorPresentations(i,r,o,a):a(i,r,o)},provideDocumentColors:(i,r)=>{let o=this._client,s=(l,u)=>{let c={textDocument:{uri:l.uri}};return o.sendRequest(Zl.DocumentColorRequest.type,c,u).then(h=>h,h=>o.handleFailedRequest(Zl.ColorPresentationRequest.type,u,h,null))},a=o.clientOptions.middleware;return a.provideDocumentColors?a.provideDocumentColors(i,r,s):s(i,r)}};return[F.registerDocumentColorProvider(e.documentSelector,t),t]}}});function If(n){if(n){if(Array.isArray(n))return n.map(If);if(typeof n=="object"){let e=Object.create(null);for(let t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=If(n[t]));return e}}return n}var QK,XWe,Y_,VK=P(()=>{"use strict";QK=S(q());Q();XWe=Y()("languageclient-configuration"),Y_=class{constructor(e){this._client=e;var i;let t=(i=this._client.clientOptions.synchronize)==null?void 0:i.configurationSection;typeof t=="string"&&t.startsWith("languageserver.")&&(this.languageserverSection=t)}fillClientCapabilities(e){e.workspace=e.workspace||{},e.workspace.configuration=!0}initialize(){let e=this._client;e.onRequest(QK.ConfigurationRequest.type,(t,i)=>{let r=s=>{let a=[];for(let l of s.items)a.push(this.getConfiguration(l.scopeUri,l.section));return a},o=e.clientOptions.middleware.workspace;return o&&o.configuration?o.configuration(t,i,r):r(t,i)})}getConfiguration(e,t){let i=null;if(t){this.languageserverSection&&(t=`${this.languageserverSection}.${t}`);let r=t.lastIndexOf(".");if(r===-1)i=If(v.getConfiguration(void 0,e).get(t));else{let o=v.getConfiguration(t.substr(0,r),e);o&&(i=If(o.get(t.substr(r+1))))}}else{let r=v.getConfiguration(this.languageserverSection,e);i={};for(let o of Object.keys(r))r.has(o)&&(i[o]=If(r.get(o)))}return i}dispose(){}}});var uw,W_,ez=P(()=>{"use strict";uw=S(q());Se();xn();Da();"use strict";W_=class extends Oe{constructor(e){super(e,uw.DeclarationRequest.type)}fillClientCapabilities(e){let t=U(U(e,"textDocument"),"declaration");t.dynamicRegistration=!0}initialize(e,t){let[i,r]=this.getRegistration(t,e.declarationProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){let t={provideDeclaration:(i,r,o)=>{let s=this._client,a=(u,c,h)=>s.sendRequest(uw.DeclarationRequest.type,wn(u,c),h).then(d=>d,d=>s.handleFailedRequest(uw.DeclarationRequest.type,h,d,null)),l=s.clientOptions.middleware;return l.provideDeclaration?l.provideDeclaration(i,r,o,a):a(i,r,o)}};return[F.registerDeclarationProvider(e.documentSelector,t),t]}}});var cw,Z_,tz=P(()=>{"use strict";cw=S(q());Se();xn();"use strict";Z_=class extends Oe{constructor(e){super(e,cw.FoldingRangeRequest.type)}fillClientCapabilities(e){let t=U(U(e,"textDocument"),"foldingRange");t.dynamicRegistration=!0,t.rangeLimit=5e3,t.lineFoldingOnly=!0}initialize(e,t){let[i,r]=this.getRegistration(t,e.foldingRangeProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){let t={provideFoldingRanges:(i,r,o)=>{let s=this._client,a=(u,c,h)=>{let d={textDocument:{uri:u.uri}};return s.sendRequest(cw.FoldingRangeRequest.type,d,h).then(g=>g,g=>s.handleFailedRequest(cw.FoldingRangeRequest.type,h,g,null))},l=s.clientOptions.middleware;return l.provideFoldingRanges?l.provideFoldingRanges(i,r,o,a):a(i,r,o)}};return[F.registerFoldingRangeProvider(e.documentSelector,t),t]}}});var hw,J_,iz=P(()=>{"use strict";hw=S(q());Se();xn();Da();J_=class extends Oe{constructor(e){super(e,hw.ImplementationRequest.type)}fillClientCapabilities(e){let t=U(U(e,"textDocument"),"implementation");t.dynamicRegistration=!0}initialize(e,t){let[i,r]=this.getRegistration(t,e.implementationProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){let t={provideImplementation:(i,r,o)=>{let s=this._client,a=(u,c,h)=>s.sendRequest(hw.ImplementationRequest.type,wn(u,c),h).then(d=>d,d=>s.handleFailedRequest(hw.ImplementationRequest.type,h,d,null)),l=s.clientOptions.middleware;return l.provideImplementation?l.provideImplementation(i,r,o,a):a(i,r,o)}};return[F.registerImplementationProvider(e.documentSelector,t),t]}}});var nz,$_,rz=P(()=>{"use strict";nz=S(q());xn();P_();"use strict";$_=class{constructor(e){this._client=e;this.activeParts=new Set}fillClientCapabilities(e){U(e,"window").workDoneProgress=!0}initialize(){let e=this._client,t=r=>{this.activeParts.delete(r)},i=r=>{this.activeParts.add(new Pf(this._client,r.token,t))};e.onRequest(nz.WorkDoneProgressCreateRequest.type,i)}dispose(){for(let e of this.activeParts)e.done();this.activeParts.clear()}}});var dw,X_,oz=P(()=>{"use strict";dw=S(q());Se();xn();Da();X_=class extends Oe{constructor(e){super(e,dw.TypeDefinitionRequest.type)}fillClientCapabilities(e){let t=U(U(e,"textDocument"),"typeDefinition");t.dynamicRegistration=!0}initialize(e,t){let[i,r]=this.getRegistration(t,e.typeDefinitionProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){let t={provideTypeDefinition:(i,r,o)=>{let s=this._client,a=(u,c,h)=>s.sendRequest(dw.TypeDefinitionRequest.type,wn(u,c),h).then(d=>d,d=>s.handleFailedRequest(dw.TypeDefinitionRequest.type,h,d,null)),l=s.clientOptions.middleware;return l.provideTypeDefinition?l.provideTypeDefinition(i,r,o,a):a(i,r,o)}};return[F.registerTypeDefinitionProvider(e.documentSelector,t),t]}}});function U_(n,e){if(n!==void 0)return n[e]}function sz(n,e){return n.filter(t=>!e.includes(t))}var jf,mJe,G_,az=P(()=>{"use strict";jf=S(q());we();Xe();Q();ow();"use strict";mJe=Y()("language-client-workspaceFolder");G_=class{constructor(e){this._client=e;this._listeners=new Map}get registrationType(){return jf.DidChangeWorkspaceFoldersNotification.type}getValidWorkspaceFolders(){let{workspaceFolders:e}=v;if(!e||e.length==0)return;let{ignoredRootPaths:t}=this._client.clientOptions;Array.isArray(t)||(t=[]);let i=e.filter(r=>{let o=M.parse(r.uri).fsPath;return t.every(s=>!ei(s,o))});return i.length?i:void 0}asProtocol(e){return e==null?null:{uri:e.uri,name:e.name}}fillInitializeParams(e){let t=this.getValidWorkspaceFolders();this._initialFolders=t,t==null?(this._client.warn("No valid workspaceFolder exists"),e.workspaceFolders=null):e.workspaceFolders=t.map(i=>this.asProtocol(i))}fillClientCapabilities(e){e.workspace=e.workspace||{},e.workspace.workspaceFolders=!0}initialize(e){let t=this._client;t.onRequest(jf.WorkspaceFoldersRequest.type,o=>{let s=()=>{let l=this.getValidWorkspaceFolders();return l===void 0?null:l.map(c=>this.asProtocol(c))},a=t.clientOptions.middleware.workspace;return a&&a.workspaceFolders?a.workspaceFolders(o,s):s(o)});let i=U_(U_(U_(e,"workspace"),"workspaceFolders"),"changeNotifications"),r;typeof i=="string"?r=i:i===!0&&(r=Be()),r&&this.register({id:r,registerOptions:void 0})}doSendEvent(e,t){let i={event:{added:e.map(r=>this.asProtocol(r)),removed:t.map(r=>this.asProtocol(r))}};this._client.sendNotification(jf.DidChangeWorkspaceFoldersNotification.type,i)}sendInitialEvent(e){if(this._initialFolders&&e){let t=sz(this._initialFolders,e),i=sz(e,this._initialFolders);(i.length>0||t.length>0)&&this.doSendEvent(i,t)}else this._initialFolders?this.doSendEvent([],this._initialFolders):e&&this.doSendEvent(e,[])}register(e){let t=e.id,i=this._client,r=v.onDidChangeWorkspaceFolders(s=>{let a=u=>{this.doSendEvent(u.added,u.removed)},l=i.clientOptions.middleware.workspace;l&&l.didChangeWorkspaceFolders?l.didChangeWorkspaceFolders(s,a):a(s)});this._listeners.set(t,r);let o=this.getValidWorkspaceFolders();this.sendInitialEvent(o)}unregister(e){let t=this._listeners.get(e);t!==void 0&&(this._listeners.delete(e),t.dispose())}dispose(){for(let e of this._listeners.values())e.dispose();this._listeners.clear()}}});var gw,K_,lz=P(()=>{"use strict";gw=S(q());Se();xn();"use strict";K_=class extends Oe{constructor(e){super(e,gw.SelectionRangeRequest.type)}fillClientCapabilities(e){let t=U(U(e,"textDocument"),"selectionRange");t.dynamicRegistration=!0}initialize(e,t){let[i,r]=this.getRegistration(t,e.selectionRangeProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){let t={provideSelectionRanges:(i,r,o)=>{let s=this._client,a=(u,c,h)=>{let d={textDocument:{uri:u.uri},positions:c};return s.sendRequest(gw.SelectionRangeRequest.type,d,h).then(g=>g,g=>s.handleFailedRequest(gw.SelectionRangeRequest.type,h,g,null))},l=s.clientOptions.middleware;return l.provideSelectionRanges?l.provideSelectionRanges(i,r,o,a):a(i,r,o)}};return[F.registerSelectionRangeProvider(e.documentSelector,t),t]}}});var co,z_,uz=P(()=>{"use strict";co=S(q());Se();xn();Da();"use strict";z_=class extends Oe{constructor(e){super(e,co.CallHierarchyPrepareRequest.type)}fillClientCapabilities(e){let i=U(U(e,"textDocument"),"callHierarchy");i.dynamicRegistration=!0}initialize(e,t){let[i,r]=this.getRegistration(t,e.callHierarchyProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){let t={prepareCallHierarchy:(i,r,o)=>{let s=this._client,a=(u,c,h)=>{let d=wn(u,c);return s.sendRequest(co.CallHierarchyPrepareRequest.type,d,h).then(g=>g,g=>s.handleFailedRequest(co.CallHierarchyPrepareRequest.type,h,g,null))},l=s.clientOptions.middleware;return l.prepareCallHierarchy?l.prepareCallHierarchy(i,r,o,a):a(i,r,o)},provideCallHierarchyIncomingCalls:(i,r)=>{let o=this._client,s=(l,u)=>o.sendRequest(co.CallHierarchyIncomingCallsRequest.type,{item:l},u).then(c=>c,c=>o.handleFailedRequest(co.CallHierarchyIncomingCallsRequest.type,u,c,null)),a=o.clientOptions.middleware;return a.provideCallHierarchyIncomingCalls?a.provideCallHierarchyIncomingCalls(i,r,s):s(i,r)},provideCallHierarchyOutgoingCalls:(i,r)=>{let o=this._client,s=(l,u)=>o.sendRequest(co.CallHierarchyOutgoingCallsRequest.type,{item:l},u).then(c=>c,c=>o.handleFailedRequest(co.CallHierarchyOutgoingCallsRequest.type,u,c,null)),a=o.clientOptions.middleware;return a.provideCallHierarchyOutgoingCalls?a.provideCallHierarchyOutgoingCalls(i,r,s):s(i,r)}};return[F.registerCallHierarchyProvider(e.documentSelector,t),t]}}});var le,d$e,Q_,cz=P(()=>{"use strict";le=S(q());Se();jn();xn();Da();"use strict";d$e=Y()("languageclient-semanticTokens"),Q_=class extends Oe{constructor(e){super(e,le.SemanticTokensRegistrationType.type)}fillClientCapabilities(e){let t=U(U(e,"textDocument"),"semanticTokens");t.dynamicRegistration=!0,t.tokenTypes=[le.SemanticTokenTypes.namespace,le.SemanticTokenTypes.type,le.SemanticTokenTypes.class,le.SemanticTokenTypes.enum,le.SemanticTokenTypes.interface,le.SemanticTokenTypes.struct,le.SemanticTokenTypes.typeParameter,le.SemanticTokenTypes.parameter,le.SemanticTokenTypes.variable,le.SemanticTokenTypes.property,le.SemanticTokenTypes.enumMember,le.SemanticTokenTypes.event,le.SemanticTokenTypes.function,le.SemanticTokenTypes.method,le.SemanticTokenTypes.macro,le.SemanticTokenTypes.keyword,le.SemanticTokenTypes.modifier,le.SemanticTokenTypes.comment,le.SemanticTokenTypes.string,le.SemanticTokenTypes.number,le.SemanticTokenTypes.regexp,le.SemanticTokenTypes.operator],t.tokenModifiers=[le.SemanticTokenModifiers.declaration,le.SemanticTokenModifiers.definition,le.SemanticTokenModifiers.readonly,le.SemanticTokenModifiers.static,le.SemanticTokenModifiers.deprecated,le.SemanticTokenModifiers.abstract,le.SemanticTokenModifiers.async,le.SemanticTokenModifiers.modification,le.SemanticTokenModifiers.documentation,le.SemanticTokenModifiers.defaultLibrary],t.formats=[le.TokenFormat.Relative],t.requests={range:!0,full:{delta:!0}},t.multilineTokenSupport=!1,t.overlappingTokenSupport=!1,U(U(e,"workspace"),"semanticTokens").refreshSupport=!0}initialize(e,t){this._client.onRequest(le.SemanticTokensRefreshRequest.type,async()=>{for(let s of this.getAllProviders())s.onDidChangeSemanticTokensEmitter.fire()});let[r,o]=this.getRegistration(t,e.semanticTokensProvider);!r||!o||this.register({id:r,registerOptions:o})}registerLanguageProvider(e){let t=zn(e.full)?e.full:e.full!==void 0,i=e.full!==void 0&&typeof e.full!="boolean"&&e.full.delta===!0,r=new le.Emitter,o=t?{onDidChangeSemanticTokens:r.event,provideDocumentSemanticTokens:(u,c)=>{let h=this._client,d=h.clientOptions.middleware,g=(f,p)=>{let b={textDocument:Yl(f)};return h.sendRequest(le.SemanticTokensRequest.type,b,p).then(y=>y,y=>h.handleFailedRequest(le.SemanticTokensRequest.type,p,y,null))};return d.provideDocumentSemanticTokens?d.provideDocumentSemanticTokens(u,c,g):g(u,c)},provideDocumentSemanticTokensEdits:i?(u,c,h)=>{let d=this._client,g=d.clientOptions.middleware,f=(p,b,y)=>{let w={textDocument:Yl(p),previousResultId:b};return d.sendRequest(le.SemanticTokensDeltaRequest.type,w,y).then(x=>x,x=>d.handleFailedRequest(le.SemanticTokensDeltaRequest.type,y,x,null))};return g.provideDocumentSemanticTokensEdits?g.provideDocumentSemanticTokensEdits(u,c,h,f):f(u,c,h)}:void 0}:void 0,a=e.range===!0?{provideDocumentRangeSemanticTokens:(u,c,h)=>{let d=this._client,g=d.clientOptions.middleware,f=(p,b,y)=>{let w={textDocument:Yl(p),range:b};return d.sendRequest(le.SemanticTokensRangeRequest.type,w,y).then(x=>x,x=>d.handleFailedRequest(le.SemanticTokensRangeRequest.type,y,x,null))};return g.provideDocumentRangeSemanticTokens?g.provideDocumentRangeSemanticTokens(u,c,h,f):f(u,c,h)}}:void 0,l=[];return o!==void 0&&l.push(F.registerDocumentSemanticTokensProvider(e.documentSelector,o,e.legend)),a!==void 0&&l.push(F.registerDocumentRangeSemanticTokensProvider(e.documentSelector,a,e.legend)),[le.Disposable.create(()=>l.forEach(u=>u.dispose())),{range:a,full:o,onDidChangeSemanticTokensEmitter:r}]}}});var fw,D$e,V_,hz=P(()=>{"use strict";fw=S(q());Se();xn();Da();D$e=Y()("languageclient-linkedEditingRange"),V_=class extends Oe{constructor(e){super(e,fw.LinkedEditingRangeRequest.type)}fillClientCapabilities(e){let t=U(U(e,"textDocument"),"linkedEditingRange");t.dynamicRegistration=!0}initialize(e,t){let[i,r]=this.getRegistration(t,e.linkedEditingRangeProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){let t={provideLinkedEditingRanges:(i,r,o)=>{let s=this._client,a=(u,c,h)=>{let d=wn(u,c);return s.sendRequest(fw.LinkedEditingRangeRequest.type,d,h).then(g=>g,g=>s.handleFailedRequest(fw.LinkedEditingRangeRequest.type,h,g,null))},l=s.clientOptions.middleware;return l.provideLinkedEditingRange?l.provideLinkedEditingRange(i,r,o,a):a(i,r,o)}};return[F.registerLinkedEditingRangeProvider(e.documentSelector,t),t]}}});function pTe(n,e){return n[e]}function dz(n,e,t){n[e]=t}function pw(n){return{files:n.files.map(e=>({uri:e.toString()}))}}function fz(n){return{files:n.files.map(e=>({oldUri:e.oldUri.toString(),newUri:e.newUri.toString()}))}}var gz,Mi,nXe,Jl,mw,eP,tP,iP,bw,nP,rP,oP,pz=P(()=>{"use strict";gz=S(Vn()),Mi=S(q());Lr();Xe();Q();xn();ow();nXe=Y()("language-client-fileOperations");Jl=class{constructor(e,t,i,r,o){this._filters=new Map;this._client=e,this._event=t,this._registrationType=i,this._clientCapability=r,this._serverCapability=o}get registrationType(){return this._registrationType}fillClientCapabilities(e){let t=U(U(e,"workspace"),"fileOperations");dz(t,"dynamicRegistration",!0),dz(t,this._clientCapability,!0)}initialize(e){var r;let t=(r=e.workspace)==null?void 0:r.fileOperations,i=t!==void 0?pTe(t,this._serverCapability):void 0;if((i==null?void 0:i.filters)!==void 0)try{this.register({id:Be(),registerOptions:{filters:i.filters}})}catch(o){this._client.warn(`Ignoring invalid glob pattern for ${this._serverCapability} registration: ${o}`)}}register(e){this._listener||(this._listener=this._event(this.send,this));let t=e.registerOptions.filters.map(i=>{let r=new gz.Minimatch(i.pattern.glob,Jl.asMinimatchOptions(i.pattern.options));if(!r.makeRe())throw new Error(`Invalid pattern ${i.pattern.glob}!`);return{scheme:i.scheme,matcher:r,kind:i.pattern.matches}});this._filters.set(e.id,t)}unregister(e){this._filters.delete(e),this._filters.size===0&&this._listener&&(this._listener.dispose(),this._listener=void 0)}dispose(){this._filters.clear(),this._listener&&(this._listener.dispose(),this._listener=void 0)}async filter(e,t){let i=await Promise.all(e.files.map(async o=>{let s=t(o),a=s.fsPath.replace(/\\/g,"/");for(let l of this._filters.values())for(let u of l)if(!(u.scheme!==void 0&&u.scheme!==s.scheme)){if(u.matcher.match(a)){if(u.kind===void 0)return!0;let c=await Jl.getFileType(s);if(c===void 0)return this._client.error(`Failed to determine file type for ${s.toString()}.`),!0;if(c===1&&u.kind===Mi.FileOperationPatternKind.file||c===2&&u.kind===Mi.FileOperationPatternKind.folder)return!0}else if(u.kind===Mi.FileOperationPatternKind.folder&&await Jl.getFileType(s)===2&&u.matcher.match(`${a}/`))return!0}return!1})),r=e.files.filter((o,s)=>i[s]);return Hh(me({},e),{files:r})}static async getFileType(e){try{let t=await Mt(e.fsPath);return t.isFile()?1:t.isDirectory()?2:t.isSymbolicLink()?64:0}catch{return}}static asMinimatchOptions(e){if(e!==void 0&&e.ignoreCase===!0)return{nocase:!0}}},mw=class extends Jl{constructor(e,t,i,r,o,s,a){super(e,t,i,r,o);this._notificationType=i,this._accessUri=s,this._createParams=a}async send(e){let t=await this.filter(e,this._accessUri);if(t.files.length){let i=async r=>{this._client.sendNotification(this._notificationType,this._createParams(r))};this.doSend(t,i)}}},eP=class extends mw{constructor(e){super(e,v.onDidCreateFiles,Mi.DidCreateFilesNotification.type,"didCreate","didCreate",t=>t,t=>pw(t))}doSend(e,t){var r;let i=(r=this._client.clientOptions.middleware)==null?void 0:r.workspace;return i!=null&&i.didCreateFiles?i.didCreateFiles(e,t):t(e)}},tP=class extends mw{constructor(e){super(e,v.onDidRenameFiles,Mi.DidRenameFilesNotification.type,"didRename","didRename",t=>t.oldUri,t=>fz(t))}doSend(e,t){var r;let i=(r=this._client.clientOptions.middleware)==null?void 0:r.workspace;return i!=null&&i.didRenameFiles?i.didRenameFiles(e,t):t(e)}},iP=class extends mw{constructor(e){super(e,v.onDidDeleteFiles,Mi.DidDeleteFilesNotification.type,"didDelete","didDelete",t=>t,t=>pw(t))}doSend(e,t){var r;let i=(r=this._client.clientOptions.middleware)==null?void 0:r.workspace;return i!=null&&i.didDeleteFiles?i.didDeleteFiles(e,t):t(e)}},bw=class extends Jl{constructor(e,t,i,r,o,s,a){super(e,t,i,r,o);this._requestType=i,this._accessUri=s,this._createParams=a}async send(e){let t=this.waitUntil(e);e.waitUntil(t)}async waitUntil(e){let t=await this.filter(e,this._accessUri);if(t.files.length){let i=r=>this._client.sendRequest(this._requestType,this._createParams(r));return this.doSend(t,i)}else return}},nP=class extends bw{constructor(e){super(e,v.onWillCreateFiles,Mi.WillCreateFilesRequest.type,"willCreate","willCreate",t=>t,t=>pw(t))}doSend(e,t){var r;let i=(r=this._client.clientOptions.middleware)==null?void 0:r.workspace;return i!=null&&i.willCreateFiles?i.willCreateFiles(e,t):t(e)}},rP=class extends bw{constructor(e){super(e,v.onWillRenameFiles,Mi.WillRenameFilesRequest.type,"willRename","willRename",t=>t.oldUri,t=>fz(t))}doSend(e,t){var r;let i=(r=this._client.clientOptions.middleware)==null?void 0:r.workspace;return i!=null&&i.willRenameFiles?i.willRenameFiles(e,t):t(e)}},oP=class extends bw{constructor(e){super(e,v.onWillDeleteFiles,Mi.WillDeleteFilesRequest.type,"willDelete","willDelete",t=>t,t=>pw(t))}doSend(e,t){var r;let i=(r=this._client.clientOptions.middleware)==null?void 0:r.workspace;return i!=null&&i.willDeleteFiles?i.willDeleteFiles(e,t):t(e)}}});var rs,yw,dh,ht,TXe,sP,aP,vw,gh,lP,uP,cP,Ff,hP,mTe,dP=P(()=>{"use strict";rs=S(require("child_process")),yw=S(require("fs")),dh=S(require("path")),ht=S(aK());Lr();z();jn();uK();Q();xn();zK();VK();ez();tz();iz();rz();oz();az();lz();uz();cz();hz();pz();xn();TXe=rs.default.ChildProcess,sP=Y()("language-client-index");(e=>{function n(t){return Ee(t.command)}e.is=n})(aP||(aP={}));vw=(r=>(r[r.stdio=0]="stdio",r[r.ipc=1]="ipc",r[r.pipe=2]="pipe",r[r.socket=3]="socket",r))(vw||{});(e=>{function n(t){let i=t;return i&&i.kind===3&&$m(i.port)}e.isSocket=n})(gh||(gh={}));(e=>{function n(t){return Ee(t.module)}e.is=n})(lP||(lP={}));(e=>{function n(t){let i=t;return i&&i.writer!==void 0&&i.reader!==void 0}e.is=n})(uP||(uP={}));(e=>{function n(t){let i=t;return i&&i.process!==void 0&&typeof i.detached=="boolean"}e.is=n})(cP||(cP={}));Ff=class extends q_{constructor(e,t,i,r,o){let s,a,l,u,c;Ee(t)?(s=e,a=t,l=i,u=r,c=!!o):(s=e.toLowerCase(),a=e,l=t,u=i,c=r),c===void 0&&(c=!1);super(s,a,u);this._serverOptions=l,this._forceDebug=c,this.registerProposedFeatures()}stop(){return super.stop().then(()=>{if(this._serverProcess){let e=this._serverProcess;this._serverProcess=void 0,(this._isDetached===void 0||!this._isDetached)&&this.checkProcessDied(e),this._isDetached=void 0}})}get serviceState(){let e=this._state;switch(e){case 0:return 0;case 3:return 3;case 2:return 2;case 1:return 1;case 5:return 5;case 4:return 4;default:return sP.error(`Unknown state: ${e}`),5}}static stateName(e){switch(e){case 0:return"Initial";case 3:return"Running";case 2:return"StartFailed";case 1:return"Starting";case 5:return"Stopped";case 4:return"Stopping";default:return"Unknown"}}checkProcessDied(e){!e||global.__TEST__||setTimeout(()=>{try{process.kill(e.pid,0),lK(e)}catch{}},2e3)}handleConnectionClosed(){this._serverProcess=void 0,super.handleConnectionClosed()}createMessageTransports(e){function t(c,h){if(!c&&!h)return;let d=Object.create(null);return Object.keys(process.env).forEach(g=>d[g]=process.env[g]),c&&Object.keys(c).forEach(g=>d[g]=c[g]),d}let i=["--debug=","--debug-brk=","--inspect=","--inspect-brk="],r=["--debug","--debug-brk","--inspect","--inspect-brk"];function o(){let c=process.execArgv;return c?c.some(h=>i.some(d=>h.startsWith(d))||r.some(d=>h===d)):!1}function s(c){if(c.stdin===null||c.stdout===null||c.stderr===null)throw new Error("Process created without stdio streams")}let a=this._serverOptions;if(Zs(a))return a().then(c=>{if(hh.is(c))return this._isDetached=!!c.detached,c;if(uP.is(c))return this._isDetached=!!c.detached,{reader:new ht.StreamMessageReader(c.reader),writer:new ht.StreamMessageWriter(c.writer)};{let h;return cP.is(c)?(h=c.process,this._isDetached=c.detached):(h=c,this._isDetached=!1),h.stderr.on("data",d=>this.outputChannel.append(Ee(d)?d:d.toString(e))),{reader:new ht.StreamMessageReader(h.stdout),writer:new ht.StreamMessageWriter(h.stdin)}}});let l,u=a;return u.run||u.debug?typeof v8debug=="object"||this._forceDebug||o()?l=u.debug:l=u.run:l=a,this._getServerWorkingDir(l.options).then(c=>{if(lP.is(l)&&l.module){let h=l,d=h.transport||0;if(h.runtime){let g=[],f=h.options||Object.create(null);f.execArgv&&f.execArgv.forEach(w=>g.push(w)),g.push(h.module),h.args&&h.args.forEach(w=>g.push(w));let p=Object.create(null);p.cwd=c,p.env=t(f.env,!1);let b=this._getRuntimePath(h.runtime,c),y;if(d===1?(p.stdio=[null,null,null,"ipc"],g.push("--node-ipc")):d===0?g.push("--stdio"):d===2?(y=(0,ht.generateRandomPipeName)(),g.push(`--pipe=${y}`)):gh.isSocket(d)&&g.push(`--socket=${d.port}`),g.push(`--clientProcessId=${process.pid.toString()}`),d===1||d===0){let w=rs.default.spawn(b,g,p);return!w||!w.pid?Promise.reject(`Launching server using runtime ${b} failed.`):(this._serverProcess=w,w.stderr.on("data",x=>this.outputChannel.append(Ee(x)?x:x.toString(e))),d===1?(w.stdout.on("data",x=>this.outputChannel.append(Ee(x)?x:x.toString(e))),Promise.resolve({reader:new ht.IPCMessageReader(w),writer:new ht.IPCMessageWriter(w)})):Promise.resolve({reader:new ht.StreamMessageReader(w.stdout),writer:new ht.StreamMessageWriter(w.stdin)}))}else{if(d===2)return(0,ht.createClientPipeTransport)(y).then(w=>{let x=rs.default.spawn(b,g,p);return!x||!x.pid?Promise.reject(`Launching server using runtime ${b} failed.`):(this._serverProcess=x,x.stderr.on("data",k=>this.outputChannel.append(Ee(k)?k:k.toString(e))),x.stdout.on("data",k=>this.outputChannel.append(Ee(k)?k:k.toString(e))),w.onConnected().then(k=>({reader:k[0],writer:k[1]})))});if(gh.isSocket(d))return(0,ht.createClientSocketTransport)(d.port).then(w=>{let x=rs.default.spawn(b,g,p);return!x||!x.pid?Promise.reject(`Launching server using runtime ${b} failed.`):(this._serverProcess=x,x.stderr.on("data",k=>this.outputChannel.append(Ee(k)?k:k.toString(e))),x.stdout.on("data",k=>this.outputChannel.append(Ee(k)?k:k.toString(e))),w.onConnected().then(k=>({reader:k[0],writer:k[1]})))})}}else{let g;return new Promise((f,p)=>{let b=h.args&&h.args.slice()||[];d===1?b.push("--node-ipc"):d===0?b.push("--stdio"):d===2?(g=(0,ht.generateRandomPipeName)(),b.push(`--pipe=${g}`)):gh.isSocket(d)&&b.push(`--socket=${d.port}`),b.push(`--clientProcessId=${process.pid.toString()}`);let y=h.options||Object.create(null);if(y.env=t(y.env,!0),y.execArgv=y.execArgv||[],y.cwd=c,y.silent=!0,d===1||d===0){let w=rs.default.fork(h.module,b||[],y);s(w),this._serverProcess=w,w.stderr.on("data",x=>this.outputChannel.append(Ee(x)?x:x.toString(e))),d===1?(w.stdout.on("data",x=>this.outputChannel.append(Ee(x)?x:x.toString(e))),f({reader:new ht.IPCMessageReader(this._serverProcess),writer:new ht.IPCMessageWriter(this._serverProcess)})):f({reader:new ht.StreamMessageReader(w.stdout),writer:new ht.StreamMessageWriter(w.stdin)})}else d===2?(0,ht.createClientPipeTransport)(g).then(w=>{let x=rs.default.fork(h.module,b||[],y);s(x),this._serverProcess=x,x.stderr.on("data",k=>this.outputChannel.append(Ee(k)?k:k.toString(e))),x.stdout.on("data",k=>this.outputChannel.append(Ee(k)?k:k.toString(e))),w.onConnected().then(k=>{f({reader:k[0],writer:k[1]})})}):gh.isSocket(d)&&(0,ht.createClientSocketTransport)(d.port).then(w=>{let x=rs.default.fork(h.module,b||[],y);s(x),this._serverProcess=x,x.stderr.on("data",k=>this.outputChannel.append(Ee(k)?k:k.toString(e))),x.stdout.on("data",k=>this.outputChannel.append(Ee(k)?k:k.toString(e))),w.onConnected().then(k=>{f({reader:k[0],writer:k[1]})})})})}}else if(aP.is(l)&&l.command){let h=l,d=h.args||[],g=Object.assign({},h.options);g.env=g.env?Object.assign({},process.env,g.env):process.env,g.cwd=g.cwd||c;let f=v.expand(l.command),p=rs.default.spawn(f,d,g);return p.on("error",b=>{this.error(b.message),sP.error(b)}),!p||!p.pid?Promise.reject(`Launching server "${this.id}" using command ${h.command} failed.`):(sP.info(`Language server "${this.id}" started with ${p.pid}`),p.on("exit",b=>{b!=0&&this.error(`${h.command} exited with code: ${b}`)}),p.stderr.on("data",b=>this.outputChannel.append(Ee(b)?b:b.toString(e))),this._serverProcess=p,this._isDetached=!!g.detached,Promise.resolve({reader:new ht.StreamMessageReader(p.stdout),writer:new ht.StreamMessageWriter(p.stdin)}))}return Promise.reject(`Unsupported server configuration ${JSON.stringify(a,null,2)}`)})}_getRuntimePath(e,t){if(dh.default.isAbsolute(e))return e;let i=this._mainGetRootPath();if(i!==void 0){let r=dh.default.join(i,e);if(yw.default.existsSync(r))return r}if(t!==void 0){let r=dh.default.join(t,e);if(yw.default.existsSync(r))return r}return e}_mainGetRootPath(){let e=v.workspaceFolders;return!e||e.length===0?void 0:e[0].uri}registerProposedFeatures(){this.registerFeatures(mTe.createAll(this))}registerBuiltinFeatures(){super.registerBuiltinFeatures();let{disabledFeatures:e}=this.clientOptions;e.includes("pullConfiguration")||this.registerFeature(new Y_(this)),e.includes("typeDefinition")||this.registerFeature(new X_(this)),e.includes("implementation")||this.registerFeature(new J_(this)),e.includes("declaration")||this.registerFeature(new W_(this)),e.includes("colorProvider")||this.registerFeature(new B_(this)),e.includes("foldingRange")||this.registerFeature(new Z_(this)),e.includes("selectionRange")||this.registerFeature(new K_(this)),e.includes("callHierarchy")||this.registerFeature(new z_(this)),e.includes("progress")||this.registerFeature(new $_(this)),e.includes("linkedEditing")||this.registerFeature(new V_(this)),e.includes("fileEvents")||(this.registerFeature(new eP(this)),this.registerFeature(new tP(this)),this.registerFeature(new iP(this)),this.registerFeature(new nP(this)),this.registerFeature(new rP(this)),this.registerFeature(new oP(this))),e.includes("semanticTokens")||this.registerFeature(new Q_(this)),e.includes("workspaceFolders")||this.registerFeature(new G_(this))}_getServerWorkingDir(e){let t=e&&e.cwd;return t&&!dh.default.isAbsolute(t)&&(t=dh.default.join(v.cwd,t)),t||(t=v.cwd),t?new Promise(i=>{yw.default.lstat(t,(r,o)=>{i(!r&&o.isDirectory()?t:void 0)})}):Promise.resolve(void 0)}appendOutput(e,t){let i=Ee(e)?e:e.toString(t);this.outputChannel.append(i.endsWith(`
`)?i:i+`
`)}},hP=class{constructor(e,t){this._client=e;this._setting=t;this._listeners=[]}start(){return v.onDidChangeConfiguration(e=>{e.affectsConfiguration(this._setting)&&this.onDidChangeConfiguration()},null,this._listeners),this.onDidChangeConfiguration(),{dispose:()=>{J(this._listeners),this._client.needsStop()&&this._client.stop()}}}onDidChangeConfiguration(){let e=this._setting.indexOf("."),t=e>=0?this._setting.substr(0,e):this._setting,i=e>=0?this._setting.substr(e+1):void 0,r=i?v.getConfiguration(t).get(i,!0):v.getConfiguration(t);r&&this._client.needsStart()?this._client.start():!r&&this._client.needsStop()&&this._client.stop()}},mTe={createAll:n=>[]}});function bTe(n){switch(n){case 0:return"init";case 3:return"running";case 1:return"starting";case 2:return"startFailed";case 4:return"stopping";case 5:return"stopped";default:return"unknown"}}function yTe(n){let e=n.map(t=>typeof t=="string"?t:t.language);return e=e.filter(t=>typeof t=="string"),Array.from(new Set(e))}function vTe(n,e,t){let{command:i,module:r,port:o,args:s,filetypes:a}=t;if(s=s||[],!a)return D.showMessage(`Wrong configuration of LS "${e}", filetypes not found`,"error"),null;if(!i&&!r&&!o)return D.showMessage(`Wrong configuration of LS "${e}", no command or module specified.`,"error"),null;let l;if(r){if(r=v.expand(r),!yz.default.existsSync(r))return D.showMessage(`Module file "${r}" not found for LS "${e}"`,"error"),null;l={module:r,runtime:t.runtime||process.execPath,args:s,transport:xTe(t),options:CTe(t)}}else i?l={command:i,args:s,options:STe(t)}:o&&(l=()=>new Promise((g,f)=>{let p=new vz.default.Socket,b=t.host||"127.0.0.1";$l.info(`languageserver "${n}" connecting to ${b}:${o}`),p.connect(o,b,()=>{g({reader:p,writer:p})}),p.on("error",y=>{f(new Error(`Connection error for ${n}: ${y.message}`))})}));let u=Array.from(t.disabledFeatures||[]);for(let g of["disableWorkspaceFolders","disableCompletion","disableDiagnostics"])if(t[g]===!0){let f=g.slice(7);u.push(f[0].toLowerCase()+f.slice(1))}let c=!!t.disableSnippetCompletion;return[{ignoredRootPaths:(t.ignoredRootPaths||[]).map(g=>v.expand(g)),disableSnippetCompletion:c,disableDynamicRegister:!!t.disableDynamicRegister,disabledFeatures:u,formatterPriority:t.formatterPriority||0,documentSelector:xz(t.filetypes,t.additionalSchemes),revealOutputChannelOn:wTe(t.revealOutputChannelOn),synchronize:{configurationSection:`${n}.settings`},diagnosticCollectionName:e,outputChannelName:n,stdioEncoding:t.stdioEncoding||"utf8",progressOnInitialization:t.progressOnInitialization!==!1,initializationOptions:t.initializationOptions||{}},l]}function wTe(n){switch(n){case"info":return 1;case"warn":return 2;case"error":return 3;case"never":return 4;default:return 4}}function xz(n,e){let t=[],i=["file","untitled"].concat(e||[]);return n?(n.forEach(r=>{t.push(...i.map(o=>({language:r,scheme:o})))}),t):i.map(r=>({scheme:r}))}function xTe(n){let{transport:e,transportPort:t}=n;return!e||e=="ipc"?1:e=="stdio"?0:e=="pipe"?2:{kind:3,port:t}}function CTe(n){return{cwd:n.cwd,execArgv:n.execArgv||[],env:n.env||void 0}}function STe(n){return{cwd:n.cwd,detached:!!n.detached,shell:!!n.shell,env:n.env||void 0}}function mz(n){switch(n){case 2:return"running";case 3:return"starting";case 1:return"stopped";default:return"unknown"}}var bz,yz,vz,fh,$l,wz,Ai,Of=P(()=>{"use strict";bz=require("events"),yz=S(require("fs")),vz=S(require("net")),fh=S(q());dP();Lr();z();De();Q();$l=Y()("services");wz=class extends bz.EventEmitter{constructor(){super(...arguments);this.registered=new Map;this.disposables=[]}init(){v.onDidOpenTextDocument(e=>{this.start(e)},null,this.disposables),v.onDidChangeConfiguration(e=>{e.affectsConfiguration("languageserver")&&this.createCustomServices()},null,this.disposables),this.createCustomServices()}dispose(){this.removeAllListeners(),J(this.disposables);for(let e of this.registered.values())e.dispose()}regist(e){let{id:t}=e;if(t||$l.error("invalid service configuration. ",e.name),!this.registered.get(t))return this.registered.set(t,e),$l.info(`registered service "${t}"`),this.shouldStart(e)&&e.start(),e.state==3&&this.emit("ready",t),e.onServiceReady(()=>{$l.info(`service ${t} started`),this.emit("ready",t)},null,this.disposables),fh.Disposable.create(()=>{e.stop(),e.dispose(),this.registered.delete(t)})}getService(e){let t=this.registered.get(e);return t||(t=this.registered.get(`languageserver.${e}`)),t}shouldStart(e){if(e.state!=0)return!1;let t=e.selector;for(let i of v.documents)if(v.match(t,i.textDocument))return!0;return!1}start(e){let t=this.getServices(e);for(let i of t)i.state==0&&i.start()}getServices(e){let t=[];for(let i of this.registered.values())v.match(i.selector,e)>0&&t.push(i);return t}stop(e){let t=this.registered.get(e);if(!t){D.showMessage(`Service ${e} not found`,"error");return}return Promise.resolve(t.stop())}stopAll(){for(let e of this.registered.values())e.stop()}async toggle(e){let t=this.registered.get(e);if(!t){D.showMessage(`Service ${e} not found`,"error");return}let{state:i}=t;try{i==3?await Promise.resolve(t.stop()):i==0?await t.start():i==5&&await t.restart()}catch(r){D.showMessage(`Service error: ${r}`,"error")}}getServiceStats(){let e=[];for(let[t,i]of this.registered)e.push({id:t,languageIds:yTe(i.selector),state:bTe(i.state)});return e}createCustomServices(){let e=v.getConfiguration().get("languageserver",{});for(let t of Object.keys(e)){let i=e[t];!this.validServerConfig(t,i)||this.registLanguageClient(t,i)}}validServerConfig(e,t){let i=[];return t.module!=null&&typeof t.module!="string"&&i.push(`"module" field of languageserver ${e} should be string`),t.command!=null&&typeof t.command!="string"&&i.push(`"command" field of languageserver ${e} should be string`),t.transport!=null&&typeof t.transport!="string"&&i.push(`"transport" field of languageserver ${e} should be string`),t.transportPort!=null&&typeof t.transportPort!="number"&&i.push(`"transportPort" field of languageserver ${e} should be string`),(!Array.isArray(t.filetypes)||!t.filetypes.every(r=>typeof r=="string"))&&i.push(`"filetypes" field of languageserver ${e} should be array of string`),t.additionalSchemes&&(!Array.isArray(t.additionalSchemes)||t.additionalSchemes.some(r=>typeof r!="string"))&&i.push(`"additionalSchemes" field of languageserver ${e} should be array of string`),i.length?(D.showMessage(i.join(`
`),"error"),!1):!0}waitClient(e){let t=this.getService(e);return t&&t.state==3?Promise.resolve():t?new Promise(i=>{t.onServiceReady(()=>{i()})}):new Promise(i=>{let r=o=>{(o==e||o==`languageserver.${e}`)&&(this.off("ready",r),i())};this.on("ready",r)})}async registNotification(e,t){await this.waitClient(e);let i=this.getService(e);if(!i.client){D.showMessage(`Not a language client: ${e}`,"error");return}i.client.onNotification(t,async o=>{v.nvim.call("coc#do_notify",[e,t,o],!0)})}async sendNotification(e,t,i){if(!t)throw new Error("method required for ontification");let r=this.getService(e);if(!r||!r.client)throw new Error(`Language server ${e} not found`);if(r.state==1&&await r.client.onReady(),r.state!=3)throw new Error(`Language server ${e} not running`);await Promise.resolve(r.client.sendNotification(t,i))}async sendRequest(e,t,i,r){if(!t)throw new Error("method required for sendRequest");let o=this.getService(e);if(o||await Qe(100),o=this.getService(e),!o||!o.client)throw new Error(`Language server ${e} not found`);if(o.state==1&&await o.client.onReady(),o.state!=3)throw new Error(`Language server ${e} not running`);return r||(r=new fh.CancellationTokenSource().token),await Promise.resolve(o.client.sendRequest(t,i,r))}registLanguageClient(e,t){let i=typeof e=="string"?`languageserver.${e}`:e.id,r=[],o=new fh.Emitter,s=typeof e=="string"?null:e;if(this.registered.has(i))return;let a=!1,l={id:i,client:s,name:typeof e=="string"?e:e.name,selector:typeof e=="string"?xz(t.filetypes,t.additionalSchemes):e.clientOptions.documentSelector,state:0,onServiceReady:o.event,start:()=>{if(l.state==1||l.state==3||s&&!s.needsStart())return;if(a&&s)return s.restart(),Promise.resolve();if(!a){if(typeof e=="string"&&!s){let c=v.getConfiguration().get("languageserver",{})[e];if(!c||c.enable===!1)return;let h=vTe(i,e,c);if(!h)return;s=new Ff(i,e,h[1],h[0]),l.selector=h[0].documentSelector,l.client=s}s.onDidChangeState(c=>{let{oldState:h,newState:d}=c;d==3?l.state=1:d==2?l.state=3:d==1&&(l.state=5);let g=mz(h),f=mz(d);$l.info(`${s.name} state change: ${g} => ${f}`)},null,r),a=!0}l.state=1,$l.debug(`starting service: ${i}`);let u=s.start();return r.push(u),new Promise(c=>{s.onReady().then(()=>{o.fire(void 0),c()},h=>{D.showMessage(`Server ${i} failed to start: ${h}`,"error"),$l.error(`Server ${i} failed to start:`,h),l.state=2,c()})})},dispose:async()=>{o.dispose(),J(r)},stop:async()=>{!s||!s.needsStop()||await Promise.resolve(s.stop())},restart:async()=>{s?(l.state=1,s.restart()):await l.start()}};return this.regist(l)}};Ai=new wz});var Cz,Xl,ph,ww=P(()=>{"use strict";Q();De();Cz=require("events"),Xl=["<esc>","<space>","<tab>","<s-tab>","<bs>","<right>","<left>","<up>","<down>","<home>","<end>","<cr>","<FocusGained>","<FocusLost>","<ScrollWheelUp>","<ScrollWheelDown>","<LeftMouse>","<LeftDrag>","<LeftRelease>","<2-LeftMouse>","<C-a>","<C-b>","<C-c>","<C-d>","<C-e>","<C-f>","<C-g>","<C-h>","<C-i>","<C-j>","<C-k>","<C-l>","<C-m>","<C-n>","<C-o>","<C-p>","<C-q>","<C-r>","<C-s>","<C-t>","<C-u>","<C-v>","<C-w>","<C-x>","<C-y>","<C-z>","<A-a>","<A-b>","<A-c>","<A-d>","<A-e>","<A-f>","<A-g>","<A-h>","<A-i>","<A-j>","<A-k>","<A-l>","<A-m>","<A-n>","<A-o>","<A-p>","<A-q>","<A-r>","<A-s>","<A-t>","<A-u>","<A-v>","<A-w>","<A-x>","<A-y>","<A-z>"],ph=class extends Cz.EventEmitter{constructor(){super();this.configuration=v.getConfiguration("list"),this.disposable=v.onDidChangeConfiguration(e=>{e.affectsConfiguration("list")&&(this.configuration=v.getConfiguration("list"),this.emit("change"))})}get(e,t){return this.configuration.get(e,t)}get previousKey(){return this.fixKey(this.configuration.get("previousKeymap","<C-j>"))}get nextKey(){return this.fixKey(this.configuration.get("nextKeymap","<C-k>"))}dispose(){this.disposable.dispose(),this.removeAllListeners()}fixKey(e){if(Xl.includes(e))return e;let t=Xl.find(i=>i.toLowerCase()==e.toLowerCase());return t||(D.showMessage(`Configured key "${e}" not supported.`,"error"),null)}}});var zXe,xw,Sz=P(()=>{"use strict";De();ww();zXe=Y()("list-mappings"),xw=class{constructor(e,t,i){this.manager=e;this.nvim=t;this.config=i;this.insertMappings=new Map;this.normalMappings=new Map;this.userInsertMappings=new Map;this.userNormalMappings=new Map;this.actions=new Map;let{prompt:r}=e;this.addAction("do:switch",async()=>{await e.switchMatcher()}),this.addAction("do:selectall",async()=>{var o;await((o=e.session)==null?void 0:o.ui.selectAll())}),this.addAction("do:help",async()=>{var o;await((o=e.session)==null?void 0:o.showHelp())}),this.addAction("do:refresh",async()=>{var o;await((o=e.session)==null?void 0:o.reloadItems())}),this.addAction("do:exit",async()=>{await e.cancel()}),this.addAction("do:stop",()=>{e.stop()}),this.addAction("do:cancel",async()=>{await e.cancel(!1)}),this.addAction("do:toggle",async()=>{var o;await((o=e.session)==null?void 0:o.ui.toggleSelection())}),this.addAction("do:jumpback",()=>{var o;(o=e.session)==null||o.jumpBack()}),this.addAction("do:previous",async()=>{await e.normal("k")}),this.addAction("do:next",async()=>{await e.normal("j")}),this.addAction("do:defaultaction",async()=>{await e.doAction()}),this.addAction("do:chooseaction",async()=>{await e.chooseAction()}),this.addAction("do:togglemode",()=>{e.toggleMode()}),this.addAction("do:previewtoggle",async()=>{await e.togglePreview()}),this.addAction("do:previewup",()=>{this.scrollPreview("up")}),this.addAction("do:previewdown",()=>{this.scrollPreview("down")}),this.addAction("do:command",async()=>{await e.cancel(!1),await t.eval('feedkeys(":")')}),this.addAction("prompt:previous",()=>{var o;(o=e.session)==null||o.history.previous()}),this.addAction("prompt:next",()=>{var o;(o=e.session)==null||o.history.next()}),this.addAction("prompt:start",()=>{r.moveToStart()}),this.addAction("prompt:end",()=>{r.moveToEnd()}),this.addAction("prompt:left",()=>{r.moveLeft()}),this.addAction("prompt:right",()=>{r.moveRight()}),this.addAction("prompt:deleteforward",()=>{r.onBackspace()}),this.addAction("prompt:deletebackward",()=>{r.removeNext()}),this.addAction("prompt:removetail",()=>{r.removeTail()}),this.addAction("prompt:removeahead",()=>{r.removeAhead()}),this.addAction("prompt:removeword",()=>{r.removeWord()}),this.addAction("prompt:insertregister",()=>{r.insertRegister()}),this.addAction("prompt:paste",async()=>{await r.paste()}),this.addAction("eval",async o=>{await r.eval(o)}),this.addAction("command",async o=>{await e.command(o)}),this.addAction("action",async o=>{await e.doAction(o)}),this.addAction("feedkeys",async o=>{await e.feedkeys(o)}),this.addAction("normal",async o=>{await e.normal(o,!1)}),this.addAction("normal!",async o=>{await e.normal(o,!0)}),this.addAction("call",async o=>{await e.call(o)}),this.addAction("expr",async o=>{let s=await e.call(o);s&&await e.doAction(s)}),this.addKeyMapping("insert","<C-s>","do:switch"),this.addKeyMapping("insert","<C-n>","prompt:next"),this.addKeyMapping("insert","<C-p>","prompt:previous"),this.addKeyMapping("insert","<C-v>","prompt:paste"),this.addKeyMapping("insert",["<C-m>","<cr>"],"do:defaultaction"),this.addKeyMapping("insert",["<tab>","<C-i>"," "],"do:chooseaction"),this.addKeyMapping("insert","<C-o>","do:togglemode"),this.addKeyMapping("insert","<C-c>","do:stop"),this.addKeyMapping("insert","<C-l>","do:refresh"),this.addKeyMapping("insert","<left>","prompt:left"),this.addKeyMapping("insert","<right>","prompt:right"),this.addKeyMapping("insert",["<end>","<C-e>"],"prompt:end"),this.addKeyMapping("insert",["<home>","<C-a>"],"prompt:start"),this.addKeyMapping("insert",["<C-h>","<bs>","<backspace>"],"prompt:deleteforward"),this.addKeyMapping("insert","<C-w>","prompt:removeword"),this.addKeyMapping("insert","<C-u>","prompt:removeahead"),this.addKeyMapping("insert","<C-r>","prompt:insertregister"),this.addKeyMapping("normal","t","action:tabe"),this.addKeyMapping("normal","s","action:split"),this.addKeyMapping("normal","d","action:drop"),this.addKeyMapping("normal",["<cr>","<C-m>","\r"],"do:defaultaction"),this.addKeyMapping("normal","<C-a>","do:selectall"),this.addKeyMapping("normal"," ","do:toggle"),this.addKeyMapping("normal","p","do:previewtoggle"),this.addKeyMapping("normal",["<tab>"," ","<C-i>"],"do:chooseaction"),this.addKeyMapping("normal","<C-c>","do:stop"),this.addKeyMapping("normal","<C-l>","do:refresh"),this.addKeyMapping("normal","<C-o>","do:jumpback"),this.addKeyMapping("normal","<C-e>","do:previewdown"),this.addKeyMapping("normal","<C-y>","do:previewup"),this.addKeyMapping("normal",["i","I","o","O","a","A"],"do:togglemode"),this.addKeyMapping("normal","?","do:help"),this.addKeyMapping("normal",":","do:command"),this.createMappings(),i.on("change",()=>{this.createMappings()})}createMappings(){let e=this.config.get("insertMappings",{});this.userInsertMappings=this.fixUserMappings(e,"list.insertMappings");let t=this.config.get("normalMappings",{});this.userNormalMappings=this.fixUserMappings(t,"list.normalMappings")}hasUserMapping(e,t){return(e=="insert"?this.userInsertMappings:this.userNormalMappings).has(t)}isValidAction(e){if(this.actions.has(e))return!0;let[t,i]=e.split(":",2);return!(!i||!this.actions.has(t))}fixUserMappings(e,t){let i=new Map;for(let[r,o]of Object.entries(e)){if(!this.isValidAction(o)){D.showMessage(`Invalid configuration - unable to support action "${o}" in "${t}"`,"warning");continue}if(r.length==1)i.set(r,o);else if(r.startsWith("<")&&r.endsWith(">"))if(r.toLowerCase()=="<space>")i.set(" ",o);else if(r.toLowerCase()=="<backspace>")i.set("<bs>",o);else if(Xl.includes(r))i.set(r,o);else{let s=!1;for(let a=0;a<Xl.length;a++)if(Xl[a].toLowerCase()==r.toLowerCase()){s=!0,i.set(Xl[a],o);break}s||D.showMessage(`Invalid configuration - unable to recognize "${r}" in "${t}"`,"warning")}else D.showMessage(`Invalid configuration - unable to recognize key "${r}" in "${t}"`,"warning")}return i}async doInsertKeymap(e){var o,s;let t=this.config.nextKey,i=this.config.previousKey;if(e==t)return(o=this.manager)==null||o.session.ui.moveDown(),!0;if(e==i)return(s=this.manager)==null||s.session.ui.moveUp(),!0;let r=this.userInsertMappings.get(e);if(r){let a=this.getAction(r);return await Promise.resolve(a()),!0}if(this.insertMappings.has(e)){let a=this.insertMappings.get(e);return await Promise.resolve(a()),!0}return!1}async doNormalKeymap(e){let t=this.userNormalMappings.get(e);if(t){let i=this.getAction(t);return await Promise.resolve(i()),!0}if(this.normalMappings.has(e)){let i=this.normalMappings.get(e);return await Promise.resolve(i()),!0}return!1}addKeyMapping(e,t,i){let r=e=="insert"?this.insertMappings:this.normalMappings,o=this.getAction(i);if(Array.isArray(t))for(let s of t)r.set(s,o);else r.set(t,o)}addAction(e,t){this.actions.set(e,t)}getAction(e){if(this.actions.has(e))return()=>this.doAction(e);let[t,i]=e.split(":",2);if(!i||!this.actions.has(t))throw new Error(`Invalid action ${e}`);return()=>this.doAction(t,i)}async doAction(e,t){let i=this.actions.get(e);if(!i)throw new Error(`Action ${e} doesn't exist`);await Promise.resolve(i(t))}scrollPreview(e){let{nvim:t}=this;t.pauseNotification(),t.call("coc#list#scroll_preview",[e],!0),t.command("redraw",!0),t.resumeNotification(!1,!0)}}});var Tz,eUe,Cw,kz=P(()=>{"use strict";Tz=S(q()),eUe=Y()("list-prompt"),Cw=class{constructor(e,t){this.nvim=e;this.config=t;this.cusorIndex=0;this._input="";this._mode="insert";this.interactive=!1;this.requestInput=!1;this._onDidChangeInput=new Tz.Emitter;this.onDidChangeInput=this._onDidChangeInput.event}get input(){return this._input}set input(e){this._input!=e&&(this.cusorIndex=e.length,this._input=e,this.drawPrompt(),this._onDidChangeInput.fire(this._input))}get mode(){return this._mode}set mode(e){e!=this._mode&&(this._mode=e,this.drawPrompt())}set matcher(e){this._matcher=e,this.drawPrompt()}start(e){e&&(this.interactive=e.interactive,this.cusorIndex=e.input.length,this._input=e.input,this._mode=e.mode,this._matcher=e.interactive?"":e.matcher),this.nvim.call("coc#prompt#start_prompt",["list"],!0),this.drawPrompt()}cancel(){let{nvim:e}=this;e.call("coc#prompt#stop_prompt",["list"],!0)}reset(){this._input="",this.cusorIndex=0}drawPrompt(){let e=this.config.get("indicator",">"),{cusorIndex:t,interactive:i,input:r,_matcher:o}=this,s=['echo ""'];if(this.mode=="insert")if(i?s.push("echohl MoreMsg | echon 'INTERACTIVE ' | echohl None"):o&&s.push(`echohl MoreMsg | echon '${o.toUpperCase()} ' | echohl None`),s.push(`echohl Special | echon '${e} ' | echohl None`),t==r.length)s.push(`echon '${r.replace(/'/g,"''")}'`),s.push("echohl Cursor | echon ' ' | echohl None");else{let l=r.slice(0,t);l&&s.push(`echon '${l.replace(/'/g,"''")}'`),s.push(`echohl Cursor | echon '${r[t].replace(/'/,"''")}' | echohl None`);let u=r.slice(t+1);s.push(`echon '${u.replace(/'/g,"''")}'`)}else s.push('echohl MoreMsg | echo "" | echohl None');s.push("redraw");let a=s.join("|");this.nvim.command(a,!0)}moveLeft(){this.cusorIndex!=0&&(this.cusorIndex=this.cusorIndex-1,this.drawPrompt())}moveRight(){this.cusorIndex!=this._input.length&&(this.cusorIndex=this.cusorIndex+1,this.drawPrompt())}moveToEnd(){this.cusorIndex!=this._input.length&&(this.cusorIndex=this._input.length,this.drawPrompt())}moveToStart(){this.cusorIndex!=0&&(this.cusorIndex=0,this.drawPrompt())}onBackspace(){let{cusorIndex:e,input:t}=this;if(e==0)return;let i=t.slice(0,e),r=t.slice(e);this.cusorIndex=e-1,this._input=`${i.slice(0,i.length-1)}${r}`,this.drawPrompt(),this._onDidChangeInput.fire(this._input)}removeNext(){let{cusorIndex:e,input:t}=this;if(e==t.length-1)return;let i=t.slice(0,e),r=t.slice(e+1);this._input=`${i}${r}`,this.drawPrompt(),this._onDidChangeInput.fire(this._input)}removeWord(){let{cusorIndex:e,input:t}=this;if(e==0)return;let i=t.slice(0,e),r=t.slice(e),o=i.replace(/[\w$]+([^\w$]+)?$/,"");this.cusorIndex=e-(i.length-o.length),this._input=`${o}${r}`,this.drawPrompt(),this._onDidChangeInput.fire(this._input)}removeTail(){let{cusorIndex:e,input:t}=this;if(e==t.length)return;let i=t.slice(0,e);this._input=i,this.drawPrompt(),this._onDidChangeInput.fire(this._input)}removeAhead(){let{cusorIndex:e,input:t}=this;if(e==0)return;let i=t.slice(e);this.cusorIndex=0,this._input=i,this.drawPrompt(),this._onDidChangeInput.fire(this._input)}async acceptCharacter(e){if(this.requestInput){if(this.requestInput=!1,/^[0-9a-z"%#*+/:\-.]$/.test(e)){let t=await this.nvim.call("getreg",e);t=t.replace(/\n/g," "),this.addText(t)}}else this.addText(e)}insertRegister(){this.requestInput=!0}async paste(){let e=await this.nvim.eval("@*");e=e.replace(/\n/g,""),e&&this.addText(e)}async eval(e){let t=await this.nvim.call("eval",[e]);t=t.replace(/\n/g,""),this.addText(t)}addText(e){let{cusorIndex:t,input:i}=this;this.cusorIndex=t+e.length;let r=i.slice(0,t),o=i.slice(t);this._input=`${r}${e}${o}`,this.drawPrompt(),this._onDidChangeInput.fire(this._input)}}});function Cn(n){let e=[];for(let t=0,i=n.length;t<i;t++)e.push(n.charCodeAt(t));return e}function Mf(n){return n>=97&&n<=122||n>=65&&n<=90}function Ar(n,e,t=!1){return!!(n==e||n>=97&&n<=122&&e+32===n||t&&n<=90&&n+32===e)}function Af(n,e){let t=n.charCodeAt(0),i=e.charCodeAt(0);return t===i||t>=97&&t<=122&&i+32===t}function ho(n,e){let t=n.length;if(n.length>e.length)return!1;let i=0;for(let r=0;r<e.length&&i!==t;r++){let o=e.charCodeAt(r),s=n[i];if(o===s){i=i+1;continue}if(s>=97&&s<=122&&o+32===s){i=i+1;continue}}return i===t}var os=P(()=>{"use strict"});var oUe,Sw,Dz=P(()=>{"use strict";os();Q();oUe=Y()("list-history"),Sw=class{constructor(e,t){this.prompt=e;this.name=t;this.index=-1;this.loaded=[];this.current=[];this.db=v.createDatabase(`list-${t}-history`),this.key=Buffer.from(v.cwd).toString("base64")}filter(){let{input:e}=this.prompt;if(e==this.curr)return;this.historyInput="";let t=Cn(e);this.current=this.loaded.filter(i=>ho(t,i)),this.index=-1}get curr(){return this.index==-1?null:this.current[this.index]}load(e){let{db:t}=this;e=e||"";let i=t.fetch(this.key);!i||!Array.isArray(i)?this.loaded=[]:this.loaded=i,this.index=-1,this.current=this.loaded.filter(r=>r.startsWith(e))}add(){let{loaded:e,db:t,prompt:i}=this,{input:r}=i;if(!r||r.length<2||r==this.historyInput)return;let o=e.indexOf(r);o!=-1&&e.splice(o,1),e.push(r),e.length>200&&(e=e.slice(-200)),t.push(this.key,e)}previous(){let{current:e,index:t}=this;!e||!e.length||(t<=0?this.index=e.length-1:this.index=t-1,this.historyInput=this.prompt.input=e[this.index]||"")}next(){let{current:e,index:t}=this;!e||!e.length||(t==e.length-1?this.index=0:this.index=t+1,this.historyInput=this.prompt.input=e[this.index]||"")}}});var Ez,mh,gUe,Tw,_z=P(()=>{"use strict";Ez=S(_i()),mh=S(q());he();z();Qr();Q();gUe=Y()("list-ui"),Tw=class{constructor(e,t,i,r){this.nvim=e;this.name=t;this.listOptions=i;this.config=r;this.newTab=!1;this.reversed=!1;this.currIndex=0;this.items=[];this.disposables=[];this.selected=new Set;this.mutex=new Qt;this._onDidChangeLine=new mh.Emitter;this._onDidOpen=new mh.Emitter;this._onDidClose=new mh.Emitter;this._onDidLineChange=new mh.Emitter;this._onDoubleClick=new mh.Emitter;this.onDidChangeLine=this._onDidChangeLine.event;this.onDidLineChange=this._onDidLineChange.event;this.onDidOpen=this._onDidOpen.event;this.onDidClose=this._onDidClose.event;this.onDidDoubleClick=this._onDoubleClick.event;this.signOffset=r.get("signOffset"),this.matchHighlightGroup=r.get("matchHighlightGroup","Search"),this.newTab=i.position=="tab",this.reversed=i.reverse===!0,_.on("BufWinLeave",async s=>{s!=this.bufnr||this.window==null||(this.window=null,this._onDidClose.fire(s))},null,this.disposables),_.on("CursorMoved",async(s,a)=>{if(s!=this.bufnr)return;let l=this.lnumToIndex(a[0]);this.onLineChange(l)},null,this.disposables);let o=(0,Ez.default)(async s=>{if(s!=this.bufnr)return;let[a,l,u]=await e.eval('[win_getid(),line("w0"),line("w$")]');if(u<300||a!=this.winid)return;let c=u-l+1,h=this.lnumToIndex(l),d=this.lnumToIndex(l+c*2);e.pauseNotification(),this.doHighlight(h,d),e.command("redraw",!0),e.resumeNotification(!1,!0)},global.hasOwnProperty("__TEST__")?20:100);this.disposables.push({dispose:()=>{o.clear()}}),_.on("CursorMoved",o,null,this.disposables)}lnumToIndex(e){let{reversed:t,length:i}=this;return t?Math.max(0,i-e):e-1}indexToLnum(e){let{reversed:t,length:i}=this;return t?Math.max(Math.min(i,i-e),1):Math.min(e+1,i)}get bufnr(){var e;return(e=this.buffer)==null?void 0:e.id}get winid(){var e;return(e=this.window)==null?void 0:e.id}get limitLines(){return this.config.get("limitLines",1/0)}onLineChange(e){this.currIndex!=e&&(this.currIndex=e,this._onDidChangeLine.fire(e))}set index(e){if(e<0||e>=this.items.length)return;let{nvim:t}=this,i=this.indexToLnum(e);t.pauseNotification(),this.setCursor(i),t.command("redraw",!0),t.resumeNotification(!1,!0)}get index(){return this.currIndex}getItem(e){return this.items[e]}get item(){let{window:e}=this;return e?e.cursor.then(t=>(this.currIndex=this.lnumToIndex(t[0]),this.items[this.currIndex])):Promise.resolve(null)}async echoMessage(e){let{items:t}=this,r=`[${t.indexOf(e)+1}/${t.length}] ${e.label||""}`;this.nvim.callTimer("coc#ui#echo_lines",[[r]],!0)}updateItem(e,t,i){if(!this.buffer||t>=this.length)return;let r=this.items[t];if(Object.assign(r,e,{resolved:!0}),!i)return;let{nvim:o}=this,s=this.indexToLnum(t);o.pauseNotification(),this.buffer.setOption("modifiable",!0,!0),o.call("setbufline",[this.bufnr,s,r.label],!0),this.doHighlight(t,t+1),this.buffer.setOption("modifiable",!1,!0),o.resumeNotification(!0,!0)}async getItems(){if(this.length==0||!this.window)return[];let e=await this.nvim.call("mode");if(e=="v"||e=="V"){let[r,o]=await this.getSelectedRange(),s=[];for(let a=r;a<=o;a++){let l=this.lnumToIndex(a),u=this.items[l];u&&s.push(u)}return s}let{selectedItems:t}=this;if(t.length)return t;let i=await this.item;return i==null?[]:[i]}async onMouse(e){let{nvim:t,window:i}=this;if(!i)return;let[r,o,s]=await t.eval("[v:mouse_winid,v:mouse_lnum,v:mouse_col]");if(e=="mouseDown"){this.mouseDown={winid:r,lnum:o,col:s,current:r==i.id};return}let a=r==i.id;if(a&&e=="doubleClick"&&(this.setCursor(o),this._onDoubleClick.fire()),a&&e=="mouseDrag"){if(!this.mouseDown)return;await this.selectLines(this.mouseDown.lnum,o)}else if(a&&e=="mouseUp"){if(!this.mouseDown)return;this.mouseDown.lnum==o?(this.setCursor(o),t.command("redraw",!0)):await this.selectLines(this.mouseDown.lnum,o)}else!a&&e=="mouseUp"&&(t.pauseNotification(),t.call("win_gotoid",r,!0),t.call("cursor",[o,s],!0),t.command("redraw",!0),t.resumeNotification(!1,!0))}async resume(){var r;let{items:e,selected:t,nvim:i}=this;if(await this.drawItems(e,this.height,!0),!(!t.size||!this.buffer)){i.pauseNotification();for(let o of t)(r=this.buffer)==null||r.placeSign({lnum:o,id:this.signOffset+o,name:"CocSelected",group:"coc-list"});i.command("redraw",!0),i.resumeNotification(!1,!0)}}async toggleSelection(){let{nvim:e,reversed:t}=this;await e.call("win_gotoid",[this.winid]);let i=await e.call("line","."),r=await e.call("mode");if(r=="v"||r=="V"){let[o,s]=await this.getSelectedRange();o>s&&([o,s]=[s,o]);for(let l=o;l<=s;l++)this.toggleLine(l);this.setCursor(s),e.command("redraw",!0),await e.resumeNotification();return}e.pauseNotification(),this.toggleLine(i),this.setCursor(t?i-1:i+1),e.command("redraw",!0),await e.resumeNotification()}toggleLine(e){let{selected:t,buffer:i,signOffset:r}=this;t.has(e)?(t.delete(e),i.unplaceSign({id:r+e,group:"coc-list"})):(t.add(e),i.placeSign({lnum:e,id:r+e,name:"CocSelected",group:"coc-list"}))}async selectLines(e,t){let{nvim:i,signOffset:r,buffer:o,length:s}=this;this.clearSelection();let{selected:a}=this;i.pauseNotification(),e>t&&([e,t]=[t,e]);for(let u=e;u<=t&&!(u>s);u++)a.add(u),o.placeSign({lnum:u,id:r+u,name:"CocSelected",group:"coc-list"});this.setCursor(t),i.command("redraw",!0),await i.resumeNotification()}async selectAll(){let{length:e}=this;e>0&&await this.selectLines(1,e)}clearSelection(){let{selected:e,buffer:t}=this;e.size>0&&(t==null||t.unplaceSign({group:"coc-list"}),this.selected.clear())}get ready(){return this.window?Promise.resolve():new Promise(e=>{let t=this.onDidLineChange(()=>{t.dispose(),e()})})}async drawItems(e,t,i=!1){let{nvim:r,name:o,listOptions:s}=this;await this.mutex.use(async()=>{if(this.items=e.length>this.limitLines?e.slice(0,this.limitLines):e,!this.window){let{position:c,numberSelect:h}=s,[d,g,f]=await r.call("coc#list#create",[c,t,o,h]);this.tabnr=f,this.height=t,this.buffer=r.createBuffer(d);let p=this.window=r.createWindow(g),b=this.config.get("statusLineSegments");b&&p.setOption("statusline",b.join(" "),!0),this._onDidOpen.fire(this.bufnr)}let a=[],l=0;this.items.forEach((c,h)=>{a.push(c.label),!i&&l==0&&c.preselect&&(l=h)});let u=i?this.currIndex:l;this.setLines(a,0,u),this._onDidLineChange.fire()})}async appendItems(e){!this.window||await this.mutex.use(async()=>{let t=this.items.length;if(t<this.limitLines){let i=this.limitLines-t,r=e.slice(0,i);this.items=this.items.concat(r),this.setLines(r.map(o=>o.label),r.length,this.currIndex)}})}setLines(e,t,i){let{nvim:r,buffer:o,window:s,reversed:a,newTab:l}=this;if(!(!o||!s)){if(r.pauseNotification(),t||(r.call("coc#compat#clear_matches",[s.id],!0),e.length||(e=["No results, press ? on normal mode to get help."],r.call("coc#compat#matchaddpos",["Comment",[[1]],99,s.id],!0))),o.setOption("modifiable",!0,!0),a){let u=e.reverse();t?r.call("coc#compat#prepend_lines",[o.id,u],!0):o.setLines(u,{start:0,end:-1,strictIndexing:!1},!0)}else o.setLines(e,{start:t?-1:0,end:-1,strictIndexing:!1},!0);if(o.setOption("modifiable",!1,!0),a&&!l){let u=this.config.get("height",10);r.call("coc#window#set_height",[s.id,Math.max(Math.min(u,this.length),1)],!0)}if(i>this.items.length-1&&(i=0),i==0)if(t==0)this.doHighlight(0,299);else{let u=this.length-t-1;u<300&&this.doHighlight(u,Math.min(299,this.length-1))}else{let u=l?v.env.lines:this.height;this.doHighlight(Math.max(0,i-u),Math.min(i+u+1,this.length-1))}t||(this.currIndex=i,s.setCursor([this.indexToLnum(i),0],!0)),a&&r.command("normal! zb",!0),r.command("redraws",!0),r.resumeNotification(!0,!0)}}restoreWindow(){if(this.newTab)return;let{winid:e,height:t}=this;e&&t&&this.nvim.call("coc#window#set_height",[e,t],!0)}get length(){return this.items.length}get selectedItems(){let{selected:e,items:t}=this,i=[];for(let r of e){let o=this.lnumToIndex(r);t[r-1]&&i.push(t[o])}return i}doHighlight(e,t){let{items:i,reversed:r,length:o,buffer:s}=this;if(!s)return;let a=[],l=u=>{let c=this.indexToLnum(u)-1,{ansiHighlights:h,highlights:d}=i[u];if(h)for(let g of h){let{span:f,hlGroup:p}=g;a.push({hlGroup:p,lnum:c,colStart:f[0],colEnd:f[1]})}if(d&&Array.isArray(d.spans)){let{spans:g,hlGroup:f}=d;for(let p of g)f=f||this.matchHighlightGroup,a.push({hlGroup:f,lnum:c,colStart:p[0],colEnd:p[1]})}};if(r)for(let u=Math.min(t,o-1);u>=e;u--)l(u);else for(let u=e;u<=Math.min(t,o-1);u++)l(u);e=this.indexToLnum(e)-1,t=this.indexToLnum(t)-1,e>t&&([e,t]=[t,e]),a.length!=0&&s.updateHighlights("list",a,{start:e,end:t+1,priority:99})}setCursor(e,t=0){var s;let{items:i}=this,r=i.length==0?1:i.length;if(e>r)return;let o=this.lnumToIndex(e);this.onLineChange(o),(s=this.window)==null||s.setCursor([e,t],!0)}moveUp(){let{index:e,reversed:t}=this;this.index=t?e+1:e-1}moveDown(){let{index:e,reversed:t}=this;this.index=t?e-1:e+1}async getSelectedRange(){let{nvim:e}=this;await e.call("coc#prompt#stop_prompt",["list"]),await e.eval('feedkeys("\\<esc>", "in")');let[,t]=await e.call("getpos","'<"),[,i]=await e.call("getpos","'>");return this.nvim.call("coc#prompt#start_prompt",["list"],!0),[t,i]}reset(){this.window&&(this.window=null,this.buffer=null,this.tabnr=void 0)}dispose(){J(this.disposables),this.nvim.call("coc#window#close",[this.winid||-1],!0),this.window=null,this.buffer=null,this.items=[],this._onDidChangeLine.dispose(),this._onDidOpen.dispose(),this._onDidClose.dispose(),this._onDidLineChange.dispose(),this._onDoubleClick.dispose()}}});async function kw(n,e,t,i){if(n.length===0)return;let r=new Rz,o=n.length;function s(l){let u=[];r.start();for(let c=l;c<o;c++){let h=n[c],d=e(h);if(d&&(typeof d=="boolean"?u.push(h):u.push(Object.assign({},h,d))),r.shouldYield()){let g=c===o-1;return t(u,g),g?-1:c+1}}return t(u,!0),-1}let a=s(0);for(;a!==-1&&!(i!==void 0&&i.isCancellationRequested);)a=await new Promise(l=>{setImmediate(()=>{l(s(a))})})}var Pz,Rz,Lz=P(()=>{Pz=15,Rz=class{constructor(e=Pz){this.yieldAfter=Math.max(e,Pz),this.startTime=Date.now(),this.counter=0,this.total=0,this.counterInterval=1}start(){this.startTime=Date.now()}shouldYield(){if(++this.counter>=this.counterInterval){let e=Date.now()-this.startTime,t=Math.max(0,this.yieldAfter-e);if(this.total+=this.counter,this.counter=0,e>=this.yieldAfter||t<=1)return this.counterInterval=1,this.total=0,!0;switch(e){case 0:case 1:this.counterInterval=this.total*2;break}}return!1}}});function ITe(n){return n.toLowerCase()===n}function jTe(n){return n.toUpperCase()===n}function FTe(n){let e=n.length,t=new Array(e),i="/";for(let r=0;r<e;r++){let o=n[r];i==="/"?t[r]=_Te:i==="-"||i==="_"||i===" "?t[r]=PTe:i==="."?t[r]=LTe:ITe(i)&&jTe(o)?t[r]=RTe:t[r]=0,i=o}return t}function jz(n,e,t,i){let r=n.length,o=e.length,s=n.toLowerCase(),a=e.toLowerCase(),l=FTe(e);for(let u=0;u<r;u++){t[u]=new Array(o),i[u]=new Array(o);let c=bh,h=u===r-1?DTe:ETe;for(let d=0;d<o;d++)if(s[u]===a[d]){let g=bh;u?d&&(g=Math.max(i[u-1][d-1]+l[d],t[u-1][d-1]+Iz)):g=d*kTe+l[d],t[u][d]=g,i[u][d]=c=Math.max(g,c+h)}else t[u][d]=bh,i[u][d]=c=c+h}}function yh(n,e){let t=n.length,i=e.length;if(!t||!i)return bh;if(t===i)return TTe;if(i>1024)return bh;let r=new Array(t),o=new Array(t);return jz(n,e,r,o),o[t-1][i-1]}function Fz(n){let e=[];for(let t=0;t<n.length;t++){let i=e.length?e[e.length-1]:void 0,r=n[t];i&&r==i[1]?i[1]=r+1:e.push([r,r+1])}return e}function Dw(n,e){let t=n.length,i=e.length,r=new Array(t);if(!t||!i)return r;if(t===i){for(let l=0;l<t;l++)r[l]=l;return r}if(i>1024)return r;let o=new Array(t),s=new Array(t);jz(n,e,o,s);let a=!1;for(let l=t-1,u=i-1;l>=0;l--)for(;u>=0;u--)if(o[l][u]!==bh&&(a||o[l][u]===s[l][u])){a=l&&u&&s[l][u]===o[l-1][u-1]+Iz,r[l]=u--;break}return r}function Ew(n,e){n=n.toLowerCase(),e=e.toLowerCase();let t=n.length;for(let i=0,r=0;i<t;i+=1)if(r=e.indexOf(n[i],r)+1,r===0)return!1;return!0}var bh,TTe,kTe,DTe,ETe,Iz,_Te,PTe,RTe,LTe,_w=P(()=>{"use strict";bh=-1/0,TTe=1/0,kTe=-.005,DTe=-.005,ETe=-.01,Iz=1,_Te=.9,PTe=.8,RTe=.7,LTe=.6});function Oz(n,e,t=""){if(!n)return{score:0};if(!e)return{score:1};let i=[],r=Cn(e),o=t?n.indexOf(t):-1,s=o!=-1&&ho(r,t),a=0,l=e[0],u=0,c=n[0];if(s){if(t.startsWith(l))a=a+2,u=o+1,i.push(o);else if(t[0].toLowerCase()==l)a=a+1.5,u=o+1,i.push(o);else for(let h=1;h<t.length;h++)if(Af(l,t[h])){a=a+1,u=o+h+1,i.push(o+h);break}}else if(c.toLowerCase()===l.toLowerCase())a=a+(c==l?1:.5),i.push(0),u=1;else{for(let h=1;h<n.length;h++)if(n[h-1]==gP.sep&&n[h]==l){a=a+1,i.push(h),u=h+1;break}if(u==0){for(let h=0;h<n.length;h++)if(Af(l.toLowerCase(),n[h])){a=a+(l===n[h]?.5:.3),i.push(h),u=h+1;break}}}return u==0?{score:0}:r.length==1?{score:a,matches:i}:Mz(r.slice(1),n,u,{score:a,matches:i})}function Mz(n,e,t,i){let{score:r,matches:o}=i,s=[],a=n[0],l=n.slice(1),u;function c(d){if(!!u){if(l.length==0)s.push(u);else if(u){let g=Mz(l,e,d,u);g&&s.push(g)}}}let h=t<e.length?e[t].charCodeAt(0):null;if(!h)return null;if(h==a?(u={score:r+1,matches:o.concat([t])},c(t+1)):Ar(a,h,!0)&&(u={score:r+.5,matches:o.concat([t])},c(t+1)),t+1<e.length){for(let d=t+1;d<e.length;d++){let g=e[d].charCodeAt(0);if(e[d-1]==gP.sep&&Ar(a,g,!0)){let f=a==g?1:.5;u={score:r+f,matches:o.concat([d])},c(d+1);break}}for(let d=t+1;d<e.length;d++){let g=e[d].charCodeAt(0);if(Ar(a,g,!0)){let f=a==g?.5:.2;u={score:r+f,matches:o.concat([d])},c(d+1);break}}}return s.length?OTe(s):null}function OTe(n){let e=n[0];for(let t=1;t<n.length;t++)n[t].score>e.score&&(e=n[t]);return e}var gP,Az=P(()=>{"use strict";gP=require("path");os()});function Pw(n){return n.filterText!=null?gW(n.filterText,n.label):n.label}function ATe(n){let e=[],t=0,i=0,r="";for(;i<n.length;i++){let o=n[i];o.charCodeAt(0)===32&&r&&r!="\\"&&t!=i&&(e.push(n.slice(t,i)),t=i+1),r=o}return t!=n.length&&e.push(n.slice(t,n.length)),e.map(o=>o.replace(/\\\s/g," ").trim()).filter(o=>o.length>0)}function Hz(n,e){let t=[];if(e&&e.length){let i=e.shift(),r=e.shift(),o=i;for(;r;){if(r==o+1){o=r,r=e.shift();continue}t.push([et(n,i),et(n,o)+1]),i=r,o=i,r=e.shift()}t.push([et(n,i),et(n,o)+1])}return{spans:t}}function fP(n,e){let t=Pw(e),i=Oz(t,n);return i!=null&&i.score?Hz(t,i.matches):{spans:[]}}var Ea,Nz,MTe,Rw,qz=P(()=>{"use strict";Ea=S(q());gc();Lz();jD();_w();Qr();Az();Fe();Nz=Y()("list-worker"),MTe="\x1B",Rw=class{constructor(e,t,i,r,o){this.nvim=e;this.list=t;this.prompt=i;this.listOptions=r;this.config=o;this._loading=!1;this._finished=!1;this.mutex=new Qt;this.totalItems=[];this._onDidChangeItems=new Ea.Emitter;this._onDidChangeLoading=new Ea.Emitter;this.onDidChangeItems=this._onDidChangeItems.event;this.onDidChangeLoading=this._onDidChangeLoading.event}set loading(e){this._loading!=e&&(this._loading=e,this._onDidChangeLoading.fire(e))}get isLoading(){return this._loading}async loadItems(e,t=!1){this.cancelFilter(),this.filteredCount=0,this._finished=!1;let{list:i,listOptions:r}=this;this.loading=!0;let{interactive:o}=r;this.tokenSource=new Ea.CancellationTokenSource;let s=this.tokenSource.token,a=await i.loadItems(e,s);if(!s.isCancellationRequested)if(a=a!=null?a:[],Array.isArray(a)){this.tokenSource=null,this.totalItems=a,this.loading=!1,this._finished=!0;let l;if(o)l=this.convertToHighlightItems(a),this._onDidChangeItems.fire({items:l,reload:t,finished:!0});else{let u=this.filterTokenSource=new Ea.CancellationTokenSource;await this.mutex.use(async()=>{let c=u.token;c.isCancellationRequested||await this.filterItems(a,{reload:t},c)})}}else{let l=a,u=this.totalItems=[],c=0,h=e.input,d=!1;this.filterTokenSource=new Ea.CancellationTokenSource;let g=async w=>{d=!0,await this.mutex.use(async()=>{var j;if(this.input!=h&&(h=this.input,c=(j=this.filteredCount)!=null?j:0),c>=u.length)return;let k=c>0,L=u.slice(c);if(c=u.length,o){let O=this.convertToHighlightItems(L);this._onDidChangeItems.fire({items:O,append:k,reload:t,finished:w})}else{let O=this.filterTokenSource;O&&!O.token.isCancellationRequested&&await this.filterItems(L,{append:k,reload:t},O.token)}}),d=!1},f=Promise.resolve(),p=setInterval(()=>{d||(f=g())},50);l.on("data",w=>{s.isCancellationRequested||u.push(w)});let b=()=>{l!=null&&(this.tokenSource=null,l=null,this.loading=!1,this._finished=!0,y.dispose(),clearInterval(p),f.then(()=>{if(!s.isCancellationRequested){if(u.length==0){this._onDidChangeItems.fire({items:[],append:!1,reload:t,finished:!0});return}return g(!0)}}).catch(w=>{Nz.error("Error on filter",w)}))},y=s.onCancellationRequested(()=>{l==null||l.dispose(),b()});l.on("error",async w=>{l!=null&&(l=null,this.tokenSource=null,this.loading=!1,y.dispose(),clearInterval(p),this.nvim.call("coc#prompt#stop_prompt",["list"],!0),this.nvim.echoError(`Task error: ${w.toString()}`),Nz.error("Task error:",w))}),l.on("end",b)}}async drawItems(){let{totalItems:e}=this;if(e.length===0)return;this.cancelFilter();let t=this.filterTokenSource=new Ea.CancellationTokenSource,i=t.token;await this.mutex.use(async()=>{if(i.isCancellationRequested)return;let{totalItems:r}=this;this.filteredCount=r.length,await this.filterItems(r,{},t.token)})}cancelFilter(){this.filterTokenSource&&(this.filterTokenSource.cancel(),this.filterTokenSource=null)}stop(){this.cancelFilter(),this.tokenSource&&(this.tokenSource.cancel(),this.tokenSource=null),this.loading=!1}get length(){return this.totalItems.length}get input(){return this.prompt.input}convertToHighlightItems(e){var r;let t=(r=this.input)!=null?r:"";return e.map(o=>{this.convertItemLabel(o);let s=t.length>0?fP(t,o):void 0;return Object.assign({},o,{highlights:s})})}async filterItemsByInclude(e,t,i,r){let{ignorecase:o}=this.listOptions;o&&(e=e.map(s=>s.toLowerCase())),await kw(t,s=>{this.convertItemLabel(s);let a=[],l=Pw(s),u=!0;for(let c of e){let h=o?l.toLowerCase().indexOf(c):l.indexOf(c);if(h==-1){u=!1;break}a.push([et(l,h),et(l,h+V(c))])}return u?{highlights:{spans:a}}:!1},r,i)}async filterItemsByRegex(e,t,i,r){let{ignorecase:o}=this.listOptions,s=o?"iu":"u",a=e.reduce((l,u)=>{try{l.push(new RegExp(u,s))}catch{}return l},[]);await kw(t,l=>{this.convertItemLabel(l);let u=[],c=Pw(l),h=!0;for(let d of a){let g=c.match(d);if(g==null){h=!1;break}u.push([et(c,g.index),et(c,g.index+V(g[0]))])}return h?{highlights:{spans:u}}:!1},r,i)}async filterItemsByFuzzyMatch(e,t,i,r){let{sort:o}=this.listOptions,s=0;await kw(t,a=>{this.convertItemLabel(a);let l=a.filterText||a.label,u=0,c=[],h=Pw(a),d=!0;for(let g of e){if(!Ew(g,l)){d=!1;break}c.push(...Dw(g,h)),o&&(u+=yh(g,l))}return s=s+1,d?{sortText:typeof a.sortText=="string"?a.sortText:String.fromCharCode(s),score:u,highlights:Hz(h,c)}:!1},(a,l)=>{r(a,l,o)},i)}async filterItems(e,t,i){let{input:r}=this;if(r.length===0){let l=e.map(u=>this.convertItemLabel(u));this._onDidChangeItems.fire(me({items:l,finished:this._finished},t));return}let o=this.config.extendedSearchMode?ATe(r):[r],s=!1,a=(l,u,c)=>{if(u=u&&this._finished,i.isCancellationRequested||!u&&l.length==0)return;c&&l.sort((d,g)=>d.score!=g.score?g.score-d.score:d.sortText>g.sortText?1:-1);let h=t.append===!0||s;s=!0,this._onDidChangeItems.fire({items:l,append:h,reload:t.reload,finished:u})};switch(this.listOptions.matcher){case"strict":await this.filterItemsByInclude(o,e,i,a);break;case"regex":await this.filterItemsByRegex(o,e,i,a);break;default:await this.filterItemsByFuzzyMatch(o,e,i,a)}}convertItemLabel(e){let{label:t,converted:i}=e;if(i)return e;if(t.includes(`
`)&&(t=e.label=t.replace(/\r?\n/g," ")),t.includes(MTe)){let{line:r,highlights:o}=dc(t);e.label=r,Array.isArray(e.ansiHighlights)||(e.ansiHighlights=o)}return e.converted=!0,e}dispose(){this.stop()}}});var pP,Bz,NTe,AUe,Lw,Yz=P(()=>{"use strict";pP=S(_i()),Bz=S(q());go();Bl();z();De();Q();Dz();_z();qz();NTe=["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"],AUe=Y()("list-session"),Lw=class{constructor(e,t,i,r,o=[],s){this.nvim=e;this.prompt=t;this.list=i;this.listOptions=r;this.listArgs=o;this.config=s;this.loadingFrame="";this.hidden=!1;this.disposables=[];this.args=[];this.ui=new Tw(e,i.name,r,s),this.history=new Sw(t,i.name),this.worker=new Rw(e,i,t,r,{interactiveDebounceTime:s.get("interactiveDebounceTime",100),extendedSearchMode:s.get("extendedSearchMode",!0)}),this.interactiveDebounceTime=s.get("interactiveDebounceTime",100);let a=(0,pP.default)(async()=>{let[d,g,f]=await e.eval('[coc#list#has_preview(),win_getid(),line(".")]');if(d&&g==this.winid){let p=this.ui.lnumToIndex(f);await this.doPreview(p)}},50);this.disposables.push({dispose:()=>{a.clear()}}),this.ui.onDidChangeLine(a,null,this.disposables),this.ui.onDidChangeLine(this.resolveItem,this,this.disposables),this.ui.onDidLineChange(this.resolveItem,this,this.disposables);let l=(0,pP.default)(async()=>{this.updateStatus();let{autoPreview:d}=this.listOptions;if(!d){let[g,f]=await e.eval("[coc#list#has_preview(),mode()]");if(!g||f!="n")return}await this.doAction("preview")},50);this.disposables.push({dispose:()=>{l.clear()}}),this.ui.onDidLineChange(l,null,this.disposables),this.ui.onDidOpen(async()=>{typeof this.list.doHighlight=="function"&&this.list.doHighlight(),v.isVim&&this.prompt.drawPrompt(),this.listOptions.first&&await this.doAction()},null,this.disposables),this.ui.onDidClose(async()=>{await this.hide()},null,this.disposables),this.ui.onDidDoubleClick(async()=>{await this.doAction()},null,this.disposables),this.worker.onDidChangeItems(async({items:d,reload:g,append:f,finished:p})=>{if(!this.hidden)if(f)await this.ui.appendItems(d);else{let b=this.config.get("height",10);p&&!r.interactive&&r.input.length==0&&(b=Math.min(d.length,b)),await this.ui.drawItems(d,Math.max(1,b),g)}},null,this.disposables);let u=0,c,h;this.disposables.push(Bz.Disposable.create(()=>{c&&clearTimeout(c),h&&clearInterval(h)})),this.worker.onDidChangeLoading(d=>{this.hidden||(c&&clearTimeout(c),d?(u=Date.now(),h=setInterval(()=>{let g=Math.floor((Date.now()-u)%1e3/100);this.loadingFrame=NTe[g],this.updateStatus()},100)):c=setTimeout(()=>{this.loadingFrame="",h&&clearInterval(h),h=null,this.updateStatus()},Math.max(0,200-(Date.now()-u))))},null,this.disposables)}async start(e){this.args=e,this.cwd=v.cwd,this.hidden=!1;let{listOptions:t,listArgs:i}=this,r=await this.nvim.eval('[win_getid(),bufnr("%"),winheight("%")]');this.listArgs=i,this.history.load(t.input||""),this.window=this.nvim.createWindow(r[0]),this.buffer=this.nvim.createBuffer(r[1]),this.savedHeight=r[2],await this.worker.loadItems(this.context)}async reloadItems(){!this.ui.winid||await this.worker.loadItems(this.context,!0)}async call(e){var o,s;await this.nvim.call("coc#prompt#stop_prompt",["list"]);let t=await this.ui.getItems(),i={name:this.name,args:this.listArgs,input:this.prompt.input,winid:(o=this.window)==null?void 0:o.id,bufnr:(s=this.buffer)==null?void 0:s.id,targets:t},r=await this.nvim.call(e,[i]);return this.prompt.start(),r}async chooseAction(){let{nvim:e,defaultAction:t}=this,{actions:i}=this.list,r=i.map(h=>h.name),o=r.indexOf(t.name);o!=-1&&(r.splice(o,1),r.unshift(t.name));let s=new Set,a=[],l=[],u=v.env.dialog&&this.config.get("menuAction",!1);for(let h of r){let d=0;for(let g of h){if(!s.has(g)){s.add(g),a.push(`${h.slice(0,d)}&${h.slice(d)}`);break}d++}d==h.length&&l.push(h)}l.length&&!u&&(r=r.filter(h=>!l.includes(h)));let c;u?(e.call("coc#prompt#stop_prompt",["list"],!0),c=await D.showMenuPicker(r,{title:"Choose action",shortcuts:!0}),c=c+1,v.isVim&&await Qe(10),this.prompt.start()):(await e.call("coc#prompt#stop_prompt",["list"]),c=await e.call("confirm",["Choose action:",a.join(`
`)]),await Qe(10),this.prompt.start()),c&&await this.doAction(r[c-1])}async doAction(e){let{list:t}=this,i;if(e!=null){if(i=t.actions.find(o=>o.name==e),!i){D.showMessage(`Action ${e} not found`,"error");return}}else i=this.defaultAction;let r;if(e=="preview"){let o=await this.ui.item;r=o?[o]:[]}else r=await this.ui.getItems();r.length&&await this.doItemAction(r,i)}async doPreview(e){let t=this.ui.getItem(e),i=this.list.actions.find(r=>r.name=="preview");!t||!i||await this.doItemAction([t],i)}async first(){await this.doDefaultAction(0)}async last(){await this.doDefaultAction(this.ui.length-1)}async previous(){await this.doDefaultAction(this.ui.index-1)}async next(){await this.doDefaultAction(this.ui.index+1)}async doDefaultAction(e){let{ui:t}=this,i=t.getItem(e);!i||(t.index=e,await this.doItemAction([i],this.defaultAction),await t.echoMessage(i))}get name(){return this.list.name}get winid(){return this.ui.winid}get length(){return this.ui.length}get defaultAction(){let{defaultAction:e,actions:t,name:i}=this.list,r=v.getConfiguration(`list.source.${i}`),o;if(r.defaultAction&&(o=t.find(s=>s.name==r.defaultAction)),o||(o=t.find(s=>s.name==e)),o||(o=t[0]),!o)throw new Error(`default action "${e}" not found`);return o}async hide(e=!1){if(this.hidden)return;let{nvim:t,timer:i,window:r}=this,{winid:o,tabnr:s}=this.ui;i&&clearTimeout(i),this.worker.stop(),this.history.add(),this.ui.reset(),this.hidden=!0;let{isVim:a}=v;if(t.pauseNotification(),a||t.call("coc#prompt#stop_prompt",["list"],!0),s&&t.call("coc#list#close_preview",[s],!0),r&&t.call("win_gotoid",[r.id],!0),o&&t.call("coc#window#close",[o],!0),r&&this.savedHeight&&this.listOptions.position!=="tab"&&t.call("coc#window#set_height",[r.id,this.savedHeight],!0),e)return t.resumeNotification(!1,!0);await t.resumeNotification(!1),a&&(await Qe(10),t.call("feedkeys",["\x1B","int"],!0),t.command("redraw",!0))}toggleMode(){let e=this.prompt.mode=="normal"?"insert":"normal";this.prompt.mode=e,this.listOptions.mode=e,this.updateStatus()}stop(){this.worker.stop()}async resolveItem(){let e=this.ui.index,t=this.ui.getItem(e);if(!t||t.resolved)return;let{list:i}=this;if(typeof i.resolveItem=="function"){let r=t.label,o=await Promise.resolve(i.resolveItem(t));if(o&&e==this.ui.index){let s=fP(this.prompt.input,o);this.ui.updateItem(Object.assign({highlights:s},o),e,r!=o.label)}}}async showHelp(){await this.hide();let{list:e,nvim:t}=this;if(!e)return;t.pauseNotification(),t.command("tabe +setl\\ previewwindow [LIST HELP]",!0),t.command("setl nobuflisted noswapfile buftype=nofile bufhidden=wipe",!0),await t.resumeNotification();let i=e.options&&e.options.length,r=await t.buffer,o=new vn;if(o.addLine("NAME","Label"),o.addLine(` ${e.name} - ${e.description||""}
`),o.addLine("SYNOPSIS","Label"),o.addLine(` :CocList [LIST OPTIONS] ${e.name}${i?" [ARGUMENTS]":""}
`),e.detail){o.addLine("DESCRIPTION","Label");let a=e.detail.split(`
`).map(l=>" "+l);o.addLine(a.join(`
`)+`
`)}if(i){o.addLine("ARGUMENTS","Label"),o.addLine("");for(let a of e.options)o.addLine(a.name,"Special"),o.addLine(` ${a.description}`),o.addLine("");o.addLine("")}let s=v.getConfiguration(`list.source.${e.name}`);if(Object.keys(s).length){o.addLine("CONFIGURATIONS","Label"),o.addLine("");let a={};ye.all.forEach(l=>{let{packageJSON:u}=l,{contributes:c}=u;if(!c)return;let{configuration:h}=c;if(h){let{properties:d}=h;if(d)for(let g of Object.keys(d))a[g]=d[g]}});for(let l of Object.keys(s)){let u=s[l],c=`list.source.${e.name}.${l}`,h=a[c]&&a[c].description?a[c].description:l;o.addLine(` "${c}"`,"MoreMsg"),o.addText(` - ${h}, current value: `),o.addText(JSON.stringify(u),"Special")}o.addLine("")}o.addLine("ACTIONS","Label"),o.addLine(` ${e.actions.map(a=>a.name).join(", ")}`),o.addLine(""),o.addLine("see ':h coc-list-options' for available list options.","Comment"),t.pauseNotification(),o.render(r,0,-1),t.command("setl nomod",!0),t.command("setl nomodifiable",!0),t.command("normal! gg",!0),t.command("nnoremap <buffer> q :bd!<CR>",!0),await t.resumeNotification()}async switchMatcher(){let{matcher:e,interactive:t}=this.listOptions;if(t)return;let i=["fuzzy","strict","regex"],r=i.indexOf(e)+1;r>=i.length&&(r=0),this.listOptions.matcher=i[r],this.prompt.matcher=i[r],await this.worker.drawItems()}updateStatus(){let{ui:e,list:t,nvim:i}=this;if(!e.bufnr)return;let r=i.createBuffer(e.bufnr),o={mode:this.prompt.mode.toUpperCase(),args:this.args.join(" "),name:t.name,cwd:this.cwd,loading:this.loadingFrame,total:this.worker.length};r.setVar("list_status",o,!0),i.command("redraws",!0)}get context(){let{winid:e}=this.ui;return{options:this.listOptions,args:this.listArgs,input:this.prompt.input,cwd:v.cwd,window:this.window,buffer:this.buffer,listWindow:e?this.nvim.createWindow(e):void 0}}onMouseEvent(e){switch(e){case"<LeftMouse>":return this.ui.onMouse("mouseDown");case"<LeftDrag>":return this.ui.onMouse("mouseDrag");case"<LeftRelease>":return this.ui.onMouse("mouseUp");case"<2-LeftMouse>":return this.ui.onMouse("doubleClick")}}async doNumberSelect(e){if(!this.listOptions.numberSelect)return!1;let t=e.charCodeAt(0);if(t>=48&&t<=57){let i=Number(e);if(i==0&&(i=10),this.ui.length>=i)return this.nvim.pauseNotification(),this.ui.setCursor(i),await this.nvim.resumeNotification(),await this.doAction(),!0}return!1}jumpBack(){let{window:e,nvim:t}=this;e&&(t.pauseNotification(),t.call("coc#prompt#stop_prompt",["list"],!0),this.nvim.call("win_gotoid",[e.id],!0),t.resumeNotification(!1,!0))}async resume(){this.winid&&await this.hide();let e=await this.nvim.eval('[win_getid(),bufnr("%"),winheight("%")]');this.hidden=!1,this.window=this.nvim.createWindow(e[0]),this.buffer=this.nvim.createBuffer(e[1]),this.savedHeight=e[2],this.prompt.start(),await this.ui.resume(),this.listOptions.autoPreview&&await this.doAction("preview")}async doItemAction(e,t){let{noQuit:i,position:r}=this.listOptions,{nvim:o}=this,s=t.persist===!0||t.name=="preview";r==="tab"&&t.tabPersist&&(s=!0);let a=this.winid&&(s||i);try{if(a?s||(o.pauseNotification(),o.call("coc#prompt#stop_prompt",["list"],!0),o.call("win_gotoid",[this.context.window.id],!0),await o.resumeNotification()):await this.hide(),t.multiple)await Promise.resolve(t.execute(e,this.context));else if(t.parallel)await Promise.all(e.map(l=>Promise.resolve(t.execute(l,this.context))));else for(let l of e)await Promise.resolve(t.execute(l,this.context));a&&this.ui.restoreWindow(),t.reload&&a&&await this.reloadItems()}catch(l){this.nvim.echoError(l)}}onInputChange(){this.timer&&clearTimeout(this.timer),this.listOptions.input=this.prompt.input,this.listOptions.interactive?(this.worker.stop(),this.timer=setTimeout(async()=>{await this.worker.loadItems(this.context)},this.interactiveDebounceTime)):this.worker.drawItems()}dispose(){this.hide(!0),J(this.disposables),this.worker.dispose(),this.ui.dispose()}}});var Wz,Zz,Jz,HTe,Iw,$z=P(()=>{"use strict";Wz=require("child_process"),Zz=require("events"),Jz=S(require("readline"));z();Q();HTe=Y()("list-commandTask"),Iw=class extends Zz.EventEmitter{constructor(e){super();this.opt=e;this.disposables=[];this.start()}start(){let{cmd:e,args:t,cwd:i,onLine:r}=this.opt,o=(0,Wz.spawn)(e,t,{cwd:i||v.cwd,windowsHide:!0});this.disposables.push({dispose:()=>{o.kill()}}),o.on("error",a=>{this.emit("error",a.message)}),o.stderr.on("data",a=>{HTe.error(`[${e} Error]`,a.toString("utf8"))});let s=Jz.default.createInterface(o.stdout);s.on("line",a=>{let l=r(a);l&&this.emit("data",l)}),s.on("close",()=>{this.emit("end")})}dispose(){J(this.disposables)}}});function qTe(n){switch(n){case"latex":return"tex";default:return n}}var Xz,mP,Uz,Sn,QUe,$t,fo=P(()=>{"use strict";Xz=S(require("fs")),mP=S(require("path")),Uz=S(require("readline")),Sn=S(q());we();z();Xe();bt();Q();$z();ww();QUe=Y()("list-basic"),$t=class{constructor(e){this.nvim=e;this.defaultAction="open";this.actions=[];this.options=[];this.disposables=[];this.config=new ph}get alignColumns(){return this.config.get("alignColumns",!1)}get hlGroup(){return this.config.get("previewHighlightGroup","Search")}get previewHeight(){return this.config.get("maxPreviewHeight",12)}get splitRight(){return this.config.get("previewSplitRight",!1)}get toplineStyle(){return this.config.get("previewToplineStyle","offset")}get toplineOffset(){return this.config.get("previewToplineOffset",3)}parseArguments(e){if(!this.optionMap){this.optionMap=new Map;for(let i of this.options){let r=i.name.split(/,\s*/g).map(s=>s.replace(/\s+.*/g,"")),o=i.key?i.key:r[r.length-1].replace(/^-/,"");for(let s of r)this.optionMap.set(s,{name:o,hasValue:i.hasValue})}}let t={};for(let i=0;i<e.length;i++){let r=e[i],o=this.optionMap.get(r);if(!o)continue;let s=!0;o.hasValue&&(s=e[i+1]||"",i=i+1),t[o.name]=s}return t}getConfig(){return v.getConfiguration(`list.source.${this.name}`)}addAction(e,t,i){this.createAction(Object.assign({name:e,execute:t},i||{}))}addMultipleAction(e,t,i){this.createAction(Object.assign({name:e,multiple:!0,execute:t},i||{}))}createCommandTask(e){return new Iw(e)}addLocationActions(){this.createAction({name:"preview",execute:async(t,i)=>{let r=await this.convertLocation(t.location);await this.previewLocation(r,i)}});let{nvim:e}=this;this.createAction({name:"quickfix",multiple:!0,execute:async t=>{let i=await Promise.all(t.map(o=>this.convertLocation(o.location).then(s=>v.getQuickfixItem(s))));await e.call("setqflist",[i]);let r=await e.getVar("coc_quickfix_open_command");e.command(typeof r=="string"?r:"copen",!0)}});for(let t of["open","tabe","drop","vsplit","split"])this.createAction({name:t,execute:async(i,r)=>{await this.jumpTo(i.location,t=="open"?null:t,r)},tabPersist:t==="open"})}async convertLocation(e){if(typeof e=="string")return Sn.Location.create(e,Sn.Range.create(0,0,0,0));if(Sn.Location.is(e))return e;let t=M.parse(e.uri);if(t.scheme!="file")return Sn.Location.create(e.uri,Sn.Range.create(0,0,0,0));let i=Uz.default.createInterface({input:Xz.default.createReadStream(t.fsPath,{encoding:"utf8"})}),r=e.line,o=0,s=!1,a=await new Promise(l=>{i.on("line",u=>{if(!s){if(u.includes(r)){i.removeAllListeners(),i.close(),s=!0,l(u);return}o=o+1}}),i.on("error",u=>{this.nvim.errWriteLine(`Read ${t.fsPath} error: ${u.message}`),l(null)})});if(a!=null){let l=e.text?a.indexOf(e.text):0;l==0&&(l=a.match(/^\s*/)[0].length);let u=Sn.Position.create(o,l+(e.text?e.text.length:0));return Sn.Location.create(e.uri,Sn.Range.create(Sn.Position.create(o,l),u))}return Sn.Location.create(e.uri,Sn.Range.create(0,0,0,0))}async jumpTo(e,t,i){if(t==null&&i&&i.options.position==="tab"&&(t="tabe"),typeof e=="string"){await v.jumpTo(e,null,t);return}let{range:r,uri:o}=await this.convertLocation(e),s=r.start;s.line==0&&s.character==0&&xe(s,r.end)==0&&(s=null),await v.jumpTo(o,s,t)}createAction(e){let{name:t}=e,i=this.actions.findIndex(r=>r.name==t);i!==-1&&this.actions.splice(i,1),this.actions.push(e)}async previewLocation(e,t){if(!t.listWindow)return;let{nvim:i}=this,{uri:r,range:o}=e,s=v.getDocument(e.uri),a=M.parse(r),l=[];if(s)l=s.getLines();else if(a.scheme=="file")try{l=(await yc(a.fsPath,"utf8")).split(/\r?\n/)}catch(c){`${a.fsPath}`,c.toString()}let u={winid:t.window.id,range:Ct(o)?null:o,lnum:o.start.line+1,name:a.scheme=="file"?a.fsPath:r,filetype:qTe(s?s.languageId:this.getLanguageId(a.fsPath)),position:t.options.position,maxHeight:this.previewHeight,splitRight:this.splitRight,hlGroup:this.hlGroup,scheme:a.scheme,toplineStyle:this.toplineStyle,toplineOffset:this.toplineOffset};await i.call("coc#list#preview",[l,u]),i.command("redraw",!0)}async preview(e,t){let{nvim:i}=this,{bufname:r,filetype:o,range:s,lines:a,lnum:l}=e,u={winid:t.window.id,lnum:s?s.start.line+1:l||1,filetype:o||"txt",position:t.options.position,maxHeight:this.previewHeight,splitRight:this.splitRight,hlGroup:this.hlGroup,toplineStyle:this.toplineStyle,toplineOffset:this.toplineOffset};r&&(u.name=r),s&&(u.range=s),await i.call("coc#list#preview",[a,u]),i.command("redraw",!0)}doHighlight(){}dispose(){J(this.disposables)}getLanguageId(e){let t=mP.default.extname(e);if(!t)return"";for(let i of v.documents){let r=M.parse(i.uri).fsPath;if(mP.default.extname(r)==t)return i.languageId}return""}}});function Tn(n,e){if(e.length===0)return[];let t=[];if(n){let i=Array(Math.min(...e.map(r=>r.label.length))).fill(0);for(let r of e)for(let o=0;o<i.length;o++)i[o]=Math.max(i[o],r.label[o].length);t=e.map(r=>Hh(me({},r),{label:r.label.map((o,s)=>o.padEnd(i[s])).join(" ")}))}else t=e.map(i=>Hh(me({},i),{label:i.label.join(" ")}));return t}function Gz(n,e){var t;if(n==="hidden")return"";if(n==="full")return e;if(n==="short"){let i=e.split(jw.default.sep);return i.length<2?e:[...i.slice(0,i.length-2).filter(o=>o.length>0).map(o=>o[0]),i[i.length-1]].join(jw.default.sep)}else{let i=e.split(jw.default.sep);return(t=i[i.length-1])!=null?t:""}}var jw,_a=P(()=>{"use strict";jw=S(require("path"))});function BTe(n,e){let t=n.indexOf(e);return t==-1?-1:n.length-t}var Fw,Kz=P(()=>{"use strict";xi();he();Q();fo();_a();Fw=class extends $t{constructor(e){super(e);this.defaultAction="run";this.description="registered commands of coc.nvim";this.name="commands";this.mru=v.createMru("commands"),this.addAction("run",async t=>{let{cmd:i}=t.data;await _.fire("Command",[i]),await re.executeCommand(i),re.addRecent(i)}),this.addAction("append",async t=>{let{cmd:i}=t.data;await e.feedKeys(`:CocCommand ${i} `,"n",!1)})}async loadItems(e){let t=[],i=await this.mru.load(),{commandList:r,onCommandList:o,titles:s}=re,a=r.map(l=>l.id).concat(o);for(let l of[...new Set(a)])t.push({label:[l,...s.get(l)?[s.get(l)]:[]],filterText:l,data:{cmd:l,score:BTe(i,l)}});return t.sort((l,u)=>u.data.score-l.data.score),Tn(this.alignColumns,t)}doHighlight(){let{nvim:e}=this;e.pauseNotification(),e.command("syntax match CocCommandsTitle /\\t.*$/ contained containedin=CocCommandsLine",!0),e.command("highlight default link CocCommandsTitle Comment",!0),e.resumeNotification(!1,!0)}}});var Nf,p2e,po,Hf=P(()=>{"use strict";No();Nf=S(require("path"));fo();Q();xi();we();Xe();Fe();p2e=Y()("list-location"),po=class extends $t{constructor(e){super(e);this.defaultAction="open";this.description="show locations saved by g:coc_jump_locations variable";this.name="location";this.createAction({name:"refactor",multiple:!0,execute:async t=>{let i=t.map(r=>r.location);await re.executeCommand("workspace.refactor",i)}}),this.addLocationActions()}async loadItems(e,t){let i=await this.nvim.getVar("coc_jump_locations");if(t.isCancellationRequested)return[];i=i||[],i.forEach(a=>{if(!a.uri){let l=Nf.default.isAbsolute(a.filename)?a.filename:Nf.default.join(e.cwd,a.filename);a.uri=M.file(l).toString()}if(!a.bufnr&&v.getDocument(a.uri)!=null&&(a.bufnr=v.getDocument(a.uri).bufnr),a.range)a.lnum=a.lnum||a.range.start.line+1,a.col=a.col||a.range.start.character+1;else{let{lnum:l,col:u}=a;a.range=Me.create(l-1,u-1,l-1,u-1)}});let r=e.buffer.id,o=i.every(a=>a.bufnr&&r&&a.bufnr==r);return i.map(a=>{let l=o?"":a.filename,u=`${l}${a.text.trim()}`;Nf.default.isAbsolute(l)&&(l=Ae(e.cwd,l)?Nf.default.relative(e.cwd,l):l);let c=`${l} |${a.type?a.type+" ":""}${a.lnum} col ${a.col}| `,h;if(a.range&&a.range.start.line==a.range.end.line){let g=V(c)+V(a.text.slice(0,a.range.start.character)),f=V(c)+V(a.text.slice(0,a.range.end.character));h={hlGroup:"Search",span:[g,f]}}return{label:c+a.text,location:un.create(a.uri,a.range),filterText:u,ansiHighlights:h?[h]:void 0}})}doHighlight(){let{nvim:e}=this;e.pauseNotification(),e.command("syntax match CocLocationName /\\v^[^|]+/ contained containedin=CocLocationLine",!0),e.command("syntax match CocLocationPosition /\\v\\|\\w*\\s?\\d+\\scol\\s\\d+\\|/ contained containedin=CocLocationLine",!0),e.command("syntax match CocLocationError /Error/ contained containedin=CocLocationPosition",!0),e.command("syntax match CocLocationWarning /Warning/ contained containedin=CocLocationPosition",!0),e.command("highlight default link CocLocationName Directory",!0),e.command("highlight default link CocLocationPosition LineNr",!0),e.command("highlight default link CocLocationError Error",!0),e.command("highlight default link CocLocationWarning WarningMsg",!0),e.resumeNotification(!1,!0)}}});var zz,S2e,Ow,Qz=P(()=>{"use strict";zz=S(require("path"));Ul();Xe();_a();Hf();S2e=Y()("list-symbols"),Ow=class extends po{constructor(e,t){super(e);this.defaultAction="open";this.description="diagnostics of current workspace";this.name="diagnostics";Pt.onDidRefresh(async()=>{let i=t.getSession("diagnostics");i&&await i.reloadItems()},null,this.disposables)}async loadItems(e){let t=await Pt.getDiagnosticList(),{cwd:i}=e,r=this.getConfig(),o=r.get("includeCode",!0),s=r.get("pathFormat","full"),a=t.map(l=>{let u=Ae(i,l.file)?zz.default.relative(i,l.file):l.file,c=Gz(s,u),h=s!=="hidden"?[`${c}:${l.lnum}`]:[],d=o?[`[${l.source}${l.code?"":"]"}`,l.code?`${l.code}]`:""]:[];return{label:[...h,...d,l.severity,l.message],location:l.location}});return Tn(this.alignColumns,a)}doHighlight(){let{nvim:e}=this;e.pauseNotification(),e.command("syntax match CocDiagnosticsFile /\\v^\\s*\\S+/ contained containedin=CocDiagnosticsLine",!0),e.command("syntax match CocDiagnosticsError /\\tError\\s*\\t/ contained containedin=CocDiagnosticsLine",!0),e.command("syntax match CocDiagnosticsWarning /\\tWarning\\s*\\t/ contained containedin=CocDiagnosticsLine",!0),e.command("syntax match CocDiagnosticsInfo /\\tInformation\\s*\\t/ contained containedin=CocDiagnosticsLine",!0),e.command("syntax match CocDiagnosticsHint /\\tHint\\s*\\t/ contained containedin=CocDiagnosticsLine",!0),e.command("highlight default link CocDiagnosticsFile Comment",!0),e.command("highlight default link CocDiagnosticsError CocErrorSign",!0),e.command("highlight default link CocDiagnosticsWarning CocWarningSign",!0),e.command("highlight default link CocDiagnosticsInfo CocInfoSign",!0),e.command("highlight default link CocDiagnosticsHint CocHintSign",!0),e.resumeNotification(!1,!0)}}});function WTe(n){switch(n){case"unknown":return 2;case"activated":return 1;case"disabled":return-1;default:return 0}}var vh,Vz,Mw,YTe,Aw,eQ=P(()=>{"use strict";vh=S(Rn()),Vz=S(require("os")),Mw=S(require("path"));we();go();z();Q();De();fo();_a();YTe=Y()("list-extensions"),Aw=class extends $t{constructor(e){super(e);this.defaultAction="toggle";this.description="manage coc extensions";this.name="extensions";this.addAction("toggle",async t=>{let{id:i,state:r}=t.data;r!="disabled"&&(r=="activated"?await ye.deactivate(i):await ye.activate(i),await Qe(100))},{persist:!0,reload:!0,parallel:!0}),this.addAction("configuration",async t=>{let{root:i}=t.data,r=Mw.default.join(i,"package.json");if(vh.default.existsSync(r)){let s=vh.default.readFileSync(r,"utf8").split(/\r?\n/).findIndex(a=>a.includes('"contributes"'));await v.jumpTo(M.file(r).toString(),{line:s==-1?0:s,character:0})}}),this.addAction("open",async t=>{let{root:i}=t.data;v.env.isiTerm?e.call("coc#ui#iterm_open",[i],!0):e.call("coc#ui#open_url",[i],!0)}),this.addAction("disable",async t=>{let{id:i,state:r}=t.data;r!=="disabled"&&await ye.toggleExtension(i)},{persist:!0,reload:!0,parallel:!0}),this.addAction("enable",async t=>{let{id:i,state:r}=t.data;r=="disabled"&&await ye.toggleExtension(i)},{persist:!0,reload:!0,parallel:!0}),this.addAction("lock",async t=>{let{id:i}=t.data;await ye.toggleLock(i)},{persist:!0,reload:!0}),this.addAction("help",async t=>{let{root:i}=t.data,o=(await vh.default.readdir(i)).find(s=>/^readme/i.test(s));o&&await v.callAsync("coc#util#jump",["edit",Mw.default.join(i,o)])}),this.addAction("reload",async t=>{let{id:i}=t.data;await ye.reloadExtension(i)},{persist:!0,reload:!0}),this.addAction("fix",async t=>{let{root:i,isLocal:r}=t.data,{npm:o}=ye;if(r){D.showMessage("Can't fix for local extension.","warning");return}if(!o)return;let s=Mw.default.join(i,"node_modules");vh.default.existsSync(s)&&vh.default.removeSync(s);let a=await D.createTerminal({cwd:i});!await a.show(!1)||(v.nvim.command("startinsert",!0),a.sendText(`${o} install --production --ignore-scripts --no-lockfile`,!0))}),this.addMultipleAction("uninstall",async t=>{let i=[];for(let r of t)r.data.isLocal||i.push(r.data.id);ye.uninstallExtension(i).catch(r=>{YTe.error(r)})})}async loadItems(e){let t=[],i=await ye.getExtensionStates(),r=await ye.getLockedList();for(let o of i){let s="+";o.state=="disabled"?s="-":o.state=="activated"?s="*":o.state=="unknown"&&(s="?");let a=await this.nvim.call("resolve",o.root),l=r.includes(o.id);t.push({label:[`${s} ${o.id}${l?" \uE0A2":""}`,...o.isLocal?["[RTP]"]:[],o.version,a.replace(Vz.default.homedir(),"~")],filterText:o.id,data:{id:o.id,root:a,state:o.state,isLocal:o.isLocal,priority:WTe(o.state)}})}return t.sort((o,s)=>o.data.priority!=s.data.priority?s.data.priority-o.data.priority:s.data.id-o.data.id?1:-1),Tn(this.alignColumns,t)}doHighlight(){let{nvim:e}=this;e.pauseNotification(),e.command("syntax match CocExtensionsActivited /\\v^\\*/ contained containedin=CocExtensionsLine",!0),e.command("syntax match CocExtensionsLoaded /\\v^\\+/ contained containedin=CocExtensionsLine",!0),e.command("syntax match CocExtensionsDisabled /\\v^-/ contained containedin=CocExtensionsLine",!0),e.command("syntax match CocExtensionsName /\\v%3c\\S+/ contained containedin=CocExtensionsLine",!0),e.command("syntax match CocExtensionsRoot /\\v\\t[^\\t]*$/ contained containedin=CocExtensionsLine",!0),e.command("syntax match CocExtensionsLocal /\\v\\[RTP\\]/ contained containedin=CocExtensionsLine",!0),e.command("highlight default link CocExtensionsActivited Special",!0),e.command("highlight default link CocExtensionsLoaded Normal",!0),e.command("highlight default link CocExtensionsDisabled Comment",!0),e.command("highlight default link CocExtensionsName String",!0),e.command("highlight default link CocExtensionsLocal MoreMsg",!0),e.command("highlight default link CocExtensionsRoot Comment",!0),e.resumeNotification(!1,!0)}}});var tQ,iQ,Nw,nQ=P(()=>{"use strict";tQ=S(require("path"));we();iQ=S(Rn());Xe();Q();De();fo();Nw=class extends $t{constructor(e){super(e);this.defaultAction="edit";this.description="list of current workspace folders";this.name="folders";this.addAction("edit",async t=>{let i=await e.call("input",["Folder: ",t.label,"dir"]),r=await Mt(i);if(!r||!r.isDirectory()){D.showMessage(`invalid path: ${i}`,"error");return}v.workspaceFolderControl.renameWorkspaceFolder(t.label,i)}),this.addAction("delete",async t=>{v.workspaceFolderControl.removeWorkspaceFolder(t.label)},{reload:!0,persist:!0}),this.addAction("newfile",async(t,i)=>{let r=await D.requestInput("File name",t.label+"/");if(!r)return;let o=tQ.default.dirname(r),s=await Mt(o);(!s||!s.isDirectory())&&iQ.default.mkdirpSync(o),await v.createFile(r,{overwrite:!1,ignoreIfExists:!0}),await this.jumpTo(M.file(r).toString(),null,i)})}async loadItems(e){return v.folderPaths.map(t=>({label:t}))}}});function rQ(n){if(!n.startsWith("file:"))return n;let e=M.parse(n).fsPath;return Ae(v.cwd,e)?oQ.default.relative(v.cwd,e):e}var oQ,Hw,sQ=P(()=>{"use strict";Se();Q();oQ=S(require("path"));fo();No();we();Xe();Hw=class extends $t{constructor(e){super(e);this.defaultAction="open";this.description="links of current buffer";this.name="links";this.addAction("open",async t=>{let{target:i}=t.data;M.parse(i).scheme.startsWith("http")?await e.call("coc#ui#open_url",i):await v.jumpTo(i)}),this.addAction("jump",async t=>{let{location:i}=t.data;await v.jumpTo(i.uri,i.range.start)})}async loadItems(e,t){let i=await e.window.buffer,r=v.getDocument(i.id);if(!r)return null;let o=[],s=await F.getDocumentLinks(r.textDocument,t);if(t.isCancellationRequested)return null;if(s==null)throw new Error("Links provider not found.");let a=[];for(let l of s)l.target?o.push({label:rQ(l.target),data:{target:l.target,location:un.create(r.uri,l.range)}}):(l=await F.resolveDocumentLink(l,t),l.target&&o.push({label:rQ(l.target),data:{target:l.target,location:un.create(r.uri,l.range)}}),a.push(l));return o}}});function ZTe(n,e){let t=n.indexOf(e);return t==-1?-1:n.length-t}var qw,aQ=P(()=>{"use strict";fo();Kg();_a();qw=class extends $t{constructor(e,t){super(e);this.listMap=t;this.name="lists";this.defaultAction="open";this.description="registered lists of coc.nvim";this.mru=new to("lists");this.addAction("open",async i=>{let{name:r}=i.data;await this.mru.add(r),e.command(`CocList ${r}`,!0)})}async loadItems(e){let t=[],i=await this.mru.load();for(let r of this.listMap.values())r.name!="lists"&&t.push({label:[r.name,...r.description?[r.description]:[]],data:{name:r.name,interactive:r.interactive,score:ZTe(i,r.name)}});return t.sort((r,o)=>o.data.score-r.data.score),Tn(this.alignColumns,t)}doHighlight(){let{nvim:e}=this;e.pauseNotification(),e.command("syntax match CocListsDesc /\\t.*$/ contained containedin=CocListsLine",!0),e.command("highlight default link CocListsDesc Comment",!0),e.resumeNotification(!1,!0)}}});function mo(n){switch(n){case dt.SymbolKind.File:return"File";case dt.SymbolKind.Module:return"Module";case dt.SymbolKind.Namespace:return"Namespace";case dt.SymbolKind.Package:return"Package";case dt.SymbolKind.Class:return"Class";case dt.SymbolKind.Method:return"Method";case dt.SymbolKind.Property:return"Property";case dt.SymbolKind.Field:return"Field";case dt.SymbolKind.Constructor:return"Constructor";case dt.SymbolKind.Enum:return"Enum";case dt.SymbolKind.Interface:return"Interface";case dt.SymbolKind.Function:return"Function";case dt.SymbolKind.Variable:return"Variable";case dt.SymbolKind.Constant:return"Constant";case dt.SymbolKind.String:return"String";case dt.SymbolKind.Number:return"Number";case dt.SymbolKind.Boolean:return"Boolean";case dt.SymbolKind.Array:return"Array";case dt.SymbolKind.Object:return"Object";case dt.SymbolKind.Key:return"Key";case dt.SymbolKind.Null:return"Null";case dt.SymbolKind.EnumMember:return"EnumMember";case dt.SymbolKind.Struct:return"Struct";case dt.SymbolKind.Event:return"Event";case dt.SymbolKind.Operator:return"Operator";case dt.SymbolKind.TypeParameter:return"TypeParameter";default:return"Unknown"}}var dt,qf=P(()=>{"use strict";dt=S(q())});function lQ(n,e){return`${n.name}${e?` ${e}`:""}`}function JTe(n,e){let t=n.selectionRange,i=e.selectionRange;return t.start.line!=i.start.line?t.start.line-i.start.line:t.start.character-i.start.character}var uQ,cQ,dGe,Bw,hQ=P(()=>{"use strict";uQ=S(require("path"));No();we();cQ=S(Vd());Se();z();Xe();Q();Hf();qf();_a();dGe=Y()("list-symbols");Bw=class extends po{constructor(){super(...arguments);this.description="symbols of current document";this.name="outline";this.options=[{name:"-k, -kind KIND",hasValue:!0,description:"filter symbol by kind"}]}async loadItems(e,t){let i=await e.window.buffer,r=v.getDocument(i.id);if(!r)return null;let s=this.getConfig().get("ctagsFilestypes",[]),a,l=this.parseArguments(e.args);if(s.includes(r.filetype)||(a=await F.getDocumentSymbol(r.textDocument,t)),t.isCancellationRequested)return[];if(!a)return await this.loadCtagsSymbols(r);if(a.length==0)return[];let u=l.kind?l.kind.toLowerCase():null,c=[];if(!a[0].hasOwnProperty("location")){let d=function(g,f=0){g.sort(JTe);for(let p of g){let b=mo(p.kind),y=un.create(r.uri,p.selectionRange);c.push({label:[`${"| ".repeat(f)}${p.name}`,`[${b}]`,`${p.range.start.line+1}`],filterText:lQ(p,l.kind==""?b:null),location:y,data:{kind:b}}),p.children&&p.children.length&&d(p.children,f+1)}};d(a),u&&(c=c.filter(g=>g.data.kind.toLowerCase().indexOf(u)==0))}else{a.sort((d,g)=>{let f=d.location.range.start,p=g.location.range.start,b=f.line-p.line;return b==0?f.character-p.character:b});for(let d of a){let g=mo(d.kind);d.name.endsWith(") callback")||u&&!g.toLowerCase().startsWith(u)||(d.location.uri===void 0&&(d.location.uri=r.uri),c.push({label:[d.name,`[${g}]`,`${d.location.range.start.line+1}`],filterText:lQ(d,l.kind==""?g:null),location:d.location}))}}return Tn(this.alignColumns,c)}doHighlight(){let{nvim:e}=this;e.pauseNotification(),e.command("syntax match CocOutlineName /\\v\\s?[^\\t]+\\s/ contained containedin=CocOutlineLine",!0),e.command("syntax match CocOutlineIndentLine /\\v\\|/ contained containedin=CocOutlineLine,CocOutlineName",!0),e.command("syntax match CocOutlineKind /\\[\\w\\+\\]/ contained containedin=CocOutlineLine",!0),e.command("syntax match CocOutlineLine /\\d\\+$/ contained containedin=CocOutlineLine",!0),e.command("highlight default link CocOutlineName Normal",!0),e.command("highlight default link CocOutlineIndentLine Comment",!0),e.command("highlight default link CocOutlineKind Typedef",!0),e.command("highlight default link CocOutlineLine Comment",!0),e.resumeNotification(!1,!0)}async loadCtagsSymbols(e){if(!cQ.default.sync("ctags",{nothrow:!0}))return[];let t=M.parse(e.uri),i=uQ.default.extname(t.fsPath),r="",s=`${await this.nvim.call("tempname")}.${i}`,a=await this.nvim.call("fnameescape",s);await lb(a,e.getDocumentContent());try{r=await Gr(`ctags -f - --excmd=number --language-force=${e.filetype} ${a}`)}catch{}if(r.trim().length||(r=await Gr(`ctags -f - --excmd=number ${a}`)),r=r.trim(),!r)return[];let l=r.split(/\r?\n/),u=[];for(let c of l){let h=c.split(" ");if(h.length<4)continue;let d=Number(h[2].replace(/;"$/,"")),g=e.getline(d-1);if(!g)continue;let f=g.indexOf(h[0]),p=f==-1?0:f,b=Me.create(d-1,p,d-1,p+h[0].length);u.push({label:`${h[0]} [${h[3]}] ${d}`,filterText:h[0],location:un.create(e.uri,b),data:{line:d}})}return u.sort((c,h)=>c.data.line-h.data.line),u}}});var Yw,dQ=P(()=>{"use strict";Of();fo();z();_a();Yw=class extends $t{constructor(e){super(e);this.defaultAction="toggle";this.description="registered services of coc.nvim";this.name="services";this.addAction("toggle",async t=>{let{id:i}=t.data;await Ai.toggle(i),await Qe(100)},{persist:!0,reload:!0})}async loadItems(e){let t=Ai.getServiceStats();return t.sort((i,r)=>i.id>r.id?-1:1),Tn(this.alignColumns,t.map(i=>({label:[i.state=="running"?"*":" ",i.id,`[${i.state}]`,i.languageIds.join(", ")],data:{id:i.id}})))}doHighlight(){let{nvim:e}=this;e.pauseNotification(),e.command("syntax match CocServicesPrefix /\\v^./ contained containedin=CocServicesLine",!0),e.command("syntax match CocServicesName /\\v%3c\\S+/ contained containedin=CocServicesLine",!0),e.command("syntax match CocServicesStat /\\v\\t\\[\\w+\\]/ contained containedin=CocServicesLine",!0),e.command("syntax match CocServicesLanguages /\\v(\\])@<=.*$/ contained containedin=CocServicesLine",!0),e.command("highlight default link CocServicesPrefix Special",!0),e.command("highlight default link CocServicesName Type",!0),e.command("highlight default link CocServicesStat Statement",!0),e.command("highlight default link CocServicesLanguages Comment",!0),e.resumeNotification(!1,!0)}}});function Ww(n,e){return n.length>e?n.slice(0,e-1)+".":n+" ".repeat(e-n.length)}var SGe,Zw,gQ=P(()=>{"use strict";No();we();Wl();fo();SGe=Y()("list-sources"),Zw=class extends $t{constructor(e){super(e);this.defaultAction="toggle";this.description="registered completion sources";this.name="sources";this.addAction("toggle",async t=>{let{name:i}=t.data;_t.toggleSource(i)},{persist:!0,reload:!0}),this.addAction("refresh",async t=>{let{name:i}=t.data;await _t.refresh(i)},{persist:!0,reload:!0}),this.addAction("open",async(t,i)=>{let{location:r}=t;r&&await this.jumpTo(r,null,i)})}async loadItems(e){let t=_t.sourceStats();return t.sort((i,r)=>i.type!=r.type?i.type<r.type?1:-1:i.name>r.name?-1:1),t.map(i=>{let r=i.disabled?" ":"*",o;return i.filepath&&(o=un.create(M.file(i.filepath).toString(),Me.create(0,0,0,0))),{label:`${r} ${Ww(i.name,22)} ${Ww("["+i.shortcut+"]",10)} ${Ww(i.triggerCharacters.join(""),10)} ${Ww(i.priority.toString(),3)} ${i.filetypes.join(",")}`,location:o,data:{name:i.name}}})}doHighlight(){let{nvim:e}=this;e.pauseNotification(),e.command("syntax match CocSourcesPrefix /\\v^./ contained containedin=CocSourcesLine",!0),e.command("syntax match CocSourcesName /\\v%3c\\S+/ contained containedin=CocSourcesLine",!0),e.command("syntax match CocSourcesType /\\v%25v.*%36v/ contained containedin=CocSourcesLine",!0),e.command("syntax match CocSourcesPriority /\\v%46v.*%50v/ contained containedin=CocSourcesLine",!0),e.command("syntax match CocSourcesFileTypes /\\v\\S+$/ contained containedin=CocSourcesLine",!0),e.command("highlight default link CocSourcesPrefix Special",!0),e.command("highlight default link CocSourcesName Type",!0),e.command("highlight default link CocSourcesPriority Number",!0),e.command("highlight default link CocSourcesFileTypes Comment",!0),e.command("highlight default link CocSourcesType Statement",!0),e.resumeNotification(!1,!0)}}});var bP,fQ,pQ,OGe,Jw,mQ=P(()=>{"use strict";bP=S(require("path")),fQ=S(Vn());we();Se();Q();Hf();qf();Xe();_w();pQ=S(q());_a();OGe=Y()("list-symbols"),Jw=class extends po{constructor(){super(...arguments);this.interactive=!0;this.description="search workspace symbols";this.detail="Symbols list is provided by server, it works on interactive mode only.";this.name="symbols";this.options=[{name:"-k, -kind KIND",description:"Filter symbols by kind.",hasValue:!0}]}async loadItems(e,t){let{input:i}=e;this.cwd=e.cwd;let r=this.parseArguments(e.args),o=r.kind?r.kind.toLowerCase():"";if(!e.options.interactive)throw new Error("Symbols only works on interactive mode");let s=await F.getWorkspaceSymbols(i,t);if(!s)throw new Error("No workspace symbols provider registered");let l=this.getConfig().get("excludes",[]),u=[];for(let c of s){let h=mo(c.kind);if(o&&h.toLowerCase()!=o)continue;let d=M.parse(c.location.uri).fsPath;Ae(v.cwd,d)&&(d=bP.default.relative(v.cwd,d)),!l.some(g=>(0,fQ.default)(d,g))&&u.push({label:[c.name,`[${h}]`,d],filterText:`${c.name}`,location:c.location,data:{original:c,kind:c.kind,file:d,score:yh(i,c.name)}})}return u.sort((c,h)=>c.data.score!=h.data.score?h.data.score-c.data.score:c.data.kind!=h.data.kind?c.data.kind-h.data.kind:c.data.file.length-h.data.file.length),Tn(this.alignColumns,u)}async resolveItem(e){let t=e.data.original;if(!t)return null;let i=new pQ.CancellationTokenSource,r=await F.resolveWorkspaceSymbol(t,i.token);if(!r)return null;let o=mo(r.kind),s=M.parse(r.location.uri).fsPath;return Ae(this.cwd,s)&&(s=bP.default.relative(this.cwd,s)),{label:`${t.name} [${o}] ${s}`,filterText:`${t.name}`,location:t.location}}doHighlight(){let{nvim:e}=this;e.pauseNotification(),e.command("syntax match CocSymbolsName /\\v^\\s*\\S+/ contained containedin=CocSymbolsLine",!0),e.command("syntax match CocSymbolsKind /\\[\\w\\+\\]\\s*\\t/ contained containedin=CocSymbolsLine",!0),e.command("syntax match CocSymbolsFile /\\S\\+$/ contained containedin=CocSymbolsLine",!0),e.command("highlight default link CocSymbolsName Normal",!0),e.command("highlight default link CocSymbolsKind Typedef",!0),e.command("highlight default link CocSymbolsFile Comment",!0),e.resumeNotification(!1,!0)}}});var yQ,$w,vQ,$Te,bQ,wQ,Ci,Xw=P(()=>{"use strict";yQ=S(_i()),$w=S(q());he();go();z();Q();De();ww();Sz();kz();Yz();Kz();Qz();eQ();nQ();sQ();aQ();Hf();hQ();dQ();gQ();mQ();vQ=S(Qm()),$Te=Y()("list-manager"),bQ=["<LeftMouse>","<LeftDrag>","<LeftRelease>","<2-LeftMouse>"],wQ=class{constructor(){this.plugTs=0;this.sessionsMap=new Map;this.disposables=[];this.listMap=new Map}init(e){this.nvim=e,this.config=new ph,this.prompt=new Cw(e,this.config),this.mappings=new xw(this,e,this.config);let t=this.config.get("selectedSignText","*");e.command(`sign define CocSelected text=${t} texthl=CocSelectedText linehl=CocSelectedLine`,!0),_.on("InputChar",this.onInputChar,this,this.disposables);let i=(0,yQ.default)(async()=>{await this.getCurrentSession()&&this.prompt.drawPrompt()},100);_.on("FocusGained",i,null,this.disposables),_.on("WinEnter",o=>{let s=this.getSessionByWinid(o);s&&this.prompt.start(s.listOptions)},null,this.disposables);let r;_.on("WinLeave",o=>{r&&clearTimeout(r),this.getSessionByWinid(o)&&setTimeout(()=>{this.prompt.cancel()},v.isVim?50:0)},null,this.disposables),this.disposables.push({dispose:()=>{i.clear()}}),this.prompt.onDidChangeInput(()=>{let{session:o}=this;!o||(o.onInputChange(),o.history.filter())}),this.registerList(new Hw(e)),this.registerList(new po(e)),this.registerList(new Jw(e)),this.registerList(new Bw(e)),this.registerList(new Fw(e)),this.registerList(new Aw(e)),this.registerList(new Ow(e,this)),this.registerList(new Zw(e)),this.registerList(new Yw(e)),this.registerList(new qw(e,this.listMap)),this.registerList(new Nw(e))}async start(e){let t=this.parseArgs(e);if(!t)return;let{name:i}=t.list,r=this.sessionsMap.get(i);r&&r.dispose(),this.prompt.start(t.options);let o=new Lw(this.nvim,this.prompt,t.list,t.options,t.listArgs,this.config);this.sessionsMap.set(i,o),this.lastSession=o;try{await o.start(e)}catch(s){this.nvim.call("coc#prompt#stop_prompt",["list"],!0);let a=s instanceof Error?s.message:s.toString();D.showMessage(`Error on "CocList ${i}": ${a}`,"error"),$Te.error(s)}}getSessionByWinid(e){for(let t of this.sessionsMap.values())if(t&&t.winid==e)return this.lastSession=t,t;return null}async getCurrentSession(){let{id:e}=await this.nvim.window;for(let t of this.sessionsMap.values())if(t&&t.winid==e)return this.lastSession=t,t;return null}async resume(e){var t;if(!e)await((t=this.session)==null?void 0:t.resume());else{let i=this.sessionsMap.get(e);if(!i){D.showMessage(`Can't find exists ${e} list`);return}await i.resume()}}async doAction(e){let t=this.lastSession;!t||await t.doAction(e)}async first(e){let t=this.getSession(e);t&&await t.first()}async last(e){let t=this.getSession(e);t&&await t.last()}async previous(e){let t=this.getSession(e);t&&await t.previous()}async next(e){let t=this.getSession(e);t&&await t.next()}getSession(e){return e?this.sessionsMap.get(e):this.session}async cancel(e=!0){this.prompt.cancel(),!!e&&this.session&&await this.session.hide()}reset(){this.prompt.cancel(),this.lastSession=void 0;for(let e of this.sessionsMap.values())e.dispose();this.sessionsMap.clear(),this.nvim.call("coc#prompt#stop_prompt",["list"],!0)}async switchMatcher(){var e;await((e=this.session)==null?void 0:e.switchMatcher())}async togglePreview(){let{nvim:e}=this,t=await e.call("coc#list#get_preview",[0]);t!=-1?(await e.call("coc#window#close",[t]),await e.command("redraw")):await this.doAction("preview")}async chooseAction(){let{lastSession:e}=this;e&&await e.chooseAction()}parseArgs(e){let t=[],i=!1,r=!1,o=!1,s=!1,a=!1,l=!1,u,c="",h="fuzzy",d="bottom",g=[],f=[];for(let y of e)if(!u&&y.startsWith("-"))f.push(y);else if(u)g.push(y);else{if(!/^\w+$/.test(y))return D.showMessage(`Invalid list option: "${y}"`,"error"),null;u=y}u=u||"lists";let p=v.getConfiguration(`list.source.${u}`);!f.length&&!g.length&&(f=p.get("defaultOptions",[])),g.length||(g=p.get("defaultArgs",[]));for(let y of f)if(y.startsWith("--input"))c=y.slice(8);else if(y=="--number-select"||y=="-N")o=!0;else if(y=="--auto-preview"||y=="-A")r=!0;else if(y=="--regex"||y=="-R")h="regex";else if(y=="--strict"||y=="-S")h="strict";else if(y=="--interactive"||y=="-I")i=!0;else if(y=="--top")d="top";else if(y=="--tab")d="tab";else if(y=="--ignore-case"||y=="--normal"||y=="--no-sort")t.push(y.slice(2));else if(y=="--first")a=!0;else if(y=="--reverse")l=!0;else if(y=="--no-quit")s=!0;else return D.showMessage(`Invalid option "${y}" of list`,"error"),null;let b=this.listMap.get(u);return b?i&&!b.interactive?(D.showMessage(`Interactive mode of "${u}" list not supported`,"error"),null):{list:b,listArgs:g,options:{numberSelect:o,autoPreview:r,reverse:l,noQuit:s,first:a,input:c,interactive:i,matcher:h,position:d,ignorecase:!!t.includes("ignore-case"),mode:t.includes("normal")?"normal":"insert",sort:!t.includes("no-sort")}}:(D.showMessage(`List ${u} not found`,"error"),null)}async onInputChar(e,t,i){if(e!="list")return;let{mode:r}=this.prompt,o=Date.now();if(t=="<plug>"||this.plugTs&&o-this.plugTs<20){this.plugTs=o;return}if(!!t){if(t=="<esc>"){await this.cancel();return}r=="insert"?await this.onInsertInput(t,i):await this.onNormalInput(t,i)}}async onInsertInput(e,t){let{session:i}=this;if(!i)return;if(bQ.includes(e)){await this.onMouseEvent(e);return}if(!(await i.doNumberSelect(e)||await this.mappings.doInsertKeymap(e)||t)){if(e.startsWith("<")&&e.endsWith(">")){await this.feedkeys(e,!1);return}for(let s of e){let a=s.codePointAt(0);if(a==65533||a<32||a>=127&&a<=159)return;await this.prompt.acceptCharacter(s)}}}async onNormalInput(e,t){if(bQ.includes(e)){await this.onMouseEvent(e);return}await this.mappings.doNormalKeymap(e)||await this.feedkeys(e)}onMouseEvent(e){if(this.session)return this.session.onMouseEvent(e)}async feedkeys(e,t=!0){let{nvim:i}=this;e=e.startsWith("<")&&e.endsWith(">")?`\\${e}`:e,await i.call("coc#prompt#stop_prompt",["list"]),await i.call("eval",[`feedkeys("${e}", "${t?"i":"in"}")`]),this.prompt.start()}async command(e){let{nvim:t}=this;await t.call("coc#prompt#stop_prompt",["list"]),await t.command(e),this.prompt.start()}async normal(e,t=!0){let{nvim:i}=this;await i.call("coc#prompt#stop_prompt",["list"]),await i.command(`normal${t?"!":""} ${e}`),this.prompt.start()}async call(e){if(this.session)return await this.session.call(e)}get session(){return this.lastSession}registerList(e){let{name:t}=e,i=this.listMap.get(t);return this.listMap.has(t)&&(i&&(typeof i.dispose=="function"&&i.dispose(),this.listMap.delete(t)),D.showMessage(`list "${t}" recreated.`)),this.listMap.set(t,e),ye.addSchemeProperty(`list.source.${t}.defaultAction`,{type:"string",default:null,description:`Default action of "${t}" list.`}),ye.addSchemeProperty(`list.source.${t}.defaultOptions`,{type:"array",default:e.interactive?["--interactive"]:[],description:`Default list options of "${t}" list, only used when both list option and argument are empty.`,uniqueItems:!0,items:{type:"string",enum:["--top","--normal","--no-sort","--input","--tab","--strict","--regex","--ignore-case","--number-select","--interactive","--auto-preview","--first","--no-quit"]}}),ye.addSchemeProperty(`list.source.${t}.defaultArgs`,{type:"array",default:[],description:`Default argument list of "${t}" list, only used when list argument is empty.`,uniqueItems:!0,items:{type:"string"}}),$w.Disposable.create(()=>{typeof e.dispose=="function"&&e.dispose(),this.listMap.delete(t)})}get names(){return Array.from(this.listMap.keys())}get descriptions(){let e={};for(let t of this.listMap.keys()){let i=this.listMap.get(t);e[t]=i.description}return e}async loadItems(e){let t=[e],i=this.parseArgs(t);if(!i)return;let{list:r,options:o,listArgs:s}=i,l=new $w.CancellationTokenSource().token,u=await this.nvim.eval('[win_getid(),bufnr("%")]'),c=await r.loadItems({options:o,args:s,input:"",cwd:v.cwd,window:this.nvim.createWindow(u[0]),buffer:this.nvim.createBuffer(u[1]),listWindow:null},l);if(!c||Array.isArray(c))return c;let h=c;return await new Promise((g,f)=>{let p=[];h.on("data",b=>{b.label=(0,vQ.default)(b.label),p.push(b)}),h.on("end",()=>{g(p)}),h.on("error",b=>{f(b)})})}toggleMode(){let e=this.lastSession;e&&e.toggleMode()}get isActivated(){var e;return((e=this.session)==null?void 0:e.winid)!=null}stop(){let e=this.lastSession;e&&e.stop()}dispose(){for(let e of this.sessionsMap.values())e.dispose();this.sessionsMap.clear(),this.config&&this.config.dispose(),this.lastSession=void 0,J(this.disposables)}},Ci=new wQ});var CQ=m((r3e,xQ)=>{xQ.exports=["\0","","","","","","","\x07","\b"," ",`
`,"\v","\f","\r","","","","","","","","","","","","","","\x1B","","","",""," ","!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","<","=",">","?","@","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","[","\\","]","^","_","`","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","{","|","}","~","\x7F","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""," ","!","C/","PS","$?","Y=","|","SS",'"',"(c)","a","<<","!","","(r)","-","deg","+-","2","3","'","u","P","*",",","1","o",">>","1/4","1/2","3/4","?","A","A","A","A","A","A","AE","C","E","E","E","E","I","I","I","I","D","N","O","O","O","O","O","x","O","U","U","U","U","U","Th","ss","a","a","a","a","a","a","ae","c","e","e","e","e","i","i","i","i","d","n","o","o","o","o","o","/","o","u","u","u","u","y","th","y"]});var TQ=m((o3e,SQ)=>{SQ.exports=["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","IJ","","J","j","K","k","k","L","l","L","l","L","l","L","l","L","l","N","n","N","n","N","n","'n","ng","NG","O","o","O","o","O","o","OE","oe","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","s","b","B","B","b","6","6","O","C","c","D","D","D","d","d","3","@","E","F","f","G","G","hv","I","I","K","k","l","l","W","N","n","O","O","o","OI","oi","P","p","YR","2","2","SH","sh","t","T","t","T","U","u","Y","V","Y","y","Z","z","ZH","ZH","zh","zh","2","5","5","ts","w","|","||","|=","!","DZ","Dz","dz","LJ","Lj","lj","NJ","Nj","nj","A","a","I","i","O","o","U","u","U","u","U","u","U","u","U","u","@","A","a","A","a","AE","ae","G","g","G","g","K","k","O","o","O","o","ZH","zh","j","DZ","D","dz","G","g","HV","W","N","n","A","a","AE","ae","O","o"]});var DQ=m((s3e,kQ)=>{kQ.exports=["A","a","A","a","E","e","E","e","I","i","I","i","O","o","O","o","R","r","R","r","U","u","U","u","S","s","T","t","Y","y","H","h","[?]","[?]","OU","ou","Z","z","A","a","E","e","O","o","O","o","O","o","O","o","Y","y","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","a","a","a","b","o","c","d","d","e","@","@","e","e","e","e","j","g","g","g","g","u","Y","h","h","i","i","I","l","l","l","lZ","W","W","m","n","n","n","o","OE","O","F","R","R","R","R","r","r","R","R","R","s","S","j","S","S","t","t","U","U","v","^","W","Y","Y","z","z","Z","Z","?","?","?","C","@","B","E","G","H","j","k","L","q","?","?","dz","dZ","dz","ts","tS","tC","fN","ls","lz","WW","]]","[?]","[?]","k","h","j","r","r","r","r","w","y","'",'"',"`","'","`","`","'","?","?","<",">","^","V","^","V","'","-","/","\\",",","_","\\","/",":",".","`","'","^","V","+","-","V",".","@",",","~",'"',"R","X","G","l","s","x","?","","","","","","","","V","=",'"',"[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var _Q=m((a3e,EQ)=>{EQ.exports=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","","","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","'",",","[?]","[?]","[?]","[?]","","[?]","[?]","[?]","?","[?]","[?]","[?]","[?]","[?]","","","A",";","E","E","I","[?]","O","[?]","U","O","I","A","B","G","D","E","Z","E","Th","I","K","L","M","N","Ks","O","P","R","[?]","S","T","U","Ph","Kh","Ps","O","I","U","a","e","e","i","u","a","b","g","d","e","z","e","th","i","k","l","m","n","x","o","p","r","s","s","t","u","ph","kh","ps","o","i","u","o","u","o","[?]","b","th","U","U","U","ph","p","&","[?]","[?]","St","st","W","w","Q","q","Sp","sp","Sh","sh","F","f","Kh","kh","H","h","G","g","CH","ch","Ti","ti","k","r","c","j","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var RQ=m((l3e,PQ)=>{PQ.exports=["Ie","Io","Dj","Gj","Ie","Dz","I","Yi","J","Lj","Nj","Tsh","Kj","I","U","Dzh","A","B","V","G","D","Ie","Zh","Z","I","I","K","L","M","N","O","P","R","S","T","U","F","Kh","Ts","Ch","Sh","Shch","","Y","'","E","Iu","Ia","a","b","v","gh","d","ie","zh","z","i","i","k","l","m","n","o","p","r","s","t","u","f","kh","ts","ch","sh","shch","","y","'","e","iu","ia","ie","io","dj","gj","ie","dz","i","yi","j","lj","nj","tsh","kj","i","u","dzh","O","o","E","e","Ie","ie","E","e","Ie","ie","O","o","Io","io","Ks","ks","Ps","ps","F","f","Y","y","Y","y","u","u","O","o","O","o","Ot","ot","Q","q","*1000*","","","","","[?]","*100.000*","*1.000.000*","[?]","[?]",'"','"',"R'","r'","G'","g'","G'","g'","G'","g'","Zh'","zh'","Z'","z'","K'","k'","K'","k'","K'","k'","K'","k'","N'","n'","Ng","ng","P'","p'","Kh","kh","S'","s'","T'","t'","U","u","U'","u'","Kh'","kh'","Tts","tts","Ch'","ch'","Ch'","ch'","H","h","Ch","ch","Ch'","ch'","`","Zh","zh","K'","k'","[?]","[?]","N'","n'","[?]","[?]","Ch","ch","[?]","[?]","[?]","a","a","A","a","Ae","ae","Ie","ie","@","@","@","@","Zh","zh","Z","z","Dz","dz","I","i","I","i","O","o","O","o","O","o","E","e","U","u","U","u","U","u","Ch","ch","[?]","[?]","Y","y","[?]","[?]","[?]","[?]","[?]"]});var IQ=m((u3e,LQ)=>{LQ.exports=["[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","A","B","G","D","E","Z","E","E","T`","Zh","I","L","Kh","Ts","K","H","Dz","Gh","Ch","M","Y","N","Sh","O","Ch`","P","J","Rh","S","V","T","R","Ts`","W","P`","K`","O","F","[?]","[?]","<","'","/","!",",","?",".","[?]","a","b","g","d","e","z","e","e","t`","zh","i","l","kh","ts","k","h","dz","gh","ch","m","y","n","sh","o","ch`","p","j","rh","s","v","t","r","ts`","w","p`","k`","o","f","ew","[?]",".","-","[?]","[?]","[?]","[?]","[?]","[?]","","","","","","","","","","","","","","","","","","[?]","","","","","","","","","","","","","","@","e","a","o","i","e","e","a","a","o","[?]","u","'","","","","","","",":","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","","b","g","d","h","v","z","kh","t","y","k","k","l","m","m","n","n","s","`","p","p","ts","ts","q","r","sh","t","[?]","[?]","[?]","[?]","[?]","V","oy","i","'",'"',"[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var FQ=m((c3e,jQ)=>{jQ.exports=["[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]",",","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]",";","[?]","[?]","[?]","?","[?]","","a","'","w'","","y'","","b","@","t","th","j","H","kh","d","dh","r","z","s","sh","S","D","T","Z","aa","G","[?]","[?]","[?]","[?]","[?]","","f","q","k","l","m","n","h","w","~","y","an","un","in","a","u","i","W","","","'","'","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","0","1","2","3","4","5","6","7","8","9","%",".",",","*","[?]","[?]","","'","'","'","","'","'w","'u","'y","tt","tth","b","t","T","p","th","bh","'h","H","ny","dy","H","ch","cch","dd","D","D","Dt","dh","ddh","d","D","D","rr","R","R","R","R","R","R","j","R","S","S","S","S","S","T","GH","F","F","F","v","f","ph","Q","Q","kh","k","K","K","ng","K","g","G","N","G","G","G","L","L","L","L","N","N","N","N","N","h","Ch","hy","h","H","@","W","oe","oe","u","yu","yu","W","v","y","Y","Y","W","","","y","y'",".","ae","","","","","","","","@","#","","","","","","","","","","","^","","","","","[?]","[?]","0","1","2","3","4","5","6","7","8","9","Sh","D","Gh","&","+m"]});var MQ=m((h3e,OQ)=>{OQ.exports=["//","/",",","!","!","-",",",",",";","?","~","{","}","*","[?]","","'","","b","g","g","d","d","h","w","z","H","t","t","y","yh","k","l","m","n","s","s","`","p","p","S","q","r","sh","t","[?]","[?]","[?]","a","a","a","A","A","A","e","e","e","E","i","i","u","u","u","o","","`","'","","","X","Q","@","@","|","+","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","h","sh","n","r","b","L","k","'","v","m","f","dh","th","l","g","ny","s","d","z","t","y","p","j","ch","tt","hh","kh","th","z","sh","s","d","t","z","`","gh","q","w","a","aa","i","ee","u","oo","e","ey","o","oa","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var NQ=m((d3e,AQ)=>{AQ.exports=["[?]","N","N","H","[?]","a","aa","i","ii","u","uu","R","L","eN","e","e","ai","oN","o","o","au","k","kh","g","gh","ng","c","ch","j","jh","ny","tt","tth","dd","ddh","nn","t","th","d","dh","n","nnn","p","ph","b","bh","m","y","r","rr","l","l","lll","v","sh","ss","s","h","[?]","[?]","'","'","aa","i","ii","u","uu","R","RR","eN","e","e","ai","oN","o","o","au","","[?]","[?]","AUM","'","'","`","'","[?]","[?]","[?]","q","khh","ghh","z","dddh","rh","f","yy","RR","LL","L","LL"," / "," // ","0","1","2","3","4","5","6","7","8","9",".","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","N","N","H","[?]","a","aa","i","ii","u","uu","R","RR","[?]","[?]","e","ai","[?]","[?]","o","au","k","kh","g","gh","ng","c","ch","j","jh","ny","tt","tth","dd","ddh","nn","t","th","d","dh","n","[?]","p","ph","b","bh","m","y","r","[?]","l","[?]","[?]","[?]","sh","ss","s","h","[?]","[?]","'","[?]","aa","i","ii","u","uu","R","RR","[?]","[?]","e","ai","[?]","[?]","o","au","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","+","[?]","[?]","[?]","[?]","rr","rh","[?]","yy","RR","LL","L","LL","[?]","[?]","0","1","2","3","4","5","6","7","8","9","r'","r`","Rs","Rs","1/","2/","3/","4/"," 1 - 1/","/16","","[?]","[?]","[?]","[?]"]});var qQ=m((g3e,HQ)=>{HQ.exports=["[?]","[?]","N","[?]","[?]","a","aa","i","ii","u","uu","[?]","[?]","[?]","[?]","ee","ai","[?]","[?]","oo","au","k","kh","g","gh","ng","c","ch","j","jh","ny","tt","tth","dd","ddh","nn","t","th","d","dh","n","[?]","p","ph","b","bb","m","y","r","[?]","l","ll","[?]","v","sh","[?]","s","h","[?]","[?]","'","[?]","aa","i","ii","u","uu","[?]","[?]","[?]","[?]","ee","ai","[?]","[?]","oo","au","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","khh","ghh","z","rr","[?]","f","[?]","[?]","[?]","[?]","[?]","[?]","[?]","0","1","2","3","4","5","6","7","8","9","N","H","","","G.E.O.","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","N","N","H","[?]","a","aa","i","ii","u","uu","R","[?]","eN","[?]","e","ai","oN","[?]","o","au","k","kh","g","gh","ng","c","ch","j","jh","ny","tt","tth","dd","ddh","nn","t","th","d","dh","n","[?]","p","ph","b","bh","m","ya","r","[?]","l","ll","[?]","v","sh","ss","s","h","[?]","[?]","'","'","aa","i","ii","u","uu","R","RR","eN","[?]","e","ai","oN","[?]","o","au","","[?]","[?]","AUM","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","RR","[?]","[?]","[?]","[?]","[?]","0","1","2","3","4","5","6","7","8","9","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var YQ=m((f3e,BQ)=>{BQ.exports=["[?]","N","N","H","[?]","a","aa","i","ii","u","uu","R","L","[?]","[?]","e","ai","[?]","[?]","o","au","k","kh","g","gh","ng","c","ch","j","jh","ny","tt","tth","dd","ddh","nn","t","th","d","dh","n","[?]","p","ph","b","bh","m","y","r","[?]","l","ll","[?]","","sh","ss","s","h","[?]","[?]","'","'","aa","i","ii","u","uu","R","[?]","[?]","[?]","e","ai","[?]","[?]","o","au","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","+","+","[?]","[?]","[?]","[?]","rr","rh","[?]","yy","RR","LL","[?]","[?]","[?]","[?]","0","1","2","3","4","5","6","7","8","9","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","N","H","[?]","a","aa","i","ii","u","uu","[?]","[?]","[?]","e","ee","ai","[?]","o","oo","au","k","[?]","[?]","[?]","ng","c","[?]","j","[?]","ny","tt","[?]","[?]","[?]","nn","t","[?]","[?]","[?]","n","nnn","p","[?]","[?]","[?]","m","y","r","rr","l","ll","lll","v","[?]","ss","s","h","[?]","[?]","[?]","[?]","aa","i","ii","u","uu","[?]","[?]","[?]","e","ee","ai","[?]","o","oo","au","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","+","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","0","1","2","3","4","5","6","7","8","9","+10+","+100+","+1000+","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var ZQ=m((p3e,WQ)=>{WQ.exports=["[?]","N","N","H","[?]","a","aa","i","ii","u","uu","R","L","[?]","e","ee","ai","[?]","o","oo","au","k","kh","g","gh","ng","c","ch","j","jh","ny","tt","tth","dd","ddh","nn","t","th","d","dh","n","[?]","p","ph","b","bh","m","y","r","rr","l","ll","[?]","v","sh","ss","s","h","[?]","[?]","[?]","[?]","aa","i","ii","u","uu","R","RR","[?]","e","ee","ai","[?]","o","oo","au","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","+","+","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","RR","LL","[?]","[?]","[?]","[?]","0","1","2","3","4","5","6","7","8","9","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","N","H","[?]","a","aa","i","ii","u","uu","R","L","[?]","e","ee","ai","[?]","o","oo","au","k","kh","g","gh","ng","c","ch","j","jh","ny","tt","tth","dd","ddh","nn","t","th","d","dh","n","[?]","p","ph","b","bh","m","y","r","rr","l","ll","[?]","v","sh","ss","s","h","[?]","[?]","[?]","[?]","aa","i","ii","u","uu","R","RR","[?]","e","ee","ai","[?]","o","oo","au","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","+","+","[?]","[?]","[?]","[?]","[?]","[?]","[?]","lll","[?]","RR","LL","[?]","[?]","[?]","[?]","0","1","2","3","4","5","6","7","8","9","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var $Q=m((m3e,JQ)=>{JQ.exports=["[?]","[?]","N","H","[?]","a","aa","i","ii","u","uu","R","L","[?]","e","ee","ai","[?]","o","oo","au","k","kh","g","gh","ng","c","ch","j","jh","ny","tt","tth","dd","ddh","nn","t","th","d","dh","n","[?]","p","ph","b","bh","m","y","r","rr","l","ll","lll","v","sh","ss","s","h","[?]","[?]","[?]","[?]","aa","i","ii","u","uu","R","[?]","[?]","e","ee","ai","","o","oo","au","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","+","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","RR","LL","[?]","[?]","[?]","[?]","0","1","2","3","4","5","6","7","8","9","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","N","H","[?]","a","aa","ae","aae","i","ii","u","uu","R","RR","L","LL","e","ee","ai","o","oo","au","[?]","[?]","[?]","k","kh","g","gh","ng","nng","c","ch","j","jh","ny","jny","nyj","tt","tth","dd","ddh","nn","nndd","t","th","d","dh","n","[?]","nd","p","ph","b","bh","m","mb","y","r","[?]","l","[?]","[?]","v","sh","ss","s","h","ll","f","[?]","[?]","[?]","","[?]","[?]","[?]","[?]","aa","ae","aae","i","ii","u","[?]","uu","[?]","R","e","ee","ai","o","oo","au","L","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","RR","LL"," . ","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var UQ=m((b3e,XQ)=>{XQ.exports=["[?]","k","kh","kh","kh","kh","kh","ng","cch","ch","ch","ch","ch","y","d","t","th","th","th","n","d","t","th","th","th","n","b","p","ph","f","ph","f","ph","m","y","r","R","l","L","w","s","s","s","h","l","`","h","~","a","a","aa","am","i","ii","ue","uue","u","uu","'","[?]","[?]","[?]","[?]","Bh.","e","ae","o","ai","ai","ao","+","","","","","","","M",""," * ","0","1","2","3","4","5","6","7","8","9"," // "," /// ","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","k","kh","[?]","kh","[?]","[?]","ng","ch","[?]","s","[?]","[?]","ny","[?]","[?]","[?]","[?]","[?]","[?]","d","h","th","th","[?]","n","b","p","ph","f","ph","f","[?]","m","y","r","[?]","l","[?]","w","[?]","[?]","s","h","[?]","`","","~","a","","aa","am","i","ii","y","yy","u","uu","[?]","o","l","ny","[?]","[?]","e","ei","o","ay","ai","[?]","+","[?]","","","","","","M","[?]","[?]","0","1","2","3","4","5","6","7","8","9","[?]","[?]","hn","hm","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var KQ=m((y3e,GQ)=>{GQ.exports=["AUM","","","","","","",""," // "," * ","","-"," / "," / "," // "," -/ "," +/ "," X/ "," /XX/ "," /X/ ",", ","","","","","","","","","","","","0","1","2","3","4","5","6","7","8","9",".5","1.5","2.5","3.5","4.5","5.5","6.5","7.5","8.5","-.5","+","*","^","_","","~","[?]","]","[[","]]","","","k","kh","g","gh","ng","c","ch","j","[?]","ny","tt","tth","dd","ddh","nn","t","th","d","dh","n","p","ph","b","bh","m","ts","tsh","dz","dzh","w","zh","z","'","y","r","l","sh","ssh","s","h","a","kss","r","[?]","[?]","[?]","[?]","[?]","[?]","aa","i","ii","u","uu","R","RR","L","LL","e","ee","o","oo","M","H","i","ii","","","","","","","","","","","[?]","[?]","[?]","[?]","k","kh","g","gh","ng","c","ch","j","[?]","ny","tt","tth","dd","ddh","nn","t","th","d","dh","n","p","ph","b","bh","m","ts","tsh","dz","dzh","w","zh","z","'","y","r","l","sh","ss","s","h","a","kss","w","y","r","[?]","X"," :X: "," /O/ "," /o/ "," \\o\\ "," (O) ","","","","","","","","","","[?]","[?]","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var QQ=m((v3e,zQ)=>{zQ.exports=["k","kh","g","gh","ng","c","ch","j","jh","ny","nny","tt","tth","dd","ddh","nn","tt","th","d","dh","n","p","ph","b","bh","m","y","r","l","w","s","h","ll","a","[?]","i","ii","u","uu","e","[?]","o","au","[?]","aa","i","ii","u","uu","e","ai","[?]","[?]","[?]","N","'",":","","[?]","[?]","[?]","[?]","[?]","[?]","0","1","2","3","4","5","6","7","8","9"," / "," // ","n*","r*","l*","e*","sh","ss","R","RR","L","LL","R","RR","L","LL","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","A","B","G","D","E","V","Z","T`","I","K","L","M","N","O","P","Zh","R","S","T","U","P`","K`","G'","Q","Sh","Ch`","C`","Z'","C","Ch","X","J","H","E","Y","W","Xh","OE","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","a","b","g","d","e","v","z","t`","i","k","l","m","n","o","p","zh","r","s","t","u","p`","k`","g'","q","sh","ch`","c`","z'","c","ch","x","j","h","e","y","w","xh","oe","f","[?]","[?]","[?]","[?]"," // ","[?]","[?]","[?]"]});var e4=m((w3e,VQ)=>{VQ.exports=["g","gg","n","d","dd","r","m","b","bb","s","ss","","j","jj","c","k","t","p","h","ng","nn","nd","nb","dg","rn","rr","rh","rN","mb","mN","bg","bn","","bs","bsg","bst","bsb","bss","bsj","bj","bc","bt","bp","bN","bbN","sg","sn","sd","sr","sm","sb","sbg","sss","s","sj","sc","sk","st","sp","sh","","","","","Z","g","d","m","b","s","Z","","j","c","t","p","N","j","","","","","ck","ch","","","pb","pN","hh","Q","[?]","[?]","[?]","[?]","[?]","","","a","ae","ya","yae","eo","e","yeo","ye","o","wa","wae","oe","yo","u","weo","we","wi","yu","eu","yi","i","a-o","a-u","ya-o","ya-yo","eo-o","eo-u","eo-eu","yeo-o","yeo-u","o-eo","o-e","o-ye","o-o","o-u","yo-ya","yo-yae","yo-yeo","yo-o","yo-i","u-a","u-ae","u-eo-eu","u-ye","u-u","yu-a","yu-eo","yu-e","yu-yeo","yu-ye","yu-u","yu-i","eu-u","eu-eu","yi-u","i-a","i-ya","i-o","i-u","i-eu","i-U","U","U-eo","U-u","U-i","UU","[?]","[?]","[?]","[?]","[?]","g","gg","gs","n","nj","nh","d","l","lg","lm","lb","ls","lt","lp","lh","m","b","bs","s","ss","ng","j","c","k","t","p","h","gl","gsg","ng","nd","ns","nZ","nt","dg","tl","lgs","ln","ld","lth","ll","lmg","lms","lbs","lbh","rNp","lss","lZ","lk","lQ","mg","ml","mb","ms","mss","mZ","mc","mh","mN","bl","bp","ph","pN","sg","sd","sl","sb","Z","g","ss","","kh","N","Ns","NZ","pb","pN","hn","hl","hm","hb","Q","[?]","[?]","[?]","[?]","[?]"]});var i4=m((x3e,t4)=>{t4.exports=["ha","hu","hi","haa","hee","he","ho","[?]","la","lu","li","laa","lee","le","lo","lwa","hha","hhu","hhi","hhaa","hhee","hhe","hho","hhwa","ma","mu","mi","maa","mee","me","mo","mwa","sza","szu","szi","szaa","szee","sze","szo","szwa","ra","ru","ri","raa","ree","re","ro","rwa","sa","su","si","saa","see","se","so","swa","sha","shu","shi","shaa","shee","she","sho","shwa","qa","qu","qi","qaa","qee","qe","qo","[?]","qwa","[?]","qwi","qwaa","qwee","qwe","[?]","[?]","qha","qhu","qhi","qhaa","qhee","qhe","qho","[?]","qhwa","[?]","qhwi","qhwaa","qhwee","qhwe","[?]","[?]","ba","bu","bi","baa","bee","be","bo","bwa","va","vu","vi","vaa","vee","ve","vo","vwa","ta","tu","ti","taa","tee","te","to","twa","ca","cu","ci","caa","cee","ce","co","cwa","xa","xu","xi","xaa","xee","xe","xo","[?]","xwa","[?]","xwi","xwaa","xwee","xwe","[?]","[?]","na","nu","ni","naa","nee","ne","no","nwa","nya","nyu","nyi","nyaa","nyee","nye","nyo","nywa","'a","'u","[?]","'aa","'ee","'e","'o","'wa","ka","ku","ki","kaa","kee","ke","ko","[?]","kwa","[?]","kwi","kwaa","kwee","kwe","[?]","[?]","kxa","kxu","kxi","kxaa","kxee","kxe","kxo","[?]","kxwa","[?]","kxwi","kxwaa","kxwee","kxwe","[?]","[?]","wa","wu","wi","waa","wee","we","wo","[?]","`a","`u","`i","`aa","`ee","`e","`o","[?]","za","zu","zi","zaa","zee","ze","zo","zwa","zha","zhu","zhi","zhaa","zhee","zhe","zho","zhwa","ya","yu","yi","yaa","yee","ye","yo","[?]","da","du","di","daa","dee","de","do","dwa","dda","ddu","ddi","ddaa","ddee","dde","ddo","ddwa"]});var r4=m((C3e,n4)=>{n4.exports=["ja","ju","ji","jaa","jee","je","jo","jwa","ga","gu","gi","gaa","gee","ge","go","[?]","gwa","[?]","gwi","gwaa","gwee","gwe","[?]","[?]","gga","ggu","ggi","ggaa","ggee","gge","ggo","[?]","tha","thu","thi","thaa","thee","the","tho","thwa","cha","chu","chi","chaa","chee","che","cho","chwa","pha","phu","phi","phaa","phee","phe","pho","phwa","tsa","tsu","tsi","tsaa","tsee","tse","tso","tswa","tza","tzu","tzi","tzaa","tzee","tze","tzo","[?]","fa","fu","fi","faa","fee","fe","fo","fwa","pa","pu","pi","paa","pee","pe","po","pwa","rya","mya","fya","[?]","[?]","[?]","[?]","[?]","[?]"," ",".",",",";",":",":: ","?","//","1","2","3","4","5","6","7","8","9","10+","20+","30+","40+","50+","60+","70+","80+","90+","100+","10,000+","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","a","e","i","o","u","v","ga","ka","ge","gi","go","gu","gv","ha","he","hi","ho","hu","hv","la","le","li","lo","lu","lv","ma","me","mi","mo","mu","na","hna","nah","ne","ni","no","nu","nv","qua","que","qui","quo","quu","quv","sa","s","se","si","so","su","sv","da","ta","de","te","di","ti","do","du","dv","dla","tla","tle","tli","tlo","tlu","tlv","tsa","tse","tsi","tso","tsu","tsv","wa","we","wi","wo","wu","wv","ya","ye","yi","yo","yu","yv","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var s4=m((S3e,o4)=>{o4.exports=["[?]","e","aai","i","ii","o","oo","oo","ee","i","a","aa","we","we","wi","wi","wii","wii","wo","wo","woo","woo","woo","wa","wa","waa","waa","waa","ai","w","'","t","k","sh","s","n","w","n","[?]","w","c","?","l","en","in","on","an","pe","paai","pi","pii","po","poo","poo","hee","hi","pa","paa","pwe","pwe","pwi","pwi","pwii","pwii","pwo","pwo","pwoo","pwoo","pwa","pwa","pwaa","pwaa","pwaa","p","p","h","te","taai","ti","tii","to","too","too","dee","di","ta","taa","twe","twe","twi","twi","twii","twii","two","two","twoo","twoo","twa","twa","twaa","twaa","twaa","t","tte","tti","tto","tta","ke","kaai","ki","kii","ko","koo","koo","ka","kaa","kwe","kwe","kwi","kwi","kwii","kwii","kwo","kwo","kwoo","kwoo","kwa","kwa","kwaa","kwaa","kwaa","k","kw","keh","kih","koh","kah","ce","caai","ci","cii","co","coo","coo","ca","caa","cwe","cwe","cwi","cwi","cwii","cwii","cwo","cwo","cwoo","cwoo","cwa","cwa","cwaa","cwaa","cwaa","c","th","me","maai","mi","mii","mo","moo","moo","ma","maa","mwe","mwe","mwi","mwi","mwii","mwii","mwo","mwo","mwoo","mwoo","mwa","mwa","mwaa","mwaa","mwaa","m","m","mh","m","m","ne","naai","ni","nii","no","noo","noo","na","naa","nwe","nwe","nwa","nwa","nwaa","nwaa","nwaa","n","ng","nh","le","laai","li","lii","lo","loo","loo","la","laa","lwe","lwe","lwi","lwi","lwii","lwii","lwo","lwo","lwoo","lwoo","lwa","lwa","lwaa","lwaa","l","l","l","se","saai","si","sii","so","soo","soo","sa","saa","swe","swe","swi","swi","swii","swii","swo","swo","swoo","swoo"]});var l4=m((T3e,a4)=>{a4.exports=["swa","swa","swaa","swaa","swaa","s","s","sw","s","sk","skw","sW","spwa","stwa","skwa","scwa","she","shi","shii","sho","shoo","sha","shaa","shwe","shwe","shwi","shwi","shwii","shwii","shwo","shwo","shwoo","shwoo","shwa","shwa","shwaa","shwaa","sh","ye","yaai","yi","yii","yo","yoo","yoo","ya","yaa","ywe","ywe","ywi","ywi","ywii","ywii","ywo","ywo","ywoo","ywoo","ywa","ywa","ywaa","ywaa","ywaa","y","y","y","yi","re","re","le","raai","ri","rii","ro","roo","lo","ra","raa","la","rwaa","rwaa","r","r","r","fe","faai","fi","fii","fo","foo","fa","faa","fwaa","fwaa","f","the","the","thi","thi","thii","thii","tho","thoo","tha","thaa","thwaa","thwaa","th","tthe","tthi","ttho","ttha","tth","tye","tyi","tyo","tya","he","hi","hii","ho","hoo","ha","haa","h","h","hk","qaai","qi","qii","qo","qoo","qa","qaa","q","tlhe","tlhi","tlho","tlha","re","ri","ro","ra","ngaai","ngi","ngii","ngo","ngoo","nga","ngaa","ng","nng","she","shi","sho","sha","the","thi","tho","tha","th","lhi","lhii","lho","lhoo","lha","lhaa","lh","the","thi","thii","tho","thoo","tha","thaa","th","b","e","i","o","a","we","wi","wo","wa","ne","ni","no","na","ke","ki","ko","ka","he","hi","ho","ha","ghu","gho","ghe","ghee","ghi","gha","ru","ro","re","ree","ri","ra","wu","wo","we","wee","wi","wa","hwu","hwo","hwe","hwee","hwi","hwa","thu","tho","the","thee","thi","tha","ttu","tto","tte","ttee","tti","tta","pu","po","pe","pee","pi","pa","p","gu","go","ge","gee","gi","ga","khu","kho","khe","khee","khi","kha","kku","kko","kke","kkee","kki"]});var c4=m((k3e,u4)=>{u4.exports=["kka","kk","nu","no","ne","nee","ni","na","mu","mo","me","mee","mi","ma","yu","yo","ye","yee","yi","ya","ju","ju","jo","je","jee","ji","ji","ja","jju","jjo","jje","jjee","jji","jja","lu","lo","le","lee","li","la","dlu","dlo","dle","dlee","dli","dla","lhu","lho","lhe","lhee","lhi","lha","tlhu","tlho","tlhe","tlhee","tlhi","tlha","tlu","tlo","tle","tlee","tli","tla","zu","zo","ze","zee","zi","za","z","z","dzu","dzo","dze","dzee","dzi","dza","su","so","se","see","si","sa","shu","sho","she","shee","shi","sha","sh","tsu","tso","tse","tsee","tsi","tsa","chu","cho","che","chee","chi","cha","ttsu","ttso","ttse","ttsee","ttsi","ttsa","X",".","qai","ngai","nngi","nngii","nngo","nngoo","nnga","nngaa","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"," ","b","l","f","s","n","h","d","t","c","q","m","g","ng","z","r","a","o","u","e","i","ch","th","ph","p","x","p","<",">","[?]","[?]","[?]","f","v","u","yr","y","w","th","th","a","o","ac","ae","o","o","o","oe","on","r","k","c","k","g","ng","g","g","w","h","h","h","h","n","n","n","i","e","j","g","ae","a","eo","p","z","s","s","s","c","z","t","t","d","b","b","p","p","e","m","m","m","l","l","ng","ng","d","o","ear","ior","qu","qu","qu","s","yr","yr","yr","q","x",".",":","+","17","18","19","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var d4=m((D3e,h4)=>{h4.exports=["[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","k","kh","g","gh","ng","c","ch","j","jh","ny","t","tth","d","ddh","nn","t","th","d","dh","n","p","ph","b","bh","m","y","r","l","v","sh","ss","s","h","l","q","a","aa","i","ii","u","uk","uu","uuv","ry","ryy","ly","lyy","e","ai","oo","oo","au","a","aa","aa","i","ii","y","yy","u","uu","ua","oe","ya","ie","e","ae","ai","oo","au","M","H","a`","","","","r","","!","","","","","","."," // ",":","+","++"," * "," /// ","KR","'","[?]","[?]","[?]","0","1","2","3","4","5","6","7","8","9","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var f4=m((E3e,g4)=>{g4.exports=[" @ "," ... ",", ",". ",": "," // ","","-",", ",". ","","","","","","[?]","0","1","2","3","4","5","6","7","8","9","[?]","[?]","[?]","[?]","[?]","[?]","a","e","i","o","u","O","U","ee","n","ng","b","p","q","g","m","l","s","sh","t","d","ch","j","y","r","w","f","k","kha","ts","z","h","zr","lh","zh","ch","-","e","i","o","u","O","U","ng","b","p","q","g","m","t","d","ch","j","ts","y","w","k","g","h","jy","ny","dz","e","i","iy","U","u","ng","k","g","h","p","sh","t","d","j","f","g","h","ts","z","r","ch","zh","i","k","r","f","zh","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","H","X","W","M"," 3 "," 333 ","a","i","k","ng","c","tt","tth","dd","nn","t","d","p","ph","ss","zh","z","a","t","zh","gh","ng","c","jh","tta","ddh","t","dh","ss","cy","zh","z","u","y","bh","'","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var m4=m((_3e,p4)=>{p4.exports=["A","a","B","b","B","b","B","b","C","c","D","d","D","d","D","d","D","d","D","d","E","e","E","e","E","e","E","e","E","e","F","f","G","g","H","h","H","h","H","h","H","h","H","h","I","i","I","i","K","k","K","k","K","k","L","l","L","l","L","l","L","l","M","m","M","m","M","m","N","n","N","n","N","n","N","n","O","o","O","o","O","o","O","o","P","p","P","p","R","r","R","r","R","r","R","r","S","s","S","s","S","s","S","s","S","s","T","t","T","t","T","t","T","t","U","u","U","u","U","u","U","u","U","u","V","v","V","v","W","w","W","w","W","w","W","w","W","w","X","x","X","x","Y","y","Z","z","Z","z","Z","z","h","t","w","y","a","S","[?]","[?]","[?]","[?]","A","a","A","a","A","a","A","a","A","a","A","a","A","a","A","a","A","a","A","a","A","a","A","a","E","e","E","e","E","e","E","e","E","e","E","e","E","e","E","e","I","i","I","i","O","o","O","o","O","o","O","o","O","o","O","o","O","o","O","o","O","o","O","o","O","o","O","o","U","u","U","u","U","u","U","u","U","u","U","u","U","u","Y","y","Y","y","Y","y","Y","y","[?]","[?]","[?]","[?]","[?]"]});var y4=m((P3e,b4)=>{b4.exports=["a","a","a","a","a","a","a","a","A","A","A","A","A","A","A","A","e","e","e","e","e","e","[?]","[?]","E","E","E","E","E","E","[?]","[?]","e","e","e","e","e","e","e","e","E","E","E","E","E","E","E","E","i","i","i","i","i","i","i","i","I","I","I","I","I","I","I","I","o","o","o","o","o","o","[?]","[?]","O","O","O","O","O","O","[?]","[?]","u","u","u","u","u","u","u","u","[?]","U","[?]","U","[?]","U","[?]","U","o","o","o","o","o","o","o","o","O","O","O","O","O","O","O","O","a","a","e","e","e","e","i","i","o","o","u","u","o","o","[?]","[?]","a","a","a","a","a","a","a","a","A","A","A","A","A","A","A","A","e","e","e","e","e","e","e","e","E","E","E","E","E","E","E","E","o","o","o","o","o","o","o","o","O","O","O","O","O","O","O","O","a","a","a","a","a","[?]","a","a","A","A","A","A","A","'","i","'","~",'"~',"e","e","e","[?]","e","e","E","E","E","E","E","'`","''","'~","i","i","i","i","[?]","[?]","i","i","I","I","I","I","[?]","`'","`'","`~","u","u","u","u","R","R","u","u","U","U","U","U","R",'"`',`"'`,"`","[?]","[?]","o","o","o","[?]","o","o","O","O","O","O","O","'","`"]});var w4=m((R3e,v4)=>{v4.exports=[" "," "," "," "," "," "," "," "," "," "," "," ","","","","","-","-","-","-","--","--","||","_","'","'",",","'",'"','"',",,",'"',"+","++","*","*>",".","..","...",".",`
`,`
`,"","","","",""," ","%0","%00","'","''","'''","`","``","```","^","<",">","*","!!","!?","-","_","-","^","***","--","/","-[","]-","[?]","?!","!?","7","PP","(]","[)","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","","","","","","","0","","","","4","5","6","7","8","9","+","-","=","(",")","n","0","1","2","3","4","5","6","7","8","9","+","-","=","(",")","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","ECU","CL","Cr","FF","L","mil","N","Pts","Rs","W","NS","D","EU","K","T","Dr","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","","","","","","","","","","","","","","","","","","","","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var C4=m((L3e,x4)=>{x4.exports=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"," 1/3 "," 2/3 "," 1/5 "," 2/5 "," 3/5 "," 4/5 "," 1/6 "," 5/6 "," 1/8 "," 3/8 "," 5/8 "," 7/8 "," 1/","I","II","III","IV","V","VI","VII","VIII","IX","X","XI","XII","L","C","D","M","i","ii","iii","iv","v","vi","vii","viii","ix","x","xi","xii","l","c","d","m","(D","D)","((|))",")","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","-","|","-","|","-","|","\\","/","\\","/","-","-","~","~","-","|","-","|","-","-","-","|","-","|","|","-","-","-","-","-","-","|","|","|","|","|","|","|","^","V","\\","=","V","^","-","-","|","|","-","-","|","|","=","|","=","=","|","=","|","=","=","=","=","=","=","|","=","|","=","|","\\","/","\\","/","=","=","~","~","|","|","-","|","-","|","-","-","-","|","-","|","|","|","|","|","|","|","-","\\","\\","|","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var T4=m((I3e,S4)=>{S4.exports=["[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var D4=m((j3e,k4)=>{k4.exports=["[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var _4=m((F3e,E4)=>{E4.exports=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","","","","","","","","","","","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var R4=m((O3e,P4)=>{P4.exports=["-","-","|","|","-","-","|","|","-","-","|","|","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","-","-","|","|","-","|","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","/","\\","X","-","|","-","|","-","|","-","|","-","|","-","|","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","-","|","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","^","^","^","^",">",">",">",">",">",">","V","V","V","V","<","<","<","<","<","<","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","#","#","#","#","#","^","^","^","O","#","#","#","#","#","#","#","#","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var I4=m((M3e,L4)=>{L4.exports=["","","","","","","","","","","","","","","","","","","","","[?]","[?]","[?]","[?]","[?]","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var F4=m((A3e,j4)=>{j4.exports=["[?]","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","[?]","[?]","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","[?]","","","","","","","","","","","","","","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var M4=m((N3e,O4)=>{O4.exports=[" ","a","1","b","'","k","2","l","@","c","i","f","/","m","s","p",'"',"e","3","h","9","o","6","r","^","d","j","g",">","n","t","q",",","*","5","<","-","u","8","v",".","%","[","$","+","x","!","&",";",":","4","\\","0","z","7","(","_","?","w","]","#","y",")","=","[d7]","[d17]","[d27]","[d127]","[d37]","[d137]","[d237]","[d1237]","[d47]","[d147]","[d247]","[d1247]","[d347]","[d1347]","[d2347]","[d12347]","[d57]","[d157]","[d257]","[d1257]","[d357]","[d1357]","[d2357]","[d12357]","[d457]","[d1457]","[d2457]","[d12457]","[d3457]","[d13457]","[d23457]","[d123457]","[d67]","[d167]","[d267]","[d1267]","[d367]","[d1367]","[d2367]","[d12367]","[d467]","[d1467]","[d2467]","[d12467]","[d3467]","[d13467]","[d23467]","[d123467]","[d567]","[d1567]","[d2567]","[d12567]","[d3567]","[d13567]","[d23567]","[d123567]","[d4567]","[d14567]","[d24567]","[d124567]","[d34567]","[d134567]","[d234567]","[d1234567]","[d8]","[d18]","[d28]","[d128]","[d38]","[d138]","[d238]","[d1238]","[d48]","[d148]","[d248]","[d1248]","[d348]","[d1348]","[d2348]","[d12348]","[d58]","[d158]","[d258]","[d1258]","[d358]","[d1358]","[d2358]","[d12358]","[d458]","[d1458]","[d2458]","[d12458]","[d3458]","[d13458]","[d23458]","[d123458]","[d68]","[d168]","[d268]","[d1268]","[d368]","[d1368]","[d2368]","[d12368]","[d468]","[d1468]","[d2468]","[d12468]","[d3468]","[d13468]","[d23468]","[d123468]","[d568]","[d1568]","[d2568]","[d12568]","[d3568]","[d13568]","[d23568]","[d123568]","[d4568]","[d14568]","[d24568]","[d124568]","[d34568]","[d134568]","[d234568]","[d1234568]","[d78]","[d178]","[d278]","[d1278]","[d378]","[d1378]","[d2378]","[d12378]","[d478]","[d1478]","[d2478]","[d12478]","[d3478]","[d13478]","[d23478]","[d123478]","[d578]","[d1578]","[d2578]","[d12578]","[d3578]","[d13578]","[d23578]","[d123578]","[d4578]","[d14578]","[d24578]","[d124578]","[d34578]","[d134578]","[d234578]","[d1234578]","[d678]","[d1678]","[d2678]","[d12678]","[d3678]","[d13678]","[d23678]","[d123678]","[d4678]","[d14678]","[d24678]","[d124678]","[d34678]","[d134678]","[d234678]","[d1234678]","[d5678]","[d15678]","[d25678]","[d125678]","[d35678]","[d135678]","[d235678]","[d1235678]","[d45678]","[d145678]","[d245678]","[d1245678]","[d345678]","[d1345678]","[d2345678]","[d12345678]"]});var N4=m((H3e,A4)=>{A4.exports=["[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?]","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var q4=m((q3e,H4)=>{H4.exports=["[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?]","[?]","[?]"]});var Y4=m((B3e,B4)=>{B4.exports=[" ",", ",". ",'"',"[JIS]",'"',"/","0","<","> ","<<",">> ","[","] ","{","} ","[(",")] ","@","X ","[","] ","[[","]] ","((",")) ","[[","]] ","~ ","``","''",",,","@","1","2","3","4","5","6","7","8","9","","","","","","","~","+","+","+","+","","@"," // ","+10+","+20+","+30+","[?]","[?]","[?]","","","[?]","a","a","i","i","u","u","e","e","o","o","ka","ga","ki","gi","ku","gu","ke","ge","ko","go","sa","za","si","zi","su","zu","se","ze","so","zo","ta","da","ti","di","tu","tu","du","te","de","to","do","na","ni","nu","ne","no","ha","ba","pa","hi","bi","pi","hu","bu","pu","he","be","pe","ho","bo","po","ma","mi","mu","me","mo","ya","ya","yu","yu","yo","yo","ra","ri","ru","re","ro","wa","wa","wi","we","wo","n","vu","[?]","[?]","[?]","[?]","","","","",'"','"',"[?]","[?]","a","a","i","i","u","u","e","e","o","o","ka","ga","ki","gi","ku","gu","ke","ge","ko","go","sa","za","si","zi","su","zu","se","ze","so","zo","ta","da","ti","di","tu","tu","du","te","de","to","do","na","ni","nu","ne","no","ha","ba","pa","hi","bi","pi","hu","bu","pu","he","be","pe","ho","bo","po","ma","mi","mu","me","mo","ya","ya","yu","yu","yo","yo","ra","ri","ru","re","ro","wa","wa","wi","we","wo","n","vu","ka","ke","va","vi","ve","vo","","",'"','"']});var Z4=m((Y3e,W4)=>{W4.exports=["[?]","[?]","[?]","[?]","[?]","B","P","M","F","D","T","N","L","G","K","H","J","Q","X","ZH","CH","SH","R","Z","C","S","A","O","E","EH","AI","EI","AU","OU","AN","EN","ANG","ENG","ER","I","U","IU","V","NG","GN","[?]","[?]","[?]","[?]","g","gg","gs","n","nj","nh","d","dd","r","lg","lm","lb","ls","lt","lp","rh","m","b","bb","bs","s","ss","","j","jj","c","k","t","p","h","a","ae","ya","yae","eo","e","yeo","ye","o","wa","wae","oe","yo","u","weo","we","wi","yu","eu","yi","i","","nn","nd","ns","nZ","lgs","ld","lbs","lZ","lQ","mb","ms","mZ","mN","bg","","bsg","bst","bj","bt","bN","bbN","sg","sn","sd","sb","sj","Z","","N","Ns","NZ","pN","hh","Q","yo-ya","yo-yae","yo-i","yu-yeo","yu-ye","yu-i","U","U-i","[?]","","","","","","","","","","","","","","","","","BU","ZI","JI","GU","EE","ENN","OO","ONN","IR","ANN","INN","UNN","IM","NGG","AINN","AUNN","AM","OM","ONG","INNN","P","T","K","H","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var $4=m((W3e,J4)=>{J4.exports=["(g)","(n)","(d)","(r)","(m)","(b)","(s)","()","(j)","(c)","(k)","(t)","(p)","(h)","(ga)","(na)","(da)","(ra)","(ma)","(ba)","(sa)","(a)","(ja)","(ca)","(ka)","(ta)","(pa)","(ha)","(ju)","[?]","[?]","[?]","(1) ","(2) ","(3) ","(4) ","(5) ","(6) ","(7) ","(8) ","(9) ","(10) ","(Yue) ","(Huo) ","(Shui) ","(Mu) ","(Jin) ","(Tu) ","(Ri) ","(Zhu) ","(You) ","(She) ","(Ming) ","(Te) ","(Cai) ","(Zhu) ","(Lao) ","(Dai) ","(Hu) ","(Xue) ","(Jian) ","(Qi) ","(Zi) ","(Xie) ","(Ji) ","(Xiu) ","<<",">>","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","(g)","(n)","(d)","(r)","(m)","(b)","(s)","()","(j)","(c)","(k)","(t)","(p)","(h)","(ga)","(na)","(da)","(ra)","(ma)","(ba)","(sa)","(a)","(ja)","(ca)","(ka)","(ta)","(pa)","(ha)","[?]","[?]","[?]","KIS ","(1) ","(2) ","(3) ","(4) ","(5) ","(6) ","(7) ","(8) ","(9) ","(10) ","(Yue) ","(Huo) ","(Shui) ","(Mu) ","(Jin) ","(Tu) ","(Ri) ","(Zhu) ","(You) ","(She) ","(Ming) ","(Te) ","(Cai) ","(Zhu) ","(Lao) ","(Mi) ","(Nan) ","(Nu) ","(Shi) ","(You) ","(Yin) ","(Zhu) ","(Xiang) ","(Xiu) ","(Xie) ","(Zheng) ","(Shang) ","(Zhong) ","(Xia) ","(Zuo) ","(You) ","(Yi) ","(Zong) ","(Xue) ","(Jian) ","(Qi) ","(Zi) ","(Xie) ","(Ye) ","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","1M","2M","3M","4M","5M","6M","7M","8M","9M","10M","11M","12M","[?]","[?]","[?]","[?]","a","i","u","u","o","ka","ki","ku","ke","ko","sa","si","su","se","so","ta","ti","tu","te","to","na","ni","nu","ne","no","ha","hi","hu","he","ho","ma","mi","mu","me","mo","ya","yu","yo","ra","ri","ru","re","ro","wa","wi","we","wo"]});var U4=m((Z3e,X4)=>{X4.exports=["apartment","alpha","ampere","are","inning","inch","won","escudo","acre","ounce","ohm","kai-ri","carat","calorie","gallon","gamma","giga","guinea","curie","guilder","kilo","kilogram","kilometer","kilowatt","gram","gram ton","cruzeiro","krone","case","koruna","co-op","cycle","centime","shilling","centi","cent","dozen","desi","dollar","ton","nano","knot","heights","percent","parts","barrel","piaster","picul","pico","building","farad","feet","bushel","franc","hectare","peso","pfennig","hertz","pence","page","beta","point","volt","hon","pound","hall","horn","micro","mile","mach","mark","mansion","micron","milli","millibar","mega","megaton","meter","yard","yard","yuan","liter","lira","rupee","ruble","rem","roentgen","watt","0h","1h","2h","3h","4h","5h","6h","7h","8h","9h","10h","11h","12h","13h","14h","15h","16h","17h","18h","19h","20h","21h","22h","23h","24h","HPA","da","AU","bar","oV","pc","[?]","[?]","[?]","[?]","Heisei","Syouwa","Taisyou","Meiji","Inc.","pA","nA","microamp","mA","kA","kB","MB","GB","cal","kcal","pF","nF","microFarad","microgram","mg","kg","Hz","kHz","MHz","GHz","THz","microliter","ml","dl","kl","fm","nm","micrometer","mm","cm","km","mm^2","cm^2","m^2","km^2","mm^4","cm^3","m^3","km^3","m/s","m/s^2","Pa","kPa","MPa","GPa","rad","rad/s","rad/s^2","ps","ns","microsecond","ms","pV","nV","microvolt","mV","kV","MV","pW","nW","microwatt","mW","kW","MW","kOhm","MOhm","a.m.","Bq","cc","cd","C/kg","Co.","dB","Gy","ha","HP","in","K.K.","KM","kt","lm","ln","log","lx","mb","mil","mol","pH","p.m.","PPM","PR","sr","Sv","Wb","[?]","[?]","1d","2d","3d","4d","5d","6d","7d","8d","9d","10d","11d","12d","13d","14d","15d","16d","17d","18d","19d","20d","21d","22d","23d","24d","25d","26d","27d","28d","29d","30d","31d"]});var K4=m((J3e,G4)=>{G4.exports=["[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var Q4=m(($3e,z4)=>{z4.exports=["Yi ","Ding ","Kao ","Qi ","Shang ","Xia ","[?] ","Mo ","Zhang ","San ","Shang ","Xia ","Ji ","Bu ","Yu ","Mian ","Gai ","Chou ","Chou ","Zhuan ","Qie ","Pi ","Shi ","Shi ","Qiu ","Bing ","Ye ","Cong ","Dong ","Si ","Cheng ","Diu ","Qiu ","Liang ","Diu ","You ","Liang ","Yan ","Bing ","Sang ","Gun ","Jiu ","Ge ","Ya ","Qiang ","Zhong ","Ji ","Jie ","Feng ","Guan ","Chuan ","Chan ","Lin ","Zhuo ","Zhu ","Ha ","Wan ","Dan ","Wei ","Zhu ","Jing ","Li ","Ju ","Pie ","Fu ","Yi ","Yi ","Nai ","Shime ","Jiu ","Jiu ","Zhe ","Yao ","Yi ","[?] ","Zhi ","Wu ","Zha ","Hu ","Fa ","Le ","Zhong ","Ping ","Pang ","Qiao ","Hu ","Guai ","Cheng ","Cheng ","Yi ","Yin ","[?] ","Mie ","Jiu ","Qi ","Ye ","Xi ","Xiang ","Gai ","Diu ","Hal ","[?] ","Shu ","Twul ","Shi ","Ji ","Nang ","Jia ","Kel ","Shi ","[?] ","Ol ","Mai ","Luan ","Cal ","Ru ","Xue ","Yan ","Fu ","Sha ","Na ","Gan ","Sol ","El ","Cwul ","[?] ","Gan ","Chi ","Gui ","Gan ","Luan ","Lin ","Yi ","Jue ","Liao ","Ma ","Yu ","Zheng ","Shi ","Shi ","Er ","Chu ","Yu ","Yu ","Yu ","Yun ","Hu ","Qi ","Wu ","Jing ","Si ","Sui ","Gen ","Gen ","Ya ","Xie ","Ya ","Qi ","Ya ","Ji ","Tou ","Wang ","Kang ","Ta ","Jiao ","Hai ","Yi ","Chan ","Heng ","Mu ","[?] ","Xiang ","Jing ","Ting ","Liang ","Xiang ","Jing ","Ye ","Qin ","Bo ","You ","Xie ","Dan ","Lian ","Duo ","Wei ","Ren ","Ren ","Ji ","La ","Wang ","Yi ","Shi ","Ren ","Le ","Ding ","Ze ","Jin ","Pu ","Chou ","Ba ","Zhang ","Jin ","Jie ","Bing ","Reng ","Cong ","Fo ","San ","Lun ","Sya ","Cang ","Zi ","Shi ","Ta ","Zhang ","Fu ","Xian ","Xian ","Tuo ","Hong ","Tong ","Ren ","Qian ","Gan ","Yi ","Di ","Dai ","Ling ","Yi ","Chao ","Chang ","Sa ","[?] ","Yi ","Mu ","Men ","Ren ","Jia ","Chao ","Yang ","Qian ","Zhong ","Pi ","Wan ","Wu ","Jian ","Jie ","Yao ","Feng ","Cang ","Ren ","Wang ","Fen ","Di ","Fang "]});var e6=m((X3e,V4)=>{V4.exports=["Zhong ","Qi ","Pei ","Yu ","Diao ","Dun ","Wen ","Yi ","Xin ","Kang ","Yi ","Ji ","Ai ","Wu ","Ji ","Fu ","Fa ","Xiu ","Jin ","Bei ","Dan ","Fu ","Tang ","Zhong ","You ","Huo ","Hui ","Yu ","Cui ","Chuan ","San ","Wei ","Chuan ","Che ","Ya ","Xian ","Shang ","Chang ","Lun ","Cang ","Xun ","Xin ","Wei ","Zhu ","[?] ","Xuan ","Nu ","Bo ","Gu ","Ni ","Ni ","Xie ","Ban ","Xu ","Ling ","Zhou ","Shen ","Qu ","Si ","Beng ","Si ","Jia ","Pi ","Yi ","Si ","Ai ","Zheng ","Dian ","Han ","Mai ","Dan ","Zhu ","Bu ","Qu ","Bi ","Shao ","Ci ","Wei ","Di ","Zhu ","Zuo ","You ","Yang ","Ti ","Zhan ","He ","Bi ","Tuo ","She ","Yu ","Yi ","Fo ","Zuo ","Kou ","Ning ","Tong ","Ni ","Xuan ","Qu ","Yong ","Wa ","Qian ","[?] ","Ka ","[?] ","Pei ","Huai ","He ","Lao ","Xiang ","Ge ","Yang ","Bai ","Fa ","Ming ","Jia ","Er ","Bing ","Ji ","Hen ","Huo ","Gui ","Quan ","Tiao ","Jiao ","Ci ","Yi ","Shi ","Xing ","Shen ","Tuo ","Kan ","Zhi ","Gai ","Lai ","Yi ","Chi ","Kua ","Guang ","Li ","Yin ","Shi ","Mi ","Zhu ","Xu ","You ","An ","Lu ","Mou ","Er ","Lun ","Tong ","Cha ","Chi ","Xun ","Gong ","Zhou ","Yi ","Ru ","Jian ","Xia ","Jia ","Zai ","Lu ","Ko ","Jiao ","Zhen ","Ce ","Qiao ","Kuai ","Chai ","Ning ","Nong ","Jin ","Wu ","Hou ","Jiong ","Cheng ","Zhen ","Zuo ","Chou ","Qin ","Lu ","Ju ","Shu ","Ting ","Shen ","Tuo ","Bo ","Nan ","Hao ","Bian ","Tui ","Yu ","Xi ","Cu ","E ","Qiu ","Xu ","Kuang ","Ku ","Wu ","Jun ","Yi ","Fu ","Lang ","Zu ","Qiao ","Li ","Yong ","Hun ","Jing ","Xian ","San ","Pai ","Su ","Fu ","Xi ","Li ","Fu ","Ping ","Bao ","Yu ","Si ","Xia ","Xin ","Xiu ","Yu ","Ti ","Che ","Chou ","[?] ","Yan ","Lia ","Li ","Lai ","[?] ","Jian ","Xiu ","Fu ","He ","Ju ","Xiao ","Pai ","Jian ","Biao ","Chu ","Fei ","Feng ","Ya ","An ","Bei ","Yu ","Xin ","Bi ","Jian "]});var i6=m((U3e,t6)=>{t6.exports=["Chang ","Chi ","Bing ","Zan ","Yao ","Cui ","Lia ","Wan ","Lai ","Cang ","Zong ","Ge ","Guan ","Bei ","Tian ","Shu ","Shu ","Men ","Dao ","Tan ","Jue ","Chui ","Xing ","Peng ","Tang ","Hou ","Yi ","Qi ","Ti ","Gan ","Jing ","Jie ","Sui ","Chang ","Jie ","Fang ","Zhi ","Kong ","Juan ","Zong ","Ju ","Qian ","Ni ","Lun ","Zhuo ","Wei ","Luo ","Song ","Leng ","Hun ","Dong ","Zi ","Ben ","Wu ","Ju ","Nai ","Cai ","Jian ","Zhai ","Ye ","Zhi ","Sha ","Qing ","[?] ","Ying ","Cheng ","Jian ","Yan ","Nuan ","Zhong ","Chun ","Jia ","Jie ","Wei ","Yu ","Bing ","Ruo ","Ti ","Wei ","Pian ","Yan ","Feng ","Tang ","Wo ","E ","Xie ","Che ","Sheng ","Kan ","Di ","Zuo ","Cha ","Ting ","Bei ","Ye ","Huang ","Yao ","Zhan ","Chou ","Yan ","You ","Jian ","Xu ","Zha ","Ci ","Fu ","Bi ","Zhi ","Zong ","Mian ","Ji ","Yi ","Xie ","Xun ","Si ","Duan ","Ce ","Zhen ","Ou ","Tou ","Tou ","Bei ","Za ","Lu ","Jie ","Wei ","Fen ","Chang ","Gui ","Sou ","Zhi ","Su ","Xia ","Fu ","Yuan ","Rong ","Li ","Ru ","Yun ","Gou ","Ma ","Bang ","Dian ","Tang ","Hao ","Jie ","Xi ","Shan ","Qian ","Jue ","Cang ","Chu ","San ","Bei ","Xiao ","Yong ","Yao ","Tan ","Suo ","Yang ","Fa ","Bing ","Jia ","Dai ","Zai ","Tang ","[?] ","Bin ","Chu ","Nuo ","Can ","Lei ","Cui ","Yong ","Zao ","Zong ","Peng ","Song ","Ao ","Chuan ","Yu ","Zhai ","Cou ","Shang ","Qiang ","Jing ","Chi ","Sha ","Han ","Zhang ","Qing ","Yan ","Di ","Xi ","Lu ","Bei ","Piao ","Jin ","Lian ","Lu ","Man ","Qian ","Xian ","Tan ","Ying ","Dong ","Zhuan ","Xiang ","Shan ","Qiao ","Jiong ","Tui ","Zun ","Pu ","Xi ","Lao ","Chang ","Guang ","Liao ","Qi ","Deng ","Chan ","Wei ","Ji ","Fan ","Hui ","Chuan ","Jian ","Dan ","Jiao ","Jiu ","Seng ","Fen ","Xian ","Jue ","E ","Jiao ","Jian ","Tong ","Lin ","Bo ","Gu ","[?] ","Su ","Xian ","Jiang ","Min ","Ye ","Jin ","Jia ","Qiao ","Pi ","Feng ","Zhou ","Ai ","Sai "]});var r6=m((G3e,n6)=>{n6.exports=["Yi ","Jun ","Nong ","Chan ","Yi ","Dang ","Jing ","Xuan ","Kuai ","Jian ","Chu ","Dan ","Jiao ","Sha ","Zai ","[?] ","Bin ","An ","Ru ","Tai ","Chou ","Chai ","Lan ","Ni ","Jin ","Qian ","Meng ","Wu ","Ning ","Qiong ","Ni ","Chang ","Lie ","Lei ","Lu ","Kuang ","Bao ","Du ","Biao ","Zan ","Zhi ","Si ","You ","Hao ","Chen ","Chen ","Li ","Teng ","Wei ","Long ","Chu ","Chan ","Rang ","Shu ","Hui ","Li ","Luo ","Zan ","Nuo ","Tang ","Yan ","Lei ","Nang ","Er ","Wu ","Yun ","Zan ","Yuan ","Xiong ","Chong ","Zhao ","Xiong ","Xian ","Guang ","Dui ","Ke ","Dui ","Mian ","Tu ","Chang ","Er ","Dui ","Er ","Xin ","Tu ","Si ","Yan ","Yan ","Shi ","Shi ","Dang ","Qian ","Dou ","Fen ","Mao ","Shen ","Dou ","Bai ","Jing ","Li ","Huang ","Ru ","Wang ","Nei ","Quan ","Liang ","Yu ","Ba ","Gong ","Liu ","Xi ","[?] ","Lan ","Gong ","Tian ","Guan ","Xing ","Bing ","Qi ","Ju ","Dian ","Zi ","Ppwun ","Yang ","Jian ","Shou ","Ji ","Yi ","Ji ","Chan ","Jiong ","Mao ","Ran ","Nei ","Yuan ","Mao ","Gang ","Ran ","Ce ","Jiong ","Ce ","Zai ","Gua ","Jiong ","Mao ","Zhou ","Mou ","Gou ","Xu ","Mian ","Mi ","Rong ","Yin ","Xie ","Kan ","Jun ","Nong ","Yi ","Mi ","Shi ","Guan ","Meng ","Zhong ","Ju ","Yuan ","Ming ","Kou ","Lam ","Fu ","Xie ","Mi ","Bing ","Dong ","Tai ","Gang ","Feng ","Bing ","Hu ","Chong ","Jue ","Hu ","Kuang ","Ye ","Leng ","Pan ","Fu ","Min ","Dong ","Xian ","Lie ","Xia ","Jian ","Jing ","Shu ","Mei ","Tu ","Qi ","Gu ","Zhun ","Song ","Jing ","Liang ","Qing ","Diao ","Ling ","Dong ","Gan ","Jian ","Yin ","Cou ","Yi ","Li ","Cang ","Ming ","Zhuen ","Cui ","Si ","Duo ","Jin ","Lin ","Lin ","Ning ","Xi ","Du ","Ji ","Fan ","Fan ","Fan ","Feng ","Ju ","Chu ","Tako ","Feng ","Mok ","Ci ","Fu ","Feng ","Ping ","Feng ","Kai ","Huang ","Kai ","Gan ","Deng ","Ping ","Qu ","Xiong ","Kuai ","Tu ","Ao ","Chu ","Ji ","Dang ","Han ","Han ","Zao "]});var s6=m((K3e,o6)=>{o6.exports=["Dao ","Diao ","Dao ","Ren ","Ren ","Chuang ","Fen ","Qie ","Yi ","Ji ","Kan ","Qian ","Cun ","Chu ","Wen ","Ji ","Dan ","Xing ","Hua ","Wan ","Jue ","Li ","Yue ","Lie ","Liu ","Ze ","Gang ","Chuang ","Fu ","Chu ","Qu ","Ju ","Shan ","Min ","Ling ","Zhong ","Pan ","Bie ","Jie ","Jie ","Bao ","Li ","Shan ","Bie ","Chan ","Jing ","Gua ","Gen ","Dao ","Chuang ","Kui ","Ku ","Duo ","Er ","Zhi ","Shua ","Quan ","Cha ","Ci ","Ke ","Jie ","Gui ","Ci ","Gui ","Kai ","Duo ","Ji ","Ti ","Jing ","Lou ","Gen ","Ze ","Yuan ","Cuo ","Xue ","Ke ","La ","Qian ","Cha ","Chuang ","Gua ","Jian ","Cuo ","Li ","Ti ","Fei ","Pou ","Chan ","Qi ","Chuang ","Zi ","Gang ","Wan ","Bo ","Ji ","Duo ","Qing ","Yan ","Zhuo ","Jian ","Ji ","Bo ","Yan ","Ju ","Huo ","Sheng ","Jian ","Duo ","Duan ","Wu ","Gua ","Fu ","Sheng ","Jian ","Ge ","Zha ","Kai ","Chuang ","Juan ","Chan ","Tuan ","Lu ","Li ","Fou ","Shan ","Piao ","Kou ","Jiao ","Gua ","Qiao ","Jue ","Hua ","Zha ","Zhuo ","Lian ","Ju ","Pi ","Liu ","Gui ","Jiao ","Gui ","Jian ","Jian ","Tang ","Huo ","Ji ","Jian ","Yi ","Jian ","Zhi ","Chan ","Cuan ","Mo ","Li ","Zhu ","Li ","Ya ","Quan ","Ban ","Gong ","Jia ","Wu ","Mai ","Lie ","Jin ","Keng ","Xie ","Zhi ","Dong ","Zhu ","Nu ","Jie ","Qu ","Shao ","Yi ","Zhu ","Miao ","Li ","Jing ","Lao ","Lao ","Juan ","Kou ","Yang ","Wa ","Xiao ","Mou ","Kuang ","Jie ","Lie ","He ","Shi ","Ke ","Jing ","Hao ","Bo ","Min ","Chi ","Lang ","Yong ","Yong ","Mian ","Ke ","Xun ","Juan ","Qing ","Lu ","Pou ","Meng ","Lai ","Le ","Kai ","Mian ","Dong ","Xu ","Xu ","Kan ","Wu ","Yi ","Xun ","Weng ","Sheng ","Lao ","Mu ","Lu ","Piao ","Shi ","Ji ","Qin ","Qiang ","Jiao ","Quan ","Yang ","Yi ","Jue ","Fan ","Juan ","Tong ","Ju ","Dan ","Xie ","Mai ","Xun ","Xun ","Lu ","Li ","Che ","Rang ","Quan ","Bao ","Shao ","Yun ","Jiu ","Bao ","Gou ","Wu "]});var l6=m((z3e,a6)=>{a6.exports=["Yun ","Mwun ","Nay ","Gai ","Gai ","Bao ","Cong ","[?] ","Xiong ","Peng ","Ju ","Tao ","Ge ","Pu ","An ","Pao ","Fu ","Gong ","Da ","Jiu ","Qiong ","Bi ","Hua ","Bei ","Nao ","Chi ","Fang ","Jiu ","Yi ","Za ","Jiang ","Kang ","Jiang ","Kuang ","Hu ","Xia ","Qu ","Bian ","Gui ","Qie ","Zang ","Kuang ","Fei ","Hu ","Tou ","Gui ","Gui ","Hui ","Dan ","Gui ","Lian ","Lian ","Suan ","Du ","Jiu ","Qu ","Xi ","Pi ","Qu ","Yi ","Qia ","Yan ","Bian ","Ni ","Qu ","Shi ","Xin ","Qian ","Nian ","Sa ","Zu ","Sheng ","Wu ","Hui ","Ban ","Shi ","Xi ","Wan ","Hua ","Xie ","Wan ","Bei ","Zu ","Zhuo ","Xie ","Dan ","Mai ","Nan ","Dan ","Ji ","Bo ","Shuai ","Bu ","Kuang ","Bian ","Bu ","Zhan ","Qia ","Lu ","You ","Lu ","Xi ","Gua ","Wo ","Xie ","Jie ","Jie ","Wei ","Ang ","Qiong ","Zhi ","Mao ","Yin ","Wei ","Shao ","Ji ","Que ","Luan ","Shi ","Juan ","Xie ","Xu ","Jin ","Que ","Wu ","Ji ","E ","Qing ","Xi ","[?] ","Han ","Zhan ","E ","Ting ","Li ","Zhe ","Han ","Li ","Ya ","Ya ","Yan ","She ","Zhi ","Zha ","Pang ","[?] ","He ","Ya ","Zhi ","Ce ","Pang ","Ti ","Li ","She ","Hou ","Ting ","Zui ","Cuo ","Fei ","Yuan ","Ce ","Yuan ","Xiang ","Yan ","Li ","Jue ","Sha ","Dian ","Chu ","Jiu ","Qin ","Ao ","Gui ","Yan ","Si ","Li ","Chang ","Lan ","Li ","Yan ","Yan ","Yuan ","Si ","Gong ","Lin ","Qiu ","Qu ","Qu ","Uk ","Lei ","Du ","Xian ","Zhuan ","San ","Can ","Can ","Can ","Can ","Ai ","Dai ","You ","Cha ","Ji ","You ","Shuang ","Fan ","Shou ","Guai ","Ba ","Fa ","Ruo ","Shi ","Shu ","Zhuo ","Qu ","Shou ","Bian ","Xu ","Jia ","Pan ","Sou ","Gao ","Wei ","Sou ","Die ","Rui ","Cong ","Kou ","Gu ","Ju ","Ling ","Gua ","Tao ","Kou ","Zhi ","Jiao ","Zhao ","Ba ","Ding ","Ke ","Tai ","Chi ","Shi ","You ","Qiu ","Po ","Xie ","Hao ","Si ","Tan ","Chi ","Le ","Diao ","Ji ","[?] ","Hong "]});var c6=m((Q3e,u6)=>{u6.exports=["Mie ","Xu ","Mang ","Chi ","Ge ","Xuan ","Yao ","Zi ","He ","Ji ","Diao ","Cun ","Tong ","Ming ","Hou ","Li ","Tu ","Xiang ","Zha ","Xia ","Ye ","Lu ","A ","Ma ","Ou ","Xue ","Yi ","Jun ","Chou ","Lin ","Tun ","Yin ","Fei ","Bi ","Qin ","Qin ","Jie ","Bu ","Fou ","Ba ","Dun ","Fen ","E ","Han ","Ting ","Hang ","Shun ","Qi ","Hong ","Zhi ","Shen ","Wu ","Wu ","Chao ","Ne ","Xue ","Xi ","Chui ","Dou ","Wen ","Hou ","Ou ","Wu ","Gao ","Ya ","Jun ","Lu ","E ","Ge ","Mei ","Ai ","Qi ","Cheng ","Wu ","Gao ","Fu ","Jiao ","Hong ","Chi ","Sheng ","Ne ","Tun ","Fu ","Yi ","Dai ","Ou ","Li ","Bai ","Yuan ","Kuai ","[?] ","Qiang ","Wu ","E ","Shi ","Quan ","Pen ","Wen ","Ni ","M ","Ling ","Ran ","You ","Di ","Zhou ","Shi ","Zhou ","Tie ","Xi ","Yi ","Qi ","Ping ","Zi ","Gu ","Zi ","Wei ","Xu ","He ","Nao ","Xia ","Pei ","Yi ","Xiao ","Shen ","Hu ","Ming ","Da ","Qu ","Ju ","Gem ","Za ","Tuo ","Duo ","Pou ","Pao ","Bi ","Fu ","Yang ","He ","Zha ","He ","Hai ","Jiu ","Yong ","Fu ","Que ","Zhou ","Wa ","Ka ","Gu ","Ka ","Zuo ","Bu ","Long ","Dong ","Ning ","Tha ","Si ","Xian ","Huo ","Qi ","Er ","E ","Guang ","Zha ","Xi ","Yi ","Lie ","Zi ","Mie ","Mi ","Zhi ","Yao ","Ji ","Zhou ","Ge ","Shuai ","Zan ","Xiao ","Ke ","Hui ","Kua ","Huai ","Tao ","Xian ","E ","Xuan ","Xiu ","Wai ","Yan ","Lao ","Yi ","Ai ","Pin ","Shen ","Tong ","Hong ","Xiong ","Chi ","Wa ","Ha ","Zai ","Yu ","Di ","Pai ","Xiang ","Ai ","Hen ","Kuang ","Ya ","Da ","Xiao ","Bi ","Yue ","[?] ","Hua ","Sasou ","Kuai ","Duo ","[?] ","Ji ","Nong ","Mou ","Yo ","Hao ","Yuan ","Long ","Pou ","Mang ","Ge ","E ","Chi ","Shao ","Li ","Na ","Zu ","He ","Ku ","Xiao ","Xian ","Lao ","Bo ","Zhe ","Zha ","Liang ","Ba ","Mie ","Le ","Sui ","Fou ","Bu ","Han ","Heng ","Geng ","Shuo ","Ge "]});var d6=m((V3e,h6)=>{h6.exports=["You ","Yan ","Gu ","Gu ","Bai ","Han ","Suo ","Chun ","Yi ","Ai ","Jia ","Tu ","Xian ","Huan ","Li ","Xi ","Tang ","Zuo ","Qiu ","Che ","Wu ","Zao ","Ya ","Dou ","Qi ","Di ","Qin ","Ma ","Mal ","Hong ","Dou ","Kes ","Lao ","Liang ","Suo ","Zao ","Huan ","Lang ","Sha ","Ji ","Zuo ","Wo ","Feng ","Yin ","Hu ","Qi ","Shou ","Wei ","Shua ","Chang ","Er ","Li ","Qiang ","An ","Jie ","Yo ","Nian ","Yu ","Tian ","Lai ","Sha ","Xi ","Tuo ","Hu ","Ai ","Zhou ","Nou ","Ken ","Zhuo ","Zhuo ","Shang ","Di ","Heng ","Lan ","A ","Xiao ","Xiang ","Tun ","Wu ","Wen ","Cui ","Sha ","Hu ","Qi ","Qi ","Tao ","Dan ","Dan ","Ye ","Zi ","Bi ","Cui ","Chuo ","He ","Ya ","Qi ","Zhe ","Pei ","Liang ","Xian ","Pi ","Sha ","La ","Ze ","Qing ","Gua ","Pa ","Zhe ","Se ","Zhuan ","Nie ","Guo ","Luo ","Yan ","Di ","Quan ","Tan ","Bo ","Ding ","Lang ","Xiao ","[?] ","Tang ","Chi ","Ti ","An ","Jiu ","Dan ","Ke ","Yong ","Wei ","Nan ","Shan ","Yu ","Zhe ","La ","Jie ","Hou ","Han ","Die ","Zhou ","Chai ","Wai ","Re ","Yu ","Yin ","Zan ","Yao ","Wo ","Mian ","Hu ","Yun ","Chuan ","Hui ","Huan ","Huan ","Xi ","He ","Ji ","Kui ","Zhong ","Wei ","Sha ","Xu ","Huang ","Du ","Nie ","Xuan ","Liang ","Yu ","Sang ","Chi ","Qiao ","Yan ","Dan ","Pen ","Can ","Li ","Yo ","Zha ","Wei ","Miao ","Ying ","Pen ","Phos ","Kui ","Xi ","Yu ","Jie ","Lou ","Ku ","Sao ","Huo ","Ti ","Yao ","He ","A ","Xiu ","Qiang ","Se ","Yong ","Su ","Hong ","Xie ","Yi ","Suo ","Ma ","Cha ","Hai ","Ke ","Ta ","Sang ","Tian ","Ru ","Sou ","Wa ","Ji ","Pang ","Wu ","Xian ","Shi ","Ge ","Zi ","Jie ","Luo ","Weng ","Wa ","Si ","Chi ","Hao ","Suo ","Jia ","Hai ","Suo ","Qin ","Nie ","He ","Cis ","Sai ","Ng ","Ge ","Na ","Dia ","Ai ","[?] ","Tong ","Bi ","Ao ","Ao ","Lian ","Cui ","Zhe ","Mo ","Sou ","Sou ","Tan "]});var f6=m((eKe,g6)=>{g6.exports=["Di ","Qi ","Jiao ","Chong ","Jiao ","Kai ","Tan ","San ","Cao ","Jia ","Ai ","Xiao ","Piao ","Lou ","Ga ","Gu ","Xiao ","Hu ","Hui ","Guo ","Ou ","Xian ","Ze ","Chang ","Xu ","Po ","De ","Ma ","Ma ","Hu ","Lei ","Du ","Ga ","Tang ","Ye ","Beng ","Ying ","Saai ","Jiao ","Mi ","Xiao ","Hua ","Mai ","Ran ","Zuo ","Peng ","Lao ","Xiao ","Ji ","Zhu ","Chao ","Kui ","Zui ","Xiao ","Si ","Hao ","Fu ","Liao ","Qiao ","Xi ","Xiu ","Tan ","Tan ","Mo ","Xun ","E ","Zun ","Fan ","Chi ","Hui ","Zan ","Chuang ","Cu ","Dan ","Yu ","Tun ","Cheng ","Jiao ","Ye ","Xi ","Qi ","Hao ","Lian ","Xu ","Deng ","Hui ","Yin ","Pu ","Jue ","Qin ","Xun ","Nie ","Lu ","Si ","Yan ","Ying ","Da ","Dan ","Yu ","Zhou ","Jin ","Nong ","Yue ","Hui ","Qi ","E ","Zao ","Yi ","Shi ","Jiao ","Yuan ","Ai ","Yong ","Jue ","Kuai ","Yu ","Pen ","Dao ","Ge ","Xin ","Dun ","Dang ","Sin ","Sai ","Pi ","Pi ","Yin ","Zui ","Ning ","Di ","Lan ","Ta ","Huo ","Ru ","Hao ","Xia ","Ya ","Duo ","Xi ","Chou ","Ji ","Jin ","Hao ","Ti ","Chang ","[?] ","[?] ","Ca ","Ti ","Lu ","Hui ","Bo ","You ","Nie ","Yin ","Hu ","Mo ","Huang ","Zhe ","Li ","Liu ","Haai ","Nang ","Xiao ","Mo ","Yan ","Li ","Lu ","Long ","Fu ","Dan ","Chen ","Pin ","Pi ","Xiang ","Huo ","Mo ","Xi ","Duo ","Ku ","Yan ","Chan ","Ying ","Rang ","Dian ","La ","Ta ","Xiao ","Jiao ","Chuo ","Huan ","Huo ","Zhuan ","Nie ","Xiao ","Ca ","Li ","Chan ","Chai ","Li ","Yi ","Luo ","Nang ","Zan ","Su ","Xi ","So ","Jian ","Za ","Zhu ","Lan ","Nie ","Nang ","[?] ","[?] ","Wei ","Hui ","Yin ","Qiu ","Si ","Nin ","Jian ","Hui ","Xin ","Yin ","Nan ","Tuan ","Tuan ","Dun ","Kang ","Yuan ","Jiong ","Pian ","Yun ","Cong ","Hu ","Hui ","Yuan ","You ","Guo ","Kun ","Cong ","Wei ","Tu ","Wei ","Lun ","Guo ","Qun ","Ri ","Ling ","Gu ","Guo ","Tai ","Guo ","Tu ","You "]});var m6=m((tKe,p6)=>{p6.exports=["Guo ","Yin ","Hun ","Pu ","Yu ","Han ","Yuan ","Lun ","Quan ","Yu ","Qing ","Guo ","Chuan ","Wei ","Yuan ","Quan ","Ku ","Fu ","Yuan ","Yuan ","E ","Tu ","Tu ","Tu ","Tuan ","Lue ","Hui ","Yi ","Yuan ","Luan ","Luan ","Tu ","Ya ","Tu ","Ting ","Sheng ","Pu ","Lu ","Iri ","Ya ","Zai ","Wei ","Ge ","Yu ","Wu ","Gui ","Pi ","Yi ","Di ","Qian ","Qian ","Zhen ","Zhuo ","Dang ","Qia ","Akutsu ","Yama ","Kuang ","Chang ","Qi ","Nie ","Mo ","Ji ","Jia ","Zhi ","Zhi ","Ban ","Xun ","Tou ","Qin ","Fen ","Jun ","Keng ","Tun ","Fang ","Fen ","Ben ","Tan ","Kan ","Pi ","Zuo ","Keng ","Bi ","Xing ","Di ","Jing ","Ji ","Kuai ","Di ","Jing ","Jian ","Tan ","Li ","Ba ","Wu ","Fen ","Zhui ","Po ","Pan ","Tang ","Kun ","Qu ","Tan ","Zhi ","Tuo ","Gan ","Ping ","Dian ","Gua ","Ni ","Tai ","Pi ","Jiong ","Yang ","Fo ","Ao ","Liu ","Qiu ","Mu ","Ke ","Gou ","Xue ","Ba ","Chi ","Che ","Ling ","Zhu ","Fu ","Hu ","Zhi ","Chui ","La ","Long ","Long ","Lu ","Ao ","Tay ","Pao ","[?] ","Xing ","Dong ","Ji ","Ke ","Lu ","Ci ","Chi ","Lei ","Gai ","Yin ","Hou ","Dui ","Zhao ","Fu ","Guang ","Yao ","Duo ","Duo ","Gui ","Cha ","Yang ","Yin ","Fa ","Gou ","Yuan ","Die ","Xie ","Ken ","Jiong ","Shou ","E ","Ha ","Dian ","Hong ","Wu ","Kua ","[?] ","Tao ","Dang ","Kai ","Gake ","Nao ","An ","Xing ","Xian ","Huan ","Bang ","Pei ","Ba ","Yi ","Yin ","Han ","Xu ","Chui ","Cen ","Geng ","Ai ","Peng ","Fang ","Que ","Yong ","Xun ","Jia ","Di ","Mai ","Lang ","Xuan ","Cheng ","Yan ","Jin ","Zhe ","Lei ","Lie ","Bu ","Cheng ","Gomi ","Bu ","Shi ","Xun ","Guo ","Jiong ","Ye ","Nian ","Di ","Yu ","Bu ","Ya ","Juan ","Sui ","Pi ","Cheng ","Wan ","Ju ","Lun ","Zheng ","Kong ","Chong ","Dong ","Dai ","Tan ","An ","Cai ","Shu ","Beng ","Kan ","Zhi ","Duo ","Yi ","Zhi ","Yi ","Pei ","Ji ","Zhun ","Qi ","Sao ","Ju ","Ni "]});var y6=m((iKe,b6)=>{b6.exports=["Ku ","Ke ","Tang ","Kun ","Ni ","Jian ","Dui ","Jin ","Gang ","Yu ","E ","Peng ","Gu ","Tu ","Leng ","[?] ","Ya ","Qian ","[?] ","An ","[?] ","Duo ","Nao ","Tu ","Cheng ","Yin ","Hun ","Bi ","Lian ","Guo ","Die ","Zhuan ","Hou ","Bao ","Bao ","Yu ","Di ","Mao ","Jie ","Ruan ","E ","Geng ","Kan ","Zong ","Yu ","Huang ","E ","Yao ","Yan ","Bao ","Ji ","Mei ","Chang ","Du ","Tuo ","Yin ","Feng ","Zhong ","Jie ","Zhen ","Feng ","Gang ","Chuan ","Jian ","Pyeng ","Toride ","Xiang ","Huang ","Leng ","Duan ","[?] ","Xuan ","Ji ","Ji ","Kuai ","Ying ","Ta ","Cheng ","Yong ","Kai ","Su ","Su ","Shi ","Mi ","Ta ","Weng ","Cheng ","Tu ","Tang ","Que ","Zhong ","Li ","Peng ","Bang ","Sai ","Zang ","Dui ","Tian ","Wu ","Cheng ","Xun ","Ge ","Zhen ","Ai ","Gong ","Yan ","Kan ","Tian ","Yuan ","Wen ","Xie ","Liu ","Ama ","Lang ","Chang ","Peng ","Beng ","Chen ","Cu ","Lu ","Ou ","Qian ","Mei ","Mo ","Zhuan ","Shuang ","Shu ","Lou ","Chi ","Man ","Biao ","Jing ","Qi ","Shu ","Di ","Zhang ","Kan ","Yong ","Dian ","Chen ","Zhi ","Xi ","Guo ","Qiang ","Jin ","Di ","Shang ","Mu ","Cui ","Yan ","Ta ","Zeng ","Qi ","Qiang ","Liang ","[?] ","Zhui ","Qiao ","Zeng ","Xu ","Shan ","Shan ","Ba ","Pu ","Kuai ","Dong ","Fan ","Que ","Mo ","Dun ","Dun ","Dun ","Di ","Sheng ","Duo ","Duo ","Tan ","Deng ","Wu ","Fen ","Huang ","Tan ","Da ","Ye ","Sho ","Mama ","Yu ","Qiang ","Ji ","Qiao ","Ken ","Yi ","Pi ","Bi ","Dian ","Jiang ","Ye ","Yong ","Bo ","Tan ","Lan ","Ju ","Huai ","Dang ","Rang ","Qian ","Xun ","Lan ","Xi ","He ","Ai ","Ya ","Dao ","Hao ","Ruan ","Mama ","Lei ","Kuang ","Lu ","Yan ","Tan ","Wei ","Huai ","Long ","Long ","Rui ","Li ","Lin ","Rang ","Ten ","Xun ","Yan ","Lei ","Ba ","[?] ","Shi ","Ren ","[?] ","Zhuang ","Zhuang ","Sheng ","Yi ","Mai ","Ke ","Zhu ","Zhuang ","Hu ","Hu ","Kun ","Yi ","Hu ","Xu ","Kun ","Shou ","Mang ","Zun "]});var w6=m((nKe,v6)=>{v6.exports=["Shou ","Yi ","Zhi ","Gu ","Chu ","Jiang ","Feng ","Bei ","Cay ","Bian ","Sui ","Qun ","Ling ","Fu ","Zuo ","Xia ","Xiong ","[?] ","Nao ","Xia ","Kui ","Xi ","Wai ","Yuan ","Mao ","Su ","Duo ","Duo ","Ye ","Qing ","Uys ","Gou ","Gou ","Qi ","Meng ","Meng ","Yin ","Huo ","Chen ","Da ","Ze ","Tian ","Tai ","Fu ","Guai ","Yao ","Yang ","Hang ","Gao ","Shi ","Ben ","Tai ","Tou ","Yan ","Bi ","Yi ","Kua ","Jia ","Duo ","Kwu ","Kuang ","Yun ","Jia ","Pa ","En ","Lian ","Huan ","Di ","Yan ","Pao ","Quan ","Qi ","Nai ","Feng ","Xie ","Fen ","Dian ","[?] ","Kui ","Zou ","Huan ","Qi ","Kai ","Zha ","Ben ","Yi ","Jiang ","Tao ","Zang ","Ben ","Xi ","Xiang ","Fei ","Diao ","Xun ","Keng ","Dian ","Ao ","She ","Weng ","Pan ","Ao ","Wu ","Ao ","Jiang ","Lian ","Duo ","Yun ","Jiang ","Shi ","Fen ","Huo ","Bi ","Lian ","Duo ","Nu ","Nu ","Ding ","Nai ","Qian ","Jian ","Ta ","Jiu ","Nan ","Cha ","Hao ","Xian ","Fan ","Ji ","Shuo ","Ru ","Fei ","Wang ","Hong ","Zhuang ","Fu ","Ma ","Dan ","Ren ","Fu ","Jing ","Yan ","Xie ","Wen ","Zhong ","Pa ","Du ","Ji ","Keng ","Zhong ","Yao ","Jin ","Yun ","Miao ","Pei ","Shi ","Yue ","Zhuang ","Niu ","Yan ","Na ","Xin ","Fen ","Bi ","Yu ","Tuo ","Feng ","Yuan ","Fang ","Wu ","Yu ","Gui ","Du ","Ba ","Ni ","Zhou ","Zhuo ","Zhao ","Da ","Nai ","Yuan ","Tou ","Xuan ","Zhi ","E ","Mei ","Mo ","Qi ","Bi ","Shen ","Qie ","E ","He ","Xu ","Fa ","Zheng ","Min ","Ban ","Mu ","Fu ","Ling ","Zi ","Zi ","Shi ","Ran ","Shan ","Yang ","Man ","Jie ","Gu ","Si ","Xing ","Wei ","Zi ","Ju ","Shan ","Pin ","Ren ","Yao ","Tong ","Jiang ","Shu ","Ji ","Gai ","Shang ","Kuo ","Juan ","Jiao ","Gou ","Mu ","Jian ","Jian ","Yi ","Nian ","Zhi ","Ji ","Ji ","Xian ","Heng ","Guang ","Jun ","Kua ","Yan ","Ming ","Lie ","Pei ","Yan ","You ","Yan ","Cha ","Shen ","Yin ","Chi ","Gui ","Quan ","Zi "]});var C6=m((rKe,x6)=>{x6.exports=["Song ","Wei ","Hong ","Wa ","Lou ","Ya ","Rao ","Jiao ","Luan ","Ping ","Xian ","Shao ","Li ","Cheng ","Xiao ","Mang ","Fu ","Suo ","Wu ","Wei ","Ke ","Lai ","Chuo ","Ding ","Niang ","Xing ","Nan ","Yu ","Nuo ","Pei ","Nei ","Juan ","Shen ","Zhi ","Han ","Di ","Zhuang ","E ","Pin ","Tui ","Han ","Mian ","Wu ","Yan ","Wu ","Xi ","Yan ","Yu ","Si ","Yu ","Wa ","[?] ","Xian ","Ju ","Qu ","Shui ","Qi ","Xian ","Zhui ","Dong ","Chang ","Lu ","Ai ","E ","E ","Lou ","Mian ","Cong ","Pou ","Ju ","Po ","Cai ","Ding ","Wan ","Biao ","Xiao ","Shu ","Qi ","Hui ","Fu ","E ","Wo ","Tan ","Fei ","Wei ","Jie ","Tian ","Ni ","Quan ","Jing ","Hun ","Jing ","Qian ","Dian ","Xing ","Hu ","Wa ","Lai ","Bi ","Yin ","Chou ","Chuo ","Fu ","Jing ","Lun ","Yan ","Lan ","Kun ","Yin ","Ya ","Ju ","Li ","Dian ","Xian ","Hwa ","Hua ","Ying ","Chan ","Shen ","Ting ","Dang ","Yao ","Wu ","Nan ","Ruo ","Jia ","Tou ","Xu ","Yu ","Wei ","Ti ","Rou ","Mei ","Dan ","Ruan ","Qin ","Hui ","Wu ","Qian ","Chun ","Mao ","Fu ","Jie ","Duan ","Xi ","Zhong ","Mei ","Huang ","Mian ","An ","Ying ","Xuan ","Jie ","Wei ","Mei ","Yuan ","Zhen ","Qiu ","Ti ","Xie ","Tuo ","Lian ","Mao ","Ran ","Si ","Pian ","Wei ","Wa ","Jiu ","Hu ","Ao ","[?] ","Bou ","Xu ","Tou ","Gui ","Zou ","Yao ","Pi ","Xi ","Yuan ","Ying ","Rong ","Ru ","Chi ","Liu ","Mei ","Pan ","Ao ","Ma ","Gou ","Kui ","Qin ","Jia ","Sao ","Zhen ","Yuan ","Cha ","Yong ","Ming ","Ying ","Ji ","Su ","Niao ","Xian ","Tao ","Pang ","Lang ","Nao ","Bao ","Ai ","Pi ","Pin ","Yi ","Piao ","Yu ","Lei ","Xuan ","Man ","Yi ","Zhang ","Kang ","Yong ","Ni ","Li ","Di ","Gui ","Yan ","Jin ","Zhuan ","Chang ","Ce ","Han ","Nen ","Lao ","Mo ","Zhe ","Hu ","Hu ","Ao ","Nen ","Qiang ","Ma ","Pie ","Gu ","Wu ","Jiao ","Tuo ","Zhan ","Mao ","Xian ","Xian ","Mo ","Liao ","Lian ","Hua "]});var T6=m((oKe,S6)=>{S6.exports=["Gui ","Deng ","Zhi ","Xu ","Yi ","Hua ","Xi ","Hui ","Rao ","Xi ","Yan ","Chan ","Jiao ","Mei ","Fan ","Fan ","Xian ","Yi ","Wei ","Jiao ","Fu ","Shi ","Bi ","Shan ","Sui ","Qiang ","Lian ","Huan ","Xin ","Niao ","Dong ","Yi ","Can ","Ai ","Niang ","Neng ","Ma ","Tiao ","Chou ","Jin ","Ci ","Yu ","Pin ","Yong ","Xu ","Nai ","Yan ","Tai ","Ying ","Can ","Niao ","Wo ","Ying ","Mian ","Kaka ","Ma ","Shen ","Xing ","Ni ","Du ","Liu ","Yuan ","Lan ","Yan ","Shuang ","Ling ","Jiao ","Niang ","Lan ","Xian ","Ying ","Shuang ","Shuai ","Quan ","Mi ","Li ","Luan ","Yan ","Zhu ","Lan ","Zi ","Jie ","Jue ","Jue ","Kong ","Yun ","Zi ","Zi ","Cun ","Sun ","Fu ","Bei ","Zi ","Xiao ","Xin ","Meng ","Si ","Tai ","Bao ","Ji ","Gu ","Nu ","Xue ","[?] ","Zhuan ","Hai ","Luan ","Sun ","Huai ","Mie ","Cong ","Qian ","Shu ","Chan ","Ya ","Zi ","Ni ","Fu ","Zi ","Li ","Xue ","Bo ","Ru ","Lai ","Nie ","Nie ","Ying ","Luan ","Mian ","Zhu ","Rong ","Ta ","Gui ","Zhai ","Qiong ","Yu ","Shou ","An ","Tu ","Song ","Wan ","Rou ","Yao ","Hong ","Yi ","Jing ","Zhun ","Mi ","Zhu ","Dang ","Hong ","Zong ","Guan ","Zhou ","Ding ","Wan ","Yi ","Bao ","Shi ","Shi ","Chong ","Shen ","Ke ","Xuan ","Shi ","You ","Huan ","Yi ","Tiao ","Shi ","Xian ","Gong ","Cheng ","Qun ","Gong ","Xiao ","Zai ","Zha ","Bao ","Hai ","Yan ","Xiao ","Jia ","Shen ","Chen ","Rong ","Huang ","Mi ","Kou ","Kuan ","Bin ","Su ","Cai ","Zan ","Ji ","Yuan ","Ji ","Yin ","Mi ","Kou ","Qing ","Que ","Zhen ","Jian ","Fu ","Ning ","Bing ","Huan ","Mei ","Qin ","Han ","Yu ","Shi ","Ning ","Qin ","Ning ","Zhi ","Yu ","Bao ","Kuan ","Ning ","Qin ","Mo ","Cha ","Ju ","Gua ","Qin ","Hu ","Wu ","Liao ","Shi ","Zhu ","Zhai ","Shen ","Wei ","Xie ","Kuan ","Hui ","Liao ","Jun ","Huan ","Yi ","Yi ","Bao ","Qin ","Chong ","Bao ","Feng ","Cun ","Dui ","Si ","Xun ","Dao ","Lu ","Dui ","Shou "]});var D6=m((sKe,k6)=>{k6.exports=["Po ","Feng ","Zhuan ","Fu ","She ","Ke ","Jiang ","Jiang ","Zhuan ","Wei ","Zun ","Xun ","Shu ","Dui ","Dao ","Xiao ","Ji ","Shao ","Er ","Er ","Er ","Ga ","Jian ","Shu ","Chen ","Shang ","Shang ","Mo ","Ga ","Chang ","Liao ","Xian ","Xian ","[?] ","Wang ","Wang ","You ","Liao ","Liao ","Yao ","Mang ","Wang ","Wang ","Wang ","Ga ","Yao ","Duo ","Kui ","Zhong ","Jiu ","Gan ","Gu ","Gan ","Tui ","Gan ","Gan ","Shi ","Yin ","Chi ","Kao ","Ni ","Jin ","Wei ","Niao ","Ju ","Pi ","Ceng ","Xi ","Bi ","Ju ","Jie ","Tian ","Qu ","Ti ","Jie ","Wu ","Diao ","Shi ","Shi ","Ping ","Ji ","Xie ","Chen ","Xi ","Ni ","Zhan ","Xi ","[?] ","Man ","E ","Lou ","Ping ","Ti ","Fei ","Shu ","Xie ","Tu ","Lu ","Lu ","Xi ","Ceng ","Lu ","Ju ","Xie ","Ju ","Jue ","Liao ","Jue ","Shu ","Xi ","Che ","Tun ","Ni ","Shan ","[?] ","Xian ","Li ","Xue ","Nata ","[?] ","Long ","Yi ","Qi ","Ren ","Wu ","Han ","Shen ","Yu ","Chu ","Sui ","Qi ","[?] ","Yue ","Ban ","Yao ","Ang ","Ya ","Wu ","Jie ","E ","Ji ","Qian ","Fen ","Yuan ","Qi ","Cen ","Qian ","Qi ","Cha ","Jie ","Qu ","Gang ","Xian ","Ao ","Lan ","Dao ","Ba ","Zuo ","Zuo ","Yang ","Ju ","Gang ","Ke ","Gou ","Xue ","Bei ","Li ","Tiao ","Ju ","Yan ","Fu ","Xiu ","Jia ","Ling ","Tuo ","Pei ","You ","Dai ","Kuang ","Yue ","Qu ","Hu ","Po ","Min ","An ","Tiao ","Ling ","Chi ","Yuri ","Dong ","Cem ","Kui ","Xiu ","Mao ","Tong ","Xue ","Yi ","Kura ","He ","Ke ","Luo ","E ","Fu ","Xun ","Die ","Lu ","An ","Er ","Gai ","Quan ","Tong ","Yi ","Mu ","Shi ","An ","Wei ","Hu ","Zhi ","Mi ","Li ","Ji ","Tong ","Wei ","You ","Sang ","Xia ","Li ","Yao ","Jiao ","Zheng ","Luan ","Jiao ","E ","E ","Yu ","Ye ","Bu ","Qiao ","Qun ","Feng ","Feng ","Nao ","Li ","You ","Xian ","Hong ","Dao ","Shen ","Cheng ","Tu ","Geng ","Jun ","Hao ","Xia ","Yin ","Yu "]});var _6=m((aKe,E6)=>{E6.exports=["Lang ","Kan ","Lao ","Lai ","Xian ","Que ","Kong ","Chong ","Chong ","Ta ","Lin ","Hua ","Ju ","Lai ","Qi ","Min ","Kun ","Kun ","Zu ","Gu ","Cui ","Ya ","Ya ","Gang ","Lun ","Lun ","Leng ","Jue ","Duo ","Zheng ","Guo ","Yin ","Dong ","Han ","Zheng ","Wei ","Yao ","Pi ","Yan ","Song ","Jie ","Beng ","Zu ","Jue ","Dong ","Zhan ","Gu ","Yin ","[?] ","Ze ","Huang ","Yu ","Wei ","Yang ","Feng ","Qiu ","Dun ","Ti ","Yi ","Zhi ","Shi ","Zai ","Yao ","E ","Zhu ","Kan ","Lu ","Yan ","Mei ","Gan ","Ji ","Ji ","Huan ","Ting ","Sheng ","Mei ","Qian ","Wu ","Yu ","Zong ","Lan ","Jue ","Yan ","Yan ","Wei ","Zong ","Cha ","Sui ","Rong ","Yamashina ","Qin ","Yu ","Kewashii ","Lou ","Tu ","Dui ","Xi ","Weng ","Cang ","Dang ","Hong ","Jie ","Ai ","Liu ","Wu ","Song ","Qiao ","Zi ","Wei ","Beng ","Dian ","Cuo ","Qian ","Yong ","Nie ","Cuo ","Ji ","[?] ","Tao ","Song ","Zong ","Jiang ","Liao ","Kang ","Chan ","Die ","Cen ","Ding ","Tu ","Lou ","Zhang ","Zhan ","Zhan ","Ao ","Cao ","Qu ","Qiang ","Zui ","Zui ","Dao ","Dao ","Xi ","Yu ","Bo ","Long ","Xiang ","Ceng ","Bo ","Qin ","Jiao ","Yan ","Lao ","Zhan ","Lin ","Liao ","Liao ","Jin ","Deng ","Duo ","Zun ","Jiao ","Gui ","Yao ","Qiao ","Yao ","Jue ","Zhan ","Yi ","Xue ","Nao ","Ye ","Ye ","Yi ","E ","Xian ","Ji ","Xie ","Ke ","Xi ","Di ","Ao ","Zui ","[?] ","Ni ","Rong ","Dao ","Ling ","Za ","Yu ","Yue ","Yin ","[?] ","Jie ","Li ","Sui ","Long ","Long ","Dian ","Ying ","Xi ","Ju ","Chan ","Ying ","Kui ","Yan ","Wei ","Nao ","Quan ","Chao ","Cuan ","Luan ","Dian ","Dian ","[?] ","Yan ","Yan ","Yan ","Nao ","Yan ","Chuan ","Gui ","Chuan ","Zhou ","Huang ","Jing ","Xun ","Chao ","Chao ","Lie ","Gong ","Zuo ","Qiao ","Ju ","Gong ","Kek ","Wu ","Pwu ","Pwu ","Chai ","Qiu ","Qiu ","Ji ","Yi ","Si ","Ba ","Zhi ","Zhao ","Xiang ","Yi ","Jin ","Xun ","Juan ","Phas ","Xun ","Jin ","Fu "]});var R6=m((lKe,P6)=>{P6.exports=["Za ","Bi ","Shi ","Bu ","Ding ","Shuai ","Fan ","Nie ","Shi ","Fen ","Pa ","Zhi ","Xi ","Hu ","Dan ","Wei ","Zhang ","Tang ","Dai ","Ma ","Pei ","Pa ","Tie ","Fu ","Lian ","Zhi ","Zhou ","Bo ","Zhi ","Di ","Mo ","Yi ","Yi ","Ping ","Qia ","Juan ","Ru ","Shuai ","Dai ","Zheng ","Shui ","Qiao ","Zhen ","Shi ","Qun ","Xi ","Bang ","Dai ","Gui ","Chou ","Ping ","Zhang ","Sha ","Wan ","Dai ","Wei ","Chang ","Sha ","Qi ","Ze ","Guo ","Mao ","Du ","Hou ","Zheng ","Xu ","Mi ","Wei ","Wo ","Fu ","Yi ","Bang ","Ping ","Tazuna ","Gong ","Pan ","Huang ","Dao ","Mi ","Jia ","Teng ","Hui ","Zhong ","Shan ","Man ","Mu ","Biao ","Guo ","Ze ","Mu ","Bang ","Zhang ","Jiong ","Chan ","Fu ","Zhi ","Hu ","Fan ","Chuang ","Bi ","Hei ","[?] ","Mi ","Qiao ","Chan ","Fen ","Meng ","Bang ","Chou ","Mie ","Chu ","Jie ","Xian ","Lan ","Gan ","Ping ","Nian ","Qian ","Bing ","Bing ","Xing ","Gan ","Yao ","Huan ","You ","You ","Ji ","Yan ","Pi ","Ting ","Ze ","Guang ","Zhuang ","Mo ","Qing ","Bi ","Qin ","Dun ","Chuang ","Gui ","Ya ","Bai ","Jie ","Xu ","Lu ","Wu ","[?] ","Ku ","Ying ","Di ","Pao ","Dian ","Ya ","Miao ","Geng ","Ci ","Fu ","Tong ","Pang ","Fei ","Xiang ","Yi ","Zhi ","Tiao ","Zhi ","Xiu ","Du ","Zuo ","Xiao ","Tu ","Gui ","Ku ","Pang ","Ting ","You ","Bu ","Ding ","Cheng ","Lai ","Bei ","Ji ","An ","Shu ","Kang ","Yong ","Tuo ","Song ","Shu ","Qing ","Yu ","Yu ","Miao ","Sou ","Ce ","Xiang ","Fei ","Jiu ","He ","Hui ","Liu ","Sha ","Lian ","Lang ","Sou ","Jian ","Pou ","Qing ","Jiu ","Jiu ","Qin ","Ao ","Kuo ","Lou ","Yin ","Liao ","Dai ","Lu ","Yi ","Chu ","Chan ","Tu ","Si ","Xin ","Miao ","Chang ","Wu ","Fei ","Guang ","Koc ","Kuai ","Bi ","Qiang ","Xie ","Lin ","Lin ","Liao ","Lu ","[?] ","Ying ","Xian ","Ting ","Yong ","Li ","Ting ","Yin ","Xun ","Yan ","Ting ","Di ","Po ","Jian ","Hui ","Nai ","Hui ","Gong ","Nian "]});var I6=m((uKe,L6)=>{L6.exports=["Kai ","Bian ","Yi ","Qi ","Nong ","Fen ","Ju ","Yan ","Yi ","Zang ","Bi ","Yi ","Yi ","Er ","San ","Shi ","Er ","Shi ","Shi ","Gong ","Diao ","Yin ","Hu ","Fu ","Hong ","Wu ","Tui ","Chi ","Jiang ","Ba ","Shen ","Di ","Zhang ","Jue ","Tao ","Fu ","Di ","Mi ","Xian ","Hu ","Chao ","Nu ","Jing ","Zhen ","Yi ","Mi ","Quan ","Wan ","Shao ","Ruo ","Xuan ","Jing ","Dun ","Zhang ","Jiang ","Qiang ","Peng ","Dan ","Qiang ","Bi ","Bi ","She ","Dan ","Jian ","Gou ","Sei ","Fa ","Bi ","Kou ","Nagi ","Bie ","Xiao ","Dan ","Kuo ","Qiang ","Hong ","Mi ","Kuo ","Wan ","Jue ","Ji ","Ji ","Gui ","Dang ","Lu ","Lu ","Tuan ","Hui ","Zhi ","Hui ","Hui ","Yi ","Yi ","Yi ","Yi ","Huo ","Huo ","Shan ","Xing ","Wen ","Tong ","Yan ","Yan ","Yu ","Chi ","Cai ","Biao ","Diao ","Bin ","Peng ","Yong ","Piao ","Zhang ","Ying ","Chi ","Chi ","Zhuo ","Tuo ","Ji ","Pang ","Zhong ","Yi ","Wang ","Che ","Bi ","Chi ","Ling ","Fu ","Wang ","Zheng ","Cu ","Wang ","Jing ","Dai ","Xi ","Xun ","Hen ","Yang ","Huai ","Lu ","Hou ","Wa ","Cheng ","Zhi ","Xu ","Jing ","Tu ","Cong ","[?] ","Lai ","Cong ","De ","Pai ","Xi ","[?] ","Qi ","Chang ","Zhi ","Cong ","Zhou ","Lai ","Yu ","Xie ","Jie ","Jian ","Chi ","Jia ","Bian ","Huang ","Fu ","Xun ","Wei ","Pang ","Yao ","Wei ","Xi ","Zheng ","Piao ","Chi ","De ","Zheng ","Zheng ","Bie ","De ","Chong ","Che ","Jiao ","Wei ","Jiao ","Hui ","Mei ","Long ","Xiang ","Bao ","Qu ","Xin ","Shu ","Bi ","Yi ","Le ","Ren ","Dao ","Ding ","Gai ","Ji ","Ren ","Ren ","Chan ","Tan ","Te ","Te ","Gan ","Qi ","Shi ","Cun ","Zhi ","Wang ","Mang ","Xi ","Fan ","Ying ","Tian ","Min ","Min ","Zhong ","Chong ","Wu ","Ji ","Wu ","Xi ","Ye ","You ","Wan ","Cong ","Zhong ","Kuai ","Yu ","Bian ","Zhi ","Qi ","Cui ","Chen ","Tai ","Tun ","Qian ","Nian ","Hun ","Xiong ","Niu ","Wang ","Xian ","Xin ","Kang ","Hu ","Kai ","Fen "]});var F6=m((cKe,j6)=>{j6.exports=["Huai ","Tai ","Song ","Wu ","Ou ","Chang ","Chuang ","Ju ","Yi ","Bao ","Chao ","Min ","Pei ","Zuo ","Zen ","Yang ","Kou ","Ban ","Nu ","Nao ","Zheng ","Pa ","Bu ","Tie ","Gu ","Hu ","Ju ","Da ","Lian ","Si ","Chou ","Di ","Dai ","Yi ","Tu ","You ","Fu ","Ji ","Peng ","Xing ","Yuan ","Ni ","Guai ","Fu ","Xi ","Bi ","You ","Qie ","Xuan ","Cong ","Bing ","Huang ","Xu ","Chu ","Pi ","Xi ","Xi ","Tan ","Koraeru ","Zong ","Dui ","[?] ","Ki ","Yi ","Chi ","Ren ","Xun ","Shi ","Xi ","Lao ","Heng ","Kuang ","Mu ","Zhi ","Xie ","Lian ","Tiao ","Huang ","Die ","Hao ","Kong ","Gui ","Heng ","Xi ","Xiao ","Shu ","S ","Kua ","Qiu ","Yang ","Hui ","Hui ","Chi ","Jia ","Yi ","Xiong ","Guai ","Lin ","Hui ","Zi ","Xu ","Chi ","Xiang ","Nu ","Hen ","En ","Ke ","Tong ","Tian ","Gong ","Quan ","Xi ","Qia ","Yue ","Peng ","Ken ","De ","Hui ","E ","Kyuu ","Tong ","Yan ","Kai ","Ce ","Nao ","Yun ","Mang ","Yong ","Yong ","Yuan ","Pi ","Kun ","Qiao ","Yue ","Yu ","Yu ","Jie ","Xi ","Zhe ","Lin ","Ti ","Han ","Hao ","Qie ","Ti ","Bu ","Yi ","Qian ","Hui ","Xi ","Bei ","Man ","Yi ","Heng ","Song ","Quan ","Cheng ","Hui ","Wu ","Wu ","You ","Li ","Liang ","Huan ","Cong ","Yi ","Yue ","Li ","Nin ","Nao ","E ","Que ","Xuan ","Qian ","Wu ","Min ","Cong ","Fei ","Bei ","Duo ","Cui ","Chang ","Men ","Li ","Ji ","Guan ","Guan ","Xing ","Dao ","Qi ","Kong ","Tian ","Lun ","Xi ","Kan ","Kun ","Ni ","Qing ","Chou ","Dun ","Guo ","Chan ","Liang ","Wan ","Yuan ","Jin ","Ji ","Lin ","Yu ","Huo ","He ","Quan ","Tan ","Ti ","Ti ","Nie ","Wang ","Chuo ","Bu ","Hun ","Xi ","Tang ","Xin ","Wei ","Hui ","E ","Rui ","Zong ","Jian ","Yong ","Dian ","Ju ","Can ","Cheng ","De ","Bei ","Qie ","Can ","Dan ","Guan ","Duo ","Nao ","Yun ","Xiang ","Zhui ","Die ","Huang ","Chun ","Qiong ","Re ","Xing ","Ce ","Bian ","Hun ","Zong ","Ti "]});var M6=m((hKe,O6)=>{O6.exports=["Qiao ","Chou ","Bei ","Xuan ","Wei ","Ge ","Qian ","Wei ","Yu ","Yu ","Bi ","Xuan ","Huan ","Min ","Bi ","Yi ","Mian ","Yong ","Kai ","Dang ","Yin ","E ","Chen ","Mou ","Ke ","Ke ","Yu ","Ai ","Qie ","Yan ","Nuo ","Gan ","Yun ","Zong ","Sai ","Leng ","Fen ","[?] ","Kui ","Kui ","Que ","Gong ","Yun ","Su ","Su ","Qi ","Yao ","Song ","Huang ","Ji ","Gu ","Ju ","Chuang ","Ni ","Xie ","Kai ","Zheng ","Yong ","Cao ","Sun ","Shen ","Bo ","Kai ","Yuan ","Xie ","Hun ","Yong ","Yang ","Li ","Sao ","Tao ","Yin ","Ci ","Xu ","Qian ","Tai ","Huang ","Yun ","Shen ","Ming ","[?] ","She ","Cong ","Piao ","Mo ","Mu ","Guo ","Chi ","Can ","Can ","Can ","Cui ","Min ","Te ","Zhang ","Tong ","Ao ","Shuang ","Man ","Guan ","Que ","Zao ","Jiu ","Hui ","Kai ","Lian ","Ou ","Song ","Jin ","Yin ","Lu ","Shang ","Wei ","Tuan ","Man ","Qian ","She ","Yong ","Qing ","Kang ","Di ","Zhi ","Lou ","Juan ","Qi ","Qi ","Yu ","Ping ","Liao ","Cong ","You ","Chong ","Zhi ","Tong ","Cheng ","Qi ","Qu ","Peng ","Bei ","Bie ","Chun ","Jiao ","Zeng ","Chi ","Lian ","Ping ","Kui ","Hui ","Qiao ","Cheng ","Yin ","Yin ","Xi ","Xi ","Dan ","Tan ","Duo ","Dui ","Dui ","Su ","Jue ","Ce ","Xiao ","Fan ","Fen ","Lao ","Lao ","Chong ","Han ","Qi ","Xian ","Min ","Jing ","Liao ","Wu ","Can ","Jue ","Cu ","Xian ","Tan ","Sheng ","Pi ","Yi ","Chu ","Xian ","Nao ","Dan ","Tan ","Jing ","Song ","Han ","Jiao ","Wai ","Huan ","Dong ","Qin ","Qin ","Qu ","Cao ","Ken ","Xie ","Ying ","Ao ","Mao ","Yi ","Lin ","Se ","Jun ","Huai ","Men ","Lan ","Ai ","Lin ","Yan ","Gua ","Xia ","Chi ","Yu ","Yin ","Dai ","Meng ","Ai ","Meng ","Dui ","Qi ","Mo ","Lan ","Men ","Chou ","Zhi ","Nuo ","Nuo ","Yan ","Yang ","Bo ","Zhi ","Kuang ","Kuang ","You ","Fu ","Liu ","Mie ","Cheng ","[?] ","Chan ","Meng ","Lan ","Huai ","Xuan ","Rang ","Chan ","Ji ","Ju ","Huan ","She ","Yi "]});var N6=m((dKe,A6)=>{A6.exports=["Lian ","Nan ","Mi ","Tang ","Jue ","Gang ","Gang ","Gang ","Ge ","Yue ","Wu ","Jian ","Xu ","Shu ","Rong ","Xi ","Cheng ","Wo ","Jie ","Ge ","Jian ","Qiang ","Huo ","Qiang ","Zhan ","Dong ","Qi ","Jia ","Die ","Zei ","Jia ","Ji ","Shi ","Kan ","Ji ","Kui ","Gai ","Deng ","Zhan ","Chuang ","Ge ","Jian ","Jie ","Yu ","Jian ","Yan ","Lu ","Xi ","Zhan ","Xi ","Xi ","Chuo ","Dai ","Qu ","Hu ","Hu ","Hu ","E ","Shi ","Li ","Mao ","Hu ","Li ","Fang ","Suo ","Bian ","Dian ","Jiong ","Shang ","Yi ","Yi ","Shan ","Hu ","Fei ","Yan ","Shou ","T ","Cai ","Zha ","Qiu ","Le ","Bu ","Ba ","Da ","Reng ","Fu ","Hameru ","Zai ","Tuo ","Zhang ","Diao ","Kang ","Yu ","Ku ","Han ","Shen ","Cha ","Yi ","Gu ","Kou ","Wu ","Tuo ","Qian ","Zhi ","Ren ","Kuo ","Men ","Sao ","Yang ","Niu ","Ban ","Che ","Rao ","Xi ","Qian ","Ban ","Jia ","Yu ","Fu ","Ao ","Xi ","Pi ","Zhi ","Zi ","E ","Dun ","Zhao ","Cheng ","Ji ","Yan ","Kuang ","Bian ","Chao ","Ju ","Wen ","Hu ","Yue ","Jue ","Ba ","Qin ","Zhen ","Zheng ","Yun ","Wan ","Nu ","Yi ","Shu ","Zhua ","Pou ","Tou ","Dou ","Kang ","Zhe ","Pou ","Fu ","Pao ","Ba ","Ao ","Ze ","Tuan ","Kou ","Lun ","Qiang ","[?] ","Hu ","Bao ","Bing ","Zhi ","Peng ","Tan ","Pu ","Pi ","Tai ","Yao ","Zhen ","Zha ","Yang ","Bao ","He ","Ni ","Yi ","Di ","Chi ","Pi ","Za ","Mo ","Mo ","Shen ","Ya ","Chou ","Qu ","Min ","Chu ","Jia ","Fu ","Zhan ","Zhu ","Dan ","Chai ","Mu ","Nian ","La ","Fu ","Pao ","Ban ","Pai ","Ling ","Na ","Guai ","Qian ","Ju ","Tuo ","Ba ","Tuo ","Tuo ","Ao ","Ju ","Zhuo ","Pan ","Zhao ","Bai ","Bai ","Di ","Ni ","Ju ","Kuo ","Long ","Jian ","[?] ","Yong ","Lan ","Ning ","Bo ","Ze ","Qian ","Hen ","Gua ","Shi ","Jie ","Zheng ","Nin ","Gong ","Gong ","Quan ","Shuan ","Cun ","Zan ","Kao ","Chi ","Xie ","Ce ","Hui ","Pin ","Zhuai ","Shi ","Na "]});var q6=m((gKe,H6)=>{H6.exports=["Bo ","Chi ","Gua ","Zhi ","Kuo ","Duo ","Duo ","Zhi ","Qie ","An ","Nong ","Zhen ","Ge ","Jiao ","Ku ","Dong ","Ru ","Tiao ","Lie ","Zha ","Lu ","Die ","Wa ","Jue ","Mushiru ","Ju ","Zhi ","Luan ","Ya ","Zhua ","Ta ","Xie ","Nao ","Dang ","Jiao ","Zheng ","Ji ","Hui ","Xun ","Ku ","Ai ","Tuo ","Nuo ","Cuo ","Bo ","Geng ","Ti ","Zhen ","Cheng ","Suo ","Suo ","Keng ","Mei ","Long ","Ju ","Peng ","Jian ","Yi ","Ting ","Shan ","Nuo ","Wan ","Xie ","Cha ","Feng ","Jiao ","Wu ","Jun ","Jiu ","Tong ","Kun ","Huo ","Tu ","Zhuo ","Pou ","Le ","Ba ","Han ","Shao ","Nie ","Juan ","Ze ","Song ","Ye ","Jue ","Bu ","Huan ","Bu ","Zun ","Yi ","Zhai ","Lu ","Sou ","Tuo ","Lao ","Sun ","Bang ","Jian ","Huan ","Dao ","[?] ","Wan ","Qin ","Peng ","She ","Lie ","Min ","Men ","Fu ","Bai ","Ju ","Dao ","Wo ","Ai ","Juan ","Yue ","Zong ","Chen ","Chui ","Jie ","Tu ","Ben ","Na ","Nian ","Nuo ","Zu ","Wo ","Xi ","Xian ","Cheng ","Dian ","Sao ","Lun ","Qing ","Gang ","Duo ","Shou ","Diao ","Pou ","Di ","Zhang ","Gun ","Ji ","Tao ","Qia ","Qi ","Pai ","Shu ","Qian ","Ling ","Yi ","Ya ","Jue ","Zheng ","Liang ","Gua ","Yi ","Huo ","Shan ","Zheng ","Lue ","Cai ","Tan ","Che ","Bing ","Jie ","Ti ","Kong ","Tui ","Yan ","Cuo ","Zou ","Ju ","Tian ","Qian ","Ken ","Bai ","Shou ","Jie ","Lu ","Guo ","Haba ","[?] ","Zhi ","Dan ","Mang ","Xian ","Sao ","Guan ","Peng ","Yuan ","Nuo ","Jian ","Zhen ","Jiu ","Jian ","Yu ","Yan ","Kui ","Nan ","Hong ","Rou ","Pi ","Wei ","Sai ","Zou ","Xuan ","Miao ","Ti ","Nie ","Cha ","Shi ","Zong ","Zhen ","Yi ","Shun ","Heng ","Bian ","Yang ","Huan ","Yan ","Zuan ","An ","Xu ","Ya ","Wo ","Ke ","Chuai ","Ji ","Ti ","La ","La ","Cheng ","Kai ","Jiu ","Jiu ","Tu ","Jie ","Hui ","Geng ","Chong ","Shuo ","She ","Xie ","Yuan ","Qian ","Ye ","Cha ","Zha ","Bei ","Yao ","[?] ","[?] ","Lan ","Wen ","Qin "]});var Y6=m((fKe,B6)=>{B6.exports=["Chan ","Ge ","Lou ","Zong ","Geng ","Jiao ","Gou ","Qin ","Yong ","Que ","Chou ","Chi ","Zhan ","Sun ","Sun ","Bo ","Chu ","Rong ","Beng ","Cuo ","Sao ","Ke ","Yao ","Dao ","Zhi ","Nu ","Xie ","Jian ","Sou ","Qiu ","Gao ","Xian ","Shuo ","Sang ","Jin ","Mie ","E ","Chui ","Nuo ","Shan ","Ta ","Jie ","Tang ","Pan ","Ban ","Da ","Li ","Tao ","Hu ","Zhi ","Wa ","Xia ","Qian ","Wen ","Qiang ","Tian ","Zhen ","E ","Xi ","Nuo ","Quan ","Cha ","Zha ","Ge ","Wu ","En ","She ","Kang ","She ","Shu ","Bai ","Yao ","Bin ","Sou ","Tan ","Sa ","Chan ","Suo ","Liao ","Chong ","Chuang ","Guo ","Bing ","Feng ","Shuai ","Di ","Qi ","Sou ","Zhai ","Lian ","Tang ","Chi ","Guan ","Lu ","Luo ","Lou ","Zong ","Gai ","Hu ","Zha ","Chuang ","Tang ","Hua ","Cui ","Nai ","Mo ","Jiang ","Gui ","Ying ","Zhi ","Ao ","Zhi ","Nie ","Man ","Shan ","Kou ","Shu ","Suo ","Tuan ","Jiao ","Mo ","Mo ","Zhe ","Xian ","Keng ","Piao ","Jiang ","Yin ","Gou ","Qian ","Lue ","Ji ","Ying ","Jue ","Pie ","Pie ","Lao ","Dun ","Xian ","Ruan ","Kui ","Zan ","Yi ","Xun ","Cheng ","Cheng ","Sa ","Nao ","Heng ","Si ","Qian ","Huang ","Da ","Zun ","Nian ","Lin ","Zheng ","Hui ","Zhuang ","Jiao ","Ji ","Cao ","Dan ","Dan ","Che ","Bo ","Che ","Jue ","Xiao ","Liao ","Ben ","Fu ","Qiao ","Bo ","Cuo ","Zhuo ","Zhuan ","Tuo ","Pu ","Qin ","Dun ","Nian ","[?] ","Xie ","Lu ","Jiao ","Cuan ","Ta ","Han ","Qiao ","Zhua ","Jian ","Gan ","Yong ","Lei ","Kuo ","Lu ","Shan ","Zhuo ","Ze ","Pu ","Chuo ","Ji ","Dang ","Suo ","Cao ","Qing ","Jing ","Huan ","Jie ","Qin ","Kuai ","Dan ","Xi ","Ge ","Pi ","Bo ","Ao ","Ju ","Ye ","[?] ","Mang ","Sou ","Mi ","Ji ","Tai ","Zhuo ","Dao ","Xing ","Lan ","Ca ","Ju ","Ye ","Ru ","Ye ","Ye ","Ni ","Hu ","Ji ","Bin ","Ning ","Ge ","Zhi ","Jie ","Kuo ","Mo ","Jian ","Xie ","Lie ","Tan ","Bai ","Sou ","Lu ","Lue ","Rao ","Zhi "]});var Z6=m((pKe,W6)=>{W6.exports=["Pan ","Yang ","Lei ","Sa ","Shu ","Zan ","Nian ","Xian ","Jun ","Huo ","Li ","La ","Han ","Ying ","Lu ","Long ","Qian ","Qian ","Zan ","Qian ","Lan ","San ","Ying ","Mei ","Rang ","Chan ","[?] ","Cuan ","Xi ","She ","Luo ","Jun ","Mi ","Li ","Zan ","Luan ","Tan ","Zuan ","Li ","Dian ","Wa ","Dang ","Jiao ","Jue ","Lan ","Li ","Nang ","Zhi ","Gui ","Gui ","Qi ","Xin ","Pu ","Sui ","Shou ","Kao ","You ","Gai ","Yi ","Gong ","Gan ","Ban ","Fang ","Zheng ","Bo ","Dian ","Kou ","Min ","Wu ","Gu ","He ","Ce ","Xiao ","Mi ","Chu ","Ge ","Di ","Xu ","Jiao ","Min ","Chen ","Jiu ","Zhen ","Duo ","Yu ","Chi ","Ao ","Bai ","Xu ","Jiao ","Duo ","Lian ","Nie ","Bi ","Chang ","Dian ","Duo ","Yi ","Gan ","San ","Ke ","Yan ","Dun ","Qi ","Dou ","Xiao ","Duo ","Jiao ","Jing ","Yang ","Xia ","Min ","Shu ","Ai ","Qiao ","Ai ","Zheng ","Di ","Zhen ","Fu ","Shu ","Liao ","Qu ","Xiong ","Xi ","Jiao ","Sen ","Jiao ","Zhuo ","Yi ","Lian ","Bi ","Li ","Xiao ","Xiao ","Wen ","Xue ","Qi ","Qi ","Zhai ","Bin ","Jue ","Zhai ","[?] ","Fei ","Ban ","Ban ","Lan ","Yu ","Lan ","Wei ","Dou ","Sheng ","Liao ","Jia ","Hu ","Xie ","Jia ","Yu ","Zhen ","Jiao ","Wo ","Tou ","Chu ","Jin ","Chi ","Yin ","Fu ","Qiang ","Zhan ","Qu ","Zhuo ","Zhan ","Duan ","Zhuo ","Si ","Xin ","Zhuo ","Zhuo ","Qin ","Lin ","Zhuo ","Chu ","Duan ","Zhu ","Fang ","Xie ","Hang ","Yu ","Shi ","Pei ","You ","Mye ","Pang ","Qi ","Zhan ","Mao ","Lu ","Pei ","Pi ","Liu ","Fu ","Fang ","Xuan ","Jing ","Jing ","Ni ","Zu ","Zhao ","Yi ","Liu ","Shao ","Jian ","Es ","Yi ","Qi ","Zhi ","Fan ","Piao ","Fan ","Zhan ","Guai ","Sui ","Yu ","Wu ","Ji ","Ji ","Ji ","Huo ","Ri ","Dan ","Jiu ","Zhi ","Zao ","Xie ","Tiao ","Xun ","Xu ","Xu ","Xu ","Gan ","Han ","Tai ","Di ","Xu ","Chan ","Shi ","Kuang ","Yang ","Shi ","Wang ","Min ","Min ","Tun ","Chun ","Wu "]});var $6=m((mKe,J6)=>{J6.exports=["Yun ","Bei ","Ang ","Ze ","Ban ","Jie ","Kun ","Sheng ","Hu ","Fang ","Hao ","Gui ","Chang ","Xuan ","Ming ","Hun ","Fen ","Qin ","Hu ","Yi ","Xi ","Xin ","Yan ","Ze ","Fang ","Tan ","Shen ","Ju ","Yang ","Zan ","Bing ","Xing ","Ying ","Xuan ","Pei ","Zhen ","Ling ","Chun ","Hao ","Mei ","Zuo ","Mo ","Bian ","Xu ","Hun ","Zhao ","Zong ","Shi ","Shi ","Yu ","Fei ","Die ","Mao ","Ni ","Chang ","Wen ","Dong ","Ai ","Bing ","Ang ","Zhou ","Long ","Xian ","Kuang ","Tiao ","Chao ","Shi ","Huang ","Huang ","Xuan ","Kui ","Xu ","Jiao ","Jin ","Zhi ","Jin ","Shang ","Tong ","Hong ","Yan ","Gai ","Xiang ","Shai ","Xiao ","Ye ","Yun ","Hui ","Han ","Han ","Jun ","Wan ","Xian ","Kun ","Zhou ","Xi ","Cheng ","Sheng ","Bu ","Zhe ","Zhe ","Wu ","Han ","Hui ","Hao ","Chen ","Wan ","Tian ","Zhuo ","Zui ","Zhou ","Pu ","Jing ","Xi ","Shan ","Yi ","Xi ","Qing ","Qi ","Jing ","Gui ","Zhen ","Yi ","Zhi ","An ","Wan ","Lin ","Liang ","Chang ","Wang ","Xiao ","Zan ","Hi ","Xuan ","Xuan ","Yi ","Xia ","Yun ","Hui ","Fu ","Min ","Kui ","He ","Ying ","Du ","Wei ","Shu ","Qing ","Mao ","Nan ","Jian ","Nuan ","An ","Yang ","Chun ","Yao ","Suo ","Jin ","Ming ","Jiao ","Kai ","Gao ","Weng ","Chang ","Qi ","Hao ","Yan ","Li ","Ai ","Ji ","Gui ","Men ","Zan ","Xie ","Hao ","Mu ","Mo ","Cong ","Ni ","Zhang ","Hui ","Bao ","Han ","Xuan ","Chuan ","Liao ","Xian ","Dan ","Jing ","Pie ","Lin ","Tun ","Xi ","Yi ","Ji ","Huang ","Tai ","Ye ","Ye ","Li ","Tan ","Tong ","Xiao ","Fei ","Qin ","Zhao ","Hao ","Yi ","Xiang ","Xing ","Sen ","Jiao ","Bao ","Jing ","Yian ","Ai ","Ye ","Ru ","Shu ","Meng ","Xun ","Yao ","Pu ","Li ","Chen ","Kuang ","Die ","[?] ","Yan ","Huo ","Lu ","Xi ","Rong ","Long ","Nang ","Luo ","Luan ","Shai ","Tang ","Yan ","Chu ","Yue ","Yue ","Qu ","Yi ","Geng ","Ye ","Hu ","He ","Shu ","Cao ","Cao ","Noboru ","Man ","Ceng ","Ceng ","Ti "]});var U6=m((bKe,X6)=>{X6.exports=["Zui ","Can ","Xu ","Hui ","Yin ","Qie ","Fen ","Pi ","Yue ","You ","Ruan ","Peng ","Ban ","Fu ","Ling ","Fei ","Qu ","[?] ","Nu ","Tiao ","Shuo ","Zhen ","Lang ","Lang ","Juan ","Ming ","Huang ","Wang ","Tun ","Zhao ","Ji ","Qi ","Ying ","Zong ","Wang ","Tong ","Lang ","[?] ","Meng ","Long ","Mu ","Deng ","Wei ","Mo ","Ben ","Zha ","Zhu ","Zhu ","[?] ","Zhu ","Ren ","Ba ","Po ","Duo ","Duo ","Dao ","Li ","Qiu ","Ji ","Jiu ","Bi ","Xiu ","Ting ","Ci ","Sha ","Eburi ","Za ","Quan ","Qian ","Yu ","Gan ","Wu ","Cha ","Shan ","Xun ","Fan ","Wu ","Zi ","Li ","Xing ","Cai ","Cun ","Ren ","Shao ","Tuo ","Di ","Zhang ","Mang ","Chi ","Yi ","Gu ","Gong ","Du ","Yi ","Qi ","Shu ","Gang ","Tiao ","Moku ","Soma ","Tochi ","Lai ","Sugi ","Mang ","Yang ","Ma ","Miao ","Si ","Yuan ","Hang ","Fei ","Bei ","Jie ","Dong ","Gao ","Yao ","Xian ","Chu ","Qun ","Pa ","Shu ","Hua ","Xin ","Chou ","Zhu ","Chou ","Song ","Ban ","Song ","Ji ","Yue ","Jin ","Gou ","Ji ","Mao ","Pi ","Bi ","Wang ","Ang ","Fang ","Fen ","Yi ","Fu ","Nan ","Xi ","Hu ","Ya ","Dou ","Xun ","Zhen ","Yao ","Lin ","Rui ","E ","Mei ","Zhao ","Guo ","Zhi ","Cong ","Yun ","Waku ","Dou ","Shu ","Zao ","[?] ","Li ","Haze ","Jian ","Cheng ","Matsu ","Qiang ","Feng ","Nan ","Xiao ","Xian ","Ku ","Ping ","Yi ","Xi ","Zhi ","Guai ","Xiao ","Jia ","Jia ","Gou ","Fu ","Mo ","Yi ","Ye ","Ye ","Shi ","Nie ","Bi ","Duo ","Yi ","Ling ","Bing ","Ni ","La ","He ","Pan ","Fan ","Zhong ","Dai ","Ci ","Yang ","Fu ","Bo ","Mou ","Gan ","Qi ","Ran ","Rou ","Mao ","Zhao ","Song ","Zhe ","Xia ","You ","Shen ","Ju ","Tuo ","Zuo ","Nan ","Ning ","Yong ","Di ","Zhi ","Zha ","Cha ","Dan ","Gu ","Pu ","Jiu ","Ao ","Fu ","Jian ","Bo ","Duo ","Ke ","Nai ","Zhu ","Bi ","Liu ","Chai ","Zha ","Si ","Zhu ","Pei ","Shi ","Guai ","Cha ","Yao ","Jue ","Jiu ","Shi "]});var K6=m((yKe,G6)=>{G6.exports=["Zhi ","Liu ","Mei ","Hoy ","Rong ","Zha ","[?] ","Biao ","Zhan ","Jie ","Long ","Dong ","Lu ","Sayng ","Li ","Lan ","Yong ","Shu ","Xun ","Shuan ","Qi ","Zhen ","Qi ","Li ","Yi ","Xiang ","Zhen ","Li ","Su ","Gua ","Kan ","Bing ","Ren ","Xiao ","Bo ","Ren ","Bing ","Zi ","Chou ","Yi ","Jie ","Xu ","Zhu ","Jian ","Zui ","Er ","Er ","You ","Fa ","Gong ","Kao ","Lao ","Zhan ","Li ","Yin ","Yang ","He ","Gen ","Zhi ","Chi ","Ge ","Zai ","Luan ","Fu ","Jie ","Hang ","Gui ","Tao ","Guang ","Wei ","Kuang ","Ru ","An ","An ","Juan ","Yi ","Zhuo ","Ku ","Zhi ","Qiong ","Tong ","Sang ","Sang ","Huan ","Jie ","Jiu ","Xue ","Duo ","Zhui ","Yu ","Zan ","Kasei ","Ying ","Masu ","[?] ","Zhan ","Ya ","Nao ","Zhen ","Dang ","Qi ","Qiao ","Hua ","Kuai ","Jiang ","Zhuang ","Xun ","Suo ","Sha ","Zhen ","Bei ","Ting ","Gua ","Jing ","Bo ","Ben ","Fu ","Rui ","Tong ","Jue ","Xi ","Lang ","Liu ","Feng ","Qi ","Wen ","Jun ","Gan ","Cu ","Liang ","Qiu ","Ting ","You ","Mei ","Bang ","Long ","Peng ","Zhuang ","Di ","Xuan ","Tu ","Zao ","Ao ","Gu ","Bi ","Di ","Han ","Zi ","Zhi ","Ren ","Bei ","Geng ","Jian ","Huan ","Wan ","Nuo ","Jia ","Tiao ","Ji ","Xiao ","Lu ","Huan ","Shao ","Cen ","Fen ","Song ","Meng ","Wu ","Li ","Li ","Dou ","Cen ","Ying ","Suo ","Ju ","Ti ","Jie ","Kun ","Zhuo ","Shu ","Chan ","Fan ","Wei ","Jing ","Li ","Bing ","Fumoto ","Shikimi ","Tao ","Zhi ","Lai ","Lian ","Jian ","Zhuo ","Ling ","Li ","Qi ","Bing ","Zhun ","Cong ","Qian ","Mian ","Qi ","Qi ","Cai ","Gun ","Chan ","Te ","Fei ","Pai ","Bang ","Pou ","Hun ","Zong ","Cheng ","Zao ","Ji ","Li ","Peng ","Yu ","Yu ","Gu ","Hun ","Dong ","Tang ","Gang ","Wang ","Di ","Xi ","Fan ","Cheng ","Zhan ","Qi ","Yuan ","Yan ","Yu ","Quan ","Yi ","Sen ","Ren ","Chui ","Leng ","Qi ","Zhuo ","Fu ","Ke ","Lai ","Zou ","Zou ","Zhuo ","Guan ","Fen ","Fen ","Chen ","Qiong ","Nie "]});var Q6=m((vKe,z6)=>{z6.exports=["Wan ","Guo ","Lu ","Hao ","Jie ","Yi ","Chou ","Ju ","Ju ","Cheng ","Zuo ","Liang ","Qiang ","Zhi ","Zhui ","Ya ","Ju ","Bei ","Jiao ","Zhuo ","Zi ","Bin ","Peng ","Ding ","Chu ","Chang ","Kunugi ","Momiji ","Jian ","Gui ","Xi ","Du ","Qian ","Kunugi ","Soko ","Shide ","Luo ","Zhi ","Ken ","Myeng ","Tafu ","[?] ","Peng ","Zhan ","[?] ","Tuo ","Sen ","Duo ","Ye ","Fou ","Wei ","Wei ","Duan ","Jia ","Zong ","Jian ","Yi ","Shen ","Xi ","Yan ","Yan ","Chuan ","Zhan ","Chun ","Yu ","He ","Zha ","Wo ","Pian ","Bi ","Yao ","Huo ","Xu ","Ruo ","Yang ","La ","Yan ","Ben ","Hun ","Kui ","Jie ","Kui ","Si ","Feng ","Xie ","Tuo ","Zhi ","Jian ","Mu ","Mao ","Chu ","Hu ","Hu ","Lian ","Leng ","Ting ","Nan ","Yu ","You ","Mei ","Song ","Xuan ","Xuan ","Ying ","Zhen ","Pian ","Ye ","Ji ","Jie ","Ye ","Chu ","Shun ","Yu ","Cou ","Wei ","Mei ","Di ","Ji ","Jie ","Kai ","Qiu ","Ying ","Rou ","Heng ","Lou ","Le ","Hazou ","Katsura ","Pin ","Muro ","Gai ","Tan ","Lan ","Yun ","Yu ","Chen ","Lu ","Ju ","Sakaki ","[?] ","Pi ","Xie ","Jia ","Yi ","Zhan ","Fu ","Nai ","Mi ","Lang ","Rong ","Gu ","Jian ","Ju ","Ta ","Yao ","Zhen ","Bang ","Sha ","Yuan ","Zi ","Ming ","Su ","Jia ","Yao ","Jie ","Huang ","Gan ","Fei ","Zha ","Qian ","Ma ","Sun ","Yuan ","Xie ","Rong ","Shi ","Zhi ","Cui ","Yun ","Ting ","Liu ","Rong ","Tang ","Que ","Zhai ","Si ","Sheng ","Ta ","Ke ","Xi ","Gu ","Qi ","Kao ","Gao ","Sun ","Pan ","Tao ","Ge ","Xun ","Dian ","Nou ","Ji ","Shuo ","Gou ","Chui ","Qiang ","Cha ","Qian ","Huai ","Mei ","Xu ","Gang ","Gao ","Zhuo ","Tuo ","Hashi ","Yang ","Dian ","Jia ","Jian ","Zui ","Kashi ","Ori ","Bin ","Zhu ","[?] ","Xi ","Qi ","Lian ","Hui ","Yong ","Qian ","Guo ","Gai ","Gai ","Tuan ","Hua ","Cu ","Sen ","Cui ","Beng ","You ","Hu ","Jiang ","Hu ","Huan ","Kui ","Yi ","Nie ","Gao ","Kang ","Gui ","Gui ","Cao ","Man ","Jin "]});var e8=m((wKe,V6)=>{V6.exports=["Di ","Zhuang ","Le ","Lang ","Chen ","Cong ","Li ","Xiu ","Qing ","Shuang ","Fan ","Tong ","Guan ","Ji ","Suo ","Lei ","Lu ","Liang ","Mi ","Lou ","Chao ","Su ","Ke ","Shu ","Tang ","Biao ","Lu ","Jiu ","Shu ","Zha ","Shu ","Zhang ","Men ","Mo ","Niao ","Yang ","Tiao ","Peng ","Zhu ","Sha ","Xi ","Quan ","Heng ","Jian ","Cong ","[?] ","Hokuso ","Qiang ","Tara ","Ying ","Er ","Xin ","Zhi ","Qiao ","Zui ","Cong ","Pu ","Shu ","Hua ","Kui ","Zhen ","Zun ","Yue ","Zhan ","Xi ","Xun ","Dian ","Fa ","Gan ","Mo ","Wu ","Qiao ","Nao ","Lin ","Liu ","Qiao ","Xian ","Run ","Fan ","Zhan ","Tuo ","Lao ","Yun ","Shun ","Tui ","Cheng ","Tang ","Meng ","Ju ","Cheng ","Su ","Jue ","Jue ","Tan ","Hui ","Ji ","Nuo ","Xiang ","Tuo ","Ning ","Rui ","Zhu ","Chuang ","Zeng ","Fen ","Qiong ","Ran ","Heng ","Cen ","Gu ","Liu ","Lao ","Gao ","Chu ","Zusa ","Nude ","Ca ","San ","Ji ","Dou ","Shou ","Lu ","[?] ","[?] ","Yuan ","Ta ","Shu ","Jiang ","Tan ","Lin ","Nong ","Yin ","Xi ","Sui ","Shan ","Zui ","Xuan ","Cheng ","Gan ","Ju ","Zui ","Yi ","Qin ","Pu ","Yan ","Lei ","Feng ","Hui ","Dang ","Ji ","Sui ","Bo ","Bi ","Ding ","Chu ","Zhua ","Kuai ","Ji ","Jie ","Jia ","Qing ","Zhe ","Jian ","Qiang ","Dao ","Yi ","Biao ","Song ","She ","Lin ","Kunugi ","Cha ","Meng ","Yin ","Tao ","Tai ","Mian ","Qi ","Toan ","Bin ","Huo ","Ji ","Qian ","Mi ","Ning ","Yi ","Gao ","Jian ","Yin ","Er ","Qing ","Yan ","Qi ","Mi ","Zhao ","Gui ","Chun ","Ji ","Kui ","Po ","Deng ","Chu ","[?] ","Mian ","You ","Zhi ","Guang ","Qian ","Lei ","Lei ","Sa ","Lu ","Li ","Cuan ","Lu ","Mie ","Hui ","Ou ","Lu ","Jie ","Gao ","Du ","Yuan ","Li ","Fei ","Zhuo ","Sou ","Lian ","Tamo ","Chu ","[?] ","Zhu ","Lu ","Yan ","Li ","Zhu ","Chen ","Jie ","E ","Su ","Huai ","Nie ","Yu ","Long ","Lai ","[?] ","Xian ","Kwi ","Ju ","Xiao ","Ling ","Ying ","Jian ","Yin ","You ","Ying "]});var i8=m((xKe,t8)=>{t8.exports=["Xiang ","Nong ","Bo ","Chan ","Lan ","Ju ","Shuang ","She ","Wei ","Cong ","Quan ","Qu ","Cang ","[?] ","Yu ","Luo ","Li ","Zan ","Luan ","Dang ","Jue ","Em ","Lan ","Lan ","Zhu ","Lei ","Li ","Ba ","Nang ","Yu ","Ling ","Tsuki ","Qian ","Ci ","Huan ","Xin ","Yu ","Yu ","Qian ","Ou ","Xu ","Chao ","Chu ","Chi ","Kai ","Yi ","Jue ","Xi ","Xu ","Xia ","Yu ","Kuai ","Lang ","Kuan ","Shuo ","Xi ","Ai ","Yi ","Qi ","Hu ","Chi ","Qin ","Kuan ","Kan ","Kuan ","Kan ","Chuan ","Sha ","Gua ","Yin ","Xin ","Xie ","Yu ","Qian ","Xiao ","Yi ","Ge ","Wu ","Tan ","Jin ","Ou ","Hu ","Ti ","Huan ","Xu ","Pen ","Xi ","Xiao ","Xu ","Xi ","Sen ","Lian ","Chu ","Yi ","Kan ","Yu ","Chuo ","Huan ","Zhi ","Zheng ","Ci ","Bu ","Wu ","Qi ","Bu ","Bu ","Wai ","Ju ","Qian ","Chi ","Se ","Chi ","Se ","Zhong ","Sui ","Sui ","Li ","Cuo ","Yu ","Li ","Gui ","Dai ","Dai ","Si ","Jian ","Zhe ","Mo ","Mo ","Yao ","Mo ","Cu ","Yang ","Tian ","Sheng ","Dai ","Shang ","Xu ","Xun ","Shu ","Can ","Jue ","Piao ","Qia ","Qiu ","Su ","Qing ","Yun ","Lian ","Yi ","Fou ","Zhi ","Ye ","Can ","Hun ","Dan ","Ji ","Ye ","Zhen ","Yun ","Wen ","Chou ","Bin ","Ti ","Jin ","Shang ","Yin ","Diao ","Cu ","Hui ","Cuan ","Yi ","Dan ","Du ","Jiang ","Lian ","Bin ","Du ","Tsukusu ","Jian ","Shu ","Ou ","Duan ","Zhu ","Yin ","Qing ","Yi ","Sha ","Que ","Ke ","Yao ","Jun ","Dian ","Hui ","Hui ","Gu ","Que ","Ji ","Yi ","Ou ","Hui ","Duan ","Yi ","Xiao ","Wu ","Guan ","Mu ","Mei ","Mei ","Ai ","Zuo ","Du ","Yu ","Bi ","Bi ","Bi ","Pi ","Pi ","Bi ","Chan ","Mao ","[?] ","[?] ","Pu ","Mushiru ","Jia ","Zhan ","Sai ","Mu ","Tuo ","Xun ","Er ","Rong ","Xian ","Ju ","Mu ","Hao ","Qiu ","Dou ","Mushiru ","Tan ","Pei ","Ju ","Duo ","Cui ","Bi ","San ","[?] ","Mao ","Sui ","Yu ","Yu ","Tuo ","He ","Jian ","Ta ","San "]});var r8=m((CKe,n8)=>{n8.exports=["Lu ","Mu ","Li ","Tong ","Rong ","Chang ","Pu ","Luo ","Zhan ","Sao ","Zhan ","Meng ","Luo ","Qu ","Die ","Shi ","Di ","Min ","Jue ","Mang ","Qi ","Pie ","Nai ","Qi ","Dao ","Xian ","Chuan ","Fen ","Ri ","Nei ","[?] ","Fu ","Shen ","Dong ","Qing ","Qi ","Yin ","Xi ","Hai ","Yang ","An ","Ya ","Ke ","Qing ","Ya ","Dong ","Dan ","Lu ","Qing ","Yang ","Yun ","Yun ","Shui ","San ","Zheng ","Bing ","Yong ","Dang ","Shitamizu ","Le ","Ni ","Tun ","Fan ","Gui ","Ting ","Zhi ","Qiu ","Bin ","Ze ","Mian ","Cuan ","Hui ","Diao ","Yi ","Cha ","Zhuo ","Chuan ","Wan ","Fan ","Dai ","Xi ","Tuo ","Mang ","Qiu ","Qi ","Shan ","Pai ","Han ","Qian ","Wu ","Wu ","Xun ","Si ","Ru ","Gong ","Jiang ","Chi ","Wu ","Tsuchi ","[?] ","Tang ","Zhi ","Chi ","Qian ","Mi ","Yu ","Wang ","Qing ","Jing ","Rui ","Jun ","Hong ","Tai ","Quan ","Ji ","Bian ","Bian ","Gan ","Wen ","Zhong ","Fang ","Xiong ","Jue ","Hang ","Niou ","Qi ","Fen ","Xu ","Xu ","Qin ","Yi ","Wo ","Yun ","Yuan ","Hang ","Yan ","Chen ","Chen ","Dan ","You ","Dun ","Hu ","Huo ","Qie ","Mu ","Rou ","Mei ","Ta ","Mian ","Wu ","Chong ","Tian ","Bi ","Sha ","Zhi ","Pei ","Pan ","Zhui ","Za ","Gou ","Liu ","Mei ","Ze ","Feng ","Ou ","Li ","Lun ","Cang ","Feng ","Wei ","Hu ","Mo ","Mei ","Shu ","Ju ","Zan ","Tuo ","Tuo ","Tuo ","He ","Li ","Mi ","Yi ","Fa ","Fei ","You ","Tian ","Zhi ","Zhao ","Gu ","Zhan ","Yan ","Si ","Kuang ","Jiong ","Ju ","Xie ","Qiu ","Yi ","Jia ","Zhong ","Quan ","Bo ","Hui ","Mi ","Ben ","Zhuo ","Chu ","Le ","You ","Gu ","Hong ","Gan ","Fa ","Mao ","Si ","Hu ","Ping ","Ci ","Fan ","Chi ","Su ","Ning ","Cheng ","Ling ","Pao ","Bo ","Qi ","Si ","Ni ","Ju ","Yue ","Zhu ","Sheng ","Lei ","Xuan ","Xue ","Fu ","Pan ","Min ","Tai ","Yang ","Ji ","Yong ","Guan ","Beng ","Xue ","Long ","Lu ","[?] ","Bo ","Xie ","Po ","Ze ","Jing ","Yin "]});var s8=m((SKe,o8)=>{o8.exports=["Zhou ","Ji ","Yi ","Hui ","Hui ","Zui ","Cheng ","Yin ","Wei ","Hou ","Jian ","Yang ","Lie ","Si ","Ji ","Er ","Xing ","Fu ","Sa ","Suo ","Zhi ","Yin ","Wu ","Xi ","Kao ","Zhu ","Jiang ","Luo ","[?] ","An ","Dong ","Yi ","Mou ","Lei ","Yi ","Mi ","Quan ","Jin ","Mo ","Wei ","Xiao ","Xie ","Hong ","Xu ","Shuo ","Kuang ","Tao ","Qie ","Ju ","Er ","Zhou ","Ru ","Ping ","Xun ","Xiong ","Zhi ","Guang ","Huan ","Ming ","Huo ","Wa ","Qia ","Pai ","Wu ","Qu ","Liu ","Yi ","Jia ","Jing ","Qian ","Jiang ","Jiao ","Cheng ","Shi ","Zhuo ","Ce ","Pal ","Kuai ","Ji ","Liu ","Chan ","Hun ","Hu ","Nong ","Xun ","Jin ","Lie ","Qiu ","Wei ","Zhe ","Jun ","Han ","Bang ","Mang ","Zhuo ","You ","Xi ","Bo ","Dou ","Wan ","Hong ","Yi ","Pu ","Ying ","Lan ","Hao ","Lang ","Han ","Li ","Geng ","Fu ","Wu ","Lian ","Chun ","Feng ","Yi ","Yu ","Tong ","Lao ","Hai ","Jin ","Jia ","Chong ","Weng ","Mei ","Sui ","Cheng ","Pei ","Xian ","Shen ","Tu ","Kun ","Pin ","Nie ","Han ","Jing ","Xiao ","She ","Nian ","Tu ","Yong ","Xiao ","Xian ","Ting ","E ","Su ","Tun ","Juan ","Cen ","Ti ","Li ","Shui ","Si ","Lei ","Shui ","Tao ","Du ","Lao ","Lai ","Lian ","Wei ","Wo ","Yun ","Huan ","Di ","[?] ","Run ","Jian ","Zhang ","Se ","Fu ","Guan ","Xing ","Shou ","Shuan ","Ya ","Chuo ","Zhang ","Ye ","Kong ","Wo ","Han ","Tuo ","Dong ","He ","Wo ","Ju ","Gan ","Liang ","Hun ","Ta ","Zhuo ","Dian ","Qie ","De ","Juan ","Zi ","Xi ","Yao ","Qi ","Gu ","Guo ","Han ","Lin ","Tang ","Zhou ","Peng ","Hao ","Chang ","Shu ","Qi ","Fang ","Chi ","Lu ","Nao ","Ju ","Tao ","Cong ","Lei ","Zhi ","Peng ","Fei ","Song ","Tian ","Pi ","Dan ","Yu ","Ni ","Yu ","Lu ","Gan ","Mi ","Jing ","Ling ","Lun ","Yin ","Cui ","Qu ","Huai ","Yu ","Nian ","Shen ","Piao ","Chun ","Wa ","Yuan ","Lai ","Hun ","Qing ","Yan ","Qian ","Tian ","Miao ","Zhi ","Yin ","Mi "]});var l8=m((TKe,a8)=>{a8.exports=["Ben ","Yuan ","Wen ","Re ","Fei ","Qing ","Yuan ","Ke ","Ji ","She ","Yuan ","Shibui ","Lu ","Zi ","Du ","[?] ","Jian ","Min ","Pi ","Tani ","Yu ","Yuan ","Shen ","Shen ","Rou ","Huan ","Zhu ","Jian ","Nuan ","Yu ","Qiu ","Ting ","Qu ","Du ","Feng ","Zha ","Bo ","Wo ","Wo ","Di ","Wei ","Wen ","Ru ","Xie ","Ce ","Wei ","Ge ","Gang ","Yan ","Hong ","Xuan ","Mi ","Ke ","Mao ","Ying ","Yan ","You ","Hong ","Miao ","Xing ","Mei ","Zai ","Hun ","Nai ","Kui ","Shi ","E ","Pai ","Mei ","Lian ","Qi ","Qi ","Mei ","Tian ","Cou ","Wei ","Can ","Tuan ","Mian ","Hui ","Mo ","Xu ","Ji ","Pen ","Jian ","Jian ","Hu ","Feng ","Xiang ","Yi ","Yin ","Zhan ","Shi ","Jie ","Cheng ","Huang ","Tan ","Yu ","Bi ","Min ","Shi ","Tu ","Sheng ","Yong ","Qu ","Zhong ","Suei ","Jiu ","Jiao ","Qiou ","Yin ","Tang ","Long ","Huo ","Yuan ","Nan ","Ban ","You ","Quan ","Chui ","Liang ","Chan ","Yan ","Chun ","Nie ","Zi ","Wan ","Shi ","Man ","Ying ","Ratsu ","Kui ","[?] ","Jian ","Xu ","Lu ","Gui ","Gai ","[?] ","[?] ","Po ","Jin ","Gui ","Tang ","Yuan ","Suo ","Yuan ","Lian ","Yao ","Meng ","Zhun ","Sheng ","Ke ","Tai ","Da ","Wa ","Liu ","Gou ","Sao ","Ming ","Zha ","Shi ","Yi ","Lun ","Ma ","Pu ","Wei ","Li ","Cai ","Wu ","Xi ","Wen ","Qiang ","Ze ","Shi ","Su ","Yi ","Zhen ","Sou ","Yun ","Xiu ","Yin ","Rong ","Hun ","Su ","Su ","Ni ","Ta ","Shi ","Ru ","Wei ","Pan ","Chu ","Chu ","Pang ","Weng ","Cang ","Mie ","He ","Dian ","Hao ","Huang ","Xi ","Zi ","Di ","Zhi ","Ying ","Fu ","Jie ","Hua ","Ge ","Zi ","Tao ","Teng ","Sui ","Bi ","Jiao ","Hui ","Gun ","Yin ","Gao ","Long ","Zhi ","Yan ","She ","Man ","Ying ","Chun ","Lu ","Lan ","Luan ","[?] ","Bin ","Tan ","Yu ","Sou ","Hu ","Bi ","Biao ","Zhi ","Jiang ","Kou ","Shen ","Shang ","Di ","Mi ","Ao ","Lu ","Hu ","Hu ","You ","Chan ","Fan ","Yong ","Gun ","Man "]});var c8=m((kKe,u8)=>{u8.exports=["Qing ","Yu ","Piao ","Ji ","Ya ","Jiao ","Qi ","Xi ","Ji ","Lu ","Lu ","Long ","Jin ","Guo ","Cong ","Lou ","Zhi ","Gai ","Qiang ","Li ","Yan ","Cao ","Jiao ","Cong ","Qun ","Tuan ","Ou ","Teng ","Ye ","Xi ","Mi ","Tang ","Mo ","Shang ","Han ","Lian ","Lan ","Wa ","Li ","Qian ","Feng ","Xuan ","Yi ","Man ","Zi ","Mang ","Kang ","Lei ","Peng ","Shu ","Zhang ","Zhang ","Chong ","Xu ","Huan ","Kuo ","Jian ","Yan ","Chuang ","Liao ","Cui ","Ti ","Yang ","Jiang ","Cong ","Ying ","Hong ","Xun ","Shu ","Guan ","Ying ","Xiao ","[?] ","[?] ","Xu ","Lian ","Zhi ","Wei ","Pi ","Jue ","Jiao ","Po ","Dang ","Hui ","Jie ","Wu ","Pa ","Ji ","Pan ","Gui ","Xiao ","Qian ","Qian ","Xi ","Lu ","Xi ","Xuan ","Dun ","Huang ","Min ","Run ","Su ","Liao ","Zhen ","Zhong ","Yi ","Di ","Wan ","Dan ","Tan ","Chao ","Xun ","Kui ","Yie ","Shao ","Tu ","Zhu ","San ","Hei ","Bi ","Shan ","Chan ","Chan ","Shu ","Tong ","Pu ","Lin ","Wei ","Se ","Se ","Cheng ","Jiong ","Cheng ","Hua ","Jiao ","Lao ","Che ","Gan ","Cun ","Heng ","Si ","Shu ","Peng ","Han ","Yun ","Liu ","Hong ","Fu ","Hao ","He ","Xian ","Jian ","Shan ","Xi ","Oki ","[?] ","Lan ","[?] ","Yu ","Lin ","Min ","Zao ","Dang ","Wan ","Ze ","Xie ","Yu ","Li ","Shi ","Xue ","Ling ","Man ","Zi ","Yong ","Kuai ","Can ","Lian ","Dian ","Ye ","Ao ","Huan ","Zhen ","Chan ","Man ","Dan ","Dan ","Yi ","Sui ","Pi ","Ju ","Ta ","Qin ","Ji ","Zhuo ","Lian ","Nong ","Guo ","Jin ","Fen ","Se ","Ji ","Sui ","Hui ","Chu ","Ta ","Song ","Ding ","[?] ","Zhu ","Lai ","Bin ","Lian ","Mi ","Shi ","Shu ","Mi ","Ning ","Ying ","Ying ","Meng ","Jin ","Qi ","Pi ","Ji ","Hao ","Ru ","Zui ","Wo ","Tao ","Yin ","Yin ","Dui ","Ci ","Huo ","Jing ","Lan ","Jun ","Ai ","Pu ","Zhuo ","Wei ","Bin ","Gu ","Qian ","Xing ","Hama ","Kuo ","Fei ","[?] ","Boku ","Jian ","Wei ","Luo ","Zan ","Lu ","Li "]});var d8=m((DKe,h8)=>{h8.exports=["You ","Yang ","Lu ","Si ","Jie ","Ying ","Du ","Wang ","Hui ","Xie ","Pan ","Shen ","Biao ","Chan ","Mo ","Liu ","Jian ","Pu ","Se ","Cheng ","Gu ","Bin ","Huo ","Xian ","Lu ","Qin ","Han ","Ying ","Yong ","Li ","Jing ","Xiao ","Ying ","Sui ","Wei ","Xie ","Huai ","Hao ","Zhu ","Long ","Lai ","Dui ","Fan ","Hu ","Lai ","[?] ","[?] ","Ying ","Mi ","Ji ","Lian ","Jian ","Ying ","Fen ","Lin ","Yi ","Jian ","Yue ","Chan ","Dai ","Rang ","Jian ","Lan ","Fan ","Shuang ","Yuan ","Zhuo ","Feng ","She ","Lei ","Lan ","Cong ","Qu ","Yong ","Qian ","Fa ","Guan ","Que ","Yan ","Hao ","Hyeng ","Sa ","Zan ","Luan ","Yan ","Li ","Mi ","Shan ","Tan ","Dang ","Jiao ","Chan ","[?] ","Hao ","Ba ","Zhu ","Lan ","Lan ","Nang ","Wan ","Luan ","Xun ","Xian ","Yan ","Gan ","Yan ","Yu ","Huo ","Si ","Mie ","Guang ","Deng ","Hui ","Xiao ","Xiao ","Hu ","Hong ","Ling ","Zao ","Zhuan ","Jiu ","Zha ","Xie ","Chi ","Zhuo ","Zai ","Zai ","Can ","Yang ","Qi ","Zhong ","Fen ","Niu ","Jiong ","Wen ","Po ","Yi ","Lu ","Chui ","Pi ","Kai ","Pan ","Yan ","Kai ","Pang ","Mu ","Chao ","Liao ","Gui ","Kang ","Tun ","Guang ","Xin ","Zhi ","Guang ","Guang ","Wei ","Qiang ","[?] ","Da ","Xia ","Zheng ","Zhu ","Ke ","Zhao ","Fu ","Ba ","Duo ","Duo ","Ling ","Zhuo ","Xuan ","Ju ","Tan ","Pao ","Jiong ","Pao ","Tai ","Tai ","Bing ","Yang ","Tong ","Han ","Zhu ","Zha ","Dian ","Wei ","Shi ","Lian ","Chi ","Huang ","[?] ","Hu ","Shuo ","Lan ","Jing ","Jiao ","Xu ","Xing ","Quan ","Lie ","Huan ","Yang ","Xiao ","Xiu ","Xian ","Yin ","Wu ","Zhou ","Yao ","Shi ","Wei ","Tong ","Xue ","Zai ","Kai ","Hong ","Luo ","Xia ","Zhu ","Xuan ","Zheng ","Po ","Yan ","Hui ","Guang ","Zhe ","Hui ","Kao ","[?] ","Fan ","Shao ","Ye ","Hui ","[?] ","Tang ","Jin ","Re ","[?] ","Xi ","Fu ","Jiong ","Che ","Pu ","Jing ","Zhuo ","Ting ","Wan ","Hai ","Peng ","Lang ","Shan ","Hu ","Feng ","Chi ","Rong "]});var f8=m((EKe,g8)=>{g8.exports=["Hu ","Xi ","Shu ","He ","Xun ","Ku ","Jue ","Xiao ","Xi ","Yan ","Han ","Zhuang ","Jun ","Di ","Xie ","Ji ","Wu ","[?] ","[?] ","Han ","Yan ","Huan ","Men ","Ju ","Chou ","Bei ","Fen ","Lin ","Kun ","Hun ","Tun ","Xi ","Cui ","Wu ","Hong ","Ju ","Fu ","Wo ","Jiao ","Cong ","Feng ","Ping ","Qiong ","Ruo ","Xi ","Qiong ","Xin ","Zhuo ","Yan ","Yan ","Yi ","Jue ","Yu ","Gang ","Ran ","Pi ","Gu ","[?] ","Sheng ","Chang ","Shao ","[?] ","[?] ","[?] ","[?] ","Chen ","He ","Kui ","Zhong ","Duan ","Xia ","Hui ","Feng ","Lian ","Xuan ","Xing ","Huang ","Jiao ","Jian ","Bi ","Ying ","Zhu ","Wei ","Tuan ","Tian ","Xi ","Nuan ","Nuan ","Chan ","Yan ","Jiong ","Jiong ","Yu ","Mei ","Sha ","Wei ","Ye ","Xin ","Qiong ","Rou ","Mei ","Huan ","Xu ","Zhao ","Wei ","Fan ","Qiu ","Sui ","Yang ","Lie ","Zhu ","Jie ","Gao ","Gua ","Bao ","Hu ","Yun ","Xia ","[?] ","[?] ","Bian ","Gou ","Tui ","Tang ","Chao ","Shan ","N ","Bo ","Huang ","Xie ","Xi ","Wu ","Xi ","Yun ","He ","He ","Xi ","Yun ","Xiong ","Nai ","Shan ","Qiong ","Yao ","Xun ","Mi ","Lian ","Ying ","Wen ","Rong ","Oozutsu ","[?] ","Qiang ","Liu ","Xi ","Bi ","Biao ","Zong ","Lu ","Jian ","Shou ","Yi ","Lou ","Feng ","Sui ","Yi ","Tong ","Jue ","Zong ","Yun ","Hu ","Yi ","Zhi ","Ao ","Wei ","Liao ","Han ","Ou ","Re ","Jiong ","Man ","[?] ","Shang ","Cuan ","Zeng ","Jian ","Xi ","Xi ","Xi ","Yi ","Xiao ","Chi ","Huang ","Chan ","Ye ","Qian ","Ran ","Yan ","Xian ","Qiao ","Zun ","Deng ","Dun ","Shen ","Jiao ","Fen ","Si ","Liao ","Yu ","Lin ","Tong ","Shao ","Fen ","Fan ","Yan ","Xun ","Lan ","Mei ","Tang ","Yi ","Jing ","Men ","[?] ","[?] ","Ying ","Yu ","Yi ","Xue ","Lan ","Tai ","Zao ","Can ","Sui ","Xi ","Que ","Cong ","Lian ","Hui ","Zhu ","Xie ","Ling ","Wei ","Yi ","Xie ","Zhao ","Hui ","Tatsu ","Nung ","Lan ","Ru ","Xian ","Kao ","Xun ","Jin ","Chou ","Chou ","Yao "]});var m8=m((_Ke,p8)=>{p8.exports=["He ","Lan ","Biao ","Rong ","Li ","Mo ","Bao ","Ruo ","Lu ","La ","Ao ","Xun ","Kuang ","Shuo ","[?] ","Li ","Lu ","Jue ","Liao ","Yan ","Xi ","Xie ","Long ","Ye ","[?] ","Rang ","Yue ","Lan ","Cong ","Jue ","Tong ","Guan ","[?] ","Che ","Mi ","Tang ","Lan ","Zhu ","[?] ","Ling ","Cuan ","Yu ","Zhua ","Tsumekanmuri ","Pa ","Zheng ","Pao ","Cheng ","Yuan ","Ai ","Wei ","[?] ","Jue ","Jue ","Fu ","Ye ","Ba ","Die ","Ye ","Yao ","Zu ","Shuang ","Er ","Qiang ","Chuang ","Ge ","Zang ","Die ","Qiang ","Yong ","Qiang ","Pian ","Ban ","Pan ","Shao ","Jian ","Pai ","Du ","Chuang ","Tou ","Zha ","Bian ","Die ","Bang ","Bo ","Chuang ","You ","[?] ","Du ","Ya ","Cheng ","Niu ","Ushihen ","Pin ","Jiu ","Mou ","Tuo ","Mu ","Lao ","Ren ","Mang ","Fang ","Mao ","Mu ","Gang ","Wu ","Yan ","Ge ","Bei ","Si ","Jian ","Gu ","You ","Ge ","Sheng ","Mu ","Di ","Qian ","Quan ","Quan ","Zi ","Te ","Xi ","Mang ","Keng ","Qian ","Wu ","Gu ","Xi ","Li ","Li ","Pou ","Ji ","Gang ","Zhi ","Ben ","Quan ","Run ","Du ","Ju ","Jia ","Jian ","Feng ","Pian ","Ke ","Ju ","Kao ","Chu ","Xi ","Bei ","Luo ","Jie ","Ma ","San ","Wei ","Li ","Dun ","Tong ","[?] ","Jiang ","Ikenie ","Li ","Du ","Lie ","Pi ","Piao ","Bao ","Xi ","Chou ","Wei ","Kui ","Chou ","Quan ","Fan ","Ba ","Fan ","Qiu ","Ji ","Cai ","Chuo ","An ","Jie ","Zhuang ","Guang ","Ma ","You ","Kang ","Bo ","Hou ","Ya ","Yin ","Huan ","Zhuang ","Yun ","Kuang ","Niu ","Di ","Qing ","Zhong ","Mu ","Bei ","Pi ","Ju ","Ni ","Sheng ","Pao ","Xia ","Tuo ","Hu ","Ling ","Fei ","Pi ","Ni ","Ao ","You ","Gou ","Yue ","Ju ","Dan ","Po ","Gu ","Xian ","Ning ","Huan ","Hen ","Jiao ","He ","Zhao ","Ji ","Xun ","Shan ","Ta ","Rong ","Shou ","Tong ","Lao ","Du ","Xia ","Shi ","Hua ","Zheng ","Yu ","Sun ","Yu ","Bi ","Mang ","Xi ","Juan ","Li ","Xia ","Yin ","Suan ","Lang ","Bei ","Zhi ","Yan "]});var y8=m((PKe,b8)=>{b8.exports=["Sha ","Li ","Han ","Xian ","Jing ","Pai ","Fei ","Yao ","Ba ","Qi ","Ni ","Biao ","Yin ","Lai ","Xi ","Jian ","Qiang ","Kun ","Yan ","Guo ","Zong ","Mi ","Chang ","Yi ","Zhi ","Zheng ","Ya ","Meng ","Cai ","Cu ","She ","Kari ","Cen ","Luo ","Hu ","Zong ","Ji ","Wei ","Feng ","Wo ","Yuan ","Xing ","Zhu ","Mao ","Wei ","Yuan ","Xian ","Tuan ","Ya ","Nao ","Xie ","Jia ","Hou ","Bian ","You ","You ","Mei ","Zha ","Yao ","Sun ","Bo ","Ming ","Hua ","Yuan ","Sou ","Ma ","Yuan ","Dai ","Yu ","Shi ","Hao ","[?] ","Yi ","Zhen ","Chuang ","Hao ","Man ","Jing ","Jiang ","Mu ","Zhang ","Chan ","Ao ","Ao ","Hao ","Cui ","Fen ","Jue ","Bi ","Bi ","Huang ","Pu ","Lin ","Yu ","Tong ","Yao ","Liao ","Shuo ","Xiao ","Swu ","Ton ","Xi ","Ge ","Juan ","Du ","Hui ","Kuai ","Xian ","Xie ","Ta ","Xian ","Xun ","Ning ","Pin ","Huo ","Nou ","Meng ","Lie ","Nao ","Guang ","Shou ","Lu ","Ta ","Xian ","Mi ","Rang ","Huan ","Nao ","Luo ","Xian ","Qi ","Jue ","Xuan ","Miao ","Zi ","Lu ","Lu ","Yu ","Su ","Wang ","Qiu ","Ga ","Ding ","Le ","Ba ","Ji ","Hong ","Di ","Quan ","Gan ","Jiu ","Yu ","Ji ","Yu ","Yang ","Ma ","Gong ","Wu ","Fu ","Wen ","Jie ","Ya ","Fen ","Bian ","Beng ","Yue ","Jue ","Yun ","Jue ","Wan ","Jian ","Mei ","Dan ","Pi ","Wei ","Huan ","Xian ","Qiang ","Ling ","Dai ","Yi ","An ","Ping ","Dian ","Fu ","Xuan ","Xi ","Bo ","Ci ","Gou ","Jia ","Shao ","Po ","Ci ","Ke ","Ran ","Sheng ","Shen ","Yi ","Zu ","Jia ","Min ","Shan ","Liu ","Bi ","Zhen ","Zhen ","Jue ","Fa ","Long ","Jin ","Jiao ","Jian ","Li ","Guang ","Xian ","Zhou ","Gong ","Yan ","Xiu ","Yang ","Xu ","Luo ","Su ","Zhu ","Qin ","Ken ","Xun ","Bao ","Er ","Xiang ","Yao ","Xia ","Heng ","Gui ","Chong ","Xu ","Ban ","Pei ","[?] ","Dang ","Ei ","Hun ","Wen ","E ","Cheng ","Ti ","Wu ","Wu ","Cheng ","Jun ","Mei ","Bei ","Ting ","Xian ","Chuo "]});var w8=m((RKe,v8)=>{v8.exports=["Han ","Xuan ","Yan ","Qiu ","Quan ","Lang ","Li ","Xiu ","Fu ","Liu ","Ye ","Xi ","Ling ","Li ","Jin ","Lian ","Suo ","Chiisai ","[?] ","Wan ","Dian ","Pin ","Zhan ","Cui ","Min ","Yu ","Ju ","Chen ","Lai ","Wen ","Sheng ","Wei ","Dian ","Chu ","Zhuo ","Pei ","Cheng ","Hu ","Qi ","E ","Kun ","Chang ","Qi ","Beng ","Wan ","Lu ","Cong ","Guan ","Yan ","Diao ","Bei ","Lin ","Qin ","Pi ","Pa ","Que ","Zhuo ","Qin ","Fa ","[?] ","Qiong ","Du ","Jie ","Hun ","Yu ","Mao ","Mei ","Chun ","Xuan ","Ti ","Xing ","Dai ","Rou ","Min ","Zhen ","Wei ","Ruan ","Huan ","Jie ","Chuan ","Jian ","Zhuan ","Yang ","Lian ","Quan ","Xia ","Duan ","Yuan ","Ye ","Nao ","Hu ","Ying ","Yu ","Huang ","Rui ","Se ","Liu ","Shi ","Rong ","Suo ","Yao ","Wen ","Wu ","Jin ","Jin ","Ying ","Ma ","Tao ","Liu ","Tang ","Li ","Lang ","Gui ","Zhen ","Qiang ","Cuo ","Jue ","Zhao ","Yao ","Ai ","Bin ","Tu ","Chang ","Kun ","Zhuan ","Cong ","Jin ","Yi ","Cui ","Cong ","Qi ","Li ","Ying ","Suo ","Qiu ","Xuan ","Ao ","Lian ","Man ","Zhang ","Yin ","[?] ","Ying ","Zhi ","Lu ","Wu ","Deng ","Xiou ","Zeng ","Xun ","Qu ","Dang ","Lin ","Liao ","Qiong ","Su ","Huang ","Gui ","Pu ","Jing ","Fan ","Jin ","Liu ","Ji ","[?] ","Jing ","Ai ","Bi ","Can ","Qu ","Zao ","Dang ","Jiao ","Gun ","Tan ","Hui ","Huan ","Se ","Sui ","Tian ","[?] ","Yu ","Jin ","Lu ","Bin ","Shou ","Wen ","Zui ","Lan ","Xi ","Ji ","Xuan ","Ruan ","Huo ","Gai ","Lei ","Du ","Li ","Zhi ","Rou ","Li ","Zan ","Qiong ","Zhe ","Gui ","Sui ","La ","Long ","Lu ","Li ","Zan ","Lan ","Ying ","Mi ","Xiang ","Xi ","Guan ","Dao ","Zan ","Huan ","Gua ","Bo ","Die ","Bao ","Hu ","Zhi ","Piao ","Ban ","Rang ","Li ","Wa ","Dekaguramu ","Jiang ","Qian ","Fan ","Pen ","Fang ","Dan ","Weng ","Ou ","Deshiguramu ","Miriguramu ","Thon ","Hu ","Ling ","Yi ","Ping ","Ci ","Hekutogura ","Juan ","Chang ","Chi ","Sarake ","Dang ","Meng ","Pou "]});var C8=m((LKe,x8)=>{x8.exports=["Zhui ","Ping ","Bian ","Zhou ","Zhen ","Senchigura ","Ci ","Ying ","Qi ","Xian ","Lou ","Di ","Ou ","Meng ","Zhuan ","Peng ","Lin ","Zeng ","Wu ","Pi ","Dan ","Weng ","Ying ","Yan ","Gan ","Dai ","Shen ","Tian ","Tian ","Han ","Chang ","Sheng ","Qing ","Sheng ","Chan ","Chan ","Rui ","Sheng ","Su ","Sen ","Yong ","Shuai ","Lu ","Fu ","Yong ","Beng ","Feng ","Ning ","Tian ","You ","Jia ","Shen ","Zha ","Dian ","Fu ","Nan ","Dian ","Ping ","Ting ","Hua ","Ting ","Quan ","Zi ","Meng ","Bi ","Qi ","Liu ","Xun ","Liu ","Chang ","Mu ","Yun ","Fan ","Fu ","Geng ","Tian ","Jie ","Jie ","Quan ","Wei ","Fu ","Tian ","Mu ","Tap ","Pan ","Jiang ","Wa ","Da ","Nan ","Liu ","Ben ","Zhen ","Chu ","Mu ","Mu ","Ce ","Cen ","Gai ","Bi ","Da ","Zhi ","Lue ","Qi ","Lue ","Pan ","Kesa ","Fan ","Hua ","Yu ","Yu ","Mu ","Jun ","Yi ","Liu ","Yu ","Die ","Chou ","Hua ","Dang ","Chuo ","Ji ","Wan ","Jiang ","Sheng ","Chang ","Tuan ","Lei ","Ji ","Cha ","Liu ","Tatamu ","Tuan ","Lin ","Jiang ","Jiang ","Chou ","Bo ","Die ","Die ","Pi ","Nie ","Dan ","Shu ","Shu ","Zhi ","Yi ","Chuang ","Nai ","Ding ","Bi ","Jie ","Liao ","Gong ","Ge ","Jiu ","Zhou ","Xia ","Shan ","Xu ","Nue ","Li ","Yang ","Chen ","You ","Ba ","Jie ","Jue ","Zhi ","Xia ","Cui ","Bi ","Yi ","Li ","Zong ","Chuang ","Feng ","Zhu ","Pao ","Pi ","Gan ","Ke ","Ci ","Xie ","Qi ","Dan ","Zhen ","Fa ","Zhi ","Teng ","Ju ","Ji ","Fei ","Qu ","Dian ","Jia ","Xian ","Cha ","Bing ","Ni ","Zheng ","Yong ","Jing ","Quan ","Chong ","Tong ","Yi ","Kai ","Wei ","Hui ","Duo ","Yang ","Chi ","Zhi ","Hen ","Ya ","Mei ","Dou ","Jing ","Xiao ","Tong ","Tu ","Mang ","Pi ","Xiao ","Suan ","Pu ","Li ","Zhi ","Cuo ","Duo ","Wu ","Sha ","Lao ","Shou ","Huan ","Xian ","Yi ","Peng ","Zhang ","Guan ","Tan ","Fei ","Ma ","Lin ","Chi ","Ji ","Dian ","An ","Chi ","Bi ","Bei ","Min ","Gu ","Dui ","E ","Wei "]});var T8=m((IKe,S8)=>{S8.exports=["Yu ","Cui ","Ya ","Zhu ","Cu ","Dan ","Shen ","Zhung ","Ji ","Yu ","Hou ","Feng ","La ","Yang ","Shen ","Tu ","Yu ","Gua ","Wen ","Huan ","Ku ","Jia ","Yin ","Yi ","Lu ","Sao ","Jue ","Chi ","Xi ","Guan ","Yi ","Wen ","Ji ","Chuang ","Ban ","Lei ","Liu ","Chai ","Shou ","Nue ","Dian ","Da ","Pie ","Tan ","Zhang ","Biao ","Shen ","Cu ","Luo ","Yi ","Zong ","Chou ","Zhang ","Zhai ","Sou ","Suo ","Que ","Diao ","Lou ","Lu ","Mo ","Jin ","Yin ","Ying ","Huang ","Fu ","Liao ","Long ","Qiao ","Liu ","Lao ","Xian ","Fei ","Dan ","Yin ","He ","Yan ","Ban ","Xian ","Guan ","Guai ","Nong ","Yu ","Wei ","Yi ","Yong ","Pi ","Lei ","Li ","Shu ","Dan ","Lin ","Dian ","Lin ","Lai ","Pie ","Ji ","Chi ","Yang ","Xian ","Jie ","Zheng ","[?] ","Li ","Huo ","Lai ","Shaku ","Dian ","Xian ","Ying ","Yin ","Qu ","Yong ","Tan ","Dian ","Luo ","Luan ","Luan ","Bo ","[?] ","Gui ","Po ","Fa ","Deng ","Fa ","Bai ","Bai ","Qie ","Bi ","Zao ","Zao ","Mao ","De ","Pa ","Jie ","Huang ","Gui ","Ci ","Ling ","Gao ","Mo ","Ji ","Jiao ","Peng ","Gao ","Ai ","E ","Hao ","Han ","Bi ","Wan ","Chou ","Qian ","Xi ","Ai ","Jiong ","Hao ","Huang ","Hao ","Ze ","Cui ","Hao ","Xiao ","Ye ","Po ","Hao ","Jiao ","Ai ","Xing ","Huang ","Li ","Piao ","He ","Jiao ","Pi ","Gan ","Pao ","Zhou ","Jun ","Qiu ","Cun ","Que ","Zha ","Gu ","Jun ","Jun ","Zhou ","Zha ","Gu ","Zhan ","Du ","Min ","Qi ","Ying ","Yu ","Bei ","Zhao ","Zhong ","Pen ","He ","Ying ","He ","Yi ","Bo ","Wan ","He ","Ang ","Zhan ","Yan ","Jian ","He ","Yu ","Kui ","Fan ","Gai ","Dao ","Pan ","Fu ","Qiu ","Sheng ","Dao ","Lu ","Zhan ","Meng ","Li ","Jin ","Xu ","Jian ","Pan ","Guan ","An ","Lu ","Shu ","Zhou ","Dang ","An ","Gu ","Li ","Mu ","Cheng ","Gan ","Xu ","Mang ","Mang ","Zhi ","Qi ","Ruan ","Tian ","Xiang ","Dun ","Xin ","Xi ","Pan ","Feng ","Dun ","Min "]});var D8=m((jKe,k8)=>{k8.exports=["Ming ","Sheng ","Shi ","Yun ","Mian ","Pan ","Fang ","Miao ","Dan ","Mei ","Mao ","Kan ","Xian ","Ou ","Shi ","Yang ","Zheng ","Yao ","Shen ","Huo ","Da ","Zhen ","Kuang ","Ju ","Shen ","Chi ","Sheng ","Mei ","Mo ","Zhu ","Zhen ","Zhen ","Mian ","Di ","Yuan ","Die ","Yi ","Zi ","Zi ","Chao ","Zha ","Xuan ","Bing ","Mi ","Long ","Sui ","Dong ","Mi ","Die ","Yi ","Er ","Ming ","Xuan ","Chi ","Kuang ","Juan ","Mou ","Zhen ","Tiao ","Yang ","Yan ","Mo ","Zhong ","Mai ","Zhao ","Zheng ","Mei ","Jun ","Shao ","Han ","Huan ","Di ","Cheng ","Cuo ","Juan ","E ","Wan ","Xian ","Xi ","Kun ","Lai ","Jian ","Shan ","Tian ","Hun ","Wan ","Ling ","Shi ","Qiong ","Lie ","Yai ","Jing ","Zheng ","Li ","Lai ","Sui ","Juan ","Shui ","Sui ","Du ","Bi ","Bi ","Mu ","Hun ","Ni ","Lu ","Yi ","Jie ","Cai ","Zhou ","Yu ","Hun ","Ma ","Xia ","Xing ","Xi ","Gun ","Cai ","Chun ","Jian ","Mei ","Du ","Hou ","Xuan ","Ti ","Kui ","Gao ","Rui ","Mou ","Xu ","Fa ","Wen ","Miao ","Chou ","Kui ","Mi ","Weng ","Kou ","Dang ","Chen ","Ke ","Sou ","Xia ","Qiong ","Mao ","Ming ","Man ","Shui ","Ze ","Zhang ","Yi ","Diao ","Ou ","Mo ","Shun ","Cong ","Lou ","Chi ","Man ","Piao ","Cheng ","Ji ","Meng ","[?] ","Run ","Pie ","Xi ","Qiao ","Pu ","Zhu ","Deng ","Shen ","Shun ","Liao ","Che ","Xian ","Kan ","Ye ","Xu ","Tong ","Mou ","Lin ","Kui ","Xian ","Ye ","Ai ","Hui ","Zhan ","Jian ","Gu ","Zhao ","Qu ","Wei ","Chou ","Sao ","Ning ","Xun ","Yao ","Huo ","Meng ","Mian ","Bin ","Mian ","Li ","Kuang ","Jue ","Xuan ","Mian ","Huo ","Lu ","Meng ","Long ","Guan ","Man ","Xi ","Chu ","Tang ","Kan ","Zhu ","Mao ","Jin ","Lin ","Yu ","Shuo ","Ce ","Jue ","Shi ","Yi ","Shen ","Zhi ","Hou ","Shen ","Ying ","Ju ","Zhou ","Jiao ","Cuo ","Duan ","Ai ","Jiao ","Zeng ","Huo ","Bai ","Shi ","Ding ","Qi ","Ji ","Zi ","Gan ","Wu ","Tuo ","Ku ","Qiang ","Xi ","Fan ","Kuang "]});var _8=m((FKe,E8)=>{E8.exports=["Dang ","Ma ","Sha ","Dan ","Jue ","Li ","Fu ","Min ","Nuo ","Huo ","Kang ","Zhi ","Qi ","Kan ","Jie ","Fen ","E ","Ya ","Pi ","Zhe ","Yan ","Sui ","Zhuan ","Che ","Dun ","Pan ","Yan ","[?] ","Feng ","Fa ","Mo ","Zha ","Qu ","Yu ","Luo ","Tuo ","Tuo ","Di ","Zhai ","Zhen ","Ai ","Fei ","Mu ","Zhu ","Li ","Bian ","Nu ","Ping ","Peng ","Ling ","Pao ","Le ","Po ","Bo ","Po ","Shen ","Za ","Nuo ","Li ","Long ","Tong ","[?] ","Li ","Aragane ","Chu ","Keng ","Quan ","Zhu ","Kuang ","Huo ","E ","Nao ","Jia ","Lu ","Wei ","Ai ","Luo ","Ken ","Xing ","Yan ","Tong ","Peng ","Xi ","[?] ","Hong ","Shuo ","Xia ","Qiao ","[?] ","Wei ","Qiao ","[?] ","Keng ","Xiao ","Que ","Chan ","Lang ","Hong ","Yu ","Xiao ","Xia ","Mang ","Long ","Iong ","Che ","Che ","E ","Liu ","Ying ","Mang ","Que ","Yan ","Sha ","Kun ","Yu ","[?] ","Kaki ","Lu ","Chen ","Jian ","Nue ","Song ","Zhuo ","Keng ","Peng ","Yan ","Zhui ","Kong ","Ceng ","Qi ","Zong ","Qing ","Lin ","Jun ","Bo ","Ding ","Min ","Diao ","Jian ","He ","Lu ","Ai ","Sui ","Que ","Ling ","Bei ","Yin ","Dui ","Wu ","Qi ","Lun ","Wan ","Dian ","Gang ","Pei ","Qi ","Chen ","Ruan ","Yan ","Die ","Ding ","Du ","Tuo ","Jie ","Ying ","Bian ","Ke ","Bi ","Wei ","Shuo ","Zhen ","Duan ","Xia ","Dang ","Ti ","Nao ","Peng ","Jian ","Di ","Tan ","Cha ","Seki ","Qi ","[?] ","Feng ","Xuan ","Que ","Que ","Ma ","Gong ","Nian ","Su ","E ","Ci ","Liu ","Si ","Tang ","Bang ","Hua ","Pi ","Wei ","Sang ","Lei ","Cuo ","Zhen ","Xia ","Qi ","Lian ","Pan ","Wei ","Yun ","Dui ","Zhe ","Ke ","La ","[?] ","Qing ","Gun ","Zhuan ","Chan ","Qi ","Ao ","Peng ","Lu ","Lu ","Kan ","Qiang ","Chen ","Yin ","Lei ","Biao ","Qi ","Mo ","Qi ","Cui ","Zong ","Qing ","Chuo ","[?] ","Ji ","Shan ","Lao ","Qu ","Zeng ","Deng ","Jian ","Xi ","Lin ","Ding ","Dian ","Huang ","Pan ","Za ","Qiao ","Di ","Li "]});var R8=m((OKe,P8)=>{P8.exports=["Tani ","Jiao ","[?] ","Zhang ","Qiao ","Dun ","Xian ","Yu ","Zhui ","He ","Huo ","Zhai ","Lei ","Ke ","Chu ","Ji ","Que ","Dang ","Yi ","Jiang ","Pi ","Pi ","Yu ","Pin ","Qi ","Ai ","Kai ","Jian ","Yu ","Ruan ","Meng ","Pao ","Ci ","[?] ","[?] ","Mie ","Ca ","Xian ","Kuang ","Lei ","Lei ","Zhi ","Li ","Li ","Fan ","Que ","Pao ","Ying ","Li ","Long ","Long ","Mo ","Bo ","Shuang ","Guan ","Lan ","Zan ","Yan ","Shi ","Shi ","Li ","Reng ","She ","Yue ","Si ","Qi ","Ta ","Ma ","Xie ","Xian ","Xian ","Zhi ","Qi ","Zhi ","Beng ","Dui ","Zhong ","[?] ","Yi ","Shi ","You ","Zhi ","Tiao ","Fu ","Fu ","Mi ","Zu ","Zhi ","Suan ","Mei ","Zuo ","Qu ","Hu ","Zhu ","Shen ","Sui ","Ci ","Chai ","Mi ","Lu ","Yu ","Xiang ","Wu ","Tiao ","Piao ","Zhu ","Gui ","Xia ","Zhi ","Ji ","Gao ","Zhen ","Gao ","Shui ","Jin ","Chen ","Gai ","Kun ","Di ","Dao ","Huo ","Tao ","Qi ","Gu ","Guan ","Zui ","Ling ","Lu ","Bing ","Jin ","Dao ","Zhi ","Lu ","Shan ","Bei ","Zhe ","Hui ","You ","Xi ","Yin ","Zi ","Huo ","Zhen ","Fu ","Yuan ","Wu ","Xian ","Yang ","Ti ","Yi ","Mei ","Si ","Di ","[?] ","Zhuo ","Zhen ","Yong ","Ji ","Gao ","Tang ","Si ","Ma ","Ta ","[?] ","Xuan ","Qi ","Yu ","Xi ","Ji ","Si ","Chan ","Tan ","Kuai ","Sui ","Li ","Nong ","Ni ","Dao ","Li ","Rang ","Yue ","Ti ","Zan ","Lei ","Rou ","Yu ","Yu ","Chi ","Xie ","Qin ","He ","Tu ","Xiu ","Si ","Ren ","Tu ","Zi ","Cha ","Gan ","Yi ","Xian ","Bing ","Nian ","Qiu ","Qiu ","Chong ","Fen ","Hao ","Yun ","Ke ","Miao ","Zhi ","Geng ","Bi ","Zhi ","Yu ","Mi ","Ku ","Ban ","Pi ","Ni ","Li ","You ","Zu ","Pi ","Ba ","Ling ","Mo ","Cheng ","Nian ","Qin ","Yang ","Zuo ","Zhi ","Zhi ","Shu ","Ju ","Zi ","Huo ","Ji ","Cheng ","Tong ","Zhi ","Huo ","He ","Yin ","Zi ","Zhi ","Jie ","Ren ","Du ","Yi ","Zhu ","Hui ","Nong ","Fu "]});var I8=m((MKe,L8)=>{L8.exports=["Xi ","Kao ","Lang ","Fu ","Ze ","Shui ","Lu ","Kun ","Gan ","Geng ","Ti ","Cheng ","Tu ","Shao ","Shui ","Ya ","Lun ","Lu ","Gu ","Zuo ","Ren ","Zhun ","Bang ","Bai ","Ji ","Zhi ","Zhi ","Kun ","Leng ","Peng ","Ke ","Bing ","Chou ","Zu ","Yu ","Su ","Lue ","[?] ","Yi ","Xi ","Bian ","Ji ","Fu ","Bi ","Nuo ","Jie ","Zhong ","Zong ","Xu ","Cheng ","Dao ","Wen ","Lian ","Zi ","Yu ","Ji ","Xu ","Zhen ","Zhi ","Dao ","Jia ","Ji ","Gao ","Gao ","Gu ","Rong ","Sui ","You ","Ji ","Kang ","Mu ","Shan ","Men ","Zhi ","Ji ","Lu ","Su ","Ji ","Ying ","Wen ","Qiu ","Se ","[?] ","Yi ","Huang ","Qie ","Ji ","Sui ","Xiao ","Pu ","Jiao ","Zhuo ","Tong ","Sai ","Lu ","Sui ","Nong ","Se ","Hui ","Rang ","Nuo ","Yu ","Bin ","Ji ","Tui ","Wen ","Cheng ","Huo ","Gong ","Lu ","Biao ","[?] ","Rang ","Zhuo ","Li ","Zan ","Xue ","Wa ","Jiu ","Qiong ","Xi ","Qiong ","Kong ","Yu ","Sen ","Jing ","Yao ","Chuan ","Zhun ","Tu ","Lao ","Qie ","Zhai ","Yao ","Bian ","Bao ","Yao ","Bing ","Wa ","Zhu ","Jiao ","Qiao ","Diao ","Wu ","Gui ","Yao ","Zhi ","Chuang ","Yao ","Tiao ","Jiao ","Chuang ","Jiong ","Xiao ","Cheng ","Kou ","Cuan ","Wo ","Dan ","Ku ","Ke ","Zhui ","Xu ","Su ","Guan ","Kui ","Dou ","[?] ","Yin ","Wo ","Wa ","Ya ","Yu ","Ju ","Qiong ","Yao ","Yao ","Tiao ","Chao ","Yu ","Tian ","Diao ","Ju ","Liao ","Xi ","Wu ","Kui ","Chuang ","Zhao ","[?] ","Kuan ","Long ","Cheng ","Cui ","Piao ","Zao ","Cuan ","Qiao ","Qiong ","Dou ","Zao ","Long ","Qie ","Li ","Chu ","Shi ","Fou ","Qian ","Chu ","Hong ","Qi ","Qian ","Gong ","Shi ","Shu ","Miao ","Ju ","Zhan ","Zhu ","Ling ","Long ","Bing ","Jing ","Jing ","Zhang ","Yi ","Si ","Jun ","Hong ","Tong ","Song ","Jing ","Diao ","Yi ","Shu ","Jing ","Qu ","Jie ","Ping ","Duan ","Shao ","Zhuan ","Ceng ","Deng ","Cui ","Huai ","Jing ","Kan ","Jing ","Zhu ","Zhu ","Le ","Peng ","Yu ","Chi ","Gan "]});var F8=m((AKe,j8)=>{j8.exports=["Mang ","Zhu ","Utsubo ","Du ","Ji ","Xiao ","Ba ","Suan ","Ji ","Zhen ","Zhao ","Sun ","Ya ","Zhui ","Yuan ","Hu ","Gang ","Xiao ","Cen ","Pi ","Bi ","Jian ","Yi ","Dong ","Shan ","Sheng ","Xia ","Di ","Zhu ","Na ","Chi ","Gu ","Li ","Qie ","Min ","Bao ","Tiao ","Si ","Fu ","Ce ","Ben ","Pei ","Da ","Zi ","Di ","Ling ","Ze ","Nu ","Fu ","Gou ","Fan ","Jia ","Ge ","Fan ","Shi ","Mao ","Po ","Sey ","Jian ","Qiong ","Long ","Souke ","Bian ","Luo ","Gui ","Qu ","Chi ","Yin ","Yao ","Xian ","Bi ","Qiong ","Gua ","Deng ","Jiao ","Jin ","Quan ","Sun ","Ru ","Fa ","Kuang ","Zhu ","Tong ","Ji ","Da ","Xing ","Ce ","Zhong ","Kou ","Lai ","Bi ","Shai ","Dang ","Zheng ","Ce ","Fu ","Yun ","Tu ","Pa ","Li ","Lang ","Ju ","Guan ","Jian ","Han ","Tong ","Xia ","Zhi ","Cheng ","Suan ","Shi ","Zhu ","Zuo ","Xiao ","Shao ","Ting ","Ce ","Yan ","Gao ","Kuai ","Gan ","Chou ","Kago ","Gang ","Yun ","O ","Qian ","Xiao ","Jian ","Pu ","Lai ","Zou ","Bi ","Bi ","Bi ","Ge ","Chi ","Guai ","Yu ","Jian ","Zhao ","Gu ","Chi ","Zheng ","Jing ","Sha ","Zhou ","Lu ","Bo ","Ji ","Lin ","Suan ","Jun ","Fu ","Zha ","Gu ","Kong ","Qian ","Quan ","Jun ","Chui ","Guan ","Yuan ","Ce ","Ju ","Bo ","Ze ","Qie ","Tuo ","Luo ","Dan ","Xiao ","Ruo ","Jian ","Xuan ","Bian ","Sun ","Xiang ","Xian ","Ping ","Zhen ","Sheng ","Hu ","Shi ","Zhu ","Yue ","Chun ","Lu ","Wu ","Dong ","Xiao ","Ji ","Jie ","Huang ","Xing ","Mei ","Fan ","Chui ","Zhuan ","Pian ","Feng ","Zhu ","Hong ","Qie ","Hou ","Qiu ","Miao ","Qian ","[?] ","Kui ","Sik ","Lou ","Yun ","He ","Tang ","Yue ","Chou ","Gao ","Fei ","Ruo ","Zheng ","Gou ","Nie ","Qian ","Xiao ","Cuan ","Gong ","Pang ","Du ","Li ","Bi ","Zhuo ","Chu ","Shai ","Chi ","Zhu ","Qiang ","Long ","Lan ","Jian ","Bu ","Li ","Hui ","Bi ","Di ","Cong ","Yan ","Peng ","Sen ","Zhuan ","Pai ","Piao ","Dou ","Yu ","Mie ","Zhuan "]});var M8=m((NKe,O8)=>{O8.exports=["Ze ","Xi ","Guo ","Yi ","Hu ","Chan ","Kou ","Cu ","Ping ","Chou ","Ji ","Gui ","Su ","Lou ","Zha ","Lu ","Nian ","Suo ","Cuan ","Sasara ","Suo ","Le ","Duan ","Yana ","Xiao ","Bo ","Mi ","Si ","Dang ","Liao ","Dan ","Dian ","Fu ","Jian ","Min ","Kui ","Dai ","Qiao ","Deng ","Huang ","Sun ","Lao ","Zan ","Xiao ","Du ","Shi ","Zan ","[?] ","Pai ","Hata ","Pai ","Gan ","Ju ","Du ","Lu ","Yan ","Bo ","Dang ","Sai ","Ke ","Long ","Qian ","Lian ","Bo ","Zhou ","Lai ","[?] ","Lan ","Kui ","Yu ","Yue ","Hao ","Zhen ","Tai ","Ti ","Mi ","Chou ","Ji ","[?] ","Hata ","Teng ","Zhuan ","Zhou ","Fan ","Sou ","Zhou ","Kuji ","Zhuo ","Teng ","Lu ","Lu ","Jian ","Tuo ","Ying ","Yu ","Lai ","Long ","Shinshi ","Lian ","Lan ","Qian ","Yue ","Zhong ","Qu ","Lian ","Bian ","Duan ","Zuan ","Li ","Si ","Luo ","Ying ","Yue ","Zhuo ","Xu ","Mi ","Di ","Fan ","Shen ","Zhe ","Shen ","Nu ","Xie ","Lei ","Xian ","Zi ","Ni ","Cun ","[?] ","Qian ","Kume ","Bi ","Ban ","Wu ","Sha ","Kang ","Rou ","Fen ","Bi ","Cui ","[?] ","Li ","Chi ","Nukamiso ","Ro ","Ba ","Li ","Gan ","Ju ","Po ","Mo ","Cu ","Nian ","Zhou ","Li ","Su ","Tiao ","Li ","Qi ","Su ","Hong ","Tong ","Zi ","Ce ","Yue ","Zhou ","Lin ","Zhuang ","Bai ","[?] ","Fen ","Ji ","[?] ","Sukumo ","Liang ","Xian ","Fu ","Liang ","Can ","Geng ","Li ","Yue ","Lu ","Ju ","Qi ","Cui ","Bai ","Zhang ","Lin ","Zong ","Jing ","Guo ","Kouji ","San ","San ","Tang ","Bian ","Rou ","Mian ","Hou ","Xu ","Zong ","Hu ","Jian ","Zan ","Ci ","Li ","Xie ","Fu ","Ni ","Bei ","Gu ","Xiu ","Gao ","Tang ","Qiu ","Sukumo ","Cao ","Zhuang ","Tang ","Mi ","San ","Fen ","Zao ","Kang ","Jiang ","Mo ","San ","San ","Nuo ","Xi ","Liang ","Jiang ","Kuai ","Bo ","Huan ","[?] ","Zong ","Xian ","Nuo ","Tuan ","Nie ","Li ","Zuo ","Di ","Nie ","Tiao ","Lan ","Mi ","Jiao ","Jiu ","Xi ","Gong ","Zheng ","Jiu ","You "]});var N8=m((HKe,A8)=>{A8.exports=["Ji ","Cha ","Zhou ","Xun ","Yue ","Hong ","Yu ","He ","Wan ","Ren ","Wen ","Wen ","Qiu ","Na ","Zi ","Tou ","Niu ","Fou ","Jie ","Shu ","Chun ","Pi ","Yin ","Sha ","Hong ","Zhi ","Ji ","Fen ","Yun ","Ren ","Dan ","Jin ","Su ","Fang ","Suo ","Cui ","Jiu ","Zha ","Kinu ","Jin ","Fu ","Zhi ","Ci ","Zi ","Chou ","Hong ","Zha ","Lei ","Xi ","Fu ","Xie ","Shen ","Bei ","Zhu ","Qu ","Ling ","Zhu ","Shao ","Gan ","Yang ","Fu ","Tuo ","Zhen ","Dai ","Zhuo ","Shi ","Zhong ","Xian ","Zu ","Jiong ","Ban ","Ju ","Mo ","Shu ","Zui ","Wata ","Jing ","Ren ","Heng ","Xie ","Jie ","Zhu ","Chou ","Gua ","Bai ","Jue ","Kuang ","Hu ","Ci ","Geng ","Geng ","Tao ","Xie ","Ku ","Jiao ","Quan ","Gai ","Luo ","Xuan ","Bing ","Xian ","Fu ","Gei ","Tong ","Rong ","Tiao ","Yin ","Lei ","Xie ","Quan ","Xu ","Lun ","Die ","Tong ","Si ","Jiang ","Xiang ","Hui ","Jue ","Zhi ","Jian ","Juan ","Chi ","Mian ","Zhen ","Lu ","Cheng ","Qiu ","Shu ","Bang ","Tong ","Xiao ","Wan ","Qin ","Geng ","Xiu ","Ti ","Xiu ","Xie ","Hong ","Xi ","Fu ","Ting ","Sui ","Dui ","Kun ","Fu ","Jing ","Hu ","Zhi ","Yan ","Jiong ","Feng ","Ji ","Sok ","Kase ","Zong ","Lin ","Duo ","Li ","Lu ","Liang ","Chou ","Quan ","Shao ","Qi ","Qi ","Zhun ","Qi ","Wan ","Qian ","Xian ","Shou ","Wei ","Qi ","Tao ","Wan ","Gang ","Wang ","Beng ","Zhui ","Cai ","Guo ","Cui ","Lun ","Liu ","Qi ","Zhan ","Bei ","Chuo ","Ling ","Mian ","Qi ","Qie ","Tan ","Zong ","Gun ","Zou ","Yi ","Zi ","Xing ","Liang ","Jin ","Fei ","Rui ","Min ","Yu ","Zong ","Fan ","Lu ","Xu ","Yingl ","Zhang ","Kasuri ","Xu ","Xiang ","Jian ","Ke ","Xian ","Ruan ","Mian ","Qi ","Duan ","Zhong ","Di ","Min ","Miao ","Yuan ","Xie ","Bao ","Si ","Qiu ","Bian ","Huan ","Geng ","Cong ","Mian ","Wei ","Fu ","Wei ","Yu ","Gou ","Miao ","Xie ","Lian ","Zong ","Bian ","Yun ","Yin ","Ti ","Gua ","Zhi ","Yun ","Cheng ","Chan ","Dai "]});var q8=m((qKe,H8)=>{H8.exports=["Xia ","Yuan ","Zong ","Xu ","Nawa ","Odoshi ","Geng ","Sen ","Ying ","Jin ","Yi ","Zhui ","Ni ","Bang ","Gu ","Pan ","Zhou ","Jian ","Cuo ","Quan ","Shuang ","Yun ","Xia ","Shuai ","Xi ","Rong ","Tao ","Fu ","Yun ","Zhen ","Gao ","Ru ","Hu ","Zai ","Teng ","Xian ","Su ","Zhen ","Zong ","Tao ","Horo ","Cai ","Bi ","Feng ","Cu ","Li ","Suo ","Yin ","Xi ","Zong ","Lei ","Zhuan ","Qian ","Man ","Zhi ","Lu ","Mo ","Piao ","Lian ","Mi ","Xuan ","Zong ","Ji ","Shan ","Sui ","Fan ","Shuai ","Beng ","Yi ","Sao ","Mou ","Zhou ","Qiang ","Hun ","Sem ","Xi ","Jung ","Xiu ","Ran ","Xuan ","Hui ","Qiao ","Zeng ","Zuo ","Zhi ","Shan ","San ","Lin ","Yu ","Fan ","Liao ","Chuo ","Zun ","Jian ","Rao ","Chan ","Rui ","Xiu ","Hui ","Hua ","Zuan ","Xi ","Qiang ","Un ","Da ","Sheng ","Hui ","Xi ","Se ","Jian ","Jiang ","Huan ","Zao ","Cong ","Jie ","Jiao ","Bo ","Chan ","Yi ","Nao ","Sui ","Yi ","Shai ","Xu ","Ji ","Bin ","Qian ","Lan ","Pu ","Xun ","Zuan ","Qi ","Peng ","Li ","Mo ","Lei ","Xie ","Zuan ","Kuang ","You ","Xu ","Lei ","Xian ","Chan ","Kou ","Lu ","Chan ","Ying ","Cai ","Xiang ","Xian ","Zui ","Zuan ","Luo ","Xi ","Dao ","Lan ","Lei ","Lian ","Si ","Jiu ","Yu ","Hong ","Zhou ","Xian ","He ","Yue ","Ji ","Wan ","Kuang ","Ji ","Ren ","Wei ","Yun ","Hong ","Chun ","Pi ","Sha ","Gang ","Na ","Ren ","Zong ","Lun ","Fen ","Zhi ","Wen ","Fang ","Zhu ","Yin ","Niu ","Shu ","Xian ","Gan ","Xie ","Fu ","Lian ","Zu ","Shen ","Xi ","Zhi ","Zhong ","Zhou ","Ban ","Fu ","Zhuo ","Shao ","Yi ","Jing ","Dai ","Bang ","Rong ","Jie ","Ku ","Rao ","Die ","Heng ","Hui ","Gei ","Xuan ","Jiang ","Luo ","Jue ","Jiao ","Tong ","Geng ","Xiao ","Juan ","Xiu ","Xi ","Sui ","Tao ","Ji ","Ti ","Ji ","Xu ","Ling ","[?] ","Xu ","Qi ","Fei ","Chuo ","Zhang ","Gun ","Sheng ","Wei ","Mian ","Shou ","Beng ","Chou ","Tao ","Liu ","Quan ","Zong ","Zhan ","Wan ","Lu "]});var Y8=m((BKe,B8)=>{B8.exports=["Zhui ","Zi ","Ke ","Xiang ","Jian ","Mian ","Lan ","Ti ","Miao ","Qi ","Yun ","Hui ","Si ","Duo ","Duan ","Bian ","Xian ","Gou ","Zhui ","Huan ","Di ","Lu ","Bian ","Min ","Yuan ","Jin ","Fu ","Ru ","Zhen ","Feng ","Shuai ","Gao ","Chan ","Li ","Yi ","Jian ","Bin ","Piao ","Man ","Lei ","Ying ","Suo ","Mou ","Sao ","Xie ","Liao ","Shan ","Zeng ","Jiang ","Qian ","Zao ","Huan ","Jiao ","Zuan ","Fou ","Xie ","Gang ","Fou ","Que ","Fou ","Kaakeru ","Bo ","Ping ","Hou ","[?] ","Gang ","Ying ","Ying ","Qing ","Xia ","Guan ","Zun ","Tan ","Chang ","Qi ","Weng ","Ying ","Lei ","Tan ","Lu ","Guan ","Wang ","Wang ","Gang ","Wang ","Han ","[?] ","Luo ","Fu ","Mi ","Fa ","Gu ","Zhu ","Ju ","Mao ","Gu ","Min ","Gang ","Ba ","Gua ","Ti ","Juan ","Fu ","Lin ","Yan ","Zhao ","Zui ","Gua ","Zhuo ","Yu ","Zhi ","An ","Fa ","Nan ","Shu ","Si ","Pi ","Ma ","Liu ","Ba ","Fa ","Li ","Chao ","Wei ","Bi ","Ji ","Zeng ","Tong ","Liu ","Ji ","Juan ","Mi ","Zhao ","Luo ","Pi ","Ji ","Ji ","Luan ","Yang ","Mie ","Qiang ","Ta ","Mei ","Yang ","You ","You ","Fen ","Ba ","Gao ","Yang ","Gu ","Qiang ","Zang ","Gao ","Ling ","Yi ","Zhu ","Di ","Xiu ","Qian ","Yi ","Xian ","Rong ","Qun ","Qun ","Qian ","Huan ","Zui ","Xian ","Yi ","Yashinau ","Qiang ","Xian ","Yu ","Geng ","Jie ","Tang ","Yuan ","Xi ","Fan ","Shan ","Fen ","Shan ","Lian ","Lei ","Geng ","Nou ","Qiang ","Chan ","Yu ","Gong ","Yi ","Chong ","Weng ","Fen ","Hong ","Chi ","Chi ","Cui ","Fu ","Xia ","Pen ","Yi ","La ","Yi ","Pi ","Ling ","Liu ","Zhi ","Qu ","Xi ","Xie ","Xiang ","Xi ","Xi ","Qi ","Qiao ","Hui ","Hui ","Xiao ","Se ","Hong ","Jiang ","Di ","Cui ","Fei ","Tao ","Sha ","Chi ","Zhu ","Jian ","Xuan ","Shi ","Pian ","Zong ","Wan ","Hui ","Hou ","He ","He ","Han ","Ao ","Piao ","Yi ","Lian ","Qu ","[?] ","Lin ","Pen ","Qiao ","Ao ","Fan ","Yi ","Hui ","Xuan ","Dao "]});var Z8=m((YKe,W8)=>{W8.exports=["Yao ","Lao ","[?] ","Kao ","Mao ","Zhe ","Qi ","Gou ","Gou ","Gou ","Die ","Die ","Er ","Shua ","Ruan ","Er ","Nai ","Zhuan ","Lei ","Ting ","Zi ","Geng ","Chao ","Hao ","Yun ","Pa ","Pi ","Chi ","Si ","Chu ","Jia ","Ju ","He ","Chu ","Lao ","Lun ","Ji ","Tang ","Ou ","Lou ","Nou ","Gou ","Pang ","Ze ","Lou ","Ji ","Lao ","Huo ","You ","Mo ","Huai ","Er ","Zhe ","Ting ","Ye ","Da ","Song ","Qin ","Yun ","Chi ","Dan ","Dan ","Hong ","Geng ","Zhi ","[?] ","Nie ","Dan ","Zhen ","Che ","Ling ","Zheng ","You ","Wa ","Liao ","Long ","Zhi ","Ning ","Tiao ","Er ","Ya ","Die ","Gua ","[?] ","Lian ","Hao ","Sheng ","Lie ","Pin ","Jing ","Ju ","Bi ","Di ","Guo ","Wen ","Xu ","Ping ","Cong ","Shikato ","[?] ","Ting ","Yu ","Cong ","Kui ","Tsuraneru ","Kui ","Cong ","Lian ","Weng ","Kui ","Lian ","Lian ","Cong ","Ao ","Sheng ","Song ","Ting ","Kui ","Nie ","Zhi ","Dan ","Ning ","Qie ","Ji ","Ting ","Ting ","Long ","Yu ","Yu ","Zhao ","Si ","Su ","Yi ","Su ","Si ","Zhao ","Zhao ","Rou ","Yi ","Le ","Ji ","Qiu ","Ken ","Cao ","Ge ","Di ","Huan ","Huang ","Yi ","Ren ","Xiao ","Ru ","Zhou ","Yuan ","Du ","Gang ","Rong ","Gan ","Cha ","Wo ","Chang ","Gu ","Zhi ","Han ","Fu ","Fei ","Fen ","Pei ","Pang ","Jian ","Fang ","Zhun ","You ","Na ","Hang ","Ken ","Ran ","Gong ","Yu ","Wen ","Yao ","Jin ","Pi ","Qian ","Xi ","Xi ","Fei ","Ken ","Jing ","Tai ","Shen ","Zhong ","Zhang ","Xie ","Shen ","Wei ","Zhou ","Die ","Dan ","Fei ","Ba ","Bo ","Qu ","Tian ","Bei ","Gua ","Tai ","Zi ","Ku ","Zhi ","Ni ","Ping ","Zi ","Fu ","Pang ","Zhen ","Xian ","Zuo ","Pei ","Jia ","Sheng ","Zhi ","Bao ","Mu ","Qu ","Hu ","Ke ","Yi ","Yin ","Xu ","Yang ","Long ","Dong ","Ka ","Lu ","Jing ","Nu ","Yan ","Pang ","Kua ","Yi ","Guang ","Gai ","Ge ","Dong ","Zhi ","Xiao ","Xiong ","Xiong ","Er ","E ","Xing ","Pian ","Neng ","Zi ","Gui "]});var $8=m((WKe,J8)=>{J8.exports=["Cheng ","Tiao ","Zhi ","Cui ","Mei ","Xie ","Cui ","Xie ","Mo ","Mai ","Ji ","Obiyaakasu ","[?] ","Kuai ","Sa ","Zang ","Qi ","Nao ","Mi ","Nong ","Luan ","Wan ","Bo ","Wen ","Guan ","Qiu ","Jiao ","Jing ","Rou ","Heng ","Cuo ","Lie ","Shan ","Ting ","Mei ","Chun ","Shen ","Xie ","De ","Zui ","Cu ","Xiu ","Xin ","Tuo ","Pao ","Cheng ","Nei ","Fu ","Dou ","Tuo ","Niao ","Noy ","Pi ","Gu ","Gua ","Li ","Lian ","Zhang ","Cui ","Jie ","Liang ","Zhou ","Pi ","Biao ","Lun ","Pian ","Guo ","Kui ","Chui ","Dan ","Tian ","Nei ","Jing ","Jie ","La ","Yi ","An ","Ren ","Shen ","Chuo ","Fu ","Fu ","Ju ","Fei ","Qiang ","Wan ","Dong ","Pi ","Guo ","Zong ","Ding ","Wu ","Mei ","Ruan ","Zhuan ","Zhi ","Cou ","Gua ","Ou ","Di ","An ","Xing ","Nao ","Yu ","Chuan ","Nan ","Yun ","Zhong ","Rou ","E ","Sai ","Tu ","Yao ","Jian ","Wei ","Jiao ","Yu ","Jia ","Duan ","Bi ","Chang ","Fu ","Xian ","Ni ","Mian ","Wa ","Teng ","Tui ","Bang ","Qian ","Lu ","Wa ","Sou ","Tang ","Su ","Zhui ","Ge ","Yi ","Bo ","Liao ","Ji ","Pi ","Xie ","Gao ","Lu ","Bin ","Ou ","Chang ","Lu ","Guo ","Pang ","Chuai ","Piao ","Jiang ","Fu ","Tang ","Mo ","Xi ","Zhuan ","Lu ","Jiao ","Ying ","Lu ","Zhi ","Tara ","Chun ","Lian ","Tong ","Peng ","Ni ","Zha ","Liao ","Cui ","Gui ","Xiao ","Teng ","Fan ","Zhi ","Jiao ","Shan ","Wu ","Cui ","Run ","Xiang ","Sui ","Fen ","Ying ","Tan ","Zhua ","Dan ","Kuai ","Nong ","Tun ","Lian ","Bi ","Yong ","Jue ","Chu ","Yi ","Juan ","La ","Lian ","Sao ","Tun ","Gu ","Qi ","Cui ","Bin ","Xun ","Ru ","Huo ","Zang ","Xian ","Biao ","Xing ","Kuan ","La ","Yan ","Lu ","Huo ","Zang ","Luo ","Qu ","Zang ","Luan ","Ni ","Zang ","Chen ","Qian ","Wo ","Guang ","Zang ","Lin ","Guang ","Zi ","Jiao ","Nie ","Chou ","Ji ","Gao ","Chou ","Mian ","Nie ","Zhi ","Zhi ","Ge ","Jian ","Die ","Zhi ","Xiu ","Tai ","Zhen ","Jiu ","Xian ","Yu ","Cha "]});var U8=m((ZKe,X8)=>{X8.exports=["Yao ","Yu ","Chong ","Xi ","Xi ","Jiu ","Yu ","Yu ","Xing ","Ju ","Jiu ","Xin ","She ","She ","Yadoru ","Jiu ","Shi ","Tan ","Shu ","Shi ","Tian ","Dan ","Pu ","Pu ","Guan ","Hua ","Tan ","Chuan ","Shun ","Xia ","Wu ","Zhou ","Dao ","Gang ","Shan ","Yi ","[?] ","Pa ","Tai ","Fan ","Ban ","Chuan ","Hang ","Fang ","Ban ","Que ","Hesaki ","Zhong ","Jian ","Cang ","Ling ","Zhu ","Ze ","Duo ","Bo ","Xian ","Ge ","Chuan ","Jia ","Lu ","Hong ","Pang ","Xi ","[?] ","Fu ","Zao ","Feng ","Li ","Shao ","Yu ","Lang ","Ting ","[?] ","Wei ","Bo ","Meng ","Nian ","Ju ","Huang ","Shou ","Zong ","Bian ","Mao ","Die ","[?] ","Bang ","Cha ","Yi ","Sao ","Cang ","Cao ","Lou ","Dai ","Sori ","Yao ","Tong ","Yofune ","Dang ","Tan ","Lu ","Yi ","Jie ","Jian ","Huo ","Meng ","Qi ","Lu ","Lu ","Chan ","Shuang ","Gen ","Liang ","Jian ","Jian ","Se ","Yan ","Fu ","Ping ","Yan ","Yan ","Cao ","Cao ","Yi ","Le ","Ting ","Qiu ","Ai ","Nai ","Tiao ","Jiao ","Jie ","Peng ","Wan ","Yi ","Chai ","Mian ","Mie ","Gan ","Qian ","Yu ","Yu ","Shuo ","Qiong ","Tu ","Xia ","Qi ","Mang ","Zi ","Hui ","Sui ","Zhi ","Xiang ","Bi ","Fu ","Tun ","Wei ","Wu ","Zhi ","Qi ","Shan ","Wen ","Qian ","Ren ","Fou ","Kou ","Jie ","Lu ","Xu ","Ji ","Qin ","Qi ","Yuan ","Fen ","Ba ","Rui ","Xin ","Ji ","Hua ","Hua ","Fang ","Wu ","Jue ","Gou ","Zhi ","Yun ","Qin ","Ao ","Chu ","Mao ","Ya ","Fei ","Reng ","Hang ","Cong ","Yin ","You ","Bian ","Yi ","Susa ","Wei ","Li ","Pi ","E ","Xian ","Chang ","Cang ","Meng ","Su ","Yi ","Yuan ","Ran ","Ling ","Tai ","Tiao ","Di ","Miao ","Qiong ","Li ","Yong ","Ke ","Mu ","Pei ","Bao ","Gou ","Min ","Yi ","Yi ","Ju ","Pi ","Ruo ","Ku ","Zhu ","Ni ","Bo ","Bing ","Shan ","Qiu ","Yao ","Xian ","Ben ","Hong ","Ying ","Zha ","Dong ","Ju ","Die ","Nie ","Gan ","Hu ","Ping ","Mei ","Fu ","Sheng ","Gu ","Bi ","Wei "]});var K8=m((JKe,G8)=>{G8.exports=["Fu ","Zhuo ","Mao ","Fan ","Qie ","Mao ","Mao ","Ba ","Zi ","Mo ","Zi ","Di ","Chi ","Ji ","Jing ","Long ","[?] ","Niao ","[?] ","Xue ","Ying ","Qiong ","Ge ","Ming ","Li ","Rong ","Yin ","Gen ","Qian ","Chai ","Chen ","Yu ","Xiu ","Zi ","Lie ","Wu ","Ji ","Kui ","Ce ","Chong ","Ci ","Gou ","Guang ","Mang ","Chi ","Jiao ","Jiao ","Fu ","Yu ","Zhu ","Zi ","Jiang ","Hui ","Yin ","Cha ","Fa ","Rong ","Ru ","Chong ","Mang ","Tong ","Zhong ","[?] ","Zhu ","Xun ","Huan ","Kua ","Quan ","Gai ","Da ","Jing ","Xing ","Quan ","Cao ","Jing ","Er ","An ","Shou ","Chi ","Ren ","Jian ","Ti ","Huang ","Ping ","Li ","Jin ","Lao ","Shu ","Zhuang ","Da ","Jia ","Rao ","Bi ","Ze ","Qiao ","Hui ","Qi ","Dang ","[?] ","Rong ","Hun ","Ying ","Luo ","Ying ","Xun ","Jin ","Sun ","Yin ","Mai ","Hong ","Zhou ","Yao ","Du ","Wei ","Chu ","Dou ","Fu ","Ren ","Yin ","He ","Bi ","Bu ","Yun ","Di ","Tu ","Sui ","Sui ","Cheng ","Chen ","Wu ","Bie ","Xi ","Geng ","Li ","Fu ","Zhu ","Mo ","Li ","Zhuang ","Ji ","Duo ","Qiu ","Sha ","Suo ","Chen ","Feng ","Ju ","Mei ","Meng ","Xing ","Jing ","Che ","Xin ","Jun ","Yan ","Ting ","Diao ","Cuo ","Wan ","Han ","You ","Cuo ","Jia ","Wang ","You ","Niu ","Shao ","Xian ","Lang ","Fu ","E ","Mo ","Wen ","Jie ","Nan ","Mu ","Kan ","Lai ","Lian ","Shi ","Wo ","Usagi ","Lian ","Huo ","You ","Ying ","Ying ","Nuc ","Chun ","Mang ","Mang ","Ci ","Wan ","Jing ","Di ","Qu ","Dong ","Jian ","Zou ","Gu ","La ","Lu ","Ju ","Wei ","Jun ","Nie ","Kun ","He ","Pu ","Zi ","Gao ","Guo ","Fu ","Lun ","Chang ","Chou ","Song ","Chui ","Zhan ","Men ","Cai ","Ba ","Li ","Tu ","Bo ","Han ","Bao ","Qin ","Juan ","Xi ","Qin ","Di ","Jie ","Pu ","Dang ","Jin ","Zhao ","Tai ","Geng ","Hua ","Gu ","Ling ","Fei ","Jin ","An ","Wang ","Beng ","Zhou ","Yan ","Ju ","Jian ","Lin ","Tan ","Shu ","Tian ","Dao "]});var Q8=m(($Ke,z8)=>{z8.exports=["Hu ","Qi ","He ","Cui ","Tao ","Chun ","Bei ","Chang ","Huan ","Fei ","Lai ","Qi ","Meng ","Ping ","Wei ","Dan ","Sha ","Huan ","Yan ","Yi ","Tiao ","Qi ","Wan ","Ce ","Nai ","Kutabireru ","Tuo ","Jiu ","Tie ","Luo ","[?] ","[?] ","Meng ","[?] ","Yaji ","[?] ","Ying ","Ying ","Ying ","Xiao ","Sa ","Qiu ","Ke ","Xiang ","Wan ","Yu ","Yu ","Fu ","Lian ","Xuan ","Yuan ","Nan ","Ze ","Wo ","Chun ","Xiao ","Yu ","Pian ","Mao ","An ","E ","Luo ","Ying ","Huo ","Gua ","Jiang ","Mian ","Zuo ","Zuo ","Ju ","Bao ","Rou ","Xi ","Xie ","An ","Qu ","Jian ","Fu ","Lu ","Jing ","Pen ","Feng ","Hong ","Hong ","Hou ","Yan ","Tu ","Zhu ","Zi ","Xiang ","Shen ","Ge ","Jie ","Jing ","Mi ","Huang ","Shen ","Pu ","Gai ","Dong ","Zhou ","Qian ","Wei ","Bo ","Wei ","Pa ","Ji ","Hu ","Zang ","Jia ","Duan ","Yao ","Jun ","Cong ","Quan ","Wei ","Xian ","Kui ","Ting ","Hun ","Xi ","Shi ","Qi ","Lan ","Zong ","Yao ","Yuan ","Mei ","Yun ","Shu ","Di ","Zhuan ","Guan ","Sukumo ","Xue ","Chan ","Kai ","Kui ","[?] ","Jiang ","Lou ","Wei ","Pai ","[?] ","Sou ","Yin ","Shi ","Chun ","Shi ","Yun ","Zhen ","Lang ","Nu ","Meng ","He ","Que ","Suan ","Yuan ","Li ","Ju ","Xi ","Pang ","Chu ","Xu ","Tu ","Liu ","Wo ","Zhen ","Qian ","Zu ","Po ","Cuo ","Yuan ","Chu ","Yu ","Kuai ","Pan ","Pu ","Pu ","Na ","Shuo ","Xi ","Fen ","Yun ","Zheng ","Jian ","Ji ","Ruo ","Cang ","En ","Mi ","Hao ","Sun ","Zhen ","Ming ","Sou ","Xu ","Liu ","Xi ","Gu ","Lang ","Rong ","Weng ","Gai ","Cuo ","Shi ","Tang ","Luo ","Ru ","Suo ","Xian ","Bei ","Yao ","Gui ","Bi ","Zong ","Gun ","Za ","Xiu ","Ce ","Hai ","Lan ","[?] ","Ji ","Li ","Can ","Lang ","Yu ","[?] ","Ying ","Mo ","Diao ","Tiao ","Mao ","Tong ","Zhu ","Peng ","An ","Lian ","Cong ","Xi ","Ping ","Qiu ","Jin ","Chun ","Jie ","Wei ","Tui ","Cao ","Yu ","Yi ","Ji ","Liao ","Bi ","Lu ","Su "]});var e5=m((XKe,V8)=>{V8.exports=["Bu ","Zhang ","Luo ","Jiang ","Man ","Yan ","Ling ","Ji ","Piao ","Gun ","Han ","Di ","Su ","Lu ","She ","Shang ","Di ","Mie ","Xun ","Man ","Bo ","Di ","Cuo ","Zhe ","Sen ","Xuan ","Wei ","Hu ","Ao ","Mi ","Lou ","Cu ","Zhong ","Cai ","Po ","Jiang ","Mi ","Cong ","Niao ","Hui ","Jun ","Yin ","Jian ","Yan ","Shu ","Yin ","Kui ","Chen ","Hu ","Sha ","Kou ","Qian ","Ma ","Zang ","Sonoko ","Qiang ","Dou ","Lian ","Lin ","Kou ","Ai ","Bi ","Li ","Wei ","Ji ","Xun ","Sheng ","Fan ","Meng ","Ou ","Chan ","Dian ","Xun ","Jiao ","Rui ","Rui ","Lei ","Yu ","Qiao ","Chu ","Hua ","Jian ","Mai ","Yun ","Bao ","You ","Qu ","Lu ","Rao ","Hui ","E ","Teng ","Fei ","Jue ","Zui ","Fa ","Ru ","Fen ","Kui ","Shun ","Rui ","Ya ","Xu ","Fu ","Jue ","Dang ","Wu ","Tong ","Si ","Xiao ","Xi ","Long ","Yun ","[?] ","Qi ","Jian ","Yun ","Sun ","Ling ","Yu ","Xia ","Yong ","Ji ","Hong ","Si ","Nong ","Lei ","Xuan ","Yun ","Yu ","Xi ","Hao ","Bo ","Hao ","Ai ","Wei ","Hui ","Wei ","Ji ","Ci ","Xiang ","Luan ","Mie ","Yi ","Leng ","Jiang ","Can ","Shen ","Qiang ","Lian ","Ke ","Yuan ","Da ","Ti ","Tang ","Xie ","Bi ","Zhan ","Sun ","Lian ","Fan ","Ding ","Jie ","Gu ","Xie ","Shu ","Jian ","Kao ","Hong ","Sa ","Xin ","Xun ","Yao ","Hie ","Sou ","Shu ","Xun ","Dui ","Pin ","Wei ","Neng ","Chou ","Mai ","Ru ","Piao ","Tai ","Qi ","Zao ","Chen ","Zhen ","Er ","Ni ","Ying ","Gao ","Cong ","Xiao ","Qi ","Fa ","Jian ","Xu ","Kui ","Jie ","Bian ","Diao ","Mi ","Lan ","Jin ","Cang ","Miao ","Qiong ","Qie ","Xian ","[?] ","Ou ","Xian ","Su ","Lu ","Yi ","Xu ","Xie ","Li ","Yi ","La ","Lei ","Xiao ","Di ","Zhi ","Bei ","Teng ","Yao ","Mo ","Huan ","Piao ","Fan ","Sou ","Tan ","Tui ","Qiong ","Qiao ","Wei ","Liu ","Hui ","[?] ","Gao ","Yun ","[?] ","Li ","Shu ","Chu ","Ai ","Lin ","Zao ","Xuan ","Chen ","Lai ","Huo "]});var i5=m((UKe,t5)=>{t5.exports=["Tuo ","Wu ","Rui ","Rui ","Qi ","Heng ","Lu ","Su ","Tui ","Mang ","Yun ","Pin ","Yu ","Xun ","Ji ","Jiong ","Xian ","Mo ","Hagi ","Su ","Jiong ","[?] ","Nie ","Bo ","Rang ","Yi ","Xian ","Yu ","Ju ","Lian ","Lian ","Yin ","Qiang ","Ying ","Long ","Tong ","Wei ","Yue ","Ling ","Qu ","Yao ","Fan ","Mi ","Lan ","Kui ","Lan ","Ji ","Dang ","Katsura ","Lei ","Lei ","Hua ","Feng ","Zhi ","Wei ","Kui ","Zhan ","Huai ","Li ","Ji ","Mi ","Lei ","Huai ","Luo ","Ji ","Kui ","Lu ","Jian ","San ","[?] ","Lei ","Quan ","Xiao ","Yi ","Luan ","Men ","Bie ","Hu ","Hu ","Lu ","Nue ","Lu ","Si ","Xiao ","Qian ","Chu ","Hu ","Xu ","Cuo ","Fu ","Xu ","Xu ","Lu ","Hu ","Yu ","Hao ","Jiao ","Ju ","Guo ","Bao ","Yan ","Zhan ","Zhan ","Kui ","Ban ","Xi ","Shu ","Chong ","Qiu ","Diao ","Ji ","Qiu ","Cheng ","Shi ","[?] ","Di ","Zhe ","She ","Yu ","Gan ","Zi ","Hong ","Hui ","Meng ","Ge ","Sui ","Xia ","Chai ","Shi ","Yi ","Ma ","Xiang ","Fang ","E ","Pa ","Chi ","Qian ","Wen ","Wen ","Rui ","Bang ","Bi ","Yue ","Yue ","Jun ","Qi ","Ran ","Yin ","Qi ","Tian ","Yuan ","Jue ","Hui ","Qin ","Qi ","Zhong ","Ya ","Ci ","Mu ","Wang ","Fen ","Fen ","Hang ","Gong ","Zao ","Fu ","Ran ","Jie ","Fu ","Chi ","Dou ","Piao ","Xian ","Ni ","Te ","Qiu ","You ","Zha ","Ping ","Chi ","You ","He ","Han ","Ju ","Li ","Fu ","Ran ","Zha ","Gou ","Pi ","Bo ","Xian ","Zhu ","Diao ","Bie ","Bing ","Gu ","Ran ","Qu ","She ","Tie ","Ling ","Gu ","Dan ","Gu ","Ying ","Li ","Cheng ","Qu ","Mou ","Ge ","Ci ","Hui ","Hui ","Mang ","Fu ","Yang ","Wa ","Lie ","Zhu ","Yi ","Xian ","Kuo ","Jiao ","Li ","Yi ","Ping ","Ji ","Ha ","She ","Yi ","Wang ","Mo ","Qiong ","Qie ","Gui ","Gong ","Zhi ","Man ","Ebi ","Zhi ","Jia ","Rao ","Si ","Qi ","Xing ","Lie ","Qiu ","Shao ","Yong ","Jia ","Shui ","Che ","Bai ","E ","Han "]});var r5=m((GKe,n5)=>{n5.exports=["Shu ","Xuan ","Feng ","Shen ","Zhen ","Fu ","Xian ","Zhe ","Wu ","Fu ","Li ","Lang ","Bi ","Chu ","Yuan ","You ","Jie ","Dan ","Yan ","Ting ","Dian ","Shui ","Hui ","Gua ","Zhi ","Song ","Fei ","Ju ","Mi ","Qi ","Qi ","Yu ","Jun ","Zha ","Meng ","Qiang ","Si ","Xi ","Lun ","Li ","Die ","Tiao ","Tao ","Kun ","Gan ","Han ","Yu ","Bang ","Fei ","Pi ","Wei ","Dun ","Yi ","Yuan ","Su ","Quan ","Qian ","Rui ","Ni ","Qing ","Wei ","Liang ","Guo ","Wan ","Dong ","E ","Ban ","Di ","Wang ","Can ","Yang ","Ying ","Guo ","Chan ","[?] ","La ","Ke ","Ji ","He ","Ting ","Mai ","Xu ","Mian ","Yu ","Jie ","Shi ","Xuan ","Huang ","Yan ","Bian ","Rou ","Wei ","Fu ","Yuan ","Mei ","Wei ","Fu ","Ruan ","Xie ","You ","Qiu ","Mao ","Xia ","Ying ","Shi ","Chong ","Tang ","Zhu ","Zong ","Ti ","Fu ","Yuan ","Hui ","Meng ","La ","Du ","Hu ","Qiu ","Die ","Li ","Gua ","Yun ","Ju ","Nan ","Lou ","Qun ","Rong ","Ying ","Jiang ","[?] ","Lang ","Pang ","Si ","Xi ","Ci ","Xi ","Yuan ","Weng ","Lian ","Sou ","Ban ","Rong ","Rong ","Ji ","Wu ","Qiu ","Han ","Qin ","Yi ","Bi ","Hua ","Tang ","Yi ","Du ","Nai ","He ","Hu ","Hui ","Ma ","Ming ","Yi ","Wen ","Ying ","Teng ","Yu ","Cang ","So ","Ebi ","Man ","[?] ","Shang ","Zhe ","Cao ","Chi ","Di ","Ao ","Lu ","Wei ","Zhi ","Tang ","Chen ","Piao ","Qu ","Pi ","Yu ","Jian ","Luo ","Lou ","Qin ","Zhong ","Yin ","Jiang ","Shuai ","Wen ","Jiao ","Wan ","Zhi ","Zhe ","Ma ","Ma ","Guo ","Liu ","Mao ","Xi ","Cong ","Li ","Man ","Xiao ","Kamakiri ","Zhang ","Mang ","Xiang ","Mo ","Zui ","Si ","Qiu ","Te ","Zhi ","Peng ","Peng ","Jiao ","Qu ","Bie ","Liao ","Pan ","Gui ","Xi ","Ji ","Zhuan ","Huang ","Fei ","Lao ","Jue ","Jue ","Hui ","Yin ","Chan ","Jiao ","Shan ","Rao ","Xiao ","Mou ","Chong ","Xun ","Si ","[?] ","Cheng ","Dang ","Li ","Xie ","Shan ","Yi ","Jing ","Da ","Chan ","Qi "]});var s5=m((KKe,o5)=>{o5.exports=["Ci ","Xiang ","She ","Luo ","Qin ","Ying ","Chai ","Li ","Ze ","Xuan ","Lian ","Zhu ","Ze ","Xie ","Mang ","Xie ","Qi ","Rong ","Jian ","Meng ","Hao ","Ruan ","Huo ","Zhuo ","Jie ","Bin ","He ","Mie ","Fan ","Lei ","Jie ","La ","Mi ","Li ","Chun ","Li ","Qiu ","Nie ","Lu ","Du ","Xiao ","Zhu ","Long ","Li ","Long ","Feng ","Ye ","Beng ","Shang ","Gu ","Juan ","Ying ","[?] ","Xi ","Can ","Qu ","Quan ","Du ","Can ","Man ","Jue ","Jie ","Zhu ","Zha ","Xie ","Huang ","Niu ","Pei ","Nu ","Xin ","Zhong ","Mo ","Er ","Ke ","Mie ","Xi ","Xing ","Yan ","Kan ","Yuan ","[?] ","Ling ","Xuan ","Shu ","Xian ","Tong ","Long ","Jie ","Xian ","Ya ","Hu ","Wei ","Dao ","Chong ","Wei ","Dao ","Zhun ","Heng ","Qu ","Yi ","Yi ","Bu ","Gan ","Yu ","Biao ","Cha ","Yi ","Shan ","Chen ","Fu ","Gun ","Fen ","Shuai ","Jie ","Na ","Zhong ","Dan ","Ri ","Zhong ","Zhong ","Xie ","Qi ","Xie ","Ran ","Zhi ","Ren ","Qin ","Jin ","Jun ","Yuan ","Mei ","Chai ","Ao ","Niao ","Hui ","Ran ","Jia ","Tuo ","Ling ","Dai ","Bao ","Pao ","Yao ","Zuo ","Bi ","Shao ","Tan ","Ju ","He ","Shu ","Xiu ","Zhen ","Yi ","Pa ","Bo ","Di ","Wa ","Fu ","Gun ","Zhi ","Zhi ","Ran ","Pan ","Yi ","Mao ","Tuo ","Na ","Kou ","Xian ","Chan ","Qu ","Bei ","Gun ","Xi ","Ne ","Bo ","Horo ","Fu ","Yi ","Chi ","Ku ","Ren ","Jiang ","Jia ","Cun ","Mo ","Jie ","Er ","Luo ","Ru ","Zhu ","Gui ","Yin ","Cai ","Lie ","Kamishimo ","Yuki ","Zhuang ","Dang ","[?] ","Kun ","Ken ","Niao ","Shu ","Jia ","Kun ","Cheng ","Li ","Juan ","Shen ","Pou ","Ge ","Yi ","Yu ","Zhen ","Liu ","Qiu ","Qun ","Ji ","Yi ","Bu ","Zhuang ","Shui ","Sha ","Qun ","Li ","Lian ","Lian ","Ku ","Jian ","Fou ","Chan ","Bi ","Gun ","Tao ","Yuan ","Ling ","Chi ","Chang ","Chou ","Duo ","Biao ","Liang ","Chang ","Pei ","Pei ","Fei ","Yuan ","Luo ","Guo ","Yan ","Du ","Xi ","Zhi ","Ju ","Qi "]});var l5=m((zKe,a5)=>{a5.exports=["Ji ","Zhi ","Gua ","Ken ","Che ","Ti ","Ti ","Fu ","Chong ","Xie ","Bian ","Die ","Kun ","Duan ","Xiu ","Xiu ","He ","Yuan ","Bao ","Bao ","Fu ","Yu ","Tuan ","Yan ","Hui ","Bei ","Chu ","Lu ","Ena ","Hitoe ","Yun ","Da ","Gou ","Da ","Huai ","Rong ","Yuan ","Ru ","Nai ","Jiong ","Suo ","Ban ","Tun ","Chi ","Sang ","Niao ","Ying ","Jie ","Qian ","Huai ","Ku ","Lian ","Bao ","Li ","Zhe ","Shi ","Lu ","Yi ","Die ","Xie ","Xian ","Wei ","Biao ","Cao ","Ji ","Jiang ","Sen ","Bao ","Xiang ","Chihaya ","Pu ","Jian ","Zhuan ","Jian ","Zui ","Ji ","Dan ","Za ","Fan ","Bo ","Xiang ","Xin ","Bie ","Rao ","Man ","Lan ","Ao ","Duo ","Gui ","Cao ","Sui ","Nong ","Chan ","Lian ","Bi ","Jin ","Dang ","Shu ","Tan ","Bi ","Lan ","Pu ","Ru ","Zhi ","[?] ","Shu ","Wa ","Shi ","Bai ","Xie ","Bo ","Chen ","Lai ","Long ","Xi ","Xian ","Lan ","Zhe ","Dai ","Tasuki ","Zan ","Shi ","Jian ","Pan ","Yi ","Ran ","Ya ","Xi ","Xi ","Yao ","Feng ","Tan ","[?] ","Biao ","Fu ","Ba ","He ","Ji ","Ji ","Jian ","Guan ","Bian ","Yan ","Gui ","Jue ","Pian ","Mao ","Mi ","Mi ","Mie ","Shi ","Si ","Zhan ","Luo ","Jue ","Mi ","Tiao ","Lian ","Yao ","Zhi ","Jun ","Xi ","Shan ","Wei ","Xi ","Tian ","Yu ","Lan ","E ","Du ","Qin ","Pang ","Ji ","Ming ","Ying ","Gou ","Qu ","Zhan ","Jin ","Guan ","Deng ","Jian ","Luo ","Qu ","Jian ","Wei ","Jue ","Qu ","Luo ","Lan ","Shen ","Di ","Guan ","Jian ","Guan ","Yan ","Gui ","Mi ","Shi ","Zhan ","Lan ","Jue ","Ji ","Xi ","Di ","Tian ","Yu ","Gou ","Jin ","Qu ","Jiao ","Jiu ","Jin ","Cu ","Jue ","Zhi ","Chao ","Ji ","Gu ","Dan ","Zui ","Di ","Shang ","Hua ","Quan ","Ge ","Chi ","Jie ","Gui ","Gong ","Hong ","Jie ","Hun ","Qiu ","Xing ","Su ","Ni ","Ji ","Lu ","Zhi ","Zha ","Bi ","Xing ","Hu ","Shang ","Gong ","Zhi ","Xue ","Chu ","Xi ","Yi ","Lu ","Jue ","Xi ","Yan ","Xi "]});var c5=m((QKe,u5)=>{u5.exports=["Yan ","Yan ","Ding ","Fu ","Qiu ","Qiu ","Jiao ","Hong ","Ji ","Fan ","Xun ","Diao ","Hong ","Cha ","Tao ","Xu ","Jie ","Yi ","Ren ","Xun ","Yin ","Shan ","Qi ","Tuo ","Ji ","Xun ","Yin ","E ","Fen ","Ya ","Yao ","Song ","Shen ","Yin ","Xin ","Jue ","Xiao ","Ne ","Chen ","You ","Zhi ","Xiong ","Fang ","Xin ","Chao ","She ","Xian ","Sha ","Tun ","Xu ","Yi ","Yi ","Su ","Chi ","He ","Shen ","He ","Xu ","Zhen ","Zhu ","Zheng ","Gou ","Zi ","Zi ","Zhan ","Gu ","Fu ","Quan ","Die ","Ling ","Di ","Yang ","Li ","Nao ","Pan ","Zhou ","Gan ","Yi ","Ju ","Ao ","Zha ","Tuo ","Yi ","Qu ","Zhao ","Ping ","Bi ","Xiong ","Qu ","Ba ","Da ","Zu ","Tao ","Zhu ","Ci ","Zhe ","Yong ","Xu ","Xun ","Yi ","Huang ","He ","Shi ","Cha ","Jiao ","Shi ","Hen ","Cha ","Gou ","Gui ","Quan ","Hui ","Jie ","Hua ","Gai ","Xiang ","Wei ","Shen ","Chou ","Tong ","Mi ","Zhan ","Ming ","E ","Hui ","Yan ","Xiong ","Gua ","Er ","Beng ","Tiao ","Chi ","Lei ","Zhu ","Kuang ","Kua ","Wu ","Yu ","Teng ","Ji ","Zhi ","Ren ","Su ","Lang ","E ","Kuang ","E ","Shi ","Ting ","Dan ","Bo ","Chan ","You ","Heng ","Qiao ","Qin ","Shua ","An ","Yu ","Xiao ","Cheng ","Jie ","Xian ","Wu ","Wu ","Gao ","Song ","Pu ","Hui ","Jing ","Shuo ","Zhen ","Shuo ","Du ","Yasashi ","Chang ","Shui ","Jie ","Ke ","Qu ","Cong ","Xiao ","Sui ","Wang ","Xuan ","Fei ","Chi ","Ta ","Yi ","Na ","Yin ","Diao ","Pi ","Chuo ","Chan ","Chen ","Zhun ","Ji ","Qi ","Tan ","Zhui ","Wei ","Ju ","Qing ","Jian ","Zheng ","Ze ","Zou ","Qian ","Zhuo ","Liang ","Jian ","Zhu ","Hao ","Lun ","Shen ","Biao ","Huai ","Pian ","Yu ","Die ","Xu ","Pian ","Shi ","Xuan ","Shi ","Hun ","Hua ","E ","Zhong ","Di ","Xie ","Fu ","Pu ","Ting ","Jian ","Qi ","Yu ","Zi ","Chuan ","Xi ","Hui ","Yin ","An ","Xian ","Nan ","Chen ","Feng ","Zhu ","Yang ","Yan ","Heng ","Xuan ","Ge ","Nuo ","Qi "]});var d5=m((VKe,h5)=>{h5.exports=["Mou ","Ye ","Wei ","[?] ","Teng ","Zou ","Shan ","Jian ","Bo ","Ku ","Huang ","Huo ","Ge ","Ying ","Mi ","Xiao ","Mi ","Xi ","Qiang ","Chen ","Nue ","Ti ","Su ","Bang ","Chi ","Qian ","Shi ","Jiang ","Yuan ","Xie ","Xue ","Tao ","Yao ","Yao ","[?] ","Yu ","Biao ","Cong ","Qing ","Li ","Mo ","Mo ","Shang ","Zhe ","Miu ","Jian ","Ze ","Jie ","Lian ","Lou ","Can ","Ou ","Guan ","Xi ","Zhuo ","Ao ","Ao ","Jin ","Zhe ","Yi ","Hu ","Jiang ","Man ","Chao ","Han ","Hua ","Chan ","Xu ","Zeng ","Se ","Xi ","She ","Dui ","Zheng ","Nao ","Lan ","E ","Ying ","Jue ","Ji ","Zun ","Jiao ","Bo ","Hui ","Zhuan ","Mu ","Zen ","Zha ","Shi ","Qiao ","Tan ","Zen ","Pu ","Sheng ","Xuan ","Zao ","Tan ","Dang ","Sui ","Qian ","Ji ","Jiao ","Jing ","Lian ","Nou ","Yi ","Ai ","Zhan ","Pi ","Hui ","Hua ","Yi ","Yi ","Shan ","Rang ","Nou ","Qian ","Zhui ","Ta ","Hu ","Zhou ","Hao ","Ye ","Ying ","Jian ","Yu ","Jian ","Hui ","Du ","Zhe ","Xuan ","Zan ","Lei ","Shen ","Wei ","Chan ","Li ","Yi ","Bian ","Zhe ","Yan ","E ","Chou ","Wei ","Chou ","Yao ","Chan ","Rang ","Yin ","Lan ","Chen ","Huo ","Zhe ","Huan ","Zan ","Yi ","Dang ","Zhan ","Yan ","Du ","Yan ","Ji ","Ding ","Fu ","Ren ","Ji ","Jie ","Hong ","Tao ","Rang ","Shan ","Qi ","Tuo ","Xun ","Yi ","Xun ","Ji ","Ren ","Jiang ","Hui ","Ou ","Ju ","Ya ","Ne ","Xu ","E ","Lun ","Xiong ","Song ","Feng ","She ","Fang ","Jue ","Zheng ","Gu ","He ","Ping ","Zu ","Shi ","Xiong ","Zha ","Su ","Zhen ","Di ","Zou ","Ci ","Qu ","Zhao ","Bi ","Yi ","Yi ","Kuang ","Lei ","Shi ","Gua ","Shi ","Jie ","Hui ","Cheng ","Zhu ","Shen ","Hua ","Dan ","Gou ","Quan ","Gui ","Xun ","Yi ","Zheng ","Gai ","Xiang ","Cha ","Hun ","Xu ","Zhou ","Jie ","Wu ","Yu ","Qiao ","Wu ","Gao ","You ","Hui ","Kuang ","Shuo ","Song ","Ai ","Qing ","Zhu ","Zou ","Nuo ","Du ","Zhuo ","Fei ","Ke ","Wei "]});var f5=m((eze,g5)=>{g5.exports=["Yu ","Shui ","Shen ","Diao ","Chan ","Liang ","Zhun ","Sui ","Tan ","Shen ","Yi ","Mou ","Chen ","Die ","Huang ","Jian ","Xie ","Nue ","Ye ","Wei ","E ","Yu ","Xuan ","Chan ","Zi ","An ","Yan ","Di ","Mi ","Pian ","Xu ","Mo ","Dang ","Su ","Xie ","Yao ","Bang ","Shi ","Qian ","Mi ","Jin ","Man ","Zhe ","Jian ","Miu ","Tan ","Zen ","Qiao ","Lan ","Pu ","Jue ","Yan ","Qian ","Zhan ","Chen ","Gu ","Qian ","Hong ","Xia ","Jue ","Hong ","Han ","Hong ","Xi ","Xi ","Huo ","Liao ","Han ","Du ","Long ","Dou ","Jiang ","Qi ","Shi ","Li ","Deng ","Wan ","Bi ","Shu ","Xian ","Feng ","Zhi ","Zhi ","Yan ","Yan ","Shi ","Chu ","Hui ","Tun ","Yi ","Tun ","Yi ","Jian ","Ba ","Hou ","E ","Cu ","Xiang ","Huan ","Jian ","Ken ","Gai ","Qu ","Fu ","Xi ","Bin ","Hao ","Yu ","Zhu ","Jia ","[?] ","Xi ","Bo ","Wen ","Huan ","Bin ","Di ","Zong ","Fen ","Yi ","Zhi ","Bao ","Chai ","Han ","Pi ","Na ","Pi ","Gou ","Na ","You ","Diao ","Mo ","Si ","Xiu ","Huan ","Kun ","He ","He ","Mo ","Han ","Mao ","Li ","Ni ","Bi ","Yu ","Jia ","Tuan ","Mao ","Pi ","Xi ","E ","Ju ","Mo ","Chu ","Tan ","Huan ","Jue ","Bei ","Zhen ","Yuan ","Fu ","Cai ","Gong ","Te ","Yi ","Hang ","Wan ","Pin ","Huo ","Fan ","Tan ","Guan ","Ze ","Zhi ","Er ","Zhu ","Shi ","Bi ","Zi ","Er ","Gui ","Pian ","Bian ","Mai ","Dai ","Sheng ","Kuang ","Fei ","Tie ","Yi ","Chi ","Mao ","He ","Bi ","Lu ","Ren ","Hui ","Gai ","Pian ","Zi ","Jia ","Xu ","Zei ","Jiao ","Gai ","Zang ","Jian ","Ying ","Xun ","Zhen ","She ","Bin ","Bin ","Qiu ","She ","Chuan ","Zang ","Zhou ","Lai ","Zan ","Si ","Chen ","Shang ","Tian ","Pei ","Geng ","Xian ","Mai ","Jian ","Sui ","Fu ","Tan ","Cong ","Cong ","Zhi ","Ji ","Zhang ","Du ","Jin ","Xiong ","Shun ","Yun ","Bao ","Zai ","Lai ","Feng ","Cang ","Ji ","Sheng ","Ai ","Zhuan ","Fu ","Gou ","Sai ","Ze ","Liao "]});var m5=m((tze,p5)=>{p5.exports=["Wei ","Bai ","Chen ","Zhuan ","Zhi ","Zhui ","Biao ","Yun ","Zeng ","Tan ","Zan ","Yan ","[?] ","Shan ","Wan ","Ying ","Jin ","Gan ","Xian ","Zang ","Bi ","Du ","Shu ","Yan ","[?] ","Xuan ","Long ","Gan ","Zang ","Bei ","Zhen ","Fu ","Yuan ","Gong ","Cai ","Ze ","Xian ","Bai ","Zhang ","Huo ","Zhi ","Fan ","Tan ","Pin ","Bian ","Gou ","Zhu ","Guan ","Er ","Jian ","Bi ","Shi ","Tie ","Gui ","Kuang ","Dai ","Mao ","Fei ","He ","Yi ","Zei ","Zhi ","Jia ","Hui ","Zi ","Ren ","Lu ","Zang ","Zi ","Gai ","Jin ","Qiu ","Zhen ","Lai ","She ","Fu ","Du ","Ji ","Shu ","Shang ","Si ","Bi ","Zhou ","Geng ","Pei ","Tan ","Lai ","Feng ","Zhui ","Fu ","Zhuan ","Sai ","Ze ","Yan ","Zan ","Yun ","Zeng ","Shan ","Ying ","Gan ","Chi ","Xi ","She ","Nan ","Xiong ","Xi ","Cheng ","He ","Cheng ","Zhe ","Xia ","Tang ","Zou ","Zou ","Li ","Jiu ","Fu ","Zhao ","Gan ","Qi ","Shan ","Qiong ","Qin ","Xian ","Ci ","Jue ","Qin ","Chi ","Ci ","Chen ","Chen ","Die ","Ju ","Chao ","Di ","Se ","Zhan ","Zhu ","Yue ","Qu ","Jie ","Chi ","Chu ","Gua ","Xue ","Ci ","Tiao ","Duo ","Lie ","Gan ","Suo ","Cu ","Xi ","Zhao ","Su ","Yin ","Ju ","Jian ","Que ","Tang ","Chuo ","Cui ","Lu ","Qu ","Dang ","Qiu ","Zi ","Ti ","Qu ","Chi ","Huang ","Qiao ","Qiao ","Yao ","Zao ","Ti ","[?] ","Zan ","Zan ","Zu ","Pa ","Bao ","Ku ","Ke ","Dun ","Jue ","Fu ","Chen ","Jian ","Fang ","Zhi ","Sa ","Yue ","Pa ","Qi ","Yue ","Qiang ","Tuo ","Tai ","Yi ","Nian ","Ling ","Mei ","Ba ","Die ","Ku ","Tuo ","Jia ","Ci ","Pao ","Qia ","Zhu ","Ju ","Die ","Zhi ","Fu ","Pan ","Ju ","Shan ","Bo ","Ni ","Ju ","Li ","Gen ","Yi ","Ji ","Dai ","Xian ","Jiao ","Duo ","Zhu ","Zhuan ","Kua ","Zhuai ","Gui ","Qiong ","Kui ","Xiang ","Chi ","Lu ","Beng ","Zhi ","Jia ","Tiao ","Cai ","Jian ","Ta ","Qiao ","Bi ","Xian ","Duo ","Ji ","Ju ","Ji ","Shu ","Tu "]});var y5=m((ize,b5)=>{b5.exports=["Chu ","Jing ","Nie ","Xiao ","Bo ","Chi ","Qun ","Mou ","Shu ","Lang ","Yong ","Jiao ","Chou ","Qiao ","[?] ","Ta ","Jian ","Qi ","Wo ","Wei ","Zhuo ","Jie ","Ji ","Nie ","Ju ","Ju ","Lun ","Lu ","Leng ","Huai ","Ju ","Chi ","Wan ","Quan ","Ti ","Bo ","Zu ","Qie ","Ji ","Cu ","Zong ","Cai ","Zong ","Peng ","Zhi ","Zheng ","Dian ","Zhi ","Yu ","Duo ","Dun ","Chun ","Yong ","Zhong ","Di ","Zhe ","Chen ","Chuai ","Jian ","Gua ","Tang ","Ju ","Fu ","Zu ","Die ","Pian ","Rou ","Nuo ","Ti ","Cha ","Tui ","Jian ","Dao ","Cuo ","Xi ","Ta ","Qiang ","Zhan ","Dian ","Ti ","Ji ","Nie ","Man ","Liu ","Zhan ","Bi ","Chong ","Lu ","Liao ","Cu ","Tang ","Dai ","Suo ","Xi ","Kui ","Ji ","Zhi ","Qiang ","Di ","Man ","Zong ","Lian ","Beng ","Zao ","Nian ","Bie ","Tui ","Ju ","Deng ","Ceng ","Xian ","Fan ","Chu ","Zhong ","Dun ","Bo ","Cu ","Zu ","Jue ","Jue ","Lin ","Ta ","Qiao ","Qiao ","Pu ","Liao ","Dun ","Cuan ","Kuang ","Zao ","Ta ","Bi ","Bi ","Zhu ","Ju ","Chu ","Qiao ","Dun ","Chou ","Ji ","Wu ","Yue ","Nian ","Lin ","Lie ","Zhi ","Li ","Zhi ","Chan ","Chu ","Duan ","Wei ","Long ","Lin ","Xian ","Wei ","Zuan ","Lan ","Xie ","Rang ","Xie ","Nie ","Ta ","Qu ","Jie ","Cuan ","Zuan ","Xi ","Kui ","Jue ","Lin ","Shen ","Gong ","Dan ","Segare ","Qu ","Ti ","Duo ","Duo ","Gong ","Lang ","Nerau ","Luo ","Ai ","Ji ","Ju ","Tang ","Utsuke ","[?] ","Yan ","Shitsuke ","Kang ","Qu ","Lou ","Lao ","Tuo ","Zhi ","Yagate ","Ti ","Dao ","Yagate ","Yu ","Che ","Ya ","Gui ","Jun ","Wei ","Yue ","Xin ","Di ","Xuan ","Fan ","Ren ","Shan ","Qiang ","Shu ","Tun ","Chen ","Dai ","E ","Na ","Qi ","Mao ","Ruan ","Ren ","Fan ","Zhuan ","Hong ","Hu ","Qu ","Huang ","Di ","Ling ","Dai ","Ao ","Zhen ","Fan ","Kuang ","Ang ","Peng ","Bei ","Gu ","Ku ","Pao ","Zhu ","Rong ","E ","Ba ","Zhou ","Zhi ","Yao ","Ke ","Yi ","Qing ","Shi ","Ping "]});var w5=m((nze,v5)=>{v5.exports=["Er ","Qiong ","Ju ","Jiao ","Guang ","Lu ","Kai ","Quan ","Zhou ","Zai ","Zhi ","She ","Liang ","Yu ","Shao ","You ","Huan ","Yun ","Zhe ","Wan ","Fu ","Qing ","Zhou ","Ni ","Ling ","Zhe ","Zhan ","Liang ","Zi ","Hui ","Wang ","Chuo ","Guo ","Kan ","Yi ","Peng ","Qian ","Gun ","Nian ","Pian ","Guan ","Bei ","Lun ","Pai ","Liang ","Ruan ","Rou ","Ji ","Yang ","Xian ","Chuan ","Cou ","Qun ","Ge ","You ","Hong ","Shu ","Fu ","Zi ","Fu ","Wen ","Ben ","Zhan ","Yu ","Wen ","Tao ","Gu ","Zhen ","Xia ","Yuan ","Lu ","Jiu ","Chao ","Zhuan ","Wei ","Hun ","Sori ","Che ","Jiao ","Zhan ","Pu ","Lao ","Fen ","Fan ","Lin ","Ge ","Se ","Kan ","Huan ","Yi ","Ji ","Dui ","Er ","Yu ","Xian ","Hong ","Lei ","Pei ","Li ","Li ","Lu ","Lin ","Che ","Ya ","Gui ","Xuan ","Di ","Ren ","Zhuan ","E ","Lun ","Ruan ","Hong ","Ku ","Ke ","Lu ","Zhou ","Zhi ","Yi ","Hu ","Zhen ","Li ","Yao ","Qing ","Shi ","Zai ","Zhi ","Jiao ","Zhou ","Quan ","Lu ","Jiao ","Zhe ","Fu ","Liang ","Nian ","Bei ","Hui ","Gun ","Wang ","Liang ","Chuo ","Zi ","Cou ","Fu ","Ji ","Wen ","Shu ","Pei ","Yuan ","Xia ","Zhan ","Lu ","Che ","Lin ","Xin ","Gu ","Ci ","Ci ","Pi ","Zui ","Bian ","La ","La ","Ci ","Xue ","Ban ","Bian ","Bian ","Bian ","[?] ","Bian ","Ban ","Ci ","Bian ","Bian ","Chen ","Ru ","Nong ","Nong ","Zhen ","Chuo ","Chuo ","Suberu ","Reng ","Bian ","Bian ","Sip ","Ip ","Liao ","Da ","Chan ","Gan ","Qian ","Yu ","Yu ","Qi ","Xun ","Yi ","Guo ","Mai ","Qi ","Za ","Wang ","Jia ","Zhun ","Ying ","Ti ","Yun ","Jin ","Hang ","Ya ","Fan ","Wu ","Da ","E ","Huan ","Zhe ","Totemo ","Jin ","Yuan ","Wei ","Lian ","Chi ","Che ","Ni ","Tiao ","Zhi ","Yi ","Jiong ","Jia ","Chen ","Dai ","Er ","Di ","Po ","Wang ","Die ","Ze ","Tao ","Shu ","Tuo ","Kep ","Jing ","Hui ","Tong ","You ","Mi ","Beng ","Ji ","Nai ","Yi ","Jie ","Zhui ","Lie ","Xun "]});var C5=m((rze,x5)=>{x5.exports=["Tui ","Song ","Gua ","Tao ","Pang ","Hou ","Ni ","Dun ","Jiong ","Xuan ","Xun ","Bu ","You ","Xiao ","Qiu ","Tou ","Zhu ","Qiu ","Di ","Di ","Tu ","Jing ","Ti ","Dou ","Yi ","Zhe ","Tong ","Guang ","Wu ","Shi ","Cheng ","Su ","Zao ","Qun ","Feng ","Lian ","Suo ","Hui ","Li ","Sako ","Lai ","Ben ","Cuo ","Jue ","Beng ","Huan ","Dai ","Lu ","You ","Zhou ","Jin ","Yu ","Chuo ","Kui ","Wei ","Ti ","Yi ","Da ","Yuan ","Luo ","Bi ","Nuo ","Yu ","Dang ","Sui ","Dun ","Sui ","Yan ","Chuan ","Chi ","Ti ","Yu ","Shi ","Zhen ","You ","Yun ","E ","Bian ","Guo ","E ","Xia ","Huang ","Qiu ","Dao ","Da ","Wei ","Appare ","Yi ","Gou ","Yao ","Chu ","Liu ","Xun ","Ta ","Di ","Chi ","Yuan ","Su ","Ta ","Qian ","[?] ","Yao ","Guan ","Zhang ","Ao ","Shi ","Ce ","Chi ","Su ","Zao ","Zhe ","Dun ","Di ","Lou ","Chi ","Cuo ","Lin ","Zun ","Rao ","Qian ","Xuan ","Yu ","Yi ","Wu ","Liao ","Ju ","Shi ","Bi ","Yao ","Mai ","Xie ","Sui ","Huan ","Zhan ","Teng ","Er ","Miao ","Bian ","Bian ","La ","Li ","Yuan ","Yao ","Luo ","Li ","Yi ","Ting ","Deng ","Qi ","Yong ","Shan ","Han ","Yu ","Mang ","Ru ","Qiong ","[?] ","Kuang ","Fu ","Kang ","Bin ","Fang ","Xing ","Na ","Xin ","Shen ","Bang ","Yuan ","Cun ","Huo ","Xie ","Bang ","Wu ","Ju ","You ","Han ","Tai ","Qiu ","Bi ","Pei ","Bing ","Shao ","Bei ","Wa ","Di ","Zou ","Ye ","Lin ","Kuang ","Gui ","Zhu ","Shi ","Ku ","Yu ","Gai ","Ge ","Xi ","Zhi ","Ji ","Xun ","Hou ","Xing ","Jiao ","Xi ","Gui ","Nuo ","Lang ","Jia ","Kuai ","Zheng ","Otoko ","Yun ","Yan ","Cheng ","Dou ","Chi ","Lu ","Fu ","Wu ","Fu ","Gao ","Hao ","Lang ","Jia ","Geng ","Jun ","Ying ","Bo ","Xi ","Bei ","Li ","Yun ","Bu ","Xiao ","Qi ","Pi ","Qing ","Guo ","Zhou ","Tan ","Zou ","Ping ","Lai ","Ni ","Chen ","You ","Bu ","Xiang ","Dan ","Ju ","Yong ","Qiao ","Yi ","Du ","Yan ","Mei "]});var T5=m((oze,S5)=>{S5.exports=["Ruo ","Bei ","E ","Yu ","Juan ","Yu ","Yun ","Hou ","Kui ","Xiang ","Xiang ","Sou ","Tang ","Ming ","Xi ","Ru ","Chu ","Zi ","Zou ","Ju ","Wu ","Xiang ","Yun ","Hao ","Yong ","Bi ","Mo ","Chao ","Fu ","Liao ","Yin ","Zhuan ","Hu ","Qiao ","Yan ","Zhang ","Fan ","Qiao ","Xu ","Deng ","Bi ","Xin ","Bi ","Ceng ","Wei ","Zheng ","Mao ","Shan ","Lin ","Po ","Dan ","Meng ","Ye ","Cao ","Kuai ","Feng ","Meng ","Zou ","Kuang ","Lian ","Zan ","Chan ","You ","Qi ","Yan ","Chan ","Zan ","Ling ","Huan ","Xi ","Feng ","Zan ","Li ","You ","Ding ","Qiu ","Zhuo ","Pei ","Zhou ","Yi ","Hang ","Yu ","Jiu ","Yan ","Zui ","Mao ","Dan ","Xu ","Tou ","Zhen ","Fen ","Sakenomoto ","[?] ","Yun ","Tai ","Tian ","Qia ","Tuo ","Zuo ","Han ","Gu ","Su ","Po ","Chou ","Zai ","Ming ","Luo ","Chuo ","Chou ","You ","Tong ","Zhi ","Xian ","Jiang ","Cheng ","Yin ","Tu ","Xiao ","Mei ","Ku ","Suan ","Lei ","Pu ","Zui ","Hai ","Yan ","Xi ","Niang ","Wei ","Lu ","Lan ","Yan ","Tao ","Pei ","Zhan ","Chun ","Tan ","Zui ","Chuo ","Cu ","Kun ","Ti ","Mian ","Du ","Hu ","Xu ","Xing ","Tan ","Jiu ","Chun ","Yun ","Po ","Ke ","Sou ","Mi ","Quan ","Chou ","Cuo ","Yun ","Yong ","Ang ","Zha ","Hai ","Tang ","Jiang ","Piao ","Shan ","Yu ","Li ","Zao ","Lao ","Yi ","Jiang ","Pu ","Jiao ","Xi ","Tan ","Po ","Nong ","Yi ","Li ","Ju ","Jiao ","Yi ","Niang ","Ru ","Xun ","Chou ","Yan ","Ling ","Mi ","Mi ","Niang ","Xin ","Jiao ","Xi ","Mi ","Yan ","Bian ","Cai ","Shi ","You ","Shi ","Shi ","Li ","Zhong ","Ye ","Liang ","Li ","Jin ","Jin ","Qiu ","Yi ","Diao ","Dao ","Zhao ","Ding ","Po ","Qiu ","He ","Fu ","Zhen ","Zhi ","Ba ","Luan ","Fu ","Nai ","Diao ","Shan ","Qiao ","Kou ","Chuan ","Zi ","Fan ","Yu ","Hua ","Han ","Gong ","Qi ","Mang ","Ri ","Di ","Si ","Xi ","Yi ","Chai ","Shi ","Tu ","Xi ","Nu ","Qian ","Ishiyumi ","Jian ","Pi ","Ye ","Yin "]});var D5=m((sze,k5)=>{k5.exports=["Ba ","Fang ","Chen ","Xing ","Tou ","Yue ","Yan ","Fu ","Pi ","Na ","Xin ","E ","Jue ","Dun ","Gou ","Yin ","Qian ","Ban ","Ji ","Ren ","Chao ","Niu ","Fen ","Yun ","Ji ","Qin ","Pi ","Guo ","Hong ","Yin ","Jun ","Shi ","Yi ","Zhong ","Nie ","Gai ","Ri ","Huo ","Tai ","Kang ","Habaki ","Irori ","Ngaak ","[?] ","Duo ","Zi ","Ni ","Tu ","Shi ","Min ","Gu ","E ","Ling ","Bing ","Yi ","Gu ","Ba ","Pi ","Yu ","Si ","Zuo ","Bu ","You ","Dian ","Jia ","Zhen ","Shi ","Shi ","Tie ","Ju ","Zhan ","Shi ","She ","Xuan ","Zhao ","Bao ","He ","Bi ","Sheng ","Chu ","Shi ","Bo ","Zhu ","Chi ","Za ","Po ","Tong ","Qian ","Fu ","Zhai ","Liu ","Qian ","Fu ","Li ","Yue ","Pi ","Yang ","Ban ","Bo ","Jie ","Gou ","Shu ","Zheng ","Mu ","Ni ","Nie ","Di ","Jia ","Mu ","Dan ","Shen ","Yi ","Si ","Kuang ","Ka ","Bei ","Jian ","Tong ","Xing ","Hong ","Jiao ","Chi ","Er ","Ge ","Bing ","Shi ","Mou ","Jia ","Yin ","Jun ","Zhou ","Chong ","Shang ","Tong ","Mo ","Lei ","Ji ","Yu ","Xu ","Ren ","Zun ","Zhi ","Qiong ","Shan ","Chi ","Xian ","Xing ","Quan ","Pi ","Tie ","Zhu ","Hou ","Ming ","Kua ","Yao ","Xian ","Xian ","Xiu ","Jun ","Cha ","Lao ","Ji ","Pi ","Ru ","Mi ","Yi ","Yin ","Guang ","An ","Diou ","You ","Se ","Kao ","Qian ","Luan ","Kasugai ","Ai ","Diao ","Han ","Rui ","Shi ","Keng ","Qiu ","Xiao ","Zhe ","Xiu ","Zang ","Ti ","Cuo ","Gua ","Gong ","Zhong ","Dou ","Lu ","Mei ","Lang ","Wan ","Xin ","Yun ","Bei ","Wu ","Su ","Yu ","Chan ","Ting ","Bo ","Han ","Jia ","Hong ","Cuan ","Feng ","Chan ","Wan ","Zhi ","Si ","Xuan ","Wu ","Wu ","Tiao ","Gong ","Zhuo ","Lue ","Xing ","Qian ","Shen ","Han ","Lue ","Xie ","Chu ","Zheng ","Ju ","Xian ","Tie ","Mang ","Pu ","Li ","Pan ","Rui ","Cheng ","Gao ","Li ","Te ","Pyeng ","Zhu ","[?] ","Tu ","Liu ","Zui ","Ju ","Chang ","Yuan ","Jian ","Gang ","Diao ","Tao ","Chang "]});var _5=m((aze,E5)=>{E5.exports=["Lun ","Kua ","Ling ","Bei ","Lu ","Li ","Qiang ","Pou ","Juan ","Min ","Zui ","Peng ","An ","Pi ","Xian ","Ya ","Zhui ","Lei ","A ","Kong ","Ta ","Kun ","Du ","Wei ","Chui ","Zi ","Zheng ","Ben ","Nie ","Cong ","Qun ","Tan ","Ding ","Qi ","Qian ","Zhuo ","Qi ","Yu ","Jin ","Guan ","Mao ","Chang ","Tian ","Xi ","Lian ","Tao ","Gu ","Cuo ","Shu ","Zhen ","Lu ","Meng ","Lu ","Hua ","Biao ","Ga ","Lai ","Ken ","Kazari ","Bu ","Nai ","Wan ","Zan ","[?] ","De ","Xian ","[?] ","Huo ","Liang ","[?] ","Men ","Kai ","Ying ","Di ","Lian ","Guo ","Xian ","Du ","Tu ","Wei ","Cong ","Fu ","Rou ","Ji ","E ","Rou ","Chen ","Ti ","Zha ","Hong ","Yang ","Duan ","Xia ","Yu ","Keng ","Xing ","Huang ","Wei ","Fu ","Zhao ","Cha ","Qie ","She ","Hong ","Kui ","Tian ","Mou ","Qiao ","Qiao ","Hou ","Tou ","Cong ","Huan ","Ye ","Min ","Jian ","Duan ","Jian ","Song ","Kui ","Hu ","Xuan ","Duo ","Jie ","Zhen ","Bian ","Zhong ","Zi ","Xiu ","Ye ","Mei ","Pai ","Ai ","Jie ","[?] ","Mei ","Chuo ","Ta ","Bang ","Xia ","Lian ","Suo ","Xi ","Liu ","Zu ","Ye ","Nou ","Weng ","Rong ","Tang ","Suo ","Qiang ","Ge ","Shuo ","Chui ","Bo ","Pan ","Sa ","Bi ","Sang ","Gang ","Zi ","Wu ","Ying ","Huang ","Tiao ","Liu ","Kai ","Sun ","Sha ","Sou ","Wan ","Hao ","Zhen ","Zhen ","Luo ","Yi ","Yuan ","Tang ","Nie ","Xi ","Jia ","Ge ","Ma ","Juan ","Kasugai ","Habaki ","Suo ","[?] ","[?] ","[?] ","Na ","Lu ","Suo ","Ou ","Zu ","Tuan ","Xiu ","Guan ","Xuan ","Lian ","Shou ","Ao ","Man ","Mo ","Luo ","Bi ","Wei ","Liu ","Di ","Qiao ","Cong ","Yi ","Lu ","Ao ","Keng ","Qiang ","Cui ","Qi ","Chang ","Tang ","Man ","Yong ","Chan ","Feng ","Jing ","Biao ","Shu ","Lou ","Xiu ","Cong ","Long ","Zan ","Jian ","Cao ","Li ","Xia ","Xi ","Kang ","[?] ","Beng ","[?] ","[?] ","Zheng ","Lu ","Hua ","Ji ","Pu ","Hui ","Qiang ","Po ","Lin ","Suo ","Xiu ","San ","Cheng "]});var R5=m((lze,P5)=>{P5.exports=["Kui ","Si ","Liu ","Nao ","Heng ","Pie ","Sui ","Fan ","Qiao ","Quan ","Yang ","Tang ","Xiang ","Jue ","Jiao ","Zun ","Liao ","Jie ","Lao ","Dui ","Tan ","Zan ","Ji ","Jian ","Zhong ","Deng ","Ya ","Ying ","Dui ","Jue ","Nou ","Ti ","Pu ","Tie ","[?] ","[?] ","Ding ","Shan ","Kai ","Jian ","Fei ","Sui ","Lu ","Juan ","Hui ","Yu ","Lian ","Zhuo ","Qiao ","Qian ","Zhuo ","Lei ","Bi ","Tie ","Huan ","Ye ","Duo ","Guo ","Dang ","Ju ","Fen ","Da ","Bei ","Yi ","Ai ","Zong ","Xun ","Diao ","Zhu ","Heng ","Zhui ","Ji ","Nie ","Ta ","Huo ","Qing ","Bin ","Ying ","Kui ","Ning ","Xu ","Jian ","Jian ","Yari ","Cha ","Zhi ","Mie ","Li ","Lei ","Ji ","Zuan ","Kuang ","Shang ","Peng ","La ","Du ","Shuo ","Chuo ","Lu ","Biao ","Bao ","Lu ","[?] ","[?] ","Long ","E ","Lu ","Xin ","Jian ","Lan ","Bo ","Jian ","Yao ","Chan ","Xiang ","Jian ","Xi ","Guan ","Cang ","Nie ","Lei ","Cuan ","Qu ","Pan ","Luo ","Zuan ","Luan ","Zao ","Nie ","Jue ","Tang ","Shu ","Lan ","Jin ","Qiu ","Yi ","Zhen ","Ding ","Zhao ","Po ","Diao ","Tu ","Qian ","Chuan ","Shan ","Ji ","Fan ","Diao ","Men ","Nu ","Xi ","Chai ","Xing ","Gai ","Bu ","Tai ","Ju ","Dun ","Chao ","Zhong ","Na ","Bei ","Gang ","Ban ","Qian ","Yao ","Qin ","Jun ","Wu ","Gou ","Kang ","Fang ","Huo ","Tou ","Niu ","Ba ","Yu ","Qian ","Zheng ","Qian ","Gu ","Bo ","E ","Po ","Bu ","Ba ","Yue ","Zuan ","Mu ","Dan ","Jia ","Dian ","You ","Tie ","Bo ","Ling ","Shuo ","Qian ","Liu ","Bao ","Shi ","Xuan ","She ","Bi ","Ni ","Pi ","Duo ","Xing ","Kao ","Lao ","Er ","Mang ","Ya ","You ","Cheng ","Jia ","Ye ","Nao ","Zhi ","Dang ","Tong ","Lu ","Diao ","Yin ","Kai ","Zha ","Zhu ","Xian ","Ting ","Diu ","Xian ","Hua ","Quan ","Sha ","Jia ","Yao ","Ge ","Ming ","Zheng ","Se ","Jiao ","Yi ","Chan ","Chong ","Tang ","An ","Yin ","Ru ","Zhu ","Lao ","Pu ","Wu ","Lai ","Te ","Lian ","Keng "]});var I5=m((uze,L5)=>{L5.exports=["Xiao ","Suo ","Li ","Zheng ","Chu ","Guo ","Gao ","Tie ","Xiu ","Cuo ","Lue ","Feng ","Xin ","Liu ","Kai ","Jian ","Rui ","Ti ","Lang ","Qian ","Ju ","A ","Qiang ","Duo ","Tian ","Cuo ","Mao ","Ben ","Qi ","De ","Kua ","Kun ","Chang ","Xi ","Gu ","Luo ","Chui ","Zhui ","Jin ","Zhi ","Xian ","Juan ","Huo ","Pou ","Tan ","Ding ","Jian ","Ju ","Meng ","Zi ","Qie ","Ying ","Kai ","Qiang ","Song ","E ","Cha ","Qiao ","Zhong ","Duan ","Sou ","Huang ","Huan ","Ai ","Du ","Mei ","Lou ","Zi ","Fei ","Mei ","Mo ","Zhen ","Bo ","Ge ","Nie ","Tang ","Juan ","Nie ","Na ","Liu ","Hao ","Bang ","Yi ","Jia ","Bin ","Rong ","Biao ","Tang ","Man ","Luo ","Beng ","Yong ","Jing ","Di ","Zu ","Xuan ","Liu ","Tan ","Jue ","Liao ","Pu ","Lu ","Dui ","Lan ","Pu ","Cuan ","Qiang ","Deng ","Huo ","Lei ","Huan ","Zhuo ","Lian ","Yi ","Cha ","Biao ","La ","Chan ","Xiang ","Chang ","Chang ","Jiu ","Ao ","Die ","Qu ","Liao ","Mi ","Chang ","Men ","Ma ","Shuan ","Shan ","Huo ","Men ","Yan ","Bi ","Han ","Bi ","San ","Kai ","Kang ","Beng ","Hong ","Run ","San ","Xian ","Xian ","Jian ","Min ","Xia ","Yuru ","Dou ","Zha ","Nao ","Jian ","Peng ","Xia ","Ling ","Bian ","Bi ","Run ","He ","Guan ","Ge ","Ge ","Fa ","Chu ","Hong ","Gui ","Min ","Se ","Kun ","Lang ","Lu ","Ting ","Sha ","Ju ","Yue ","Yue ","Chan ","Qu ","Lin ","Chang ","Shai ","Kun ","Yan ","Min ","Yan ","E ","Hun ","Yu ","Wen ","Xiang ","Bao ","Xiang ","Qu ","Yao ","Wen ","Ban ","An ","Wei ","Yin ","Kuo ","Que ","Lan ","Du ","[?] ","Phwung ","Tian ","Nie ","Ta ","Kai ","He ","Que ","Chuang ","Guan ","Dou ","Qi ","Kui ","Tang ","Guan ","Piao ","Kan ","Xi ","Hui ","Chan ","Pi ","Dang ","Huan ","Ta ","Wen ","[?] ","Men ","Shuan ","Shan ","Yan ","Han ","Bi ","Wen ","Chuang ","Run ","Wei ","Xian ","Hong ","Jian ","Min ","Kang ","Men ","Zha ","Nao ","Gui ","Wen ","Ta ","Min ","Lu ","Kai "]});var F5=m((cze,j5)=>{j5.exports=["Fa ","Ge ","He ","Kun ","Jiu ","Yue ","Lang ","Du ","Yu ","Yan ","Chang ","Xi ","Wen ","Hun ","Yan ","E ","Chan ","Lan ","Qu ","Hui ","Kuo ","Que ","Ge ","Tian ","Ta ","Que ","Kan ","Huan ","Fu ","Fu ","Le ","Dui ","Xin ","Qian ","Wu ","Yi ","Tuo ","Yin ","Yang ","Dou ","E ","Sheng ","Ban ","Pei ","Keng ","Yun ","Ruan ","Zhi ","Pi ","Jing ","Fang ","Yang ","Yin ","Zhen ","Jie ","Cheng ","E ","Qu ","Di ","Zu ","Zuo ","Dian ","Ling ","A ","Tuo ","Tuo ","Po ","Bing ","Fu ","Ji ","Lu ","Long ","Chen ","Xing ","Duo ","Lou ","Mo ","Jiang ","Shu ","Duo ","Xian ","Er ","Gui ","Yu ","Gai ","Shan ","Xun ","Qiao ","Xing ","Chun ","Fu ","Bi ","Xia ","Shan ","Sheng ","Zhi ","Pu ","Dou ","Yuan ","Zhen ","Chu ","Xian ","Tou ","Nie ","Yun ","Xian ","Pei ","Pei ","Zou ","Yi ","Dui ","Lun ","Yin ","Ju ","Chui ","Chen ","Pi ","Ling ","Tao ","Xian ","Lu ","Sheng ","Xian ","Yin ","Zhu ","Yang ","Reng ","Shan ","Chong ","Yan ","Yin ","Yu ","Ti ","Yu ","Long ","Wei ","Wei ","Nie ","Dui ","Sui ","An ","Huang ","Jie ","Sui ","Yin ","Gai ","Yan ","Hui ","Ge ","Yun ","Wu ","Wei ","Ai ","Xi ","Tang ","Ji ","Zhang ","Dao ","Ao ","Xi ","Yin ","[?] ","Rao ","Lin ","Tui ","Deng ","Pi ","Sui ","Sui ","Yu ","Xian ","Fen ","Ni ","Er ","Ji ","Dao ","Xi ","Yin ","E ","Hui ","Long ","Xi ","Li ","Li ","Li ","Zhui ","He ","Zhi ","Zhun ","Jun ","Nan ","Yi ","Que ","Yan ","Qian ","Ya ","Xiong ","Ya ","Ji ","Gu ","Huan ","Zhi ","Gou ","Jun ","Ci ","Yong ","Ju ","Chu ","Hu ","Za ","Luo ","Yu ","Chou ","Diao ","Sui ","Han ","Huo ","Shuang ","Guan ","Chu ","Za ","Yong ","Ji ","Xi ","Chou ","Liu ","Li ","Nan ","Xue ","Za ","Ji ","Ji ","Yu ","Yu ","Xue ","Na ","Fou ","Se ","Mu ","Wen ","Fen ","Pang ","Yun ","Li ","Li ","Ang ","Ling ","Lei ","An ","Bao ","Meng ","Dian ","Dang ","Xing ","Wu ","Zhao "]});var M5=m((hze,O5)=>{O5.exports=["Xu ","Ji ","Mu ","Chen ","Xiao ","Zha ","Ting ","Zhen ","Pei ","Mei ","Ling ","Qi ","Chou ","Huo ","Sha ","Fei ","Weng ","Zhan ","Yin ","Ni ","Chou ","Tun ","Lin ","[?] ","Dong ","Ying ","Wu ","Ling ","Shuang ","Ling ","Xia ","Hong ","Yin ","Mo ","Mai ","Yun ","Liu ","Meng ","Bin ","Wu ","Wei ","Huo ","Yin ","Xi ","Yi ","Ai ","Dan ","Deng ","Xian ","Yu ","Lu ","Long ","Dai ","Ji ","Pang ","Yang ","Ba ","Pi ","Wei ","[?] ","Xi ","Ji ","Mai ","Meng ","Meng ","Lei ","Li ","Huo ","Ai ","Fei ","Dai ","Long ","Ling ","Ai ","Feng ","Li ","Bao ","[?] ","He ","He ","Bing ","Qing ","Qing ","Jing ","Tian ","Zhen ","Jing ","Cheng ","Qing ","Jing ","Jing ","Dian ","Jing ","Tian ","Fei ","Fei ","Kao ","Mi ","Mian ","Mian ","Pao ","Ye ","Tian ","Hui ","Ye ","Ge ","Ding ","Cha ","Jian ","Ren ","Di ","Du ","Wu ","Ren ","Qin ","Jin ","Xue ","Niu ","Ba ","Yin ","Sa ","Na ","Mo ","Zu ","Da ","Ban ","Yi ","Yao ","Tao ","Tuo ","Jia ","Hong ","Pao ","Yang ","Tomo ","Yin ","Jia ","Tao ","Ji ","Xie ","An ","An ","Hen ","Gong ","Kohaze ","Da ","Qiao ","Ting ","Wan ","Ying ","Sui ","Tiao ","Qiao ","Xuan ","Kong ","Beng ","Ta ","Zhang ","Bing ","Kuo ","Ju ","La ","Xie ","Rou ","Bang ","Yi ","Qiu ","Qiu ","He ","Xiao ","Mu ","Ju ","Jian ","Bian ","Di ","Jian ","On ","Tao ","Gou ","Ta ","Bei ","Xie ","Pan ","Ge ","Bi ","Kuo ","Tang ","Lou ","Gui ","Qiao ","Xue ","Ji ","Jian ","Jiang ","Chan ","Da ","Huo ","Xian ","Qian ","Du ","Wa ","Jian ","Lan ","Wei ","Ren ","Fu ","Mei ","Juan ","Ge ","Wei ","Qiao ","Han ","Chang ","[?] ","Rou ","Xun ","She ","Wei ","Ge ","Bei ","Tao ","Gou ","Yun ","[?] ","Bi ","Wei ","Hui ","Du ","Wa ","Du ","Wei ","Ren ","Fu ","Han ","Wei ","Yun ","Tao ","Jiu ","Jiu ","Xian ","Xie ","Xian ","Ji ","Yin ","Za ","Yun ","Shao ","Le ","Peng ","Heng ","Ying ","Yun ","Peng ","Yin ","Yin ","Xiang "]});var N5=m((dze,A5)=>{A5.exports=["Hu ","Ye ","Ding ","Qing ","Pan ","Xiang ","Shun ","Han ","Xu ","Yi ","Xu ","Gu ","Song ","Kui ","Qi ","Hang ","Yu ","Wan ","Ban ","Dun ","Di ","Dan ","Pan ","Po ","Ling ","Ce ","Jing ","Lei ","He ","Qiao ","E ","E ","Wei ","Jie ","Gua ","Shen ","Yi ","Shen ","Hai ","Dui ","Pian ","Ping ","Lei ","Fu ","Jia ","Tou ","Hui ","Kui ","Jia ","Le ","Tian ","Cheng ","Ying ","Jun ","Hu ","Han ","Jing ","Tui ","Tui ","Pin ","Lai ","Tui ","Zi ","Zi ","Chui ","Ding ","Lai ","Yan ","Han ","Jian ","Ke ","Cui ","Jiong ","Qin ","Yi ","Sai ","Ti ","E ","E ","Yan ","Hun ","Kan ","Yong ","Zhuan ","Yan ","Xian ","Xin ","Yi ","Yuan ","Sang ","Dian ","Dian ","Jiang ","Ku ","Lei ","Liao ","Piao ","Yi ","Man ","Qi ","Rao ","Hao ","Qiao ","Gu ","Xun ","Qian ","Hui ","Zhan ","Ru ","Hong ","Bin ","Xian ","Pin ","Lu ","Lan ","Nie ","Quan ","Ye ","Ding ","Qing ","Han ","Xiang ","Shun ","Xu ","Xu ","Wan ","Gu ","Dun ","Qi ","Ban ","Song ","Hang ","Yu ","Lu ","Ling ","Po ","Jing ","Jie ","Jia ","Tian ","Han ","Ying ","Jiong ","Hai ","Yi ","Pin ","Hui ","Tui ","Han ","Ying ","Ying ","Ke ","Ti ","Yong ","E ","Zhuan ","Yan ","E ","Nie ","Man ","Dian ","Sang ","Hao ","Lei ","Zhan ","Ru ","Pin ","Quan ","Feng ","Biao ","Oroshi ","Fu ","Xia ","Zhan ","Biao ","Sa ","Ba ","Tai ","Lie ","Gua ","Xuan ","Shao ","Ju ","Bi ","Si ","Wei ","Yang ","Yao ","Sou ","Kai ","Sao ","Fan ","Liu ","Xi ","Liao ","Piao ","Piao ","Liu ","Biao ","Biao ","Biao ","Liao ","[?] ","Se ","Feng ","Biao ","Feng ","Yang ","Zhan ","Biao ","Sa ","Ju ","Si ","Sou ","Yao ","Liu ","Piao ","Biao ","Biao ","Fei ","Fan ","Fei ","Fei ","Shi ","Shi ","Can ","Ji ","Ding ","Si ","Tuo ","Zhan ","Sun ","Xiang ","Tun ","Ren ","Yu ","Juan ","Chi ","Yin ","Fan ","Fan ","Sun ","Yin ","Zhu ","Yi ","Zhai ","Bi ","Jie ","Tao ","Liu ","Ci ","Tie ","Si ","Bao ","Shi ","Duo "]});var q5=m((gze,H5)=>{H5.exports=["Hai ","Ren ","Tian ","Jiao ","Jia ","Bing ","Yao ","Tong ","Ci ","Xiang ","Yang ","Yang ","Er ","Yan ","Le ","Yi ","Can ","Bo ","Nei ","E ","Bu ","Jun ","Dou ","Su ","Yu ","Shi ","Yao ","Hun ","Guo ","Shi ","Jian ","Zhui ","Bing ","Xian ","Bu ","Ye ","Tan ","Fei ","Zhang ","Wei ","Guan ","E ","Nuan ","Hun ","Hu ","Huang ","Tie ","Hui ","Jian ","Hou ","He ","Xing ","Fen ","Wei ","Gu ","Cha ","Song ","Tang ","Bo ","Gao ","Xi ","Kui ","Liu ","Sou ","Tao ","Ye ","Yun ","Mo ","Tang ","Man ","Bi ","Yu ","Xiu ","Jin ","San ","Kui ","Zhuan ","Shan ","Chi ","Dan ","Yi ","Ji ","Rao ","Cheng ","Yong ","Tao ","Hui ","Xiang ","Zhan ","Fen ","Hai ","Meng ","Yan ","Mo ","Chan ","Xiang ","Luo ","Zuan ","Nang ","Shi ","Ding ","Ji ","Tuo ","Xing ","Tun ","Xi ","Ren ","Yu ","Chi ","Fan ","Yin ","Jian ","Shi ","Bao ","Si ","Duo ","Yi ","Er ","Rao ","Xiang ","Jia ","Le ","Jiao ","Yi ","Bing ","Bo ","Dou ","E ","Yu ","Nei ","Jun ","Guo ","Hun ","Xian ","Guan ","Cha ","Kui ","Gu ","Sou ","Chan ","Ye ","Mo ","Bo ","Liu ","Xiu ","Jin ","Man ","San ","Zhuan ","Nang ","Shou ","Kui ","Guo ","Xiang ","Fen ","Ba ","Ni ","Bi ","Bo ","Tu ","Han ","Fei ","Jian ","An ","Ai ","Fu ","Xian ","Wen ","Xin ","Fen ","Bin ","Xing ","Ma ","Yu ","Feng ","Han ","Di ","Tuo ","Tuo ","Chi ","Xun ","Zhu ","Zhi ","Pei ","Xin ","Ri ","Sa ","Yin ","Wen ","Zhi ","Dan ","Lu ","You ","Bo ","Bao ","Kuai ","Tuo ","Yi ","Qu ","[?] ","Qu ","Jiong ","Bo ","Zhao ","Yuan ","Peng ","Zhou ","Ju ","Zhu ","Nu ","Ju ","Pi ","Zang ","Jia ","Ling ","Zhen ","Tai ","Fu ","Yang ","Shi ","Bi ","Tuo ","Tuo ","Si ","Liu ","Ma ","Pian ","Tao ","Zhi ","Rong ","Teng ","Dong ","Xun ","Quan ","Shen ","Jiong ","Er ","Hai ","Bo ","Zhu ","Yin ","Luo ","Shuu ","Dan ","Xie ","Liu ","Ju ","Song ","Qin ","Mang ","Liang ","Han ","Tu ","Xuan ","Tui ","Jun "]});var Y5=m((fze,B5)=>{B5.exports=["E ","Cheng ","Xin ","Ai ","Lu ","Zhui ","Zhou ","She ","Pian ","Kun ","Tao ","Lai ","Zong ","Ke ","Qi ","Qi ","Yan ","Fei ","Sao ","Yan ","Jie ","Yao ","Wu ","Pian ","Cong ","Pian ","Qian ","Fei ","Huang ","Jian ","Huo ","Yu ","Ti ","Quan ","Xia ","Zong ","Kui ","Rou ","Si ","Gua ","Tuo ","Kui ","Sou ","Qian ","Cheng ","Zhi ","Liu ","Pang ","Teng ","Xi ","Cao ","Du ","Yan ","Yuan ","Zou ","Sao ","Shan ","Li ","Zhi ","Shuang ","Lu ","Xi ","Luo ","Zhang ","Mo ","Ao ","Can ","Piao ","Cong ","Qu ","Bi ","Zhi ","Yu ","Xu ","Hua ","Bo ","Su ","Xiao ","Lin ","Chan ","Dun ","Liu ","Tuo ","Zeng ","Tan ","Jiao ","Tie ","Yan ","Luo ","Zhan ","Jing ","Yi ","Ye ","Tuo ","Bin ","Zou ","Yan ","Peng ","Lu ","Teng ","Xiang ","Ji ","Shuang ","Ju ","Xi ","Huan ","Li ","Biao ","Ma ","Yu ","Tuo ","Xun ","Chi ","Qu ","Ri ","Bo ","Lu ","Zang ","Shi ","Si ","Fu ","Ju ","Zou ","Zhu ","Tuo ","Nu ","Jia ","Yi ","Tai ","Xiao ","Ma ","Yin ","Jiao ","Hua ","Luo ","Hai ","Pian ","Biao ","Li ","Cheng ","Yan ","Xin ","Qin ","Jun ","Qi ","Qi ","Ke ","Zhui ","Zong ","Su ","Can ","Pian ","Zhi ","Kui ","Sao ","Wu ","Ao ","Liu ","Qian ","Shan ","Piao ","Luo ","Cong ","Chan ","Zou ","Ji ","Shuang ","Xiang ","Gu ","Wei ","Wei ","Wei ","Yu ","Gan ","Yi ","Ang ","Tou ","Xie ","Bao ","Bi ","Chi ","Ti ","Di ","Ku ","Hai ","Qiao ","Gou ","Kua ","Ge ","Tui ","Geng ","Pian ","Bi ","Ke ","Ka ","Yu ","Sui ","Lou ","Bo ","Xiao ","Pang ","Bo ","Ci ","Kuan ","Bin ","Mo ","Liao ","Lou ","Nao ","Du ","Zang ","Sui ","Ti ","Bin ","Kuan ","Lu ","Gao ","Gao ","Qiao ","Kao ","Qiao ","Lao ","Zao ","Biao ","Kun ","Kun ","Ti ","Fang ","Xiu ","Ran ","Mao ","Dan ","Kun ","Bin ","Fa ","Tiao ","Peng ","Zi ","Fa ","Ran ","Ti ","Pao ","Pi ","Mao ","Fu ","Er ","Rong ","Qu ","Gong ","Xiu ","Gua ","Ji ","Peng ","Zhua ","Shao ","Sha "]});var Z5=m((pze,W5)=>{W5.exports=["Ti ","Li ","Bin ","Zong ","Ti ","Peng ","Song ","Zheng ","Quan ","Zong ","Shun ","Jian ","Duo ","Hu ","La ","Jiu ","Qi ","Lian ","Zhen ","Bin ","Peng ","Mo ","San ","Man ","Man ","Seng ","Xu ","Lie ","Qian ","Qian ","Nong ","Huan ","Kuai ","Ning ","Bin ","Lie ","Rang ","Dou ","Dou ","Nao ","Hong ","Xi ","Dou ","Han ","Dou ","Dou ","Jiu ","Chang ","Yu ","Yu ","Li ","Juan ","Fu ","Qian ","Gui ","Zong ","Liu ","Gui ","Shang ","Yu ","Gui ","Mei ","Ji ","Qi ","Jie ","Kui ","Hun ","Ba ","Po ","Mei ","Xu ","Yan ","Xiao ","Liang ","Yu ","Tui ","Qi ","Wang ","Liang ","Wei ","Jian ","Chi ","Piao ","Bi ","Mo ","Ji ","Xu ","Chou ","Yan ","Zhan ","Yu ","Dao ","Ren ","Ji ","Eri ","Gong ","Tuo ","Diao ","Ji ","Xu ","E ","E ","Sha ","Hang ","Tun ","Mo ","Jie ","Shen ","Fan ","Yuan ","Bi ","Lu ","Wen ","Hu ","Lu ","Za ","Fang ","Fen ","Na ","You ","Namazu ","Todo ","He ","Xia ","Qu ","Han ","Pi ","Ling ","Tuo ","Bo ","Qiu ","Ping ","Fu ","Bi ","Ji ","Wei ","Ju ","Diao ","Bo ","You ","Gun ","Pi ","Nian ","Xing ","Tai ","Bao ","Fu ","Zha ","Ju ","Gu ","Kajika ","Tong ","[?] ","Ta ","Jie ","Shu ","Hou ","Xiang ","Er ","An ","Wei ","Tiao ","Zhu ","Yin ","Lie ","Luo ","Tong ","Yi ","Qi ","Bing ","Wei ","Jiao ","Bu ","Gui ","Xian ","Ge ","Hui ","Bora ","Mate ","Kao ","Gori ","Duo ","Jun ","Ti ","Man ","Xiao ","Za ","Sha ","Qin ","Yu ","Nei ","Zhe ","Gun ","Geng ","Su ","Wu ","Qiu ","Ting ","Fu ","Wan ","You ","Li ","Sha ","Sha ","Gao ","Meng ","Ugui ","Asari ","Subashiri ","Kazunoko ","Yong ","Ni ","Zi ","Qi ","Qing ","Xiang ","Nei ","Chun ","Ji ","Diao ","Qie ","Gu ","Zhou ","Dong ","Lai ","Fei ","Ni ","Yi ","Kun ","Lu ","Jiu ","Chang ","Jing ","Lun ","Ling ","Zou ","Li ","Meng ","Zong ","Zhi ","Nian ","Shachi ","Dojou ","Sukesou ","Shi ","Shen ","Hun ","Shi ","Hou ","Xing ","Zhu ","La ","Zong ","Ji ","Bian ","Bian "]});var $5=m((mze,J5)=>{J5.exports=["Huan ","Quan ","Ze ","Wei ","Wei ","Yu ","Qun ","Rou ","Die ","Huang ","Lian ","Yan ","Qiu ","Qiu ","Jian ","Bi ","E ","Yang ","Fu ","Sai ","Jian ","Xia ","Tuo ","Hu ","Muroaji ","Ruo ","Haraka ","Wen ","Jian ","Hao ","Wu ","Fang ","Sao ","Liu ","Ma ","Shi ","Shi ","Yin ","Z ","Teng ","Ta ","Yao ","Ge ","Rong ","Qian ","Qi ","Wen ","Ruo ","Hatahata ","Lian ","Ao ","Le ","Hui ","Min ","Ji ","Tiao ","Qu ","Jian ","Sao ","Man ","Xi ","Qiu ","Biao ","Ji ","Ji ","Zhu ","Jiang ","Qiu ","Zhuan ","Yong ","Zhang ","Kang ","Xue ","Bie ","Jue ","Qu ","Xiang ","Bo ","Jiao ","Xun ","Su ","Huang ","Zun ","Shan ","Shan ","Fan ","Jue ","Lin ","Xun ","Miao ","Xi ","Eso ","Kyou ","Fen ","Guan ","Hou ","Kuai ","Zei ","Sao ","Zhan ","Gan ","Gui ","Sheng ","Li ","Chang ","Hatahata ","Shiira ","Mutsu ","Ru ","Ji ","Xu ","Huo ","Shiira ","Li ","Lie ","Li ","Mie ","Zhen ","Xiang ","E ","Lu ","Guan ","Li ","Xian ","Yu ","Dao ","Ji ","You ","Tun ","Lu ","Fang ","Ba ","He ","Bo ","Ping ","Nian ","Lu ","You ","Zha ","Fu ","Bo ","Bao ","Hou ","Pi ","Tai ","Gui ","Jie ","Kao ","Wei ","Er ","Tong ","Ze ","Hou ","Kuai ","Ji ","Jiao ","Xian ","Za ","Xiang ","Xun ","Geng ","Li ","Lian ","Jian ","Li ","Shi ","Tiao ","Gun ","Sha ","Wan ","Jun ","Ji ","Yong ","Qing ","Ling ","Qi ","Zou ","Fei ","Kun ","Chang ","Gu ","Ni ","Nian ","Diao ","Jing ","Shen ","Shi ","Zi ","Fen ","Die ","Bi ","Chang ","Shi ","Wen ","Wei ","Sai ","E ","Qiu ","Fu ","Huang ","Quan ","Jiang ","Bian ","Sao ","Ao ","Qi ","Ta ","Yin ","Yao ","Fang ","Jian ","Le ","Biao ","Xue ","Bie ","Man ","Min ","Yong ","Wei ","Xi ","Jue ","Shan ","Lin ","Zun ","Huo ","Gan ","Li ","Zhan ","Guan ","Niao ","Yi ","Fu ","Li ","Jiu ","Bu ","Yan ","Fu ","Diao ","Ji ","Feng ","Nio ","Gan ","Shi ","Feng ","Ming ","Bao ","Yuan ","Zhi ","Hu ","Qin ","Fu ","Fen ","Wen ","Jian ","Shi ","Yu "]});var U5=m((bze,X5)=>{X5.exports=["Fou ","Yiao ","Jue ","Jue ","Pi ","Huan ","Zhen ","Bao ","Yan ","Ya ","Zheng ","Fang ","Feng ","Wen ","Ou ","Te ","Jia ","Nu ","Ling ","Mie ","Fu ","Tuo ","Wen ","Li ","Bian ","Zhi ","Ge ","Yuan ","Zi ","Qu ","Xiao ","Zhi ","Dan ","Ju ","You ","Gu ","Zhong ","Yu ","Yang ","Rong ","Ya ","Tie ","Yu ","Shigi ","Ying ","Zhui ","Wu ","Er ","Gua ","Ai ","Zhi ","Yan ","Heng ","Jiao ","Ji ","Lie ","Zhu ","Ren ","Yi ","Hong ","Luo ","Ru ","Mou ","Ge ","Ren ","Jiao ","Xiu ","Zhou ","Zhi ","Luo ","Chidori ","Toki ","Ten ","Luan ","Jia ","Ji ","Yu ","Huan ","Tuo ","Bu ","Wu ","Juan ","Yu ","Bo ","Xun ","Xun ","Bi ","Xi ","Jun ","Ju ","Tu ","Jing ","Ti ","E ","E ","Kuang ","Hu ","Wu ","Shen ","Lai ","Ikaruga ","Kakesu ","Lu ","Ping ","Shu ","Fu ","An ","Zhao ","Peng ","Qin ","Qian ","Bei ","Diao ","Lu ","Que ","Jian ","Ju ","Tu ","Ya ","Yuan ","Qi ","Li ","Ye ","Zhui ","Kong ","Zhui ","Kun ","Sheng ","Qi ","Jing ","Yi ","Yi ","Jing ","Zi ","Lai ","Dong ","Qi ","Chun ","Geng ","Ju ","Qu ","Isuka ","Kikuitadaki ","Ji ","Shu ","[?] ","Chi ","Miao ","Rou ","An ","Qiu ","Ti ","Hu ","Ti ","E ","Jie ","Mao ","Fu ","Chun ","Tu ","Yan ","He ","Yuan ","Pian ","Yun ","Mei ","Hu ","Ying ","Dun ","Mu ","Ju ","Tsugumi ","Cang ","Fang ","Gu ","Ying ","Yuan ","Xuan ","Weng ","Shi ","He ","Chu ","Tang ","Xia ","Ruo ","Liu ","Ji ","Gu ","Jian ","Zhun ","Han ","Zi ","Zi ","Ni ","Yao ","Yan ","Ji ","Li ","Tian ","Kou ","Ti ","Ti ","Ni ","Tu ","Ma ","Jiao ","Gao ","Tian ","Chen ","Li ","Zhuan ","Zhe ","Ao ","Yao ","Yi ","Ou ","Chi ","Zhi ","Liao ","Rong ","Lou ","Bi ","Shuang ","Zhuo ","Yu ","Wu ","Jue ","Yin ","Quan ","Si ","Jiao ","Yi ","Hua ","Bi ","Ying ","Su ","Huang ","Fan ","Jiao ","Liao ","Yan ","Kao ","Jiu ","Xian ","Xian ","Tu ","Mai ","Zun ","Yu ","Ying ","Lu ","Tuan ","Xian ","Xue ","Yi ","Pi "]});var K5=m((yze,G5)=>{G5.exports=["Shu ","Luo ","Qi ","Yi ","Ji ","Zhe ","Yu ","Zhan ","Ye ","Yang ","Pi ","Ning ","Huo ","Mi ","Ying ","Meng ","Di ","Yue ","Yu ","Lei ","Bao ","Lu ","He ","Long ","Shuang ","Yue ","Ying ","Guan ","Qu ","Li ","Luan ","Niao ","Jiu ","Ji ","Yuan ","Ming ","Shi ","Ou ","Ya ","Cang ","Bao ","Zhen ","Gu ","Dong ","Lu ","Ya ","Xiao ","Yang ","Ling ","Zhi ","Qu ","Yuan ","Xue ","Tuo ","Si ","Zhi ","Er ","Gua ","Xiu ","Heng ","Zhou ","Ge ","Luan ","Hong ","Wu ","Bo ","Li ","Juan ","Hu ","E ","Yu ","Xian ","Ti ","Wu ","Que ","Miao ","An ","Kun ","Bei ","Peng ","Qian ","Chun ","Geng ","Yuan ","Su ","Hu ","He ","E ","Gu ","Qiu ","Zi ","Mei ","Mu ","Ni ","Yao ","Weng ","Liu ","Ji ","Ni ","Jian ","He ","Yi ","Ying ","Zhe ","Liao ","Liao ","Jiao ","Jiu ","Yu ","Lu ","Xuan ","Zhan ","Ying ","Huo ","Meng ","Guan ","Shuang ","Lu ","Jin ","Ling ","Jian ","Xian ","Cuo ","Jian ","Jian ","Yan ","Cuo ","Lu ","You ","Cu ","Ji ","Biao ","Cu ","Biao ","Zhu ","Jun ","Zhu ","Jian ","Mi ","Mi ","Wu ","Liu ","Chen ","Jun ","Lin ","Ni ","Qi ","Lu ","Jiu ","Jun ","Jing ","Li ","Xiang ","Yan ","Jia ","Mi ","Li ","She ","Zhang ","Lin ","Jing ","Ji ","Ling ","Yan ","Cu ","Mai ","Mai ","Ge ","Chao ","Fu ","Mian ","Mian ","Fu ","Pao ","Qu ","Qu ","Mou ","Fu ","Xian ","Lai ","Qu ","Mian ","[?] ","Feng ","Fu ","Qu ","Mian ","Ma ","Mo ","Mo ","Hui ","Ma ","Zou ","Nen ","Fen ","Huang ","Huang ","Jin ","Guang ","Tian ","Tou ","Heng ","Xi ","Kuang ","Heng ","Shu ","Li ","Nian ","Chi ","Hei ","Hei ","Yi ","Qian ","Dan ","Xi ","Tuan ","Mo ","Mo ","Qian ","Dai ","Chu ","You ","Dian ","Yi ","Xia ","Yan ","Qu ","Mei ","Yan ","Jing ","Yu ","Li ","Dang ","Du ","Can ","Yin ","An ","Yan ","Tan ","An ","Zhen ","Dai ","Can ","Yi ","Mei ","Dan ","Yan ","Du ","Lu ","Zhi ","Fen ","Fu ","Fu ","Min ","Min ","Yuan "]});var Q5=m((vze,z5)=>{z5.exports=["Cu ","Qu ","Chao ","Wa ","Zhu ","Zhi ","Mang ","Ao ","Bie ","Tuo ","Bi ","Yuan ","Chao ","Tuo ","Ding ","Mi ","Nai ","Ding ","Zi ","Gu ","Gu ","Dong ","Fen ","Tao ","Yuan ","Pi ","Chang ","Gao ","Qi ","Yuan ","Tang ","Teng ","Shu ","Shu ","Fen ","Fei ","Wen ","Ba ","Diao ","Tuo ","Tong ","Qu ","Sheng ","Shi ","You ","Shi ","Ting ","Wu ","Nian ","Jing ","Hun ","Ju ","Yan ","Tu ","Ti ","Xi ","Xian ","Yan ","Lei ","Bi ","Yao ","Qiu ","Han ","Wu ","Wu ","Hou ","Xi ","Ge ","Zha ","Xiu ","Weng ","Zha ","Nong ","Nang ","Qi ","Zhai ","Ji ","Zi ","Ji ","Ji ","Qi ","Ji ","Chi ","Chen ","Chen ","He ","Ya ","Ken ","Xie ","Pao ","Cuo ","Shi ","Zi ","Chi ","Nian ","Ju ","Tiao ","Ling ","Ling ","Chu ","Quan ","Xie ","Ken ","Nie ","Jiu ","Yao ","Chuo ","Kun ","Yu ","Chu ","Yi ","Ni ","Cuo ","Zou ","Qu ","Nen ","Xian ","Ou ","E ","Wo ","Yi ","Chuo ","Zou ","Dian ","Chu ","Jin ","Ya ","Chi ","Chen ","He ","Ken ","Ju ","Ling ","Pao ","Tiao ","Zi ","Ken ","Yu ","Chuo ","Qu ","Wo ","Long ","Pang ","Gong ","Pang ","Yan ","Long ","Long ","Gong ","Kan ","Ta ","Ling ","Ta ","Long ","Gong ","Kan ","Gui ","Qiu ","Bie ","Gui ","Yue ","Chui ","He ","Jue ","Xie ","Yu ","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var eV=m((wze,V5)=>{V5.exports=["it","ix","i","ip","iet","iex","ie","iep","at","ax","a","ap","uox","uo","uop","ot","ox","o","op","ex","e","wu","bit","bix","bi","bip","biet","biex","bie","biep","bat","bax","ba","bap","buox","buo","buop","bot","box","bo","bop","bex","be","bep","but","bux","bu","bup","burx","bur","byt","byx","by","byp","byrx","byr","pit","pix","pi","pip","piex","pie","piep","pat","pax","pa","pap","puox","puo","puop","pot","pox","po","pop","put","pux","pu","pup","purx","pur","pyt","pyx","py","pyp","pyrx","pyr","bbit","bbix","bbi","bbip","bbiet","bbiex","bbie","bbiep","bbat","bbax","bba","bbap","bbuox","bbuo","bbuop","bbot","bbox","bbo","bbop","bbex","bbe","bbep","bbut","bbux","bbu","bbup","bburx","bbur","bbyt","bbyx","bby","bbyp","nbit","nbix","nbi","nbip","nbiex","nbie","nbiep","nbat","nbax","nba","nbap","nbot","nbox","nbo","nbop","nbut","nbux","nbu","nbup","nburx","nbur","nbyt","nbyx","nby","nbyp","nbyrx","nbyr","hmit","hmix","hmi","hmip","hmiex","hmie","hmiep","hmat","hmax","hma","hmap","hmuox","hmuo","hmuop","hmot","hmox","hmo","hmop","hmut","hmux","hmu","hmup","hmurx","hmur","hmyx","hmy","hmyp","hmyrx","hmyr","mit","mix","mi","mip","miex","mie","miep","mat","max","ma","map","muot","muox","muo","muop","mot","mox","mo","mop","mex","me","mut","mux","mu","mup","murx","mur","myt","myx","my","myp","fit","fix","fi","fip","fat","fax","fa","fap","fox","fo","fop","fut","fux","fu","fup","furx","fur","fyt","fyx","fy","fyp","vit","vix","vi","vip","viet","viex","vie","viep","vat","vax","va","vap","vot","vox","vo","vop","vex","vep","vut","vux","vu","vup","vurx","vur","vyt","vyx","vy","vyp","vyrx","vyr"]});var iV=m((xze,tV)=>{tV.exports=["dit","dix","di","dip","diex","die","diep","dat","dax","da","dap","duox","duo","dot","dox","do","dop","dex","de","dep","dut","dux","du","dup","durx","dur","tit","tix","ti","tip","tiex","tie","tiep","tat","tax","ta","tap","tuot","tuox","tuo","tuop","tot","tox","to","top","tex","te","tep","tut","tux","tu","tup","turx","tur","ddit","ddix","ddi","ddip","ddiex","ddie","ddiep","ddat","ddax","dda","ddap","dduox","dduo","dduop","ddot","ddox","ddo","ddop","ddex","dde","ddep","ddut","ddux","ddu","ddup","ddurx","ddur","ndit","ndix","ndi","ndip","ndiex","ndie","ndat","ndax","nda","ndap","ndot","ndox","ndo","ndop","ndex","nde","ndep","ndut","ndux","ndu","ndup","ndurx","ndur","hnit","hnix","hni","hnip","hniet","hniex","hnie","hniep","hnat","hnax","hna","hnap","hnuox","hnuo","hnot","hnox","hnop","hnex","hne","hnep","hnut","nit","nix","ni","nip","niex","nie","niep","nax","na","nap","nuox","nuo","nuop","not","nox","no","nop","nex","ne","nep","nut","nux","nu","nup","nurx","nur","hlit","hlix","hli","hlip","hliex","hlie","hliep","hlat","hlax","hla","hlap","hluox","hluo","hluop","hlox","hlo","hlop","hlex","hle","hlep","hlut","hlux","hlu","hlup","hlurx","hlur","hlyt","hlyx","hly","hlyp","hlyrx","hlyr","lit","lix","li","lip","liet","liex","lie","liep","lat","lax","la","lap","luot","luox","luo","luop","lot","lox","lo","lop","lex","le","lep","lut","lux","lu","lup","lurx","lur","lyt","lyx","ly","lyp","lyrx","lyr","git","gix","gi","gip","giet","giex","gie","giep","gat","gax","ga","gap","guot","guox","guo","guop","got","gox","go","gop","get","gex","ge","gep","gut","gux","gu","gup","gurx","gur","kit","kix","ki","kip","kiex","kie","kiep","kat"]});var rV=m((Cze,nV)=>{nV.exports=["kax","ka","kap","kuox","kuo","kuop","kot","kox","ko","kop","ket","kex","ke","kep","kut","kux","ku","kup","kurx","kur","ggit","ggix","ggi","ggiex","ggie","ggiep","ggat","ggax","gga","ggap","gguot","gguox","gguo","gguop","ggot","ggox","ggo","ggop","gget","ggex","gge","ggep","ggut","ggux","ggu","ggup","ggurx","ggur","mgiex","mgie","mgat","mgax","mga","mgap","mguox","mguo","mguop","mgot","mgox","mgo","mgop","mgex","mge","mgep","mgut","mgux","mgu","mgup","mgurx","mgur","hxit","hxix","hxi","hxip","hxiet","hxiex","hxie","hxiep","hxat","hxax","hxa","hxap","hxuot","hxuox","hxuo","hxuop","hxot","hxox","hxo","hxop","hxex","hxe","hxep","ngiex","ngie","ngiep","ngat","ngax","nga","ngap","nguot","nguox","nguo","ngot","ngox","ngo","ngop","ngex","nge","ngep","hit","hiex","hie","hat","hax","ha","hap","huot","huox","huo","huop","hot","hox","ho","hop","hex","he","hep","wat","wax","wa","wap","wuox","wuo","wuop","wox","wo","wop","wex","we","wep","zit","zix","zi","zip","ziex","zie","ziep","zat","zax","za","zap","zuox","zuo","zuop","zot","zox","zo","zop","zex","ze","zep","zut","zux","zu","zup","zurx","zur","zyt","zyx","zy","zyp","zyrx","zyr","cit","cix","ci","cip","ciet","ciex","cie","ciep","cat","cax","ca","cap","cuox","cuo","cuop","cot","cox","co","cop","cex","ce","cep","cut","cux","cu","cup","curx","cur","cyt","cyx","cy","cyp","cyrx","cyr","zzit","zzix","zzi","zzip","zziet","zziex","zzie","zziep","zzat","zzax","zza","zzap","zzox","zzo","zzop","zzex","zze","zzep","zzux","zzu","zzup","zzurx","zzur","zzyt","zzyx","zzy","zzyp","zzyrx","zzyr","nzit","nzix","nzi","nzip","nziex","nzie","nziep","nzat","nzax","nza","nzap","nzuox","nzuo","nzox","nzop","nzex","nze","nzux","nzu"]});var sV=m((Sze,oV)=>{oV.exports=["nzup","nzurx","nzur","nzyt","nzyx","nzy","nzyp","nzyrx","nzyr","sit","six","si","sip","siex","sie","siep","sat","sax","sa","sap","suox","suo","suop","sot","sox","so","sop","sex","se","sep","sut","sux","su","sup","surx","sur","syt","syx","sy","syp","syrx","syr","ssit","ssix","ssi","ssip","ssiex","ssie","ssiep","ssat","ssax","ssa","ssap","ssot","ssox","sso","ssop","ssex","sse","ssep","ssut","ssux","ssu","ssup","ssyt","ssyx","ssy","ssyp","ssyrx","ssyr","zhat","zhax","zha","zhap","zhuox","zhuo","zhuop","zhot","zhox","zho","zhop","zhet","zhex","zhe","zhep","zhut","zhux","zhu","zhup","zhurx","zhur","zhyt","zhyx","zhy","zhyp","zhyrx","zhyr","chat","chax","cha","chap","chuot","chuox","chuo","chuop","chot","chox","cho","chop","chet","chex","che","chep","chux","chu","chup","churx","chur","chyt","chyx","chy","chyp","chyrx","chyr","rrax","rra","rruox","rruo","rrot","rrox","rro","rrop","rret","rrex","rre","rrep","rrut","rrux","rru","rrup","rrurx","rrur","rryt","rryx","rry","rryp","rryrx","rryr","nrat","nrax","nra","nrap","nrox","nro","nrop","nret","nrex","nre","nrep","nrut","nrux","nru","nrup","nrurx","nrur","nryt","nryx","nry","nryp","nryrx","nryr","shat","shax","sha","shap","shuox","shuo","shuop","shot","shox","sho","shop","shet","shex","she","shep","shut","shux","shu","shup","shurx","shur","shyt","shyx","shy","shyp","shyrx","shyr","rat","rax","ra","rap","ruox","ruo","ruop","rot","rox","ro","rop","rex","re","rep","rut","rux","ru","rup","rurx","rur","ryt","ryx","ry","ryp","ryrx","ryr","jit","jix","ji","jip","jiet","jiex","jie","jiep","juot","juox","juo","juop","jot","jox","jo","jop","jut","jux","ju","jup","jurx","jur","jyt","jyx","jy","jyp","jyrx","jyr","qit","qix","qi","qip"]});var lV=m((Tze,aV)=>{aV.exports=["qiet","qiex","qie","qiep","quot","quox","quo","quop","qot","qox","qo","qop","qut","qux","qu","qup","qurx","qur","qyt","qyx","qy","qyp","qyrx","qyr","jjit","jjix","jji","jjip","jjiet","jjiex","jjie","jjiep","jjuox","jjuo","jjuop","jjot","jjox","jjo","jjop","jjut","jjux","jju","jjup","jjurx","jjur","jjyt","jjyx","jjy","jjyp","njit","njix","nji","njip","njiet","njiex","njie","njiep","njuox","njuo","njot","njox","njo","njop","njux","nju","njup","njurx","njur","njyt","njyx","njy","njyp","njyrx","njyr","nyit","nyix","nyi","nyip","nyiet","nyiex","nyie","nyiep","nyuox","nyuo","nyuop","nyot","nyox","nyo","nyop","nyut","nyux","nyu","nyup","xit","xix","xi","xip","xiet","xiex","xie","xiep","xuox","xuo","xot","xox","xo","xop","xyt","xyx","xy","xyp","xyrx","xyr","yit","yix","yi","yip","yiet","yiex","yie","yiep","yuot","yuox","yuo","yuop","yot","yox","yo","yop","yut","yux","yu","yup","yurx","yur","yyt","yyx","yy","yyp","yyrx","yyr","[?]","[?]","[?]","Qot","Li","Kit","Nyip","Cyp","Ssi","Ggop","Gep","Mi","Hxit","Lyr","Bbut","Mop","Yo","Put","Hxuo","Tat","Ga","[?]","[?]","Ddur","Bur","Gguo","Nyop","Tu","Op","Jjut","Zot","Pyt","Hmo","Yit","Vur","Shy","Vep","Za","Jo","[?]","Jjy","Got","Jjie","Wo","Du","Shur","Lie","Cy","Cuop","Cip","Hxop","Shat","[?]","Shop","Che","Zziet","[?]","Ke","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var cV=m((kze,uV)=>{uV.exports=["ga","gag","gagg","gags","gan","ganj","ganh","gad","gal","galg","galm","galb","gals","galt","galp","galh","gam","gab","gabs","gas","gass","gang","gaj","gac","gak","gat","gap","gah","gae","gaeg","gaegg","gaegs","gaen","gaenj","gaenh","gaed","gael","gaelg","gaelm","gaelb","gaels","gaelt","gaelp","gaelh","gaem","gaeb","gaebs","gaes","gaess","gaeng","gaej","gaec","gaek","gaet","gaep","gaeh","gya","gyag","gyagg","gyags","gyan","gyanj","gyanh","gyad","gyal","gyalg","gyalm","gyalb","gyals","gyalt","gyalp","gyalh","gyam","gyab","gyabs","gyas","gyass","gyang","gyaj","gyac","gyak","gyat","gyap","gyah","gyae","gyaeg","gyaegg","gyaegs","gyaen","gyaenj","gyaenh","gyaed","gyael","gyaelg","gyaelm","gyaelb","gyaels","gyaelt","gyaelp","gyaelh","gyaem","gyaeb","gyaebs","gyaes","gyaess","gyaeng","gyaej","gyaec","gyaek","gyaet","gyaep","gyaeh","geo","geog","geogg","geogs","geon","geonj","geonh","geod","geol","geolg","geolm","geolb","geols","geolt","geolp","geolh","geom","geob","geobs","geos","geoss","geong","geoj","geoc","geok","geot","geop","geoh","ge","geg","gegg","gegs","gen","genj","genh","ged","gel","gelg","gelm","gelb","gels","gelt","gelp","gelh","gem","geb","gebs","ges","gess","geng","gej","gec","gek","get","gep","geh","gyeo","gyeog","gyeogg","gyeogs","gyeon","gyeonj","gyeonh","gyeod","gyeol","gyeolg","gyeolm","gyeolb","gyeols","gyeolt","gyeolp","gyeolh","gyeom","gyeob","gyeobs","gyeos","gyeoss","gyeong","gyeoj","gyeoc","gyeok","gyeot","gyeop","gyeoh","gye","gyeg","gyegg","gyegs","gyen","gyenj","gyenh","gyed","gyel","gyelg","gyelm","gyelb","gyels","gyelt","gyelp","gyelh","gyem","gyeb","gyebs","gyes","gyess","gyeng","gyej","gyec","gyek","gyet","gyep","gyeh","go","gog","gogg","gogs","gon","gonj","gonh","god","gol","golg","golm","golb","gols","golt","golp","golh","gom","gob","gobs","gos","goss","gong","goj","goc","gok","got","gop","goh","gwa","gwag","gwagg","gwags"]});var dV=m((Dze,hV)=>{hV.exports=["gwan","gwanj","gwanh","gwad","gwal","gwalg","gwalm","gwalb","gwals","gwalt","gwalp","gwalh","gwam","gwab","gwabs","gwas","gwass","gwang","gwaj","gwac","gwak","gwat","gwap","gwah","gwae","gwaeg","gwaegg","gwaegs","gwaen","gwaenj","gwaenh","gwaed","gwael","gwaelg","gwaelm","gwaelb","gwaels","gwaelt","gwaelp","gwaelh","gwaem","gwaeb","gwaebs","gwaes","gwaess","gwaeng","gwaej","gwaec","gwaek","gwaet","gwaep","gwaeh","goe","goeg","goegg","goegs","goen","goenj","goenh","goed","goel","goelg","goelm","goelb","goels","goelt","goelp","goelh","goem","goeb","goebs","goes","goess","goeng","goej","goec","goek","goet","goep","goeh","gyo","gyog","gyogg","gyogs","gyon","gyonj","gyonh","gyod","gyol","gyolg","gyolm","gyolb","gyols","gyolt","gyolp","gyolh","gyom","gyob","gyobs","gyos","gyoss","gyong","gyoj","gyoc","gyok","gyot","gyop","gyoh","gu","gug","gugg","gugs","gun","gunj","gunh","gud","gul","gulg","gulm","gulb","guls","gult","gulp","gulh","gum","gub","gubs","gus","guss","gung","guj","guc","guk","gut","gup","guh","gweo","gweog","gweogg","gweogs","gweon","gweonj","gweonh","gweod","gweol","gweolg","gweolm","gweolb","gweols","gweolt","gweolp","gweolh","gweom","gweob","gweobs","gweos","gweoss","gweong","gweoj","gweoc","gweok","gweot","gweop","gweoh","gwe","gweg","gwegg","gwegs","gwen","gwenj","gwenh","gwed","gwel","gwelg","gwelm","gwelb","gwels","gwelt","gwelp","gwelh","gwem","gweb","gwebs","gwes","gwess","gweng","gwej","gwec","gwek","gwet","gwep","gweh","gwi","gwig","gwigg","gwigs","gwin","gwinj","gwinh","gwid","gwil","gwilg","gwilm","gwilb","gwils","gwilt","gwilp","gwilh","gwim","gwib","gwibs","gwis","gwiss","gwing","gwij","gwic","gwik","gwit","gwip","gwih","gyu","gyug","gyugg","gyugs","gyun","gyunj","gyunh","gyud","gyul","gyulg","gyulm","gyulb","gyuls","gyult","gyulp","gyulh","gyum","gyub","gyubs","gyus","gyuss","gyung","gyuj","gyuc","gyuk","gyut","gyup","gyuh","geu","geug","geugg","geugs","geun","geunj","geunh","geud"]});var fV=m((Eze,gV)=>{gV.exports=["geul","geulg","geulm","geulb","geuls","geult","geulp","geulh","geum","geub","geubs","geus","geuss","geung","geuj","geuc","geuk","geut","geup","geuh","gyi","gyig","gyigg","gyigs","gyin","gyinj","gyinh","gyid","gyil","gyilg","gyilm","gyilb","gyils","gyilt","gyilp","gyilh","gyim","gyib","gyibs","gyis","gyiss","gying","gyij","gyic","gyik","gyit","gyip","gyih","gi","gig","gigg","gigs","gin","ginj","ginh","gid","gil","gilg","gilm","gilb","gils","gilt","gilp","gilh","gim","gib","gibs","gis","giss","ging","gij","gic","gik","git","gip","gih","gga","ggag","ggagg","ggags","ggan","gganj","gganh","ggad","ggal","ggalg","ggalm","ggalb","ggals","ggalt","ggalp","ggalh","ggam","ggab","ggabs","ggas","ggass","ggang","ggaj","ggac","ggak","ggat","ggap","ggah","ggae","ggaeg","ggaegg","ggaegs","ggaen","ggaenj","ggaenh","ggaed","ggael","ggaelg","ggaelm","ggaelb","ggaels","ggaelt","ggaelp","ggaelh","ggaem","ggaeb","ggaebs","ggaes","ggaess","ggaeng","ggaej","ggaec","ggaek","ggaet","ggaep","ggaeh","ggya","ggyag","ggyagg","ggyags","ggyan","ggyanj","ggyanh","ggyad","ggyal","ggyalg","ggyalm","ggyalb","ggyals","ggyalt","ggyalp","ggyalh","ggyam","ggyab","ggyabs","ggyas","ggyass","ggyang","ggyaj","ggyac","ggyak","ggyat","ggyap","ggyah","ggyae","ggyaeg","ggyaegg","ggyaegs","ggyaen","ggyaenj","ggyaenh","ggyaed","ggyael","ggyaelg","ggyaelm","ggyaelb","ggyaels","ggyaelt","ggyaelp","ggyaelh","ggyaem","ggyaeb","ggyaebs","ggyaes","ggyaess","ggyaeng","ggyaej","ggyaec","ggyaek","ggyaet","ggyaep","ggyaeh","ggeo","ggeog","ggeogg","ggeogs","ggeon","ggeonj","ggeonh","ggeod","ggeol","ggeolg","ggeolm","ggeolb","ggeols","ggeolt","ggeolp","ggeolh","ggeom","ggeob","ggeobs","ggeos","ggeoss","ggeong","ggeoj","ggeoc","ggeok","ggeot","ggeop","ggeoh","gge","ggeg","ggegg","ggegs","ggen","ggenj","ggenh","gged","ggel","ggelg","ggelm","ggelb","ggels","ggelt","ggelp","ggelh","ggem","ggeb","ggebs","gges","ggess","ggeng","ggej","ggec","ggek","gget","ggep","ggeh","ggyeo","ggyeog","ggyeogg","ggyeogs","ggyeon","ggyeonj","ggyeonh","ggyeod","ggyeol","ggyeolg","ggyeolm","ggyeolb"]});var mV=m((_ze,pV)=>{pV.exports=["ggyeols","ggyeolt","ggyeolp","ggyeolh","ggyeom","ggyeob","ggyeobs","ggyeos","ggyeoss","ggyeong","ggyeoj","ggyeoc","ggyeok","ggyeot","ggyeop","ggyeoh","ggye","ggyeg","ggyegg","ggyegs","ggyen","ggyenj","ggyenh","ggyed","ggyel","ggyelg","ggyelm","ggyelb","ggyels","ggyelt","ggyelp","ggyelh","ggyem","ggyeb","ggyebs","ggyes","ggyess","ggyeng","ggyej","ggyec","ggyek","ggyet","ggyep","ggyeh","ggo","ggog","ggogg","ggogs","ggon","ggonj","ggonh","ggod","ggol","ggolg","ggolm","ggolb","ggols","ggolt","ggolp","ggolh","ggom","ggob","ggobs","ggos","ggoss","ggong","ggoj","ggoc","ggok","ggot","ggop","ggoh","ggwa","ggwag","ggwagg","ggwags","ggwan","ggwanj","ggwanh","ggwad","ggwal","ggwalg","ggwalm","ggwalb","ggwals","ggwalt","ggwalp","ggwalh","ggwam","ggwab","ggwabs","ggwas","ggwass","ggwang","ggwaj","ggwac","ggwak","ggwat","ggwap","ggwah","ggwae","ggwaeg","ggwaegg","ggwaegs","ggwaen","ggwaenj","ggwaenh","ggwaed","ggwael","ggwaelg","ggwaelm","ggwaelb","ggwaels","ggwaelt","ggwaelp","ggwaelh","ggwaem","ggwaeb","ggwaebs","ggwaes","ggwaess","ggwaeng","ggwaej","ggwaec","ggwaek","ggwaet","ggwaep","ggwaeh","ggoe","ggoeg","ggoegg","ggoegs","ggoen","ggoenj","ggoenh","ggoed","ggoel","ggoelg","ggoelm","ggoelb","ggoels","ggoelt","ggoelp","ggoelh","ggoem","ggoeb","ggoebs","ggoes","ggoess","ggoeng","ggoej","ggoec","ggoek","ggoet","ggoep","ggoeh","ggyo","ggyog","ggyogg","ggyogs","ggyon","ggyonj","ggyonh","ggyod","ggyol","ggyolg","ggyolm","ggyolb","ggyols","ggyolt","ggyolp","ggyolh","ggyom","ggyob","ggyobs","ggyos","ggyoss","ggyong","ggyoj","ggyoc","ggyok","ggyot","ggyop","ggyoh","ggu","ggug","ggugg","ggugs","ggun","ggunj","ggunh","ggud","ggul","ggulg","ggulm","ggulb","gguls","ggult","ggulp","ggulh","ggum","ggub","ggubs","ggus","gguss","ggung","gguj","gguc","gguk","ggut","ggup","gguh","ggweo","ggweog","ggweogg","ggweogs","ggweon","ggweonj","ggweonh","ggweod","ggweol","ggweolg","ggweolm","ggweolb","ggweols","ggweolt","ggweolp","ggweolh","ggweom","ggweob","ggweobs","ggweos","ggweoss","ggweong","ggweoj","ggweoc","ggweok","ggweot","ggweop","ggweoh","ggwe","ggweg","ggwegg","ggwegs","ggwen","ggwenj","ggwenh","ggwed","ggwel","ggwelg","ggwelm","ggwelb","ggwels","ggwelt","ggwelp","ggwelh"]});var yV=m((Pze,bV)=>{bV.exports=["ggwem","ggweb","ggwebs","ggwes","ggwess","ggweng","ggwej","ggwec","ggwek","ggwet","ggwep","ggweh","ggwi","ggwig","ggwigg","ggwigs","ggwin","ggwinj","ggwinh","ggwid","ggwil","ggwilg","ggwilm","ggwilb","ggwils","ggwilt","ggwilp","ggwilh","ggwim","ggwib","ggwibs","ggwis","ggwiss","ggwing","ggwij","ggwic","ggwik","ggwit","ggwip","ggwih","ggyu","ggyug","ggyugg","ggyugs","ggyun","ggyunj","ggyunh","ggyud","ggyul","ggyulg","ggyulm","ggyulb","ggyuls","ggyult","ggyulp","ggyulh","ggyum","ggyub","ggyubs","ggyus","ggyuss","ggyung","ggyuj","ggyuc","ggyuk","ggyut","ggyup","ggyuh","ggeu","ggeug","ggeugg","ggeugs","ggeun","ggeunj","ggeunh","ggeud","ggeul","ggeulg","ggeulm","ggeulb","ggeuls","ggeult","ggeulp","ggeulh","ggeum","ggeub","ggeubs","ggeus","ggeuss","ggeung","ggeuj","ggeuc","ggeuk","ggeut","ggeup","ggeuh","ggyi","ggyig","ggyigg","ggyigs","ggyin","ggyinj","ggyinh","ggyid","ggyil","ggyilg","ggyilm","ggyilb","ggyils","ggyilt","ggyilp","ggyilh","ggyim","ggyib","ggyibs","ggyis","ggyiss","ggying","ggyij","ggyic","ggyik","ggyit","ggyip","ggyih","ggi","ggig","ggigg","ggigs","ggin","gginj","gginh","ggid","ggil","ggilg","ggilm","ggilb","ggils","ggilt","ggilp","ggilh","ggim","ggib","ggibs","ggis","ggiss","gging","ggij","ggic","ggik","ggit","ggip","ggih","na","nag","nagg","nags","nan","nanj","nanh","nad","nal","nalg","nalm","nalb","nals","nalt","nalp","nalh","nam","nab","nabs","nas","nass","nang","naj","nac","nak","nat","nap","nah","nae","naeg","naegg","naegs","naen","naenj","naenh","naed","nael","naelg","naelm","naelb","naels","naelt","naelp","naelh","naem","naeb","naebs","naes","naess","naeng","naej","naec","naek","naet","naep","naeh","nya","nyag","nyagg","nyags","nyan","nyanj","nyanh","nyad","nyal","nyalg","nyalm","nyalb","nyals","nyalt","nyalp","nyalh","nyam","nyab","nyabs","nyas","nyass","nyang","nyaj","nyac","nyak","nyat","nyap","nyah","nyae","nyaeg","nyaegg","nyaegs","nyaen","nyaenj","nyaenh","nyaed","nyael","nyaelg","nyaelm","nyaelb","nyaels","nyaelt","nyaelp","nyaelh","nyaem","nyaeb","nyaebs","nyaes"]});var wV=m((Rze,vV)=>{vV.exports=["nyaess","nyaeng","nyaej","nyaec","nyaek","nyaet","nyaep","nyaeh","neo","neog","neogg","neogs","neon","neonj","neonh","neod","neol","neolg","neolm","neolb","neols","neolt","neolp","neolh","neom","neob","neobs","neos","neoss","neong","neoj","neoc","neok","neot","neop","neoh","ne","neg","negg","negs","nen","nenj","nenh","ned","nel","nelg","nelm","nelb","nels","nelt","nelp","nelh","nem","neb","nebs","nes","ness","neng","nej","nec","nek","net","nep","neh","nyeo","nyeog","nyeogg","nyeogs","nyeon","nyeonj","nyeonh","nyeod","nyeol","nyeolg","nyeolm","nyeolb","nyeols","nyeolt","nyeolp","nyeolh","nyeom","nyeob","nyeobs","nyeos","nyeoss","nyeong","nyeoj","nyeoc","nyeok","nyeot","nyeop","nyeoh","nye","nyeg","nyegg","nyegs","nyen","nyenj","nyenh","nyed","nyel","nyelg","nyelm","nyelb","nyels","nyelt","nyelp","nyelh","nyem","nyeb","nyebs","nyes","nyess","nyeng","nyej","nyec","nyek","nyet","nyep","nyeh","no","nog","nogg","nogs","non","nonj","nonh","nod","nol","nolg","nolm","nolb","nols","nolt","nolp","nolh","nom","nob","nobs","nos","noss","nong","noj","noc","nok","not","nop","noh","nwa","nwag","nwagg","nwags","nwan","nwanj","nwanh","nwad","nwal","nwalg","nwalm","nwalb","nwals","nwalt","nwalp","nwalh","nwam","nwab","nwabs","nwas","nwass","nwang","nwaj","nwac","nwak","nwat","nwap","nwah","nwae","nwaeg","nwaegg","nwaegs","nwaen","nwaenj","nwaenh","nwaed","nwael","nwaelg","nwaelm","nwaelb","nwaels","nwaelt","nwaelp","nwaelh","nwaem","nwaeb","nwaebs","nwaes","nwaess","nwaeng","nwaej","nwaec","nwaek","nwaet","nwaep","nwaeh","noe","noeg","noegg","noegs","noen","noenj","noenh","noed","noel","noelg","noelm","noelb","noels","noelt","noelp","noelh","noem","noeb","noebs","noes","noess","noeng","noej","noec","noek","noet","noep","noeh","nyo","nyog","nyogg","nyogs","nyon","nyonj","nyonh","nyod","nyol","nyolg","nyolm","nyolb","nyols","nyolt","nyolp","nyolh","nyom","nyob","nyobs","nyos","nyoss","nyong","nyoj","nyoc"]});var CV=m((Lze,xV)=>{xV.exports=["nyok","nyot","nyop","nyoh","nu","nug","nugg","nugs","nun","nunj","nunh","nud","nul","nulg","nulm","nulb","nuls","nult","nulp","nulh","num","nub","nubs","nus","nuss","nung","nuj","nuc","nuk","nut","nup","nuh","nweo","nweog","nweogg","nweogs","nweon","nweonj","nweonh","nweod","nweol","nweolg","nweolm","nweolb","nweols","nweolt","nweolp","nweolh","nweom","nweob","nweobs","nweos","nweoss","nweong","nweoj","nweoc","nweok","nweot","nweop","nweoh","nwe","nweg","nwegg","nwegs","nwen","nwenj","nwenh","nwed","nwel","nwelg","nwelm","nwelb","nwels","nwelt","nwelp","nwelh","nwem","nweb","nwebs","nwes","nwess","nweng","nwej","nwec","nwek","nwet","nwep","nweh","nwi","nwig","nwigg","nwigs","nwin","nwinj","nwinh","nwid","nwil","nwilg","nwilm","nwilb","nwils","nwilt","nwilp","nwilh","nwim","nwib","nwibs","nwis","nwiss","nwing","nwij","nwic","nwik","nwit","nwip","nwih","nyu","nyug","nyugg","nyugs","nyun","nyunj","nyunh","nyud","nyul","nyulg","nyulm","nyulb","nyuls","nyult","nyulp","nyulh","nyum","nyub","nyubs","nyus","nyuss","nyung","nyuj","nyuc","nyuk","nyut","nyup","nyuh","neu","neug","neugg","neugs","neun","neunj","neunh","neud","neul","neulg","neulm","neulb","neuls","neult","neulp","neulh","neum","neub","neubs","neus","neuss","neung","neuj","neuc","neuk","neut","neup","neuh","nyi","nyig","nyigg","nyigs","nyin","nyinj","nyinh","nyid","nyil","nyilg","nyilm","nyilb","nyils","nyilt","nyilp","nyilh","nyim","nyib","nyibs","nyis","nyiss","nying","nyij","nyic","nyik","nyit","nyip","nyih","ni","nig","nigg","nigs","nin","ninj","ninh","nid","nil","nilg","nilm","nilb","nils","nilt","nilp","nilh","nim","nib","nibs","nis","niss","ning","nij","nic","nik","nit","nip","nih","da","dag","dagg","dags","dan","danj","danh","dad","dal","dalg","dalm","dalb","dals","dalt","dalp","dalh","dam","dab","dabs","das","dass","dang","daj","dac","dak","dat","dap","dah"]});var TV=m((Ize,SV)=>{SV.exports=["dae","daeg","daegg","daegs","daen","daenj","daenh","daed","dael","daelg","daelm","daelb","daels","daelt","daelp","daelh","daem","daeb","daebs","daes","daess","daeng","daej","daec","daek","daet","daep","daeh","dya","dyag","dyagg","dyags","dyan","dyanj","dyanh","dyad","dyal","dyalg","dyalm","dyalb","dyals","dyalt","dyalp","dyalh","dyam","dyab","dyabs","dyas","dyass","dyang","dyaj","dyac","dyak","dyat","dyap","dyah","dyae","dyaeg","dyaegg","dyaegs","dyaen","dyaenj","dyaenh","dyaed","dyael","dyaelg","dyaelm","dyaelb","dyaels","dyaelt","dyaelp","dyaelh","dyaem","dyaeb","dyaebs","dyaes","dyaess","dyaeng","dyaej","dyaec","dyaek","dyaet","dyaep","dyaeh","deo","deog","deogg","deogs","deon","deonj","deonh","deod","deol","deolg","deolm","deolb","deols","deolt","deolp","deolh","deom","deob","deobs","deos","deoss","deong","deoj","deoc","deok","deot","deop","deoh","de","deg","degg","degs","den","denj","denh","ded","del","delg","delm","delb","dels","delt","delp","delh","dem","deb","debs","des","dess","deng","dej","dec","dek","det","dep","deh","dyeo","dyeog","dyeogg","dyeogs","dyeon","dyeonj","dyeonh","dyeod","dyeol","dyeolg","dyeolm","dyeolb","dyeols","dyeolt","dyeolp","dyeolh","dyeom","dyeob","dyeobs","dyeos","dyeoss","dyeong","dyeoj","dyeoc","dyeok","dyeot","dyeop","dyeoh","dye","dyeg","dyegg","dyegs","dyen","dyenj","dyenh","dyed","dyel","dyelg","dyelm","dyelb","dyels","dyelt","dyelp","dyelh","dyem","dyeb","dyebs","dyes","dyess","dyeng","dyej","dyec","dyek","dyet","dyep","dyeh","do","dog","dogg","dogs","don","donj","donh","dod","dol","dolg","dolm","dolb","dols","dolt","dolp","dolh","dom","dob","dobs","dos","doss","dong","doj","doc","dok","dot","dop","doh","dwa","dwag","dwagg","dwags","dwan","dwanj","dwanh","dwad","dwal","dwalg","dwalm","dwalb","dwals","dwalt","dwalp","dwalh","dwam","dwab","dwabs","dwas","dwass","dwang","dwaj","dwac","dwak","dwat","dwap","dwah","dwae","dwaeg","dwaegg","dwaegs"]});var DV=m((jze,kV)=>{kV.exports=["dwaen","dwaenj","dwaenh","dwaed","dwael","dwaelg","dwaelm","dwaelb","dwaels","dwaelt","dwaelp","dwaelh","dwaem","dwaeb","dwaebs","dwaes","dwaess","dwaeng","dwaej","dwaec","dwaek","dwaet","dwaep","dwaeh","doe","doeg","doegg","doegs","doen","doenj","doenh","doed","doel","doelg","doelm","doelb","doels","doelt","doelp","doelh","doem","doeb","doebs","does","doess","doeng","doej","doec","doek","doet","doep","doeh","dyo","dyog","dyogg","dyogs","dyon","dyonj","dyonh","dyod","dyol","dyolg","dyolm","dyolb","dyols","dyolt","dyolp","dyolh","dyom","dyob","dyobs","dyos","dyoss","dyong","dyoj","dyoc","dyok","dyot","dyop","dyoh","du","dug","dugg","dugs","dun","dunj","dunh","dud","dul","dulg","dulm","dulb","duls","dult","dulp","dulh","dum","dub","dubs","dus","duss","dung","duj","duc","duk","dut","dup","duh","dweo","dweog","dweogg","dweogs","dweon","dweonj","dweonh","dweod","dweol","dweolg","dweolm","dweolb","dweols","dweolt","dweolp","dweolh","dweom","dweob","dweobs","dweos","dweoss","dweong","dweoj","dweoc","dweok","dweot","dweop","dweoh","dwe","dweg","dwegg","dwegs","dwen","dwenj","dwenh","dwed","dwel","dwelg","dwelm","dwelb","dwels","dwelt","dwelp","dwelh","dwem","dweb","dwebs","dwes","dwess","dweng","dwej","dwec","dwek","dwet","dwep","dweh","dwi","dwig","dwigg","dwigs","dwin","dwinj","dwinh","dwid","dwil","dwilg","dwilm","dwilb","dwils","dwilt","dwilp","dwilh","dwim","dwib","dwibs","dwis","dwiss","dwing","dwij","dwic","dwik","dwit","dwip","dwih","dyu","dyug","dyugg","dyugs","dyun","dyunj","dyunh","dyud","dyul","dyulg","dyulm","dyulb","dyuls","dyult","dyulp","dyulh","dyum","dyub","dyubs","dyus","dyuss","dyung","dyuj","dyuc","dyuk","dyut","dyup","dyuh","deu","deug","deugg","deugs","deun","deunj","deunh","deud","deul","deulg","deulm","deulb","deuls","deult","deulp","deulh","deum","deub","deubs","deus","deuss","deung","deuj","deuc","deuk","deut","deup","deuh","dyi","dyig","dyigg","dyigs","dyin","dyinj","dyinh","dyid"]});var _V=m((Fze,EV)=>{EV.exports=["dyil","dyilg","dyilm","dyilb","dyils","dyilt","dyilp","dyilh","dyim","dyib","dyibs","dyis","dyiss","dying","dyij","dyic","dyik","dyit","dyip","dyih","di","dig","digg","digs","din","dinj","dinh","did","dil","dilg","dilm","dilb","dils","dilt","dilp","dilh","dim","dib","dibs","dis","diss","ding","dij","dic","dik","dit","dip","dih","dda","ddag","ddagg","ddags","ddan","ddanj","ddanh","ddad","ddal","ddalg","ddalm","ddalb","ddals","ddalt","ddalp","ddalh","ddam","ddab","ddabs","ddas","ddass","ddang","ddaj","ddac","ddak","ddat","ddap","ddah","ddae","ddaeg","ddaegg","ddaegs","ddaen","ddaenj","ddaenh","ddaed","ddael","ddaelg","ddaelm","ddaelb","ddaels","ddaelt","ddaelp","ddaelh","ddaem","ddaeb","ddaebs","ddaes","ddaess","ddaeng","ddaej","ddaec","ddaek","ddaet","ddaep","ddaeh","ddya","ddyag","ddyagg","ddyags","ddyan","ddyanj","ddyanh","ddyad","ddyal","ddyalg","ddyalm","ddyalb","ddyals","ddyalt","ddyalp","ddyalh","ddyam","ddyab","ddyabs","ddyas","ddyass","ddyang","ddyaj","ddyac","ddyak","ddyat","ddyap","ddyah","ddyae","ddyaeg","ddyaegg","ddyaegs","ddyaen","ddyaenj","ddyaenh","ddyaed","ddyael","ddyaelg","ddyaelm","ddyaelb","ddyaels","ddyaelt","ddyaelp","ddyaelh","ddyaem","ddyaeb","ddyaebs","ddyaes","ddyaess","ddyaeng","ddyaej","ddyaec","ddyaek","ddyaet","ddyaep","ddyaeh","ddeo","ddeog","ddeogg","ddeogs","ddeon","ddeonj","ddeonh","ddeod","ddeol","ddeolg","ddeolm","ddeolb","ddeols","ddeolt","ddeolp","ddeolh","ddeom","ddeob","ddeobs","ddeos","ddeoss","ddeong","ddeoj","ddeoc","ddeok","ddeot","ddeop","ddeoh","dde","ddeg","ddegg","ddegs","dden","ddenj","ddenh","dded","ddel","ddelg","ddelm","ddelb","ddels","ddelt","ddelp","ddelh","ddem","ddeb","ddebs","ddes","ddess","ddeng","ddej","ddec","ddek","ddet","ddep","ddeh","ddyeo","ddyeog","ddyeogg","ddyeogs","ddyeon","ddyeonj","ddyeonh","ddyeod","ddyeol","ddyeolg","ddyeolm","ddyeolb","ddyeols","ddyeolt","ddyeolp","ddyeolh","ddyeom","ddyeob","ddyeobs","ddyeos","ddyeoss","ddyeong","ddyeoj","ddyeoc","ddyeok","ddyeot","ddyeop","ddyeoh","ddye","ddyeg","ddyegg","ddyegs","ddyen","ddyenj","ddyenh","ddyed","ddyel","ddyelg","ddyelm","ddyelb"]});var RV=m((Oze,PV)=>{PV.exports=["ddyels","ddyelt","ddyelp","ddyelh","ddyem","ddyeb","ddyebs","ddyes","ddyess","ddyeng","ddyej","ddyec","ddyek","ddyet","ddyep","ddyeh","ddo","ddog","ddogg","ddogs","ddon","ddonj","ddonh","ddod","ddol","ddolg","ddolm","ddolb","ddols","ddolt","ddolp","ddolh","ddom","ddob","ddobs","ddos","ddoss","ddong","ddoj","ddoc","ddok","ddot","ddop","ddoh","ddwa","ddwag","ddwagg","ddwags","ddwan","ddwanj","ddwanh","ddwad","ddwal","ddwalg","ddwalm","ddwalb","ddwals","ddwalt","ddwalp","ddwalh","ddwam","ddwab","ddwabs","ddwas","ddwass","ddwang","ddwaj","ddwac","ddwak","ddwat","ddwap","ddwah","ddwae","ddwaeg","ddwaegg","ddwaegs","ddwaen","ddwaenj","ddwaenh","ddwaed","ddwael","ddwaelg","ddwaelm","ddwaelb","ddwaels","ddwaelt","ddwaelp","ddwaelh","ddwaem","ddwaeb","ddwaebs","ddwaes","ddwaess","ddwaeng","ddwaej","ddwaec","ddwaek","ddwaet","ddwaep","ddwaeh","ddoe","ddoeg","ddoegg","ddoegs","ddoen","ddoenj","ddoenh","ddoed","ddoel","ddoelg","ddoelm","ddoelb","ddoels","ddoelt","ddoelp","ddoelh","ddoem","ddoeb","ddoebs","ddoes","ddoess","ddoeng","ddoej","ddoec","ddoek","ddoet","ddoep","ddoeh","ddyo","ddyog","ddyogg","ddyogs","ddyon","ddyonj","ddyonh","ddyod","ddyol","ddyolg","ddyolm","ddyolb","ddyols","ddyolt","ddyolp","ddyolh","ddyom","ddyob","ddyobs","ddyos","ddyoss","ddyong","ddyoj","ddyoc","ddyok","ddyot","ddyop","ddyoh","ddu","ddug","ddugg","ddugs","ddun","ddunj","ddunh","ddud","ddul","ddulg","ddulm","ddulb","dduls","ddult","ddulp","ddulh","ddum","ddub","ddubs","ddus","dduss","ddung","dduj","dduc","dduk","ddut","ddup","dduh","ddweo","ddweog","ddweogg","ddweogs","ddweon","ddweonj","ddweonh","ddweod","ddweol","ddweolg","ddweolm","ddweolb","ddweols","ddweolt","ddweolp","ddweolh","ddweom","ddweob","ddweobs","ddweos","ddweoss","ddweong","ddweoj","ddweoc","ddweok","ddweot","ddweop","ddweoh","ddwe","ddweg","ddwegg","ddwegs","ddwen","ddwenj","ddwenh","ddwed","ddwel","ddwelg","ddwelm","ddwelb","ddwels","ddwelt","ddwelp","ddwelh","ddwem","ddweb","ddwebs","ddwes","ddwess","ddweng","ddwej","ddwec","ddwek","ddwet","ddwep","ddweh","ddwi","ddwig","ddwigg","ddwigs","ddwin","ddwinj","ddwinh","ddwid","ddwil","ddwilg","ddwilm","ddwilb","ddwils","ddwilt","ddwilp","ddwilh"]});var IV=m((Mze,LV)=>{LV.exports=["ddwim","ddwib","ddwibs","ddwis","ddwiss","ddwing","ddwij","ddwic","ddwik","ddwit","ddwip","ddwih","ddyu","ddyug","ddyugg","ddyugs","ddyun","ddyunj","ddyunh","ddyud","ddyul","ddyulg","ddyulm","ddyulb","ddyuls","ddyult","ddyulp","ddyulh","ddyum","ddyub","ddyubs","ddyus","ddyuss","ddyung","ddyuj","ddyuc","ddyuk","ddyut","ddyup","ddyuh","ddeu","ddeug","ddeugg","ddeugs","ddeun","ddeunj","ddeunh","ddeud","ddeul","ddeulg","ddeulm","ddeulb","ddeuls","ddeult","ddeulp","ddeulh","ddeum","ddeub","ddeubs","ddeus","ddeuss","ddeung","ddeuj","ddeuc","ddeuk","ddeut","ddeup","ddeuh","ddyi","ddyig","ddyigg","ddyigs","ddyin","ddyinj","ddyinh","ddyid","ddyil","ddyilg","ddyilm","ddyilb","ddyils","ddyilt","ddyilp","ddyilh","ddyim","ddyib","ddyibs","ddyis","ddyiss","ddying","ddyij","ddyic","ddyik","ddyit","ddyip","ddyih","ddi","ddig","ddigg","ddigs","ddin","ddinj","ddinh","ddid","ddil","ddilg","ddilm","ddilb","ddils","ddilt","ddilp","ddilh","ddim","ddib","ddibs","ddis","ddiss","dding","ddij","ddic","ddik","ddit","ddip","ddih","ra","rag","ragg","rags","ran","ranj","ranh","rad","ral","ralg","ralm","ralb","rals","ralt","ralp","ralh","ram","rab","rabs","ras","rass","rang","raj","rac","rak","rat","rap","rah","rae","raeg","raegg","raegs","raen","raenj","raenh","raed","rael","raelg","raelm","raelb","raels","raelt","raelp","raelh","raem","raeb","raebs","raes","raess","raeng","raej","raec","raek","raet","raep","raeh","rya","ryag","ryagg","ryags","ryan","ryanj","ryanh","ryad","ryal","ryalg","ryalm","ryalb","ryals","ryalt","ryalp","ryalh","ryam","ryab","ryabs","ryas","ryass","ryang","ryaj","ryac","ryak","ryat","ryap","ryah","ryae","ryaeg","ryaegg","ryaegs","ryaen","ryaenj","ryaenh","ryaed","ryael","ryaelg","ryaelm","ryaelb","ryaels","ryaelt","ryaelp","ryaelh","ryaem","ryaeb","ryaebs","ryaes","ryaess","ryaeng","ryaej","ryaec","ryaek","ryaet","ryaep","ryaeh","reo","reog","reogg","reogs","reon","reonj","reonh","reod","reol","reolg","reolm","reolb","reols","reolt","reolp","reolh","reom","reob","reobs","reos"]});var FV=m((Aze,jV)=>{jV.exports=["reoss","reong","reoj","reoc","reok","reot","reop","reoh","re","reg","regg","regs","ren","renj","renh","red","rel","relg","relm","relb","rels","relt","relp","relh","rem","reb","rebs","res","ress","reng","rej","rec","rek","ret","rep","reh","ryeo","ryeog","ryeogg","ryeogs","ryeon","ryeonj","ryeonh","ryeod","ryeol","ryeolg","ryeolm","ryeolb","ryeols","ryeolt","ryeolp","ryeolh","ryeom","ryeob","ryeobs","ryeos","ryeoss","ryeong","ryeoj","ryeoc","ryeok","ryeot","ryeop","ryeoh","rye","ryeg","ryegg","ryegs","ryen","ryenj","ryenh","ryed","ryel","ryelg","ryelm","ryelb","ryels","ryelt","ryelp","ryelh","ryem","ryeb","ryebs","ryes","ryess","ryeng","ryej","ryec","ryek","ryet","ryep","ryeh","ro","rog","rogg","rogs","ron","ronj","ronh","rod","rol","rolg","rolm","rolb","rols","rolt","rolp","rolh","rom","rob","robs","ros","ross","rong","roj","roc","rok","rot","rop","roh","rwa","rwag","rwagg","rwags","rwan","rwanj","rwanh","rwad","rwal","rwalg","rwalm","rwalb","rwals","rwalt","rwalp","rwalh","rwam","rwab","rwabs","rwas","rwass","rwang","rwaj","rwac","rwak","rwat","rwap","rwah","rwae","rwaeg","rwaegg","rwaegs","rwaen","rwaenj","rwaenh","rwaed","rwael","rwaelg","rwaelm","rwaelb","rwaels","rwaelt","rwaelp","rwaelh","rwaem","rwaeb","rwaebs","rwaes","rwaess","rwaeng","rwaej","rwaec","rwaek","rwaet","rwaep","rwaeh","roe","roeg","roegg","roegs","roen","roenj","roenh","roed","roel","roelg","roelm","roelb","roels","roelt","roelp","roelh","roem","roeb","roebs","roes","roess","roeng","roej","roec","roek","roet","roep","roeh","ryo","ryog","ryogg","ryogs","ryon","ryonj","ryonh","ryod","ryol","ryolg","ryolm","ryolb","ryols","ryolt","ryolp","ryolh","ryom","ryob","ryobs","ryos","ryoss","ryong","ryoj","ryoc","ryok","ryot","ryop","ryoh","ru","rug","rugg","rugs","run","runj","runh","rud","rul","rulg","rulm","rulb","ruls","rult","rulp","rulh","rum","rub","rubs","rus","russ","rung","ruj","ruc"]});var MV=m((Nze,OV)=>{OV.exports=["ruk","rut","rup","ruh","rweo","rweog","rweogg","rweogs","rweon","rweonj","rweonh","rweod","rweol","rweolg","rweolm","rweolb","rweols","rweolt","rweolp","rweolh","rweom","rweob","rweobs","rweos","rweoss","rweong","rweoj","rweoc","rweok","rweot","rweop","rweoh","rwe","rweg","rwegg","rwegs","rwen","rwenj","rwenh","rwed","rwel","rwelg","rwelm","rwelb","rwels","rwelt","rwelp","rwelh","rwem","rweb","rwebs","rwes","rwess","rweng","rwej","rwec","rwek","rwet","rwep","rweh","rwi","rwig","rwigg","rwigs","rwin","rwinj","rwinh","rwid","rwil","rwilg","rwilm","rwilb","rwils","rwilt","rwilp","rwilh","rwim","rwib","rwibs","rwis","rwiss","rwing","rwij","rwic","rwik","rwit","rwip","rwih","ryu","ryug","ryugg","ryugs","ryun","ryunj","ryunh","ryud","ryul","ryulg","ryulm","ryulb","ryuls","ryult","ryulp","ryulh","ryum","ryub","ryubs","ryus","ryuss","ryung","ryuj","ryuc","ryuk","ryut","ryup","ryuh","reu","reug","reugg","reugs","reun","reunj","reunh","reud","reul","reulg","reulm","reulb","reuls","reult","reulp","reulh","reum","reub","reubs","reus","reuss","reung","reuj","reuc","reuk","reut","reup","reuh","ryi","ryig","ryigg","ryigs","ryin","ryinj","ryinh","ryid","ryil","ryilg","ryilm","ryilb","ryils","ryilt","ryilp","ryilh","ryim","ryib","ryibs","ryis","ryiss","rying","ryij","ryic","ryik","ryit","ryip","ryih","ri","rig","rigg","rigs","rin","rinj","rinh","rid","ril","rilg","rilm","rilb","rils","rilt","rilp","rilh","rim","rib","ribs","ris","riss","ring","rij","ric","rik","rit","rip","rih","ma","mag","magg","mags","man","manj","manh","mad","mal","malg","malm","malb","mals","malt","malp","malh","mam","mab","mabs","mas","mass","mang","maj","mac","mak","mat","map","mah","mae","maeg","maegg","maegs","maen","maenj","maenh","maed","mael","maelg","maelm","maelb","maels","maelt","maelp","maelh","maem","maeb","maebs","maes","maess","maeng","maej","maec","maek","maet","maep","maeh"]});var NV=m((Hze,AV)=>{AV.exports=["mya","myag","myagg","myags","myan","myanj","myanh","myad","myal","myalg","myalm","myalb","myals","myalt","myalp","myalh","myam","myab","myabs","myas","myass","myang","myaj","myac","myak","myat","myap","myah","myae","myaeg","myaegg","myaegs","myaen","myaenj","myaenh","myaed","myael","myaelg","myaelm","myaelb","myaels","myaelt","myaelp","myaelh","myaem","myaeb","myaebs","myaes","myaess","myaeng","myaej","myaec","myaek","myaet","myaep","myaeh","meo","meog","meogg","meogs","meon","meonj","meonh","meod","meol","meolg","meolm","meolb","meols","meolt","meolp","meolh","meom","meob","meobs","meos","meoss","meong","meoj","meoc","meok","meot","meop","meoh","me","meg","megg","megs","men","menj","menh","med","mel","melg","melm","melb","mels","melt","melp","melh","mem","meb","mebs","mes","mess","meng","mej","mec","mek","met","mep","meh","myeo","myeog","myeogg","myeogs","myeon","myeonj","myeonh","myeod","myeol","myeolg","myeolm","myeolb","myeols","myeolt","myeolp","myeolh","myeom","myeob","myeobs","myeos","myeoss","myeong","myeoj","myeoc","myeok","myeot","myeop","myeoh","mye","myeg","myegg","myegs","myen","myenj","myenh","myed","myel","myelg","myelm","myelb","myels","myelt","myelp","myelh","myem","myeb","myebs","myes","myess","myeng","myej","myec","myek","myet","myep","myeh","mo","mog","mogg","mogs","mon","monj","monh","mod","mol","molg","molm","molb","mols","molt","molp","molh","mom","mob","mobs","mos","moss","mong","moj","moc","mok","mot","mop","moh","mwa","mwag","mwagg","mwags","mwan","mwanj","mwanh","mwad","mwal","mwalg","mwalm","mwalb","mwals","mwalt","mwalp","mwalh","mwam","mwab","mwabs","mwas","mwass","mwang","mwaj","mwac","mwak","mwat","mwap","mwah","mwae","mwaeg","mwaegg","mwaegs","mwaen","mwaenj","mwaenh","mwaed","mwael","mwaelg","mwaelm","mwaelb","mwaels","mwaelt","mwaelp","mwaelh","mwaem","mwaeb","mwaebs","mwaes","mwaess","mwaeng","mwaej","mwaec","mwaek","mwaet","mwaep","mwaeh","moe","moeg","moegg","moegs"]});var qV=m((qze,HV)=>{HV.exports=["moen","moenj","moenh","moed","moel","moelg","moelm","moelb","moels","moelt","moelp","moelh","moem","moeb","moebs","moes","moess","moeng","moej","moec","moek","moet","moep","moeh","myo","myog","myogg","myogs","myon","myonj","myonh","myod","myol","myolg","myolm","myolb","myols","myolt","myolp","myolh","myom","myob","myobs","myos","myoss","myong","myoj","myoc","myok","myot","myop","myoh","mu","mug","mugg","mugs","mun","munj","munh","mud","mul","mulg","mulm","mulb","muls","mult","mulp","mulh","mum","mub","mubs","mus","muss","mung","muj","muc","muk","mut","mup","muh","mweo","mweog","mweogg","mweogs","mweon","mweonj","mweonh","mweod","mweol","mweolg","mweolm","mweolb","mweols","mweolt","mweolp","mweolh","mweom","mweob","mweobs","mweos","mweoss","mweong","mweoj","mweoc","mweok","mweot","mweop","mweoh","mwe","mweg","mwegg","mwegs","mwen","mwenj","mwenh","mwed","mwel","mwelg","mwelm","mwelb","mwels","mwelt","mwelp","mwelh","mwem","mweb","mwebs","mwes","mwess","mweng","mwej","mwec","mwek","mwet","mwep","mweh","mwi","mwig","mwigg","mwigs","mwin","mwinj","mwinh","mwid","mwil","mwilg","mwilm","mwilb","mwils","mwilt","mwilp","mwilh","mwim","mwib","mwibs","mwis","mwiss","mwing","mwij","mwic","mwik","mwit","mwip","mwih","myu","myug","myugg","myugs","myun","myunj","myunh","myud","myul","myulg","myulm","myulb","myuls","myult","myulp","myulh","myum","myub","myubs","myus","myuss","myung","myuj","myuc","myuk","myut","myup","myuh","meu","meug","meugg","meugs","meun","meunj","meunh","meud","meul","meulg","meulm","meulb","meuls","meult","meulp","meulh","meum","meub","meubs","meus","meuss","meung","meuj","meuc","meuk","meut","meup","meuh","myi","myig","myigg","myigs","myin","myinj","myinh","myid","myil","myilg","myilm","myilb","myils","myilt","myilp","myilh","myim","myib","myibs","myis","myiss","mying","myij","myic","myik","myit","myip","myih","mi","mig","migg","migs","min","minj","minh","mid"]});var YV=m((Bze,BV)=>{BV.exports=["mil","milg","milm","milb","mils","milt","milp","milh","mim","mib","mibs","mis","miss","ming","mij","mic","mik","mit","mip","mih","ba","bag","bagg","bags","ban","banj","banh","bad","bal","balg","balm","balb","bals","balt","balp","balh","bam","bab","babs","bas","bass","bang","baj","bac","bak","bat","bap","bah","bae","baeg","baegg","baegs","baen","baenj","baenh","baed","bael","baelg","baelm","baelb","baels","baelt","baelp","baelh","baem","baeb","baebs","baes","baess","baeng","baej","baec","baek","baet","baep","baeh","bya","byag","byagg","byags","byan","byanj","byanh","byad","byal","byalg","byalm","byalb","byals","byalt","byalp","byalh","byam","byab","byabs","byas","byass","byang","byaj","byac","byak","byat","byap","byah","byae","byaeg","byaegg","byaegs","byaen","byaenj","byaenh","byaed","byael","byaelg","byaelm","byaelb","byaels","byaelt","byaelp","byaelh","byaem","byaeb","byaebs","byaes","byaess","byaeng","byaej","byaec","byaek","byaet","byaep","byaeh","beo","beog","beogg","beogs","beon","beonj","beonh","beod","beol","beolg","beolm","beolb","beols","beolt","beolp","beolh","beom","beob","beobs","beos","beoss","beong","beoj","beoc","beok","beot","beop","beoh","be","beg","begg","begs","ben","benj","benh","bed","bel","belg","belm","belb","bels","belt","belp","belh","bem","beb","bebs","bes","bess","beng","bej","bec","bek","bet","bep","beh","byeo","byeog","byeogg","byeogs","byeon","byeonj","byeonh","byeod","byeol","byeolg","byeolm","byeolb","byeols","byeolt","byeolp","byeolh","byeom","byeob","byeobs","byeos","byeoss","byeong","byeoj","byeoc","byeok","byeot","byeop","byeoh","bye","byeg","byegg","byegs","byen","byenj","byenh","byed","byel","byelg","byelm","byelb","byels","byelt","byelp","byelh","byem","byeb","byebs","byes","byess","byeng","byej","byec","byek","byet","byep","byeh","bo","bog","bogg","bogs","bon","bonj","bonh","bod","bol","bolg","bolm","bolb"]});var ZV=m((Yze,WV)=>{WV.exports=["bols","bolt","bolp","bolh","bom","bob","bobs","bos","boss","bong","boj","boc","bok","bot","bop","boh","bwa","bwag","bwagg","bwags","bwan","bwanj","bwanh","bwad","bwal","bwalg","bwalm","bwalb","bwals","bwalt","bwalp","bwalh","bwam","bwab","bwabs","bwas","bwass","bwang","bwaj","bwac","bwak","bwat","bwap","bwah","bwae","bwaeg","bwaegg","bwaegs","bwaen","bwaenj","bwaenh","bwaed","bwael","bwaelg","bwaelm","bwaelb","bwaels","bwaelt","bwaelp","bwaelh","bwaem","bwaeb","bwaebs","bwaes","bwaess","bwaeng","bwaej","bwaec","bwaek","bwaet","bwaep","bwaeh","boe","boeg","boegg","boegs","boen","boenj","boenh","boed","boel","boelg","boelm","boelb","boels","boelt","boelp","boelh","boem","boeb","boebs","boes","boess","boeng","boej","boec","boek","boet","boep","boeh","byo","byog","byogg","byogs","byon","byonj","byonh","byod","byol","byolg","byolm","byolb","byols","byolt","byolp","byolh","byom","byob","byobs","byos","byoss","byong","byoj","byoc","byok","byot","byop","byoh","bu","bug","bugg","bugs","bun","bunj","bunh","bud","bul","bulg","bulm","bulb","buls","bult","bulp","bulh","bum","bub","bubs","bus","buss","bung","buj","buc","buk","but","bup","buh","bweo","bweog","bweogg","bweogs","bweon","bweonj","bweonh","bweod","bweol","bweolg","bweolm","bweolb","bweols","bweolt","bweolp","bweolh","bweom","bweob","bweobs","bweos","bweoss","bweong","bweoj","bweoc","bweok","bweot","bweop","bweoh","bwe","bweg","bwegg","bwegs","bwen","bwenj","bwenh","bwed","bwel","bwelg","bwelm","bwelb","bwels","bwelt","bwelp","bwelh","bwem","bweb","bwebs","bwes","bwess","bweng","bwej","bwec","bwek","bwet","bwep","bweh","bwi","bwig","bwigg","bwigs","bwin","bwinj","bwinh","bwid","bwil","bwilg","bwilm","bwilb","bwils","bwilt","bwilp","bwilh","bwim","bwib","bwibs","bwis","bwiss","bwing","bwij","bwic","bwik","bwit","bwip","bwih","byu","byug","byugg","byugs","byun","byunj","byunh","byud","byul","byulg","byulm","byulb","byuls","byult","byulp","byulh"]});var $V=m((Wze,JV)=>{JV.exports=["byum","byub","byubs","byus","byuss","byung","byuj","byuc","byuk","byut","byup","byuh","beu","beug","beugg","beugs","beun","beunj","beunh","beud","beul","beulg","beulm","beulb","beuls","beult","beulp","beulh","beum","beub","beubs","beus","beuss","beung","beuj","beuc","beuk","beut","beup","beuh","byi","byig","byigg","byigs","byin","byinj","byinh","byid","byil","byilg","byilm","byilb","byils","byilt","byilp","byilh","byim","byib","byibs","byis","byiss","bying","byij","byic","byik","byit","byip","byih","bi","big","bigg","bigs","bin","binj","binh","bid","bil","bilg","bilm","bilb","bils","bilt","bilp","bilh","bim","bib","bibs","bis","biss","bing","bij","bic","bik","bit","bip","bih","bba","bbag","bbagg","bbags","bban","bbanj","bbanh","bbad","bbal","bbalg","bbalm","bbalb","bbals","bbalt","bbalp","bbalh","bbam","bbab","bbabs","bbas","bbass","bbang","bbaj","bbac","bbak","bbat","bbap","bbah","bbae","bbaeg","bbaegg","bbaegs","bbaen","bbaenj","bbaenh","bbaed","bbael","bbaelg","bbaelm","bbaelb","bbaels","bbaelt","bbaelp","bbaelh","bbaem","bbaeb","bbaebs","bbaes","bbaess","bbaeng","bbaej","bbaec","bbaek","bbaet","bbaep","bbaeh","bbya","bbyag","bbyagg","bbyags","bbyan","bbyanj","bbyanh","bbyad","bbyal","bbyalg","bbyalm","bbyalb","bbyals","bbyalt","bbyalp","bbyalh","bbyam","bbyab","bbyabs","bbyas","bbyass","bbyang","bbyaj","bbyac","bbyak","bbyat","bbyap","bbyah","bbyae","bbyaeg","bbyaegg","bbyaegs","bbyaen","bbyaenj","bbyaenh","bbyaed","bbyael","bbyaelg","bbyaelm","bbyaelb","bbyaels","bbyaelt","bbyaelp","bbyaelh","bbyaem","bbyaeb","bbyaebs","bbyaes","bbyaess","bbyaeng","bbyaej","bbyaec","bbyaek","bbyaet","bbyaep","bbyaeh","bbeo","bbeog","bbeogg","bbeogs","bbeon","bbeonj","bbeonh","bbeod","bbeol","bbeolg","bbeolm","bbeolb","bbeols","bbeolt","bbeolp","bbeolh","bbeom","bbeob","bbeobs","bbeos","bbeoss","bbeong","bbeoj","bbeoc","bbeok","bbeot","bbeop","bbeoh","bbe","bbeg","bbegg","bbegs","bben","bbenj","bbenh","bbed","bbel","bbelg","bbelm","bbelb","bbels","bbelt","bbelp","bbelh","bbem","bbeb","bbebs","bbes"]});var UV=m((Zze,XV)=>{XV.exports=["bbess","bbeng","bbej","bbec","bbek","bbet","bbep","bbeh","bbyeo","bbyeog","bbyeogg","bbyeogs","bbyeon","bbyeonj","bbyeonh","bbyeod","bbyeol","bbyeolg","bbyeolm","bbyeolb","bbyeols","bbyeolt","bbyeolp","bbyeolh","bbyeom","bbyeob","bbyeobs","bbyeos","bbyeoss","bbyeong","bbyeoj","bbyeoc","bbyeok","bbyeot","bbyeop","bbyeoh","bbye","bbyeg","bbyegg","bbyegs","bbyen","bbyenj","bbyenh","bbyed","bbyel","bbyelg","bbyelm","bbyelb","bbyels","bbyelt","bbyelp","bbyelh","bbyem","bbyeb","bbyebs","bbyes","bbyess","bbyeng","bbyej","bbyec","bbyek","bbyet","bbyep","bbyeh","bbo","bbog","bbogg","bbogs","bbon","bbonj","bbonh","bbod","bbol","bbolg","bbolm","bbolb","bbols","bbolt","bbolp","bbolh","bbom","bbob","bbobs","bbos","bboss","bbong","bboj","bboc","bbok","bbot","bbop","bboh","bbwa","bbwag","bbwagg","bbwags","bbwan","bbwanj","bbwanh","bbwad","bbwal","bbwalg","bbwalm","bbwalb","bbwals","bbwalt","bbwalp","bbwalh","bbwam","bbwab","bbwabs","bbwas","bbwass","bbwang","bbwaj","bbwac","bbwak","bbwat","bbwap","bbwah","bbwae","bbwaeg","bbwaegg","bbwaegs","bbwaen","bbwaenj","bbwaenh","bbwaed","bbwael","bbwaelg","bbwaelm","bbwaelb","bbwaels","bbwaelt","bbwaelp","bbwaelh","bbwaem","bbwaeb","bbwaebs","bbwaes","bbwaess","bbwaeng","bbwaej","bbwaec","bbwaek","bbwaet","bbwaep","bbwaeh","bboe","bboeg","bboegg","bboegs","bboen","bboenj","bboenh","bboed","bboel","bboelg","bboelm","bboelb","bboels","bboelt","bboelp","bboelh","bboem","bboeb","bboebs","bboes","bboess","bboeng","bboej","bboec","bboek","bboet","bboep","bboeh","bbyo","bbyog","bbyogg","bbyogs","bbyon","bbyonj","bbyonh","bbyod","bbyol","bbyolg","bbyolm","bbyolb","bbyols","bbyolt","bbyolp","bbyolh","bbyom","bbyob","bbyobs","bbyos","bbyoss","bbyong","bbyoj","bbyoc","bbyok","bbyot","bbyop","bbyoh","bbu","bbug","bbugg","bbugs","bbun","bbunj","bbunh","bbud","bbul","bbulg","bbulm","bbulb","bbuls","bbult","bbulp","bbulh","bbum","bbub","bbubs","bbus","bbuss","bbung","bbuj","bbuc","bbuk","bbut","bbup","bbuh","bbweo","bbweog","bbweogg","bbweogs","bbweon","bbweonj","bbweonh","bbweod","bbweol","bbweolg","bbweolm","bbweolb","bbweols","bbweolt","bbweolp","bbweolh","bbweom","bbweob","bbweobs","bbweos","bbweoss","bbweong","bbweoj","bbweoc"]});var KV=m((Jze,GV)=>{GV.exports=["bbweok","bbweot","bbweop","bbweoh","bbwe","bbweg","bbwegg","bbwegs","bbwen","bbwenj","bbwenh","bbwed","bbwel","bbwelg","bbwelm","bbwelb","bbwels","bbwelt","bbwelp","bbwelh","bbwem","bbweb","bbwebs","bbwes","bbwess","bbweng","bbwej","bbwec","bbwek","bbwet","bbwep","bbweh","bbwi","bbwig","bbwigg","bbwigs","bbwin","bbwinj","bbwinh","bbwid","bbwil","bbwilg","bbwilm","bbwilb","bbwils","bbwilt","bbwilp","bbwilh","bbwim","bbwib","bbwibs","bbwis","bbwiss","bbwing","bbwij","bbwic","bbwik","bbwit","bbwip","bbwih","bbyu","bbyug","bbyugg","bbyugs","bbyun","bbyunj","bbyunh","bbyud","bbyul","bbyulg","bbyulm","bbyulb","bbyuls","bbyult","bbyulp","bbyulh","bbyum","bbyub","bbyubs","bbyus","bbyuss","bbyung","bbyuj","bbyuc","bbyuk","bbyut","bbyup","bbyuh","bbeu","bbeug","bbeugg","bbeugs","bbeun","bbeunj","bbeunh","bbeud","bbeul","bbeulg","bbeulm","bbeulb","bbeuls","bbeult","bbeulp","bbeulh","bbeum","bbeub","bbeubs","bbeus","bbeuss","bbeung","bbeuj","bbeuc","bbeuk","bbeut","bbeup","bbeuh","bbyi","bbyig","bbyigg","bbyigs","bbyin","bbyinj","bbyinh","bbyid","bbyil","bbyilg","bbyilm","bbyilb","bbyils","bbyilt","bbyilp","bbyilh","bbyim","bbyib","bbyibs","bbyis","bbyiss","bbying","bbyij","bbyic","bbyik","bbyit","bbyip","bbyih","bbi","bbig","bbigg","bbigs","bbin","bbinj","bbinh","bbid","bbil","bbilg","bbilm","bbilb","bbils","bbilt","bbilp","bbilh","bbim","bbib","bbibs","bbis","bbiss","bbing","bbij","bbic","bbik","bbit","bbip","bbih","sa","sag","sagg","sags","san","sanj","sanh","sad","sal","salg","salm","salb","sals","salt","salp","salh","sam","sab","sabs","sas","sass","sang","saj","sac","sak","sat","sap","sah","sae","saeg","saegg","saegs","saen","saenj","saenh","saed","sael","saelg","saelm","saelb","saels","saelt","saelp","saelh","saem","saeb","saebs","saes","saess","saeng","saej","saec","saek","saet","saep","saeh","sya","syag","syagg","syags","syan","syanj","syanh","syad","syal","syalg","syalm","syalb","syals","syalt","syalp","syalh","syam","syab","syabs","syas","syass","syang","syaj","syac","syak","syat","syap","syah"]});var QV=m(($ze,zV)=>{zV.exports=["syae","syaeg","syaegg","syaegs","syaen","syaenj","syaenh","syaed","syael","syaelg","syaelm","syaelb","syaels","syaelt","syaelp","syaelh","syaem","syaeb","syaebs","syaes","syaess","syaeng","syaej","syaec","syaek","syaet","syaep","syaeh","seo","seog","seogg","seogs","seon","seonj","seonh","seod","seol","seolg","seolm","seolb","seols","seolt","seolp","seolh","seom","seob","seobs","seos","seoss","seong","seoj","seoc","seok","seot","seop","seoh","se","seg","segg","segs","sen","senj","senh","sed","sel","selg","selm","selb","sels","selt","selp","selh","sem","seb","sebs","ses","sess","seng","sej","sec","sek","set","sep","seh","syeo","syeog","syeogg","syeogs","syeon","syeonj","syeonh","syeod","syeol","syeolg","syeolm","syeolb","syeols","syeolt","syeolp","syeolh","syeom","syeob","syeobs","syeos","syeoss","syeong","syeoj","syeoc","syeok","syeot","syeop","syeoh","sye","syeg","syegg","syegs","syen","syenj","syenh","syed","syel","syelg","syelm","syelb","syels","syelt","syelp","syelh","syem","syeb","syebs","syes","syess","syeng","syej","syec","syek","syet","syep","syeh","so","sog","sogg","sogs","son","sonj","sonh","sod","sol","solg","solm","solb","sols","solt","solp","solh","som","sob","sobs","sos","soss","song","soj","soc","sok","sot","sop","soh","swa","swag","swagg","swags","swan","swanj","swanh","swad","swal","swalg","swalm","swalb","swals","swalt","swalp","swalh","swam","swab","swabs","swas","swass","swang","swaj","swac","swak","swat","swap","swah","swae","swaeg","swaegg","swaegs","swaen","swaenj","swaenh","swaed","swael","swaelg","swaelm","swaelb","swaels","swaelt","swaelp","swaelh","swaem","swaeb","swaebs","swaes","swaess","swaeng","swaej","swaec","swaek","swaet","swaep","swaeh","soe","soeg","soegg","soegs","soen","soenj","soenh","soed","soel","soelg","soelm","soelb","soels","soelt","soelp","soelh","soem","soeb","soebs","soes","soess","soeng","soej","soec","soek","soet","soep","soeh","syo","syog","syogg","syogs"]});var e7=m((Xze,VV)=>{VV.exports=["syon","syonj","syonh","syod","syol","syolg","syolm","syolb","syols","syolt","syolp","syolh","syom","syob","syobs","syos","syoss","syong","syoj","syoc","syok","syot","syop","syoh","su","sug","sugg","sugs","sun","sunj","sunh","sud","sul","sulg","sulm","sulb","suls","sult","sulp","sulh","sum","sub","subs","sus","suss","sung","suj","suc","suk","sut","sup","suh","sweo","sweog","sweogg","sweogs","sweon","sweonj","sweonh","sweod","sweol","sweolg","sweolm","sweolb","sweols","sweolt","sweolp","sweolh","sweom","sweob","sweobs","sweos","sweoss","sweong","sweoj","sweoc","sweok","sweot","sweop","sweoh","swe","sweg","swegg","swegs","swen","swenj","swenh","swed","swel","swelg","swelm","swelb","swels","swelt","swelp","swelh","swem","sweb","swebs","swes","swess","sweng","swej","swec","swek","swet","swep","sweh","swi","swig","swigg","swigs","swin","swinj","swinh","swid","swil","swilg","swilm","swilb","swils","swilt","swilp","swilh","swim","swib","swibs","swis","swiss","swing","swij","swic","swik","swit","swip","swih","syu","syug","syugg","syugs","syun","syunj","syunh","syud","syul","syulg","syulm","syulb","syuls","syult","syulp","syulh","syum","syub","syubs","syus","syuss","syung","syuj","syuc","syuk","syut","syup","syuh","seu","seug","seugg","seugs","seun","seunj","seunh","seud","seul","seulg","seulm","seulb","seuls","seult","seulp","seulh","seum","seub","seubs","seus","seuss","seung","seuj","seuc","seuk","seut","seup","seuh","syi","syig","syigg","syigs","syin","syinj","syinh","syid","syil","syilg","syilm","syilb","syils","syilt","syilp","syilh","syim","syib","syibs","syis","syiss","sying","syij","syic","syik","syit","syip","syih","si","sig","sigg","sigs","sin","sinj","sinh","sid","sil","silg","silm","silb","sils","silt","silp","silh","sim","sib","sibs","sis","siss","sing","sij","sic","sik","sit","sip","sih","ssa","ssag","ssagg","ssags","ssan","ssanj","ssanh","ssad"]});var i7=m((Uze,t7)=>{t7.exports=["ssal","ssalg","ssalm","ssalb","ssals","ssalt","ssalp","ssalh","ssam","ssab","ssabs","ssas","ssass","ssang","ssaj","ssac","ssak","ssat","ssap","ssah","ssae","ssaeg","ssaegg","ssaegs","ssaen","ssaenj","ssaenh","ssaed","ssael","ssaelg","ssaelm","ssaelb","ssaels","ssaelt","ssaelp","ssaelh","ssaem","ssaeb","ssaebs","ssaes","ssaess","ssaeng","ssaej","ssaec","ssaek","ssaet","ssaep","ssaeh","ssya","ssyag","ssyagg","ssyags","ssyan","ssyanj","ssyanh","ssyad","ssyal","ssyalg","ssyalm","ssyalb","ssyals","ssyalt","ssyalp","ssyalh","ssyam","ssyab","ssyabs","ssyas","ssyass","ssyang","ssyaj","ssyac","ssyak","ssyat","ssyap","ssyah","ssyae","ssyaeg","ssyaegg","ssyaegs","ssyaen","ssyaenj","ssyaenh","ssyaed","ssyael","ssyaelg","ssyaelm","ssyaelb","ssyaels","ssyaelt","ssyaelp","ssyaelh","ssyaem","ssyaeb","ssyaebs","ssyaes","ssyaess","ssyaeng","ssyaej","ssyaec","ssyaek","ssyaet","ssyaep","ssyaeh","sseo","sseog","sseogg","sseogs","sseon","sseonj","sseonh","sseod","sseol","sseolg","sseolm","sseolb","sseols","sseolt","sseolp","sseolh","sseom","sseob","sseobs","sseos","sseoss","sseong","sseoj","sseoc","sseok","sseot","sseop","sseoh","sse","sseg","ssegg","ssegs","ssen","ssenj","ssenh","ssed","ssel","sselg","sselm","sselb","ssels","sselt","sselp","sselh","ssem","sseb","ssebs","sses","ssess","sseng","ssej","ssec","ssek","sset","ssep","sseh","ssyeo","ssyeog","ssyeogg","ssyeogs","ssyeon","ssyeonj","ssyeonh","ssyeod","ssyeol","ssyeolg","ssyeolm","ssyeolb","ssyeols","ssyeolt","ssyeolp","ssyeolh","ssyeom","ssyeob","ssyeobs","ssyeos","ssyeoss","ssyeong","ssyeoj","ssyeoc","ssyeok","ssyeot","ssyeop","ssyeoh","ssye","ssyeg","ssyegg","ssyegs","ssyen","ssyenj","ssyenh","ssyed","ssyel","ssyelg","ssyelm","ssyelb","ssyels","ssyelt","ssyelp","ssyelh","ssyem","ssyeb","ssyebs","ssyes","ssyess","ssyeng","ssyej","ssyec","ssyek","ssyet","ssyep","ssyeh","sso","ssog","ssogg","ssogs","sson","ssonj","ssonh","ssod","ssol","ssolg","ssolm","ssolb","ssols","ssolt","ssolp","ssolh","ssom","ssob","ssobs","ssos","ssoss","ssong","ssoj","ssoc","ssok","ssot","ssop","ssoh","sswa","sswag","sswagg","sswags","sswan","sswanj","sswanh","sswad","sswal","sswalg","sswalm","sswalb"]});var r7=m((Gze,n7)=>{n7.exports=["sswals","sswalt","sswalp","sswalh","sswam","sswab","sswabs","sswas","sswass","sswang","sswaj","sswac","sswak","sswat","sswap","sswah","sswae","sswaeg","sswaegg","sswaegs","sswaen","sswaenj","sswaenh","sswaed","sswael","sswaelg","sswaelm","sswaelb","sswaels","sswaelt","sswaelp","sswaelh","sswaem","sswaeb","sswaebs","sswaes","sswaess","sswaeng","sswaej","sswaec","sswaek","sswaet","sswaep","sswaeh","ssoe","ssoeg","ssoegg","ssoegs","ssoen","ssoenj","ssoenh","ssoed","ssoel","ssoelg","ssoelm","ssoelb","ssoels","ssoelt","ssoelp","ssoelh","ssoem","ssoeb","ssoebs","ssoes","ssoess","ssoeng","ssoej","ssoec","ssoek","ssoet","ssoep","ssoeh","ssyo","ssyog","ssyogg","ssyogs","ssyon","ssyonj","ssyonh","ssyod","ssyol","ssyolg","ssyolm","ssyolb","ssyols","ssyolt","ssyolp","ssyolh","ssyom","ssyob","ssyobs","ssyos","ssyoss","ssyong","ssyoj","ssyoc","ssyok","ssyot","ssyop","ssyoh","ssu","ssug","ssugg","ssugs","ssun","ssunj","ssunh","ssud","ssul","ssulg","ssulm","ssulb","ssuls","ssult","ssulp","ssulh","ssum","ssub","ssubs","ssus","ssuss","ssung","ssuj","ssuc","ssuk","ssut","ssup","ssuh","ssweo","ssweog","ssweogg","ssweogs","ssweon","ssweonj","ssweonh","ssweod","ssweol","ssweolg","ssweolm","ssweolb","ssweols","ssweolt","ssweolp","ssweolh","ssweom","ssweob","ssweobs","ssweos","ssweoss","ssweong","ssweoj","ssweoc","ssweok","ssweot","ssweop","ssweoh","sswe","ssweg","sswegg","sswegs","sswen","sswenj","sswenh","sswed","sswel","sswelg","sswelm","sswelb","sswels","sswelt","sswelp","sswelh","sswem","ssweb","sswebs","sswes","sswess","ssweng","sswej","sswec","sswek","sswet","sswep","ssweh","sswi","sswig","sswigg","sswigs","sswin","sswinj","sswinh","sswid","sswil","sswilg","sswilm","sswilb","sswils","sswilt","sswilp","sswilh","sswim","sswib","sswibs","sswis","sswiss","sswing","sswij","sswic","sswik","sswit","sswip","sswih","ssyu","ssyug","ssyugg","ssyugs","ssyun","ssyunj","ssyunh","ssyud","ssyul","ssyulg","ssyulm","ssyulb","ssyuls","ssyult","ssyulp","ssyulh","ssyum","ssyub","ssyubs","ssyus","ssyuss","ssyung","ssyuj","ssyuc","ssyuk","ssyut","ssyup","ssyuh","sseu","sseug","sseugg","sseugs","sseun","sseunj","sseunh","sseud","sseul","sseulg","sseulm","sseulb","sseuls","sseult","sseulp","sseulh"]});var s7=m((Kze,o7)=>{o7.exports=["sseum","sseub","sseubs","sseus","sseuss","sseung","sseuj","sseuc","sseuk","sseut","sseup","sseuh","ssyi","ssyig","ssyigg","ssyigs","ssyin","ssyinj","ssyinh","ssyid","ssyil","ssyilg","ssyilm","ssyilb","ssyils","ssyilt","ssyilp","ssyilh","ssyim","ssyib","ssyibs","ssyis","ssyiss","ssying","ssyij","ssyic","ssyik","ssyit","ssyip","ssyih","ssi","ssig","ssigg","ssigs","ssin","ssinj","ssinh","ssid","ssil","ssilg","ssilm","ssilb","ssils","ssilt","ssilp","ssilh","ssim","ssib","ssibs","ssis","ssiss","ssing","ssij","ssic","ssik","ssit","ssip","ssih","a","ag","agg","ags","an","anj","anh","ad","al","alg","alm","alb","als","alt","alp","alh","am","ab","abs","as","ass","ang","aj","ac","ak","at","ap","ah","ae","aeg","aegg","aegs","aen","aenj","aenh","aed","ael","aelg","aelm","aelb","aels","aelt","aelp","aelh","aem","aeb","aebs","aes","aess","aeng","aej","aec","aek","aet","aep","aeh","ya","yag","yagg","yags","yan","yanj","yanh","yad","yal","yalg","yalm","yalb","yals","yalt","yalp","yalh","yam","yab","yabs","yas","yass","yang","yaj","yac","yak","yat","yap","yah","yae","yaeg","yaegg","yaegs","yaen","yaenj","yaenh","yaed","yael","yaelg","yaelm","yaelb","yaels","yaelt","yaelp","yaelh","yaem","yaeb","yaebs","yaes","yaess","yaeng","yaej","yaec","yaek","yaet","yaep","yaeh","eo","eog","eogg","eogs","eon","eonj","eonh","eod","eol","eolg","eolm","eolb","eols","eolt","eolp","eolh","eom","eob","eobs","eos","eoss","eong","eoj","eoc","eok","eot","eop","eoh","e","eg","egg","egs","en","enj","enh","ed","el","elg","elm","elb","els","elt","elp","elh","em","eb","ebs","es","ess","eng","ej","ec","ek","et","ep","eh","yeo","yeog","yeogg","yeogs","yeon","yeonj","yeonh","yeod","yeol","yeolg","yeolm","yeolb","yeols","yeolt","yeolp","yeolh","yeom","yeob","yeobs","yeos"]});var l7=m((zze,a7)=>{a7.exports=["yeoss","yeong","yeoj","yeoc","yeok","yeot","yeop","yeoh","ye","yeg","yegg","yegs","yen","yenj","yenh","yed","yel","yelg","yelm","yelb","yels","yelt","yelp","yelh","yem","yeb","yebs","yes","yess","yeng","yej","yec","yek","yet","yep","yeh","o","og","ogg","ogs","on","onj","onh","od","ol","olg","olm","olb","ols","olt","olp","olh","om","ob","obs","os","oss","ong","oj","oc","ok","ot","op","oh","wa","wag","wagg","wags","wan","wanj","wanh","wad","wal","walg","walm","walb","wals","walt","walp","walh","wam","wab","wabs","was","wass","wang","waj","wac","wak","wat","wap","wah","wae","waeg","waegg","waegs","waen","waenj","waenh","waed","wael","waelg","waelm","waelb","waels","waelt","waelp","waelh","waem","waeb","waebs","waes","waess","waeng","waej","waec","waek","waet","waep","waeh","oe","oeg","oegg","oegs","oen","oenj","oenh","oed","oel","oelg","oelm","oelb","oels","oelt","oelp","oelh","oem","oeb","oebs","oes","oess","oeng","oej","oec","oek","oet","oep","oeh","yo","yog","yogg","yogs","yon","yonj","yonh","yod","yol","yolg","yolm","yolb","yols","yolt","yolp","yolh","yom","yob","yobs","yos","yoss","yong","yoj","yoc","yok","yot","yop","yoh","u","ug","ugg","ugs","un","unj","unh","ud","ul","ulg","ulm","ulb","uls","ult","ulp","ulh","um","ub","ubs","us","uss","ung","uj","uc","uk","ut","up","uh","weo","weog","weogg","weogs","weon","weonj","weonh","weod","weol","weolg","weolm","weolb","weols","weolt","weolp","weolh","weom","weob","weobs","weos","weoss","weong","weoj","weoc","weok","weot","weop","weoh","we","weg","wegg","wegs","wen","wenj","wenh","wed","wel","welg","welm","welb","wels","welt","welp","welh","wem","web","webs","wes","wess","weng","wej","wec"]});var c7=m((Qze,u7)=>{u7.exports=["wek","wet","wep","weh","wi","wig","wigg","wigs","win","winj","winh","wid","wil","wilg","wilm","wilb","wils","wilt","wilp","wilh","wim","wib","wibs","wis","wiss","wing","wij","wic","wik","wit","wip","wih","yu","yug","yugg","yugs","yun","yunj","yunh","yud","yul","yulg","yulm","yulb","yuls","yult","yulp","yulh","yum","yub","yubs","yus","yuss","yung","yuj","yuc","yuk","yut","yup","yuh","eu","eug","eugg","eugs","eun","eunj","eunh","eud","eul","eulg","eulm","eulb","euls","eult","eulp","eulh","eum","eub","eubs","eus","euss","eung","euj","euc","euk","eut","eup","euh","yi","yig","yigg","yigs","yin","yinj","yinh","yid","yil","yilg","yilm","yilb","yils","yilt","yilp","yilh","yim","yib","yibs","yis","yiss","ying","yij","yic","yik","yit","yip","yih","i","ig","igg","igs","in","inj","inh","id","il","ilg","ilm","ilb","ils","ilt","ilp","ilh","im","ib","ibs","is","iss","ing","ij","ic","ik","it","ip","ih","ja","jag","jagg","jags","jan","janj","janh","jad","jal","jalg","jalm","jalb","jals","jalt","jalp","jalh","jam","jab","jabs","jas","jass","jang","jaj","jac","jak","jat","jap","jah","jae","jaeg","jaegg","jaegs","jaen","jaenj","jaenh","jaed","jael","jaelg","jaelm","jaelb","jaels","jaelt","jaelp","jaelh","jaem","jaeb","jaebs","jaes","jaess","jaeng","jaej","jaec","jaek","jaet","jaep","jaeh","jya","jyag","jyagg","jyags","jyan","jyanj","jyanh","jyad","jyal","jyalg","jyalm","jyalb","jyals","jyalt","jyalp","jyalh","jyam","jyab","jyabs","jyas","jyass","jyang","jyaj","jyac","jyak","jyat","jyap","jyah","jyae","jyaeg","jyaegg","jyaegs","jyaen","jyaenj","jyaenh","jyaed","jyael","jyaelg","jyaelm","jyaelb","jyaels","jyaelt","jyaelp","jyaelh","jyaem","jyaeb","jyaebs","jyaes","jyaess","jyaeng","jyaej","jyaec","jyaek","jyaet","jyaep","jyaeh"]});var d7=m((Vze,h7)=>{h7.exports=["jeo","jeog","jeogg","jeogs","jeon","jeonj","jeonh","jeod","jeol","jeolg","jeolm","jeolb","jeols","jeolt","jeolp","jeolh","jeom","jeob","jeobs","jeos","jeoss","jeong","jeoj","jeoc","jeok","jeot","jeop","jeoh","je","jeg","jegg","jegs","jen","jenj","jenh","jed","jel","jelg","jelm","jelb","jels","jelt","jelp","jelh","jem","jeb","jebs","jes","jess","jeng","jej","jec","jek","jet","jep","jeh","jyeo","jyeog","jyeogg","jyeogs","jyeon","jyeonj","jyeonh","jyeod","jyeol","jyeolg","jyeolm","jyeolb","jyeols","jyeolt","jyeolp","jyeolh","jyeom","jyeob","jyeobs","jyeos","jyeoss","jyeong","jyeoj","jyeoc","jyeok","jyeot","jyeop","jyeoh","jye","jyeg","jyegg","jyegs","jyen","jyenj","jyenh","jyed","jyel","jyelg","jyelm","jyelb","jyels","jyelt","jyelp","jyelh","jyem","jyeb","jyebs","jyes","jyess","jyeng","jyej","jyec","jyek","jyet","jyep","jyeh","jo","jog","jogg","jogs","jon","jonj","jonh","jod","jol","jolg","jolm","jolb","jols","jolt","jolp","jolh","jom","job","jobs","jos","joss","jong","joj","joc","jok","jot","jop","joh","jwa","jwag","jwagg","jwags","jwan","jwanj","jwanh","jwad","jwal","jwalg","jwalm","jwalb","jwals","jwalt","jwalp","jwalh","jwam","jwab","jwabs","jwas","jwass","jwang","jwaj","jwac","jwak","jwat","jwap","jwah","jwae","jwaeg","jwaegg","jwaegs","jwaen","jwaenj","jwaenh","jwaed","jwael","jwaelg","jwaelm","jwaelb","jwaels","jwaelt","jwaelp","jwaelh","jwaem","jwaeb","jwaebs","jwaes","jwaess","jwaeng","jwaej","jwaec","jwaek","jwaet","jwaep","jwaeh","joe","joeg","joegg","joegs","joen","joenj","joenh","joed","joel","joelg","joelm","joelb","joels","joelt","joelp","joelh","joem","joeb","joebs","joes","joess","joeng","joej","joec","joek","joet","joep","joeh","jyo","jyog","jyogg","jyogs","jyon","jyonj","jyonh","jyod","jyol","jyolg","jyolm","jyolb","jyols","jyolt","jyolp","jyolh","jyom","jyob","jyobs","jyos","jyoss","jyong","jyoj","jyoc","jyok","jyot","jyop","jyoh","ju","jug","jugg","jugs"]});var f7=m((eQe,g7)=>{g7.exports=["jun","junj","junh","jud","jul","julg","julm","julb","juls","jult","julp","julh","jum","jub","jubs","jus","juss","jung","juj","juc","juk","jut","jup","juh","jweo","jweog","jweogg","jweogs","jweon","jweonj","jweonh","jweod","jweol","jweolg","jweolm","jweolb","jweols","jweolt","jweolp","jweolh","jweom","jweob","jweobs","jweos","jweoss","jweong","jweoj","jweoc","jweok","jweot","jweop","jweoh","jwe","jweg","jwegg","jwegs","jwen","jwenj","jwenh","jwed","jwel","jwelg","jwelm","jwelb","jwels","jwelt","jwelp","jwelh","jwem","jweb","jwebs","jwes","jwess","jweng","jwej","jwec","jwek","jwet","jwep","jweh","jwi","jwig","jwigg","jwigs","jwin","jwinj","jwinh","jwid","jwil","jwilg","jwilm","jwilb","jwils","jwilt","jwilp","jwilh","jwim","jwib","jwibs","jwis","jwiss","jwing","jwij","jwic","jwik","jwit","jwip","jwih","jyu","jyug","jyugg","jyugs","jyun","jyunj","jyunh","jyud","jyul","jyulg","jyulm","jyulb","jyuls","jyult","jyulp","jyulh","jyum","jyub","jyubs","jyus","jyuss","jyung","jyuj","jyuc","jyuk","jyut","jyup","jyuh","jeu","jeug","jeugg","jeugs","jeun","jeunj","jeunh","jeud","jeul","jeulg","jeulm","jeulb","jeuls","jeult","jeulp","jeulh","jeum","jeub","jeubs","jeus","jeuss","jeung","jeuj","jeuc","jeuk","jeut","jeup","jeuh","jyi","jyig","jyigg","jyigs","jyin","jyinj","jyinh","jyid","jyil","jyilg","jyilm","jyilb","jyils","jyilt","jyilp","jyilh","jyim","jyib","jyibs","jyis","jyiss","jying","jyij","jyic","jyik","jyit","jyip","jyih","ji","jig","jigg","jigs","jin","jinj","jinh","jid","jil","jilg","jilm","jilb","jils","jilt","jilp","jilh","jim","jib","jibs","jis","jiss","jing","jij","jic","jik","jit","jip","jih","jja","jjag","jjagg","jjags","jjan","jjanj","jjanh","jjad","jjal","jjalg","jjalm","jjalb","jjals","jjalt","jjalp","jjalh","jjam","jjab","jjabs","jjas","jjass","jjang","jjaj","jjac","jjak","jjat","jjap","jjah","jjae","jjaeg","jjaegg","jjaegs","jjaen","jjaenj","jjaenh","jjaed"]});var m7=m((tQe,p7)=>{p7.exports=["jjael","jjaelg","jjaelm","jjaelb","jjaels","jjaelt","jjaelp","jjaelh","jjaem","jjaeb","jjaebs","jjaes","jjaess","jjaeng","jjaej","jjaec","jjaek","jjaet","jjaep","jjaeh","jjya","jjyag","jjyagg","jjyags","jjyan","jjyanj","jjyanh","jjyad","jjyal","jjyalg","jjyalm","jjyalb","jjyals","jjyalt","jjyalp","jjyalh","jjyam","jjyab","jjyabs","jjyas","jjyass","jjyang","jjyaj","jjyac","jjyak","jjyat","jjyap","jjyah","jjyae","jjyaeg","jjyaegg","jjyaegs","jjyaen","jjyaenj","jjyaenh","jjyaed","jjyael","jjyaelg","jjyaelm","jjyaelb","jjyaels","jjyaelt","jjyaelp","jjyaelh","jjyaem","jjyaeb","jjyaebs","jjyaes","jjyaess","jjyaeng","jjyaej","jjyaec","jjyaek","jjyaet","jjyaep","jjyaeh","jjeo","jjeog","jjeogg","jjeogs","jjeon","jjeonj","jjeonh","jjeod","jjeol","jjeolg","jjeolm","jjeolb","jjeols","jjeolt","jjeolp","jjeolh","jjeom","jjeob","jjeobs","jjeos","jjeoss","jjeong","jjeoj","jjeoc","jjeok","jjeot","jjeop","jjeoh","jje","jjeg","jjegg","jjegs","jjen","jjenj","jjenh","jjed","jjel","jjelg","jjelm","jjelb","jjels","jjelt","jjelp","jjelh","jjem","jjeb","jjebs","jjes","jjess","jjeng","jjej","jjec","jjek","jjet","jjep","jjeh","jjyeo","jjyeog","jjyeogg","jjyeogs","jjyeon","jjyeonj","jjyeonh","jjyeod","jjyeol","jjyeolg","jjyeolm","jjyeolb","jjyeols","jjyeolt","jjyeolp","jjyeolh","jjyeom","jjyeob","jjyeobs","jjyeos","jjyeoss","jjyeong","jjyeoj","jjyeoc","jjyeok","jjyeot","jjyeop","jjyeoh","jjye","jjyeg","jjyegg","jjyegs","jjyen","jjyenj","jjyenh","jjyed","jjyel","jjyelg","jjyelm","jjyelb","jjyels","jjyelt","jjyelp","jjyelh","jjyem","jjyeb","jjyebs","jjyes","jjyess","jjyeng","jjyej","jjyec","jjyek","jjyet","jjyep","jjyeh","jjo","jjog","jjogg","jjogs","jjon","jjonj","jjonh","jjod","jjol","jjolg","jjolm","jjolb","jjols","jjolt","jjolp","jjolh","jjom","jjob","jjobs","jjos","jjoss","jjong","jjoj","jjoc","jjok","jjot","jjop","jjoh","jjwa","jjwag","jjwagg","jjwags","jjwan","jjwanj","jjwanh","jjwad","jjwal","jjwalg","jjwalm","jjwalb","jjwals","jjwalt","jjwalp","jjwalh","jjwam","jjwab","jjwabs","jjwas","jjwass","jjwang","jjwaj","jjwac","jjwak","jjwat","jjwap","jjwah","jjwae","jjwaeg","jjwaegg","jjwaegs","jjwaen","jjwaenj","jjwaenh","jjwaed","jjwael","jjwaelg","jjwaelm","jjwaelb"]});var y7=m((iQe,b7)=>{b7.exports=["jjwaels","jjwaelt","jjwaelp","jjwaelh","jjwaem","jjwaeb","jjwaebs","jjwaes","jjwaess","jjwaeng","jjwaej","jjwaec","jjwaek","jjwaet","jjwaep","jjwaeh","jjoe","jjoeg","jjoegg","jjoegs","jjoen","jjoenj","jjoenh","jjoed","jjoel","jjoelg","jjoelm","jjoelb","jjoels","jjoelt","jjoelp","jjoelh","jjoem","jjoeb","jjoebs","jjoes","jjoess","jjoeng","jjoej","jjoec","jjoek","jjoet","jjoep","jjoeh","jjyo","jjyog","jjyogg","jjyogs","jjyon","jjyonj","jjyonh","jjyod","jjyol","jjyolg","jjyolm","jjyolb","jjyols","jjyolt","jjyolp","jjyolh","jjyom","jjyob","jjyobs","jjyos","jjyoss","jjyong","jjyoj","jjyoc","jjyok","jjyot","jjyop","jjyoh","jju","jjug","jjugg","jjugs","jjun","jjunj","jjunh","jjud","jjul","jjulg","jjulm","jjulb","jjuls","jjult","jjulp","jjulh","jjum","jjub","jjubs","jjus","jjuss","jjung","jjuj","jjuc","jjuk","jjut","jjup","jjuh","jjweo","jjweog","jjweogg","jjweogs","jjweon","jjweonj","jjweonh","jjweod","jjweol","jjweolg","jjweolm","jjweolb","jjweols","jjweolt","jjweolp","jjweolh","jjweom","jjweob","jjweobs","jjweos","jjweoss","jjweong","jjweoj","jjweoc","jjweok","jjweot","jjweop","jjweoh","jjwe","jjweg","jjwegg","jjwegs","jjwen","jjwenj","jjwenh","jjwed","jjwel","jjwelg","jjwelm","jjwelb","jjwels","jjwelt","jjwelp","jjwelh","jjwem","jjweb","jjwebs","jjwes","jjwess","jjweng","jjwej","jjwec","jjwek","jjwet","jjwep","jjweh","jjwi","jjwig","jjwigg","jjwigs","jjwin","jjwinj","jjwinh","jjwid","jjwil","jjwilg","jjwilm","jjwilb","jjwils","jjwilt","jjwilp","jjwilh","jjwim","jjwib","jjwibs","jjwis","jjwiss","jjwing","jjwij","jjwic","jjwik","jjwit","jjwip","jjwih","jjyu","jjyug","jjyugg","jjyugs","jjyun","jjyunj","jjyunh","jjyud","jjyul","jjyulg","jjyulm","jjyulb","jjyuls","jjyult","jjyulp","jjyulh","jjyum","jjyub","jjyubs","jjyus","jjyuss","jjyung","jjyuj","jjyuc","jjyuk","jjyut","jjyup","jjyuh","jjeu","jjeug","jjeugg","jjeugs","jjeun","jjeunj","jjeunh","jjeud","jjeul","jjeulg","jjeulm","jjeulb","jjeuls","jjeult","jjeulp","jjeulh","jjeum","jjeub","jjeubs","jjeus","jjeuss","jjeung","jjeuj","jjeuc","jjeuk","jjeut","jjeup","jjeuh","jjyi","jjyig","jjyigg","jjyigs","jjyin","jjyinj","jjyinh","jjyid","jjyil","jjyilg","jjyilm","jjyilb","jjyils","jjyilt","jjyilp","jjyilh"]});var w7=m((nQe,v7)=>{v7.exports=["jjyim","jjyib","jjyibs","jjyis","jjyiss","jjying","jjyij","jjyic","jjyik","jjyit","jjyip","jjyih","jji","jjig","jjigg","jjigs","jjin","jjinj","jjinh","jjid","jjil","jjilg","jjilm","jjilb","jjils","jjilt","jjilp","jjilh","jjim","jjib","jjibs","jjis","jjiss","jjing","jjij","jjic","jjik","jjit","jjip","jjih","ca","cag","cagg","cags","can","canj","canh","cad","cal","calg","calm","calb","cals","calt","calp","calh","cam","cab","cabs","cas","cass","cang","caj","cac","cak","cat","cap","cah","cae","caeg","caegg","caegs","caen","caenj","caenh","caed","cael","caelg","caelm","caelb","caels","caelt","caelp","caelh","caem","caeb","caebs","caes","caess","caeng","caej","caec","caek","caet","caep","caeh","cya","cyag","cyagg","cyags","cyan","cyanj","cyanh","cyad","cyal","cyalg","cyalm","cyalb","cyals","cyalt","cyalp","cyalh","cyam","cyab","cyabs","cyas","cyass","cyang","cyaj","cyac","cyak","cyat","cyap","cyah","cyae","cyaeg","cyaegg","cyaegs","cyaen","cyaenj","cyaenh","cyaed","cyael","cyaelg","cyaelm","cyaelb","cyaels","cyaelt","cyaelp","cyaelh","cyaem","cyaeb","cyaebs","cyaes","cyaess","cyaeng","cyaej","cyaec","cyaek","cyaet","cyaep","cyaeh","ceo","ceog","ceogg","ceogs","ceon","ceonj","ceonh","ceod","ceol","ceolg","ceolm","ceolb","ceols","ceolt","ceolp","ceolh","ceom","ceob","ceobs","ceos","ceoss","ceong","ceoj","ceoc","ceok","ceot","ceop","ceoh","ce","ceg","cegg","cegs","cen","cenj","cenh","ced","cel","celg","celm","celb","cels","celt","celp","celh","cem","ceb","cebs","ces","cess","ceng","cej","cec","cek","cet","cep","ceh","cyeo","cyeog","cyeogg","cyeogs","cyeon","cyeonj","cyeonh","cyeod","cyeol","cyeolg","cyeolm","cyeolb","cyeols","cyeolt","cyeolp","cyeolh","cyeom","cyeob","cyeobs","cyeos","cyeoss","cyeong","cyeoj","cyeoc","cyeok","cyeot","cyeop","cyeoh","cye","cyeg","cyegg","cyegs","cyen","cyenj","cyenh","cyed","cyel","cyelg","cyelm","cyelb","cyels","cyelt","cyelp","cyelh","cyem","cyeb","cyebs","cyes"]});var C7=m((rQe,x7)=>{x7.exports=["cyess","cyeng","cyej","cyec","cyek","cyet","cyep","cyeh","co","cog","cogg","cogs","con","conj","conh","cod","col","colg","colm","colb","cols","colt","colp","colh","com","cob","cobs","cos","coss","cong","coj","coc","cok","cot","cop","coh","cwa","cwag","cwagg","cwags","cwan","cwanj","cwanh","cwad","cwal","cwalg","cwalm","cwalb","cwals","cwalt","cwalp","cwalh","cwam","cwab","cwabs","cwas","cwass","cwang","cwaj","cwac","cwak","cwat","cwap","cwah","cwae","cwaeg","cwaegg","cwaegs","cwaen","cwaenj","cwaenh","cwaed","cwael","cwaelg","cwaelm","cwaelb","cwaels","cwaelt","cwaelp","cwaelh","cwaem","cwaeb","cwaebs","cwaes","cwaess","cwaeng","cwaej","cwaec","cwaek","cwaet","cwaep","cwaeh","coe","coeg","coegg","coegs","coen","coenj","coenh","coed","coel","coelg","coelm","coelb","coels","coelt","coelp","coelh","coem","coeb","coebs","coes","coess","coeng","coej","coec","coek","coet","coep","coeh","cyo","cyog","cyogg","cyogs","cyon","cyonj","cyonh","cyod","cyol","cyolg","cyolm","cyolb","cyols","cyolt","cyolp","cyolh","cyom","cyob","cyobs","cyos","cyoss","cyong","cyoj","cyoc","cyok","cyot","cyop","cyoh","cu","cug","cugg","cugs","cun","cunj","cunh","cud","cul","culg","culm","culb","culs","cult","culp","culh","cum","cub","cubs","cus","cuss","cung","cuj","cuc","cuk","cut","cup","cuh","cweo","cweog","cweogg","cweogs","cweon","cweonj","cweonh","cweod","cweol","cweolg","cweolm","cweolb","cweols","cweolt","cweolp","cweolh","cweom","cweob","cweobs","cweos","cweoss","cweong","cweoj","cweoc","cweok","cweot","cweop","cweoh","cwe","cweg","cwegg","cwegs","cwen","cwenj","cwenh","cwed","cwel","cwelg","cwelm","cwelb","cwels","cwelt","cwelp","cwelh","cwem","cweb","cwebs","cwes","cwess","cweng","cwej","cwec","cwek","cwet","cwep","cweh","cwi","cwig","cwigg","cwigs","cwin","cwinj","cwinh","cwid","cwil","cwilg","cwilm","cwilb","cwils","cwilt","cwilp","cwilh","cwim","cwib","cwibs","cwis","cwiss","cwing","cwij","cwic"]});var T7=m((oQe,S7)=>{S7.exports=["cwik","cwit","cwip","cwih","cyu","cyug","cyugg","cyugs","cyun","cyunj","cyunh","cyud","cyul","cyulg","cyulm","cyulb","cyuls","cyult","cyulp","cyulh","cyum","cyub","cyubs","cyus","cyuss","cyung","cyuj","cyuc","cyuk","cyut","cyup","cyuh","ceu","ceug","ceugg","ceugs","ceun","ceunj","ceunh","ceud","ceul","ceulg","ceulm","ceulb","ceuls","ceult","ceulp","ceulh","ceum","ceub","ceubs","ceus","ceuss","ceung","ceuj","ceuc","ceuk","ceut","ceup","ceuh","cyi","cyig","cyigg","cyigs","cyin","cyinj","cyinh","cyid","cyil","cyilg","cyilm","cyilb","cyils","cyilt","cyilp","cyilh","cyim","cyib","cyibs","cyis","cyiss","cying","cyij","cyic","cyik","cyit","cyip","cyih","ci","cig","cigg","cigs","cin","cinj","cinh","cid","cil","cilg","cilm","cilb","cils","cilt","cilp","cilh","cim","cib","cibs","cis","ciss","cing","cij","cic","cik","cit","cip","cih","ka","kag","kagg","kags","kan","kanj","kanh","kad","kal","kalg","kalm","kalb","kals","kalt","kalp","kalh","kam","kab","kabs","kas","kass","kang","kaj","kac","kak","kat","kap","kah","kae","kaeg","kaegg","kaegs","kaen","kaenj","kaenh","kaed","kael","kaelg","kaelm","kaelb","kaels","kaelt","kaelp","kaelh","kaem","kaeb","kaebs","kaes","kaess","kaeng","kaej","kaec","kaek","kaet","kaep","kaeh","kya","kyag","kyagg","kyags","kyan","kyanj","kyanh","kyad","kyal","kyalg","kyalm","kyalb","kyals","kyalt","kyalp","kyalh","kyam","kyab","kyabs","kyas","kyass","kyang","kyaj","kyac","kyak","kyat","kyap","kyah","kyae","kyaeg","kyaegg","kyaegs","kyaen","kyaenj","kyaenh","kyaed","kyael","kyaelg","kyaelm","kyaelb","kyaels","kyaelt","kyaelp","kyaelh","kyaem","kyaeb","kyaebs","kyaes","kyaess","kyaeng","kyaej","kyaec","kyaek","kyaet","kyaep","kyaeh","keo","keog","keogg","keogs","keon","keonj","keonh","keod","keol","keolg","keolm","keolb","keols","keolt","keolp","keolh","keom","keob","keobs","keos","keoss","keong","keoj","keoc","keok","keot","keop","keoh"]});var D7=m((sQe,k7)=>{k7.exports=["ke","keg","kegg","kegs","ken","kenj","kenh","ked","kel","kelg","kelm","kelb","kels","kelt","kelp","kelh","kem","keb","kebs","kes","kess","keng","kej","kec","kek","ket","kep","keh","kyeo","kyeog","kyeogg","kyeogs","kyeon","kyeonj","kyeonh","kyeod","kyeol","kyeolg","kyeolm","kyeolb","kyeols","kyeolt","kyeolp","kyeolh","kyeom","kyeob","kyeobs","kyeos","kyeoss","kyeong","kyeoj","kyeoc","kyeok","kyeot","kyeop","kyeoh","kye","kyeg","kyegg","kyegs","kyen","kyenj","kyenh","kyed","kyel","kyelg","kyelm","kyelb","kyels","kyelt","kyelp","kyelh","kyem","kyeb","kyebs","kyes","kyess","kyeng","kyej","kyec","kyek","kyet","kyep","kyeh","ko","kog","kogg","kogs","kon","konj","konh","kod","kol","kolg","kolm","kolb","kols","kolt","kolp","kolh","kom","kob","kobs","kos","koss","kong","koj","koc","kok","kot","kop","koh","kwa","kwag","kwagg","kwags","kwan","kwanj","kwanh","kwad","kwal","kwalg","kwalm","kwalb","kwals","kwalt","kwalp","kwalh","kwam","kwab","kwabs","kwas","kwass","kwang","kwaj","kwac","kwak","kwat","kwap","kwah","kwae","kwaeg","kwaegg","kwaegs","kwaen","kwaenj","kwaenh","kwaed","kwael","kwaelg","kwaelm","kwaelb","kwaels","kwaelt","kwaelp","kwaelh","kwaem","kwaeb","kwaebs","kwaes","kwaess","kwaeng","kwaej","kwaec","kwaek","kwaet","kwaep","kwaeh","koe","koeg","koegg","koegs","koen","koenj","koenh","koed","koel","koelg","koelm","koelb","koels","koelt","koelp","koelh","koem","koeb","koebs","koes","koess","koeng","koej","koec","koek","koet","koep","koeh","kyo","kyog","kyogg","kyogs","kyon","kyonj","kyonh","kyod","kyol","kyolg","kyolm","kyolb","kyols","kyolt","kyolp","kyolh","kyom","kyob","kyobs","kyos","kyoss","kyong","kyoj","kyoc","kyok","kyot","kyop","kyoh","ku","kug","kugg","kugs","kun","kunj","kunh","kud","kul","kulg","kulm","kulb","kuls","kult","kulp","kulh","kum","kub","kubs","kus","kuss","kung","kuj","kuc","kuk","kut","kup","kuh","kweo","kweog","kweogg","kweogs"]});var _7=m((aQe,E7)=>{E7.exports=["kweon","kweonj","kweonh","kweod","kweol","kweolg","kweolm","kweolb","kweols","kweolt","kweolp","kweolh","kweom","kweob","kweobs","kweos","kweoss","kweong","kweoj","kweoc","kweok","kweot","kweop","kweoh","kwe","kweg","kwegg","kwegs","kwen","kwenj","kwenh","kwed","kwel","kwelg","kwelm","kwelb","kwels","kwelt","kwelp","kwelh","kwem","kweb","kwebs","kwes","kwess","kweng","kwej","kwec","kwek","kwet","kwep","kweh","kwi","kwig","kwigg","kwigs","kwin","kwinj","kwinh","kwid","kwil","kwilg","kwilm","kwilb","kwils","kwilt","kwilp","kwilh","kwim","kwib","kwibs","kwis","kwiss","kwing","kwij","kwic","kwik","kwit","kwip","kwih","kyu","kyug","kyugg","kyugs","kyun","kyunj","kyunh","kyud","kyul","kyulg","kyulm","kyulb","kyuls","kyult","kyulp","kyulh","kyum","kyub","kyubs","kyus","kyuss","kyung","kyuj","kyuc","kyuk","kyut","kyup","kyuh","keu","keug","keugg","keugs","keun","keunj","keunh","keud","keul","keulg","keulm","keulb","keuls","keult","keulp","keulh","keum","keub","keubs","keus","keuss","keung","keuj","keuc","keuk","keut","keup","keuh","kyi","kyig","kyigg","kyigs","kyin","kyinj","kyinh","kyid","kyil","kyilg","kyilm","kyilb","kyils","kyilt","kyilp","kyilh","kyim","kyib","kyibs","kyis","kyiss","kying","kyij","kyic","kyik","kyit","kyip","kyih","ki","kig","kigg","kigs","kin","kinj","kinh","kid","kil","kilg","kilm","kilb","kils","kilt","kilp","kilh","kim","kib","kibs","kis","kiss","king","kij","kic","kik","kit","kip","kih","ta","tag","tagg","tags","tan","tanj","tanh","tad","tal","talg","talm","talb","tals","talt","talp","talh","tam","tab","tabs","tas","tass","tang","taj","tac","tak","tat","tap","tah","tae","taeg","taegg","taegs","taen","taenj","taenh","taed","tael","taelg","taelm","taelb","taels","taelt","taelp","taelh","taem","taeb","taebs","taes","taess","taeng","taej","taec","taek","taet","taep","taeh","tya","tyag","tyagg","tyags","tyan","tyanj","tyanh","tyad"]});var R7=m((lQe,P7)=>{P7.exports=["tyal","tyalg","tyalm","tyalb","tyals","tyalt","tyalp","tyalh","tyam","tyab","tyabs","tyas","tyass","tyang","tyaj","tyac","tyak","tyat","tyap","tyah","tyae","tyaeg","tyaegg","tyaegs","tyaen","tyaenj","tyaenh","tyaed","tyael","tyaelg","tyaelm","tyaelb","tyaels","tyaelt","tyaelp","tyaelh","tyaem","tyaeb","tyaebs","tyaes","tyaess","tyaeng","tyaej","tyaec","tyaek","tyaet","tyaep","tyaeh","teo","teog","teogg","teogs","teon","teonj","teonh","teod","teol","teolg","teolm","teolb","teols","teolt","teolp","teolh","teom","teob","teobs","teos","teoss","teong","teoj","teoc","teok","teot","teop","teoh","te","teg","tegg","tegs","ten","tenj","tenh","ted","tel","telg","telm","telb","tels","telt","telp","telh","tem","teb","tebs","tes","tess","teng","tej","tec","tek","tet","tep","teh","tyeo","tyeog","tyeogg","tyeogs","tyeon","tyeonj","tyeonh","tyeod","tyeol","tyeolg","tyeolm","tyeolb","tyeols","tyeolt","tyeolp","tyeolh","tyeom","tyeob","tyeobs","tyeos","tyeoss","tyeong","tyeoj","tyeoc","tyeok","tyeot","tyeop","tyeoh","tye","tyeg","tyegg","tyegs","tyen","tyenj","tyenh","tyed","tyel","tyelg","tyelm","tyelb","tyels","tyelt","tyelp","tyelh","tyem","tyeb","tyebs","tyes","tyess","tyeng","tyej","tyec","tyek","tyet","tyep","tyeh","to","tog","togg","togs","ton","tonj","tonh","tod","tol","tolg","tolm","tolb","tols","tolt","tolp","tolh","tom","tob","tobs","tos","toss","tong","toj","toc","tok","tot","top","toh","twa","twag","twagg","twags","twan","twanj","twanh","twad","twal","twalg","twalm","twalb","twals","twalt","twalp","twalh","twam","twab","twabs","twas","twass","twang","twaj","twac","twak","twat","twap","twah","twae","twaeg","twaegg","twaegs","twaen","twaenj","twaenh","twaed","twael","twaelg","twaelm","twaelb","twaels","twaelt","twaelp","twaelh","twaem","twaeb","twaebs","twaes","twaess","twaeng","twaej","twaec","twaek","twaet","twaep","twaeh","toe","toeg","toegg","toegs","toen","toenj","toenh","toed","toel","toelg","toelm","toelb"]});var I7=m((uQe,L7)=>{L7.exports=["toels","toelt","toelp","toelh","toem","toeb","toebs","toes","toess","toeng","toej","toec","toek","toet","toep","toeh","tyo","tyog","tyogg","tyogs","tyon","tyonj","tyonh","tyod","tyol","tyolg","tyolm","tyolb","tyols","tyolt","tyolp","tyolh","tyom","tyob","tyobs","tyos","tyoss","tyong","tyoj","tyoc","tyok","tyot","tyop","tyoh","tu","tug","tugg","tugs","tun","tunj","tunh","tud","tul","tulg","tulm","tulb","tuls","tult","tulp","tulh","tum","tub","tubs","tus","tuss","tung","tuj","tuc","tuk","tut","tup","tuh","tweo","tweog","tweogg","tweogs","tweon","tweonj","tweonh","tweod","tweol","tweolg","tweolm","tweolb","tweols","tweolt","tweolp","tweolh","tweom","tweob","tweobs","tweos","tweoss","tweong","tweoj","tweoc","tweok","tweot","tweop","tweoh","twe","tweg","twegg","twegs","twen","twenj","twenh","twed","twel","twelg","twelm","twelb","twels","twelt","twelp","twelh","twem","tweb","twebs","twes","twess","tweng","twej","twec","twek","twet","twep","tweh","twi","twig","twigg","twigs","twin","twinj","twinh","twid","twil","twilg","twilm","twilb","twils","twilt","twilp","twilh","twim","twib","twibs","twis","twiss","twing","twij","twic","twik","twit","twip","twih","tyu","tyug","tyugg","tyugs","tyun","tyunj","tyunh","tyud","tyul","tyulg","tyulm","tyulb","tyuls","tyult","tyulp","tyulh","tyum","tyub","tyubs","tyus","tyuss","tyung","tyuj","tyuc","tyuk","tyut","tyup","tyuh","teu","teug","teugg","teugs","teun","teunj","teunh","teud","teul","teulg","teulm","teulb","teuls","teult","teulp","teulh","teum","teub","teubs","teus","teuss","teung","teuj","teuc","teuk","teut","teup","teuh","tyi","tyig","tyigg","tyigs","tyin","tyinj","tyinh","tyid","tyil","tyilg","tyilm","tyilb","tyils","tyilt","tyilp","tyilh","tyim","tyib","tyibs","tyis","tyiss","tying","tyij","tyic","tyik","tyit","tyip","tyih","ti","tig","tigg","tigs","tin","tinj","tinh","tid","til","tilg","tilm","tilb","tils","tilt","tilp","tilh"]});var F7=m((cQe,j7)=>{j7.exports=["tim","tib","tibs","tis","tiss","ting","tij","tic","tik","tit","tip","tih","pa","pag","pagg","pags","pan","panj","panh","pad","pal","palg","palm","palb","pals","palt","palp","palh","pam","pab","pabs","pas","pass","pang","paj","pac","pak","pat","pap","pah","pae","paeg","paegg","paegs","paen","paenj","paenh","paed","pael","paelg","paelm","paelb","paels","paelt","paelp","paelh","paem","paeb","paebs","paes","paess","paeng","paej","paec","paek","paet","paep","paeh","pya","pyag","pyagg","pyags","pyan","pyanj","pyanh","pyad","pyal","pyalg","pyalm","pyalb","pyals","pyalt","pyalp","pyalh","pyam","pyab","pyabs","pyas","pyass","pyang","pyaj","pyac","pyak","pyat","pyap","pyah","pyae","pyaeg","pyaegg","pyaegs","pyaen","pyaenj","pyaenh","pyaed","pyael","pyaelg","pyaelm","pyaelb","pyaels","pyaelt","pyaelp","pyaelh","pyaem","pyaeb","pyaebs","pyaes","pyaess","pyaeng","pyaej","pyaec","pyaek","pyaet","pyaep","pyaeh","peo","peog","peogg","peogs","peon","peonj","peonh","peod","peol","peolg","peolm","peolb","peols","peolt","peolp","peolh","peom","peob","peobs","peos","peoss","peong","peoj","peoc","peok","peot","peop","peoh","pe","peg","pegg","pegs","pen","penj","penh","ped","pel","pelg","pelm","pelb","pels","pelt","pelp","pelh","pem","peb","pebs","pes","pess","peng","pej","pec","pek","pet","pep","peh","pyeo","pyeog","pyeogg","pyeogs","pyeon","pyeonj","pyeonh","pyeod","pyeol","pyeolg","pyeolm","pyeolb","pyeols","pyeolt","pyeolp","pyeolh","pyeom","pyeob","pyeobs","pyeos","pyeoss","pyeong","pyeoj","pyeoc","pyeok","pyeot","pyeop","pyeoh","pye","pyeg","pyegg","pyegs","pyen","pyenj","pyenh","pyed","pyel","pyelg","pyelm","pyelb","pyels","pyelt","pyelp","pyelh","pyem","pyeb","pyebs","pyes","pyess","pyeng","pyej","pyec","pyek","pyet","pyep","pyeh","po","pog","pogg","pogs","pon","ponj","ponh","pod","pol","polg","polm","polb","pols","polt","polp","polh","pom","pob","pobs","pos"]});var M7=m((hQe,O7)=>{O7.exports=["poss","pong","poj","poc","pok","pot","pop","poh","pwa","pwag","pwagg","pwags","pwan","pwanj","pwanh","pwad","pwal","pwalg","pwalm","pwalb","pwals","pwalt","pwalp","pwalh","pwam","pwab","pwabs","pwas","pwass","pwang","pwaj","pwac","pwak","pwat","pwap","pwah","pwae","pwaeg","pwaegg","pwaegs","pwaen","pwaenj","pwaenh","pwaed","pwael","pwaelg","pwaelm","pwaelb","pwaels","pwaelt","pwaelp","pwaelh","pwaem","pwaeb","pwaebs","pwaes","pwaess","pwaeng","pwaej","pwaec","pwaek","pwaet","pwaep","pwaeh","poe","poeg","poegg","poegs","poen","poenj","poenh","poed","poel","poelg","poelm","poelb","poels","poelt","poelp","poelh","poem","poeb","poebs","poes","poess","poeng","poej","poec","poek","poet","poep","poeh","pyo","pyog","pyogg","pyogs","pyon","pyonj","pyonh","pyod","pyol","pyolg","pyolm","pyolb","pyols","pyolt","pyolp","pyolh","pyom","pyob","pyobs","pyos","pyoss","pyong","pyoj","pyoc","pyok","pyot","pyop","pyoh","pu","pug","pugg","pugs","pun","punj","punh","pud","pul","pulg","pulm","pulb","puls","pult","pulp","pulh","pum","pub","pubs","pus","puss","pung","puj","puc","puk","put","pup","puh","pweo","pweog","pweogg","pweogs","pweon","pweonj","pweonh","pweod","pweol","pweolg","pweolm","pweolb","pweols","pweolt","pweolp","pweolh","pweom","pweob","pweobs","pweos","pweoss","pweong","pweoj","pweoc","pweok","pweot","pweop","pweoh","pwe","pweg","pwegg","pwegs","pwen","pwenj","pwenh","pwed","pwel","pwelg","pwelm","pwelb","pwels","pwelt","pwelp","pwelh","pwem","pweb","pwebs","pwes","pwess","pweng","pwej","pwec","pwek","pwet","pwep","pweh","pwi","pwig","pwigg","pwigs","pwin","pwinj","pwinh","pwid","pwil","pwilg","pwilm","pwilb","pwils","pwilt","pwilp","pwilh","pwim","pwib","pwibs","pwis","pwiss","pwing","pwij","pwic","pwik","pwit","pwip","pwih","pyu","pyug","pyugg","pyugs","pyun","pyunj","pyunh","pyud","pyul","pyulg","pyulm","pyulb","pyuls","pyult","pyulp","pyulh","pyum","pyub","pyubs","pyus","pyuss","pyung","pyuj","pyuc"]});var N7=m((dQe,A7)=>{A7.exports=["pyuk","pyut","pyup","pyuh","peu","peug","peugg","peugs","peun","peunj","peunh","peud","peul","peulg","peulm","peulb","peuls","peult","peulp","peulh","peum","peub","peubs","peus","peuss","peung","peuj","peuc","peuk","peut","peup","peuh","pyi","pyig","pyigg","pyigs","pyin","pyinj","pyinh","pyid","pyil","pyilg","pyilm","pyilb","pyils","pyilt","pyilp","pyilh","pyim","pyib","pyibs","pyis","pyiss","pying","pyij","pyic","pyik","pyit","pyip","pyih","pi","pig","pigg","pigs","pin","pinj","pinh","pid","pil","pilg","pilm","pilb","pils","pilt","pilp","pilh","pim","pib","pibs","pis","piss","ping","pij","pic","pik","pit","pip","pih","ha","hag","hagg","hags","han","hanj","hanh","had","hal","halg","halm","halb","hals","halt","halp","halh","ham","hab","habs","has","hass","hang","haj","hac","hak","hat","hap","hah","hae","haeg","haegg","haegs","haen","haenj","haenh","haed","hael","haelg","haelm","haelb","haels","haelt","haelp","haelh","haem","haeb","haebs","haes","haess","haeng","haej","haec","haek","haet","haep","haeh","hya","hyag","hyagg","hyags","hyan","hyanj","hyanh","hyad","hyal","hyalg","hyalm","hyalb","hyals","hyalt","hyalp","hyalh","hyam","hyab","hyabs","hyas","hyass","hyang","hyaj","hyac","hyak","hyat","hyap","hyah","hyae","hyaeg","hyaegg","hyaegs","hyaen","hyaenj","hyaenh","hyaed","hyael","hyaelg","hyaelm","hyaelb","hyaels","hyaelt","hyaelp","hyaelh","hyaem","hyaeb","hyaebs","hyaes","hyaess","hyaeng","hyaej","hyaec","hyaek","hyaet","hyaep","hyaeh","heo","heog","heogg","heogs","heon","heonj","heonh","heod","heol","heolg","heolm","heolb","heols","heolt","heolp","heolh","heom","heob","heobs","heos","heoss","heong","heoj","heoc","heok","heot","heop","heoh","he","heg","hegg","hegs","hen","henj","henh","hed","hel","helg","helm","helb","hels","helt","help","helh","hem","heb","hebs","hes","hess","heng","hej","hec","hek","het","hep","heh"]});var q7=m((gQe,H7)=>{H7.exports=["hyeo","hyeog","hyeogg","hyeogs","hyeon","hyeonj","hyeonh","hyeod","hyeol","hyeolg","hyeolm","hyeolb","hyeols","hyeolt","hyeolp","hyeolh","hyeom","hyeob","hyeobs","hyeos","hyeoss","hyeong","hyeoj","hyeoc","hyeok","hyeot","hyeop","hyeoh","hye","hyeg","hyegg","hyegs","hyen","hyenj","hyenh","hyed","hyel","hyelg","hyelm","hyelb","hyels","hyelt","hyelp","hyelh","hyem","hyeb","hyebs","hyes","hyess","hyeng","hyej","hyec","hyek","hyet","hyep","hyeh","ho","hog","hogg","hogs","hon","honj","honh","hod","hol","holg","holm","holb","hols","holt","holp","holh","hom","hob","hobs","hos","hoss","hong","hoj","hoc","hok","hot","hop","hoh","hwa","hwag","hwagg","hwags","hwan","hwanj","hwanh","hwad","hwal","hwalg","hwalm","hwalb","hwals","hwalt","hwalp","hwalh","hwam","hwab","hwabs","hwas","hwass","hwang","hwaj","hwac","hwak","hwat","hwap","hwah","hwae","hwaeg","hwaegg","hwaegs","hwaen","hwaenj","hwaenh","hwaed","hwael","hwaelg","hwaelm","hwaelb","hwaels","hwaelt","hwaelp","hwaelh","hwaem","hwaeb","hwaebs","hwaes","hwaess","hwaeng","hwaej","hwaec","hwaek","hwaet","hwaep","hwaeh","hoe","hoeg","hoegg","hoegs","hoen","hoenj","hoenh","hoed","hoel","hoelg","hoelm","hoelb","hoels","hoelt","hoelp","hoelh","hoem","hoeb","hoebs","hoes","hoess","hoeng","hoej","hoec","hoek","hoet","hoep","hoeh","hyo","hyog","hyogg","hyogs","hyon","hyonj","hyonh","hyod","hyol","hyolg","hyolm","hyolb","hyols","hyolt","hyolp","hyolh","hyom","hyob","hyobs","hyos","hyoss","hyong","hyoj","hyoc","hyok","hyot","hyop","hyoh","hu","hug","hugg","hugs","hun","hunj","hunh","hud","hul","hulg","hulm","hulb","huls","hult","hulp","hulh","hum","hub","hubs","hus","huss","hung","huj","huc","huk","hut","hup","huh","hweo","hweog","hweogg","hweogs","hweon","hweonj","hweonh","hweod","hweol","hweolg","hweolm","hweolb","hweols","hweolt","hweolp","hweolh","hweom","hweob","hweobs","hweos","hweoss","hweong","hweoj","hweoc","hweok","hweot","hweop","hweoh","hwe","hweg","hwegg","hwegs"]});var Y7=m((fQe,B7)=>{B7.exports=["hwen","hwenj","hwenh","hwed","hwel","hwelg","hwelm","hwelb","hwels","hwelt","hwelp","hwelh","hwem","hweb","hwebs","hwes","hwess","hweng","hwej","hwec","hwek","hwet","hwep","hweh","hwi","hwig","hwigg","hwigs","hwin","hwinj","hwinh","hwid","hwil","hwilg","hwilm","hwilb","hwils","hwilt","hwilp","hwilh","hwim","hwib","hwibs","hwis","hwiss","hwing","hwij","hwic","hwik","hwit","hwip","hwih","hyu","hyug","hyugg","hyugs","hyun","hyunj","hyunh","hyud","hyul","hyulg","hyulm","hyulb","hyuls","hyult","hyulp","hyulh","hyum","hyub","hyubs","hyus","hyuss","hyung","hyuj","hyuc","hyuk","hyut","hyup","hyuh","heu","heug","heugg","heugs","heun","heunj","heunh","heud","heul","heulg","heulm","heulb","heuls","heult","heulp","heulh","heum","heub","heubs","heus","heuss","heung","heuj","heuc","heuk","heut","heup","heuh","hyi","hyig","hyigg","hyigs","hyin","hyinj","hyinh","hyid","hyil","hyilg","hyilm","hyilb","hyils","hyilt","hyilp","hyilh","hyim","hyib","hyibs","hyis","hyiss","hying","hyij","hyic","hyik","hyit","hyip","hyih","hi","hig","higg","higs","hin","hinj","hinh","hid","hil","hilg","hilm","hilb","hils","hilt","hilp","hilh","him","hib","hibs","his","hiss","hing","hij","hic","hik","hit","hip","hih","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var Z7=m((pQe,W7)=>{W7.exports=["Kay ","Kayng ","Ke ","Ko ","Kol ","Koc ","Kwi ","Kwi ","Kyun ","Kul ","Kum ","Na ","Na ","Na ","La ","Na ","Na ","Na ","Na ","Na ","Nak ","Nak ","Nak ","Nak ","Nak ","Nak ","Nak ","Nan ","Nan ","Nan ","Nan ","Nan ","Nan ","Nam ","Nam ","Nam ","Nam ","Nap ","Nap ","Nap ","Nang ","Nang ","Nang ","Nang ","Nang ","Nay ","Nayng ","No ","No ","No ","No ","No ","No ","No ","No ","No ","No ","No ","No ","Nok ","Nok ","Nok ","Nok ","Nok ","Nok ","Non ","Nong ","Nong ","Nong ","Nong ","Noy ","Noy ","Noy ","Noy ","Nwu ","Nwu ","Nwu ","Nwu ","Nwu ","Nwu ","Nwu ","Nwu ","Nuk ","Nuk ","Num ","Nung ","Nung ","Nung ","Nung ","Nung ","Twu ","La ","Lak ","Lak ","Lan ","Lyeng ","Lo ","Lyul ","Li ","Pey ","Pen ","Pyen ","Pwu ","Pwul ","Pi ","Sak ","Sak ","Sam ","Sayk ","Sayng ","Sep ","Sey ","Sway ","Sin ","Sim ","Sip ","Ya ","Yak ","Yak ","Yang ","Yang ","Yang ","Yang ","Yang ","Yang ","Yang ","Yang ","Ye ","Ye ","Ye ","Ye ","Ye ","Ye ","Ye ","Ye ","Ye ","Ye ","Ye ","Yek ","Yek ","Yek ","Yek ","Yen ","Yen ","Yen ","Yen ","Yen ","Yen ","Yen ","Yen ","Yen ","Yen ","Yen ","Yen ","Yen ","Yen ","Yel ","Yel ","Yel ","Yel ","Yel ","Yel ","Yem ","Yem ","Yem ","Yem ","Yem ","Yep ","Yeng ","Yeng ","Yeng ","Yeng ","Yeng ","Yeng ","Yeng ","Yeng ","Yeng ","Yeng ","Yeng ","Yeng ","Yeng ","Yey ","Yey ","Yey ","Yey ","O ","Yo ","Yo ","Yo ","Yo ","Yo ","Yo ","Yo ","Yo ","Yo ","Yo ","Yong ","Wun ","Wen ","Yu ","Yu ","Yu ","Yu ","Yu ","Yu ","Yu ","Yu ","Yu ","Yu ","Yuk ","Yuk ","Yuk ","Yun ","Yun ","Yun ","Yun ","Yul ","Yul ","Yul ","Yul ","Yung ","I ","I ","I ","I ","I ","I ","I ","I ","I ","I ","I ","I ","I ","I ","Ik ","Ik ","In ","In ","In ","In ","In ","In ","In ","Im ","Im ","Im ","Ip ","Ip ","Ip ","Cang ","Cek ","Ci ","Cip ","Cha ","Chek "]});var $7=m((mQe,J7)=>{J7.exports=["Chey ","Thak ","Thak ","Thang ","Thayk ","Thong ","Pho ","Phok ","Hang ","Hang ","Hyen ","Hwak ","Wu ","Huo ","[?] ","[?] ","Zhong ","[?] ","Qing ","[?] ","[?] ","Xi ","Zhu ","Yi ","Li ","Shen ","Xiang ","Fu ","Jing ","Jing ","Yu ","[?] ","Hagi ","[?] ","Zhu ","[?] ","[?] ","Yi ","Du ","[?] ","[?] ","[?] ","Fan ","Si ","Guan ","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var U7=m((bQe,X7)=>{X7.exports=["ff","fi","fl","ffi","ffl","st","st","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","mn","me","mi","vn","mkh","[?]","[?]","[?]","[?]","[?]","yi","","ay","`","","d","h","k","l","m","m","t","+","sh","s","sh","s","a","a","","b","g","d","h","v","z","[?]","t","y","k","k","l","[?]","l","[?]","n","n","[?]","p","p","[?]","ts","ts","r","sh","t","vo","b","k","p","l","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""]});var K7=m((yQe,G7)=>{G7.exports=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""]});var Q7=m((vQe,z7)=>{z7.exports=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","[?]","[?]","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","","","","","","","","","","","","","[?]","[?]","[?]"]});var e9=m((wQe,V7)=>{V7.exports=["[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","","","","~","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","..","--","-","_","_","(",") ","{","} ","[","] ","[(",")] ","<<",">> ","<","> ","[","] ","{","}","[?]","[?]","[?]","[?]","","","","","","","",",",",",".","",";",":","?","!","-","(",")","{","}","{","}","#","&","*","+","-","<",">","=","","\\","$","%","@","[?]","[?]","[?]","[?]","","","","[?]","","[?]","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","[?]","[?]",""]});var i9=m((xQe,t9)=>{t9.exports=["[?]","!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","<","=",">","?","@","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","[","\\","]","^","_","`","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","{","|","}","~","[?]","[?]",".","[","]",",","*","wo","a","i","u","e","o","ya","yu","yo","tu","+","a","i","u","e","o","ka","ki","ku","ke","ko","sa","si","su","se","so","ta","ti","tu","te","to","na","ni","nu","ne","no","ha","hi","hu","he","ho","ma","mi","mu","me","mo","ya","yu","yo","ra","ri","ru","re","ro","wa","n",":",";","","g","gg","gs","n","nj","nh","d","dd","r","lg","lm","lb","ls","lt","lp","rh","m","b","bb","bs","s","ss","","j","jj","c","k","t","p","h","[?]","[?]","[?]","a","ae","ya","yae","eo","e","[?]","[?]","yeo","ye","o","wa","wae","oe","[?]","[?]","yo","u","weo","we","wi","yu","[?]","[?]","eu","yi","i","[?]","[?]","[?]","/C","PS","!","-","|","Y=","W=","[?]","|","-","|","-","|","#","O","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","{","|","}","","","",""]});var r9=m((CQe,n9)=>{"use strict";var R={},XTe=/(?![\x00-\x7F]|[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3})./g;n9.exports=function(n){return n.replace(XTe,UTe)};function UTe(n){var e=KTe(n);if(e>65535)return"_";var t=e>>8,i=e&255;if(t>24&&t<30||t>215&&t<249)return"";if(!R[t])switch(GTe(t)){case"00":R[t]=CQ();break;case"01":R[t]=TQ();break;case"02":R[t]=DQ();break;case"03":R[t]=_Q();break;case"04":R[t]=RQ();break;case"05":R[t]=IQ();break;case"06":R[t]=FQ();break;case"07":R[t]=MQ();break;case"09":R[t]=NQ();break;case"0a":R[t]=qQ();break;case"0b":R[t]=YQ();break;case"0c":R[t]=ZQ();break;case"0d":R[t]=$Q();break;case"0e":R[t]=UQ();break;case"0f":R[t]=KQ();break;case"10":R[t]=QQ();break;case"11":R[t]=e4();break;case"12":R[t]=i4();break;case"13":R[t]=r4();break;case"14":R[t]=s4();break;case"15":R[t]=l4();break;case"16":R[t]=c4();break;case"17":R[t]=d4();break;case"18":R[t]=f4();break;case"1e":R[t]=m4();break;case"1f":R[t]=y4();break;case"20":R[t]=w4();break;case"21":R[t]=C4();break;case"22":R[t]=T4();break;case"23":R[t]=D4();break;case"24":R[t]=_4();break;case"25":R[t]=R4();break;case"26":R[t]=I4();break;case"27":R[t]=F4();break;case"28":R[t]=M4();break;case"2e":R[t]=N4();break;case"2f":R[t]=q4();break;case"30":R[t]=Y4();break;case"31":R[t]=Z4();break;case"32":R[t]=$4();break;case"33":R[t]=U4();break;case"4d":R[t]=K4();break;case"4e":R[t]=Q4();break;case"4f":R[t]=e6();break;case"50":R[t]=i6();break;case"51":R[t]=r6();break;case"52":R[t]=s6();break;case"53":R[t]=l6();break;case"54":R[t]=c6();break;case"55":R[t]=d6();break;case"56":R[t]=f6();break;case"57":R[t]=m6();break;case"58":R[t]=y6();break;case"59":R[t]=w6();break;case"5a":R[t]=C6();break;case"5b":R[t]=T6();break;case"5c":R[t]=D6();break;case"5d":R[t]=_6();break;case"5e":R[t]=R6();break;case"5f":R[t]=I6();break;case"60":R[t]=F6();break;case"61":R[t]=M6();break;case"62":R[t]=N6();break;case"63":R[t]=q6();break;case"64":R[t]=Y6();break;case"65":R[t]=Z6();break;case"66":R[t]=$6();break;case"67":R[t]=U6();break;case"68":R[t]=K6();break;case"69":R[t]=Q6();break;case"6a":R[t]=e8();break;case"6b":R[t]=i8();break;case"6c":R[t]=r8();break;case"6d":R[t]=s8();break;case"6e":R[t]=l8();break;case"6f":R[t]=c8();break;case"70":R[t]=d8();break;case"71":R[t]=f8();break;case"72":R[t]=m8();break;case"73":R[t]=y8();break;case"74":R[t]=w8();break;case"75":R[t]=C8();break;case"76":R[t]=T8();break;case"77":R[t]=D8();break;case"78":R[t]=_8();break;case"79":R[t]=R8();break;case"7a":R[t]=I8();break;case"7b":R[t]=F8();break;case"7c":R[t]=M8();break;case"7d":R[t]=N8();break;case"7e":R[t]=q8();break;case"7f":R[t]=Y8();break;case"80":R[t]=Z8();break;case"81":R[t]=$8();break;case"82":R[t]=U8();break;case"83":R[t]=K8();break;case"84":R[t]=Q8();break;case"85":R[t]=e5();break;case"86":R[t]=i5();break;case"87":R[t]=r5();break;case"88":R[t]=s5();break;case"89":R[t]=l5();break;case"8a":R[t]=c5();break;case"8b":R[t]=d5();break;case"8c":R[t]=f5();break;case"8d":R[t]=m5();break;case"8e":R[t]=y5();break;case"8f":R[t]=w5();break;case"90":R[t]=C5();break;case"91":R[t]=T5();break;case"92":R[t]=D5();break;case"93":R[t]=_5();break;case"94":R[t]=R5();break;case"95":R[t]=I5();break;case"96":R[t]=F5();break;case"97":R[t]=M5();break;case"98":R[t]=N5();break;case"99":R[t]=q5();break;case"9a":R[t]=Y5();break;case"9b":R[t]=Z5();break;case"9c":R[t]=$5();break;case"9d":R[t]=U5();break;case"9e":R[t]=K5();break;case"9f":R[t]=Q5();break;case"a0":R[t]=eV();break;case"a1":R[t]=iV();break;case"a2":R[t]=rV();break;case"a3":R[t]=sV();break;case"a4":R[t]=lV();break;case"ac":R[t]=cV();break;case"ad":R[t]=dV();break;case"ae":R[t]=fV();break;case"af":R[t]=mV();break;case"b0":R[t]=yV();break;case"b1":R[t]=wV();break;case"b2":R[t]=CV();break;case"b3":R[t]=TV();break;case"b4":R[t]=DV();break;case"b5":R[t]=_V();break;case"b6":R[t]=RV();break;case"b7":R[t]=IV();break;case"b8":R[t]=FV();break;case"b9":R[t]=MV();break;case"ba":R[t]=NV();break;case"bb":R[t]=qV();break;case"bc":R[t]=YV();break;case"bd":R[t]=ZV();break;case"be":R[t]=$V();break;case"bf":R[t]=UV();break;case"c0":R[t]=KV();break;case"c1":R[t]=QV();break;case"c2":R[t]=e7();break;case"c3":R[t]=i7();break;case"c4":R[t]=r7();break;case"c5":R[t]=s7();break;case"c6":R[t]=l7();break;case"c7":R[t]=c7();break;case"c8":R[t]=d7();break;case"c9":R[t]=f7();break;case"ca":R[t]=m7();break;case"cb":R[t]=y7();break;case"cc":R[t]=w7();break;case"cd":R[t]=C7();break;case"ce":R[t]=T7();break;case"cf":R[t]=D7();break;case"d0":R[t]=_7();break;case"d1":R[t]=R7();break;case"d2":R[t]=I7();break;case"d3":R[t]=F7();break;case"d4":R[t]=M7();break;case"d5":R[t]=N7();break;case"d6":R[t]=q7();break;case"d7":R[t]=Y7();break;case"f9":R[t]=Z7();break;case"fa":R[t]=$7();break;case"fb":R[t]=U7();break;case"fc":R[t]=K7();break;case"fd":R[t]=Q7();break;case"fe":R[t]=e9();break;case"ff":R[t]=i9();break;default:return""}return R[t][i]}function GTe(n){return(n+256).toString(16).substr(-2)}function KTe(n){for(var e,t,i,r,o,s,a;Array.isArray(n);)n=n[0];switch(n.length){case 1:return bo(n);case 2:return e=bo(n.substr(0,1)),t=bo(n.substr(1,1)),o=(e&3)<<6|t&63,s=(e&28)>>2,s<<8|o;case 3:return e=bo(n.substr(0,1)),t=bo(n.substr(1,1)),i=bo(n.substr(2,1)),o=(t&3)<<6|i&63,s=(e&15)<<4|(t&60)>>2,s<<8|o;default:return e=bo(n.substr(0,1)),t=bo(n.substr(1,1)),i=bo(n.substr(2,1)),r=bo(n.substr(3,1)),o=(i&3)<<6|r&63,s=(t&15)<<4|(i&60)>>2,a=(e&7)<<5|(t&48)>>4,a<<16|s<<8|o}}function bo(n){var e=n+"",t=e.charCodeAt(0);if(55296<=t&&t<=56319){var i=t;if(e.length===1)return t;var r=e.charCodeAt(1);return(i-55296)*1024+(r-56320)+65536}return 56320<=t&&t<=57343,t}});var o9=P(()=>{"use strict"});async function l9(n,e,t,i=""){if(e=="vim")return(await n.eval(t)).toString();if(e=="shell"){let s=await(0,a9.promisify)(s9.exec)(t);return s.stdout.replace(/\s*$/,"")||s.stderr}let r=[`snip._reset("${Bf(i)}")`];return r.push(...t.split(/\r?\n/).map(s=>s.replace(/\t/g," "))),await wh(n,r),(await n.call("pyxeval","snip.rv")).toString()}function Uw(n){let{range:e,regex:t,line:i}=n,r=[];if(t&&e!=null){let o=i.slice(e.start.character,e.end.character);r.push(`pattern = re.compile("${Bf(t)}")`),r.push(`match = pattern.search("${Bf(o)}")`)}else r.push("match = None");return r.join(`
`)}function u9(n){let{range:e,context:t,line:i}=n,r=["import re, os, vim, string, random",`path = vim.eval('expand("%:p")') or ""`,"fn = os.path.basename(path)"];t?(r.push("snip = ContextSnippet()"),r.push(`context = ${t}`)):r.push("context = True");let o=`(${e.start.line},${Buffer.byteLength(i.slice(0,e.start.character))})`,s=`(${e.start.line},${Buffer.byteLength(i.slice(0,e.end.character))})`,a=i.match(/^\s*/)[0];return r.push(`snip = SnippetUtil("${Bf(a)}", ${o}, ${s}, context)`),r}async function wh(n,e){try{await n.command(`pyx ${QTe(e.join(`
`))}`)}catch(t){let i=new Error(t instanceof Error?t.message:t.toString());throw i.stack=`Error on execute python code:
${e.join(`
`)}
`+(t instanceof Error?t.stack:t),i}}function Yf(n){let e=Object.keys(n),t=e.length?Math.max.apply(null,e.map(r=>Number(r))):0,i=new Array(t).fill('""');for(let[r,o]of Object.entries(n))i[r]=`"${Bf(o)}"`;return`t = (${i.join(",")},)`}function QTe(n,e=!1){if(!zTe&&e===!1)return n;let t=["import traceback, vim","vim.vars['errmsg'] = ''","try:"];return t.push(...n.split(`
`).map(i=>" "+i)),t.push("except Exception as e:"),t.push(" vim.vars['errmsg'] = traceback.format_exc()"),t.join(`
`)}function Bf(n){return n.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\t/g,"\\t").replace(/\n/g,"\\n")}function c9(n){if(n.indexOf("\\z")!==-1)throw new Error("pattern \\z not supported");if(n.indexOf("(?s)")!==-1)throw new Error("pattern (?s) not supported");if(n.indexOf("(?x)")!==-1)throw new Error("pattern (?x) not supported");if(n.indexOf(`
`)!==-1)throw new Error("pattern \\n not supported");if(eke.test(n))throw new Error("pattern (?id/name)yes-pattern|no-pattern not supported");return n.replace(rke,(e,t)=>e=="\\A"?"^":e.startsWith("(?#")?"":e.startsWith("(?P<")?"(?"+e.slice(3):e.startsWith("(?P=")?`\\k<${t}>`:"")}var s9,a9,TQe,zTe,VTe,eke,tke,ike,nke,rke,yP=P(()=>{"use strict";s9=require("child_process"),a9=require("util"),TQe=Y()("snippets-eval"),zTe=process.env.VIM_NODE_RPC=="1";VTe=/\\A/,eke=/\(\?\(\w+\).+\|/,tke=/\(\?#.*?\)/,ike=/\(\?P<\w+>.*?\)/,nke=/\(\?P=(\w+)\)/,rke=new RegExp(`${tke.source}|${VTe.source}|${ike.source}|${nke.source}`,"g")});function h9(n,e){let t=[...n];for(;t.length>0;){let i=t.shift();if(!e(i))break;t.unshift(...i.children)}}function lke(n,e=[]){let t="",i=n.length,r=0,o=!1,s=!1;for(;r<i;){let a=n[r];if(a.charCodeAt(0)===92&&!e.includes(r)){let l=n[r+1];if(ake.includes(l)){r++;continue}if(l=="u"||l=="l"){let u=n[r+2];u&&(t=t+(l=="u"?u.toUpperCase():u.toLowerCase())),r=r+3;continue}if(l=="U"||l=="L"){l=="U"?o=!0:s=!0,r=r+2;continue}if(l=="E"){o=!1,s=!1,r=r+2;continue}if(l=="n"){t+=`
`,r=r+2;continue}if(l=="t"){t+=" ",r=r+2;continue}}o?a=a.toUpperCase():s&&(a=a.toLowerCase()),t+=a,r++}return t}var d9,oke,ske,Nr,vP,as,vt,ss,wP,rt,Wf,Gw,Zf,hr,yo,Jf,Pa,ake,Kw=P(()=>{"use strict";d9=S(r9());na();o9();Fe();yP();oke=Y()("snippets-parser"),ske=["d","g","i","m","s","u","y"],Nr=class{static isDigitCharacter(e){return e>=48&&e<=57}static isVariableCharacter(e){return e===95||e>=97&&e<=122||e>=65&&e<=90}constructor(){this.text("")}text(e){this.value=e,this.pos=0}tokenText(e){return this.value.substr(e.pos,e.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};let e=this.pos,t=0,i=this.value.charCodeAt(e),r;if(r=Nr._table[i],typeof r=="number")return this.pos+=1,{type:r,pos:e,len:1};if(Nr.isDigitCharacter(i)){r=8;do t+=1,i=this.value.charCodeAt(e+t);while(Nr.isDigitCharacter(i));return this.pos+=t,{type:r,pos:e,len:t}}if(Nr.isVariableCharacter(i)){r=9;do i=this.value.charCodeAt(e+ ++t);while(Nr.isVariableCharacter(i)||Nr.isDigitCharacter(i));return this.pos+=t,{type:r,pos:e,len:t}}r=10;do t+=1,i=this.value.charCodeAt(e+t);while(!isNaN(i)&&typeof Nr._table[i]>"u"&&!Nr.isDigitCharacter(i)&&!Nr.isVariableCharacter(i));return this.pos+=t,{type:r,pos:e,len:t}}},vP=Nr;vP._table={[36]:0,[58]:1,[44]:2,[123]:3,[125]:4,[92]:5,[47]:6,[124]:7,[43]:11,[45]:12,[63]:13,[40]:15,[41]:16,[96]:17,[33]:18};as=class{constructor(){this._children=[]}appendChild(e){return e instanceof vt&&this._children[this._children.length-1]instanceof vt?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}setOnlyChild(e){e.parent=this,this._children=[e]}replaceChildren(e){for(let t of e)t.parent=this;this._children=e}get children(){return this._children}get snippet(){let e=this;for(;;){if(!e)return;if(e instanceof Jf)return e;e=e.parent}}toString(){return this.children.reduce((e,t)=>e+t.toString(),"")}len(){return 0}},vt=class extends as{constructor(e){super();this.value=e}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}toString(){return this.value}toTextmateString(){return vt.escape(this.value)}len(){return this.value.length}clone(){return new vt(this.value)}},ss=class extends as{constructor(e,t,i){super();this.code=e;this.kind=t;this._value="";this._related=[];if(t==="python"){let{_related:r}=this,o,s=/\bt\[(\d+)\]/g;for(;o=s.exec(e),o!=null;){let a=parseInt(o[1],10);r.includes(a)||r.push(a)}}i!==void 0&&(this._value=i)}get related(){return this._related}update(e){if(this.kind!=="python")return;let t=new Set;this.code=this.code.replace(/\bt\[(\d+)\]/g,(i,r)=>{let o=Number(r),s=e.has(o)?e.get(o):o;return t.add(s),`t[${s}]`}),this._related=Array.from(t)}get index(){if(this.parent instanceof rt)return this.parent.index}async resolve(e){if(!this.code.length)return;let t=await l9(e,this.kind,this.code,this._value);t!=null&&(this._value=t)}len(){return this._value.length}toString(){return this._value}get value(){return this._value}toTextmateString(){let e="";return this.kind=="python"?e="!p ":this.kind=="shell"?e="":this.kind=="vim"&&(e="!v "),"`"+e+this.code+"`"}clone(){return new ss(this.code,this.kind,this.value)}},wP=class extends as{},rt=class extends wP{constructor(e){super();this.index=e;this.primary=!1}get isFinalTabstop(){return this.index===0}get choice(){return this._children.length===1&&this._children[0]instanceof Wf?this._children[0]:void 0}toTextmateString(){let e="";return this.transform&&(e=this.transform.toTextmateString()),this.children.length===0&&!this.transform?`$${this.index}`:this.children.length===0?`\${${this.index}${e}}`:this.choice?`\${${this.index}|${this.choice.toTextmateString()}|${e}}`:`\${${this.index}:${this.children.map(t=>t.toTextmateString()).join("")}${e}}`}clone(){let e=new rt(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}},Wf=class extends as{constructor(){super(...arguments);this.options=[]}appendChild(e){return e instanceof vt&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}toTextmateString(){return this.options.map(e=>e.value.replace(/\||,/g,"\\$&")).join(",")}len(){return this.options[0].len()}clone(){let e=new Wf;for(let t of this.options)e.appendChild(t);return e}},Gw=class extends as{constructor(){super(...arguments);this.ascii=!1;this.ultisnip=!1}resolve(e){let t=!1,i=e.replace(this.regexp,(...r)=>(t=!0,this._replace(r.slice(0,-2))));return!t&&this._children.some(r=>r instanceof hr&&Boolean(r.elseValue))&&(i=this._replace([])),i}_replace(e){let t="",i=[];for(let r of this._children)if(r instanceof hr){let o=r.resolve(e[r.index]||"");if(this.ultisnip&&o.indexOf("\\")!==-1){let s=t.length;i.push(...tq(o,"\\").map(a=>a+s))}t+=o}else r instanceof Zf?t+=r.resolve(e[r.index]):t+=r.toString();return this.ascii&&(t=(0,d9.default)(t)),this.ultisnip?lke(t,i):t}toString(){return""}toTextmateString(){return`/${this.regexp.source}/${this.children.map(e=>e.toTextmateString())}/${(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")}`}clone(){let e=new Gw;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map(t=>t.clone()),e}},Zf=class extends as{constructor(e,t,i){super();this.index=e;this.ifValue=t;this.elseValue=i}resolve(e){return e?this.ifValue:this.elseValue}toTextmateString(){return"(?"+this.index+":"+this.ifValue+(this.elseValue?":"+this.elseValue:"")+")"}clone(){return new Zf(this.index,this.ifValue,this.elseValue)}},hr=class extends as{constructor(e,t,i,r){super();this.index=e;this.shorthandName=t;this.ifValue=i;this.elseValue=r}resolve(e){return this.shorthandName==="upcase"?e?e.toLocaleUpperCase():"":this.shorthandName==="downcase"?e?e.toLocaleLowerCase():"":this.shorthandName==="capitalize"?e?e[0].toLocaleUpperCase()+e.substr(1):"":this.shorthandName==="pascalcase"?e?this._toPascalCase(e):"":Boolean(e)&&typeof this.ifValue=="string"?this.ifValue:!e&&typeof this.elseValue=="string"?this.elseValue:e||""}_toPascalCase(e){let t=e.match(/[a-z]+/gi);return t?t.map(i=>i.charAt(0).toUpperCase()+i.substr(1).toLowerCase()).join(""):e}toTextmateString(){let e="${";return e+=this.index,this.shorthandName?e+=`:/${this.shorthandName}`:this.ifValue&&this.elseValue?e+=`:?${this.ifValue}:${this.elseValue}`:this.ifValue?e+=`:+${this.ifValue}`:this.elseValue&&(e+=`:-${this.elseValue}`),e+="}",e}clone(){return new hr(this.index,this.shorthandName,this.ifValue,this.elseValue)}},yo=class extends wP{constructor(e,t){super();this.name=e;this._resolved=!1;typeof t=="boolean"&&(this._resolved=t)}get resolved(){return this._resolved}async resolve(e){let t=await e.resolve(this);if(this._resolved=!0,t&&t.includes(`
`)){let i="";this.snippet.walk(l=>{if(l==this)return!1;if(l instanceof vt){let u=l.toString().split(/\r?\n/);i=u[u.length-1].match(/^\s*/)[0]}return!0});let r=t.split(`
`),o=r.filter(l=>l.length>0).map(l=>l.match(/^\s*/)[0]),s=o.length==0?"":o.reduce((l,u)=>l.length<u.length?l:u);t=r.map((l,u)=>u==0||l.length==0||!l.startsWith(s)?l:i+l.slice(s.length)).join(`
`)}return this.transform&&(t=this.transform.resolve(t||"")),t!==void 0?(this._children=[new vt(t)],!0):!1}toTextmateString(){let e="";return this.transform&&(e=this.transform.toTextmateString()),this.children.length===0?`\${${this.name}${e}}`:`\${${this.name}:${this.children.map(t=>t.toTextmateString()).join("")}${e}}`}clone(){let e=new yo(this.name,this.resolved);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}};Jf=class extends as{constructor(e){super();this.ultisnip=e===!0}get hasPython(){return this.ultisnip?this.pyBlocks.length>0:!1}get hasCodeBlock(){if(!this.ultisnip)return!1;let{pyBlocks:e,otherBlocks:t}=this;return e.length>0||t.length>0}get values(){if(this._values)return this._values;let e={},t=0;this.placeholders.forEach(i=>{t=Math.max(i.index,t),i.transform==null&&(i.primary||e[i.index]===void 0)&&(e[i.index]=i.toString())});for(let i=0;i<=t;i++)e[i]===void 0&&(e[i]="");return this._values=e,e}get orderedPyIndexBlocks(){let e=[],t=this.pyBlocks.filter(s=>typeof s.index=="number");if(t.length==0)return e;let i=t.map(s=>s.index),r=[],o=s=>{let{related:a}=s;return a.length==0||a.every(l=>!i.includes(l)||r.includes(l))?(r.push(s.index),e.push(s),!0):!1};for(;t.length>0;){let s=!1;for(let a of t)o(a)&&(s=!0);if(!s)break;t=t.filter(a=>!r.includes(a.index))}return e}async evalCodeBlocks(e,t){let{pyBlocks:i,otherBlocks:r}=this;if(await Promise.all(r.map(o=>{let s=o.value;return o.resolve(e).then(()=>{o.parent instanceof rt&&s!==o.value&&this.onPlaceholderUpdate(o.parent)})})),i.length){let o=Yf(this.values);await wh(e,[...t,o]);for(let a of i){let l=a.value;await a.resolve(e),l!==a.value&&a.parent instanceof rt&&(this.onPlaceholderUpdate(a.parent),await wh(e,[Yf(this.values)]))}for(let a of this.orderedPyIndexBlocks)await this.updatePyIndexBlock(e,a);let s=i.filter(a=>a.index===void 0&&a.related.length>0);for(let a of s)await a.resolve(e)}}async updatePythonCodes(e,t){let i;if(t instanceof rt)i=t.index;else for(;t.parent;){if(t instanceof rt){i=t.index;break}t=t.parent}if(i===void 0)return;let r=this.getDependentPyIndexBlocks(i);await wh(e,[Yf(this.values)]);for(let s of r)await this.updatePyIndexBlock(e,s);let o=this.pyBlocks.filter(s=>s.index===void 0&&s.related.length>0);for(let s of o)await s.resolve(e)}getDependentPyIndexBlocks(e){let t=[],i=[],r=this.pyBlocks.filter(s=>typeof s.index=="number"),o=s=>{let a=r.filter(l=>!i.includes(l.index)&&l.related.includes(s));a.length>0&&(t.push(...a),a.forEach(l=>{o(l.index)}))};return o(e),t}async updatePyIndexBlock(e,t){let i=t.value;await t.resolve(e),i!==t.value&&(t.parent instanceof rt&&this.onPlaceholderUpdate(t.parent),await wh(e,[Yf(this.values)]))}get placeholderInfo(){if(!this._placeholders){let e=[],t=[],i=[],r=[];this.walk(o=>{if(o instanceof rt)r.push(o);else if(o instanceof yo){let s=o.name.charCodeAt(0);(s<65||s>90)&&e.push(o)}else o instanceof ss&&(o.kind==="python"?t.push(o):i.push(o));return!0}),this._placeholders={placeholders:r,pyBlocks:t,otherBlocks:i,variables:e}}return this._placeholders}get variables(){return this.placeholderInfo.variables}get placeholders(){return this.placeholderInfo.placeholders}get pyBlocks(){return this.placeholderInfo.pyBlocks}get otherBlocks(){return this.placeholderInfo.otherBlocks}get maxIndexNumber(){let{placeholders:e}=this;return e.reduce((t,i)=>Math.max(t,i.index),0)}get first(){var o,s;let{placeholders:e,variables:t}=this,[i,r]=LW(e.filter(a=>!a.transform),a=>a.index!==0);if(i.length){let a=Math.min.apply(null,i.map(u=>u.index)),l=i.filter(u=>u.index==a);return(o=l.find(u=>u.primary))!=null?o:l[0]}return t.length?t[0]:(s=r.find(a=>a.primary))!=null?s:r[0]}insertSnippet(e,t,i,r){let o=t instanceof rt?t.index:this.maxIndexNumber+1,[s,a]=i,l=r?Uw(r):void 0,u=new Pa(!!r,l).parse(e,!0),c=u.maxIndexNumber+1,h=new Map;for(let p of u.placeholders){let b=p.index;p.isFinalTabstop?p.index=c+o:p.index=p.index+o,h.set(b,p.index)}r&&u.pyBlocks.forEach(p=>{p.update(h)});let d=new Map;this.walk(p=>{if(p instanceof rt&&p.index>o){let b=p.index;p.index=p.index+c,d.set(b,p.index)}return!0}),this.hasPython&&this.walk(p=>(p instanceof ss&&p.update(d),!0));let g=u.first,f=u.children.slice();return s&&f.unshift(new vt(s)),a&&f.push(new vt(a)),this.replace(t,f),g}async update(e,t,i){this.resetMarker(t,i),this.hasPython&&await this.updatePythonCodes(e,t)}deleteText(e,t){let i=0,r,o=e+t,s=0;if(this.walk(d=>{let g=d.len();return d instanceof vt&&e>=i&&i+g>=o?(r=d,s=e-i,!1):(i+=g,!0)}),!r)return!1;let a=r.parent,l=r.value,u=l.slice(0,s)+l.slice(s+t),c=a.children.slice(),h=c.indexOf(r);return c.splice(h,1,new vt(u)),a.replaceChildren(c),!0}resetMarker(e,t){let i;e instanceof rt?i=this.placeholders.filter(r=>r.index==e.index):i=this.variables.filter(r=>r.name==e.name);for(let r of i){let o=r.transform?r.transform.resolve(t):t;r.setOnlyChild(new vt(o||""))}this.synchronizeParents(i),this.reset()}onPlaceholderUpdate(e){let t=e.toString(),i;e instanceof rt?(this.values[e.index]=t,i=this.placeholders.filter(r=>r.index==e.index)):i=this.variables.filter(r=>r.name==e.name);for(let r of i){if(r===e)continue;let o=r.transform?r.transform.resolve(t):t;r.setOnlyChild(new vt(o||""))}this.synchronizeParents(i)}synchronizeParents(e){let t=[];e.forEach(i=>{let r=i.parent;r instanceof rt&&!t.includes(r)&&t.push(r)}),t.forEach(i=>{this.onPlaceholderUpdate(i)})}offset(e){let t=0,i=!1;return this.walk(r=>r===e?(i=!0,!1):(t+=r.len(),!0)),i?t:-1}fullLen(e){let t=0;return h9([e],i=>(t+=i.len(),!0)),t}getTextBefore(e,t){let i="",r=o=>{let s=o.parent;if(!s)return;let a="";for(let l of s.children){if(l===o)break;a=a+l.toString()}i=a+i,s!=t&&r(s)};return r(e),i}enclosingPlaceholders(e){let t=[],{parent:i}=e;for(;i;)i instanceof rt&&t.push(i),i=i.parent;return t}async resolveVariables(e){let t=[];this.walk(i=>(i instanceof yo&&!i.resolved&&t.push(i),!0)),t.length&&(await Promise.all(t.map(i=>i.resolve(e))),this.synchronizeParents(t))}appendChild(e){return this.reset(),super.appendChild(e)}replace(e,t){e.replaceChildren(t),(e instanceof rt||e instanceof yo)&&this.onPlaceholderUpdate(e),this.reset()}reset(){this._placeholders=void 0,this._values=void 0}toTextmateString(){return this.children.reduce((e,t)=>e+t.toTextmateString(),"")}clone(){let e=new Jf(this.ultisnip);return e._children=this.children.map(t=>t.clone()),e}walk(e){h9(this.children,e)}},Pa=class{constructor(e,t){this.ultisnip=e;this.matchCode=t;this._scanner=new vP}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}static isPlainText(e){let t=new Pa().parse(e.replace(/\$0$/,""),!1);return t.children.length==1&&t.children[0]instanceof vt}text(e){return this.parse(e,!1).toString()}parse(e,t){this._scanner.text(e),this._token=this._scanner.next();let i=new Jf(this.ultisnip);for(;this._parse(i););let r=new Map,o=[],s=[],a=!1;i.walk(c=>(c instanceof rt&&(c.index==0&&(a=!0),c.children.some(h=>h instanceof rt)?s.push(c):!r.has(c.index)&&c.children.length>0?(c.primary=!0,r.set(c.index,c.toString())):o.push(c)),!0));let l=s.map(c=>c.index);for(let c of o)if(r.has(c.index)){let h=r.get(c.index),d=new vt(c.transform?c.transform.resolve(h):h);c.setOnlyChild(d)}else if(!l.includes(c.index))if(c.transform){let h=new vt(c.transform.resolve(""));c.setOnlyChild(h)}else c.primary=!0,r.set(c.index,"");let u=()=>{let c=new Set;for(let h of s)if(h.children.every(d=>!(d instanceof rt)||r.has(d.index))){let d=h.toString();r.set(h.index,d);for(let g of o.filter(f=>f.index==h.index)){let f=new vt(g.transform?g.transform.resolve(d):d);g.setOnlyChild(f)}c.add(h.index)}s=s.filter(h=>!c.has(h.index)),!(s.length==0||!c.size)&&u()};return u(),!a&&t&&i.appendChild(new rt(0)),i}_accept(e,t){if(e===void 0||this._token.type===e){let i=t?this._scanner.tokenText(this._token):!0;return this._token=this._scanner.next(),i}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e,t=!1){if(this._token.type===14)return!1;let i=this._token,r;for(;this._token.type!==e||t&&(r==null?void 0:r.type)===5;)if(t&&(r=this._token),this._token=this._scanner.next(),this._token.type===14)return!1;let o=this._scanner.value.substring(i.pos,this._token.pos);return this._token=this._scanner.next(),o}_parse(e){return this._parseEscaped(e)||this._parseCodeBlock(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)}_parseEscaped(e){let t;return(t=this._accept(5,!0))?(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||this.ultisnip&&this._accept(3,!0)||this.ultisnip&&this._accept(17,!0)||t,e.appendChild(new vt(t)),!0):!1}_parseTabstopOrVariableName(e){let t,i=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new rt(Number(t)):new yo(t)),!0):this._backTo(i)}_parseComplexPlaceholder(e){let t,i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(i);let o=new rt(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(o),!0;if(!this._parse(o))return e.appendChild(new vt("${"+t+":")),o.children.forEach(e.appendChild,e),!0}else if(o.index>0&&this._accept(7)){let s=new Wf;for(;;){if(this._parseChoiceElement(s)){if(this._accept(2))continue;if(this._accept(7)&&(o.appendChild(s),this._accept(4)))return e.appendChild(o),!0}return this._backTo(i),!1}}else return this._accept(6)?this._parseTransform(o)?(e.appendChild(o),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(o),!0):this._backTo(i)}_parseChoiceElement(e){let t=this._token,i=[];for(;!(this._token.type===2||this._token.type===7);){let r;if((r=this._accept(5,!0))?r=this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||r:r=this._accept(void 0,!0),!r)return this._backTo(t),!1;i.push(r)}return i.length===0?(this._backTo(t),!1):(e.appendChild(new vt(i.join(""))),!0)}_parseComplexVariable(e){let t,i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(i);let o=new yo(t);if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(o),!0;if(!this._parse(o))return e.appendChild(new vt("${"+t+":")),o.children.forEach(e.appendChild,e),!0}else return this._accept(6)?this._parseTransform(o)?(e.appendChild(o),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(o),!0):this._backTo(i)}_parseTransform(e){let t=new Gw;t.ultisnip=this.ultisnip===!0;let i="",r="";for(;!this._accept(6);){let s;if(s=this._accept(5,!0)){s=this._accept(6,!0)||s,i+=s;continue}if(this._token.type!==14){i+=this._accept(void 0,!0);continue}return!1}for(;!this._accept(6);){let s;if(s=this._accept(5,!0)){s=this._accept(6,!0)||s,t.appendChild(new vt(s));continue}if(!(this._parseFormatString(t)||this._parseConditionString(t)||this._parseAnything(t)))return!1}let o=!1;for(;!this._accept(4);){if(this._token.type!==14){let s=this._accept(void 0,!0);s=="a"?o=!0:(ske.includes(s)||oke.error(`Unknown regex option: ${s}`),r+=s);continue}return!1}try{o&&(t.ascii=!0),this.ultisnip&&(i=c9(i)),t.regexp=new RegExp(i,r)}catch{return!1}return e.transform=t,!0}_parseConditionString(e){if(!this.ultisnip)return!1;let t=this._token;if(!this._accept(15))return!1;if(!this._accept(13))return this._backTo(t),!1;let i=this._accept(8,!0);if(!i)return this._backTo(t),!1;if(!this._accept(1))return this._backTo(t),!1;let r=this._until(16,!0);if(r){let o=0;for(;o<r.length&&!(r[o]==":"&&r[o-1]!="\\");)o++;let s=r.slice(0,o),a=r.slice(o+1);return e.appendChild(new Zf(Number(i),s,a)),!0}return this._backTo(t),!1}_parseFormatString(e){let t=this._token;if(!this._accept(0))return!1;let i=!1;this._accept(3)&&(i=!0);let r=this._accept(8,!0);if(r)if(i){if(this._accept(4))return e.appendChild(new hr(Number(r))),!0;if(!this._accept(1))return this._backTo(t),!1}else return e.appendChild(new hr(Number(r))),!0;else return this._backTo(t),!1;if(this.ultisnip)return this._backTo(t),!1;if(this._accept(6)){let o=this._accept(9,!0);return!o||!this._accept(4)?(this._backTo(t),!1):(e.appendChild(new hr(Number(r),o)),!0)}else if(this._accept(11)){let o=this._until(4);if(o)return e.appendChild(new hr(Number(r),void 0,o,void 0)),!0}else if(this._accept(12)){let o=this._until(4);if(o)return e.appendChild(new hr(Number(r),void 0,void 0,o)),!0}else if(this._accept(13)){let o=this._until(1);if(o){let s=this._until(4);if(s)return e.appendChild(new hr(Number(r),void 0,o,s)),!0}}else{let o=this._until(4);if(o)return e.appendChild(new hr(Number(r),void 0,void 0,o)),!0}return this._backTo(t),!1}_parseCodeBlock(e){if(!this.ultisnip)return!1;let t=this._token;if(!this._accept(17))return!1;let i=this._until(17,!0);if(i){if(!i.startsWith("!")){let r=new ss(i.trim(),"shell");return e.appendChild(r),!0}if(i.startsWith("!v")){let r=new ss(i.slice(2).trim(),"vim");return e.appendChild(r),!0}if(i.startsWith("!p")){let r=i.slice(2),o=this.matchCode?this.matchCode+`
`:"";if(r.indexOf(`
`)==-1){let s=new ss(o+r.trim(),"python");e.appendChild(s)}else{let s=r.split(/\r?\n/);s=s.filter(u=>!/^\s*$/.test(u));let a=s[0]?s[0].match(/^\s*/)[0]:"";a.length&&s.every(u=>u.startsWith(a))&&(s=s.map(u=>u.slice(a.length))),a==" "&&s[0].startsWith(a)&&(s[0]=s[0].slice(1));let l=new ss(o+s.join(`
`),"python");e.appendChild(l)}return!0}}return this._backTo(t),!1}_parseAnything(e){if(this._token.type!==14){let t=this._scanner.tokenText(this._token);return e.appendChild(new vt(t)),this._accept(void 0),!0}return!1}},ake=[":","(",")","{","}"]});function xP(n,e){let{range:t,newText:i}=n,r=e.length,o=i.length;if(r===0||o===0)return n;let{start:s,end:a}=t,l=0;for(let d=1;d<=Math.min(o,r)&&i[d-1]===e[d-1];d++)l=d;let u=0,c=Math.min(o-l,r-l);if(c>0)for(let d=1;d<=c&&i[o-d]===e[r-d];d++)u=d;let h=u==0?i.slice(l):i.slice(l,-u);return l>0&&(s=Ri(s,i.slice(0,l))),u>0&&(a=Ri(t.start,e.slice(0,-u))),Ni.TextEdit.replace(Ni.Range.create(s,a),h)}function g9(n,e,t){let i=Ni.Range.create(n,Ri(n,t));return ct(e,i)==0}function f9(n,e,t){var o;if(t.lines.length<n.line)return!1;let r=!0;for(let s=n.line;s>=0;s--){let a=(o=t.lines[s])!=null?o:"";if(s===n.line){let l=e.lines[s].slice(0,n.character);if(!a.startsWith(l)){r=!1;break}}else if(a!==e.lines[s]){r=!1;break}}return r}function p9(n,e,t){let i=e.lines.length;if(t.lines.length<i-n.line)return;let r,o=t.lines.length-i;for(let s=n.line;s<i;s++){let a=t.lines[s+o];if(s==n.line){let l=e.lines[s].slice(n.character);if(l.length&&!a.endsWith(l))break;r=Ni.Position.create(s+o,a.length-l.length)}else if(a!==e.lines[s]){r=void 0;break}}return r}function m9(n,e,t){var a,l;let i=[],r=[],o=n.split(`
`),s=t.start.line-e.start.line;for(let u=0;u<=s;u++){let c=(a=o[u])!=null?a:"";u==s?i.push(u==0?c.substring(0,t.start.character-e.start.character):c.substring(0,t.start.character)):i.push(c)}s=e.end.line-t.end.line;for(let u=0;u<=s;u++){let c=(l=o[t.end.line-e.start.line+u])!=null?l:"";u==0?s==0?r.push(e.end.character==t.end.character?"":c.slice(t.end.character-e.end.character)):r.push(c.substring(t.end.character)):r.push(c)}return[i.join(`
`),r.join(`
`)]}function b9(n,e,t){let i=n.split(/\r?\n/),r=t.insertSpaces?" ".repeat(t.tabSize):" ",o=t.tabSize||2;return i=i.map((s,a)=>{let l=s.match(/^\s*/)[0],u=l,c=l.startsWith(" ");return c&&t.insertSpaces?u=r.repeat(l.length):!c&&!t.insertSpaces&&(u=r.repeat(l.length/o)),(a==0||s.length==0?"":e)+u+s.slice(l.length)}),i.join(`
`)}function y9(n){return!!(/^\s/.test(n)||n.indexOf(`
`)!==-1)}var Ni,HQe,zw,CP=P(()=>{"use strict";Ni=S(q());Sc();bt();ea();yP();Kw();HQe=Y()("snippets-snipet"),zw=class{constructor(e,t,i,r){this.snippetString=e;this.position=t;this.nvim=i;this.resolver=r}async init(e,t=!1){let i=e?Uw(e):void 0,o=new Pa(!!e,i).parse(this.snippetString,!0);this.tmSnippet=o,await this.resolve(e),this.synchronize(),t||(this.nvim.call("coc#compat#del_var",["coc_selected_text"],!0),this.nvim.call("coc#compat#del_var",["coc_last_placeholder"],!0))}async resolve(e){let{snippet:t}=this.tmSnippet,{resolver:i,nvim:r}=this;if(i&&await t.resolveVariables(i),e&&e.noPython!==!0){let o=[];t.hasPython&&(o=u9(e)),await t.evalCodeBlocks(r,o)}}getRanges(e){let t=e.marker;if(e.value.length==0)return[];let r=this._placeholders.filter(l=>l.index==e.index).map(l=>l.range),o=this.tmSnippet.enclosingPlaceholders(t),s,a=t.parent;if(t instanceof rt){let l=t.index;s=this.tmSnippet.placeholders.filter(u=>u.index==l&&u.parent==a)}else{let l=t.name;s=this.tmSnippet.variables.filter(u=>u.name==l&&u.parent==a)}return o.forEach(l=>{let u=this._placeholders.filter(c=>c.index==l.index&&c.marker!==l);if(!!u.length)for(let c of s){let h=this.tmSnippet.getTextBefore(c,l);u.forEach(d=>{if(d.transform)r.push(d.range);else{let g=d.range.start;r.push(Ni.Range.create(Ri(g,h),Ri(g,h+c.toString())))}})}}),r.filter(l=>!Ct(l))}getSortedPlaceholders(e){let t=e?[e]:[],i=this._placeholders.filter(r=>r!==e&&!r.transform);return i.sort((r,o)=>r.primary!==o.primary?r.primary?-1:1:r.index==0||o.index==0?r.index==0?1:-1:r.index-o.index),t.push(...i),t}get hasPython(){return this.tmSnippet.pyBlocks.length>0}resetStartPosition(e){this.position=e,this.synchronize()}get start(){return Object.assign({},this.position)}get range(){return Ni.Range.create(this.position,Ri(this.position,this._text))}get text(){return this._text}get finalCount(){return this._placeholders.filter(e=>e.index==0).length}get placeholders(){return this._placeholders.map(e=>e.marker)}get firstPlaceholder(){let e=0;for(let t of this._placeholders)t.index==0||t.transform||(e==0||t.index<e)&&(e=t.index);return this.getPlaceholder(e)}getPlaceholderByMarker(e){return this._placeholders.find(t=>t.marker===e)}getPlaceholder(e){let t=this._placeholders.filter(r=>r.index==e&&!r.transform),i=t.find(r=>r.primary)||t[0];return i!=null?i:t[0]}getPrevPlaceholder(e){if(e<=1)return;let t=this._placeholders.filter(r=>r.index<e&&r.index!=0&&!r.transform),i;for(;e>1;){e=e-1;let r=t.filter(o=>o.index==e);if(r.length){i=r.find(o=>o.primary)||r[0];break}}return i}getNextPlaceholder(e){let t=this._placeholders.filter(s=>!s.transform),i,r=t.map(s=>s.index),o=Math.max.apply(null,r);for(let s=e+1;s<=o+1;s++){let a=s==o+1?0:s,l=t.filter(u=>u.index==a);if(l.length){i=l.find(u=>u.primary)||l[0];break}}return i}getPlaceholderByRange(e){return this._placeholders.find(t=>Pi(e,t.range))}async insertSnippet(e,t,i,r){if(r){let{start:s,end:a}=e.range;this.nvim.setVar("coc_last_placeholder",{current_text:e.value,start:{line:s.line,col:s.character,character:s.character},end:{line:a.line,col:a.character,character:a.character}},!0)}let o=this.tmSnippet.insertSnippet(t,e.marker,i,r);return await this.resolve(r),this.synchronize(),o}getNewText(e,t){let{before:i,after:r}=e;if(!!t.startsWith(i)&&!(t.length<i.length+r.length)&&!!t.endsWith(r))return r.length?t.slice(i.length,-r.length):t.slice(i.length)}async updatePlaceholder(e,t,i,r){let o=this.position,{marker:s,before:a}=e,l=this.tmSnippet.clone();r.onCancellationRequested(()=>{this.tmSnippet=l,this.synchronize()});let u=Ni.Range.create(o,Ri(o,a));if(await this.tmSnippet.update(this.nvim,s,i),r.isCancellationRequested)return;this.synchronize();let c=this._placeholders.find(d=>d.marker==s),h=c?c.before:a;return{text:this._text,delta:Nb(t,Ni.TextEdit.replace(u,h))}}removeText(e,t){let i=this.tmSnippet.deleteText(e,t);return i&&this.synchronize(),i}synchronize(){let e=this.tmSnippet,{line:t,character:i}=this.position,r=Fn.create("untitled:/1","snippet",0,e.toString()),{placeholders:o,variables:s,maxIndexNumber:a}=e,l=new Map,u=a+1;this._placeholders=[...o,...s].map(c=>{let h=e.offset(c),d=r.positionAt(h),g={line:t+d.line,character:d.line==0?i+d.character:d.character},f;if(c instanceof yo){let w=c.name;l.has(w)?f=l.get(w):(l.set(w,u),f=u,u=u+1)}else f=c.index;let p=c.toString(),b=Ri(d,p);return{index:f,value:p,marker:c,transform:!!c.transform,range:Ni.Range.create(g,Ri(g,p)),before:r.getText(Ni.Range.create(Ni.Position.create(0,0),d)),after:r.getText(Ni.Range.create(b,Ni.Position.create(r.lineCount,0))),primary:c instanceof rt&&c.primary===!0}}),this._text=this.tmSnippet.toString()}}});function $f(n){return n<10?"0"+n:n.toString()}function v9(n){let e,t,i,r=n.split(",");for(let o of r){if(e&&t&&i)break;if(!o.includes(":"))continue;let[s,a]=o.split(":");s.includes("s")?e=a:s.includes("e")?t=a:!i&&s==""&&(i=a)}return{start:e,end:t,single:i}}function cke(n){if(n.endsWith("%s"))return n.slice(0,-2).trim()}var Xf,WQe,Qw,w9=P(()=>{"use strict";Xf=S(require("path"));Ne();we();WQe=Y()("snippets-variable");Qw=class{constructor(e,t){this.nvim=e;this.workspaceFolder=t;this._variableToValue={};let i=new Date,r=i.getFullYear().toString();Object.assign(this._variableToValue,{CURRENT_YEAR:r,CURRENT_YEAR_SHORT:r.slice(-2),CURRENT_MONTH:$f(i.getMonth()+1),CURRENT_DATE:$f(i.getDate()),CURRENT_HOUR:$f(i.getHours()),CURRENT_MINUTE:$f(i.getMinutes()),CURRENT_SECOND:$f(i.getSeconds()),CURRENT_DAY_NAME:i.toLocaleString("en-US",{weekday:"long"}),CURRENT_DAY_NAME_SHORT:i.toLocaleString("en-US",{weekday:"short"}),CURRENT_MONTH_NAME:i.toLocaleString("en-US",{month:"long"}),CURRENT_MONTH_NAME_SHORT:i.toLocaleString("en-US",{month:"short"}),TM_FILENAME:null,TM_FILENAME_BASE:null,TM_DIRECTORY:null,TM_FILEPATH:null,YANK:null,TM_LINE_INDEX:null,TM_LINE_NUMBER:null,TM_CURRENT_LINE:null,TM_CURRENT_WORD:null,TM_SELECTED_TEXT:null,VISUAL:null,CLIPBOARD:null,RELATIVE_FILEPATH:null,RANDOM:null,RANDOM_HEX:null,UUID:null,BLOCK_COMMENT_START:null,BLOCK_COMMENT_END:null,LINE_COMMENT:null,WORKSPACE_NAME:null,WORKSPACE_FOLDER:null})}async resolveValue(e){let{nvim:t}=this;if(["TM_FILENAME","TM_FILENAME_BASE","TM_DIRECTORY","TM_FILEPATH"].includes(e)){let i=await t.eval('expand("%:p")');if(e==="TM_FILENAME")return Xf.default.basename(i);if(e==="TM_FILENAME_BASE")return Xf.default.basename(i,Xf.default.extname(i));if(e==="TM_DIRECTORY")return Xf.default.dirname(i);if(e==="TM_FILEPATH")return i}if(e==="YANK")return await t.call("getreg",['""']);if(e==="TM_LINE_INDEX")return(await t.call("line",["."])-1).toString();if(e==="TM_LINE_NUMBER")return(await t.call("line",["."])).toString();if(e==="TM_CURRENT_LINE")return await t.call("getline",["."]);if(e==="TM_CURRENT_WORD")return await t.eval("expand('<cword>')");if(e==="TM_SELECTED_TEXT"||e=="VISUAL")return await t.eval("get(g:,'coc_selected_text', v:null)");if(e==="CLIPBOARD")return await t.eval("@*");if(e==="RANDOM")return Math.random().toString().slice(-6);if(e==="RANDOM_HEX")return Math.random().toString(16).slice(-6);if(e==="UUID")return se();if(["RELATIVE_FILEPATH","WORKSPACE_NAME","WORKSPACE_FOLDER"].includes(e)){let i=await t.eval('expand("%:p")'),r=this.workspaceFolder.getWorkspaceFolder(M.file(i));if(e==="RELATIVE_FILEPATH")return this.workspaceFolder.getRelativePath(i);if(e==="WORKSPACE_NAME")return r.name;if(e==="WORKSPACE_FOLDER")return M.parse(r.uri).fsPath}if(e==="LINE_COMMENT"){let i=await t.eval("&commentstring"),r=cke(i);if(r)return r;let o=await t.eval("&comments"),{single:s}=v9(o);return s!=null?s:""}if(["BLOCK_COMMENT_START","BLOCK_COMMENT_END"].includes(e)){let i=await t.eval("&comments"),{start:r,end:o}=v9(i);if(e==="BLOCK_COMMENT_START")return r!=null?r:"";if(e==="BLOCK_COMMENT_END")return o!=null?o:""}}async resolve(e){let t=e.name,i=this._variableToValue[t];if(i!=null)return i.toString();if(this._variableToValue.hasOwnProperty(t)){let r=await this.resolveValue(t);return!r&&e.children.length?e.toString():r==null?"":r.toString()}return e.children.length?e.toString():t}}});function hke(n,e){return!!(n.hasChanged||_.pumvisible&&(e.line!=0||e.character!=0))}var Hi,ls,SP,Vw,x9=P(()=>{"use strict";Hi=S(q());he();Qr();Ht();bt();Fe();De();Q();Kw();CP();w9();ls=Y()("snippets-session"),SP="snippets",Vw=class{constructor(e,t,i=!1,r=!1){this.nvim=e;this.document=t;this.enableHighlight=i;this.preferComplete=r;this.mutex=new Qt;this._applying=!1;this._isActive=!1;this._snippet=null;this._onCancelEvent=new Hi.Emitter;this.onCancel=this._onCancelEvent.event;this.disposable=t.onDocumentChange(async o=>{if(this._applying||!this._isActive)return;let s=o.contentChanges;s.length!==0&&await this.synchronize({version:o.textDocument.version,change:s[0]})})}async start(e,t,i=!0,r){var l;let{document:o}=this,s=this.getReplacePlaceholder(t),a=[];if(s){let u=this.snippet.range,c=o.textDocument.getText(u),h=m9(s.value,s.range,t);this.current=await this.snippet.insertSnippet(s,e,h,r);let d=xP({range:u,newText:this.snippet.text},c);a.push(d)}else{let u=new Qw(this.nvim,v.workspaceFolderControl),c=new zw(e,t.start,this.nvim,u);if(await c.init(r),this._snippet=c,this.current=(l=c.firstPlaceholder)==null?void 0:l.marker,a.push(Hi.TextEdit.replace(t,c.text)),e.replace(/\$0$/,"").endsWith(`
`)){let h=o.getline(t.start.line),d=h.slice(t.end.character);if(d.length){let g=t.end.character,f=d.match(/^\s*/)[0].length,p=Hi.Range.create(t.end.line,g,t.end.line,g+f);a.push(Hi.TextEdit.replace(p,h.match(/^\s*/)[0]))}}}if(await this.applyEdits(a),this.textDocument=o.textDocument,this.activate(),i&&this.current){let u=this.snippet.getPlaceholderByMarker(this.current);await this.selectPlaceholder(u,!0)}return this._isActive}async applyEdits(e){this._applying=!0,await this.document.applyEdits(e),this._applying=!1}getReplacePlaceholder(e){if(!this.snippet)return;let t=this.findPlaceholder(e);if(!(!t||t.index==0))return t}activate(){this._isActive||(this._isActive=!0,this.nvim.call("coc#snippet#enable",[this.preferComplete?1:0],!0))}deactivate(){this.cancel(),this._isActive&&(this.disposable.dispose(),this._isActive=!1,this.current=null,this.nvim.call("coc#snippet#disable",[],!0),this.enableHighlight&&this.nvim.call("coc#highlight#clear_highlight",[this.bufnr,SP,0,-1],!0),this._onCancelEvent.fire(void 0),ls.debug(`session ${this.bufnr} cancelled`))}get isActive(){return this._isActive}get bufnr(){return this.document.bufnr}async nextPlaceholder(){await this.forceSynchronize();let e=this.placeholder;if(!e)return;let t=this.snippet.getNextPlaceholder(e.index);t&&await this.selectPlaceholder(t)}async previousPlaceholder(){await this.forceSynchronize();let e=this.placeholder;if(!e)return;let t=this.snippet.getPrevPlaceholder(e.index);t&&await this.selectPlaceholder(t)}async selectCurrentPlaceholder(e=!0){if(await this.forceSynchronize(),!this.snippet)return;let t=this.snippet.getPlaceholderByMarker(this.current);t&&await this.selectPlaceholder(t,e)}async selectPlaceholder(e,t=!0){let{nvim:i,document:r}=this;if(!r||!e)return;let{start:o,end:s}=e.range,a=s.character-o.character,l=V(r.getline(o.line).slice(0,o.character))+1,u=this.current=e.marker;if(u instanceof rt&&u.choice&&u.choice.options.length){let c=u.choice.options.map(h=>h.value);await i.call("coc#snippet#show_choices",[o.line+1,l,a,c]),t&&i.call("coc#util#do_autocmd",["CocJumpPlaceholder"],!0)}else{let c=this.snippet.finalCount;await this.select(e,t),this.highlights(e),e.index==0&&(c==1?(ls.info("Jump to final placeholder, cancelling snippet session"),this.deactivate()):i.call("coc#snippet#disable",[],!0))}}highlights(e,t=!0){if(!this.enableHighlight)return;let i=this.document.buffer;this.nvim.pauseNotification(),i.clearNamespace(SP);let r=this.snippet.getRanges(e);r.length&&i.highlightRanges(SP,"CocSnippetVisual",r),this.nvim.resumeNotification(t,!0)}async select(e,t=!0){let{range:i,value:r}=e,{nvim:o}=this;r.length>0?await o.call("coc#snippet#select",[i.end,r]):await o.call("coc#snippet#move",[i.start]),t&&o.call("coc#util#do_autocmd",["CocJumpPlaceholder"],!0),o.redrawVim()}async checkPosition(){if(!this.isActive)return;let e=await D.getCursorPosition();this.snippet&&ct(e,this.snippet.range)!=0&&(ls.info("Cursor insert out of range, cancelling snippet session"),this.deactivate())}findPlaceholder(e){let{placeholder:t}=this;return t&&Pi(e,t.range)?t:this.snippet.getPlaceholderByRange(e)||null}async synchronize(e){this.cancel(),await this.mutex.use(()=>{let t=this.textDocument?this.textDocument.version:-1;return e&&(this.document.version!=e.version||e.version-t!==1)&&(e=void 0),this._synchronize(e?e.change:void 0)})}async _synchronize(e){let{document:t,textDocument:i}=this;if(!t.attached||!this._isActive)return;let r=Date.now(),o=t.textDocument;if(o.version==i.version||_e(i.lines,o.lines))return;let{range:s,text:a}=this.snippet;e&&!Pi(e.range,s)&&(e=void 0);let l=p9(s.end,i,o);if(!l){ls.info("Content change after snippet, cancel snippet session"),this.deactivate();return}if(!f9(s.start,i,o)){let y=o.getText(Hi.Range.create(Hi.Position.create(0,0),l));if(y.endsWith(a)){let w=o.positionAt(y.length-a.length);this.snippet.resetStartPosition(w),this.textDocument=o,ls.info("Content change before snippet, reset snippet position");return}ls.info("Before and snippet body changed, cancel snippet session"),this.deactivate();return}let c=this.tokenSource=new Hi.CancellationTokenSource,h=await D.getCursorPosition();if(c.token.isCancellationRequested||t.hasChanged)return;let d,g,f=o.getText(Hi.Range.create(s.start,l)),p=this.placeholder;if(e){for(let y of this.snippet.getSortedPlaceholders(p))if(Pi(e.range,y.range)){d=y,g=this.snippet.getNewText(y,f);break}if(!d&&e.text.length==0&&!Ct(e.range)&&TY(e.range)){let y=e.range.end.character-e.range.start.character,w=o.getText(Hi.Range.create(s.start,e.range.start)).length;if(this.snippet.removeText(w,y)){this.textDocument=o;return}}}else for(let y of this.snippet.getSortedPlaceholders(p))if(!(xe(h,y.range.start)<0)&&(g=this.snippet.getNewText(y,f),g!=null&&g9(y.range.start,h,g))){d=y;break}if(!d&&f.endsWith(a)){let y=Ri(s.start,f.slice(0,-a.length));this.snippet.resetStartPosition(y),this.textDocument=o,ls.info("Content change before snippet, reset snippet position");return}if(!d){ls.info("Unable to find changed placeholder, cancel snippet session"),this.deactivate();return}let b=await this.snippet.updatePlaceholder(d,h,g,c.token);if(!(b==null||c.token.isCancellationRequested)){if(hke(t,b.delta)){c.cancel(),c.dispose();return}if(c.dispose(),this.current=d.marker,b.text!==f){let y=xP({range:Hi.Range.create(this.snippet.start,l),newText:b.text},f);await this.applyEdits([y]);let{delta:w}=b;(w.line!=0||w.character!=0)&&this.nvim.call("coc#cursor#move_to",[h.line+w.line,h.character+w.character],!0),this.highlights(d,!1),this.nvim.redrawVim()}else this.highlights(d);ls.debug("update cost:",Date.now()-r,b.delta),this.textDocument=this.document.textDocument}}async forceSynchronize(){this.cancel(),await this.document.patchChange(),(await this.mutex.acquire())()}cancel(){this.tokenSource&&(this.tokenSource.cancel(),this.tokenSource.dispose(),this.tokenSource=null)}get placeholder(){if(!(!this.snippet||!this.current))return this.snippet.getPlaceholderByMarker(this.current)}get snippet(){return this._snippet}static async resolveSnippet(e,t,i){let r=await D.getCursorPosition(),o=await e.line,s;i&&(s=Object.assign({range:Hi.Range.create(r,r),line:o},i));let a=new Qw(e,v.workspaceFolderControl),l=new zw(t,r,e,a);return await l.init(s,!0),l.text}}});var Hr,TP=P(()=>{"use strict";Hr=class{constructor(e){this._tabstop=1;this.value=e||""}static isSnippetString(e){return e instanceof Hr?!0:e?typeof e.value=="string":!1}static _escape(e){return e.replace(/\$|}|\\/g,"\\$&")}appendText(e){return this.value+=Hr._escape(e),this}appendTabstop(e=this._tabstop++){return this.value+="$",this.value+=e,this}appendPlaceholder(e,t=this._tabstop++){if(typeof e=="function"){let i=new Hr;i._tabstop=this._tabstop,e(i),this._tabstop=i._tabstop,e=i.value}else e=Hr._escape(e);return this.value+="${",this.value+=t,this.value+=":",this.value+=e,this.value+="}",this}appendChoice(e,t=this._tabstop++){let i=e.map(r=>r.replace(/\$|}|\\|,/g,"\\$&")).join(",");return this.value+="${",this.value+=t,this.value+="|",this.value+=i,this.value+="|}",this}appendVariable(e,t){if(typeof t=="function"){let i=new Hr;i._tabstop=this._tabstop,t(i),this._tabstop=i._tabstop,t=i.value}else typeof t=="string"&&(t=t.replace(/\$|}/g,"\\$&"));return this.value+="${",this.value+=e,t&&(this.value+=":",this.value+=t),this.value+="}",this}}});var Gl,b4e,C9,Xt,Kl=P(()=>{"use strict";Gl=S(q());he();Ht();bt();De();Q();x9();CP();TP();b4e=Y()("snippets-manager"),C9=class{constructor(){this.sessionMap=new Map;this.disposables=[];_.on("InsertCharPre",()=>{var e;(e=this.session)==null||e.cancel()},null,this.disposables),D.onDidChangeActiveTextEditor(e=>{if(!this.statusItem)return;this.getSession(e.document.bufnr)?this.statusItem.show():this.statusItem.hide()},null,this.disposables),_.on("InsertEnter",async e=>{let t=this.getSession(e);t&&await t.checkPosition()},null,this.disposables),v.onDidCloseTextDocument(e=>{let t=this.getSession(e.bufnr);t&&t.deactivate()},null,this.disposables),v.onDidChangeConfiguration(e=>{(e.affectsConfiguration("suggest")||e.affectsConfiguration("coc.preferences"))&&this.init()},null,this.disposables)}get nvim(){return v.nvim}init(){this.statusItem||(this.statusItem=D.createStatusBarItem(0));let e=v.getConfiguration("coc.preferences");this.statusItem.text=e.get("snippetStatusText","SNIP"),this.highlight=e.get("snippetHighlight",!1);let t=v.getConfiguration("suggest");this.preferComplete=t.get("preferCompleteThanJumpPlaceholder",!1)}async insertSnippet(e,t=!0,i,r,o){let{bufnr:s}=v,a=v.getAttachedDocument(s);if(i&&!Pi(i,Gl.Range.create(0,0,a.lineCount+1,0)))throw new Error("Unable to insert snippet, invalid range.");let l;if(_.pumvisible&&this.nvim.call("coc#_cancel",[],!0),!i){let f=await D.getCursorPosition();i=Gl.Range.create(f,f)}let u=a.getline(i.start.line),c=Hr.isSnippetString(e)?e.value:e,h=await this.normalizeInsertText(a.uri,c,u,r),d=this.getSession(s);d&&d.cancel(),o!=null&&(l=Object.assign({range:_r(i),line:u},o),!Ct(i)&&h.includes("`!p")&&(this.nvim.call("coc#cursor#move_to",[i.start.line,i.start.character],!0),await a.applyEdits([{range:i,newText:""}]),i.end=Gl.Position.create(i.start.line,i.start.character))),d?(await d.forceSynchronize(),d=this.getSession(s)):await a.patchChange(!0),d||(d=new Vw(this.nvim,a,this.highlight,this.preferComplete),d.onCancel(()=>{this.sessionMap.delete(s),this.statusItem.hide()}));let g=await d.start(h,i,t,l);return g?(this.statusItem.show(),this.sessionMap.set(s,d)):(this.statusItem.hide(),this.sessionMap.delete(s)),g}async selectCurrentPlaceholder(e=!0){let{session:t}=this;if(t)return await t.selectCurrentPlaceholder(e)}async nextPlaceholder(){let{session:e}=this;return e?await e.nextPlaceholder():(this.nvim.call("coc#snippet#disable",[],!0),this.statusItem.hide()),""}async previousPlaceholder(){let{session:e}=this;return e?await e.previousPlaceholder():(this.nvim.call("coc#snippet#disable",[],!0),this.statusItem.hide()),""}cancel(){let e=this.getSession(v.bufnr);if(e)return e.deactivate();this.nvim.call("coc#snippet#disable",[],!0),this.statusItem&&this.statusItem.hide()}get session(){return this.getSession(v.bufnr)}getSession(e){return this.sessionMap.get(e)}jumpable(){let{session:e}=this;return e?e.placeholder!=null&&e.placeholder.index!=0:!1}async editsInsideSnippet(e){let t=this.getSession(v.bufnr);if(!t||!t.snippet)return!1;await t.forceSynchronize();let i=t.snippet.range;return!!e.some(r=>hb(r.range,i))}async resolveSnippet(e,t){if(t){let i=this.getSession(v.bufnr);t.noPython=i!=null&&i.snippet.hasPython}return await Vw.resolveSnippet(this.nvim,e,t)}async normalizeInsertText(e,t,i,r){let o="";if(r===Gl.InsertTextMode.asIs||!y9(t))o=t;else{let s=i.match(/^\s*/)[0],a=D.activeTextEditor?D.activeTextEditor.options:await v.getFormatOptions(e);o=b9(t,s,a)}return o}dispose(){this.cancel();for(let e of this.disposables)e.dispose()}},Xt=new C9});var S9,Uf,zl,vo,ex=P(()=>{"use strict";we();S9=S(require("path"));(e=>{function n(t){return typeof t.label=="string"}e.is=n})(Uf||(Uf={}));zl=(i=>(i[i.None=0]="None",i[i.Collapsed=1]="Collapsed",i[i.Expanded=2]="Expanded",i))(zl||{}),vo=class{constructor(e,t=0){this.collapsibleState=t;M.isUri(e)?(this.resourceUri=e,this.label=S9.default.basename(e.path),this.id=e.toString()):this.label=e}}});var kP=P(()=>{"use strict";ex()});function dke(n){return Array.isArray(n)&&n.every(e=>typeof e=="string")}function gke(n){return typeof n>"u"||dke(n)}var T9,Gf,k9=P(()=>{"use strict";T9=S(q());Gf=class{constructor(e){if(this._prevLine=0,this._prevChar=0,this._dataIsSortedAndDeltaEncoded=!0,this._data=[],this._dataLen=0,this._tokenTypeStrToInt=new Map,this._tokenModifierStrToInt=new Map,this._hasLegend=!1,e){this._hasLegend=!0;for(let t=0,i=e.tokenTypes.length;t<i;t++)this._tokenTypeStrToInt.set(e.tokenTypes[t],t);for(let t=0,i=e.tokenModifiers.length;t<i;t++)this._tokenModifierStrToInt.set(e.tokenModifiers[t],t)}}push(e,t,i,r,o){if(typeof e=="number"&&typeof t=="number"&&typeof i=="number"&&typeof r=="number"&&(typeof o=="number"||typeof o>"u"))return typeof o>"u"&&(o=0),this._pushEncoded(e,t,i,r,o);if(T9.Range.is(e)&&typeof t=="string"&&gke(i))return this._push(e,t,i);throw new Error("Illegal argument")}_push(e,t,i){if(!this._hasLegend)throw new Error("Legend must be provided in constructor");if(e.start.line!==e.end.line)throw new Error("`range` cannot span multiple lines");if(!this._tokenTypeStrToInt.has(t))throw new Error("`tokenType` is not in the provided legend");let r=e.start.line,o=e.start.character,s=e.end.character-e.start.character,a=this._tokenTypeStrToInt.get(t),l=0;if(i)for(let u of i){if(!this._tokenModifierStrToInt.has(u))throw new Error("`tokenModifier` is not in the provided legend");let c=this._tokenModifierStrToInt.get(u);l|=1<<c>>>0}this._pushEncoded(r,o,s,a,l)}_pushEncoded(e,t,i,r,o){if(this._dataIsSortedAndDeltaEncoded&&(e<this._prevLine||e===this._prevLine&&t<this._prevChar)){this._dataIsSortedAndDeltaEncoded=!1;let l=this._data.length/5|0,u=0,c=0;for(let h=0;h<l;h++){let d=this._data[5*h],g=this._data[5*h+1];d===0?(d=u,g+=c):d+=u,this._data[5*h]=d,this._data[5*h+1]=g,u=d,c=g}}let s=e,a=t;this._dataIsSortedAndDeltaEncoded&&this._dataLen>0&&(s-=this._prevLine,s===0&&(a-=this._prevChar)),this._data[this._dataLen++]=s,this._data[this._dataLen++]=a,this._data[this._dataLen++]=i,this._data[this._dataLen++]=r,this._data[this._dataLen++]=o,this._prevLine=e,this._prevChar=t}static _sortAndDeltaEncode(e){let t=[],i=e.length/5|0;for(let a=0;a<i;a++)t[a]=a;t.sort((a,l)=>{let u=e[5*a],c=e[5*l];if(u===c){let h=e[5*a+1],d=e[5*l+1];return h-d}return u-c});let r=new Array(e.length),o=0,s=0;for(let a=0;a<i;a++){let l=5*t[a],u=e[l+0],c=e[l+1],h=e[l+2],d=e[l+3],g=e[l+4],f=u-o,p=f===0?c-s:c,b=5*a;r[b+0]=f,r[b+1]=p,r[b+2]=h,r[b+3]=d,r[b+4]=g,o=u,s=c}return r}build(e){return this._dataIsSortedAndDeltaEncoded?{data:this._data,resultId:e}:{data:Gf._sortAndDeltaEncode(this._data),resultId:e}}}});var E9=m((e6e,D9)=>{"use strict";xi();he();Se();Kg();Bo();Gv();D_();Bl();oK();Of();Wl();Q();De();go();Xw();Kl();TP();Ul();gc();fo();Qr();we();var oe=S(q());Lr();dP();z();kP();k9();D9.exports={Uri:M,NullLogger:A_,SettingMonitor:hP,LanguageClient:Ff,CancellationTokenSource:oe.CancellationTokenSource,ProgressType:oe.ProgressType,RequestType:oe.RequestType,RequestType0:oe.RequestType0,NotificationType:oe.NotificationType,NotificationType0:oe.NotificationType0,Highligher:vn,Mru:to,Emitter:oe.Emitter,SnippetString:Hr,BasicList:$t,Mutex:Qt,TreeItem:vo,SemanticTokensBuilder:Gf,FloatFactory:li,RelativePattern:iw,UniquenessLevel:oe.UniquenessLevel,MonikerKind:oe.MonikerKind,PatternType:gg,SourceType:fg,MessageLevel:vb,ConfigurationTarget:wb,ServiceStat:pg,FileType:xb,State:aw,ClientState:lw,CloseAction:H_,ErrorAction:N_,TransportKind:vw,MessageTransports:hh,RevealOutputChannelOn:sw,MarkupKind:oe.MarkupKind,DiagnosticTag:oe.DiagnosticTag,DocumentHighlightKind:oe.DocumentHighlightKind,SymbolKind:oe.SymbolKind,SignatureHelpTriggerKind:oe.SignatureHelpTriggerKind,FileChangeType:oe.FileChangeType,CodeActionKind:oe.CodeActionKind,Diagnostic:oe.Diagnostic,DiagnosticSeverity:oe.DiagnosticSeverity,CompletionItemKind:oe.CompletionItemKind,InsertTextFormat:oe.InsertTextFormat,Location:oe.Location,LocationLink:oe.LocationLink,CancellationToken:oe.CancellationToken,Position:oe.Position,Range:oe.Range,TextEdit:oe.TextEdit,Disposable:oe.Disposable,Event:oe.Event,workspace:v,window:D,CompletionTriggerKind:oe.CompletionTriggerKind,snippetManager:Xt,events:_,services:Ai,commands:re,sources:_t,languages:F,diagnosticManager:Pt,extensions:ye,listManager:Ci,TreeItemCollapsibleState:zl,fetch:uh,download:Ef,ansiparse:sg,disposeAll:J,concurrent:ig,watchFile:rc,wait:Qe,runCommand:Gr,isRunning:QH,executable:tg}});function pke(n){return()=>{throw new Error(`process.${n}() is not allowed in extension sandbox`)}}function mke(){let n=e=>e==="coc.nvim"?E9():this.require(e);return n.resolve=e=>wo._resolveFilename(e,this),n.main=process.mainModule,n.extensions=wo._extensions,n.cache=wo._cache,n}function bke(n){return function(e,t){let i=mke.call(this),r=P9.default.dirname(t),o=e.replace(/^\#\!.*/,""),s=wo.wrap(o),a=tx.runInContext(s,n,{filename:t}),l=[this.exports,i,this,t,r];return a.apply(this.exports,l)}}function yke(n,e){let t=new wo(n);t.paths=wo._nodeModulePaths(n);let i=tx.createContext({module:t,Buffer,console:{debug:(...r)=>{e.debug.apply(e,r)},log:(...r)=>{e.info.apply(e,r)},error:(...r)=>{e.error.apply(e,r)},info:(...r)=>{e.info.apply(e,r)},warn:(...r)=>{e.warn.apply(e,r)}}});I$(i,global),i.Reflect=Reflect,i.require=function(o){let s=wo.prototype._compile;wo.prototype._compile=bke(i);let a=i.module.require(o);return wo.prototype._compile=s,a},i.process=new process.constructor;for(let r of Object.keys(process))i.process[r]=process[r];return fke.forEach(r=>{i.process[r]=pke(r)}),i.process.chdir=()=>{},i.process.umask=r=>{if(typeof r<"u")throw new Error("Cannot use process.umask() to change mask (read-only)");return process.umask()},i}function L9(n,e,t=!1){if(t||!_9.default.existsSync(e))return{activate:()=>{},deactivate:null};let i=yke(e,R9(`extension:${n}`));delete wo._cache[require.resolve(e)];let r=i.require(e),o=r&&r.activate||r;return typeof o!="function"?{activate:()=>{},deactivate:null}:{activate:o,deactivate:typeof r.deactivate=="function"?r.deactivate:null}}var _9,P9,tx,R9,i6e,wo,fke,I9=P(()=>{"use strict";_9=S(require("fs")),P9=S(require("path")),tx=S(require("vm"));Ko();R9=Y(),i6e=R9("util-factoroy"),wo=require("module"),fke=["reallyExit","abort","umask","setuid","setgid","setgroups","_fatalException","exit","kill"]});var H9={};vs(H9,{ExtensionType:()=>N9,Extensions:()=>DP,default:()=>ye});var j9,pt,F9,Ie,O9,ix,M9,A9,en,N9,DP,ye,go=P(()=>{"use strict";j9=S(_i()),pt=S(Rn()),F9=S(hk());wg();Ie=S(require("path")),O9=S(Jg()),ix=S(q());we();M9=S(Vd());xi();rE();he();CE();Bo();DX();iK();nK();z();na();uS();I9();Xe();jn();De();Q();A9=Y(),en=A9("extensions"),N9=(r=>(r[r.Global=0]="Global",r[r.Local=1]="Local",r[r.SingleFile=2]="SingleFile",r[r.Internal=3]="Internal",r))(N9||{}),DP=class{constructor(){this.extensions=new Map;this.disabled=new Set;this._onDidLoadExtension=new ix.Emitter;this._onDidActiveExtension=new ix.Emitter;this._onDidUnloadExtension=new ix.Emitter;this._additionalSchemes={};this.activated=!1;this.disposables=[];this.ready=!0;this.onDidLoadExtension=this._onDidLoadExtension.event;this.onDidActiveExtension=this._onDidActiveExtension.event;this.onDidUnloadExtension=this._onDidUnloadExtension.event;let e=global.__TEST__?Ie.default.join(__dirname,"__tests__"):process.env.COC_DATA_HOME,t=this.root=Ie.default.join(e,"extensions");if(this.checkRoot(t)){let r=Ie.default.join(t,"db.json");this.db=new Mc(r)}}checkRoot(e){try{pt.default.existsSync(e)||pt.default.mkdirpSync(e);let t=pt.default.statSync(e);if(t.isFile())en.info(`Trying to delete ${e}`),pt.default.unlinkSync(e),pt.default.mkdirpSync(e);else if(!t.isDirectory())return console.error(`Data home ${e} it not a valid directory`),!1;let i=Ie.default.join(e,"package.json");pt.default.existsSync(i)||pt.default.writeFileSync(i,'{"dependencies":{}}',"utf8")}catch(t){return console.error(`Unexpected error when check data home: ${t}`),!1}return!0}get outputChannel(){return this._outputChannel?this._outputChannel:(this._outputChannel=D.createOutputChannel("extensions"),this._outputChannel)}async init(){let e=this.db.fetch("extension")||{},t=Object.keys(e);for(let o of t)e[o].disabled==!0&&this.disabled.add(o);if(process.env.COC_NO_PLUGINS)return;let i=await this.globalExtensionStats(),r=await this.localExtensionStats(i.map(o=>o.id));i=i.concat(r),this.memos=new tw(Ie.default.resolve(this.root,"../memos.json")),i.map(o=>{let s=o.isLocal?1:0;try{this.createExtension(o.root,o.packageJSON,s)}catch(a){en.error(`Error on create ${o.root}:`,a)}}),await this.loadFileExtensions(),re.register({id:"extensions.forceUpdateAll",execute:async()=>{let o=await this.cleanExtensions();en.info(`Force update extensions: ${o}`),await this.installExtensions(o)}},!1,"remove all global extensions and install them"),v.onDidRuntimePathChange(async o=>{for(let s of o)s&&this.checkDirectory(s)===!0&&await this.loadExtension(s)},null,this.disposables)}getExtensionsInfo(){let e=[];for(let[t,i]of this.extensions.entries()){let{directory:r,filepath:o}=i;r||(r=o),i.type,r&&e.push({name:t,filepath:o,directory:r.endsWith(Ie.default.sep)?r:r+Ie.default.sep})}return e}activateExtensions(){this.activated=!0;for(let o of this.extensions.values()){let{id:s,packageJSON:a}=o.extension;this.setupActiveEvents(s,a).logError()}let e=new li(v.nvim);if(_.on("CursorMoved",(0,j9.debounce)(async o=>{if(this.installBuffer&&o==this.installBuffer.bufnr){let s=await v.nvim.call("line",["."]),a=this.installBuffer.getMessages(s-1),l=a&&a.length?[{content:a.join(`
`),filetype:"txt"}]:[];await e.show(l,{modes:["n"]})}},500)),global.__TEST__)return;this.checkExtensions().logError();let t=v.getConfiguration("coc.preferences"),i=t.get("extensionUpdateCheck","never"),r=t.get("silentAutoupdate",!0);if(i!="never"){let o=new Date,s=new Date(o.getFullYear(),o.getMonth(),o.getDate()-(i=="daily"?0:7)),a=this.db.fetch("lastUpdate");if(a&&Number(a)>s.getTime())return;this.outputChannel.appendLine("Start auto update..."),this.updateExtensions(!1,r).logError()}}async updateExtensions(e,t=!1){if(!this.npm)return;let i=await this.getLockedList(),r=await this.globalExtensionStats();r=r.filter(l=>![...i,...this.disabled].includes(l.id)),this.db.push("lastUpdate",Date.now()),t&&D.showMessage("Updating extensions, checkout output:///extensions for details.","more");let o=this.installBuffer=new zg(!0,e,t?this.outputChannel:void 0);o.setExtensions(r.map(l=>l.id)),await o.show(v.nvim);let s=ew(this.npm,this.modulesFolder);await ig(r,l=>{let{id:u}=l;o.startProgress([u]);let c=l.exotic?l.uri:null,h=s(u);return h.on("message",(d,g)=>{o.addMessage(u,d,g)}),h.update(c).then(d=>{o.finishProgress(u,!0),d&&this.loadExtension(d).logError()},d=>{o.addMessage(u,d.message),o.finishProgress(u,!1)})},t?1:3)}async checkExtensions(){let{globalExtensions:e}=v.env;if(e&&e.length){let t=this.filterGlobalExtensions(e);this.installExtensions(t).logError()}}get installer(){return ew(this.npm,this.modulesFolder)}async installExtensions(e=[]){let{npm:t}=this;if(!t||!e.length)return;e=ia(e);let i=this.installBuffer=new zg;i.setExtensions(e),await i.show(v.nvim);let r=ew(this.npm,this.modulesFolder);await ig(e,s=>{i.startProgress([s]);let a=r(s);return a.on("message",(l,u)=>{i.addMessage(s,l,u)}),a.install().then(l=>{i.finishProgress(s,!0);let u=Ie.default.join(this.modulesFolder,l);this.loadExtension(u).logError()},l=>{i.addMessage(s,l.message),i.finishProgress(s,!1),en.error(`Error on install ${s}`,l)})})}getMissingExtensions(){let e=this.loadJson()||{dependencies:{}},t=[];for(let i of Object.keys(e.dependencies)){let r=Ie.default.join(this.modulesFolder,i);if(!pt.default.existsSync(r)){let o=e.dependencies[i];o.startsWith("http")?t.push(o):t.push(i)}}return t}get npm(){let e=v.getConfiguration("npm").get("binPath","npm");e=v.expand(e);for(let t of[e,"yarnpkg","yarn","npm"])try{return M9.default.sync(t)}catch{continue}return D.showMessage("Can't find npm or yarn in your $PATH","error"),null}get all(){return Array.from(this.extensions.values()).map(e=>e.extension).filter(e=>!this.isDisabled(e.id))}getExtension(e){return this.extensions.get(e)}getExtensionState(e){if(this.isDisabled(e))return"disabled";let i=this.extensions.get(e);if(!i)return"unknown";let{extension:r}=i;return r.isActive?"activated":"loaded"}async getExtensionStates(){let e=await this.localExtensionStats([]),t=await this.globalExtensionStats();return e.concat(t.filter(i=>e.find(r=>r.id==i.id)==null))}async getLockedList(){let e=await this.db.fetch("extension");return e=e||{},Object.keys(e).filter(t=>e[t].locked===!0)}async toggleLock(e){let t=`extension.${e}.locked`;await this.db.fetch(t)?this.db.delete(t):this.db.push(t,!0)}async toggleExtension(e){let t=this.getExtensionState(e);if(t==null)return;t=="activated"&&await this.deactivate(e);let i=`extension.${e}.disabled`;if(this.db.push(i,t!="disabled"),t!="disabled")this.disabled.add(e),await this.unloadExtension(e);else{this.disabled.delete(e);let r=Ie.default.join(this.modulesFolder,e);pt.default.existsSync(r)&&await this.loadExtension(r)}await Qe(200)}async reloadExtension(e){let t=this.extensions.get(e);if(!t){D.showMessage(`Extension ${e} not registered`,"error");return}if(t.type==3){D.showMessage(`Can't reload internal extension "${t.id}"`,"warning");return}t.type==2?await this.loadExtensionFile(t.filepath):t.directory?await this.loadExtension(t.directory):D.showMessage(`Can't reload extension ${t.id}`,"warning")}async cleanExtensions(){let e=this.modulesFolder;if(!pt.default.existsSync(e))return[];let t=this.globalExtensions,i=[];for(let r of t){let o=Ie.default.join(e,r),s=await pt.default.lstat(o);!s||s&&s.isSymbolicLink()||(await this.unloadExtension(r),await pt.default.remove(o),i.push(r))}return i}async uninstallExtension(e){try{if(!e.length)return;let[t,i]=Zb(e,a=>this.globalExtensions.includes(a));i.length&&D.showMessage(`Extensions ${i} not global extensions, can't uninstall!`,"warning");let r=this.loadJson()||{dependencies:{}};for(let a of t){await this.unloadExtension(a),delete r.dependencies[a];let l=Ie.default.join(this.modulesFolder,a);pt.default.existsSync(l)&&await pt.default.remove(l)}let o={dependencies:{}};Object.keys(r.dependencies).sort().forEach(a=>{o.dependencies[a]=r.dependencies[a]});let s=Ie.default.join(this.root,"package.json");pt.default.writeFileSync(s,JSON.stringify(o,null,2),{encoding:"utf8"}),D.showMessage(`Removed: ${t.join(" ")}`)}catch(t){D.showMessage(`Uninstall failed: ${t}`,"error")}}isDisabled(e){return this.disabled.has(e)}has(e){return this.extensions.has(e)}isActivated(e){let t=this.extensions.get(e);return!!(t&&t.extension.isActive)}async loadExtension(e){if(Array.isArray(e)){for(let t of e)await this.loadExtension(t);return!0}try{let t=Ie.default.dirname(e),i=Ie.default.normalize(t)!=Ie.default.normalize(this.modulesFolder),r=Ie.default.join(e,"package.json"),o=JSON.parse(pt.default.readFileSync(r,"utf8")),{name:s}=o;return this.isDisabled(s)?!1:(await this.unloadExtension(s),this.createExtension(e,Object.freeze(o),i?1:0),!0)}catch(t){return D.showMessage(`Error on load extension from "${e}": ${t}`,"error"),en.error(`Error on load extension from ${e}`,t),!1}}async loadFileExtensions(){if(!process.env.COC_VIMCONFIG)return;let e=Ie.default.join(process.env.COC_VIMCONFIG,"coc-extensions");if(!pt.default.existsSync(e))return;let t=await pt.default.readdir(e);t=t.filter(i=>i.endsWith(".js"));for(let i of t)await this.loadExtensionFile(Ie.default.join(e,i))}loadedExtensions(){return Array.from(this.extensions.keys())}async watchExtension(e){let t=this.extensions.get(e);if(!t){D.showMessage(`extension ${e} not found`,"error");return}if(e.startsWith("single-"))D.showMessage(`watching ${t.filepath}`),this.disposables.push(rc(t.filepath,async()=>{await this.loadExtensionFile(t.filepath),D.showMessage(`reloaded ${e}`)}));else{let i=v.getWatchmanPath();if(!i){D.showMessage("watchman not found","error");return}let r=await oa.createClient(i,t.directory);if(!r){D.showMessage("Can't create watchman client, check output:///watchman");return}D.showMessage(`watching ${t.directory}`),this.disposables.push(r),r.subscribe("**/*.js",async()=>{await this.reloadExtension(e),D.showMessage(`reloaded ${e}`)}).then(o=>{this.disposables.push(o)},o=>{})}}async loadExtensionFile(e){let t=Ie.default.basename(e),i=Ie.default.basename(e,".js"),r="single-"+i;if(this.isDisabled(r))return;let o=Ie.default.dirname(e),s={name:r,main:t,engines:{coc:"^0.0.79"}},a=Ie.default.join(o,i+".json"),l=await Mt(a);if(l&&l.isFile()){let u=await yc(a,"utf8"),c=JSON.parse(u);if(c){let h=["activationEvents","contributes"];for(let d of h)c[d]&&(s[d]=c[d])}}await this.unloadExtension(r),this.createExtension(o,s,2)}async activate(e){if(this.isDisabled(e))throw new Error(`Extension ${e} is disabled!`);let t=this.extensions.get(e);if(!t)throw new Error(`Extension ${e} not registered!`);let{extension:i}=t;return i.isActive?!0:(await Promise.resolve(i.activate()),i.isActive?(this._onDidActiveExtension.fire(i),!0):!1)}async deactivate(e){let t=this.extensions.get(e);return t?(await Promise.resolve(t.deactivate()),!0):!1}async call(e,t,i){let r=this.extensions.get(e);if(!r)throw new Error(`extension ${e} not registered`);let{extension:o}=r;o.isActive||await this.activate(e);let{exports:s}=o;if(!s||!s.hasOwnProperty(t))throw new Error(`method ${t} not found on extension ${e}`);return await Promise.resolve(s[t].apply(null,i))}getExtensionApi(e){let t=this.extensions.get(e);if(!t)return null;let{extension:i}=t;return i.isActive?i.exports:null}registerExtension(e,t){let{id:i,packageJSON:r}=e;this.extensions.set(i,{id:i,type:3,extension:e,deactivate:t,isLocal:!0});let{contributes:o}=r;if(o){let{configuration:s}=o;if(s&&s.properties){let{properties:a}=s,l={};for(let u of Object.keys(a)){let c=a[u].default;c!=null&&(l[u]=c)}v.configurations.extendsDefaults(l)}}this._onDidLoadExtension.fire(e),this.setupActiveEvents(i,r).logError()}get globalExtensions(){let e=this.loadJson();return!e||!e.dependencies?[]:Object.keys(e.dependencies)}async globalExtensionStats(){let e=this.loadJson();if(!e||!e.dependencies)return[];let{modulesFolder:t}=this;return(await Promise.all(Object.keys(e.dependencies).map(r=>new Promise(async o=>{try{let s=e.dependencies[r],a=Ie.default.join(t,r),l=this.checkDirectory(a);if(l instanceof Error)return D.showMessage(`Unable to load global extension at ${a}: ${l.message}`,"error"),en.error(`Error on load ${a}`,l),o(null);let u=await yc(Ie.default.join(a,"package.json"),"utf8");a=await pt.default.realpath(a);let c=JSON.parse(u),h=c&&c.version||"",d=c&&c.description||"",g=F9.default.isValid(s)?s:"";o({id:r,isLocal:!1,version:h,description:d,exotic:/^https?:/.test(s),uri:g.replace(/\.git(#master)?$/,""),root:a,state:this.getExtensionState(r),packageJSON:Object.freeze(c)})}catch(s){en.error(s),o(null)}})))).filter(r=>r!=null)}async localExtensionStats(e){let i=(await v.nvim.eval('join(globpath(&runtimepath, "", 0, 1), ",")')).split(",");return(await Promise.all(i.map(o=>new Promise(async s=>{try{if(this.checkDirectory(o)!==!0)return s(null);let l=Ie.default.join(o,"package.json"),u=await yc(l,"utf8"),c=JSON.parse(u),h=this.extensions.get(c.name);if(h&&!h.isLocal)return en.info(`Extension "${c.name}" in runtimepath already loaded.`),s(null);if(e.includes(c.name))return en.info(`Skipped load vim plugin from "${o}", "${c.name}" already global extension.`),s(null);let d=c&&c.version||"",g=c&&c.description||"";s({id:c.name,isLocal:!0,version:d,description:g,exotic:!1,root:o,state:this.getExtensionState(c.name),packageJSON:Object.freeze(c)})}catch(a){en.error(a),s(null)}})))).filter(o=>o!=null)}loadJson(){let{root:e}=this,t=Ie.default.join(e,"package.json");if(!pt.default.existsSync(t))return null;let i=[],r=pt.default.readFileSync(t,"utf8"),o=kc(r,i,{allowTrailingComma:!0});return i&&i.length>0&&(D.showMessage(`Error on parse ${t}`,"error"),v.nvim.call("coc#util#open_file",["edit",t],!0)),o}get schemes(){return this._additionalSchemes}addSchemeProperty(e,t){this._additionalSchemes[e]=t,v.configurations.extendsDefaults({[e]:t.default})}async setupActiveEvents(e,t){let{activationEvents:i}=t;if(!this.canActivate(e))return;if(!i||Array.isArray(i)&&i.includes("*")){await this.activate(e).catch(a=>{D.showMessage(`Error on activate extension ${e}: ${a.message}`),this.outputChannel.appendLine(`Error on activate extension ${e}.
${a.message}
${a.stack}`)});return}let r=[],o=!1,s=()=>{if(!o)return o=!0,J(r),new Promise(a=>{if(!this.canActivate(e))return this.outputChannel.appendLine(`Extension ${e} is disabled or not loaded.`),a();this.activate(e).then(()=>{a()},l=>{D.showMessage(`Error on activate extension ${e}: ${l.message}`),this.outputChannel.appendLine(`Error on activate extension ${e}:${l.message}
${l.stack}`),a()})})};for(let a of i){let l=a.split(":"),u=l[0];if(u=="onLanguage"){if(v.languageIds.has(l[1])||v.filetypes.has(l[1])){await s();return}v.onDidOpenTextDocument(c=>{let h=v.getDocument(c.bufnr);(c.languageId==l[1]||h.filetype==l[1])&&s()},null,r)}else if(u=="onCommand")re.onCommandList.push(l[1]),_.on("Command",async c=>{c==l[1]&&(await s(),await Qe(500))},null,r);else if(u=="workspaceContains"){let c=async()=>{let d=v.workspaceFolders.map(g=>M.parse(g.uri).fsPath);for(let g of d)for(let f of l[1].split(/\s+/))if(await bY(g,f))return await s(),!0;return!1};if(v.onDidChangeWorkspaceFolders(c,null,r),await c())return}else if(u=="onFileSystem"){for(let c of v.documents)if(M.parse(c.uri).scheme==l[1]){await s();return}v.onDidOpenTextDocument(c=>{M.parse(c.uri).scheme==l[1]&&s()},null,r)}else D.showMessage(`Unsupported event ${a} of ${e}`,"error")}}createExtension(e,t,i){let r=t.name,o=!1,s,a=Ie.default.join(e,t.main||"index.js"),l,u=[],c,h={activate:()=>{if(s)return s;let g={subscriptions:u,extensionPath:e,globalState:this.memos.createMemento(`${r}|global`),workspaceState:this.memos.createMemento(`${r}|${v.rootPath}`),asAbsolutePath:f=>Ie.default.join(e,f),storagePath:Ie.default.join(this.root,`${r}-data`),logger:A9(r)};if(!l)try{let f=!(t.engines||{}).hasOwnProperty("coc");l=L9(r,a,f)}catch(f){en.error(`Error on createExtension ${r} from ${a}`,f);return}return s=new Promise((f,p)=>{try{Promise.resolve(l.activate(g)).then(b=>{o=!0,c=b,f(b)},b=>{en.error(`Error on active extension ${r}: ${b.message}`,b),p(b)})}catch(b){en.error(`Error on active extension ${r}: ${b}`,b instanceof Error?b.stack:b),p(b)}}),s}};Object.defineProperties(h,{id:{get:()=>r,enumerable:!0},packageJSON:{get:()=>t,enumerable:!0},extensionPath:{get:()=>e,enumerable:!0},isActive:{get:()=>o,enumerable:!0},exports:{get:()=>{if(!o)throw new Error(`Invalid access to exports, extension "${r}" not activated`);return c},enumerable:!0}}),this.extensions.set(r,{id:r,type:i,isLocal:i==1,extension:h,directory:e,filepath:a,deactivate:()=>{if(!!o&&(s=void 0,c=void 0,o=!1,J(u),u.splice(0,u.length),u=[],l&&l.deactivate))try{return Promise.resolve(l.deactivate()).catch(g=>{en.error(`Error on ${r} deactivate: `,g)})}catch(g){en.error(`Error on ${r} deactivate: `,g)}}});let{contributes:d}=t;if(d){let{configuration:g,rootPatterns:f,commands:p}=d;if(g&&g.properties){let{properties:b}=g,y={};for(let w of Object.keys(b)){let x=b[w].default;x!=null&&(y[w]=x)}v.configurations.extendsDefaults(y)}if(f&&f.length)for(let b of f)v.workspaceFolderControl.addRootPattern(b.filetype,b.patterns);if(p&&p.length)for(let b of p)re.titles.set(b.command,b.title)}this._onDidLoadExtension.fire(h),this.activated&&this.setupActiveEvents(r,t).logError()}filterGlobalExtensions(e){let t=new Map;e.forEach(s=>{let a=this.getExtensionName(s);a&&t.set(a,s)});let i=this.loadJson(),r=[],o=[];if(i&&i.dependencies)for(let s of Object.keys(i.dependencies)){let a=i.dependencies[s];typeof a=="string"&&pt.default.existsSync(Ie.default.join(this.modulesFolder,s,"package.json"))&&(o.push(s),/^https?:/.test(a)&&r.push(a))}for(let s of t.keys()){if(this.disabled.has(s)||this.extensions.has(s)){t.delete(s);continue}(/^https?:/.test(s)&&r.some(a=>a.startsWith(s))||o.includes(s))&&t.delete(s)}return Array.from(t.values())}getExtensionName(e){return/^https?:/.test(e)||!e.includes("@")?e:e.replace(/@[\d.]+$/,"")}get modulesFolder(){return Ie.default.join(this.root,global.__TEST__?"":"node_modules")}canActivate(e){return!this.disabled.has(e)&&this.extensions.has(e)}async unloadExtension(e){this.extensions.get(e)&&(await this.deactivate(e),this.extensions.delete(e),this._onDidUnloadExtension.fire(e))}checkDirectory(e){try{let t=Ie.default.join(e,"package.json");if(!pt.default.existsSync(t))throw new Error("package.json not found");let i=JSON.parse(pt.default.readFileSync(t,"utf8")),{name:r,engines:o,main:s}=i;if(!r||!o)throw new Error("can't find name & engines in package.json");if(!o||!Dt(o))throw new Error(`invalid engines in ${t}`);if(s&&!pt.default.existsSync(Ie.default.join(e,s)))throw new Error(`main file ${s} not found, you may need to build the project.`);let a=Object.keys(o);if(!a.includes("coc")&&!a.includes("vscode"))throw new Error("Engines in package.json doesn't have coc or vscode");if(a.includes("coc")){let l=o.coc.replace(/^\^/,">=");if(!O9.default.satisfies(v.version,l))throw new Error(`Please update coc.nvim, ${i.name} requires coc.nvim ${o.coc}`)}return!0}catch(t){return t}}dispose(){J(this.disposables)}},ye=new DP});var q9,P6e,vke,nx,B9=P(()=>{"use strict";q9=S(q());we();he();Xe();P6e=Y()("sources-keywords"),vke=10*1024,nx=class{constructor(e){this.doc=e;this._words=new Set;this._gitIgnored=!1;this.parse();let t=M.parse(e.uri);t.scheme==="file"&&mY(t.fsPath).then(i=>{this._gitIgnored=i})}get bufnr(){return this.doc.bufnr}get gitIgnored(){return this._gitIgnored}get words(){return this._words}parse(){if(!this.doc.attached)return;let{textDocument:e}=this.doc,{version:t,lineCount:i}=e;if(this.version===t||_.insertMode&&this.lineCount==i&&e.length>vke)return;this.cancel();let r=this.tokenSource=new q9.CancellationTokenSource;this.doc.matchWords(r.token).then(o=>{o!=null&&(this._words=o,this.lineCount=i,this.version=t)})}cancel(){this.tokenSource&&(this.tokenSource.cancel(),this.tokenSource=null)}onChange(e){e.contentChanges.length!=0&&this.parse()}dispose(){this.cancel(),this._words.clear()}}});var H6e,dr,xh=P(()=>{"use strict";Lr();Fe();Q();H6e=Y()("sources-source"),dr=class{constructor(e){this._disabled=!1;this.nvim=v.nvim,this.name=e.name,this.filepath=e.filepath||"",this.sourceType=e.sourceType||0,this.isSnippet=!!e.isSnippet,this.defaults=e}get priority(){return this.getConfig("priority",1)}get triggerOnly(){let e=this.defaults.triggerOnly;return typeof e=="boolean"?e:!this.triggerCharacters&&!this.triggerPatterns?!1:Array.isArray(this.triggerPatterns)&&this.triggerPatterns.length!=0}get triggerCharacters(){return this.getConfig("triggerCharacters",null)}get optionalFns(){return this.defaults.optionalFns||[]}get triggerPatterns(){let e=this.getConfig("triggerPatterns",null);return!e||e.length==0?null:e.map(t=>typeof t=="string"?new RegExp(t+"$"):t)}get shortcut(){let e=this.getConfig("shortcut","");return e||this.name.slice(0,3)}get enable(){return this._disabled?!1:this.getConfig("enable",!0)}get filetypes(){return this.getConfig("filetypes",null)}get disableSyntaxes(){return this.getConfig("disableSyntaxes",[])}getConfig(e,t){let i=v.getConfiguration(`coc.source.${this.name}`);return t=this.defaults.hasOwnProperty(e)?this.defaults[e]:t,i.get(e,t)}toggle(){this._disabled=!this._disabled}get firstMatch(){return this.getConfig("firstMatch",!0)}get menu(){let{shortcut:e}=this;return e?`[${e}]`:""}fixStartcol(e,t){let{col:i,input:r,line:o,bufnr:s}=e,a=tt(o,0,i),l=v.getDocument(s);if(!l)return i;let{chars:u}=l;for(let c=a.length-1;c>=0;c--){let h=a[c];if(!u.isKeywordChar(h)&&!t.includes(h))break;r=`${h}${r}`,i=i-1}return e.col=i,e.input=r,i}async shouldComplete(e){let{disableSyntaxes:t}=this;if(e.synname&&t&&t.length){let r=(e.synname||"").toLowerCase();if(t.findIndex(o=>r.includes(o.toLowerCase()))!==-1)return!1}let i=this.defaults.shouldComplete;return typeof i=="function"?await Promise.resolve(i.call(this,e)):!0}async refresh(){let e=this.defaults.refresh;typeof e=="function"&&await Promise.resolve(e.call(this))}async onCompleteDone(e,t){let i=this.defaults.onCompleteDone;typeof i=="function"&&await Promise.resolve(i.call(this,e,t))}async doComplete(e,t){let i=this.defaults.doComplete;return typeof i=="function"?await Promise.resolve(i.call(this,e,t)):null}}});function xke(n,e){let t=e[0];if(t.textEdit==null)return;let i=Ut.InsertReplaceEdit.is(t.textEdit)?t.textEdit.replace:t.textEdit.range,{character:r}=i.start;for(let o=1;o<Math.min(10,e.length);o++){let s=e[o];if(!s.textEdit||(Ut.InsertReplaceEdit.is(s.textEdit)?s.textEdit.replace:s.textEdit.range).start.character!==r)return}return et(n,r)}function Cke(n,e,t=""){return e.get(n)||t}function Ske(n,e,t){let{label:i,data:r,insertTextFormat:o,insertText:s,textEdit:a}=n,l,u;if(r&&typeof r.word=="string")return r.word;if(a){let c=Ut.InsertReplaceEdit.is(a)?a.replace:a.range;if(u=a.newText,c&&c.start.line==c.end.line){let{line:h,col:d,colnr:g}=e,f=yi(h,d);if(c.start.character>f)u=h.slice(f,c.start.character)+u;else{let p=h.slice(c.start.character,f);p.length&&u.startsWith(p)&&(u=u.slice(p.length))}if(f=yi(h,g-1),c.end.character>f){let p=h.slice(f,c.end.character);u.endsWith(p)&&(u=u.slice(0,-p.length))}}}else s&&(u=s);if(o==Ut.InsertTextFormat.Snippet&&u&&u.includes("$")){let h=new Pa().text(u);l=h?Y9(h,t):i}else l=Y9(u,t)||i;return l||""}function Y9(n,e,t=2){if(!n)return"";if(!e.length)return n;for(let i=t;i<n.length;i++){let r=n[i];if(e.includes(r))return n.slice(0,i)}return n}function Tke(n,e,t){let i=n.match(/^\s*/)[0],r=e.match(/^\s*/)[0];if(i==r)return;let o=r.length-i.length;return t.start.character+=o,t.end.character+=o,o}var Ut,wke,rx,W9=P(()=>{"use strict";Ut=S(q());xi();Kl();Kw();os();Fe();De();Q();wke=Y()("source-language"),rx=class{constructor(e,t,i,r,o,s,a,l){this.name=e;this.shortcut=t;this.provider=i;this.documentSelector=r;this.triggerCharacters=o;this.allCommitCharacters=s;this.completeConfig=l;this._enabled=!0;this.completeItems=[];this.priority=typeof a=="number"?a:l.priority}get enable(){return this._enabled}toggle(){this._enabled=!this._enabled}shouldCommit(e,t){let i=this.completeItems[e.index];return i?[...this.allCommitCharacters,...i.commitCharacters||[]].includes(t):!1}async doComplete(e,t){let{triggerCharacter:i,input:r,bufnr:o}=e;this.filetype=e.filetype,this.completeItems=[];let s=this.getTriggerKind(e),a=this.getPosition(e),l={triggerKind:s,option:e};s==Ut.CompletionTriggerKind.TriggerCharacter&&(l.triggerCharacter=i);let u=v.getAttachedDocument(o),c=await Promise.resolve(this.provider.provideCompletionItems(u.textDocument,a,t,l));if(!c||t.isCancellationRequested)return null;let h=Array.isArray(c)?c:c.items;if(!h||h.length==0)return null;this.completeItems=h;let d=xke(e.line,h),g=Object.assign({},e),f,p=typeof c.isIncomplete=="boolean"?c.isIncomplete:!1;d==null&&r.length>0&&this.triggerCharacters.includes(e.triggerCharacter)&&(h.every(y=>{var w;return((w=y.insertText)!=null?w:y.label).startsWith(e.input)})||(d=e.col+V(e.input))),d!=null&&(f=d<g.col?tt(e.line,d,g.col):"",g.col=d);let b=h.map((y,w)=>{let x=this.convertVimCompleteItem(y,this.shortcut,g,f);return x.index=w,x});return{startcol:d,isIncomplete:p,items:b}}async onCompleteResolve(e,t){let{index:i}=e,r=this.completeItems[i];if(!r||e.resolved)return;if(typeof this.provider.resolveCompletionItem=="function"){let s=await Promise.resolve(this.provider.resolveCompletionItem(r,t));if(t.isCancellationRequested||!s)return;Object.assign(r,s)}if(typeof e.documentation>"u"){let{documentation:s,detail:a}=r;if(!s&&!a)return;let l=[];if(a&&!e.detailShown&&a!=e.word&&(a=a.replace(/\n\s*/g," "),a.length)){let u=/^[\w-\s.,\t\n]+$/.test(a);l.push({filetype:u?"txt":this.filetype,content:a})}s&&(typeof s=="string"?l.push({filetype:"txt",content:s}):s.value&&l.push({filetype:s.kind=="markdown"?"markdown":"txt",content:s.value})),e.resolved=!0,e.documentation=l}}async onCompleteDone(e,t){let i=this.completeItems[e.index];if(!i)return;typeof e.line=="string"&&Object.assign(t,{line:e.line});let r=v.getAttachedDocument(t.bufnr);await r.patchChange(!0);let o=Array.isArray(i.additionalTextEdits)&&i.additionalTextEdits.length>0;o&&await Xt.editsInsideSnippet(i.additionalTextEdits)&&Xt.cancel();let s=r.version,a=await this.applyTextEdit(r,o,i,e.word,t);o&&(await r.applyEdits(i.additionalTextEdits,r.version!=s,!a),a&&await Xt.selectCurrentPlaceholder()),i.command&&(re.has(i.command.command)?await re.execute(i.command):wke.warn(`Command "${i.command.command}" not registered to coc.nvim`))}async applyTextEdit(e,t,i,r,o){var w,x;let{line:s,linenr:a,colnr:l,col:u}=o,c=await D.getCursorPosition();if(c.line!=a-1)return;let{textEdit:h}=i,d=e.getline(a-1),g=yi(s,l-1);if(!h&&i.insertText&&(h={range:Ut.Range.create(c.line,yi(s,u),c.line,g),newText:i.insertText}),!h)return!1;let f=h.newText,p=Ut.InsertReplaceEdit.is(h)?h.replace:h.range,b=Tke(s,d,p);b&&(g+=b),p.end.character<g&&(p.end.character=g),c.character>g&&(p.end.character+=c.character-g);let y=i.insertTextFormat===Ut.InsertTextFormat.Snippet;if(y&&this.completeConfig.snippetsSupport===!1&&(y=!1,f=r),y){let k=((w=i.data)==null?void 0:w.ultisnip)===!0?{}:(x=i.data)==null?void 0:x.ultisnip;return await Xt.insertSnippet(f,!t,p,i.insertTextMode,k||void 0)}return await e.applyEdits([Ut.TextEdit.replace(p,f)],!1,c),!1}getTriggerKind(e){let{triggerCharacters:t}=this,i=t.includes(e.triggerCharacter),r=Ut.CompletionTriggerKind.Invoked;return e.triggerForInComplete?r=Ut.CompletionTriggerKind.TriggerForIncompleteCompletions:i&&(r=Ut.CompletionTriggerKind.TriggerCharacter),r}convertVimCompleteItem(e,t,i,r){var f;let{detailMaxLength:o,invalidInsertCharacters:s,detailField:a,labels:l,defaultKindText:u}=this.completeConfig,c=e.additionalTextEdits!=null&&e.additionalTextEdits.length>0,h=e.insertTextFormat===Ut.InsertTextFormat.Snippet||c,d=e.label.trim(),g={word:Ske(e,i,s),abbr:d,menu:`[${t}]`,kind:Cke(e.kind,l,u),sortText:e.sortText||null,sourceScore:e.score||null,filterText:e.filterText||d,isSnippet:h,dup:e.data&&e.data.dup==0?0:1};if(r&&(g.filterText.startsWith(r)||e.textEdit&&ho(Cn(r),e.textEdit.newText)&&(g.filterText=e.textEdit.newText.replace(/\r?\n/g,"")),!e.textEdit&&!g.word.startsWith(r)&&(g.word=`${r}${g.word}`)),e&&e.detail&&a!="preview"){let p=e.detail.replace(/\n\s*/g," ");V(p)<o&&(a=="menu"?g.menu=`${p} ${g.menu}`:a=="abbr"&&(g.abbr=`${g.abbr} - ${p}`),g.detailShown=1)}return e.documentation?g.info=typeof e.documentation=="string"?e.documentation:e.documentation.value:g.info="",g.word==""&&(g.empty=1),g.line=i.line,e.kind==Ut.CompletionItemKind.Folder&&!g.abbr.endsWith("/")&&(g.abbr=g.abbr+"/"),e.preselect&&(g.preselect=!0),(f=e.data)!=null&&f.optional&&(g.abbr=g.abbr+"?"),g}getPosition(e){let{line:t,linenr:i,colnr:r}=e,o=tt(t,0,r-1);return{line:i-1,character:o.length}}}});var r8e,ox,Z9=P(()=>{"use strict";os();Fe();Q();De();xh();r8e=Y()("sources-source-vim"),ox=class extends dr{async callOptionalFunc(e,t){if(!this.optionalFns.includes(e))return null;let r=`coc#source#${this.name}#${e}`,o;try{o=await this.nvim.call(r,t)}catch(s){return D.showMessage(`Vim error from source ${this.name}: ${s}`,"error"),null}return o}async shouldComplete(e){return await super.shouldComplete(e)?this.optionalFns.includes("should_complete")?!!await this.callOptionalFunc("should_complete",[e]):!0:!1}async refresh(){await this.callOptionalFunc("refresh",[])}async onCompleteDone(e,t){!this.optionalFns.includes("on_complete")||await this.callOptionalFunc("on_complete",[e])}onEnter(e){if(!this.optionalFns.includes("on_enter"))return;let t=v.getDocument(e);if(!t)return;let{filetypes:i}=this;i&&!i.includes(t.filetype)||this.callOptionalFunc("on_enter",[{bufnr:e,uri:t.uri,languageId:t.filetype}]).logError()}async doComplete(e,t){let{col:i,input:r,line:o,colnr:s}=e,a=await this.callOptionalFunc("get_startcol",[e]);if(t.isCancellationRequested)return;if(a){if(a<0)return null;a=Number(a),(isNaN(a)||a<0)&&(a=i),a!==i&&(r=tt(o,a,s-1),e=Object.assign({},e,{col:a,changed:i-a,input:r}))}let l=await this.nvim.callAsync("coc#util#do_complete",[this.name,e]);if(!l||l.length==0||t.isCancellationRequested)return null;if(this.firstMatch&&r.length){let c=r[0];l=l.filter(h=>{let d=h.filterText?h.filterText[0]:h.word[0];return Af(c,d)})}l=l.map(c=>{if(typeof c=="string")return{word:c,menu:this.menu,isSnippet:this.isSnippet};let h=c.menu?c.menu+" ":"";return c.menu=`${h}${this.menu}`,c.isSnippet=this.isSnippet,delete c.user_data,c});let u={items:l};return a&&(u.startcol=a),u}}});var $9={};vs($9,{default:()=>sx,regist:()=>kke});function kke(n,e){return n.set("around",new sx(e)),J9.Disposable.create(()=>{n.delete("around")})}var J9,c8e,sx,X9=P(()=>{"use strict";J9=S(q());z();os();xh();c8e=Y()("sources-around"),sx=class extends dr{constructor(e){super({name:"around",filepath:__filename});this.keywords=e}async filterWords(e,t,i,r){let o=!1,{input:s}=t,a=t.word,l=s[0],u=s.length>1,c=t.input.length,h=l.charCodeAt(0),d=h>=97&&h<=122,g=u?Cn(s):[],f=!0,p=!0,b=Date.now();for(let y of e){let w=y.length;if(w<c)continue;if(f&&w==c&&y===s){f=!1;continue}if(p&&w==a.length&&y===a){p=!1;continue}if(Date.now()-b>15){if(await Ur(),i.isCancellationRequested)return;b=Date.now()}let x=d?y[0].toLowerCase():y[0];if(u){if(x.charCodeAt(0)===h&&ho(g,y)&&(r.push(y),r.length==100)){o=!0;break}}else if(x.charCodeAt(0)===h&&(r.push(y),r.length==100)){o=!0;break}}return o}async doComplete(e,t){let{bufnr:i,input:r}=e;if(r.length===0||(await Ur(),t.isCancellationRequested))return null;let o=this.keywords.getItem(i),s=o==null?void 0:o.words;if(!s)return null;let a=[],l=await this.filterWords(s,e,t,a);return t.isCancellationRequested?null:{isIncomplete:l,items:a.map(u=>({word:u,menu:this.menu}))}}}});var G9={};vs(G9,{default:()=>ax,regist:()=>Dke});function Dke(n,e){return n.set("buffer",new ax(e)),U9.Disposable.create(()=>{n.delete("buffer")})}var U9,p8e,ax,K9=P(()=>{"use strict";U9=S(q());z();os();xh();p8e=Y()("sources-buffer"),ax=class extends dr{constructor(e){super({name:"buffer",filepath:__filename});this.keywords=e}get ignoreGitignore(){return this.getConfig("ignoreGitignore",!0)}async getWords(e,t,i,r){let{ignoreGitignore:o}=this,s=!1,a=t.input[0],l=t.input.length,u=l>1,c=a.charCodeAt(0),h=c>=97&&c<=122,d=u?Cn(t.input):[],g=Date.now();for(let f of this.keywords.items){if(r.size==100)break;if(!(f.bufnr===e||o&&f.gitIgnored))for(let p of f.words){if(Date.now()-g>15){if(await Ur(),i.isCancellationRequested)return;g=Date.now()}if(p.length<l)continue;let b=h?p[0].toLowerCase():p[0];if(u){if(b.charCodeAt(0)===c&&ho(d,p)&&(r.add(p),r.size==100)){s=!0;break}}else if(b.charCodeAt(0)===c&&(r.add(p),r.size==100)){s=!0;break}}}return s}async doComplete(e,t){let{bufnr:i,input:r}=e;if(r.length==0||(await Ur(),t.isCancellationRequested))return null;let o=new Set;return{isIncomplete:await this.getWords(i,e,t,o),items:Array.from(o).map(a=>({word:a,menu:this.menu}))}}}});var eee={};vs(eee,{default:()=>ux,regist:()=>Pke});function Pke(n){return n.set("file",new ux),V9.Disposable.create(()=>{n.delete("file")})}var lx,z9,kn,Q9,V9,Eke,_ke,ux,tee=P(()=>{"use strict";lx=S(require("fs")),z9=S(Vn()),kn=S(require("path")),Q9=S(require("util")),V9=S(q());xh();Xe();Fe();nc();Q();Eke=Y()("sources-file"),_ke=/(?:\.{0,2}|~|\$HOME|([\w]+)|[a-zA-Z]:|)(\/|\\+)(?:[\u4E00-\u9FA5\u00A0-\u024F\w .@()-]+(\/|\\+))*(?:[\u4E00-\u9FA5\u00A0-\u024F\w .@()-])*$/,ux=class extends dr{constructor(){super({name:"file",filepath:__filename})}get triggerCharacters(){let e=this.getConfig("triggerCharacters",[]);return Xi?e:e.filter(t=>t!="\\")}resolveEnvVariables(e){let t=e;return t=t.replace(/%([^%]+)%/g,(i,r)=>process.env[r]),t=t.replace(/\$([A-Z_]+[A-Z0-9_]*)|\${([A-Z0-9_]*)}/gi,(i,r,o)=>process.env[r||o]),t}getPathOption(e){let{line:t,colnr:i}=e,r=tt(t,0,i-1);if(r=this.resolveEnvVariables(r),!r||r.endsWith("//"))return null;let o=r.match(_ke);if(o&&o.length){let s=v.expand(o[0]),a=o[0].match(/[^/\\]*$/)[0];return{pathstr:s,part:o[1],startcol:i-a.length-1,input:a}}return null}async getFileItem(e,t){let i=kn.default.join(e,t),r=await Mt(i);if(r){let o=r.isDirectory()?t+"/":t;return{word:t,abbr:o}}return null}filterFiles(e){let t=this.getConfig("ignoreHidden",!0),i=this.getConfig("ignorePatterns",[]);return e.filter(r=>{if(r==null||t&&r.startsWith("."))return!1;for(let o of i)if((0,z9.default)(r,o,{dot:!0}))return!1;return!0})}async getItemsFromRoot(e,t){let i=[],r=/[\\/]$/.test(e)?e:kn.default.dirname(e),o=kn.default.isAbsolute(e)?r:kn.default.join(t,r);try{let s=await Mt(o);if(s&&s.isDirectory()){let a=await Q9.default.promisify(lx.default.readdir)(o);a=this.filterFiles(a);let l=await Promise.all(a.map(u=>this.getFileItem(o,u)));i=i.concat(l)}return i=i.filter(a=>a!=null),i}catch(s){return Eke.error("Error on list files:",s),i}}get trimSameExts(){return this.getConfig("trimSameExts",[])}async doComplete(e){let{col:t,filepath:i}=e,r=this.getPathOption(e);if(!r)return null;let{pathstr:o,part:s,startcol:a,input:l}=r;if(a<e.col)return null;let u=e.col==a?"":tt(e.line,e.col,a),c=kn.default.dirname(i),h=kn.default.extname(kn.default.basename(i)),d=await this.nvim.call("getcwd",[]),g;if(o.startsWith(".")?g=i?kn.default.dirname(i):d:Xi&&/^\w+:/.test(o)?g=/[\\/]$/.test(o)?o:kn.default.dirname(o):!Xi&&o.startsWith("/")?g=o.endsWith("/")?o:kn.default.dirname(o):s?lx.default.existsSync(kn.default.join(c,s))?g=c:lx.default.existsSync(kn.default.join(d,s))&&(g=d):g=d,!g)return null;let f=await this.getItemsFromRoot(o,g),p=this.trimSameExts.includes(h),b=l[0];return b&&t==a&&(f=f.filter(y=>y.word[0]===b)),{items:f.map(y=>{let w=kn.default.extname(y.word);return y.word=p&&w===h?y.word.replace(h,""):y.word,{word:`${u}${y.word}`,abbr:`${u}${y.abbr}`,menu:this.menu}})}}}});var oee={};vs(oee,{Sources:()=>EP,default:()=>_t});var nee,cx,ree,ot,iee,EP,_t,Wl=P(()=>{"use strict";nee=S(require("fs")),cx=S(require("path")),ree=S(require("util")),ot=S(q());he();go();Lr();z();na();Xe();Fe();B9();De();Q();xh();W9();Z9();iee=Y()("sources"),EP=class{constructor(){this.sourceMap=new Map;this.disposables=[];this.remoteSourcePaths=[]}init(){this.loadCompleteConfig(),this.keywords=v.registerBufferSync(e=>new nx(e)),v.onDidChangeConfiguration(e=>{e.affectsConfiguration("suggest")&&this.loadCompleteConfig()},null,this.disposables),this.createNativeSources(),this.createRemoteSources(),_.on("InsertLeave",()=>{for(let e of this.keywords.items)e.parse()},this,this.disposables),_.on("BufEnter",this.onDocumentEnter,this,this.disposables),v.onDidRuntimePathChange(e=>{for(let t of e)t&&this.createVimSources(t)},null,this.disposables)}loadCompleteConfig(){let e=v.getConfiguration("suggest"),t=e.get("completionItemKindLabels",{}),i=new Map([[ot.CompletionItemKind.Text,t.text||"v"],[ot.CompletionItemKind.Method,t.method||"f"],[ot.CompletionItemKind.Function,t.function||"f"],[ot.CompletionItemKind.Constructor,typeof t.constructor=="function"?"f":t["constructor"]],[ot.CompletionItemKind.Field,t.field||"m"],[ot.CompletionItemKind.Variable,t.variable||"v"],[ot.CompletionItemKind.Class,t.class||"C"],[ot.CompletionItemKind.Interface,t.interface||"I"],[ot.CompletionItemKind.Module,t.module||"M"],[ot.CompletionItemKind.Property,t.property||"m"],[ot.CompletionItemKind.Unit,t.unit||"U"],[ot.CompletionItemKind.Value,t.value||"v"],[ot.CompletionItemKind.Enum,t.enum||"E"],[ot.CompletionItemKind.Keyword,t.keyword||"k"],[ot.CompletionItemKind.Snippet,t.snippet||"S"],[ot.CompletionItemKind.Color,t.color||"v"],[ot.CompletionItemKind.File,t.file||"F"],[ot.CompletionItemKind.Reference,t.reference||"r"],[ot.CompletionItemKind.Folder,t.folder||"F"],[ot.CompletionItemKind.EnumMember,t.enumMember||"m"],[ot.CompletionItemKind.Constant,t.constant||"v"],[ot.CompletionItemKind.Struct,t.struct||"S"],[ot.CompletionItemKind.Event,t.event||"E"],[ot.CompletionItemKind.Operator,t.operator||"O"],[ot.CompletionItemKind.TypeParameter,t.typeParameter||"T"]]),r=e.get("floatEnable",!0),o=e.get("detailField","preview");o=="preview"&&(!r||!v.floatSupported)&&(o="menu"),this.completeConfig=Object.assign(this.completeConfig||{},{labels:i,floatEnable:r,detailField:o,defaultKindText:t.default||"",priority:e.get("languageSourcePriority",99),snippetsSupport:e.get("snippetsSupport",!0),detailMaxLength:e.get("detailMaxLength",100),invalidInsertCharacters:e.get("invalidInsertCharacters",["(","<","{","[","\r",`
`])})}get nvim(){return v.nvim}createNativeSources(){this.disposables.push((X9(),Fa($9)).regist(this.sourceMap,this.keywords)),this.disposables.push((K9(),Fa(G9)).regist(this.sourceMap,this.keywords)),this.disposables.push((tee(),Fa(eee)).regist(this.sourceMap))}createLanguageSource(e,t,i,r,o,s,a){let l=new rx(e,t,r,i,o||[],a||[],s,this.completeConfig);return iee.debug("created service source",e),this.sourceMap.set(e,l),{dispose:()=>{this.sourceMap.delete(e)}}}async createVimSourceExtension(e,t){let i=cx.default.basename(t,".vim");try{await e.command(`source ${t}`);let r=await e.call("coc#util#remote_fns",i);for(let c of["init","complete"])if(!r.includes(c))return D.showMessage(`${c} not found for source ${i}`,"error"),null;let o=await e.call(`coc#source#${i}#init`,[]),s={name:`coc-source-${i}`,engines:{coc:">= 0.0.1"},activationEvents:o.filetypes?o.filetypes.map(c=>`onLanguage:${c}`):["*"],contributes:{configuration:{properties:{[`coc.source.${i}.enable`]:{type:"boolean",default:!0},[`coc.source.${i}.firstMatch`]:{type:"boolean",default:!!o.firstMatch},[`coc.source.${i}.triggerCharacters`]:{type:"number",default:o.triggerCharacters||[]},[`coc.source.${i}.priority`]:{type:"number",default:o.priority||9},[`coc.source.${i}.shortcut`]:{type:"string",default:o.shortcut||i.slice(0,3).toUpperCase(),description:"Shortcut text shown in complete menu."},[`coc.source.${i}.disableSyntaxes`]:{type:"array",default:[],items:{type:"string"}},[`coc.source.${i}.filetypes`]:{type:"array",default:o.filetypes||null,description:"Enabled filetypes.",items:{type:"string"}}}}}},a=new ox({name:i,filepath:t,sourceType:1,optionalFns:r.filter(c=>!["init","complete"].includes(c))}),l=!1,u={id:s.name,packageJSON:s,exports:void 0,extensionPath:t,activate:()=>(l=!0,this.addSource(a),Promise.resolve())};Object.defineProperty(u,"isActive",{get:()=>l}),ye.registerExtension(u,()=>{l=!1,this.removeSource(a)})}catch(r){D.showMessage(`Error on create vim source ${i}: ${r}`,"error")}}createRemoteSources(){let{runtimepath:e}=v.env,t=e.split(",");for(let i of t)this.createVimSources(i).logError()}async createVimSources(e){if(this.remoteSourcePaths.includes(e))return;this.remoteSourcePaths.push(e);let t=cx.default.join(e,"autoload/coc/source"),i=await Mt(t);if(i&&i.isDirectory()){let r=await ree.default.promisify(nee.default.readdir)(t);r=r.filter(s=>s.endsWith(".vim"));let o=r.map(s=>cx.default.join(t,s));if(o.length==0)return;await Promise.all(o.map(s=>this.createVimSourceExtension(this.nvim,s)))}}get names(){return Array.from(this.sourceMap.keys())}get sources(){return Array.from(this.sourceMap.values())}has(e){return this.names.findIndex(t=>t==e)!=-1}getSource(e){return e&&this.sourceMap.get(e)||null}shouldCommit(e,t){if(!e||!e.source)return!1;let i=this.getSource(e.source);return i&&i.sourceType==2&&typeof i.shouldCommit=="function"?i.shouldCommit(e,t):!1}getCompleteSources(e){let{filetype:t,disabled:i}=e,r=tt(e.line,0,e.colnr-1),o=e.input==""&&!!e.triggerCharacter,s=Jm(e.filepath,e.bufnr,"",v.env.isCygwin);return i=Array.isArray(i)?i:[],o?this.getTriggerSources(r,t,s,i):this.getNormalSources(e.filetype,s,i)}getNormalSources(e,t,i=[]){let r=e.split(".");return this.sources.filter(o=>{let{filetypes:s,triggerOnly:a,name:l,documentSelector:u,enable:c}=o;return!(i.includes(l)||!c||a||s&&!ZD(s,r)||u&&r.every(h=>v.match(u,{uri:t,languageId:h})==0))})}checkTrigger(e,t,i){let{triggerCharacters:r,triggerPatterns:o}=e;return!!((r==null?void 0:r.length)>0&&r.includes(i)||(o==null?void 0:o.length)>0&&o.findIndex(s=>s.test(t))!==-1)}shouldTrigger(e,t,i){return this.getTriggerSources(e,t,i).length>0}getTriggerSources(e,t,i,r=[]){if(!e)return[];let o=e[e.length-1],s=t.split(".");return this.sources.filter(a=>{let{filetypes:l,enable:u,documentSelector:c,name:h}=a;return r.includes(h)||!u||l&&!ZD(l,s)||c&&s.every(d=>v.match(c,{uri:i,languageId:d})==0)?!1:this.checkTrigger(a,e,o)})}addSource(e){let{name:t}=e;return this.names.includes(t)&&iee.warn(`Recreate source ${t}`),this.sourceMap.set(t,e),ot.Disposable.create(()=>{this.sourceMap.delete(t)})}removeSource(e){let t=typeof e=="string"?e:e.name;this.sourceMap.delete(t)}async refresh(e){for(let t of this.sources)(!e||t.name==e)&&typeof t.refresh=="function"&&await Promise.resolve(t.refresh())}toggleSource(e){if(!e)return;let t=this.getSource(e);!t||typeof t.toggle=="function"&&t.toggle()}sourceStats(){let e=[],t=this.sources;for(let i of t)e.push({name:i.name,priority:i.priority,triggerCharacters:i.triggerCharacters||[],shortcut:i.shortcut||"",filetypes:i.filetypes||[],filepath:i.filepath||"",type:i.sourceType==0?"native":i.sourceType==1?"remote":"service",disabled:!i.enable});return e}onDocumentEnter(e){let{sources:t}=this;for(let i of t)i.enable&&typeof i.onEnter=="function"&&i.onEnter(e)}createSource(e){if(!e.name||!e.doComplete)throw new Error("name and doComplete required for createSource");let t=new dr(Object.assign({sourceType:2},e));return this.addSource(t)}dispose(){J(this.disposables)}},_t=new EP});var xo,$5e,see,F,Se=P(()=>{"use strict";xo=S(q());Ul();R$();j$();O$();A$();N$();q$();Y$();Z$();$$();U$();K$();Q$();eX();iX();rX();sX();lX();cX();dX();fX();mX();yX();wX();CX();PE();z();$5e=Y()("languages"),see=class{constructor(){this._onDidSemanticTokensRefresh=new xo.Emitter;this._onDidInlayHintRefresh=new xo.Emitter;this.onDidSemanticTokensRefresh=this._onDidSemanticTokensRefresh.event;this.onDidInlayHintRefresh=this._onDidInlayHintRefresh.event;this.onTypeFormatManager=new Hy;this.documentLinkManager=new Ly;this.documentColorManager=new Py;this.foldingRangeManager=new jy;this.renameManager=new By;this.formatManager=new Fy;this.codeActionManager=new Ty;this.workspaceSymbolsManager=new Xy;this.formatRangeManager=new Oy;this.hoverManager=new My;this.signatureManager=new Jy;this.documentSymbolManager=new Iy;this.documentHighlightManager=new Ry;this.definitionManager=new _y;this.declarationManager=new Dy;this.typeDefinitionManager=new $y;this.referenceManager=new qy;this.implementationManager=new Ay;this.codeLensManager=new ky;this.selectionRangeManager=new Yy;this.callHierarchyManager=new Cy;this.semanticTokensManager=new Wy;this.semanticTokensRangeManager=new Zy;this.linkedEditingManager=new Ny;this.inlayHintManager=new Ky}hasFormatProvider(e){return!!(this.formatManager.hasProvider(e)||this.formatRangeManager.hasProvider(e))}registerOnTypeFormattingEditProvider(e,t,i){return this.onTypeFormatManager.register(e,t,i)}registerCompletionItemProvider(e,t,i,r,o=[],s,a){return i=typeof i=="string"?[{language:i}]:i,(Wl(),Fa(oee)).default.createLanguageSource(e,t,i,r,o,s,a)}registerCodeActionProvider(e,t,i,r){return this.codeActionManager.register(e,t,i,r)}registerHoverProvider(e,t){return this.hoverManager.register(e,t)}registerSelectionRangeProvider(e,t){return this.selectionRangeManager.register(e,t)}registerSignatureHelpProvider(e,t,i){return this.signatureManager.register(e,t,i)}registerDocumentSymbolProvider(e,t,i){return this.documentSymbolManager.register(e,t,i)}registerFoldingRangeProvider(e,t){return this.foldingRangeManager.register(e,t)}registerDocumentHighlightProvider(e,t){return this.documentHighlightManager.register(e,t)}registerCodeLensProvider(e,t){return this.codeLensManager.register(e,t)}registerDocumentLinkProvider(e,t){return this.documentLinkManager.register(e,t)}registerDocumentColorProvider(e,t){return this.documentColorManager.register(e,t)}registerDefinitionProvider(e,t){return this.definitionManager.register(e,t)}registerDeclarationProvider(e,t){return this.declarationManager.register(e,t)}registerTypeDefinitionProvider(e,t){return this.typeDefinitionManager.register(e,t)}registerImplementationProvider(e,t){return this.implementationManager.register(e,t)}registerReferencesProvider(e,t){return this.referenceManager.register(e,t)}registerRenameProvider(e,t){return this.renameManager.register(e,t)}registerWorkspaceSymbolProvider(e){return arguments.length>1&&typeof arguments[1].provideWorkspaceSymbols=="function"&&(e=arguments[1]),this.workspaceSymbolsManager.register(e)}registerDocumentFormatProvider(e,t,i=0){return this.formatManager.register(e,t,i)}registerDocumentRangeFormatProvider(e,t,i=0){return this.formatRangeManager.register(e,t,i)}registerCallHierarchyProvider(e,t){return this.callHierarchyManager.register(e,t)}registerDocumentSemanticTokensProvider(e,t,i){let r=setTimeout(()=>{this._onDidSemanticTokensRefresh.fire(e)},500),o=this.semanticTokensManager.register(e,t,i,()=>{clearTimeout(r),this._onDidSemanticTokensRefresh.fire(e)});return xo.Disposable.create(()=>{clearTimeout(r),o.dispose()})}registerDocumentRangeSemanticTokensProvider(e,t,i){return this._onDidSemanticTokensRefresh.fire(e),this.semanticTokensRangeManager.register(e,t,i)}registerInlayHintsProvider(e,t){let i=[];return i.push(this.inlayHintManager.register(e,t)),this._onDidInlayHintRefresh.fire(e),typeof t.onDidChangeInlayHints=="function"&&t.onDidChangeInlayHints(()=>{this._onDidInlayHintRefresh.fire(e)},null,i),xo.Disposable.create(()=>{J(i),this._onDidInlayHintRefresh.fire(e)})}registerLinkedEditingRangeProvider(e,t){return this.linkedEditingManager.register(e,t)}shouldTriggerSignatureHelp(e,t){return this.signatureManager.shouldTrigger(e,t)}async getHover(e,t,i){return await this.hoverManager.provideHover(e,t,i)}async getSignatureHelp(e,t,i,r){return await this.signatureManager.provideSignatureHelp(e,t,i,r)}async getDefinition(e,t,i){return this.definitionManager.hasProvider(e)?await this.definitionManager.provideDefinition(e,t,i):null}async getDefinitionLinks(e,t,i){return this.definitionManager.hasProvider(e)?await this.definitionManager.provideDefinitionLinks(e,t,i):null}async getDeclaration(e,t,i){return this.declarationManager.hasProvider(e)?await this.declarationManager.provideDeclaration(e,t,i):null}async getTypeDefinition(e,t,i){return this.typeDefinitionManager.hasProvider(e)?await this.typeDefinitionManager.provideTypeDefinition(e,t,i):null}async getImplementation(e,t,i){return this.implementationManager.hasProvider(e)?await this.implementationManager.provideReferences(e,t,i):null}async getReferences(e,t,i,r){return this.referenceManager.hasProvider(e)?await this.referenceManager.provideReferences(e,i,t,r):null}async getDocumentSymbol(e,t){return await this.documentSymbolManager.provideDocumentSymbols(e,t)}getDocumentSymbolMetadata(e){return this.documentSymbolManager.getMetaData(e)}async getSelectionRanges(e,t,i){return await this.selectionRangeManager.provideSelectionRanges(e,t,i)}async getWorkspaceSymbols(e,t){return e=e||"",await this.workspaceSymbolsManager.provideWorkspaceSymbols(e,t)}async resolveWorkspaceSymbol(e,t){return await this.workspaceSymbolsManager.resolveWorkspaceSymbol(e,t)}async prepareRename(e,t,i){return await this.renameManager.prepareRename(e,t,i)}async provideRenameEdits(e,t,i,r){return await this.renameManager.provideRenameEdits(e,t,i,r)}async provideDocumentFormattingEdits(e,t,i){if(!this.formatManager.hasProvider(e)){if(!this.formatRangeManager.hasProvider(e))return null;let o=e.positionAt(e.getText().length),s=xo.Range.create(xo.Position.create(0,0),o);return await this.provideDocumentRangeFormattingEdits(e,s,t,i)}return await this.formatManager.provideDocumentFormattingEdits(e,t,i)}async provideDocumentRangeFormattingEdits(e,t,i,r){return this.formatRangeManager.hasProvider(e)?await this.formatRangeManager.provideDocumentRangeFormattingEdits(e,t,i,r):null}async getCodeActions(e,t,i,r){return await this.codeActionManager.provideCodeActions(e,t,i,r)}async getDocumentHighLight(e,t,i){return await this.documentHighlightManager.provideDocumentHighlights(e,t,i)}async getDocumentLinks(e,t){return this.documentLinkManager.hasProvider(e)?await this.documentLinkManager.provideDocumentLinks(e,t)||[]:null}async resolveDocumentLink(e,t){return await this.documentLinkManager.resolveDocumentLink(e,t)}async provideDocumentColors(e,t){return await this.documentColorManager.provideDocumentColors(e,t)}async provideFoldingRanges(e,t,i){return this.foldingRangeManager.hasProvider(e)?await this.foldingRangeManager.provideFoldingRanges(e,t,i):null}async provideColorPresentations(e,t,i){return await this.documentColorManager.provideColorPresentations(e,t,i)}async getCodeLens(e,t){return await this.codeLensManager.provideCodeLenses(e,t)}async resolveCodeLens(e,t){return e.command!=null?e:await this.codeLensManager.resolveCodeLens(e,t)}async resolveCodeAction(e,t){return await this.codeActionManager.resolveCodeAction(e,t)}async provideDocumentOnTypeEdits(e,t,i,r){return this.onTypeFormatManager.onCharacterType(e,t,i,r)}canFormatOnType(e,t){return this.onTypeFormatManager.getProvider(t,e)!=null}async prepareCallHierarchy(e,t,i){return this.callHierarchyManager.prepareCallHierarchy(e,t,i)}async provideIncomingCalls(e,t,i){return this.callHierarchyManager.provideCallHierarchyIncomingCalls(e,t,i)}async provideOutgoingCalls(e,t,i){return this.callHierarchyManager.provideCallHierarchyOutgoingCalls(e,t,i)}getLegend(e,t){return t?this.semanticTokensRangeManager.getLegend(e):this.semanticTokensManager.getLegend(e)}hasSemanticTokensEdits(e){return this.semanticTokensManager.hasSemanticTokensEdits(e)}async provideDocumentSemanticTokens(e,t){return this.semanticTokensManager.provideDocumentSemanticTokens(e,t)}async provideDocumentSemanticTokensEdits(e,t,i){return this.semanticTokensManager.provideDocumentSemanticTokensEdits(e,t,i)}async provideDocumentRangeSemanticTokens(e,t,i){return this.semanticTokensRangeManager.provideDocumentRangeSemanticTokens(e,t,i)}async provideInlayHints(e,t,i){return this.inlayHintManager.provideInlayHints(e,t,i)}async resolveInlayHint(e,t){return this.inlayHintManager.resolveInlayHint(e,t)}hasLinkedEditing(e){return this.linkedEditingManager.hasProvider(e)}async provideLinkedEdits(e,t,i){return this.linkedEditingManager.provideLinkedEditingRanges(e,t,i)}createDiagnosticCollection(e){return Pt.create(e)}hasProvider(e,t){switch(e){case"formatOnType":return this.onTypeFormatManager.hasProvider(t);case"rename":return this.renameManager.hasProvider(t);case"onTypeEdit":return this.onTypeFormatManager.hasProvider(t);case"documentLink":return this.documentLinkManager.hasProvider(t);case"documentColor":return this.documentColorManager.hasProvider(t);case"foldingRange":return this.foldingRangeManager.hasProvider(t);case"format":return this.formatManager.hasProvider(t)||this.formatRangeManager.hasProvider(t);case"codeAction":return this.codeActionManager.hasProvider(t);case"workspaceSymbols":return this.workspaceSymbolsManager.hasProvider();case"formatRange":return this.formatRangeManager.hasProvider(t);case"hover":return this.hoverManager.hasProvider(t);case"signature":return this.signatureManager.hasProvider(t);case"documentSymbol":return this.documentSymbolManager.hasProvider(t);case"documentHighlight":return this.documentHighlightManager.hasProvider(t);case"definition":return this.definitionManager.hasProvider(t);case"declaration":return this.declarationManager.hasProvider(t);case"typeDefinition":return this.typeDefinitionManager.hasProvider(t);case"reference":return this.referenceManager.hasProvider(t);case"implementation":return this.implementationManager.hasProvider(t);case"codeLens":return this.codeLensManager.hasProvider(t);case"selectionRange":return this.selectionRangeManager.hasProvider(t);case"callHierarchy":return this.callHierarchyManager.hasProvider(t);case"semanticTokens":return this.semanticTokensManager.hasProvider(t);case"semanticTokensRange":return this.semanticTokensRangeManager.hasProvider(t);case"linkedEditing":return this.linkedEditingManager.hasProvider(t);case"inlayHint":return this.inlayHintManager.hasProvider(t);default:throw new Error(`Invalid provider name: ${e}`)}}},F=new see});var aee,Q5e,hx,lee=P(()=>{"use strict";aee=S(q());he();z();Q5e=Y()("model-dialog"),hx=class{constructor(e,t){this.nvim=e;this.config=t;this.disposables=[];this._onDidClose=new aee.Emitter;this.onDidClose=this._onDidClose.event;_.on("BufWinLeave",i=>{i==this.bufnr&&(this.dispose(),t.callback&&t.callback(-1))},null,this.disposables),_.on("FloatBtnClick",(i,r)=>{if(i==this.bufnr){this.dispose();let o=t==null?void 0:t.buttons.filter(s=>s.disabled!=!0);t.callback&&t.callback(o[r].index)}},null,this.disposables)}get lines(){return[...this.config.content.split(/\r?\n/)]}async show(e){let{nvim:t}=this,{title:i,close:r,highlights:o,buttons:s}=this.config,a=this.config.borderhighlight||e.floatBorderHighlight,l=this.config.highlight||e.floatHighlight,u={maxwidth:e.maxWidth||80};i&&(u.title=i),(r||typeof r>"u")&&(u.close=1),e.maxHeight&&(u.maxHeight=e.maxHeight),e.maxWidth&&(u.maxWidth=e.maxWidth),l&&(u.highlight=l),o&&(u.highlights=o),a&&(u.borderhighlight=[a]),s&&(u.buttons=s.filter(h=>!h.disabled).map(h=>h.text)),e.rounded&&(u.rounded=1),Array.isArray(u.buttons)&&(u.getchar=1);let c=await t.call("coc#dialog#create_dialog",[this.lines,u]);if(!c)throw new Error("Unable to open dialog window.");this.bufnr=c[1],t.command("redraw",!0)}get winid(){return this.bufnr?this.nvim.call("bufwinid",[this.bufnr]):Promise.resolve(null)}dispose(){this._onDidClose.fire(),this.bufnr=void 0,J(this.disposables),this.disposables=[]}}});var _P,rVe,Kf,uee=P(()=>{"use strict";_P=S(q());he();z();rVe=Y()("model-input"),Kf=class{constructor(e,t){this.nvim=e;this.disposables=[];this._dimension=[0,0,0,0];this._onDidFinish=new _P.Emitter;this._onDidChange=new _P.Emitter;this.onDidFinish=this._onDidFinish.event;this.onDidChange=this._onDidChange.event;this._input=t,this.disposables.push(this._onDidFinish),this.disposables.push(this._onDidChange);let i;Object.defineProperty(this,"title",{set:s=>{i=s,this._winid&&e.call("coc#dialog#change_title",[this._winid,s],!0)},get:()=>i});let r=!1;Object.defineProperty(this,"loading",{set:s=>{r=s,this._winid&&e.call("coc#dialog#change_loading",[this._winid,s],!0)},get:()=>r});let o;Object.defineProperty(this,"borderhighlight",{set:s=>{o=s,this._winid&&e.call("coc#dialog#change_border_hl",[this._winid,s],!0)},get:()=>o}),_.on("BufWinLeave",s=>{s==this._bufnr&&(this._winid=void 0,this._input=null,this.dispose())},null,this.disposables),_.on("PromptInsert",(s,a)=>{a==this._bufnr&&(this._input=s,this.dispose())},null,this.disposables),_.on("TextChangedI",(s,a)=>{s==this._bufnr&&(this._input=a.line,this._onDidChange.fire(a.line))},null,this.disposables)}get dimension(){let{_dimension:e}=this;return{width:e[0],height:e[1],row:e[2],col:e[3]}}get bufnr(){return this._bufnr}async show(e,t){var r;this.title=e,this.borderhighlight=(r=t.borderhighlight)!=null?r:"CocFloating",this.loading=!1;let i=await this.nvim.call("coc#dialog#create_prompt_win",[e,this._input,t]);if(!i)throw new Error("Unable to open input window");return this._bufnr=i[0],this._winid=i[1],this._dimension=i[2],!0}dispose(){this._onDidFinish.fire(this._input),this._winid&&this.nvim.call("coc#float#close",[this._winid],!0),this._winid=void 0,this._bufnr=void 0,J(this.disposables)}}});var dx,Ch,PP=P(()=>{"use strict";dx=process.env.VIM_NODE_RPC=="1",Ch=class{constructor(e,t,i){this.nvim=e;this.winid=t;this.bufnr=i}get valid(){return this.nvim.call("coc#float#valid",[this.winid]).then(e=>!!e)}close(){this.nvim.call("coc#float#close",[this.winid],!0)}refreshScrollbar(){dx||this.nvim.call("coc#float#nvim_scrollbar",[this.winid],!0)}execute(e){this.nvim.call("coc#compat#execute",[this.winid,e],!0)}async scrollForward(){let{nvim:e,bufnr:t,winid:i}=this,o=await e.createBuffer(t).length,s;if(dx)s=await e.eval(`get(popup_getpos(${i}), 'lastline', 0)`);else{let a=await e.call("getwininfo",[i]);if(!a||!a.length)return;s=a[0].botline}s>=o||s==0||(e.pauseNotification(),this.setCursor(s-1),this.execute("silent! noa setl scrolloff=0"),this.execute(`normal! ${s}Gzt`),this.refreshScrollbar(),e.command("redraw",!0),e.resumeNotification(!1,!0))}async scrollBackward(){let{nvim:e,winid:t}=this,i;if(dx)i=await e.eval(`get(popup_getpos(${t}), 'firstline', 0)`);else{let r=await e.call("getwininfo",[t]);if(!r||!r.length)return;i=r[0].topline}i!=1&&(e.pauseNotification(),this.setCursor(i-1),this.execute(`normal! ${i}Gzb`),this.refreshScrollbar(),e.command("redraw",!0),e.resumeNotification(!1,!0))}setCursor(e){let{nvim:t,bufnr:i,winid:r}=this;dx?t.call("win_execute",[r,`exe ${e+1}`],!0):(t.createWindow(r).notify("nvim_win_set_cursor",[[e+1,0]]),t.command(`sign unplace 6 buffer=${i}`,!0),t.command(`sign place 6 line=${e+1} name=CocCurrentLine buffer=${i}`,!0))}}});function Ql(n){return n?typeof n.text=="string":!1}var cee,Rke,gx,hee=P(()=>{"use strict";cee=S(q());he();z();Fe();PP();Rke=Y()("model-menu");gx=class{constructor(e,t,i){this.nvim=e;this.config=t;this.currIndex=0;this.disposables=[];this.keyMappings=new Map;this.shortcutIndexes=new Set;this._disposed=!1;this._onDidClose=new cee.Emitter;this.onDidClose=this._onDidClose.event;this.total=t.items.length,i&&i.onCancellationRequested(()=>{var r;this.win?(r=this.win)==null||r.close():(this._onDidClose.fire(-1),this.dispose())}),this.disposables.push(this._onDidClose),this.addKeymappings()}attachEvents(){_.on("InputChar",this.onInputChar.bind(this),null,this.disposables),_.on("BufWinLeave",e=>{e==this.bufnr&&(this._onDidClose.fire(-1),this.dispose())},null,this.disposables)}addKeymappings(){let{nvim:e}=this;this.addKeys(["<esc>","<C-c>"],()=>{this._onDidClose.fire(-1),this.dispose()}),this.addKeys(["\r","<cr>"],()=>{this.selectCurrent()});let t=s=>{var a;!this.win||(e.pauseNotification(),this.setCursor(s),(a=this.win)==null||a.refreshScrollbar(),e.command("redraw",!0),e.resumeNotification(!1,!0))};this.addKeys("<C-f>",async()=>{var s;await((s=this.win)==null?void 0:s.scrollForward())}),this.addKeys("<C-b>",async()=>{var s;await((s=this.win)==null?void 0:s.scrollBackward())}),this.addKeys(["j","<down>","<tab>","<C-n>"],()=>{let s=this.currIndex==this.total-1?0:this.currIndex+1;t(s)}),this.addKeys(["k","<up>","<s-tab>","<C-p>"],()=>{let s=this.currIndex==0?this.total-1:this.currIndex-1;t(s)}),this.addKeys(["g"],()=>{t(0)}),this.addKeys(["G"],()=>{t(this.total-1)});let i,r,o=s=>{this.isDisabled(s)||(this._onDidClose.fire(s),this.dispose())};this.addKeys(["0","1","2","3","4","5","6","7","8","9"],s=>{i&&clearTimeout(i);let a=parseInt(s,10);if(!(isNaN(a)||a>this.total)&&!(r==null&&a==0)){if(r){let l=r*10+a;r=void 0,o(l-1);return}if(this.total<10||a*10>this.total){o(a-1);return}i=setTimeout(async()=>{o(a-1)},200),r=a}}),this.config.shortcuts&&this.addShortcuts(o)}addShortcuts(e){let{items:t}=this.config;t.map(r=>Ql(r)?r.text:r).forEach((r,o)=>{if(r.length){let s=r[0];wk(s.charCodeAt(0))&&!this.keyMappings.has(s)&&(this.shortcutIndexes.add(o),this.addKeys(s,()=>{e(o)}))}})}isDisabled(e){let{items:t}=this.config,i=t[e];return!!(Ql(i)&&i.disabled)}async show(e={}){let{nvim:t,shortcutIndexes:i}=this,{title:r,items:o,position:s}=this.config,a={};r&&(a.title=r),s==="center"&&(a.relative="editor"),e.maxHeight&&(a.maxHeight=e.maxHeight),e.maxWidth&&(a.maxWidth=e.maxWidth),e.floatHighlight&&(a.highlight=e.floatHighlight),e.floatBorderHighlight&&(a.borderhighlight=[e.floatBorderHighlight]),e.rounded&&(a.rounded=1);let l=[],u=o.map((h,d)=>{let g=Ql(h)?h.text:h,f=d<99?`${d+1}. `:"";return i.has(d)&&l.push({lnum:d,hlGroup:e.shortcutHighlight||"MoreMsg",colStart:V(f),colEnd:V(f)+1}),f+g.trim()});u.forEach((h,d)=>{let g=o[d];Ql(g)&&g.disabled&&l.push({hlGroup:"CocDisabled",lnum:d,colStart:0,colEnd:V(h)})}),l.length&&(a.highlights=l),e.confirmKey&&e.confirmKey!="<cr>"&&this.addKeys(e.confirmKey,()=>{this.selectCurrent()});let c=await t.call("coc#dialog#create_menu",[u,a]);if(!c)throw new Error("Unable to create menu window");if(t.command("redraw",!0),!this._disposed)return this.win=new Ch(t,c[0],c[1]),this.bufnr=c[1],this.attachEvents(),t.call("coc#prompt#start_prompt",["menu"],!0),c[0]}selectCurrent(){if(this.isDisabled(this.currIndex)){let e=this.config.items[this.currIndex];e.disabled.reason&&this.nvim.outWriteLine(`Item disabled: ${e.disabled.reason}`);return}this._onDidClose.fire(this.currIndex),this.dispose()}get buffer(){return this.bufnr?this.nvim.createBuffer(this.bufnr):void 0}dispose(){var e;this._disposed=!0,J(this.disposables),this.shortcutIndexes.clear(),this.keyMappings.clear(),this.nvim.call("coc#prompt#stop_prompt",["menu"],!0),(e=this.win)==null||e.close(),this.bufnr=void 0,this.win=void 0}async onInputChar(e,t){if(e!="menu"||!this.win)return;let i=this.keyMappings.get(t);i?await Promise.resolve(i(t)):Rke.warn(`Ignored key press: ${t}`)}setCursor(e){!this.win||(this.currIndex=e,this.win.setCursor(e))}addKeys(e,t){if(Array.isArray(e))for(let i of e)this.keyMappings.set(i,t);else this.keyMappings.set(e,t)}}});var bVe,Vl,RP=P(()=>{"use strict";he();z();bVe=Y()("model-notification"),Vl=class{constructor(e,t,i=!0){this.nvim=e;this.config=t;this.disposables=[];this._disposed=!1;i&&(_.on("BufWinLeave",r=>{r==this.bufnr&&(this.dispose(),t.callback&&t.callback(-1))},null,this.disposables),_.on("FloatBtnClick",(r,o)=>{if(r==this.bufnr){this.dispose();let s=t==null?void 0:t.buttons.filter(a=>a.disabled!=!0);t.callback&&t.callback(s[o].index)}},null,this.disposables))}get lines(){return this.config.content?this.config.content.split(/\r?\n/):[]}async show(e){let{nvim:t}=this,{buttons:i,kind:r,title:o}=this.config,s=Object.assign({},e);if(s.kind=r!=null?r:"",o&&(s.title=o),e.broder&&(s.borderhighlight=r?`CocNotification${r[0].toUpperCase()}${r.slice(1)}`:e.highlight),Array.isArray(i)){let l=i.filter(u=>!u.disabled).map(u=>u.text);l.length&&(s.actions=l)}let a=await t.call("coc#notify#create",[this.lines,s]);return a?(this._disposed?(this.nvim.call("coc#float#close",[a[0]],!0),this.nvim.redrawVim()):(this._winid=a[0],this.bufnr=a[1]),this._winid!=null):!1}get winid(){return this._winid}dispose(){if(this._disposed)return;this._disposed=!0;let{winid:e}=this;e&&(this.nvim.call("coc#notify#close",[e],!0),this.nvim.redrawVim()),this.bufnr=void 0,this._winid=void 0,J(this.disposables)}}});var dee,Lke,Ike,fx,gee=P(()=>{"use strict";dee=S(q());he();z();Fe();PP();Lke=Y()("model-dialog"),Ike=process.env.VIM_NODE_RPC=="1",fx=class{constructor(e,t,i){this.nvim=e;this.config=t;this.picked=new Set;this.currIndex=0;this.disposables=[];this.keyMappings=new Map;this._onDidClose=new dee.Emitter;this.onDidClose=this._onDidClose.event;for(let r=0;r<t.items.length;r++)t.items[r].picked&&this.picked.add(r);this.total=t.items.length,i&&i.onCancellationRequested(()=>{var r;(r=this.win)==null||r.close()}),this.disposables.push(this._onDidClose),this.addKeymappings()}attachEvents(){_.on("InputChar",this.onInputChar.bind(this),null,this.disposables),_.on("BufWinLeave",e=>{e==this.bufnr&&(this._onDidClose.fire(void 0),this.bufnr=void 0,this.win=void 0,this.dispose())},null,this.disposables),_.on("FloatBtnClick",(e,t)=>{if(e==this.bufnr){if(t==0){let i=Array.from(this.picked);this._onDidClose.fire(i.length?i:void 0)}else this._onDidClose.fire(void 0);this.dispose()}},null,this.disposables)}addKeymappings(){let{nvim:e}=this,t=r=>{this.picked.has(r)?this.picked.delete(r):this.picked.add(r)};this.addKeys("<LeftRelease>",async()=>{if(Ike||!this.win)return;let[r,o,s]=await e.eval("[v:mouse_winid,v:mouse_lnum,v:mouse_col]");if(global.hasOwnProperty("__TEST__")){let a=await e.getVar("mouse_position");r=a[0],o=a[1],s=a[2]}e.pauseNotification(),r==this.win.winid&&(s<=3?(t(o-1),this.changeLine(o-1)):this.setCursor(o-1)),e.call("win_gotoid",[r],!0),e.call("cursor",[o,s],!0),e.call("coc#float#nvim_float_click",[],!0),e.command("redraw",!0),await e.resumeNotification()}),this.addKeys(["<esc>","<C-c>"],()=>{this._onDidClose.fire(void 0),this.dispose()}),this.addKeys("<cr>",()=>{if(this.picked.size==0)this._onDidClose.fire(void 0);else{let r=Array.from(this.picked);this._onDidClose.fire(r)}this.dispose()});let i=r=>{e.pauseNotification(),this.setCursor(r),this.win.refreshScrollbar(),e.command("redraw",!0),e.resumeNotification(!1,!0)};this.addKeys(["j","<down>","<tab>","<C-n>"],()=>{let r=this.currIndex==this.total-1?0:this.currIndex+1;i(r)}),this.addKeys(["k","<up>","<s-tab>","<C-p>"],()=>{let r=this.currIndex==0?this.total-1:this.currIndex-1;i(r)}),this.addKeys(["g"],()=>{i(0)}),this.addKeys(["G"],()=>{i(this.total-1)}),this.addKeys(" ",async()=>{let r=this.currIndex;t(r),e.pauseNotification(),this.changeLine(r),this.currIndex!=this.total-1&&this.setCursor(this.currIndex+1),e.command("redraw",!0),await e.resumeNotification()}),this.addKeys("<C-f>",async()=>{var r;await((r=this.win)==null?void 0:r.scrollForward())}),this.addKeys("<C-b>",async()=>{var r;await((r=this.win)==null?void 0:r.scrollBackward())})}async show(e={}){let{nvim:t}=this,{title:i,items:r}=this.config,o={close:1,cursorline:1};if(e.maxHeight&&(o.maxHeight=e.maxHeight),e.maxWidth&&(o.maxWidth=e.maxWidth),i&&(o.title=i),e.floatHighlight&&(o.highlight=e.floatHighlight),e.floatBorderHighlight&&(o.borderhighlight=[e.floatBorderHighlight]),e.pickerButtons){let u=e.pickerButtonShortcut;o.buttons=["Submit"+(u?" <cr>":""),"Cancel"+(u?" <esc>":"")]}e.rounded&&(o.rounded=1),e.confirmKey&&e.confirmKey!="<cr>"&&this.addKeys(e.confirmKey,()=>{this._onDidClose.fire(void 0),this.dispose()});let s=[],a=[];for(let u=0;u<r.length;u++){let c=r[u],h=`[${c.picked?"x":" "}] ${c.label}`;if(c.description){let d=V(h);h=h+` ${c.description}`,a.push({hlGroup:"Comment",lnum:u,colStart:d,colEnd:V(h)})}s.push(h)}a.length&&(o.highlights=a);let l=await t.call("coc#dialog#create_dialog",[s,o]);return this.win=new Ch(t,l[0],l[1]),this.bufnr=l[1],t.call("coc#prompt#start_prompt",["picker"],!0),this.attachEvents(),t.command("redraw",!0),l[0]}get buffer(){return this.bufnr?this.nvim.createBuffer(this.bufnr):void 0}dispose(){var e;this.picked.clear(),this.keyMappings.clear(),J(this.disposables),this.nvim.call("coc#prompt#stop_prompt",["picker"],!0),(e=this.win)==null||e.close(),this.win=void 0}async onInputChar(e,t){if(e!="picker"||!this.win)return;let i=this.keyMappings.get(t);i?await Promise.resolve(i(t)):Lke.warn(`Ignored key press: ${t}`)}changeLine(e){let{nvim:t}=this,i=this.config.items[e];if(!i)return;let r=`[${this.picked.has(e)?"x":" "}] ${i.label}`,o=V(r);i.description&&(r=r+` ${i.description}`),t.call("setbufline",[this.bufnr,e+1,r],!0),t.createBuffer(this.bufnr).addHighlight({hlGroup:"Comment",line:e,srcId:1,colStart:o,colEnd:-1})}setCursor(e){!this.win||(this.currIndex=e,this.win.setCursor(e))}addKeys(e,t){if(Array.isArray(e))for(let i of e)this.keyMappings.set(i,t);else this.keyMappings.set(e,t)}}});var px,IVe,mx,fee=P(()=>{"use strict";RP();px=S(q());he();IVe=Y()("model-progress"),mx=class extends Vl{constructor(e,t){super(e,{kind:"progress",title:t.title,buttons:t.cancellable?[{index:1,text:"Cancel"}]:void 0},!1);this.option=t;this._onDidFinish=new px.Emitter;this.onDidFinish=this._onDidFinish.event;this.disposables.push(this._onDidFinish),_.on("BufWinLeave",i=>{i==this.bufnr&&(this.tokenSource&&this.tokenSource.cancel(),this._onDidFinish.fire(void 0),this.dispose())},null,this.disposables)}async show(e){let{task:t}=this.option,i=this.tokenSource=new px.CancellationTokenSource;this.disposables.push(i);let r=0,o=await super.show(e);return t({report:s=>{if(!this.winid)return;let{nvim:a}=this;s.increment&&(r+=s.increment,a.call("coc#window#set_var",[this.winid,"percent",`${r}%`],!0)),s.message&&a.call("coc#window#set_var",[this.winid,"message",s.message.replace(/\r?\n/g," ")],!0)}},i.token).then(s=>{this._disposed||(this._onDidFinish.fire(s),this.dispose())},s=>{this.nvim.echoError(s),!this._disposed&&(this._onDidFinish.fire(void 0),this.dispose())}),o}}});var bx,Sh,yx,pee=P(()=>{"use strict";he();bx=S(q());z();Sh="filter",yx=class{constructor(e,t){this.nvim=e;this._activated=!1;this.history=[];this.disposables=[];this._onDidUpdate=new bx.Emitter;this._onDidExit=new bx.Emitter;this._onDidKeyPress=new bx.Emitter;this.onDidKeyPress=this._onDidKeyPress.event;this.onDidUpdate=this._onDidUpdate.event;this.onDidExit=this._onDidExit.event;this.text="",_.on("InputChar",(i,r)=>{if(!(i!==Sh||!this._activated)){if(!t.includes(r)){if(r.length==1){this.text=this.text+r,this._onDidUpdate.fire(this.text);return}if(r=="<bs>"||r=="<C-h>"){this.text=this.text.slice(0,-1),this._onDidUpdate.fire(this.text);return}if(r=="<C-u>"){this.text="",this._onDidUpdate.fire(this.text);return}if(r=="<C-n>"){let o=this.history.indexOf(this.text),s=this.history[o+1]||this.history[0];s&&(this.text=s,this._onDidUpdate.fire(this.text));return}if(r=="<C-p>"){let o=this.history.indexOf(this.text),s=this.history[o-1]||this.history[this.history.length-1];s&&(this.text=s,this._onDidUpdate.fire(this.text))}if(r=="<esc>"||r=="<C-o>"){this.deactivate();return}}this._onDidKeyPress.fire(r)}},null,this.disposables)}active(){this._activated||(this._activated=!0,this.text="",this.nvim.call("coc#prompt#start_prompt",[Sh],!0))}deactivate(e){if(!this._activated)return;this.nvim.call("coc#prompt#stop_prompt",[Sh],!0),this._activated=!1;let{text:t}=this;this.text="",this._onDidExit.fire(e),t&&!this.history.includes(t)&&this.history.push(t)}get activated(){return this._activated}dispose(){this.deactivate(),this.history=[],this._onDidKeyPress.dispose(),this._onDidUpdate.dispose(),this._onDidExit.dispose(),J(this.disposables)}}});var bee={};vs(bee,{default:()=>eu});var qi,mee,LP,IP,jP,eu,vx=P(()=>{"use strict";qi=S(q());xi();he();Bo();z();_w();Qr();Ht();Fe();De();Q();pee();ex();mee=Y()("BasicTreeView"),LP="tree",IP=3e3,jP=1,eu=class{constructor(e,t){this.viewId=e;this.opts=t;this._selection=[];this._onDispose=new qi.Emitter;this._onDidRefrash=new qi.Emitter;this._onDidExpandElement=new qi.Emitter;this._onDidCollapseElement=new qi.Emitter;this._onDidChangeSelection=new qi.Emitter;this._onDidChangeVisibility=new qi.Emitter;this.onDidRefrash=this._onDidRefrash.event;this.onDispose=this._onDispose.event;this.onDidExpandElement=this._onDidExpandElement.event;this.onDidCollapseElement=this._onDidCollapseElement.event;this.onDidChangeSelection=this._onDidChangeSelection.event;this.onDidChangeVisibility=this._onDidChangeVisibility.event;this.retryTimers=0;this.renderedItems=[];this.nodesMap=new Map;this.mutex=new Qt;this.disposables=[];this.lineState={titleCount:0,messageCount:0};this.loadConfiguration(),v.onDidChangeConfiguration(this.loadConfiguration,this,this.disposables),t.enableFilter&&(this.filter=new yx(this.nvim,[this.keys.selectNext,this.keys.selectPrevious,this.keys.invoke])),this.tooltipFactory=new li(v.nvim),this.provider=t.treeDataProvider,this.leafIndent=t.disableLeafIndent!==!0,this.winfixwidth=t.winfixwidth!==!1,this.autoWidth=t.autoWidth===!0;let i;Object.defineProperty(this,"message",{set:a=>{i=a?a.replace(/\r?\n/g," "):void 0,this.updateHeadLines()},get:()=>i});let r=e.replace(/\r?\n/g," ");Object.defineProperty(this,"title",{set:a=>{r=a?a.replace(/\r?\n/g," "):void 0,this.updateHeadLines()},get:()=>r});let o;Object.defineProperty(this,"description",{set:a=>{o=a?a.replace(/\r?\n/g," "):void 0,this.updateHeadLines()},get:()=>o});let s;Object.defineProperty(this,"filterText",{set:a=>{let{titleCount:l,messageCount:u}=this.lineState,c=l+u;if(a!=null){let h=[{lnum:c,colStart:V(a),colEnd:V(a)+1,hlGroup:"Cursor"}];this.renderedItems=[],this.updateUI([a+" "],h,c,-1,!0),this.doFilter(a)}else s!=null&&this.updateUI([],[],c,c+1);s=a},get:()=>s}),this.provider.onDidChangeTreeData&&this.provider.onDidChangeTreeData(this.onDataChange,this,this.disposables),_.on("BufUnload",a=>{if(a!=this.bufnr)return;let l=this.winid!=null;this.winid=void 0,this.bufnr=void 0,l&&this._onDidChangeVisibility.fire({visible:!1}),this.dispose()},null,this.disposables),_.on("WinClosed",a=>{this.winid==a&&(this.winid=void 0,this._onDidChangeVisibility.fire({visible:!1}))},null,this.disposables),_.on("BufWinLeave",(a,l)=>{a==this.bufnr&&l==this.winid&&(this.winid=void 0,this._onDidChangeVisibility.fire({visible:!1}))},null,this.disposables),D.onDidTabClose(a=>{this._targetTabId===a&&this.dispose()},null,this.disposables),_.on("CursorHold",async a=>{a==this.bufnr&&await this.onHover()},null,this.disposables),_.on(["CursorMoved","BufEnter"],()=>{this.cancelResolve()},null,this.disposables),_.on("WinEnter",a=>{var d;if(a!=this.windowId||!((d=this.filter)!=null&&d.activated))return;let l=this.nvim.createBuffer(this.bufnr),u=this.startLnum-1,c=this.filterText?this.filterText.length:0,h=qi.Range.create(u,c,u,c+1);l.highlightRanges(LP,"Cursor",[h]),this.nvim.call("coc#prompt#start_prompt",[Sh],!0),this.redraw()},null,this.disposables),_.on("WinLeave",a=>{var u;if(a!=this.windowId||!((u=this.filter)!=null&&u.activated))return;let l=this.nvim.createBuffer(this.bufnr);this.nvim.call("coc#prompt#stop_prompt",[Sh],!0),l.clearNamespace(LP,this.startLnum-1,this.startLnum)},null,this.disposables),this.disposables.push(this._onDidChangeVisibility,this._onDidChangeSelection,this._onDidCollapseElement,this._onDidExpandElement),this.filter&&(this.filter.onDidExit(a=>{this.nodesMap.clear(),this.filterText=void 0,this.itemsToFilter=void 0,a&&typeof this.provider.getParent=="function"?(this.renderedItems=[],this.reveal(a,{focus:!0})):(this.clearSelection(),this.render())}),this.filter.onDidUpdate(a=>{this.filterText=a}),this.filter.onDidKeyPress(async a=>{var c,h;let l=this.renderedItems;if(!(l!=null&&l.length))return;let u=this.selection[0];if(a=="<up>"||a==this.keys.selectPrevious){let d=l.findIndex(p=>p.node==u),g=d==-1||d==0?l.length-1:d-1,f=(c=l[g])==null?void 0:c.node;f&&this.selectItem(f,!0)}if(a=="<down>"||a==this.keys.selectNext){let d=l.findIndex(p=>p.node==u),g=d==-1||d==l.length-1?0:d+1,f=(h=l[g])==null?void 0:h.node;f&&this.selectItem(f,!0)}if(a=="<cr>"||a==this.keys.invoke){if(!u)return;await this.invokeCommand(u),this.filter.deactivate(u)}}))}get windowId(){return this.winid}get targetTabnr(){return D.getTabNumber(this._targetTabId)}get targetWinId(){return this._targetWinId}get targetBufnr(){return this._targetBufnr}get startLnum(){let e=this.filterText==null?0:1;return this.lineState.messageCount+this.lineState.titleCount+e}get nvim(){return v.nvim}loadConfiguration(e){if(!e||e.affectsConfiguration("tree")){let t=v.getConfiguration("tree");this.config={openedIcon:t.get("openedIcon"," "),closedIcon:t.get("closedIcon"," ")},this.keys={close:t.get("key.close"),invoke:t.get("key.invoke"),toggle:t.get("key.toggle"),actions:t.get("key.actions"),collapseAll:t.get("key.collapseAll"),toggleSelection:t.get("key.toggleSelection"),activeFilter:t.get("key.activeFilter"),selectNext:t.get("key.selectNext"),selectPrevious:t.get("key.selectPrevious")},e&&this.render()}}async doFilter(e){let t=[],i=0,r=await this.mutex.acquire();try{if(!this.itemsToFilter){let l=[],u=async h=>{for(let d of h){l.push(d);let g=await Promise.resolve(this.provider.getChildren(d));g!=null&&g.length&&await u(g)}},c=await Promise.resolve(this.provider.getChildren());await u(c),this.itemsToFilter=l}for(let l of this.itemsToFilter){let u=await this.getTreeItem(l),c=Uf.is(u.label)?u.label.label:u.label;if(!e||Ew(e,c)){let h=e?Dw(e,c):[];u.collapsibleState=0,u.label={label:c,highlights:e?Fz(h):[]};let{line:d,highlights:g}=this.getRenderedLine(u,i,0);t.push({level:0,node:l,line:d,index:i,score:e?yh(e,c):0,highlights:g}),i+=1}}t.sort((l,u)=>l.score!=u.score?u.score-l.score:l.index-u.index);let o=this.startLnum,s=[],a=this.renderedItems=t.map((l,u)=>(s.push(...l.highlights.map(c=>(c.lnum=o+u,c))),delete l.index,delete l.score,delete l.highlights,l));this.updateUI(a.map(l=>l.line),s,o,-1,!0),a.length?this.selectItem(a[0].node,!0):this.clearSelection(),this.redraw(),r()}catch(o){r(),mee.error("Error on tree filter:",o)}}async onHover(){let{nvim:e}=this,t=await e.call("line",["."]),i=this.getElementByLnum(t-1);if(!i)return;let r=this.nodesMap.get(i);if(!r)return;let o=r.item;if(!r.resolved&&(o=await this.resolveItem(i,o),!o)||!o.tooltip||!this.bufnr)return;let a={filetype:qi.MarkupContent.is(o.tooltip)&&o.tooltip.kind==qi.MarkupKind.Markdown?"markdown":"txt",content:qi.MarkupContent.is(o.tooltip)?o.tooltip.value:o.tooltip};await this.tooltipFactory.show([a],{modes:["n"]})}async onClick(e){let{nvim:t}=this,[i,r]=await t.eval("[getline('.'),col('.')]"),o=tt(i,0,r-1),s=i[o.length];if(!s)return;let{openedIcon:a,closedIcon:l}=this.config;/^\s*$/.test(o)&&[a,l].includes(s)?await this.toggleExpand(e):await this.invokeCommand(e)}async invokeCommand(e){let t=this.nodesMap.get(e);if(!t)return;this.selectItem(e);let i=t.item;if(!(!i.command&&(i=await this.resolveItem(e,i),!i))){if(!i.command)throw new Error("Failed to resolve command from TreeItem.");await re.execute(i.command)}}async invokeActions(e){if(this.selectItem(e),typeof this.provider.resolveActions!="function"){await D.showWarningMessage("No actions");return}let t=this.nodesMap.get(e),i=await Promise.resolve(this.provider.resolveActions(t.item,e));if(!i||i.length==0){await D.showWarningMessage("No actions available");return}let r=i.map(s=>s.title),o=await D.showMenuPicker(r,"Choose action");o!=-1&&await Promise.resolve(i[o].handler(e))}async onDataChange(e){var i;if((i=this.filter)!=null&&i.activated){this.itemsToFilter=void 0,await this.doFilter(this.filterText);return}if(this.clearSelection(),!e){await this.render();return}let t=await this.mutex.acquire();try{let r=this.renderedItems,o=r.findIndex(s=>s.node===e);if(o!=-1&&this.bufnr){let a=r[o].level,l=0;for(let d=o;d<r.length;d++){let g=r[d];(d==o||g&&g.level>a)&&(l+=1)}let u=[],c=[],h=o+this.startLnum;await this.appendTreeNode(e,a,h,u,c),r.splice(o,l,...u),this.updateUI(u.map(d=>d.line),c,h,h+l)}t()}catch(r){let o=`Error on tree refresh: ${r}`;mee.error(o,r),this.nvim.errWriteLine("[coc.nvim] "+o),t()}}async resolveItem(e,t){if(typeof this.provider.resolveTreeItem=="function"){let i=this.resolveTokenSource=new qi.CancellationTokenSource,r=i.token;if(t=await Promise.resolve(this.provider.resolveTreeItem(t,e,r)),i.dispose(),this.resolveTokenSource=void 0,r.isCancellationRequested)return}return this.nodesMap.set(e,{item:t,resolved:!0}),t}get visible(){return this.bufnr?this.winid!=null:!1}get valid(){return typeof this.bufnr=="number"}get selection(){return this._selection.slice()}async checkLines(){if(!this.bufnr)return;let t=await this.nvim.createBuffer(this.bufnr).lines,{titleCount:i,messageCount:r}=this.lineState;t=t.slice(i+r);let o=this.renderedItems.map(s=>s.line);return _e(t,o)}async toggleExpand(e){let t=this.nodesMap.get(e);if(!t)return;let i=t.item,r=this.getItemLnum(e),o=r-this.startLnum,s=this.renderedItems[o];if(!s||i.collapsibleState==0){if(typeof this.provider.getParent=="function"){let c=await Promise.resolve(this.provider.getParent(e));c&&(await this.toggleExpand(c),this.focusItem(c))}return}let a=0;if(i.collapsibleState==2){let c=s.level;for(let h=o+1;h<this.renderedItems.length;h++){let d=this.renderedItems[h];if(!d||d.level<=c)break;a+=1}i.collapsibleState=1}else i.collapsibleState==1&&(i.collapsibleState=2);let l=[],u=[];await this.appendTreeNode(s.node,s.level,r,l,u),this.renderedItems.splice(o,a+1,...l),this.updateUI(l.map(c=>c.line),u,r,r+a+1),this.refreshSigns(),i.collapsibleState==1?this._onDidCollapseElement.fire({element:e}):this._onDidExpandElement.fire({element:e})}toggleSelection(e){let t=this._selection.findIndex(i=>i===e);t!==-1?this.unselectItem(t):this.selectItem(e)}clearSelection(){if(!this.bufnr)return;this._selection=[],this.nvim.createBuffer(this.bufnr).unplaceSign({group:"CocTree"}),this._onDidChangeSelection.fire({selection:[]})}selectItem(e,t,i){let{nvim:r}=this;if(!this.bufnr||!v.env.sign)return;let o=this.getItemLnum(e);if(o==null)return;let s=r.createBuffer(this.bufnr),a=this._selection.includes(e);!this.opts.canSelectMany||t?this._selection=[e]:a||this._selection.push(e),r.pauseNotification(),(!this.opts.canSelectMany||t)&&s.unplaceSign({group:"CocTree"}),r.call("coc#compat#execute",[this.winid,`normal! ${o+1}G`],!0),s.placeSign({id:IP+o,lnum:o+1,name:"CocTreeSelected",group:"CocTree"}),i||this.redraw(),r.resumeNotification(!1,!0),a||this._onDidChangeSelection.fire({selection:this._selection})}unselectItem(e){let t=this._selection[e],i=this.getItemLnum(t);if(i==null||!this.bufnr||!v.env.sign)return;this._selection.splice(e,1),this.nvim.createBuffer(this.bufnr).unplaceSign({group:"CocTree",id:IP+i}),this._onDidChangeSelection.fire({selection:this._selection})}focusItem(e){if(!this.winid)return;let t=this.getItemLnum(e);t!=null&&this.nvim.call("coc#compat#execute",[this.winid,`exe ${t+1}`],!0)}getElementByLnum(e){let t=this.renderedItems[e-this.startLnum];return t?t.node:void 0}getItemLnum(e){let t=this.renderedItems.findIndex(i=>i.node===e);if(t!=-1)return this.startLnum+t}async getTreeItem(e){let t,i=!1,r=this.nodesMap.get(e);r!=null&&(t=r.item,i=r.resolved);let o=await Promise.resolve(this.provider.getTreeItem(e));if(o.id&&!t){for(let s of this.nodesMap.values())if(s.item.id===o.id){i=s.resolved,t=s.item;break}}return t&&t.collapsibleState!=0&&o.collapsibleState!=0&&(o.collapsibleState=t.collapsibleState),this.nodesMap.set(e,{item:o,resolved:i}),o}getRenderedLine(e,t,i){let{openedIcon:r,closedIcon:o}=this.config,s=[],{label:a,deprecated:l,description:u}=e,c=" ".repeat(i),h=(g,f)=>{let p=V(c);s.push({lnum:t,hlGroup:f,colStart:p,colEnd:p+V(g)})};switch(e.collapsibleState){case 2:{h(r,"CocTreeOpenClose"),c+=r+" ";break}case 1:{h(o,"CocTreeOpenClose"),c+=o+" ";break}default:c+=this.leafIndent?" ":""}if(e.icon){let{text:g,hlGroup:f}=e.icon;h(g,f),c+=g+" "}if(Uf.is(a)&&Array.isArray(a.highlights)){let g=V(c);for(let f of a.highlights)s.push({lnum:t,hlGroup:"Search",colStart:g+f[0],colEnd:g+f[1]})}let d=typeof a=="string"?a:a.label;return l&&h(d,"CocDeprecatedHighlight"),c+=d,u&&u.indexOf(`
`)==-1&&(c+=" ",h(u,"CocTreeDescription"),c+=u),{line:c,highlights:s}}async appendTreeNode(e,t,i,r,o){let s=1,a=await this.getTreeItem(e),l=this.getRenderedLine(a,i,t);if(o.push(...l.highlights),r.push({level:t,line:l.line,node:e}),a.collapsibleState==2){let u=t+1,c=await Promise.resolve(this.provider.getChildren(e))||[];for(let h of c){let d=await this.appendTreeNode(h,u,i+s,r,o);s=s+d}}return s}updateUI(e,t,i=0,r=-1,o=!1){if(!this.bufnr)return;let{nvim:s,winid:a}=this,l=s.createBuffer(this.bufnr);if(s.pauseNotification(),l.setOption("modifiable",!0,!0),l.setLines(e,{start:i,end:r,strictIndexing:!1},!0),this.autoWidth&&this.nvim.call("coc#window#adjust_width",[a],!0),t.length){let u=r==-1?-1:i+e.length;s.call("coc#highlight#update_highlights",[this.bufnr,LP,t,i,u],!0)}l.setOption("modifiable",!1,!0),o||this.redraw(),s.resumeNotification(!1,!0)}async reveal(e,t={}){var l;if((l=this.filter)!=null&&l.activated)return;let i=this.getItemLnum(e)!=null,{select:r,focus:o,expand:s}=t,a=e;if(typeof this.provider.getParent!="function")throw new Error("missing getParent function from provider for reveal.");if(!i)for(;a;){let u=await Promise.resolve(this.provider.getParent(a));if(u){let c=await this.getTreeItem(u);c.collapsibleState=2,a=u}else break}if(s){let u=await this.getTreeItem(e);if(u.collapsibleState==0)return;if(u.collapsibleState=2,typeof s=="number"&&s>1){let c=Math.min(s,2),h=await Promise.resolve(this.provider.getChildren(e));for(;(h==null?void 0:h.length)>0;){let d=[];for(let g of h){let f=await this.getTreeItem(g);if(f.collapsibleState!=0&&(f.collapsibleState=2,c>1)){let p=await Promise.resolve(this.provider.getChildren(g));d.push(...p)}}h=d,c=c-1}}}(!i||s)&&await this.render(),r!==!1&&this.selectItem(e),o&&this.focusItem(e)}updateHeadLines(e=!1){let{titleCount:t,messageCount:i}=this.lineState,r=e?-1:t+i,o=[],s=[];try{if(this.message&&(s.push({hlGroup:"MoreMsg",colStart:0,colEnd:V(this.message),lnum:0}),o.push(this.message),o.push("")),this.title){if(s.push({hlGroup:"CocTreeTitle",colStart:0,colEnd:V(this.title),lnum:o.length}),this.description){let a=V(this.title)+1;s.push({hlGroup:"Comment",colStart:a,colEnd:a+V(this.description),lnum:o.length})}o.push(this.title+(this.description?" "+this.description:""))}this.lineState.messageCount=this.message?2:0,this.lineState.titleCount=this.title?1:0,this.updateUI(o,s,0,r),e||this.refreshSigns()}catch(a){this.nvim.echoError(a)}}refreshSigns(){let{selection:e,nvim:t,bufnr:i}=this;if(!e.length||!i||!v.env.sign)return;let r=t.createBuffer(i);t.pauseNotification(),r.unplaceSign({group:"CocTree"});for(let o of e){let s=this.getItemLnum(o);s!=null&&r.placeSign({id:IP+s,lnum:s+1,name:"CocTreeSelected",group:"CocTree"})}t.resumeNotification(!1,!0)}async render(){if(!this.bufnr)return;let e=await this.mutex.acquire();try{let t=[],i=[],{startLnum:r}=this,o=await Promise.resolve(this.provider.getChildren()),s=0,a=r,l=[];if(!(o!=null&&o.length))this.message="No results";else{this.message=="No results"&&(this.message="");for(let c of o)a+=await this.appendTreeNode(c,s,a,l,i)}t.push(...l.map(c=>c.line)),this.renderedItems=l;let u=this.startLnum-r;u&&i.forEach(c=>c.lnum=c.lnum+u),this.updateUI(t,i,this.startLnum,-1),this._onDidRefrash.fire(),this.retryTimers=0,e()}catch(t){this.renderedItems=[],this.nodesMap.clear(),this.lineState={titleCount:0,messageCount:1},e();let i=`${t}`.replace(/\r?\n/g," ");if(this.updateUI([i],[{hlGroup:"WarningMsg",colStart:0,colEnd:V(i),lnum:0}]),this.retryTimers==5)return;this.timer=setTimeout(()=>{this.retryTimers=this.retryTimers+1,this.render()},500)}}async show(e="belowright 30vs"){if(this._creating)return!1;this._creating=!0;let{nvim:t}=this,i=this.winid,[r,o,s,a]=await t.eval(`[bufnr("%"),win_getid(),tabpagenr(),bufloaded(${this.bufnr||-1})]`);this._targetBufnr=r,this._targetWinId=o,this._targetTabId=D.getTabId(s),a||(this.bufnr=void 0);let l=await t.call("coc#window#find",["cocViewId",this.viewId]);if(this.bufnr&&l!==-1&&await t.call("winbufnr",[l])==this.bufnr){this._creating=!1;return}if(t.pauseNotification(),this.bufnr)l!=-1?(t.call("win_gotoid",[l],!0),t.command(`b ${this.bufnr}`,!0)):t.command(`silent keepalt ${e} ${this.bufname}`,!0);else{let h=jP;jP=jP+1,l!=-1?(t.call("win_gotoid",[l],!0),t.command(`silent edit +setl\\ buftype=nofile CocTree${h}`,!0)):t.command(`silent keepalt ${e} +setl\\ buftype=nofile CocTree${h}`,!0)}t.command(`setl bufhidden=${this.opts.bufhidden||"wipe"} nolist nonumber norelativenumber foldcolumn=0`,!0),t.command(`setl signcolumn=${this.opts.canSelectMany?"yes":"no"}${this.winfixwidth?" winfixwidth":""}`,!0),t.command("setl nocursorline nobuflisted wrap undolevels=-1 filetype=coctree nomodifiable noswapfile",!0),t.command(`let w:cocViewId = "${this.viewId.replace(/"/g,'\\"')}"`,!0),t.call("bufname",["%"],!0),t.call("bufnr",["%"],!0),t.call("win_getid",[],!0);let u=await t.resumeNotification();this.bufnr||this.registerKeymaps();let c=u[0];return this.bufname=c[c.length-3],this.bufnr=c[c.length-2],this.winid=c[c.length-1],i||this._onDidChangeVisibility.fire({visible:!0}),i&&i!==this.winid&&t.call("coc#window#close",[i],!0),this._creating=!1,this.updateHeadLines(!0),this.render(),!0}registerLocalKeymap(e,t,i,r=!1){this.disposables.push(v.registerLocalKeymap(e,t,async()=>{let o=await this.nvim.call("line",["."]),s=this.getElementByLnum(o-1);await Promise.resolve(i(s))},r))}registerKeymaps(){let{toggleSelection:e,actions:t,close:i,invoke:r,toggle:o,collapseAll:s,activeFilter:a}=this.keys,{nvim:l}=this,u=(c,h,d)=>{this.registerLocalKeymap(c,h,async g=>{g&&!this.nodesMap.has(g)||await Promise.resolve(d(g))},!0)};this.disposables.push(v.registerLocalKeymap("n","<C-o>",()=>{l.call("win_gotoid",[this._targetWinId],!0)},!0)),u("n","<LeftRelease>",async c=>{c&&await this.onClick(c)}),this.filter&&a&&u("n",a,async()=>{this.nvim.command(`exe ${this.startLnum}`,!0),this.filter.active(),this.filterText=""}),e&&u("n",e,async c=>{c&&this.toggleSelection(c)}),r&&u("n",r,async c=>{c&&await this.invokeCommand(c)}),t&&u("n",t,async c=>{c&&await this.invokeActions(c)}),o&&u("n",o,async c=>{c&&await this.toggleExpand(c)}),s&&u("n",s,async()=>{for(let c of this.nodesMap.values()){let h=c.item;h.collapsibleState==2&&(h.collapsibleState=1)}await this.render()}),i&&u("n",i,async()=>{this.hide()})}hide(){let{winid:e}=this;!e||(this.nvim.call("coc#window#close",[e],!0),this.redraw(),this.winid=void 0,this._onDidChangeVisibility.fire({visible:!1}))}redraw(){var e;(v.isVim||((e=this.filter)==null?void 0:e.activated))&&this.nvim.command("redraw",!0)}cancelResolve(){this.resolveTokenSource&&(this.resolveTokenSource.cancel(),this.resolveTokenSource=void 0)}dispose(){var t;if(!this.provider)return;this.timer&&clearTimeout(this.timer),this.cancelResolve();let{bufnr:e}=this;this.winid&&this._onDidChangeVisibility.fire({visible:!1}),e&&this.nvim.command(`silent! bwipeout! ${e}`,!0),this.winid=void 0,this.bufnr=void 0,(t=this.filter)==null||t.dispose(),this._selection=[],this.itemsToFilter=[],this.tooltipFactory.dispose(),this.renderedItems=[],this.nodesMap.clear(),this.provider=void 0,this._onDispose.fire(),this._onDispose.dispose(),J(this.disposables)}}});function yee(){return Fke++}function OP(n){return[n.hlGroup,n.lnum,n.colStart,n.colEnd,n.combine?1:0,n.start_incl?1:0,n.end_incl?1:0]}function Mke(n,e){let t=[n.hlGroup,n.lnum,n.colStart,n.colEnd];return _e(t,e.slice(0,4))}var MP,Th,vee,FP,jke,Fke,Oke,wee,D,De=P(()=>{"use strict";MP=S(require("fs")),Th=S(require("path")),vee=S(q());we();gb();_Y();bb();he();Se();lee();Bl();uee();hee();RP();gee();fee();LE();Lr();z();Xe();Qr();Ht();nc();Q();FP=Y()("window"),jke=Th.default.dirname(__dirname),Fke=3e3,Oke=["formatOnType","rename","onTypeEdit","documentLink","documentColor","foldingRange","format","codeAction","formatRange","hover","signature","documentSymbol","documentHighlight","definition","declaration","typeDefinition","reference","implementation","codeLens","selectionRange","callHierarchy","semanticTokens","semanticTokensRange","linkedEditing"];wee=class{constructor(){this.mutex=new Qt;this.tabIds=[];this.terminalManager=new pb;this._onDidTabClose=new vee.Emitter;this.onDidTabClose=this._onDidTabClose.event}init(e){for(let t=1;t<=e.tabCount;t++)this.tabIds.push(yee());_.on("TabNew",t=>{this.tabIds.splice(t-1,0,yee())}),_.on("TabClosed",t=>{let i=this.tabIds[t-1];this.tabIds.splice(t-1,1),i&&this._onDidTabClose.fire(i)})}getTabNumber(e){if(!!this.tabIds.includes(e))return this.tabIds.indexOf(e)+1}getTabId(e){return this.tabIds[e-1]}get nvim(){return v.nvim}dispose(){var e;this.terminalManager.dispose(),(e=this.statusLine)==null||e.dispose()}get activeTextEditor(){return v.editors.activeTextEditor}get visibleTextEditors(){return v.editors.visibleTextEditors}get onDidChangeActiveTextEditor(){return v.editors.onDidChangeActiveTextEditor}get onDidChangeVisibleTextEditors(){return v.editors.onDidChangeVisibleTextEditors}get terminals(){return this.terminalManager.terminals}get onDidOpenTerminal(){return this.terminalManager.onDidOpenTerminal}get onDidCloseTerminal(){return this.terminalManager.onDidCloseTerminal}async createTerminal(e){return await this.terminalManager.createTerminal(this.nvim,e)}showMessage(e,t="more"){let{messageLevel:i}=this,r="Error",o=2;switch(t){case"more":o=0,r="MoreMsg";break;case"warning":o=1,r="WarningMsg";break}o>=i&&tr(this.nvim,e,r)}async runTerminalCommand(e,t,i=!1){return t=t||v.cwd,await this.nvim.callAsync("coc#ui#run_terminal",{cmd:e,cwd:t,keepfocus:i?1:0})}async openTerminal(e,t={}){return await this.nvim.call("coc#ui#open_terminal",me({cmd:e},t))}async showQuickpick(e,t="Choose by number"){return await this.showMenuPicker(e,{title:t,position:"center"})}async showMenuPicker(e,t,i){var r;if(v.env.dialog)return await this.mutex.use(async()=>{if(i&&i.isCancellationRequested)return-1;t=t||{},typeof t=="string"&&(t={title:t});let o=new gx(this.nvim,me({items:e},t),i),s=new Promise(u=>{o.onDidClose(c=>{u(c)})}),a=this.dialogPreference;return t.borderhighlight&&(a.floatBorderHighlight=t.borderhighlight),await o.show(a),await s});{let o=await this.mutex.acquire();try{let a=(typeof t=="string"?t:(r=t.title)!=null?r:"Choose by number")+":",l=e.map((h,d)=>Ql(h)&&h.disabled?null:`${d+1}. ${Ql(h)?h.text:h}`),u=await this.nvim.callAsync("coc#ui#quickpick",[a,l.map(h=>h.trim())]);o();let c=parseInt(u,10);return isNaN(c)||c<=0||c>e.length?-1:c-1}catch{return o(),-1}}}async openLocalConfig(){let e=await this.nvim.call("expand",["%:p"]),t=await this.nvim.eval("&filetype");if(!e||!Th.default.isAbsolute(e))throw new Error("current buffer doesn't have valid file path.");let i=v.getWorkspaceFolder(M.file(e).toString());if(!i){let a=v.getConfiguration("coc.preferences").get("rootPatterns",[]);throw v.getConfiguration("workspace").get("ignoredFiletypes",[]).includes(t)?new Error("Can't resolve workspace folder for current file, current filetype exclude for workspace folder resolve."):new Error(`Can't resolve workspace folder for current file, consider create one of ${a.join(", ")} in your project root.`)}let r=M.parse(i.uri).fsPath,o=Th.default.join(r,".vim");if(!MP.default.existsSync(o)){if(!await this.showPrompt(`Would you like to create folder'${r}/.vim'?`))return;MP.default.mkdirSync(o)}await v.jumpTo(M.file(Th.default.join(o,Er)).toString())}async showPrompt(e){return await this.mutex.use(()=>xc(this.nvim,e))}async showDialog(e){return this.checkDialog()?await this.mutex.use(async()=>{let t=new hx(this.nvim,e);return await t.show(this.dialogPreference),t}):null}async requestInput(e,t,i){let{nvim:r}=this,o=v.getConfiguration("coc.preferences");return v.env.dialog&&o.get("promptInput",!0)&&!Xi?await this.mutex.use(async()=>{let s=new Kf(r,t!=null?t:"");return await s.show(e,Object.assign(this.inputPreference,i!=null?i:{})),await new Promise(a=>{s.onDidFinish(l=>{a(l)})})}):await this.mutex.use(async()=>{let s=await v.callAsync("input",[e+": ",t||""]);return r.command("normal! :<C-u>",!0),s})}async createInputBox(e,t,i){let r=new Kf(this.nvim,t!=null?t:"");return await r.show(e,i),r}createStatusBarItem(e=0,t={}){if(!v.env){let i=()=>{};return{text:"",show:i,dispose:i,hide:i,priority:0,isProgress:!1}}return this.statusLine||(this.statusLine=new zy(this.nvim)),this.statusLine.createStatusBarItem(e,t.progress||!1)}createOutputChannel(e){return Wo.create(e,this.nvim)}showOutputChannel(e,t){Wo.show(e,t)}async echoLines(e,t=!1){let{nvim:i}=this,r=v.env.cmdheight;e.length>r&&t&&(e=e.slice(0,r));let o=v.env.columns-12;if(e=e.map(s=>(s=s.replace(/\n/g," "),t&&(s=s.slice(0,o)),s)),t&&e.length==r){let s=e[e.length-1];e[r-1]=`${s.length==o?s.slice(0,-4):s} ...`}await i.call("coc#ui#echo_lines",[e])}getCursorPosition(){return mb(this.nvim)}async moveTo(e){await PY(this.nvim,e,v.env.isVim)}getSelectedRange(e){return IY(this.nvim,e)}async selectRange(e){await jY(this.nvim,e,this.nvim.isVim)}getOffset(){return RY(this.nvim)}getCursorScreenPosition(){return LY(this.nvim)}async showPickerDialog(e,t,i){if(!this.checkDialog())return;let r=await this.mutex.acquire();if(i&&i.isCancellationRequested){r();return}try{let o=typeof e[0]=="string",s=new fx(this.nvim,{title:t,items:o?e.map(c=>({label:c})):e},i),a=new Promise(c=>{s.onDidClose(h=>{c(h)})});await s.show(this.dialogPreference);let l=await a,u=l==null?void 0:e.filter((c,h)=>l.includes(h));return r(),u}catch(o){FP.error("Error on showPickerDialog:",o),r()}}async showInformationMessage(e,...t){let i=Error().stack;return await this._showMessage("Info",e,t,i)}async showWarningMessage(e,...t){let i=Error().stack;return await this._showMessage("Warning",e,t,i)}async showErrorMessage(e,...t){let i=Error().stack;return await this._showMessage("Error",e,t,i)}async showMessagePicker(e,t,i){let r=i.map(s=>typeof s=="string"?s:s.title),o=await this.showMenuPicker(r,{title:e.replace(/\r?\n/," "),borderhighlight:t});return i[o]}async _showMessage(e,t,i,r){if(!this.enableMessageDialog)return await this.showConfirm(t,i,e);if(this.preferMenuPicker&&i.length>0)return await this.showMessagePicker(t,`Coc${e}Float`,i);let o=typeof i[0]=="string"?i:i.map(a=>a.title),s=await this.createNotification(e.toLowerCase(),t,o,r);return s==-1?void 0:i[s]}async showNotification(e){if(!this.checkDialog())return!1;let t=Error().stack;return await new Vl(this.nvim,e).show(this.getNotificationPreference(t))}async showConfirm(e,t,i){if(!t||t.length==0){let a=i=="Info"?"more":i=="Error"?"error":"warning";this.showMessage(e,a);return}let o=(typeof t[0]=="string"?t.slice():t.map(a=>a.title)).map((a,l)=>`${l+1}${a}`),s=await this.nvim.callAsync("coc#util#with_callback",["confirm",[e,o.join(`
`),0,i]]);return t[s-1]}async withProgress(e,t){let i=Error().stack;if(!this.checkDialog())return;let r=new mx(this.nvim,{task:t,title:e.title,cancellable:e.cancellable}),s=v.getConfiguration("notification").get("minProgressWidth",30);return await new Promise((l,u)=>{r.show(Object.assign(this.getNotificationPreference(i),{minWidth:s})).then(c=>{c||u(new Error("Unable to create notification window."))},u),r.onDidFinish(l)})}createTreeView(e,t){let i=(vx(),Fa(bee)).default;return new i(e,t)}async diffHighlights(e,t,i,r,o){let s=[e,t];Array.isArray(r)&&s.push(r[0],r[1]);let a=await this.nvim.call("coc#highlight#get_highlights",s);if(!a||(o==null?void 0:o.isCancellationRequested))return null;i.sort((b,y)=>b.lnum-y.lnum);let l=[],u=v.has("nvim-0.6.0"),c=[],h=[],d=0,g=i.length-1,f=0,p=new Map;if(a.forEach(b=>{f=Math.max(f,b[1]);let y=p.get(b[1]);y?y.push(b):p.set(b[1],[b])}),a.length>0){let b=Array.isArray(r)?r[0]:0;for(let y=b;y<=f;y++){let w=p.get(y)||[],x=[];for(let k=d;k<=g;k++){let L=i[k];if(L.lnum==y)d=k+1,x.push(L);else{d=k;break}}x.length==0?w.length&&(u?c.push(...w.map(k=>k[4])):l.push(y)):w.length==0?h.push(...x.map(k=>OP(k))):(x.length!=w.length||!x.every((k,L)=>Mke(k,w[L])))&&(u?c.push(...w.map(k=>k[4])):l.push(y),h.push(...x.map(k=>OP(k))))}}for(let b=d;b<=g;b++)h.push(OP(i[b]));return{remove:l,add:h,removeMarkers:c}}async applyDiffHighlights(e,t,i,r,o=!1){let{nvim:s}=this,{remove:a,add:l,removeMarkers:u}=r;a.length===0&&l.length===0&&u.length===0||(s.pauseNotification(),u.length&&s.call("coc#highlight#del_markers",[e,t,u],!0),a.length&&s.call("coc#highlight#clear",[e,t,a],!0),l.length&&s.call("coc#highlight#set",[e,t,l,i],!0),o?s.resumeNotification(!0,!0):await s.resumeNotification(!0))}async bufferCheck(){let e=await v.document,t;if(e.attached||(e.enabled?e.buftype!==""&&e.buftype!=="acwrite"?t=`Document not attached with buftype '${e.buftype}'`:t="Document not attached, file size exceed coc.preferences.maxFileSize":t="Document not attached, b:coc_enabled is 0"),t){await this.showDialog({title:"Buffer check result",content:t,highlight:"WarningMsg"});return}let i=new vn;i.addLine("Provider state","Title"),i.addLine("");for(let r of Oke){let o=F.hasProvider(r,e.textDocument);i.addTexts([{text:"-",hlGroup:"Comment"},{text:" "},o?{text:"\u2713",hlGroup:"CocListFgGreen"}:{text:"\u2717",hlGroup:"CocListFgRed"},{text:" "},{text:r,hlGroup:o?"Normal":"CocFadeOut"}])}await this.showDialog({title:"Buffer check result",content:i.content,highlights:i.highlights})}createNotification(e,t,i,r){return new Promise(o=>{let s={kind:e,content:t,buttons:i.map((l,u)=>({text:l,index:u})),callback:l=>{o(l)}};new Vl(this.nvim,s).show(this.getNotificationPreference(r)).then(l=>{l||(FP.error("Unable to open notification window"),o(-1)),i.length||o(-1)},l=>{FP.error("Unable to open notification window",l),o(-1)})})}parseSource(e){let t=e.split(/\r?\n/).slice(2)[0];if(!t)return;t=t.replace(/^\s*at\s*/,"");let i;if(t.endsWith(")")){let s=t.match(/(\((.*?):\d+:\d+\))$/);s&&(i=s[2])}else{let s=t.match(/(.*?):\d+:\d+$/);s&&(i=s[1])}if(!i)return;let r=(go(),Fa(H9)).default.getExtensionsInfo(),o=r.find(s=>ei(s.filepath,i));if(o)return o.name.startsWith("single")?Th.default.basename(o.filepath):o.name;if(o=r.find(s=>Ae(s.directory,i)),o)return o.name;if(Ae(jke,i))return"coc.nvim"}get dialogPreference(){let e=v.getConfiguration("dialog");return{rounded:e.get("rounded",!0),maxWidth:e.get("maxWidth"),maxHeight:e.get("maxHeight"),floatHighlight:e.get("floatHighlight"),floatBorderHighlight:e.get("floatBorderHighlight"),pickerButtons:e.get("pickerButtons"),pickerButtonShortcut:e.get("pickerButtonShortcut"),confirmKey:e.get("confirmKey"),shortcutHighlight:e.get("shortcutHighlight")}}get inputPreference(){let e=v.getConfiguration("dialog");return{rounded:e.get("rounded",!0),maxWidth:e.get("maxWidth"),highlight:e.get("floatHighlight"),borderhighlight:e.get("floatBorderHighlight")}}getNotificationPreference(e){let t=this.parseSource(e),i=v.getConfiguration("notification");return{broder:i.get("border",!0),focusable:i.get("focusable",!0),marginRight:i.get("marginRight",10),timeout:i.get("timeout",10),maxWidth:i.get("maxWidth"),maxHeight:i.get("maxHeight"),highlight:i.get("highlightGroup"),winblend:i.get("winblend"),source:t}}checkDialog(){return v.env.dialog?!0:(this.showMessage("Dialog requires vim >= 8.2.0750 or neovim >= 0.4.0, please upgrade your vim","warning"),!1)}get enableMessageDialog(){return v.env.dialog?v.getConfiguration("coc.preferences").get("enableMessageDialog",!1):!1}get preferMenuPicker(){return v.env.dialog?v.getConfiguration("notification").get("preferMenuPicker",!1):!1}get messageLevel(){switch(v.getConfiguration("coc.preferences").get("messageLevel","more")){case"error":return 2;case"warning":return 1;default:return 0}}},D=new wee});function kh(n){switch(n){case At.DiagnosticSeverity.Warning:return"Warning";case At.DiagnosticSeverity.Information:return"Information";case At.DiagnosticSeverity.Hint:return"Hint";default:return"Error"}}function xee(n){switch(n){case At.DiagnosticSeverity.Warning:return"W";case At.DiagnosticSeverity.Information:return"I";case At.DiagnosticSeverity.Hint:return"I";default:return"E"}}function tu(n){if(n!=null)switch(n){case"hint":return At.DiagnosticSeverity.Hint;case"information":return At.DiagnosticSeverity.Information;case"warning":return At.DiagnosticSeverity.Warning;case"error":return At.DiagnosticSeverity.Error;default:return At.DiagnosticSeverity.Hint}}function AP(n){switch(n){case At.DiagnosticSeverity.Error:return"CocError";case At.DiagnosticSeverity.Warning:return"CocWarning";case At.DiagnosticSeverity.Information:return"CocInfo";case At.DiagnosticSeverity.Hint:return"CocHint";default:return"CocError"}}function Cee(n,e,t){var l,u;let{start:i,end:r}=e.range,o=e.source||"coc.nvim",s=e.message.split(`
`)[0],a=kh(e.severity).slice(0,1).toUpperCase();return{bufnr:n,lnum:i.line+1,end_lnum:r.line+1,col:Array.isArray(t)?et((l=t[i.line])!=null?l:"",i.character)+1:i.character+1,end_col:Array.isArray(t)?et((u=t[r.line])!=null?u:"",r.character)+1:r.character+1,text:`[${o}${e.code?" "+e.code:""}] ${s} [${a}]`,type:a}}function wx(n,e){if((n.severity||1)!=(e.severity||1))return(n.severity||1)-(e.severity||1);let t=xe(n.range.start,e.range.start);return t!=0?t:n.source>e.source?1:-1}function See(n){let e=n.tags||[];if(e.includes(At.DiagnosticTag.Deprecated))return"CocDeprecatedHighlight";if(e.includes(At.DiagnosticTag.Unnecessary))return"CocUnusedHighlight";switch(n.severity){case At.DiagnosticSeverity.Warning:return"CocWarningHighlight";case At.DiagnosticSeverity.Information:return"CocInfoHighlight";case At.DiagnosticSeverity.Hint:return"CocHintHighlight";default:return"CocErrorHighlight"}}var At,NP=P(()=>{"use strict";At=S(q());bt();Fe()});var _ee,xx,Ake,Tee,kee,Dee,Eee,HP,Pee=P(()=>{"use strict";_ee=S(_i()),xx=S(q());he();Ht();bt();Q();NP();Ake=Y()("diagnostic-buffer"),Tee="CocDiagnostic",kee="diagnostic",Dee=["CocErrorHighlight","CocWarningHighlight","CocInfoHighlight","CocHintHighlight","CocDeprecatedHighlight","CocUnusedHighlight"],Eee=global.hasOwnProperty("__TEST__")?"MockAleResults":"ale#other_source#ShowResults",HP=class{constructor(e,t,i,r){this.nvim=e;this.doc=t;this.config=i;this.onRefresh=r;this.diagnosticsMap=new Map;this._disposed=!1;this._dirty=!1;this._changeTs=0;this._textChangeTs=0;this._changedTick=0;let o=global.hasOwnProperty("__TEST__")?10:500;this.refreshHighlights=(0,_ee.debounce)(this._refresh.bind(this),o)}get dirty(){return this._dirty}get bufnr(){return this.doc.bufnr}get uri(){return this.doc.uri}onChange(e){this._changeTs=Date.now(),this.refreshHighlights.clear(),e.contentChanges.length===0&&this._refresh()}onTextChange(){this._textChangeTs=Date.now()}get displayByAle(){return this.config.displayByAle}clearHighlight(e){this.buffer.clearNamespace(kee+e)}clearSigns(e){this.buffer.unplaceSign({group:Tee+e})}get diagnostics(){let e=[];for(let t of this.diagnosticsMap.values())e.push(...t);return e}get buffer(){return this.nvim.createBuffer(this.bufnr)}refreshAle(e,t){let i=t.map(r=>{let o=r.range;return{text:r.message,code:r.code,lnum:o.start.line+1,col:o.start.character+1,end_lnum:o.end.line+1,end_col:o.end.character,type:xee(r.severity)}});this.nvim.call(Eee,[this.bufnr,"coc"+e,i],!0)}async update(e,t){let{diagnosticsMap:i}=this,r=i.get(e)||[];if(this.dirty===!1&&t.length==0&&r.length==0||(i.set(e,t),this._dirty===!1&&this.doc.changedtick==this._changedTick&&_e(r,t)))return;let o=await this.getDiagnosticInfo();if(!o||o.winid==-1){this._dirty=!0;return}if(this._textChangeTs>this._changeTs){this._dirty=!0,this.refreshHighlights();return}if(this._dirty)this.refresh(this.diagnosticsMap,o);else{let s=new Map;s.set(e,t),this.refresh(s,o)}}async reset(e,t){let{diagnosticsMap:i}=this;for(let o of i.keys())e[o]==null&&(e[o]=[]);for(let[o,s]of Object.entries(e))this.diagnosticsMap.set(o,s);let r=await this.getDiagnosticInfo(t);if(!r){this._dirty=!0;return}this.refresh(this.diagnosticsMap,r)}async getDiagnosticInfo(e){let{refreshOnInsertMode:t}=this.config,{nvim:i,bufnr:r}=this,o=!t;if(e)o=!1;else if(_.insertMode&&!t)return;return await i.call("coc#util#diagnostic_info",[r,o])}refresh(e,t){let{nvim:i,displayByAle:r}=this;if(this._dirty=!1,this._changedTick=this.doc.changedtick,r){i.pauseNotification();for(let[o,s]of e.entries())this.refreshAle(o,s);i.resumeNotification(!0,!0)}else{let o=[];Ake.debug("Update UI",this.bufnr,Array.from(e.keys())),i.pauseNotification();for(let[s,a]of e.entries())a.length==0&&o.push(s),this.addSigns(s,a),this.updateHighlights(s,a);this.showVirtualText(t.lnum,t.bufnr),this.updateLocationList(t.winid,t.locationlist),this.setDiagnosticInfo(),i.resumeNotification(!0,!0),o.forEach(s=>{this.diagnosticsMap.delete(s)}),this.onRefresh(this.diagnostics)}}updateLocationList(e,t){if(!this.config.locationlistUpdate||e==-1||t!=="Diagnostics of coc")return;let i=this.toLocationListItems(this.diagnostics);this.nvim.call("setloclist",[e,[],"r",{title:"Diagnostics of coc",items:i}],!0)}toLocationListItems(e){let{locationlistLevel:t}=this.config,i=[],r=this.doc.textDocument.lines;e.sort(wx);for(let o of e)t&&o.severity&&o.severity>t||i.push(Cee(this.bufnr,o,r));return i}addSigns(e,t){let{enableSign:i,signLevel:r}=this.config,o=Tee+e;if(this.buffer.unplaceSign({group:o}),!i)return;let s=new Map;for(let a of t){let{range:l,severity:u}=a;if(!u||r&&u>r)continue;let c=l.start.line,h=s.get(c)||[];if(h.includes(u))continue;h.push(u),s.set(c,h);let d=this.config.signPriority+4-u,g=AP(u);this.buffer.placeSign({name:g,lnum:c+1,group:o,priority:d})}}setDiagnosticInfo(){let e=[0,0,0,0],t={error:0,warning:0,information:0,hint:0,lnums:e};for(let r of this.diagnosticsMap.values())for(let o of r){let s=o.range.start.line+1;switch(o.severity){case xx.DiagnosticSeverity.Warning:t.warning=t.warning+1,e[1]=e[1]?Math.min(e[1],s):s;break;case xx.DiagnosticSeverity.Information:t.information=t.information+1,e[2]=e[2]?Math.min(e[2],s):s;break;case xx.DiagnosticSeverity.Hint:t.hint=t.hint+1,e[3]=e[3]?Math.min(e[3],s):s;break;default:e[0]=e[0]?Math.min(e[0],s):s,t.error=t.error+1}}this.nvim.createBuffer(this.bufnr).setVar("coc_diagnostic_info",t,!0),this.nvim.call("coc#util#do_autocmd",["CocDiagnosticChange"],!0)}showVirtualText(e,t){let{config:i}=this,{virtualText:r,virtualTextLevel:o}=i;if(!r)return;let{virtualTextSrcId:s,virtualTextPrefix:a,virtualTextCurrentLineOnly:l}=this.config,{diagnostics:u,buffer:c}=this;if(l){if(t&&this.bufnr!=t)return;u=u.filter(h=>{let{start:d,end:g}=h.range;return d.line<=e-1&&g.line>=e-1})}u.sort(wx),c.clearNamespace(s);for(let h=u.length-1;h>=0;h--){let d=u[h];if(o&&d.severity&&d.severity>o)continue;let{line:g}=d.range.start,f=AP(d.severity)+"VirtualText",p=d.message.split(/\n/).map(b=>b.trim()).filter(b=>b.length>0).slice(0,this.config.virtualTextLines).join(this.config.virtualTextLineSeparator);if(v.has("nvim-0.5.1")){let b={virt_text:[[a+p,f]]};i.virtualTextAlignRight||typeof i.virtualTextWinCol=="number"&&(b.virt_text_win_col=i.virtualTextWinCol),c.setExtMark(s,g,0,b)}else c.setVirtualText(s,g,[[a+p,f]],{})}}updateHighlights(e,t){if(!t.length)this.clearHighlight(e);else{let i=this.getHighlightItems(t),r=this.config.highlightPriority;this.buffer.updateHighlights(kee+e,i,{priority:r})}}async _refresh(){let e=await this.getDiagnosticInfo();!e||e.winid==-1||this.diagnosticsMap.size==0||this.refresh(this.diagnosticsMap,e)}getHighlightItems(e){let t=v.getDocument(this.uri);if(!t)return[];let i=[];for(let r of e.slice(0,this.config.highlighLimit)){let o=See(r);t.addHighlights(i,o,r.range)}return i.sort((r,o)=>r.lnum!=o.lnum?r.lnum-o.lnum:r.colStart!=o.colStart?r.colStart-o.colStart:Dee.indexOf(o.hlGroup)-Dee.indexOf(r.hlGroup)),i}clear(){let{nvim:e}=this,t=Array.from(this.diagnosticsMap.keys());if(this.refreshHighlights.clear(),this.diagnosticsMap.clear(),this.displayByAle)for(let i of t)this.nvim.call(Eee,[this.bufnr,i,[]],!0);else{e.pauseNotification(),this.buffer.deleteVar("coc_diagnostic_info");for(let i of t)this.clearHighlight(i),this.clearSigns(i);this.config.virtualText&&this.buffer.clearNamespace(this.config.virtualTextSrcId),e.resumeNotification(!0,!0)}}getDiagnosticsAt(e,t){let i=[];for(let r of this.diagnosticsMap.values())t?i.push(...r.filter(o=>SY(e.line,o.range))):i.push(...r.filter(o=>ct(e,o.range)==0));return i.sort(wx),i}async isEnabled(){return this._disposed?!1:await this.nvim.createBuffer(this.bufnr).getVar("coc_diagnostic_disable")!=1}dispose(){this.clear(),this._disposed=!0,this._dirty=!1,this.refreshHighlights.clear()}}});var us,g9e,Nke,Cx,Ree=P(()=>{"use strict";us=S(q());we();Q();g9e=Y()("diagnostic-collection"),Nke=[us.DiagnosticTag.Deprecated,us.DiagnosticTag.Unnecessary],Cx=class{constructor(e,t){this.name=e;this.onDispose=t;this.diagnosticsMap=new Map;this._onDidDiagnosticsChange=new us.Emitter;this.onDidDiagnosticsChange=this._onDidDiagnosticsChange.event}set(e,t){let i=new Map;if(Array.isArray(e))for(let r of e){let[o,s]=r,a=v.getDocument(o);o=a?a.uri:o,s==null?s=[]:s=(i.get(o)||[]).concat(s),i.set(o,s)}else{let r=v.getDocument(e),o=r?r.uri:e;i.set(o,t||[])}for(let r of i){let[o,s]=r;o=M.parse(o).toString(),s.forEach(a=>{a.range=a.range||us.Range.create(0,0,0,0),a.message=a.message||"",a.source=a.source||this.name,Array.isArray(a.tags)&&a.tags.some(l=>Nke.includes(l))&&(a.severity=us.DiagnosticSeverity.Hint)}),this.diagnosticsMap.set(o,s),this._onDidDiagnosticsChange.fire(o)}}delete(e){this.diagnosticsMap.delete(e),this._onDidDiagnosticsChange.fire(e)}clear(){let e=Array.from(this.diagnosticsMap.keys());e=e.filter(t=>this.diagnosticsMap.get(t).length>0),this.diagnosticsMap.clear();for(let t of e)this._onDidDiagnosticsChange.fire(t)}forEach(e,t){for(let i of this.diagnosticsMap.keys()){let r=this.diagnosticsMap.get(i);e.call(t,i,r,this)}}entries(){return this.diagnosticsMap.entries()}get(e){let t=this.diagnosticsMap.get(e);return t==null?[]:t.slice()}has(e){return this.diagnosticsMap.has(e)}dispose(){this.clear(),this.onDispose&&this.onDispose(),this._onDidDiagnosticsChange.dispose()}}});var Lee,Bt,R9e,Iee,Pt,Ul=P(()=>{"use strict";Lee=S(_i()),Bt=S(q());we();he();Bo();z();Xe();bt();Fe();De();Q();Pee();Ree();NP();R9e=Y()("diagnostic-manager"),Iee=class{constructor(){this.enabled=!0;this._onDidRefresh=new Bt.Emitter;this.onDidRefresh=this._onDidRefresh.event;this.collections=[];this.disposables=[]}init(){this.setConfiguration(),v.isNvim&&this.nvim.createNamespace("coc-diagnostic-virtualText").then(r=>{this.config.virtualTextSrcId=r}).logError(),v.onDidChangeConfiguration(this.setConfiguration,this,this.disposables),this.floatFactory=new li(this.nvim),this.buffers=v.registerBufferSync(r=>{if(!this.enabled)return;let o=new HP(this.nvim,r,this.config,a=>{this._onDidRefresh.fire({diagnostics:a,uri:o.uri,bufnr:o.bufnr}),o.bufnr===v.bufnr&&this.config.messageTarget==="float"&&this.getCurrentDiagnostics().then(l=>this.showFloat(l))}),s=this.getDiagnostics(r.uri);return Object.keys(s).length>0&&o.reset(s),o}),v.onDidCloseTextDocument(r=>{for(let o of this.collections)o.delete(r.uri)},null,this.disposables);let e;_.on("CursorMoved",(r,o)=>{this.config.enableMessage=="always"&&(e&&clearTimeout(e),e=setTimeout(async()=>{let s=this.buffers.getItem(r);if(!s||s.dirty)return;let a=v.getDocument(r);if(!a)return;let l=a.getline(o[0]-1),u=yi(l,o[1]-1),c=o[0]==a.lineCount;!this.getDiagnosticsAt(r,[o[0]-1,u],u==l.length,c).length||await this.echoMessage(!0)},this.config.messageDelay))},null,this.disposables);let t=(0,Lee.default)(async(r,o)=>{if(!this.config.virtualTextCurrentLineOnly||_.insertMode&&!this.config.refreshOnInsertMode)return;let s=this.buffers.getItem(r);s&&await s.isEnabled()&&s.showVirtualText(o[0])},global.__TEST__?10:100);this.disposables.push(Bt.Disposable.create(()=>{t.clear()})),_.on("CursorMoved",t,null,this.disposables),_.on("InsertLeave",async()=>{if(!(this.config.refreshOnInsertMode||!this.autoRefresh))for(let r of this.buffers.items)r.dirty&&r.refreshHighlights()},null,this.disposables),_.on("BufWinEnter",r=>{let o=this.buffers.getItem(r);o&&o.dirty&&o.refreshHighlights()},null,this.disposables),this.clearTimers=r=>{if(e&&clearTimeout(e),e=void 0,t.clear(),r&&!this.config.refreshOnInsertMode){let o=this.buffers.getItem(r);o&&o.refreshHighlights.clear()}},_.on("InsertEnter",this.clearTimers,this,this.disposables);let i=v.configurations.errorItems;this.setConfigurationErrors(i),v.configurations.onError(r=>{this.setConfigurationErrors(r)},null,this.disposables)}defineSigns(){let{nvim:e}=this,{enableHighlightLineNumber:t,enableSign:i}=this.config;if(!!i){e.pauseNotification();for(let r of["Error","Warning","Info","Hint"]){let o=this.config[r.toLowerCase()+"Sign"],s=`sign define Coc${r} linehl=Coc${r}Line`;o&&(s+=` texthl=Coc${r}Sign text=${o}`),t&&(s+=` numhl=Coc${r}Sign`),e.command(s,!0)}e.resumeNotification(!1,!0)}}async setLocationlist(e){if(!this.enabled)throw new Error("Diagnostic not enabled.");let t=this.buffers.getItem(e);if(!t)throw new Error(`buffer ${e} not attached.`);let i=[];for(let a of Object.values(this.getDiagnostics(t.uri)))i.push(...a);let r=t.toLocationListItems(i),o=await this.nvim.call("getloclist",[0,{title:1}]),s=o.title&&o.title.indexOf("Diagnostics of coc")!=-1?"r":" ";await this.nvim.call("setloclist",[0,[],s,{title:"Diagnostics of coc",items:r}])}setConfigurationErrors(e){let t=this.create("config");if(e!=null&&e.length){let i=M.parse(e[0].location.uri).fsPath;D.showErrorMessage(`Error detected for config file ${i}, please check diagnostics list.`);let r=new Map;for(let o of e){let{uri:s}=o.location,a=r.get(s)||[];a.push(Bt.Diagnostic.create(o.location.range,o.message,Bt.DiagnosticSeverity.Error)),r.set(s,a)}t.set(Array.from(r))}else t.clear()}create(e){let t=this.getCollectionByName(e);return t||(t=new Cx(e,()=>{let i=this.collections.findIndex(r=>r==t);i!==-1&&this.collections.splice(i,1)}),this.collections.push(t),t.onDidDiagnosticsChange(i=>{let r=this.buffers.getItem(i);!this.autoRefresh||!r||r.update(e,this.getDiagnosticsByCollection(i,t))}),t)}getSortedRanges(e,t){let i=this.getCollections(e),r=[],o=t?tu(t):0;for(let s of i){let a=s.get(e);if(o)a=a.filter(u=>u.severity==o);else{let u=this.config.level;u&&u<Bt.DiagnosticSeverity.Hint&&(a=a.filter(c=>!(c.severity&&c.severity>u)))}let l=a.map(u=>u.range);r.push(...l)}return r.sort((s,a)=>s.start.line!=a.start.line?s.start.line-a.start.line:s.start.character-a.start.character),r}getDiagnostics(e){let t={},i=this.getCollections(e);for(let r of i)!r||(t[r.name]=this.getDiagnosticsByCollection(e,r));return t}getDiagnosticsByCollection(e,t){let{level:i,showUnused:r,showDeprecated:o}=this.config,s=t.get(e)||[];return s.length&&(s=s.filter(a=>{var l,u;return!(i&&a.severity&&a.severity>i||!r&&((l=a.tags)==null?void 0:l.includes(Bt.DiagnosticTag.Unnecessary))||!o&&((u=a.tags)==null?void 0:u.includes(Bt.DiagnosticTag.Deprecated)))}),s.sort((a,l)=>xe(a.range.start,l.range.start))),s}getDiagnosticsInRange(e,t){let i=this.getCollections(e.uri),r=[];for(let o of i){let s=o.get(e.uri);if(!!s)for(let a of s)pl(a.range,t)&&r.push(a)}return r}async preview(){let e=await this.getCurrentDiagnostics();if(e.length==0){this.nvim.command("pclose",!0);return}let t=[];for(let i of e){let{source:r,code:o,severity:s,message:a}=i,l=kh(s)[0];t.push(`[${r}${o?" "+o:""}] [${l}]`),t.push(...a.split(/\r?\n/)),t.push("")}this.nvim.call("coc#ui#preview_info",[t,"txt"],!0)}async jumpPrevious(e){let t=await this.nvim.buffer,i=this.buffers.getItem(t.id);if(!i)return;let r=await D.getCursorPosition(),o=this.getSortedRanges(i.uri,e),s;for(let a=o.length-1;a>=0;a--){let l=o[a].end;if(xe(l,r)<0){s=o[a].start;break}else a==0&&await this.nvim.getOption("wrapscan")&&(s=o[o.length-1].start)}if(s){if(await D.moveTo(s),this.config.enableMessage=="never")return;await this.echoMessage(!1)}}async jumpNext(e){let t=await this.nvim.buffer,i=this.buffers.getItem(t.id);if(!i)return;let r=await D.getCursorPosition(),o=this.getSortedRanges(i.uri,e),s;for(let a=0;a<=o.length-1;a++){let l=o[a].start;if(xe(l,r)>0){s=o[a].start;break}else a==o.length-1&&await this.nvim.getOption("wrapscan")&&(s=o[0].start)}if(s){if(await D.moveTo(s),this.config.enableMessage=="never")return;await this.echoMessage(!1)}}async getDiagnosticList(){var i,r;let e=[],{level:t}=this.config;for(let o of this.collections)for(let[s,a]of o.entries()){if(a.length==0)continue;let l=M.parse(s),u=v.getDocument(s),c=u&&u.attached?u.textDocument.lines:void 0;if(!c&&l.scheme==="file")try{let h=a.reduce((d,g)=>Math.max(g.range.end.line,d),0);c=await Ks(l.fsPath,0,h)}catch{}for(let h of a){if(h.severity&&h.severity>t)continue;let{start:d,end:g}=h.range,f={file:l.fsPath,lnum:d.line+1,end_lnum:g.line+1,col:Array.isArray(c)?et((i=c[d.line])!=null?i:"",d.character)+1:d.character+1,end_col:Array.isArray(c)?et((r=c[g.line])!=null?r:"",g.character)+1:g.character+1,code:h.code,source:h.source||o.name,message:h.message,severity:kh(h.severity),level:h.severity||0,location:Bt.Location.create(s,h.range)};e.push(f)}}return e.sort((o,s)=>o.level!==s.level?o.level-s.level:o.file!==s.file?o.file>s.file?1:-1:o.lnum!=s.lnum?o.lnum-s.lnum:o.col-s.col),e}getDiagnosticsAt(e,t,i=!1,r=!1){let o=this.buffers.getItem(e);if(!o)return[];let s=Bt.Position.create(t[0],t[1]),a=o.getDiagnosticsAt(s,this.config.checkCurrentLine);return this.config.checkCurrentLine||a.length||i&&(s=Bt.Position.create(t[0],t[1]+1),a=o.getDiagnosticsAt(s,!1),a.length)||r&&t[1]==0&&(s=Bt.Position.create(t[0]+1,0),a=o.getDiagnosticsAt(s,!1)),a}async getCurrentDiagnostics(){let[e,t,i,r]=await this.nvim.eval(`[bufnr("%"),coc#cursor#position(),col('.')==col('$')-1,line('.')==line('$')]`);return this.getDiagnosticsAt(e,t,i==1,r==1)}async echoMessage(e=!1){let t=this.config;if(!this.enabled||t.displayByAle)return;let i=t.messageTarget=="float",r=await this.getCurrentDiagnostics();if(t.messageLevel&&(r=r.filter(o=>o.severity&&o.severity<=t.messageLevel)),i)await this.showFloat(r);else{if(e&&_.insertMode)return;let o=[];r.forEach(s=>{let{source:a,code:l,severity:u,message:c}=s,h=kh(u)[0],d=l?" "+l:"",g=t.format.replace("%source",a).replace("%code",d).replace("%severity",h).split("%message").join(c);o.push(g)}),o.length&&(await this.nvim.command('echo ""'),await D.echoLines(o,e))}}async showFloat(e){if(this.config.messageTarget!=="float")return;let{config:t}=this;if(e.length==0){this.floatFactory.close();return}if(_.insertMode)return;let i="",r=[];if(Object.keys(t.filetypeMap).length>0){let s=v.getDocument(v.bufnr),a=s?s.filetype:"",l=t.filetypeMap.default||"";i=t.filetypeMap[a]||(l=="bufferType"?a:l)}e.forEach(s=>{var p;let{source:a,code:l,severity:u,message:c}=s,h=kh(u)[0],d=l?" "+l:"",g=t.format.replace("%source",a).replace("%code",d).replace("%severity",h).split("%message").join(c),f="Error";if(i==="")switch(u){case Bt.DiagnosticSeverity.Hint:f="Hint";break;case Bt.DiagnosticSeverity.Warning:f="Warning";break;case Bt.DiagnosticSeverity.Information:f="Info";break}else f=i;r.push({filetype:f,content:g}),(p=s.codeDescription)!=null&&p.href&&r.push({filetype:"txt",content:s.codeDescription.href})});let o=this.floatFactory.applyFloatConfig({modes:["n"],maxWidth:80},this.config.floatConfig);await this.floatFactory.show(r,o)}async jumpRelated(){let t=(await this.getCurrentDiagnostics()).find(r=>r.relatedInformation!=null),i=t?t.relatedInformation.map(r=>r.location):[];i.length==1?await v.jumpTo(i[0].uri,i[0].range.start):i.length>1?await v.showLocations(i):D.showWarningMessage("No related information found.")}reset(){this.clearTimers&&this.clearTimers(),this.buffers.reset();for(let e of this.collections)e.dispose();this.collections=[]}dispose(){var e;this.clearTimers&&this.clearTimers(),this.buffers.dispose();for(let t of this.collections)t.dispose();(e=this.floatFactory)==null||e.close(),this.collections=[],J(this.disposables)}get nvim(){return v.nvim}setConfiguration(e){if(e&&!e.affectsConfiguration("diagnostic"))return;let t=v.getConfiguration("diagnostic"),i=t.get("messageTarget","float");i=="float"&&!v.env.floating&&!v.env.textprop&&(i="echo");let r=t.get("enableHighlightLineNumber",!0);v.isNvim||(r=!1),this.config=Object.assign(this.config||{},{floatConfig:t.get("floatConfig",{}),messageTarget:i,enableHighlightLineNumber:r,highlighLimit:t.get("highlighLimit",1e3),highlightPriority:t.get("highlightPriority"),autoRefresh:t.get("autoRefresh",!0),checkCurrentLine:t.get("checkCurrentLine",!1),enableSign:v.env.sign&&t.get("enableSign",!0),locationlistUpdate:t.get("locationlistUpdate",!0),enableMessage:t.get("enableMessage","always"),messageDelay:t.get("messageDelay",200),virtualText:t.get("virtualText",!1)&&this.nvim.hasFunction("nvim_buf_set_virtual_text"),virtualTextAlignRight:v.has("nvim-0.5.1")&&t.get("virtualTextAlignRight",!1),virtualTextWinCol:v.has("nvim-0.5.1")?t.get("virtualTextWinCol",null):null,virtualTextCurrentLineOnly:t.get("virtualTextCurrentLineOnly",!0),virtualTextPrefix:t.get("virtualTextPrefix"," "),virtualTextLineSeparator:t.get("virtualTextLineSeparator"," \\ "),virtualTextLines:t.get("virtualTextLines",3),displayByAle:t.get("displayByAle",!1),level:tu(t.get("level","hint")),locationlistLevel:tu(t.get("locationlistLevel")),signLevel:tu(t.get("signLevel")),virtualTextLevel:tu(t.get("virtualTextLevel")),messageLevel:tu(t.get("messageLevel")),signPriority:t.get("signPriority",10),errorSign:t.get("errorSign",">>"),warningSign:t.get("warningSign",">>"),infoSign:t.get("infoSign",">>"),hintSign:t.get("hintSign",">>"),refreshOnInsertMode:t.get("refreshOnInsertMode",!1),filetypeMap:t.get("filetypeMap",{}),showUnused:t.get("showUnused",!0),showDeprecated:t.get("showDeprecated",!0),format:t.get("format","[%source%code] [%severity] %message")}),this.enabled=t.get("enable",!0),this.defineSigns()}getCollectionByName(e){return this.collections.find(t=>t.name==e)}getCollections(e){return this.collections.filter(t=>t.has(e))}toggleDiagnostic(e){let t=e==null?this.enabled:e==0;this.enabled=!t;for(let i of this.buffers.items)this.enabled?this.refreshBuffer(i.uri):i.clear()}async toggleDiagnosticBuffer(e,t){if(!this.enabled)return;e=e||v.bufnr;let i=this.buffers.getItem(e);if(i){let r=t==null?await i.isEnabled():t==0;await this.nvim.call("setbufvar",[e,"coc_diagnostic_disable",r?1:0]),r?i.clear():this.refreshBuffer(e)}}get autoRefresh(){return this.enabled&&this.config.autoRefresh}async refreshBuffer(e,t){let i=this.buffers.getItem(e);return i?(await i.reset(this.getDiagnostics(i.uri),t),!0):!1}refresh(e){let t;if(!e)t=this.buffers.items;else{let i=this.buffers.getItem(e);t=i?[i]:[]}for(let i of t)this.refreshBuffer(i.uri,!0)}},Pt=new Iee});var Ra,W9e,jee,Fee,re,xi=P(()=>{"use strict";Ra=S(q());we();Ul();Kl();z();De();Q();W9e=Y()("commands"),jee=class{constructor(e,t,i,r=!1){this.id=e;this.impl=t;this.thisArg=i;this.internal=r}execute(...e){let{impl:t,thisArg:i}=this;return t.apply(i,e||[])}dispose(){this.thisArg=null,this.impl=null}},Fee=class{constructor(){this.commands=new Map;this.titles=new Map;this.onCommandList=[]}init(e,t){this.mru=v.createMru("commands"),this.register({id:"vscode.open",execute:async i=>{e.call("coc#ui#open_url",i.toString(),!0)}},!0),this.register({id:"workbench.action.reloadWindow",execute:async()=>{e.command("CocRestart",!0)}},!0),this.register({id:"editor.action.insertSnippet",execute:async(i,r)=>{let o=r===!0?{}:r;return await Xt.insertSnippet(i.newText,!0,i.range,Ra.InsertTextMode.adjustIndentation,o||void 0)}},!0),this.register({id:"editor.action.doCodeAction",execute:async i=>{await t.cocAction("doCodeAction",i)}},!0),this.register({id:"editor.action.triggerSuggest",execute:async()=>{await Qe(60),e.call("coc#start",[],!0)}},!0),this.register({id:"editor.action.triggerParameterHints",execute:async()=>{await Qe(60),await t.cocAction("showSignatureHelp")}},!0),this.register({id:"editor.action.addRanges",execute:async i=>{await t.cocAction("addRanges",i)}},!0),this.register({id:"editor.action.restart",execute:async()=>{await Qe(30),e.command("CocRestart",!0)}},!0),this.register({id:"editor.action.showReferences",execute:async(i,r,o)=>{await v.showLocations(o)}},!0),this.register({id:"editor.action.rename",execute:async(i,r)=>{await v.jumpTo(i,r),await t.cocAction("rename")}},!0),this.register({id:"editor.action.format",execute:async()=>{await t.cocAction("format")}},!0),this.register({id:"workspace.refactor",execute:async i=>{let r=i.filter(o=>Ra.Location.is(o));await t.getHandler().refactor.fromLocations(r)}},!0),this.register({id:"workspace.clearWatchman",execute:async()=>{(await D.runTerminalCommand("watchman watch-del-all")).success&&D.showMessage("Cleared watchman watching directories.")}},!1,"run watch-del-all for watchman to free up memory."),this.register({id:"workspace.workspaceFolders",execute:async()=>{let r=v.workspaceFolders.map(o=>M.parse(o.uri).fsPath);await D.echoLines(r)}},!1,"show opened workspaceFolders."),this.register({id:"workspace.renameCurrentFile",execute:async()=>{await v.renameCurrent()}},!1,"change current filename to a new name and reload it."),this.register({id:"extensions.toggleAutoUpdate",execute:async()=>{let i=v.getConfiguration("coc.preferences");i.get("extensionUpdateCheck","daily")=="never"?(i.update("extensionUpdateCheck","daily",!0),D.showMessage("Extension auto update enabled.","more")):(i.update("extensionUpdateCheck","never",!0),D.showMessage("Extension auto update disabled.","more"))}},!1,"toggle auto update of extensions."),this.register({id:"workspace.diagnosticRelated",execute:()=>Pt.jumpRelated()},!1,"jump to related locations of current diagnostic."),this.register({id:"workspace.showOutput",execute:async i=>{if(i)D.showOutputChannel(i);else{let r=v.channelNames;if(r.length==0)return;if(r.length==1)D.showOutputChannel(r[0]);else{let o=await D.showQuickpick(r);if(o==-1)return;let s=r[o];D.showOutputChannel(s)}}}},!1,"open output buffer to show output from languageservers or extensions."),this.register({id:"document.showIncomingCalls",execute:async()=>{await t.cocAction("showIncomingCalls")}},!1,"show incoming calls in tree view."),this.register({id:"document.showOutgoingCalls",execute:async()=>{await t.cocAction("showOutgoingCalls")}},!1,"show outgoing calls in tree view."),this.register({id:"document.echoFiletype",execute:async()=>{let i=await e.call("bufnr","%"),r=v.getDocument(i);!r||await D.echoLines([r.filetype])}},!1,"echo the mapped filetype of the current buffer"),this.register({id:"document.renameCurrentWord",execute:async()=>{let i=await e.call("bufnr","%"),r=v.getDocument(i);if(!r)return;let o=await t.cocAction("getWordEdit");if(!o){D.showMessage("Invalid position","warning");return}let s=[],{changes:a,documentChanges:l}=o;if(a){let u=a[r.uri];u&&(s=u.map(c=>c.range))}else if(l)for(let u of l)Ra.TextDocumentEdit.is(u)&&u.textDocument.uri==r.uri&&(s=u.edits.map(c=>c.range));s.length&&await t.cocAction("addRanges",s)}},!1,"rename word under cursor in current buffer by use multiple cursors."),this.register({id:"document.jumpToNextSymbol",execute:async()=>{let i=await v.document;if(!i)return;let r=await t.cocAction("symbolRanges");if(!r)return;let{textDocument:o}=i,s=await D.getOffset();r.sort((a,l)=>a.start.line!=l.start.line?a.start.line-l.start.line:a.start.character-l.start.character);for(let a=0;a<=r.length-1;a++)if(o.offsetAt(r[a].start)>s){await D.moveTo(r[a].start);return}await D.moveTo(r[0].start)}},!1,"Jump to next symbol highlight position."),this.register({id:"workspace.openLocation",execute:async(i,r,o)=>{i&&await e.call("win_gotoid",[i]),await v.jumpTo(r.uri,r.range.start,o)}},!0),this.register({id:"document.jumpToPrevSymbol",execute:async()=>{let i=await v.document;if(!i)return;let r=await t.cocAction("symbolRanges");if(!r)return;let{textDocument:o}=i,s=await D.getOffset();r.sort((a,l)=>a.start.line!=l.start.line?a.start.line-l.start.line:a.start.character-l.start.character);for(let a=r.length-1;a>=0;a--)if(o.offsetAt(r[a].end)<s){await D.moveTo(r[a].start);return}await D.moveTo(r[r.length-1].start)}},!1,"Jump to previous symbol highlight position."),this.register({id:"document.checkBuffer",execute:async()=>{await t.cocAction("bufferCheck")}},!1,"Check providers for current buffer.")}get commandList(){let e=[];for(let t of this.commands.values())t.internal||e.push(t);return e}dispose(){for(let e of this.commands.values())e.dispose();this.commands.clear()}execute(e){var t;return this.executeCommand(e.command,...(t=e.arguments)!=null?t:[])}register(e,t=!1,i){for(let r of Array.isArray(e.id)?e.id:[e.id])this.registerCommand(r,e.execute,e,t),i&&this.titles.set(r,i);return e}has(e){return this.commands.has(e)}unregister(e){let t=this.commands.get(e);!t||(t.dispose(),this.commands.delete(e))}registerCommand(e,t,i,r=!1){return e.startsWith("_")&&(r=!0),this.commands.set(e,new jee(e,t,i,r)),Ra.Disposable.create(()=>{this.commands.delete(e)})}executeCommand(e,...t){let i=this.commands.get(e);if(!i)throw new Error(`Command: ${e} not found`);return Promise.resolve(i.execute.apply(i,t))}async addRecent(e){await this.mru.add(e),await v.nvim.command('silent! call repeat#set("\\<Plug>(coc-command-repeat)", -1)')}async repeatCommand(){let t=(await this.mru.load())[0];t&&(await this.executeCommand(t),await v.nvim.command('silent! call repeat#set("\\<Plug>(coc-command-repeat)", -1)'))}},re=new Fee});uS();var wte=S(DA()),xte=S(XC());he();var vte=require("events"),zP=S(q());xi();var BP=S(q());we();he();Wl();z();jn();Ht();Fe();Q();var La=S(q());z();os();Fe();os();function Mee(n=0,e){for(let t=n;t<e.length;t++)if(Aee(t,e))return t;return-1}function Oee(n){return n>=65&&n<=90}function Aee(n,e){if(n==0)return!0;let t=e[n];if(!Mf(t))return!1;let i=e[n-1];return!!(!Mf(i)||Oee(t)&&!Oee(i))}function Nee(n,e){if(e.length==0||n.length<e.length)return 0;let t=Cn(n),i=t[0],r=0,o=e[0],s=1;if(Ar(o,i))r=o==i?5:2.5,s=1;else{let l=Mee(1,t);if(l!=-1&&Ar(o,t[l])&&(r=o==t[l]?2.5:2,s=l+1),r==0)for(let u=1;u<t.length;u++)Ar(o,t[u])&&(r=o==t[u]?1:.5,s=u+1)}if(e.length==1||r==0)return r;let a=zf(t,s,e.slice(1));return a==0?0:r+a}function zf(n,e,t){if(e>=n.length)return 0;let i=[],r=t[0],o=n.length,s=t.length==1;if(!Mf(r)){for(let u=e;u<o;u++)if(n[u]==r){if(s)return 1;let c=zf(n,u+1,t.slice(1));return c==0?0:1+c}return 0}let a=n[e],l=Ar(r,a);if(l){let u=r==a?1:.5;if(!s){let c=zf(n,e+1,t.slice(1));u=c==0?0:u+c}i.push(u)}if(Mf(r)&&!Aee(e,n)){let u=Mee(e+1,n);if(u!==-1){let c=n[u];if(Ar(r,c)){let h=r==c?1:.75;if(!s){let d=zf(n,u+1,t.slice(1));h=d==0?0:h+d}i.push(h)}}}if(!l)for(let u=e+1;u<o;u++){let c=n[u];if(Ar(r,c)){let h=r==c?.1:.05;if(!s){let d=zf(n,u+1,t.slice(1));h=d==0?0:h+d}i.push(h)}}return i.length?Math.max(...i):0}var Hke=process.env.VIM_NODE_RPC=="1",qP=Y()("completion-complete"),Sx=class{constructor(e,t,i,r,o,s){this.option=e;this.document=t;this.config=i;this.sources=r;this.mruLoader=o;this.nvim=s;this.results=new Map;this._input="";this._completing=!1;this.localBonus=new Map;this.filtered=new Set;this.names=[];this._onDidRefresh=new La.Emitter;this.onDidRefresh=this._onDidRefresh.event;this.tokenSource=new La.CancellationTokenSource,r.sort((a,l)=>l.priority-a.priority),this.names=r.map(a=>a.name)}fireRefresh(e){this.timer&&clearTimeout(this.timer),this.timer=setTimeout(()=>{this.allFiltered||this._onDidRefresh.fire()},e)}get allFiltered(){let{filtered:e,results:t}=this;if(e.size===0)return!1;for(let i of t.keys())if(!e.has(i))return!1;return!0}get isCompleting(){return this._completing}get input(){return this._input}get isEmpty(){let e=!0;for(let t of this.results.values())if(t.items.length>0){e=!1;break}return e}getIncompleteSources(){let e=[];for(let[t,i]of this.results.entries())i.isIncomplete&&e.push(t);return e}async doComplete(){let e=this.tokenSource.token,t=await Promise.all([this.nvim.call("coc#util#synname",[]),this.document.patchChange()]);if(this.option.synname=t[0],e.isCancellationRequested)return!0;let{triggerCompletionWait:i,localityBonus:r}=this.config;if(await Qe(Math.min(i!=null?i:0,50)),e.isCancellationRequested)return!0;let{colnr:o,linenr:s,col:a}=this.option;if(r){let l=s-1;this.localBonus=this.document.getLocalifyBonus(La.Position.create(l,a-1),La.Position.create(l,o))}return await this.completeSources(this.sources),e.isCancellationRequested}async completeSources(e){let{fixInsertedWord:t,timeout:i}=this.config,{results:r,tokenSource:o}=this,s=this.option.col,a=r.size>0,l=t?this.getFollowPart():"",u=e.map(p=>p.name),c=u.length;this._completing=!0;let h=o.token,d,g=new Promise(p=>{d=setTimeout(()=>{o.token.isCancellationRequested||(u=u.filter(b=>!f.includes(b)),o.cancel(),qP.warn(`Complete timeout after ${i}ms`,u),this.nvim.setVar("coc_timeout_sources",u,!0)),p()},typeof i=="number"?i:500)}),f=[];await Promise.race([g,Promise.all(e.map(p=>this.completeSource(p,h,l).then(()=>{if(f.push(p.name),h.isCancellationRequested||a)return;let b=this.option.col!==s;b&&this.cancel(),b||f.length===c?this.fireRefresh(0):r.has(p.name)&&this.fireRefresh(16)})))]),clearTimeout(d),this._completing=!1}async completeSource(e,t,i){var a;let r=Object.assign({},this.option),{snippetIndicator:o}=this.config,{name:s}=e;try{if(typeof e.shouldComplete=="function"&&(!await Promise.resolve(e.shouldComplete(r))||t.isCancellationRequested))return;let l=(a=e.priority)!=null?a:0,u=Date.now();await new Promise((c,h)=>{Promise.resolve(e.doComplete(r,t)).then(d=>{let g=d?d.items.length:0;if(t.isCancellationRequested){c(void 0);return}if(qP.debug(`Source "${s}" finished with ${g} items ${Date.now()-u}ms`),g>0){d.priority=l;let f=i.length>0;d.items.forEach((p,b)=>{var w,x;let y=(w=p.word)!=null?w:"";p.word=y,p.source=s,p.priority=l,p.filterText=(x=p.filterText)!=null?x:y,f&&y.endsWith(i)&&(p.word=y.slice(0,-i.length)),p.isSnippet===!0&&(p.abbr=`${p.abbr||y}${o}`),p.localBonus=this.localBonus.get(p.filterText)||0,p.user_data=`${s}:${b}`}),this.setResult(s,d)}else this.results.delete(s);c()},d=>{h(d)})})}catch(l){this.nvim.echoError(l),qP.error("Complete error:",e.name,l)}}async completeInComplete(e,t){let{document:i}=this;this.cancel(),this.tokenSource=new La.CancellationTokenSource;let r=this.tokenSource.token;if(await i.patchChange(!0),r.isCancellationRequested)return;let{input:o,colnr:s,linenr:a}=this.option,l=e[e.length-1];Object.assign(this.option,{input:e,line:i.getline(a-1),colnr:s+(e.length-o.length),triggerCharacter:!l||ac(l)?void 0:l,triggerForInComplete:!0});let u=this.sources.filter(c=>t.includes(c.name));if(await this.completeSources(u),!r.isCancellationRequested)return this.filterItems(e)}filterItems(e){let{results:t,names:i}=this;if(this._input=e,t.size==0)return[];let r=e.length,o=r==0,{maxItemCount:s,selection:a,enablePreselect:l,defaultSortMethod:u,removeDuplicateItems:c}=this.config,h=[],d=Cn(e),g=new Set,f=-1,p=a!=="none";for(let y of i){let w=t.get(y);if(!w)continue;let x=y==="snippets",k=w.items;for(let L=0;L<k.length;L++){let j=k[L],{word:O,filterText:W,dup:H}=j;if(!(H!==1&&g.has(O))&&!(W.length<r)&&!(c&&j.isSnippet!==!0&&g.has(O))){if(!o){let N=j.kind&&W==e?64:Nee(W,d);if(N===0)continue;x&&O===e?j.score=99:j.score=N*(j.sourceScore||1)}if(p){let N=this.mruLoader.getScore(e,j);f=Math.max(N,f),j.recentScore=N}g.add(O),h.push(j)}}}h.sort((y,w)=>{let x=y.sortText,k=w.sortText;if(y.score!==w.score)return w.score-y.score;if(y.priority!==w.priority)return w.priority-y.priority;if(y.localBonus!==w.localBonus)return w.localBonus-y.localBonus;if(y.source===w.source&&x!==k)return x<k?-1:1;if(e.length===0)return 0;switch(u){case"none":return 0;case"alphabetical":return y.filterText.localeCompare(w.filterText);case"length":default:return y.filterText.length-w.filterText.length}});let b=t.keys();if(process.nextTick(()=>{let{results:y}=this;for(let w of b){let x=y.get(w);x&&(x.items=h.filter(k=>k.source===w))}}),f!==-1){let y=h.findIndex(w=>w.recentScore===f);if(l&&!Hke)h[y].preselect=!0;else{let w=h.splice(y,1);h.unshift(w[0])}}return this.limitCompleteItems(h.slice(0,s))}async filterResults(e){if(this.filtered=new Set(this.results.keys()),e!==this.option.input){let t=this.getIncompleteSources();if(t.length)return await this.completeInComplete(e,t)}return this.filterItems(e)}limitCompleteItems(e){let{highPrioritySourceLimit:t,lowPrioritySourceLimit:i}=this.config;if(!t&&!i)return e;let r=new Map;return e.filter(o=>{let{priority:s,source:a}=o,l=s<90,u=r.get(a)||0;return i&&l&&u==i||t&&!l&&u==t?!1:(r.set(a,u+1),!0)})}setResult(e,t){let{results:i}=this,{line:r,colnr:o,col:s}=this.option;if(typeof t.startcol=="number"&&t.startcol!=s){let{startcol:a}=t;this.option.col=a,this.option.input=tt(r,a,o-1),i.clear(),i.set(e,t)}else i.set(e,t)}cancel(){let{tokenSource:e,timer:t}=this;t&&clearTimeout(t),e.cancel(),this._completing=!1}resolveCompletionItem(e){if(typeof e.user_data!="string")return null;try{let t=e.user_data.split(":",2),i=this.results.get(t[0]);return i?i.items.find(r=>r.user_data==e.user_data):null}catch{return null}}getFollowPart(){let{colnr:e,line:t}=this.option,i=yi(t,e-1);return i==t.length?"":t.slice(i-t.length).match(/^\S?[\w-]*/)[0]}dispose(){this.cancel(),this._onDidRefresh.dispose(),this.sources=[],this.filtered.clear(),this.results.clear()}};he();jk();var iet=Y()("floating"),Tx=class{constructor(e,t){this.nvim=e;this.isVim=t;this.winid=0;this.bufnr=0}async show(e,t,i){let{nvim:r}=this;e=e.filter(c=>c.content.trim().length>0);let{lines:o,codes:s,highlights:a}=Vm(e,{excludeImages:i.excludeImages});if(o.length==0){this.close();return}let l={codes:s,highlights:a,maxWidth:i.maxWidth||80,pumbounding:t};i.border&&(l.border=[1,1,1,1]),i.highlight&&(l.highlight=i.highlight),i.borderhighlight&&(l.borderhighlight=i.borderhighlight),this.isVim||(typeof i.winblend=="number"&&(l.winblend=i.winblend),l.focusable=i.focusable===!0?1:0,i.shadow&&(l.shadow=1));let u=await r.call("coc#dialog#create_pum_float",[this.winid,this.bufnr,o,l]);r.redrawVim(),!(!u||u.length==0)&&(this.winid=u[0],this.bufnr=u[1],_.pumvisible||this.close())}close(){let{winid:e,nvim:t}=this;this.winid=0,e&&(t.call("coc#float#close",[e],!0),t.redrawVim())}};Kg();var kx=class{constructor(e){this.selection=e;this.max=0;this.items=new Map;this.itemsNoPrefex=new Map;this.mru=new to(`suggest${globalThis.__TEST__?process.pid:""}.txt`,process.env.COC_DATA_HOME,1e3)}async load(){let{selection:e}=this;if(e=="none")return;let t=await this.mru.load(),i=t.length;for(let r=i-1;r>=0;r--){let o=t[r];if(!o.includes("|"))continue;let[s,a,l,u]=o.split("|");!l||(this.items.set(o,i-1-r),this.itemsNoPrefex.set(`${a}|${l}|${u||""}`,i-1-r))}this.max=i-1}getScore(e,t){var o,s;let i=Hee(t);return e.length==0?(o=this.itemsNoPrefex.get(i))!=null?o:-1:(this.selection==="recentlyUsedByPrefix"&&(i=`${e}|${i}`),(s=(this.selection==="recentlyUsed"?this.itemsNoPrefex:this.items).get(i))!=null?s:-1)}add(e,t){if(this.selection=="none")return;let i=Hee(t),r=`${e}|key`;this.items.set(r,this.max),this.itemsNoPrefex.set(i,this.max),this.max+=1,this.mru.add(r)}};function Hee(n){var r;let e=n.filterText,t=n.source,i=(r=n.kind)!=null?r:"";return`${e}|${t}|${i}`}he();Fe();var cet=Y()("completion-util");async function qee(){let n=await _.race(["InsertLeave","CursorMovedI","MenuPopupChanged","TextChangedI","InsertCharPre"],300);return n==null?void 0:n.name}async function Bee(){let n=await _.race(["InsertCharPre","CursorMoved","InsertLeave","TextChangedI"],100);return!n||n.name!=="TextChangedI"?n?n.name:void 0:n.args[1]}function Yee(n="",e){if(!n)return!1;for(let t of n.split(","))if(t.indexOf("=")>-1){let[i,r]=t.split("="),o=r.startsWith("~")?r.slice(1):r;if(e.length<o.length||e.length>o.length&&!/^\s/.test(e.slice(-o.length-1))||!(r.startsWith("~")?e.toLowerCase().endsWith(o):e.endsWith(o)))continue;if(i==""||i=="0"&&(e.length==o.length||/^\s*$/.test(e.slice(0,e.length-o.length))))return!0}return!1}function Wee(n,e,t,i){let{pre:r}=t;if(r.length===0||r[r.length-1]===" "||r.length<e.length||i.bufnr!=n)return!0;let o=tt(i.line,0,i.colnr-1);return i.linenr!=t.lnum||!r.startsWith(o)}var cs=Y()("completion"),qke=["abbr","menu","info","kind","icase","dup","empty","user_data"],Zee=class{constructor(){this.hasInsert=!1;this.activated=!1;this.disposables=[];this.complete=null}init(){this.nvim=v.nvim,this.config=this.getCompleteConfig(),this.mru=new kx(this.config.selection),this.mru.load(),v.onDidChangeConfiguration(e=>{e.affectsConfiguration("suggest")&&(this.config=this.getCompleteConfig())},null,this.disposables),this.floating=new Tx(v.nvim,v.env.isVim),_.on("InsertLeave",()=>{this.stop()},null,this.disposables),_.on("CursorMovedI",(e,t,i)=>{if(this.triggerTimer&&clearTimeout(this.triggerTimer),!(i||!this.option||e!==this.option.bufnr)){if(this.option.linenr===t[0]){let r=v.getDocument(e),o=r.getline(t[0]-1),s=yi(o,t[1]-1),a=yi(o,this.option.colnr-1);if(a<s){let l=o.substring(a,s);if(r.isWord(l))return}}this.stop()}},null,this.disposables),_.on("InsertEnter",this.onInsertEnter,this,this.disposables),_.on("TextChangedP",this.onTextChangedP,this,this.disposables),_.on("TextChangedI",this.onTextChangedI,this,this.disposables),_.on("CompleteDone",async e=>{var t;if(this.previousItem=(t=this.popupEvent)==null?void 0:t.completed_item,this.popupEvent=null,this.hasInsert=!1,!(!this.activated||e.closed)){if(this.cancelResolve(),e.close)return this.stop();oc(e)?await this.onCompleteDone(e):await qee()=="CursorMovedI"&&this.stop()}},null,this.disposables),_.on("MenuPopupChanged",async e=>{var t;!this.activated||((t=this.document)==null?void 0:t.isCommandLine)||_e(this.popupEvent,e)||(this.cancelResolve(),this.popupEvent=e,await this.onPumChange())},null,this.disposables)}get option(){return this.complete?this.complete.option:null}get selectedItem(){if(!this.popupEvent)return null;let{completed_item:e}=this.popupEvent;return oc(e)?e:null}get isActivated(){return this.activated}get document(){return this.option?v.getDocument(this.option.bufnr):null}getCompleteConfig(){let e=v.getConfiguration("suggest");function t(a,l){return e.get(a,l)}let i=t("keepCompleteopt",!1),r=t("autoTrigger","always");if(i&&r!="none"){let{completeOpt:a}=v;!a.includes("noinsert")&&!a.includes("noselect")&&(i=!1,this.nvim.echoError("suggest.keepCompleteopt disabled, completeopt should includes noinsert or noselect"))}let o=v.floatSupported&&t("floatEnable",!0),s=v.env.pumevent&&t("acceptSuggestionOnCommitCharacter",!1);return{autoTrigger:r,floatEnable:o,keepCompleteopt:i,selection:t("selection","recentlyUsed"),floatConfig:t("floatConfig",{}),defaultSortMethod:t("defaultSortMethod","length"),removeDuplicateItems:t("removeDuplicateItems",!1),disableMenuShortcut:t("disableMenuShortcut",!1),acceptSuggestionOnCommitCharacter:s,disableKind:t("disableKind",!1),disableMenu:t("disableMenu",!1),previewIsKeyword:t("previewIsKeyword","@,48-57,_192-255"),enablePreview:t("enablePreview",!1),enablePreselect:t("enablePreselect",!1),triggerCompletionWait:t("triggerCompletionWait",0),labelMaxLength:t("labelMaxLength",200),triggerAfterInsertEnter:t("triggerAfterInsertEnter",!1),noselect:t("noselect",!0),maxItemCount:t("maxCompleteItemCount",50),timeout:t("timeout",500),minTriggerInputLength:t("minTriggerInputLength",1),snippetIndicator:t("snippetIndicator","~"),fixInsertedWord:t("fixInsertedWord",!0),localityBonus:t("localityBonus",!0),highPrioritySourceLimit:t("highPrioritySourceLimit",null),lowPrioritySourceLimit:t("lowPrioritySourceLimit",null),ignoreRegexps:t("ignoreRegexps",[]),asciiCharactersOnly:t("asciiCharactersOnly",!1)}}async startCompletion(e,t){try{let i=v.getAttachedDocument(e.bufnr);if(e.filetype=i.filetype,cs.debug("trigger completion with",e),this.stop(),this.pretext=tt(e.line,0,e.colnr-1),t=t!=null?t:this.getSources(e),!t||t.length===0)return;this.changedtick=e.changedtick;let r=this.complete=new Sx(e,i,this.config,t,this.mru,this.nvim);r.onDidRefresh(async()=>{if(this.triggerTimer!=null&&clearTimeout(this.triggerTimer),r.isEmpty){this.stop();return}this.hasInsert||await this.filterResults()}),await r.doComplete()}catch(i){this.stop(),this.nvim.echoError(i)}}getSources(e){let{source:t}=e;if(t){let i=_t.getSource(t);return i?[i]:[]}return _t.getCompleteSources(e)}hasSelected(){return v.env.pumevent?this.selectedItem!=null:!this.config.noselect}showCompletion(e){let{nvim:t,option:i,changedtick:r}=this;if(!i)return;let{disableKind:o,labelMaxLength:s,disableMenuShortcut:a,disableMenu:l}=this.config,u=this.config.enablePreselect?e.findIndex(d=>d.preselect):-1,c=qke.slice();o&&(c=c.filter(d=>d!="kind")),l&&(c=c.filter(d=>d!="menu"));let h=e.map(d=>{let g={word:d.word,equal:1};for(let f of c)d.hasOwnProperty(f)&&(a&&f=="menu"?g[f]=d[f].replace(/\[.+\]$/,""):f=="abbr"&&d[f].length>s?g[f]=d[f].slice(0,s):g[f]=d[f]);return g});t.pauseNotification(),h.length&&this.start(),t.call("coc#_do_complete",[i.col,h,u,r],!0),t.resumeNotification(!1,!0)}async onTextChangedP(e,t){let{option:i,document:r}=this;if(!i||i.bufnr!=e||(t.insertChar||this.pretext==t.pre)&&Yee(i.indentkeys,t.pre)&&(cs.debug(`trigger indent by ${t.pre}`),await this.nvim.call("coc#complete_indent",[]))||(this.changedtick=t.changedtick,this.pretext==t.pre))return;let o=this.pretext=t.pre;if(t.pre.match(/^\s*/)[0]!==i.line.match(/^\s*/)[0]){this.stop();let s=await _.race(["TextChangedI","InsertCharPre"],50);s.name==="TextChangedI"&&await this.triggerCompletion(r,s.args[1]);return}if(this.selectedItem&&!t.insertChar&&tt(i.line,0,i.col)+this.selectedItem.word==o){this.hasInsert=!0;return}await this.filterResults()}async onTextChangedI(e,t){if(!v.isAttached(e)||this.config.autoTrigger==="none"||this.option&&Wee(e,this.pretext,t,this.option)&&(this.stop(),!t.insertChar)||(this.changedtick=t.changedtick,t.pre===this.pretext))return;this.triggerTimer&&clearTimeout(this.triggerTimer);let i=this.pretext=t.pre,r=v.getDocument(e);if(this.activated&&this.config.acceptSuggestionOnCommitCharacter&&oc(this.previousItem)){let o=this.getCompleteItem(this.previousItem),s=i.slice(-1);if(_t.shouldCommit(o,s)){cs.debug("commit by commit character.");let{linenr:a,col:l,line:u,colnr:c}=this.option;this.stop();let{word:h}=o,d=`${u.slice(0,l)}${h}${t.insertChar}${u.slice(c-1)}`;await this.nvim.call("coc#util#setline",[a,d]);let g=l+h.length+2;await this.nvim.call("cursor",[a,g]),await r.patchChange();return}}if(t.insertChar&&!ac(t.insertChar)){let o=r.getVar("disabled_sources",[]),s=_t.getTriggerSources(i,r.filetype,r.uri,o);if(s.length>0){await this.triggerCompletion(r,t,s);return}}if(!this.complete){if(!t.insertChar)return;await this.triggerCompletion(r,t);return}if(t.insertChar&&this.complete.isEmpty){this.triggerTimer=setTimeout(async()=>{await this.triggerCompletion(r,t)},200);return}await this.filterResults()}async triggerCompletion(e,t,i){let{minTriggerInputLength:r}=this.config,{pre:o}=t;if(!i&&!this.shouldTrigger(e,o))return!1;if(e.getVar("suggest_disable"))return cs.warn(`Completion of ${e.bufnr} disabled by b:coc_suggest_disable`),!1;let a=this.getInput(e,o),l={input:a,line:t.line,filetype:e.filetype,linenr:t.lnum,col:t.col-1-V(a),colnr:t.col,bufnr:e.bufnr,word:a+this.getPrependWord(e,t.line.slice(o.length)),changedtick:t.changedtick,indentkeys:e.indentkeys,synname:"",filepath:e.schema==="file"?M.parse(e.uri).fsPath:"",triggerCharacter:o.length?o.slice(-1):void 0,blacklist:e.getVar("suggest_blacklist",[]),disabled:e.getVar("disabled_sources",[])};return i==null&&a.length<r?(cs.warn(`Suggest not triggered with input "${a}", minimal trigger input length: ${r}`),!1):l.blacklist&&l.blacklist.includes(l.input)?(cs.warn("Suggest disabled by b:coc_suggest_blacklist",l.blacklist),!1):this.config.ignoreRegexps.length>0&&l.input.length>0&&this.config.ignoreRegexps.some(c=>{if(new RegExp(c).test(l.input))return cs.warn(`Suggest disabled by ignore regexp: ${c}`),!0})?!1:(await this.startCompletion(l,i),!0)}async onCompleteDone(e){let{document:t,complete:i}=this;if(!t||!oc(e))return;let r=i.input,o=Object.assign({},this.option),s=this.getCompleteItem(e);if(this.stop(),!s)return;this.mru.add(r,s);let a=await Bee();if(typeof a=="string"||a&&(a.lnum!=o.linenr||a.pre!==tt(o.line,0,o.col)+e.word)||await _.race(["InsertCharPre","CursorMovedI"],20))return;let u=new BP.CancellationTokenSource,{token:c}=u;await this.doCompleteResolve(s,u),!c.isCancellationRequested&&await this.doCompleteDone(s,o)}doCompleteResolve(e,t){let i=_t.getSource(e.source);return new Promise(r=>{if(i&&typeof i.onCompleteResolve=="function"){let o=setTimeout(()=>{t.cancel(),cs.warn(`Resolve timeout after 500ms: ${i.name}`),r()},500);Promise.resolve(i.onCompleteResolve(e,t.token)).then(()=>{clearTimeout(o),r()},s=>{cs.error(`Error on complete resolve: ${s.message}`,s),clearTimeout(o),r()})}else r()})}async doCompleteDone(e,t){let i=_t.getSource(e.source);i&&typeof i.onCompleteDone=="function"&&await Promise.resolve(i.onCompleteDone(e,t))}async onInsertEnter(e){if(!this.config.triggerAfterInsertEnter||this.config.autoTrigger!=="always"||!v.isAttached(e))return;let t=await this.nvim.call("coc#util#change_info");if(t.pre=tt(t.line,0,t.col-1),!t.pre)return;let i=v.getDocument(e);await this.triggerCompletion(i,t)}shouldTrigger(e,t){let{autoTrigger:i}=this.config;return i=="none"?!1:_t.shouldTrigger(t,e.filetype,e.uri)?!0:i==="always"}async onPumChange(){if(!this.popupEvent)return;let{col:e,row:t,height:i,width:r,scrollbar:o}=this.popupEvent,s={col:e,row:t,height:i,width:r,scrollbar:o},a=this.getCompleteItem(this.selectedItem);if(!a){this.floating.close();return}let l=this.resolveTokenSource=new BP.CancellationTokenSource,{token:u}=l;if(await this.doCompleteResolve(a,l),u.isCancellationRequested)return;let c=a.documentation;if(!c&&a.info){let{info:h}=a;c=[{filetype:/^[\w-\s.,\t]+$/.test(h)?"txt":this.document.filetype,content:h}]}if(!!this.config.floatEnable)if(!c||c.length==0)this.floating.close();else{let h=v.getConfiguration("coc.preferences").get("excludeImageLinksInMarkdownDocument"),d=Object.assign({},this.config.floatConfig,{excludeImages:h});await this.floating.show(c,s,d)}}start(){this.activated||(this.activated=!0,this.config.keepCompleteopt||this.nvim.command(`noa set completeopt=${this.completeOpt}`,!0))}cancelResolve(){this.resolveTokenSource&&(this.resolveTokenSource.cancel(),this.resolveTokenSource.dispose(),this.resolveTokenSource=null)}stop(){if(this.cancel(),this.activated){this.activated=!1;let{nvim:e,config:t}=this,i=t.keepCompleteopt?"":v.completeOpt;e.call("coc#_cancel",[1,i],!0),e.redrawVim()}}getInput(e,t){let{asciiCharactersOnly:i}=this.config,r=0;for(let o=t.length-1;o>=0;o--){let s=t[o];if(e.isWord(s)&&(i?s.charCodeAt(0)<255:!0))r+=1;else break}return r==0?"":t.slice(-r)}getPrependWord(e,t){let i=0;for(let r=0;r<t.length&&e.isWord(t[r]);r++)i=r+1;return i==0?"":t.slice(0,i)}getResumeInput(){let{option:e,pretext:t,document:i}=this;if(!e||!i)return null;let r=Buffer.from(t,"utf8");if(r.length<e.colnr-1)return null;let o=tt(e.line,0,e.colnr-1);if(!t.startsWith(o)||t.slice(o.length).includes(" "))return null;let a=r.slice(e.col).toString("utf8");return a.length>0&&e.blacklist&&e.blacklist.includes(a)?null:a}async filterResults(){let{complete:e}=this,t=this.getResumeInput();if(t==null){this.stop();return}let i=await e.filterResults(t);if(i!==void 0){if(i.length==0){e.isCompleting||this.stop();return}this.showCompletion(i)}}get completeOpt(){let{noselect:e,enablePreview:t}=this.config,i=t&&!v.env.pumevent?",preview":"";return e?`noselect,menuone${i}`:`noinsert,menuone${i}`}getCompleteItem(e){return!this.complete||!oc(e)?null:this.complete.resolveCompletionItem(e)}cancel(){this.complete!=null&&(this.complete.dispose(),this.complete=null),this.triggerTimer!=null&&(clearTimeout(this.triggerTimer),this.triggerTimer=null),this.cancelResolve(),this.previousItem=void 0,this.pretext=void 0,this.hasInsert=!1}dispose(){this.cancelResolve(),J(this.disposables)}},Dh=new Zee;gb();var Ph=S(q());bt();De();Q();var _h=S(Ob()),hs=S(q());Sc();z();bt();ea();De();Q();No();bt();ea();var YP=S(q());Ht();ea();function WP(n,e){let t=[];for(let i=e.start.line;i<=e.end.line;i++){let r=n.getline(i)||"",o=i==e.start.line?e.start.character:0,s=i==e.end.line?e.end.character:r.length;o!=s&&t.push(YP.Range.create(i,o,i,s))}return t}function Jee(n,e){let{start:t,end:i}=Ab(e),r=t.character<i.character?t.character:i.character,o=t.character<i.character?i.character:t.character,s=[];for(let a=t.line;a<=i.line;a++){let l=n.getline(a);s.push(YP.Range.create(a,r,a,Math.min(l.length,o)))}return s}function ZP(n){return Array.isArray(n.prepend)&&Array.isArray(n.append)}function Qf(n){return ZP(n)?n.append[1].length+n.prepend[1].length-n.append[0]-n.prepend[0]:n.insert.length-n.remove}function Dx(n,e,t){let i=n.text;if(_e(n.range,e)){let s=i.indexOf(t);if(s!==-1){let a=[s,""],l=[i.length-t.length-s,""];return{prepend:a,append:l}}if(s=t.indexOf(i),s!==-1){let a=[0,t.slice(0,s)],l=[0,t.slice(-(t.length-i.length-s))];return{prepend:a,append:l}}}if(_e(n.range.end,e.end)){let s=e.end.character-e.start.character;return{offset:s,remove:s,insert:t,fromEnd:!0}}let r=e.end.character-e.start.character;return{offset:e.start.character-n.range.start.character,remove:r,insert:t}}function Vf(n,e,t){let i=0;for(let r=0;r<e.length;r++){let o=e[r];if(!(o.position.line<n.position.line||o===t)){if(o.isBefore(n)){i++;continue}break}}return i}var qet=Y()("cursors-range"),Eh=class{constructor(e,t,i){this.start=mi.create(e,t),this._text=i,this.end=Ri(this.start,this._text)}get position(){return this.start}get line(){return this.start.line}get text(){return this._text}get range(){return Me.create(this.start,this.end)}get textEdit(){return{range:this.range,newText:this.text}}applyChange(e){ZP(e)?this.applySurrondChange(e):this.applyTextChange(e)}applySurrondChange(e){let{prepend:t,append:i}=e,r=this._text.length,o=this._text.substring(t[0],r-i[0]);this._text=`${t[1]}${o}${i[1]}`}applyTextChange(e){let{text:t}=this,{offset:i,remove:r,fromEnd:o,insert:s}=e;o&&(i=-i);let a=t.slice(0,o&&i==0?t.length:i),l=t.slice(a.length);r&&(l=l.slice(r)),this._text=`${a}${s||""}${l}`}move(e){if(e!=0){let{line:t,character:i}=this.start;this.start=mi.create(t,i+e)}this.end=Ri(this.start,this._text)}adjustFromEdit(e){let t=Nb(this.start,e);if(t.line||t.character){let{line:i,character:r}=this.start;this.start=mi.create(i+t.line,r+t.character),this.end=Ri(this.start,this._text)}return t.character}isBefore(e){let{position:t}=e,{line:i,character:r}=this.start;return t.line==i&&t.character>r}};var ep=Y()("cursors-session"),Ex=class{constructor(e,t){this.nvim=e;this.doc=t;this._onDidCancel=new hs.Emitter;this._onDidUpdate=new hs.Emitter;this.onDidCancel=this._onDidCancel.event;this.onDidUpdate=this._onDidUpdate.event;this.disposables=[];this.ranges=[];this.activated=!0;this.changing=!1;t.buffer.setVar("coc_cursors_activated",1,!0),this.loadConfig();let{cancelKey:i,nextKey:r,previousKey:o}=this.config;this.disposables.push(v.registerLocalKeymap("n",i,()=>{this.cancel()})),this.disposables.push(v.registerLocalKeymap("n",r,async()=>{let s=this.ranges.map(u=>u.range),a=await D.getCursorPosition();for(let u of s)if(xe(u.start,a)>0){await D.moveTo(u.start);return}let l=this.config.wrapscan;s.length&&l&&await D.moveTo(s[0].start)})),this.disposables.push(v.registerLocalKeymap("n",o,async()=>{let s=this.ranges.map(u=>u.range),a=await D.getCursorPosition();for(let u=s.length-1;u>=0;u--){let c=s[u];if(xe(c.end,a)<0){await D.moveTo(c.start);return}}let l=this.config.wrapscan;s.length&&l&&await D.moveTo(s[s.length-1].start)})),this.doc.onDocumentChange(async s=>{await this.onChange(s),this.activated&&!this.changing&&this._onDidUpdate.fire()},this,this.disposables)}loadConfig(){let e=v.getConfiguration("cursors",this.doc.uri);this.config={nextKey:e.get("nextKey","<C-n>"),previousKey:e.get("previousKey","<C-p>"),cancelKey:e.get("cancelKey","<esc>"),wrapscan:e.get("wrapscan",!0)}}addRange(e){let{ranges:t}=this,i=t.findIndex(r=>pl(r.range,e));i!==-1?t.splice(i,1):(this.createRange(e),t.sort((r,o)=>xe(r.range.start,o.range.start))),this.ranges.length==0?this.cancel():this.doHighlights()}addRanges(e){this.doc._forceSync(),this.ranges=this.ranges.filter(t=>!e.some(i=>hb(i,t.range)));for(let t of e)this.createRange(t);return this.ranges.sort((t,i)=>xe(t.range.start,i.range.start)),this.doHighlights(),!0}createRange(e){let{textDocument:t}=this.doc,{line:i,character:r}=e.start,o=t.getText(e);this.ranges.push(new Eh(i,r,o))}async onChange(e){if(!this.activated||this.changing)return;if(e.contentChanges.length===0){this.doHighlights();return}let t=e.contentChanges[0],{text:i,range:r}=t,o=this.ranges.filter(s=>!(!pl(r,s.range)||cb(r,s.range)&&(i.includes(`
`)||!Ct(r))));if(Ct(r)&&o.length>0&&(o=o.slice(0,1)),o.length==0)ep.debug("no affected ranges"),this.ranges.forEach(s=>{s.adjustFromEdit({range:r,newText:i})}),this.doHighlights();else if(o.length==1&&Pi(r,o[0].range)){if(ep.debug("affected single range"),i.includes(`
`)){this.cancel();return}await this.applySingleEdit(o[0],{range:r,newText:i})}else if(!i.length||!this.validChange(r,i)){ep.debug("filter affected ranges.");let s=this.ranges.filter(a=>!o.includes(a));s.length>0?(this.ranges=s,s.forEach(a=>{a.adjustFromEdit({range:r,newText:i})}),this.doHighlights()):this.cancel()}else{ep.debug("Check undo & redo");let s=this.ranges[0],a=this.ranges[this.ranges.length-1],l=e.originalLines.slice(s.line,a.line+1),u=this.doc.textDocument.lines.slice(s.line,a.line+1);this.applyComposedEdit(l,u)}}validChange(e,t){if(Qs(hs.TextEdit.replace(e,t))!=0||!Pi(e,this.range))return!1;let i=this.ranges[0],r=this.ranges[this.ranges.length-1];return!(e.start.line!=i.position.line||e.end.line!=r.position.line)}get range(){let e=this.ranges[0],t=this.ranges[this.ranges.length-1];return hs.Range.create(e.position,t.range.end)}doHighlights(){let{nvim:e,ranges:t,doc:i}=this,r=i.buffer,o=[];t.forEach(s=>{i.addHighlights(o,"CocCursorRange",s.range,{combine:!1,start_incl:!0,end_incl:!0})}),o.sort((s,a)=>s.lnum!=a.lnum?s.lnum-a.lnum:s.colStart!=a.colStart?s.colStart-a.colStart:0),r.updateHighlights("cursors",o,{priority:4096}),e.redrawVim()}get currentRanges(){return this.ranges.map(e=>e.range)}cancel(){if(!this.activated)return;ep.debug("cursors cancel");let{nvim:e,doc:t}=this,i=t.buffer;this.activated=!1,this.ranges=[],e.pauseNotification(),i.clearNamespace("cursors"),i.setVar("coc_cursors_activated",0,!0),e.resumeNotification(!0,!0),this._onDidUpdate.fire(),this._onDidCancel.fire()}dispose(){!this.doc||(this._onDidCancel.dispose(),this._onDidUpdate.dispose(),J(this.disposables),this.ranges=[],this.doc=null)}async applySingleEdit(e,t){let{doc:i,ranges:r}=this;r.filter(u=>u!==e&&u.position.line==e.position.line).forEach(u=>u.adjustFromEdit(t));let s=Dx(e,t.range,t.newText),a=Qf(s);r.forEach(u=>u.applyChange(s));let l=r.filter(u=>u!==e).map(u=>u.textEdit);if(this.changing=!0,await i.applyEdits(l,!0,!0),this.changing=!1,a!=0)for(let u of r){let c=Vf(u,this.ranges,e);u.move(c*a)}this.doHighlights()}applyComposedEdit(e,t){var y,w,x;let i=(0,_h.default)(e[0],t[0]),r=this.ranges[0],o=r.position.character,s=r.position.line,a=r.text.length,l=i[0];if(o>0&&(l[0]!=_h.default.EQUAL||!l[1].startsWith(e[0].slice(0,o))))return this.cancel(),!1;let u=0,c=!1,h=[];for(let k=0;k<i.length;k++){let[L,j]=i[k];if(k==0&&o>0&&(j=j.slice(o)),L==_h.default.EQUAL){if(u+=j.length,u>a)break}else if(L==_h.default.DELETE){let O=u;if(u+=j.length,u>a){c=!0;break}h.push({offset:O,remove:j})}else{let O=i[k-1];O&&O[0]==_h.default.DELETE?h[h.length-1].add=j:h.push({offset:u,add:j})}}if(c||!h.length)return this.cancel(),!1;let d=Fn.create("file:///1","",0,e.join(`
`)),g;if(h.length==1)g={offset:h[0].offset,remove:h[0].remove?h[0].remove.length:0,insert:(y=h[0].add)!=null?y:""};else if(Bke(h,a))g={prepend:[h[0].remove?h[0].remove.length:0,(w=h[0].add)!=null?w:""],append:[h[1].remove?h[1].remove.length:0,(x=h[1].add)!=null?x:""]};else{let k=r.text,L="",j="",O=h[0].offset;for(let W of h){if(W.offset>O+L.length){let H=k.slice(O+L.length,W.offset);L+=H,j+=H}W.add&&(j+=W.add),W.remove&&(L+=W.remove)}g={offset:O,remove:L.length,insert:j}}let f=this.ranges.map(k=>{let L=k.position.line-s,{start:j,end:O}=k.range,W=hs.Range.create(L,j.character,L,O.character);return k.applyChange(g),hs.TextEdit.replace(W,k.text)});if(Fn.applyEdits(d,f)!==t.join(`
`))return this.cancel(),!1;let b=Qf(g);if(b!=0)for(let k of this.ranges){let L=Vf(k,this.ranges);k.move(L*b)}return this.doHighlights(),!0}};function Bke(n,e){return!(n.length!=2||n[0].offset!=0||n[1].offset+(n[1].remove?n[1].remove.length:0)!==e)}var att=Y()("cursors"),_x=class{constructor(e){this.nvim=e;this.sessionsMap=new Map;this.disposables=[];v.onDidCloseTextDocument(t=>{let i=this.getSession(t.bufnr);!i||(this.sessionsMap.delete(t.bufnr),i.cancel())},null,this.disposables)}cancel(e){let t=v.getDocument(e);if(!t)return;let i=this.getSession(t.bufnr);i&&i.cancel()}getSession(e){return this.sessionsMap.get(e)}async isActivated(){let e=await this.nvim.call("bufnr",["%"]);return this.sessionsMap.get(e)!=null}async select(e,t,i){let r=v.getAttachedDocument(e),{nvim:o}=this,s=this.createSession(r),a=await D.getCursorPosition(),l;if(t=="operator"){await o.command(`normal! ${i=="line"?"'[":"`["}`);let u=await D.getCursorPosition();await o.command(`normal! ${i=="line"?"']":"`]"}`);let c=await D.getCursorPosition();await D.moveTo(a);let h=xe(u,c);if(h==0)return;h>=0&&([u,c]=[c,u]);let d=r.getline(c.line);c.character<d.length&&(c.character=c.character+1);let g=WP(r,Ph.Range.create(u,c));s.addRanges(g)}else if(t=="word"){if(l=r.getWordRangeAtPosition(a),!l){let u=r.getline(a.line);a.character==u.length?l=Ph.Range.create(a.line,Math.max(0,u.length-1),a.line,u.length):l=Ph.Range.create(a.line,a.character,a.line,a.character+1)}s.addRange(l),await o.command(`silent! call repeat#set("\\<Plug>(coc-cursors-${t})", -1)`)}else if(t=="position"){let u=r.getline(a.line);a.character>=u.length?l=Ph.Range.create(a.line,u.length-1,a.line,u.length):l=Ph.Range.create(a.line,a.character,a.line,a.character+1),s.addRange(l),await o.command(`silent! call repeat#set("\\<Plug>(coc-cursors-${t})", -1)`)}else if(t=="range"){await o.call("eval",'feedkeys("\\<esc>", "in")');let u=await D.getSelectedRange(i);if(!u)return;let c=i==""?Jee(r,u):WP(r,u);for(let h of c)s.addRange(h)}else throw new Error(`select kind "${t}" not supported`)}createSession(e){let{bufnr:t}=e,i=this.getSession(t);return i||(i=new Ex(this.nvim,e),this.sessionsMap.set(t,i),i.onDidCancel(()=>{i.dispose(),this.sessionsMap.delete(t)}),i)}async addRanges(e){let{nvim:t}=this,i=await t.call("bufnr",["%"]),r=v.getAttachedDocument(i);return this.createSession(r).addRanges(e)}reset(){for(let e of this.sessionsMap.values())e.cancel();this.sessionsMap.clear()}};Ul();he();go();var aC=S(q());he();Se();z();De();Q();var Rh=S(q());xi();Ul();Se();De();Q();var ptt=Y()("handler-codeActions"),Px=class{constructor(e,t){this.nvim=e;this.handler=t;t.addDisposable(re.registerCommand("editor.action.organizeImport",async i=>{await this.organizeImport(i)})),re.titles.set("editor.action.organizeImport","run organize import code action.")}async codeActionRange(e,t,i){let{doc:r}=await this.handler.getCurrentState();await r.synchronize();let o=r.getline(t-1),s=Rh.Range.create(e-1,0,t-1,o.length),a=await this.getCodeActions(r,s,i?[i]:null);if(a=a.filter(c=>!c.disabled),!a||a.length==0){D.showMessage(`No${i?" "+i:""} code action available`,"warning");return}let l=await D.showMenuPicker(a.map(c=>c.title),"Choose action"),u=a[l];u&&await this.applyCodeAction(u)}async organizeImport(e){let{doc:t}=await this.handler.getCurrentState();if(e&&t.bufnr!=e)return;await t.synchronize();let i=await this.getCodeActions(t,void 0,[Rh.CodeActionKind.SourceOrganizeImports]);if(i&&i.length){await this.applyCodeAction(i[0]);return}throw new Error("Organize import action not found.")}async getCodeActions(e,t,i){t=t||Rh.Range.create(0,0,e.lineCount,0);let o={diagnostics:Pt.getDiagnosticsInRange(e.textDocument,t)};i&&Array.isArray(i)&&(o.only=i);let s=await this.handler.withRequestToken("code action",a=>F.getCodeActions(e.textDocument,t,o,a));return!s||s.length==0?[]:(s.sort((a,l)=>a.isPreferred&&!l.isPreferred?-1:l.isPreferred&&!a.isPreferred||a.disabled&&!l.disabled?1:l.disabled&&!a.disabled?-1:0),s)}get floatActions(){return v.floatSupported?v.getConfiguration("coc.preferences").get("floatActions",!0):!1}async doCodeAction(e,t){let{doc:i}=await this.handler.getCurrentState(),r;e&&(r=await D.getSelectedRange(e)),await i.synchronize();let o=await this.getCodeActions(i,r,Array.isArray(t)?t:null);if(typeof t=="string"?o=o.filter(l=>l.title==t||l.command&&l.command.title==t):Array.isArray(t)&&(o=o.filter(l=>t.some(u=>l.kind&&l.kind.startsWith(u)))),!o||o.length==0){D.showMessage(`No${t?" "+t:""} code action available`,"warning");return}if(t&&o.length==1&&!o[0].disabled){await this.applyCodeAction(o[0]);return}this.floatActions||(o=o.filter(l=>!l.disabled));let s=this.floatActions?await D.showMenuPicker(o.map(l=>({text:l.title,disabled:l.disabled})),"Choose action"):await D.showQuickpick(o.map(l=>l.title)),a=o[s];a&&await this.applyCodeAction(a)}async getCurrentCodeActions(e,t){let{doc:i}=await this.handler.getCurrentState(),r;return e&&(r=await D.getSelectedRange(e)),(await this.getCodeActions(i,r,t)).filter(s=>!s.disabled)}async doQuickfix(){let e=await this.getCurrentCodeActions("line",[Rh.CodeActionKind.QuickFix]);if(!e||e.length==0)throw new Error("No quickfix action available");await this.applyCodeAction(e[0]),this.nvim.command('silent! call repeat#set("\\<Plug>(coc-fix-current)", -1)',!0)}async applyCodeAction(e){if(e.disabled)throw new Error(`Action "${e.title}" is disabled: ${e.disabled.reason}`);if(!e.providerId)throw new Error("providerId not found with codeAction");let t=await this.handler.withRequestToken("resolve codeAction",o=>F.resolveCodeAction(e,o)),{edit:i,command:r}=t;i&&await v.applyEdit(i),r&&await re.execute(r)}};he();z();Q();var $ee=S(_i()),JP=S(q());xi();Se();De();Q();var Stt=Y()("codelens-buffer"),Rx=class{constructor(e,t,i){this.nvim=e;this.document=t;this.config=i;this.resolveCodeLens=(0,$ee.default)(()=>{this._resolveCodeLenses()},global.__TEST__?20:200),this.fetchCodeLenses()}get bufnr(){return this.document.bufnr}onChange(e){e.contentChanges.length===0&&this.codeLenses!=null?this._resolveCodeLenses():(this.cancel(),this.fetchCodeLenses())}get currentCodeLens(){var e;return(e=this.codeLenses)==null?void 0:e.codeLenses}get enabled(){var e;return(e=this.document)!=null&&e.attached?this.config.enabled&&F.hasProvider("codeLens",this.document.textDocument):!1}async forceFetch(){!this.enabled||(await this.document.synchronize(),this.cancel(),await this.fetchCodeLenses())}async fetchCodeLenses(){var t;if(!this.enabled)return;if(this.cancel(),!(((t=this.codeLenses)==null?void 0:t.version)==this.document.version)){let{textDocument:i}=this.document,r=i.version,s=(this.tokenSource=new JP.CancellationTokenSource).token,a=await F.getCodeLens(i,s);if(a=Array.isArray(a)?a.filter(l=>l!=null):[],this.tokenSource=void 0,s.isCancellationRequested||a.length==0)return;this.codeLenses={version:r,codeLenses:a}}await this._resolveCodeLenses()}async _resolveCodeLenses(){if(!this.enabled||!this.codeLenses||this.isChanged||!v.has("nvim-0.4.0"))return;let{codeLenses:e}=this.codeLenses,[t,i,r]=await this.nvim.eval("[bufnr('%'),line('w0'),line('w$')]");if(!(this.isChanged||t!=this.bufnr)){if(this.resolveTokenSource&&this.resolveTokenSource.cancel(),e=e.filter(o=>{let s=o.range.start.line+1;return s>=i&&s<=r}),e.length){let s=(this.resolveTokenSource=new JP.CancellationTokenSource).token;if(await Promise.all(e.map(a=>F.resolveCodeLens(a,s))),this.resolveTokenSource=void 0,s.isCancellationRequested||this.isChanged)return}this.nvim.pauseNotification(),this.clear(i-1,r),this.setVirtualText(e),this.nvim.resumeNotification(!1,!0)}}get isChanged(){if(!this.codeLenses||this.document.dirty)return!0;let{version:e}=this.codeLenses;return this.document.textDocument.version!==e}setVirtualText(e){let{document:t}=this;if(!t||!e.length)return;let i=new Map,{position:r}=this.config;for(let o of e){let{range:s,command:a}=o;if(!a)continue;let{line:l}=s.start;i.has(l)?i.get(l).push(o):i.set(l,[o])}for(let o of i.keys()){let a=i.get(o).map(h=>h.command);a=a.filter(h=>h&&h.title);let l=[],u=a.length;for(let h=0;h<u;h++){let d=a[h];l.push([d.title.replace(/(\r\n|\r|\n|\s)+/g," "),"CocCodeLens"]),h!=u-1&&l.push([this.config.subseparator,"CocCodeLens"])}this.config.separator&&l.unshift([`${this.config.separator} `,"CocCodeLens"]);let{srcId:c}=this.config;if(v.has("nvim-0.6.0")){let h=this.document.buffer,d=t.getline(o);if(r=="top"){let g=d.match(/^\s*/)[0];g.length>0&&l.unshift([g,"Normal"]),h.setExtMark(c,o,0,{virt_lines:[l],virt_lines_above:!0})}else h.setExtMark(c,o,0,{hl_mode:"combine",virt_text:l,virt_text_pos:r})}else this.nvim.call("nvim_buf_set_virtual_text",[this.bufnr,c,o,l,{}],!0)}}clear(e=0,t=-1){let{srcId:i}=this.config;if(!i)return;this.nvim.createBuffer(this.bufnr).clearNamespace(i,e,t)}async doAction(e){var i;let t=Yke(e,(i=this.codeLenses)==null?void 0:i.codeLenses);if(t.length==1)await re.execute(t[0]);else if(t.length>1){let r=await D.showMenuPicker(t.map(o=>o.title));r!=-1&&await re.execute(t[r])}}cancel(){this.resolveCodeLens.clear(),this.resolveTokenSource&&(this.resolveTokenSource.cancel(),this.resolveTokenSource.dispose(),this.resolveTokenSource=null),this.tokenSource&&(this.tokenSource.cancel(),this.tokenSource.dispose(),this.tokenSource=null)}dispose(){this.cancel(),this.codeLenses=void 0}};function Yke(n,e){if(!(e!=null&&e.length))return[];let t=[];for(let i of e){let{range:r,command:o}=i;!o||n==r.start.line&&t.push(o)}return t}var Rtt=Y()("codelens"),Lx=class{constructor(e){this.nvim=e;this.disposables=[];this.setConfiguration(),this.nvim.createNamespace("coc-codelens").then(t=>{this.config.srcId=t}).logError(),v.onDidChangeConfiguration(this.setConfiguration,this,this.disposables),this.buffers=v.registerBufferSync(t=>{if(t.buftype=="")return new Rx(e,t,this.config)}),this.disposables.push(this.buffers),this.listen()}listen(){_.on("CursorMoved",e=>{let t=this.buffers.getItem(e);t&&t.resolveCodeLens()},null,this.disposables),_.on("CursorHold",async e=>{let t=this.buffers.getItem(e);t&&await t.forceFetch()},this,this.disposables)}async checkProvider(){for(let e of this.buffers.items)await e.forceFetch()}setConfiguration(e){if(e&&!e.affectsConfiguration("codeLens"))return;let t=v.getConfiguration("codeLens"),i=this.nvim.hasFunction("nvim_buf_set_virtual_text")&&t.get("enable",!1);this.config=Object.assign(this.config||{},{enabled:i,position:t.get("position","top"),separator:t.get("separator","\u2023"),subseparator:t.get("subseparator"," ")})}async doAction(){let[e,t]=await this.nvim.eval('[bufnr("%"),line(".")-1]'),i=this.buffers.getItem(e);await(i==null?void 0:i.doAction(t))}dispose(){J(this.disposables)}};var zee=S(q());xi();go();Se();z();function $P(n){return n.length==1?`0${n}`:n}function tp(n){let e=Wke(n);return`${$P(e.red.toString(16))}${$P(e.green.toString(16))}${$P(e.blue.toString(16))}`}function Wke(n){let{red:e,green:t,blue:i}=n;return{red:Math.round(e*255),green:Math.round(t*255),blue:Math.round(i*255)}}function Xee(n){let e=[n.red,n.green,n.blue],t=[];for(let r=0;r<e.length;r++){let o=e[r];t[r]=o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4)}return .2126*t[0]+.7152*t[1]+.0722*t[2]<=.5}De();Q();var Gee=S(_i()),Kee=S(q());Se();bt();De();Q();var Ytt=Y()("colors-buffer"),Uee="color",Ix=class{constructor(e,t,i,r){this.nvim=e;this.bufnr=t;this.config=i;this.usedColors=r;this._colors=[];this.highlight=(0,Gee.default)(()=>{this.doHighlight().logError()},global.hasOwnProperty("__TEST__")?10:300),this.highlight()}get enabled(){let{filetypes:e}=this.config,t=v.getDocument(this.bufnr);return t?e.includes("*")?!0:F.hasProvider("documentColor",t.textDocument)?e.includes(t.filetype):!1:!1}onChange(){this.cancel(),this.highlight()}get buffer(){return this.nvim.createBuffer(this.bufnr)}get colors(){return this._colors}hasColor(){return this._colors.length>0}async doHighlight(){if(!this.enabled)return;let{nvim:e}=this,t=v.getDocument(this.bufnr);this.tokenSource=new Kee.CancellationTokenSource;let{token:i}=this.tokenSource,r;if(r=await F.provideDocumentColors(t.textDocument,i),i.isCancellationRequested)return;r=r||[],r.sort((a,l)=>xe(a.range.start,l.range.start)),this._colors=r;let o=[];r.forEach(a=>{let l=Zke(a.color);t.addHighlights(o,l,a.range,{combine:!1})});let s=await D.diffHighlights(this.bufnr,Uee,o);i.isCancellationRequested||!s||(e.pauseNotification(),this.defineColors(r),e.resumeNotification(!1,!0),await D.applyDiffHighlights(this.bufnr,Uee,this.config.highlightPriority,s,!0))}defineColors(e){for(let t of e){let i=tp(t.color);this.usedColors.has(i)||(this.nvim.command(`hi BG${i} guibg=#${i} guifg=#${Xee(t.color)?"ffffff":"000000"}`,!0),this.usedColors.add(i))}}hasColorAtPosition(e){return this.colors.some(t=>ct(e,t.range)==0)}clearHighlight(){this.highlight.clear(),this._colors=[],this.buffer.clearNamespace("color")}cancel(){this.tokenSource&&(this.tokenSource.cancel(),this.tokenSource.dispose(),this.tokenSource=null)}dispose(){this._colors=[],this.highlight.clear(),this.cancel()}};function Zke(n){return`BG${tp(n)}`}var iit=Y()("colors-index"),jx=class{constructor(e,t){this.nvim=e;this.handler=t;this.disposables=[];this.setConfiguration();let i=new Set;this.highlighters=v.registerBufferSync(r=>new Ix(this.nvim,r.bufnr,this.config,i)),ye.onDidActiveExtension(()=>{this.highlightAll()},null,this.disposables),v.onDidChangeConfiguration(this.setConfiguration,this,this.disposables),this.disposables.push(re.registerCommand("editor.action.pickColor",()=>this.pickColor())),re.titles.set("editor.action.pickColor","pick color from system color picker when possible."),this.disposables.push(re.registerCommand("editor.action.colorPresentation",()=>this.pickPresentation())),re.titles.set("editor.action.colorPresentation","change color presentation.")}setConfiguration(e){if(!e||e.affectsConfiguration("colors")){let t=v.getConfiguration("colors");this.config=Object.assign(this.config||{},{filetypes:t.get("filetypes",[]),highlightPriority:t.get("highlightPriority",1e3)})}}async pickPresentation(){let{doc:e}=await this.handler.getCurrentState();this.handler.checkProvier("documentColor",e.textDocument);let t=await this.getColorInformation(e.bufnr);if(!t)return D.showMessage("Color not found at current position","warning");let i=new zee.CancellationTokenSource,r=await F.provideColorPresentations(t,e.textDocument,i.token);if(!(r!=null&&r.length))return;let o=await D.showMenuPicker(r.map(c=>c.label),"choose color:");if(o==-1)return;let s=r[o],{textEdit:a,additionalTextEdits:l,label:u}=s;a||(a={range:t.range,newText:u}),await e.applyEdits([a]),l&&await e.applyEdits(l)}async pickColor(){let{doc:e}=await this.handler.getCurrentState();this.handler.checkProvier("documentColor",e.textDocument);let t=await this.getColorInformation(e.bufnr);if(!t)return D.showMessage("Color not found at current position","warning");let{color:i}=t,r=[(i.red*255).toFixed(0),(i.green*255).toFixed(0),(i.blue*255).toFixed(0)],o=await this.nvim.call("coc#color#pick_color",[r]);if(!o)return;let s=tp({red:o[0]/65535,green:o[1]/65535,blue:o[2]/65535,alpha:1});await e.applyEdits([{range:t.range,newText:`#${s}`}])}isEnabled(e){let t=this.highlighters.getItem(e);return t!=null&&t.enabled===!0}clearHighlight(e){let t=this.highlighters.getItem(e);t&&t.clearHighlight()}hasColor(e){let t=this.highlighters.getItem(e);return t?t.hasColor():!1}hasColorAtPosition(e,t){let i=this.highlighters.getItem(e);return i?i.hasColorAtPosition(t):!1}highlightAll(){for(let e of this.highlighters.items)e.highlight()}async doHighlight(e){let t=this.highlighters.getItem(e);t&&await t.doHighlight()}async getColorInformation(e){let t=this.highlighters.getItem(e);if(!t)return null;let i=await D.getCursorPosition();for(let r of t.colors){let{range:o}=r,{start:s,end:a}=o;if(i.line==s.line&&i.character>=s.character&&i.character<=a.character)return r}return null}dispose(){this.highlighters.dispose(),J(this.disposables)}};xi();he();Xw();var ait=Y()("handler-commands"),Fx=class{constructor(e,t){this.nvim=e;this.env=t;for(let i of t.vimCommands)this.addVimCommand(i)}addVimCommand(e){let t=`vim.${e.id}`;re.registerCommand(t,()=>{this.nvim.command(e.cmd,!0),this.nvim.redrawVim()}),e.title&&re.titles.set(t,e.title)}getCommandList(){return re.commandList.map(e=>e.id)}async repeat(){await re.repeatCommand()}async runCommand(e,...t){if(e){await _.fire("Command",[e]);let i=await re.executeCommand(e,...t);return t.length==0&&await re.addRecent(e),i}else await Ci.start(["commands"])}getCommands(){let e=re.commandList,t=[],{titles:i}=re;for(let r of e)t.push({id:r.id,title:i.get(r.id)||""});return t}};Se();var Ox=class{constructor(e,t){this.nvim=e;this.handler=t}async fold(e){let{doc:t,winid:i}=await this.handler.getCurrentState();this.handler.checkProvier("foldingRange",t.textDocument),await t.synchronize();let r=this.nvim.createWindow(i),o=await this.nvim.eval("&foldlevel"),s=await this.handler.withRequestToken("foldingrange",a=>F.provideFoldingRanges(t.textDocument,{},a),!0);if(!s||!s.length)return!1;e&&(s=s.filter(a=>a.kind==e)),s.sort((a,l)=>l.startLine-a.startLine),this.nvim.pauseNotification(),r.setOption("foldmethod","manual",!0),this.nvim.command("normal! zE",!0);for(let a of s){let{startLine:l,endLine:u}=a,c=`${l+1}, ${u+1}fold`;this.nvim.command(c,!0)}return r.setOption("foldenable",!0,!0),r.setOption("foldlevel",o,!0),await this.nvim.resumeNotification(!0),!0}};var ds=S(q());xi();he();Se();Kl();Fe();De();Q();var XP=Y()("handler-format"),Qee=new Map([["<",">"],[">","<"],["{","}"],["[","]"],["(",")"]]),Mx=class{constructor(e,t){this.nvim=e;this.handler=t;this.loadPreferences(),t.addDisposable(v.onDidChangeConfiguration(this.loadPreferences,this)),t.addDisposable(v.onWillSaveTextDocument(o=>{let{languageId:s}=o.document,a=this.preferences.formatOnSaveFiletypes;if(a.includes(s)||a.includes("*")){let l=async()=>{if(!F.hasFormatProvider(o.document)){XP.warn(`Format provider not found for ${o.document.uri}`);return}let u=await v.getFormatOptions(o.document.uri),c=new ds.CancellationTokenSource,h,d=new Promise(p=>{h=setTimeout(()=>{XP.warn(`Format on save ${o.document.uri} timeout after 0.5s`),c.cancel(),p(void 0)},500)}),g=F.provideDocumentFormattingEdits(o.document,u,c.token),f=await Promise.race([d,g]);return clearTimeout(h),Array.isArray(f)?f:void 0};o.waitUntil(l())}}));let i,r;t.addDisposable(_.on("Enter",async o=>{i=Date.now(),r=o})),t.addDisposable(_.on("CursorMovedI",async o=>{o==r&&Date.now()-i<100&&(r=void 0,await this.handleEnter(o))})),t.addDisposable(_.on("TextInsert",async(o,s,a)=>{_.pumvisible||await this.tryFormatOnType(a,o)})),t.addDisposable(re.registerCommand("editor.action.formatDocument",async o=>{let s=o?v.getDocument(o):(await this.handler.getCurrentState()).doc;await this.documentFormat(s)})),re.titles.set("editor.action.formatDocument","Format Document")}loadPreferences(e){if(!e||e.affectsConfiguration("coc.preferences")){let t=v.getConfiguration("coc.preferences");this.preferences={formatOnType:t.get("formatOnType",!1),formatOnSaveFiletypes:t.get("formatOnSaveFiletypes",[]),formatOnTypeFiletypes:t.get("formatOnTypeFiletypes",[]),bracketEnterImprove:t.get("bracketEnterImprove",!0)}}}async tryFormatOnType(e,t,i=!1){if(!e||ac(e)||!this.preferences.formatOnType||Xt.getSession(t)!=null)return;let r=v.getDocument(t);if(!r||!r.attached||r.isCommandLine)return;let o=this.preferences.formatOnTypeFiletypes;if(o.length&&!o.includes(r.filetype)&&!o.includes("*"))return;if(!F.hasProvider("formatOnType",r.textDocument)){XP.warn(`Format on type provider not found for buffer: ${r.uri}`);return}if(!F.canFormatOnType(e,r.textDocument))return;let s,a=await this.handler.withRequestToken("Format on type",async l=>{s=await D.getCursorPosition();let u=r.getline(s.line-1);if(!(i&&/^\s*$/.test(u)))return await r.synchronize(),await F.provideDocumentOnTypeEdits(e,r.textDocument,s,l)});!a||!a.length||await r.applyEdits(a,!1,!0)}async formatCurrentBuffer(){let{doc:e}=await this.handler.getCurrentState();return await this.documentFormat(e)}async formatCurrentRange(e){let{doc:t}=await this.handler.getCurrentState();return await this.documentRangeFormat(t,e)}async documentFormat(e){if(await e.synchronize(),!F.hasFormatProvider(e.textDocument))throw new Error(`Format provider not found for buffer: ${e.bufnr}`);let t=await v.getFormatOptions(e.uri),i=await this.handler.withRequestToken("format",r=>F.provideDocumentFormattingEdits(e.textDocument,t,r));return i&&i.length>0?(await e.applyEdits(i,!1,!0),!0):!1}async handleEnter(e){let{nvim:t}=this,{bracketEnterImprove:i}=this.preferences;if(await this.tryFormatOnType(`
`,e),i){let r=await t.call("line",".")-1,o=v.getDocument(e);if(!o)return;await o.patchChange();let s=o.getline(r-1),a=o.getline(r),l=s[s.length-1];if(l&&Qee.has(l)){let u=a.trim()[0];if(u&&Qee.get(l)==u){let c=[],h=await v.getFormatOptions(o.uri),d=h.insertSpaces?" ".repeat(h.tabSize):" ",g=a.match(/^\s*/)[0],f=ds.Position.create(r-1,s.length);if(o.filetype=="vim"){let p=`
`+g+d;c.push({range:ds.Range.create(r,g.length,r,g.length),newText:" \\ "}),p=p+"\\ ",c.push({range:ds.Range.create(f,f),newText:p}),await o.applyEdits(c),await D.moveTo(ds.Position.create(r,p.length-1))}else await t.eval(`feedkeys("\\<Esc>O", 'in')`)}}}}async documentRangeFormat(e,t){this.handler.checkProvier("formatRange",e.textDocument),await e.synchronize();let i;if(t){if(i=await D.getSelectedRange(t),!i)return-1}else{let[s,a,l]=await this.nvim.eval("[v:lnum,v:count,mode()]");if(a==0||l=="i"||l=="R")return-1;i=ds.Range.create(s-1,0,s-1+a,0)}let r=await v.getFormatOptions(e.uri),o=await this.handler.withRequestToken("Format range",s=>F.provideDocumentRangeFormattingEdits(e.textDocument,i,r,s));return o&&o.length>0?(await e.applyEdits(o,!1,!0),0):-1}};var iu=S(q());he();Se();z();Q();var Eit=Y()("documentHighlight"),Ax=class{constructor(e,t){this.nvim=e;this.handler=t;this.disposables=[];this.highlights=new Map;_.on(["CursorMoved","CursorMovedI"],()=>{this.cancel(),this.clearHighlights()},null,this.disposables),this.getConfiguration(),v.onDidChangeConfiguration(this.getConfiguration,this,this.disposables)}getConfiguration(e){let t=v.getConfiguration("documentHighlight");(!e||e.affectsConfiguration("documentHighlight"))&&(this.config=Object.assign(this.config||{},{priority:t.get("priority",-1),timeout:t.get("timeout",300)}))}isEnabled(e,t){let i=v.getDocument(e);return!(!i||!i.attached||t||!F.hasProvider("documentHighlight",i.textDocument))}clearHighlights(){if(this.highlights.size!=0){for(let e of this.highlights.keys())this.nvim.createWindow(e).clearMatchGroup("^CocHighlight");this.highlights.clear()}}async highlight(){let{nvim:e}=this;this.cancel();let[t,i,r,o]=await e.eval(`[bufnr("%"),win_getid(),coc#cursor#position(),get(b:,'coc_cursors_activated',0)]`);if(!this.isEnabled(t,o))return;let s=v.getDocument(t),a=await this.getHighlights(s,iu.Position.create(r[0],r[1]));if(!a)return;let l={};for(let c of a){if(!c.range)continue;let h=c.kind==iu.DocumentHighlightKind.Text?"CocHighlightText":c.kind==iu.DocumentHighlightKind.Read?"CocHighlightRead":"CocHighlightWrite";l[h]=l[h]||[],l[h].push(c.range)}let u=e.createWindow(i);e.pauseNotification(),u.clearMatchGroup("^CocHighlight");for(let c of Object.keys(l))u.highlightRanges(c,l[c],this.config.priority,!0);e.resumeNotification(!0,!0),this.highlights.set(i,a)}async getSymbolsRanges(){let{doc:e,position:t}=await this.handler.getCurrentState();this.handler.checkProvier("documentHighlight",e.textDocument);let i=await this.getHighlights(e,t);return i?i.map(r=>r.range):null}hasHighlights(e){return this.highlights.get(e)!=null}async getHighlights(e,t){let r=e.getline(t.line)[t.character];if(!r||!e.isWord(r))return null;await e.synchronize(),this.cancel();let o=this.tokenSource=new iu.CancellationTokenSource,s=this.timer=setTimeout(()=>{o.token.isCancellationRequested||o.cancel()},this.config.timeout),a=await F.getDocumentHighLight(e.textDocument,t,o.token);return clearTimeout(s),o.token.isCancellationRequested?null:a}cancel(){this.tokenSource&&(this.tokenSource.cancel(),this.tokenSource.dispose(),this.tokenSource=null)}dispose(){this.timer&&clearTimeout(this.timer),this.cancel(),this.highlights.clear(),J(this.disposables)}};var Vee=S(require("fs")),gs=S(q());we();Se();Bo();z();Xe();Q();var Ait=Y()("handler-hover"),Nx=class{constructor(e,t){this.nvim=e;this.handler=t;this.disposables=[];this.documentLines=[];this.hasProvider=!1;this.excludeImages=!0;this.loadConfiguration(),v.onDidChangeConfiguration(this.loadConfiguration,this,this.disposables),this.hoverFactory=new li(e),this.disposables.push(this.hoverFactory)}registerProvider(){if(this.hasProvider)return;this.hasProvider=!0;let{nvim:e}=this,t={onDidChange:null,provideTextDocumentContent:async()=>(e.pauseNotification(),e.command("setlocal conceallevel=2 nospell nofoldenable wrap",!0),e.command("setlocal bufhidden=wipe nobuflisted",!0),e.command("setfiletype markdown",!0),e.command(`if winnr('j') != winnr('k') | exe "normal! z${Math.min(this.documentLines.length,this.config.previewMaxHeight)}\\<cr> | endif"`,!0),await e.resumeNotification(),this.documentLines.join(`
`))};this.disposables.push(v.registerTextDocumentContentProvider("coc",t))}loadConfiguration(e){if(!e||e.affectsConfiguration("hover")){let t=v.getConfiguration("hover"),i=t.get("target","float");this.config={floatConfig:t.get("floatConfig",{}),autoHide:t.get("autoHide",!0),target:i=="float"&&!v.floatSupported?"preview":i,previewMaxHeight:t.get("previewMaxHeight",12)},this.config.target=="preview"&&this.registerProvider();let r=v.getConfiguration("coc.preferences");this.excludeImages=r.get("excludeImageLinksInMarkdownDocument",!0)}}async onHover(e){let{doc:t,position:i,winid:r}=await this.handler.getCurrentState();e=="preview"&&this.registerProvider(),this.handler.checkProvier("hover",t.textDocument),await t.synchronize();let o=await this.handler.withRequestToken("hover",a=>F.getHover(t.textDocument,i,a),!0);if(o==null||!o.length)return!1;let s=o.find(a=>gs.Range.is(a.range));if(s!=null&&s.range){let a=this.nvim.createWindow(r);a.highlightRanges("CocHoverRange",[s.range],99,!0),this.timer=setTimeout(()=>{a.clearMatchGroup("CocHoverRange"),this.nvim.redrawVim()},500)}return await this.previewHover(o,e),!0}async definitionHover(e){let{doc:t,position:i}=await this.handler.getCurrentState();e=="preview"&&this.registerProvider(),this.handler.checkProvier("hover",t.textDocument),await t.synchronize();let r=await this.handler.withRequestToken("hover",s=>F.getHover(t.textDocument,i,s),!0);if(!(r!=null&&r.length))return!1;let o=await this.handler.withRequestToken("definitionHover",s=>F.getDefinitionLinks(t.textDocument,i,s),!1);if(o!=null&&o.length)for(let s of o){if(!s.targetRange)continue;let{start:a,end:l}=s.targetRange,u=l.line-a.line>=100?a.line+100:l.character==0?l.line-1:l.line,c=await $ke(s.targetUri,a.line,u);if(c.length){let h=c[0].match(/^\s*/)[0];h&&(c=c.map(d=>d.startsWith(h)?d.substring(h.length):d)),r.push({content:c.join(`
`),filetype:t.filetype})}}return await this.previewHover(r,e),!0}async previewHover(e,t){let i=[];t=t||this.config.target;let r=t==="preview";for(let s of e){if(Jke(s)){i.push(s);continue}let{contents:a}=s;if(Array.isArray(a))for(let l of a)typeof l=="string"?ip(i,l,"markdown",r):ip(i,l.value,l.language,r);else gs.MarkedString.is(a)?typeof a=="string"?ip(i,a,"markdown",r):ip(i,a.value,a.language,r):gs.MarkupContent.is(a)&&ip(i,a.value,eg(a)?"markdown":"txt",r)}if(t=="float"){let s=this.hoverFactory.applyFloatConfig({modes:["n"],autoHide:this.config.autoHide,excludeImages:this.excludeImages,maxWidth:80},this.config.floatConfig);await this.hoverFactory.show(i,s);return}let o=i.reduce((s,a)=>{let l=a.content.split(/\r?\n/);return s.length>0&&s.push(""),s.push(...l),s},[]);if(t=="echo"){let s=o.join(`
`).trim();await this.nvim.call("coc#ui#echo_hover",[s])}else this.documentLines=o,await this.nvim.command("noswapfile pedit coc://document")}async getHover(){let e=[],{doc:t,position:i}=await this.handler.getCurrentState();this.handler.checkProvier("hover",t.textDocument),await t.synchronize();let r=new gs.CancellationTokenSource,o=await F.getHover(t.textDocument,i,r.token);if(Array.isArray(o))for(let s of o){let{contents:a}=s;Array.isArray(a)?a.forEach(l=>{e.push(typeof l=="string"?l:l.value)}):gs.MarkupContent.is(a)?e.push(a.value):e.push(typeof a=="string"?a:a.value)}return e=e.filter(s=>s!=null&&s.length>0),e}dispose(){this.timer&&clearTimeout(this.timer),J(this.disposables)}};function ip(n,e,t,i=!1){let r=e.trim();!r.length||(i&&t!=="markdown"&&(r="``` "+t+`
`+r+"\n```"),n.push({content:r,filetype:t}))}function Jke(n){return n?typeof n.filetype=="string"&&typeof n.content=="string":!1}async function $ke(n,e,t){let i=v.getDocument(n);if(i)return i.getLines(e,t+1);let r=M.parse(n).fsPath;return Vee.default.existsSync(r)?await Ks(r,e,t):[]}var nu=S(q());he();Se();Bo();z();bt();De();Q();var Xit=Y()("handler-links"),Xke=/CocAction(Async)?\(["']openLink["']\)/,Hx=class{constructor(e,t){this.nvim=e;this.handler=t;this.disposables=[];this.setConfiguration(),v.onDidChangeConfiguration(this.setConfiguration,this,this.disposables),this.floatFactory=new li(e),_.on("CursorHold",async()=>{!this._tooltip||!e.hasFunction("nvim_get_keymap")||await this.showTooltip()},null,this.disposables),_.on(["CursorMoved","InsertEnter"],()=>{this.cancel()},null,this.disposables)}setConfiguration(e){if(!e||e.affectsConfiguration("links")){let t=v.getConfiguration("links");this._tooltip=t.get("tooltip",!1)}}async showTooltip(){let{nvim:e,floatFactory:t}=this,r=(await e.getKeymap("n")).find(u=>Xke.test(u.rhs)),o=r?r.lhs:void 0,s=await this.getCurrentLink();if(!s||!s.target)return;let a="";if(s.tooltip&&(a=s.tooltip+" "),o&&(a+=`Press "${o}" to open link`),!a.length)return;let l={content:a,filetype:"txt"};await t.show([l],{autoHide:!0})}async getLinks(){try{let{doc:e}=await this.handler.getCurrentState();if(!F.hasProvider("documentLink",e.textDocument))return[];let t=this.tokenSource=new nu.CancellationTokenSource,i=await F.getDocumentLinks(e.textDocument,t.token);return t.token.isCancellationRequested?[]:i}catch{return[]}}async openLink(e){if(!e.target)throw new Error("Failed to resolve link target");await v.openResource(e.target)}async getCurrentLink(){let e=await this.getLinks(),t=await D.getCursorPosition();if(e&&e.length){for(let a of e)if(ct(t,a.range)==0){if(!a.target){let l=this.tokenSource=this.tokenSource||new nu.CancellationTokenSource;if(a=await F.resolveDocumentLink(a,this.tokenSource.token),!a.target||l.token.isCancellationRequested)continue}return a}}let i=await this.nvim.call("getline",["."]),r=/\w+?:\/\/[^)\]'" ]+/g,o,s;for(;(o=r.exec(i))!==null;){let a=o.index;if(a<=t.character&&a+o[0].length>=t.character){s=nu.DocumentLink.create(nu.Range.create(t.line,a,t.line,a+o[0].length),o[0]);break}}return s}async openCurrentLink(){let e=await this.getCurrentLink();return e?(await this.openLink(e),!0):!1}cancel(){this.tokenSource&&(this.tokenSource.cancel(),this.tokenSource=null)}dispose(){var e;(e=this.floatFactory)==null||e.dispose(),J(this.disposables)}};var qr=S(q());we();Se();Of();Q();var int=Y()("handler-hover"),qx=class{constructor(e,t){this.nvim=e;this.handler=t}async request(e,t){let{doc:i,position:r}=await this.handler.getCurrentState();return this.handler.checkProvier(e,i.textDocument),await i.synchronize(),await this.handler.withRequestToken(e,o=>t(i.textDocument,r,o),!0)}async definitions(){let{doc:e,position:t}=await this.handler.getCurrentState();this.handler.checkProvier("definition",e.textDocument),await e.synchronize();let i=new qr.CancellationTokenSource;return F.getDefinition(e.textDocument,t,i.token)}async declarations(){let{doc:e,position:t}=await this.handler.getCurrentState();this.handler.checkProvier("declaration",e.textDocument),await e.synchronize();let i=new qr.CancellationTokenSource;return F.getDeclaration(e.textDocument,t,i.token)}async typeDefinitions(){let{doc:e,position:t}=await this.handler.getCurrentState();this.handler.checkProvier("typeDefinition",e.textDocument),await e.synchronize();let i=new qr.CancellationTokenSource;return F.getTypeDefinition(e.textDocument,t,i.token)}async implementations(){let{doc:e,position:t}=await this.handler.getCurrentState();this.handler.checkProvier("implementation",e.textDocument),await e.synchronize();let i=new qr.CancellationTokenSource;return F.getImplementation(e.textDocument,t,i.token)}async references(e){let{doc:t,position:i}=await this.handler.getCurrentState();this.handler.checkProvier("reference",t.textDocument),await t.synchronize();let r=new qr.CancellationTokenSource;return F.getReferences(t.textDocument,{includeDeclaration:!e},i,r.token)}async gotoDefinition(e){let t=await this.request("definition",(i,r,o)=>F.getDefinition(i,r,o));return await this.handleLocations(t,e),t?t.length>0:!1}async gotoDeclaration(e){let t=await this.request("declaration",(i,r,o)=>F.getDeclaration(i,r,o));return await this.handleLocations(t,e),t?Array.isArray(t)?t.length>0:!0:!1}async gotoTypeDefinition(e){let t=await this.request("typeDefinition",(i,r,o)=>F.getTypeDefinition(i,r,o));return await this.handleLocations(t,e),t?t.length>0:!1}async gotoImplementation(e){let t=await this.request("implementation",(i,r,o)=>F.getImplementation(i,r,o));return await this.handleLocations(t,e),t?t.length>0:!1}async gotoReferences(e,t=!0){let i=await this.request("reference",(r,o,s)=>F.getReferences(r,{includeDeclaration:t},o,s));return await this.handleLocations(i,e),i?i.length>0:!1}async getTagList(){let{doc:e,position:t}=await this.handler.getCurrentState(),i=await this.nvim.call("expand","<cword>");if(!i||!F.hasProvider("definition",e.textDocument))return null;let r=new qr.CancellationTokenSource,o=await F.getDefinition(e.textDocument,t,r.token);return!o||!o.length?null:o.map(s=>{let a=M.parse(s.uri),l=a.scheme=="file"?a.fsPath:a.toString();return{name:i,cmd:`keepjumps ${s.range.start.line+1} | normal ${s.range.start.character+1}|`,filename:l}})}async findLocations(e,t,i,r){let{doc:o,position:s}=await this.handler.getCurrentState();i=i||{},Object.assign(i,{textDocument:{uri:o.uri},position:s});let a=await Ai.sendRequest(e,t,i);a=a||[];let l=[];if(Array.isArray(a))l=a;else if(a.hasOwnProperty("location")&&a.hasOwnProperty("children")){let u=c=>{if(l.push(c.location),c.children&&c.children.length)for(let h of c.children)u(h)};u(a)}return await this.handleLocations(l,r),l?l.length>0:!1}async handleLocations(e,t){if(!e)return;let i=Array.isArray(e)?e:[e];i=i.map(o=>qr.LocationLink.is(o)?qr.Location.create(o.targetUri,o.targetRange):o);let r=i.length;if(r!=0)if(r==1&&t!==!1){let{uri:o,range:s}=i[0];await v.jumpTo(o,s.start,t)}else await v.showLocations(i)}dispose(){}};var Ih=S(q());we();he();Se();z();Xe();ea();Q();var Lh=S(Ob()),np=S(require("path")),Ue=S(q());Sc();we();Bl();z();Xe();Ko();Qr();Ht();bt();Fe();ea();De();Q();Ht();var Bx=class{constructor(){this.stack=[]}add(e){let t=new Map;for(let i of e)t.set(i.lnum,i);this.stack.push(t)}checkInsert(e){if(!this.stack.length)return;let t=this.stack[this.stack.length-1],i=Array.from(t.keys()).sort((r,o)=>r-o);if(!!_e(i,e))return this.stack.pop(),Array.from(t.values())}};var Uke=Y()("handler-refactorBuffer"),Br="\u3000",Yx=class{constructor(e,t,i,r,o){this.bufnr=e;this.srcId=t;this.nvim=i;this.config=r;this.opts=o;this._disposed=!1;this._fileItems=[];this.mutex=new Qt;this.disposables=[];this.matchIds=new Set;this.changing=!1;this.changes=new Bx,this.disposables.push(v.registerLocalKeymap("n","<CR>",this.splitOpen.bind(this),!0)),r.showMenu&&this.disposables.push(v.registerLocalKeymap("n",r.showMenu,this.showMenu.bind(this),!0)),v.onDidChangeTextDocument(this.onDocumentChange,this,this.disposables)}async showMenu(){let e=await D.showMenuPicker(["Tab open","Remove block"]);if(e==-1)return;let t=await this.searchCurrentRange();if(!!t){if(e==0){let r=(await this.nvim.eval("strpart(getline('.'), 0 ,col('.') - 1)")).length,o=this.getAbsolutePath(t.filepath);this.nvim.call("coc#util#jump",["tabe",o,[t.line,r]],!0)}if(e==1){let i=this.getDeleteRange(t);await this.document.applyEdits([Ue.TextEdit.del(i)])}}}get fileItems(){return this._fileItems}getFileItem(e){let t=M.parse(e).fsPath;return this._fileItems.find(i=>ei(i.filepath,t))}getFileRange(e){for(let t of this._fileItems)for(let i of t.ranges)if(i.lnum==e)return Object.assign(zi(i,["highlights"]),{filepath:t.filepath});throw new Error(`File range not found at lnum: ${e}`)}onChange(e){if(this.changing)return;if(e.contentChanges.length===0){this.highlightLineNr(),this.nvim.redrawVim();return}let{nvim:t}=this;e=Kke(e);let i=e.contentChanges[0],{original:r}=e;i.range.end.line>2&&t.call("setbufvar",[e.bufnr,"&modified",1],!0);let{range:o,text:s}=i;if(Qs(Ue.TextEdit.replace(o,s))==0)return;let l=[Ue.TextEdit.replace(o,s)],u=[];if(!Ct(o)&&!s.includes("\u3000")){let c=o.start.line,h=[],d=r.split(/\r?\n/);for(let g=0;g<d.length;g++){let f=d[g];f.length>1&&f.includes("\u3000")&&h.push(c+g+1)}if(h.length){let g=h.map(f=>this.getFileRange(f));for(let f of this._fileItems)f.ranges=f.ranges.filter(p=>!h.includes(p.lnum));this.changes.add(g)}}else if(Ct(o)&&s.includes("\u3000")){let c=s.split(/\r?\n/),h=[],d=o.start.line;for(let g=0;g<c.length;g++){let f=c[g];f.length>1&&f.includes("\u3000")&&h.push(d+g+1)}if(h.length){let g=this.changes.checkInsert(h);g&&(u=g)}}else s.includes("\u3000")&&(l=this.diffChanges(r,s),l.forEach(c=>{c.range=CY(c.range,o.start)}));this.adjustLnums(l),t.pauseNotification(),this.highlightLineNr(),t.resumeNotification(!0,!0),u.length&&u.forEach(c=>{this._fileItems.find(d=>d.filepath==c.filepath).ranges.push(c)})}diffChanges(e,t){let i=[],r=(0,Lh.default)(e,t),o=0,s=Fn.create("file:///1","",0,e);for(let a=0;a<r.length;a++){let l=r[a],u=s.positionAt(o);if(l[0]==Lh.default.EQUAL)o=o+l[1].length;else if(l[0]==Lh.default.DELETE){let c=s.positionAt(o+l[1].length);if(r[a+1]&&r[a+1][0]==Lh.default.INSERT){let h=r[a+1][1];i.push(Ue.TextEdit.replace(Ue.Range.create(u,c),h)),a=a+1}else i.push(Ue.TextEdit.replace(Ue.Range.create(u,c),""));o=o+l[1].length}else l[0]==Lh.default.INSERT&&i.push(Ue.TextEdit.insert(u,l[1]))}return i}async onDocumentChange(e){if(this.changing||e.contentChanges.length===0)return;let{uri:t}=e.textDocument,i=this.getFileItem(t);if(!i)return;let{range:r,text:o}=e.contentChanges[0],s=Qs(Ue.TextEdit.replace(r,o)),a=[],l=[];for(let u=0;u<i.ranges.length;u++){let c=i.ranges[u];if(r.start.line>=c.start+c.lines.length)continue;if(r.end.line<c.start){c.start=c.start+s;continue}let h=v.getDocument(t).textDocument,d=c.start+c.lines.length+s,g=h.lines.slice(c.start,d);if(g.length){c.lines=g;let f=this.getReplaceRange(c);a.push(Ue.TextEdit.replace(f,g.join(`
`)))}else{l.push(u);let f=this.getDeleteRange(c);a.push(Ue.TextEdit.replace(f,""))}}l.length&&(i.ranges=i.ranges.filter((u,c)=>!l.includes(c))),this._fileItems=this._fileItems.filter(u=>u.ranges&&u.ranges.length>0),a.length&&(this.adjustLnums(a),this.changing=!0,await this.document.applyEdits(a),this.changing=!1),this.nvim.pauseNotification(),this.highlightLineNr(),this.buffer.setOption("modified",!1,!0),await this.nvim.resumeNotification(!0)}adjustLnums(e){for(let t of this._fileItems)for(let i of t.ranges){let r=i.lnum-1;i.lnum+=OD(Ue.Position.create(r,0),e)}}async getFileChanges(){let e=[],t=await this.buffer.lines;t.push(Br);let i=[],r,o;for(let s=0;s<t.length;s++){let a=t[s];if(a.startsWith(Br)){if(r&&(e.push({filepath:r,lines:i.slice(),lnum:o}),r=void 0,i=[]),a.length>1){let l=a.match(/^\u3000(.*)/);l&&(r=this.getAbsolutePath(l[1].replace(/\s+$/,"")),o=s+1,i=[])}}else i.push(a)}return e}async splitOpen(){let{nvim:e}=this,i=await e.createWindow(this.opts.fromWinid).valid,o=(await e.eval("strpart(getline('.'), 0 ,col('.') - 1)")).length,s=await this.searchCurrentRange();if(s){let a=this.getAbsolutePath(s.filepath);e.pauseNotification(),i?(e.call("win_gotoid",[this.opts.fromWinid],!0),this.nvim.call("coc#util#jump",["edit",a,[s.line,o]],!0)):this.nvim.call("coc#util#jump",["belowright vs",a,[s.line,o]],!0),e.command("normal! zz",!0),await e.resumeNotification(!0),i||(this.opts.fromWinid=await e.call("win_getid"))}}async searchCurrentRange(){let{nvim:e}=this,t=await e.eval('getline(1,line("."))'),i=t.length;for(let r=0;r<i;r++)if(t[i-r-1].match(/^\u3000(.+)/)){let a=this.getFileRange(i-r);return Object.assign({line:a.start+(r==0?1:r)-1},a)}}async addFileItems(e){if(this._disposed)return;let{cwd:t}=this.opts,{document:i}=this,r=await this.mutex.acquire();try{await i.synchronize();let o=i.lineCount,s=new vn,a=[];for(let c of e){let h=[];for(let d of c.ranges){s.addLine(Br),s.addLine(Br);let g=o+s.length;s.addText(`${Ae(t,c.filepath)?np.default.relative(t,c.filepath):c.filepath}`);let f=String(d.start+1).length+String(d.end).length+4;this.srcId||s.addText(" ".repeat(f));let p=0-s.length-o;d.highlights&&a.push(...d.highlights.map(k=>Gke(k,p)));let{lines:b,start:y,end:w,highlights:x}=d;b||(b=await this.getLines(c.filepath,y,w)),h.push({lines:b,lnum:g,start:y,highlights:x}),s.addLines(b)}if(h.length){let d={filepath:c.filepath,ranges:h},g=this._fileItems.find(f=>f.filepath==c.filepath);g?g.ranges.push(...d.ranges):this._fileItems.push(d)}}let{nvim:l,buffer:u}=this;if(this.changing=!0,l.pauseNotification(),s.render(u,o),this.highlightLineNr(),u.setOption("modified",!1,!0),u.setOption("undolevels",1e3,!0),o==2&&a.length){let c=a[0].start;l.call("coc#cursor#move_to",[c.line,c.character],!0)}await l.resumeNotification(!0),await i.patchChange(),this.changing=!1,await D.cursors.addRanges(a)}catch(o){this.changing=!1,Uke.error("Error on add file item:",o)}r()}findRange(e,t){let r=this.fileItems.find(o=>ei(this.getAbsolutePath(o.filepath),e)).ranges.find(o=>o.lnum==t);if(!r)throw new Error(`File range not found at lnum: ${t}`);return r}async save(){let{nvim:e}=this,t=this.document,{buffer:i}=t;await t.patchChange();let r=await this.getFileChanges();if(!r)return;r.sort((a,l)=>a.lnum-l.lnum);let o=[];for(let a=0;a<r.length;a++){let l=r[a],u=this.findRange(l.filepath,l.lnum);_e(u.lines,l.lines)||(o.push(Object.assign({start:u.start,end:u.start+u.lines.length},l)),u.lines=l.lines)}if(o.length==0)return await D.showInformationMessage("No change."),await i.setOption("modified",!1),!1;let s={};for(let a of o){let l=M.file(a.filepath).toString(),u=s[l]||[];u.push({range:Ue.Range.create(a.start,0,a.end,0),newText:a.lines.join(`
`)+`
`}),s[l]=u}this.changing=!0,await v.applyEdit({changes:s}),this.changing=!1;for(let a of this.fileItems){let l=M.file(this.getAbsolutePath(a.filepath)).toString(),u=s[l];u&&u.length>0&&a.ranges.forEach(c=>{c.start+=OD(Ue.Position.create(c.start,0),u)})}return e.pauseNotification(),i.setOption("modified",!1,!0),this.config.saveToFile&&e.command("silent noa wa",!0),this.highlightLineNr(),await e.resumeNotification(),!0}async getLines(e,t,i){let r=M.file(e).toString(),o=v.getDocument(r);return o?o.getLines(t,i):await Ks(e,t,i-1)}getAbsolutePath(e){return np.default.isAbsolute(e)?e:np.default.join(this.opts.cwd,e)}highlightLineNr(){let{fileItems:e,nvim:t,srcId:i,bufnr:r}=this,{winid:o,cwd:s}=this.opts,a={};if(i){t.call("nvim_buf_clear_namespace",[r,i,0,-1],!0);for(let l of e)for(let u of l.ranges){let c=u.start+u.lines.length,h=`${u.start+1}:${c}`;a[u.lnum]=[u.start+1,c],t.call("nvim_buf_set_virtual_text",[r,i,u.lnum-1,[[h,"LineNr"]],{}],!0)}}else{this.matchIds.size&&(t.call("coc#highlight#clear_matches",[o,Array.from(this.matchIds)],!0),this.matchIds.clear());let l=2e3;for(let u of e){let c=`${s?np.default.relative(s,u.filepath):u.filepath}`,h=V(c)+1;for(let d of u.ranges){let g=d.start+d.lines.length,f=`:${d.start+1}:${g}`;for(let p=0;p<f.length;p++){let b=f[p];this.matchIds.add(l),a[d.lnum]=[d.start+1,g],t.call("matchaddpos",["Conceal",[[d.lnum,h+p]],99,l,{conceal:b,window:o}],!0),l++}}}}this.buffer.setVar("line_infos",a,!0)}getDeleteRange(e){let{document:t}=this,i=e.lnum-1,r,o=t.lineCount;for(let s=i;s<o;s++){if(s+1==o){r=Ue.Position.create(o,0);break}let a=t.getline(s);if(a===Br){r=Ue.Position.create(s+1,0);break}if(s!=i&&a.startsWith(Br)){r=Ue.Position.create(s,0);break}}return Ue.Range.create(Ue.Position.create(i,0),r)}getReplaceRange(e){let{document:t}=this,i=e.lnum,r,o=t.lineCount;for(let s=i;s<o;s++){let a=t.getline(s);if(s+1==o){r=Ue.Position.create(s,a.length);break}if(t.getline(s+1).startsWith("\u3000")){r=Ue.Position.create(s,a.length);break}}return Ue.Range.create(Ue.Position.create(i,0),r)}get valid(){return this.buffer.valid}get buffer(){return this.nvim.createBuffer(this.bufnr)}get document(){return v.getDocument(this.bufnr)}dispose(){this._disposed=!0,J(this.disposables)}};function Gke(n,e){let{start:t,end:i}=n;return Ue.Range.create(t.line-e,t.character,i.line-e,i.character)}function Kke(n){let{contentChanges:e,bufnr:t,textDocument:i,original:r,originalLines:o}=n,{range:s,text:a}=e[0],l=[{range:s,text:a}];if(r){let u=r.split(/\r?\n/),c=u[u.length-1];if(c.startsWith(Br)){let g=o[s.start.line].slice(0,s.start.character);if(g==c){r=g+u.slice(0,-1).join(`
`)+`
`;let{start:f,end:p}=s;l[0].range=Ue.Range.create(f.line,0,p.line,0)}}let h=o[s.start.line-1],d=u.length>1?u[u.length-2]:"";if(c==""&&d.startsWith(Br)&&h==d&&s.start.character==0&&s.end.character==0){r=h+`
`+u.slice(0,-2).join(`
`)+`
`;let{start:g,end:f}=s;l[0].range=Ue.Range.create(g.line-1,0,f.line-1,0)}}else if(Ct(s)&&s.start.character!=0){let u=a.split(/\r?\n/),c=u[u.length-1],h=o[s.start.line].slice(0,s.start.character);if(c.startsWith(Br)&&h==c){l[0].text=h+u.slice(0,-1).join(`
`)+`
`;let{start:d,end:g}=s;l[0].range=Ue.Range.create(d.line,0,g.line,0)}}return{contentChanges:l,bufnr:t,textDocument:i,original:r,originalLines:o}}var ete=require("child_process"),tte=require("events"),UP=S(require("path")),ite=S(require("readline"));No();Bl();gc();Qr();De();var zke=Y()("handler-search"),Qke=["--color","ansi","--colors","path:fg:black","--colors","line:fg:green","--colors","match:fg:red","--no-messages","--heading","-n"],Vke="\x1B",nte=class extends tte.EventEmitter{start(e,t,i){this.process=(0,ete.spawn)(e,t,{cwd:i}),this.process.on("error",c=>{this.emit("error",c.message)});let r=ite.default.createInterface(this.process.stdout),o,s,a=[],l=[],u=!0;r.on("line",c=>{if(c.includes(Vke)){let h=sg(c);if(h[0].foreground=="black"){s={filepath:UP.default.join(i,h[0].text),ranges:[]};return}if(h[0].foreground=="green"){let g=parseInt(h[0].text,10)-1,f=h[0].text.length+1;u&&(o=g,u=!1);let p="";for(let y of h){if(y.foreground=="red"){let w=g-o,x=p.length-f;l.push(Me.create(w,x,w,x+y.text.length))}p+=y.text}let b=p.slice(f);a.push(b)}}else{let h=c.trim().length==0;s&&(h||c.trim()=="--")&&s.ranges.push({lines:a,highlights:l,start:o}),h&&(this.emit("item",s),s=null),a=[],l=[],u=!0}}),r.on("close",()=>{s&&(a.length&&s.ranges.push({lines:a,highlights:l,start:o}),this.emit("item",s)),a=l=s=null,this.emit("end")})}dispose(){this.process&&this.process.kill()}},Wx=class{constructor(e,t="rg"){this.nvim=e;this.cmd=t}run(e,t,i){let{nvim:r,cmd:o}=this,{afterContext:s,beforeContext:a}=i.config,l=["-A",s.toString(),"-B",a.toString()].concat(Qke,e),u=eDe(e);u&&l.pop(),l.push("--",u?UP.default.isAbsolute(u)?u:`./${u.replace(/^\.\//,"")}`:"./"),this.task=new nte,this.task.start(o,l,t);let c=new Qt,h=0,d=0,g=Date.now(),f=[],p=async()=>{if(f.length==0)return;let b=f.slice();f=[];let y=await c.acquire();try{await i.addFileItems(b)}catch(w){zke.error(w)}y()};return new Promise((b,y)=>{let w=setInterval(p,300);this.task.on("item",async x=>{h++,d=d+x.ranges.reduce((k,L)=>k+L.highlights.length,0),f.push(x)}),this.task.on("error",x=>{clearInterval(w),D.showMessage(`Error on command "${o}": ${x}`,"error"),this.task=null,y(new Error(x))}),this.task.on("end",async()=>{clearInterval(w);try{await p(),(await c.acquire())(),this.task.removeAllListeners(),this.task=null;let k=i.buffer;if(k){if(r.pauseNotification(),h==0)k.setLines(["No match found"],{start:1,end:2,strictIndexing:!1},!0),k.addHighlight({line:1,srcId:-1,colEnd:-1,colStart:0,hlGroup:"Error"}),k.setOption("modified",!1,!0);else{let L=new vn;L.addText("Files","MoreMsg"),L.addText(": "),L.addText(`${h} `,"Number"),L.addText("Matches","MoreMsg"),L.addText(": "),L.addText(`${d} `,"Number"),L.addText("Duration","MoreMsg"),L.addText(": "),L.addText(`${Date.now()-g}ms`,"Number"),L.render(k,1,2)}k.setOption("modified",!1,!0),r.resumeNotification(!1,!0)}}catch(x){y(x);return}b()})})}abort(){var e;(e=this.task)==null||e.dispose()}};function eDe(n){if(n.length<2)return;let e=n.length;if(!n[e-1].startsWith("-")&&!n[e-2].startsWith("-"))return n[e-1]}var Xnt=Y()("handler-refactor"),tDe="__coc_refactor__",iDe=0,Zx=class{constructor(e,t){this.nvim=e;this.handler=t;this.buffers=new Map;this.disposables=[];this._onCreate=new Ih.Emitter;this.onCreate=this._onCreate.event;this.setConfiguration(),v.onDidChangeConfiguration(this.setConfiguration,this,this.disposables),_.on("BufUnload",i=>{let r=this.buffers.get(i);r&&(r.dispose(),this.buffers.delete(i))},null,this.disposables),v.onDidChangeTextDocument(i=>{let r=this.buffers.get(i.bufnr);r&&r.onChange(i)},null,this.disposables)}async init(){v.isNvim&&this.nvim.hasFunction("nvim_create_namespace")&&(this.srcId=await this.nvim.createNamespace("coc-refactor"))}has(e){return this.buffers.has(e)}setConfiguration(e){if(e&&!e.affectsConfiguration("refactor"))return;let t=v.getConfiguration("refactor");this.config=Object.assign(this.config||{},{afterContext:t.get("afterContext",3),beforeContext:t.get("beforeContext",3),openCommand:t.get("openCommand","edit"),saveToFile:t.get("saveToFile",!0),showMenu:t.get("showMenu","<Tab>")})}async doRefactor(){let{doc:e,position:t}=await this.handler.getCurrentState();if(!F.hasProvider("rename",e.textDocument))throw new Error("Rename provider not found for current buffer");await e.synchronize();let i=await this.handler.withRequestToken("refactor",async r=>{let o=await F.prepareRename(e.textDocument,t,r);if(r.isCancellationRequested)return null;if(o===!1)throw new Error("Provider returns null on prepare, unable to rename at current position");let s=await F.provideRenameEdits(e.textDocument,t,"NewName",r);if(r.isCancellationRequested)return null;if(!s)throw new Error("Provider returns null for rename edits.");return s});i&&await this.fromWorkspaceEdit(i,e.filetype)}async search(e){let t=await this.createRefactorBuffer(),i=await this.nvim.call("getcwd",[]);await new Wx(this.nvim).run(e,i,t)}async save(e){let t=this.buffers.get(e);if(t)return await t.save()}getBuffer(e){return this.buffers.get(e)}async createRefactorBuffer(e,t=!1){let{nvim:i}=this,[r,o]=await i.eval("[win_getid(),getcwd()]"),{openCommand:s}=this.config;i.pauseNotification(),i.command(`${s} ${tDe}${iDe++}`,!0),i.command("setl buftype=acwrite nobuflisted bufhidden=wipe nofen wrap conceallevel=2 concealcursor=n",!0),i.command("setl undolevels=-1 nolist nospell noswapfile foldmethod=expr foldexpr=coc#util#refactor_foldlevel(v:lnum)",!0),i.command("setl foldtext=coc#util#refactor_fold_text(v:foldstart)",!0),i.call("setline",[1,["Save current buffer to make changes",Br]],!0),i.call("matchadd",["Comment","\\%1l"],!0),i.call("matchadd",["Conceal","^\\%u3000"],!0),i.call("matchadd",["Label","^\\%u3000\\zs\\S\\+"],!0),i.command("setl nomod",!0),e&&i.command(`runtime! syntax/${e}.vim`,!0),i.call("coc#util#do_autocmd",["CocRefactorOpen"],!0),await i.resumeNotification();let[a,l]=await i.eval('[bufnr("%"),win_getid()]'),u={fromWinid:r,winid:l,cwd:o};await v.document;let c=new Yx(a,t?void 0:this.srcId,this.nvim,this.config,u);return this.buffers.set(a,c),c}async fromLines(e){let t=await this.createRefactorBuffer();return await t.buffer.setLines(e,{start:0,end:-1,strictIndexing:!1}),t}async fromLocations(e,t){if(!e||e.length==0)return;let i={},r={changes:i};for(let o of e){let s=i[o.uri]||[];s.push({range:o.range,newText:""}),i[o.uri]=s}return await this.fromWorkspaceEdit(r,t)}async fromWorkspaceEdit(e,t){if(!e||pW(e))return;let i=[],{beforeContext:r,afterContext:o}=this.config,{changes:s,documentChanges:a}=e;if(!s){s={};for(let u of a||[])if(Ih.TextDocumentEdit.is(u)){let{textDocument:c,edits:h}=u;s[c.uri]=h}}for(let u of Object.keys(s)){let c=await this.getLineCount(u),h=s[u],d=[],g=null,f=null,p=[];h.sort((b,y)=>b.range.start.line-y.range.start.line);for(let b of h){let{line:y}=b.range.start,w=Math.max(0,y-r);g!=null&&w<f?(f=Math.min(c,y+o+1),p.push(rte(b.range,g))):(g!=null&&d.push({start:g,end:f,highlights:p}),g=w,f=Math.min(c,y+o+1),p=[rte(b.range,g)])}g!=null&&d.push({start:g,end:f,highlights:p}),i.push({ranges:d,filepath:M.parse(u).fsPath})}let l=await this.createRefactorBuffer(t);return await l.addFileItems(i),l}async getLineCount(e){let t=v.getDocument(e);return t?t.lineCount:await yY(M.parse(e).fsPath)}reset(){for(let e of this.buffers.values())e.dispose();this.buffers.clear()}dispose(){this._onCreate.dispose(),this.buffers.clear(),J(this.disposables)}};function rte(n,e){let{start:t,end:i}=n;return Ih.Range.create(t.line-e,t.character,i.line-e,i.character)}var rp=S(q());Se();bt();De();Q();var ert=Y()("handler-rename"),Jx=class{constructor(e,t){this.nvim=e;this.handler=t}async getWordEdit(){let{doc:e,position:t}=await this.handler.getCurrentState(),i=e.getWordRangeAtPosition(t);if(!i||Ct(i))return null;let r=e.textDocument.getText(i);if(F.hasProvider("rename",e.textDocument)){await e.synchronize();let s=new rp.CancellationTokenSource;if(await F.prepareRename(e.textDocument,t,s.token)===!1)return null;let l=r.startsWith("a")?"b":"a",u=await F.provideRenameEdits(e.textDocument,t,l,s.token);if(u)return u}D.showMessage("Rename provider not found, extract word ranges from current buffer","more");let o=e.getSymbolRanges(r);return{changes:{[e.uri]:o.map(s=>({range:s,newText:r}))}}}async rename(e){let{doc:t,position:i}=await this.handler.getCurrentState();this.handler.checkProvier("rename",t.textDocument),await t.synchronize();let r=new rp.CancellationTokenSource().token,o=await F.prepareRename(t.textDocument,i,r);if(o===!1)return D.showWarningMessage("Invalid position for rename"),!1;let s;if(!e){rp.Range.is(o)?(s=t.textDocument.getText(o),await D.moveTo(o.start)):o&&typeof o.placeholder=="string"?s=o.placeholder:s=await this.nvim.eval('expand("<cword>")');let l=v.getConfiguration("coc.preferences");e=await D.requestInput("New name",l.get("renameFillCurrent",!0)?s:void 0)}if(e===""&&D.showWarningMessage("Empty word, rename canceled"),!e)return!1;let a=await F.provideRenameEdits(t.textDocument,i,e,r);return r.isCancellationRequested||!a?!1:(await v.applyEdit(a),this.nvim.redrawVim(),!0)}};we();var GP=S(require("fs")),ste=S(require("path"));go();Lr();Q();Kl();var ote=Y()("handler-workspace"),$x=class{constructor(e,t){this.nvim=e;this.handler=t}async openLog(){let e=ote.logfile;await v.jumpTo(M.file(e).toString())}async doAutocmd(e,t){await v.autocmds.doAutocmd(e,t)}async getConfiguration(e){let t=await v.document;return v.getConfiguration(e,t?t.uri:void 0)}getRootPatterns(e){let t=v.getDocument(e);return t?{buffer:v.workspaceFolderControl.getRootPatterns(t,0),server:v.workspaceFolderControl.getRootPatterns(t,1)||[],global:v.workspaceFolderControl.getRootPatterns(t,2)}:null}async ensureDocument(){let e=await v.document;return e&&!e.isCommandLine&&e.attached}async doKeymap(e,t="",i){return await v.keymaps.doKeymap(e,t,i)}async snippetCheck(e,t){if(e&&!ye.has("coc-snippets"))return this.nvim.echoError("coc-snippets required for check expand status!"),!1;if(t&&Xt.jumpable())return!0;if(e){let i=ye.getExtensionApi("coc-snippets");if(i&&i.hasOwnProperty("expandable")&&await Promise.resolve(i.expandable()))return!0}return!1}async showInfo(){let e=[],t=v.version+"-8ed12040 2022-05-17 12:20:38 +0000";e.push("## versions"),e.push("");let r=(await this.nvim.call("execute",["version"])).trim().split(/\r?\n/,2)[0].replace(/\(.*\)/,"").trim();e.push("vim version: "+r+`${v.isVim?" "+v.env.version:""}`),e.push("node version: "+process.version),e.push("coc.nvim version: "+t),e.push("coc.nvim directory: "+ste.default.dirname(__dirname)),e.push("term: "+(process.env.TERM_PROGRAM||process.env.TERM)),e.push("platform: "+process.platform),e.push(""),e.push("## Log of coc.nvim"),e.push("");let o=ote.logfile;if(GP.default.existsSync(o)){let a=GP.default.readFileSync(o,{encoding:"utf8"});e.push(...a.split(/\r?\n/))}await this.nvim.command("vnew +setl\\ buftype=nofile\\ bufhidden=wipe\\ nobuflisted"),await(await this.nvim.buffer).setLines(e,{start:0,end:-1,strictIndexing:!1})}};var KP=S(q());Se();Ht();bt();De();var Xx=class{constructor(e,t){this.nvim=e;this.handler=t;this.selectionRange=null}async getSelectionRanges(){let{doc:e,position:t}=await this.handler.getCurrentState();return this.handler.checkProvier("selectionRange",e.textDocument),await e.synchronize(),await this.handler.withRequestToken("selection ranges",r=>F.getSelectionRanges(e.textDocument,[t],r))}async selectRange(e,t){let{nvim:i}=this,{doc:r}=await this.handler.getCurrentState();this.handler.checkProvier("selectionRange",r.textDocument);let o=[];if(!t&&(!this.selectionRange||!e))return;if(e){let u=await D.getSelectedRange(e);o.push(u.start,u.end)}else{let u=await D.getCursorPosition();o.push(u)}if(!t){let u=KP.Range.create(o[0],o[1]),{selectionRange:c}=this;for(;c&&c.parent&&!_e(c.parent.range,u);)c=c.parent;c&&c.parent&&await D.selectRange(c.range);return}await r.synchronize();let s=await this.handler.withRequestToken("selection ranges",u=>F.getSelectionRanges(r.textDocument,o,u));if(!s||s.length==0)return;await i.eval("mode()")!="n"&&await i.eval(`feedkeys("\\<Esc>", 'in')`);let l;if(s.length==1)l=s[0];else{let u=o[1]||o[0],c=KP.Range.create(o[0],u);for(l=s[0];l;){if(_e(c,l.range)){l=l.parent;continue}if(ct(o[0],l.range)==0&&ct(u,l.range)==0)break;l=l.parent}}!l||(this.selectionRange=s[0],await D.selectRange(l.range))}};var ate=S(require("path")),fs=S(q());we();xi();he();Se();kP();vx();z();Ko();Q();var jrt=Y()("Handler-callHierarchy");function nDe(n){return!!(n&&n.name&&n.kind&&fs.Range.is(n.range)&&n.uri)}var Co=class{constructor(e,t){this.nvim=e;this.handler=t;this.disposables=[];this.highlightWinids=new Set;this.loadConfiguration(),v.onDidChangeConfiguration(this.loadConfiguration,this,this.disposables),this.disposables.push(re.registerCommand(Co.commandId,async(i,r,o)=>{var l;let{nvim:s}=this;await s.call("win_gotoid",[i]),await v.jumpTo(r.uri,r.selectionRange.start,o);let a=await s.window;if(a.clearMatchGroup(Co.rangesHighlight),a.highlightRanges(Co.rangesHighlight,[r.selectionRange],10,!0),!!((l=r.ranges)!=null&&l.length)){if(r.sourceUri){let u=v.getDocument(r.sourceUri);if(!u)return;let c=await s.call("coc#compat#buf_win_id",[u.bufnr]);if(c==-1)return;c!=a.id&&(a=s.createWindow(c),a.clearMatchGroup(Co.rangesHighlight))}a.highlightRanges(Co.rangesHighlight,r.ranges,100,!0),this.highlightWinids.add(a.id)}},null,!0)),_.on("BufWinEnter",(i,r)=>{this.highlightWinids.has(r)&&(this.highlightWinids.delete(r),e.createWindow(r).clearMatchGroup(Co.rangesHighlight))},null,this.disposables)}loadConfiguration(e){if(!e||e.affectsConfiguration("callHierarchy")){let t=v.getConfiguration("callHierarchy");this.config={splitCommand:t.get("splitCommand"),openCommand:t.get("openCommand"),enableTooltip:t.get("enableTooltip")}}}createProvider(e,t,i,r){let o=new fs.Emitter,s,a,l=()=>{s&&(s.cancel(),s.dispose(),s=null)},u=(h,d)=>{let g=h.children;if(!Array.isArray(g))return;if(g.find(p=>p==d))return h;for(let p of g){let b=u(p,d);if(b)return b}},c={kind:r,onDidChangeTreeData:o.event,getTreeItem:h=>{var g;let d=new vo(h.name,h.children?2:1);return this.config.enableTooltip&&(d.tooltip=ate.default.relative(v.cwd,M.parse(h.uri).fsPath)),d.description=h.detail,d.deprecated=(g=h.tags)==null?void 0:g.includes(fs.SymbolTag.Deprecated),d.icon=this.handler.getIcon(h.kind),d.command={command:Co.commandId,title:"open location",arguments:[t,h,this.config.openCommand]},d},getChildren:async h=>{l(),s=new fs.CancellationTokenSource;let{token:d}=s;if(!h){if(!a&&(a=await this.prepare(e,i,d),!(a!=null&&a.length)))return;for(let f of a){let p=await this.getChildren(e,f,c.kind,d);if(d.isCancellationRequested)break;Array.isArray(p)&&(f.children=p)}return a}if(h.children)return h.children;let g=await this.getChildren(e,h,c.kind,d);return s=null,d.isCancellationRequested?[]:(h.children=g,g)},resolveActions:()=>[{title:"Open in new tab",handler:async h=>{await re.executeCommand(Co.commandId,t,h,"tabe")}},{title:"Show Incoming Calls",handler:h=>{a=[zi(h,["children","ranges","sourceUri"])],c.kind="incoming",o.fire(void 0)}},{title:"Show Outgoing Calls",handler:h=>{a=[zi(h,["children","ranges","sourceUri"])],c.kind="outgoing",o.fire(void 0)}},{title:"Dismiss",handler:async h=>{let d;for(let f of a)if(d=u(f,h),d)break;if(!d)return;let g=d.children.findIndex(f=>f===h);d.children.splice(g,1),o.fire(d)}}],dispose:()=>{l(),o.dispose(),a=void 0,o=void 0}};return c}async getChildren(e,t,i,r){let o=[];if(i=="incoming"){let s=await F.provideIncomingCalls(e,t,r);s&&(o=s.map(a=>Object.assign(a.from,{ranges:a.fromRanges})))}else{let s=await F.provideOutgoingCalls(e,t,r);s&&(o=s.map(a=>Object.assign(a.to,{ranges:a.fromRanges,sourceUri:t.uri})))}return o}async prepare(e,t,i){this.handler.checkProvier("callHierarchy",e);let r=await F.prepareCallHierarchy(e,t,i);return nDe(r)?[r]:r}async getCallHierarchyItems(e,t){let{doc:i,position:r}=await this.handler.getCurrentState(),o=new fs.CancellationTokenSource;if(!e){await i.synchronize();let a=await this.prepare(i.textDocument,r,o.token);if(e=a?a[0]:void 0,!a)return}let s=t=="incoming"?"provideIncomingCalls":"provideOutgoingCalls";return await F[s](i.textDocument,e,o.token)}async getIncoming(e){return await this.getCallHierarchyItems(e,"incoming")}async getOutgoing(e){return await this.getCallHierarchyItems(e,"outgoing")}async showCallHierarchyTree(e){let{doc:t,position:i,winid:r}=await this.handler.getCurrentState();await t.synchronize();let o=this.createProvider(t.textDocument,r,i,e),s=new eu("calls",{treeDataProvider:o});s.title=`${e.toUpperCase()} CALLS`,o.onDidChangeTreeData(a=>{a||(s.title=`${o.kind.toUpperCase()} CALLS`)}),s.onDidChangeVisibility(a=>{a.visible||o.dispose()}),this.disposables.push(s),await s.show(this.config.splitCommand)}dispose(){this.highlightWinids.clear(),J(this.disposables)}},jh=Co;jh.commandId="callHierarchy.reveal",jh.rangesHighlight="CocSelectedRange";xi();he();Se();Bo();Bl();z();na();Fe();Q();var lte=S(_i()),To=S(q());Se();var ru=class{constructor(){this.ranges=[]}get current(){let e=[];return this.ranges.sort((t,i)=>t[0]-i[0]),this.ranges.forEach(t=>{e.push(t[0],t[1])}),e}clear(){this.ranges=[]}add(e,t){e>t&&([e,t]=[t,e]);let{ranges:i}=this;if(i.length==0)i.push([e,t]);else{i.sort((l,u)=>l[0]-u[0]);let r,o,s=[];for(let l=0;l<i.length;l++){let u=i[l];u[1]<e||u[0]>t||(s.push(l),r==null&&(r=Math.min(e,u[0])),o=Math.max(t,u[1]))}let a=s.length?i.filter((l,u)=>!s.includes(u)):i;this.ranges=a,r!=null&&o!=null?this.ranges.push([r,o]):this.ranges.push([e,t])}}has(e,t){return this.ranges.findIndex(r=>r[0]<=e&&r[1]>=t)!==-1}static mergeSpans(e){let t=[];for(let i of e){let r=t.findIndex(o=>!(i[1]<o[0]||i[0]>o[1]));if(r==-1)t.push(i);else{let o=t[r];t[r]=[Math.min(i[0],o[0]),Math.max(i[1],o[1])]}}return t}};z();Fe();De();Q();var Xrt=Y()("semanticTokens-buffer"),rDe=15,Fh="CocSem",So="semanticTokens",oDe=global.hasOwnProperty("__TEST__")?30:300,Ux=class{constructor(e,t,i){this.nvim=e;this.doc=t;this.config=i;this._dirty=!1;this.regions=new ru;this._onDidRefresh=new To.Emitter;this.onDidRefresh=this._onDidRefresh.event;this.highlight=(0,lte.default)(()=>{this.doHighlight()},oDe),this.doHighlight()}get bufnr(){return this.doc.bufnr}onChange(){this.doHighlight()}onTextChange(){this.cancel()}async forceHighlight(){this.previousResults=void 0,this.clearHighlight(),this.cancel(),await this.doHighlight(!0)}async onShown(){if(this.shouldRangeHighlight)return;let{doc:e}=this;e.dirty||e.version===this._version||await this.doHighlight(!1,!0)}get hasProvider(){let{textDocument:e}=this.doc;return F.hasProvider("semanticTokens",e)||F.hasProvider("semanticTokensRange",e)}get hasLegend(){let{textDocument:e}=this.doc;return F.getLegend(e)!=null||F.getLegend(e,!0)!=null}get rangeProviderOnly(){let{textDocument:e}=this.doc;return!F.hasProvider("semanticTokens",e)&&F.hasProvider("semanticTokensRange",e)}get shouldRangeHighlight(){let{textDocument:e}=this.doc;return F.hasProvider("semanticTokensRange",e)&&this.previousResults==null}get invalid(){return this.doc?!this.doc.attached||this.doc.dirty:!0}get lineCount(){return this.doc.lineCount}get highlights(){return this._highlights?this._highlights[1]:[]}get buffer(){return this.nvim.createBuffer(this.bufnr)}get enabled(){var e;return!this.config.filetypes.length||!v.env.updateHighlight||!((e=this.doc)!=null&&e.attached)||!this.hasLegend||!this.config.filetypes.includes("*")&&!this.config.filetypes.includes(this.doc.filetype)?!1:this.hasProvider}checkState(){if(!v.env.updateHighlight)throw new Error("Can't perform highlight update, highlight update requires vim >= 8.1.1719 or neovim >= 0.5.0");if(!this.doc.attached)throw new Error("Document not attached");let{filetypes:e}=this.config;if(!(e!=null&&e.includes("*"))&&!e.includes(this.doc.filetype))throw new Error(`Semantic tokens highlight not enabled for current filetype: ${this.doc.filetype}`);if(!this.hasProvider)throw new Error("SemanticTokens provider not found, your languageserver may not support it")}async getTokenRanges(e,t,i){let r=0,o=0,s=Date.now(),a=[];for(let l=0;l<e.length;l+=5){if(Date.now()-s>rDe){if(await Ur(),i.isCancellationRequested)break;s=Date.now()}let u=e[l],c=e[l+1],h=e[l+2],d=t.tokenTypes[e[l+3]],g=t.tokenModifiers.filter((y,w)=>e[l+4]&1<<w),f=r+u,p=u===0?o+c:c,b=p+h;r=f,o=p,this.addHighlightItems(a,f,p,b,d,g)}return i.isCancellationRequested?null:a}addHighlightItems(e,t,i,r,o,s){let{highlightGroups:a,combinedModifiers:l}=this.config;s=s||[];let u,c=!1;for(let f of s){let p=Fh+cn(f)+cn(o);if(a.includes(p)){c=l.includes(f),u=p;break}}if(!u)for(let f of s){let p=Fh+cn(f);if(a.includes(p)){u=p,c=l.includes(f);break}}if(!u){let f=Fh+cn(o);a.includes(f)&&(u=f)}let h=this.doc.getline(t),d=et(h,i),g=et(h,r);e.push({range:[t,d,g],tokenType:o,combine:c,hlGroup:u,tokenModifiers:s})}toHighlightItems(e,t,i){let{incrementTypes:r}=this.config,o=typeof t=="number"&&typeof i=="number",s=[];for(let a of e){if(!a.hlGroup)continue;let l=a.range[0];if(o&&(l<t||l>=i))continue;let u={lnum:l,hlGroup:a.hlGroup,colStart:a.range[1],colEnd:a.range[2],combine:a.combine};r.includes(a.tokenType)&&(u.end_incl=!0,u.start_incl=!0),s.push(u)}return s}async doHighlight(e=!1,t=!1){var l;if(this.cancel(),!this.enabled)return;let r=(this.tokenSource=new To.CancellationTokenSource).token;if(!t&&(await this.nvim.eval(`get(get(getbufinfo(${this.bufnr}),0,{}),'hidden',0)`)==1||r.isCancellationRequested))return;if(this.shouldRangeHighlight){let u=this.rangeTokenSource=new To.CancellationTokenSource;if(await this.doRangeHighlight(u.token),r.isCancellationRequested||this.rangeProviderOnly)return}let{doc:o}=this,s=o.version,a;if(s===((l=this.previousResults)==null?void 0:l.version))if(this._highlights&&this._highlights[0]==s)a=this._highlights[1];else{let u=this.previousResults.tokens,c=F.getLegend(o.textDocument);a=await this.getTokenRanges(u,c,r),a&&(this._highlights=[s,a])}else a=await this.requestAllHighlights(r,e),a&&(this._highlights=[s,a]);if(!(!a||r.isCancellationRequested)){if(!this._dirty||a.length<200){let u=this.toHighlightItems(a),c=await D.diffHighlights(this.bufnr,So,u,void 0,r);if(r.isCancellationRequested||!c)return;this._dirty=!0,this._version=s;let h=this.config.highlightPriority;await D.applyDiffHighlights(this.bufnr,So,h,c)}else this.regions.clear(),await this.highlightRegions(r);this._onDidRefresh.fire()}}async waitRefresh(){return new Promise((e,t)=>{let i=setTimeout(()=>{r.dispose(),t(new Error("Timeout after 500ms"))},500),r=this.onDidRefresh(()=>{r.dispose(),clearTimeout(i),e()})})}async doRangeHighlight(e){if(!this.enabled)return;let{version:t}=this.doc,i=await this.requestRangeHighlights(e);if(!i||e.isCancellationRequested)return;let{highlights:r,start:o,end:s}=i;if(this.rangeProviderOnly||!this.previousResults){(!this._highlights||t!==this._highlights[0])&&(this._highlights=[t,[]]);let c=this._highlights[1],h=c.reduce((d,g)=>d.add(g.range[0]),new Set);r.forEach(d=>{h.has(d.range[0])||c.push(d)})}let a=this.toHighlightItems(r),l=this.config.highlightPriority,u=await D.diffHighlights(this.bufnr,So,a,[o,s],e);u&&(await D.applyDiffHighlights(this.bufnr,So,l,u,!0),this._dirty=!0)}async highlightRegions(e){let{regions:t,highlights:i,config:r,lineCount:o,bufnr:s}=this;if(this.invalid)return;let a=r.highlightPriority,l=await this.nvim.call("coc#window#visible_ranges",[s]);if(this.invalid||e.isCancellationRequested||l.length===0)return;let u=v.env.lines;l.forEach(c=>{let h=c[0];c[0]=Math.max(0,Math.floor(h-u*1.5)),c[1]=Math.min(o,Math.ceil(c[1]+u*1.5),h+u*2)});for(let[c,h]of ru.mergeSpans(l)){if(t.has(c,h))continue;let d=this.toHighlightItems(i,c,h),g=await D.diffHighlights(s,So,d,[c,h],e);e.isCancellationRequested||t.add(c,h),g&&await D.applyDiffHighlights(s,So,a,g,!0)}}async onCursorMoved(){if(this.cancel(!0),!this.enabled)return;let t=(this.rangeTokenSource=new To.CancellationTokenSource).token;await Qe(global.__TEST__?10:100),!t.isCancellationRequested&&(this.shouldRangeHighlight?await this.doRangeHighlight(t):await this.highlightRegions(t))}async requestRangeHighlights(e){let{nvim:t,doc:i}=this,r=await t.call("coc#window#visible_range",[this.bufnr]);if(!r||e.isCancellationRequested)return null;let o=Math.min(r[0]+v.env.lines*2,r[1]),s=To.Range.create(r[0]-1,0,o,0),a=await F.provideDocumentRangeSemanticTokens(i.textDocument,s,e);if(!a||e.isCancellationRequested)return null;let l=F.getLegend(i.textDocument,!0),u=await this.getTokenRanges(a.data,l,e);return e.isCancellationRequested?null:{highlights:u,start:r[0]-1,end:r[1]}}async requestAllHighlights(e,t){let{doc:i}=this,r=F.getLegend(i.textDocument),o=F.hasSemanticTokensEdits(i.textDocument),s=t?null:this.previousResults,a=i.version,l;if(o&&(s==null?void 0:s.resultId)?l=await F.provideDocumentSemanticTokensEdits(i.textDocument,s.resultId,e):l=await F.provideDocumentSemanticTokens(i.textDocument,e),e.isCancellationRequested||!l)return;let u=[];return To.SemanticTokens.is(l)?u=l.data:s&&Array.isArray(l.edits)&&(u=s.tokens,l.edits.forEach(c=>{u.splice(c.start,c.deleteCount?c.deleteCount:0,...c.data)})),this.previousResults={resultId:l.resultId,tokens:u,version:a},await this.getTokenRanges(u,r,e)}clearHighlight(){this.buffer.clearNamespace(So)}abandonResult(){this.previousResults=void 0}cancel(e=!1){this.rangeTokenSource&&(this.rangeTokenSource.cancel(),this.rangeTokenSource.dispose(),this.rangeTokenSource=null),!e&&(this.regions.clear(),this.highlight.clear(),this.tokenSource&&(this.tokenSource.cancel(),this.tokenSource.dispose(),this.tokenSource=null))}dispose(){this.cancel(),this.previousResults=void 0,this._highlights=void 0,this._onDidRefresh.dispose(),this.regions.clear()}};var sot=Y()("semanticTokens"),Gx="Statement",Kx=class{constructor(e,t){this.nvim=e;this.handler=t;this.disposables=[];this.loadConfiguration(),this.floatFactory=new li(e),v.onDidChangeConfiguration(this.loadConfiguration,this,this.disposables),re.register({id:"semanticTokens.checkCurrent",execute:async()=>{await this.showHighlightInfo()}},!1,"show semantic tokens highlight information of current buffer"),re.register({id:"semanticTokens.refreshCurrent",execute:()=>this.highlightCurrent()},!1,"refresh semantic tokens highlight of current buffer."),re.register({id:"semanticTokens.inspect",execute:()=>this.inspectSemanticToken()},!1,"Inspect semantic token information at cursor position."),re.register({id:"semanticTokens.clearCurrent",execute:async()=>{(await e.buffer).clearNamespace(So,0,-1)}},!1,"clear semantic tokens highlight of current buffer"),re.register({id:"semanticTokens.clearAll",execute:async()=>{let i=await e.buffers;for(let r of i)r.clearNamespace(So,0,-1)}},!1,"clear semantic tokens highlight of all buffers"),this.highlighters=v.registerBufferSync(i=>new Ux(this.nvim,i,this.config)),F.onDidSemanticTokensRefresh(async i=>{let r=await this.nvim.call("coc#window#bufnrs");for(let o of this.highlighters.items){let s=v.getDocument(o.bufnr);!s||!v.match(i,s.textDocument)||(o.abandonResult(),r.includes(o.bufnr)&&o.highlight())}},null,this.disposables),_.on("BufWinEnter",async i=>{let r=this.highlighters.getItem(i);r&&await r.onShown()},null,this.disposables),_.on("CursorMoved",async i=>{let r=this.highlighters.getItem(i);r&&await r.onCursorMoved()},null,this.disposables)}loadConfiguration(e){var t;if(!e||e.affectsConfiguration("semanticTokens")){let i=[];(t=this.config)!=null&&t.highlightGroups?i=this.config.highlightGroups:i=v.env.semanticHighlights||[];let r=v.getConfiguration("semanticTokens");this.config=Object.assign(this.config||{},{highlightGroups:i,filetypes:r.get("filetypes",[]),highlightPriority:r.get("highlightPriority",2048),incrementTypes:r.get("incrementTypes",[]),combinedModifiers:r.get("combinedModifiers",[])})}}async inspectSemanticToken(){let e=await this.getCurrentItem();if(!e||!e.enabled){this.floatFactory.close();return}let[t,i,r]=await this.nvim.call("getcurpos",[]),o=e.highlights.find(s=>{let a=r-1;return s.range[0]===i-1&&a>=s.range[1]&&a<s.range[2]});if(o){let s=o.tokenModifiers||[],a=[];if(o.hlGroup){let u=17;a.push({lnum:2,colStart:u,colEnd:u+o.hlGroup.length,hlGroup:o.hlGroup})}let l=[{filetype:"txt",content:`Type: ${o.tokenType}
Modifiers: ${s.join(", ")}
Highlight group: ${o.hlGroup||""}`,highlights:a}];await this.floatFactory.show(l,{autoHide:!0,focusable:!0,title:"Semantic token info",borderhighlight:"MoreMsg",border:[1,1,1,1]})}else this.floatFactory.close()}async fetchHighlightGroups(){let e=await this.nvim.call("coc#util#semantic_hlgroups");this.config.highlightGroups=e}async getCurrentItem(){let e=await this.nvim.buffer,t=this.highlighters.getItem(e.id);return t}getItem(e){return this.highlighters.getItem(e)}async highlightCurrent(){let e=await this.getCurrentItem();if(!e||!e.enabled)throw new Error("Unable to perform semantic highlights for current buffer.");await this.fetchHighlightGroups(),await e.forceHighlight()}async showHighlightInfo(){var a;let e=await this.nvim.buffer,{nvim:t}=this,i=this.highlighters.getItem(e.id);if(!i)return t.echoError("Document not attached.");let r=new vn;t.pauseNotification(),t.command(`vs +setl\\ buftype=nofile __coc_semantic_highlights_${e.id}__`,!0),t.command("setl bufhidden=wipe noswapfile nobuflisted wrap undolevels=-1",!0),t.call("bufnr",["%"],!0);let o=await t.resumeNotification();r.addLine("Semantic highlights info",Gx),r.addLine("");try{i.checkState();let l=i.highlights||[];r.addLine("The number of semantic tokens: "),r.addText(String(l.length),"Number"),r.addLine(""),r.addLine("Semantic highlight groups used by current buffer",Gx),r.addLine("");let u=ia(l.filter(d=>d.hlGroup!=null).map(({hlGroup:d})=>d));for(let d of u)r.addTexts([{text:"-",hlGroup:"Comment"},{text:" "},{text:d,hlGroup:d}]);r.addLine(""),r.addLine("Tokens types that current Language Server supported:",Gx),r.addLine("");let c=v.getDocument(i.bufnr),h=(a=F.getLegend(c.textDocument))!=null?a:F.getLegend(c.textDocument,!0);if(h.tokenTypes.length){for(let d of[...new Set(h.tokenTypes)]){let g=Fh+cn(d);r.addTexts([{text:"-",hlGroup:"Comment"},{text:" "},{text:g,hlGroup:g}])}r.addLine("")}else r.addLine("No token types supported","Comment"),r.addLine("");if(r.addLine("Tokens modifiers that current Language Server supported:",Gx),r.addLine(""),h.tokenModifiers.length){for(let d of[...new Set(h.tokenModifiers)]){let g=Fh+cn(d);r.addTexts([{text:"-",hlGroup:"Comment"},{text:" "},{text:g,hlGroup:g}])}r.addLine("")}else r.addLine("No token modifiers exist","Comment"),r.addLine("")}catch(l){r.addLine(l instanceof Error?l.message:l.toString(),"Error")}t.pauseNotification();let s=o[0][2];r.render(t.createBuffer(s)),t.resumeNotification(!0,!0)}dispose(){this.floatFactory.dispose(),this.highlighters.dispose(),J(this.disposables)}};var op=S(q());he();Se();Bo();z();Fe();Q();var yot=Y()("handler-signature"),zx=class{constructor(e,t){this.nvim=e;this.handler=t;this.disposables=[];this.signatureFactory=new li(e),this.loadConfiguration(),this.disposables.push(this.signatureFactory),v.onDidChangeConfiguration(this.loadConfiguration,this,this.disposables),_.on("CursorMovedI",async(i,r)=>{let o=this.lastPosition;!o||o.bufnr==i&&o.lnum==r[0]&&o.col<=r[1]||this.signatureFactory.close()},null,this.disposables),_.on(["InsertLeave","BufEnter"],()=>{var i;(i=this.tokenSource)==null||i.cancel()},null,this.disposables),_.on("TextChangedI",()=>{this.config.hideOnChange&&this.signatureFactory.close()},null,this.disposables),_.on("TextInsert",async(i,r,o)=>{if(!this.config.trigger)return;let s=this.getTextDocument(i);!s||!F.shouldTriggerSignatureHelp(s.textDocument,o)||await this._triggerSignatureHelp(s,{line:r.lnum-1,character:r.pre.length},!1)},null,this.disposables)}getTextDocument(e){let t=v.getDocument(e);if(!(!t||t.isCommandLine||!t.attached))return t}loadConfiguration(e){if(!e||e.affectsConfiguration("signature")){let t=v.getConfiguration("signature"),i=t.get("target","float");i=="float"&&!v.floatSupported&&(i="echo"),this.config={target:i,floatConfig:t.get("floatConfig",{}),trigger:t.get("enable",!0),wait:Math.max(t.get("triggerSignatureWait",500),200),preferAbove:t.get("preferShownAbove",!0),hideOnChange:t.get("hideOnTextChange",!1)}}}async triggerSignatureHelp(){let{doc:e,position:t}=await this.handler.getCurrentState();return F.hasProvider("signature",e.textDocument)?await this._triggerSignatureHelp(e,t,!0,0):!1}async _triggerSignatureHelp(e,t,i=!0,r=0){var d;(d=this.tokenSource)==null||d.cancel();let o=this.tokenSource=new op.CancellationTokenSource,s=o.token;s.onCancellationRequested(()=>{o.dispose(),this.tokenSource=void 0});let{target:a}=this.config,l=this.timer=setTimeout(()=>{o.cancel()},this.config.wait);await e.patchChange(!0);let u=await F.getSignatureHelp(e.textDocument,t,s,{isRetrigger:this.signatureFactory.checkRetrigger(e.bufnr),triggerKind:i?op.SignatureHelpTriggerKind.Invoked:op.SignatureHelpTriggerKind.TriggerCharacter});if(clearTimeout(l),s.isCancellationRequested)return!1;if(!u||u.signatures.length==0)return this.signatureFactory.close(),!1;let{activeSignature:c,signatures:h}=u;if(c){let[g]=h.splice(c,1);g&&h.unshift(g)}return a=="echo"?this.echoSignature(u):await this.showSignatureHelp(e,t,u,r),!0}async showSignatureHelp(e,t,i,r){let{signatures:o,activeParameter:s}=i,a=null,l=r,u=o.reduce((g,f,p)=>{var x,k;let b=null,y=(x=f.activeParameter)!=null?x:s,w=f.label.indexOf("(");if(p==0&&typeof y=="number"){let L=(k=f.parameters)==null?void 0:k[y];if(L){let j=f.label.slice(w==-1?0:w);if(a=L.documentation,typeof L.label=="string"){let O=j.slice(0),W=O.match(new RegExp("\\b"+L.label.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+"\\b")),H=W?W.index:O.indexOf(L.label);H!=-1&&(b=[H+w,H+L.label.length+w])}else b=L.label}}if(b==null&&(b=[w+1,w+1]),r==l&&(r=r+b[0]+1),g.push({content:f.label,filetype:e.filetype,active:b}),a){let L=typeof a=="string"?a:a.value;L.trim().length&&g.push({content:L,filetype:eg(f.documentation)?"markdown":"txt"})}if(p==0&&f.documentation){let{documentation:L}=f,j=typeof L=="string"?L:L.value;j.trim().length&&g.push({content:j,filetype:eg(f.documentation)?"markdown":"txt"})}return g},[]),c=e.getline(t.line,!1).slice(0,t.character);this.lastPosition={bufnr:e.bufnr,lnum:t.line+1,col:V(c)+1};let h=v.getConfiguration("coc.preferences").get("excludeImageLinksInMarkdownDocument"),d=this.signatureFactory.applyFloatConfig({preferTop:this.config.preferAbove,autoHide:!1,offsetX:r,modes:["i","ic","s"],excludeImages:h},this.config.floatConfig);await this.signatureFactory.show(u,d)}echoSignature(e){var s;let{signatures:t,activeParameter:i}=e,r=v.env.columns;t=t.slice(0,v.env.cmdheight);let o=[];for(let a of t){let l=[],{label:u}=a;u=u.replace(/\n/g," "),u.length>=r-16&&(u=u.slice(0,r-16)+"...");let c=u.indexOf("(");if(c==-1)l=[{text:u,type:"Normal"}];else{l.push({text:u.slice(0,c),type:"Label"});let h=u.slice(c);if(o.length==0&&i!=null){let d=(s=a.parameters)==null?void 0:s[i];if(d){let g,f;if(typeof d.label=="string"){let p=h.slice(0),b=p.match(new RegExp("\\b"+d.label.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+"\\b")),y=b?b.index:p.indexOf(d.label);y==-1?l.push({text:h,type:"Normal"}):(g=y,f=y+d.label.length)}else[g,f]=d.label,g=g-c,f=f-c;g!=null&&f!=null&&(l.push({text:h.slice(0,g),type:"Normal"}),l.push({text:h.slice(g,f),type:"MoreMsg"}),l.push({text:h.slice(f),type:"Normal"}))}}else l.push({text:h,type:"Normal"})}o.push(l)}this.nvim.callTimer("coc#ui#echo_signatures",[o],!0)}dispose(){J(this.disposables),this.timer&&clearTimeout(this.timer)}};var Oh=S(q());he();Se();z();Ht();bt();De();Q();var fte=S(_i()),Ia=S(q());Se();z();Q();var ute=S(q());qf();bt();function cte(n){let e=[],t=n.slice();return t.sort(hte),t.forEach(i=>dte(e,i,0)),e}function hte(n,e){let t=n.selectionRange,i=e.selectionRange;return xe(t.start,i.start)}function dte(n,e,t){let{name:i,selectionRange:r,detail:o,kind:s,children:a,range:l,tags:u}=e,{start:c}=r||l,h={col:c.character+1,lnum:c.line+1,text:i,level:t,kind:mo(s),range:l,selectionRange:r};if(o&&(h.detail=o),u&&u.includes(ute.SymbolTag.Deprecated)&&(h.deprecated=!0),n.push(h),a&&a.length){a.sort(hte);for(let d of a)dte(n,d,t+1)}}function sDe(n){return n&&!n.hasOwnProperty("location")}function gte(n){return sDe(n[0])}var Qx=class{constructor(e,t){this.bufnr=e;this.autoUpdateBufnrs=t;this.disposables=[];this._onDidUpdate=new Ia.Emitter;this.onDidUpdate=this._onDidUpdate.event;this.fetchSymbols=(0,fte.default)(()=>{this._fetchSymbols().logError()},global.hasOwnProperty("__TEST__")?10:500)}async getSymbols(){var t;let e=v.getDocument(this.bufnr);return e?(await e.patchChange(),this.autoUpdateBufnrs.add(this.bufnr),e.version==this.version&&((t=this.symbols)==null?void 0:t.length)?this.symbols:(this.cancel(),await this._fetchSymbols(),this.symbols)):[]}onChange(e){e.contentChanges.length!==0&&(this.cancel(),this.autoUpdateBufnrs.has(this.bufnr)&&this.fetchSymbols())}get textDocument(){var e;return(e=v.getDocument(this.bufnr))==null?void 0:e.textDocument}async _fetchSymbols(){let{textDocument:e}=this;if(!e)return;let{version:t}=e,i=this.tokenSource=new Ia.CancellationTokenSource,{token:r}=i,o=await F.getDocumentSymbol(e,r);if(this.tokenSource=void 0,o==null||r.isCancellationRequested)return;let s;gte(o)?s=o:s=o.map(a=>{let l=Ia.DocumentSymbol.create(a.name,"",a.kind,a.location.range,a.location.range);return a.deprecated&&(l.tags=[Ia.SymbolTag.Deprecated]),l}),this.version=t,this.symbols=s,this._onDidUpdate.fire(s)}cancel(){this.fetchSymbols.clear(),this.tokenSource&&(this.tokenSource.cancel(),this.tokenSource.dispose(),this.tokenSource=null)}dispose(){this.cancel(),this.symbols=void 0,this._onDidUpdate.dispose(),J(this.disposables)}};var eC=S(q());he();Se();Ne();var pte=S(q());xi();z();ex();function aDe(n){return n?typeof n.text=="string"&&typeof n.hlGroup=="string":!1}function lDe(n,e){return n.label===e.label&&n.deprecated===e.deprecated&&n.key===e.key}function uDe(n,e){return n.length!==e.length?!1:n.every((t,i)=>lDe(t,e[i]))}var Vx=class{constructor(e){this.opts=e;this.disposables=[];this._onDidChangeTreeData=new pte.Emitter;this.onDidChangeTreeData=this._onDidChangeTreeData.event;this.invokeCommand=`_invoke_${se()}`,this.disposables.push(re.registerCommand(this.invokeCommand,async t=>{typeof e.handleClick=="function"?await e.handleClick(t):console.error("Handler not found")},null,!0)),typeof e.resolveActions=="function"&&(this.resolveActions=e.resolveActions.bind(this))}iterate(e,t,i,r){let o=r(e,t,i);if(o===!1)return!1;if(Array.isArray(e.children)){for(let s of e.children)if(this.iterate(s,e,i+1,r)===!1)return!1}return o}updateNodes(e,t,i,r=!0){let o=uDe(e,t),s=(a,l,u)=>{var h,d,g,f,p,b;let c=!1;for(let y of Object.keys(l))["children","key"].includes(y)||(a[y]=l[y]);if(((h=a.children)==null?void 0:h.length)&&!((d=l.children)!=null&&d.length)&&(delete a.children,c=!0),!((g=a.children)!=null&&g.length)&&((f=l.children)==null?void 0:f.length)&&(a.children=l.children,c=!0),c){u&&this._onDidChangeTreeData.fire(a);return}((p=a.children)==null?void 0:p.length)&&((b=l.children)==null?void 0:b.length)&&this.updateNodes(a.children,l.children,a,u)};if(o)for(let a=0;a<e.length;a++)s(e[a],t[a],r);else{let a=e.splice(0,e.length),l=new Set;for(let u=0;u<t.length;u++){let c=t[u],h;if(c.key?h=a.findIndex((d,g)=>!l.has(g)&&d.key==c.key):h=a.findIndex((d,g)=>!l.has(g)&&d.label==c.label),h===-1)e[u]=c;else{l.add(h);let d=a[h];s(d,c,!1),e[u]=d}}r&&this._onDidChangeTreeData.fire(i)}}update(e,t){if(!!this.data)return t?(this.data=e||[],this._onDidChangeTreeData.fire(void 0)):this.updateNodes(this.data,e||[],void 0),this.data}getTreeItem(e){var o;let t=e.label,{expandLevel:i}=this.opts,r;if(!((o=e.children)!=null&&o.length))r=new vo(t);else if(i&&i>0){let s=this.getLevel(e),a=s&&s<=i?2:1;r=new vo(t,a)}else r=new vo(t,1);if(r.description=e.description,e.deprecated&&(r.deprecated=!0),e.tooltip&&(r.tooltip=e.tooltip),aDe(e.icon))r.icon=e.icon;else if(typeof this.opts.resolveIcon=="function"){let s=this.opts.resolveIcon(e);s&&(r.icon=s)}return r}async getChildren(e){if(e)return e.children||[];if(this.data)return this.data;let t=await Promise.resolve(this.opts.provideData());if(!Array.isArray(t))throw new Error("Unable to fetch data");return this.data=t,t}getParent(e){if(!this.data)return;let t;for(let i of this.data)if(this.iterate(i,null,0,(o,s)=>{if(o===e)return t=s,!1})===!1)break;return t}getLevel(e){if(!this.data)return;let t=0;for(let i of this.data)if(this.iterate(i,null,1,(o,s,a)=>{if(o===e)return t=a,!1})===!1)break;return t}async resolveTreeItem(e,t,i){if(typeof this.opts.resolveItem=="function"){let r=await Promise.resolve(this.opts.resolveItem(e,t,i));r&&Object.assign(e,r)}return e.command||(e.command={title:`invoke ${t.label}`,command:this.invokeCommand,arguments:[t]}),e}dispose(){this.data=[],this._onDidChangeTreeData.dispose(),typeof this.opts.onDispose=="function"&&this.opts.onDispose(),J(this.disposables)}};vx();z();bt();De();Q();var ost=Y()("symbols-outline"),tC=class{constructor(e,t,i){this.nvim=e;this.buffers=t;this.handler=i;this.treeViewList=[];this.providersMap=new Map;this.sortByMap=new Map;this.disposables=[];this.loadConfiguration(),v.onDidChangeConfiguration(this.loadConfiguration,this,this.disposables),v.onDidCloseTextDocument(async r=>{let{bufnr:o}=r,s=this.providersMap.get(o);!s||await e.call("bufloaded",[o])||(this.providersMap.delete(o),s.dispose())},null,this.disposables),D.onDidChangeActiveTextEditor(async r=>{if(!this.config.checkBufferSwitch)return;this.treeViewList.find(s=>s.visible&&s.targetTabnr==r.tabpagenr)&&(await this.showOutline(r.document.bufnr,r.tabpagenr),await e.command(`noa call win_gotoid(${r.winid})`))},null,this.disposables),_.on("CursorHold",async r=>{if(!this.config.followCursor||!this.providersMap.get(r))return;let s=await e.call("tabpagenr"),a=this.treeViewList.find(u=>u.visible&&u.targetBufnr==r&&u.targetTabnr==s);if(!a)return;let l=await D.getCursorPosition();await this.revealPosition(a,l)},null,this.disposables)}async revealPosition(e,t){let i,r=a=>{if(ct(t,a.range)!=0)return!1;if(i=a,Array.isArray(a.children)){for(let l of a.children)if(l.kind!==eC.SymbolKind.Variable&&r(l))break}return!0},o=this.providersMap.get(e.targetBufnr);if(!o)return;let s=await Promise.resolve(o.getChildren());for(let a of s)if(r(a))break;i&&await e.reveal(i)}loadConfiguration(e){if(!e||e.affectsConfiguration("outline")){let t=v.getConfiguration("outline");this.config={splitCommand:t.get("splitCommand"),switchSortKey:t.get("switchSortKey"),followCursor:t.get("followCursor"),keepWindow:t.get("keepWindow"),expandLevel:t.get("expandLevel"),autoWidth:t.get("autoWidth"),checkBufferSwitch:t.get("checkBufferSwitch"),detailAsDescription:t.get("detailAsDescription"),sortBy:t.get("sortBy"),showLineNumber:t.get("showLineNumber"),codeActionKinds:t.get("codeActionKinds")}}}convertSymbolToNode(e,t){var s;let i=[],{detailAsDescription:r,showLineNumber:o}=this.config;return r&&e.detail&&i.push(e.detail),o&&i.push(`${e.selectionRange.start.line+1}`),{label:e.name,tooltip:r?void 0:e.detail,description:i.join(" "),icon:this.handler.getIcon(e.kind),deprecated:(s=e.tags)==null?void 0:s.includes(eC.SymbolTag.Deprecated),kind:e.kind,range:e.range,selectRange:e.selectionRange,children:Array.isArray(e.children)?e.children.map(a=>this.convertSymbolToNode(a,t)).sort(t):void 0}}setMessage(e,t){let i=this.treeViewList.filter(r=>r.valid&&r.targetBufnr==e);i&&i.forEach(r=>{r.message=t})}convertSymbols(e,t){let i=this.getSortBy(e),r=(o,s)=>i==="name"?o.label<s.label?-1:1:i==="category"?o.kind==s.kind?o.label<s.label?-1:1:o.kind-s.kind:xe(o.selectRange.start,s.selectRange.start);return t.map(o=>this.convertSymbolToNode(o,r)).sort(r)}onSymbolsUpdate(e,t){let i=this.providersMap.get(e);i&&i.update(this.convertSymbols(e,t))}createProvider(e){let{nvim:t}=this,i,r=new Vx({expandLevel:this.config.expandLevel,provideData:async()=>{let o=this.buffers.getItem(e);if(!o)throw new Error("Document not attached");let s=v.getDocument(e);if(!F.hasProvider("documentSymbol",s.textDocument))throw new Error("Document symbol provider not found");let a=F.getDocumentSymbolMetadata(s.textDocument);a&&a.label&&this.treeViewList.filter(c=>c.valid&&c.targetBufnr==e).forEach(c=>c.description=a.label),this.setMessage(e,"Loading document symbols");let l=await o.getSymbols();if(!l||l.length==0)throw new Error("Empty symbols returned from language server. ");return this.setMessage(e,void 0),this.convertSymbols(e,l)},handleClick:async o=>{let s=await t.call("bufwinnr",[e]);if(s==-1)return;t.pauseNotification(),t.command(`${s}wincmd w`,!0);let a=o.selectRange.start;t.call("coc#cursor#move_to",[a.line,a.character],!0),t.command("normal! zz",!0);let l=t.createBuffer(e);l.highlightRanges("outline-hover","CocHoverRange",[o.selectRange]),t.command("redraw",!0),await t.resumeNotification(),setTimeout(()=>{l.clearNamespace("outline-hover"),t.command("redraw",!0)},global.hasOwnProperty("__TEST__")?10:300)},resolveActions:async(o,s)=>{let a=await t.call("bufwinnr",[e]);if(a==-1)return;let l=v.getDocument(e);return[...(await this.handler.getCodeActions(l,s.range,this.config.codeActionKinds)).map(h=>({title:h.title,handler:async()=>{let d=s.range.start;await t.command(`${a}wincmd w`),await this.nvim.call("coc#cursor#move_to",[d.line,d.character]),await this.handler.applyCodeAction(h)}})),{title:"Visual Select",handler:async h=>{await t.command(`${a}wincmd w`),await D.selectRange(h.range)}}]},onDispose:()=>{i&&i.dispose();for(let o of this.treeViewList)o.provider===r&&o.dispose()}});return r}getSortBy(e){var t;return(t=this.sortByMap.get(e))!=null?t:this.config.sortBy}async showOutline(e,t){this.providersMap.has(e)||this.providersMap.set(e,this.createProvider(e));let i=this.treeViewList.find(o=>o.valid&&o.targetBufnr==e&&o.targetTabnr==t);if(!i){i=new eu("OUTLINE",{autoWidth:this.config.autoWidth,bufhidden:"hide",enableFilter:!0,treeDataProvider:this.providersMap.get(e)});let o=this.getSortBy(e);i.description=`${o[0].toUpperCase()}${o.slice(1)}`,this.treeViewList.push(i),i.onDispose(()=>{let s=this.treeViewList.findIndex(a=>a===i);s!==-1&&this.treeViewList.splice(s,1)})}return await i.show(this.config.splitCommand)&&i.registerLocalKeymap("n",this.config.switchSortKey,async()=>{let o=["category","name","position"],s=this.getSortBy(e),a=o.map(d=>({text:d,disabled:d===s})),l=await D.showMenuPicker(a,{title:"Choose sort method"});if(l<0)return;let u=o[l];this.sortByMap.set(e,u),this.treeViewList.filter(d=>d.targetBufnr==e).forEach(d=>{d.description=`${u[0].toUpperCase()}${u.slice(1)}`});let h=this.buffers.getItem(e);h&&h.symbols&&this.onSymbolsUpdate(e,h.symbols)}),i}async show(e){let[t,i,r,o]=await this.nvim.eval('[&filetype,bufnr("%"),tabpagenr(),win_getid()]');if(t==="coctree")return;let s=await D.getCursorPosition(),a=await this.showOutline(i,r);if(e==1||e===void 0&&this.config.keepWindow)await this.nvim.command(`noa call win_gotoid(${o})`);else if(this.config.followCursor){let l=a.onDidRefrash(async()=>{l.dispose(),await this.nvim.eval("&filetype")=="coctree"&&a.visible&&await this.revealPosition(a,s)})}}has(e){return this.providersMap.has(e)}async hide(){let e=await this.nvim.call("coc#window#find",["cocViewId","OUTLINE"]);e!=-1&&await this.nvim.call("coc#window#close",[e])}dispose(){for(let e of this.treeViewList)e.dispose();this.treeViewList=[];for(let e of this.providersMap.values())e.dispose();this.providersMap.clear(),J(this.disposables)}};var iC=class{constructor(e,t){this.nvim=e;this.handler=t;this.disposables=[];this.autoUpdateBufnrs=new Set;this.buffers=v.registerBufferSync(i=>{if(i.buftype!="")return;let r=new Qx(i.bufnr,this.autoUpdateBufnrs);return r.onDidUpdate(o=>{!this.outline||this.outline.onSymbolsUpdate(r.bufnr,o)}),r}),this.outline=new tC(e,this.buffers,t),_.on("CursorHold",async i=>{!this.functionUpdate||!this.buffers.getItem(i)||await this.getCurrentFunctionSymbol(i)},null,this.disposables),_.on("InsertEnter",i=>{let r=this.buffers.getItem(i);r&&r.cancel()},null,this.disposables)}get functionUpdate(){return v.getConfiguration("coc.preferences").get("currentFunctionSymbolAutoUpdate",!1)}get labels(){return v.getConfiguration("suggest").get("completionItemKindLabels",{})}async getWorkspaceSymbols(e){this.handler.checkProvier("workspaceSymbols",null);let t=new Oh.CancellationTokenSource;return await F.getWorkspaceSymbols(e,t.token)}async resolveWorkspaceSymbol(e){var i;if((i=e.location)!=null&&i.uri)return e;let t=new Oh.CancellationTokenSource;return await F.resolveWorkspaceSymbol(e,t.token)}async getDocumentSymbols(e){if(!e){let r=await v.document;if(!r||r.isCommandLine||!r.attached)return;await Qe(1),e=r.bufnr}let t=this.buffers.getItem(e);if(!t)return;let i=await t.getSymbols();return i?cte(i):void 0}async getCurrentFunctionSymbol(e){e||(e=await this.nvim.call("bufnr",["%"]));let t=v.getDocument(e);if(!t||!t.attached||!F.hasProvider("documentSymbol",t.textDocument))return;let i=await D.getCursorPosition(),r=await this.getDocumentSymbols(e),o=this.nvim.createBuffer(e);if(!r||r.length===0)return o.setVar("coc_current_function","",!0),this.nvim.call("coc#util#do_autocmd",["CocStatusChange"],!0),"";r=r.filter(a=>["Class","Method","Function","Struct"].includes(a.kind));let s="";for(let a of r.reverse())if(a.range&&ct(i,a.range)==0&&!a.text.endsWith(") callback")){s=a.text;let l=this.labels[a.kind.toLowerCase()];l&&(s=`${l} ${s}`);break}return this.functionUpdate&&(o.setVar("coc_current_function",s,!0),this.nvim.call("coc#util#do_autocmd",["CocStatusChange"],!0)),s}async selectSymbolRange(e,t,i){let{doc:r}=await this.handler.getCurrentState();this.handler.checkProvier("documentSymbol",r.textDocument);let o;if(t)o=await D.getSelectedRange(t);else{let l=await D.getCursorPosition();o=Oh.Range.create(l,l)}let s=await this.getDocumentSymbols(r.bufnr);if(!s||s.length===0){D.showMessage("No symbols found","warning");return}s=s.filter(l=>i.includes(l.kind));let a;for(let l of s.reverse())if(l.range&&!_e(l.range,o)&&Pi(o,l.range)){a=l.range;break}if(e&&a){let{start:l,end:u}=a,c=r.getline(l.line+1),h=r.getline(u.line-1);a=Oh.Range.create(l.line+1,c.match(/^\s*/)[0].length,u.line-1,h.length)}a?await D.selectRange(a):["v","V",""].includes(t)&&await this.nvim.command("normal! gv")}async showOutline(e){await this.outline.show(e)}async hideOutline(){await this.outline.hide()}hasOutline(e){return this.outline.has(e)}dispose(){this.outline.dispose(),this.buffers.dispose(),J(this.disposables)}};qf();var mte=S(_i()),nC=S(q());he();Se();bt();Fe();De();Q();var cDe=Y()("handler-linkedEditing"),rC=class{constructor(e,t){this.nvim=e;this.changing=!1;this.checkPosition=(0,mte.default)(this._checkPosition,global.__TEST__?10:100),t.addDisposable(_.on("CursorMoved",(i,r)=>{this.cancel(),this.checkPosition(i,r)})),t.addDisposable(_.on("CursorMovedI",(i,r)=>{this.cancel(),this.checkPosition(i,r)})),t.addDisposable(D.onDidChangeActiveTextEditor(()=>{this.cancel(),this.cancelEdit()})),t.addDisposable(_.on("InsertCharPre",(i,r)=>{if(r!==this.bufnr)return;let o=v.getDocument(r);this.wordPattern?new RegExp(this.wordPattern).test(i)||this.cancelEdit():o.isWord(i)||this.cancelEdit()})),t.addDisposable(v.onDidChangeTextDocument(async i=>{await this.onChange(i)}))}cancelEdit(){var e;(e=this.window)==null||e.clearMatchGroup("^CocLinkedEditing"),this.ranges=void 0,this.window=void 0,this.bufnr=void 0}async onChange(e){if(e.bufnr!==this.bufnr||this.changing||!this.ranges)return;if(e.contentChanges.length===0){this.doHighlights();return}let t=e.contentChanges[0],{text:i,range:r}=t,o=this.ranges.filter(s=>!(!pl(r,s.range)||cb(r,s.range)&&(i.includes(`
`)||!Ct(r))));if(o.length==1&&Pi(r,o[0].range)){if(i.includes(`
`)){this.cancelEdit();return}cDe.debug("affected single range"),await this.applySingleEdit(o[0],{range:r,newText:i})}else this.cancelEdit()}async applySingleEdit(e,t){let{bufnr:i,ranges:r}=this,o=v.getDocument(i);r.filter(c=>c!==e&&c.position.line==e.position.line).forEach(c=>c.adjustFromEdit(t));let a=Dx(e,t.range,t.newText),l=Qf(a);r.forEach(c=>c.applyChange(a));let u=r.filter(c=>c!==e).map(c=>c.textEdit);if(this.changing=!0,await o.applyEdits(u,!0,!0),this.changing=!1,l!=0)for(let c of r){let h=Vf(c,this.ranges,e);c.move(h*l)}this.doHighlights()}doHighlights(){let{window:e,ranges:t}=this;e&&t&&(this.nvim.pauseNotification(),e.clearMatchGroup("^CocLinkedEditing"),e.highlightRanges("CocLinkedEditing",t.map(i=>i.range),99,!0),this.nvim.resumeNotification(!0,!0))}_checkPosition(e,t){if(_.pumvisible||!v.isAttached(e))return;let i=v.getDocument(e);if(!v.getConfiguration("coc.preferences",i.uri).get("enableLinkedEditing",!1)||!F.hasProvider("linkedEditing",i.textDocument))return;let s=yi(i.getline(t[0]-1),t[1]-1),a=nC.Position.create(t[0]-1,s);if(this.ranges){if(this.ranges.some(l=>ct(a,l.range)==0))return;this.cancelEdit()}this.enable(i,a)}async enable(e,t){let i=e.textDocument,o=(this.tokenSource=new nC.CancellationTokenSource).token,s=await this.nvim.window,a=await F.provideLinkedEdits(i,t,o);if(o.isCancellationRequested||!a||a.ranges.length==0)return;let l=a.ranges.map(u=>new Eh(u.start.line,u.start.character,i.getText(u)));this.wordPattern=a.wordPattern,this.bufnr=e.bufnr,this.window=s,this.ranges=l,this.doHighlights()}cancel(){this.tokenSource&&(this.tokenSource.cancel(),this.tokenSource=null)}};he();Se();Q();var bte=S(_i()),Mh=S(q());Se();PE();bt();var hDe=global.hasOwnProperty("__TEST__")?10:100,dDe="CocInlayHint",oC=class{constructor(e,t,i){this.nvim=e;this.doc=t;this.config=i;this.regions=new ru;this.currentHints=[];this._onDidRefresh=new Mh.Emitter;this.onDidRefresh=this._onDidRefresh.event;this.render=(0,bte.default)(()=>{this.renderRange()},hDe),this.render()}get current(){return this.currentHints}clearCache(){this.currentHints=[],this.regions.clear(),this.render.clear()}onChange(){this.clearCache(),this.cancel(),this.render()}cancel(){this.render.clear(),this.tokenSource&&(this.tokenSource.cancel(),this.tokenSource=null)}async renderRange(){if(this.cancel(),!F.hasProvider("inlayHint",this.doc.textDocument))return;this.tokenSource=new Mh.CancellationTokenSource;let e=this.tokenSource.token,t=await this.nvim.call("coc#window#visible_range",[this.doc.bufnr]);if(t==null||this.doc.dirty||e.isCancellationRequested||this.regions.has(t[0],t[1]))return;let i=Mh.Range.create(t[0]-1,0,t[1],0),r=await F.provideInlayHints(this.doc.textDocument,i,e);r==null||e.isCancellationRequested||(this.regions.add(t[0],t[1]),this.currentHints=this.currentHints.filter(o=>ct(o.position,i)!==0),this.currentHints.push(...r),this.setVirtualText(i,r))}setVirtualText(e,t){let{nvim:i,doc:r}=this,o=this.config.srcId,s=r.buffer,a={};for(let l of t){let u=[[Gy(l),dDe]];a[l.position.line]===void 0?a[l.position.line]=u:(a[l.position.line].push([" ","Normal"]),a[l.position.line].push(u[0]))}i.pauseNotification(),s.clearNamespace(o,e.start.line,e.end.line+1);for(let l of Object.keys(a))s.setExtMark(o,Number(l),0,{virt_text:a[l],virt_text_pos:"eol"});i.resumeNotification(!1,!0),this._onDidRefresh.fire()}clearVirtualText(){let e=this.config.srcId;this.doc.buffer.clearNamespace(e)}dispose(){this.cancel()}};var sC=class{constructor(e,t){this.config={};e.createNamespace("coc-inlayHint").then(i=>{this.config.srcId=i}),this.buffers=v.registerBufferSync(i=>{if(!!v.has("nvim-0.5.0"))return new oC(e,i,this.config)}),t.addDisposable(this.buffers),t.addDisposable(F.onDidInlayHintRefresh(async i=>{for(let r of this.buffers.items)v.match(i,r.doc.textDocument)&&(r.clearCache(),F.hasProvider("inlayHint",r.doc.textDocument)?await r.renderRange():r.clearVirtualText())})),t.addDisposable(_.on("CursorMoved",i=>{this.refresh(i)})),t.addDisposable(_.on("WinScrolled",async i=>{let r=await e.call("winbufnr",[i]);r!=-1&&this.refresh(r)}))}getItem(e){return this.buffers.getItem(e)}refresh(e){let t=this.buffers.getItem(e);t&&t.render()}};var xat=Y()("Handler"),lC=class{constructor(e){this.nvim=e;this.disposables=[];this.requestStatusItem=D.createStatusBarItem(0,{progress:!0}),_.on(["CursorMoved","CursorMovedI","InsertEnter","InsertSnippet","InsertLeave"],()=>{this.requestTokenSource&&(this.requestTokenSource.cancel(),this.requestTokenSource=null)},null,this.disposables),this.labels=v.getConfiguration("suggest").get("completionItemKindLabels",{}),this.fold=new Ox(e,this),this.links=new Hx(e,this),this.codeLens=new Lx(e),this.colors=new jx(e,this),this.format=new Mx(e,this),this.symbols=new iC(e,this),this.refactor=new Zx(e,this),this.hover=new Nx(e,this),this.locations=new qx(e,this),this.signature=new zx(e,this),this.rename=new Jx(e,this),this.workspace=new $x(e,this),this.codeActions=new Px(e,this),this.commands=new Fx(e,v.env),this.callHierarchy=new jh(e,this),this.documentHighlighter=new Ax(e,this),this.semanticHighlighter=new Kx(e,this),this.selectionRange=new Xx(e,this),this.linkedEditingHandler=new rC(e,this),this.inlayHintHandler=new sC(e,this),this.disposables.push({dispose:()=>{this.callHierarchy.dispose(),this.codeLens.dispose(),this.links.dispose(),this.refactor.dispose(),this.signature.dispose(),this.symbols.dispose(),this.hover.dispose(),this.locations.dispose(),this.colors.dispose(),this.documentHighlighter.dispose(),this.semanticHighlighter.dispose()}}),this.refactor.init()}async getCurrentState(){let{nvim:e}=this,[t,[i,r],o,s]=await e.eval("[bufnr('%'),coc#cursor#position(),win_getid(),mode()]");return{doc:v.getAttachedDocument(t),mode:s,position:aC.Position.create(i,r),winid:o}}addDisposable(e){this.disposables.push(e)}checkProvier(e,t){if(!F.hasProvider(e,t))throw new Error(`${e} provider not found for current buffer, your language server doesn't support it.`)}async withRequestToken(e,t,i){this.requestTokenSource&&(this.requestTokenSource.cancel(),this.requestTokenSource.dispose()),this.requestTimer&&clearTimeout(this.requestTimer);let r=this.requestStatusItem;this.requestTokenSource=new aC.CancellationTokenSource;let{token:o}=this.requestTokenSource;o.onCancellationRequested(()=>{r.text=`${e} request canceled`,r.isProgress=!1,this.requestTimer=setTimeout(()=>{r.hide()},500)}),r.isProgress=!0,r.text=`requesting ${e}`,r.show();let s;try{s=await Promise.resolve(t(o))}catch(a){this.nvim.echoError(a)}return this.requestTokenSource&&(this.requestTokenSource.dispose(),this.requestTokenSource=void 0),o.isCancellationRequested?null:(r.hide(),i&&(!s||Array.isArray(s)&&s.length==0)?(D.showMessage(`${e} not found`,"warning"),null):s)}getIcon(e){let{labels:t}=this,i=mo(e),r=typeof t.default=="string"?t.default:i[0].toLowerCase(),o=i=="Unknown"?"":t[i[0].toLowerCase()+i.slice(1)];return(!o||typeof o!="string")&&(o=r),{text:o,hlGroup:i=="Unknown"?"CocSymbolDefault":`CocSymbol${i}`}}async getCodeActions(e,t,i){return(await this.codeActions.getCodeActions(e,t,i)).filter(o=>!o.disabled)}async applyCodeAction(e){await this.codeActions.applyCodeAction(e)}async hasProvider(e){let t=await this.nvim.call("bufnr","%"),i=v.getDocument(t);return i?F.hasProvider(e,i.textDocument):!1}dispose(){this.requestTimer&&clearTimeout(this.requestTimer),J(this.disposables)}};Xw();Of();Kl();Wl();z();De();Q();var yte=Y()("plugin"),uC=class extends vte.EventEmitter{constructor(e){super();this.nvim=e;this._ready=!1;this.actions=new Map;this.disposables=[];this.disposables.push(v.registerTextDocumentContentProvider("output",Wo.getProvider(e))),Object.defineProperty(v,"nvim",{get:()=>this.nvim}),Object.defineProperty(D,"cursors",{get:()=>this.cursors}),v.onDidChangeWorkspaceFolders(()=>{e.setVar("WorkspaceFolders",v.folderPaths,!0)},null,this.disposables),_.on("VimResized",(t,i)=>{v.env&&Object.assign(v.env,{columns:t,lines:i})},null,this.disposables),this.cursors=new _x(e),re.init(e,this),this.addAction("checkJsonExtension",()=>{ye.has("coc-json")||D.showMessage("Run :CocInstall coc-json for json intellisense","more")}),this.addAction("rootPatterns",t=>this.handler.workspace.getRootPatterns(t)),this.addAction("ensureDocument",()=>this.handler.workspace.ensureDocument()),this.addAction("getConfig",async t=>this.handler.workspace.getConfiguration(t)),this.addAction("doAutocmd",async(t,...i)=>this.handler.workspace.doAutocmd(t,i)),this.addAction("openLog",async()=>this.handler.workspace.openLog()),this.addAction("attach",()=>v.attach()),this.addAction("detach",()=>v.detach()),this.addAction("doKeymap",async(t,i,r)=>this.handler.workspace.doKeymap(t,i,r)),this.addAction("registExtensions",(...t)=>ye.loadExtension(t)),this.addAction("snippetCheck",async(t,i)=>this.handler.workspace.snippetCheck(t,i)),this.addAction("snippetNext",()=>Xt.nextPlaceholder()),this.addAction("snippetPrev",()=>Xt.previousPlaceholder()),this.addAction("snippetCancel",()=>Xt.cancel()),this.addAction("openLocalConfig",()=>D.openLocalConfig()),this.addAction("bufferCheck",()=>D.bufferCheck()),this.addAction("showInfo",()=>this.handler.workspace.showInfo()),this.addAction("hasProvider",t=>this.handler.hasProvider(t)),this.addAction("hasSelected",()=>Dh.hasSelected()),this.addAction("listNames",()=>Ci.names),this.addAction("listDescriptions",()=>Ci.descriptions),this.addAction("listLoadItems",t=>Ci.loadItems(t)),this.addAction("search",(...t)=>this.handler.refactor.search(t)),this.addAction("cursorsSelect",(t,i,r)=>this.cursors.select(t,i,r)),this.addAction("fillDiagnostics",t=>Pt.setLocationlist(t)),this.addAction("saveRefactor",t=>this.handler.refactor.save(t)),this.addAction("commandList",()=>this.handler.commands.getCommandList()),this.addAction("selectSymbolRange",(t,i,r)=>this.handler.symbols.selectSymbolRange(t,i,r)),this.addAction("openList",(...t)=>Ci.start(t)),this.addAction("listResume",t=>Ci.resume(t)),this.addAction("listCancel",()=>Ci.cancel(!0)),this.addAction("listPrev",t=>Ci.previous(t)),this.addAction("listNext",t=>Ci.next(t)),this.addAction("listFirst",t=>Ci.first(t)),this.addAction("listLast",t=>Ci.last(t)),this.addAction("sendRequest",(t,i,r)=>Ai.sendRequest(t,i,r)),this.addAction("sendNotification",(t,i,r)=>Ai.sendNotification(t,i,r)),this.addAction("registNotification",(t,i)=>Ai.registNotification(t,i)),this.addAction("updateConfig",(t,i)=>v.configurations.updateUserConfig({[t]:i})),this.addAction("links",()=>this.handler.links.getLinks()),this.addAction("openLink",()=>this.handler.links.openCurrentLink()),this.addAction("pickColor",()=>this.handler.colors.pickColor()),this.addAction("colorPresentation",()=>this.handler.colors.pickPresentation()),this.addAction("highlight",()=>this.handler.documentHighlighter.highlight()),this.addAction("fold",t=>this.handler.fold.fold(t)),this.addAction("startCompletion",t=>Dh.startCompletion(t)),this.addAction("stopCompletion",()=>Dh.stop()),this.addAction("sourceStat",()=>_t.sourceStats()),this.addAction("refreshSource",t=>_t.refresh(t)),this.addAction("toggleSource",t=>_t.toggleSource(t)),this.addAction("diagnosticRefresh",t=>Pt.refresh(t)),this.addAction("diagnosticInfo",()=>Pt.echoMessage()),this.addAction("diagnosticToggle",t=>Pt.toggleDiagnostic(t)),this.addAction("diagnosticToggleBuffer",(t,i)=>Pt.toggleDiagnosticBuffer(t,i)),this.addAction("diagnosticNext",t=>Pt.jumpNext(t)),this.addAction("diagnosticPrevious",t=>Pt.jumpPrevious(t)),this.addAction("diagnosticPreview",()=>Pt.preview()),this.addAction("diagnosticList",async()=>Pt.getDiagnosticList()),this.addAction("findLocations",(t,i,r,o)=>this.handler.locations.findLocations(t,i,r,o)),this.addAction("getTagList",()=>this.handler.locations.getTagList()),this.addAction("jumpDefinition",t=>this.handler.locations.gotoDefinition(t)),this.addAction("definitions",()=>this.handler.locations.definitions()),this.addAction("jumpDeclaration",t=>this.handler.locations.gotoDeclaration(t)),this.addAction("declarations",()=>this.handler.locations.declarations()),this.addAction("jumpImplementation",t=>this.handler.locations.gotoImplementation(t)),this.addAction("implementations",()=>this.handler.locations.implementations()),this.addAction("jumpTypeDefinition",t=>this.handler.locations.gotoTypeDefinition(t)),this.addAction("typeDefinitions",()=>this.handler.locations.typeDefinitions()),this.addAction("jumpReferences",t=>this.handler.locations.gotoReferences(t)),this.addAction("references",t=>this.handler.locations.references(t)),this.addAction("jumpUsed",t=>this.handler.locations.gotoReferences(t,!1)),this.addAction("doHover",t=>this.handler.hover.onHover(t)),this.addAction("definitionHover",t=>this.handler.hover.definitionHover(t)),this.addAction("getHover",()=>this.handler.hover.getHover()),this.addAction("showSignatureHelp",()=>this.handler.signature.triggerSignatureHelp()),this.addAction("documentSymbols",t=>this.handler.symbols.getDocumentSymbols(t)),this.addAction("symbolRanges",()=>this.handler.documentHighlighter.getSymbolsRanges()),this.addAction("selectionRanges",()=>this.handler.selectionRange.getSelectionRanges()),this.addAction("rangeSelect",(t,i)=>this.handler.selectionRange.selectRange(t,i)),this.addAction("rename",t=>this.handler.rename.rename(t)),this.addAction("getWorkspaceSymbols",t=>this.handler.symbols.getWorkspaceSymbols(t)),this.addAction("resolveWorkspaceSymbol",t=>this.handler.symbols.resolveWorkspaceSymbol(t)),this.addAction("formatSelected",t=>this.handler.format.formatCurrentRange(t)),this.addAction("format",()=>this.handler.format.formatCurrentBuffer()),this.addAction("commands",()=>this.handler.commands.getCommands()),this.addAction("services",()=>Ai.getServiceStats()),this.addAction("toggleService",t=>Ai.toggle(t)),this.addAction("codeAction",(t,i)=>this.handler.codeActions.doCodeAction(t,i)),this.addAction("organizeImport",()=>this.handler.codeActions.organizeImport()),this.addAction("fixAll",()=>this.handler.codeActions.doCodeAction(null,[zP.CodeActionKind.SourceFixAll])),this.addAction("doCodeAction",t=>this.handler.codeActions.applyCodeAction(t)),this.addAction("codeActions",(t,i)=>this.handler.codeActions.getCurrentCodeActions(t,i)),this.addAction("quickfixes",t=>this.handler.codeActions.getCurrentCodeActions(t,[zP.CodeActionKind.QuickFix])),this.addAction("codeLensAction",()=>this.handler.codeLens.doAction()),this.addAction("runCommand",(...t)=>this.handler.commands.runCommand(...t)),this.addAction("doQuickfix",()=>this.handler.codeActions.doQuickfix()),this.addAction("refactor",()=>this.handler.refactor.doRefactor()),this.addAction("repeatCommand",()=>this.handler.commands.repeat()),this.addAction("installExtensions",(...t)=>ye.installExtensions(t)),this.addAction("updateExtensions",t=>ye.updateExtensions(t)),this.addAction("extensionStats",()=>ye.getExtensionStates()),this.addAction("loadedExtensions",()=>ye.loadedExtensions()),this.addAction("watchExtension",t=>ye.watchExtension(t)),this.addAction("activeExtension",t=>ye.activate(t)),this.addAction("deactivateExtension",t=>ye.deactivate(t)),this.addAction("reloadExtension",t=>ye.reloadExtension(t)),this.addAction("toggleExtension",t=>ye.toggleExtension(t)),this.addAction("uninstallExtension",(...t)=>ye.uninstallExtension(t)),this.addAction("getCurrentFunctionSymbol",()=>this.handler.symbols.getCurrentFunctionSymbol()),this.addAction("showOutline",t=>this.handler.symbols.showOutline(t)),this.addAction("hideOutline",()=>this.handler.symbols.hideOutline()),this.addAction("getWordEdit",()=>this.handler.rename.getWordEdit()),this.addAction("addCommand",t=>this.handler.commands.addVimCommand(t)),this.addAction("addRanges",t=>this.cursors.addRanges(t)),this.addAction("currentWorkspacePath",()=>v.rootPath),this.addAction("selectCurrentPlaceholder",t=>Xt.selectCurrentPlaceholder(!!t)),this.addAction("codeActionRange",(t,i,r)=>this.handler.codeActions.codeActionRange(t,i,r)),this.addAction("incomingCalls",t=>this.handler.callHierarchy.getIncoming(t)),this.addAction("outgoingCalls",t=>this.handler.callHierarchy.getOutgoing(t)),this.addAction("showIncomingCalls",()=>this.handler.callHierarchy.showCallHierarchyTree("incoming")),this.addAction("showOutgoingCalls",()=>this.handler.callHierarchy.showCallHierarchyTree("outgoing")),this.addAction("inspectSemanticToken",()=>this.handler.semanticHighlighter.inspectSemanticToken()),this.addAction("semanticHighlight",()=>this.handler.semanticHighlighter.highlightCurrent()),this.addAction("showSemanticHighlightInfo",()=>this.handler.semanticHighlighter.showHighlightInfo())}addAction(e,t){if(this.actions.has(e))throw new Error(`Action ${e} already exists`);this.actions.set(e,t)}async init(){let{nvim:e}=this,t=Date.now();try{await ye.init(),await v.init(D),e.setVar("coc_workspace_initialized",!0,!0),Xt.init(),Dh.init(),Pt.init(),Ci.init(e),_t.init(),this.handler=new lC(e),Ai.init(),ye.activateExtensions(),v.autocmds.setupDynamicAutocmd(!0),e.pauseNotification(),e.setVar("WorkspaceFolders",v.folderPaths,!0),e.setVar("coc_service_initialized",1,!0),e.call("coc#util#do_autocmd",["CocNvimInit"],!0),e.resumeNotification(!1,!0),this._ready=!0,await _.fire("ready",[]),yte.info(`coc.nvim initialized with node: ${process.version} after ${Date.now()-t}ms`),this.emit("ready")}catch(i){e.echoError(i)}}get isReady(){return this._ready}get ready(){return this._ready?Promise.resolve():new Promise(e=>{this.once("ready",()=>{e()})})}hasAction(e){return this.actions.has(e)}async cocAction(e,...t){let i=this.actions.get(e);if(!i)throw new Error(`Action "${e}" doesn't exist`);let r=Date.now(),o=await Promise.resolve(i.apply(null,t)),s=Date.now()-r;return s>500&&yte.warn(`Slow action "${e}" cost ${s}ms`),o}getHandler(){return this.handler}dispose(){this.removeAllListeners(),J(this.disposables),ye.dispose(),Ci.dispose(),v.dispose(),Wo.dispose(),D.dispose(),_t.dispose(),Ai.stopAll(),Ai.dispose(),this.handler&&this.handler.dispose(),Xt.dispose(),re.dispose(),Dh.dispose(),Pt.dispose()}};var Cte=S(Jg());jn();we();dD();var Yr=Y()("attach"),gDe=global.hasOwnProperty("__TEST__"),fDe=["installExtensions","updateExtensions"],Ste=(n,e=!0)=>{let t=(0,wte.attach)(n,xte.default.getLogger("node-client"),e);global.hasOwnProperty("__TEST__")||t.call("coc#util#path_replace_patterns").then(s=>{if(Dt(s)){let a=M.file;M.file=l=>(l=l.replace(/\\/g,"/"),Object.keys(s).forEach(u=>l=l.replace(new RegExp("^"+u),s[u])),a(l))}}).logError(),t.setVar("coc_process_pid",process.pid,!0);let i=new uC(t),r=!1,o=!1;return t.on("notification",async(s,a)=>{switch(s){case"VimEnter":{!o&&r&&(o=!0,await i.init());break}case"Log":{Yr.debug(...a);break}case"TaskExit":case"TaskStderr":case"TaskStdout":case"GlobalChange":case"PromptInsert":case"InputChar":case"MenuInput":case"OptionSet":case"FloatBtnClick":Yr.trace("Event: ",s,...a),await _.fire(s,a);break;case"CocAutocmd":Yr.trace("Notification autocmd:",...a),await _.fire(a[0],a.slice(1));break;case"redraw":break;default:{if(!i.hasAction(s)){console.error(`action "${s}" does not exist`);return}try{i.isReady?Yr.info("receive notification:",s,a):Yr.warn(`Plugin not ready when received "${s}"`,a),await i.ready,await i.cocAction(s,...a)}catch(u){t.echoError(`Error on notification "${s}": ${u instanceof Error?u.message:u}`),Yr.error(u)}}}}),t.on("request",async(s,a,l)=>{if(s=="redraw"){l.send();return}let u=setTimeout(()=>{Yr.error("Request cost more than 3s",s,a)},3e3);try{if(s=="CocAutocmd")Yr.trace("Request autocmd:",...a),await _.fire(a[0],a.slice(1)),l.send(void 0);else{if(!i.isReady&&!fDe.includes(s)){Yr.warn(`Plugin not ready on request "${s}"`,a),l.send("Plugin not ready",!0);return}Yr.info("Request action:",s,a);let c=await i.cocAction(s,...a);l.send(c)}clearTimeout(u)}catch(c){clearTimeout(u),l.send(c instanceof Error?c.message:c.toString(),!0),Yr.error("Request error:",s,a,c)}}),t.channelId.then(async s=>{r=!0,gDe&&t.call("coc#rpc#set_channel",[s],!0);let{major:a,minor:l,patch:u}=Cte.default.parse(yb);t.setClientInfo("coc",{major:a,minor:l,patch:u},"remote",{},{}),await t.getVvar("vim_did_enter")&&!o&&(o=!0,await i.init())}).catch(s=>{console.error(`Channel create error: ${s.message}`)}),i};Object.defineProperty(console,"log",{value(){cC&&cC.info(...arguments)}});var cC=Y()("server");Ste({reader:process.stdin,writer:process.stdout});process.on("uncaughtException",function(n){let e="Uncaught exception: "+n.message;console.error(e),cC.error("uncaughtException",n.stack)});process.on("unhandledRejection",function(n,e){n instanceof Error?console.error("UnhandledRejection: "+n.message+`
`+n.stack):console.error("UnhandledRejection: "+n),cC.error("unhandledRejection ",e,n)});
/*!
* bytes
* Copyright(c) 2012-2014 TJ Holowaychuk
* Copyright(c) 2015 Jed Watson
* MIT Licensed
*/
/*!
* content-disposition
* Copyright(c) 2014-2017 Douglas Christopher Wilson
* MIT Licensed
*/
/*! (c) 2020 Andrea Giammarchi */
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
/**
* event-lite.js - Light-weight EventEmitter (less than 1KB when gzipped)
*
* @copyright Yusuke Kawasaki
* @license MIT
* @constructor
* @see https://github.com/kawanet/event-lite
* @see http://kawanet.github.io/event-lite/EventLite.html
* @example
* var EventLite = require("event-lite");
*
* function MyClass() {...} // your class
*
* EventLite.mixin(MyClass.prototype); // import event methods
*
* var obj = new MyClass();
* obj.on("foo", function() {...}); // add event listener
* obj.once("bar", function() {...}); // add one-time event listener
* obj.emit("foo"); // dispatch event
* obj.emit("bar"); // dispatch another event
* obj.off("foo"); // remove event listener
*/