/*!--------------------------------------------------------
 * Copyright (C) Microsoft Corporation. All rights reserved.
 *--------------------------------------------------------*/
/******************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */

var extendStatics = function(d, b) {
    extendStatics = Object.setPrototypeOf ||
        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
        function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
    return extendStatics(d, b);
};

export function __extends(d, b) {
    if (typeof b !== "function" && b !== null)
        throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
    extendStatics(d, b);
    function __() { this.constructor = d; }
    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
}

export var __assign = function() {
    __assign = Object.assign || function __assign(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
        }
        return t;
    }
    return __assign.apply(this, arguments);
}

export function __rest(s, e) {
    var t = {};
    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
        t[p] = s[p];
    if (s != null && typeof Object.getOwnPropertySymbols === "function")
        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
            if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
                t[p[i]] = s[p[i]];
        }
    return t;
}

export function __decorate(decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
}

export function __param(paramIndex, decorator) {
    return function (target, key) { decorator(target, key, paramIndex); }
}

export function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
    function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
    var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
    var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
    var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
    var _, done = false;
    for (var i = decorators.length - 1; i >= 0; i--) {
        var context = {};
        for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
        for (var p in contextIn.access) context.access[p] = contextIn.access[p];
        context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
        var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
        if (kind === "accessor") {
            if (result === void 0) continue;
            if (result === null || typeof result !== "object") throw new TypeError("Object expected");
            if (_ = accept(result.get)) descriptor.get = _;
            if (_ = accept(result.set)) descriptor.set = _;
            if (_ = accept(result.init)) initializers.unshift(_);
        }
        else if (_ = accept(result)) {
            if (kind === "field") initializers.unshift(_);
            else descriptor[key] = _;
        }
    }
    if (target) Object.defineProperty(target, contextIn.name, descriptor);
    done = true;
};

export function __runInitializers(thisArg, initializers, value) {
    var useValue = arguments.length > 2;
    for (var i = 0; i < initializers.length; i++) {
        value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
    }
    return useValue ? value : void 0;
};

export function __propKey(x) {
    return typeof x === "symbol" ? x : "".concat(x);
};

export function __setFunctionName(f, name, prefix) {
    if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
    return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
};

export function __metadata(metadataKey, metadataValue) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
}

export function __awaiter(thisArg, _arguments, P, generator) {
    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
}

export function __generator(thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
    return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (g && (g = 0, op[0] && (_ = 0)), _) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
}

export var __createBinding = Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
        desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
});

export function __exportStar(m, o) {
    for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
}

export function __values(o) {
    var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
    if (m) return m.call(o);
    if (o && typeof o.length === "number") return {
        next: function () {
            if (o && i >= o.length) o = void 0;
            return { value: o && o[i++], done: !o };
        }
    };
    throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
}

export function __read(o, n) {
    var m = typeof Symbol === "function" && o[Symbol.iterator];
    if (!m) return o;
    var i = m.call(o), r, ar = [], e;
    try {
        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
    }
    catch (error) { e = { error: error }; }
    finally {
        try {
            if (r && !r.done && (m = i["return"])) m.call(i);
        }
        finally { if (e) throw e.error; }
    }
    return ar;
}

/** @deprecated */
export function __spread() {
    for (var ar = [], i = 0; i < arguments.length; i++)
        ar = ar.concat(__read(arguments[i]));
    return ar;
}

/** @deprecated */
export function __spreadArrays() {
    for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
    for (var r = Array(s), k = 0, i = 0; i < il; i++)
        for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
            r[k] = a[j];
    return r;
}

export function __spreadArray(to, from, pack) {
    if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
        if (ar || !(i in from)) {
            if (!ar) ar = Array.prototype.slice.call(from, 0, i);
            ar[i] = from[i];
        }
    }
    return to.concat(ar || Array.prototype.slice.call(from));
}

export function __await(v) {
    return this instanceof __await ? (this.v = v, this) : new __await(v);
}

export function __asyncGenerator(thisArg, _arguments, generator) {
    if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
    var g = generator.apply(thisArg, _arguments || []), i, q = [];
    return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
    function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
    function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
    function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
    function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
    function fulfill(value) { resume("next", value); }
    function reject(value) { resume("throw", value); }
    function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
}

export function __asyncDelegator(o) {
    var i, p;
    return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
    function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
}

export function __asyncValues(o) {
    if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
    var m = o[Symbol.asyncIterator], i;
    return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
    function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
    function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
}

export function __makeTemplateObject(cooked, raw) {
    if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
    return cooked;
};

var __setModuleDefault = Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
};

var ownKeys = function(o) {
    ownKeys = Object.getOwnPropertyNames || function (o) {
        var ar = [];
        for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
        return ar;
    };
    return ownKeys(o);
};

export function __importStar(mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
    __setModuleDefault(result, mod);
    return result;
}

export function __importDefault(mod) {
    return (mod && mod.__esModule) ? mod : { default: mod };
}

export function __classPrivateFieldGet(receiver, state, kind, f) {
    if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
    if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
    return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
}

export function __classPrivateFieldSet(receiver, state, value, kind, f) {
    if (kind === "m") throw new TypeError("Private method is not writable");
    if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
    if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
    return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
}

export function __classPrivateFieldIn(state, receiver) {
    if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
    return typeof state === "function" ? receiver === state : state.has(receiver);
}

export function __addDisposableResource(env, value, async) {
    if (value !== null && value !== void 0) {
        if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
        var dispose, inner;
        if (async) {
            if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
            dispose = value[Symbol.asyncDispose];
        }
        if (dispose === void 0) {
            if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
            dispose = value[Symbol.dispose];
            if (async) inner = dispose;
        }
        if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
        if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };
        env.stack.push({ value: value, dispose: dispose, async: async });
    }
    else if (async) {
        env.stack.push({ async: true });
    }
    return value;

}

var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
    var e = new Error(message);
    return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
};

export function __disposeResources(env) {
    function fail(e) {
        env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
        env.hasError = true;
    }
    var r, s = 0;
    function next() {
        while (r = env.stack.pop()) {
            try {
                if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);
                if (r.dispose) {
                    var result = r.dispose.call(r.value);
                    if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
                }
                else s |= 1;
            }
            catch (e) {
                fail(e);
            }
        }
        if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();
        if (env.hasError) throw env.error;
    }
    return next();
}

export function __rewriteRelativeImportExtension(path, preserveJsx) {
    if (typeof path === "string" && /^\.\.?\//.test(path)) {
        return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {
            return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");
        });
    }
    return path;
}

export default {
    __extends: __extends,
    __assign: __assign,
    __rest: __rest,
    __decorate: __decorate,
    __param: __param,
    __esDecorate: __esDecorate,
    __runInitializers: __runInitializers,
    __propKey: __propKey,
    __setFunctionName: __setFunctionName,
    __metadata: __metadata,
    __awaiter: __awaiter,
    __generator: __generator,
    __createBinding: __createBinding,
    __exportStar: __exportStar,
    __values: __values,
    __read: __read,
    __spread: __spread,
    __spreadArrays: __spreadArrays,
    __spreadArray: __spreadArray,
    __await: __await,
    __asyncGenerator: __asyncGenerator,
    __asyncDelegator: __asyncDelegator,
    __asyncValues: __asyncValues,
    __makeTemplateObject: __makeTemplateObject,
    __importStar: __importStar,
    __importDefault: __importDefault,
    __classPrivateFieldGet: __classPrivateFieldGet,
    __classPrivateFieldSet: __classPrivateFieldSet,
    __classPrivateFieldIn: __classPrivateFieldIn,
    __addDisposableResource: __addDisposableResource,
    __disposeResources: __disposeResources,
    __rewriteRelativeImportExtension: __rewriteRelativeImportExtension,
};

var sr=class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?Ft.isErrorNoTelemetry(e)?new Ft(e.message+`

`+e.stack):new Error(e.message+`

`+e.stack):e},0)}}addListener(e){return this.listeners.push(e),()=>{this._removeListener(e)}}emit(e){this.listeners.forEach(t=>{t(e)})}_removeListener(e){this.listeners.splice(this.listeners.indexOf(e),1)}setUnexpectedErrorHandler(e){this.unexpectedErrorHandler=e}getUnexpectedErrorHandler(){return this.unexpectedErrorHandler}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}},Oi=new sr;function Ne(r){lr(r)||Oi.onUnexpectedError(r)}function Bi(r){lr(r)||Oi.onUnexpectedExternalError(r)}function fn(r){if(r instanceof Error){let{name:e,message:t,cause:n}=r,i=r.stacktrace||r.stack;return{$isError:!0,name:e,message:t,stack:i,noTelemetry:Ft.isErrorNoTelemetry(r),cause:n?fn(n):void 0,code:r.code}}return r}var ar="Canceled";function lr(r){return r instanceof dt?!0:r instanceof Error&&r.name===ar&&r.message===ar}var dt=class extends Error{constructor(){super(ar),this.name=this.message}},Fi=class r extends Error{static{this._name="PendingMigrationError"}static is(e){return e instanceof r||e instanceof Error&&e.name===r._name}constructor(e){super(e),this.name=r._name}};var Ft=class r extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof r)return e;let t=new r;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return e.name==="CodeExpectedError"}},G=class r extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,r.prototype)}};function zi(r,e){let t=Object.create(null);for(let n of r){let i=e(n),o=t[i];o||(o=t[i]=[]),o.push(n)}return t}var qi,Wi,Vi=class{constructor(e,t){this.toKey=t;this._map=new Map;this[qi]="SetWithKey";for(let n of e)this.add(n)}get size(){return this._map.size}add(e){let t=this.toKey(e);return this._map.set(t,e),this}delete(e){return this._map.delete(this.toKey(e))}has(e){return this._map.has(this.toKey(e))}*entries(){for(let e of this._map.values())yield[e,e]}keys(){return this.values()}*values(){for(let e of this._map.values())yield e}clear(){this._map.clear()}forEach(e,t){this._map.forEach(n=>e.call(t,n,n,this))}[(Wi=Symbol.iterator,qi=Symbol.toStringTag,Wi)](){return this.values()}};function Fe(r,e){let t=Oe(r,e);return t===-1?void 0:r[t]}function Oe(r,e,t=0,n=r.length){let i=t,o=n;for(;i<o;){let a=Math.floor((i+o)/2);e(r[a])?i=a+1:o=a}return i-1}function Hi(r,e){let t=Bt(r,e);return t===r.length?void 0:r[t]}function Bt(r,e,t=0,n=r.length){let i=t,o=n;for(;i<o;){let a=Math.floor((i+o)/2);e(r[a])?o=a:i=a+1}return i}var Ot=class r{constructor(e){this._array=e;this._findLastMonotonousLastIdx=0}static{this.assertInvariants=!1}findLastMonotonous(e){if(r.assertInvariants){if(this._prevFindLastPredicate){for(let n of this._array)if(this._prevFindLastPredicate(n)&&!e(n))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this._prevFindLastPredicate=e}let t=Oe(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=t+1,t===-1?void 0:this._array[t]}};function pn(r,e,t=(n,i)=>n===i){if(r===e)return!0;if(!r||!e||r.length!==e.length)return!1;for(let n=0,i=r.length;n<i;n++)if(!t(r[n],e[n]))return!1;return!0}function*ji(r,e){let t,n;for(let i of r)n!==void 0&&e(n,i)?t.push(i):(t&&(yield t),t=[i]),n=i;t&&(yield t)}function $i(r,e){for(let t=0;t<=r.length;t++)e(t===0?void 0:r[t-1],t===r.length?void 0:r[t])}function Gi(r,e){for(let t=0;t<r.length;t++)e(t===0?void 0:r[t-1],r[t],t+1===r.length?void 0:r[t+1])}function Qi(r,e){for(let t of e)r.push(t)}var Xi;(l=>{function r(u){return u<0}l.isLessThan=r;function e(u){return u<=0}l.isLessThanOrEqual=e;function t(u){return u>0}l.isGreaterThan=t;function n(u){return u===0}l.isNeitherLessOrGreaterThan=n,l.greaterThan=1,l.lessThan=-1,l.neitherLessOrGreaterThan=0})(Xi||={});function _e(r,e){return(t,n)=>e(r(t),r(n))}var Be=(r,e)=>r-e;function Yi(r){return(e,t)=>-r(e,t)}var Ki=class r{constructor(e){this.iterate=e}static{this.empty=new r(e=>{})}forEach(e){this.iterate(t=>(e(t),!0))}toArray(){let e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(e){return new r(t=>this.iterate(n=>e(n)?t(n):!0))}map(e){return new r(t=>this.iterate(n=>t(e(n))))}some(e){let t=!1;return this.iterate(n=>(t=e(n),!t)),t}findFirst(e){let t;return this.iterate(n=>e(n)?(t=n,!1):!0),t}findLast(e){let t;return this.iterate(n=>(e(n)&&(t=n),!0)),t}findLastMaxBy(e){let t,n=!0;return this.iterate(i=>((n||Xi.isGreaterThan(e(i,t)))&&(n=!1,t=i),!0)),t}};function Ji(r,e){return r.reduce((t,n)=>t+e(n),0)}var ur=class{constructor(e,t){this.uri=e;this.value=t}};function Ys(r){return Array.isArray(r)}var eo,Vt=class r{constructor(e,t){this[eo]="ResourceMap";if(e instanceof r)this.map=new Map(e.map),this.toKey=t??r.defaultToKey;else if(Ys(e)){this.map=new Map,this.toKey=t??r.defaultToKey;for(let[n,i]of e)this.set(n,i)}else this.map=new Map,this.toKey=e??r.defaultToKey}static{this.defaultToKey=e=>e.toString()}set(e,t){return this.map.set(this.toKey(e),new ur(e,t)),this}get(e){return this.map.get(this.toKey(e))?.value}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,t){typeof t<"u"&&(e=e.bind(t));for(let[n,i]of this.map)e(i.value,i.uri,this)}*values(){for(let e of this.map.values())yield e.value}*keys(){for(let e of this.map.values())yield e.uri}*entries(){for(let e of this.map.values())yield[e.uri,e.value]}*[(eo=Symbol.toStringTag,Symbol.iterator)](){for(let[,e]of this.map)yield[e.uri,e.value]}},to,Zi=class{constructor(e,t){this[to]="ResourceSet";!e||typeof e=="function"?this._map=new Vt(e):(this._map=new Vt(t),e.forEach(this.add,this))}get size(){return this._map.size}add(e){return this._map.set(e,e),this}clear(){this._map.clear()}delete(e){return this._map.delete(e)}forEach(e,t){this._map.forEach((n,i)=>e.call(t,i,i,this))}has(e){return this._map.has(e)}entries(){return this._map.entries()}keys(){return this._map.keys()}values(){return this._map.keys()}[(to=Symbol.toStringTag,Symbol.iterator)](){return this.keys()}};var no,cr=class{constructor(){this[no]="LinkedMap";this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,t=0){let n=this._map.get(e);if(n)return t!==0&&this.touch(n,t),n.value}set(e,t,n=0){let i=this._map.get(e);if(i)i.value=t,n!==0&&this.touch(i,n);else{switch(i={key:e,value:t,next:void 0,previous:void 0},n){case 0:this.addItemLast(i);break;case 1:this.addItemFirst(i);break;case 2:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){let t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");let e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){let n=this._state,i=this._head;for(;i;){if(t?e.bind(t)(i.value,i.key,this):e(i.value,i.key,this),this._state!==n)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){let e=this,t=this._state,n=this._head,i={[Symbol.iterator](){return i},[Symbol.dispose](){},next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){let o={value:n.key,done:!1};return n=n.next,o}else return{value:void 0,done:!0}}};return i}values(){let e=this,t=this._state,n=this._head,i={[Symbol.iterator](){return i},[Symbol.dispose](){},next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){let o={value:n.value,done:!1};return n=n.next,o}else return{value:void 0,done:!0}}};return i}entries(){let e=this,t=this._state,n=this._head,i={[Symbol.iterator](){return i},[Symbol.dispose](){},next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){let o={value:[n.key,n.value],done:!1};return n=n.next,o}else return{value:void 0,done:!0}}};return i}[(no=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let t=this._head,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0),this._state++}trimNew(e){if(e>=this.size)return;if(e===0){this.clear();return}let t=this._tail,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.previous,n--;this._tail=t,this._size=n,t&&(t.next=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw new Error("Invalid list");this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw new Error("Invalid list");this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{let t=e.next,n=e.previous;if(!t||!n)throw new Error("Invalid list");t.previous=n,n.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(t!==1&&t!==2)){if(t===1){if(e===this._head)return;let n=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(n.previous=i,i.next=n),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===2){if(e===this._tail)return;let n=e.next,i=e.previous;e===this._head?(n.previous=void 0,this._head=n):(n.previous=i,i.next=n),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){let e=[];return this.forEach((t,n)=>{e.push([n,t])}),e}fromJSON(e){this.clear();for(let[t,n]of e)this.set(t,n)}},mr=class extends cr{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,t=2){return super.get(e,t)}peek(e){return super.get(e,0)}set(e,t){return super.set(e,t,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}},gn=class extends mr{constructor(e,t=1){super(e,t)}trim(e){this.trimOld(e)}set(e,t){return super.set(e,t),this.checkTrim(),this}};var ft=class{constructor(){this.map=new Map}add(e,t){let n=this.map.get(e);n||(n=new Set,this.map.set(e,n)),n.add(t)}delete(e,t){let n=this.map.get(e);n&&(n.delete(t),n.size===0&&this.map.delete(e))}forEach(e,t){let n=this.map.get(e);n&&n.forEach(t)}get(e){let t=this.map.get(e);return t||new Set}};function ro(r,e="Unreachable"){throw new Error(e)}function hn(r,e="unexpected state"){if(!r)throw typeof e=="string"?new G(`Assertion Failed: ${e}`):e}function Ve(r){if(!r()){debugger;r(),Ne(new G("Assertion Failed"))}}function pt(r,e){let t=0;for(;t<r.length-1;){let n=r[t],i=r[t+1];if(!e(n,i))return!1;t++}return!0}function io(r){return typeof r=="string"}function oo(r){return!!r&&typeof r[Symbol.iterator]=="function"}var qt;(A=>{function r(v){return!!v&&typeof v=="object"&&typeof v[Symbol.iterator]=="function"}A.is=r;let e=Object.freeze([]);function t(){return e}A.empty=t;function*n(v){yield v}A.single=n;function i(v){return r(v)?v:n(v)}A.wrap=i;function o(v){return v??e}A.from=o;function*a(v){for(let w=v.length-1;w>=0;w--)yield v[w]}A.reverse=a;function l(v){return!v||v[Symbol.iterator]().next().done===!0}A.isEmpty=l;function u(v){return v[Symbol.iterator]().next().value}A.first=u;function c(v,w){let L=0;for(let F of v)if(w(F,L++))return!0;return!1}A.some=c;function d(v,w){let L=0;for(let F of v)if(!w(F,L++))return!1;return!0}A.every=d;function m(v,w){for(let L of v)if(w(L))return L}A.find=m;function*p(v,w){for(let L of v)w(L)&&(yield L)}A.filter=p;function*g(v,w){let L=0;for(let F of v)yield w(F,L++)}A.map=g;function*x(v,w){let L=0;for(let F of v)yield*w(F,L++)}A.flatMap=x;function*y(...v){for(let w of v)oo(w)?yield*w:yield w}A.concat=y;function _(v,w,L){let F=L;for(let q of v)F=w(F,q);return F}A.reduce=_;function h(v){let w=0;for(let L of v)w++;return w}A.length=h;function*T(v,w,L=v.length){for(w<-v.length&&(w=0),w<0&&(w+=v.length),L<0?L+=v.length:L>v.length&&(L=v.length);w<L;w++)yield v[w]}A.slice=T;function I(v,w=Number.POSITIVE_INFINITY){let L=[];if(w===0)return[L,v];let F=v[Symbol.iterator]();for(let q=0;q<w;q++){let C=F.next();if(C.done)return[L,A.empty()];L.push(C.value)}return[L,{[Symbol.iterator](){return F}}]}A.consume=I;async function E(v){let w=[];for await(let L of v)w.push(L);return w}A.asyncToArray=E;async function k(v){let w=[];for await(let L of v)w=w.concat(L);return w}A.asyncToArrayFlat=k})(qt||={});var Zs=!1,gt=null;var so=class r{constructor(){this.livingDisposables=new Map}static{this.idx=0}getDisposableData(e){let t=this.livingDisposables.get(e);return t||(t={parent:null,source:null,isSingleton:!1,value:e,idx:r.idx++},this.livingDisposables.set(e,t)),t}trackDisposable(e){let t=this.getDisposableData(e);t.source||(t.source=new Error().stack)}setParent(e,t){let n=this.getDisposableData(e);n.parent=t}markAsDisposed(e){this.livingDisposables.delete(e)}markAsSingleton(e){this.getDisposableData(e).isSingleton=!0}getRootParent(e,t){let n=t.get(e);if(n)return n;let i=e.parent?this.getRootParent(this.getDisposableData(e.parent),t):e;return t.set(e,i),i}getTrackedDisposables(){let e=new Map;return[...this.livingDisposables.entries()].filter(([,n])=>n.source!==null&&!this.getRootParent(n,e).isSingleton).flatMap(([n])=>n)}computeLeakingDisposables(e=10,t){let n;if(t)n=t;else{let u=new Map,c=[...this.livingDisposables.values()].filter(m=>m.source!==null&&!this.getRootParent(m,u).isSingleton);if(c.length===0)return;let d=new Set(c.map(m=>m.value));if(n=c.filter(m=>!(m.parent&&d.has(m.parent))),n.length===0)throw new Error("There are cyclic diposable chains!")}if(!n)return;function i(u){function c(m,p){for(;m.length>0&&p.some(g=>typeof g=="string"?g===m[0]:m[0].match(g));)m.shift()}let d=u.source.split(`
`).map(m=>m.trim().replace("at ","")).filter(m=>m!=="");return c(d,["Error",/^trackDisposable \(.*\)$/,/^DisposableTracker.trackDisposable \(.*\)$/]),d.reverse()}let o=new ft;for(let u of n){let c=i(u);for(let d=0;d<=c.length;d++)o.add(c.slice(0,d).join(`
`),u)}n.sort(_e(u=>u.idx,Be));let a="",l=0;for(let u of n.slice(0,e)){l++;let c=i(u),d=[];for(let m=0;m<c.length;m++){let p=c[m];p=`(shared with ${o.get(c.slice(0,m+1).join(`
`)).size}/${n.length} leaks) at ${p}`;let x=o.get(c.slice(0,m).join(`
`)),y=zi([...x].map(_=>i(_)[m]),_=>_);delete y[c[m]];for(let[_,h]of Object.entries(y))h&&d.unshift(`    - stacktraces of ${h.length} other leaks continue with ${_}`);d.unshift(p)}a+=`


==================== Leaking disposable ${l}/${n.length}: ${u.value.constructor.name} ====================
${d.join(`
`)}
============================================================

`}return n.length>e&&(a+=`


... and ${n.length-e} more leaking disposables

`),{leaks:n,details:a}}};function ea(r){gt=r}if(Zs){let r="__is_disposable_tracked__";ea(new class{trackDisposable(e){let t=new Error("Potentially leaked disposable").stack;setTimeout(()=>{e[r]||console.log(t)},3e3)}setParent(e,t){if(e&&e!==ge.None)try{e[r]=!0}catch{}}markAsDisposed(e){if(e&&e!==ge.None)try{e[r]=!0}catch{}}markAsSingleton(e){}})}function pr(r){return gt?.trackDisposable(r),r}function gr(r){gt?.markAsDisposed(r)}function dr(r,e){gt?.setParent(r,e)}function ta(r,e){if(gt)for(let t of r)gt.setParent(t,e)}function hr(r){if(qt.is(r)){let e=[];for(let t of r)if(t)try{t.dispose()}catch(n){e.push(n)}if(e.length===1)throw e[0];if(e.length>1)throw new AggregateError(e,"Encountered errors while disposing of store");return Array.isArray(r)?[]:r}else if(r)return r.dispose(),r}function ao(...r){let e=Re(()=>hr(r));return ta(r,e),e}var fr=class{constructor(e){this._isDisposed=!1,this._fn=e,pr(this)}dispose(){if(!this._isDisposed){if(!this._fn)throw new Error("Unbound disposable context: Need to use an arrow function to preserve the value of this");this._isDisposed=!0,gr(this),this._fn()}}};function Re(r){return new fr(r)}var qe=class r{constructor(){this._toDispose=new Set;this._isDisposed=!1;pr(this)}static{this.DISABLE_DISPOSED_WARNING=!1}dispose(){this._isDisposed||(gr(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{hr(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e||e===ge.None)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return dr(e,this),this._isDisposed?r.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}delete(e){if(e){if(e===this)throw new Error("Cannot dispose a disposable on itself!");this._toDispose.delete(e),e.dispose()}}deleteAndLeak(e){e&&this._toDispose.delete(e)&&dr(e,null)}assertNotDisposed(){this._isDisposed&&Ne(new G("Object disposed"))}},ge=class{constructor(){this._store=new qe;pr(this),dr(this._store,this)}static{this.None=Object.freeze({dispose(){}})}dispose(){gr(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}};var Z=class r{static{this.Undefined=new r(void 0)}constructor(e){this.element=e,this.next=r.Undefined,this.prev=r.Undefined}},Wt=class{constructor(){this._first=Z.Undefined;this._last=Z.Undefined;this._size=0}get size(){return this._size}isEmpty(){return this._first===Z.Undefined}clear(){let e=this._first;for(;e!==Z.Undefined;){let t=e.next;e.prev=Z.Undefined,e.next=Z.Undefined,e=t}this._first=Z.Undefined,this._last=Z.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let n=new Z(e);if(this._first===Z.Undefined)this._first=n,this._last=n;else if(t){let o=this._last;this._last=n,n.prev=o,o.next=n}else{let o=this._first;this._first=n,n.next=o,o.prev=n}this._size+=1;let i=!1;return()=>{i||(i=!0,this._remove(n))}}shift(){if(this._first!==Z.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Z.Undefined){let e=this._last.element;return this._remove(this._last),e}}peek(){if(this._last!==Z.Undefined)return this._last.element}_remove(e){if(e.prev!==Z.Undefined&&e.next!==Z.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===Z.Undefined&&e.next===Z.Undefined?(this._first=Z.Undefined,this._last=Z.Undefined):e.next===Z.Undefined?(this._last=this._last.prev,this._last.next=Z.Undefined):e.prev===Z.Undefined&&(this._first=this._first.next,this._first.prev=Z.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==Z.Undefined;)yield e.element,e=e.next}};function na(){return globalThis._VSCODE_NLS_MESSAGES}function br(){return globalThis._VSCODE_NLS_LANGUAGE}var ra=br()==="pseudo"||typeof document<"u"&&document.location&&typeof document.location.hash=="string"&&document.location.hash.indexOf("pseudo=true")>=0;function lo(r,e){let t;return e.length===0?t=r:t=r.replace(/\{(\d+)\}/g,(n,i)=>{let o=parseInt(i,10),a=e[o],l=n;return typeof a=="string"?l=a:(typeof a=="number"||typeof a=="boolean"||a===void 0||a===null)&&(l=String(a)),l}),ra&&(t="\uFF3B"+t.replace(/[aouei]/g,"$&$&")+"\uFF3D"),t}function V(r,e,...t){return lo(typeof r=="number"?ia(r,e):e,t)}function ia(r,e){let t=na()?.[r];if(typeof t!="string"){if(typeof e=="string")return e;throw new Error(`!!! NLS MISSING: ${r} !!!`)}return t}var it="en",yn=!1,vn=!1,zt=!1,sa=!1,co=!1,yr=!1,mo=!1,aa=!1,la=!1,ua=!1,bn,xn=it,uo=it,ca,We,ze=globalThis,he;typeof ze.vscode<"u"&&typeof ze.vscode.process<"u"?he=ze.vscode.process:typeof process<"u"&&typeof process?.versions?.node=="string"&&(he=process);var fo=typeof he?.versions?.electron=="string",ma=fo&&he?.type==="renderer";if(typeof he=="object"){yn=he.platform==="win32",vn=he.platform==="darwin",zt=he.platform==="linux",sa=zt&&!!he.env.SNAP&&!!he.env.SNAP_REVISION,mo=fo,la=!!he.env.CI||!!he.env.BUILD_ARTIFACTSTAGINGDIRECTORY||!!he.env.GITHUB_WORKSPACE,bn=it,xn=it;let r=he.env.VSCODE_NLS_CONFIG;if(r)try{let e=JSON.parse(r);bn=e.userLocale,uo=e.osLocale,xn=e.resolvedLanguage||it,ca=e.languagePack?.translationsConfigFile}catch{}co=!0}else typeof navigator=="object"&&!ma?(We=navigator.userAgent,yn=We.indexOf("Windows")>=0,vn=We.indexOf("Macintosh")>=0,aa=(We.indexOf("Macintosh")>=0||We.indexOf("iPad")>=0||We.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,zt=We.indexOf("Linux")>=0,ua=We?.indexOf("Mobi")>=0,yr=!0,xn=br()||it,bn=navigator.language.toLowerCase(),uo=bn):console.error("Unable to resolve platform.");var xr=0;vn?xr=1:yn?xr=3:zt&&(xr=2);var Ae=yn,po=vn,go=zt;var ho=co,bo=mo,vr=yr,Tr=yr&&typeof ze.importScripts=="function",xo=Tr?ze.origin:void 0;var ve=We,Qe=xn,da;(n=>{function r(){return Qe}n.value=r;function e(){return Qe.length===2?Qe==="en":Qe.length>=3?Qe[0]==="e"&&Qe[1]==="n"&&Qe[2]==="-":!1}n.isDefaultVariant=e;function t(){return Qe==="en"}n.isDefault=t})(da||={});var fa=typeof ze.postMessage=="function"&&!ze.importScripts,yo=(()=>{if(fa){let r=[];ze.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let n=0,i=r.length;n<i;n++){let o=r[n];if(o.id===t.data.vscodeScheduleAsyncWork){r.splice(n,1),o.callback();return}}});let e=0;return t=>{let n=++e;r.push({id:n,callback:t}),ze.postMessage({vscodeScheduleAsyncWork:n},"*")}}return r=>setTimeout(r)})();var pa=!!(ve&&ve.indexOf("Chrome")>=0),Uu=!!(ve&&ve.indexOf("Firefox")>=0),Fu=!!(!pa&&ve&&ve.indexOf("Safari")>=0),Ou=!!(ve&&ve.indexOf("Edg/")>=0),Bu=!!(ve&&ve.indexOf("Android")>=0),vo=!!(ve&&ve.indexOf("Electron")>=0);var ot,wr=globalThis.vscode;if(typeof wr<"u"&&typeof wr.process<"u"){let r=wr.process;ot={get platform(){return r.platform},get arch(){return r.arch},get env(){return r.env},cwd(){return r.cwd()}}}else typeof process<"u"&&typeof process?.versions?.node=="string"?ot={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:ot={get platform(){return Ae?"win32":po?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};var Ht=ot.cwd,Tn=ot.env,wo=ot.platform,Wu=ot.arch;var ha=globalThis.performance.now.bind(globalThis.performance),ht=class r{static create(e){return new r(e)}constructor(e){this._now=e===!1?Date.now:ha,this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}};var _o=!1,xa=!1,ya=100,Ro=6e4;function Io(){return!!Tn.VSCODE_DEV}var Kt;(pe=>{pe.None=()=>ge.None;function e(S){if(xa){let{onDidAddListener:R}=S,N=xt.create(),P=0;S.onDidAddListener=()=>{++P===2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),N.print()),R?.()}}}function t(S,R,N){return g(S,()=>{},0,void 0,R??!0,void 0,N)}pe.defer=t;function n(S){return(R,N=null,P)=>{let M=!1,O;return O=S(H=>{if(!M)return O?O.dispose():M=!0,R.call(N,H)},null,P),M&&O.dispose(),O}}pe.once=n;function i(S,R){return pe.once(pe.filter(S,R))}pe.onceIf=i;function o(S,R,N){return m((P,M=null,O)=>S(H=>P.call(M,R(H)),null,O),N)}pe.map=o;function a(S,R,N){return m((P,M=null,O)=>S(H=>{R(H),P.call(M,H)},null,O),N)}pe.forEach=a;function l(S,R,N){return m((P,M=null,O)=>S(H=>R(H)&&P.call(M,H),null,O),N)}pe.filter=l;function u(S){return S}pe.signal=u;function c(...S){return(R,N=null,P)=>{let M=ao(...S.map(O=>O(H=>R.call(N,H))));return p(M,P)}}pe.any=c;function d(S,R,N,P){let M=N;return o(S,O=>(M=R(M,O),M),P)}pe.reduce=d;function m(S,R){let N,P={onWillAddFirstListener(){N=S(M.fire,M)},onDidRemoveLastListener(){N?.dispose()}};R||e(P);let M=new oe(P);return R?.add(M),M.event}function p(S,R){return R instanceof Array?R.push(S):R&&R.add(S),S}function g(S,R,N=100,P=!1,M=!1,O,H){let se,X,ce,ae=0,me,Ue={leakWarningThreshold:O,onWillAddFirstListener(){se=S(Ci=>{ae++,X=R(X,Ci),P&&!ce&&(rt.fire(X),X=void 0),me=()=>{let Ui=X;X=void 0,ce=void 0,(!P||ae>1)&&rt.fire(Ui),ae=0},typeof N=="number"?(ce&&clearTimeout(ce),ce=setTimeout(me,N)):ce===void 0&&(ce=null,queueMicrotask(me))})},onWillRemoveListener(){M&&ae>0&&me?.()},onDidRemoveLastListener(){me=void 0,se.dispose()}};H||e(Ue);let rt=new oe(Ue);return H?.add(rt),rt.event}pe.debounce=g;function x(S,R=0,N,P){return pe.debounce(S,(M,O)=>M?(M.push(O),M):[O],R,void 0,N??!0,void 0,P)}pe.accumulate=x;function y(S,R,N=100,P=!0,M=!0,O,H){let se,X,ce,ae=0,me={leakWarningThreshold:O,onWillAddFirstListener(){se=S(rt=>{ae++,X=R(X,rt),ce===void 0&&(P&&(Ue.fire(X),X=void 0,ae=0),typeof N=="number"?ce=setTimeout(()=>{M&&ae>0&&Ue.fire(X),X=void 0,ce=void 0,ae=0},N):(ce=0,queueMicrotask(()=>{M&&ae>0&&Ue.fire(X),X=void 0,ce=void 0,ae=0})))})},onDidRemoveLastListener(){se.dispose()}};H||e(me);let Ue=new oe(me);return H?.add(Ue),Ue.event}pe.throttle=y;function _(S,R=(P,M)=>P===M,N){let P=!0,M;return l(S,O=>{let H=P||!R(O,M);return P=!1,M=O,H},N)}pe.latch=_;function h(S,R,N){return[pe.filter(S,R,N),pe.filter(S,P=>!R(P),N)]}pe.split=h;function T(S,R,N=!1,P=[],M){let O=P.slice(),H;Io()&&(H={stack:xt.create(),timerId:setTimeout(()=>{O&&O.length>0&&H&&!H.warned&&(H.warned=!0,console.warn(`[Event.buffer][${R}] potential LEAK detected: ${O.length} events buffered for ${Ro/1e3}s without being consumed. Buffered here:`),H.stack.print())},Ro),warned:!1},M&&M.add(Re(()=>clearTimeout(H.timerId))));let se=()=>{H&&clearTimeout(H.timerId)},X=S(me=>{O?(O.push(me),Io()&&H&&!H.warned&&O.length>=ya&&(H.warned=!0,console.warn(`[Event.buffer][${R}] potential LEAK detected: ${O.length} events buffered without being consumed. Buffered here:`),H.stack.print())):ae.fire(me)});M&&M.add(X);let ce=()=>{O?.forEach(me=>ae.fire(me)),O=null,se()},ae=new oe({onWillAddFirstListener(){X||(X=S(me=>ae.fire(me)),M&&M.add(X))},onDidAddFirstListener(){O&&(N?setTimeout(ce):ce())},onDidRemoveLastListener(){X&&X.dispose(),X=null,se()}});return M&&M.add(ae),ae.event}pe.buffer=T;function I(S,R){return(P,M,O)=>{let H=R(new k);return S(function(se){let X=H.evaluate(se);X!==E&&P.call(M,X)},void 0,O)}}pe.chain=I;let E=Symbol("HaltChainable");class k{constructor(){this.steps=[]}map(R){return this.steps.push(R),this}forEach(R){return this.steps.push(N=>(R(N),N)),this}filter(R){return this.steps.push(N=>R(N)?N:E),this}reduce(R,N){let P=N;return this.steps.push(M=>(P=R(P,M),P)),this}latch(R=(N,P)=>N===P){let N=!0,P;return this.steps.push(M=>{let O=N||!R(M,P);return N=!1,P=M,O?M:E}),this}evaluate(R){for(let N of this.steps)if(R=N(R),R===E)break;return R}}function A(S,R,N=P=>P){let P=(...se)=>H.fire(N(...se)),M=()=>S.on(R,P),O=()=>S.removeListener(R,P),H=new oe({onWillAddFirstListener:M,onDidRemoveLastListener:O});return H.event}pe.fromNodeEventEmitter=A;function v(S,R,N=P=>P){let P=(...se)=>H.fire(N(...se)),M=()=>S.addEventListener(R,P),O=()=>S.removeEventListener(R,P),H=new oe({onWillAddFirstListener:M,onDidRemoveLastListener:O});return H.event}pe.fromDOMEventEmitter=v;function w(S,R){let N,P,M=new Promise(O=>{P=n(S)(O),Sr(P,R),N=()=>{So(P,R)}});return M.cancel=N,R&&M.finally(()=>So(P,R)),M}pe.toPromise=w;function L(S,R){return S(N=>R.fire(N))}pe.forward=L;function F(S,R,N){return R(N),S(P=>R(P))}pe.runAndSubscribe=F;class q{constructor(R,N){this._observable=R;this._counter=0;this._hasChanged=!1;let P={onWillAddFirstListener:()=>{R.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{R.removeObserver(this)}};N||e(P),this.emitter=new oe(P),N&&N.add(this.emitter)}beginUpdate(R){this._counter++}handlePossibleChange(R){}handleChange(R,N){this._hasChanged=!0}endUpdate(R){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function C(S,R){return new q(S,R).emitter.event}pe.fromObservable=C;function re(S){return(R,N,P)=>{let M=0,O=!1,H={beginUpdate(){M++},endUpdate(){M--,M===0&&(S.reportChanges(),O&&(O=!1,R.call(N)))},handlePossibleChange(){},handleChange(){O=!0}};S.addObserver(H),S.reportChanges();let se={dispose(){S.removeObserver(H)}};return Sr(se,P),se}}pe.fromObservableLight=re})(Kt||={});var _r=class r{constructor(e){this.listenerCount=0;this.invocationCount=0;this.elapsedOverall=0;this.durations=[];this.name=`${e}_${r._idPool++}`,r.all.add(this)}static{this.all=new Set}static{this._idPool=0}start(e){this._stopWatch=new ht,this.listenerCount=e}stop(){if(this._stopWatch){let e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}},Lo=-1;var va=1;function Eo(){return(va++).toString(16).padStart(3,"0")}var Rr=class{constructor(e,t,n=Eo()){this._errorHandler=e;this.threshold=t;this.name=n;this._warnCountdown=0}dispose(){this._stacks?.clear()}check(e,t){let n=this.threshold;if(n<=0||t<n)return;this._stacks||(this._stacks=new Map);let i=e.value,o=this._stacks.get(i)||0;if(this._stacks.set(i,o+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=n*.5;let[a,l]=this.getMostFrequentStack(),u=/^[0-9a-f]+$/i.test(this.name)?void 0:this.name,c=`[${this.name}] potential listener LEAK detected, having ${t} listeners already. MOST frequent listener (${l}):`;console.warn(c),console.warn(a);let d=l/t>.3?"dominated":"popular",m=new wn(d,c,a,t,u);this._errorHandler(m)}return()=>{let a=this._stacks.get(i)||0;a<=1?this._stacks.delete(i):this._stacks.set(i,a-1)}}getMostFrequentStack(){if(!this._stacks)return;let e,t=0;for(let[n,i]of this._stacks)(!e||t<i)&&(e=[n,i],t=i);return e}},xt=class r{constructor(e){this.value=e}static create(){let e=new Error;return new r(e.stack??"")}print(){console.warn(this.value.split(`
`).slice(2).join(`
`))}},wn=class r extends Error{constructor(e,t,n,i,o){super(o?`[${o}] potential listener LEAK detected, ${e}`:`potential listener LEAK detected, ${e}`),this.name="ListenerLeakError",this.kind=e,this.listenerCount=i,this.details=t,this.stack=n}static is(e){return e instanceof r||e instanceof Error&&typeof e.kind=="string"&&typeof e.listenerCount=="number"}},Ir=class extends wn{constructor(e,t,n,i,o){super(e,t,n,i,o),this.name="ListenerRefusalError"}},Ta=0,bt=class{constructor(e){this.value=e;this.id=Ta++}},wa=2,_a=(r,e)=>{if(r instanceof bt)e(r);else for(let t=0;t<r.length;t++){let n=r[t];n&&e(n)}},oe=class{constructor(e){this._size=0;this._options=e,(Lo>0||this._options?.leakWarningThreshold)&&(this._leakWarningThreshold=this._options?.leakWarningThreshold??Lo,this._leakWarningName=this._options?.leakWarningName??Eo(),this._leakWarningErrorHandler=this._options?.onListenerError??Ne),this._perfMon=this._options?._profName?new _r(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}_getLeakageMonitor(){if(!(this._leakWarningThreshold===void 0||this._leakWarningName===void 0||this._leakWarningErrorHandler===void 0))return this._leakageMon??=new Rr(this._leakWarningErrorHandler,this._leakWarningThreshold,this._leakWarningName)}dispose(){if(!this._disposed){if(this._disposed=!0,this._deliveryQueue?.current===this&&this._deliveryQueue.reset(),this._listeners){if(_o){let e=this._listeners;queueMicrotask(()=>{_a(e,t=>t.stack?.print())})}this._listeners=void 0,this._size=0}this._options?.onDidRemoveLastListener?.(),this._leakageMon?.dispose()}}get event(){return this._event??=(e,t,n)=>{if(this._leakWarningThreshold!==void 0&&this._size>this._leakWarningThreshold**2){let u=this._getLeakageMonitor();if(u){let c=`[${u.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${u.threshold})`;console.warn(c);let d=u.getMostFrequentStack()??["UNKNOWN stack",-1],m=d[1]/this._size>.3?"dominated":"popular",p=new Ir(m,`${c}. HINT: Stack shows most frequent listener (${d[1]}-times)`,d[0],this._size,this._options?.leakWarningName);return(this._options?.onListenerError||Ne)(p),ge.None}}if(this._disposed)return ge.None;t&&(e=e.bind(t));let i=new bt(e),o,a;if(this._leakWarningThreshold!==void 0&&this._size>=Math.ceil(this._leakWarningThreshold*.2)){let u=this._getLeakageMonitor();u&&(i.stack=xt.create(),o=u.check(i.stack,this._size+1))}_o&&(i.stack=a??xt.create()),this._listeners?this._listeners instanceof bt?(this._deliveryQueue??=new Lr,this._listeners=[this._listeners,i]):this._listeners.push(i):(this._options?.onWillAddFirstListener?.(this),this._listeners=i,this._options?.onDidAddFirstListener?.(this)),this._options?.onDidAddListener?.(this),this._size++;let l=Re(()=>{o?.(),this._removeListener(i)});return Sr(l,n),l},this._event}_removeListener(e){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(this._size===1){this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),this._size=0;return}let t=this._listeners,n=t.indexOf(e);if(n===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,t[n]=void 0;let i=this._deliveryQueue.current===this;if(this._size*wa<=t.length){let o=0;for(let a=0;a<t.length;a++)t[a]?t[o++]=t[a]:i&&o<this._deliveryQueue.end&&(this._deliveryQueue.end--,o<this._deliveryQueue.i&&this._deliveryQueue.i--);t.length=o}}_deliver(e,t){if(!e)return;let n=this._options?.onListenerError||Ne;if(!n){e.value(t);return}try{e.value(t)}catch(i){n(i)}}_deliverQueue(e){let t=e.current._listeners;for(;e.i<e.end;)this._deliver(t[e.i++],e.value);e.reset()}fire(e){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners)if(this._listeners instanceof bt)this._deliver(this._listeners,e);else{let t=this._deliveryQueue;t.enqueue(this,e,this._listeners.length),this._deliverQueue(t)}this._perfMon?.stop()}hasListeners(){return this._size>0}};var Lr=class{constructor(){this.i=-1;this.end=0}enqueue(e,t,n){this.i=0,this.end=n,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}};function Sr(r,e){e instanceof qe?e.add(r):Array.isArray(e)&&e.push(r)}function So(r,e){if(e instanceof qe)e.delete(r);else if(Array.isArray(e)){let t=e.indexOf(r);t!==-1&&e.splice(t,1)}r.dispose()}var ko=Object.freeze(function(r,e){let t=setTimeout(r.bind(e),0);return{dispose(){clearTimeout(t)}}}),Er;(n=>{function r(i){return i===n.None||i===n.Cancelled||i instanceof yt?!0:!i||typeof i!="object"?!1:typeof i.isCancellationRequested=="boolean"&&typeof i.onCancellationRequested=="function"}n.isCancellationToken=r,n.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Kt.None}),n.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:ko})})(Er||={});var yt=class{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?ko:(this._emitter||(this._emitter=new oe),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}},vt=class{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 yt),this._token}cancel(){this._token?this._token instanceof yt&&this._token.cancel():this._token=Er.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof yt&&this._token.dispose():this._token=Er.None}};function Ra(r){return r}var _n=class{constructor(e,t){this.lastCache=void 0;this.lastArgKey=void 0;typeof e=="function"?(this._fn=e,this._computeKey=Ra):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){let t=this._computeKey(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this._fn(e)),this.lastCache}};var He=class{constructor(e){this.executor=e;this._state=0}get hasValue(){return this._state===2}get value(){if(this._state===0){this._state=1;try{this._value=this.executor()}catch(e){this._error=e}finally{this._state=2}}else if(this._state===1)throw new Error("Cannot read the value of a lazy that is being initialized");if(this._error)throw this._error;return this._value}get rawValue(){return this._value}};function kr(r){return r<0?0:r>255?255:r|0}function st(r){return r<0?0:r>4294967295?4294967295:r|0}function Do(r){return r.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function Po(r){return r.source==="^"||r.source==="^$"||r.source==="$"||r.source==="^\\s*$"?!1:!!(r.exec("")&&r.lastIndex===0)}function Rn(r){return r.split(/\r\n|\r|\n/)}function Mo(r){for(let e=0,t=r.length;e<t;e++){let n=r.charCodeAt(e);if(n!==32&&n!==9)return e}return-1}function Co(r,e=r.length-1){for(let t=e;t>=0;t--){let n=r.charCodeAt(t);if(n!==32&&n!==9)return t}return-1}function Uo(r,e){return r<e?-1:r>e?1:0}function La(r,e,t=0,n=r.length,i=0,o=e.length){for(;t<n&&i<o;t++,i++){let u=r.charCodeAt(t),c=e.charCodeAt(i);if(u<c)return-1;if(u>c)return 1}let a=n-t,l=o-i;return a<l?-1:a>l?1:0}function Fo(r,e,t=0,n=r.length,i=0,o=e.length){for(;t<n&&i<o;t++,i++){let u=r.charCodeAt(t),c=e.charCodeAt(i);if(u===c)continue;if(u>=128||c>=128)return La(r.toLowerCase(),e.toLowerCase(),t,n,i,o);No(u)&&(u-=32),No(c)&&(c-=32);let d=u-c;if(d!==0)return d}let a=n-t,l=o-i;return a<l?-1:a>l?1:0}function No(r){return r>=97&&r<=122}function Nr(r){return r>=65&&r<=90}function In(r,e){return r.length===e.length&&Fo(r,e)===0}function Ar(r,e){let t=e.length;return t<=r.length&&Fo(r,e,0,t)===0}function _t(r,e){let t=Math.min(r.length,e.length),n;for(n=0;n<t;n++)if(r.charCodeAt(n)!==e.charCodeAt(n))return n;return t}function Rt(r,e){let t=Math.min(r.length,e.length),n,i=r.length-1,o=e.length-1;for(n=0;n<t;n++)if(r.charCodeAt(i-n)!==e.charCodeAt(o-n))return n;return t}function It(r){return 55296<=r&&r<=56319}function Ln(r){return 56320<=r&&r<=57343}function Dr(r,e){return(r-55296<<10)+(e-56320)+65536}function Oo(r,e,t){let n=r.charCodeAt(t);if(It(n)&&t+1<e){let i=r.charCodeAt(t+1);if(Ln(i))return Dr(n,i)}return n}var Sa=/^[\t\n\r\x20-\x7E]*$/;function Bo(r){return Sa.test(r)}var Ea=/(?:\x1b\[|\x9b)[=?>!]?[\d;:]*["$#'* ]?[a-zA-Z@^`{}|~]/,ka=/(?:\x1b\]|\x9d).*?(?:\x1b\\|\x07|\x9c)/,Na=/\x1b(?:[ #%\(\)\*\+\-\.\/]?[a-zA-Z0-9\|}~@])/,fc=new RegExp("(?:"+[Ea.source,ka.source,Na.source].join("|")+")","g");var pc=String.fromCharCode(65279);var Ao=class r{static{this._INSTANCE=null}static getInstance(){return r._INSTANCE||(r._INSTANCE=new r),r._INSTANCE}constructor(){this._data=Aa()}getGraphemeBreakType(e){if(e<32)return e===10?3:e===13?2:4;if(e<127)return 0;let t=this._data,n=t.length/3,i=1;for(;i<=n;)if(e<t[3*i])i=2*i;else if(e>t[3*i+1])i=2*i+1;else return t[3*i+2];return 0}};function Aa(){return JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}var Tt=class r{constructor(e){this.confusableDictionary=e}static{this.ambiguousCharacterData=new He(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,1523,96,8242,96,1370,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,118002,50,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,118003,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,118004,52,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,118005,53,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,118006,54,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,118007,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,118008,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,118009,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,117974,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,117975,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71913,67,71922,67,65315,67,8557,67,8450,67,8493,67,117976,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,117977,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,117978,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,117979,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,117980,71,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,117981,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,117983,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,117984,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,118001,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,117982,108,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,117985,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,117986,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,117987,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,118000,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,117988,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,117989,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,117990,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,117991,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,117992,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,117993,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,117994,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,117995,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71910,87,71919,87,117996,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,117997,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,117998,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,71909,90,66293,90,65338,90,8484,90,8488,90,117999,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65283,35,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"cs":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"es":[8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"fr":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"it":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"ja":[8211,45,8218,44,65281,33,8216,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65292,44,65297,49,65307,59],"ko":[8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"pt-BR":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"ru":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"zh-hans":[160,32,65374,126,8218,44,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65297,49],"zh-hant":[8211,45,65374,126,8218,44,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89]}'))}static{this.cache=new _n(e=>{let t=e.split(",");function n(m){let p=new Map;for(let g=0;g<m.length;g+=2)p.set(m[g],m[g+1]);return p}function i(m,p){let g=new Map(m);for(let[x,y]of p)g.set(x,y);return g}function o(m,p){if(!m)return p;let g=new Map;for(let[x,y]of m)p.has(x)&&g.set(x,y);return g}let a=this.ambiguousCharacterData.value,l=t.filter(m=>!m.startsWith("_")&&Object.hasOwn(a,m));l.length===0&&(l=["_default"]);let u;for(let m of l){let p=n(a[m]);u=o(u,p)}let c=n(a._common),d=i(c,u);return new r(d)})}static getInstance(e){return r.cache.get(Array.from(e).join(","))}static{this._locales=new He(()=>Object.keys(r.ambiguousCharacterData.value).filter(e=>!e.startsWith("_")))}static getLocales(){return r._locales.value}isAmbiguous(e){return this.confusableDictionary.has(e)}containsAmbiguousCharacter(e){for(let t=0;t<e.length;t++){let n=e.codePointAt(t);if(typeof n=="number"&&this.isAmbiguous(n))return!0}return!1}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}},wt=class r{static getRawData(){return JSON.parse('{"_common":[11,12,13,127,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999],"cs":[173,8203,12288],"de":[173,8203,12288],"es":[8203,12288],"fr":[173,8203,12288],"it":[160,173,12288],"ja":[173],"ko":[173,12288],"pl":[173,8203,12288],"pt-BR":[173,8203,12288],"qps-ploc":[160,173,8203,12288],"ru":[173,12288],"tr":[160,173,8203,12288],"zh-hans":[160,173,8203,12288],"zh-hant":[173,12288]}')}static{this._data=void 0}static getData(){return this._data||(this._data=new Set([...Object.values(r.getRawData())].flat())),this._data}static isInvisibleCharacter(e){return r.getData().has(e)}static containsInvisibleCharacter(e){for(let t=0;t<e.length;t++){let n=e.codePointAt(t);if(typeof n=="number"&&(r.isInvisibleCharacter(n)||n===32))return!0}return!1}static get codePoints(){return r.getData()}};var Pr="default",Da="$initialize";var Mr=class{constructor(e,t,n,i,o){this.vsWorker=e;this.req=t;this.channel=n;this.method=i;this.args=o;this.type=0}},Sn=class{constructor(e,t,n,i){this.vsWorker=e;this.seq=t;this.res=n;this.err=i;this.type=1}},Cr=class{constructor(e,t,n,i,o){this.vsWorker=e;this.req=t;this.channel=n;this.eventName=i;this.arg=o;this.type=2}},Ur=class{constructor(e,t,n){this.vsWorker=e;this.req=t;this.event=n;this.type=3}},Fr=class{constructor(e,t){this.vsWorker=e;this.req=t;this.type=4}},Or=class{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}async sendMessage(e,t,n){let i=String(++this._lastSentReq);return new Promise((o,a)=>{this._pendingReplies[i]={resolve:o,reject:a},this._send(new Mr(this._workerId,i,e,t,n))})}listen(e,t,n){let i=null,o=new oe({onWillAddFirstListener:()=>{i=String(++this._lastSentReq),this._pendingEmitters.set(i,o),this._send(new Cr(this._workerId,i,e,t,n))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(i),this._send(new Fr(this._workerId,i)),i=null}});return o.event}handleMessage(e){!e||!e.vsWorker||this._workerId!==-1&&e.vsWorker!==this._workerId||this._handleMessage(e)}createProxyToRemoteChannel(e,t){let n={get:(i,o)=>(typeof o=="string"&&!i[o]&&(qo(o)?i[o]=a=>this.listen(e,o,a):Vo(o)?i[o]=this.listen(e,o,void 0):o.charCodeAt(0)===36&&(i[o]=async(...a)=>(await t?.(),this.sendMessage(e,o,a)))),i[o])};return new Proxy(Object.create(null),n)}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq]){console.warn("Got reply to unknown seq");return}let t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let n=e.err;if(e.err.$isError){let i=new Error;i.name=e.err.name,i.message=e.err.message,i.stack=e.err.stack,n=i}t.reject(n);return}t.resolve(e.res)}_handleRequestMessage(e){let t=e.req;this._handler.handleMessage(e.channel,e.method,e.args).then(i=>{this._send(new Sn(this._workerId,t,i,void 0))},i=>{i.detail instanceof Error&&(i.detail=fn(i.detail)),this._send(new Sn(this._workerId,t,void 0,fn(i)))})}_handleSubscribeEventMessage(e){let t=e.req,n=this._handler.handleEvent(e.channel,e.eventName,e.arg)(i=>{this._send(new Ur(this._workerId,t,i))});this._pendingEvents.set(t,n)}_handleEventMessage(e){let t=this._pendingEmitters.get(e.req);if(t===void 0){console.warn("Got event for unknown req");return}t.fire(e.event)}_handleUnsubscribeEventMessage(e){let t=this._pendingEvents.get(e.req);if(t===void 0){console.warn("Got unsubscribe for unknown req");return}t.dispose(),this._pendingEvents.delete(e.req)}_send(e){let t=[];if(e.type===0)for(let n=0;n<e.args.length;n++){let i=e.args[n];i instanceof ArrayBuffer&&t.push(i)}else e.type===1&&e.res instanceof ArrayBuffer&&t.push(e.res);this._handler.sendMessage(e,t)}};function Vo(r){return r[0]==="o"&&r[1]==="n"&&Nr(r.charCodeAt(2))}function qo(r){return/^onDynamic/.test(r)&&Nr(r.charCodeAt(9))}var En=class{constructor(e,t){this._localChannels=new Map;this._remoteChannels=new Map;this._protocol=new Or({sendMessage:(n,i)=>{e(n,i)},handleMessage:(n,i,o)=>this._handleMessage(n,i,o),handleEvent:(n,i,o)=>this._handleEvent(n,i,o)}),this.requestHandler=t(this)}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,t,n){if(e===Pr&&t===Da)return this.initialize(n[0]);let i=e===Pr?this.requestHandler:this._localChannels.get(e);if(!i)return Promise.reject(new Error(`Missing channel ${e} on worker thread`));let o=i[t];if(typeof o!="function")return Promise.reject(new Error(`Missing method ${t} on worker thread channel ${e}`));try{return Promise.resolve(o.apply(i,n))}catch(a){return Promise.reject(a)}}_handleEvent(e,t,n){let i=e===Pr?this.requestHandler:this._localChannels.get(e);if(!i)throw new Error(`Missing channel ${e} on worker thread`);if(qo(t)){let o=i[t];if(typeof o!="function")throw new Error(`Missing dynamic event ${t} on request handler.`);let a=o.call(i,n);if(typeof a!="function")throw new Error(`Missing dynamic event ${t} on request handler.`);return a}if(Vo(t)){let o=i[t];if(typeof o!="function")throw new Error(`Missing event ${t} on request handler.`);return o}throw new Error(`Malformed event name ${t}`)}setChannel(e,t){this._localChannels.set(e,t)}getChannel(e){let t=this._remoteChannels.get(e);return t===void 0&&(t=this._protocol.createProxyToRemoteChannel(e),this._remoteChannels.set(e,t)),t}async initialize(e){this._protocol.setWorkerId(e)}};var Br=!1;function Pa(r){if(Br)throw new Error("WebWorker already initialized!");Br=!0;let e=new En(t=>globalThis.postMessage(t),t=>r(t));return globalThis.onmessage=t=>{e.onmessage(t.data)},e}function Wo(r){globalThis.onmessage=e=>{Br||Pa(r)}}var Ie=class{constructor(e,t,n,i){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=i}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}};var $t=typeof Buffer<"u",Ca=new He(()=>new Uint8Array(256)),Vr,qr,kn=class r{static alloc(e){return $t?new r(Buffer.allocUnsafe(e)):new r(new Uint8Array(e))}static wrap(e){return $t&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new r(e)}static fromString(e,t){return!(t?.dontUseNodeBuffer||!1)&&$t?new r(Buffer.from(e)):(Vr||(Vr=new TextEncoder),new r(Vr.encode(e)))}static fromByteArray(e){let t=r.alloc(e.length);for(let n=0,i=e.length;n<i;n++)t.buffer[n]=e[n];return t}static concat(e,t){if(typeof t>"u"){t=0;for(let o=0,a=e.length;o<a;o++)t+=e[o].byteLength}let n=r.alloc(t),i=0;for(let o=0,a=e.length;o<a;o++){let l=e[o];n.set(l,i),i+=l.byteLength}return n}static isNativeBuffer(e){return $t&&Buffer.isBuffer(e)}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}clone(){let e=r.alloc(this.byteLength);return e.set(this),e}toString(){return $t?this.buffer.toString():(qr||(qr=new TextDecoder(void 0,{ignoreBOM:!0})),qr.decode(this.buffer))}slice(e,t){return new r(this.buffer.subarray(e,t))}set(e,t){if(e instanceof r)this.buffer.set(e.buffer,t);else if(e instanceof Uint8Array)this.buffer.set(e,t);else if(e instanceof ArrayBuffer)this.buffer.set(new Uint8Array(e),t);else if(ArrayBuffer.isView(e))this.buffer.set(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),t);else throw new Error("Unknown argument 'array'")}readUInt32BE(e){return Fa(this.buffer,e)}writeUInt32BE(e,t){Oa(this.buffer,e,t)}readUInt32LE(e){return Ba(this.buffer,e)}writeUInt32LE(e,t){Va(this.buffer,e,t)}readUInt8(e){return qa(this.buffer,e)}writeUInt8(e,t){Wa(this.buffer,e,t)}indexOf(e,t=0){return Ua(this.buffer,e instanceof r?e.buffer:e,t)}equals(e){return this===e?!0:this.byteLength!==e.byteLength?!1:this.buffer.every((t,n)=>t===e.buffer[n])}};function Ua(r,e,t=0){let n=e.byteLength,i=r.byteLength;if(n===0)return 0;if(n===1)return r.indexOf(e[0],t);if(n>i-t)return-1;let o=Ca.value;o.fill(e.length);for(let c=0;c<e.length;c++)o[e[c]]=e.length-c-1;let a=t+e.length-1,l=a,u=-1;for(;a<i;)if(r[a]===e[l]){if(l===0){u=a;break}a--,l--}else a+=Math.max(e.length-l,o[r[a]]),l=e.length-1;return u}function Fa(r,e){return r[e]*2**24+r[e+1]*2**16+r[e+2]*2**8+r[e+3]}function Oa(r,e,t){r[t+3]=e,e=e>>>8,r[t+2]=e,e=e>>>8,r[t+1]=e,e=e>>>8,r[t]=e}function Ba(r,e){return r[e+0]<<0>>>0|r[e+1]<<8>>>0|r[e+2]<<16>>>0|r[e+3]<<24>>>0}function Va(r,e,t){r[t+0]=e&255,e=e>>>8,r[t+1]=e&255,e=e>>>8,r[t+2]=e&255,e=e>>>8,r[t+3]=e&255}function qa(r,e){return r[e]}function Wa(r,e,t){r[t]=e}var zo="0123456789abcdef";function Ho({buffer:r}){let e="";for(let t=0;t<r.length;t++){let n=r[t];e+=zo[n>>>4],e+=zo[n&15]}return e}function Ko(r,e){return(e<<5)-e+r|0}function $o(r,e){e=Ko(149417,e);for(let t=0,n=r.length;t<n;t++)e=Ko(r.charCodeAt(t),e);return e}function Wr(r,e,t=32){let n=t-e,i=~((1<<n)-1);return(r<<e|(i&r)>>>n)>>>0}function Gt(r,e=32){return r instanceof ArrayBuffer?Ho(kn.wrap(new Uint8Array(r))):(r>>>0).toString(16).padStart(e/4,"0")}var jo=class r{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}static{this._bigBlock32=new DataView(new ArrayBuffer(320))}update(e){let t=e.length;if(t===0)return;let n=this._buff,i=this._buffLen,o=this._leftoverHighSurrogate,a,l;for(o!==0?(a=o,l=-1,o=0):(a=e.charCodeAt(0),l=0);;){let u=a;if(It(a))if(l+1<t){let c=e.charCodeAt(l+1);Ln(c)?(l++,u=Dr(a,c)):u=65533}else{o=a;break}else Ln(a)&&(u=65533);if(i=this._push(n,i,u),l++,l<t)a=e.charCodeAt(l);else break}this._buffLen=i,this._leftoverHighSurrogate=o}_push(e,t,n){return n<128?e[t++]=n:n<2048?(e[t++]=192|(n&1984)>>>6,e[t++]=128|(n&63)>>>0):n<65536?(e[t++]=224|(n&61440)>>>12,e[t++]=128|(n&4032)>>>6,e[t++]=128|(n&63)>>>0):(e[t++]=240|(n&1835008)>>>18,e[t++]=128|(n&258048)>>>12,e[t++]=128|(n&4032)>>>6,e[t++]=128|(n&63)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),Gt(this._h0)+Gt(this._h1)+Gt(this._h2)+Gt(this._h3)+Gt(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,this._buff.subarray(this._buffLen).fill(0),this._buffLen>56&&(this._step(),this._buff.fill(0));let e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){let e=r._bigBlock32,t=this._buffDV;for(let m=0;m<64;m+=4)e.setUint32(m,t.getUint32(m,!1),!1);for(let m=64;m<320;m+=4)e.setUint32(m,Wr(e.getUint32(m-12,!1)^e.getUint32(m-32,!1)^e.getUint32(m-56,!1)^e.getUint32(m-64,!1),1),!1);let n=this._h0,i=this._h1,o=this._h2,a=this._h3,l=this._h4,u,c,d;for(let m=0;m<80;m++)m<20?(u=i&o|~i&a,c=1518500249):m<40?(u=i^o^a,c=1859775393):m<60?(u=i&o|i&a|o&a,c=2400959708):(u=i^o^a,c=3395469782),d=Wr(n,5)+u+l+c+e.getUint32(m*4,!1)&4294967295,l=a,a=o,o=Wr(i,30),i=n,n=d;this._h0=this._h0+n&4294967295,this._h1=this._h1+i&4294967295,this._h2=this._h2+o&4294967295,this._h3=this._h3+a&4294967295,this._h4=this._h4+l&4294967295}};var Nn=class{constructor(e){this.source=e}getElements(){let e=this.source,t=new Int32Array(e.length);for(let n=0,i=e.length;n<i;n++)t[n]=e.charCodeAt(n);return t}};function Go(r,e,t){return new Qt(new Nn(r),new Nn(e)).ComputeDiff(t).changes}var Xe=class{static Assert(e,t){if(!e)throw new Error(t)}},Ye=class{static Copy(e,t,n,i,o){for(let a=0;a<o;a++)n[i+a]=e[t+a]}static Copy2(e,t,n,i,o){for(let a=0;a<o;a++)n[i+a]=e[t+a]}};var An=class{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new Ie(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}},Qt=class r{constructor(e,t,n=null){this.ContinueProcessingPredicate=n,this._originalSequence=e,this._modifiedSequence=t;let[i,o,a]=r._getElements(e),[l,u,c]=r._getElements(t);this._hasStrings=a&&c,this._originalStringElements=i,this._originalElementsOrHash=o,this._modifiedStringElements=l,this._modifiedElementsOrHash=u,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&typeof e[0]=="string"}static _getElements(e){let t=e.getElements();if(r._isStringArray(t)){let n=new Int32Array(t.length);for(let i=0,o=t.length;i<o;i++)n[i]=$o(t[i],0);return[t,n,!0]}return t instanceof Int32Array?[[],t,!1]:[[],new Int32Array(t),!1]}ElementsAreEqual(e,t){return this._originalElementsOrHash[e]!==this._modifiedElementsOrHash[t]?!1:this._hasStrings?this._originalStringElements[e]===this._modifiedStringElements[t]:!0}ElementsAreStrictEqual(e,t){if(!this.ElementsAreEqual(e,t))return!1;let n=r._getStrictElement(this._originalSequence,e),i=r._getStrictElement(this._modifiedSequence,t);return n===i}static _getStrictElement(e,t){return typeof e.getStrictElement=="function"?e.getStrictElement(t):null}OriginalElementsAreEqual(e,t){return this._originalElementsOrHash[e]!==this._originalElementsOrHash[t]?!1:this._hasStrings?this._originalStringElements[e]===this._originalStringElements[t]:!0}ModifiedElementsAreEqual(e,t){return this._modifiedElementsOrHash[e]!==this._modifiedElementsOrHash[t]?!1:this._hasStrings?this._modifiedStringElements[e]===this._modifiedStringElements[t]:!0}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,t,n,i,o){let a=[!1],l=this.ComputeDiffRecursive(e,t,n,i,a);return o&&(l=this.PrettifyChanges(l)),{quitEarly:a[0],changes:l}}ComputeDiffRecursive(e,t,n,i,o){for(o[0]=!1;e<=t&&n<=i&&this.ElementsAreEqual(e,n);)e++,n++;for(;t>=e&&i>=n&&this.ElementsAreEqual(t,i);)t--,i--;if(e>t||n>i){let m;return n<=i?(Xe.Assert(e===t+1,"originalStart should only be one more than originalEnd"),m=[new Ie(e,0,n,i-n+1)]):e<=t?(Xe.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),m=[new Ie(e,t-e+1,n,0)]):(Xe.Assert(e===t+1,"originalStart should only be one more than originalEnd"),Xe.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),m=[]),m}let a=[0],l=[0],u=this.ComputeRecursionPoint(e,t,n,i,a,l,o),c=a[0],d=l[0];if(u!==null)return u;if(!o[0]){let m=this.ComputeDiffRecursive(e,c,n,d,o),p=[];return o[0]?p=[new Ie(c+1,t-(c+1)+1,d+1,i-(d+1)+1)]:p=this.ComputeDiffRecursive(c+1,t,d+1,i,o),this.ConcatenateChanges(m,p)}return[new Ie(e,t-e+1,n,i-n+1)]}WALKTRACE(e,t,n,i,o,a,l,u,c,d,m,p,g,x,y,_,h,T){let I=null,E=null,k=new An,A=t,v=n,w=g[0]-_[0]-i,L=-1073741824,F=this.m_forwardHistory.length-1;do{let q=w+e;q===A||q<v&&c[q-1]<c[q+1]?(m=c[q+1],x=m-w-i,m<L&&k.MarkNextChange(),L=m,k.AddModifiedElement(m+1,x),w=q+1-e):(m=c[q-1]+1,x=m-w-i,m<L&&k.MarkNextChange(),L=m-1,k.AddOriginalElement(m,x+1),w=q-1-e),F>=0&&(c=this.m_forwardHistory[F],e=c[0],A=1,v=c.length-1)}while(--F>=-1);if(I=k.getReverseChanges(),T[0]){let q=g[0]+1,C=_[0]+1;if(I!==null&&I.length>0){let re=I[I.length-1];q=Math.max(q,re.getOriginalEnd()),C=Math.max(C,re.getModifiedEnd())}E=[new Ie(q,p-q+1,C,y-C+1)]}else{k=new An,A=a,v=l,w=g[0]-_[0]-u,L=1073741824,F=h?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{let q=w+o;q===A||q<v&&d[q-1]>=d[q+1]?(m=d[q+1]-1,x=m-w-u,m>L&&k.MarkNextChange(),L=m+1,k.AddOriginalElement(m+1,x+1),w=q+1-o):(m=d[q-1],x=m-w-u,m>L&&k.MarkNextChange(),L=m,k.AddModifiedElement(m+1,x+1),w=q-1-o),F>=0&&(d=this.m_reverseHistory[F],o=d[0],A=1,v=d.length-1)}while(--F>=-1);E=k.getChanges()}return this.ConcatenateChanges(I,E)}ComputeRecursionPoint(e,t,n,i,o,a,l){let u=0,c=0,d=0,m=0,p=0,g=0;e--,n--,o[0]=0,a[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];let x=t-e+(i-n),y=x+1,_=new Int32Array(y),h=new Int32Array(y),T=i-n,I=t-e,E=e-n,k=t-i,v=(I-T)%2===0;_[T]=e,h[I]=t,l[0]=!1;for(let w=1;w<=x/2+1;w++){let L=0,F=0;d=this.ClipDiagonalBound(T-w,w,T,y),m=this.ClipDiagonalBound(T+w,w,T,y);for(let C=d;C<=m;C+=2){C===d||C<m&&_[C-1]<_[C+1]?u=_[C+1]:u=_[C-1]+1,c=u-(C-T)-E;let re=u;for(;u<t&&c<i&&this.ElementsAreEqual(u+1,c+1);)u++,c++;if(_[C]=u,u+c>L+F&&(L=u,F=c),!v&&Math.abs(C-I)<=w-1&&u>=h[C])return o[0]=u,a[0]=c,re<=h[C]&&w<=1448?this.WALKTRACE(T,d,m,E,I,p,g,k,_,h,u,t,o,c,i,a,v,l):null}let q=(L-e+(F-n)-w)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(L,q))return l[0]=!0,o[0]=L,a[0]=F,q>0&&w<=1448?this.WALKTRACE(T,d,m,E,I,p,g,k,_,h,u,t,o,c,i,a,v,l):(e++,n++,[new Ie(e,t-e+1,n,i-n+1)]);p=this.ClipDiagonalBound(I-w,w,I,y),g=this.ClipDiagonalBound(I+w,w,I,y);for(let C=p;C<=g;C+=2){C===p||C<g&&h[C-1]>=h[C+1]?u=h[C+1]-1:u=h[C-1],c=u-(C-I)-k;let re=u;for(;u>e&&c>n&&this.ElementsAreEqual(u,c);)u--,c--;if(h[C]=u,v&&Math.abs(C-T)<=w&&u<=_[C])return o[0]=u,a[0]=c,re>=_[C]&&w<=1448?this.WALKTRACE(T,d,m,E,I,p,g,k,_,h,u,t,o,c,i,a,v,l):null}if(w<=1447){let C=new Int32Array(m-d+2);C[0]=T-d+1,Ye.Copy2(_,d,C,1,m-d+1),this.m_forwardHistory.push(C),C=new Int32Array(g-p+2),C[0]=I-p+1,Ye.Copy2(h,p,C,1,g-p+1),this.m_reverseHistory.push(C)}}return this.WALKTRACE(T,d,m,E,I,p,g,k,_,h,u,t,o,c,i,a,v,l)}PrettifyChanges(e){for(let t=0;t<e.length;t++){let n=e[t],i=t<e.length-1?e[t+1].originalStart:this._originalElementsOrHash.length,o=t<e.length-1?e[t+1].modifiedStart:this._modifiedElementsOrHash.length,a=n.originalLength>0,l=n.modifiedLength>0;for(;n.originalStart+n.originalLength<i&&n.modifiedStart+n.modifiedLength<o&&(!a||this.OriginalElementsAreEqual(n.originalStart,n.originalStart+n.originalLength))&&(!l||this.ModifiedElementsAreEqual(n.modifiedStart,n.modifiedStart+n.modifiedLength));){let c=this.ElementsAreStrictEqual(n.originalStart,n.modifiedStart);if(this.ElementsAreStrictEqual(n.originalStart+n.originalLength,n.modifiedStart+n.modifiedLength)&&!c)break;n.originalStart++,n.modifiedStart++}let u=[null];if(t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],u)){e[t]=u[0],e.splice(t+1,1),t--;continue}}for(let t=e.length-1;t>=0;t--){let n=e[t],i=0,o=0;if(t>0){let m=e[t-1];i=m.originalStart+m.originalLength,o=m.modifiedStart+m.modifiedLength}let a=n.originalLength>0,l=n.modifiedLength>0,u=0,c=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let m=1;;m++){let p=n.originalStart-m,g=n.modifiedStart-m;if(p<i||g<o||a&&!this.OriginalElementsAreEqual(p,p+n.originalLength)||l&&!this.ModifiedElementsAreEqual(g,g+n.modifiedLength))break;let y=(p===i&&g===o?5:0)+this._boundaryScore(p,n.originalLength,g,n.modifiedLength);y>c&&(c=y,u=m)}n.originalStart-=u,n.modifiedStart-=u;let d=[null];if(t>0&&this.ChangesOverlap(e[t-1],e[t],d)){e[t-1]=d[0],e.splice(t,1),t++;continue}}if(this._hasStrings)for(let t=1,n=e.length;t<n;t++){let i=e[t-1],o=e[t],a=o.originalStart-i.originalStart-i.originalLength,l=i.originalStart,u=o.originalStart+o.originalLength,c=u-l,d=i.modifiedStart,m=o.modifiedStart+o.modifiedLength,p=m-d;if(a<5&&c<20&&p<20){let g=this._findBetterContiguousSequence(l,c,d,p,a);if(g){let[x,y]=g;(x!==i.originalStart+i.originalLength||y!==i.modifiedStart+i.modifiedLength)&&(i.originalLength=x-i.originalStart,i.modifiedLength=y-i.modifiedStart,o.originalStart=x+a,o.modifiedStart=y+a,o.originalLength=u-o.originalStart,o.modifiedLength=m-o.modifiedStart)}}}return e}_findBetterContiguousSequence(e,t,n,i,o){if(t<o||i<o)return null;let a=e+t-o+1,l=n+i-o+1,u=0,c=0,d=0;for(let m=e;m<a;m++)for(let p=n;p<l;p++){let g=this._contiguousSequenceScore(m,p,o);g>0&&g>u&&(u=g,c=m,d=p)}return u>0?[c,d]:null}_contiguousSequenceScore(e,t,n){let i=0;for(let o=0;o<n;o++){if(!this.ElementsAreEqual(e+o,t+o))return 0;i+=this._originalStringElements[e+o].length}return i}_OriginalIsBoundary(e){return e<=0||e>=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){let n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){let n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1}_boundaryScore(e,t,n,i){let o=this._OriginalRegionIsBoundary(e,t)?1:0,a=this._ModifiedRegionIsBoundary(n,i)?1:0;return o+a}ConcatenateChanges(e,t){let n=[];if(e.length===0||t.length===0)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){let i=new Array(e.length+t.length-1);return Ye.Copy(e,0,i,0,e.length-1),i[e.length-1]=n[0],Ye.Copy(t,1,i,e.length,t.length-1),i}else{let i=new Array(e.length+t.length);return Ye.Copy(e,0,i,0,e.length),Ye.Copy(t,0,i,e.length,t.length),i}}ChangesOverlap(e,t,n){if(Xe.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),Xe.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){let i=e.originalStart,o=e.originalLength,a=e.modifiedStart,l=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(o=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(l=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new Ie(i,o,a,l),!0}else return n[0]=null,!1}ClipDiagonalBound(e,t,n,i){if(e>=0&&e<i)return e;let o=n,a=i-n-1,l=t%2===0;if(e<0){let u=o%2===0;return l===u?0:1}else{let u=a%2===0;return l===u?i-1:i-2}}},$c=new Uint32Array(65536);var W=class r{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 r(e,t)}delta(e=0,t=0){return this.with(Math.max(1,this.lineNumber+e),Math.max(1,this.column+t))}equals(e){return r.equals(this,e)}static equals(e,t){return!e&&!t?!0:!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return r.isBefore(this,e)}static isBefore(e,t){return e.lineNumber<t.lineNumber?!0:t.lineNumber<e.lineNumber?!1:e.column<t.column}isBeforeOrEqual(e){return r.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,t){return e.lineNumber<t.lineNumber?!0:t.lineNumber<e.lineNumber?!1:e.column<=t.column}static compare(e,t){let n=e.lineNumber|0,i=t.lineNumber|0;if(n===i){let o=e.column|0,a=t.column|0;return o-a}return n-i}clone(){return new r(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new r(e.lineNumber,e.column)}static isIPosition(e){return!!e&&typeof e.lineNumber=="number"&&typeof e.column=="number"}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}};var D=class r{constructor(e,t,n,i){e>n||e===n&&t>i?(this.startLineNumber=n,this.startColumn=i,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=i)}isEmpty(){return r.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return r.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber||t.lineNumber===e.startLineNumber&&t.column<e.startColumn||t.lineNumber===e.endLineNumber&&t.column>e.endColumn)}static strictContainsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber||t.lineNumber===e.startLineNumber&&t.column<=e.startColumn||t.lineNumber===e.endLineNumber&&t.column>=e.endColumn)}containsRange(e){return r.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber||t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumn<e.startColumn||t.endLineNumber===e.endLineNumber&&t.endColumn>e.endColumn)}strictContainsRange(e){return r.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber||t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn||t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)}plusRange(e){return r.plusRange(this,e)}static plusRange(e,t){let n,i,o,a;return t.startLineNumber<e.startLineNumber?(n=t.startLineNumber,i=t.startColumn):t.startLineNumber===e.startLineNumber?(n=t.startLineNumber,i=Math.min(t.startColumn,e.startColumn)):(n=e.startLineNumber,i=e.startColumn),t.endLineNumber>e.endLineNumber?(o=t.endLineNumber,a=t.endColumn):t.endLineNumber===e.endLineNumber?(o=t.endLineNumber,a=Math.max(t.endColumn,e.endColumn)):(o=e.endLineNumber,a=e.endColumn),new r(n,i,o,a)}intersectRanges(e){return r.intersectRanges(this,e)}static intersectRanges(e,t){let n=e.startLineNumber,i=e.startColumn,o=e.endLineNumber,a=e.endColumn,l=t.startLineNumber,u=t.startColumn,c=t.endLineNumber,d=t.endColumn;return n<l?(n=l,i=u):n===l&&(i=Math.max(i,u)),o>c?(o=c,a=d):o===c&&(a=Math.min(a,d)),n>o||n===o&&i>a?null:new r(n,i,o,a)}equalsRange(e){return r.equalsRange(this,e)}static equalsRange(e,t){return!e&&!t?!0:!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return r.getEndPosition(this)}static getEndPosition(e){return new W(e.endLineNumber,e.endColumn)}getStartPosition(){return r.getStartPosition(this)}static getStartPosition(e){return new W(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new r(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new r(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return r.collapseToStart(this)}static collapseToStart(e){return new r(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return r.collapseToEnd(this)}static collapseToEnd(e){return new r(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new r(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}isSingleLine(){return this.startLineNumber===this.endLineNumber}static fromPositions(e,t=e){return new r(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new r(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return!!e&&typeof e.startLineNumber=="number"&&typeof e.startColumn=="number"&&typeof e.endLineNumber=="number"&&typeof e.endColumn=="number"}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 areOnlyIntersecting(e,t){return!(e.endLineNumber<t.startLineNumber-1||e.endLineNumber===t.startLineNumber&&e.endColumn<t.startColumn-1||t.endLineNumber<e.startLineNumber-1||t.endLineNumber===e.startLineNumber&&t.endColumn<e.startColumn-1)}static compareRangesUsingStarts(e,t){if(e&&t){let o=e.startLineNumber|0,a=t.startLineNumber|0;if(o===a){let l=e.startColumn|0,u=t.startColumn|0;if(l===u){let c=e.endLineNumber|0,d=t.endLineNumber|0;if(c===d){let m=e.endColumn|0,p=t.endColumn|0;return m-p}return c-d}return l-u}return o-a}return(e?1:0)-(t?1:0)}static compareRangesUsingEnds(e,t){return e.endLineNumber===t.endLineNumber?e.endColumn===t.endColumn?e.startLineNumber===t.startLineNumber?e.startColumn-t.startColumn:e.startLineNumber-t.startLineNumber:e.endColumn-t.endColumn:e.endLineNumber-t.endLineNumber}static spansMultipleLines(e){return e.endLineNumber>e.startLineNumber}toJSON(){return this}};var Xt=class r{constructor(e){let t=kr(e);this._defaultValue=t,this._asciiMap=r._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){let t=new Uint8Array(256);return t.fill(e),t}set(e,t){let n=kr(t);e>=0&&e<256?this._asciiMap[e]=n:this._map.set(e,n)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}};var Hr=class{constructor(e,t,n){let i=new Uint8Array(e*t);for(let o=0,a=e*t;o<a;o++)i[o]=n;this._data=i,this.rows=e,this.cols=t}get(e,t){return this._data[e*this.cols+t]}set(e,t,n){this._data[e*this.cols+t]=n}},Kr=class{constructor(e){let t=0,n=0;for(let o=0,a=e.length;o<a;o++){let[l,u,c]=e[o];u>t&&(t=u),l>n&&(n=l),c>n&&(n=c)}t++,n++;let i=new Hr(n,t,0);for(let o=0,a=e.length;o<a;o++){let[l,u,c]=e[o];i.set(l,u,c)}this._states=i,this._maxCharCode=t}nextState(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)}},zr=null;function za(){return zr===null&&(zr=new Kr([[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]])),zr}var Yt=null;function Ha(){if(Yt===null){Yt=new Xt(0);let r=` 	<>'"\u3001\u3002\uFF61\uFF64\uFF0C\uFF0E\uFF1A\uFF1B\u2018\u3008\u300C\u300E\u3014\uFF08\uFF3B\uFF5B\uFF62\uFF63\uFF5D\uFF3D\uFF09\u3015\u300F\u300D\u3009\u2019\uFF40\uFF5E\u2026|`;for(let t=0;t<r.length;t++)Yt.set(r.charCodeAt(t),1);let e=".,;:";for(let t=0;t<e.length;t++)Yt.set(e.charCodeAt(t),2)}return Yt}var jr=class r{static _createLink(e,t,n,i,o){let a=o-1;do{let l=t.charCodeAt(a);if(e.get(l)!==2)break;a--}while(a>i);if(i>0){let l=t.charCodeAt(i-1),u=t.charCodeAt(a);(l===40&&u===41||l===91&&u===93||l===123&&u===125)&&a--}return{range:{startLineNumber:n,startColumn:i+1,endLineNumber:n,endColumn:a+2},url:t.substring(i,a+1)}}static computeLinks(e,t=za()){let n=Ha(),i=[];for(let o=1,a=e.getLineCount();o<=a;o++){let l=e.getLineContent(o),u=l.length,c=0,d=0,m=0,p=1,g=!1,x=!1,y=!1,_=!1;for(;c<u;){let h=!1,T=l.charCodeAt(c);if(p===13){let I;switch(T){case 40:g=!0,I=0;break;case 41:I=g?0:1;break;case 91:y=!0,x=!0,I=0;break;case 93:y=!1,I=x?0:1;break;case 123:_=!0,I=0;break;case 125:I=_?0:1;break;case 39:case 34:case 96:m===T?I=1:m===39||m===34||m===96?I=0:I=1;break;case 42:I=m===42?1:0;break;case 32:I=y?0:1;break;default:I=n.get(T)}I===1&&(i.push(r._createLink(n,l,o,d,c)),h=!0)}else if(p===12){let I;T===91?(x=!0,I=0):I=n.get(T),I===1?h=!0:p=13}else p=t.nextState(p,T),p===0&&(h=!0);h&&(p=1,g=!1,x=!1,_=!1,d=c+1,m=T),c++}p===13&&i.push(r._createLink(n,l,o,d,u))}return i}};function Qo(r){return!r||typeof r.getLineCount!="function"||typeof r.getLineContent!="function"?[]:jr.computeLinks(r)}var Dn=class r{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}static{this.INSTANCE=new r}navigateValueSet(e,t,n,i,o){if(e&&t){let a=this.doNavigateValueSet(t,o);if(a)return{range:e,value:a}}if(n&&i){let a=this.doNavigateValueSet(i,o);if(a)return{range:n,value:a}}return null}doNavigateValueSet(e,t){let n=this.numberReplace(e,t);return n!==null?n:this.textReplace(e,t)}numberReplace(e,t){let n=Math.pow(10,e.length-(e.lastIndexOf(".")+1)),i=Number(e),o=parseFloat(e);return!isNaN(i)&&!isNaN(o)&&i===o?i===0&&!t?null:(i=Math.floor(i*n),i+=t?n:-n,String(i/n)):null}textReplace(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)}valueSetsReplace(e,t,n){let i=null;for(let o=0,a=e.length;i===null&&o<a;o++)i=this.valueSetReplace(e[o],t,n);return i}valueSetReplace(e,t,n){let i=e.indexOf(t);return i>=0?(i+=n?1:-1,i<0?i=e.length-1:i%=e.length,e[i]):null}};var Jt=class{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}},Pn=new Jt,$r=new Jt,Gr=new Jt,Ka=new Array(230),ja={},$a={},Ga=[],Qa=Object.create(null),Xa=Object.create(null);var Xo=[],Qr=[];for(let r=0;r<=193;r++)Xo[r]=-1;for(let r=0;r<=132;r++)Qr[r]=-1;(function(){let e=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN","",""],[1,1,"Hyper",0,"",0,"","",""],[1,2,"Super",0,"",0,"","",""],[1,3,"Fn",0,"",0,"","",""],[1,4,"FnLock",0,"",0,"","",""],[1,5,"Suspend",0,"",0,"","",""],[1,6,"Resume",0,"",0,"","",""],[1,7,"Turbo",0,"",0,"","",""],[1,8,"Sleep",0,"",0,"VK_SLEEP","",""],[1,9,"WakeUp",0,"",0,"","",""],[0,10,"KeyA",31,"A",65,"VK_A","",""],[0,11,"KeyB",32,"B",66,"VK_B","",""],[0,12,"KeyC",33,"C",67,"VK_C","",""],[0,13,"KeyD",34,"D",68,"VK_D","",""],[0,14,"KeyE",35,"E",69,"VK_E","",""],[0,15,"KeyF",36,"F",70,"VK_F","",""],[0,16,"KeyG",37,"G",71,"VK_G","",""],[0,17,"KeyH",38,"H",72,"VK_H","",""],[0,18,"KeyI",39,"I",73,"VK_I","",""],[0,19,"KeyJ",40,"J",74,"VK_J","",""],[0,20,"KeyK",41,"K",75,"VK_K","",""],[0,21,"KeyL",42,"L",76,"VK_L","",""],[0,22,"KeyM",43,"M",77,"VK_M","",""],[0,23,"KeyN",44,"N",78,"VK_N","",""],[0,24,"KeyO",45,"O",79,"VK_O","",""],[0,25,"KeyP",46,"P",80,"VK_P","",""],[0,26,"KeyQ",47,"Q",81,"VK_Q","",""],[0,27,"KeyR",48,"R",82,"VK_R","",""],[0,28,"KeyS",49,"S",83,"VK_S","",""],[0,29,"KeyT",50,"T",84,"VK_T","",""],[0,30,"KeyU",51,"U",85,"VK_U","",""],[0,31,"KeyV",52,"V",86,"VK_V","",""],[0,32,"KeyW",53,"W",87,"VK_W","",""],[0,33,"KeyX",54,"X",88,"VK_X","",""],[0,34,"KeyY",55,"Y",89,"VK_Y","",""],[0,35,"KeyZ",56,"Z",90,"VK_Z","",""],[0,36,"Digit1",22,"1",49,"VK_1","",""],[0,37,"Digit2",23,"2",50,"VK_2","",""],[0,38,"Digit3",24,"3",51,"VK_3","",""],[0,39,"Digit4",25,"4",52,"VK_4","",""],[0,40,"Digit5",26,"5",53,"VK_5","",""],[0,41,"Digit6",27,"6",54,"VK_6","",""],[0,42,"Digit7",28,"7",55,"VK_7","",""],[0,43,"Digit8",29,"8",56,"VK_8","",""],[0,44,"Digit9",30,"9",57,"VK_9","",""],[0,45,"Digit0",21,"0",48,"VK_0","",""],[1,46,"Enter",3,"Enter",13,"VK_RETURN","",""],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE","",""],[1,48,"Backspace",1,"Backspace",8,"VK_BACK","",""],[1,49,"Tab",2,"Tab",9,"VK_TAB","",""],[1,50,"Space",10,"Space",32,"VK_SPACE","",""],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,"",0,"","",""],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL","",""],[1,64,"F1",59,"F1",112,"VK_F1","",""],[1,65,"F2",60,"F2",113,"VK_F2","",""],[1,66,"F3",61,"F3",114,"VK_F3","",""],[1,67,"F4",62,"F4",115,"VK_F4","",""],[1,68,"F5",63,"F5",116,"VK_F5","",""],[1,69,"F6",64,"F6",117,"VK_F6","",""],[1,70,"F7",65,"F7",118,"VK_F7","",""],[1,71,"F8",66,"F8",119,"VK_F8","",""],[1,72,"F9",67,"F9",120,"VK_F9","",""],[1,73,"F10",68,"F10",121,"VK_F10","",""],[1,74,"F11",69,"F11",122,"VK_F11","",""],[1,75,"F12",70,"F12",123,"VK_F12","",""],[1,76,"PrintScreen",0,"",0,"","",""],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL","",""],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE","",""],[1,79,"Insert",19,"Insert",45,"VK_INSERT","",""],[1,80,"Home",14,"Home",36,"VK_HOME","",""],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR","",""],[1,82,"Delete",20,"Del",46,"VK_DELETE","Delete",""],[1,83,"End",13,"End",35,"VK_END","",""],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT","",""],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",""],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",""],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",""],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",""],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK","",""],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE","",""],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY","",""],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT","",""],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD","",""],[1,94,"NumpadEnter",3,"",0,"","",""],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1","",""],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2","",""],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3","",""],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4","",""],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5","",""],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6","",""],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7","",""],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8","",""],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9","",""],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0","",""],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL","",""],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102","",""],[1,107,"ContextMenu",58,"ContextMenu",93,"","",""],[1,108,"Power",0,"",0,"","",""],[1,109,"NumpadEqual",0,"",0,"","",""],[1,110,"F13",71,"F13",124,"VK_F13","",""],[1,111,"F14",72,"F14",125,"VK_F14","",""],[1,112,"F15",73,"F15",126,"VK_F15","",""],[1,113,"F16",74,"F16",127,"VK_F16","",""],[1,114,"F17",75,"F17",128,"VK_F17","",""],[1,115,"F18",76,"F18",129,"VK_F18","",""],[1,116,"F19",77,"F19",130,"VK_F19","",""],[1,117,"F20",78,"F20",131,"VK_F20","",""],[1,118,"F21",79,"F21",132,"VK_F21","",""],[1,119,"F22",80,"F22",133,"VK_F22","",""],[1,120,"F23",81,"F23",134,"VK_F23","",""],[1,121,"F24",82,"F24",135,"VK_F24","",""],[1,122,"Open",0,"",0,"","",""],[1,123,"Help",0,"",0,"","",""],[1,124,"Select",0,"",0,"","",""],[1,125,"Again",0,"",0,"","",""],[1,126,"Undo",0,"",0,"","",""],[1,127,"Cut",0,"",0,"","",""],[1,128,"Copy",0,"",0,"","",""],[1,129,"Paste",0,"",0,"","",""],[1,130,"Find",0,"",0,"","",""],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE","",""],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP","",""],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN","",""],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR","",""],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1","",""],[1,136,"KanaMode",0,"",0,"","",""],[0,137,"IntlYen",0,"",0,"","",""],[1,138,"Convert",0,"",0,"","",""],[1,139,"NonConvert",0,"",0,"","",""],[1,140,"Lang1",0,"",0,"","",""],[1,141,"Lang2",0,"",0,"","",""],[1,142,"Lang3",0,"",0,"","",""],[1,143,"Lang4",0,"",0,"","",""],[1,144,"Lang5",0,"",0,"","",""],[1,145,"Abort",0,"",0,"","",""],[1,146,"Props",0,"",0,"","",""],[1,147,"NumpadParenLeft",0,"",0,"","",""],[1,148,"NumpadParenRight",0,"",0,"","",""],[1,149,"NumpadBackspace",0,"",0,"","",""],[1,150,"NumpadMemoryStore",0,"",0,"","",""],[1,151,"NumpadMemoryRecall",0,"",0,"","",""],[1,152,"NumpadMemoryClear",0,"",0,"","",""],[1,153,"NumpadMemoryAdd",0,"",0,"","",""],[1,154,"NumpadMemorySubtract",0,"",0,"","",""],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR","",""],[1,156,"NumpadClearEntry",0,"",0,"","",""],[1,0,"",5,"Ctrl",17,"VK_CONTROL","",""],[1,0,"",4,"Shift",16,"VK_SHIFT","",""],[1,0,"",6,"Alt",18,"VK_MENU","",""],[1,0,"",57,"Meta",91,"VK_COMMAND","",""],[1,157,"ControlLeft",5,"",0,"VK_LCONTROL","",""],[1,158,"ShiftLeft",4,"",0,"VK_LSHIFT","",""],[1,159,"AltLeft",6,"",0,"VK_LMENU","",""],[1,160,"MetaLeft",57,"",0,"VK_LWIN","",""],[1,161,"ControlRight",5,"",0,"VK_RCONTROL","",""],[1,162,"ShiftRight",4,"",0,"VK_RSHIFT","",""],[1,163,"AltRight",6,"",0,"VK_RMENU","",""],[1,164,"MetaRight",57,"",0,"VK_RWIN","",""],[1,165,"BrightnessUp",0,"",0,"","",""],[1,166,"BrightnessDown",0,"",0,"","",""],[1,167,"MediaPlay",0,"",0,"","",""],[1,168,"MediaRecord",0,"",0,"","",""],[1,169,"MediaFastForward",0,"",0,"","",""],[1,170,"MediaRewind",0,"",0,"","",""],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK","",""],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK","",""],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP","",""],[1,174,"Eject",0,"",0,"","",""],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE","",""],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT","",""],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL","",""],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2","",""],[1,179,"LaunchApp1",0,"",0,"VK_MEDIA_LAUNCH_APP1","",""],[1,180,"SelectTask",0,"",0,"","",""],[1,181,"LaunchScreenSaver",0,"",0,"","",""],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH","",""],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME","",""],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK","",""],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD","",""],[1,186,"BrowserStop",0,"",0,"VK_BROWSER_STOP","",""],[1,187,"BrowserRefresh",0,"",0,"VK_BROWSER_REFRESH","",""],[1,188,"BrowserFavorites",0,"",0,"VK_BROWSER_FAVORITES","",""],[1,189,"ZoomToggle",0,"",0,"","",""],[1,190,"MailReply",0,"",0,"","",""],[1,191,"MailForward",0,"",0,"","",""],[1,192,"MailSend",0,"",0,"","",""],[1,0,"",114,"KeyInComposition",229,"","",""],[1,0,"",116,"ABNT_C2",194,"VK_ABNT_C2","",""],[1,0,"",96,"OEM_8",223,"VK_OEM_8","",""],[1,0,"",0,"",0,"VK_KANA","",""],[1,0,"",0,"",0,"VK_HANGUL","",""],[1,0,"",0,"",0,"VK_JUNJA","",""],[1,0,"",0,"",0,"VK_FINAL","",""],[1,0,"",0,"",0,"VK_HANJA","",""],[1,0,"",0,"",0,"VK_KANJI","",""],[1,0,"",0,"",0,"VK_CONVERT","",""],[1,0,"",0,"",0,"VK_NONCONVERT","",""],[1,0,"",0,"",0,"VK_ACCEPT","",""],[1,0,"",0,"",0,"VK_MODECHANGE","",""],[1,0,"",0,"",0,"VK_SELECT","",""],[1,0,"",0,"",0,"VK_PRINT","",""],[1,0,"",0,"",0,"VK_EXECUTE","",""],[1,0,"",0,"",0,"VK_SNAPSHOT","",""],[1,0,"",0,"",0,"VK_HELP","",""],[1,0,"",0,"",0,"VK_APPS","",""],[1,0,"",0,"",0,"VK_PROCESSKEY","",""],[1,0,"",0,"",0,"VK_PACKET","",""],[1,0,"",0,"",0,"VK_DBE_SBCSCHAR","",""],[1,0,"",0,"",0,"VK_DBE_DBCSCHAR","",""],[1,0,"",0,"",0,"VK_ATTN","",""],[1,0,"",0,"",0,"VK_CRSEL","",""],[1,0,"",0,"",0,"VK_EXSEL","",""],[1,0,"",0,"",0,"VK_EREOF","",""],[1,0,"",0,"",0,"VK_PLAY","",""],[1,0,"",0,"",0,"VK_ZOOM","",""],[1,0,"",0,"",0,"VK_NONAME","",""],[1,0,"",0,"",0,"VK_PA1","",""],[1,0,"",0,"",0,"VK_OEM_CLEAR","",""]],t=[],n=[];for(let i of e){let[o,a,l,u,c,d,m,p,g]=i;if(n[a]||(n[a]=!0,Ga[a]=l,Qa[l]=a,Xa[l.toLowerCase()]=a,o&&(Xo[a]=u,u!==0&&u!==3&&!Ja(u)&&(Qr[u]=a))),!t[u]){if(t[u]=!0,!c)throw new Error(`String representation missing for key code ${u} around scan code ${l}`);Pn.define(u,c),$r.define(u,p||c),Gr.define(u,g||p||c)}d&&(Ka[d]=u),l&&($a[l]=d),m&&(ja[m]=u)}Qr[3]=46})();var Ya;(a=>{function r(l){return Pn.keyCodeToStr(l)}a.toString=r;function e(l){return Pn.strToKeyCode(l)}a.fromString=e;function t(l){return $r.keyCodeToStr(l)}a.toUserSettingsUS=t;function n(l){return Gr.keyCodeToStr(l)}a.toUserSettingsGeneral=n;function i(l){return $r.strToKeyCode(l)||Gr.strToKeyCode(l)}a.fromUserSettings=i;function o(l){if(l>=98&&l<=113)return null;switch(l){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right";case 20:return"Delete"}return Pn.keyCodeToStr(l)}a.toElectronAccelerator=o})(Ya||={});function Yo(r,e){let t=(e&65535)<<16>>>0;return(r|t)>>>0}function Ja(r){return r===5||r===4||r===6||r===57}var Za=65,el=97,tl=90,nl=122,at=46,le=47,be=92,Ke=58,rl=63,Mn=class extends Error{constructor(e,t,n){let i;typeof t=="string"&&t.indexOf("not ")===0?(i="must not be",t=t.replace(/^not /,"")):i="must be";let o=e.indexOf(".")!==-1?"property":"argument",a=`The "${e}" ${o} ${i} of type ${t}`;a+=`. Received type ${typeof n}`,super(a),this.code="ERR_INVALID_ARG_TYPE"}};function il(r,e){if(r===null||typeof r!="object")throw new Mn(e,"Object",r)}function ee(r,e){if(typeof r!="string")throw new Mn(e,"string",r)}var xe=wo==="win32";function j(r){return r===le||r===be}function Xr(r){return r===le}function je(r){return r>=Za&&r<=tl||r>=el&&r<=nl}function Cn(r,e,t,n){let i="",o=0,a=-1,l=0,u=0;for(let c=0;c<=r.length;++c){if(c<r.length)u=r.charCodeAt(c);else{if(n(u))break;u=le}if(n(u)){if(!(a===c-1||l===1))if(l===2){if(i.length<2||o!==2||i.charCodeAt(i.length-1)!==at||i.charCodeAt(i.length-2)!==at){if(i.length>2){let d=i.lastIndexOf(t);d===-1?(i="",o=0):(i=i.slice(0,d),o=i.length-1-i.lastIndexOf(t)),a=c,l=0;continue}else if(i.length!==0){i="",o=0,a=c,l=0;continue}}e&&(i+=i.length>0?`${t}..`:"..",o=2)}else i.length>0?i+=`${t}${r.slice(a+1,c)}`:i=r.slice(a+1,c),o=c-a-1;a=c,l=0}else u===at&&l!==-1?++l:l=-1}return i}function ol(r){return r?`${r[0]==="."?"":"."}${r}`:""}function Jo(r,e){il(e,"pathObject");let t=e.dir||e.root,n=e.base||`${e.name||""}${ol(e.ext)}`;return t?t===e.root?`${t}${n}`:`${t}${r}${n}`:n}var te={resolve(...r){let e="",t="",n=!1;for(let i=r.length-1;i>=-1;i--){let o;if(i>=0){if(o=r[i],ee(o,`paths[${i}]`),o.length===0)continue}else e.length===0?o=Ht():(o=Tn[`=${e}`]||Ht(),(o===void 0||o.slice(0,2).toLowerCase()!==e.toLowerCase()&&o.charCodeAt(2)===be)&&(o=`${e}\\`));let a=o.length,l=0,u="",c=!1,d=o.charCodeAt(0);if(a===1)j(d)&&(l=1,c=!0);else if(j(d))if(c=!0,j(o.charCodeAt(1))){let m=2,p=m;for(;m<a&&!j(o.charCodeAt(m));)m++;if(m<a&&m!==p){let g=o.slice(p,m);for(p=m;m<a&&j(o.charCodeAt(m));)m++;if(m<a&&m!==p){for(p=m;m<a&&!j(o.charCodeAt(m));)m++;(m===a||m!==p)&&(u=`\\\\${g}\\${o.slice(p,m)}`,l=m)}}}else l=1;else je(d)&&o.charCodeAt(1)===Ke&&(u=o.slice(0,2),l=2,a>2&&j(o.charCodeAt(2))&&(c=!0,l=3));if(u.length>0)if(e.length>0){if(u.toLowerCase()!==e.toLowerCase())continue}else e=u;if(n){if(e.length>0)break}else if(t=`${o.slice(l)}\\${t}`,n=c,c&&e.length>0)break}return t=Cn(t,!n,"\\",j),n?`${e}\\${t}`:`${e}${t}`||"."},normalize(r){ee(r,"path");let e=r.length;if(e===0)return".";let t=0,n,i=!1,o=r.charCodeAt(0);if(e===1)return Xr(o)?"\\":r;if(j(o))if(i=!0,j(r.charCodeAt(1))){let l=2,u=l;for(;l<e&&!j(r.charCodeAt(l));)l++;if(l<e&&l!==u){let c=r.slice(u,l);for(u=l;l<e&&j(r.charCodeAt(l));)l++;if(l<e&&l!==u){for(u=l;l<e&&!j(r.charCodeAt(l));)l++;if(l===e)return`\\\\${c}\\${r.slice(u)}\\`;l!==u&&(n=`\\\\${c}\\${r.slice(u,l)}`,t=l)}}}else t=1;else je(o)&&r.charCodeAt(1)===Ke&&(n=r.slice(0,2),t=2,e>2&&j(r.charCodeAt(2))&&(i=!0,t=3));let a=t<e?Cn(r.slice(t),!i,"\\",j):"";if(a.length===0&&!i&&(a="."),a.length>0&&j(r.charCodeAt(e-1))&&(a+="\\"),!i&&n===void 0&&r.includes(":")){if(a.length>=2&&je(a.charCodeAt(0))&&a.charCodeAt(1)===Ke)return`.\\${a}`;let l=r.indexOf(":");do if(l===e-1||j(r.charCodeAt(l+1)))return`.\\${a}`;while((l=r.indexOf(":",l+1))!==-1)}return n===void 0?i?`\\${a}`:a:i?`${n}\\${a}`:`${n}${a}`},isAbsolute(r){ee(r,"path");let e=r.length;if(e===0)return!1;let t=r.charCodeAt(0);return j(t)||e>2&&je(t)&&r.charCodeAt(1)===Ke&&j(r.charCodeAt(2))},join(...r){if(r.length===0)return".";let e,t;for(let o=0;o<r.length;++o){let a=r[o];ee(a,"path"),a.length>0&&(e===void 0?e=t=a:e+=`\\${a}`)}if(e===void 0)return".";let n=!0,i=0;if(typeof t=="string"&&j(t.charCodeAt(0))){++i;let o=t.length;o>1&&j(t.charCodeAt(1))&&(++i,o>2&&(j(t.charCodeAt(2))?++i:n=!1))}if(n){for(;i<e.length&&j(e.charCodeAt(i));)i++;i>=2&&(e=`\\${e.slice(i)}`)}return te.normalize(e)},relative(r,e){if(ee(r,"from"),ee(e,"to"),r===e)return"";let t=te.resolve(r),n=te.resolve(e);if(t===n||(r=t.toLowerCase(),e=n.toLowerCase(),r===e))return"";if(t.length!==r.length||n.length!==e.length){let x=t.split("\\"),y=n.split("\\");x[x.length-1]===""&&x.pop(),y[y.length-1]===""&&y.pop();let _=x.length,h=y.length,T=_<h?_:h,I;for(I=0;I<T&&x[I].toLowerCase()===y[I].toLowerCase();I++);return I===0?n:I===T?h>T?y.slice(I).join("\\"):_>T?"..\\".repeat(_-1-I)+"..":"":"..\\".repeat(_-I)+y.slice(I).join("\\")}let i=0;for(;i<r.length&&r.charCodeAt(i)===be;)i++;let o=r.length;for(;o-1>i&&r.charCodeAt(o-1)===be;)o--;let a=o-i,l=0;for(;l<e.length&&e.charCodeAt(l)===be;)l++;let u=e.length;for(;u-1>l&&e.charCodeAt(u-1)===be;)u--;let c=u-l,d=a<c?a:c,m=-1,p=0;for(;p<d;p++){let x=r.charCodeAt(i+p);if(x!==e.charCodeAt(l+p))break;x===be&&(m=p)}if(p!==d){if(m===-1)return n}else{if(c>d){if(e.charCodeAt(l+p)===be)return n.slice(l+p+1);if(p===2)return n.slice(l+p)}a>d&&(r.charCodeAt(i+p)===be?m=p:p===2&&(m=3)),m===-1&&(m=0)}let g="";for(p=i+m+1;p<=o;++p)(p===o||r.charCodeAt(p)===be)&&(g+=g.length===0?"..":"\\..");return l+=m,g.length>0?`${g}${n.slice(l,u)}`:(n.charCodeAt(l)===be&&++l,n.slice(l,u))},toNamespacedPath(r){if(typeof r!="string"||r.length===0)return r;let e=te.resolve(r);if(e.length<=2)return r;if(e.charCodeAt(0)===be){if(e.charCodeAt(1)===be){let t=e.charCodeAt(2);if(t!==rl&&t!==at)return`\\\\?\\UNC\\${e.slice(2)}`}}else if(je(e.charCodeAt(0))&&e.charCodeAt(1)===Ke&&e.charCodeAt(2)===be)return`\\\\?\\${e}`;return e},dirname(r){ee(r,"path");let e=r.length;if(e===0)return".";let t=-1,n=0,i=r.charCodeAt(0);if(e===1)return j(i)?r:".";if(j(i)){if(t=n=1,j(r.charCodeAt(1))){let l=2,u=l;for(;l<e&&!j(r.charCodeAt(l));)l++;if(l<e&&l!==u){for(u=l;l<e&&j(r.charCodeAt(l));)l++;if(l<e&&l!==u){for(u=l;l<e&&!j(r.charCodeAt(l));)l++;if(l===e)return r;l!==u&&(t=n=l+1)}}}}else je(i)&&r.charCodeAt(1)===Ke&&(t=e>2&&j(r.charCodeAt(2))?3:2,n=t);let o=-1,a=!0;for(let l=e-1;l>=n;--l)if(j(r.charCodeAt(l))){if(!a){o=l;break}}else a=!1;if(o===-1){if(t===-1)return".";o=t}return r.slice(0,o)},basename(r,e){e!==void 0&&ee(e,"suffix"),ee(r,"path");let t=0,n=-1,i=!0,o;if(r.length>=2&&je(r.charCodeAt(0))&&r.charCodeAt(1)===Ke&&(t=2),e!==void 0&&e.length>0&&e.length<=r.length){if(e===r)return"";let a=e.length-1,l=-1;for(o=r.length-1;o>=t;--o){let u=r.charCodeAt(o);if(j(u)){if(!i){t=o+1;break}}else l===-1&&(i=!1,l=o+1),a>=0&&(u===e.charCodeAt(a)?--a===-1&&(n=o):(a=-1,n=l))}return t===n?n=l:n===-1&&(n=r.length),r.slice(t,n)}for(o=r.length-1;o>=t;--o)if(j(r.charCodeAt(o))){if(!i){t=o+1;break}}else n===-1&&(i=!1,n=o+1);return n===-1?"":r.slice(t,n)},extname(r){ee(r,"path");let e=0,t=-1,n=0,i=-1,o=!0,a=0;r.length>=2&&r.charCodeAt(1)===Ke&&je(r.charCodeAt(0))&&(e=n=2);for(let l=r.length-1;l>=e;--l){let u=r.charCodeAt(l);if(j(u)){if(!o){n=l+1;break}continue}i===-1&&(o=!1,i=l+1),u===at?t===-1?t=l:a!==1&&(a=1):t!==-1&&(a=-1)}return t===-1||i===-1||a===0||a===1&&t===i-1&&t===n+1?"":r.slice(t,i)},format:Jo.bind(null,"\\"),parse(r){ee(r,"path");let e={root:"",dir:"",base:"",ext:"",name:""};if(r.length===0)return e;let t=r.length,n=0,i=r.charCodeAt(0);if(t===1)return j(i)?(e.root=e.dir=r,e):(e.base=e.name=r,e);if(j(i)){if(n=1,j(r.charCodeAt(1))){let m=2,p=m;for(;m<t&&!j(r.charCodeAt(m));)m++;if(m<t&&m!==p){for(p=m;m<t&&j(r.charCodeAt(m));)m++;if(m<t&&m!==p){for(p=m;m<t&&!j(r.charCodeAt(m));)m++;m===t?n=m:m!==p&&(n=m+1)}}}}else if(je(i)&&r.charCodeAt(1)===Ke){if(t<=2)return e.root=e.dir=r,e;if(n=2,j(r.charCodeAt(2))){if(t===3)return e.root=e.dir=r,e;n=3}}n>0&&(e.root=r.slice(0,n));let o=-1,a=n,l=-1,u=!0,c=r.length-1,d=0;for(;c>=n;--c){if(i=r.charCodeAt(c),j(i)){if(!u){a=c+1;break}continue}l===-1&&(u=!1,l=c+1),i===at?o===-1?o=c:d!==1&&(d=1):o!==-1&&(d=-1)}return l!==-1&&(o===-1||d===0||d===1&&o===l-1&&o===a+1?e.base=e.name=r.slice(a,l):(e.name=r.slice(a,o),e.base=r.slice(a,l),e.ext=r.slice(o,l))),a>0&&a!==n?e.dir=r.slice(0,a-1):e.dir=e.root,e},sep:"\\",delimiter:";",win32:null,posix:null},sl=(()=>{if(xe){let r=/\\/g;return()=>{let e=Ht().replace(r,"/");return e.slice(e.indexOf("/"))}}return()=>Ht()})(),$={resolve(...r){let e="",t=!1;for(let n=r.length-1;n>=0&&!t;n--){let i=r[n];ee(i,`paths[${n}]`),i.length!==0&&(e=`${i}/${e}`,t=i.charCodeAt(0)===le)}if(!t){let n=sl();e=`${n}/${e}`,t=n.charCodeAt(0)===le}return e=Cn(e,!t,"/",Xr),t?`/${e}`:e.length>0?e:"."},normalize(r){if(ee(r,"path"),r.length===0)return".";let e=r.charCodeAt(0)===le,t=r.charCodeAt(r.length-1)===le;return r=Cn(r,!e,"/",Xr),r.length===0?e?"/":t?"./":".":(t&&(r+="/"),e?`/${r}`:r)},isAbsolute(r){return ee(r,"path"),r.length>0&&r.charCodeAt(0)===le},join(...r){if(r.length===0)return".";let e=[];for(let t=0;t<r.length;++t){let n=r[t];ee(n,"path"),n.length>0&&e.push(n)}return e.length===0?".":$.normalize(e.join("/"))},relative(r,e){if(ee(r,"from"),ee(e,"to"),r===e||(r=$.resolve(r),e=$.resolve(e),r===e))return"";let t=1,n=r.length,i=n-t,o=1,a=e.length-o,l=i<a?i:a,u=-1,c=0;for(;c<l;c++){let m=r.charCodeAt(t+c);if(m!==e.charCodeAt(o+c))break;m===le&&(u=c)}if(c===l)if(a>l){if(e.charCodeAt(o+c)===le)return e.slice(o+c+1);if(c===0)return e.slice(o+c)}else i>l&&(r.charCodeAt(t+c)===le?u=c:c===0&&(u=0));let d="";for(c=t+u+1;c<=n;++c)(c===n||r.charCodeAt(c)===le)&&(d+=d.length===0?"..":"/..");return`${d}${e.slice(o+u)}`},toNamespacedPath(r){return r},dirname(r){if(ee(r,"path"),r.length===0)return".";let e=r.charCodeAt(0)===le,t=-1,n=!0;for(let i=r.length-1;i>=1;--i)if(r.charCodeAt(i)===le){if(!n){t=i;break}}else n=!1;return t===-1?e?"/":".":e&&t===1?"//":r.slice(0,t)},basename(r,e){e!==void 0&&ee(e,"suffix"),ee(r,"path");let t=0,n=-1,i=!0,o;if(e!==void 0&&e.length>0&&e.length<=r.length){if(e===r)return"";let a=e.length-1,l=-1;for(o=r.length-1;o>=0;--o){let u=r.charCodeAt(o);if(u===le){if(!i){t=o+1;break}}else l===-1&&(i=!1,l=o+1),a>=0&&(u===e.charCodeAt(a)?--a===-1&&(n=o):(a=-1,n=l))}return t===n?n=l:n===-1&&(n=r.length),r.slice(t,n)}for(o=r.length-1;o>=0;--o)if(r.charCodeAt(o)===le){if(!i){t=o+1;break}}else n===-1&&(i=!1,n=o+1);return n===-1?"":r.slice(t,n)},extname(r){ee(r,"path");let e=-1,t=0,n=-1,i=!0,o=0;for(let a=r.length-1;a>=0;--a){let l=r[a];if(l==="/"){if(!i){t=a+1;break}continue}n===-1&&(i=!1,n=a+1),l==="."?e===-1?e=a:o!==1&&(o=1):e!==-1&&(o=-1)}return e===-1||n===-1||o===0||o===1&&e===n-1&&e===t+1?"":r.slice(e,n)},format:Jo.bind(null,"/"),parse(r){ee(r,"path");let e={root:"",dir:"",base:"",ext:"",name:""};if(r.length===0)return e;let t=r.charCodeAt(0)===le,n;t?(e.root="/",n=1):n=0;let i=-1,o=0,a=-1,l=!0,u=r.length-1,c=0;for(;u>=n;--u){let d=r.charCodeAt(u);if(d===le){if(!l){o=u+1;break}continue}a===-1&&(l=!1,a=u+1),d===at?i===-1?i=u:c!==1&&(c=1):i!==-1&&(c=-1)}if(a!==-1){let d=o===0&&t?1:o;i===-1||c===0||c===1&&i===a-1&&i===o+1?e.base=e.name=r.slice(d,a):(e.name=r.slice(d,i),e.base=r.slice(d,a),e.ext=r.slice(i,a))}return o>0?e.dir=r.slice(0,o-1):t&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};$.win32=te.win32=te;$.posix=te.posix=$;var Zt=xe?te.normalize:$.normalize,al=xe?te.isAbsolute:$.isAbsolute,Yr=xe?te.join:$.join,Zo=xe?te.resolve:$.resolve,es=xe?te.relative:$.relative,ts=xe?te.dirname:$.dirname,a1=xe?te.basename:$.basename,l1=xe?te.extname:$.extname,u1=xe?te.format:$.format,c1=xe?te.parse:$.parse,m1=xe?te.toNamespacedPath:$.toNamespacedPath,Lt=xe?te.sep:$.sep,d1=xe?te.delimiter:$.delimiter;var ll=/^\w[\w\d+.-]*$/,ul=/^\//,cl=/^\/\//;function ml(r,e){if(!r.scheme&&e)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${r.authority}", path: "${r.path}", query: "${r.query}", fragment: "${r.fragment}"}`);if(r.scheme&&!ll.test(r.scheme)){let t=[...r.scheme.matchAll(/[^\w\d+.-]/gu)],n=t.length>0?` Found '${t[0][0]}' at index ${t[0].index} (${t.length} total)`:"";throw new Error(`[UriError]: Scheme contains illegal characters.${n} (len:${r.scheme.length})`)}if(r.path){if(r.authority){if(!ul.test(r.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(cl.test(r.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function dl(r,e){return!r&&!e?"file":r}function fl(r,e){switch(r){case"https":case"http":case"file":e?e[0]!==Le&&(e=Le+e):e=Le;break}return e}var Y="",Le="/",pl=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,ne=class r{static isUri(e){return e instanceof r?!0:!e||typeof e!="object"?!1:typeof e.authority=="string"&&typeof e.fragment=="string"&&typeof e.path=="string"&&typeof e.query=="string"&&typeof e.scheme=="string"&&typeof e.fsPath=="string"&&typeof e.with=="function"&&typeof e.toString=="function"}constructor(e,t,n,i,o,a=!1){typeof e=="object"?(this.scheme=e.scheme||Y,this.authority=e.authority||Y,this.path=e.path||Y,this.query=e.query||Y,this.fragment=e.fragment||Y):(this.scheme=dl(e,a),this.authority=t||Y,this.path=fl(this.scheme,n||Y),this.query=i||Y,this.fragment=o||Y,ml(this,a))}get fsPath(){return en(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:i,query:o,fragment:a}=e;return t===void 0?t=this.scheme:t===null&&(t=Y),n===void 0?n=this.authority:n===null&&(n=Y),i===void 0?i=this.path:i===null&&(i=Y),o===void 0?o=this.query:o===null&&(o=Y),a===void 0?a=this.fragment:a===null&&(a=Y),t===this.scheme&&n===this.authority&&i===this.path&&o===this.query&&a===this.fragment?this:new Je(t,n,i,o,a)}static parse(e,t=!1){let n=pl.exec(e);return n?new Je(n[2]||Y,Un(n[4]||Y),Un(n[5]||Y),Un(n[7]||Y),Un(n[9]||Y),t):new Je(Y,Y,Y,Y,Y)}static file(e){let t=Y;if(Ae&&(e=e.replace(/\\/g,Le)),e[0]===Le&&e[1]===Le){let n=e.indexOf(Le,2);n===-1?(t=e.substring(2),e=Le):(t=e.substring(2,n),e=e.substring(n)||Le)}return new Je("file",t,e,Y,Y)}static from(e,t){return new Je(e.scheme,e.authority,e.path,e.query,e.fragment,t)}static joinPath(e,...t){if(!e.path)throw new Error(`[UriError]: cannot call joinPath on URI without path: ${e.toString()}`);let n;return Ae&&e.scheme==="file"?n=r.file(te.join(en(e,!0),...t)).path:n=$.join(e.path,...t),e.with({path:n})}toString(e=!1){return Zr(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof r)return e;{let t=new Je(e);return t._formatted=e.external??null,t._fsPath=e._sep===is?e.fsPath??null:null,t}}else return e}[Symbol.for("debug.description")](){return`URI(${this.toString()})`}};var is=Ae?1:void 0,Je=class extends ne{constructor(){super(...arguments);this._formatted=null;this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=en(this,!1)),this._fsPath}toString(t=!1){return t?Zr(this,!0):(this._formatted||(this._formatted=Zr(this,!1)),this._formatted)}toJSON(){let t={$mid:1};return this._fsPath&&(t.fsPath=this._fsPath,t._sep=is),this._formatted&&(t.external=this._formatted),this.path&&(t.path=this.path),this.scheme&&(t.scheme=this.scheme),this.authority&&(t.authority=this.authority),this.query&&(t.query=this.query),this.fragment&&(t.fragment=this.fragment),t}},os={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 ns(r,e,t){let n,i=-1;for(let o=0;o<r.length;o++){let a=r.charCodeAt(o);if(a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||a===45||a===46||a===95||a===126||e&&a===47||t&&a===91||t&&a===93||t&&a===58)i!==-1&&(n+=encodeURIComponent(r.substring(i,o)),i=-1),n!==void 0&&(n+=r.charAt(o));else{n===void 0&&(n=r.substr(0,o));let l=os[a];l!==void 0?(i!==-1&&(n+=encodeURIComponent(r.substring(i,o)),i=-1),n+=l):i===-1&&(i=o)}}return i!==-1&&(n+=encodeURIComponent(r.substring(i))),n!==void 0?n:r}function gl(r){let e;for(let t=0;t<r.length;t++){let n=r.charCodeAt(t);n===35||n===63?(e===void 0&&(e=r.substr(0,t)),e+=os[n]):e!==void 0&&(e+=r[t])}return e!==void 0?e:r}function en(r,e){let t;return r.authority&&r.path.length>1&&r.scheme==="file"?t=`//${r.authority}${r.path}`:r.path.charCodeAt(0)===47&&(r.path.charCodeAt(1)>=65&&r.path.charCodeAt(1)<=90||r.path.charCodeAt(1)>=97&&r.path.charCodeAt(1)<=122)&&r.path.charCodeAt(2)===58?e?t=r.path.substr(1):t=r.path[1].toLowerCase()+r.path.substr(2):t=r.path,Ae&&(t=t.replace(/\//g,"\\")),t}function Zr(r,e){let t=e?gl:ns,n="",{scheme:i,authority:o,path:a,query:l,fragment:u}=r;if(i&&(n+=i,n+=":"),(o||i==="file")&&(n+=Le,n+=Le),o){let c=o.indexOf("@");if(c!==-1){let d=o.substr(0,c);o=o.substr(c+1),c=d.lastIndexOf(":"),c===-1?n+=t(d,!1,!1):(n+=t(d.substr(0,c),!1,!1),n+=":",n+=t(d.substr(c+1),!1,!0)),n+="@"}o=o.toLowerCase(),c=o.lastIndexOf(":"),c===-1?n+=t(o,!1,!0):(n+=t(o.substr(0,c),!1,!0),n+=o.substr(c))}if(a){if(a.length>=3&&a.charCodeAt(0)===47&&a.charCodeAt(2)===58){let c=a.charCodeAt(1);c>=65&&c<=90&&(a=`/${String.fromCharCode(c+32)}:${a.substr(3)}`)}else if(a.length>=2&&a.charCodeAt(1)===58){let c=a.charCodeAt(0);c>=65&&c<=90&&(a=`${String.fromCharCode(c+32)}:${a.substr(2)}`)}n+=t(a,!0,!1)}return l&&(n+="?",n+=t(l,!1,!1)),u&&(n+="#",n+=e?u:ns(u,!1,!1)),n}function ss(r){try{return decodeURIComponent(r)}catch{return r.length>3?r.substr(0,3)+ss(r.substr(3)):r}}var rs=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Un(r){return r.match(rs)?r.replace(rs,e=>ss(e)):r}var Fn=class r extends D{constructor(e,t,n,i){super(e,t,n,i),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=n,this.positionColumn=i}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return r.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 this.getDirection()===0?new r(this.startLineNumber,this.startColumn,e,t):new r(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new W(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new W(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return this.getDirection()===0?new r(e,t,this.endLineNumber,this.endColumn):new r(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new r(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return t===0?new r(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new r(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new r(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let n=0,i=e.length;n<i;n++)if(!this.selectionsEqual(e[n],t[n]))return!1;return!0}static isISelection(e){return!!e&&typeof e.selectionStartLineNumber=="number"&&typeof e.selectionStartColumn=="number"&&typeof e.positionLineNumber=="number"&&typeof e.positionColumn=="number"}static createWithDirection(e,t,n,i,o){return o===0?new r(e,t,n,i):new r(n,i,e,t)}};var as=Object.create(null);function s(r,e){if(io(e)){let t=as[e];if(t===void 0)throw new Error(`${r} references an unknown codicon: ${e}`);e=t}return as[r]=e,{id:r}}var ls={add:s("add",6e4),plus:s("plus",6e4),gistNew:s("gist-new",6e4),repoCreate:s("repo-create",6e4),lightbulb:s("lightbulb",60001),lightBulb:s("light-bulb",60001),repo:s("repo",60002),repoDelete:s("repo-delete",60002),gistFork:s("gist-fork",60003),repoForked:s("repo-forked",60003),gitPullRequest:s("git-pull-request",60004),gitPullRequestAbandoned:s("git-pull-request-abandoned",60004),recordKeys:s("record-keys",60005),keyboard:s("keyboard",60005),tag:s("tag",60006),gitPullRequestLabel:s("git-pull-request-label",60006),tagAdd:s("tag-add",60006),tagRemove:s("tag-remove",60006),person:s("person",60007),personFollow:s("person-follow",60007),personOutline:s("person-outline",60007),personFilled:s("person-filled",60007),sourceControl:s("source-control",60008),mirror:s("mirror",60009),mirrorPublic:s("mirror-public",60009),star:s("star",60010),starAdd:s("star-add",60010),starDelete:s("star-delete",60010),starEmpty:s("star-empty",60010),comment:s("comment",60011),commentAdd:s("comment-add",60011),alert:s("alert",60012),warning:s("warning",60012),search:s("search",60013),searchSave:s("search-save",60013),logOut:s("log-out",60014),signOut:s("sign-out",60014),logIn:s("log-in",60015),signIn:s("sign-in",60015),eye:s("eye",60016),eyeUnwatch:s("eye-unwatch",60016),eyeWatch:s("eye-watch",60016),circleFilled:s("circle-filled",60017),primitiveDot:s("primitive-dot",60017),closeDirty:s("close-dirty",60017),debugBreakpoint:s("debug-breakpoint",60017),debugBreakpointDisabled:s("debug-breakpoint-disabled",60017),debugHint:s("debug-hint",60017),terminalDecorationSuccess:s("terminal-decoration-success",60017),primitiveSquare:s("primitive-square",60018),edit:s("edit",60019),pencil:s("pencil",60019),info:s("info",60020),issueOpened:s("issue-opened",60020),gistPrivate:s("gist-private",60021),gitForkPrivate:s("git-fork-private",60021),lock:s("lock",60021),mirrorPrivate:s("mirror-private",60021),close:s("close",60022),removeClose:s("remove-close",60022),x:s("x",60022),repoSync:s("repo-sync",60023),sync:s("sync",60023),clone:s("clone",60024),desktopDownload:s("desktop-download",60024),beaker:s("beaker",60025),microscope:s("microscope",60025),vm:s("vm",60026),deviceDesktop:s("device-desktop",60026),file:s("file",60027),more:s("more",60028),ellipsis:s("ellipsis",60028),kebabHorizontal:s("kebab-horizontal",60028),mailReply:s("mail-reply",60029),reply:s("reply",60029),organization:s("organization",60030),organizationFilled:s("organization-filled",60030),organizationOutline:s("organization-outline",60030),newFile:s("new-file",60031),fileAdd:s("file-add",60031),newFolder:s("new-folder",60032),fileDirectoryCreate:s("file-directory-create",60032),trash:s("trash",60033),trashcan:s("trashcan",60033),history:s("history",60034),clock:s("clock",60034),folder:s("folder",60035),fileDirectory:s("file-directory",60035),symbolFolder:s("symbol-folder",60035),logoGithub:s("logo-github",60036),markGithub:s("mark-github",60036),github:s("github",60036),terminal:s("terminal",60037),console:s("console",60037),repl:s("repl",60037),zap:s("zap",60038),symbolEvent:s("symbol-event",60038),error:s("error",60039),stop:s("stop",60039),variable:s("variable",60040),symbolVariable:s("symbol-variable",60040),array:s("array",60042),symbolArray:s("symbol-array",60042),symbolModule:s("symbol-module",60043),symbolPackage:s("symbol-package",60043),symbolNamespace:s("symbol-namespace",60043),symbolObject:s("symbol-object",60043),symbolMethod:s("symbol-method",60044),symbolFunction:s("symbol-function",60044),symbolConstructor:s("symbol-constructor",60044),symbolBoolean:s("symbol-boolean",60047),symbolNull:s("symbol-null",60047),symbolNumeric:s("symbol-numeric",60048),symbolNumber:s("symbol-number",60048),symbolStructure:s("symbol-structure",60049),symbolStruct:s("symbol-struct",60049),symbolParameter:s("symbol-parameter",60050),symbolTypeParameter:s("symbol-type-parameter",60050),symbolKey:s("symbol-key",60051),symbolText:s("symbol-text",60051),symbolReference:s("symbol-reference",60052),goToFile:s("go-to-file",60052),symbolEnum:s("symbol-enum",60053),symbolValue:s("symbol-value",60053),symbolRuler:s("symbol-ruler",60054),symbolUnit:s("symbol-unit",60054),activateBreakpoints:s("activate-breakpoints",60055),archive:s("archive",60056),arrowBoth:s("arrow-both",60057),arrowDown:s("arrow-down",60058),arrowLeft:s("arrow-left",60059),arrowRight:s("arrow-right",60060),arrowSmallDown:s("arrow-small-down",60061),arrowSmallLeft:s("arrow-small-left",60062),arrowSmallRight:s("arrow-small-right",60063),arrowSmallUp:s("arrow-small-up",60064),arrowUp:s("arrow-up",60065),bell:s("bell",60066),bold:s("bold",60067),book:s("book",60068),bookmark:s("bookmark",60069),debugBreakpointConditionalUnverified:s("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:s("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:s("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:s("debug-breakpoint-data-unverified",60072),debugBreakpointData:s("debug-breakpoint-data",60073),debugBreakpointDataDisabled:s("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:s("debug-breakpoint-log-unverified",60074),debugBreakpointLog:s("debug-breakpoint-log",60075),debugBreakpointLogDisabled:s("debug-breakpoint-log-disabled",60075),briefcase:s("briefcase",60076),broadcast:s("broadcast",60077),browser:s("browser",60078),bug:s("bug",60079),calendar:s("calendar",60080),caseSensitive:s("case-sensitive",60081),check:s("check",60082),checklist:s("checklist",60083),chevronDown:s("chevron-down",60084),chevronLeft:s("chevron-left",60085),chevronRight:s("chevron-right",60086),chevronUp:s("chevron-up",60087),chromeClose:s("chrome-close",60088),chromeMaximize:s("chrome-maximize",60089),chromeMinimize:s("chrome-minimize",60090),chromeRestore:s("chrome-restore",60091),circleOutline:s("circle-outline",60092),circle:s("circle",60092),debugBreakpointUnverified:s("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:s("terminal-decoration-incomplete",60092),circleSlash:s("circle-slash",60093),circuitBoard:s("circuit-board",60094),clearAll:s("clear-all",60095),clippy:s("clippy",60096),closeAll:s("close-all",60097),cloudDownload:s("cloud-download",60098),cloudUpload:s("cloud-upload",60099),code:s("code",60100),collapseAll:s("collapse-all",60101),colorMode:s("color-mode",60102),commentDiscussion:s("comment-discussion",60103),creditCard:s("credit-card",60105),dash:s("dash",60108),dashboard:s("dashboard",60109),database:s("database",60110),debugContinue:s("debug-continue",60111),debugDisconnect:s("debug-disconnect",60112),debugPause:s("debug-pause",60113),debugRestart:s("debug-restart",60114),debugStart:s("debug-start",60115),debugStepInto:s("debug-step-into",60116),debugStepOut:s("debug-step-out",60117),debugStepOver:s("debug-step-over",60118),debugStop:s("debug-stop",60119),debug:s("debug",60120),deviceCameraVideo:s("device-camera-video",60121),deviceCamera:s("device-camera",60122),deviceMobile:s("device-mobile",60123),diffAdded:s("diff-added",60124),diffIgnored:s("diff-ignored",60125),diffModified:s("diff-modified",60126),diffRemoved:s("diff-removed",60127),diffRenamed:s("diff-renamed",60128),diff:s("diff",60129),diffSidebyside:s("diff-sidebyside",60129),discard:s("discard",60130),editorLayout:s("editor-layout",60131),emptyWindow:s("empty-window",60132),exclude:s("exclude",60133),extensions:s("extensions",60134),eyeClosed:s("eye-closed",60135),fileBinary:s("file-binary",60136),fileCode:s("file-code",60137),fileMedia:s("file-media",60138),filePdf:s("file-pdf",60139),fileSubmodule:s("file-submodule",60140),fileSymlinkDirectory:s("file-symlink-directory",60141),fileSymlinkFile:s("file-symlink-file",60142),fileZip:s("file-zip",60143),files:s("files",60144),filter:s("filter",60145),flame:s("flame",60146),foldDown:s("fold-down",60147),foldUp:s("fold-up",60148),fold:s("fold",60149),folderActive:s("folder-active",60150),folderOpened:s("folder-opened",60151),gear:s("gear",60152),gift:s("gift",60153),gistSecret:s("gist-secret",60154),gist:s("gist",60155),gitCommit:s("git-commit",60156),gitCompare:s("git-compare",60157),compareChanges:s("compare-changes",60157),gitMerge:s("git-merge",60158),githubAction:s("github-action",60159),githubAlt:s("github-alt",60160),globe:s("globe",60161),grabber:s("grabber",60162),graph:s("graph",60163),gripper:s("gripper",60164),heart:s("heart",60165),home:s("home",60166),horizontalRule:s("horizontal-rule",60167),hubot:s("hubot",60168),inbox:s("inbox",60169),issueReopened:s("issue-reopened",60171),issues:s("issues",60172),italic:s("italic",60173),jersey:s("jersey",60174),json:s("json",60175),bracket:s("bracket",60175),kebabVertical:s("kebab-vertical",60176),key:s("key",60177),law:s("law",60178),lightbulbAutofix:s("lightbulb-autofix",60179),linkExternal:s("link-external",60180),link:s("link",60181),listOrdered:s("list-ordered",60182),listUnordered:s("list-unordered",60183),liveShare:s("live-share",60184),loading:s("loading",60185),location:s("location",60186),mailRead:s("mail-read",60187),mail:s("mail",60188),markdown:s("markdown",60189),megaphone:s("megaphone",60190),mention:s("mention",60191),milestone:s("milestone",60192),gitPullRequestMilestone:s("git-pull-request-milestone",60192),mortarBoard:s("mortar-board",60193),move:s("move",60194),multipleWindows:s("multiple-windows",60195),mute:s("mute",60196),noNewline:s("no-newline",60197),note:s("note",60198),octoface:s("octoface",60199),openPreview:s("open-preview",60200),package:s("package",60201),paintcan:s("paintcan",60202),pin:s("pin",60203),play:s("play",60204),run:s("run",60204),plug:s("plug",60205),preserveCase:s("preserve-case",60206),preview:s("preview",60207),project:s("project",60208),pulse:s("pulse",60209),question:s("question",60210),quote:s("quote",60211),radioTower:s("radio-tower",60212),reactions:s("reactions",60213),references:s("references",60214),refresh:s("refresh",60215),regex:s("regex",60216),remoteExplorer:s("remote-explorer",60217),remote:s("remote",60218),remove:s("remove",60219),replaceAll:s("replace-all",60220),replace:s("replace",60221),repoClone:s("repo-clone",60222),repoForcePush:s("repo-force-push",60223),repoPull:s("repo-pull",60224),repoPush:s("repo-push",60225),report:s("report",60226),requestChanges:s("request-changes",60227),rocket:s("rocket",60228),rootFolderOpened:s("root-folder-opened",60229),rootFolder:s("root-folder",60230),rss:s("rss",60231),ruby:s("ruby",60232),saveAll:s("save-all",60233),saveAs:s("save-as",60234),save:s("save",60235),screenFull:s("screen-full",60236),screenNormal:s("screen-normal",60237),searchStop:s("search-stop",60238),server:s("server",60240),settingsGear:s("settings-gear",60241),settings:s("settings",60242),shield:s("shield",60243),smiley:s("smiley",60244),sortPrecedence:s("sort-precedence",60245),splitHorizontal:s("split-horizontal",60246),splitVertical:s("split-vertical",60247),squirrel:s("squirrel",60248),starFull:s("star-full",60249),starHalf:s("star-half",60250),symbolClass:s("symbol-class",60251),symbolColor:s("symbol-color",60252),symbolConstant:s("symbol-constant",60253),symbolEnumMember:s("symbol-enum-member",60254),symbolField:s("symbol-field",60255),symbolFile:s("symbol-file",60256),symbolInterface:s("symbol-interface",60257),symbolKeyword:s("symbol-keyword",60258),symbolMisc:s("symbol-misc",60259),symbolOperator:s("symbol-operator",60260),symbolProperty:s("symbol-property",60261),wrench:s("wrench",60261),wrenchSubaction:s("wrench-subaction",60261),symbolSnippet:s("symbol-snippet",60262),tasklist:s("tasklist",60263),telescope:s("telescope",60264),textSize:s("text-size",60265),threeBars:s("three-bars",60266),thumbsdown:s("thumbsdown",60267),thumbsup:s("thumbsup",60268),tools:s("tools",60269),triangleDown:s("triangle-down",60270),triangleLeft:s("triangle-left",60271),triangleRight:s("triangle-right",60272),triangleUp:s("triangle-up",60273),twitter:s("twitter",60274),unfold:s("unfold",60275),unlock:s("unlock",60276),unmute:s("unmute",60277),unverified:s("unverified",60278),verified:s("verified",60279),versions:s("versions",60280),vmActive:s("vm-active",60281),vmOutline:s("vm-outline",60282),vmRunning:s("vm-running",60283),watch:s("watch",60284),whitespace:s("whitespace",60285),wholeWord:s("whole-word",60286),window:s("window",60287),wordWrap:s("word-wrap",60288),zoomIn:s("zoom-in",60289),zoomOut:s("zoom-out",60290),listFilter:s("list-filter",60291),listFlat:s("list-flat",60292),listSelection:s("list-selection",60293),selection:s("selection",60293),listTree:s("list-tree",60294),debugBreakpointFunctionUnverified:s("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:s("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:s("debug-breakpoint-function-disabled",60296),debugStackframeActive:s("debug-stackframe-active",60297),circleSmallFilled:s("circle-small-filled",60298),debugStackframeDot:s("debug-stackframe-dot",60298),terminalDecorationMark:s("terminal-decoration-mark",60298),debugStackframe:s("debug-stackframe",60299),debugStackframeFocused:s("debug-stackframe-focused",60299),debugBreakpointUnsupported:s("debug-breakpoint-unsupported",60300),symbolString:s("symbol-string",60301),debugReverseContinue:s("debug-reverse-continue",60302),debugStepBack:s("debug-step-back",60303),debugRestartFrame:s("debug-restart-frame",60304),debugAlt:s("debug-alt",60305),callIncoming:s("call-incoming",60306),callOutgoing:s("call-outgoing",60307),menu:s("menu",60308),expandAll:s("expand-all",60309),feedback:s("feedback",60310),gitPullRequestReviewer:s("git-pull-request-reviewer",60310),groupByRefType:s("group-by-ref-type",60311),ungroupByRefType:s("ungroup-by-ref-type",60312),account:s("account",60313),gitPullRequestAssignee:s("git-pull-request-assignee",60313),bellDot:s("bell-dot",60314),debugConsole:s("debug-console",60315),library:s("library",60316),output:s("output",60317),runAll:s("run-all",60318),syncIgnored:s("sync-ignored",60319),pinned:s("pinned",60320),githubInverted:s("github-inverted",60321),serverProcess:s("server-process",60322),serverEnvironment:s("server-environment",60323),pass:s("pass",60324),issueClosed:s("issue-closed",60324),stopCircle:s("stop-circle",60325),playCircle:s("play-circle",60326),record:s("record",60327),debugAltSmall:s("debug-alt-small",60328),vmConnect:s("vm-connect",60329),cloud:s("cloud",60330),merge:s("merge",60331),export:s("export",60332),graphLeft:s("graph-left",60333),magnet:s("magnet",60334),notebook:s("notebook",60335),redo:s("redo",60336),checkAll:s("check-all",60337),pinnedDirty:s("pinned-dirty",60338),passFilled:s("pass-filled",60339),circleLargeFilled:s("circle-large-filled",60340),circleLarge:s("circle-large",60341),circleLargeOutline:s("circle-large-outline",60341),combine:s("combine",60342),gather:s("gather",60342),table:s("table",60343),variableGroup:s("variable-group",60344),typeHierarchy:s("type-hierarchy",60345),typeHierarchySub:s("type-hierarchy-sub",60346),typeHierarchySuper:s("type-hierarchy-super",60347),gitPullRequestCreate:s("git-pull-request-create",60348),runAbove:s("run-above",60349),runBelow:s("run-below",60350),notebookTemplate:s("notebook-template",60351),debugRerun:s("debug-rerun",60352),workspaceTrusted:s("workspace-trusted",60353),workspaceUntrusted:s("workspace-untrusted",60354),workspaceUnknown:s("workspace-unknown",60355),terminalCmd:s("terminal-cmd",60356),terminalDebian:s("terminal-debian",60357),terminalLinux:s("terminal-linux",60358),terminalPowershell:s("terminal-powershell",60359),terminalTmux:s("terminal-tmux",60360),terminalUbuntu:s("terminal-ubuntu",60361),terminalBash:s("terminal-bash",60362),arrowSwap:s("arrow-swap",60363),copy:s("copy",60364),personAdd:s("person-add",60365),filterFilled:s("filter-filled",60366),wand:s("wand",60367),debugLineByLine:s("debug-line-by-line",60368),inspect:s("inspect",60369),layers:s("layers",60370),layersDot:s("layers-dot",60371),layersActive:s("layers-active",60372),compass:s("compass",60373),compassDot:s("compass-dot",60374),compassActive:s("compass-active",60375),azure:s("azure",60376),issueDraft:s("issue-draft",60377),gitPullRequestClosed:s("git-pull-request-closed",60378),gitPullRequestDraft:s("git-pull-request-draft",60379),debugAll:s("debug-all",60380),debugCoverage:s("debug-coverage",60381),runErrors:s("run-errors",60382),folderLibrary:s("folder-library",60383),debugContinueSmall:s("debug-continue-small",60384),beakerStop:s("beaker-stop",60385),graphLine:s("graph-line",60386),graphScatter:s("graph-scatter",60387),pieChart:s("pie-chart",60388),bracketDot:s("bracket-dot",60389),bracketError:s("bracket-error",60390),lockSmall:s("lock-small",60391),azureDevops:s("azure-devops",60392),verifiedFilled:s("verified-filled",60393),newline:s("newline",60394),layout:s("layout",60395),layoutActivitybarLeft:s("layout-activitybar-left",60396),layoutActivitybarRight:s("layout-activitybar-right",60397),layoutPanelLeft:s("layout-panel-left",60398),layoutPanelCenter:s("layout-panel-center",60399),layoutPanelJustify:s("layout-panel-justify",60400),layoutPanelRight:s("layout-panel-right",60401),layoutPanel:s("layout-panel",60402),layoutSidebarLeft:s("layout-sidebar-left",60403),layoutSidebarRight:s("layout-sidebar-right",60404),layoutStatusbar:s("layout-statusbar",60405),layoutMenubar:s("layout-menubar",60406),layoutCentered:s("layout-centered",60407),target:s("target",60408),indent:s("indent",60409),recordSmall:s("record-small",60410),errorSmall:s("error-small",60411),terminalDecorationError:s("terminal-decoration-error",60411),arrowCircleDown:s("arrow-circle-down",60412),arrowCircleLeft:s("arrow-circle-left",60413),arrowCircleRight:s("arrow-circle-right",60414),arrowCircleUp:s("arrow-circle-up",60415),layoutSidebarRightOff:s("layout-sidebar-right-off",60416),layoutPanelOff:s("layout-panel-off",60417),layoutSidebarLeftOff:s("layout-sidebar-left-off",60418),blank:s("blank",60419),heartFilled:s("heart-filled",60420),map:s("map",60421),mapHorizontal:s("map-horizontal",60421),foldHorizontal:s("fold-horizontal",60421),mapFilled:s("map-filled",60422),mapHorizontalFilled:s("map-horizontal-filled",60422),foldHorizontalFilled:s("fold-horizontal-filled",60422),circleSmall:s("circle-small",60423),bellSlash:s("bell-slash",60424),bellSlashDot:s("bell-slash-dot",60425),commentUnresolved:s("comment-unresolved",60426),gitPullRequestGoToChanges:s("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:s("git-pull-request-new-changes",60428),searchFuzzy:s("search-fuzzy",60429),commentDraft:s("comment-draft",60430),send:s("send",60431),sparkle:s("sparkle",60432),insert:s("insert",60433),mic:s("mic",60434),thumbsdownFilled:s("thumbsdown-filled",60435),thumbsupFilled:s("thumbsup-filled",60436),coffee:s("coffee",60437),snake:s("snake",60438),game:s("game",60439),vr:s("vr",60440),chip:s("chip",60441),piano:s("piano",60442),music:s("music",60443),micFilled:s("mic-filled",60444),repoFetch:s("repo-fetch",60445),copilot:s("copilot",60446),lightbulbSparkle:s("lightbulb-sparkle",60447),robot:s("robot",60448),sparkleFilled:s("sparkle-filled",60449),diffSingle:s("diff-single",60450),diffMultiple:s("diff-multiple",60451),surroundWith:s("surround-with",60452),share:s("share",60453),gitStash:s("git-stash",60454),gitStashApply:s("git-stash-apply",60455),gitStashPop:s("git-stash-pop",60456),vscode:s("vscode",60457),vscodeInsiders:s("vscode-insiders",60458),codeOss:s("code-oss",60459),runCoverage:s("run-coverage",60460),runAllCoverage:s("run-all-coverage",60461),coverage:s("coverage",60462),githubProject:s("github-project",60463),mapVertical:s("map-vertical",60464),foldVertical:s("fold-vertical",60464),mapVerticalFilled:s("map-vertical-filled",60465),foldVerticalFilled:s("fold-vertical-filled",60465),goToSearch:s("go-to-search",60466),percentage:s("percentage",60467),sortPercentage:s("sort-percentage",60467),attach:s("attach",60468),goToEditingSession:s("go-to-editing-session",60469),editSession:s("edit-session",60470),codeReview:s("code-review",60471),copilotWarning:s("copilot-warning",60472),python:s("python",60473),copilotLarge:s("copilot-large",60474),copilotWarningLarge:s("copilot-warning-large",60475),keyboardTab:s("keyboard-tab",60476),copilotBlocked:s("copilot-blocked",60477),copilotNotConnected:s("copilot-not-connected",60478),flag:s("flag",60479),lightbulbEmpty:s("lightbulb-empty",60480),symbolMethodArrow:s("symbol-method-arrow",60481),copilotUnavailable:s("copilot-unavailable",60482),repoPinned:s("repo-pinned",60483),keyboardTabAbove:s("keyboard-tab-above",60484),keyboardTabBelow:s("keyboard-tab-below",60485),gitPullRequestDone:s("git-pull-request-done",60486),mcp:s("mcp",60487),extensionsLarge:s("extensions-large",60488),layoutPanelDock:s("layout-panel-dock",60489),layoutSidebarLeftDock:s("layout-sidebar-left-dock",60490),layoutSidebarRightDock:s("layout-sidebar-right-dock",60491),copilotInProgress:s("copilot-in-progress",60492),copilotError:s("copilot-error",60493),copilotSuccess:s("copilot-success",60494),chatSparkle:s("chat-sparkle",60495),searchSparkle:s("search-sparkle",60496),editSparkle:s("edit-sparkle",60497),copilotSnooze:s("copilot-snooze",60498),sendToRemoteAgent:s("send-to-remote-agent",60499),commentDiscussionSparkle:s("comment-discussion-sparkle",60500),chatSparkleWarning:s("chat-sparkle-warning",60501),chatSparkleError:s("chat-sparkle-error",60502),collection:s("collection",60503),newCollection:s("new-collection",60504),thinking:s("thinking",60505),build:s("build",60506),commentDiscussionQuote:s("comment-discussion-quote",60507),cursor:s("cursor",60508),eraser:s("eraser",60509),fileText:s("file-text",60510),quotes:s("quotes",60512),rename:s("rename",60513),runWithDeps:s("run-with-deps",60514),debugConnected:s("debug-connected",60515),strikethrough:s("strikethrough",60516),openInProduct:s("open-in-product",60517),indexZero:s("index-zero",60518),agent:s("agent",60519),editCode:s("edit-code",60520),repoSelected:s("repo-selected",60521),skip:s("skip",60522),mergeInto:s("merge-into",60523),gitBranchChanges:s("git-branch-changes",60524),gitBranchStagedChanges:s("git-branch-staged-changes",60525),gitBranchConflicts:s("git-branch-conflicts",60526),gitBranch:s("git-branch",60527),gitBranchCreate:s("git-branch-create",60527),gitBranchDelete:s("git-branch-delete",60527),searchLarge:s("search-large",60528),terminalGitBash:s("terminal-git-bash",60529),windowActive:s("window-active",60530),forward:s("forward",60531),download:s("download",60532),clockface:s("clockface",60533),unarchive:s("unarchive",60534),sessionInProgress:s("session-in-progress",60535),collectionSmall:s("collection-small",60536),vmSmall:s("vm-small",60537),cloudSmall:s("cloud-small",60538),addSmall:s("add-small",60539),removeSmall:s("remove-small",60540),worktreeSmall:s("worktree-small",60541),worktree:s("worktree",60542),screenCut:s("screen-cut",60543),ask:s("ask",60544),openai:s("openai",60545),claude:s("claude",60546),openInWindow:s("open-in-window",60547),newSession:s("new-session",60548),terminalSecure:s("terminal-secure",60549),chatImport:s("chat-import",60550),chatExport:s("chat-export",60551),shareWindow:s("share-window",60552),circleSlashCompact:s("circle-slash-compact",60553),copilotCompact:s("copilot-compact",60554),folderOpenedCompact:s("folder-opened-compact",60555),folderCompact:s("folder-compact",60556),gearCompact:s("gear-compact",60557),gitBranchCompact:s("git-branch-compact",60558),libraryCompact:s("library-compact",60559),recordKeysCompact:s("record-keys-compact",60560),remoteCompact:s("remote-compact",60561),repoForkedCompact:s("repo-forked-compact",60562),repoCompact:s("repo-compact",60563),shieldCompact:s("shield-compact",60564),sparkleCompact:s("sparkle-compact",60565),symbolColorCompact:s("symbol-color-compact",60566),windowCompact:s("window-compact",60567),errorCompact:s("error-compact",60568),warningCompact:s("warning-compact",60569),passCompact:s("pass-compact",60570),important:s("important",60571),importantCompact:s("important-compact",60572),rocketCompact:s("rocket-compact",60573),unpin:s("unpin",60574),addCompact:s("add-compact",60575),attachCompact:s("attach-compact",60576),beakerCompact:s("beaker-compact",60577),checkCompact:s("check-compact",60578),checklistCompact:s("checklist-compact",60579),chevronDownCompact:s("chevron-down-compact",60580),chevronLeftCompact:s("chevron-left-compact",60581),chevronRightCompact:s("chevron-right-compact",60582),chevronUpCompact:s("chevron-up-compact",60583),circleFilledCompact:s("circle-filled-compact",60584),circleSmallFilledCompact:s("circle-small-filled-compact",60585),closeCompact:s("close-compact",60586),collapseAllCompact:s("collapse-all-compact",60587),commentCompact:s("comment-compact",60588),commentUnresolvedCompact:s("comment-unresolved-compact",60589),debugConnectedCompact:s("debug-connected-compact",60590),debugDisconnectCompact:s("debug-disconnect-compact",60591),editCompact:s("edit-compact",60592),fileMediaCompact:s("file-media-compact",60593),gitFetch:s("git-fetch",60594),lightbulbCompact:s("lightbulb-compact",60595),loadingCompact:s("loading-compact",60596),passFilledCompact:s("pass-filled-compact",60597),projectCompact:s("project-compact",60598),refreshCompact:s("refresh-compact",60599),searchCompact:s("search-compact",60600),sessionInProgressCompact:s("session-in-progress-compact",60601),syncCompact:s("sync-compact",60602),terminalCompact:s("terminal-compact",60603),vmPending:s("vm-pending",60604),worktreeCompact:s("worktree-compact",60605),developerTools:s("developer-tools",60606),cloudCompact:s("cloud-compact",60607),agentCompact:s("agent-compact",60608),askCompact:s("ask-compact",60609),settingsCompact:s("settings-compact",60610),vmCompact:s("vm-compact",60611),runCompact:s("run-compact",60612),gitPullRequestComment:s("git-pull-request-comment",60613),gitPullRequestError:s("git-pull-request-error",60614),rightPanelHide:s("right-panel-hide",60615),rightPanelShow:s("right-panel-show",60616),vscodeInsidersOutline:s("vscode-insiders-outline",60617),vscodeOutline:s("vscode-outline",60618),voiceMode:s("voice-mode",60619),voiceModeCompact:s("voice-mode-compact",60620),micDownload:s("mic-download",60621),micDownloadCompact:s("mic-download-compact",60622),voiceModeDownload:s("voice-mode-download",60623),voiceModeDownloadCompact:s("voice-mode-download-compact",60624),googleGemini:s("google-gemini",60625),kimi:s("kimi",60626),microsoft:s("microsoft",60627),fish1Happy:s("fish1-happy",60628),fish1Neutral:s("fish1-neutral",60629),fish1Sad:s("fish1-sad",60630),fish1VerySad:s("fish1-very-sad",60631),fish2Happy:s("fish2-happy",60632),fish2Neutral:s("fish2-neutral",60633),fish2Sad:s("fish2-sad",60634),fish2VerySad:s("fish2-very-sad",60635),fish3Happy:s("fish3-happy",60636),fish3Neutral:s("fish3-neutral",60637),fish3Sad:s("fish3-sad",60638),fish3VerySad:s("fish3-very-sad",60639),fish4Happy:s("fish4-happy",60640),fish4Neutral:s("fish4-neutral",60641),fish4Sad:s("fish4-sad",60642),fish4VerySad:s("fish4-very-sad",60643),personVoice:s("person-voice",60644),personVoiceCompact:s("person-voice-compact",60645),personVoiceFilled:s("person-voice-filled",60646),personVoiceFilledCompact:s("person-voice-filled-compact",60647),cloudDownloadCompact:s("cloud-download-compact",60648),cloudUploadCompact:s("cloud-upload-compact",60649),micCompact:s("mic-compact",60650),arrowUpCompact:s("arrow-up-compact",60651),xai:s("xai",60652),arrowCircleUpSparkle:s("arrow-circle-up-sparkle",60653),closeSmall:s("close-small",60654)};var hl={dialogError:s("dialog-error","error"),dialogWarning:s("dialog-warning","warning"),dialogInfo:s("dialog-info","info"),dialogClose:s("dialog-close","close"),treeItemExpanded:s("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:s("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:s("tree-filter-on-type-off","list-selection"),treeFilterClear:s("tree-filter-clear","close"),treeItemLoading:s("tree-item-loading","loading"),menuSelection:s("menu-selection","check"),menuSubmenu:s("menu-submenu","chevron-right"),menuBarMore:s("menubar-more","more"),scrollbarButtonLeft:s("scrollbar-button-left","triangle-left"),scrollbarButtonRight:s("scrollbar-button-right","triangle-right"),scrollbarButtonUp:s("scrollbar-button-up","triangle-up"),scrollbarButtonDown:s("scrollbar-button-down","triangle-down"),toolBarMore:s("toolbar-more","more"),quickInputBack:s("quick-input-back","arrow-left"),dropDownButton:s("drop-down-button",60084),symbolCustomColor:s("symbol-customcolor",60252),exportIcon:s("export",60332),workspaceUnspecified:s("workspace-unspecified",60355),newLine:s("newline",60394),thumbsDownFilled:s("thumbsdown-filled",60435),thumbsUpFilled:s("thumbsup-filled",60436),gitFetch:s("git-fetch",60445),lightbulbSparkleAutofix:s("lightbulb-sparkle-autofix",60447),debugBreakpointPending:s("debug-breakpoint-pending",60377),chatImport:s("chat-import",60550),chatExport:s("chat-export",60551)},B={...ls,...hl};var On=class{constructor(){this._tokenizationSupports=new Map;this._factories=new Map;this._onDidChange=new oe;this.onDidChange=this._onDidChange.event;this._colorMap=null}handleChange(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,t){return this._tokenizationSupports.set(e,t),this.handleChange([e]),Re(()=>{this._tokenizationSupports.get(e)===t&&(this._tokenizationSupports.delete(e),this.handleChange([e]))})}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,t){this._factories.get(e)?.dispose();let n=new ei(this,e,t);return this._factories.set(e,n),Re(()=>{let i=this._factories.get(e);!i||i!==n||(this._factories.delete(e),i.dispose())})}async getOrCreate(e){let t=this.get(e);if(t)return t;let n=this._factories.get(e);return!n||n.isResolved?null:(await n.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;let n=this._factories.get(e);return!!(!n||n.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}},ei=class extends ge{constructor(t,n,i){super();this._registry=t;this._languageId=n;this._factory=i;this._isDisposed=!1;this._resolvePromise=null;this._isResolved=!1}get isResolved(){return this._isResolved}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){let t=await this._factory.tokenizationSupport;this._isResolved=!0,t&&!this._isDisposed&&this._register(this._registry.register(this._languageId,t))}};var Bn=class{constructor(e,t,n){this.offset=e;this.type=t;this.language=n;this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}};var bl;(o=>{let r=new Map;r.set(0,B.symbolMethod),r.set(1,B.symbolFunction),r.set(2,B.symbolConstructor),r.set(3,B.symbolField),r.set(4,B.symbolVariable),r.set(5,B.symbolClass),r.set(6,B.symbolStruct),r.set(7,B.symbolInterface),r.set(8,B.symbolModule),r.set(9,B.symbolProperty),r.set(10,B.symbolEvent),r.set(11,B.symbolOperator),r.set(12,B.symbolUnit),r.set(13,B.symbolValue),r.set(15,B.symbolEnum),r.set(14,B.symbolConstant),r.set(16,B.symbolEnumMember),r.set(17,B.symbolKeyword),r.set(28,B.symbolSnippet),r.set(18,B.symbolText),r.set(19,B.symbolColor),r.set(20,B.symbolFile),r.set(21,B.symbolReference),r.set(22,B.symbolCustomColor),r.set(23,B.symbolFolder),r.set(24,B.symbolTypeParameter),r.set(25,B.account),r.set(26,B.issues),r.set(27,B.tools);function e(a){let l=r.get(a);return l||(console.info("No codicon found for CompletionItemKind "+a),l=B.symbolProperty),l}o.toIcon=e;function t(a){switch(a){case 0:return V(907,null);case 1:return V(903,null);case 2:return V(895,null);case 3:return V(900,null);case 4:return V(920,null);case 5:return V(892,null);case 6:return V(913,null);case 7:return V(904,null);case 8:return V(908,null);case 9:return V(910,null);case 10:return V(899,null);case 11:return V(909,null);case 12:return V(917,null);case 13:return V(919,null);case 14:return V(894,null);case 15:return V(897,null);case 16:return V(898,null);case 17:return V(906,null);case 18:return V(914,null);case 19:return V(893,null);case 20:return V(901,null);case 21:return V(911,null);case 22:return V(896,null);case 23:return V(902,null);case 24:return V(916,null);case 25:return V(918,null);case 26:return V(905,null);case 27:return V(915,null);case 28:return V(912,null);default:return""}}o.toLabel=t;let n=new Map;n.set("method",0),n.set("function",1),n.set("constructor",2),n.set("field",3),n.set("variable",4),n.set("class",5),n.set("struct",6),n.set("interface",7),n.set("module",8),n.set("property",9),n.set("event",10),n.set("operator",11),n.set("unit",12),n.set("value",13),n.set("constant",14),n.set("enum",15),n.set("enum-member",16),n.set("enumMember",16),n.set("keyword",17),n.set("snippet",28),n.set("text",18),n.set("color",19),n.set("file",20),n.set("reference",21),n.set("customcolor",22),n.set("folder",23),n.set("type-parameter",24),n.set("typeParameter",24),n.set("account",25),n.set("issue",26),n.set("tool",27);function i(a,l){let u=n.get(a);return typeof u>"u"&&!l&&(u=9),u}o.fromString=i})(bl||={});var X1={17:V(868,null),16:V(869,null),4:V(870,null),13:V(871,null),8:V(872,null),9:V(873,null),21:V(874,null),23:V(875,null),7:V(876,null),0:V(877,null),11:V(878,null),10:V(879,null),19:V(880,null),5:V(881,null),1:V(882,null),2:V(883,null),20:V(884,null),15:V(885,null),18:V(886,null),24:V(887,null),3:V(888,null),6:V(889,null),14:V(890,null),22:V(891,null),25:V(922,null),12:V(923,null)};var xl;(i=>{let r=new Map;r.set(0,B.symbolFile),r.set(1,B.symbolModule),r.set(2,B.symbolNamespace),r.set(3,B.symbolPackage),r.set(4,B.symbolClass),r.set(5,B.symbolMethod),r.set(6,B.symbolProperty),r.set(7,B.symbolField),r.set(8,B.symbolConstructor),r.set(9,B.symbolEnum),r.set(10,B.symbolInterface),r.set(11,B.symbolFunction),r.set(12,B.symbolVariable),r.set(13,B.symbolConstant),r.set(14,B.symbolString),r.set(15,B.symbolNumber),r.set(16,B.symbolBoolean),r.set(17,B.symbolArray),r.set(18,B.symbolObject),r.set(19,B.symbolKey),r.set(20,B.symbolNull),r.set(21,B.symbolEnumMember),r.set(22,B.symbolStruct),r.set(23,B.symbolEvent),r.set(24,B.symbolOperator),r.set(25,B.symbolTypeParameter);function e(o){let a=r.get(o);return a||(console.info("No codicon found for SymbolKind "+o),a=B.symbolProperty),a}i.toIcon=e;let t=new Map;t.set(0,20),t.set(1,8),t.set(2,8),t.set(3,8),t.set(4,5),t.set(5,0),t.set(6,9),t.set(7,3),t.set(8,2),t.set(9,15),t.set(10,7),t.set(11,1),t.set(12,4),t.set(13,14),t.set(14,18),t.set(15,13),t.set(16,13),t.set(17,13),t.set(18,13),t.set(19,17),t.set(20,13),t.set(21,16),t.set(22,6),t.set(23,10),t.set(24,11),t.set(25,24);function n(o){let a=t.get(o);return a===void 0&&(console.info("No completion kind found for SymbolKind "+o),a=20),a}i.toCompletionKind=n})(xl||={});var us=class r{constructor(e){this.value=e}static{this.Comment=new r("comment")}static{this.Imports=new r("imports")}static{this.Region=new r("region")}static fromValue(e){switch(e){case"comment":return r.Comment;case"imports":return r.Imports;case"region":return r.Region}return new r(e)}};var yl;(e=>{function r(t){return!t||typeof t!="object"?!1:typeof t.id=="string"&&typeof t.title=="string"}e.is=r})(yl||={});var Y1=new On;var ti=(f=>(f[f.DependsOnKbLayout=-1]="DependsOnKbLayout",f[f.Unknown=0]="Unknown",f[f.Backspace=1]="Backspace",f[f.Tab=2]="Tab",f[f.Enter=3]="Enter",f[f.Shift=4]="Shift",f[f.Ctrl=5]="Ctrl",f[f.Alt=6]="Alt",f[f.PauseBreak=7]="PauseBreak",f[f.CapsLock=8]="CapsLock",f[f.Escape=9]="Escape",f[f.Space=10]="Space",f[f.PageUp=11]="PageUp",f[f.PageDown=12]="PageDown",f[f.End=13]="End",f[f.Home=14]="Home",f[f.LeftArrow=15]="LeftArrow",f[f.UpArrow=16]="UpArrow",f[f.RightArrow=17]="RightArrow",f[f.DownArrow=18]="DownArrow",f[f.Insert=19]="Insert",f[f.Delete=20]="Delete",f[f.Digit0=21]="Digit0",f[f.Digit1=22]="Digit1",f[f.Digit2=23]="Digit2",f[f.Digit3=24]="Digit3",f[f.Digit4=25]="Digit4",f[f.Digit5=26]="Digit5",f[f.Digit6=27]="Digit6",f[f.Digit7=28]="Digit7",f[f.Digit8=29]="Digit8",f[f.Digit9=30]="Digit9",f[f.KeyA=31]="KeyA",f[f.KeyB=32]="KeyB",f[f.KeyC=33]="KeyC",f[f.KeyD=34]="KeyD",f[f.KeyE=35]="KeyE",f[f.KeyF=36]="KeyF",f[f.KeyG=37]="KeyG",f[f.KeyH=38]="KeyH",f[f.KeyI=39]="KeyI",f[f.KeyJ=40]="KeyJ",f[f.KeyK=41]="KeyK",f[f.KeyL=42]="KeyL",f[f.KeyM=43]="KeyM",f[f.KeyN=44]="KeyN",f[f.KeyO=45]="KeyO",f[f.KeyP=46]="KeyP",f[f.KeyQ=47]="KeyQ",f[f.KeyR=48]="KeyR",f[f.KeyS=49]="KeyS",f[f.KeyT=50]="KeyT",f[f.KeyU=51]="KeyU",f[f.KeyV=52]="KeyV",f[f.KeyW=53]="KeyW",f[f.KeyX=54]="KeyX",f[f.KeyY=55]="KeyY",f[f.KeyZ=56]="KeyZ",f[f.Meta=57]="Meta",f[f.ContextMenu=58]="ContextMenu",f[f.F1=59]="F1",f[f.F2=60]="F2",f[f.F3=61]="F3",f[f.F4=62]="F4",f[f.F5=63]="F5",f[f.F6=64]="F6",f[f.F7=65]="F7",f[f.F8=66]="F8",f[f.F9=67]="F9",f[f.F10=68]="F10",f[f.F11=69]="F11",f[f.F12=70]="F12",f[f.F13=71]="F13",f[f.F14=72]="F14",f[f.F15=73]="F15",f[f.F16=74]="F16",f[f.F17=75]="F17",f[f.F18=76]="F18",f[f.F19=77]="F19",f[f.F20=78]="F20",f[f.F21=79]="F21",f[f.F22=80]="F22",f[f.F23=81]="F23",f[f.F24=82]="F24",f[f.NumLock=83]="NumLock",f[f.ScrollLock=84]="ScrollLock",f[f.Semicolon=85]="Semicolon",f[f.Equal=86]="Equal",f[f.Comma=87]="Comma",f[f.Minus=88]="Minus",f[f.Period=89]="Period",f[f.Slash=90]="Slash",f[f.Backquote=91]="Backquote",f[f.BracketLeft=92]="BracketLeft",f[f.Backslash=93]="Backslash",f[f.BracketRight=94]="BracketRight",f[f.Quote=95]="Quote",f[f.OEM_8=96]="OEM_8",f[f.IntlBackslash=97]="IntlBackslash",f[f.Numpad0=98]="Numpad0",f[f.Numpad1=99]="Numpad1",f[f.Numpad2=100]="Numpad2",f[f.Numpad3=101]="Numpad3",f[f.Numpad4=102]="Numpad4",f[f.Numpad5=103]="Numpad5",f[f.Numpad6=104]="Numpad6",f[f.Numpad7=105]="Numpad7",f[f.Numpad8=106]="Numpad8",f[f.Numpad9=107]="Numpad9",f[f.NumpadMultiply=108]="NumpadMultiply",f[f.NumpadAdd=109]="NumpadAdd",f[f.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",f[f.NumpadSubtract=111]="NumpadSubtract",f[f.NumpadDecimal=112]="NumpadDecimal",f[f.NumpadDivide=113]="NumpadDivide",f[f.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",f[f.ABNT_C1=115]="ABNT_C1",f[f.ABNT_C2=116]="ABNT_C2",f[f.AudioVolumeMute=117]="AudioVolumeMute",f[f.AudioVolumeUp=118]="AudioVolumeUp",f[f.AudioVolumeDown=119]="AudioVolumeDown",f[f.BrowserSearch=120]="BrowserSearch",f[f.BrowserHome=121]="BrowserHome",f[f.BrowserBack=122]="BrowserBack",f[f.BrowserForward=123]="BrowserForward",f[f.MediaTrackNext=124]="MediaTrackNext",f[f.MediaTrackPrevious=125]="MediaTrackPrevious",f[f.MediaStop=126]="MediaStop",f[f.MediaPlayPause=127]="MediaPlayPause",f[f.LaunchMediaPlayer=128]="LaunchMediaPlayer",f[f.LaunchMail=129]="LaunchMail",f[f.LaunchApp2=130]="LaunchApp2",f[f.Clear=131]="Clear",f[f.MAX_VALUE=132]="MAX_VALUE",f))(ti||{}),ni=(i=>(i[i.Hint=1]="Hint",i[i.Info=2]="Info",i[i.Warning=4]="Warning",i[i.Error=8]="Error",i))(ni||{}),ri=(t=>(t[t.Unnecessary=1]="Unnecessary",t[t.Deprecated=2]="Deprecated",t))(ri||{});var ii=(t=>(t[t.LTR=0]="LTR",t[t.RTL=1]="RTL",t))(ii||{});var oi=class{static{this.CtrlCmd=2048}static{this.Shift=1024}static{this.Alt=512}static{this.WinCtrl=256}static chord(e,t){return Yo(e,t)}};function cs(){return{editor:void 0,languages:void 0,CancellationTokenSource:vt,Emitter:oe,KeyCode:ti,KeyMod:oi,Position:W,Range:D,Selection:Fn,SelectionDirection:ii,MarkerSeverity:ni,MarkerTag:ri,Uri:ne,Token:Bn}}var Tl=60,wl=Tl*60,si=wl*24,dm=si*7,fm=si*30,pm=si*365;var Tm=new gn(10);function ms(r){if(!r||r.length===0)return!1;for(let e=0,t=r.length;e<t;e++){let n=r.charCodeAt(e);if(n===10)return!0;if(n===92){if(e++,e>=t)break;let i=r.charCodeAt(e);if(i===110||i===114||i===87)return!0}}return!1}function _l(r,e,t,n,i){if(n===0)return!0;let o=e.charCodeAt(n-1);if(r.get(o)!==0||o===13||o===10)return!0;if(i>0){let a=e.charCodeAt(n);if(r.get(a)!==0)return!0}return!1}function Rl(r,e,t,n,i){if(n+i===t)return!0;let o=e.charCodeAt(n+i);if(r.get(o)!==0||o===13||o===10)return!0;if(i>0){let a=e.charCodeAt(n+i-1);if(r.get(a)!==0)return!0}return!1}function Il(r,e,t,n,i){return _l(r,e,t,n,i)&&Rl(r,e,t,n,i)}var Vn=class{constructor(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){let t=e.length,n;do{if(this._prevMatchStartIndex+this._prevMatchLength===t||(n=this._searchRegex.exec(e),!n))return null;let i=n.index,o=n[0].length;if(i===this._prevMatchStartIndex&&o===this._prevMatchLength){if(o===0){Oo(e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=i,this._prevMatchLength=o,!this._wordSeparators||Il(this._wordSeparators,e,t,i,o))return n}while(n);return null}};var Ll="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function Sl(r=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(let t of Ll)r.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}var ai=Sl();function li(r){let e=ai;if(r&&r instanceof RegExp)if(r.global)e=r;else{let t="g";r.ignoreCase&&(t+="i"),r.multiline&&(t+="m"),r.unicode&&(t+="u"),e=new RegExp(r.source,t)}return e.lastIndex=0,e}var ds=new Wt;ds.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function tn(r,e,t,n,i){if(e=li(e),i||(i=qt.first(ds)),t.length>i.maxLen){let c=r-i.maxLen/2;return c<0?c=0:n+=c,t=t.substring(c,r+i.maxLen/2),tn(r,e,t,n,i)}let o=Date.now(),a=r-1-n,l=-1,u=null;for(let c=1;!(Date.now()-o>=i.timeBudget);c++){let d=a-i.windowSize*c;e.lastIndex=Math.max(0,d);let m=El(e,t,a,l);if(!m&&u||(u=m,d<=0))break;l=d}if(u){let c={word:u[0],startColumn:n+1+u.index,endColumn:n+1+u.index+u[0].length};return e.lastIndex=0,c}return null}function El(r,e,t,n){let i;for(;i=r.exec(e);){let o=i.index||0;if(o<=t&&r.lastIndex>=t)return i;if(n>0&&o>n)return null}return null}var qn=class{static computeUnicodeHighlights(e,t,n){let i=n?n.startLineNumber:1,o=n?n.endLineNumber:e.getLineCount(),a=new Wn(t),l=a.getCandidateCodePoints(),u;l==="allNonBasicAscii"?u=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):u=new RegExp(`${kl(Array.from(l))}`,"g");let c=new Vn(null,u),d=[],m=!1,p,g=0,x=0,y=0;e:for(let _=i,h=o;_<=h;_++){let T=e.getLineContent(_),I=T.length;c.reset(0);do if(p=c.next(T),p){let E=p.index,k=p.index+p[0].length;if(E>0){let L=T.charCodeAt(E-1);It(L)&&E--}if(k+1<I){let L=T.charCodeAt(k-1);It(L)&&k++}let A=T.substring(E,k),v=tn(E+1,ai,T,0);v&&v.endColumn<=E+1&&(v=null);let w=a.shouldHighlightNonBasicASCII(A,v?v.word:null);if(w!==0){if(w===3?g++:w===2?x++:w===1?y++:ro(w),d.length>=1e3){m=!0;break e}d.push(new D(_,E+1,_,k+1))}}while(p)}return{ranges:d,hasMore:m,ambiguousCharacterCount:g,invisibleCharacterCount:x,nonBasicAsciiCharacterCount:y}}static computeUnicodeHighlightReason(e,t){let n=new Wn(t);switch(n.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{let o=e.codePointAt(0),a=n.ambiguousCharacters.getPrimaryConfusable(o),l=Tt.getLocales().filter(u=>!Tt.getInstance(new Set([...t.allowedLocales,u])).isAmbiguous(o));return{kind:0,confusableWith:String.fromCodePoint(a),notAmbiguousInLocales:l}}case 1:return{kind:2}}}};function kl(r,e){return`[${Do(r.map(n=>String.fromCodePoint(n)).join(""))}]`}var Wn=class{constructor(e){this.options=e;this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=Tt.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";let e=new Set;if(this.options.invisibleCharacters)for(let t of wt.codePoints)fs(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(let t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(let t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){let n=e.codePointAt(0);if(this.allowedCodePoints.has(n))return 0;if(this.options.nonBasicASCII)return 1;let i=!1,o=!1;if(t)for(let a of t){let l=a.codePointAt(0),u=Bo(a);i=i||u,!u&&!this.ambiguousCharacters.isAmbiguous(l)&&!wt.isInvisibleCharacter(l)&&(o=!0)}return!i&&o?0:this.options.invisibleCharacters&&!fs(e)&&wt.isInvisibleCharacter(n)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(n)?3:0}};function fs(r){return r===" "||r===`
`||r==="	"}var De=class{constructor(e,t,n){this.changes=e;this.moves=t;this.hitTimeout=n}},St=class r{constructor(e,t){this.lineRangeMapping=e,this.changes=t}flip(){return new r(this.lineRangeMapping.flip(),this.changes.map(e=>e.flip()))}};var U=class r{constructor(e,t){this.start=e;this.endExclusive=t;if(e>t)throw new G(`Invalid range: ${this.toString()}`)}static fromTo(e,t){return new r(e,t)}static equals(e,t){return e.start===t.start&&e.endExclusive===t.endExclusive}static addRange(e,t){let n=0;for(;n<t.length&&t[n].endExclusive<e.start;)n++;let i=n;for(;i<t.length&&t[i].start<=e.endExclusive;)i++;if(n===i)t.splice(n,0,e);else{let o=Math.min(e.start,t[n].start),a=Math.max(e.endExclusive,t[i-1].endExclusive);t.splice(n,i-n,new r(o,a))}}static tryCreate(e,t){if(!(e>t))return new r(e,t)}static ofLength(e){return new r(0,e)}static ofStartAndLength(e,t){return new r(e,e+t)}static emptyAt(e){return new r(e,e)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new r(this.start+e,this.endExclusive+e)}deltaStart(e){return new r(this.start+e,this.endExclusive)}deltaEnd(e){return new r(this.start,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}equals(e){return this.start===e.start&&this.endExclusive===e.endExclusive}containsRange(e){return this.start<=e.start&&e.endExclusive<=this.endExclusive}contains(e){return this.start<=e&&e<this.endExclusive}join(e){return new r(Math.min(this.start,e.start),Math.max(this.endExclusive,e.endExclusive))}intersect(e){let t=Math.max(this.start,e.start),n=Math.min(this.endExclusive,e.endExclusive);if(t<=n)return new r(t,n)}intersectionLength(e){let t=Math.max(this.start,e.start),n=Math.min(this.endExclusive,e.endExclusive);return Math.max(0,n-t)}intersects(e){let t=Math.max(this.start,e.start),n=Math.min(this.endExclusive,e.endExclusive);return t<n}intersectsOrTouches(e){let t=Math.max(this.start,e.start),n=Math.min(this.endExclusive,e.endExclusive);return t<=n}isBefore(e){return this.endExclusive<=e.start}isAfter(e){return this.start>=e.endExclusive}slice(e){return e.slice(this.start,this.endExclusive)}substring(e){return e.substring(this.start,this.endExclusive)}clip(e){if(this.isEmpty)throw new G(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,e))}clipCyclic(e){if(this.isEmpty)throw new G(`Invalid clipping range: ${this.toString()}`);return e<this.start?this.endExclusive-(this.start-e)%this.length:e>=this.endExclusive?this.start+(e-this.start)%this.length:e}map(e){let t=[];for(let n=this.start;n<this.endExclusive;n++)t.push(e(n));return t}forEach(e){for(let t=this.start;t<this.endExclusive;t++)e(t)}joinRightTouching(e){if(this.endExclusive!==e.start)throw new G(`Invalid join: ${this.toString()} and ${e.toString()}`);return new r(this.start,e.endExclusive)}withMargin(e,t){return t===void 0&&(t=e),new r(this.start-e,this.endExclusive+t)}};var K=class r{static ofLength(e,t){return new r(e,e+t)}static fromRange(e){return new r(e.startLineNumber,e.endLineNumber)}static fromRangeInclusive(e){return new r(e.startLineNumber,e.endLineNumber+1)}static{this.compareByStart=_e(e=>e.startLineNumber,Be)}static subtract(e,t){return t?e.startLineNumber<t.startLineNumber&&t.endLineNumberExclusive<e.endLineNumberExclusive?[new r(e.startLineNumber,t.startLineNumber),new r(t.endLineNumberExclusive,e.endLineNumberExclusive)]:t.startLineNumber<=e.startLineNumber&&e.endLineNumberExclusive<=t.endLineNumberExclusive?[]:t.endLineNumberExclusive<e.endLineNumberExclusive?[new r(Math.max(t.endLineNumberExclusive,e.startLineNumber),e.endLineNumberExclusive)]:[new r(e.startLineNumber,Math.min(t.startLineNumber,e.endLineNumberExclusive))]:[e]}static joinMany(e){if(e.length===0)return[];let t=new lt(e[0].slice());for(let n=1;n<e.length;n++)t=t.getUnion(new lt(e[n].slice()));return t.ranges}static join(e){if(e.length===0)throw new G("lineRanges cannot be empty");let t=e[0].startLineNumber,n=e[0].endLineNumberExclusive;for(let i=1;i<e.length;i++)t=Math.min(t,e[i].startLineNumber),n=Math.max(n,e[i].endLineNumberExclusive);return new r(t,n)}static deserialize(e){return new r(e[0],e[1])}constructor(e,t){if(e>t)throw new G(`startLineNumber ${e} cannot be after endLineNumberExclusive ${t}`);this.startLineNumber=e,this.endLineNumberExclusive=t}contains(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}containsRange(e){return this.startLineNumber<=e.startLineNumber&&e.endLineNumberExclusive<=this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(e){return new r(this.startLineNumber+e,this.endLineNumberExclusive+e)}deltaLength(e){return new r(this.startLineNumber,this.endLineNumberExclusive+e)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(e){return new r(Math.min(this.startLineNumber,e.startLineNumber),Math.max(this.endLineNumberExclusive,e.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(e){let t=Math.max(this.startLineNumber,e.startLineNumber),n=Math.min(this.endLineNumberExclusive,e.endLineNumberExclusive);if(t<=n)return new r(t,n)}intersectsStrict(e){return this.startLineNumber<e.endLineNumberExclusive&&e.startLineNumber<this.endLineNumberExclusive}intersectsOrTouches(e){return this.startLineNumber<=e.endLineNumberExclusive&&e.startLineNumber<=this.endLineNumberExclusive}equals(e){return this.startLineNumber===e.startLineNumber&&this.endLineNumberExclusive===e.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new D(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new D(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(e){let t=[];for(let n=this.startLineNumber;n<this.endLineNumberExclusive;n++)t.push(e(n));return t}forEach(e){for(let t=this.startLineNumber;t<this.endLineNumberExclusive;t++)e(t)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}toOffsetRange(){return new U(this.startLineNumber-1,this.endLineNumberExclusive-1)}distanceToRange(e){return this.endLineNumberExclusive<=e.startLineNumber?e.startLineNumber-this.endLineNumberExclusive:e.endLineNumberExclusive<=this.startLineNumber?this.startLineNumber-e.endLineNumberExclusive:0}distanceToLine(e){return this.contains(e)?0:e<this.startLineNumber?this.startLineNumber-e:e-this.endLineNumberExclusive}addMargin(e,t){return new r(this.startLineNumber-e,this.endLineNumberExclusive+t)}},lt=class r{constructor(e=[]){this._normalizedRanges=e}get ranges(){return this._normalizedRanges}addRange(e){if(e.length===0)return;let t=Bt(this._normalizedRanges,i=>i.endLineNumberExclusive>=e.startLineNumber),n=Oe(this._normalizedRanges,i=>i.startLineNumber<=e.endLineNumberExclusive)+1;if(t===n)this._normalizedRanges.splice(t,0,e);else if(t===n-1){let i=this._normalizedRanges[t];this._normalizedRanges[t]=i.join(e)}else{let i=this._normalizedRanges[t].join(this._normalizedRanges[n-1]).join(e);this._normalizedRanges.splice(t,n-t,i)}}contains(e){let t=Fe(this._normalizedRanges,n=>n.startLineNumber<=e);return!!t&&t.endLineNumberExclusive>e}intersects(e){let t=Fe(this._normalizedRanges,n=>n.startLineNumber<e.endLineNumberExclusive);return!!t&&t.endLineNumberExclusive>e.startLineNumber}getUnion(e){if(this._normalizedRanges.length===0)return e;if(e._normalizedRanges.length===0)return this;let t=[],n=0,i=0,o=null;for(;n<this._normalizedRanges.length||i<e._normalizedRanges.length;){let a=null;if(n<this._normalizedRanges.length&&i<e._normalizedRanges.length){let l=this._normalizedRanges[n],u=e._normalizedRanges[i];l.startLineNumber<u.startLineNumber?(a=l,n++):(a=u,i++)}else n<this._normalizedRanges.length?(a=this._normalizedRanges[n],n++):(a=e._normalizedRanges[i],i++);o===null?o=a:o.endLineNumberExclusive>=a.startLineNumber?o=new K(o.startLineNumber,Math.max(o.endLineNumberExclusive,a.endLineNumberExclusive)):(t.push(o),o=a)}return o!==null&&t.push(o),new r(t)}subtractFrom(e){let t=Bt(this._normalizedRanges,a=>a.endLineNumberExclusive>=e.startLineNumber),n=Oe(this._normalizedRanges,a=>a.startLineNumber<=e.endLineNumberExclusive)+1;if(t===n)return new r([e]);let i=[],o=e.startLineNumber;for(let a=t;a<n;a++){let l=this._normalizedRanges[a];l.startLineNumber>o&&i.push(new K(o,l.startLineNumber)),o=l.endLineNumberExclusive}return o<e.endLineNumberExclusive&&i.push(new K(o,e.endLineNumberExclusive)),new r(i)}toString(){return this._normalizedRanges.map(e=>e.toString()).join(", ")}getIntersection(e){let t=[],n=0,i=0;for(;n<this._normalizedRanges.length&&i<e._normalizedRanges.length;){let o=this._normalizedRanges[n],a=e._normalizedRanges[i],l=o.intersect(a);l&&!l.isEmpty&&t.push(l),o.endLineNumberExclusive<a.endLineNumberExclusive?n++:i++}return new r(t)}getWithDelta(e){return new r(this._normalizedRanges.map(t=>t.delta(e)))}};var Se=class r{constructor(e,t){this.lineCount=e;this.columnCount=t}static{this.zero=new r(0,0)}static lengthDiffNonNegative(e,t){return t.isLessThan(e)?r.zero:e.lineCount===t.lineCount?new r(0,t.columnCount-e.columnCount):new r(t.lineCount-e.lineCount,t.columnCount)}static betweenPositions(e,t){return e.lineNumber===t.lineNumber?new r(0,t.column-e.column):new r(t.lineNumber-e.lineNumber,t.column-1)}static fromPosition(e){return new r(e.lineNumber-1,e.column-1)}static ofRange(e){return r.betweenPositions(e.getStartPosition(),e.getEndPosition())}static ofText(e){let t=0,n=0;for(let i of e)i===`
`?(t++,n=0):n++;return new r(t,n)}static ofSubstr(e,t){return r.ofText(t.substring(e))}static sum(e,t){return e.reduce((n,i)=>n.add(t(i)),r.zero)}isZero(){return this.lineCount===0&&this.columnCount===0}isLessThan(e){return this.lineCount!==e.lineCount?this.lineCount<e.lineCount:this.columnCount<e.columnCount}isGreaterThan(e){return this.lineCount!==e.lineCount?this.lineCount>e.lineCount:this.columnCount>e.columnCount}isGreaterThanOrEqualTo(e){return this.lineCount!==e.lineCount?this.lineCount>e.lineCount:this.columnCount>=e.columnCount}equals(e){return this.lineCount===e.lineCount&&this.columnCount===e.columnCount}compare(e){return this.lineCount!==e.lineCount?this.lineCount-e.lineCount:this.columnCount-e.columnCount}add(e){return e.lineCount===0?new r(this.lineCount,this.columnCount+e.columnCount):new r(this.lineCount+e.lineCount,e.columnCount)}createRange(e){return this.lineCount===0?new D(e.lineNumber,e.column,e.lineNumber,e.column+this.columnCount):new D(e.lineNumber,e.column,e.lineNumber+this.lineCount,this.columnCount+1)}toRange(){return new D(1,1,this.lineCount+1,this.columnCount+1)}toLineRange(){return K.ofLength(1,this.lineCount+1)}addToPosition(e){return this.lineCount===0?new W(e.lineNumber,e.column+this.columnCount):new W(e.lineNumber+this.lineCount,this.columnCount+1)}addToRange(e){return D.fromPositions(this.addToPosition(e.getStartPosition()),this.addToPosition(e.getEndPosition()))}toString(){return`${this.lineCount},${this.columnCount}`}};var zn=class{getOffsetRange(e){return new U(this.getOffset(e.getStartPosition()),this.getOffset(e.getEndPosition()))}getRange(e){return D.fromPositions(this.getPosition(e.start),this.getPosition(e.endExclusive))}getStringEdit(e){let t=e.replacements.map(n=>this.getStringReplacement(n));return new $e.deps.StringEdit(t)}getStringReplacement(e){return new $e.deps.StringReplacement(this.getOffsetRange(e.range),e.text)}getTextReplacement(e){return new $e.deps.TextReplacement(this.getRange(e.replaceRange),e.newText)}getTextEdit(e){let t=e.replacements.map(n=>this.getTextReplacement(n));return new $e.deps.TextEdit(t)}},$e=class{static{this._deps=void 0}static get deps(){if(!this._deps)throw new Error("Dependencies not set. Call _setDependencies first.");return this._deps}};function ps(r){$e._deps=r}var Et=class extends zn{constructor(t){super();this.text=t}get lineStartOffsetByLineIdx(){return this._lineStartOffsetByLineIdx||this._computeLineOffsets(),this._lineStartOffsetByLineIdx}get lineEndOffsetByLineIdx(){return this._lineEndOffsetByLineIdx||this._computeLineOffsets(),this._lineEndOffsetByLineIdx}_computeLineOffsets(){this._lineStartOffsetByLineIdx=[],this._lineEndOffsetByLineIdx=[],this._lineStartOffsetByLineIdx.push(0);for(let t=0;t<this.text.length;t++)this.text.charAt(t)===`
`&&(this._lineStartOffsetByLineIdx.push(t+1),t>0&&this.text.charAt(t-1)==="\r"?this._lineEndOffsetByLineIdx.push(t-1):this._lineEndOffsetByLineIdx.push(t));this._lineEndOffsetByLineIdx.push(this.text.length)}getOffset(t){let n=this._validatePosition(t);return this.lineStartOffsetByLineIdx[n.lineNumber-1]+n.column-1}_validatePosition(t){if(t.lineNumber<1)return new W(1,1);let n=this.textLength.lineCount+1;if(t.lineNumber>n){let o=this.getLineLength(n);return new W(n,o+1)}if(t.column<1)return new W(t.lineNumber,1);let i=this.getLineLength(t.lineNumber);return t.column-1>i?new W(t.lineNumber,i+1):t}getPosition(t){let n=Oe(this.lineStartOffsetByLineIdx,a=>a<=t),i=n+1,o=t-this.lineStartOffsetByLineIdx[n]+1;return new W(i,o)}getTextLength(t){return $e.deps.TextLength.ofRange(this.getRange(t))}get textLength(){let t=this.lineStartOffsetByLineIdx.length-1;return new $e.deps.TextLength(t,this.text.length-this.lineStartOffsetByLineIdx[t])}getLineLength(t){return this.lineEndOffsetByLineIdx[t-1]-this.lineStartOffsetByLineIdx[t-1]}};var Hn=class{constructor(){this._transformer=void 0}get endPositionExclusive(){return this.length.addToPosition(new W(1,1))}get lineRange(){return this.length.toLineRange()}getValue(){return this.getValueOfRange(this.length.toRange())}getValueOfOffsetRange(e){return this.getValueOfRange(this.getTransformer().getRange(e))}getLineLength(e){return this.getValueOfRange(new D(e,1,e,Number.MAX_SAFE_INTEGER)).length}getTransformer(){return this._transformer||(this._transformer=new Et(this.getValue())),this._transformer}getLineAt(e){return this.getValueOfRange(new D(e,1,e,Number.MAX_SAFE_INTEGER))}getLines(){let e=this.getValue();return Rn(e)}getLinesOfRange(e){return e.mapToLineArray(t=>this.getLineAt(t))}equals(e){return this===e?!0:this.getValue()===e.getValue()}},ui=class extends Hn{constructor(t,n){hn(n>=1);super();this._getLineContent=t;this._lineCount=n}getValueOfRange(t){if(t.startLineNumber===t.endLineNumber)return this._getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);let n=this._getLineContent(t.startLineNumber).substring(t.startColumn-1);for(let i=t.startLineNumber+1;i<t.endLineNumber;i++)n+=`
`+this._getLineContent(i);return n+=`
`+this._getLineContent(t.endLineNumber).substring(0,t.endColumn-1),n}getLineLength(t){return this._getLineContent(t).length}get length(){let t=this._getLineContent(this._lineCount);return new Se(this._lineCount-1,t.length)}},ut=class extends ui{constructor(e){super(t=>e[t-1],e.length)}},ye=class extends Hn{constructor(t){super();this.value=t;this._t=new Et(this.value)}getValueOfRange(t){return this._t.getOffsetRange(t).substring(this.value)}get length(){return this._t.textLength}getTransformer(){return this._t}};var ct=class r{constructor(e){this.replacements=e;Ve(()=>pt(e,(t,n)=>t.range.getEndPosition().isBeforeOrEqual(n.range.getStartPosition())))}static fromStringEdit(e,t){let n=e.replacements.map(i=>ue.fromStringReplacement(i,t));return new r(n)}static replace(e,t){return new r([new ue(e,t)])}static delete(e){return new r([new ue(e,"")])}static insert(e,t){return new r([new ue(D.fromPositions(e,e),t)])}static fromParallelReplacementsUnsorted(e){let t=e.slice().sort(_e(n=>n.range,D.compareRangesUsingStarts));return new r(t)}normalize(){let e=[];for(let t of this.replacements)if(e.length>0&&e[e.length-1].range.getEndPosition().equals(t.range.getStartPosition())){let n=e[e.length-1];e[e.length-1]=new ue(n.range.plusRange(t.range),n.text+t.text)}else t.isEmpty||e.push(t);return new r(e)}mapPosition(e){let t=0,n=0,i=0;for(let o of this.replacements){let a=o.range.getStartPosition();if(e.isBeforeOrEqual(a))break;let l=o.range.getEndPosition(),u=Se.ofText(o.text);if(e.isBefore(l)){let c=new W(a.lineNumber+t,a.column+(a.lineNumber+t===n?i:0)),d=u.addToPosition(c);return Kn(c,d)}a.lineNumber+t!==n&&(i=0),t+=u.lineCount-(o.range.endLineNumber-o.range.startLineNumber),u.lineCount===0?l.lineNumber!==a.lineNumber?i+=u.columnCount-(l.column-1):i+=u.columnCount-(l.column-a.column):i=u.columnCount,n=l.lineNumber+t}return new W(e.lineNumber+t,e.column+(e.lineNumber+t===n?i:0))}mapRange(e){function t(a){return a instanceof W?a:a.getStartPosition()}function n(a){return a instanceof W?a:a.getEndPosition()}let i=t(this.mapPosition(e.getStartPosition())),o=n(this.mapPosition(e.getEndPosition()));return Kn(i,o)}inverseMapPosition(e,t){return this.inverse(t).mapPosition(e)}inverseMapRange(e,t){return this.inverse(t).mapRange(e)}apply(e){let t="",n=new W(1,1);for(let o of this.replacements){let a=o.range,l=a.getStartPosition(),u=a.getEndPosition(),c=Kn(n,l);c.isEmpty()||(t+=e.getValueOfRange(c)),t+=o.text,n=u}let i=Kn(n,e.endPositionExclusive);return i.isEmpty()||(t+=e.getValueOfRange(i)),t}applyToString(e){let t=new ye(e);return this.apply(t)}inverse(e){let t=this.getNewRanges();return new r(this.replacements.map((n,i)=>new ue(t[i],e.getValueOfRange(n.range))))}getNewRanges(){let e=[],t=0,n=0,i=0;for(let o of this.replacements){let a=Se.ofText(o.text),l=W.lift({lineNumber:o.range.startLineNumber+n,column:o.range.startColumn+(o.range.startLineNumber===t?i:0)}),u=a.createRange(l);e.push(u),n=u.endLineNumber-o.range.endLineNumber,i=u.endColumn-o.range.endColumn,t=o.range.endLineNumber}return e}toReplacement(e){if(this.replacements.length===0)throw new G;if(this.replacements.length===1)return this.replacements[0];let t=this.replacements[0].range.getStartPosition(),n=this.replacements[this.replacements.length-1].range.getEndPosition(),i="";for(let o=0;o<this.replacements.length;o++){let a=this.replacements[o];if(i+=a.text,o<this.replacements.length-1){let l=this.replacements[o+1],u=D.fromPositions(a.range.getEndPosition(),l.range.getStartPosition()),c=e.getValueOfRange(u);i+=c}}return new ue(D.fromPositions(t,n),i)}equals(e){return pn(this.replacements,e.replacements,(t,n)=>t.equals(n))}compose(e){let t=this.normalize(),n=e.normalize();if(t.replacements.length===0)return n;if(n.replacements.length===0)return t;let i=[],o=0,a=1,l=1,u=0,c=0,d=0,m=0,p=null,g=0,x=0,y=!1,_=!1,h=1,T=1;function I(){if(!y)if(o<t.replacements.length){let k=t.replacements[o],A=k.range.getStartPosition();if(!(a===A.lineNumber&&l===A.column))u=a,c=l,d=A.lineNumber,m=A.column,p=null,a===A.lineNumber?(g=0,x=A.column-l):(g=A.lineNumber-a,x=A.column-1),y=!0,a=A.lineNumber,l=A.column;else{let w=k.range.getEndPosition();u=A.lineNumber,c=A.column,d=w.lineNumber,m=w.column,p=k.text;let L=0,F=0,q=k.text;for(let C=0;C<q.length;C++)q.charCodeAt(C)===10?(L++,F=0):F++;g=L,x=F,y=!0,a=w.lineNumber,l=w.column,o++}}else _=!0,u=a,c=l,y=!0}function E(k,A,v){if(A===0&&v===0)return["",k];let w=0,L=0;for(;w<A;){let F=k.indexOf(`
`,L);if(F===-1)throw new G("Text length mismatch");L=F+1,w++}return L+=v,[k.substring(0,L),k.substring(L)]}for(let k of n.replacements){let A=k.range.getStartPosition(),v=k.range.getEndPosition();for(;!(h===A.lineNumber&&T===A.column);){if(I(),_){let S,R;h===A.lineNumber?(S=0,R=A.column-T):(S=A.lineNumber-h,R=A.column-1),h=A.lineNumber,T=A.column,S===0?c+=R:(u+=S,c=R+1);break}let C,re;g===0?(C=h,re=T+x):(C=h+g,re=x+1);let pe=!1;if(A.lineNumber<C?pe=!0:A.lineNumber===C&&(pe=A.column<re),pe){let S,R;h===A.lineNumber?(S=0,R=A.column-T):(S=A.lineNumber-h,R=A.column-1);let N,P;if(S===g?(N=0,P=x-R):(N=g-S,P=x),p!==null){let[M,O]=E(p,S,R);i.push(new ue(new D(u,c,d,m),M)),p=O,g=N,x=P,u=d,c=m}else{let M,O;S===0?(M=u,O=c+R):(M=u+S,O=R+1),u=M,c=O,g=N,x=P}h=A.lineNumber,T=A.column;break}p!==null&&i.push(new ue(new D(u,c,d,m),p)),h=C,T=re,y=!1}let w=null,L=null,F=null,q=null;for(;!(h===v.lineNumber&&T===v.column);){if(I(),_){let S,R;h===v.lineNumber?(S=0,R=v.column-T):(S=v.lineNumber-h,R=v.column-1);let N,P;S===0?(N=u,P=c+R):(N=u+S,P=R+1),w===null&&(w=u,L=c),F=N,q=P,h=v.lineNumber,T=v.column,u=N,c=P;break}let C,re;g===0?(C=h,re=T+x):(C=h+g,re=x+1);let pe=!1;if(v.lineNumber<C?pe=!0:v.lineNumber===C&&(pe=v.column<re),pe){let S,R;h===v.lineNumber?(S=0,R=v.column-T):(S=v.lineNumber-h,R=v.column-1);let N,P;if(S===g?(N=0,P=x-R):(N=g-S,P=x),p!==null){w===null&&(w=u,L=c),F=d,q=m;let[,M]=E(p,S,R);p=M,g=N,x=P,u=d,c=m}else{let M,O;S===0?(M=u,O=c+R):(M=u+S,O=R+1),w===null&&(w=u,L=c),F=M,q=O,u=M,c=O,g=N,x=P}h=v.lineNumber,T=v.column;break}w===null&&(w=u,L=c),F=d,q=m,h=C,T=re,y=!1}if(w!==null)i.push(new ue(new D(w,L,F,q),k.text));else{I();let C=u,re=c;i.push(new ue(new D(C,re,C,re),k.text))}}for(;I(),!_;)p!==null&&i.push(new ue(new D(u,c,d,m),p)),y=!1;return new r(i).normalize()}toString(e){return e===void 0?this.replacements.map(t=>t.toString()).join(`
`):typeof e=="string"?this.toString(new ye(e)):this.replacements.length===0?"":this.replacements.map(t=>{let i=e.getValueOfRange(t.range),o=D.fromPositions(new W(Math.max(1,t.range.startLineNumber-1),1),t.range.getStartPosition()),a=e.getValueOfRange(o);a.length>10&&(a="..."+a.substring(a.length-10));let l=D.fromPositions(t.range.getEndPosition(),new W(t.range.endLineNumber+1,1)),u=e.getValueOfRange(l);u.length>10&&(u=u.substring(0,10)+"...");let c=i;if(c.length>10){let m=Math.floor(5);c=c.substring(0,m)+"..."+c.substring(c.length-m)}let d=t.text;if(d.length>10){let m=Math.floor(5);d=d.substring(0,m)+"..."+d.substring(d.length-m)}return c.length===0?`${a}\u2770${d}\u2771${u}`:`${a}\u2770${c}\u21A6${d}\u2771${u}`}).join(`
`)}},ue=class r{constructor(e,t){this.range=e;this.text=t}static joinReplacements(e,t){if(e.length===0)throw new G;if(e.length===1)return e[0];let n=e[0].range.getStartPosition(),i=e[e.length-1].range.getEndPosition(),o="";for(let a=0;a<e.length;a++){let l=e[a];if(o+=l.text,a<e.length-1){let u=e[a+1],c=D.fromPositions(l.range.getEndPosition(),u.range.getStartPosition()),d=t.getValueOfRange(c);o+=d}}return new r(D.fromPositions(n,i),o)}static fromStringReplacement(e,t){return new r(t.getTransformer().getRange(e.replaceRange),e.newText)}static delete(e){return new r(e,"")}get isEmpty(){return this.range.isEmpty()&&this.text.length===0}static equals(e,t){return e.range.equalsRange(t.range)&&e.text===t.text}toSingleEditOperation(){return{range:this.range,text:this.text}}toEdit(){return new ct([this])}equals(e){return r.equals(this,e)}extendToCoverRange(e,t){if(this.range.containsRange(e))return this;let n=this.range.plusRange(e),i=t.getValueOfRange(D.fromPositions(n.getStartPosition(),this.range.getStartPosition())),o=t.getValueOfRange(D.fromPositions(this.range.getEndPosition(),n.getEndPosition())),a=i+this.text+o;return new r(n,a)}extendToFullLine(e){let t=new D(this.range.startLineNumber,1,this.range.endLineNumber,e.getTransformer().getLineLength(this.range.endLineNumber)+1);return this.extendToCoverRange(t,e)}removeCommonPrefixAndSuffix(e){return this.removeCommonPrefix(e).removeCommonSuffix(e)}removeCommonPrefix(e){let t=e.getValueOfRange(this.range).replaceAll(`\r
`,`
`),n=this.text.replaceAll(`\r
`,`
`),i=_t(t,n),o=Se.ofText(t.substring(0,i)).addToPosition(this.range.getStartPosition()),a=n.substring(i),l=D.fromPositions(o,this.range.getEndPosition());return new r(l,a)}removeCommonSuffix(e){let t=e.getValueOfRange(this.range).replaceAll(`\r
`,`
`),n=this.text.replaceAll(`\r
`,`
`),i=Rt(t,n),o=Se.ofText(t.substring(0,t.length-i)).addToPosition(this.range.getStartPosition()),a=n.substring(0,n.length-i),l=D.fromPositions(this.range.getStartPosition(),o);return new r(l,a)}isEffectiveDeletion(e){let t=this.text.replaceAll(`\r
`,`
`),n=e.getValueOfRange(this.range).replaceAll(`\r
`,`
`),i=_t(t,n);t=t.substring(i),n=n.substring(i);let o=Rt(t,n);return t=t.substring(0,t.length-o),n=n.substring(0,n.length-o),t===""}toString(){let e=this.range.getStartPosition(),t=this.range.getEndPosition();return`(${e.lineNumber},${e.column} -> ${t.lineNumber},${t.column}): "${this.text}"`}};function Kn(r,e){if(r.lineNumber===e.lineNumber&&r.column===Number.MAX_SAFE_INTEGER)return D.fromPositions(e,e);if(!r.isBeforeOrEqual(e))throw new G("start must be before end");return new D(r.lineNumber,r.column,e.lineNumber,e.column)}var we=class r{static inverse(e,t,n){let i=[],o=1,a=1;for(let u of e){let c=new r(new K(o,u.original.startLineNumber),new K(a,u.modified.startLineNumber));c.modified.isEmpty||i.push(c),o=u.original.endLineNumberExclusive,a=u.modified.endLineNumberExclusive}let l=new r(new K(o,t+1),new K(a,n+1));return l.modified.isEmpty||i.push(l),i}static clip(e,t,n){let i=[];for(let o of e){let a=o.original.intersect(t),l=o.modified.intersect(n);a&&!a.isEmpty&&l&&!l.isEmpty&&i.push(new r(a,l))}return i}constructor(e,t){this.original=e,this.modified=t}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new r(this.modified,this.original)}join(e){return new r(this.original.join(e.original),this.modified.join(e.modified))}get changedLineCount(){return Math.max(this.original.length,this.modified.length)}toRangeMapping(){let e=this.original.toInclusiveRange(),t=this.modified.toInclusiveRange();if(e&&t)return new de(e,t);if(this.original.startLineNumber===1||this.modified.startLineNumber===1){if(!(this.modified.startLineNumber===1&&this.original.startLineNumber===1))throw new G("not a valid diff");return new de(new D(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new D(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}else return new de(new D(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new D(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}toRangeMapping2(e,t){if(gs(this.original.endLineNumberExclusive,e)&&gs(this.modified.endLineNumberExclusive,t))return new de(new D(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new D(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1));if(!this.original.isEmpty&&!this.modified.isEmpty)return new de(D.fromPositions(new W(this.original.startLineNumber,1),kt(new W(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),D.fromPositions(new W(this.modified.startLineNumber,1),kt(new W(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)));if(this.original.startLineNumber>1&&this.modified.startLineNumber>1)return new de(D.fromPositions(kt(new W(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER),e),kt(new W(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),D.fromPositions(kt(new W(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER),t),kt(new W(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)));throw new G}};function kt(r,e){if(r.lineNumber<1)return new W(1,1);if(r.lineNumber>e.length)return new W(e.length,e[e.length-1].length+1);let t=e[r.lineNumber-1];return r.column>t.length+1?new W(r.lineNumber,t.length+1):r}function gs(r,e){return r>=1&&r<=e.length}var Ee=class r extends we{static toTextEdit(e,t){let n=[];for(let i of e)for(let o of i.innerChanges??[]){let a=o.toTextEdit(t);n.push(a)}return new ct(n)}static fromRangeMappings(e){let t=K.join(e.map(i=>K.fromRangeInclusive(i.originalRange))),n=K.join(e.map(i=>K.fromRangeInclusive(i.modifiedRange)));return new r(t,n,e)}constructor(e,t,n){super(e,t),this.innerChanges=n}flip(){return new r(this.modified,this.original,this.innerChanges?.map(e=>e.flip()))}withInnerChangesFromLineRanges(){return new r(this.original,this.modified,[this.toRangeMapping()])}},de=class r{static fromEdit(e){let t=e.getNewRanges();return e.replacements.map((i,o)=>new r(i.range,t[o]))}static fromEditJoin(e){let t=e.getNewRanges(),n=e.replacements.map((i,o)=>new r(i.range,t[o]));return r.join(n)}static join(e){if(e.length===0)throw new G("Cannot join an empty list of range mappings");let t=e[0];for(let n=1;n<e.length;n++)t=t.join(e[n]);return t}static assertSorted(e){for(let t=1;t<e.length;t++){let n=e[t-1],i=e[t];if(!(n.originalRange.getEndPosition().isBeforeOrEqual(i.originalRange.getStartPosition())&&n.modifiedRange.getEndPosition().isBeforeOrEqual(i.modifiedRange.getStartPosition())))throw new G("Range mappings must be sorted")}}constructor(e,t){this.originalRange=e,this.modifiedRange=t}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new r(this.modifiedRange,this.originalRange)}toTextEdit(e){let t=e.getValueOfRange(this.modifiedRange);return new ue(this.originalRange,t)}join(e){return new r(this.originalRange.plusRange(e.originalRange),this.modifiedRange.plusRange(e.modifiedRange))}};function nn(r,e,t,n=!1){let i=[];for(let o of ji(r.map(a=>Nl(a,e,t)),(a,l)=>a.original.intersectsOrTouches(l.original)||a.modified.intersectsOrTouches(l.modified))){let a=o[0],l=o[o.length-1];i.push(new Ee(a.original.join(l.original),a.modified.join(l.modified),o.map(u=>u.innerChanges[0])))}return Ve(()=>!n&&i.length>0&&(i[0].modified.startLineNumber!==i[0].original.startLineNumber||t.length.lineCount-i[i.length-1].modified.endLineNumberExclusive!==e.length.lineCount-i[i.length-1].original.endLineNumberExclusive)?!1:pt(i,(o,a)=>a.original.startLineNumber-o.original.endLineNumberExclusive===a.modified.startLineNumber-o.modified.endLineNumberExclusive&&o.original.endLineNumberExclusive<a.original.startLineNumber&&o.modified.endLineNumberExclusive<a.modified.startLineNumber)),i}function Nl(r,e,t){let n=0,i=0;r.modifiedRange.endColumn===1&&r.originalRange.endColumn===1&&r.originalRange.startLineNumber+n<=r.originalRange.endLineNumber&&r.modifiedRange.startLineNumber+n<=r.modifiedRange.endLineNumber&&(i=-1),r.modifiedRange.startColumn-1>=t.getLineLength(r.modifiedRange.startLineNumber)&&r.originalRange.startColumn-1>=e.getLineLength(r.originalRange.startLineNumber)&&r.originalRange.startLineNumber<=r.originalRange.endLineNumber+i&&r.modifiedRange.startLineNumber<=r.modifiedRange.endLineNumber+i&&(n=1);let o=new K(r.originalRange.startLineNumber+n,r.originalRange.endLineNumber+1+i),a=new K(r.modifiedRange.startLineNumber+n,r.modifiedRange.endLineNumber+1+i);return new Ee(o,a,[r])}var Al=3,jn=class{computeDiff(e,t,n){let o=new on(e,t,{maxComputationTime:n.maxComputationTimeMs,shouldIgnoreTrimWhitespace:n.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),a=[],l=null;for(let u of o.changes){let c;u.originalEndLineNumber===0?c=new K(u.originalStartLineNumber+1,u.originalStartLineNumber+1):c=new K(u.originalStartLineNumber,u.originalEndLineNumber+1);let d;u.modifiedEndLineNumber===0?d=new K(u.modifiedStartLineNumber+1,u.modifiedStartLineNumber+1):d=new K(u.modifiedStartLineNumber,u.modifiedEndLineNumber+1);let m=new Ee(c,d,u.charChanges?.map(p=>new de(new D(p.originalStartLineNumber,p.originalStartColumn,p.originalEndLineNumber,p.originalEndColumn),new D(p.modifiedStartLineNumber,p.modifiedStartColumn,p.modifiedEndLineNumber,p.modifiedEndColumn))));l&&(l.modified.endLineNumberExclusive===m.modified.startLineNumber||l.original.endLineNumberExclusive===m.original.startLineNumber)&&(m=new Ee(l.original.join(m.original),l.modified.join(m.modified),l.innerChanges&&m.innerChanges?l.innerChanges.concat(m.innerChanges):void 0),a.pop()),a.push(m),l=m}return Ve(()=>pt(a,(u,c)=>c.original.startLineNumber-u.original.endLineNumberExclusive===c.modified.startLineNumber-u.modified.endLineNumberExclusive&&u.original.endLineNumberExclusive<c.original.startLineNumber&&u.modified.endLineNumberExclusive<c.modified.startLineNumber)),new De(a,[],o.quitEarly)}};function bs(r,e,t,n){return new Qt(r,e,t).ComputeDiff(n)}var $n=class{constructor(e){let t=[],n=[];for(let i=0,o=e.length;i<o;i++)t[i]=mi(e[i],1),n[i]=di(e[i],1);this.lines=e,this._startColumns=t,this._endColumns=n}getElements(){let 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){let i=[],o=[],a=[],l=0;for(let u=t;u<=n;u++){let c=this.lines[u],d=e?this._startColumns[u]:1,m=e?this._endColumns[u]:c.length+1;for(let p=d;p<m;p++)i[l]=c.charCodeAt(p-1),o[l]=u+1,a[l]=p,l++;!e&&u<n&&(i[l]=10,o[l]=u+1,a[l]=c.length+1,l++)}return new ci(i,o,a)}},ci=class{constructor(e,t,n){this._charCodes=e,this._lineNumbers=t,this._columns=n}toString(){return"["+this._charCodes.map((e,t)=>(e===10?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[t]},${this._columns[t]})`).join(", ")+"]"}_assertIndex(e,t){if(e<0||e>=t.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}getEndLineNumber(e){return e===-1?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),this._charCodes[e]===10?this._lineNumbers[e]+1:this._lineNumbers[e])}getStartColumn(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}getEndColumn(e){return e===-1?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),this._charCodes[e]===10?1:this._columns[e]+1)}},Nt=class r{constructor(e,t,n,i,o,a,l,u){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=n,this.originalEndColumn=i,this.modifiedStartLineNumber=o,this.modifiedStartColumn=a,this.modifiedEndLineNumber=l,this.modifiedEndColumn=u}static createFromDiffChange(e,t,n){let i=t.getStartLineNumber(e.originalStart),o=t.getStartColumn(e.originalStart),a=t.getEndLineNumber(e.originalStart+e.originalLength-1),l=t.getEndColumn(e.originalStart+e.originalLength-1),u=n.getStartLineNumber(e.modifiedStart),c=n.getStartColumn(e.modifiedStart),d=n.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),m=n.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new r(i,o,a,l,u,c,d,m)}};function Dl(r){if(r.length<=1)return r;let e=[r[0]],t=e[0];for(let n=1,i=r.length;n<i;n++){let o=r[n],a=o.originalStart-(t.originalStart+t.originalLength),l=o.modifiedStart-(t.modifiedStart+t.modifiedLength);Math.min(a,l)<Al?(t.originalLength=o.originalStart+o.originalLength-t.originalStart,t.modifiedLength=o.modifiedStart+o.modifiedLength-t.modifiedStart):(e.push(o),t=o)}return e}var rn=class r{constructor(e,t,n,i,o){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=n,this.modifiedEndLineNumber=i,this.charChanges=o}static createFromDiffResult(e,t,n,i,o,a,l){let u,c,d,m,p;if(t.originalLength===0?(u=n.getStartLineNumber(t.originalStart)-1,c=0):(u=n.getStartLineNumber(t.originalStart),c=n.getEndLineNumber(t.originalStart+t.originalLength-1)),t.modifiedLength===0?(d=i.getStartLineNumber(t.modifiedStart)-1,m=0):(d=i.getStartLineNumber(t.modifiedStart),m=i.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),a&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&o()){let g=n.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),x=i.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);if(g.getElements().length>0&&x.getElements().length>0){let y=bs(g,x,o,!0).changes;l&&(y=Dl(y)),p=[];for(let _=0,h=y.length;_<h;_++)p.push(Nt.createFromDiffChange(y[_],g,x))}}return new r(u,c,d,m,p)}},on=class{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 $n(e),this.modified=new $n(t),this.continueLineDiff=hs(n.maxComputationTime),this.continueCharDiff=hs(n.maxComputationTime===0?0:Math.min(n.maxComputationTime,5e3))}computeDiff(){if(this.original.lines.length===1&&this.original.lines[0].length===0)return this.modified.lines.length===1&&this.modified.lines[0].length===0?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(this.modified.lines.length===1&&this.modified.lines[0].length===0)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};let e=bs(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes,n=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){let l=[];for(let u=0,c=t.length;u<c;u++)l.push(rn.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[u],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:n,changes:l}}let i=[],o=0,a=0;for(let l=-1,u=t.length;l<u;l++){let c=l+1<u?t[l+1]:null,d=c?c.originalStart:this.originalLines.length,m=c?c.modifiedStart:this.modifiedLines.length;for(;o<d&&a<m;){let p=this.originalLines[o],g=this.modifiedLines[a];if(p!==g){{let x=mi(p,1),y=mi(g,1);for(;x>1&&y>1;){let _=p.charCodeAt(x-2),h=g.charCodeAt(y-2);if(_!==h)break;x--,y--}(x>1||y>1)&&this._pushTrimWhitespaceCharChange(i,o+1,1,x,a+1,1,y)}{let x=di(p,1),y=di(g,1),_=p.length+1,h=g.length+1;for(;x<_&&y<h;){let T=p.charCodeAt(x-1),I=p.charCodeAt(y-1);if(T!==I)break;x++,y++}(x<_||y<h)&&this._pushTrimWhitespaceCharChange(i,o+1,x,_,a+1,y,h)}}o++,a++}c&&(i.push(rn.createFromDiffResult(this.shouldIgnoreTrimWhitespace,c,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),o+=c.originalLength,a+=c.modifiedLength)}return{quitEarly:n,changes:i}}_pushTrimWhitespaceCharChange(e,t,n,i,o,a,l){if(this._mergeTrimWhitespaceCharChange(e,t,n,i,o,a,l))return;let u;this.shouldComputeCharChanges&&(u=[new Nt(t,n,t,i,o,a,o,l)]),e.push(new rn(t,t,o,o,u))}_mergeTrimWhitespaceCharChange(e,t,n,i,o,a,l){let u=e.length;if(u===0)return!1;let c=e[u-1];return c.originalEndLineNumber===0||c.modifiedEndLineNumber===0?!1:c.originalEndLineNumber===t&&c.modifiedEndLineNumber===o?(this.shouldComputeCharChanges&&c.charChanges&&c.charChanges.push(new Nt(t,n,t,i,o,a,o,l)),!0):c.originalEndLineNumber+1===t&&c.modifiedEndLineNumber+1===o?(c.originalEndLineNumber=t,c.modifiedEndLineNumber=o,this.shouldComputeCharChanges&&c.charChanges&&c.charChanges.push(new Nt(t,n,t,i,o,a,o,l)),!0):!1}};function mi(r,e){let t=Mo(r);return t===-1?e:t+1}function di(r,e){let t=Co(r);return t===-1?e:t+2}function hs(r){if(r===0)return()=>!0;let e=Date.now();return()=>Date.now()-e<r}var Me=class r{constructor(e,t){this.diffs=e;this.hitTimeout=t}static trivial(e,t){return new r([new J(U.ofLength(e.length),U.ofLength(t.length))],!1)}static trivialTimedOut(e,t){return new r([new J(U.ofLength(e.length),U.ofLength(t.length))],!0)}},J=class r{constructor(e,t){this.seq1Range=e;this.seq2Range=t}static invert(e,t){let n=[];return $i(e,(i,o)=>{n.push(r.fromOffsetPairs(i?i.getEndExclusives():Pe.zero,o?o.getStarts():new Pe(t,(i?i.seq2Range.endExclusive-i.seq1Range.endExclusive:0)+t)))}),n}static fromOffsetPairs(e,t){return new r(new U(e.offset1,t.offset1),new U(e.offset2,t.offset2))}static assertSorted(e){let t;for(let n of e){if(t&&!(t.seq1Range.endExclusive<=n.seq1Range.start&&t.seq2Range.endExclusive<=n.seq2Range.start))throw new G("Sequence diffs must be sorted");t=n}}swap(){return new r(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(e){return new r(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return e===0?this:new r(this.seq1Range.delta(e),this.seq2Range.delta(e))}deltaStart(e){return e===0?this:new r(this.seq1Range.deltaStart(e),this.seq2Range.deltaStart(e))}deltaEnd(e){return e===0?this:new r(this.seq1Range.deltaEnd(e),this.seq2Range.deltaEnd(e))}intersectsOrTouches(e){return this.seq1Range.intersectsOrTouches(e.seq1Range)||this.seq2Range.intersectsOrTouches(e.seq2Range)}intersect(e){let t=this.seq1Range.intersect(e.seq1Range),n=this.seq2Range.intersect(e.seq2Range);if(!(!t||!n))return new r(t,n)}getStarts(){return new Pe(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new Pe(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}},Pe=class r{constructor(e,t){this.offset1=e;this.offset2=t}static{this.zero=new r(0,0)}static{this.max=new r(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER)}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(e){return e===0?this:new r(this.offset1+e,this.offset2+e)}equals(e){return this.offset1===e.offset1&&this.offset2===e.offset2}},Ze=class r{static{this.instance=new r}isValid(){return!0}},Gn=class{constructor(e){this.timeout=e;this.startTime=Date.now();this.valid=!0;if(e<=0)throw new G("timeout must be positive")}isValid(){return!(Date.now()-this.startTime<this.timeout)&&this.valid&&(this.valid=!1),this.valid}disable(){this.timeout=Number.MAX_SAFE_INTEGER,this.isValid=()=>!0,this.valid=!0}};var At=class{constructor(e,t){this.width=e;this.height=t;this.array=[];this.array=new Array(e*t)}get(e,t){return this.array[e+t*this.width]}set(e,t,n){this.array[e+t*this.width]=n}};function an(r){return r===32||r===9}var sn=class r{constructor(e,t,n){this.range=e;this.lines=t;this.source=n;this.histogram=[];let i=0;for(let o=e.startLineNumber-1;o<e.endLineNumberExclusive-1;o++){let a=t[o];for(let u=0;u<a.length;u++){i++;let c=a[u],d=r.getKey(c);this.histogram[d]=(this.histogram[d]||0)+1}i++;let l=r.getKey(`
`);this.histogram[l]=(this.histogram[l]||0)+1}this.totalCount=i}static{this.chrKeys=new Map}static getKey(e){let t=this.chrKeys.get(e);return t===void 0&&(t=this.chrKeys.size,this.chrKeys.set(e,t)),t}computeSimilarity(e){let t=0,n=Math.max(this.histogram.length,e.histogram.length);for(let i=0;i<n;i++)t+=Math.abs((this.histogram[i]??0)-(e.histogram[i]??0));return 1-t/(this.totalCount+e.totalCount)}};var Qn=class{compute(e,t,n=Ze.instance,i){if(e.length===0||t.length===0)return Me.trivial(e,t);let o=new At(e.length,t.length),a=new At(e.length,t.length),l=new At(e.length,t.length);for(let x=0;x<e.length;x++)for(let y=0;y<t.length;y++){if(!n.isValid())return Me.trivialTimedOut(e,t);let _=x===0?0:o.get(x-1,y),h=y===0?0:o.get(x,y-1),T;e.getElement(x)===t.getElement(y)?(x===0||y===0?T=0:T=o.get(x-1,y-1),x>0&&y>0&&a.get(x-1,y-1)===3&&(T+=l.get(x-1,y-1)),T+=i?i(x,y):1):T=-1;let I=Math.max(_,h,T);if(I===T){let E=x>0&&y>0?l.get(x-1,y-1):0;l.set(x,y,E+1),a.set(x,y,3)}else I===_?(l.set(x,y,0),a.set(x,y,1)):I===h&&(l.set(x,y,0),a.set(x,y,2));o.set(x,y,I)}let u=[],c=e.length,d=t.length;function m(x,y){(x+1!==c||y+1!==d)&&u.push(new J(new U(x+1,c),new U(y+1,d))),c=x,d=y}let p=e.length-1,g=t.length-1;for(;p>=0&&g>=0;)a.get(p,g)===3?(m(p,g),p--,g--):a.get(p,g)===1?p--:g--;return m(-1,-1),u.reverse(),new Me(u,!1)}};var Dt=class{compute(e,t,n=Ze.instance){if(e.length===0||t.length===0)return Me.trivial(e,t);let i=e,o=t;function a(y,_){for(;y<i.length&&_<o.length&&i.getElement(y)===o.getElement(_);)y++,_++;return y}let l=0,u=new fi;u.set(0,a(0,0));let c=new pi;c.set(0,u.get(0)===0?null:new Xn(null,0,0,u.get(0)));let d=0;e:for(;;){if(l++,!n.isValid())return Me.trivialTimedOut(i,o);let y=-Math.min(l,o.length+l%2),_=Math.min(l,i.length+l%2);for(d=y;d<=_;d+=2){let h=0,T=d===_?-1:u.get(d+1),I=d===y?-1:u.get(d-1)+1;h++;let E=Math.min(Math.max(T,I),i.length),k=E-d;if(h++,E>i.length||k>o.length)continue;let A=a(E,k);u.set(d,A);let v=E===T?c.get(d+1):c.get(d-1);if(c.set(d,A!==E?new Xn(v,E,k,A-E):v),u.get(d)===i.length&&u.get(d)-d===o.length)break e}}let m=c.get(d),p=[],g=i.length,x=o.length;for(;;){let y=m?m.x+m.length:0,_=m?m.y+m.length:0;if((y!==g||_!==x)&&p.push(new J(new U(y,g),new U(_,x))),!m)break;g=m.x,x=m.y,m=m.prev}return p.reverse(),new Me(p,!1)}},Xn=class{constructor(e,t,n,i){this.prev=e;this.x=t;this.y=n;this.length=i}},fi=class{constructor(){this.positiveArr=new Int32Array(10);this.negativeArr=new Int32Array(10)}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){if(e<0){if(e=-e-1,e>=this.negativeArr.length){let n=this.negativeArr;this.negativeArr=new Int32Array(n.length*2),this.negativeArr.set(n)}this.negativeArr[e]=t}else{if(e>=this.positiveArr.length){let n=this.positiveArr;this.positiveArr=new Int32Array(n.length*2),this.positiveArr.set(n)}this.positiveArr[e]=t}}},pi=class{constructor(){this.positiveArr=[];this.negativeArr=[]}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){e<0?(e=-e-1,this.negativeArr[e]=t):this.positiveArr[e]=t}};var et=class{constructor(e,t,n){this.lines=e;this.range=t;this.considerWhitespaceChanges=n;this.elements=[];this.firstElementOffsetByLineIdx=[];this.lineStartOffsets=[];this.trimmedWsLengthsByLineIdx=[];this.firstElementOffsetByLineIdx.push(0);for(let i=this.range.startLineNumber;i<=this.range.endLineNumber;i++){let o=e[i-1],a=0;i===this.range.startLineNumber&&this.range.startColumn>1&&(a=this.range.startColumn-1,o=o.substring(a)),this.lineStartOffsets.push(a);let l=0;if(!n){let c=o.trimStart();l=o.length-c.length,o=c.trimEnd()}this.trimmedWsLengthsByLineIdx.push(l);let u=i===this.range.endLineNumber?Math.min(this.range.endColumn-1-a-l,o.length):o.length;for(let c=0;c<u;c++)this.elements.push(o.charCodeAt(c));i<this.range.endLineNumber&&(this.elements.push(10),this.firstElementOffsetByLineIdx.push(this.elements.length))}}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new U(0,this.length))}getText(e){return this.elements.slice(e.start,e.endExclusive).map(t=>String.fromCharCode(t)).join("")}getElement(e){return this.elements[e]}get length(){return this.elements.length}getBoundaryScore(e){let t=vs(e>0?this.elements[e-1]:-1),n=vs(e<this.elements.length?this.elements[e]:-1);if(t===7&&n===8)return 0;if(t===8)return 150;let i=0;return t!==n&&(i+=10,t===0&&n===1&&(i+=1)),i+=ys(t),i+=ys(n),i}translateOffset(e,t="right"){let n=Oe(this.firstElementOffsetByLineIdx,o=>o<=e),i=e-this.firstElementOffsetByLineIdx[n];return new W(this.range.startLineNumber+n,1+this.lineStartOffsets[n]+i+(i===0&&t==="left"?0:this.trimmedWsLengthsByLineIdx[n]))}translateRange(e){let t=this.translateOffset(e.start,"right"),n=this.translateOffset(e.endExclusive,"left");return n.isBefore(t)?D.fromPositions(n,n):D.fromPositions(t,n)}findWordContaining(e){if(e<0||e>=this.elements.length||!Pt(this.elements[e]))return;let t=e;for(;t>0&&Pt(this.elements[t-1]);)t--;let n=e;for(;n<this.elements.length&&Pt(this.elements[n]);)n++;return new U(t,n)}findSubWordContaining(e){if(e<0||e>=this.elements.length||!Pt(this.elements[e]))return;let t=e;for(;t>0&&Pt(this.elements[t-1])&&!xs(this.elements[t]);)t--;let n=e;for(;n<this.elements.length&&Pt(this.elements[n])&&!xs(this.elements[n]);)n++;return new U(t,n)}countLinesIn(e){return this.translateOffset(e.endExclusive).lineNumber-this.translateOffset(e.start).lineNumber}isStronglyEqual(e,t){return this.elements[e]===this.elements[t]}extendToFullLines(e){let t=Fe(this.firstElementOffsetByLineIdx,i=>i<=e.start)??0,n=Hi(this.firstElementOffsetByLineIdx,i=>e.endExclusive<=i)??this.elements.length;return new U(t,n)}};function Pt(r){return r>=97&&r<=122||r>=65&&r<=90||r>=48&&r<=57}function xs(r){return r>=65&&r<=90}var Pl={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function ys(r){return Pl[r]}function vs(r){return r===10?8:r===13?7:an(r)?6:r>=97&&r<=122?0:r>=65&&r<=90?1:r>=48&&r<=57?2:r===-1?3:r===44||r===59?5:4}function ws(r,e,t,n,i,o){let{moves:a,excludedChanges:l}=Cl(r,e,t,o);if(!o.isValid())return[];let u=r.filter(d=>!l.has(d)),c=Ul(u,n,i,e,t,o);return Qi(a,c),a=Fl(a),a=a.filter(d=>{let m=d.original.toOffsetRange().slice(e).map(g=>g.trim());return m.join(`
`).length>=15&&Ml(m,g=>g.length>=2)>=2}),a=Ol(r,a),a}function Ml(r,e){let t=0;for(let n of r)e(n)&&t++;return t}function Cl(r,e,t,n){let i=[],o=r.filter(u=>u.modified.isEmpty&&u.original.length>=3).map(u=>new sn(u.original,e,u)),a=new Set(r.filter(u=>u.original.isEmpty&&u.modified.length>=3).map(u=>new sn(u.modified,t,u))),l=new Set;for(let u of o){let c=-1,d;for(let m of a){let p=u.computeSimilarity(m);p>c&&(c=p,d=m)}if(c>.9&&d&&(a.delete(d),i.push(new we(u.range,d.range)),l.add(u.source),l.add(d.source)),!n.isValid())return{moves:i,excludedChanges:l}}return{moves:i,excludedChanges:l}}function Ul(r,e,t,n,i,o){let a=[],l=new ft;for(let p of r)for(let g=p.original.startLineNumber;g<p.original.endLineNumberExclusive-2;g++){let x=`${e[g-1]}:${e[g+1-1]}:${e[g+2-1]}`;l.add(x,{range:new K(g,g+3)})}let u=[];r.sort(_e(p=>p.modified.startLineNumber,Be));for(let p of r){let g=[];for(let x=p.modified.startLineNumber;x<p.modified.endLineNumberExclusive-2;x++){let y=`${t[x-1]}:${t[x+1-1]}:${t[x+2-1]}`,_=new K(x,x+3),h=[];l.forEach(y,({range:T})=>{for(let E of g)if(E.originalLineRange.endLineNumberExclusive+1===T.endLineNumberExclusive&&E.modifiedLineRange.endLineNumberExclusive+1===_.endLineNumberExclusive){E.originalLineRange=new K(E.originalLineRange.startLineNumber,T.endLineNumberExclusive),E.modifiedLineRange=new K(E.modifiedLineRange.startLineNumber,_.endLineNumberExclusive),h.push(E);return}let I={modifiedLineRange:_,originalLineRange:T};u.push(I),h.push(I)}),g=h}if(!o.isValid())return[]}u.sort(Yi(_e(p=>p.modifiedLineRange.length,Be)));let c=new lt,d=new lt;for(let p of u){let g=p.modifiedLineRange.startLineNumber-p.originalLineRange.startLineNumber,x=c.subtractFrom(p.modifiedLineRange),y=d.subtractFrom(p.originalLineRange).getWithDelta(g),_=x.getIntersection(y);for(let h of _.ranges){if(h.length<3)continue;let T=h,I=h.delta(-g);a.push(new we(I,T)),c.addRange(T),d.addRange(I)}}a.sort(_e(p=>p.original.startLineNumber,Be));let m=new Ot(r);for(let p=0;p<a.length;p++){let g=a[p],x=m.findLastMonotonous(A=>A.original.startLineNumber<=g.original.startLineNumber),y=Fe(r,A=>A.modified.startLineNumber<=g.modified.startLineNumber),_=Math.max(g.original.startLineNumber-x.original.startLineNumber,g.modified.startLineNumber-y.modified.startLineNumber),h=m.findLastMonotonous(A=>A.original.startLineNumber<g.original.endLineNumberExclusive),T=Fe(r,A=>A.modified.startLineNumber<g.modified.endLineNumberExclusive),I=Math.max(h.original.endLineNumberExclusive-g.original.endLineNumberExclusive,T.modified.endLineNumberExclusive-g.modified.endLineNumberExclusive),E;for(E=0;E<_;E++){let A=g.original.startLineNumber-E-1,v=g.modified.startLineNumber-E-1;if(A>n.length||v>i.length||c.contains(v)||d.contains(A)||!Ts(n[A-1],i[v-1],o))break}E>0&&(d.addRange(new K(g.original.startLineNumber-E,g.original.startLineNumber)),c.addRange(new K(g.modified.startLineNumber-E,g.modified.startLineNumber)));let k;for(k=0;k<I;k++){let A=g.original.endLineNumberExclusive+k,v=g.modified.endLineNumberExclusive+k;if(A>n.length||v>i.length||c.contains(v)||d.contains(A)||!Ts(n[A-1],i[v-1],o))break}k>0&&(d.addRange(new K(g.original.endLineNumberExclusive,g.original.endLineNumberExclusive+k)),c.addRange(new K(g.modified.endLineNumberExclusive,g.modified.endLineNumberExclusive+k))),(E>0||k>0)&&(a[p]=new we(new K(g.original.startLineNumber-E,g.original.endLineNumberExclusive+k),new K(g.modified.startLineNumber-E,g.modified.endLineNumberExclusive+k)))}return a}function Ts(r,e,t){if(r.trim()===e.trim())return!0;if(r.length>300&&e.length>300)return!1;let i=new Dt().compute(new et([r],new D(1,1,1,r.length),!1),new et([e],new D(1,1,1,e.length),!1),t),o=0,a=J.invert(i.diffs,r.length);for(let d of a)d.seq1Range.forEach(m=>{an(r.charCodeAt(m))||o++});function l(d){let m=0;for(let p=0;p<r.length;p++)an(d.charCodeAt(p))||m++;return m}let u=l(r.length>e.length?r:e);return o/u>.6&&u>10}function Fl(r){if(r.length===0)return r;r.sort(_e(t=>t.original.startLineNumber,Be));let e=[r[0]];for(let t=1;t<r.length;t++){let n=e[e.length-1],i=r[t],o=i.original.startLineNumber-n.original.endLineNumberExclusive,a=i.modified.startLineNumber-n.modified.endLineNumberExclusive;if(o>=0&&a>=0&&o+a<=2){e[e.length-1]=n.join(i);continue}e.push(i)}return e}function Ol(r,e){let t=new Ot(r);return e=e.filter(n=>{let i=t.findLastMonotonous(l=>l.original.startLineNumber<n.original.endLineNumberExclusive)||new we(new K(1,1),new K(1,1)),o=Fe(r,l=>l.modified.startLineNumber<n.modified.endLineNumberExclusive);return i!==o}),e}function gi(r,e,t){let n=t;return n=_s(r,e,n),n=_s(r,e,n),n=Bl(r,e,n),n}function _s(r,e,t){if(t.length===0)return t;let n=[];n.push(t[0]);for(let o=1;o<t.length;o++){let a=n[n.length-1],l=t[o];if(l.seq1Range.isEmpty||l.seq2Range.isEmpty){let u=l.seq1Range.start-a.seq1Range.endExclusive,c;for(c=1;c<=u&&!(r.getElement(l.seq1Range.start-c)!==r.getElement(l.seq1Range.endExclusive-c)||e.getElement(l.seq2Range.start-c)!==e.getElement(l.seq2Range.endExclusive-c));c++);if(c--,c===u){n[n.length-1]=new J(new U(a.seq1Range.start,l.seq1Range.endExclusive-u),new U(a.seq2Range.start,l.seq2Range.endExclusive-u));continue}l=l.delta(-c)}n.push(l)}let i=[];for(let o=0;o<n.length-1;o++){let a=n[o+1],l=n[o];if(l.seq1Range.isEmpty||l.seq2Range.isEmpty){let u=a.seq1Range.start-l.seq1Range.endExclusive,c;for(c=0;c<u&&!(!r.isStronglyEqual(l.seq1Range.start+c,l.seq1Range.endExclusive+c)||!e.isStronglyEqual(l.seq2Range.start+c,l.seq2Range.endExclusive+c));c++);if(c===u){n[o+1]=new J(new U(l.seq1Range.start+u,a.seq1Range.endExclusive),new U(l.seq2Range.start+u,a.seq2Range.endExclusive));continue}c>0&&(l=l.delta(c))}i.push(l)}return n.length>0&&i.push(n[n.length-1]),i}function Bl(r,e,t){if(!r.getBoundaryScore||!e.getBoundaryScore)return t;for(let n=0;n<t.length;n++){let i=n>0?t[n-1]:void 0,o=t[n],a=n+1<t.length?t[n+1]:void 0,l=new U(i?i.seq1Range.endExclusive+1:0,a?a.seq1Range.start-1:r.length),u=new U(i?i.seq2Range.endExclusive+1:0,a?a.seq2Range.start-1:e.length);o.seq1Range.isEmpty?t[n]=Rs(o,r,e,l,u):o.seq2Range.isEmpty&&(t[n]=Rs(o.swap(),e,r,u,l).swap())}return t}function Rs(r,e,t,n,i){let a=1;for(;r.seq1Range.start-a>=n.start&&r.seq2Range.start-a>=i.start&&t.isStronglyEqual(r.seq2Range.start-a,r.seq2Range.endExclusive-a)&&a<100;)a++;a--;let l=0;for(;r.seq1Range.start+l<n.endExclusive&&r.seq2Range.endExclusive+l<i.endExclusive&&t.isStronglyEqual(r.seq2Range.start+l,r.seq2Range.endExclusive+l)&&l<100;)l++;if(a===0&&l===0)return r;let u=0,c=-1;for(let d=-a;d<=l;d++){let m=r.seq2Range.start+d,p=r.seq2Range.endExclusive+d,g=r.seq1Range.start+d,x=e.getBoundaryScore(g)+t.getBoundaryScore(m)+t.getBoundaryScore(p);x>c&&(c=x,u=d)}return r.delta(u)}function Is(r,e,t){let n=[];for(let i of t){let o=n[n.length-1];if(!o){n.push(i);continue}i.seq1Range.start-o.seq1Range.endExclusive<=2||i.seq2Range.start-o.seq2Range.endExclusive<=2?n[n.length-1]=new J(o.seq1Range.join(i.seq1Range),o.seq2Range.join(i.seq2Range)):n.push(i)}return n}function hi(r,e,t,n,i=!1){let o=J.invert(t,r.length),a=[],l=new Pe(0,0);function u(d,m){if(d.offset1<l.offset1||d.offset2<l.offset2)return;let p=n(r,d.offset1),g=n(e,d.offset2);if(!p||!g)return;let x=new J(p,g),y=x.intersect(m),_=y.seq1Range.length,h=y.seq2Range.length;for(;o.length>0;){let T=o[0];if(!(T.seq1Range.intersects(x.seq1Range)||T.seq2Range.intersects(x.seq2Range)))break;let E=n(r,T.seq1Range.start),k=n(e,T.seq2Range.start),A=new J(E,k),v=A.intersect(T);if(_+=v.seq1Range.length,h+=v.seq2Range.length,x=x.join(A),x.seq1Range.endExclusive>=T.seq1Range.endExclusive)o.shift();else break}(i&&_+h<x.seq1Range.length+x.seq2Range.length||_+h<(x.seq1Range.length+x.seq2Range.length)*2/3)&&a.push(x),l=x.getEndExclusives()}for(;o.length>0;){let d=o.shift();d.seq1Range.isEmpty||(u(d.getStarts(),d),u(d.getEndExclusives().delta(-1),d))}return Vl(t,a)}function Vl(r,e){let t=[];for(;r.length>0||e.length>0;){let n=r[0],i=e[0],o;n&&(!i||n.seq1Range.start<i.seq1Range.start)?o=r.shift():o=e.shift(),t.length>0&&t[t.length-1].seq1Range.endExclusive>=o.seq1Range.start?t[t.length-1]=t[t.length-1].join(o):t.push(o)}return t}function Ls(r,e,t){let n=t;if(n.length===0)return n;let i=0,o;do{o=!1;let a=[n[0]];for(let l=1;l<n.length;l++){let d=function(p,g){let x=new U(c.seq1Range.endExclusive,u.seq1Range.start);return r.getText(x).replace(/\s/g,"").length<=4&&(p.seq1Range.length+p.seq2Range.length>5||g.seq1Range.length+g.seq2Range.length>5)},u=n[l],c=a[a.length-1];d(c,u)?(o=!0,a[a.length-1]=a[a.length-1].join(u)):a.push(u)}n=a}while(i++<10&&o);return n}function Ss(r,e,t){let n=t;if(n.length===0)return n;let i=0,o;do{o=!1;let l=[n[0]];for(let u=1;u<n.length;u++){let m=function(g,x){let y=new U(d.seq1Range.endExclusive,c.seq1Range.start);if(r.countLinesIn(y)>5||y.length>500)return!1;let h=r.getText(y).trim();if(h.length>20||h.split(/\r\n|\r|\n/).length>1)return!1;let T=r.countLinesIn(g.seq1Range),I=g.seq1Range.length,E=e.countLinesIn(g.seq2Range),k=g.seq2Range.length,A=r.countLinesIn(x.seq1Range),v=x.seq1Range.length,w=e.countLinesIn(x.seq2Range),L=x.seq2Range.length,F=130;function q(C){return Math.min(C,F)}return Math.pow(Math.pow(q(T*40+I),1.5)+Math.pow(q(E*40+k),1.5),1.5)+Math.pow(Math.pow(q(A*40+v),1.5)+Math.pow(q(w*40+L),1.5),1.5)>(F**1.5)**1.5*1.3},c=n[u],d=l[l.length-1];m(d,c)?(o=!0,l[l.length-1]=l[l.length-1].join(c)):l.push(c)}n=l}while(i++<10&&o);let a=[];return Gi(n,(l,u,c)=>{let d=u;function m(h){return h.length>0&&h.trim().length<=3&&u.seq1Range.length+u.seq2Range.length>100}let p=r.extendToFullLines(u.seq1Range),g=r.getText(new U(p.start,u.seq1Range.start));m(g)&&(d=d.deltaStart(-g.length));let x=r.getText(new U(u.seq1Range.endExclusive,p.endExclusive));m(x)&&(d=d.deltaEnd(x.length));let y=J.fromOffsetPairs(l?l.getEndExclusives():Pe.zero,c?c.getStarts():Pe.max),_=d.intersect(y);a.length>0&&_.getStarts().equals(a[a.length-1].getEndExclusives())?a[a.length-1]=a[a.length-1].join(_):a.push(_)}),a}var ln=class{constructor(e,t){this.trimmedHash=e;this.lines=t}getElement(e){return this.trimmedHash[e]}get length(){return this.trimmedHash.length}getBoundaryScore(e){let t=e===0?0:Es(this.lines[e-1]),n=e===this.lines.length?0:Es(this.lines[e]);return 1e3-(t+n)}getText(e){return this.lines.slice(e.start,e.endExclusive).join(`
`)}isStronglyEqual(e,t){return this.lines[e]===this.lines[t]}};function Es(r){let e=0;for(;e<r.length&&(r.charCodeAt(e)===32||r.charCodeAt(e)===9);)e++;return e}var Yn=class{constructor(){this.dynamicProgrammingDiffing=new Qn;this.myersDiffingAlgorithm=new Dt}computeDiff(e,t,n){if(e.length<=1&&pn(e,t,(v,w)=>v===w))return new De([],[],!1);if(e.length===1&&e[0].length===0||t.length===1&&t[0].length===0)return new De([new Ee(new K(1,e.length+1),new K(1,t.length+1),[new de(new D(1,1,e.length,e[e.length-1].length+1),new D(1,1,t.length,t[t.length-1].length+1))])],[],!1);let i=n.maxComputationTimeMs===0?Ze.instance:new Gn(n.maxComputationTimeMs),o=!n.ignoreTrimWhitespace,a=new Map;function l(v){let w=a.get(v);return w===void 0&&(w=a.size,a.set(v,w)),w}let u=e.map(v=>l(v.trim())),c=t.map(v=>l(v.trim())),d=new ln(u,e),m=new ln(c,t),p=d.length+m.length<1700?this.dynamicProgrammingDiffing.compute(d,m,i,(v,w)=>e[v]===t[w]?t[w].length===0?.1:1+Math.log(1+t[w].length):.99):this.myersDiffingAlgorithm.compute(d,m,i),g=p.diffs,x=p.hitTimeout;g=gi(d,m,g),g=Ls(d,m,g);let y=[],_=v=>{if(o)for(let w=0;w<v;w++){let L=h+w,F=T+w;if(e[L]!==t[F]){let q=this.refineDiff(e,t,new J(new U(L,L+1),new U(F,F+1)),i,o,n);for(let C of q.mappings)y.push(C);q.hitTimeout&&(x=!0)}}},h=0,T=0;for(let v of g){Ve(()=>v.seq1Range.start-h===v.seq2Range.start-T);let w=v.seq1Range.start-h;_(w),h=v.seq1Range.endExclusive,T=v.seq2Range.endExclusive;let L=this.refineDiff(e,t,v,i,o,n);L.hitTimeout&&(x=!0);for(let F of L.mappings)y.push(F)}_(e.length-h);let I=new ut(e),E=new ut(t),k=nn(y,I,E),A=[];return n.computeMoves&&(A=this.computeMoves(k,e,t,u,c,i,o,n)),Ve(()=>{function v(L,F){if(L.lineNumber<1||L.lineNumber>F.length)return!1;let q=F[L.lineNumber-1];return!(L.column<1||L.column>q.length+1)}function w(L,F){return!(L.startLineNumber<1||L.startLineNumber>F.length+1||L.endLineNumberExclusive<1||L.endLineNumberExclusive>F.length+1)}for(let L of k){if(!L.innerChanges)return!1;for(let F of L.innerChanges)if(!(v(F.modifiedRange.getStartPosition(),t)&&v(F.modifiedRange.getEndPosition(),t)&&v(F.originalRange.getStartPosition(),e)&&v(F.originalRange.getEndPosition(),e)))return!1;if(!w(L.modified,t)||!w(L.original,e))return!1}return!0}),new De(k,A,x)}computeMoves(e,t,n,i,o,a,l,u){return ws(e,t,n,i,o,a).map(m=>{let p=this.refineDiff(t,n,new J(m.original.toOffsetRange(),m.modified.toOffsetRange()),a,l,u),g=nn(p.mappings,new ut(t),new ut(n),!0);return new St(m,g)})}refineDiff(e,t,n,i,o,a){let u=ql(n).toRangeMapping2(e,t),c=new et(e,u.originalRange,o),d=new et(t,u.modifiedRange,o),m=c.length+d.length<500?this.dynamicProgrammingDiffing.compute(c,d,i):this.myersDiffingAlgorithm.compute(c,d,i),p=!1,g=m.diffs;p&&J.assertSorted(g),g=gi(c,d,g),p&&J.assertSorted(g),g=hi(c,d,g,(y,_)=>y.findWordContaining(_)),p&&J.assertSorted(g),a.extendToSubwords&&(g=hi(c,d,g,(y,_)=>y.findSubWordContaining(_),!0),p&&J.assertSorted(g)),g=Is(c,d,g),p&&J.assertSorted(g),g=Ss(c,d,g),p&&J.assertSorted(g);let x=g.map(y=>new de(c.translateRange(y.seq1Range),d.translateRange(y.seq2Range)));return p&&de.assertSorted(x),{mappings:x,hitTimeout:m.hitTimeout}}};function ql(r){return new we(new K(r.seq1Range.start+1,r.seq1Range.endExclusive+1),new K(r.seq2Range.start+1,r.seq2Range.endExclusive+1))}var ie;(z=>(z.inMemory="inmemory",z.vscode="vscode",z.internal="private",z.walkThrough="walkThrough",z.walkThroughSnippet="walkThroughSnippet",z.http="http",z.https="https",z.file="file",z.mailto="mailto",z.untitled="untitled",z.data="data",z.command="command",z.vscodeRemote="vscode-remote",z.vscodeRemoteResource="vscode-remote-resource",z.vscodeManagedRemoteResource="vscode-managed-remote-resource",z.vscodeUserData="vscode-userdata",z.vscodeCustomEditor="vscode-custom-editor",z.vscodeNotebookCell="vscode-notebook-cell",z.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",z.vscodeNotebookCellMetadataDiff="vscode-notebook-cell-metadata-diff",z.vscodeNotebookCellOutput="vscode-notebook-cell-output",z.vscodeNotebookCellOutputDiff="vscode-notebook-cell-output-diff",z.vscodeNotebookMetadata="vscode-notebook-metadata",z.vscodeInteractiveInput="vscode-interactive-input",z.vscodeSettings="vscode-settings",z.vscodeWorkspaceTrust="vscode-workspace-trust",z.vscodeTerminal="vscode-terminal",z.vscodeImageCarousel="vscode-image-carousel",z.vscodeChatCodeBlock="vscode-chat-code-block",z.vscodeChatCodeCompareBlock="vscode-chat-code-compare-block",z.vscodeChatEditor="vscode-chat-editor",z.vscodeChatInput="chatSessionInput",z.sessionsChatInput="sessions-chat",z.vscodeLocalChatSession="vscode-chat-session",z.vscodeChatResponseResource="vscode-chat-response-resource",z.webviewPanel="webview-panel",z.vscodeWebview="vscode-webview",z.vscodeBrowser="vscode-browser",z.extension="extension",z.vscodeFileResource="vscode-file",z.tmp="tmp",z.vsls="vsls",z.vscodeSourceControl="vscode-scm",z.commentsInput="comment",z.codeSetting="code-setting",z.outputChannel="output",z.accessibleView="accessible-view",z.chatEditingSnapshotScheme="chat-editing-snapshot-text-model",z.chatEditingModel="chat-editing-text-model",z.copilotPr="copilot-pr"))(ie||={});var Wl="tkn",bi=class{constructor(){this._hosts=Object.create(null);this._ports=Object.create(null);this._connectionTokens=Object.create(null);this._preferredWebSchema="http";this._delegate=null;this._serverRootPath="/"}setPreferredWebSchema(e){this._preferredWebSchema=e}setDelegate(e){this._delegate=e}setServerRootPath(e,t){this._serverRootPath=$.join(t??"/",Hl(e))}getServerRootPath(){return this._serverRootPath}get _remoteResourcesPath(){return $.join(this._serverRootPath,ie.vscodeRemoteResource)}set(e,t,n){this._hosts[e]=t,this._ports[e]=n}setConnectionToken(e,t){this._connectionTokens[e]=t}getPreferredWebSchema(){return this._preferredWebSchema}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(l){return Bi(l),e}let t=e.authority,n=this._hosts[t];n&&n.indexOf(":")!==-1&&n.indexOf("[")===-1&&(n=`[${n}]`);let i=this._ports[t],o=this._connectionTokens[t],a=`path=${encodeURIComponent(e.path)}`;return typeof o=="string"&&(a+=`&${Wl}=${encodeURIComponent(o)}`),ne.from({scheme:vr?this._preferredWebSchema:ie.vscodeRemoteResource,authority:`${n}:${i}`,path:this._remoteResourcesPath,query:a})}},zl=new bi;function Hl(r){return`${r.quality??"oss"}-${r.commit??"dev"}`}var ks="vs/../../node_modules",Ns="vs/../../node_modules.asar";var yi="vscode-app",xi=class r{static{this.FALLBACK_AUTHORITY=yi}asBrowserUri(e){let t=this.toUri(e);return this.uriToBrowserUri(t)}uriToBrowserUri(e){return e.scheme===ie.vscodeRemote?zl.rewrite(e):e.scheme===ie.file&&(ho||xo===`${ie.vscodeFileResource}://${r.FALLBACK_AUTHORITY}`)?e.with({scheme:ie.vscodeFileResource,authority:e.authority||r.FALLBACK_AUTHORITY,query:null,fragment:null}):e}asFileUri(e){let t=this.toUri(e);return this.uriToFileUri(t)}uriToFileUri(e){return e.scheme===ie.vscodeFileResource?e.with({scheme:ie.file,authority:e.authority!==r.FALLBACK_AUTHORITY?e.authority:null,query:null,fragment:null}):e}toUri(e){if(ne.isUri(e))return e;if(globalThis._VSCODE_FILE_ROOT){let t=globalThis._VSCODE_FILE_ROOT;if(/^\w[\w\d+.-]*:\/\//.test(t))return ne.joinPath(ne.parse(t,!0),e);let n=Yr(t,e);return ne.file(n)}throw new Error("Cannot determine URI for module id!")}},As=new xi,xp=Object.freeze({"Cache-Control":"no-cache, no-store"}),yp=Object.freeze({"Document-Policy":"include-js-call-stacks-in-crash-reports"}),Kl;(o=>{let r=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);o.CoopAndCoep=Object.freeze(r.get("3"));let t="vscode-coi";function n(a){let l;typeof a=="string"?l=new URL(a).searchParams:a instanceof URL?l=a.searchParams:ne.isUri(a)&&(l=new URL(a.toString(!0)).searchParams);let u=l?.get(t);if(u)return r.get(u)}o.getHeadersFromQuery=n;function i(a,l,u){if(!globalThis.crossOriginIsolated)return;let c=l&&u?"3":u?"2":"1";a instanceof URLSearchParams?a.set(t,c):a[t]=c}o.addSearchParam=i})(Kl||={});var Ds=(function(){if(typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let r=new Uint8Array(16),e=[];for(let t=0;t<256;t++)e.push(t.toString(16).padStart(2,"0"));return function(){crypto.getRandomValues(r),r[6]=r[6]&15|64,r[8]=r[8]&63|128;let n=0,i="";return i+=e[r[n++]],i+=e[r[n++]],i+=e[r[n++]],i+=e[r[n++]],i+="-",i+=e[r[n++]],i+=e[r[n++]],i+="-",i+=e[r[n++]],i+=e[r[n++]],i+="-",i+=e[r[n++]],i+=e[r[n++]],i+="-",i+=e[r[n++]],i+=e[r[n++]],i+=e[r[n++]],i+=e[r[n++]],i+=e[r[n++]],i+=e[r[n++]],i}})();var vi=class{constructor(e,t,n){this.id=e;this.dependencies=t;this.callback=n}};var Ps=class r{constructor(){this._isWebWorker=typeof self=="object"&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope";this._isRenderer=typeof document=="object";this._defineCalls=[];this._state=1}static{this.INSTANCE=new r}_initialize(){if(this._state===1){if(globalThis.define){this._state=3;return}}else return;this._state=2,globalThis.define=(e,t,n)=>{typeof e!="string"&&(n=t,t=e,e=null),(typeof t!="object"||!Array.isArray(t))&&(n=t,t=null),this._defineCalls.push(new vi(e,t,n))},globalThis.define.amd=!0,this._isRenderer?this._amdPolicy=globalThis._VSCODE_WEB_PACKAGE_TTP??window.trustedTypes?.createPolicy("amdLoader",{createScriptURL(e){if(e.startsWith(window.location.origin)||e.startsWith(`${ie.vscodeFileResource}://${yi}`))return e;throw new Error(`[trusted_script_src] Invalid script url: ${e}`)}}):this._isWebWorker&&(this._amdPolicy=globalThis._VSCODE_WEB_PACKAGE_TTP??globalThis.trustedTypes?.createPolicy("amdLoader",{createScriptURL(e){return e}}))}async load(e){if(this._initialize(),this._state===3)return new Promise(a=>{let l=Ds();globalThis.define(l,[e],function(u){a(u)})});let t=await(this._isWebWorker?this._workerLoadScript(e):this._isRenderer?this._rendererLoadScript(e):this._nodeJSLoadScript(e));if(!t){console.warn(`Did not receive a define call from script ${e}`);return}let n={},i=[],o=[];if(Array.isArray(t.dependencies))for(let a of t.dependencies)a==="exports"?i.push(n):o.push(a);if(o.length>0)throw new Error(`Cannot resolve dependencies for script ${e}. The dependencies are: ${o.join(", ")}`);return typeof t.callback=="function"?t.callback(...i)??n:t.callback}_rendererLoadScript(e){return new Promise((t,n)=>{let i=document.createElement("script");i.setAttribute("async","async"),i.setAttribute("type","text/javascript");let o=()=>{i.removeEventListener("load",a),i.removeEventListener("error",l)},a=u=>{o(),t(this._defineCalls.pop())},l=u=>{o(),n(u)};i.addEventListener("load",a),i.addEventListener("error",l),this._amdPolicy&&(e=this._amdPolicy.createScriptURL(e)),i.setAttribute("src",e),window.document.getElementsByTagName("head")[0].appendChild(i)})}async _workerLoadScript(e){return this._amdPolicy&&(e=this._amdPolicy.createScriptURL(e)),await import(e),this._defineCalls.pop()}async _nodeJSLoadScript(e){try{let t=(await import("module")).default,n=t.createRequire(import.meta.url),i=n("fs"),o=n("vm"),a=ne.parse(e).fsPath,l=i.readFileSync(a).toString(),u=t.wrap(l.replace(/^#!.*/,""));return new o.Script(u).runInThisContext().apply(),this._defineCalls.pop()}catch(t){throw t}}};function Ms(r,e){let i=!!(globalThis._VSCODE_PRODUCT_JSON??globalThis.vscode?.context?.configuration()?.product)?.commit&&(bo||Tr&&vo),o=`${r}/${e}`,l=`${i?Ns:ks}/${o}`;return As.asBrowserUri(l).toString(!0)}var un=class{constructor(e){this.replacements=e;let t=-1;for(let n of e){if(!(n.replaceRange.start>=t))throw new G(`Edits must be disjoint and sorted. Found ${n} after ${t}`);t=n.replaceRange.endExclusive}}equals(e){if(this.replacements.length!==e.replacements.length)return!1;for(let t=0;t<this.replacements.length;t++)if(!this.replacements[t].equals(e.replacements[t]))return!1;return!0}toString(){return`[${this.replacements.map(t=>t.toString()).join(", ")}]`}normalize(){let e=[],t;for(let n of this.replacements)if(!(n.getNewLength()===0&&n.replaceRange.length===0)){if(t&&t.replaceRange.endExclusive===n.replaceRange.start){let i=t.tryJoinTouching(n);if(i){t=i;continue}}t&&e.push(t),t=n}return t&&e.push(t),this._createNew(e)}compose(e){let t=this.normalize(),n=e.normalize();if(t.isEmpty())return n;if(n.isEmpty())return t;let i=[...t.replacements],o=[],a=0;for(let l of n.replacements){for(;;){let m=i[0];if(!m||m.replaceRange.start+a+m.getNewLength()>=l.replaceRange.start)break;i.shift(),o.push(m),a+=m.getNewLength()-m.replaceRange.length}let u=a,c,d;for(;;){let m=i[0];if(!m||m.replaceRange.start+a>l.replaceRange.endExclusive)break;c||(c=m),d=m,i.shift(),a+=m.getNewLength()-m.replaceRange.length}if(!c)o.push(l.delta(-a));else{let m=Math.min(c.replaceRange.start,l.replaceRange.start-u),p=l.replaceRange.start-(c.replaceRange.start+u);if(p>0){let _=c.slice(U.emptyAt(m),new U(0,p));o.push(_)}if(!d)throw new G("Invariant violation: lastIntersecting is undefined");let g=d.replaceRange.endExclusive+a-l.replaceRange.endExclusive;if(g>0){let _=d.slice(U.ofStartAndLength(d.replaceRange.endExclusive,0),new U(d.getNewLength()-g,d.getNewLength()));i.unshift(_),a-=_.getNewLength()-_.replaceRange.length}let x=new U(m,l.replaceRange.endExclusive-a),y=l.slice(x,new U(0,l.getNewLength()));o.push(y)}}for(;;){let l=i.shift();if(!l)break;o.push(l)}return this._createNew(o).normalize()}decomposeSplit(e){let t=[],n=[],i=0;for(let o of this.replacements)e(o)?(t.push(o),i+=o.getNewLength()-o.replaceRange.length):n.push(o.slice(o.replaceRange.delta(i),new U(0,o.getNewLength())));return{e1:this._createNew(t),e2:this._createNew(n)}}getNewRanges(){let e=[],t=0;for(let n of this.replacements)e.push(U.ofStartAndLength(n.replaceRange.start+t,n.getNewLength())),t+=n.getLengthDelta();return e}getJoinedReplaceRange(){if(this.replacements.length!==0)return this.replacements[0].replaceRange.join(this.replacements.at(-1).replaceRange)}isEmpty(){return this.replacements.length===0}getLengthDelta(){return Ji(this.replacements,e=>e.getLengthDelta())}getNewDataLength(e){return e+this.getLengthDelta()}applyToOffset(e){let t=0;for(let n of this.replacements)if(n.replaceRange.start<=e){if(e<n.replaceRange.endExclusive)return n.replaceRange.start+t;t+=n.getNewLength()-n.replaceRange.length}else break;return e+t}applyToOffsetRange(e){return new U(this.applyToOffset(e.start),this.applyToOffset(e.endExclusive))}applyInverseToOffset(e){let t=0;for(let n of this.replacements){let i=n.getNewLength();if(n.replaceRange.start<=e-t){if(e-t<n.replaceRange.start+i)return n.replaceRange.start;t+=i-n.replaceRange.length}else break}return e-t}applyToOffsetOrUndefined(e){let t=0;for(let n of this.replacements)if(n.replaceRange.start<=e){if(e<n.replaceRange.endExclusive)return;t+=n.getNewLength()-n.replaceRange.length}else break;return e+t}applyToOffsetRangeOrUndefined(e){let t=this.applyToOffsetOrUndefined(e.start);if(t===void 0)return;let n=this.applyToOffsetOrUndefined(e.endExclusive);if(n!==void 0)return new U(t,n)}},Jn=class{constructor(e){this.replaceRange=e}delta(e){return this.slice(this.replaceRange.delta(e),new U(0,this.getNewLength()))}getLengthDelta(){return this.getNewLength()-this.replaceRange.length}toString(){return`{ ${this.replaceRange.toString()} -> ${this.getNewLength()} }`}get isEmpty(){return this.getNewLength()===0&&this.replaceRange.length===0}getRangeAfterReplace(){return new U(this.replaceRange.start,this.replaceRange.start+this.getNewLength())}},Cs=class r extends un{static{this.empty=new r([])}static create(e){return new r(e)}static single(e){return new r([e])}_createNew(e){return new r(e)}};var Zn=class extends un{get TReplacement(){throw new Error("TReplacement is not defined for BaseStringEdit")}static composeOrUndefined(e){if(e.length===0)return;let t=e[0];for(let n=1;n<e.length;n++)t=t.compose(e[n]);return t}static trySwap(e,t){let n=e.inverseOnSlice((a,l)=>" ".repeat(l-a)),i=t.tryRebase(n);if(!i)return;let o=e.tryRebase(i);if(o)return{e1:i,e2:o}}apply(e){let t=[],n=0;for(let i of this.replacements)t.push(e.substring(n,i.replaceRange.start)),t.push(i.newText),n=i.replaceRange.endExclusive;return t.push(e.substring(n)),t.join("")}inverseOnSlice(e){let t=[],n=0;for(let i of this.replacements)t.push(fe.replace(U.ofStartAndLength(i.replaceRange.start+n,i.newText.length),e(i.replaceRange.start,i.replaceRange.endExclusive))),n+=i.newText.length-i.replaceRange.length;return new ke(t)}inverse(e){return this.inverseOnSlice((t,n)=>e.substring(t,n))}rebaseSkipConflicting(e){return this._tryRebase(e,!1)}tryRebase(e){return this._tryRebase(e,!0)}_tryRebase(e,t){let n=[],i=0,o=0,a=0;for(;o<this.replacements.length||i<e.replacements.length;){let l=e.replacements.at(i),u=this.replacements.at(o);if(u)if(l)if(u.replaceRange.intersects(l.replaceRange)||jl(u.replaceRange,l.replaceRange)||Us(u.replaceRange,l.replaceRange)||Us(l.replaceRange,u.replaceRange)){if(o++,t)return}else if(u.replaceRange.start<l.replaceRange.start||u.replaceRange.isEmpty&&u.replaceRange.start===l.replaceRange.start){let c=u.replaceRange.delta(a);n.push(new fe(c,u.newText)),o++}else i++,a+=l.newText.length-l.replaceRange.length;else{let c=u.replaceRange.delta(a);n.push(new fe(c,u.newText)),o++}else break}return new ke(n)}toJson(){return this.replacements.map(e=>e.toJson())}isNeutralOn(e){return this.replacements.every(t=>t.isNeutralOn(e))}removeCommonSuffixPrefix(e){let t=[];for(let n of this.replacements){let i=n.removeCommonSuffixPrefix(e);i.isEmpty||t.push(i)}return new ke(t)}normalizeEOL(e){return new ke(this.replacements.map(t=>t.normalizeEOL(e)))}normalizeOnSource(e){let t=this.apply(e),i=fe.replace(U.ofLength(e.length),t).removeCommonSuffixAndPrefix(e);return i.isEmpty?ke.empty:i.toEdit()}removeCommonSuffixAndPrefix(e){return this._createNew(this.replacements.map(t=>t.removeCommonSuffixAndPrefix(e))).normalize()}applyOnText(e){return new ye(this.apply(e.value))}mapData(e){return new Ti(this.replacements.map(t=>new Mt(t.replaceRange,t.newText,e(t))))}},er=class extends Jn{constructor(t,n){super(t);this.newText=n}getNewLength(){return this.newText.length}toString(){return`${this.replaceRange} -> ${JSON.stringify(this.newText)}`}replace(t){return t.substring(0,this.replaceRange.start)+this.newText+t.substring(this.replaceRange.endExclusive)}isNeutralOn(t){return this.newText===t.substring(this.replaceRange.start,this.replaceRange.endExclusive)}removeCommonSuffixPrefix(t){let n=t.substring(this.replaceRange.start,this.replaceRange.endExclusive),i=_t(n,this.newText),o=Math.min(n.length-i,this.newText.length-i,Rt(n,this.newText)),a=new U(this.replaceRange.start+i,this.replaceRange.endExclusive-o),l=this.newText.substring(i,this.newText.length-o);return new fe(a,l)}normalizeEOL(t){let n=this.newText.replace(/\r\n|\n/g,t);return new fe(this.replaceRange,n)}removeCommonSuffixAndPrefix(t){return this.removeCommonSuffix(t).removeCommonPrefix(t)}removeCommonPrefix(t){let n=this.replaceRange.substring(t),i=_t(n,this.newText);return i===0?this:this.slice(this.replaceRange.deltaStart(i),new U(i,this.newText.length))}removeCommonSuffix(t){let n=this.replaceRange.substring(t),i=Rt(n,this.newText);return i===0?this:this.slice(this.replaceRange.deltaEnd(-i),new U(0,this.newText.length-i))}toEdit(){return new ke([this])}toJson(){return{txt:this.newText,pos:this.replaceRange.start,len:this.replaceRange.length}}},ke=class r extends Zn{static parse(e){let t=[],n=/\[(\d+),\s*(\d+)\)\s*->\s*"([^"]*)"/g,i;for(;(i=n.exec(e))!==null;){let o=parseInt(i[1],10),a=parseInt(i[2],10),l=i[3].replace(/\\n/g,`
`).replace(/\\r/g,"\r").replace(/\\\\/g,"\\");t.push(new fe(new U(o,a),l))}return new r(t)}static{this.empty=new r([])}static create(e){return new r(e)}static single(e){return new r([e])}static replace(e,t){return new r([new fe(e,t)])}static insert(e,t){return new r([new fe(U.emptyAt(e),t)])}static delete(e){return new r([new fe(e,"")])}static fromJson(e){return new r(e.map(fe.fromJson))}static compose(e){if(e.length===0)return r.empty;let t=e[0];for(let n=1;n<e.length;n++)t=t.compose(e[n]);return t}static composeSequentialReplacements(e){let t=r.empty,n=[];for(let i of e){let o=n.at(-1);!o||i.replaceRange.isBefore(o.replaceRange)?n.push(i):(t=t.compose(r.create(n.reverse())),n=[i])}return t=t.compose(r.create(n.reverse())),t}constructor(e){super(e)}_createNew(e){return new r(e)}},fe=class r extends er{static insert(e,t){return new r(U.emptyAt(e),t)}static replace(e,t){return new r(e,t)}static delete(e){return new r(e,"")}static fromJson(e){return new r(U.ofStartAndLength(e.pos,e.len),e.txt)}equals(e){return this.replaceRange.equals(e.replaceRange)&&this.newText===e.newText}tryJoinTouching(e){return new r(this.replaceRange.joinRightTouching(e.replaceRange),this.newText+e.newText)}slice(e,t){return new r(e,t?t.substring(this.newText):this.newText)}};var Ti=class r extends Zn{static{this.empty=new r([])}static create(e){return new r(e)}static single(e){return new r([e])}static replace(e,t,n){return new r([new Mt(e,t,n)])}static insert(e,t,n){return new r([new Mt(U.emptyAt(e),t,n)])}static delete(e,t){return new r([new Mt(e,"",t)])}static compose(e){if(e.length===0)return r.empty;let t=e[0];for(let n=1;n<e.length;n++)t=t.compose(e[n]);return t}constructor(e){super(e)}_createNew(e){return new r(e)}toStringEdit(e){let t=[];for(let n of this.replacements)(!e||e(n))&&t.push(new fe(n.replaceRange,n.newText));return new ke(t)}},Mt=class r extends er{constructor(t,n,i){super(t,n);this.data=i}static insert(t,n,i){return new r(U.emptyAt(t),n,i)}static replace(t,n,i){return new r(t,n,i)}static delete(t,n){return new r(t,"",n)}equals(t){return this.replaceRange.equals(t.replaceRange)&&this.newText===t.newText&&this.data===t.data}tryJoinTouching(t){let n=this.data.join(t.data);if(n!==void 0)return new r(this.replaceRange.joinRightTouching(t.replaceRange),this.newText+t.newText,n)}slice(t,n){return new r(t,n?n.substring(this.newText):this.newText,this.data)}};function jl(r,e){return r.isEmpty&&e.isEmpty&&r.start===e.start}function Us(r,e){return r.isEmpty&&e.start<r.start&&r.start<e.endExclusive}ps({StringEdit:ke,StringReplacement:fe,TextReplacement:ue,TextEdit:ct,TextLength:Se});var wi,_i,Ri;function Fs(){return wi||(wi=import(`${Ms("@vscode/diff","dist/index.js")}`)),wi}function Gl(r){return r?(Ri||(Ri=Fs().then(e=>e.createDiffComputer({useWasm:!0}))),Ri):(_i||(_i=Fs().then(e=>e.createDiffComputer({useWasm:!1}))),_i)}async function Li(r){let e=await Gl(r);return new Ii(e)}var Ii=class{constructor(e){this._computer=e}computeDiff(e,t,n){let i=new ye(e.join(`
`)),o=new ye(t.join(`
`)),a=this._computer.computeDiff(i.value,o.value,{ignoreTrimWhitespace:!0,computeMoves:n.computeMoves,extendToSubwords:n.extendToSubwords}),l=i.getTransformer(),u=o.getTransformer(),c=[],d=0;for(let g of a.edits.replacements){let x=g.range.start+d,y=x+g.newText.length,_=l.getRange(new U(g.range.start,g.range.endExclusive)),h=u.getRange(new U(x,y));c.push(new de(_,h)),d+=g.newText.length-(g.range.endExclusive-g.range.start)}let m=nn(c,i,o),p=[];if(n.computeMoves)for(let g of a.moves){let x=l.getPosition(g.range.original.start),y=l.getPosition(g.range.original.endExclusive),_=u.getPosition(g.range.modified.start),h=u.getPosition(g.range.modified.endExclusive),T=new K(x.lineNumber,y.lineNumber),I=new K(_.lineNumber,h.lineNumber);p.push(new St(new we(T,I),[]))}return new De(m,p,a.hitTimeout)}};var Ct={getLegacy:()=>new jn,getDefault:()=>new Yn,getAdvancedExternal:()=>Li(!1),getAdvancedWasm:()=>Li(!0)};function tt(r,e){let t=Math.pow(10,e);return Math.round(r*t)/t}var b=class{constructor(e,t,n,i=1){this._rgbaBrand=void 0;this.r=Math.min(255,Math.max(0,e))|0,this.g=Math.min(255,Math.max(0,t))|0,this.b=Math.min(255,Math.max(0,n))|0,this.a=tt(Math.max(Math.min(1,i),0),3)}static equals(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}},Ce=class r{constructor(e,t,n,i){this._hslaBrand=void 0;this.h=Math.max(Math.min(360,e),0)|0,this.s=tt(Math.max(Math.min(1,t),0),3),this.l=tt(Math.max(Math.min(1,n),0),3),this.a=tt(Math.max(Math.min(1,i),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a}static fromRGBA(e){let t=e.r/255,n=e.g/255,i=e.b/255,o=e.a,a=Math.max(t,n,i),l=Math.min(t,n,i),u=0,c=0,d=(l+a)/2,m=a-l;if(m>0){switch(c=Math.min(d<=.5?m/(2*d):m/(2-2*d),1),a){case t:u=(n-i)/m+(n<i?6:0);break;case n:u=(i-t)/m+2;break;case i:u=(t-n)/m+4;break}u*=60,u=Math.round(u)}return new r(u,c,d,o)}static _hue2rgb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}static toRGBA(e){let t=e.h/360,{s:n,l:i,a:o}=e,a,l,u;if(n===0)a=l=u=i;else{let c=i<.5?i*(1+n):i+n-i*n,d=2*i-c;a=r._hue2rgb(d,c,t+1/3),l=r._hue2rgb(d,c,t),u=r._hue2rgb(d,c,t-1/3)}return new b(Math.round(a*255),Math.round(l*255),Math.round(u*255),o)}},Ut=class r{constructor(e,t,n,i){this._hsvaBrand=void 0;this.h=Math.max(Math.min(360,e),0)|0,this.s=tt(Math.max(Math.min(1,t),0),3),this.v=tt(Math.max(Math.min(1,n),0),3),this.a=tt(Math.max(Math.min(1,i),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a}static fromRGBA(e){let t=e.r/255,n=e.g/255,i=e.b/255,o=Math.max(t,n,i),a=Math.min(t,n,i),l=o-a,u=o===0?0:l/o,c;return l===0?c=0:o===t?c=((n-i)/l%6+6)%6:o===n?c=(i-t)/l+2:c=(t-n)/l+4,new r(Math.round(c*60),u,o,e.a)}static toRGBA(e){let{h:t,s:n,v:i,a:o}=e,a=i*n,l=a*(1-Math.abs(t/60%2-1)),u=i-a,[c,d,m]=[0,0,0];return t<60?(c=a,d=l):t<120?(c=l,d=a):t<180?(d=a,m=l):t<240?(d=l,m=a):t<300?(c=l,m=a):t<=360&&(c=a,m=l),c=Math.round((c+u)*255),d=Math.round((d+u)*255),m=Math.round((m+u)*255),new b(c,d,m,o)}},mt=class r{static fromHex(e){return r.Format.CSS.parseHex(e)||r.red}static equals(e,t){return!e&&!t?!0:!e||!t?!1:e.equals(t)}get hsla(){return this._hsla?this._hsla:Ce.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:Ut.fromRGBA(this.rgba)}constructor(e){if(e)if(e instanceof b)this.rgba=e;else if(e instanceof Ce)this._hsla=e,this.rgba=Ce.toRGBA(e);else if(e instanceof Ut)this._hsva=e,this.rgba=Ut.toRGBA(e);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(e){return!!e&&b.equals(this.rgba,e.rgba)&&Ce.equals(this.hsla,e.hsla)&&Ut.equals(this.hsva,e.hsva)}getRelativeLuminance(){let e=r._relativeLuminanceForComponent(this.rgba.r),t=r._relativeLuminanceForComponent(this.rgba.g),n=r._relativeLuminanceForComponent(this.rgba.b),i=.2126*e+.7152*t+.0722*n;return tt(i,4)}reduceRelativeLuminace(e,t){let{r:n,g:i,b:o}=e.rgba,a=this.getContrastRatio(e);for(;a<t&&(n>0||i>0||o>0);)n-=Math.max(0,Math.ceil(n*.1)),i-=Math.max(0,Math.ceil(i*.1)),o-=Math.max(0,Math.ceil(o*.1)),a=this.getContrastRatio(new r(new b(n,i,o)));return new r(new b(n,i,o))}increaseRelativeLuminace(e,t){let{r:n,g:i,b:o}=e.rgba,a=this.getContrastRatio(e);for(;a<t&&(n<255||i<255||o<255);)n=Math.min(255,n+Math.ceil((255-n)*.1)),i=Math.min(255,i+Math.ceil((255-i)*.1)),o=Math.min(255,o+Math.ceil((255-o)*.1)),a=this.getContrastRatio(new r(new b(n,i,o)));return new r(new b(n,i,o))}static _relativeLuminanceForComponent(e){let t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}getContrastRatio(e){let t=this.getRelativeLuminance(),n=e.getRelativeLuminance();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)}isDarker(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3<128}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(e){let t=this.getRelativeLuminance(),n=e.getRelativeLuminance();return t>n}isDarkerThan(e){let t=this.getRelativeLuminance(),n=e.getRelativeLuminance();return t<n}ensureConstrast(e,t){let n=this.getRelativeLuminance(),i=e.getRelativeLuminance();if(this.getContrastRatio(e)<t){if(i<n){let u=this.reduceRelativeLuminace(e,t),c=this.getContrastRatio(u);if(c<t){let d=this.increaseRelativeLuminace(e,t),m=this.getContrastRatio(d);return c>m?u:d}return u}let a=this.increaseRelativeLuminace(e,t),l=this.getContrastRatio(a);if(l<t){let u=this.reduceRelativeLuminace(e,t),c=this.getContrastRatio(u);return l>c?a:u}return a}return e}lighten(e){return new r(new Ce(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*e,this.hsla.a))}darken(e){return new r(new Ce(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*e,this.hsla.a))}transparent(e){let{r:t,g:n,b:i,a:o}=this.rgba;return new r(new b(t,n,i,o*e))}isTransparent(){return this.rgba.a===0}isOpaque(){return this.rgba.a===1}opposite(){return new r(new b(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}blend(e){let t=e.rgba,n=this.rgba.a,i=t.a,o=n+i*(1-n);if(o<1e-6)return r.transparent;let a=this.rgba.r*n/o+t.r*i*(1-n)/o,l=this.rgba.g*n/o+t.g*i*(1-n)/o,u=this.rgba.b*n/o+t.b*i*(1-n)/o;return new r(new b(a,l,u,o))}mix(e,t=.5){let n=Math.min(Math.max(t,0),1),i=this.rgba,o=e.rgba,a=i.r+(o.r-i.r)*n,l=i.g+(o.g-i.g)*n,u=i.b+(o.b-i.b)*n,c=i.a+(o.a-i.a)*n;return new r(new b(a,l,u,c))}makeOpaque(e){if(this.isOpaque()||e.rgba.a!==1)return this;let{r:t,g:n,b:i,a:o}=this.rgba;return new r(new b(e.rgba.r-o*(e.rgba.r-t),e.rgba.g-o*(e.rgba.g-n),e.rgba.b-o*(e.rgba.b-i),1))}flatten(...e){let t=e.reduceRight((n,i)=>r._flatten(i,n));return r._flatten(this,t)}static _flatten(e,t){let n=1-e.rgba.a;return new r(new b(n*t.rgba.r+e.rgba.a*e.rgba.r,n*t.rgba.g+e.rgba.a*e.rgba.g,n*t.rgba.b+e.rgba.a*e.rgba.b))}toString(){return this._toString||(this._toString=r.Format.CSS.format(this)),this._toString}toNumber32Bit(){return this._toNumber32Bit||(this._toNumber32Bit=(this.rgba.r<<24|this.rgba.g<<16|this.rgba.b<<8|this.rgba.a*255<<0)>>>0),this._toNumber32Bit}static getLighterColor(e,t,n){if(e.isLighterThan(t))return e;n=n||.5;let i=e.getRelativeLuminance(),o=t.getRelativeLuminance();return n=n*(o-i)/o,e.lighten(n)}static getDarkerColor(e,t,n){if(e.isDarkerThan(t))return e;n=n||.5;let i=e.getRelativeLuminance(),o=t.getRelativeLuminance();return n=n*(i-o)/i,e.darken(n)}static{this.white=new r(new b(255,255,255,1))}static{this.black=new r(new b(0,0,0,1))}static{this.red=new r(new b(255,0,0,1))}static{this.blue=new r(new b(0,0,255,1))}static{this.green=new r(new b(0,255,0,1))}static{this.cyan=new r(new b(0,255,255,1))}static{this.lightgrey=new r(new b(211,211,211,1))}static{this.transparent=new r(new b(0,0,0,0))}};(e=>{let r;(n=>{let t;(_=>{function i(h){return h.rgba.a===1?`rgb(${h.rgba.r}, ${h.rgba.g}, ${h.rgba.b})`:e.Format.CSS.formatRGBA(h)}_.formatRGB=i;function o(h){return`rgba(${h.rgba.r}, ${h.rgba.g}, ${h.rgba.b}, ${+h.rgba.a.toFixed(2)})`}_.formatRGBA=o;function a(h){return h.hsla.a===1?`hsl(${h.hsla.h}, ${Math.round(h.hsla.s*100)}%, ${Math.round(h.hsla.l*100)}%)`:e.Format.CSS.formatHSLA(h)}_.formatHSL=a;function l(h){return`hsla(${h.hsla.h}, ${Math.round(h.hsla.s*100)}%, ${Math.round(h.hsla.l*100)}%, ${h.hsla.a.toFixed(2)})`}_.formatHSLA=l;function u(h){let T=h.toString(16);return T.length!==2?"0"+T:T}function c(h){return`#${u(h.rgba.r)}${u(h.rgba.g)}${u(h.rgba.b)}`}_.formatHex=c;function d(h,T=!1){return T&&h.rgba.a===1?e.Format.CSS.formatHex(h):`#${u(h.rgba.r)}${u(h.rgba.g)}${u(h.rgba.b)}${u(Math.round(h.rgba.a*255))}`}_.formatHexA=d;function m(h){return h.isOpaque()?e.Format.CSS.formatHex(h):e.Format.CSS.formatRGBA(h)}_.format=m;function p(h){if(h==="transparent")return e.transparent;if(h.startsWith("#"))return x(h);if(h.startsWith("rgba(")){let T=h.match(/rgba\((?<r>(?:\+|-)?\d+), *(?<g>(?:\+|-)?\d+), *(?<b>(?:\+|-)?\d+), *(?<a>(?:\+|-)?\d+(\.\d+)?)\)/);if(!T)throw new Error("Invalid color format "+h);let I=parseInt(T.groups?.r??"0"),E=parseInt(T.groups?.g??"0"),k=parseInt(T.groups?.b??"0"),A=parseFloat(T.groups?.a??"0");return new e(new b(I,E,k,A))}if(h.startsWith("rgb(")){let T=h.match(/rgb\((?<r>(?:\+|-)?\d+), *(?<g>(?:\+|-)?\d+), *(?<b>(?:\+|-)?\d+)\)/);if(!T)throw new Error("Invalid color format "+h);let I=parseInt(T.groups?.r??"0"),E=parseInt(T.groups?.g??"0"),k=parseInt(T.groups?.b??"0");return new e(new b(I,E,k))}return g(h)}_.parse=p;function g(h){switch(h){case"aliceblue":return new e(new b(240,248,255,1));case"antiquewhite":return new e(new b(250,235,215,1));case"aqua":return new e(new b(0,255,255,1));case"aquamarine":return new e(new b(127,255,212,1));case"azure":return new e(new b(240,255,255,1));case"beige":return new e(new b(245,245,220,1));case"bisque":return new e(new b(255,228,196,1));case"black":return new e(new b(0,0,0,1));case"blanchedalmond":return new e(new b(255,235,205,1));case"blue":return new e(new b(0,0,255,1));case"blueviolet":return new e(new b(138,43,226,1));case"brown":return new e(new b(165,42,42,1));case"burlywood":return new e(new b(222,184,135,1));case"cadetblue":return new e(new b(95,158,160,1));case"chartreuse":return new e(new b(127,255,0,1));case"chocolate":return new e(new b(210,105,30,1));case"coral":return new e(new b(255,127,80,1));case"cornflowerblue":return new e(new b(100,149,237,1));case"cornsilk":return new e(new b(255,248,220,1));case"crimson":return new e(new b(220,20,60,1));case"cyan":return new e(new b(0,255,255,1));case"darkblue":return new e(new b(0,0,139,1));case"darkcyan":return new e(new b(0,139,139,1));case"darkgoldenrod":return new e(new b(184,134,11,1));case"darkgray":return new e(new b(169,169,169,1));case"darkgreen":return new e(new b(0,100,0,1));case"darkgrey":return new e(new b(169,169,169,1));case"darkkhaki":return new e(new b(189,183,107,1));case"darkmagenta":return new e(new b(139,0,139,1));case"darkolivegreen":return new e(new b(85,107,47,1));case"darkorange":return new e(new b(255,140,0,1));case"darkorchid":return new e(new b(153,50,204,1));case"darkred":return new e(new b(139,0,0,1));case"darksalmon":return new e(new b(233,150,122,1));case"darkseagreen":return new e(new b(143,188,143,1));case"darkslateblue":return new e(new b(72,61,139,1));case"darkslategray":return new e(new b(47,79,79,1));case"darkslategrey":return new e(new b(47,79,79,1));case"darkturquoise":return new e(new b(0,206,209,1));case"darkviolet":return new e(new b(148,0,211,1));case"deeppink":return new e(new b(255,20,147,1));case"deepskyblue":return new e(new b(0,191,255,1));case"dimgray":return new e(new b(105,105,105,1));case"dimgrey":return new e(new b(105,105,105,1));case"dodgerblue":return new e(new b(30,144,255,1));case"firebrick":return new e(new b(178,34,34,1));case"floralwhite":return new e(new b(255,250,240,1));case"forestgreen":return new e(new b(34,139,34,1));case"fuchsia":return new e(new b(255,0,255,1));case"gainsboro":return new e(new b(220,220,220,1));case"ghostwhite":return new e(new b(248,248,255,1));case"gold":return new e(new b(255,215,0,1));case"goldenrod":return new e(new b(218,165,32,1));case"gray":return new e(new b(128,128,128,1));case"green":return new e(new b(0,128,0,1));case"greenyellow":return new e(new b(173,255,47,1));case"grey":return new e(new b(128,128,128,1));case"honeydew":return new e(new b(240,255,240,1));case"hotpink":return new e(new b(255,105,180,1));case"indianred":return new e(new b(205,92,92,1));case"indigo":return new e(new b(75,0,130,1));case"ivory":return new e(new b(255,255,240,1));case"khaki":return new e(new b(240,230,140,1));case"lavender":return new e(new b(230,230,250,1));case"lavenderblush":return new e(new b(255,240,245,1));case"lawngreen":return new e(new b(124,252,0,1));case"lemonchiffon":return new e(new b(255,250,205,1));case"lightblue":return new e(new b(173,216,230,1));case"lightcoral":return new e(new b(240,128,128,1));case"lightcyan":return new e(new b(224,255,255,1));case"lightgoldenrodyellow":return new e(new b(250,250,210,1));case"lightgray":return new e(new b(211,211,211,1));case"lightgreen":return new e(new b(144,238,144,1));case"lightgrey":return new e(new b(211,211,211,1));case"lightpink":return new e(new b(255,182,193,1));case"lightsalmon":return new e(new b(255,160,122,1));case"lightseagreen":return new e(new b(32,178,170,1));case"lightskyblue":return new e(new b(135,206,250,1));case"lightslategray":return new e(new b(119,136,153,1));case"lightslategrey":return new e(new b(119,136,153,1));case"lightsteelblue":return new e(new b(176,196,222,1));case"lightyellow":return new e(new b(255,255,224,1));case"lime":return new e(new b(0,255,0,1));case"limegreen":return new e(new b(50,205,50,1));case"linen":return new e(new b(250,240,230,1));case"magenta":return new e(new b(255,0,255,1));case"maroon":return new e(new b(128,0,0,1));case"mediumaquamarine":return new e(new b(102,205,170,1));case"mediumblue":return new e(new b(0,0,205,1));case"mediumorchid":return new e(new b(186,85,211,1));case"mediumpurple":return new e(new b(147,112,219,1));case"mediumseagreen":return new e(new b(60,179,113,1));case"mediumslateblue":return new e(new b(123,104,238,1));case"mediumspringgreen":return new e(new b(0,250,154,1));case"mediumturquoise":return new e(new b(72,209,204,1));case"mediumvioletred":return new e(new b(199,21,133,1));case"midnightblue":return new e(new b(25,25,112,1));case"mintcream":return new e(new b(245,255,250,1));case"mistyrose":return new e(new b(255,228,225,1));case"moccasin":return new e(new b(255,228,181,1));case"navajowhite":return new e(new b(255,222,173,1));case"navy":return new e(new b(0,0,128,1));case"oldlace":return new e(new b(253,245,230,1));case"olive":return new e(new b(128,128,0,1));case"olivedrab":return new e(new b(107,142,35,1));case"orange":return new e(new b(255,165,0,1));case"orangered":return new e(new b(255,69,0,1));case"orchid":return new e(new b(218,112,214,1));case"palegoldenrod":return new e(new b(238,232,170,1));case"palegreen":return new e(new b(152,251,152,1));case"paleturquoise":return new e(new b(175,238,238,1));case"palevioletred":return new e(new b(219,112,147,1));case"papayawhip":return new e(new b(255,239,213,1));case"peachpuff":return new e(new b(255,218,185,1));case"peru":return new e(new b(205,133,63,1));case"pink":return new e(new b(255,192,203,1));case"plum":return new e(new b(221,160,221,1));case"powderblue":return new e(new b(176,224,230,1));case"purple":return new e(new b(128,0,128,1));case"rebeccapurple":return new e(new b(102,51,153,1));case"red":return new e(new b(255,0,0,1));case"rosybrown":return new e(new b(188,143,143,1));case"royalblue":return new e(new b(65,105,225,1));case"saddlebrown":return new e(new b(139,69,19,1));case"salmon":return new e(new b(250,128,114,1));case"sandybrown":return new e(new b(244,164,96,1));case"seagreen":return new e(new b(46,139,87,1));case"seashell":return new e(new b(255,245,238,1));case"sienna":return new e(new b(160,82,45,1));case"silver":return new e(new b(192,192,192,1));case"skyblue":return new e(new b(135,206,235,1));case"slateblue":return new e(new b(106,90,205,1));case"slategray":return new e(new b(112,128,144,1));case"slategrey":return new e(new b(112,128,144,1));case"snow":return new e(new b(255,250,250,1));case"springgreen":return new e(new b(0,255,127,1));case"steelblue":return new e(new b(70,130,180,1));case"tan":return new e(new b(210,180,140,1));case"teal":return new e(new b(0,128,128,1));case"thistle":return new e(new b(216,191,216,1));case"tomato":return new e(new b(255,99,71,1));case"turquoise":return new e(new b(64,224,208,1));case"violet":return new e(new b(238,130,238,1));case"wheat":return new e(new b(245,222,179,1));case"white":return new e(new b(255,255,255,1));case"whitesmoke":return new e(new b(245,245,245,1));case"yellow":return new e(new b(255,255,0,1));case"yellowgreen":return new e(new b(154,205,50,1));default:return null}}function x(h){let T=h.length;if(T===0||h.charCodeAt(0)!==35)return null;if(T===7){let I=16*y(h.charCodeAt(1))+y(h.charCodeAt(2)),E=16*y(h.charCodeAt(3))+y(h.charCodeAt(4)),k=16*y(h.charCodeAt(5))+y(h.charCodeAt(6));return new e(new b(I,E,k,1))}if(T===9){let I=16*y(h.charCodeAt(1))+y(h.charCodeAt(2)),E=16*y(h.charCodeAt(3))+y(h.charCodeAt(4)),k=16*y(h.charCodeAt(5))+y(h.charCodeAt(6)),A=16*y(h.charCodeAt(7))+y(h.charCodeAt(8));return new e(new b(I,E,k,A/255))}if(T===4){let I=y(h.charCodeAt(1)),E=y(h.charCodeAt(2)),k=y(h.charCodeAt(3));return new e(new b(16*I+I,16*E+E,16*k+k))}if(T===5){let I=y(h.charCodeAt(1)),E=y(h.charCodeAt(2)),k=y(h.charCodeAt(3)),A=y(h.charCodeAt(4));return new e(new b(16*I+I,16*E+E,16*k+k,(16*A+A)/255))}return null}_.parseHex=x;function y(h){switch(h){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:return 10;case 65:return 10;case 98:return 11;case 66:return 11;case 99:return 12;case 67:return 12;case 100:return 13;case 68:return 13;case 101:return 14;case 69:return 14;case 102:return 15;case 70:return 15}return 0}})(t=n.CSS||={})})(r=e.Format||={})})(mt||={});function Vs(r){let e=[];for(let t of r){let n=Number(t);(n||n===0&&t.replace(/\s/g,"")!=="")&&e.push(n)}return e}function Si(r,e,t,n){return{red:r/255,blue:t/255,green:e/255,alpha:n}}function cn(r,e){let t=e.index,n=e[0].length;if(t===void 0)return;let i=r.positionAt(t);return{startLineNumber:i.lineNumber,startColumn:i.column,endLineNumber:i.lineNumber,endColumn:i.column+n}}function Ql(r,e){if(!r)return;let t=mt.Format.CSS.parseHex(e);if(t)return{range:r,color:Si(t.rgba.r,t.rgba.g,t.rgba.b,t.rgba.a)}}function Os(r,e,t){if(!r||e.length!==1)return;let i=e[0].values(),o=Vs(i);return{range:r,color:Si(o[0],o[1],o[2],t?o[3]:1)}}function Bs(r,e,t){if(!r||e.length!==1)return;let i=e[0].values(),o=Vs(i),a=new mt(new Ce(o[0],o[1]/100,o[2]/100,t?o[3]:1));return{range:r,color:Si(a.rgba.r,a.rgba.g,a.rgba.b,a.rgba.a)}}function mn(r,e){return typeof r=="string"?[...r.matchAll(e)]:r.findMatches(e)}function Xl(r){let e=[],n=mn(r,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%\/]*\))|^(#)([A-Fa-f0-9]{3})\b|^(#)([A-Fa-f0-9]{4})\b|^(#)([A-Fa-f0-9]{6})\b|^(#)([A-Fa-f0-9]{8})\b|(?<=['"\s])(#)([A-Fa-f0-9]{3})\b|(?<=['"\s])(#)([A-Fa-f0-9]{4})\b|(?<=['"\s])(#)([A-Fa-f0-9]{6})\b|(?<=['"\s])(#)([A-Fa-f0-9]{8})\b/gm);if(n.length>0)for(let i of n){let o=i.filter(c=>c!==void 0),a=o[1],l=o[2];if(!l)continue;let u;if(a==="rgb"){let c=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*[\s,]\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*[\s,]\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;u=Os(cn(r,i),mn(l,c),!1)}else if(a==="rgba"){let c=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*[\s,]\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*[\s,]\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*(?:[\s,]|[\s]*\/)\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;u=Os(cn(r,i),mn(l,c),!0)}else if(a==="hsl"){let c=/^\(\s*((?:360(?:\.0+)?|(?:36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])(?:\.\d+)?))\s*[\s,]\s*(100(?:\.0+)?|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(100(?:\.0+)?|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;u=Bs(cn(r,i),mn(l,c),!1)}else if(a==="hsla"){let c=/^\(\s*((?:360(?:\.0+)?|(?:36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])(?:\.\d+)?))\s*[\s,]\s*(100(?:\.0+)?|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(100(?:\.0+)?|\d{1,2}[.]\d*|\d{1,2})%\s*(?:[\s,]|[\s]*\/)\s*(0[.][0-9]+|[.][0-9]+|[01][.]0*|[01])\s*\)$/gm;u=Bs(cn(r,i),mn(l,c),!0)}else a==="#"&&(u=Ql(cn(r,i),a+l));u&&e.push(u)}return e}function qs(r){return!r||typeof r.getValue!="function"||typeof r.positionAt!="function"?[]:Xl(r)}var Yl=/^-+|-+$/g,Ws=100,Jl=5;function zs(r,e){let t=[];if(e.findRegionSectionHeaders&&e.foldingRules?.markers){let n=Zl(r,e);t=t.concat(n)}if(e.findMarkSectionHeaders){let n=eu(r,e);t=t.concat(n)}return t}function Zl(r,e){let t=[],n=r.getLineCount();for(let i=1;i<=n;i++){let o=r.getLineContent(i),a=o.match(e.foldingRules.markers.start);if(a){let l={startLineNumber:i,startColumn:a[0].length+1,endLineNumber:i,endColumn:o.length+1};if(l.endColumn>l.startColumn){let u={range:l,...tu(o.substring(a[0].length)),shouldBeInComments:!1};(u.text||u.hasSeparatorLine)&&t.push(u)}}}return t}function eu(r,e){let t=[],n=r.getLineCount();if(!e.markSectionHeaderRegex||e.markSectionHeaderRegex.trim()==="")return t;let i=ms(e.markSectionHeaderRegex),o=new RegExp(e.markSectionHeaderRegex,`gdm${i?"s":""}`);if(Po(o))return t;for(let a=1;a<=n;a+=Ws-Jl){let l=Math.min(a+Ws-1,n),u=[];for(let m=a;m<=l;m++)u.push(r.getLineContent(m));let c=u.join(`
`);o.lastIndex=0;let d;for(;(d=o.exec(c))!==null;){let m=c.substring(0,d.index),p=(m.match(/\n/g)||[]).length,g=a+p,x=d[0].split(`
`),y=x.length,_=g+y-1,h=m.lastIndexOf(`
`)+1,T=d.index-h+1,I=x[x.length-1],E=y===1?T+d[0].length:I.length+1,k={startLineNumber:g,startColumn:T,endLineNumber:_,endColumn:E},A=(d.groups??{}).label??"",v=((d.groups??{}).separator??"")!=="",w={range:k,text:A,hasSeparatorLine:v,shouldBeInComments:!0};(w.text||w.hasSeparatorLine)&&(t.length===0||t[t.length-1].range.endLineNumber<w.range.startLineNumber)&&t.push(w),o.lastIndex=d.index+d[0].length}}return t}function tu(r){r=r.trim();let e=r.startsWith("-");return r=r.replace(Yl,""),{text:r,hasSeparatorLine:e}}function nt(r){return r===47||r===92}function Ei(r){return r.replace(/[\\/]/g,$.sep)}function Hs(r){return r.indexOf("/")===-1&&(r=Ei(r)),/^[a-zA-Z]:(\/|$)/.test(r)&&(r="/"+r),r}function ki(r,e=$.sep){if(!r)return"";let t=r.length,n=r.charCodeAt(0);if(nt(n)){if(nt(r.charCodeAt(1))&&!nt(r.charCodeAt(2))){let o=3,a=o;for(;o<t&&!nt(r.charCodeAt(o));o++);if(a!==o&&!nt(r.charCodeAt(o+1))){for(o+=1;o<t;o++)if(nt(r.charCodeAt(o)))return r.slice(0,o+1).replace(/[\\/]/g,e)}}return e}else if(nu(n)&&r.charCodeAt(1)===58)return nt(r.charCodeAt(2))?r.slice(0,2)+e:r.slice(0,2);let i=r.indexOf("://");if(i!==-1){for(i+=3;i<t;i++)if(nt(r.charCodeAt(i)))return r.slice(0,i+1)}return""}function Ni(r,e,t,n=!1){let i=n?$.sep:Lt;if(r===e)return!0;if(!r||!e||((r.indexOf("..")>=0||e.indexOf("..")>=0)&&(r=n?$.normalize(r):Zt(r),e=n?$.normalize(e):Zt(e)),e.length>r.length))return!1;if(t){if(!Ar(r,e))return!1;if(e.length===r.length)return!0;let a=e.length;return e.charAt(e.length-1)===i&&a--,r.charAt(a)===i}return e.charAt(e.length-1)!==i&&(e+=i),r.indexOf(e)===0}function nu(r){return r>=65&&r<=90||r>=97&&r<=122}function Ge(r){return en(r,!0)}var dn=class{constructor(e){this._ignorePathCasing=e}compare(e,t,n=!1){return e===t?0:Uo(this.getComparisonKey(e,n),this.getComparisonKey(t,n))}isEqual(e,t,n=!1){return e===t?!0:!e||!t?!1:this.getComparisonKey(e,n)===this.getComparisonKey(t,n)}getComparisonKey(e,t=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}ignorePathCasing(e){return this._ignorePathCasing(e)}isEqualOrParent(e,t,n=!1){if(e.scheme===t.scheme){if(e.scheme===ie.file)return Ni(Ge(e),Ge(t),this._ignorePathCasing(e))&&e.query===t.query&&(n||e.fragment===t.fragment);if(Ks(e.authority,t.authority))return Ni(e.path,t.path,this._ignorePathCasing(e),!0)&&e.query===t.query&&(n||e.fragment===t.fragment)}return!1}joinPath(e,...t){return ne.joinPath(e,...t)}basenameOrAuthority(e){return iu(e)||e.authority}basename(e,t){return $.basename(e.path,t)}extname(e){return $.extname(e.path)}dirname(e){if(e.path.length===0)return e;let t;return e.scheme===ie.file?t=ne.file(ts(Ge(e))).path:(t=$.dirname(e.path),e.authority&&t.length&&t.charCodeAt(0)!==47&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t="/")),e.with({path:t})}normalizePath(e){if(!e.path.length)return e;let t;return e.scheme===ie.file?t=ne.file(Zt(Ge(e))).path:t=$.normalize(e.path),e.with({path:t})}relativePath(e,t){if(e.scheme!==t.scheme||!Ks(e.authority,t.authority))return;if(e.scheme===ie.file){let o=es(Ge(e),Ge(t));return Ae?Ei(o):o}let n=e.path||"/",i=t.path||"/";if(this._ignorePathCasing(e)){let o=0;for(let a=Math.min(n.length,i.length);o<a&&!(n.charCodeAt(o)!==i.charCodeAt(o)&&n.charAt(o).toLowerCase()!==i.charAt(o).toLowerCase());o++);n=i.substr(0,o)+n.substr(o)}return $.relative(n,i)}resolvePath(e,t){if(e.scheme===ie.file){let n=ne.file(Zo(Ge(e),t));return e.with({authority:n.authority,path:n.path})}return t=Hs(t),e.with({path:$.resolve(e.path,t)})}isAbsolutePath(e){return!!e.path&&e.path[0]==="/"}isEqualAuthority(e,t){return e===t||e!==void 0&&t!==void 0&&In(e,t)}hasTrailingPathSeparator(e,t=Lt){if(e.scheme===ie.file){let n=Ge(e);return n.length>ki(n).length&&n[n.length-1]===t}else{let n=e.path;return n.length>1&&n.charCodeAt(n.length-1)===47&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e,t=Lt){return js(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,t=Lt){let n=!1;if(e.scheme===ie.file){let i=Ge(e);n=i!==void 0&&i.length===ki(i).length&&i[i.length-1]===t}else{t="/";let i=e.path;n=i.length===1&&i.charCodeAt(i.length-1)===47}return!n&&!js(e,t)?e.with({path:e.path+"/"}):e}},Q=new dn(()=>!1),Tg=new dn(r=>r.scheme===ie.file?!go:!0),wg=new dn(r=>!0),_g=Q.isEqual.bind(Q),Rg=Q.isEqualOrParent.bind(Q),Ig=Q.getComparisonKey.bind(Q),Lg=Q.basenameOrAuthority.bind(Q),iu=Q.basename.bind(Q),Sg=Q.extname.bind(Q),Eg=Q.dirname.bind(Q),kg=Q.joinPath.bind(Q),Ng=Q.normalizePath.bind(Q),Ag=Q.relativePath.bind(Q),Dg=Q.resolvePath.bind(Q),Pg=Q.isAbsolutePath.bind(Q),Ks=Q.isEqualAuthority.bind(Q),js=Q.hasTrailingPathSeparator.bind(Q),Mg=Q.removeTrailingPathSeparator.bind(Q),Cg=Q.addTrailingPathSeparator.bind(Q);var ou;(o=>{o.META_DATA_LABEL="label",o.META_DATA_DESCRIPTION="description",o.META_DATA_SIZE="size",o.META_DATA_MIME="mime";function i(a){let l=new Map;a.path.substring(a.path.indexOf(";")+1,a.path.lastIndexOf(";")).split(";").forEach(d=>{let[m,p]=d.split(":");m&&p&&l.set(m,p)});let c=a.path.substring(0,a.path.indexOf(";"));return c&&l.set(o.META_DATA_MIME,c),l}o.parseMetaData=i})(ou||={});var Zg=2**31-1;var su,Ai;(function(){let r=globalThis;typeof r.requestIdleCallback!="function"||typeof r.cancelIdleCallback!="function"?Ai=(e,t,n)=>{yo(()=>{if(i)return;let o=Date.now()+15;t(Object.freeze({didTimeout:!0,timeRemaining(){return Math.max(0,o-Date.now())}}))});let i=!1;return{dispose(){i||(i=!0)}}}:Ai=(e,t,n)=>{let i=e.requestIdleCallback(t,typeof n=="number"?{timeout:n}:void 0),o=!1;return{dispose(){o||(o=!0,e.cancelIdleCallback(i))}}},su=(e,t)=>Ai(globalThis,e,t)})();var tr=class r{static fromPromise(e){let t=new r;return t.settleWith(e),t}get isRejected(){return this.outcome?.outcome===1}get isResolved(){return this.outcome?.outcome===0}get isSettled(){return!!this.outcome}get value(){return this.outcome?.outcome===0?this.outcome?.value:void 0}constructor(){this.p=new Promise((e,t)=>{this.completeCallback=e,this.errorCallback=t})}complete(e){return this.isSettled?Promise.resolve():new Promise(t=>{this.completeCallback(e),this.outcome={outcome:0,value:e},t()})}error(e){return this.isSettled?Promise.resolve():new Promise(t=>{this.errorCallback(e),this.outcome={outcome:1,value:e},t()})}settleWith(e){return e.then(t=>this.complete(t),t=>this.error(t))}cancel(){return this.error(new dt)}},au;(t=>{async function r(n){let i,o=await Promise.all(n.map(a=>a.then(l=>l,l=>{i||(i=l)})));if(typeof i<"u")throw i;return o}t.settled=r;function e(n){return new Promise(async(i,o)=>{try{await n(i,o)}catch(a){o(a)}})}t.withAsyncBody=e})(au||={});var $s=class r{static fromArray(e){return new r(t=>{t.emitMany(e)})}static fromPromise(e){return new r(async t=>{t.emitMany(await e)})}static fromPromisesResolveOrder(e){return new r(async t=>{await Promise.all(e.map(async n=>t.emitOne(await n)))})}static merge(e){return new r(async t=>{await Promise.all(e.map(async n=>{for await(let i of n)t.emitOne(i)}))})}static{this.EMPTY=r.fromArray([])}constructor(e,t){this._state=0,this._results=[],this._error=null,this._onReturn=t,this._onStateChanged=new oe,queueMicrotask(async()=>{let n={emitOne:i=>this.emitOne(i),emitMany:i=>this.emitMany(i),reject:i=>this.reject(i)};try{await Promise.resolve(e(n)),this.resolve()}catch(i){this.reject(i)}finally{n.emitOne=()=>{},n.emitMany=()=>{},n.reject=()=>{}}})}[Symbol.asyncIterator](){let e=0;return{next:async()=>{do{if(this._state===2)throw this._error;if(e<this._results.length)return{done:!1,value:this._results[e++]};if(this._state===1)return{done:!0,value:void 0};await Kt.toPromise(this._onStateChanged.event)}while(!0)},return:async()=>(this._onReturn?.(),{done:!0,value:void 0})}}static map(e,t){return new r(async n=>{for await(let i of e)n.emitOne(t(i))})}map(e){return r.map(this,e)}static filter(e,t){return new r(async n=>{for await(let i of e)t(i)&&n.emitOne(i)})}filter(e){return r.filter(this,e)}static coalesce(e){return r.filter(e,t=>!!t)}coalesce(){return r.coalesce(this)}static async toPromise(e){let t=[];for await(let n of e)t.push(n);return t}toPromise(){return r.toPromise(this)}emitOne(e){this._state===0&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){this._state===0&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(e){this._state===0&&(this._state=2,this._error=e,this._onStateChanged.fire())}};var Di=class{constructor(){this._unsatisfiedConsumers=[];this._unconsumedValues=[]}get hasFinalValue(){return!!this._finalValue}produce(e){if(this._ensureNoFinalValue(),this._unsatisfiedConsumers.length>0){let t=this._unsatisfiedConsumers.shift();this._resolveOrRejectDeferred(t,e)}else this._unconsumedValues.push(e)}produceFinal(e){this._ensureNoFinalValue(),this._finalValue=e;for(let t of this._unsatisfiedConsumers)this._resolveOrRejectDeferred(t,e);this._unsatisfiedConsumers.length=0}_ensureNoFinalValue(){if(this._finalValue)throw new G("ProducerConsumer: cannot produce after final value has been set")}_resolveOrRejectDeferred(e,t){t.ok?e.complete(t.value):e.error(t.error)}consume(){if(this._unconsumedValues.length>0||this._finalValue){let e=this._unconsumedValues.length>0?this._unconsumedValues.shift():this._finalValue;return e.ok?Promise.resolve(e.value):Promise.reject(e.error)}else{let e=new tr;return this._unsatisfiedConsumers.push(e),e.p}}},Gs=class r{constructor(e,t){this._onReturn=t;this._producerConsumer=new Di;this._iterator={next:()=>this._producerConsumer.consume(),return:()=>(this._onReturn?.(),Promise.resolve({done:!0,value:void 0})),throw:async e=>(this._finishError(e),{done:!0,value:void 0})};queueMicrotask(async()=>{let n=e({emitOne:i=>this._producerConsumer.produce({ok:!0,value:{done:!1,value:i}}),emitMany:i=>{for(let o of i)this._producerConsumer.produce({ok:!0,value:{done:!1,value:o}})},reject:i=>this._finishError(i)});if(!this._producerConsumer.hasFinalValue)try{await n,this._finishOk()}catch(i){this._finishError(i)}})}static fromArray(e){return new r(t=>{t.emitMany(e)})}static fromPromise(e){return new r(async t=>{t.emitMany(await e)})}static fromPromisesResolveOrder(e){return new r(async t=>{await Promise.all(e.map(async n=>t.emitOne(await n)))})}static merge(e){return new r(async t=>{await Promise.all(e.map(async n=>{for await(let i of n)t.emitOne(i)}))})}static{this.EMPTY=r.fromArray([])}static map(e,t){return new r(async n=>{for await(let i of e)n.emitOne(t(i))})}static tee(e){let t,n,i=new tr,o=async()=>{if(!(!t||!n))try{for await(let u of e)t.emitOne(u),n.emitOne(u)}catch(u){t.reject(u),n.reject(u)}finally{i.complete()}},a=new r(async u=>(t=u,o(),i.p)),l=new r(async u=>(n=u,o(),i.p));return[a,l]}map(e){return r.map(this,e)}static coalesce(e){return r.filter(e,t=>!!t)}coalesce(){return r.coalesce(this)}static filter(e,t){return new r(async n=>{for await(let i of e)t(i)&&n.emitOne(i)})}filter(e){return r.filter(this,e)}_finishOk(){this._producerConsumer.hasFinalValue||this._producerConsumer.produceFinal({ok:!0,value:{done:!0,value:void 0}})}_finishError(e){this._producerConsumer.hasFinalValue||this._producerConsumer.produceFinal({ok:!1,error:e})}[Symbol.asyncIterator](){return this._iterator}};var nr=class{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}getCount(){return this.values.length}insertValues(e,t){e=st(e);let n=this.values,i=this.prefixSum,o=t.length;return o===0?!1:(this.values=new Uint32Array(n.length+o),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+o),this.values.set(t,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,t){return e=st(e),t=st(t),this.values[e]===t?!1:(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,t){e=st(e),t=st(t);let n=this.values,i=this.prefixSum;if(e>=n.length)return!1;let o=n.length-e;return t>=o&&(t=o),t===0?!1:(this.values=new Uint32Array(n.length-t),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=st(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;t===0&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let n=t;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let t=0,n=this.values.length-1,i=0,o=0,a=0;for(;t<=n;)if(i=t+(n-t)/2|0,o=this.prefixSum[i],a=o-this.values[i],e<a)n=i-1;else if(e>=o)t=i+1;else break;return new Pi(i,e-a)}};var Pi=class{constructor(e,t){this.index=e;this.remainder=t;this._prefixSumIndexOfResultBrand=void 0;this.index=e,this.remainder=t}};var rr=class{constructor(e,t,n,i){this._uri=e,this._lines=t,this._eol=n,this._versionId=i,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);let t=e.changes;for(let n of t)this._acceptDeleteRange(n.range),this._acceptInsertText(new W(n.range.startLineNumber,n.range.startColumn),n.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){let e=this._eol.length,t=this._lines.length,n=new Uint32Array(t);for(let i=0;i<t;i++)n[i]=this._lines[i].length+e;this._lineStarts=new nr(n)}}_setLineText(e,t){this._lines[e]=t,this._lineStarts&&this._lineStarts.setValue(e,this._lines[e].length+this._eol.length)}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1));return}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(t.length===0)return;let n=Rn(t);if(n.length===1){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));return}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 i=new Uint32Array(n.length-1);for(let o=1;o<n.length;o++)this._lines.splice(e.lineNumber+o-1,0,n[o]),i[o-1]=n[o].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,i)}};var w0=60*1e3,lu="workerTextModelSync";var ir=class{constructor(){this._models=Object.create(null)}bindToServer(e){e.setChannel(lu,this)}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 Mi(ne.parse(e.url),e.lines,e.EOL,e.versionId)}$acceptModelChanged(e,t){if(!this._models[e])return;this._models[e].onEvents(t)}$acceptRemovedModel(e){this._models[e]&&delete this._models[e]}},Mi=class extends rr{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){let t=[];for(let n=0;n<this._lines.length;n++){let i=this._lines[n],o=this.offsetAt(new W(n+1,1)),a=i.matchAll(e);for(let l of a)(l.index||l.index===0)&&(l.index=l.index+o),t.push(l)}return t}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(e){return this._lines[e-1]}getWordAtPosition(e,t){let n=tn(e.column,li(t),this._lines[e.lineNumber-1],0);return n?new D(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null}getWordUntilPosition(e,t){let n=this.getWordAtPosition(e,t);return n?{word:this._lines[e.lineNumber-1].substring(n.startColumn-1,e.column-1),startColumn:n.startColumn,endColumn:e.column}:{word:"",startColumn:e.column,endColumn:e.column}}words(e){let t=this._lines,n=this._wordenize.bind(this),i=0,o="",a=0,l=[];return{*[Symbol.iterator](){for(;;)if(a<l.length){let u=o.substring(l[a].start,l[a].end);a+=1,yield u}else if(i<t.length)o=t[i],l=n(o,e),a=0,i+=1;else break}}}getLineWords(e,t){let n=this._lines[e-1],i=this._wordenize(n,t),o=[];for(let a of i)o.push({word:n.substring(a.start,a.end),startColumn:a.start+1,endColumn:a.end+1});return o}_wordenize(e,t){let n=[],i;for(t.lastIndex=0;(i=t.exec(e))&&i[0].length!==0;)n.push({start:i.index,end:i.index+i[0].length});return n}getValueInRange(e){if(e=this._validateRange(e),e.startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);let t=this._eol,n=e.startLineNumber-1,i=e.endLineNumber-1,o=[];o.push(this._lines[n].substring(e.startColumn-1));for(let a=n+1;a<i;a++)o.push(this._lines[a]);return o.push(this._lines[i].substring(0,e.endColumn-1)),o.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();let t=this._lineStarts.getIndexOf(e),n=this._lines[t.index].length;return{lineNumber:1+t.index,column:1+Math.min(t.remainder,n)}}_validateRange(e){let 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(!W.isIPosition(e))throw new Error("bad position");let{lineNumber:t,column:n}=e,i=!1;if(t<1)t=1,n=1,i=!0;else if(t>this._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,i=!0;else{let o=this._lines[t-1].length+1;n<1?(n=1,i=!0):n>o&&(n=o,i=!0)}return i?{lineNumber:t,column:n}:e}};var or=class r{constructor(e=null){this._foreignModule=e;this._requestHandlerBrand=void 0;this._workerTextModelSyncServer=new ir}dispose(){}async $ping(){return"pong"}_getModel(e){return this._workerTextModelSyncServer.getModel(e)}getModels(){return this._workerTextModelSyncServer.getModels()}$acceptNewModel(e){this._workerTextModelSyncServer.$acceptNewModel(e)}$acceptModelChanged(e,t){this._workerTextModelSyncServer.$acceptModelChanged(e,t)}$acceptRemovedModel(e){this._workerTextModelSyncServer.$acceptRemovedModel(e)}async $computeUnicodeHighlights(e,t,n){let i=this._getModel(e);return i?qn.computeUnicodeHighlights(i,t,n):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async $findSectionHeaders(e,t){let n=this._getModel(e);return n?zs(n,t):[]}async $computeDiff(e,t,n,i){let o=this._getModel(e),a=this._getModel(t);if(!o||!a)return null;let l=await Qs(i);return r.computeDiff(o,a,n,l)}static computeDiff(e,t,n,i){let o=e.getLinesContent(),a=t.getLinesContent(),l=i.computeDiff(o,a,n),u=l.changes.length>0?!1:this._modelsAreIdentical(e,t);function c(d){return d.map(m=>[m.original.startLineNumber,m.original.endLineNumberExclusive,m.modified.startLineNumber,m.modified.endLineNumberExclusive,m.innerChanges?.map(p=>[p.originalRange.startLineNumber,p.originalRange.startColumn,p.originalRange.endLineNumber,p.originalRange.endColumn,p.modifiedRange.startLineNumber,p.modifiedRange.startColumn,p.modifiedRange.endLineNumber,p.modifiedRange.endColumn])])}return{identical:u,quitEarly:l.hitTimeout,changes:c(l.changes),moves:l.moves.map(d=>[d.lineRangeMapping.original.startLineNumber,d.lineRangeMapping.original.endLineNumberExclusive,d.lineRangeMapping.modified.startLineNumber,d.lineRangeMapping.modified.endLineNumberExclusive,c(d.changes)])}}static _modelsAreIdentical(e,t){let n=e.getLineCount(),i=t.getLineCount();if(n!==i)return!1;for(let o=1;o<=n;o++){let a=e.getLineContent(o),l=t.getLineContent(o);if(a!==l)return!1}return!0}async $computeDirtyDiff(e,t,n){let i=this._getModel(e),o=this._getModel(t);if(!i||!o)return null;let a=i.getLinesContent(),l=o.getLinesContent();return new on(a,l,{shouldComputeCharChanges:!1,shouldPostProcessCharChanges:!1,shouldIgnoreTrimWhitespace:n,shouldMakePrettyDiff:!0,maxComputationTime:1e3}).computeDiff().changes}async $computeStringDiff(e,t,n,i){return(await uu(e,t,n,i)).toJson()}static{this._diffLimit=1e5}async $computeMoreMinimalEdits(e,t,n){let i=this._getModel(e);if(!i)return t;let o=[],a;t=t.slice(0).sort((u,c)=>{if(u.range&&c.range)return D.compareRangesUsingStarts(u.range,c.range);let d=u.range?0:1,m=c.range?0:1;return d-m});let l=0;for(let u=1;u<t.length;u++)D.getEndPosition(t[l].range).equals(D.getStartPosition(t[u].range))?(t[l].range=D.fromPositions(D.getStartPosition(t[l].range),D.getEndPosition(t[u].range)),t[l].text+=t[u].text):(l++,t[l]=t[u]);t.length=l+1;for(let{range:u,text:c,eol:d}of t){if(typeof d=="number"&&(a=d),D.isEmpty(u)&&!c)continue;let m=i.getValueInRange(u);if(c=c.replace(/\r\n|\n|\r/g,i.eol),m===c)continue;if(Math.max(c.length,m.length)>r._diffLimit){o.push({range:u,text:c});continue}let p=Go(m,c,n),g=i.offsetAt(D.lift(u).getStartPosition());for(let x of p){let y=i.positionAt(g+x.originalStart),_=i.positionAt(g+x.originalStart+x.originalLength),h={text:c.substr(x.modifiedStart,x.modifiedLength),range:{startLineNumber:y.lineNumber,startColumn:y.column,endLineNumber:_.lineNumber,endColumn:_.column}};i.getValueInRange(h.range)!==h.text&&o.push(h)}}return typeof a=="number"&&o.push({eol:a,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),o}$computeHumanReadableDiff(e,t,n){let i=this._getModel(e);if(!i)return t;let o=[],a;t=t.slice(0).sort((l,u)=>{if(l.range&&u.range)return D.compareRangesUsingStarts(l.range,u.range);let c=l.range?0:1,d=u.range?0:1;return c-d});for(let{range:l,text:u,eol:c}of t){let y=function(h,T){return new W(h.lineNumber+T.lineNumber-1,T.lineNumber===1?h.column+T.column-1:T.column)},_=function(h,T){let I=[];for(let E=T.startLineNumber;E<=T.endLineNumber;E++){let k=h[E-1];E===T.startLineNumber&&E===T.endLineNumber?I.push(k.substring(T.startColumn-1,T.endColumn-1)):E===T.startLineNumber?I.push(k.substring(T.startColumn-1)):E===T.endLineNumber?I.push(k.substring(0,T.endColumn-1)):I.push(k)}return I};if(typeof c=="number"&&(a=c),D.isEmpty(l)&&!u)continue;let d=i.getValueInRange(l);if(u=u.replace(/\r\n|\n|\r/g,i.eol),d===u)continue;if(Math.max(u.length,d.length)>r._diffLimit){o.push({range:l,text:u});continue}let m=d.split(/\r\n|\n|\r/),p=u.split(/\r\n|\n|\r/),g=Ct.getDefault().computeDiff(m,p,n),x=D.lift(l).getStartPosition();for(let h of g.changes)if(h.innerChanges)for(let T of h.innerChanges)o.push({range:D.fromPositions(y(x,T.originalRange.getStartPosition()),y(x,T.originalRange.getEndPosition())),text:_(p,T.modifiedRange).join(i.eol)});else throw new G("The experimental diff algorithm always produces inner changes")}return typeof a=="number"&&o.push({eol:a,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),o}async $computeLinks(e){let t=this._getModel(e);return t?Qo(t):null}async $computeDefaultDocumentColors(e){let t=this._getModel(e);return t?qs(t):null}static{this._suggestionsLimit=1e4}async $textualSuggest(e,t,n,i){let o=new ht,a=new RegExp(n,i),l=new Set;e:for(let u of e){let c=this._getModel(u);if(c){for(let d of c.words(a))if(!(d===t||!isNaN(Number(d)))&&(l.add(d),l.size>r._suggestionsLimit))break e}}return{words:Array.from(l),duration:o.elapsed()}}async $computeWordRanges(e,t,n,i){let o=this._getModel(e);if(!o)return Object.create(null);let a=new RegExp(n,i),l=Object.create(null);for(let u=t.startLineNumber;u<t.endLineNumber;u++){let c=o.getLineWords(u,a);for(let d of c){if(!isNaN(Number(d.word)))continue;let m=l[d.word];m||(m=[],l[d.word]=m),m.push({startLineNumber:u,startColumn:d.startColumn,endLineNumber:u,endColumn:d.endColumn})}}return l}async $navigateValueSet(e,t,n,i,o){let a=this._getModel(e);if(!a)return null;let l=new RegExp(i,o);t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1});let u=a.getValueInRange(t),c=a.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},l);if(!c)return null;let d=a.getValueInRange(c);return Dn.INSTANCE.navigateValueSet(t,u,c,d,n)}$fmr(e,t){if(!this._foreignModule||typeof this._foreignModule[e]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(n){return Promise.reject(n)}}};typeof importScripts=="function"&&(globalThis.monaco=cs());function Qs(r){switch(r){case"legacy":return Ct.getLegacy();case"advanced":return Ct.getDefault();case"advanced-external":return Ct.getAdvancedExternal();case"advanced-wasm":return Ct.getAdvancedWasm()}}async function uu(r,e,t,n){let i=await Qs(n);let o=new ye(r),a=o.getLines(),l=new ye(e),u=l.getLines(),c=i.computeDiff(a,u,{ignoreTrimWhitespace:!1,maxComputationTimeMs:t.maxComputationTimeMs,computeMoves:!1,extendToSubwords:!1}),d=Ee.toTextEdit(c.changes,l);return o.getTransformer().getStringEdit(d)}Wo(()=>new or(null));
