mirror of
https://github.com/crmeb/CRMEB.git
synced 2025-12-17 15:02:48 +00:00
1 line
222 KiB
JavaScript
1 line
222 KiB
JavaScript
!function(e){var t={};function n(r){var i;return(t[r]||(i=t[r]={i:r,l:!1,exports:{}},e[r].call(i.exports,i,i.exports,n),i.l=!0,i)).exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/admin/",n(n.s="f19f")}({"30db":function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return m})),n.d(t,"d",(function(){return b})),n.d(t,"b",(function(){return _})),n.d(t,"c",(function(){return C})),n.d(t,"e",(function(){return S}));var i="en";let o=!1,s=!1,a=!1,u=!1,l=!1,h=!1,c=void 0,f=i,d=void 0;const m="object"==typeof self?self:"object"==typeof e?e:{};let g=void 0;if(void 0!==m.vscode&&void 0!==m.vscode.process?g=m.vscode.process:void 0!==r&&(g=r),r="string"==typeof(null==(e=null===g||void 0===g?void 0:g.versions)?void 0:e.electron)&&"renderer"===g.type,"object"!=typeof navigator||r){if("object"==typeof g){if(o="win32"===g.platform,s="darwin"===g.platform,(a="linux"===g.platform)&&!!g.env.SNAP&&g.env.SNAP_REVISION,c=i,f=i,e=g.env.VSCODE_NLS_CONFIG,e)try{var p=JSON.parse(e),v=p.availableLanguages["*"];c=p.locale,f=v||i,p._translationsConfigFile}catch(e){}u=!0}}else d=navigator.userAgent,o=0<=d.indexOf("Windows"),s=0<=d.indexOf("Macintosh"),h=(0<=d.indexOf("Macintosh")||0<=d.indexOf("iPad")||0<=d.indexOf("iPhone"))&&!!navigator.maxTouchPoints&&0<navigator.maxTouchPoints,a=0<=d.indexOf("Linux"),l=!0,c=navigator.language,f=c;let y=0;s?y=1:o?y=3:a&&(y=2);const b=o,_=s,C=l,S=function(){if(m.setImmediate)return m.setImmediate.bind(m);if("function"==typeof m.postMessage&&!m.importScripts){let e=[],t=(m.addEventListener("message",t=>{if(t.data&&t.data.vscodeSetImmediateId)for(let n=0,r=e.length;n<r;n++){const r=e[n];if(r.id===t.data.vscodeSetImmediateId)return e.splice(n,1),void r.callback()}}),0);return n=>{var r=++t;e.push({id:r,callback:n}),m.postMessage({vscodeSetImmediateId:r},"*")}}if("function"==typeof(null===g||void 0===g?void 0:g.nextTick))return g.nextTick.bind(g);const e=Promise.resolve();return t=>e.then(t)}()}).call(this,n("c8ba"),n("f28c"))},c317:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return a}));var r=n("30db");let i;if(void 0!==r.a.vscode&&void 0!==r.a.vscode.process){const e=r.a.vscode.process;i={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd(){return e.cwd()},nextTick(e){return Object(r.e)(e)}}}else i=void 0!==e?{get platform(){return e.platform},get arch(){return e.arch},get env(){return Object({NODE_ENV:"production",VUE_APP_ENV:"production",VUE_APP_TITLE:"CRMEB",VUE_APP_API_URL:"",VUE_APP_WS_KEFU_URL:"",VUE_APP_WS_ADMIN_URL:"",BASE_URL:"/admin/"})},cwd(){return Object({NODE_ENV:"production",VUE_APP_ENV:"production",VUE_APP_TITLE:"CRMEB",VUE_APP_API_URL:"",VUE_APP_WS_KEFU_URL:"",VUE_APP_WS_ADMIN_URL:"",BASE_URL:"/admin/"}).VSCODE_CWD||e.cwd()},nextTick(t){return e.nextTick(t)}}:{get platform(){return r.d?"win32":r.b?"darwin":"linux"},get arch(){},nextTick(e){return Object(r.e)(e)},get env(){return{}},cwd(){return"/"}};const o=i.cwd,s=i.env,a=i.platform}).call(this,n("f28c"))},c623:function(e,t,n){"use strict";(function(e){var r,i;function o(e){var t;return(i[e]||(t=i[e]={exports:{}},r[e](t,t.exports,o),t)).exports}n.d(t,"a",(function(){return s})),r={470:t=>{function n(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function r(e,t){for(var n,r="",i=0,o=-1,s=0,a=0;a<=e.length;++a){if(a<e.length)n=e.charCodeAt(a);else{if(47===n)break;n=47}if(47===n){if(o!==a-1&&1!==s)if(o!==a-1&&2===s){if(r.length<2||2!==i||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(2<r.length){var u=r.lastIndexOf("/");if(u!==r.length-1){i=-1===u?(r="",0):(r=r.slice(0,u)).length-1-r.lastIndexOf("/"),o=a,s=0;continue}}else if(2===r.length||1===r.length){r="",o=a,s=i=0;continue}t&&(0<r.length?r+="/..":r="..",i=2)}else 0<r.length?r+="/"+e.slice(o+1,a):r=e.slice(o+1,a),i=a-o-1;o=a,s=0}else 46===n&&-1!==s?++s:s=-1}return r}var i={resolve:function(){for(var t,i="",o=!1,s=arguments.length-1;-1<=s&&!o;s--){var a=0<=s?arguments[s]:t=void 0===t?e.cwd():t;n(a),0!==a.length&&(i=a+"/"+i,o=47===a.charCodeAt(0))}return i=r(i,!o),o?0<i.length?"/"+i:"/":0<i.length?i:"."},normalize:function(e){var t,i;return n(e),0===e.length?".":(t=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1),0<(e=0!==(e=r(e,!t)).length||t?e:".").length&&i&&(e+="/"),t?"/"+e:e)},isAbsolute:function(e){return n(e),0<e.length&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var r=arguments[t];n(r),0<r.length&&(void 0===e?e=r:e+="/"+r)}return void 0===e?".":i.normalize(e)},relative:function(e,t){if(n(e),n(t),e===t)return"";if((e=i.resolve(e))===(t=i.resolve(t)))return"";for(var r=1;r<e.length&&47===e.charCodeAt(r);++r);for(var o=e.length,s=o-r,a=1;a<t.length&&47===t.charCodeAt(a);++a);for(var u=t.length-a,l=s<u?s:u,h=-1,c=0;c<=l;++c){if(c===l){if(l<u){if(47===t.charCodeAt(a+c))return t.slice(a+c+1);if(0===c)return t.slice(a+c)}else l<s&&(47===e.charCodeAt(r+c)?h=c:0===c&&(h=0));break}var f=e.charCodeAt(r+c);if(f!==t.charCodeAt(a+c))break;47===f&&(h=c)}var d="";for(c=r+h+1;c<=o;++c)c!==o&&47!==e.charCodeAt(c)||(0===d.length?d+="..":d+="/..");return 0<d.length?d+t.slice(a+h):(47===t.charCodeAt(a+=h)&&++a,t.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(n(e),0===e.length)return".";for(var t=47===e.charCodeAt(0),r=-1,i=!0,o=e.length-1;1<=o;--o)if(47===e.charCodeAt(o)){if(!i){r=o;break}}else i=!1;return-1===r?t?"/":".":t&&1===r?"//":e.slice(0,r)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');n(e);var r=0,i=-1,o=!0;if(void 0!==t&&0<t.length&&t.length<=e.length){if(t.length===e.length&&t===e)return"";for(var s=t.length-1,a=-1,u=e.length-1;0<=u;--u){var l=e.charCodeAt(u);if(47===l){if(!o){r=u+1;break}}else-1===a&&(o=!1,a=u+1),0<=s&&(l===t.charCodeAt(s)?-1==--s&&(i=u):(s=-1,i=a))}return r===i?i=a:-1===i&&(i=e.length),e.slice(r,i)}for(u=e.length-1;0<=u;--u)if(47===e.charCodeAt(u)){if(!o){r=u+1;break}}else-1===i&&(o=!1,i=u+1);return-1===i?"":e.slice(r,i)},extname:function(e){n(e);for(var t=-1,r=0,i=-1,o=!0,s=0,a=e.length-1;0<=a;--a){var u=e.charCodeAt(a);if(47!==u)-1===i&&(o=!1,i=a+1),46===u?-1===t?t=a:1!==s&&(s=1):-1!==t&&(s=-1);else if(!o){r=a+1;break}}return-1===t||-1===i||0===s||1===s&&t===i-1&&t===r+1?"":e.slice(t,i)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return t=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||""),t?t===e.root?t+n:t+"/"+n:n;var t,n},parse:function(e){n(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0!==e.length){for(var r,i=47===e.charCodeAt(0),o=i?(t.root="/",1):0,s=-1,a=0,u=-1,l=!0,h=e.length-1,c=0;o<=h;--h)if(47!==(r=e.charCodeAt(h)))-1===u&&(l=!1,u=h+1),46===r?-1===s?s=h:1!==c&&(c=1):-1!==s&&(c=-1);else if(!l){a=h+1;break}-1===s||-1===u||0===c||1===c&&s===u-1&&s===a+1?-1!==u&&(t.base=t.name=0===a&&i?e.slice(1,u):e.slice(a,u)):(0===a&&i?(t.name=e.slice(1,s),t.base=e.slice(1,u)):(t.name=e.slice(a,s),t.base=e.slice(a,u)),t.ext=e.slice(s,u)),0<a?t.dir=e.slice(0,a-1):i&&(t.dir="/")}return t},sep:"/",delimiter:":",win32:null,posix:null};i.posix=i,t.exports=i},447:(t,n,r)=>{var i;r.r(n),r.d(n,{URI:()=>d,Utils:()=>N}),"object"==typeof e?i="win32"===e.platform:"object"==typeof navigator&&(i=0<=navigator.userAgent.indexOf("Windows")),o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};var o,s,a,u=/^\w[\w\d+.-]*$/,l=/^\//,h=/^\/\//,c="/",f=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,d=(b.isUri=function(e){return e instanceof b||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"function"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString},Object.defineProperty(b.prototype,"fsPath",{get:function(){return S(this,!1)},enumerable:!1,configurable:!0}),b.prototype.with=function(e){var t,n,r,i;return e&&(t=e.scheme,n=e.authority,r=e.path,i=e.query,e=e.fragment,void 0===t?t=this.scheme:null===t&&(t=""),void 0===n?n=this.authority:null===n&&(n=""),void 0===r?r=this.path:null===r&&(r=""),void 0===i?i=this.query:null===i&&(i=""),void 0===e?e=this.fragment:null===e&&(e=""),t!==this.scheme||n!==this.authority||r!==this.path||i!==this.query||e!==this.fragment)?new g(t,n,r,i,e):this},b.parse=function(e,t){return void 0===t&&(t=!1),e=f.exec(e),e?new g(e[2]||"",E(e[4]||""),E(e[5]||""),E(e[7]||""),E(e[9]||""),t):new g("","","","","")},b.file=function(e){var t,n="";return(e=i?e.replace(/\\/g,c):e)[0]===c&&e[1]===c&&(e=-1===(t=e.indexOf(c,2))?(n=e.substring(2),c):(n=e.substring(2,t),e.substring(t)||c)),new g("file",n,e,"","")},b.from=function(e){return new g(e.scheme,e.authority,e.path,e.query,e.fragment)},b.prototype.toString=function(e){return A(this,e=void 0!==e&&e)},b.prototype.toJSON=function(){return this},b.revive=function(e){var t;return e&&(e instanceof b?e:((t=new g(e))._formatted=e.external,t._fsPath=e._sep===m?e.fsPath:null,t))},b),m=i?1:void 0,g=(o(a=v,n=s=d),a.prototype=null===n?Object.create(n):(y.prototype=n.prototype,new y),Object.defineProperty(v.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=S(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),v.prototype.toString=function(e){return(e=void 0!==e&&e)?A(this,!0):(this._formatted||(this._formatted=A(this,!1)),this._formatted)},v.prototype.toJSON=function(){var e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=m),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e},v),p=((n={})[58]="%3A",n[47]="%2F",n[63]="%3F",n[35]="%23",n[91]="%5B",n[93]="%5D",n[64]="%40",n[33]="%21",n[36]="%24",n[38]="%26",n[39]="%27",n[40]="%28",n[41]="%29",n[42]="%2A",n[43]="%2B",n[44]="%2C",n[59]="%3B",n[61]="%3D",n[32]="%20",n);function v(){var e=null!==s&&s.apply(this,arguments)||this;return e._formatted=null,e._fsPath=null,e}function y(){this.constructor=a}function b(e,t,n,r,i,o){if(void 0===o&&(o=!1),"object"==typeof e)this.scheme=e.scheme||"",this.authority=e.authority||"",this.path=e.path||"",this.query=e.query||"",this.fragment=e.fragment||"";else{if(this.scheme=e||o?e:"file",this.authority=t||"",this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==c&&(t=c+t):t=c}return t}(this.scheme,n||""),this.query=r||"",this.fragment=i||"",e=this,t=o,!e.scheme&&t)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+e.authority+'", path: "'+e.path+'", query: "'+e.query+'", fragment: "'+e.fragment+'"}');if(e.scheme&&!u.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!l.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(h.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function _(e,t){for(var n=void 0,r=-1,i=0;i<e.length;i++){var o=e.charCodeAt(i);97<=o&&o<=122||65<=o&&o<=90||48<=o&&o<=57||45===o||46===o||95===o||126===o||t&&47===o?(-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),void 0!==n&&(n+=e.charAt(i))):(void 0===n&&(n=e.substr(0,i)),void 0!==(o=p[o])?(-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),n+=o):-1===r&&(r=i))}return-1!==r&&(n+=encodeURIComponent(e.substring(r))),void 0!==n?n:e}function C(e){for(var t=void 0,n=0;n<e.length;n++){var r=e.charCodeAt(n);35===r||63===r?(void 0===t&&(t=e.substr(0,n)),t+=p[r]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function S(e,t){return t=e.authority&&1<e.path.length&&"file"===e.scheme?"//"+e.authority+e.path:47===e.path.charCodeAt(0)&&(65<=e.path.charCodeAt(1)&&e.path.charCodeAt(1)<=90||97<=e.path.charCodeAt(1)&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,i?t.replace(/\//g,"\\"):t}function A(e,t){var n,r,i=t?C:_,o="",s=e.scheme,a=e.authority,u=e.path,l=e.query;e=e.fragment;return s&&(o=o+s+":"),!a&&"file"!==s||(o=o+c+c),a&&(-1!==(s=a.indexOf("@"))&&(n=a.substr(0,s),a=a.substr(s+1),-1===(s=n.indexOf(":"))?o+=i(n,!1):o=(o=o+i(n.substr(0,s),!1)+":")+i(n.substr(s+1),!1),o+="@"),-1===(s=(a=a.toLowerCase()).indexOf(":"))?o+=i(a,!1):o=(o+=i(a.substr(0,s),!1))+a.substr(s)),u&&(3<=u.length&&47===u.charCodeAt(0)&&58===u.charCodeAt(2)?65<=(r=u.charCodeAt(1))&&r<=90&&(u="/"+String.fromCharCode(r+32)+":"+u.substr(3)):2<=u.length&&58===u.charCodeAt(1)&&65<=(r=u.charCodeAt(0))&&r<=90&&(u=String.fromCharCode(r+32)+":"+u.substr(2)),o+=i(u,!0)),l&&(o=(o+="?")+i(l,!1)),e?(o+="#")+(t?e:_(e,!1)):o}var x=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function E(e){return e.match(x)?e.replace(x,(function t(n){try{return decodeURIComponent(n)}catch(e){return 3<n.length?n.substr(0,3)+t(n.substr(3)):n}})):e}function w(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r}n=r(470);var N,L=n.posix||n;(r=N=N||{}).joinPath=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return e.with({path:L.join.apply(L,w([e.path],t))})},r.resolvePath=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=e.path||"/";return e.with({path:L.resolve.apply(L,w([r],t))})},r.dirname=function(e){var t=L.dirname(e.path);return 1===t.length&&46===t.charCodeAt(0)?e:e.with({path:t})},r.basename=function(e){return L.basename(e.path)},r.extname=function(e){return L.extname(e.path)}}},i={},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};const s=o(447)["URI"]}).call(this,n("f28c"))},c8ba:function(e,t){var n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},f19f:function(e,t,n){"use strict";n.r(t);const r=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{if(e.stack)throw new Error(e.message+"\n\n"+e.stack);throw e},0)}}emit(e){this.listeners.forEach(t=>{t(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function i(e){var t,n;return e instanceof Error?(({name:t,message:n}=e),{$isError:!0,name:t,message:n,stack:e.stacktrace||e.stack}):e}const o="Canceled";function s(e){return e instanceof Error&&e.name===o&&e.message===o}var a;Error;{var u=a=a||{};u.is=function(e){return e&&"object"==typeof e&&"function"==typeof e[Symbol.iterator]};const e=Object.freeze([]);u.empty=function(){return e},u.single=function*(e){yield e},u.from=function(t){return t||e},u.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},u.first=function(e){return e[Symbol.iterator]().next().value},u.some=function(e,t){for(const n of e)if(t(n))return!0;return!1},u.find=function(e,t){for(const n of e)if(t(n))return n},u.filter=function*(e,t){for(const n of e)t(n)&&(yield n)},u.map=function*(e,t){let n=0;for(const r of e)yield t(r,n++)},u.concat=function*(...e){for(const t of e)for(const e of t)yield e},u.concatNested=function*(e){for(const t of e)for(const e of t)yield e},u.reduce=function(e,t,n){let r=n;for(const i of e)r=t(r,i);return r},u.slice=function*(e,t,n=e.length){for(t<0&&(t+=e.length),n<0?n+=e.length:n>e.length&&(n=e.length);t<n;t++)yield e[t]},u.consume=function(e,t=Number.POSITIVE_INFINITY){const n=[];if(0===t)return[n,e];const r=e[Symbol.iterator]();for(let o=0;o<t;o++){var i=r.next();if(i.done)return[n,u.empty()];n.push(i.value)}return[n,{[Symbol.iterator](){return r}}]},u.equals=function(e,t,n=((e,t)=>e===t)){const r=e[Symbol.iterator](),i=t[Symbol.iterator]();for(;;){var o=r.next(),s=i.next();if(o.done!==s.done)return!1;if(o.done)return!0;if(!n(o.value,s.value))return!1}}}let l=null;function h(e){return null!==l&&void 0!==l&&l.trackDisposable(e),e}function c(e){null!==l&&void 0!==l&&l.markAsDisposed(e)}function f(e,t){null!==l&&void 0!==l&&l.setParent(e,t)}class d extends Error{constructor(e){super(`Encountered errors while disposing of store. Errors: [${e.join(", ")}]`),this.errors=e}}function m(e){if(a.is(e)){let t=[];for(const n of e)if(n)try{n.dispose()}catch(e){t.push(e)}if(1===t.length)throw t[0];if(1<t.length)throw new d(t);return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function g(...e){var t=p(()=>m(e)),n=e,r=t;if(l)for(const i of n)l.setParent(i,r);return t}function p(e){const t=h({dispose:function(e){const t=this;let n,r=!1;return function(){return r||(r=!0,n=e.apply(t,arguments)),n}}(()=>{c(t),e()})});return t}class v{constructor(){this._toDispose=new Set,this._isDisposed=!1,h(this)}dispose(){this._isDisposed||(c(this),this._isDisposed=!0,this.clear())}clear(){try{m(this._toDispose.values())}finally{this._toDispose.clear()}}add(e){if(e){if(e===this)throw new Error("Cannot register a disposable on itself!");f(e,this),this._isDisposed||this._toDispose.add(e)}return e}}v.DISABLE_DISPOSED_WARNING=!1;class y{constructor(){this._store=new v,h(this),f(this._store,this)}dispose(){c(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}y.None=Object.freeze({dispose(){}});var b=n("30db");function _(e){const t=[];for(const n of function(e){let t=[],n=Object.getPrototypeOf(e);for(;Object.prototype!==n;)t=t.concat(Object.getOwnPropertyNames(n)),n=Object.getPrototypeOf(n);return t}(e))"function"==typeof e[n]&&t.push(n);return t}function C(e,t){let n={};for(const r of e)n[r]=(e=>function(){var n=Array.prototype.slice.call(arguments,0);return t(e,n)})(r);return n}const S="$initialize";class A{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null)}setWorkerId(e){this._workerId=e}sendMessage(e,t){let n=String(++this._lastSentReq);return new Promise((r,i)=>{this._pendingReplies[n]={resolve:r,reject:i},this._send({vsWorker:this._workerId,req:n,method:e,args:t})})}handleMessage(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}_handleMessage(e){if(e.seq){var t=e;if(!this._pendingReplies[t.seq])return;let n=this._pendingReplies[t.seq];if(delete this._pendingReplies[t.seq],t.err){let e=t.err;return t.err.$isError&&((e=new Error).name=t.err.name,e.message=t.err.message,e.stack=t.err.stack),void n.reject(e)}n.resolve(t.res)}else{let t=e.req,n=this._handler.handleMessage(e.method,e.args);n.then(e=>{this._send({vsWorker:this._workerId,seq:t,res:e,err:void 0})},e=>{e.detail instanceof Error&&(e.detail=i(e.detail)),this._send({vsWorker:this._workerId,seq:t,res:void 0,err:i(e)})})}}_send(e){let t=[];if(e.req){var n=e;for(let e=0;e<n.args.length;e++)n.args[e]instanceof ArrayBuffer&&t.push(n.args[e])}else{var r=e;r.res instanceof ArrayBuffer&&t.push(r.res)}this._handler.sendMessage(e,t)}}class x{constructor(e,t){this._requestHandlerFactory=t,this._requestHandler=null,this._protocol=new A({sendMessage:(t,n)=>{e(t,n)},handleMessage:(e,t)=>this._handleMessage(e,t)})}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,t){if(e===S)return this.initialize(t[0],t[1],t[2],t[3]);if(!this._requestHandler||"function"!=typeof this._requestHandler[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._requestHandler[e].apply(this._requestHandler,t))}catch(e){return Promise.reject(e)}}initialize(e,t,n,r){this._protocol.setWorkerId(e);const i=C(r,(e,t)=>this._protocol.sendMessage(e,t));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(i),Promise.resolve(_(this._requestHandler))):(t&&(void 0!==t.baseUrl&&delete t.baseUrl,void 0!==t.paths&&void 0!==t.paths.vs&&delete t.paths.vs,t.trustedTypesPolicy,delete t.trustedTypesPolicy,t.catchError=!0,self.require.config(t)),new Promise((e,t)=>{self.require([n],n=>{this._requestHandler=n.create(i),this._requestHandler?e(_(this._requestHandler)):t(new Error("No RequestHandler!"))},t)}))}}class E{constructor(e,t,n,r){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=r}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function w(e,t=e.length-1){for(let r=t;0<=r;r--){var n=e.charCodeAt(r);if(32!==n&&9!==n)return r}return-1}function N(e){return 55296<=e&&e<=56319}function L(e){return 56320<=e&&e<=57343}function k(e,t){return t-56320+(e-55296<<10)+65536}String.fromCharCode(65279);class T{constructor(){this._data=JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}static getInstance(){return T._INSTANCE||(T._INSTANCE=new T),T._INSTANCE}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(!(e<127)){var t=this._data,n=t.length/3;let r=1;for(;r<=n;)if(e<t[3*r])r*=2;else{if(!(e>t[3*r+1]))return t[3*r+2];r=2*r+1}}return 0}}function O(e,t){return(t<<5)-t+e|0}function P(e,t){t=O(149417,t);for(let n=0,r=e.length;n<r;n++)t=O(e.charCodeAt(n),t);return t}function I(e,t,n=32){return n-=t,(e<<t|(~((1<<n)-1)&e)>>>n)>>>0}function M(e,t=0,n=e.byteLength,r=0){for(let i=0;i<n;i++)e[t+i]=r}function j(e,t=32){if(e instanceof ArrayBuffer)return Array.from(new Uint8Array(e)).map(e=>e.toString(16).padStart(2,"0")).join("");for(var[n,r,i="0"]=[(e>>>0).toString(16),t/4];n.length<r;)n=i+n;return n}T._INSTANCE=null,class e{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){var t=e.length;if(0!==t){var n=this._buff;let i,o,s=this._buffLen,a=this._leftoverHighSurrogate;for(0!==a?(i=a,o=-1,a=0):(i=e.charCodeAt(0),o=0);;){let u=i;if(N(i)){if(!(o+1<t)){a=i;break}var r=e.charCodeAt(o+1);u=L(r)?(o++,k(i,r)):65533}else L(i)&&(u=65533);if(s=this._push(n,s,u),!(++o<t))break;i=e.charCodeAt(o)}this._buffLen=s,this._leftoverHighSurrogate=a}}_push(e,t,n){return n<128?e[t++]=n:(n<2048?e[t++]=192|(1984&n)>>>6:(n<65536?e[t++]=224|(61440&n)>>>12:(e[t++]=240|(1835008&n)>>>18,e[t++]=128|(258048&n)>>>12),e[t++]=128|(4032&n)>>>6),e[t++]=128|(63&n)>>>0),64<=t&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),j(this._h0)+j(this._h1)+j(this._h2)+j(this._h3)+j(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,M(this._buff,this._buffLen),56<this._buffLen&&(this._step(),M(this._buff));var e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const t=e._bigBlock32,n=this._buffDV;for(let e=0;e<64;e+=4)t.setUint32(e,n.getUint32(e,!1),!1);for(let e=64;e<320;e+=4)t.setUint32(e,I(t.getUint32(e-12,!1)^t.getUint32(e-32,!1)^t.getUint32(e-56,!1)^t.getUint32(e-64,!1),1),!1);let r,i,o=this._h0,s=this._h1,a=this._h2,u=this._h3,l=this._h4;var h;for(let e=0;e<80;e++)i=e<20?(r=s&a|~s&u,1518500249):e<40?(r=s^a^u,1859775393):e<60?(r=s&a|s&u|a&u,2400959708):(r=s^a^u,3395469782),h=I(o,5)+r+l+i+t.getUint32(4*e,!1)&4294967295,l=u,u=a,a=I(s,30),s=o,o=h;this._h0=this._h0+o&4294967295,this._h1=this._h1+s&4294967295,this._h2=this._h2+a&4294967295,this._h3=this._h3+u&4294967295,this._h4=this._h4+l&4294967295}}._bigBlock32=new DataView(new ArrayBuffer(320));class D{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let n=0,r=e.length;n<r;n++)t[n]=e.charCodeAt(n);return t}}class R{static Assert(e,t){if(!e)throw new Error(t)}}class U{static Copy(e,t,n,r,i){for(let o=0;o<i;o++)n[r+o]=e[t+o]}static Copy2(e,t,n,r,i){for(let o=0;o<i;o++)n[r+o]=e[t+o]}}class V{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(0<this.m_originalCount||0<this.m_modifiedCount)&&this.m_changes.push(new E(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(0<this.m_originalCount||0<this.m_modifiedCount)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(0<this.m_originalCount||0<this.m_modifiedCount)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class F{constructor(e,t,n=null){this.ContinueProcessingPredicate=n,this._originalSequence=e,this._modifiedSequence=t;var[n,e,r]=F._getElements(e),[t,i,o]=F._getElements(t);this._hasStrings=r&&o,this._originalStringElements=n,this._originalElementsOrHash=e,this._modifiedStringElements=t,this._modifiedElementsOrHash=i,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return 0<e.length&&"string"==typeof e[0]}static _getElements(e){var t=e.getElements();if(F._isStringArray(t)){const e=new Int32Array(t.length);for(let n=0,r=t.length;n<r;n++)e[n]=P(t[n],0);return[t,e,!0]}return t instanceof Int32Array?[[],t,!1]:[[],new Int32Array(t),!1]}ElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[t])}ElementsAreStrictEqual(e,t){return!!this.ElementsAreEqual(e,t)&&F._getStrictElement(this._originalSequence,e)===F._getStrictElement(this._modifiedSequence,t)}static _getStrictElement(e,t){return"function"==typeof e.getStrictElement?e.getStrictElement(t):null}OriginalElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._originalElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[t])}ModifiedElementsAreEqual(e,t){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[t])}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,t,n,r,i){var o=[!1];let s=this.ComputeDiffRecursive(e,t,n,r,o);return i&&(s=this.PrettifyChanges(s)),{quitEarly:o[0],changes:s}}ComputeDiffRecursive(e,t,n,r,i){for(i[0]=!1;e<=t&&n<=r&&this.ElementsAreEqual(e,n);)e++,n++;for(;e<=t&&n<=r&&this.ElementsAreEqual(t,r);)t--,r--;if(t<e||r<n){let i;return i=n<=r?(R.Assert(e===t+1,"originalStart should only be one more than originalEnd"),[new E(e,0,n,r-n+1)]):e<=t?(R.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),[new E(e,t-e+1,n,0)]):(R.Assert(e===t+1,"originalStart should only be one more than originalEnd"),R.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),[])}var o=[0],s=[0],a=this.ComputeRecursionPoint(e,t,n,r,o,s,i);o=o[0],s=s[0];if(null!==a)return a;if(i[0])return[new E(e,t-e+1,n,r-n+1)];{a=this.ComputeDiffRecursive(e,o,n,s,i);let u=[];return u=i[0]?[new E(o+1,t-(o+1)+1,s+1,r-(s+1)+1)]:this.ComputeDiffRecursive(o+1,t,s+1,r,i),this.ConcatenateChanges(a,u)}}WALKTRACE(e,t,n,r,i,o,s,a,u,l,h,c,f,d,m,g,p,v){let y=null,b=new V,_=t,C=n,S=f[0]-g[0]-r,A=-1073741824,x=this.m_forwardHistory.length-1;do{var w=S+e;S=w===_||w<C&&u[w-1]<u[w+1]?(d=(h=u[w+1])-S-r,h<A&&b.MarkNextChange(),A=h,b.AddModifiedElement(h+1,d),w+1-e):(d=(h=u[w-1]+1)-S-r,h<A&&b.MarkNextChange(),A=h-1,b.AddOriginalElement(h,d+1),w-1-e),0<=x&&(e=(u=this.m_forwardHistory[x])[0],_=1,C=u.length-1)}while(-1<=--x);if(t=b.getReverseChanges(),v[0]){let e=f[0]+1,n=g[0]+1;if(null!==t&&0<t.length){const r=t[t.length-1];e=Math.max(e,r.getOriginalEnd()),n=Math.max(n,r.getModifiedEnd())}y=[new E(e,c-e+1,n,m-n+1)]}else{b=new V,_=o,C=s,S=f[0]-g[0]-a,A=1073741824,x=p?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{var N=S+i;S=N===_||N<C&&l[N-1]>=l[N+1]?(d=(h=l[N+1]-1)-S-a,h>A&&b.MarkNextChange(),A=h+1,b.AddOriginalElement(h+1,d+1),N+1-i):(d=(h=l[N-1])-S-a,h>A&&b.MarkNextChange(),A=h,b.AddModifiedElement(h+1,d+1),N-1-i),0<=x&&(i=(l=this.m_reverseHistory[x])[0],_=1,C=l.length-1)}while(-1<=--x);y=b.getChanges()}return this.ConcatenateChanges(t,y)}ComputeRecursionPoint(e,t,n,r,i,o,s){let a=0,u=0,l=0,h=0,c=0,f=0;e--,n--,o[i[0]=0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];var d=t-e+(r-n),m=1+d;const g=new Int32Array(m),p=new Int32Array(m);var v=r-n,y=t-e,b=e-n,_=t-r,C=(y-v)%2==0;g[v]=e,p[y]=t,s[0]=!1;for(let w=1;w<=d/2+1;w++){let d=0,N=0;l=this.ClipDiagonalBound(v-w,w,v,m),h=this.ClipDiagonalBound(v+w,w,v,m);for(let e=l;e<=h;e+=2){a=e===l||e<h&&g[e-1]<g[e+1]?g[e+1]:g[e-1]+1,u=a-(e-v)-b;for(var S=a;a<t&&u<r&&this.ElementsAreEqual(a+1,u+1);)a++,u++;if((g[e]=a)+u>d+N&&(d=a,N=u),!C&&Math.abs(e-y)<=w-1&&a>=p[e])return i[0]=a,o[0]=u,S<=p[e]&&w<=1448?this.WALKTRACE(v,l,h,b,y,c,f,_,g,p,a,t,i,u,r,o,C,s):null}var A=(d-e+(N-n)-w)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(d,A))return s[0]=!0,i[0]=d,o[0]=N,0<A&&w<=1448?this.WALKTRACE(v,l,h,b,y,c,f,_,g,p,a,t,i,u,r,o,C,s):(e++,n++,[new E(e,t-e+1,n,r-n+1)]);c=this.ClipDiagonalBound(y-w,w,y,m),f=this.ClipDiagonalBound(y+w,w,y,m);for(let m=c;m<=f;m+=2){a=m===c||m<f&&p[m-1]>=p[m+1]?p[m+1]-1:p[m-1],u=a-(m-y)-_;for(var x=a;a>e&&u>n&&this.ElementsAreEqual(a,u);)a--,u--;if(p[m]=a,C&&Math.abs(m-v)<=w&&a<=g[m])return i[0]=a,o[0]=u,x>=g[m]&&w<=1448?this.WALKTRACE(v,l,h,b,y,c,f,_,g,p,a,t,i,u,r,o,C,s):null}if(w<=1447){let e=new Int32Array(h-l+2);e[0]=v-l+1,U.Copy2(g,l,e,1,h-l+1),this.m_forwardHistory.push(e),(e=new Int32Array(f-c+2))[0]=y-c+1,U.Copy2(p,c,e,1,f-c+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(v,l,h,b,y,c,f,_,g,p,a,t,i,u,r,o,C,s)}PrettifyChanges(e){for(let b=0;b<e.length;b++){const a=e[b];for(var t=b<e.length-1?e[b+1].originalStart:this._originalElementsOrHash.length,n=b<e.length-1?e[b+1].modifiedStart:this._modifiedElementsOrHash.length,r=0<a.originalLength,i=0<a.modifiedLength;a.originalStart+a.originalLength<t&&a.modifiedStart+a.modifiedLength<n&&(!r||this.OriginalElementsAreEqual(a.originalStart,a.originalStart+a.originalLength))&&(!i||this.ModifiedElementsAreEqual(a.modifiedStart,a.modifiedStart+a.modifiedLength));){var o=this.ElementsAreStrictEqual(a.originalStart,a.modifiedStart);if(this.ElementsAreStrictEqual(a.originalStart+a.originalLength,a.modifiedStart+a.modifiedLength)&&!o)break;a.originalStart++,a.modifiedStart++}var s=[null];b<e.length-1&&this.ChangesOverlap(e[b],e[b+1],s)&&(e[b]=s[0],e.splice(b+1,1),b--)}for(let b=e.length-1;0<=b;b--){const t=e[b];let n=0,r=0;0<b&&(c=e[b-1],n=c.originalStart+c.originalLength,r=c.modifiedStart+c.modifiedLength);var a=0<t.originalLength,u=0<t.modifiedLength;let i=0,o=this._boundaryScore(t.originalStart,t.originalLength,t.modifiedStart,t.modifiedLength);for(let e=1;;e++){var l=t.originalStart-e,h=t.modifiedStart-e;if(l<n||h<r)break;if(a&&!this.OriginalElementsAreEqual(l,l+t.originalLength))break;if(u&&!this.ModifiedElementsAreEqual(h,h+t.modifiedLength))break;l=(l===n&&h===r?5:0)+this._boundaryScore(l,t.originalLength,h,t.modifiedLength),l>o&&(o=l,i=e)}t.originalStart-=i,t.modifiedStart-=i;var c=[null];0<b&&this.ChangesOverlap(e[b-1],e[b],c)&&(e[b-1]=c[0],e.splice(b,1),b++)}if(this._hasStrings)for(let b=1,_=e.length;b<_;b++){const t=e[b-1],n=e[b];var f=n.originalStart-t.originalStart-t.originalLength,d=t.originalStart,m=n.originalStart+n.originalLength,g=m-d,p=t.modifiedStart,v=n.modifiedStart+n.modifiedLength,y=v-p;f<5&&g<20&&y<20&&(d=this._findBetterContiguousSequence(d,g,p,y,f))&&([g,p]=d,g===t.originalStart+t.originalLength&&p===t.modifiedStart+t.modifiedLength||(t.originalLength=g-t.originalStart,t.modifiedLength=p-t.modifiedStart,n.originalStart=g+f,n.modifiedStart=p+f,n.originalLength=m-n.originalStart,n.modifiedLength=v-n.modifiedStart))}return e}_findBetterContiguousSequence(e,t,n,r,i){if(t<i||r<i)return null;var o=e+t-i+1,s=n+r-i+1;let a=0,u=0,l=0;for(let c=e;c<o;c++)for(let e=n;e<s;e++){var h=this._contiguousSequenceScore(c,e,i);0<h&&h>a&&(a=h,u=c,l=e)}return 0<a?[u,l]:null}_contiguousSequenceScore(e,t,n){let r=0;for(let i=0;i<n;i++){if(!this.ElementsAreEqual(e+i,t+i))return 0;r+=this._originalStringElements[e+i].length}return r}_OriginalIsBoundary(e){return e<=0||e>=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){return!(!this._OriginalIsBoundary(e)&&!this._OriginalIsBoundary(e-1))||!!(0<t&&(e+=t,this._OriginalIsBoundary(e-1)||this._OriginalIsBoundary(e)))}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){return!(!this._ModifiedIsBoundary(e)&&!this._ModifiedIsBoundary(e-1))||!!(0<t&&(e+=t,this._ModifiedIsBoundary(e-1)||this._ModifiedIsBoundary(e)))}_boundaryScore(e,t,n,r){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(n,r)?1:0)}ConcatenateChanges(e,t){var n=[];if(0===e.length||0===t.length)return 0<t.length?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){const r=new Array(e.length+t.length-1);return U.Copy(e,0,r,0,e.length-1),r[e.length-1]=n[0],U.Copy(t,1,r,e.length,t.length-1),r}return n=new Array(e.length+t.length),U.Copy(e,0,n,0,e.length),U.Copy(t,0,n,e.length,t.length),n}ChangesOverlap(e,t,n){if(R.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),R.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){var r=e.originalStart;let o=e.originalLength;var i=e.modifiedStart;let s=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(o=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(s=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new E(r,o,i,s),!0}return n[0]=null,!1}ClipDiagonalBound(e,t,n,r){return 0<=e&&e<r?e:(t=t%2==0,e<0?t==(n%2==0)?0:1:t==((r-n-1)%2==0)?r-1:r-2)}}var q=n("c317");class $ extends Error{constructor(e,t,n){let r;"string"==typeof t&&0===t.indexOf("not ")?(r="must not be",t=t.replace(/^not /,"")):r="must be";var i=-1!==e.indexOf(".")?"property":"argument";e=`The "${e}" ${i} ${r} of type `+t;super(e+=". Received type "+typeof n),this.code="ERR_INVALID_ARG_TYPE"}}function K(e,t){if("string"!=typeof e)throw new $(t,"string",e)}function B(e){return 47===e||92===e}function W(e){return 47===e}function Y(e){return 65<=e&&e<=90||97<=e&&e<=122}function H(e,t,n,r){let i="",o=0,s=-1,a=0,u=0;for(let h=0;h<=e.length;++h){if(h<e.length)u=e.charCodeAt(h);else{if(r(u))break;u=47}if(r(u)){if(s!==h-1&&1!==a)if(2===a){if(i.length<2||2!==o||46!==i.charCodeAt(i.length-1)||46!==i.charCodeAt(i.length-2)){if(2<i.length){var l=i.lastIndexOf(n);o=-1===l?(i="",0):(i=i.slice(0,l)).length-1-i.lastIndexOf(n),s=h,a=0;continue}if(0!==i.length){i="",o=0,s=h,a=0;continue}}t&&(i+=0<i.length?n+"..":"..",o=2)}else 0<i.length?i+=""+n+e.slice(s+1,h):i=e.slice(s+1,h),o=h-s-1;s=h,a=0}else 46===u&&-1!==a?++a:a=-1}return i}function z(e,t){if(null===t||"object"!=typeof t)throw new $("pathObject","Object",t);var n=t.dir||t.root,r=t.base||""+(t.name||"")+(t.ext||"");return n?n===t.root?""+n+r:""+n+e+r:r}const J={resolve(...e){let t="",n="",r=!1;for(let a=e.length-1;-1<=a;a--){let u;if(0<=a){if(K(u=e[a],"path"),0===u.length)continue}else 0===t.length?u=q.a():(void 0===(u=q.b["="+t]||q.a())||u.slice(0,2).toLowerCase()!==t.toLowerCase()&&92===u.charCodeAt(2))&&(u=t+"\\");var i=u.length;let l=0,h="",c=!1;var o=u.charCodeAt(0);if(1===i)B(o)&&(l=1,c=!0);else if(B(o))if(c=!0,B(u.charCodeAt(1))){let e=2,t=e;for(;e<i&&!B(u.charCodeAt(e));)e++;if(e<i&&e!==t){var s=u.slice(t,e);for(t=e;e<i&&B(u.charCodeAt(e));)e++;if(e<i&&e!==t){for(t=e;e<i&&!B(u.charCodeAt(e));)e++;e!==i&&e===t||(h=`\\\\${s}\\`+u.slice(t,e),l=e)}}}else l=1;else Y(o)&&58===u.charCodeAt(1)&&(h=u.slice(0,2),(l=2)<i&&B(u.charCodeAt(2))&&(c=!0,l=3));if(0<h.length)if(0<t.length){if(h.toLowerCase()!==t.toLowerCase())continue}else t=h;if(r){if(0<t.length)break}else if(n=u.slice(l)+"\\"+n,(r=c)&&0<t.length)break}return n=H(n,!r,"\\",B),r?t+"\\"+n:""+t+n||"."},normalize(e){K(e,"path");var t=e.length;if(0===t)return".";let n,r=0,i=!1;var o=e.charCodeAt(0);if(1===t)return W(o)?"\\":e;if(B(o))if(i=!0,B(e.charCodeAt(1))){let i=2,o=i;for(;i<t&&!B(e.charCodeAt(i));)i++;if(i<t&&i!==o){var s=e.slice(o,i);for(o=i;i<t&&B(e.charCodeAt(i));)i++;if(i<t&&i!==o){for(o=i;i<t&&!B(e.charCodeAt(i));)i++;if(i===t)return`\\\\${s}\\${e.slice(o)}\\`;i!==o&&(n=`\\\\${s}\\`+e.slice(o,i),r=i)}}}else r=1;else Y(o)&&58===e.charCodeAt(1)&&(n=e.slice(0,2),(r=2)<t&&B(e.charCodeAt(2))&&(i=!0,r=3));let a=r<t?H(e.slice(r),!i,"\\",B):"";return 0<(a=0!==a.length||i?a:".").length&&B(e.charCodeAt(t-1))&&(a+="\\"),void 0===n?i?"\\"+a:a:i?n+"\\"+a:""+n+a},isAbsolute(e){K(e,"path");var t,n=e.length;return 0!==n&&(B(t=e.charCodeAt(0))||2<n&&Y(t)&&58===e.charCodeAt(1)&&B(e.charCodeAt(2)))},join(...e){if(0===e.length)return".";let t,n;for(let a=0;a<e.length;++a){var r=e[a];K(r,"path"),0<r.length&&(void 0===t?t=n=r:t+="\\"+r)}if(void 0===t)return".";let i=!0,o=0;var s;if("string"==typeof n&&B(n.charCodeAt(0))&&(++o,1<(s=n.length)&&B(n.charCodeAt(1))&&(++o,2<s&&(B(n.charCodeAt(2))?++o:i=!1))),i){for(;o<t.length&&B(t.charCodeAt(o));)o++;2<=o&&(t="\\"+t.slice(o))}return J.normalize(t)},relative(e,t){if(K(e,"from"),K(t,"to"),e===t)return"";const n=J.resolve(e),r=J.resolve(t);if(n===r)return"";if((e=n.toLowerCase())===(t=r.toLowerCase()))return"";let i=0;for(;i<e.length&&92===e.charCodeAt(i);)i++;let o=e.length;for(;o-1>i&&92===e.charCodeAt(o-1);)o--;var s=o-i;let a=0;for(;a<t.length&&92===t.charCodeAt(a);)a++;let u=t.length;for(;u-1>a&&92===t.charCodeAt(u-1);)u--;var l=u-a,h=s<l?s:l;let c=-1,f=0;for(;f<h;f++){var d=e.charCodeAt(i+f);if(d!==t.charCodeAt(a+f))break;92===d&&(c=f)}if(f!==h){if(-1===c)return r}else{if(h<l){if(92===t.charCodeAt(a+f))return r.slice(a+f+1);if(2===f)return r.slice(a+f)}h<s&&(92===e.charCodeAt(i+f)?c=f:2===f&&(c=3)),-1===c&&(c=0)}let m="";for(f=i+c+1;f<=o;++f)f!==o&&92!==e.charCodeAt(f)||(m+=0===m.length?"..":"\\..");return a+=c,0<m.length?""+m+r.slice(a,u):(92===r.charCodeAt(a)&&++a,r.slice(a,u))},toNamespacedPath(e){if("string"==typeof e){if(0===e.length)return"";const n=J.resolve(e);if(!(n.length<=2))if(92===n.charCodeAt(0)){if(92===n.charCodeAt(1)){var t=n.charCodeAt(2);if(63!==t&&46!==t)return"\\\\?\\UNC\\"+n.slice(2)}}else if(Y(n.charCodeAt(0))&&58===n.charCodeAt(1)&&92===n.charCodeAt(2))return"\\\\?\\"+n}return e},dirname(e){K(e,"path");var t=e.length;if(0===t)return".";let n=-1,r=0;var i=e.charCodeAt(0);if(1===t)return B(i)?e:".";if(B(i)){if(n=r=1,B(e.charCodeAt(1))){let i=2,o=i;for(;i<t&&!B(e.charCodeAt(i));)i++;if(i<t&&i!==o){for(o=i;i<t&&B(e.charCodeAt(i));)i++;if(i<t&&i!==o){for(o=i;i<t&&!B(e.charCodeAt(i));)i++;if(i===t)return e;i!==o&&(n=r=i+1)}}}}else Y(i)&&58===e.charCodeAt(1)&&(n=2<t&&B(e.charCodeAt(2))?3:2,r=n);let o=-1,s=!0;for(let a=t-1;a>=r;--a)if(B(e.charCodeAt(a))){if(!s){o=a;break}}else s=!1;if(-1===o){if(-1===n)return".";o=n}return e.slice(0,o)},basename(e,t){void 0!==t&&K(t,"ext"),K(e,"path");let n,r=0,i=-1,o=!0;if(2<=e.length&&Y(e.charCodeAt(0))&&58===e.charCodeAt(1)&&(r=2),void 0!==t&&0<t.length&&t.length<=e.length){if(t===e)return"";let a=t.length-1,u=-1;for(n=e.length-1;n>=r;--n){var s=e.charCodeAt(n);if(B(s)){if(!o){r=n+1;break}}else-1===u&&(o=!1,u=n+1),0<=a&&(s===t.charCodeAt(a)?-1==--a&&(i=n):(a=-1,i=u))}return r===i?i=u:-1===i&&(i=e.length),e.slice(r,i)}for(n=e.length-1;n>=r;--n)if(B(e.charCodeAt(n))){if(!o){r=n+1;break}}else-1===i&&(o=!1,i=n+1);return-1===i?"":e.slice(r,i)},extname(e){K(e,"path");let t=0,n=-1,r=0,i=-1,o=!0,s=0;2<=e.length&&58===e.charCodeAt(1)&&Y(e.charCodeAt(0))&&(t=r=2);for(let u=e.length-1;u>=t;--u){var a=e.charCodeAt(u);if(B(a)){if(o)continue;r=u+1;break}-1===i&&(o=!1,i=u+1),46===a?-1===n?n=u:1!==s&&(s=1):-1!==n&&(s=-1)}return-1===n||-1===i||0===s||1===s&&n===i-1&&n===r+1?"":e.slice(n,i)},format:z.bind(null,"\\"),parse(e){K(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0!==e.length){var n=e.length;let r=0,i=e.charCodeAt(0);if(1===n)B(i)?t.root=t.dir=e:t.base=t.name=e;else{if(B(i)){if(r=1,B(e.charCodeAt(1))){let t=2,i=t;for(;t<n&&!B(e.charCodeAt(t));)t++;if(t<n&&t!==i){for(i=t;t<n&&B(e.charCodeAt(t));)t++;if(t<n&&t!==i){for(i=t;t<n&&!B(e.charCodeAt(t));)t++;t===n?r=t:t!==i&&(r=t+1)}}}}else if(Y(i)&&58===e.charCodeAt(1)){if(n<=2)return t.root=t.dir=e,t;if(r=2,B(e.charCodeAt(2))){if(3===n)return t.root=t.dir=e,t;r=3}}0<r&&(t.root=e.slice(0,r));let o=-1,s=r,a=-1,u=!0,l=e.length-1,h=0;for(;l>=r;--l){if(B(i=e.charCodeAt(l))){if(u)continue;s=l+1;break}-1===a&&(u=!1,a=l+1),46===i?-1===o?o=l:1!==h&&(h=1):-1!==o&&(h=-1)}-1!==a&&(-1===o||0===h||1===h&&o===a-1&&o===s+1?t.base=t.name=e.slice(s,a):(t.name=e.slice(s,o),t.base=e.slice(s,a),t.ext=e.slice(o,a))),t.dir=0<s&&s!==r?e.slice(0,s-1):t.root}}return t},sep:"\\",delimiter:";",win32:null,posix:null},G={resolve(...e){let t="",n=!1;for(let r=e.length-1;-1<=r&&!n;r--){const i=0<=r?e[r]:q.a();K(i,"path"),0!==i.length&&(t=i+"/"+t,n=47===i.charCodeAt(0))}return t=H(t,!n,"/",W),n?"/"+t:0<t.length?t:"."},normalize(e){var t,n;return K(e,"path"),0===e.length?".":(t=47===e.charCodeAt(0),n=47===e.charCodeAt(e.length-1),0===(e=H(e,!t,"/",W)).length?t?"/":n?"./":".":(n&&(e+="/"),t?"/"+e:e))},isAbsolute(e){return K(e,"path"),0<e.length&&47===e.charCodeAt(0)},join(...e){if(0===e.length)return".";let t;for(let r=0;r<e.length;++r){var n=e[r];K(n,"path"),0<n.length&&(void 0===t?t=n:t+="/"+n)}return void 0===t?".":G.normalize(t)},relative(e,t){if(K(e,"from"),K(t,"to"),e===t)return"";if((e=G.resolve(e))===(t=G.resolve(t)))return"";var n=e.length,r=n-1,i=t.length-1,o=r<i?r:i;let s=-1,a=0;for(;a<o;a++){var u=e.charCodeAt(1+a);if(u!==t.charCodeAt(1+a))break;47===u&&(s=a)}if(a===o)if(o<i){if(47===t.charCodeAt(1+a))return t.slice(1+a+1);if(0===a)return t.slice(1+a)}else o<r&&(47===e.charCodeAt(1+a)?s=a:0===a&&(s=0));let l="";for(a=1+s+1;a<=n;++a)a!==n&&47!==e.charCodeAt(a)||(l+=0===l.length?"..":"/..");return""+l+t.slice(1+s)},toNamespacedPath(e){return e},dirname(e){if(K(e,"path"),0===e.length)return".";var t=47===e.charCodeAt(0);let n=-1,r=!0;for(let i=e.length-1;1<=i;--i)if(47===e.charCodeAt(i)){if(!r){n=i;break}}else r=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename(e,t){void 0!==t&&K(t,"ext"),K(e,"path");let n,r=0,i=-1,o=!0;if(void 0!==t&&0<t.length&&t.length<=e.length){if(t===e)return"";let a=t.length-1,u=-1;for(n=e.length-1;0<=n;--n){var s=e.charCodeAt(n);if(47===s){if(!o){r=n+1;break}}else-1===u&&(o=!1,u=n+1),0<=a&&(s===t.charCodeAt(a)?-1==--a&&(i=n):(a=-1,i=u))}return r===i?i=u:-1===i&&(i=e.length),e.slice(r,i)}for(n=e.length-1;0<=n;--n)if(47===e.charCodeAt(n)){if(!o){r=n+1;break}}else-1===i&&(o=!1,i=n+1);return-1===i?"":e.slice(r,i)},extname(e){K(e,"path");let t=-1,n=0,r=-1,i=!0,o=0;for(let a=e.length-1;0<=a;--a){var s=e.charCodeAt(a);if(47===s){if(i)continue;n=a+1;break}-1===r&&(i=!1,r=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1)}return-1===t||-1===r||0===o||1===o&&t===r-1&&t===n+1?"":e.slice(t,r)},format:z.bind(null,"/"),parse(e){K(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0!==e.length){var n=47===e.charCodeAt(0);let i,o=(i=n?(t.root="/",1):0,-1),s=0,a=-1,u=!0,l=e.length-1,h=0;for(;l>=i;--l){var r=e.charCodeAt(l);if(47===r){if(u)continue;s=l+1;break}-1===a&&(u=!1,a=l+1),46===r?-1===o?o=l:1!==h&&(h=1):-1!==o&&(h=-1)}if(-1!==a){const r=0===s&&n?1:s;-1===o||0===h||1===h&&o===a-1&&o===s+1?t.base=t.name=e.slice(r,a):(t.name=e.slice(r,o),t.base=e.slice(r,a),t.ext=e.slice(o,a))}0<s?t.dir=e.slice(0,s-1):n&&(t.dir="/")}return t},sep:"/",delimiter:":",win32:null,posix:null};var Q,X;G.win32=J.win32=J,G.posix=J.posix=G,("win32"===q.c?J:G).normalize,("win32"===q.c?J:G).resolve,("win32"===q.c?J:G).relative,("win32"===q.c?J:G).dirname,("win32"===q.c?J:G).basename,("win32"===q.c?J:G).extname,("win32"===q.c?J:G).sep;const Z=/^\w[\w\d+.-]*$/,ee=/^\//,te=/^\/\//;function ne(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!Z.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!ee.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(te.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}const re="/",ie=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class oe{constructor(e,t,n,r,i,o=!1){var s;"object"==typeof e?(this.scheme=e.scheme||"",this.authority=e.authority||"",this.path=e.path||"",this.query=e.query||"",this.fragment=e.fragment||""):(this.scheme=(s=o,(e=e)||s?e:"file"),this.authority=t||"",this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==re&&(t=re+t):t=re}return t}(this.scheme,n||""),this.query=r||"",this.fragment=i||"",ne(this,o))}static isUri(e){return e instanceof oe||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString}get fsPath(){return ce(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:i,fragment:o}=e;return void 0===t?t=this.scheme:null===t&&(t=""),void 0===n?n=this.authority:null===n&&(n=""),void 0===r?r=this.path:null===r&&(r=""),void 0===i?i=this.query:null===i&&(i=""),void 0===o?o=this.fragment:null===o&&(o=""),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&o===this.fragment?this:new ae(t,n,r,i,o)}static parse(e,t=!1){return e=ie.exec(e),e?new ae(e[2]||"",me(e[4]||""),me(e[5]||""),me(e[7]||""),me(e[9]||""),t):new ae("","","","","")}static file(e){let t="";var n;return(e=b.d?e.replace(/\\/g,re):e)[0]===re&&e[1]===re&&(e=-1===(n=e.indexOf(re,2))?(t=e.substring(2),re):(t=e.substring(2,n),e.substring(n)||re)),new ae("file",t,e,"","")}static from(e){return e=new ae(e.scheme,e.authority,e.path,e.query,e.fragment),ne(e,!0),e}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let n;return n=b.d&&"file"===e.scheme?oe.file(J.join(ce(e,!0),...t)).path:G.join(e.path,...t),e.with({path:n})}toString(e=!1){return fe(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof oe)return e;{const t=new ae(e);return t._formatted=e.external,t._fsPath=e._sep===se?e.fsPath:null,t}}return e}}const se=b.d?1:void 0;class ae extends oe{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=ce(this,!1)),this._fsPath}toString(e=!1){return e?fe(this,!0):(this._formatted||(this._formatted=fe(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=se),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const ue={[58]:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function le(e,t){let n=void 0,r=-1;for(let o=0;o<e.length;o++){var i=e.charCodeAt(o);97<=i&&i<=122||65<=i&&i<=90||48<=i&&i<=57||45===i||46===i||95===i||126===i||t&&47===i?(-1!==r&&(n+=encodeURIComponent(e.substring(r,o)),r=-1),void 0!==n&&(n+=e.charAt(o))):(void 0===n&&(n=e.substr(0,o)),void 0!==(i=ue[i])?(-1!==r&&(n+=encodeURIComponent(e.substring(r,o)),r=-1),n+=i):-1===r&&(r=o))}return-1!==r&&(n+=encodeURIComponent(e.substring(r))),void 0!==n?n:e}function he(e){let t=void 0;for(let r=0;r<e.length;r++){var n=e.charCodeAt(r);35===n||63===n?(void 0===t&&(t=e.substr(0,r)),t+=ue[n]):void 0!==t&&(t+=e[r])}return void 0!==t?t:e}function ce(e,t){let n;return n=e.authority&&1<e.path.length&&"file"===e.scheme?"//"+e.authority+e.path:47===e.path.charCodeAt(0)&&(65<=e.path.charCodeAt(1)&&e.path.charCodeAt(1)<=90||97<=e.path.charCodeAt(1)&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,b.d?n.replace(/\//g,"\\"):n}function fe(e,t){const n=t?he:le;let r="",{scheme:i,authority:o,path:s,query:a,fragment:u}=e;if(i&&(r=r+i+":"),!o&&"file"!==i||(r=(r+=re)+re),o){let e=o.indexOf("@");if(-1!==e){const t=o.substr(0,e);o=o.substr(e+1),-1===(e=t.indexOf(":"))?r+=n(t,!1):r=(r=r+n(t.substr(0,e),!1)+":")+n(t.substr(e+1),!1),r+="@"}o=o.toLowerCase(),-1===(e=o.indexOf(":"))?r+=n(o,!1):r=(r+=n(o.substr(0,e),!1))+o.substr(e)}return s&&(3<=s.length&&47===s.charCodeAt(0)&&58===s.charCodeAt(2)?65<=(e=s.charCodeAt(1))&&e<=90&&(s=`/${String.fromCharCode(e+32)}:`+s.substr(3)):2<=s.length&&58===s.charCodeAt(1)&&65<=(e=s.charCodeAt(0))&&e<=90&&(s=String.fromCharCode(e+32)+":"+s.substr(2)),r+=n(s,!0)),a&&(r=(r+="?")+n(a,!1)),u?(r+="#")+(t?u:le(u,!1)):r}const de=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function me(e){return e.match(de)?e.replace(de,e=>function t(n){try{return decodeURIComponent(n)}catch(e){return 3<n.length?n.substr(0,3)+t(n.substr(3)):n}}(e)):e}class ge{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new ge(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return ge.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return ge.isBefore(this,e)}static isBefore(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column}isBeforeOrEqual(e){return ge.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column}static compare(e,t){var n=0|e.lineNumber,r=0|t.lineNumber;return n==r?(0|e.column)-(0|t.column):n-r}clone(){return new ge(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new ge(e.lineNumber,e.column)}static isIPosition(e){return e&&"number"==typeof e.lineNumber&&"number"==typeof e.column}}class pe{constructor(e,t,n,r){n<e||e===n&&r<t?(this.startLineNumber=n,this.startColumn=r,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=r)}isEmpty(){return pe.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return pe.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber)&&!(t.lineNumber===e.startLineNumber&&t.column<e.startColumn)&&!(t.lineNumber===e.endLineNumber&&t.column>e.endColumn)}containsRange(e){return pe.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&!(t.startLineNumber===e.startLineNumber&&t.startColumn<e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>e.endColumn)}strictContainsRange(e){return pe.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&!(t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)}plusRange(e){return pe.plusRange(this,e)}static plusRange(e,t){let n,r,i,o;return r=t.startLineNumber<e.startLineNumber?(n=t.startLineNumber,t.startColumn):t.startLineNumber===e.startLineNumber?(n=t.startLineNumber,Math.min(t.startColumn,e.startColumn)):(n=e.startLineNumber,e.startColumn),o=t.endLineNumber>e.endLineNumber?(i=t.endLineNumber,t.endColumn):t.endLineNumber===e.endLineNumber?(i=t.endLineNumber,Math.max(t.endColumn,e.endColumn)):(i=e.endLineNumber,e.endColumn),new pe(n,r,i,o)}intersectRanges(e){return pe.intersectRanges(this,e)}static intersectRanges(e,t){let n=e.startLineNumber,r=e.startColumn,i=e.endLineNumber,o=e.endColumn;e=t.startLineNumber;var s=t.startColumn,a=t.endLineNumber;t=t.endColumn;return n<e?(n=e,r=s):n===e&&(r=Math.max(r,s)),i>a?(i=a,o=t):i===a&&(o=Math.min(o,t)),n>i||n===i&&r>o?null:new pe(n,r,i,o)}equalsRange(e){return pe.equalsRange(this,e)}static equalsRange(e,t){return!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return pe.getEndPosition(this)}static getEndPosition(e){return new ge(e.endLineNumber,e.endColumn)}getStartPosition(){return pe.getStartPosition(this)}static getStartPosition(e){return new ge(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new pe(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new pe(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return pe.collapseToStart(this)}static collapseToStart(e){return new pe(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}static fromPositions(e,t=e){return new pe(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new pe(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn}static areIntersectingOrTouching(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<e.startColumn)}static areIntersecting(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<=t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<=e.startColumn)}static compareRangesUsingStarts(e,t){var n,r,i,o,s,a;return e&&t?(n=0|e.startLineNumber)==(r=0|t.startLineNumber)?(i=0|e.startColumn)==(o=0|t.startColumn)?(s=0|e.endLineNumber)==(a=0|t.endLineNumber)?(0|e.endColumn)-(0|t.endColumn):s-a:i-o:n-r:(e?1:0)-(t?1:0)}static compareRangesUsingEnds(e,t){return e.endLineNumber===t.endLineNumber?e.endColumn===t.endColumn?e.startLineNumber===t.startLineNumber?e.startColumn-t.startColumn:e.startLineNumber-t.startLineNumber:e.endColumn-t.endColumn:e.endLineNumber-t.endLineNumber}static spansMultipleLines(e){return e.endLineNumber>e.startLineNumber}}function ve(e,t,n,r){const i=new F(e,t,n);return i.ComputeDiff(r)}class ye{constructor(e){const t=[],n=[];for(let r=0,i=e.length;r<i;r++)t[r]=Ae(e[r],1),n[r]=xe(e[r],1);this.lines=e,this._startColumns=t,this._endColumns=n}getElements(){const e=[];for(let t=0,n=this.lines.length;t<n;t++)e[t]=this.lines[t].substring(this._startColumns[t]-1,this._endColumns[t]-1);return e}getStrictElement(e){return this.lines[e]}getStartLineNumber(e){return e+1}getEndLineNumber(e){return e+1}createCharSequence(e,t,n){const r=[],i=[],o=[];let s=0;for(let l=t;l<=n;l++){const t=this.lines[l];var a=e?this._startColumns[l]:1,u=e?this._endColumns[l]:t.length+1;for(let e=a;e<u;e++)r[s]=t.charCodeAt(e-1),i[s]=l+1,o[s]=e,s++}return new be(r,i,o)}}class be{constructor(e,t,n){this._charCodes=e,this._lineNumbers=t,this._columns=n}getElements(){return this._charCodes}getStartLineNumber(e){return this._lineNumbers[e]}getStartColumn(e){return this._columns[e]}getEndLineNumber(e){return this._lineNumbers[e]}getEndColumn(e){return this._columns[e]+1}}class _e{constructor(e,t,n,r,i,o,s,a){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=n,this.originalEndColumn=r,this.modifiedStartLineNumber=i,this.modifiedStartColumn=o,this.modifiedEndLineNumber=s,this.modifiedEndColumn=a}static createFromDiffChange(e,t,n){let r,i,o,s,a,u,l,h;return s=0===e.originalLength?(r=0,i=0,o=0):(r=t.getStartLineNumber(e.originalStart),i=t.getStartColumn(e.originalStart),o=t.getEndLineNumber(e.originalStart+e.originalLength-1),t.getEndColumn(e.originalStart+e.originalLength-1)),h=0===e.modifiedLength?(a=0,u=0,l=0):(a=n.getStartLineNumber(e.modifiedStart),u=n.getStartColumn(e.modifiedStart),l=n.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),n.getEndColumn(e.modifiedStart+e.modifiedLength-1)),new _e(r,i,o,s,a,u,l,h)}}class Ce{constructor(e,t,n,r,i){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=n,this.modifiedEndLineNumber=r,this.charChanges=i}static createFromDiffResult(e,t,n,r,i,o,s){let a,u,l,h,c=void 0;if(u=0===t.originalLength?(a=n.getStartLineNumber(t.originalStart)-1,0):(a=n.getStartLineNumber(t.originalStart),n.getEndLineNumber(t.originalStart+t.originalLength-1)),h=0===t.modifiedLength?(l=r.getStartLineNumber(t.modifiedStart)-1,0):(l=r.getStartLineNumber(t.modifiedStart),r.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),o&&0<t.originalLength&&t.originalLength<20&&0<t.modifiedLength&&t.modifiedLength<20&&i()){var f=n.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),d=r.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);let o=ve(f,d,i,!0).changes;s&&(o=function(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let s=1,a=e.length;s<a;s++){var r=e[s],i=r.originalStart-(n.originalStart+n.originalLength),o=r.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(i,o)<3?(n.originalLength=r.originalStart+r.originalLength-n.originalStart,n.modifiedLength=r.modifiedStart+r.modifiedLength-n.modifiedStart):(t.push(r),n=r)}return t}(o)),c=[];for(let e=0,t=o.length;e<t;e++)c.push(_e.createFromDiffChange(o[e],f,d))}return new Ce(a,u,l,h,c)}}class Se{constructor(e,t,n){this.shouldComputeCharChanges=n.shouldComputeCharChanges,this.shouldPostProcessCharChanges=n.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=n.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=n.shouldMakePrettyDiff,this.originalLines=e,this.modifiedLines=t,this.original=new ye(e),this.modified=new ye(t),this.continueLineDiff=Ee(n.maxComputationTime),this.continueCharDiff=Ee(0===n.maxComputationTime?0:Math.min(n.maxComputationTime,5e3))}computeDiff(){if(1===this.original.lines.length&&0===this.original.lines[0].length)return 1===this.modified.lines.length&&0===this.modified.lines[0].length?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};if(1===this.modified.lines.length&&0===this.modified.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};var e=ve(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes;e=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){const n=[];for(let e=0,r=t.length;e<r;e++)n.push(Ce.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[e],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:e,changes:n}}const n=[];let r=0,i=0;for(let h=-1,c=t.length;h<c;h++){for(var o=h+1<c?t[h+1]:null,s=o?o.originalStart:this.originalLines.length,a=o?o.modifiedStart:this.modifiedLines.length;r<s&&i<a;){const e=this.originalLines[r],t=this.modifiedLines[i];if(e!==t){{let o=Ae(e,1),s=Ae(t,1);for(;1<o&&1<s;){if(e.charCodeAt(o-2)!==t.charCodeAt(s-2))break;o--,s--}(1<o||1<s)&&this._pushTrimWhitespaceCharChange(n,r+1,1,o,i+1,1,s)}{let o=xe(e,1),s=xe(t,1);for(var u=e.length+1,l=t.length+1;o<u&&s<l;){if(e.charCodeAt(o-1)!==e.charCodeAt(s-1))break;o++,s++}(o<u||s<l)&&this._pushTrimWhitespaceCharChange(n,r+1,o,u,i+1,s,l)}}r++,i++}o&&(n.push(Ce.createFromDiffResult(this.shouldIgnoreTrimWhitespace,o,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),r+=o.originalLength,i+=o.modifiedLength)}return{quitEarly:e,changes:n}}_pushTrimWhitespaceCharChange(e,t,n,r,i,o,s){if(!this._mergeTrimWhitespaceCharChange(e,t,n,r,i,o,s)){let a=void 0;this.shouldComputeCharChanges&&(a=[new _e(t,n,t,r,i,o,i,s)]),e.push(new Ce(t,t,i,i,a))}}_mergeTrimWhitespaceCharChange(e,t,n,r,i,o,s){var a=e.length;if(0===a)return!1;const u=e[a-1];return 0!==u.originalEndLineNumber&&0!==u.modifiedEndLineNumber&&u.originalEndLineNumber+1===t&&u.modifiedEndLineNumber+1===i&&(u.originalEndLineNumber=t,u.modifiedEndLineNumber=i,this.shouldComputeCharChanges&&u.charChanges&&u.charChanges.push(new _e(t,n,t,r,i,o,i,s)),!0)}}function Ae(e,t){return e=function(e){for(let n=0,r=e.length;n<r;n++){var t=e.charCodeAt(n);if(32!==t&&9!==t)return n}return-1}(e),-1===e?t:e+1}function xe(e,t){return e=w(e),-1===e?t:e+2}function Ee(e){if(0===e)return()=>!0;const t=Date.now();return()=>Date.now()-t<e}function we(e){return e<0?0:255<e?255:0|e}function Ne(e){return e<0?0:4294967295<e?4294967295:0|e}class Le{constructor(e,t){this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=t}}class ke{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=Ne(e);const n=this.values,r=this.prefixSum;var i=t.length;return 0!==i&&(this.values=new Uint32Array(n.length+i),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+i),this.values.set(t,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),0<=this.prefixSumValidIndex[0]&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}changeValue(e,t){return e=Ne(e),t=Ne(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,t){e=Ne(e),t=Ne(t);const n=this.values,r=this.prefixSum;var i;return!(e>=n.length)&&0!==(t=(i=n.length-e)<=t?i:t)&&(this.values=new Uint32Array(n.length-t),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),0<=this.prefixSumValidIndex[0]&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=Ne(e),this._getPrefixSum(e))}_getPrefixSum(e){if(!(e<=this.prefixSumValidIndex[0])){let t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let n=t;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e)}return this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let t=0,n=this.values.length-1,r=0;var i;let o=0;for(;t<=n;)if(r=t+(n-t)/2|0,i=this.prefixSum[r],e<(o=i-this.values[r]))n=r-1;else{if(!(i<=e))break;t=r+1}return new Le(r,e-o)}}const Te=function(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const n of"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?")0<=e.indexOf(n)||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}(),Oe={maxLen:1e3,windowSize:15,timeBudget:150};function Pe(e,t,n,r,i=Oe){if(n.length>i.maxLen){let o=e-i.maxLen/2;return o<0?o=0:r+=o,Pe(e,t,n=n.substring(o,e+i.maxLen/2),r,i)}var o=Date.now(),s=e-1-r;let a=-1,u=null;for(let c=1;!(Date.now()-o>=i.timeBudget);c++){var l=s-i.windowSize*c,h=(t.lastIndex=Math.max(0,l),function(e,t,n,r){for(var i;i=e.exec(t);){var o=i.index||0;if(o<=n&&e.lastIndex>=n)return i;if(0<r&&r<o)return null}return null}(t,n,s,a));if(!h&&u)break;if(u=h,l<=0)break;a=l}return u?(e={word:u[0],startColumn:r+1+u.index,endColumn:r+1+u.index+u[0].length},t.lastIndex=0,e):null}class Ie{constructor(e){e=we(e),this._defaultValue=e,this._asciiMap=Ie._createAsciiMap(e),this._map=new Map}static _createAsciiMap(e){let t=new Uint8Array(256);for(let n=0;n<256;n++)t[n]=e;return t}set(e,t){t=we(t),0<=e&&e<256?this._asciiMap[e]=t:this._map.set(e,t)}get(e){return 0<=e&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}}class Me{constructor(e,t,n){const r=new Uint8Array(e*t);for(let i=0,o=e*t;i<o;i++)r[i]=n;this._data=r,this.rows=e,this.cols=t}get(e,t){return this._data[e*this.cols+t]}set(e,t,n){this._data[e*this.cols+t]=n}}class je{constructor(e){let t=0,n=0;for(let h=0,c=e.length;h<c;h++){var[r,i,o]=e[h];i>t&&(t=i),o>(n=r>n?r:n)&&(n=o)}t++,n++;let s=new Me(n,t,0);for(let h=0,c=e.length;h<c;h++){var[a,u,l]=e[h];s.set(a,u,l)}this._states=s,this._maxCharCode=t}nextState(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)}}let De=null,Re=null;class Ue{static _createLink(e,t,n,r,i){let o=i-1;do{var s=t.charCodeAt(o);if(2!==e.get(s))break}while(--o>r);var a;return 0<r&&(i=t.charCodeAt(r-1),a=t.charCodeAt(o),(40===i&&41===a||91===i&&93===a||123===i&&125===a)&&o--),{range:{startLineNumber:n,startColumn:r+1,endLineNumber:n,endColumn:o+2},url:t.substring(r,o+1)}}static computeLinks(e,t=(De=null===De?new je([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]]):De)){const n=function(){if(null===Re){Re=new Ie(0);var e=" \t<>'\"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…";for(let t=0;t<e.length;t++)Re.set(e.charCodeAt(t),1);for(let e=0;e<".,;".length;e++)Re.set(".,;".charCodeAt(e),2)}return Re}();let r=[];for(let s=1,a=e.getLineCount();s<=a;s++){const a=e.getLineContent(s);var i=a.length;let u=0,l=0,h=0,c=1,f=!1,d=!1,m=!1,g=!1;for(;u<i;){let e=!1;var o=a.charCodeAt(u);if(13===c){let t;switch(o){case 40:f=!0,t=0;break;case 41:t=f?0:1;break;case 91:m=!0,d=!0,t=0;break;case 93:m=!1,t=d?0:1;break;case 123:g=!0,t=0;break;case 125:t=g?0:1;break;case 39:t=34===h||96===h?0:1;break;case 34:t=39===h||96===h?0:1;break;case 96:t=39===h||34===h?0:1;break;case 42:t=42===h?1:0;break;case 124:t=124===h?1:0;break;case 32:t=m?0:1;break;default:t=n.get(o)}1===t&&(r.push(Ue._createLink(n,a,s,l,u)),e=!0)}else if(12===c){let t;1===(t=91===o?(d=!0,0):n.get(o))?e=!0:c=13}else 0===(c=t.nextState(c,o))&&(e=!0);e&&(c=1,f=!1,d=!1,g=!1,l=u+1,h=o),u++}13===c&&r.push(Ue._createLink(n,a,s,l,i))}return r}}class Ve{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(e,t,n,r,i){return e&&t&&(t=this.doNavigateValueSet(t,i),t)?{range:e,value:t}:n&&r&&(e=this.doNavigateValueSet(r,i),e)?{range:n,value:e}:null}doNavigateValueSet(e,t){var n=this.numberReplace(e,t);return null!==n?n:this.textReplace(e,t)}numberReplace(e,t){var n=Math.pow(10,e.length-(e.lastIndexOf(".")+1));let r=Number(e);return e=parseFloat(e),isNaN(r)||isNaN(e)||r!==e||0===r&&!t?null:(r=Math.floor(r*n),r+=t?n:-n,String(r/n))}textReplace(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)}valueSetsReplace(e,t,n){let r=null;for(let i=0,o=e.length;null===r&&i<o;i++)r=this.valueSetReplace(e[i],t,n);return r}valueSetReplace(e,t,n){let r=e.indexOf(t);return 0<=r?((r+=n?1:-1)<0?r=e.length-1:r%=e.length,e[r]):null}}Ve.INSTANCE=new Ve;class Fe{constructor(e){this.element=e,this.next=Fe.Undefined,this.prev=Fe.Undefined}}Fe.Undefined=new Fe(void 0);class qe{constructor(){this._first=Fe.Undefined,this._last=Fe.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Fe.Undefined}clear(){let e=this._first;for(;e!==Fe.Undefined;){var t=e.next;e.prev=Fe.Undefined,e.next=Fe.Undefined,e=t}this._first=Fe.Undefined,this._last=Fe.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new Fe(e);if(this._first===Fe.Undefined)this._first=n,this._last=n;else if(t){const e=this._last;((this._last=n).prev=e).next=n}else{const e=this._first;((this._first=n).next=e).prev=n}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(n))}}shift(){var e;if(this._first!==Fe.Undefined)return e=this._first.element,this._remove(this._first),e}pop(){var e;if(this._last!==Fe.Undefined)return e=this._last.element,this._remove(this._last),e}_remove(e){if(e.prev!==Fe.Undefined&&e.next!==Fe.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===Fe.Undefined&&e.next===Fe.Undefined?(this._first=Fe.Undefined,this._last=Fe.Undefined):e.next===Fe.Undefined?(this._last=this._last.prev,this._last.next=Fe.Undefined):e.prev===Fe.Undefined&&(this._first=this._first.next,this._first.prev=Fe.Undefined);--this._size}*[Symbol.iterator](){let e=this._first;for(;e!==Fe.Undefined;)yield e.element,e=e.next}}const $e=b.a.performance&&"function"==typeof b.a.performance.now;class Ke{constructor(e){this._highResolution=$e&&e,this._startTime=this._now(),this._stopTime=-1}static create(e=!0){return new Ke(e)}stop(){this._stopTime=this._now()}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return(this._highResolution?b.a.performance:Date).now()}}{var Be=xn=xn||{};function We(e){return(t,n=null,r)=>{let i,o=!1;return i=e(e=>{if(!o)return i?i.dispose():o=!0,t.call(n,e)},null,r),o&&i.dispose(),i}}function Ye(e,t){return Ge((n,r=null,i)=>e(e=>n.call(r,t(e)),null,i))}function He(e,t){return Ge((n,r=null,i)=>e(e=>{t(e),n.call(r,e)},null,i))}function ze(e,t){return Ge((n,r=null,i)=>e(e=>t(e)&&n.call(r,e),null,i))}function Je(e,t,n){let r=n;return Ye(e,e=>r=t(r,e))}function Ge(e){let t;const n=new et({onFirstListenerAdd(){t=e(n.fire,n)},onLastListenerRemove(){t.dispose()}});return n.event}function Qe(e,t,n=100,r=!1,i){let o,s=void 0,a=void 0,u=0;const l=new et({leakWarningThreshold:i,onFirstListenerAdd(){o=e(e=>{u++,s=t(s,e),r&&!a&&(l.fire(s),s=void 0),clearTimeout(a),a=setTimeout(()=>{var e=s;s=void 0,a=void 0,(!r||1<u)&&l.fire(e),u=0},n)})},onLastListenerRemove(){o.dispose()}});return l.event}function Xe(e,t=((e,t)=>e===t)){let n,r=!0;return ze(e,e=>{var i=r||!t(e,n);return r=!1,n=e,i})}Be.None=()=>y.None,Be.once=We,Be.map=Ye,Be.forEach=He,Be.filter=ze,Be.signal=function(e){return e},Be.any=function(...e){return(t,n=null,r)=>g(...e.map(e=>e(e=>t.call(n,e),null,r)))},Be.reduce=Je,Be.debounce=Qe,Be.latch=Xe,Be.split=function(e,t){return[Be.filter(e,t),Be.filter(e,e=>!t(e))]},Be.buffer=function(e,t=!1,n=[]){let r=n.slice(),i=e(e=>{r?r.push(e):s.fire(e)});const o=()=>{r&&r.forEach(e=>s.fire(e)),r=null},s=new et({onFirstListenerAdd(){i=i||e(e=>s.fire(e))},onFirstListenerDidAdd(){r&&(t?setTimeout(o):o())},onLastListenerRemove(){i&&i.dispose(),i=null}});return s.event};class e{constructor(e){this.event=e}map(t){return new e(Ye(this.event,t))}forEach(t){return new e(He(this.event,t))}filter(t){return new e(ze(this.event,t))}reduce(t,n){return new e(Je(this.event,t,n))}latch(){return new e(Xe(this.event))}debounce(t,n=100,r=!1,i){return new e(Qe(this.event,t,n,r,i))}on(e,t,n){return this.event(e,t,n)}once(e,t,n){return We(this.event)(e,t,n)}}Be.chain=function(t){return new e(t)},Be.fromNodeEventEmitter=function(e,t,n=(e=>e)){const r=(...e)=>i.fire(n(...e)),i=new et({onFirstListenerAdd:()=>e.on(t,r),onLastListenerRemove:()=>e.removeListener(t,r)});return i.event},Be.fromDOMEventEmitter=function(e,t,n=(e=>e)){const r=(...e)=>i.fire(n(...e)),i=new et({onFirstListenerAdd:()=>e.addEventListener(t,r),onLastListenerRemove:()=>e.removeEventListener(t,r)});return i.event},Be.toPromise=function(e){return new Promise(t=>We(e)(t))}}class Ze{constructor(e){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=e+"_"+Ze._idPool++}start(e){this._stopWatch=new Ke(!0),this._listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this._elapsedOverall+=e,this._invocationCount+=1,this._stopWatch=void 0}}}Ze._idPool=0;class et{constructor(e){this._disposed=!1,this._options=e,this._leakageMon=void 0,this._perfMon=null!=(e=this._options)&&e._profName?new Ze(this._options._profName):void 0}get event(){return this._event||(this._event=(e,t,n)=>{this._listeners||(this._listeners=new qe);var r=this._listeners.isEmpty();r&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const i=this._listeners.push(t?[e,t]:e),o=(r&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,e,t),null==(r=this._leakageMon)?void 0:r.check(this._listeners.size));return e=p(()=>{o&&o(),this._disposed||(i(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))}),n instanceof v?n.add(e):Array.isArray(n)&&n.push(e),e}),this._event}fire(e){var t,n;if(this._listeners){for(var i of(this._deliveryQueue||(this._deliveryQueue=new qe),this._listeners))this._deliveryQueue.push([i,e]);for(null!=(t=this._perfMon)&&t.start(this._deliveryQueue.size);0<this._deliveryQueue.size;){const[t,i]=this._deliveryQueue.shift();try{"function"==typeof t?t.call(void 0,i):t[0].call(t[1],i)}catch(e){s(n=e)||r.onUnexpectedError(n)}}null!=(t=this._perfMon)&&t.stop()}}dispose(){var e,t;this._disposed||(this._disposed=!0,null!=(e=this._listeners)&&e.clear(),null!=(e=this._deliveryQueue)&&e.clear(),null!=(t=null==(e=this._options)?void 0:e.onLastListenerRemove)&&t.call(e),null!=(t=this._leakageMon)&&t.dispose())}}const tt=Object.freeze((function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}}));(X=Q=Q||{}).isCancellationToken=function(e){return e===X.None||e===X.Cancelled||e instanceof nt||!(!e||"object"!=typeof e)&&"boolean"==typeof e.isCancellationRequested&&"function"==typeof e.onCancellationRequested},X.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:xn.None}),X.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:tt});class nt{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?tt:(this._emitter||(this._emitter=new et),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class rt{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new nt),this._token}cancel(){this._token?this._token instanceof nt&&this._token.cancel():this._token=Q.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof nt&&this._token.dispose():this._token=Q.None}}class it{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const ot=new it,st=new it,at=new it;function ut(e,t,n=t,r=n){ot.define(e,t),st.define(e,n),at.define(e,r)}ut(0,"unknown"),ut(1,"Backspace"),ut(2,"Tab"),ut(3,"Enter"),ut(4,"Shift"),ut(5,"Ctrl"),ut(6,"Alt"),ut(7,"PauseBreak"),ut(8,"CapsLock"),ut(9,"Escape"),ut(10,"Space"),ut(11,"PageUp"),ut(12,"PageDown"),ut(13,"End"),ut(14,"Home"),ut(15,"LeftArrow","Left"),ut(16,"UpArrow","Up"),ut(17,"RightArrow","Right"),ut(18,"DownArrow","Down"),ut(19,"Insert"),ut(20,"Delete"),ut(21,"0"),ut(22,"1"),ut(23,"2"),ut(24,"3"),ut(25,"4"),ut(26,"5"),ut(27,"6"),ut(28,"7"),ut(29,"8"),ut(30,"9"),ut(31,"A"),ut(32,"B"),ut(33,"C"),ut(34,"D"),ut(35,"E"),ut(36,"F"),ut(37,"G"),ut(38,"H"),ut(39,"I"),ut(40,"J"),ut(41,"K"),ut(42,"L"),ut(43,"M"),ut(44,"N"),ut(45,"O"),ut(46,"P"),ut(47,"Q"),ut(48,"R"),ut(49,"S"),ut(50,"T"),ut(51,"U"),ut(52,"V"),ut(53,"W"),ut(54,"X"),ut(55,"Y"),ut(56,"Z"),ut(57,"Meta"),ut(58,"ContextMenu"),ut(59,"F1"),ut(60,"F2"),ut(61,"F3"),ut(62,"F4"),ut(63,"F5"),ut(64,"F6"),ut(65,"F7"),ut(66,"F8"),ut(67,"F9"),ut(68,"F10"),ut(69,"F11"),ut(70,"F12"),ut(71,"F13"),ut(72,"F14"),ut(73,"F15"),ut(74,"F16"),ut(75,"F17"),ut(76,"F18"),ut(77,"F19"),ut(78,"NumLock"),ut(79,"ScrollLock"),ut(80,";",";","OEM_1"),ut(81,"=","=","OEM_PLUS"),ut(82,",",",","OEM_COMMA"),ut(83,"-","-","OEM_MINUS"),ut(84,".",".","OEM_PERIOD"),ut(85,"/","/","OEM_2"),ut(86,"`","`","OEM_3"),ut(110,"ABNT_C1"),ut(111,"ABNT_C2"),ut(87,"[","[","OEM_4"),ut(88,"\\","\\","OEM_5"),ut(89,"]","]","OEM_6"),ut(90,"'","'","OEM_7"),ut(91,"OEM_8"),ut(92,"OEM_102"),ut(93,"NumPad0"),ut(94,"NumPad1"),ut(95,"NumPad2"),ut(96,"NumPad3"),ut(97,"NumPad4"),ut(98,"NumPad5"),ut(99,"NumPad6"),ut(100,"NumPad7"),ut(101,"NumPad8"),ut(102,"NumPad9"),ut(103,"NumPad_Multiply"),ut(104,"NumPad_Add"),ut(105,"NumPad_Separator"),ut(106,"NumPad_Subtract"),ut(107,"NumPad_Decimal"),ut(108,"NumPad_Divide");class lt extends pe{constructor(e,t,n,r){super(e,t,n,r),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=n,this.positionColumn=r}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return lt.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return 0===this.getDirection()?new lt(this.startLineNumber,this.startColumn,e,t):new lt(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new ge(this.positionLineNumber,this.positionColumn)}setStartPosition(e,t){return 0===this.getDirection()?new lt(e,t,this.endLineNumber,this.endColumn):new lt(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new lt(e.lineNumber,e.column,t.lineNumber,t.column)}static liftSelection(e){return new lt(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(e||t){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n++)if(!this.selectionsEqual(e[n],t[n]))return!1}return!0}static isISelection(e){return e&&"number"==typeof e.selectionStartLineNumber&&"number"==typeof e.selectionStartColumn&&"number"==typeof e.positionLineNumber&&"number"==typeof e.positionColumn}static createWithDirection(e,t,n,r,i){return 0===i?new lt(e,t,n,r):new lt(n,r,e,t)}}class ht{constructor(e,t,n){this._tokenBrand=void 0,this.offset=0|e,this.type=t,this.language=n}toString(){return"("+this.offset+", "+this.type+")"}}(t=In=In||{})[t.DependsOnKbLayout=-1]="DependsOnKbLayout",t[t.Unknown=0]="Unknown",t[t.Backspace=1]="Backspace",t[t.Tab=2]="Tab",t[t.Enter=3]="Enter",t[t.Shift=4]="Shift",t[t.Ctrl=5]="Ctrl",t[t.Alt=6]="Alt",t[t.PauseBreak=7]="PauseBreak",t[t.CapsLock=8]="CapsLock",t[t.Escape=9]="Escape",t[t.Space=10]="Space",t[t.PageUp=11]="PageUp",t[t.PageDown=12]="PageDown",t[t.End=13]="End",t[t.Home=14]="Home",t[t.LeftArrow=15]="LeftArrow",t[t.UpArrow=16]="UpArrow",t[t.RightArrow=17]="RightArrow",t[t.DownArrow=18]="DownArrow",t[t.Insert=19]="Insert",t[t.Delete=20]="Delete",t[t.KEY_0=21]="KEY_0",t[t.KEY_1=22]="KEY_1",t[t.KEY_2=23]="KEY_2",t[t.KEY_3=24]="KEY_3",t[t.KEY_4=25]="KEY_4",t[t.KEY_5=26]="KEY_5",t[t.KEY_6=27]="KEY_6",t[t.KEY_7=28]="KEY_7",t[t.KEY_8=29]="KEY_8",t[t.KEY_9=30]="KEY_9",t[t.KEY_A=31]="KEY_A",t[t.KEY_B=32]="KEY_B",t[t.KEY_C=33]="KEY_C",t[t.KEY_D=34]="KEY_D",t[t.KEY_E=35]="KEY_E",t[t.KEY_F=36]="KEY_F",t[t.KEY_G=37]="KEY_G",t[t.KEY_H=38]="KEY_H",t[t.KEY_I=39]="KEY_I",t[t.KEY_J=40]="KEY_J",t[t.KEY_K=41]="KEY_K",t[t.KEY_L=42]="KEY_L",t[t.KEY_M=43]="KEY_M",t[t.KEY_N=44]="KEY_N",t[t.KEY_O=45]="KEY_O",t[t.KEY_P=46]="KEY_P",t[t.KEY_Q=47]="KEY_Q",t[t.KEY_R=48]="KEY_R",t[t.KEY_S=49]="KEY_S",t[t.KEY_T=50]="KEY_T",t[t.KEY_U=51]="KEY_U",t[t.KEY_V=52]="KEY_V",t[t.KEY_W=53]="KEY_W",t[t.KEY_X=54]="KEY_X",t[t.KEY_Y=55]="KEY_Y",t[t.KEY_Z=56]="KEY_Z",t[t.Meta=57]="Meta",t[t.ContextMenu=58]="ContextMenu",t[t.F1=59]="F1",t[t.F2=60]="F2",t[t.F3=61]="F3",t[t.F4=62]="F4",t[t.F5=63]="F5",t[t.F6=64]="F6",t[t.F7=65]="F7",t[t.F8=66]="F8",t[t.F9=67]="F9",t[t.F10=68]="F10",t[t.F11=69]="F11",t[t.F12=70]="F12",t[t.F13=71]="F13",t[t.F14=72]="F14",t[t.F15=73]="F15",t[t.F16=74]="F16",t[t.F17=75]="F17",t[t.F18=76]="F18",t[t.F19=77]="F19",t[t.NumLock=78]="NumLock",t[t.ScrollLock=79]="ScrollLock",t[t.US_SEMICOLON=80]="US_SEMICOLON",t[t.US_EQUAL=81]="US_EQUAL",t[t.US_COMMA=82]="US_COMMA",t[t.US_MINUS=83]="US_MINUS",t[t.US_DOT=84]="US_DOT",t[t.US_SLASH=85]="US_SLASH",t[t.US_BACKTICK=86]="US_BACKTICK",t[t.US_OPEN_SQUARE_BRACKET=87]="US_OPEN_SQUARE_BRACKET",t[t.US_BACKSLASH=88]="US_BACKSLASH",t[t.US_CLOSE_SQUARE_BRACKET=89]="US_CLOSE_SQUARE_BRACKET",t[t.US_QUOTE=90]="US_QUOTE",t[t.OEM_8=91]="OEM_8",t[t.OEM_102=92]="OEM_102",t[t.NUMPAD_0=93]="NUMPAD_0",t[t.NUMPAD_1=94]="NUMPAD_1",t[t.NUMPAD_2=95]="NUMPAD_2",t[t.NUMPAD_3=96]="NUMPAD_3",t[t.NUMPAD_4=97]="NUMPAD_4",t[t.NUMPAD_5=98]="NUMPAD_5",t[t.NUMPAD_6=99]="NUMPAD_6",t[t.NUMPAD_7=100]="NUMPAD_7",t[t.NUMPAD_8=101]="NUMPAD_8",t[t.NUMPAD_9=102]="NUMPAD_9",t[t.NUMPAD_MULTIPLY=103]="NUMPAD_MULTIPLY",t[t.NUMPAD_ADD=104]="NUMPAD_ADD",t[t.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",t[t.NUMPAD_SUBTRACT=106]="NUMPAD_SUBTRACT",t[t.NUMPAD_DECIMAL=107]="NUMPAD_DECIMAL",t[t.NUMPAD_DIVIDE=108]="NUMPAD_DIVIDE",t[t.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",t[t.ABNT_C1=110]="ABNT_C1",t[t.ABNT_C2=111]="ABNT_C2",t[t.MAX_VALUE=112]="MAX_VALUE",(xn=hn=hn||{})[xn.Hint=1]="Hint",xn[xn.Info=2]="Info",xn[xn.Warning=4]="Warning",xn[xn.Error=8]="Error",(t=mn=mn||{})[t.Unnecessary=1]="Unnecessary",t[t.Deprecated=2]="Deprecated",(xn=ui=ui||{})[xn.LTR=0]="LTR",xn[xn.RTL=1]="RTL";class ct{static chord(e,t){return(e|(65535&t)<<16>>>0)>>>0}}ct.CtrlCmd=2048,ct.Shift=1024,ct.Alt=512,ct.WinCtrl=256;var ft,dt=function(e,t,n,r){return new(n=n||Promise)((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};class mt extends class{constructor(e,t,n,r){this._uri=e,this._lines=t,this._eol=n,this._versionId=r,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);for(const t of e.changes)this._acceptDeleteRange(t.range),this._acceptInsertText(new ge(t.range.startLineNumber,t.range.startColumn),t.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){var e=this._eol.length,t=this._lines.length;const n=new Uint32Array(t);for(let r=0;r<t;r++)n[r]=this._lines[r].length+e;this._lineStarts=new ke(n)}}_setLineText(e,t){this._lines[e]=t,this._lineStarts&&this._lineStarts.changeValue(e,this._lines[e].length+this._eol.length)}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber)return e.startColumn===e.endColumn?void 0:void this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1));this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.endLineNumber-1].substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(e.startLineNumber,e.endLineNumber-e.startLineNumber)}_acceptInsertText(e,t){if(0!==t.length){let n=t.split(/\r\n|\r|\n/);if(1===n.length)this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]+this._lines[e.lineNumber-1].substring(e.column-1));else{n[n.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]);let t=new Uint32Array(n.length-1);for(let r=1;r<n.length;r++)this._lines.splice(e.lineNumber+r-1,0,n[r]),t[r-1]=n[r].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,t)}}}}{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(e){return this._lines[e-1]}getWordAtPosition(e,t){return t=Pe(e.column,function(e){let t=Te;if(e&&e instanceof RegExp)if(e.global)t=e;else{let n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}(t),this._lines[e.lineNumber-1],0),t?new pe(e.lineNumber,t.startColumn,e.lineNumber,t.endColumn):null}words(e){const t=this._lines,n=this._wordenize.bind(this);let r=0,i="",o=0,s=[];return{*[Symbol.iterator](){for(;;)if(o<s.length){var a=i.substring(s[o].start,s[o].end);o+=1,yield a}else{if(!(r<t.length))break;i=t[r],s=n(i,e),o=0,r+=1}}}}getLineWords(e,t){let n=this._lines[e-1],r=[];for(const i of this._wordenize(n,t))r.push({word:n.substring(i.start,i.end),startColumn:i.start+1,endColumn:i.end+1});return r}_wordenize(e,t){const n=[];var r;for(t.lastIndex=0;(r=t.exec(e))&&0!==r[0].length;)n.push({start:r.index,end:r.index+r[0].length});return n}getValueInRange(e){if((e=this._validateRange(e)).startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);var t=this._eol,n=e.startLineNumber-1,r=e.endLineNumber-1;let i=[];i.push(this._lines[n].substring(e.startColumn-1));for(let o=1+n;o<r;o++)i.push(this._lines[o]);return i.push(this._lines[r].substring(0,e.endColumn-1)),i.join(t)}offsetAt(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getPrefixSum(e.lineNumber-2)+(e.column-1)}positionAt(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();e=this._lineStarts.getIndexOf(e);var t=this._lines[e.index].length;return{lineNumber:1+e.index,column:1+Math.min(e.remainder,t)}}_validateRange(e){var t=this._validatePosition({lineNumber:e.startLineNumber,column:e.startColumn}),n=this._validatePosition({lineNumber:e.endLineNumber,column:e.endColumn});return t.lineNumber!==e.startLineNumber||t.column!==e.startColumn||n.lineNumber!==e.endLineNumber||n.column!==e.endColumn?{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:n.lineNumber,endColumn:n.column}:e}_validatePosition(e){if(!ge.isIPosition(e))throw new Error("bad position");let{lineNumber:t,column:n}=e,r=!1;var i;return t<1?(t=1,n=1,r=!0):t>this._lines.length?(t=this._lines.length,n=this._lines[t-1].length+1,r=!0):(i=this._lines[t-1].length+1,n<1?(n=1,r=!0):n>i&&(n=i,r=!0)),r?{lineNumber:t,column:n}:e}}class gt{constructor(e,t){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=t,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(e){return this._models[e]}_getModels(){let e=[];return Object.keys(this._models).forEach(t=>e.push(this._models[t])),e}acceptNewModel(e){this._models[e.url]=new mt(oe.parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,t){if(this._models[e]){let n=this._models[e];n.onEvents(t)}}acceptRemovedModel(e){this._models[e]&&delete this._models[e]}computeDiff(e,t,n,r){return dt(this,void 0,void 0,(function*(){const i=this._getModel(e),o=this._getModel(t);if(!i||!o)return null;var s=i.getLinesContent(),a=o.getLinesContent();const u=new Se(s,a,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:n,shouldMakePrettyDiff:!0,maxComputationTime:r});return s=u.computeDiff(),a=!(0<s.changes.length)&&this._modelsAreIdentical(i,o),{quitEarly:s.quitEarly,identical:a,changes:s.changes}}))}_modelsAreIdentical(e,t){var n=e.getLineCount();if(n!==t.getLineCount())return!1;for(let r=1;r<=n;r++)if(e.getLineContent(r)!==t.getLineContent(r))return!1;return!0}computeMoreMinimalEdits(e,t){return dt(this,void 0,void 0,(function*(){const n=this._getModel(e);if(!n)return t;const r=[];let i=void 0;for(var{range:o,text:s,eol:a}of t=t.slice(0).sort((e,t)=>e.range&&t.range?pe.compareRangesUsingStarts(e.range,t.range):(e.range?0:1)-(t.range?0:1)))if("number"==typeof a&&(i=a),(!pe.isEmpty(o)||s)&&(a=n.getValueInRange(o),a!==(s=s.replace(/\r\n|\n|\r/g,n.eol))))if(Math.max(s.length,a.length)>gt._diffLimit)r.push({range:o,text:s});else{a=a,c=s,f=!1;var a=new F(new D(a),new D(c)).ComputeDiff(f).changes,u=n.offsetAt(pe.lift(o).getStartPosition());for(const e of a){var l=n.positionAt(u+e.originalStart),h=n.positionAt(u+e.originalStart+e.originalLength);l={text:s.substr(e.modifiedStart,e.modifiedLength),range:{startLineNumber:l.lineNumber,startColumn:l.column,endLineNumber:h.lineNumber,endColumn:h.column}};n.getValueInRange(l.range)!==l.text&&r.push(l)}}var c,f;return"number"==typeof i&&r.push({eol:i,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),r}))}computeLinks(e){return dt(this,void 0,void 0,(function*(){var t=this._getModel(e);return t?(t=t)&&"function"==typeof t.getLineCount&&"function"==typeof t.getLineContent?Ue.computeLinks(t):[]:null}))}textualSuggest(e,t,n,r){return dt(this,void 0,void 0,(function*(){const i=new Ke(!0);var o=new RegExp(n,r);const s=new Set;e:for(var a of e){const e=this._getModel(a);if(e)for(var u of e.words(o))if(u!==t&&isNaN(Number(u))&&(s.add(u),s.size>gt._suggestionsLimit))break e}return{words:Array.from(s),duration:i.elapsed()}}))}computeWordRanges(e,t,n,r){return dt(this,void 0,void 0,(function*(){let i=this._getModel(e);if(!i)return Object.create(null);var o=new RegExp(n,r);const s=Object.create(null);for(let e=t.startLineNumber;e<t.endLineNumber;e++)for(const t of i.getLineWords(e,o))if(isNaN(Number(t.word))){let n=s[t.word];n||(n=[],s[t.word]=n),n.push({startLineNumber:e,startColumn:t.startColumn,endLineNumber:e,endColumn:t.endColumn})}return s}))}navigateValueSet(e,t,n,r,i){return dt(this,void 0,void 0,(function*(){let o=this._getModel(e);var s,a,u;return o&&(a=new RegExp(r,i),t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1}),s=o.getValueInRange(t),a=o.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},a))?(u=o.getValueInRange(a),Ve.INSTANCE.navigateValueSet(t,s,a,u,n)):null}))}loadForeignModule(e,t,n){return n=C(n,(e,t)=>this._host.fhr(e,t)),this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory({host:n,getMirrorModels:()=>this._getModels()},t),Promise.resolve(_(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(e,t){if(!this._foreignModule||"function"!=typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(e){return Promise.reject(e)}}}gt._diffLimit=1e5,gt._suggestionsLimit=1e4,"function"==typeof importScripts&&(b.a.monaco={editor:void 0,languages:void 0,CancellationTokenSource:rt,Emitter:et,KeyCode:In,KeyMod:ct,Position:ge,Range:pe,Selection:lt,SelectionDirection:ui,MarkerSeverity:hn,MarkerTag:mn,Uri:oe,Token:ht});let pt=!1;function vt(e){if(!pt){pt=!0;const t=new x(e=>{self.postMessage(e)},t=>new gt(t,e));self.onmessage=e=>{t.onmessage(e.data)}}}function yt(e,t){var n=e.length,r=0,i="",o=0,s=16,a=0,u=0,l=0,h=0,c=0;function f(){for(var t="",i=r;;){if(n<=r){t+=e.substring(i,r),c=2;break}var o=e.charCodeAt(r);if(34===o){t+=e.substring(i,r),r++;break}if(92===o){if(t+=e.substring(i,r),n<=++r){c=2;break}switch(e.charCodeAt(r++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:var s=function(t,n){for(var i=0,o=0;i<t||!n;){var s=e.charCodeAt(r);if(48<=s&&s<=57)o=16*o+s-48;else if(65<=s&&s<=70)o=16*o+s-65+10;else{if(!(97<=s&&s<=102))break;o=16*o+s-97+10}r++,i++}return i<t?-1:o}(4,!0);0<=s?t+=String.fromCharCode(s):c=4;break;default:c=5}i=r}else{if(0<=o&&o<=31){if(_t(o)){t+=e.substring(i,r),c=2;break}c=6}r++}}return t}function d(){if(i="",c=0,u=a,h=l,n<=(o=r))return o=n,s=17;var t=e.charCodeAt(r);if(bt(t)){for(;r++,i+=String.fromCharCode(t),bt(t=e.charCodeAt(r)););return s=15}if(_t(t))return r++,i+=String.fromCharCode(t),13===t&&10===e.charCodeAt(r)&&(r++,i+="\n"),a++,l=r,s=14;switch(t){case 123:return r++,s=1;case 125:return r++,s=2;case 91:return r++,s=3;case 93:return r++,s=4;case 58:return r++,s=6;case 44:return r++,s=5;case 34:return r++,i=f(),s=10;case 47:var d=r-1;if(47===e.charCodeAt(r+1)){for(r+=2;r<n&&!_t(e.charCodeAt(r));)r++;return i=e.substring(d,r),s=12}if(42!==e.charCodeAt(r+1))return i+=String.fromCharCode(t),r++,s=16;r+=2;for(var m=n-1,g=!1;r<m;){var p=e.charCodeAt(r);if(42===p&&47===e.charCodeAt(r+1)){r+=2,g=!0;break}r++,_t(p)&&(13===p&&10===e.charCodeAt(r)&&r++,a++,l=r)}return g||(r++,c=1),i=e.substring(d,r),s=13;case 45:if(i+=String.fromCharCode(t),++r===n||!Ct(e.charCodeAt(r)))return s=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return i+=function(){var t=r;if(48===e.charCodeAt(r))r++;else for(r++;r<e.length&&Ct(e.charCodeAt(r));)r++;if(r<e.length&&46===e.charCodeAt(r)){if(!(++r<e.length&&Ct(e.charCodeAt(r))))return c=3,e.substring(t,r);for(r++;r<e.length&&Ct(e.charCodeAt(r));)r++}var n=r;if(r<e.length&&(69===e.charCodeAt(r)||101===e.charCodeAt(r)))if((++r<e.length&&43===e.charCodeAt(r)||45===e.charCodeAt(r))&&r++,r<e.length&&Ct(e.charCodeAt(r))){for(r++;r<e.length&&Ct(e.charCodeAt(r));)r++;n=r}else c=3;return e.substring(t,n)}(),s=11;default:for(;r<n&&function(e){if(!bt(e)&&!_t(e)){switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return}return 1}}(t);)r++,t=e.charCodeAt(r);if(o!==r)switch(i=e.substring(o,r)){case"true":return s=8;case"false":return s=9;case"null":return s=7}else i+=String.fromCharCode(t),r++;return s=16}}return{setPosition:function(e){r=e,i="",s=16,c=o=0},getPosition:function(){return r},scan:(t=void 0!==t&&t)?function(){for(var e;12<=(e=d())&&e<=15;);return e}:d,getToken:function(){return s},getTokenValue:function(){return i},getTokenOffset:function(){return o},getTokenLength:function(){return r-o},getTokenStartLine:function(){return u},getTokenStartCharacter:function(){return o-h},getTokenError:function(){return c}}}function bt(e){return 32===e||9===e||11===e||12===e||160===e||5760===e||8192<=e&&e<=8203||8239===e||8287===e||12288===e||65279===e}function _t(e){return 10===e||13===e||8232===e||8233===e}function Ct(e){return 48<=e&&e<=57}function St(e,t,n){var r,i,o,s;if(t){for(o=t.offset,s=o+t.length,i=o;0<i&&!xt(e,i-1);)i--;for(var a=s;a<e.length&&!xt(e,a);)a++;y=e.substring(i,a),r=function(e,t){for(var n=0,r=0,i=t.tabSize||4;n<e.length;){var o=e.charAt(n);if(" "===o)r++;else{if("\t"!==o)break;r+=i}n++}return Math.floor(r/i)}(y,n)}else o=i=r=0,s=(y=e).length;var u=function(e,t){for(var n=0;n<t.length;n++){var r=t.charAt(n);if("\r"===r)return n+1<t.length&&"\n"===t.charAt(n+1)?"\r\n":"\r";if("\n"===r)return"\n"}return e&&e.eol||"\n"}(n,e),l=!1,h=0,c=n.insertSpaces?At(" ",n.tabSize||4):"\t",f=yt(y,!1),d=!1;function m(){return u+At(c,r+h)}function g(){var e=f.scan();for(l=!1;15===e||14===e;)l=l||14===e,e=f.scan();return d=16===e||0!==f.getTokenError(),e}var p=[];function v(n,r,i){d||t&&!(r<s&&o<i)||e.substring(r,i)===n||p.push({offset:r,length:i-r,content:n})}var y,b=g();for(17!==b&&(y=f.getTokenOffset()+i,v(At(c,r),i,y));17!==b;){for(var _=f.getTokenOffset()+f.getTokenLength()+i,C=g(),S="",A=!1;!l&&(12===C||13===C);)v(" ",_,f.getTokenOffset()+i),_=f.getTokenOffset()+f.getTokenLength()+i,S=(A=12===C)?m():"",C=g();if(2===C)1!==b&&(h--,S=m());else if(4===C)3!==b&&(h--,S=m());else{switch(b){case 3:case 1:h++,S=m();break;case 5:case 12:S=m();break;case 13:l?S=m():A||(S=" ");break;case 6:A||(S=" ");break;case 10:if(6===C){A||(S="");break}case 7:case 8:case 9:case 11:case 2:case 4:12===C||13===C?A||(S=" "):5!==C&&17!==C&&(d=!0);break;case 16:d=!0}!l||12!==C&&13!==C||(S=m())}v(S=17===C?n.insertFinalNewline?u:"":S,_,f.getTokenOffset()+i),b=C}return p}function At(e,t){for(var n="",r=0;r<t;r++)n+=e;return n}function xt(e,t){return-1!=="\r\n".indexOf(e.charAt(t))}function Et(e,t,n){void 0===n&&(n=ft.DEFAULT);var r=yt(e,!1);function i(e){return e?function(){return e(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:function(){return!0}}function o(e){return e?function(t){return e(t,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:function(){return!0}}var s=i(t.onObjectBegin),a=o(t.onObjectProperty),u=i(t.onObjectEnd),l=i(t.onArrayBegin),h=i(t.onArrayEnd),c=o(t.onLiteralValue),f=o(t.onSeparator),d=i(t.onComment),m=o(t.onError),g=n&&n.disallowComments,p=n&&n.allowTrailingComma;function v(){for(;;){var e=r.scan();switch(r.getTokenError()){case 4:y(14);break;case 5:y(15);break;case 3:y(13);break;case 1:g||y(11);break;case 2:y(12);break;case 6:y(16)}switch(e){case 12:case 13:g?y(10):d();break;case 16:y(1);break;case 15:case 14:break;default:return e}}}function y(e,t,n){if(void 0===t&&(t=[]),void 0===n&&(n=[]),m(e),0<t.length+n.length)for(var i=r.getToken();17!==i;){if(-1!==t.indexOf(i)){v();break}if(-1!==n.indexOf(i))break;i=v()}}function b(e){var t=r.getTokenValue();return(e?c:a)(t),v(),!0}function _(){s(),v();for(var e=!1;2!==r.getToken()&&17!==r.getToken();){if(5===r.getToken()){if(e||y(4,[],[]),f(","),v(),2===r.getToken()&&p)break}else e&&y(6,[],[]);!function(){if(10===r.getToken())return b(!1),6===r.getToken()?(f(":"),v(),C()||y(4,[],[2,5])):y(5,[],[2,5]),1;y(3,[],[2,5])}()&&y(4,[],[2,5]),e=!0}return u(),2!==r.getToken()?y(7,[2],[]):v(),!0}function C(){switch(r.getToken()){case 3:l(),v();for(var e=!1;4!==r.getToken()&&17!==r.getToken();){if(5===r.getToken()){if(e||y(4,[],[]),f(","),v(),4===r.getToken()&&p)break}else e&&y(6,[],[]);C()||y(4,[],[4,5]),e=!0}return h(),4!==r.getToken()?y(8,[4],[]):v(),1;case 1:return _();case 10:return b(!0);default:switch(r.getToken()){case 11:var t=r.getTokenValue();t=Number(t);isNaN(t)&&(y(2),t=0),c(t);break;case 7:c(null);break;case 8:c(!0);break;case 9:c(!1);break;default:return}return v(),1}}return v(),17===r.getToken()?!!n.allowEmptyContent||(y(4,[],[]),!1):C()?(17!==r.getToken()&&y(9,[],[]),!0):(y(4,[],[]),!1)}self.onmessage=e=>{pt||vt(null)},(ft=ft||{}).DEFAULT={allowTrailingComma:!1};var wt,Nt,Lt,kt,Tt,Ot,Pt,It,Mt,jt,Dt,Rt,Ut,Vt,Ft,qt,$t=yt,Kt=function(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=ft.DEFAULT);var r=null,i=[],o=[];function s(e){Array.isArray(i)?i.push(e):null!==r&&(i[r]=e)}return Et(e,{onObjectBegin:function(){var e={};s(e),o.push(i),i=e,r=null},onObjectProperty:function(e){r=e},onObjectEnd:function(){i=o.pop()},onArrayBegin:function(){var e=[];s(e),o.push(i),i=e,r=null},onArrayEnd:function(){i=o.pop()},onLiteralValue:s,onError:function(e,n,r){t.push({error:e,offset:n,length:r})}},n),i[0]},Bt=function e(t,n,r){if(void 0===(l=r=void 0!==r&&r)&&(l=!1),(u=n)>=(a=t).offset&&u<a.offset+a.length||l&&u===a.offset+a.length){var i=t.children;if(Array.isArray(i))for(var o=0;o<i.length&&i[o].offset<=n;o++){var s=e(i[o],n,r);if(s)return s}return t}var a,u,l},Wt=function e(t){var n,r;return t.parent&&t.parent.children?(n=e(t.parent),"property"===t.parent.type?(r=t.parent.children[0].value,n.push(r)):"array"===t.parent.type&&-1!==(r=t.parent.children.indexOf(t))&&n.push(r),n):[]},Yt=function e(t){switch(t.type){case"array":return t.children.map(e);case"object":for(var n=Object.create(null),r=0,i=t.children;r<i.length;r++){var o=i[r],s=o.children[1];s&&(n[o.children[0].value]=e(s))}return n;case"null":case"string":case"number":case"boolean":return t.value;default:return}};function Ht(e,t){if(e===t)return 1;if(null!=e&&null!=t&&typeof e==typeof t&&"object"==typeof e&&Array.isArray(e)===Array.isArray(t)){var n,r;if(Array.isArray(e)){if(e.length!==t.length)return;for(n=0;n<e.length;n++)if(!Ht(e[n],t[n]))return}else{var i=[];for(r in e)i.push(r);i.sort();var o=[];for(r in t)o.push(r);if(o.sort(),!Ht(i,o))return;for(n=0;n<i.length;n++)if(!Ht(e[i[n]],t[i[n]]))return}return 1}}function zt(e){return"number"==typeof e}function Jt(e){return void 0!==e}function Gt(e){return"boolean"==typeof e}function Qt(e,t){if(!(e.length<t.length)){for(var n=0;n<t.length;n++)if(e[n]!==t[n])return;return 1}}function Xt(e,t){var n=e.length-t.length;return 0<n?e.lastIndexOf(t)===n:0==n&&e===t}function Zt(e){return Qt(e,"(?i)")?new RegExp(e.substring(4),"i"):new RegExp(e)}(t=wt=wt||{}).MIN_VALUE=0,t.MAX_VALUE=2147483647,(xn=Nt=Nt||{}).create=function(e,t){return{line:e=e===Number.MAX_VALUE?wt.MAX_VALUE:e,character:t=t===Number.MAX_VALUE?wt.MAX_VALUE:t}},xn.is=function(e){return An.objectLiteral(e)&&An.uinteger(e.line)&&An.uinteger(e.character)},(In=Lt=Lt||{}).create=function(e,t,n,r){if(An.uinteger(e)&&An.uinteger(t)&&An.uinteger(n)&&An.uinteger(r))return{start:Nt.create(e,t),end:Nt.create(n,r)};if(Nt.is(e)&&Nt.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments["+e+", "+t+", "+n+", "+r+"]")},In.is=function(e){return An.objectLiteral(e)&&Nt.is(e.start)&&Nt.is(e.end)},(ui=kt=kt||{}).create=function(e,t){return{uri:e,range:t}},ui.is=function(e){return An.defined(e)&&Lt.is(e.range)&&(An.string(e.uri)||An.undefined(e.uri))},(hn=un=un||{}).create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},hn.is=function(e){return An.numberRange(e.red,0,1)&&An.numberRange(e.green,0,1)&&An.numberRange(e.blue,0,1)&&An.numberRange(e.alpha,0,1)},(mn=Tt=Tt||{}).Comment="comment",mn.Imports="imports",mn.Region="region",(t=Ot=Ot||{}).create=function(e,t){return{location:e,message:t}},t.is=function(e){return An.defined(e)&&kt.is(e.location)&&An.string(e.message)},(xn=Pt=Pt||{}).Error=1,xn.Warning=2,xn.Information=3,xn.Hint=4,(On||{}).is=function(e){return null!=e&&An.string(e.href)},(In=It=It||{}).create=function(e,t,n,r,i,o){return e={range:e,message:t},An.defined(n)&&(e.severity=n),An.defined(r)&&(e.code=r),An.defined(i)&&(e.source=i),An.defined(o)&&(e.relatedInformation=o),e},In.is=function(e){var t;return An.defined(e)&&Lt.is(e.range)&&An.string(e.message)&&(An.number(e.severity)||An.undefined(e.severity))&&(An.integer(e.code)||An.string(e.code)||An.undefined(e.code))&&(An.undefined(e.codeDescription)||An.string(null==(t=e.codeDescription)?void 0:t.href))&&(An.string(e.source)||An.undefined(e.source))&&(An.undefined(e.relatedInformation)||An.typedArray(e.relatedInformation,Ot.is))},(ui=Bn=Bn||{}).create=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return e={title:e,command:t},An.defined(n)&&0<n.length&&(e.arguments=n),e},ui.is=function(e){return An.defined(e)&&An.string(e.title)&&An.string(e.command)},(un=Mt=Mt||{}).replace=function(e,t){return{range:e,newText:t}},un.insert=function(e,t){return{range:{start:e,end:e},newText:t}},un.del=function(e){return{range:e,newText:""}},un.is=function(e){return An.objectLiteral(e)&&An.string(e.newText)&&Lt.is(e.range)},(hn=jt=jt||{}).create=function(e,t,n){return e={label:e},void 0!==t&&(e.needsConfirmation=t),void 0!==n&&(e.description=n),e},hn.is=function(e){return void 0!==e&&An.objectLiteral(e)&&An.string(e.label)&&(An.boolean(e.needsConfirmation)||void 0===e.needsConfirmation)&&(An.string(e.description)||void 0===e.description)},(Dt||(Dt={})).is=function(e){return"string"==typeof e},(mn=Rt=Rt||{}).replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},mn.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},mn.del=function(e,t){return{range:e,newText:"",annotationId:t}},mn.is=function(e){return Mt.is(e)&&(jt.is(e.annotationId)||Dt.is(e.annotationId))},(t=Ut=Ut||{}).create=function(e,t){return{textDocument:e,edits:t}},t.is=function(e){return An.defined(e)&&nn.is(e.textDocument)&&Array.isArray(e.edits)},(xn=Vt=Vt||{}).create=function(e,t,n){return e={kind:"create",uri:e},void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(e.options=t),void 0!==n&&(e.annotationId=n),e},xn.is=function(e){return e&&"create"===e.kind&&An.string(e.uri)&&(void 0===e.options||(void 0===e.options.overwrite||An.boolean(e.options.overwrite))&&(void 0===e.options.ignoreIfExists||An.boolean(e.options.ignoreIfExists)))&&(void 0===e.annotationId||Dt.is(e.annotationId))},(On=Ft=Ft||{}).create=function(e,t,n,r){return e={kind:"rename",oldUri:e,newUri:t},void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(e.options=n),void 0!==r&&(e.annotationId=r),e},On.is=function(e){return e&&"rename"===e.kind&&An.string(e.oldUri)&&An.string(e.newUri)&&(void 0===e.options||(void 0===e.options.overwrite||An.boolean(e.options.overwrite))&&(void 0===e.options.ignoreIfExists||An.boolean(e.options.ignoreIfExists)))&&(void 0===e.annotationId||Dt.is(e.annotationId))},(In=qt=qt||{}).create=function(e,t,n){return e={kind:"delete",uri:e},void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(e.options=t),void 0!==n&&(e.annotationId=n),e},In.is=function(e){return e&&"delete"===e.kind&&An.string(e.uri)&&(void 0===e.options||(void 0===e.options.recursive||An.boolean(e.options.recursive))&&(void 0===e.options.ignoreIfNotExists||An.boolean(e.options.ignoreIfNotExists)))&&(void 0===e.annotationId||Dt.is(e.annotationId))},(qn||(qn={})).is=function(e){return e&&(void 0!==e.changes||void 0!==e.documentChanges)&&(void 0===e.documentChanges||e.documentChanges.every((function(e){return An.string(e.kind)?Vt.is(e)||Ft.is(e)||qt.is(e):Ut.is(e)})))},tn.prototype.insert=function(e,t,n){var r;n=void 0===n?Mt.insert(e,t):Dt.is(n)?Rt.insert(e,t,r=n):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(n),Rt.insert(e,t,r));if(this.edits.push(n),void 0!==r)return r},tn.prototype.replace=function(e,t,n){var r;n=void 0===n?Mt.replace(e,t):Dt.is(n)?Rt.replace(e,t,r=n):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(n),Rt.replace(e,t,r));if(this.edits.push(n),void 0!==r)return r},tn.prototype.delete=function(e,t){var n;t=void 0===t?Mt.del(e):Dt.is(t)?Rt.del(e,n=t):(this.assertChangeAnnotations(this.changeAnnotations),n=this.changeAnnotations.manage(t),Rt.del(e,n));if(this.edits.push(t),void 0!==n)return n},tn.prototype.add=function(e){this.edits.push(e)},tn.prototype.all=function(){return this.edits},tn.prototype.clear=function(){this.edits.splice(0,this.edits.length)},tn.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")};var en=tn;function tn(e,t){this.edits=e,this.changeAnnotations=t}Nn.prototype.all=function(){return this._annotations},Object.defineProperty(Nn.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),Nn.prototype.manage=function(e,t){var n;if(Dt.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error("Id "+n+" is already in use.");if(void 0===t)throw new Error("No annotation provided for id "+n);return this._annotations[n]=t,this._size++,n},Nn.prototype.nextId=function(){return this._counter++,this._counter.toString()};var nn,rn,on,sn,an,un,ln,hn,cn,fn,dn,mn,gn,pn,vn,yn,bn,_n,Cn,Sn,An,xn,En,wn=Nn;function Nn(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}function Ln(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e).documentChanges?(this._changeAnnotations=new wn(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){var n;Ut.is(e)&&(n=new en(e.edits,t._changeAnnotations),t._textEditChanges[e.textDocument.uri]=n)}))):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new en(e.changes[n]);t._textEditChanges[n]=r})):this._workspaceEdit={}}function kn(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}Object.defineProperty(Ln.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),Ln.prototype.getTextEditChange=function(e){if(nn.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version};(n=this._textEditChanges[t.uri])||(this._workspaceEdit.documentChanges.push({textDocument:t,edits:r=[]}),n=new en(r,this._changeAnnotations),this._textEditChanges[t.uri]=n)}else{if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var n,r;(n=this._textEditChanges[e])||(this._workspaceEdit.changes[e]=r=[],n=new en(r),this._textEditChanges[e]=n)}return n},Ln.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new wn,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},Ln.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},Ln.prototype.createFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i;if(jt.is(t)||Dt.is(t)?r=t:n=t,t=void 0===r?Vt.create(e,n):(i=Dt.is(r)?r:this._changeAnnotations.manage(r),Vt.create(e,n,i)),this._workspaceEdit.documentChanges.push(t),void 0!==i)return i},Ln.prototype.renameFile=function(e,t,n,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,o;if(jt.is(n)||Dt.is(n)?i=n:r=n,n=void 0===i?Ft.create(e,t,r):(o=Dt.is(i)?i:this._changeAnnotations.manage(i),Ft.create(e,t,r,o)),this._workspaceEdit.documentChanges.push(n),void 0!==o)return o},Ln.prototype.deleteFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i;if(jt.is(t)||Dt.is(t)?r=t:n=t,t=void 0===r?qt.create(e,n):(i=Dt.is(r)?r:this._changeAnnotations.manage(r),qt.create(e,n,i)),this._workspaceEdit.documentChanges.push(t),void 0!==i)return i},(Bn=nn=nn||{}).create=function(e,t){return{uri:e,version:t}},Bn.is=function(e){return An.defined(e)&&An.string(e.uri)&&(null===e.version||An.integer(e.version))},(ui=rn=rn||{}).PlainText="plaintext",ui.Markdown="markdown",(on=rn=rn||{}).is=function(e){return e===on.PlainText||e===on.Markdown},(sn||(sn={})).is=function(e){var t=e;return An.objectLiteral(e)&&rn.is(t.kind)&&An.string(t.value)},(un=an=an||{}).Text=1,un.Method=2,un.Function=3,un.Constructor=4,un.Field=5,un.Variable=6,un.Class=7,un.Interface=8,un.Module=9,un.Property=10,un.Unit=11,un.Value=12,un.Enum=13,un.Keyword=14,un.Snippet=15,un.Color=16,un.File=17,un.Reference=18,un.Folder=19,un.EnumMember=20,un.Constant=21,un.Struct=22,un.Event=23,un.Operator=24,un.TypeParameter=25,(hn=ln=ln||{}).PlainText=1,hn.Snippet=2,(cn||(cn={})).create=function(e){return{label:e}},(fn||{}).create=function(e,t){return{items:e||[],isIncomplete:!!t}},(mn=dn=dn||{}).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},mn.is=function(e){return An.string(e)||An.objectLiteral(e)&&An.string(e.language)&&An.string(e.value)},(gn||{}).is=function(e){var t=e;return!!t&&An.objectLiteral(t)&&(sn.is(t.contents)||dn.is(t.contents)||An.typedArray(t.contents,dn.is))&&(void 0===e.range||Lt.is(e.range))},(pn||{}).create=function(e,t){return t?{label:e,documentation:t}:{label:e}},(vn||{}).create=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return e={label:e},An.defined(t)&&(e.documentation=t),An.defined(n)?e.parameters=n:e.parameters=[],e},(yn||{}).create=function(e,t){return e={range:e},An.number(t)&&(e.kind=t),e},(t=bn=bn||{}).File=1,t.Module=2,t.Namespace=3,t.Package=4,t.Class=5,t.Method=6,t.Property=7,t.Field=8,t.Constructor=9,t.Enum=10,t.Interface=11,t.Function=12,t.Variable=13,t.Constant=14,t.String=15,t.Number=16,t.Boolean=17,t.Array=18,t.Object=19,t.Key=20,t.Null=21,t.EnumMember=22,t.Struct=23,t.Event=24,t.Operator=25,t.TypeParameter=26,(_n||{}).create=function(e,t,n,r,i){return e={name:e,kind:t,location:{uri:r,range:n}},i&&(e.containerName=i),e},(Sn=Cn=Cn||{}).create=function(e,t){return{range:e,parent:t}},Sn.is=function(e){return void 0!==e&&Lt.is(e.range)&&(void 0===e.parent||Sn.is(e.parent))},Object.defineProperty(kn.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(kn.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(kn.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),kn.prototype.getText=function(e){var t;return e?(t=this.offsetAt(e.start),e=this.offsetAt(e.end),this._content.substring(t,e)):this._content},kn.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},kn.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,n=!0,r=0;r<t.length;r++){n&&(e.push(r),n=!1);var i=t.charAt(r);n="\r"===i||"\n"===i;"\r"===i&&r+1<t.length&&"\n"===t.charAt(r+1)&&r++}n&&0<t.length&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},kn.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return Nt.create(0,e);for(;n<r;){var i=Math.floor((n+r)/2);t[i]>e?r=i:n=i+1}var o=n-1;return Nt.create(o,e-t[o])},kn.prototype.offsetAt=function(e){var t,n=this.getLineOffsets();return e.line>=n.length?this._content.length:e.line<0?0:(t=n[e.line],n=e.line+1<n.length?n[e.line+1]:this._content.length,Math.max(Math.min(t+e.character,n),t))},Object.defineProperty(kn.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),xn=An=An||{},En=Object.prototype.toString,xn.defined=function(e){return void 0!==e},xn.undefined=function(e){return void 0===e},xn.boolean=function(e){return!0===e||!1===e},xn.string=function(e){return"[object String]"===En.call(e)},xn.number=function(e){return"[object Number]"===En.call(e)},xn.numberRange=function(e,t,n){return"[object Number]"===En.call(e)&&t<=e&&e<=n},xn.integer=function(e){return"[object Number]"===En.call(e)&&-2147483648<=e&&e<=2147483647},xn.uinteger=function(e){return"[object Number]"===En.call(e)&&0<=e&&e<=2147483647},xn.func=function(e){return"[object Function]"===En.call(e)},xn.objectLiteral=function(e){return null!==e&&"object"==typeof e},xn.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)},Object.defineProperty(jn.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(jn.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(jn.prototype,"version",{get:function(){return this._version},enumerable:!0,configurable:!0}),jn.prototype.getText=function(e){var t;return e?(t=this.offsetAt(e.start),e=this.offsetAt(e.end),this._content.substring(t,e)):this._content},jn.prototype.update=function(e,t){for(var n=0,r=e;n<r.length;n++){var i=r[n];if(jn.isIncremental(i)){var o=Rn(i.range),s=this.offsetAt(o.start),a=this.offsetAt(o.end),u=(this._content=this._content.substring(0,s)+i.text+this._content.substring(a,this._content.length),Math.max(o.start.line,0)),l=(o=Math.max(o.end.line,0),this._lineOffsets),h=Dn(i.text,!1,s);if(o-u===h.length)for(var c=0,f=h.length;c<f;c++)l[c+u+1]=h[c];else h.length<1e4?l.splice.apply(l,[u+1,o-u].concat(h)):this._lineOffsets=l=l.slice(0,u+1).concat(h,l.slice(o+1));var d=i.text.length-(a-s);if(0!=d)for(c=u+1+h.length,f=l.length;c<f;c++)l[c]=l[c]+d}else{if(!jn.isFull(i))throw new Error("Unknown change event received");this._content=i.text,this._lineOffsets=void 0}}this._version=t},jn.prototype.getLineOffsets=function(){return void 0===this._lineOffsets&&(this._lineOffsets=Dn(this._content,!0)),this._lineOffsets},jn.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return{line:0,character:e};for(;n<r;){var i=Math.floor((n+r)/2);t[i]>e?r=i:n=i+1}var o=n-1;return{line:o,character:e-t[o]}},jn.prototype.offsetAt=function(e){var t,n=this.getLineOffsets();return e.line>=n.length?this._content.length:e.line<0?0:(t=n[e.line],n=e.line+1<n.length?n[e.line+1]:this._content.length,Math.max(Math.min(t+e.character,n),t))},Object.defineProperty(jn.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!0,configurable:!0}),jn.isIncremental=function(e){return null!=e&&"string"==typeof e.text&&void 0!==e.range&&(void 0===e.rangeLength||"number"==typeof e.rangeLength)},jn.isFull=function(e){return null!=e&&"string"==typeof e.text&&void 0===e.range&&void 0===e.rangeLength};var Tn,On,Pn,In,Mn=jn;function jn(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}function Dn(e,t,n){void 0===n&&(n=0);for(var r=t?[n]:[],i=0;i<e.length;i++){var o=e.charCodeAt(i);13!==o&&10!==o||(13===o&&i+1<e.length&&10===e.charCodeAt(i+1)&&i++,r.push(n+i+1))}return r}function Rn(e){var t=e.start,n=e.end;return t.line>n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function Un(e){var t=Rn(e.range);return t!==e.range?{newText:e.newText,range:t}:e}function Vn(e,t){for(var n,r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return t=t,0===(n=r).length?t:t.replace(/\{(\d+)\}/g,(function(e,t){return t=t[0],void 0!==n[t]?n[t]:e}))}(On=Tn=Tn||{}).create=function(e,t,n,r){return new Mn(e,t,n,r)},On.update=function(e,t,n){if(e instanceof Mn)return e.update(t,n),e;throw new Error("TextDocument.update: document must be created by TextDocument.create")},On.applyEdits=function(e,t){for(var n=e.getText(),r=0,i=[],o=0,s=function e(t,n){if(t.length<=1)return t;var r=t.length/2|0,i=t.slice(0,r),o=t.slice(r);e(i,n),e(o,n);for(var s=0,a=0,u=0;s<i.length&&a<o.length;){var l=n(i[s],o[a]);t[u++]=l<=0?i[s++]:o[a++]}for(;s<i.length;)t[u++]=i[s++];for(;a<o.length;)t[u++]=o[a++];return t}(t.map(Un),(function(e,t){var n=e.range.start.line-t.range.start.line;return 0==n?e.range.start.character-t.range.start.character:n}));o<s.length;o++){var a=s[o],u=e.offsetAt(a.range.start);if(u<r)throw new Error("Overlapping edit");r<u&&i.push(n.substring(r,u)),a.newText.length&&i.push(a.newText),r=e.offsetAt(a.range.end)}return i.push(n.substr(r)),i.join("")},(In=Pn=Pn||{})[In.Undefined=0]="Undefined",In[In.EnumValueMismatch=1]="EnumValueMismatch",In[In.Deprecated=2]="Deprecated",In[In.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",In[In.UnexpectedEndOfString=258]="UnexpectedEndOfString",In[In.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",In[In.InvalidUnicode=260]="InvalidUnicode",In[In.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",In[In.InvalidCharacter=262]="InvalidCharacter",In[In.PropertyExpected=513]="PropertyExpected",In[In.CommaExpected=514]="CommaExpected",In[In.ColonExpected=515]="ColonExpected",In[In.ValueExpected=516]="ValueExpected",In[In.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",In[In.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",In[In.TrailingComma=519]="TrailingComma",In[In.DuplicateKey=520]="DuplicateKey",In[In.CommentNotPermitted=521]="CommentNotPermitted",In[In.SchemaResolveError=768]="SchemaResolveError",rn.Markdown,rn.PlainText,Fn=function(e,t){return(Fn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};var Fn,qn=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Fn(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},$n=Vn,Kn={"color-hex":{errorMessage:$n("colorHexFormatWarning","Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA."),pattern:/^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/},"date-time":{errorMessage:$n("dateTimeFormatWarning","String is not a RFC3339 date-time."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},date:{errorMessage:$n("dateFormatWarning","String is not a RFC3339 date."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i},time:{errorMessage:$n("timeFormatWarning","String is not a RFC3339 time."),pattern:/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},email:{errorMessage:$n("emailFormatWarning","String is not an e-mail address."),pattern:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/}},Bn=(Object.defineProperty(Wn.prototype,"children",{get:function(){return[]},enumerable:!1,configurable:!0}),Wn.prototype.toString=function(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")},Wn);function Wn(e,t,n){void 0===n&&(n=0),this.offset=t,this.length=n,this.parent=e}qn(zn,Yn=Bn);var Yn,Hn=zn;function zn(e,t){return e=Yn.call(this,e,t)||this,e.type="null",e.value=null,e}qn(Qn,Jn=Bn);var Jn,Gn=Qn;function Qn(e,t,n){return e=Jn.call(this,e,n)||this,e.type="boolean",e.value=t,e}qn(er,Xn=Bn),Object.defineProperty(er.prototype,"children",{get:function(){return this.items},enumerable:!1,configurable:!0});var Xn,Zn=er;function er(e,t){return e=Xn.call(this,e,t)||this,e.type="array",e.items=[],e}qn(rr,tr=Bn);var tr,nr=rr;function rr(e,t){return e=tr.call(this,e,t)||this,e.type="number",e.isInteger=!0,e.value=Number.NaN,e}qn(sr,ir=Bn);var ir,or=sr;function sr(e,t,n){return e=ir.call(this,e,t,n)||this,e.type="string",e.value="",e}qn(lr,ar=Bn),Object.defineProperty(lr.prototype,"children",{get:function(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]},enumerable:!1,configurable:!0});var ar,ur=lr;function lr(e,t,n){return e=ar.call(this,e,t)||this,e.type="property",e.colonOffset=-1,e.keyNode=n,e}qn(fr,hr=Bn),Object.defineProperty(fr.prototype,"children",{get:function(){return this.properties},enumerable:!1,configurable:!0});var hr,cr=fr;function fr(e,t){return e=hr.call(this,e,t)||this,e.type="object",e.properties=[],e}function dr(e){return Gt(e)?e?{}:{not:{}}:e}gr.prototype.add=function(e){this.schemas.push(e)},gr.prototype.merge=function(e){Array.prototype.push.apply(this.schemas,e.schemas)},gr.prototype.include=function(e){return(-1===this.focusOffset||Sr(e,this.focusOffset))&&e!==this.exclude},gr.prototype.newSub=function(){return new gr(-1,this.exclude)};var mr=gr;function gr(e,t){this.focusOffset=e=void 0===e?-1:e,this.exclude=t,this.schemas=[]}Object.defineProperty(vr.prototype,"schemas",{get:function(){return[]},enumerable:!1,configurable:!0}),vr.prototype.add=function(e){},vr.prototype.merge=function(e){},vr.prototype.include=function(e){return!0},vr.prototype.newSub=function(){return this},vr.instance=new vr;var pr=vr;function vr(){}br.prototype.hasProblems=function(){return!!this.problems.length},br.prototype.mergeAll=function(e){for(var t=0,n=e;t<n.length;t++){var r=n[t];this.merge(r)}},br.prototype.merge=function(e){this.problems=this.problems.concat(e.problems)},br.prototype.mergeEnumValues=function(e){if(!this.enumValueMatch&&!e.enumValueMatch&&this.enumValues&&e.enumValues){this.enumValues=this.enumValues.concat(e.enumValues);for(var t=0,n=this.problems;t<n.length;t++){var r=n[t];r.code===Pn.EnumValueMismatch&&(r.message=$n("enumWarning","Value is not accepted. Valid values: {0}.",this.enumValues.map((function(e){return JSON.stringify(e)})).join(", ")))}}},br.prototype.mergePropertyMatch=function(e){this.merge(e),this.propertiesMatches++,(e.enumValueMatch||!e.hasProblems()&&e.propertiesMatches)&&this.propertiesValueMatches++,e.enumValueMatch&&e.enumValues&&1===e.enumValues.length&&this.primaryValueMatches++},br.prototype.compare=function(e){var t=this.hasProblems();return t!==e.hasProblems()?t?-1:1:this.enumValueMatch!==e.enumValueMatch?e.enumValueMatch?-1:1:this.primaryValueMatches!==e.primaryValueMatches?this.primaryValueMatches-e.primaryValueMatches:this.propertiesValueMatches!==e.propertiesValueMatches?this.propertiesValueMatches-e.propertiesValueMatches:this.propertiesMatches-e.propertiesMatches};var yr=br;function br(){this.problems=[],this.propertiesMatches=0,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=void 0}function _r(e){return Yt(e)}function Cr(e){return Wt(e)}function Sr(e,t,n){return void 0===n&&(n=!1),t>=e.offset&&t<e.offset+e.length||n&&t===e.offset+e.length}xr.prototype.getNodeFromOffset=function(e,t){if(void 0===t&&(t=!1),this.root)return Bt(this.root,e,t)},xr.prototype.visit=function(e){var t;this.root&&(t=function(n){var r=e(n),i=n.children;if(Array.isArray(i))for(var o=0;o<i.length&&r;o++)r=t(i[o]);return r})(this.root)},xr.prototype.validate=function(e,t,n){var r;if(void 0===n&&(n=Pt.Warning),this.root&&t)return r=new yr,Er(this.root,t,r,pr.instance),r.problems.map((function(t){var r=Lt.create(e.positionAt(t.location.offset),e.positionAt(t.location.offset+t.location.length));return It.create(r,t.message,null!=(r=t.severity)?r:n,t.code)}))},xr.prototype.getMatchingSchemas=function(e,t,n){return t=new mr(t=void 0===t?-1:t,n),this.root&&e&&Er(this.root,e,new yr,t),t.schemas};var Ar=xr;function xr(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=[]),this.root=e,this.syntaxErrors=t,this.comments=n}function Er(e,t,n,r){if(e&&r.include(e)){var i,o,s,a,u,l,h,c,f=e;switch(f.type){case"object":for(var d=f,m=t,g=n,p=r,v=Object.create(null),y=[],b=0,_=d.properties;b<_.length;b++){var C=(q=_[b]).keyNode.value;v[C]=q.valueNode,y.push(C)}if(Array.isArray(m.required))for(var S=0,A=m.required;S<A.length;S++){var x,E=A[S];v[E]||(x=d.parent&&"property"===d.parent.type&&d.parent.keyNode,x=x?{offset:x.offset,length:x.length}:{offset:d.offset,length:1},g.problems.push({location:x,message:$n("MissingRequiredPropWarning",'Missing property "{0}".',E)}))}function w(e){for(var t=y.indexOf(e);0<=t;)y.splice(t,1),t=y.indexOf(e)}if(m.properties)for(var N=0,L=Object.keys(m.properties);N<L.length;N++){E=L[N];var k=(w(E),m.properties[E]);(F=v[E])&&(Gt(k)?k?(g.propertiesMatches++,g.propertiesValueMatches++):(q=F.parent,g.problems.push({location:{offset:q.keyNode.offset,length:q.keyNode.length},message:m.errorMessage||$n("DisallowedExtraPropWarning","Property {0} is not allowed.",E)})):(B=new yr,Er(F,k,B,p),g.mergePropertyMatch(B)))}if(m.patternProperties)for(var T=0,O=Object.keys(m.patternProperties);T<O.length;T++)for(var P=O[T],I=Zt(P),M=0,j=y.slice(0);M<j.length;M++)E=j[M],I.test(E)&&(w(E),(F=v[E])&&(Gt(k=m.patternProperties[P])?k?(g.propertiesMatches++,g.propertiesValueMatches++):(q=F.parent,g.problems.push({location:{offset:q.keyNode.offset,length:q.keyNode.length},message:m.errorMessage||$n("DisallowedExtraPropWarning","Property {0} is not allowed.",E)})):(B=new yr,Er(F,k,B,p),g.mergePropertyMatch(B))));if("object"==typeof m.additionalProperties)for(var D=0,R=y;D<R.length;D++)E=R[D],(F=v[E])&&(B=new yr,Er(F,m.additionalProperties,B,p),g.mergePropertyMatch(B));else if(!1===m.additionalProperties&&0<y.length)for(var U=0,V=y;U<V.length;U++){var F,q;E=V[U];(F=v[E])&&(q=F.parent,g.problems.push({location:{offset:q.keyNode.offset,length:q.keyNode.length},message:m.errorMessage||$n("DisallowedExtraPropWarning","Property {0} is not allowed.",E)}))}if(zt(m.maxProperties)&&d.properties.length>m.maxProperties&&g.problems.push({location:{offset:d.offset,length:d.length},message:$n("MaxPropWarning","Object has more properties than limit of {0}.",m.maxProperties)}),zt(m.minProperties)&&d.properties.length<m.minProperties&&g.problems.push({location:{offset:d.offset,length:d.length},message:$n("MinPropWarning","Object has fewer properties than the required number of {0}",m.minProperties)}),m.dependencies)for(var $=0,K=Object.keys(m.dependencies);$<K.length;$++)if(C=K[$],v[C]){var B,W=m.dependencies[C];if(Array.isArray(W))for(var Y=0,H=W;Y<H.length;Y++){var z=H[Y];v[z]?g.propertiesValueMatches++:g.problems.push({location:{offset:d.offset,length:d.length},message:$n("RequiredDependentPropWarning","Object is missing property {0} required by property {1}.",z,C)})}else(k=dr(W))&&(B=new yr,Er(d,k,B,p),g.mergePropertyMatch(B))}var J=dr(m.propertyNames);if(J)for(var G=0,Q=d.properties;G<Q.length;G++){var X=Q[G];(C=X.keyNode)&&Er(C,J,g,pr.instance)}break;case"array":var Z=f,ee=t,te=n,ne=r;if(Array.isArray(ee.items)){for(var re=ee.items,ie=0;ie<re.length;ie++){var oe=dr(re[ie]),se=new yr;(ce=Z.items[ie])?(Er(ce,oe,se,ne),te.mergePropertyMatch(se)):Z.items.length>=re.length&&te.propertiesValueMatches++}if(Z.items.length>re.length)if("object"==typeof ee.additionalItems)for(var ae=re.length;ae<Z.items.length;ae++)se=new yr,Er(Z.items[ae],ee.additionalItems,se,ne),te.mergePropertyMatch(se);else!1===ee.additionalItems&&te.problems.push({location:{offset:Z.offset,length:Z.length},message:$n("additionalItemsWarning","Array has too many items according to schema. Expected {0} or fewer.",re.length)})}else{var ue=dr(ee.items);if(ue)for(var le=0,he=Z.items;le<he.length;le++){var ce=he[le];se=new yr;Er(ce,ue,se,ne),te.mergePropertyMatch(se)}}var fe,de=dr(ee.contains);de&&!Z.items.some((function(e){var t=new yr;return Er(e,de,t,pr.instance),!t.hasProblems()}))&&te.problems.push({location:{offset:Z.offset,length:Z.length},message:ee.errorMessage||$n("requiredItemMissingWarning","Array does not contain required item.")}),zt(ee.minItems)&&Z.items.length<ee.minItems&&te.problems.push({location:{offset:Z.offset,length:Z.length},message:$n("minItemsWarning","Array has too few items. Expected {0} or more.",ee.minItems)}),zt(ee.maxItems)&&Z.items.length>ee.maxItems&&te.problems.push({location:{offset:Z.offset,length:Z.length},message:$n("maxItemsWarning","Array has too many items. Expected {0} or fewer.",ee.maxItems)}),!0!==ee.uniqueItems||(fe=_r(Z)).some((function(e,t){return t!==fe.lastIndexOf(e)}))&&te.problems.push({location:{offset:Z.offset,length:Z.length},message:$n("uniqueItemsWarning","Array has duplicate items.")});break;case"string":var me=f,ge=t,pe=n;if(zt(ge.minLength)&&me.value.length<ge.minLength&&pe.problems.push({location:{offset:me.offset,length:me.length},message:$n("minLengthWarning","String is shorter than the minimum length of {0}.",ge.minLength)}),zt(ge.maxLength)&&me.value.length>ge.maxLength&&pe.problems.push({location:{offset:me.offset,length:me.length},message:$n("maxLengthWarning","String is longer than the maximum length of {0}.",ge.maxLength)}),"string"!=typeof ge.pattern||Zt(ge.pattern).test(me.value)||pe.problems.push({location:{offset:me.offset,length:me.length},message:ge.patternErrorMessage||ge.errorMessage||$n("patternWarning",'String does not match the pattern of "{0}".',ge.pattern)}),ge.format)switch(ge.format){case"uri":case"uri-reference":var ve=void 0;me.value?(ye=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(me.value))?ye[2]||"uri"!==ge.format||(ve=$n("uriSchemeMissing","URI with a scheme is expected.")):ve=$n("uriMissing","URI is expected."):ve=$n("uriEmpty","URI expected."),ve&&pe.problems.push({location:{offset:me.offset,length:me.length},message:ge.patternErrorMessage||ge.errorMessage||$n("uriFormatWarning","String is not a URI: {0}",ve)});break;case"color-hex":case"date-time":case"date":case"time":case"email":var ye=Kn[ge.format];me.value&&ye.pattern.exec(me.value)||pe.problems.push({location:{offset:me.offset,length:me.length},message:ge.patternErrorMessage||ge.errorMessage||ye.errorMessage})}break;case"number":o=t,s=n,a=(i=f).value,zt(o.multipleOf)&&(c=-1,Number.isInteger(o.multipleOf)?c=a%o.multipleOf:(h=Re(o.multipleOf),l=Re(a),h&&l&&(u=Math.pow(10,Math.abs(l.multiplier-h.multiplier)),l.multiplier<h.multiplier?l.value*=u:h.value*=u,c=l.value%h.value)),0!==c&&s.problems.push({location:{offset:i.offset,length:i.length},message:$n("multipleOfWarning","Value is not divisible by {0}.",o.multipleOf)})),zt(u=Ue(o.minimum,o.exclusiveMinimum))&&a<=u&&s.problems.push({location:{offset:i.offset,length:i.length},message:$n("exclusiveMinimumWarning","Value is below the exclusive minimum of {0}.",u)}),zt(l=Ue(o.maximum,o.exclusiveMaximum))&&l<=a&&s.problems.push({location:{offset:i.offset,length:i.length},message:$n("exclusiveMaximumWarning","Value is above the exclusive maximum of {0}.",l)}),zt(h=Ve(o.minimum,o.exclusiveMinimum))&&a<h&&s.problems.push({location:{offset:i.offset,length:i.length},message:$n("minimumWarning","Value is below the minimum of {0}.",h)}),zt(c=Ve(o.maximum,o.exclusiveMaximum))&&c<a&&s.problems.push({location:{offset:i.offset,length:i.length},message:$n("maximumWarning","Value is above the maximum of {0}.",c)});break;case"property":return Er(f.valueNode,t,n,r)}function be(e){return f.type===e||"integer"===e&&"number"===f.type&&f.isInteger}if(Array.isArray(t.type)?t.type.some(be)||n.problems.push({location:{offset:f.offset,length:f.length},message:t.errorMessage||$n("typeArrayMismatchWarning","Incorrect type. Expected one of {0}.",t.type.join(", "))}):t.type&&!be(t.type)&&n.problems.push({location:{offset:f.offset,length:f.length},message:t.errorMessage||$n("typeMismatchWarning",'Incorrect type. Expected "{0}".',t.type)}),Array.isArray(t.allOf))for(var _e=0,Ce=t.allOf;_e<Ce.length;_e++){var Se=Ce[_e];Er(f,dr(Se),n,r)}if(e=dr(t.not),e){var Ae=new yr,xe=r.newSub();Er(f,e,Ae,xe),Ae.hasProblems()||n.problems.push({location:{offset:f.offset,length:f.length},message:$n("notSchemaWarning","Matches a schema that is not allowed.")});for(var Ee=0,we=xe.schemas;Ee<we.length;Ee++){var Ne=we[Ee];Ne.inverted=!Ne.inverted,r.add(Ne)}}function Le(e,t){for(var i=[],o=void 0,s=0,a=e;s<a.length;s++){var u,l=dr(a[s]),h=new yr,c=r.newSub();Er(f,l,h,c),h.hasProblems()||i.push(l),o?t||h.hasProblems()||o.validationResult.hasProblems()?0<(u=h.compare(o.validationResult))?o={schema:l,validationResult:h,matchingSchemas:c}:0===u&&(o.matchingSchemas.merge(c),o.validationResult.mergeEnumValues(h)):(o.matchingSchemas.merge(c),o.validationResult.propertiesMatches+=h.propertiesMatches,o.validationResult.propertiesValueMatches+=h.propertiesValueMatches):o={schema:l,validationResult:h,matchingSchemas:c}}1<i.length&&t&&n.problems.push({location:{offset:f.offset,length:1},message:$n("oneOfWarning","Matches multiple schemas when only one must validate.")}),o&&(n.merge(o.validationResult),n.propertiesMatches+=o.validationResult.propertiesMatches,n.propertiesValueMatches+=o.validationResult.propertiesValueMatches,r.merge(o.matchingSchemas)),i.length}function ke(e){var t=new yr,i=r.newSub();Er(f,dr(e),t,i),n.merge(t),n.propertiesMatches+=t.propertiesMatches,n.propertiesValueMatches+=t.propertiesValueMatches,r.merge(i)}if(Array.isArray(t.anyOf)&&Le(t.anyOf,!1),Array.isArray(t.oneOf)&&Le(t.oneOf,!0),e=dr(t.if)){Ae=e,xe=dr(t.then),e=dr(t.else);Ae=dr(Ae);var Te=new yr,Oe=r.newSub();Er(f,Ae,Te,Oe),r.merge(Oe),Te.hasProblems()?e&&ke(e):xe&&ke(xe)}if(Array.isArray(t.enum)){for(var Pe=_r(f),Ie=!1,Me=0,je=t.enum;Me<je.length;Me++){var De=je[Me];if(Ht(Pe,De)){Ie=!0;break}}n.enumValues=t.enum,(n.enumValueMatch=Ie)||n.problems.push({location:{offset:f.offset,length:f.length},code:Pn.EnumValueMismatch,message:t.errorMessage||$n("enumWarning","Value is not accepted. Valid values: {0}.",t.enum.map((function(e){return JSON.stringify(e)})).join(", "))})}Jt(t.const)&&(Ht(Pe=_r(f),t.const)?n.enumValueMatch=!0:(n.problems.push({location:{offset:f.offset,length:f.length},code:Pn.EnumValueMismatch,message:t.errorMessage||$n("constWarning","Value must be {0}.",JSON.stringify(t.const))}),n.enumValueMatch=!1),n.enumValues=[t.const]),t.deprecationMessage&&f.parent&&n.problems.push({location:{offset:f.parent.offset,length:f.parent.length},severity:Pt.Warning,message:t.deprecationMessage,code:Pn.Deprecated}),r.add({node:f,schema:t})}function Re(e){var t;e=/^(-?\d+)(?:\.(\d+))?(?:e([-+]\d+))?$/.exec(e.toString());return e&&{value:Number(e[1]+(e[2]||"")),multiplier:((null==(t=e[2])?void 0:t.length)||0)-(parseInt(e[3])||0)}}function Ue(e,t){return zt(t)?t:Gt(t)&&t?e:void 0}function Ve(e,t){if(!Gt(t)||!t)return e}}function wr(e,t){var n=[],r=-1,i=e.getText(),o=$t(i,!1),s=t&&t.collectComments?[]:void 0;function a(){for(;;){var t=o.scan();switch(function(){switch(o.getTokenError()){case 4:return l($n("InvalidUnicode","Invalid unicode sequence in string."),Pn.InvalidUnicode);case 5:return l($n("InvalidEscapeCharacter","Invalid escape character in string."),Pn.InvalidEscapeCharacter);case 3:return l($n("UnexpectedEndOfNumber","Unexpected end of number."),Pn.UnexpectedEndOfNumber);case 1:return l($n("UnexpectedEndOfComment","Unexpected end of comment."),Pn.UnexpectedEndOfComment);case 2:return l($n("UnexpectedEndOfString","Unexpected end of string."),Pn.UnexpectedEndOfString);case 6:l($n("InvalidCharacter","Invalid characters in string. Control characters must be escaped."),Pn.InvalidCharacter)}}(),t){case 12:case 13:Array.isArray(s)&&s.push(Lt.create(e.positionAt(o.getTokenOffset()),e.positionAt(o.getTokenOffset()+o.getTokenLength())));break;case 15:case 14:break;default:return t}}}function u(t,i,o,s,a){void 0===a&&(a=Pt.Error),0!==n.length&&o===r||(s=Lt.create(e.positionAt(o),e.positionAt(s)),n.push(It.create(s,t,a,i,e.languageId)),r=o)}function l(e,t,n,r,s){void 0===n&&(n=void 0),void 0===r&&(r=[]),void 0===s&&(s=[]);var l=o.getTokenOffset(),c=o.getTokenOffset()+o.getTokenLength();if(l===c&&0<l){for(l--;0<l&&/\s/.test(i.charAt(l));)l--;c=l+1}if(u(e,t,l,c),n&&h(n,!1),0<r.length+s.length)for(var f=o.getToken();17!==f;){if(-1!==r.indexOf(f)){a();break}if(-1!==s.indexOf(f))break;f=a()}return n}function h(e,t){return e.length=o.getTokenOffset()+o.getTokenLength()-e.offset,t&&a(),e}var c=new or(void 0,0,0);function f(t){if(1===o.getToken()){for(var n=new cr(t,o.getTokenOffset()),r=Object.create(null),i=(a(),!1);2!==o.getToken()&&17!==o.getToken();){if(5===o.getToken()){i||l($n("PropertyExpected","Property expected"),Pn.PropertyExpected);var s=o.getTokenOffset();if(a(),2===o.getToken()){i&&u($n("TrailingComma","Trailing comma"),Pn.TrailingComma,s,s+1);continue}}else i&&l($n("ExpectedComma","Expected comma"),Pn.CommaExpected);s=function(t,n){var r=d(t=new ur(t,o.getTokenOffset(),c));if(!r){if(16!==o.getToken())return;l($n("DoubleQuotesExpected","Property keys must be doublequoted"),Pn.Undefined);var i=new or(t,o.getTokenOffset(),o.getTokenLength());i.value=o.getTokenValue(),r=i,a()}if((i=n[(t.keyNode=r).value])?(u($n("DuplicateKeyWarning","Duplicate object key"),Pn.DuplicateKey,t.keyNode.offset,t.keyNode.offset+t.keyNode.length,Pt.Warning),"object"==typeof i&&u($n("DuplicateKeyWarning","Duplicate object key"),Pn.DuplicateKey,i.keyNode.offset,i.keyNode.offset+i.keyNode.length,Pt.Warning),n[r.value]=!0):n[r.value]=t,6===o.getToken())t.colonOffset=o.getTokenOffset(),a();else if(l($n("ColonExpected","Colon expected"),Pn.ColonExpected),10===o.getToken()&&e.positionAt(r.offset+r.length).line<e.positionAt(o.getTokenOffset()).line)return t.length=r.length,t;return(i=m(t))?(t.valueNode=i,t.length=i.offset+i.length-t.offset,t):l($n("ValueExpected","Value expected"),Pn.ValueExpected,t,[],[2,5])}(n,r),s?n.properties.push(s):l($n("PropertyExpected","Property expected"),Pn.PropertyExpected,void 0,[],[2,5]),i=!0}return 2!==o.getToken()?l($n("ExpectedCloseBrace","Expected comma or closing brace"),Pn.CommaOrCloseBraceExpected,n):h(n,!0)}}function d(e){if(10===o.getToken())return(e=new or(e,o.getTokenOffset())).value=o.getTokenValue(),h(e,!0)}function m(e){return function(e){if(3===o.getToken()){for(var t=new Zn(e,o.getTokenOffset()),n=(a(),!1);4!==o.getToken()&&17!==o.getToken();){if(5===o.getToken()){n||l($n("ValueExpected","Value expected"),Pn.ValueExpected);var r=o.getTokenOffset();if(a(),4===o.getToken()){n&&u($n("TrailingComma","Trailing comma"),Pn.TrailingComma,r,r+1);continue}}else n&&l($n("ExpectedComma","Expected comma"),Pn.CommaExpected);r=m(t),r?t.items.push(r):l($n("PropertyExpected","Value expected"),Pn.ValueExpected,void 0,[],[4,5]),n=!0}return 4!==o.getToken()?l($n("ExpectedCloseBracket","Expected comma or closing bracket"),Pn.CommaOrCloseBacketExpected,t):h(t,!0)}}(e)||f(e)||d(e)||function(e){if(11===o.getToken()){if(e=new nr(e,o.getTokenOffset()),0===o.getTokenError()){var t=o.getTokenValue();try{var n=JSON.parse(t);if(!zt(n))return l($n("InvalidNumberFormat","Invalid number format."),Pn.Undefined,e);e.value=n}catch(t){return l($n("InvalidNumberFormat","Invalid number format."),Pn.Undefined,e)}e.isInteger=-1===t.indexOf(".")}return h(e,!0)}}(e)||function(e){switch(o.getToken()){case 7:return h(new Hn(e,o.getTokenOffset()),!0);case 8:return h(new Gn(e,!0,o.getTokenOffset()),!0);case 9:return h(new Gn(e,!1,o.getTokenOffset()),!0);default:return}}(e)}return t=void 0,17!==a()&&((t=m(t))?17!==o.getToken()&&l($n("End of file expected","End of file expected."),Pn.Undefined):l($n("Invalid symbol","Expected a JSON object, array or literal."),Pn.Undefined)),new Ar(t,n,s)}var Nr=Vn,Lr=(kr.prototype.doResolve=function(e){for(var t=this.contributions.length-1;0<=t;t--){var n=this.contributions[t].resolveCompletion;if(n&&(n=n(e),n))return n}return this.promiseConstructor.resolve(e)},kr.prototype.doComplete=function(e,t,n){var r=this,i={items:[],isIncomplete:!1},o=e.getText(),s=e.offsetAt(t),a=n.getNodeFromOffset(s,!0);if(this.isInComment(e,a?a.offset:0,s))return Promise.resolve(i);a&&s===a.offset+a.length&&0<s&&(u=o[s-1],("object"===a.type&&"}"===u||"array"===a.type&&"]"===u)&&(a=a.parent));var u,l=this.getCurrentWord(e,s),h=!a||"string"!==a.type&&"number"!==a.type&&"boolean"!==a.type&&"null"!==a.type?(0<(u=s-l.length)&&'"'===o[u-1]&&u--,Lt.create(e.positionAt(u),t)):Lt.create(e.positionAt(a.offset),e.positionAt(a.offset+a.length)),c={},f={add:function(e){var t=e.label,n=c[t];n?(n.documentation||(n.documentation=e.documentation),n.detail||(n.detail=e.detail)):(60<(t=t.replace(/[\n]/g,"↵")).length&&(n=t.substr(0,57).trim()+"...",c[n]||(t=n)),h&&void 0!==e.insertText&&(e.textEdit=Mt.replace(h,e.insertText)),e.label=t,c[t]=e,i.items.push(e))},setAsIncomplete:function(){i.isIncomplete=!0},error:function(e){},log:function(e){},getNumberOfProposals:function(){return i.items.length}};return this.schemaService.getSchemaForResource(e.uri,n).then((function(t){var u,d=[],m=!0,g="",p=void 0;if(a&&"string"===a.type&&(u=a.parent)&&"property"===u.type&&u.keyNode===a&&(m=!u.valueNode,p=u,g=o.substr(a.offset+1,a.length-2),u&&(a=u.parent)),a&&"object"===a.type){if(a.offset===s)return i;a.properties.forEach((function(e){p&&p===e||(c[e.keyNode.value]=cn.create("__"))}));var v="",y=(m&&(v=r.evaluateSeparatorAfter(e,e.offsetAt(h.end))),t?r.getPropertyCompletions(t,n,a,m,v,f):r.getSchemaLessPropertyCompletions(n,a,g,f),Cr(a));r.contributions.forEach((function(t){t=t.collectPropertyCompletions(e.uri,y,l,m,""===v,f),t&&d.push(t)})),!t&&0<l.length&&'"'!==o.charAt(s-l.length-1)&&(f.add({kind:an.Property,label:r.getLabelForValue(l),insertText:r.getInsertTextForProperty(l,void 0,!1,v),insertTextFormat:ln.Snippet,documentation:""}),f.setAsIncomplete())}var b={};return t?r.getValueCompletions(t,n,a,s,e,f,b):r.getSchemaLessValueCompletions(n,a,s,e,f),0<r.contributions.length&&r.getContributedValueCompletions(n,a,s,e,f,d),r.promiseConstructor.all(d).then((function(){var t;return 0===f.getNumberOfProposals()&&(t=s,!a||"string"!==a.type&&"number"!==a.type&&"boolean"!==a.type&&"null"!==a.type||(t=a.offset+a.length),t=r.evaluateSeparatorAfter(e,t),r.addFillerValueCompletions(b,t,f)),i}))}))},kr.prototype.getPropertyCompletions=function(e,t,n,r,i,o){var s=this;t.getMatchingSchemas(e.schema,n.offset).forEach((function(e){if(e.node===n&&!e.inverted){var t=e.schema.properties,a=(t&&Object.keys(t).forEach((function(e){var n=t[e];"object"!=typeof n||n.deprecationMessage||n.doNotSuggest||(e={kind:an.Property,label:e,insertText:s.getInsertTextForProperty(e,n,r,i),insertTextFormat:ln.Snippet,filterText:s.getFilterTextForValue(e),documentation:s.fromMarkup(n.markdownDescription)||n.description||""},void 0!==n.suggestSortText&&(e.sortText=n.suggestSortText),e.insertText&&Xt(e.insertText,"$1"+i)&&(e.command={title:"Suggest",command:"editor.action.triggerSuggest"}),o.add(e))})),e.schema.propertyNames);if("object"==typeof a&&!a.deprecationMessage&&!a.doNotSuggest){var u=function(e,t){void 0===t&&(t=void 0),e={kind:an.Property,label:e,insertText:s.getInsertTextForProperty(e,void 0,r,i),insertTextFormat:ln.Snippet,filterText:s.getFilterTextForValue(e),documentation:t||s.fromMarkup(a.markdownDescription)||a.description||""},void 0!==a.suggestSortText&&(e.sortText=a.suggestSortText),e.insertText&&Xt(e.insertText,"$1"+i)&&(e.command={title:"Suggest",command:"editor.action.triggerSuggest"}),o.add(e)};if(a.enum)for(var l=0;l<a.enum.length;l++){var h=void 0;a.markdownEnumDescriptions&&l<a.markdownEnumDescriptions.length?h=s.fromMarkup(a.markdownEnumDescriptions[l]):a.enumDescriptions&&l<a.enumDescriptions.length&&(h=a.enumDescriptions[l]),u(a.enum[l],h)}a.const&&u(a.const)}}}))},kr.prototype.getSchemaLessPropertyCompletions=function(e,t,n,r){function i(e){e.properties.forEach((function(e){e=e.keyNode.value,r.add({kind:an.Property,label:e,insertText:s.getInsertTextForValue(e,""),insertTextFormat:ln.Snippet,filterText:s.getFilterTextForValue(e),documentation:""})}))}var o,s=this;t.parent?"property"===t.parent.type?(o=t.parent.keyNode.value,e.visit((function(e){return"property"===e.type&&e!==t.parent&&e.keyNode.value===o&&e.valueNode&&"object"===e.valueNode.type&&i(e.valueNode),!0}))):"array"===t.parent.type&&t.parent.items.forEach((function(e){"object"===e.type&&e!==t&&i(e)})):"object"===t.type&&r.add({kind:an.Property,label:"$schema",insertText:this.getInsertTextForProperty("$schema",void 0,!0,""),insertTextFormat:ln.Snippet,documentation:"",filterText:this.getFilterTextForValue("$schema")})},kr.prototype.getSchemaLessValueCompletions=function(e,t,n,r,i){var o=this,s=n;if(!t||"string"!==t.type&&"number"!==t.type&&"boolean"!==t.type&&"null"!==t.type||(s=t.offset+t.length,t=t.parent),t){var a,u=this.evaluateSeparatorAfter(r,s),l=function(e){e.parent&&!Sr(e.parent,n,!0)&&i.add({kind:o.getSuggestionKind(e.type),label:o.getLabelTextForMatchingNode(e,r),insertText:o.getInsertTextForMatchingNode(e,r,u),insertTextFormat:ln.Snippet,documentation:""}),"boolean"===e.type&&o.addBooleanValueCompletion(!e.value,u,i)};if("property"===t.type&&n>(t.colonOffset||0)){if(s=t.valueNode,s&&(n>s.offset+s.length||"object"===s.type||"array"===s.type))return;var h=t.keyNode.value;e.visit((function(e){return"property"===e.type&&e.keyNode.value===h&&e.valueNode&&l(e.valueNode),!0})),"$schema"===h&&t.parent&&!t.parent.parent&&this.addDollarSchemaCompletions(u,i)}"array"===t.type&&(t.parent&&"property"===t.parent.type?(a=t.parent.keyNode.value,e.visit((function(e){return"property"===e.type&&e.keyNode.value===a&&e.valueNode&&"array"===e.valueNode.type&&e.valueNode.items.forEach(l),!0}))):t.items.forEach(l))}else i.add({kind:this.getSuggestionKind("object"),label:"Empty object",insertText:this.getInsertTextForValue({},""),insertTextFormat:ln.Snippet,documentation:""}),i.add({kind:this.getSuggestionKind("array"),label:"Empty array",insertText:this.getInsertTextForValue([],""),insertTextFormat:ln.Snippet,documentation:""})},kr.prototype.getValueCompletions=function(e,t,n,r,i,o,s){var a=r,u=void 0,l=void 0;if(!n||"string"!==n.type&&"number"!==n.type&&"boolean"!==n.type&&"null"!==n.type||(a=n.offset+n.length,n=(l=n).parent),n){if("property"===n.type&&r>(n.colonOffset||0)){var h=n.valueNode;if(h&&r>h.offset+h.length)return;u=n.keyNode.value,n=n.parent}if(n&&(void 0!==u||"array"===n.type)){for(var c=this.evaluateSeparatorAfter(i,a),f=0,d=t.getMatchingSchemas(e.schema,n.offset,l);f<d.length;f++){var m,g=d[f];if(g.node===n&&!g.inverted&&g.schema&&("array"===n.type&&g.schema.items&&(Array.isArray(g.schema.items)?(m=this.findItemAtOffset(n,i,r))<g.schema.items.length&&this.addSchemaValueCompletions(g.schema.items[m],c,o,s):this.addSchemaValueCompletions(g.schema.items,c,o,s)),void 0!==u)){var p=!1;if(g.schema.properties&&(b=g.schema.properties[u])&&(p=!0,this.addSchemaValueCompletions(b,c,o,s)),g.schema.patternProperties&&!p)for(var v=0,y=Object.keys(g.schema.patternProperties);v<y.length;v++){var b,_=y[v];Zt(_).test(u)&&(p=!0,b=g.schema.patternProperties[_],this.addSchemaValueCompletions(b,c,o,s))}g.schema.additionalProperties&&!p&&(b=g.schema.additionalProperties,this.addSchemaValueCompletions(b,c,o,s))}}"$schema"!==u||n.parent||this.addDollarSchemaCompletions(c,o),s.boolean&&(this.addBooleanValueCompletion(!0,c,o),this.addBooleanValueCompletion(!1,c,o)),s.null&&this.addNullValueCompletion(c,o)}}else this.addSchemaValueCompletions(e.schema,"",o,s)},kr.prototype.getContributedValueCompletions=function(e,t,n,r,i,o){var s,a,u;t?(t="string"!==t.type&&"number"!==t.type&&"boolean"!==t.type&&"null"!==t.type?t:t.parent)&&"property"===t.type&&n>(t.colonOffset||0)&&(s=t.keyNode.value,(!(a=t.valueNode)||n<=a.offset+a.length)&&t.parent&&(u=Cr(t.parent),this.contributions.forEach((function(e){e=e.collectValueCompletions(r.uri,u,s,i),e&&o.push(e)})))):this.contributions.forEach((function(e){e=e.collectDefaultCompletions(r.uri,i),e&&o.push(e)}))},kr.prototype.addSchemaValueCompletions=function(e,t,n,r){var i=this;"object"==typeof e&&(this.addEnumValueCompletions(e,t,n),this.addDefaultValueCompletions(e,t,n),this.collectTypes(e,r),Array.isArray(e.allOf)&&e.allOf.forEach((function(e){return i.addSchemaValueCompletions(e,t,n,r)})),Array.isArray(e.anyOf)&&e.anyOf.forEach((function(e){return i.addSchemaValueCompletions(e,t,n,r)})),Array.isArray(e.oneOf)&&e.oneOf.forEach((function(e){return i.addSchemaValueCompletions(e,t,n,r)})))},kr.prototype.addDefaultValueCompletions=function(e,t,n,r){var i=this,o=(void 0===r&&(r=0),!1);if(Jt(e.default)){for(var s=e.type,a=e.default,u=r;0<u;u--)a=[a],s="array";n.add({kind:this.getSuggestionKind(s),label:this.getLabelForValue(a),insertText:this.getInsertTextForValue(a,t),insertTextFormat:ln.Snippet,detail:Nr("json.suggest.default","Default value")}),o=!0}Array.isArray(e.examples)&&e.examples.forEach((function(s){for(var a=e.type,u=s,l=r;0<l;l--)u=[u],a="array";n.add({kind:i.getSuggestionKind(a),label:i.getLabelForValue(u),insertText:i.getInsertTextForValue(u,t),insertTextFormat:ln.Snippet}),o=!0})),Array.isArray(e.defaultSnippets)&&e.defaultSnippets.forEach((function(s){var a,u,l=e.type,h=s.body,c=s.label;if(Jt(h)){e.type;for(var f=r;0<f;f--)h=[h];a=i.getInsertTextForSnippetValue(h,t),u=i.getFilterTextForSnippetValue(h),c=c||i.getLabelForSnippetValue(h)}else{if("string"!=typeof s.bodyText)return;var d="",m="",g="";for(f=r;0<f;f--)d=d+g+"[\n",m=m+"\n"+g+"]",g+="\t",l="array";a=d+g+s.bodyText.split("\n").join("\n"+g)+m+t,c=c||a,u=a.replace(/[\n]/g,"")}n.add({kind:i.getSuggestionKind(l),label:c,documentation:i.fromMarkup(s.markdownDescription)||s.description,insertText:a,insertTextFormat:ln.Snippet,filterText:u}),o=!0})),!o&&"object"==typeof e.items&&!Array.isArray(e.items)&&r<5&&this.addDefaultValueCompletions(e.items,t,n,r+1)},kr.prototype.addEnumValueCompletions=function(e,t,n){if(Jt(e.const)&&n.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(e.const),insertText:this.getInsertTextForValue(e.const,t),insertTextFormat:ln.Snippet,documentation:this.fromMarkup(e.markdownDescription)||e.description}),Array.isArray(e.enum))for(var r=0,i=e.enum.length;r<i;r++){var o=e.enum[r],s=this.fromMarkup(e.markdownDescription)||e.description;e.markdownEnumDescriptions&&r<e.markdownEnumDescriptions.length&&this.doesSupportMarkdown()?s=this.fromMarkup(e.markdownEnumDescriptions[r]):e.enumDescriptions&&r<e.enumDescriptions.length&&(s=e.enumDescriptions[r]),n.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(o),insertText:this.getInsertTextForValue(o,t),insertTextFormat:ln.Snippet,documentation:s})}},kr.prototype.collectTypes=function(e,t){Array.isArray(e.enum)||Jt(e.const)||(e=e.type,Array.isArray(e)?e.forEach((function(e){return t[e]=!0})):e&&(t[e]=!0))},kr.prototype.addFillerValueCompletions=function(e,t,n){e.object&&n.add({kind:this.getSuggestionKind("object"),label:"{}",insertText:this.getInsertTextForGuessedValue({},t),insertTextFormat:ln.Snippet,detail:Nr("defaults.object","New object"),documentation:""}),e.array&&n.add({kind:this.getSuggestionKind("array"),label:"[]",insertText:this.getInsertTextForGuessedValue([],t),insertTextFormat:ln.Snippet,detail:Nr("defaults.array","New array"),documentation:""})},kr.prototype.addBooleanValueCompletion=function(e,t,n){n.add({kind:this.getSuggestionKind("boolean"),label:e?"true":"false",insertText:this.getInsertTextForValue(e,t),insertTextFormat:ln.Snippet,documentation:""})},kr.prototype.addNullValueCompletion=function(e,t){t.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+e,insertTextFormat:ln.Snippet,documentation:""})},kr.prototype.addDollarSchemaCompletions=function(e,t){var n=this;this.schemaService.getRegisteredSchemaIds((function(e){return"http"===e||"https"===e})).forEach((function(r){return t.add({kind:an.Module,label:n.getLabelForValue(r),filterText:n.getFilterTextForValue(r),insertText:n.getInsertTextForValue(r,e),insertTextFormat:ln.Snippet,documentation:""})}))},kr.prototype.getLabelForValue=function(e){return JSON.stringify(e)},kr.prototype.getFilterTextForValue=function(e){return JSON.stringify(e)},kr.prototype.getFilterTextForSnippetValue=function(e){return JSON.stringify(e).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")},kr.prototype.getLabelForSnippetValue=function(e){return JSON.stringify(e).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")},kr.prototype.getInsertTextForPlainText=function(e){return e.replace(/[\\\$\}]/g,"\\$&")},kr.prototype.getInsertTextForValue=function(e,t){return e=JSON.stringify(e,null,"\t"),"{}"===e?"{$1}"+t:"[]"===e?"[$1]"+t:this.getInsertTextForPlainText(e+t)},kr.prototype.getInsertTextForSnippetValue=function(e,t){return function e(t,n,r){if(null===t||"object"!=typeof t)return r(t);var i=n+"\t";if(Array.isArray(t)){if(0===t.length)return"[]";for(var o="[\n",s=0;s<t.length;s++)o+=i+e(t[s],i,r),s<t.length-1&&(o+=","),o+="\n";return o+(n+"]")}var a=Object.keys(t);if(0===a.length)return"{}";for(o="{\n",s=0;s<a.length;s++){var u=a[s];o+=i+JSON.stringify(u)+": "+e(t[u],i,r),s<a.length-1&&(o+=","),o+="\n"}return o+(n+"}")}(e,"",(function(e){return"string"==typeof e&&"^"===e[0]?e.substr(1):JSON.stringify(e)}))+t},kr.prototype.getInsertTextForGuessedValue=function(e,t){switch(typeof e){case"object":return null===e?"${1:null}"+t:this.getInsertTextForValue(e,t);case"string":var n=(n=JSON.stringify(e)).substr(1,n.length-2);return'"${1:'+(n=this.getInsertTextForPlainText(n))+'}"'+t;case"number":case"boolean":return"${1:"+JSON.stringify(e)+"}"+t}return this.getInsertTextForValue(e,t)},kr.prototype.getSuggestionKind=function(e){var t;if(!(e=Array.isArray(e)?0<(t=e).length?t[0]:void 0:e))return an.Value;switch(e){case"string":return an.Value;case"object":return an.Module;case"property":return an.Property;default:return an.Value}},kr.prototype.getLabelTextForMatchingNode=function(e,t){switch(e.type){case"array":return"[]";case"object":return"{}";default:return t.getText().substr(e.offset,e.length)}},kr.prototype.getInsertTextForMatchingNode=function(e,t,n){switch(e.type){case"array":return this.getInsertTextForValue([],n);case"object":return this.getInsertTextForValue({},n);default:var r=t.getText().substr(e.offset,e.length)+n;return this.getInsertTextForPlainText(r)}},kr.prototype.getInsertTextForProperty=function(e,t,n,r){var i=this.getInsertTextForValue(e,"");if(!n)return i;var o;e=i+": ",n=0;if(t&&(Array.isArray(t.defaultSnippets)&&(1===t.defaultSnippets.length&&Jt(s=t.defaultSnippets[0].body)&&(o=this.getInsertTextForSnippetValue(s,"")),n+=t.defaultSnippets.length),t.enum&&(o||1!==t.enum.length||(o=this.getInsertTextForGuessedValue(t.enum[0],"")),n+=t.enum.length),Jt(t.default)&&(o=o||this.getInsertTextForGuessedValue(t.default,""),n++),Array.isArray(t.examples)&&t.examples.length&&(o=o||this.getInsertTextForGuessedValue(t.examples[0],""),n+=t.examples.length),0===n)){var s=Array.isArray(t.type)?t.type[0]:t.type;switch(s||(t.properties?s="object":t.items&&(s="array")),s){case"boolean":o="$1";break;case"string":o='"$1"';break;case"object":o="{$1}";break;case"array":o="[$1]";break;case"number":case"integer":o="${1:0}";break;case"null":o="${1:null}";break;default:return i}}return e+(o=!o||1<n?"$1":o)+r},kr.prototype.getCurrentWord=function(e,t){for(var n=t-1,r=e.getText();0<=n&&-1===' \t\n\r\v":{[,]}'.indexOf(r.charAt(n));)n--;return r.substring(n+1,t)},kr.prototype.evaluateSeparatorAfter=function(e,t){switch(e=$t(e.getText(),!0),e.setPosition(t),e.scan()){case 5:case 2:case 4:case 17:return"";default:return","}},kr.prototype.findItemAtOffset=function(e,t,n){for(var r=$t(t.getText(),!0),i=e.items,o=i.length-1;0<=o;o--){var s=i[o];if(n>s.offset+s.length)return r.setPosition(s.offset+s.length),5===r.scan()&&n>=r.getTokenOffset()+r.getTokenLength()?o+1:o;if(n>=s.offset)return o}return 0},kr.prototype.isInComment=function(e,t,n){for(var r=$t(e.getText(),!1),i=(r.setPosition(t),r.scan());17!==i&&r.getTokenOffset()+r.getTokenLength()<n;)i=r.scan();return(12===i||13===i)&&r.getTokenOffset()<=n},kr.prototype.fromMarkup=function(e){if(e&&this.doesSupportMarkdown())return{kind:rn.Markdown,value:e}},kr.prototype.doesSupportMarkdown=function(){var e;return Jt(this.supportsMarkdown)||(e=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion,this.supportsMarkdown=e&&e.completionItem&&Array.isArray(e.completionItem.documentationFormat)&&-1!==e.completionItem.documentationFormat.indexOf(rn.Markdown)),this.supportsMarkdown},kr.prototype.doesSupportsCommitCharacters=function(){var e;return Jt(this.supportsCommitCharacters)||(e=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion,this.supportsCommitCharacters=e&&e.completionItem&&!!e.completionItem.commitCharactersSupport),this.supportsCommitCharacters},kr);function kr(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=Promise),void 0===r&&(r={}),this.schemaService=e,this.contributions=t,this.promiseConstructor=n,this.clientCapabilities=r}Or.prototype.doHover=function(e,t,n){t=e.offsetAt(t);var r=n.getNodeFromOffset(t);if(!r||("object"===r.type||"array"===r.type)&&t>r.offset+1&&t<r.offset+r.length-1)return this.promise.resolve(null);if(t=r,"string"===r.type){var i=r.parent;if(i&&"property"===i.type&&i.keyNode===r&&!(r=i.valueNode))return this.promise.resolve(null)}for(var o=Lt.create(e.positionAt(t.offset),e.positionAt(t.offset+t.length)),s=function(e){return{contents:e,range:o}},a=Cr(r),u=this.contributions.length-1;0<=u;u--){var l=this.contributions[u].getInfoContribution(e.uri,a);if(l)return l.then(s)}return this.schemaService.getSchemaForResource(e.uri,n).then((function(e){var t,i,o,a,u;return e&&r?(e=n.getMatchingSchemas(e.schema,r.offset),a=o=i=t=void 0,e.every((function(e){var n;return e.node===r&&!e.inverted&&e.schema&&(t=t||e.schema.title,i=i||e.schema.markdownDescription||Pr(e.schema.description),e.schema.enum&&(n=e.schema.enum.indexOf(_r(r)),e.schema.markdownEnumDescriptions?o=e.schema.markdownEnumDescriptions[n]:e.schema.enumDescriptions&&(o=Pr(e.schema.enumDescriptions[n])),o&&"string"!=typeof(a=e.schema.enum[n])&&(a=JSON.stringify(a)))),!0})),e="",t&&(e=Pr(t)),i&&(0<e.length&&(e+="\n\n"),e+=i),o&&(0<e.length&&(e+="\n\n"),e+="`"+(-1===(u=a).indexOf("`")?u:"`` "+u+" ``")+"`: "+o),s([e])):null}))};var Tr=Or;function Or(e,t,n){void 0===t&&(t=[]),this.schemaService=e,this.contributions=t,this.promise=n||Promise}function Pr(e){if(e)return e.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,"$1\n\n$3").replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}var Ir=n("c623"),Mr=Vn,jr=(Dr.prototype.matchesPattern=function(e){for(var t=!1,n=0,r=this.globWrappers;n<r.length;n++){var i=r[n],o=i.regexp;i=i.include;o.test(e)&&(t=i)}return t},Dr.prototype.getURIs=function(){return this.uris},Dr);function Dr(e,t){this.globWrappers=[];try{for(var n=0,r=e;n<r.length;n++){var i=r[n],o="!"!==i[0];0<(i=o?i:i.substring(1)).length&&("/"===i[0]&&(i=i.substring(1)),this.globWrappers.push({regexp:function(e,t){if("string"!=typeof e)throw new TypeError("Expected a string");for(var n,r=String(e),i="",o=!!t&&!!t.extended,s=!!t&&!!t.globstar,a=!1,u=(e=t&&"string"==typeof t.flags?t.flags:"",0),l=r.length;u<l;u++)switch(n=r[u]){case"/":case"$":case"^":case"+":case".":case"(":case")":case"=":case"!":case"|":i+="\\"+n;break;case"?":if(o){i+=".";break}case"[":case"]":if(o){i+=n;break}case"{":if(o){a=!0,i+="(";break}case"}":if(o){a=!1,i+=")";break}case",":i+=a?"|":"\\"+n;break;case"*":for(var h=r[u-1],c=1;"*"===r[u+1];)c++,u++;var f=r[u+1];s?!(1<c)||"/"!==h&&void 0!==h&&"{"!==h&&","!==h||"/"!==f&&void 0!==f&&","!==f&&"}"!==f?i+="([^/]*)":("/"===f?u++:"/"===h&&i.endsWith("\\/")&&(i=i.substr(0,i.length-2)),i+="((?:[^/]*(?:/|$))*)"):i+=".*";break;default:i+=n}return e&&~e.indexOf("g")||(i="^"+i+"$"),new RegExp(i,e)}("**/"+i,{extended:!0,globstar:!0}),include:o}))}this.uris=t}catch(e){this.globWrappers.length=0,this.uris=[]}}Ur.prototype.getUnresolvedSchema=function(){return this.unresolvedSchema||(this.unresolvedSchema=this.service.loadSchema(this.url)),this.unresolvedSchema},Ur.prototype.getResolvedSchema=function(){var e=this;return this.resolvedSchema||(this.resolvedSchema=this.getUnresolvedSchema().then((function(t){return e.service.resolveSchemaContent(t,e.url,e.dependencies)}))),this.resolvedSchema},Ur.prototype.clearSchema=function(){this.resolvedSchema=void 0,this.unresolvedSchema=void 0,this.dependencies={}};var Rr=Ur;function Ur(e,t,n){this.service=e,this.url=t,this.dependencies={},n&&(this.unresolvedSchema=this.service.promise.resolve(new Vr(n)))}var Vr=function(e,t){void 0===t&&(t=[]),this.schema=e,this.errors=t},Fr=(qr.prototype.getSection=function(e){if(e=this.getSectionRecursive(e,this.schema),e)return dr(e)},qr.prototype.getSectionRecursive=function(e,t){if(!t||"boolean"==typeof t||0===e.length)return t;var n=e.shift();if(t.properties&&(t.properties[n],1))return this.getSectionRecursive(e,t.properties[n]);if(t.patternProperties)for(var r=0,i=Object.keys(t.patternProperties);r<i.length;r++){var o=i[r];if(Zt(o).test(n))return this.getSectionRecursive(e,t.patternProperties[o])}else{if("object"==typeof t.additionalProperties)return this.getSectionRecursive(e,t.additionalProperties);if(n.match("[0-9]+"))if(Array.isArray(t.items)){var s=parseInt(n,10);if(!isNaN(s)&&t.items[s])return this.getSectionRecursive(e,t.items[s])}else if(t.items)return this.getSectionRecursive(e,t.items)}},qr);function qr(e,t){void 0===t&&(t=[]),this.schema=e,this.errors=t}Kr.prototype.getRegisteredSchemaIds=function(e){return Object.keys(this.registeredSchemasIds).filter((function(t){return t=Ir.a.parse(t).scheme,"schemaservice"!==t&&(!e||e(t))}))},Object.defineProperty(Kr.prototype,"promise",{get:function(){return this.promiseConstructor},enumerable:!1,configurable:!0}),Kr.prototype.dispose=function(){for(;0<this.callOnDispose.length;)this.callOnDispose.pop()()},Kr.prototype.onResourceChange=function(e){for(var t=this,n=!1,r=[e=Wr(e)],i=Object.keys(this.schemasById).map((function(e){return t.schemasById[e]}));r.length;)for(var o=r.pop(),s=0;s<i.length;s++){var a=i[s];a&&(a.url===o||a.dependencies[o])&&(a.url!==o&&r.push(a.url),a.clearSchema(),n=!(i[s]=void 0))}return n},Kr.prototype.setSchemaContributions=function(e){if(e.schemas){var t,n=e.schemas;for(t in n){var r=Wr(t);this.contributionSchemas[r]=this.addSchemaHandle(r,n[t])}}if(Array.isArray(e.schemaAssociations))for(var i=0,o=e.schemaAssociations;i<o.length;i++){var s=o[i],a=s.uris.map(Wr);s=this.addFilePatternAssociation(s.pattern,a);this.contributionAssociations.push(s)}},Kr.prototype.addSchemaHandle=function(e,t){return t=new Rr(this,e,t),this.schemasById[e]=t},Kr.prototype.getOrAddSchemaHandle=function(e,t){return this.schemasById[e]||this.addSchemaHandle(e,t)},Kr.prototype.addFilePatternAssociation=function(e,t){return e=new jr(e,t),this.filePatternAssociations.push(e),e},Kr.prototype.registerExternalSchema=function(e,t,n){var r=Wr(e);return this.registeredSchemasIds[r]=!0,this.cachedSchemaForResource=void 0,t&&this.addFilePatternAssociation(t,[e]),n?this.addSchemaHandle(r,n):this.getOrAddSchemaHandle(r)},Kr.prototype.clearExternalSchemas=function(){for(var e in this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={},this.cachedSchemaForResource=void 0,this.contributionSchemas)this.schemasById[e]=this.contributionSchemas[e],this.registeredSchemasIds[e]=!0;for(var t=0,n=this.contributionAssociations;t<n.length;t++){var r=n[t];this.filePatternAssociations.push(r)}},Kr.prototype.getResolvedSchema=function(e){return e=Wr(e),e=this.schemasById[e],e?e.getResolvedSchema():this.promise.resolve(void 0)},Kr.prototype.loadSchema=function(e){var t;return this.requestService?this.requestService(e).then((function(t){var n;return t?(n={},n=Kt(t,t=[]),t=t.length?[Mr("json.schema.invalidFormat","Unable to parse content from '{0}': Parse error at offset {1}.",Yr(e),t[0].offset)]:[],new Vr(n,t)):(n=Mr("json.schema.nocontent","Unable to load schema from '{0}': No content.",Yr(e)),new Vr({},[n]))}),(function(t){var n=t.toString();t=t.toString().split("Error: ");return Xt(n=1<t.length?t[1]:n,".")&&(n=n.substr(0,n.length-1)),new Vr({},[Mr("json.schema.nocontent","Unable to load schema from '{0}': {1}.",Yr(e),n)])})):(t=Mr("json.schema.norequestservice","Unable to load schema from '{0}'. No schema request service available",Yr(e)),this.promise.resolve(new Vr({},[t])))},Kr.prototype.resolveSchemaContent=function(e,t,n){var r=this,i=e.errors.slice(0),o=e.schema;if(o.$schema){if(e=Wr(o.$schema),"http://json-schema.org/draft-03/schema"===e)return this.promise.resolve(new Fr({},[Mr("json.schema.draft03.notsupported","Draft-03 schemas are not supported.")]));"https://json-schema.org/draft/2019-09/schema"===e&&i.push(Mr("json.schema.draft201909.notsupported","Draft 2019-09 schemas are not yet fully supported."))}var s=this.contextService,a=function(e,t){var n;return t?(n=e,(t="/"===t[0]?t.substr(1):t).split("/").some((function(e){return e=e.replace(/~1/g,"/").replace(/~0/g,"~"),!(n=n[e])})),n):e},u=function(e,t,n,r){r=r?decodeURIComponent(r):void 0;var o=a(t,r);if(o)for(var s in o)o.hasOwnProperty(s)&&!e.hasOwnProperty(s)&&(e[s]=o[s]);else i.push(Mr("json.schema.invalidref","$ref '{0}' in '{1}' can not be resolved.",r,n))},l=function(e,t,n,o,a){t=Wr(t=s&&!/^[A-Za-z][A-Za-z0-9+\-.+]*:\/\/.*/.test(t)?s.resolveRelativePath(t,o):t);var l=r.getOrAddSchemaHandle(t);return l.getUnresolvedSchema().then((function(r){var o;return a[t]=!0,r.errors.length&&(o=n?t+"#"+n:t,i.push(Mr("json.schema.problemloadingref","Problems loading reference '{0}': {1}",o,r.errors[0]))),u(e,r.schema,t,n),h(e,r.schema,t,l.dependencies)}))},h=function(e,t,n,i){if(!e||"object"!=typeof e)return Promise.resolve(null);for(var o=[e],s=[],a=[],h=function(e){for(var r=[];e.$ref;){var s=e.$ref,h=s.split("#",2);if(delete e.$ref,0<h[0].length)return void a.push(l(e,h[0],h[1],n,i));-1===r.indexOf(s)&&(u(e,t,n,h[1]),r.push(s))}!function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++){var i=r[n];"object"==typeof i&&o.push(i)}}(e.items,e.additionalItems,e.additionalProperties,e.not,e.contains,e.propertyNames,e.if,e.then,e.else),function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++){var i=r[n];if("object"==typeof i)for(var s in i)s=i[s],"object"==typeof s&&o.push(s)}}(e.definitions,e.properties,e.patternProperties,e.dependencies),function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++){var i=r[n];if(Array.isArray(i))for(var s=0,a=i;s<a.length;s++){var u=a[s];"object"==typeof u&&o.push(u)}}}(e.anyOf,e.allOf,e.oneOf,e.items)};o.length;){var c=o.pop();0<=s.indexOf(c)||(s.push(c),h(c))}return r.promise.all(a)};return h(o,o,t,n).then((function(e){return new Fr(o,i)}))},Kr.prototype.getSchemaForResource=function(e,t){if(t&&t.root&&"object"===t.root.type&&(t=t.root.properties.filter((function(e){return"$schema"===e.keyNode.value&&e.valueNode&&"string"===e.valueNode.type})),0<t.length&&(t=t[0].valueNode,t&&"string"===t.type))){t=_r(t);if(t=t&&Qt(t,".")&&this.contextService?this.contextService.resolveRelativePath(t,e):t)return t=Wr(t),this.getOrAddSchemaHandle(t).getResolvedSchema()}if(this.cachedSchemaForResource&&this.cachedSchemaForResource.resource===e)return this.cachedSchemaForResource.resolvedSchema;for(var n=Object.create(null),r=[],i=function(t){try{return Ir.a.parse(t).with({fragment:null,query:null}).toString()}catch(e){return t}}(e),o=0,s=this.filePatternAssociations;o<s.length;o++){var a=s[o];if(a.matchesPattern(i))for(var u=0,l=a.getURIs();u<l.length;u++){var h=l[u];n[h]||(r.push(h),n[h]=!0)}}return t=0<r.length?this.createCombinedSchema(e,r).getResolvedSchema():this.promise.resolve(void 0),this.cachedSchemaForResource={resource:e,resolvedSchema:t},t},Kr.prototype.createCombinedSchema=function(e,t){return 1===t.length?this.getOrAddSchemaHandle(t[0]):(e="schemaservice://combinedSchema/"+encodeURIComponent(e),t={allOf:t.map((function(e){return{$ref:e}}))},this.addSchemaHandle(e,t))},Kr.prototype.getMatchingSchemas=function(e,t,n){var r;return n?(r=n.id||"schemaservice://untitled/matchingSchemas/"+Br++,this.resolveSchemaContent(new Vr(n),r,{}).then((function(e){return t.getMatchingSchemas(e.schema).filter((function(e){return!e.inverted}))}))):this.getSchemaForResource(e.uri,t).then((function(e){return e?t.getMatchingSchemas(e.schema).filter((function(e){return!e.inverted})):[]}))};var $r=Kr;function Kr(e,t,n){this.contextService=t,this.requestService=e,this.promiseConstructor=n||Promise,this.callOnDispose=[],this.contributionSchemas={},this.contributionAssociations=[],this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={}}var Br=0;function Wr(e){try{return Ir.a.parse(e).toString()}catch(t){return e}}function Yr(e){try{var t=Ir.a.parse(e);if("file"===t.scheme)return t.fsPath}catch(e){}return e}var Hr=Vn,zr=(Jr.prototype.configure=function(e){e&&(this.validationEnabled=!1!==e.validate,this.commentSeverity=e.allowComments?void 0:Pt.Error)},Jr.prototype.doValidation=function(e,t,n,r){var i,o,s,a,u,l=this;return this.validationEnabled?(i=[],o={},s=function(e){var t=e.range.start.line+" "+e.range.start.character+" "+e.message;o[t]||(o[t]=!0,i.push(e))},a=function(r){var o,a,u=null!=n&&n.trailingCommas?Qr(n.trailingCommas):Pt.Error,h=null!=n&&n.comments?Qr(n.comments):l.commentSeverity,c=null!=n&&n.schemaValidation?Qr(n.schemaValidation):Pt.Warning,f=null!=n&&n.schemaRequest?Qr(n.schemaRequest):Pt.Warning;r&&(r.errors.length&&t.root&&f?(o=(o="object"===(a=t.root).type?a.properties[0]:void 0)&&"$schema"===o.keyNode.value?(o=o.valueNode||o,Lt.create(e.positionAt(o.offset),e.positionAt(o.offset+o.length))):Lt.create(e.positionAt(a.offset),e.positionAt(a.offset+1)),s(It.create(o,r.errors[0],f,Pn.SchemaResolveError))):c&&(a=t.validate(e,r.schema,c))&&a.forEach(s),function e(t){if(t&&"object"==typeof t){if(Gt(t.allowComments))return t.allowComments;if(t.allOf)for(var n=0,r=t.allOf;n<r.length;n++){var i=r[n];i=e(i);if(Gt(i))return i}}}(r.schema)&&(h=void 0),function e(t){if(t&&"object"==typeof t){if(Gt(t.allowTrailingCommas))return t.allowTrailingCommas;var n=t;if(Gt(n.allowsTrailingCommas))return n.allowsTrailingCommas;if(t.allOf)for(var r=0,i=t.allOf;r<i.length;r++){var o=i[r];o=e(o);if(Gt(o))return o}}}(r.schema)&&(u=void 0));for(var d,m=0,g=t.syntaxErrors;m<g.length;m++){var p=g[m];if(p.code===Pn.TrailingComma){if("number"!=typeof u)continue;p.severity=u}s(p)}return"number"==typeof h&&(d=Hr("InvalidCommentToken","Comments are not permitted in JSON."),t.comments.forEach((function(e){s(It.create(e,d,h,Pn.CommentNotPermitted))}))),i},(r?(u=r.id||"schemaservice://untitled/"+Gr++,this.jsonSchemaService.resolveSchemaContent(new Vr(r),u,{})):this.jsonSchemaService.getSchemaForResource(e.uri,t)).then(a)):this.promise.resolve([])},Jr);function Jr(e,t){this.jsonSchemaService=e,this.promise=t,this.validationEnabled=!0}var Gr=0;function Qr(e){switch(e){case"error":return Pt.Error;case"warning":return Pt.Warning;case"ignore":return}}var Xr=48,Zr=57,ei=65,ti=97,ni=102;function ri(e){return e<Xr?0:e<=Zr?e-Xr:(e<ti&&(e+=ti-ei),ti<=e&&e<=ni?e-ti+10:0)}oi.prototype.findDocumentSymbols=function(e,t,n){var r=this;void 0===n&&(n={resultLimit:Number.MAX_VALUE}),t=t.root;if(!t)return[];var i=n.resultLimit||Number.MAX_VALUE,o=e.uri;if(("vscode://defaultsettings/keybindings.json"===o||Xt(o.toLowerCase(),"/user/keybindings.json"))&&"array"===t.type){for(var s=[],a=0,u=t.items;a<u.length;a++){var l=u[a];if("object"===l.type)for(var h=0,c=l.properties;h<c.length;h++){var f=c[h];if("key"===f.keyNode.value&&f.valueNode){var d=kt.create(e.uri,si(e,l));if(s.push({name:_r(f.valueNode),kind:bn.Function,location:d}),--i<=0)return n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(o),s}}}return s}for(var m=[{node:t,containerName:""}],g=0,p=!1,v=[];g<m.length;){var y=m[g++];!function(t,n){"array"===t.type?t.items.forEach((function(e){e&&m.push({node:e,containerName:n})})):"object"===t.type&&t.properties.forEach((function(t){var o,s,a=t.valueNode;a&&(0<i?(i--,o=kt.create(e.uri,si(e,t)),s=n?n+"."+t.keyNode.value:t.keyNode.value,v.push({name:r.getKeyLabel(t),kind:r.getSymbolKind(a.type),location:o,containerName:n}),m.push({node:a,containerName:s})):p=!0)}))}(y.node,y.containerName)}return p&&n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(o),v},oi.prototype.findDocumentSymbols2=function(e,t,n){var r=this;void 0===n&&(n={resultLimit:Number.MAX_VALUE}),t=t.root;if(!t)return[];var i=n.resultLimit||Number.MAX_VALUE,o=e.uri;if(("vscode://defaultsettings/keybindings.json"===o||Xt(o.toLowerCase(),"/user/keybindings.json"))&&"array"===t.type){for(var s=[],a=0,u=t.items;a<u.length;a++){var l=u[a];if("object"===l.type)for(var h=0,c=l.properties;h<c.length;h++){var f=c[h];if("key"===f.keyNode.value&&f.valueNode){var d=si(e,l),m=si(e,f.keyNode);if(s.push({name:_r(f.valueNode),kind:bn.Function,range:d,selectionRange:m}),--i<=0)return n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(o),s}}}return s}for(var g=[],p=[{node:t,result:g}],v=0,y=!1;v<p.length;){var b=p[v++];!function(t,n){"array"===t.type?t.items.forEach((function(t,o){var s,a;t&&(0<i?(i--,a=s=si(e,t),o={name:String(o),kind:r.getSymbolKind(t.type),range:s,selectionRange:a,children:[]},n.push(o),p.push({result:o.children,node:t})):y=!0)})):"object"===t.type&&t.properties.forEach((function(t){var o,s,a,u=t.valueNode;u&&(0<i?(i--,o=si(e,t),s=si(e,t.keyNode),a=[],t={name:r.getKeyLabel(t),kind:r.getSymbolKind(u.type),range:o,selectionRange:s,children:a,detail:r.getDetail(u)},n.push(t),p.push({result:a,node:u})):y=!0)}))}(b.node,b.result)}return y&&n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(o),g},oi.prototype.getSymbolKind=function(e){switch(e){case"object":return bn.Module;case"string":return bn.String;case"number":return bn.Number;case"array":return bn.Array;case"boolean":return bn.Boolean;default:return bn.Variable}},oi.prototype.getKeyLabel=function(e){return e=e.keyNode.value,(e=e&&e.replace(/[\n]/g,"↵"))&&e.trim()?e:'"'+e+'"'},oi.prototype.getDetail=function(e){if(e)return"boolean"===e.type||"number"===e.type||"null"===e.type||"string"===e.type?String(e.value):"array"===e.type?e.children.length?void 0:"[]":"object"!==e.type||e.children.length?void 0:"{}"},oi.prototype.findDocumentColors=function(e,t,n){return this.schemaService.getSchemaForResource(e.uri,t).then((function(r){var i=[];if(r)for(var o=n&&"number"==typeof n.resultLimit?n.resultLimit:Number.MAX_VALUE,s={},a=0,u=t.getMatchingSchemas(r.schema);a<u.length;a++){var l=u[a];if(!l.inverted&&l.schema&&("color"===l.schema.format||"color-hex"===l.schema.format)&&l.node&&"string"===l.node.type){var h=String(l.node.offset);if(!s[h]){var c=function(e){if("#"===e[0])switch(e.length){case 4:return{red:17*ri(e.charCodeAt(1))/255,green:17*ri(e.charCodeAt(2))/255,blue:17*ri(e.charCodeAt(3))/255,alpha:1};case 5:return{red:17*ri(e.charCodeAt(1))/255,green:17*ri(e.charCodeAt(2))/255,blue:17*ri(e.charCodeAt(3))/255,alpha:17*ri(e.charCodeAt(4))/255};case 7:return{red:(16*ri(e.charCodeAt(1))+ri(e.charCodeAt(2)))/255,green:(16*ri(e.charCodeAt(3))+ri(e.charCodeAt(4)))/255,blue:(16*ri(e.charCodeAt(5))+ri(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(16*ri(e.charCodeAt(1))+ri(e.charCodeAt(2)))/255,green:(16*ri(e.charCodeAt(3))+ri(e.charCodeAt(4)))/255,blue:(16*ri(e.charCodeAt(5))+ri(e.charCodeAt(6)))/255,alpha:(16*ri(e.charCodeAt(7))+ri(e.charCodeAt(8)))/255}}}(_r(l.node));if(c&&(l=si(e,l.node),i.push({color:c,range:l})),s[h]=!0,--o<=0)return n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(e.uri),i}}}return i}))},oi.prototype.getColorPresentations=function(e,t,n,r){var i=[],o=Math.round(255*n.red),s=Math.round(255*n.green),a=Math.round(255*n.blue);function u(e){return e=e.toString(16),2!==e.length?"0"+e:e}return o=1===n.alpha?"#"+u(o)+u(s)+u(a):"#"+u(o)+u(s)+u(a)+u(Math.round(255*n.alpha)),i.push({label:o,textEdit:Mt.replace(r,JSON.stringify(o))}),i};var ii=oi;function oi(e){this.schemaService=e}function si(e,t){return Lt.create(e.positionAt(t.offset),e.positionAt(t.offset+t.length))}var ai,ui=Vn,li={schemaAssociations:[],schemas:{"http://json-schema.org/schema#":{$ref:"http://json-schema.org/draft-07/schema#"},"http://json-schema.org/draft-04/schema#":{title:ui("schema.json","Describes a JSON file using a schema. See json-schema.org for more info."),$schema:"http://json-schema.org/draft-04/schema#",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{type:"string",enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},type:"object",properties:{id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minLength:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minItems:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},uniqueItems:{type:"boolean",default:!1},maxProperties:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minProperties:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},required:{allOf:[{$ref:"#/definitions/stringArray"}]},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{anyOf:[{type:"string",enum:["date-time","uri","email","hostname","ipv4","ipv6","regex"]},{type:"string"}]},allOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},anyOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},oneOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},not:{allOf:[{$ref:"#"}]}},dependencies:{exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},default:{}},"http://json-schema.org/draft-07/schema#":{title:ui("schema.json","Describes a JSON file using a schema. See json-schema.org for more info."),definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}}},hi={id:ui("schema.json.id","A unique identifier for the schema."),$schema:ui("schema.json.$schema","The schema to verify this document against."),title:ui("schema.json.title","A descriptive title of the element."),description:ui("schema.json.description","A long description of the element. Used in hover menus and suggestions."),default:ui("schema.json.default","A default value. Used by suggestions."),multipleOf:ui("schema.json.multipleOf","A number that should cleanly divide the current value (i.e. have no remainder)."),maximum:ui("schema.json.maximum","The maximum numerical value, inclusive by default."),exclusiveMaximum:ui("schema.json.exclusiveMaximum","Makes the maximum property exclusive."),minimum:ui("schema.json.minimum","The minimum numerical value, inclusive by default."),exclusiveMinimum:ui("schema.json.exclusiveMininum","Makes the minimum property exclusive."),maxLength:ui("schema.json.maxLength","The maximum length of a string."),minLength:ui("schema.json.minLength","The minimum length of a string."),pattern:ui("schema.json.pattern","A regular expression to match the string against. It is not implicitly anchored."),additionalItems:ui("schema.json.additionalItems","For arrays, only when items is set as an array. If it is a schema, then this schema validates items after the ones specified by the items array. If it is false, then additional items will cause validation to fail."),items:ui("schema.json.items","For arrays. Can either be a schema to validate every element against or an array of schemas to validate each item against in order (the first schema will validate the first element, the second schema will validate the second element, and so on."),maxItems:ui("schema.json.maxItems","The maximum number of items that can be inside an array. Inclusive."),minItems:ui("schema.json.minItems","The minimum number of items that can be inside an array. Inclusive."),uniqueItems:ui("schema.json.uniqueItems","If all of the items in the array must be unique. Defaults to false."),maxProperties:ui("schema.json.maxProperties","The maximum number of properties an object can have. Inclusive."),minProperties:ui("schema.json.minProperties","The minimum number of properties an object can have. Inclusive."),required:ui("schema.json.required","An array of strings that lists the names of all properties required on this object."),additionalProperties:ui("schema.json.additionalProperties","Either a schema or a boolean. If a schema, then used to validate all properties not matched by 'properties' or 'patternProperties'. If false, then any properties not matched by either will cause this schema to fail."),definitions:ui("schema.json.definitions","Not used for validation. Place subschemas here that you wish to reference inline with $ref."),properties:ui("schema.json.properties","A map of property names to schemas for each property."),patternProperties:ui("schema.json.patternProperties","A map of regular expressions on property names to schemas for matching properties."),dependencies:ui("schema.json.dependencies","A map of property names to either an array of property names or a schema. An array of property names means the property named in the key depends on the properties in the array being present in the object in order to be valid. If the value is a schema, then the schema is only applied to the object if the property in the key exists on the object."),enum:ui("schema.json.enum","The set of literal values that are valid."),type:ui("schema.json.type","Either a string of one of the basic schema types (number, integer, null, array, object, boolean, string) or an array of strings specifying a subset of those types."),format:ui("schema.json.format","Describes the format expected for the value."),allOf:ui("schema.json.allOf","An array of schemas, all of which must match."),anyOf:ui("schema.json.anyOf","An array of schemas, where at least one must match."),oneOf:ui("schema.json.oneOf","An array of schemas, exactly one of which must match."),not:ui("schema.json.not","A schema which must not match."),$id:ui("schema.json.$id","A unique identifier for the schema."),$ref:ui("schema.json.$ref","Reference a definition hosted on any location."),$comment:ui("schema.json.$comment","Comments from schema authors to readers or maintainers of the schema."),readOnly:ui("schema.json.readOnly","Indicates that the value of the instance is managed exclusively by the owning authority."),examples:ui("schema.json.examples","Sample JSON values associated with a particular schema, for the purpose of illustrating usage."),contains:ui("schema.json.contains",'An array instance is valid against "contains" if at least one of its elements is valid against the given schema.'),propertyNames:ui("schema.json.propertyNames","If the instance is an object, this keyword validates if every property name in the instance validates against the provided schema."),const:ui("schema.json.const","An instance validates successfully against this keyword if its value is equal to the value of the keyword."),contentMediaType:ui("schema.json.contentMediaType","Describes the media type of a string property."),contentEncoding:ui("schema.json.contentEncoding","Describes the content encoding of a string property."),if:ui("schema.json.if",'The validation outcome of the "if" subschema controls which of the "then" or "else" keywords are evaluated.'),then:ui("schema.json.then",'The "if" subschema is used for validation when the "if" subschema succeeds.'),else:ui("schema.json.else",'The "else" subschema is used for validation when the "if" subschema fails.')};for(ai in li.schemas){var ci,fi=li.schemas[ai];for(ci in fi.properties){var di=fi.properties[ci],mi=("boolean"==typeof di&&(di=fi.properties[ci]={}),hi[ci]);mi&&(di.description=mi)}}function gi(e,t){var n=[],r=[],i=[],o=-1,s=$t(e.getText(),!1),a=s.scan();function u(e){n.push(e),r.push(i.length)}for(;17!==a;){switch(a){case 1:case 3:var l={startLine:h=e.positionAt(s.getTokenOffset()).line,endLine:h,kind:1===a?"object":"array"};i.push(l);break;case 2:case 4:0<i.length&&i[i.length-1].kind===(2===a?"object":"array")&&(l=i.pop(),f=e.positionAt(s.getTokenOffset()).line,l&&f>l.startLine+1&&o!==l.startLine&&(l.endLine=f-1,u(l),o=l.startLine));break;case 13:var h=e.positionAt(s.getTokenOffset()).line,c=e.positionAt(s.getTokenOffset()+s.getTokenLength()).line;1===s.getTokenError()&&h+1<e.lineCount?s.setPosition(e.offsetAt(Nt.create(h+1,0))):h<c&&(u({startLine:h,endLine:c,kind:Tt.Comment}),o=h);break;case 12:if(c=e.getText().substr(s.getTokenOffset(),s.getTokenLength()).match(/^\/\/\s*#(region\b)|(endregion\b)/),c){var f=e.positionAt(s.getTokenOffset()).line;if(c[1])l={startLine:f,endLine:f,kind:Tt.Region},i.push(l);else{for(var d=i.length-1;0<=d&&i[d].kind!==Tt.Region;)d--;0<=d&&(l=i[d],i.length=d,f>l.startLine&&o!==l.startLine&&(l.endLine=f,u(l),o=l.startLine))}}}a=s.scan()}var m=t&&t.rangeLimit;if("number"!=typeof m||n.length<=m)return n;t&&t.onRangeLimitExceeded&&t.onRangeLimitExceeded(e.uri);for(var g=[],p=0,v=r;p<v.length;p++)(C=v[p])<30&&(g[C]=(g[C]||0)+1);var y=0,b=0;for(d=0;d<g.length;d++){var _=g[d];if(_){if(m<_+y){b=d;break}y+=_}}var C,S=[];for(d=0;d<n.length;d++)"number"==typeof(C=r[d])&&(C<b||C===b&&y++<m)&&S.push(n[d]);return S}function pi(e,t,n){function r(t,n){return Lt.create(e.positionAt(t),e.positionAt(n))}var i=$t(e.getText(),!0);return t.map((function(t){for(var o,s,a=e.offsetAt(t),u=n.getNodeFromOffset(a,!0),l=[];u;){switch(u.type){case"string":case"object":case"array":var h=u.offset+1,c=u.offset+u.length-1;h<c&&h<=a&&a<=c&&l.push(r(h,c)),l.push(r(u.offset,u.offset+u.length));break;case"number":case"boolean":case"null":case"property":l.push(r(u.offset,u.offset+u.length))}("property"===u.type||u.parent&&"array"===u.parent.type)&&(o=u.offset+u.length,s=5,i.setPosition(o),-1!==(o=i.scan()!==s?-1:i.getTokenOffset()+i.getTokenLength())&&l.push(r(u.offset,o))),u=u.parent}for(var f=void 0,d=l.length-1;0<=d;d--)f=Cn.create(l[d],f);return f||Cn.create(Lt.create(t,t))}))}function vi(e,t){var n=[];return t.visit((function(r){var i;return"property"===r.type&&"$ref"===r.keyNode.value&&"string"===(null==(i=r.valueNode)?void 0:i.type)&&(i=r.valueNode.value,(i=function(e,t){return t=function(e){return"#"!==e?"#"===e[0]&&"/"===e[1]?e.substring(2).split(/\//).map(yi):null:[]}(t),t?function e(t,n){if(!n)return null;if(0===t.length)return n;var r,i=t.shift();return n&&"object"===n.type?(r=n.properties.find((function(e){return e.keyNode.value===i})))?e(t,r.valueNode):null:n&&"array"===n.type&&i.match(/^(0|[1-9][0-9]*)$/)?(r=Number.parseInt(i),(n=n.items[r])?e(t,n):null):null}(t,e.root):null}(t,i))&&(i=e.positionAt(i.offset),n.push({target:e.uri+"#"+(i.line+1)+","+(i.character+1),range:(i=e,r=r.valueNode,Lt.create(i.positionAt(r.offset+1),i.positionAt(r.offset+r.length-1)))}))),!0})),Promise.resolve(n)}function yi(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function bi(e){var t=e.promiseConstructor||Promise,n=new $r(e.schemaRequestService,e.workspaceContext,t),r=(n.setSchemaContributions(li),new Lr(n,e.contributions,t,e.clientCapabilities)),i=(e=new Tr(n,e.contributions,t),new ii(n)),o=new zr(n,t);return{configure:function(e){n.clearExternalSchemas(),e.schemas&&e.schemas.forEach((function(e){n.registerExternalSchema(e.uri,e.fileMatch,e.schema)})),o.configure(e)},resetSchema:function(e){return n.onResourceChange(e)},doValidation:o.doValidation.bind(o),parseJSONDocument:function(e){return wr(e,{collectComments:!0})},newJSONDocument:function(e,t){return new Ar(e,e=void 0===(e=t)?[]:e,[])},getMatchingSchemas:n.getMatchingSchemas.bind(n),doResolve:r.doResolve.bind(r),doComplete:r.doComplete.bind(r),findDocumentSymbols:i.findDocumentSymbols.bind(i),findDocumentSymbols2:i.findDocumentSymbols2.bind(i),findDocumentColors:i.findDocumentColors.bind(i),getColorPresentations:i.getColorPresentations.bind(i),doHover:e.doHover.bind(e),getFoldingRanges:gi,getSelectionRanges:pi,findDefinition:function(){return Promise.resolve([])},findLinks:vi,format:function(e,t,n){var r,i=void 0;t&&(i={offset:r=e.offsetAt(t.start),length:e.offsetAt(t.end)-r}),t={tabSize:n?n.tabSize:4,insertSpaces:!0===(null==n?void 0:n.insertSpaces),insertFinalNewline:!0===(null==n?void 0:n.insertFinalNewline),eol:"\n"};return St(e.getText(),i,t).map((function(t){return Mt.replace(Lt.create(e.positionAt(t.offset),e.positionAt(t.offset+t.length)),t.content)}))}}}var _i,Ci=function(e,t,n,r){return new(n=n||Promise)((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},Si=function(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},s={next:a(0),throw:a(1),return:a(2)};return"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){var u=[s,a];if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&u[0]?r.return:u[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,u[1])).done)return i;switch(r=0,(u=i?[2&u[0],i.value]:u)[0]){case 0:case 1:i=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,r=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(i=0<(i=o.trys).length&&i[i.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3]))o.label=u[1];else if(6===u[0]&&o.label<i[1])o.label=i[1],i=u;else{if(!(i&&o.label<i[2])){i[2]&&o.ops.pop(),o.trys.pop();continue}o.label=i[2],o.ops.push(u)}}u=t.call(e,o)}catch(a){u=[6,a],r=0}finally{n=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}},Ai=("undefined"!=typeof fetch&&(_i=function(e){return fetch(e).then((function(e){return e.text()}))}),xi.prototype.doValidation=function(e){return Ci(this,void 0,void 0,(function(){var t,n;return Si(this,(function(r){return(t=this._getTextDocument(e))?(n=this._languageService.parseJSONDocument(t),[2,this._languageService.doValidation(t,n,this._languageSettings)]):[2,Promise.resolve([])]}))}))},xi.prototype.doComplete=function(e,t){return Ci(this,void 0,void 0,(function(){var n,r;return Si(this,(function(i){return n=this._getTextDocument(e),r=this._languageService.parseJSONDocument(n),[2,this._languageService.doComplete(n,t,r)]}))}))},xi.prototype.doResolve=function(e){return Ci(this,void 0,void 0,(function(){return Si(this,(function(t){return[2,this._languageService.doResolve(e)]}))}))},xi.prototype.doHover=function(e,t){return Ci(this,void 0,void 0,(function(){var n,r;return Si(this,(function(i){return n=this._getTextDocument(e),r=this._languageService.parseJSONDocument(n),[2,this._languageService.doHover(n,t,r)]}))}))},xi.prototype.format=function(e,t,n){return Ci(this,void 0,void 0,(function(){var r;return Si(this,(function(i){return r=this._getTextDocument(e),r=this._languageService.format(r,t,n),[2,Promise.resolve(r)]}))}))},xi.prototype.resetSchema=function(e){return Ci(this,void 0,void 0,(function(){return Si(this,(function(t){return[2,Promise.resolve(this._languageService.resetSchema(e))]}))}))},xi.prototype.findDocumentSymbols=function(e){return Ci(this,void 0,void 0,(function(){var t,n;return Si(this,(function(r){return n=this._getTextDocument(e),t=this._languageService.parseJSONDocument(n),n=this._languageService.findDocumentSymbols(n,t),[2,Promise.resolve(n)]}))}))},xi.prototype.findDocumentColors=function(e){return Ci(this,void 0,void 0,(function(){var t,n;return Si(this,(function(r){return n=this._getTextDocument(e),t=this._languageService.parseJSONDocument(n),n=this._languageService.findDocumentColors(n,t),[2,Promise.resolve(n)]}))}))},xi.prototype.getColorPresentations=function(e,t,n){return Ci(this,void 0,void 0,(function(){var r,i;return Si(this,(function(o){return i=this._getTextDocument(e),r=this._languageService.parseJSONDocument(i),i=this._languageService.getColorPresentations(i,r,t,n),[2,Promise.resolve(i)]}))}))},xi.prototype.getFoldingRanges=function(e,t){return Ci(this,void 0,void 0,(function(){var n;return Si(this,(function(r){return n=this._getTextDocument(e),n=this._languageService.getFoldingRanges(n,t),[2,Promise.resolve(n)]}))}))},xi.prototype.getSelectionRanges=function(e,t){return Ci(this,void 0,void 0,(function(){var n,r;return Si(this,(function(i){return r=this._getTextDocument(e),n=this._languageService.parseJSONDocument(r),r=this._languageService.getSelectionRanges(r,t,n),[2,Promise.resolve(r)]}))}))},xi.prototype._getTextDocument=function(e){for(var t=0,n=this._ctx.getMirrorModels();t<n.length;t++){var r=n[t];if(r.uri.toString()===e)return Tn.create(e,this._languageId,r.version,r.getValue())}return null},xi);function xi(e,t){this._ctx=e,this._languageSettings=t.languageSettings,this._languageId=t.languageId,this._languageService=bi({workspaceContext:{resolveRelativePath:function(e,t){var n,r;t=t.substr(0,t.lastIndexOf("/")+1);return function(e){return e.charCodeAt(0)===Ei}(e)?(n=Ir.a.parse(t),r=e.split("/"),n.with({path:Ni(r)}).toString()):function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e=Ir.a.parse(e);for(var r=e.path.split("/"),i=0,o=t;i<o.length;i++){var s=o[i];r.push.apply(r,s.split("/"))}return e.with({path:Ni(r)}).toString()}(t,e)}},schemaRequestService:t.enableSchemaRequest&&_i}),this._languageService.configure(this._languageSettings)}var Ei="/".charCodeAt(0),wi=".".charCodeAt(0);function Ni(e){for(var t=[],n=0,r=e;n<r.length;n++){var i=r[n];0===i.length||1===i.length&&i.charCodeAt(0)===wi||(2===i.length&&i.charCodeAt(0)===wi&&i.charCodeAt(1)===wi?t.pop():t.push(i))}1<e.length&&0===e[e.length-1].length&&t.push("");var o=t.join("/");return 0===e[0].length?"/"+o:o}self.onmessage=function(){vt((function(e,t){return new Ai(e,t)}))}},f28c:function(e,t){var n,r;e=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return(n=setTimeout)(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}var a,u=[],l=!1,h=-1;function c(){l&&a&&(l=!1,a.length?u=a.concat(u):h=-1,u.length&&f())}function f(){if(!l){for(var e=s(c),t=(l=!0,u.length);t;){for(a=u,u=[];++h<t;)a&&a[h].run();h=-1,t=u.length}a=null,l=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===o||!r)&&clearTimeout)return(r=clearTimeout)(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function m(){}e.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new d(e,t)),1!==u.length||l||s(f)},d.prototype.run=function(){this.fun.apply(null,this.array)},e.title="browser",e.browser=!0,e.env={},e.argv=[],e.version="",e.versions={},e.on=m,e.addListener=m,e.once=m,e.off=m,e.removeListener=m,e.removeAllListeners=m,e.emit=m,e.prependListener=m,e.prependOnceListener=m,e.listeners=function(e){return[]},e.binding=function(e){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(e){throw new Error("process.chdir is not supported")},e.umask=function(){return 0}}}); |