diff --git a/plugin/scripts/worker-service.cjs b/plugin/scripts/worker-service.cjs index 112653fc..69e24943 100755 --- a/plugin/scripts/worker-service.cjs +++ b/plugin/scripts/worker-service.cjs @@ -1,7689 +1,26 @@ -import { createRequire } from "node:module"; -var __create = Object.create; -var __getProtoOf = Object.getPrototypeOf; -var __defProp = Object.defineProperty; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __toESM = (mod, isNodeMode, target) => { - target = mod != null ? __create(__getProtoOf(mod)) : {}; - const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target; - for (let key of __getOwnPropNames(mod)) - if (!__hasOwnProp.call(to, key)) - __defProp(to, key, { - get: () => mod[key], - enumerable: true - }); - return to; -}; -var __moduleCache = /* @__PURE__ */ new WeakMap; -var __toCommonJS = (from) => { - var entry = __moduleCache.get(from), desc; - if (entry) - return entry; - entry = __defProp({}, "__esModule", { value: true }); - if (from && typeof from === "object" || typeof from === "function") - __getOwnPropNames(from).map((key) => !__hasOwnProp.call(entry, key) && __defProp(entry, key, { - get: () => from[key], - enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable - })); - __moduleCache.set(from, entry); - return entry; -}; -var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports); -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { - get: all[name], - enumerable: true, - configurable: true, - set: (newValue) => all[name] = () => newValue - }); -}; -var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res); -var __require = /* @__PURE__ */ createRequire(import.meta.url); - -// node_modules/ajv/dist/compile/codegen/code.js -var require_code = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.regexpCode = exports.getEsmExportName = exports.getProperty = exports.safeStringify = exports.stringify = exports.strConcat = exports.addCodeArg = exports.str = exports._ = exports.nil = exports._Code = exports.Name = exports.IDENTIFIER = exports._CodeOrName = undefined; - - class _CodeOrName { - } - exports._CodeOrName = _CodeOrName; - exports.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i; - - class Name extends _CodeOrName { - constructor(s) { - super(); - if (!exports.IDENTIFIER.test(s)) - throw new Error("CodeGen: name must be a valid identifier"); - this.str = s; - } - toString() { - return this.str; - } - emptyStr() { - return false; - } - get names() { - return { [this.str]: 1 }; - } - } - exports.Name = Name; - - class _Code extends _CodeOrName { - constructor(code) { - super(); - this._items = typeof code === "string" ? [code] : code; - } - toString() { - return this.str; - } - emptyStr() { - if (this._items.length > 1) - return false; - const item = this._items[0]; - return item === "" || item === '""'; - } - get str() { - var _a2; - return (_a2 = this._str) !== null && _a2 !== undefined ? _a2 : this._str = this._items.reduce((s, c) => `${s}${c}`, ""); - } - get names() { - var _a2; - return (_a2 = this._names) !== null && _a2 !== undefined ? _a2 : this._names = this._items.reduce((names, c) => { - if (c instanceof Name) - names[c.str] = (names[c.str] || 0) + 1; - return names; - }, {}); - } - } - exports._Code = _Code; - exports.nil = new _Code(""); - function _(strs, ...args) { - const code = [strs[0]]; - let i = 0; - while (i < args.length) { - addCodeArg(code, args[i]); - code.push(strs[++i]); - } - return new _Code(code); - } - exports._ = _; - var plus = new _Code("+"); - function str(strs, ...args) { - const expr = [safeStringify(strs[0])]; - let i = 0; - while (i < args.length) { - expr.push(plus); - addCodeArg(expr, args[i]); - expr.push(plus, safeStringify(strs[++i])); - } - optimize(expr); - return new _Code(expr); - } - exports.str = str; - function addCodeArg(code, arg) { - if (arg instanceof _Code) - code.push(...arg._items); - else if (arg instanceof Name) - code.push(arg); - else - code.push(interpolate(arg)); - } - exports.addCodeArg = addCodeArg; - function optimize(expr) { - let i = 1; - while (i < expr.length - 1) { - if (expr[i] === plus) { - const res = mergeExprItems(expr[i - 1], expr[i + 1]); - if (res !== undefined) { - expr.splice(i - 1, 3, res); - continue; - } - expr[i++] = "+"; - } - i++; - } - } - function mergeExprItems(a, b) { - if (b === '""') - return a; - if (a === '""') - return b; - if (typeof a == "string") { - if (b instanceof Name || a[a.length - 1] !== '"') - return; - if (typeof b != "string") - return `${a.slice(0, -1)}${b}"`; - if (b[0] === '"') - return a.slice(0, -1) + b.slice(1); - return; - } - if (typeof b == "string" && b[0] === '"' && !(a instanceof Name)) - return `"${a}${b.slice(1)}`; - return; - } - function strConcat(c1, c2) { - return c2.emptyStr() ? c1 : c1.emptyStr() ? c2 : str`${c1}${c2}`; - } - exports.strConcat = strConcat; - function interpolate(x) { - return typeof x == "number" || typeof x == "boolean" || x === null ? x : safeStringify(Array.isArray(x) ? x.join(",") : x); - } - function stringify(x) { - return new _Code(safeStringify(x)); - } - exports.stringify = stringify; - function safeStringify(x) { - return JSON.stringify(x).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029"); - } - exports.safeStringify = safeStringify; - function getProperty(key) { - return typeof key == "string" && exports.IDENTIFIER.test(key) ? new _Code(`.${key}`) : _`[${key}]`; - } - exports.getProperty = getProperty; - function getEsmExportName(key) { - if (typeof key == "string" && exports.IDENTIFIER.test(key)) { - return new _Code(`${key}`); - } - throw new Error(`CodeGen: invalid export name: ${key}, use explicit $id name mapping`); - } - exports.getEsmExportName = getEsmExportName; - function regexpCode(rx) { - return new _Code(rx.toString()); - } - exports.regexpCode = regexpCode; -}); - -// node_modules/ajv/dist/compile/codegen/scope.js -var require_scope = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.ValueScope = exports.ValueScopeName = exports.Scope = exports.varKinds = exports.UsedValueState = undefined; - var code_1 = require_code(); - - class ValueError extends Error { - constructor(name) { - super(`CodeGen: "code" for ${name} not defined`); - this.value = name.value; - } - } - var UsedValueState; - (function(UsedValueState2) { - UsedValueState2[UsedValueState2["Started"] = 0] = "Started"; - UsedValueState2[UsedValueState2["Completed"] = 1] = "Completed"; - })(UsedValueState || (exports.UsedValueState = UsedValueState = {})); - exports.varKinds = { - const: new code_1.Name("const"), - let: new code_1.Name("let"), - var: new code_1.Name("var") - }; - - class Scope { - constructor({ prefixes, parent } = {}) { - this._names = {}; - this._prefixes = prefixes; - this._parent = parent; - } - toName(nameOrPrefix) { - return nameOrPrefix instanceof code_1.Name ? nameOrPrefix : this.name(nameOrPrefix); - } - name(prefix) { - return new code_1.Name(this._newName(prefix)); - } - _newName(prefix) { - const ng = this._names[prefix] || this._nameGroup(prefix); - return `${prefix}${ng.index++}`; - } - _nameGroup(prefix) { - var _a2, _b; - if (((_b = (_a2 = this._parent) === null || _a2 === undefined ? undefined : _a2._prefixes) === null || _b === undefined ? undefined : _b.has(prefix)) || this._prefixes && !this._prefixes.has(prefix)) { - throw new Error(`CodeGen: prefix "${prefix}" is not allowed in this scope`); - } - return this._names[prefix] = { prefix, index: 0 }; - } - } - exports.Scope = Scope; - - class ValueScopeName extends code_1.Name { - constructor(prefix, nameStr) { - super(nameStr); - this.prefix = prefix; - } - setValue(value, { property, itemIndex }) { - this.value = value; - this.scopePath = (0, code_1._)`.${new code_1.Name(property)}[${itemIndex}]`; - } - } - exports.ValueScopeName = ValueScopeName; - var line = (0, code_1._)`\n`; - - class ValueScope extends Scope { - constructor(opts) { - super(opts); - this._values = {}; - this._scope = opts.scope; - this.opts = { ...opts, _n: opts.lines ? line : code_1.nil }; - } - get() { - return this._scope; - } - name(prefix) { - return new ValueScopeName(prefix, this._newName(prefix)); - } - value(nameOrPrefix, value) { - var _a2; - if (value.ref === undefined) - throw new Error("CodeGen: ref must be passed in value"); - const name = this.toName(nameOrPrefix); - const { prefix } = name; - const valueKey = (_a2 = value.key) !== null && _a2 !== undefined ? _a2 : value.ref; - let vs = this._values[prefix]; - if (vs) { - const _name = vs.get(valueKey); - if (_name) - return _name; - } else { - vs = this._values[prefix] = new Map; - } - vs.set(valueKey, name); - const s = this._scope[prefix] || (this._scope[prefix] = []); - const itemIndex = s.length; - s[itemIndex] = value.ref; - name.setValue(value, { property: prefix, itemIndex }); - return name; - } - getValue(prefix, keyOrRef) { - const vs = this._values[prefix]; - if (!vs) - return; - return vs.get(keyOrRef); - } - scopeRefs(scopeName, values = this._values) { - return this._reduceValues(values, (name) => { - if (name.scopePath === undefined) - throw new Error(`CodeGen: name "${name}" has no value`); - return (0, code_1._)`${scopeName}${name.scopePath}`; - }); - } - scopeCode(values = this._values, usedValues, getCode) { - return this._reduceValues(values, (name) => { - if (name.value === undefined) - throw new Error(`CodeGen: name "${name}" has no value`); - return name.value.code; - }, usedValues, getCode); - } - _reduceValues(values, valueCode, usedValues = {}, getCode) { - let code = code_1.nil; - for (const prefix in values) { - const vs = values[prefix]; - if (!vs) - continue; - const nameSet = usedValues[prefix] = usedValues[prefix] || new Map; - vs.forEach((name) => { - if (nameSet.has(name)) - return; - nameSet.set(name, UsedValueState.Started); - let c = valueCode(name); - if (c) { - const def = this.opts.es5 ? exports.varKinds.var : exports.varKinds.const; - code = (0, code_1._)`${code}${def} ${name} = ${c};${this.opts._n}`; - } else if (c = getCode === null || getCode === undefined ? undefined : getCode(name)) { - code = (0, code_1._)`${code}${c}${this.opts._n}`; - } else { - throw new ValueError(name); - } - nameSet.set(name, UsedValueState.Completed); - }); - } - return code; - } - } - exports.ValueScope = ValueScope; -}); - -// node_modules/ajv/dist/compile/codegen/index.js -var require_codegen = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.or = exports.and = exports.not = exports.CodeGen = exports.operators = exports.varKinds = exports.ValueScopeName = exports.ValueScope = exports.Scope = exports.Name = exports.regexpCode = exports.stringify = exports.getProperty = exports.nil = exports.strConcat = exports.str = exports._ = undefined; - var code_1 = require_code(); - var scope_1 = require_scope(); - var code_2 = require_code(); - Object.defineProperty(exports, "_", { enumerable: true, get: function() { - return code_2._; - } }); - Object.defineProperty(exports, "str", { enumerable: true, get: function() { - return code_2.str; - } }); - Object.defineProperty(exports, "strConcat", { enumerable: true, get: function() { - return code_2.strConcat; - } }); - Object.defineProperty(exports, "nil", { enumerable: true, get: function() { - return code_2.nil; - } }); - Object.defineProperty(exports, "getProperty", { enumerable: true, get: function() { - return code_2.getProperty; - } }); - Object.defineProperty(exports, "stringify", { enumerable: true, get: function() { - return code_2.stringify; - } }); - Object.defineProperty(exports, "regexpCode", { enumerable: true, get: function() { - return code_2.regexpCode; - } }); - Object.defineProperty(exports, "Name", { enumerable: true, get: function() { - return code_2.Name; - } }); - var scope_2 = require_scope(); - Object.defineProperty(exports, "Scope", { enumerable: true, get: function() { - return scope_2.Scope; - } }); - Object.defineProperty(exports, "ValueScope", { enumerable: true, get: function() { - return scope_2.ValueScope; - } }); - Object.defineProperty(exports, "ValueScopeName", { enumerable: true, get: function() { - return scope_2.ValueScopeName; - } }); - Object.defineProperty(exports, "varKinds", { enumerable: true, get: function() { - return scope_2.varKinds; - } }); - exports.operators = { - GT: new code_1._Code(">"), - GTE: new code_1._Code(">="), - LT: new code_1._Code("<"), - LTE: new code_1._Code("<="), - EQ: new code_1._Code("==="), - NEQ: new code_1._Code("!=="), - NOT: new code_1._Code("!"), - OR: new code_1._Code("||"), - AND: new code_1._Code("&&"), - ADD: new code_1._Code("+") - }; - - class Node { - optimizeNodes() { - return this; - } - optimizeNames(_names, _constants) { - return this; - } - } - - class Def extends Node { - constructor(varKind, name, rhs) { - super(); - this.varKind = varKind; - this.name = name; - this.rhs = rhs; - } - render({ es5, _n }) { - const varKind = es5 ? scope_1.varKinds.var : this.varKind; - const rhs = this.rhs === undefined ? "" : ` = ${this.rhs}`; - return `${varKind} ${this.name}${rhs};` + _n; - } - optimizeNames(names, constants) { - if (!names[this.name.str]) - return; - if (this.rhs) - this.rhs = optimizeExpr(this.rhs, names, constants); - return this; - } - get names() { - return this.rhs instanceof code_1._CodeOrName ? this.rhs.names : {}; - } - } - - class Assign extends Node { - constructor(lhs, rhs, sideEffects) { - super(); - this.lhs = lhs; - this.rhs = rhs; - this.sideEffects = sideEffects; - } - render({ _n }) { - return `${this.lhs} = ${this.rhs};` + _n; - } - optimizeNames(names, constants) { - if (this.lhs instanceof code_1.Name && !names[this.lhs.str] && !this.sideEffects) - return; - this.rhs = optimizeExpr(this.rhs, names, constants); - return this; - } - get names() { - const names = this.lhs instanceof code_1.Name ? {} : { ...this.lhs.names }; - return addExprNames(names, this.rhs); - } - } - - class AssignOp extends Assign { - constructor(lhs, op, rhs, sideEffects) { - super(lhs, rhs, sideEffects); - this.op = op; - } - render({ _n }) { - return `${this.lhs} ${this.op}= ${this.rhs};` + _n; - } - } - - class Label extends Node { - constructor(label) { - super(); - this.label = label; - this.names = {}; - } - render({ _n }) { - return `${this.label}:` + _n; - } - } - - class Break extends Node { - constructor(label) { - super(); - this.label = label; - this.names = {}; - } - render({ _n }) { - const label = this.label ? ` ${this.label}` : ""; - return `break${label};` + _n; - } - } - - class Throw extends Node { - constructor(error2) { - super(); - this.error = error2; - } - render({ _n }) { - return `throw ${this.error};` + _n; - } - get names() { - return this.error.names; - } - } - - class AnyCode extends Node { - constructor(code) { - super(); - this.code = code; - } - render({ _n }) { - return `${this.code};` + _n; - } - optimizeNodes() { - return `${this.code}` ? this : undefined; - } - optimizeNames(names, constants) { - this.code = optimizeExpr(this.code, names, constants); - return this; - } - get names() { - return this.code instanceof code_1._CodeOrName ? this.code.names : {}; - } - } - - class ParentNode extends Node { - constructor(nodes = []) { - super(); - this.nodes = nodes; - } - render(opts) { - return this.nodes.reduce((code, n) => code + n.render(opts), ""); - } - optimizeNodes() { - const { nodes } = this; - let i = nodes.length; - while (i--) { - const n = nodes[i].optimizeNodes(); - if (Array.isArray(n)) - nodes.splice(i, 1, ...n); - else if (n) - nodes[i] = n; - else - nodes.splice(i, 1); - } - return nodes.length > 0 ? this : undefined; - } - optimizeNames(names, constants) { - const { nodes } = this; - let i = nodes.length; - while (i--) { - const n = nodes[i]; - if (n.optimizeNames(names, constants)) - continue; - subtractNames(names, n.names); - nodes.splice(i, 1); - } - return nodes.length > 0 ? this : undefined; - } - get names() { - return this.nodes.reduce((names, n) => addNames(names, n.names), {}); - } - } - - class BlockNode extends ParentNode { - render(opts) { - return "{" + opts._n + super.render(opts) + "}" + opts._n; - } - } - - class Root extends ParentNode { - } - - class Else extends BlockNode { - } - Else.kind = "else"; - - class If extends BlockNode { - constructor(condition, nodes) { - super(nodes); - this.condition = condition; - } - render(opts) { - let code = `if(${this.condition})` + super.render(opts); - if (this.else) - code += "else " + this.else.render(opts); - return code; - } - optimizeNodes() { - super.optimizeNodes(); - const cond = this.condition; - if (cond === true) - return this.nodes; - let e = this.else; - if (e) { - const ns = e.optimizeNodes(); - e = this.else = Array.isArray(ns) ? new Else(ns) : ns; - } - if (e) { - if (cond === false) - return e instanceof If ? e : e.nodes; - if (this.nodes.length) - return this; - return new If(not(cond), e instanceof If ? [e] : e.nodes); - } - if (cond === false || !this.nodes.length) - return; - return this; - } - optimizeNames(names, constants) { - var _a2; - this.else = (_a2 = this.else) === null || _a2 === undefined ? undefined : _a2.optimizeNames(names, constants); - if (!(super.optimizeNames(names, constants) || this.else)) - return; - this.condition = optimizeExpr(this.condition, names, constants); - return this; - } - get names() { - const names = super.names; - addExprNames(names, this.condition); - if (this.else) - addNames(names, this.else.names); - return names; - } - } - If.kind = "if"; - - class For extends BlockNode { - } - For.kind = "for"; - - class ForLoop extends For { - constructor(iteration) { - super(); - this.iteration = iteration; - } - render(opts) { - return `for(${this.iteration})` + super.render(opts); - } - optimizeNames(names, constants) { - if (!super.optimizeNames(names, constants)) - return; - this.iteration = optimizeExpr(this.iteration, names, constants); - return this; - } - get names() { - return addNames(super.names, this.iteration.names); - } - } - - class ForRange extends For { - constructor(varKind, name, from, to) { - super(); - this.varKind = varKind; - this.name = name; - this.from = from; - this.to = to; - } - render(opts) { - const varKind = opts.es5 ? scope_1.varKinds.var : this.varKind; - const { name, from, to } = this; - return `for(${varKind} ${name}=${from}; ${name}<${to}; ${name}++)` + super.render(opts); - } - get names() { - const names = addExprNames(super.names, this.from); - return addExprNames(names, this.to); - } - } - - class ForIter extends For { - constructor(loop, varKind, name, iterable) { - super(); - this.loop = loop; - this.varKind = varKind; - this.name = name; - this.iterable = iterable; - } - render(opts) { - return `for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})` + super.render(opts); - } - optimizeNames(names, constants) { - if (!super.optimizeNames(names, constants)) - return; - this.iterable = optimizeExpr(this.iterable, names, constants); - return this; - } - get names() { - return addNames(super.names, this.iterable.names); - } - } - - class Func extends BlockNode { - constructor(name, args, async) { - super(); - this.name = name; - this.args = args; - this.async = async; - } - render(opts) { - const _async = this.async ? "async " : ""; - return `${_async}function ${this.name}(${this.args})` + super.render(opts); - } - } - Func.kind = "func"; - - class Return extends ParentNode { - render(opts) { - return "return " + super.render(opts); - } - } - Return.kind = "return"; - - class Try extends BlockNode { - render(opts) { - let code = "try" + super.render(opts); - if (this.catch) - code += this.catch.render(opts); - if (this.finally) - code += this.finally.render(opts); - return code; - } - optimizeNodes() { - var _a2, _b; - super.optimizeNodes(); - (_a2 = this.catch) === null || _a2 === undefined || _a2.optimizeNodes(); - (_b = this.finally) === null || _b === undefined || _b.optimizeNodes(); - return this; - } - optimizeNames(names, constants) { - var _a2, _b; - super.optimizeNames(names, constants); - (_a2 = this.catch) === null || _a2 === undefined || _a2.optimizeNames(names, constants); - (_b = this.finally) === null || _b === undefined || _b.optimizeNames(names, constants); - return this; - } - get names() { - const names = super.names; - if (this.catch) - addNames(names, this.catch.names); - if (this.finally) - addNames(names, this.finally.names); - return names; - } - } - - class Catch extends BlockNode { - constructor(error2) { - super(); - this.error = error2; - } - render(opts) { - return `catch(${this.error})` + super.render(opts); - } - } - Catch.kind = "catch"; - - class Finally extends BlockNode { - render(opts) { - return "finally" + super.render(opts); - } - } - Finally.kind = "finally"; - - class CodeGen { - constructor(extScope, opts = {}) { - this._values = {}; - this._blockStarts = []; - this._constants = {}; - this.opts = { ...opts, _n: opts.lines ? ` -` : "" }; - this._extScope = extScope; - this._scope = new scope_1.Scope({ parent: extScope }); - this._nodes = [new Root]; - } - toString() { - return this._root.render(this.opts); - } - name(prefix) { - return this._scope.name(prefix); - } - scopeName(prefix) { - return this._extScope.name(prefix); - } - scopeValue(prefixOrName, value) { - const name = this._extScope.value(prefixOrName, value); - const vs = this._values[name.prefix] || (this._values[name.prefix] = new Set); - vs.add(name); - return name; - } - getScopeValue(prefix, keyOrRef) { - return this._extScope.getValue(prefix, keyOrRef); - } - scopeRefs(scopeName) { - return this._extScope.scopeRefs(scopeName, this._values); - } - scopeCode() { - return this._extScope.scopeCode(this._values); - } - _def(varKind, nameOrPrefix, rhs, constant) { - const name = this._scope.toName(nameOrPrefix); - if (rhs !== undefined && constant) - this._constants[name.str] = rhs; - this._leafNode(new Def(varKind, name, rhs)); - return name; - } - const(nameOrPrefix, rhs, _constant) { - return this._def(scope_1.varKinds.const, nameOrPrefix, rhs, _constant); - } - let(nameOrPrefix, rhs, _constant) { - return this._def(scope_1.varKinds.let, nameOrPrefix, rhs, _constant); - } - var(nameOrPrefix, rhs, _constant) { - return this._def(scope_1.varKinds.var, nameOrPrefix, rhs, _constant); - } - assign(lhs, rhs, sideEffects) { - return this._leafNode(new Assign(lhs, rhs, sideEffects)); - } - add(lhs, rhs) { - return this._leafNode(new AssignOp(lhs, exports.operators.ADD, rhs)); - } - code(c) { - if (typeof c == "function") - c(); - else if (c !== code_1.nil) - this._leafNode(new AnyCode(c)); - return this; - } - object(...keyValues) { - const code = ["{"]; - for (const [key, value] of keyValues) { - if (code.length > 1) - code.push(","); - code.push(key); - if (key !== value || this.opts.es5) { - code.push(":"); - (0, code_1.addCodeArg)(code, value); - } - } - code.push("}"); - return new code_1._Code(code); - } - if(condition, thenBody, elseBody) { - this._blockNode(new If(condition)); - if (thenBody && elseBody) { - this.code(thenBody).else().code(elseBody).endIf(); - } else if (thenBody) { - this.code(thenBody).endIf(); - } else if (elseBody) { - throw new Error('CodeGen: "else" body without "then" body'); - } - return this; - } - elseIf(condition) { - return this._elseNode(new If(condition)); - } - else() { - return this._elseNode(new Else); - } - endIf() { - return this._endBlockNode(If, Else); - } - _for(node, forBody) { - this._blockNode(node); - if (forBody) - this.code(forBody).endFor(); - return this; - } - for(iteration, forBody) { - return this._for(new ForLoop(iteration), forBody); - } - forRange(nameOrPrefix, from, to, forBody, varKind = this.opts.es5 ? scope_1.varKinds.var : scope_1.varKinds.let) { - const name = this._scope.toName(nameOrPrefix); - return this._for(new ForRange(varKind, name, from, to), () => forBody(name)); - } - forOf(nameOrPrefix, iterable, forBody, varKind = scope_1.varKinds.const) { - const name = this._scope.toName(nameOrPrefix); - if (this.opts.es5) { - const arr = iterable instanceof code_1.Name ? iterable : this.var("_arr", iterable); - return this.forRange("_i", 0, (0, code_1._)`${arr}.length`, (i) => { - this.var(name, (0, code_1._)`${arr}[${i}]`); - forBody(name); - }); - } - return this._for(new ForIter("of", varKind, name, iterable), () => forBody(name)); - } - forIn(nameOrPrefix, obj, forBody, varKind = this.opts.es5 ? scope_1.varKinds.var : scope_1.varKinds.const) { - if (this.opts.ownProperties) { - return this.forOf(nameOrPrefix, (0, code_1._)`Object.keys(${obj})`, forBody); - } - const name = this._scope.toName(nameOrPrefix); - return this._for(new ForIter("in", varKind, name, obj), () => forBody(name)); - } - endFor() { - return this._endBlockNode(For); - } - label(label) { - return this._leafNode(new Label(label)); - } - break(label) { - return this._leafNode(new Break(label)); - } - return(value) { - const node = new Return; - this._blockNode(node); - this.code(value); - if (node.nodes.length !== 1) - throw new Error('CodeGen: "return" should have one node'); - return this._endBlockNode(Return); - } - try(tryBody, catchCode, finallyCode) { - if (!catchCode && !finallyCode) - throw new Error('CodeGen: "try" without "catch" and "finally"'); - const node = new Try; - this._blockNode(node); - this.code(tryBody); - if (catchCode) { - const error2 = this.name("e"); - this._currNode = node.catch = new Catch(error2); - catchCode(error2); - } - if (finallyCode) { - this._currNode = node.finally = new Finally; - this.code(finallyCode); - } - return this._endBlockNode(Catch, Finally); - } - throw(error2) { - return this._leafNode(new Throw(error2)); - } - block(body, nodeCount) { - this._blockStarts.push(this._nodes.length); - if (body) - this.code(body).endBlock(nodeCount); - return this; - } - endBlock(nodeCount) { - const len = this._blockStarts.pop(); - if (len === undefined) - throw new Error("CodeGen: not in self-balancing block"); - const toClose = this._nodes.length - len; - if (toClose < 0 || nodeCount !== undefined && toClose !== nodeCount) { - throw new Error(`CodeGen: wrong number of nodes: ${toClose} vs ${nodeCount} expected`); - } - this._nodes.length = len; - return this; - } - func(name, args = code_1.nil, async, funcBody) { - this._blockNode(new Func(name, args, async)); - if (funcBody) - this.code(funcBody).endFunc(); - return this; - } - endFunc() { - return this._endBlockNode(Func); - } - optimize(n = 1) { - while (n-- > 0) { - this._root.optimizeNodes(); - this._root.optimizeNames(this._root.names, this._constants); - } - } - _leafNode(node) { - this._currNode.nodes.push(node); - return this; - } - _blockNode(node) { - this._currNode.nodes.push(node); - this._nodes.push(node); - } - _endBlockNode(N1, N2) { - const n = this._currNode; - if (n instanceof N1 || N2 && n instanceof N2) { - this._nodes.pop(); - return this; - } - throw new Error(`CodeGen: not in block "${N2 ? `${N1.kind}/${N2.kind}` : N1.kind}"`); - } - _elseNode(node) { - const n = this._currNode; - if (!(n instanceof If)) { - throw new Error('CodeGen: "else" without "if"'); - } - this._currNode = n.else = node; - return this; - } - get _root() { - return this._nodes[0]; - } - get _currNode() { - const ns = this._nodes; - return ns[ns.length - 1]; - } - set _currNode(node) { - const ns = this._nodes; - ns[ns.length - 1] = node; - } - } - exports.CodeGen = CodeGen; - function addNames(names, from) { - for (const n in from) - names[n] = (names[n] || 0) + (from[n] || 0); - return names; - } - function addExprNames(names, from) { - return from instanceof code_1._CodeOrName ? addNames(names, from.names) : names; - } - function optimizeExpr(expr, names, constants) { - if (expr instanceof code_1.Name) - return replaceName(expr); - if (!canOptimize(expr)) - return expr; - return new code_1._Code(expr._items.reduce((items, c) => { - if (c instanceof code_1.Name) - c = replaceName(c); - if (c instanceof code_1._Code) - items.push(...c._items); - else - items.push(c); - return items; - }, [])); - function replaceName(n) { - const c = constants[n.str]; - if (c === undefined || names[n.str] !== 1) - return n; - delete names[n.str]; - return c; - } - function canOptimize(e) { - return e instanceof code_1._Code && e._items.some((c) => c instanceof code_1.Name && names[c.str] === 1 && constants[c.str] !== undefined); - } - } - function subtractNames(names, from) { - for (const n in from) - names[n] = (names[n] || 0) - (from[n] || 0); - } - function not(x) { - return typeof x == "boolean" || typeof x == "number" || x === null ? !x : (0, code_1._)`!${par(x)}`; - } - exports.not = not; - var andCode = mappend(exports.operators.AND); - function and(...args) { - return args.reduce(andCode); - } - exports.and = and; - var orCode = mappend(exports.operators.OR); - function or(...args) { - return args.reduce(orCode); - } - exports.or = or; - function mappend(op) { - return (x, y) => x === code_1.nil ? y : y === code_1.nil ? x : (0, code_1._)`${par(x)} ${op} ${par(y)}`; - } - function par(x) { - return x instanceof code_1.Name ? x : (0, code_1._)`(${x})`; - } -}); - -// node_modules/ajv/dist/compile/util.js -var require_util = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.checkStrictMode = exports.getErrorPath = exports.Type = exports.useFunc = exports.setEvaluated = exports.evaluatedPropsToName = exports.mergeEvaluated = exports.eachItem = exports.unescapeJsonPointer = exports.escapeJsonPointer = exports.escapeFragment = exports.unescapeFragment = exports.schemaRefOrVal = exports.schemaHasRulesButRef = exports.schemaHasRules = exports.checkUnknownRules = exports.alwaysValidSchema = exports.toHash = undefined; - var codegen_1 = require_codegen(); - var code_1 = require_code(); - function toHash(arr) { - const hash = {}; - for (const item of arr) - hash[item] = true; - return hash; - } - exports.toHash = toHash; - function alwaysValidSchema(it, schema) { - if (typeof schema == "boolean") - return schema; - if (Object.keys(schema).length === 0) - return true; - checkUnknownRules(it, schema); - return !schemaHasRules(schema, it.self.RULES.all); - } - exports.alwaysValidSchema = alwaysValidSchema; - function checkUnknownRules(it, schema = it.schema) { - const { opts, self: self2 } = it; - if (!opts.strictSchema) - return; - if (typeof schema === "boolean") - return; - const rules = self2.RULES.keywords; - for (const key in schema) { - if (!rules[key]) - checkStrictMode(it, `unknown keyword: "${key}"`); - } - } - exports.checkUnknownRules = checkUnknownRules; - function schemaHasRules(schema, rules) { - if (typeof schema == "boolean") - return !schema; - for (const key in schema) - if (rules[key]) - return true; - return false; - } - exports.schemaHasRules = schemaHasRules; - function schemaHasRulesButRef(schema, RULES) { - if (typeof schema == "boolean") - return !schema; - for (const key in schema) - if (key !== "$ref" && RULES.all[key]) - return true; - return false; - } - exports.schemaHasRulesButRef = schemaHasRulesButRef; - function schemaRefOrVal({ topSchemaRef, schemaPath }, schema, keyword, $data) { - if (!$data) { - if (typeof schema == "number" || typeof schema == "boolean") - return schema; - if (typeof schema == "string") - return (0, codegen_1._)`${schema}`; - } - return (0, codegen_1._)`${topSchemaRef}${schemaPath}${(0, codegen_1.getProperty)(keyword)}`; - } - exports.schemaRefOrVal = schemaRefOrVal; - function unescapeFragment(str) { - return unescapeJsonPointer(decodeURIComponent(str)); - } - exports.unescapeFragment = unescapeFragment; - function escapeFragment(str) { - return encodeURIComponent(escapeJsonPointer(str)); - } - exports.escapeFragment = escapeFragment; - function escapeJsonPointer(str) { - if (typeof str == "number") - return `${str}`; - return str.replace(/~/g, "~0").replace(/\//g, "~1"); - } - exports.escapeJsonPointer = escapeJsonPointer; - function unescapeJsonPointer(str) { - return str.replace(/~1/g, "/").replace(/~0/g, "~"); - } - exports.unescapeJsonPointer = unescapeJsonPointer; - function eachItem(xs, f) { - if (Array.isArray(xs)) { - for (const x of xs) - f(x); - } else { - f(xs); - } - } - exports.eachItem = eachItem; - function makeMergeEvaluated({ mergeNames, mergeToName, mergeValues: mergeValues2, resultToName }) { - return (gen, from, to, toName) => { - const res = to === undefined ? from : to instanceof codegen_1.Name ? (from instanceof codegen_1.Name ? mergeNames(gen, from, to) : mergeToName(gen, from, to), to) : from instanceof codegen_1.Name ? (mergeToName(gen, to, from), from) : mergeValues2(from, to); - return toName === codegen_1.Name && !(res instanceof codegen_1.Name) ? resultToName(gen, res) : res; - }; - } - exports.mergeEvaluated = { - props: makeMergeEvaluated({ - mergeNames: (gen, from, to) => gen.if((0, codegen_1._)`${to} !== true && ${from} !== undefined`, () => { - gen.if((0, codegen_1._)`${from} === true`, () => gen.assign(to, true), () => gen.assign(to, (0, codegen_1._)`${to} || {}`).code((0, codegen_1._)`Object.assign(${to}, ${from})`)); - }), - mergeToName: (gen, from, to) => gen.if((0, codegen_1._)`${to} !== true`, () => { - if (from === true) { - gen.assign(to, true); - } else { - gen.assign(to, (0, codegen_1._)`${to} || {}`); - setEvaluated(gen, to, from); - } - }), - mergeValues: (from, to) => from === true ? true : { ...from, ...to }, - resultToName: evaluatedPropsToName - }), - items: makeMergeEvaluated({ - mergeNames: (gen, from, to) => gen.if((0, codegen_1._)`${to} !== true && ${from} !== undefined`, () => gen.assign(to, (0, codegen_1._)`${from} === true ? true : ${to} > ${from} ? ${to} : ${from}`)), - mergeToName: (gen, from, to) => gen.if((0, codegen_1._)`${to} !== true`, () => gen.assign(to, from === true ? true : (0, codegen_1._)`${to} > ${from} ? ${to} : ${from}`)), - mergeValues: (from, to) => from === true ? true : Math.max(from, to), - resultToName: (gen, items) => gen.var("items", items) - }) - }; - function evaluatedPropsToName(gen, ps) { - if (ps === true) - return gen.var("props", true); - const props = gen.var("props", (0, codegen_1._)`{}`); - if (ps !== undefined) - setEvaluated(gen, props, ps); - return props; - } - exports.evaluatedPropsToName = evaluatedPropsToName; - function setEvaluated(gen, props, ps) { - Object.keys(ps).forEach((p) => gen.assign((0, codegen_1._)`${props}${(0, codegen_1.getProperty)(p)}`, true)); - } - exports.setEvaluated = setEvaluated; - var snippets = {}; - function useFunc(gen, f) { - return gen.scopeValue("func", { - ref: f, - code: snippets[f.code] || (snippets[f.code] = new code_1._Code(f.code)) - }); - } - exports.useFunc = useFunc; - var Type; - (function(Type2) { - Type2[Type2["Num"] = 0] = "Num"; - Type2[Type2["Str"] = 1] = "Str"; - })(Type || (exports.Type = Type = {})); - function getErrorPath(dataProp, dataPropType, jsPropertySyntax) { - if (dataProp instanceof codegen_1.Name) { - const isNumber = dataPropType === Type.Num; - return jsPropertySyntax ? isNumber ? (0, codegen_1._)`"[" + ${dataProp} + "]"` : (0, codegen_1._)`"['" + ${dataProp} + "']"` : isNumber ? (0, codegen_1._)`"/" + ${dataProp}` : (0, codegen_1._)`"/" + ${dataProp}.replace(/~/g, "~0").replace(/\\//g, "~1")`; - } - return jsPropertySyntax ? (0, codegen_1.getProperty)(dataProp).toString() : "/" + escapeJsonPointer(dataProp); - } - exports.getErrorPath = getErrorPath; - function checkStrictMode(it, msg, mode = it.opts.strictSchema) { - if (!mode) - return; - msg = `strict mode: ${msg}`; - if (mode === true) - throw new Error(msg); - it.self.logger.warn(msg); - } - exports.checkStrictMode = checkStrictMode; -}); - -// node_modules/ajv/dist/compile/names.js -var require_names = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var codegen_1 = require_codegen(); - var names = { - data: new codegen_1.Name("data"), - valCxt: new codegen_1.Name("valCxt"), - instancePath: new codegen_1.Name("instancePath"), - parentData: new codegen_1.Name("parentData"), - parentDataProperty: new codegen_1.Name("parentDataProperty"), - rootData: new codegen_1.Name("rootData"), - dynamicAnchors: new codegen_1.Name("dynamicAnchors"), - vErrors: new codegen_1.Name("vErrors"), - errors: new codegen_1.Name("errors"), - this: new codegen_1.Name("this"), - self: new codegen_1.Name("self"), - scope: new codegen_1.Name("scope"), - json: new codegen_1.Name("json"), - jsonPos: new codegen_1.Name("jsonPos"), - jsonLen: new codegen_1.Name("jsonLen"), - jsonPart: new codegen_1.Name("jsonPart") - }; - exports.default = names; -}); - -// node_modules/ajv/dist/compile/errors.js -var require_errors = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.extendErrors = exports.resetErrorsCount = exports.reportExtraError = exports.reportError = exports.keyword$DataError = exports.keywordError = undefined; - var codegen_1 = require_codegen(); - var util_1 = require_util(); - var names_1 = require_names(); - exports.keywordError = { - message: ({ keyword }) => (0, codegen_1.str)`must pass "${keyword}" keyword validation` - }; - exports.keyword$DataError = { - message: ({ keyword, schemaType }) => schemaType ? (0, codegen_1.str)`"${keyword}" keyword must be ${schemaType} ($data)` : (0, codegen_1.str)`"${keyword}" keyword is invalid ($data)` - }; - function reportError(cxt, error2 = exports.keywordError, errorPaths, overrideAllErrors) { - const { it } = cxt; - const { gen, compositeRule, allErrors } = it; - const errObj = errorObjectCode(cxt, error2, errorPaths); - if (overrideAllErrors !== null && overrideAllErrors !== undefined ? overrideAllErrors : compositeRule || allErrors) { - addError(gen, errObj); - } else { - returnErrors(it, (0, codegen_1._)`[${errObj}]`); - } - } - exports.reportError = reportError; - function reportExtraError(cxt, error2 = exports.keywordError, errorPaths) { - const { it } = cxt; - const { gen, compositeRule, allErrors } = it; - const errObj = errorObjectCode(cxt, error2, errorPaths); - addError(gen, errObj); - if (!(compositeRule || allErrors)) { - returnErrors(it, names_1.default.vErrors); - } - } - exports.reportExtraError = reportExtraError; - function resetErrorsCount(gen, errsCount) { - gen.assign(names_1.default.errors, errsCount); - gen.if((0, codegen_1._)`${names_1.default.vErrors} !== null`, () => gen.if(errsCount, () => gen.assign((0, codegen_1._)`${names_1.default.vErrors}.length`, errsCount), () => gen.assign(names_1.default.vErrors, null))); - } - exports.resetErrorsCount = resetErrorsCount; - function extendErrors({ gen, keyword, schemaValue, data, errsCount, it }) { - if (errsCount === undefined) - throw new Error("ajv implementation error"); - const err = gen.name("err"); - gen.forRange("i", errsCount, names_1.default.errors, (i) => { - gen.const(err, (0, codegen_1._)`${names_1.default.vErrors}[${i}]`); - gen.if((0, codegen_1._)`${err}.instancePath === undefined`, () => gen.assign((0, codegen_1._)`${err}.instancePath`, (0, codegen_1.strConcat)(names_1.default.instancePath, it.errorPath))); - gen.assign((0, codegen_1._)`${err}.schemaPath`, (0, codegen_1.str)`${it.errSchemaPath}/${keyword}`); - if (it.opts.verbose) { - gen.assign((0, codegen_1._)`${err}.schema`, schemaValue); - gen.assign((0, codegen_1._)`${err}.data`, data); - } - }); - } - exports.extendErrors = extendErrors; - function addError(gen, errObj) { - const err = gen.const("err", errObj); - gen.if((0, codegen_1._)`${names_1.default.vErrors} === null`, () => gen.assign(names_1.default.vErrors, (0, codegen_1._)`[${err}]`), (0, codegen_1._)`${names_1.default.vErrors}.push(${err})`); - gen.code((0, codegen_1._)`${names_1.default.errors}++`); - } - function returnErrors(it, errs) { - const { gen, validateName, schemaEnv } = it; - if (schemaEnv.$async) { - gen.throw((0, codegen_1._)`new ${it.ValidationError}(${errs})`); - } else { - gen.assign((0, codegen_1._)`${validateName}.errors`, errs); - gen.return(false); - } - } - var E = { - keyword: new codegen_1.Name("keyword"), - schemaPath: new codegen_1.Name("schemaPath"), - params: new codegen_1.Name("params"), - propertyName: new codegen_1.Name("propertyName"), - message: new codegen_1.Name("message"), - schema: new codegen_1.Name("schema"), - parentSchema: new codegen_1.Name("parentSchema") - }; - function errorObjectCode(cxt, error2, errorPaths) { - const { createErrors } = cxt.it; - if (createErrors === false) - return (0, codegen_1._)`{}`; - return errorObject(cxt, error2, errorPaths); - } - function errorObject(cxt, error2, errorPaths = {}) { - const { gen, it } = cxt; - const keyValues = [ - errorInstancePath(it, errorPaths), - errorSchemaPath(cxt, errorPaths) - ]; - extraErrorProps(cxt, error2, keyValues); - return gen.object(...keyValues); - } - function errorInstancePath({ errorPath }, { instancePath }) { - const instPath = instancePath ? (0, codegen_1.str)`${errorPath}${(0, util_1.getErrorPath)(instancePath, util_1.Type.Str)}` : errorPath; - return [names_1.default.instancePath, (0, codegen_1.strConcat)(names_1.default.instancePath, instPath)]; - } - function errorSchemaPath({ keyword, it: { errSchemaPath } }, { schemaPath, parentSchema }) { - let schPath = parentSchema ? errSchemaPath : (0, codegen_1.str)`${errSchemaPath}/${keyword}`; - if (schemaPath) { - schPath = (0, codegen_1.str)`${schPath}${(0, util_1.getErrorPath)(schemaPath, util_1.Type.Str)}`; - } - return [E.schemaPath, schPath]; - } - function extraErrorProps(cxt, { params, message }, keyValues) { - const { keyword, data, schemaValue, it } = cxt; - const { opts, propertyName, topSchemaRef, schemaPath } = it; - keyValues.push([E.keyword, keyword], [E.params, typeof params == "function" ? params(cxt) : params || (0, codegen_1._)`{}`]); - if (opts.messages) { - keyValues.push([E.message, typeof message == "function" ? message(cxt) : message]); - } - if (opts.verbose) { - keyValues.push([E.schema, schemaValue], [E.parentSchema, (0, codegen_1._)`${topSchemaRef}${schemaPath}`], [names_1.default.data, data]); - } - if (propertyName) - keyValues.push([E.propertyName, propertyName]); - } -}); - -// node_modules/ajv/dist/compile/validate/boolSchema.js -var require_boolSchema = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.boolOrEmptySchema = exports.topBoolOrEmptySchema = undefined; - var errors_1 = require_errors(); - var codegen_1 = require_codegen(); - var names_1 = require_names(); - var boolError = { - message: "boolean schema is false" - }; - function topBoolOrEmptySchema(it) { - const { gen, schema, validateName } = it; - if (schema === false) { - falseSchemaError(it, false); - } else if (typeof schema == "object" && schema.$async === true) { - gen.return(names_1.default.data); - } else { - gen.assign((0, codegen_1._)`${validateName}.errors`, null); - gen.return(true); - } - } - exports.topBoolOrEmptySchema = topBoolOrEmptySchema; - function boolOrEmptySchema(it, valid) { - const { gen, schema } = it; - if (schema === false) { - gen.var(valid, false); - falseSchemaError(it); - } else { - gen.var(valid, true); - } - } - exports.boolOrEmptySchema = boolOrEmptySchema; - function falseSchemaError(it, overrideAllErrors) { - const { gen, data } = it; - const cxt = { - gen, - keyword: "false schema", - data, - schema: false, - schemaCode: false, - schemaValue: false, - params: {}, - it - }; - (0, errors_1.reportError)(cxt, boolError, undefined, overrideAllErrors); - } -}); - -// node_modules/ajv/dist/compile/rules.js -var require_rules = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getRules = exports.isJSONType = undefined; - var _jsonTypes = ["string", "number", "integer", "boolean", "null", "object", "array"]; - var jsonTypes = new Set(_jsonTypes); - function isJSONType(x) { - return typeof x == "string" && jsonTypes.has(x); - } - exports.isJSONType = isJSONType; - function getRules() { - const groups = { - number: { type: "number", rules: [] }, - string: { type: "string", rules: [] }, - array: { type: "array", rules: [] }, - object: { type: "object", rules: [] } - }; - return { - types: { ...groups, integer: true, boolean: true, null: true }, - rules: [{ rules: [] }, groups.number, groups.string, groups.array, groups.object], - post: { rules: [] }, - all: {}, - keywords: {} - }; - } - exports.getRules = getRules; -}); - -// node_modules/ajv/dist/compile/validate/applicability.js -var require_applicability = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.shouldUseRule = exports.shouldUseGroup = exports.schemaHasRulesForType = undefined; - function schemaHasRulesForType({ schema, self: self2 }, type) { - const group = self2.RULES.types[type]; - return group && group !== true && shouldUseGroup(schema, group); - } - exports.schemaHasRulesForType = schemaHasRulesForType; - function shouldUseGroup(schema, group) { - return group.rules.some((rule) => shouldUseRule(schema, rule)); - } - exports.shouldUseGroup = shouldUseGroup; - function shouldUseRule(schema, rule) { - var _a2; - return schema[rule.keyword] !== undefined || ((_a2 = rule.definition.implements) === null || _a2 === undefined ? undefined : _a2.some((kwd) => schema[kwd] !== undefined)); - } - exports.shouldUseRule = shouldUseRule; -}); - -// node_modules/ajv/dist/compile/validate/dataType.js -var require_dataType = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.reportTypeError = exports.checkDataTypes = exports.checkDataType = exports.coerceAndCheckDataType = exports.getJSONTypes = exports.getSchemaTypes = exports.DataType = undefined; - var rules_1 = require_rules(); - var applicability_1 = require_applicability(); - var errors_1 = require_errors(); - var codegen_1 = require_codegen(); - var util_1 = require_util(); - var DataType; - (function(DataType2) { - DataType2[DataType2["Correct"] = 0] = "Correct"; - DataType2[DataType2["Wrong"] = 1] = "Wrong"; - })(DataType || (exports.DataType = DataType = {})); - function getSchemaTypes(schema) { - const types = getJSONTypes(schema.type); - const hasNull = types.includes("null"); - if (hasNull) { - if (schema.nullable === false) - throw new Error("type: null contradicts nullable: false"); - } else { - if (!types.length && schema.nullable !== undefined) { - throw new Error('"nullable" cannot be used without "type"'); - } - if (schema.nullable === true) - types.push("null"); - } - return types; - } - exports.getSchemaTypes = getSchemaTypes; - function getJSONTypes(ts) { - const types = Array.isArray(ts) ? ts : ts ? [ts] : []; - if (types.every(rules_1.isJSONType)) - return types; - throw new Error("type must be JSONType or JSONType[]: " + types.join(",")); - } - exports.getJSONTypes = getJSONTypes; - function coerceAndCheckDataType(it, types) { - const { gen, data, opts } = it; - const coerceTo = coerceToTypes(types, opts.coerceTypes); - const checkTypes = types.length > 0 && !(coerceTo.length === 0 && types.length === 1 && (0, applicability_1.schemaHasRulesForType)(it, types[0])); - if (checkTypes) { - const wrongType = checkDataTypes(types, data, opts.strictNumbers, DataType.Wrong); - gen.if(wrongType, () => { - if (coerceTo.length) - coerceData(it, types, coerceTo); - else - reportTypeError(it); - }); - } - return checkTypes; - } - exports.coerceAndCheckDataType = coerceAndCheckDataType; - var COERCIBLE = new Set(["string", "number", "integer", "boolean", "null"]); - function coerceToTypes(types, coerceTypes) { - return coerceTypes ? types.filter((t) => COERCIBLE.has(t) || coerceTypes === "array" && t === "array") : []; - } - function coerceData(it, types, coerceTo) { - const { gen, data, opts } = it; - const dataType = gen.let("dataType", (0, codegen_1._)`typeof ${data}`); - const coerced = gen.let("coerced", (0, codegen_1._)`undefined`); - if (opts.coerceTypes === "array") { - gen.if((0, codegen_1._)`${dataType} == 'object' && Array.isArray(${data}) && ${data}.length == 1`, () => gen.assign(data, (0, codegen_1._)`${data}[0]`).assign(dataType, (0, codegen_1._)`typeof ${data}`).if(checkDataTypes(types, data, opts.strictNumbers), () => gen.assign(coerced, data))); - } - gen.if((0, codegen_1._)`${coerced} !== undefined`); - for (const t of coerceTo) { - if (COERCIBLE.has(t) || t === "array" && opts.coerceTypes === "array") { - coerceSpecificType(t); - } - } - gen.else(); - reportTypeError(it); - gen.endIf(); - gen.if((0, codegen_1._)`${coerced} !== undefined`, () => { - gen.assign(data, coerced); - assignParentData(it, coerced); - }); - function coerceSpecificType(t) { - switch (t) { - case "string": - gen.elseIf((0, codegen_1._)`${dataType} == "number" || ${dataType} == "boolean"`).assign(coerced, (0, codegen_1._)`"" + ${data}`).elseIf((0, codegen_1._)`${data} === null`).assign(coerced, (0, codegen_1._)`""`); - return; - case "number": - gen.elseIf((0, codegen_1._)`${dataType} == "boolean" || ${data} === null - || (${dataType} == "string" && ${data} && ${data} == +${data})`).assign(coerced, (0, codegen_1._)`+${data}`); - return; - case "integer": - gen.elseIf((0, codegen_1._)`${dataType} === "boolean" || ${data} === null - || (${dataType} === "string" && ${data} && ${data} == +${data} && !(${data} % 1))`).assign(coerced, (0, codegen_1._)`+${data}`); - return; - case "boolean": - gen.elseIf((0, codegen_1._)`${data} === "false" || ${data} === 0 || ${data} === null`).assign(coerced, false).elseIf((0, codegen_1._)`${data} === "true" || ${data} === 1`).assign(coerced, true); - return; - case "null": - gen.elseIf((0, codegen_1._)`${data} === "" || ${data} === 0 || ${data} === false`); - gen.assign(coerced, null); - return; - case "array": - gen.elseIf((0, codegen_1._)`${dataType} === "string" || ${dataType} === "number" - || ${dataType} === "boolean" || ${data} === null`).assign(coerced, (0, codegen_1._)`[${data}]`); - } - } - } - function assignParentData({ gen, parentData, parentDataProperty }, expr) { - gen.if((0, codegen_1._)`${parentData} !== undefined`, () => gen.assign((0, codegen_1._)`${parentData}[${parentDataProperty}]`, expr)); - } - function checkDataType(dataType, data, strictNums, correct = DataType.Correct) { - const EQ = correct === DataType.Correct ? codegen_1.operators.EQ : codegen_1.operators.NEQ; - let cond; - switch (dataType) { - case "null": - return (0, codegen_1._)`${data} ${EQ} null`; - case "array": - cond = (0, codegen_1._)`Array.isArray(${data})`; - break; - case "object": - cond = (0, codegen_1._)`${data} && typeof ${data} == "object" && !Array.isArray(${data})`; - break; - case "integer": - cond = numCond((0, codegen_1._)`!(${data} % 1) && !isNaN(${data})`); - break; - case "number": - cond = numCond(); - break; - default: - return (0, codegen_1._)`typeof ${data} ${EQ} ${dataType}`; - } - return correct === DataType.Correct ? cond : (0, codegen_1.not)(cond); - function numCond(_cond = codegen_1.nil) { - return (0, codegen_1.and)((0, codegen_1._)`typeof ${data} == "number"`, _cond, strictNums ? (0, codegen_1._)`isFinite(${data})` : codegen_1.nil); - } - } - exports.checkDataType = checkDataType; - function checkDataTypes(dataTypes, data, strictNums, correct) { - if (dataTypes.length === 1) { - return checkDataType(dataTypes[0], data, strictNums, correct); - } - let cond; - const types = (0, util_1.toHash)(dataTypes); - if (types.array && types.object) { - const notObj = (0, codegen_1._)`typeof ${data} != "object"`; - cond = types.null ? notObj : (0, codegen_1._)`!${data} || ${notObj}`; - delete types.null; - delete types.array; - delete types.object; - } else { - cond = codegen_1.nil; - } - if (types.number) - delete types.integer; - for (const t in types) - cond = (0, codegen_1.and)(cond, checkDataType(t, data, strictNums, correct)); - return cond; - } - exports.checkDataTypes = checkDataTypes; - var typeError = { - message: ({ schema }) => `must be ${schema}`, - params: ({ schema, schemaValue }) => typeof schema == "string" ? (0, codegen_1._)`{type: ${schema}}` : (0, codegen_1._)`{type: ${schemaValue}}` - }; - function reportTypeError(it) { - const cxt = getTypeErrorContext(it); - (0, errors_1.reportError)(cxt, typeError); - } - exports.reportTypeError = reportTypeError; - function getTypeErrorContext(it) { - const { gen, data, schema } = it; - const schemaCode = (0, util_1.schemaRefOrVal)(it, schema, "type"); - return { - gen, - keyword: "type", - data, - schema: schema.type, - schemaCode, - schemaValue: schemaCode, - parentSchema: schema, - params: {}, - it - }; - } -}); - -// node_modules/ajv/dist/compile/validate/defaults.js -var require_defaults = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.assignDefaults = undefined; - var codegen_1 = require_codegen(); - var util_1 = require_util(); - function assignDefaults(it, ty) { - const { properties, items } = it.schema; - if (ty === "object" && properties) { - for (const key in properties) { - assignDefault(it, key, properties[key].default); - } - } else if (ty === "array" && Array.isArray(items)) { - items.forEach((sch, i) => assignDefault(it, i, sch.default)); - } - } - exports.assignDefaults = assignDefaults; - function assignDefault(it, prop, defaultValue) { - const { gen, compositeRule, data, opts } = it; - if (defaultValue === undefined) - return; - const childData = (0, codegen_1._)`${data}${(0, codegen_1.getProperty)(prop)}`; - if (compositeRule) { - (0, util_1.checkStrictMode)(it, `default is ignored for: ${childData}`); - return; - } - let condition = (0, codegen_1._)`${childData} === undefined`; - if (opts.useDefaults === "empty") { - condition = (0, codegen_1._)`${condition} || ${childData} === null || ${childData} === ""`; - } - gen.if(condition, (0, codegen_1._)`${childData} = ${(0, codegen_1.stringify)(defaultValue)}`); - } -}); - -// node_modules/ajv/dist/vocabularies/code.js -var require_code2 = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.validateUnion = exports.validateArray = exports.usePattern = exports.callValidateCode = exports.schemaProperties = exports.allSchemaProperties = exports.noPropertyInData = exports.propertyInData = exports.isOwnProperty = exports.hasPropFunc = exports.reportMissingProp = exports.checkMissingProp = exports.checkReportMissingProp = undefined; - var codegen_1 = require_codegen(); - var util_1 = require_util(); - var names_1 = require_names(); - var util_2 = require_util(); - function checkReportMissingProp(cxt, prop) { - const { gen, data, it } = cxt; - gen.if(noPropertyInData(gen, data, prop, it.opts.ownProperties), () => { - cxt.setParams({ missingProperty: (0, codegen_1._)`${prop}` }, true); - cxt.error(); - }); - } - exports.checkReportMissingProp = checkReportMissingProp; - function checkMissingProp({ gen, data, it: { opts } }, properties, missing) { - return (0, codegen_1.or)(...properties.map((prop) => (0, codegen_1.and)(noPropertyInData(gen, data, prop, opts.ownProperties), (0, codegen_1._)`${missing} = ${prop}`))); - } - exports.checkMissingProp = checkMissingProp; - function reportMissingProp(cxt, missing) { - cxt.setParams({ missingProperty: missing }, true); - cxt.error(); - } - exports.reportMissingProp = reportMissingProp; - function hasPropFunc(gen) { - return gen.scopeValue("func", { - ref: Object.prototype.hasOwnProperty, - code: (0, codegen_1._)`Object.prototype.hasOwnProperty` - }); - } - exports.hasPropFunc = hasPropFunc; - function isOwnProperty(gen, data, property) { - return (0, codegen_1._)`${hasPropFunc(gen)}.call(${data}, ${property})`; - } - exports.isOwnProperty = isOwnProperty; - function propertyInData(gen, data, property, ownProperties) { - const cond = (0, codegen_1._)`${data}${(0, codegen_1.getProperty)(property)} !== undefined`; - return ownProperties ? (0, codegen_1._)`${cond} && ${isOwnProperty(gen, data, property)}` : cond; - } - exports.propertyInData = propertyInData; - function noPropertyInData(gen, data, property, ownProperties) { - const cond = (0, codegen_1._)`${data}${(0, codegen_1.getProperty)(property)} === undefined`; - return ownProperties ? (0, codegen_1.or)(cond, (0, codegen_1.not)(isOwnProperty(gen, data, property))) : cond; - } - exports.noPropertyInData = noPropertyInData; - function allSchemaProperties(schemaMap) { - return schemaMap ? Object.keys(schemaMap).filter((p) => p !== "__proto__") : []; - } - exports.allSchemaProperties = allSchemaProperties; - function schemaProperties(it, schemaMap) { - return allSchemaProperties(schemaMap).filter((p) => !(0, util_1.alwaysValidSchema)(it, schemaMap[p])); - } - exports.schemaProperties = schemaProperties; - function callValidateCode({ schemaCode, data, it: { gen, topSchemaRef, schemaPath, errorPath }, it }, func, context, passSchema) { - const dataAndSchema = passSchema ? (0, codegen_1._)`${schemaCode}, ${data}, ${topSchemaRef}${schemaPath}` : data; - const valCxt = [ - [names_1.default.instancePath, (0, codegen_1.strConcat)(names_1.default.instancePath, errorPath)], - [names_1.default.parentData, it.parentData], - [names_1.default.parentDataProperty, it.parentDataProperty], - [names_1.default.rootData, names_1.default.rootData] - ]; - if (it.opts.dynamicRef) - valCxt.push([names_1.default.dynamicAnchors, names_1.default.dynamicAnchors]); - const args = (0, codegen_1._)`${dataAndSchema}, ${gen.object(...valCxt)}`; - return context !== codegen_1.nil ? (0, codegen_1._)`${func}.call(${context}, ${args})` : (0, codegen_1._)`${func}(${args})`; - } - exports.callValidateCode = callValidateCode; - var newRegExp = (0, codegen_1._)`new RegExp`; - function usePattern({ gen, it: { opts } }, pattern) { - const u = opts.unicodeRegExp ? "u" : ""; - const { regExp } = opts.code; - const rx = regExp(pattern, u); - return gen.scopeValue("pattern", { - key: rx.toString(), - ref: rx, - code: (0, codegen_1._)`${regExp.code === "new RegExp" ? newRegExp : (0, util_2.useFunc)(gen, regExp)}(${pattern}, ${u})` - }); - } - exports.usePattern = usePattern; - function validateArray(cxt) { - const { gen, data, keyword, it } = cxt; - const valid = gen.name("valid"); - if (it.allErrors) { - const validArr = gen.let("valid", true); - validateItems(() => gen.assign(validArr, false)); - return validArr; - } - gen.var(valid, true); - validateItems(() => gen.break()); - return valid; - function validateItems(notValid) { - const len = gen.const("len", (0, codegen_1._)`${data}.length`); - gen.forRange("i", 0, len, (i) => { - cxt.subschema({ - keyword, - dataProp: i, - dataPropType: util_1.Type.Num - }, valid); - gen.if((0, codegen_1.not)(valid), notValid); - }); - } - } - exports.validateArray = validateArray; - function validateUnion(cxt) { - const { gen, schema, keyword, it } = cxt; - if (!Array.isArray(schema)) - throw new Error("ajv implementation error"); - const alwaysValid = schema.some((sch) => (0, util_1.alwaysValidSchema)(it, sch)); - if (alwaysValid && !it.opts.unevaluated) - return; - const valid = gen.let("valid", false); - const schValid = gen.name("_valid"); - gen.block(() => schema.forEach((_sch, i) => { - const schCxt = cxt.subschema({ - keyword, - schemaProp: i, - compositeRule: true - }, schValid); - gen.assign(valid, (0, codegen_1._)`${valid} || ${schValid}`); - const merged = cxt.mergeValidEvaluated(schCxt, schValid); - if (!merged) - gen.if((0, codegen_1.not)(valid)); - })); - cxt.result(valid, () => cxt.reset(), () => cxt.error(true)); - } - exports.validateUnion = validateUnion; -}); - -// node_modules/ajv/dist/compile/validate/keyword.js -var require_keyword = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.validateKeywordUsage = exports.validSchemaType = exports.funcKeywordCode = exports.macroKeywordCode = undefined; - var codegen_1 = require_codegen(); - var names_1 = require_names(); - var code_1 = require_code2(); - var errors_1 = require_errors(); - function macroKeywordCode(cxt, def) { - const { gen, keyword, schema, parentSchema, it } = cxt; - const macroSchema = def.macro.call(it.self, schema, parentSchema, it); - const schemaRef = useKeyword(gen, keyword, macroSchema); - if (it.opts.validateSchema !== false) - it.self.validateSchema(macroSchema, true); - const valid = gen.name("valid"); - cxt.subschema({ - schema: macroSchema, - schemaPath: codegen_1.nil, - errSchemaPath: `${it.errSchemaPath}/${keyword}`, - topSchemaRef: schemaRef, - compositeRule: true - }, valid); - cxt.pass(valid, () => cxt.error(true)); - } - exports.macroKeywordCode = macroKeywordCode; - function funcKeywordCode(cxt, def) { - var _a2; - const { gen, keyword, schema, parentSchema, $data, it } = cxt; - checkAsyncKeyword(it, def); - const validate = !$data && def.compile ? def.compile.call(it.self, schema, parentSchema, it) : def.validate; - const validateRef = useKeyword(gen, keyword, validate); - const valid = gen.let("valid"); - cxt.block$data(valid, validateKeyword); - cxt.ok((_a2 = def.valid) !== null && _a2 !== undefined ? _a2 : valid); - function validateKeyword() { - if (def.errors === false) { - assignValid(); - if (def.modifying) - modifyData(cxt); - reportErrs(() => cxt.error()); - } else { - const ruleErrs = def.async ? validateAsync() : validateSync(); - if (def.modifying) - modifyData(cxt); - reportErrs(() => addErrs(cxt, ruleErrs)); - } - } - function validateAsync() { - const ruleErrs = gen.let("ruleErrs", null); - gen.try(() => assignValid((0, codegen_1._)`await `), (e) => gen.assign(valid, false).if((0, codegen_1._)`${e} instanceof ${it.ValidationError}`, () => gen.assign(ruleErrs, (0, codegen_1._)`${e}.errors`), () => gen.throw(e))); - return ruleErrs; - } - function validateSync() { - const validateErrs = (0, codegen_1._)`${validateRef}.errors`; - gen.assign(validateErrs, null); - assignValid(codegen_1.nil); - return validateErrs; - } - function assignValid(_await = def.async ? (0, codegen_1._)`await ` : codegen_1.nil) { - const passCxt = it.opts.passContext ? names_1.default.this : names_1.default.self; - const passSchema = !(("compile" in def) && !$data || def.schema === false); - gen.assign(valid, (0, codegen_1._)`${_await}${(0, code_1.callValidateCode)(cxt, validateRef, passCxt, passSchema)}`, def.modifying); - } - function reportErrs(errors3) { - var _a3; - gen.if((0, codegen_1.not)((_a3 = def.valid) !== null && _a3 !== undefined ? _a3 : valid), errors3); - } - } - exports.funcKeywordCode = funcKeywordCode; - function modifyData(cxt) { - const { gen, data, it } = cxt; - gen.if(it.parentData, () => gen.assign(data, (0, codegen_1._)`${it.parentData}[${it.parentDataProperty}]`)); - } - function addErrs(cxt, errs) { - const { gen } = cxt; - gen.if((0, codegen_1._)`Array.isArray(${errs})`, () => { - gen.assign(names_1.default.vErrors, (0, codegen_1._)`${names_1.default.vErrors} === null ? ${errs} : ${names_1.default.vErrors}.concat(${errs})`).assign(names_1.default.errors, (0, codegen_1._)`${names_1.default.vErrors}.length`); - (0, errors_1.extendErrors)(cxt); - }, () => cxt.error()); - } - function checkAsyncKeyword({ schemaEnv }, def) { - if (def.async && !schemaEnv.$async) - throw new Error("async keyword in sync schema"); - } - function useKeyword(gen, keyword, result) { - if (result === undefined) - throw new Error(`keyword "${keyword}" failed to compile`); - return gen.scopeValue("keyword", typeof result == "function" ? { ref: result } : { ref: result, code: (0, codegen_1.stringify)(result) }); - } - function validSchemaType(schema, schemaType, allowUndefined = false) { - return !schemaType.length || schemaType.some((st) => st === "array" ? Array.isArray(schema) : st === "object" ? schema && typeof schema == "object" && !Array.isArray(schema) : typeof schema == st || allowUndefined && typeof schema == "undefined"); - } - exports.validSchemaType = validSchemaType; - function validateKeywordUsage({ schema, opts, self: self2, errSchemaPath }, def, keyword) { - if (Array.isArray(def.keyword) ? !def.keyword.includes(keyword) : def.keyword !== keyword) { - throw new Error("ajv implementation error"); - } - const deps = def.dependencies; - if (deps === null || deps === undefined ? undefined : deps.some((kwd) => !Object.prototype.hasOwnProperty.call(schema, kwd))) { - throw new Error(`parent schema must have dependencies of ${keyword}: ${deps.join(",")}`); - } - if (def.validateSchema) { - const valid = def.validateSchema(schema[keyword]); - if (!valid) { - const msg = `keyword "${keyword}" value is invalid at path "${errSchemaPath}": ` + self2.errorsText(def.validateSchema.errors); - if (opts.validateSchema === "log") - self2.logger.error(msg); - else - throw new Error(msg); - } - } - } - exports.validateKeywordUsage = validateKeywordUsage; -}); - -// node_modules/ajv/dist/compile/validate/subschema.js -var require_subschema = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.extendSubschemaMode = exports.extendSubschemaData = exports.getSubschema = undefined; - var codegen_1 = require_codegen(); - var util_1 = require_util(); - function getSubschema(it, { keyword, schemaProp, schema, schemaPath, errSchemaPath, topSchemaRef }) { - if (keyword !== undefined && schema !== undefined) { - throw new Error('both "keyword" and "schema" passed, only one allowed'); - } - if (keyword !== undefined) { - const sch = it.schema[keyword]; - return schemaProp === undefined ? { - schema: sch, - schemaPath: (0, codegen_1._)`${it.schemaPath}${(0, codegen_1.getProperty)(keyword)}`, - errSchemaPath: `${it.errSchemaPath}/${keyword}` - } : { - schema: sch[schemaProp], - schemaPath: (0, codegen_1._)`${it.schemaPath}${(0, codegen_1.getProperty)(keyword)}${(0, codegen_1.getProperty)(schemaProp)}`, - errSchemaPath: `${it.errSchemaPath}/${keyword}/${(0, util_1.escapeFragment)(schemaProp)}` - }; - } - if (schema !== undefined) { - if (schemaPath === undefined || errSchemaPath === undefined || topSchemaRef === undefined) { - throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"'); - } - return { - schema, - schemaPath, - topSchemaRef, - errSchemaPath - }; - } - throw new Error('either "keyword" or "schema" must be passed'); - } - exports.getSubschema = getSubschema; - function extendSubschemaData(subschema, it, { dataProp, dataPropType: dpType, data, dataTypes, propertyName }) { - if (data !== undefined && dataProp !== undefined) { - throw new Error('both "data" and "dataProp" passed, only one allowed'); - } - const { gen } = it; - if (dataProp !== undefined) { - const { errorPath, dataPathArr, opts } = it; - const nextData = gen.let("data", (0, codegen_1._)`${it.data}${(0, codegen_1.getProperty)(dataProp)}`, true); - dataContextProps(nextData); - subschema.errorPath = (0, codegen_1.str)`${errorPath}${(0, util_1.getErrorPath)(dataProp, dpType, opts.jsPropertySyntax)}`; - subschema.parentDataProperty = (0, codegen_1._)`${dataProp}`; - subschema.dataPathArr = [...dataPathArr, subschema.parentDataProperty]; - } - if (data !== undefined) { - const nextData = data instanceof codegen_1.Name ? data : gen.let("data", data, true); - dataContextProps(nextData); - if (propertyName !== undefined) - subschema.propertyName = propertyName; - } - if (dataTypes) - subschema.dataTypes = dataTypes; - function dataContextProps(_nextData) { - subschema.data = _nextData; - subschema.dataLevel = it.dataLevel + 1; - subschema.dataTypes = []; - it.definedProperties = new Set; - subschema.parentData = it.data; - subschema.dataNames = [...it.dataNames, _nextData]; - } - } - exports.extendSubschemaData = extendSubschemaData; - function extendSubschemaMode(subschema, { jtdDiscriminator, jtdMetadata, compositeRule, createErrors, allErrors }) { - if (compositeRule !== undefined) - subschema.compositeRule = compositeRule; - if (createErrors !== undefined) - subschema.createErrors = createErrors; - if (allErrors !== undefined) - subschema.allErrors = allErrors; - subschema.jtdDiscriminator = jtdDiscriminator; - subschema.jtdMetadata = jtdMetadata; - } - exports.extendSubschemaMode = extendSubschemaMode; -}); - -// node_modules/fast-deep-equal/index.js -var require_fast_deep_equal = __commonJS((exports, module) => { - module.exports = function equal(a, b) { - if (a === b) - return true; - if (a && b && typeof a == "object" && typeof b == "object") { - if (a.constructor !== b.constructor) - return false; - var length, i, keys; - if (Array.isArray(a)) { - length = a.length; - if (length != b.length) - return false; - for (i = length;i-- !== 0; ) - if (!equal(a[i], b[i])) - return false; - return true; - } - if (a.constructor === RegExp) - return a.source === b.source && a.flags === b.flags; - if (a.valueOf !== Object.prototype.valueOf) - return a.valueOf() === b.valueOf(); - if (a.toString !== Object.prototype.toString) - return a.toString() === b.toString(); - keys = Object.keys(a); - length = keys.length; - if (length !== Object.keys(b).length) - return false; - for (i = length;i-- !== 0; ) - if (!Object.prototype.hasOwnProperty.call(b, keys[i])) - return false; - for (i = length;i-- !== 0; ) { - var key = keys[i]; - if (!equal(a[key], b[key])) - return false; - } - return true; - } - return a !== a && b !== b; - }; -}); - -// node_modules/json-schema-traverse/index.js -var require_json_schema_traverse = __commonJS((exports, module) => { - var traverse = module.exports = function(schema, opts, cb) { - if (typeof opts == "function") { - cb = opts; - opts = {}; - } - cb = opts.cb || cb; - var pre = typeof cb == "function" ? cb : cb.pre || function() {}; - var post = cb.post || function() {}; - _traverse(opts, pre, post, schema, "", schema); - }; - traverse.keywords = { - additionalItems: true, - items: true, - contains: true, - additionalProperties: true, - propertyNames: true, - not: true, - if: true, - then: true, - else: true - }; - traverse.arrayKeywords = { - items: true, - allOf: true, - anyOf: true, - oneOf: true - }; - traverse.propsKeywords = { - $defs: true, - definitions: true, - properties: true, - patternProperties: true, - dependencies: true - }; - traverse.skipKeywords = { - default: true, - enum: true, - const: true, - required: true, - maximum: true, - minimum: true, - exclusiveMaximum: true, - exclusiveMinimum: true, - multipleOf: true, - maxLength: true, - minLength: true, - pattern: true, - format: true, - maxItems: true, - minItems: true, - uniqueItems: true, - maxProperties: true, - minProperties: true - }; - function _traverse(opts, pre, post, schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex) { - if (schema && typeof schema == "object" && !Array.isArray(schema)) { - pre(schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex); - for (var key in schema) { - var sch = schema[key]; - if (Array.isArray(sch)) { - if (key in traverse.arrayKeywords) { - for (var i = 0;i < sch.length; i++) - _traverse(opts, pre, post, sch[i], jsonPtr + "/" + key + "/" + i, rootSchema, jsonPtr, key, schema, i); - } - } else if (key in traverse.propsKeywords) { - if (sch && typeof sch == "object") { - for (var prop in sch) - _traverse(opts, pre, post, sch[prop], jsonPtr + "/" + key + "/" + escapeJsonPtr(prop), rootSchema, jsonPtr, key, schema, prop); - } - } else if (key in traverse.keywords || opts.allKeys && !(key in traverse.skipKeywords)) { - _traverse(opts, pre, post, sch, jsonPtr + "/" + key, rootSchema, jsonPtr, key, schema); - } - } - post(schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex); - } - } - function escapeJsonPtr(str) { - return str.replace(/~/g, "~0").replace(/\//g, "~1"); - } -}); - -// node_modules/ajv/dist/compile/resolve.js -var require_resolve = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getSchemaRefs = exports.resolveUrl = exports.normalizeId = exports._getFullPath = exports.getFullPath = exports.inlineRef = undefined; - var util_1 = require_util(); - var equal = require_fast_deep_equal(); - var traverse = require_json_schema_traverse(); - var SIMPLE_INLINED = new Set([ - "type", - "format", - "pattern", - "maxLength", - "minLength", - "maxProperties", - "minProperties", - "maxItems", - "minItems", - "maximum", - "minimum", - "uniqueItems", - "multipleOf", - "required", - "enum", - "const" - ]); - function inlineRef(schema, limit = true) { - if (typeof schema == "boolean") - return true; - if (limit === true) - return !hasRef(schema); - if (!limit) - return false; - return countKeys(schema) <= limit; - } - exports.inlineRef = inlineRef; - var REF_KEYWORDS = new Set([ - "$ref", - "$recursiveRef", - "$recursiveAnchor", - "$dynamicRef", - "$dynamicAnchor" - ]); - function hasRef(schema) { - for (const key in schema) { - if (REF_KEYWORDS.has(key)) - return true; - const sch = schema[key]; - if (Array.isArray(sch) && sch.some(hasRef)) - return true; - if (typeof sch == "object" && hasRef(sch)) - return true; - } - return false; - } - function countKeys(schema) { - let count = 0; - for (const key in schema) { - if (key === "$ref") - return Infinity; - count++; - if (SIMPLE_INLINED.has(key)) - continue; - if (typeof schema[key] == "object") { - (0, util_1.eachItem)(schema[key], (sch) => count += countKeys(sch)); - } - if (count === Infinity) - return Infinity; - } - return count; - } - function getFullPath(resolver, id = "", normalize) { - if (normalize !== false) - id = normalizeId(id); - const p = resolver.parse(id); - return _getFullPath(resolver, p); - } - exports.getFullPath = getFullPath; - function _getFullPath(resolver, p) { - const serialized = resolver.serialize(p); - return serialized.split("#")[0] + "#"; - } - exports._getFullPath = _getFullPath; - var TRAILING_SLASH_HASH = /#\/?$/; - function normalizeId(id) { - return id ? id.replace(TRAILING_SLASH_HASH, "") : ""; - } - exports.normalizeId = normalizeId; - function resolveUrl(resolver, baseId, id) { - id = normalizeId(id); - return resolver.resolve(baseId, id); - } - exports.resolveUrl = resolveUrl; - var ANCHOR = /^[a-z_][-a-z0-9._]*$/i; - function getSchemaRefs(schema, baseId) { - if (typeof schema == "boolean") - return {}; - const { schemaId, uriResolver } = this.opts; - const schId = normalizeId(schema[schemaId] || baseId); - const baseIds = { "": schId }; - const pathPrefix = getFullPath(uriResolver, schId, false); - const localRefs = {}; - const schemaRefs = new Set; - traverse(schema, { allKeys: true }, (sch, jsonPtr, _, parentJsonPtr) => { - if (parentJsonPtr === undefined) - return; - const fullPath = pathPrefix + jsonPtr; - let innerBaseId = baseIds[parentJsonPtr]; - if (typeof sch[schemaId] == "string") - innerBaseId = addRef.call(this, sch[schemaId]); - addAnchor.call(this, sch.$anchor); - addAnchor.call(this, sch.$dynamicAnchor); - baseIds[jsonPtr] = innerBaseId; - function addRef(ref) { - const _resolve = this.opts.uriResolver.resolve; - ref = normalizeId(innerBaseId ? _resolve(innerBaseId, ref) : ref); - if (schemaRefs.has(ref)) - throw ambiguos(ref); - schemaRefs.add(ref); - let schOrRef = this.refs[ref]; - if (typeof schOrRef == "string") - schOrRef = this.refs[schOrRef]; - if (typeof schOrRef == "object") { - checkAmbiguosRef(sch, schOrRef.schema, ref); - } else if (ref !== normalizeId(fullPath)) { - if (ref[0] === "#") { - checkAmbiguosRef(sch, localRefs[ref], ref); - localRefs[ref] = sch; - } else { - this.refs[ref] = fullPath; - } - } - return ref; - } - function addAnchor(anchor) { - if (typeof anchor == "string") { - if (!ANCHOR.test(anchor)) - throw new Error(`invalid anchor "${anchor}"`); - addRef.call(this, `#${anchor}`); - } - } - }); - return localRefs; - function checkAmbiguosRef(sch1, sch2, ref) { - if (sch2 !== undefined && !equal(sch1, sch2)) - throw ambiguos(ref); - } - function ambiguos(ref) { - return new Error(`reference "${ref}" resolves to more than one schema`); - } - } - exports.getSchemaRefs = getSchemaRefs; -}); - -// node_modules/ajv/dist/compile/validate/index.js -var require_validate = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getData = exports.KeywordCxt = exports.validateFunctionCode = undefined; - var boolSchema_1 = require_boolSchema(); - var dataType_1 = require_dataType(); - var applicability_1 = require_applicability(); - var dataType_2 = require_dataType(); - var defaults_1 = require_defaults(); - var keyword_1 = require_keyword(); - var subschema_1 = require_subschema(); - var codegen_1 = require_codegen(); - var names_1 = require_names(); - var resolve_1 = require_resolve(); - var util_1 = require_util(); - var errors_1 = require_errors(); - function validateFunctionCode(it) { - if (isSchemaObj(it)) { - checkKeywords(it); - if (schemaCxtHasRules(it)) { - topSchemaObjCode(it); - return; - } - } - validateFunction(it, () => (0, boolSchema_1.topBoolOrEmptySchema)(it)); - } - exports.validateFunctionCode = validateFunctionCode; - function validateFunction({ gen, validateName, schema, schemaEnv, opts }, body) { - if (opts.code.es5) { - gen.func(validateName, (0, codegen_1._)`${names_1.default.data}, ${names_1.default.valCxt}`, schemaEnv.$async, () => { - gen.code((0, codegen_1._)`"use strict"; ${funcSourceUrl(schema, opts)}`); - destructureValCxtES5(gen, opts); - gen.code(body); - }); - } else { - gen.func(validateName, (0, codegen_1._)`${names_1.default.data}, ${destructureValCxt(opts)}`, schemaEnv.$async, () => gen.code(funcSourceUrl(schema, opts)).code(body)); - } - } - function destructureValCxt(opts) { - return (0, codegen_1._)`{${names_1.default.instancePath}="", ${names_1.default.parentData}, ${names_1.default.parentDataProperty}, ${names_1.default.rootData}=${names_1.default.data}${opts.dynamicRef ? (0, codegen_1._)`, ${names_1.default.dynamicAnchors}={}` : codegen_1.nil}}={}`; - } - function destructureValCxtES5(gen, opts) { - gen.if(names_1.default.valCxt, () => { - gen.var(names_1.default.instancePath, (0, codegen_1._)`${names_1.default.valCxt}.${names_1.default.instancePath}`); - gen.var(names_1.default.parentData, (0, codegen_1._)`${names_1.default.valCxt}.${names_1.default.parentData}`); - gen.var(names_1.default.parentDataProperty, (0, codegen_1._)`${names_1.default.valCxt}.${names_1.default.parentDataProperty}`); - gen.var(names_1.default.rootData, (0, codegen_1._)`${names_1.default.valCxt}.${names_1.default.rootData}`); - if (opts.dynamicRef) - gen.var(names_1.default.dynamicAnchors, (0, codegen_1._)`${names_1.default.valCxt}.${names_1.default.dynamicAnchors}`); - }, () => { - gen.var(names_1.default.instancePath, (0, codegen_1._)`""`); - gen.var(names_1.default.parentData, (0, codegen_1._)`undefined`); - gen.var(names_1.default.parentDataProperty, (0, codegen_1._)`undefined`); - gen.var(names_1.default.rootData, names_1.default.data); - if (opts.dynamicRef) - gen.var(names_1.default.dynamicAnchors, (0, codegen_1._)`{}`); - }); - } - function topSchemaObjCode(it) { - const { schema, opts, gen } = it; - validateFunction(it, () => { - if (opts.$comment && schema.$comment) - commentKeyword(it); - checkNoDefault(it); - gen.let(names_1.default.vErrors, null); - gen.let(names_1.default.errors, 0); - if (opts.unevaluated) - resetEvaluated(it); - typeAndKeywords(it); - returnResults(it); - }); - return; - } - function resetEvaluated(it) { - const { gen, validateName } = it; - it.evaluated = gen.const("evaluated", (0, codegen_1._)`${validateName}.evaluated`); - gen.if((0, codegen_1._)`${it.evaluated}.dynamicProps`, () => gen.assign((0, codegen_1._)`${it.evaluated}.props`, (0, codegen_1._)`undefined`)); - gen.if((0, codegen_1._)`${it.evaluated}.dynamicItems`, () => gen.assign((0, codegen_1._)`${it.evaluated}.items`, (0, codegen_1._)`undefined`)); - } - function funcSourceUrl(schema, opts) { - const schId = typeof schema == "object" && schema[opts.schemaId]; - return schId && (opts.code.source || opts.code.process) ? (0, codegen_1._)`/*# sourceURL=${schId} */` : codegen_1.nil; - } - function subschemaCode(it, valid) { - if (isSchemaObj(it)) { - checkKeywords(it); - if (schemaCxtHasRules(it)) { - subSchemaObjCode(it, valid); - return; - } - } - (0, boolSchema_1.boolOrEmptySchema)(it, valid); - } - function schemaCxtHasRules({ schema, self: self2 }) { - if (typeof schema == "boolean") - return !schema; - for (const key in schema) - if (self2.RULES.all[key]) - return true; - return false; - } - function isSchemaObj(it) { - return typeof it.schema != "boolean"; - } - function subSchemaObjCode(it, valid) { - const { schema, gen, opts } = it; - if (opts.$comment && schema.$comment) - commentKeyword(it); - updateContext(it); - checkAsyncSchema(it); - const errsCount = gen.const("_errs", names_1.default.errors); - typeAndKeywords(it, errsCount); - gen.var(valid, (0, codegen_1._)`${errsCount} === ${names_1.default.errors}`); - } - function checkKeywords(it) { - (0, util_1.checkUnknownRules)(it); - checkRefsAndKeywords(it); - } - function typeAndKeywords(it, errsCount) { - if (it.opts.jtd) - return schemaKeywords(it, [], false, errsCount); - const types = (0, dataType_1.getSchemaTypes)(it.schema); - const checkedTypes = (0, dataType_1.coerceAndCheckDataType)(it, types); - schemaKeywords(it, types, !checkedTypes, errsCount); - } - function checkRefsAndKeywords(it) { - const { schema, errSchemaPath, opts, self: self2 } = it; - if (schema.$ref && opts.ignoreKeywordsWithRef && (0, util_1.schemaHasRulesButRef)(schema, self2.RULES)) { - self2.logger.warn(`$ref: keywords ignored in schema at path "${errSchemaPath}"`); - } - } - function checkNoDefault(it) { - const { schema, opts } = it; - if (schema.default !== undefined && opts.useDefaults && opts.strictSchema) { - (0, util_1.checkStrictMode)(it, "default is ignored in the schema root"); - } - } - function updateContext(it) { - const schId = it.schema[it.opts.schemaId]; - if (schId) - it.baseId = (0, resolve_1.resolveUrl)(it.opts.uriResolver, it.baseId, schId); - } - function checkAsyncSchema(it) { - if (it.schema.$async && !it.schemaEnv.$async) - throw new Error("async schema in sync schema"); - } - function commentKeyword({ gen, schemaEnv, schema, errSchemaPath, opts }) { - const msg = schema.$comment; - if (opts.$comment === true) { - gen.code((0, codegen_1._)`${names_1.default.self}.logger.log(${msg})`); - } else if (typeof opts.$comment == "function") { - const schemaPath = (0, codegen_1.str)`${errSchemaPath}/$comment`; - const rootName = gen.scopeValue("root", { ref: schemaEnv.root }); - gen.code((0, codegen_1._)`${names_1.default.self}.opts.$comment(${msg}, ${schemaPath}, ${rootName}.schema)`); - } - } - function returnResults(it) { - const { gen, schemaEnv, validateName, ValidationError, opts } = it; - if (schemaEnv.$async) { - gen.if((0, codegen_1._)`${names_1.default.errors} === 0`, () => gen.return(names_1.default.data), () => gen.throw((0, codegen_1._)`new ${ValidationError}(${names_1.default.vErrors})`)); - } else { - gen.assign((0, codegen_1._)`${validateName}.errors`, names_1.default.vErrors); - if (opts.unevaluated) - assignEvaluated(it); - gen.return((0, codegen_1._)`${names_1.default.errors} === 0`); - } - } - function assignEvaluated({ gen, evaluated, props, items }) { - if (props instanceof codegen_1.Name) - gen.assign((0, codegen_1._)`${evaluated}.props`, props); - if (items instanceof codegen_1.Name) - gen.assign((0, codegen_1._)`${evaluated}.items`, items); - } - function schemaKeywords(it, types, typeErrors, errsCount) { - const { gen, schema, data, allErrors, opts, self: self2 } = it; - const { RULES } = self2; - if (schema.$ref && (opts.ignoreKeywordsWithRef || !(0, util_1.schemaHasRulesButRef)(schema, RULES))) { - gen.block(() => keywordCode(it, "$ref", RULES.all.$ref.definition)); - return; - } - if (!opts.jtd) - checkStrictTypes(it, types); - gen.block(() => { - for (const group of RULES.rules) - groupKeywords(group); - groupKeywords(RULES.post); - }); - function groupKeywords(group) { - if (!(0, applicability_1.shouldUseGroup)(schema, group)) - return; - if (group.type) { - gen.if((0, dataType_2.checkDataType)(group.type, data, opts.strictNumbers)); - iterateKeywords(it, group); - if (types.length === 1 && types[0] === group.type && typeErrors) { - gen.else(); - (0, dataType_2.reportTypeError)(it); - } - gen.endIf(); - } else { - iterateKeywords(it, group); - } - if (!allErrors) - gen.if((0, codegen_1._)`${names_1.default.errors} === ${errsCount || 0}`); - } - } - function iterateKeywords(it, group) { - const { gen, schema, opts: { useDefaults } } = it; - if (useDefaults) - (0, defaults_1.assignDefaults)(it, group.type); - gen.block(() => { - for (const rule of group.rules) { - if ((0, applicability_1.shouldUseRule)(schema, rule)) { - keywordCode(it, rule.keyword, rule.definition, group.type); - } - } - }); - } - function checkStrictTypes(it, types) { - if (it.schemaEnv.meta || !it.opts.strictTypes) - return; - checkContextTypes(it, types); - if (!it.opts.allowUnionTypes) - checkMultipleTypes(it, types); - checkKeywordTypes(it, it.dataTypes); - } - function checkContextTypes(it, types) { - if (!types.length) - return; - if (!it.dataTypes.length) { - it.dataTypes = types; - return; - } - types.forEach((t) => { - if (!includesType(it.dataTypes, t)) { - strictTypesError(it, `type "${t}" not allowed by context "${it.dataTypes.join(",")}"`); - } - }); - narrowSchemaTypes(it, types); - } - function checkMultipleTypes(it, ts) { - if (ts.length > 1 && !(ts.length === 2 && ts.includes("null"))) { - strictTypesError(it, "use allowUnionTypes to allow union type keyword"); - } - } - function checkKeywordTypes(it, ts) { - const rules = it.self.RULES.all; - for (const keyword in rules) { - const rule = rules[keyword]; - if (typeof rule == "object" && (0, applicability_1.shouldUseRule)(it.schema, rule)) { - const { type } = rule.definition; - if (type.length && !type.some((t) => hasApplicableType(ts, t))) { - strictTypesError(it, `missing type "${type.join(",")}" for keyword "${keyword}"`); - } - } - } - } - function hasApplicableType(schTs, kwdT) { - return schTs.includes(kwdT) || kwdT === "number" && schTs.includes("integer"); - } - function includesType(ts, t) { - return ts.includes(t) || t === "integer" && ts.includes("number"); - } - function narrowSchemaTypes(it, withTypes) { - const ts = []; - for (const t of it.dataTypes) { - if (includesType(withTypes, t)) - ts.push(t); - else if (withTypes.includes("integer") && t === "number") - ts.push("integer"); - } - it.dataTypes = ts; - } - function strictTypesError(it, msg) { - const schemaPath = it.schemaEnv.baseId + it.errSchemaPath; - msg += ` at "${schemaPath}" (strictTypes)`; - (0, util_1.checkStrictMode)(it, msg, it.opts.strictTypes); - } - - class KeywordCxt { - constructor(it, def, keyword) { - (0, keyword_1.validateKeywordUsage)(it, def, keyword); - this.gen = it.gen; - this.allErrors = it.allErrors; - this.keyword = keyword; - this.data = it.data; - this.schema = it.schema[keyword]; - this.$data = def.$data && it.opts.$data && this.schema && this.schema.$data; - this.schemaValue = (0, util_1.schemaRefOrVal)(it, this.schema, keyword, this.$data); - this.schemaType = def.schemaType; - this.parentSchema = it.schema; - this.params = {}; - this.it = it; - this.def = def; - if (this.$data) { - this.schemaCode = it.gen.const("vSchema", getData(this.$data, it)); - } else { - this.schemaCode = this.schemaValue; - if (!(0, keyword_1.validSchemaType)(this.schema, def.schemaType, def.allowUndefined)) { - throw new Error(`${keyword} value must be ${JSON.stringify(def.schemaType)}`); - } - } - if ("code" in def ? def.trackErrors : def.errors !== false) { - this.errsCount = it.gen.const("_errs", names_1.default.errors); - } - } - result(condition, successAction, failAction) { - this.failResult((0, codegen_1.not)(condition), successAction, failAction); - } - failResult(condition, successAction, failAction) { - this.gen.if(condition); - if (failAction) - failAction(); - else - this.error(); - if (successAction) { - this.gen.else(); - successAction(); - if (this.allErrors) - this.gen.endIf(); - } else { - if (this.allErrors) - this.gen.endIf(); - else - this.gen.else(); - } - } - pass(condition, failAction) { - this.failResult((0, codegen_1.not)(condition), undefined, failAction); - } - fail(condition) { - if (condition === undefined) { - this.error(); - if (!this.allErrors) - this.gen.if(false); - return; - } - this.gen.if(condition); - this.error(); - if (this.allErrors) - this.gen.endIf(); - else - this.gen.else(); - } - fail$data(condition) { - if (!this.$data) - return this.fail(condition); - const { schemaCode } = this; - this.fail((0, codegen_1._)`${schemaCode} !== undefined && (${(0, codegen_1.or)(this.invalid$data(), condition)})`); - } - error(append, errorParams, errorPaths) { - if (errorParams) { - this.setParams(errorParams); - this._error(append, errorPaths); - this.setParams({}); - return; - } - this._error(append, errorPaths); - } - _error(append, errorPaths) { - (append ? errors_1.reportExtraError : errors_1.reportError)(this, this.def.error, errorPaths); - } - $dataError() { - (0, errors_1.reportError)(this, this.def.$dataError || errors_1.keyword$DataError); - } - reset() { - if (this.errsCount === undefined) - throw new Error('add "trackErrors" to keyword definition'); - (0, errors_1.resetErrorsCount)(this.gen, this.errsCount); - } - ok(cond) { - if (!this.allErrors) - this.gen.if(cond); - } - setParams(obj, assign) { - if (assign) - Object.assign(this.params, obj); - else - this.params = obj; - } - block$data(valid, codeBlock, $dataValid = codegen_1.nil) { - this.gen.block(() => { - this.check$data(valid, $dataValid); - codeBlock(); - }); - } - check$data(valid = codegen_1.nil, $dataValid = codegen_1.nil) { - if (!this.$data) - return; - const { gen, schemaCode, schemaType, def } = this; - gen.if((0, codegen_1.or)((0, codegen_1._)`${schemaCode} === undefined`, $dataValid)); - if (valid !== codegen_1.nil) - gen.assign(valid, true); - if (schemaType.length || def.validateSchema) { - gen.elseIf(this.invalid$data()); - this.$dataError(); - if (valid !== codegen_1.nil) - gen.assign(valid, false); - } - gen.else(); - } - invalid$data() { - const { gen, schemaCode, schemaType, def, it } = this; - return (0, codegen_1.or)(wrong$DataType(), invalid$DataSchema()); - function wrong$DataType() { - if (schemaType.length) { - if (!(schemaCode instanceof codegen_1.Name)) - throw new Error("ajv implementation error"); - const st = Array.isArray(schemaType) ? schemaType : [schemaType]; - return (0, codegen_1._)`${(0, dataType_2.checkDataTypes)(st, schemaCode, it.opts.strictNumbers, dataType_2.DataType.Wrong)}`; - } - return codegen_1.nil; - } - function invalid$DataSchema() { - if (def.validateSchema) { - const validateSchemaRef = gen.scopeValue("validate$data", { ref: def.validateSchema }); - return (0, codegen_1._)`!${validateSchemaRef}(${schemaCode})`; - } - return codegen_1.nil; - } - } - subschema(appl, valid) { - const subschema = (0, subschema_1.getSubschema)(this.it, appl); - (0, subschema_1.extendSubschemaData)(subschema, this.it, appl); - (0, subschema_1.extendSubschemaMode)(subschema, appl); - const nextContext = { ...this.it, ...subschema, items: undefined, props: undefined }; - subschemaCode(nextContext, valid); - return nextContext; - } - mergeEvaluated(schemaCxt, toName) { - const { it, gen } = this; - if (!it.opts.unevaluated) - return; - if (it.props !== true && schemaCxt.props !== undefined) { - it.props = util_1.mergeEvaluated.props(gen, schemaCxt.props, it.props, toName); - } - if (it.items !== true && schemaCxt.items !== undefined) { - it.items = util_1.mergeEvaluated.items(gen, schemaCxt.items, it.items, toName); - } - } - mergeValidEvaluated(schemaCxt, valid) { - const { it, gen } = this; - if (it.opts.unevaluated && (it.props !== true || it.items !== true)) { - gen.if(valid, () => this.mergeEvaluated(schemaCxt, codegen_1.Name)); - return true; - } - } - } - exports.KeywordCxt = KeywordCxt; - function keywordCode(it, keyword, def, ruleType) { - const cxt = new KeywordCxt(it, def, keyword); - if ("code" in def) { - def.code(cxt, ruleType); - } else if (cxt.$data && def.validate) { - (0, keyword_1.funcKeywordCode)(cxt, def); - } else if ("macro" in def) { - (0, keyword_1.macroKeywordCode)(cxt, def); - } else if (def.compile || def.validate) { - (0, keyword_1.funcKeywordCode)(cxt, def); - } - } - var JSON_POINTER = /^\/(?:[^~]|~0|~1)*$/; - var RELATIVE_JSON_POINTER = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/; - function getData($data, { dataLevel, dataNames, dataPathArr }) { - let jsonPointer; - let data; - if ($data === "") - return names_1.default.rootData; - if ($data[0] === "/") { - if (!JSON_POINTER.test($data)) - throw new Error(`Invalid JSON-pointer: ${$data}`); - jsonPointer = $data; - data = names_1.default.rootData; - } else { - const matches = RELATIVE_JSON_POINTER.exec($data); - if (!matches) - throw new Error(`Invalid JSON-pointer: ${$data}`); - const up = +matches[1]; - jsonPointer = matches[2]; - if (jsonPointer === "#") { - if (up >= dataLevel) - throw new Error(errorMsg("property/index", up)); - return dataPathArr[dataLevel - up]; - } - if (up > dataLevel) - throw new Error(errorMsg("data", up)); - data = dataNames[dataLevel - up]; - if (!jsonPointer) - return data; - } - let expr = data; - const segments = jsonPointer.split("/"); - for (const segment of segments) { - if (segment) { - data = (0, codegen_1._)`${data}${(0, codegen_1.getProperty)((0, util_1.unescapeJsonPointer)(segment))}`; - expr = (0, codegen_1._)`${expr} && ${data}`; - } - } - return expr; - function errorMsg(pointerType, up) { - return `Cannot access ${pointerType} ${up} levels up, current level is ${dataLevel}`; - } - } - exports.getData = getData; -}); - -// node_modules/ajv/dist/runtime/validation_error.js -var require_validation_error = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - - class ValidationError extends Error { - constructor(errors3) { - super("validation failed"); - this.errors = errors3; - this.ajv = this.validation = true; - } - } - exports.default = ValidationError; -}); - -// node_modules/ajv/dist/compile/ref_error.js -var require_ref_error = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var resolve_1 = require_resolve(); - - class MissingRefError extends Error { - constructor(resolver, baseId, ref, msg) { - super(msg || `can't resolve reference ${ref} from id ${baseId}`); - this.missingRef = (0, resolve_1.resolveUrl)(resolver, baseId, ref); - this.missingSchema = (0, resolve_1.normalizeId)((0, resolve_1.getFullPath)(resolver, this.missingRef)); - } - } - exports.default = MissingRefError; -}); - -// node_modules/ajv/dist/compile/index.js -var require_compile = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.resolveSchema = exports.getCompilingSchema = exports.resolveRef = exports.compileSchema = exports.SchemaEnv = undefined; - var codegen_1 = require_codegen(); - var validation_error_1 = require_validation_error(); - var names_1 = require_names(); - var resolve_1 = require_resolve(); - var util_1 = require_util(); - var validate_1 = require_validate(); - - class SchemaEnv { - constructor(env) { - var _a2; - this.refs = {}; - this.dynamicAnchors = {}; - let schema; - if (typeof env.schema == "object") - schema = env.schema; - this.schema = env.schema; - this.schemaId = env.schemaId; - this.root = env.root || this; - this.baseId = (_a2 = env.baseId) !== null && _a2 !== undefined ? _a2 : (0, resolve_1.normalizeId)(schema === null || schema === undefined ? undefined : schema[env.schemaId || "$id"]); - this.schemaPath = env.schemaPath; - this.localRefs = env.localRefs; - this.meta = env.meta; - this.$async = schema === null || schema === undefined ? undefined : schema.$async; - this.refs = {}; - } - } - exports.SchemaEnv = SchemaEnv; - function compileSchema(sch) { - const _sch = getCompilingSchema.call(this, sch); - if (_sch) - return _sch; - const rootId = (0, resolve_1.getFullPath)(this.opts.uriResolver, sch.root.baseId); - const { es5, lines } = this.opts.code; - const { ownProperties } = this.opts; - const gen = new codegen_1.CodeGen(this.scope, { es5, lines, ownProperties }); - let _ValidationError; - if (sch.$async) { - _ValidationError = gen.scopeValue("Error", { - ref: validation_error_1.default, - code: (0, codegen_1._)`require("ajv/dist/runtime/validation_error").default` - }); - } - const validateName = gen.scopeName("validate"); - sch.validateName = validateName; - const schemaCxt = { - gen, - allErrors: this.opts.allErrors, - data: names_1.default.data, - parentData: names_1.default.parentData, - parentDataProperty: names_1.default.parentDataProperty, - dataNames: [names_1.default.data], - dataPathArr: [codegen_1.nil], - dataLevel: 0, - dataTypes: [], - definedProperties: new Set, - topSchemaRef: gen.scopeValue("schema", this.opts.code.source === true ? { ref: sch.schema, code: (0, codegen_1.stringify)(sch.schema) } : { ref: sch.schema }), - validateName, - ValidationError: _ValidationError, - schema: sch.schema, - schemaEnv: sch, - rootId, - baseId: sch.baseId || rootId, - schemaPath: codegen_1.nil, - errSchemaPath: sch.schemaPath || (this.opts.jtd ? "" : "#"), - errorPath: (0, codegen_1._)`""`, - opts: this.opts, - self: this - }; - let sourceCode; - try { - this._compilations.add(sch); - (0, validate_1.validateFunctionCode)(schemaCxt); - gen.optimize(this.opts.code.optimize); - const validateCode = gen.toString(); - sourceCode = `${gen.scopeRefs(names_1.default.scope)}return ${validateCode}`; - if (this.opts.code.process) - sourceCode = this.opts.code.process(sourceCode, sch); - const makeValidate = new Function(`${names_1.default.self}`, `${names_1.default.scope}`, sourceCode); - const validate = makeValidate(this, this.scope.get()); - this.scope.value(validateName, { ref: validate }); - validate.errors = null; - validate.schema = sch.schema; - validate.schemaEnv = sch; - if (sch.$async) - validate.$async = true; - if (this.opts.code.source === true) { - validate.source = { validateName, validateCode, scopeValues: gen._values }; - } - if (this.opts.unevaluated) { - const { props, items } = schemaCxt; - validate.evaluated = { - props: props instanceof codegen_1.Name ? undefined : props, - items: items instanceof codegen_1.Name ? undefined : items, - dynamicProps: props instanceof codegen_1.Name, - dynamicItems: items instanceof codegen_1.Name - }; - if (validate.source) - validate.source.evaluated = (0, codegen_1.stringify)(validate.evaluated); - } - sch.validate = validate; - return sch; - } catch (e) { - delete sch.validate; - delete sch.validateName; - if (sourceCode) - this.logger.error("Error compiling schema, function code:", sourceCode); - throw e; - } finally { - this._compilations.delete(sch); - } - } - exports.compileSchema = compileSchema; - function resolveRef(root, baseId, ref) { - var _a2; - ref = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, ref); - const schOrFunc = root.refs[ref]; - if (schOrFunc) - return schOrFunc; - let _sch = resolve.call(this, root, ref); - if (_sch === undefined) { - const schema = (_a2 = root.localRefs) === null || _a2 === undefined ? undefined : _a2[ref]; - const { schemaId } = this.opts; - if (schema) - _sch = new SchemaEnv({ schema, schemaId, root, baseId }); - } - if (_sch === undefined) - return; - return root.refs[ref] = inlineOrCompile.call(this, _sch); - } - exports.resolveRef = resolveRef; - function inlineOrCompile(sch) { - if ((0, resolve_1.inlineRef)(sch.schema, this.opts.inlineRefs)) - return sch.schema; - return sch.validate ? sch : compileSchema.call(this, sch); - } - function getCompilingSchema(schEnv) { - for (const sch of this._compilations) { - if (sameSchemaEnv(sch, schEnv)) - return sch; - } - } - exports.getCompilingSchema = getCompilingSchema; - function sameSchemaEnv(s1, s2) { - return s1.schema === s2.schema && s1.root === s2.root && s1.baseId === s2.baseId; - } - function resolve(root, ref) { - let sch; - while (typeof (sch = this.refs[ref]) == "string") - ref = sch; - return sch || this.schemas[ref] || resolveSchema.call(this, root, ref); - } - function resolveSchema(root, ref) { - const p = this.opts.uriResolver.parse(ref); - const refPath = (0, resolve_1._getFullPath)(this.opts.uriResolver, p); - let baseId = (0, resolve_1.getFullPath)(this.opts.uriResolver, root.baseId, undefined); - if (Object.keys(root.schema).length > 0 && refPath === baseId) { - return getJsonPointer.call(this, p, root); - } - const id = (0, resolve_1.normalizeId)(refPath); - const schOrRef = this.refs[id] || this.schemas[id]; - if (typeof schOrRef == "string") { - const sch = resolveSchema.call(this, root, schOrRef); - if (typeof (sch === null || sch === undefined ? undefined : sch.schema) !== "object") - return; - return getJsonPointer.call(this, p, sch); - } - if (typeof (schOrRef === null || schOrRef === undefined ? undefined : schOrRef.schema) !== "object") - return; - if (!schOrRef.validate) - compileSchema.call(this, schOrRef); - if (id === (0, resolve_1.normalizeId)(ref)) { - const { schema } = schOrRef; - const { schemaId } = this.opts; - const schId = schema[schemaId]; - if (schId) - baseId = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, schId); - return new SchemaEnv({ schema, schemaId, root, baseId }); - } - return getJsonPointer.call(this, p, schOrRef); - } - exports.resolveSchema = resolveSchema; - var PREVENT_SCOPE_CHANGE = new Set([ - "properties", - "patternProperties", - "enum", - "dependencies", - "definitions" - ]); - function getJsonPointer(parsedRef, { baseId, schema, root }) { - var _a2; - if (((_a2 = parsedRef.fragment) === null || _a2 === undefined ? undefined : _a2[0]) !== "/") - return; - for (const part of parsedRef.fragment.slice(1).split("/")) { - if (typeof schema === "boolean") - return; - const partSchema = schema[(0, util_1.unescapeFragment)(part)]; - if (partSchema === undefined) - return; - schema = partSchema; - const schId = typeof schema === "object" && schema[this.opts.schemaId]; - if (!PREVENT_SCOPE_CHANGE.has(part) && schId) { - baseId = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, schId); - } - } - let env; - if (typeof schema != "boolean" && schema.$ref && !(0, util_1.schemaHasRulesButRef)(schema, this.RULES)) { - const $ref = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, schema.$ref); - env = resolveSchema.call(this, root, $ref); - } - const { schemaId } = this.opts; - env = env || new SchemaEnv({ schema, schemaId, root, baseId }); - if (env.schema !== env.root.schema) - return env; - return; - } -}); - -// node_modules/ajv/dist/refs/data.json -var require_data = __commonJS((exports, module) => { - module.exports = { - $id: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", - description: "Meta-schema for $data reference (JSON AnySchema extension proposal)", - type: "object", - required: ["$data"], - properties: { - $data: { - type: "string", - anyOf: [{ format: "relative-json-pointer" }, { format: "json-pointer" }] - } - }, - additionalProperties: false - }; -}); - -// node_modules/fast-uri/lib/utils.js -var require_utils = __commonJS((exports, module) => { - var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu); - var isIPv4 = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u); - function stringArrayToHexStripped(input) { - let acc = ""; - let code = 0; - let i = 0; - for (i = 0;i < input.length; i++) { - code = input[i].charCodeAt(0); - if (code === 48) { - continue; - } - if (!(code >= 48 && code <= 57 || code >= 65 && code <= 70 || code >= 97 && code <= 102)) { - return ""; - } - acc += input[i]; - break; - } - for (i += 1;i < input.length; i++) { - code = input[i].charCodeAt(0); - if (!(code >= 48 && code <= 57 || code >= 65 && code <= 70 || code >= 97 && code <= 102)) { - return ""; - } - acc += input[i]; - } - return acc; - } - var nonSimpleDomain = RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u); - function consumeIsZone(buffer) { - buffer.length = 0; - return true; - } - function consumeHextets(buffer, address, output) { - if (buffer.length) { - const hex = stringArrayToHexStripped(buffer); - if (hex !== "") { - address.push(hex); - } else { - output.error = true; - return false; - } - buffer.length = 0; - } - return true; - } - function getIPV6(input) { - let tokenCount = 0; - const output = { error: false, address: "", zone: "" }; - const address = []; - const buffer = []; - let endipv6Encountered = false; - let endIpv6 = false; - let consume = consumeHextets; - for (let i = 0;i < input.length; i++) { - const cursor = input[i]; - if (cursor === "[" || cursor === "]") { - continue; - } - if (cursor === ":") { - if (endipv6Encountered === true) { - endIpv6 = true; - } - if (!consume(buffer, address, output)) { - break; - } - if (++tokenCount > 7) { - output.error = true; - break; - } - if (i > 0 && input[i - 1] === ":") { - endipv6Encountered = true; - } - address.push(":"); - continue; - } else if (cursor === "%") { - if (!consume(buffer, address, output)) { - break; - } - consume = consumeIsZone; - } else { - buffer.push(cursor); - continue; - } - } - if (buffer.length) { - if (consume === consumeIsZone) { - output.zone = buffer.join(""); - } else if (endIpv6) { - address.push(buffer.join("")); - } else { - address.push(stringArrayToHexStripped(buffer)); - } - } - output.address = address.join(""); - return output; - } - function normalizeIPv6(host) { - if (findToken(host, ":") < 2) { - return { host, isIPV6: false }; - } - const ipv62 = getIPV6(host); - if (!ipv62.error) { - let newHost = ipv62.address; - let escapedHost = ipv62.address; - if (ipv62.zone) { - newHost += "%" + ipv62.zone; - escapedHost += "%25" + ipv62.zone; - } - return { host: newHost, isIPV6: true, escapedHost }; - } else { - return { host, isIPV6: false }; - } - } - function findToken(str, token) { - let ind = 0; - for (let i = 0;i < str.length; i++) { - if (str[i] === token) - ind++; - } - return ind; - } - function removeDotSegments(path) { - let input = path; - const output = []; - let nextSlash = -1; - let len = 0; - while (len = input.length) { - if (len === 1) { - if (input === ".") { - break; - } else if (input === "/") { - output.push("/"); - break; - } else { - output.push(input); - break; - } - } else if (len === 2) { - if (input[0] === ".") { - if (input[1] === ".") { - break; - } else if (input[1] === "/") { - input = input.slice(2); - continue; - } - } else if (input[0] === "/") { - if (input[1] === "." || input[1] === "/") { - output.push("/"); - break; - } - } - } else if (len === 3) { - if (input === "/..") { - if (output.length !== 0) { - output.pop(); - } - output.push("/"); - break; - } - } - if (input[0] === ".") { - if (input[1] === ".") { - if (input[2] === "/") { - input = input.slice(3); - continue; - } - } else if (input[1] === "/") { - input = input.slice(2); - continue; - } - } else if (input[0] === "/") { - if (input[1] === ".") { - if (input[2] === "/") { - input = input.slice(2); - continue; - } else if (input[2] === ".") { - if (input[3] === "/") { - input = input.slice(3); - if (output.length !== 0) { - output.pop(); - } - continue; - } - } - } - } - if ((nextSlash = input.indexOf("/", 1)) === -1) { - output.push(input); - break; - } else { - output.push(input.slice(0, nextSlash)); - input = input.slice(nextSlash); - } - } - return output.join(""); - } - function normalizeComponentEncoding(component, esc2) { - const func = esc2 !== true ? escape : unescape; - if (component.scheme !== undefined) { - component.scheme = func(component.scheme); - } - if (component.userinfo !== undefined) { - component.userinfo = func(component.userinfo); - } - if (component.host !== undefined) { - component.host = func(component.host); - } - if (component.path !== undefined) { - component.path = func(component.path); - } - if (component.query !== undefined) { - component.query = func(component.query); - } - if (component.fragment !== undefined) { - component.fragment = func(component.fragment); - } - return component; - } - function recomposeAuthority(component) { - const uriTokens = []; - if (component.userinfo !== undefined) { - uriTokens.push(component.userinfo); - uriTokens.push("@"); - } - if (component.host !== undefined) { - let host = unescape(component.host); - if (!isIPv4(host)) { - const ipV6res = normalizeIPv6(host); - if (ipV6res.isIPV6 === true) { - host = `[${ipV6res.escapedHost}]`; - } else { - host = component.host; - } - } - uriTokens.push(host); - } - if (typeof component.port === "number" || typeof component.port === "string") { - uriTokens.push(":"); - uriTokens.push(String(component.port)); - } - return uriTokens.length ? uriTokens.join("") : undefined; - } - module.exports = { - nonSimpleDomain, - recomposeAuthority, - normalizeComponentEncoding, - removeDotSegments, - isIPv4, - isUUID, - normalizeIPv6, - stringArrayToHexStripped - }; -}); - -// node_modules/fast-uri/lib/schemes.js -var require_schemes = __commonJS((exports, module) => { - var { isUUID } = require_utils(); - var URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu; - var supportedSchemeNames = [ - "http", - "https", - "ws", - "wss", - "urn", - "urn:uuid" - ]; - function isValidSchemeName(name) { - return supportedSchemeNames.indexOf(name) !== -1; - } - function wsIsSecure(wsComponent) { - if (wsComponent.secure === true) { - return true; - } else if (wsComponent.secure === false) { - return false; - } else if (wsComponent.scheme) { - return wsComponent.scheme.length === 3 && (wsComponent.scheme[0] === "w" || wsComponent.scheme[0] === "W") && (wsComponent.scheme[1] === "s" || wsComponent.scheme[1] === "S") && (wsComponent.scheme[2] === "s" || wsComponent.scheme[2] === "S"); - } else { - return false; - } - } - function httpParse(component) { - if (!component.host) { - component.error = component.error || "HTTP URIs must have a host."; - } - return component; - } - function httpSerialize(component) { - const secure = String(component.scheme).toLowerCase() === "https"; - if (component.port === (secure ? 443 : 80) || component.port === "") { - component.port = undefined; - } - if (!component.path) { - component.path = "/"; - } - return component; - } - function wsParse(wsComponent) { - wsComponent.secure = wsIsSecure(wsComponent); - wsComponent.resourceName = (wsComponent.path || "/") + (wsComponent.query ? "?" + wsComponent.query : ""); - wsComponent.path = undefined; - wsComponent.query = undefined; - return wsComponent; - } - function wsSerialize(wsComponent) { - if (wsComponent.port === (wsIsSecure(wsComponent) ? 443 : 80) || wsComponent.port === "") { - wsComponent.port = undefined; - } - if (typeof wsComponent.secure === "boolean") { - wsComponent.scheme = wsComponent.secure ? "wss" : "ws"; - wsComponent.secure = undefined; - } - if (wsComponent.resourceName) { - const [path, query] = wsComponent.resourceName.split("?"); - wsComponent.path = path && path !== "/" ? path : undefined; - wsComponent.query = query; - wsComponent.resourceName = undefined; - } - wsComponent.fragment = undefined; - return wsComponent; - } - function urnParse(urnComponent, options) { - if (!urnComponent.path) { - urnComponent.error = "URN can not be parsed"; - return urnComponent; - } - const matches = urnComponent.path.match(URN_REG); - if (matches) { - const scheme = options.scheme || urnComponent.scheme || "urn"; - urnComponent.nid = matches[1].toLowerCase(); - urnComponent.nss = matches[2]; - const urnScheme = `${scheme}:${options.nid || urnComponent.nid}`; - const schemeHandler = getSchemeHandler(urnScheme); - urnComponent.path = undefined; - if (schemeHandler) { - urnComponent = schemeHandler.parse(urnComponent, options); - } - } else { - urnComponent.error = urnComponent.error || "URN can not be parsed."; - } - return urnComponent; - } - function urnSerialize(urnComponent, options) { - if (urnComponent.nid === undefined) { - throw new Error("URN without nid cannot be serialized"); - } - const scheme = options.scheme || urnComponent.scheme || "urn"; - const nid = urnComponent.nid.toLowerCase(); - const urnScheme = `${scheme}:${options.nid || nid}`; - const schemeHandler = getSchemeHandler(urnScheme); - if (schemeHandler) { - urnComponent = schemeHandler.serialize(urnComponent, options); - } - const uriComponent = urnComponent; - const nss = urnComponent.nss; - uriComponent.path = `${nid || options.nid}:${nss}`; - options.skipEscape = true; - return uriComponent; - } - function urnuuidParse(urnComponent, options) { - const uuidComponent = urnComponent; - uuidComponent.uuid = uuidComponent.nss; - uuidComponent.nss = undefined; - if (!options.tolerant && (!uuidComponent.uuid || !isUUID(uuidComponent.uuid))) { - uuidComponent.error = uuidComponent.error || "UUID is not valid."; - } - return uuidComponent; - } - function urnuuidSerialize(uuidComponent) { - const urnComponent = uuidComponent; - urnComponent.nss = (uuidComponent.uuid || "").toLowerCase(); - return urnComponent; - } - var http = { - scheme: "http", - domainHost: true, - parse: httpParse, - serialize: httpSerialize - }; - var https = { - scheme: "https", - domainHost: http.domainHost, - parse: httpParse, - serialize: httpSerialize - }; - var ws = { - scheme: "ws", - domainHost: true, - parse: wsParse, - serialize: wsSerialize - }; - var wss = { - scheme: "wss", - domainHost: ws.domainHost, - parse: ws.parse, - serialize: ws.serialize - }; - var urn = { - scheme: "urn", - parse: urnParse, - serialize: urnSerialize, - skipNormalize: true - }; - var urnuuid = { - scheme: "urn:uuid", - parse: urnuuidParse, - serialize: urnuuidSerialize, - skipNormalize: true - }; - var SCHEMES = { - http, - https, - ws, - wss, - urn, - "urn:uuid": urnuuid - }; - Object.setPrototypeOf(SCHEMES, null); - function getSchemeHandler(scheme) { - return scheme && (SCHEMES[scheme] || SCHEMES[scheme.toLowerCase()]) || undefined; - } - module.exports = { - wsIsSecure, - SCHEMES, - isValidSchemeName, - getSchemeHandler - }; -}); - -// node_modules/fast-uri/index.js -var require_fast_uri = __commonJS((exports, module) => { - var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizeComponentEncoding, isIPv4, nonSimpleDomain } = require_utils(); - var { SCHEMES, getSchemeHandler } = require_schemes(); - function normalize(uri, options) { - if (typeof uri === "string") { - uri = serialize(parse5(uri, options), options); - } else if (typeof uri === "object") { - uri = parse5(serialize(uri, options), options); - } - return uri; - } - function resolve(baseURI, relativeURI, options) { - const schemelessOptions = options ? Object.assign({ scheme: "null" }, options) : { scheme: "null" }; - const resolved = resolveComponent(parse5(baseURI, schemelessOptions), parse5(relativeURI, schemelessOptions), schemelessOptions, true); - schemelessOptions.skipEscape = true; - return serialize(resolved, schemelessOptions); - } - function resolveComponent(base, relative, options, skipNormalization) { - const target = {}; - if (!skipNormalization) { - base = parse5(serialize(base, options), options); - relative = parse5(serialize(relative, options), options); - } - options = options || {}; - if (!options.tolerant && relative.scheme) { - target.scheme = relative.scheme; - target.userinfo = relative.userinfo; - target.host = relative.host; - target.port = relative.port; - target.path = removeDotSegments(relative.path || ""); - target.query = relative.query; - } else { - if (relative.userinfo !== undefined || relative.host !== undefined || relative.port !== undefined) { - target.userinfo = relative.userinfo; - target.host = relative.host; - target.port = relative.port; - target.path = removeDotSegments(relative.path || ""); - target.query = relative.query; - } else { - if (!relative.path) { - target.path = base.path; - if (relative.query !== undefined) { - target.query = relative.query; - } else { - target.query = base.query; - } - } else { - if (relative.path[0] === "/") { - target.path = removeDotSegments(relative.path); - } else { - if ((base.userinfo !== undefined || base.host !== undefined || base.port !== undefined) && !base.path) { - target.path = "/" + relative.path; - } else if (!base.path) { - target.path = relative.path; - } else { - target.path = base.path.slice(0, base.path.lastIndexOf("/") + 1) + relative.path; - } - target.path = removeDotSegments(target.path); - } - target.query = relative.query; - } - target.userinfo = base.userinfo; - target.host = base.host; - target.port = base.port; - } - target.scheme = base.scheme; - } - target.fragment = relative.fragment; - return target; - } - function equal(uriA, uriB, options) { - if (typeof uriA === "string") { - uriA = unescape(uriA); - uriA = serialize(normalizeComponentEncoding(parse5(uriA, options), true), { ...options, skipEscape: true }); - } else if (typeof uriA === "object") { - uriA = serialize(normalizeComponentEncoding(uriA, true), { ...options, skipEscape: true }); - } - if (typeof uriB === "string") { - uriB = unescape(uriB); - uriB = serialize(normalizeComponentEncoding(parse5(uriB, options), true), { ...options, skipEscape: true }); - } else if (typeof uriB === "object") { - uriB = serialize(normalizeComponentEncoding(uriB, true), { ...options, skipEscape: true }); - } - return uriA.toLowerCase() === uriB.toLowerCase(); - } - function serialize(cmpts, opts) { - const component = { - host: cmpts.host, - scheme: cmpts.scheme, - userinfo: cmpts.userinfo, - port: cmpts.port, - path: cmpts.path, - query: cmpts.query, - nid: cmpts.nid, - nss: cmpts.nss, - uuid: cmpts.uuid, - fragment: cmpts.fragment, - reference: cmpts.reference, - resourceName: cmpts.resourceName, - secure: cmpts.secure, - error: "" - }; - const options = Object.assign({}, opts); - const uriTokens = []; - const schemeHandler = getSchemeHandler(options.scheme || component.scheme); - if (schemeHandler && schemeHandler.serialize) - schemeHandler.serialize(component, options); - if (component.path !== undefined) { - if (!options.skipEscape) { - component.path = escape(component.path); - if (component.scheme !== undefined) { - component.path = component.path.split("%3A").join(":"); - } - } else { - component.path = unescape(component.path); - } - } - if (options.reference !== "suffix" && component.scheme) { - uriTokens.push(component.scheme, ":"); - } - const authority = recomposeAuthority(component); - if (authority !== undefined) { - if (options.reference !== "suffix") { - uriTokens.push("//"); - } - uriTokens.push(authority); - if (component.path && component.path[0] !== "/") { - uriTokens.push("/"); - } - } - if (component.path !== undefined) { - let s = component.path; - if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) { - s = removeDotSegments(s); - } - if (authority === undefined && s[0] === "/" && s[1] === "/") { - s = "/%2F" + s.slice(2); - } - uriTokens.push(s); - } - if (component.query !== undefined) { - uriTokens.push("?", component.query); - } - if (component.fragment !== undefined) { - uriTokens.push("#", component.fragment); - } - return uriTokens.join(""); - } - var URI_PARSE = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u; - function parse5(uri, opts) { - const options = Object.assign({}, opts); - const parsed = { - scheme: undefined, - userinfo: undefined, - host: "", - port: undefined, - path: "", - query: undefined, - fragment: undefined - }; - let isIP = false; - if (options.reference === "suffix") { - if (options.scheme) { - uri = options.scheme + ":" + uri; - } else { - uri = "//" + uri; - } - } - const matches = uri.match(URI_PARSE); - if (matches) { - parsed.scheme = matches[1]; - parsed.userinfo = matches[3]; - parsed.host = matches[4]; - parsed.port = parseInt(matches[5], 10); - parsed.path = matches[6] || ""; - parsed.query = matches[7]; - parsed.fragment = matches[8]; - if (isNaN(parsed.port)) { - parsed.port = matches[5]; - } - if (parsed.host) { - const ipv4result = isIPv4(parsed.host); - if (ipv4result === false) { - const ipv6result = normalizeIPv6(parsed.host); - parsed.host = ipv6result.host.toLowerCase(); - isIP = ipv6result.isIPV6; - } else { - isIP = true; - } - } - if (parsed.scheme === undefined && parsed.userinfo === undefined && parsed.host === undefined && parsed.port === undefined && parsed.query === undefined && !parsed.path) { - parsed.reference = "same-document"; - } else if (parsed.scheme === undefined) { - parsed.reference = "relative"; - } else if (parsed.fragment === undefined) { - parsed.reference = "absolute"; - } else { - parsed.reference = "uri"; - } - if (options.reference && options.reference !== "suffix" && options.reference !== parsed.reference) { - parsed.error = parsed.error || "URI is not a " + options.reference + " reference."; - } - const schemeHandler = getSchemeHandler(options.scheme || parsed.scheme); - if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) { - if (parsed.host && (options.domainHost || schemeHandler && schemeHandler.domainHost) && isIP === false && nonSimpleDomain(parsed.host)) { - try { - parsed.host = URL.domainToASCII(parsed.host.toLowerCase()); - } catch (e) { - parsed.error = parsed.error || "Host's domain name can not be converted to ASCII: " + e; - } - } - } - if (!schemeHandler || schemeHandler && !schemeHandler.skipNormalize) { - if (uri.indexOf("%") !== -1) { - if (parsed.scheme !== undefined) { - parsed.scheme = unescape(parsed.scheme); - } - if (parsed.host !== undefined) { - parsed.host = unescape(parsed.host); - } - } - if (parsed.path) { - parsed.path = escape(unescape(parsed.path)); - } - if (parsed.fragment) { - parsed.fragment = encodeURI(decodeURIComponent(parsed.fragment)); - } - } - if (schemeHandler && schemeHandler.parse) { - schemeHandler.parse(parsed, options); - } - } else { - parsed.error = parsed.error || "URI can not be parsed."; - } - return parsed; - } - var fastUri = { - SCHEMES, - normalize, - resolve, - resolveComponent, - equal, - serialize, - parse: parse5 - }; - module.exports = fastUri; - module.exports.default = fastUri; - module.exports.fastUri = fastUri; -}); - -// node_modules/ajv/dist/runtime/uri.js -var require_uri = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var uri = require_fast_uri(); - uri.code = 'require("ajv/dist/runtime/uri").default'; - exports.default = uri; -}); - -// node_modules/ajv/dist/core.js -var require_core = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = undefined; - var validate_1 = require_validate(); - Object.defineProperty(exports, "KeywordCxt", { enumerable: true, get: function() { - return validate_1.KeywordCxt; - } }); - var codegen_1 = require_codegen(); - Object.defineProperty(exports, "_", { enumerable: true, get: function() { - return codegen_1._; - } }); - Object.defineProperty(exports, "str", { enumerable: true, get: function() { - return codegen_1.str; - } }); - Object.defineProperty(exports, "stringify", { enumerable: true, get: function() { - return codegen_1.stringify; - } }); - Object.defineProperty(exports, "nil", { enumerable: true, get: function() { - return codegen_1.nil; - } }); - Object.defineProperty(exports, "Name", { enumerable: true, get: function() { - return codegen_1.Name; - } }); - Object.defineProperty(exports, "CodeGen", { enumerable: true, get: function() { - return codegen_1.CodeGen; - } }); - var validation_error_1 = require_validation_error(); - var ref_error_1 = require_ref_error(); - var rules_1 = require_rules(); - var compile_1 = require_compile(); - var codegen_2 = require_codegen(); - var resolve_1 = require_resolve(); - var dataType_1 = require_dataType(); - var util_1 = require_util(); - var $dataRefSchema = require_data(); - var uri_1 = require_uri(); - var defaultRegExp = (str, flags) => new RegExp(str, flags); - defaultRegExp.code = "new RegExp"; - var META_IGNORE_OPTIONS = ["removeAdditional", "useDefaults", "coerceTypes"]; - var EXT_SCOPE_NAMES = new Set([ - "validate", - "serialize", - "parse", - "wrapper", - "root", - "schema", - "keyword", - "pattern", - "formats", - "validate$data", - "func", - "obj", - "Error" - ]); - var removedOptions = { - errorDataPath: "", - format: "`validateFormats: false` can be used instead.", - nullable: '"nullable" keyword is supported by default.', - jsonPointers: "Deprecated jsPropertySyntax can be used instead.", - extendRefs: "Deprecated ignoreKeywordsWithRef can be used instead.", - missingRefs: "Pass empty schema with $id that should be ignored to ajv.addSchema.", - processCode: "Use option `code: {process: (code, schemaEnv: object) => string}`", - sourceCode: "Use option `code: {source: true}`", - strictDefaults: "It is default now, see option `strict`.", - strictKeywords: "It is default now, see option `strict`.", - uniqueItems: '"uniqueItems" keyword is always validated.', - unknownFormats: "Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).", - cache: "Map is used as cache, schema object as key.", - serialize: "Map is used as cache, schema object as key.", - ajvErrors: "It is default now." - }; - var deprecatedOptions = { - ignoreKeywordsWithRef: "", - jsPropertySyntax: "", - unicode: '"minLength"/"maxLength" account for unicode characters by default.' - }; - var MAX_EXPRESSION = 200; - function requiredOptions(o) { - var _a2, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0; - const s = o.strict; - const _optz = (_a2 = o.code) === null || _a2 === undefined ? undefined : _a2.optimize; - const optimize = _optz === true || _optz === undefined ? 1 : _optz || 0; - const regExp = (_c = (_b = o.code) === null || _b === undefined ? undefined : _b.regExp) !== null && _c !== undefined ? _c : defaultRegExp; - const uriResolver = (_d = o.uriResolver) !== null && _d !== undefined ? _d : uri_1.default; - return { - strictSchema: (_f = (_e = o.strictSchema) !== null && _e !== undefined ? _e : s) !== null && _f !== undefined ? _f : true, - strictNumbers: (_h = (_g = o.strictNumbers) !== null && _g !== undefined ? _g : s) !== null && _h !== undefined ? _h : true, - strictTypes: (_k = (_j = o.strictTypes) !== null && _j !== undefined ? _j : s) !== null && _k !== undefined ? _k : "log", - strictTuples: (_m = (_l = o.strictTuples) !== null && _l !== undefined ? _l : s) !== null && _m !== undefined ? _m : "log", - strictRequired: (_p = (_o = o.strictRequired) !== null && _o !== undefined ? _o : s) !== null && _p !== undefined ? _p : false, - code: o.code ? { ...o.code, optimize, regExp } : { optimize, regExp }, - loopRequired: (_q = o.loopRequired) !== null && _q !== undefined ? _q : MAX_EXPRESSION, - loopEnum: (_r = o.loopEnum) !== null && _r !== undefined ? _r : MAX_EXPRESSION, - meta: (_s = o.meta) !== null && _s !== undefined ? _s : true, - messages: (_t = o.messages) !== null && _t !== undefined ? _t : true, - inlineRefs: (_u = o.inlineRefs) !== null && _u !== undefined ? _u : true, - schemaId: (_v = o.schemaId) !== null && _v !== undefined ? _v : "$id", - addUsedSchema: (_w = o.addUsedSchema) !== null && _w !== undefined ? _w : true, - validateSchema: (_x = o.validateSchema) !== null && _x !== undefined ? _x : true, - validateFormats: (_y = o.validateFormats) !== null && _y !== undefined ? _y : true, - unicodeRegExp: (_z = o.unicodeRegExp) !== null && _z !== undefined ? _z : true, - int32range: (_0 = o.int32range) !== null && _0 !== undefined ? _0 : true, - uriResolver - }; - } - - class Ajv { - constructor(opts = {}) { - this.schemas = {}; - this.refs = {}; - this.formats = {}; - this._compilations = new Set; - this._loading = {}; - this._cache = new Map; - opts = this.opts = { ...opts, ...requiredOptions(opts) }; - const { es5, lines } = this.opts.code; - this.scope = new codegen_2.ValueScope({ scope: {}, prefixes: EXT_SCOPE_NAMES, es5, lines }); - this.logger = getLogger(opts.logger); - const formatOpt = opts.validateFormats; - opts.validateFormats = false; - this.RULES = (0, rules_1.getRules)(); - checkOptions.call(this, removedOptions, opts, "NOT SUPPORTED"); - checkOptions.call(this, deprecatedOptions, opts, "DEPRECATED", "warn"); - this._metaOpts = getMetaSchemaOptions.call(this); - if (opts.formats) - addInitialFormats.call(this); - this._addVocabularies(); - this._addDefaultMetaSchema(); - if (opts.keywords) - addInitialKeywords.call(this, opts.keywords); - if (typeof opts.meta == "object") - this.addMetaSchema(opts.meta); - addInitialSchemas.call(this); - opts.validateFormats = formatOpt; - } - _addVocabularies() { - this.addKeyword("$async"); - } - _addDefaultMetaSchema() { - const { $data, meta: meta2, schemaId } = this.opts; - let _dataRefSchema = $dataRefSchema; - if (schemaId === "id") { - _dataRefSchema = { ...$dataRefSchema }; - _dataRefSchema.id = _dataRefSchema.$id; - delete _dataRefSchema.$id; - } - if (meta2 && $data) - this.addMetaSchema(_dataRefSchema, _dataRefSchema[schemaId], false); - } - defaultMeta() { - const { meta: meta2, schemaId } = this.opts; - return this.opts.defaultMeta = typeof meta2 == "object" ? meta2[schemaId] || meta2 : undefined; - } - validate(schemaKeyRef, data) { - let v; - if (typeof schemaKeyRef == "string") { - v = this.getSchema(schemaKeyRef); - if (!v) - throw new Error(`no schema with key or ref "${schemaKeyRef}"`); - } else { - v = this.compile(schemaKeyRef); - } - const valid = v(data); - if (!("$async" in v)) - this.errors = v.errors; - return valid; - } - compile(schema, _meta) { - const sch = this._addSchema(schema, _meta); - return sch.validate || this._compileSchemaEnv(sch); - } - compileAsync(schema, meta2) { - if (typeof this.opts.loadSchema != "function") { - throw new Error("options.loadSchema should be a function"); - } - const { loadSchema } = this.opts; - return runCompileAsync.call(this, schema, meta2); - async function runCompileAsync(_schema, _meta) { - await loadMetaSchema.call(this, _schema.$schema); - const sch = this._addSchema(_schema, _meta); - return sch.validate || _compileAsync.call(this, sch); - } - async function loadMetaSchema($ref) { - if ($ref && !this.getSchema($ref)) { - await runCompileAsync.call(this, { $ref }, true); - } - } - async function _compileAsync(sch) { - try { - return this._compileSchemaEnv(sch); - } catch (e) { - if (!(e instanceof ref_error_1.default)) - throw e; - checkLoaded.call(this, e); - await loadMissingSchema.call(this, e.missingSchema); - return _compileAsync.call(this, sch); - } - } - function checkLoaded({ missingSchema: ref, missingRef }) { - if (this.refs[ref]) { - throw new Error(`AnySchema ${ref} is loaded but ${missingRef} cannot be resolved`); - } - } - async function loadMissingSchema(ref) { - const _schema = await _loadSchema.call(this, ref); - if (!this.refs[ref]) - await loadMetaSchema.call(this, _schema.$schema); - if (!this.refs[ref]) - this.addSchema(_schema, ref, meta2); - } - async function _loadSchema(ref) { - const p = this._loading[ref]; - if (p) - return p; - try { - return await (this._loading[ref] = loadSchema(ref)); - } finally { - delete this._loading[ref]; - } - } - } - addSchema(schema, key, _meta, _validateSchema = this.opts.validateSchema) { - if (Array.isArray(schema)) { - for (const sch of schema) - this.addSchema(sch, undefined, _meta, _validateSchema); - return this; - } - let id; - if (typeof schema === "object") { - const { schemaId } = this.opts; - id = schema[schemaId]; - if (id !== undefined && typeof id != "string") { - throw new Error(`schema ${schemaId} must be string`); - } - } - key = (0, resolve_1.normalizeId)(key || id); - this._checkUnique(key); - this.schemas[key] = this._addSchema(schema, _meta, key, _validateSchema, true); - return this; - } - addMetaSchema(schema, key, _validateSchema = this.opts.validateSchema) { - this.addSchema(schema, key, true, _validateSchema); - return this; - } - validateSchema(schema, throwOrLogError) { - if (typeof schema == "boolean") - return true; - let $schema; - $schema = schema.$schema; - if ($schema !== undefined && typeof $schema != "string") { - throw new Error("$schema must be a string"); - } - $schema = $schema || this.opts.defaultMeta || this.defaultMeta(); - if (!$schema) { - this.logger.warn("meta-schema not available"); - this.errors = null; - return true; - } - const valid = this.validate($schema, schema); - if (!valid && throwOrLogError) { - const message = "schema is invalid: " + this.errorsText(); - if (this.opts.validateSchema === "log") - this.logger.error(message); - else - throw new Error(message); - } - return valid; - } - getSchema(keyRef) { - let sch; - while (typeof (sch = getSchEnv.call(this, keyRef)) == "string") - keyRef = sch; - if (sch === undefined) { - const { schemaId } = this.opts; - const root = new compile_1.SchemaEnv({ schema: {}, schemaId }); - sch = compile_1.resolveSchema.call(this, root, keyRef); - if (!sch) - return; - this.refs[keyRef] = sch; - } - return sch.validate || this._compileSchemaEnv(sch); - } - removeSchema(schemaKeyRef) { - if (schemaKeyRef instanceof RegExp) { - this._removeAllSchemas(this.schemas, schemaKeyRef); - this._removeAllSchemas(this.refs, schemaKeyRef); - return this; - } - switch (typeof schemaKeyRef) { - case "undefined": - this._removeAllSchemas(this.schemas); - this._removeAllSchemas(this.refs); - this._cache.clear(); - return this; - case "string": { - const sch = getSchEnv.call(this, schemaKeyRef); - if (typeof sch == "object") - this._cache.delete(sch.schema); - delete this.schemas[schemaKeyRef]; - delete this.refs[schemaKeyRef]; - return this; - } - case "object": { - const cacheKey = schemaKeyRef; - this._cache.delete(cacheKey); - let id = schemaKeyRef[this.opts.schemaId]; - if (id) { - id = (0, resolve_1.normalizeId)(id); - delete this.schemas[id]; - delete this.refs[id]; - } - return this; - } - default: - throw new Error("ajv.removeSchema: invalid parameter"); - } - } - addVocabulary(definitions) { - for (const def of definitions) - this.addKeyword(def); - return this; - } - addKeyword(kwdOrDef, def) { - let keyword; - if (typeof kwdOrDef == "string") { - keyword = kwdOrDef; - if (typeof def == "object") { - this.logger.warn("these parameters are deprecated, see docs for addKeyword"); - def.keyword = keyword; - } - } else if (typeof kwdOrDef == "object" && def === undefined) { - def = kwdOrDef; - keyword = def.keyword; - if (Array.isArray(keyword) && !keyword.length) { - throw new Error("addKeywords: keyword must be string or non-empty array"); - } - } else { - throw new Error("invalid addKeywords parameters"); - } - checkKeyword.call(this, keyword, def); - if (!def) { - (0, util_1.eachItem)(keyword, (kwd) => addRule.call(this, kwd)); - return this; - } - keywordMetaschema.call(this, def); - const definition = { - ...def, - type: (0, dataType_1.getJSONTypes)(def.type), - schemaType: (0, dataType_1.getJSONTypes)(def.schemaType) - }; - (0, util_1.eachItem)(keyword, definition.type.length === 0 ? (k) => addRule.call(this, k, definition) : (k) => definition.type.forEach((t) => addRule.call(this, k, definition, t))); - return this; - } - getKeyword(keyword) { - const rule = this.RULES.all[keyword]; - return typeof rule == "object" ? rule.definition : !!rule; - } - removeKeyword(keyword) { - const { RULES } = this; - delete RULES.keywords[keyword]; - delete RULES.all[keyword]; - for (const group of RULES.rules) { - const i = group.rules.findIndex((rule) => rule.keyword === keyword); - if (i >= 0) - group.rules.splice(i, 1); - } - return this; - } - addFormat(name, format) { - if (typeof format == "string") - format = new RegExp(format); - this.formats[name] = format; - return this; - } - errorsText(errors3 = this.errors, { separator = ", ", dataVar = "data" } = {}) { - if (!errors3 || errors3.length === 0) - return "No errors"; - return errors3.map((e) => `${dataVar}${e.instancePath} ${e.message}`).reduce((text, msg) => text + separator + msg); - } - $dataMetaSchema(metaSchema, keywordsJsonPointers) { - const rules = this.RULES.all; - metaSchema = JSON.parse(JSON.stringify(metaSchema)); - for (const jsonPointer of keywordsJsonPointers) { - const segments = jsonPointer.split("/").slice(1); - let keywords = metaSchema; - for (const seg of segments) - keywords = keywords[seg]; - for (const key in rules) { - const rule = rules[key]; - if (typeof rule != "object") - continue; - const { $data } = rule.definition; - const schema = keywords[key]; - if ($data && schema) - keywords[key] = schemaOrData(schema); - } - } - return metaSchema; - } - _removeAllSchemas(schemas3, regex) { - for (const keyRef in schemas3) { - const sch = schemas3[keyRef]; - if (!regex || regex.test(keyRef)) { - if (typeof sch == "string") { - delete schemas3[keyRef]; - } else if (sch && !sch.meta) { - this._cache.delete(sch.schema); - delete schemas3[keyRef]; - } - } - } - } - _addSchema(schema, meta2, baseId, validateSchema = this.opts.validateSchema, addSchema = this.opts.addUsedSchema) { - let id; - const { schemaId } = this.opts; - if (typeof schema == "object") { - id = schema[schemaId]; - } else { - if (this.opts.jtd) - throw new Error("schema must be object"); - else if (typeof schema != "boolean") - throw new Error("schema must be object or boolean"); - } - let sch = this._cache.get(schema); - if (sch !== undefined) - return sch; - baseId = (0, resolve_1.normalizeId)(id || baseId); - const localRefs = resolve_1.getSchemaRefs.call(this, schema, baseId); - sch = new compile_1.SchemaEnv({ schema, schemaId, meta: meta2, baseId, localRefs }); - this._cache.set(sch.schema, sch); - if (addSchema && !baseId.startsWith("#")) { - if (baseId) - this._checkUnique(baseId); - this.refs[baseId] = sch; - } - if (validateSchema) - this.validateSchema(schema, true); - return sch; - } - _checkUnique(id) { - if (this.schemas[id] || this.refs[id]) { - throw new Error(`schema with key or id "${id}" already exists`); - } - } - _compileSchemaEnv(sch) { - if (sch.meta) - this._compileMetaSchema(sch); - else - compile_1.compileSchema.call(this, sch); - if (!sch.validate) - throw new Error("ajv implementation error"); - return sch.validate; - } - _compileMetaSchema(sch) { - const currentOpts = this.opts; - this.opts = this._metaOpts; - try { - compile_1.compileSchema.call(this, sch); - } finally { - this.opts = currentOpts; - } - } - } - Ajv.ValidationError = validation_error_1.default; - Ajv.MissingRefError = ref_error_1.default; - exports.default = Ajv; - function checkOptions(checkOpts, options, msg, log = "error") { - for (const key in checkOpts) { - const opt = key; - if (opt in options) - this.logger[log](`${msg}: option ${key}. ${checkOpts[opt]}`); - } - } - function getSchEnv(keyRef) { - keyRef = (0, resolve_1.normalizeId)(keyRef); - return this.schemas[keyRef] || this.refs[keyRef]; - } - function addInitialSchemas() { - const optsSchemas = this.opts.schemas; - if (!optsSchemas) - return; - if (Array.isArray(optsSchemas)) - this.addSchema(optsSchemas); - else - for (const key in optsSchemas) - this.addSchema(optsSchemas[key], key); - } - function addInitialFormats() { - for (const name in this.opts.formats) { - const format = this.opts.formats[name]; - if (format) - this.addFormat(name, format); - } - } - function addInitialKeywords(defs) { - if (Array.isArray(defs)) { - this.addVocabulary(defs); - return; - } - this.logger.warn("keywords option as map is deprecated, pass array"); - for (const keyword in defs) { - const def = defs[keyword]; - if (!def.keyword) - def.keyword = keyword; - this.addKeyword(def); - } - } - function getMetaSchemaOptions() { - const metaOpts = { ...this.opts }; - for (const opt of META_IGNORE_OPTIONS) - delete metaOpts[opt]; - return metaOpts; - } - var noLogs = { log() {}, warn() {}, error() {} }; - function getLogger(logger) { - if (logger === false) - return noLogs; - if (logger === undefined) - return console; - if (logger.log && logger.warn && logger.error) - return logger; - throw new Error("logger must implement log, warn and error methods"); - } - var KEYWORD_NAME = /^[a-z_$][a-z0-9_$:-]*$/i; - function checkKeyword(keyword, def) { - const { RULES } = this; - (0, util_1.eachItem)(keyword, (kwd) => { - if (RULES.keywords[kwd]) - throw new Error(`Keyword ${kwd} is already defined`); - if (!KEYWORD_NAME.test(kwd)) - throw new Error(`Keyword ${kwd} has invalid name`); - }); - if (!def) - return; - if (def.$data && !(("code" in def) || ("validate" in def))) { - throw new Error('$data keyword must have "code" or "validate" function'); - } - } - function addRule(keyword, definition, dataType) { - var _a2; - const post = definition === null || definition === undefined ? undefined : definition.post; - if (dataType && post) - throw new Error('keyword with "post" flag cannot have "type"'); - const { RULES } = this; - let ruleGroup = post ? RULES.post : RULES.rules.find(({ type: t }) => t === dataType); - if (!ruleGroup) { - ruleGroup = { type: dataType, rules: [] }; - RULES.rules.push(ruleGroup); - } - RULES.keywords[keyword] = true; - if (!definition) - return; - const rule = { - keyword, - definition: { - ...definition, - type: (0, dataType_1.getJSONTypes)(definition.type), - schemaType: (0, dataType_1.getJSONTypes)(definition.schemaType) - } - }; - if (definition.before) - addBeforeRule.call(this, ruleGroup, rule, definition.before); - else - ruleGroup.rules.push(rule); - RULES.all[keyword] = rule; - (_a2 = definition.implements) === null || _a2 === undefined || _a2.forEach((kwd) => this.addKeyword(kwd)); - } - function addBeforeRule(ruleGroup, rule, before) { - const i = ruleGroup.rules.findIndex((_rule) => _rule.keyword === before); - if (i >= 0) { - ruleGroup.rules.splice(i, 0, rule); - } else { - ruleGroup.rules.push(rule); - this.logger.warn(`rule ${before} is not defined`); - } - } - function keywordMetaschema(def) { - let { metaSchema } = def; - if (metaSchema === undefined) - return; - if (def.$data && this.opts.$data) - metaSchema = schemaOrData(metaSchema); - def.validateSchema = this.compile(metaSchema, true); - } - var $dataRef = { - $ref: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#" - }; - function schemaOrData(schema) { - return { anyOf: [schema, $dataRef] }; - } -}); - -// node_modules/ajv/dist/vocabularies/core/id.js -var require_id = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var def = { - keyword: "id", - code() { - throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID'); - } - }; - exports.default = def; -}); - -// node_modules/ajv/dist/vocabularies/core/ref.js -var require_ref = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.callRef = exports.getValidate = undefined; - var ref_error_1 = require_ref_error(); - var code_1 = require_code2(); - var codegen_1 = require_codegen(); - var names_1 = require_names(); - var compile_1 = require_compile(); - var util_1 = require_util(); - var def = { - keyword: "$ref", - schemaType: "string", - code(cxt) { - const { gen, schema: $ref, it } = cxt; - const { baseId, schemaEnv: env, validateName, opts, self: self2 } = it; - const { root } = env; - if (($ref === "#" || $ref === "#/") && baseId === root.baseId) - return callRootRef(); - const schOrEnv = compile_1.resolveRef.call(self2, root, baseId, $ref); - if (schOrEnv === undefined) - throw new ref_error_1.default(it.opts.uriResolver, baseId, $ref); - if (schOrEnv instanceof compile_1.SchemaEnv) - return callValidate(schOrEnv); - return inlineRefSchema(schOrEnv); - function callRootRef() { - if (env === root) - return callRef(cxt, validateName, env, env.$async); - const rootName = gen.scopeValue("root", { ref: root }); - return callRef(cxt, (0, codegen_1._)`${rootName}.validate`, root, root.$async); - } - function callValidate(sch) { - const v = getValidate(cxt, sch); - callRef(cxt, v, sch, sch.$async); - } - function inlineRefSchema(sch) { - const schName = gen.scopeValue("schema", opts.code.source === true ? { ref: sch, code: (0, codegen_1.stringify)(sch) } : { ref: sch }); - const valid = gen.name("valid"); - const schCxt = cxt.subschema({ - schema: sch, - dataTypes: [], - schemaPath: codegen_1.nil, - topSchemaRef: schName, - errSchemaPath: $ref - }, valid); - cxt.mergeEvaluated(schCxt); - cxt.ok(valid); - } - } - }; - function getValidate(cxt, sch) { - const { gen } = cxt; - return sch.validate ? gen.scopeValue("validate", { ref: sch.validate }) : (0, codegen_1._)`${gen.scopeValue("wrapper", { ref: sch })}.validate`; - } - exports.getValidate = getValidate; - function callRef(cxt, v, sch, $async) { - const { gen, it } = cxt; - const { allErrors, schemaEnv: env, opts } = it; - const passCxt = opts.passContext ? names_1.default.this : codegen_1.nil; - if ($async) - callAsyncRef(); - else - callSyncRef(); - function callAsyncRef() { - if (!env.$async) - throw new Error("async schema referenced by sync schema"); - const valid = gen.let("valid"); - gen.try(() => { - gen.code((0, codegen_1._)`await ${(0, code_1.callValidateCode)(cxt, v, passCxt)}`); - addEvaluatedFrom(v); - if (!allErrors) - gen.assign(valid, true); - }, (e) => { - gen.if((0, codegen_1._)`!(${e} instanceof ${it.ValidationError})`, () => gen.throw(e)); - addErrorsFrom(e); - if (!allErrors) - gen.assign(valid, false); - }); - cxt.ok(valid); - } - function callSyncRef() { - cxt.result((0, code_1.callValidateCode)(cxt, v, passCxt), () => addEvaluatedFrom(v), () => addErrorsFrom(v)); - } - function addErrorsFrom(source) { - const errs = (0, codegen_1._)`${source}.errors`; - gen.assign(names_1.default.vErrors, (0, codegen_1._)`${names_1.default.vErrors} === null ? ${errs} : ${names_1.default.vErrors}.concat(${errs})`); - gen.assign(names_1.default.errors, (0, codegen_1._)`${names_1.default.vErrors}.length`); - } - function addEvaluatedFrom(source) { - var _a2; - if (!it.opts.unevaluated) - return; - const schEvaluated = (_a2 = sch === null || sch === undefined ? undefined : sch.validate) === null || _a2 === undefined ? undefined : _a2.evaluated; - if (it.props !== true) { - if (schEvaluated && !schEvaluated.dynamicProps) { - if (schEvaluated.props !== undefined) { - it.props = util_1.mergeEvaluated.props(gen, schEvaluated.props, it.props); - } - } else { - const props = gen.var("props", (0, codegen_1._)`${source}.evaluated.props`); - it.props = util_1.mergeEvaluated.props(gen, props, it.props, codegen_1.Name); - } - } - if (it.items !== true) { - if (schEvaluated && !schEvaluated.dynamicItems) { - if (schEvaluated.items !== undefined) { - it.items = util_1.mergeEvaluated.items(gen, schEvaluated.items, it.items); - } - } else { - const items = gen.var("items", (0, codegen_1._)`${source}.evaluated.items`); - it.items = util_1.mergeEvaluated.items(gen, items, it.items, codegen_1.Name); - } - } - } - } - exports.callRef = callRef; - exports.default = def; -}); - -// node_modules/ajv/dist/vocabularies/core/index.js -var require_core2 = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var id_1 = require_id(); - var ref_1 = require_ref(); - var core2 = [ - "$schema", - "$id", - "$defs", - "$vocabulary", - { keyword: "$comment" }, - "definitions", - id_1.default, - ref_1.default - ]; - exports.default = core2; -}); - -// node_modules/ajv/dist/vocabularies/validation/limitNumber.js -var require_limitNumber = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var codegen_1 = require_codegen(); - var ops = codegen_1.operators; - var KWDs = { - maximum: { okStr: "<=", ok: ops.LTE, fail: ops.GT }, - minimum: { okStr: ">=", ok: ops.GTE, fail: ops.LT }, - exclusiveMaximum: { okStr: "<", ok: ops.LT, fail: ops.GTE }, - exclusiveMinimum: { okStr: ">", ok: ops.GT, fail: ops.LTE } - }; - var error2 = { - message: ({ keyword, schemaCode }) => (0, codegen_1.str)`must be ${KWDs[keyword].okStr} ${schemaCode}`, - params: ({ keyword, schemaCode }) => (0, codegen_1._)`{comparison: ${KWDs[keyword].okStr}, limit: ${schemaCode}}` - }; - var def = { - keyword: Object.keys(KWDs), - type: "number", - schemaType: "number", - $data: true, - error: error2, - code(cxt) { - const { keyword, data, schemaCode } = cxt; - cxt.fail$data((0, codegen_1._)`${data} ${KWDs[keyword].fail} ${schemaCode} || isNaN(${data})`); - } - }; - exports.default = def; -}); - -// node_modules/ajv/dist/vocabularies/validation/multipleOf.js -var require_multipleOf = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var codegen_1 = require_codegen(); - var error2 = { - message: ({ schemaCode }) => (0, codegen_1.str)`must be multiple of ${schemaCode}`, - params: ({ schemaCode }) => (0, codegen_1._)`{multipleOf: ${schemaCode}}` - }; - var def = { - keyword: "multipleOf", - type: "number", - schemaType: "number", - $data: true, - error: error2, - code(cxt) { - const { gen, data, schemaCode, it } = cxt; - const prec = it.opts.multipleOfPrecision; - const res = gen.let("res"); - const invalid = prec ? (0, codegen_1._)`Math.abs(Math.round(${res}) - ${res}) > 1e-${prec}` : (0, codegen_1._)`${res} !== parseInt(${res})`; - cxt.fail$data((0, codegen_1._)`(${schemaCode} === 0 || (${res} = ${data}/${schemaCode}, ${invalid}))`); - } - }; - exports.default = def; -}); - -// node_modules/ajv/dist/runtime/ucs2length.js -var require_ucs2length = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - function ucs2length(str) { - const len = str.length; - let length = 0; - let pos = 0; - let value; - while (pos < len) { - length++; - value = str.charCodeAt(pos++); - if (value >= 55296 && value <= 56319 && pos < len) { - value = str.charCodeAt(pos); - if ((value & 64512) === 56320) - pos++; - } - } - return length; - } - exports.default = ucs2length; - ucs2length.code = 'require("ajv/dist/runtime/ucs2length").default'; -}); - -// node_modules/ajv/dist/vocabularies/validation/limitLength.js -var require_limitLength = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var codegen_1 = require_codegen(); - var util_1 = require_util(); - var ucs2length_1 = require_ucs2length(); - var error2 = { - message({ keyword, schemaCode }) { - const comp = keyword === "maxLength" ? "more" : "fewer"; - return (0, codegen_1.str)`must NOT have ${comp} than ${schemaCode} characters`; - }, - params: ({ schemaCode }) => (0, codegen_1._)`{limit: ${schemaCode}}` - }; - var def = { - keyword: ["maxLength", "minLength"], - type: "string", - schemaType: "number", - $data: true, - error: error2, - code(cxt) { - const { keyword, data, schemaCode, it } = cxt; - const op = keyword === "maxLength" ? codegen_1.operators.GT : codegen_1.operators.LT; - const len = it.opts.unicode === false ? (0, codegen_1._)`${data}.length` : (0, codegen_1._)`${(0, util_1.useFunc)(cxt.gen, ucs2length_1.default)}(${data})`; - cxt.fail$data((0, codegen_1._)`${len} ${op} ${schemaCode}`); - } - }; - exports.default = def; -}); - -// node_modules/ajv/dist/vocabularies/validation/pattern.js -var require_pattern = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var code_1 = require_code2(); - var util_1 = require_util(); - var codegen_1 = require_codegen(); - var error2 = { - message: ({ schemaCode }) => (0, codegen_1.str)`must match pattern "${schemaCode}"`, - params: ({ schemaCode }) => (0, codegen_1._)`{pattern: ${schemaCode}}` - }; - var def = { - keyword: "pattern", - type: "string", - schemaType: "string", - $data: true, - error: error2, - code(cxt) { - const { gen, data, $data, schema, schemaCode, it } = cxt; - const u = it.opts.unicodeRegExp ? "u" : ""; - if ($data) { - const { regExp } = it.opts.code; - const regExpCode = regExp.code === "new RegExp" ? (0, codegen_1._)`new RegExp` : (0, util_1.useFunc)(gen, regExp); - const valid = gen.let("valid"); - gen.try(() => gen.assign(valid, (0, codegen_1._)`${regExpCode}(${schemaCode}, ${u}).test(${data})`), () => gen.assign(valid, false)); - cxt.fail$data((0, codegen_1._)`!${valid}`); - } else { - const regExp = (0, code_1.usePattern)(cxt, schema); - cxt.fail$data((0, codegen_1._)`!${regExp}.test(${data})`); - } - } - }; - exports.default = def; -}); - -// node_modules/ajv/dist/vocabularies/validation/limitProperties.js -var require_limitProperties = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var codegen_1 = require_codegen(); - var error2 = { - message({ keyword, schemaCode }) { - const comp = keyword === "maxProperties" ? "more" : "fewer"; - return (0, codegen_1.str)`must NOT have ${comp} than ${schemaCode} properties`; - }, - params: ({ schemaCode }) => (0, codegen_1._)`{limit: ${schemaCode}}` - }; - var def = { - keyword: ["maxProperties", "minProperties"], - type: "object", - schemaType: "number", - $data: true, - error: error2, - code(cxt) { - const { keyword, data, schemaCode } = cxt; - const op = keyword === "maxProperties" ? codegen_1.operators.GT : codegen_1.operators.LT; - cxt.fail$data((0, codegen_1._)`Object.keys(${data}).length ${op} ${schemaCode}`); - } - }; - exports.default = def; -}); - -// node_modules/ajv/dist/vocabularies/validation/required.js -var require_required = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var code_1 = require_code2(); - var codegen_1 = require_codegen(); - var util_1 = require_util(); - var error2 = { - message: ({ params: { missingProperty } }) => (0, codegen_1.str)`must have required property '${missingProperty}'`, - params: ({ params: { missingProperty } }) => (0, codegen_1._)`{missingProperty: ${missingProperty}}` - }; - var def = { - keyword: "required", - type: "object", - schemaType: "array", - $data: true, - error: error2, - code(cxt) { - const { gen, schema, schemaCode, data, $data, it } = cxt; - const { opts } = it; - if (!$data && schema.length === 0) - return; - const useLoop = schema.length >= opts.loopRequired; - if (it.allErrors) - allErrorsMode(); - else - exitOnErrorMode(); - if (opts.strictRequired) { - const props = cxt.parentSchema.properties; - const { definedProperties } = cxt.it; - for (const requiredKey of schema) { - if ((props === null || props === undefined ? undefined : props[requiredKey]) === undefined && !definedProperties.has(requiredKey)) { - const schemaPath = it.schemaEnv.baseId + it.errSchemaPath; - const msg = `required property "${requiredKey}" is not defined at "${schemaPath}" (strictRequired)`; - (0, util_1.checkStrictMode)(it, msg, it.opts.strictRequired); - } - } - } - function allErrorsMode() { - if (useLoop || $data) { - cxt.block$data(codegen_1.nil, loopAllRequired); - } else { - for (const prop of schema) { - (0, code_1.checkReportMissingProp)(cxt, prop); - } - } - } - function exitOnErrorMode() { - const missing = gen.let("missing"); - if (useLoop || $data) { - const valid = gen.let("valid", true); - cxt.block$data(valid, () => loopUntilMissing(missing, valid)); - cxt.ok(valid); - } else { - gen.if((0, code_1.checkMissingProp)(cxt, schema, missing)); - (0, code_1.reportMissingProp)(cxt, missing); - gen.else(); - } - } - function loopAllRequired() { - gen.forOf("prop", schemaCode, (prop) => { - cxt.setParams({ missingProperty: prop }); - gen.if((0, code_1.noPropertyInData)(gen, data, prop, opts.ownProperties), () => cxt.error()); - }); - } - function loopUntilMissing(missing, valid) { - cxt.setParams({ missingProperty: missing }); - gen.forOf(missing, schemaCode, () => { - gen.assign(valid, (0, code_1.propertyInData)(gen, data, missing, opts.ownProperties)); - gen.if((0, codegen_1.not)(valid), () => { - cxt.error(); - gen.break(); - }); - }, codegen_1.nil); - } - } - }; - exports.default = def; -}); - -// node_modules/ajv/dist/vocabularies/validation/limitItems.js -var require_limitItems = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var codegen_1 = require_codegen(); - var error2 = { - message({ keyword, schemaCode }) { - const comp = keyword === "maxItems" ? "more" : "fewer"; - return (0, codegen_1.str)`must NOT have ${comp} than ${schemaCode} items`; - }, - params: ({ schemaCode }) => (0, codegen_1._)`{limit: ${schemaCode}}` - }; - var def = { - keyword: ["maxItems", "minItems"], - type: "array", - schemaType: "number", - $data: true, - error: error2, - code(cxt) { - const { keyword, data, schemaCode } = cxt; - const op = keyword === "maxItems" ? codegen_1.operators.GT : codegen_1.operators.LT; - cxt.fail$data((0, codegen_1._)`${data}.length ${op} ${schemaCode}`); - } - }; - exports.default = def; -}); - -// node_modules/ajv/dist/runtime/equal.js -var require_equal = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var equal = require_fast_deep_equal(); - equal.code = 'require("ajv/dist/runtime/equal").default'; - exports.default = equal; -}); - -// node_modules/ajv/dist/vocabularies/validation/uniqueItems.js -var require_uniqueItems = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var dataType_1 = require_dataType(); - var codegen_1 = require_codegen(); - var util_1 = require_util(); - var equal_1 = require_equal(); - var error2 = { - message: ({ params: { i, j } }) => (0, codegen_1.str)`must NOT have duplicate items (items ## ${j} and ${i} are identical)`, - params: ({ params: { i, j } }) => (0, codegen_1._)`{i: ${i}, j: ${j}}` - }; - var def = { - keyword: "uniqueItems", - type: "array", - schemaType: "boolean", - $data: true, - error: error2, - code(cxt) { - const { gen, data, $data, schema, parentSchema, schemaCode, it } = cxt; - if (!$data && !schema) - return; - const valid = gen.let("valid"); - const itemTypes = parentSchema.items ? (0, dataType_1.getSchemaTypes)(parentSchema.items) : []; - cxt.block$data(valid, validateUniqueItems, (0, codegen_1._)`${schemaCode} === false`); - cxt.ok(valid); - function validateUniqueItems() { - const i = gen.let("i", (0, codegen_1._)`${data}.length`); - const j = gen.let("j"); - cxt.setParams({ i, j }); - gen.assign(valid, true); - gen.if((0, codegen_1._)`${i} > 1`, () => (canOptimize() ? loopN : loopN2)(i, j)); - } - function canOptimize() { - return itemTypes.length > 0 && !itemTypes.some((t) => t === "object" || t === "array"); - } - function loopN(i, j) { - const item = gen.name("item"); - const wrongType = (0, dataType_1.checkDataTypes)(itemTypes, item, it.opts.strictNumbers, dataType_1.DataType.Wrong); - const indices = gen.const("indices", (0, codegen_1._)`{}`); - gen.for((0, codegen_1._)`;${i}--;`, () => { - gen.let(item, (0, codegen_1._)`${data}[${i}]`); - gen.if(wrongType, (0, codegen_1._)`continue`); - if (itemTypes.length > 1) - gen.if((0, codegen_1._)`typeof ${item} == "string"`, (0, codegen_1._)`${item} += "_"`); - gen.if((0, codegen_1._)`typeof ${indices}[${item}] == "number"`, () => { - gen.assign(j, (0, codegen_1._)`${indices}[${item}]`); - cxt.error(); - gen.assign(valid, false).break(); - }).code((0, codegen_1._)`${indices}[${item}] = ${i}`); - }); - } - function loopN2(i, j) { - const eql = (0, util_1.useFunc)(gen, equal_1.default); - const outer = gen.name("outer"); - gen.label(outer).for((0, codegen_1._)`;${i}--;`, () => gen.for((0, codegen_1._)`${j} = ${i}; ${j}--;`, () => gen.if((0, codegen_1._)`${eql}(${data}[${i}], ${data}[${j}])`, () => { - cxt.error(); - gen.assign(valid, false).break(outer); - }))); - } - } - }; - exports.default = def; -}); - -// node_modules/ajv/dist/vocabularies/validation/const.js -var require_const = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var codegen_1 = require_codegen(); - var util_1 = require_util(); - var equal_1 = require_equal(); - var error2 = { - message: "must be equal to constant", - params: ({ schemaCode }) => (0, codegen_1._)`{allowedValue: ${schemaCode}}` - }; - var def = { - keyword: "const", - $data: true, - error: error2, - code(cxt) { - const { gen, data, $data, schemaCode, schema } = cxt; - if ($data || schema && typeof schema == "object") { - cxt.fail$data((0, codegen_1._)`!${(0, util_1.useFunc)(gen, equal_1.default)}(${data}, ${schemaCode})`); - } else { - cxt.fail((0, codegen_1._)`${schema} !== ${data}`); - } - } - }; - exports.default = def; -}); - -// node_modules/ajv/dist/vocabularies/validation/enum.js -var require_enum = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var codegen_1 = require_codegen(); - var util_1 = require_util(); - var equal_1 = require_equal(); - var error2 = { - message: "must be equal to one of the allowed values", - params: ({ schemaCode }) => (0, codegen_1._)`{allowedValues: ${schemaCode}}` - }; - var def = { - keyword: "enum", - schemaType: "array", - $data: true, - error: error2, - code(cxt) { - const { gen, data, $data, schema, schemaCode, it } = cxt; - if (!$data && schema.length === 0) - throw new Error("enum must have non-empty array"); - const useLoop = schema.length >= it.opts.loopEnum; - let eql; - const getEql = () => eql !== null && eql !== undefined ? eql : eql = (0, util_1.useFunc)(gen, equal_1.default); - let valid; - if (useLoop || $data) { - valid = gen.let("valid"); - cxt.block$data(valid, loopEnum); - } else { - if (!Array.isArray(schema)) - throw new Error("ajv implementation error"); - const vSchema = gen.const("vSchema", schemaCode); - valid = (0, codegen_1.or)(...schema.map((_x, i) => equalCode(vSchema, i))); - } - cxt.pass(valid); - function loopEnum() { - gen.assign(valid, false); - gen.forOf("v", schemaCode, (v) => gen.if((0, codegen_1._)`${getEql()}(${data}, ${v})`, () => gen.assign(valid, true).break())); - } - function equalCode(vSchema, i) { - const sch = schema[i]; - return typeof sch === "object" && sch !== null ? (0, codegen_1._)`${getEql()}(${data}, ${vSchema}[${i}])` : (0, codegen_1._)`${data} === ${sch}`; - } - } - }; - exports.default = def; -}); - -// node_modules/ajv/dist/vocabularies/validation/index.js -var require_validation = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var limitNumber_1 = require_limitNumber(); - var multipleOf_1 = require_multipleOf(); - var limitLength_1 = require_limitLength(); - var pattern_1 = require_pattern(); - var limitProperties_1 = require_limitProperties(); - var required_1 = require_required(); - var limitItems_1 = require_limitItems(); - var uniqueItems_1 = require_uniqueItems(); - var const_1 = require_const(); - var enum_1 = require_enum(); - var validation = [ - limitNumber_1.default, - multipleOf_1.default, - limitLength_1.default, - pattern_1.default, - limitProperties_1.default, - required_1.default, - limitItems_1.default, - uniqueItems_1.default, - { keyword: "type", schemaType: ["string", "array"] }, - { keyword: "nullable", schemaType: "boolean" }, - const_1.default, - enum_1.default - ]; - exports.default = validation; -}); - -// node_modules/ajv/dist/vocabularies/applicator/additionalItems.js -var require_additionalItems = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.validateAdditionalItems = undefined; - var codegen_1 = require_codegen(); - var util_1 = require_util(); - var error2 = { - message: ({ params: { len } }) => (0, codegen_1.str)`must NOT have more than ${len} items`, - params: ({ params: { len } }) => (0, codegen_1._)`{limit: ${len}}` - }; - var def = { - keyword: "additionalItems", - type: "array", - schemaType: ["boolean", "object"], - before: "uniqueItems", - error: error2, - code(cxt) { - const { parentSchema, it } = cxt; - const { items } = parentSchema; - if (!Array.isArray(items)) { - (0, util_1.checkStrictMode)(it, '"additionalItems" is ignored when "items" is not an array of schemas'); - return; - } - validateAdditionalItems(cxt, items); - } - }; - function validateAdditionalItems(cxt, items) { - const { gen, schema, data, keyword, it } = cxt; - it.items = true; - const len = gen.const("len", (0, codegen_1._)`${data}.length`); - if (schema === false) { - cxt.setParams({ len: items.length }); - cxt.pass((0, codegen_1._)`${len} <= ${items.length}`); - } else if (typeof schema == "object" && !(0, util_1.alwaysValidSchema)(it, schema)) { - const valid = gen.var("valid", (0, codegen_1._)`${len} <= ${items.length}`); - gen.if((0, codegen_1.not)(valid), () => validateItems(valid)); - cxt.ok(valid); - } - function validateItems(valid) { - gen.forRange("i", items.length, len, (i) => { - cxt.subschema({ keyword, dataProp: i, dataPropType: util_1.Type.Num }, valid); - if (!it.allErrors) - gen.if((0, codegen_1.not)(valid), () => gen.break()); - }); - } - } - exports.validateAdditionalItems = validateAdditionalItems; - exports.default = def; -}); - -// node_modules/ajv/dist/vocabularies/applicator/items.js -var require_items = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.validateTuple = undefined; - var codegen_1 = require_codegen(); - var util_1 = require_util(); - var code_1 = require_code2(); - var def = { - keyword: "items", - type: "array", - schemaType: ["object", "array", "boolean"], - before: "uniqueItems", - code(cxt) { - const { schema, it } = cxt; - if (Array.isArray(schema)) - return validateTuple(cxt, "additionalItems", schema); - it.items = true; - if ((0, util_1.alwaysValidSchema)(it, schema)) - return; - cxt.ok((0, code_1.validateArray)(cxt)); - } - }; - function validateTuple(cxt, extraItems, schArr = cxt.schema) { - const { gen, parentSchema, data, keyword, it } = cxt; - checkStrictTuple(parentSchema); - if (it.opts.unevaluated && schArr.length && it.items !== true) { - it.items = util_1.mergeEvaluated.items(gen, schArr.length, it.items); - } - const valid = gen.name("valid"); - const len = gen.const("len", (0, codegen_1._)`${data}.length`); - schArr.forEach((sch, i) => { - if ((0, util_1.alwaysValidSchema)(it, sch)) - return; - gen.if((0, codegen_1._)`${len} > ${i}`, () => cxt.subschema({ - keyword, - schemaProp: i, - dataProp: i - }, valid)); - cxt.ok(valid); - }); - function checkStrictTuple(sch) { - const { opts, errSchemaPath } = it; - const l = schArr.length; - const fullTuple = l === sch.minItems && (l === sch.maxItems || sch[extraItems] === false); - if (opts.strictTuples && !fullTuple) { - const msg = `"${keyword}" is ${l}-tuple, but minItems or maxItems/${extraItems} are not specified or different at path "${errSchemaPath}"`; - (0, util_1.checkStrictMode)(it, msg, opts.strictTuples); - } - } - } - exports.validateTuple = validateTuple; - exports.default = def; -}); - -// node_modules/ajv/dist/vocabularies/applicator/prefixItems.js -var require_prefixItems = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var items_1 = require_items(); - var def = { - keyword: "prefixItems", - type: "array", - schemaType: ["array"], - before: "uniqueItems", - code: (cxt) => (0, items_1.validateTuple)(cxt, "items") - }; - exports.default = def; -}); - -// node_modules/ajv/dist/vocabularies/applicator/items2020.js -var require_items2020 = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var codegen_1 = require_codegen(); - var util_1 = require_util(); - var code_1 = require_code2(); - var additionalItems_1 = require_additionalItems(); - var error2 = { - message: ({ params: { len } }) => (0, codegen_1.str)`must NOT have more than ${len} items`, - params: ({ params: { len } }) => (0, codegen_1._)`{limit: ${len}}` - }; - var def = { - keyword: "items", - type: "array", - schemaType: ["object", "boolean"], - before: "uniqueItems", - error: error2, - code(cxt) { - const { schema, parentSchema, it } = cxt; - const { prefixItems } = parentSchema; - it.items = true; - if ((0, util_1.alwaysValidSchema)(it, schema)) - return; - if (prefixItems) - (0, additionalItems_1.validateAdditionalItems)(cxt, prefixItems); - else - cxt.ok((0, code_1.validateArray)(cxt)); - } - }; - exports.default = def; -}); - -// node_modules/ajv/dist/vocabularies/applicator/contains.js -var require_contains = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var codegen_1 = require_codegen(); - var util_1 = require_util(); - var error2 = { - message: ({ params: { min, max } }) => max === undefined ? (0, codegen_1.str)`must contain at least ${min} valid item(s)` : (0, codegen_1.str)`must contain at least ${min} and no more than ${max} valid item(s)`, - params: ({ params: { min, max } }) => max === undefined ? (0, codegen_1._)`{minContains: ${min}}` : (0, codegen_1._)`{minContains: ${min}, maxContains: ${max}}` - }; - var def = { - keyword: "contains", - type: "array", - schemaType: ["object", "boolean"], - before: "uniqueItems", - trackErrors: true, - error: error2, - code(cxt) { - const { gen, schema, parentSchema, data, it } = cxt; - let min; - let max; - const { minContains, maxContains } = parentSchema; - if (it.opts.next) { - min = minContains === undefined ? 1 : minContains; - max = maxContains; - } else { - min = 1; - } - const len = gen.const("len", (0, codegen_1._)`${data}.length`); - cxt.setParams({ min, max }); - if (max === undefined && min === 0) { - (0, util_1.checkStrictMode)(it, `"minContains" == 0 without "maxContains": "contains" keyword ignored`); - return; - } - if (max !== undefined && min > max) { - (0, util_1.checkStrictMode)(it, `"minContains" > "maxContains" is always invalid`); - cxt.fail(); - return; - } - if ((0, util_1.alwaysValidSchema)(it, schema)) { - let cond = (0, codegen_1._)`${len} >= ${min}`; - if (max !== undefined) - cond = (0, codegen_1._)`${cond} && ${len} <= ${max}`; - cxt.pass(cond); - return; - } - it.items = true; - const valid = gen.name("valid"); - if (max === undefined && min === 1) { - validateItems(valid, () => gen.if(valid, () => gen.break())); - } else if (min === 0) { - gen.let(valid, true); - if (max !== undefined) - gen.if((0, codegen_1._)`${data}.length > 0`, validateItemsWithCount); - } else { - gen.let(valid, false); - validateItemsWithCount(); - } - cxt.result(valid, () => cxt.reset()); - function validateItemsWithCount() { - const schValid = gen.name("_valid"); - const count = gen.let("count", 0); - validateItems(schValid, () => gen.if(schValid, () => checkLimits(count))); - } - function validateItems(_valid, block) { - gen.forRange("i", 0, len, (i) => { - cxt.subschema({ - keyword: "contains", - dataProp: i, - dataPropType: util_1.Type.Num, - compositeRule: true - }, _valid); - block(); - }); - } - function checkLimits(count) { - gen.code((0, codegen_1._)`${count}++`); - if (max === undefined) { - gen.if((0, codegen_1._)`${count} >= ${min}`, () => gen.assign(valid, true).break()); - } else { - gen.if((0, codegen_1._)`${count} > ${max}`, () => gen.assign(valid, false).break()); - if (min === 1) - gen.assign(valid, true); - else - gen.if((0, codegen_1._)`${count} >= ${min}`, () => gen.assign(valid, true)); - } - } - } - }; - exports.default = def; -}); - -// node_modules/ajv/dist/vocabularies/applicator/dependencies.js -var require_dependencies = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.validateSchemaDeps = exports.validatePropertyDeps = exports.error = undefined; - var codegen_1 = require_codegen(); - var util_1 = require_util(); - var code_1 = require_code2(); - exports.error = { - message: ({ params: { property, depsCount, deps } }) => { - const property_ies = depsCount === 1 ? "property" : "properties"; - return (0, codegen_1.str)`must have ${property_ies} ${deps} when property ${property} is present`; - }, - params: ({ params: { property, depsCount, deps, missingProperty } }) => (0, codegen_1._)`{property: ${property}, - missingProperty: ${missingProperty}, - depsCount: ${depsCount}, - deps: ${deps}}` - }; - var def = { - keyword: "dependencies", - type: "object", - schemaType: "object", - error: exports.error, - code(cxt) { - const [propDeps, schDeps] = splitDependencies(cxt); - validatePropertyDeps(cxt, propDeps); - validateSchemaDeps(cxt, schDeps); - } - }; - function splitDependencies({ schema }) { - const propertyDeps = {}; - const schemaDeps = {}; - for (const key in schema) { - if (key === "__proto__") - continue; - const deps = Array.isArray(schema[key]) ? propertyDeps : schemaDeps; - deps[key] = schema[key]; - } - return [propertyDeps, schemaDeps]; - } - function validatePropertyDeps(cxt, propertyDeps = cxt.schema) { - const { gen, data, it } = cxt; - if (Object.keys(propertyDeps).length === 0) - return; - const missing = gen.let("missing"); - for (const prop in propertyDeps) { - const deps = propertyDeps[prop]; - if (deps.length === 0) - continue; - const hasProperty = (0, code_1.propertyInData)(gen, data, prop, it.opts.ownProperties); - cxt.setParams({ - property: prop, - depsCount: deps.length, - deps: deps.join(", ") - }); - if (it.allErrors) { - gen.if(hasProperty, () => { - for (const depProp of deps) { - (0, code_1.checkReportMissingProp)(cxt, depProp); - } - }); - } else { - gen.if((0, codegen_1._)`${hasProperty} && (${(0, code_1.checkMissingProp)(cxt, deps, missing)})`); - (0, code_1.reportMissingProp)(cxt, missing); - gen.else(); - } - } - } - exports.validatePropertyDeps = validatePropertyDeps; - function validateSchemaDeps(cxt, schemaDeps = cxt.schema) { - const { gen, data, keyword, it } = cxt; - const valid = gen.name("valid"); - for (const prop in schemaDeps) { - if ((0, util_1.alwaysValidSchema)(it, schemaDeps[prop])) - continue; - gen.if((0, code_1.propertyInData)(gen, data, prop, it.opts.ownProperties), () => { - const schCxt = cxt.subschema({ keyword, schemaProp: prop }, valid); - cxt.mergeValidEvaluated(schCxt, valid); - }, () => gen.var(valid, true)); - cxt.ok(valid); - } - } - exports.validateSchemaDeps = validateSchemaDeps; - exports.default = def; -}); - -// node_modules/ajv/dist/vocabularies/applicator/propertyNames.js -var require_propertyNames = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var codegen_1 = require_codegen(); - var util_1 = require_util(); - var error2 = { - message: "property name must be valid", - params: ({ params }) => (0, codegen_1._)`{propertyName: ${params.propertyName}}` - }; - var def = { - keyword: "propertyNames", - type: "object", - schemaType: ["object", "boolean"], - error: error2, - code(cxt) { - const { gen, schema, data, it } = cxt; - if ((0, util_1.alwaysValidSchema)(it, schema)) - return; - const valid = gen.name("valid"); - gen.forIn("key", data, (key) => { - cxt.setParams({ propertyName: key }); - cxt.subschema({ - keyword: "propertyNames", - data: key, - dataTypes: ["string"], - propertyName: key, - compositeRule: true - }, valid); - gen.if((0, codegen_1.not)(valid), () => { - cxt.error(true); - if (!it.allErrors) - gen.break(); - }); - }); - cxt.ok(valid); - } - }; - exports.default = def; -}); - -// node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js -var require_additionalProperties = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var code_1 = require_code2(); - var codegen_1 = require_codegen(); - var names_1 = require_names(); - var util_1 = require_util(); - var error2 = { - message: "must NOT have additional properties", - params: ({ params }) => (0, codegen_1._)`{additionalProperty: ${params.additionalProperty}}` - }; - var def = { - keyword: "additionalProperties", - type: ["object"], - schemaType: ["boolean", "object"], - allowUndefined: true, - trackErrors: true, - error: error2, - code(cxt) { - const { gen, schema, parentSchema, data, errsCount, it } = cxt; - if (!errsCount) - throw new Error("ajv implementation error"); - const { allErrors, opts } = it; - it.props = true; - if (opts.removeAdditional !== "all" && (0, util_1.alwaysValidSchema)(it, schema)) - return; - const props = (0, code_1.allSchemaProperties)(parentSchema.properties); - const patProps = (0, code_1.allSchemaProperties)(parentSchema.patternProperties); - checkAdditionalProperties(); - cxt.ok((0, codegen_1._)`${errsCount} === ${names_1.default.errors}`); - function checkAdditionalProperties() { - gen.forIn("key", data, (key) => { - if (!props.length && !patProps.length) - additionalPropertyCode(key); - else - gen.if(isAdditional(key), () => additionalPropertyCode(key)); - }); - } - function isAdditional(key) { - let definedProp; - if (props.length > 8) { - const propsSchema = (0, util_1.schemaRefOrVal)(it, parentSchema.properties, "properties"); - definedProp = (0, code_1.isOwnProperty)(gen, propsSchema, key); - } else if (props.length) { - definedProp = (0, codegen_1.or)(...props.map((p) => (0, codegen_1._)`${key} === ${p}`)); - } else { - definedProp = codegen_1.nil; - } - if (patProps.length) { - definedProp = (0, codegen_1.or)(definedProp, ...patProps.map((p) => (0, codegen_1._)`${(0, code_1.usePattern)(cxt, p)}.test(${key})`)); - } - return (0, codegen_1.not)(definedProp); - } - function deleteAdditional(key) { - gen.code((0, codegen_1._)`delete ${data}[${key}]`); - } - function additionalPropertyCode(key) { - if (opts.removeAdditional === "all" || opts.removeAdditional && schema === false) { - deleteAdditional(key); - return; - } - if (schema === false) { - cxt.setParams({ additionalProperty: key }); - cxt.error(); - if (!allErrors) - gen.break(); - return; - } - if (typeof schema == "object" && !(0, util_1.alwaysValidSchema)(it, schema)) { - const valid = gen.name("valid"); - if (opts.removeAdditional === "failing") { - applyAdditionalSchema(key, valid, false); - gen.if((0, codegen_1.not)(valid), () => { - cxt.reset(); - deleteAdditional(key); - }); - } else { - applyAdditionalSchema(key, valid); - if (!allErrors) - gen.if((0, codegen_1.not)(valid), () => gen.break()); - } - } - } - function applyAdditionalSchema(key, valid, errors3) { - const subschema = { - keyword: "additionalProperties", - dataProp: key, - dataPropType: util_1.Type.Str - }; - if (errors3 === false) { - Object.assign(subschema, { - compositeRule: true, - createErrors: false, - allErrors: false - }); - } - cxt.subschema(subschema, valid); - } - } - }; - exports.default = def; -}); - -// node_modules/ajv/dist/vocabularies/applicator/properties.js -var require_properties = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var validate_1 = require_validate(); - var code_1 = require_code2(); - var util_1 = require_util(); - var additionalProperties_1 = require_additionalProperties(); - var def = { - keyword: "properties", - type: "object", - schemaType: "object", - code(cxt) { - const { gen, schema, parentSchema, data, it } = cxt; - if (it.opts.removeAdditional === "all" && parentSchema.additionalProperties === undefined) { - additionalProperties_1.default.code(new validate_1.KeywordCxt(it, additionalProperties_1.default, "additionalProperties")); - } - const allProps = (0, code_1.allSchemaProperties)(schema); - for (const prop of allProps) { - it.definedProperties.add(prop); - } - if (it.opts.unevaluated && allProps.length && it.props !== true) { - it.props = util_1.mergeEvaluated.props(gen, (0, util_1.toHash)(allProps), it.props); - } - const properties = allProps.filter((p) => !(0, util_1.alwaysValidSchema)(it, schema[p])); - if (properties.length === 0) - return; - const valid = gen.name("valid"); - for (const prop of properties) { - if (hasDefault(prop)) { - applyPropertySchema(prop); - } else { - gen.if((0, code_1.propertyInData)(gen, data, prop, it.opts.ownProperties)); - applyPropertySchema(prop); - if (!it.allErrors) - gen.else().var(valid, true); - gen.endIf(); - } - cxt.it.definedProperties.add(prop); - cxt.ok(valid); - } - function hasDefault(prop) { - return it.opts.useDefaults && !it.compositeRule && schema[prop].default !== undefined; - } - function applyPropertySchema(prop) { - cxt.subschema({ - keyword: "properties", - schemaProp: prop, - dataProp: prop - }, valid); - } - } - }; - exports.default = def; -}); - -// node_modules/ajv/dist/vocabularies/applicator/patternProperties.js -var require_patternProperties = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var code_1 = require_code2(); - var codegen_1 = require_codegen(); - var util_1 = require_util(); - var util_2 = require_util(); - var def = { - keyword: "patternProperties", - type: "object", - schemaType: "object", - code(cxt) { - const { gen, schema, data, parentSchema, it } = cxt; - const { opts } = it; - const patterns = (0, code_1.allSchemaProperties)(schema); - const alwaysValidPatterns = patterns.filter((p) => (0, util_1.alwaysValidSchema)(it, schema[p])); - if (patterns.length === 0 || alwaysValidPatterns.length === patterns.length && (!it.opts.unevaluated || it.props === true)) { - return; - } - const checkProperties = opts.strictSchema && !opts.allowMatchingProperties && parentSchema.properties; - const valid = gen.name("valid"); - if (it.props !== true && !(it.props instanceof codegen_1.Name)) { - it.props = (0, util_2.evaluatedPropsToName)(gen, it.props); - } - const { props } = it; - validatePatternProperties(); - function validatePatternProperties() { - for (const pat of patterns) { - if (checkProperties) - checkMatchingProperties(pat); - if (it.allErrors) { - validateProperties(pat); - } else { - gen.var(valid, true); - validateProperties(pat); - gen.if(valid); - } - } - } - function checkMatchingProperties(pat) { - for (const prop in checkProperties) { - if (new RegExp(pat).test(prop)) { - (0, util_1.checkStrictMode)(it, `property ${prop} matches pattern ${pat} (use allowMatchingProperties)`); - } - } - } - function validateProperties(pat) { - gen.forIn("key", data, (key) => { - gen.if((0, codegen_1._)`${(0, code_1.usePattern)(cxt, pat)}.test(${key})`, () => { - const alwaysValid = alwaysValidPatterns.includes(pat); - if (!alwaysValid) { - cxt.subschema({ - keyword: "patternProperties", - schemaProp: pat, - dataProp: key, - dataPropType: util_2.Type.Str - }, valid); - } - if (it.opts.unevaluated && props !== true) { - gen.assign((0, codegen_1._)`${props}[${key}]`, true); - } else if (!alwaysValid && !it.allErrors) { - gen.if((0, codegen_1.not)(valid), () => gen.break()); - } - }); - }); - } - } - }; - exports.default = def; -}); - -// node_modules/ajv/dist/vocabularies/applicator/not.js -var require_not = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var util_1 = require_util(); - var def = { - keyword: "not", - schemaType: ["object", "boolean"], - trackErrors: true, - code(cxt) { - const { gen, schema, it } = cxt; - if ((0, util_1.alwaysValidSchema)(it, schema)) { - cxt.fail(); - return; - } - const valid = gen.name("valid"); - cxt.subschema({ - keyword: "not", - compositeRule: true, - createErrors: false, - allErrors: false - }, valid); - cxt.failResult(valid, () => cxt.reset(), () => cxt.error()); - }, - error: { message: "must NOT be valid" } - }; - exports.default = def; -}); - -// node_modules/ajv/dist/vocabularies/applicator/anyOf.js -var require_anyOf = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var code_1 = require_code2(); - var def = { - keyword: "anyOf", - schemaType: "array", - trackErrors: true, - code: code_1.validateUnion, - error: { message: "must match a schema in anyOf" } - }; - exports.default = def; -}); - -// node_modules/ajv/dist/vocabularies/applicator/oneOf.js -var require_oneOf = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var codegen_1 = require_codegen(); - var util_1 = require_util(); - var error2 = { - message: "must match exactly one schema in oneOf", - params: ({ params }) => (0, codegen_1._)`{passingSchemas: ${params.passing}}` - }; - var def = { - keyword: "oneOf", - schemaType: "array", - trackErrors: true, - error: error2, - code(cxt) { - const { gen, schema, parentSchema, it } = cxt; - if (!Array.isArray(schema)) - throw new Error("ajv implementation error"); - if (it.opts.discriminator && parentSchema.discriminator) - return; - const schArr = schema; - const valid = gen.let("valid", false); - const passing = gen.let("passing", null); - const schValid = gen.name("_valid"); - cxt.setParams({ passing }); - gen.block(validateOneOf); - cxt.result(valid, () => cxt.reset(), () => cxt.error(true)); - function validateOneOf() { - schArr.forEach((sch, i) => { - let schCxt; - if ((0, util_1.alwaysValidSchema)(it, sch)) { - gen.var(schValid, true); - } else { - schCxt = cxt.subschema({ - keyword: "oneOf", - schemaProp: i, - compositeRule: true - }, schValid); - } - if (i > 0) { - gen.if((0, codegen_1._)`${schValid} && ${valid}`).assign(valid, false).assign(passing, (0, codegen_1._)`[${passing}, ${i}]`).else(); - } - gen.if(schValid, () => { - gen.assign(valid, true); - gen.assign(passing, i); - if (schCxt) - cxt.mergeEvaluated(schCxt, codegen_1.Name); - }); - }); - } - } - }; - exports.default = def; -}); - -// node_modules/ajv/dist/vocabularies/applicator/allOf.js -var require_allOf = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var util_1 = require_util(); - var def = { - keyword: "allOf", - schemaType: "array", - code(cxt) { - const { gen, schema, it } = cxt; - if (!Array.isArray(schema)) - throw new Error("ajv implementation error"); - const valid = gen.name("valid"); - schema.forEach((sch, i) => { - if ((0, util_1.alwaysValidSchema)(it, sch)) - return; - const schCxt = cxt.subschema({ keyword: "allOf", schemaProp: i }, valid); - cxt.ok(valid); - cxt.mergeEvaluated(schCxt); - }); - } - }; - exports.default = def; -}); - -// node_modules/ajv/dist/vocabularies/applicator/if.js -var require_if = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var codegen_1 = require_codegen(); - var util_1 = require_util(); - var error2 = { - message: ({ params }) => (0, codegen_1.str)`must match "${params.ifClause}" schema`, - params: ({ params }) => (0, codegen_1._)`{failingKeyword: ${params.ifClause}}` - }; - var def = { - keyword: "if", - schemaType: ["object", "boolean"], - trackErrors: true, - error: error2, - code(cxt) { - const { gen, parentSchema, it } = cxt; - if (parentSchema.then === undefined && parentSchema.else === undefined) { - (0, util_1.checkStrictMode)(it, '"if" without "then" and "else" is ignored'); - } - const hasThen = hasSchema(it, "then"); - const hasElse = hasSchema(it, "else"); - if (!hasThen && !hasElse) - return; - const valid = gen.let("valid", true); - const schValid = gen.name("_valid"); - validateIf(); - cxt.reset(); - if (hasThen && hasElse) { - const ifClause = gen.let("ifClause"); - cxt.setParams({ ifClause }); - gen.if(schValid, validateClause("then", ifClause), validateClause("else", ifClause)); - } else if (hasThen) { - gen.if(schValid, validateClause("then")); - } else { - gen.if((0, codegen_1.not)(schValid), validateClause("else")); - } - cxt.pass(valid, () => cxt.error(true)); - function validateIf() { - const schCxt = cxt.subschema({ - keyword: "if", - compositeRule: true, - createErrors: false, - allErrors: false - }, schValid); - cxt.mergeEvaluated(schCxt); - } - function validateClause(keyword, ifClause) { - return () => { - const schCxt = cxt.subschema({ keyword }, schValid); - gen.assign(valid, schValid); - cxt.mergeValidEvaluated(schCxt, valid); - if (ifClause) - gen.assign(ifClause, (0, codegen_1._)`${keyword}`); - else - cxt.setParams({ ifClause: keyword }); - }; - } - } - }; - function hasSchema(it, keyword) { - const schema = it.schema[keyword]; - return schema !== undefined && !(0, util_1.alwaysValidSchema)(it, schema); - } - exports.default = def; -}); - -// node_modules/ajv/dist/vocabularies/applicator/thenElse.js -var require_thenElse = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var util_1 = require_util(); - var def = { - keyword: ["then", "else"], - schemaType: ["object", "boolean"], - code({ keyword, parentSchema, it }) { - if (parentSchema.if === undefined) - (0, util_1.checkStrictMode)(it, `"${keyword}" without "if" is ignored`); - } - }; - exports.default = def; -}); - -// node_modules/ajv/dist/vocabularies/applicator/index.js -var require_applicator = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var additionalItems_1 = require_additionalItems(); - var prefixItems_1 = require_prefixItems(); - var items_1 = require_items(); - var items2020_1 = require_items2020(); - var contains_1 = require_contains(); - var dependencies_1 = require_dependencies(); - var propertyNames_1 = require_propertyNames(); - var additionalProperties_1 = require_additionalProperties(); - var properties_1 = require_properties(); - var patternProperties_1 = require_patternProperties(); - var not_1 = require_not(); - var anyOf_1 = require_anyOf(); - var oneOf_1 = require_oneOf(); - var allOf_1 = require_allOf(); - var if_1 = require_if(); - var thenElse_1 = require_thenElse(); - function getApplicator(draft2020 = false) { - const applicator = [ - not_1.default, - anyOf_1.default, - oneOf_1.default, - allOf_1.default, - if_1.default, - thenElse_1.default, - propertyNames_1.default, - additionalProperties_1.default, - dependencies_1.default, - properties_1.default, - patternProperties_1.default - ]; - if (draft2020) - applicator.push(prefixItems_1.default, items2020_1.default); - else - applicator.push(additionalItems_1.default, items_1.default); - applicator.push(contains_1.default); - return applicator; - } - exports.default = getApplicator; -}); - -// node_modules/ajv/dist/vocabularies/format/format.js -var require_format = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var codegen_1 = require_codegen(); - var error2 = { - message: ({ schemaCode }) => (0, codegen_1.str)`must match format "${schemaCode}"`, - params: ({ schemaCode }) => (0, codegen_1._)`{format: ${schemaCode}}` - }; - var def = { - keyword: "format", - type: ["number", "string"], - schemaType: "string", - $data: true, - error: error2, - code(cxt, ruleType) { - const { gen, data, $data, schema, schemaCode, it } = cxt; - const { opts, errSchemaPath, schemaEnv, self: self2 } = it; - if (!opts.validateFormats) - return; - if ($data) - validate$DataFormat(); - else - validateFormat(); - function validate$DataFormat() { - const fmts = gen.scopeValue("formats", { - ref: self2.formats, - code: opts.code.formats - }); - const fDef = gen.const("fDef", (0, codegen_1._)`${fmts}[${schemaCode}]`); - const fType = gen.let("fType"); - const format = gen.let("format"); - gen.if((0, codegen_1._)`typeof ${fDef} == "object" && !(${fDef} instanceof RegExp)`, () => gen.assign(fType, (0, codegen_1._)`${fDef}.type || "string"`).assign(format, (0, codegen_1._)`${fDef}.validate`), () => gen.assign(fType, (0, codegen_1._)`"string"`).assign(format, fDef)); - cxt.fail$data((0, codegen_1.or)(unknownFmt(), invalidFmt())); - function unknownFmt() { - if (opts.strictSchema === false) - return codegen_1.nil; - return (0, codegen_1._)`${schemaCode} && !${format}`; - } - function invalidFmt() { - const callFormat = schemaEnv.$async ? (0, codegen_1._)`(${fDef}.async ? await ${format}(${data}) : ${format}(${data}))` : (0, codegen_1._)`${format}(${data})`; - const validData = (0, codegen_1._)`(typeof ${format} == "function" ? ${callFormat} : ${format}.test(${data}))`; - return (0, codegen_1._)`${format} && ${format} !== true && ${fType} === ${ruleType} && !${validData}`; - } - } - function validateFormat() { - const formatDef = self2.formats[schema]; - if (!formatDef) { - unknownFormat(); - return; - } - if (formatDef === true) - return; - const [fmtType, format, fmtRef] = getFormat(formatDef); - if (fmtType === ruleType) - cxt.pass(validCondition()); - function unknownFormat() { - if (opts.strictSchema === false) { - self2.logger.warn(unknownMsg()); - return; - } - throw new Error(unknownMsg()); - function unknownMsg() { - return `unknown format "${schema}" ignored in schema at path "${errSchemaPath}"`; - } - } - function getFormat(fmtDef) { - const code = fmtDef instanceof RegExp ? (0, codegen_1.regexpCode)(fmtDef) : opts.code.formats ? (0, codegen_1._)`${opts.code.formats}${(0, codegen_1.getProperty)(schema)}` : undefined; - const fmt = gen.scopeValue("formats", { key: schema, ref: fmtDef, code }); - if (typeof fmtDef == "object" && !(fmtDef instanceof RegExp)) { - return [fmtDef.type || "string", fmtDef.validate, (0, codegen_1._)`${fmt}.validate`]; - } - return ["string", fmtDef, fmt]; - } - function validCondition() { - if (typeof formatDef == "object" && !(formatDef instanceof RegExp) && formatDef.async) { - if (!schemaEnv.$async) - throw new Error("async format in sync schema"); - return (0, codegen_1._)`await ${fmtRef}(${data})`; - } - return typeof format == "function" ? (0, codegen_1._)`${fmtRef}(${data})` : (0, codegen_1._)`${fmtRef}.test(${data})`; - } - } - } - }; - exports.default = def; -}); - -// node_modules/ajv/dist/vocabularies/format/index.js -var require_format2 = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var format_1 = require_format(); - var format = [format_1.default]; - exports.default = format; -}); - -// node_modules/ajv/dist/vocabularies/metadata.js -var require_metadata = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.contentVocabulary = exports.metadataVocabulary = undefined; - exports.metadataVocabulary = [ - "title", - "description", - "default", - "deprecated", - "readOnly", - "writeOnly", - "examples" - ]; - exports.contentVocabulary = [ - "contentMediaType", - "contentEncoding", - "contentSchema" - ]; -}); - -// node_modules/ajv/dist/vocabularies/draft7.js -var require_draft7 = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var core_1 = require_core2(); - var validation_1 = require_validation(); - var applicator_1 = require_applicator(); - var format_1 = require_format2(); - var metadata_1 = require_metadata(); - var draft7Vocabularies = [ - core_1.default, - validation_1.default, - (0, applicator_1.default)(), - format_1.default, - metadata_1.metadataVocabulary, - metadata_1.contentVocabulary - ]; - exports.default = draft7Vocabularies; -}); - -// node_modules/ajv/dist/vocabularies/discriminator/types.js -var require_types = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.DiscrError = undefined; - var DiscrError; - (function(DiscrError2) { - DiscrError2["Tag"] = "tag"; - DiscrError2["Mapping"] = "mapping"; - })(DiscrError || (exports.DiscrError = DiscrError = {})); -}); - -// node_modules/ajv/dist/vocabularies/discriminator/index.js -var require_discriminator = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var codegen_1 = require_codegen(); - var types_1 = require_types(); - var compile_1 = require_compile(); - var ref_error_1 = require_ref_error(); - var util_1 = require_util(); - var error2 = { - message: ({ params: { discrError, tagName } }) => discrError === types_1.DiscrError.Tag ? `tag "${tagName}" must be string` : `value of tag "${tagName}" must be in oneOf`, - params: ({ params: { discrError, tag, tagName } }) => (0, codegen_1._)`{error: ${discrError}, tag: ${tagName}, tagValue: ${tag}}` - }; - var def = { - keyword: "discriminator", - type: "object", - schemaType: "object", - error: error2, - code(cxt) { - const { gen, data, schema, parentSchema, it } = cxt; - const { oneOf } = parentSchema; - if (!it.opts.discriminator) { - throw new Error("discriminator: requires discriminator option"); - } - const tagName = schema.propertyName; - if (typeof tagName != "string") - throw new Error("discriminator: requires propertyName"); - if (schema.mapping) - throw new Error("discriminator: mapping is not supported"); - if (!oneOf) - throw new Error("discriminator: requires oneOf keyword"); - const valid = gen.let("valid", false); - const tag = gen.const("tag", (0, codegen_1._)`${data}${(0, codegen_1.getProperty)(tagName)}`); - gen.if((0, codegen_1._)`typeof ${tag} == "string"`, () => validateMapping(), () => cxt.error(false, { discrError: types_1.DiscrError.Tag, tag, tagName })); - cxt.ok(valid); - function validateMapping() { - const mapping = getMapping(); - gen.if(false); - for (const tagValue in mapping) { - gen.elseIf((0, codegen_1._)`${tag} === ${tagValue}`); - gen.assign(valid, applyTagSchema(mapping[tagValue])); - } - gen.else(); - cxt.error(false, { discrError: types_1.DiscrError.Mapping, tag, tagName }); - gen.endIf(); - } - function applyTagSchema(schemaProp) { - const _valid = gen.name("valid"); - const schCxt = cxt.subschema({ keyword: "oneOf", schemaProp }, _valid); - cxt.mergeEvaluated(schCxt, codegen_1.Name); - return _valid; - } - function getMapping() { - var _a2; - const oneOfMapping = {}; - const topRequired = hasRequired(parentSchema); - let tagRequired = true; - for (let i = 0;i < oneOf.length; i++) { - let sch = oneOf[i]; - if ((sch === null || sch === undefined ? undefined : sch.$ref) && !(0, util_1.schemaHasRulesButRef)(sch, it.self.RULES)) { - const ref = sch.$ref; - sch = compile_1.resolveRef.call(it.self, it.schemaEnv.root, it.baseId, ref); - if (sch instanceof compile_1.SchemaEnv) - sch = sch.schema; - if (sch === undefined) - throw new ref_error_1.default(it.opts.uriResolver, it.baseId, ref); - } - const propSch = (_a2 = sch === null || sch === undefined ? undefined : sch.properties) === null || _a2 === undefined ? undefined : _a2[tagName]; - if (typeof propSch != "object") { - throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${tagName}"`); - } - tagRequired = tagRequired && (topRequired || hasRequired(sch)); - addMappings(propSch, i); - } - if (!tagRequired) - throw new Error(`discriminator: "${tagName}" must be required`); - return oneOfMapping; - function hasRequired({ required: required2 }) { - return Array.isArray(required2) && required2.includes(tagName); - } - function addMappings(sch, i) { - if (sch.const) { - addMapping(sch.const, i); - } else if (sch.enum) { - for (const tagValue of sch.enum) { - addMapping(tagValue, i); - } - } else { - throw new Error(`discriminator: "properties/${tagName}" must have "const" or "enum"`); - } - } - function addMapping(tagValue, i) { - if (typeof tagValue != "string" || tagValue in oneOfMapping) { - throw new Error(`discriminator: "${tagName}" values must be unique strings`); - } - oneOfMapping[tagValue] = i; - } - } - } - }; - exports.default = def; -}); - -// node_modules/ajv/dist/refs/json-schema-draft-07.json -var require_json_schema_draft_07 = __commonJS((exports, module) => { - module.exports = { - $schema: "http://json-schema.org/draft-07/schema#", - $id: "http://json-schema.org/draft-07/schema#", - title: "Core schema meta-schema", - definitions: { - schemaArray: { - type: "array", - minItems: 1, - items: { $ref: "#" } - }, - nonNegativeInteger: { - type: "integer", - minimum: 0 - }, - nonNegativeIntegerDefault0: { - allOf: [{ $ref: "#/definitions/nonNegativeInteger" }, { default: 0 }] - }, - simpleTypes: { - enum: ["array", "boolean", "integer", "null", "number", "object", "string"] - }, - stringArray: { - type: "array", - items: { type: "string" }, - uniqueItems: true, - default: [] - } - }, - type: ["object", "boolean"], - properties: { - $id: { - type: "string", - format: "uri-reference" - }, - $schema: { - type: "string", - format: "uri" - }, - $ref: { - type: "string", - format: "uri-reference" - }, - $comment: { - type: "string" - }, - title: { - type: "string" - }, - description: { - type: "string" - }, - default: true, - readOnly: { - type: "boolean", - default: false - }, - examples: { - type: "array", - items: true - }, - multipleOf: { - type: "number", - exclusiveMinimum: 0 - }, - maximum: { - type: "number" - }, - exclusiveMaximum: { - type: "number" - }, - minimum: { - type: "number" - }, - exclusiveMinimum: { - type: "number" - }, - maxLength: { $ref: "#/definitions/nonNegativeInteger" }, - minLength: { $ref: "#/definitions/nonNegativeIntegerDefault0" }, - pattern: { - type: "string", - format: "regex" - }, - additionalItems: { $ref: "#" }, - items: { - anyOf: [{ $ref: "#" }, { $ref: "#/definitions/schemaArray" }], - default: true - }, - maxItems: { $ref: "#/definitions/nonNegativeInteger" }, - minItems: { $ref: "#/definitions/nonNegativeIntegerDefault0" }, - uniqueItems: { - type: "boolean", - default: false - }, - contains: { $ref: "#" }, - maxProperties: { $ref: "#/definitions/nonNegativeInteger" }, - minProperties: { $ref: "#/definitions/nonNegativeIntegerDefault0" }, - required: { $ref: "#/definitions/stringArray" }, - additionalProperties: { $ref: "#" }, - definitions: { - type: "object", - additionalProperties: { $ref: "#" }, - default: {} - }, - properties: { - type: "object", - additionalProperties: { $ref: "#" }, - default: {} - }, - patternProperties: { - type: "object", - additionalProperties: { $ref: "#" }, - propertyNames: { format: "regex" }, - default: {} - }, - dependencies: { - type: "object", - additionalProperties: { - anyOf: [{ $ref: "#" }, { $ref: "#/definitions/stringArray" }] - } - }, - propertyNames: { $ref: "#" }, - const: true, - enum: { - type: "array", - items: true, - minItems: 1, - uniqueItems: true - }, - type: { - anyOf: [ - { $ref: "#/definitions/simpleTypes" }, - { - type: "array", - items: { $ref: "#/definitions/simpleTypes" }, - minItems: 1, - uniqueItems: true - } - ] - }, - format: { type: "string" }, - contentMediaType: { type: "string" }, - contentEncoding: { type: "string" }, - if: { $ref: "#" }, - then: { $ref: "#" }, - else: { $ref: "#" }, - allOf: { $ref: "#/definitions/schemaArray" }, - anyOf: { $ref: "#/definitions/schemaArray" }, - oneOf: { $ref: "#/definitions/schemaArray" }, - not: { $ref: "#" } - }, - default: true - }; -}); - -// node_modules/ajv/dist/ajv.js -var require_ajv = __commonJS((exports, module) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv = undefined; - var core_1 = require_core(); - var draft7_1 = require_draft7(); - var discriminator_1 = require_discriminator(); - var draft7MetaSchema = require_json_schema_draft_07(); - var META_SUPPORT_DATA = ["/properties"]; - var META_SCHEMA_ID = "http://json-schema.org/draft-07/schema"; - - class Ajv extends core_1.default { - _addVocabularies() { - super._addVocabularies(); - draft7_1.default.forEach((v) => this.addVocabulary(v)); - if (this.opts.discriminator) - this.addKeyword(discriminator_1.default); - } - _addDefaultMetaSchema() { - super._addDefaultMetaSchema(); - if (!this.opts.meta) - return; - const metaSchema = this.opts.$data ? this.$dataMetaSchema(draft7MetaSchema, META_SUPPORT_DATA) : draft7MetaSchema; - this.addMetaSchema(metaSchema, META_SCHEMA_ID, false); - this.refs["http://json-schema.org/schema"] = META_SCHEMA_ID; - } - defaultMeta() { - return this.opts.defaultMeta = super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : undefined); - } - } - exports.Ajv = Ajv; - module.exports = exports = Ajv; - module.exports.Ajv = Ajv; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.default = Ajv; - var validate_1 = require_validate(); - Object.defineProperty(exports, "KeywordCxt", { enumerable: true, get: function() { - return validate_1.KeywordCxt; - } }); - var codegen_1 = require_codegen(); - Object.defineProperty(exports, "_", { enumerable: true, get: function() { - return codegen_1._; - } }); - Object.defineProperty(exports, "str", { enumerable: true, get: function() { - return codegen_1.str; - } }); - Object.defineProperty(exports, "stringify", { enumerable: true, get: function() { - return codegen_1.stringify; - } }); - Object.defineProperty(exports, "nil", { enumerable: true, get: function() { - return codegen_1.nil; - } }); - Object.defineProperty(exports, "Name", { enumerable: true, get: function() { - return codegen_1.Name; - } }); - Object.defineProperty(exports, "CodeGen", { enumerable: true, get: function() { - return codegen_1.CodeGen; - } }); - var validation_error_1 = require_validation_error(); - Object.defineProperty(exports, "ValidationError", { enumerable: true, get: function() { - return validation_error_1.default; - } }); - var ref_error_1 = require_ref_error(); - Object.defineProperty(exports, "MissingRefError", { enumerable: true, get: function() { - return ref_error_1.default; - } }); -}); - -// node_modules/ajv-formats/dist/formats.js -var require_formats = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.formatNames = exports.fastFormats = exports.fullFormats = undefined; - function fmtDef(validate, compare) { - return { validate, compare }; - } - exports.fullFormats = { - date: fmtDef(date4, compareDate), - time: fmtDef(getTime(true), compareTime), - "date-time": fmtDef(getDateTime(true), compareDateTime), - "iso-time": fmtDef(getTime(), compareIsoTime), - "iso-date-time": fmtDef(getDateTime(), compareIsoDateTime), - duration: /^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/, - uri, - "uri-reference": /^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i, - "uri-template": /^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i, - url: /^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu, - email: /^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i, - hostname: /^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i, - ipv4: /^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/, - ipv6: /^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i, - regex, - uuid: /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i, - "json-pointer": /^(?:\/(?:[^~/]|~0|~1)*)*$/, - "json-pointer-uri-fragment": /^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i, - "relative-json-pointer": /^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/, - byte, - int32: { type: "number", validate: validateInt32 }, - int64: { type: "number", validate: validateInt64 }, - float: { type: "number", validate: validateNumber }, - double: { type: "number", validate: validateNumber }, - password: true, - binary: true - }; - exports.fastFormats = { - ...exports.fullFormats, - date: fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\d$/, compareDate), - time: fmtDef(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i, compareTime), - "date-time": fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i, compareDateTime), - "iso-time": fmtDef(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i, compareIsoTime), - "iso-date-time": fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i, compareIsoDateTime), - uri: /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i, - "uri-reference": /^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i, - email: /^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i - }; - exports.formatNames = Object.keys(exports.fullFormats); - function isLeapYear(year) { - return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0); - } - var DATE = /^(\d\d\d\d)-(\d\d)-(\d\d)$/; - var DAYS = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; - function date4(str) { - const matches = DATE.exec(str); - if (!matches) - return false; - const year = +matches[1]; - const month = +matches[2]; - const day = +matches[3]; - return month >= 1 && month <= 12 && day >= 1 && day <= (month === 2 && isLeapYear(year) ? 29 : DAYS[month]); - } - function compareDate(d1, d2) { - if (!(d1 && d2)) - return; - if (d1 > d2) - return 1; - if (d1 < d2) - return -1; - return 0; - } - var TIME = /^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i; - function getTime(strictTimeZone) { - return function time3(str) { - const matches = TIME.exec(str); - if (!matches) - return false; - const hr = +matches[1]; - const min = +matches[2]; - const sec = +matches[3]; - const tz = matches[4]; - const tzSign = matches[5] === "-" ? -1 : 1; - const tzH = +(matches[6] || 0); - const tzM = +(matches[7] || 0); - if (tzH > 23 || tzM > 59 || strictTimeZone && !tz) - return false; - if (hr <= 23 && min <= 59 && sec < 60) - return true; - const utcMin = min - tzM * tzSign; - const utcHr = hr - tzH * tzSign - (utcMin < 0 ? 1 : 0); - return (utcHr === 23 || utcHr === -1) && (utcMin === 59 || utcMin === -1) && sec < 61; - }; - } - function compareTime(s1, s2) { - if (!(s1 && s2)) - return; - const t1 = new Date("2020-01-01T" + s1).valueOf(); - const t2 = new Date("2020-01-01T" + s2).valueOf(); - if (!(t1 && t2)) - return; - return t1 - t2; - } - function compareIsoTime(t1, t2) { - if (!(t1 && t2)) - return; - const a1 = TIME.exec(t1); - const a2 = TIME.exec(t2); - if (!(a1 && a2)) - return; - t1 = a1[1] + a1[2] + a1[3]; - t2 = a2[1] + a2[2] + a2[3]; - if (t1 > t2) - return 1; - if (t1 < t2) - return -1; - return 0; - } - var DATE_TIME_SEPARATOR = /t|\s/i; - function getDateTime(strictTimeZone) { - const time3 = getTime(strictTimeZone); - return function date_time(str) { - const dateTime = str.split(DATE_TIME_SEPARATOR); - return dateTime.length === 2 && date4(dateTime[0]) && time3(dateTime[1]); - }; - } - function compareDateTime(dt1, dt2) { - if (!(dt1 && dt2)) - return; - const d1 = new Date(dt1).valueOf(); - const d2 = new Date(dt2).valueOf(); - if (!(d1 && d2)) - return; - return d1 - d2; - } - function compareIsoDateTime(dt1, dt2) { - if (!(dt1 && dt2)) - return; - const [d1, t1] = dt1.split(DATE_TIME_SEPARATOR); - const [d2, t2] = dt2.split(DATE_TIME_SEPARATOR); - const res = compareDate(d1, d2); - if (res === undefined) - return; - return res || compareTime(t1, t2); - } - var NOT_URI_FRAGMENT = /\/|:/; - var URI = /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i; - function uri(str) { - return NOT_URI_FRAGMENT.test(str) && URI.test(str); - } - var BYTE = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm; - function byte(str) { - BYTE.lastIndex = 0; - return BYTE.test(str); - } - var MIN_INT32 = -(2 ** 31); - var MAX_INT32 = 2 ** 31 - 1; - function validateInt32(value) { - return Number.isInteger(value) && value <= MAX_INT32 && value >= MIN_INT32; - } - function validateInt64(value) { - return Number.isInteger(value); - } - function validateNumber() { - return true; - } - var Z_ANCHOR = /[^\\]\\Z/; - function regex(str) { - if (Z_ANCHOR.test(str)) - return false; - try { - new RegExp(str); - return true; - } catch (e) { - return false; - } - } -}); - -// node_modules/ajv-formats/dist/limit.js -var require_limit = __commonJS((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.formatLimitDefinition = undefined; - var ajv_1 = require_ajv(); - var codegen_1 = require_codegen(); - var ops = codegen_1.operators; - var KWDs = { - formatMaximum: { okStr: "<=", ok: ops.LTE, fail: ops.GT }, - formatMinimum: { okStr: ">=", ok: ops.GTE, fail: ops.LT }, - formatExclusiveMaximum: { okStr: "<", ok: ops.LT, fail: ops.GTE }, - formatExclusiveMinimum: { okStr: ">", ok: ops.GT, fail: ops.LTE } - }; - var error2 = { - message: ({ keyword, schemaCode }) => (0, codegen_1.str)`should be ${KWDs[keyword].okStr} ${schemaCode}`, - params: ({ keyword, schemaCode }) => (0, codegen_1._)`{comparison: ${KWDs[keyword].okStr}, limit: ${schemaCode}}` - }; - exports.formatLimitDefinition = { - keyword: Object.keys(KWDs), - type: "string", - schemaType: "string", - $data: true, - error: error2, - code(cxt) { - const { gen, data, schemaCode, keyword, it } = cxt; - const { opts, self: self2 } = it; - if (!opts.validateFormats) - return; - const fCxt = new ajv_1.KeywordCxt(it, self2.RULES.all.format.definition, "format"); - if (fCxt.$data) - validate$DataFormat(); - else - validateFormat(); - function validate$DataFormat() { - const fmts = gen.scopeValue("formats", { - ref: self2.formats, - code: opts.code.formats - }); - const fmt = gen.const("fmt", (0, codegen_1._)`${fmts}[${fCxt.schemaCode}]`); - cxt.fail$data((0, codegen_1.or)((0, codegen_1._)`typeof ${fmt} != "object"`, (0, codegen_1._)`${fmt} instanceof RegExp`, (0, codegen_1._)`typeof ${fmt}.compare != "function"`, compareCode(fmt))); - } - function validateFormat() { - const format = fCxt.schema; - const fmtDef = self2.formats[format]; - if (!fmtDef || fmtDef === true) - return; - if (typeof fmtDef != "object" || fmtDef instanceof RegExp || typeof fmtDef.compare != "function") { - throw new Error(`"${keyword}": format "${format}" does not define "compare" function`); - } - const fmt = gen.scopeValue("formats", { - key: format, - ref: fmtDef, - code: opts.code.formats ? (0, codegen_1._)`${opts.code.formats}${(0, codegen_1.getProperty)(format)}` : undefined - }); - cxt.fail$data(compareCode(fmt)); - } - function compareCode(fmt) { - return (0, codegen_1._)`${fmt}.compare(${data}, ${schemaCode}) ${KWDs[keyword].fail} 0`; - } - }, - dependencies: ["format"] - }; - var formatLimitPlugin = (ajv) => { - ajv.addKeyword(exports.formatLimitDefinition); - return ajv; - }; - exports.default = formatLimitPlugin; -}); - -// node_modules/ajv-formats/dist/index.js -var require_dist = __commonJS((exports, module) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var formats_1 = require_formats(); - var limit_1 = require_limit(); - var codegen_1 = require_codegen(); - var fullName = new codegen_1.Name("fullFormats"); - var fastName = new codegen_1.Name("fastFormats"); - var formatsPlugin = (ajv, opts = { keywords: true }) => { - if (Array.isArray(opts)) { - addFormats(ajv, opts, formats_1.fullFormats, fullName); - return ajv; - } - const [formats, exportName] = opts.mode === "fast" ? [formats_1.fastFormats, fastName] : [formats_1.fullFormats, fullName]; - const list = opts.formats || formats_1.formatNames; - addFormats(ajv, list, formats, exportName); - if (opts.keywords) - (0, limit_1.default)(ajv); - return ajv; - }; - formatsPlugin.get = (name, mode = "full") => { - const formats = mode === "fast" ? formats_1.fastFormats : formats_1.fullFormats; - const f = formats[name]; - if (!f) - throw new Error(`Unknown format "${name}"`); - return f; - }; - function addFormats(ajv, list, fs, exportName) { - var _a2; - var _b; - (_a2 = (_b = ajv.opts.code).formats) !== null && _a2 !== undefined || (_b.formats = (0, codegen_1._)`require("ajv-formats/dist/formats").${exportName}`); - for (const f of list) - ajv.addFormat(f, fs[f]); - } - module.exports = exports = formatsPlugin; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.default = formatsPlugin; -}); - -// node_modules/isexe/windows.js -var require_windows = __commonJS((exports, module) => { - module.exports = isexe; - isexe.sync = sync; - var fs = __require("fs"); - function checkPathExt(path, options) { - var pathext = options.pathExt !== undefined ? options.pathExt : process.env.PATHEXT; - if (!pathext) { - return true; - } - pathext = pathext.split(";"); - if (pathext.indexOf("") !== -1) { - return true; - } - for (var i = 0;i < pathext.length; i++) { - var p = pathext[i].toLowerCase(); - if (p && path.substr(-p.length).toLowerCase() === p) { - return true; - } - } - return false; - } - function checkStat(stat, path, options) { - if (!stat.isSymbolicLink() && !stat.isFile()) { - return false; - } - return checkPathExt(path, options); - } - function isexe(path, options, cb) { - fs.stat(path, function(er, stat) { - cb(er, er ? false : checkStat(stat, path, options)); - }); - } - function sync(path, options) { - return checkStat(fs.statSync(path), path, options); - } -}); - -// node_modules/isexe/mode.js -var require_mode = __commonJS((exports, module) => { - module.exports = isexe; - isexe.sync = sync; - var fs = __require("fs"); - function isexe(path, options, cb) { - fs.stat(path, function(er, stat) { - cb(er, er ? false : checkStat(stat, options)); - }); - } - function sync(path, options) { - return checkStat(fs.statSync(path), options); - } - function checkStat(stat, options) { - return stat.isFile() && checkMode(stat, options); - } - function checkMode(stat, options) { - var mod = stat.mode; - var uid = stat.uid; - var gid = stat.gid; - var myUid = options.uid !== undefined ? options.uid : process.getuid && process.getuid(); - var myGid = options.gid !== undefined ? options.gid : process.getgid && process.getgid(); - var u = parseInt("100", 8); - var g = parseInt("010", 8); - var o = parseInt("001", 8); - var ug = u | g; - var ret = mod & o || mod & g && gid === myGid || mod & u && uid === myUid || mod & ug && myUid === 0; - return ret; - } -}); - -// node_modules/isexe/index.js -var require_isexe = __commonJS((exports, module) => { - var fs = __require("fs"); - var core2; - if (process.platform === "win32" || global.TESTING_WINDOWS) { - core2 = require_windows(); - } else { - core2 = require_mode(); - } - module.exports = isexe; - isexe.sync = sync; - function isexe(path, options, cb) { - if (typeof options === "function") { - cb = options; - options = {}; - } - if (!cb) { - if (typeof Promise !== "function") { - throw new TypeError("callback not provided"); - } - return new Promise(function(resolve, reject) { - isexe(path, options || {}, function(er, is) { - if (er) { - reject(er); - } else { - resolve(is); - } - }); - }); - } - core2(path, options || {}, function(er, is) { - if (er) { - if (er.code === "EACCES" || options && options.ignoreErrors) { - er = null; - is = false; - } - } - cb(er, is); - }); - } - function sync(path, options) { - try { - return core2.sync(path, options || {}); - } catch (er) { - if (options && options.ignoreErrors || er.code === "EACCES") { - return false; - } else { - throw er; - } - } - } -}); - -// node_modules/which/which.js -var require_which = __commonJS((exports, module) => { - var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys"; - var path = __require("path"); - var COLON = isWindows ? ";" : ":"; - var isexe = require_isexe(); - var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" }); - var getPathInfo = (cmd, opt) => { - const colon = opt.colon || COLON; - const pathEnv = cmd.match(/\//) || isWindows && cmd.match(/\\/) ? [""] : [ - ...isWindows ? [process.cwd()] : [], - ...(opt.path || process.env.PATH || "").split(colon) - ]; - const pathExtExe = isWindows ? opt.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : ""; - const pathExt = isWindows ? pathExtExe.split(colon) : [""]; - if (isWindows) { - if (cmd.indexOf(".") !== -1 && pathExt[0] !== "") - pathExt.unshift(""); - } - return { - pathEnv, - pathExt, - pathExtExe - }; - }; - var which = (cmd, opt, cb) => { - if (typeof opt === "function") { - cb = opt; - opt = {}; - } - if (!opt) - opt = {}; - const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt); - const found = []; - const step = (i) => new Promise((resolve, reject) => { - if (i === pathEnv.length) - return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd)); - const ppRaw = pathEnv[i]; - const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw; - const pCmd = path.join(pathPart, cmd); - const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd; - resolve(subStep(p, i, 0)); - }); - const subStep = (p, i, ii) => new Promise((resolve, reject) => { - if (ii === pathExt.length) - return resolve(step(i + 1)); - const ext = pathExt[ii]; - isexe(p + ext, { pathExt: pathExtExe }, (er, is) => { - if (!er && is) { - if (opt.all) - found.push(p + ext); - else - return resolve(p + ext); - } - return resolve(subStep(p, i, ii + 1)); - }); - }); - return cb ? step(0).then((res) => cb(null, res), cb) : step(0); - }; - var whichSync = (cmd, opt) => { - opt = opt || {}; - const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt); - const found = []; - for (let i = 0;i < pathEnv.length; i++) { - const ppRaw = pathEnv[i]; - const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw; - const pCmd = path.join(pathPart, cmd); - const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd; - for (let j = 0;j < pathExt.length; j++) { - const cur = p + pathExt[j]; - try { - const is = isexe.sync(cur, { pathExt: pathExtExe }); - if (is) { - if (opt.all) - found.push(cur); - else - return cur; - } - } catch (ex) {} - } - } - if (opt.all && found.length) - return found; - if (opt.nothrow) - return null; - throw getNotFoundError(cmd); - }; - module.exports = which; - which.sync = whichSync; -}); - -// node_modules/path-key/index.js -var require_path_key = __commonJS((exports, module) => { - var pathKey = (options = {}) => { - const environment = options.env || process.env; - const platform = options.platform || process.platform; - if (platform !== "win32") { - return "PATH"; - } - return Object.keys(environment).reverse().find((key) => key.toUpperCase() === "PATH") || "Path"; - }; - module.exports = pathKey; - module.exports.default = pathKey; -}); - -// node_modules/cross-spawn/lib/util/resolveCommand.js -var require_resolveCommand = __commonJS((exports, module) => { - var path = __require("path"); - var which = require_which(); - var getPathKey = require_path_key(); - function resolveCommandAttempt(parsed, withoutPathExt) { - const env = parsed.options.env || process.env; - const cwd = process.cwd(); - const hasCustomCwd = parsed.options.cwd != null; - const shouldSwitchCwd = hasCustomCwd && process.chdir !== undefined && !process.chdir.disabled; - if (shouldSwitchCwd) { - try { - process.chdir(parsed.options.cwd); - } catch (err) {} - } - let resolved; - try { - resolved = which.sync(parsed.command, { - path: env[getPathKey({ env })], - pathExt: withoutPathExt ? path.delimiter : undefined - }); - } catch (e) {} finally { - if (shouldSwitchCwd) { - process.chdir(cwd); - } - } - if (resolved) { - resolved = path.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved); - } - return resolved; - } - function resolveCommand(parsed) { - return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true); - } - module.exports = resolveCommand; -}); - -// node_modules/cross-spawn/lib/util/escape.js -var require_escape = __commonJS((exports, module) => { - var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g; - function escapeCommand(arg) { - arg = arg.replace(metaCharsRegExp, "^$1"); - return arg; - } - function escapeArgument(arg, doubleEscapeMetaChars) { - arg = `${arg}`; - arg = arg.replace(/(?=(\\+?)?)\1"/g, "$1$1\\\""); - arg = arg.replace(/(?=(\\+?)?)\1$/, "$1$1"); - arg = `"${arg}"`; - arg = arg.replace(metaCharsRegExp, "^$1"); - if (doubleEscapeMetaChars) { - arg = arg.replace(metaCharsRegExp, "^$1"); - } - return arg; - } - exports.command = escapeCommand; - exports.argument = escapeArgument; -}); - -// node_modules/shebang-regex/index.js -var require_shebang_regex = __commonJS((exports, module) => { - module.exports = /^#!(.*)/; -}); - -// node_modules/shebang-command/index.js -var require_shebang_command = __commonJS((exports, module) => { - var shebangRegex = require_shebang_regex(); - module.exports = (string4 = "") => { - const match = string4.match(shebangRegex); - if (!match) { - return null; - } - const [path, argument] = match[0].replace(/#! ?/, "").split(" "); - const binary = path.split("/").pop(); - if (binary === "env") { - return argument; - } - return argument ? `${binary} ${argument}` : binary; - }; -}); - -// node_modules/cross-spawn/lib/util/readShebang.js -var require_readShebang = __commonJS((exports, module) => { - var fs = __require("fs"); - var shebangCommand = require_shebang_command(); - function readShebang(command) { - const size = 150; - const buffer = Buffer.alloc(size); - let fd; - try { - fd = fs.openSync(command, "r"); - fs.readSync(fd, buffer, 0, size, 0); - fs.closeSync(fd); - } catch (e) {} - return shebangCommand(buffer.toString()); - } - module.exports = readShebang; -}); - -// node_modules/cross-spawn/lib/parse.js -var require_parse = __commonJS((exports, module) => { - var path = __require("path"); - var resolveCommand = require_resolveCommand(); - var escape2 = require_escape(); - var readShebang = require_readShebang(); - var isWin = process.platform === "win32"; - var isExecutableRegExp = /\.(?:com|exe)$/i; - var isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i; - function detectShebang(parsed) { - parsed.file = resolveCommand(parsed); - const shebang = parsed.file && readShebang(parsed.file); - if (shebang) { - parsed.args.unshift(parsed.file); - parsed.command = shebang; - return resolveCommand(parsed); - } - return parsed.file; - } - function parseNonShell(parsed) { - if (!isWin) { - return parsed; - } - const commandFile = detectShebang(parsed); - const needsShell = !isExecutableRegExp.test(commandFile); - if (parsed.options.forceShell || needsShell) { - const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile); - parsed.command = path.normalize(parsed.command); - parsed.command = escape2.command(parsed.command); - parsed.args = parsed.args.map((arg) => escape2.argument(arg, needsDoubleEscapeMetaChars)); - const shellCommand = [parsed.command].concat(parsed.args).join(" "); - parsed.args = ["/d", "/s", "/c", `"${shellCommand}"`]; - parsed.command = process.env.comspec || "cmd.exe"; - parsed.options.windowsVerbatimArguments = true; - } - return parsed; - } - function parse5(command, args, options) { - if (args && !Array.isArray(args)) { - options = args; - args = null; - } - args = args ? args.slice(0) : []; - options = Object.assign({}, options); - const parsed = { - command, - args, - options, - file: undefined, - original: { - command, - args - } - }; - return options.shell ? parsed : parseNonShell(parsed); - } - module.exports = parse5; -}); - -// node_modules/cross-spawn/lib/enoent.js -var require_enoent = __commonJS((exports, module) => { - var isWin = process.platform === "win32"; - function notFoundError(original, syscall) { - return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), { - code: "ENOENT", - errno: "ENOENT", - syscall: `${syscall} ${original.command}`, - path: original.command, - spawnargs: original.args - }); - } - function hookChildProcess(cp, parsed) { - if (!isWin) { - return; - } - const originalEmit = cp.emit; - cp.emit = function(name, arg1) { - if (name === "exit") { - const err = verifyENOENT(arg1, parsed); - if (err) { - return originalEmit.call(cp, "error", err); - } - } - return originalEmit.apply(cp, arguments); - }; - } - function verifyENOENT(status, parsed) { - if (isWin && status === 1 && !parsed.file) { - return notFoundError(parsed.original, "spawn"); - } - return null; - } - function verifyENOENTSync(status, parsed) { - if (isWin && status === 1 && !parsed.file) { - return notFoundError(parsed.original, "spawnSync"); - } - return null; - } - module.exports = { - hookChildProcess, - verifyENOENT, - verifyENOENTSync, - notFoundError - }; -}); - -// node_modules/cross-spawn/index.js -var require_cross_spawn = __commonJS((exports, module) => { - var cp = __require("child_process"); - var parse5 = require_parse(); - var enoent = require_enoent(); - function spawn(command, args, options) { - const parsed = parse5(command, args, options); - const spawned = cp.spawn(parsed.command, parsed.args, parsed.options); - enoent.hookChildProcess(spawned, parsed); - return spawned; - } - function spawnSync(command, args, options) { - const parsed = parse5(command, args, options); - const result = cp.spawnSync(parsed.command, parsed.args, parsed.options); - result.error = result.error || enoent.verifyENOENTSync(result.status, parsed); - return result; - } - module.exports = spawn; - module.exports.spawn = spawn; - module.exports.sync = spawnSync; - module.exports._parse = parse5; - module.exports._enoent = enoent; -}); - -// src/utils/logger.ts -import { appendFileSync, existsSync, mkdirSync, readFileSync } from "fs"; -import { join } from "path"; -import { homedir } from "os"; - -class Logger { - level = null; - useColor; - logFilePath = null; - logFileInitialized = false; - constructor() { - this.useColor = process.stdout.isTTY ?? false; - } - ensureLogFileInitialized() { - if (this.logFileInitialized) - return; - this.logFileInitialized = true; - try { - const logsDir = join(DEFAULT_DATA_DIR, "logs"); - if (!existsSync(logsDir)) { - mkdirSync(logsDir, { recursive: true }); - } - const date4 = new Date().toISOString().split("T")[0]; - this.logFilePath = join(logsDir, `claude-mem-${date4}.log`); - } catch (error2) { - console.error("[LOGGER] Failed to initialize log file:", error2); - this.logFilePath = null; - } - } - getLevel() { - if (this.level === null) { - try { - const settingsPath = join(DEFAULT_DATA_DIR, "settings.json"); - if (existsSync(settingsPath)) { - const settingsData = readFileSync(settingsPath, "utf-8"); - const settings = JSON.parse(settingsData); - const envLevel = (settings.CLAUDE_MEM_LOG_LEVEL || "INFO").toUpperCase(); - this.level = LogLevel[envLevel] ?? 1 /* INFO */; - } else { - this.level = 1 /* INFO */; - } - } catch (error2) { - this.level = 1 /* INFO */; - } - } - return this.level; - } - correlationId(sessionId, observationNum) { - return `obs-${sessionId}-${observationNum}`; - } - sessionId(sessionId) { - return `session-${sessionId}`; - } - formatData(data) { - if (data === null || data === undefined) - return ""; - if (typeof data === "string") - return data; - if (typeof data === "number") - return data.toString(); - if (typeof data === "boolean") - return data.toString(); - if (typeof data === "object") { - if (data instanceof Error) { - return this.getLevel() === 0 /* DEBUG */ ? `${data.message} -${data.stack}` : data.message; - } - if (Array.isArray(data)) { - return `[${data.length} items]`; - } - const keys = Object.keys(data); - if (keys.length === 0) - return "{}"; - if (keys.length <= 3) { - return JSON.stringify(data); - } - return `{${keys.length} keys: ${keys.slice(0, 3).join(", ")}...}`; - } - return String(data); - } - formatTool(toolName, toolInput) { - if (!toolInput) - return toolName; - let input = toolInput; - if (typeof toolInput === "string") { - try { - input = JSON.parse(toolInput); - } catch { - input = toolInput; - } - } - if (toolName === "Bash" && input.command) { - return `${toolName}(${input.command})`; - } - if (input.file_path) { - return `${toolName}(${input.file_path})`; - } - if (input.notebook_path) { - return `${toolName}(${input.notebook_path})`; - } - if (toolName === "Glob" && input.pattern) { - return `${toolName}(${input.pattern})`; - } - if (toolName === "Grep" && input.pattern) { - return `${toolName}(${input.pattern})`; - } - if (input.url) { - return `${toolName}(${input.url})`; - } - if (input.query) { - return `${toolName}(${input.query})`; - } - if (toolName === "Task") { - if (input.subagent_type) { - return `${toolName}(${input.subagent_type})`; - } - if (input.description) { - return `${toolName}(${input.description})`; - } - } - if (toolName === "Skill" && input.skill) { - return `${toolName}(${input.skill})`; - } - if (toolName === "LSP" && input.operation) { - return `${toolName}(${input.operation})`; - } - return toolName; - } - formatTimestamp(date4) { - const year = date4.getFullYear(); - const month = String(date4.getMonth() + 1).padStart(2, "0"); - const day = String(date4.getDate()).padStart(2, "0"); - const hours = String(date4.getHours()).padStart(2, "0"); - const minutes = String(date4.getMinutes()).padStart(2, "0"); - const seconds = String(date4.getSeconds()).padStart(2, "0"); - const ms = String(date4.getMilliseconds()).padStart(3, "0"); - return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}.${ms}`; - } - log(level, component, message, context, data) { - if (level < this.getLevel()) - return; - this.ensureLogFileInitialized(); - const timestamp = this.formatTimestamp(new Date); - const levelStr = LogLevel[level].padEnd(5); - const componentStr = component.padEnd(6); - let correlationStr = ""; - if (context?.correlationId) { - correlationStr = `[${context.correlationId}] `; - } else if (context?.sessionId) { - correlationStr = `[session-${context.sessionId}] `; - } - let dataStr = ""; - if (data !== undefined && data !== null) { - if (data instanceof Error) { - dataStr = this.getLevel() === 0 /* DEBUG */ ? ` -${data.message} -${data.stack}` : ` ${data.message}`; - } else if (this.getLevel() === 0 /* DEBUG */ && typeof data === "object") { - dataStr = ` -` + JSON.stringify(data, null, 2); - } else { - dataStr = " " + this.formatData(data); - } - } - let contextStr = ""; - if (context) { - const { sessionId, memorySessionId, correlationId, ...rest } = context; - if (Object.keys(rest).length > 0) { - const pairs = Object.entries(rest).map(([k, v]) => `${k}=${v}`); - contextStr = ` {${pairs.join(", ")}}`; - } - } - const logLine = `[${timestamp}] [${levelStr}] [${componentStr}] ${correlationStr}${message}${contextStr}${dataStr}`; - if (this.logFilePath) { - try { - appendFileSync(this.logFilePath, logLine + ` -`, "utf8"); - } catch (error2) { - process.stderr.write(`[LOGGER] Failed to write to log file: ${error2} -`); - } - } else { - process.stderr.write(logLine + ` -`); - } - } - debug(component, message, context, data) { - this.log(0 /* DEBUG */, component, message, context, data); - } - info(component, message, context, data) { - this.log(1 /* INFO */, component, message, context, data); - } - warn(component, message, context, data) { - this.log(2 /* WARN */, component, message, context, data); - } - error(component, message, context, data) { - this.log(3 /* ERROR */, component, message, context, data); - } - dataIn(component, message, context, data) { - this.info(component, `→ ${message}`, context, data); - } - dataOut(component, message, context, data) { - this.info(component, `← ${message}`, context, data); - } - success(component, message, context, data) { - this.info(component, `✓ ${message}`, context, data); - } - failure(component, message, context, data) { - this.error(component, `✗ ${message}`, context, data); - } - timing(component, message, durationMs, context) { - this.info(component, `⏱ ${message}`, context, { duration: `${durationMs}ms` }); - } - happyPathError(component, message, context, data, fallback = "") { - const stack = new Error().stack || ""; - const stackLines = stack.split(` -`); - const callerLine = stackLines[2] || ""; - const callerMatch = callerLine.match(/at\s+(?:.*\s+)?\(?([^:]+):(\d+):(\d+)\)?/); - const location = callerMatch ? `${callerMatch[1].split("/").pop()}:${callerMatch[2]}` : "unknown"; - const enhancedContext = { - ...context, - location - }; - this.warn(component, `[HAPPY-PATH] ${message}`, enhancedContext, data); - return fallback; - } -} -var LogLevel, DEFAULT_DATA_DIR, logger; -var init_logger = __esm(() => { - ((LogLevel2) => { - LogLevel2[LogLevel2["DEBUG"] = 0] = "DEBUG"; - LogLevel2[LogLevel2["INFO"] = 1] = "INFO"; - LogLevel2[LogLevel2["WARN"] = 2] = "WARN"; - LogLevel2[LogLevel2["ERROR"] = 3] = "ERROR"; - LogLevel2[LogLevel2["SILENT"] = 4] = "SILENT"; - })(LogLevel ||= {}); - DEFAULT_DATA_DIR = join(homedir(), ".claude-mem"); - logger = new Logger; -}); - -// src/shared/hook-constants.ts -function getTimeout(baseTimeout) { - return process.platform === "win32" ? Math.round(baseTimeout * HOOK_TIMEOUTS.WINDOWS_MULTIPLIER) : baseTimeout; -} -var HOOK_TIMEOUTS, HOOK_EXIT_CODES; -var init_hook_constants = __esm(() => { - HOOK_TIMEOUTS = { - DEFAULT: 300000, - HEALTH_CHECK: 3000, - POST_SPAWN_WAIT: 5000, - READINESS_WAIT: 30000, - PORT_IN_USE_WAIT: 3000, - WORKER_STARTUP_WAIT: 1000, - PRE_RESTART_SETTLE_DELAY: 2000, - POWERSHELL_COMMAND: 1e4, - WINDOWS_MULTIPLIER: 1.5 - }; - HOOK_EXIT_CODES = { - SUCCESS: 0, - FAILURE: 1, - BLOCKING_ERROR: 2, - USER_MESSAGE_ONLY: 3 - }; -}); - -// src/shared/SettingsDefaultsManager.ts -var exports_SettingsDefaultsManager = {}; -__export(exports_SettingsDefaultsManager, { - SettingsDefaultsManager: () => SettingsDefaultsManager -}); -import { readFileSync as readFileSync2, writeFileSync, existsSync as existsSync2, mkdirSync as mkdirSync2 } from "fs"; -import { join as join2, dirname } from "path"; -import { homedir as homedir2 } from "os"; -var SettingsDefaultsManager; -var init_SettingsDefaultsManager = __esm(() => { - SettingsDefaultsManager = class SettingsDefaultsManager { - static DEFAULTS = { - CLAUDE_MEM_MODEL: "claude-sonnet-4-5", - CLAUDE_MEM_CONTEXT_OBSERVATIONS: "50", - CLAUDE_MEM_WORKER_PORT: "37777", - CLAUDE_MEM_WORKER_HOST: "127.0.0.1", - CLAUDE_MEM_SKIP_TOOLS: "ListMcpResourcesTool,SlashCommand,Skill,TodoWrite,AskUserQuestion", - CLAUDE_MEM_PROVIDER: "claude", - CLAUDE_MEM_CLAUDE_AUTH_METHOD: "cli", - CLAUDE_MEM_GEMINI_API_KEY: "", - CLAUDE_MEM_GEMINI_MODEL: "gemini-2.5-flash-lite", - CLAUDE_MEM_GEMINI_RATE_LIMITING_ENABLED: "true", - CLAUDE_MEM_OPENROUTER_API_KEY: "", - CLAUDE_MEM_OPENROUTER_MODEL: "xiaomi/mimo-v2-flash:free", - CLAUDE_MEM_OPENROUTER_SITE_URL: "", - CLAUDE_MEM_OPENROUTER_APP_NAME: "claude-mem", - CLAUDE_MEM_OPENROUTER_MAX_CONTEXT_MESSAGES: "20", - CLAUDE_MEM_OPENROUTER_MAX_TOKENS: "100000", - CLAUDE_MEM_DATA_DIR: join2(homedir2(), ".claude-mem"), - CLAUDE_MEM_LOG_LEVEL: "INFO", - CLAUDE_MEM_PYTHON_VERSION: "3.13", - CLAUDE_CODE_PATH: "", - CLAUDE_MEM_MODE: "code", - CLAUDE_MEM_CONTEXT_SHOW_READ_TOKENS: "false", - CLAUDE_MEM_CONTEXT_SHOW_WORK_TOKENS: "false", - CLAUDE_MEM_CONTEXT_SHOW_SAVINGS_AMOUNT: "false", - CLAUDE_MEM_CONTEXT_SHOW_SAVINGS_PERCENT: "true", - CLAUDE_MEM_CONTEXT_FULL_COUNT: "0", - CLAUDE_MEM_CONTEXT_FULL_FIELD: "narrative", - CLAUDE_MEM_CONTEXT_SESSION_COUNT: "10", - CLAUDE_MEM_CONTEXT_SHOW_LAST_SUMMARY: "true", - CLAUDE_MEM_CONTEXT_SHOW_LAST_MESSAGE: "false", - CLAUDE_MEM_CONTEXT_SHOW_TERMINAL_OUTPUT: "true", - CLAUDE_MEM_FOLDER_CLAUDEMD_ENABLED: "false", - CLAUDE_MEM_MAX_CONCURRENT_AGENTS: "2", - CLAUDE_MEM_EXCLUDED_PROJECTS: "", - CLAUDE_MEM_FOLDER_MD_EXCLUDE: "[]", - CLAUDE_MEM_CHROMA_ENABLED: "true", - CLAUDE_MEM_CHROMA_MODE: "local", - CLAUDE_MEM_CHROMA_HOST: "127.0.0.1", - CLAUDE_MEM_CHROMA_PORT: "8000", - CLAUDE_MEM_CHROMA_SSL: "false", - CLAUDE_MEM_CHROMA_API_KEY: "", - CLAUDE_MEM_CHROMA_TENANT: "default_tenant", - CLAUDE_MEM_CHROMA_DATABASE: "default_database" - }; - static getAllDefaults() { - return { ...this.DEFAULTS }; - } - static get(key) { - return process.env[key] ?? this.DEFAULTS[key]; - } - static getInt(key) { - const value = this.get(key); - return parseInt(value, 10); - } - static getBool(key) { - const value = this.get(key); - return value === "true" || value === true; - } - static applyEnvOverrides(settings) { - const result = { ...settings }; - for (const key of Object.keys(this.DEFAULTS)) { - if (process.env[key] !== undefined) { - result[key] = process.env[key]; - } - } - return result; - } - static loadFromFile(settingsPath) { - try { - if (!existsSync2(settingsPath)) { - const defaults = this.getAllDefaults(); - try { - const dir = dirname(settingsPath); - if (!existsSync2(dir)) { - mkdirSync2(dir, { recursive: true }); - } - writeFileSync(settingsPath, JSON.stringify(defaults, null, 2), "utf-8"); - console.log("[SETTINGS] Created settings file with defaults:", settingsPath); - } catch (error2) { - console.warn("[SETTINGS] Failed to create settings file, using in-memory defaults:", settingsPath, error2); - } - return this.applyEnvOverrides(defaults); - } - const settingsData = readFileSync2(settingsPath, "utf-8"); - const settings = JSON.parse(settingsData); - let flatSettings = settings; - if (settings.env && typeof settings.env === "object") { - flatSettings = settings.env; - try { - writeFileSync(settingsPath, JSON.stringify(flatSettings, null, 2), "utf-8"); - console.log("[SETTINGS] Migrated settings file from nested to flat schema:", settingsPath); - } catch (error2) { - console.warn("[SETTINGS] Failed to auto-migrate settings file:", settingsPath, error2); - } - } - const result = { ...this.DEFAULTS }; - for (const key of Object.keys(this.DEFAULTS)) { - if (flatSettings[key] !== undefined) { - result[key] = flatSettings[key]; - } - } - return this.applyEnvOverrides(result); - } catch (error2) { - console.warn("[SETTINGS] Failed to load settings, using defaults:", settingsPath, error2); - return this.applyEnvOverrides(this.getAllDefaults()); - } - } - }; -}); - -// src/shared/paths.ts -var exports_paths = {}; -__export(exports_paths, { - getWorkerSocketPath: () => getWorkerSocketPath, - getProjectArchiveDir: () => getProjectArchiveDir, - getPackageRoot: () => getPackageRoot, - getPackageCommandsDir: () => getPackageCommandsDir, - getCurrentProjectName: () => getCurrentProjectName, - ensureModesDir: () => ensureModesDir, - ensureDir: () => ensureDir, - ensureAllDataDirs: () => ensureAllDataDirs, - ensureAllClaudeDirs: () => ensureAllClaudeDirs, - createBackupFilename: () => createBackupFilename, - VECTOR_DB_DIR: () => VECTOR_DB_DIR, - USER_SETTINGS_PATH: () => USER_SETTINGS_PATH, - TRASH_DIR: () => TRASH_DIR, - OBSERVER_SESSIONS_DIR: () => OBSERVER_SESSIONS_DIR, - MODES_DIR: () => MODES_DIR, - MARKETPLACE_ROOT: () => MARKETPLACE_ROOT, - LOGS_DIR: () => LOGS_DIR, - DB_PATH: () => DB_PATH, - DATA_DIR: () => DATA_DIR, - CLAUDE_SETTINGS_PATH: () => CLAUDE_SETTINGS_PATH, - CLAUDE_MD_PATH: () => CLAUDE_MD_PATH, - CLAUDE_CONFIG_DIR: () => CLAUDE_CONFIG_DIR, - CLAUDE_COMMANDS_DIR: () => CLAUDE_COMMANDS_DIR, - BACKUPS_DIR: () => BACKUPS_DIR, - ARCHIVES_DIR: () => ARCHIVES_DIR -}); -import { join as join3, dirname as dirname2, basename } from "path"; -import { homedir as homedir3 } from "os"; -import { existsSync as existsSync3, mkdirSync as mkdirSync3 } from "fs"; -import { execSync } from "child_process"; -import { fileURLToPath } from "url"; -function getDirname() { - if (typeof __dirname !== "undefined") { - return __dirname; - } - return dirname2(fileURLToPath(import.meta.url)); -} -function resolveDataDir() { - if (process.env.CLAUDE_MEM_DATA_DIR) { - return process.env.CLAUDE_MEM_DATA_DIR; - } - const defaultDataDir = join3(homedir3(), ".claude-mem"); - const settingsPath = join3(defaultDataDir, "settings.json"); - try { - if (existsSync3(settingsPath)) { - const { readFileSync: readFileSync3 } = __require("fs"); - const raw = JSON.parse(readFileSync3(settingsPath, "utf-8")); - const settings = raw.env ?? raw; - if (settings.CLAUDE_MEM_DATA_DIR) { - return settings.CLAUDE_MEM_DATA_DIR; - } - } - } catch {} - return defaultDataDir; -} -function getProjectArchiveDir(projectName) { - return join3(ARCHIVES_DIR, projectName); -} -function getWorkerSocketPath(sessionId) { - return join3(DATA_DIR, `worker-${sessionId}.sock`); -} -function ensureDir(dirPath) { - mkdirSync3(dirPath, { recursive: true }); -} -function ensureAllDataDirs() { - ensureDir(DATA_DIR); - ensureDir(ARCHIVES_DIR); - ensureDir(LOGS_DIR); - ensureDir(TRASH_DIR); - ensureDir(BACKUPS_DIR); - ensureDir(MODES_DIR); -} -function ensureModesDir() { - ensureDir(MODES_DIR); -} -function ensureAllClaudeDirs() { - ensureDir(CLAUDE_CONFIG_DIR); - ensureDir(CLAUDE_COMMANDS_DIR); -} -function getCurrentProjectName() { - try { - const gitRoot = execSync("git rev-parse --show-toplevel", { - cwd: process.cwd(), - encoding: "utf8", - stdio: ["pipe", "pipe", "ignore"], - windowsHide: true - }).trim(); - return basename(dirname2(gitRoot)) + "/" + basename(gitRoot); - } catch (error2) { - logger.debug("SYSTEM", "Git root detection failed, using cwd basename", { - cwd: process.cwd() - }, error2); - const cwd = process.cwd(); - return basename(dirname2(cwd)) + "/" + basename(cwd); - } -} -function getPackageRoot() { - return join3(_dirname, ".."); -} -function getPackageCommandsDir() { - const packageRoot = getPackageRoot(); - return join3(packageRoot, "commands"); -} -function createBackupFilename(originalPath) { - const timestamp = new Date().toISOString().replace(/[:.]/g, "-").replace("T", "_").slice(0, 19); - return `${originalPath}.backup.${timestamp}`; -} -var __dirname = "/Users/alexnewman/conductor/workspaces/claude-mem/banjul/src/shared", _dirname, DATA_DIR, CLAUDE_CONFIG_DIR, MARKETPLACE_ROOT, ARCHIVES_DIR, LOGS_DIR, TRASH_DIR, BACKUPS_DIR, MODES_DIR, USER_SETTINGS_PATH, DB_PATH, VECTOR_DB_DIR, OBSERVER_SESSIONS_DIR, CLAUDE_SETTINGS_PATH, CLAUDE_COMMANDS_DIR, CLAUDE_MD_PATH; -var init_paths = __esm(() => { - init_logger(); - _dirname = getDirname(); - DATA_DIR = resolveDataDir(); - CLAUDE_CONFIG_DIR = process.env.CLAUDE_CONFIG_DIR || join3(homedir3(), ".claude"); - MARKETPLACE_ROOT = join3(CLAUDE_CONFIG_DIR, "plugins", "marketplaces", "thedotmack"); - ARCHIVES_DIR = join3(DATA_DIR, "archives"); - LOGS_DIR = join3(DATA_DIR, "logs"); - TRASH_DIR = join3(DATA_DIR, "trash"); - BACKUPS_DIR = join3(DATA_DIR, "backups"); - MODES_DIR = join3(DATA_DIR, "modes"); - USER_SETTINGS_PATH = join3(DATA_DIR, "settings.json"); - DB_PATH = join3(DATA_DIR, "claude-mem.db"); - VECTOR_DB_DIR = join3(DATA_DIR, "vector-db"); - OBSERVER_SESSIONS_DIR = join3(DATA_DIR, "observer-sessions"); - CLAUDE_SETTINGS_PATH = join3(CLAUDE_CONFIG_DIR, "settings.json"); - CLAUDE_COMMANDS_DIR = join3(CLAUDE_CONFIG_DIR, "commands"); - CLAUDE_MD_PATH = join3(CLAUDE_CONFIG_DIR, "CLAUDE.md"); -}); - -// src/shared/worker-utils.ts -import path from "path"; -import { readFileSync as readFileSync3 } from "fs"; -function fetchWithTimeout(url, init = {}, timeoutMs) { - return new Promise((resolve, reject) => { - const timeoutId = setTimeout(() => reject(new Error(`Request timed out after ${timeoutMs}ms`)), timeoutMs); - fetch(url, init).then((response) => { - clearTimeout(timeoutId); - resolve(response); - }, (err) => { - clearTimeout(timeoutId); - reject(err); - }); - }); -} -function getWorkerPort() { - if (cachedPort !== null) { - return cachedPort; - } - const settingsPath = path.join(SettingsDefaultsManager.get("CLAUDE_MEM_DATA_DIR"), "settings.json"); - const settings = SettingsDefaultsManager.loadFromFile(settingsPath); - cachedPort = parseInt(settings.CLAUDE_MEM_WORKER_PORT, 10); - return cachedPort; -} -function getWorkerHost() { - if (cachedHost !== null) { - return cachedHost; - } - const settingsPath = path.join(SettingsDefaultsManager.get("CLAUDE_MEM_DATA_DIR"), "settings.json"); - const settings = SettingsDefaultsManager.loadFromFile(settingsPath); - cachedHost = settings.CLAUDE_MEM_WORKER_HOST; - return cachedHost; -} -function clearPortCache() { - cachedPort = null; - cachedHost = null; -} -function buildWorkerUrl(apiPath) { - return `http://${getWorkerHost()}:${getWorkerPort()}${apiPath}`; -} -function workerHttpRequest(apiPath, options = {}) { - const method = options.method ?? "GET"; - const timeoutMs = options.timeoutMs ?? HEALTH_CHECK_TIMEOUT_MS; - const url = buildWorkerUrl(apiPath); - const init = { method }; - if (options.headers) { - init.headers = options.headers; - } - if (options.body) { - init.body = options.body; - } - if (timeoutMs > 0) { - return fetchWithTimeout(url, init, timeoutMs); - } - return fetch(url, init); -} -async function isWorkerHealthy() { - const response = await workerHttpRequest("/api/health", { timeoutMs: HEALTH_CHECK_TIMEOUT_MS }); - return response.ok; -} -function getPluginVersion() { - try { - const packageJsonPath = path.join(MARKETPLACE_ROOT, "package.json"); - const packageJson = JSON.parse(readFileSync3(packageJsonPath, "utf-8")); - return packageJson.version; - } catch (error2) { - const code = error2.code; - if (code === "ENOENT" || code === "EBUSY") { - logger.debug("SYSTEM", "Could not read plugin version (shutdown race)", { code }); - return "unknown"; - } - throw error2; - } -} -async function getWorkerVersion() { - const response = await workerHttpRequest("/api/version", { timeoutMs: HEALTH_CHECK_TIMEOUT_MS }); - if (!response.ok) { - throw new Error(`Failed to get worker version: ${response.status}`); - } - const data = await response.json(); - return data.version; -} -async function checkWorkerVersion() { - try { - const pluginVersion = getPluginVersion(); - if (pluginVersion === "unknown") - return; - const workerVersion = await getWorkerVersion(); - if (workerVersion === "unknown") - return; - if (pluginVersion !== workerVersion) { - logger.debug("SYSTEM", "Version check", { - pluginVersion, - workerVersion, - note: "Mismatch will be auto-restarted by worker-service start command" - }); - } - } catch (error2) { - logger.debug("SYSTEM", "Version check failed", { - error: error2 instanceof Error ? error2.message : String(error2) - }); - } -} -async function ensureWorkerRunning() { - try { - if (await isWorkerHealthy()) { - await checkWorkerVersion(); - return true; - } - } catch (e) { - logger.debug("SYSTEM", "Worker health check failed", { - error: e instanceof Error ? e.message : String(e) - }); - } - logger.warn("SYSTEM", "Worker not healthy, hook will proceed gracefully"); - return false; -} -var HEALTH_CHECK_TIMEOUT_MS, cachedPort = null, cachedHost = null; -var init_worker_utils = __esm(() => { - init_logger(); - init_hook_constants(); - init_SettingsDefaultsManager(); - init_paths(); - HEALTH_CHECK_TIMEOUT_MS = (() => { - const envVal = process.env.CLAUDE_MEM_HEALTH_TIMEOUT_MS; - if (envVal) { - const parsed = parseInt(envVal, 10); - if (Number.isFinite(parsed) && parsed >= 500 && parsed <= 300000) { - return parsed; - } - logger.warn("SYSTEM", "Invalid CLAUDE_MEM_HEALTH_TIMEOUT_MS, using default", { - value: envVal, - min: 500, - max: 300000 - }); - } - return getTimeout(HOOK_TIMEOUTS.HEALTH_CHECK); - })(); -}); - -// src/services/sqlite/observations/store.ts -import { createHash } from "crypto"; -function computeObservationContentHash(memorySessionId, title, narrative) { - return createHash("sha256").update((memorySessionId || "") + (title || "") + (narrative || "")).digest("hex").slice(0, 16); -} -function findDuplicateObservation(db, contentHash, timestampEpoch) { - const windowStart = timestampEpoch - DEDUP_WINDOW_MS; - const stmt = db.prepare("SELECT id, created_at_epoch FROM observations WHERE content_hash = ? AND created_at_epoch > ?"); - return stmt.get(contentHash, windowStart); -} -var DEDUP_WINDOW_MS = 30000; -var init_store = __esm(() => { - init_logger(); - init_paths(); -}); - -// src/services/sqlite/SessionStore.ts -import { Database } from "bun:sqlite"; - -class SessionStore { - db; - constructor(dbPath = DB_PATH) { - if (dbPath !== ":memory:") { - ensureDir(DATA_DIR); - } - this.db = new Database(dbPath); - this.db.run("PRAGMA journal_mode = WAL"); - this.db.run("PRAGMA synchronous = NORMAL"); - this.db.run("PRAGMA foreign_keys = ON"); - this.initializeSchema(); - this.ensureWorkerPortColumn(); - this.ensurePromptTrackingColumns(); - this.removeSessionSummariesUniqueConstraint(); - this.addObservationHierarchicalFields(); - this.makeObservationsTextNullable(); - this.createUserPromptsTable(); - this.ensureDiscoveryTokensColumn(); - this.createPendingMessagesTable(); - this.renameSessionIdColumns(); - this.repairSessionIdColumnRename(); - this.addFailedAtEpochColumn(); - this.addOnUpdateCascadeToForeignKeys(); - this.addObservationContentHashColumn(); - this.addSessionCustomTitleColumn(); - } - initializeSchema() { - this.db.run(` +#!/usr/bin/env bun +"use strict";var W9=Object.create;var kp=Object.defineProperty;var K9=Object.getOwnPropertyDescriptor;var J9=Object.getOwnPropertyNames;var X9=Object.getPrototypeOf,Y9=Object.prototype.hasOwnProperty;var Pe=(t,e)=>()=>(t&&(e=t(t=0)),e);var T=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),ln=(t,e)=>{for(var r in e)kp(t,r,{get:e[r],enumerable:!0})},J$=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of J9(e))!Y9.call(t,i)&&i!==r&&kp(t,i,{get:()=>e[i],enumerable:!(n=K9(e,i))||n.enumerable});return t};var Ue=(t,e,r)=>(r=t!=null?W9(X9(t)):{},J$(e||!t||!t.__esModule?kp(r,"default",{value:t,enumerable:!0}):r,t)),ou=t=>J$(kp({},"__esModule",{value:!0}),t);var hl=T(st=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});st.regexpCode=st.getEsmExportName=st.getProperty=st.safeStringify=st.stringify=st.strConcat=st.addCodeArg=st.str=st._=st.nil=st._Code=st.Name=st.IDENTIFIER=st._CodeOrName=void 0;var ml=class{};st._CodeOrName=ml;st.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var oo=class extends ml{constructor(e){if(super(),!st.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};st.Name=oo;var In=class extends ml{constructor(e){super(),this._items=typeof e=="string"?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return e===""||e==='""'}get str(){var e;return(e=this._str)!==null&&e!==void 0?e:this._str=this._items.reduce((r,n)=>`${r}${n}`,"")}get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names=this._items.reduce((r,n)=>(n instanceof oo&&(r[n.str]=(r[n.str]||0)+1),r),{})}};st._Code=In;st.nil=new In("");function y1(t,...e){let r=[t[0]],n=0;for(;n{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.ValueScope=Xr.ValueScopeName=Xr.Scope=Xr.varKinds=Xr.UsedValueState=void 0;var Jr=hl(),Ix=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}},Vm;(function(t){t[t.Started=0]="Started",t[t.Completed=1]="Completed"})(Vm||(Xr.UsedValueState=Vm={}));Xr.varKinds={const:new Jr.Name("const"),let:new Jr.Name("let"),var:new Jr.Name("var")};var Gm=class{constructor({prefixes:e,parent:r}={}){this._names={},this._prefixes=e,this._parent=r}toName(e){return e instanceof Jr.Name?e:this.name(e)}name(e){return new Jr.Name(this._newName(e))}_newName(e){let r=this._names[e]||this._nameGroup(e);return`${e}${r.index++}`}_nameGroup(e){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(e)||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}};Xr.Scope=Gm;var Wm=class extends Jr.Name{constructor(e,r){super(r),this.prefix=e}setValue(e,{property:r,itemIndex:n}){this.value=e,this.scopePath=(0,Jr._)`.${new Jr.Name(r)}[${n}]`}};Xr.ValueScopeName=Wm;var U3=(0,Jr._)`\n`,Rx=class extends Gm{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?U3:Jr.nil}}get(){return this._scope}name(e){return new Wm(e,this._newName(e))}value(e,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let i=this.toName(e),{prefix:s}=i,o=(n=r.key)!==null&&n!==void 0?n:r.ref,a=this._values[s];if(a){let l=a.get(o);if(l)return l}else a=this._values[s]=new Map;a.set(o,i);let c=this._scope[s]||(this._scope[s]=[]),u=c.length;return c[u]=r.ref,i.setValue(r,{property:s,itemIndex:u}),i}getValue(e,r){let n=this._values[e];if(n)return n.get(r)}scopeRefs(e,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,Jr._)`${e}${n.scopePath}`})}scopeCode(e=this._values,r,n){return this._reduceValues(e,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},r,n)}_reduceValues(e,r,n={},i){let s=Jr.nil;for(let o in e){let a=e[o];if(!a)continue;let c=n[o]=n[o]||new Map;a.forEach(u=>{if(c.has(u))return;c.set(u,Vm.Started);let l=r(u);if(l){let d=this.opts.es5?Xr.varKinds.var:Xr.varKinds.const;s=(0,Jr._)`${s}${d} ${u} = ${l};${this.opts._n}`}else if(l=i?.(u))s=(0,Jr._)`${s}${l}${this.opts._n}`;else throw new Ix(u);c.set(u,Vm.Completed)})}return s}};Xr.ValueScope=Rx});var Le=T(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});Fe.or=Fe.and=Fe.not=Fe.CodeGen=Fe.operators=Fe.varKinds=Fe.ValueScopeName=Fe.ValueScope=Fe.Scope=Fe.Name=Fe.regexpCode=Fe.stringify=Fe.getProperty=Fe.nil=Fe.strConcat=Fe.str=Fe._=void 0;var et=hl(),Vn=Ox(),Es=hl();Object.defineProperty(Fe,"_",{enumerable:!0,get:function(){return Es._}});Object.defineProperty(Fe,"str",{enumerable:!0,get:function(){return Es.str}});Object.defineProperty(Fe,"strConcat",{enumerable:!0,get:function(){return Es.strConcat}});Object.defineProperty(Fe,"nil",{enumerable:!0,get:function(){return Es.nil}});Object.defineProperty(Fe,"getProperty",{enumerable:!0,get:function(){return Es.getProperty}});Object.defineProperty(Fe,"stringify",{enumerable:!0,get:function(){return Es.stringify}});Object.defineProperty(Fe,"regexpCode",{enumerable:!0,get:function(){return Es.regexpCode}});Object.defineProperty(Fe,"Name",{enumerable:!0,get:function(){return Es.Name}});var Ym=Ox();Object.defineProperty(Fe,"Scope",{enumerable:!0,get:function(){return Ym.Scope}});Object.defineProperty(Fe,"ValueScope",{enumerable:!0,get:function(){return Ym.ValueScope}});Object.defineProperty(Fe,"ValueScopeName",{enumerable:!0,get:function(){return Ym.ValueScopeName}});Object.defineProperty(Fe,"varKinds",{enumerable:!0,get:function(){return Ym.varKinds}});Fe.operators={GT:new et._Code(">"),GTE:new et._Code(">="),LT:new et._Code("<"),LTE:new et._Code("<="),EQ:new et._Code("==="),NEQ:new et._Code("!=="),NOT:new et._Code("!"),OR:new et._Code("||"),AND:new et._Code("&&"),ADD:new et._Code("+")};var Fi=class{optimizeNodes(){return this}optimizeNames(e,r){return this}},Px=class extends Fi{constructor(e,r,n){super(),this.varKind=e,this.name=r,this.rhs=n}render({es5:e,_n:r}){let n=e?Vn.varKinds.var:this.varKind,i=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${i};`+r}optimizeNames(e,r){if(e[this.name.str])return this.rhs&&(this.rhs=Ta(this.rhs,e,r)),this}get names(){return this.rhs instanceof et._CodeOrName?this.rhs.names:{}}},Km=class extends Fi{constructor(e,r,n){super(),this.lhs=e,this.rhs=r,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,r){if(!(this.lhs instanceof et.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=Ta(this.rhs,e,r),this}get names(){let e=this.lhs instanceof et.Name?{}:{...this.lhs.names};return Xm(e,this.rhs)}},Cx=class extends Km{constructor(e,r,n,i){super(e,n,i),this.op=r}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},Ax=class extends Fi{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},Nx=class extends Fi{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}},Mx=class extends Fi{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},Dx=class extends Fi{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,r){return this.code=Ta(this.code,e,r),this}get names(){return this.code instanceof et._CodeOrName?this.code.names:{}}},gl=class extends Fi{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((r,n)=>r+n.render(e),"")}optimizeNodes(){let{nodes:e}=this,r=e.length;for(;r--;){let n=e[r].optimizeNodes();Array.isArray(n)?e.splice(r,1,...n):n?e[r]=n:e.splice(r,1)}return e.length>0?this:void 0}optimizeNames(e,r){let{nodes:n}=this,i=n.length;for(;i--;){let s=n[i];s.optimizeNames(e,r)||(q3(e,s.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((e,r)=>uo(e,r.names),{})}},Hi=class extends gl{render(e){return"{"+e._n+super.render(e)+"}"+e._n}},jx=class extends gl{},$a=class extends Hi{};$a.kind="else";var ao=class t extends Hi{constructor(e,r){super(r),this.condition=e}render(e){let r=`if(${this.condition})`+super.render(e);return this.else&&(r+="else "+this.else.render(e)),r}optimizeNodes(){super.optimizeNodes();let e=this.condition;if(e===!0)return this.nodes;let r=this.else;if(r){let n=r.optimizeNodes();r=this.else=Array.isArray(n)?new $a(n):n}if(r)return e===!1?r instanceof t?r:r.nodes:this.nodes.length?this:new t(b1(e),r instanceof t?[r]:r.nodes);if(!(e===!1||!this.nodes.length))return this}optimizeNames(e,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(e,r),!!(super.optimizeNames(e,r)||this.else))return this.condition=Ta(this.condition,e,r),this}get names(){let e=super.names;return Xm(e,this.condition),this.else&&uo(e,this.else.names),e}};ao.kind="if";var co=class extends Hi{};co.kind="for";var zx=class extends co{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iteration=Ta(this.iteration,e,r),this}get names(){return uo(super.names,this.iteration.names)}},Lx=class extends co{constructor(e,r,n,i){super(),this.varKind=e,this.name=r,this.from=n,this.to=i}render(e){let r=e.es5?Vn.varKinds.var:this.varKind,{name:n,from:i,to:s}=this;return`for(${r} ${n}=${i}; ${n}<${s}; ${n}++)`+super.render(e)}get names(){let e=Xm(super.names,this.from);return Xm(e,this.to)}},Jm=class extends co{constructor(e,r,n,i){super(),this.loop=e,this.varKind=r,this.name=n,this.iterable=i}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iterable=Ta(this.iterable,e,r),this}get names(){return uo(super.names,this.iterable.names)}},vl=class extends Hi{constructor(e,r,n){super(),this.name=e,this.args=r,this.async=n}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}};vl.kind="func";var yl=class extends gl{render(e){return"return "+super.render(e)}};yl.kind="return";var Ux=class extends Hi{render(e){let r="try"+super.render(e);return this.catch&&(r+=this.catch.render(e)),this.finally&&(r+=this.finally.render(e)),r}optimizeNodes(){var e,r;return super.optimizeNodes(),(e=this.catch)===null||e===void 0||e.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(e,r){var n,i;return super.optimizeNames(e,r),(n=this.catch)===null||n===void 0||n.optimizeNames(e,r),(i=this.finally)===null||i===void 0||i.optimizeNames(e,r),this}get names(){let e=super.names;return this.catch&&uo(e,this.catch.names),this.finally&&uo(e,this.finally.names),e}},_l=class extends Hi{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};_l.kind="catch";var bl=class extends Hi{render(e){return"finally"+super.render(e)}};bl.kind="finally";var qx=class{constructor(e,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?` +`:""},this._extScope=e,this._scope=new Vn.Scope({parent:e}),this._nodes=[new jx]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,r){let n=this._extScope.value(e,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,r){return this._extScope.getValue(e,r)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,r,n,i){let s=this._scope.toName(r);return n!==void 0&&i&&(this._constants[s.str]=n),this._leafNode(new Px(e,s,n)),s}const(e,r,n){return this._def(Vn.varKinds.const,e,r,n)}let(e,r,n){return this._def(Vn.varKinds.let,e,r,n)}var(e,r,n){return this._def(Vn.varKinds.var,e,r,n)}assign(e,r,n){return this._leafNode(new Km(e,r,n))}add(e,r){return this._leafNode(new Cx(e,Fe.operators.ADD,r))}code(e){return typeof e=="function"?e():e!==et.nil&&this._leafNode(new Dx(e)),this}object(...e){let r=["{"];for(let[n,i]of e)r.length>1&&r.push(","),r.push(n),(n!==i||this.opts.es5)&&(r.push(":"),(0,et.addCodeArg)(r,i));return r.push("}"),new et._Code(r)}if(e,r,n){if(this._blockNode(new ao(e)),r&&n)this.code(r).else().code(n).endIf();else if(r)this.code(r).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new ao(e))}else(){return this._elseNode(new $a)}endIf(){return this._endBlockNode(ao,$a)}_for(e,r){return this._blockNode(e),r&&this.code(r).endFor(),this}for(e,r){return this._for(new zx(e),r)}forRange(e,r,n,i,s=this.opts.es5?Vn.varKinds.var:Vn.varKinds.let){let o=this._scope.toName(e);return this._for(new Lx(s,o,r,n),()=>i(o))}forOf(e,r,n,i=Vn.varKinds.const){let s=this._scope.toName(e);if(this.opts.es5){let o=r instanceof et.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,et._)`${o}.length`,a=>{this.var(s,(0,et._)`${o}[${a}]`),n(s)})}return this._for(new Jm("of",i,s,r),()=>n(s))}forIn(e,r,n,i=this.opts.es5?Vn.varKinds.var:Vn.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,et._)`Object.keys(${r})`,n);let s=this._scope.toName(e);return this._for(new Jm("in",i,s,r),()=>n(s))}endFor(){return this._endBlockNode(co)}label(e){return this._leafNode(new Ax(e))}break(e){return this._leafNode(new Nx(e))}return(e){let r=new yl;if(this._blockNode(r),this.code(e),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(yl)}try(e,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new Ux;if(this._blockNode(i),this.code(e),r){let s=this.name("e");this._currNode=i.catch=new _l(s),r(s)}return n&&(this._currNode=i.finally=new bl,this.code(n)),this._endBlockNode(_l,bl)}throw(e){return this._leafNode(new Mx(e))}block(e,r){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(r),this}endBlock(e){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-r;if(n<0||e!==void 0&&n!==e)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=r,this}func(e,r=et.nil,n,i){return this._blockNode(new vl(e,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(vl)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,r){let n=this._currNode;if(n instanceof e||r&&n instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${e.kind}/${r.kind}`:e.kind}"`)}_elseNode(e){let r=this._currNode;if(!(r instanceof ao))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let r=this._nodes;r[r.length-1]=e}};Fe.CodeGen=qx;function uo(t,e){for(let r in e)t[r]=(t[r]||0)+(e[r]||0);return t}function Xm(t,e){return e instanceof et._CodeOrName?uo(t,e.names):t}function Ta(t,e,r){if(t instanceof et.Name)return n(t);if(!i(t))return t;return new et._Code(t._items.reduce((s,o)=>(o instanceof et.Name&&(o=n(o)),o instanceof et._Code?s.push(...o._items):s.push(o),s),[]));function n(s){let o=r[s.str];return o===void 0||e[s.str]!==1?s:(delete e[s.str],o)}function i(s){return s instanceof et._Code&&s._items.some(o=>o instanceof et.Name&&e[o.str]===1&&r[o.str]!==void 0)}}function q3(t,e){for(let r in e)t[r]=(t[r]||0)-(e[r]||0)}function b1(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:(0,et._)`!${Fx(t)}`}Fe.not=b1;var F3=x1(Fe.operators.AND);function H3(...t){return t.reduce(F3)}Fe.and=H3;var Z3=x1(Fe.operators.OR);function B3(...t){return t.reduce(Z3)}Fe.or=B3;function x1(t){return(e,r)=>e===et.nil?r:r===et.nil?e:(0,et._)`${Fx(e)} ${t} ${Fx(r)}`}function Fx(t){return t instanceof et.Name?t:(0,et._)`(${t})`}});var rt=T(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});Ke.checkStrictMode=Ke.getErrorPath=Ke.Type=Ke.useFunc=Ke.setEvaluated=Ke.evaluatedPropsToName=Ke.mergeEvaluated=Ke.eachItem=Ke.unescapeJsonPointer=Ke.escapeJsonPointer=Ke.escapeFragment=Ke.unescapeFragment=Ke.schemaRefOrVal=Ke.schemaHasRulesButRef=Ke.schemaHasRules=Ke.checkUnknownRules=Ke.alwaysValidSchema=Ke.toHash=void 0;var St=Le(),V3=hl();function G3(t){let e={};for(let r of t)e[r]=!0;return e}Ke.toHash=G3;function W3(t,e){return typeof e=="boolean"?e:Object.keys(e).length===0?!0:(E1(t,e),!k1(e,t.self.RULES.all))}Ke.alwaysValidSchema=W3;function E1(t,e=t.schema){let{opts:r,self:n}=t;if(!r.strictSchema||typeof e=="boolean")return;let i=n.RULES.keywords;for(let s in e)i[s]||I1(t,`unknown keyword: "${s}"`)}Ke.checkUnknownRules=E1;function k1(t,e){if(typeof t=="boolean")return!t;for(let r in t)if(e[r])return!0;return!1}Ke.schemaHasRules=k1;function K3(t,e){if(typeof t=="boolean")return!t;for(let r in t)if(r!=="$ref"&&e.all[r])return!0;return!1}Ke.schemaHasRulesButRef=K3;function J3({topSchemaRef:t,schemaPath:e},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,St._)`${r}`}return(0,St._)`${t}${e}${(0,St.getProperty)(n)}`}Ke.schemaRefOrVal=J3;function X3(t){return $1(decodeURIComponent(t))}Ke.unescapeFragment=X3;function Y3(t){return encodeURIComponent(Zx(t))}Ke.escapeFragment=Y3;function Zx(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}Ke.escapeJsonPointer=Zx;function $1(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}Ke.unescapeJsonPointer=$1;function Q3(t,e){if(Array.isArray(t))for(let r of t)e(r);else e(t)}Ke.eachItem=Q3;function S1({mergeNames:t,mergeToName:e,mergeValues:r,resultToName:n}){return(i,s,o,a)=>{let c=o===void 0?s:o instanceof St.Name?(s instanceof St.Name?t(i,s,o):e(i,s,o),o):s instanceof St.Name?(e(i,o,s),s):r(s,o);return a===St.Name&&!(c instanceof St.Name)?n(i,c):c}}Ke.mergeEvaluated={props:S1({mergeNames:(t,e,r)=>t.if((0,St._)`${r} !== true && ${e} !== undefined`,()=>{t.if((0,St._)`${e} === true`,()=>t.assign(r,!0),()=>t.assign(r,(0,St._)`${r} || {}`).code((0,St._)`Object.assign(${r}, ${e})`))}),mergeToName:(t,e,r)=>t.if((0,St._)`${r} !== true`,()=>{e===!0?t.assign(r,!0):(t.assign(r,(0,St._)`${r} || {}`),Bx(t,r,e))}),mergeValues:(t,e)=>t===!0?!0:{...t,...e},resultToName:T1}),items:S1({mergeNames:(t,e,r)=>t.if((0,St._)`${r} !== true && ${e} !== undefined`,()=>t.assign(r,(0,St._)`${e} === true ? true : ${r} > ${e} ? ${r} : ${e}`)),mergeToName:(t,e,r)=>t.if((0,St._)`${r} !== true`,()=>t.assign(r,e===!0?!0:(0,St._)`${r} > ${e} ? ${r} : ${e}`)),mergeValues:(t,e)=>t===!0?!0:Math.max(t,e),resultToName:(t,e)=>t.var("items",e)})};function T1(t,e){if(e===!0)return t.var("props",!0);let r=t.var("props",(0,St._)`{}`);return e!==void 0&&Bx(t,r,e),r}Ke.evaluatedPropsToName=T1;function Bx(t,e,r){Object.keys(r).forEach(n=>t.assign((0,St._)`${e}${(0,St.getProperty)(n)}`,!0))}Ke.setEvaluated=Bx;var w1={};function eZ(t,e){return t.scopeValue("func",{ref:e,code:w1[e.code]||(w1[e.code]=new V3._Code(e.code))})}Ke.useFunc=eZ;var Hx;(function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"})(Hx||(Ke.Type=Hx={}));function tZ(t,e,r){if(t instanceof St.Name){let n=e===Hx.Num;return r?n?(0,St._)`"[" + ${t} + "]"`:(0,St._)`"['" + ${t} + "']"`:n?(0,St._)`"/" + ${t}`:(0,St._)`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,St.getProperty)(t).toString():"/"+Zx(t)}Ke.getErrorPath=tZ;function I1(t,e,r=t.opts.strictSchema){if(r){if(e=`strict mode: ${e}`,r===!0)throw new Error(e);t.self.logger.warn(e)}}Ke.checkStrictMode=I1});var Zi=T(Vx=>{"use strict";Object.defineProperty(Vx,"__esModule",{value:!0});var kr=Le(),rZ={data:new kr.Name("data"),valCxt:new kr.Name("valCxt"),instancePath:new kr.Name("instancePath"),parentData:new kr.Name("parentData"),parentDataProperty:new kr.Name("parentDataProperty"),rootData:new kr.Name("rootData"),dynamicAnchors:new kr.Name("dynamicAnchors"),vErrors:new kr.Name("vErrors"),errors:new kr.Name("errors"),this:new kr.Name("this"),self:new kr.Name("self"),scope:new kr.Name("scope"),json:new kr.Name("json"),jsonPos:new kr.Name("jsonPos"),jsonLen:new kr.Name("jsonLen"),jsonPart:new kr.Name("jsonPart")};Vx.default=rZ});var xl=T($r=>{"use strict";Object.defineProperty($r,"__esModule",{value:!0});$r.extendErrors=$r.resetErrorsCount=$r.reportExtraError=$r.reportError=$r.keyword$DataError=$r.keywordError=void 0;var nt=Le(),Qm=rt(),Ur=Zi();$r.keywordError={message:({keyword:t})=>(0,nt.str)`must pass "${t}" keyword validation`};$r.keyword$DataError={message:({keyword:t,schemaType:e})=>e?(0,nt.str)`"${t}" keyword must be ${e} ($data)`:(0,nt.str)`"${t}" keyword is invalid ($data)`};function nZ(t,e=$r.keywordError,r,n){let{it:i}=t,{gen:s,compositeRule:o,allErrors:a}=i,c=P1(t,e,r);n??(o||a)?R1(s,c):O1(i,(0,nt._)`[${c}]`)}$r.reportError=nZ;function iZ(t,e=$r.keywordError,r){let{it:n}=t,{gen:i,compositeRule:s,allErrors:o}=n,a=P1(t,e,r);R1(i,a),s||o||O1(n,Ur.default.vErrors)}$r.reportExtraError=iZ;function sZ(t,e){t.assign(Ur.default.errors,e),t.if((0,nt._)`${Ur.default.vErrors} !== null`,()=>t.if(e,()=>t.assign((0,nt._)`${Ur.default.vErrors}.length`,e),()=>t.assign(Ur.default.vErrors,null)))}$r.resetErrorsCount=sZ;function oZ({gen:t,keyword:e,schemaValue:r,data:n,errsCount:i,it:s}){if(i===void 0)throw new Error("ajv implementation error");let o=t.name("err");t.forRange("i",i,Ur.default.errors,a=>{t.const(o,(0,nt._)`${Ur.default.vErrors}[${a}]`),t.if((0,nt._)`${o}.instancePath === undefined`,()=>t.assign((0,nt._)`${o}.instancePath`,(0,nt.strConcat)(Ur.default.instancePath,s.errorPath))),t.assign((0,nt._)`${o}.schemaPath`,(0,nt.str)`${s.errSchemaPath}/${e}`),s.opts.verbose&&(t.assign((0,nt._)`${o}.schema`,r),t.assign((0,nt._)`${o}.data`,n))})}$r.extendErrors=oZ;function R1(t,e){let r=t.const("err",e);t.if((0,nt._)`${Ur.default.vErrors} === null`,()=>t.assign(Ur.default.vErrors,(0,nt._)`[${r}]`),(0,nt._)`${Ur.default.vErrors}.push(${r})`),t.code((0,nt._)`${Ur.default.errors}++`)}function O1(t,e){let{gen:r,validateName:n,schemaEnv:i}=t;i.$async?r.throw((0,nt._)`new ${t.ValidationError}(${e})`):(r.assign((0,nt._)`${n}.errors`,e),r.return(!1))}var lo={keyword:new nt.Name("keyword"),schemaPath:new nt.Name("schemaPath"),params:new nt.Name("params"),propertyName:new nt.Name("propertyName"),message:new nt.Name("message"),schema:new nt.Name("schema"),parentSchema:new nt.Name("parentSchema")};function P1(t,e,r){let{createErrors:n}=t.it;return n===!1?(0,nt._)`{}`:aZ(t,e,r)}function aZ(t,e,r={}){let{gen:n,it:i}=t,s=[cZ(i,r),uZ(t,r)];return lZ(t,e,s),n.object(...s)}function cZ({errorPath:t},{instancePath:e}){let r=e?(0,nt.str)`${t}${(0,Qm.getErrorPath)(e,Qm.Type.Str)}`:t;return[Ur.default.instancePath,(0,nt.strConcat)(Ur.default.instancePath,r)]}function uZ({keyword:t,it:{errSchemaPath:e}},{schemaPath:r,parentSchema:n}){let i=n?e:(0,nt.str)`${e}/${t}`;return r&&(i=(0,nt.str)`${i}${(0,Qm.getErrorPath)(r,Qm.Type.Str)}`),[lo.schemaPath,i]}function lZ(t,{params:e,message:r},n){let{keyword:i,data:s,schemaValue:o,it:a}=t,{opts:c,propertyName:u,topSchemaRef:l,schemaPath:d}=a;n.push([lo.keyword,i],[lo.params,typeof e=="function"?e(t):e||(0,nt._)`{}`]),c.messages&&n.push([lo.message,typeof r=="function"?r(t):r]),c.verbose&&n.push([lo.schema,o],[lo.parentSchema,(0,nt._)`${l}${d}`],[Ur.default.data,s]),u&&n.push([lo.propertyName,u])}});var A1=T(Ia=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});Ia.boolOrEmptySchema=Ia.topBoolOrEmptySchema=void 0;var dZ=xl(),pZ=Le(),mZ=Zi(),fZ={message:"boolean schema is false"};function hZ(t){let{gen:e,schema:r,validateName:n}=t;r===!1?C1(t,!1):typeof r=="object"&&r.$async===!0?e.return(mZ.default.data):(e.assign((0,pZ._)`${n}.errors`,null),e.return(!0))}Ia.topBoolOrEmptySchema=hZ;function gZ(t,e){let{gen:r,schema:n}=t;n===!1?(r.var(e,!1),C1(t)):r.var(e,!0)}Ia.boolOrEmptySchema=gZ;function C1(t,e){let{gen:r,data:n}=t,i={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,dZ.reportError)(i,fZ,void 0,e)}});var Gx=T(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});Ra.getRules=Ra.isJSONType=void 0;var vZ=["string","number","integer","boolean","null","object","array"],yZ=new Set(vZ);function _Z(t){return typeof t=="string"&&yZ.has(t)}Ra.isJSONType=_Z;function bZ(){let t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...t,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}}Ra.getRules=bZ});var Wx=T(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});ks.shouldUseRule=ks.shouldUseGroup=ks.schemaHasRulesForType=void 0;function xZ({schema:t,self:e},r){let n=e.RULES.types[r];return n&&n!==!0&&N1(t,n)}ks.schemaHasRulesForType=xZ;function N1(t,e){return e.rules.some(r=>M1(t,r))}ks.shouldUseGroup=N1;function M1(t,e){var r;return t[e.keyword]!==void 0||((r=e.definition.implements)===null||r===void 0?void 0:r.some(n=>t[n]!==void 0))}ks.shouldUseRule=M1});var Sl=T(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.reportTypeError=Tr.checkDataTypes=Tr.checkDataType=Tr.coerceAndCheckDataType=Tr.getJSONTypes=Tr.getSchemaTypes=Tr.DataType=void 0;var SZ=Gx(),wZ=Wx(),EZ=xl(),je=Le(),D1=rt(),Oa;(function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"})(Oa||(Tr.DataType=Oa={}));function kZ(t){let e=j1(t.type);if(e.includes("null")){if(t.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!e.length&&t.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');t.nullable===!0&&e.push("null")}return e}Tr.getSchemaTypes=kZ;function j1(t){let e=Array.isArray(t)?t:t?[t]:[];if(e.every(SZ.isJSONType))return e;throw new Error("type must be JSONType or JSONType[]: "+e.join(","))}Tr.getJSONTypes=j1;function $Z(t,e){let{gen:r,data:n,opts:i}=t,s=TZ(e,i.coerceTypes),o=e.length>0&&!(s.length===0&&e.length===1&&(0,wZ.schemaHasRulesForType)(t,e[0]));if(o){let a=Jx(e,n,i.strictNumbers,Oa.Wrong);r.if(a,()=>{s.length?IZ(t,e,s):Xx(t)})}return o}Tr.coerceAndCheckDataType=$Z;var z1=new Set(["string","number","integer","boolean","null"]);function TZ(t,e){return e?t.filter(r=>z1.has(r)||e==="array"&&r==="array"):[]}function IZ(t,e,r){let{gen:n,data:i,opts:s}=t,o=n.let("dataType",(0,je._)`typeof ${i}`),a=n.let("coerced",(0,je._)`undefined`);s.coerceTypes==="array"&&n.if((0,je._)`${o} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,je._)`${i}[0]`).assign(o,(0,je._)`typeof ${i}`).if(Jx(e,i,s.strictNumbers),()=>n.assign(a,i))),n.if((0,je._)`${a} !== undefined`);for(let u of r)(z1.has(u)||u==="array"&&s.coerceTypes==="array")&&c(u);n.else(),Xx(t),n.endIf(),n.if((0,je._)`${a} !== undefined`,()=>{n.assign(i,a),RZ(t,a)});function c(u){switch(u){case"string":n.elseIf((0,je._)`${o} == "number" || ${o} == "boolean"`).assign(a,(0,je._)`"" + ${i}`).elseIf((0,je._)`${i} === null`).assign(a,(0,je._)`""`);return;case"number":n.elseIf((0,je._)`${o} == "boolean" || ${i} === null + || (${o} == "string" && ${i} && ${i} == +${i})`).assign(a,(0,je._)`+${i}`);return;case"integer":n.elseIf((0,je._)`${o} === "boolean" || ${i} === null + || (${o} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(a,(0,je._)`+${i}`);return;case"boolean":n.elseIf((0,je._)`${i} === "false" || ${i} === 0 || ${i} === null`).assign(a,!1).elseIf((0,je._)`${i} === "true" || ${i} === 1`).assign(a,!0);return;case"null":n.elseIf((0,je._)`${i} === "" || ${i} === 0 || ${i} === false`),n.assign(a,null);return;case"array":n.elseIf((0,je._)`${o} === "string" || ${o} === "number" + || ${o} === "boolean" || ${i} === null`).assign(a,(0,je._)`[${i}]`)}}}function RZ({gen:t,parentData:e,parentDataProperty:r},n){t.if((0,je._)`${e} !== undefined`,()=>t.assign((0,je._)`${e}[${r}]`,n))}function Kx(t,e,r,n=Oa.Correct){let i=n===Oa.Correct?je.operators.EQ:je.operators.NEQ,s;switch(t){case"null":return(0,je._)`${e} ${i} null`;case"array":s=(0,je._)`Array.isArray(${e})`;break;case"object":s=(0,je._)`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":s=o((0,je._)`!(${e} % 1) && !isNaN(${e})`);break;case"number":s=o();break;default:return(0,je._)`typeof ${e} ${i} ${t}`}return n===Oa.Correct?s:(0,je.not)(s);function o(a=je.nil){return(0,je.and)((0,je._)`typeof ${e} == "number"`,a,r?(0,je._)`isFinite(${e})`:je.nil)}}Tr.checkDataType=Kx;function Jx(t,e,r,n){if(t.length===1)return Kx(t[0],e,r,n);let i,s=(0,D1.toHash)(t);if(s.array&&s.object){let o=(0,je._)`typeof ${e} != "object"`;i=s.null?o:(0,je._)`!${e} || ${o}`,delete s.null,delete s.array,delete s.object}else i=je.nil;s.number&&delete s.integer;for(let o in s)i=(0,je.and)(i,Kx(o,e,r,n));return i}Tr.checkDataTypes=Jx;var OZ={message:({schema:t})=>`must be ${t}`,params:({schema:t,schemaValue:e})=>typeof t=="string"?(0,je._)`{type: ${t}}`:(0,je._)`{type: ${e}}`};function Xx(t){let e=PZ(t);(0,EZ.reportError)(e,OZ)}Tr.reportTypeError=Xx;function PZ(t){let{gen:e,data:r,schema:n}=t,i=(0,D1.schemaRefOrVal)(t,n,"type");return{gen:e,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:t}}});var U1=T(ef=>{"use strict";Object.defineProperty(ef,"__esModule",{value:!0});ef.assignDefaults=void 0;var Pa=Le(),CZ=rt();function AZ(t,e){let{properties:r,items:n}=t.schema;if(e==="object"&&r)for(let i in r)L1(t,i,r[i].default);else e==="array"&&Array.isArray(n)&&n.forEach((i,s)=>L1(t,s,i.default))}ef.assignDefaults=AZ;function L1(t,e,r){let{gen:n,compositeRule:i,data:s,opts:o}=t;if(r===void 0)return;let a=(0,Pa._)`${s}${(0,Pa.getProperty)(e)}`;if(i){(0,CZ.checkStrictMode)(t,`default is ignored for: ${a}`);return}let c=(0,Pa._)`${a} === undefined`;o.useDefaults==="empty"&&(c=(0,Pa._)`${c} || ${a} === null || ${a} === ""`),n.if(c,(0,Pa._)`${a} = ${(0,Pa.stringify)(r)}`)}});var Rn=T(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});ht.validateUnion=ht.validateArray=ht.usePattern=ht.callValidateCode=ht.schemaProperties=ht.allSchemaProperties=ht.noPropertyInData=ht.propertyInData=ht.isOwnProperty=ht.hasPropFunc=ht.reportMissingProp=ht.checkMissingProp=ht.checkReportMissingProp=void 0;var Pt=Le(),Yx=rt(),$s=Zi(),NZ=rt();function MZ(t,e){let{gen:r,data:n,it:i}=t;r.if(eS(r,n,e,i.opts.ownProperties),()=>{t.setParams({missingProperty:(0,Pt._)`${e}`},!0),t.error()})}ht.checkReportMissingProp=MZ;function DZ({gen:t,data:e,it:{opts:r}},n,i){return(0,Pt.or)(...n.map(s=>(0,Pt.and)(eS(t,e,s,r.ownProperties),(0,Pt._)`${i} = ${s}`)))}ht.checkMissingProp=DZ;function jZ(t,e){t.setParams({missingProperty:e},!0),t.error()}ht.reportMissingProp=jZ;function q1(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Pt._)`Object.prototype.hasOwnProperty`})}ht.hasPropFunc=q1;function Qx(t,e,r){return(0,Pt._)`${q1(t)}.call(${e}, ${r})`}ht.isOwnProperty=Qx;function zZ(t,e,r,n){let i=(0,Pt._)`${e}${(0,Pt.getProperty)(r)} !== undefined`;return n?(0,Pt._)`${i} && ${Qx(t,e,r)}`:i}ht.propertyInData=zZ;function eS(t,e,r,n){let i=(0,Pt._)`${e}${(0,Pt.getProperty)(r)} === undefined`;return n?(0,Pt.or)(i,(0,Pt.not)(Qx(t,e,r))):i}ht.noPropertyInData=eS;function F1(t){return t?Object.keys(t).filter(e=>e!=="__proto__"):[]}ht.allSchemaProperties=F1;function LZ(t,e){return F1(e).filter(r=>!(0,Yx.alwaysValidSchema)(t,e[r]))}ht.schemaProperties=LZ;function UZ({schemaCode:t,data:e,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:s},it:o},a,c,u){let l=u?(0,Pt._)`${t}, ${e}, ${n}${i}`:e,d=[[$s.default.instancePath,(0,Pt.strConcat)($s.default.instancePath,s)],[$s.default.parentData,o.parentData],[$s.default.parentDataProperty,o.parentDataProperty],[$s.default.rootData,$s.default.rootData]];o.opts.dynamicRef&&d.push([$s.default.dynamicAnchors,$s.default.dynamicAnchors]);let p=(0,Pt._)`${l}, ${r.object(...d)}`;return c!==Pt.nil?(0,Pt._)`${a}.call(${c}, ${p})`:(0,Pt._)`${a}(${p})`}ht.callValidateCode=UZ;var qZ=(0,Pt._)`new RegExp`;function FZ({gen:t,it:{opts:e}},r){let n=e.unicodeRegExp?"u":"",{regExp:i}=e.code,s=i(r,n);return t.scopeValue("pattern",{key:s.toString(),ref:s,code:(0,Pt._)`${i.code==="new RegExp"?qZ:(0,NZ.useFunc)(t,i)}(${r}, ${n})`})}ht.usePattern=FZ;function HZ(t){let{gen:e,data:r,keyword:n,it:i}=t,s=e.name("valid");if(i.allErrors){let a=e.let("valid",!0);return o(()=>e.assign(a,!1)),a}return e.var(s,!0),o(()=>e.break()),s;function o(a){let c=e.const("len",(0,Pt._)`${r}.length`);e.forRange("i",0,c,u=>{t.subschema({keyword:n,dataProp:u,dataPropType:Yx.Type.Num},s),e.if((0,Pt.not)(s),a)})}}ht.validateArray=HZ;function ZZ(t){let{gen:e,schema:r,keyword:n,it:i}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(c=>(0,Yx.alwaysValidSchema)(i,c))&&!i.opts.unevaluated)return;let o=e.let("valid",!1),a=e.name("_valid");e.block(()=>r.forEach((c,u)=>{let l=t.subschema({keyword:n,schemaProp:u,compositeRule:!0},a);e.assign(o,(0,Pt._)`${o} || ${a}`),t.mergeValidEvaluated(l,a)||e.if((0,Pt.not)(o))})),t.result(o,()=>t.reset(),()=>t.error(!0))}ht.validateUnion=ZZ});var B1=T(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.validateKeywordUsage=li.validSchemaType=li.funcKeywordCode=li.macroKeywordCode=void 0;var qr=Le(),po=Zi(),BZ=Rn(),VZ=xl();function GZ(t,e){let{gen:r,keyword:n,schema:i,parentSchema:s,it:o}=t,a=e.macro.call(o.self,i,s,o),c=Z1(r,n,a);o.opts.validateSchema!==!1&&o.self.validateSchema(a,!0);let u=r.name("valid");t.subschema({schema:a,schemaPath:qr.nil,errSchemaPath:`${o.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},u),t.pass(u,()=>t.error(!0))}li.macroKeywordCode=GZ;function WZ(t,e){var r;let{gen:n,keyword:i,schema:s,parentSchema:o,$data:a,it:c}=t;JZ(c,e);let u=!a&&e.compile?e.compile.call(c.self,s,o,c):e.validate,l=Z1(n,i,u),d=n.let("valid");t.block$data(d,p),t.ok((r=e.valid)!==null&&r!==void 0?r:d);function p(){if(e.errors===!1)g(),e.modifying&&H1(t),h(()=>t.error());else{let v=e.async?m():f();e.modifying&&H1(t),h(()=>KZ(t,v))}}function m(){let v=n.let("ruleErrs",null);return n.try(()=>g((0,qr._)`await `),x=>n.assign(d,!1).if((0,qr._)`${x} instanceof ${c.ValidationError}`,()=>n.assign(v,(0,qr._)`${x}.errors`),()=>n.throw(x))),v}function f(){let v=(0,qr._)`${l}.errors`;return n.assign(v,null),g(qr.nil),v}function g(v=e.async?(0,qr._)`await `:qr.nil){let x=c.opts.passContext?po.default.this:po.default.self,b=!("compile"in e&&!a||e.schema===!1);n.assign(d,(0,qr._)`${v}${(0,BZ.callValidateCode)(t,l,x,b)}`,e.modifying)}function h(v){var x;n.if((0,qr.not)((x=e.valid)!==null&&x!==void 0?x:d),v)}}li.funcKeywordCode=WZ;function H1(t){let{gen:e,data:r,it:n}=t;e.if(n.parentData,()=>e.assign(r,(0,qr._)`${n.parentData}[${n.parentDataProperty}]`))}function KZ(t,e){let{gen:r}=t;r.if((0,qr._)`Array.isArray(${e})`,()=>{r.assign(po.default.vErrors,(0,qr._)`${po.default.vErrors} === null ? ${e} : ${po.default.vErrors}.concat(${e})`).assign(po.default.errors,(0,qr._)`${po.default.vErrors}.length`),(0,VZ.extendErrors)(t)},()=>t.error())}function JZ({schemaEnv:t},e){if(e.async&&!t.$async)throw new Error("async keyword in sync schema")}function Z1(t,e,r){if(r===void 0)throw new Error(`keyword "${e}" failed to compile`);return t.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,qr.stringify)(r)})}function XZ(t,e,r=!1){return!e.length||e.some(n=>n==="array"?Array.isArray(t):n==="object"?t&&typeof t=="object"&&!Array.isArray(t):typeof t==n||r&&typeof t>"u")}li.validSchemaType=XZ;function YZ({schema:t,opts:e,self:r,errSchemaPath:n},i,s){if(Array.isArray(i.keyword)?!i.keyword.includes(s):i.keyword!==s)throw new Error("ajv implementation error");let o=i.dependencies;if(o?.some(a=>!Object.prototype.hasOwnProperty.call(t,a)))throw new Error(`parent schema must have dependencies of ${s}: ${o.join(",")}`);if(i.validateSchema&&!i.validateSchema(t[s])){let c=`keyword "${s}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(e.validateSchema==="log")r.logger.error(c);else throw new Error(c)}}li.validateKeywordUsage=YZ});var G1=T(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});Ts.extendSubschemaMode=Ts.extendSubschemaData=Ts.getSubschema=void 0;var di=Le(),V1=rt();function QZ(t,{keyword:e,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:s,topSchemaRef:o}){if(e!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(e!==void 0){let a=t.schema[e];return r===void 0?{schema:a,schemaPath:(0,di._)`${t.schemaPath}${(0,di.getProperty)(e)}`,errSchemaPath:`${t.errSchemaPath}/${e}`}:{schema:a[r],schemaPath:(0,di._)`${t.schemaPath}${(0,di.getProperty)(e)}${(0,di.getProperty)(r)}`,errSchemaPath:`${t.errSchemaPath}/${e}/${(0,V1.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||s===void 0||o===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:o,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')}Ts.getSubschema=QZ;function eB(t,e,{dataProp:r,dataPropType:n,data:i,dataTypes:s,propertyName:o}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:a}=e;if(r!==void 0){let{errorPath:u,dataPathArr:l,opts:d}=e,p=a.let("data",(0,di._)`${e.data}${(0,di.getProperty)(r)}`,!0);c(p),t.errorPath=(0,di.str)`${u}${(0,V1.getErrorPath)(r,n,d.jsPropertySyntax)}`,t.parentDataProperty=(0,di._)`${r}`,t.dataPathArr=[...l,t.parentDataProperty]}if(i!==void 0){let u=i instanceof di.Name?i:a.let("data",i,!0);c(u),o!==void 0&&(t.propertyName=o)}s&&(t.dataTypes=s);function c(u){t.data=u,t.dataLevel=e.dataLevel+1,t.dataTypes=[],e.definedProperties=new Set,t.parentData=e.data,t.dataNames=[...e.dataNames,u]}}Ts.extendSubschemaData=eB;function tB(t,{jtdDiscriminator:e,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:s}){n!==void 0&&(t.compositeRule=n),i!==void 0&&(t.createErrors=i),s!==void 0&&(t.allErrors=s),t.jtdDiscriminator=e,t.jtdMetadata=r}Ts.extendSubschemaMode=tB});var tS=T((wke,W1)=>{"use strict";W1.exports=function t(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var n,i,s;if(Array.isArray(e)){if(n=e.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!t(e[i],r[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(s=Object.keys(e),n=s.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,s[i]))return!1;for(i=n;i--!==0;){var o=s[i];if(!t(e[o],r[o]))return!1}return!0}return e!==e&&r!==r}});var J1=T((Eke,K1)=>{"use strict";var Is=K1.exports=function(t,e,r){typeof e=="function"&&(r=e,e={}),r=e.cb||r;var n=typeof r=="function"?r:r.pre||function(){},i=r.post||function(){};tf(e,n,i,t,"",t)};Is.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Is.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Is.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Is.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function tf(t,e,r,n,i,s,o,a,c,u){if(n&&typeof n=="object"&&!Array.isArray(n)){e(n,i,s,o,a,c,u);for(var l in n){var d=n[l];if(Array.isArray(d)){if(l in Is.arrayKeywords)for(var p=0;p{"use strict";Object.defineProperty(Yr,"__esModule",{value:!0});Yr.getSchemaRefs=Yr.resolveUrl=Yr.normalizeId=Yr._getFullPath=Yr.getFullPath=Yr.inlineRef=void 0;var nB=rt(),iB=tS(),sB=J1(),oB=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function aB(t,e=!0){return typeof t=="boolean"?!0:e===!0?!rS(t):e?X1(t)<=e:!1}Yr.inlineRef=aB;var cB=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function rS(t){for(let e in t){if(cB.has(e))return!0;let r=t[e];if(Array.isArray(r)&&r.some(rS)||typeof r=="object"&&rS(r))return!0}return!1}function X1(t){let e=0;for(let r in t){if(r==="$ref")return 1/0;if(e++,!oB.has(r)&&(typeof t[r]=="object"&&(0,nB.eachItem)(t[r],n=>e+=X1(n)),e===1/0))return 1/0}return e}function Y1(t,e="",r){r!==!1&&(e=Ca(e));let n=t.parse(e);return Q1(t,n)}Yr.getFullPath=Y1;function Q1(t,e){return t.serialize(e).split("#")[0]+"#"}Yr._getFullPath=Q1;var uB=/#\/?$/;function Ca(t){return t?t.replace(uB,""):""}Yr.normalizeId=Ca;function lB(t,e,r){return r=Ca(r),t.resolve(e,r)}Yr.resolveUrl=lB;var dB=/^[a-z_][-a-z0-9._]*$/i;function pB(t,e){if(typeof t=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=Ca(t[r]||e),s={"":i},o=Y1(n,i,!1),a={},c=new Set;return sB(t,{allKeys:!0},(d,p,m,f)=>{if(f===void 0)return;let g=o+p,h=s[f];typeof d[r]=="string"&&(h=v.call(this,d[r])),x.call(this,d.$anchor),x.call(this,d.$dynamicAnchor),s[p]=h;function v(b){let _=this.opts.uriResolver.resolve;if(b=Ca(h?_(h,b):b),c.has(b))throw l(b);c.add(b);let S=this.refs[b];return typeof S=="string"&&(S=this.refs[S]),typeof S=="object"?u(d,S.schema,b):b!==Ca(g)&&(b[0]==="#"?(u(d,a[b],b),a[b]=d):this.refs[b]=g),b}function x(b){if(typeof b=="string"){if(!dB.test(b))throw new Error(`invalid anchor "${b}"`);v.call(this,`#${b}`)}}}),a;function u(d,p,m){if(p!==void 0&&!iB(d,p))throw l(m)}function l(d){return new Error(`reference "${d}" resolves to more than one schema`)}}Yr.getSchemaRefs=pB});var $l=T(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});Rs.getData=Rs.KeywordCxt=Rs.validateFunctionCode=void 0;var iO=A1(),eO=Sl(),iS=Wx(),rf=Sl(),mB=U1(),kl=B1(),nS=G1(),fe=Le(),Re=Zi(),fB=wl(),Bi=rt(),El=xl();function hB(t){if(aO(t)&&(cO(t),oO(t))){yB(t);return}sO(t,()=>(0,iO.topBoolOrEmptySchema)(t))}Rs.validateFunctionCode=hB;function sO({gen:t,validateName:e,schema:r,schemaEnv:n,opts:i},s){i.code.es5?t.func(e,(0,fe._)`${Re.default.data}, ${Re.default.valCxt}`,n.$async,()=>{t.code((0,fe._)`"use strict"; ${tO(r,i)}`),vB(t,i),t.code(s)}):t.func(e,(0,fe._)`${Re.default.data}, ${gB(i)}`,n.$async,()=>t.code(tO(r,i)).code(s))}function gB(t){return(0,fe._)`{${Re.default.instancePath}="", ${Re.default.parentData}, ${Re.default.parentDataProperty}, ${Re.default.rootData}=${Re.default.data}${t.dynamicRef?(0,fe._)`, ${Re.default.dynamicAnchors}={}`:fe.nil}}={}`}function vB(t,e){t.if(Re.default.valCxt,()=>{t.var(Re.default.instancePath,(0,fe._)`${Re.default.valCxt}.${Re.default.instancePath}`),t.var(Re.default.parentData,(0,fe._)`${Re.default.valCxt}.${Re.default.parentData}`),t.var(Re.default.parentDataProperty,(0,fe._)`${Re.default.valCxt}.${Re.default.parentDataProperty}`),t.var(Re.default.rootData,(0,fe._)`${Re.default.valCxt}.${Re.default.rootData}`),e.dynamicRef&&t.var(Re.default.dynamicAnchors,(0,fe._)`${Re.default.valCxt}.${Re.default.dynamicAnchors}`)},()=>{t.var(Re.default.instancePath,(0,fe._)`""`),t.var(Re.default.parentData,(0,fe._)`undefined`),t.var(Re.default.parentDataProperty,(0,fe._)`undefined`),t.var(Re.default.rootData,Re.default.data),e.dynamicRef&&t.var(Re.default.dynamicAnchors,(0,fe._)`{}`)})}function yB(t){let{schema:e,opts:r,gen:n}=t;sO(t,()=>{r.$comment&&e.$comment&&lO(t),wB(t),n.let(Re.default.vErrors,null),n.let(Re.default.errors,0),r.unevaluated&&_B(t),uO(t),$B(t)})}function _B(t){let{gen:e,validateName:r}=t;t.evaluated=e.const("evaluated",(0,fe._)`${r}.evaluated`),e.if((0,fe._)`${t.evaluated}.dynamicProps`,()=>e.assign((0,fe._)`${t.evaluated}.props`,(0,fe._)`undefined`)),e.if((0,fe._)`${t.evaluated}.dynamicItems`,()=>e.assign((0,fe._)`${t.evaluated}.items`,(0,fe._)`undefined`))}function tO(t,e){let r=typeof t=="object"&&t[e.schemaId];return r&&(e.code.source||e.code.process)?(0,fe._)`/*# sourceURL=${r} */`:fe.nil}function bB(t,e){if(aO(t)&&(cO(t),oO(t))){xB(t,e);return}(0,iO.boolOrEmptySchema)(t,e)}function oO({schema:t,self:e}){if(typeof t=="boolean")return!t;for(let r in t)if(e.RULES.all[r])return!0;return!1}function aO(t){return typeof t.schema!="boolean"}function xB(t,e){let{schema:r,gen:n,opts:i}=t;i.$comment&&r.$comment&&lO(t),EB(t),kB(t);let s=n.const("_errs",Re.default.errors);uO(t,s),n.var(e,(0,fe._)`${s} === ${Re.default.errors}`)}function cO(t){(0,Bi.checkUnknownRules)(t),SB(t)}function uO(t,e){if(t.opts.jtd)return rO(t,[],!1,e);let r=(0,eO.getSchemaTypes)(t.schema),n=(0,eO.coerceAndCheckDataType)(t,r);rO(t,r,!n,e)}function SB(t){let{schema:e,errSchemaPath:r,opts:n,self:i}=t;e.$ref&&n.ignoreKeywordsWithRef&&(0,Bi.schemaHasRulesButRef)(e,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function wB(t){let{schema:e,opts:r}=t;e.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Bi.checkStrictMode)(t,"default is ignored in the schema root")}function EB(t){let e=t.schema[t.opts.schemaId];e&&(t.baseId=(0,fB.resolveUrl)(t.opts.uriResolver,t.baseId,e))}function kB(t){if(t.schema.$async&&!t.schemaEnv.$async)throw new Error("async schema in sync schema")}function lO({gen:t,schemaEnv:e,schema:r,errSchemaPath:n,opts:i}){let s=r.$comment;if(i.$comment===!0)t.code((0,fe._)`${Re.default.self}.logger.log(${s})`);else if(typeof i.$comment=="function"){let o=(0,fe.str)`${n}/$comment`,a=t.scopeValue("root",{ref:e.root});t.code((0,fe._)`${Re.default.self}.opts.$comment(${s}, ${o}, ${a}.schema)`)}}function $B(t){let{gen:e,schemaEnv:r,validateName:n,ValidationError:i,opts:s}=t;r.$async?e.if((0,fe._)`${Re.default.errors} === 0`,()=>e.return(Re.default.data),()=>e.throw((0,fe._)`new ${i}(${Re.default.vErrors})`)):(e.assign((0,fe._)`${n}.errors`,Re.default.vErrors),s.unevaluated&&TB(t),e.return((0,fe._)`${Re.default.errors} === 0`))}function TB({gen:t,evaluated:e,props:r,items:n}){r instanceof fe.Name&&t.assign((0,fe._)`${e}.props`,r),n instanceof fe.Name&&t.assign((0,fe._)`${e}.items`,n)}function rO(t,e,r,n){let{gen:i,schema:s,data:o,allErrors:a,opts:c,self:u}=t,{RULES:l}=u;if(s.$ref&&(c.ignoreKeywordsWithRef||!(0,Bi.schemaHasRulesButRef)(s,l))){i.block(()=>pO(t,"$ref",l.all.$ref.definition));return}c.jtd||IB(t,e),i.block(()=>{for(let p of l.rules)d(p);d(l.post)});function d(p){(0,iS.shouldUseGroup)(s,p)&&(p.type?(i.if((0,rf.checkDataType)(p.type,o,c.strictNumbers)),nO(t,p),e.length===1&&e[0]===p.type&&r&&(i.else(),(0,rf.reportTypeError)(t)),i.endIf()):nO(t,p),a||i.if((0,fe._)`${Re.default.errors} === ${n||0}`))}}function nO(t,e){let{gen:r,schema:n,opts:{useDefaults:i}}=t;i&&(0,mB.assignDefaults)(t,e.type),r.block(()=>{for(let s of e.rules)(0,iS.shouldUseRule)(n,s)&&pO(t,s.keyword,s.definition,e.type)})}function IB(t,e){t.schemaEnv.meta||!t.opts.strictTypes||(RB(t,e),t.opts.allowUnionTypes||OB(t,e),PB(t,t.dataTypes))}function RB(t,e){if(e.length){if(!t.dataTypes.length){t.dataTypes=e;return}e.forEach(r=>{dO(t.dataTypes,r)||sS(t,`type "${r}" not allowed by context "${t.dataTypes.join(",")}"`)}),AB(t,e)}}function OB(t,e){e.length>1&&!(e.length===2&&e.includes("null"))&&sS(t,"use allowUnionTypes to allow union type keyword")}function PB(t,e){let r=t.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,iS.shouldUseRule)(t.schema,i)){let{type:s}=i.definition;s.length&&!s.some(o=>CB(e,o))&&sS(t,`missing type "${s.join(",")}" for keyword "${n}"`)}}}function CB(t,e){return t.includes(e)||e==="number"&&t.includes("integer")}function dO(t,e){return t.includes(e)||e==="integer"&&t.includes("number")}function AB(t,e){let r=[];for(let n of t.dataTypes)dO(e,n)?r.push(n):e.includes("integer")&&n==="number"&&r.push("integer");t.dataTypes=r}function sS(t,e){let r=t.schemaEnv.baseId+t.errSchemaPath;e+=` at "${r}" (strictTypes)`,(0,Bi.checkStrictMode)(t,e,t.opts.strictTypes)}var nf=class{constructor(e,r,n){if((0,kl.validateKeywordUsage)(e,r,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=r.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Bi.schemaRefOrVal)(e,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=r,this.$data)this.schemaCode=e.gen.const("vSchema",mO(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,kl.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=e.gen.const("_errs",Re.default.errors))}result(e,r,n){this.failResult((0,fe.not)(e),r,n)}failResult(e,r,n){this.gen.if(e),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,r){this.failResult((0,fe.not)(e),void 0,r)}fail(e){if(e===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);let{schemaCode:r}=this;this.fail((0,fe._)`${r} !== undefined && (${(0,fe.or)(this.invalid$data(),e)})`)}error(e,r,n){if(r){this.setParams(r),this._error(e,n),this.setParams({});return}this._error(e,n)}_error(e,r){(e?El.reportExtraError:El.reportError)(this,this.def.error,r)}$dataError(){(0,El.reportError)(this,this.def.$dataError||El.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,El.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,r){r?Object.assign(this.params,e):this.params=e}block$data(e,r,n=fe.nil){this.gen.block(()=>{this.check$data(e,n),r()})}check$data(e=fe.nil,r=fe.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:s,def:o}=this;n.if((0,fe.or)((0,fe._)`${i} === undefined`,r)),e!==fe.nil&&n.assign(e,!0),(s.length||o.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==fe.nil&&n.assign(e,!1)),n.else()}invalid$data(){let{gen:e,schemaCode:r,schemaType:n,def:i,it:s}=this;return(0,fe.or)(o(),a());function o(){if(n.length){if(!(r instanceof fe.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return(0,fe._)`${(0,rf.checkDataTypes)(c,r,s.opts.strictNumbers,rf.DataType.Wrong)}`}return fe.nil}function a(){if(i.validateSchema){let c=e.scopeValue("validate$data",{ref:i.validateSchema});return(0,fe._)`!${c}(${r})`}return fe.nil}}subschema(e,r){let n=(0,nS.getSubschema)(this.it,e);(0,nS.extendSubschemaData)(n,this.it,e),(0,nS.extendSubschemaMode)(n,e);let i={...this.it,...n,items:void 0,props:void 0};return bB(i,r),i}mergeEvaluated(e,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&e.props!==void 0&&(n.props=Bi.mergeEvaluated.props(i,e.props,n.props,r)),n.items!==!0&&e.items!==void 0&&(n.items=Bi.mergeEvaluated.items(i,e.items,n.items,r)))}mergeValidEvaluated(e,r){let{it:n,gen:i}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return i.if(r,()=>this.mergeEvaluated(e,fe.Name)),!0}};Rs.KeywordCxt=nf;function pO(t,e,r,n){let i=new nf(t,r,e);"code"in r?r.code(i,n):i.$data&&r.validate?(0,kl.funcKeywordCode)(i,r):"macro"in r?(0,kl.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,kl.funcKeywordCode)(i,r)}var NB=/^\/(?:[^~]|~0|~1)*$/,MB=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function mO(t,{dataLevel:e,dataNames:r,dataPathArr:n}){let i,s;if(t==="")return Re.default.rootData;if(t[0]==="/"){if(!NB.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);i=t,s=Re.default.rootData}else{let u=MB.exec(t);if(!u)throw new Error(`Invalid JSON-pointer: ${t}`);let l=+u[1];if(i=u[2],i==="#"){if(l>=e)throw new Error(c("property/index",l));return n[e-l]}if(l>e)throw new Error(c("data",l));if(s=r[e-l],!i)return s}let o=s,a=i.split("/");for(let u of a)u&&(s=(0,fe._)`${s}${(0,fe.getProperty)((0,Bi.unescapeJsonPointer)(u))}`,o=(0,fe._)`${o} && ${s}`);return o;function c(u,l){return`Cannot access ${u} ${l} levels up, current level is ${e}`}}Rs.getData=mO});var sf=T(aS=>{"use strict";Object.defineProperty(aS,"__esModule",{value:!0});var oS=class extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}};aS.default=oS});var Tl=T(lS=>{"use strict";Object.defineProperty(lS,"__esModule",{value:!0});var cS=wl(),uS=class extends Error{constructor(e,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,cS.resolveUrl)(e,r,n),this.missingSchema=(0,cS.normalizeId)((0,cS.getFullPath)(e,this.missingRef))}};lS.default=uS});var af=T(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.resolveSchema=On.getCompilingSchema=On.resolveRef=On.compileSchema=On.SchemaEnv=void 0;var Gn=Le(),DB=sf(),mo=Zi(),Wn=wl(),fO=rt(),jB=$l(),Aa=class{constructor(e){var r;this.refs={},this.dynamicAnchors={};let n;typeof e.schema=="object"&&(n=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=(r=e.baseId)!==null&&r!==void 0?r:(0,Wn.normalizeId)(n?.[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=n?.$async,this.refs={}}};On.SchemaEnv=Aa;function pS(t){let e=hO.call(this,t);if(e)return e;let r=(0,Wn.getFullPath)(this.opts.uriResolver,t.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:s}=this.opts,o=new Gn.CodeGen(this.scope,{es5:n,lines:i,ownProperties:s}),a;t.$async&&(a=o.scopeValue("Error",{ref:DB.default,code:(0,Gn._)`require("ajv/dist/runtime/validation_error").default`}));let c=o.scopeName("validate");t.validateName=c;let u={gen:o,allErrors:this.opts.allErrors,data:mo.default.data,parentData:mo.default.parentData,parentDataProperty:mo.default.parentDataProperty,dataNames:[mo.default.data],dataPathArr:[Gn.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:o.scopeValue("schema",this.opts.code.source===!0?{ref:t.schema,code:(0,Gn.stringify)(t.schema)}:{ref:t.schema}),validateName:c,ValidationError:a,schema:t.schema,schemaEnv:t,rootId:r,baseId:t.baseId||r,schemaPath:Gn.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Gn._)`""`,opts:this.opts,self:this},l;try{this._compilations.add(t),(0,jB.validateFunctionCode)(u),o.optimize(this.opts.code.optimize);let d=o.toString();l=`${o.scopeRefs(mo.default.scope)}return ${d}`,this.opts.code.process&&(l=this.opts.code.process(l,t));let m=new Function(`${mo.default.self}`,`${mo.default.scope}`,l)(this,this.scope.get());if(this.scope.value(c,{ref:m}),m.errors=null,m.schema=t.schema,m.schemaEnv=t,t.$async&&(m.$async=!0),this.opts.code.source===!0&&(m.source={validateName:c,validateCode:d,scopeValues:o._values}),this.opts.unevaluated){let{props:f,items:g}=u;m.evaluated={props:f instanceof Gn.Name?void 0:f,items:g instanceof Gn.Name?void 0:g,dynamicProps:f instanceof Gn.Name,dynamicItems:g instanceof Gn.Name},m.source&&(m.source.evaluated=(0,Gn.stringify)(m.evaluated))}return t.validate=m,t}catch(d){throw delete t.validate,delete t.validateName,l&&this.logger.error("Error compiling schema, function code:",l),d}finally{this._compilations.delete(t)}}On.compileSchema=pS;function zB(t,e,r){var n;r=(0,Wn.resolveUrl)(this.opts.uriResolver,e,r);let i=t.refs[r];if(i)return i;let s=qB.call(this,t,r);if(s===void 0){let o=(n=t.localRefs)===null||n===void 0?void 0:n[r],{schemaId:a}=this.opts;o&&(s=new Aa({schema:o,schemaId:a,root:t,baseId:e}))}if(s!==void 0)return t.refs[r]=LB.call(this,s)}On.resolveRef=zB;function LB(t){return(0,Wn.inlineRef)(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:pS.call(this,t)}function hO(t){for(let e of this._compilations)if(UB(e,t))return e}On.getCompilingSchema=hO;function UB(t,e){return t.schema===e.schema&&t.root===e.root&&t.baseId===e.baseId}function qB(t,e){let r;for(;typeof(r=this.refs[e])=="string";)e=r;return r||this.schemas[e]||of.call(this,t,e)}function of(t,e){let r=this.opts.uriResolver.parse(e),n=(0,Wn._getFullPath)(this.opts.uriResolver,r),i=(0,Wn.getFullPath)(this.opts.uriResolver,t.baseId,void 0);if(Object.keys(t.schema).length>0&&n===i)return dS.call(this,r,t);let s=(0,Wn.normalizeId)(n),o=this.refs[s]||this.schemas[s];if(typeof o=="string"){let a=of.call(this,t,o);return typeof a?.schema!="object"?void 0:dS.call(this,r,a)}if(typeof o?.schema=="object"){if(o.validate||pS.call(this,o),s===(0,Wn.normalizeId)(e)){let{schema:a}=o,{schemaId:c}=this.opts,u=a[c];return u&&(i=(0,Wn.resolveUrl)(this.opts.uriResolver,i,u)),new Aa({schema:a,schemaId:c,root:t,baseId:i})}return dS.call(this,r,o)}}On.resolveSchema=of;var FB=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function dS(t,{baseId:e,schema:r,root:n}){var i;if(((i=t.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(let a of t.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let c=r[(0,fO.unescapeFragment)(a)];if(c===void 0)return;r=c;let u=typeof r=="object"&&r[this.opts.schemaId];!FB.has(a)&&u&&(e=(0,Wn.resolveUrl)(this.opts.uriResolver,e,u))}let s;if(typeof r!="boolean"&&r.$ref&&!(0,fO.schemaHasRulesButRef)(r,this.RULES)){let a=(0,Wn.resolveUrl)(this.opts.uriResolver,e,r.$ref);s=of.call(this,n,a)}let{schemaId:o}=this.opts;if(s=s||new Aa({schema:r,schemaId:o,root:n,baseId:e}),s.schema!==s.root.schema)return s}});var gO=T((Oke,HB)=>{HB.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var fS=T((Pke,bO)=>{"use strict";var ZB=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),yO=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function mS(t){let e="",r=0,n=0;for(n=0;n=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";e+=t[n];break}for(n+=1;n=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";e+=t[n]}return e}var BB=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function vO(t){return t.length=0,!0}function VB(t,e,r){if(t.length){let n=mS(t);if(n!=="")e.push(n);else return r.error=!0,!1;t.length=0}return!0}function GB(t){let e=0,r={error:!1,address:"",zone:""},n=[],i=[],s=!1,o=!1,a=VB;for(let c=0;c7){r.error=!0;break}c>0&&t[c-1]===":"&&(s=!0),n.push(":");continue}else if(u==="%"){if(!a(i,n,r))break;a=vO}else{i.push(u);continue}}return i.length&&(a===vO?r.zone=i.join(""):o?n.push(i.join("")):n.push(mS(i))),r.address=n.join(""),r}function _O(t){if(WB(t,":")<2)return{host:t,isIPV6:!1};let e=GB(t);if(e.error)return{host:t,isIPV6:!1};{let r=e.address,n=e.address;return e.zone&&(r+="%"+e.zone,n+="%25"+e.zone),{host:r,isIPV6:!0,escapedHost:n}}}function WB(t,e){let r=0;for(let n=0;n{"use strict";var{isUUID:YB}=fS(),QB=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,eV=["http","https","ws","wss","urn","urn:uuid"];function tV(t){return eV.indexOf(t)!==-1}function hS(t){return t.secure===!0?!0:t.secure===!1?!1:t.scheme?t.scheme.length===3&&(t.scheme[0]==="w"||t.scheme[0]==="W")&&(t.scheme[1]==="s"||t.scheme[1]==="S")&&(t.scheme[2]==="s"||t.scheme[2]==="S"):!1}function xO(t){return t.host||(t.error=t.error||"HTTP URIs must have a host."),t}function SO(t){let e=String(t.scheme).toLowerCase()==="https";return(t.port===(e?443:80)||t.port==="")&&(t.port=void 0),t.path||(t.path="/"),t}function rV(t){return t.secure=hS(t),t.resourceName=(t.path||"/")+(t.query?"?"+t.query:""),t.path=void 0,t.query=void 0,t}function nV(t){if((t.port===(hS(t)?443:80)||t.port==="")&&(t.port=void 0),typeof t.secure=="boolean"&&(t.scheme=t.secure?"wss":"ws",t.secure=void 0),t.resourceName){let[e,r]=t.resourceName.split("?");t.path=e&&e!=="/"?e:void 0,t.query=r,t.resourceName=void 0}return t.fragment=void 0,t}function iV(t,e){if(!t.path)return t.error="URN can not be parsed",t;let r=t.path.match(QB);if(r){let n=e.scheme||t.scheme||"urn";t.nid=r[1].toLowerCase(),t.nss=r[2];let i=`${n}:${e.nid||t.nid}`,s=gS(i);t.path=void 0,s&&(t=s.parse(t,e))}else t.error=t.error||"URN can not be parsed.";return t}function sV(t,e){if(t.nid===void 0)throw new Error("URN without nid cannot be serialized");let r=e.scheme||t.scheme||"urn",n=t.nid.toLowerCase(),i=`${r}:${e.nid||n}`,s=gS(i);s&&(t=s.serialize(t,e));let o=t,a=t.nss;return o.path=`${n||e.nid}:${a}`,e.skipEscape=!0,o}function oV(t,e){let r=t;return r.uuid=r.nss,r.nss=void 0,!e.tolerant&&(!r.uuid||!YB(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}function aV(t){let e=t;return e.nss=(t.uuid||"").toLowerCase(),e}var wO={scheme:"http",domainHost:!0,parse:xO,serialize:SO},cV={scheme:"https",domainHost:wO.domainHost,parse:xO,serialize:SO},cf={scheme:"ws",domainHost:!0,parse:rV,serialize:nV},uV={scheme:"wss",domainHost:cf.domainHost,parse:cf.parse,serialize:cf.serialize},lV={scheme:"urn",parse:iV,serialize:sV,skipNormalize:!0},dV={scheme:"urn:uuid",parse:oV,serialize:aV,skipNormalize:!0},uf={http:wO,https:cV,ws:cf,wss:uV,urn:lV,"urn:uuid":dV};Object.setPrototypeOf(uf,null);function gS(t){return t&&(uf[t]||uf[t.toLowerCase()])||void 0}EO.exports={wsIsSecure:hS,SCHEMES:uf,isValidSchemeName:tV,getSchemeHandler:gS}});var IO=T((Ake,df)=>{"use strict";var{normalizeIPv6:pV,removeDotSegments:Il,recomposeAuthority:mV,normalizeComponentEncoding:lf,isIPv4:fV,nonSimpleDomain:hV}=fS(),{SCHEMES:gV,getSchemeHandler:$O}=kO();function vV(t,e){return typeof t=="string"?t=pi(Vi(t,e),e):typeof t=="object"&&(t=Vi(pi(t,e),e)),t}function yV(t,e,r){let n=r?Object.assign({scheme:"null"},r):{scheme:"null"},i=TO(Vi(t,n),Vi(e,n),n,!0);return n.skipEscape=!0,pi(i,n)}function TO(t,e,r,n){let i={};return n||(t=Vi(pi(t,r),r),e=Vi(pi(e,r),r)),r=r||{},!r.tolerant&&e.scheme?(i.scheme=e.scheme,i.userinfo=e.userinfo,i.host=e.host,i.port=e.port,i.path=Il(e.path||""),i.query=e.query):(e.userinfo!==void 0||e.host!==void 0||e.port!==void 0?(i.userinfo=e.userinfo,i.host=e.host,i.port=e.port,i.path=Il(e.path||""),i.query=e.query):(e.path?(e.path[0]==="/"?i.path=Il(e.path):((t.userinfo!==void 0||t.host!==void 0||t.port!==void 0)&&!t.path?i.path="/"+e.path:t.path?i.path=t.path.slice(0,t.path.lastIndexOf("/")+1)+e.path:i.path=e.path,i.path=Il(i.path)),i.query=e.query):(i.path=t.path,e.query!==void 0?i.query=e.query:i.query=t.query),i.userinfo=t.userinfo,i.host=t.host,i.port=t.port),i.scheme=t.scheme),i.fragment=e.fragment,i}function _V(t,e,r){return typeof t=="string"?(t=unescape(t),t=pi(lf(Vi(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=pi(lf(t,!0),{...r,skipEscape:!0})),typeof e=="string"?(e=unescape(e),e=pi(lf(Vi(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=pi(lf(e,!0),{...r,skipEscape:!0})),t.toLowerCase()===e.toLowerCase()}function pi(t,e){let r={host:t.host,scheme:t.scheme,userinfo:t.userinfo,port:t.port,path:t.path,query:t.query,nid:t.nid,nss:t.nss,uuid:t.uuid,fragment:t.fragment,reference:t.reference,resourceName:t.resourceName,secure:t.secure,error:""},n=Object.assign({},e),i=[],s=$O(n.scheme||r.scheme);s&&s.serialize&&s.serialize(r,n),r.path!==void 0&&(n.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),n.reference!=="suffix"&&r.scheme&&i.push(r.scheme,":");let o=mV(r);if(o!==void 0&&(n.reference!=="suffix"&&i.push("//"),i.push(o),r.path&&r.path[0]!=="/"&&i.push("/")),r.path!==void 0){let a=r.path;!n.absolutePath&&(!s||!s.absolutePath)&&(a=Il(a)),o===void 0&&a[0]==="/"&&a[1]==="/"&&(a="/%2F"+a.slice(2)),i.push(a)}return r.query!==void 0&&i.push("?",r.query),r.fragment!==void 0&&i.push("#",r.fragment),i.join("")}var bV=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function Vi(t,e){let r=Object.assign({},e),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},i=!1;r.reference==="suffix"&&(r.scheme?t=r.scheme+":"+t:t="//"+t);let s=t.match(bV);if(s){if(n.scheme=s[1],n.userinfo=s[3],n.host=s[4],n.port=parseInt(s[5],10),n.path=s[6]||"",n.query=s[7],n.fragment=s[8],isNaN(n.port)&&(n.port=s[5]),n.host)if(fV(n.host)===!1){let c=pV(n.host);n.host=c.host.toLowerCase(),i=c.isIPV6}else i=!0;n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&n.query===void 0&&!n.path?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");let o=$O(r.scheme||n.scheme);if(!r.unicodeSupport&&(!o||!o.unicodeSupport)&&n.host&&(r.domainHost||o&&o.domainHost)&&i===!1&&hV(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(a){n.error=n.error||"Host's domain name can not be converted to ASCII: "+a}(!o||o&&!o.skipNormalize)&&(t.indexOf("%")!==-1&&(n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),n.host!==void 0&&(n.host=unescape(n.host))),n.path&&(n.path=escape(unescape(n.path))),n.fragment&&(n.fragment=encodeURI(decodeURIComponent(n.fragment)))),o&&o.parse&&o.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return n}var vS={SCHEMES:gV,normalize:vV,resolve:yV,resolveComponent:TO,equal:_V,serialize:pi,parse:Vi};df.exports=vS;df.exports.default=vS;df.exports.fastUri=vS});var OO=T(yS=>{"use strict";Object.defineProperty(yS,"__esModule",{value:!0});var RO=IO();RO.code='require("ajv/dist/runtime/uri").default';yS.default=RO});var zO=T(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.CodeGen=vr.Name=vr.nil=vr.stringify=vr.str=vr._=vr.KeywordCxt=void 0;var xV=$l();Object.defineProperty(vr,"KeywordCxt",{enumerable:!0,get:function(){return xV.KeywordCxt}});var Na=Le();Object.defineProperty(vr,"_",{enumerable:!0,get:function(){return Na._}});Object.defineProperty(vr,"str",{enumerable:!0,get:function(){return Na.str}});Object.defineProperty(vr,"stringify",{enumerable:!0,get:function(){return Na.stringify}});Object.defineProperty(vr,"nil",{enumerable:!0,get:function(){return Na.nil}});Object.defineProperty(vr,"Name",{enumerable:!0,get:function(){return Na.Name}});Object.defineProperty(vr,"CodeGen",{enumerable:!0,get:function(){return Na.CodeGen}});var SV=sf(),MO=Tl(),wV=Gx(),Rl=af(),EV=Le(),Ol=wl(),pf=Sl(),bS=rt(),PO=gO(),kV=OO(),DO=(t,e)=>new RegExp(t,e);DO.code="new RegExp";var $V=["removeAdditional","useDefaults","coerceTypes"],TV=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),IV={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},RV={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},CO=200;function OV(t){var e,r,n,i,s,o,a,c,u,l,d,p,m,f,g,h,v,x,b,_,S,w,E,$,R;let A=t.strict,N=(e=t.code)===null||e===void 0?void 0:e.optimize,U=N===!0||N===void 0?1:N||0,W=(n=(r=t.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:DO,j=(i=t.uriResolver)!==null&&i!==void 0?i:kV.default;return{strictSchema:(o=(s=t.strictSchema)!==null&&s!==void 0?s:A)!==null&&o!==void 0?o:!0,strictNumbers:(c=(a=t.strictNumbers)!==null&&a!==void 0?a:A)!==null&&c!==void 0?c:!0,strictTypes:(l=(u=t.strictTypes)!==null&&u!==void 0?u:A)!==null&&l!==void 0?l:"log",strictTuples:(p=(d=t.strictTuples)!==null&&d!==void 0?d:A)!==null&&p!==void 0?p:"log",strictRequired:(f=(m=t.strictRequired)!==null&&m!==void 0?m:A)!==null&&f!==void 0?f:!1,code:t.code?{...t.code,optimize:U,regExp:W}:{optimize:U,regExp:W},loopRequired:(g=t.loopRequired)!==null&&g!==void 0?g:CO,loopEnum:(h=t.loopEnum)!==null&&h!==void 0?h:CO,meta:(v=t.meta)!==null&&v!==void 0?v:!0,messages:(x=t.messages)!==null&&x!==void 0?x:!0,inlineRefs:(b=t.inlineRefs)!==null&&b!==void 0?b:!0,schemaId:(_=t.schemaId)!==null&&_!==void 0?_:"$id",addUsedSchema:(S=t.addUsedSchema)!==null&&S!==void 0?S:!0,validateSchema:(w=t.validateSchema)!==null&&w!==void 0?w:!0,validateFormats:(E=t.validateFormats)!==null&&E!==void 0?E:!0,unicodeRegExp:($=t.unicodeRegExp)!==null&&$!==void 0?$:!0,int32range:(R=t.int32range)!==null&&R!==void 0?R:!0,uriResolver:j}}var Pl=class{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...OV(e)};let{es5:r,lines:n}=this.opts.code;this.scope=new EV.ValueScope({scope:{},prefixes:TV,es5:r,lines:n}),this.logger=DV(e.logger);let i=e.validateFormats;e.validateFormats=!1,this.RULES=(0,wV.getRules)(),AO.call(this,IV,e,"NOT SUPPORTED"),AO.call(this,RV,e,"DEPRECATED","warn"),this._metaOpts=NV.call(this),e.formats&&CV.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&AV.call(this,e.keywords),typeof e.meta=="object"&&this.addMetaSchema(e.meta),PV.call(this),e.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:e,meta:r,schemaId:n}=this.opts,i=PO;n==="id"&&(i={...PO},i.id=i.$id,delete i.$id),r&&e&&this.addMetaSchema(i,i[n],!1)}defaultMeta(){let{meta:e,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof e=="object"?e[r]||e:void 0}validate(e,r){let n;if(typeof e=="string"){if(n=this.getSchema(e),!n)throw new Error(`no schema with key or ref "${e}"`)}else n=this.compile(e);let i=n(r);return"$async"in n||(this.errors=n.errors),i}compile(e,r){let n=this._addSchema(e,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(e,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return i.call(this,e,r);async function i(l,d){await s.call(this,l.$schema);let p=this._addSchema(l,d);return p.validate||o.call(this,p)}async function s(l){l&&!this.getSchema(l)&&await i.call(this,{$ref:l},!0)}async function o(l){try{return this._compileSchemaEnv(l)}catch(d){if(!(d instanceof MO.default))throw d;return a.call(this,d),await c.call(this,d.missingSchema),o.call(this,l)}}function a({missingSchema:l,missingRef:d}){if(this.refs[l])throw new Error(`AnySchema ${l} is loaded but ${d} cannot be resolved`)}async function c(l){let d=await u.call(this,l);this.refs[l]||await s.call(this,d.$schema),this.refs[l]||this.addSchema(d,l,r)}async function u(l){let d=this._loading[l];if(d)return d;try{return await(this._loading[l]=n(l))}finally{delete this._loading[l]}}}addSchema(e,r,n,i=this.opts.validateSchema){if(Array.isArray(e)){for(let o of e)this.addSchema(o,void 0,n,i);return this}let s;if(typeof e=="object"){let{schemaId:o}=this.opts;if(s=e[o],s!==void 0&&typeof s!="string")throw new Error(`schema ${o} must be string`)}return r=(0,Ol.normalizeId)(r||s),this._checkUnique(r),this.schemas[r]=this._addSchema(e,n,r,i,!0),this}addMetaSchema(e,r,n=this.opts.validateSchema){return this.addSchema(e,r,!0,n),this}validateSchema(e,r){if(typeof e=="boolean")return!0;let n;if(n=e.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let i=this.validate(n,e);if(!i&&r){let s="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(s);else throw new Error(s)}return i}getSchema(e){let r;for(;typeof(r=NO.call(this,e))=="string";)e=r;if(r===void 0){let{schemaId:n}=this.opts,i=new Rl.SchemaEnv({schema:{},schemaId:n});if(r=Rl.resolveSchema.call(this,i,e),!r)return;this.refs[e]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let r=NO.call(this,e);return typeof r=="object"&&this._cache.delete(r.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{let r=e;this._cache.delete(r);let n=e[this.opts.schemaId];return n&&(n=(0,Ol.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(let r of e)this.addKeyword(r);return this}addKeyword(e,r){let n;if(typeof e=="string")n=e,typeof r=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=n);else if(typeof e=="object"&&r===void 0){if(r=e,n=r.keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(zV.call(this,n,r),!r)return(0,bS.eachItem)(n,s=>_S.call(this,s)),this;UV.call(this,r);let i={...r,type:(0,pf.getJSONTypes)(r.type),schemaType:(0,pf.getJSONTypes)(r.schemaType)};return(0,bS.eachItem)(n,i.type.length===0?s=>_S.call(this,s,i):s=>i.type.forEach(o=>_S.call(this,s,i,o))),this}getKeyword(e){let r=this.RULES.all[e];return typeof r=="object"?r.definition:!!r}removeKeyword(e){let{RULES:r}=this;delete r.keywords[e],delete r.all[e];for(let n of r.rules){let i=n.rules.findIndex(s=>s.keyword===e);i>=0&&n.rules.splice(i,1)}return this}addFormat(e,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[e]=r,this}errorsText(e=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!e||e.length===0?"No errors":e.map(i=>`${n}${i.instancePath} ${i.message}`).reduce((i,s)=>i+r+s)}$dataMetaSchema(e,r){let n=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(let i of r){let s=i.split("/").slice(1),o=e;for(let a of s)o=o[a];for(let a in n){let c=n[a];if(typeof c!="object")continue;let{$data:u}=c.definition,l=o[a];u&&l&&(o[a]=jO(l))}}return e}_removeAllSchemas(e,r){for(let n in e){let i=e[n];(!r||r.test(n))&&(typeof i=="string"?delete e[n]:i&&!i.meta&&(this._cache.delete(i.schema),delete e[n]))}}_addSchema(e,r,n,i=this.opts.validateSchema,s=this.opts.addUsedSchema){let o,{schemaId:a}=this.opts;if(typeof e=="object")o=e[a];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof e!="boolean")throw new Error("schema must be object or boolean")}let c=this._cache.get(e);if(c!==void 0)return c;n=(0,Ol.normalizeId)(o||n);let u=Ol.getSchemaRefs.call(this,e,n);return c=new Rl.SchemaEnv({schema:e,schemaId:a,meta:r,baseId:n,localRefs:u}),this._cache.set(c.schema,c),s&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=c),i&&this.validateSchema(e,!0),c}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):Rl.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){let r=this.opts;this.opts=this._metaOpts;try{Rl.compileSchema.call(this,e)}finally{this.opts=r}}};Pl.ValidationError=SV.default;Pl.MissingRefError=MO.default;vr.default=Pl;function AO(t,e,r,n="error"){for(let i in t){let s=i;s in e&&this.logger[n](`${r}: option ${i}. ${t[s]}`)}}function NO(t){return t=(0,Ol.normalizeId)(t),this.schemas[t]||this.refs[t]}function PV(){let t=this.opts.schemas;if(t)if(Array.isArray(t))this.addSchema(t);else for(let e in t)this.addSchema(t[e],e)}function CV(){for(let t in this.opts.formats){let e=this.opts.formats[t];e&&this.addFormat(t,e)}}function AV(t){if(Array.isArray(t)){this.addVocabulary(t);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let e in t){let r=t[e];r.keyword||(r.keyword=e),this.addKeyword(r)}}function NV(){let t={...this.opts};for(let e of $V)delete t[e];return t}var MV={log(){},warn(){},error(){}};function DV(t){if(t===!1)return MV;if(t===void 0)return console;if(t.log&&t.warn&&t.error)return t;throw new Error("logger must implement log, warn and error methods")}var jV=/^[a-z_$][a-z0-9_$:-]*$/i;function zV(t,e){let{RULES:r}=this;if((0,bS.eachItem)(t,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!jV.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!e&&e.$data&&!("code"in e||"validate"in e))throw new Error('$data keyword must have "code" or "validate" function')}function _S(t,e,r){var n;let i=e?.post;if(r&&i)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:s}=this,o=i?s.post:s.rules.find(({type:c})=>c===r);if(o||(o={type:r,rules:[]},s.rules.push(o)),s.keywords[t]=!0,!e)return;let a={keyword:t,definition:{...e,type:(0,pf.getJSONTypes)(e.type),schemaType:(0,pf.getJSONTypes)(e.schemaType)}};e.before?LV.call(this,o,a,e.before):o.rules.push(a),s.all[t]=a,(n=e.implements)===null||n===void 0||n.forEach(c=>this.addKeyword(c))}function LV(t,e,r){let n=t.rules.findIndex(i=>i.keyword===r);n>=0?t.rules.splice(n,0,e):(t.rules.push(e),this.logger.warn(`rule ${r} is not defined`))}function UV(t){let{metaSchema:e}=t;e!==void 0&&(t.$data&&this.opts.$data&&(e=jO(e)),t.validateSchema=this.compile(e,!0))}var qV={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function jO(t){return{anyOf:[t,qV]}}});var LO=T(xS=>{"use strict";Object.defineProperty(xS,"__esModule",{value:!0});var FV={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};xS.default=FV});var HO=T(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});fo.callRef=fo.getValidate=void 0;var HV=Tl(),UO=Rn(),Qr=Le(),Ma=Zi(),qO=af(),mf=rt(),ZV={keyword:"$ref",schemaType:"string",code(t){let{gen:e,schema:r,it:n}=t,{baseId:i,schemaEnv:s,validateName:o,opts:a,self:c}=n,{root:u}=s;if((r==="#"||r==="#/")&&i===u.baseId)return d();let l=qO.resolveRef.call(c,u,i,r);if(l===void 0)throw new HV.default(n.opts.uriResolver,i,r);if(l instanceof qO.SchemaEnv)return p(l);return m(l);function d(){if(s===u)return ff(t,o,s,s.$async);let f=e.scopeValue("root",{ref:u});return ff(t,(0,Qr._)`${f}.validate`,u,u.$async)}function p(f){let g=FO(t,f);ff(t,g,f,f.$async)}function m(f){let g=e.scopeValue("schema",a.code.source===!0?{ref:f,code:(0,Qr.stringify)(f)}:{ref:f}),h=e.name("valid"),v=t.subschema({schema:f,dataTypes:[],schemaPath:Qr.nil,topSchemaRef:g,errSchemaPath:r},h);t.mergeEvaluated(v),t.ok(h)}}};function FO(t,e){let{gen:r}=t;return e.validate?r.scopeValue("validate",{ref:e.validate}):(0,Qr._)`${r.scopeValue("wrapper",{ref:e})}.validate`}fo.getValidate=FO;function ff(t,e,r,n){let{gen:i,it:s}=t,{allErrors:o,schemaEnv:a,opts:c}=s,u=c.passContext?Ma.default.this:Qr.nil;n?l():d();function l(){if(!a.$async)throw new Error("async schema referenced by sync schema");let f=i.let("valid");i.try(()=>{i.code((0,Qr._)`await ${(0,UO.callValidateCode)(t,e,u)}`),m(e),o||i.assign(f,!0)},g=>{i.if((0,Qr._)`!(${g} instanceof ${s.ValidationError})`,()=>i.throw(g)),p(g),o||i.assign(f,!1)}),t.ok(f)}function d(){t.result((0,UO.callValidateCode)(t,e,u),()=>m(e),()=>p(e))}function p(f){let g=(0,Qr._)`${f}.errors`;i.assign(Ma.default.vErrors,(0,Qr._)`${Ma.default.vErrors} === null ? ${g} : ${Ma.default.vErrors}.concat(${g})`),i.assign(Ma.default.errors,(0,Qr._)`${Ma.default.vErrors}.length`)}function m(f){var g;if(!s.opts.unevaluated)return;let h=(g=r?.validate)===null||g===void 0?void 0:g.evaluated;if(s.props!==!0)if(h&&!h.dynamicProps)h.props!==void 0&&(s.props=mf.mergeEvaluated.props(i,h.props,s.props));else{let v=i.var("props",(0,Qr._)`${f}.evaluated.props`);s.props=mf.mergeEvaluated.props(i,v,s.props,Qr.Name)}if(s.items!==!0)if(h&&!h.dynamicItems)h.items!==void 0&&(s.items=mf.mergeEvaluated.items(i,h.items,s.items));else{let v=i.var("items",(0,Qr._)`${f}.evaluated.items`);s.items=mf.mergeEvaluated.items(i,v,s.items,Qr.Name)}}}fo.callRef=ff;fo.default=ZV});var ZO=T(SS=>{"use strict";Object.defineProperty(SS,"__esModule",{value:!0});var BV=LO(),VV=HO(),GV=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",BV.default,VV.default];SS.default=GV});var BO=T(wS=>{"use strict";Object.defineProperty(wS,"__esModule",{value:!0});var hf=Le(),Os=hf.operators,gf={maximum:{okStr:"<=",ok:Os.LTE,fail:Os.GT},minimum:{okStr:">=",ok:Os.GTE,fail:Os.LT},exclusiveMaximum:{okStr:"<",ok:Os.LT,fail:Os.GTE},exclusiveMinimum:{okStr:">",ok:Os.GT,fail:Os.LTE}},WV={message:({keyword:t,schemaCode:e})=>(0,hf.str)`must be ${gf[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>(0,hf._)`{comparison: ${gf[t].okStr}, limit: ${e}}`},KV={keyword:Object.keys(gf),type:"number",schemaType:"number",$data:!0,error:WV,code(t){let{keyword:e,data:r,schemaCode:n}=t;t.fail$data((0,hf._)`${r} ${gf[e].fail} ${n} || isNaN(${r})`)}};wS.default=KV});var VO=T(ES=>{"use strict";Object.defineProperty(ES,"__esModule",{value:!0});var Cl=Le(),JV={message:({schemaCode:t})=>(0,Cl.str)`must be multiple of ${t}`,params:({schemaCode:t})=>(0,Cl._)`{multipleOf: ${t}}`},XV={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:JV,code(t){let{gen:e,data:r,schemaCode:n,it:i}=t,s=i.opts.multipleOfPrecision,o=e.let("res"),a=s?(0,Cl._)`Math.abs(Math.round(${o}) - ${o}) > 1e-${s}`:(0,Cl._)`${o} !== parseInt(${o})`;t.fail$data((0,Cl._)`(${n} === 0 || (${o} = ${r}/${n}, ${a}))`)}};ES.default=XV});var WO=T(kS=>{"use strict";Object.defineProperty(kS,"__esModule",{value:!0});function GO(t){let e=t.length,r=0,n=0,i;for(;n=55296&&i<=56319&&n{"use strict";Object.defineProperty($S,"__esModule",{value:!0});var ho=Le(),YV=rt(),QV=WO(),eG={message({keyword:t,schemaCode:e}){let r=t==="maxLength"?"more":"fewer";return(0,ho.str)`must NOT have ${r} than ${e} characters`},params:({schemaCode:t})=>(0,ho._)`{limit: ${t}}`},tG={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:eG,code(t){let{keyword:e,data:r,schemaCode:n,it:i}=t,s=e==="maxLength"?ho.operators.GT:ho.operators.LT,o=i.opts.unicode===!1?(0,ho._)`${r}.length`:(0,ho._)`${(0,YV.useFunc)(t.gen,QV.default)}(${r})`;t.fail$data((0,ho._)`${o} ${s} ${n}`)}};$S.default=tG});var JO=T(TS=>{"use strict";Object.defineProperty(TS,"__esModule",{value:!0});var rG=Rn(),nG=rt(),Da=Le(),iG={message:({schemaCode:t})=>(0,Da.str)`must match pattern "${t}"`,params:({schemaCode:t})=>(0,Da._)`{pattern: ${t}}`},sG={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:iG,code(t){let{gen:e,data:r,$data:n,schema:i,schemaCode:s,it:o}=t,a=o.opts.unicodeRegExp?"u":"";if(n){let{regExp:c}=o.opts.code,u=c.code==="new RegExp"?(0,Da._)`new RegExp`:(0,nG.useFunc)(e,c),l=e.let("valid");e.try(()=>e.assign(l,(0,Da._)`${u}(${s}, ${a}).test(${r})`),()=>e.assign(l,!1)),t.fail$data((0,Da._)`!${l}`)}else{let c=(0,rG.usePattern)(t,i);t.fail$data((0,Da._)`!${c}.test(${r})`)}}};TS.default=sG});var XO=T(IS=>{"use strict";Object.defineProperty(IS,"__esModule",{value:!0});var Al=Le(),oG={message({keyword:t,schemaCode:e}){let r=t==="maxProperties"?"more":"fewer";return(0,Al.str)`must NOT have ${r} than ${e} properties`},params:({schemaCode:t})=>(0,Al._)`{limit: ${t}}`},aG={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:oG,code(t){let{keyword:e,data:r,schemaCode:n}=t,i=e==="maxProperties"?Al.operators.GT:Al.operators.LT;t.fail$data((0,Al._)`Object.keys(${r}).length ${i} ${n}`)}};IS.default=aG});var YO=T(RS=>{"use strict";Object.defineProperty(RS,"__esModule",{value:!0});var Nl=Rn(),Ml=Le(),cG=rt(),uG={message:({params:{missingProperty:t}})=>(0,Ml.str)`must have required property '${t}'`,params:({params:{missingProperty:t}})=>(0,Ml._)`{missingProperty: ${t}}`},lG={keyword:"required",type:"object",schemaType:"array",$data:!0,error:uG,code(t){let{gen:e,schema:r,schemaCode:n,data:i,$data:s,it:o}=t,{opts:a}=o;if(!s&&r.length===0)return;let c=r.length>=a.loopRequired;if(o.allErrors?u():l(),a.strictRequired){let m=t.parentSchema.properties,{definedProperties:f}=t.it;for(let g of r)if(m?.[g]===void 0&&!f.has(g)){let h=o.schemaEnv.baseId+o.errSchemaPath,v=`required property "${g}" is not defined at "${h}" (strictRequired)`;(0,cG.checkStrictMode)(o,v,o.opts.strictRequired)}}function u(){if(c||s)t.block$data(Ml.nil,d);else for(let m of r)(0,Nl.checkReportMissingProp)(t,m)}function l(){let m=e.let("missing");if(c||s){let f=e.let("valid",!0);t.block$data(f,()=>p(m,f)),t.ok(f)}else e.if((0,Nl.checkMissingProp)(t,r,m)),(0,Nl.reportMissingProp)(t,m),e.else()}function d(){e.forOf("prop",n,m=>{t.setParams({missingProperty:m}),e.if((0,Nl.noPropertyInData)(e,i,m,a.ownProperties),()=>t.error())})}function p(m,f){t.setParams({missingProperty:m}),e.forOf(m,n,()=>{e.assign(f,(0,Nl.propertyInData)(e,i,m,a.ownProperties)),e.if((0,Ml.not)(f),()=>{t.error(),e.break()})},Ml.nil)}}};RS.default=lG});var QO=T(OS=>{"use strict";Object.defineProperty(OS,"__esModule",{value:!0});var Dl=Le(),dG={message({keyword:t,schemaCode:e}){let r=t==="maxItems"?"more":"fewer";return(0,Dl.str)`must NOT have ${r} than ${e} items`},params:({schemaCode:t})=>(0,Dl._)`{limit: ${t}}`},pG={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:dG,code(t){let{keyword:e,data:r,schemaCode:n}=t,i=e==="maxItems"?Dl.operators.GT:Dl.operators.LT;t.fail$data((0,Dl._)`${r}.length ${i} ${n}`)}};OS.default=pG});var vf=T(PS=>{"use strict";Object.defineProperty(PS,"__esModule",{value:!0});var eP=tS();eP.code='require("ajv/dist/runtime/equal").default';PS.default=eP});var tP=T(AS=>{"use strict";Object.defineProperty(AS,"__esModule",{value:!0});var CS=Sl(),yr=Le(),mG=rt(),fG=vf(),hG={message:({params:{i:t,j:e}})=>(0,yr.str)`must NOT have duplicate items (items ## ${e} and ${t} are identical)`,params:({params:{i:t,j:e}})=>(0,yr._)`{i: ${t}, j: ${e}}`},gG={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:hG,code(t){let{gen:e,data:r,$data:n,schema:i,parentSchema:s,schemaCode:o,it:a}=t;if(!n&&!i)return;let c=e.let("valid"),u=s.items?(0,CS.getSchemaTypes)(s.items):[];t.block$data(c,l,(0,yr._)`${o} === false`),t.ok(c);function l(){let f=e.let("i",(0,yr._)`${r}.length`),g=e.let("j");t.setParams({i:f,j:g}),e.assign(c,!0),e.if((0,yr._)`${f} > 1`,()=>(d()?p:m)(f,g))}function d(){return u.length>0&&!u.some(f=>f==="object"||f==="array")}function p(f,g){let h=e.name("item"),v=(0,CS.checkDataTypes)(u,h,a.opts.strictNumbers,CS.DataType.Wrong),x=e.const("indices",(0,yr._)`{}`);e.for((0,yr._)`;${f}--;`,()=>{e.let(h,(0,yr._)`${r}[${f}]`),e.if(v,(0,yr._)`continue`),u.length>1&&e.if((0,yr._)`typeof ${h} == "string"`,(0,yr._)`${h} += "_"`),e.if((0,yr._)`typeof ${x}[${h}] == "number"`,()=>{e.assign(g,(0,yr._)`${x}[${h}]`),t.error(),e.assign(c,!1).break()}).code((0,yr._)`${x}[${h}] = ${f}`)})}function m(f,g){let h=(0,mG.useFunc)(e,fG.default),v=e.name("outer");e.label(v).for((0,yr._)`;${f}--;`,()=>e.for((0,yr._)`${g} = ${f}; ${g}--;`,()=>e.if((0,yr._)`${h}(${r}[${f}], ${r}[${g}])`,()=>{t.error(),e.assign(c,!1).break(v)})))}}};AS.default=gG});var rP=T(MS=>{"use strict";Object.defineProperty(MS,"__esModule",{value:!0});var NS=Le(),vG=rt(),yG=vf(),_G={message:"must be equal to constant",params:({schemaCode:t})=>(0,NS._)`{allowedValue: ${t}}`},bG={keyword:"const",$data:!0,error:_G,code(t){let{gen:e,data:r,$data:n,schemaCode:i,schema:s}=t;n||s&&typeof s=="object"?t.fail$data((0,NS._)`!${(0,vG.useFunc)(e,yG.default)}(${r}, ${i})`):t.fail((0,NS._)`${s} !== ${r}`)}};MS.default=bG});var nP=T(DS=>{"use strict";Object.defineProperty(DS,"__esModule",{value:!0});var jl=Le(),xG=rt(),SG=vf(),wG={message:"must be equal to one of the allowed values",params:({schemaCode:t})=>(0,jl._)`{allowedValues: ${t}}`},EG={keyword:"enum",schemaType:"array",$data:!0,error:wG,code(t){let{gen:e,data:r,$data:n,schema:i,schemaCode:s,it:o}=t;if(!n&&i.length===0)throw new Error("enum must have non-empty array");let a=i.length>=o.opts.loopEnum,c,u=()=>c??(c=(0,xG.useFunc)(e,SG.default)),l;if(a||n)l=e.let("valid"),t.block$data(l,d);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let m=e.const("vSchema",s);l=(0,jl.or)(...i.map((f,g)=>p(m,g)))}t.pass(l);function d(){e.assign(l,!1),e.forOf("v",s,m=>e.if((0,jl._)`${u()}(${r}, ${m})`,()=>e.assign(l,!0).break()))}function p(m,f){let g=i[f];return typeof g=="object"&&g!==null?(0,jl._)`${u()}(${r}, ${m}[${f}])`:(0,jl._)`${r} === ${g}`}}};DS.default=EG});var iP=T(jS=>{"use strict";Object.defineProperty(jS,"__esModule",{value:!0});var kG=BO(),$G=VO(),TG=KO(),IG=JO(),RG=XO(),OG=YO(),PG=QO(),CG=tP(),AG=rP(),NG=nP(),MG=[kG.default,$G.default,TG.default,IG.default,RG.default,OG.default,PG.default,CG.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},AG.default,NG.default];jS.default=MG});var LS=T(zl=>{"use strict";Object.defineProperty(zl,"__esModule",{value:!0});zl.validateAdditionalItems=void 0;var go=Le(),zS=rt(),DG={message:({params:{len:t}})=>(0,go.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,go._)`{limit: ${t}}`},jG={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:DG,code(t){let{parentSchema:e,it:r}=t,{items:n}=e;if(!Array.isArray(n)){(0,zS.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}sP(t,n)}};function sP(t,e){let{gen:r,schema:n,data:i,keyword:s,it:o}=t;o.items=!0;let a=r.const("len",(0,go._)`${i}.length`);if(n===!1)t.setParams({len:e.length}),t.pass((0,go._)`${a} <= ${e.length}`);else if(typeof n=="object"&&!(0,zS.alwaysValidSchema)(o,n)){let u=r.var("valid",(0,go._)`${a} <= ${e.length}`);r.if((0,go.not)(u),()=>c(u)),t.ok(u)}function c(u){r.forRange("i",e.length,a,l=>{t.subschema({keyword:s,dataProp:l,dataPropType:zS.Type.Num},u),o.allErrors||r.if((0,go.not)(u),()=>r.break())})}}zl.validateAdditionalItems=sP;zl.default=jG});var US=T(Ll=>{"use strict";Object.defineProperty(Ll,"__esModule",{value:!0});Ll.validateTuple=void 0;var oP=Le(),yf=rt(),zG=Rn(),LG={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(t){let{schema:e,it:r}=t;if(Array.isArray(e))return aP(t,"additionalItems",e);r.items=!0,!(0,yf.alwaysValidSchema)(r,e)&&t.ok((0,zG.validateArray)(t))}};function aP(t,e,r=t.schema){let{gen:n,parentSchema:i,data:s,keyword:o,it:a}=t;l(i),a.opts.unevaluated&&r.length&&a.items!==!0&&(a.items=yf.mergeEvaluated.items(n,r.length,a.items));let c=n.name("valid"),u=n.const("len",(0,oP._)`${s}.length`);r.forEach((d,p)=>{(0,yf.alwaysValidSchema)(a,d)||(n.if((0,oP._)`${u} > ${p}`,()=>t.subschema({keyword:o,schemaProp:p,dataProp:p},c)),t.ok(c))});function l(d){let{opts:p,errSchemaPath:m}=a,f=r.length,g=f===d.minItems&&(f===d.maxItems||d[e]===!1);if(p.strictTuples&&!g){let h=`"${o}" is ${f}-tuple, but minItems or maxItems/${e} are not specified or different at path "${m}"`;(0,yf.checkStrictMode)(a,h,p.strictTuples)}}}Ll.validateTuple=aP;Ll.default=LG});var cP=T(qS=>{"use strict";Object.defineProperty(qS,"__esModule",{value:!0});var UG=US(),qG={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t=>(0,UG.validateTuple)(t,"items")};qS.default=qG});var lP=T(FS=>{"use strict";Object.defineProperty(FS,"__esModule",{value:!0});var uP=Le(),FG=rt(),HG=Rn(),ZG=LS(),BG={message:({params:{len:t}})=>(0,uP.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,uP._)`{limit: ${t}}`},VG={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:BG,code(t){let{schema:e,parentSchema:r,it:n}=t,{prefixItems:i}=r;n.items=!0,!(0,FG.alwaysValidSchema)(n,e)&&(i?(0,ZG.validateAdditionalItems)(t,i):t.ok((0,HG.validateArray)(t)))}};FS.default=VG});var dP=T(HS=>{"use strict";Object.defineProperty(HS,"__esModule",{value:!0});var Pn=Le(),_f=rt(),GG={message:({params:{min:t,max:e}})=>e===void 0?(0,Pn.str)`must contain at least ${t} valid item(s)`:(0,Pn.str)`must contain at least ${t} and no more than ${e} valid item(s)`,params:({params:{min:t,max:e}})=>e===void 0?(0,Pn._)`{minContains: ${t}}`:(0,Pn._)`{minContains: ${t}, maxContains: ${e}}`},WG={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:GG,code(t){let{gen:e,schema:r,parentSchema:n,data:i,it:s}=t,o,a,{minContains:c,maxContains:u}=n;s.opts.next?(o=c===void 0?1:c,a=u):o=1;let l=e.const("len",(0,Pn._)`${i}.length`);if(t.setParams({min:o,max:a}),a===void 0&&o===0){(0,_f.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&o>a){(0,_f.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),t.fail();return}if((0,_f.alwaysValidSchema)(s,r)){let g=(0,Pn._)`${l} >= ${o}`;a!==void 0&&(g=(0,Pn._)`${g} && ${l} <= ${a}`),t.pass(g);return}s.items=!0;let d=e.name("valid");a===void 0&&o===1?m(d,()=>e.if(d,()=>e.break())):o===0?(e.let(d,!0),a!==void 0&&e.if((0,Pn._)`${i}.length > 0`,p)):(e.let(d,!1),p()),t.result(d,()=>t.reset());function p(){let g=e.name("_valid"),h=e.let("count",0);m(g,()=>e.if(g,()=>f(h)))}function m(g,h){e.forRange("i",0,l,v=>{t.subschema({keyword:"contains",dataProp:v,dataPropType:_f.Type.Num,compositeRule:!0},g),h()})}function f(g){e.code((0,Pn._)`${g}++`),a===void 0?e.if((0,Pn._)`${g} >= ${o}`,()=>e.assign(d,!0).break()):(e.if((0,Pn._)`${g} > ${a}`,()=>e.assign(d,!1).break()),o===1?e.assign(d,!0):e.if((0,Pn._)`${g} >= ${o}`,()=>e.assign(d,!0)))}}};HS.default=WG});var fP=T(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.validateSchemaDeps=mi.validatePropertyDeps=mi.error=void 0;var ZS=Le(),KG=rt(),Ul=Rn();mi.error={message:({params:{property:t,depsCount:e,deps:r}})=>{let n=e===1?"property":"properties";return(0,ZS.str)`must have ${n} ${r} when property ${t} is present`},params:({params:{property:t,depsCount:e,deps:r,missingProperty:n}})=>(0,ZS._)`{property: ${t}, + missingProperty: ${n}, + depsCount: ${e}, + deps: ${r}}`};var JG={keyword:"dependencies",type:"object",schemaType:"object",error:mi.error,code(t){let[e,r]=XG(t);pP(t,e),mP(t,r)}};function XG({schema:t}){let e={},r={};for(let n in t){if(n==="__proto__")continue;let i=Array.isArray(t[n])?e:r;i[n]=t[n]}return[e,r]}function pP(t,e=t.schema){let{gen:r,data:n,it:i}=t;if(Object.keys(e).length===0)return;let s=r.let("missing");for(let o in e){let a=e[o];if(a.length===0)continue;let c=(0,Ul.propertyInData)(r,n,o,i.opts.ownProperties);t.setParams({property:o,depsCount:a.length,deps:a.join(", ")}),i.allErrors?r.if(c,()=>{for(let u of a)(0,Ul.checkReportMissingProp)(t,u)}):(r.if((0,ZS._)`${c} && (${(0,Ul.checkMissingProp)(t,a,s)})`),(0,Ul.reportMissingProp)(t,s),r.else())}}mi.validatePropertyDeps=pP;function mP(t,e=t.schema){let{gen:r,data:n,keyword:i,it:s}=t,o=r.name("valid");for(let a in e)(0,KG.alwaysValidSchema)(s,e[a])||(r.if((0,Ul.propertyInData)(r,n,a,s.opts.ownProperties),()=>{let c=t.subschema({keyword:i,schemaProp:a},o);t.mergeValidEvaluated(c,o)},()=>r.var(o,!0)),t.ok(o))}mi.validateSchemaDeps=mP;mi.default=JG});var gP=T(BS=>{"use strict";Object.defineProperty(BS,"__esModule",{value:!0});var hP=Le(),YG=rt(),QG={message:"property name must be valid",params:({params:t})=>(0,hP._)`{propertyName: ${t.propertyName}}`},eW={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:QG,code(t){let{gen:e,schema:r,data:n,it:i}=t;if((0,YG.alwaysValidSchema)(i,r))return;let s=e.name("valid");e.forIn("key",n,o=>{t.setParams({propertyName:o}),t.subschema({keyword:"propertyNames",data:o,dataTypes:["string"],propertyName:o,compositeRule:!0},s),e.if((0,hP.not)(s),()=>{t.error(!0),i.allErrors||e.break()})}),t.ok(s)}};BS.default=eW});var GS=T(VS=>{"use strict";Object.defineProperty(VS,"__esModule",{value:!0});var bf=Rn(),Kn=Le(),tW=Zi(),xf=rt(),rW={message:"must NOT have additional properties",params:({params:t})=>(0,Kn._)`{additionalProperty: ${t.additionalProperty}}`},nW={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:rW,code(t){let{gen:e,schema:r,parentSchema:n,data:i,errsCount:s,it:o}=t;if(!s)throw new Error("ajv implementation error");let{allErrors:a,opts:c}=o;if(o.props=!0,c.removeAdditional!=="all"&&(0,xf.alwaysValidSchema)(o,r))return;let u=(0,bf.allSchemaProperties)(n.properties),l=(0,bf.allSchemaProperties)(n.patternProperties);d(),t.ok((0,Kn._)`${s} === ${tW.default.errors}`);function d(){e.forIn("key",i,h=>{!u.length&&!l.length?f(h):e.if(p(h),()=>f(h))})}function p(h){let v;if(u.length>8){let x=(0,xf.schemaRefOrVal)(o,n.properties,"properties");v=(0,bf.isOwnProperty)(e,x,h)}else u.length?v=(0,Kn.or)(...u.map(x=>(0,Kn._)`${h} === ${x}`)):v=Kn.nil;return l.length&&(v=(0,Kn.or)(v,...l.map(x=>(0,Kn._)`${(0,bf.usePattern)(t,x)}.test(${h})`))),(0,Kn.not)(v)}function m(h){e.code((0,Kn._)`delete ${i}[${h}]`)}function f(h){if(c.removeAdditional==="all"||c.removeAdditional&&r===!1){m(h);return}if(r===!1){t.setParams({additionalProperty:h}),t.error(),a||e.break();return}if(typeof r=="object"&&!(0,xf.alwaysValidSchema)(o,r)){let v=e.name("valid");c.removeAdditional==="failing"?(g(h,v,!1),e.if((0,Kn.not)(v),()=>{t.reset(),m(h)})):(g(h,v),a||e.if((0,Kn.not)(v),()=>e.break()))}}function g(h,v,x){let b={keyword:"additionalProperties",dataProp:h,dataPropType:xf.Type.Str};x===!1&&Object.assign(b,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(b,v)}}};VS.default=nW});var _P=T(KS=>{"use strict";Object.defineProperty(KS,"__esModule",{value:!0});var iW=$l(),vP=Rn(),WS=rt(),yP=GS(),sW={keyword:"properties",type:"object",schemaType:"object",code(t){let{gen:e,schema:r,parentSchema:n,data:i,it:s}=t;s.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&yP.default.code(new iW.KeywordCxt(s,yP.default,"additionalProperties"));let o=(0,vP.allSchemaProperties)(r);for(let d of o)s.definedProperties.add(d);s.opts.unevaluated&&o.length&&s.props!==!0&&(s.props=WS.mergeEvaluated.props(e,(0,WS.toHash)(o),s.props));let a=o.filter(d=>!(0,WS.alwaysValidSchema)(s,r[d]));if(a.length===0)return;let c=e.name("valid");for(let d of a)u(d)?l(d):(e.if((0,vP.propertyInData)(e,i,d,s.opts.ownProperties)),l(d),s.allErrors||e.else().var(c,!0),e.endIf()),t.it.definedProperties.add(d),t.ok(c);function u(d){return s.opts.useDefaults&&!s.compositeRule&&r[d].default!==void 0}function l(d){t.subschema({keyword:"properties",schemaProp:d,dataProp:d},c)}}};KS.default=sW});var wP=T(JS=>{"use strict";Object.defineProperty(JS,"__esModule",{value:!0});var bP=Rn(),Sf=Le(),xP=rt(),SP=rt(),oW={keyword:"patternProperties",type:"object",schemaType:"object",code(t){let{gen:e,schema:r,data:n,parentSchema:i,it:s}=t,{opts:o}=s,a=(0,bP.allSchemaProperties)(r),c=a.filter(g=>(0,xP.alwaysValidSchema)(s,r[g]));if(a.length===0||c.length===a.length&&(!s.opts.unevaluated||s.props===!0))return;let u=o.strictSchema&&!o.allowMatchingProperties&&i.properties,l=e.name("valid");s.props!==!0&&!(s.props instanceof Sf.Name)&&(s.props=(0,SP.evaluatedPropsToName)(e,s.props));let{props:d}=s;p();function p(){for(let g of a)u&&m(g),s.allErrors?f(g):(e.var(l,!0),f(g),e.if(l))}function m(g){for(let h in u)new RegExp(g).test(h)&&(0,xP.checkStrictMode)(s,`property ${h} matches pattern ${g} (use allowMatchingProperties)`)}function f(g){e.forIn("key",n,h=>{e.if((0,Sf._)`${(0,bP.usePattern)(t,g)}.test(${h})`,()=>{let v=c.includes(g);v||t.subschema({keyword:"patternProperties",schemaProp:g,dataProp:h,dataPropType:SP.Type.Str},l),s.opts.unevaluated&&d!==!0?e.assign((0,Sf._)`${d}[${h}]`,!0):!v&&!s.allErrors&&e.if((0,Sf.not)(l),()=>e.break())})})}}};JS.default=oW});var EP=T(XS=>{"use strict";Object.defineProperty(XS,"__esModule",{value:!0});var aW=rt(),cW={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){let{gen:e,schema:r,it:n}=t;if((0,aW.alwaysValidSchema)(n,r)){t.fail();return}let i=e.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),t.failResult(i,()=>t.reset(),()=>t.error())},error:{message:"must NOT be valid"}};XS.default=cW});var kP=T(YS=>{"use strict";Object.defineProperty(YS,"__esModule",{value:!0});var uW=Rn(),lW={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:uW.validateUnion,error:{message:"must match a schema in anyOf"}};YS.default=lW});var $P=T(QS=>{"use strict";Object.defineProperty(QS,"__esModule",{value:!0});var wf=Le(),dW=rt(),pW={message:"must match exactly one schema in oneOf",params:({params:t})=>(0,wf._)`{passingSchemas: ${t.passing}}`},mW={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:pW,code(t){let{gen:e,schema:r,parentSchema:n,it:i}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;let s=r,o=e.let("valid",!1),a=e.let("passing",null),c=e.name("_valid");t.setParams({passing:a}),e.block(u),t.result(o,()=>t.reset(),()=>t.error(!0));function u(){s.forEach((l,d)=>{let p;(0,dW.alwaysValidSchema)(i,l)?e.var(c,!0):p=t.subschema({keyword:"oneOf",schemaProp:d,compositeRule:!0},c),d>0&&e.if((0,wf._)`${c} && ${o}`).assign(o,!1).assign(a,(0,wf._)`[${a}, ${d}]`).else(),e.if(c,()=>{e.assign(o,!0),e.assign(a,d),p&&t.mergeEvaluated(p,wf.Name)})})}}};QS.default=mW});var TP=T(e0=>{"use strict";Object.defineProperty(e0,"__esModule",{value:!0});var fW=rt(),hW={keyword:"allOf",schemaType:"array",code(t){let{gen:e,schema:r,it:n}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");let i=e.name("valid");r.forEach((s,o)=>{if((0,fW.alwaysValidSchema)(n,s))return;let a=t.subschema({keyword:"allOf",schemaProp:o},i);t.ok(i),t.mergeEvaluated(a)})}};e0.default=hW});var OP=T(t0=>{"use strict";Object.defineProperty(t0,"__esModule",{value:!0});var Ef=Le(),RP=rt(),gW={message:({params:t})=>(0,Ef.str)`must match "${t.ifClause}" schema`,params:({params:t})=>(0,Ef._)`{failingKeyword: ${t.ifClause}}`},vW={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:gW,code(t){let{gen:e,parentSchema:r,it:n}=t;r.then===void 0&&r.else===void 0&&(0,RP.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=IP(n,"then"),s=IP(n,"else");if(!i&&!s)return;let o=e.let("valid",!0),a=e.name("_valid");if(c(),t.reset(),i&&s){let l=e.let("ifClause");t.setParams({ifClause:l}),e.if(a,u("then",l),u("else",l))}else i?e.if(a,u("then")):e.if((0,Ef.not)(a),u("else"));t.pass(o,()=>t.error(!0));function c(){let l=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);t.mergeEvaluated(l)}function u(l,d){return()=>{let p=t.subschema({keyword:l},a);e.assign(o,a),t.mergeValidEvaluated(p,o),d?e.assign(d,(0,Ef._)`${l}`):t.setParams({ifClause:l})}}}};function IP(t,e){let r=t.schema[e];return r!==void 0&&!(0,RP.alwaysValidSchema)(t,r)}t0.default=vW});var PP=T(r0=>{"use strict";Object.defineProperty(r0,"__esModule",{value:!0});var yW=rt(),_W={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:e,it:r}){e.if===void 0&&(0,yW.checkStrictMode)(r,`"${t}" without "if" is ignored`)}};r0.default=_W});var CP=T(n0=>{"use strict";Object.defineProperty(n0,"__esModule",{value:!0});var bW=LS(),xW=cP(),SW=US(),wW=lP(),EW=dP(),kW=fP(),$W=gP(),TW=GS(),IW=_P(),RW=wP(),OW=EP(),PW=kP(),CW=$P(),AW=TP(),NW=OP(),MW=PP();function DW(t=!1){let e=[OW.default,PW.default,CW.default,AW.default,NW.default,MW.default,$W.default,TW.default,kW.default,IW.default,RW.default];return t?e.push(xW.default,wW.default):e.push(bW.default,SW.default),e.push(EW.default),e}n0.default=DW});var AP=T(i0=>{"use strict";Object.defineProperty(i0,"__esModule",{value:!0});var Jt=Le(),jW={message:({schemaCode:t})=>(0,Jt.str)`must match format "${t}"`,params:({schemaCode:t})=>(0,Jt._)`{format: ${t}}`},zW={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:jW,code(t,e){let{gen:r,data:n,$data:i,schema:s,schemaCode:o,it:a}=t,{opts:c,errSchemaPath:u,schemaEnv:l,self:d}=a;if(!c.validateFormats)return;i?p():m();function p(){let f=r.scopeValue("formats",{ref:d.formats,code:c.code.formats}),g=r.const("fDef",(0,Jt._)`${f}[${o}]`),h=r.let("fType"),v=r.let("format");r.if((0,Jt._)`typeof ${g} == "object" && !(${g} instanceof RegExp)`,()=>r.assign(h,(0,Jt._)`${g}.type || "string"`).assign(v,(0,Jt._)`${g}.validate`),()=>r.assign(h,(0,Jt._)`"string"`).assign(v,g)),t.fail$data((0,Jt.or)(x(),b()));function x(){return c.strictSchema===!1?Jt.nil:(0,Jt._)`${o} && !${v}`}function b(){let _=l.$async?(0,Jt._)`(${g}.async ? await ${v}(${n}) : ${v}(${n}))`:(0,Jt._)`${v}(${n})`,S=(0,Jt._)`(typeof ${v} == "function" ? ${_} : ${v}.test(${n}))`;return(0,Jt._)`${v} && ${v} !== true && ${h} === ${e} && !${S}`}}function m(){let f=d.formats[s];if(!f){x();return}if(f===!0)return;let[g,h,v]=b(f);g===e&&t.pass(_());function x(){if(c.strictSchema===!1){d.logger.warn(S());return}throw new Error(S());function S(){return`unknown format "${s}" ignored in schema at path "${u}"`}}function b(S){let w=S instanceof RegExp?(0,Jt.regexpCode)(S):c.code.formats?(0,Jt._)`${c.code.formats}${(0,Jt.getProperty)(s)}`:void 0,E=r.scopeValue("formats",{key:s,ref:S,code:w});return typeof S=="object"&&!(S instanceof RegExp)?[S.type||"string",S.validate,(0,Jt._)`${E}.validate`]:["string",S,E]}function _(){if(typeof f=="object"&&!(f instanceof RegExp)&&f.async){if(!l.$async)throw new Error("async format in sync schema");return(0,Jt._)`await ${v}(${n})`}return typeof h=="function"?(0,Jt._)`${v}(${n})`:(0,Jt._)`${v}.test(${n})`}}}};i0.default=zW});var NP=T(s0=>{"use strict";Object.defineProperty(s0,"__esModule",{value:!0});var LW=AP(),UW=[LW.default];s0.default=UW});var MP=T(ja=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});ja.contentVocabulary=ja.metadataVocabulary=void 0;ja.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];ja.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var jP=T(o0=>{"use strict";Object.defineProperty(o0,"__esModule",{value:!0});var qW=ZO(),FW=iP(),HW=CP(),ZW=NP(),DP=MP(),BW=[qW.default,FW.default,(0,HW.default)(),ZW.default,DP.metadataVocabulary,DP.contentVocabulary];o0.default=BW});var LP=T(kf=>{"use strict";Object.defineProperty(kf,"__esModule",{value:!0});kf.DiscrError=void 0;var zP;(function(t){t.Tag="tag",t.Mapping="mapping"})(zP||(kf.DiscrError=zP={}))});var qP=T(c0=>{"use strict";Object.defineProperty(c0,"__esModule",{value:!0});var za=Le(),a0=LP(),UP=af(),VW=Tl(),GW=rt(),WW={message:({params:{discrError:t,tagName:e}})=>t===a0.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,params:({params:{discrError:t,tag:e,tagName:r}})=>(0,za._)`{error: ${t}, tag: ${r}, tagValue: ${e}}`},KW={keyword:"discriminator",type:"object",schemaType:"object",error:WW,code(t){let{gen:e,data:r,schema:n,parentSchema:i,it:s}=t,{oneOf:o}=i;if(!s.opts.discriminator)throw new Error("discriminator: requires discriminator option");let a=n.propertyName;if(typeof a!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!o)throw new Error("discriminator: requires oneOf keyword");let c=e.let("valid",!1),u=e.const("tag",(0,za._)`${r}${(0,za.getProperty)(a)}`);e.if((0,za._)`typeof ${u} == "string"`,()=>l(),()=>t.error(!1,{discrError:a0.DiscrError.Tag,tag:u,tagName:a})),t.ok(c);function l(){let m=p();e.if(!1);for(let f in m)e.elseIf((0,za._)`${u} === ${f}`),e.assign(c,d(m[f]));e.else(),t.error(!1,{discrError:a0.DiscrError.Mapping,tag:u,tagName:a}),e.endIf()}function d(m){let f=e.name("valid"),g=t.subschema({keyword:"oneOf",schemaProp:m},f);return t.mergeEvaluated(g,za.Name),f}function p(){var m;let f={},g=v(i),h=!0;for(let _=0;_{JW.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var l0=T((Ct,u0)=>{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0});Ct.MissingRefError=Ct.ValidationError=Ct.CodeGen=Ct.Name=Ct.nil=Ct.stringify=Ct.str=Ct._=Ct.KeywordCxt=Ct.Ajv=void 0;var XW=zO(),YW=jP(),QW=qP(),HP=FP(),e7=["/properties"],$f="http://json-schema.org/draft-07/schema",La=class extends XW.default{_addVocabularies(){super._addVocabularies(),YW.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(QW.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let e=this.opts.$data?this.$dataMetaSchema(HP,e7):HP;this.addMetaSchema(e,$f,!1),this.refs["http://json-schema.org/schema"]=$f}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema($f)?$f:void 0)}};Ct.Ajv=La;u0.exports=Ct=La;u0.exports.Ajv=La;Object.defineProperty(Ct,"__esModule",{value:!0});Ct.default=La;var t7=$l();Object.defineProperty(Ct,"KeywordCxt",{enumerable:!0,get:function(){return t7.KeywordCxt}});var Ua=Le();Object.defineProperty(Ct,"_",{enumerable:!0,get:function(){return Ua._}});Object.defineProperty(Ct,"str",{enumerable:!0,get:function(){return Ua.str}});Object.defineProperty(Ct,"stringify",{enumerable:!0,get:function(){return Ua.stringify}});Object.defineProperty(Ct,"nil",{enumerable:!0,get:function(){return Ua.nil}});Object.defineProperty(Ct,"Name",{enumerable:!0,get:function(){return Ua.Name}});Object.defineProperty(Ct,"CodeGen",{enumerable:!0,get:function(){return Ua.CodeGen}});var r7=sf();Object.defineProperty(Ct,"ValidationError",{enumerable:!0,get:function(){return r7.default}});var n7=Tl();Object.defineProperty(Ct,"MissingRefError",{enumerable:!0,get:function(){return n7.default}})});var XP=T(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.formatNames=hi.fastFormats=hi.fullFormats=void 0;function fi(t,e){return{validate:t,compare:e}}hi.fullFormats={date:fi(GP,f0),time:fi(p0(!0),h0),"date-time":fi(ZP(!0),KP),"iso-time":fi(p0(),WP),"iso-date-time":fi(ZP(),JP),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:u7,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:g7,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:l7,int32:{type:"number",validate:m7},int64:{type:"number",validate:f7},float:{type:"number",validate:VP},double:{type:"number",validate:VP},password:!0,binary:!0};hi.fastFormats={...hi.fullFormats,date:fi(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,f0),time:fi(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,h0),"date-time":fi(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,KP),"iso-time":fi(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,WP),"iso-date-time":fi(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,JP),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};hi.formatNames=Object.keys(hi.fullFormats);function i7(t){return t%4===0&&(t%100!==0||t%400===0)}var s7=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,o7=[0,31,28,31,30,31,30,31,31,30,31,30,31];function GP(t){let e=s7.exec(t);if(!e)return!1;let r=+e[1],n=+e[2],i=+e[3];return n>=1&&n<=12&&i>=1&&i<=(n===2&&i7(r)?29:o7[n])}function f0(t,e){if(t&&e)return t>e?1:t23||l>59||t&&!a)return!1;if(i<=23&&s<=59&&o<60)return!0;let d=s-l*c,p=i-u*c-(d<0?1:0);return(p===23||p===-1)&&(d===59||d===-1)&&o<61}}function h0(t,e){if(!(t&&e))return;let r=new Date("2020-01-01T"+t).valueOf(),n=new Date("2020-01-01T"+e).valueOf();if(r&&n)return r-n}function WP(t,e){if(!(t&&e))return;let r=d0.exec(t),n=d0.exec(e);if(r&&n)return t=r[1]+r[2]+r[3],e=n[1]+n[2]+n[3],t>e?1:t=d7}function f7(t){return Number.isInteger(t)}function VP(){return!0}var h7=/[^\\]\\Z/;function g7(t){if(h7.test(t))return!1;try{return new RegExp(t),!0}catch{return!1}}});var YP=T(qa=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});qa.formatLimitDefinition=void 0;var v7=l0(),Jn=Le(),Ps=Jn.operators,Tf={formatMaximum:{okStr:"<=",ok:Ps.LTE,fail:Ps.GT},formatMinimum:{okStr:">=",ok:Ps.GTE,fail:Ps.LT},formatExclusiveMaximum:{okStr:"<",ok:Ps.LT,fail:Ps.GTE},formatExclusiveMinimum:{okStr:">",ok:Ps.GT,fail:Ps.LTE}},y7={message:({keyword:t,schemaCode:e})=>(0,Jn.str)`should be ${Tf[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>(0,Jn._)`{comparison: ${Tf[t].okStr}, limit: ${e}}`};qa.formatLimitDefinition={keyword:Object.keys(Tf),type:"string",schemaType:"string",$data:!0,error:y7,code(t){let{gen:e,data:r,schemaCode:n,keyword:i,it:s}=t,{opts:o,self:a}=s;if(!o.validateFormats)return;let c=new v7.KeywordCxt(s,a.RULES.all.format.definition,"format");c.$data?u():l();function u(){let p=e.scopeValue("formats",{ref:a.formats,code:o.code.formats}),m=e.const("fmt",(0,Jn._)`${p}[${c.schemaCode}]`);t.fail$data((0,Jn.or)((0,Jn._)`typeof ${m} != "object"`,(0,Jn._)`${m} instanceof RegExp`,(0,Jn._)`typeof ${m}.compare != "function"`,d(m)))}function l(){let p=c.schema,m=a.formats[p];if(!m||m===!0)return;if(typeof m!="object"||m instanceof RegExp||typeof m.compare!="function")throw new Error(`"${i}": format "${p}" does not define "compare" function`);let f=e.scopeValue("formats",{key:p,ref:m,code:o.code.formats?(0,Jn._)`${o.code.formats}${(0,Jn.getProperty)(p)}`:void 0});t.fail$data(d(f))}function d(p){return(0,Jn._)`${p}.compare(${r}, ${n}) ${Tf[i].fail} 0`}},dependencies:["format"]};var _7=t=>(t.addKeyword(qa.formatLimitDefinition),t);qa.default=_7});var rC=T((ql,tC)=>{"use strict";Object.defineProperty(ql,"__esModule",{value:!0});var Fa=XP(),b7=YP(),g0=Le(),QP=new g0.Name("fullFormats"),x7=new g0.Name("fastFormats"),v0=(t,e={keywords:!0})=>{if(Array.isArray(e))return eC(t,e,Fa.fullFormats,QP),t;let[r,n]=e.mode==="fast"?[Fa.fastFormats,x7]:[Fa.fullFormats,QP],i=e.formats||Fa.formatNames;return eC(t,i,r,n),e.keywords&&(0,b7.default)(t),t};v0.get=(t,e="full")=>{let n=(e==="fast"?Fa.fastFormats:Fa.fullFormats)[t];if(!n)throw new Error(`Unknown format "${t}"`);return n};function eC(t,e,r,n){var i,s;(i=(s=t.opts.code).formats)!==null&&i!==void 0||(s.formats=(0,g0._)`require("ajv-formats/dist/formats").${n}`);for(let o of e)t.addFormat(o,r[o])}tC.exports=ql=v0;Object.defineProperty(ql,"__esModule",{value:!0});ql.default=v0});var dC=T((M$e,lC)=>{lC.exports=uC;uC.sync=k7;var aC=require("fs");function E7(t,e){var r=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var n=0;n{hC.exports=mC;mC.sync=$7;var pC=require("fs");function mC(t,e,r){pC.stat(t,function(n,i){r(n,n?!1:fC(i,e))})}function $7(t,e){return fC(pC.statSync(t),e)}function fC(t,e){return t.isFile()&&T7(t,e)}function T7(t,e){var r=t.mode,n=t.uid,i=t.gid,s=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),o=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),a=parseInt("100",8),c=parseInt("010",8),u=parseInt("001",8),l=a|c,d=r&u||r&c&&i===o||r&a&&n===s||r&l&&s===0;return d}});var yC=T((z$e,vC)=>{var j$e=require("fs"),Pf;process.platform==="win32"||global.TESTING_WINDOWS?Pf=dC():Pf=gC();vC.exports=y0;y0.sync=I7;function y0(t,e,r){if(typeof e=="function"&&(r=e,e={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,i){y0(t,e||{},function(s,o){s?i(s):n(o)})})}Pf(t,e||{},function(n,i){n&&(n.code==="EACCES"||e&&e.ignoreErrors)&&(n=null,i=!1),r(n,i)})}function I7(t,e){try{return Pf.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var kC=T((L$e,EC)=>{var Za=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",_C=require("path"),R7=Za?";":":",bC=yC(),xC=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),SC=(t,e)=>{let r=e.colon||R7,n=t.match(/\//)||Za&&t.match(/\\/)?[""]:[...Za?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],i=Za?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=Za?i.split(r):[""];return Za&&t.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:n,pathExt:s,pathExtExe:i}},wC=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:n,pathExt:i,pathExtExe:s}=SC(t,e),o=[],a=u=>new Promise((l,d)=>{if(u===n.length)return e.all&&o.length?l(o):d(xC(t));let p=n[u],m=/^".*"$/.test(p)?p.slice(1,-1):p,f=_C.join(m,t),g=!m&&/^\.[\\\/]/.test(t)?t.slice(0,2)+f:f;l(c(g,u,0))}),c=(u,l,d)=>new Promise((p,m)=>{if(d===i.length)return p(a(l+1));let f=i[d];bC(u+f,{pathExt:s},(g,h)=>{if(!g&&h)if(e.all)o.push(u+f);else return p(u+f);return p(c(u,l,d+1))})});return r?a(0).then(u=>r(null,u),r):a(0)},O7=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:n,pathExtExe:i}=SC(t,e),s=[];for(let o=0;o{"use strict";var $C=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};_0.exports=$C;_0.exports.default=$C});var PC=T((q$e,OC)=>{"use strict";var IC=require("path"),P7=kC(),C7=TC();function RC(t,e){let r=t.options.env||process.env,n=process.cwd(),i=t.options.cwd!=null,s=i&&process.chdir!==void 0&&!process.chdir.disabled;if(s)try{process.chdir(t.options.cwd)}catch{}let o;try{o=P7.sync(t.command,{path:r[C7({env:r})],pathExt:e?IC.delimiter:void 0})}catch{}finally{s&&process.chdir(n)}return o&&(o=IC.resolve(i?t.options.cwd:"",o)),o}function A7(t){return RC(t)||RC(t,!0)}OC.exports=A7});var CC=T((F$e,x0)=>{"use strict";var b0=/([()\][%!^"`<>&|;, *?])/g;function N7(t){return t=t.replace(b0,"^$1"),t}function M7(t,e){return t=`${t}`,t=t.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),t=t.replace(/(?=(\\+?)?)\1$/,"$1$1"),t=`"${t}"`,t=t.replace(b0,"^$1"),e&&(t=t.replace(b0,"^$1")),t}x0.exports.command=N7;x0.exports.argument=M7});var NC=T((H$e,AC)=>{"use strict";AC.exports=/^#!(.*)/});var DC=T((Z$e,MC)=>{"use strict";var D7=NC();MC.exports=(t="")=>{let e=t.match(D7);if(!e)return null;let[r,n]=e[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return i==="env"?n:n?`${i} ${n}`:i}});var zC=T((B$e,jC)=>{"use strict";var S0=require("fs"),j7=DC();function z7(t){let r=Buffer.alloc(150),n;try{n=S0.openSync(t,"r"),S0.readSync(n,r,0,150,0),S0.closeSync(n)}catch{}return j7(r.toString())}jC.exports=z7});var FC=T((V$e,qC)=>{"use strict";var L7=require("path"),LC=PC(),UC=CC(),U7=zC(),q7=process.platform==="win32",F7=/\.(?:com|exe)$/i,H7=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Z7(t){t.file=LC(t);let e=t.file&&U7(t.file);return e?(t.args.unshift(t.file),t.command=e,LC(t)):t.file}function B7(t){if(!q7)return t;let e=Z7(t),r=!F7.test(e);if(t.options.forceShell||r){let n=H7.test(e);t.command=L7.normalize(t.command),t.command=UC.command(t.command),t.args=t.args.map(s=>UC.argument(s,n));let i=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${i}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function V7(t,e,r){e&&!Array.isArray(e)&&(r=e,e=null),e=e?e.slice(0):[],r=Object.assign({},r);let n={command:t,args:e,options:r,file:void 0,original:{command:t,args:e}};return r.shell?n:B7(n)}qC.exports=V7});var BC=T((G$e,ZC)=>{"use strict";var w0=process.platform==="win32";function E0(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function G7(t,e){if(!w0)return;let r=t.emit;t.emit=function(n,i){if(n==="exit"){let s=HC(i,e);if(s)return r.call(t,"error",s)}return r.apply(t,arguments)}}function HC(t,e){return w0&&t===1&&!e.file?E0(e.original,"spawn"):null}function W7(t,e){return w0&&t===1&&!e.file?E0(e.original,"spawnSync"):null}ZC.exports={hookChildProcess:G7,verifyENOENT:HC,verifyENOENTSync:W7,notFoundError:E0}});var WC=T((W$e,Ba)=>{"use strict";var VC=require("child_process"),k0=FC(),$0=BC();function GC(t,e,r){let n=k0(t,e,r),i=VC.spawn(n.command,n.args,n.options);return $0.hookChildProcess(i,n),i}function K7(t,e,r){let n=k0(t,e,r),i=VC.spawnSync(n.command,n.args,n.options);return i.error=i.error||$0.verifyENOENTSync(i.status,n),i}Ba.exports=GC;Ba.exports.spawn=GC;Ba.exports.sync=K7;Ba.exports._parse=k0;Ba.exports._enoent=$0});var Gi,Hl,QC,T0,YC,I0,y,oe=Pe(()=>{"use strict";Gi=require("fs"),Hl=require("path"),QC=require("os"),T0=(s=>(s[s.DEBUG=0]="DEBUG",s[s.INFO=1]="INFO",s[s.WARN=2]="WARN",s[s.ERROR=3]="ERROR",s[s.SILENT=4]="SILENT",s))(T0||{}),YC=(0,Hl.join)((0,QC.homedir)(),".claude-mem"),I0=class{level=null;useColor;logFilePath=null;logFileInitialized=!1;constructor(){this.useColor=process.stdout.isTTY??!1}ensureLogFileInitialized(){if(!this.logFileInitialized){this.logFileInitialized=!0;try{let e=(0,Hl.join)(YC,"logs");(0,Gi.existsSync)(e)||(0,Gi.mkdirSync)(e,{recursive:!0});let r=new Date().toISOString().split("T")[0];this.logFilePath=(0,Hl.join)(e,`claude-mem-${r}.log`)}catch(e){console.error("[LOGGER] Failed to initialize log file:",e),this.logFilePath=null}}}getLevel(){if(this.level===null)try{let e=(0,Hl.join)(YC,"settings.json");if((0,Gi.existsSync)(e)){let r=(0,Gi.readFileSync)(e,"utf-8"),i=(JSON.parse(r).CLAUDE_MEM_LOG_LEVEL||"INFO").toUpperCase();this.level=T0[i]??1}else this.level=1}catch{this.level=1}return this.level}correlationId(e,r){return`obs-${e}-${r}`}sessionId(e){return`session-${e}`}formatData(e){if(e==null)return"";if(typeof e=="string")return e;if(typeof e=="number"||typeof e=="boolean")return e.toString();if(typeof e=="object"){if(e instanceof Error)return this.getLevel()===0?`${e.message} +${e.stack}`:e.message;if(Array.isArray(e))return`[${e.length} items]`;let r=Object.keys(e);return r.length===0?"{}":r.length<=3?JSON.stringify(e):`{${r.length} keys: ${r.slice(0,3).join(", ")}...}`}return String(e)}formatTool(e,r){if(!r)return e;let n=r;if(typeof r=="string")try{n=JSON.parse(r)}catch{n=r}if(e==="Bash"&&n.command)return`${e}(${n.command})`;if(n.file_path)return`${e}(${n.file_path})`;if(n.notebook_path)return`${e}(${n.notebook_path})`;if(e==="Glob"&&n.pattern)return`${e}(${n.pattern})`;if(e==="Grep"&&n.pattern)return`${e}(${n.pattern})`;if(n.url)return`${e}(${n.url})`;if(n.query)return`${e}(${n.query})`;if(e==="Task"){if(n.subagent_type)return`${e}(${n.subagent_type})`;if(n.description)return`${e}(${n.description})`}return e==="Skill"&&n.skill?`${e}(${n.skill})`:e==="LSP"&&n.operation?`${e}(${n.operation})`:e}formatTimestamp(e){let r=e.getFullYear(),n=String(e.getMonth()+1).padStart(2,"0"),i=String(e.getDate()).padStart(2,"0"),s=String(e.getHours()).padStart(2,"0"),o=String(e.getMinutes()).padStart(2,"0"),a=String(e.getSeconds()).padStart(2,"0"),c=String(e.getMilliseconds()).padStart(3,"0");return`${r}-${n}-${i} ${s}:${o}:${a}.${c}`}log(e,r,n,i,s){if(e0&&(d=` {${Object.entries(h).map(([x,b])=>`${x}=${b}`).join(", ")}}`)}let p=`[${o}] [${a}] [${c}] ${u}${n}${d}${l}`;if(this.logFilePath)try{(0,Gi.appendFileSync)(this.logFilePath,p+` +`,"utf8")}catch(m){process.stderr.write(`[LOGGER] Failed to write to log file: ${m} +`)}else process.stderr.write(p+` +`)}debug(e,r,n,i){this.log(0,e,r,n,i)}info(e,r,n,i){this.log(1,e,r,n,i)}warn(e,r,n,i){this.log(2,e,r,n,i)}error(e,r,n,i){this.log(3,e,r,n,i)}dataIn(e,r,n,i){this.info(e,`\u2192 ${r}`,n,i)}dataOut(e,r,n,i){this.info(e,`\u2190 ${r}`,n,i)}success(e,r,n,i){this.info(e,`\u2713 ${r}`,n,i)}failure(e,r,n,i){this.error(e,`\u2717 ${r}`,n,i)}timing(e,r,n,i){this.info(e,`\u23F1 ${r}`,i,{duration:`${n}ms`})}happyPathError(e,r,n,i,s=""){let u=((new Error().stack||"").split(` +`)[2]||"").match(/at\s+(?:.*\s+)?\(?([^:]+):(\d+):(\d+)\)?/),l=u?`${u[1].split("/").pop()}:${u[2]}`:"unknown",d={...n,location:l};return this.warn(e,`[HAPPY-PATH] ${r}`,d,i),s}},y=new I0});function Af(t){return process.platform==="win32"?Math.round(t*_r.WINDOWS_MULTIPLIER):t}var _r,tt,en=Pe(()=>{"use strict";_r={DEFAULT:3e5,HEALTH_CHECK:3e3,POST_SPAWN_WAIT:5e3,READINESS_WAIT:3e4,PORT_IN_USE_WAIT:3e3,WORKER_STARTUP_WAIT:1e3,PRE_RESTART_SETTLE_DELAY:2e3,POWERSHELL_COMMAND:1e4,WINDOWS_MULTIPLIER:1.5},tt={SUCCESS:0,FAILURE:1,BLOCKING_ERROR:2,USER_MESSAGE_ONLY:3}});var tA={};ln(tA,{SettingsDefaultsManager:()=>_e});var gi,Nf,eA,_e,Yt=Pe(()=>{"use strict";gi=require("fs"),Nf=require("path"),eA=require("os"),_e=class{static DEFAULTS={CLAUDE_MEM_MODEL:"claude-sonnet-4-5",CLAUDE_MEM_CONTEXT_OBSERVATIONS:"50",CLAUDE_MEM_WORKER_PORT:"37777",CLAUDE_MEM_WORKER_HOST:"127.0.0.1",CLAUDE_MEM_SKIP_TOOLS:"ListMcpResourcesTool,SlashCommand,Skill,TodoWrite,AskUserQuestion",CLAUDE_MEM_PROVIDER:"claude",CLAUDE_MEM_CLAUDE_AUTH_METHOD:"cli",CLAUDE_MEM_GEMINI_API_KEY:"",CLAUDE_MEM_GEMINI_MODEL:"gemini-2.5-flash-lite",CLAUDE_MEM_GEMINI_RATE_LIMITING_ENABLED:"true",CLAUDE_MEM_OPENROUTER_API_KEY:"",CLAUDE_MEM_OPENROUTER_MODEL:"xiaomi/mimo-v2-flash:free",CLAUDE_MEM_OPENROUTER_SITE_URL:"",CLAUDE_MEM_OPENROUTER_APP_NAME:"claude-mem",CLAUDE_MEM_OPENROUTER_MAX_CONTEXT_MESSAGES:"20",CLAUDE_MEM_OPENROUTER_MAX_TOKENS:"100000",CLAUDE_MEM_DATA_DIR:(0,Nf.join)((0,eA.homedir)(),".claude-mem"),CLAUDE_MEM_LOG_LEVEL:"INFO",CLAUDE_MEM_PYTHON_VERSION:"3.13",CLAUDE_CODE_PATH:"",CLAUDE_MEM_MODE:"code",CLAUDE_MEM_CONTEXT_SHOW_READ_TOKENS:"false",CLAUDE_MEM_CONTEXT_SHOW_WORK_TOKENS:"false",CLAUDE_MEM_CONTEXT_SHOW_SAVINGS_AMOUNT:"false",CLAUDE_MEM_CONTEXT_SHOW_SAVINGS_PERCENT:"true",CLAUDE_MEM_CONTEXT_FULL_COUNT:"0",CLAUDE_MEM_CONTEXT_FULL_FIELD:"narrative",CLAUDE_MEM_CONTEXT_SESSION_COUNT:"10",CLAUDE_MEM_CONTEXT_SHOW_LAST_SUMMARY:"true",CLAUDE_MEM_CONTEXT_SHOW_LAST_MESSAGE:"false",CLAUDE_MEM_CONTEXT_SHOW_TERMINAL_OUTPUT:"true",CLAUDE_MEM_FOLDER_CLAUDEMD_ENABLED:"false",CLAUDE_MEM_MAX_CONCURRENT_AGENTS:"2",CLAUDE_MEM_EXCLUDED_PROJECTS:"",CLAUDE_MEM_FOLDER_MD_EXCLUDE:"[]",CLAUDE_MEM_CHROMA_ENABLED:"true",CLAUDE_MEM_CHROMA_MODE:"local",CLAUDE_MEM_CHROMA_HOST:"127.0.0.1",CLAUDE_MEM_CHROMA_PORT:"8000",CLAUDE_MEM_CHROMA_SSL:"false",CLAUDE_MEM_CHROMA_API_KEY:"",CLAUDE_MEM_CHROMA_TENANT:"default_tenant",CLAUDE_MEM_CHROMA_DATABASE:"default_database"};static getAllDefaults(){return{...this.DEFAULTS}}static get(e){return process.env[e]??this.DEFAULTS[e]}static getInt(e){let r=this.get(e);return parseInt(r,10)}static getBool(e){let r=this.get(e);return r==="true"||r===!0}static applyEnvOverrides(e){let r={...e};for(let n of Object.keys(this.DEFAULTS))process.env[n]!==void 0&&(r[n]=process.env[n]);return r}static loadFromFile(e){try{if(!(0,gi.existsSync)(e)){let o=this.getAllDefaults();try{let a=(0,Nf.dirname)(e);(0,gi.existsSync)(a)||(0,gi.mkdirSync)(a,{recursive:!0}),(0,gi.writeFileSync)(e,JSON.stringify(o,null,2),"utf-8"),console.log("[SETTINGS] Created settings file with defaults:",e)}catch(a){console.warn("[SETTINGS] Failed to create settings file, using in-memory defaults:",e,a)}return this.applyEnvOverrides(o)}let r=(0,gi.readFileSync)(e,"utf-8"),n=JSON.parse(r),i=n;if(n.env&&typeof n.env=="object"){i=n.env;try{(0,gi.writeFileSync)(e,JSON.stringify(i,null,2),"utf-8"),console.log("[SETTINGS] Migrated settings file from nested to flat schema:",e)}catch(o){console.warn("[SETTINGS] Failed to auto-migrate settings file:",e,o)}}let s={...this.DEFAULTS};for(let o of Object.keys(this.DEFAULTS))i[o]!==void 0&&(s[o]=i[o]);return this.applyEnvOverrides(s)}catch(r){return console.warn("[SETTINGS] Failed to load settings, using defaults:",e,r),this.applyEnvOverrides(this.getAllDefaults())}}}});var uA={};ln(uA,{ARCHIVES_DIR:()=>O0,BACKUPS_DIR:()=>oA,CLAUDE_COMMANDS_DIR:()=>aA,CLAUDE_CONFIG_DIR:()=>Wi,CLAUDE_MD_PATH:()=>sK,CLAUDE_SETTINGS_PATH:()=>iK,DATA_DIR:()=>ar,DB_PATH:()=>Zl,LOGS_DIR:()=>iA,MARKETPLACE_ROOT:()=>Ki,MODES_DIR:()=>P0,OBSERVER_SESSIONS_DIR:()=>Df,TRASH_DIR:()=>sA,USER_SETTINGS_PATH:()=>At,VECTOR_DB_DIR:()=>nK,createBackupFilename:()=>pK,ensureAllClaudeDirs:()=>lK,ensureAllDataDirs:()=>cK,ensureDir:()=>Ir,ensureModesDir:()=>uK,getCurrentProjectName:()=>cA,getPackageCommandsDir:()=>dK,getPackageRoot:()=>tn,getProjectArchiveDir:()=>oK,getWorkerSocketPath:()=>aK});function eK(){return typeof __dirname<"u"?__dirname:(0,lt.dirname)((0,nA.fileURLToPath)(mK.url))}function rK(){if(process.env.CLAUDE_MEM_DATA_DIR)return process.env.CLAUDE_MEM_DATA_DIR;let t=(0,lt.join)((0,R0.homedir)(),".claude-mem"),e=(0,lt.join)(t,"settings.json");try{if((0,Mf.existsSync)(e)){let{readFileSync:r}=require("fs"),n=JSON.parse(r(e,"utf-8")),i=n.env??n;if(i.CLAUDE_MEM_DATA_DIR)return i.CLAUDE_MEM_DATA_DIR}}catch{}return t}function oK(t){return(0,lt.join)(O0,t)}function aK(t){return(0,lt.join)(ar,`worker-${t}.sock`)}function Ir(t){(0,Mf.mkdirSync)(t,{recursive:!0})}function cK(){Ir(ar),Ir(O0),Ir(iA),Ir(sA),Ir(oA),Ir(P0)}function uK(){Ir(P0)}function lK(){Ir(Wi),Ir(aA)}function cA(){try{let t=(0,rA.execSync)("git rev-parse --show-toplevel",{cwd:process.cwd(),encoding:"utf8",stdio:["pipe","pipe","ignore"],windowsHide:!0}).trim();return(0,lt.basename)((0,lt.dirname)(t))+"/"+(0,lt.basename)(t)}catch(t){y.debug("SYSTEM","Git root detection failed, using cwd basename",{cwd:process.cwd()},t);let e=process.cwd();return(0,lt.basename)((0,lt.dirname)(e))+"/"+(0,lt.basename)(e)}}function tn(){return(0,lt.join)(tK,"..")}function dK(){let t=tn();return(0,lt.join)(t,"commands")}function pK(t){let e=new Date().toISOString().replace(/[:.]/g,"-").replace("T","_").slice(0,19);return`${t}.backup.${e}`}var lt,R0,Mf,rA,nA,mK,tK,ar,Wi,Ki,O0,iA,sA,oA,P0,At,Zl,nK,Df,iK,aA,sK,Nt=Pe(()=>{"use strict";lt=require("path"),R0=require("os"),Mf=require("fs"),rA=require("child_process"),nA=require("url");oe();mK={};tK=eK();ar=rK(),Wi=process.env.CLAUDE_CONFIG_DIR||(0,lt.join)((0,R0.homedir)(),".claude"),Ki=(0,lt.join)(Wi,"plugins","marketplaces","thedotmack"),O0=(0,lt.join)(ar,"archives"),iA=(0,lt.join)(ar,"logs"),sA=(0,lt.join)(ar,"trash"),oA=(0,lt.join)(ar,"backups"),P0=(0,lt.join)(ar,"modes"),At=(0,lt.join)(ar,"settings.json"),Zl=(0,lt.join)(ar,"claude-mem.db"),nK=(0,lt.join)(ar,"vector-db"),Df=(0,lt.join)(ar,"observer-sessions"),iK=(0,lt.join)(Wi,"settings.json"),aA=(0,lt.join)(Wi,"commands"),sK=(0,lt.join)(Wi,"CLAUDE.md")});function fK(t,e={},r){return new Promise((n,i)=>{let s=setTimeout(()=>i(new Error(`Request timed out after ${r}ms`)),r);fetch(t,e).then(o=>{clearTimeout(s),n(o)},o=>{clearTimeout(s),i(o)})})}function Fr(){if(Bl!==null)return Bl;let t=jf.default.join(_e.get("CLAUDE_MEM_DATA_DIR"),"settings.json"),e=_e.loadFromFile(t);return Bl=parseInt(e.CLAUDE_MEM_WORKER_PORT,10),Bl}function A0(){if(Vl!==null)return Vl;let t=jf.default.join(_e.get("CLAUDE_MEM_DATA_DIR"),"settings.json");return Vl=_e.loadFromFile(t).CLAUDE_MEM_WORKER_HOST,Vl}function dA(){Bl=null,Vl=null}function hK(t){return`http://${A0()}:${Fr()}${t}`}function wt(t,e={}){let r=e.method??"GET",n=e.timeoutMs??C0,i=hK(t),s={method:r};return e.headers&&(s.headers=e.headers),e.body&&(s.body=e.body),n>0?fK(i,s,n):fetch(i,s)}async function gK(){return(await wt("/api/health",{timeoutMs:C0})).ok}function vK(){try{let t=jf.default.join(Ki,"package.json");return JSON.parse((0,lA.readFileSync)(t,"utf-8")).version}catch(t){let e=t.code;if(e==="ENOENT"||e==="EBUSY")return y.debug("SYSTEM","Could not read plugin version (shutdown race)",{code:e}),"unknown";throw t}}async function yK(){let t=await wt("/api/version",{timeoutMs:C0});if(!t.ok)throw new Error(`Failed to get worker version: ${t.status}`);return(await t.json()).version}async function _K(){try{let t=vK();if(t==="unknown")return;let e=await yK();if(e==="unknown")return;t!==e&&y.debug("SYSTEM","Version check",{pluginVersion:t,workerVersion:e,note:"Mismatch will be auto-restarted by worker-service start command"})}catch(t){y.debug("SYSTEM","Version check failed",{error:t instanceof Error?t.message:String(t)})}}async function Rr(){try{if(await gK())return await _K(),!0}catch(t){y.debug("SYSTEM","Worker health check failed",{error:t instanceof Error?t.message:String(t)})}return y.warn("SYSTEM","Worker not healthy, hook will proceed gracefully"),!1}var jf,lA,C0,Bl,Vl,Or=Pe(()=>{"use strict";jf=Ue(require("path"),1),lA=require("fs");oe();en();Yt();Nt();C0=(()=>{let t=process.env.CLAUDE_MEM_HEALTH_TIMEOUT_MS;if(t){let e=parseInt(t,10);if(Number.isFinite(e)&&e>=500&&e<=3e5)return e;y.warn("SYSTEM","Invalid CLAUDE_MEM_HEALTH_TIMEOUT_MS, using default",{value:t,min:500,max:3e5})}return Af(_r.HEALTH_CHECK)})();Bl=null,Vl=null});function Ff(t,e,r){return(0,PA.createHash)("sha256").update((t||"")+(e||"")+(r||"")).digest("hex").slice(0,16)}function Hf(t,e,r){let n=r-zK;return t.prepare("SELECT id, created_at_epoch FROM observations WHERE content_hash = ? AND created_at_epoch > ?").get(e,n)}var PA,zK,CA=Pe(()=>{"use strict";PA=require("crypto");oe();Nt();zK=3e4});var AA,Yi,Zf=Pe(()=>{"use strict";AA=require("bun:sqlite");Nt();oe();CA();Yi=class{db;constructor(e=Zl){e!==":memory:"&&Ir(ar),this.db=new AA.Database(e),this.db.run("PRAGMA journal_mode = WAL"),this.db.run("PRAGMA synchronous = NORMAL"),this.db.run("PRAGMA foreign_keys = ON"),this.initializeSchema(),this.ensureWorkerPortColumn(),this.ensurePromptTrackingColumns(),this.removeSessionSummariesUniqueConstraint(),this.addObservationHierarchicalFields(),this.makeObservationsTextNullable(),this.createUserPromptsTable(),this.ensureDiscoveryTokensColumn(),this.createPendingMessagesTable(),this.renameSessionIdColumns(),this.repairSessionIdColumnRename(),this.addFailedAtEpochColumn(),this.addOnUpdateCascadeToForeignKeys(),this.addObservationContentHashColumn(),this.addSessionCustomTitleColumn()}initializeSchema(){this.db.run(` CREATE TABLE IF NOT EXISTS schema_versions ( id INTEGER PRIMARY KEY, version INTEGER UNIQUE NOT NULL, applied_at TEXT NOT NULL ) - `); - this.db.run(` + `),this.db.run(` CREATE TABLE IF NOT EXISTS sdk_sessions ( id INTEGER PRIMARY KEY AUTOINCREMENT, content_session_id TEXT UNIQUE NOT NULL, @@ -7739,50 +76,7 @@ class SessionStore { CREATE INDEX IF NOT EXISTS idx_session_summaries_sdk_session ON session_summaries(memory_session_id); CREATE INDEX IF NOT EXISTS idx_session_summaries_project ON session_summaries(project); CREATE INDEX IF NOT EXISTS idx_session_summaries_created ON session_summaries(created_at_epoch DESC); - `); - this.db.prepare("INSERT OR IGNORE INTO schema_versions (version, applied_at) VALUES (?, ?)").run(4, new Date().toISOString()); - } - ensureWorkerPortColumn() { - const tableInfo = this.db.query("PRAGMA table_info(sdk_sessions)").all(); - const hasWorkerPort = tableInfo.some((col) => col.name === "worker_port"); - if (!hasWorkerPort) { - this.db.run("ALTER TABLE sdk_sessions ADD COLUMN worker_port INTEGER"); - logger.debug("DB", "Added worker_port column to sdk_sessions table"); - } - this.db.prepare("INSERT OR IGNORE INTO schema_versions (version, applied_at) VALUES (?, ?)").run(5, new Date().toISOString()); - } - ensurePromptTrackingColumns() { - const sessionsInfo = this.db.query("PRAGMA table_info(sdk_sessions)").all(); - const hasPromptCounter = sessionsInfo.some((col) => col.name === "prompt_counter"); - if (!hasPromptCounter) { - this.db.run("ALTER TABLE sdk_sessions ADD COLUMN prompt_counter INTEGER DEFAULT 0"); - logger.debug("DB", "Added prompt_counter column to sdk_sessions table"); - } - const observationsInfo = this.db.query("PRAGMA table_info(observations)").all(); - const obsHasPromptNumber = observationsInfo.some((col) => col.name === "prompt_number"); - if (!obsHasPromptNumber) { - this.db.run("ALTER TABLE observations ADD COLUMN prompt_number INTEGER"); - logger.debug("DB", "Added prompt_number column to observations table"); - } - const summariesInfo = this.db.query("PRAGMA table_info(session_summaries)").all(); - const sumHasPromptNumber = summariesInfo.some((col) => col.name === "prompt_number"); - if (!sumHasPromptNumber) { - this.db.run("ALTER TABLE session_summaries ADD COLUMN prompt_number INTEGER"); - logger.debug("DB", "Added prompt_number column to session_summaries table"); - } - this.db.prepare("INSERT OR IGNORE INTO schema_versions (version, applied_at) VALUES (?, ?)").run(6, new Date().toISOString()); - } - removeSessionSummariesUniqueConstraint() { - const summariesIndexes = this.db.query("PRAGMA index_list(session_summaries)").all(); - const hasUniqueConstraint = summariesIndexes.some((idx) => idx.unique === 1); - if (!hasUniqueConstraint) { - this.db.prepare("INSERT OR IGNORE INTO schema_versions (version, applied_at) VALUES (?, ?)").run(7, new Date().toISOString()); - return; - } - logger.debug("DB", "Removing UNIQUE constraint from session_summaries.memory_session_id"); - this.db.run("BEGIN TRANSACTION"); - this.db.run("DROP TABLE IF EXISTS session_summaries_new"); - this.db.run(` + `),this.db.prepare("INSERT OR IGNORE INTO schema_versions (version, applied_at) VALUES (?, ?)").run(4,new Date().toISOString())}ensureWorkerPortColumn(){this.db.query("PRAGMA table_info(sdk_sessions)").all().some(n=>n.name==="worker_port")||(this.db.run("ALTER TABLE sdk_sessions ADD COLUMN worker_port INTEGER"),y.debug("DB","Added worker_port column to sdk_sessions table")),this.db.prepare("INSERT OR IGNORE INTO schema_versions (version, applied_at) VALUES (?, ?)").run(5,new Date().toISOString())}ensurePromptTrackingColumns(){this.db.query("PRAGMA table_info(sdk_sessions)").all().some(a=>a.name==="prompt_counter")||(this.db.run("ALTER TABLE sdk_sessions ADD COLUMN prompt_counter INTEGER DEFAULT 0"),y.debug("DB","Added prompt_counter column to sdk_sessions table")),this.db.query("PRAGMA table_info(observations)").all().some(a=>a.name==="prompt_number")||(this.db.run("ALTER TABLE observations ADD COLUMN prompt_number INTEGER"),y.debug("DB","Added prompt_number column to observations table")),this.db.query("PRAGMA table_info(session_summaries)").all().some(a=>a.name==="prompt_number")||(this.db.run("ALTER TABLE session_summaries ADD COLUMN prompt_number INTEGER"),y.debug("DB","Added prompt_number column to session_summaries table")),this.db.prepare("INSERT OR IGNORE INTO schema_versions (version, applied_at) VALUES (?, ?)").run(6,new Date().toISOString())}removeSessionSummariesUniqueConstraint(){if(!this.db.query("PRAGMA index_list(session_summaries)").all().some(n=>n.unique===1)){this.db.prepare("INSERT OR IGNORE INTO schema_versions (version, applied_at) VALUES (?, ?)").run(7,new Date().toISOString());return}y.debug("DB","Removing UNIQUE constraint from session_summaries.memory_session_id"),this.db.run("BEGIN TRANSACTION"),this.db.run("DROP TABLE IF EXISTS session_summaries_new"),this.db.run(` CREATE TABLE session_summaries_new ( id INTEGER PRIMARY KEY AUTOINCREMENT, memory_session_id TEXT NOT NULL, @@ -7800,37 +94,17 @@ class SessionStore { created_at_epoch INTEGER NOT NULL, FOREIGN KEY(memory_session_id) REFERENCES sdk_sessions(memory_session_id) ON DELETE CASCADE ) - `); - this.db.run(` + `),this.db.run(` INSERT INTO session_summaries_new SELECT id, memory_session_id, project, request, investigated, learned, completed, next_steps, files_read, files_edited, notes, prompt_number, created_at, created_at_epoch FROM session_summaries - `); - this.db.run("DROP TABLE session_summaries"); - this.db.run("ALTER TABLE session_summaries_new RENAME TO session_summaries"); - this.db.run(` + `),this.db.run("DROP TABLE session_summaries"),this.db.run("ALTER TABLE session_summaries_new RENAME TO session_summaries"),this.db.run(` CREATE INDEX idx_session_summaries_sdk_session ON session_summaries(memory_session_id); CREATE INDEX idx_session_summaries_project ON session_summaries(project); CREATE INDEX idx_session_summaries_created ON session_summaries(created_at_epoch DESC); - `); - this.db.run("COMMIT"); - this.db.prepare("INSERT OR IGNORE INTO schema_versions (version, applied_at) VALUES (?, ?)").run(7, new Date().toISOString()); - logger.debug("DB", "Successfully removed UNIQUE constraint from session_summaries.memory_session_id"); - } - addObservationHierarchicalFields() { - const applied = this.db.prepare("SELECT version FROM schema_versions WHERE version = ?").get(8); - if (applied) - return; - const tableInfo = this.db.query("PRAGMA table_info(observations)").all(); - const hasTitle = tableInfo.some((col) => col.name === "title"); - if (hasTitle) { - this.db.prepare("INSERT OR IGNORE INTO schema_versions (version, applied_at) VALUES (?, ?)").run(8, new Date().toISOString()); - return; - } - logger.debug("DB", "Adding hierarchical fields to observations table"); - this.db.run(` + `),this.db.run("COMMIT"),this.db.prepare("INSERT OR IGNORE INTO schema_versions (version, applied_at) VALUES (?, ?)").run(7,new Date().toISOString()),y.debug("DB","Successfully removed UNIQUE constraint from session_summaries.memory_session_id")}addObservationHierarchicalFields(){if(this.db.prepare("SELECT version FROM schema_versions WHERE version = ?").get(8))return;if(this.db.query("PRAGMA table_info(observations)").all().some(i=>i.name==="title")){this.db.prepare("INSERT OR IGNORE INTO schema_versions (version, applied_at) VALUES (?, ?)").run(8,new Date().toISOString());return}y.debug("DB","Adding hierarchical fields to observations table"),this.db.run(` ALTER TABLE observations ADD COLUMN title TEXT; ALTER TABLE observations ADD COLUMN subtitle TEXT; ALTER TABLE observations ADD COLUMN facts TEXT; @@ -7838,24 +112,7 @@ class SessionStore { ALTER TABLE observations ADD COLUMN concepts TEXT; ALTER TABLE observations ADD COLUMN files_read TEXT; ALTER TABLE observations ADD COLUMN files_modified TEXT; - `); - this.db.prepare("INSERT OR IGNORE INTO schema_versions (version, applied_at) VALUES (?, ?)").run(8, new Date().toISOString()); - logger.debug("DB", "Successfully added hierarchical fields to observations table"); - } - makeObservationsTextNullable() { - const applied = this.db.prepare("SELECT version FROM schema_versions WHERE version = ?").get(9); - if (applied) - return; - const tableInfo = this.db.query("PRAGMA table_info(observations)").all(); - const textColumn = tableInfo.find((col) => col.name === "text"); - if (!textColumn || textColumn.notnull === 0) { - this.db.prepare("INSERT OR IGNORE INTO schema_versions (version, applied_at) VALUES (?, ?)").run(9, new Date().toISOString()); - return; - } - logger.debug("DB", "Making observations.text nullable"); - this.db.run("BEGIN TRANSACTION"); - this.db.run("DROP TABLE IF EXISTS observations_new"); - this.db.run(` + `),this.db.prepare("INSERT OR IGNORE INTO schema_versions (version, applied_at) VALUES (?, ?)").run(8,new Date().toISOString()),y.debug("DB","Successfully added hierarchical fields to observations table")}makeObservationsTextNullable(){if(this.db.prepare("SELECT version FROM schema_versions WHERE version = ?").get(9))return;let n=this.db.query("PRAGMA table_info(observations)").all().find(i=>i.name==="text");if(!n||n.notnull===0){this.db.prepare("INSERT OR IGNORE INTO schema_versions (version, applied_at) VALUES (?, ?)").run(9,new Date().toISOString());return}y.debug("DB","Making observations.text nullable"),this.db.run("BEGIN TRANSACTION"),this.db.run("DROP TABLE IF EXISTS observations_new"),this.db.run(` CREATE TABLE observations_new ( id INTEGER PRIMARY KEY AUTOINCREMENT, memory_session_id TEXT NOT NULL, @@ -7874,38 +131,18 @@ class SessionStore { created_at_epoch INTEGER NOT NULL, FOREIGN KEY(memory_session_id) REFERENCES sdk_sessions(memory_session_id) ON DELETE CASCADE ) - `); - this.db.run(` + `),this.db.run(` INSERT INTO observations_new SELECT id, memory_session_id, project, text, type, title, subtitle, facts, narrative, concepts, files_read, files_modified, prompt_number, created_at, created_at_epoch FROM observations - `); - this.db.run("DROP TABLE observations"); - this.db.run("ALTER TABLE observations_new RENAME TO observations"); - this.db.run(` + `),this.db.run("DROP TABLE observations"),this.db.run("ALTER TABLE observations_new RENAME TO observations"),this.db.run(` CREATE INDEX idx_observations_sdk_session ON observations(memory_session_id); CREATE INDEX idx_observations_project ON observations(project); CREATE INDEX idx_observations_type ON observations(type); CREATE INDEX idx_observations_created ON observations(created_at_epoch DESC); - `); - this.db.run("COMMIT"); - this.db.prepare("INSERT OR IGNORE INTO schema_versions (version, applied_at) VALUES (?, ?)").run(9, new Date().toISOString()); - logger.debug("DB", "Successfully made observations.text nullable"); - } - createUserPromptsTable() { - const applied = this.db.prepare("SELECT version FROM schema_versions WHERE version = ?").get(10); - if (applied) - return; - const tableInfo = this.db.query("PRAGMA table_info(user_prompts)").all(); - if (tableInfo.length > 0) { - this.db.prepare("INSERT OR IGNORE INTO schema_versions (version, applied_at) VALUES (?, ?)").run(10, new Date().toISOString()); - return; - } - logger.debug("DB", "Creating user_prompts table with FTS5 support"); - this.db.run("BEGIN TRANSACTION"); - this.db.run(` + `),this.db.run("COMMIT"),this.db.prepare("INSERT OR IGNORE INTO schema_versions (version, applied_at) VALUES (?, ?)").run(9,new Date().toISOString()),y.debug("DB","Successfully made observations.text nullable")}createUserPromptsTable(){if(this.db.prepare("SELECT version FROM schema_versions WHERE version = ?").get(10))return;if(this.db.query("PRAGMA table_info(user_prompts)").all().length>0){this.db.prepare("INSERT OR IGNORE INTO schema_versions (version, applied_at) VALUES (?, ?)").run(10,new Date().toISOString());return}y.debug("DB","Creating user_prompts table with FTS5 support"),this.db.run("BEGIN TRANSACTION"),this.db.run(` CREATE TABLE user_prompts ( id INTEGER PRIMARY KEY AUTOINCREMENT, content_session_id TEXT NOT NULL, @@ -7920,16 +157,13 @@ class SessionStore { CREATE INDEX idx_user_prompts_created ON user_prompts(created_at_epoch DESC); CREATE INDEX idx_user_prompts_prompt_number ON user_prompts(prompt_number); CREATE INDEX idx_user_prompts_lookup ON user_prompts(content_session_id, prompt_number); - `); - try { - this.db.run(` + `);try{this.db.run(` CREATE VIRTUAL TABLE user_prompts_fts USING fts5( prompt_text, content='user_prompts', content_rowid='id' ); - `); - this.db.run(` + `),this.db.run(` CREATE TRIGGER user_prompts_ai AFTER INSERT ON user_prompts BEGIN INSERT INTO user_prompts_fts(rowid, prompt_text) VALUES (new.id, new.prompt_text); @@ -7946,43 +180,7 @@ class SessionStore { INSERT INTO user_prompts_fts(rowid, prompt_text) VALUES (new.id, new.prompt_text); END; - `); - } catch (ftsError) { - logger.warn("DB", "FTS5 not available — user_prompts_fts skipped (search uses ChromaDB)", {}, ftsError); - } - this.db.run("COMMIT"); - this.db.prepare("INSERT OR IGNORE INTO schema_versions (version, applied_at) VALUES (?, ?)").run(10, new Date().toISOString()); - logger.debug("DB", "Successfully created user_prompts table"); - } - ensureDiscoveryTokensColumn() { - const applied = this.db.prepare("SELECT version FROM schema_versions WHERE version = ?").get(11); - if (applied) - return; - const observationsInfo = this.db.query("PRAGMA table_info(observations)").all(); - const obsHasDiscoveryTokens = observationsInfo.some((col) => col.name === "discovery_tokens"); - if (!obsHasDiscoveryTokens) { - this.db.run("ALTER TABLE observations ADD COLUMN discovery_tokens INTEGER DEFAULT 0"); - logger.debug("DB", "Added discovery_tokens column to observations table"); - } - const summariesInfo = this.db.query("PRAGMA table_info(session_summaries)").all(); - const sumHasDiscoveryTokens = summariesInfo.some((col) => col.name === "discovery_tokens"); - if (!sumHasDiscoveryTokens) { - this.db.run("ALTER TABLE session_summaries ADD COLUMN discovery_tokens INTEGER DEFAULT 0"); - logger.debug("DB", "Added discovery_tokens column to session_summaries table"); - } - this.db.prepare("INSERT OR IGNORE INTO schema_versions (version, applied_at) VALUES (?, ?)").run(11, new Date().toISOString()); - } - createPendingMessagesTable() { - const applied = this.db.prepare("SELECT version FROM schema_versions WHERE version = ?").get(16); - if (applied) - return; - const tables = this.db.query("SELECT name FROM sqlite_master WHERE type='table' AND name='pending_messages'").all(); - if (tables.length > 0) { - this.db.prepare("INSERT OR IGNORE INTO schema_versions (version, applied_at) VALUES (?, ?)").run(16, new Date().toISOString()); - return; - } - logger.debug("DB", "Creating pending_messages table"); - this.db.run(` + `)}catch(n){y.warn("DB","FTS5 not available \u2014 user_prompts_fts skipped (search uses ChromaDB)",{},n)}this.db.run("COMMIT"),this.db.prepare("INSERT OR IGNORE INTO schema_versions (version, applied_at) VALUES (?, ?)").run(10,new Date().toISOString()),y.debug("DB","Successfully created user_prompts table")}ensureDiscoveryTokensColumn(){if(this.db.prepare("SELECT version FROM schema_versions WHERE version = ?").get(11))return;this.db.query("PRAGMA table_info(observations)").all().some(o=>o.name==="discovery_tokens")||(this.db.run("ALTER TABLE observations ADD COLUMN discovery_tokens INTEGER DEFAULT 0"),y.debug("DB","Added discovery_tokens column to observations table")),this.db.query("PRAGMA table_info(session_summaries)").all().some(o=>o.name==="discovery_tokens")||(this.db.run("ALTER TABLE session_summaries ADD COLUMN discovery_tokens INTEGER DEFAULT 0"),y.debug("DB","Added discovery_tokens column to session_summaries table")),this.db.prepare("INSERT OR IGNORE INTO schema_versions (version, applied_at) VALUES (?, ?)").run(11,new Date().toISOString())}createPendingMessagesTable(){if(this.db.prepare("SELECT version FROM schema_versions WHERE version = ?").get(16))return;if(this.db.query("SELECT name FROM sqlite_master WHERE type='table' AND name='pending_messages'").all().length>0){this.db.prepare("INSERT OR IGNORE INTO schema_versions (version, applied_at) VALUES (?, ?)").run(16,new Date().toISOString());return}y.debug("DB","Creating pending_messages table"),this.db.run(` CREATE TABLE pending_messages ( id INTEGER PRIMARY KEY AUTOINCREMENT, session_db_id INTEGER NOT NULL, @@ -8002,84 +200,7 @@ class SessionStore { completed_at_epoch INTEGER, FOREIGN KEY (session_db_id) REFERENCES sdk_sessions(id) ON DELETE CASCADE ) - `); - this.db.run("CREATE INDEX IF NOT EXISTS idx_pending_messages_session ON pending_messages(session_db_id)"); - this.db.run("CREATE INDEX IF NOT EXISTS idx_pending_messages_status ON pending_messages(status)"); - this.db.run("CREATE INDEX IF NOT EXISTS idx_pending_messages_claude_session ON pending_messages(content_session_id)"); - this.db.prepare("INSERT OR IGNORE INTO schema_versions (version, applied_at) VALUES (?, ?)").run(16, new Date().toISOString()); - logger.debug("DB", "pending_messages table created successfully"); - } - renameSessionIdColumns() { - const applied = this.db.prepare("SELECT version FROM schema_versions WHERE version = ?").get(17); - if (applied) - return; - logger.debug("DB", "Checking session ID columns for semantic clarity rename"); - let renamesPerformed = 0; - const safeRenameColumn = (table, oldCol, newCol) => { - const tableInfo = this.db.query(`PRAGMA table_info(${table})`).all(); - const hasOldCol = tableInfo.some((col) => col.name === oldCol); - const hasNewCol = tableInfo.some((col) => col.name === newCol); - if (hasNewCol) { - return false; - } - if (hasOldCol) { - this.db.run(`ALTER TABLE ${table} RENAME COLUMN ${oldCol} TO ${newCol}`); - logger.debug("DB", `Renamed ${table}.${oldCol} to ${newCol}`); - return true; - } - logger.warn("DB", `Column ${oldCol} not found in ${table}, skipping rename`); - return false; - }; - if (safeRenameColumn("sdk_sessions", "claude_session_id", "content_session_id")) - renamesPerformed++; - if (safeRenameColumn("sdk_sessions", "sdk_session_id", "memory_session_id")) - renamesPerformed++; - if (safeRenameColumn("pending_messages", "claude_session_id", "content_session_id")) - renamesPerformed++; - if (safeRenameColumn("observations", "sdk_session_id", "memory_session_id")) - renamesPerformed++; - if (safeRenameColumn("session_summaries", "sdk_session_id", "memory_session_id")) - renamesPerformed++; - if (safeRenameColumn("user_prompts", "claude_session_id", "content_session_id")) - renamesPerformed++; - this.db.prepare("INSERT OR IGNORE INTO schema_versions (version, applied_at) VALUES (?, ?)").run(17, new Date().toISOString()); - if (renamesPerformed > 0) { - logger.debug("DB", `Successfully renamed ${renamesPerformed} session ID columns`); - } else { - logger.debug("DB", "No session ID column renames needed (already up to date)"); - } - } - repairSessionIdColumnRename() { - const applied = this.db.prepare("SELECT version FROM schema_versions WHERE version = ?").get(19); - if (applied) - return; - this.db.prepare("INSERT OR IGNORE INTO schema_versions (version, applied_at) VALUES (?, ?)").run(19, new Date().toISOString()); - } - addFailedAtEpochColumn() { - const applied = this.db.prepare("SELECT version FROM schema_versions WHERE version = ?").get(20); - if (applied) - return; - const tableInfo = this.db.query("PRAGMA table_info(pending_messages)").all(); - const hasColumn = tableInfo.some((col) => col.name === "failed_at_epoch"); - if (!hasColumn) { - this.db.run("ALTER TABLE pending_messages ADD COLUMN failed_at_epoch INTEGER"); - logger.debug("DB", "Added failed_at_epoch column to pending_messages table"); - } - this.db.prepare("INSERT OR IGNORE INTO schema_versions (version, applied_at) VALUES (?, ?)").run(20, new Date().toISOString()); - } - addOnUpdateCascadeToForeignKeys() { - const applied = this.db.prepare("SELECT version FROM schema_versions WHERE version = ?").get(21); - if (applied) - return; - logger.debug("DB", "Adding ON UPDATE CASCADE to FK constraints on observations and session_summaries"); - this.db.run("PRAGMA foreign_keys = OFF"); - this.db.run("BEGIN TRANSACTION"); - try { - this.db.run("DROP TRIGGER IF EXISTS observations_ai"); - this.db.run("DROP TRIGGER IF EXISTS observations_ad"); - this.db.run("DROP TRIGGER IF EXISTS observations_au"); - this.db.run("DROP TABLE IF EXISTS observations_new"); - this.db.run(` + `),this.db.run("CREATE INDEX IF NOT EXISTS idx_pending_messages_session ON pending_messages(session_db_id)"),this.db.run("CREATE INDEX IF NOT EXISTS idx_pending_messages_status ON pending_messages(status)"),this.db.run("CREATE INDEX IF NOT EXISTS idx_pending_messages_claude_session ON pending_messages(content_session_id)"),this.db.prepare("INSERT OR IGNORE INTO schema_versions (version, applied_at) VALUES (?, ?)").run(16,new Date().toISOString()),y.debug("DB","pending_messages table created successfully")}renameSessionIdColumns(){if(this.db.prepare("SELECT version FROM schema_versions WHERE version = ?").get(17))return;y.debug("DB","Checking session ID columns for semantic clarity rename");let r=0,n=(i,s,o)=>{let a=this.db.query(`PRAGMA table_info(${i})`).all(),c=a.some(l=>l.name===s);return a.some(l=>l.name===o)?!1:c?(this.db.run(`ALTER TABLE ${i} RENAME COLUMN ${s} TO ${o}`),y.debug("DB",`Renamed ${i}.${s} to ${o}`),!0):(y.warn("DB",`Column ${s} not found in ${i}, skipping rename`),!1)};n("sdk_sessions","claude_session_id","content_session_id")&&r++,n("sdk_sessions","sdk_session_id","memory_session_id")&&r++,n("pending_messages","claude_session_id","content_session_id")&&r++,n("observations","sdk_session_id","memory_session_id")&&r++,n("session_summaries","sdk_session_id","memory_session_id")&&r++,n("user_prompts","claude_session_id","content_session_id")&&r++,this.db.prepare("INSERT OR IGNORE INTO schema_versions (version, applied_at) VALUES (?, ?)").run(17,new Date().toISOString()),r>0?y.debug("DB",`Successfully renamed ${r} session ID columns`):y.debug("DB","No session ID column renames needed (already up to date)")}repairSessionIdColumnRename(){this.db.prepare("SELECT version FROM schema_versions WHERE version = ?").get(19)||this.db.prepare("INSERT OR IGNORE INTO schema_versions (version, applied_at) VALUES (?, ?)").run(19,new Date().toISOString())}addFailedAtEpochColumn(){if(this.db.prepare("SELECT version FROM schema_versions WHERE version = ?").get(20))return;this.db.query("PRAGMA table_info(pending_messages)").all().some(i=>i.name==="failed_at_epoch")||(this.db.run("ALTER TABLE pending_messages ADD COLUMN failed_at_epoch INTEGER"),y.debug("DB","Added failed_at_epoch column to pending_messages table")),this.db.prepare("INSERT OR IGNORE INTO schema_versions (version, applied_at) VALUES (?, ?)").run(20,new Date().toISOString())}addOnUpdateCascadeToForeignKeys(){if(!this.db.prepare("SELECT version FROM schema_versions WHERE version = ?").get(21)){y.debug("DB","Adding ON UPDATE CASCADE to FK constraints on observations and session_summaries"),this.db.run("PRAGMA foreign_keys = OFF"),this.db.run("BEGIN TRANSACTION");try{this.db.run("DROP TRIGGER IF EXISTS observations_ai"),this.db.run("DROP TRIGGER IF EXISTS observations_ad"),this.db.run("DROP TRIGGER IF EXISTS observations_au"),this.db.run("DROP TABLE IF EXISTS observations_new"),this.db.run(` CREATE TABLE observations_new ( id INTEGER PRIMARY KEY AUTOINCREMENT, memory_session_id TEXT NOT NULL, @@ -8099,25 +220,18 @@ class SessionStore { created_at_epoch INTEGER NOT NULL, FOREIGN KEY(memory_session_id) REFERENCES sdk_sessions(memory_session_id) ON DELETE CASCADE ON UPDATE CASCADE ) - `); - this.db.run(` + `),this.db.run(` INSERT INTO observations_new SELECT id, memory_session_id, project, text, type, title, subtitle, facts, narrative, concepts, files_read, files_modified, prompt_number, discovery_tokens, created_at, created_at_epoch FROM observations - `); - this.db.run("DROP TABLE observations"); - this.db.run("ALTER TABLE observations_new RENAME TO observations"); - this.db.run(` + `),this.db.run("DROP TABLE observations"),this.db.run("ALTER TABLE observations_new RENAME TO observations"),this.db.run(` CREATE INDEX idx_observations_sdk_session ON observations(memory_session_id); CREATE INDEX idx_observations_project ON observations(project); CREATE INDEX idx_observations_type ON observations(type); CREATE INDEX idx_observations_created ON observations(created_at_epoch DESC); - `); - const hasFTS = this.db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='observations_fts'").all().length > 0; - if (hasFTS) { - this.db.run(` + `),this.db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='observations_fts'").all().length>0&&this.db.run(` CREATE TRIGGER IF NOT EXISTS observations_ai AFTER INSERT ON observations BEGIN INSERT INTO observations_fts(rowid, title, subtitle, narrative, text, facts, concepts) VALUES (new.id, new.title, new.subtitle, new.narrative, new.text, new.facts, new.concepts); @@ -8134,10 +248,7 @@ class SessionStore { INSERT INTO observations_fts(rowid, title, subtitle, narrative, text, facts, concepts) VALUES (new.id, new.title, new.subtitle, new.narrative, new.text, new.facts, new.concepts); END; - `); - } - this.db.run("DROP TABLE IF EXISTS session_summaries_new"); - this.db.run(` + `),this.db.run("DROP TABLE IF EXISTS session_summaries_new"),this.db.run(` CREATE TABLE session_summaries_new ( id INTEGER PRIMARY KEY AUTOINCREMENT, memory_session_id TEXT NOT NULL, @@ -8156,27 +267,17 @@ class SessionStore { created_at_epoch INTEGER NOT NULL, FOREIGN KEY(memory_session_id) REFERENCES sdk_sessions(memory_session_id) ON DELETE CASCADE ON UPDATE CASCADE ) - `); - this.db.run(` + `),this.db.run(` INSERT INTO session_summaries_new SELECT id, memory_session_id, project, request, investigated, learned, completed, next_steps, files_read, files_edited, notes, prompt_number, discovery_tokens, created_at, created_at_epoch FROM session_summaries - `); - this.db.run("DROP TRIGGER IF EXISTS session_summaries_ai"); - this.db.run("DROP TRIGGER IF EXISTS session_summaries_ad"); - this.db.run("DROP TRIGGER IF EXISTS session_summaries_au"); - this.db.run("DROP TABLE session_summaries"); - this.db.run("ALTER TABLE session_summaries_new RENAME TO session_summaries"); - this.db.run(` + `),this.db.run("DROP TRIGGER IF EXISTS session_summaries_ai"),this.db.run("DROP TRIGGER IF EXISTS session_summaries_ad"),this.db.run("DROP TRIGGER IF EXISTS session_summaries_au"),this.db.run("DROP TABLE session_summaries"),this.db.run("ALTER TABLE session_summaries_new RENAME TO session_summaries"),this.db.run(` CREATE INDEX idx_session_summaries_sdk_session ON session_summaries(memory_session_id); CREATE INDEX idx_session_summaries_project ON session_summaries(project); CREATE INDEX idx_session_summaries_created ON session_summaries(created_at_epoch DESC); - `); - const hasSummariesFTS = this.db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='session_summaries_fts'").all().length > 0; - if (hasSummariesFTS) { - this.db.run(` + `),this.db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='session_summaries_fts'").all().length>0&&this.db.run(` CREATE TRIGGER IF NOT EXISTS session_summaries_ai AFTER INSERT ON session_summaries BEGIN INSERT INTO session_summaries_fts(rowid, request, investigated, learned, completed, next_steps, notes) VALUES (new.id, new.request, new.investigated, new.learned, new.completed, new.next_steps, new.notes); @@ -8193,70 +294,15 @@ class SessionStore { INSERT INTO session_summaries_fts(rowid, request, investigated, learned, completed, next_steps, notes) VALUES (new.id, new.request, new.investigated, new.learned, new.completed, new.next_steps, new.notes); END; - `); - } - this.db.prepare("INSERT OR IGNORE INTO schema_versions (version, applied_at) VALUES (?, ?)").run(21, new Date().toISOString()); - this.db.run("COMMIT"); - this.db.run("PRAGMA foreign_keys = ON"); - logger.debug("DB", "Successfully added ON UPDATE CASCADE to FK constraints"); - } catch (error2) { - this.db.run("ROLLBACK"); - this.db.run("PRAGMA foreign_keys = ON"); - throw error2; - } - } - addObservationContentHashColumn() { - const tableInfo = this.db.query("PRAGMA table_info(observations)").all(); - const hasColumn = tableInfo.some((col) => col.name === "content_hash"); - if (hasColumn) { - this.db.prepare("INSERT OR IGNORE INTO schema_versions (version, applied_at) VALUES (?, ?)").run(22, new Date().toISOString()); - return; - } - this.db.run("ALTER TABLE observations ADD COLUMN content_hash TEXT"); - this.db.run("UPDATE observations SET content_hash = substr(hex(randomblob(8)), 1, 16) WHERE content_hash IS NULL"); - this.db.run("CREATE INDEX IF NOT EXISTS idx_observations_content_hash ON observations(content_hash, created_at_epoch)"); - logger.debug("DB", "Added content_hash column to observations table with backfill and index"); - this.db.prepare("INSERT OR IGNORE INTO schema_versions (version, applied_at) VALUES (?, ?)").run(22, new Date().toISOString()); - } - addSessionCustomTitleColumn() { - const applied = this.db.prepare("SELECT version FROM schema_versions WHERE version = ?").get(23); - if (applied) - return; - const tableInfo = this.db.query("PRAGMA table_info(sdk_sessions)").all(); - const hasColumn = tableInfo.some((col) => col.name === "custom_title"); - if (!hasColumn) { - this.db.run("ALTER TABLE sdk_sessions ADD COLUMN custom_title TEXT"); - logger.debug("DB", "Added custom_title column to sdk_sessions table"); - } - this.db.prepare("INSERT OR IGNORE INTO schema_versions (version, applied_at) VALUES (?, ?)").run(23, new Date().toISOString()); - } - updateMemorySessionId(sessionDbId, memorySessionId) { - this.db.prepare(` + `),this.db.prepare("INSERT OR IGNORE INTO schema_versions (version, applied_at) VALUES (?, ?)").run(21,new Date().toISOString()),this.db.run("COMMIT"),this.db.run("PRAGMA foreign_keys = ON"),y.debug("DB","Successfully added ON UPDATE CASCADE to FK constraints")}catch(r){throw this.db.run("ROLLBACK"),this.db.run("PRAGMA foreign_keys = ON"),r}}}addObservationContentHashColumn(){if(this.db.query("PRAGMA table_info(observations)").all().some(n=>n.name==="content_hash")){this.db.prepare("INSERT OR IGNORE INTO schema_versions (version, applied_at) VALUES (?, ?)").run(22,new Date().toISOString());return}this.db.run("ALTER TABLE observations ADD COLUMN content_hash TEXT"),this.db.run("UPDATE observations SET content_hash = substr(hex(randomblob(8)), 1, 16) WHERE content_hash IS NULL"),this.db.run("CREATE INDEX IF NOT EXISTS idx_observations_content_hash ON observations(content_hash, created_at_epoch)"),y.debug("DB","Added content_hash column to observations table with backfill and index"),this.db.prepare("INSERT OR IGNORE INTO schema_versions (version, applied_at) VALUES (?, ?)").run(22,new Date().toISOString())}addSessionCustomTitleColumn(){if(this.db.prepare("SELECT version FROM schema_versions WHERE version = ?").get(23))return;this.db.query("PRAGMA table_info(sdk_sessions)").all().some(i=>i.name==="custom_title")||(this.db.run("ALTER TABLE sdk_sessions ADD COLUMN custom_title TEXT"),y.debug("DB","Added custom_title column to sdk_sessions table")),this.db.prepare("INSERT OR IGNORE INTO schema_versions (version, applied_at) VALUES (?, ?)").run(23,new Date().toISOString())}updateMemorySessionId(e,r){this.db.prepare(` UPDATE sdk_sessions SET memory_session_id = ? WHERE id = ? - `).run(memorySessionId, sessionDbId); - } - ensureMemorySessionIdRegistered(sessionDbId, memorySessionId) { - const session = this.db.prepare(` + `).run(r,e)}ensureMemorySessionIdRegistered(e,r){let n=this.db.prepare(` SELECT id, memory_session_id FROM sdk_sessions WHERE id = ? - `).get(sessionDbId); - if (!session) { - throw new Error(`Session ${sessionDbId} not found in sdk_sessions`); - } - if (session.memory_session_id !== memorySessionId) { - this.db.prepare(` + `).get(e);if(!n)throw new Error(`Session ${e} not found in sdk_sessions`);n.memory_session_id!==r&&(this.db.prepare(` UPDATE sdk_sessions SET memory_session_id = ? WHERE id = ? - `).run(memorySessionId, sessionDbId); - logger.info("DB", "Registered memory_session_id before storage (FK fix)", { - sessionDbId, - oldId: session.memory_session_id, - newId: memorySessionId - }); - } - } - getRecentSummaries(project, limit = 10) { - const stmt = this.db.prepare(` + `).run(r,e),y.info("DB","Registered memory_session_id before storage (FK fix)",{sessionDbId:e,oldId:n.memory_session_id,newId:r}))}getRecentSummaries(e,r=10){return this.db.prepare(` SELECT request, investigated, learned, completed, next_steps, files_read, files_edited, notes, prompt_number, created_at @@ -8264,11 +310,7 @@ class SessionStore { WHERE project = ? ORDER BY created_at_epoch DESC LIMIT ? - `); - return stmt.all(project, limit); - } - getRecentSummariesWithSessionInfo(project, limit = 3) { - const stmt = this.db.prepare(` + `).all(e,r)}getRecentSummariesWithSessionInfo(e,r=3){return this.db.prepare(` SELECT memory_session_id, request, learned, completed, next_steps, prompt_number, created_at @@ -8276,41 +318,25 @@ class SessionStore { WHERE project = ? ORDER BY created_at_epoch DESC LIMIT ? - `); - return stmt.all(project, limit); - } - getRecentObservations(project, limit = 20) { - const stmt = this.db.prepare(` + `).all(e,r)}getRecentObservations(e,r=20){return this.db.prepare(` SELECT type, text, prompt_number, created_at FROM observations WHERE project = ? ORDER BY created_at_epoch DESC LIMIT ? - `); - return stmt.all(project, limit); - } - getAllRecentObservations(limit = 100) { - const stmt = this.db.prepare(` + `).all(e,r)}getAllRecentObservations(e=100){return this.db.prepare(` SELECT id, type, title, subtitle, text, project, prompt_number, created_at, created_at_epoch FROM observations ORDER BY created_at_epoch DESC LIMIT ? - `); - return stmt.all(limit); - } - getAllRecentSummaries(limit = 50) { - const stmt = this.db.prepare(` + `).all(e)}getAllRecentSummaries(e=50){return this.db.prepare(` SELECT id, request, investigated, learned, completed, next_steps, files_read, files_edited, notes, project, prompt_number, created_at, created_at_epoch FROM session_summaries ORDER BY created_at_epoch DESC LIMIT ? - `); - return stmt.all(limit); - } - getAllRecentUserPrompts(limit = 100) { - const stmt = this.db.prepare(` + `).all(e)}getAllRecentUserPrompts(e=100){return this.db.prepare(` SELECT up.id, up.content_session_id, @@ -8323,21 +349,12 @@ class SessionStore { LEFT JOIN sdk_sessions s ON up.content_session_id = s.content_session_id ORDER BY up.created_at_epoch DESC LIMIT ? - `); - return stmt.all(limit); - } - getAllProjects() { - const stmt = this.db.prepare(` + `).all(e)}getAllProjects(){return this.db.prepare(` SELECT DISTINCT project FROM sdk_sessions WHERE project IS NOT NULL AND project != '' ORDER BY project ASC - `); - const rows = stmt.all(); - return rows.map((row) => row.project); - } - getLatestUserPrompt(contentSessionId) { - const stmt = this.db.prepare(` + `).all().map(n=>n.project)}getLatestUserPrompt(e){return this.db.prepare(` SELECT up.*, s.memory_session_id, @@ -8347,11 +364,7 @@ class SessionStore { WHERE up.content_session_id = ? ORDER BY up.created_at_epoch DESC LIMIT 1 - `); - return stmt.get(contentSessionId); - } - getRecentSessionsWithStatus(project, limit = 3) { - const stmt = this.db.prepare(` + `).get(e)}getRecentSessionsWithStatus(e,r=3){return this.db.prepare(` SELECT * FROM ( SELECT s.memory_session_id, @@ -8368,77 +381,22 @@ class SessionStore { LIMIT ? ) ORDER BY started_at_epoch ASC - `); - return stmt.all(project, limit); - } - getObservationsForSession(memorySessionId) { - const stmt = this.db.prepare(` + `).all(e,r)}getObservationsForSession(e){return this.db.prepare(` SELECT title, subtitle, type, prompt_number FROM observations WHERE memory_session_id = ? ORDER BY created_at_epoch ASC - `); - return stmt.all(memorySessionId); - } - getObservationById(id) { - const stmt = this.db.prepare(` + `).all(e)}getObservationById(e){return this.db.prepare(` SELECT * FROM observations WHERE id = ? - `); - return stmt.get(id) || null; - } - getObservationsByIds(ids, options = {}) { - if (ids.length === 0) - return []; - const { orderBy = "date_desc", limit, project, type, concepts, files } = options; - const orderClause = orderBy === "date_asc" ? "ASC" : "DESC"; - const limitClause = limit ? `LIMIT ${limit}` : ""; - const placeholders = ids.map(() => "?").join(","); - const params = [...ids]; - const additionalConditions = []; - if (project) { - additionalConditions.push("project = ?"); - params.push(project); - } - if (type) { - if (Array.isArray(type)) { - const typePlaceholders = type.map(() => "?").join(","); - additionalConditions.push(`type IN (${typePlaceholders})`); - params.push(...type); - } else { - additionalConditions.push("type = ?"); - params.push(type); - } - } - if (concepts) { - const conceptsList = Array.isArray(concepts) ? concepts : [concepts]; - const conceptConditions = conceptsList.map(() => "EXISTS (SELECT 1 FROM json_each(concepts) WHERE value = ?)"); - params.push(...conceptsList); - additionalConditions.push(`(${conceptConditions.join(" OR ")})`); - } - if (files) { - const filesList = Array.isArray(files) ? files : [files]; - const fileConditions = filesList.map(() => { - return "(EXISTS (SELECT 1 FROM json_each(files_read) WHERE value LIKE ?) OR EXISTS (SELECT 1 FROM json_each(files_modified) WHERE value LIKE ?))"; - }); - filesList.forEach((file) => { - params.push(`%${file}%`, `%${file}%`); - }); - additionalConditions.push(`(${fileConditions.join(" OR ")})`); - } - const whereClause = additionalConditions.length > 0 ? `WHERE id IN (${placeholders}) AND ${additionalConditions.join(" AND ")}` : `WHERE id IN (${placeholders})`; - const stmt = this.db.prepare(` + `).get(e)||null}getObservationsByIds(e,r={}){if(e.length===0)return[];let{orderBy:n="date_desc",limit:i,project:s,type:o,concepts:a,files:c}=r,u=n==="date_asc"?"ASC":"DESC",l=i?`LIMIT ${i}`:"",d=e.map(()=>"?").join(","),p=[...e],m=[];if(s&&(m.push("project = ?"),p.push(s)),o)if(Array.isArray(o)){let h=o.map(()=>"?").join(",");m.push(`type IN (${h})`),p.push(...o)}else m.push("type = ?"),p.push(o);if(a){let h=Array.isArray(a)?a:[a],v=h.map(()=>"EXISTS (SELECT 1 FROM json_each(concepts) WHERE value = ?)");p.push(...h),m.push(`(${v.join(" OR ")})`)}if(c){let h=Array.isArray(c)?c:[c],v=h.map(()=>"(EXISTS (SELECT 1 FROM json_each(files_read) WHERE value LIKE ?) OR EXISTS (SELECT 1 FROM json_each(files_modified) WHERE value LIKE ?))");h.forEach(x=>{p.push(`%${x}%`,`%${x}%`)}),m.push(`(${v.join(" OR ")})`)}let f=m.length>0?`WHERE id IN (${d}) AND ${m.join(" AND ")}`:`WHERE id IN (${d})`;return this.db.prepare(` SELECT * FROM observations - ${whereClause} - ORDER BY created_at_epoch ${orderClause} - ${limitClause} - `); - return stmt.all(...params); - } - getSummaryForSession(memorySessionId) { - const stmt = this.db.prepare(` + ${f} + ORDER BY created_at_epoch ${u} + ${l} + `).all(...p)}getSummaryForSession(e){return this.db.prepare(` SELECT request, investigated, learned, completed, next_steps, files_read, files_edited, notes, prompt_number, created_at, @@ -8447,219 +405,75 @@ class SessionStore { WHERE memory_session_id = ? ORDER BY created_at_epoch DESC LIMIT 1 - `); - return stmt.get(memorySessionId) || null; - } - getFilesForSession(memorySessionId) { - const stmt = this.db.prepare(` + `).get(e)||null}getFilesForSession(e){let n=this.db.prepare(` SELECT files_read, files_modified FROM observations WHERE memory_session_id = ? - `); - const rows = stmt.all(memorySessionId); - const filesReadSet = new Set; - const filesModifiedSet = new Set; - for (const row of rows) { - if (row.files_read) { - const files = JSON.parse(row.files_read); - if (Array.isArray(files)) { - files.forEach((f) => filesReadSet.add(f)); - } - } - if (row.files_modified) { - const files = JSON.parse(row.files_modified); - if (Array.isArray(files)) { - files.forEach((f) => filesModifiedSet.add(f)); - } - } - } - return { - filesRead: Array.from(filesReadSet), - filesModified: Array.from(filesModifiedSet) - }; - } - getSessionById(id) { - const stmt = this.db.prepare(` + `).all(e),i=new Set,s=new Set;for(let o of n){if(o.files_read){let a=JSON.parse(o.files_read);Array.isArray(a)&&a.forEach(c=>i.add(c))}if(o.files_modified){let a=JSON.parse(o.files_modified);Array.isArray(a)&&a.forEach(c=>s.add(c))}}return{filesRead:Array.from(i),filesModified:Array.from(s)}}getSessionById(e){return this.db.prepare(` SELECT id, content_session_id, memory_session_id, project, user_prompt, custom_title FROM sdk_sessions WHERE id = ? LIMIT 1 - `); - return stmt.get(id) || null; - } - getSdkSessionsBySessionIds(memorySessionIds) { - if (memorySessionIds.length === 0) - return []; - const placeholders = memorySessionIds.map(() => "?").join(","); - const stmt = this.db.prepare(` + `).get(e)||null}getSdkSessionsBySessionIds(e){if(e.length===0)return[];let r=e.map(()=>"?").join(",");return this.db.prepare(` SELECT id, content_session_id, memory_session_id, project, user_prompt, custom_title, started_at, started_at_epoch, completed_at, completed_at_epoch, status FROM sdk_sessions - WHERE memory_session_id IN (${placeholders}) + WHERE memory_session_id IN (${r}) ORDER BY started_at_epoch DESC - `); - return stmt.all(...memorySessionIds); - } - getPromptNumberFromUserPrompts(contentSessionId) { - const result = this.db.prepare(` + `).all(...e)}getPromptNumberFromUserPrompts(e){return this.db.prepare(` SELECT COUNT(*) as count FROM user_prompts WHERE content_session_id = ? - `).get(contentSessionId); - return result.count; - } - createSDKSession(contentSessionId, project, userPrompt, customTitle) { - const now = new Date; - const nowEpoch = now.getTime(); - const existing = this.db.prepare(` + `).get(e).count}createSDKSession(e,r,n,i){let s=new Date,o=s.getTime(),a=this.db.prepare(` SELECT id FROM sdk_sessions WHERE content_session_id = ? - `).get(contentSessionId); - if (existing) { - if (project) { - this.db.prepare(` + `).get(e);return a?(r&&this.db.prepare(` UPDATE sdk_sessions SET project = ? WHERE content_session_id = ? AND (project IS NULL OR project = '') - `).run(project, contentSessionId); - } - if (customTitle) { - this.db.prepare(` + `).run(r,e),i&&this.db.prepare(` UPDATE sdk_sessions SET custom_title = ? WHERE content_session_id = ? AND custom_title IS NULL - `).run(customTitle, contentSessionId); - } - return existing.id; - } - this.db.prepare(` + `).run(i,e),a.id):(this.db.prepare(` INSERT INTO sdk_sessions (content_session_id, memory_session_id, project, user_prompt, custom_title, started_at, started_at_epoch, status) VALUES (?, NULL, ?, ?, ?, ?, ?, 'active') - `).run(contentSessionId, project, userPrompt, customTitle || null, now.toISOString(), nowEpoch); - const row = this.db.prepare("SELECT id FROM sdk_sessions WHERE content_session_id = ?").get(contentSessionId); - return row.id; - } - saveUserPrompt(contentSessionId, promptNumber, promptText) { - const now = new Date; - const nowEpoch = now.getTime(); - const stmt = this.db.prepare(` + `).run(e,r,n,i||null,s.toISOString(),o),this.db.prepare("SELECT id FROM sdk_sessions WHERE content_session_id = ?").get(e).id)}saveUserPrompt(e,r,n){let i=new Date,s=i.getTime();return this.db.prepare(` INSERT INTO user_prompts (content_session_id, prompt_number, prompt_text, created_at, created_at_epoch) VALUES (?, ?, ?, ?, ?) - `); - const result = stmt.run(contentSessionId, promptNumber, promptText, now.toISOString(), nowEpoch); - return result.lastInsertRowid; - } - getUserPrompt(contentSessionId, promptNumber) { - const stmt = this.db.prepare(` + `).run(e,r,n,i.toISOString(),s).lastInsertRowid}getUserPrompt(e,r){return this.db.prepare(` SELECT prompt_text FROM user_prompts WHERE content_session_id = ? AND prompt_number = ? LIMIT 1 - `); - const result = stmt.get(contentSessionId, promptNumber); - return result?.prompt_text ?? null; - } - storeObservation(memorySessionId, project, observation, promptNumber, discoveryTokens = 0, overrideTimestampEpoch) { - const timestampEpoch = overrideTimestampEpoch ?? Date.now(); - const timestampIso = new Date(timestampEpoch).toISOString(); - const contentHash = computeObservationContentHash(memorySessionId, observation.title, observation.narrative); - const existing = findDuplicateObservation(this.db, contentHash, timestampEpoch); - if (existing) { - return { id: existing.id, createdAtEpoch: existing.created_at_epoch }; - } - const stmt = this.db.prepare(` + `).get(e,r)?.prompt_text??null}storeObservation(e,r,n,i,s=0,o){let a=o??Date.now(),c=new Date(a).toISOString(),u=Ff(e,n.title,n.narrative),l=Hf(this.db,u,a);if(l)return{id:l.id,createdAtEpoch:l.created_at_epoch};let p=this.db.prepare(` INSERT INTO observations (memory_session_id, project, type, title, subtitle, facts, narrative, concepts, files_read, files_modified, prompt_number, discovery_tokens, content_hash, created_at, created_at_epoch) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) - `); - const result = stmt.run(memorySessionId, project, observation.type, observation.title, observation.subtitle, JSON.stringify(observation.facts), observation.narrative, JSON.stringify(observation.concepts), JSON.stringify(observation.files_read), JSON.stringify(observation.files_modified), promptNumber || null, discoveryTokens, contentHash, timestampIso, timestampEpoch); - return { - id: Number(result.lastInsertRowid), - createdAtEpoch: timestampEpoch - }; - } - storeSummary(memorySessionId, project, summary, promptNumber, discoveryTokens = 0, overrideTimestampEpoch) { - const timestampEpoch = overrideTimestampEpoch ?? Date.now(); - const timestampIso = new Date(timestampEpoch).toISOString(); - const stmt = this.db.prepare(` + `).run(e,r,n.type,n.title,n.subtitle,JSON.stringify(n.facts),n.narrative,JSON.stringify(n.concepts),JSON.stringify(n.files_read),JSON.stringify(n.files_modified),i||null,s,u,c,a);return{id:Number(p.lastInsertRowid),createdAtEpoch:a}}storeSummary(e,r,n,i,s=0,o){let a=o??Date.now(),c=new Date(a).toISOString(),l=this.db.prepare(` INSERT INTO session_summaries (memory_session_id, project, request, investigated, learned, completed, next_steps, notes, prompt_number, discovery_tokens, created_at, created_at_epoch) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) - `); - const result = stmt.run(memorySessionId, project, summary.request, summary.investigated, summary.learned, summary.completed, summary.next_steps, summary.notes, promptNumber || null, discoveryTokens, timestampIso, timestampEpoch); - return { - id: Number(result.lastInsertRowid), - createdAtEpoch: timestampEpoch - }; - } - storeObservations(memorySessionId, project, observations, summary, promptNumber, discoveryTokens = 0, overrideTimestampEpoch) { - const timestampEpoch = overrideTimestampEpoch ?? Date.now(); - const timestampIso = new Date(timestampEpoch).toISOString(); - const storeTx = this.db.transaction(() => { - const observationIds = []; - const obsStmt = this.db.prepare(` + `).run(e,r,n.request,n.investigated,n.learned,n.completed,n.next_steps,n.notes,i||null,s,c,a);return{id:Number(l.lastInsertRowid),createdAtEpoch:a}}storeObservations(e,r,n,i,s,o=0,a){let c=a??Date.now(),u=new Date(c).toISOString();return this.db.transaction(()=>{let d=[],p=this.db.prepare(` INSERT INTO observations (memory_session_id, project, type, title, subtitle, facts, narrative, concepts, files_read, files_modified, prompt_number, discovery_tokens, content_hash, created_at, created_at_epoch) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) - `); - for (const observation of observations) { - const contentHash = computeObservationContentHash(memorySessionId, observation.title, observation.narrative); - const existing = findDuplicateObservation(this.db, contentHash, timestampEpoch); - if (existing) { - observationIds.push(existing.id); - continue; - } - const result = obsStmt.run(memorySessionId, project, observation.type, observation.title, observation.subtitle, JSON.stringify(observation.facts), observation.narrative, JSON.stringify(observation.concepts), JSON.stringify(observation.files_read), JSON.stringify(observation.files_modified), promptNumber || null, discoveryTokens, contentHash, timestampIso, timestampEpoch); - observationIds.push(Number(result.lastInsertRowid)); - } - let summaryId = null; - if (summary) { - const summaryStmt = this.db.prepare(` + `);for(let f of n){let g=Ff(e,f.title,f.narrative),h=Hf(this.db,g,c);if(h){d.push(h.id);continue}let v=p.run(e,r,f.type,f.title,f.subtitle,JSON.stringify(f.facts),f.narrative,JSON.stringify(f.concepts),JSON.stringify(f.files_read),JSON.stringify(f.files_modified),s||null,o,g,u,c);d.push(Number(v.lastInsertRowid))}let m=null;if(i){let g=this.db.prepare(` INSERT INTO session_summaries (memory_session_id, project, request, investigated, learned, completed, next_steps, notes, prompt_number, discovery_tokens, created_at, created_at_epoch) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) - `); - const result = summaryStmt.run(memorySessionId, project, summary.request, summary.investigated, summary.learned, summary.completed, summary.next_steps, summary.notes, promptNumber || null, discoveryTokens, timestampIso, timestampEpoch); - summaryId = Number(result.lastInsertRowid); - } - return { observationIds, summaryId, createdAtEpoch: timestampEpoch }; - }); - return storeTx(); - } - storeObservationsAndMarkComplete(memorySessionId, project, observations, summary, messageId, _pendingStore, promptNumber, discoveryTokens = 0, overrideTimestampEpoch) { - const timestampEpoch = overrideTimestampEpoch ?? Date.now(); - const timestampIso = new Date(timestampEpoch).toISOString(); - const storeAndMarkTx = this.db.transaction(() => { - const observationIds = []; - const obsStmt = this.db.prepare(` + `).run(e,r,i.request,i.investigated,i.learned,i.completed,i.next_steps,i.notes,s||null,o,u,c);m=Number(g.lastInsertRowid)}return{observationIds:d,summaryId:m,createdAtEpoch:c}})()}storeObservationsAndMarkComplete(e,r,n,i,s,o,a,c=0,u){let l=u??Date.now(),d=new Date(l).toISOString();return this.db.transaction(()=>{let m=[],f=this.db.prepare(` INSERT INTO observations (memory_session_id, project, type, title, subtitle, facts, narrative, concepts, files_read, files_modified, prompt_number, discovery_tokens, content_hash, created_at, created_at_epoch) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) - `); - for (const observation of observations) { - const contentHash = computeObservationContentHash(memorySessionId, observation.title, observation.narrative); - const existing = findDuplicateObservation(this.db, contentHash, timestampEpoch); - if (existing) { - observationIds.push(existing.id); - continue; - } - const result = obsStmt.run(memorySessionId, project, observation.type, observation.title, observation.subtitle, JSON.stringify(observation.facts), observation.narrative, JSON.stringify(observation.concepts), JSON.stringify(observation.files_read), JSON.stringify(observation.files_modified), promptNumber || null, discoveryTokens, contentHash, timestampIso, timestampEpoch); - observationIds.push(Number(result.lastInsertRowid)); - } - let summaryId; - if (summary) { - const summaryStmt = this.db.prepare(` + `);for(let v of n){let x=Ff(e,v.title,v.narrative),b=Hf(this.db,x,l);if(b){m.push(b.id);continue}let _=f.run(e,r,v.type,v.title,v.subtitle,JSON.stringify(v.facts),v.narrative,JSON.stringify(v.concepts),JSON.stringify(v.files_read),JSON.stringify(v.files_modified),a||null,c,x,d,l);m.push(Number(_.lastInsertRowid))}let g;if(i){let x=this.db.prepare(` INSERT INTO session_summaries (memory_session_id, project, request, investigated, learned, completed, next_steps, notes, prompt_number, discovery_tokens, created_at, created_at_epoch) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) - `); - const result = summaryStmt.run(memorySessionId, project, summary.request, summary.investigated, summary.learned, summary.completed, summary.next_steps, summary.notes, promptNumber || null, discoveryTokens, timestampIso, timestampEpoch); - summaryId = Number(result.lastInsertRowid); - } - const updateStmt = this.db.prepare(` + `).run(e,r,i.request,i.investigated,i.learned,i.completed,i.next_steps,i.notes,a||null,c,d,l);g=Number(x.lastInsertRowid)}return this.db.prepare(` UPDATE pending_messages SET status = 'processed', @@ -8667,165 +481,62 @@ class SessionStore { tool_input = NULL, tool_response = NULL WHERE id = ? AND status = 'processing' - `); - updateStmt.run(timestampEpoch, messageId); - return { observationIds, summaryId, createdAtEpoch: timestampEpoch }; - }); - return storeAndMarkTx(); - } - getSessionSummariesByIds(ids, options = {}) { - if (ids.length === 0) - return []; - const { orderBy = "date_desc", limit, project } = options; - const orderClause = orderBy === "date_asc" ? "ASC" : "DESC"; - const limitClause = limit ? `LIMIT ${limit}` : ""; - const placeholders = ids.map(() => "?").join(","); - const params = [...ids]; - const whereClause = project ? `WHERE id IN (${placeholders}) AND project = ?` : `WHERE id IN (${placeholders})`; - if (project) - params.push(project); - const stmt = this.db.prepare(` + `).run(l,s),{observationIds:m,summaryId:g,createdAtEpoch:l}})()}getSessionSummariesByIds(e,r={}){if(e.length===0)return[];let{orderBy:n="date_desc",limit:i,project:s}=r,o=n==="date_asc"?"ASC":"DESC",a=i?`LIMIT ${i}`:"",c=e.map(()=>"?").join(","),u=[...e],l=s?`WHERE id IN (${c}) AND project = ?`:`WHERE id IN (${c})`;return s&&u.push(s),this.db.prepare(` SELECT * FROM session_summaries - ${whereClause} - ORDER BY created_at_epoch ${orderClause} - ${limitClause} - `); - return stmt.all(...params); - } - getUserPromptsByIds(ids, options = {}) { - if (ids.length === 0) - return []; - const { orderBy = "date_desc", limit, project } = options; - const orderClause = orderBy === "date_asc" ? "ASC" : "DESC"; - const limitClause = limit ? `LIMIT ${limit}` : ""; - const placeholders = ids.map(() => "?").join(","); - const params = [...ids]; - const projectFilter = project ? "AND s.project = ?" : ""; - if (project) - params.push(project); - const stmt = this.db.prepare(` + ${l} + ORDER BY created_at_epoch ${o} + ${a} + `).all(...u)}getUserPromptsByIds(e,r={}){if(e.length===0)return[];let{orderBy:n="date_desc",limit:i,project:s}=r,o=n==="date_asc"?"ASC":"DESC",a=i?`LIMIT ${i}`:"",c=e.map(()=>"?").join(","),u=[...e],l=s?"AND s.project = ?":"";return s&&u.push(s),this.db.prepare(` SELECT up.*, s.project, s.memory_session_id FROM user_prompts up JOIN sdk_sessions s ON up.content_session_id = s.content_session_id - WHERE up.id IN (${placeholders}) ${projectFilter} - ORDER BY up.created_at_epoch ${orderClause} - ${limitClause} - `); - return stmt.all(...params); - } - getTimelineAroundTimestamp(anchorEpoch, depthBefore = 10, depthAfter = 10, project) { - return this.getTimelineAroundObservation(null, anchorEpoch, depthBefore, depthAfter, project); - } - getTimelineAroundObservation(anchorObservationId, anchorEpoch, depthBefore = 10, depthAfter = 10, project) { - const projectFilter = project ? "AND project = ?" : ""; - const projectParams = project ? [project] : []; - let startEpoch; - let endEpoch; - if (anchorObservationId !== null) { - const beforeQuery = ` + WHERE up.id IN (${c}) ${l} + ORDER BY up.created_at_epoch ${o} + ${a} + `).all(...u)}getTimelineAroundTimestamp(e,r=10,n=10,i){return this.getTimelineAroundObservation(null,e,r,n,i)}getTimelineAroundObservation(e,r,n=10,i=10,s){let o=s?"AND project = ?":"",a=s?[s]:[],c,u;if(e!==null){let h=` SELECT id, created_at_epoch FROM observations - WHERE id <= ? ${projectFilter} + WHERE id <= ? ${o} ORDER BY id DESC LIMIT ? - `; - const afterQuery = ` + `,v=` SELECT id, created_at_epoch FROM observations - WHERE id >= ? ${projectFilter} + WHERE id >= ? ${o} ORDER BY id ASC LIMIT ? - `; - try { - const beforeRecords = this.db.prepare(beforeQuery).all(anchorObservationId, ...projectParams, depthBefore + 1); - const afterRecords = this.db.prepare(afterQuery).all(anchorObservationId, ...projectParams, depthAfter + 1); - if (beforeRecords.length === 0 && afterRecords.length === 0) { - return { observations: [], sessions: [], prompts: [] }; - } - startEpoch = beforeRecords.length > 0 ? beforeRecords[beforeRecords.length - 1].created_at_epoch : anchorEpoch; - endEpoch = afterRecords.length > 0 ? afterRecords[afterRecords.length - 1].created_at_epoch : anchorEpoch; - } catch (err) { - logger.error("DB", "Error getting boundary observations", undefined, { error: err, project }); - return { observations: [], sessions: [], prompts: [] }; - } - } else { - const beforeQuery = ` + `;try{let x=this.db.prepare(h).all(e,...a,n+1),b=this.db.prepare(v).all(e,...a,i+1);if(x.length===0&&b.length===0)return{observations:[],sessions:[],prompts:[]};c=x.length>0?x[x.length-1].created_at_epoch:r,u=b.length>0?b[b.length-1].created_at_epoch:r}catch(x){return y.error("DB","Error getting boundary observations",void 0,{error:x,project:s}),{observations:[],sessions:[],prompts:[]}}}else{let h=` SELECT created_at_epoch FROM observations - WHERE created_at_epoch <= ? ${projectFilter} + WHERE created_at_epoch <= ? ${o} ORDER BY created_at_epoch DESC LIMIT ? - `; - const afterQuery = ` + `,v=` SELECT created_at_epoch FROM observations - WHERE created_at_epoch >= ? ${projectFilter} + WHERE created_at_epoch >= ? ${o} ORDER BY created_at_epoch ASC LIMIT ? - `; - try { - const beforeRecords = this.db.prepare(beforeQuery).all(anchorEpoch, ...projectParams, depthBefore); - const afterRecords = this.db.prepare(afterQuery).all(anchorEpoch, ...projectParams, depthAfter + 1); - if (beforeRecords.length === 0 && afterRecords.length === 0) { - return { observations: [], sessions: [], prompts: [] }; - } - startEpoch = beforeRecords.length > 0 ? beforeRecords[beforeRecords.length - 1].created_at_epoch : anchorEpoch; - endEpoch = afterRecords.length > 0 ? afterRecords[afterRecords.length - 1].created_at_epoch : anchorEpoch; - } catch (err) { - logger.error("DB", "Error getting boundary timestamps", undefined, { error: err, project }); - return { observations: [], sessions: [], prompts: [] }; - } - } - const obsQuery = ` + `;try{let x=this.db.prepare(h).all(r,...a,n),b=this.db.prepare(v).all(r,...a,i+1);if(x.length===0&&b.length===0)return{observations:[],sessions:[],prompts:[]};c=x.length>0?x[x.length-1].created_at_epoch:r,u=b.length>0?b[b.length-1].created_at_epoch:r}catch(x){return y.error("DB","Error getting boundary timestamps",void 0,{error:x,project:s}),{observations:[],sessions:[],prompts:[]}}}let l=` SELECT * FROM observations - WHERE created_at_epoch >= ? AND created_at_epoch <= ? ${projectFilter} + WHERE created_at_epoch >= ? AND created_at_epoch <= ? ${o} ORDER BY created_at_epoch ASC - `; - const sessQuery = ` + `,d=` SELECT * FROM session_summaries - WHERE created_at_epoch >= ? AND created_at_epoch <= ? ${projectFilter} + WHERE created_at_epoch >= ? AND created_at_epoch <= ? ${o} ORDER BY created_at_epoch ASC - `; - const promptQuery = ` + `,p=` SELECT up.*, s.project, s.memory_session_id FROM user_prompts up JOIN sdk_sessions s ON up.content_session_id = s.content_session_id - WHERE up.created_at_epoch >= ? AND up.created_at_epoch <= ? ${projectFilter.replace("project", "s.project")} + WHERE up.created_at_epoch >= ? AND up.created_at_epoch <= ? ${o.replace("project","s.project")} ORDER BY up.created_at_epoch ASC - `; - const observations = this.db.prepare(obsQuery).all(startEpoch, endEpoch, ...projectParams); - const sessions = this.db.prepare(sessQuery).all(startEpoch, endEpoch, ...projectParams); - const prompts = this.db.prepare(promptQuery).all(startEpoch, endEpoch, ...projectParams); - return { - observations, - sessions: sessions.map((s) => ({ - id: s.id, - memory_session_id: s.memory_session_id, - project: s.project, - request: s.request, - completed: s.completed, - next_steps: s.next_steps, - created_at: s.created_at, - created_at_epoch: s.created_at_epoch - })), - prompts: prompts.map((p) => ({ - id: p.id, - content_session_id: p.content_session_id, - prompt_number: p.prompt_number, - prompt_text: p.prompt_text, - project: p.project, - created_at: p.created_at, - created_at_epoch: p.created_at_epoch - })) - }; - } - getPromptById(id) { - const stmt = this.db.prepare(` + `,m=this.db.prepare(l).all(c,u,...a),f=this.db.prepare(d).all(c,u,...a),g=this.db.prepare(p).all(c,u,...a);return{observations:m,sessions:f.map(h=>({id:h.id,memory_session_id:h.memory_session_id,project:h.project,request:h.request,completed:h.completed,next_steps:h.next_steps,created_at:h.created_at,created_at_epoch:h.created_at_epoch})),prompts:g.map(h=>({id:h.id,content_session_id:h.content_session_id,prompt_number:h.prompt_number,prompt_text:h.prompt_text,project:h.project,created_at:h.created_at,created_at_epoch:h.created_at_epoch}))}}getPromptById(e){return this.db.prepare(` SELECT p.id, p.content_session_id, @@ -8838,14 +549,7 @@ class SessionStore { LEFT JOIN sdk_sessions s ON p.content_session_id = s.content_session_id WHERE p.id = ? LIMIT 1 - `); - return stmt.get(id) || null; - } - getPromptsByIds(ids) { - if (ids.length === 0) - return []; - const placeholders = ids.map(() => "?").join(","); - const stmt = this.db.prepare(` + `).get(e)||null}getPromptsByIds(e){if(e.length===0)return[];let r=e.map(()=>"?").join(",");return this.db.prepare(` SELECT p.id, p.content_session_id, @@ -8856,13 +560,9 @@ class SessionStore { p.created_at_epoch FROM user_prompts p LEFT JOIN sdk_sessions s ON p.content_session_id = s.content_session_id - WHERE p.id IN (${placeholders}) + WHERE p.id IN (${r}) ORDER BY p.created_at_epoch DESC - `); - return stmt.all(...ids); - } - getSessionSummaryById(id) { - const stmt = this.db.prepare(` + `).all(...e)}getSessionSummaryById(e){return this.db.prepare(` SELECT id, memory_session_id, @@ -8877,22836 +577,121 @@ class SessionStore { FROM sdk_sessions WHERE id = ? LIMIT 1 - `); - return stmt.get(id) || null; - } - getOrCreateManualSession(project) { - const memorySessionId = `manual-${project}`; - const contentSessionId = `manual-content-${project}`; - const existing = this.db.prepare("SELECT memory_session_id FROM sdk_sessions WHERE memory_session_id = ?").get(memorySessionId); - if (existing) { - return memorySessionId; - } - const now = new Date; - this.db.prepare(` + `).get(e)||null}getOrCreateManualSession(e){let r=`manual-${e}`,n=`manual-content-${e}`;if(this.db.prepare("SELECT memory_session_id FROM sdk_sessions WHERE memory_session_id = ?").get(r))return r;let s=new Date;return this.db.prepare(` INSERT INTO sdk_sessions (memory_session_id, content_session_id, project, started_at, started_at_epoch, status) VALUES (?, ?, ?, ?, ?, 'active') - `).run(memorySessionId, contentSessionId, project, now.toISOString(), now.getTime()); - logger.info("SESSION", "Created manual session", { memorySessionId, project }); - return memorySessionId; - } - close() { - this.db.close(); - } - importSdkSession(session) { - const existing = this.db.prepare("SELECT id FROM sdk_sessions WHERE content_session_id = ?").get(session.content_session_id); - if (existing) { - return { imported: false, id: existing.id }; - } - const stmt = this.db.prepare(` + `).run(r,n,e,s.toISOString(),s.getTime()),y.info("SESSION","Created manual session",{memorySessionId:r,project:e}),r}close(){this.db.close()}importSdkSession(e){let r=this.db.prepare("SELECT id FROM sdk_sessions WHERE content_session_id = ?").get(e.content_session_id);return r?{imported:!1,id:r.id}:{imported:!0,id:this.db.prepare(` INSERT INTO sdk_sessions ( content_session_id, memory_session_id, project, user_prompt, started_at, started_at_epoch, completed_at, completed_at_epoch, status ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) - `); - const result = stmt.run(session.content_session_id, session.memory_session_id, session.project, session.user_prompt, session.started_at, session.started_at_epoch, session.completed_at, session.completed_at_epoch, session.status); - return { imported: true, id: result.lastInsertRowid }; - } - importSessionSummary(summary) { - const existing = this.db.prepare("SELECT id FROM session_summaries WHERE memory_session_id = ?").get(summary.memory_session_id); - if (existing) { - return { imported: false, id: existing.id }; - } - const stmt = this.db.prepare(` + `).run(e.content_session_id,e.memory_session_id,e.project,e.user_prompt,e.started_at,e.started_at_epoch,e.completed_at,e.completed_at_epoch,e.status).lastInsertRowid}}importSessionSummary(e){let r=this.db.prepare("SELECT id FROM session_summaries WHERE memory_session_id = ?").get(e.memory_session_id);return r?{imported:!1,id:r.id}:{imported:!0,id:this.db.prepare(` INSERT INTO session_summaries ( memory_session_id, project, request, investigated, learned, completed, next_steps, files_read, files_edited, notes, prompt_number, discovery_tokens, created_at, created_at_epoch ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) - `); - const result = stmt.run(summary.memory_session_id, summary.project, summary.request, summary.investigated, summary.learned, summary.completed, summary.next_steps, summary.files_read, summary.files_edited, summary.notes, summary.prompt_number, summary.discovery_tokens || 0, summary.created_at, summary.created_at_epoch); - return { imported: true, id: result.lastInsertRowid }; - } - importObservation(obs) { - const existing = this.db.prepare(` + `).run(e.memory_session_id,e.project,e.request,e.investigated,e.learned,e.completed,e.next_steps,e.files_read,e.files_edited,e.notes,e.prompt_number,e.discovery_tokens||0,e.created_at,e.created_at_epoch).lastInsertRowid}}importObservation(e){let r=this.db.prepare(` SELECT id FROM observations WHERE memory_session_id = ? AND title = ? AND created_at_epoch = ? - `).get(obs.memory_session_id, obs.title, obs.created_at_epoch); - if (existing) { - return { imported: false, id: existing.id }; - } - const stmt = this.db.prepare(` + `).get(e.memory_session_id,e.title,e.created_at_epoch);return r?{imported:!1,id:r.id}:{imported:!0,id:this.db.prepare(` INSERT INTO observations ( memory_session_id, project, text, type, title, subtitle, facts, narrative, concepts, files_read, files_modified, prompt_number, discovery_tokens, created_at, created_at_epoch ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) - `); - const result = stmt.run(obs.memory_session_id, obs.project, obs.text, obs.type, obs.title, obs.subtitle, obs.facts, obs.narrative, obs.concepts, obs.files_read, obs.files_modified, obs.prompt_number, obs.discovery_tokens || 0, obs.created_at, obs.created_at_epoch); - return { imported: true, id: result.lastInsertRowid }; - } - importUserPrompt(prompt) { - const existing = this.db.prepare(` + `).run(e.memory_session_id,e.project,e.text,e.type,e.title,e.subtitle,e.facts,e.narrative,e.concepts,e.files_read,e.files_modified,e.prompt_number,e.discovery_tokens||0,e.created_at,e.created_at_epoch).lastInsertRowid}}importUserPrompt(e){let r=this.db.prepare(` SELECT id FROM user_prompts WHERE content_session_id = ? AND prompt_number = ? - `).get(prompt.content_session_id, prompt.prompt_number); - if (existing) { - return { imported: false, id: existing.id }; - } - const stmt = this.db.prepare(` + `).get(e.content_session_id,e.prompt_number);return r?{imported:!1,id:r.id}:{imported:!0,id:this.db.prepare(` INSERT INTO user_prompts ( content_session_id, prompt_number, prompt_text, created_at, created_at_epoch ) VALUES (?, ?, ?, ?, ?) - `); - const result = stmt.run(prompt.content_session_id, prompt.prompt_number, prompt.prompt_text, prompt.created_at, prompt.created_at_epoch); - return { imported: true, id: result.lastInsertRowid }; - } -} -var init_SessionStore = __esm(() => { - init_paths(); - init_logger(); - init_store(); -}); - -// node_modules/depd/index.js -var require_depd = __commonJS((exports, module) => { - /*! - * depd - * Copyright(c) 2014-2018 Douglas Christopher Wilson - * MIT Licensed - */ - var relative = __require("path").relative; - module.exports = depd; - var basePath = process.cwd(); - function containsNamespace(str, namespace) { - var vals = str.split(/[ ,]+/); - var ns = String(namespace).toLowerCase(); - for (var i = 0;i < vals.length; i++) { - var val = vals[i]; - if (val && (val === "*" || val.toLowerCase() === ns)) { - return true; - } - } - return false; - } - function convertDataDescriptorToAccessor(obj, prop, message) { - var descriptor = Object.getOwnPropertyDescriptor(obj, prop); - var value = descriptor.value; - descriptor.get = function getter() { - return value; - }; - if (descriptor.writable) { - descriptor.set = function setter(val) { - return value = val; - }; - } - delete descriptor.value; - delete descriptor.writable; - Object.defineProperty(obj, prop, descriptor); - return descriptor; - } - function createArgumentsString(arity) { - var str = ""; - for (var i = 0;i < arity; i++) { - str += ", arg" + i; - } - return str.substr(2); - } - function createStackString(stack) { - var str = this.name + ": " + this.namespace; - if (this.message) { - str += " deprecated " + this.message; - } - for (var i = 0;i < stack.length; i++) { - str += ` - at ` + stack[i].toString(); - } - return str; - } - function depd(namespace) { - if (!namespace) { - throw new TypeError("argument namespace is required"); - } - var stack = getStack(); - var site = callSiteLocation(stack[1]); - var file = site[0]; - function deprecate(message) { - log.call(deprecate, message); - } - deprecate._file = file; - deprecate._ignored = isignored(namespace); - deprecate._namespace = namespace; - deprecate._traced = istraced(namespace); - deprecate._warned = Object.create(null); - deprecate.function = wrapfunction; - deprecate.property = wrapproperty; - return deprecate; - } - function eehaslisteners(emitter, type) { - var count = typeof emitter.listenerCount !== "function" ? emitter.listeners(type).length : emitter.listenerCount(type); - return count > 0; - } - function isignored(namespace) { - if (process.noDeprecation) { - return true; - } - var str = process.env.NO_DEPRECATION || ""; - return containsNamespace(str, namespace); - } - function istraced(namespace) { - if (process.traceDeprecation) { - return true; - } - var str = process.env.TRACE_DEPRECATION || ""; - return containsNamespace(str, namespace); - } - function log(message, site) { - var haslisteners = eehaslisteners(process, "deprecation"); - if (!haslisteners && this._ignored) { - return; - } - var caller; - var callFile; - var callSite; - var depSite; - var i = 0; - var seen = false; - var stack = getStack(); - var file = this._file; - if (site) { - depSite = site; - callSite = callSiteLocation(stack[1]); - callSite.name = depSite.name; - file = callSite[0]; - } else { - i = 2; - depSite = callSiteLocation(stack[i]); - callSite = depSite; - } - for (;i < stack.length; i++) { - caller = callSiteLocation(stack[i]); - callFile = caller[0]; - if (callFile === file) { - seen = true; - } else if (callFile === this._file) { - file = this._file; - } else if (seen) { - break; - } - } - var key = caller ? depSite.join(":") + "__" + caller.join(":") : undefined; - if (key !== undefined && key in this._warned) { - return; - } - this._warned[key] = true; - var msg = message; - if (!msg) { - msg = callSite === depSite || !callSite.name ? defaultMessage(depSite) : defaultMessage(callSite); - } - if (haslisteners) { - var err = DeprecationError(this._namespace, msg, stack.slice(i)); - process.emit("deprecation", err); - return; - } - var format = process.stderr.isTTY ? formatColor : formatPlain; - var output = format.call(this, msg, caller, stack.slice(i)); - process.stderr.write(output + ` -`, "utf8"); - } - function callSiteLocation(callSite) { - var file = callSite.getFileName() || ""; - var line = callSite.getLineNumber(); - var colm = callSite.getColumnNumber(); - if (callSite.isEval()) { - file = callSite.getEvalOrigin() + ", " + file; - } - var site = [file, line, colm]; - site.callSite = callSite; - site.name = callSite.getFunctionName(); - return site; - } - function defaultMessage(site) { - var callSite = site.callSite; - var funcName = site.name; - if (!funcName) { - funcName = ""; - } - var context = callSite.getThis(); - var typeName = context && callSite.getTypeName(); - if (typeName === "Object") { - typeName = undefined; - } - if (typeName === "Function") { - typeName = context.name || typeName; - } - return typeName && callSite.getMethodName() ? typeName + "." + funcName : funcName; - } - function formatPlain(msg, caller, stack) { - var timestamp = new Date().toUTCString(); - var formatted = timestamp + " " + this._namespace + " deprecated " + msg; - if (this._traced) { - for (var i = 0;i < stack.length; i++) { - formatted += ` - at ` + stack[i].toString(); - } - return formatted; - } - if (caller) { - formatted += " at " + formatLocation(caller); - } - return formatted; - } - function formatColor(msg, caller, stack) { - var formatted = "\x1B[36;1m" + this._namespace + "\x1B[22;39m" + " \x1B[33;1mdeprecated\x1B[22;39m" + " \x1B[0m" + msg + "\x1B[39m"; - if (this._traced) { - for (var i = 0;i < stack.length; i++) { - formatted += ` - \x1B[36mat ` + stack[i].toString() + "\x1B[39m"; - } - return formatted; - } - if (caller) { - formatted += " \x1B[36m" + formatLocation(caller) + "\x1B[39m"; - } - return formatted; - } - function formatLocation(callSite) { - return relative(basePath, callSite[0]) + ":" + callSite[1] + ":" + callSite[2]; - } - function getStack() { - var limit = Error.stackTraceLimit; - var obj = {}; - var prep = Error.prepareStackTrace; - Error.prepareStackTrace = prepareObjectStackTrace; - Error.stackTraceLimit = Math.max(10, limit); - Error.captureStackTrace(obj); - var stack = obj.stack.slice(1); - Error.prepareStackTrace = prep; - Error.stackTraceLimit = limit; - return stack; - } - function prepareObjectStackTrace(obj, stack) { - return stack; - } - function wrapfunction(fn, message) { - if (typeof fn !== "function") { - throw new TypeError("argument fn must be a function"); - } - var args = createArgumentsString(fn.length); - var stack = getStack(); - var site = callSiteLocation(stack[1]); - site.name = fn.name; - var deprecatedfn = new Function("fn", "log", "deprecate", "message", "site", `"use strict" -` + "return function (" + args + ") {" + `log.call(deprecate, message, site) -` + `return fn.apply(this, arguments) -` + "}")(fn, log, this, message, site); - return deprecatedfn; - } - function wrapproperty(obj, prop, message) { - if (!obj || typeof obj !== "object" && typeof obj !== "function") { - throw new TypeError("argument obj must be object"); - } - var descriptor = Object.getOwnPropertyDescriptor(obj, prop); - if (!descriptor) { - throw new TypeError("must call property on owner object"); - } - if (!descriptor.configurable) { - throw new TypeError("property must be configurable"); - } - var deprecate = this; - var stack = getStack(); - var site = callSiteLocation(stack[1]); - site.name = prop; - if ("value" in descriptor) { - descriptor = convertDataDescriptorToAccessor(obj, prop, message); - } - var get = descriptor.get; - var set2 = descriptor.set; - if (typeof get === "function") { - descriptor.get = function getter() { - log.call(deprecate, message, site); - return get.apply(this, arguments); - }; - } - if (typeof set2 === "function") { - descriptor.set = function setter() { - log.call(deprecate, message, site); - return set2.apply(this, arguments); - }; - } - Object.defineProperty(obj, prop, descriptor); - } - function DeprecationError(namespace, message, stack) { - var error2 = new Error; - var stackString; - Object.defineProperty(error2, "constructor", { - value: DeprecationError - }); - Object.defineProperty(error2, "message", { - configurable: true, - enumerable: false, - value: message, - writable: true - }); - Object.defineProperty(error2, "name", { - enumerable: false, - configurable: true, - value: "DeprecationError", - writable: true - }); - Object.defineProperty(error2, "namespace", { - configurable: true, - enumerable: false, - value: namespace, - writable: true - }); - Object.defineProperty(error2, "stack", { - configurable: true, - enumerable: false, - get: function() { - if (stackString !== undefined) { - return stackString; - } - return stackString = createStackString.call(this, stack); - }, - set: function setter(val) { - stackString = val; - } - }); - return error2; - } -}); - -// node_modules/bytes/index.js -var require_bytes = __commonJS((exports, module) => { - /*! - * bytes - * Copyright(c) 2012-2014 TJ Holowaychuk - * Copyright(c) 2015 Jed Watson - * MIT Licensed - */ - module.exports = bytes; - module.exports.format = format; - module.exports.parse = parse5; - var formatThousandsRegExp = /\B(?=(\d{3})+(?!\d))/g; - var formatDecimalsRegExp = /(?:\.0*|(\.[^0]+)0+)$/; - var map2 = { - b: 1, - kb: 1 << 10, - mb: 1 << 20, - gb: 1 << 30, - tb: Math.pow(1024, 4), - pb: Math.pow(1024, 5) - }; - var parseRegExp = /^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb|pb)$/i; - function bytes(value, options) { - if (typeof value === "string") { - return parse5(value); - } - if (typeof value === "number") { - return format(value, options); - } - return null; - } - function format(value, options) { - if (!Number.isFinite(value)) { - return null; - } - var mag = Math.abs(value); - var thousandsSeparator = options && options.thousandsSeparator || ""; - var unitSeparator = options && options.unitSeparator || ""; - var decimalPlaces = options && options.decimalPlaces !== undefined ? options.decimalPlaces : 2; - var fixedDecimals = Boolean(options && options.fixedDecimals); - var unit = options && options.unit || ""; - if (!unit || !map2[unit.toLowerCase()]) { - if (mag >= map2.pb) { - unit = "PB"; - } else if (mag >= map2.tb) { - unit = "TB"; - } else if (mag >= map2.gb) { - unit = "GB"; - } else if (mag >= map2.mb) { - unit = "MB"; - } else if (mag >= map2.kb) { - unit = "KB"; - } else { - unit = "B"; - } - } - var val = value / map2[unit.toLowerCase()]; - var str = val.toFixed(decimalPlaces); - if (!fixedDecimals) { - str = str.replace(formatDecimalsRegExp, "$1"); - } - if (thousandsSeparator) { - str = str.split(".").map(function(s, i) { - return i === 0 ? s.replace(formatThousandsRegExp, thousandsSeparator) : s; - }).join("."); - } - return str + unitSeparator + unit; - } - function parse5(val) { - if (typeof val === "number" && !isNaN(val)) { - return val; - } - if (typeof val !== "string") { - return null; - } - var results = parseRegExp.exec(val); - var floatValue; - var unit = "b"; - if (!results) { - floatValue = parseInt(val, 10); - unit = "b"; - } else { - floatValue = parseFloat(results[1]); - unit = results[4].toLowerCase(); - } - if (isNaN(floatValue)) { - return null; - } - return Math.floor(map2[unit] * floatValue); - } -}); - -// node_modules/content-type/index.js -var require_content_type = __commonJS((exports) => { - /*! - * content-type - * Copyright(c) 2015 Douglas Christopher Wilson - * MIT Licensed - */ - var PARAM_REGEXP = /; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g; - var TEXT_REGEXP = /^[\u000b\u0020-\u007e\u0080-\u00ff]+$/; - var TOKEN_REGEXP = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/; - var QESC_REGEXP = /\\([\u000b\u0020-\u00ff])/g; - var QUOTE_REGEXP = /([\\"])/g; - var TYPE_REGEXP = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/; - exports.format = format; - exports.parse = parse5; - function format(obj) { - if (!obj || typeof obj !== "object") { - throw new TypeError("argument obj is required"); - } - var parameters = obj.parameters; - var type = obj.type; - if (!type || !TYPE_REGEXP.test(type)) { - throw new TypeError("invalid type"); - } - var string4 = type; - if (parameters && typeof parameters === "object") { - var param; - var params = Object.keys(parameters).sort(); - for (var i = 0;i < params.length; i++) { - param = params[i]; - if (!TOKEN_REGEXP.test(param)) { - throw new TypeError("invalid parameter name"); - } - string4 += "; " + param + "=" + qstring(parameters[param]); - } - } - return string4; - } - function parse5(string4) { - if (!string4) { - throw new TypeError("argument string is required"); - } - var header = typeof string4 === "object" ? getcontenttype(string4) : string4; - if (typeof header !== "string") { - throw new TypeError("argument string is required to be a string"); - } - var index = header.indexOf(";"); - var type = index !== -1 ? header.slice(0, index).trim() : header.trim(); - if (!TYPE_REGEXP.test(type)) { - throw new TypeError("invalid media type"); - } - var obj = new ContentType(type.toLowerCase()); - if (index !== -1) { - var key; - var match; - var value; - PARAM_REGEXP.lastIndex = index; - while (match = PARAM_REGEXP.exec(header)) { - if (match.index !== index) { - throw new TypeError("invalid parameter format"); - } - index += match[0].length; - key = match[1].toLowerCase(); - value = match[2]; - if (value.charCodeAt(0) === 34) { - value = value.slice(1, -1); - if (value.indexOf("\\") !== -1) { - value = value.replace(QESC_REGEXP, "$1"); - } - } - obj.parameters[key] = value; - } - if (index !== header.length) { - throw new TypeError("invalid parameter format"); - } - } - return obj; - } - function getcontenttype(obj) { - var header; - if (typeof obj.getHeader === "function") { - header = obj.getHeader("content-type"); - } else if (typeof obj.headers === "object") { - header = obj.headers && obj.headers["content-type"]; - } - if (typeof header !== "string") { - throw new TypeError("content-type header is missing from object"); - } - return header; - } - function qstring(val) { - var str = String(val); - if (TOKEN_REGEXP.test(str)) { - return str; - } - if (str.length > 0 && !TEXT_REGEXP.test(str)) { - throw new TypeError("invalid parameter value"); - } - return '"' + str.replace(QUOTE_REGEXP, "\\$1") + '"'; - } - function ContentType(type) { - this.parameters = Object.create(null); - this.type = type; - } -}); - -// node_modules/setprototypeof/index.js -var require_setprototypeof = __commonJS((exports, module) => { - module.exports = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array ? setProtoOf : mixinProperties); - function setProtoOf(obj, proto) { - obj.__proto__ = proto; - return obj; - } - function mixinProperties(obj, proto) { - for (var prop in proto) { - if (!Object.prototype.hasOwnProperty.call(obj, prop)) { - obj[prop] = proto[prop]; - } - } - return obj; - } -}); - -// node_modules/statuses/codes.json -var require_codes = __commonJS((exports, module) => { - module.exports = { - "100": "Continue", - "101": "Switching Protocols", - "102": "Processing", - "103": "Early Hints", - "200": "OK", - "201": "Created", - "202": "Accepted", - "203": "Non-Authoritative Information", - "204": "No Content", - "205": "Reset Content", - "206": "Partial Content", - "207": "Multi-Status", - "208": "Already Reported", - "226": "IM Used", - "300": "Multiple Choices", - "301": "Moved Permanently", - "302": "Found", - "303": "See Other", - "304": "Not Modified", - "305": "Use Proxy", - "307": "Temporary Redirect", - "308": "Permanent Redirect", - "400": "Bad Request", - "401": "Unauthorized", - "402": "Payment Required", - "403": "Forbidden", - "404": "Not Found", - "405": "Method Not Allowed", - "406": "Not Acceptable", - "407": "Proxy Authentication Required", - "408": "Request Timeout", - "409": "Conflict", - "410": "Gone", - "411": "Length Required", - "412": "Precondition Failed", - "413": "Payload Too Large", - "414": "URI Too Long", - "415": "Unsupported Media Type", - "416": "Range Not Satisfiable", - "417": "Expectation Failed", - "418": "I'm a Teapot", - "421": "Misdirected Request", - "422": "Unprocessable Entity", - "423": "Locked", - "424": "Failed Dependency", - "425": "Too Early", - "426": "Upgrade Required", - "428": "Precondition Required", - "429": "Too Many Requests", - "431": "Request Header Fields Too Large", - "451": "Unavailable For Legal Reasons", - "500": "Internal Server Error", - "501": "Not Implemented", - "502": "Bad Gateway", - "503": "Service Unavailable", - "504": "Gateway Timeout", - "505": "HTTP Version Not Supported", - "506": "Variant Also Negotiates", - "507": "Insufficient Storage", - "508": "Loop Detected", - "509": "Bandwidth Limit Exceeded", - "510": "Not Extended", - "511": "Network Authentication Required" - }; -}); - -// node_modules/statuses/index.js -var require_statuses = __commonJS((exports, module) => { - /*! - * statuses - * Copyright(c) 2014 Jonathan Ong - * Copyright(c) 2016 Douglas Christopher Wilson - * MIT Licensed - */ - var codes = require_codes(); - module.exports = status; - status.message = codes; - status.code = createMessageToStatusCodeMap(codes); - status.codes = createStatusCodeList(codes); - status.redirect = { - 300: true, - 301: true, - 302: true, - 303: true, - 305: true, - 307: true, - 308: true - }; - status.empty = { - 204: true, - 205: true, - 304: true - }; - status.retry = { - 502: true, - 503: true, - 504: true - }; - function createMessageToStatusCodeMap(codes2) { - var map2 = {}; - Object.keys(codes2).forEach(function forEachCode(code) { - var message = codes2[code]; - var status2 = Number(code); - map2[message.toLowerCase()] = status2; - }); - return map2; - } - function createStatusCodeList(codes2) { - return Object.keys(codes2).map(function mapCode(code) { - return Number(code); - }); - } - function getStatusCode(message) { - var msg = message.toLowerCase(); - if (!Object.prototype.hasOwnProperty.call(status.code, msg)) { - throw new Error('invalid status message: "' + message + '"'); - } - return status.code[msg]; - } - function getStatusMessage(code) { - if (!Object.prototype.hasOwnProperty.call(status.message, code)) { - throw new Error("invalid status code: " + code); - } - return status.message[code]; - } - function status(code) { - if (typeof code === "number") { - return getStatusMessage(code); - } - if (typeof code !== "string") { - throw new TypeError("code must be a number or string"); - } - var n = parseInt(code, 10); - if (!isNaN(n)) { - return getStatusMessage(n); - } - return getStatusCode(code); - } -}); - -// node_modules/inherits/inherits_browser.js -var require_inherits_browser = __commonJS((exports, module) => { - if (typeof Object.create === "function") { - module.exports = function inherits(ctor, superCtor) { - if (superCtor) { - ctor.super_ = superCtor; - ctor.prototype = Object.create(superCtor.prototype, { - constructor: { - value: ctor, - enumerable: false, - writable: true, - configurable: true - } - }); - } - }; - } else { - module.exports = function inherits(ctor, superCtor) { - if (superCtor) { - ctor.super_ = superCtor; - var TempCtor = function() {}; - TempCtor.prototype = superCtor.prototype; - ctor.prototype = new TempCtor; - ctor.prototype.constructor = ctor; - } - }; - } -}); - -// node_modules/inherits/inherits.js -var require_inherits = __commonJS((exports, module) => { - try { - util = __require("util"); - if (typeof util.inherits !== "function") - throw ""; - module.exports = util.inherits; - } catch (e) { - module.exports = require_inherits_browser(); - } - var util; -}); - -// node_modules/toidentifier/index.js -var require_toidentifier = __commonJS((exports, module) => { - /*! - * toidentifier - * Copyright(c) 2016 Douglas Christopher Wilson - * MIT Licensed - */ - module.exports = toIdentifier; - function toIdentifier(str) { - return str.split(" ").map(function(token) { - return token.slice(0, 1).toUpperCase() + token.slice(1); - }).join("").replace(/[^ _0-9a-z]/gi, ""); - } -}); - -// node_modules/http-errors/index.js -var require_http_errors = __commonJS((exports, module) => { - /*! - * http-errors - * Copyright(c) 2014 Jonathan Ong - * Copyright(c) 2016 Douglas Christopher Wilson - * MIT Licensed - */ - var deprecate = require_depd()("http-errors"); - var setPrototypeOf = require_setprototypeof(); - var statuses = require_statuses(); - var inherits = require_inherits(); - var toIdentifier = require_toidentifier(); - module.exports = createError; - module.exports.HttpError = createHttpErrorConstructor(); - module.exports.isHttpError = createIsHttpErrorFunction(module.exports.HttpError); - populateConstructorExports(module.exports, statuses.codes, module.exports.HttpError); - function codeClass(status) { - return Number(String(status).charAt(0) + "00"); - } - function createError() { - var err; - var msg; - var status = 500; - var props = {}; - for (var i = 0;i < arguments.length; i++) { - var arg = arguments[i]; - var type = typeof arg; - if (type === "object" && arg instanceof Error) { - err = arg; - status = err.status || err.statusCode || status; - } else if (type === "number" && i === 0) { - status = arg; - } else if (type === "string") { - msg = arg; - } else if (type === "object") { - props = arg; - } else { - throw new TypeError("argument #" + (i + 1) + " unsupported type " + type); - } - } - if (typeof status === "number" && (status < 400 || status >= 600)) { - deprecate("non-error status code; use only 4xx or 5xx status codes"); - } - if (typeof status !== "number" || !statuses.message[status] && (status < 400 || status >= 600)) { - status = 500; - } - var HttpError = createError[status] || createError[codeClass(status)]; - if (!err) { - err = HttpError ? new HttpError(msg) : new Error(msg || statuses.message[status]); - Error.captureStackTrace(err, createError); - } - if (!HttpError || !(err instanceof HttpError) || err.status !== status) { - err.expose = status < 500; - err.status = err.statusCode = status; - } - for (var key in props) { - if (key !== "status" && key !== "statusCode") { - err[key] = props[key]; - } - } - return err; - } - function createHttpErrorConstructor() { - function HttpError() { - throw new TypeError("cannot construct abstract class"); - } - inherits(HttpError, Error); - return HttpError; - } - function createClientErrorConstructor(HttpError, name, code) { - var className = toClassName(name); - function ClientError(message) { - var msg = message != null ? message : statuses.message[code]; - var err = new Error(msg); - Error.captureStackTrace(err, ClientError); - setPrototypeOf(err, ClientError.prototype); - Object.defineProperty(err, "message", { - enumerable: true, - configurable: true, - value: msg, - writable: true - }); - Object.defineProperty(err, "name", { - enumerable: false, - configurable: true, - value: className, - writable: true - }); - return err; - } - inherits(ClientError, HttpError); - nameFunc(ClientError, className); - ClientError.prototype.status = code; - ClientError.prototype.statusCode = code; - ClientError.prototype.expose = true; - return ClientError; - } - function createIsHttpErrorFunction(HttpError) { - return function isHttpError(val) { - if (!val || typeof val !== "object") { - return false; - } - if (val instanceof HttpError) { - return true; - } - return val instanceof Error && typeof val.expose === "boolean" && typeof val.statusCode === "number" && val.status === val.statusCode; - }; - } - function createServerErrorConstructor(HttpError, name, code) { - var className = toClassName(name); - function ServerError(message) { - var msg = message != null ? message : statuses.message[code]; - var err = new Error(msg); - Error.captureStackTrace(err, ServerError); - setPrototypeOf(err, ServerError.prototype); - Object.defineProperty(err, "message", { - enumerable: true, - configurable: true, - value: msg, - writable: true - }); - Object.defineProperty(err, "name", { - enumerable: false, - configurable: true, - value: className, - writable: true - }); - return err; - } - inherits(ServerError, HttpError); - nameFunc(ServerError, className); - ServerError.prototype.status = code; - ServerError.prototype.statusCode = code; - ServerError.prototype.expose = false; - return ServerError; - } - function nameFunc(func, name) { - var desc = Object.getOwnPropertyDescriptor(func, "name"); - if (desc && desc.configurable) { - desc.value = name; - Object.defineProperty(func, "name", desc); - } - } - function populateConstructorExports(exports2, codes, HttpError) { - codes.forEach(function forEachCode(code) { - var CodeError; - var name = toIdentifier(statuses.message[code]); - switch (codeClass(code)) { - case 400: - CodeError = createClientErrorConstructor(HttpError, name, code); - break; - case 500: - CodeError = createServerErrorConstructor(HttpError, name, code); - break; - } - if (CodeError) { - exports2[code] = CodeError; - exports2[name] = CodeError; - } - }); - } - function toClassName(name) { - return name.slice(-5) === "Error" ? name : name + "Error"; - } -}); - -// node_modules/ms/index.js -var require_ms = __commonJS((exports, module) => { - var s = 1000; - var m = s * 60; - var h = m * 60; - var d = h * 24; - var y = d * 365.25; - module.exports = function(val, options) { - options = options || {}; - var type = typeof val; - if (type === "string" && val.length > 0) { - return parse5(val); - } else if (type === "number" && isNaN(val) === false) { - return options.long ? fmtLong(val) : fmtShort(val); - } - throw new Error("val is not a non-empty string or a valid number. val=" + JSON.stringify(val)); - }; - function parse5(str) { - str = String(str); - if (str.length > 100) { - return; - } - var match = /^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(str); - if (!match) { - return; - } - var n = parseFloat(match[1]); - var type = (match[2] || "ms").toLowerCase(); - switch (type) { - case "years": - case "year": - case "yrs": - case "yr": - case "y": - return n * y; - case "days": - case "day": - case "d": - return n * d; - case "hours": - case "hour": - case "hrs": - case "hr": - case "h": - return n * h; - case "minutes": - case "minute": - case "mins": - case "min": - case "m": - return n * m; - case "seconds": - case "second": - case "secs": - case "sec": - case "s": - return n * s; - case "milliseconds": - case "millisecond": - case "msecs": - case "msec": - case "ms": - return n; - default: - return; - } - } - function fmtShort(ms) { - if (ms >= d) { - return Math.round(ms / d) + "d"; - } - if (ms >= h) { - return Math.round(ms / h) + "h"; - } - if (ms >= m) { - return Math.round(ms / m) + "m"; - } - if (ms >= s) { - return Math.round(ms / s) + "s"; - } - return ms + "ms"; - } - function fmtLong(ms) { - return plural(ms, d, "day") || plural(ms, h, "hour") || plural(ms, m, "minute") || plural(ms, s, "second") || ms + " ms"; - } - function plural(ms, n, name) { - if (ms < n) { - return; - } - if (ms < n * 1.5) { - return Math.floor(ms / n) + " " + name; - } - return Math.ceil(ms / n) + " " + name + "s"; - } -}); - -// node_modules/debug/src/debug.js -var require_debug = __commonJS((exports, module) => { - exports = module.exports = createDebug.debug = createDebug["default"] = createDebug; - exports.coerce = coerce; - exports.disable = disable; - exports.enable = enable; - exports.enabled = enabled; - exports.humanize = require_ms(); - exports.names = []; - exports.skips = []; - exports.formatters = {}; - var prevTime; - function selectColor(namespace) { - var hash = 0, i; - for (i in namespace) { - hash = (hash << 5) - hash + namespace.charCodeAt(i); - hash |= 0; - } - return exports.colors[Math.abs(hash) % exports.colors.length]; - } - function createDebug(namespace) { - function debug() { - if (!debug.enabled) - return; - var self2 = debug; - var curr = +new Date; - var ms = curr - (prevTime || curr); - self2.diff = ms; - self2.prev = prevTime; - self2.curr = curr; - prevTime = curr; - var args = new Array(arguments.length); - for (var i = 0;i < args.length; i++) { - args[i] = arguments[i]; - } - args[0] = exports.coerce(args[0]); - if (typeof args[0] !== "string") { - args.unshift("%O"); - } - var index = 0; - args[0] = args[0].replace(/%([a-zA-Z%])/g, function(match, format) { - if (match === "%%") - return match; - index++; - var formatter = exports.formatters[format]; - if (typeof formatter === "function") { - var val = args[index]; - match = formatter.call(self2, val); - args.splice(index, 1); - index--; - } - return match; - }); - exports.formatArgs.call(self2, args); - var logFn = debug.log || exports.log || console.log.bind(console); - logFn.apply(self2, args); - } - debug.namespace = namespace; - debug.enabled = exports.enabled(namespace); - debug.useColors = exports.useColors(); - debug.color = selectColor(namespace); - if (typeof exports.init === "function") { - exports.init(debug); - } - return debug; - } - function enable(namespaces) { - exports.save(namespaces); - exports.names = []; - exports.skips = []; - var split = (typeof namespaces === "string" ? namespaces : "").split(/[\s,]+/); - var len = split.length; - for (var i = 0;i < len; i++) { - if (!split[i]) - continue; - namespaces = split[i].replace(/\*/g, ".*?"); - if (namespaces[0] === "-") { - exports.skips.push(new RegExp("^" + namespaces.substr(1) + "$")); - } else { - exports.names.push(new RegExp("^" + namespaces + "$")); - } - } - } - function disable() { - exports.enable(""); - } - function enabled(name) { - var i, len; - for (i = 0, len = exports.skips.length;i < len; i++) { - if (exports.skips[i].test(name)) { - return false; - } - } - for (i = 0, len = exports.names.length;i < len; i++) { - if (exports.names[i].test(name)) { - return true; - } - } - return false; - } - function coerce(val) { - if (val instanceof Error) - return val.stack || val.message; - return val; - } -}); - -// node_modules/debug/src/browser.js -var require_browser = __commonJS((exports, module) => { - exports = module.exports = require_debug(); - exports.log = log; - exports.formatArgs = formatArgs; - exports.save = save; - exports.load = load; - exports.useColors = useColors; - exports.storage = typeof chrome != "undefined" && typeof chrome.storage != "undefined" ? chrome.storage.local : localstorage(); - exports.colors = [ - "lightseagreen", - "forestgreen", - "goldenrod", - "dodgerblue", - "darkorchid", - "crimson" - ]; - function useColors() { - if (typeof window !== "undefined" && window.process && window.process.type === "renderer") { - return true; - } - return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/); - } - exports.formatters.j = function(v) { - try { - return JSON.stringify(v); - } catch (err) { - return "[UnexpectedJSONParseError]: " + err.message; - } - }; - function formatArgs(args) { - var useColors2 = this.useColors; - args[0] = (useColors2 ? "%c" : "") + this.namespace + (useColors2 ? " %c" : " ") + args[0] + (useColors2 ? "%c " : " ") + "+" + exports.humanize(this.diff); - if (!useColors2) - return; - var c = "color: " + this.color; - args.splice(1, 0, c, "color: inherit"); - var index = 0; - var lastC = 0; - args[0].replace(/%[a-zA-Z%]/g, function(match) { - if (match === "%%") - return; - index++; - if (match === "%c") { - lastC = index; - } - }); - args.splice(lastC, 0, c); - } - function log() { - return typeof console === "object" && console.log && Function.prototype.apply.call(console.log, console, arguments); - } - function save(namespaces) { - try { - if (namespaces == null) { - exports.storage.removeItem("debug"); - } else { - exports.storage.debug = namespaces; - } - } catch (e) {} - } - function load() { - var r; - try { - r = exports.storage.debug; - } catch (e) {} - if (!r && typeof process !== "undefined" && "env" in process) { - r = process.env.DEBUG; - } - return r; - } - exports.enable(load()); - function localstorage() { - try { - return window.localStorage; - } catch (e) {} - } -}); - -// node_modules/debug/src/node.js -var require_node = __commonJS((exports, module) => { - var tty = __require("tty"); - var util = __require("util"); - exports = module.exports = require_debug(); - exports.init = init; - exports.log = log; - exports.formatArgs = formatArgs; - exports.save = save; - exports.load = load; - exports.useColors = useColors; - exports.colors = [6, 2, 3, 4, 5, 1]; - exports.inspectOpts = Object.keys(process.env).filter(function(key) { - return /^debug_/i.test(key); - }).reduce(function(obj, key) { - var prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, function(_, k) { - return k.toUpperCase(); - }); - var val = process.env[key]; - if (/^(yes|on|true|enabled)$/i.test(val)) - val = true; - else if (/^(no|off|false|disabled)$/i.test(val)) - val = false; - else if (val === "null") - val = null; - else - val = Number(val); - obj[prop] = val; - return obj; - }, {}); - var fd = parseInt(process.env.DEBUG_FD, 10) || 2; - if (fd !== 1 && fd !== 2) { - util.deprecate(function() {}, "except for stderr(2) and stdout(1), any other usage of DEBUG_FD is deprecated. Override debug.log if you want to use a different log function (https://git.io/debug_fd)")(); - } - var stream = fd === 1 ? process.stdout : fd === 2 ? process.stderr : createWritableStdioStream(fd); - function useColors() { - return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(fd); - } - exports.formatters.o = function(v) { - this.inspectOpts.colors = this.useColors; - return util.inspect(v, this.inspectOpts).split(` -`).map(function(str) { - return str.trim(); - }).join(" "); - }; - exports.formatters.O = function(v) { - this.inspectOpts.colors = this.useColors; - return util.inspect(v, this.inspectOpts); - }; - function formatArgs(args) { - var name = this.namespace; - var useColors2 = this.useColors; - if (useColors2) { - var c = this.color; - var prefix = " \x1B[3" + c + ";1m" + name + " " + "\x1B[0m"; - args[0] = prefix + args[0].split(` + `).run(e.content_session_id,e.prompt_number,e.prompt_text,e.created_at,e.created_at_epoch).lastInsertRowid}}}});var bi=T((nIe,tN)=>{var WK=require("path").relative;tN.exports=QK;var KK=process.cwd();function QA(t,e){for(var r=t.split(/[ ,]+/),n=String(e).toLowerCase(),i=0;i0}function tJ(t){if(process.noDeprecation)return!0;var e=process.env.NO_DEPRECATION||"";return QA(e,t)}function rJ(t){if(process.traceDeprecation)return!0;var e=process.env.TRACE_DEPRECATION||"";return QA(e,t)}function Kf(t,e){var r=eJ(process,"deprecation");if(!(!r&&this._ignored)){var n,i,s,o,a=0,c=!1,u=Jf(),l=this._file;for(e?(o=e,s=Xa(u[1]),s.name=o.name,l=s[0]):(a=2,o=Xa(u[a]),s=o);a",r=t.getLineNumber(),n=t.getColumnNumber();t.isEval()&&(e=t.getEvalOrigin()+", "+e);var i=[e,r,n];return i.callSite=t,i.name=t.getFunctionName(),i}function YA(t){var e=t.callSite,r=t.name;r||(r="");var n=e.getThis(),i=n&&e.getTypeName();return i==="Object"&&(i=void 0),i==="Function"&&(i=n.name||i),i&&e.getMethodName()?i+"."+r:r}function nJ(t,e,r){var n=new Date().toUTCString(),i=n+" "+this._namespace+" deprecated "+t;if(this._traced){for(var s=0;s{"use strict";Xf.exports=dJ;Xf.exports.format=rN;Xf.exports.parse=nN;var cJ=/\B(?=(\d{3})+(?!\d))/g,uJ=/(?:\.0*|(\.[^0]+)0+)$/,Cs={b:1,kb:1024,mb:1<<20,gb:1<<30,tb:Math.pow(1024,4),pb:Math.pow(1024,5)},lJ=/^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb|pb)$/i;function dJ(t,e){return typeof t=="string"?nN(t):typeof t=="number"?rN(t,e):null}function rN(t,e){if(!Number.isFinite(t))return null;var r=Math.abs(t),n=e&&e.thousandsSeparator||"",i=e&&e.unitSeparator||"",s=e&&e.decimalPlaces!==void 0?e.decimalPlaces:2,o=!!(e&&e.fixedDecimals),a=e&&e.unit||"";(!a||!Cs[a.toLowerCase()])&&(r>=Cs.pb?a="PB":r>=Cs.tb?a="TB":r>=Cs.gb?a="GB":r>=Cs.mb?a="MB":r>=Cs.kb?a="KB":a="B");var c=t/Cs[a.toLowerCase()],u=c.toFixed(s);return o||(u=u.replace(uJ,"$1")),n&&(u=u.split(".").map(function(l,d){return d===0?l.replace(cJ,n):l}).join(".")),u+i+a}function nN(t){if(typeof t=="number"&&!isNaN(t))return t;if(typeof t!="string")return null;var e=lJ.exec(t),r,n="b";return e?(r=parseFloat(e[1]),n=e[4].toLowerCase()):(r=parseInt(t,10),n="b"),isNaN(r)?null:Math.floor(Cs[n]*r)}});var Kl=T(rw=>{"use strict";var iN=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,pJ=/^[\u000b\u0020-\u007e\u0080-\u00ff]+$/,sN=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,mJ=/\\([\u000b\u0020-\u00ff])/g,fJ=/([\\"])/g,oN=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;rw.format=hJ;rw.parse=gJ;function hJ(t){if(!t||typeof t!="object")throw new TypeError("argument obj is required");var e=t.parameters,r=t.type;if(!r||!oN.test(r))throw new TypeError("invalid type");var n=r;if(e&&typeof e=="object")for(var i,s=Object.keys(e).sort(),o=0;o0&&!pJ.test(e))throw new TypeError("invalid parameter value");return'"'+e.replace(fJ,"\\$1")+'"'}function _J(t){this.parameters=Object.create(null),this.type=t}});var Jl=T((oIe,aN)=>{"use strict";aN.exports=Object.setPrototypeOf||({__proto__:[]}instanceof Array?bJ:xJ);function bJ(t,e){return t.__proto__=e,t}function xJ(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(t,r)||(t[r]=e[r]);return t}});var cN=T((aIe,SJ)=>{SJ.exports={"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"}});var Xl=T((cIe,lN)=>{"use strict";var nw=cN();lN.exports=Xn;Xn.message=nw;Xn.code=wJ(nw);Xn.codes=EJ(nw);Xn.redirect={300:!0,301:!0,302:!0,303:!0,305:!0,307:!0,308:!0};Xn.empty={204:!0,205:!0,304:!0};Xn.retry={502:!0,503:!0,504:!0};function wJ(t){var e={};return Object.keys(t).forEach(function(n){var i=t[n],s=Number(n);e[i.toLowerCase()]=s}),e}function EJ(t){return Object.keys(t).map(function(r){return Number(r)})}function kJ(t){var e=t.toLowerCase();if(!Object.prototype.hasOwnProperty.call(Xn.code,e))throw new Error('invalid status message: "'+t+'"');return Xn.code[e]}function uN(t){if(!Object.prototype.hasOwnProperty.call(Xn.message,t))throw new Error("invalid status code: "+t);return Xn.message[t]}function Xn(t){if(typeof t=="number")return uN(t);if(typeof t!="string")throw new TypeError("code must be a number or string");var e=parseInt(t,10);return isNaN(e)?kJ(t):uN(e)}});var dN=T((uIe,iw)=>{typeof Object.create=="function"?iw.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:iw.exports=function(e,r){if(r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e}}});var pN=T((lIe,ow)=>{try{if(sw=require("util"),typeof sw.inherits!="function")throw"";ow.exports=sw.inherits}catch{ow.exports=dN()}var sw});var fN=T((dIe,mN)=>{"use strict";mN.exports=$J;function $J(t){return t.split(" ").map(function(e){return e.slice(0,1).toUpperCase()+e.slice(1)}).join("").replace(/[^ _0-9a-z]/gi,"")}});var So=T((pIe,xo)=>{"use strict";var TJ=bi()("http-errors"),hN=Jl(),Qa=Xl(),aw=pN(),IJ=fN();xo.exports=Yf;xo.exports.HttpError=RJ();xo.exports.isHttpError=PJ(xo.exports.HttpError);AJ(xo.exports,Qa.codes,xo.exports.HttpError);function gN(t){return+(String(t).charAt(0)+"00")}function Yf(){for(var t,e,r=500,n={},i=0;i=600)&&TJ("non-error status code; use only 4xx or 5xx status codes"),(typeof r!="number"||!Qa.message[r]&&(r<400||r>=600))&&(r=500);var a=Yf[r]||Yf[gN(r)];t||(t=a?new a(e):new Error(e||Qa.message[r]),Error.captureStackTrace(t,Yf)),(!a||!(t instanceof a)||t.status!==r)&&(t.expose=r<500,t.status=t.statusCode=r);for(var c in n)c!=="status"&&c!=="statusCode"&&(t[c]=n[c]);return t}function RJ(){function t(){throw new TypeError("cannot construct abstract class")}return aw(t,Error),t}function OJ(t,e,r){var n=yN(e);function i(s){var o=s??Qa.message[r],a=new Error(o);return Error.captureStackTrace(a,i),hN(a,i.prototype),Object.defineProperty(a,"message",{enumerable:!0,configurable:!0,value:o,writable:!0}),Object.defineProperty(a,"name",{enumerable:!1,configurable:!0,value:n,writable:!0}),a}return aw(i,t),vN(i,n),i.prototype.status=r,i.prototype.statusCode=r,i.prototype.expose=!0,i}function PJ(t){return function(r){return!r||typeof r!="object"?!1:r instanceof t?!0:r instanceof Error&&typeof r.expose=="boolean"&&typeof r.statusCode=="number"&&r.status===r.statusCode}}function CJ(t,e,r){var n=yN(e);function i(s){var o=s??Qa.message[r],a=new Error(o);return Error.captureStackTrace(a,i),hN(a,i.prototype),Object.defineProperty(a,"message",{enumerable:!0,configurable:!0,value:o,writable:!0}),Object.defineProperty(a,"name",{enumerable:!1,configurable:!0,value:n,writable:!0}),a}return aw(i,t),vN(i,n),i.prototype.status=r,i.prototype.statusCode=r,i.prototype.expose=!1,i}function vN(t,e){var r=Object.getOwnPropertyDescriptor(t,"name");r&&r.configurable&&(r.value=e,Object.defineProperty(t,"name",r))}function AJ(t,e,r){e.forEach(function(i){var s,o=IJ(Qa.message[i]);switch(gN(i)){case 400:s=OJ(r,o,i);break;case 500:s=CJ(r,o,i);break}s&&(t[i]=s,t[o]=s)})}function yN(t){return t.slice(-5)==="Error"?t:t+"Error"}});var bN=T((mIe,_N)=>{var Yl=1e3,Ql=Yl*60,ed=Ql*60,td=ed*24,NJ=td*365.25;_N.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return MJ(t);if(r==="number"&&isNaN(t)===!1)return e.long?jJ(t):DJ(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function MJ(t){if(t=String(t),!(t.length>100)){var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*NJ;case"days":case"day":case"d":return r*td;case"hours":case"hour":case"hrs":case"hr":case"h":return r*ed;case"minutes":case"minute":case"mins":case"min":case"m":return r*Ql;case"seconds":case"second":case"secs":case"sec":case"s":return r*Yl;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function DJ(t){return t>=td?Math.round(t/td)+"d":t>=ed?Math.round(t/ed)+"h":t>=Ql?Math.round(t/Ql)+"m":t>=Yl?Math.round(t/Yl)+"s":t+"ms"}function jJ(t){return Qf(t,td,"day")||Qf(t,ed,"hour")||Qf(t,Ql,"minute")||Qf(t,Yl,"second")||t+" ms"}function Qf(t,e,r){if(!(t{dt=xN.exports=uw.debug=uw.default=uw;dt.coerce=FJ;dt.disable=UJ;dt.enable=LJ;dt.enabled=qJ;dt.humanize=bN();dt.names=[];dt.skips=[];dt.formatters={};var cw;function zJ(t){var e=0,r;for(r in t)e=(e<<5)-e+t.charCodeAt(r),e|=0;return dt.colors[Math.abs(e)%dt.colors.length]}function uw(t){function e(){if(e.enabled){var r=e,n=+new Date,i=n-(cw||n);r.diff=i,r.prev=cw,r.curr=n,cw=n;for(var s=new Array(arguments.length),o=0;o{Hr=wN.exports=lw();Hr.log=BJ;Hr.formatArgs=ZJ;Hr.save=VJ;Hr.load=SN;Hr.useColors=HJ;Hr.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:GJ();Hr.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function HJ(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}Hr.formatters.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}};function ZJ(t){var e=this.useColors;if(t[0]=(e?"%c":"")+this.namespace+(e?" %c":" ")+t[0]+(e?"%c ":" ")+"+"+Hr.humanize(this.diff),!!e){var r="color: "+this.color;t.splice(1,0,r,"color: inherit");var n=0,i=0;t[0].replace(/%[a-zA-Z%]/g,function(s){s!=="%%"&&(n++,s==="%c"&&(i=n))}),t.splice(i,0,r)}}function BJ(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function VJ(t){try{t==null?Hr.storage.removeItem("debug"):Hr.storage.debug=t}catch{}}function SN(){var t;try{t=Hr.storage.debug}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}Hr.enable(SN());function GJ(){try{return window.localStorage}catch{}}});var IN=T((cr,TN)=>{var kN=require("tty"),rd=require("util");cr=TN.exports=lw();cr.init=eX;cr.log=XJ;cr.formatArgs=JJ;cr.save=YJ;cr.load=$N;cr.useColors=KJ;cr.colors=[6,2,3,4,5,1];cr.inspectOpts=Object.keys(process.env).filter(function(t){return/^debug_/i.test(t)}).reduce(function(t,e){var r=e.substring(6).toLowerCase().replace(/_([a-z])/g,function(i,s){return s.toUpperCase()}),n=process.env[e];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),t[r]=n,t},{});var ec=parseInt(process.env.DEBUG_FD,10)||2;ec!==1&&ec!==2&&rd.deprecate(function(){},"except for stderr(2) and stdout(1), any other usage of DEBUG_FD is deprecated. Override debug.log if you want to use a different log function (https://git.io/debug_fd)")();var WJ=ec===1?process.stdout:ec===2?process.stderr:QJ(ec);function KJ(){return"colors"in cr.inspectOpts?!!cr.inspectOpts.colors:kN.isatty(ec)}cr.formatters.o=function(t){return this.inspectOpts.colors=this.useColors,rd.inspect(t,this.inspectOpts).split(` +`).map(function(e){return e.trim()}).join(" ")};cr.formatters.O=function(t){return this.inspectOpts.colors=this.useColors,rd.inspect(t,this.inspectOpts)};function JJ(t){var e=this.namespace,r=this.useColors;if(r){var n=this.color,i=" \x1B[3"+n+";1m"+e+" \x1B[0m";t[0]=i+t[0].split(` `).join(` -` + prefix); - args.push("\x1B[3" + c + "m+" + exports.humanize(this.diff) + "\x1B[0m"); - } else { - args[0] = new Date().toUTCString() + " " + name + " " + args[0]; - } - } - function log() { - return stream.write(util.format.apply(util, arguments) + ` -`); - } - function save(namespaces) { - if (namespaces == null) { - delete process.env.DEBUG; - } else { - process.env.DEBUG = namespaces; - } - } - function load() { - return process.env.DEBUG; - } - function createWritableStdioStream(fd2) { - var stream2; - var tty_wrap = process.binding("tty_wrap"); - switch (tty_wrap.guessHandleType(fd2)) { - case "TTY": - stream2 = new tty.WriteStream(fd2); - stream2._type = "tty"; - if (stream2._handle && stream2._handle.unref) { - stream2._handle.unref(); - } - break; - case "FILE": - var fs2 = __require("fs"); - stream2 = new fs2.SyncWriteStream(fd2, { autoClose: false }); - stream2._type = "fs"; - break; - case "PIPE": - case "TCP": - var net = __require("net"); - stream2 = new net.Socket({ - fd: fd2, - readable: false, - writable: true - }); - stream2.readable = false; - stream2.read = null; - stream2._type = "pipe"; - if (stream2._handle && stream2._handle.unref) { - stream2._handle.unref(); - } - break; - default: - throw new Error("Implement me. Unknown stream file type!"); - } - stream2.fd = fd2; - stream2._isStdio = true; - return stream2; - } - function init(debug) { - debug.inspectOpts = {}; - var keys = Object.keys(exports.inspectOpts); - for (var i = 0;i < keys.length; i++) { - debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]]; - } - } - exports.enable(load()); -}); - -// node_modules/debug/src/index.js -var require_src = __commonJS((exports, module) => { - if (typeof process !== "undefined" && process.type === "renderer") { - module.exports = require_browser(); - } else { - module.exports = require_node(); - } -}); - -// node_modules/destroy/index.js -var require_destroy = __commonJS((exports, module) => { - /*! - * destroy - * Copyright(c) 2014 Jonathan Ong - * Copyright(c) 2015-2022 Douglas Christopher Wilson - * MIT Licensed - */ - var EventEmitter = __require("events").EventEmitter; - var ReadStream = __require("fs").ReadStream; - var Stream = __require("stream"); - var Zlib = __require("zlib"); - module.exports = destroy; - function destroy(stream, suppress) { - if (isFsReadStream(stream)) { - destroyReadStream(stream); - } else if (isZlibStream(stream)) { - destroyZlibStream(stream); - } else if (hasDestroy(stream)) { - stream.destroy(); - } - if (isEventEmitter(stream) && suppress) { - stream.removeAllListeners("error"); - stream.addListener("error", noop); - } - return stream; - } - function destroyReadStream(stream) { - stream.destroy(); - if (typeof stream.close === "function") { - stream.on("open", onOpenClose); - } - } - function closeZlibStream(stream) { - if (stream._hadError === true) { - var prop = stream._binding === null ? "_binding" : "_handle"; - stream[prop] = { - close: function() { - this[prop] = null; - } - }; - } - stream.close(); - } - function destroyZlibStream(stream) { - if (typeof stream.destroy === "function") { - if (stream._binding) { - stream.destroy(); - if (stream._processing) { - stream._needDrain = true; - stream.once("drain", onDrainClearBinding); - } else { - stream._binding.clear(); - } - } else if (stream._destroy && stream._destroy !== Stream.Transform.prototype._destroy) { - stream.destroy(); - } else if (stream._destroy && typeof stream.close === "function") { - stream.destroyed = true; - stream.close(); - } else { - stream.destroy(); - } - } else if (typeof stream.close === "function") { - closeZlibStream(stream); - } - } - function hasDestroy(stream) { - return stream instanceof Stream && typeof stream.destroy === "function"; - } - function isEventEmitter(val) { - return val instanceof EventEmitter; - } - function isFsReadStream(stream) { - return stream instanceof ReadStream; - } - function isZlibStream(stream) { - return stream instanceof Zlib.Gzip || stream instanceof Zlib.Gunzip || stream instanceof Zlib.Deflate || stream instanceof Zlib.DeflateRaw || stream instanceof Zlib.Inflate || stream instanceof Zlib.InflateRaw || stream instanceof Zlib.Unzip; - } - function noop() {} - function onDrainClearBinding() { - this._binding.clear(); - } - function onOpenClose() { - if (typeof this.fd === "number") { - this.close(); - } - } -}); - -// node_modules/safer-buffer/safer.js -var require_safer = __commonJS((exports, module) => { - var buffer = __require("buffer"); - var Buffer2 = buffer.Buffer; - var safer = {}; - var key; - for (key in buffer) { - if (!buffer.hasOwnProperty(key)) - continue; - if (key === "SlowBuffer" || key === "Buffer") - continue; - safer[key] = buffer[key]; - } - var Safer = safer.Buffer = {}; - for (key in Buffer2) { - if (!Buffer2.hasOwnProperty(key)) - continue; - if (key === "allocUnsafe" || key === "allocUnsafeSlow") - continue; - Safer[key] = Buffer2[key]; - } - safer.Buffer.prototype = Buffer2.prototype; - if (!Safer.from || Safer.from === Uint8Array.from) { - Safer.from = function(value, encodingOrOffset, length) { - if (typeof value === "number") { - throw new TypeError('The "value" argument must not be of type number. Received type ' + typeof value); - } - if (value && typeof value.length === "undefined") { - throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof value); - } - return Buffer2(value, encodingOrOffset, length); - }; - } - if (!Safer.alloc) { - Safer.alloc = function(size, fill, encoding) { - if (typeof size !== "number") { - throw new TypeError('The "size" argument must be of type number. Received type ' + typeof size); - } - if (size < 0 || size >= 2 * (1 << 30)) { - throw new RangeError('The value "' + size + '" is invalid for option "size"'); - } - var buf = Buffer2(size); - if (!fill || fill.length === 0) { - buf.fill(0); - } else if (typeof encoding === "string") { - buf.fill(fill, encoding); - } else { - buf.fill(fill); - } - return buf; - }; - } - if (!safer.kStringMaxLength) { - try { - safer.kStringMaxLength = process.binding("buffer").kStringMaxLength; - } catch (e) {} - } - if (!safer.constants) { - safer.constants = { - MAX_LENGTH: safer.kMaxLength - }; - if (safer.kStringMaxLength) { - safer.constants.MAX_STRING_LENGTH = safer.kStringMaxLength; - } - } - module.exports = safer; -}); - -// node_modules/iconv-lite/lib/bom-handling.js -var require_bom_handling = __commonJS((exports) => { - var BOMChar = "\uFEFF"; - exports.PrependBOM = PrependBOMWrapper; - function PrependBOMWrapper(encoder, options) { - this.encoder = encoder; - this.addBOM = true; - } - PrependBOMWrapper.prototype.write = function(str) { - if (this.addBOM) { - str = BOMChar + str; - this.addBOM = false; - } - return this.encoder.write(str); - }; - PrependBOMWrapper.prototype.end = function() { - return this.encoder.end(); - }; - exports.StripBOM = StripBOMWrapper; - function StripBOMWrapper(decoder, options) { - this.decoder = decoder; - this.pass = false; - this.options = options || {}; - } - StripBOMWrapper.prototype.write = function(buf) { - var res = this.decoder.write(buf); - if (this.pass || !res) - return res; - if (res[0] === BOMChar) { - res = res.slice(1); - if (typeof this.options.stripBOM === "function") - this.options.stripBOM(); - } - this.pass = true; - return res; - }; - StripBOMWrapper.prototype.end = function() { - return this.decoder.end(); - }; -}); - -// node_modules/iconv-lite/encodings/internal.js -var require_internal = __commonJS((exports, module) => { - var Buffer2 = require_safer().Buffer; - module.exports = { - utf8: { type: "_internal", bomAware: true }, - cesu8: { type: "_internal", bomAware: true }, - unicode11utf8: "utf8", - ucs2: { type: "_internal", bomAware: true }, - utf16le: "ucs2", - binary: { type: "_internal" }, - base64: { type: "_internal" }, - hex: { type: "_internal" }, - _internal: InternalCodec - }; - function InternalCodec(codecOptions, iconv) { - this.enc = codecOptions.encodingName; - this.bomAware = codecOptions.bomAware; - if (this.enc === "base64") - this.encoder = InternalEncoderBase64; - else if (this.enc === "cesu8") { - this.enc = "utf8"; - this.encoder = InternalEncoderCesu8; - if (Buffer2.from("eda0bdedb2a9", "hex").toString() !== "\uD83D\uDCA9") { - this.decoder = InternalDecoderCesu8; - this.defaultCharUnicode = iconv.defaultCharUnicode; - } - } - } - InternalCodec.prototype.encoder = InternalEncoder; - InternalCodec.prototype.decoder = InternalDecoder; - var StringDecoder = __require("string_decoder").StringDecoder; - if (!StringDecoder.prototype.end) - StringDecoder.prototype.end = function() {}; - function InternalDecoder(options, codec) { - StringDecoder.call(this, codec.enc); - } - InternalDecoder.prototype = StringDecoder.prototype; - function InternalEncoder(options, codec) { - this.enc = codec.enc; - } - InternalEncoder.prototype.write = function(str) { - return Buffer2.from(str, this.enc); - }; - InternalEncoder.prototype.end = function() {}; - function InternalEncoderBase64(options, codec) { - this.prevStr = ""; - } - InternalEncoderBase64.prototype.write = function(str) { - str = this.prevStr + str; - var completeQuads = str.length - str.length % 4; - this.prevStr = str.slice(completeQuads); - str = str.slice(0, completeQuads); - return Buffer2.from(str, "base64"); - }; - InternalEncoderBase64.prototype.end = function() { - return Buffer2.from(this.prevStr, "base64"); - }; - function InternalEncoderCesu8(options, codec) {} - InternalEncoderCesu8.prototype.write = function(str) { - var buf = Buffer2.alloc(str.length * 3), bufIdx = 0; - for (var i = 0;i < str.length; i++) { - var charCode = str.charCodeAt(i); - if (charCode < 128) - buf[bufIdx++] = charCode; - else if (charCode < 2048) { - buf[bufIdx++] = 192 + (charCode >>> 6); - buf[bufIdx++] = 128 + (charCode & 63); - } else { - buf[bufIdx++] = 224 + (charCode >>> 12); - buf[bufIdx++] = 128 + (charCode >>> 6 & 63); - buf[bufIdx++] = 128 + (charCode & 63); - } - } - return buf.slice(0, bufIdx); - }; - InternalEncoderCesu8.prototype.end = function() {}; - function InternalDecoderCesu8(options, codec) { - this.acc = 0; - this.contBytes = 0; - this.accBytes = 0; - this.defaultCharUnicode = codec.defaultCharUnicode; - } - InternalDecoderCesu8.prototype.write = function(buf) { - var acc = this.acc, contBytes = this.contBytes, accBytes = this.accBytes, res = ""; - for (var i = 0;i < buf.length; i++) { - var curByte = buf[i]; - if ((curByte & 192) !== 128) { - if (contBytes > 0) { - res += this.defaultCharUnicode; - contBytes = 0; - } - if (curByte < 128) { - res += String.fromCharCode(curByte); - } else if (curByte < 224) { - acc = curByte & 31; - contBytes = 1; - accBytes = 1; - } else if (curByte < 240) { - acc = curByte & 15; - contBytes = 2; - accBytes = 1; - } else { - res += this.defaultCharUnicode; - } - } else { - if (contBytes > 0) { - acc = acc << 6 | curByte & 63; - contBytes--; - accBytes++; - if (contBytes === 0) { - if (accBytes === 2 && acc < 128 && acc > 0) - res += this.defaultCharUnicode; - else if (accBytes === 3 && acc < 2048) - res += this.defaultCharUnicode; - else - res += String.fromCharCode(acc); - } - } else { - res += this.defaultCharUnicode; - } - } - } - this.acc = acc; - this.contBytes = contBytes; - this.accBytes = accBytes; - return res; - }; - InternalDecoderCesu8.prototype.end = function() { - var res = 0; - if (this.contBytes > 0) - res += this.defaultCharUnicode; - return res; - }; -}); - -// node_modules/iconv-lite/encodings/utf16.js -var require_utf16 = __commonJS((exports) => { - var Buffer2 = require_safer().Buffer; - exports.utf16be = Utf16BECodec; - function Utf16BECodec() {} - Utf16BECodec.prototype.encoder = Utf16BEEncoder; - Utf16BECodec.prototype.decoder = Utf16BEDecoder; - Utf16BECodec.prototype.bomAware = true; - function Utf16BEEncoder() {} - Utf16BEEncoder.prototype.write = function(str) { - var buf = Buffer2.from(str, "ucs2"); - for (var i = 0;i < buf.length; i += 2) { - var tmp = buf[i]; - buf[i] = buf[i + 1]; - buf[i + 1] = tmp; - } - return buf; - }; - Utf16BEEncoder.prototype.end = function() {}; - function Utf16BEDecoder() { - this.overflowByte = -1; - } - Utf16BEDecoder.prototype.write = function(buf) { - if (buf.length == 0) - return ""; - var buf2 = Buffer2.alloc(buf.length + 1), i = 0, j = 0; - if (this.overflowByte !== -1) { - buf2[0] = buf[0]; - buf2[1] = this.overflowByte; - i = 1; - j = 2; - } - for (;i < buf.length - 1; i += 2, j += 2) { - buf2[j] = buf[i + 1]; - buf2[j + 1] = buf[i]; - } - this.overflowByte = i == buf.length - 1 ? buf[buf.length - 1] : -1; - return buf2.slice(0, j).toString("ucs2"); - }; - Utf16BEDecoder.prototype.end = function() {}; - exports.utf16 = Utf16Codec; - function Utf16Codec(codecOptions, iconv) { - this.iconv = iconv; - } - Utf16Codec.prototype.encoder = Utf16Encoder; - Utf16Codec.prototype.decoder = Utf16Decoder; - function Utf16Encoder(options, codec) { - options = options || {}; - if (options.addBOM === undefined) - options.addBOM = true; - this.encoder = codec.iconv.getEncoder("utf-16le", options); - } - Utf16Encoder.prototype.write = function(str) { - return this.encoder.write(str); - }; - Utf16Encoder.prototype.end = function() { - return this.encoder.end(); - }; - function Utf16Decoder(options, codec) { - this.decoder = null; - this.initialBytes = []; - this.initialBytesLen = 0; - this.options = options || {}; - this.iconv = codec.iconv; - } - Utf16Decoder.prototype.write = function(buf) { - if (!this.decoder) { - this.initialBytes.push(buf); - this.initialBytesLen += buf.length; - if (this.initialBytesLen < 16) - return ""; - var buf = Buffer2.concat(this.initialBytes), encoding = detectEncoding(buf, this.options.defaultEncoding); - this.decoder = this.iconv.getDecoder(encoding, this.options); - this.initialBytes.length = this.initialBytesLen = 0; - } - return this.decoder.write(buf); - }; - Utf16Decoder.prototype.end = function() { - if (!this.decoder) { - var buf = Buffer2.concat(this.initialBytes), encoding = detectEncoding(buf, this.options.defaultEncoding); - this.decoder = this.iconv.getDecoder(encoding, this.options); - var res = this.decoder.write(buf), trail = this.decoder.end(); - return trail ? res + trail : res; - } - return this.decoder.end(); - }; - function detectEncoding(buf, defaultEncoding) { - var enc = defaultEncoding || "utf-16le"; - if (buf.length >= 2) { - if (buf[0] == 254 && buf[1] == 255) - enc = "utf-16be"; - else if (buf[0] == 255 && buf[1] == 254) - enc = "utf-16le"; - else { - var asciiCharsLE = 0, asciiCharsBE = 0, _len = Math.min(buf.length - buf.length % 2, 64); - for (var i = 0;i < _len; i += 2) { - if (buf[i] === 0 && buf[i + 1] !== 0) - asciiCharsBE++; - if (buf[i] !== 0 && buf[i + 1] === 0) - asciiCharsLE++; - } - if (asciiCharsBE > asciiCharsLE) - enc = "utf-16be"; - else if (asciiCharsBE < asciiCharsLE) - enc = "utf-16le"; - } - } - return enc; - } -}); - -// node_modules/iconv-lite/encodings/utf7.js -var require_utf7 = __commonJS((exports) => { - var Buffer2 = require_safer().Buffer; - exports.utf7 = Utf7Codec; - exports.unicode11utf7 = "utf7"; - function Utf7Codec(codecOptions, iconv) { - this.iconv = iconv; - } - Utf7Codec.prototype.encoder = Utf7Encoder; - Utf7Codec.prototype.decoder = Utf7Decoder; - Utf7Codec.prototype.bomAware = true; - var nonDirectChars = /[^A-Za-z0-9'\(\),-\.\/:\? \n\r\t]+/g; - function Utf7Encoder(options, codec) { - this.iconv = codec.iconv; - } - Utf7Encoder.prototype.write = function(str) { - return Buffer2.from(str.replace(nonDirectChars, function(chunk) { - return "+" + (chunk === "+" ? "" : this.iconv.encode(chunk, "utf16-be").toString("base64").replace(/=+$/, "")) + "-"; - }.bind(this))); - }; - Utf7Encoder.prototype.end = function() {}; - function Utf7Decoder(options, codec) { - this.iconv = codec.iconv; - this.inBase64 = false; - this.base64Accum = ""; - } - var base64Regex = /[A-Za-z0-9\/+]/; - var base64Chars = []; - for (i = 0;i < 256; i++) - base64Chars[i] = base64Regex.test(String.fromCharCode(i)); - var i; - var plusChar = 43; - var minusChar = 45; - var andChar = 38; - Utf7Decoder.prototype.write = function(buf) { - var res = "", lastI = 0, inBase64 = this.inBase64, base64Accum = this.base64Accum; - for (var i2 = 0;i2 < buf.length; i2++) { - if (!inBase64) { - if (buf[i2] == plusChar) { - res += this.iconv.decode(buf.slice(lastI, i2), "ascii"); - lastI = i2 + 1; - inBase64 = true; - } - } else { - if (!base64Chars[buf[i2]]) { - if (i2 == lastI && buf[i2] == minusChar) { - res += "+"; - } else { - var b64str = base64Accum + buf.slice(lastI, i2).toString(); - res += this.iconv.decode(Buffer2.from(b64str, "base64"), "utf16-be"); - } - if (buf[i2] != minusChar) - i2--; - lastI = i2 + 1; - inBase64 = false; - base64Accum = ""; - } - } - } - if (!inBase64) { - res += this.iconv.decode(buf.slice(lastI), "ascii"); - } else { - var b64str = base64Accum + buf.slice(lastI).toString(); - var canBeDecoded = b64str.length - b64str.length % 8; - base64Accum = b64str.slice(canBeDecoded); - b64str = b64str.slice(0, canBeDecoded); - res += this.iconv.decode(Buffer2.from(b64str, "base64"), "utf16-be"); - } - this.inBase64 = inBase64; - this.base64Accum = base64Accum; - return res; - }; - Utf7Decoder.prototype.end = function() { - var res = ""; - if (this.inBase64 && this.base64Accum.length > 0) - res = this.iconv.decode(Buffer2.from(this.base64Accum, "base64"), "utf16-be"); - this.inBase64 = false; - this.base64Accum = ""; - return res; - }; - exports.utf7imap = Utf7IMAPCodec; - function Utf7IMAPCodec(codecOptions, iconv) { - this.iconv = iconv; - } - Utf7IMAPCodec.prototype.encoder = Utf7IMAPEncoder; - Utf7IMAPCodec.prototype.decoder = Utf7IMAPDecoder; - Utf7IMAPCodec.prototype.bomAware = true; - function Utf7IMAPEncoder(options, codec) { - this.iconv = codec.iconv; - this.inBase64 = false; - this.base64Accum = Buffer2.alloc(6); - this.base64AccumIdx = 0; - } - Utf7IMAPEncoder.prototype.write = function(str) { - var inBase64 = this.inBase64, base64Accum = this.base64Accum, base64AccumIdx = this.base64AccumIdx, buf = Buffer2.alloc(str.length * 5 + 10), bufIdx = 0; - for (var i2 = 0;i2 < str.length; i2++) { - var uChar = str.charCodeAt(i2); - if (32 <= uChar && uChar <= 126) { - if (inBase64) { - if (base64AccumIdx > 0) { - bufIdx += buf.write(base64Accum.slice(0, base64AccumIdx).toString("base64").replace(/\//g, ",").replace(/=+$/, ""), bufIdx); - base64AccumIdx = 0; - } - buf[bufIdx++] = minusChar; - inBase64 = false; - } - if (!inBase64) { - buf[bufIdx++] = uChar; - if (uChar === andChar) - buf[bufIdx++] = minusChar; - } - } else { - if (!inBase64) { - buf[bufIdx++] = andChar; - inBase64 = true; - } - if (inBase64) { - base64Accum[base64AccumIdx++] = uChar >> 8; - base64Accum[base64AccumIdx++] = uChar & 255; - if (base64AccumIdx == base64Accum.length) { - bufIdx += buf.write(base64Accum.toString("base64").replace(/\//g, ","), bufIdx); - base64AccumIdx = 0; - } - } - } - } - this.inBase64 = inBase64; - this.base64AccumIdx = base64AccumIdx; - return buf.slice(0, bufIdx); - }; - Utf7IMAPEncoder.prototype.end = function() { - var buf = Buffer2.alloc(10), bufIdx = 0; - if (this.inBase64) { - if (this.base64AccumIdx > 0) { - bufIdx += buf.write(this.base64Accum.slice(0, this.base64AccumIdx).toString("base64").replace(/\//g, ",").replace(/=+$/, ""), bufIdx); - this.base64AccumIdx = 0; - } - buf[bufIdx++] = minusChar; - this.inBase64 = false; - } - return buf.slice(0, bufIdx); - }; - function Utf7IMAPDecoder(options, codec) { - this.iconv = codec.iconv; - this.inBase64 = false; - this.base64Accum = ""; - } - var base64IMAPChars = base64Chars.slice(); - base64IMAPChars[44] = true; - Utf7IMAPDecoder.prototype.write = function(buf) { - var res = "", lastI = 0, inBase64 = this.inBase64, base64Accum = this.base64Accum; - for (var i2 = 0;i2 < buf.length; i2++) { - if (!inBase64) { - if (buf[i2] == andChar) { - res += this.iconv.decode(buf.slice(lastI, i2), "ascii"); - lastI = i2 + 1; - inBase64 = true; - } - } else { - if (!base64IMAPChars[buf[i2]]) { - if (i2 == lastI && buf[i2] == minusChar) { - res += "&"; - } else { - var b64str = base64Accum + buf.slice(lastI, i2).toString().replace(/,/g, "/"); - res += this.iconv.decode(Buffer2.from(b64str, "base64"), "utf16-be"); - } - if (buf[i2] != minusChar) - i2--; - lastI = i2 + 1; - inBase64 = false; - base64Accum = ""; - } - } - } - if (!inBase64) { - res += this.iconv.decode(buf.slice(lastI), "ascii"); - } else { - var b64str = base64Accum + buf.slice(lastI).toString().replace(/,/g, "/"); - var canBeDecoded = b64str.length - b64str.length % 8; - base64Accum = b64str.slice(canBeDecoded); - b64str = b64str.slice(0, canBeDecoded); - res += this.iconv.decode(Buffer2.from(b64str, "base64"), "utf16-be"); - } - this.inBase64 = inBase64; - this.base64Accum = base64Accum; - return res; - }; - Utf7IMAPDecoder.prototype.end = function() { - var res = ""; - if (this.inBase64 && this.base64Accum.length > 0) - res = this.iconv.decode(Buffer2.from(this.base64Accum, "base64"), "utf16-be"); - this.inBase64 = false; - this.base64Accum = ""; - return res; - }; -}); - -// node_modules/iconv-lite/encodings/sbcs-codec.js -var require_sbcs_codec = __commonJS((exports) => { - var Buffer2 = require_safer().Buffer; - exports._sbcs = SBCSCodec; - function SBCSCodec(codecOptions, iconv) { - if (!codecOptions) - throw new Error("SBCS codec is called without the data."); - if (!codecOptions.chars || codecOptions.chars.length !== 128 && codecOptions.chars.length !== 256) - throw new Error("Encoding '" + codecOptions.type + "' has incorrect 'chars' (must be of len 128 or 256)"); - if (codecOptions.chars.length === 128) { - var asciiString = ""; - for (var i = 0;i < 128; i++) - asciiString += String.fromCharCode(i); - codecOptions.chars = asciiString + codecOptions.chars; - } - this.decodeBuf = Buffer2.from(codecOptions.chars, "ucs2"); - var encodeBuf = Buffer2.alloc(65536, iconv.defaultCharSingleByte.charCodeAt(0)); - for (var i = 0;i < codecOptions.chars.length; i++) - encodeBuf[codecOptions.chars.charCodeAt(i)] = i; - this.encodeBuf = encodeBuf; - } - SBCSCodec.prototype.encoder = SBCSEncoder; - SBCSCodec.prototype.decoder = SBCSDecoder; - function SBCSEncoder(options, codec) { - this.encodeBuf = codec.encodeBuf; - } - SBCSEncoder.prototype.write = function(str) { - var buf = Buffer2.alloc(str.length); - for (var i = 0;i < str.length; i++) - buf[i] = this.encodeBuf[str.charCodeAt(i)]; - return buf; - }; - SBCSEncoder.prototype.end = function() {}; - function SBCSDecoder(options, codec) { - this.decodeBuf = codec.decodeBuf; - } - SBCSDecoder.prototype.write = function(buf) { - var decodeBuf = this.decodeBuf; - var newBuf = Buffer2.alloc(buf.length * 2); - var idx1 = 0, idx2 = 0; - for (var i = 0;i < buf.length; i++) { - idx1 = buf[i] * 2; - idx2 = i * 2; - newBuf[idx2] = decodeBuf[idx1]; - newBuf[idx2 + 1] = decodeBuf[idx1 + 1]; - } - return newBuf.toString("ucs2"); - }; - SBCSDecoder.prototype.end = function() {}; -}); - -// node_modules/iconv-lite/encodings/sbcs-data.js -var require_sbcs_data = __commonJS((exports, module) => { - module.exports = { - "10029": "maccenteuro", - maccenteuro: { - type: "_sbcs", - chars: "ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ" - }, - "808": "cp808", - ibm808: "cp808", - cp808: { - type: "_sbcs", - chars: "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№€■ " - }, - mik: { - type: "_sbcs", - chars: "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя└┴┬├─┼╣║╚╔╩╦╠═╬┐░▒▓│┤№§╗╝┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ " - }, - ascii8bit: "ascii", - usascii: "ascii", - ansix34: "ascii", - ansix341968: "ascii", - ansix341986: "ascii", - csascii: "ascii", - cp367: "ascii", - ibm367: "ascii", - isoir6: "ascii", - iso646us: "ascii", - iso646irv: "ascii", - us: "ascii", - latin1: "iso88591", - latin2: "iso88592", - latin3: "iso88593", - latin4: "iso88594", - latin5: "iso88599", - latin6: "iso885910", - latin7: "iso885913", - latin8: "iso885914", - latin9: "iso885915", - latin10: "iso885916", - csisolatin1: "iso88591", - csisolatin2: "iso88592", - csisolatin3: "iso88593", - csisolatin4: "iso88594", - csisolatincyrillic: "iso88595", - csisolatinarabic: "iso88596", - csisolatingreek: "iso88597", - csisolatinhebrew: "iso88598", - csisolatin5: "iso88599", - csisolatin6: "iso885910", - l1: "iso88591", - l2: "iso88592", - l3: "iso88593", - l4: "iso88594", - l5: "iso88599", - l6: "iso885910", - l7: "iso885913", - l8: "iso885914", - l9: "iso885915", - l10: "iso885916", - isoir14: "iso646jp", - isoir57: "iso646cn", - isoir100: "iso88591", - isoir101: "iso88592", - isoir109: "iso88593", - isoir110: "iso88594", - isoir144: "iso88595", - isoir127: "iso88596", - isoir126: "iso88597", - isoir138: "iso88598", - isoir148: "iso88599", - isoir157: "iso885910", - isoir166: "tis620", - isoir179: "iso885913", - isoir199: "iso885914", - isoir203: "iso885915", - isoir226: "iso885916", - cp819: "iso88591", - ibm819: "iso88591", - cyrillic: "iso88595", - arabic: "iso88596", - arabic8: "iso88596", - ecma114: "iso88596", - asmo708: "iso88596", - greek: "iso88597", - greek8: "iso88597", - ecma118: "iso88597", - elot928: "iso88597", - hebrew: "iso88598", - hebrew8: "iso88598", - turkish: "iso88599", - turkish8: "iso88599", - thai: "iso885911", - thai8: "iso885911", - celtic: "iso885914", - celtic8: "iso885914", - isoceltic: "iso885914", - tis6200: "tis620", - tis62025291: "tis620", - tis62025330: "tis620", - "10000": "macroman", - "10006": "macgreek", - "10007": "maccyrillic", - "10079": "maciceland", - "10081": "macturkish", - cspc8codepage437: "cp437", - cspc775baltic: "cp775", - cspc850multilingual: "cp850", - cspcp852: "cp852", - cspc862latinhebrew: "cp862", - cpgr: "cp869", - msee: "cp1250", - mscyrl: "cp1251", - msansi: "cp1252", - msgreek: "cp1253", - msturk: "cp1254", - mshebr: "cp1255", - msarab: "cp1256", - winbaltrim: "cp1257", - cp20866: "koi8r", - "20866": "koi8r", - ibm878: "koi8r", - cskoi8r: "koi8r", - cp21866: "koi8u", - "21866": "koi8u", - ibm1168: "koi8u", - strk10482002: "rk1048", - tcvn5712: "tcvn", - tcvn57121: "tcvn", - gb198880: "iso646cn", - cn: "iso646cn", - csiso14jisc6220ro: "iso646jp", - jisc62201969ro: "iso646jp", - jp: "iso646jp", - cshproman8: "hproman8", - r8: "hproman8", - roman8: "hproman8", - xroman8: "hproman8", - ibm1051: "hproman8", - mac: "macintosh", - csmacintosh: "macintosh" - }; -}); - -// node_modules/iconv-lite/encodings/sbcs-data-generated.js -var require_sbcs_data_generated = __commonJS((exports, module) => { - module.exports = { - "437": "cp437", - "737": "cp737", - "775": "cp775", - "850": "cp850", - "852": "cp852", - "855": "cp855", - "856": "cp856", - "857": "cp857", - "858": "cp858", - "860": "cp860", - "861": "cp861", - "862": "cp862", - "863": "cp863", - "864": "cp864", - "865": "cp865", - "866": "cp866", - "869": "cp869", - "874": "windows874", - "922": "cp922", - "1046": "cp1046", - "1124": "cp1124", - "1125": "cp1125", - "1129": "cp1129", - "1133": "cp1133", - "1161": "cp1161", - "1162": "cp1162", - "1163": "cp1163", - "1250": "windows1250", - "1251": "windows1251", - "1252": "windows1252", - "1253": "windows1253", - "1254": "windows1254", - "1255": "windows1255", - "1256": "windows1256", - "1257": "windows1257", - "1258": "windows1258", - "28591": "iso88591", - "28592": "iso88592", - "28593": "iso88593", - "28594": "iso88594", - "28595": "iso88595", - "28596": "iso88596", - "28597": "iso88597", - "28598": "iso88598", - "28599": "iso88599", - "28600": "iso885910", - "28601": "iso885911", - "28603": "iso885913", - "28604": "iso885914", - "28605": "iso885915", - "28606": "iso885916", - windows874: { - type: "_sbcs", - chars: "€����…�����������‘’“”•–—�������� กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����" - }, - win874: "windows874", - cp874: "windows874", - windows1250: { - type: "_sbcs", - chars: "€�‚�„…†‡�‰Š‹ŚŤŽŹ�‘’“”•–—�™š›śťžź ˇ˘Ł¤Ą¦§¨©Ş«¬­®Ż°±˛ł´µ¶·¸ąş»Ľ˝ľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙" - }, - win1250: "windows1250", - cp1250: "windows1250", - windows1251: { - type: "_sbcs", - chars: "ЂЃ‚ѓ„…†‡€‰Љ‹ЊЌЋЏђ‘’“”•–—�™љ›њќћџ ЎўЈ¤Ґ¦§Ё©Є«¬­®Ї°±Ііґµ¶·ё№є»јЅѕїАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя" - }, - win1251: "windows1251", - cp1251: "windows1251", - windows1252: { - type: "_sbcs", - chars: "€�‚ƒ„…†‡ˆ‰Š‹Œ�Ž��‘’“”•–—˜™š›œ�žŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ" - }, - win1252: "windows1252", - cp1252: "windows1252", - windows1253: { - type: "_sbcs", - chars: "€�‚ƒ„…†‡�‰�‹�����‘’“”•–—�™�›���� ΅Ά£¤¥¦§¨©�«¬­®―°±²³΄µ¶·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ�ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ�" - }, - win1253: "windows1253", - cp1253: "windows1253", - windows1254: { - type: "_sbcs", - chars: "€�‚ƒ„…†‡ˆ‰Š‹Œ����‘’“”•–—˜™š›œ��Ÿ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖרÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ" - }, - win1254: "windows1254", - cp1254: "windows1254", - windows1255: { - type: "_sbcs", - chars: "€�‚ƒ„…†‡ˆ‰�‹�����‘’“”•–—˜™�›���� ¡¢£₪¥¦§¨©×«¬­®¯°±²³´µ¶·¸¹÷»¼½¾¿ְֱֲֳִֵֶַָֹֺֻּֽ־ֿ׀ׁׂ׃װױײ׳״�������אבגדהוזחטיךכלםמןנסעףפץצקרשת��‎‏�" - }, - win1255: "windows1255", - cp1255: "windows1255", - windows1256: { - type: "_sbcs", - chars: "€پ‚ƒ„…†‡ˆ‰ٹ‹Œچژڈگ‘’“”•–—ک™ڑ›œ‌‍ں ،¢£¤¥¦§¨©ھ«¬­®¯°±²³´µ¶·¸¹؛»¼½¾؟ہءآأؤإئابةتثجحخدذرزسشصض×طظعغـفقكàلâمنهوçèéêëىيîïًٌٍَôُِ÷ّùْûü‎‏ے" - }, - win1256: "windows1256", - cp1256: "windows1256", - windows1257: { - type: "_sbcs", - chars: "€�‚�„…†‡�‰�‹�¨ˇ¸�‘’“”•–—�™�›�¯˛� �¢£¤�¦§Ø©Ŗ«¬­®Æ°±²³´µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž˙" - }, - win1257: "windows1257", - cp1257: "windows1257", - windows1258: { - type: "_sbcs", - chars: "€�‚ƒ„…†‡ˆ‰�‹Œ����‘’“”•–—˜™�›œ��Ÿ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ" - }, - win1258: "windows1258", - cp1258: "windows1258", - iso88591: { - type: "_sbcs", - chars: "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ" - }, - cp28591: "iso88591", - iso88592: { - type: "_sbcs", - chars: "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ Ą˘Ł¤ĽŚ§¨ŠŞŤŹ­ŽŻ°ą˛ł´ľśˇ¸šşťź˝žżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙" - }, - cp28592: "iso88592", - iso88593: { - type: "_sbcs", - chars: "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ Ħ˘£¤�Ĥ§¨İŞĞĴ­�ݰħ²³´µĥ·¸ışğĵ½�żÀÁÂ�ÄĊĈÇÈÉÊËÌÍÎÏ�ÑÒÓÔĠÖ×ĜÙÚÛÜŬŜßàáâ�äċĉçèéêëìíîï�ñòóôġö÷ĝùúûüŭŝ˙" - }, - cp28593: "iso88593", - iso88594: { - type: "_sbcs", - chars: "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ĄĸŖ¤Ĩϧ¨ŠĒĢŦ­Ž¯°ą˛ŗ´ĩšēģŧŊžŋĀÁÂÃÄÅÆĮČÉĘËĖÍÎĪĐŅŌĶÔÕÖרŲÚÛÜŨŪßāáâãäåæįčéęëėíîīđņōķôõö÷øųúûüũū˙" - }, - cp28594: "iso88594", - iso88595: { - type: "_sbcs", - chars: "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ЁЂЃЄЅІЇЈЉЊЋЌ­ЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђѓєѕіїјљњћќ§ўџ" - }, - cp28595: "iso88595", - iso88596: { - type: "_sbcs", - chars: "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ���¤�������،­�������������؛���؟�ءآأؤإئابةتثجحخدذرزسشصضطظعغ�����ـفقكلمنهوىيًٌٍَُِّْ�������������" - }, - cp28596: "iso88596", - iso88597: { - type: "_sbcs", - chars: "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ‘’£€₯¦§¨©ͺ«¬­�―°±²³΄΅Ά·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ�ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ�" - }, - cp28597: "iso88597", - iso88598: { - type: "_sbcs", - chars: "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ �¢£¤¥¦§¨©×«¬­®¯°±²³´µ¶·¸¹÷»¼½¾��������������������������������‗אבגדהוזחטיךכלםמןנסעףפץצקרשת��‎‏�" - }, - cp28598: "iso88598", - iso88599: { - type: "_sbcs", - chars: "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖרÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ" - }, - cp28599: "iso88599", - iso885910: { - type: "_sbcs", - chars: "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ĄĒĢĪĨͧĻĐŠŦŽ­ŪŊ°ąēģīĩķ·ļđšŧž―ūŋĀÁÂÃÄÅÆĮČÉĘËĖÍÎÏÐŅŌÓÔÕÖŨØŲÚÛÜÝÞßāáâãäåæįčéęëėíîïðņōóôõöũøųúûüýþĸ" - }, - cp28600: "iso885910", - iso885911: { - type: "_sbcs", - chars: "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����" - }, - cp28601: "iso885911", - iso885913: { - type: "_sbcs", - chars: "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ”¢£¤„¦§Ø©Ŗ«¬­®Æ°±²³“µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž’" - }, - cp28603: "iso885913", - iso885914: { - type: "_sbcs", - chars: "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ Ḃḃ£ĊċḊ§Ẁ©ẂḋỲ­®ŸḞḟĠġṀṁ¶ṖẁṗẃṠỳẄẅṡÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏŴÑÒÓÔÕÖṪØÙÚÛÜÝŶßàáâãäåæçèéêëìíîïŵñòóôõöṫøùúûüýŷÿ" - }, - cp28604: "iso885914", - iso885915: { - type: "_sbcs", - chars: "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£€¥Š§š©ª«¬­®¯°±²³Žµ¶·ž¹º»ŒœŸ¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ" - }, - cp28605: "iso885915", - iso885916: { - type: "_sbcs", - chars: "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ĄąŁ€„Чš©Ș«Ź­źŻ°±ČłŽ”¶·žčș»ŒœŸżÀÁÂĂÄĆÆÇÈÉÊËÌÍÎÏĐŃÒÓÔŐÖŚŰÙÚÛÜĘȚßàáâăäćæçèéêëìíîïđńòóôőöśűùúûüęțÿ" - }, - cp28606: "iso885916", - cp437: { - type: "_sbcs", - chars: "ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ " - }, - ibm437: "cp437", - csibm437: "cp437", - cp737: { - type: "_sbcs", - chars: "ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρσςτυφχψ░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ωάέήϊίόύϋώΆΈΉΊΌΎΏ±≥≤ΪΫ÷≈°∙·√ⁿ²■ " - }, - ibm737: "cp737", - csibm737: "cp737", - cp775: { - type: "_sbcs", - chars: "ĆüéāäģåćłēŖŗīŹÄÅÉæÆōöĢ¢ŚśÖÜø£Ø×¤ĀĪóŻżź”¦©®¬½¼Ł«»░▒▓│┤ĄČĘĖ╣║╗╝ĮŠ┐└┴┬├─┼ŲŪ╚╔╩╦╠═╬Žąčęėįšųūž┘┌█▄▌▐▀ÓßŌŃõÕµńĶķĻļņĒŅ’­±“¾¶§÷„°∙·¹³²■ " - }, - ibm775: "cp775", - csibm775: "cp775", - cp850: { - type: "_sbcs", - chars: "ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñѪº¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ðÐÊËÈıÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµþÞÚÛÙýݯ´­±‗¾¶§÷¸°¨·¹³²■ " - }, - ibm850: "cp850", - csibm850: "cp850", - cp852: { - type: "_sbcs", - chars: "ÇüéâäůćçłëŐőîŹÄĆÉĹĺôöĽľŚśÖÜŤťŁ×čáíóúĄąŽžĘ꬟Ⱥ«»░▒▓│┤ÁÂĚŞ╣║╗╝Żż┐└┴┬├─┼Ăă╚╔╩╦╠═╬¤đĐĎËďŇÍÎě┘┌█▄ŢŮ▀ÓßÔŃńňŠšŔÚŕŰýÝţ´­˝˛ˇ˘§÷¸°¨˙űŘř■ " - }, - ibm852: "cp852", - csibm852: "cp852", - cp855: { - type: "_sbcs", - chars: "ђЂѓЃёЁєЄѕЅіІїЇјЈљЉњЊћЋќЌўЎџЏюЮъЪаАбБцЦдДеЕфФгГ«»░▒▓│┤хХиИ╣║╗╝йЙ┐└┴┬├─┼кК╚╔╩╦╠═╬¤лЛмМнНоОп┘┌█▄Пя▀ЯрРсСтТуУжЖвВьЬ№­ыЫзЗшШэЭщЩчЧ§■ " - }, - ibm855: "cp855", - csibm855: "cp855", - cp856: { - type: "_sbcs", - chars: "אבגדהוזחטיךכלםמןנסעףפץצקרשת�£�×����������®¬½¼�«»░▒▓│┤���©╣║╗╝¢¥┐└┴┬├─┼��╚╔╩╦╠═╬¤���������┘┌█▄¦�▀������µ�������¯´­±‗¾¶§÷¸°¨·¹³²■ " - }, - ibm856: "cp856", - csibm856: "cp856", - cp857: { - type: "_sbcs", - chars: "ÇüéâäàåçêëèïîıÄÅÉæÆôöòûùİÖÜø£ØŞşáíóúñÑĞ𿮬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ºªÊËÈ�ÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµ�×ÚÛÙìÿ¯´­±�¾¶§÷¸°¨·¹³²■ " - }, - ibm857: "cp857", - csibm857: "cp857", - cp858: { - type: "_sbcs", - chars: "ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñѪº¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ðÐÊËÈ€ÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµþÞÚÛÙýݯ´­±‗¾¶§÷¸°¨·¹³²■ " - }, - ibm858: "cp858", - csibm858: "cp858", - cp860: { - type: "_sbcs", - chars: "ÇüéâãàÁçêÊèÍÔìÃÂÉÀÈôõòÚùÌÕÜ¢£Ù₧ÓáíóúñѪº¿Ò¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ " - }, - ibm860: "cp860", - csibm860: "cp860", - cp861: { - type: "_sbcs", - chars: "ÇüéâäàåçêëèÐðÞÄÅÉæÆôöþûÝýÖÜø£Ø₧ƒáíóúÁÍÓÚ¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ " - }, - ibm861: "cp861", - csibm861: "cp861", - cp862: { - type: "_sbcs", - chars: "אבגדהוזחטיךכלםמןנסעףפץצקרשת¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ " - }, - ibm862: "cp862", - csibm862: "cp862", - cp863: { - type: "_sbcs", - chars: "ÇüéâÂà¶çêëèïî‗À§ÉÈÊôËÏûù¤ÔÜ¢£ÙÛƒ¦´óú¨¸³¯Î⌐¬½¼¾«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ " - }, - ibm863: "cp863", - csibm863: "cp863", - cp864: { - type: "_sbcs", - chars: `\x00\x01\x02\x03\x04\x05\x06\x07\b -\v\f\r\x0E\x0F\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F !"#$٪&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~°·∙√▒─│┼┤┬├┴┐┌└┘β∞φ±½¼≈«»ﻷﻸ��ﻻﻼ� ­ﺂ£¤ﺄ��ﺎﺏﺕﺙ،ﺝﺡﺥ٠١٢٣٤٥٦٧٨٩ﻑ؛ﺱﺵﺹ؟¢ﺀﺁﺃﺅﻊﺋﺍﺑﺓﺗﺛﺟﺣﺧﺩﺫﺭﺯﺳﺷﺻﺿﻁﻅﻋﻏ¦¬÷×ﻉـﻓﻗﻛﻟﻣﻧﻫﻭﻯﻳﺽﻌﻎﻍﻡﹽّﻥﻩﻬﻰﻲﻐﻕﻵﻶﻝﻙﻱ■�` - }, - ibm864: "cp864", - csibm864: "cp864", - cp865: { - type: "_sbcs", - chars: "ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø₧ƒáíóúñѪº¿⌐¬½¼¡«¤░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ " - }, - ibm865: "cp865", - csibm865: "cp865", - cp866: { - type: "_sbcs", - chars: "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№¤■ " - }, - ibm866: "cp866", - csibm866: "cp866", - cp869: { - type: "_sbcs", - chars: "������Ά�·¬¦‘’Έ―ΉΊΪΌ��ΎΫ©Ώ²³ά£έήίϊΐόύΑΒΓΔΕΖΗ½ΘΙ«»░▒▓│┤ΚΛΜΝ╣║╗╝ΞΟ┐└┴┬├─┼ΠΡ╚╔╩╦╠═╬ΣΤΥΦΧΨΩαβγ┘┌█▄δε▀ζηθικλμνξοπρσςτ΄­±υφχ§ψ΅°¨ωϋΰώ■ " - }, - ibm869: "cp869", - csibm869: "cp869", - cp922: { - type: "_sbcs", - chars: "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®‾°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏŠÑÒÓÔÕÖרÙÚÛÜÝŽßàáâãäåæçèéêëìíîïšñòóôõö÷øùúûüýžÿ" - }, - ibm922: "cp922", - csibm922: "cp922", - cp1046: { - type: "_sbcs", - chars: "ﺈ×÷ﹱˆ■│─┐┌└┘ﹹﹻﹽﹿﹷﺊﻰﻳﻲﻎﻏﻐﻶﻸﻺﻼ ¤ﺋﺑﺗﺛﺟﺣ،­ﺧﺳ٠١٢٣٤٥٦٧٨٩ﺷ؛ﺻﺿﻊ؟ﻋءآأؤإئابةتثجحخدذرزسشصضطﻇعغﻌﺂﺄﺎﻓـفقكلمنهوىيًٌٍَُِّْﻗﻛﻟﻵﻷﻹﻻﻣﻧﻬﻩ�" - }, - ibm1046: "cp1046", - csibm1046: "cp1046", - cp1124: { - type: "_sbcs", - chars: "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ЁЂҐЄЅІЇЈЉЊЋЌ­ЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђґєѕіїјљњћќ§ўџ" - }, - ibm1124: "cp1124", - csibm1124: "cp1124", - cp1125: { - type: "_sbcs", - chars: "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёҐґЄєІіЇї·√№¤■ " - }, - ibm1125: "cp1125", - csibm1125: "cp1125", - cp1129: { - type: "_sbcs", - chars: "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§œ©ª«¬­®¯°±²³Ÿµ¶·Œ¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ" - }, - ibm1129: "cp1129", - csibm1129: "cp1129", - cp1133: { - type: "_sbcs", - chars: "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ກຂຄງຈສຊຍດຕຖທນບປຜຝພຟມຢຣລວຫອຮ���ຯະາຳິີຶືຸູຼັົຽ���ເແໂໃໄ່້໊໋໌ໍໆ�ໜໝ₭����������������໐໑໒໓໔໕໖໗໘໙��¢¬¦�" - }, - ibm1133: "cp1133", - csibm1133: "cp1133", - cp1161: { - type: "_sbcs", - chars: "��������������������������������่กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู้๊๋€฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛¢¬¦ " - }, - ibm1161: "cp1161", - csibm1161: "cp1161", - cp1162: { - type: "_sbcs", - chars: "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����" - }, - ibm1162: "cp1162", - csibm1162: "cp1162", - cp1163: { - type: "_sbcs", - chars: "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£€¥¦§œ©ª«¬­®¯°±²³Ÿµ¶·Œ¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ" - }, - ibm1163: "cp1163", - csibm1163: "cp1163", - maccroatian: { - type: "_sbcs", - chars: "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈ƫȅ ÀÃÕŒœĐ—“”‘’÷◊�©⁄¤‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ" - }, - maccyrillic: { - type: "_sbcs", - chars: "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°¢£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµ∂ЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю¤" - }, - macgreek: { - type: "_sbcs", - chars: "Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦­ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ�" - }, - maciceland: { - type: "_sbcs", - chars: "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüݰ¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ" - }, - macroman: { - type: "_sbcs", - chars: "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ" - }, - macromania: { - type: "_sbcs", - chars: "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂŞ∞±≤≥¥µ∂∑∏π∫ªºΩăş¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›Ţţ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ" - }, - macthai: { - type: "_sbcs", - chars: "«»…“”�•‘’� กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู\uFEFF​–—฿เแโใไๅๆ็่้๊๋์ํ™๏๐๑๒๓๔๕๖๗๘๙®©����" - }, - macturkish: { - type: "_sbcs", - chars: "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙ�ˆ˜¯˘˙˚¸˝˛ˇ" - }, - macukraine: { - type: "_sbcs", - chars: "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю¤" - }, - koi8r: { - type: "_sbcs", - chars: "─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ё╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡Ё╢╣╤╥╦╧╨╩╪╫╬©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ" - }, - koi8u: { - type: "_sbcs", - chars: "─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ёє╔ії╗╘╙╚╛ґ╝╞╟╠╡ЁЄ╣ІЇ╦╧╨╩╪Ґ╬©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ" - }, - koi8ru: { - type: "_sbcs", - chars: "─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ёє╔ії╗╘╙╚╛ґў╞╟╠╡ЁЄ╣ІЇ╦╧╨╩╪ҐЎ©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ" - }, - koi8t: { - type: "_sbcs", - chars: "қғ‚Ғ„…†‡�‰ҳ‹ҲҷҶ�Қ‘’“”•–—�™�›�����ӯӮё¤ӣ¦§���«¬­®�°±²Ё�Ӣ¶·�№�»���©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ" - }, - armscii8: { - type: "_sbcs", - chars: "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ �և։)(»«—.՝,-֊…՜՛՞ԱաԲբԳգԴդԵեԶզԷէԸըԹթԺժԻիԼլԽխԾծԿկՀհՁձՂղՃճՄմՅյՆնՇշՈոՉչՊպՋջՌռՍսՎվՏտՐրՑցՒւՓփՔքՕօՖֆ՚�" - }, - rk1048: { - type: "_sbcs", - chars: "ЂЃ‚ѓ„…†‡€‰Љ‹ЊҚҺЏђ‘’“”•–—�™љ›њқһџ ҰұӘ¤Ө¦§Ё©Ғ«¬­®Ү°±Ііөµ¶·ё№ғ»әҢңүАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя" - }, - tcvn: { - type: "_sbcs", - chars: `\x00ÚỤ\x03ỪỬỮ\x07\b -\v\f\r\x0E\x0F\x10ỨỰỲỶỸÝỴ\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÀẢÃÁẠẶẬÈẺẼÉẸỆÌỈĨÍỊÒỎÕÓỌỘỜỞỠỚỢÙỦŨ ĂÂÊÔƠƯĐăâêôơưđẶ̀̀̉̃́àảãáạẲằẳẵắẴẮẦẨẪẤỀặầẩẫấậèỂẻẽéẹềểễếệìỉỄẾỒĩíịòỔỏõóọồổỗốộờởỡớợùỖủũúụừửữứựỳỷỹýỵỐ` - }, - georgianacademy: { - type: "_sbcs", - chars: "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿აბგდევზთიკლმნოპჟრსტუფქღყშჩცძწჭხჯჰჱჲჳჴჵჶçèéêëìíîïðñòóôõö÷øùúûüýþÿ" - }, - georgianps: { - type: "_sbcs", - chars: "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿აბგდევზჱთიკლმნჲოპჟრსტჳუფქღყშჩცძწჭხჴჯჰჵæçèéêëìíîïðñòóôõö÷øùúûüýþÿ" - }, - pt154: { - type: "_sbcs", - chars: "ҖҒӮғ„…ҶҮҲүҠӢҢҚҺҸҗ‘’“”•–—ҳҷҡӣңқһҹ ЎўЈӨҘҰ§Ё©Ә«¬ӯ®Ҝ°ұІіҙө¶·ё№ә»јҪҫҝАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя" - }, - viscii: { - type: "_sbcs", - chars: `\x00\x01Ẳ\x03\x04ẴẪ\x07\b -\v\f\r\x0E\x0F\x10\x11\x12\x13Ỷ\x15\x16\x17\x18Ỹ\x1A\x1B\x1C\x1DỴ\x1F !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ẠẮẰẶẤẦẨẬẼẸẾỀỂỄỆỐỒỔỖỘỢỚỜỞỊỎỌỈỦŨỤỲÕắằặấầẩậẽẹếềểễệốồổỗỠƠộờởịỰỨỪỬơớƯÀÁÂÃẢĂẳẵÈÉÊẺÌÍĨỳĐứÒÓÔạỷừửÙÚỹỵÝỡưàáâãảăữẫèéêẻìíĩỉđựòóôõỏọụùúũủýợỮ` - }, - iso646cn: { - type: "_sbcs", - chars: `\x00\x01\x02\x03\x04\x05\x06\x07\b -\v\f\r\x0E\x0F\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F !"#¥%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}‾��������������������������������������������������������������������������������������������������������������������������������` - }, - iso646jp: { - type: "_sbcs", - chars: `\x00\x01\x02\x03\x04\x05\x06\x07\b -\v\f\r\x0E\x0F\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[¥]^_\`abcdefghijklmnopqrstuvwxyz{|}‾��������������������������������������������������������������������������������������������������������������������������������` - }, - hproman8: { - type: "_sbcs", - chars: "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ÀÂÈÊËÎÏ´ˋˆ¨˜ÙÛ₤¯Ýý°ÇçÑñ¡¿¤£¥§ƒ¢âêôûáéóúàèòùäëöüÅîØÆåíøæÄìÖÜÉïßÔÁÃãÐðÍÌÓÒÕõŠšÚŸÿÞþ·µ¶¾—¼½ªº«■»±�" - }, - macintosh: { - type: "_sbcs", - chars: "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ" - }, - ascii: { - type: "_sbcs", - chars: "��������������������������������������������������������������������������������������������������������������������������������" - }, - tis620: { - type: "_sbcs", - chars: "���������������������������������กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����" - } - }; -}); - -// node_modules/iconv-lite/encodings/dbcs-codec.js -var require_dbcs_codec = __commonJS((exports) => { - var Buffer2 = require_safer().Buffer; - exports._dbcs = DBCSCodec; - var UNASSIGNED = -1; - var GB18030_CODE = -2; - var SEQ_START = -10; - var NODE_START = -1000; - var UNASSIGNED_NODE = new Array(256); - var DEF_CHAR = -1; - for (i = 0;i < 256; i++) - UNASSIGNED_NODE[i] = UNASSIGNED; - var i; - function DBCSCodec(codecOptions, iconv) { - this.encodingName = codecOptions.encodingName; - if (!codecOptions) - throw new Error("DBCS codec is called without the data."); - if (!codecOptions.table) - throw new Error("Encoding '" + this.encodingName + "' has no data."); - var mappingTable = codecOptions.table(); - this.decodeTables = []; - this.decodeTables[0] = UNASSIGNED_NODE.slice(0); - this.decodeTableSeq = []; - for (var i2 = 0;i2 < mappingTable.length; i2++) - this._addDecodeChunk(mappingTable[i2]); - this.defaultCharUnicode = iconv.defaultCharUnicode; - this.encodeTable = []; - this.encodeTableSeq = []; - var skipEncodeChars = {}; - if (codecOptions.encodeSkipVals) - for (var i2 = 0;i2 < codecOptions.encodeSkipVals.length; i2++) { - var val = codecOptions.encodeSkipVals[i2]; - if (typeof val === "number") - skipEncodeChars[val] = true; - else - for (var j = val.from;j <= val.to; j++) - skipEncodeChars[j] = true; - } - this._fillEncodeTable(0, 0, skipEncodeChars); - if (codecOptions.encodeAdd) { - for (var uChar in codecOptions.encodeAdd) - if (Object.prototype.hasOwnProperty.call(codecOptions.encodeAdd, uChar)) - this._setEncodeChar(uChar.charCodeAt(0), codecOptions.encodeAdd[uChar]); - } - this.defCharSB = this.encodeTable[0][iconv.defaultCharSingleByte.charCodeAt(0)]; - if (this.defCharSB === UNASSIGNED) - this.defCharSB = this.encodeTable[0]["?"]; - if (this.defCharSB === UNASSIGNED) - this.defCharSB = 63; - if (typeof codecOptions.gb18030 === "function") { - this.gb18030 = codecOptions.gb18030(); - var thirdByteNodeIdx = this.decodeTables.length; - var thirdByteNode = this.decodeTables[thirdByteNodeIdx] = UNASSIGNED_NODE.slice(0); - var fourthByteNodeIdx = this.decodeTables.length; - var fourthByteNode = this.decodeTables[fourthByteNodeIdx] = UNASSIGNED_NODE.slice(0); - for (var i2 = 129;i2 <= 254; i2++) { - var secondByteNodeIdx = NODE_START - this.decodeTables[0][i2]; - var secondByteNode = this.decodeTables[secondByteNodeIdx]; - for (var j = 48;j <= 57; j++) - secondByteNode[j] = NODE_START - thirdByteNodeIdx; - } - for (var i2 = 129;i2 <= 254; i2++) - thirdByteNode[i2] = NODE_START - fourthByteNodeIdx; - for (var i2 = 48;i2 <= 57; i2++) - fourthByteNode[i2] = GB18030_CODE; - } - } - DBCSCodec.prototype.encoder = DBCSEncoder; - DBCSCodec.prototype.decoder = DBCSDecoder; - DBCSCodec.prototype._getDecodeTrieNode = function(addr) { - var bytes = []; - for (;addr > 0; addr >>= 8) - bytes.push(addr & 255); - if (bytes.length == 0) - bytes.push(0); - var node = this.decodeTables[0]; - for (var i2 = bytes.length - 1;i2 > 0; i2--) { - var val = node[bytes[i2]]; - if (val == UNASSIGNED) { - node[bytes[i2]] = NODE_START - this.decodeTables.length; - this.decodeTables.push(node = UNASSIGNED_NODE.slice(0)); - } else if (val <= NODE_START) { - node = this.decodeTables[NODE_START - val]; - } else - throw new Error("Overwrite byte in " + this.encodingName + ", addr: " + addr.toString(16)); - } - return node; - }; - DBCSCodec.prototype._addDecodeChunk = function(chunk) { - var curAddr = parseInt(chunk[0], 16); - var writeTable = this._getDecodeTrieNode(curAddr); - curAddr = curAddr & 255; - for (var k = 1;k < chunk.length; k++) { - var part = chunk[k]; - if (typeof part === "string") { - for (var l = 0;l < part.length; ) { - var code = part.charCodeAt(l++); - if (55296 <= code && code < 56320) { - var codeTrail = part.charCodeAt(l++); - if (56320 <= codeTrail && codeTrail < 57344) - writeTable[curAddr++] = 65536 + (code - 55296) * 1024 + (codeTrail - 56320); - else - throw new Error("Incorrect surrogate pair in " + this.encodingName + " at chunk " + chunk[0]); - } else if (4080 < code && code <= 4095) { - var len = 4095 - code + 2; - var seq = []; - for (var m = 0;m < len; m++) - seq.push(part.charCodeAt(l++)); - writeTable[curAddr++] = SEQ_START - this.decodeTableSeq.length; - this.decodeTableSeq.push(seq); - } else - writeTable[curAddr++] = code; - } - } else if (typeof part === "number") { - var charCode = writeTable[curAddr - 1] + 1; - for (var l = 0;l < part; l++) - writeTable[curAddr++] = charCode++; - } else - throw new Error("Incorrect type '" + typeof part + "' given in " + this.encodingName + " at chunk " + chunk[0]); - } - if (curAddr > 255) - throw new Error("Incorrect chunk in " + this.encodingName + " at addr " + chunk[0] + ": too long" + curAddr); - }; - DBCSCodec.prototype._getEncodeBucket = function(uCode) { - var high = uCode >> 8; - if (this.encodeTable[high] === undefined) - this.encodeTable[high] = UNASSIGNED_NODE.slice(0); - return this.encodeTable[high]; - }; - DBCSCodec.prototype._setEncodeChar = function(uCode, dbcsCode) { - var bucket = this._getEncodeBucket(uCode); - var low = uCode & 255; - if (bucket[low] <= SEQ_START) - this.encodeTableSeq[SEQ_START - bucket[low]][DEF_CHAR] = dbcsCode; - else if (bucket[low] == UNASSIGNED) - bucket[low] = dbcsCode; - }; - DBCSCodec.prototype._setEncodeSequence = function(seq, dbcsCode) { - var uCode = seq[0]; - var bucket = this._getEncodeBucket(uCode); - var low = uCode & 255; - var node; - if (bucket[low] <= SEQ_START) { - node = this.encodeTableSeq[SEQ_START - bucket[low]]; - } else { - node = {}; - if (bucket[low] !== UNASSIGNED) - node[DEF_CHAR] = bucket[low]; - bucket[low] = SEQ_START - this.encodeTableSeq.length; - this.encodeTableSeq.push(node); - } - for (var j = 1;j < seq.length - 1; j++) { - var oldVal = node[uCode]; - if (typeof oldVal === "object") - node = oldVal; - else { - node = node[uCode] = {}; - if (oldVal !== undefined) - node[DEF_CHAR] = oldVal; - } - } - uCode = seq[seq.length - 1]; - node[uCode] = dbcsCode; - }; - DBCSCodec.prototype._fillEncodeTable = function(nodeIdx, prefix, skipEncodeChars) { - var node = this.decodeTables[nodeIdx]; - for (var i2 = 0;i2 < 256; i2++) { - var uCode = node[i2]; - var mbCode = prefix + i2; - if (skipEncodeChars[mbCode]) - continue; - if (uCode >= 0) - this._setEncodeChar(uCode, mbCode); - else if (uCode <= NODE_START) - this._fillEncodeTable(NODE_START - uCode, mbCode << 8, skipEncodeChars); - else if (uCode <= SEQ_START) - this._setEncodeSequence(this.decodeTableSeq[SEQ_START - uCode], mbCode); - } - }; - function DBCSEncoder(options, codec) { - this.leadSurrogate = -1; - this.seqObj = undefined; - this.encodeTable = codec.encodeTable; - this.encodeTableSeq = codec.encodeTableSeq; - this.defaultCharSingleByte = codec.defCharSB; - this.gb18030 = codec.gb18030; - } - DBCSEncoder.prototype.write = function(str) { - var newBuf = Buffer2.alloc(str.length * (this.gb18030 ? 4 : 3)), leadSurrogate = this.leadSurrogate, seqObj = this.seqObj, nextChar = -1, i2 = 0, j = 0; - while (true) { - if (nextChar === -1) { - if (i2 == str.length) - break; - var uCode = str.charCodeAt(i2++); - } else { - var uCode = nextChar; - nextChar = -1; - } - if (55296 <= uCode && uCode < 57344) { - if (uCode < 56320) { - if (leadSurrogate === -1) { - leadSurrogate = uCode; - continue; - } else { - leadSurrogate = uCode; - uCode = UNASSIGNED; - } - } else { - if (leadSurrogate !== -1) { - uCode = 65536 + (leadSurrogate - 55296) * 1024 + (uCode - 56320); - leadSurrogate = -1; - } else { - uCode = UNASSIGNED; - } - } - } else if (leadSurrogate !== -1) { - nextChar = uCode; - uCode = UNASSIGNED; - leadSurrogate = -1; - } - var dbcsCode = UNASSIGNED; - if (seqObj !== undefined && uCode != UNASSIGNED) { - var resCode = seqObj[uCode]; - if (typeof resCode === "object") { - seqObj = resCode; - continue; - } else if (typeof resCode == "number") { - dbcsCode = resCode; - } else if (resCode == undefined) { - resCode = seqObj[DEF_CHAR]; - if (resCode !== undefined) { - dbcsCode = resCode; - nextChar = uCode; - } else {} - } - seqObj = undefined; - } else if (uCode >= 0) { - var subtable = this.encodeTable[uCode >> 8]; - if (subtable !== undefined) - dbcsCode = subtable[uCode & 255]; - if (dbcsCode <= SEQ_START) { - seqObj = this.encodeTableSeq[SEQ_START - dbcsCode]; - continue; - } - if (dbcsCode == UNASSIGNED && this.gb18030) { - var idx = findIdx(this.gb18030.uChars, uCode); - if (idx != -1) { - var dbcsCode = this.gb18030.gbChars[idx] + (uCode - this.gb18030.uChars[idx]); - newBuf[j++] = 129 + Math.floor(dbcsCode / 12600); - dbcsCode = dbcsCode % 12600; - newBuf[j++] = 48 + Math.floor(dbcsCode / 1260); - dbcsCode = dbcsCode % 1260; - newBuf[j++] = 129 + Math.floor(dbcsCode / 10); - dbcsCode = dbcsCode % 10; - newBuf[j++] = 48 + dbcsCode; - continue; - } - } - } - if (dbcsCode === UNASSIGNED) - dbcsCode = this.defaultCharSingleByte; - if (dbcsCode < 256) { - newBuf[j++] = dbcsCode; - } else if (dbcsCode < 65536) { - newBuf[j++] = dbcsCode >> 8; - newBuf[j++] = dbcsCode & 255; - } else { - newBuf[j++] = dbcsCode >> 16; - newBuf[j++] = dbcsCode >> 8 & 255; - newBuf[j++] = dbcsCode & 255; - } - } - this.seqObj = seqObj; - this.leadSurrogate = leadSurrogate; - return newBuf.slice(0, j); - }; - DBCSEncoder.prototype.end = function() { - if (this.leadSurrogate === -1 && this.seqObj === undefined) - return; - var newBuf = Buffer2.alloc(10), j = 0; - if (this.seqObj) { - var dbcsCode = this.seqObj[DEF_CHAR]; - if (dbcsCode !== undefined) { - if (dbcsCode < 256) { - newBuf[j++] = dbcsCode; - } else { - newBuf[j++] = dbcsCode >> 8; - newBuf[j++] = dbcsCode & 255; - } - } else {} - this.seqObj = undefined; - } - if (this.leadSurrogate !== -1) { - newBuf[j++] = this.defaultCharSingleByte; - this.leadSurrogate = -1; - } - return newBuf.slice(0, j); - }; - DBCSEncoder.prototype.findIdx = findIdx; - function DBCSDecoder(options, codec) { - this.nodeIdx = 0; - this.prevBuf = Buffer2.alloc(0); - this.decodeTables = codec.decodeTables; - this.decodeTableSeq = codec.decodeTableSeq; - this.defaultCharUnicode = codec.defaultCharUnicode; - this.gb18030 = codec.gb18030; - } - DBCSDecoder.prototype.write = function(buf) { - var newBuf = Buffer2.alloc(buf.length * 2), nodeIdx = this.nodeIdx, prevBuf = this.prevBuf, prevBufOffset = this.prevBuf.length, seqStart = -this.prevBuf.length, uCode; - if (prevBufOffset > 0) - prevBuf = Buffer2.concat([prevBuf, buf.slice(0, 10)]); - for (var i2 = 0, j = 0;i2 < buf.length; i2++) { - var curByte = i2 >= 0 ? buf[i2] : prevBuf[i2 + prevBufOffset]; - var uCode = this.decodeTables[nodeIdx][curByte]; - if (uCode >= 0) {} else if (uCode === UNASSIGNED) { - i2 = seqStart; - uCode = this.defaultCharUnicode.charCodeAt(0); - } else if (uCode === GB18030_CODE) { - var curSeq = seqStart >= 0 ? buf.slice(seqStart, i2 + 1) : prevBuf.slice(seqStart + prevBufOffset, i2 + 1 + prevBufOffset); - var ptr = (curSeq[0] - 129) * 12600 + (curSeq[1] - 48) * 1260 + (curSeq[2] - 129) * 10 + (curSeq[3] - 48); - var idx = findIdx(this.gb18030.gbChars, ptr); - uCode = this.gb18030.uChars[idx] + ptr - this.gb18030.gbChars[idx]; - } else if (uCode <= NODE_START) { - nodeIdx = NODE_START - uCode; - continue; - } else if (uCode <= SEQ_START) { - var seq = this.decodeTableSeq[SEQ_START - uCode]; - for (var k = 0;k < seq.length - 1; k++) { - uCode = seq[k]; - newBuf[j++] = uCode & 255; - newBuf[j++] = uCode >> 8; - } - uCode = seq[seq.length - 1]; - } else - throw new Error("iconv-lite internal error: invalid decoding table value " + uCode + " at " + nodeIdx + "/" + curByte); - if (uCode > 65535) { - uCode -= 65536; - var uCodeLead = 55296 + Math.floor(uCode / 1024); - newBuf[j++] = uCodeLead & 255; - newBuf[j++] = uCodeLead >> 8; - uCode = 56320 + uCode % 1024; - } - newBuf[j++] = uCode & 255; - newBuf[j++] = uCode >> 8; - nodeIdx = 0; - seqStart = i2 + 1; - } - this.nodeIdx = nodeIdx; - this.prevBuf = seqStart >= 0 ? buf.slice(seqStart) : prevBuf.slice(seqStart + prevBufOffset); - return newBuf.slice(0, j).toString("ucs2"); - }; - DBCSDecoder.prototype.end = function() { - var ret = ""; - while (this.prevBuf.length > 0) { - ret += this.defaultCharUnicode; - var buf = this.prevBuf.slice(1); - this.prevBuf = Buffer2.alloc(0); - this.nodeIdx = 0; - if (buf.length > 0) - ret += this.write(buf); - } - this.nodeIdx = 0; - return ret; - }; - function findIdx(table, val) { - if (table[0] > val) - return -1; - var l = 0, r = table.length; - while (l < r - 1) { - var mid = l + Math.floor((r - l + 1) / 2); - if (table[mid] <= val) - l = mid; - else - r = mid; - } - return l; - } -}); - -// node_modules/iconv-lite/encodings/tables/shiftjis.json -var require_shiftjis = __commonJS((exports, module) => { - module.exports = [ - ["0", "\x00", 128], - ["a1", "。", 62], - ["8140", " 、。,.・:;?!゛゜´`¨^ ̄_ヽヾゝゞ〃仝々〆〇ー―‐/\~∥|…‥‘’“”()〔〕[]{}〈", 9, "+-±×"], - ["8180", "÷=≠<>≦≧∞∴♂♀°′″℃¥$¢£%#&*@§☆★○●◎◇◆□■△▲▽▼※〒→←↑↓〓"], - ["81b8", "∈∋⊆⊇⊂⊃∪∩"], - ["81c8", "∧∨¬⇒⇔∀∃"], - ["81da", "∠⊥⌒∂∇≡≒≪≫√∽∝∵∫∬"], - ["81f0", "ʼn♯♭♪†‡¶"], - ["81fc", "◯"], - ["824f", "0", 9], - ["8260", "A", 25], - ["8281", "a", 25], - ["829f", "ぁ", 82], - ["8340", "ァ", 62], - ["8380", "ム", 22], - ["839f", "Α", 16, "Σ", 6], - ["83bf", "α", 16, "σ", 6], - ["8440", "А", 5, "ЁЖ", 25], - ["8470", "а", 5, "ёж", 7], - ["8480", "о", 17], - ["849f", "─│┌┐┘└├┬┤┴┼━┃┏┓┛┗┣┳┫┻╋┠┯┨┷┿┝┰┥┸╂"], - ["8740", "①", 19, "Ⅰ", 9], - ["875f", "㍉㌔㌢㍍㌘㌧㌃㌶㍑㍗㌍㌦㌣㌫㍊㌻㎜㎝㎞㎎㎏㏄㎡"], - ["877e", "㍻"], - ["8780", "〝〟№㏍℡㊤", 4, "㈱㈲㈹㍾㍽㍼≒≡∫∮∑√⊥∠∟⊿∵∩∪"], - ["889f", "亜唖娃阿哀愛挨姶逢葵茜穐悪握渥旭葦芦鯵梓圧斡扱宛姐虻飴絢綾鮎或粟袷安庵按暗案闇鞍杏以伊位依偉囲夷委威尉惟意慰易椅為畏異移維緯胃萎衣謂違遺医井亥域育郁磯一壱溢逸稲茨芋鰯允印咽員因姻引飲淫胤蔭"], - ["8940", "院陰隠韻吋右宇烏羽迂雨卯鵜窺丑碓臼渦嘘唄欝蔚鰻姥厩浦瓜閏噂云運雲荏餌叡営嬰影映曳栄永泳洩瑛盈穎頴英衛詠鋭液疫益駅悦謁越閲榎厭円"], - ["8980", "園堰奄宴延怨掩援沿演炎焔煙燕猿縁艶苑薗遠鉛鴛塩於汚甥凹央奥往応押旺横欧殴王翁襖鴬鴎黄岡沖荻億屋憶臆桶牡乙俺卸恩温穏音下化仮何伽価佳加可嘉夏嫁家寡科暇果架歌河火珂禍禾稼箇花苛茄荷華菓蝦課嘩貨迦過霞蚊俄峨我牙画臥芽蛾賀雅餓駕介会解回塊壊廻快怪悔恢懐戒拐改"], - ["8a40", "魁晦械海灰界皆絵芥蟹開階貝凱劾外咳害崖慨概涯碍蓋街該鎧骸浬馨蛙垣柿蛎鈎劃嚇各廓拡撹格核殻獲確穫覚角赫較郭閣隔革学岳楽額顎掛笠樫"], - ["8a80", "橿梶鰍潟割喝恰括活渇滑葛褐轄且鰹叶椛樺鞄株兜竃蒲釜鎌噛鴨栢茅萱粥刈苅瓦乾侃冠寒刊勘勧巻喚堪姦完官寛干幹患感慣憾換敢柑桓棺款歓汗漢澗潅環甘監看竿管簡緩缶翰肝艦莞観諌貫還鑑間閑関陥韓館舘丸含岸巌玩癌眼岩翫贋雁頑顔願企伎危喜器基奇嬉寄岐希幾忌揮机旗既期棋棄"], - ["8b40", "機帰毅気汽畿祈季稀紀徽規記貴起軌輝飢騎鬼亀偽儀妓宜戯技擬欺犠疑祇義蟻誼議掬菊鞠吉吃喫桔橘詰砧杵黍却客脚虐逆丘久仇休及吸宮弓急救"], - ["8b80", "朽求汲泣灸球究窮笈級糾給旧牛去居巨拒拠挙渠虚許距鋸漁禦魚亨享京供侠僑兇競共凶協匡卿叫喬境峡強彊怯恐恭挟教橋況狂狭矯胸脅興蕎郷鏡響饗驚仰凝尭暁業局曲極玉桐粁僅勤均巾錦斤欣欽琴禁禽筋緊芹菌衿襟謹近金吟銀九倶句区狗玖矩苦躯駆駈駒具愚虞喰空偶寓遇隅串櫛釧屑屈"], - ["8c40", "掘窟沓靴轡窪熊隈粂栗繰桑鍬勲君薫訓群軍郡卦袈祁係傾刑兄啓圭珪型契形径恵慶慧憩掲携敬景桂渓畦稽系経継繋罫茎荊蛍計詣警軽頚鶏芸迎鯨"], - ["8c80", "劇戟撃激隙桁傑欠決潔穴結血訣月件倹倦健兼券剣喧圏堅嫌建憲懸拳捲検権牽犬献研硯絹県肩見謙賢軒遣鍵険顕験鹸元原厳幻弦減源玄現絃舷言諺限乎個古呼固姑孤己庫弧戸故枯湖狐糊袴股胡菰虎誇跨鈷雇顧鼓五互伍午呉吾娯後御悟梧檎瑚碁語誤護醐乞鯉交佼侯候倖光公功効勾厚口向"], - ["8d40", "后喉坑垢好孔孝宏工巧巷幸広庚康弘恒慌抗拘控攻昂晃更杭校梗構江洪浩港溝甲皇硬稿糠紅紘絞綱耕考肯肱腔膏航荒行衡講貢購郊酵鉱砿鋼閤降"], - ["8d80", "項香高鴻剛劫号合壕拷濠豪轟麹克刻告国穀酷鵠黒獄漉腰甑忽惚骨狛込此頃今困坤墾婚恨懇昏昆根梱混痕紺艮魂些佐叉唆嵯左差査沙瑳砂詐鎖裟坐座挫債催再最哉塞妻宰彩才採栽歳済災采犀砕砦祭斎細菜裁載際剤在材罪財冴坂阪堺榊肴咲崎埼碕鷺作削咋搾昨朔柵窄策索錯桜鮭笹匙冊刷"], - ["8e40", "察拶撮擦札殺薩雑皐鯖捌錆鮫皿晒三傘参山惨撒散桟燦珊産算纂蚕讃賛酸餐斬暫残仕仔伺使刺司史嗣四士始姉姿子屍市師志思指支孜斯施旨枝止"], - ["8e80", "死氏獅祉私糸紙紫肢脂至視詞詩試誌諮資賜雌飼歯事似侍児字寺慈持時次滋治爾璽痔磁示而耳自蒔辞汐鹿式識鴫竺軸宍雫七叱執失嫉室悉湿漆疾質実蔀篠偲柴芝屡蕊縞舎写射捨赦斜煮社紗者謝車遮蛇邪借勺尺杓灼爵酌釈錫若寂弱惹主取守手朱殊狩珠種腫趣酒首儒受呪寿授樹綬需囚収周"], - ["8f40", "宗就州修愁拾洲秀秋終繍習臭舟蒐衆襲讐蹴輯週酋酬集醜什住充十従戎柔汁渋獣縦重銃叔夙宿淑祝縮粛塾熟出術述俊峻春瞬竣舜駿准循旬楯殉淳"], - ["8f80", "準潤盾純巡遵醇順処初所暑曙渚庶緒署書薯藷諸助叙女序徐恕鋤除傷償勝匠升召哨商唱嘗奨妾娼宵将小少尚庄床廠彰承抄招掌捷昇昌昭晶松梢樟樵沼消渉湘焼焦照症省硝礁祥称章笑粧紹肖菖蒋蕉衝裳訟証詔詳象賞醤鉦鍾鐘障鞘上丈丞乗冗剰城場壌嬢常情擾条杖浄状畳穣蒸譲醸錠嘱埴飾"], - ["9040", "拭植殖燭織職色触食蝕辱尻伸信侵唇娠寝審心慎振新晋森榛浸深申疹真神秦紳臣芯薪親診身辛進針震人仁刃塵壬尋甚尽腎訊迅陣靭笥諏須酢図厨"], - ["9080", "逗吹垂帥推水炊睡粋翠衰遂酔錐錘随瑞髄崇嵩数枢趨雛据杉椙菅頗雀裾澄摺寸世瀬畝是凄制勢姓征性成政整星晴棲栖正清牲生盛精聖声製西誠誓請逝醒青静斉税脆隻席惜戚斥昔析石積籍績脊責赤跡蹟碩切拙接摂折設窃節説雪絶舌蝉仙先千占宣専尖川戦扇撰栓栴泉浅洗染潜煎煽旋穿箭線"], - ["9140", "繊羨腺舛船薦詮賎践選遷銭銑閃鮮前善漸然全禅繕膳糎噌塑岨措曾曽楚狙疏疎礎祖租粗素組蘇訴阻遡鼠僧創双叢倉喪壮奏爽宋層匝惣想捜掃挿掻"], - ["9180", "操早曹巣槍槽漕燥争痩相窓糟総綜聡草荘葬蒼藻装走送遭鎗霜騒像増憎臓蔵贈造促側則即息捉束測足速俗属賊族続卒袖其揃存孫尊損村遜他多太汰詑唾堕妥惰打柁舵楕陀駄騨体堆対耐岱帯待怠態戴替泰滞胎腿苔袋貸退逮隊黛鯛代台大第醍題鷹滝瀧卓啄宅托択拓沢濯琢託鐸濁諾茸凧蛸只"], - ["9240", "叩但達辰奪脱巽竪辿棚谷狸鱈樽誰丹単嘆坦担探旦歎淡湛炭短端箪綻耽胆蛋誕鍛団壇弾断暖檀段男談値知地弛恥智池痴稚置致蜘遅馳築畜竹筑蓄"], - ["9280", "逐秩窒茶嫡着中仲宙忠抽昼柱注虫衷註酎鋳駐樗瀦猪苧著貯丁兆凋喋寵帖帳庁弔張彫徴懲挑暢朝潮牒町眺聴脹腸蝶調諜超跳銚長頂鳥勅捗直朕沈珍賃鎮陳津墜椎槌追鎚痛通塚栂掴槻佃漬柘辻蔦綴鍔椿潰坪壷嬬紬爪吊釣鶴亭低停偵剃貞呈堤定帝底庭廷弟悌抵挺提梯汀碇禎程締艇訂諦蹄逓"], - ["9340", "邸鄭釘鼎泥摘擢敵滴的笛適鏑溺哲徹撤轍迭鉄典填天展店添纏甜貼転顛点伝殿澱田電兎吐堵塗妬屠徒斗杜渡登菟賭途都鍍砥砺努度土奴怒倒党冬"], - ["9380", "凍刀唐塔塘套宕島嶋悼投搭東桃梼棟盗淘湯涛灯燈当痘祷等答筒糖統到董蕩藤討謄豆踏逃透鐙陶頭騰闘働動同堂導憧撞洞瞳童胴萄道銅峠鴇匿得徳涜特督禿篤毒独読栃橡凸突椴届鳶苫寅酉瀞噸屯惇敦沌豚遁頓呑曇鈍奈那内乍凪薙謎灘捺鍋楢馴縄畷南楠軟難汝二尼弐迩匂賑肉虹廿日乳入"], - ["9440", "如尿韮任妊忍認濡禰祢寧葱猫熱年念捻撚燃粘乃廼之埜嚢悩濃納能脳膿農覗蚤巴把播覇杷波派琶破婆罵芭馬俳廃拝排敗杯盃牌背肺輩配倍培媒梅"], - ["9480", "楳煤狽買売賠陪這蝿秤矧萩伯剥博拍柏泊白箔粕舶薄迫曝漠爆縛莫駁麦函箱硲箸肇筈櫨幡肌畑畠八鉢溌発醗髪伐罰抜筏閥鳩噺塙蛤隼伴判半反叛帆搬斑板氾汎版犯班畔繁般藩販範釆煩頒飯挽晩番盤磐蕃蛮匪卑否妃庇彼悲扉批披斐比泌疲皮碑秘緋罷肥被誹費避非飛樋簸備尾微枇毘琵眉美"], - ["9540", "鼻柊稗匹疋髭彦膝菱肘弼必畢筆逼桧姫媛紐百謬俵彪標氷漂瓢票表評豹廟描病秒苗錨鋲蒜蛭鰭品彬斌浜瀕貧賓頻敏瓶不付埠夫婦富冨布府怖扶敷"], - ["9580", "斧普浮父符腐膚芙譜負賦赴阜附侮撫武舞葡蕪部封楓風葺蕗伏副復幅服福腹複覆淵弗払沸仏物鮒分吻噴墳憤扮焚奮粉糞紛雰文聞丙併兵塀幣平弊柄並蔽閉陛米頁僻壁癖碧別瞥蔑箆偏変片篇編辺返遍便勉娩弁鞭保舗鋪圃捕歩甫補輔穂募墓慕戊暮母簿菩倣俸包呆報奉宝峰峯崩庖抱捧放方朋"], - ["9640", "法泡烹砲縫胞芳萌蓬蜂褒訪豊邦鋒飽鳳鵬乏亡傍剖坊妨帽忘忙房暴望某棒冒紡肪膨謀貌貿鉾防吠頬北僕卜墨撲朴牧睦穆釦勃没殆堀幌奔本翻凡盆"], - ["9680", "摩磨魔麻埋妹昧枚毎哩槙幕膜枕鮪柾鱒桝亦俣又抹末沫迄侭繭麿万慢満漫蔓味未魅巳箕岬密蜜湊蓑稔脈妙粍民眠務夢無牟矛霧鵡椋婿娘冥名命明盟迷銘鳴姪牝滅免棉綿緬面麺摸模茂妄孟毛猛盲網耗蒙儲木黙目杢勿餅尤戻籾貰問悶紋門匁也冶夜爺耶野弥矢厄役約薬訳躍靖柳薮鑓愉愈油癒"], - ["9740", "諭輸唯佑優勇友宥幽悠憂揖有柚湧涌猶猷由祐裕誘遊邑郵雄融夕予余与誉輿預傭幼妖容庸揚揺擁曜楊様洋溶熔用窯羊耀葉蓉要謡踊遥陽養慾抑欲"], - ["9780", "沃浴翌翼淀羅螺裸来莱頼雷洛絡落酪乱卵嵐欄濫藍蘭覧利吏履李梨理璃痢裏裡里離陸律率立葎掠略劉流溜琉留硫粒隆竜龍侶慮旅虜了亮僚両凌寮料梁涼猟療瞭稜糧良諒遼量陵領力緑倫厘林淋燐琳臨輪隣鱗麟瑠塁涙累類令伶例冷励嶺怜玲礼苓鈴隷零霊麗齢暦歴列劣烈裂廉恋憐漣煉簾練聯"], - ["9840", "蓮連錬呂魯櫓炉賂路露労婁廊弄朗楼榔浪漏牢狼篭老聾蝋郎六麓禄肋録論倭和話歪賄脇惑枠鷲亙亘鰐詫藁蕨椀湾碗腕"], - ["989f", "弌丐丕个丱丶丼丿乂乖乘亂亅豫亊舒弍于亞亟亠亢亰亳亶从仍仄仆仂仗仞仭仟价伉佚估佛佝佗佇佶侈侏侘佻佩佰侑佯來侖儘俔俟俎俘俛俑俚俐俤俥倚倨倔倪倥倅伜俶倡倩倬俾俯們倆偃假會偕偐偈做偖偬偸傀傚傅傴傲"], - ["9940", "僉僊傳僂僖僞僥僭僣僮價僵儉儁儂儖儕儔儚儡儺儷儼儻儿兀兒兌兔兢竸兩兪兮冀冂囘册冉冏冑冓冕冖冤冦冢冩冪冫决冱冲冰况冽凅凉凛几處凩凭"], - ["9980", "凰凵凾刄刋刔刎刧刪刮刳刹剏剄剋剌剞剔剪剴剩剳剿剽劍劔劒剱劈劑辨辧劬劭劼劵勁勍勗勞勣勦飭勠勳勵勸勹匆匈甸匍匐匏匕匚匣匯匱匳匸區卆卅丗卉卍凖卞卩卮夘卻卷厂厖厠厦厥厮厰厶參簒雙叟曼燮叮叨叭叺吁吽呀听吭吼吮吶吩吝呎咏呵咎呟呱呷呰咒呻咀呶咄咐咆哇咢咸咥咬哄哈咨"], - ["9a40", "咫哂咤咾咼哘哥哦唏唔哽哮哭哺哢唹啀啣啌售啜啅啖啗唸唳啝喙喀咯喊喟啻啾喘喞單啼喃喩喇喨嗚嗅嗟嗄嗜嗤嗔嘔嗷嘖嗾嗽嘛嗹噎噐營嘴嘶嘲嘸"], - ["9a80", "噫噤嘯噬噪嚆嚀嚊嚠嚔嚏嚥嚮嚶嚴囂嚼囁囃囀囈囎囑囓囗囮囹圀囿圄圉圈國圍圓團圖嗇圜圦圷圸坎圻址坏坩埀垈坡坿垉垓垠垳垤垪垰埃埆埔埒埓堊埖埣堋堙堝塲堡塢塋塰毀塒堽塹墅墹墟墫墺壞墻墸墮壅壓壑壗壙壘壥壜壤壟壯壺壹壻壼壽夂夊夐夛梦夥夬夭夲夸夾竒奕奐奎奚奘奢奠奧奬奩"], - ["9b40", "奸妁妝佞侫妣妲姆姨姜妍姙姚娥娟娑娜娉娚婀婬婉娵娶婢婪媚媼媾嫋嫂媽嫣嫗嫦嫩嫖嫺嫻嬌嬋嬖嬲嫐嬪嬶嬾孃孅孀孑孕孚孛孥孩孰孳孵學斈孺宀"], - ["9b80", "它宦宸寃寇寉寔寐寤實寢寞寥寫寰寶寳尅將專對尓尠尢尨尸尹屁屆屎屓屐屏孱屬屮乢屶屹岌岑岔妛岫岻岶岼岷峅岾峇峙峩峽峺峭嶌峪崋崕崗嵜崟崛崑崔崢崚崙崘嵌嵒嵎嵋嵬嵳嵶嶇嶄嶂嶢嶝嶬嶮嶽嶐嶷嶼巉巍巓巒巖巛巫已巵帋帚帙帑帛帶帷幄幃幀幎幗幔幟幢幤幇幵并幺麼广庠廁廂廈廐廏"], - ["9c40", "廖廣廝廚廛廢廡廨廩廬廱廳廰廴廸廾弃弉彝彜弋弑弖弩弭弸彁彈彌彎弯彑彖彗彙彡彭彳彷徃徂彿徊很徑徇從徙徘徠徨徭徼忖忻忤忸忱忝悳忿怡恠"], - ["9c80", "怙怐怩怎怱怛怕怫怦怏怺恚恁恪恷恟恊恆恍恣恃恤恂恬恫恙悁悍惧悃悚悄悛悖悗悒悧悋惡悸惠惓悴忰悽惆悵惘慍愕愆惶惷愀惴惺愃愡惻惱愍愎慇愾愨愧慊愿愼愬愴愽慂慄慳慷慘慙慚慫慴慯慥慱慟慝慓慵憙憖憇憬憔憚憊憑憫憮懌懊應懷懈懃懆憺懋罹懍懦懣懶懺懴懿懽懼懾戀戈戉戍戌戔戛"], - ["9d40", "戞戡截戮戰戲戳扁扎扞扣扛扠扨扼抂抉找抒抓抖拔抃抔拗拑抻拏拿拆擔拈拜拌拊拂拇抛拉挌拮拱挧挂挈拯拵捐挾捍搜捏掖掎掀掫捶掣掏掉掟掵捫"], - ["9d80", "捩掾揩揀揆揣揉插揶揄搖搴搆搓搦搶攝搗搨搏摧摯摶摎攪撕撓撥撩撈撼據擒擅擇撻擘擂擱擧舉擠擡抬擣擯攬擶擴擲擺攀擽攘攜攅攤攣攫攴攵攷收攸畋效敖敕敍敘敞敝敲數斂斃變斛斟斫斷旃旆旁旄旌旒旛旙无旡旱杲昊昃旻杳昵昶昴昜晏晄晉晁晞晝晤晧晨晟晢晰暃暈暎暉暄暘暝曁暹曉暾暼"], - ["9e40", "曄暸曖曚曠昿曦曩曰曵曷朏朖朞朦朧霸朮朿朶杁朸朷杆杞杠杙杣杤枉杰枩杼杪枌枋枦枡枅枷柯枴柬枳柩枸柤柞柝柢柮枹柎柆柧檜栞框栩桀桍栲桎"], - ["9e80", "梳栫桙档桷桿梟梏梭梔條梛梃檮梹桴梵梠梺椏梍桾椁棊椈棘椢椦棡椌棍棔棧棕椶椒椄棗棣椥棹棠棯椨椪椚椣椡棆楹楷楜楸楫楔楾楮椹楴椽楙椰楡楞楝榁楪榲榮槐榿槁槓榾槎寨槊槝榻槃榧樮榑榠榜榕榴槞槨樂樛槿權槹槲槧樅榱樞槭樔槫樊樒櫁樣樓橄樌橲樶橸橇橢橙橦橈樸樢檐檍檠檄檢檣"], - ["9f40", "檗蘗檻櫃櫂檸檳檬櫞櫑櫟檪櫚櫪櫻欅蘖櫺欒欖鬱欟欸欷盜欹飮歇歃歉歐歙歔歛歟歡歸歹歿殀殄殃殍殘殕殞殤殪殫殯殲殱殳殷殼毆毋毓毟毬毫毳毯"], - ["9f80", "麾氈氓气氛氤氣汞汕汢汪沂沍沚沁沛汾汨汳沒沐泄泱泓沽泗泅泝沮沱沾沺泛泯泙泪洟衍洶洫洽洸洙洵洳洒洌浣涓浤浚浹浙涎涕濤涅淹渕渊涵淇淦涸淆淬淞淌淨淒淅淺淙淤淕淪淮渭湮渮渙湲湟渾渣湫渫湶湍渟湃渺湎渤滿渝游溂溪溘滉溷滓溽溯滄溲滔滕溏溥滂溟潁漑灌滬滸滾漿滲漱滯漲滌"], - ["e040", "漾漓滷澆潺潸澁澀潯潛濳潭澂潼潘澎澑濂潦澳澣澡澤澹濆澪濟濕濬濔濘濱濮濛瀉瀋濺瀑瀁瀏濾瀛瀚潴瀝瀘瀟瀰瀾瀲灑灣炙炒炯烱炬炸炳炮烟烋烝"], - ["e080", "烙焉烽焜焙煥煕熈煦煢煌煖煬熏燻熄熕熨熬燗熹熾燒燉燔燎燠燬燧燵燼燹燿爍爐爛爨爭爬爰爲爻爼爿牀牆牋牘牴牾犂犁犇犒犖犢犧犹犲狃狆狄狎狒狢狠狡狹狷倏猗猊猜猖猝猴猯猩猥猾獎獏默獗獪獨獰獸獵獻獺珈玳珎玻珀珥珮珞璢琅瑯琥珸琲琺瑕琿瑟瑙瑁瑜瑩瑰瑣瑪瑶瑾璋璞璧瓊瓏瓔珱"], - ["e140", "瓠瓣瓧瓩瓮瓲瓰瓱瓸瓷甄甃甅甌甎甍甕甓甞甦甬甼畄畍畊畉畛畆畚畩畤畧畫畭畸當疆疇畴疊疉疂疔疚疝疥疣痂疳痃疵疽疸疼疱痍痊痒痙痣痞痾痿"], - ["e180", "痼瘁痰痺痲痳瘋瘍瘉瘟瘧瘠瘡瘢瘤瘴瘰瘻癇癈癆癜癘癡癢癨癩癪癧癬癰癲癶癸發皀皃皈皋皎皖皓皙皚皰皴皸皹皺盂盍盖盒盞盡盥盧盪蘯盻眈眇眄眩眤眞眥眦眛眷眸睇睚睨睫睛睥睿睾睹瞎瞋瞑瞠瞞瞰瞶瞹瞿瞼瞽瞻矇矍矗矚矜矣矮矼砌砒礦砠礪硅碎硴碆硼碚碌碣碵碪碯磑磆磋磔碾碼磅磊磬"], - ["e240", "磧磚磽磴礇礒礑礙礬礫祀祠祗祟祚祕祓祺祿禊禝禧齋禪禮禳禹禺秉秕秧秬秡秣稈稍稘稙稠稟禀稱稻稾稷穃穗穉穡穢穩龝穰穹穽窈窗窕窘窖窩竈窰"], - ["e280", "窶竅竄窿邃竇竊竍竏竕竓站竚竝竡竢竦竭竰笂笏笊笆笳笘笙笞笵笨笶筐筺笄筍笋筌筅筵筥筴筧筰筱筬筮箝箘箟箍箜箚箋箒箏筝箙篋篁篌篏箴篆篝篩簑簔篦篥籠簀簇簓篳篷簗簍篶簣簧簪簟簷簫簽籌籃籔籏籀籐籘籟籤籖籥籬籵粃粐粤粭粢粫粡粨粳粲粱粮粹粽糀糅糂糘糒糜糢鬻糯糲糴糶糺紆"], - ["e340", "紂紜紕紊絅絋紮紲紿紵絆絳絖絎絲絨絮絏絣經綉絛綏絽綛綺綮綣綵緇綽綫總綢綯緜綸綟綰緘緝緤緞緻緲緡縅縊縣縡縒縱縟縉縋縢繆繦縻縵縹繃縷"], - ["e380", "縲縺繧繝繖繞繙繚繹繪繩繼繻纃緕繽辮繿纈纉續纒纐纓纔纖纎纛纜缸缺罅罌罍罎罐网罕罔罘罟罠罨罩罧罸羂羆羃羈羇羌羔羞羝羚羣羯羲羹羮羶羸譱翅翆翊翕翔翡翦翩翳翹飜耆耄耋耒耘耙耜耡耨耿耻聊聆聒聘聚聟聢聨聳聲聰聶聹聽聿肄肆肅肛肓肚肭冐肬胛胥胙胝胄胚胖脉胯胱脛脩脣脯腋"], - ["e440", "隋腆脾腓腑胼腱腮腥腦腴膃膈膊膀膂膠膕膤膣腟膓膩膰膵膾膸膽臀臂膺臉臍臑臙臘臈臚臟臠臧臺臻臾舁舂舅與舊舍舐舖舩舫舸舳艀艙艘艝艚艟艤"], - ["e480", "艢艨艪艫舮艱艷艸艾芍芒芫芟芻芬苡苣苟苒苴苳苺莓范苻苹苞茆苜茉苙茵茴茖茲茱荀茹荐荅茯茫茗茘莅莚莪莟莢莖茣莎莇莊荼莵荳荵莠莉莨菴萓菫菎菽萃菘萋菁菷萇菠菲萍萢萠莽萸蔆菻葭萪萼蕚蒄葷葫蒭葮蒂葩葆萬葯葹萵蓊葢蒹蒿蒟蓙蓍蒻蓚蓐蓁蓆蓖蒡蔡蓿蓴蔗蔘蔬蔟蔕蔔蓼蕀蕣蕘蕈"], - ["e540", "蕁蘂蕋蕕薀薤薈薑薊薨蕭薔薛藪薇薜蕷蕾薐藉薺藏薹藐藕藝藥藜藹蘊蘓蘋藾藺蘆蘢蘚蘰蘿虍乕虔號虧虱蚓蚣蚩蚪蚋蚌蚶蚯蛄蛆蚰蛉蠣蚫蛔蛞蛩蛬"], - ["e580", "蛟蛛蛯蜒蜆蜈蜀蜃蛻蜑蜉蜍蛹蜊蜴蜿蜷蜻蜥蜩蜚蝠蝟蝸蝌蝎蝴蝗蝨蝮蝙蝓蝣蝪蠅螢螟螂螯蟋螽蟀蟐雖螫蟄螳蟇蟆螻蟯蟲蟠蠏蠍蟾蟶蟷蠎蟒蠑蠖蠕蠢蠡蠱蠶蠹蠧蠻衄衂衒衙衞衢衫袁衾袞衵衽袵衲袂袗袒袮袙袢袍袤袰袿袱裃裄裔裘裙裝裹褂裼裴裨裲褄褌褊褓襃褞褥褪褫襁襄褻褶褸襌褝襠襞"], - ["e640", "襦襤襭襪襯襴襷襾覃覈覊覓覘覡覩覦覬覯覲覺覽覿觀觚觜觝觧觴觸訃訖訐訌訛訝訥訶詁詛詒詆詈詼詭詬詢誅誂誄誨誡誑誥誦誚誣諄諍諂諚諫諳諧"], - ["e680", "諤諱謔諠諢諷諞諛謌謇謚諡謖謐謗謠謳鞫謦謫謾謨譁譌譏譎證譖譛譚譫譟譬譯譴譽讀讌讎讒讓讖讙讚谺豁谿豈豌豎豐豕豢豬豸豺貂貉貅貊貍貎貔豼貘戝貭貪貽貲貳貮貶賈賁賤賣賚賽賺賻贄贅贊贇贏贍贐齎贓賍贔贖赧赭赱赳趁趙跂趾趺跏跚跖跌跛跋跪跫跟跣跼踈踉跿踝踞踐踟蹂踵踰踴蹊"], - ["e740", "蹇蹉蹌蹐蹈蹙蹤蹠踪蹣蹕蹶蹲蹼躁躇躅躄躋躊躓躑躔躙躪躡躬躰軆躱躾軅軈軋軛軣軼軻軫軾輊輅輕輒輙輓輜輟輛輌輦輳輻輹轅轂輾轌轉轆轎轗轜"], - ["e780", "轢轣轤辜辟辣辭辯辷迚迥迢迪迯邇迴逅迹迺逑逕逡逍逞逖逋逧逶逵逹迸遏遐遑遒逎遉逾遖遘遞遨遯遶隨遲邂遽邁邀邊邉邏邨邯邱邵郢郤扈郛鄂鄒鄙鄲鄰酊酖酘酣酥酩酳酲醋醉醂醢醫醯醪醵醴醺釀釁釉釋釐釖釟釡釛釼釵釶鈞釿鈔鈬鈕鈑鉞鉗鉅鉉鉤鉈銕鈿鉋鉐銜銖銓銛鉚鋏銹銷鋩錏鋺鍄錮"], - ["e840", "錙錢錚錣錺錵錻鍜鍠鍼鍮鍖鎰鎬鎭鎔鎹鏖鏗鏨鏥鏘鏃鏝鏐鏈鏤鐚鐔鐓鐃鐇鐐鐶鐫鐵鐡鐺鑁鑒鑄鑛鑠鑢鑞鑪鈩鑰鑵鑷鑽鑚鑼鑾钁鑿閂閇閊閔閖閘閙"], - ["e880", "閠閨閧閭閼閻閹閾闊濶闃闍闌闕闔闖關闡闥闢阡阨阮阯陂陌陏陋陷陜陞陝陟陦陲陬隍隘隕隗險隧隱隲隰隴隶隸隹雎雋雉雍襍雜霍雕雹霄霆霈霓霎霑霏霖霙霤霪霰霹霽霾靄靆靈靂靉靜靠靤靦靨勒靫靱靹鞅靼鞁靺鞆鞋鞏鞐鞜鞨鞦鞣鞳鞴韃韆韈韋韜韭齏韲竟韶韵頏頌頸頤頡頷頽顆顏顋顫顯顰"], - ["e940", "顱顴顳颪颯颱颶飄飃飆飩飫餃餉餒餔餘餡餝餞餤餠餬餮餽餾饂饉饅饐饋饑饒饌饕馗馘馥馭馮馼駟駛駝駘駑駭駮駱駲駻駸騁騏騅駢騙騫騷驅驂驀驃"], - ["e980", "騾驕驍驛驗驟驢驥驤驩驫驪骭骰骼髀髏髑髓體髞髟髢髣髦髯髫髮髴髱髷髻鬆鬘鬚鬟鬢鬣鬥鬧鬨鬩鬪鬮鬯鬲魄魃魏魍魎魑魘魴鮓鮃鮑鮖鮗鮟鮠鮨鮴鯀鯊鮹鯆鯏鯑鯒鯣鯢鯤鯔鯡鰺鯲鯱鯰鰕鰔鰉鰓鰌鰆鰈鰒鰊鰄鰮鰛鰥鰤鰡鰰鱇鰲鱆鰾鱚鱠鱧鱶鱸鳧鳬鳰鴉鴈鳫鴃鴆鴪鴦鶯鴣鴟鵄鴕鴒鵁鴿鴾鵆鵈"], - ["ea40", "鵝鵞鵤鵑鵐鵙鵲鶉鶇鶫鵯鵺鶚鶤鶩鶲鷄鷁鶻鶸鶺鷆鷏鷂鷙鷓鷸鷦鷭鷯鷽鸚鸛鸞鹵鹹鹽麁麈麋麌麒麕麑麝麥麩麸麪麭靡黌黎黏黐黔黜點黝黠黥黨黯"], - ["ea80", "黴黶黷黹黻黼黽鼇鼈皷鼕鼡鼬鼾齊齒齔齣齟齠齡齦齧齬齪齷齲齶龕龜龠堯槇遙瑤凜熙"], - ["ed40", "纊褜鍈銈蓜俉炻昱棈鋹曻彅丨仡仼伀伃伹佖侒侊侚侔俍偀倢俿倞偆偰偂傔僴僘兊兤冝冾凬刕劜劦勀勛匀匇匤卲厓厲叝﨎咜咊咩哿喆坙坥垬埈埇﨏"], - ["ed80", "塚增墲夋奓奛奝奣妤妺孖寀甯寘寬尞岦岺峵崧嵓﨑嵂嵭嶸嶹巐弡弴彧德忞恝悅悊惞惕愠惲愑愷愰憘戓抦揵摠撝擎敎昀昕昻昉昮昞昤晥晗晙晴晳暙暠暲暿曺朎朗杦枻桒柀栁桄棏﨓楨﨔榘槢樰橫橆橳橾櫢櫤毖氿汜沆汯泚洄涇浯涖涬淏淸淲淼渹湜渧渼溿澈澵濵瀅瀇瀨炅炫焏焄煜煆煇凞燁燾犱"], - ["ee40", "犾猤猪獷玽珉珖珣珒琇珵琦琪琩琮瑢璉璟甁畯皂皜皞皛皦益睆劯砡硎硤硺礰礼神祥禔福禛竑竧靖竫箞精絈絜綷綠緖繒罇羡羽茁荢荿菇菶葈蒴蕓蕙"], - ["ee80", "蕫﨟薰蘒﨡蠇裵訒訷詹誧誾諟諸諶譓譿賰賴贒赶﨣軏﨤逸遧郞都鄕鄧釚釗釞釭釮釤釥鈆鈐鈊鈺鉀鈼鉎鉙鉑鈹鉧銧鉷鉸鋧鋗鋙鋐﨧鋕鋠鋓錥錡鋻﨨錞鋿錝錂鍰鍗鎤鏆鏞鏸鐱鑅鑈閒隆﨩隝隯霳霻靃靍靏靑靕顗顥飯飼餧館馞驎髙髜魵魲鮏鮱鮻鰀鵰鵫鶴鸙黑"], - ["eeef", "ⅰ", 9, "¬¦'""], - ["f040", "", 62], - ["f080", "", 124], - ["f140", "", 62], - ["f180", "", 124], - ["f240", "", 62], - ["f280", "", 124], - ["f340", "", 62], - ["f380", "", 124], - ["f440", "", 62], - ["f480", "", 124], - ["f540", "", 62], - ["f580", "", 124], - ["f640", "", 62], - ["f680", "", 124], - ["f740", "", 62], - ["f780", "", 124], - ["f840", "", 62], - ["f880", "", 124], - ["f940", ""], - ["fa40", "ⅰ", 9, "Ⅰ", 9, "¬¦'"㈱№℡∵纊褜鍈銈蓜俉炻昱棈鋹曻彅丨仡仼伀伃伹佖侒侊侚侔俍偀倢俿倞偆偰偂傔僴僘兊"], - ["fa80", "兤冝冾凬刕劜劦勀勛匀匇匤卲厓厲叝﨎咜咊咩哿喆坙坥垬埈埇﨏塚增墲夋奓奛奝奣妤妺孖寀甯寘寬尞岦岺峵崧嵓﨑嵂嵭嶸嶹巐弡弴彧德忞恝悅悊惞惕愠惲愑愷愰憘戓抦揵摠撝擎敎昀昕昻昉昮昞昤晥晗晙晴晳暙暠暲暿曺朎朗杦枻桒柀栁桄棏﨓楨﨔榘槢樰橫橆橳橾櫢櫤毖氿汜沆汯泚洄涇浯"], - ["fb40", "涖涬淏淸淲淼渹湜渧渼溿澈澵濵瀅瀇瀨炅炫焏焄煜煆煇凞燁燾犱犾猤猪獷玽珉珖珣珒琇珵琦琪琩琮瑢璉璟甁畯皂皜皞皛皦益睆劯砡硎硤硺礰礼神"], - ["fb80", "祥禔福禛竑竧靖竫箞精絈絜綷綠緖繒罇羡羽茁荢荿菇菶葈蒴蕓蕙蕫﨟薰蘒﨡蠇裵訒訷詹誧誾諟諸諶譓譿賰賴贒赶﨣軏﨤逸遧郞都鄕鄧釚釗釞釭釮釤釥鈆鈐鈊鈺鉀鈼鉎鉙鉑鈹鉧銧鉷鉸鋧鋗鋙鋐﨧鋕鋠鋓錥錡鋻﨨錞鋿錝錂鍰鍗鎤鏆鏞鏸鐱鑅鑈閒隆﨩隝隯霳霻靃靍靏靑靕顗顥飯飼餧館馞驎髙"], - ["fc40", "髜魵魲鮏鮱鮻鰀鵰鵫鶴鸙黑"] - ]; -}); - -// node_modules/iconv-lite/encodings/tables/eucjp.json -var require_eucjp = __commonJS((exports, module) => { - module.exports = [ - ["0", "\x00", 127], - ["8ea1", "。", 62], - ["a1a1", " 、。,.・:;?!゛゜´`¨^ ̄_ヽヾゝゞ〃仝々〆〇ー―‐/\~∥|…‥‘’“”()〔〕[]{}〈", 9, "+-±×÷=≠<>≦≧∞∴♂♀°′″℃¥$¢£%#&*@§☆★○●◎◇"], - ["a2a1", "◆□■△▲▽▼※〒→←↑↓〓"], - ["a2ba", "∈∋⊆⊇⊂⊃∪∩"], - ["a2ca", "∧∨¬⇒⇔∀∃"], - ["a2dc", "∠⊥⌒∂∇≡≒≪≫√∽∝∵∫∬"], - ["a2f2", "ʼn♯♭♪†‡¶"], - ["a2fe", "◯"], - ["a3b0", "0", 9], - ["a3c1", "A", 25], - ["a3e1", "a", 25], - ["a4a1", "ぁ", 82], - ["a5a1", "ァ", 85], - ["a6a1", "Α", 16, "Σ", 6], - ["a6c1", "α", 16, "σ", 6], - ["a7a1", "А", 5, "ЁЖ", 25], - ["a7d1", "а", 5, "ёж", 25], - ["a8a1", "─│┌┐┘└├┬┤┴┼━┃┏┓┛┗┣┳┫┻╋┠┯┨┷┿┝┰┥┸╂"], - ["ada1", "①", 19, "Ⅰ", 9], - ["adc0", "㍉㌔㌢㍍㌘㌧㌃㌶㍑㍗㌍㌦㌣㌫㍊㌻㎜㎝㎞㎎㎏㏄㎡"], - ["addf", "㍻〝〟№㏍℡㊤", 4, "㈱㈲㈹㍾㍽㍼≒≡∫∮∑√⊥∠∟⊿∵∩∪"], - ["b0a1", "亜唖娃阿哀愛挨姶逢葵茜穐悪握渥旭葦芦鯵梓圧斡扱宛姐虻飴絢綾鮎或粟袷安庵按暗案闇鞍杏以伊位依偉囲夷委威尉惟意慰易椅為畏異移維緯胃萎衣謂違遺医井亥域育郁磯一壱溢逸稲茨芋鰯允印咽員因姻引飲淫胤蔭"], - ["b1a1", "院陰隠韻吋右宇烏羽迂雨卯鵜窺丑碓臼渦嘘唄欝蔚鰻姥厩浦瓜閏噂云運雲荏餌叡営嬰影映曳栄永泳洩瑛盈穎頴英衛詠鋭液疫益駅悦謁越閲榎厭円園堰奄宴延怨掩援沿演炎焔煙燕猿縁艶苑薗遠鉛鴛塩於汚甥凹央奥往応"], - ["b2a1", "押旺横欧殴王翁襖鴬鴎黄岡沖荻億屋憶臆桶牡乙俺卸恩温穏音下化仮何伽価佳加可嘉夏嫁家寡科暇果架歌河火珂禍禾稼箇花苛茄荷華菓蝦課嘩貨迦過霞蚊俄峨我牙画臥芽蛾賀雅餓駕介会解回塊壊廻快怪悔恢懐戒拐改"], - ["b3a1", "魁晦械海灰界皆絵芥蟹開階貝凱劾外咳害崖慨概涯碍蓋街該鎧骸浬馨蛙垣柿蛎鈎劃嚇各廓拡撹格核殻獲確穫覚角赫較郭閣隔革学岳楽額顎掛笠樫橿梶鰍潟割喝恰括活渇滑葛褐轄且鰹叶椛樺鞄株兜竃蒲釜鎌噛鴨栢茅萱"], - ["b4a1", "粥刈苅瓦乾侃冠寒刊勘勧巻喚堪姦完官寛干幹患感慣憾換敢柑桓棺款歓汗漢澗潅環甘監看竿管簡緩缶翰肝艦莞観諌貫還鑑間閑関陥韓館舘丸含岸巌玩癌眼岩翫贋雁頑顔願企伎危喜器基奇嬉寄岐希幾忌揮机旗既期棋棄"], - ["b5a1", "機帰毅気汽畿祈季稀紀徽規記貴起軌輝飢騎鬼亀偽儀妓宜戯技擬欺犠疑祇義蟻誼議掬菊鞠吉吃喫桔橘詰砧杵黍却客脚虐逆丘久仇休及吸宮弓急救朽求汲泣灸球究窮笈級糾給旧牛去居巨拒拠挙渠虚許距鋸漁禦魚亨享京"], - ["b6a1", "供侠僑兇競共凶協匡卿叫喬境峡強彊怯恐恭挟教橋況狂狭矯胸脅興蕎郷鏡響饗驚仰凝尭暁業局曲極玉桐粁僅勤均巾錦斤欣欽琴禁禽筋緊芹菌衿襟謹近金吟銀九倶句区狗玖矩苦躯駆駈駒具愚虞喰空偶寓遇隅串櫛釧屑屈"], - ["b7a1", "掘窟沓靴轡窪熊隈粂栗繰桑鍬勲君薫訓群軍郡卦袈祁係傾刑兄啓圭珪型契形径恵慶慧憩掲携敬景桂渓畦稽系経継繋罫茎荊蛍計詣警軽頚鶏芸迎鯨劇戟撃激隙桁傑欠決潔穴結血訣月件倹倦健兼券剣喧圏堅嫌建憲懸拳捲"], - ["b8a1", "検権牽犬献研硯絹県肩見謙賢軒遣鍵険顕験鹸元原厳幻弦減源玄現絃舷言諺限乎個古呼固姑孤己庫弧戸故枯湖狐糊袴股胡菰虎誇跨鈷雇顧鼓五互伍午呉吾娯後御悟梧檎瑚碁語誤護醐乞鯉交佼侯候倖光公功効勾厚口向"], - ["b9a1", "后喉坑垢好孔孝宏工巧巷幸広庚康弘恒慌抗拘控攻昂晃更杭校梗構江洪浩港溝甲皇硬稿糠紅紘絞綱耕考肯肱腔膏航荒行衡講貢購郊酵鉱砿鋼閤降項香高鴻剛劫号合壕拷濠豪轟麹克刻告国穀酷鵠黒獄漉腰甑忽惚骨狛込"], - ["baa1", "此頃今困坤墾婚恨懇昏昆根梱混痕紺艮魂些佐叉唆嵯左差査沙瑳砂詐鎖裟坐座挫債催再最哉塞妻宰彩才採栽歳済災采犀砕砦祭斎細菜裁載際剤在材罪財冴坂阪堺榊肴咲崎埼碕鷺作削咋搾昨朔柵窄策索錯桜鮭笹匙冊刷"], - ["bba1", "察拶撮擦札殺薩雑皐鯖捌錆鮫皿晒三傘参山惨撒散桟燦珊産算纂蚕讃賛酸餐斬暫残仕仔伺使刺司史嗣四士始姉姿子屍市師志思指支孜斯施旨枝止死氏獅祉私糸紙紫肢脂至視詞詩試誌諮資賜雌飼歯事似侍児字寺慈持時"], - ["bca1", "次滋治爾璽痔磁示而耳自蒔辞汐鹿式識鴫竺軸宍雫七叱執失嫉室悉湿漆疾質実蔀篠偲柴芝屡蕊縞舎写射捨赦斜煮社紗者謝車遮蛇邪借勺尺杓灼爵酌釈錫若寂弱惹主取守手朱殊狩珠種腫趣酒首儒受呪寿授樹綬需囚収周"], - ["bda1", "宗就州修愁拾洲秀秋終繍習臭舟蒐衆襲讐蹴輯週酋酬集醜什住充十従戎柔汁渋獣縦重銃叔夙宿淑祝縮粛塾熟出術述俊峻春瞬竣舜駿准循旬楯殉淳準潤盾純巡遵醇順処初所暑曙渚庶緒署書薯藷諸助叙女序徐恕鋤除傷償"], - ["bea1", "勝匠升召哨商唱嘗奨妾娼宵将小少尚庄床廠彰承抄招掌捷昇昌昭晶松梢樟樵沼消渉湘焼焦照症省硝礁祥称章笑粧紹肖菖蒋蕉衝裳訟証詔詳象賞醤鉦鍾鐘障鞘上丈丞乗冗剰城場壌嬢常情擾条杖浄状畳穣蒸譲醸錠嘱埴飾"], - ["bfa1", "拭植殖燭織職色触食蝕辱尻伸信侵唇娠寝審心慎振新晋森榛浸深申疹真神秦紳臣芯薪親診身辛進針震人仁刃塵壬尋甚尽腎訊迅陣靭笥諏須酢図厨逗吹垂帥推水炊睡粋翠衰遂酔錐錘随瑞髄崇嵩数枢趨雛据杉椙菅頗雀裾"], - ["c0a1", "澄摺寸世瀬畝是凄制勢姓征性成政整星晴棲栖正清牲生盛精聖声製西誠誓請逝醒青静斉税脆隻席惜戚斥昔析石積籍績脊責赤跡蹟碩切拙接摂折設窃節説雪絶舌蝉仙先千占宣専尖川戦扇撰栓栴泉浅洗染潜煎煽旋穿箭線"], - ["c1a1", "繊羨腺舛船薦詮賎践選遷銭銑閃鮮前善漸然全禅繕膳糎噌塑岨措曾曽楚狙疏疎礎祖租粗素組蘇訴阻遡鼠僧創双叢倉喪壮奏爽宋層匝惣想捜掃挿掻操早曹巣槍槽漕燥争痩相窓糟総綜聡草荘葬蒼藻装走送遭鎗霜騒像増憎"], - ["c2a1", "臓蔵贈造促側則即息捉束測足速俗属賊族続卒袖其揃存孫尊損村遜他多太汰詑唾堕妥惰打柁舵楕陀駄騨体堆対耐岱帯待怠態戴替泰滞胎腿苔袋貸退逮隊黛鯛代台大第醍題鷹滝瀧卓啄宅托択拓沢濯琢託鐸濁諾茸凧蛸只"], - ["c3a1", "叩但達辰奪脱巽竪辿棚谷狸鱈樽誰丹単嘆坦担探旦歎淡湛炭短端箪綻耽胆蛋誕鍛団壇弾断暖檀段男談値知地弛恥智池痴稚置致蜘遅馳築畜竹筑蓄逐秩窒茶嫡着中仲宙忠抽昼柱注虫衷註酎鋳駐樗瀦猪苧著貯丁兆凋喋寵"], - ["c4a1", "帖帳庁弔張彫徴懲挑暢朝潮牒町眺聴脹腸蝶調諜超跳銚長頂鳥勅捗直朕沈珍賃鎮陳津墜椎槌追鎚痛通塚栂掴槻佃漬柘辻蔦綴鍔椿潰坪壷嬬紬爪吊釣鶴亭低停偵剃貞呈堤定帝底庭廷弟悌抵挺提梯汀碇禎程締艇訂諦蹄逓"], - ["c5a1", "邸鄭釘鼎泥摘擢敵滴的笛適鏑溺哲徹撤轍迭鉄典填天展店添纏甜貼転顛点伝殿澱田電兎吐堵塗妬屠徒斗杜渡登菟賭途都鍍砥砺努度土奴怒倒党冬凍刀唐塔塘套宕島嶋悼投搭東桃梼棟盗淘湯涛灯燈当痘祷等答筒糖統到"], - ["c6a1", "董蕩藤討謄豆踏逃透鐙陶頭騰闘働動同堂導憧撞洞瞳童胴萄道銅峠鴇匿得徳涜特督禿篤毒独読栃橡凸突椴届鳶苫寅酉瀞噸屯惇敦沌豚遁頓呑曇鈍奈那内乍凪薙謎灘捺鍋楢馴縄畷南楠軟難汝二尼弐迩匂賑肉虹廿日乳入"], - ["c7a1", "如尿韮任妊忍認濡禰祢寧葱猫熱年念捻撚燃粘乃廼之埜嚢悩濃納能脳膿農覗蚤巴把播覇杷波派琶破婆罵芭馬俳廃拝排敗杯盃牌背肺輩配倍培媒梅楳煤狽買売賠陪這蝿秤矧萩伯剥博拍柏泊白箔粕舶薄迫曝漠爆縛莫駁麦"], - ["c8a1", "函箱硲箸肇筈櫨幡肌畑畠八鉢溌発醗髪伐罰抜筏閥鳩噺塙蛤隼伴判半反叛帆搬斑板氾汎版犯班畔繁般藩販範釆煩頒飯挽晩番盤磐蕃蛮匪卑否妃庇彼悲扉批披斐比泌疲皮碑秘緋罷肥被誹費避非飛樋簸備尾微枇毘琵眉美"], - ["c9a1", "鼻柊稗匹疋髭彦膝菱肘弼必畢筆逼桧姫媛紐百謬俵彪標氷漂瓢票表評豹廟描病秒苗錨鋲蒜蛭鰭品彬斌浜瀕貧賓頻敏瓶不付埠夫婦富冨布府怖扶敷斧普浮父符腐膚芙譜負賦赴阜附侮撫武舞葡蕪部封楓風葺蕗伏副復幅服"], - ["caa1", "福腹複覆淵弗払沸仏物鮒分吻噴墳憤扮焚奮粉糞紛雰文聞丙併兵塀幣平弊柄並蔽閉陛米頁僻壁癖碧別瞥蔑箆偏変片篇編辺返遍便勉娩弁鞭保舗鋪圃捕歩甫補輔穂募墓慕戊暮母簿菩倣俸包呆報奉宝峰峯崩庖抱捧放方朋"], - ["cba1", "法泡烹砲縫胞芳萌蓬蜂褒訪豊邦鋒飽鳳鵬乏亡傍剖坊妨帽忘忙房暴望某棒冒紡肪膨謀貌貿鉾防吠頬北僕卜墨撲朴牧睦穆釦勃没殆堀幌奔本翻凡盆摩磨魔麻埋妹昧枚毎哩槙幕膜枕鮪柾鱒桝亦俣又抹末沫迄侭繭麿万慢満"], - ["cca1", "漫蔓味未魅巳箕岬密蜜湊蓑稔脈妙粍民眠務夢無牟矛霧鵡椋婿娘冥名命明盟迷銘鳴姪牝滅免棉綿緬面麺摸模茂妄孟毛猛盲網耗蒙儲木黙目杢勿餅尤戻籾貰問悶紋門匁也冶夜爺耶野弥矢厄役約薬訳躍靖柳薮鑓愉愈油癒"], - ["cda1", "諭輸唯佑優勇友宥幽悠憂揖有柚湧涌猶猷由祐裕誘遊邑郵雄融夕予余与誉輿預傭幼妖容庸揚揺擁曜楊様洋溶熔用窯羊耀葉蓉要謡踊遥陽養慾抑欲沃浴翌翼淀羅螺裸来莱頼雷洛絡落酪乱卵嵐欄濫藍蘭覧利吏履李梨理璃"], - ["cea1", "痢裏裡里離陸律率立葎掠略劉流溜琉留硫粒隆竜龍侶慮旅虜了亮僚両凌寮料梁涼猟療瞭稜糧良諒遼量陵領力緑倫厘林淋燐琳臨輪隣鱗麟瑠塁涙累類令伶例冷励嶺怜玲礼苓鈴隷零霊麗齢暦歴列劣烈裂廉恋憐漣煉簾練聯"], - ["cfa1", "蓮連錬呂魯櫓炉賂路露労婁廊弄朗楼榔浪漏牢狼篭老聾蝋郎六麓禄肋録論倭和話歪賄脇惑枠鷲亙亘鰐詫藁蕨椀湾碗腕"], - ["d0a1", "弌丐丕个丱丶丼丿乂乖乘亂亅豫亊舒弍于亞亟亠亢亰亳亶从仍仄仆仂仗仞仭仟价伉佚估佛佝佗佇佶侈侏侘佻佩佰侑佯來侖儘俔俟俎俘俛俑俚俐俤俥倚倨倔倪倥倅伜俶倡倩倬俾俯們倆偃假會偕偐偈做偖偬偸傀傚傅傴傲"], - ["d1a1", "僉僊傳僂僖僞僥僭僣僮價僵儉儁儂儖儕儔儚儡儺儷儼儻儿兀兒兌兔兢竸兩兪兮冀冂囘册冉冏冑冓冕冖冤冦冢冩冪冫决冱冲冰况冽凅凉凛几處凩凭凰凵凾刄刋刔刎刧刪刮刳刹剏剄剋剌剞剔剪剴剩剳剿剽劍劔劒剱劈劑辨"], - ["d2a1", "辧劬劭劼劵勁勍勗勞勣勦飭勠勳勵勸勹匆匈甸匍匐匏匕匚匣匯匱匳匸區卆卅丗卉卍凖卞卩卮夘卻卷厂厖厠厦厥厮厰厶參簒雙叟曼燮叮叨叭叺吁吽呀听吭吼吮吶吩吝呎咏呵咎呟呱呷呰咒呻咀呶咄咐咆哇咢咸咥咬哄哈咨"], - ["d3a1", "咫哂咤咾咼哘哥哦唏唔哽哮哭哺哢唹啀啣啌售啜啅啖啗唸唳啝喙喀咯喊喟啻啾喘喞單啼喃喩喇喨嗚嗅嗟嗄嗜嗤嗔嘔嗷嘖嗾嗽嘛嗹噎噐營嘴嘶嘲嘸噫噤嘯噬噪嚆嚀嚊嚠嚔嚏嚥嚮嚶嚴囂嚼囁囃囀囈囎囑囓囗囮囹圀囿圄圉"], - ["d4a1", "圈國圍圓團圖嗇圜圦圷圸坎圻址坏坩埀垈坡坿垉垓垠垳垤垪垰埃埆埔埒埓堊埖埣堋堙堝塲堡塢塋塰毀塒堽塹墅墹墟墫墺壞墻墸墮壅壓壑壗壙壘壥壜壤壟壯壺壹壻壼壽夂夊夐夛梦夥夬夭夲夸夾竒奕奐奎奚奘奢奠奧奬奩"], - ["d5a1", "奸妁妝佞侫妣妲姆姨姜妍姙姚娥娟娑娜娉娚婀婬婉娵娶婢婪媚媼媾嫋嫂媽嫣嫗嫦嫩嫖嫺嫻嬌嬋嬖嬲嫐嬪嬶嬾孃孅孀孑孕孚孛孥孩孰孳孵學斈孺宀它宦宸寃寇寉寔寐寤實寢寞寥寫寰寶寳尅將專對尓尠尢尨尸尹屁屆屎屓"], - ["d6a1", "屐屏孱屬屮乢屶屹岌岑岔妛岫岻岶岼岷峅岾峇峙峩峽峺峭嶌峪崋崕崗嵜崟崛崑崔崢崚崙崘嵌嵒嵎嵋嵬嵳嵶嶇嶄嶂嶢嶝嶬嶮嶽嶐嶷嶼巉巍巓巒巖巛巫已巵帋帚帙帑帛帶帷幄幃幀幎幗幔幟幢幤幇幵并幺麼广庠廁廂廈廐廏"], - ["d7a1", "廖廣廝廚廛廢廡廨廩廬廱廳廰廴廸廾弃弉彝彜弋弑弖弩弭弸彁彈彌彎弯彑彖彗彙彡彭彳彷徃徂彿徊很徑徇從徙徘徠徨徭徼忖忻忤忸忱忝悳忿怡恠怙怐怩怎怱怛怕怫怦怏怺恚恁恪恷恟恊恆恍恣恃恤恂恬恫恙悁悍惧悃悚"], - ["d8a1", "悄悛悖悗悒悧悋惡悸惠惓悴忰悽惆悵惘慍愕愆惶惷愀惴惺愃愡惻惱愍愎慇愾愨愧慊愿愼愬愴愽慂慄慳慷慘慙慚慫慴慯慥慱慟慝慓慵憙憖憇憬憔憚憊憑憫憮懌懊應懷懈懃懆憺懋罹懍懦懣懶懺懴懿懽懼懾戀戈戉戍戌戔戛"], - ["d9a1", "戞戡截戮戰戲戳扁扎扞扣扛扠扨扼抂抉找抒抓抖拔抃抔拗拑抻拏拿拆擔拈拜拌拊拂拇抛拉挌拮拱挧挂挈拯拵捐挾捍搜捏掖掎掀掫捶掣掏掉掟掵捫捩掾揩揀揆揣揉插揶揄搖搴搆搓搦搶攝搗搨搏摧摯摶摎攪撕撓撥撩撈撼"], - ["daa1", "據擒擅擇撻擘擂擱擧舉擠擡抬擣擯攬擶擴擲擺攀擽攘攜攅攤攣攫攴攵攷收攸畋效敖敕敍敘敞敝敲數斂斃變斛斟斫斷旃旆旁旄旌旒旛旙无旡旱杲昊昃旻杳昵昶昴昜晏晄晉晁晞晝晤晧晨晟晢晰暃暈暎暉暄暘暝曁暹曉暾暼"], - ["dba1", "曄暸曖曚曠昿曦曩曰曵曷朏朖朞朦朧霸朮朿朶杁朸朷杆杞杠杙杣杤枉杰枩杼杪枌枋枦枡枅枷柯枴柬枳柩枸柤柞柝柢柮枹柎柆柧檜栞框栩桀桍栲桎梳栫桙档桷桿梟梏梭梔條梛梃檮梹桴梵梠梺椏梍桾椁棊椈棘椢椦棡椌棍"], - ["dca1", "棔棧棕椶椒椄棗棣椥棹棠棯椨椪椚椣椡棆楹楷楜楸楫楔楾楮椹楴椽楙椰楡楞楝榁楪榲榮槐榿槁槓榾槎寨槊槝榻槃榧樮榑榠榜榕榴槞槨樂樛槿權槹槲槧樅榱樞槭樔槫樊樒櫁樣樓橄樌橲樶橸橇橢橙橦橈樸樢檐檍檠檄檢檣"], - ["dda1", "檗蘗檻櫃櫂檸檳檬櫞櫑櫟檪櫚櫪櫻欅蘖櫺欒欖鬱欟欸欷盜欹飮歇歃歉歐歙歔歛歟歡歸歹歿殀殄殃殍殘殕殞殤殪殫殯殲殱殳殷殼毆毋毓毟毬毫毳毯麾氈氓气氛氤氣汞汕汢汪沂沍沚沁沛汾汨汳沒沐泄泱泓沽泗泅泝沮沱沾"], - ["dea1", "沺泛泯泙泪洟衍洶洫洽洸洙洵洳洒洌浣涓浤浚浹浙涎涕濤涅淹渕渊涵淇淦涸淆淬淞淌淨淒淅淺淙淤淕淪淮渭湮渮渙湲湟渾渣湫渫湶湍渟湃渺湎渤滿渝游溂溪溘滉溷滓溽溯滄溲滔滕溏溥滂溟潁漑灌滬滸滾漿滲漱滯漲滌"], - ["dfa1", "漾漓滷澆潺潸澁澀潯潛濳潭澂潼潘澎澑濂潦澳澣澡澤澹濆澪濟濕濬濔濘濱濮濛瀉瀋濺瀑瀁瀏濾瀛瀚潴瀝瀘瀟瀰瀾瀲灑灣炙炒炯烱炬炸炳炮烟烋烝烙焉烽焜焙煥煕熈煦煢煌煖煬熏燻熄熕熨熬燗熹熾燒燉燔燎燠燬燧燵燼"], - ["e0a1", "燹燿爍爐爛爨爭爬爰爲爻爼爿牀牆牋牘牴牾犂犁犇犒犖犢犧犹犲狃狆狄狎狒狢狠狡狹狷倏猗猊猜猖猝猴猯猩猥猾獎獏默獗獪獨獰獸獵獻獺珈玳珎玻珀珥珮珞璢琅瑯琥珸琲琺瑕琿瑟瑙瑁瑜瑩瑰瑣瑪瑶瑾璋璞璧瓊瓏瓔珱"], - ["e1a1", "瓠瓣瓧瓩瓮瓲瓰瓱瓸瓷甄甃甅甌甎甍甕甓甞甦甬甼畄畍畊畉畛畆畚畩畤畧畫畭畸當疆疇畴疊疉疂疔疚疝疥疣痂疳痃疵疽疸疼疱痍痊痒痙痣痞痾痿痼瘁痰痺痲痳瘋瘍瘉瘟瘧瘠瘡瘢瘤瘴瘰瘻癇癈癆癜癘癡癢癨癩癪癧癬癰"], - ["e2a1", "癲癶癸發皀皃皈皋皎皖皓皙皚皰皴皸皹皺盂盍盖盒盞盡盥盧盪蘯盻眈眇眄眩眤眞眥眦眛眷眸睇睚睨睫睛睥睿睾睹瞎瞋瞑瞠瞞瞰瞶瞹瞿瞼瞽瞻矇矍矗矚矜矣矮矼砌砒礦砠礪硅碎硴碆硼碚碌碣碵碪碯磑磆磋磔碾碼磅磊磬"], - ["e3a1", "磧磚磽磴礇礒礑礙礬礫祀祠祗祟祚祕祓祺祿禊禝禧齋禪禮禳禹禺秉秕秧秬秡秣稈稍稘稙稠稟禀稱稻稾稷穃穗穉穡穢穩龝穰穹穽窈窗窕窘窖窩竈窰窶竅竄窿邃竇竊竍竏竕竓站竚竝竡竢竦竭竰笂笏笊笆笳笘笙笞笵笨笶筐"], - ["e4a1", "筺笄筍笋筌筅筵筥筴筧筰筱筬筮箝箘箟箍箜箚箋箒箏筝箙篋篁篌篏箴篆篝篩簑簔篦篥籠簀簇簓篳篷簗簍篶簣簧簪簟簷簫簽籌籃籔籏籀籐籘籟籤籖籥籬籵粃粐粤粭粢粫粡粨粳粲粱粮粹粽糀糅糂糘糒糜糢鬻糯糲糴糶糺紆"], - ["e5a1", "紂紜紕紊絅絋紮紲紿紵絆絳絖絎絲絨絮絏絣經綉絛綏絽綛綺綮綣綵緇綽綫總綢綯緜綸綟綰緘緝緤緞緻緲緡縅縊縣縡縒縱縟縉縋縢繆繦縻縵縹繃縷縲縺繧繝繖繞繙繚繹繪繩繼繻纃緕繽辮繿纈纉續纒纐纓纔纖纎纛纜缸缺"], - ["e6a1", "罅罌罍罎罐网罕罔罘罟罠罨罩罧罸羂羆羃羈羇羌羔羞羝羚羣羯羲羹羮羶羸譱翅翆翊翕翔翡翦翩翳翹飜耆耄耋耒耘耙耜耡耨耿耻聊聆聒聘聚聟聢聨聳聲聰聶聹聽聿肄肆肅肛肓肚肭冐肬胛胥胙胝胄胚胖脉胯胱脛脩脣脯腋"], - ["e7a1", "隋腆脾腓腑胼腱腮腥腦腴膃膈膊膀膂膠膕膤膣腟膓膩膰膵膾膸膽臀臂膺臉臍臑臙臘臈臚臟臠臧臺臻臾舁舂舅與舊舍舐舖舩舫舸舳艀艙艘艝艚艟艤艢艨艪艫舮艱艷艸艾芍芒芫芟芻芬苡苣苟苒苴苳苺莓范苻苹苞茆苜茉苙"], - ["e8a1", "茵茴茖茲茱荀茹荐荅茯茫茗茘莅莚莪莟莢莖茣莎莇莊荼莵荳荵莠莉莨菴萓菫菎菽萃菘萋菁菷萇菠菲萍萢萠莽萸蔆菻葭萪萼蕚蒄葷葫蒭葮蒂葩葆萬葯葹萵蓊葢蒹蒿蒟蓙蓍蒻蓚蓐蓁蓆蓖蒡蔡蓿蓴蔗蔘蔬蔟蔕蔔蓼蕀蕣蕘蕈"], - ["e9a1", "蕁蘂蕋蕕薀薤薈薑薊薨蕭薔薛藪薇薜蕷蕾薐藉薺藏薹藐藕藝藥藜藹蘊蘓蘋藾藺蘆蘢蘚蘰蘿虍乕虔號虧虱蚓蚣蚩蚪蚋蚌蚶蚯蛄蛆蚰蛉蠣蚫蛔蛞蛩蛬蛟蛛蛯蜒蜆蜈蜀蜃蛻蜑蜉蜍蛹蜊蜴蜿蜷蜻蜥蜩蜚蝠蝟蝸蝌蝎蝴蝗蝨蝮蝙"], - ["eaa1", "蝓蝣蝪蠅螢螟螂螯蟋螽蟀蟐雖螫蟄螳蟇蟆螻蟯蟲蟠蠏蠍蟾蟶蟷蠎蟒蠑蠖蠕蠢蠡蠱蠶蠹蠧蠻衄衂衒衙衞衢衫袁衾袞衵衽袵衲袂袗袒袮袙袢袍袤袰袿袱裃裄裔裘裙裝裹褂裼裴裨裲褄褌褊褓襃褞褥褪褫襁襄褻褶褸襌褝襠襞"], - ["eba1", "襦襤襭襪襯襴襷襾覃覈覊覓覘覡覩覦覬覯覲覺覽覿觀觚觜觝觧觴觸訃訖訐訌訛訝訥訶詁詛詒詆詈詼詭詬詢誅誂誄誨誡誑誥誦誚誣諄諍諂諚諫諳諧諤諱謔諠諢諷諞諛謌謇謚諡謖謐謗謠謳鞫謦謫謾謨譁譌譏譎證譖譛譚譫"], - ["eca1", "譟譬譯譴譽讀讌讎讒讓讖讙讚谺豁谿豈豌豎豐豕豢豬豸豺貂貉貅貊貍貎貔豼貘戝貭貪貽貲貳貮貶賈賁賤賣賚賽賺賻贄贅贊贇贏贍贐齎贓賍贔贖赧赭赱赳趁趙跂趾趺跏跚跖跌跛跋跪跫跟跣跼踈踉跿踝踞踐踟蹂踵踰踴蹊"], - ["eda1", "蹇蹉蹌蹐蹈蹙蹤蹠踪蹣蹕蹶蹲蹼躁躇躅躄躋躊躓躑躔躙躪躡躬躰軆躱躾軅軈軋軛軣軼軻軫軾輊輅輕輒輙輓輜輟輛輌輦輳輻輹轅轂輾轌轉轆轎轗轜轢轣轤辜辟辣辭辯辷迚迥迢迪迯邇迴逅迹迺逑逕逡逍逞逖逋逧逶逵逹迸"], - ["eea1", "遏遐遑遒逎遉逾遖遘遞遨遯遶隨遲邂遽邁邀邊邉邏邨邯邱邵郢郤扈郛鄂鄒鄙鄲鄰酊酖酘酣酥酩酳酲醋醉醂醢醫醯醪醵醴醺釀釁釉釋釐釖釟釡釛釼釵釶鈞釿鈔鈬鈕鈑鉞鉗鉅鉉鉤鉈銕鈿鉋鉐銜銖銓銛鉚鋏銹銷鋩錏鋺鍄錮"], - ["efa1", "錙錢錚錣錺錵錻鍜鍠鍼鍮鍖鎰鎬鎭鎔鎹鏖鏗鏨鏥鏘鏃鏝鏐鏈鏤鐚鐔鐓鐃鐇鐐鐶鐫鐵鐡鐺鑁鑒鑄鑛鑠鑢鑞鑪鈩鑰鑵鑷鑽鑚鑼鑾钁鑿閂閇閊閔閖閘閙閠閨閧閭閼閻閹閾闊濶闃闍闌闕闔闖關闡闥闢阡阨阮阯陂陌陏陋陷陜陞"], - ["f0a1", "陝陟陦陲陬隍隘隕隗險隧隱隲隰隴隶隸隹雎雋雉雍襍雜霍雕雹霄霆霈霓霎霑霏霖霙霤霪霰霹霽霾靄靆靈靂靉靜靠靤靦靨勒靫靱靹鞅靼鞁靺鞆鞋鞏鞐鞜鞨鞦鞣鞳鞴韃韆韈韋韜韭齏韲竟韶韵頏頌頸頤頡頷頽顆顏顋顫顯顰"], - ["f1a1", "顱顴顳颪颯颱颶飄飃飆飩飫餃餉餒餔餘餡餝餞餤餠餬餮餽餾饂饉饅饐饋饑饒饌饕馗馘馥馭馮馼駟駛駝駘駑駭駮駱駲駻駸騁騏騅駢騙騫騷驅驂驀驃騾驕驍驛驗驟驢驥驤驩驫驪骭骰骼髀髏髑髓體髞髟髢髣髦髯髫髮髴髱髷"], - ["f2a1", "髻鬆鬘鬚鬟鬢鬣鬥鬧鬨鬩鬪鬮鬯鬲魄魃魏魍魎魑魘魴鮓鮃鮑鮖鮗鮟鮠鮨鮴鯀鯊鮹鯆鯏鯑鯒鯣鯢鯤鯔鯡鰺鯲鯱鯰鰕鰔鰉鰓鰌鰆鰈鰒鰊鰄鰮鰛鰥鰤鰡鰰鱇鰲鱆鰾鱚鱠鱧鱶鱸鳧鳬鳰鴉鴈鳫鴃鴆鴪鴦鶯鴣鴟鵄鴕鴒鵁鴿鴾鵆鵈"], - ["f3a1", "鵝鵞鵤鵑鵐鵙鵲鶉鶇鶫鵯鵺鶚鶤鶩鶲鷄鷁鶻鶸鶺鷆鷏鷂鷙鷓鷸鷦鷭鷯鷽鸚鸛鸞鹵鹹鹽麁麈麋麌麒麕麑麝麥麩麸麪麭靡黌黎黏黐黔黜點黝黠黥黨黯黴黶黷黹黻黼黽鼇鼈皷鼕鼡鼬鼾齊齒齔齣齟齠齡齦齧齬齪齷齲齶龕龜龠"], - ["f4a1", "堯槇遙瑤凜熙"], - ["f9a1", "纊褜鍈銈蓜俉炻昱棈鋹曻彅丨仡仼伀伃伹佖侒侊侚侔俍偀倢俿倞偆偰偂傔僴僘兊兤冝冾凬刕劜劦勀勛匀匇匤卲厓厲叝﨎咜咊咩哿喆坙坥垬埈埇﨏塚增墲夋奓奛奝奣妤妺孖寀甯寘寬尞岦岺峵崧嵓﨑嵂嵭嶸嶹巐弡弴彧德"], - ["faa1", "忞恝悅悊惞惕愠惲愑愷愰憘戓抦揵摠撝擎敎昀昕昻昉昮昞昤晥晗晙晴晳暙暠暲暿曺朎朗杦枻桒柀栁桄棏﨓楨﨔榘槢樰橫橆橳橾櫢櫤毖氿汜沆汯泚洄涇浯涖涬淏淸淲淼渹湜渧渼溿澈澵濵瀅瀇瀨炅炫焏焄煜煆煇凞燁燾犱"], - ["fba1", "犾猤猪獷玽珉珖珣珒琇珵琦琪琩琮瑢璉璟甁畯皂皜皞皛皦益睆劯砡硎硤硺礰礼神祥禔福禛竑竧靖竫箞精絈絜綷綠緖繒罇羡羽茁荢荿菇菶葈蒴蕓蕙蕫﨟薰蘒﨡蠇裵訒訷詹誧誾諟諸諶譓譿賰賴贒赶﨣軏﨤逸遧郞都鄕鄧釚"], - ["fca1", "釗釞釭釮釤釥鈆鈐鈊鈺鉀鈼鉎鉙鉑鈹鉧銧鉷鉸鋧鋗鋙鋐﨧鋕鋠鋓錥錡鋻﨨錞鋿錝錂鍰鍗鎤鏆鏞鏸鐱鑅鑈閒隆﨩隝隯霳霻靃靍靏靑靕顗顥飯飼餧館馞驎髙髜魵魲鮏鮱鮻鰀鵰鵫鶴鸙黑"], - ["fcf1", "ⅰ", 9, "¬¦'""], - ["8fa2af", "˘ˇ¸˙˝¯˛˚~΄΅"], - ["8fa2c2", "¡¦¿"], - ["8fa2eb", "ºª©®™¤№"], - ["8fa6e1", "ΆΈΉΊΪ"], - ["8fa6e7", "Ό"], - ["8fa6e9", "ΎΫ"], - ["8fa6ec", "Ώ"], - ["8fa6f1", "άέήίϊΐόςύϋΰώ"], - ["8fa7c2", "Ђ", 10, "ЎЏ"], - ["8fa7f2", "ђ", 10, "ўџ"], - ["8fa9a1", "ÆĐ"], - ["8fa9a4", "Ħ"], - ["8fa9a6", "IJ"], - ["8fa9a8", "ŁĿ"], - ["8fa9ab", "ŊØŒ"], - ["8fa9af", "ŦÞ"], - ["8fa9c1", "æđðħıijĸłŀʼnŋøœßŧþ"], - ["8faaa1", "ÁÀÄÂĂǍĀĄÅÃĆĈČÇĊĎÉÈËÊĚĖĒĘ"], - ["8faaba", "ĜĞĢĠĤÍÌÏÎǏİĪĮĨĴĶĹĽĻŃŇŅÑÓÒÖÔǑŐŌÕŔŘŖŚŜŠŞŤŢÚÙÜÛŬǓŰŪŲŮŨǗǛǙǕŴÝŸŶŹŽŻ"], - ["8faba1", "áàäâăǎāąåãćĉčçċďéèëêěėēęǵĝğ"], - ["8fabbd", "ġĥíìïîǐ"], - ["8fabc5", "īįĩĵķĺľļńňņñóòöôǒőōõŕřŗśŝšşťţúùüûŭǔűūųůũǘǜǚǖŵýÿŷźžż"], - ["8fb0a1", "丂丄丅丌丒丟丣两丨丫丮丯丰丵乀乁乄乇乑乚乜乣乨乩乴乵乹乿亍亖亗亝亯亹仃仐仚仛仠仡仢仨仯仱仳仵份仾仿伀伂伃伈伋伌伒伕伖众伙伮伱你伳伵伷伹伻伾佀佂佈佉佋佌佒佔佖佘佟佣佪佬佮佱佷佸佹佺佽佾侁侂侄"], - ["8fb1a1", "侅侉侊侌侎侐侒侓侔侗侙侚侞侟侲侷侹侻侼侽侾俀俁俅俆俈俉俋俌俍俏俒俜俠俢俰俲俼俽俿倀倁倄倇倊倌倎倐倓倗倘倛倜倝倞倢倧倮倰倲倳倵偀偁偂偅偆偊偌偎偑偒偓偗偙偟偠偢偣偦偧偪偭偰偱倻傁傃傄傆傊傎傏傐"], - ["8fb2a1", "傒傓傔傖傛傜傞", 4, "傪傯傰傹傺傽僀僃僄僇僌僎僐僓僔僘僜僝僟僢僤僦僨僩僯僱僶僺僾儃儆儇儈儋儌儍儎僲儐儗儙儛儜儝儞儣儧儨儬儭儯儱儳儴儵儸儹兂兊兏兓兕兗兘兟兤兦兾冃冄冋冎冘冝冡冣冭冸冺冼冾冿凂"], - ["8fb3a1", "凈减凑凒凓凕凘凞凢凥凮凲凳凴凷刁刂刅划刓刕刖刘刢刨刱刲刵刼剅剉剕剗剘剚剜剟剠剡剦剮剷剸剹劀劂劅劊劌劓劕劖劗劘劚劜劤劥劦劧劯劰劶劷劸劺劻劽勀勄勆勈勌勏勑勔勖勛勜勡勥勨勩勪勬勰勱勴勶勷匀匃匊匋"], - ["8fb4a1", "匌匑匓匘匛匜匞匟匥匧匨匩匫匬匭匰匲匵匼匽匾卂卌卋卙卛卡卣卥卬卭卲卹卾厃厇厈厎厓厔厙厝厡厤厪厫厯厲厴厵厷厸厺厽叀叅叏叒叓叕叚叝叞叠另叧叵吂吓吚吡吧吨吪启吱吴吵呃呄呇呍呏呞呢呤呦呧呩呫呭呮呴呿"], - ["8fb5a1", "咁咃咅咈咉咍咑咕咖咜咟咡咦咧咩咪咭咮咱咷咹咺咻咿哆哊响哎哠哪哬哯哶哼哾哿唀唁唅唈唉唌唍唎唕唪唫唲唵唶唻唼唽啁啇啉啊啍啐啑啘啚啛啞啠啡啤啦啿喁喂喆喈喎喏喑喒喓喔喗喣喤喭喲喿嗁嗃嗆嗉嗋嗌嗎嗑嗒"], - ["8fb6a1", "嗓嗗嗘嗛嗞嗢嗩嗶嗿嘅嘈嘊嘍", 5, "嘙嘬嘰嘳嘵嘷嘹嘻嘼嘽嘿噀噁噃噄噆噉噋噍噏噔噞噠噡噢噣噦噩噭噯噱噲噵嚄嚅嚈嚋嚌嚕嚙嚚嚝嚞嚟嚦嚧嚨嚩嚫嚬嚭嚱嚳嚷嚾囅囉囊囋囏囐囌囍囙囜囝囟囡囤", 4, "囱囫园"], - ["8fb7a1", "囶囷圁圂圇圊圌圑圕圚圛圝圠圢圣圤圥圩圪圬圮圯圳圴圽圾圿坅坆坌坍坒坢坥坧坨坫坭", 4, "坳坴坵坷坹坺坻坼坾垁垃垌垔垗垙垚垜垝垞垟垡垕垧垨垩垬垸垽埇埈埌埏埕埝埞埤埦埧埩埭埰埵埶埸埽埾埿堃堄堈堉埡"], - ["8fb8a1", "堌堍堛堞堟堠堦堧堭堲堹堿塉塌塍塏塐塕塟塡塤塧塨塸塼塿墀墁墇墈墉墊墌墍墏墐墔墖墝墠墡墢墦墩墱墲壄墼壂壈壍壎壐壒壔壖壚壝壡壢壩壳夅夆夋夌夒夓夔虁夝夡夣夤夨夯夰夳夵夶夿奃奆奒奓奙奛奝奞奟奡奣奫奭"], - ["8fb9a1", "奯奲奵奶她奻奼妋妌妎妒妕妗妟妤妧妭妮妯妰妳妷妺妼姁姃姄姈姊姍姒姝姞姟姣姤姧姮姯姱姲姴姷娀娄娌娍娎娒娓娞娣娤娧娨娪娭娰婄婅婇婈婌婐婕婞婣婥婧婭婷婺婻婾媋媐媓媖媙媜媞媟媠媢媧媬媱媲媳媵媸媺媻媿"], - ["8fbaa1", "嫄嫆嫈嫏嫚嫜嫠嫥嫪嫮嫵嫶嫽嬀嬁嬈嬗嬴嬙嬛嬝嬡嬥嬭嬸孁孋孌孒孖孞孨孮孯孼孽孾孿宁宄宆宊宎宐宑宓宔宖宨宩宬宭宯宱宲宷宺宼寀寁寍寏寖", 4, "寠寯寱寴寽尌尗尞尟尣尦尩尫尬尮尰尲尵尶屙屚屜屢屣屧屨屩"], - ["8fbba1", "屭屰屴屵屺屻屼屽岇岈岊岏岒岝岟岠岢岣岦岪岲岴岵岺峉峋峒峝峗峮峱峲峴崁崆崍崒崫崣崤崦崧崱崴崹崽崿嵂嵃嵆嵈嵕嵑嵙嵊嵟嵠嵡嵢嵤嵪嵭嵰嵹嵺嵾嵿嶁嶃嶈嶊嶒嶓嶔嶕嶙嶛嶟嶠嶧嶫嶰嶴嶸嶹巃巇巋巐巎巘巙巠巤"], - ["8fbca1", "巩巸巹帀帇帍帒帔帕帘帟帠帮帨帲帵帾幋幐幉幑幖幘幛幜幞幨幪", 4, "幰庀庋庎庢庤庥庨庪庬庱庳庽庾庿廆廌廋廎廑廒廔廕廜廞廥廫异弆弇弈弎弙弜弝弡弢弣弤弨弫弬弮弰弴弶弻弽弿彀彄彅彇彍彐彔彘彛彠彣彤彧"], - ["8fbda1", "彯彲彴彵彸彺彽彾徉徍徏徖徜徝徢徧徫徤徬徯徰徱徸忄忇忈忉忋忐", 4, "忞忡忢忨忩忪忬忭忮忯忲忳忶忺忼怇怊怍怓怔怗怘怚怟怤怭怳怵恀恇恈恉恌恑恔恖恗恝恡恧恱恾恿悂悆悈悊悎悑悓悕悘悝悞悢悤悥您悰悱悷"], - ["8fbea1", "悻悾惂惄惈惉惊惋惎惏惔惕惙惛惝惞惢惥惲惵惸惼惽愂愇愊愌愐", 4, "愖愗愙愜愞愢愪愫愰愱愵愶愷愹慁慅慆慉慞慠慬慲慸慻慼慿憀憁憃憄憋憍憒憓憗憘憜憝憟憠憥憨憪憭憸憹憼懀懁懂懎懏懕懜懝懞懟懡懢懧懩懥"], - ["8fbfa1", "懬懭懯戁戃戄戇戓戕戜戠戢戣戧戩戫戹戽扂扃扄扆扌扐扑扒扔扖扚扜扤扭扯扳扺扽抍抎抏抐抦抨抳抶抷抺抾抿拄拎拕拖拚拪拲拴拼拽挃挄挊挋挍挐挓挖挘挩挪挭挵挶挹挼捁捂捃捄捆捊捋捎捒捓捔捘捛捥捦捬捭捱捴捵"], - ["8fc0a1", "捸捼捽捿掂掄掇掊掐掔掕掙掚掞掤掦掭掮掯掽揁揅揈揎揑揓揔揕揜揠揥揪揬揲揳揵揸揹搉搊搐搒搔搘搞搠搢搤搥搩搪搯搰搵搽搿摋摏摑摒摓摔摚摛摜摝摟摠摡摣摭摳摴摻摽撅撇撏撐撑撘撙撛撝撟撡撣撦撨撬撳撽撾撿"], - ["8fc1a1", "擄擉擊擋擌擎擐擑擕擗擤擥擩擪擭擰擵擷擻擿攁攄攈攉攊攏攓攔攖攙攛攞攟攢攦攩攮攱攺攼攽敃敇敉敐敒敔敟敠敧敫敺敽斁斅斊斒斕斘斝斠斣斦斮斲斳斴斿旂旈旉旎旐旔旖旘旟旰旲旴旵旹旾旿昀昄昈昉昍昑昒昕昖昝"], - ["8fc2a1", "昞昡昢昣昤昦昩昪昫昬昮昰昱昳昹昷晀晅晆晊晌晑晎晗晘晙晛晜晠晡曻晪晫晬晾晳晵晿晷晸晹晻暀晼暋暌暍暐暒暙暚暛暜暟暠暤暭暱暲暵暻暿曀曂曃曈曌曎曏曔曛曟曨曫曬曮曺朅朇朎朓朙朜朠朢朳朾杅杇杈杌杔杕杝"], - ["8fc3a1", "杦杬杮杴杶杻极构枎枏枑枓枖枘枙枛枰枱枲枵枻枼枽柹柀柂柃柅柈柉柒柗柙柜柡柦柰柲柶柷桒栔栙栝栟栨栧栬栭栯栰栱栳栻栿桄桅桊桌桕桗桘桛桫桮", 4, "桵桹桺桻桼梂梄梆梈梖梘梚梜梡梣梥梩梪梮梲梻棅棈棌棏"], - ["8fc4a1", "棐棑棓棖棙棜棝棥棨棪棫棬棭棰棱棵棶棻棼棽椆椉椊椐椑椓椖椗椱椳椵椸椻楂楅楉楎楗楛楣楤楥楦楨楩楬楰楱楲楺楻楿榀榍榒榖榘榡榥榦榨榫榭榯榷榸榺榼槅槈槑槖槗槢槥槮槯槱槳槵槾樀樁樃樏樑樕樚樝樠樤樨樰樲"], - ["8fc5a1", "樴樷樻樾樿橅橆橉橊橎橐橑橒橕橖橛橤橧橪橱橳橾檁檃檆檇檉檋檑檛檝檞檟檥檫檯檰檱檴檽檾檿櫆櫉櫈櫌櫐櫔櫕櫖櫜櫝櫤櫧櫬櫰櫱櫲櫼櫽欂欃欆欇欉欏欐欑欗欛欞欤欨欫欬欯欵欶欻欿歆歊歍歒歖歘歝歠歧歫歮歰歵歽"], - ["8fc6a1", "歾殂殅殗殛殟殠殢殣殨殩殬殭殮殰殸殹殽殾毃毄毉毌毖毚毡毣毦毧毮毱毷毹毿氂氄氅氉氍氎氐氒氙氟氦氧氨氬氮氳氵氶氺氻氿汊汋汍汏汒汔汙汛汜汫汭汯汴汶汸汹汻沅沆沇沉沔沕沗沘沜沟沰沲沴泂泆泍泏泐泑泒泔泖"], - ["8fc7a1", "泚泜泠泧泩泫泬泮泲泴洄洇洊洎洏洑洓洚洦洧洨汧洮洯洱洹洼洿浗浞浟浡浥浧浯浰浼涂涇涑涒涔涖涗涘涪涬涴涷涹涽涿淄淈淊淎淏淖淛淝淟淠淢淥淩淯淰淴淶淼渀渄渞渢渧渲渶渹渻渼湄湅湈湉湋湏湑湒湓湔湗湜湝湞"], - ["8fc8a1", "湢湣湨湳湻湽溍溓溙溠溧溭溮溱溳溻溿滀滁滃滇滈滊滍滎滏滫滭滮滹滻滽漄漈漊漌漍漖漘漚漛漦漩漪漯漰漳漶漻漼漭潏潑潒潓潗潙潚潝潞潡潢潨潬潽潾澃澇澈澋澌澍澐澒澓澔澖澚澟澠澥澦澧澨澮澯澰澵澶澼濅濇濈濊"], - ["8fc9a1", "濚濞濨濩濰濵濹濼濽瀀瀅瀆瀇瀍瀗瀠瀣瀯瀴瀷瀹瀼灃灄灈灉灊灋灔灕灝灞灎灤灥灬灮灵灶灾炁炅炆炔", 4, "炛炤炫炰炱炴炷烊烑烓烔烕烖烘烜烤烺焃", 4, "焋焌焏焞焠焫焭焯焰焱焸煁煅煆煇煊煋煐煒煗煚煜煞煠"], - ["8fcaa1", "煨煹熀熅熇熌熒熚熛熠熢熯熰熲熳熺熿燀燁燄燋燌燓燖燙燚燜燸燾爀爇爈爉爓爗爚爝爟爤爫爯爴爸爹牁牂牃牅牎牏牐牓牕牖牚牜牞牠牣牨牫牮牯牱牷牸牻牼牿犄犉犍犎犓犛犨犭犮犱犴犾狁狇狉狌狕狖狘狟狥狳狴狺狻"], - ["8fcba1", "狾猂猄猅猇猋猍猒猓猘猙猞猢猤猧猨猬猱猲猵猺猻猽獃獍獐獒獖獘獝獞獟獠獦獧獩獫獬獮獯獱獷獹獼玀玁玃玅玆玎玐玓玕玗玘玜玞玟玠玢玥玦玪玫玭玵玷玹玼玽玿珅珆珉珋珌珏珒珓珖珙珝珡珣珦珧珩珴珵珷珹珺珻珽"], - ["8fcca1", "珿琀琁琄琇琊琑琚琛琤琦琨", 9, "琹瑀瑃瑄瑆瑇瑋瑍瑑瑒瑗瑝瑢瑦瑧瑨瑫瑭瑮瑱瑲璀璁璅璆璇璉璏璐璑璒璘璙璚璜璟璠璡璣璦璨璩璪璫璮璯璱璲璵璹璻璿瓈瓉瓌瓐瓓瓘瓚瓛瓞瓟瓤瓨瓪瓫瓯瓴瓺瓻瓼瓿甆"], - ["8fcda1", "甒甖甗甠甡甤甧甩甪甯甶甹甽甾甿畀畃畇畈畎畐畒畗畞畟畡畯畱畹", 5, "疁疅疐疒疓疕疙疜疢疤疴疺疿痀痁痄痆痌痎痏痗痜痟痠痡痤痧痬痮痯痱痹瘀瘂瘃瘄瘇瘈瘊瘌瘏瘒瘓瘕瘖瘙瘛瘜瘝瘞瘣瘥瘦瘩瘭瘲瘳瘵瘸瘹"], - ["8fcea1", "瘺瘼癊癀癁癃癄癅癉癋癕癙癟癤癥癭癮癯癱癴皁皅皌皍皕皛皜皝皟皠皢", 6, "皪皭皽盁盅盉盋盌盎盔盙盠盦盨盬盰盱盶盹盼眀眆眊眎眒眔眕眗眙眚眜眢眨眭眮眯眴眵眶眹眽眾睂睅睆睊睍睎睏睒睖睗睜睞睟睠睢"], - ["8fcfa1", "睤睧睪睬睰睲睳睴睺睽瞀瞄瞌瞍瞔瞕瞖瞚瞟瞢瞧瞪瞮瞯瞱瞵瞾矃矉矑矒矕矙矞矟矠矤矦矪矬矰矱矴矸矻砅砆砉砍砎砑砝砡砢砣砭砮砰砵砷硃硄硇硈硌硎硒硜硞硠硡硣硤硨硪确硺硾碊碏碔碘碡碝碞碟碤碨碬碭碰碱碲碳"], - ["8fd0a1", "碻碽碿磇磈磉磌磎磒磓磕磖磤磛磟磠磡磦磪磲磳礀磶磷磺磻磿礆礌礐礚礜礞礟礠礥礧礩礭礱礴礵礻礽礿祄祅祆祊祋祏祑祔祘祛祜祧祩祫祲祹祻祼祾禋禌禑禓禔禕禖禘禛禜禡禨禩禫禯禱禴禸离秂秄秇秈秊秏秔秖秚秝秞"], - ["8fd1a1", "秠秢秥秪秫秭秱秸秼稂稃稇稉稊稌稑稕稛稞稡稧稫稭稯稰稴稵稸稹稺穄穅穇穈穌穕穖穙穜穝穟穠穥穧穪穭穵穸穾窀窂窅窆窊窋窐窑窔窞窠窣窬窳窵窹窻窼竆竉竌竎竑竛竨竩竫竬竱竴竻竽竾笇笔笟笣笧笩笪笫笭笮笯笰"], - ["8fd2a1", "笱笴笽笿筀筁筇筎筕筠筤筦筩筪筭筯筲筳筷箄箉箎箐箑箖箛箞箠箥箬箯箰箲箵箶箺箻箼箽篂篅篈篊篔篖篗篙篚篛篨篪篲篴篵篸篹篺篼篾簁簂簃簄簆簉簋簌簎簏簙簛簠簥簦簨簬簱簳簴簶簹簺籆籊籕籑籒籓籙", 5], - ["8fd3a1", "籡籣籧籩籭籮籰籲籹籼籽粆粇粏粔粞粠粦粰粶粷粺粻粼粿糄糇糈糉糍糏糓糔糕糗糙糚糝糦糩糫糵紃紇紈紉紏紑紒紓紖紝紞紣紦紪紭紱紼紽紾絀絁絇絈絍絑絓絗絙絚絜絝絥絧絪絰絸絺絻絿綁綂綃綅綆綈綋綌綍綑綖綗綝"], - ["8fd4a1", "綞綦綧綪綳綶綷綹緂", 4, "緌緍緎緗緙縀緢緥緦緪緫緭緱緵緶緹緺縈縐縑縕縗縜縝縠縧縨縬縭縯縳縶縿繄繅繇繎繐繒繘繟繡繢繥繫繮繯繳繸繾纁纆纇纊纍纑纕纘纚纝纞缼缻缽缾缿罃罄罇罏罒罓罛罜罝罡罣罤罥罦罭"], - ["8fd5a1", "罱罽罾罿羀羋羍羏羐羑羖羗羜羡羢羦羪羭羴羼羿翀翃翈翎翏翛翟翣翥翨翬翮翯翲翺翽翾翿耇耈耊耍耎耏耑耓耔耖耝耞耟耠耤耦耬耮耰耴耵耷耹耺耼耾聀聄聠聤聦聭聱聵肁肈肎肜肞肦肧肫肸肹胈胍胏胒胔胕胗胘胠胭胮"], - ["8fd6a1", "胰胲胳胶胹胺胾脃脋脖脗脘脜脞脠脤脧脬脰脵脺脼腅腇腊腌腒腗腠腡腧腨腩腭腯腷膁膐膄膅膆膋膎膖膘膛膞膢膮膲膴膻臋臃臅臊臎臏臕臗臛臝臞臡臤臫臬臰臱臲臵臶臸臹臽臿舀舃舏舓舔舙舚舝舡舢舨舲舴舺艃艄艅艆"], - ["8fd7a1", "艋艎艏艑艖艜艠艣艧艭艴艻艽艿芀芁芃芄芇芉芊芎芑芔芖芘芚芛芠芡芣芤芧芨芩芪芮芰芲芴芷芺芼芾芿苆苐苕苚苠苢苤苨苪苭苯苶苷苽苾茀茁茇茈茊茋荔茛茝茞茟茡茢茬茭茮茰茳茷茺茼茽荂荃荄荇荍荎荑荕荖荗荰荸"], - ["8fd8a1", "荽荿莀莂莄莆莍莒莔莕莘莙莛莜莝莦莧莩莬莾莿菀菇菉菏菐菑菔菝荓菨菪菶菸菹菼萁萆萊萏萑萕萙莭萯萹葅葇葈葊葍葏葑葒葖葘葙葚葜葠葤葥葧葪葰葳葴葶葸葼葽蒁蒅蒒蒓蒕蒞蒦蒨蒩蒪蒯蒱蒴蒺蒽蒾蓀蓂蓇蓈蓌蓏蓓"], - ["8fd9a1", "蓜蓧蓪蓯蓰蓱蓲蓷蔲蓺蓻蓽蔂蔃蔇蔌蔎蔐蔜蔞蔢蔣蔤蔥蔧蔪蔫蔯蔳蔴蔶蔿蕆蕏", 4, "蕖蕙蕜", 6, "蕤蕫蕯蕹蕺蕻蕽蕿薁薅薆薉薋薌薏薓薘薝薟薠薢薥薧薴薶薷薸薼薽薾薿藂藇藊藋藎薭藘藚藟藠藦藨藭藳藶藼"], - ["8fdaa1", "藿蘀蘄蘅蘍蘎蘐蘑蘒蘘蘙蘛蘞蘡蘧蘩蘶蘸蘺蘼蘽虀虂虆虒虓虖虗虘虙虝虠", 4, "虩虬虯虵虶虷虺蚍蚑蚖蚘蚚蚜蚡蚦蚧蚨蚭蚱蚳蚴蚵蚷蚸蚹蚿蛀蛁蛃蛅蛑蛒蛕蛗蛚蛜蛠蛣蛥蛧蚈蛺蛼蛽蜄蜅蜇蜋蜎蜏蜐蜓蜔蜙蜞蜟蜡蜣"], - ["8fdba1", "蜨蜮蜯蜱蜲蜹蜺蜼蜽蜾蝀蝃蝅蝍蝘蝝蝡蝤蝥蝯蝱蝲蝻螃", 6, "螋螌螐螓螕螗螘螙螞螠螣螧螬螭螮螱螵螾螿蟁蟈蟉蟊蟎蟕蟖蟙蟚蟜蟟蟢蟣蟤蟪蟫蟭蟱蟳蟸蟺蟿蠁蠃蠆蠉蠊蠋蠐蠙蠒蠓蠔蠘蠚蠛蠜蠞蠟蠨蠭蠮蠰蠲蠵"], - ["8fdca1", "蠺蠼衁衃衅衈衉衊衋衎衑衕衖衘衚衜衟衠衤衩衱衹衻袀袘袚袛袜袟袠袨袪袺袽袾裀裊", 4, "裑裒裓裛裞裧裯裰裱裵裷褁褆褍褎褏褕褖褘褙褚褜褠褦褧褨褰褱褲褵褹褺褾襀襂襅襆襉襏襒襗襚襛襜襡襢襣襫襮襰襳襵襺"], - ["8fdda1", "襻襼襽覉覍覐覔覕覛覜覟覠覥覰覴覵覶覷覼觔", 4, "觥觩觫觭觱觳觶觹觽觿訄訅訇訏訑訒訔訕訞訠訢訤訦訫訬訯訵訷訽訾詀詃詅詇詉詍詎詓詖詗詘詜詝詡詥詧詵詶詷詹詺詻詾詿誀誃誆誋誏誐誒誖誗誙誟誧誩誮誯誳"], - ["8fdea1", "誶誷誻誾諃諆諈諉諊諑諓諔諕諗諝諟諬諰諴諵諶諼諿謅謆謋謑謜謞謟謊謭謰謷謼譂", 4, "譈譒譓譔譙譍譞譣譭譶譸譹譼譾讁讄讅讋讍讏讔讕讜讞讟谸谹谽谾豅豇豉豋豏豑豓豔豗豘豛豝豙豣豤豦豨豩豭豳豵豶豻豾貆"], - ["8fdfa1", "貇貋貐貒貓貙貛貜貤貹貺賅賆賉賋賏賖賕賙賝賡賨賬賯賰賲賵賷賸賾賿贁贃贉贒贗贛赥赩赬赮赿趂趄趈趍趐趑趕趞趟趠趦趫趬趯趲趵趷趹趻跀跅跆跇跈跊跎跑跔跕跗跙跤跥跧跬跰趼跱跲跴跽踁踄踅踆踋踑踔踖踠踡踢"], - ["8fe0a1", "踣踦踧踱踳踶踷踸踹踽蹀蹁蹋蹍蹎蹏蹔蹛蹜蹝蹞蹡蹢蹩蹬蹭蹯蹰蹱蹹蹺蹻躂躃躉躐躒躕躚躛躝躞躢躧躩躭躮躳躵躺躻軀軁軃軄軇軏軑軔軜軨軮軰軱軷軹軺軭輀輂輇輈輏輐輖輗輘輞輠輡輣輥輧輨輬輭輮輴輵輶輷輺轀轁"], - ["8fe1a1", "轃轇轏轑", 4, "轘轝轞轥辝辠辡辤辥辦辵辶辸达迀迁迆迊迋迍运迒迓迕迠迣迤迨迮迱迵迶迻迾适逄逈逌逘逛逨逩逯逪逬逭逳逴逷逿遃遄遌遛遝遢遦遧遬遰遴遹邅邈邋邌邎邐邕邗邘邙邛邠邡邢邥邰邲邳邴邶邽郌邾郃"], - ["8fe2a1", "郄郅郇郈郕郗郘郙郜郝郟郥郒郶郫郯郰郴郾郿鄀鄄鄅鄆鄈鄍鄐鄔鄖鄗鄘鄚鄜鄞鄠鄥鄢鄣鄧鄩鄮鄯鄱鄴鄶鄷鄹鄺鄼鄽酃酇酈酏酓酗酙酚酛酡酤酧酭酴酹酺酻醁醃醅醆醊醎醑醓醔醕醘醞醡醦醨醬醭醮醰醱醲醳醶醻醼醽醿"], - ["8fe3a1", "釂釃釅釓釔釗釙釚釞釤釥釩釪釬", 5, "釷釹釻釽鈀鈁鈄鈅鈆鈇鈉鈊鈌鈐鈒鈓鈖鈘鈜鈝鈣鈤鈥鈦鈨鈮鈯鈰鈳鈵鈶鈸鈹鈺鈼鈾鉀鉂鉃鉆鉇鉊鉍鉎鉏鉑鉘鉙鉜鉝鉠鉡鉥鉧鉨鉩鉮鉯鉰鉵", 4, "鉻鉼鉽鉿銈銉銊銍銎銒銗"], - ["8fe4a1", "銙銟銠銤銥銧銨銫銯銲銶銸銺銻銼銽銿", 4, "鋅鋆鋇鋈鋋鋌鋍鋎鋐鋓鋕鋗鋘鋙鋜鋝鋟鋠鋡鋣鋥鋧鋨鋬鋮鋰鋹鋻鋿錀錂錈錍錑錔錕錜錝錞錟錡錤錥錧錩錪錳錴錶錷鍇鍈鍉鍐鍑鍒鍕鍗鍘鍚鍞鍤鍥鍧鍩鍪鍭鍯鍰鍱鍳鍴鍶"], - ["8fe5a1", "鍺鍽鍿鎀鎁鎂鎈鎊鎋鎍鎏鎒鎕鎘鎛鎞鎡鎣鎤鎦鎨鎫鎴鎵鎶鎺鎩鏁鏄鏅鏆鏇鏉", 4, "鏓鏙鏜鏞鏟鏢鏦鏧鏹鏷鏸鏺鏻鏽鐁鐂鐄鐈鐉鐍鐎鐏鐕鐖鐗鐟鐮鐯鐱鐲鐳鐴鐻鐿鐽鑃鑅鑈鑊鑌鑕鑙鑜鑟鑡鑣鑨鑫鑭鑮鑯鑱鑲钄钃镸镹"], - ["8fe6a1", "镾閄閈閌閍閎閝閞閟閡閦閩閫閬閴閶閺閽閿闆闈闉闋闐闑闒闓闙闚闝闞闟闠闤闦阝阞阢阤阥阦阬阱阳阷阸阹阺阼阽陁陒陔陖陗陘陡陮陴陻陼陾陿隁隂隃隄隉隑隖隚隝隟隤隥隦隩隮隯隳隺雊雒嶲雘雚雝雞雟雩雯雱雺霂"], - ["8fe7a1", "霃霅霉霚霛霝霡霢霣霨霱霳靁靃靊靎靏靕靗靘靚靛靣靧靪靮靳靶靷靸靻靽靿鞀鞉鞕鞖鞗鞙鞚鞞鞟鞢鞬鞮鞱鞲鞵鞶鞸鞹鞺鞼鞾鞿韁韄韅韇韉韊韌韍韎韐韑韔韗韘韙韝韞韠韛韡韤韯韱韴韷韸韺頇頊頙頍頎頔頖頜頞頠頣頦"], - ["8fe8a1", "頫頮頯頰頲頳頵頥頾顄顇顊顑顒顓顖顗顙顚顢顣顥顦顪顬颫颭颮颰颴颷颸颺颻颿飂飅飈飌飡飣飥飦飧飪飳飶餂餇餈餑餕餖餗餚餛餜餟餢餦餧餫餱", 4, "餹餺餻餼饀饁饆饇饈饍饎饔饘饙饛饜饞饟饠馛馝馟馦馰馱馲馵"], - ["8fe9a1", "馹馺馽馿駃駉駓駔駙駚駜駞駧駪駫駬駰駴駵駹駽駾騂騃騄騋騌騐騑騖騞騠騢騣騤騧騭騮騳騵騶騸驇驁驄驊驋驌驎驑驔驖驝骪骬骮骯骲骴骵骶骹骻骾骿髁髃髆髈髎髐髒髕髖髗髛髜髠髤髥髧髩髬髲髳髵髹髺髽髿", 4], - ["8feaa1", "鬄鬅鬈鬉鬋鬌鬍鬎鬐鬒鬖鬙鬛鬜鬠鬦鬫鬭鬳鬴鬵鬷鬹鬺鬽魈魋魌魕魖魗魛魞魡魣魥魦魨魪", 4, "魳魵魷魸魹魿鮀鮄鮅鮆鮇鮉鮊鮋鮍鮏鮐鮔鮚鮝鮞鮦鮧鮩鮬鮰鮱鮲鮷鮸鮻鮼鮾鮿鯁鯇鯈鯎鯐鯗鯘鯝鯟鯥鯧鯪鯫鯯鯳鯷鯸"], - ["8feba1", "鯹鯺鯽鯿鰀鰂鰋鰏鰑鰖鰘鰙鰚鰜鰞鰢鰣鰦", 4, "鰱鰵鰶鰷鰽鱁鱃鱄鱅鱉鱊鱎鱏鱐鱓鱔鱖鱘鱛鱝鱞鱟鱣鱩鱪鱜鱫鱨鱮鱰鱲鱵鱷鱻鳦鳲鳷鳹鴋鴂鴑鴗鴘鴜鴝鴞鴯鴰鴲鴳鴴鴺鴼鵅鴽鵂鵃鵇鵊鵓鵔鵟鵣鵢鵥鵩鵪鵫鵰鵶鵷鵻"], - ["8feca1", "鵼鵾鶃鶄鶆鶊鶍鶎鶒鶓鶕鶖鶗鶘鶡鶪鶬鶮鶱鶵鶹鶼鶿鷃鷇鷉鷊鷔鷕鷖鷗鷚鷞鷟鷠鷥鷧鷩鷫鷮鷰鷳鷴鷾鸊鸂鸇鸎鸐鸑鸒鸕鸖鸙鸜鸝鹺鹻鹼麀麂麃麄麅麇麎麏麖麘麛麞麤麨麬麮麯麰麳麴麵黆黈黋黕黟黤黧黬黭黮黰黱黲黵"], - ["8feda1", "黸黿鼂鼃鼉鼏鼐鼑鼒鼔鼖鼗鼙鼚鼛鼟鼢鼦鼪鼫鼯鼱鼲鼴鼷鼹鼺鼼鼽鼿齁齃", 4, "齓齕齖齗齘齚齝齞齨齩齭", 4, "齳齵齺齽龏龐龑龒龔龖龗龞龡龢龣龥"] - ]; -}); - -// node_modules/iconv-lite/encodings/tables/cp936.json -var require_cp936 = __commonJS((exports, module) => { - module.exports = [ - ["0", "\x00", 127, "€"], - ["8140", "丂丄丅丆丏丒丗丟丠両丣並丩丮丯丱丳丵丷丼乀乁乂乄乆乊乑乕乗乚乛乢乣乤乥乧乨乪", 5, "乲乴", 9, "乿", 6, "亇亊"], - ["8180", "亐亖亗亙亜亝亞亣亪亯亰亱亴亶亷亸亹亼亽亾仈仌仏仐仒仚仛仜仠仢仦仧仩仭仮仯仱仴仸仹仺仼仾伀伂", 6, "伋伌伒", 4, "伜伝伡伣伨伩伬伭伮伱伳伵伷伹伻伾", 4, "佄佅佇", 5, "佒佔佖佡佢佦佨佪佫佭佮佱佲併佷佸佹佺佽侀侁侂侅來侇侊侌侎侐侒侓侕侖侘侙侚侜侞侟価侢"], - ["8240", "侤侫侭侰", 4, "侶", 8, "俀俁係俆俇俈俉俋俌俍俒", 4, "俙俛俠俢俤俥俧俫俬俰俲俴俵俶俷俹俻俼俽俿", 11], - ["8280", "個倎倐們倓倕倖倗倛倝倞倠倢倣値倧倫倯", 10, "倻倽倿偀偁偂偄偅偆偉偊偋偍偐", 4, "偖偗偘偙偛偝", 7, "偦", 5, "偭", 8, "偸偹偺偼偽傁傂傃傄傆傇傉傊傋傌傎", 20, "傤傦傪傫傭", 4, "傳", 6, "傼"], - ["8340", "傽", 17, "僐", 5, "僗僘僙僛", 10, "僨僩僪僫僯僰僱僲僴僶", 4, "僼", 9, "儈"], - ["8380", "儉儊儌", 5, "儓", 13, "儢", 28, "兂兇兊兌兎兏児兒兓兗兘兙兛兝", 4, "兣兤兦內兩兪兯兲兺兾兿冃冄円冇冊冋冎冏冐冑冓冔冘冚冝冞冟冡冣冦", 4, "冭冮冴冸冹冺冾冿凁凂凃凅凈凊凍凎凐凒", 5], - ["8440", "凘凙凚凜凞凟凢凣凥", 5, "凬凮凱凲凴凷凾刄刅刉刋刌刏刐刓刔刕刜刞刟刡刢刣別刦刧刪刬刯刱刲刴刵刼刾剄", 5, "剋剎剏剒剓剕剗剘"], - ["8480", "剙剚剛剝剟剠剢剣剤剦剨剫剬剭剮剰剱剳", 9, "剾劀劃", 4, "劉", 6, "劑劒劔", 6, "劜劤劥劦劧劮劯劰労", 9, "勀勁勂勄勅勆勈勊勌勍勎勏勑勓勔動勗務", 5, "勠勡勢勣勥", 10, "勱", 7, "勻勼勽匁匂匃匄匇匉匊匋匌匎"], - ["8540", "匑匒匓匔匘匛匜匞匟匢匤匥匧匨匩匫匬匭匯", 9, "匼匽區卂卄卆卋卌卍卐協単卙卛卝卥卨卪卬卭卲卶卹卻卼卽卾厀厁厃厇厈厊厎厏"], - ["8580", "厐", 4, "厖厗厙厛厜厞厠厡厤厧厪厫厬厭厯", 6, "厷厸厹厺厼厽厾叀參", 4, "収叏叐叒叓叕叚叜叝叞叡叢叧叴叺叾叿吀吂吅吇吋吔吘吙吚吜吢吤吥吪吰吳吶吷吺吽吿呁呂呄呅呇呉呌呍呎呏呑呚呝", 4, "呣呥呧呩", 7, "呴呹呺呾呿咁咃咅咇咈咉咊咍咑咓咗咘咜咞咟咠咡"], - ["8640", "咢咥咮咰咲咵咶咷咹咺咼咾哃哅哊哋哖哘哛哠", 4, "哫哬哯哰哱哴", 5, "哻哾唀唂唃唄唅唈唊", 4, "唒唓唕", 5, "唜唝唞唟唡唥唦"], - ["8680", "唨唩唫唭唲唴唵唶唸唹唺唻唽啀啂啅啇啈啋", 4, "啑啒啓啔啗", 4, "啝啞啟啠啢啣啨啩啫啯", 5, "啹啺啽啿喅喆喌喍喎喐喒喓喕喖喗喚喛喞喠", 6, "喨", 8, "喲喴営喸喺喼喿", 4, "嗆嗇嗈嗊嗋嗎嗏嗐嗕嗗", 4, "嗞嗠嗢嗧嗩嗭嗮嗰嗱嗴嗶嗸", 4, "嗿嘂嘃嘄嘅"], - ["8740", "嘆嘇嘊嘋嘍嘐", 7, "嘙嘚嘜嘝嘠嘡嘢嘥嘦嘨嘩嘪嘫嘮嘯嘰嘳嘵嘷嘸嘺嘼嘽嘾噀", 11, "噏", 4, "噕噖噚噛噝", 4], - ["8780", "噣噥噦噧噭噮噯噰噲噳噴噵噷噸噹噺噽", 7, "嚇", 6, "嚐嚑嚒嚔", 14, "嚤", 10, "嚰", 6, "嚸嚹嚺嚻嚽", 12, "囋", 8, "囕囖囘囙囜団囥", 5, "囬囮囯囲図囶囷囸囻囼圀圁圂圅圇國", 6], - ["8840", "園", 9, "圝圞圠圡圢圤圥圦圧圫圱圲圴", 4, "圼圽圿坁坃坄坅坆坈坉坋坒", 4, "坘坙坢坣坥坧坬坮坰坱坲坴坵坸坹坺坽坾坿垀"], - ["8880", "垁垇垈垉垊垍", 4, "垔", 6, "垜垝垞垟垥垨垪垬垯垰垱垳垵垶垷垹", 8, "埄", 6, "埌埍埐埑埓埖埗埛埜埞埡埢埣埥", 7, "埮埰埱埲埳埵埶執埻埼埾埿堁堃堄堅堈堉堊堌堎堏堐堒堓堔堖堗堘堚堛堜堝堟堢堣堥", 4, "堫", 4, "報堲堳場堶", 7], - ["8940", "堾", 5, "塅", 6, "塎塏塐塒塓塕塖塗塙", 4, "塟", 5, "塦", 4, "塭", 16, "塿墂墄墆墇墈墊墋墌"], - ["8980", "墍", 4, "墔", 4, "墛墜墝墠", 7, "墪", 17, "墽墾墿壀壂壃壄壆", 10, "壒壓壔壖", 13, "壥", 5, "壭壯壱売壴壵壷壸壺", 7, "夃夅夆夈", 4, "夎夐夑夒夓夗夘夛夝夞夠夡夢夣夦夨夬夰夲夳夵夶夻"], - ["8a40", "夽夾夿奀奃奅奆奊奌奍奐奒奓奙奛", 4, "奡奣奤奦", 12, "奵奷奺奻奼奾奿妀妅妉妋妌妎妏妐妑妔妕妘妚妛妜妝妟妠妡妢妦"], - ["8a80", "妧妬妭妰妱妳", 5, "妺妼妽妿", 6, "姇姈姉姌姍姎姏姕姖姙姛姞", 4, "姤姦姧姩姪姫姭", 11, "姺姼姽姾娀娂娊娋娍娎娏娐娒娔娕娖娗娙娚娛娝娞娡娢娤娦娧娨娪", 6, "娳娵娷", 4, "娽娾娿婁", 4, "婇婈婋", 9, "婖婗婘婙婛", 5], - ["8b40", "婡婣婤婥婦婨婩婫", 8, "婸婹婻婼婽婾媀", 17, "媓", 6, "媜", 13, "媫媬"], - ["8b80", "媭", 4, "媴媶媷媹", 4, "媿嫀嫃", 5, "嫊嫋嫍", 4, "嫓嫕嫗嫙嫚嫛嫝嫞嫟嫢嫤嫥嫧嫨嫪嫬", 4, "嫲", 22, "嬊", 11, "嬘", 25, "嬳嬵嬶嬸", 7, "孁", 6], - ["8c40", "孈", 7, "孒孖孞孠孡孧孨孫孭孮孯孲孴孶孷學孹孻孼孾孿宂宆宊宍宎宐宑宒宔宖実宧宨宩宬宭宮宯宱宲宷宺宻宼寀寁寃寈寉寊寋寍寎寏"], - ["8c80", "寑寔", 8, "寠寢寣實寧審", 4, "寯寱", 6, "寽対尀専尃尅將專尋尌對導尐尒尓尗尙尛尞尟尠尡尣尦尨尩尪尫尭尮尯尰尲尳尵尶尷屃屄屆屇屌屍屒屓屔屖屗屘屚屛屜屝屟屢層屧", 6, "屰屲", 6, "屻屼屽屾岀岃", 4, "岉岊岋岎岏岒岓岕岝", 4, "岤", 4], - ["8d40", "岪岮岯岰岲岴岶岹岺岻岼岾峀峂峃峅", 5, "峌", 5, "峓", 5, "峚", 6, "峢峣峧峩峫峬峮峯峱", 9, "峼", 4], - ["8d80", "崁崄崅崈", 5, "崏", 4, "崕崗崘崙崚崜崝崟", 4, "崥崨崪崫崬崯", 4, "崵", 7, "崿", 7, "嵈嵉嵍", 10, "嵙嵚嵜嵞", 10, "嵪嵭嵮嵰嵱嵲嵳嵵", 12, "嶃", 21, "嶚嶛嶜嶞嶟嶠"], - ["8e40", "嶡", 21, "嶸", 12, "巆", 6, "巎", 12, "巜巟巠巣巤巪巬巭"], - ["8e80", "巰巵巶巸", 4, "巿帀帄帇帉帊帋帍帎帒帓帗帞", 7, "帨", 4, "帯帰帲", 4, "帹帺帾帿幀幁幃幆", 5, "幍", 6, "幖", 4, "幜幝幟幠幣", 14, "幵幷幹幾庁庂広庅庈庉庌庍庎庒庘庛庝庡庢庣庤庨", 4, "庮", 4, "庴庺庻庼庽庿", 6], - ["8f40", "廆廇廈廋", 5, "廔廕廗廘廙廚廜", 11, "廩廫", 8, "廵廸廹廻廼廽弅弆弇弉弌弍弎弐弒弔弖弙弚弜弝弞弡弢弣弤"], - ["8f80", "弨弫弬弮弰弲", 6, "弻弽弾弿彁", 14, "彑彔彙彚彛彜彞彟彠彣彥彧彨彫彮彯彲彴彵彶彸彺彽彾彿徃徆徍徎徏徑従徔徖徚徛徝從徟徠徢", 5, "復徫徬徯", 5, "徶徸徹徺徻徾", 4, "忇忈忊忋忎忓忔忕忚忛応忞忟忢忣忥忦忨忩忬忯忰忲忳忴忶忷忹忺忼怇"], - ["9040", "怈怉怋怌怐怑怓怗怘怚怞怟怢怣怤怬怭怮怰", 4, "怶", 4, "怽怾恀恄", 6, "恌恎恏恑恓恔恖恗恘恛恜恞恟恠恡恥恦恮恱恲恴恵恷恾悀"], - ["9080", "悁悂悅悆悇悈悊悋悎悏悐悑悓悕悗悘悙悜悞悡悢悤悥悧悩悪悮悰悳悵悶悷悹悺悽", 7, "惇惈惉惌", 4, "惒惓惔惖惗惙惛惞惡", 4, "惪惱惲惵惷惸惻", 4, "愂愃愄愅愇愊愋愌愐", 4, "愖愗愘愙愛愜愝愞愡愢愥愨愩愪愬", 18, "慀", 6], - ["9140", "慇慉態慍慏慐慒慓慔慖", 6, "慞慟慠慡慣慤慥慦慩", 6, "慱慲慳慴慶慸", 18, "憌憍憏", 4, "憕"], - ["9180", "憖", 6, "憞", 8, "憪憫憭", 9, "憸", 5, "憿懀懁懃", 4, "應懌", 4, "懓懕", 16, "懧", 13, "懶", 8, "戀", 5, "戇戉戓戔戙戜戝戞戠戣戦戧戨戩戫戭戯戰戱戲戵戶戸", 4, "扂扄扅扆扊"], - ["9240", "扏扐払扖扗扙扚扜", 6, "扤扥扨扱扲扴扵扷扸扺扻扽抁抂抃抅抆抇抈抋", 5, "抔抙抜抝択抣抦抧抩抪抭抮抯抰抲抳抴抶抷抸抺抾拀拁"], - ["9280", "拃拋拏拑拕拝拞拠拡拤拪拫拰拲拵拸拹拺拻挀挃挄挅挆挊挋挌挍挏挐挒挓挔挕挗挘挙挜挦挧挩挬挭挮挰挱挳", 5, "挻挼挾挿捀捁捄捇捈捊捑捒捓捔捖", 7, "捠捤捥捦捨捪捫捬捯捰捲捳捴捵捸捹捼捽捾捿掁掃掄掅掆掋掍掑掓掔掕掗掙", 6, "採掤掦掫掯掱掲掵掶掹掻掽掿揀"], - ["9340", "揁揂揃揅揇揈揊揋揌揑揓揔揕揗", 6, "揟揢揤", 4, "揫揬揮揯揰揱揳揵揷揹揺揻揼揾搃搄搆", 4, "損搎搑搒搕", 5, "搝搟搢搣搤"], - ["9380", "搥搧搨搩搫搮", 5, "搵", 4, "搻搼搾摀摂摃摉摋", 6, "摓摕摖摗摙", 4, "摟", 7, "摨摪摫摬摮", 9, "摻", 6, "撃撆撈", 8, "撓撔撗撘撚撛撜撝撟", 4, "撥撦撧撨撪撫撯撱撲撳撴撶撹撻撽撾撿擁擃擄擆", 6, "擏擑擓擔擕擖擙據"], - ["9440", "擛擜擝擟擠擡擣擥擧", 24, "攁", 7, "攊", 7, "攓", 4, "攙", 8], - ["9480", "攢攣攤攦", 4, "攬攭攰攱攲攳攷攺攼攽敀", 4, "敆敇敊敋敍敎敐敒敓敔敗敘敚敜敟敠敡敤敥敧敨敩敪敭敮敯敱敳敵敶數", 14, "斈斉斊斍斎斏斒斔斕斖斘斚斝斞斠斢斣斦斨斪斬斮斱", 7, "斺斻斾斿旀旂旇旈旉旊旍旐旑旓旔旕旘", 7, "旡旣旤旪旫"], - ["9540", "旲旳旴旵旸旹旻", 4, "昁昄昅昇昈昉昋昍昐昑昒昖昗昘昚昛昜昞昡昢昣昤昦昩昪昫昬昮昰昲昳昷", 4, "昽昿晀時晄", 6, "晍晎晐晑晘"], - ["9580", "晙晛晜晝晞晠晢晣晥晧晩", 4, "晱晲晳晵晸晹晻晼晽晿暀暁暃暅暆暈暉暊暋暍暎暏暐暒暓暔暕暘", 4, "暞", 8, "暩", 4, "暯", 4, "暵暶暷暸暺暻暼暽暿", 25, "曚曞", 7, "曧曨曪", 5, "曱曵曶書曺曻曽朁朂會"], - ["9640", "朄朅朆朇朌朎朏朑朒朓朖朘朙朚朜朞朠", 5, "朧朩朮朰朲朳朶朷朸朹朻朼朾朿杁杄杅杇杊杋杍杒杔杕杗", 4, "杝杢杣杤杦杧杫杬杮東杴杶"], - ["9680", "杸杹杺杻杽枀枂枃枅枆枈枊枌枍枎枏枑枒枓枔枖枙枛枟枠枡枤枦枩枬枮枱枲枴枹", 7, "柂柅", 9, "柕柖柗柛柟柡柣柤柦柧柨柪柫柭柮柲柵", 7, "柾栁栂栃栄栆栍栐栒栔栕栘", 4, "栞栟栠栢", 6, "栫", 6, "栴栵栶栺栻栿桇桋桍桏桒桖", 5], - ["9740", "桜桝桞桟桪桬", 7, "桵桸", 8, "梂梄梇", 7, "梐梑梒梔梕梖梘", 9, "梣梤梥梩梪梫梬梮梱梲梴梶梷梸"], - ["9780", "梹", 6, "棁棃", 5, "棊棌棎棏棐棑棓棔棖棗棙棛", 4, "棡棢棤", 9, "棯棲棳棴棶棷棸棻棽棾棿椀椂椃椄椆", 4, "椌椏椑椓", 11, "椡椢椣椥", 7, "椮椯椱椲椳椵椶椷椸椺椻椼椾楀楁楃", 16, "楕楖楘楙楛楜楟"], - ["9840", "楡楢楤楥楧楨楩楪楬業楯楰楲", 4, "楺楻楽楾楿榁榃榅榊榋榌榎", 5, "榖榗榙榚榝", 9, "榩榪榬榮榯榰榲榳榵榶榸榹榺榼榽"], - ["9880", "榾榿槀槂", 7, "構槍槏槑槒槓槕", 5, "槜槝槞槡", 11, "槮槯槰槱槳", 9, "槾樀", 9, "樋", 11, "標", 5, "樠樢", 5, "権樫樬樭樮樰樲樳樴樶", 6, "樿", 4, "橅橆橈", 7, "橑", 6, "橚"], - ["9940", "橜", 4, "橢橣橤橦", 10, "橲", 6, "橺橻橽橾橿檁檂檃檅", 8, "檏檒", 4, "檘", 7, "檡", 5], - ["9980", "檧檨檪檭", 114, "欥欦欨", 6], - ["9a40", "欯欰欱欳欴欵欶欸欻欼欽欿歀歁歂歄歅歈歊歋歍", 11, "歚", 7, "歨歩歫", 13, "歺歽歾歿殀殅殈"], - ["9a80", "殌殎殏殐殑殔殕殗殘殙殜", 4, "殢", 7, "殫", 7, "殶殸", 6, "毀毃毄毆", 4, "毌毎毐毑毘毚毜", 4, "毢", 7, "毬毭毮毰毱毲毴毶毷毸毺毻毼毾", 6, "氈", 4, "氎氒気氜氝氞氠氣氥氫氬氭氱氳氶氷氹氺氻氼氾氿汃汄汅汈汋", 4, "汑汒汓汖汘"], - ["9b40", "汙汚汢汣汥汦汧汫", 4, "汱汳汵汷汸決汻汼汿沀沄沇沊沋沍沎沑沒沕沖沗沘沚沜沝沞沠沢沨沬沯沰沴沵沶沷沺泀況泂泃泆泇泈泋泍泎泏泑泒泘"], - ["9b80", "泙泚泜泝泟泤泦泧泩泬泭泲泴泹泿洀洂洃洅洆洈洉洊洍洏洐洑洓洔洕洖洘洜洝洟", 5, "洦洨洩洬洭洯洰洴洶洷洸洺洿浀浂浄浉浌浐浕浖浗浘浛浝浟浡浢浤浥浧浨浫浬浭浰浱浲浳浵浶浹浺浻浽", 4, "涃涄涆涇涊涋涍涏涐涒涖", 4, "涜涢涥涬涭涰涱涳涴涶涷涹", 5, "淁淂淃淈淉淊"], - ["9c40", "淍淎淏淐淒淓淔淕淗淚淛淜淟淢淣淥淧淨淩淪淭淯淰淲淴淵淶淸淺淽", 7, "渆渇済渉渋渏渒渓渕渘渙減渜渞渟渢渦渧渨渪測渮渰渱渳渵"], - ["9c80", "渶渷渹渻", 7, "湅", 7, "湏湐湑湒湕湗湙湚湜湝湞湠", 10, "湬湭湯", 14, "満溁溂溄溇溈溊", 4, "溑", 6, "溙溚溛溝溞溠溡溣溤溦溨溩溫溬溭溮溰溳溵溸溹溼溾溿滀滃滄滅滆滈滉滊滌滍滎滐滒滖滘滙滛滜滝滣滧滪", 5], - ["9d40", "滰滱滲滳滵滶滷滸滺", 7, "漃漄漅漇漈漊", 4, "漐漑漒漖", 9, "漡漢漣漥漦漧漨漬漮漰漲漴漵漷", 6, "漿潀潁潂"], - ["9d80", "潃潄潅潈潉潊潌潎", 9, "潙潚潛潝潟潠潡潣潤潥潧", 5, "潯潰潱潳潵潶潷潹潻潽", 6, "澅澆澇澊澋澏", 12, "澝澞澟澠澢", 4, "澨", 10, "澴澵澷澸澺", 5, "濁濃", 5, "濊", 6, "濓", 10, "濟濢濣濤濥"], - ["9e40", "濦", 7, "濰", 32, "瀒", 7, "瀜", 6, "瀤", 6], - ["9e80", "瀫", 9, "瀶瀷瀸瀺", 17, "灍灎灐", 13, "灟", 11, "灮灱灲灳灴灷灹灺灻災炁炂炃炄炆炇炈炋炌炍炏炐炑炓炗炘炚炛炞", 12, "炰炲炴炵炶為炾炿烄烅烆烇烉烋", 12, "烚"], - ["9f40", "烜烝烞烠烡烢烣烥烪烮烰", 6, "烸烺烻烼烾", 10, "焋", 4, "焑焒焔焗焛", 10, "焧", 7, "焲焳焴"], - ["9f80", "焵焷", 13, "煆煇煈煉煋煍煏", 12, "煝煟", 4, "煥煩", 4, "煯煰煱煴煵煶煷煹煻煼煾", 5, "熅", 4, "熋熌熍熎熐熑熒熓熕熖熗熚", 4, "熡", 6, "熩熪熫熭", 5, "熴熶熷熸熺", 8, "燄", 9, "燏", 4], - ["a040", "燖", 9, "燡燢燣燤燦燨", 5, "燯", 9, "燺", 11, "爇", 19], - ["a080", "爛爜爞", 9, "爩爫爭爮爯爲爳爴爺爼爾牀", 6, "牉牊牋牎牏牐牑牓牔牕牗牘牚牜牞牠牣牤牥牨牪牫牬牭牰牱牳牴牶牷牸牻牼牽犂犃犅", 4, "犌犎犐犑犓", 11, "犠", 11, "犮犱犲犳犵犺", 6, "狅狆狇狉狊狋狌狏狑狓狔狕狖狘狚狛"], - ["a1a1", " 、。·ˉˇ¨〃々—~‖…‘’“”〔〕〈", 7, "〖〗【】±×÷∶∧∨∑∏∪∩∈∷√⊥∥∠⌒⊙∫∮≡≌≈∽∝≠≮≯≤≥∞∵∴♂♀°′″℃$¤¢£‰§№☆★○●◎◇◆□■△▲※→←↑↓〓"], - ["a2a1", "ⅰ", 9], - ["a2b1", "⒈", 19, "⑴", 19, "①", 9], - ["a2e5", "㈠", 9], - ["a2f1", "Ⅰ", 11], - ["a3a1", "!"#¥%", 88, " ̄"], - ["a4a1", "ぁ", 82], - ["a5a1", "ァ", 85], - ["a6a1", "Α", 16, "Σ", 6], - ["a6c1", "α", 16, "σ", 6], - ["a6e0", "︵︶︹︺︿﹀︽︾﹁﹂﹃﹄"], - ["a6ee", "︻︼︷︸︱"], - ["a6f4", "︳︴"], - ["a7a1", "А", 5, "ЁЖ", 25], - ["a7d1", "а", 5, "ёж", 25], - ["a840", "ˊˋ˙–―‥‵℅℉↖↗↘↙∕∟∣≒≦≧⊿═", 35, "▁", 6], - ["a880", "█", 7, "▓▔▕▼▽◢◣◤◥☉⊕〒〝〞"], - ["a8a1", "āáǎàēéěèīíǐìōóǒòūúǔùǖǘǚǜüêɑ"], - ["a8bd", "ńň"], - ["a8c0", "ɡ"], - ["a8c5", "ㄅ", 36], - ["a940", "〡", 8, "㊣㎎㎏㎜㎝㎞㎡㏄㏎㏑㏒㏕︰¬¦"], - ["a959", "℡㈱"], - ["a95c", "‐"], - ["a960", "ー゛゜ヽヾ〆ゝゞ﹉", 9, "﹔﹕﹖﹗﹙", 8], - ["a980", "﹢", 4, "﹨﹩﹪﹫"], - ["a996", "〇"], - ["a9a4", "─", 75], - ["aa40", "狜狝狟狢", 5, "狪狫狵狶狹狽狾狿猀猂猄", 5, "猋猌猍猏猐猑猒猔猘猙猚猟猠猣猤猦猧猨猭猯猰猲猳猵猶猺猻猼猽獀", 8], - ["aa80", "獉獊獋獌獎獏獑獓獔獕獖獘", 7, "獡", 10, "獮獰獱"], - ["ab40", "獲", 11, "獿", 4, "玅玆玈玊玌玍玏玐玒玓玔玕玗玘玙玚玜玝玞玠玡玣", 5, "玪玬玭玱玴玵玶玸玹玼玽玾玿珁珃", 4], - ["ab80", "珋珌珎珒", 6, "珚珛珜珝珟珡珢珣珤珦珨珪珫珬珮珯珰珱珳", 4], - ["ac40", "珸", 10, "琄琇琈琋琌琍琎琑", 8, "琜", 5, "琣琤琧琩琫琭琯琱琲琷", 4, "琽琾琿瑀瑂", 11], - ["ac80", "瑎", 6, "瑖瑘瑝瑠", 12, "瑮瑯瑱", 4, "瑸瑹瑺"], - ["ad40", "瑻瑼瑽瑿璂璄璅璆璈璉璊璌璍璏璑", 10, "璝璟", 7, "璪", 15, "璻", 12], - ["ad80", "瓈", 9, "瓓", 8, "瓝瓟瓡瓥瓧", 6, "瓰瓱瓲"], - ["ae40", "瓳瓵瓸", 6, "甀甁甂甃甅", 7, "甎甐甒甔甕甖甗甛甝甞甠", 4, "甦甧甪甮甴甶甹甼甽甿畁畂畃畄畆畇畉畊畍畐畑畒畓畕畖畗畘"], - ["ae80", "畝", 7, "畧畨畩畫", 6, "畳畵當畷畺", 4, "疀疁疂疄疅疇"], - ["af40", "疈疉疊疌疍疎疐疓疕疘疛疜疞疢疦", 4, "疭疶疷疺疻疿痀痁痆痋痌痎痏痐痑痓痗痙痚痜痝痟痠痡痥痩痬痭痮痯痲痳痵痶痷痸痺痻痽痾瘂瘄瘆瘇"], - ["af80", "瘈瘉瘋瘍瘎瘏瘑瘒瘓瘔瘖瘚瘜瘝瘞瘡瘣瘧瘨瘬瘮瘯瘱瘲瘶瘷瘹瘺瘻瘽癁療癄"], - ["b040", "癅", 6, "癎", 5, "癕癗", 4, "癝癟癠癡癢癤", 6, "癬癭癮癰", 7, "癹発發癿皀皁皃皅皉皊皌皍皏皐皒皔皕皗皘皚皛"], - ["b080", "皜", 7, "皥", 8, "皯皰皳皵", 9, "盀盁盃啊阿埃挨哎唉哀皑癌蔼矮艾碍爱隘鞍氨安俺按暗岸胺案肮昂盎凹敖熬翱袄傲奥懊澳芭捌扒叭吧笆八疤巴拔跋靶把耙坝霸罢爸白柏百摆佰败拜稗斑班搬扳般颁板版扮拌伴瓣半办绊邦帮梆榜膀绑棒磅蚌镑傍谤苞胞包褒剥"], - ["b140", "盄盇盉盋盌盓盕盙盚盜盝盞盠", 4, "盦", 7, "盰盳盵盶盷盺盻盽盿眀眂眃眅眆眊県眎", 10, "眛眜眝眞眡眣眤眥眧眪眫"], - ["b180", "眬眮眰", 4, "眹眻眽眾眿睂睄睅睆睈", 7, "睒", 7, "睜薄雹保堡饱宝抱报暴豹鲍爆杯碑悲卑北辈背贝钡倍狈备惫焙被奔苯本笨崩绷甭泵蹦迸逼鼻比鄙笔彼碧蓖蔽毕毙毖币庇痹闭敝弊必辟壁臂避陛鞭边编贬扁便变卞辨辩辫遍标彪膘表鳖憋别瘪彬斌濒滨宾摈兵冰柄丙秉饼炳"], - ["b240", "睝睞睟睠睤睧睩睪睭", 11, "睺睻睼瞁瞂瞃瞆", 5, "瞏瞐瞓", 11, "瞡瞣瞤瞦瞨瞫瞭瞮瞯瞱瞲瞴瞶", 4], - ["b280", "瞼瞾矀", 12, "矎", 8, "矘矙矚矝", 4, "矤病并玻菠播拨钵波博勃搏铂箔伯帛舶脖膊渤泊驳捕卜哺补埠不布步簿部怖擦猜裁材才财睬踩采彩菜蔡餐参蚕残惭惨灿苍舱仓沧藏操糙槽曹草厕策侧册测层蹭插叉茬茶查碴搽察岔差诧拆柴豺搀掺蝉馋谗缠铲产阐颤昌猖"], - ["b340", "矦矨矪矯矰矱矲矴矵矷矹矺矻矼砃", 5, "砊砋砎砏砐砓砕砙砛砞砠砡砢砤砨砪砫砮砯砱砲砳砵砶砽砿硁硂硃硄硆硈硉硊硋硍硏硑硓硔硘硙硚"], - ["b380", "硛硜硞", 11, "硯", 7, "硸硹硺硻硽", 6, "场尝常长偿肠厂敞畅唱倡超抄钞朝嘲潮巢吵炒车扯撤掣彻澈郴臣辰尘晨忱沉陈趁衬撑称城橙成呈乘程惩澄诚承逞骋秤吃痴持匙池迟弛驰耻齿侈尺赤翅斥炽充冲虫崇宠抽酬畴踌稠愁筹仇绸瞅丑臭初出橱厨躇锄雏滁除楚"], - ["b440", "碄碅碆碈碊碋碏碐碒碔碕碖碙碝碞碠碢碤碦碨", 7, "碵碶碷碸確碻碼碽碿磀磂磃磄磆磇磈磌磍磎磏磑磒磓磖磗磘磚", 9], - ["b480", "磤磥磦磧磩磪磫磭", 4, "磳磵磶磸磹磻", 5, "礂礃礄礆", 6, "础储矗搐触处揣川穿椽传船喘串疮窗幢床闯创吹炊捶锤垂春椿醇唇淳纯蠢戳绰疵茨磁雌辞慈瓷词此刺赐次聪葱囱匆从丛凑粗醋簇促蹿篡窜摧崔催脆瘁粹淬翠村存寸磋撮搓措挫错搭达答瘩打大呆歹傣戴带殆代贷袋待逮"], - ["b540", "礍", 5, "礔", 9, "礟", 4, "礥", 14, "礵", 4, "礽礿祂祃祄祅祇祊", 8, "祔祕祘祙祡祣"], - ["b580", "祤祦祩祪祫祬祮祰", 6, "祹祻", 4, "禂禃禆禇禈禉禋禌禍禎禐禑禒怠耽担丹单郸掸胆旦氮但惮淡诞弹蛋当挡党荡档刀捣蹈倒岛祷导到稻悼道盗德得的蹬灯登等瞪凳邓堤低滴迪敌笛狄涤翟嫡抵底地蒂第帝弟递缔颠掂滇碘点典靛垫电佃甸店惦奠淀殿碉叼雕凋刁掉吊钓调跌爹碟蝶迭谍叠"], - ["b640", "禓", 6, "禛", 11, "禨", 10, "禴", 4, "禼禿秂秄秅秇秈秊秌秎秏秐秓秔秖秗秙", 5, "秠秡秢秥秨秪"], - ["b680", "秬秮秱", 6, "秹秺秼秾秿稁稄稅稇稈稉稊稌稏", 4, "稕稖稘稙稛稜丁盯叮钉顶鼎锭定订丢东冬董懂动栋侗恫冻洞兜抖斗陡豆逗痘都督毒犊独读堵睹赌杜镀肚度渡妒端短锻段断缎堆兑队对墩吨蹲敦顿囤钝盾遁掇哆多夺垛躲朵跺舵剁惰堕蛾峨鹅俄额讹娥恶厄扼遏鄂饿恩而儿耳尔饵洱二"], - ["b740", "稝稟稡稢稤", 14, "稴稵稶稸稺稾穀", 5, "穇", 9, "穒", 4, "穘", 16], - ["b780", "穩", 6, "穱穲穳穵穻穼穽穾窂窅窇窉窊窋窌窎窏窐窓窔窙窚窛窞窡窢贰发罚筏伐乏阀法珐藩帆番翻樊矾钒繁凡烦反返范贩犯饭泛坊芳方肪房防妨仿访纺放菲非啡飞肥匪诽吠肺废沸费芬酚吩氛分纷坟焚汾粉奋份忿愤粪丰封枫蜂峰锋风疯烽逢冯缝讽奉凤佛否夫敷肤孵扶拂辐幅氟符伏俘服"], - ["b840", "窣窤窧窩窪窫窮", 4, "窴", 10, "竀", 10, "竌", 9, "竗竘竚竛竜竝竡竢竤竧", 5, "竮竰竱竲竳"], - ["b880", "竴", 4, "竻竼竾笀笁笂笅笇笉笌笍笎笐笒笓笖笗笘笚笜笝笟笡笢笣笧笩笭浮涪福袱弗甫抚辅俯釜斧脯腑府腐赴副覆赋复傅付阜父腹负富讣附妇缚咐噶嘎该改概钙盖溉干甘杆柑竿肝赶感秆敢赣冈刚钢缸肛纲岗港杠篙皋高膏羔糕搞镐稿告哥歌搁戈鸽胳疙割革葛格蛤阁隔铬个各给根跟耕更庚羹"], - ["b940", "笯笰笲笴笵笶笷笹笻笽笿", 5, "筆筈筊筍筎筓筕筗筙筜筞筟筡筣", 10, "筯筰筳筴筶筸筺筼筽筿箁箂箃箄箆", 6, "箎箏"], - ["b980", "箑箒箓箖箘箙箚箛箞箟箠箣箤箥箮箯箰箲箳箵箶箷箹", 7, "篂篃範埂耿梗工攻功恭龚供躬公宫弓巩汞拱贡共钩勾沟苟狗垢构购够辜菇咕箍估沽孤姑鼓古蛊骨谷股故顾固雇刮瓜剐寡挂褂乖拐怪棺关官冠观管馆罐惯灌贯光广逛瑰规圭硅归龟闺轨鬼诡癸桂柜跪贵刽辊滚棍锅郭国果裹过哈"], - ["ba40", "篅篈築篊篋篍篎篏篐篒篔", 4, "篛篜篞篟篠篢篣篤篧篨篩篫篬篭篯篰篲", 4, "篸篹篺篻篽篿", 7, "簈簉簊簍簎簐", 5, "簗簘簙"], - ["ba80", "簚", 4, "簠", 5, "簨簩簫", 12, "簹", 5, "籂骸孩海氦亥害骇酣憨邯韩含涵寒函喊罕翰撼捍旱憾悍焊汗汉夯杭航壕嚎豪毫郝好耗号浩呵喝荷菏核禾和何合盒貉阂河涸赫褐鹤贺嘿黑痕很狠恨哼亨横衡恒轰哄烘虹鸿洪宏弘红喉侯猴吼厚候后呼乎忽瑚壶葫胡蝴狐糊湖"], - ["bb40", "籃", 9, "籎", 36, "籵", 5, "籾", 9], - ["bb80", "粈粊", 6, "粓粔粖粙粚粛粠粡粣粦粧粨粩粫粬粭粯粰粴", 4, "粺粻弧虎唬护互沪户花哗华猾滑画划化话槐徊怀淮坏欢环桓还缓换患唤痪豢焕涣宦幻荒慌黄磺蝗簧皇凰惶煌晃幌恍谎灰挥辉徽恢蛔回毁悔慧卉惠晦贿秽会烩汇讳诲绘荤昏婚魂浑混豁活伙火获或惑霍货祸击圾基机畸稽积箕"], - ["bc40", "粿糀糂糃糄糆糉糋糎", 6, "糘糚糛糝糞糡", 6, "糩", 5, "糰", 7, "糹糺糼", 13, "紋", 5], - ["bc80", "紑", 14, "紡紣紤紥紦紨紩紪紬紭紮細", 6, "肌饥迹激讥鸡姬绩缉吉极棘辑籍集及急疾汲即嫉级挤几脊己蓟技冀季伎祭剂悸济寄寂计记既忌际妓继纪嘉枷夹佳家加荚颊贾甲钾假稼价架驾嫁歼监坚尖笺间煎兼肩艰奸缄茧检柬碱硷拣捡简俭剪减荐槛鉴践贱见键箭件"], - ["bd40", "紷", 54, "絯", 7], - ["bd80", "絸", 32, "健舰剑饯渐溅涧建僵姜将浆江疆蒋桨奖讲匠酱降蕉椒礁焦胶交郊浇骄娇嚼搅铰矫侥脚狡角饺缴绞剿教酵轿较叫窖揭接皆秸街阶截劫节桔杰捷睫竭洁结解姐戒藉芥界借介疥诫届巾筋斤金今津襟紧锦仅谨进靳晋禁近烬浸"], - ["be40", "継", 12, "綧", 6, "綯", 42], - ["be80", "線", 32, "尽劲荆兢茎睛晶鲸京惊精粳经井警景颈静境敬镜径痉靖竟竞净炯窘揪究纠玖韭久灸九酒厩救旧臼舅咎就疚鞠拘狙疽居驹菊局咀矩举沮聚拒据巨具距踞锯俱句惧炬剧捐鹃娟倦眷卷绢撅攫抉掘倔爵觉决诀绝均菌钧军君峻"], - ["bf40", "緻", 62], - ["bf80", "縺縼", 4, "繂", 4, "繈", 21, "俊竣浚郡骏喀咖卡咯开揩楷凯慨刊堪勘坎砍看康慷糠扛抗亢炕考拷烤靠坷苛柯棵磕颗科壳咳可渴克刻客课肯啃垦恳坑吭空恐孔控抠口扣寇枯哭窟苦酷库裤夸垮挎跨胯块筷侩快宽款匡筐狂框矿眶旷况亏盔岿窥葵奎魁傀"], - ["c040", "繞", 35, "纃", 23, "纜纝纞"], - ["c080", "纮纴纻纼绖绤绬绹缊缐缞缷缹缻", 6, "罃罆", 9, "罒罓馈愧溃坤昆捆困括扩廓阔垃拉喇蜡腊辣啦莱来赖蓝婪栏拦篮阑兰澜谰揽览懒缆烂滥琅榔狼廊郎朗浪捞劳牢老佬姥酪烙涝勒乐雷镭蕾磊累儡垒擂肋类泪棱楞冷厘梨犁黎篱狸离漓理李里鲤礼莉荔吏栗丽厉励砾历利傈例俐"], - ["c140", "罖罙罛罜罝罞罠罣", 4, "罫罬罭罯罰罳罵罶罷罸罺罻罼罽罿羀羂", 7, "羋羍羏", 4, "羕", 4, "羛羜羠羢羣羥羦羨", 6, "羱"], - ["c180", "羳", 4, "羺羻羾翀翂翃翄翆翇翈翉翋翍翏", 4, "翖翗翙", 5, "翢翣痢立粒沥隶力璃哩俩联莲连镰廉怜涟帘敛脸链恋炼练粮凉梁粱良两辆量晾亮谅撩聊僚疗燎寥辽潦了撂镣廖料列裂烈劣猎琳林磷霖临邻鳞淋凛赁吝拎玲菱零龄铃伶羚凌灵陵岭领另令溜琉榴硫馏留刘瘤流柳六龙聋咙笼窿"], - ["c240", "翤翧翨翪翫翬翭翯翲翴", 6, "翽翾翿耂耇耈耉耊耎耏耑耓耚耛耝耞耟耡耣耤耫", 5, "耲耴耹耺耼耾聀聁聄聅聇聈聉聎聏聐聑聓聕聖聗"], - ["c280", "聙聛", 13, "聫", 5, "聲", 11, "隆垄拢陇楼娄搂篓漏陋芦卢颅庐炉掳卤虏鲁麓碌露路赂鹿潞禄录陆戮驴吕铝侣旅履屡缕虑氯律率滤绿峦挛孪滦卵乱掠略抡轮伦仑沦纶论萝螺罗逻锣箩骡裸落洛骆络妈麻玛码蚂马骂嘛吗埋买麦卖迈脉瞒馒蛮满蔓曼慢漫"], - ["c340", "聾肁肂肅肈肊肍", 5, "肔肕肗肙肞肣肦肧肨肬肰肳肵肶肸肹肻胅胇", 4, "胏", 6, "胘胟胠胢胣胦胮胵胷胹胻胾胿脀脁脃脄脅脇脈脋"], - ["c380", "脌脕脗脙脛脜脝脟", 12, "脭脮脰脳脴脵脷脹", 4, "脿谩芒茫盲氓忙莽猫茅锚毛矛铆卯茂冒帽貌贸么玫枚梅酶霉煤没眉媒镁每美昧寐妹媚门闷们萌蒙檬盟锰猛梦孟眯醚靡糜迷谜弥米秘觅泌蜜密幂棉眠绵冕免勉娩缅面苗描瞄藐秒渺庙妙蔑灭民抿皿敏悯闽明螟鸣铭名命谬摸"], - ["c440", "腀", 5, "腇腉腍腎腏腒腖腗腘腛", 4, "腡腢腣腤腦腨腪腫腬腯腲腳腵腶腷腸膁膃", 4, "膉膋膌膍膎膐膒", 5, "膙膚膞", 4, "膤膥"], - ["c480", "膧膩膫", 7, "膴", 5, "膼膽膾膿臄臅臇臈臉臋臍", 6, "摹蘑模膜磨摩魔抹末莫墨默沫漠寞陌谋牟某拇牡亩姆母墓暮幕募慕木目睦牧穆拿哪呐钠那娜纳氖乃奶耐奈南男难囊挠脑恼闹淖呢馁内嫩能妮霓倪泥尼拟你匿腻逆溺蔫拈年碾撵捻念娘酿鸟尿捏聂孽啮镊镍涅您柠狞凝宁"], - ["c540", "臔", 14, "臤臥臦臨臩臫臮", 4, "臵", 5, "臽臿舃與", 4, "舎舏舑舓舕", 5, "舝舠舤舥舦舧舩舮舲舺舼舽舿"], - ["c580", "艀艁艂艃艅艆艈艊艌艍艎艐", 7, "艙艛艜艝艞艠", 7, "艩拧泞牛扭钮纽脓浓农弄奴努怒女暖虐疟挪懦糯诺哦欧鸥殴藕呕偶沤啪趴爬帕怕琶拍排牌徘湃派攀潘盘磐盼畔判叛乓庞旁耪胖抛咆刨炮袍跑泡呸胚培裴赔陪配佩沛喷盆砰抨烹澎彭蓬棚硼篷膨朋鹏捧碰坯砒霹批披劈琵毗"], - ["c640", "艪艫艬艭艱艵艶艷艸艻艼芀芁芃芅芆芇芉芌芐芓芔芕芖芚芛芞芠芢芣芧芲芵芶芺芻芼芿苀苂苃苅苆苉苐苖苙苚苝苢苧苨苩苪苬苭苮苰苲苳苵苶苸"], - ["c680", "苺苼", 4, "茊茋茍茐茒茓茖茘茙茝", 9, "茩茪茮茰茲茷茻茽啤脾疲皮匹痞僻屁譬篇偏片骗飘漂瓢票撇瞥拼频贫品聘乒坪苹萍平凭瓶评屏坡泼颇婆破魄迫粕剖扑铺仆莆葡菩蒲埔朴圃普浦谱曝瀑期欺栖戚妻七凄漆柒沏其棋奇歧畦崎脐齐旗祈祁骑起岂乞企启契砌器气迄弃汽泣讫掐"], - ["c740", "茾茿荁荂荄荅荈荊", 4, "荓荕", 4, "荝荢荰", 6, "荹荺荾", 6, "莇莈莊莋莌莍莏莐莑莔莕莖莗莙莚莝莟莡", 6, "莬莭莮"], - ["c780", "莯莵莻莾莿菂菃菄菆菈菉菋菍菎菐菑菒菓菕菗菙菚菛菞菢菣菤菦菧菨菫菬菭恰洽牵扦钎铅千迁签仟谦乾黔钱钳前潜遣浅谴堑嵌欠歉枪呛腔羌墙蔷强抢橇锹敲悄桥瞧乔侨巧鞘撬翘峭俏窍切茄且怯窃钦侵亲秦琴勤芹擒禽寝沁青轻氢倾卿清擎晴氰情顷请庆琼穷秋丘邱球求囚酋泅趋区蛆曲躯屈驱渠"], - ["c840", "菮華菳", 4, "菺菻菼菾菿萀萂萅萇萈萉萊萐萒", 5, "萙萚萛萞", 5, "萩", 7, "萲", 5, "萹萺萻萾", 7, "葇葈葉"], - ["c880", "葊", 6, "葒", 4, "葘葝葞葟葠葢葤", 4, "葪葮葯葰葲葴葷葹葻葼取娶龋趣去圈颧权醛泉全痊拳犬券劝缺炔瘸却鹊榷确雀裙群然燃冉染瓤壤攘嚷让饶扰绕惹热壬仁人忍韧任认刃妊纫扔仍日戎茸蓉荣融熔溶容绒冗揉柔肉茹蠕儒孺如辱乳汝入褥软阮蕊瑞锐闰润若弱撒洒萨腮鳃塞赛三叁"], - ["c940", "葽", 4, "蒃蒄蒅蒆蒊蒍蒏", 7, "蒘蒚蒛蒝蒞蒟蒠蒢", 12, "蒰蒱蒳蒵蒶蒷蒻蒼蒾蓀蓂蓃蓅蓆蓇蓈蓋蓌蓎蓏蓒蓔蓕蓗"], - ["c980", "蓘", 4, "蓞蓡蓢蓤蓧", 4, "蓭蓮蓯蓱", 10, "蓽蓾蔀蔁蔂伞散桑嗓丧搔骚扫嫂瑟色涩森僧莎砂杀刹沙纱傻啥煞筛晒珊苫杉山删煽衫闪陕擅赡膳善汕扇缮墒伤商赏晌上尚裳梢捎稍烧芍勺韶少哨邵绍奢赊蛇舌舍赦摄射慑涉社设砷申呻伸身深娠绅神沈审婶甚肾慎渗声生甥牲升绳"], - ["ca40", "蔃", 8, "蔍蔎蔏蔐蔒蔔蔕蔖蔘蔙蔛蔜蔝蔞蔠蔢", 8, "蔭", 9, "蔾", 4, "蕄蕅蕆蕇蕋", 10], - ["ca80", "蕗蕘蕚蕛蕜蕝蕟", 4, "蕥蕦蕧蕩", 8, "蕳蕵蕶蕷蕸蕼蕽蕿薀薁省盛剩胜圣师失狮施湿诗尸虱十石拾时什食蚀实识史矢使屎驶始式示士世柿事拭誓逝势是嗜噬适仕侍释饰氏市恃室视试收手首守寿授售受瘦兽蔬枢梳殊抒输叔舒淑疏书赎孰熟薯暑曙署蜀黍鼠属术述树束戍竖墅庶数漱"], - ["cb40", "薂薃薆薈", 6, "薐", 10, "薝", 6, "薥薦薧薩薫薬薭薱", 5, "薸薺", 6, "藂", 6, "藊", 4, "藑藒"], - ["cb80", "藔藖", 5, "藝", 6, "藥藦藧藨藪", 14, "恕刷耍摔衰甩帅栓拴霜双爽谁水睡税吮瞬顺舜说硕朔烁斯撕嘶思私司丝死肆寺嗣四伺似饲巳松耸怂颂送宋讼诵搜艘擞嗽苏酥俗素速粟僳塑溯宿诉肃酸蒜算虽隋随绥髓碎岁穗遂隧祟孙损笋蓑梭唆缩琐索锁所塌他它她塔"], - ["cc40", "藹藺藼藽藾蘀", 4, "蘆", 10, "蘒蘓蘔蘕蘗", 15, "蘨蘪", 13, "蘹蘺蘻蘽蘾蘿虀"], - ["cc80", "虁", 11, "虒虓處", 4, "虛虜虝號虠虡虣", 7, "獭挞蹋踏胎苔抬台泰酞太态汰坍摊贪瘫滩坛檀痰潭谭谈坦毯袒碳探叹炭汤塘搪堂棠膛唐糖倘躺淌趟烫掏涛滔绦萄桃逃淘陶讨套特藤腾疼誊梯剔踢锑提题蹄啼体替嚏惕涕剃屉天添填田甜恬舔腆挑条迢眺跳贴铁帖厅听烃"], - ["cd40", "虭虯虰虲", 6, "蚃", 6, "蚎", 4, "蚔蚖", 5, "蚞", 4, "蚥蚦蚫蚭蚮蚲蚳蚷蚸蚹蚻", 4, "蛁蛂蛃蛅蛈蛌蛍蛒蛓蛕蛖蛗蛚蛜"], - ["cd80", "蛝蛠蛡蛢蛣蛥蛦蛧蛨蛪蛫蛬蛯蛵蛶蛷蛺蛻蛼蛽蛿蜁蜄蜅蜆蜋蜌蜎蜏蜐蜑蜔蜖汀廷停亭庭挺艇通桐酮瞳同铜彤童桶捅筒统痛偷投头透凸秃突图徒途涂屠土吐兔湍团推颓腿蜕褪退吞屯臀拖托脱鸵陀驮驼椭妥拓唾挖哇蛙洼娃瓦袜歪外豌弯湾玩顽丸烷完碗挽晚皖惋宛婉万腕汪王亡枉网往旺望忘妄威"], - ["ce40", "蜙蜛蜝蜟蜠蜤蜦蜧蜨蜪蜫蜬蜭蜯蜰蜲蜳蜵蜶蜸蜹蜺蜼蜽蝀", 6, "蝊蝋蝍蝏蝐蝑蝒蝔蝕蝖蝘蝚", 5, "蝡蝢蝦", 7, "蝯蝱蝲蝳蝵"], - ["ce80", "蝷蝸蝹蝺蝿螀螁螄螆螇螉螊螌螎", 4, "螔螕螖螘", 6, "螠", 4, "巍微危韦违桅围唯惟为潍维苇萎委伟伪尾纬未蔚味畏胃喂魏位渭谓尉慰卫瘟温蚊文闻纹吻稳紊问嗡翁瓮挝蜗涡窝我斡卧握沃巫呜钨乌污诬屋无芜梧吾吴毋武五捂午舞伍侮坞戊雾晤物勿务悟误昔熙析西硒矽晰嘻吸锡牺"], - ["cf40", "螥螦螧螩螪螮螰螱螲螴螶螷螸螹螻螼螾螿蟁", 4, "蟇蟈蟉蟌", 4, "蟔", 6, "蟜蟝蟞蟟蟡蟢蟣蟤蟦蟧蟨蟩蟫蟬蟭蟯", 9], - ["cf80", "蟺蟻蟼蟽蟿蠀蠁蠂蠄", 5, "蠋", 7, "蠔蠗蠘蠙蠚蠜", 4, "蠣稀息希悉膝夕惜熄烯溪汐犀檄袭席习媳喜铣洗系隙戏细瞎虾匣霞辖暇峡侠狭下厦夏吓掀锨先仙鲜纤咸贤衔舷闲涎弦嫌显险现献县腺馅羡宪陷限线相厢镶香箱襄湘乡翔祥详想响享项巷橡像向象萧硝霄削哮嚣销消宵淆晓"], - ["d040", "蠤", 13, "蠳", 5, "蠺蠻蠽蠾蠿衁衂衃衆", 5, "衎", 5, "衕衖衘衚", 6, "衦衧衪衭衯衱衳衴衵衶衸衹衺"], - ["d080", "衻衼袀袃袆袇袉袊袌袎袏袐袑袓袔袕袗", 4, "袝", 4, "袣袥", 5, "小孝校肖啸笑效楔些歇蝎鞋协挟携邪斜胁谐写械卸蟹懈泄泻谢屑薪芯锌欣辛新忻心信衅星腥猩惺兴刑型形邢行醒幸杏性姓兄凶胸匈汹雄熊休修羞朽嗅锈秀袖绣墟戌需虚嘘须徐许蓄酗叙旭序畜恤絮婿绪续轩喧宣悬旋玄"], - ["d140", "袬袮袯袰袲", 4, "袸袹袺袻袽袾袿裀裃裄裇裈裊裋裌裍裏裐裑裓裖裗裚", 4, "裠裡裦裧裩", 6, "裲裵裶裷裺裻製裿褀褁褃", 5], - ["d180", "褉褋", 4, "褑褔", 4, "褜", 4, "褢褣褤褦褧褨褩褬褭褮褯褱褲褳褵褷选癣眩绚靴薛学穴雪血勋熏循旬询寻驯巡殉汛训讯逊迅压押鸦鸭呀丫芽牙蚜崖衙涯雅哑亚讶焉咽阉烟淹盐严研蜒岩延言颜阎炎沿奄掩眼衍演艳堰燕厌砚雁唁彦焰宴谚验殃央鸯秧杨扬佯疡羊洋阳氧仰痒养样漾邀腰妖瑶"], - ["d240", "褸", 8, "襂襃襅", 24, "襠", 5, "襧", 19, "襼"], - ["d280", "襽襾覀覂覄覅覇", 26, "摇尧遥窑谣姚咬舀药要耀椰噎耶爷野冶也页掖业叶曳腋夜液一壹医揖铱依伊衣颐夷遗移仪胰疑沂宜姨彝椅蚁倚已乙矣以艺抑易邑屹亿役臆逸肄疫亦裔意毅忆义益溢诣议谊译异翼翌绎茵荫因殷音阴姻吟银淫寅饮尹引隐"], - ["d340", "覢", 30, "觃觍觓觔觕觗觘觙觛觝觟觠觡觢觤觧觨觩觪觬觭觮觰觱觲觴", 6], - ["d380", "觻", 4, "訁", 5, "計", 21, "印英樱婴鹰应缨莹萤营荧蝇迎赢盈影颖硬映哟拥佣臃痈庸雍踊蛹咏泳涌永恿勇用幽优悠忧尤由邮铀犹油游酉有友右佑釉诱又幼迂淤于盂榆虞愚舆余俞逾鱼愉渝渔隅予娱雨与屿禹宇语羽玉域芋郁吁遇喻峪御愈欲狱育誉"], - ["d440", "訞", 31, "訿", 8, "詉", 21], - ["d480", "詟", 25, "詺", 6, "浴寓裕预豫驭鸳渊冤元垣袁原援辕园员圆猿源缘远苑愿怨院曰约越跃钥岳粤月悦阅耘云郧匀陨允运蕴酝晕韵孕匝砸杂栽哉灾宰载再在咱攒暂赞赃脏葬遭糟凿藻枣早澡蚤躁噪造皂灶燥责择则泽贼怎增憎曾赠扎喳渣札轧"], - ["d540", "誁", 7, "誋", 7, "誔", 46], - ["d580", "諃", 32, "铡闸眨栅榨咋乍炸诈摘斋宅窄债寨瞻毡詹粘沾盏斩辗崭展蘸栈占战站湛绽樟章彰漳张掌涨杖丈帐账仗胀瘴障招昭找沼赵照罩兆肇召遮折哲蛰辙者锗蔗这浙珍斟真甄砧臻贞针侦枕疹诊震振镇阵蒸挣睁征狰争怔整拯正政"], - ["d640", "諤", 34, "謈", 27], - ["d680", "謤謥謧", 30, "帧症郑证芝枝支吱蜘知肢脂汁之织职直植殖执值侄址指止趾只旨纸志挚掷至致置帜峙制智秩稚质炙痔滞治窒中盅忠钟衷终种肿重仲众舟周州洲诌粥轴肘帚咒皱宙昼骤珠株蛛朱猪诸诛逐竹烛煮拄瞩嘱主著柱助蛀贮铸筑"], - ["d740", "譆", 31, "譧", 4, "譭", 25], - ["d780", "讇", 24, "讬讱讻诇诐诪谉谞住注祝驻抓爪拽专砖转撰赚篆桩庄装妆撞壮状椎锥追赘坠缀谆准捉拙卓桌琢茁酌啄着灼浊兹咨资姿滋淄孜紫仔籽滓子自渍字鬃棕踪宗综总纵邹走奏揍租足卒族祖诅阻组钻纂嘴醉最罪尊遵昨左佐柞做作坐座"], - ["d840", "谸", 8, "豂豃豄豅豈豊豋豍", 7, "豖豗豘豙豛", 5, "豣", 6, "豬", 6, "豴豵豶豷豻", 6, "貃貄貆貇"], - ["d880", "貈貋貍", 6, "貕貖貗貙", 20, "亍丌兀丐廿卅丕亘丞鬲孬噩丨禺丿匕乇夭爻卮氐囟胤馗毓睾鼗丶亟鼐乜乩亓芈孛啬嘏仄厍厝厣厥厮靥赝匚叵匦匮匾赜卦卣刂刈刎刭刳刿剀剌剞剡剜蒯剽劂劁劐劓冂罔亻仃仉仂仨仡仫仞伛仳伢佤仵伥伧伉伫佞佧攸佚佝"], - ["d940", "貮", 62], - ["d980", "賭", 32, "佟佗伲伽佶佴侑侉侃侏佾佻侪佼侬侔俦俨俪俅俚俣俜俑俟俸倩偌俳倬倏倮倭俾倜倌倥倨偾偃偕偈偎偬偻傥傧傩傺僖儆僭僬僦僮儇儋仝氽佘佥俎龠汆籴兮巽黉馘冁夔勹匍訇匐凫夙兕亠兖亳衮袤亵脔裒禀嬴蠃羸冫冱冽冼"], - ["da40", "贎", 14, "贠赑赒赗赟赥赨赩赪赬赮赯赱赲赸", 8, "趂趃趆趇趈趉趌", 4, "趒趓趕", 9, "趠趡"], - ["da80", "趢趤", 12, "趲趶趷趹趻趽跀跁跂跅跇跈跉跊跍跐跒跓跔凇冖冢冥讠讦讧讪讴讵讷诂诃诋诏诎诒诓诔诖诘诙诜诟诠诤诨诩诮诰诳诶诹诼诿谀谂谄谇谌谏谑谒谔谕谖谙谛谘谝谟谠谡谥谧谪谫谮谯谲谳谵谶卩卺阝阢阡阱阪阽阼陂陉陔陟陧陬陲陴隈隍隗隰邗邛邝邙邬邡邴邳邶邺"], - ["db40", "跕跘跙跜跠跡跢跥跦跧跩跭跮跰跱跲跴跶跼跾", 6, "踆踇踈踋踍踎踐踑踒踓踕", 7, "踠踡踤", 4, "踫踭踰踲踳踴踶踷踸踻踼踾"], - ["db80", "踿蹃蹅蹆蹌", 4, "蹓", 5, "蹚", 11, "蹧蹨蹪蹫蹮蹱邸邰郏郅邾郐郄郇郓郦郢郜郗郛郫郯郾鄄鄢鄞鄣鄱鄯鄹酃酆刍奂劢劬劭劾哿勐勖勰叟燮矍廴凵凼鬯厶弁畚巯坌垩垡塾墼壅壑圩圬圪圳圹圮圯坜圻坂坩垅坫垆坼坻坨坭坶坳垭垤垌垲埏垧垴垓垠埕埘埚埙埒垸埴埯埸埤埝"], - ["dc40", "蹳蹵蹷", 4, "蹽蹾躀躂躃躄躆躈", 6, "躑躒躓躕", 6, "躝躟", 11, "躭躮躰躱躳", 6, "躻", 7], - ["dc80", "軃", 10, "軏", 21, "堋堍埽埭堀堞堙塄堠塥塬墁墉墚墀馨鼙懿艹艽艿芏芊芨芄芎芑芗芙芫芸芾芰苈苊苣芘芷芮苋苌苁芩芴芡芪芟苄苎芤苡茉苷苤茏茇苜苴苒苘茌苻苓茑茚茆茔茕苠苕茜荑荛荜茈莒茼茴茱莛荞茯荏荇荃荟荀茗荠茭茺茳荦荥"], - ["dd40", "軥", 62], - ["dd80", "輤", 32, "荨茛荩荬荪荭荮莰荸莳莴莠莪莓莜莅荼莶莩荽莸荻莘莞莨莺莼菁萁菥菘堇萘萋菝菽菖萜萸萑萆菔菟萏萃菸菹菪菅菀萦菰菡葜葑葚葙葳蒇蒈葺蒉葸萼葆葩葶蒌蒎萱葭蓁蓍蓐蓦蒽蓓蓊蒿蒺蓠蒡蒹蒴蒗蓥蓣蔌甍蔸蓰蔹蔟蔺"], - ["de40", "轅", 32, "轪辀辌辒辝辠辡辢辤辥辦辧辪辬辭辮辯農辳辴辵辷辸辺辻込辿迀迃迆"], - ["de80", "迉", 4, "迏迒迖迗迚迠迡迣迧迬迯迱迲迴迵迶迺迻迼迾迿逇逈逌逎逓逕逘蕖蔻蓿蓼蕙蕈蕨蕤蕞蕺瞢蕃蕲蕻薤薨薇薏蕹薮薜薅薹薷薰藓藁藜藿蘧蘅蘩蘖蘼廾弈夼奁耷奕奚奘匏尢尥尬尴扌扪抟抻拊拚拗拮挢拶挹捋捃掭揶捱捺掎掴捭掬掊捩掮掼揲揸揠揿揄揞揎摒揆掾摅摁搋搛搠搌搦搡摞撄摭撖"], - ["df40", "這逜連逤逥逧", 5, "逰", 4, "逷逹逺逽逿遀遃遅遆遈", 4, "過達違遖遙遚遜", 5, "遤遦遧適遪遫遬遯", 4, "遶", 6, "遾邁"], - ["df80", "還邅邆邇邉邊邌", 4, "邒邔邖邘邚邜邞邟邠邤邥邧邨邩邫邭邲邷邼邽邿郀摺撷撸撙撺擀擐擗擤擢攉攥攮弋忒甙弑卟叱叽叩叨叻吒吖吆呋呒呓呔呖呃吡呗呙吣吲咂咔呷呱呤咚咛咄呶呦咝哐咭哂咴哒咧咦哓哔呲咣哕咻咿哌哙哚哜咩咪咤哝哏哞唛哧唠哽唔哳唢唣唏唑唧唪啧喏喵啉啭啁啕唿啐唼"], - ["e040", "郂郃郆郈郉郋郌郍郒郔郕郖郘郙郚郞郟郠郣郤郥郩郪郬郮郰郱郲郳郵郶郷郹郺郻郼郿鄀鄁鄃鄅", 19, "鄚鄛鄜"], - ["e080", "鄝鄟鄠鄡鄤", 10, "鄰鄲", 6, "鄺", 8, "酄唷啖啵啶啷唳唰啜喋嗒喃喱喹喈喁喟啾嗖喑啻嗟喽喾喔喙嗪嗷嗉嘟嗑嗫嗬嗔嗦嗝嗄嗯嗥嗲嗳嗌嗍嗨嗵嗤辔嘞嘈嘌嘁嘤嘣嗾嘀嘧嘭噘嘹噗嘬噍噢噙噜噌噔嚆噤噱噫噻噼嚅嚓嚯囔囗囝囡囵囫囹囿圄圊圉圜帏帙帔帑帱帻帼"], - ["e140", "酅酇酈酑酓酔酕酖酘酙酛酜酟酠酦酧酨酫酭酳酺酻酼醀", 4, "醆醈醊醎醏醓", 6, "醜", 5, "醤", 5, "醫醬醰醱醲醳醶醷醸醹醻"], - ["e180", "醼", 10, "釈釋釐釒", 9, "針", 8, "帷幄幔幛幞幡岌屺岍岐岖岈岘岙岑岚岜岵岢岽岬岫岱岣峁岷峄峒峤峋峥崂崃崧崦崮崤崞崆崛嵘崾崴崽嵬嵛嵯嵝嵫嵋嵊嵩嵴嶂嶙嶝豳嶷巅彳彷徂徇徉後徕徙徜徨徭徵徼衢彡犭犰犴犷犸狃狁狎狍狒狨狯狩狲狴狷猁狳猃狺"], - ["e240", "釦", 62], - ["e280", "鈥", 32, "狻猗猓猡猊猞猝猕猢猹猥猬猸猱獐獍獗獠獬獯獾舛夥飧夤夂饣饧", 5, "饴饷饽馀馄馇馊馍馐馑馓馔馕庀庑庋庖庥庠庹庵庾庳赓廒廑廛廨廪膺忄忉忖忏怃忮怄忡忤忾怅怆忪忭忸怙怵怦怛怏怍怩怫怊怿怡恸恹恻恺恂"], - ["e340", "鉆", 45, "鉵", 16], - ["e380", "銆", 7, "銏", 24, "恪恽悖悚悭悝悃悒悌悛惬悻悱惝惘惆惚悴愠愦愕愣惴愀愎愫慊慵憬憔憧憷懔懵忝隳闩闫闱闳闵闶闼闾阃阄阆阈阊阋阌阍阏阒阕阖阗阙阚丬爿戕氵汔汜汊沣沅沐沔沌汨汩汴汶沆沩泐泔沭泷泸泱泗沲泠泖泺泫泮沱泓泯泾"], - ["e440", "銨", 5, "銯", 24, "鋉", 31], - ["e480", "鋩", 32, "洹洧洌浃浈洇洄洙洎洫浍洮洵洚浏浒浔洳涑浯涞涠浞涓涔浜浠浼浣渚淇淅淞渎涿淠渑淦淝淙渖涫渌涮渫湮湎湫溲湟溆湓湔渲渥湄滟溱溘滠漭滢溥溧溽溻溷滗溴滏溏滂溟潢潆潇漤漕滹漯漶潋潴漪漉漩澉澍澌潸潲潼潺濑"], - ["e540", "錊", 51, "錿", 10], - ["e580", "鍊", 31, "鍫濉澧澹澶濂濡濮濞濠濯瀚瀣瀛瀹瀵灏灞宀宄宕宓宥宸甯骞搴寤寮褰寰蹇謇辶迓迕迥迮迤迩迦迳迨逅逄逋逦逑逍逖逡逵逶逭逯遄遑遒遐遨遘遢遛暹遴遽邂邈邃邋彐彗彖彘尻咫屐屙孱屣屦羼弪弩弭艴弼鬻屮妁妃妍妩妪妣"], - ["e640", "鍬", 34, "鎐", 27], - ["e680", "鎬", 29, "鏋鏌鏍妗姊妫妞妤姒妲妯姗妾娅娆姝娈姣姘姹娌娉娲娴娑娣娓婀婧婊婕娼婢婵胬媪媛婷婺媾嫫媲嫒嫔媸嫠嫣嫱嫖嫦嫘嫜嬉嬗嬖嬲嬷孀尕尜孚孥孳孑孓孢驵驷驸驺驿驽骀骁骅骈骊骐骒骓骖骘骛骜骝骟骠骢骣骥骧纟纡纣纥纨纩"], - ["e740", "鏎", 7, "鏗", 54], - ["e780", "鐎", 32, "纭纰纾绀绁绂绉绋绌绐绔绗绛绠绡绨绫绮绯绱绲缍绶绺绻绾缁缂缃缇缈缋缌缏缑缒缗缙缜缛缟缡", 6, "缪缫缬缭缯", 4, "缵幺畿巛甾邕玎玑玮玢玟珏珂珑玷玳珀珉珈珥珙顼琊珩珧珞玺珲琏琪瑛琦琥琨琰琮琬"], - ["e840", "鐯", 14, "鐿", 43, "鑬鑭鑮鑯"], - ["e880", "鑰", 20, "钑钖钘铇铏铓铔铚铦铻锜锠琛琚瑁瑜瑗瑕瑙瑷瑭瑾璜璎璀璁璇璋璞璨璩璐璧瓒璺韪韫韬杌杓杞杈杩枥枇杪杳枘枧杵枨枞枭枋杷杼柰栉柘栊柩枰栌柙枵柚枳柝栀柃枸柢栎柁柽栲栳桠桡桎桢桄桤梃栝桕桦桁桧桀栾桊桉栩梵梏桴桷梓桫棂楮棼椟椠棹"], - ["e940", "锧锳锽镃镈镋镕镚镠镮镴镵長", 7, "門", 42], - ["e980", "閫", 32, "椤棰椋椁楗棣椐楱椹楠楂楝榄楫榀榘楸椴槌榇榈槎榉楦楣楹榛榧榻榫榭槔榱槁槊槟榕槠榍槿樯槭樗樘橥槲橄樾檠橐橛樵檎橹樽樨橘橼檑檐檩檗檫猷獒殁殂殇殄殒殓殍殚殛殡殪轫轭轱轲轳轵轶轸轷轹轺轼轾辁辂辄辇辋"], - ["ea40", "闌", 27, "闬闿阇阓阘阛阞阠阣", 6, "阫阬阭阯阰阷阸阹阺阾陁陃陊陎陏陑陒陓陖陗"], - ["ea80", "陘陙陚陜陝陞陠陣陥陦陫陭", 4, "陳陸", 12, "隇隉隊辍辎辏辘辚軎戋戗戛戟戢戡戥戤戬臧瓯瓴瓿甏甑甓攴旮旯旰昊昙杲昃昕昀炅曷昝昴昱昶昵耆晟晔晁晏晖晡晗晷暄暌暧暝暾曛曜曦曩贲贳贶贻贽赀赅赆赈赉赇赍赕赙觇觊觋觌觎觏觐觑牮犟牝牦牯牾牿犄犋犍犏犒挈挲掰"], - ["eb40", "隌階隑隒隓隕隖隚際隝", 9, "隨", 7, "隱隲隴隵隷隸隺隻隿雂雃雈雊雋雐雑雓雔雖", 9, "雡", 6, "雫"], - ["eb80", "雬雭雮雰雱雲雴雵雸雺電雼雽雿霂霃霅霊霋霌霐霑霒霔霕霗", 4, "霝霟霠搿擘耄毪毳毽毵毹氅氇氆氍氕氘氙氚氡氩氤氪氲攵敕敫牍牒牖爰虢刖肟肜肓肼朊肽肱肫肭肴肷胧胨胩胪胛胂胄胙胍胗朐胝胫胱胴胭脍脎胲胼朕脒豚脶脞脬脘脲腈腌腓腴腙腚腱腠腩腼腽腭腧塍媵膈膂膑滕膣膪臌朦臊膻"], - ["ec40", "霡", 8, "霫霬霮霯霱霳", 4, "霺霻霼霽霿", 18, "靔靕靗靘靚靜靝靟靣靤靦靧靨靪", 7], - ["ec80", "靲靵靷", 4, "靽", 7, "鞆", 4, "鞌鞎鞏鞐鞓鞕鞖鞗鞙", 4, "臁膦欤欷欹歃歆歙飑飒飓飕飙飚殳彀毂觳斐齑斓於旆旄旃旌旎旒旖炀炜炖炝炻烀炷炫炱烨烊焐焓焖焯焱煳煜煨煅煲煊煸煺熘熳熵熨熠燠燔燧燹爝爨灬焘煦熹戾戽扃扈扉礻祀祆祉祛祜祓祚祢祗祠祯祧祺禅禊禚禧禳忑忐"], - ["ed40", "鞞鞟鞡鞢鞤", 6, "鞬鞮鞰鞱鞳鞵", 46], - ["ed80", "韤韥韨韮", 4, "韴韷", 23, "怼恝恚恧恁恙恣悫愆愍慝憩憝懋懑戆肀聿沓泶淼矶矸砀砉砗砘砑斫砭砜砝砹砺砻砟砼砥砬砣砩硎硭硖硗砦硐硇硌硪碛碓碚碇碜碡碣碲碹碥磔磙磉磬磲礅磴礓礤礞礴龛黹黻黼盱眄眍盹眇眈眚眢眙眭眦眵眸睐睑睇睃睚睨"], - ["ee40", "頏", 62], - ["ee80", "顎", 32, "睢睥睿瞍睽瞀瞌瞑瞟瞠瞰瞵瞽町畀畎畋畈畛畲畹疃罘罡罟詈罨罴罱罹羁罾盍盥蠲钅钆钇钋钊钌钍钏钐钔钗钕钚钛钜钣钤钫钪钭钬钯钰钲钴钶", 4, "钼钽钿铄铈", 6, "铐铑铒铕铖铗铙铘铛铞铟铠铢铤铥铧铨铪"], - ["ef40", "顯", 5, "颋颎颒颕颙颣風", 37, "飏飐飔飖飗飛飜飝飠", 4], - ["ef80", "飥飦飩", 30, "铩铫铮铯铳铴铵铷铹铼铽铿锃锂锆锇锉锊锍锎锏锒", 4, "锘锛锝锞锟锢锪锫锩锬锱锲锴锶锷锸锼锾锿镂锵镄镅镆镉镌镎镏镒镓镔镖镗镘镙镛镞镟镝镡镢镤", 8, "镯镱镲镳锺矧矬雉秕秭秣秫稆嵇稃稂稞稔"], - ["f040", "餈", 4, "餎餏餑", 28, "餯", 26], - ["f080", "饊", 9, "饖", 12, "饤饦饳饸饹饻饾馂馃馉稹稷穑黏馥穰皈皎皓皙皤瓞瓠甬鸠鸢鸨", 4, "鸲鸱鸶鸸鸷鸹鸺鸾鹁鹂鹄鹆鹇鹈鹉鹋鹌鹎鹑鹕鹗鹚鹛鹜鹞鹣鹦", 6, "鹱鹭鹳疒疔疖疠疝疬疣疳疴疸痄疱疰痃痂痖痍痣痨痦痤痫痧瘃痱痼痿瘐瘀瘅瘌瘗瘊瘥瘘瘕瘙"], - ["f140", "馌馎馚", 10, "馦馧馩", 47], - ["f180", "駙", 32, "瘛瘼瘢瘠癀瘭瘰瘿瘵癃瘾瘳癍癞癔癜癖癫癯翊竦穸穹窀窆窈窕窦窠窬窨窭窳衤衩衲衽衿袂袢裆袷袼裉裢裎裣裥裱褚裼裨裾裰褡褙褓褛褊褴褫褶襁襦襻疋胥皲皴矜耒耔耖耜耠耢耥耦耧耩耨耱耋耵聃聆聍聒聩聱覃顸颀颃"], - ["f240", "駺", 62], - ["f280", "騹", 32, "颉颌颍颏颔颚颛颞颟颡颢颥颦虍虔虬虮虿虺虼虻蚨蚍蚋蚬蚝蚧蚣蚪蚓蚩蚶蛄蚵蛎蚰蚺蚱蚯蛉蛏蚴蛩蛱蛲蛭蛳蛐蜓蛞蛴蛟蛘蛑蜃蜇蛸蜈蜊蜍蜉蜣蜻蜞蜥蜮蜚蜾蝈蜴蜱蜩蜷蜿螂蜢蝽蝾蝻蝠蝰蝌蝮螋蝓蝣蝼蝤蝙蝥螓螯螨蟒"], - ["f340", "驚", 17, "驲骃骉骍骎骔骕骙骦骩", 6, "骲骳骴骵骹骻骽骾骿髃髄髆", 4, "髍髎髏髐髒體髕髖髗髙髚髛髜"], - ["f380", "髝髞髠髢髣髤髥髧髨髩髪髬髮髰", 8, "髺髼", 6, "鬄鬅鬆蟆螈螅螭螗螃螫蟥螬螵螳蟋蟓螽蟑蟀蟊蟛蟪蟠蟮蠖蠓蟾蠊蠛蠡蠹蠼缶罂罄罅舐竺竽笈笃笄笕笊笫笏筇笸笪笙笮笱笠笥笤笳笾笞筘筚筅筵筌筝筠筮筻筢筲筱箐箦箧箸箬箝箨箅箪箜箢箫箴篑篁篌篝篚篥篦篪簌篾篼簏簖簋"], - ["f440", "鬇鬉", 5, "鬐鬑鬒鬔", 10, "鬠鬡鬢鬤", 10, "鬰鬱鬳", 7, "鬽鬾鬿魀魆魊魋魌魎魐魒魓魕", 5], - ["f480", "魛", 32, "簟簪簦簸籁籀臾舁舂舄臬衄舡舢舣舭舯舨舫舸舻舳舴舾艄艉艋艏艚艟艨衾袅袈裘裟襞羝羟羧羯羰羲籼敉粑粝粜粞粢粲粼粽糁糇糌糍糈糅糗糨艮暨羿翎翕翥翡翦翩翮翳糸絷綦綮繇纛麸麴赳趄趔趑趱赧赭豇豉酊酐酎酏酤"], - ["f540", "魼", 62], - ["f580", "鮻", 32, "酢酡酰酩酯酽酾酲酴酹醌醅醐醍醑醢醣醪醭醮醯醵醴醺豕鹾趸跫踅蹙蹩趵趿趼趺跄跖跗跚跞跎跏跛跆跬跷跸跣跹跻跤踉跽踔踝踟踬踮踣踯踺蹀踹踵踽踱蹉蹁蹂蹑蹒蹊蹰蹶蹼蹯蹴躅躏躔躐躜躞豸貂貊貅貘貔斛觖觞觚觜"], - ["f640", "鯜", 62], - ["f680", "鰛", 32, "觥觫觯訾謦靓雩雳雯霆霁霈霏霎霪霭霰霾龀龃龅", 5, "龌黾鼋鼍隹隼隽雎雒瞿雠銎銮鋈錾鍪鏊鎏鐾鑫鱿鲂鲅鲆鲇鲈稣鲋鲎鲐鲑鲒鲔鲕鲚鲛鲞", 5, "鲥", 4, "鲫鲭鲮鲰", 7, "鲺鲻鲼鲽鳄鳅鳆鳇鳊鳋"], - ["f740", "鰼", 62], - ["f780", "鱻鱽鱾鲀鲃鲄鲉鲊鲌鲏鲓鲖鲗鲘鲙鲝鲪鲬鲯鲹鲾", 4, "鳈鳉鳑鳒鳚鳛鳠鳡鳌", 4, "鳓鳔鳕鳗鳘鳙鳜鳝鳟鳢靼鞅鞑鞒鞔鞯鞫鞣鞲鞴骱骰骷鹘骶骺骼髁髀髅髂髋髌髑魅魃魇魉魈魍魑飨餍餮饕饔髟髡髦髯髫髻髭髹鬈鬏鬓鬟鬣麽麾縻麂麇麈麋麒鏖麝麟黛黜黝黠黟黢黩黧黥黪黯鼢鼬鼯鼹鼷鼽鼾齄"], - ["f840", "鳣", 62], - ["f880", "鴢", 32], - ["f940", "鵃", 62], - ["f980", "鶂", 32], - ["fa40", "鶣", 62], - ["fa80", "鷢", 32], - ["fb40", "鸃", 27, "鸤鸧鸮鸰鸴鸻鸼鹀鹍鹐鹒鹓鹔鹖鹙鹝鹟鹠鹡鹢鹥鹮鹯鹲鹴", 9, "麀"], - ["fb80", "麁麃麄麅麆麉麊麌", 5, "麔", 8, "麞麠", 5, "麧麨麩麪"], - ["fc40", "麫", 8, "麵麶麷麹麺麼麿", 4, "黅黆黇黈黊黋黌黐黒黓黕黖黗黙黚點黡黣黤黦黨黫黬黭黮黰", 8, "黺黽黿", 6], - ["fc80", "鼆", 4, "鼌鼏鼑鼒鼔鼕鼖鼘鼚", 5, "鼡鼣", 8, "鼭鼮鼰鼱"], - ["fd40", "鼲", 4, "鼸鼺鼼鼿", 4, "齅", 10, "齒", 38], - ["fd80", "齹", 5, "龁龂龍", 11, "龜龝龞龡", 4, "郎凉秊裏隣"], - ["fe40", "兀嗀﨎﨏﨑﨓﨔礼﨟蘒﨡﨣﨤﨧﨨﨩"] - ]; -}); - -// node_modules/iconv-lite/encodings/tables/gbk-added.json -var require_gbk_added = __commonJS((exports, module) => { - module.exports = [ - ["a140", "", 62], - ["a180", "", 32], - ["a240", "", 62], - ["a280", "", 32], - ["a2ab", "", 5], - ["a2e3", "€"], - ["a2ef", ""], - ["a2fd", ""], - ["a340", "", 62], - ["a380", "", 31, " "], - ["a440", "", 62], - ["a480", "", 32], - ["a4f4", "", 10], - ["a540", "", 62], - ["a580", "", 32], - ["a5f7", "", 7], - ["a640", "", 62], - ["a680", "", 32], - ["a6b9", "", 7], - ["a6d9", "", 6], - ["a6ec", ""], - ["a6f3", ""], - ["a6f6", "", 8], - ["a740", "", 62], - ["a780", "", 32], - ["a7c2", "", 14], - ["a7f2", "", 12], - ["a896", "", 10], - ["a8bc", ""], - ["a8bf", "ǹ"], - ["a8c1", ""], - ["a8ea", "", 20], - ["a958", ""], - ["a95b", ""], - ["a95d", ""], - ["a989", "〾⿰", 11], - ["a997", "", 12], - ["a9f0", "", 14], - ["aaa1", "", 93], - ["aba1", "", 93], - ["aca1", "", 93], - ["ada1", "", 93], - ["aea1", "", 93], - ["afa1", "", 93], - ["d7fa", "", 4], - ["f8a1", "", 93], - ["f9a1", "", 93], - ["faa1", "", 93], - ["fba1", "", 93], - ["fca1", "", 93], - ["fda1", "", 93], - ["fe50", "⺁⺄㑳㑇⺈⺋㖞㘚㘎⺌⺗㥮㤘㧏㧟㩳㧐㭎㱮㳠⺧⺪䁖䅟⺮䌷⺳⺶⺷䎱䎬⺻䏝䓖䙡䙌"], - ["fe80", "䜣䜩䝼䞍⻊䥇䥺䥽䦂䦃䦅䦆䦟䦛䦷䦶䲣䲟䲠䲡䱷䲢䴓", 6, "䶮", 93] - ]; -}); - -// node_modules/iconv-lite/encodings/tables/gb18030-ranges.json -var require_gb18030_ranges = __commonJS((exports, module) => { - module.exports = { uChars: [128, 165, 169, 178, 184, 216, 226, 235, 238, 244, 248, 251, 253, 258, 276, 284, 300, 325, 329, 334, 364, 463, 465, 467, 469, 471, 473, 475, 477, 506, 594, 610, 712, 716, 730, 930, 938, 962, 970, 1026, 1104, 1106, 8209, 8215, 8218, 8222, 8231, 8241, 8244, 8246, 8252, 8365, 8452, 8454, 8458, 8471, 8482, 8556, 8570, 8596, 8602, 8713, 8720, 8722, 8726, 8731, 8737, 8740, 8742, 8748, 8751, 8760, 8766, 8777, 8781, 8787, 8802, 8808, 8816, 8854, 8858, 8870, 8896, 8979, 9322, 9372, 9548, 9588, 9616, 9622, 9634, 9652, 9662, 9672, 9676, 9680, 9702, 9735, 9738, 9793, 9795, 11906, 11909, 11913, 11917, 11928, 11944, 11947, 11951, 11956, 11960, 11964, 11979, 12284, 12292, 12312, 12319, 12330, 12351, 12436, 12447, 12535, 12543, 12586, 12842, 12850, 12964, 13200, 13215, 13218, 13253, 13263, 13267, 13270, 13384, 13428, 13727, 13839, 13851, 14617, 14703, 14801, 14816, 14964, 15183, 15471, 15585, 16471, 16736, 17208, 17325, 17330, 17374, 17623, 17997, 18018, 18212, 18218, 18301, 18318, 18760, 18811, 18814, 18820, 18823, 18844, 18848, 18872, 19576, 19620, 19738, 19887, 40870, 59244, 59336, 59367, 59413, 59417, 59423, 59431, 59437, 59443, 59452, 59460, 59478, 59493, 63789, 63866, 63894, 63976, 63986, 64016, 64018, 64021, 64025, 64034, 64037, 64042, 65074, 65093, 65107, 65112, 65127, 65132, 65375, 65510, 65536], gbChars: [0, 36, 38, 45, 50, 81, 89, 95, 96, 100, 103, 104, 105, 109, 126, 133, 148, 172, 175, 179, 208, 306, 307, 308, 309, 310, 311, 312, 313, 341, 428, 443, 544, 545, 558, 741, 742, 749, 750, 805, 819, 820, 7922, 7924, 7925, 7927, 7934, 7943, 7944, 7945, 7950, 8062, 8148, 8149, 8152, 8164, 8174, 8236, 8240, 8262, 8264, 8374, 8380, 8381, 8384, 8388, 8390, 8392, 8393, 8394, 8396, 8401, 8406, 8416, 8419, 8424, 8437, 8439, 8445, 8482, 8485, 8496, 8521, 8603, 8936, 8946, 9046, 9050, 9063, 9066, 9076, 9092, 9100, 9108, 9111, 9113, 9131, 9162, 9164, 9218, 9219, 11329, 11331, 11334, 11336, 11346, 11361, 11363, 11366, 11370, 11372, 11375, 11389, 11682, 11686, 11687, 11692, 11694, 11714, 11716, 11723, 11725, 11730, 11736, 11982, 11989, 12102, 12336, 12348, 12350, 12384, 12393, 12395, 12397, 12510, 12553, 12851, 12962, 12973, 13738, 13823, 13919, 13933, 14080, 14298, 14585, 14698, 15583, 15847, 16318, 16434, 16438, 16481, 16729, 17102, 17122, 17315, 17320, 17402, 17418, 17859, 17909, 17911, 17915, 17916, 17936, 17939, 17961, 18664, 18703, 18814, 18962, 19043, 33469, 33470, 33471, 33484, 33485, 33490, 33497, 33501, 33505, 33513, 33520, 33536, 33550, 37845, 37921, 37948, 38029, 38038, 38064, 38065, 38066, 38069, 38075, 38076, 38078, 39108, 39109, 39113, 39114, 39115, 39116, 39265, 39394, 189000] }; -}); - -// node_modules/iconv-lite/encodings/tables/cp949.json -var require_cp949 = __commonJS((exports, module) => { - module.exports = [ - ["0", "\x00", 127], - ["8141", "갂갃갅갆갋", 4, "갘갞갟갡갢갣갥", 6, "갮갲갳갴"], - ["8161", "갵갶갷갺갻갽갾갿걁", 9, "걌걎", 5, "걕"], - ["8181", "걖걗걙걚걛걝", 18, "걲걳걵걶걹걻", 4, "겂겇겈겍겎겏겑겒겓겕", 6, "겞겢", 5, "겫겭겮겱", 6, "겺겾겿곀곂곃곅곆곇곉곊곋곍", 7, "곖곘", 7, "곢곣곥곦곩곫곭곮곲곴곷", 4, "곾곿괁괂괃괅괇", 4, "괎괐괒괓"], - ["8241", "괔괕괖괗괙괚괛괝괞괟괡", 7, "괪괫괮", 5], - ["8261", "괶괷괹괺괻괽", 6, "굆굈굊", 5, "굑굒굓굕굖굗"], - ["8281", "굙", 7, "굢굤", 7, "굮굯굱굲굷굸굹굺굾궀궃", 4, "궊궋궍궎궏궑", 10, "궞", 5, "궥", 17, "궸", 7, "귂귃귅귆귇귉", 6, "귒귔", 7, "귝귞귟귡귢귣귥", 18], - ["8341", "귺귻귽귾긂", 5, "긊긌긎", 5, "긕", 7], - ["8361", "긝", 18, "긲긳긵긶긹긻긼"], - ["8381", "긽긾긿깂깄깇깈깉깋깏깑깒깓깕깗", 4, "깞깢깣깤깦깧깪깫깭깮깯깱", 6, "깺깾", 5, "꺆", 5, "꺍", 46, "꺿껁껂껃껅", 6, "껎껒", 5, "껚껛껝", 8], - ["8441", "껦껧껩껪껬껮", 5, "껵껶껷껹껺껻껽", 8], - ["8461", "꼆꼉꼊꼋꼌꼎꼏꼑", 18], - ["8481", "꼤", 7, "꼮꼯꼱꼳꼵", 6, "꼾꽀꽄꽅꽆꽇꽊", 5, "꽑", 10, "꽞", 5, "꽦", 18, "꽺", 5, "꾁꾂꾃꾅꾆꾇꾉", 6, "꾒꾓꾔꾖", 5, "꾝", 26, "꾺꾻꾽꾾"], - ["8541", "꾿꿁", 5, "꿊꿌꿏", 4, "꿕", 6, "꿝", 4], - ["8561", "꿢", 5, "꿪", 5, "꿲꿳꿵꿶꿷꿹", 6, "뀂뀃"], - ["8581", "뀅", 6, "뀍뀎뀏뀑뀒뀓뀕", 6, "뀞", 9, "뀩", 26, "끆끇끉끋끍끏끐끑끒끖끘끚끛끜끞", 29, "끾끿낁낂낃낅", 6, "낎낐낒", 5, "낛낝낞낣낤"], - ["8641", "낥낦낧낪낰낲낶낷낹낺낻낽", 6, "냆냊", 5, "냒"], - ["8661", "냓냕냖냗냙", 6, "냡냢냣냤냦", 10], - ["8681", "냱", 22, "넊넍넎넏넑넔넕넖넗넚넞", 4, "넦넧넩넪넫넭", 6, "넶넺", 5, "녂녃녅녆녇녉", 6, "녒녓녖녗녙녚녛녝녞녟녡", 22, "녺녻녽녾녿놁놃", 4, "놊놌놎놏놐놑놕놖놗놙놚놛놝"], - ["8741", "놞", 9, "놩", 15], - ["8761", "놹", 18, "뇍뇎뇏뇑뇒뇓뇕"], - ["8781", "뇖", 5, "뇞뇠", 7, "뇪뇫뇭뇮뇯뇱", 7, "뇺뇼뇾", 5, "눆눇눉눊눍", 6, "눖눘눚", 5, "눡", 18, "눵", 6, "눽", 26, "뉙뉚뉛뉝뉞뉟뉡", 6, "뉪", 4], - ["8841", "뉯", 4, "뉶", 5, "뉽", 6, "늆늇늈늊", 4], - ["8861", "늏늒늓늕늖늗늛", 4, "늢늤늧늨늩늫늭늮늯늱늲늳늵늶늷"], - ["8881", "늸", 15, "닊닋닍닎닏닑닓", 4, "닚닜닞닟닠닡닣닧닩닪닰닱닲닶닼닽닾댂댃댅댆댇댉", 6, "댒댖", 5, "댝", 54, "덗덙덚덝덠덡덢덣"], - ["8941", "덦덨덪덬덭덯덲덳덵덶덷덹", 6, "뎂뎆", 5, "뎍"], - ["8961", "뎎뎏뎑뎒뎓뎕", 10, "뎢", 5, "뎩뎪뎫뎭"], - ["8981", "뎮", 21, "돆돇돉돊돍돏돑돒돓돖돘돚돜돞돟돡돢돣돥돦돧돩", 18, "돽", 18, "됑", 6, "됙됚됛됝됞됟됡", 6, "됪됬", 7, "됵", 15], - ["8a41", "둅", 10, "둒둓둕둖둗둙", 6, "둢둤둦"], - ["8a61", "둧", 4, "둭", 18, "뒁뒂"], - ["8a81", "뒃", 4, "뒉", 19, "뒞", 5, "뒥뒦뒧뒩뒪뒫뒭", 7, "뒶뒸뒺", 5, "듁듂듃듅듆듇듉", 6, "듑듒듓듔듖", 5, "듞듟듡듢듥듧", 4, "듮듰듲", 5, "듹", 26, "딖딗딙딚딝"], - ["8b41", "딞", 5, "딦딫", 4, "딲딳딵딶딷딹", 6, "땂땆"], - ["8b61", "땇땈땉땊땎땏땑땒땓땕", 6, "땞땢", 8], - ["8b81", "땫", 52, "떢떣떥떦떧떩떬떭떮떯떲떶", 4, "떾떿뗁뗂뗃뗅", 6, "뗎뗒", 5, "뗙", 18, "뗭", 18], - ["8c41", "똀", 15, "똒똓똕똖똗똙", 4], - ["8c61", "똞", 6, "똦", 5, "똭", 6, "똵", 5], - ["8c81", "똻", 12, "뙉", 26, "뙥뙦뙧뙩", 50, "뚞뚟뚡뚢뚣뚥", 5, "뚭뚮뚯뚰뚲", 16], - ["8d41", "뛃", 16, "뛕", 8], - ["8d61", "뛞", 17, "뛱뛲뛳뛵뛶뛷뛹뛺"], - ["8d81", "뛻", 4, "뜂뜃뜄뜆", 33, "뜪뜫뜭뜮뜱", 6, "뜺뜼", 7, "띅띆띇띉띊띋띍", 6, "띖", 9, "띡띢띣띥띦띧띩", 6, "띲띴띶", 5, "띾띿랁랂랃랅", 6, "랎랓랔랕랚랛랝랞"], - ["8e41", "랟랡", 6, "랪랮", 5, "랶랷랹", 8], - ["8e61", "럂", 4, "럈럊", 19], - ["8e81", "럞", 13, "럮럯럱럲럳럵", 6, "럾렂", 4, "렊렋렍렎렏렑", 6, "렚렜렞", 5, "렦렧렩렪렫렭", 6, "렶렺", 5, "롁롂롃롅", 11, "롒롔", 7, "롞롟롡롢롣롥", 6, "롮롰롲", 5, "롹롺롻롽", 7], - ["8f41", "뢅", 7, "뢎", 17], - ["8f61", "뢠", 7, "뢩", 6, "뢱뢲뢳뢵뢶뢷뢹", 4], - ["8f81", "뢾뢿룂룄룆", 5, "룍룎룏룑룒룓룕", 7, "룞룠룢", 5, "룪룫룭룮룯룱", 6, "룺룼룾", 5, "뤅", 18, "뤙", 6, "뤡", 26, "뤾뤿륁륂륃륅", 6, "륍륎륐륒", 5], - ["9041", "륚륛륝륞륟륡", 6, "륪륬륮", 5, "륶륷륹륺륻륽"], - ["9061", "륾", 5, "릆릈릋릌릏", 15], - ["9081", "릟", 12, "릮릯릱릲릳릵", 6, "릾맀맂", 5, "맊맋맍맓", 4, "맚맜맟맠맢맦맧맩맪맫맭", 6, "맶맻", 4, "먂", 5, "먉", 11, "먖", 33, "먺먻먽먾먿멁멃멄멅멆"], - ["9141", "멇멊멌멏멐멑멒멖멗멙멚멛멝", 6, "멦멪", 5], - ["9161", "멲멳멵멶멷멹", 9, "몆몈몉몊몋몍", 5], - ["9181", "몓", 20, "몪몭몮몯몱몳", 4, "몺몼몾", 5, "뫅뫆뫇뫉", 14, "뫚", 33, "뫽뫾뫿묁묂묃묅", 7, "묎묐묒", 5, "묙묚묛묝묞묟묡", 6], - ["9241", "묨묪묬", 7, "묷묹묺묿", 4, "뭆뭈뭊뭋뭌뭎뭑뭒"], - ["9261", "뭓뭕뭖뭗뭙", 7, "뭢뭤", 7, "뭭", 4], - ["9281", "뭲", 21, "뮉뮊뮋뮍뮎뮏뮑", 18, "뮥뮦뮧뮩뮪뮫뮭", 6, "뮵뮶뮸", 7, "믁믂믃믅믆믇믉", 6, "믑믒믔", 35, "믺믻믽믾밁"], - ["9341", "밃", 4, "밊밎밐밒밓밙밚밠밡밢밣밦밨밪밫밬밮밯밲밳밵"], - ["9361", "밶밷밹", 6, "뱂뱆뱇뱈뱊뱋뱎뱏뱑", 8], - ["9381", "뱚뱛뱜뱞", 37, "벆벇벉벊벍벏", 4, "벖벘벛", 4, "벢벣벥벦벩", 6, "벲벶", 5, "벾벿볁볂볃볅", 7, "볎볒볓볔볖볗볙볚볛볝", 22, "볷볹볺볻볽"], - ["9441", "볾", 5, "봆봈봊", 5, "봑봒봓봕", 8], - ["9461", "봞", 5, "봥", 6, "봭", 12], - ["9481", "봺", 5, "뵁", 6, "뵊뵋뵍뵎뵏뵑", 6, "뵚", 9, "뵥뵦뵧뵩", 22, "붂붃붅붆붋", 4, "붒붔붖붗붘붛붝", 6, "붥", 10, "붱", 6, "붹", 24], - ["9541", "뷒뷓뷖뷗뷙뷚뷛뷝", 11, "뷪", 5, "뷱"], - ["9561", "뷲뷳뷵뷶뷷뷹", 6, "븁븂븄븆", 5, "븎븏븑븒븓"], - ["9581", "븕", 6, "븞븠", 35, "빆빇빉빊빋빍빏", 4, "빖빘빜빝빞빟빢빣빥빦빧빩빫", 4, "빲빶", 4, "빾빿뺁뺂뺃뺅", 6, "뺎뺒", 5, "뺚", 13, "뺩", 14], - ["9641", "뺸", 23, "뻒뻓"], - ["9661", "뻕뻖뻙", 6, "뻡뻢뻦", 5, "뻭", 8], - ["9681", "뻶", 10, "뼂", 5, "뼊", 13, "뼚뼞", 33, "뽂뽃뽅뽆뽇뽉", 6, "뽒뽓뽔뽖", 44], - ["9741", "뾃", 16, "뾕", 8], - ["9761", "뾞", 17, "뾱", 7], - ["9781", "뾹", 11, "뿆", 5, "뿎뿏뿑뿒뿓뿕", 6, "뿝뿞뿠뿢", 89, "쀽쀾쀿"], - ["9841", "쁀", 16, "쁒", 5, "쁙쁚쁛"], - ["9861", "쁝쁞쁟쁡", 6, "쁪", 15], - ["9881", "쁺", 21, "삒삓삕삖삗삙", 6, "삢삤삦", 5, "삮삱삲삷", 4, "삾샂샃샄샆샇샊샋샍샎샏샑", 6, "샚샞", 5, "샦샧샩샪샫샭", 6, "샶샸샺", 5, "섁섂섃섅섆섇섉", 6, "섑섒섓섔섖", 5, "섡섢섥섨섩섪섫섮"], - ["9941", "섲섳섴섵섷섺섻섽섾섿셁", 6, "셊셎", 5, "셖셗"], - ["9961", "셙셚셛셝", 6, "셦셪", 5, "셱셲셳셵셶셷셹셺셻"], - ["9981", "셼", 8, "솆", 5, "솏솑솒솓솕솗", 4, "솞솠솢솣솤솦솧솪솫솭솮솯솱", 11, "솾", 5, "쇅쇆쇇쇉쇊쇋쇍", 6, "쇕쇖쇙", 6, "쇡쇢쇣쇥쇦쇧쇩", 6, "쇲쇴", 7, "쇾쇿숁숂숃숅", 6, "숎숐숒", 5, "숚숛숝숞숡숢숣"], - ["9a41", "숤숥숦숧숪숬숮숰숳숵", 16], - ["9a61", "쉆쉇쉉", 6, "쉒쉓쉕쉖쉗쉙", 6, "쉡쉢쉣쉤쉦"], - ["9a81", "쉧", 4, "쉮쉯쉱쉲쉳쉵", 6, "쉾슀슂", 5, "슊", 5, "슑", 6, "슙슚슜슞", 5, "슦슧슩슪슫슮", 5, "슶슸슺", 33, "싞싟싡싢싥", 5, "싮싰싲싳싴싵싷싺싽싾싿쌁", 6, "쌊쌋쌎쌏"], - ["9b41", "쌐쌑쌒쌖쌗쌙쌚쌛쌝", 6, "쌦쌧쌪", 8], - ["9b61", "쌳", 17, "썆", 7], - ["9b81", "썎", 25, "썪썫썭썮썯썱썳", 4, "썺썻썾", 5, "쎅쎆쎇쎉쎊쎋쎍", 50, "쏁", 22, "쏚"], - ["9c41", "쏛쏝쏞쏡쏣", 4, "쏪쏫쏬쏮", 5, "쏶쏷쏹", 5], - ["9c61", "쏿", 8, "쐉", 6, "쐑", 9], - ["9c81", "쐛", 8, "쐥", 6, "쐭쐮쐯쐱쐲쐳쐵", 6, "쐾", 9, "쑉", 26, "쑦쑧쑩쑪쑫쑭", 6, "쑶쑷쑸쑺", 5, "쒁", 18, "쒕", 6, "쒝", 12], - ["9d41", "쒪", 13, "쒹쒺쒻쒽", 8], - ["9d61", "쓆", 25], - ["9d81", "쓠", 8, "쓪", 5, "쓲쓳쓵쓶쓷쓹쓻쓼쓽쓾씂", 9, "씍씎씏씑씒씓씕", 6, "씝", 10, "씪씫씭씮씯씱", 6, "씺씼씾", 5, "앆앇앋앏앐앑앒앖앚앛앜앟앢앣앥앦앧앩", 6, "앲앶", 5, "앾앿얁얂얃얅얆얈얉얊얋얎얐얒얓얔"], - ["9e41", "얖얙얚얛얝얞얟얡", 7, "얪", 9, "얶"], - ["9e61", "얷얺얿", 4, "엋엍엏엒엓엕엖엗엙", 6, "엢엤엦엧"], - ["9e81", "엨엩엪엫엯엱엲엳엵엸엹엺엻옂옃옄옉옊옋옍옎옏옑", 6, "옚옝", 6, "옦옧옩옪옫옯옱옲옶옸옺옼옽옾옿왂왃왅왆왇왉", 6, "왒왖", 5, "왞왟왡", 10, "왭왮왰왲", 5, "왺왻왽왾왿욁", 6, "욊욌욎", 5, "욖욗욙욚욛욝", 6, "욦"], - ["9f41", "욨욪", 5, "욲욳욵욶욷욻", 4, "웂웄웆", 5, "웎"], - ["9f61", "웏웑웒웓웕", 6, "웞웟웢", 5, "웪웫웭웮웯웱웲"], - ["9f81", "웳", 4, "웺웻웼웾", 5, "윆윇윉윊윋윍", 6, "윖윘윚", 5, "윢윣윥윦윧윩", 6, "윲윴윶윸윹윺윻윾윿읁읂읃읅", 4, "읋읎읐읙읚읛읝읞읟읡", 6, "읩읪읬", 7, "읶읷읹읺읻읿잀잁잂잆잋잌잍잏잒잓잕잙잛", 4, "잢잧", 4, "잮잯잱잲잳잵잶잷"], - ["a041", "잸잹잺잻잾쟂", 5, "쟊쟋쟍쟏쟑", 6, "쟙쟚쟛쟜"], - ["a061", "쟞", 5, "쟥쟦쟧쟩쟪쟫쟭", 13], - ["a081", "쟻", 4, "젂젃젅젆젇젉젋", 4, "젒젔젗", 4, "젞젟젡젢젣젥", 6, "젮젰젲", 5, "젹젺젻젽젾젿졁", 6, "졊졋졎", 5, "졕", 26, "졲졳졵졶졷졹졻", 4, "좂좄좈좉좊좎", 5, "좕", 7, "좞좠좢좣좤"], - ["a141", "좥좦좧좩", 18, "좾좿죀죁"], - ["a161", "죂죃죅죆죇죉죊죋죍", 6, "죖죘죚", 5, "죢죣죥"], - ["a181", "죦", 14, "죶", 5, "죾죿줁줂줃줇", 4, "줎 、。·‥…¨〃­―∥\∼‘’“”〔〕〈", 9, "±×÷≠≤≥∞∴°′″℃Å¢£¥♂♀∠⊥⌒∂∇≡≒§※☆★○●◎◇◆□■△▲▽▼→←↑↓↔〓≪≫√∽∝∵∫∬∈∋⊆⊇⊂⊃∪∩∧∨¬"], - ["a241", "줐줒", 5, "줙", 18], - ["a261", "줭", 6, "줵", 18], - ["a281", "쥈", 7, "쥒쥓쥕쥖쥗쥙", 6, "쥢쥤", 7, "쥭쥮쥯⇒⇔∀∃´~ˇ˘˝˚˙¸˛¡¿ː∮∑∏¤℉‰◁◀▷▶♤♠♡♥♧♣⊙◈▣◐◑▒▤▥▨▧▦▩♨☏☎☜☞¶†‡↕↗↙↖↘♭♩♪♬㉿㈜№㏇™㏂㏘℡€®"], - ["a341", "쥱쥲쥳쥵", 6, "쥽", 10, "즊즋즍즎즏"], - ["a361", "즑", 6, "즚즜즞", 16], - ["a381", "즯", 16, "짂짃짅짆짉짋", 4, "짒짔짗짘짛!", 58, "₩]", 32, " ̄"], - ["a441", "짞짟짡짣짥짦짨짩짪짫짮짲", 5, "짺짻짽짾짿쨁쨂쨃쨄"], - ["a461", "쨅쨆쨇쨊쨎", 5, "쨕쨖쨗쨙", 12], - ["a481", "쨦쨧쨨쨪", 28, "ㄱ", 93], - ["a541", "쩇", 4, "쩎쩏쩑쩒쩓쩕", 6, "쩞쩢", 5, "쩩쩪"], - ["a561", "쩫", 17, "쩾", 5, "쪅쪆"], - ["a581", "쪇", 16, "쪙", 14, "ⅰ", 9], - ["a5b0", "Ⅰ", 9], - ["a5c1", "Α", 16, "Σ", 6], - ["a5e1", "α", 16, "σ", 6], - ["a641", "쪨", 19, "쪾쪿쫁쫂쫃쫅"], - ["a661", "쫆", 5, "쫎쫐쫒쫔쫕쫖쫗쫚", 5, "쫡", 6], - ["a681", "쫨쫩쫪쫫쫭", 6, "쫵", 18, "쬉쬊─│┌┐┘└├┬┤┴┼━┃┏┓┛┗┣┳┫┻╋┠┯┨┷┿┝┰┥┸╂┒┑┚┙┖┕┎┍┞┟┡┢┦┧┩┪┭┮┱┲┵┶┹┺┽┾╀╁╃", 7], - ["a741", "쬋", 4, "쬑쬒쬓쬕쬖쬗쬙", 6, "쬢", 7], - ["a761", "쬪", 22, "쭂쭃쭄"], - ["a781", "쭅쭆쭇쭊쭋쭍쭎쭏쭑", 6, "쭚쭛쭜쭞", 5, "쭥", 7, "㎕㎖㎗ℓ㎘㏄㎣㎤㎥㎦㎙", 9, "㏊㎍㎎㎏㏏㎈㎉㏈㎧㎨㎰", 9, "㎀", 4, "㎺", 5, "㎐", 4, "Ω㏀㏁㎊㎋㎌㏖㏅㎭㎮㎯㏛㎩㎪㎫㎬㏝㏐㏓㏃㏉㏜㏆"], - ["a841", "쭭", 10, "쭺", 14], - ["a861", "쮉", 18, "쮝", 6], - ["a881", "쮤", 19, "쮹", 11, "ÆÐªĦ"], - ["a8a6", "IJ"], - ["a8a8", "ĿŁØŒºÞŦŊ"], - ["a8b1", "㉠", 27, "ⓐ", 25, "①", 14, "½⅓⅔¼¾⅛⅜⅝⅞"], - ["a941", "쯅", 14, "쯕", 10], - ["a961", "쯠쯡쯢쯣쯥쯦쯨쯪", 18], - ["a981", "쯽", 14, "찎찏찑찒찓찕", 6, "찞찟찠찣찤æđðħıijĸŀłøœßþŧŋʼn㈀", 27, "⒜", 25, "⑴", 14, "¹²³⁴ⁿ₁₂₃₄"], - ["aa41", "찥찦찪찫찭찯찱", 6, "찺찿", 4, "챆챇챉챊챋챍챎"], - ["aa61", "챏", 4, "챖챚", 5, "챡챢챣챥챧챩", 6, "챱챲"], - ["aa81", "챳챴챶", 29, "ぁ", 82], - ["ab41", "첔첕첖첗첚첛첝첞첟첡", 6, "첪첮", 5, "첶첷첹"], - ["ab61", "첺첻첽", 6, "쳆쳈쳊", 5, "쳑쳒쳓쳕", 5], - ["ab81", "쳛", 8, "쳥", 6, "쳭쳮쳯쳱", 12, "ァ", 85], - ["ac41", "쳾쳿촀촂", 5, "촊촋촍촎촏촑", 6, "촚촜촞촟촠"], - ["ac61", "촡촢촣촥촦촧촩촪촫촭", 11, "촺", 4], - ["ac81", "촿", 28, "쵝쵞쵟А", 5, "ЁЖ", 25], - ["acd1", "а", 5, "ёж", 25], - ["ad41", "쵡쵢쵣쵥", 6, "쵮쵰쵲", 5, "쵹", 7], - ["ad61", "춁", 6, "춉", 10, "춖춗춙춚춛춝춞춟"], - ["ad81", "춠춡춢춣춦춨춪", 5, "춱", 18, "췅"], - ["ae41", "췆", 5, "췍췎췏췑", 16], - ["ae61", "췢", 5, "췩췪췫췭췮췯췱", 6, "췺췼췾", 4], - ["ae81", "츃츅츆츇츉츊츋츍", 6, "츕츖츗츘츚", 5, "츢츣츥츦츧츩츪츫"], - ["af41", "츬츭츮츯츲츴츶", 19], - ["af61", "칊", 13, "칚칛칝칞칢", 5, "칪칬"], - ["af81", "칮", 5, "칶칷칹칺칻칽", 6, "캆캈캊", 5, "캒캓캕캖캗캙"], - ["b041", "캚", 5, "캢캦", 5, "캮", 12], - ["b061", "캻", 5, "컂", 19], - ["b081", "컖", 13, "컦컧컩컪컭", 6, "컶컺", 5, "가각간갇갈갉갊감", 7, "같", 4, "갠갤갬갭갯갰갱갸갹갼걀걋걍걔걘걜거걱건걷걸걺검겁것겄겅겆겉겊겋게겐겔겜겝겟겠겡겨격겪견겯결겸겹겻겼경곁계곈곌곕곗고곡곤곧골곪곬곯곰곱곳공곶과곽관괄괆"], - ["b141", "켂켃켅켆켇켉", 6, "켒켔켖", 5, "켝켞켟켡켢켣"], - ["b161", "켥", 6, "켮켲", 5, "켹", 11], - ["b181", "콅", 14, "콖콗콙콚콛콝", 6, "콦콨콪콫콬괌괍괏광괘괜괠괩괬괭괴괵괸괼굄굅굇굉교굔굘굡굣구국군굳굴굵굶굻굼굽굿궁궂궈궉권궐궜궝궤궷귀귁귄귈귐귑귓규균귤그극근귿글긁금급긋긍긔기긱긴긷길긺김깁깃깅깆깊까깍깎깐깔깖깜깝깟깠깡깥깨깩깬깰깸"], - ["b241", "콭콮콯콲콳콵콶콷콹", 6, "쾁쾂쾃쾄쾆", 5, "쾍"], - ["b261", "쾎", 18, "쾢", 5, "쾩"], - ["b281", "쾪", 5, "쾱", 18, "쿅", 6, "깹깻깼깽꺄꺅꺌꺼꺽꺾껀껄껌껍껏껐껑께껙껜껨껫껭껴껸껼꼇꼈꼍꼐꼬꼭꼰꼲꼴꼼꼽꼿꽁꽂꽃꽈꽉꽐꽜꽝꽤꽥꽹꾀꾄꾈꾐꾑꾕꾜꾸꾹꾼꿀꿇꿈꿉꿋꿍꿎꿔꿜꿨꿩꿰꿱꿴꿸뀀뀁뀄뀌뀐뀔뀜뀝뀨끄끅끈끊끌끎끓끔끕끗끙"], - ["b341", "쿌", 19, "쿢쿣쿥쿦쿧쿩"], - ["b361", "쿪", 5, "쿲쿴쿶", 5, "쿽쿾쿿퀁퀂퀃퀅", 5], - ["b381", "퀋", 5, "퀒", 5, "퀙", 19, "끝끼끽낀낄낌낍낏낑나낙낚난낟날낡낢남납낫", 4, "낱낳내낵낸낼냄냅냇냈냉냐냑냔냘냠냥너넉넋넌널넒넓넘넙넛넜넝넣네넥넨넬넴넵넷넸넹녀녁년녈념녑녔녕녘녜녠노녹논놀놂놈놉놋농높놓놔놘놜놨뇌뇐뇔뇜뇝"], - ["b441", "퀮", 5, "퀶퀷퀹퀺퀻퀽", 6, "큆큈큊", 5], - ["b461", "큑큒큓큕큖큗큙", 6, "큡", 10, "큮큯"], - ["b481", "큱큲큳큵", 6, "큾큿킀킂", 18, "뇟뇨뇩뇬뇰뇹뇻뇽누눅눈눋눌눔눕눗눙눠눴눼뉘뉜뉠뉨뉩뉴뉵뉼늄늅늉느늑는늘늙늚늠늡늣능늦늪늬늰늴니닉닌닐닒님닙닛닝닢다닥닦단닫", 4, "닳담답닷", 4, "닿대댁댄댈댐댑댓댔댕댜더덕덖던덛덜덞덟덤덥"], - ["b541", "킕", 14, "킦킧킩킪킫킭", 5], - ["b561", "킳킶킸킺", 5, "탂탃탅탆탇탊", 5, "탒탖", 4], - ["b581", "탛탞탟탡탢탣탥", 6, "탮탲", 5, "탹", 11, "덧덩덫덮데덱덴델뎀뎁뎃뎄뎅뎌뎐뎔뎠뎡뎨뎬도독돈돋돌돎돐돔돕돗동돛돝돠돤돨돼됐되된될됨됩됫됴두둑둔둘둠둡둣둥둬뒀뒈뒝뒤뒨뒬뒵뒷뒹듀듄듈듐듕드득든듣들듦듬듭듯등듸디딕딘딛딜딤딥딧딨딩딪따딱딴딸"], - ["b641", "턅", 7, "턎", 17], - ["b661", "턠", 15, "턲턳턵턶턷턹턻턼턽턾"], - ["b681", "턿텂텆", 5, "텎텏텑텒텓텕", 6, "텞텠텢", 5, "텩텪텫텭땀땁땃땄땅땋때땍땐땔땜땝땟땠땡떠떡떤떨떪떫떰떱떳떴떵떻떼떽뗀뗄뗌뗍뗏뗐뗑뗘뗬또똑똔똘똥똬똴뙈뙤뙨뚜뚝뚠뚤뚫뚬뚱뛔뛰뛴뛸뜀뜁뜅뜨뜩뜬뜯뜰뜸뜹뜻띄띈띌띔띕띠띤띨띰띱띳띵라락란랄람랍랏랐랑랒랖랗"], - ["b741", "텮", 13, "텽", 6, "톅톆톇톉톊"], - ["b761", "톋", 20, "톢톣톥톦톧"], - ["b781", "톩", 6, "톲톴톶톷톸톹톻톽톾톿퇁", 14, "래랙랜랠램랩랫랬랭랴략랸럇량러럭런럴럼럽럿렀렁렇레렉렌렐렘렙렛렝려력련렬렴렵렷렸령례롄롑롓로록론롤롬롭롯롱롸롼뢍뢨뢰뢴뢸룀룁룃룅료룐룔룝룟룡루룩룬룰룸룹룻룽뤄뤘뤠뤼뤽륀륄륌륏륑류륙륜률륨륩"], - ["b841", "퇐", 7, "퇙", 17], - ["b861", "퇫", 8, "퇵퇶퇷퇹", 13], - ["b881", "툈툊", 5, "툑", 24, "륫륭르륵른를름릅릇릉릊릍릎리릭린릴림립릿링마막만많", 4, "맘맙맛망맞맡맣매맥맨맬맴맵맷맸맹맺먀먁먈먕머먹먼멀멂멈멉멋멍멎멓메멕멘멜멤멥멧멨멩며멱면멸몃몄명몇몌모목몫몬몰몲몸몹못몽뫄뫈뫘뫙뫼"], - ["b941", "툪툫툮툯툱툲툳툵", 6, "툾퉀퉂", 5, "퉉퉊퉋퉌"], - ["b961", "퉍", 14, "퉝", 6, "퉥퉦퉧퉨"], - ["b981", "퉩", 22, "튂튃튅튆튇튉튊튋튌묀묄묍묏묑묘묜묠묩묫무묵묶문묻물묽묾뭄뭅뭇뭉뭍뭏뭐뭔뭘뭡뭣뭬뮈뮌뮐뮤뮨뮬뮴뮷므믄믈믐믓미믹민믿밀밂밈밉밋밌밍및밑바", 4, "받", 4, "밤밥밧방밭배백밴밸뱀뱁뱃뱄뱅뱉뱌뱍뱐뱝버벅번벋벌벎범법벗"], - ["ba41", "튍튎튏튒튓튔튖", 5, "튝튞튟튡튢튣튥", 6, "튭"], - ["ba61", "튮튯튰튲", 5, "튺튻튽튾틁틃", 4, "틊틌", 5], - ["ba81", "틒틓틕틖틗틙틚틛틝", 6, "틦", 9, "틲틳틵틶틷틹틺벙벚베벡벤벧벨벰벱벳벴벵벼벽변별볍볏볐병볕볘볜보복볶본볼봄봅봇봉봐봔봤봬뵀뵈뵉뵌뵐뵘뵙뵤뵨부북분붇불붉붊붐붑붓붕붙붚붜붤붰붸뷔뷕뷘뷜뷩뷰뷴뷸븀븃븅브븍븐블븜븝븟비빅빈빌빎빔빕빗빙빚빛빠빡빤"], - ["bb41", "틻", 4, "팂팄팆", 5, "팏팑팒팓팕팗", 4, "팞팢팣"], - ["bb61", "팤팦팧팪팫팭팮팯팱", 6, "팺팾", 5, "퍆퍇퍈퍉"], - ["bb81", "퍊", 31, "빨빪빰빱빳빴빵빻빼빽뺀뺄뺌뺍뺏뺐뺑뺘뺙뺨뻐뻑뻔뻗뻘뻠뻣뻤뻥뻬뼁뼈뼉뼘뼙뼛뼜뼝뽀뽁뽄뽈뽐뽑뽕뾔뾰뿅뿌뿍뿐뿔뿜뿟뿡쀼쁑쁘쁜쁠쁨쁩삐삑삔삘삠삡삣삥사삭삯산삳살삵삶삼삽삿샀상샅새색샌샐샘샙샛샜생샤"], - ["bc41", "퍪", 17, "퍾퍿펁펂펃펅펆펇"], - ["bc61", "펈펉펊펋펎펒", 5, "펚펛펝펞펟펡", 6, "펪펬펮"], - ["bc81", "펯", 4, "펵펶펷펹펺펻펽", 6, "폆폇폊", 5, "폑", 5, "샥샨샬샴샵샷샹섀섄섈섐섕서", 4, "섣설섦섧섬섭섯섰성섶세섹센셀셈셉셋셌셍셔셕션셜셤셥셧셨셩셰셴셸솅소속솎손솔솖솜솝솟송솥솨솩솬솰솽쇄쇈쇌쇔쇗쇘쇠쇤쇨쇰쇱쇳쇼쇽숀숄숌숍숏숑수숙순숟술숨숩숫숭"], - ["bd41", "폗폙", 7, "폢폤", 7, "폮폯폱폲폳폵폶폷"], - ["bd61", "폸폹폺폻폾퐀퐂", 5, "퐉", 13], - ["bd81", "퐗", 5, "퐞", 25, "숯숱숲숴쉈쉐쉑쉔쉘쉠쉥쉬쉭쉰쉴쉼쉽쉿슁슈슉슐슘슛슝스슥슨슬슭슴습슷승시식신싣실싫심십싯싱싶싸싹싻싼쌀쌈쌉쌌쌍쌓쌔쌕쌘쌜쌤쌥쌨쌩썅써썩썬썰썲썸썹썼썽쎄쎈쎌쏀쏘쏙쏜쏟쏠쏢쏨쏩쏭쏴쏵쏸쐈쐐쐤쐬쐰"], - ["be41", "퐸", 7, "푁푂푃푅", 14], - ["be61", "푔", 7, "푝푞푟푡푢푣푥", 7, "푮푰푱푲"], - ["be81", "푳", 4, "푺푻푽푾풁풃", 4, "풊풌풎", 5, "풕", 8, "쐴쐼쐽쑈쑤쑥쑨쑬쑴쑵쑹쒀쒔쒜쒸쒼쓩쓰쓱쓴쓸쓺쓿씀씁씌씐씔씜씨씩씬씰씸씹씻씽아악안앉않알앍앎앓암압앗았앙앝앞애액앤앨앰앱앳앴앵야약얀얄얇얌얍얏양얕얗얘얜얠얩어억언얹얻얼얽얾엄", 6, "엌엎"], - ["bf41", "풞", 10, "풪", 14], - ["bf61", "풹", 18, "퓍퓎퓏퓑퓒퓓퓕"], - ["bf81", "퓖", 5, "퓝퓞퓠", 7, "퓩퓪퓫퓭퓮퓯퓱", 6, "퓹퓺퓼에엑엔엘엠엡엣엥여역엮연열엶엷염", 5, "옅옆옇예옌옐옘옙옛옜오옥온올옭옮옰옳옴옵옷옹옻와왁완왈왐왑왓왔왕왜왝왠왬왯왱외왹왼욀욈욉욋욍요욕욘욜욤욥욧용우욱운울욹욺움웁웃웅워웍원월웜웝웠웡웨"], - ["c041", "퓾", 5, "픅픆픇픉픊픋픍", 6, "픖픘", 5], - ["c061", "픞", 25], - ["c081", "픸픹픺픻픾픿핁핂핃핅", 6, "핎핐핒", 5, "핚핛핝핞핟핡핢핣웩웬웰웸웹웽위윅윈윌윔윕윗윙유육윤율윰윱윳융윷으윽은을읊음읍읏응", 7, "읜읠읨읫이익인일읽읾잃임입잇있잉잊잎자작잔잖잗잘잚잠잡잣잤장잦재잭잰잴잼잽잿쟀쟁쟈쟉쟌쟎쟐쟘쟝쟤쟨쟬저적전절젊"], - ["c141", "핤핦핧핪핬핮", 5, "핶핷핹핺핻핽", 6, "햆햊햋"], - ["c161", "햌햍햎햏햑", 19, "햦햧"], - ["c181", "햨", 31, "점접젓정젖제젝젠젤젬젭젯젱져젼졀졈졉졌졍졔조족존졸졺좀좁좃종좆좇좋좌좍좔좝좟좡좨좼좽죄죈죌죔죕죗죙죠죡죤죵주죽준줄줅줆줌줍줏중줘줬줴쥐쥑쥔쥘쥠쥡쥣쥬쥰쥴쥼즈즉즌즐즘즙즛증지직진짇질짊짐집짓"], - ["c241", "헊헋헍헎헏헑헓", 4, "헚헜헞", 5, "헦헧헩헪헫헭헮"], - ["c261", "헯", 4, "헶헸헺", 5, "혂혃혅혆혇혉", 6, "혒"], - ["c281", "혖", 5, "혝혞혟혡혢혣혥", 7, "혮", 9, "혺혻징짖짙짚짜짝짠짢짤짧짬짭짯짰짱째짹짼쨀쨈쨉쨋쨌쨍쨔쨘쨩쩌쩍쩐쩔쩜쩝쩟쩠쩡쩨쩽쪄쪘쪼쪽쫀쫄쫌쫍쫏쫑쫓쫘쫙쫠쫬쫴쬈쬐쬔쬘쬠쬡쭁쭈쭉쭌쭐쭘쭙쭝쭤쭸쭹쮜쮸쯔쯤쯧쯩찌찍찐찔찜찝찡찢찧차착찬찮찰참찹찻"], - ["c341", "혽혾혿홁홂홃홄홆홇홊홌홎홏홐홒홓홖홗홙홚홛홝", 4], - ["c361", "홢", 4, "홨홪", 5, "홲홳홵", 11], - ["c381", "횁횂횄횆", 5, "횎횏횑횒횓횕", 7, "횞횠횢", 5, "횩횪찼창찾채책챈챌챔챕챗챘챙챠챤챦챨챰챵처척천철첨첩첫첬청체첵첸첼쳄쳅쳇쳉쳐쳔쳤쳬쳰촁초촉촌촐촘촙촛총촤촨촬촹최쵠쵤쵬쵭쵯쵱쵸춈추축춘출춤춥춧충춰췄췌췐취췬췰췸췹췻췽츄츈츌츔츙츠측츤츨츰츱츳층"], - ["c441", "횫횭횮횯횱", 7, "횺횼", 7, "훆훇훉훊훋"], - ["c461", "훍훎훏훐훒훓훕훖훘훚", 5, "훡훢훣훥훦훧훩", 4], - ["c481", "훮훯훱훲훳훴훶", 5, "훾훿휁휂휃휅", 11, "휒휓휔치칙친칟칠칡침칩칫칭카칵칸칼캄캅캇캉캐캑캔캘캠캡캣캤캥캬캭컁커컥컨컫컬컴컵컷컸컹케켁켄켈켐켑켓켕켜켠켤켬켭켯켰켱켸코콕콘콜콤콥콧콩콰콱콴콸쾀쾅쾌쾡쾨쾰쿄쿠쿡쿤쿨쿰쿱쿳쿵쿼퀀퀄퀑퀘퀭퀴퀵퀸퀼"], - ["c541", "휕휖휗휚휛휝휞휟휡", 6, "휪휬휮", 5, "휶휷휹"], - ["c561", "휺휻휽", 6, "흅흆흈흊", 5, "흒흓흕흚", 4], - ["c581", "흟흢흤흦흧흨흪흫흭흮흯흱흲흳흵", 6, "흾흿힀힂", 5, "힊힋큄큅큇큉큐큔큘큠크큭큰클큼큽킁키킥킨킬킴킵킷킹타탁탄탈탉탐탑탓탔탕태택탠탤탬탭탯탰탱탸턍터턱턴털턺텀텁텃텄텅테텍텐텔템텝텟텡텨텬텼톄톈토톡톤톨톰톱톳통톺톼퇀퇘퇴퇸툇툉툐투툭툰툴툼툽툿퉁퉈퉜"], - ["c641", "힍힎힏힑", 6, "힚힜힞", 5], - ["c6a1", "퉤튀튁튄튈튐튑튕튜튠튤튬튱트특튼튿틀틂틈틉틋틔틘틜틤틥티틱틴틸팀팁팃팅파팍팎판팔팖팜팝팟팠팡팥패팩팬팰팸팹팻팼팽퍄퍅퍼퍽펀펄펌펍펏펐펑페펙펜펠펨펩펫펭펴편펼폄폅폈평폐폘폡폣포폭폰폴폼폽폿퐁"], - ["c7a1", "퐈퐝푀푄표푠푤푭푯푸푹푼푿풀풂품풉풋풍풔풩퓌퓐퓔퓜퓟퓨퓬퓰퓸퓻퓽프픈플픔픕픗피픽핀필핌핍핏핑하학한할핥함합핫항해핵핸핼햄햅햇했행햐향허헉헌헐헒험헙헛헝헤헥헨헬헴헵헷헹혀혁현혈혐협혓혔형혜혠"], - ["c8a1", "혤혭호혹혼홀홅홈홉홋홍홑화확환활홧황홰홱홴횃횅회획횐횔횝횟횡효횬횰횹횻후훅훈훌훑훔훗훙훠훤훨훰훵훼훽휀휄휑휘휙휜휠휨휩휫휭휴휵휸휼흄흇흉흐흑흔흖흗흘흙흠흡흣흥흩희흰흴흼흽힁히힉힌힐힘힙힛힝"], - ["caa1", "伽佳假價加可呵哥嘉嫁家暇架枷柯歌珂痂稼苛茄街袈訶賈跏軻迦駕刻却各恪慤殼珏脚覺角閣侃刊墾奸姦干幹懇揀杆柬桿澗癎看磵稈竿簡肝艮艱諫間乫喝曷渴碣竭葛褐蝎鞨勘坎堪嵌感憾戡敢柑橄減甘疳監瞰紺邯鑑鑒龕"], - ["cba1", "匣岬甲胛鉀閘剛堈姜岡崗康强彊慷江畺疆糠絳綱羌腔舡薑襁講鋼降鱇介价個凱塏愷愾慨改槪漑疥皆盖箇芥蓋豈鎧開喀客坑更粳羹醵倨去居巨拒据據擧渠炬祛距踞車遽鉅鋸乾件健巾建愆楗腱虔蹇鍵騫乞傑杰桀儉劍劒檢"], - ["cca1", "瞼鈐黔劫怯迲偈憩揭擊格檄激膈覡隔堅牽犬甄絹繭肩見譴遣鵑抉決潔結缺訣兼慊箝謙鉗鎌京俓倞傾儆勁勍卿坰境庚徑慶憬擎敬景暻更梗涇炅烱璟璥瓊痙硬磬竟競絅經耕耿脛莖警輕逕鏡頃頸驚鯨係啓堺契季屆悸戒桂械"], - ["cda1", "棨溪界癸磎稽系繫繼計誡谿階鷄古叩告呱固姑孤尻庫拷攷故敲暠枯槁沽痼皐睾稿羔考股膏苦苽菰藁蠱袴誥賈辜錮雇顧高鼓哭斛曲梏穀谷鵠困坤崑昆梱棍滾琨袞鯤汨滑骨供公共功孔工恐恭拱控攻珙空蚣貢鞏串寡戈果瓜"], - ["cea1", "科菓誇課跨過鍋顆廓槨藿郭串冠官寬慣棺款灌琯瓘管罐菅觀貫關館刮恝括适侊光匡壙廣曠洸炚狂珖筐胱鑛卦掛罫乖傀塊壞怪愧拐槐魁宏紘肱轟交僑咬喬嬌嶠巧攪敎校橋狡皎矯絞翹膠蕎蛟較轎郊餃驕鮫丘久九仇俱具勾"], - ["cfa1", "區口句咎嘔坵垢寇嶇廐懼拘救枸柩構歐毆毬求溝灸狗玖球瞿矩究絿耉臼舅舊苟衢謳購軀逑邱鉤銶駒驅鳩鷗龜國局菊鞠鞫麴君窘群裙軍郡堀屈掘窟宮弓穹窮芎躬倦券勸卷圈拳捲權淃眷厥獗蕨蹶闕机櫃潰詭軌饋句晷歸貴"], - ["d0a1", "鬼龜叫圭奎揆槻珪硅窺竅糾葵規赳逵閨勻均畇筠菌鈞龜橘克剋劇戟棘極隙僅劤勤懃斤根槿瑾筋芹菫覲謹近饉契今妗擒昑檎琴禁禽芩衾衿襟金錦伋及急扱汲級給亘兢矜肯企伎其冀嗜器圻基埼夔奇妓寄岐崎己幾忌技旗旣"], - ["d1a1", "朞期杞棋棄機欺氣汽沂淇玘琦琪璂璣畸畿碁磯祁祇祈祺箕紀綺羈耆耭肌記譏豈起錡錤飢饑騎騏驥麒緊佶吉拮桔金喫儺喇奈娜懦懶拏拿癩", 5, "那樂", 4, "諾酪駱亂卵暖欄煖爛蘭難鸞捏捺南嵐枏楠湳濫男藍襤拉"], - ["d2a1", "納臘蠟衲囊娘廊", 4, "乃來內奈柰耐冷女年撚秊念恬拈捻寧寗努勞奴弩怒擄櫓爐瑙盧", 5, "駑魯", 10, "濃籠聾膿農惱牢磊腦賂雷尿壘", 7, "嫩訥杻紐勒", 5, "能菱陵尼泥匿溺多茶"], - ["d3a1", "丹亶但單團壇彖斷旦檀段湍短端簞緞蛋袒鄲鍛撻澾獺疸達啖坍憺擔曇淡湛潭澹痰聃膽蕁覃談譚錟沓畓答踏遝唐堂塘幢戇撞棠當糖螳黨代垈坮大對岱帶待戴擡玳臺袋貸隊黛宅德悳倒刀到圖堵塗導屠島嶋度徒悼挑掉搗桃"], - ["d4a1", "棹櫂淘渡滔濤燾盜睹禱稻萄覩賭跳蹈逃途道都鍍陶韜毒瀆牘犢獨督禿篤纛讀墩惇敦旽暾沌焞燉豚頓乭突仝冬凍動同憧東桐棟洞潼疼瞳童胴董銅兜斗杜枓痘竇荳讀豆逗頭屯臀芚遁遯鈍得嶝橙燈登等藤謄鄧騰喇懶拏癩羅"], - ["d5a1", "蘿螺裸邏樂洛烙珞絡落諾酪駱丹亂卵欄欒瀾爛蘭鸞剌辣嵐擥攬欖濫籃纜藍襤覽拉臘蠟廊朗浪狼琅瑯螂郞來崍徠萊冷掠略亮倆兩凉梁樑粮粱糧良諒輛量侶儷勵呂廬慮戾旅櫚濾礪藜蠣閭驢驪麗黎力曆歷瀝礫轢靂憐戀攣漣"], - ["d6a1", "煉璉練聯蓮輦連鍊冽列劣洌烈裂廉斂殮濂簾獵令伶囹寧岺嶺怜玲笭羚翎聆逞鈴零靈領齡例澧禮醴隷勞怒撈擄櫓潞瀘爐盧老蘆虜路輅露魯鷺鹵碌祿綠菉錄鹿麓論壟弄朧瀧瓏籠聾儡瀨牢磊賂賚賴雷了僚寮廖料燎療瞭聊蓼"], - ["d7a1", "遼鬧龍壘婁屢樓淚漏瘻累縷蔞褸鏤陋劉旒柳榴流溜瀏琉瑠留瘤硫謬類六戮陸侖倫崙淪綸輪律慄栗率隆勒肋凜凌楞稜綾菱陵俚利厘吏唎履悧李梨浬犁狸理璃異痢籬罹羸莉裏裡里釐離鯉吝潾燐璘藺躪隣鱗麟林淋琳臨霖砬"], - ["d8a1", "立笠粒摩瑪痲碼磨馬魔麻寞幕漠膜莫邈万卍娩巒彎慢挽晩曼滿漫灣瞞萬蔓蠻輓饅鰻唜抹末沫茉襪靺亡妄忘忙望網罔芒茫莽輞邙埋妹媒寐昧枚梅每煤罵買賣邁魅脈貊陌驀麥孟氓猛盲盟萌冪覓免冕勉棉沔眄眠綿緬面麵滅"], - ["d9a1", "蔑冥名命明暝椧溟皿瞑茗蓂螟酩銘鳴袂侮冒募姆帽慕摸摹暮某模母毛牟牡瑁眸矛耗芼茅謀謨貌木沐牧目睦穆鶩歿沒夢朦蒙卯墓妙廟描昴杳渺猫竗苗錨務巫憮懋戊拇撫无楙武毋無珷畝繆舞茂蕪誣貿霧鵡墨默們刎吻問文"], - ["daa1", "汶紊紋聞蚊門雯勿沕物味媚尾嵋彌微未梶楣渼湄眉米美薇謎迷靡黴岷悶愍憫敏旻旼民泯玟珉緡閔密蜜謐剝博拍搏撲朴樸泊珀璞箔粕縛膊舶薄迫雹駁伴半反叛拌搬攀斑槃泮潘班畔瘢盤盼磐磻礬絆般蟠返頒飯勃拔撥渤潑"], - ["dba1", "發跋醱鉢髮魃倣傍坊妨尨幇彷房放方旁昉枋榜滂磅紡肪膀舫芳蒡蚌訪謗邦防龐倍俳北培徘拜排杯湃焙盃背胚裴裵褙賠輩配陪伯佰帛柏栢白百魄幡樊煩燔番磻繁蕃藩飜伐筏罰閥凡帆梵氾汎泛犯範范法琺僻劈壁擘檗璧癖"], - ["dca1", "碧蘗闢霹便卞弁變辨辯邊別瞥鱉鼈丙倂兵屛幷昞昺柄棅炳甁病秉竝輧餠騈保堡報寶普步洑湺潽珤甫菩補褓譜輔伏僕匐卜宓復服福腹茯蔔複覆輹輻馥鰒本乶俸奉封峯峰捧棒烽熢琫縫蓬蜂逢鋒鳳不付俯傅剖副否咐埠夫婦"], - ["dda1", "孚孵富府復扶敷斧浮溥父符簿缶腐腑膚艀芙莩訃負賦賻赴趺部釜阜附駙鳧北分吩噴墳奔奮忿憤扮昐汾焚盆粉糞紛芬賁雰不佛弗彿拂崩朋棚硼繃鵬丕備匕匪卑妃婢庇悲憊扉批斐枇榧比毖毗毘沸泌琵痺砒碑秕秘粃緋翡肥"], - ["dea1", "脾臂菲蜚裨誹譬費鄙非飛鼻嚬嬪彬斌檳殯浜濱瀕牝玭貧賓頻憑氷聘騁乍事些仕伺似使俟僿史司唆嗣四士奢娑寫寺射巳師徙思捨斜斯柶査梭死沙泗渣瀉獅砂社祀祠私篩紗絲肆舍莎蓑蛇裟詐詞謝賜赦辭邪飼駟麝削數朔索"], - ["dfa1", "傘刪山散汕珊産疝算蒜酸霰乷撒殺煞薩三參杉森渗芟蔘衫揷澁鈒颯上傷像償商喪嘗孀尙峠常床庠廂想桑橡湘爽牀狀相祥箱翔裳觴詳象賞霜塞璽賽嗇塞穡索色牲生甥省笙墅壻嶼序庶徐恕抒捿敍暑曙書栖棲犀瑞筮絮緖署"], - ["e0a1", "胥舒薯西誓逝鋤黍鼠夕奭席惜昔晳析汐淅潟石碩蓆釋錫仙僊先善嬋宣扇敾旋渲煽琁瑄璇璿癬禪線繕羨腺膳船蘚蟬詵跣選銑鐥饍鮮卨屑楔泄洩渫舌薛褻設說雪齧剡暹殲纖蟾贍閃陝攝涉燮葉城姓宬性惺成星晟猩珹盛省筬"], - ["e1a1", "聖聲腥誠醒世勢歲洗稅笹細說貰召嘯塑宵小少巢所掃搔昭梳沼消溯瀟炤燒甦疏疎瘙笑篠簫素紹蔬蕭蘇訴逍遡邵銷韶騷俗屬束涑粟續謖贖速孫巽損蓀遜飡率宋悚松淞訟誦送頌刷殺灑碎鎖衰釗修受嗽囚垂壽嫂守岫峀帥愁"], - ["e2a1", "戍手授搜收數樹殊水洙漱燧狩獸琇璲瘦睡秀穗竪粹綏綬繡羞脩茱蒐蓚藪袖誰讐輸遂邃酬銖銹隋隧隨雖需須首髓鬚叔塾夙孰宿淑潚熟琡璹肅菽巡徇循恂旬栒楯橓殉洵淳珣盾瞬筍純脣舜荀蓴蕣詢諄醇錞順馴戌術述鉥崇崧"], - ["e3a1", "嵩瑟膝蝨濕拾習褶襲丞乘僧勝升承昇繩蠅陞侍匙嘶始媤尸屎屍市弑恃施是時枾柴猜矢示翅蒔蓍視試詩諡豕豺埴寔式息拭植殖湜熄篒蝕識軾食飾伸侁信呻娠宸愼新晨燼申神紳腎臣莘薪藎蜃訊身辛辰迅失室實悉審尋心沁"], - ["e4a1", "沈深瀋甚芯諶什十拾雙氏亞俄兒啞娥峨我牙芽莪蛾衙訝阿雅餓鴉鵝堊岳嶽幄惡愕握樂渥鄂鍔顎鰐齷安岸按晏案眼雁鞍顔鮟斡謁軋閼唵岩巖庵暗癌菴闇壓押狎鴨仰央怏昻殃秧鴦厓哀埃崖愛曖涯碍艾隘靄厄扼掖液縊腋額"], - ["e5a1", "櫻罌鶯鸚也倻冶夜惹揶椰爺耶若野弱掠略約若葯蒻藥躍亮佯兩凉壤孃恙揚攘敭暘梁楊樣洋瀁煬痒瘍禳穰糧羊良襄諒讓釀陽量養圄御於漁瘀禦語馭魚齬億憶抑檍臆偃堰彦焉言諺孼蘖俺儼嚴奄掩淹嶪業円予余勵呂女如廬"], - ["e6a1", "旅歟汝濾璵礖礪與艅茹輿轝閭餘驪麗黎亦力域役易曆歷疫繹譯轢逆驛嚥堧姸娟宴年延憐戀捐挻撚椽沇沿涎涓淵演漣烟然煙煉燃燕璉硏硯秊筵緣練縯聯衍軟輦蓮連鉛鍊鳶列劣咽悅涅烈熱裂說閱厭廉念捻染殮炎焰琰艶苒"], - ["e7a1", "簾閻髥鹽曄獵燁葉令囹塋寧嶺嶸影怜映暎楹榮永泳渶潁濚瀛瀯煐營獰玲瑛瑩瓔盈穎纓羚聆英詠迎鈴鍈零霙靈領乂倪例刈叡曳汭濊猊睿穢芮藝蘂禮裔詣譽豫醴銳隸霓預五伍俉傲午吾吳嗚塢墺奧娛寤悟惡懊敖旿晤梧汚澳"], - ["e8a1", "烏熬獒筽蜈誤鰲鼇屋沃獄玉鈺溫瑥瘟穩縕蘊兀壅擁瓮甕癰翁邕雍饔渦瓦窩窪臥蛙蝸訛婉完宛梡椀浣玩琓琬碗緩翫脘腕莞豌阮頑曰往旺枉汪王倭娃歪矮外嵬巍猥畏了僚僥凹堯夭妖姚寥寮尿嶢拗搖撓擾料曜樂橈燎燿瑤療"], - ["e9a1", "窈窯繇繞耀腰蓼蟯要謠遙遼邀饒慾欲浴縟褥辱俑傭冗勇埇墉容庸慂榕涌湧溶熔瑢用甬聳茸蓉踊鎔鏞龍于佑偶優又友右宇寓尤愚憂旴牛玗瑀盂祐禑禹紆羽芋藕虞迂遇郵釪隅雨雩勖彧旭昱栯煜稶郁頊云暈橒殞澐熉耘芸蕓"], - ["eaa1", "運隕雲韻蔚鬱亐熊雄元原員圓園垣媛嫄寃怨愿援沅洹湲源爰猿瑗苑袁轅遠阮院願鴛月越鉞位偉僞危圍委威尉慰暐渭爲瑋緯胃萎葦蔿蝟衛褘謂違韋魏乳侑儒兪劉唯喩孺宥幼幽庾悠惟愈愉揄攸有杻柔柚柳楡楢油洧流游溜"], - ["eba1", "濡猶猷琉瑜由留癒硫紐維臾萸裕誘諛諭踰蹂遊逾遺酉釉鍮類六堉戮毓肉育陸倫允奫尹崙淪潤玧胤贇輪鈗閏律慄栗率聿戎瀜絨融隆垠恩慇殷誾銀隱乙吟淫蔭陰音飮揖泣邑凝應膺鷹依倚儀宜意懿擬椅毅疑矣義艤薏蟻衣誼"], - ["eca1", "議醫二以伊利吏夷姨履已弛彛怡易李梨泥爾珥理異痍痢移罹而耳肄苡荑裏裡貽貳邇里離飴餌匿溺瀷益翊翌翼謚人仁刃印吝咽因姻寅引忍湮燐璘絪茵藺蚓認隣靭靷鱗麟一佚佾壹日溢逸鎰馹任壬妊姙恁林淋稔臨荏賃入卄"], - ["eda1", "立笠粒仍剩孕芿仔刺咨姉姿子字孜恣慈滋炙煮玆瓷疵磁紫者自茨蔗藉諮資雌作勺嚼斫昨灼炸爵綽芍酌雀鵲孱棧殘潺盞岑暫潛箴簪蠶雜丈仗匠場墻壯奬將帳庄張掌暲杖樟檣欌漿牆狀獐璋章粧腸臟臧莊葬蔣薔藏裝贓醬長"], - ["eea1", "障再哉在宰才材栽梓渽滓災縡裁財載齋齎爭箏諍錚佇低儲咀姐底抵杵楮樗沮渚狙猪疽箸紵苧菹著藷詛貯躇這邸雎齟勣吊嫡寂摘敵滴狄炙的積笛籍績翟荻謫賊赤跡蹟迪迹適鏑佃佺傳全典前剪塡塼奠專展廛悛戰栓殿氈澱"], - ["efa1", "煎琠田甸畑癲筌箋箭篆纏詮輾轉鈿銓錢鐫電顚顫餞切截折浙癤竊節絶占岾店漸点粘霑鮎點接摺蝶丁井亭停偵呈姃定幀庭廷征情挺政整旌晶晸柾楨檉正汀淀淨渟湞瀞炡玎珽町睛碇禎程穽精綎艇訂諪貞鄭酊釘鉦鋌錠霆靖"], - ["f0a1", "靜頂鼎制劑啼堤帝弟悌提梯濟祭第臍薺製諸蹄醍除際霽題齊俎兆凋助嘲弔彫措操早晁曺曹朝條棗槽漕潮照燥爪璪眺祖祚租稠窕粗糟組繰肇藻蚤詔調趙躁造遭釣阻雕鳥族簇足鏃存尊卒拙猝倧宗從悰慫棕淙琮種終綜縱腫"], - ["f1a1", "踪踵鍾鐘佐坐左座挫罪主住侏做姝胄呪周嗾奏宙州廚晝朱柱株注洲湊澍炷珠疇籌紂紬綢舟蛛註誅走躊輳週酎酒鑄駐竹粥俊儁准埈寯峻晙樽浚準濬焌畯竣蠢逡遵雋駿茁中仲衆重卽櫛楫汁葺增憎曾拯烝甑症繒蒸證贈之只"], - ["f2a1", "咫地址志持指摯支旨智枝枳止池沚漬知砥祉祗紙肢脂至芝芷蜘誌識贄趾遲直稙稷織職唇嗔塵振搢晉晋桭榛殄津溱珍瑨璡畛疹盡眞瞋秦縉縝臻蔯袗診賑軫辰進鎭陣陳震侄叱姪嫉帙桎瓆疾秩窒膣蛭質跌迭斟朕什執潗緝輯"], - ["f3a1", "鏶集徵懲澄且侘借叉嗟嵯差次此磋箚茶蹉車遮捉搾着窄錯鑿齪撰澯燦璨瓚竄簒纂粲纘讚贊鑽餐饌刹察擦札紮僭參塹慘慙懺斬站讒讖倉倡創唱娼廠彰愴敞昌昶暢槍滄漲猖瘡窓脹艙菖蒼債埰寀寨彩採砦綵菜蔡采釵冊柵策"], - ["f4a1", "責凄妻悽處倜刺剔尺慽戚拓擲斥滌瘠脊蹠陟隻仟千喘天川擅泉淺玔穿舛薦賤踐遷釧闡阡韆凸哲喆徹撤澈綴輟轍鐵僉尖沾添甛瞻簽籤詹諂堞妾帖捷牒疊睫諜貼輒廳晴淸聽菁請靑鯖切剃替涕滯締諦逮遞體初剿哨憔抄招梢"], - ["f5a1", "椒楚樵炒焦硝礁礎秒稍肖艸苕草蕉貂超酢醋醮促囑燭矗蜀觸寸忖村邨叢塚寵悤憁摠總聰蔥銃撮催崔最墜抽推椎楸樞湫皺秋芻萩諏趨追鄒酋醜錐錘鎚雛騶鰍丑畜祝竺筑築縮蓄蹙蹴軸逐春椿瑃出朮黜充忠沖蟲衝衷悴膵萃"], - ["f6a1", "贅取吹嘴娶就炊翠聚脆臭趣醉驟鷲側仄厠惻測層侈値嗤峙幟恥梔治淄熾痔痴癡稚穉緇緻置致蚩輜雉馳齒則勅飭親七柒漆侵寢枕沈浸琛砧針鍼蟄秤稱快他咤唾墮妥惰打拖朶楕舵陀馱駝倬卓啄坼度托拓擢晫柝濁濯琢琸託"], - ["f7a1", "鐸呑嘆坦彈憚歎灘炭綻誕奪脫探眈耽貪塔搭榻宕帑湯糖蕩兌台太怠態殆汰泰笞胎苔跆邰颱宅擇澤撑攄兎吐土討慟桶洞痛筒統通堆槌腿褪退頹偸套妬投透鬪慝特闖坡婆巴把播擺杷波派爬琶破罷芭跛頗判坂板版瓣販辦鈑"], - ["f8a1", "阪八叭捌佩唄悖敗沛浿牌狽稗覇貝彭澎烹膨愎便偏扁片篇編翩遍鞭騙貶坪平枰萍評吠嬖幣廢弊斃肺蔽閉陛佈包匍匏咆哺圃布怖抛抱捕暴泡浦疱砲胞脯苞葡蒲袍褒逋鋪飽鮑幅暴曝瀑爆輻俵剽彪慓杓標漂瓢票表豹飇飄驃"], - ["f9a1", "品稟楓諷豊風馮彼披疲皮被避陂匹弼必泌珌畢疋筆苾馝乏逼下何厦夏廈昰河瑕荷蝦賀遐霞鰕壑學虐謔鶴寒恨悍旱汗漢澣瀚罕翰閑閒限韓割轄函含咸啣喊檻涵緘艦銜陷鹹合哈盒蛤閤闔陜亢伉姮嫦巷恒抗杭桁沆港缸肛航"], - ["faa1", "行降項亥偕咳垓奚孩害懈楷海瀣蟹解該諧邂駭骸劾核倖幸杏荇行享向嚮珦鄕響餉饗香噓墟虛許憲櫶獻軒歇險驗奕爀赫革俔峴弦懸晛泫炫玄玹現眩睍絃絢縣舷衒見賢鉉顯孑穴血頁嫌俠協夾峽挾浹狹脅脇莢鋏頰亨兄刑型"], - ["fba1", "形泂滎瀅灐炯熒珩瑩荊螢衡逈邢鎣馨兮彗惠慧暳蕙蹊醯鞋乎互呼壕壺好岵弧戶扈昊晧毫浩淏湖滸澔濠濩灝狐琥瑚瓠皓祜糊縞胡芦葫蒿虎號蝴護豪鎬頀顥惑或酷婚昏混渾琿魂忽惚笏哄弘汞泓洪烘紅虹訌鴻化和嬅樺火畵"], - ["fca1", "禍禾花華話譁貨靴廓擴攫確碻穫丸喚奐宦幻患換歡晥桓渙煥環紈還驩鰥活滑猾豁闊凰幌徨恍惶愰慌晃晄榥況湟滉潢煌璜皇篁簧荒蝗遑隍黃匯回廻徊恢悔懷晦會檜淮澮灰獪繪膾茴蛔誨賄劃獲宖橫鐄哮嚆孝效斅曉梟涍淆"], - ["fda1", "爻肴酵驍侯候厚后吼喉嗅帿後朽煦珝逅勛勳塤壎焄熏燻薰訓暈薨喧暄煊萱卉喙毁彙徽揮暉煇諱輝麾休携烋畦虧恤譎鷸兇凶匈洶胸黑昕欣炘痕吃屹紇訖欠欽歆吸恰洽翕興僖凞喜噫囍姬嬉希憙憘戱晞曦熙熹熺犧禧稀羲詰"] - ]; -}); - -// node_modules/iconv-lite/encodings/tables/cp950.json -var require_cp950 = __commonJS((exports, module) => { - module.exports = [ - ["0", "\x00", 127], - ["a140", " ,、。.‧;:?!︰…‥﹐﹑﹒·﹔﹕﹖﹗|–︱—︳╴︴﹏()︵︶{}︷︸〔〕︹︺【】︻︼《》︽︾〈〉︿﹀「」﹁﹂『』﹃﹄﹙﹚"], - ["a1a1", "﹛﹜﹝﹞‘’“”〝〞‵′#&*※§〃○●△▲◎☆★◇◆□■▽▼㊣℅¯ ̄_ˍ﹉﹊﹍﹎﹋﹌﹟﹠﹡+-×÷±√<>=≦≧≠∞≒≡﹢", 4, "~∩∪⊥∠∟⊿㏒㏑∫∮∵∴♀♂⊕⊙↑↓←→↖↗↙↘∥∣/"], - ["a240", "\∕﹨$¥〒¢£%@℃℉﹩﹪﹫㏕㎜㎝㎞㏎㎡㎎㎏㏄°兙兛兞兝兡兣嗧瓩糎▁", 7, "▏▎▍▌▋▊▉┼┴┬┤├▔─│▕┌┐└┘╭"], - ["a2a1", "╮╰╯═╞╪╡◢◣◥◤╱╲╳0", 9, "Ⅰ", 9, "〡", 8, "十卄卅A", 25, "a", 21], - ["a340", "wxyzΑ", 16, "Σ", 6, "α", 16, "σ", 6, "ㄅ", 10], - ["a3a1", "ㄐ", 25, "˙ˉˊˇˋ"], - ["a3e1", "€"], - ["a440", "一乙丁七乃九了二人儿入八几刀刁力匕十卜又三下丈上丫丸凡久么也乞于亡兀刃勺千叉口土士夕大女子孑孓寸小尢尸山川工己已巳巾干廾弋弓才"], - ["a4a1", "丑丐不中丰丹之尹予云井互五亢仁什仃仆仇仍今介仄元允內六兮公冗凶分切刈勻勾勿化匹午升卅卞厄友及反壬天夫太夭孔少尤尺屯巴幻廿弔引心戈戶手扎支文斗斤方日曰月木欠止歹毋比毛氏水火爪父爻片牙牛犬王丙"], - ["a540", "世丕且丘主乍乏乎以付仔仕他仗代令仙仞充兄冉冊冬凹出凸刊加功包匆北匝仟半卉卡占卯卮去可古右召叮叩叨叼司叵叫另只史叱台句叭叻四囚外"], - ["a5a1", "央失奴奶孕它尼巨巧左市布平幼弁弘弗必戊打扔扒扑斥旦朮本未末札正母民氐永汁汀氾犯玄玉瓜瓦甘生用甩田由甲申疋白皮皿目矛矢石示禾穴立丞丟乒乓乩亙交亦亥仿伉伙伊伕伍伐休伏仲件任仰仳份企伋光兇兆先全"], - ["a640", "共再冰列刑划刎刖劣匈匡匠印危吉吏同吊吐吁吋各向名合吃后吆吒因回囝圳地在圭圬圯圩夙多夷夸妄奸妃好她如妁字存宇守宅安寺尖屹州帆并年"], - ["a6a1", "式弛忙忖戎戌戍成扣扛托收早旨旬旭曲曳有朽朴朱朵次此死氖汝汗汙江池汐汕污汛汍汎灰牟牝百竹米糸缶羊羽老考而耒耳聿肉肋肌臣自至臼舌舛舟艮色艾虫血行衣西阡串亨位住佇佗佞伴佛何估佐佑伽伺伸佃佔似但佣"], - ["a740", "作你伯低伶余佝佈佚兌克免兵冶冷別判利刪刨劫助努劬匣即卵吝吭吞吾否呎吧呆呃吳呈呂君吩告吹吻吸吮吵吶吠吼呀吱含吟听囪困囤囫坊坑址坍"], - ["a7a1", "均坎圾坐坏圻壯夾妝妒妨妞妣妙妖妍妤妓妊妥孝孜孚孛完宋宏尬局屁尿尾岐岑岔岌巫希序庇床廷弄弟彤形彷役忘忌志忍忱快忸忪戒我抄抗抖技扶抉扭把扼找批扳抒扯折扮投抓抑抆改攻攸旱更束李杏材村杜杖杞杉杆杠"], - ["a840", "杓杗步每求汞沙沁沈沉沅沛汪決沐汰沌汨沖沒汽沃汲汾汴沆汶沍沔沘沂灶灼災灸牢牡牠狄狂玖甬甫男甸皂盯矣私秀禿究系罕肖肓肝肘肛肚育良芒"], - ["a8a1", "芋芍見角言谷豆豕貝赤走足身車辛辰迂迆迅迄巡邑邢邪邦那酉釆里防阮阱阪阬並乖乳事些亞享京佯依侍佳使佬供例來侃佰併侈佩佻侖佾侏侑佺兔兒兕兩具其典冽函刻券刷刺到刮制剁劾劻卒協卓卑卦卷卸卹取叔受味呵"], - ["a940", "咖呸咕咀呻呷咄咒咆呼咐呱呶和咚呢周咋命咎固垃坷坪坩坡坦坤坼夜奉奇奈奄奔妾妻委妹妮姑姆姐姍始姓姊妯妳姒姅孟孤季宗定官宜宙宛尚屈居"], - ["a9a1", "屆岷岡岸岩岫岱岳帘帚帖帕帛帑幸庚店府底庖延弦弧弩往征彿彼忝忠忽念忿怏怔怯怵怖怪怕怡性怩怫怛或戕房戾所承拉拌拄抿拂抹拒招披拓拔拋拈抨抽押拐拙拇拍抵拚抱拘拖拗拆抬拎放斧於旺昔易昌昆昂明昀昏昕昊"], - ["aa40", "昇服朋杭枋枕東果杳杷枇枝林杯杰板枉松析杵枚枓杼杪杲欣武歧歿氓氛泣注泳沱泌泥河沽沾沼波沫法泓沸泄油況沮泗泅泱沿治泡泛泊沬泯泜泖泠"], - ["aaa1", "炕炎炒炊炙爬爭爸版牧物狀狎狙狗狐玩玨玟玫玥甽疝疙疚的盂盲直知矽社祀祁秉秈空穹竺糾罔羌羋者肺肥肢肱股肫肩肴肪肯臥臾舍芳芝芙芭芽芟芹花芬芥芯芸芣芰芾芷虎虱初表軋迎返近邵邸邱邶采金長門阜陀阿阻附"], - ["ab40", "陂隹雨青非亟亭亮信侵侯便俠俑俏保促侶俘俟俊俗侮俐俄係俚俎俞侷兗冒冑冠剎剃削前剌剋則勇勉勃勁匍南卻厚叛咬哀咨哎哉咸咦咳哇哂咽咪品"], - ["aba1", "哄哈咯咫咱咻咩咧咿囿垂型垠垣垢城垮垓奕契奏奎奐姜姘姿姣姨娃姥姪姚姦威姻孩宣宦室客宥封屎屏屍屋峙峒巷帝帥帟幽庠度建弈弭彥很待徊律徇後徉怒思怠急怎怨恍恰恨恢恆恃恬恫恪恤扁拜挖按拼拭持拮拽指拱拷"], - ["ac40", "拯括拾拴挑挂政故斫施既春昭映昧是星昨昱昤曷柿染柱柔某柬架枯柵柩柯柄柑枴柚查枸柏柞柳枰柙柢柝柒歪殃殆段毒毗氟泉洋洲洪流津洌洱洞洗"], - ["aca1", "活洽派洶洛泵洹洧洸洩洮洵洎洫炫為炳炬炯炭炸炮炤爰牲牯牴狩狠狡玷珊玻玲珍珀玳甚甭畏界畎畋疫疤疥疢疣癸皆皇皈盈盆盃盅省盹相眉看盾盼眇矜砂研砌砍祆祉祈祇禹禺科秒秋穿突竿竽籽紂紅紀紉紇約紆缸美羿耄"], - ["ad40", "耐耍耑耶胖胥胚胃胄背胡胛胎胞胤胝致舢苧范茅苣苛苦茄若茂茉苒苗英茁苜苔苑苞苓苟苯茆虐虹虻虺衍衫要觔計訂訃貞負赴赳趴軍軌述迦迢迪迥"], - ["ada1", "迭迫迤迨郊郎郁郃酋酊重閂限陋陌降面革韋韭音頁風飛食首香乘亳倌倍倣俯倦倥俸倩倖倆值借倚倒們俺倀倔倨俱倡個候倘俳修倭倪俾倫倉兼冤冥冢凍凌准凋剖剜剔剛剝匪卿原厝叟哨唐唁唷哼哥哲唆哺唔哩哭員唉哮哪"], - ["ae40", "哦唧唇哽唏圃圄埂埔埋埃堉夏套奘奚娑娘娜娟娛娓姬娠娣娩娥娌娉孫屘宰害家宴宮宵容宸射屑展屐峭峽峻峪峨峰島崁峴差席師庫庭座弱徒徑徐恙"], - ["aea1", "恣恥恐恕恭恩息悄悟悚悍悔悌悅悖扇拳挈拿捎挾振捕捂捆捏捉挺捐挽挪挫挨捍捌效敉料旁旅時晉晏晃晒晌晅晁書朔朕朗校核案框桓根桂桔栩梳栗桌桑栽柴桐桀格桃株桅栓栘桁殊殉殷氣氧氨氦氤泰浪涕消涇浦浸海浙涓"], - ["af40", "浬涉浮浚浴浩涌涊浹涅浥涔烊烘烤烙烈烏爹特狼狹狽狸狷玆班琉珮珠珪珞畔畝畜畚留疾病症疲疳疽疼疹痂疸皋皰益盍盎眩真眠眨矩砰砧砸砝破砷"], - ["afa1", "砥砭砠砟砲祕祐祠祟祖神祝祗祚秤秣秧租秦秩秘窄窈站笆笑粉紡紗紋紊素索純紐紕級紜納紙紛缺罟羔翅翁耆耘耕耙耗耽耿胱脂胰脅胭胴脆胸胳脈能脊胼胯臭臬舀舐航舫舨般芻茫荒荔荊茸荐草茵茴荏茲茹茶茗荀茱茨荃"], - ["b040", "虔蚊蚪蚓蚤蚩蚌蚣蚜衰衷袁袂衽衹記訐討訌訕訊託訓訖訏訑豈豺豹財貢起躬軒軔軏辱送逆迷退迺迴逃追逅迸邕郡郝郢酒配酌釘針釗釜釙閃院陣陡"], - ["b0a1", "陛陝除陘陞隻飢馬骨高鬥鬲鬼乾偺偽停假偃偌做偉健偶偎偕偵側偷偏倏偯偭兜冕凰剪副勒務勘動匐匏匙匿區匾參曼商啪啦啄啞啡啃啊唱啖問啕唯啤唸售啜唬啣唳啁啗圈國圉域堅堊堆埠埤基堂堵執培夠奢娶婁婉婦婪婀"], - ["b140", "娼婢婚婆婊孰寇寅寄寂宿密尉專將屠屜屝崇崆崎崛崖崢崑崩崔崙崤崧崗巢常帶帳帷康庸庶庵庾張強彗彬彩彫得徙從徘御徠徜恿患悉悠您惋悴惦悽"], - ["b1a1", "情悻悵惜悼惘惕惆惟悸惚惇戚戛扈掠控捲掖探接捷捧掘措捱掩掉掃掛捫推掄授掙採掬排掏掀捻捩捨捺敝敖救教敗啟敏敘敕敔斜斛斬族旋旌旎晝晚晤晨晦晞曹勗望梁梯梢梓梵桿桶梱梧梗械梃棄梭梆梅梔條梨梟梡梂欲殺"], - ["b240", "毫毬氫涎涼淳淙液淡淌淤添淺清淇淋涯淑涮淞淹涸混淵淅淒渚涵淚淫淘淪深淮淨淆淄涪淬涿淦烹焉焊烽烯爽牽犁猜猛猖猓猙率琅琊球理現琍瓠瓶"], - ["b2a1", "瓷甜產略畦畢異疏痔痕疵痊痍皎盔盒盛眷眾眼眶眸眺硫硃硎祥票祭移窒窕笠笨笛第符笙笞笮粒粗粕絆絃統紮紹紼絀細紳組累終紲紱缽羞羚翌翎習耜聊聆脯脖脣脫脩脰脤舂舵舷舶船莎莞莘荸莢莖莽莫莒莊莓莉莠荷荻荼"], - ["b340", "莆莧處彪蛇蛀蚶蛄蚵蛆蛋蚱蚯蛉術袞袈被袒袖袍袋覓規訪訝訣訥許設訟訛訢豉豚販責貫貨貪貧赧赦趾趺軛軟這逍通逗連速逝逐逕逞造透逢逖逛途"], - ["b3a1", "部郭都酗野釵釦釣釧釭釩閉陪陵陳陸陰陴陶陷陬雀雪雩章竟頂頃魚鳥鹵鹿麥麻傢傍傅備傑傀傖傘傚最凱割剴創剩勞勝勛博厥啻喀喧啼喊喝喘喂喜喪喔喇喋喃喳單喟唾喲喚喻喬喱啾喉喫喙圍堯堪場堤堰報堡堝堠壹壺奠"], - ["b440", "婷媚婿媒媛媧孳孱寒富寓寐尊尋就嵌嵐崴嵇巽幅帽幀幃幾廊廁廂廄弼彭復循徨惑惡悲悶惠愜愣惺愕惰惻惴慨惱愎惶愉愀愒戟扉掣掌描揀揩揉揆揍"], - ["b4a1", "插揣提握揖揭揮捶援揪換摒揚揹敞敦敢散斑斐斯普晰晴晶景暑智晾晷曾替期朝棺棕棠棘棗椅棟棵森棧棹棒棲棣棋棍植椒椎棉棚楮棻款欺欽殘殖殼毯氮氯氬港游湔渡渲湧湊渠渥渣減湛湘渤湖湮渭渦湯渴湍渺測湃渝渾滋"], - ["b540", "溉渙湎湣湄湲湩湟焙焚焦焰無然煮焜牌犄犀猶猥猴猩琺琪琳琢琥琵琶琴琯琛琦琨甥甦畫番痢痛痣痙痘痞痠登發皖皓皴盜睏短硝硬硯稍稈程稅稀窘"], - ["b5a1", "窗窖童竣等策筆筐筒答筍筋筏筑粟粥絞結絨絕紫絮絲絡給絢絰絳善翔翕耋聒肅腕腔腋腑腎脹腆脾腌腓腴舒舜菩萃菸萍菠菅萋菁華菱菴著萊菰萌菌菽菲菊萸萎萄菜萇菔菟虛蛟蛙蛭蛔蛛蛤蛐蛞街裁裂袱覃視註詠評詞証詁"], - ["b640", "詔詛詐詆訴診訶詖象貂貯貼貳貽賁費賀貴買貶貿貸越超趁跎距跋跚跑跌跛跆軻軸軼辜逮逵週逸進逶鄂郵鄉郾酣酥量鈔鈕鈣鈉鈞鈍鈐鈇鈑閔閏開閑"], - ["b6a1", "間閒閎隊階隋陽隅隆隍陲隄雁雅雄集雇雯雲韌項順須飧飪飯飩飲飭馮馭黃黍黑亂傭債傲傳僅傾催傷傻傯僇剿剷剽募勦勤勢勣匯嗟嗨嗓嗦嗎嗜嗇嗑嗣嗤嗯嗚嗡嗅嗆嗥嗉園圓塞塑塘塗塚塔填塌塭塊塢塒塋奧嫁嫉嫌媾媽媼"], - ["b740", "媳嫂媲嵩嵯幌幹廉廈弒彙徬微愚意慈感想愛惹愁愈慎慌慄慍愾愴愧愍愆愷戡戢搓搾搞搪搭搽搬搏搜搔損搶搖搗搆敬斟新暗暉暇暈暖暄暘暍會榔業"], - ["b7a1", "楚楷楠楔極椰概楊楨楫楞楓楹榆楝楣楛歇歲毀殿毓毽溢溯滓溶滂源溝滇滅溥溘溼溺溫滑準溜滄滔溪溧溴煎煙煩煤煉照煜煬煦煌煥煞煆煨煖爺牒猷獅猿猾瑯瑚瑕瑟瑞瑁琿瑙瑛瑜當畸瘀痰瘁痲痱痺痿痴痳盞盟睛睫睦睞督"], - ["b840", "睹睪睬睜睥睨睢矮碎碰碗碘碌碉硼碑碓硿祺祿禁萬禽稜稚稠稔稟稞窟窠筷節筠筮筧粱粳粵經絹綑綁綏絛置罩罪署義羨群聖聘肆肄腱腰腸腥腮腳腫"], - ["b8a1", "腹腺腦舅艇蒂葷落萱葵葦葫葉葬葛萼萵葡董葩葭葆虞虜號蛹蜓蜈蜇蜀蛾蛻蜂蜃蜆蜊衙裟裔裙補裘裝裡裊裕裒覜解詫該詳試詩詰誇詼詣誠話誅詭詢詮詬詹詻訾詨豢貊貉賊資賈賄貲賃賂賅跡跟跨路跳跺跪跤跦躲較載軾輊"], - ["b940", "辟農運遊道遂達逼違遐遇遏過遍遑逾遁鄒鄗酬酪酩釉鈷鉗鈸鈽鉀鈾鉛鉋鉤鉑鈴鉉鉍鉅鈹鈿鉚閘隘隔隕雍雋雉雊雷電雹零靖靴靶預頑頓頊頒頌飼飴"], - ["b9a1", "飽飾馳馱馴髡鳩麂鼎鼓鼠僧僮僥僖僭僚僕像僑僱僎僩兢凳劃劂匱厭嗾嘀嘛嘗嗽嘔嘆嘉嘍嘎嗷嘖嘟嘈嘐嗶團圖塵塾境墓墊塹墅塽壽夥夢夤奪奩嫡嫦嫩嫗嫖嫘嫣孵寞寧寡寥實寨寢寤察對屢嶄嶇幛幣幕幗幔廓廖弊彆彰徹慇"], - ["ba40", "愿態慷慢慣慟慚慘慵截撇摘摔撤摸摟摺摑摧搴摭摻敲斡旗旖暢暨暝榜榨榕槁榮槓構榛榷榻榫榴槐槍榭槌榦槃榣歉歌氳漳演滾漓滴漩漾漠漬漏漂漢"], - ["baa1", "滿滯漆漱漸漲漣漕漫漯澈漪滬漁滲滌滷熔熙煽熊熄熒爾犒犖獄獐瑤瑣瑪瑰瑭甄疑瘧瘍瘋瘉瘓盡監瞄睽睿睡磁碟碧碳碩碣禎福禍種稱窪窩竭端管箕箋筵算箝箔箏箸箇箄粹粽精綻綰綜綽綾綠緊綴網綱綺綢綿綵綸維緒緇綬"], - ["bb40", "罰翠翡翟聞聚肇腐膀膏膈膊腿膂臧臺與舔舞艋蓉蒿蓆蓄蒙蒞蒲蒜蓋蒸蓀蓓蒐蒼蓑蓊蜿蜜蜻蜢蜥蜴蜘蝕蜷蜩裳褂裴裹裸製裨褚裯誦誌語誣認誡誓誤"], - ["bba1", "說誥誨誘誑誚誧豪貍貌賓賑賒赫趙趕跼輔輒輕輓辣遠遘遜遣遙遞遢遝遛鄙鄘鄞酵酸酷酴鉸銀銅銘銖鉻銓銜銨鉼銑閡閨閩閣閥閤隙障際雌雒需靼鞅韶頗領颯颱餃餅餌餉駁骯骰髦魁魂鳴鳶鳳麼鼻齊億儀僻僵價儂儈儉儅凜"], - ["bc40", "劇劈劉劍劊勰厲嘮嘻嘹嘲嘿嘴嘩噓噎噗噴嘶嘯嘰墀墟增墳墜墮墩墦奭嬉嫻嬋嫵嬌嬈寮寬審寫層履嶝嶔幢幟幡廢廚廟廝廣廠彈影德徵慶慧慮慝慕憂"], - ["bca1", "慼慰慫慾憧憐憫憎憬憚憤憔憮戮摩摯摹撞撲撈撐撰撥撓撕撩撒撮播撫撚撬撙撢撳敵敷數暮暫暴暱樣樟槨樁樞標槽模樓樊槳樂樅槭樑歐歎殤毅毆漿潼澄潑潦潔澆潭潛潸潮澎潺潰潤澗潘滕潯潠潟熟熬熱熨牖犛獎獗瑩璋璃"], - ["bd40", "瑾璀畿瘠瘩瘟瘤瘦瘡瘢皚皺盤瞎瞇瞌瞑瞋磋磅確磊碾磕碼磐稿稼穀稽稷稻窯窮箭箱範箴篆篇篁箠篌糊締練緯緻緘緬緝編緣線緞緩綞緙緲緹罵罷羯"], - ["bda1", "翩耦膛膜膝膠膚膘蔗蔽蔚蓮蔬蔭蔓蔑蔣蔡蔔蓬蔥蓿蔆螂蝴蝶蝠蝦蝸蝨蝙蝗蝌蝓衛衝褐複褒褓褕褊誼諒談諄誕請諸課諉諂調誰論諍誶誹諛豌豎豬賠賞賦賤賬賭賢賣賜質賡赭趟趣踫踐踝踢踏踩踟踡踞躺輝輛輟輩輦輪輜輞"], - ["be40", "輥適遮遨遭遷鄰鄭鄧鄱醇醉醋醃鋅銻銷鋪銬鋤鋁銳銼鋒鋇鋰銲閭閱霄霆震霉靠鞍鞋鞏頡頫頜颳養餓餒餘駝駐駟駛駑駕駒駙骷髮髯鬧魅魄魷魯鴆鴉"], - ["bea1", "鴃麩麾黎墨齒儒儘儔儐儕冀冪凝劑劓勳噙噫噹噩噤噸噪器噥噱噯噬噢噶壁墾壇壅奮嬝嬴學寰導彊憲憑憩憊懍憶憾懊懈戰擅擁擋撻撼據擄擇擂操撿擒擔撾整曆曉暹曄曇暸樽樸樺橙橫橘樹橄橢橡橋橇樵機橈歙歷氅濂澱澡"], - ["bf40", "濃澤濁澧澳激澹澶澦澠澴熾燉燐燒燈燕熹燎燙燜燃燄獨璜璣璘璟璞瓢甌甍瘴瘸瘺盧盥瞠瞞瞟瞥磨磚磬磧禦積穎穆穌穋窺篙簑築篤篛篡篩篦糕糖縊"], - ["bfa1", "縑縈縛縣縞縝縉縐罹羲翰翱翮耨膳膩膨臻興艘艙蕊蕙蕈蕨蕩蕃蕉蕭蕪蕞螃螟螞螢融衡褪褲褥褫褡親覦諦諺諫諱謀諜諧諮諾謁謂諷諭諳諶諼豫豭貓賴蹄踱踴蹂踹踵輻輯輸輳辨辦遵遴選遲遼遺鄴醒錠錶鋸錳錯錢鋼錫錄錚"], - ["c040", "錐錦錡錕錮錙閻隧隨險雕霎霑霖霍霓霏靛靜靦鞘頰頸頻頷頭頹頤餐館餞餛餡餚駭駢駱骸骼髻髭鬨鮑鴕鴣鴦鴨鴒鴛默黔龍龜優償儡儲勵嚎嚀嚐嚅嚇"], - ["c0a1", "嚏壕壓壑壎嬰嬪嬤孺尷屨嶼嶺嶽嶸幫彌徽應懂懇懦懋戲戴擎擊擘擠擰擦擬擱擢擭斂斃曙曖檀檔檄檢檜櫛檣橾檗檐檠歜殮毚氈濘濱濟濠濛濤濫濯澀濬濡濩濕濮濰燧營燮燦燥燭燬燴燠爵牆獰獲璩環璦璨癆療癌盪瞳瞪瞰瞬"], - ["c140", "瞧瞭矯磷磺磴磯礁禧禪穗窿簇簍篾篷簌篠糠糜糞糢糟糙糝縮績繆縷縲繃縫總縱繅繁縴縹繈縵縿縯罄翳翼聱聲聰聯聳臆臃膺臂臀膿膽臉膾臨舉艱薪"], - ["c1a1", "薄蕾薜薑薔薯薛薇薨薊虧蟀蟑螳蟒蟆螫螻螺蟈蟋褻褶襄褸褽覬謎謗謙講謊謠謝謄謐豁谿豳賺賽購賸賻趨蹉蹋蹈蹊轄輾轂轅輿避遽還邁邂邀鄹醣醞醜鍍鎂錨鍵鍊鍥鍋錘鍾鍬鍛鍰鍚鍔闊闋闌闈闆隱隸雖霜霞鞠韓顆颶餵騁"], - ["c240", "駿鮮鮫鮪鮭鴻鴿麋黏點黜黝黛鼾齋叢嚕嚮壙壘嬸彝懣戳擴擲擾攆擺擻擷斷曜朦檳檬櫃檻檸櫂檮檯歟歸殯瀉瀋濾瀆濺瀑瀏燻燼燾燸獷獵璧璿甕癖癘"], - ["c2a1", "癒瞽瞿瞻瞼礎禮穡穢穠竄竅簫簧簪簞簣簡糧織繕繞繚繡繒繙罈翹翻職聶臍臏舊藏薩藍藐藉薰薺薹薦蟯蟬蟲蟠覆覲觴謨謹謬謫豐贅蹙蹣蹦蹤蹟蹕軀轉轍邇邃邈醫醬釐鎔鎊鎖鎢鎳鎮鎬鎰鎘鎚鎗闔闖闐闕離雜雙雛雞霤鞣鞦"], - ["c340", "鞭韹額顏題顎顓颺餾餿餽餮馥騎髁鬃鬆魏魎魍鯊鯉鯽鯈鯀鵑鵝鵠黠鼕鼬儳嚥壞壟壢寵龐廬懲懷懶懵攀攏曠曝櫥櫝櫚櫓瀛瀟瀨瀚瀝瀕瀘爆爍牘犢獸"], - ["c3a1", "獺璽瓊瓣疇疆癟癡矇礙禱穫穩簾簿簸簽簷籀繫繭繹繩繪羅繳羶羹羸臘藩藝藪藕藤藥藷蟻蠅蠍蟹蟾襠襟襖襞譁譜識證譚譎譏譆譙贈贊蹼蹲躇蹶蹬蹺蹴轔轎辭邊邋醱醮鏡鏑鏟鏃鏈鏜鏝鏖鏢鏍鏘鏤鏗鏨關隴難霪霧靡韜韻類"], - ["c440", "願顛颼饅饉騖騙鬍鯨鯧鯖鯛鶉鵡鵲鵪鵬麒麗麓麴勸嚨嚷嚶嚴嚼壤孀孃孽寶巉懸懺攘攔攙曦朧櫬瀾瀰瀲爐獻瓏癢癥礦礪礬礫竇競籌籃籍糯糰辮繽繼"], - ["c4a1", "纂罌耀臚艦藻藹蘑藺蘆蘋蘇蘊蠔蠕襤覺觸議譬警譯譟譫贏贍躉躁躅躂醴釋鐘鐃鏽闡霰飄饒饑馨騫騰騷騵鰓鰍鹹麵黨鼯齟齣齡儷儸囁囀囂夔屬巍懼懾攝攜斕曩櫻欄櫺殲灌爛犧瓖瓔癩矓籐纏續羼蘗蘭蘚蠣蠢蠡蠟襪襬覽譴"], - ["c540", "護譽贓躊躍躋轟辯醺鐮鐳鐵鐺鐸鐲鐫闢霸霹露響顧顥饗驅驃驀騾髏魔魑鰭鰥鶯鶴鷂鶸麝黯鼙齜齦齧儼儻囈囊囉孿巔巒彎懿攤權歡灑灘玀瓤疊癮癬"], - ["c5a1", "禳籠籟聾聽臟襲襯觼讀贖贗躑躓轡酈鑄鑑鑒霽霾韃韁顫饕驕驍髒鬚鱉鰱鰾鰻鷓鷗鼴齬齪龔囌巖戀攣攫攪曬欐瓚竊籤籣籥纓纖纔臢蘸蘿蠱變邐邏鑣鑠鑤靨顯饜驚驛驗髓體髑鱔鱗鱖鷥麟黴囑壩攬灞癱癲矗罐羈蠶蠹衢讓讒"], - ["c640", "讖艷贛釀鑪靂靈靄韆顰驟鬢魘鱟鷹鷺鹼鹽鼇齷齲廳欖灣籬籮蠻觀躡釁鑲鑰顱饞髖鬣黌灤矚讚鑷韉驢驥纜讜躪釅鑽鑾鑼鱷鱸黷豔鑿鸚爨驪鬱鸛鸞籲"], - ["c940", "乂乜凵匚厂万丌乇亍囗兀屮彳丏冇与丮亓仂仉仈冘勼卬厹圠夃夬尐巿旡殳毌气爿丱丼仨仜仩仡仝仚刌匜卌圢圣夗夯宁宄尒尻屴屳帄庀庂忉戉扐氕"], - ["c9a1", "氶汃氿氻犮犰玊禸肊阞伎优伬仵伔仱伀价伈伝伂伅伢伓伄仴伒冱刓刉刐劦匢匟卍厊吇囡囟圮圪圴夼妀奼妅奻奾奷奿孖尕尥屼屺屻屾巟幵庄异弚彴忕忔忏扜扞扤扡扦扢扙扠扚扥旯旮朾朹朸朻机朿朼朳氘汆汒汜汏汊汔汋"], - ["ca40", "汌灱牞犴犵玎甪癿穵网艸艼芀艽艿虍襾邙邗邘邛邔阢阤阠阣佖伻佢佉体佤伾佧佒佟佁佘伭伳伿佡冏冹刜刞刡劭劮匉卣卲厎厏吰吷吪呔呅吙吜吥吘"], - ["caa1", "吽呏呁吨吤呇囮囧囥坁坅坌坉坋坒夆奀妦妘妠妗妎妢妐妏妧妡宎宒尨尪岍岏岈岋岉岒岊岆岓岕巠帊帎庋庉庌庈庍弅弝彸彶忒忑忐忭忨忮忳忡忤忣忺忯忷忻怀忴戺抃抌抎抏抔抇扱扻扺扰抁抈扷扽扲扴攷旰旴旳旲旵杅杇"], - ["cb40", "杙杕杌杈杝杍杚杋毐氙氚汸汧汫沄沋沏汱汯汩沚汭沇沕沜汦汳汥汻沎灴灺牣犿犽狃狆狁犺狅玕玗玓玔玒町甹疔疕皁礽耴肕肙肐肒肜芐芏芅芎芑芓"], - ["cba1", "芊芃芄豸迉辿邟邡邥邞邧邠阰阨阯阭丳侘佼侅佽侀侇佶佴侉侄佷佌侗佪侚佹侁佸侐侜侔侞侒侂侕佫佮冞冼冾刵刲刳剆刱劼匊匋匼厒厔咇呿咁咑咂咈呫呺呾呥呬呴呦咍呯呡呠咘呣呧呤囷囹坯坲坭坫坱坰坶垀坵坻坳坴坢"], - ["cc40", "坨坽夌奅妵妺姏姎妲姌姁妶妼姃姖妱妽姀姈妴姇孢孥宓宕屄屇岮岤岠岵岯岨岬岟岣岭岢岪岧岝岥岶岰岦帗帔帙弨弢弣弤彔徂彾彽忞忥怭怦怙怲怋"], - ["cca1", "怴怊怗怳怚怞怬怢怍怐怮怓怑怌怉怜戔戽抭抴拑抾抪抶拊抮抳抯抻抩抰抸攽斨斻昉旼昄昒昈旻昃昋昍昅旽昑昐曶朊枅杬枎枒杶杻枘枆构杴枍枌杺枟枑枙枃杽极杸杹枔欥殀歾毞氝沓泬泫泮泙沶泔沭泧沷泐泂沺泃泆泭泲"], - ["cd40", "泒泝沴沊沝沀泞泀洰泍泇沰泹泏泩泑炔炘炅炓炆炄炑炖炂炚炃牪狖狋狘狉狜狒狔狚狌狑玤玡玭玦玢玠玬玝瓝瓨甿畀甾疌疘皯盳盱盰盵矸矼矹矻矺"], - ["cda1", "矷祂礿秅穸穻竻籵糽耵肏肮肣肸肵肭舠芠苀芫芚芘芛芵芧芮芼芞芺芴芨芡芩苂芤苃芶芢虰虯虭虮豖迒迋迓迍迖迕迗邲邴邯邳邰阹阽阼阺陃俍俅俓侲俉俋俁俔俜俙侻侳俛俇俖侺俀侹俬剄剉勀勂匽卼厗厖厙厘咺咡咭咥哏"], - ["ce40", "哃茍咷咮哖咶哅哆咠呰咼咢咾呲哞咰垵垞垟垤垌垗垝垛垔垘垏垙垥垚垕壴复奓姡姞姮娀姱姝姺姽姼姶姤姲姷姛姩姳姵姠姾姴姭宨屌峐峘峌峗峋峛"], - ["cea1", "峞峚峉峇峊峖峓峔峏峈峆峎峟峸巹帡帢帣帠帤庰庤庢庛庣庥弇弮彖徆怷怹恔恲恞恅恓恇恉恛恌恀恂恟怤恄恘恦恮扂扃拏挍挋拵挎挃拫拹挏挌拸拶挀挓挔拺挕拻拰敁敃斪斿昶昡昲昵昜昦昢昳昫昺昝昴昹昮朏朐柁柲柈枺"], - ["cf40", "柜枻柸柘柀枷柅柫柤柟枵柍枳柷柶柮柣柂枹柎柧柰枲柼柆柭柌枮柦柛柺柉柊柃柪柋欨殂殄殶毖毘毠氠氡洨洴洭洟洼洿洒洊泚洳洄洙洺洚洑洀洝浂"], - ["cfa1", "洁洘洷洃洏浀洇洠洬洈洢洉洐炷炟炾炱炰炡炴炵炩牁牉牊牬牰牳牮狊狤狨狫狟狪狦狣玅珌珂珈珅玹玶玵玴珫玿珇玾珃珆玸珋瓬瓮甮畇畈疧疪癹盄眈眃眄眅眊盷盻盺矧矨砆砑砒砅砐砏砎砉砃砓祊祌祋祅祄秕种秏秖秎窀"], - ["d040", "穾竑笀笁籺籸籹籿粀粁紃紈紁罘羑羍羾耇耎耏耔耷胘胇胠胑胈胂胐胅胣胙胜胊胕胉胏胗胦胍臿舡芔苙苾苹茇苨茀苕茺苫苖苴苬苡苲苵茌苻苶苰苪"], - ["d0a1", "苤苠苺苳苭虷虴虼虳衁衎衧衪衩觓訄訇赲迣迡迮迠郱邽邿郕郅邾郇郋郈釔釓陔陏陑陓陊陎倞倅倇倓倢倰倛俵俴倳倷倬俶俷倗倜倠倧倵倯倱倎党冔冓凊凄凅凈凎剡剚剒剞剟剕剢勍匎厞唦哢唗唒哧哳哤唚哿唄唈哫唑唅哱"], - ["d140", "唊哻哷哸哠唎唃唋圁圂埌堲埕埒垺埆垽垼垸垶垿埇埐垹埁夎奊娙娖娭娮娕娏娗娊娞娳孬宧宭宬尃屖屔峬峿峮峱峷崀峹帩帨庨庮庪庬弳弰彧恝恚恧"], - ["d1a1", "恁悢悈悀悒悁悝悃悕悛悗悇悜悎戙扆拲挐捖挬捄捅挶捃揤挹捋捊挼挩捁挴捘捔捙挭捇挳捚捑挸捗捀捈敊敆旆旃旄旂晊晟晇晑朒朓栟栚桉栲栳栻桋桏栖栱栜栵栫栭栯桎桄栴栝栒栔栦栨栮桍栺栥栠欬欯欭欱欴歭肂殈毦毤"], - ["d240", "毨毣毢毧氥浺浣浤浶洍浡涒浘浢浭浯涑涍淯浿涆浞浧浠涗浰浼浟涂涘洯浨涋浾涀涄洖涃浻浽浵涐烜烓烑烝烋缹烢烗烒烞烠烔烍烅烆烇烚烎烡牂牸"], - ["d2a1", "牷牶猀狺狴狾狶狳狻猁珓珙珥珖玼珧珣珩珜珒珛珔珝珚珗珘珨瓞瓟瓴瓵甡畛畟疰痁疻痄痀疿疶疺皊盉眝眛眐眓眒眣眑眕眙眚眢眧砣砬砢砵砯砨砮砫砡砩砳砪砱祔祛祏祜祓祒祑秫秬秠秮秭秪秜秞秝窆窉窅窋窌窊窇竘笐"], - ["d340", "笄笓笅笏笈笊笎笉笒粄粑粊粌粈粍粅紞紝紑紎紘紖紓紟紒紏紌罜罡罞罠罝罛羖羒翃翂翀耖耾耹胺胲胹胵脁胻脀舁舯舥茳茭荄茙荑茥荖茿荁茦茜茢"], - ["d3a1", "荂荎茛茪茈茼荍茖茤茠茷茯茩荇荅荌荓茞茬荋茧荈虓虒蚢蚨蚖蚍蚑蚞蚇蚗蚆蚋蚚蚅蚥蚙蚡蚧蚕蚘蚎蚝蚐蚔衃衄衭衵衶衲袀衱衿衯袃衾衴衼訒豇豗豻貤貣赶赸趵趷趶軑軓迾迵适迿迻逄迼迶郖郠郙郚郣郟郥郘郛郗郜郤酐"], - ["d440", "酎酏釕釢釚陜陟隼飣髟鬯乿偰偪偡偞偠偓偋偝偲偈偍偁偛偊偢倕偅偟偩偫偣偤偆偀偮偳偗偑凐剫剭剬剮勖勓匭厜啵啶唼啍啐唴唪啑啢唶唵唰啒啅"], - ["d4a1", "唌唲啥啎唹啈唭唻啀啋圊圇埻堔埢埶埜埴堀埭埽堈埸堋埳埏堇埮埣埲埥埬埡堎埼堐埧堁堌埱埩埰堍堄奜婠婘婕婧婞娸娵婭婐婟婥婬婓婤婗婃婝婒婄婛婈媎娾婍娹婌婰婩婇婑婖婂婜孲孮寁寀屙崞崋崝崚崠崌崨崍崦崥崏"], - ["d540", "崰崒崣崟崮帾帴庱庴庹庲庳弶弸徛徖徟悊悐悆悾悰悺惓惔惏惤惙惝惈悱惛悷惊悿惃惍惀挲捥掊掂捽掽掞掭掝掗掫掎捯掇掐据掯捵掜捭掮捼掤挻掟"], - ["d5a1", "捸掅掁掑掍捰敓旍晥晡晛晙晜晢朘桹梇梐梜桭桮梮梫楖桯梣梬梩桵桴梲梏桷梒桼桫桲梪梀桱桾梛梖梋梠梉梤桸桻梑梌梊桽欶欳欷欸殑殏殍殎殌氪淀涫涴涳湴涬淩淢涷淶淔渀淈淠淟淖涾淥淜淝淛淴淊涽淭淰涺淕淂淏淉"], - ["d640", "淐淲淓淽淗淍淣涻烺焍烷焗烴焌烰焄烳焐烼烿焆焓焀烸烶焋焂焎牾牻牼牿猝猗猇猑猘猊猈狿猏猞玈珶珸珵琄琁珽琇琀珺珼珿琌琋珴琈畤畣痎痒痏"], - ["d6a1", "痋痌痑痐皏皉盓眹眯眭眱眲眴眳眽眥眻眵硈硒硉硍硊硌砦硅硐祤祧祩祪祣祫祡离秺秸秶秷窏窔窐笵筇笴笥笰笢笤笳笘笪笝笱笫笭笯笲笸笚笣粔粘粖粣紵紽紸紶紺絅紬紩絁絇紾紿絊紻紨罣羕羜羝羛翊翋翍翐翑翇翏翉耟"], - ["d740", "耞耛聇聃聈脘脥脙脛脭脟脬脞脡脕脧脝脢舑舸舳舺舴舲艴莐莣莨莍荺荳莤荴莏莁莕莙荵莔莩荽莃莌莝莛莪莋荾莥莯莈莗莰荿莦莇莮荶莚虙虖蚿蚷"], - ["d7a1", "蛂蛁蛅蚺蚰蛈蚹蚳蚸蛌蚴蚻蚼蛃蚽蚾衒袉袕袨袢袪袚袑袡袟袘袧袙袛袗袤袬袌袓袎覂觖觙觕訰訧訬訞谹谻豜豝豽貥赽赻赹趼跂趹趿跁軘軞軝軜軗軠軡逤逋逑逜逌逡郯郪郰郴郲郳郔郫郬郩酖酘酚酓酕釬釴釱釳釸釤釹釪"], - ["d840", "釫釷釨釮镺閆閈陼陭陫陱陯隿靪頄飥馗傛傕傔傞傋傣傃傌傎傝偨傜傒傂傇兟凔匒匑厤厧喑喨喥喭啷噅喢喓喈喏喵喁喣喒喤啽喌喦啿喕喡喎圌堩堷"], - ["d8a1", "堙堞堧堣堨埵塈堥堜堛堳堿堶堮堹堸堭堬堻奡媯媔媟婺媢媞婸媦婼媥媬媕媮娷媄媊媗媃媋媩婻婽媌媜媏媓媝寪寍寋寔寑寊寎尌尰崷嵃嵫嵁嵋崿崵嵑嵎嵕崳崺嵒崽崱嵙嵂崹嵉崸崼崲崶嵀嵅幄幁彘徦徥徫惉悹惌惢惎惄愔"], - ["d940", "惲愊愖愅惵愓惸惼惾惁愃愘愝愐惿愄愋扊掔掱掰揎揥揨揯揃撝揳揊揠揶揕揲揵摡揟掾揝揜揄揘揓揂揇揌揋揈揰揗揙攲敧敪敤敜敨敥斌斝斞斮旐旒"], - ["d9a1", "晼晬晻暀晱晹晪晲朁椌棓椄棜椪棬棪棱椏棖棷棫棤棶椓椐棳棡椇棌椈楰梴椑棯棆椔棸棐棽棼棨椋椊椗棎棈棝棞棦棴棑椆棔棩椕椥棇欹欻欿欼殔殗殙殕殽毰毲毳氰淼湆湇渟湉溈渼渽湅湢渫渿湁湝湳渜渳湋湀湑渻渃渮湞"], - ["da40", "湨湜湡渱渨湠湱湫渹渢渰湓湥渧湸湤湷湕湹湒湦渵渶湚焠焞焯烻焮焱焣焥焢焲焟焨焺焛牋牚犈犉犆犅犋猒猋猰猢猱猳猧猲猭猦猣猵猌琮琬琰琫琖"], - ["daa1", "琚琡琭琱琤琣琝琩琠琲瓻甯畯畬痧痚痡痦痝痟痤痗皕皒盚睆睇睄睍睅睊睎睋睌矞矬硠硤硥硜硭硱硪确硰硩硨硞硢祴祳祲祰稂稊稃稌稄窙竦竤筊笻筄筈筌筎筀筘筅粢粞粨粡絘絯絣絓絖絧絪絏絭絜絫絒絔絩絑絟絎缾缿罥"], - ["db40", "罦羢羠羡翗聑聏聐胾胔腃腊腒腏腇脽腍脺臦臮臷臸臹舄舼舽舿艵茻菏菹萣菀菨萒菧菤菼菶萐菆菈菫菣莿萁菝菥菘菿菡菋菎菖菵菉萉萏菞萑萆菂菳"], - ["dba1", "菕菺菇菑菪萓菃菬菮菄菻菗菢萛菛菾蛘蛢蛦蛓蛣蛚蛪蛝蛫蛜蛬蛩蛗蛨蛑衈衖衕袺裗袹袸裀袾袶袼袷袽袲褁裉覕覘覗觝觚觛詎詍訹詙詀詗詘詄詅詒詈詑詊詌詏豟貁貀貺貾貰貹貵趄趀趉跘跓跍跇跖跜跏跕跙跈跗跅軯軷軺"], - ["dc40", "軹軦軮軥軵軧軨軶軫軱軬軴軩逭逴逯鄆鄬鄄郿郼鄈郹郻鄁鄀鄇鄅鄃酡酤酟酢酠鈁鈊鈥鈃鈚鈦鈏鈌鈀鈒釿釽鈆鈄鈧鈂鈜鈤鈙鈗鈅鈖镻閍閌閐隇陾隈"], - ["dca1", "隉隃隀雂雈雃雱雰靬靰靮頇颩飫鳦黹亃亄亶傽傿僆傮僄僊傴僈僂傰僁傺傱僋僉傶傸凗剺剸剻剼嗃嗛嗌嗐嗋嗊嗝嗀嗔嗄嗩喿嗒喍嗏嗕嗢嗖嗈嗲嗍嗙嗂圔塓塨塤塏塍塉塯塕塎塝塙塥塛堽塣塱壼嫇嫄嫋媺媸媱媵媰媿嫈媻嫆"], - ["dd40", "媷嫀嫊媴媶嫍媹媐寖寘寙尟尳嵱嵣嵊嵥嵲嵬嵞嵨嵧嵢巰幏幎幊幍幋廅廌廆廋廇彀徯徭惷慉慊愫慅愶愲愮慆愯慏愩慀戠酨戣戥戤揅揱揫搐搒搉搠搤"], - ["dda1", "搳摃搟搕搘搹搷搢搣搌搦搰搨摁搵搯搊搚摀搥搧搋揧搛搮搡搎敯斒旓暆暌暕暐暋暊暙暔晸朠楦楟椸楎楢楱椿楅楪椹楂楗楙楺楈楉椵楬椳椽楥棰楸椴楩楀楯楄楶楘楁楴楌椻楋椷楜楏楑椲楒椯楻椼歆歅歃歂歈歁殛嗀毻毼"], - ["de40", "毹毷毸溛滖滈溏滀溟溓溔溠溱溹滆滒溽滁溞滉溷溰滍溦滏溲溾滃滜滘溙溒溎溍溤溡溿溳滐滊溗溮溣煇煔煒煣煠煁煝煢煲煸煪煡煂煘煃煋煰煟煐煓"], - ["dea1", "煄煍煚牏犍犌犑犐犎猼獂猻猺獀獊獉瑄瑊瑋瑒瑑瑗瑀瑏瑐瑎瑂瑆瑍瑔瓡瓿瓾瓽甝畹畷榃痯瘏瘃痷痾痼痹痸瘐痻痶痭痵痽皙皵盝睕睟睠睒睖睚睩睧睔睙睭矠碇碚碔碏碄碕碅碆碡碃硹碙碀碖硻祼禂祽祹稑稘稙稒稗稕稢稓"], - ["df40", "稛稐窣窢窞竫筦筤筭筴筩筲筥筳筱筰筡筸筶筣粲粴粯綈綆綀綍絿綅絺綎絻綃絼綌綔綄絽綒罭罫罧罨罬羦羥羧翛翜耡腤腠腷腜腩腛腢腲朡腞腶腧腯"], - ["dfa1", "腄腡舝艉艄艀艂艅蓱萿葖葶葹蒏蒍葥葑葀蒆葧萰葍葽葚葙葴葳葝蔇葞萷萺萴葺葃葸萲葅萩菙葋萯葂萭葟葰萹葎葌葒葯蓅蒎萻葇萶萳葨葾葄萫葠葔葮葐蜋蜄蛷蜌蛺蛖蛵蝍蛸蜎蜉蜁蛶蜍蜅裖裋裍裎裞裛裚裌裐覅覛觟觥觤"], - ["e040", "觡觠觢觜触詶誆詿詡訿詷誂誄詵誃誁詴詺谼豋豊豥豤豦貆貄貅賌赨赩趑趌趎趏趍趓趔趐趒跰跠跬跱跮跐跩跣跢跧跲跫跴輆軿輁輀輅輇輈輂輋遒逿"], - ["e0a1", "遄遉逽鄐鄍鄏鄑鄖鄔鄋鄎酮酯鉈鉒鈰鈺鉦鈳鉥鉞銃鈮鉊鉆鉭鉬鉏鉠鉧鉯鈶鉡鉰鈱鉔鉣鉐鉲鉎鉓鉌鉖鈲閟閜閞閛隒隓隑隗雎雺雽雸雵靳靷靸靲頏頍頎颬飶飹馯馲馰馵骭骫魛鳪鳭鳧麀黽僦僔僗僨僳僛僪僝僤僓僬僰僯僣僠"], - ["e140", "凘劀劁勩勫匰厬嘧嘕嘌嘒嗼嘏嘜嘁嘓嘂嗺嘝嘄嗿嗹墉塼墐墘墆墁塿塴墋塺墇墑墎塶墂墈塻墔墏壾奫嫜嫮嫥嫕嫪嫚嫭嫫嫳嫢嫠嫛嫬嫞嫝嫙嫨嫟孷寠"], - ["e1a1", "寣屣嶂嶀嵽嶆嵺嶁嵷嶊嶉嶈嵾嵼嶍嵹嵿幘幙幓廘廑廗廎廜廕廙廒廔彄彃彯徶愬愨慁慞慱慳慒慓慲慬憀慴慔慺慛慥愻慪慡慖戩戧戫搫摍摛摝摴摶摲摳摽摵摦撦摎撂摞摜摋摓摠摐摿搿摬摫摙摥摷敳斠暡暠暟朅朄朢榱榶槉"], - ["e240", "榠槎榖榰榬榼榑榙榎榧榍榩榾榯榿槄榽榤槔榹槊榚槏榳榓榪榡榞槙榗榐槂榵榥槆歊歍歋殞殟殠毃毄毾滎滵滱漃漥滸漷滻漮漉潎漙漚漧漘漻漒滭漊"], - ["e2a1", "漶潳滹滮漭潀漰漼漵滫漇漎潃漅滽滶漹漜滼漺漟漍漞漈漡熇熐熉熀熅熂熏煻熆熁熗牄牓犗犕犓獃獍獑獌瑢瑳瑱瑵瑲瑧瑮甀甂甃畽疐瘖瘈瘌瘕瘑瘊瘔皸瞁睼瞅瞂睮瞀睯睾瞃碲碪碴碭碨硾碫碞碥碠碬碢碤禘禊禋禖禕禔禓"], - ["e340", "禗禈禒禐稫穊稰稯稨稦窨窫窬竮箈箜箊箑箐箖箍箌箛箎箅箘劄箙箤箂粻粿粼粺綧綷緂綣綪緁緀緅綝緎緄緆緋緌綯綹綖綼綟綦綮綩綡緉罳翢翣翥翞"], - ["e3a1", "耤聝聜膉膆膃膇膍膌膋舕蒗蒤蒡蒟蒺蓎蓂蒬蒮蒫蒹蒴蓁蓍蒪蒚蒱蓐蒝蒧蒻蒢蒔蓇蓌蒛蒩蒯蒨蓖蒘蒶蓏蒠蓗蓔蓒蓛蒰蒑虡蜳蜣蜨蝫蝀蜮蜞蜡蜙蜛蝃蜬蝁蜾蝆蜠蜲蜪蜭蜼蜒蜺蜱蜵蝂蜦蜧蜸蜤蜚蜰蜑裷裧裱裲裺裾裮裼裶裻"], - ["e440", "裰裬裫覝覡覟覞觩觫觨誫誙誋誒誏誖谽豨豩賕賏賗趖踉踂跿踍跽踊踃踇踆踅跾踀踄輐輑輎輍鄣鄜鄠鄢鄟鄝鄚鄤鄡鄛酺酲酹酳銥銤鉶銛鉺銠銔銪銍"], - ["e4a1", "銦銚銫鉹銗鉿銣鋮銎銂銕銢鉽銈銡銊銆銌銙銧鉾銇銩銝銋鈭隞隡雿靘靽靺靾鞃鞀鞂靻鞄鞁靿韎韍頖颭颮餂餀餇馝馜駃馹馻馺駂馽駇骱髣髧鬾鬿魠魡魟鳱鳲鳵麧僿儃儰僸儆儇僶僾儋儌僽儊劋劌勱勯噈噂噌嘵噁噊噉噆噘"], - ["e540", "噚噀嘳嘽嘬嘾嘸嘪嘺圚墫墝墱墠墣墯墬墥墡壿嫿嫴嫽嫷嫶嬃嫸嬂嫹嬁嬇嬅嬏屧嶙嶗嶟嶒嶢嶓嶕嶠嶜嶡嶚嶞幩幝幠幜緳廛廞廡彉徲憋憃慹憱憰憢憉"], - ["e5a1", "憛憓憯憭憟憒憪憡憍慦憳戭摮摰撖撠撅撗撜撏撋撊撌撣撟摨撱撘敶敺敹敻斲斳暵暰暩暲暷暪暯樀樆樗槥槸樕槱槤樠槿槬槢樛樝槾樧槲槮樔槷槧橀樈槦槻樍槼槫樉樄樘樥樏槶樦樇槴樖歑殥殣殢殦氁氀毿氂潁漦潾澇濆澒"], - ["e640", "澍澉澌潢潏澅潚澖潶潬澂潕潲潒潐潗澔澓潝漀潡潫潽潧澐潓澋潩潿澕潣潷潪潻熲熯熛熰熠熚熩熵熝熥熞熤熡熪熜熧熳犘犚獘獒獞獟獠獝獛獡獚獙"], - ["e6a1", "獢璇璉璊璆璁瑽璅璈瑼瑹甈甇畾瘥瘞瘙瘝瘜瘣瘚瘨瘛皜皝皞皛瞍瞏瞉瞈磍碻磏磌磑磎磔磈磃磄磉禚禡禠禜禢禛歶稹窲窴窳箷篋箾箬篎箯箹篊箵糅糈糌糋緷緛緪緧緗緡縃緺緦緶緱緰緮緟罶羬羰羭翭翫翪翬翦翨聤聧膣膟"], - ["e740", "膞膕膢膙膗舖艏艓艒艐艎艑蔤蔻蔏蔀蔩蔎蔉蔍蔟蔊蔧蔜蓻蔫蓺蔈蔌蓴蔪蓲蔕蓷蓫蓳蓼蔒蓪蓩蔖蓾蔨蔝蔮蔂蓽蔞蓶蔱蔦蓧蓨蓰蓯蓹蔘蔠蔰蔋蔙蔯虢"], - ["e7a1", "蝖蝣蝤蝷蟡蝳蝘蝔蝛蝒蝡蝚蝑蝞蝭蝪蝐蝎蝟蝝蝯蝬蝺蝮蝜蝥蝏蝻蝵蝢蝧蝩衚褅褌褔褋褗褘褙褆褖褑褎褉覢覤覣觭觰觬諏諆誸諓諑諔諕誻諗誾諀諅諘諃誺誽諙谾豍貏賥賟賙賨賚賝賧趠趜趡趛踠踣踥踤踮踕踛踖踑踙踦踧"], - ["e840", "踔踒踘踓踜踗踚輬輤輘輚輠輣輖輗遳遰遯遧遫鄯鄫鄩鄪鄲鄦鄮醅醆醊醁醂醄醀鋐鋃鋄鋀鋙銶鋏鋱鋟鋘鋩鋗鋝鋌鋯鋂鋨鋊鋈鋎鋦鋍鋕鋉鋠鋞鋧鋑鋓"], - ["e8a1", "銵鋡鋆銴镼閬閫閮閰隤隢雓霅霈霂靚鞊鞎鞈韐韏頞頝頦頩頨頠頛頧颲餈飺餑餔餖餗餕駜駍駏駓駔駎駉駖駘駋駗駌骳髬髫髳髲髱魆魃魧魴魱魦魶魵魰魨魤魬鳼鳺鳽鳿鳷鴇鴀鳹鳻鴈鴅鴄麃黓鼏鼐儜儓儗儚儑凞匴叡噰噠噮"], - ["e940", "噳噦噣噭噲噞噷圜圛壈墽壉墿墺壂墼壆嬗嬙嬛嬡嬔嬓嬐嬖嬨嬚嬠嬞寯嶬嶱嶩嶧嶵嶰嶮嶪嶨嶲嶭嶯嶴幧幨幦幯廩廧廦廨廥彋徼憝憨憖懅憴懆懁懌憺"], - ["e9a1", "憿憸憌擗擖擐擏擉撽撉擃擛擳擙攳敿敼斢曈暾曀曊曋曏暽暻暺曌朣樴橦橉橧樲橨樾橝橭橶橛橑樨橚樻樿橁橪橤橐橏橔橯橩橠樼橞橖橕橍橎橆歕歔歖殧殪殫毈毇氄氃氆澭濋澣濇澼濎濈潞濄澽澞濊澨瀄澥澮澺澬澪濏澿澸"], - ["ea40", "澢濉澫濍澯澲澰燅燂熿熸燖燀燁燋燔燊燇燏熽燘熼燆燚燛犝犞獩獦獧獬獥獫獪瑿璚璠璔璒璕璡甋疀瘯瘭瘱瘽瘳瘼瘵瘲瘰皻盦瞚瞝瞡瞜瞛瞢瞣瞕瞙"], - ["eaa1", "瞗磝磩磥磪磞磣磛磡磢磭磟磠禤穄穈穇窶窸窵窱窷篞篣篧篝篕篥篚篨篹篔篪篢篜篫篘篟糒糔糗糐糑縒縡縗縌縟縠縓縎縜縕縚縢縋縏縖縍縔縥縤罃罻罼罺羱翯耪耩聬膱膦膮膹膵膫膰膬膴膲膷膧臲艕艖艗蕖蕅蕫蕍蕓蕡蕘"], - ["eb40", "蕀蕆蕤蕁蕢蕄蕑蕇蕣蔾蕛蕱蕎蕮蕵蕕蕧蕠薌蕦蕝蕔蕥蕬虣虥虤螛螏螗螓螒螈螁螖螘蝹螇螣螅螐螑螝螄螔螜螚螉褞褦褰褭褮褧褱褢褩褣褯褬褟觱諠"], - ["eba1", "諢諲諴諵諝謔諤諟諰諈諞諡諨諿諯諻貑貒貐賵賮賱賰賳赬赮趥趧踳踾踸蹀蹅踶踼踽蹁踰踿躽輶輮輵輲輹輷輴遶遹遻邆郺鄳鄵鄶醓醐醑醍醏錧錞錈錟錆錏鍺錸錼錛錣錒錁鍆錭錎錍鋋錝鋺錥錓鋹鋷錴錂錤鋿錩錹錵錪錔錌"], - ["ec40", "錋鋾錉錀鋻錖閼闍閾閹閺閶閿閵閽隩雔霋霒霐鞙鞗鞔韰韸頵頯頲餤餟餧餩馞駮駬駥駤駰駣駪駩駧骹骿骴骻髶髺髹髷鬳鮀鮅鮇魼魾魻鮂鮓鮒鮐魺鮕"], - ["eca1", "魽鮈鴥鴗鴠鴞鴔鴩鴝鴘鴢鴐鴙鴟麈麆麇麮麭黕黖黺鼒鼽儦儥儢儤儠儩勴嚓嚌嚍嚆嚄嚃噾嚂噿嚁壖壔壏壒嬭嬥嬲嬣嬬嬧嬦嬯嬮孻寱寲嶷幬幪徾徻懃憵憼懧懠懥懤懨懞擯擩擣擫擤擨斁斀斶旚曒檍檖檁檥檉檟檛檡檞檇檓檎"], - ["ed40", "檕檃檨檤檑橿檦檚檅檌檒歛殭氉濌澩濴濔濣濜濭濧濦濞濲濝濢濨燡燱燨燲燤燰燢獳獮獯璗璲璫璐璪璭璱璥璯甐甑甒甏疄癃癈癉癇皤盩瞵瞫瞲瞷瞶"], - ["eda1", "瞴瞱瞨矰磳磽礂磻磼磲礅磹磾礄禫禨穜穛穖穘穔穚窾竀竁簅簏篲簀篿篻簎篴簋篳簂簉簃簁篸篽簆篰篱簐簊糨縭縼繂縳顈縸縪繉繀繇縩繌縰縻縶繄縺罅罿罾罽翴翲耬膻臄臌臊臅臇膼臩艛艚艜薃薀薏薧薕薠薋薣蕻薤薚薞"], - ["ee40", "蕷蕼薉薡蕺蕸蕗薎薖薆薍薙薝薁薢薂薈薅蕹蕶薘薐薟虨螾螪螭蟅螰螬螹螵螼螮蟉蟃蟂蟌螷螯蟄蟊螴螶螿螸螽蟞螲褵褳褼褾襁襒褷襂覭覯覮觲觳謞"], - ["eea1", "謘謖謑謅謋謢謏謒謕謇謍謈謆謜謓謚豏豰豲豱豯貕貔賹赯蹎蹍蹓蹐蹌蹇轃轀邅遾鄸醚醢醛醙醟醡醝醠鎡鎃鎯鍤鍖鍇鍼鍘鍜鍶鍉鍐鍑鍠鍭鎏鍌鍪鍹鍗鍕鍒鍏鍱鍷鍻鍡鍞鍣鍧鎀鍎鍙闇闀闉闃闅閷隮隰隬霠霟霘霝霙鞚鞡鞜"], - ["ef40", "鞞鞝韕韔韱顁顄顊顉顅顃餥餫餬餪餳餲餯餭餱餰馘馣馡騂駺駴駷駹駸駶駻駽駾駼騃骾髾髽鬁髼魈鮚鮨鮞鮛鮦鮡鮥鮤鮆鮢鮠鮯鴳鵁鵧鴶鴮鴯鴱鴸鴰"], - ["efa1", "鵅鵂鵃鴾鴷鵀鴽翵鴭麊麉麍麰黈黚黻黿鼤鼣鼢齔龠儱儭儮嚘嚜嚗嚚嚝嚙奰嬼屩屪巀幭幮懘懟懭懮懱懪懰懫懖懩擿攄擽擸攁攃擼斔旛曚曛曘櫅檹檽櫡櫆檺檶檷櫇檴檭歞毉氋瀇瀌瀍瀁瀅瀔瀎濿瀀濻瀦濼濷瀊爁燿燹爃燽獶"], - ["f040", "璸瓀璵瓁璾璶璻瓂甔甓癜癤癙癐癓癗癚皦皽盬矂瞺磿礌礓礔礉礐礒礑禭禬穟簜簩簙簠簟簭簝簦簨簢簥簰繜繐繖繣繘繢繟繑繠繗繓羵羳翷翸聵臑臒"], - ["f0a1", "臐艟艞薴藆藀藃藂薳薵薽藇藄薿藋藎藈藅薱薶藒蘤薸薷薾虩蟧蟦蟢蟛蟫蟪蟥蟟蟳蟤蟔蟜蟓蟭蟘蟣螤蟗蟙蠁蟴蟨蟝襓襋襏襌襆襐襑襉謪謧謣謳謰謵譇謯謼謾謱謥謷謦謶謮謤謻謽謺豂豵貙貘貗賾贄贂贀蹜蹢蹠蹗蹖蹞蹥蹧"], - ["f140", "蹛蹚蹡蹝蹩蹔轆轇轈轋鄨鄺鄻鄾醨醥醧醯醪鎵鎌鎒鎷鎛鎝鎉鎧鎎鎪鎞鎦鎕鎈鎙鎟鎍鎱鎑鎲鎤鎨鎴鎣鎥闒闓闑隳雗雚巂雟雘雝霣霢霥鞬鞮鞨鞫鞤鞪"], - ["f1a1", "鞢鞥韗韙韖韘韺顐顑顒颸饁餼餺騏騋騉騍騄騑騊騅騇騆髀髜鬈鬄鬅鬩鬵魊魌魋鯇鯆鯃鮿鯁鮵鮸鯓鮶鯄鮹鮽鵜鵓鵏鵊鵛鵋鵙鵖鵌鵗鵒鵔鵟鵘鵚麎麌黟鼁鼀鼖鼥鼫鼪鼩鼨齌齕儴儵劖勷厴嚫嚭嚦嚧嚪嚬壚壝壛夒嬽嬾嬿巃幰"], - ["f240", "徿懻攇攐攍攉攌攎斄旞旝曞櫧櫠櫌櫑櫙櫋櫟櫜櫐櫫櫏櫍櫞歠殰氌瀙瀧瀠瀖瀫瀡瀢瀣瀩瀗瀤瀜瀪爌爊爇爂爅犥犦犤犣犡瓋瓅璷瓃甖癠矉矊矄矱礝礛"], - ["f2a1", "礡礜礗礞禰穧穨簳簼簹簬簻糬糪繶繵繸繰繷繯繺繲繴繨罋罊羃羆羷翽翾聸臗臕艤艡艣藫藱藭藙藡藨藚藗藬藲藸藘藟藣藜藑藰藦藯藞藢蠀蟺蠃蟶蟷蠉蠌蠋蠆蟼蠈蟿蠊蠂襢襚襛襗襡襜襘襝襙覈覷覶觶譐譈譊譀譓譖譔譋譕"], - ["f340", "譑譂譒譗豃豷豶貚贆贇贉趬趪趭趫蹭蹸蹳蹪蹯蹻軂轒轑轏轐轓辴酀鄿醰醭鏞鏇鏏鏂鏚鏐鏹鏬鏌鏙鎩鏦鏊鏔鏮鏣鏕鏄鏎鏀鏒鏧镽闚闛雡霩霫霬霨霦"], - ["f3a1", "鞳鞷鞶韝韞韟顜顙顝顗颿颽颻颾饈饇饃馦馧騚騕騥騝騤騛騢騠騧騣騞騜騔髂鬋鬊鬎鬌鬷鯪鯫鯠鯞鯤鯦鯢鯰鯔鯗鯬鯜鯙鯥鯕鯡鯚鵷鶁鶊鶄鶈鵱鶀鵸鶆鶋鶌鵽鵫鵴鵵鵰鵩鶅鵳鵻鶂鵯鵹鵿鶇鵨麔麑黀黼鼭齀齁齍齖齗齘匷嚲"], - ["f440", "嚵嚳壣孅巆巇廮廯忀忁懹攗攖攕攓旟曨曣曤櫳櫰櫪櫨櫹櫱櫮櫯瀼瀵瀯瀷瀴瀱灂瀸瀿瀺瀹灀瀻瀳灁爓爔犨獽獼璺皫皪皾盭矌矎矏矍矲礥礣礧礨礤礩"], - ["f4a1", "禲穮穬穭竷籉籈籊籇籅糮繻繾纁纀羺翿聹臛臙舋艨艩蘢藿蘁藾蘛蘀藶蘄蘉蘅蘌藽蠙蠐蠑蠗蠓蠖襣襦覹觷譠譪譝譨譣譥譧譭趮躆躈躄轙轖轗轕轘轚邍酃酁醷醵醲醳鐋鐓鏻鐠鐏鐔鏾鐕鐐鐨鐙鐍鏵鐀鏷鐇鐎鐖鐒鏺鐉鏸鐊鏿"], - ["f540", "鏼鐌鏶鐑鐆闞闠闟霮霯鞹鞻韽韾顠顢顣顟飁飂饐饎饙饌饋饓騲騴騱騬騪騶騩騮騸騭髇髊髆鬐鬒鬑鰋鰈鯷鰅鰒鯸鱀鰇鰎鰆鰗鰔鰉鶟鶙鶤鶝鶒鶘鶐鶛"], - ["f5a1", "鶠鶔鶜鶪鶗鶡鶚鶢鶨鶞鶣鶿鶩鶖鶦鶧麙麛麚黥黤黧黦鼰鼮齛齠齞齝齙龑儺儹劘劗囃嚽嚾孈孇巋巏廱懽攛欂櫼欃櫸欀灃灄灊灈灉灅灆爝爚爙獾甗癪矐礭礱礯籔籓糲纊纇纈纋纆纍罍羻耰臝蘘蘪蘦蘟蘣蘜蘙蘧蘮蘡蘠蘩蘞蘥"], - ["f640", "蠩蠝蠛蠠蠤蠜蠫衊襭襩襮襫觺譹譸譅譺譻贐贔趯躎躌轞轛轝酆酄酅醹鐿鐻鐶鐩鐽鐼鐰鐹鐪鐷鐬鑀鐱闥闤闣霵霺鞿韡顤飉飆飀饘饖騹騽驆驄驂驁騺"], - ["f6a1", "騿髍鬕鬗鬘鬖鬺魒鰫鰝鰜鰬鰣鰨鰩鰤鰡鶷鶶鶼鷁鷇鷊鷏鶾鷅鷃鶻鶵鷎鶹鶺鶬鷈鶱鶭鷌鶳鷍鶲鹺麜黫黮黭鼛鼘鼚鼱齎齥齤龒亹囆囅囋奱孋孌巕巑廲攡攠攦攢欋欈欉氍灕灖灗灒爞爟犩獿瓘瓕瓙瓗癭皭礵禴穰穱籗籜籙籛籚"], - ["f740", "糴糱纑罏羇臞艫蘴蘵蘳蘬蘲蘶蠬蠨蠦蠪蠥襱覿覾觻譾讄讂讆讅譿贕躕躔躚躒躐躖躗轠轢酇鑌鑐鑊鑋鑏鑇鑅鑈鑉鑆霿韣顪顩飋饔饛驎驓驔驌驏驈驊"], - ["f7a1", "驉驒驐髐鬙鬫鬻魖魕鱆鱈鰿鱄鰹鰳鱁鰼鰷鰴鰲鰽鰶鷛鷒鷞鷚鷋鷐鷜鷑鷟鷩鷙鷘鷖鷵鷕鷝麶黰鼵鼳鼲齂齫龕龢儽劙壨壧奲孍巘蠯彏戁戃戄攩攥斖曫欑欒欏毊灛灚爢玂玁玃癰矔籧籦纕艬蘺虀蘹蘼蘱蘻蘾蠰蠲蠮蠳襶襴襳觾"], - ["f840", "讌讎讋讈豅贙躘轤轣醼鑢鑕鑝鑗鑞韄韅頀驖驙鬞鬟鬠鱒鱘鱐鱊鱍鱋鱕鱙鱌鱎鷻鷷鷯鷣鷫鷸鷤鷶鷡鷮鷦鷲鷰鷢鷬鷴鷳鷨鷭黂黐黲黳鼆鼜鼸鼷鼶齃齏"], - ["f8a1", "齱齰齮齯囓囍孎屭攭曭曮欓灟灡灝灠爣瓛瓥矕礸禷禶籪纗羉艭虃蠸蠷蠵衋讔讕躞躟躠躝醾醽釂鑫鑨鑩雥靆靃靇韇韥驞髕魙鱣鱧鱦鱢鱞鱠鸂鷾鸇鸃鸆鸅鸀鸁鸉鷿鷽鸄麠鼞齆齴齵齶囔攮斸欘欙欗欚灢爦犪矘矙礹籩籫糶纚"], - ["f940", "纘纛纙臠臡虆虇虈襹襺襼襻觿讘讙躥躤躣鑮鑭鑯鑱鑳靉顲饟鱨鱮鱭鸋鸍鸐鸏鸒鸑麡黵鼉齇齸齻齺齹圞灦籯蠼趲躦釃鑴鑸鑶鑵驠鱴鱳鱱鱵鸔鸓黶鼊"], - ["f9a1", "龤灨灥糷虪蠾蠽蠿讞貜躩軉靋顳顴飌饡馫驤驦驧鬤鸕鸗齈戇欞爧虌躨钂钀钁驩驨鬮鸙爩虋讟钃鱹麷癵驫鱺鸝灩灪麤齾齉龘碁銹裏墻恒粧嫺╔╦╗╠╬╣╚╩╝╒╤╕╞╪╡╘╧╛╓╥╖╟╫╢╙╨╜║═╭╮╰╯▓"] - ]; -}); - -// node_modules/iconv-lite/encodings/tables/big5-added.json -var require_big5_added = __commonJS((exports, module) => { - module.exports = [ - ["8740", "䏰䰲䘃䖦䕸𧉧䵷䖳𧲱䳢𧳅㮕䜶䝄䱇䱀𤊿𣘗𧍒𦺋𧃒䱗𪍑䝏䗚䲅𧱬䴇䪤䚡𦬣爥𥩔𡩣𣸆𣽡晍囻"], - ["8767", "綕夝𨮹㷴霴𧯯寛𡵞媤㘥𩺰嫑宷峼杮薓𩥅瑡璝㡵𡵓𣚞𦀡㻬"], - ["87a1", "𥣞㫵竼龗𤅡𨤍𣇪𠪊𣉞䌊蒄龖鐯䤰蘓墖靊鈘秐稲晠権袝瑌篅枂稬剏遆㓦珄𥶹瓆鿇垳䤯呌䄱𣚎堘穲𧭥讏䚮𦺈䆁𥶙箮𢒼鿈𢓁𢓉𢓌鿉蔄𣖻䂴鿊䓡𪷿拁灮鿋"], - ["8840", "㇀", 4, "𠄌㇅𠃑𠃍㇆㇇𠃋𡿨㇈𠃊㇉㇊㇋㇌𠄎㇍㇎ĀÁǍÀĒÉĚÈŌÓǑÒ࿿Ê̄Ế࿿Ê̌ỀÊāáǎàɑēéěèīíǐìōóǒòūúǔùǖǘǚ"], - ["88a1", "ǜü࿿ê̄ế࿿ê̌ềêɡ⏚⏛"], - ["8940", "𪎩𡅅"], - ["8943", "攊"], - ["8946", "丽滝鵎釟"], - ["894c", "𧜵撑会伨侨兖兴农凤务动医华发变团声处备夲头学实実岚庆总斉柾栄桥济炼电纤纬纺织经统缆缷艺苏药视设询车轧轮"], - ["89a1", "琑糼緍楆竉刧"], - ["89ab", "醌碸酞肼"], - ["89b0", "贋胶𠧧"], - ["89b5", "肟黇䳍鷉鸌䰾𩷶𧀎鸊𪄳㗁"], - ["89c1", "溚舾甙"], - ["89c5", "䤑马骏龙禇𨑬𡷊𠗐𢫦两亁亀亇亿仫伷㑌侽㹈倃傈㑽㒓㒥円夅凛凼刅争剹劐匧㗇厩㕑厰㕓参吣㕭㕲㚁咓咣咴咹哐哯唘唣唨㖘唿㖥㖿嗗㗅"], - ["8a40", "𧶄唥"], - ["8a43", "𠱂𠴕𥄫喐𢳆㧬𠍁蹆𤶸𩓥䁓𨂾睺𢰸㨴䟕𨅝𦧲𤷪擝𠵼𠾴𠳕𡃴撍蹾𠺖𠰋𠽤𢲩𨉖𤓓"], - ["8a64", "𠵆𩩍𨃩䟴𤺧𢳂骲㩧𩗴㿭㔆𥋇𩟔𧣈𢵄鵮頕"], - ["8a76", "䏙𦂥撴哣𢵌𢯊𡁷㧻𡁯"], - ["8aa1", "𦛚𦜖𧦠擪𥁒𠱃蹨𢆡𨭌𠜱"], - ["8aac", "䠋𠆩㿺塳𢶍"], - ["8ab2", "𤗈𠓼𦂗𠽌𠶖啹䂻䎺"], - ["8abb", "䪴𢩦𡂝膪飵𠶜捹㧾𢝵跀嚡摼㹃"], - ["8ac9", "𪘁𠸉𢫏𢳉"], - ["8ace", "𡃈𣧂㦒㨆𨊛㕸𥹉𢃇噒𠼱𢲲𩜠㒼氽𤸻"], - ["8adf", "𧕴𢺋𢈈𪙛𨳍𠹺𠰴𦠜羓𡃏𢠃𢤹㗻𥇣𠺌𠾍𠺪㾓𠼰𠵇𡅏𠹌"], - ["8af6", "𠺫𠮩𠵈𡃀𡄽㿹𢚖搲𠾭"], - ["8b40", "𣏴𧘹𢯎𠵾𠵿𢱑𢱕㨘𠺘𡃇𠼮𪘲𦭐𨳒𨶙𨳊閪哌苄喹"], - ["8b55", "𩻃鰦骶𧝞𢷮煀腭胬尜𦕲脴㞗卟𨂽醶𠻺𠸏𠹷𠻻㗝𤷫㘉𠳖嚯𢞵𡃉𠸐𠹸𡁸𡅈𨈇𡑕𠹹𤹐𢶤婔𡀝𡀞𡃵𡃶垜𠸑"], - ["8ba1", "𧚔𨋍𠾵𠹻𥅾㜃𠾶𡆀𥋘𪊽𤧚𡠺𤅷𨉼墙剨㘚𥜽箲孨䠀䬬鼧䧧鰟鮍𥭴𣄽嗻㗲嚉丨夂𡯁屮靑𠂆乛亻㔾尣彑忄㣺扌攵歺氵氺灬爫丬犭𤣩罒礻糹罓𦉪㓁"], - ["8bde", "𦍋耂肀𦘒𦥑卝衤见𧢲讠贝钅镸长门𨸏韦页风飞饣𩠐鱼鸟黄歯龜丷𠂇阝户钢"], - ["8c40", "倻淾𩱳龦㷉袏𤅎灷峵䬠𥇍㕙𥴰愢𨨲辧釶熑朙玺𣊁𪄇㲋𡦀䬐磤琂冮𨜏䀉橣𪊺䈣蘏𠩯稪𩥇𨫪靕灍匤𢁾鏴盙𨧣龧矝亣俰傼丯众龨吴綋墒壐𡶶庒庙忂𢜒斋"], - ["8ca1", "𣏹椙橃𣱣泿"], - ["8ca7", "爀𤔅玌㻛𤨓嬕璹讃𥲤𥚕窓篬糃繬苸薗龩袐龪躹龫迏蕟駠鈡龬𨶹𡐿䁱䊢娚"], - ["8cc9", "顨杫䉶圽"], - ["8cce", "藖𤥻芿𧄍䲁𦵴嵻𦬕𦾾龭龮宖龯曧繛湗秊㶈䓃𣉖𢞖䎚䔶"], - ["8ce6", "峕𣬚諹屸㴒𣕑嵸龲煗䕘𤃬𡸣䱷㥸㑊𠆤𦱁諌侴𠈹妿腬顖𩣺弻"], - ["8d40", "𠮟"], - ["8d42", "𢇁𨥭䄂䚻𩁹㼇龳𪆵䃸㟖䛷𦱆䅼𨚲𧏿䕭㣔𥒚䕡䔛䶉䱻䵶䗪㿈𤬏㙡䓞䒽䇭崾嵈嵖㷼㠏嶤嶹㠠㠸幂庽弥徃㤈㤔㤿㥍惗愽峥㦉憷憹懏㦸戬抐拥挘㧸嚱"], - ["8da1", "㨃揢揻搇摚㩋擀崕嘡龟㪗斆㪽旿晓㫲暒㬢朖㭂枤栀㭘桊梄㭲㭱㭻椉楃牜楤榟榅㮼槖㯝橥橴橱檂㯬檙㯲檫檵櫔櫶殁毁毪汵沪㳋洂洆洦涁㳯涤涱渕渘温溆𨧀溻滢滚齿滨滩漤漴㵆𣽁澁澾㵪㵵熷岙㶊瀬㶑灐灔灯灿炉𠌥䏁㗱𠻘"], - ["8e40", "𣻗垾𦻓焾𥟠㙎榢𨯩孴穉𥣡𩓙穥穽𥦬窻窰竂竃燑𦒍䇊竚竝竪䇯咲𥰁笋筕笩𥌎𥳾箢筯莜𥮴𦱿篐萡箒箸𥴠㶭𥱥蒒篺簆簵𥳁籄粃𤢂粦晽𤕸糉糇糦籴糳糵糎"], - ["8ea1", "繧䔝𦹄絝𦻖璍綉綫焵綳緒𤁗𦀩緤㴓緵𡟹緥𨍭縝𦄡𦅚繮纒䌫鑬縧罀罁罇礶𦋐駡羗𦍑羣𡙡𠁨䕜𣝦䔃𨌺翺𦒉者耈耝耨耯𪂇𦳃耻耼聡𢜔䦉𦘦𣷣𦛨朥肧𨩈脇脚墰𢛶汿𦒘𤾸擧𡒊舘𡡞橓𤩥𤪕䑺舩𠬍𦩒𣵾俹𡓽蓢荢𦬊𤦧𣔰𡝳𣷸芪椛芳䇛"], - ["8f40", "蕋苐茚𠸖𡞴㛁𣅽𣕚艻苢茘𣺋𦶣𦬅𦮗𣗎㶿茝嗬莅䔋𦶥莬菁菓㑾𦻔橗蕚㒖𦹂𢻯葘𥯤葱㷓䓤檧葊𣲵祘蒨𦮖𦹷𦹃蓞萏莑䒠蒓蓤𥲑䉀𥳀䕃蔴嫲𦺙䔧蕳䔖枿蘖"], - ["8fa1", "𨘥𨘻藁𧂈蘂𡖂𧃍䕫䕪蘨㙈𡢢号𧎚虾蝱𪃸蟮𢰧螱蟚蠏噡虬桖䘏衅衆𧗠𣶹𧗤衞袜䙛袴袵揁装睷𧜏覇覊覦覩覧覼𨨥觧𧤤𧪽誜瞓釾誐𧩙竩𧬺𣾏䜓𧬸煼謌謟𥐰𥕥謿譌譍誩𤩺讐讛誯𡛟䘕衏貛𧵔𧶏貫㜥𧵓賖𧶘𧶽贒贃𡤐賛灜贑𤳉㻐起"], - ["9040", "趩𨀂𡀔𤦊㭼𨆼𧄌竧躭躶軃鋔輙輭𨍥𨐒辥錃𪊟𠩐辳䤪𨧞𨔽𣶻廸𣉢迹𪀔𨚼𨔁𢌥㦀𦻗逷𨔼𧪾遡𨕬𨘋邨𨜓郄𨛦邮都酧㫰醩釄粬𨤳𡺉鈎沟鉁鉢𥖹銹𨫆𣲛𨬌𥗛"], - ["90a1", "𠴱錬鍫𨫡𨯫炏嫃𨫢𨫥䥥鉄𨯬𨰹𨯿鍳鑛躼閅閦鐦閠濶䊹𢙺𨛘𡉼𣸮䧟氜陻隖䅬隣𦻕懚隶磵𨫠隽双䦡𦲸𠉴𦐐𩂯𩃥𤫑𡤕𣌊霱虂霶䨏䔽䖅𤫩灵孁霛靜𩇕靗孊𩇫靟鐥僐𣂷𣂼鞉鞟鞱鞾韀韒韠𥑬韮琜𩐳響韵𩐝𧥺䫑頴頳顋顦㬎𧅵㵑𠘰𤅜"], - ["9140", "𥜆飊颷飈飇䫿𦴧𡛓喰飡飦飬鍸餹𤨩䭲𩡗𩤅駵騌騻騐驘𥜥㛄𩂱𩯕髠髢𩬅髴䰎鬔鬭𨘀倴鬴𦦨㣃𣁽魐魀𩴾婅𡡣鮎𤉋鰂鯿鰌𩹨鷔𩾷𪆒𪆫𪃡𪄣𪇟鵾鶃𪄴鸎梈"], - ["91a1", "鷄𢅛𪆓𪈠𡤻𪈳鴹𪂹𪊴麐麕麞麢䴴麪麯𤍤黁㭠㧥㴝伲㞾𨰫鼂鼈䮖鐤𦶢鼗鼖鼹嚟嚊齅馸𩂋韲葿齢齩竜龎爖䮾𤥵𤦻煷𤧸𤍈𤩑玞𨯚𡣺禟𨥾𨸶鍩鏳𨩄鋬鎁鏋𨥬𤒹爗㻫睲穃烐𤑳𤏸煾𡟯炣𡢾𣖙㻇𡢅𥐯𡟸㜢𡛻𡠹㛡𡝴𡣑𥽋㜣𡛀坛𤨥𡏾𡊨"], - ["9240", "𡏆𡒶蔃𣚦蔃葕𤦔𧅥𣸱𥕜𣻻𧁒䓴𣛮𩦝𦼦柹㜳㰕㷧塬𡤢栐䁗𣜿𤃡𤂋𤄏𦰡哋嚞𦚱嚒𠿟𠮨𠸍鏆𨬓鎜仸儫㠙𤐶亼𠑥𠍿佋侊𥙑婨𠆫𠏋㦙𠌊𠐔㐵伩𠋀𨺳𠉵諚𠈌亘"], - ["92a1", "働儍侢伃𤨎𣺊佂倮偬傁俌俥偘僼兙兛兝兞湶𣖕𣸹𣺿浲𡢄𣺉冨凃𠗠䓝𠒣𠒒𠒑赺𨪜𠜎剙劤𠡳勡鍮䙺熌𤎌𠰠𤦬𡃤槑𠸝瑹㻞璙琔瑖玘䮎𤪼𤂍叐㖄爏𤃉喴𠍅响𠯆圝鉝雴鍦埝垍坿㘾壋媙𨩆𡛺𡝯𡜐娬妸銏婾嫏娒𥥆𡧳𡡡𤊕㛵洅瑃娡𥺃"], - ["9340", "媁𨯗𠐓鏠璌𡌃焅䥲鐈𨧻鎽㞠尞岞幞幈𡦖𡥼𣫮廍孏𡤃𡤄㜁𡢠㛝𡛾㛓脪𨩇𡶺𣑲𨦨弌弎𡤧𡞫婫𡜻孄蘔𧗽衠恾𢡠𢘫忛㺸𢖯𢖾𩂈𦽳懀𠀾𠁆𢘛憙憘恵𢲛𢴇𤛔𩅍"], - ["93a1", "摱𤙥𢭪㨩𢬢𣑐𩣪𢹸挷𪑛撶挱揑𤧣𢵧护𢲡搻敫楲㯴𣂎𣊭𤦉𣊫唍𣋠𡣙𩐿曎𣊉𣆳㫠䆐𥖄𨬢𥖏𡛼𥕛𥐥磮𣄃𡠪𣈴㑤𣈏𣆂𤋉暎𦴤晫䮓昰𧡰𡷫晣𣋒𣋡昞𥡲㣑𣠺𣞼㮙𣞢𣏾瓐㮖枏𤘪梶栞㯄檾㡣𣟕𤒇樳橒櫉欅𡤒攑梘橌㯗橺歗𣿀𣲚鎠鋲𨯪𨫋"], - ["9440", "銉𨀞𨧜鑧涥漋𤧬浧𣽿㶏渄𤀼娽渊塇洤硂焻𤌚𤉶烱牐犇犔𤞏𤜥兹𤪤𠗫瑺𣻸𣙟𤩊𤤗𥿡㼆㺱𤫟𨰣𣼵悧㻳瓌琼鎇琷䒟𦷪䕑疃㽣𤳙𤴆㽘畕癳𪗆㬙瑨𨫌𤦫𤦎㫻"], - ["94a1", "㷍𤩎㻿𤧅𤣳釺圲鍂𨫣𡡤僟𥈡𥇧睸𣈲眎眏睻𤚗𣞁㩞𤣰琸璛㺿𤪺𤫇䃈𤪖𦆮錇𥖁砞碍碈磒珐祙𧝁𥛣䄎禛蒖禥樭𣻺稺秴䅮𡛦䄲鈵秱𠵌𤦌𠊙𣶺𡝮㖗啫㕰㚪𠇔𠰍竢婙𢛵𥪯𥪜娍𠉛磰娪𥯆竾䇹籝籭䈑𥮳𥺼𥺦糍𤧹𡞰粎籼粮檲緜縇緓罎𦉡"], - ["9540", "𦅜𧭈綗𥺂䉪𦭵𠤖柖𠁎𣗏埄𦐒𦏸𤥢翝笧𠠬𥫩𥵃笌𥸎駦虅驣樜𣐿㧢𤧷𦖭騟𦖠蒀𧄧𦳑䓪脷䐂胆脉腂𦞴飃𦩂艢艥𦩑葓𦶧蘐𧈛媆䅿𡡀嬫𡢡嫤𡣘蚠蜨𣶏蠭𧐢娂"], - ["95a1", "衮佅袇袿裦襥襍𥚃襔𧞅𧞄𨯵𨯙𨮜𨧹㺭蒣䛵䛏㟲訽訜𩑈彍鈫𤊄旔焩烄𡡅鵭貟賩𧷜妚矃姰䍮㛔踪躧𤰉輰轊䋴汘澻𢌡䢛潹溋𡟚鯩㚵𤤯邻邗啱䤆醻鐄𨩋䁢𨫼鐧𨰝𨰻蓥訫閙閧閗閖𨴴瑅㻂𤣿𤩂𤏪㻧𣈥随𨻧𨹦𨹥㻌𤧭𤩸𣿮琒瑫㻼靁𩂰"], - ["9640", "桇䨝𩂓𥟟靝鍨𨦉𨰦𨬯𦎾銺嬑譩䤼珹𤈛鞛靱餸𠼦巁𨯅𤪲頟𩓚鋶𩗗釥䓀𨭐𤩧𨭤飜𨩅㼀鈪䤥萔餻饍𧬆㷽馛䭯馪驜𨭥𥣈檏騡嫾騯𩣱䮐𩥈馼䮽䮗鍽塲𡌂堢𤦸"], - ["96a1", "𡓨硄𢜟𣶸棅㵽鑘㤧慐𢞁𢥫愇鱏鱓鱻鰵鰐魿鯏𩸭鮟𪇵𪃾鴡䲮𤄄鸘䲰鴌𪆴𪃭𪃳𩤯鶥蒽𦸒𦿟𦮂藼䔳𦶤𦺄𦷰萠藮𦸀𣟗𦁤秢𣖜𣙀䤭𤧞㵢鏛銾鍈𠊿碹鉷鑍俤㑀遤𥕝砽硔碶硋𡝗𣇉𤥁㚚佲濚濙瀞瀞吔𤆵垻壳垊鴖埗焴㒯𤆬燫𦱀𤾗嬨𡞵𨩉"], - ["9740", "愌嫎娋䊼𤒈㜬䭻𨧼鎻鎸𡣖𠼝葲𦳀𡐓𤋺𢰦𤏁妔𣶷𦝁綨𦅛𦂤𤦹𤦋𨧺鋥珢㻩璴𨭣𡢟㻡𤪳櫘珳珻㻖𤨾𤪔𡟙𤩦𠎧𡐤𤧥瑈𤤖炥𤥶銄珦鍟𠓾錱𨫎𨨖鎆𨯧𥗕䤵𨪂煫"], - ["97a1", "𤥃𠳿嚤𠘚𠯫𠲸唂秄𡟺緾𡛂𤩐𡡒䔮鐁㜊𨫀𤦭妰𡢿𡢃𧒄媡㛢𣵛㚰鉟婹𨪁𡡢鍴㳍𠪴䪖㦊僴㵩㵌𡎜煵䋻𨈘渏𩃤䓫浗𧹏灧沯㳖𣿭𣸭渂漌㵯𠏵畑㚼㓈䚀㻚䡱姄鉮䤾轁𨰜𦯀堒埈㛖𡑒烾𤍢𤩱𢿣𡊰𢎽梹楧𡎘𣓥𧯴𣛟𨪃𣟖𣏺𤲟樚𣚭𦲷萾䓟䓎"], - ["9840", "𦴦𦵑𦲂𦿞漗𧄉茽𡜺菭𦲀𧁓𡟛妉媂𡞳婡婱𡤅𤇼㜭姯𡜼㛇熎鎐暚𤊥婮娫𤊓樫𣻹𧜶𤑛𤋊焝𤉙𨧡侰𦴨峂𤓎𧹍𤎽樌𤉖𡌄炦焳𤏩㶥泟勇𤩏繥姫崯㷳彜𤩝𡟟綤萦"], - ["98a1", "咅𣫺𣌀𠈔坾𠣕𠘙㿥𡾞𪊶瀃𩅛嵰玏糓𨩙𩐠俈翧狍猐𧫴猸猹𥛶獁獈㺩𧬘遬燵𤣲珡臶㻊県㻑沢国琙琞琟㻢㻰㻴㻺瓓㼎㽓畂畭畲疍㽼痈痜㿀癍㿗癴㿜発𤽜熈嘣覀塩䀝睃䀹条䁅㗛瞘䁪䁯属瞾矋売砘点砜䂨砹硇硑硦葈𥔵礳栃礲䄃"], - ["9940", "䄉禑禙辻稆込䅧窑䆲窼艹䇄竏竛䇏両筢筬筻簒簛䉠䉺类粜䊌粸䊔糭输烀𠳏総緔緐緽羮羴犟䎗耠耥笹耮耱联㷌垴炠肷胩䏭脌猪脎脒畠脔䐁㬹腖腙腚"], - ["99a1", "䐓堺腼膄䐥膓䐭膥埯臁臤艔䒏芦艶苊苘苿䒰荗险榊萅烵葤惣蒈䔄蒾蓡蓸蔐蔸蕒䔻蕯蕰藠䕷虲蚒蚲蛯际螋䘆䘗袮裿褤襇覑𧥧訩訸誔誴豑賔賲贜䞘塟跃䟭仮踺嗘坔蹱嗵躰䠷軎転軤軭軲辷迁迊迌逳駄䢭飠鈓䤞鈨鉘鉫銱銮銿"], - ["9a40", "鋣鋫鋳鋴鋽鍃鎄鎭䥅䥑麿鐗匁鐝鐭鐾䥪鑔鑹锭関䦧间阳䧥枠䨤靀䨵鞲韂噔䫤惨颹䬙飱塄餎餙冴餜餷饂饝饢䭰駅䮝騼鬏窃魩鮁鯝鯱鯴䱭鰠㝯𡯂鵉鰺"], - ["9aa1", "黾噐鶓鶽鷀鷼银辶鹻麬麱麽黆铜黢黱黸竈齄𠂔𠊷𠎠椚铃妬𠓗塀铁㞹𠗕𠘕𠙶𡚺块煳𠫂𠫍𠮿呪吆𠯋咞𠯻𠰻𠱓𠱥𠱼惧𠲍噺𠲵𠳝𠳭𠵯𠶲𠷈楕鰯螥𠸄𠸎𠻗𠾐𠼭𠹳尠𠾼帋𡁜𡁏𡁶朞𡁻𡂈𡂖㙇𡂿𡃓𡄯𡄻卤蒭𡋣𡍵𡌶讁𡕷𡘙𡟃𡟇乸炻𡠭𡥪"], - ["9b40", "𡨭𡩅𡰪𡱰𡲬𡻈拃𡻕𡼕熘桕𢁅槩㛈𢉼𢏗𢏺𢜪𢡱𢥏苽𢥧𢦓𢫕覥𢫨辠𢬎鞸𢬿顇骽𢱌"], - ["9b62", "𢲈𢲷𥯨𢴈𢴒𢶷𢶕𢹂𢽴𢿌𣀳𣁦𣌟𣏞徱晈暿𧩹𣕧𣗳爁𤦺矗𣘚𣜖纇𠍆墵朎"], - ["9ba1", "椘𣪧𧙗𥿢𣸑𣺹𧗾𢂚䣐䪸𤄙𨪚𤋮𤌍𤀻𤌴𤎖𤩅𠗊凒𠘑妟𡺨㮾𣳿𤐄𤓖垈𤙴㦛𤜯𨗨𩧉㝢𢇃譞𨭎駖𤠒𤣻𤨕爉𤫀𠱸奥𤺥𤾆𠝹軚𥀬劏圿煱𥊙𥐙𣽊𤪧喼𥑆𥑮𦭒釔㑳𥔿𧘲𥕞䜘𥕢𥕦𥟇𤤿𥡝偦㓻𣏌惞𥤃䝼𨥈𥪮𥮉𥰆𡶐垡煑澶𦄂𧰒遖𦆲𤾚譢𦐂𦑊"], - ["9c40", "嵛𦯷輶𦒄𡤜諪𤧶𦒈𣿯𦔒䯀𦖿𦚵𢜛鑥𥟡憕娧晉侻嚹𤔡𦛼乪𤤴陖涏𦲽㘘襷𦞙𦡮𦐑𦡞營𦣇筂𩃀𠨑𦤦鄄𦤹穅鷰𦧺騦𦨭㙟𦑩𠀡禃𦨴𦭛崬𣔙菏𦮝䛐𦲤画补𦶮墶"], - ["9ca1", "㜜𢖍𧁋𧇍㱔𧊀𧊅銁𢅺𧊋錰𧋦𤧐氹钟𧑐𠻸蠧裵𢤦𨑳𡞱溸𤨪𡠠㦤㚹尐秣䔿暶𩲭𩢤襃𧟌𧡘囖䃟𡘊㦡𣜯𨃨𡏅熭荦𧧝𩆨婧䲷𧂯𨦫𧧽𧨊𧬋𧵦𤅺筃祾𨀉澵𪋟樃𨌘厢𦸇鎿栶靝𨅯𨀣𦦵𡏭𣈯𨁈嶅𨰰𨂃圕頣𨥉嶫𤦈斾槕叒𤪥𣾁㰑朶𨂐𨃴𨄮𡾡𨅏"], - ["9d40", "𨆉𨆯𨈚𨌆𨌯𨎊㗊𨑨𨚪䣺揦𨥖砈鉕𨦸䏲𨧧䏟𨧨𨭆𨯔姸𨰉輋𨿅𩃬筑𩄐𩄼㷷𩅞𤫊运犏嚋𩓧𩗩𩖰𩖸𩜲𩣑𩥉𩥪𩧃𩨨𩬎𩵚𩶛纟𩻸𩼣䲤镇𪊓熢𪋿䶑递𪗋䶜𠲜达嗁"], - ["9da1", "辺𢒰边𤪓䔉繿潖檱仪㓤𨬬𧢝㜺躀𡟵𨀤𨭬𨮙𧨾𦚯㷫𧙕𣲷𥘵𥥖亚𥺁𦉘嚿𠹭踎孭𣺈𤲞揞拐𡟶𡡻攰嘭𥱊吚𥌑㷆𩶘䱽嘢嘞罉𥻘奵𣵀蝰东𠿪𠵉𣚺脗鵞贘瘻鱅癎瞹鍅吲腈苷嘥脲萘肽嗪祢噃吖𠺝㗎嘅嗱曱𨋢㘭甴嗰喺咗啲𠱁𠲖廐𥅈𠹶𢱢"], - ["9e40", "𠺢麫絚嗞𡁵抝靭咔賍燶酶揼掹揾啩𢭃鱲𢺳冚㓟𠶧冧呍唞唓癦踭𦢊疱肶蠄螆裇膶萜𡃁䓬猄𤜆宐茋𦢓噻𢛴𧴯𤆣𧵳𦻐𧊶酰𡇙鈈𣳼𪚩𠺬𠻹牦𡲢䝎𤿂𧿹𠿫䃺"], - ["9ea1", "鱝攟𢶠䣳𤟠𩵼𠿬𠸊恢𧖣𠿭"], - ["9ead", "𦁈𡆇熣纎鵐业丄㕷嬍沲卧㚬㧜卽㚥𤘘墚𤭮舭呋垪𥪕𠥹"], - ["9ec5", "㩒𢑥獴𩺬䴉鯭𣳾𩼰䱛𤾩𩖞𩿞葜𣶶𧊲𦞳𣜠挮紥𣻷𣸬㨪逈勌㹴㙺䗩𠒎癀嫰𠺶硺𧼮墧䂿噼鮋嵴癔𪐴麅䳡痹㟻愙𣃚𤏲"], - ["9ef5", "噝𡊩垧𤥣𩸆刴𧂮㖭汊鵼"], - ["9f40", "籖鬹埞𡝬屓擓𩓐𦌵𧅤蚭𠴨𦴢𤫢𠵱"], - ["9f4f", "凾𡼏嶎霃𡷑麁遌笟鬂峑箣扨挵髿篏鬪籾鬮籂粆鰕篼鬉鼗鰛𤤾齚啳寃俽麘俲剠㸆勑坧偖妷帒韈鶫轜呩鞴饀鞺匬愰"], - ["9fa1", "椬叚鰊鴂䰻陁榀傦畆𡝭駚剳"], - ["9fae", "酙隁酜"], - ["9fb2", "酑𨺗捿𦴣櫊嘑醎畺抅𠏼獏籰𥰡𣳽"], - ["9fc1", "𤤙盖鮝个𠳔莾衂"], - ["9fc9", "届槀僭坺刟巵从氱𠇲伹咜哚劚趂㗾弌㗳"], - ["9fdb", "歒酼龥鮗頮颴骺麨麄煺笔"], - ["9fe7", "毺蠘罸"], - ["9feb", "嘠𪙊蹷齓"], - ["9ff0", "跔蹏鸜踁抂𨍽踨蹵竓𤩷稾磘泪詧瘇"], - ["a040", "𨩚鼦泎蟖痃𪊲硓咢贌狢獱謭猂瓱賫𤪻蘯徺袠䒷"], - ["a055", "𡠻𦸅"], - ["a058", "詾𢔛"], - ["a05b", "惽癧髗鵄鍮鮏蟵"], - ["a063", "蠏賷猬霡鮰㗖犲䰇籑饊𦅙慙䰄麖慽"], - ["a073", "坟慯抦戹拎㩜懢厪𣏵捤栂㗒"], - ["a0a1", "嵗𨯂迚𨸹"], - ["a0a6", "僙𡵆礆匲阸𠼻䁥"], - ["a0ae", "矾"], - ["a0b0", "糂𥼚糚稭聦聣絍甅瓲覔舚朌聢𧒆聛瓰脃眤覉𦟌畓𦻑螩蟎臈螌詉貭譃眫瓸蓚㘵榲趦"], - ["a0d4", "覩瑨涹蟁𤀑瓧㷛煶悤憜㳑煢恷"], - ["a0e2", "罱𨬭牐惩䭾删㰘𣳇𥻗𧙖𥔱𡥄𡋾𩤃𦷜𧂭峁𦆭𨨏𣙷𠃮𦡆𤼎䕢嬟𦍌齐麦𦉫"], - ["a3c0", "␀", 31, "␡"], - ["c6a1", "①", 9, "⑴", 9, "ⅰ", 9, "丶丿亅亠冂冖冫勹匸卩厶夊宀巛⼳广廴彐彡攴无疒癶辵隶¨ˆヽヾゝゞ〃仝々〆〇ー[]✽ぁ", 23], - ["c740", "す", 58, "ァアィイ"], - ["c7a1", "ゥ", 81, "А", 5, "ЁЖ", 4], - ["c840", "Л", 26, "ёж", 25, "⇧↸↹㇏𠃌乚𠂊刂䒑"], - ["c8a1", "龰冈龱𧘇"], - ["c8cd", "¬¦'"㈱№℡゛゜⺀⺄⺆⺇⺈⺊⺌⺍⺕⺜⺝⺥⺧⺪⺬⺮⺶⺼⺾⻆⻊⻌⻍⻏⻖⻗⻞⻣"], - ["c8f5", "ʃɐɛɔɵœøŋʊɪ"], - ["f9fe", "■"], - ["fa40", "𠕇鋛𠗟𣿅蕌䊵珯况㙉𤥂𨧤鍄𡧛苮𣳈砼杄拟𤤳𨦪𠊠𦮳𡌅侫𢓭倈𦴩𧪄𣘀𤪱𢔓倩𠍾徤𠎀𠍇滛𠐟偽儁㑺儎顬㝃萖𤦤𠒇兠𣎴兪𠯿𢃼𠋥𢔰𠖎𣈳𡦃宂蝽𠖳𣲙冲冸"], - ["faa1", "鴴凉减凑㳜凓𤪦决凢卂凭菍椾𣜭彻刋刦刼劵剗劔効勅簕蕂勠蘍𦬓包𨫞啉滙𣾀𠥔𣿬匳卄𠯢泋𡜦栛珕恊㺪㣌𡛨燝䒢卭却𨚫卾卿𡖖𡘓矦厓𨪛厠厫厮玧𥝲㽙玜叁叅汉义埾叙㪫𠮏叠𣿫𢶣叶𠱷吓灹唫晗浛呭𦭓𠵴啝咏咤䞦𡜍𠻝㶴𠵍"], - ["fb40", "𨦼𢚘啇䳭启琗喆喩嘅𡣗𤀺䕒𤐵暳𡂴嘷曍𣊊暤暭噍噏磱囱鞇叾圀囯园𨭦㘣𡉏坆𤆥汮炋坂㚱𦱾埦𡐖堃𡑔𤍣堦𤯵塜墪㕡壠壜𡈼壻寿坃𪅐𤉸鏓㖡够梦㛃湙"], - ["fba1", "𡘾娤啓𡚒蔅姉𠵎𦲁𦴪𡟜姙𡟻𡞲𦶦浱𡠨𡛕姹𦹅媫婣㛦𤦩婷㜈媖瑥嫓𦾡𢕔㶅𡤑㜲𡚸広勐孶斈孼𧨎䀄䡝𠈄寕慠𡨴𥧌𠖥寳宝䴐尅𡭄尓珎尔𡲥𦬨屉䣝岅峩峯嶋𡷹𡸷崐崘嵆𡺤岺巗苼㠭𤤁𢁉𢅳芇㠶㯂帮檊幵幺𤒼𠳓厦亷廐厨𡝱帉廴𨒂"], - ["fc40", "廹廻㢠廼栾鐛弍𠇁弢㫞䢮𡌺强𦢈𢏐彘𢑱彣鞽𦹮彲鍀𨨶徧嶶㵟𥉐𡽪𧃸𢙨釖𠊞𨨩怱暅𡡷㥣㷇㘹垐𢞴祱㹀悞悤悳𤦂𤦏𧩓璤僡媠慤萤慂慈𦻒憁凴𠙖憇宪𣾷"], - ["fca1", "𢡟懓𨮝𩥝懐㤲𢦀𢣁怣慜攞掋𠄘担𡝰拕𢸍捬𤧟㨗搸揸𡎎𡟼撐澊𢸶頔𤂌𥜝擡擥鑻㩦携㩗敍漖𤨨𤨣斅敭敟𣁾斵𤥀䬷旑䃘𡠩无旣忟𣐀昘𣇷𣇸晄𣆤𣆥晋𠹵晧𥇦晳晴𡸽𣈱𨗴𣇈𥌓矅𢣷馤朂𤎜𤨡㬫槺𣟂杞杧杢𤇍𩃭柗䓩栢湐鈼栁𣏦𦶠桝"], - ["fd40", "𣑯槡樋𨫟楳棃𣗍椁椀㴲㨁𣘼㮀枬楡𨩊䋼椶榘㮡𠏉荣傐槹𣙙𢄪橅𣜃檝㯳枱櫈𩆜㰍欝𠤣惞欵歴𢟍溵𣫛𠎵𡥘㝀吡𣭚毡𣻼毜氷𢒋𤣱𦭑汚舦汹𣶼䓅𣶽𤆤𤤌𤤀"], - ["fda1", "𣳉㛥㳫𠴲鮃𣇹𢒑羏样𦴥𦶡𦷫涖浜湼漄𤥿𤂅𦹲蔳𦽴凇沜渝萮𨬡港𣸯瑓𣾂秌湏媑𣁋濸㜍澝𣸰滺𡒗𤀽䕕鏰潄潜㵎潴𩅰㴻澟𤅄濓𤂑𤅕𤀹𣿰𣾴𤄿凟𤅖𤅗𤅀𦇝灋灾炧炁烌烕烖烟䄄㷨熴熖𤉷焫煅媈煊煮岜𤍥煏鍢𤋁焬𤑚𤨧𤨢熺𨯨炽爎"], - ["fe40", "鑂爕夑鑃爤鍁𥘅爮牀𤥴梽牕牗㹕𣁄栍漽犂猪猫𤠣𨠫䣭𨠄猨献珏玪𠰺𦨮珉瑉𤇢𡛧𤨤昣㛅𤦷𤦍𤧻珷琕椃𤨦琹𠗃㻗瑜𢢭瑠𨺲瑇珤瑶莹瑬㜰瑴鏱樬璂䥓𤪌"], - ["fea1", "𤅟𤩹𨮏孆𨰃𡢞瓈𡦈甎瓩甞𨻙𡩋寗𨺬鎅畍畊畧畮𤾂㼄𤴓疎瑝疞疴瘂瘬癑癏癯癶𦏵皐臯㟸𦤑𦤎皡皥皷盌𦾟葢𥂝𥅽𡸜眞眦着撯𥈠睘𣊬瞯𨥤𨥨𡛁矴砉𡍶𤨒棊碯磇磓隥礮𥗠磗礴碱𧘌辸袄𨬫𦂃𢘜禆褀椂禀𥡗禝𧬹礼禩渪𧄦㺨秆𩄍秔"] - ]; -}); - -// node_modules/iconv-lite/encodings/dbcs-data.js -var require_dbcs_data = __commonJS((exports, module) => { - module.exports = { - shiftjis: { - type: "_dbcs", - table: function() { - return require_shiftjis(); - }, - encodeAdd: { "¥": 92, "‾": 126 }, - encodeSkipVals: [{ from: 60736, to: 63808 }] - }, - csshiftjis: "shiftjis", - mskanji: "shiftjis", - sjis: "shiftjis", - windows31j: "shiftjis", - ms31j: "shiftjis", - xsjis: "shiftjis", - windows932: "shiftjis", - ms932: "shiftjis", - "932": "shiftjis", - cp932: "shiftjis", - eucjp: { - type: "_dbcs", - table: function() { - return require_eucjp(); - }, - encodeAdd: { "¥": 92, "‾": 126 } - }, - gb2312: "cp936", - gb231280: "cp936", - gb23121980: "cp936", - csgb2312: "cp936", - csiso58gb231280: "cp936", - euccn: "cp936", - windows936: "cp936", - ms936: "cp936", - "936": "cp936", - cp936: { - type: "_dbcs", - table: function() { - return require_cp936(); - } - }, - gbk: { - type: "_dbcs", - table: function() { - return require_cp936().concat(require_gbk_added()); - } - }, - xgbk: "gbk", - isoir58: "gbk", - gb18030: { - type: "_dbcs", - table: function() { - return require_cp936().concat(require_gbk_added()); - }, - gb18030: function() { - return require_gb18030_ranges(); - }, - encodeSkipVals: [128], - encodeAdd: { "€": 41699 } - }, - chinese: "gb18030", - windows949: "cp949", - ms949: "cp949", - "949": "cp949", - cp949: { - type: "_dbcs", - table: function() { - return require_cp949(); - } - }, - cseuckr: "cp949", - csksc56011987: "cp949", - euckr: "cp949", - isoir149: "cp949", - korean: "cp949", - ksc56011987: "cp949", - ksc56011989: "cp949", - ksc5601: "cp949", - windows950: "cp950", - ms950: "cp950", - "950": "cp950", - cp950: { - type: "_dbcs", - table: function() { - return require_cp950(); - } - }, - big5: "big5hkscs", - big5hkscs: { - type: "_dbcs", - table: function() { - return require_cp950().concat(require_big5_added()); - }, - encodeSkipVals: [41676] - }, - cnbig5: "big5hkscs", - csbig5: "big5hkscs", - xxbig5: "big5hkscs" - }; -}); - -// node_modules/iconv-lite/encodings/index.js -var require_encodings = __commonJS((exports, module) => { - var modules = [ - require_internal(), - require_utf16(), - require_utf7(), - require_sbcs_codec(), - require_sbcs_data(), - require_sbcs_data_generated(), - require_dbcs_codec(), - require_dbcs_data() - ]; - for (i = 0;i < modules.length; i++) { - module = modules[i]; - for (enc in module) - if (Object.prototype.hasOwnProperty.call(module, enc)) - exports[enc] = module[enc]; - } - var module; - var enc; - var i; -}); - -// node_modules/iconv-lite/lib/streams.js -var require_streams = __commonJS((exports, module) => { - var Buffer2 = __require("buffer").Buffer; - var Transform = __require("stream").Transform; - module.exports = function(iconv) { - iconv.encodeStream = function encodeStream(encoding, options) { - return new IconvLiteEncoderStream(iconv.getEncoder(encoding, options), options); - }; - iconv.decodeStream = function decodeStream(encoding, options) { - return new IconvLiteDecoderStream(iconv.getDecoder(encoding, options), options); - }; - iconv.supportsStreams = true; - iconv.IconvLiteEncoderStream = IconvLiteEncoderStream; - iconv.IconvLiteDecoderStream = IconvLiteDecoderStream; - iconv._collect = IconvLiteDecoderStream.prototype.collect; - }; - function IconvLiteEncoderStream(conv, options) { - this.conv = conv; - options = options || {}; - options.decodeStrings = false; - Transform.call(this, options); - } - IconvLiteEncoderStream.prototype = Object.create(Transform.prototype, { - constructor: { value: IconvLiteEncoderStream } - }); - IconvLiteEncoderStream.prototype._transform = function(chunk, encoding, done) { - if (typeof chunk != "string") - return done(new Error("Iconv encoding stream needs strings as its input.")); - try { - var res = this.conv.write(chunk); - if (res && res.length) - this.push(res); - done(); - } catch (e) { - done(e); - } - }; - IconvLiteEncoderStream.prototype._flush = function(done) { - try { - var res = this.conv.end(); - if (res && res.length) - this.push(res); - done(); - } catch (e) { - done(e); - } - }; - IconvLiteEncoderStream.prototype.collect = function(cb) { - var chunks = []; - this.on("error", cb); - this.on("data", function(chunk) { - chunks.push(chunk); - }); - this.on("end", function() { - cb(null, Buffer2.concat(chunks)); - }); - return this; - }; - function IconvLiteDecoderStream(conv, options) { - this.conv = conv; - options = options || {}; - options.encoding = this.encoding = "utf8"; - Transform.call(this, options); - } - IconvLiteDecoderStream.prototype = Object.create(Transform.prototype, { - constructor: { value: IconvLiteDecoderStream } - }); - IconvLiteDecoderStream.prototype._transform = function(chunk, encoding, done) { - if (!Buffer2.isBuffer(chunk)) - return done(new Error("Iconv decoding stream needs buffers as its input.")); - try { - var res = this.conv.write(chunk); - if (res && res.length) - this.push(res, this.encoding); - done(); - } catch (e) { - done(e); - } - }; - IconvLiteDecoderStream.prototype._flush = function(done) { - try { - var res = this.conv.end(); - if (res && res.length) - this.push(res, this.encoding); - done(); - } catch (e) { - done(e); - } - }; - IconvLiteDecoderStream.prototype.collect = function(cb) { - var res = ""; - this.on("error", cb); - this.on("data", function(chunk) { - res += chunk; - }); - this.on("end", function() { - cb(null, res); - }); - return this; - }; -}); - -// node_modules/iconv-lite/lib/extend-node.js -var require_extend_node = __commonJS((exports, module) => { - var Buffer2 = __require("buffer").Buffer; - module.exports = function(iconv) { - var original = undefined; - iconv.supportsNodeEncodingsExtension = !(Buffer2.from || new Buffer2(0) instanceof Uint8Array); - iconv.extendNodeEncodings = function extendNodeEncodings() { - if (original) - return; - original = {}; - if (!iconv.supportsNodeEncodingsExtension) { - console.error("ACTION NEEDED: require('iconv-lite').extendNodeEncodings() is not supported in your version of Node"); - console.error("See more info at https://github.com/ashtuchkin/iconv-lite/wiki/Node-v4-compatibility"); - return; - } - var nodeNativeEncodings = { - hex: true, - utf8: true, - "utf-8": true, - ascii: true, - binary: true, - base64: true, - ucs2: true, - "ucs-2": true, - utf16le: true, - "utf-16le": true - }; - Buffer2.isNativeEncoding = function(enc) { - return enc && nodeNativeEncodings[enc.toLowerCase()]; - }; - var SlowBuffer = __require("buffer").SlowBuffer; - original.SlowBufferToString = SlowBuffer.prototype.toString; - SlowBuffer.prototype.toString = function(encoding, start, end) { - encoding = String(encoding || "utf8").toLowerCase(); - if (Buffer2.isNativeEncoding(encoding)) - return original.SlowBufferToString.call(this, encoding, start, end); - if (typeof start == "undefined") - start = 0; - if (typeof end == "undefined") - end = this.length; - return iconv.decode(this.slice(start, end), encoding); - }; - original.SlowBufferWrite = SlowBuffer.prototype.write; - SlowBuffer.prototype.write = function(string4, offset, length, encoding) { - if (isFinite(offset)) { - if (!isFinite(length)) { - encoding = length; - length = undefined; - } - } else { - var swap = encoding; - encoding = offset; - offset = length; - length = swap; - } - offset = +offset || 0; - var remaining = this.length - offset; - if (!length) { - length = remaining; - } else { - length = +length; - if (length > remaining) { - length = remaining; - } - } - encoding = String(encoding || "utf8").toLowerCase(); - if (Buffer2.isNativeEncoding(encoding)) - return original.SlowBufferWrite.call(this, string4, offset, length, encoding); - if (string4.length > 0 && (length < 0 || offset < 0)) - throw new RangeError("attempt to write beyond buffer bounds"); - var buf = iconv.encode(string4, encoding); - if (buf.length < length) - length = buf.length; - buf.copy(this, offset, 0, length); - return length; - }; - original.BufferIsEncoding = Buffer2.isEncoding; - Buffer2.isEncoding = function(encoding) { - return Buffer2.isNativeEncoding(encoding) || iconv.encodingExists(encoding); - }; - original.BufferByteLength = Buffer2.byteLength; - Buffer2.byteLength = SlowBuffer.byteLength = function(str, encoding) { - encoding = String(encoding || "utf8").toLowerCase(); - if (Buffer2.isNativeEncoding(encoding)) - return original.BufferByteLength.call(this, str, encoding); - return iconv.encode(str, encoding).length; - }; - original.BufferToString = Buffer2.prototype.toString; - Buffer2.prototype.toString = function(encoding, start, end) { - encoding = String(encoding || "utf8").toLowerCase(); - if (Buffer2.isNativeEncoding(encoding)) - return original.BufferToString.call(this, encoding, start, end); - if (typeof start == "undefined") - start = 0; - if (typeof end == "undefined") - end = this.length; - return iconv.decode(this.slice(start, end), encoding); - }; - original.BufferWrite = Buffer2.prototype.write; - Buffer2.prototype.write = function(string4, offset, length, encoding) { - var _offset = offset, _length2 = length, _encoding = encoding; - if (isFinite(offset)) { - if (!isFinite(length)) { - encoding = length; - length = undefined; - } - } else { - var swap = encoding; - encoding = offset; - offset = length; - length = swap; - } - encoding = String(encoding || "utf8").toLowerCase(); - if (Buffer2.isNativeEncoding(encoding)) - return original.BufferWrite.call(this, string4, _offset, _length2, _encoding); - offset = +offset || 0; - var remaining = this.length - offset; - if (!length) { - length = remaining; - } else { - length = +length; - if (length > remaining) { - length = remaining; - } - } - if (string4.length > 0 && (length < 0 || offset < 0)) - throw new RangeError("attempt to write beyond buffer bounds"); - var buf = iconv.encode(string4, encoding); - if (buf.length < length) - length = buf.length; - buf.copy(this, offset, 0, length); - return length; - }; - if (iconv.supportsStreams) { - var Readable = __require("stream").Readable; - original.ReadableSetEncoding = Readable.prototype.setEncoding; - Readable.prototype.setEncoding = function setEncoding(enc, options) { - this._readableState.decoder = iconv.getDecoder(enc, options); - this._readableState.encoding = enc; - }; - Readable.prototype.collect = iconv._collect; - } - }; - iconv.undoExtendNodeEncodings = function undoExtendNodeEncodings() { - if (!iconv.supportsNodeEncodingsExtension) - return; - if (!original) - throw new Error("require('iconv-lite').undoExtendNodeEncodings(): Nothing to undo; extendNodeEncodings() is not called."); - delete Buffer2.isNativeEncoding; - var SlowBuffer = __require("buffer").SlowBuffer; - SlowBuffer.prototype.toString = original.SlowBufferToString; - SlowBuffer.prototype.write = original.SlowBufferWrite; - Buffer2.isEncoding = original.BufferIsEncoding; - Buffer2.byteLength = original.BufferByteLength; - Buffer2.prototype.toString = original.BufferToString; - Buffer2.prototype.write = original.BufferWrite; - if (iconv.supportsStreams) { - var Readable = __require("stream").Readable; - Readable.prototype.setEncoding = original.ReadableSetEncoding; - delete Readable.prototype.collect; - } - original = undefined; - }; - }; -}); - -// node_modules/iconv-lite/lib/index.js -var require_lib = __commonJS((exports, module) => { - var Buffer2 = require_safer().Buffer; - var bomHandling = require_bom_handling(); - var iconv = exports; - iconv.encodings = null; - iconv.defaultCharUnicode = "�"; - iconv.defaultCharSingleByte = "?"; - iconv.encode = function encode3(str, encoding, options) { - str = "" + (str || ""); - var encoder = iconv.getEncoder(encoding, options); - var res = encoder.write(str); - var trail = encoder.end(); - return trail && trail.length > 0 ? Buffer2.concat([res, trail]) : res; - }; - iconv.decode = function decode3(buf, encoding, options) { - if (typeof buf === "string") { - if (!iconv.skipDecodeWarning) { - console.error("Iconv-lite warning: decode()-ing strings is deprecated. Refer to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding"); - iconv.skipDecodeWarning = true; - } - buf = Buffer2.from("" + (buf || ""), "binary"); - } - var decoder = iconv.getDecoder(encoding, options); - var res = decoder.write(buf); - var trail = decoder.end(); - return trail ? res + trail : res; - }; - iconv.encodingExists = function encodingExists(enc) { - try { - iconv.getCodec(enc); - return true; - } catch (e) { - return false; - } - }; - iconv.toEncoding = iconv.encode; - iconv.fromEncoding = iconv.decode; - iconv._codecDataCache = {}; - iconv.getCodec = function getCodec(encoding) { - if (!iconv.encodings) - iconv.encodings = require_encodings(); - var enc = iconv._canonicalizeEncoding(encoding); - var codecOptions = {}; - while (true) { - var codec = iconv._codecDataCache[enc]; - if (codec) - return codec; - var codecDef = iconv.encodings[enc]; - switch (typeof codecDef) { - case "string": - enc = codecDef; - break; - case "object": - for (var key in codecDef) - codecOptions[key] = codecDef[key]; - if (!codecOptions.encodingName) - codecOptions.encodingName = enc; - enc = codecDef.type; - break; - case "function": - if (!codecOptions.encodingName) - codecOptions.encodingName = enc; - codec = new codecDef(codecOptions, iconv); - iconv._codecDataCache[codecOptions.encodingName] = codec; - return codec; - default: - throw new Error("Encoding not recognized: '" + encoding + "' (searched as: '" + enc + "')"); - } - } - }; - iconv._canonicalizeEncoding = function(encoding) { - return ("" + encoding).toLowerCase().replace(/:\d{4}$|[^0-9a-z]/g, ""); - }; - iconv.getEncoder = function getEncoder(encoding, options) { - var codec = iconv.getCodec(encoding), encoder = new codec.encoder(options, codec); - if (codec.bomAware && options && options.addBOM) - encoder = new bomHandling.PrependBOM(encoder, options); - return encoder; - }; - iconv.getDecoder = function getDecoder(encoding, options) { - var codec = iconv.getCodec(encoding), decoder = new codec.decoder(options, codec); - if (codec.bomAware && !(options && options.stripBOM === false)) - decoder = new bomHandling.StripBOM(decoder, options); - return decoder; - }; - var nodeVer = typeof process !== "undefined" && process.versions && process.versions.node; - if (nodeVer) { - nodeVerArr = nodeVer.split(".").map(Number); - if (nodeVerArr[0] > 0 || nodeVerArr[1] >= 10) { - require_streams()(iconv); - } - require_extend_node()(iconv); - } - var nodeVerArr; - if (false) {} -}); - -// node_modules/unpipe/index.js -var require_unpipe = __commonJS((exports, module) => { - /*! - * unpipe - * Copyright(c) 2015 Douglas Christopher Wilson - * MIT Licensed - */ - module.exports = unpipe; - function hasPipeDataListeners(stream) { - var listeners = stream.listeners("data"); - for (var i = 0;i < listeners.length; i++) { - if (listeners[i].name === "ondata") { - return true; - } - } - return false; - } - function unpipe(stream) { - if (!stream) { - throw new TypeError("argument stream is required"); - } - if (typeof stream.unpipe === "function") { - stream.unpipe(); - return; - } - if (!hasPipeDataListeners(stream)) { - return; - } - var listener; - var listeners = stream.listeners("close"); - for (var i = 0;i < listeners.length; i++) { - listener = listeners[i]; - if (listener.name !== "cleanup" && listener.name !== "onclose") { - continue; - } - listener.call(stream); - } - } -}); - -// node_modules/body-parser/node_modules/raw-body/index.js -var require_raw_body = __commonJS((exports, module) => { - /*! - * raw-body - * Copyright(c) 2013-2014 Jonathan Ong - * Copyright(c) 2014-2022 Douglas Christopher Wilson - * MIT Licensed - */ - var asyncHooks = tryRequireAsyncHooks(); - var bytes = require_bytes(); - var createError = require_http_errors(); - var iconv = require_lib(); - var unpipe = require_unpipe(); - module.exports = getRawBody; - var ICONV_ENCODING_MESSAGE_REGEXP = /^Encoding not recognized: /; - function getDecoder(encoding) { - if (!encoding) - return null; - try { - return iconv.getDecoder(encoding); - } catch (e) { - if (!ICONV_ENCODING_MESSAGE_REGEXP.test(e.message)) - throw e; - throw createError(415, "specified encoding unsupported", { - encoding, - type: "encoding.unsupported" - }); - } - } - function getRawBody(stream, options, callback) { - var done = callback; - var opts = options || {}; - if (stream === undefined) { - throw new TypeError("argument stream is required"); - } else if (typeof stream !== "object" || stream === null || typeof stream.on !== "function") { - throw new TypeError("argument stream must be a stream"); - } - if (options === true || typeof options === "string") { - opts = { - encoding: options - }; - } - if (typeof options === "function") { - done = options; - opts = {}; - } - if (done !== undefined && typeof done !== "function") { - throw new TypeError("argument callback must be a function"); - } - if (!done && !global.Promise) { - throw new TypeError("argument callback is required"); - } - var encoding = opts.encoding !== true ? opts.encoding : "utf-8"; - var limit = bytes.parse(opts.limit); - var length = opts.length != null && !isNaN(opts.length) ? parseInt(opts.length, 10) : null; - if (done) { - return readStream(stream, encoding, length, limit, wrap(done)); - } - return new Promise(function executor(resolve, reject) { - readStream(stream, encoding, length, limit, function onRead(err, buf) { - if (err) - return reject(err); - resolve(buf); - }); - }); - } - function halt(stream) { - unpipe(stream); - if (typeof stream.pause === "function") { - stream.pause(); - } - } - function readStream(stream, encoding, length, limit, callback) { - var complete = false; - var sync = true; - if (limit !== null && length !== null && length > limit) { - return done(createError(413, "request entity too large", { - expected: length, - length, - limit, - type: "entity.too.large" - })); - } - var state = stream._readableState; - if (stream._decoder || state && (state.encoding || state.decoder)) { - return done(createError(500, "stream encoding should not be set", { - type: "stream.encoding.set" - })); - } - if (typeof stream.readable !== "undefined" && !stream.readable) { - return done(createError(500, "stream is not readable", { - type: "stream.not.readable" - })); - } - var received = 0; - var decoder; - try { - decoder = getDecoder(encoding); - } catch (err) { - return done(err); - } - var buffer = decoder ? "" : []; - stream.on("aborted", onAborted); - stream.on("close", cleanup); - stream.on("data", onData); - stream.on("end", onEnd); - stream.on("error", onEnd); - sync = false; - function done() { - var args = new Array(arguments.length); - for (var i = 0;i < args.length; i++) { - args[i] = arguments[i]; - } - complete = true; - if (sync) { - process.nextTick(invokeCallback); - } else { - invokeCallback(); - } - function invokeCallback() { - cleanup(); - if (args[0]) { - halt(stream); - } - callback.apply(null, args); - } - } - function onAborted() { - if (complete) - return; - done(createError(400, "request aborted", { - code: "ECONNABORTED", - expected: length, - length, - received, - type: "request.aborted" - })); - } - function onData(chunk) { - if (complete) - return; - received += chunk.length; - if (limit !== null && received > limit) { - done(createError(413, "request entity too large", { - limit, - received, - type: "entity.too.large" - })); - } else if (decoder) { - buffer += decoder.write(chunk); - } else { - buffer.push(chunk); - } - } - function onEnd(err) { - if (complete) - return; - if (err) - return done(err); - if (length !== null && received !== length) { - done(createError(400, "request size did not match content length", { - expected: length, - length, - received, - type: "request.size.invalid" - })); - } else { - var string4 = decoder ? buffer + (decoder.end() || "") : Buffer.concat(buffer); - done(null, string4); - } - } - function cleanup() { - buffer = null; - stream.removeListener("aborted", onAborted); - stream.removeListener("data", onData); - stream.removeListener("end", onEnd); - stream.removeListener("error", onEnd); - stream.removeListener("close", cleanup); - } - } - function tryRequireAsyncHooks() { - try { - return __require("async_hooks"); - } catch (e) { - return {}; - } - } - function wrap(fn) { - var res; - if (asyncHooks.AsyncResource) { - res = new asyncHooks.AsyncResource(fn.name || "bound-anonymous-fn"); - } - if (!res || !res.runInAsyncScope) { - return fn; - } - return res.runInAsyncScope.bind(res, fn, null); - } -}); - -// node_modules/ee-first/index.js -var require_ee_first = __commonJS((exports, module) => { - /*! - * ee-first - * Copyright(c) 2014 Jonathan Ong - * MIT Licensed - */ - module.exports = first; - function first(stuff, done) { - if (!Array.isArray(stuff)) - throw new TypeError("arg must be an array of [ee, events...] arrays"); - var cleanups = []; - for (var i = 0;i < stuff.length; i++) { - var arr = stuff[i]; - if (!Array.isArray(arr) || arr.length < 2) - throw new TypeError("each array member must be [ee, events...]"); - var ee = arr[0]; - for (var j = 1;j < arr.length; j++) { - var event = arr[j]; - var fn = listener(event, callback); - ee.on(event, fn); - cleanups.push({ - ee, - event, - fn - }); - } - } - function callback() { - cleanup(); - done.apply(null, arguments); - } - function cleanup() { - var x; - for (var i2 = 0;i2 < cleanups.length; i2++) { - x = cleanups[i2]; - x.ee.removeListener(x.event, x.fn); - } - } - function thunk(fn2) { - done = fn2; - } - thunk.cancel = cleanup; - return thunk; - } - function listener(event, done) { - return function onevent(arg1) { - var args = new Array(arguments.length); - var ee = this; - var err = event === "error" ? arg1 : null; - for (var i = 0;i < args.length; i++) { - args[i] = arguments[i]; - } - done(err, ee, event, args); - }; - } -}); - -// node_modules/on-finished/index.js -var require_on_finished = __commonJS((exports, module) => { - /*! - * on-finished - * Copyright(c) 2013 Jonathan Ong - * Copyright(c) 2014 Douglas Christopher Wilson - * MIT Licensed - */ - module.exports = onFinished; - module.exports.isFinished = isFinished; - var asyncHooks = tryRequireAsyncHooks(); - var first = require_ee_first(); - var defer = typeof setImmediate === "function" ? setImmediate : function(fn) { - process.nextTick(fn.bind.apply(fn, arguments)); - }; - function onFinished(msg, listener) { - if (isFinished(msg) !== false) { - defer(listener, null, msg); - return msg; - } - attachListener(msg, wrap(listener)); - return msg; - } - function isFinished(msg) { - var socket = msg.socket; - if (typeof msg.finished === "boolean") { - return Boolean(msg.finished || socket && !socket.writable); - } - if (typeof msg.complete === "boolean") { - return Boolean(msg.upgrade || !socket || !socket.readable || msg.complete && !msg.readable); - } - return; - } - function attachFinishedListener(msg, callback) { - var eeMsg; - var eeSocket; - var finished = false; - function onFinish(error2) { - eeMsg.cancel(); - eeSocket.cancel(); - finished = true; - callback(error2); - } - eeMsg = eeSocket = first([[msg, "end", "finish"]], onFinish); - function onSocket(socket) { - msg.removeListener("socket", onSocket); - if (finished) - return; - if (eeMsg !== eeSocket) - return; - eeSocket = first([[socket, "error", "close"]], onFinish); - } - if (msg.socket) { - onSocket(msg.socket); - return; - } - msg.on("socket", onSocket); - if (msg.socket === undefined) { - patchAssignSocket(msg, onSocket); - } - } - function attachListener(msg, listener) { - var attached = msg.__onFinished; - if (!attached || !attached.queue) { - attached = msg.__onFinished = createListener(msg); - attachFinishedListener(msg, attached); - } - attached.queue.push(listener); - } - function createListener(msg) { - function listener(err) { - if (msg.__onFinished === listener) - msg.__onFinished = null; - if (!listener.queue) - return; - var queue = listener.queue; - listener.queue = null; - for (var i = 0;i < queue.length; i++) { - queue[i](err, msg); - } - } - listener.queue = []; - return listener; - } - function patchAssignSocket(res, callback) { - var assignSocket = res.assignSocket; - if (typeof assignSocket !== "function") - return; - res.assignSocket = function _assignSocket(socket) { - assignSocket.call(this, socket); - callback(socket); - }; - } - function tryRequireAsyncHooks() { - try { - return __require("async_hooks"); - } catch (e) { - return {}; - } - } - function wrap(fn) { - var res; - if (asyncHooks.AsyncResource) { - res = new asyncHooks.AsyncResource(fn.name || "bound-anonymous-fn"); - } - if (!res || !res.runInAsyncScope) { - return fn; - } - return res.runInAsyncScope.bind(res, fn, null); - } -}); - -// node_modules/body-parser/lib/read.js -var require_read = __commonJS((exports, module) => { - /*! - * body-parser - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - */ - var createError = require_http_errors(); - var destroy = require_destroy(); - var getBody = require_raw_body(); - var iconv = require_lib(); - var onFinished = require_on_finished(); - var unpipe = require_unpipe(); - var zlib = __require("zlib"); - module.exports = read; - function read(req, res, next, parse5, debug, options) { - var length; - var opts = options; - var stream; - req._body = true; - var encoding = opts.encoding !== null ? opts.encoding : null; - var verify = opts.verify; - try { - stream = contentstream(req, debug, opts.inflate); - length = stream.length; - stream.length = undefined; - } catch (err) { - return next(err); - } - opts.length = length; - opts.encoding = verify ? null : encoding; - if (opts.encoding === null && encoding !== null && !iconv.encodingExists(encoding)) { - return next(createError(415, 'unsupported charset "' + encoding.toUpperCase() + '"', { - charset: encoding.toLowerCase(), - type: "charset.unsupported" - })); - } - debug("read body"); - getBody(stream, opts, function(error2, body) { - if (error2) { - var _error; - if (error2.type === "encoding.unsupported") { - _error = createError(415, 'unsupported charset "' + encoding.toUpperCase() + '"', { - charset: encoding.toLowerCase(), - type: "charset.unsupported" - }); - } else { - _error = createError(400, error2); - } - if (stream !== req) { - unpipe(req); - destroy(stream, true); - } - dump(req, function onfinished() { - next(createError(400, _error)); - }); - return; - } - if (verify) { - try { - debug("verify body"); - verify(req, res, body, encoding); - } catch (err) { - next(createError(403, err, { - body, - type: err.type || "entity.verify.failed" - })); - return; - } - } - var str = body; - try { - debug("parse body"); - str = typeof body !== "string" && encoding !== null ? iconv.decode(body, encoding) : body; - req.body = parse5(str); - } catch (err) { - next(createError(400, err, { - body: str, - type: err.type || "entity.parse.failed" - })); - return; - } - next(); - }); - } - function contentstream(req, debug, inflate) { - var encoding = (req.headers["content-encoding"] || "identity").toLowerCase(); - var length = req.headers["content-length"]; - var stream; - debug('content-encoding "%s"', encoding); - if (inflate === false && encoding !== "identity") { - throw createError(415, "content encoding unsupported", { - encoding, - type: "encoding.unsupported" - }); - } - switch (encoding) { - case "deflate": - stream = zlib.createInflate(); - debug("inflate body"); - req.pipe(stream); - break; - case "gzip": - stream = zlib.createGunzip(); - debug("gunzip body"); - req.pipe(stream); - break; - case "identity": - stream = req; - stream.length = length; - break; - default: - throw createError(415, 'unsupported content encoding "' + encoding + '"', { - encoding, - type: "encoding.unsupported" - }); - } - return stream; - } - function dump(req, callback) { - if (onFinished.isFinished(req)) { - callback(null); - } else { - onFinished(req, callback); - req.resume(); - } - } -}); - -// node_modules/media-typer/index.js -var require_media_typer = __commonJS((exports) => { - /*! - * media-typer - * Copyright(c) 2014 Douglas Christopher Wilson - * MIT Licensed - */ - var paramRegExp = /; *([!#$%&'\*\+\-\.0-9A-Z\^_`a-z\|~]+) *= *("(?:[ !\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u0020-\u007e])*"|[!#$%&'\*\+\-\.0-9A-Z\^_`a-z\|~]+) */g; - var textRegExp = /^[\u0020-\u007e\u0080-\u00ff]+$/; - var tokenRegExp = /^[!#$%&'\*\+\-\.0-9A-Z\^_`a-z\|~]+$/; - var qescRegExp = /\\([\u0000-\u007f])/g; - var quoteRegExp = /([\\"])/g; - var subtypeNameRegExp = /^[A-Za-z0-9][A-Za-z0-9!#$&^_.-]{0,126}$/; - var typeNameRegExp = /^[A-Za-z0-9][A-Za-z0-9!#$&^_-]{0,126}$/; - var typeRegExp = /^ *([A-Za-z0-9][A-Za-z0-9!#$&^_-]{0,126})\/([A-Za-z0-9][A-Za-z0-9!#$&^_.+-]{0,126}) *$/; - exports.format = format; - exports.parse = parse5; - function format(obj) { - if (!obj || typeof obj !== "object") { - throw new TypeError("argument obj is required"); - } - var parameters = obj.parameters; - var subtype = obj.subtype; - var suffix = obj.suffix; - var type = obj.type; - if (!type || !typeNameRegExp.test(type)) { - throw new TypeError("invalid type"); - } - if (!subtype || !subtypeNameRegExp.test(subtype)) { - throw new TypeError("invalid subtype"); - } - var string4 = type + "/" + subtype; - if (suffix) { - if (!typeNameRegExp.test(suffix)) { - throw new TypeError("invalid suffix"); - } - string4 += "+" + suffix; - } - if (parameters && typeof parameters === "object") { - var param; - var params = Object.keys(parameters).sort(); - for (var i = 0;i < params.length; i++) { - param = params[i]; - if (!tokenRegExp.test(param)) { - throw new TypeError("invalid parameter name"); - } - string4 += "; " + param + "=" + qstring(parameters[param]); - } - } - return string4; - } - function parse5(string4) { - if (!string4) { - throw new TypeError("argument string is required"); - } - if (typeof string4 === "object") { - string4 = getcontenttype(string4); - } - if (typeof string4 !== "string") { - throw new TypeError("argument string is required to be a string"); - } - var index = string4.indexOf(";"); - var type = index !== -1 ? string4.substr(0, index) : string4; - var key; - var match; - var obj = splitType(type); - var params = {}; - var value; - paramRegExp.lastIndex = index; - while (match = paramRegExp.exec(string4)) { - if (match.index !== index) { - throw new TypeError("invalid parameter format"); - } - index += match[0].length; - key = match[1].toLowerCase(); - value = match[2]; - if (value[0] === '"') { - value = value.substr(1, value.length - 2).replace(qescRegExp, "$1"); - } - params[key] = value; - } - if (index !== -1 && index !== string4.length) { - throw new TypeError("invalid parameter format"); - } - obj.parameters = params; - return obj; - } - function getcontenttype(obj) { - if (typeof obj.getHeader === "function") { - return obj.getHeader("content-type"); - } - if (typeof obj.headers === "object") { - return obj.headers && obj.headers["content-type"]; - } - } - function qstring(val) { - var str = String(val); - if (tokenRegExp.test(str)) { - return str; - } - if (str.length > 0 && !textRegExp.test(str)) { - throw new TypeError("invalid parameter value"); - } - return '"' + str.replace(quoteRegExp, "\\$1") + '"'; - } - function splitType(string4) { - var match = typeRegExp.exec(string4.toLowerCase()); - if (!match) { - throw new TypeError("invalid media type"); - } - var type = match[1]; - var subtype = match[2]; - var suffix; - var index = subtype.lastIndexOf("+"); - if (index !== -1) { - suffix = subtype.substr(index + 1); - subtype = subtype.substr(0, index); - } - var obj = { - type, - subtype, - suffix - }; - return obj; - } -}); - -// node_modules/mime-db/db.json -var require_db = __commonJS((exports, module) => { - module.exports = { - "application/1d-interleaved-parityfec": { - source: "iana" - }, - "application/3gpdash-qoe-report+xml": { - source: "iana", - charset: "UTF-8", - compressible: true - }, - "application/3gpp-ims+xml": { - source: "iana", - compressible: true - }, - "application/3gpphal+json": { - source: "iana", - compressible: true - }, - "application/3gpphalforms+json": { - source: "iana", - compressible: true - }, - "application/a2l": { - source: "iana" - }, - "application/ace+cbor": { - source: "iana" - }, - "application/activemessage": { - source: "iana" - }, - "application/activity+json": { - source: "iana", - compressible: true - }, - "application/alto-costmap+json": { - source: "iana", - compressible: true - }, - "application/alto-costmapfilter+json": { - source: "iana", - compressible: true - }, - "application/alto-directory+json": { - source: "iana", - compressible: true - }, - "application/alto-endpointcost+json": { - source: "iana", - compressible: true - }, - "application/alto-endpointcostparams+json": { - source: "iana", - compressible: true - }, - "application/alto-endpointprop+json": { - source: "iana", - compressible: true - }, - "application/alto-endpointpropparams+json": { - source: "iana", - compressible: true - }, - "application/alto-error+json": { - source: "iana", - compressible: true - }, - "application/alto-networkmap+json": { - source: "iana", - compressible: true - }, - "application/alto-networkmapfilter+json": { - source: "iana", - compressible: true - }, - "application/alto-updatestreamcontrol+json": { - source: "iana", - compressible: true - }, - "application/alto-updatestreamparams+json": { - source: "iana", - compressible: true - }, - "application/aml": { - source: "iana" - }, - "application/andrew-inset": { - source: "iana", - extensions: ["ez"] - }, - "application/applefile": { - source: "iana" - }, - "application/applixware": { - source: "apache", - extensions: ["aw"] - }, - "application/at+jwt": { - source: "iana" - }, - "application/atf": { - source: "iana" - }, - "application/atfx": { - source: "iana" - }, - "application/atom+xml": { - source: "iana", - compressible: true, - extensions: ["atom"] - }, - "application/atomcat+xml": { - source: "iana", - compressible: true, - extensions: ["atomcat"] - }, - "application/atomdeleted+xml": { - source: "iana", - compressible: true, - extensions: ["atomdeleted"] - }, - "application/atomicmail": { - source: "iana" - }, - "application/atomsvc+xml": { - source: "iana", - compressible: true, - extensions: ["atomsvc"] - }, - "application/atsc-dwd+xml": { - source: "iana", - compressible: true, - extensions: ["dwd"] - }, - "application/atsc-dynamic-event-message": { - source: "iana" - }, - "application/atsc-held+xml": { - source: "iana", - compressible: true, - extensions: ["held"] - }, - "application/atsc-rdt+json": { - source: "iana", - compressible: true - }, - "application/atsc-rsat+xml": { - source: "iana", - compressible: true, - extensions: ["rsat"] - }, - "application/atxml": { - source: "iana" - }, - "application/auth-policy+xml": { - source: "iana", - compressible: true - }, - "application/bacnet-xdd+zip": { - source: "iana", - compressible: false - }, - "application/batch-smtp": { - source: "iana" - }, - "application/bdoc": { - compressible: false, - extensions: ["bdoc"] - }, - "application/beep+xml": { - source: "iana", - charset: "UTF-8", - compressible: true - }, - "application/calendar+json": { - source: "iana", - compressible: true - }, - "application/calendar+xml": { - source: "iana", - compressible: true, - extensions: ["xcs"] - }, - "application/call-completion": { - source: "iana" - }, - "application/cals-1840": { - source: "iana" - }, - "application/captive+json": { - source: "iana", - compressible: true - }, - "application/cbor": { - source: "iana" - }, - "application/cbor-seq": { - source: "iana" - }, - "application/cccex": { - source: "iana" - }, - "application/ccmp+xml": { - source: "iana", - compressible: true - }, - "application/ccxml+xml": { - source: "iana", - compressible: true, - extensions: ["ccxml"] - }, - "application/cdfx+xml": { - source: "iana", - compressible: true, - extensions: ["cdfx"] - }, - "application/cdmi-capability": { - source: "iana", - extensions: ["cdmia"] - }, - "application/cdmi-container": { - source: "iana", - extensions: ["cdmic"] - }, - "application/cdmi-domain": { - source: "iana", - extensions: ["cdmid"] - }, - "application/cdmi-object": { - source: "iana", - extensions: ["cdmio"] - }, - "application/cdmi-queue": { - source: "iana", - extensions: ["cdmiq"] - }, - "application/cdni": { - source: "iana" - }, - "application/cea": { - source: "iana" - }, - "application/cea-2018+xml": { - source: "iana", - compressible: true - }, - "application/cellml+xml": { - source: "iana", - compressible: true - }, - "application/cfw": { - source: "iana" - }, - "application/city+json": { - source: "iana", - compressible: true - }, - "application/clr": { - source: "iana" - }, - "application/clue+xml": { - source: "iana", - compressible: true - }, - "application/clue_info+xml": { - source: "iana", - compressible: true - }, - "application/cms": { - source: "iana" - }, - "application/cnrp+xml": { - source: "iana", - compressible: true - }, - "application/coap-group+json": { - source: "iana", - compressible: true - }, - "application/coap-payload": { - source: "iana" - }, - "application/commonground": { - source: "iana" - }, - "application/conference-info+xml": { - source: "iana", - compressible: true - }, - "application/cose": { - source: "iana" - }, - "application/cose-key": { - source: "iana" - }, - "application/cose-key-set": { - source: "iana" - }, - "application/cpl+xml": { - source: "iana", - compressible: true, - extensions: ["cpl"] - }, - "application/csrattrs": { - source: "iana" - }, - "application/csta+xml": { - source: "iana", - compressible: true - }, - "application/cstadata+xml": { - source: "iana", - compressible: true - }, - "application/csvm+json": { - source: "iana", - compressible: true - }, - "application/cu-seeme": { - source: "apache", - extensions: ["cu"] - }, - "application/cwt": { - source: "iana" - }, - "application/cybercash": { - source: "iana" - }, - "application/dart": { - compressible: true - }, - "application/dash+xml": { - source: "iana", - compressible: true, - extensions: ["mpd"] - }, - "application/dash-patch+xml": { - source: "iana", - compressible: true, - extensions: ["mpp"] - }, - "application/dashdelta": { - source: "iana" - }, - "application/davmount+xml": { - source: "iana", - compressible: true, - extensions: ["davmount"] - }, - "application/dca-rft": { - source: "iana" - }, - "application/dcd": { - source: "iana" - }, - "application/dec-dx": { - source: "iana" - }, - "application/dialog-info+xml": { - source: "iana", - compressible: true - }, - "application/dicom": { - source: "iana" - }, - "application/dicom+json": { - source: "iana", - compressible: true - }, - "application/dicom+xml": { - source: "iana", - compressible: true - }, - "application/dii": { - source: "iana" - }, - "application/dit": { - source: "iana" - }, - "application/dns": { - source: "iana" - }, - "application/dns+json": { - source: "iana", - compressible: true - }, - "application/dns-message": { - source: "iana" - }, - "application/docbook+xml": { - source: "apache", - compressible: true, - extensions: ["dbk"] - }, - "application/dots+cbor": { - source: "iana" - }, - "application/dskpp+xml": { - source: "iana", - compressible: true - }, - "application/dssc+der": { - source: "iana", - extensions: ["dssc"] - }, - "application/dssc+xml": { - source: "iana", - compressible: true, - extensions: ["xdssc"] - }, - "application/dvcs": { - source: "iana" - }, - "application/ecmascript": { - source: "iana", - compressible: true, - extensions: ["es", "ecma"] - }, - "application/edi-consent": { - source: "iana" - }, - "application/edi-x12": { - source: "iana", - compressible: false - }, - "application/edifact": { - source: "iana", - compressible: false - }, - "application/efi": { - source: "iana" - }, - "application/elm+json": { - source: "iana", - charset: "UTF-8", - compressible: true - }, - "application/elm+xml": { - source: "iana", - compressible: true - }, - "application/emergencycalldata.cap+xml": { - source: "iana", - charset: "UTF-8", - compressible: true - }, - "application/emergencycalldata.comment+xml": { - source: "iana", - compressible: true - }, - "application/emergencycalldata.control+xml": { - source: "iana", - compressible: true - }, - "application/emergencycalldata.deviceinfo+xml": { - source: "iana", - compressible: true - }, - "application/emergencycalldata.ecall.msd": { - source: "iana" - }, - "application/emergencycalldata.providerinfo+xml": { - source: "iana", - compressible: true - }, - "application/emergencycalldata.serviceinfo+xml": { - source: "iana", - compressible: true - }, - "application/emergencycalldata.subscriberinfo+xml": { - source: "iana", - compressible: true - }, - "application/emergencycalldata.veds+xml": { - source: "iana", - compressible: true - }, - "application/emma+xml": { - source: "iana", - compressible: true, - extensions: ["emma"] - }, - "application/emotionml+xml": { - source: "iana", - compressible: true, - extensions: ["emotionml"] - }, - "application/encaprtp": { - source: "iana" - }, - "application/epp+xml": { - source: "iana", - compressible: true - }, - "application/epub+zip": { - source: "iana", - compressible: false, - extensions: ["epub"] - }, - "application/eshop": { - source: "iana" - }, - "application/exi": { - source: "iana", - extensions: ["exi"] - }, - "application/expect-ct-report+json": { - source: "iana", - compressible: true - }, - "application/express": { - source: "iana", - extensions: ["exp"] - }, - "application/fastinfoset": { - source: "iana" - }, - "application/fastsoap": { - source: "iana" - }, - "application/fdt+xml": { - source: "iana", - compressible: true, - extensions: ["fdt"] - }, - "application/fhir+json": { - source: "iana", - charset: "UTF-8", - compressible: true - }, - "application/fhir+xml": { - source: "iana", - charset: "UTF-8", - compressible: true - }, - "application/fido.trusted-apps+json": { - compressible: true - }, - "application/fits": { - source: "iana" - }, - "application/flexfec": { - source: "iana" - }, - "application/font-sfnt": { - source: "iana" - }, - "application/font-tdpfr": { - source: "iana", - extensions: ["pfr"] - }, - "application/font-woff": { - source: "iana", - compressible: false - }, - "application/framework-attributes+xml": { - source: "iana", - compressible: true - }, - "application/geo+json": { - source: "iana", - compressible: true, - extensions: ["geojson"] - }, - "application/geo+json-seq": { - source: "iana" - }, - "application/geopackage+sqlite3": { - source: "iana" - }, - "application/geoxacml+xml": { - source: "iana", - compressible: true - }, - "application/gltf-buffer": { - source: "iana" - }, - "application/gml+xml": { - source: "iana", - compressible: true, - extensions: ["gml"] - }, - "application/gpx+xml": { - source: "apache", - compressible: true, - extensions: ["gpx"] - }, - "application/gxf": { - source: "apache", - extensions: ["gxf"] - }, - "application/gzip": { - source: "iana", - compressible: false, - extensions: ["gz"] - }, - "application/h224": { - source: "iana" - }, - "application/held+xml": { - source: "iana", - compressible: true - }, - "application/hjson": { - extensions: ["hjson"] - }, - "application/http": { - source: "iana" - }, - "application/hyperstudio": { - source: "iana", - extensions: ["stk"] - }, - "application/ibe-key-request+xml": { - source: "iana", - compressible: true - }, - "application/ibe-pkg-reply+xml": { - source: "iana", - compressible: true - }, - "application/ibe-pp-data": { - source: "iana" - }, - "application/iges": { - source: "iana" - }, - "application/im-iscomposing+xml": { - source: "iana", - charset: "UTF-8", - compressible: true - }, - "application/index": { - source: "iana" - }, - "application/index.cmd": { - source: "iana" - }, - "application/index.obj": { - source: "iana" - }, - "application/index.response": { - source: "iana" - }, - "application/index.vnd": { - source: "iana" - }, - "application/inkml+xml": { - source: "iana", - compressible: true, - extensions: ["ink", "inkml"] - }, - "application/iotp": { - source: "iana" - }, - "application/ipfix": { - source: "iana", - extensions: ["ipfix"] - }, - "application/ipp": { - source: "iana" - }, - "application/isup": { - source: "iana" - }, - "application/its+xml": { - source: "iana", - compressible: true, - extensions: ["its"] - }, - "application/java-archive": { - source: "apache", - compressible: false, - extensions: ["jar", "war", "ear"] - }, - "application/java-serialized-object": { - source: "apache", - compressible: false, - extensions: ["ser"] - }, - "application/java-vm": { - source: "apache", - compressible: false, - extensions: ["class"] - }, - "application/javascript": { - source: "iana", - charset: "UTF-8", - compressible: true, - extensions: ["js", "mjs"] - }, - "application/jf2feed+json": { - source: "iana", - compressible: true - }, - "application/jose": { - source: "iana" - }, - "application/jose+json": { - source: "iana", - compressible: true - }, - "application/jrd+json": { - source: "iana", - compressible: true - }, - "application/jscalendar+json": { - source: "iana", - compressible: true - }, - "application/json": { - source: "iana", - charset: "UTF-8", - compressible: true, - extensions: ["json", "map"] - }, - "application/json-patch+json": { - source: "iana", - compressible: true - }, - "application/json-seq": { - source: "iana" - }, - "application/json5": { - extensions: ["json5"] - }, - "application/jsonml+json": { - source: "apache", - compressible: true, - extensions: ["jsonml"] - }, - "application/jwk+json": { - source: "iana", - compressible: true - }, - "application/jwk-set+json": { - source: "iana", - compressible: true - }, - "application/jwt": { - source: "iana" - }, - "application/kpml-request+xml": { - source: "iana", - compressible: true - }, - "application/kpml-response+xml": { - source: "iana", - compressible: true - }, - "application/ld+json": { - source: "iana", - compressible: true, - extensions: ["jsonld"] - }, - "application/lgr+xml": { - source: "iana", - compressible: true, - extensions: ["lgr"] - }, - "application/link-format": { - source: "iana" - }, - "application/load-control+xml": { - source: "iana", - compressible: true - }, - "application/lost+xml": { - source: "iana", - compressible: true, - extensions: ["lostxml"] - }, - "application/lostsync+xml": { - source: "iana", - compressible: true - }, - "application/lpf+zip": { - source: "iana", - compressible: false - }, - "application/lxf": { - source: "iana" - }, - "application/mac-binhex40": { - source: "iana", - extensions: ["hqx"] - }, - "application/mac-compactpro": { - source: "apache", - extensions: ["cpt"] - }, - "application/macwriteii": { - source: "iana" - }, - "application/mads+xml": { - source: "iana", - compressible: true, - extensions: ["mads"] - }, - "application/manifest+json": { - source: "iana", - charset: "UTF-8", - compressible: true, - extensions: ["webmanifest"] - }, - "application/marc": { - source: "iana", - extensions: ["mrc"] - }, - "application/marcxml+xml": { - source: "iana", - compressible: true, - extensions: ["mrcx"] - }, - "application/mathematica": { - source: "iana", - extensions: ["ma", "nb", "mb"] - }, - "application/mathml+xml": { - source: "iana", - compressible: true, - extensions: ["mathml"] - }, - "application/mathml-content+xml": { - source: "iana", - compressible: true - }, - "application/mathml-presentation+xml": { - source: "iana", - compressible: true - }, - "application/mbms-associated-procedure-description+xml": { - source: "iana", - compressible: true - }, - "application/mbms-deregister+xml": { - source: "iana", - compressible: true - }, - "application/mbms-envelope+xml": { - source: "iana", - compressible: true - }, - "application/mbms-msk+xml": { - source: "iana", - compressible: true - }, - "application/mbms-msk-response+xml": { - source: "iana", - compressible: true - }, - "application/mbms-protection-description+xml": { - source: "iana", - compressible: true - }, - "application/mbms-reception-report+xml": { - source: "iana", - compressible: true - }, - "application/mbms-register+xml": { - source: "iana", - compressible: true - }, - "application/mbms-register-response+xml": { - source: "iana", - compressible: true - }, - "application/mbms-schedule+xml": { - source: "iana", - compressible: true - }, - "application/mbms-user-service-description+xml": { - source: "iana", - compressible: true - }, - "application/mbox": { - source: "iana", - extensions: ["mbox"] - }, - "application/media-policy-dataset+xml": { - source: "iana", - compressible: true, - extensions: ["mpf"] - }, - "application/media_control+xml": { - source: "iana", - compressible: true - }, - "application/mediaservercontrol+xml": { - source: "iana", - compressible: true, - extensions: ["mscml"] - }, - "application/merge-patch+json": { - source: "iana", - compressible: true - }, - "application/metalink+xml": { - source: "apache", - compressible: true, - extensions: ["metalink"] - }, - "application/metalink4+xml": { - source: "iana", - compressible: true, - extensions: ["meta4"] - }, - "application/mets+xml": { - source: "iana", - compressible: true, - extensions: ["mets"] - }, - "application/mf4": { - source: "iana" - }, - "application/mikey": { - source: "iana" - }, - "application/mipc": { - source: "iana" - }, - "application/missing-blocks+cbor-seq": { - source: "iana" - }, - "application/mmt-aei+xml": { - source: "iana", - compressible: true, - extensions: ["maei"] - }, - "application/mmt-usd+xml": { - source: "iana", - compressible: true, - extensions: ["musd"] - }, - "application/mods+xml": { - source: "iana", - compressible: true, - extensions: ["mods"] - }, - "application/moss-keys": { - source: "iana" - }, - "application/moss-signature": { - source: "iana" - }, - "application/mosskey-data": { - source: "iana" - }, - "application/mosskey-request": { - source: "iana" - }, - "application/mp21": { - source: "iana", - extensions: ["m21", "mp21"] - }, - "application/mp4": { - source: "iana", - extensions: ["mp4s", "m4p"] - }, - "application/mpeg4-generic": { - source: "iana" - }, - "application/mpeg4-iod": { - source: "iana" - }, - "application/mpeg4-iod-xmt": { - source: "iana" - }, - "application/mrb-consumer+xml": { - source: "iana", - compressible: true - }, - "application/mrb-publish+xml": { - source: "iana", - compressible: true - }, - "application/msc-ivr+xml": { - source: "iana", - charset: "UTF-8", - compressible: true - }, - "application/msc-mixer+xml": { - source: "iana", - charset: "UTF-8", - compressible: true - }, - "application/msword": { - source: "iana", - compressible: false, - extensions: ["doc", "dot"] - }, - "application/mud+json": { - source: "iana", - compressible: true - }, - "application/multipart-core": { - source: "iana" - }, - "application/mxf": { - source: "iana", - extensions: ["mxf"] - }, - "application/n-quads": { - source: "iana", - extensions: ["nq"] - }, - "application/n-triples": { - source: "iana", - extensions: ["nt"] - }, - "application/nasdata": { - source: "iana" - }, - "application/news-checkgroups": { - source: "iana", - charset: "US-ASCII" - }, - "application/news-groupinfo": { - source: "iana", - charset: "US-ASCII" - }, - "application/news-transmission": { - source: "iana" - }, - "application/nlsml+xml": { - source: "iana", - compressible: true - }, - "application/node": { - source: "iana", - extensions: ["cjs"] - }, - "application/nss": { - source: "iana" - }, - "application/oauth-authz-req+jwt": { - source: "iana" - }, - "application/oblivious-dns-message": { - source: "iana" - }, - "application/ocsp-request": { - source: "iana" - }, - "application/ocsp-response": { - source: "iana" - }, - "application/octet-stream": { - source: "iana", - compressible: false, - extensions: ["bin", "dms", "lrf", "mar", "so", "dist", "distz", "pkg", "bpk", "dump", "elc", "deploy", "exe", "dll", "deb", "dmg", "iso", "img", "msi", "msp", "msm", "buffer"] - }, - "application/oda": { - source: "iana", - extensions: ["oda"] - }, - "application/odm+xml": { - source: "iana", - compressible: true - }, - "application/odx": { - source: "iana" - }, - "application/oebps-package+xml": { - source: "iana", - compressible: true, - extensions: ["opf"] - }, - "application/ogg": { - source: "iana", - compressible: false, - extensions: ["ogx"] - }, - "application/omdoc+xml": { - source: "apache", - compressible: true, - extensions: ["omdoc"] - }, - "application/onenote": { - source: "apache", - extensions: ["onetoc", "onetoc2", "onetmp", "onepkg"] - }, - "application/opc-nodeset+xml": { - source: "iana", - compressible: true - }, - "application/oscore": { - source: "iana" - }, - "application/oxps": { - source: "iana", - extensions: ["oxps"] - }, - "application/p21": { - source: "iana" - }, - "application/p21+zip": { - source: "iana", - compressible: false - }, - "application/p2p-overlay+xml": { - source: "iana", - compressible: true, - extensions: ["relo"] - }, - "application/parityfec": { - source: "iana" - }, - "application/passport": { - source: "iana" - }, - "application/patch-ops-error+xml": { - source: "iana", - compressible: true, - extensions: ["xer"] - }, - "application/pdf": { - source: "iana", - compressible: false, - extensions: ["pdf"] - }, - "application/pdx": { - source: "iana" - }, - "application/pem-certificate-chain": { - source: "iana" - }, - "application/pgp-encrypted": { - source: "iana", - compressible: false, - extensions: ["pgp"] - }, - "application/pgp-keys": { - source: "iana", - extensions: ["asc"] - }, - "application/pgp-signature": { - source: "iana", - extensions: ["asc", "sig"] - }, - "application/pics-rules": { - source: "apache", - extensions: ["prf"] - }, - "application/pidf+xml": { - source: "iana", - charset: "UTF-8", - compressible: true - }, - "application/pidf-diff+xml": { - source: "iana", - charset: "UTF-8", - compressible: true - }, - "application/pkcs10": { - source: "iana", - extensions: ["p10"] - }, - "application/pkcs12": { - source: "iana" - }, - "application/pkcs7-mime": { - source: "iana", - extensions: ["p7m", "p7c"] - }, - "application/pkcs7-signature": { - source: "iana", - extensions: ["p7s"] - }, - "application/pkcs8": { - source: "iana", - extensions: ["p8"] - }, - "application/pkcs8-encrypted": { - source: "iana" - }, - "application/pkix-attr-cert": { - source: "iana", - extensions: ["ac"] - }, - "application/pkix-cert": { - source: "iana", - extensions: ["cer"] - }, - "application/pkix-crl": { - source: "iana", - extensions: ["crl"] - }, - "application/pkix-pkipath": { - source: "iana", - extensions: ["pkipath"] - }, - "application/pkixcmp": { - source: "iana", - extensions: ["pki"] - }, - "application/pls+xml": { - source: "iana", - compressible: true, - extensions: ["pls"] - }, - "application/poc-settings+xml": { - source: "iana", - charset: "UTF-8", - compressible: true - }, - "application/postscript": { - source: "iana", - compressible: true, - extensions: ["ai", "eps", "ps"] - }, - "application/ppsp-tracker+json": { - source: "iana", - compressible: true - }, - "application/problem+json": { - source: "iana", - compressible: true - }, - "application/problem+xml": { - source: "iana", - compressible: true - }, - "application/provenance+xml": { - source: "iana", - compressible: true, - extensions: ["provx"] - }, - "application/prs.alvestrand.titrax-sheet": { - source: "iana" - }, - "application/prs.cww": { - source: "iana", - extensions: ["cww"] - }, - "application/prs.cyn": { - source: "iana", - charset: "7-BIT" - }, - "application/prs.hpub+zip": { - source: "iana", - compressible: false - }, - "application/prs.nprend": { - source: "iana" - }, - "application/prs.plucker": { - source: "iana" - }, - "application/prs.rdf-xml-crypt": { - source: "iana" - }, - "application/prs.xsf+xml": { - source: "iana", - compressible: true - }, - "application/pskc+xml": { - source: "iana", - compressible: true, - extensions: ["pskcxml"] - }, - "application/pvd+json": { - source: "iana", - compressible: true - }, - "application/qsig": { - source: "iana" - }, - "application/raml+yaml": { - compressible: true, - extensions: ["raml"] - }, - "application/raptorfec": { - source: "iana" - }, - "application/rdap+json": { - source: "iana", - compressible: true - }, - "application/rdf+xml": { - source: "iana", - compressible: true, - extensions: ["rdf", "owl"] - }, - "application/reginfo+xml": { - source: "iana", - compressible: true, - extensions: ["rif"] - }, - "application/relax-ng-compact-syntax": { - source: "iana", - extensions: ["rnc"] - }, - "application/remote-printing": { - source: "iana" - }, - "application/reputon+json": { - source: "iana", - compressible: true - }, - "application/resource-lists+xml": { - source: "iana", - compressible: true, - extensions: ["rl"] - }, - "application/resource-lists-diff+xml": { - source: "iana", - compressible: true, - extensions: ["rld"] - }, - "application/rfc+xml": { - source: "iana", - compressible: true - }, - "application/riscos": { - source: "iana" - }, - "application/rlmi+xml": { - source: "iana", - compressible: true - }, - "application/rls-services+xml": { - source: "iana", - compressible: true, - extensions: ["rs"] - }, - "application/route-apd+xml": { - source: "iana", - compressible: true, - extensions: ["rapd"] - }, - "application/route-s-tsid+xml": { - source: "iana", - compressible: true, - extensions: ["sls"] - }, - "application/route-usd+xml": { - source: "iana", - compressible: true, - extensions: ["rusd"] - }, - "application/rpki-ghostbusters": { - source: "iana", - extensions: ["gbr"] - }, - "application/rpki-manifest": { - source: "iana", - extensions: ["mft"] - }, - "application/rpki-publication": { - source: "iana" - }, - "application/rpki-roa": { - source: "iana", - extensions: ["roa"] - }, - "application/rpki-updown": { - source: "iana" - }, - "application/rsd+xml": { - source: "apache", - compressible: true, - extensions: ["rsd"] - }, - "application/rss+xml": { - source: "apache", - compressible: true, - extensions: ["rss"] - }, - "application/rtf": { - source: "iana", - compressible: true, - extensions: ["rtf"] - }, - "application/rtploopback": { - source: "iana" - }, - "application/rtx": { - source: "iana" - }, - "application/samlassertion+xml": { - source: "iana", - compressible: true - }, - "application/samlmetadata+xml": { - source: "iana", - compressible: true - }, - "application/sarif+json": { - source: "iana", - compressible: true - }, - "application/sarif-external-properties+json": { - source: "iana", - compressible: true - }, - "application/sbe": { - source: "iana" - }, - "application/sbml+xml": { - source: "iana", - compressible: true, - extensions: ["sbml"] - }, - "application/scaip+xml": { - source: "iana", - compressible: true - }, - "application/scim+json": { - source: "iana", - compressible: true - }, - "application/scvp-cv-request": { - source: "iana", - extensions: ["scq"] - }, - "application/scvp-cv-response": { - source: "iana", - extensions: ["scs"] - }, - "application/scvp-vp-request": { - source: "iana", - extensions: ["spq"] - }, - "application/scvp-vp-response": { - source: "iana", - extensions: ["spp"] - }, - "application/sdp": { - source: "iana", - extensions: ["sdp"] - }, - "application/secevent+jwt": { - source: "iana" - }, - "application/senml+cbor": { - source: "iana" - }, - "application/senml+json": { - source: "iana", - compressible: true - }, - "application/senml+xml": { - source: "iana", - compressible: true, - extensions: ["senmlx"] - }, - "application/senml-etch+cbor": { - source: "iana" - }, - "application/senml-etch+json": { - source: "iana", - compressible: true - }, - "application/senml-exi": { - source: "iana" - }, - "application/sensml+cbor": { - source: "iana" - }, - "application/sensml+json": { - source: "iana", - compressible: true - }, - "application/sensml+xml": { - source: "iana", - compressible: true, - extensions: ["sensmlx"] - }, - "application/sensml-exi": { - source: "iana" - }, - "application/sep+xml": { - source: "iana", - compressible: true - }, - "application/sep-exi": { - source: "iana" - }, - "application/session-info": { - source: "iana" - }, - "application/set-payment": { - source: "iana" - }, - "application/set-payment-initiation": { - source: "iana", - extensions: ["setpay"] - }, - "application/set-registration": { - source: "iana" - }, - "application/set-registration-initiation": { - source: "iana", - extensions: ["setreg"] - }, - "application/sgml": { - source: "iana" - }, - "application/sgml-open-catalog": { - source: "iana" - }, - "application/shf+xml": { - source: "iana", - compressible: true, - extensions: ["shf"] - }, - "application/sieve": { - source: "iana", - extensions: ["siv", "sieve"] - }, - "application/simple-filter+xml": { - source: "iana", - compressible: true - }, - "application/simple-message-summary": { - source: "iana" - }, - "application/simplesymbolcontainer": { - source: "iana" - }, - "application/sipc": { - source: "iana" - }, - "application/slate": { - source: "iana" - }, - "application/smil": { - source: "iana" - }, - "application/smil+xml": { - source: "iana", - compressible: true, - extensions: ["smi", "smil"] - }, - "application/smpte336m": { - source: "iana" - }, - "application/soap+fastinfoset": { - source: "iana" - }, - "application/soap+xml": { - source: "iana", - compressible: true - }, - "application/sparql-query": { - source: "iana", - extensions: ["rq"] - }, - "application/sparql-results+xml": { - source: "iana", - compressible: true, - extensions: ["srx"] - }, - "application/spdx+json": { - source: "iana", - compressible: true - }, - "application/spirits-event+xml": { - source: "iana", - compressible: true - }, - "application/sql": { - source: "iana" - }, - "application/srgs": { - source: "iana", - extensions: ["gram"] - }, - "application/srgs+xml": { - source: "iana", - compressible: true, - extensions: ["grxml"] - }, - "application/sru+xml": { - source: "iana", - compressible: true, - extensions: ["sru"] - }, - "application/ssdl+xml": { - source: "apache", - compressible: true, - extensions: ["ssdl"] - }, - "application/ssml+xml": { - source: "iana", - compressible: true, - extensions: ["ssml"] - }, - "application/stix+json": { - source: "iana", - compressible: true - }, - "application/swid+xml": { - source: "iana", - compressible: true, - extensions: ["swidtag"] - }, - "application/tamp-apex-update": { - source: "iana" - }, - "application/tamp-apex-update-confirm": { - source: "iana" - }, - "application/tamp-community-update": { - source: "iana" - }, - "application/tamp-community-update-confirm": { - source: "iana" - }, - "application/tamp-error": { - source: "iana" - }, - "application/tamp-sequence-adjust": { - source: "iana" - }, - "application/tamp-sequence-adjust-confirm": { - source: "iana" - }, - "application/tamp-status-query": { - source: "iana" - }, - "application/tamp-status-response": { - source: "iana" - }, - "application/tamp-update": { - source: "iana" - }, - "application/tamp-update-confirm": { - source: "iana" - }, - "application/tar": { - compressible: true - }, - "application/taxii+json": { - source: "iana", - compressible: true - }, - "application/td+json": { - source: "iana", - compressible: true - }, - "application/tei+xml": { - source: "iana", - compressible: true, - extensions: ["tei", "teicorpus"] - }, - "application/tetra_isi": { - source: "iana" - }, - "application/thraud+xml": { - source: "iana", - compressible: true, - extensions: ["tfi"] - }, - "application/timestamp-query": { - source: "iana" - }, - "application/timestamp-reply": { - source: "iana" - }, - "application/timestamped-data": { - source: "iana", - extensions: ["tsd"] - }, - "application/tlsrpt+gzip": { - source: "iana" - }, - "application/tlsrpt+json": { - source: "iana", - compressible: true - }, - "application/tnauthlist": { - source: "iana" - }, - "application/token-introspection+jwt": { - source: "iana" - }, - "application/toml": { - compressible: true, - extensions: ["toml"] - }, - "application/trickle-ice-sdpfrag": { - source: "iana" - }, - "application/trig": { - source: "iana", - extensions: ["trig"] - }, - "application/ttml+xml": { - source: "iana", - compressible: true, - extensions: ["ttml"] - }, - "application/tve-trigger": { - source: "iana" - }, - "application/tzif": { - source: "iana" - }, - "application/tzif-leap": { - source: "iana" - }, - "application/ubjson": { - compressible: false, - extensions: ["ubj"] - }, - "application/ulpfec": { - source: "iana" - }, - "application/urc-grpsheet+xml": { - source: "iana", - compressible: true - }, - "application/urc-ressheet+xml": { - source: "iana", - compressible: true, - extensions: ["rsheet"] - }, - "application/urc-targetdesc+xml": { - source: "iana", - compressible: true, - extensions: ["td"] - }, - "application/urc-uisocketdesc+xml": { - source: "iana", - compressible: true - }, - "application/vcard+json": { - source: "iana", - compressible: true - }, - "application/vcard+xml": { - source: "iana", - compressible: true - }, - "application/vemmi": { - source: "iana" - }, - "application/vividence.scriptfile": { - source: "apache" - }, - "application/vnd.1000minds.decision-model+xml": { - source: "iana", - compressible: true, - extensions: ["1km"] - }, - "application/vnd.3gpp-prose+xml": { - source: "iana", - compressible: true - }, - "application/vnd.3gpp-prose-pc3ch+xml": { - source: "iana", - compressible: true - }, - "application/vnd.3gpp-v2x-local-service-information": { - source: "iana" - }, - "application/vnd.3gpp.5gnas": { - source: "iana" - }, - "application/vnd.3gpp.access-transfer-events+xml": { - source: "iana", - compressible: true - }, - "application/vnd.3gpp.bsf+xml": { - source: "iana", - compressible: true - }, - "application/vnd.3gpp.gmop+xml": { - source: "iana", - compressible: true - }, - "application/vnd.3gpp.gtpc": { - source: "iana" - }, - "application/vnd.3gpp.interworking-data": { - source: "iana" - }, - "application/vnd.3gpp.lpp": { - source: "iana" - }, - "application/vnd.3gpp.mc-signalling-ear": { - source: "iana" - }, - "application/vnd.3gpp.mcdata-affiliation-command+xml": { - source: "iana", - compressible: true - }, - "application/vnd.3gpp.mcdata-info+xml": { - source: "iana", - compressible: true - }, - "application/vnd.3gpp.mcdata-payload": { - source: "iana" - }, - "application/vnd.3gpp.mcdata-service-config+xml": { - source: "iana", - compressible: true - }, - "application/vnd.3gpp.mcdata-signalling": { - source: "iana" - }, - "application/vnd.3gpp.mcdata-ue-config+xml": { - source: "iana", - compressible: true - }, - "application/vnd.3gpp.mcdata-user-profile+xml": { - source: "iana", - compressible: true - }, - "application/vnd.3gpp.mcptt-affiliation-command+xml": { - source: "iana", - compressible: true - }, - "application/vnd.3gpp.mcptt-floor-request+xml": { - source: "iana", - compressible: true - }, - "application/vnd.3gpp.mcptt-info+xml": { - source: "iana", - compressible: true - }, - "application/vnd.3gpp.mcptt-location-info+xml": { - source: "iana", - compressible: true - }, - "application/vnd.3gpp.mcptt-mbms-usage-info+xml": { - source: "iana", - compressible: true - }, - "application/vnd.3gpp.mcptt-service-config+xml": { - source: "iana", - compressible: true - }, - "application/vnd.3gpp.mcptt-signed+xml": { - source: "iana", - compressible: true - }, - "application/vnd.3gpp.mcptt-ue-config+xml": { - source: "iana", - compressible: true - }, - "application/vnd.3gpp.mcptt-ue-init-config+xml": { - source: "iana", - compressible: true - }, - "application/vnd.3gpp.mcptt-user-profile+xml": { - source: "iana", - compressible: true - }, - "application/vnd.3gpp.mcvideo-affiliation-command+xml": { - source: "iana", - compressible: true - }, - "application/vnd.3gpp.mcvideo-affiliation-info+xml": { - source: "iana", - compressible: true - }, - "application/vnd.3gpp.mcvideo-info+xml": { - source: "iana", - compressible: true - }, - "application/vnd.3gpp.mcvideo-location-info+xml": { - source: "iana", - compressible: true - }, - "application/vnd.3gpp.mcvideo-mbms-usage-info+xml": { - source: "iana", - compressible: true - }, - "application/vnd.3gpp.mcvideo-service-config+xml": { - source: "iana", - compressible: true - }, - "application/vnd.3gpp.mcvideo-transmission-request+xml": { - source: "iana", - compressible: true - }, - "application/vnd.3gpp.mcvideo-ue-config+xml": { - source: "iana", - compressible: true - }, - "application/vnd.3gpp.mcvideo-user-profile+xml": { - source: "iana", - compressible: true - }, - "application/vnd.3gpp.mid-call+xml": { - source: "iana", - compressible: true - }, - "application/vnd.3gpp.ngap": { - source: "iana" - }, - "application/vnd.3gpp.pfcp": { - source: "iana" - }, - "application/vnd.3gpp.pic-bw-large": { - source: "iana", - extensions: ["plb"] - }, - "application/vnd.3gpp.pic-bw-small": { - source: "iana", - extensions: ["psb"] - }, - "application/vnd.3gpp.pic-bw-var": { - source: "iana", - extensions: ["pvb"] - }, - "application/vnd.3gpp.s1ap": { - source: "iana" - }, - "application/vnd.3gpp.sms": { - source: "iana" - }, - "application/vnd.3gpp.sms+xml": { - source: "iana", - compressible: true - }, - "application/vnd.3gpp.srvcc-ext+xml": { - source: "iana", - compressible: true - }, - "application/vnd.3gpp.srvcc-info+xml": { - source: "iana", - compressible: true - }, - "application/vnd.3gpp.state-and-event-info+xml": { - source: "iana", - compressible: true - }, - "application/vnd.3gpp.ussd+xml": { - source: "iana", - compressible: true - }, - "application/vnd.3gpp2.bcmcsinfo+xml": { - source: "iana", - compressible: true - }, - "application/vnd.3gpp2.sms": { - source: "iana" - }, - "application/vnd.3gpp2.tcap": { - source: "iana", - extensions: ["tcap"] - }, - "application/vnd.3lightssoftware.imagescal": { - source: "iana" - }, - "application/vnd.3m.post-it-notes": { - source: "iana", - extensions: ["pwn"] - }, - "application/vnd.accpac.simply.aso": { - source: "iana", - extensions: ["aso"] - }, - "application/vnd.accpac.simply.imp": { - source: "iana", - extensions: ["imp"] - }, - "application/vnd.acucobol": { - source: "iana", - extensions: ["acu"] - }, - "application/vnd.acucorp": { - source: "iana", - extensions: ["atc", "acutc"] - }, - "application/vnd.adobe.air-application-installer-package+zip": { - source: "apache", - compressible: false, - extensions: ["air"] - }, - "application/vnd.adobe.flash.movie": { - source: "iana" - }, - "application/vnd.adobe.formscentral.fcdt": { - source: "iana", - extensions: ["fcdt"] - }, - "application/vnd.adobe.fxp": { - source: "iana", - extensions: ["fxp", "fxpl"] - }, - "application/vnd.adobe.partial-upload": { - source: "iana" - }, - "application/vnd.adobe.xdp+xml": { - source: "iana", - compressible: true, - extensions: ["xdp"] - }, - "application/vnd.adobe.xfdf": { - source: "iana", - extensions: ["xfdf"] - }, - "application/vnd.aether.imp": { - source: "iana" - }, - "application/vnd.afpc.afplinedata": { - source: "iana" - }, - "application/vnd.afpc.afplinedata-pagedef": { - source: "iana" - }, - "application/vnd.afpc.cmoca-cmresource": { - source: "iana" - }, - "application/vnd.afpc.foca-charset": { - source: "iana" - }, - "application/vnd.afpc.foca-codedfont": { - source: "iana" - }, - "application/vnd.afpc.foca-codepage": { - source: "iana" - }, - "application/vnd.afpc.modca": { - source: "iana" - }, - "application/vnd.afpc.modca-cmtable": { - source: "iana" - }, - "application/vnd.afpc.modca-formdef": { - source: "iana" - }, - "application/vnd.afpc.modca-mediummap": { - source: "iana" - }, - "application/vnd.afpc.modca-objectcontainer": { - source: "iana" - }, - "application/vnd.afpc.modca-overlay": { - source: "iana" - }, - "application/vnd.afpc.modca-pagesegment": { - source: "iana" - }, - "application/vnd.age": { - source: "iana", - extensions: ["age"] - }, - "application/vnd.ah-barcode": { - source: "iana" - }, - "application/vnd.ahead.space": { - source: "iana", - extensions: ["ahead"] - }, - "application/vnd.airzip.filesecure.azf": { - source: "iana", - extensions: ["azf"] - }, - "application/vnd.airzip.filesecure.azs": { - source: "iana", - extensions: ["azs"] - }, - "application/vnd.amadeus+json": { - source: "iana", - compressible: true - }, - "application/vnd.amazon.ebook": { - source: "apache", - extensions: ["azw"] - }, - "application/vnd.amazon.mobi8-ebook": { - source: "iana" - }, - "application/vnd.americandynamics.acc": { - source: "iana", - extensions: ["acc"] - }, - "application/vnd.amiga.ami": { - source: "iana", - extensions: ["ami"] - }, - "application/vnd.amundsen.maze+xml": { - source: "iana", - compressible: true - }, - "application/vnd.android.ota": { - source: "iana" - }, - "application/vnd.android.package-archive": { - source: "apache", - compressible: false, - extensions: ["apk"] - }, - "application/vnd.anki": { - source: "iana" - }, - "application/vnd.anser-web-certificate-issue-initiation": { - source: "iana", - extensions: ["cii"] - }, - "application/vnd.anser-web-funds-transfer-initiation": { - source: "apache", - extensions: ["fti"] - }, - "application/vnd.antix.game-component": { - source: "iana", - extensions: ["atx"] - }, - "application/vnd.apache.arrow.file": { - source: "iana" - }, - "application/vnd.apache.arrow.stream": { - source: "iana" - }, - "application/vnd.apache.thrift.binary": { - source: "iana" - }, - "application/vnd.apache.thrift.compact": { - source: "iana" - }, - "application/vnd.apache.thrift.json": { - source: "iana" - }, - "application/vnd.api+json": { - source: "iana", - compressible: true - }, - "application/vnd.aplextor.warrp+json": { - source: "iana", - compressible: true - }, - "application/vnd.apothekende.reservation+json": { - source: "iana", - compressible: true - }, - "application/vnd.apple.installer+xml": { - source: "iana", - compressible: true, - extensions: ["mpkg"] - }, - "application/vnd.apple.keynote": { - source: "iana", - extensions: ["key"] - }, - "application/vnd.apple.mpegurl": { - source: "iana", - extensions: ["m3u8"] - }, - "application/vnd.apple.numbers": { - source: "iana", - extensions: ["numbers"] - }, - "application/vnd.apple.pages": { - source: "iana", - extensions: ["pages"] - }, - "application/vnd.apple.pkpass": { - compressible: false, - extensions: ["pkpass"] - }, - "application/vnd.arastra.swi": { - source: "iana" - }, - "application/vnd.aristanetworks.swi": { - source: "iana", - extensions: ["swi"] - }, - "application/vnd.artisan+json": { - source: "iana", - compressible: true - }, - "application/vnd.artsquare": { - source: "iana" - }, - "application/vnd.astraea-software.iota": { - source: "iana", - extensions: ["iota"] - }, - "application/vnd.audiograph": { - source: "iana", - extensions: ["aep"] - }, - "application/vnd.autopackage": { - source: "iana" - }, - "application/vnd.avalon+json": { - source: "iana", - compressible: true - }, - "application/vnd.avistar+xml": { - source: "iana", - compressible: true - }, - "application/vnd.balsamiq.bmml+xml": { - source: "iana", - compressible: true, - extensions: ["bmml"] - }, - "application/vnd.balsamiq.bmpr": { - source: "iana" - }, - "application/vnd.banana-accounting": { - source: "iana" - }, - "application/vnd.bbf.usp.error": { - source: "iana" - }, - "application/vnd.bbf.usp.msg": { - source: "iana" - }, - "application/vnd.bbf.usp.msg+json": { - source: "iana", - compressible: true - }, - "application/vnd.bekitzur-stech+json": { - source: "iana", - compressible: true - }, - "application/vnd.bint.med-content": { - source: "iana" - }, - "application/vnd.biopax.rdf+xml": { - source: "iana", - compressible: true - }, - "application/vnd.blink-idb-value-wrapper": { - source: "iana" - }, - "application/vnd.blueice.multipass": { - source: "iana", - extensions: ["mpm"] - }, - "application/vnd.bluetooth.ep.oob": { - source: "iana" - }, - "application/vnd.bluetooth.le.oob": { - source: "iana" - }, - "application/vnd.bmi": { - source: "iana", - extensions: ["bmi"] - }, - "application/vnd.bpf": { - source: "iana" - }, - "application/vnd.bpf3": { - source: "iana" - }, - "application/vnd.businessobjects": { - source: "iana", - extensions: ["rep"] - }, - "application/vnd.byu.uapi+json": { - source: "iana", - compressible: true - }, - "application/vnd.cab-jscript": { - source: "iana" - }, - "application/vnd.canon-cpdl": { - source: "iana" - }, - "application/vnd.canon-lips": { - source: "iana" - }, - "application/vnd.capasystems-pg+json": { - source: "iana", - compressible: true - }, - "application/vnd.cendio.thinlinc.clientconf": { - source: "iana" - }, - "application/vnd.century-systems.tcp_stream": { - source: "iana" - }, - "application/vnd.chemdraw+xml": { - source: "iana", - compressible: true, - extensions: ["cdxml"] - }, - "application/vnd.chess-pgn": { - source: "iana" - }, - "application/vnd.chipnuts.karaoke-mmd": { - source: "iana", - extensions: ["mmd"] - }, - "application/vnd.ciedi": { - source: "iana" - }, - "application/vnd.cinderella": { - source: "iana", - extensions: ["cdy"] - }, - "application/vnd.cirpack.isdn-ext": { - source: "iana" - }, - "application/vnd.citationstyles.style+xml": { - source: "iana", - compressible: true, - extensions: ["csl"] - }, - "application/vnd.claymore": { - source: "iana", - extensions: ["cla"] - }, - "application/vnd.cloanto.rp9": { - source: "iana", - extensions: ["rp9"] - }, - "application/vnd.clonk.c4group": { - source: "iana", - extensions: ["c4g", "c4d", "c4f", "c4p", "c4u"] - }, - "application/vnd.cluetrust.cartomobile-config": { - source: "iana", - extensions: ["c11amc"] - }, - "application/vnd.cluetrust.cartomobile-config-pkg": { - source: "iana", - extensions: ["c11amz"] - }, - "application/vnd.coffeescript": { - source: "iana" - }, - "application/vnd.collabio.xodocuments.document": { - source: "iana" - }, - "application/vnd.collabio.xodocuments.document-template": { - source: "iana" - }, - "application/vnd.collabio.xodocuments.presentation": { - source: "iana" - }, - "application/vnd.collabio.xodocuments.presentation-template": { - source: "iana" - }, - "application/vnd.collabio.xodocuments.spreadsheet": { - source: "iana" - }, - "application/vnd.collabio.xodocuments.spreadsheet-template": { - source: "iana" - }, - "application/vnd.collection+json": { - source: "iana", - compressible: true - }, - "application/vnd.collection.doc+json": { - source: "iana", - compressible: true - }, - "application/vnd.collection.next+json": { - source: "iana", - compressible: true - }, - "application/vnd.comicbook+zip": { - source: "iana", - compressible: false - }, - "application/vnd.comicbook-rar": { - source: "iana" - }, - "application/vnd.commerce-battelle": { - source: "iana" - }, - "application/vnd.commonspace": { - source: "iana", - extensions: ["csp"] - }, - "application/vnd.contact.cmsg": { - source: "iana", - extensions: ["cdbcmsg"] - }, - "application/vnd.coreos.ignition+json": { - source: "iana", - compressible: true - }, - "application/vnd.cosmocaller": { - source: "iana", - extensions: ["cmc"] - }, - "application/vnd.crick.clicker": { - source: "iana", - extensions: ["clkx"] - }, - "application/vnd.crick.clicker.keyboard": { - source: "iana", - extensions: ["clkk"] - }, - "application/vnd.crick.clicker.palette": { - source: "iana", - extensions: ["clkp"] - }, - "application/vnd.crick.clicker.template": { - source: "iana", - extensions: ["clkt"] - }, - "application/vnd.crick.clicker.wordbank": { - source: "iana", - extensions: ["clkw"] - }, - "application/vnd.criticaltools.wbs+xml": { - source: "iana", - compressible: true, - extensions: ["wbs"] - }, - "application/vnd.cryptii.pipe+json": { - source: "iana", - compressible: true - }, - "application/vnd.crypto-shade-file": { - source: "iana" - }, - "application/vnd.cryptomator.encrypted": { - source: "iana" - }, - "application/vnd.cryptomator.vault": { - source: "iana" - }, - "application/vnd.ctc-posml": { - source: "iana", - extensions: ["pml"] - }, - "application/vnd.ctct.ws+xml": { - source: "iana", - compressible: true - }, - "application/vnd.cups-pdf": { - source: "iana" - }, - "application/vnd.cups-postscript": { - source: "iana" - }, - "application/vnd.cups-ppd": { - source: "iana", - extensions: ["ppd"] - }, - "application/vnd.cups-raster": { - source: "iana" - }, - "application/vnd.cups-raw": { - source: "iana" - }, - "application/vnd.curl": { - source: "iana" - }, - "application/vnd.curl.car": { - source: "apache", - extensions: ["car"] - }, - "application/vnd.curl.pcurl": { - source: "apache", - extensions: ["pcurl"] - }, - "application/vnd.cyan.dean.root+xml": { - source: "iana", - compressible: true - }, - "application/vnd.cybank": { - source: "iana" - }, - "application/vnd.cyclonedx+json": { - source: "iana", - compressible: true - }, - "application/vnd.cyclonedx+xml": { - source: "iana", - compressible: true - }, - "application/vnd.d2l.coursepackage1p0+zip": { - source: "iana", - compressible: false - }, - "application/vnd.d3m-dataset": { - source: "iana" - }, - "application/vnd.d3m-problem": { - source: "iana" - }, - "application/vnd.dart": { - source: "iana", - compressible: true, - extensions: ["dart"] - }, - "application/vnd.data-vision.rdz": { - source: "iana", - extensions: ["rdz"] - }, - "application/vnd.datapackage+json": { - source: "iana", - compressible: true - }, - "application/vnd.dataresource+json": { - source: "iana", - compressible: true - }, - "application/vnd.dbf": { - source: "iana", - extensions: ["dbf"] - }, - "application/vnd.debian.binary-package": { - source: "iana" - }, - "application/vnd.dece.data": { - source: "iana", - extensions: ["uvf", "uvvf", "uvd", "uvvd"] - }, - "application/vnd.dece.ttml+xml": { - source: "iana", - compressible: true, - extensions: ["uvt", "uvvt"] - }, - "application/vnd.dece.unspecified": { - source: "iana", - extensions: ["uvx", "uvvx"] - }, - "application/vnd.dece.zip": { - source: "iana", - extensions: ["uvz", "uvvz"] - }, - "application/vnd.denovo.fcselayout-link": { - source: "iana", - extensions: ["fe_launch"] - }, - "application/vnd.desmume.movie": { - source: "iana" - }, - "application/vnd.dir-bi.plate-dl-nosuffix": { - source: "iana" - }, - "application/vnd.dm.delegation+xml": { - source: "iana", - compressible: true - }, - "application/vnd.dna": { - source: "iana", - extensions: ["dna"] - }, - "application/vnd.document+json": { - source: "iana", - compressible: true - }, - "application/vnd.dolby.mlp": { - source: "apache", - extensions: ["mlp"] - }, - "application/vnd.dolby.mobile.1": { - source: "iana" - }, - "application/vnd.dolby.mobile.2": { - source: "iana" - }, - "application/vnd.doremir.scorecloud-binary-document": { - source: "iana" - }, - "application/vnd.dpgraph": { - source: "iana", - extensions: ["dpg"] - }, - "application/vnd.dreamfactory": { - source: "iana", - extensions: ["dfac"] - }, - "application/vnd.drive+json": { - source: "iana", - compressible: true - }, - "application/vnd.ds-keypoint": { - source: "apache", - extensions: ["kpxx"] - }, - "application/vnd.dtg.local": { - source: "iana" - }, - "application/vnd.dtg.local.flash": { - source: "iana" - }, - "application/vnd.dtg.local.html": { - source: "iana" - }, - "application/vnd.dvb.ait": { - source: "iana", - extensions: ["ait"] - }, - "application/vnd.dvb.dvbisl+xml": { - source: "iana", - compressible: true - }, - "application/vnd.dvb.dvbj": { - source: "iana" - }, - "application/vnd.dvb.esgcontainer": { - source: "iana" - }, - "application/vnd.dvb.ipdcdftnotifaccess": { - source: "iana" - }, - "application/vnd.dvb.ipdcesgaccess": { - source: "iana" - }, - "application/vnd.dvb.ipdcesgaccess2": { - source: "iana" - }, - "application/vnd.dvb.ipdcesgpdd": { - source: "iana" - }, - "application/vnd.dvb.ipdcroaming": { - source: "iana" - }, - "application/vnd.dvb.iptv.alfec-base": { - source: "iana" - }, - "application/vnd.dvb.iptv.alfec-enhancement": { - source: "iana" - }, - "application/vnd.dvb.notif-aggregate-root+xml": { - source: "iana", - compressible: true - }, - "application/vnd.dvb.notif-container+xml": { - source: "iana", - compressible: true - }, - "application/vnd.dvb.notif-generic+xml": { - source: "iana", - compressible: true - }, - "application/vnd.dvb.notif-ia-msglist+xml": { - source: "iana", - compressible: true - }, - "application/vnd.dvb.notif-ia-registration-request+xml": { - source: "iana", - compressible: true - }, - "application/vnd.dvb.notif-ia-registration-response+xml": { - source: "iana", - compressible: true - }, - "application/vnd.dvb.notif-init+xml": { - source: "iana", - compressible: true - }, - "application/vnd.dvb.pfr": { - source: "iana" - }, - "application/vnd.dvb.service": { - source: "iana", - extensions: ["svc"] - }, - "application/vnd.dxr": { - source: "iana" - }, - "application/vnd.dynageo": { - source: "iana", - extensions: ["geo"] - }, - "application/vnd.dzr": { - source: "iana" - }, - "application/vnd.easykaraoke.cdgdownload": { - source: "iana" - }, - "application/vnd.ecdis-update": { - source: "iana" - }, - "application/vnd.ecip.rlp": { - source: "iana" - }, - "application/vnd.eclipse.ditto+json": { - source: "iana", - compressible: true - }, - "application/vnd.ecowin.chart": { - source: "iana", - extensions: ["mag"] - }, - "application/vnd.ecowin.filerequest": { - source: "iana" - }, - "application/vnd.ecowin.fileupdate": { - source: "iana" - }, - "application/vnd.ecowin.series": { - source: "iana" - }, - "application/vnd.ecowin.seriesrequest": { - source: "iana" - }, - "application/vnd.ecowin.seriesupdate": { - source: "iana" - }, - "application/vnd.efi.img": { - source: "iana" - }, - "application/vnd.efi.iso": { - source: "iana" - }, - "application/vnd.emclient.accessrequest+xml": { - source: "iana", - compressible: true - }, - "application/vnd.enliven": { - source: "iana", - extensions: ["nml"] - }, - "application/vnd.enphase.envoy": { - source: "iana" - }, - "application/vnd.eprints.data+xml": { - source: "iana", - compressible: true - }, - "application/vnd.epson.esf": { - source: "iana", - extensions: ["esf"] - }, - "application/vnd.epson.msf": { - source: "iana", - extensions: ["msf"] - }, - "application/vnd.epson.quickanime": { - source: "iana", - extensions: ["qam"] - }, - "application/vnd.epson.salt": { - source: "iana", - extensions: ["slt"] - }, - "application/vnd.epson.ssf": { - source: "iana", - extensions: ["ssf"] - }, - "application/vnd.ericsson.quickcall": { - source: "iana" - }, - "application/vnd.espass-espass+zip": { - source: "iana", - compressible: false - }, - "application/vnd.eszigno3+xml": { - source: "iana", - compressible: true, - extensions: ["es3", "et3"] - }, - "application/vnd.etsi.aoc+xml": { - source: "iana", - compressible: true - }, - "application/vnd.etsi.asic-e+zip": { - source: "iana", - compressible: false - }, - "application/vnd.etsi.asic-s+zip": { - source: "iana", - compressible: false - }, - "application/vnd.etsi.cug+xml": { - source: "iana", - compressible: true - }, - "application/vnd.etsi.iptvcommand+xml": { - source: "iana", - compressible: true - }, - "application/vnd.etsi.iptvdiscovery+xml": { - source: "iana", - compressible: true - }, - "application/vnd.etsi.iptvprofile+xml": { - source: "iana", - compressible: true - }, - "application/vnd.etsi.iptvsad-bc+xml": { - source: "iana", - compressible: true - }, - "application/vnd.etsi.iptvsad-cod+xml": { - source: "iana", - compressible: true - }, - "application/vnd.etsi.iptvsad-npvr+xml": { - source: "iana", - compressible: true - }, - "application/vnd.etsi.iptvservice+xml": { - source: "iana", - compressible: true - }, - "application/vnd.etsi.iptvsync+xml": { - source: "iana", - compressible: true - }, - "application/vnd.etsi.iptvueprofile+xml": { - source: "iana", - compressible: true - }, - "application/vnd.etsi.mcid+xml": { - source: "iana", - compressible: true - }, - "application/vnd.etsi.mheg5": { - source: "iana" - }, - "application/vnd.etsi.overload-control-policy-dataset+xml": { - source: "iana", - compressible: true - }, - "application/vnd.etsi.pstn+xml": { - source: "iana", - compressible: true - }, - "application/vnd.etsi.sci+xml": { - source: "iana", - compressible: true - }, - "application/vnd.etsi.simservs+xml": { - source: "iana", - compressible: true - }, - "application/vnd.etsi.timestamp-token": { - source: "iana" - }, - "application/vnd.etsi.tsl+xml": { - source: "iana", - compressible: true - }, - "application/vnd.etsi.tsl.der": { - source: "iana" - }, - "application/vnd.eu.kasparian.car+json": { - source: "iana", - compressible: true - }, - "application/vnd.eudora.data": { - source: "iana" - }, - "application/vnd.evolv.ecig.profile": { - source: "iana" - }, - "application/vnd.evolv.ecig.settings": { - source: "iana" - }, - "application/vnd.evolv.ecig.theme": { - source: "iana" - }, - "application/vnd.exstream-empower+zip": { - source: "iana", - compressible: false - }, - "application/vnd.exstream-package": { - source: "iana" - }, - "application/vnd.ezpix-album": { - source: "iana", - extensions: ["ez2"] - }, - "application/vnd.ezpix-package": { - source: "iana", - extensions: ["ez3"] - }, - "application/vnd.f-secure.mobile": { - source: "iana" - }, - "application/vnd.familysearch.gedcom+zip": { - source: "iana", - compressible: false - }, - "application/vnd.fastcopy-disk-image": { - source: "iana" - }, - "application/vnd.fdf": { - source: "iana", - extensions: ["fdf"] - }, - "application/vnd.fdsn.mseed": { - source: "iana", - extensions: ["mseed"] - }, - "application/vnd.fdsn.seed": { - source: "iana", - extensions: ["seed", "dataless"] - }, - "application/vnd.ffsns": { - source: "iana" - }, - "application/vnd.ficlab.flb+zip": { - source: "iana", - compressible: false - }, - "application/vnd.filmit.zfc": { - source: "iana" - }, - "application/vnd.fints": { - source: "iana" - }, - "application/vnd.firemonkeys.cloudcell": { - source: "iana" - }, - "application/vnd.flographit": { - source: "iana", - extensions: ["gph"] - }, - "application/vnd.fluxtime.clip": { - source: "iana", - extensions: ["ftc"] - }, - "application/vnd.font-fontforge-sfd": { - source: "iana" - }, - "application/vnd.framemaker": { - source: "iana", - extensions: ["fm", "frame", "maker", "book"] - }, - "application/vnd.frogans.fnc": { - source: "iana", - extensions: ["fnc"] - }, - "application/vnd.frogans.ltf": { - source: "iana", - extensions: ["ltf"] - }, - "application/vnd.fsc.weblaunch": { - source: "iana", - extensions: ["fsc"] - }, - "application/vnd.fujifilm.fb.docuworks": { - source: "iana" - }, - "application/vnd.fujifilm.fb.docuworks.binder": { - source: "iana" - }, - "application/vnd.fujifilm.fb.docuworks.container": { - source: "iana" - }, - "application/vnd.fujifilm.fb.jfi+xml": { - source: "iana", - compressible: true - }, - "application/vnd.fujitsu.oasys": { - source: "iana", - extensions: ["oas"] - }, - "application/vnd.fujitsu.oasys2": { - source: "iana", - extensions: ["oa2"] - }, - "application/vnd.fujitsu.oasys3": { - source: "iana", - extensions: ["oa3"] - }, - "application/vnd.fujitsu.oasysgp": { - source: "iana", - extensions: ["fg5"] - }, - "application/vnd.fujitsu.oasysprs": { - source: "iana", - extensions: ["bh2"] - }, - "application/vnd.fujixerox.art-ex": { - source: "iana" - }, - "application/vnd.fujixerox.art4": { - source: "iana" - }, - "application/vnd.fujixerox.ddd": { - source: "iana", - extensions: ["ddd"] - }, - "application/vnd.fujixerox.docuworks": { - source: "iana", - extensions: ["xdw"] - }, - "application/vnd.fujixerox.docuworks.binder": { - source: "iana", - extensions: ["xbd"] - }, - "application/vnd.fujixerox.docuworks.container": { - source: "iana" - }, - "application/vnd.fujixerox.hbpl": { - source: "iana" - }, - "application/vnd.fut-misnet": { - source: "iana" - }, - "application/vnd.futoin+cbor": { - source: "iana" - }, - "application/vnd.futoin+json": { - source: "iana", - compressible: true - }, - "application/vnd.fuzzysheet": { - source: "iana", - extensions: ["fzs"] - }, - "application/vnd.genomatix.tuxedo": { - source: "iana", - extensions: ["txd"] - }, - "application/vnd.gentics.grd+json": { - source: "iana", - compressible: true - }, - "application/vnd.geo+json": { - source: "iana", - compressible: true - }, - "application/vnd.geocube+xml": { - source: "iana", - compressible: true - }, - "application/vnd.geogebra.file": { - source: "iana", - extensions: ["ggb"] - }, - "application/vnd.geogebra.slides": { - source: "iana" - }, - "application/vnd.geogebra.tool": { - source: "iana", - extensions: ["ggt"] - }, - "application/vnd.geometry-explorer": { - source: "iana", - extensions: ["gex", "gre"] - }, - "application/vnd.geonext": { - source: "iana", - extensions: ["gxt"] - }, - "application/vnd.geoplan": { - source: "iana", - extensions: ["g2w"] - }, - "application/vnd.geospace": { - source: "iana", - extensions: ["g3w"] - }, - "application/vnd.gerber": { - source: "iana" - }, - "application/vnd.globalplatform.card-content-mgt": { - source: "iana" - }, - "application/vnd.globalplatform.card-content-mgt-response": { - source: "iana" - }, - "application/vnd.gmx": { - source: "iana", - extensions: ["gmx"] - }, - "application/vnd.google-apps.document": { - compressible: false, - extensions: ["gdoc"] - }, - "application/vnd.google-apps.presentation": { - compressible: false, - extensions: ["gslides"] - }, - "application/vnd.google-apps.spreadsheet": { - compressible: false, - extensions: ["gsheet"] - }, - "application/vnd.google-earth.kml+xml": { - source: "iana", - compressible: true, - extensions: ["kml"] - }, - "application/vnd.google-earth.kmz": { - source: "iana", - compressible: false, - extensions: ["kmz"] - }, - "application/vnd.gov.sk.e-form+xml": { - source: "iana", - compressible: true - }, - "application/vnd.gov.sk.e-form+zip": { - source: "iana", - compressible: false - }, - "application/vnd.gov.sk.xmldatacontainer+xml": { - source: "iana", - compressible: true - }, - "application/vnd.grafeq": { - source: "iana", - extensions: ["gqf", "gqs"] - }, - "application/vnd.gridmp": { - source: "iana" - }, - "application/vnd.groove-account": { - source: "iana", - extensions: ["gac"] - }, - "application/vnd.groove-help": { - source: "iana", - extensions: ["ghf"] - }, - "application/vnd.groove-identity-message": { - source: "iana", - extensions: ["gim"] - }, - "application/vnd.groove-injector": { - source: "iana", - extensions: ["grv"] - }, - "application/vnd.groove-tool-message": { - source: "iana", - extensions: ["gtm"] - }, - "application/vnd.groove-tool-template": { - source: "iana", - extensions: ["tpl"] - }, - "application/vnd.groove-vcard": { - source: "iana", - extensions: ["vcg"] - }, - "application/vnd.hal+json": { - source: "iana", - compressible: true - }, - "application/vnd.hal+xml": { - source: "iana", - compressible: true, - extensions: ["hal"] - }, - "application/vnd.handheld-entertainment+xml": { - source: "iana", - compressible: true, - extensions: ["zmm"] - }, - "application/vnd.hbci": { - source: "iana", - extensions: ["hbci"] - }, - "application/vnd.hc+json": { - source: "iana", - compressible: true - }, - "application/vnd.hcl-bireports": { - source: "iana" - }, - "application/vnd.hdt": { - source: "iana" - }, - "application/vnd.heroku+json": { - source: "iana", - compressible: true - }, - "application/vnd.hhe.lesson-player": { - source: "iana", - extensions: ["les"] - }, - "application/vnd.hl7cda+xml": { - source: "iana", - charset: "UTF-8", - compressible: true - }, - "application/vnd.hl7v2+xml": { - source: "iana", - charset: "UTF-8", - compressible: true - }, - "application/vnd.hp-hpgl": { - source: "iana", - extensions: ["hpgl"] - }, - "application/vnd.hp-hpid": { - source: "iana", - extensions: ["hpid"] - }, - "application/vnd.hp-hps": { - source: "iana", - extensions: ["hps"] - }, - "application/vnd.hp-jlyt": { - source: "iana", - extensions: ["jlt"] - }, - "application/vnd.hp-pcl": { - source: "iana", - extensions: ["pcl"] - }, - "application/vnd.hp-pclxl": { - source: "iana", - extensions: ["pclxl"] - }, - "application/vnd.httphone": { - source: "iana" - }, - "application/vnd.hydrostatix.sof-data": { - source: "iana", - extensions: ["sfd-hdstx"] - }, - "application/vnd.hyper+json": { - source: "iana", - compressible: true - }, - "application/vnd.hyper-item+json": { - source: "iana", - compressible: true - }, - "application/vnd.hyperdrive+json": { - source: "iana", - compressible: true - }, - "application/vnd.hzn-3d-crossword": { - source: "iana" - }, - "application/vnd.ibm.afplinedata": { - source: "iana" - }, - "application/vnd.ibm.electronic-media": { - source: "iana" - }, - "application/vnd.ibm.minipay": { - source: "iana", - extensions: ["mpy"] - }, - "application/vnd.ibm.modcap": { - source: "iana", - extensions: ["afp", "listafp", "list3820"] - }, - "application/vnd.ibm.rights-management": { - source: "iana", - extensions: ["irm"] - }, - "application/vnd.ibm.secure-container": { - source: "iana", - extensions: ["sc"] - }, - "application/vnd.iccprofile": { - source: "iana", - extensions: ["icc", "icm"] - }, - "application/vnd.ieee.1905": { - source: "iana" - }, - "application/vnd.igloader": { - source: "iana", - extensions: ["igl"] - }, - "application/vnd.imagemeter.folder+zip": { - source: "iana", - compressible: false - }, - "application/vnd.imagemeter.image+zip": { - source: "iana", - compressible: false - }, - "application/vnd.immervision-ivp": { - source: "iana", - extensions: ["ivp"] - }, - "application/vnd.immervision-ivu": { - source: "iana", - extensions: ["ivu"] - }, - "application/vnd.ims.imsccv1p1": { - source: "iana" - }, - "application/vnd.ims.imsccv1p2": { - source: "iana" - }, - "application/vnd.ims.imsccv1p3": { - source: "iana" - }, - "application/vnd.ims.lis.v2.result+json": { - source: "iana", - compressible: true - }, - "application/vnd.ims.lti.v2.toolconsumerprofile+json": { - source: "iana", - compressible: true - }, - "application/vnd.ims.lti.v2.toolproxy+json": { - source: "iana", - compressible: true - }, - "application/vnd.ims.lti.v2.toolproxy.id+json": { - source: "iana", - compressible: true - }, - "application/vnd.ims.lti.v2.toolsettings+json": { - source: "iana", - compressible: true - }, - "application/vnd.ims.lti.v2.toolsettings.simple+json": { - source: "iana", - compressible: true - }, - "application/vnd.informedcontrol.rms+xml": { - source: "iana", - compressible: true - }, - "application/vnd.informix-visionary": { - source: "iana" - }, - "application/vnd.infotech.project": { - source: "iana" - }, - "application/vnd.infotech.project+xml": { - source: "iana", - compressible: true - }, - "application/vnd.innopath.wamp.notification": { - source: "iana" - }, - "application/vnd.insors.igm": { - source: "iana", - extensions: ["igm"] - }, - "application/vnd.intercon.formnet": { - source: "iana", - extensions: ["xpw", "xpx"] - }, - "application/vnd.intergeo": { - source: "iana", - extensions: ["i2g"] - }, - "application/vnd.intertrust.digibox": { - source: "iana" - }, - "application/vnd.intertrust.nncp": { - source: "iana" - }, - "application/vnd.intu.qbo": { - source: "iana", - extensions: ["qbo"] - }, - "application/vnd.intu.qfx": { - source: "iana", - extensions: ["qfx"] - }, - "application/vnd.iptc.g2.catalogitem+xml": { - source: "iana", - compressible: true - }, - "application/vnd.iptc.g2.conceptitem+xml": { - source: "iana", - compressible: true - }, - "application/vnd.iptc.g2.knowledgeitem+xml": { - source: "iana", - compressible: true - }, - "application/vnd.iptc.g2.newsitem+xml": { - source: "iana", - compressible: true - }, - "application/vnd.iptc.g2.newsmessage+xml": { - source: "iana", - compressible: true - }, - "application/vnd.iptc.g2.packageitem+xml": { - source: "iana", - compressible: true - }, - "application/vnd.iptc.g2.planningitem+xml": { - source: "iana", - compressible: true - }, - "application/vnd.ipunplugged.rcprofile": { - source: "iana", - extensions: ["rcprofile"] - }, - "application/vnd.irepository.package+xml": { - source: "iana", - compressible: true, - extensions: ["irp"] - }, - "application/vnd.is-xpr": { - source: "iana", - extensions: ["xpr"] - }, - "application/vnd.isac.fcs": { - source: "iana", - extensions: ["fcs"] - }, - "application/vnd.iso11783-10+zip": { - source: "iana", - compressible: false - }, - "application/vnd.jam": { - source: "iana", - extensions: ["jam"] - }, - "application/vnd.japannet-directory-service": { - source: "iana" - }, - "application/vnd.japannet-jpnstore-wakeup": { - source: "iana" - }, - "application/vnd.japannet-payment-wakeup": { - source: "iana" - }, - "application/vnd.japannet-registration": { - source: "iana" - }, - "application/vnd.japannet-registration-wakeup": { - source: "iana" - }, - "application/vnd.japannet-setstore-wakeup": { - source: "iana" - }, - "application/vnd.japannet-verification": { - source: "iana" - }, - "application/vnd.japannet-verification-wakeup": { - source: "iana" - }, - "application/vnd.jcp.javame.midlet-rms": { - source: "iana", - extensions: ["rms"] - }, - "application/vnd.jisp": { - source: "iana", - extensions: ["jisp"] - }, - "application/vnd.joost.joda-archive": { - source: "iana", - extensions: ["joda"] - }, - "application/vnd.jsk.isdn-ngn": { - source: "iana" - }, - "application/vnd.kahootz": { - source: "iana", - extensions: ["ktz", "ktr"] - }, - "application/vnd.kde.karbon": { - source: "iana", - extensions: ["karbon"] - }, - "application/vnd.kde.kchart": { - source: "iana", - extensions: ["chrt"] - }, - "application/vnd.kde.kformula": { - source: "iana", - extensions: ["kfo"] - }, - "application/vnd.kde.kivio": { - source: "iana", - extensions: ["flw"] - }, - "application/vnd.kde.kontour": { - source: "iana", - extensions: ["kon"] - }, - "application/vnd.kde.kpresenter": { - source: "iana", - extensions: ["kpr", "kpt"] - }, - "application/vnd.kde.kspread": { - source: "iana", - extensions: ["ksp"] - }, - "application/vnd.kde.kword": { - source: "iana", - extensions: ["kwd", "kwt"] - }, - "application/vnd.kenameaapp": { - source: "iana", - extensions: ["htke"] - }, - "application/vnd.kidspiration": { - source: "iana", - extensions: ["kia"] - }, - "application/vnd.kinar": { - source: "iana", - extensions: ["kne", "knp"] - }, - "application/vnd.koan": { - source: "iana", - extensions: ["skp", "skd", "skt", "skm"] - }, - "application/vnd.kodak-descriptor": { - source: "iana", - extensions: ["sse"] - }, - "application/vnd.las": { - source: "iana" - }, - "application/vnd.las.las+json": { - source: "iana", - compressible: true - }, - "application/vnd.las.las+xml": { - source: "iana", - compressible: true, - extensions: ["lasxml"] - }, - "application/vnd.laszip": { - source: "iana" - }, - "application/vnd.leap+json": { - source: "iana", - compressible: true - }, - "application/vnd.liberty-request+xml": { - source: "iana", - compressible: true - }, - "application/vnd.llamagraphics.life-balance.desktop": { - source: "iana", - extensions: ["lbd"] - }, - "application/vnd.llamagraphics.life-balance.exchange+xml": { - source: "iana", - compressible: true, - extensions: ["lbe"] - }, - "application/vnd.logipipe.circuit+zip": { - source: "iana", - compressible: false - }, - "application/vnd.loom": { - source: "iana" - }, - "application/vnd.lotus-1-2-3": { - source: "iana", - extensions: ["123"] - }, - "application/vnd.lotus-approach": { - source: "iana", - extensions: ["apr"] - }, - "application/vnd.lotus-freelance": { - source: "iana", - extensions: ["pre"] - }, - "application/vnd.lotus-notes": { - source: "iana", - extensions: ["nsf"] - }, - "application/vnd.lotus-organizer": { - source: "iana", - extensions: ["org"] - }, - "application/vnd.lotus-screencam": { - source: "iana", - extensions: ["scm"] - }, - "application/vnd.lotus-wordpro": { - source: "iana", - extensions: ["lwp"] - }, - "application/vnd.macports.portpkg": { - source: "iana", - extensions: ["portpkg"] - }, - "application/vnd.mapbox-vector-tile": { - source: "iana", - extensions: ["mvt"] - }, - "application/vnd.marlin.drm.actiontoken+xml": { - source: "iana", - compressible: true - }, - "application/vnd.marlin.drm.conftoken+xml": { - source: "iana", - compressible: true - }, - "application/vnd.marlin.drm.license+xml": { - source: "iana", - compressible: true - }, - "application/vnd.marlin.drm.mdcf": { - source: "iana" - }, - "application/vnd.mason+json": { - source: "iana", - compressible: true - }, - "application/vnd.maxar.archive.3tz+zip": { - source: "iana", - compressible: false - }, - "application/vnd.maxmind.maxmind-db": { - source: "iana" - }, - "application/vnd.mcd": { - source: "iana", - extensions: ["mcd"] - }, - "application/vnd.medcalcdata": { - source: "iana", - extensions: ["mc1"] - }, - "application/vnd.mediastation.cdkey": { - source: "iana", - extensions: ["cdkey"] - }, - "application/vnd.meridian-slingshot": { - source: "iana" - }, - "application/vnd.mfer": { - source: "iana", - extensions: ["mwf"] - }, - "application/vnd.mfmp": { - source: "iana", - extensions: ["mfm"] - }, - "application/vnd.micro+json": { - source: "iana", - compressible: true - }, - "application/vnd.micrografx.flo": { - source: "iana", - extensions: ["flo"] - }, - "application/vnd.micrografx.igx": { - source: "iana", - extensions: ["igx"] - }, - "application/vnd.microsoft.portable-executable": { - source: "iana" - }, - "application/vnd.microsoft.windows.thumbnail-cache": { - source: "iana" - }, - "application/vnd.miele+json": { - source: "iana", - compressible: true - }, - "application/vnd.mif": { - source: "iana", - extensions: ["mif"] - }, - "application/vnd.minisoft-hp3000-save": { - source: "iana" - }, - "application/vnd.mitsubishi.misty-guard.trustweb": { - source: "iana" - }, - "application/vnd.mobius.daf": { - source: "iana", - extensions: ["daf"] - }, - "application/vnd.mobius.dis": { - source: "iana", - extensions: ["dis"] - }, - "application/vnd.mobius.mbk": { - source: "iana", - extensions: ["mbk"] - }, - "application/vnd.mobius.mqy": { - source: "iana", - extensions: ["mqy"] - }, - "application/vnd.mobius.msl": { - source: "iana", - extensions: ["msl"] - }, - "application/vnd.mobius.plc": { - source: "iana", - extensions: ["plc"] - }, - "application/vnd.mobius.txf": { - source: "iana", - extensions: ["txf"] - }, - "application/vnd.mophun.application": { - source: "iana", - extensions: ["mpn"] - }, - "application/vnd.mophun.certificate": { - source: "iana", - extensions: ["mpc"] - }, - "application/vnd.motorola.flexsuite": { - source: "iana" - }, - "application/vnd.motorola.flexsuite.adsi": { - source: "iana" - }, - "application/vnd.motorola.flexsuite.fis": { - source: "iana" - }, - "application/vnd.motorola.flexsuite.gotap": { - source: "iana" - }, - "application/vnd.motorola.flexsuite.kmr": { - source: "iana" - }, - "application/vnd.motorola.flexsuite.ttc": { - source: "iana" - }, - "application/vnd.motorola.flexsuite.wem": { - source: "iana" - }, - "application/vnd.motorola.iprm": { - source: "iana" - }, - "application/vnd.mozilla.xul+xml": { - source: "iana", - compressible: true, - extensions: ["xul"] - }, - "application/vnd.ms-3mfdocument": { - source: "iana" - }, - "application/vnd.ms-artgalry": { - source: "iana", - extensions: ["cil"] - }, - "application/vnd.ms-asf": { - source: "iana" - }, - "application/vnd.ms-cab-compressed": { - source: "iana", - extensions: ["cab"] - }, - "application/vnd.ms-color.iccprofile": { - source: "apache" - }, - "application/vnd.ms-excel": { - source: "iana", - compressible: false, - extensions: ["xls", "xlm", "xla", "xlc", "xlt", "xlw"] - }, - "application/vnd.ms-excel.addin.macroenabled.12": { - source: "iana", - extensions: ["xlam"] - }, - "application/vnd.ms-excel.sheet.binary.macroenabled.12": { - source: "iana", - extensions: ["xlsb"] - }, - "application/vnd.ms-excel.sheet.macroenabled.12": { - source: "iana", - extensions: ["xlsm"] - }, - "application/vnd.ms-excel.template.macroenabled.12": { - source: "iana", - extensions: ["xltm"] - }, - "application/vnd.ms-fontobject": { - source: "iana", - compressible: true, - extensions: ["eot"] - }, - "application/vnd.ms-htmlhelp": { - source: "iana", - extensions: ["chm"] - }, - "application/vnd.ms-ims": { - source: "iana", - extensions: ["ims"] - }, - "application/vnd.ms-lrm": { - source: "iana", - extensions: ["lrm"] - }, - "application/vnd.ms-office.activex+xml": { - source: "iana", - compressible: true - }, - "application/vnd.ms-officetheme": { - source: "iana", - extensions: ["thmx"] - }, - "application/vnd.ms-opentype": { - source: "apache", - compressible: true - }, - "application/vnd.ms-outlook": { - compressible: false, - extensions: ["msg"] - }, - "application/vnd.ms-package.obfuscated-opentype": { - source: "apache" - }, - "application/vnd.ms-pki.seccat": { - source: "apache", - extensions: ["cat"] - }, - "application/vnd.ms-pki.stl": { - source: "apache", - extensions: ["stl"] - }, - "application/vnd.ms-playready.initiator+xml": { - source: "iana", - compressible: true - }, - "application/vnd.ms-powerpoint": { - source: "iana", - compressible: false, - extensions: ["ppt", "pps", "pot"] - }, - "application/vnd.ms-powerpoint.addin.macroenabled.12": { - source: "iana", - extensions: ["ppam"] - }, - "application/vnd.ms-powerpoint.presentation.macroenabled.12": { - source: "iana", - extensions: ["pptm"] - }, - "application/vnd.ms-powerpoint.slide.macroenabled.12": { - source: "iana", - extensions: ["sldm"] - }, - "application/vnd.ms-powerpoint.slideshow.macroenabled.12": { - source: "iana", - extensions: ["ppsm"] - }, - "application/vnd.ms-powerpoint.template.macroenabled.12": { - source: "iana", - extensions: ["potm"] - }, - "application/vnd.ms-printdevicecapabilities+xml": { - source: "iana", - compressible: true - }, - "application/vnd.ms-printing.printticket+xml": { - source: "apache", - compressible: true - }, - "application/vnd.ms-printschematicket+xml": { - source: "iana", - compressible: true - }, - "application/vnd.ms-project": { - source: "iana", - extensions: ["mpp", "mpt"] - }, - "application/vnd.ms-tnef": { - source: "iana" - }, - "application/vnd.ms-windows.devicepairing": { - source: "iana" - }, - "application/vnd.ms-windows.nwprinting.oob": { - source: "iana" - }, - "application/vnd.ms-windows.printerpairing": { - source: "iana" - }, - "application/vnd.ms-windows.wsd.oob": { - source: "iana" - }, - "application/vnd.ms-wmdrm.lic-chlg-req": { - source: "iana" - }, - "application/vnd.ms-wmdrm.lic-resp": { - source: "iana" - }, - "application/vnd.ms-wmdrm.meter-chlg-req": { - source: "iana" - }, - "application/vnd.ms-wmdrm.meter-resp": { - source: "iana" - }, - "application/vnd.ms-word.document.macroenabled.12": { - source: "iana", - extensions: ["docm"] - }, - "application/vnd.ms-word.template.macroenabled.12": { - source: "iana", - extensions: ["dotm"] - }, - "application/vnd.ms-works": { - source: "iana", - extensions: ["wps", "wks", "wcm", "wdb"] - }, - "application/vnd.ms-wpl": { - source: "iana", - extensions: ["wpl"] - }, - "application/vnd.ms-xpsdocument": { - source: "iana", - compressible: false, - extensions: ["xps"] - }, - "application/vnd.msa-disk-image": { - source: "iana" - }, - "application/vnd.mseq": { - source: "iana", - extensions: ["mseq"] - }, - "application/vnd.msign": { - source: "iana" - }, - "application/vnd.multiad.creator": { - source: "iana" - }, - "application/vnd.multiad.creator.cif": { - source: "iana" - }, - "application/vnd.music-niff": { - source: "iana" - }, - "application/vnd.musician": { - source: "iana", - extensions: ["mus"] - }, - "application/vnd.muvee.style": { - source: "iana", - extensions: ["msty"] - }, - "application/vnd.mynfc": { - source: "iana", - extensions: ["taglet"] - }, - "application/vnd.nacamar.ybrid+json": { - source: "iana", - compressible: true - }, - "application/vnd.ncd.control": { - source: "iana" - }, - "application/vnd.ncd.reference": { - source: "iana" - }, - "application/vnd.nearst.inv+json": { - source: "iana", - compressible: true - }, - "application/vnd.nebumind.line": { - source: "iana" - }, - "application/vnd.nervana": { - source: "iana" - }, - "application/vnd.netfpx": { - source: "iana" - }, - "application/vnd.neurolanguage.nlu": { - source: "iana", - extensions: ["nlu"] - }, - "application/vnd.nimn": { - source: "iana" - }, - "application/vnd.nintendo.nitro.rom": { - source: "iana" - }, - "application/vnd.nintendo.snes.rom": { - source: "iana" - }, - "application/vnd.nitf": { - source: "iana", - extensions: ["ntf", "nitf"] - }, - "application/vnd.noblenet-directory": { - source: "iana", - extensions: ["nnd"] - }, - "application/vnd.noblenet-sealer": { - source: "iana", - extensions: ["nns"] - }, - "application/vnd.noblenet-web": { - source: "iana", - extensions: ["nnw"] - }, - "application/vnd.nokia.catalogs": { - source: "iana" - }, - "application/vnd.nokia.conml+wbxml": { - source: "iana" - }, - "application/vnd.nokia.conml+xml": { - source: "iana", - compressible: true - }, - "application/vnd.nokia.iptv.config+xml": { - source: "iana", - compressible: true - }, - "application/vnd.nokia.isds-radio-presets": { - source: "iana" - }, - "application/vnd.nokia.landmark+wbxml": { - source: "iana" - }, - "application/vnd.nokia.landmark+xml": { - source: "iana", - compressible: true - }, - "application/vnd.nokia.landmarkcollection+xml": { - source: "iana", - compressible: true - }, - "application/vnd.nokia.n-gage.ac+xml": { - source: "iana", - compressible: true, - extensions: ["ac"] - }, - "application/vnd.nokia.n-gage.data": { - source: "iana", - extensions: ["ngdat"] - }, - "application/vnd.nokia.n-gage.symbian.install": { - source: "iana", - extensions: ["n-gage"] - }, - "application/vnd.nokia.ncd": { - source: "iana" - }, - "application/vnd.nokia.pcd+wbxml": { - source: "iana" - }, - "application/vnd.nokia.pcd+xml": { - source: "iana", - compressible: true - }, - "application/vnd.nokia.radio-preset": { - source: "iana", - extensions: ["rpst"] - }, - "application/vnd.nokia.radio-presets": { - source: "iana", - extensions: ["rpss"] - }, - "application/vnd.novadigm.edm": { - source: "iana", - extensions: ["edm"] - }, - "application/vnd.novadigm.edx": { - source: "iana", - extensions: ["edx"] - }, - "application/vnd.novadigm.ext": { - source: "iana", - extensions: ["ext"] - }, - "application/vnd.ntt-local.content-share": { - source: "iana" - }, - "application/vnd.ntt-local.file-transfer": { - source: "iana" - }, - "application/vnd.ntt-local.ogw_remote-access": { - source: "iana" - }, - "application/vnd.ntt-local.sip-ta_remote": { - source: "iana" - }, - "application/vnd.ntt-local.sip-ta_tcp_stream": { - source: "iana" - }, - "application/vnd.oasis.opendocument.chart": { - source: "iana", - extensions: ["odc"] - }, - "application/vnd.oasis.opendocument.chart-template": { - source: "iana", - extensions: ["otc"] - }, - "application/vnd.oasis.opendocument.database": { - source: "iana", - extensions: ["odb"] - }, - "application/vnd.oasis.opendocument.formula": { - source: "iana", - extensions: ["odf"] - }, - "application/vnd.oasis.opendocument.formula-template": { - source: "iana", - extensions: ["odft"] - }, - "application/vnd.oasis.opendocument.graphics": { - source: "iana", - compressible: false, - extensions: ["odg"] - }, - "application/vnd.oasis.opendocument.graphics-template": { - source: "iana", - extensions: ["otg"] - }, - "application/vnd.oasis.opendocument.image": { - source: "iana", - extensions: ["odi"] - }, - "application/vnd.oasis.opendocument.image-template": { - source: "iana", - extensions: ["oti"] - }, - "application/vnd.oasis.opendocument.presentation": { - source: "iana", - compressible: false, - extensions: ["odp"] - }, - "application/vnd.oasis.opendocument.presentation-template": { - source: "iana", - extensions: ["otp"] - }, - "application/vnd.oasis.opendocument.spreadsheet": { - source: "iana", - compressible: false, - extensions: ["ods"] - }, - "application/vnd.oasis.opendocument.spreadsheet-template": { - source: "iana", - extensions: ["ots"] - }, - "application/vnd.oasis.opendocument.text": { - source: "iana", - compressible: false, - extensions: ["odt"] - }, - "application/vnd.oasis.opendocument.text-master": { - source: "iana", - extensions: ["odm"] - }, - "application/vnd.oasis.opendocument.text-template": { - source: "iana", - extensions: ["ott"] - }, - "application/vnd.oasis.opendocument.text-web": { - source: "iana", - extensions: ["oth"] - }, - "application/vnd.obn": { - source: "iana" - }, - "application/vnd.ocf+cbor": { - source: "iana" - }, - "application/vnd.oci.image.manifest.v1+json": { - source: "iana", - compressible: true - }, - "application/vnd.oftn.l10n+json": { - source: "iana", - compressible: true - }, - "application/vnd.oipf.contentaccessdownload+xml": { - source: "iana", - compressible: true - }, - "application/vnd.oipf.contentaccessstreaming+xml": { - source: "iana", - compressible: true - }, - "application/vnd.oipf.cspg-hexbinary": { - source: "iana" - }, - "application/vnd.oipf.dae.svg+xml": { - source: "iana", - compressible: true - }, - "application/vnd.oipf.dae.xhtml+xml": { - source: "iana", - compressible: true - }, - "application/vnd.oipf.mippvcontrolmessage+xml": { - source: "iana", - compressible: true - }, - "application/vnd.oipf.pae.gem": { - source: "iana" - }, - "application/vnd.oipf.spdiscovery+xml": { - source: "iana", - compressible: true - }, - "application/vnd.oipf.spdlist+xml": { - source: "iana", - compressible: true - }, - "application/vnd.oipf.ueprofile+xml": { - source: "iana", - compressible: true - }, - "application/vnd.oipf.userprofile+xml": { - source: "iana", - compressible: true - }, - "application/vnd.olpc-sugar": { - source: "iana", - extensions: ["xo"] - }, - "application/vnd.oma-scws-config": { - source: "iana" - }, - "application/vnd.oma-scws-http-request": { - source: "iana" - }, - "application/vnd.oma-scws-http-response": { - source: "iana" - }, - "application/vnd.oma.bcast.associated-procedure-parameter+xml": { - source: "iana", - compressible: true - }, - "application/vnd.oma.bcast.drm-trigger+xml": { - source: "iana", - compressible: true - }, - "application/vnd.oma.bcast.imd+xml": { - source: "iana", - compressible: true - }, - "application/vnd.oma.bcast.ltkm": { - source: "iana" - }, - "application/vnd.oma.bcast.notification+xml": { - source: "iana", - compressible: true - }, - "application/vnd.oma.bcast.provisioningtrigger": { - source: "iana" - }, - "application/vnd.oma.bcast.sgboot": { - source: "iana" - }, - "application/vnd.oma.bcast.sgdd+xml": { - source: "iana", - compressible: true - }, - "application/vnd.oma.bcast.sgdu": { - source: "iana" - }, - "application/vnd.oma.bcast.simple-symbol-container": { - source: "iana" - }, - "application/vnd.oma.bcast.smartcard-trigger+xml": { - source: "iana", - compressible: true - }, - "application/vnd.oma.bcast.sprov+xml": { - source: "iana", - compressible: true - }, - "application/vnd.oma.bcast.stkm": { - source: "iana" - }, - "application/vnd.oma.cab-address-book+xml": { - source: "iana", - compressible: true - }, - "application/vnd.oma.cab-feature-handler+xml": { - source: "iana", - compressible: true - }, - "application/vnd.oma.cab-pcc+xml": { - source: "iana", - compressible: true - }, - "application/vnd.oma.cab-subs-invite+xml": { - source: "iana", - compressible: true - }, - "application/vnd.oma.cab-user-prefs+xml": { - source: "iana", - compressible: true - }, - "application/vnd.oma.dcd": { - source: "iana" - }, - "application/vnd.oma.dcdc": { - source: "iana" - }, - "application/vnd.oma.dd2+xml": { - source: "iana", - compressible: true, - extensions: ["dd2"] - }, - "application/vnd.oma.drm.risd+xml": { - source: "iana", - compressible: true - }, - "application/vnd.oma.group-usage-list+xml": { - source: "iana", - compressible: true - }, - "application/vnd.oma.lwm2m+cbor": { - source: "iana" - }, - "application/vnd.oma.lwm2m+json": { - source: "iana", - compressible: true - }, - "application/vnd.oma.lwm2m+tlv": { - source: "iana" - }, - "application/vnd.oma.pal+xml": { - source: "iana", - compressible: true - }, - "application/vnd.oma.poc.detailed-progress-report+xml": { - source: "iana", - compressible: true - }, - "application/vnd.oma.poc.final-report+xml": { - source: "iana", - compressible: true - }, - "application/vnd.oma.poc.groups+xml": { - source: "iana", - compressible: true - }, - "application/vnd.oma.poc.invocation-descriptor+xml": { - source: "iana", - compressible: true - }, - "application/vnd.oma.poc.optimized-progress-report+xml": { - source: "iana", - compressible: true - }, - "application/vnd.oma.push": { - source: "iana" - }, - "application/vnd.oma.scidm.messages+xml": { - source: "iana", - compressible: true - }, - "application/vnd.oma.xcap-directory+xml": { - source: "iana", - compressible: true - }, - "application/vnd.omads-email+xml": { - source: "iana", - charset: "UTF-8", - compressible: true - }, - "application/vnd.omads-file+xml": { - source: "iana", - charset: "UTF-8", - compressible: true - }, - "application/vnd.omads-folder+xml": { - source: "iana", - charset: "UTF-8", - compressible: true - }, - "application/vnd.omaloc-supl-init": { - source: "iana" - }, - "application/vnd.onepager": { - source: "iana" - }, - "application/vnd.onepagertamp": { - source: "iana" - }, - "application/vnd.onepagertamx": { - source: "iana" - }, - "application/vnd.onepagertat": { - source: "iana" - }, - "application/vnd.onepagertatp": { - source: "iana" - }, - "application/vnd.onepagertatx": { - source: "iana" - }, - "application/vnd.openblox.game+xml": { - source: "iana", - compressible: true, - extensions: ["obgx"] - }, - "application/vnd.openblox.game-binary": { - source: "iana" - }, - "application/vnd.openeye.oeb": { - source: "iana" - }, - "application/vnd.openofficeorg.extension": { - source: "apache", - extensions: ["oxt"] - }, - "application/vnd.openstreetmap.data+xml": { - source: "iana", - compressible: true, - extensions: ["osm"] - }, - "application/vnd.opentimestamps.ots": { - source: "iana" - }, - "application/vnd.openxmlformats-officedocument.custom-properties+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.customxmlproperties+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.drawing+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.drawingml.chart+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.extended-properties+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.presentationml.comments+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.presentationml.presentation": { - source: "iana", - compressible: false, - extensions: ["pptx"] - }, - "application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.presentationml.presprops+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.presentationml.slide": { - source: "iana", - extensions: ["sldx"] - }, - "application/vnd.openxmlformats-officedocument.presentationml.slide+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.presentationml.slideshow": { - source: "iana", - extensions: ["ppsx"] - }, - "application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.presentationml.tags+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.presentationml.template": { - source: "iana", - extensions: ["potx"] - }, - "application/vnd.openxmlformats-officedocument.presentationml.template.main+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": { - source: "iana", - compressible: false, - extensions: ["xlsx"] - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.template": { - source: "iana", - extensions: ["xltx"] - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.theme+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.themeoverride+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.vmldrawing": { - source: "iana" - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.document": { - source: "iana", - compressible: false, - extensions: ["docx"] - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.template": { - source: "iana", - extensions: ["dotx"] - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-package.core-properties+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml": { - source: "iana", - compressible: true - }, - "application/vnd.openxmlformats-package.relationships+xml": { - source: "iana", - compressible: true - }, - "application/vnd.oracle.resource+json": { - source: "iana", - compressible: true - }, - "application/vnd.orange.indata": { - source: "iana" - }, - "application/vnd.osa.netdeploy": { - source: "iana" - }, - "application/vnd.osgeo.mapguide.package": { - source: "iana", - extensions: ["mgp"] - }, - "application/vnd.osgi.bundle": { - source: "iana" - }, - "application/vnd.osgi.dp": { - source: "iana", - extensions: ["dp"] - }, - "application/vnd.osgi.subsystem": { - source: "iana", - extensions: ["esa"] - }, - "application/vnd.otps.ct-kip+xml": { - source: "iana", - compressible: true - }, - "application/vnd.oxli.countgraph": { - source: "iana" - }, - "application/vnd.pagerduty+json": { - source: "iana", - compressible: true - }, - "application/vnd.palm": { - source: "iana", - extensions: ["pdb", "pqa", "oprc"] - }, - "application/vnd.panoply": { - source: "iana" - }, - "application/vnd.paos.xml": { - source: "iana" - }, - "application/vnd.patentdive": { - source: "iana" - }, - "application/vnd.patientecommsdoc": { - source: "iana" - }, - "application/vnd.pawaafile": { - source: "iana", - extensions: ["paw"] - }, - "application/vnd.pcos": { - source: "iana" - }, - "application/vnd.pg.format": { - source: "iana", - extensions: ["str"] - }, - "application/vnd.pg.osasli": { - source: "iana", - extensions: ["ei6"] - }, - "application/vnd.piaccess.application-licence": { - source: "iana" - }, - "application/vnd.picsel": { - source: "iana", - extensions: ["efif"] - }, - "application/vnd.pmi.widget": { - source: "iana", - extensions: ["wg"] - }, - "application/vnd.poc.group-advertisement+xml": { - source: "iana", - compressible: true - }, - "application/vnd.pocketlearn": { - source: "iana", - extensions: ["plf"] - }, - "application/vnd.powerbuilder6": { - source: "iana", - extensions: ["pbd"] - }, - "application/vnd.powerbuilder6-s": { - source: "iana" - }, - "application/vnd.powerbuilder7": { - source: "iana" - }, - "application/vnd.powerbuilder7-s": { - source: "iana" - }, - "application/vnd.powerbuilder75": { - source: "iana" - }, - "application/vnd.powerbuilder75-s": { - source: "iana" - }, - "application/vnd.preminet": { - source: "iana" - }, - "application/vnd.previewsystems.box": { - source: "iana", - extensions: ["box"] - }, - "application/vnd.proteus.magazine": { - source: "iana", - extensions: ["mgz"] - }, - "application/vnd.psfs": { - source: "iana" - }, - "application/vnd.publishare-delta-tree": { - source: "iana", - extensions: ["qps"] - }, - "application/vnd.pvi.ptid1": { - source: "iana", - extensions: ["ptid"] - }, - "application/vnd.pwg-multiplexed": { - source: "iana" - }, - "application/vnd.pwg-xhtml-print+xml": { - source: "iana", - compressible: true - }, - "application/vnd.qualcomm.brew-app-res": { - source: "iana" - }, - "application/vnd.quarantainenet": { - source: "iana" - }, - "application/vnd.quark.quarkxpress": { - source: "iana", - extensions: ["qxd", "qxt", "qwd", "qwt", "qxl", "qxb"] - }, - "application/vnd.quobject-quoxdocument": { - source: "iana" - }, - "application/vnd.radisys.moml+xml": { - source: "iana", - compressible: true - }, - "application/vnd.radisys.msml+xml": { - source: "iana", - compressible: true - }, - "application/vnd.radisys.msml-audit+xml": { - source: "iana", - compressible: true - }, - "application/vnd.radisys.msml-audit-conf+xml": { - source: "iana", - compressible: true - }, - "application/vnd.radisys.msml-audit-conn+xml": { - source: "iana", - compressible: true - }, - "application/vnd.radisys.msml-audit-dialog+xml": { - source: "iana", - compressible: true - }, - "application/vnd.radisys.msml-audit-stream+xml": { - source: "iana", - compressible: true - }, - "application/vnd.radisys.msml-conf+xml": { - source: "iana", - compressible: true - }, - "application/vnd.radisys.msml-dialog+xml": { - source: "iana", - compressible: true - }, - "application/vnd.radisys.msml-dialog-base+xml": { - source: "iana", - compressible: true - }, - "application/vnd.radisys.msml-dialog-fax-detect+xml": { - source: "iana", - compressible: true - }, - "application/vnd.radisys.msml-dialog-fax-sendrecv+xml": { - source: "iana", - compressible: true - }, - "application/vnd.radisys.msml-dialog-group+xml": { - source: "iana", - compressible: true - }, - "application/vnd.radisys.msml-dialog-speech+xml": { - source: "iana", - compressible: true - }, - "application/vnd.radisys.msml-dialog-transform+xml": { - source: "iana", - compressible: true - }, - "application/vnd.rainstor.data": { - source: "iana" - }, - "application/vnd.rapid": { - source: "iana" - }, - "application/vnd.rar": { - source: "iana", - extensions: ["rar"] - }, - "application/vnd.realvnc.bed": { - source: "iana", - extensions: ["bed"] - }, - "application/vnd.recordare.musicxml": { - source: "iana", - extensions: ["mxl"] - }, - "application/vnd.recordare.musicxml+xml": { - source: "iana", - compressible: true, - extensions: ["musicxml"] - }, - "application/vnd.renlearn.rlprint": { - source: "iana" - }, - "application/vnd.resilient.logic": { - source: "iana" - }, - "application/vnd.restful+json": { - source: "iana", - compressible: true - }, - "application/vnd.rig.cryptonote": { - source: "iana", - extensions: ["cryptonote"] - }, - "application/vnd.rim.cod": { - source: "apache", - extensions: ["cod"] - }, - "application/vnd.rn-realmedia": { - source: "apache", - extensions: ["rm"] - }, - "application/vnd.rn-realmedia-vbr": { - source: "apache", - extensions: ["rmvb"] - }, - "application/vnd.route66.link66+xml": { - source: "iana", - compressible: true, - extensions: ["link66"] - }, - "application/vnd.rs-274x": { - source: "iana" - }, - "application/vnd.ruckus.download": { - source: "iana" - }, - "application/vnd.s3sms": { - source: "iana" - }, - "application/vnd.sailingtracker.track": { - source: "iana", - extensions: ["st"] - }, - "application/vnd.sar": { - source: "iana" - }, - "application/vnd.sbm.cid": { - source: "iana" - }, - "application/vnd.sbm.mid2": { - source: "iana" - }, - "application/vnd.scribus": { - source: "iana" - }, - "application/vnd.sealed.3df": { - source: "iana" - }, - "application/vnd.sealed.csf": { - source: "iana" - }, - "application/vnd.sealed.doc": { - source: "iana" - }, - "application/vnd.sealed.eml": { - source: "iana" - }, - "application/vnd.sealed.mht": { - source: "iana" - }, - "application/vnd.sealed.net": { - source: "iana" - }, - "application/vnd.sealed.ppt": { - source: "iana" - }, - "application/vnd.sealed.tiff": { - source: "iana" - }, - "application/vnd.sealed.xls": { - source: "iana" - }, - "application/vnd.sealedmedia.softseal.html": { - source: "iana" - }, - "application/vnd.sealedmedia.softseal.pdf": { - source: "iana" - }, - "application/vnd.seemail": { - source: "iana", - extensions: ["see"] - }, - "application/vnd.seis+json": { - source: "iana", - compressible: true - }, - "application/vnd.sema": { - source: "iana", - extensions: ["sema"] - }, - "application/vnd.semd": { - source: "iana", - extensions: ["semd"] - }, - "application/vnd.semf": { - source: "iana", - extensions: ["semf"] - }, - "application/vnd.shade-save-file": { - source: "iana" - }, - "application/vnd.shana.informed.formdata": { - source: "iana", - extensions: ["ifm"] - }, - "application/vnd.shana.informed.formtemplate": { - source: "iana", - extensions: ["itp"] - }, - "application/vnd.shana.informed.interchange": { - source: "iana", - extensions: ["iif"] - }, - "application/vnd.shana.informed.package": { - source: "iana", - extensions: ["ipk"] - }, - "application/vnd.shootproof+json": { - source: "iana", - compressible: true - }, - "application/vnd.shopkick+json": { - source: "iana", - compressible: true - }, - "application/vnd.shp": { - source: "iana" - }, - "application/vnd.shx": { - source: "iana" - }, - "application/vnd.sigrok.session": { - source: "iana" - }, - "application/vnd.simtech-mindmapper": { - source: "iana", - extensions: ["twd", "twds"] - }, - "application/vnd.siren+json": { - source: "iana", - compressible: true - }, - "application/vnd.smaf": { - source: "iana", - extensions: ["mmf"] - }, - "application/vnd.smart.notebook": { - source: "iana" - }, - "application/vnd.smart.teacher": { - source: "iana", - extensions: ["teacher"] - }, - "application/vnd.snesdev-page-table": { - source: "iana" - }, - "application/vnd.software602.filler.form+xml": { - source: "iana", - compressible: true, - extensions: ["fo"] - }, - "application/vnd.software602.filler.form-xml-zip": { - source: "iana" - }, - "application/vnd.solent.sdkm+xml": { - source: "iana", - compressible: true, - extensions: ["sdkm", "sdkd"] - }, - "application/vnd.spotfire.dxp": { - source: "iana", - extensions: ["dxp"] - }, - "application/vnd.spotfire.sfs": { - source: "iana", - extensions: ["sfs"] - }, - "application/vnd.sqlite3": { - source: "iana" - }, - "application/vnd.sss-cod": { - source: "iana" - }, - "application/vnd.sss-dtf": { - source: "iana" - }, - "application/vnd.sss-ntf": { - source: "iana" - }, - "application/vnd.stardivision.calc": { - source: "apache", - extensions: ["sdc"] - }, - "application/vnd.stardivision.draw": { - source: "apache", - extensions: ["sda"] - }, - "application/vnd.stardivision.impress": { - source: "apache", - extensions: ["sdd"] - }, - "application/vnd.stardivision.math": { - source: "apache", - extensions: ["smf"] - }, - "application/vnd.stardivision.writer": { - source: "apache", - extensions: ["sdw", "vor"] - }, - "application/vnd.stardivision.writer-global": { - source: "apache", - extensions: ["sgl"] - }, - "application/vnd.stepmania.package": { - source: "iana", - extensions: ["smzip"] - }, - "application/vnd.stepmania.stepchart": { - source: "iana", - extensions: ["sm"] - }, - "application/vnd.street-stream": { - source: "iana" - }, - "application/vnd.sun.wadl+xml": { - source: "iana", - compressible: true, - extensions: ["wadl"] - }, - "application/vnd.sun.xml.calc": { - source: "apache", - extensions: ["sxc"] - }, - "application/vnd.sun.xml.calc.template": { - source: "apache", - extensions: ["stc"] - }, - "application/vnd.sun.xml.draw": { - source: "apache", - extensions: ["sxd"] - }, - "application/vnd.sun.xml.draw.template": { - source: "apache", - extensions: ["std"] - }, - "application/vnd.sun.xml.impress": { - source: "apache", - extensions: ["sxi"] - }, - "application/vnd.sun.xml.impress.template": { - source: "apache", - extensions: ["sti"] - }, - "application/vnd.sun.xml.math": { - source: "apache", - extensions: ["sxm"] - }, - "application/vnd.sun.xml.writer": { - source: "apache", - extensions: ["sxw"] - }, - "application/vnd.sun.xml.writer.global": { - source: "apache", - extensions: ["sxg"] - }, - "application/vnd.sun.xml.writer.template": { - source: "apache", - extensions: ["stw"] - }, - "application/vnd.sus-calendar": { - source: "iana", - extensions: ["sus", "susp"] - }, - "application/vnd.svd": { - source: "iana", - extensions: ["svd"] - }, - "application/vnd.swiftview-ics": { - source: "iana" - }, - "application/vnd.sycle+xml": { - source: "iana", - compressible: true - }, - "application/vnd.syft+json": { - source: "iana", - compressible: true - }, - "application/vnd.symbian.install": { - source: "apache", - extensions: ["sis", "sisx"] - }, - "application/vnd.syncml+xml": { - source: "iana", - charset: "UTF-8", - compressible: true, - extensions: ["xsm"] - }, - "application/vnd.syncml.dm+wbxml": { - source: "iana", - charset: "UTF-8", - extensions: ["bdm"] - }, - "application/vnd.syncml.dm+xml": { - source: "iana", - charset: "UTF-8", - compressible: true, - extensions: ["xdm"] - }, - "application/vnd.syncml.dm.notification": { - source: "iana" - }, - "application/vnd.syncml.dmddf+wbxml": { - source: "iana" - }, - "application/vnd.syncml.dmddf+xml": { - source: "iana", - charset: "UTF-8", - compressible: true, - extensions: ["ddf"] - }, - "application/vnd.syncml.dmtnds+wbxml": { - source: "iana" - }, - "application/vnd.syncml.dmtnds+xml": { - source: "iana", - charset: "UTF-8", - compressible: true - }, - "application/vnd.syncml.ds.notification": { - source: "iana" - }, - "application/vnd.tableschema+json": { - source: "iana", - compressible: true - }, - "application/vnd.tao.intent-module-archive": { - source: "iana", - extensions: ["tao"] - }, - "application/vnd.tcpdump.pcap": { - source: "iana", - extensions: ["pcap", "cap", "dmp"] - }, - "application/vnd.think-cell.ppttc+json": { - source: "iana", - compressible: true - }, - "application/vnd.tmd.mediaflex.api+xml": { - source: "iana", - compressible: true - }, - "application/vnd.tml": { - source: "iana" - }, - "application/vnd.tmobile-livetv": { - source: "iana", - extensions: ["tmo"] - }, - "application/vnd.tri.onesource": { - source: "iana" - }, - "application/vnd.trid.tpt": { - source: "iana", - extensions: ["tpt"] - }, - "application/vnd.triscape.mxs": { - source: "iana", - extensions: ["mxs"] - }, - "application/vnd.trueapp": { - source: "iana", - extensions: ["tra"] - }, - "application/vnd.truedoc": { - source: "iana" - }, - "application/vnd.ubisoft.webplayer": { - source: "iana" - }, - "application/vnd.ufdl": { - source: "iana", - extensions: ["ufd", "ufdl"] - }, - "application/vnd.uiq.theme": { - source: "iana", - extensions: ["utz"] - }, - "application/vnd.umajin": { - source: "iana", - extensions: ["umj"] - }, - "application/vnd.unity": { - source: "iana", - extensions: ["unityweb"] - }, - "application/vnd.uoml+xml": { - source: "iana", - compressible: true, - extensions: ["uoml"] - }, - "application/vnd.uplanet.alert": { - source: "iana" - }, - "application/vnd.uplanet.alert-wbxml": { - source: "iana" - }, - "application/vnd.uplanet.bearer-choice": { - source: "iana" - }, - "application/vnd.uplanet.bearer-choice-wbxml": { - source: "iana" - }, - "application/vnd.uplanet.cacheop": { - source: "iana" - }, - "application/vnd.uplanet.cacheop-wbxml": { - source: "iana" - }, - "application/vnd.uplanet.channel": { - source: "iana" - }, - "application/vnd.uplanet.channel-wbxml": { - source: "iana" - }, - "application/vnd.uplanet.list": { - source: "iana" - }, - "application/vnd.uplanet.list-wbxml": { - source: "iana" - }, - "application/vnd.uplanet.listcmd": { - source: "iana" - }, - "application/vnd.uplanet.listcmd-wbxml": { - source: "iana" - }, - "application/vnd.uplanet.signal": { - source: "iana" - }, - "application/vnd.uri-map": { - source: "iana" - }, - "application/vnd.valve.source.material": { - source: "iana" - }, - "application/vnd.vcx": { - source: "iana", - extensions: ["vcx"] - }, - "application/vnd.vd-study": { - source: "iana" - }, - "application/vnd.vectorworks": { - source: "iana" - }, - "application/vnd.vel+json": { - source: "iana", - compressible: true - }, - "application/vnd.verimatrix.vcas": { - source: "iana" - }, - "application/vnd.veritone.aion+json": { - source: "iana", - compressible: true - }, - "application/vnd.veryant.thin": { - source: "iana" - }, - "application/vnd.ves.encrypted": { - source: "iana" - }, - "application/vnd.vidsoft.vidconference": { - source: "iana" - }, - "application/vnd.visio": { - source: "iana", - extensions: ["vsd", "vst", "vss", "vsw"] - }, - "application/vnd.visionary": { - source: "iana", - extensions: ["vis"] - }, - "application/vnd.vividence.scriptfile": { - source: "iana" - }, - "application/vnd.vsf": { - source: "iana", - extensions: ["vsf"] - }, - "application/vnd.wap.sic": { - source: "iana" - }, - "application/vnd.wap.slc": { - source: "iana" - }, - "application/vnd.wap.wbxml": { - source: "iana", - charset: "UTF-8", - extensions: ["wbxml"] - }, - "application/vnd.wap.wmlc": { - source: "iana", - extensions: ["wmlc"] - }, - "application/vnd.wap.wmlscriptc": { - source: "iana", - extensions: ["wmlsc"] - }, - "application/vnd.webturbo": { - source: "iana", - extensions: ["wtb"] - }, - "application/vnd.wfa.dpp": { - source: "iana" - }, - "application/vnd.wfa.p2p": { - source: "iana" - }, - "application/vnd.wfa.wsc": { - source: "iana" - }, - "application/vnd.windows.devicepairing": { - source: "iana" - }, - "application/vnd.wmc": { - source: "iana" - }, - "application/vnd.wmf.bootstrap": { - source: "iana" - }, - "application/vnd.wolfram.mathematica": { - source: "iana" - }, - "application/vnd.wolfram.mathematica.package": { - source: "iana" - }, - "application/vnd.wolfram.player": { - source: "iana", - extensions: ["nbp"] - }, - "application/vnd.wordperfect": { - source: "iana", - extensions: ["wpd"] - }, - "application/vnd.wqd": { - source: "iana", - extensions: ["wqd"] - }, - "application/vnd.wrq-hp3000-labelled": { - source: "iana" - }, - "application/vnd.wt.stf": { - source: "iana", - extensions: ["stf"] - }, - "application/vnd.wv.csp+wbxml": { - source: "iana" - }, - "application/vnd.wv.csp+xml": { - source: "iana", - compressible: true - }, - "application/vnd.wv.ssp+xml": { - source: "iana", - compressible: true - }, - "application/vnd.xacml+json": { - source: "iana", - compressible: true - }, - "application/vnd.xara": { - source: "iana", - extensions: ["xar"] - }, - "application/vnd.xfdl": { - source: "iana", - extensions: ["xfdl"] - }, - "application/vnd.xfdl.webform": { - source: "iana" - }, - "application/vnd.xmi+xml": { - source: "iana", - compressible: true - }, - "application/vnd.xmpie.cpkg": { - source: "iana" - }, - "application/vnd.xmpie.dpkg": { - source: "iana" - }, - "application/vnd.xmpie.plan": { - source: "iana" - }, - "application/vnd.xmpie.ppkg": { - source: "iana" - }, - "application/vnd.xmpie.xlim": { - source: "iana" - }, - "application/vnd.yamaha.hv-dic": { - source: "iana", - extensions: ["hvd"] - }, - "application/vnd.yamaha.hv-script": { - source: "iana", - extensions: ["hvs"] - }, - "application/vnd.yamaha.hv-voice": { - source: "iana", - extensions: ["hvp"] - }, - "application/vnd.yamaha.openscoreformat": { - source: "iana", - extensions: ["osf"] - }, - "application/vnd.yamaha.openscoreformat.osfpvg+xml": { - source: "iana", - compressible: true, - extensions: ["osfpvg"] - }, - "application/vnd.yamaha.remote-setup": { - source: "iana" - }, - "application/vnd.yamaha.smaf-audio": { - source: "iana", - extensions: ["saf"] - }, - "application/vnd.yamaha.smaf-phrase": { - source: "iana", - extensions: ["spf"] - }, - "application/vnd.yamaha.through-ngn": { - source: "iana" - }, - "application/vnd.yamaha.tunnel-udpencap": { - source: "iana" - }, - "application/vnd.yaoweme": { - source: "iana" - }, - "application/vnd.yellowriver-custom-menu": { - source: "iana", - extensions: ["cmp"] - }, - "application/vnd.youtube.yt": { - source: "iana" - }, - "application/vnd.zul": { - source: "iana", - extensions: ["zir", "zirz"] - }, - "application/vnd.zzazz.deck+xml": { - source: "iana", - compressible: true, - extensions: ["zaz"] - }, - "application/voicexml+xml": { - source: "iana", - compressible: true, - extensions: ["vxml"] - }, - "application/voucher-cms+json": { - source: "iana", - compressible: true - }, - "application/vq-rtcpxr": { - source: "iana" - }, - "application/wasm": { - source: "iana", - compressible: true, - extensions: ["wasm"] - }, - "application/watcherinfo+xml": { - source: "iana", - compressible: true, - extensions: ["wif"] - }, - "application/webpush-options+json": { - source: "iana", - compressible: true - }, - "application/whoispp-query": { - source: "iana" - }, - "application/whoispp-response": { - source: "iana" - }, - "application/widget": { - source: "iana", - extensions: ["wgt"] - }, - "application/winhlp": { - source: "apache", - extensions: ["hlp"] - }, - "application/wita": { - source: "iana" - }, - "application/wordperfect5.1": { - source: "iana" - }, - "application/wsdl+xml": { - source: "iana", - compressible: true, - extensions: ["wsdl"] - }, - "application/wspolicy+xml": { - source: "iana", - compressible: true, - extensions: ["wspolicy"] - }, - "application/x-7z-compressed": { - source: "apache", - compressible: false, - extensions: ["7z"] - }, - "application/x-abiword": { - source: "apache", - extensions: ["abw"] - }, - "application/x-ace-compressed": { - source: "apache", - extensions: ["ace"] - }, - "application/x-amf": { - source: "apache" - }, - "application/x-apple-diskimage": { - source: "apache", - extensions: ["dmg"] - }, - "application/x-arj": { - compressible: false, - extensions: ["arj"] - }, - "application/x-authorware-bin": { - source: "apache", - extensions: ["aab", "x32", "u32", "vox"] - }, - "application/x-authorware-map": { - source: "apache", - extensions: ["aam"] - }, - "application/x-authorware-seg": { - source: "apache", - extensions: ["aas"] - }, - "application/x-bcpio": { - source: "apache", - extensions: ["bcpio"] - }, - "application/x-bdoc": { - compressible: false, - extensions: ["bdoc"] - }, - "application/x-bittorrent": { - source: "apache", - extensions: ["torrent"] - }, - "application/x-blorb": { - source: "apache", - extensions: ["blb", "blorb"] - }, - "application/x-bzip": { - source: "apache", - compressible: false, - extensions: ["bz"] - }, - "application/x-bzip2": { - source: "apache", - compressible: false, - extensions: ["bz2", "boz"] - }, - "application/x-cbr": { - source: "apache", - extensions: ["cbr", "cba", "cbt", "cbz", "cb7"] - }, - "application/x-cdlink": { - source: "apache", - extensions: ["vcd"] - }, - "application/x-cfs-compressed": { - source: "apache", - extensions: ["cfs"] - }, - "application/x-chat": { - source: "apache", - extensions: ["chat"] - }, - "application/x-chess-pgn": { - source: "apache", - extensions: ["pgn"] - }, - "application/x-chrome-extension": { - extensions: ["crx"] - }, - "application/x-cocoa": { - source: "nginx", - extensions: ["cco"] - }, - "application/x-compress": { - source: "apache" - }, - "application/x-conference": { - source: "apache", - extensions: ["nsc"] - }, - "application/x-cpio": { - source: "apache", - extensions: ["cpio"] - }, - "application/x-csh": { - source: "apache", - extensions: ["csh"] - }, - "application/x-deb": { - compressible: false - }, - "application/x-debian-package": { - source: "apache", - extensions: ["deb", "udeb"] - }, - "application/x-dgc-compressed": { - source: "apache", - extensions: ["dgc"] - }, - "application/x-director": { - source: "apache", - extensions: ["dir", "dcr", "dxr", "cst", "cct", "cxt", "w3d", "fgd", "swa"] - }, - "application/x-doom": { - source: "apache", - extensions: ["wad"] - }, - "application/x-dtbncx+xml": { - source: "apache", - compressible: true, - extensions: ["ncx"] - }, - "application/x-dtbook+xml": { - source: "apache", - compressible: true, - extensions: ["dtb"] - }, - "application/x-dtbresource+xml": { - source: "apache", - compressible: true, - extensions: ["res"] - }, - "application/x-dvi": { - source: "apache", - compressible: false, - extensions: ["dvi"] - }, - "application/x-envoy": { - source: "apache", - extensions: ["evy"] - }, - "application/x-eva": { - source: "apache", - extensions: ["eva"] - }, - "application/x-font-bdf": { - source: "apache", - extensions: ["bdf"] - }, - "application/x-font-dos": { - source: "apache" - }, - "application/x-font-framemaker": { - source: "apache" - }, - "application/x-font-ghostscript": { - source: "apache", - extensions: ["gsf"] - }, - "application/x-font-libgrx": { - source: "apache" - }, - "application/x-font-linux-psf": { - source: "apache", - extensions: ["psf"] - }, - "application/x-font-pcf": { - source: "apache", - extensions: ["pcf"] - }, - "application/x-font-snf": { - source: "apache", - extensions: ["snf"] - }, - "application/x-font-speedo": { - source: "apache" - }, - "application/x-font-sunos-news": { - source: "apache" - }, - "application/x-font-type1": { - source: "apache", - extensions: ["pfa", "pfb", "pfm", "afm"] - }, - "application/x-font-vfont": { - source: "apache" - }, - "application/x-freearc": { - source: "apache", - extensions: ["arc"] - }, - "application/x-futuresplash": { - source: "apache", - extensions: ["spl"] - }, - "application/x-gca-compressed": { - source: "apache", - extensions: ["gca"] - }, - "application/x-glulx": { - source: "apache", - extensions: ["ulx"] - }, - "application/x-gnumeric": { - source: "apache", - extensions: ["gnumeric"] - }, - "application/x-gramps-xml": { - source: "apache", - extensions: ["gramps"] - }, - "application/x-gtar": { - source: "apache", - extensions: ["gtar"] - }, - "application/x-gzip": { - source: "apache" - }, - "application/x-hdf": { - source: "apache", - extensions: ["hdf"] - }, - "application/x-httpd-php": { - compressible: true, - extensions: ["php"] - }, - "application/x-install-instructions": { - source: "apache", - extensions: ["install"] - }, - "application/x-iso9660-image": { - source: "apache", - extensions: ["iso"] - }, - "application/x-iwork-keynote-sffkey": { - extensions: ["key"] - }, - "application/x-iwork-numbers-sffnumbers": { - extensions: ["numbers"] - }, - "application/x-iwork-pages-sffpages": { - extensions: ["pages"] - }, - "application/x-java-archive-diff": { - source: "nginx", - extensions: ["jardiff"] - }, - "application/x-java-jnlp-file": { - source: "apache", - compressible: false, - extensions: ["jnlp"] - }, - "application/x-javascript": { - compressible: true - }, - "application/x-keepass2": { - extensions: ["kdbx"] - }, - "application/x-latex": { - source: "apache", - compressible: false, - extensions: ["latex"] - }, - "application/x-lua-bytecode": { - extensions: ["luac"] - }, - "application/x-lzh-compressed": { - source: "apache", - extensions: ["lzh", "lha"] - }, - "application/x-makeself": { - source: "nginx", - extensions: ["run"] - }, - "application/x-mie": { - source: "apache", - extensions: ["mie"] - }, - "application/x-mobipocket-ebook": { - source: "apache", - extensions: ["prc", "mobi"] - }, - "application/x-mpegurl": { - compressible: false - }, - "application/x-ms-application": { - source: "apache", - extensions: ["application"] - }, - "application/x-ms-shortcut": { - source: "apache", - extensions: ["lnk"] - }, - "application/x-ms-wmd": { - source: "apache", - extensions: ["wmd"] - }, - "application/x-ms-wmz": { - source: "apache", - extensions: ["wmz"] - }, - "application/x-ms-xbap": { - source: "apache", - extensions: ["xbap"] - }, - "application/x-msaccess": { - source: "apache", - extensions: ["mdb"] - }, - "application/x-msbinder": { - source: "apache", - extensions: ["obd"] - }, - "application/x-mscardfile": { - source: "apache", - extensions: ["crd"] - }, - "application/x-msclip": { - source: "apache", - extensions: ["clp"] - }, - "application/x-msdos-program": { - extensions: ["exe"] - }, - "application/x-msdownload": { - source: "apache", - extensions: ["exe", "dll", "com", "bat", "msi"] - }, - "application/x-msmediaview": { - source: "apache", - extensions: ["mvb", "m13", "m14"] - }, - "application/x-msmetafile": { - source: "apache", - extensions: ["wmf", "wmz", "emf", "emz"] - }, - "application/x-msmoney": { - source: "apache", - extensions: ["mny"] - }, - "application/x-mspublisher": { - source: "apache", - extensions: ["pub"] - }, - "application/x-msschedule": { - source: "apache", - extensions: ["scd"] - }, - "application/x-msterminal": { - source: "apache", - extensions: ["trm"] - }, - "application/x-mswrite": { - source: "apache", - extensions: ["wri"] - }, - "application/x-netcdf": { - source: "apache", - extensions: ["nc", "cdf"] - }, - "application/x-ns-proxy-autoconfig": { - compressible: true, - extensions: ["pac"] - }, - "application/x-nzb": { - source: "apache", - extensions: ["nzb"] - }, - "application/x-perl": { - source: "nginx", - extensions: ["pl", "pm"] - }, - "application/x-pilot": { - source: "nginx", - extensions: ["prc", "pdb"] - }, - "application/x-pkcs12": { - source: "apache", - compressible: false, - extensions: ["p12", "pfx"] - }, - "application/x-pkcs7-certificates": { - source: "apache", - extensions: ["p7b", "spc"] - }, - "application/x-pkcs7-certreqresp": { - source: "apache", - extensions: ["p7r"] - }, - "application/x-pki-message": { - source: "iana" - }, - "application/x-rar-compressed": { - source: "apache", - compressible: false, - extensions: ["rar"] - }, - "application/x-redhat-package-manager": { - source: "nginx", - extensions: ["rpm"] - }, - "application/x-research-info-systems": { - source: "apache", - extensions: ["ris"] - }, - "application/x-sea": { - source: "nginx", - extensions: ["sea"] - }, - "application/x-sh": { - source: "apache", - compressible: true, - extensions: ["sh"] - }, - "application/x-shar": { - source: "apache", - extensions: ["shar"] - }, - "application/x-shockwave-flash": { - source: "apache", - compressible: false, - extensions: ["swf"] - }, - "application/x-silverlight-app": { - source: "apache", - extensions: ["xap"] - }, - "application/x-sql": { - source: "apache", - extensions: ["sql"] - }, - "application/x-stuffit": { - source: "apache", - compressible: false, - extensions: ["sit"] - }, - "application/x-stuffitx": { - source: "apache", - extensions: ["sitx"] - }, - "application/x-subrip": { - source: "apache", - extensions: ["srt"] - }, - "application/x-sv4cpio": { - source: "apache", - extensions: ["sv4cpio"] - }, - "application/x-sv4crc": { - source: "apache", - extensions: ["sv4crc"] - }, - "application/x-t3vm-image": { - source: "apache", - extensions: ["t3"] - }, - "application/x-tads": { - source: "apache", - extensions: ["gam"] - }, - "application/x-tar": { - source: "apache", - compressible: true, - extensions: ["tar"] - }, - "application/x-tcl": { - source: "apache", - extensions: ["tcl", "tk"] - }, - "application/x-tex": { - source: "apache", - extensions: ["tex"] - }, - "application/x-tex-tfm": { - source: "apache", - extensions: ["tfm"] - }, - "application/x-texinfo": { - source: "apache", - extensions: ["texinfo", "texi"] - }, - "application/x-tgif": { - source: "apache", - extensions: ["obj"] - }, - "application/x-ustar": { - source: "apache", - extensions: ["ustar"] - }, - "application/x-virtualbox-hdd": { - compressible: true, - extensions: ["hdd"] - }, - "application/x-virtualbox-ova": { - compressible: true, - extensions: ["ova"] - }, - "application/x-virtualbox-ovf": { - compressible: true, - extensions: ["ovf"] - }, - "application/x-virtualbox-vbox": { - compressible: true, - extensions: ["vbox"] - }, - "application/x-virtualbox-vbox-extpack": { - compressible: false, - extensions: ["vbox-extpack"] - }, - "application/x-virtualbox-vdi": { - compressible: true, - extensions: ["vdi"] - }, - "application/x-virtualbox-vhd": { - compressible: true, - extensions: ["vhd"] - }, - "application/x-virtualbox-vmdk": { - compressible: true, - extensions: ["vmdk"] - }, - "application/x-wais-source": { - source: "apache", - extensions: ["src"] - }, - "application/x-web-app-manifest+json": { - compressible: true, - extensions: ["webapp"] - }, - "application/x-www-form-urlencoded": { - source: "iana", - compressible: true - }, - "application/x-x509-ca-cert": { - source: "iana", - extensions: ["der", "crt", "pem"] - }, - "application/x-x509-ca-ra-cert": { - source: "iana" - }, - "application/x-x509-next-ca-cert": { - source: "iana" - }, - "application/x-xfig": { - source: "apache", - extensions: ["fig"] - }, - "application/x-xliff+xml": { - source: "apache", - compressible: true, - extensions: ["xlf"] - }, - "application/x-xpinstall": { - source: "apache", - compressible: false, - extensions: ["xpi"] - }, - "application/x-xz": { - source: "apache", - extensions: ["xz"] - }, - "application/x-zmachine": { - source: "apache", - extensions: ["z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8"] - }, - "application/x400-bp": { - source: "iana" - }, - "application/xacml+xml": { - source: "iana", - compressible: true - }, - "application/xaml+xml": { - source: "apache", - compressible: true, - extensions: ["xaml"] - }, - "application/xcap-att+xml": { - source: "iana", - compressible: true, - extensions: ["xav"] - }, - "application/xcap-caps+xml": { - source: "iana", - compressible: true, - extensions: ["xca"] - }, - "application/xcap-diff+xml": { - source: "iana", - compressible: true, - extensions: ["xdf"] - }, - "application/xcap-el+xml": { - source: "iana", - compressible: true, - extensions: ["xel"] - }, - "application/xcap-error+xml": { - source: "iana", - compressible: true - }, - "application/xcap-ns+xml": { - source: "iana", - compressible: true, - extensions: ["xns"] - }, - "application/xcon-conference-info+xml": { - source: "iana", - compressible: true - }, - "application/xcon-conference-info-diff+xml": { - source: "iana", - compressible: true - }, - "application/xenc+xml": { - source: "iana", - compressible: true, - extensions: ["xenc"] - }, - "application/xhtml+xml": { - source: "iana", - compressible: true, - extensions: ["xhtml", "xht"] - }, - "application/xhtml-voice+xml": { - source: "apache", - compressible: true - }, - "application/xliff+xml": { - source: "iana", - compressible: true, - extensions: ["xlf"] - }, - "application/xml": { - source: "iana", - compressible: true, - extensions: ["xml", "xsl", "xsd", "rng"] - }, - "application/xml-dtd": { - source: "iana", - compressible: true, - extensions: ["dtd"] - }, - "application/xml-external-parsed-entity": { - source: "iana" - }, - "application/xml-patch+xml": { - source: "iana", - compressible: true - }, - "application/xmpp+xml": { - source: "iana", - compressible: true - }, - "application/xop+xml": { - source: "iana", - compressible: true, - extensions: ["xop"] - }, - "application/xproc+xml": { - source: "apache", - compressible: true, - extensions: ["xpl"] - }, - "application/xslt+xml": { - source: "iana", - compressible: true, - extensions: ["xsl", "xslt"] - }, - "application/xspf+xml": { - source: "apache", - compressible: true, - extensions: ["xspf"] - }, - "application/xv+xml": { - source: "iana", - compressible: true, - extensions: ["mxml", "xhvml", "xvml", "xvm"] - }, - "application/yang": { - source: "iana", - extensions: ["yang"] - }, - "application/yang-data+json": { - source: "iana", - compressible: true - }, - "application/yang-data+xml": { - source: "iana", - compressible: true - }, - "application/yang-patch+json": { - source: "iana", - compressible: true - }, - "application/yang-patch+xml": { - source: "iana", - compressible: true - }, - "application/yin+xml": { - source: "iana", - compressible: true, - extensions: ["yin"] - }, - "application/zip": { - source: "iana", - compressible: false, - extensions: ["zip"] - }, - "application/zlib": { - source: "iana" - }, - "application/zstd": { - source: "iana" - }, - "audio/1d-interleaved-parityfec": { - source: "iana" - }, - "audio/32kadpcm": { - source: "iana" - }, - "audio/3gpp": { - source: "iana", - compressible: false, - extensions: ["3gpp"] - }, - "audio/3gpp2": { - source: "iana" - }, - "audio/aac": { - source: "iana" - }, - "audio/ac3": { - source: "iana" - }, - "audio/adpcm": { - source: "apache", - extensions: ["adp"] - }, - "audio/amr": { - source: "iana", - extensions: ["amr"] - }, - "audio/amr-wb": { - source: "iana" - }, - "audio/amr-wb+": { - source: "iana" - }, - "audio/aptx": { - source: "iana" - }, - "audio/asc": { - source: "iana" - }, - "audio/atrac-advanced-lossless": { - source: "iana" - }, - "audio/atrac-x": { - source: "iana" - }, - "audio/atrac3": { - source: "iana" - }, - "audio/basic": { - source: "iana", - compressible: false, - extensions: ["au", "snd"] - }, - "audio/bv16": { - source: "iana" - }, - "audio/bv32": { - source: "iana" - }, - "audio/clearmode": { - source: "iana" - }, - "audio/cn": { - source: "iana" - }, - "audio/dat12": { - source: "iana" - }, - "audio/dls": { - source: "iana" - }, - "audio/dsr-es201108": { - source: "iana" - }, - "audio/dsr-es202050": { - source: "iana" - }, - "audio/dsr-es202211": { - source: "iana" - }, - "audio/dsr-es202212": { - source: "iana" - }, - "audio/dv": { - source: "iana" - }, - "audio/dvi4": { - source: "iana" - }, - "audio/eac3": { - source: "iana" - }, - "audio/encaprtp": { - source: "iana" - }, - "audio/evrc": { - source: "iana" - }, - "audio/evrc-qcp": { - source: "iana" - }, - "audio/evrc0": { - source: "iana" - }, - "audio/evrc1": { - source: "iana" - }, - "audio/evrcb": { - source: "iana" - }, - "audio/evrcb0": { - source: "iana" - }, - "audio/evrcb1": { - source: "iana" - }, - "audio/evrcnw": { - source: "iana" - }, - "audio/evrcnw0": { - source: "iana" - }, - "audio/evrcnw1": { - source: "iana" - }, - "audio/evrcwb": { - source: "iana" - }, - "audio/evrcwb0": { - source: "iana" - }, - "audio/evrcwb1": { - source: "iana" - }, - "audio/evs": { - source: "iana" - }, - "audio/flexfec": { - source: "iana" - }, - "audio/fwdred": { - source: "iana" - }, - "audio/g711-0": { - source: "iana" - }, - "audio/g719": { - source: "iana" - }, - "audio/g722": { - source: "iana" - }, - "audio/g7221": { - source: "iana" - }, - "audio/g723": { - source: "iana" - }, - "audio/g726-16": { - source: "iana" - }, - "audio/g726-24": { - source: "iana" - }, - "audio/g726-32": { - source: "iana" - }, - "audio/g726-40": { - source: "iana" - }, - "audio/g728": { - source: "iana" - }, - "audio/g729": { - source: "iana" - }, - "audio/g7291": { - source: "iana" - }, - "audio/g729d": { - source: "iana" - }, - "audio/g729e": { - source: "iana" - }, - "audio/gsm": { - source: "iana" - }, - "audio/gsm-efr": { - source: "iana" - }, - "audio/gsm-hr-08": { - source: "iana" - }, - "audio/ilbc": { - source: "iana" - }, - "audio/ip-mr_v2.5": { - source: "iana" - }, - "audio/isac": { - source: "apache" - }, - "audio/l16": { - source: "iana" - }, - "audio/l20": { - source: "iana" - }, - "audio/l24": { - source: "iana", - compressible: false - }, - "audio/l8": { - source: "iana" - }, - "audio/lpc": { - source: "iana" - }, - "audio/melp": { - source: "iana" - }, - "audio/melp1200": { - source: "iana" - }, - "audio/melp2400": { - source: "iana" - }, - "audio/melp600": { - source: "iana" - }, - "audio/mhas": { - source: "iana" - }, - "audio/midi": { - source: "apache", - extensions: ["mid", "midi", "kar", "rmi"] - }, - "audio/mobile-xmf": { - source: "iana", - extensions: ["mxmf"] - }, - "audio/mp3": { - compressible: false, - extensions: ["mp3"] - }, - "audio/mp4": { - source: "iana", - compressible: false, - extensions: ["m4a", "mp4a"] - }, - "audio/mp4a-latm": { - source: "iana" - }, - "audio/mpa": { - source: "iana" - }, - "audio/mpa-robust": { - source: "iana" - }, - "audio/mpeg": { - source: "iana", - compressible: false, - extensions: ["mpga", "mp2", "mp2a", "mp3", "m2a", "m3a"] - }, - "audio/mpeg4-generic": { - source: "iana" - }, - "audio/musepack": { - source: "apache" - }, - "audio/ogg": { - source: "iana", - compressible: false, - extensions: ["oga", "ogg", "spx", "opus"] - }, - "audio/opus": { - source: "iana" - }, - "audio/parityfec": { - source: "iana" - }, - "audio/pcma": { - source: "iana" - }, - "audio/pcma-wb": { - source: "iana" - }, - "audio/pcmu": { - source: "iana" - }, - "audio/pcmu-wb": { - source: "iana" - }, - "audio/prs.sid": { - source: "iana" - }, - "audio/qcelp": { - source: "iana" - }, - "audio/raptorfec": { - source: "iana" - }, - "audio/red": { - source: "iana" - }, - "audio/rtp-enc-aescm128": { - source: "iana" - }, - "audio/rtp-midi": { - source: "iana" - }, - "audio/rtploopback": { - source: "iana" - }, - "audio/rtx": { - source: "iana" - }, - "audio/s3m": { - source: "apache", - extensions: ["s3m"] - }, - "audio/scip": { - source: "iana" - }, - "audio/silk": { - source: "apache", - extensions: ["sil"] - }, - "audio/smv": { - source: "iana" - }, - "audio/smv-qcp": { - source: "iana" - }, - "audio/smv0": { - source: "iana" - }, - "audio/sofa": { - source: "iana" - }, - "audio/sp-midi": { - source: "iana" - }, - "audio/speex": { - source: "iana" - }, - "audio/t140c": { - source: "iana" - }, - "audio/t38": { - source: "iana" - }, - "audio/telephone-event": { - source: "iana" - }, - "audio/tetra_acelp": { - source: "iana" - }, - "audio/tetra_acelp_bb": { - source: "iana" - }, - "audio/tone": { - source: "iana" - }, - "audio/tsvcis": { - source: "iana" - }, - "audio/uemclip": { - source: "iana" - }, - "audio/ulpfec": { - source: "iana" - }, - "audio/usac": { - source: "iana" - }, - "audio/vdvi": { - source: "iana" - }, - "audio/vmr-wb": { - source: "iana" - }, - "audio/vnd.3gpp.iufp": { - source: "iana" - }, - "audio/vnd.4sb": { - source: "iana" - }, - "audio/vnd.audiokoz": { - source: "iana" - }, - "audio/vnd.celp": { - source: "iana" - }, - "audio/vnd.cisco.nse": { - source: "iana" - }, - "audio/vnd.cmles.radio-events": { - source: "iana" - }, - "audio/vnd.cns.anp1": { - source: "iana" - }, - "audio/vnd.cns.inf1": { - source: "iana" - }, - "audio/vnd.dece.audio": { - source: "iana", - extensions: ["uva", "uvva"] - }, - "audio/vnd.digital-winds": { - source: "iana", - extensions: ["eol"] - }, - "audio/vnd.dlna.adts": { - source: "iana" - }, - "audio/vnd.dolby.heaac.1": { - source: "iana" - }, - "audio/vnd.dolby.heaac.2": { - source: "iana" - }, - "audio/vnd.dolby.mlp": { - source: "iana" - }, - "audio/vnd.dolby.mps": { - source: "iana" - }, - "audio/vnd.dolby.pl2": { - source: "iana" - }, - "audio/vnd.dolby.pl2x": { - source: "iana" - }, - "audio/vnd.dolby.pl2z": { - source: "iana" - }, - "audio/vnd.dolby.pulse.1": { - source: "iana" - }, - "audio/vnd.dra": { - source: "iana", - extensions: ["dra"] - }, - "audio/vnd.dts": { - source: "iana", - extensions: ["dts"] - }, - "audio/vnd.dts.hd": { - source: "iana", - extensions: ["dtshd"] - }, - "audio/vnd.dts.uhd": { - source: "iana" - }, - "audio/vnd.dvb.file": { - source: "iana" - }, - "audio/vnd.everad.plj": { - source: "iana" - }, - "audio/vnd.hns.audio": { - source: "iana" - }, - "audio/vnd.lucent.voice": { - source: "iana", - extensions: ["lvp"] - }, - "audio/vnd.ms-playready.media.pya": { - source: "iana", - extensions: ["pya"] - }, - "audio/vnd.nokia.mobile-xmf": { - source: "iana" - }, - "audio/vnd.nortel.vbk": { - source: "iana" - }, - "audio/vnd.nuera.ecelp4800": { - source: "iana", - extensions: ["ecelp4800"] - }, - "audio/vnd.nuera.ecelp7470": { - source: "iana", - extensions: ["ecelp7470"] - }, - "audio/vnd.nuera.ecelp9600": { - source: "iana", - extensions: ["ecelp9600"] - }, - "audio/vnd.octel.sbc": { - source: "iana" - }, - "audio/vnd.presonus.multitrack": { - source: "iana" - }, - "audio/vnd.qcelp": { - source: "iana" - }, - "audio/vnd.rhetorex.32kadpcm": { - source: "iana" - }, - "audio/vnd.rip": { - source: "iana", - extensions: ["rip"] - }, - "audio/vnd.rn-realaudio": { - compressible: false - }, - "audio/vnd.sealedmedia.softseal.mpeg": { - source: "iana" - }, - "audio/vnd.vmx.cvsd": { - source: "iana" - }, - "audio/vnd.wave": { - compressible: false - }, - "audio/vorbis": { - source: "iana", - compressible: false - }, - "audio/vorbis-config": { - source: "iana" - }, - "audio/wav": { - compressible: false, - extensions: ["wav"] - }, - "audio/wave": { - compressible: false, - extensions: ["wav"] - }, - "audio/webm": { - source: "apache", - compressible: false, - extensions: ["weba"] - }, - "audio/x-aac": { - source: "apache", - compressible: false, - extensions: ["aac"] - }, - "audio/x-aiff": { - source: "apache", - extensions: ["aif", "aiff", "aifc"] - }, - "audio/x-caf": { - source: "apache", - compressible: false, - extensions: ["caf"] - }, - "audio/x-flac": { - source: "apache", - extensions: ["flac"] - }, - "audio/x-m4a": { - source: "nginx", - extensions: ["m4a"] - }, - "audio/x-matroska": { - source: "apache", - extensions: ["mka"] - }, - "audio/x-mpegurl": { - source: "apache", - extensions: ["m3u"] - }, - "audio/x-ms-wax": { - source: "apache", - extensions: ["wax"] - }, - "audio/x-ms-wma": { - source: "apache", - extensions: ["wma"] - }, - "audio/x-pn-realaudio": { - source: "apache", - extensions: ["ram", "ra"] - }, - "audio/x-pn-realaudio-plugin": { - source: "apache", - extensions: ["rmp"] - }, - "audio/x-realaudio": { - source: "nginx", - extensions: ["ra"] - }, - "audio/x-tta": { - source: "apache" - }, - "audio/x-wav": { - source: "apache", - extensions: ["wav"] - }, - "audio/xm": { - source: "apache", - extensions: ["xm"] - }, - "chemical/x-cdx": { - source: "apache", - extensions: ["cdx"] - }, - "chemical/x-cif": { - source: "apache", - extensions: ["cif"] - }, - "chemical/x-cmdf": { - source: "apache", - extensions: ["cmdf"] - }, - "chemical/x-cml": { - source: "apache", - extensions: ["cml"] - }, - "chemical/x-csml": { - source: "apache", - extensions: ["csml"] - }, - "chemical/x-pdb": { - source: "apache" - }, - "chemical/x-xyz": { - source: "apache", - extensions: ["xyz"] - }, - "font/collection": { - source: "iana", - extensions: ["ttc"] - }, - "font/otf": { - source: "iana", - compressible: true, - extensions: ["otf"] - }, - "font/sfnt": { - source: "iana" - }, - "font/ttf": { - source: "iana", - compressible: true, - extensions: ["ttf"] - }, - "font/woff": { - source: "iana", - extensions: ["woff"] - }, - "font/woff2": { - source: "iana", - extensions: ["woff2"] - }, - "image/aces": { - source: "iana", - extensions: ["exr"] - }, - "image/apng": { - compressible: false, - extensions: ["apng"] - }, - "image/avci": { - source: "iana", - extensions: ["avci"] - }, - "image/avcs": { - source: "iana", - extensions: ["avcs"] - }, - "image/avif": { - source: "iana", - compressible: false, - extensions: ["avif"] - }, - "image/bmp": { - source: "iana", - compressible: true, - extensions: ["bmp"] - }, - "image/cgm": { - source: "iana", - extensions: ["cgm"] - }, - "image/dicom-rle": { - source: "iana", - extensions: ["drle"] - }, - "image/emf": { - source: "iana", - extensions: ["emf"] - }, - "image/fits": { - source: "iana", - extensions: ["fits"] - }, - "image/g3fax": { - source: "iana", - extensions: ["g3"] - }, - "image/gif": { - source: "iana", - compressible: false, - extensions: ["gif"] - }, - "image/heic": { - source: "iana", - extensions: ["heic"] - }, - "image/heic-sequence": { - source: "iana", - extensions: ["heics"] - }, - "image/heif": { - source: "iana", - extensions: ["heif"] - }, - "image/heif-sequence": { - source: "iana", - extensions: ["heifs"] - }, - "image/hej2k": { - source: "iana", - extensions: ["hej2"] - }, - "image/hsj2": { - source: "iana", - extensions: ["hsj2"] - }, - "image/ief": { - source: "iana", - extensions: ["ief"] - }, - "image/jls": { - source: "iana", - extensions: ["jls"] - }, - "image/jp2": { - source: "iana", - compressible: false, - extensions: ["jp2", "jpg2"] - }, - "image/jpeg": { - source: "iana", - compressible: false, - extensions: ["jpeg", "jpg", "jpe"] - }, - "image/jph": { - source: "iana", - extensions: ["jph"] - }, - "image/jphc": { - source: "iana", - extensions: ["jhc"] - }, - "image/jpm": { - source: "iana", - compressible: false, - extensions: ["jpm"] - }, - "image/jpx": { - source: "iana", - compressible: false, - extensions: ["jpx", "jpf"] - }, - "image/jxr": { - source: "iana", - extensions: ["jxr"] - }, - "image/jxra": { - source: "iana", - extensions: ["jxra"] - }, - "image/jxrs": { - source: "iana", - extensions: ["jxrs"] - }, - "image/jxs": { - source: "iana", - extensions: ["jxs"] - }, - "image/jxsc": { - source: "iana", - extensions: ["jxsc"] - }, - "image/jxsi": { - source: "iana", - extensions: ["jxsi"] - }, - "image/jxss": { - source: "iana", - extensions: ["jxss"] - }, - "image/ktx": { - source: "iana", - extensions: ["ktx"] - }, - "image/ktx2": { - source: "iana", - extensions: ["ktx2"] - }, - "image/naplps": { - source: "iana" - }, - "image/pjpeg": { - compressible: false - }, - "image/png": { - source: "iana", - compressible: false, - extensions: ["png"] - }, - "image/prs.btif": { - source: "iana", - extensions: ["btif"] - }, - "image/prs.pti": { - source: "iana", - extensions: ["pti"] - }, - "image/pwg-raster": { - source: "iana" - }, - "image/sgi": { - source: "apache", - extensions: ["sgi"] - }, - "image/svg+xml": { - source: "iana", - compressible: true, - extensions: ["svg", "svgz"] - }, - "image/t38": { - source: "iana", - extensions: ["t38"] - }, - "image/tiff": { - source: "iana", - compressible: false, - extensions: ["tif", "tiff"] - }, - "image/tiff-fx": { - source: "iana", - extensions: ["tfx"] - }, - "image/vnd.adobe.photoshop": { - source: "iana", - compressible: true, - extensions: ["psd"] - }, - "image/vnd.airzip.accelerator.azv": { - source: "iana", - extensions: ["azv"] - }, - "image/vnd.cns.inf2": { - source: "iana" - }, - "image/vnd.dece.graphic": { - source: "iana", - extensions: ["uvi", "uvvi", "uvg", "uvvg"] - }, - "image/vnd.djvu": { - source: "iana", - extensions: ["djvu", "djv"] - }, - "image/vnd.dvb.subtitle": { - source: "iana", - extensions: ["sub"] - }, - "image/vnd.dwg": { - source: "iana", - extensions: ["dwg"] - }, - "image/vnd.dxf": { - source: "iana", - extensions: ["dxf"] - }, - "image/vnd.fastbidsheet": { - source: "iana", - extensions: ["fbs"] - }, - "image/vnd.fpx": { - source: "iana", - extensions: ["fpx"] - }, - "image/vnd.fst": { - source: "iana", - extensions: ["fst"] - }, - "image/vnd.fujixerox.edmics-mmr": { - source: "iana", - extensions: ["mmr"] - }, - "image/vnd.fujixerox.edmics-rlc": { - source: "iana", - extensions: ["rlc"] - }, - "image/vnd.globalgraphics.pgb": { - source: "iana" - }, - "image/vnd.microsoft.icon": { - source: "iana", - compressible: true, - extensions: ["ico"] - }, - "image/vnd.mix": { - source: "iana" - }, - "image/vnd.mozilla.apng": { - source: "iana" - }, - "image/vnd.ms-dds": { - compressible: true, - extensions: ["dds"] - }, - "image/vnd.ms-modi": { - source: "iana", - extensions: ["mdi"] - }, - "image/vnd.ms-photo": { - source: "apache", - extensions: ["wdp"] - }, - "image/vnd.net-fpx": { - source: "iana", - extensions: ["npx"] - }, - "image/vnd.pco.b16": { - source: "iana", - extensions: ["b16"] - }, - "image/vnd.radiance": { - source: "iana" - }, - "image/vnd.sealed.png": { - source: "iana" - }, - "image/vnd.sealedmedia.softseal.gif": { - source: "iana" - }, - "image/vnd.sealedmedia.softseal.jpg": { - source: "iana" - }, - "image/vnd.svf": { - source: "iana" - }, - "image/vnd.tencent.tap": { - source: "iana", - extensions: ["tap"] - }, - "image/vnd.valve.source.texture": { - source: "iana", - extensions: ["vtf"] - }, - "image/vnd.wap.wbmp": { - source: "iana", - extensions: ["wbmp"] - }, - "image/vnd.xiff": { - source: "iana", - extensions: ["xif"] - }, - "image/vnd.zbrush.pcx": { - source: "iana", - extensions: ["pcx"] - }, - "image/webp": { - source: "apache", - extensions: ["webp"] - }, - "image/wmf": { - source: "iana", - extensions: ["wmf"] - }, - "image/x-3ds": { - source: "apache", - extensions: ["3ds"] - }, - "image/x-cmu-raster": { - source: "apache", - extensions: ["ras"] - }, - "image/x-cmx": { - source: "apache", - extensions: ["cmx"] - }, - "image/x-freehand": { - source: "apache", - extensions: ["fh", "fhc", "fh4", "fh5", "fh7"] - }, - "image/x-icon": { - source: "apache", - compressible: true, - extensions: ["ico"] - }, - "image/x-jng": { - source: "nginx", - extensions: ["jng"] - }, - "image/x-mrsid-image": { - source: "apache", - extensions: ["sid"] - }, - "image/x-ms-bmp": { - source: "nginx", - compressible: true, - extensions: ["bmp"] - }, - "image/x-pcx": { - source: "apache", - extensions: ["pcx"] - }, - "image/x-pict": { - source: "apache", - extensions: ["pic", "pct"] - }, - "image/x-portable-anymap": { - source: "apache", - extensions: ["pnm"] - }, - "image/x-portable-bitmap": { - source: "apache", - extensions: ["pbm"] - }, - "image/x-portable-graymap": { - source: "apache", - extensions: ["pgm"] - }, - "image/x-portable-pixmap": { - source: "apache", - extensions: ["ppm"] - }, - "image/x-rgb": { - source: "apache", - extensions: ["rgb"] - }, - "image/x-tga": { - source: "apache", - extensions: ["tga"] - }, - "image/x-xbitmap": { - source: "apache", - extensions: ["xbm"] - }, - "image/x-xcf": { - compressible: false - }, - "image/x-xpixmap": { - source: "apache", - extensions: ["xpm"] - }, - "image/x-xwindowdump": { - source: "apache", - extensions: ["xwd"] - }, - "message/cpim": { - source: "iana" - }, - "message/delivery-status": { - source: "iana" - }, - "message/disposition-notification": { - source: "iana", - extensions: [ - "disposition-notification" - ] - }, - "message/external-body": { - source: "iana" - }, - "message/feedback-report": { - source: "iana" - }, - "message/global": { - source: "iana", - extensions: ["u8msg"] - }, - "message/global-delivery-status": { - source: "iana", - extensions: ["u8dsn"] - }, - "message/global-disposition-notification": { - source: "iana", - extensions: ["u8mdn"] - }, - "message/global-headers": { - source: "iana", - extensions: ["u8hdr"] - }, - "message/http": { - source: "iana", - compressible: false - }, - "message/imdn+xml": { - source: "iana", - compressible: true - }, - "message/news": { - source: "iana" - }, - "message/partial": { - source: "iana", - compressible: false - }, - "message/rfc822": { - source: "iana", - compressible: true, - extensions: ["eml", "mime"] - }, - "message/s-http": { - source: "iana" - }, - "message/sip": { - source: "iana" - }, - "message/sipfrag": { - source: "iana" - }, - "message/tracking-status": { - source: "iana" - }, - "message/vnd.si.simp": { - source: "iana" - }, - "message/vnd.wfa.wsc": { - source: "iana", - extensions: ["wsc"] - }, - "model/3mf": { - source: "iana", - extensions: ["3mf"] - }, - "model/e57": { - source: "iana" - }, - "model/gltf+json": { - source: "iana", - compressible: true, - extensions: ["gltf"] - }, - "model/gltf-binary": { - source: "iana", - compressible: true, - extensions: ["glb"] - }, - "model/iges": { - source: "iana", - compressible: false, - extensions: ["igs", "iges"] - }, - "model/mesh": { - source: "iana", - compressible: false, - extensions: ["msh", "mesh", "silo"] - }, - "model/mtl": { - source: "iana", - extensions: ["mtl"] - }, - "model/obj": { - source: "iana", - extensions: ["obj"] - }, - "model/step": { - source: "iana" - }, - "model/step+xml": { - source: "iana", - compressible: true, - extensions: ["stpx"] - }, - "model/step+zip": { - source: "iana", - compressible: false, - extensions: ["stpz"] - }, - "model/step-xml+zip": { - source: "iana", - compressible: false, - extensions: ["stpxz"] - }, - "model/stl": { - source: "iana", - extensions: ["stl"] - }, - "model/vnd.collada+xml": { - source: "iana", - compressible: true, - extensions: ["dae"] - }, - "model/vnd.dwf": { - source: "iana", - extensions: ["dwf"] - }, - "model/vnd.flatland.3dml": { - source: "iana" - }, - "model/vnd.gdl": { - source: "iana", - extensions: ["gdl"] - }, - "model/vnd.gs-gdl": { - source: "apache" - }, - "model/vnd.gs.gdl": { - source: "iana" - }, - "model/vnd.gtw": { - source: "iana", - extensions: ["gtw"] - }, - "model/vnd.moml+xml": { - source: "iana", - compressible: true - }, - "model/vnd.mts": { - source: "iana", - extensions: ["mts"] - }, - "model/vnd.opengex": { - source: "iana", - extensions: ["ogex"] - }, - "model/vnd.parasolid.transmit.binary": { - source: "iana", - extensions: ["x_b"] - }, - "model/vnd.parasolid.transmit.text": { - source: "iana", - extensions: ["x_t"] - }, - "model/vnd.pytha.pyox": { - source: "iana" - }, - "model/vnd.rosette.annotated-data-model": { - source: "iana" - }, - "model/vnd.sap.vds": { - source: "iana", - extensions: ["vds"] - }, - "model/vnd.usdz+zip": { - source: "iana", - compressible: false, - extensions: ["usdz"] - }, - "model/vnd.valve.source.compiled-map": { - source: "iana", - extensions: ["bsp"] - }, - "model/vnd.vtu": { - source: "iana", - extensions: ["vtu"] - }, - "model/vrml": { - source: "iana", - compressible: false, - extensions: ["wrl", "vrml"] - }, - "model/x3d+binary": { - source: "apache", - compressible: false, - extensions: ["x3db", "x3dbz"] - }, - "model/x3d+fastinfoset": { - source: "iana", - extensions: ["x3db"] - }, - "model/x3d+vrml": { - source: "apache", - compressible: false, - extensions: ["x3dv", "x3dvz"] - }, - "model/x3d+xml": { - source: "iana", - compressible: true, - extensions: ["x3d", "x3dz"] - }, - "model/x3d-vrml": { - source: "iana", - extensions: ["x3dv"] - }, - "multipart/alternative": { - source: "iana", - compressible: false - }, - "multipart/appledouble": { - source: "iana" - }, - "multipart/byteranges": { - source: "iana" - }, - "multipart/digest": { - source: "iana" - }, - "multipart/encrypted": { - source: "iana", - compressible: false - }, - "multipart/form-data": { - source: "iana", - compressible: false - }, - "multipart/header-set": { - source: "iana" - }, - "multipart/mixed": { - source: "iana" - }, - "multipart/multilingual": { - source: "iana" - }, - "multipart/parallel": { - source: "iana" - }, - "multipart/related": { - source: "iana", - compressible: false - }, - "multipart/report": { - source: "iana" - }, - "multipart/signed": { - source: "iana", - compressible: false - }, - "multipart/vnd.bint.med-plus": { - source: "iana" - }, - "multipart/voice-message": { - source: "iana" - }, - "multipart/x-mixed-replace": { - source: "iana" - }, - "text/1d-interleaved-parityfec": { - source: "iana" - }, - "text/cache-manifest": { - source: "iana", - compressible: true, - extensions: ["appcache", "manifest"] - }, - "text/calendar": { - source: "iana", - extensions: ["ics", "ifb"] - }, - "text/calender": { - compressible: true - }, - "text/cmd": { - compressible: true - }, - "text/coffeescript": { - extensions: ["coffee", "litcoffee"] - }, - "text/cql": { - source: "iana" - }, - "text/cql-expression": { - source: "iana" - }, - "text/cql-identifier": { - source: "iana" - }, - "text/css": { - source: "iana", - charset: "UTF-8", - compressible: true, - extensions: ["css"] - }, - "text/csv": { - source: "iana", - compressible: true, - extensions: ["csv"] - }, - "text/csv-schema": { - source: "iana" - }, - "text/directory": { - source: "iana" - }, - "text/dns": { - source: "iana" - }, - "text/ecmascript": { - source: "iana" - }, - "text/encaprtp": { - source: "iana" - }, - "text/enriched": { - source: "iana" - }, - "text/fhirpath": { - source: "iana" - }, - "text/flexfec": { - source: "iana" - }, - "text/fwdred": { - source: "iana" - }, - "text/gff3": { - source: "iana" - }, - "text/grammar-ref-list": { - source: "iana" - }, - "text/html": { - source: "iana", - compressible: true, - extensions: ["html", "htm", "shtml"] - }, - "text/jade": { - extensions: ["jade"] - }, - "text/javascript": { - source: "iana", - compressible: true - }, - "text/jcr-cnd": { - source: "iana" - }, - "text/jsx": { - compressible: true, - extensions: ["jsx"] - }, - "text/less": { - compressible: true, - extensions: ["less"] - }, - "text/markdown": { - source: "iana", - compressible: true, - extensions: ["markdown", "md"] - }, - "text/mathml": { - source: "nginx", - extensions: ["mml"] - }, - "text/mdx": { - compressible: true, - extensions: ["mdx"] - }, - "text/mizar": { - source: "iana" - }, - "text/n3": { - source: "iana", - charset: "UTF-8", - compressible: true, - extensions: ["n3"] - }, - "text/parameters": { - source: "iana", - charset: "UTF-8" - }, - "text/parityfec": { - source: "iana" - }, - "text/plain": { - source: "iana", - compressible: true, - extensions: ["txt", "text", "conf", "def", "list", "log", "in", "ini"] - }, - "text/provenance-notation": { - source: "iana", - charset: "UTF-8" - }, - "text/prs.fallenstein.rst": { - source: "iana" - }, - "text/prs.lines.tag": { - source: "iana", - extensions: ["dsc"] - }, - "text/prs.prop.logic": { - source: "iana" - }, - "text/raptorfec": { - source: "iana" - }, - "text/red": { - source: "iana" - }, - "text/rfc822-headers": { - source: "iana" - }, - "text/richtext": { - source: "iana", - compressible: true, - extensions: ["rtx"] - }, - "text/rtf": { - source: "iana", - compressible: true, - extensions: ["rtf"] - }, - "text/rtp-enc-aescm128": { - source: "iana" - }, - "text/rtploopback": { - source: "iana" - }, - "text/rtx": { - source: "iana" - }, - "text/sgml": { - source: "iana", - extensions: ["sgml", "sgm"] - }, - "text/shaclc": { - source: "iana" - }, - "text/shex": { - source: "iana", - extensions: ["shex"] - }, - "text/slim": { - extensions: ["slim", "slm"] - }, - "text/spdx": { - source: "iana", - extensions: ["spdx"] - }, - "text/strings": { - source: "iana" - }, - "text/stylus": { - extensions: ["stylus", "styl"] - }, - "text/t140": { - source: "iana" - }, - "text/tab-separated-values": { - source: "iana", - compressible: true, - extensions: ["tsv"] - }, - "text/troff": { - source: "iana", - extensions: ["t", "tr", "roff", "man", "me", "ms"] - }, - "text/turtle": { - source: "iana", - charset: "UTF-8", - extensions: ["ttl"] - }, - "text/ulpfec": { - source: "iana" - }, - "text/uri-list": { - source: "iana", - compressible: true, - extensions: ["uri", "uris", "urls"] - }, - "text/vcard": { - source: "iana", - compressible: true, - extensions: ["vcard"] - }, - "text/vnd.a": { - source: "iana" - }, - "text/vnd.abc": { - source: "iana" - }, - "text/vnd.ascii-art": { - source: "iana" - }, - "text/vnd.curl": { - source: "iana", - extensions: ["curl"] - }, - "text/vnd.curl.dcurl": { - source: "apache", - extensions: ["dcurl"] - }, - "text/vnd.curl.mcurl": { - source: "apache", - extensions: ["mcurl"] - }, - "text/vnd.curl.scurl": { - source: "apache", - extensions: ["scurl"] - }, - "text/vnd.debian.copyright": { - source: "iana", - charset: "UTF-8" - }, - "text/vnd.dmclientscript": { - source: "iana" - }, - "text/vnd.dvb.subtitle": { - source: "iana", - extensions: ["sub"] - }, - "text/vnd.esmertec.theme-descriptor": { - source: "iana", - charset: "UTF-8" - }, - "text/vnd.familysearch.gedcom": { - source: "iana", - extensions: ["ged"] - }, - "text/vnd.ficlab.flt": { - source: "iana" - }, - "text/vnd.fly": { - source: "iana", - extensions: ["fly"] - }, - "text/vnd.fmi.flexstor": { - source: "iana", - extensions: ["flx"] - }, - "text/vnd.gml": { - source: "iana" - }, - "text/vnd.graphviz": { - source: "iana", - extensions: ["gv"] - }, - "text/vnd.hans": { - source: "iana" - }, - "text/vnd.hgl": { - source: "iana" - }, - "text/vnd.in3d.3dml": { - source: "iana", - extensions: ["3dml"] - }, - "text/vnd.in3d.spot": { - source: "iana", - extensions: ["spot"] - }, - "text/vnd.iptc.newsml": { - source: "iana" - }, - "text/vnd.iptc.nitf": { - source: "iana" - }, - "text/vnd.latex-z": { - source: "iana" - }, - "text/vnd.motorola.reflex": { - source: "iana" - }, - "text/vnd.ms-mediapackage": { - source: "iana" - }, - "text/vnd.net2phone.commcenter.command": { - source: "iana" - }, - "text/vnd.radisys.msml-basic-layout": { - source: "iana" - }, - "text/vnd.senx.warpscript": { - source: "iana" - }, - "text/vnd.si.uricatalogue": { - source: "iana" - }, - "text/vnd.sosi": { - source: "iana" - }, - "text/vnd.sun.j2me.app-descriptor": { - source: "iana", - charset: "UTF-8", - extensions: ["jad"] - }, - "text/vnd.trolltech.linguist": { - source: "iana", - charset: "UTF-8" - }, - "text/vnd.wap.si": { - source: "iana" - }, - "text/vnd.wap.sl": { - source: "iana" - }, - "text/vnd.wap.wml": { - source: "iana", - extensions: ["wml"] - }, - "text/vnd.wap.wmlscript": { - source: "iana", - extensions: ["wmls"] - }, - "text/vtt": { - source: "iana", - charset: "UTF-8", - compressible: true, - extensions: ["vtt"] - }, - "text/x-asm": { - source: "apache", - extensions: ["s", "asm"] - }, - "text/x-c": { - source: "apache", - extensions: ["c", "cc", "cxx", "cpp", "h", "hh", "dic"] - }, - "text/x-component": { - source: "nginx", - extensions: ["htc"] - }, - "text/x-fortran": { - source: "apache", - extensions: ["f", "for", "f77", "f90"] - }, - "text/x-gwt-rpc": { - compressible: true - }, - "text/x-handlebars-template": { - extensions: ["hbs"] - }, - "text/x-java-source": { - source: "apache", - extensions: ["java"] - }, - "text/x-jquery-tmpl": { - compressible: true - }, - "text/x-lua": { - extensions: ["lua"] - }, - "text/x-markdown": { - compressible: true, - extensions: ["mkd"] - }, - "text/x-nfo": { - source: "apache", - extensions: ["nfo"] - }, - "text/x-opml": { - source: "apache", - extensions: ["opml"] - }, - "text/x-org": { - compressible: true, - extensions: ["org"] - }, - "text/x-pascal": { - source: "apache", - extensions: ["p", "pas"] - }, - "text/x-processing": { - compressible: true, - extensions: ["pde"] - }, - "text/x-sass": { - extensions: ["sass"] - }, - "text/x-scss": { - extensions: ["scss"] - }, - "text/x-setext": { - source: "apache", - extensions: ["etx"] - }, - "text/x-sfv": { - source: "apache", - extensions: ["sfv"] - }, - "text/x-suse-ymp": { - compressible: true, - extensions: ["ymp"] - }, - "text/x-uuencode": { - source: "apache", - extensions: ["uu"] - }, - "text/x-vcalendar": { - source: "apache", - extensions: ["vcs"] - }, - "text/x-vcard": { - source: "apache", - extensions: ["vcf"] - }, - "text/xml": { - source: "iana", - compressible: true, - extensions: ["xml"] - }, - "text/xml-external-parsed-entity": { - source: "iana" - }, - "text/yaml": { - compressible: true, - extensions: ["yaml", "yml"] - }, - "video/1d-interleaved-parityfec": { - source: "iana" - }, - "video/3gpp": { - source: "iana", - extensions: ["3gp", "3gpp"] - }, - "video/3gpp-tt": { - source: "iana" - }, - "video/3gpp2": { - source: "iana", - extensions: ["3g2"] - }, - "video/av1": { - source: "iana" - }, - "video/bmpeg": { - source: "iana" - }, - "video/bt656": { - source: "iana" - }, - "video/celb": { - source: "iana" - }, - "video/dv": { - source: "iana" - }, - "video/encaprtp": { - source: "iana" - }, - "video/ffv1": { - source: "iana" - }, - "video/flexfec": { - source: "iana" - }, - "video/h261": { - source: "iana", - extensions: ["h261"] - }, - "video/h263": { - source: "iana", - extensions: ["h263"] - }, - "video/h263-1998": { - source: "iana" - }, - "video/h263-2000": { - source: "iana" - }, - "video/h264": { - source: "iana", - extensions: ["h264"] - }, - "video/h264-rcdo": { - source: "iana" - }, - "video/h264-svc": { - source: "iana" - }, - "video/h265": { - source: "iana" - }, - "video/iso.segment": { - source: "iana", - extensions: ["m4s"] - }, - "video/jpeg": { - source: "iana", - extensions: ["jpgv"] - }, - "video/jpeg2000": { - source: "iana" - }, - "video/jpm": { - source: "apache", - extensions: ["jpm", "jpgm"] - }, - "video/jxsv": { - source: "iana" - }, - "video/mj2": { - source: "iana", - extensions: ["mj2", "mjp2"] - }, - "video/mp1s": { - source: "iana" - }, - "video/mp2p": { - source: "iana" - }, - "video/mp2t": { - source: "iana", - extensions: ["ts"] - }, - "video/mp4": { - source: "iana", - compressible: false, - extensions: ["mp4", "mp4v", "mpg4"] - }, - "video/mp4v-es": { - source: "iana" - }, - "video/mpeg": { - source: "iana", - compressible: false, - extensions: ["mpeg", "mpg", "mpe", "m1v", "m2v"] - }, - "video/mpeg4-generic": { - source: "iana" - }, - "video/mpv": { - source: "iana" - }, - "video/nv": { - source: "iana" - }, - "video/ogg": { - source: "iana", - compressible: false, - extensions: ["ogv"] - }, - "video/parityfec": { - source: "iana" - }, - "video/pointer": { - source: "iana" - }, - "video/quicktime": { - source: "iana", - compressible: false, - extensions: ["qt", "mov"] - }, - "video/raptorfec": { - source: "iana" - }, - "video/raw": { - source: "iana" - }, - "video/rtp-enc-aescm128": { - source: "iana" - }, - "video/rtploopback": { - source: "iana" - }, - "video/rtx": { - source: "iana" - }, - "video/scip": { - source: "iana" - }, - "video/smpte291": { - source: "iana" - }, - "video/smpte292m": { - source: "iana" - }, - "video/ulpfec": { - source: "iana" - }, - "video/vc1": { - source: "iana" - }, - "video/vc2": { - source: "iana" - }, - "video/vnd.cctv": { - source: "iana" - }, - "video/vnd.dece.hd": { - source: "iana", - extensions: ["uvh", "uvvh"] - }, - "video/vnd.dece.mobile": { - source: "iana", - extensions: ["uvm", "uvvm"] - }, - "video/vnd.dece.mp4": { - source: "iana" - }, - "video/vnd.dece.pd": { - source: "iana", - extensions: ["uvp", "uvvp"] - }, - "video/vnd.dece.sd": { - source: "iana", - extensions: ["uvs", "uvvs"] - }, - "video/vnd.dece.video": { - source: "iana", - extensions: ["uvv", "uvvv"] - }, - "video/vnd.directv.mpeg": { - source: "iana" - }, - "video/vnd.directv.mpeg-tts": { - source: "iana" - }, - "video/vnd.dlna.mpeg-tts": { - source: "iana" - }, - "video/vnd.dvb.file": { - source: "iana", - extensions: ["dvb"] - }, - "video/vnd.fvt": { - source: "iana", - extensions: ["fvt"] - }, - "video/vnd.hns.video": { - source: "iana" - }, - "video/vnd.iptvforum.1dparityfec-1010": { - source: "iana" - }, - "video/vnd.iptvforum.1dparityfec-2005": { - source: "iana" - }, - "video/vnd.iptvforum.2dparityfec-1010": { - source: "iana" - }, - "video/vnd.iptvforum.2dparityfec-2005": { - source: "iana" - }, - "video/vnd.iptvforum.ttsavc": { - source: "iana" - }, - "video/vnd.iptvforum.ttsmpeg2": { - source: "iana" - }, - "video/vnd.motorola.video": { - source: "iana" - }, - "video/vnd.motorola.videop": { - source: "iana" - }, - "video/vnd.mpegurl": { - source: "iana", - extensions: ["mxu", "m4u"] - }, - "video/vnd.ms-playready.media.pyv": { - source: "iana", - extensions: ["pyv"] - }, - "video/vnd.nokia.interleaved-multimedia": { - source: "iana" - }, - "video/vnd.nokia.mp4vr": { - source: "iana" - }, - "video/vnd.nokia.videovoip": { - source: "iana" - }, - "video/vnd.objectvideo": { - source: "iana" - }, - "video/vnd.radgamettools.bink": { - source: "iana" - }, - "video/vnd.radgamettools.smacker": { - source: "iana" - }, - "video/vnd.sealed.mpeg1": { - source: "iana" - }, - "video/vnd.sealed.mpeg4": { - source: "iana" - }, - "video/vnd.sealed.swf": { - source: "iana" - }, - "video/vnd.sealedmedia.softseal.mov": { - source: "iana" - }, - "video/vnd.uvvu.mp4": { - source: "iana", - extensions: ["uvu", "uvvu"] - }, - "video/vnd.vivo": { - source: "iana", - extensions: ["viv"] - }, - "video/vnd.youtube.yt": { - source: "iana" - }, - "video/vp8": { - source: "iana" - }, - "video/vp9": { - source: "iana" - }, - "video/webm": { - source: "apache", - compressible: false, - extensions: ["webm"] - }, - "video/x-f4v": { - source: "apache", - extensions: ["f4v"] - }, - "video/x-fli": { - source: "apache", - extensions: ["fli"] - }, - "video/x-flv": { - source: "apache", - compressible: false, - extensions: ["flv"] - }, - "video/x-m4v": { - source: "apache", - extensions: ["m4v"] - }, - "video/x-matroska": { - source: "apache", - compressible: false, - extensions: ["mkv", "mk3d", "mks"] - }, - "video/x-mng": { - source: "apache", - extensions: ["mng"] - }, - "video/x-ms-asf": { - source: "apache", - extensions: ["asf", "asx"] - }, - "video/x-ms-vob": { - source: "apache", - extensions: ["vob"] - }, - "video/x-ms-wm": { - source: "apache", - extensions: ["wm"] - }, - "video/x-ms-wmv": { - source: "apache", - compressible: false, - extensions: ["wmv"] - }, - "video/x-ms-wmx": { - source: "apache", - extensions: ["wmx"] - }, - "video/x-ms-wvx": { - source: "apache", - extensions: ["wvx"] - }, - "video/x-msvideo": { - source: "apache", - extensions: ["avi"] - }, - "video/x-sgi-movie": { - source: "apache", - extensions: ["movie"] - }, - "video/x-smv": { - source: "apache", - extensions: ["smv"] - }, - "x-conference/x-cooltalk": { - source: "apache", - extensions: ["ice"] - }, - "x-shader/x-fragment": { - compressible: true - }, - "x-shader/x-vertex": { - compressible: true - } - }; -}); - -// node_modules/mime-types/index.js -var require_mime_types = __commonJS((exports) => { - /*! - * mime-types - * Copyright(c) 2014 Jonathan Ong - * Copyright(c) 2015 Douglas Christopher Wilson - * MIT Licensed - */ - var db = require_db(); - var extname = __require("path").extname; - var EXTRACT_TYPE_REGEXP = /^\s*([^;\s]*)(?:;|\s|$)/; - var TEXT_TYPE_REGEXP = /^text\//i; - exports.charset = charset; - exports.charsets = { lookup: charset }; - exports.contentType = contentType; - exports.extension = extension; - exports.extensions = Object.create(null); - exports.lookup = lookup; - exports.types = Object.create(null); - populateMaps(exports.extensions, exports.types); - function charset(type) { - if (!type || typeof type !== "string") { - return false; - } - var match = EXTRACT_TYPE_REGEXP.exec(type); - var mime = match && db[match[1].toLowerCase()]; - if (mime && mime.charset) { - return mime.charset; - } - if (match && TEXT_TYPE_REGEXP.test(match[1])) { - return "UTF-8"; - } - return false; - } - function contentType(str) { - if (!str || typeof str !== "string") { - return false; - } - var mime = str.indexOf("/") === -1 ? exports.lookup(str) : str; - if (!mime) { - return false; - } - if (mime.indexOf("charset") === -1) { - var charset2 = exports.charset(mime); - if (charset2) - mime += "; charset=" + charset2.toLowerCase(); - } - return mime; - } - function extension(type) { - if (!type || typeof type !== "string") { - return false; - } - var match = EXTRACT_TYPE_REGEXP.exec(type); - var exts = match && exports.extensions[match[1].toLowerCase()]; - if (!exts || !exts.length) { - return false; - } - return exts[0]; - } - function lookup(path8) { - if (!path8 || typeof path8 !== "string") { - return false; - } - var extension2 = extname("x." + path8).toLowerCase().substr(1); - if (!extension2) { - return false; - } - return exports.types[extension2] || false; - } - function populateMaps(extensions, types) { - var preference = ["nginx", "apache", undefined, "iana"]; - Object.keys(db).forEach(function forEachMimeType(type) { - var mime = db[type]; - var exts = mime.extensions; - if (!exts || !exts.length) { - return; - } - extensions[type] = exts; - for (var i = 0;i < exts.length; i++) { - var extension2 = exts[i]; - if (types[extension2]) { - var from = preference.indexOf(db[types[extension2]].source); - var to = preference.indexOf(mime.source); - if (types[extension2] !== "application/octet-stream" && (from > to || from === to && types[extension2].substr(0, 12) === "application/")) { - continue; - } - } - types[extension2] = type; - } - }); - } -}); - -// node_modules/type-is/index.js -var require_type_is = __commonJS((exports, module) => { - /*! - * type-is - * Copyright(c) 2014 Jonathan Ong - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - */ - var typer = require_media_typer(); - var mime = require_mime_types(); - module.exports = typeofrequest; - module.exports.is = typeis; - module.exports.hasBody = hasbody; - module.exports.normalize = normalize; - module.exports.match = mimeMatch; - function typeis(value, types_) { - var i; - var types = types_; - var val = tryNormalizeType(value); - if (!val) { - return false; - } - if (types && !Array.isArray(types)) { - types = new Array(arguments.length - 1); - for (i = 0;i < types.length; i++) { - types[i] = arguments[i + 1]; - } - } - if (!types || !types.length) { - return val; - } - var type; - for (i = 0;i < types.length; i++) { - if (mimeMatch(normalize(type = types[i]), val)) { - return type[0] === "+" || type.indexOf("*") !== -1 ? val : type; - } - } - return false; - } - function hasbody(req) { - return req.headers["transfer-encoding"] !== undefined || !isNaN(req.headers["content-length"]); - } - function typeofrequest(req, types_) { - var types = types_; - if (!hasbody(req)) { - return null; - } - if (arguments.length > 2) { - types = new Array(arguments.length - 1); - for (var i = 0;i < types.length; i++) { - types[i] = arguments[i + 1]; - } - } - var value = req.headers["content-type"]; - return typeis(value, types); - } - function normalize(type) { - if (typeof type !== "string") { - return false; - } - switch (type) { - case "urlencoded": - return "application/x-www-form-urlencoded"; - case "multipart": - return "multipart/*"; - } - if (type[0] === "+") { - return "*/*" + type; - } - return type.indexOf("/") === -1 ? mime.lookup(type) : type; - } - function mimeMatch(expected, actual) { - if (expected === false) { - return false; - } - var actualParts = actual.split("/"); - var expectedParts = expected.split("/"); - if (actualParts.length !== 2 || expectedParts.length !== 2) { - return false; - } - if (expectedParts[0] !== "*" && expectedParts[0] !== actualParts[0]) { - return false; - } - if (expectedParts[1].substr(0, 2) === "*+") { - return expectedParts[1].length <= actualParts[1].length + 1 && expectedParts[1].substr(1) === actualParts[1].substr(1 - expectedParts[1].length); - } - if (expectedParts[1] !== "*" && expectedParts[1] !== actualParts[1]) { - return false; - } - return true; - } - function normalizeType(value) { - var type = typer.parse(value); - type.parameters = undefined; - return typer.format(type); - } - function tryNormalizeType(value) { - if (!value) { - return null; - } - try { - return normalizeType(value); - } catch (err) { - return null; - } - } -}); - -// node_modules/body-parser/lib/types/json.js -var require_json = __commonJS((exports, module) => { - /*! - * body-parser - * Copyright(c) 2014 Jonathan Ong - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - */ - var bytes = require_bytes(); - var contentType = require_content_type(); - var createError = require_http_errors(); - var debug = require_src()("body-parser:json"); - var read = require_read(); - var typeis = require_type_is(); - module.exports = json; - var FIRST_CHAR_REGEXP = /^[\x20\x09\x0a\x0d]*([^\x20\x09\x0a\x0d])/; - var JSON_SYNTAX_CHAR = "#"; - var JSON_SYNTAX_REGEXP = /#+/g; - function json(options) { - var opts = options || {}; - var limit = typeof opts.limit !== "number" ? bytes.parse(opts.limit || "100kb") : opts.limit; - var inflate = opts.inflate !== false; - var reviver = opts.reviver; - var strict = opts.strict !== false; - var type = opts.type || "application/json"; - var verify = opts.verify || false; - if (verify !== false && typeof verify !== "function") { - throw new TypeError("option verify must be function"); - } - var shouldParse = typeof type !== "function" ? typeChecker(type) : type; - function parse5(body) { - if (body.length === 0) { - return {}; - } - if (strict) { - var first = firstchar(body); - if (first !== "{" && first !== "[") { - debug("strict violation"); - throw createStrictSyntaxError(body, first); - } - } - try { - debug("parse json"); - return JSON.parse(body, reviver); - } catch (e) { - throw normalizeJsonSyntaxError(e, { - message: e.message, - stack: e.stack - }); - } - } - return function jsonParser(req, res, next) { - if (req._body) { - debug("body already parsed"); - next(); - return; - } - req.body = req.body || {}; - if (!typeis.hasBody(req)) { - debug("skip empty body"); - next(); - return; - } - debug("content-type %j", req.headers["content-type"]); - if (!shouldParse(req)) { - debug("skip parsing"); - next(); - return; - } - var charset = getCharset(req) || "utf-8"; - if (charset.slice(0, 4) !== "utf-") { - debug("invalid charset"); - next(createError(415, 'unsupported charset "' + charset.toUpperCase() + '"', { - charset, - type: "charset.unsupported" - })); - return; - } - read(req, res, next, parse5, debug, { - encoding: charset, - inflate, - limit, - verify - }); - }; - } - function createStrictSyntaxError(str, char) { - var index = str.indexOf(char); - var partial2 = ""; - if (index !== -1) { - partial2 = str.substring(0, index) + JSON_SYNTAX_CHAR; - for (var i = index + 1;i < str.length; i++) { - partial2 += JSON_SYNTAX_CHAR; - } - } - try { - JSON.parse(partial2); - throw new SyntaxError("strict violation"); - } catch (e) { - return normalizeJsonSyntaxError(e, { - message: e.message.replace(JSON_SYNTAX_REGEXP, function(placeholder) { - return str.substring(index, index + placeholder.length); - }), - stack: e.stack - }); - } - } - function firstchar(str) { - var match = FIRST_CHAR_REGEXP.exec(str); - return match ? match[1] : undefined; - } - function getCharset(req) { - try { - return (contentType.parse(req).parameters.charset || "").toLowerCase(); - } catch (e) { - return; - } - } - function normalizeJsonSyntaxError(error2, obj) { - var keys = Object.getOwnPropertyNames(error2); - for (var i = 0;i < keys.length; i++) { - var key = keys[i]; - if (key !== "stack" && key !== "message") { - delete error2[key]; - } - } - error2.stack = obj.stack.replace(error2.message, obj.message); - error2.message = obj.message; - return error2; - } - function typeChecker(type) { - return function checkType(req) { - return Boolean(typeis(req, type)); - }; - } -}); - -// node_modules/body-parser/lib/types/raw.js -var require_raw = __commonJS((exports, module) => { - /*! - * body-parser - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - */ - var bytes = require_bytes(); - var debug = require_src()("body-parser:raw"); - var read = require_read(); - var typeis = require_type_is(); - module.exports = raw; - function raw(options) { - var opts = options || {}; - var inflate = opts.inflate !== false; - var limit = typeof opts.limit !== "number" ? bytes.parse(opts.limit || "100kb") : opts.limit; - var type = opts.type || "application/octet-stream"; - var verify = opts.verify || false; - if (verify !== false && typeof verify !== "function") { - throw new TypeError("option verify must be function"); - } - var shouldParse = typeof type !== "function" ? typeChecker(type) : type; - function parse5(buf) { - return buf; - } - return function rawParser(req, res, next) { - if (req._body) { - debug("body already parsed"); - next(); - return; - } - req.body = req.body || {}; - if (!typeis.hasBody(req)) { - debug("skip empty body"); - next(); - return; - } - debug("content-type %j", req.headers["content-type"]); - if (!shouldParse(req)) { - debug("skip parsing"); - next(); - return; - } - read(req, res, next, parse5, debug, { - encoding: null, - inflate, - limit, - verify - }); - }; - } - function typeChecker(type) { - return function checkType(req) { - return Boolean(typeis(req, type)); - }; - } -}); - -// node_modules/body-parser/lib/types/text.js -var require_text = __commonJS((exports, module) => { - /*! - * body-parser - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - */ - var bytes = require_bytes(); - var contentType = require_content_type(); - var debug = require_src()("body-parser:text"); - var read = require_read(); - var typeis = require_type_is(); - module.exports = text; - function text(options) { - var opts = options || {}; - var defaultCharset = opts.defaultCharset || "utf-8"; - var inflate = opts.inflate !== false; - var limit = typeof opts.limit !== "number" ? bytes.parse(opts.limit || "100kb") : opts.limit; - var type = opts.type || "text/plain"; - var verify = opts.verify || false; - if (verify !== false && typeof verify !== "function") { - throw new TypeError("option verify must be function"); - } - var shouldParse = typeof type !== "function" ? typeChecker(type) : type; - function parse5(buf) { - return buf; - } - return function textParser(req, res, next) { - if (req._body) { - debug("body already parsed"); - next(); - return; - } - req.body = req.body || {}; - if (!typeis.hasBody(req)) { - debug("skip empty body"); - next(); - return; - } - debug("content-type %j", req.headers["content-type"]); - if (!shouldParse(req)) { - debug("skip parsing"); - next(); - return; - } - var charset = getCharset(req) || defaultCharset; - read(req, res, next, parse5, debug, { - encoding: charset, - inflate, - limit, - verify - }); - }; - } - function getCharset(req) { - try { - return (contentType.parse(req).parameters.charset || "").toLowerCase(); - } catch (e) { - return; - } - } - function typeChecker(type) { - return function checkType(req) { - return Boolean(typeis(req, type)); - }; - } -}); - -// node_modules/es-errors/type.js -var require_type = __commonJS((exports, module) => { - module.exports = TypeError; -}); - -// node_modules/object-inspect/util.inspect.js -var require_util_inspect = __commonJS((exports, module) => { - module.exports = __require("util").inspect; -}); - -// node_modules/object-inspect/index.js -var require_object_inspect = __commonJS((exports, module) => { - var hasMap = typeof Map === "function" && Map.prototype; - var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null; - var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === "function" ? mapSizeDescriptor.get : null; - var mapForEach = hasMap && Map.prototype.forEach; - var hasSet = typeof Set === "function" && Set.prototype; - var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null; - var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === "function" ? setSizeDescriptor.get : null; - var setForEach = hasSet && Set.prototype.forEach; - var hasWeakMap = typeof WeakMap === "function" && WeakMap.prototype; - var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null; - var hasWeakSet = typeof WeakSet === "function" && WeakSet.prototype; - var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null; - var hasWeakRef = typeof WeakRef === "function" && WeakRef.prototype; - var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null; - var booleanValueOf = Boolean.prototype.valueOf; - var objectToString = Object.prototype.toString; - var functionToString = Function.prototype.toString; - var $match = String.prototype.match; - var $slice = String.prototype.slice; - var $replace = String.prototype.replace; - var $toUpperCase = String.prototype.toUpperCase; - var $toLowerCase = String.prototype.toLowerCase; - var $test = RegExp.prototype.test; - var $concat = Array.prototype.concat; - var $join = Array.prototype.join; - var $arrSlice = Array.prototype.slice; - var $floor = Math.floor; - var bigIntValueOf = typeof BigInt === "function" ? BigInt.prototype.valueOf : null; - var gOPS = Object.getOwnPropertySymbols; - var symToString = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? Symbol.prototype.toString : null; - var hasShammedSymbols = typeof Symbol === "function" && typeof Symbol.iterator === "object"; - var toStringTag = typeof Symbol === "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? "object" : "symbol") ? Symbol.toStringTag : null; - var isEnumerable = Object.prototype.propertyIsEnumerable; - var gPO = (typeof Reflect === "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(O) { - return O.__proto__; - } : null); - function addNumericSeparator(num, str) { - if (num === Infinity || num === -Infinity || num !== num || num && num > -1000 && num < 1000 || $test.call(/e/, str)) { - return str; - } - var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g; - if (typeof num === "number") { - var int2 = num < 0 ? -$floor(-num) : $floor(num); - if (int2 !== num) { - var intStr = String(int2); - var dec = $slice.call(str, intStr.length + 1); - return $replace.call(intStr, sepRegex, "$&_") + "." + $replace.call($replace.call(dec, /([0-9]{3})/g, "$&_"), /_$/, ""); - } - } - return $replace.call(str, sepRegex, "$&_"); - } - var utilInspect = require_util_inspect(); - var inspectCustom = utilInspect.custom; - var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null; - var quotes = { - __proto__: null, - double: '"', - single: "'" - }; - var quoteREs = { - __proto__: null, - double: /(["\\])/g, - single: /(['\\])/g - }; - module.exports = function inspect_(obj, options, depth, seen) { - var opts = options || {}; - if (has(opts, "quoteStyle") && !has(quotes, opts.quoteStyle)) { - throw new TypeError('option "quoteStyle" must be "single" or "double"'); - } - if (has(opts, "maxStringLength") && (typeof opts.maxStringLength === "number" ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity : opts.maxStringLength !== null)) { - throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`'); - } - var customInspect = has(opts, "customInspect") ? opts.customInspect : true; - if (typeof customInspect !== "boolean" && customInspect !== "symbol") { - throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`"); - } - if (has(opts, "indent") && opts.indent !== null && opts.indent !== "\t" && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)) { - throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`'); - } - if (has(opts, "numericSeparator") && typeof opts.numericSeparator !== "boolean") { - throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`'); - } - var numericSeparator = opts.numericSeparator; - if (typeof obj === "undefined") { - return "undefined"; - } - if (obj === null) { - return "null"; - } - if (typeof obj === "boolean") { - return obj ? "true" : "false"; - } - if (typeof obj === "string") { - return inspectString(obj, opts); - } - if (typeof obj === "number") { - if (obj === 0) { - return Infinity / obj > 0 ? "0" : "-0"; - } - var str = String(obj); - return numericSeparator ? addNumericSeparator(obj, str) : str; - } - if (typeof obj === "bigint") { - var bigIntStr = String(obj) + "n"; - return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr; - } - var maxDepth = typeof opts.depth === "undefined" ? 5 : opts.depth; - if (typeof depth === "undefined") { - depth = 0; - } - if (depth >= maxDepth && maxDepth > 0 && typeof obj === "object") { - return isArray(obj) ? "[Array]" : "[Object]"; - } - var indent = getIndent(opts, depth); - if (typeof seen === "undefined") { - seen = []; - } else if (indexOf(seen, obj) >= 0) { - return "[Circular]"; - } - function inspect(value, from, noIndent) { - if (from) { - seen = $arrSlice.call(seen); - seen.push(from); - } - if (noIndent) { - var newOpts = { - depth: opts.depth - }; - if (has(opts, "quoteStyle")) { - newOpts.quoteStyle = opts.quoteStyle; - } - return inspect_(value, newOpts, depth + 1, seen); - } - return inspect_(value, opts, depth + 1, seen); - } - if (typeof obj === "function" && !isRegExp(obj)) { - var name = nameOf(obj); - var keys = arrObjKeys(obj, inspect); - return "[Function" + (name ? ": " + name : " (anonymous)") + "]" + (keys.length > 0 ? " { " + $join.call(keys, ", ") + " }" : ""); - } - if (isSymbol(obj)) { - var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, "$1") : symToString.call(obj); - return typeof obj === "object" && !hasShammedSymbols ? markBoxed(symString) : symString; - } - if (isElement(obj)) { - var s = "<" + $toLowerCase.call(String(obj.nodeName)); - var attrs = obj.attributes || []; - for (var i = 0;i < attrs.length; i++) { - s += " " + attrs[i].name + "=" + wrapQuotes(quote(attrs[i].value), "double", opts); - } - s += ">"; - if (obj.childNodes && obj.childNodes.length) { - s += "..."; - } - s += ""; - return s; - } - if (isArray(obj)) { - if (obj.length === 0) { - return "[]"; - } - var xs = arrObjKeys(obj, inspect); - if (indent && !singleLineValues(xs)) { - return "[" + indentedJoin(xs, indent) + "]"; - } - return "[ " + $join.call(xs, ", ") + " ]"; - } - if (isError(obj)) { - var parts = arrObjKeys(obj, inspect); - if (!("cause" in Error.prototype) && "cause" in obj && !isEnumerable.call(obj, "cause")) { - return "{ [" + String(obj) + "] " + $join.call($concat.call("[cause]: " + inspect(obj.cause), parts), ", ") + " }"; - } - if (parts.length === 0) { - return "[" + String(obj) + "]"; - } - return "{ [" + String(obj) + "] " + $join.call(parts, ", ") + " }"; - } - if (typeof obj === "object" && customInspect) { - if (inspectSymbol && typeof obj[inspectSymbol] === "function" && utilInspect) { - return utilInspect(obj, { depth: maxDepth - depth }); - } else if (customInspect !== "symbol" && typeof obj.inspect === "function") { - return obj.inspect(); - } - } - if (isMap(obj)) { - var mapParts = []; - if (mapForEach) { - mapForEach.call(obj, function(value, key) { - mapParts.push(inspect(key, obj, true) + " => " + inspect(value, obj)); - }); - } - return collectionOf("Map", mapSize.call(obj), mapParts, indent); - } - if (isSet(obj)) { - var setParts = []; - if (setForEach) { - setForEach.call(obj, function(value) { - setParts.push(inspect(value, obj)); - }); - } - return collectionOf("Set", setSize.call(obj), setParts, indent); - } - if (isWeakMap(obj)) { - return weakCollectionOf("WeakMap"); - } - if (isWeakSet(obj)) { - return weakCollectionOf("WeakSet"); - } - if (isWeakRef(obj)) { - return weakCollectionOf("WeakRef"); - } - if (isNumber(obj)) { - return markBoxed(inspect(Number(obj))); - } - if (isBigInt(obj)) { - return markBoxed(inspect(bigIntValueOf.call(obj))); - } - if (isBoolean(obj)) { - return markBoxed(booleanValueOf.call(obj)); - } - if (isString(obj)) { - return markBoxed(inspect(String(obj))); - } - if (typeof window !== "undefined" && obj === window) { - return "{ [object Window] }"; - } - if (typeof globalThis !== "undefined" && obj === globalThis || typeof global !== "undefined" && obj === global) { - return "{ [object globalThis] }"; - } - if (!isDate(obj) && !isRegExp(obj)) { - var ys = arrObjKeys(obj, inspect); - var isPlainObject3 = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object; - var protoTag = obj instanceof Object ? "" : "null prototype"; - var stringTag = !isPlainObject3 && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? "Object" : ""; - var constructorTag = isPlainObject3 || typeof obj.constructor !== "function" ? "" : obj.constructor.name ? obj.constructor.name + " " : ""; - var tag = constructorTag + (stringTag || protoTag ? "[" + $join.call($concat.call([], stringTag || [], protoTag || []), ": ") + "] " : ""); - if (ys.length === 0) { - return tag + "{}"; - } - if (indent) { - return tag + "{" + indentedJoin(ys, indent) + "}"; - } - return tag + "{ " + $join.call(ys, ", ") + " }"; - } - return String(obj); - }; - function wrapQuotes(s, defaultStyle, opts) { - var style = opts.quoteStyle || defaultStyle; - var quoteChar = quotes[style]; - return quoteChar + s + quoteChar; - } - function quote(s) { - return $replace.call(String(s), /"/g, """); - } - function canTrustToString(obj) { - return !toStringTag || !(typeof obj === "object" && ((toStringTag in obj) || typeof obj[toStringTag] !== "undefined")); - } - function isArray(obj) { - return toStr(obj) === "[object Array]" && canTrustToString(obj); - } - function isDate(obj) { - return toStr(obj) === "[object Date]" && canTrustToString(obj); - } - function isRegExp(obj) { - return toStr(obj) === "[object RegExp]" && canTrustToString(obj); - } - function isError(obj) { - return toStr(obj) === "[object Error]" && canTrustToString(obj); - } - function isString(obj) { - return toStr(obj) === "[object String]" && canTrustToString(obj); - } - function isNumber(obj) { - return toStr(obj) === "[object Number]" && canTrustToString(obj); - } - function isBoolean(obj) { - return toStr(obj) === "[object Boolean]" && canTrustToString(obj); - } - function isSymbol(obj) { - if (hasShammedSymbols) { - return obj && typeof obj === "object" && obj instanceof Symbol; - } - if (typeof obj === "symbol") { - return true; - } - if (!obj || typeof obj !== "object" || !symToString) { - return false; - } - try { - symToString.call(obj); - return true; - } catch (e) {} - return false; - } - function isBigInt(obj) { - if (!obj || typeof obj !== "object" || !bigIntValueOf) { - return false; - } - try { - bigIntValueOf.call(obj); - return true; - } catch (e) {} - return false; - } - var hasOwn = Object.prototype.hasOwnProperty || function(key) { - return key in this; - }; - function has(obj, key) { - return hasOwn.call(obj, key); - } - function toStr(obj) { - return objectToString.call(obj); - } - function nameOf(f) { - if (f.name) { - return f.name; - } - var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/); - if (m) { - return m[1]; - } - return null; - } - function indexOf(xs, x) { - if (xs.indexOf) { - return xs.indexOf(x); - } - for (var i = 0, l = xs.length;i < l; i++) { - if (xs[i] === x) { - return i; - } - } - return -1; - } - function isMap(x) { - if (!mapSize || !x || typeof x !== "object") { - return false; - } - try { - mapSize.call(x); - try { - setSize.call(x); - } catch (s) { - return true; - } - return x instanceof Map; - } catch (e) {} - return false; - } - function isWeakMap(x) { - if (!weakMapHas || !x || typeof x !== "object") { - return false; - } - try { - weakMapHas.call(x, weakMapHas); - try { - weakSetHas.call(x, weakSetHas); - } catch (s) { - return true; - } - return x instanceof WeakMap; - } catch (e) {} - return false; - } - function isWeakRef(x) { - if (!weakRefDeref || !x || typeof x !== "object") { - return false; - } - try { - weakRefDeref.call(x); - return true; - } catch (e) {} - return false; - } - function isSet(x) { - if (!setSize || !x || typeof x !== "object") { - return false; - } - try { - setSize.call(x); - try { - mapSize.call(x); - } catch (m) { - return true; - } - return x instanceof Set; - } catch (e) {} - return false; - } - function isWeakSet(x) { - if (!weakSetHas || !x || typeof x !== "object") { - return false; - } - try { - weakSetHas.call(x, weakSetHas); - try { - weakMapHas.call(x, weakMapHas); - } catch (s) { - return true; - } - return x instanceof WeakSet; - } catch (e) {} - return false; - } - function isElement(x) { - if (!x || typeof x !== "object") { - return false; - } - if (typeof HTMLElement !== "undefined" && x instanceof HTMLElement) { - return true; - } - return typeof x.nodeName === "string" && typeof x.getAttribute === "function"; - } - function inspectString(str, opts) { - if (str.length > opts.maxStringLength) { - var remaining = str.length - opts.maxStringLength; - var trailer = "... " + remaining + " more character" + (remaining > 1 ? "s" : ""); - return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer; - } - var quoteRE = quoteREs[opts.quoteStyle || "single"]; - quoteRE.lastIndex = 0; - var s = $replace.call($replace.call(str, quoteRE, "\\$1"), /[\x00-\x1f]/g, lowbyte); - return wrapQuotes(s, "single", opts); - } - function lowbyte(c) { - var n = c.charCodeAt(0); - var x = { - 8: "b", - 9: "t", - 10: "n", - 12: "f", - 13: "r" - }[n]; - if (x) { - return "\\" + x; - } - return "\\x" + (n < 16 ? "0" : "") + $toUpperCase.call(n.toString(16)); - } - function markBoxed(str) { - return "Object(" + str + ")"; - } - function weakCollectionOf(type) { - return type + " { ? }"; - } - function collectionOf(type, size, entries, indent) { - var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ", "); - return type + " (" + size + ") {" + joinedEntries + "}"; - } - function singleLineValues(xs) { - for (var i = 0;i < xs.length; i++) { - if (indexOf(xs[i], ` -`) >= 0) { - return false; - } - } - return true; - } - function getIndent(opts, depth) { - var baseIndent; - if (opts.indent === "\t") { - baseIndent = "\t"; - } else if (typeof opts.indent === "number" && opts.indent > 0) { - baseIndent = $join.call(Array(opts.indent + 1), " "); - } else { - return null; - } - return { - base: baseIndent, - prev: $join.call(Array(depth + 1), baseIndent) - }; - } - function indentedJoin(xs, indent) { - if (xs.length === 0) { - return ""; - } - var lineJoiner = ` -` + indent.prev + indent.base; - return lineJoiner + $join.call(xs, "," + lineJoiner) + ` -` + indent.prev; - } - function arrObjKeys(obj, inspect) { - var isArr = isArray(obj); - var xs = []; - if (isArr) { - xs.length = obj.length; - for (var i = 0;i < obj.length; i++) { - xs[i] = has(obj, i) ? inspect(obj[i], obj) : ""; - } - } - var syms = typeof gOPS === "function" ? gOPS(obj) : []; - var symMap; - if (hasShammedSymbols) { - symMap = {}; - for (var k = 0;k < syms.length; k++) { - symMap["$" + syms[k]] = syms[k]; - } - } - for (var key in obj) { - if (!has(obj, key)) { - continue; - } - if (isArr && String(Number(key)) === key && key < obj.length) { - continue; - } - if (hasShammedSymbols && symMap["$" + key] instanceof Symbol) { - continue; - } else if ($test.call(/[^\w$]/, key)) { - xs.push(inspect(key, obj) + ": " + inspect(obj[key], obj)); - } else { - xs.push(key + ": " + inspect(obj[key], obj)); - } - } - if (typeof gOPS === "function") { - for (var j = 0;j < syms.length; j++) { - if (isEnumerable.call(obj, syms[j])) { - xs.push("[" + inspect(syms[j]) + "]: " + inspect(obj[syms[j]], obj)); - } - } - } - return xs; - } -}); - -// node_modules/side-channel-list/index.js -var require_side_channel_list = __commonJS((exports, module) => { - var inspect = require_object_inspect(); - var $TypeError = require_type(); - var listGetNode = function(list, key, isDelete) { - var prev = list; - var curr; - for (;(curr = prev.next) != null; prev = curr) { - if (curr.key === key) { - prev.next = curr.next; - if (!isDelete) { - curr.next = list.next; - list.next = curr; - } - return curr; - } - } - }; - var listGet = function(objects, key) { - if (!objects) { - return; - } - var node = listGetNode(objects, key); - return node && node.value; - }; - var listSet = function(objects, key, value) { - var node = listGetNode(objects, key); - if (node) { - node.value = value; - } else { - objects.next = { - key, - next: objects.next, - value - }; - } - }; - var listHas = function(objects, key) { - if (!objects) { - return false; - } - return !!listGetNode(objects, key); - }; - var listDelete = function(objects, key) { - if (objects) { - return listGetNode(objects, key, true); - } - }; - module.exports = function getSideChannelList() { - var $o; - var channel = { - assert: function(key) { - if (!channel.has(key)) { - throw new $TypeError("Side channel does not contain " + inspect(key)); - } - }, - delete: function(key) { - var root = $o && $o.next; - var deletedNode = listDelete($o, key); - if (deletedNode && root && root === deletedNode) { - $o = undefined; - } - return !!deletedNode; - }, - get: function(key) { - return listGet($o, key); - }, - has: function(key) { - return listHas($o, key); - }, - set: function(key, value) { - if (!$o) { - $o = { - next: undefined - }; - } - listSet($o, key, value); - } - }; - return channel; - }; -}); - -// node_modules/es-object-atoms/index.js -var require_es_object_atoms = __commonJS((exports, module) => { - module.exports = Object; -}); - -// node_modules/es-errors/index.js -var require_es_errors = __commonJS((exports, module) => { - module.exports = Error; -}); - -// node_modules/es-errors/eval.js -var require_eval = __commonJS((exports, module) => { - module.exports = EvalError; -}); - -// node_modules/es-errors/range.js -var require_range = __commonJS((exports, module) => { - module.exports = RangeError; -}); - -// node_modules/es-errors/ref.js -var require_ref2 = __commonJS((exports, module) => { - module.exports = ReferenceError; -}); - -// node_modules/es-errors/syntax.js -var require_syntax = __commonJS((exports, module) => { - module.exports = SyntaxError; -}); - -// node_modules/es-errors/uri.js -var require_uri2 = __commonJS((exports, module) => { - module.exports = URIError; -}); - -// node_modules/math-intrinsics/abs.js -var require_abs = __commonJS((exports, module) => { - module.exports = Math.abs; -}); - -// node_modules/math-intrinsics/floor.js -var require_floor = __commonJS((exports, module) => { - module.exports = Math.floor; -}); - -// node_modules/math-intrinsics/max.js -var require_max = __commonJS((exports, module) => { - module.exports = Math.max; -}); - -// node_modules/math-intrinsics/min.js -var require_min = __commonJS((exports, module) => { - module.exports = Math.min; -}); - -// node_modules/math-intrinsics/pow.js -var require_pow = __commonJS((exports, module) => { - module.exports = Math.pow; -}); - -// node_modules/math-intrinsics/round.js -var require_round = __commonJS((exports, module) => { - module.exports = Math.round; -}); - -// node_modules/math-intrinsics/isNaN.js -var require_isNaN = __commonJS((exports, module) => { - module.exports = Number.isNaN || function isNaN2(a) { - return a !== a; - }; -}); - -// node_modules/math-intrinsics/sign.js -var require_sign = __commonJS((exports, module) => { - var $isNaN = require_isNaN(); - module.exports = function sign(number4) { - if ($isNaN(number4) || number4 === 0) { - return number4; - } - return number4 < 0 ? -1 : 1; - }; -}); - -// node_modules/gopd/gOPD.js -var require_gOPD = __commonJS((exports, module) => { - module.exports = Object.getOwnPropertyDescriptor; -}); - -// node_modules/gopd/index.js -var require_gopd = __commonJS((exports, module) => { - var $gOPD = require_gOPD(); - if ($gOPD) { - try { - $gOPD([], "length"); - } catch (e) { - $gOPD = null; - } - } - module.exports = $gOPD; -}); - -// node_modules/es-define-property/index.js -var require_es_define_property = __commonJS((exports, module) => { - var $defineProperty = Object.defineProperty || false; - if ($defineProperty) { - try { - $defineProperty({}, "a", { value: 1 }); - } catch (e) { - $defineProperty = false; - } - } - module.exports = $defineProperty; -}); - -// node_modules/has-symbols/shams.js -var require_shams = __commonJS((exports, module) => { - module.exports = function hasSymbols() { - if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") { - return false; - } - if (typeof Symbol.iterator === "symbol") { - return true; - } - var obj = {}; - var sym = Symbol("test"); - var symObj = Object(sym); - if (typeof sym === "string") { - return false; - } - if (Object.prototype.toString.call(sym) !== "[object Symbol]") { - return false; - } - if (Object.prototype.toString.call(symObj) !== "[object Symbol]") { - return false; - } - var symVal = 42; - obj[sym] = symVal; - for (var _ in obj) { - return false; - } - if (typeof Object.keys === "function" && Object.keys(obj).length !== 0) { - return false; - } - if (typeof Object.getOwnPropertyNames === "function" && Object.getOwnPropertyNames(obj).length !== 0) { - return false; - } - var syms = Object.getOwnPropertySymbols(obj); - if (syms.length !== 1 || syms[0] !== sym) { - return false; - } - if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { - return false; - } - if (typeof Object.getOwnPropertyDescriptor === "function") { - var descriptor = Object.getOwnPropertyDescriptor(obj, sym); - if (descriptor.value !== symVal || descriptor.enumerable !== true) { - return false; - } - } - return true; - }; -}); - -// node_modules/has-symbols/index.js -var require_has_symbols = __commonJS((exports, module) => { - var origSymbol = typeof Symbol !== "undefined" && Symbol; - var hasSymbolSham = require_shams(); - module.exports = function hasNativeSymbols() { - if (typeof origSymbol !== "function") { - return false; - } - if (typeof Symbol !== "function") { - return false; - } - if (typeof origSymbol("foo") !== "symbol") { - return false; - } - if (typeof Symbol("bar") !== "symbol") { - return false; - } - return hasSymbolSham(); - }; -}); - -// node_modules/get-proto/Reflect.getPrototypeOf.js -var require_Reflect_getPrototypeOf = __commonJS((exports, module) => { - module.exports = typeof Reflect !== "undefined" && Reflect.getPrototypeOf || null; -}); - -// node_modules/get-proto/Object.getPrototypeOf.js -var require_Object_getPrototypeOf = __commonJS((exports, module) => { - var $Object = require_es_object_atoms(); - module.exports = $Object.getPrototypeOf || null; -}); - -// node_modules/function-bind/implementation.js -var require_implementation = __commonJS((exports, module) => { - var ERROR_MESSAGE = "Function.prototype.bind called on incompatible "; - var toStr = Object.prototype.toString; - var max = Math.max; - var funcType = "[object Function]"; - var concatty = function concatty2(a, b) { - var arr = []; - for (var i = 0;i < a.length; i += 1) { - arr[i] = a[i]; - } - for (var j = 0;j < b.length; j += 1) { - arr[j + a.length] = b[j]; - } - return arr; - }; - var slicy = function slicy2(arrLike, offset) { - var arr = []; - for (var i = offset || 0, j = 0;i < arrLike.length; i += 1, j += 1) { - arr[j] = arrLike[i]; - } - return arr; - }; - var joiny = function(arr, joiner) { - var str = ""; - for (var i = 0;i < arr.length; i += 1) { - str += arr[i]; - if (i + 1 < arr.length) { - str += joiner; - } - } - return str; - }; - module.exports = function bind(that) { - var target = this; - if (typeof target !== "function" || toStr.apply(target) !== funcType) { - throw new TypeError(ERROR_MESSAGE + target); - } - var args = slicy(arguments, 1); - var bound; - var binder = function() { - if (this instanceof bound) { - var result = target.apply(this, concatty(args, arguments)); - if (Object(result) === result) { - return result; - } - return this; - } - return target.apply(that, concatty(args, arguments)); - }; - var boundLength = max(0, target.length - args.length); - var boundArgs = []; - for (var i = 0;i < boundLength; i++) { - boundArgs[i] = "$" + i; - } - bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder); - if (target.prototype) { - var Empty = function Empty2() {}; - Empty.prototype = target.prototype; - bound.prototype = new Empty; - Empty.prototype = null; - } - return bound; - }; -}); - -// node_modules/function-bind/index.js -var require_function_bind = __commonJS((exports, module) => { - var implementation = require_implementation(); - module.exports = Function.prototype.bind || implementation; -}); - -// node_modules/call-bind-apply-helpers/functionCall.js -var require_functionCall = __commonJS((exports, module) => { - module.exports = Function.prototype.call; -}); - -// node_modules/call-bind-apply-helpers/functionApply.js -var require_functionApply = __commonJS((exports, module) => { - module.exports = Function.prototype.apply; -}); - -// node_modules/call-bind-apply-helpers/reflectApply.js -var require_reflectApply = __commonJS((exports, module) => { - module.exports = typeof Reflect !== "undefined" && Reflect && Reflect.apply; -}); - -// node_modules/call-bind-apply-helpers/actualApply.js -var require_actualApply = __commonJS((exports, module) => { - var bind = require_function_bind(); - var $apply = require_functionApply(); - var $call = require_functionCall(); - var $reflectApply = require_reflectApply(); - module.exports = $reflectApply || bind.call($call, $apply); -}); - -// node_modules/call-bind-apply-helpers/index.js -var require_call_bind_apply_helpers = __commonJS((exports, module) => { - var bind = require_function_bind(); - var $TypeError = require_type(); - var $call = require_functionCall(); - var $actualApply = require_actualApply(); - module.exports = function callBindBasic(args) { - if (args.length < 1 || typeof args[0] !== "function") { - throw new $TypeError("a function is required"); - } - return $actualApply(bind, $call, args); - }; -}); - -// node_modules/dunder-proto/get.js -var require_get = __commonJS((exports, module) => { - var callBind = require_call_bind_apply_helpers(); - var gOPD = require_gopd(); - var hasProtoAccessor; - try { - hasProtoAccessor = [].__proto__ === Array.prototype; - } catch (e) { - if (!e || typeof e !== "object" || !("code" in e) || e.code !== "ERR_PROTO_ACCESS") { - throw e; - } - } - var desc = !!hasProtoAccessor && gOPD && gOPD(Object.prototype, "__proto__"); - var $Object = Object; - var $getPrototypeOf = $Object.getPrototypeOf; - module.exports = desc && typeof desc.get === "function" ? callBind([desc.get]) : typeof $getPrototypeOf === "function" ? function getDunder(value) { - return $getPrototypeOf(value == null ? value : $Object(value)); - } : false; -}); - -// node_modules/get-proto/index.js -var require_get_proto = __commonJS((exports, module) => { - var reflectGetProto = require_Reflect_getPrototypeOf(); - var originalGetProto = require_Object_getPrototypeOf(); - var getDunderProto = require_get(); - module.exports = reflectGetProto ? function getProto(O) { - return reflectGetProto(O); - } : originalGetProto ? function getProto(O) { - if (!O || typeof O !== "object" && typeof O !== "function") { - throw new TypeError("getProto: not an object"); - } - return originalGetProto(O); - } : getDunderProto ? function getProto(O) { - return getDunderProto(O); - } : null; -}); - -// node_modules/hasown/index.js -var require_hasown = __commonJS((exports, module) => { - var call = Function.prototype.call; - var $hasOwn = Object.prototype.hasOwnProperty; - var bind = require_function_bind(); - module.exports = bind.call(call, $hasOwn); -}); - -// node_modules/get-intrinsic/index.js -var require_get_intrinsic = __commonJS((exports, module) => { - var undefined3; - var $Object = require_es_object_atoms(); - var $Error = require_es_errors(); - var $EvalError = require_eval(); - var $RangeError = require_range(); - var $ReferenceError = require_ref2(); - var $SyntaxError = require_syntax(); - var $TypeError = require_type(); - var $URIError = require_uri2(); - var abs = require_abs(); - var floor = require_floor(); - var max = require_max(); - var min = require_min(); - var pow = require_pow(); - var round = require_round(); - var sign = require_sign(); - var $Function = Function; - var getEvalledConstructor = function(expressionSyntax) { - try { - return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")(); - } catch (e) {} - }; - var $gOPD = require_gopd(); - var $defineProperty = require_es_define_property(); - var throwTypeError = function() { - throw new $TypeError; - }; - var ThrowTypeError = $gOPD ? function() { - try { - arguments.callee; - return throwTypeError; - } catch (calleeThrows) { - try { - return $gOPD(arguments, "callee").get; - } catch (gOPDthrows) { - return throwTypeError; - } - } - }() : throwTypeError; - var hasSymbols = require_has_symbols()(); - var getProto = require_get_proto(); - var $ObjectGPO = require_Object_getPrototypeOf(); - var $ReflectGPO = require_Reflect_getPrototypeOf(); - var $apply = require_functionApply(); - var $call = require_functionCall(); - var needsEval = {}; - var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined3 : getProto(Uint8Array); - var INTRINSICS = { - __proto__: null, - "%AggregateError%": typeof AggregateError === "undefined" ? undefined3 : AggregateError, - "%Array%": Array, - "%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined3 : ArrayBuffer, - "%ArrayIteratorPrototype%": hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined3, - "%AsyncFromSyncIteratorPrototype%": undefined3, - "%AsyncFunction%": needsEval, - "%AsyncGenerator%": needsEval, - "%AsyncGeneratorFunction%": needsEval, - "%AsyncIteratorPrototype%": needsEval, - "%Atomics%": typeof Atomics === "undefined" ? undefined3 : Atomics, - "%BigInt%": typeof BigInt === "undefined" ? undefined3 : BigInt, - "%BigInt64Array%": typeof BigInt64Array === "undefined" ? undefined3 : BigInt64Array, - "%BigUint64Array%": typeof BigUint64Array === "undefined" ? undefined3 : BigUint64Array, - "%Boolean%": Boolean, - "%DataView%": typeof DataView === "undefined" ? undefined3 : DataView, - "%Date%": Date, - "%decodeURI%": decodeURI, - "%decodeURIComponent%": decodeURIComponent, - "%encodeURI%": encodeURI, - "%encodeURIComponent%": encodeURIComponent, - "%Error%": $Error, - "%eval%": eval, - "%EvalError%": $EvalError, - "%Float16Array%": typeof Float16Array === "undefined" ? undefined3 : Float16Array, - "%Float32Array%": typeof Float32Array === "undefined" ? undefined3 : Float32Array, - "%Float64Array%": typeof Float64Array === "undefined" ? undefined3 : Float64Array, - "%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined3 : FinalizationRegistry, - "%Function%": $Function, - "%GeneratorFunction%": needsEval, - "%Int8Array%": typeof Int8Array === "undefined" ? undefined3 : Int8Array, - "%Int16Array%": typeof Int16Array === "undefined" ? undefined3 : Int16Array, - "%Int32Array%": typeof Int32Array === "undefined" ? undefined3 : Int32Array, - "%isFinite%": isFinite, - "%isNaN%": isNaN, - "%IteratorPrototype%": hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined3, - "%JSON%": typeof JSON === "object" ? JSON : undefined3, - "%Map%": typeof Map === "undefined" ? undefined3 : Map, - "%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols || !getProto ? undefined3 : getProto(new Map()[Symbol.iterator]()), - "%Math%": Math, - "%Number%": Number, - "%Object%": $Object, - "%Object.getOwnPropertyDescriptor%": $gOPD, - "%parseFloat%": parseFloat, - "%parseInt%": parseInt, - "%Promise%": typeof Promise === "undefined" ? undefined3 : Promise, - "%Proxy%": typeof Proxy === "undefined" ? undefined3 : Proxy, - "%RangeError%": $RangeError, - "%ReferenceError%": $ReferenceError, - "%Reflect%": typeof Reflect === "undefined" ? undefined3 : Reflect, - "%RegExp%": RegExp, - "%Set%": typeof Set === "undefined" ? undefined3 : Set, - "%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols || !getProto ? undefined3 : getProto(new Set()[Symbol.iterator]()), - "%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined3 : SharedArrayBuffer, - "%String%": String, - "%StringIteratorPrototype%": hasSymbols && getProto ? getProto(""[Symbol.iterator]()) : undefined3, - "%Symbol%": hasSymbols ? Symbol : undefined3, - "%SyntaxError%": $SyntaxError, - "%ThrowTypeError%": ThrowTypeError, - "%TypedArray%": TypedArray, - "%TypeError%": $TypeError, - "%Uint8Array%": typeof Uint8Array === "undefined" ? undefined3 : Uint8Array, - "%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? undefined3 : Uint8ClampedArray, - "%Uint16Array%": typeof Uint16Array === "undefined" ? undefined3 : Uint16Array, - "%Uint32Array%": typeof Uint32Array === "undefined" ? undefined3 : Uint32Array, - "%URIError%": $URIError, - "%WeakMap%": typeof WeakMap === "undefined" ? undefined3 : WeakMap, - "%WeakRef%": typeof WeakRef === "undefined" ? undefined3 : WeakRef, - "%WeakSet%": typeof WeakSet === "undefined" ? undefined3 : WeakSet, - "%Function.prototype.call%": $call, - "%Function.prototype.apply%": $apply, - "%Object.defineProperty%": $defineProperty, - "%Object.getPrototypeOf%": $ObjectGPO, - "%Math.abs%": abs, - "%Math.floor%": floor, - "%Math.max%": max, - "%Math.min%": min, - "%Math.pow%": pow, - "%Math.round%": round, - "%Math.sign%": sign, - "%Reflect.getPrototypeOf%": $ReflectGPO - }; - if (getProto) { - try { - null.error; - } catch (e) { - errorProto = getProto(getProto(e)); - INTRINSICS["%Error.prototype%"] = errorProto; - } - } - var errorProto; - var doEval = function doEval2(name) { - var value; - if (name === "%AsyncFunction%") { - value = getEvalledConstructor("async function () {}"); - } else if (name === "%GeneratorFunction%") { - value = getEvalledConstructor("function* () {}"); - } else if (name === "%AsyncGeneratorFunction%") { - value = getEvalledConstructor("async function* () {}"); - } else if (name === "%AsyncGenerator%") { - var fn = doEval2("%AsyncGeneratorFunction%"); - if (fn) { - value = fn.prototype; - } - } else if (name === "%AsyncIteratorPrototype%") { - var gen = doEval2("%AsyncGenerator%"); - if (gen && getProto) { - value = getProto(gen.prototype); - } - } - INTRINSICS[name] = value; - return value; - }; - var LEGACY_ALIASES = { - __proto__: null, - "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"], - "%ArrayPrototype%": ["Array", "prototype"], - "%ArrayProto_entries%": ["Array", "prototype", "entries"], - "%ArrayProto_forEach%": ["Array", "prototype", "forEach"], - "%ArrayProto_keys%": ["Array", "prototype", "keys"], - "%ArrayProto_values%": ["Array", "prototype", "values"], - "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"], - "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"], - "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"], - "%BooleanPrototype%": ["Boolean", "prototype"], - "%DataViewPrototype%": ["DataView", "prototype"], - "%DatePrototype%": ["Date", "prototype"], - "%ErrorPrototype%": ["Error", "prototype"], - "%EvalErrorPrototype%": ["EvalError", "prototype"], - "%Float32ArrayPrototype%": ["Float32Array", "prototype"], - "%Float64ArrayPrototype%": ["Float64Array", "prototype"], - "%FunctionPrototype%": ["Function", "prototype"], - "%Generator%": ["GeneratorFunction", "prototype"], - "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"], - "%Int8ArrayPrototype%": ["Int8Array", "prototype"], - "%Int16ArrayPrototype%": ["Int16Array", "prototype"], - "%Int32ArrayPrototype%": ["Int32Array", "prototype"], - "%JSONParse%": ["JSON", "parse"], - "%JSONStringify%": ["JSON", "stringify"], - "%MapPrototype%": ["Map", "prototype"], - "%NumberPrototype%": ["Number", "prototype"], - "%ObjectPrototype%": ["Object", "prototype"], - "%ObjProto_toString%": ["Object", "prototype", "toString"], - "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"], - "%PromisePrototype%": ["Promise", "prototype"], - "%PromiseProto_then%": ["Promise", "prototype", "then"], - "%Promise_all%": ["Promise", "all"], - "%Promise_reject%": ["Promise", "reject"], - "%Promise_resolve%": ["Promise", "resolve"], - "%RangeErrorPrototype%": ["RangeError", "prototype"], - "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"], - "%RegExpPrototype%": ["RegExp", "prototype"], - "%SetPrototype%": ["Set", "prototype"], - "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"], - "%StringPrototype%": ["String", "prototype"], - "%SymbolPrototype%": ["Symbol", "prototype"], - "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"], - "%TypedArrayPrototype%": ["TypedArray", "prototype"], - "%TypeErrorPrototype%": ["TypeError", "prototype"], - "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"], - "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"], - "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"], - "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"], - "%URIErrorPrototype%": ["URIError", "prototype"], - "%WeakMapPrototype%": ["WeakMap", "prototype"], - "%WeakSetPrototype%": ["WeakSet", "prototype"] - }; - var bind = require_function_bind(); - var hasOwn = require_hasown(); - var $concat = bind.call($call, Array.prototype.concat); - var $spliceApply = bind.call($apply, Array.prototype.splice); - var $replace = bind.call($call, String.prototype.replace); - var $strSlice = bind.call($call, String.prototype.slice); - var $exec = bind.call($call, RegExp.prototype.exec); - var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g; - var reEscapeChar = /\\(\\)?/g; - var stringToPath = function stringToPath2(string4) { - var first = $strSlice(string4, 0, 1); - var last = $strSlice(string4, -1); - if (first === "%" && last !== "%") { - throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`"); - } else if (last === "%" && first !== "%") { - throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`"); - } - var result = []; - $replace(string4, rePropName, function(match, number4, quote, subString) { - result[result.length] = quote ? $replace(subString, reEscapeChar, "$1") : number4 || match; - }); - return result; - }; - var getBaseIntrinsic = function getBaseIntrinsic2(name, allowMissing) { - var intrinsicName = name; - var alias; - if (hasOwn(LEGACY_ALIASES, intrinsicName)) { - alias = LEGACY_ALIASES[intrinsicName]; - intrinsicName = "%" + alias[0] + "%"; - } - if (hasOwn(INTRINSICS, intrinsicName)) { - var value = INTRINSICS[intrinsicName]; - if (value === needsEval) { - value = doEval(intrinsicName); - } - if (typeof value === "undefined" && !allowMissing) { - throw new $TypeError("intrinsic " + name + " exists, but is not available. Please file an issue!"); - } - return { - alias, - name: intrinsicName, - value - }; - } - throw new $SyntaxError("intrinsic " + name + " does not exist!"); - }; - module.exports = function GetIntrinsic(name, allowMissing) { - if (typeof name !== "string" || name.length === 0) { - throw new $TypeError("intrinsic name must be a non-empty string"); - } - if (arguments.length > 1 && typeof allowMissing !== "boolean") { - throw new $TypeError('"allowMissing" argument must be a boolean'); - } - if ($exec(/^%?[^%]*%?$/, name) === null) { - throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name"); - } - var parts = stringToPath(name); - var intrinsicBaseName = parts.length > 0 ? parts[0] : ""; - var intrinsic = getBaseIntrinsic("%" + intrinsicBaseName + "%", allowMissing); - var intrinsicRealName = intrinsic.name; - var value = intrinsic.value; - var skipFurtherCaching = false; - var alias = intrinsic.alias; - if (alias) { - intrinsicBaseName = alias[0]; - $spliceApply(parts, $concat([0, 1], alias)); - } - for (var i = 1, isOwn = true;i < parts.length; i += 1) { - var part = parts[i]; - var first = $strSlice(part, 0, 1); - var last = $strSlice(part, -1); - if ((first === '"' || first === "'" || first === "`" || (last === '"' || last === "'" || last === "`")) && first !== last) { - throw new $SyntaxError("property names with quotes must have matching quotes"); - } - if (part === "constructor" || !isOwn) { - skipFurtherCaching = true; - } - intrinsicBaseName += "." + part; - intrinsicRealName = "%" + intrinsicBaseName + "%"; - if (hasOwn(INTRINSICS, intrinsicRealName)) { - value = INTRINSICS[intrinsicRealName]; - } else if (value != null) { - if (!(part in value)) { - if (!allowMissing) { - throw new $TypeError("base intrinsic for " + name + " exists, but the property is not available."); - } - return; - } - if ($gOPD && i + 1 >= parts.length) { - var desc = $gOPD(value, part); - isOwn = !!desc; - if (isOwn && "get" in desc && !("originalValue" in desc.get)) { - value = desc.get; - } else { - value = value[part]; - } - } else { - isOwn = hasOwn(value, part); - value = value[part]; - } - if (isOwn && !skipFurtherCaching) { - INTRINSICS[intrinsicRealName] = value; - } - } - } - return value; - }; -}); - -// node_modules/call-bound/index.js -var require_call_bound = __commonJS((exports, module) => { - var GetIntrinsic = require_get_intrinsic(); - var callBindBasic = require_call_bind_apply_helpers(); - var $indexOf = callBindBasic([GetIntrinsic("%String.prototype.indexOf%")]); - module.exports = function callBoundIntrinsic(name, allowMissing) { - var intrinsic = GetIntrinsic(name, !!allowMissing); - if (typeof intrinsic === "function" && $indexOf(name, ".prototype.") > -1) { - return callBindBasic([intrinsic]); - } - return intrinsic; - }; -}); - -// node_modules/side-channel-map/index.js -var require_side_channel_map = __commonJS((exports, module) => { - var GetIntrinsic = require_get_intrinsic(); - var callBound = require_call_bound(); - var inspect = require_object_inspect(); - var $TypeError = require_type(); - var $Map = GetIntrinsic("%Map%", true); - var $mapGet = callBound("Map.prototype.get", true); - var $mapSet = callBound("Map.prototype.set", true); - var $mapHas = callBound("Map.prototype.has", true); - var $mapDelete = callBound("Map.prototype.delete", true); - var $mapSize = callBound("Map.prototype.size", true); - module.exports = !!$Map && function getSideChannelMap() { - var $m; - var channel = { - assert: function(key) { - if (!channel.has(key)) { - throw new $TypeError("Side channel does not contain " + inspect(key)); - } - }, - delete: function(key) { - if ($m) { - var result = $mapDelete($m, key); - if ($mapSize($m) === 0) { - $m = undefined; - } - return result; - } - return false; - }, - get: function(key) { - if ($m) { - return $mapGet($m, key); - } - }, - has: function(key) { - if ($m) { - return $mapHas($m, key); - } - return false; - }, - set: function(key, value) { - if (!$m) { - $m = new $Map; - } - $mapSet($m, key, value); - } - }; - return channel; - }; -}); - -// node_modules/side-channel-weakmap/index.js -var require_side_channel_weakmap = __commonJS((exports, module) => { - var GetIntrinsic = require_get_intrinsic(); - var callBound = require_call_bound(); - var inspect = require_object_inspect(); - var getSideChannelMap = require_side_channel_map(); - var $TypeError = require_type(); - var $WeakMap = GetIntrinsic("%WeakMap%", true); - var $weakMapGet = callBound("WeakMap.prototype.get", true); - var $weakMapSet = callBound("WeakMap.prototype.set", true); - var $weakMapHas = callBound("WeakMap.prototype.has", true); - var $weakMapDelete = callBound("WeakMap.prototype.delete", true); - module.exports = $WeakMap ? function getSideChannelWeakMap() { - var $wm; - var $m; - var channel = { - assert: function(key) { - if (!channel.has(key)) { - throw new $TypeError("Side channel does not contain " + inspect(key)); - } - }, - delete: function(key) { - if ($WeakMap && key && (typeof key === "object" || typeof key === "function")) { - if ($wm) { - return $weakMapDelete($wm, key); - } - } else if (getSideChannelMap) { - if ($m) { - return $m["delete"](key); - } - } - return false; - }, - get: function(key) { - if ($WeakMap && key && (typeof key === "object" || typeof key === "function")) { - if ($wm) { - return $weakMapGet($wm, key); - } - } - return $m && $m.get(key); - }, - has: function(key) { - if ($WeakMap && key && (typeof key === "object" || typeof key === "function")) { - if ($wm) { - return $weakMapHas($wm, key); - } - } - return !!$m && $m.has(key); - }, - set: function(key, value) { - if ($WeakMap && key && (typeof key === "object" || typeof key === "function")) { - if (!$wm) { - $wm = new $WeakMap; - } - $weakMapSet($wm, key, value); - } else if (getSideChannelMap) { - if (!$m) { - $m = getSideChannelMap(); - } - $m.set(key, value); - } - } - }; - return channel; - } : getSideChannelMap; -}); - -// node_modules/side-channel/index.js -var require_side_channel = __commonJS((exports, module) => { - var $TypeError = require_type(); - var inspect = require_object_inspect(); - var getSideChannelList = require_side_channel_list(); - var getSideChannelMap = require_side_channel_map(); - var getSideChannelWeakMap = require_side_channel_weakmap(); - var makeChannel = getSideChannelWeakMap || getSideChannelMap || getSideChannelList; - module.exports = function getSideChannel() { - var $channelData; - var channel = { - assert: function(key) { - if (!channel.has(key)) { - throw new $TypeError("Side channel does not contain " + inspect(key)); - } - }, - delete: function(key) { - return !!$channelData && $channelData["delete"](key); - }, - get: function(key) { - return $channelData && $channelData.get(key); - }, - has: function(key) { - return !!$channelData && $channelData.has(key); - }, - set: function(key, value) { - if (!$channelData) { - $channelData = makeChannel(); - } - $channelData.set(key, value); - } - }; - return channel; - }; -}); - -// node_modules/qs/lib/formats.js -var require_formats2 = __commonJS((exports, module) => { - var replace = String.prototype.replace; - var percentTwenties = /%20/g; - var Format = { - RFC1738: "RFC1738", - RFC3986: "RFC3986" - }; - module.exports = { - default: Format.RFC3986, - formatters: { - RFC1738: function(value) { - return replace.call(value, percentTwenties, "+"); - }, - RFC3986: function(value) { - return String(value); - } - }, - RFC1738: Format.RFC1738, - RFC3986: Format.RFC3986 - }; -}); - -// node_modules/qs/lib/utils.js -var require_utils2 = __commonJS((exports, module) => { - var formats = require_formats2(); - var getSideChannel = require_side_channel(); - var has = Object.prototype.hasOwnProperty; - var isArray = Array.isArray; - var overflowChannel = getSideChannel(); - var markOverflow = function markOverflow2(obj, maxIndex) { - overflowChannel.set(obj, maxIndex); - return obj; - }; - var isOverflow = function isOverflow2(obj) { - return overflowChannel.has(obj); - }; - var getMaxIndex = function getMaxIndex2(obj) { - return overflowChannel.get(obj); - }; - var setMaxIndex = function setMaxIndex2(obj, maxIndex) { - overflowChannel.set(obj, maxIndex); - }; - var hexTable = function() { - var array3 = []; - for (var i = 0;i < 256; ++i) { - array3[array3.length] = "%" + ((i < 16 ? "0" : "") + i.toString(16)).toUpperCase(); - } - return array3; - }(); - var compactQueue = function compactQueue2(queue) { - while (queue.length > 1) { - var item = queue.pop(); - var obj = item.obj[item.prop]; - if (isArray(obj)) { - var compacted = []; - for (var j = 0;j < obj.length; ++j) { - if (typeof obj[j] !== "undefined") { - compacted[compacted.length] = obj[j]; - } - } - item.obj[item.prop] = compacted; - } - } - }; - var arrayToObject = function arrayToObject2(source, options) { - var obj = options && options.plainObjects ? { __proto__: null } : {}; - for (var i = 0;i < source.length; ++i) { - if (typeof source[i] !== "undefined") { - obj[i] = source[i]; - } - } - return obj; - }; - var merge2 = function merge3(target, source, options) { - if (!source) { - return target; - } - if (typeof source !== "object" && typeof source !== "function") { - if (isArray(target)) { - var nextIndex = target.length; - if (options && typeof options.arrayLimit === "number" && nextIndex > options.arrayLimit) { - return markOverflow(arrayToObject(target.concat(source), options), nextIndex); - } - target[nextIndex] = source; - } else if (target && typeof target === "object") { - if (isOverflow(target)) { - var newIndex = getMaxIndex(target) + 1; - target[newIndex] = source; - setMaxIndex(target, newIndex); - } else if (options && (options.plainObjects || options.allowPrototypes) || !has.call(Object.prototype, source)) { - target[source] = true; - } - } else { - return [target, source]; - } - return target; - } - if (!target || typeof target !== "object") { - if (isOverflow(source)) { - var sourceKeys = Object.keys(source); - var result = options && options.plainObjects ? { __proto__: null, 0: target } : { 0: target }; - for (var m = 0;m < sourceKeys.length; m++) { - var oldKey = parseInt(sourceKeys[m], 10); - result[oldKey + 1] = source[sourceKeys[m]]; - } - return markOverflow(result, getMaxIndex(source) + 1); - } - var combined = [target].concat(source); - if (options && typeof options.arrayLimit === "number" && combined.length > options.arrayLimit) { - return markOverflow(arrayToObject(combined, options), combined.length - 1); - } - return combined; - } - var mergeTarget = target; - if (isArray(target) && !isArray(source)) { - mergeTarget = arrayToObject(target, options); - } - if (isArray(target) && isArray(source)) { - source.forEach(function(item, i) { - if (has.call(target, i)) { - var targetItem = target[i]; - if (targetItem && typeof targetItem === "object" && item && typeof item === "object") { - target[i] = merge3(targetItem, item, options); - } else { - target[target.length] = item; - } - } else { - target[i] = item; - } - }); - return target; - } - return Object.keys(source).reduce(function(acc, key) { - var value = source[key]; - if (has.call(acc, key)) { - acc[key] = merge3(acc[key], value, options); - } else { - acc[key] = value; - } - if (isOverflow(source) && !isOverflow(acc)) { - markOverflow(acc, getMaxIndex(source)); - } - if (isOverflow(acc)) { - var keyNum = parseInt(key, 10); - if (String(keyNum) === key && keyNum >= 0 && keyNum > getMaxIndex(acc)) { - setMaxIndex(acc, keyNum); - } - } - return acc; - }, mergeTarget); - }; - var assign = function assignSingleSource(target, source) { - return Object.keys(source).reduce(function(acc, key) { - acc[key] = source[key]; - return acc; - }, target); - }; - var decode3 = function(str, defaultDecoder, charset) { - var strWithoutPlus = str.replace(/\+/g, " "); - if (charset === "iso-8859-1") { - return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape); - } - try { - return decodeURIComponent(strWithoutPlus); - } catch (e) { - return strWithoutPlus; - } - }; - var limit = 1024; - var encode3 = function encode4(str, defaultEncoder, charset, kind, format) { - if (str.length === 0) { - return str; - } - var string4 = str; - if (typeof str === "symbol") { - string4 = Symbol.prototype.toString.call(str); - } else if (typeof str !== "string") { - string4 = String(str); - } - if (charset === "iso-8859-1") { - return escape(string4).replace(/%u[0-9a-f]{4}/gi, function($0) { - return "%26%23" + parseInt($0.slice(2), 16) + "%3B"; - }); - } - var out = ""; - for (var j = 0;j < string4.length; j += limit) { - var segment = string4.length >= limit ? string4.slice(j, j + limit) : string4; - var arr = []; - for (var i = 0;i < segment.length; ++i) { - var c = segment.charCodeAt(i); - if (c === 45 || c === 46 || c === 95 || c === 126 || c >= 48 && c <= 57 || c >= 65 && c <= 90 || c >= 97 && c <= 122 || format === formats.RFC1738 && (c === 40 || c === 41)) { - arr[arr.length] = segment.charAt(i); - continue; - } - if (c < 128) { - arr[arr.length] = hexTable[c]; - continue; - } - if (c < 2048) { - arr[arr.length] = hexTable[192 | c >> 6] + hexTable[128 | c & 63]; - continue; - } - if (c < 55296 || c >= 57344) { - arr[arr.length] = hexTable[224 | c >> 12] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63]; - continue; - } - i += 1; - c = 65536 + ((c & 1023) << 10 | segment.charCodeAt(i) & 1023); - arr[arr.length] = hexTable[240 | c >> 18] + hexTable[128 | c >> 12 & 63] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63]; - } - out += arr.join(""); - } - return out; - }; - var compact = function compact2(value) { - var queue = [{ obj: { o: value }, prop: "o" }]; - var refs = []; - for (var i = 0;i < queue.length; ++i) { - var item = queue[i]; - var obj = item.obj[item.prop]; - var keys = Object.keys(obj); - for (var j = 0;j < keys.length; ++j) { - var key = keys[j]; - var val = obj[key]; - if (typeof val === "object" && val !== null && refs.indexOf(val) === -1) { - queue[queue.length] = { obj, prop: key }; - refs[refs.length] = val; - } - } - } - compactQueue(queue); - return value; - }; - var isRegExp = function isRegExp2(obj) { - return Object.prototype.toString.call(obj) === "[object RegExp]"; - }; - var isBuffer = function isBuffer2(obj) { - if (!obj || typeof obj !== "object") { - return false; - } - return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj)); - }; - var combine = function combine2(a, b, arrayLimit, plainObjects) { - if (isOverflow(a)) { - var newIndex = getMaxIndex(a) + 1; - a[newIndex] = b; - setMaxIndex(a, newIndex); - return a; - } - var result = [].concat(a, b); - if (result.length > arrayLimit) { - return markOverflow(arrayToObject(result, { plainObjects }), result.length - 1); - } - return result; - }; - var maybeMap = function maybeMap2(val, fn) { - if (isArray(val)) { - var mapped = []; - for (var i = 0;i < val.length; i += 1) { - mapped[mapped.length] = fn(val[i]); - } - return mapped; - } - return fn(val); - }; - module.exports = { - arrayToObject, - assign, - combine, - compact, - decode: decode3, - encode: encode3, - isBuffer, - isOverflow, - isRegExp, - markOverflow, - maybeMap, - merge: merge2 - }; -}); - -// node_modules/qs/lib/stringify.js -var require_stringify = __commonJS((exports, module) => { - var getSideChannel = require_side_channel(); - var utils = require_utils2(); - var formats = require_formats2(); - var has = Object.prototype.hasOwnProperty; - var arrayPrefixGenerators = { - brackets: function brackets(prefix) { - return prefix + "[]"; - }, - comma: "comma", - indices: function indices(prefix, key) { - return prefix + "[" + key + "]"; - }, - repeat: function repeat(prefix) { - return prefix; - } - }; - var isArray = Array.isArray; - var push = Array.prototype.push; - var pushToArray = function(arr, valueOrArray) { - push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]); - }; - var toISO = Date.prototype.toISOString; - var defaultFormat = formats["default"]; - var defaults = { - addQueryPrefix: false, - allowDots: false, - allowEmptyArrays: false, - arrayFormat: "indices", - charset: "utf-8", - charsetSentinel: false, - commaRoundTrip: false, - delimiter: "&", - encode: true, - encodeDotInKeys: false, - encoder: utils.encode, - encodeValuesOnly: false, - filter: undefined, - format: defaultFormat, - formatter: formats.formatters[defaultFormat], - indices: false, - serializeDate: function serializeDate(date4) { - return toISO.call(date4); - }, - skipNulls: false, - strictNullHandling: false - }; - var isNonNullishPrimitive = function isNonNullishPrimitive2(v) { - return typeof v === "string" || typeof v === "number" || typeof v === "boolean" || typeof v === "symbol" || typeof v === "bigint"; - }; - var sentinel = {}; - var stringify = function stringify2(object4, prefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, sideChannel) { - var obj = object4; - var tmpSc = sideChannel; - var step = 0; - var findFlag = false; - while ((tmpSc = tmpSc.get(sentinel)) !== undefined && !findFlag) { - var pos = tmpSc.get(object4); - step += 1; - if (typeof pos !== "undefined") { - if (pos === step) { - throw new RangeError("Cyclic object value"); - } else { - findFlag = true; - } - } - if (typeof tmpSc.get(sentinel) === "undefined") { - step = 0; - } - } - if (typeof filter === "function") { - obj = filter(prefix, obj); - } else if (obj instanceof Date) { - obj = serializeDate(obj); - } else if (generateArrayPrefix === "comma" && isArray(obj)) { - obj = utils.maybeMap(obj, function(value2) { - if (value2 instanceof Date) { - return serializeDate(value2); - } - return value2; - }); - } - if (obj === null) { - if (strictNullHandling) { - return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, "key", format) : prefix; - } - obj = ""; - } - if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) { - if (encoder) { - var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, "key", format); - return [formatter(keyValue) + "=" + formatter(encoder(obj, defaults.encoder, charset, "value", format))]; - } - return [formatter(prefix) + "=" + formatter(String(obj))]; - } - var values = []; - if (typeof obj === "undefined") { - return values; - } - var objKeys; - if (generateArrayPrefix === "comma" && isArray(obj)) { - if (encodeValuesOnly && encoder) { - obj = utils.maybeMap(obj, encoder); - } - objKeys = [{ value: obj.length > 0 ? obj.join(",") || null : undefined }]; - } else if (isArray(filter)) { - objKeys = filter; - } else { - var keys = Object.keys(obj); - objKeys = sort ? keys.sort(sort) : keys; - } - var encodedPrefix = encodeDotInKeys ? String(prefix).replace(/\./g, "%2E") : String(prefix); - var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? encodedPrefix + "[]" : encodedPrefix; - if (allowEmptyArrays && isArray(obj) && obj.length === 0) { - return adjustedPrefix + "[]"; - } - for (var j = 0;j < objKeys.length; ++j) { - var key = objKeys[j]; - var value = typeof key === "object" && key && typeof key.value !== "undefined" ? key.value : obj[key]; - if (skipNulls && value === null) { - continue; - } - var encodedKey = allowDots && encodeDotInKeys ? String(key).replace(/\./g, "%2E") : String(key); - var keyPrefix = isArray(obj) ? typeof generateArrayPrefix === "function" ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix : adjustedPrefix + (allowDots ? "." + encodedKey : "[" + encodedKey + "]"); - sideChannel.set(object4, step); - var valueSideChannel = getSideChannel(); - valueSideChannel.set(sentinel, sideChannel); - pushToArray(values, stringify2(value, keyPrefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, generateArrayPrefix === "comma" && encodeValuesOnly && isArray(obj) ? null : encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, valueSideChannel)); - } - return values; - }; - var normalizeStringifyOptions = function normalizeStringifyOptions2(opts) { - if (!opts) { - return defaults; - } - if (typeof opts.allowEmptyArrays !== "undefined" && typeof opts.allowEmptyArrays !== "boolean") { - throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided"); - } - if (typeof opts.encodeDotInKeys !== "undefined" && typeof opts.encodeDotInKeys !== "boolean") { - throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided"); - } - if (opts.encoder !== null && typeof opts.encoder !== "undefined" && typeof opts.encoder !== "function") { - throw new TypeError("Encoder has to be a function."); - } - var charset = opts.charset || defaults.charset; - if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") { - throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined"); - } - var format = formats["default"]; - if (typeof opts.format !== "undefined") { - if (!has.call(formats.formatters, opts.format)) { - throw new TypeError("Unknown format option provided."); - } - format = opts.format; - } - var formatter = formats.formatters[format]; - var filter = defaults.filter; - if (typeof opts.filter === "function" || isArray(opts.filter)) { - filter = opts.filter; - } - var arrayFormat; - if (opts.arrayFormat in arrayPrefixGenerators) { - arrayFormat = opts.arrayFormat; - } else if ("indices" in opts) { - arrayFormat = opts.indices ? "indices" : "repeat"; - } else { - arrayFormat = defaults.arrayFormat; - } - if ("commaRoundTrip" in opts && typeof opts.commaRoundTrip !== "boolean") { - throw new TypeError("`commaRoundTrip` must be a boolean, or absent"); - } - var allowDots = typeof opts.allowDots === "undefined" ? opts.encodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots; - return { - addQueryPrefix: typeof opts.addQueryPrefix === "boolean" ? opts.addQueryPrefix : defaults.addQueryPrefix, - allowDots, - allowEmptyArrays: typeof opts.allowEmptyArrays === "boolean" ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays, - arrayFormat, - charset, - charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults.charsetSentinel, - commaRoundTrip: !!opts.commaRoundTrip, - delimiter: typeof opts.delimiter === "undefined" ? defaults.delimiter : opts.delimiter, - encode: typeof opts.encode === "boolean" ? opts.encode : defaults.encode, - encodeDotInKeys: typeof opts.encodeDotInKeys === "boolean" ? opts.encodeDotInKeys : defaults.encodeDotInKeys, - encoder: typeof opts.encoder === "function" ? opts.encoder : defaults.encoder, - encodeValuesOnly: typeof opts.encodeValuesOnly === "boolean" ? opts.encodeValuesOnly : defaults.encodeValuesOnly, - filter, - format, - formatter, - serializeDate: typeof opts.serializeDate === "function" ? opts.serializeDate : defaults.serializeDate, - skipNulls: typeof opts.skipNulls === "boolean" ? opts.skipNulls : defaults.skipNulls, - sort: typeof opts.sort === "function" ? opts.sort : null, - strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults.strictNullHandling - }; - }; - module.exports = function(object4, opts) { - var obj = object4; - var options = normalizeStringifyOptions(opts); - var objKeys; - var filter; - if (typeof options.filter === "function") { - filter = options.filter; - obj = filter("", obj); - } else if (isArray(options.filter)) { - filter = options.filter; - objKeys = filter; - } - var keys = []; - if (typeof obj !== "object" || obj === null) { - return ""; - } - var generateArrayPrefix = arrayPrefixGenerators[options.arrayFormat]; - var commaRoundTrip = generateArrayPrefix === "comma" && options.commaRoundTrip; - if (!objKeys) { - objKeys = Object.keys(obj); - } - if (options.sort) { - objKeys.sort(options.sort); - } - var sideChannel = getSideChannel(); - for (var i = 0;i < objKeys.length; ++i) { - var key = objKeys[i]; - var value = obj[key]; - if (options.skipNulls && value === null) { - continue; - } - pushToArray(keys, stringify(value, key, generateArrayPrefix, commaRoundTrip, options.allowEmptyArrays, options.strictNullHandling, options.skipNulls, options.encodeDotInKeys, options.encode ? options.encoder : null, options.filter, options.sort, options.allowDots, options.serializeDate, options.format, options.formatter, options.encodeValuesOnly, options.charset, sideChannel)); - } - var joined = keys.join(options.delimiter); - var prefix = options.addQueryPrefix === true ? "?" : ""; - if (options.charsetSentinel) { - if (options.charset === "iso-8859-1") { - prefix += "utf8=%26%2310003%3B&"; - } else { - prefix += "utf8=%E2%9C%93&"; - } - } - return joined.length > 0 ? prefix + joined : ""; - }; -}); - -// node_modules/qs/lib/parse.js -var require_parse2 = __commonJS((exports, module) => { - var utils = require_utils2(); - var has = Object.prototype.hasOwnProperty; - var isArray = Array.isArray; - var defaults = { - allowDots: false, - allowEmptyArrays: false, - allowPrototypes: false, - allowSparse: false, - arrayLimit: 20, - charset: "utf-8", - charsetSentinel: false, - comma: false, - decodeDotInKeys: false, - decoder: utils.decode, - delimiter: "&", - depth: 5, - duplicates: "combine", - ignoreQueryPrefix: false, - interpretNumericEntities: false, - parameterLimit: 1000, - parseArrays: true, - plainObjects: false, - strictDepth: false, - strictNullHandling: false, - throwOnLimitExceeded: false - }; - var interpretNumericEntities = function(str) { - return str.replace(/&#(\d+);/g, function($0, numberStr) { - return String.fromCharCode(parseInt(numberStr, 10)); - }); - }; - var parseArrayValue = function(val, options, currentArrayLength) { - if (val && typeof val === "string" && options.comma && val.indexOf(",") > -1) { - return val.split(","); - } - if (options.throwOnLimitExceeded && currentArrayLength >= options.arrayLimit) { - throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array."); - } - return val; - }; - var isoSentinel = "utf8=%26%2310003%3B"; - var charsetSentinel = "utf8=%E2%9C%93"; - var parseValues = function parseQueryStringValues(str, options) { - var obj = { __proto__: null }; - var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, "") : str; - cleanStr = cleanStr.replace(/%5B/gi, "[").replace(/%5D/gi, "]"); - var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit; - var parts = cleanStr.split(options.delimiter, options.throwOnLimitExceeded ? limit + 1 : limit); - if (options.throwOnLimitExceeded && parts.length > limit) { - throw new RangeError("Parameter limit exceeded. Only " + limit + " parameter" + (limit === 1 ? "" : "s") + " allowed."); - } - var skipIndex = -1; - var i; - var charset = options.charset; - if (options.charsetSentinel) { - for (i = 0;i < parts.length; ++i) { - if (parts[i].indexOf("utf8=") === 0) { - if (parts[i] === charsetSentinel) { - charset = "utf-8"; - } else if (parts[i] === isoSentinel) { - charset = "iso-8859-1"; - } - skipIndex = i; - i = parts.length; - } - } - } - for (i = 0;i < parts.length; ++i) { - if (i === skipIndex) { - continue; - } - var part = parts[i]; - var bracketEqualsPos = part.indexOf("]="); - var pos = bracketEqualsPos === -1 ? part.indexOf("=") : bracketEqualsPos + 1; - var key; - var val; - if (pos === -1) { - key = options.decoder(part, defaults.decoder, charset, "key"); - val = options.strictNullHandling ? null : ""; - } else { - key = options.decoder(part.slice(0, pos), defaults.decoder, charset, "key"); - if (key !== null) { - val = utils.maybeMap(parseArrayValue(part.slice(pos + 1), options, isArray(obj[key]) ? obj[key].length : 0), function(encodedVal) { - return options.decoder(encodedVal, defaults.decoder, charset, "value"); - }); - } - } - if (val && options.interpretNumericEntities && charset === "iso-8859-1") { - val = interpretNumericEntities(String(val)); - } - if (part.indexOf("[]=") > -1) { - val = isArray(val) ? [val] : val; - } - if (options.comma && isArray(val) && val.length > options.arrayLimit) { - if (options.throwOnLimitExceeded) { - throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array."); - } - val = utils.combine([], val, options.arrayLimit, options.plainObjects); - } - if (key !== null) { - var existing = has.call(obj, key); - if (existing && options.duplicates === "combine") { - obj[key] = utils.combine(obj[key], val, options.arrayLimit, options.plainObjects); - } else if (!existing || options.duplicates === "last") { - obj[key] = val; - } - } - } - return obj; - }; - var parseObject = function(chain, val, options, valuesParsed) { - var currentArrayLength = 0; - if (chain.length > 0 && chain[chain.length - 1] === "[]") { - var parentKey = chain.slice(0, -1).join(""); - currentArrayLength = Array.isArray(val) && val[parentKey] ? val[parentKey].length : 0; - } - var leaf = valuesParsed ? val : parseArrayValue(val, options, currentArrayLength); - for (var i = chain.length - 1;i >= 0; --i) { - var obj; - var root = chain[i]; - if (root === "[]" && options.parseArrays) { - if (utils.isOverflow(leaf)) { - obj = leaf; - } else { - obj = options.allowEmptyArrays && (leaf === "" || options.strictNullHandling && leaf === null) ? [] : utils.combine([], leaf, options.arrayLimit, options.plainObjects); - } - } else { - obj = options.plainObjects ? { __proto__: null } : {}; - var cleanRoot = root.charAt(0) === "[" && root.charAt(root.length - 1) === "]" ? root.slice(1, -1) : root; - var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, ".") : cleanRoot; - var index = parseInt(decodedRoot, 10); - var isValidArrayIndex = !isNaN(index) && root !== decodedRoot && String(index) === decodedRoot && index >= 0 && options.parseArrays; - if (!options.parseArrays && decodedRoot === "") { - obj = { 0: leaf }; - } else if (isValidArrayIndex && index < options.arrayLimit) { - obj = []; - obj[index] = leaf; - } else if (isValidArrayIndex && options.throwOnLimitExceeded) { - throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array."); - } else if (isValidArrayIndex) { - obj[index] = leaf; - utils.markOverflow(obj, index); - } else if (decodedRoot !== "__proto__") { - obj[decodedRoot] = leaf; - } - } - leaf = obj; - } - return leaf; - }; - var splitKeyIntoSegments = function splitKeyIntoSegments2(givenKey, options) { - var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, "[$1]") : givenKey; - if (options.depth <= 0) { - if (!options.plainObjects && has.call(Object.prototype, key)) { - if (!options.allowPrototypes) { - return; - } - } - return [key]; - } - var brackets = /(\[[^[\]]*])/; - var child = /(\[[^[\]]*])/g; - var segment = brackets.exec(key); - var parent = segment ? key.slice(0, segment.index) : key; - var keys = []; - if (parent) { - if (!options.plainObjects && has.call(Object.prototype, parent)) { - if (!options.allowPrototypes) { - return; - } - } - keys[keys.length] = parent; - } - var i = 0; - while ((segment = child.exec(key)) !== null && i < options.depth) { - i += 1; - var segmentContent = segment[1].slice(1, -1); - if (!options.plainObjects && has.call(Object.prototype, segmentContent)) { - if (!options.allowPrototypes) { - return; - } - } - keys[keys.length] = segment[1]; - } - if (segment) { - if (options.strictDepth === true) { - throw new RangeError("Input depth exceeded depth option of " + options.depth + " and strictDepth is true"); - } - keys[keys.length] = "[" + key.slice(segment.index) + "]"; - } - return keys; - }; - var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) { - if (!givenKey) { - return; - } - var keys = splitKeyIntoSegments(givenKey, options); - if (!keys) { - return; - } - return parseObject(keys, val, options, valuesParsed); - }; - var normalizeParseOptions = function normalizeParseOptions2(opts) { - if (!opts) { - return defaults; - } - if (typeof opts.allowEmptyArrays !== "undefined" && typeof opts.allowEmptyArrays !== "boolean") { - throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided"); - } - if (typeof opts.decodeDotInKeys !== "undefined" && typeof opts.decodeDotInKeys !== "boolean") { - throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided"); - } - if (opts.decoder !== null && typeof opts.decoder !== "undefined" && typeof opts.decoder !== "function") { - throw new TypeError("Decoder has to be a function."); - } - if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") { - throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined"); - } - if (typeof opts.throwOnLimitExceeded !== "undefined" && typeof opts.throwOnLimitExceeded !== "boolean") { - throw new TypeError("`throwOnLimitExceeded` option must be a boolean"); - } - var charset = typeof opts.charset === "undefined" ? defaults.charset : opts.charset; - var duplicates = typeof opts.duplicates === "undefined" ? defaults.duplicates : opts.duplicates; - if (duplicates !== "combine" && duplicates !== "first" && duplicates !== "last") { - throw new TypeError("The duplicates option must be either combine, first, or last"); - } - var allowDots = typeof opts.allowDots === "undefined" ? opts.decodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots; - return { - allowDots, - allowEmptyArrays: typeof opts.allowEmptyArrays === "boolean" ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays, - allowPrototypes: typeof opts.allowPrototypes === "boolean" ? opts.allowPrototypes : defaults.allowPrototypes, - allowSparse: typeof opts.allowSparse === "boolean" ? opts.allowSparse : defaults.allowSparse, - arrayLimit: typeof opts.arrayLimit === "number" ? opts.arrayLimit : defaults.arrayLimit, - charset, - charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults.charsetSentinel, - comma: typeof opts.comma === "boolean" ? opts.comma : defaults.comma, - decodeDotInKeys: typeof opts.decodeDotInKeys === "boolean" ? opts.decodeDotInKeys : defaults.decodeDotInKeys, - decoder: typeof opts.decoder === "function" ? opts.decoder : defaults.decoder, - delimiter: typeof opts.delimiter === "string" || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter, - depth: typeof opts.depth === "number" || opts.depth === false ? +opts.depth : defaults.depth, - duplicates, - ignoreQueryPrefix: opts.ignoreQueryPrefix === true, - interpretNumericEntities: typeof opts.interpretNumericEntities === "boolean" ? opts.interpretNumericEntities : defaults.interpretNumericEntities, - parameterLimit: typeof opts.parameterLimit === "number" ? opts.parameterLimit : defaults.parameterLimit, - parseArrays: opts.parseArrays !== false, - plainObjects: typeof opts.plainObjects === "boolean" ? opts.plainObjects : defaults.plainObjects, - strictDepth: typeof opts.strictDepth === "boolean" ? !!opts.strictDepth : defaults.strictDepth, - strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults.strictNullHandling, - throwOnLimitExceeded: typeof opts.throwOnLimitExceeded === "boolean" ? opts.throwOnLimitExceeded : false - }; - }; - module.exports = function(str, opts) { - var options = normalizeParseOptions(opts); - if (str === "" || str === null || typeof str === "undefined") { - return options.plainObjects ? { __proto__: null } : {}; - } - var tempObj = typeof str === "string" ? parseValues(str, options) : str; - var obj = options.plainObjects ? { __proto__: null } : {}; - var keys = Object.keys(tempObj); - for (var i = 0;i < keys.length; ++i) { - var key = keys[i]; - var newObj = parseKeys(key, tempObj[key], options, typeof str === "string"); - obj = utils.merge(obj, newObj, options); - } - if (options.allowSparse === true) { - return obj; - } - return utils.compact(obj); - }; -}); - -// node_modules/qs/lib/index.js -var require_lib2 = __commonJS((exports, module) => { - var stringify = require_stringify(); - var parse5 = require_parse2(); - var formats = require_formats2(); - module.exports = { - formats, - parse: parse5, - stringify - }; -}); - -// node_modules/body-parser/lib/types/urlencoded.js -var require_urlencoded = __commonJS((exports, module) => { - /*! - * body-parser - * Copyright(c) 2014 Jonathan Ong - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - */ - var bytes = require_bytes(); - var contentType = require_content_type(); - var createError = require_http_errors(); - var debug = require_src()("body-parser:urlencoded"); - var deprecate = require_depd()("body-parser"); - var read = require_read(); - var typeis = require_type_is(); - module.exports = urlencoded; - var parsers = Object.create(null); - function urlencoded(options) { - var opts = options || {}; - if (opts.extended === undefined) { - deprecate("undefined extended: provide extended option"); - } - var extended = opts.extended !== false; - var inflate = opts.inflate !== false; - var limit = typeof opts.limit !== "number" ? bytes.parse(opts.limit || "100kb") : opts.limit; - var type = opts.type || "application/x-www-form-urlencoded"; - var verify = opts.verify || false; - if (verify !== false && typeof verify !== "function") { - throw new TypeError("option verify must be function"); - } - var queryparse = extended ? extendedparser(opts) : simpleparser(opts); - var shouldParse = typeof type !== "function" ? typeChecker(type) : type; - function parse5(body) { - return body.length ? queryparse(body) : {}; - } - return function urlencodedParser(req, res, next) { - if (req._body) { - debug("body already parsed"); - next(); - return; - } - req.body = req.body || {}; - if (!typeis.hasBody(req)) { - debug("skip empty body"); - next(); - return; - } - debug("content-type %j", req.headers["content-type"]); - if (!shouldParse(req)) { - debug("skip parsing"); - next(); - return; - } - var charset = getCharset(req) || "utf-8"; - if (charset !== "utf-8") { - debug("invalid charset"); - next(createError(415, 'unsupported charset "' + charset.toUpperCase() + '"', { - charset, - type: "charset.unsupported" - })); - return; - } - read(req, res, next, parse5, debug, { - debug, - encoding: charset, - inflate, - limit, - verify - }); - }; - } - function extendedparser(options) { - var parameterLimit = options.parameterLimit !== undefined ? options.parameterLimit : 1000; - var depth = options.depth !== undefined ? options.depth : 32; - var parse5 = parser("qs"); - if (isNaN(parameterLimit) || parameterLimit < 1) { - throw new TypeError("option parameterLimit must be a positive number"); - } - if (isNaN(depth) || depth < 0) { - throw new TypeError("option depth must be a zero or a positive number"); - } - if (isFinite(parameterLimit)) { - parameterLimit = parameterLimit | 0; - } - return function queryparse(body) { - var paramCount = parameterCount(body, parameterLimit); - if (paramCount === undefined) { - debug("too many parameters"); - throw createError(413, "too many parameters", { - type: "parameters.too.many" - }); - } - var arrayLimit = Math.max(100, paramCount); - debug("parse extended urlencoding"); - try { - return parse5(body, { - allowPrototypes: true, - arrayLimit, - depth, - strictDepth: true, - parameterLimit - }); - } catch (err) { - if (err instanceof RangeError) { - throw createError(400, "The input exceeded the depth", { - type: "querystring.parse.rangeError" - }); - } else { - throw err; - } - } - }; - } - function getCharset(req) { - try { - return (contentType.parse(req).parameters.charset || "").toLowerCase(); - } catch (e) { - return; - } - } - function parameterCount(body, limit) { - var count = 0; - var index = 0; - while ((index = body.indexOf("&", index)) !== -1) { - count++; - index++; - if (count === limit) { - return; - } - } - return count; - } - function parser(name) { - var mod = parsers[name]; - if (mod !== undefined) { - return mod.parse; - } - switch (name) { - case "qs": - mod = require_lib2(); - break; - case "querystring": - mod = __require("querystring"); - break; - } - parsers[name] = mod; - return mod.parse; - } - function simpleparser(options) { - var parameterLimit = options.parameterLimit !== undefined ? options.parameterLimit : 1000; - var parse5 = parser("querystring"); - if (isNaN(parameterLimit) || parameterLimit < 1) { - throw new TypeError("option parameterLimit must be a positive number"); - } - if (isFinite(parameterLimit)) { - parameterLimit = parameterLimit | 0; - } - return function queryparse(body) { - var paramCount = parameterCount(body, parameterLimit); - if (paramCount === undefined) { - debug("too many parameters"); - throw createError(413, "too many parameters", { - type: "parameters.too.many" - }); - } - debug("parse urlencoding"); - return parse5(body, undefined, undefined, { maxKeys: parameterLimit }); - }; - } - function typeChecker(type) { - return function checkType(req) { - return Boolean(typeis(req, type)); - }; - } -}); - -// node_modules/body-parser/index.js -var require_body_parser = __commonJS((exports, module) => { - /*! - * body-parser - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - */ - var deprecate = require_depd()("body-parser"); - var parsers = Object.create(null); - exports = module.exports = deprecate.function(bodyParser, "bodyParser: use individual json/urlencoded middlewares"); - Object.defineProperty(exports, "json", { - configurable: true, - enumerable: true, - get: createParserGetter("json") - }); - Object.defineProperty(exports, "raw", { - configurable: true, - enumerable: true, - get: createParserGetter("raw") - }); - Object.defineProperty(exports, "text", { - configurable: true, - enumerable: true, - get: createParserGetter("text") - }); - Object.defineProperty(exports, "urlencoded", { - configurable: true, - enumerable: true, - get: createParserGetter("urlencoded") - }); - function bodyParser(options) { - var opts = Object.create(options || null, { - type: { - configurable: true, - enumerable: true, - value: undefined, - writable: true - } - }); - var _urlencoded = exports.urlencoded(opts); - var _json = exports.json(opts); - return function bodyParser2(req, res, next) { - _json(req, res, function(err) { - if (err) - return next(err); - _urlencoded(req, res, next); - }); - }; - } - function createParserGetter(name) { - return function get() { - return loadParser(name); - }; - } - function loadParser(parserName) { - var parser = parsers[parserName]; - if (parser !== undefined) { - return parser; - } - switch (parserName) { - case "json": - parser = require_json(); - break; - case "raw": - parser = require_raw(); - break; - case "text": - parser = require_text(); - break; - case "urlencoded": - parser = require_urlencoded(); - break; - } - return parsers[parserName] = parser; - } -}); - -// node_modules/merge-descriptors/index.js -var require_merge_descriptors = __commonJS((exports, module) => { - /*! - * merge-descriptors - * Copyright(c) 2014 Jonathan Ong - * Copyright(c) 2015 Douglas Christopher Wilson - * MIT Licensed - */ - module.exports = merge2; - var hasOwnProperty = Object.prototype.hasOwnProperty; - function merge2(dest, src, redefine) { - if (!dest) { - throw new TypeError("argument dest is required"); - } - if (!src) { - throw new TypeError("argument src is required"); - } - if (redefine === undefined) { - redefine = true; - } - Object.getOwnPropertyNames(src).forEach(function forEachOwnPropertyName(name) { - if (!redefine && hasOwnProperty.call(dest, name)) { - return; - } - var descriptor = Object.getOwnPropertyDescriptor(src, name); - Object.defineProperty(dest, name, descriptor); - }); - return dest; - } -}); - -// node_modules/encodeurl/index.js -var require_encodeurl = __commonJS((exports, module) => { - /*! - * encodeurl - * Copyright(c) 2016 Douglas Christopher Wilson - * MIT Licensed - */ - module.exports = encodeUrl; - var ENCODE_CHARS_REGEXP = /(?:[^\x21\x23-\x3B\x3D\x3F-\x5F\x61-\x7A\x7C\x7E]|%(?:[^0-9A-Fa-f]|[0-9A-Fa-f][^0-9A-Fa-f]|$))+/g; - var UNMATCHED_SURROGATE_PAIR_REGEXP = /(^|[^\uD800-\uDBFF])[\uDC00-\uDFFF]|[\uD800-\uDBFF]([^\uDC00-\uDFFF]|$)/g; - var UNMATCHED_SURROGATE_PAIR_REPLACE = "$1�$2"; - function encodeUrl(url) { - return String(url).replace(UNMATCHED_SURROGATE_PAIR_REGEXP, UNMATCHED_SURROGATE_PAIR_REPLACE).replace(ENCODE_CHARS_REGEXP, encodeURI); - } -}); - -// node_modules/escape-html/index.js -var require_escape_html = __commonJS((exports, module) => { - /*! - * escape-html - * Copyright(c) 2012-2013 TJ Holowaychuk - * Copyright(c) 2015 Andreas Lubbe - * Copyright(c) 2015 Tiancheng "Timothy" Gu - * MIT Licensed - */ - var matchHtmlRegExp = /["'&<>]/; - module.exports = escapeHtml; - function escapeHtml(string4) { - var str = "" + string4; - var match = matchHtmlRegExp.exec(str); - if (!match) { - return str; - } - var escape2; - var html = ""; - var index = 0; - var lastIndex = 0; - for (index = match.index;index < str.length; index++) { - switch (str.charCodeAt(index)) { - case 34: - escape2 = """; - break; - case 38: - escape2 = "&"; - break; - case 39: - escape2 = "'"; - break; - case 60: - escape2 = "<"; - break; - case 62: - escape2 = ">"; - break; - default: - continue; - } - if (lastIndex !== index) { - html += str.substring(lastIndex, index); - } - lastIndex = index + 1; - html += escape2; - } - return lastIndex !== index ? html + str.substring(lastIndex, index) : html; - } -}); - -// node_modules/parseurl/index.js -var require_parseurl = __commonJS((exports, module) => { - /*! - * parseurl - * Copyright(c) 2014 Jonathan Ong - * Copyright(c) 2014-2017 Douglas Christopher Wilson - * MIT Licensed - */ - var url = __require("url"); - var parse5 = url.parse; - var Url = url.Url; - module.exports = parseurl; - module.exports.original = originalurl; - function parseurl(req) { - var url2 = req.url; - if (url2 === undefined) { - return; - } - var parsed = req._parsedUrl; - if (fresh(url2, parsed)) { - return parsed; - } - parsed = fastparse(url2); - parsed._raw = url2; - return req._parsedUrl = parsed; - } - function originalurl(req) { - var url2 = req.originalUrl; - if (typeof url2 !== "string") { - return parseurl(req); - } - var parsed = req._parsedOriginalUrl; - if (fresh(url2, parsed)) { - return parsed; - } - parsed = fastparse(url2); - parsed._raw = url2; - return req._parsedOriginalUrl = parsed; - } - function fastparse(str) { - if (typeof str !== "string" || str.charCodeAt(0) !== 47) { - return parse5(str); - } - var pathname = str; - var query = null; - var search = null; - for (var i = 1;i < str.length; i++) { - switch (str.charCodeAt(i)) { - case 63: - if (search === null) { - pathname = str.substring(0, i); - query = str.substring(i + 1); - search = str.substring(i); - } - break; - case 9: - case 10: - case 12: - case 13: - case 32: - case 35: - case 160: - case 65279: - return parse5(str); - } - } - var url2 = Url !== undefined ? new Url : {}; - url2.path = str; - url2.href = str; - url2.pathname = pathname; - if (search !== null) { - url2.query = query; - url2.search = search; - } - return url2; - } - function fresh(url2, parsedUrl) { - return typeof parsedUrl === "object" && parsedUrl !== null && (Url === undefined || parsedUrl instanceof Url) && parsedUrl._raw === url2; - } -}); - -// node_modules/finalhandler/index.js -var require_finalhandler = __commonJS((exports, module) => { - /*! - * finalhandler - * Copyright(c) 2014-2022 Douglas Christopher Wilson - * MIT Licensed - */ - var debug = require_src()("finalhandler"); - var encodeUrl = require_encodeurl(); - var escapeHtml = require_escape_html(); - var onFinished = require_on_finished(); - var parseUrl = require_parseurl(); - var statuses = require_statuses(); - var unpipe = require_unpipe(); - var DOUBLE_SPACE_REGEXP = /\x20{2}/g; - var NEWLINE_REGEXP = /\n/g; - var defer = typeof setImmediate === "function" ? setImmediate : function(fn) { - process.nextTick(fn.bind.apply(fn, arguments)); - }; - var isFinished = onFinished.isFinished; - function createHtmlDocument(message) { - var body = escapeHtml(message).replace(NEWLINE_REGEXP, "
").replace(DOUBLE_SPACE_REGEXP, "  "); - return ` -` + ` -` + ` -` + ` -` + `Error -` + ` -` + ` -` + "
" + body + `
-` + ` -` + ` -`; - } - module.exports = finalhandler; - function finalhandler(req, res, options) { - var opts = options || {}; - var env = opts.env || "development"; - var onerror = opts.onerror; - return function(err) { - var headers; - var msg; - var status; - if (!err && headersSent(res)) { - debug("cannot 404 after headers sent"); - return; - } - if (err) { - status = getErrorStatusCode(err); - if (status === undefined) { - status = getResponseStatusCode(res); - } else { - headers = getErrorHeaders(err); - } - msg = getErrorMessage(err, status, env); - } else { - status = 404; - msg = "Cannot " + req.method + " " + encodeUrl(getResourceName(req)); - } - debug("default %s", status); - if (err && onerror) { - defer(onerror, err, req, res); - } - if (headersSent(res)) { - debug("cannot %d after headers sent", status); - if (req.socket) { - req.socket.destroy(); - } - return; - } - send(req, res, status, headers, msg); - }; - } - function getErrorHeaders(err) { - if (!err.headers || typeof err.headers !== "object") { - return; - } - var headers = Object.create(null); - var keys = Object.keys(err.headers); - for (var i = 0;i < keys.length; i++) { - var key = keys[i]; - headers[key] = err.headers[key]; - } - return headers; - } - function getErrorMessage(err, status, env) { - var msg; - if (env !== "production") { - msg = err.stack; - if (!msg && typeof err.toString === "function") { - msg = err.toString(); - } - } - return msg || statuses.message[status]; - } - function getErrorStatusCode(err) { - if (typeof err.status === "number" && err.status >= 400 && err.status < 600) { - return err.status; - } - if (typeof err.statusCode === "number" && err.statusCode >= 400 && err.statusCode < 600) { - return err.statusCode; - } - return; - } - function getResourceName(req) { - try { - return parseUrl.original(req).pathname; - } catch (e) { - return "resource"; - } - } - function getResponseStatusCode(res) { - var status = res.statusCode; - if (typeof status !== "number" || status < 400 || status > 599) { - status = 500; - } - return status; - } - function headersSent(res) { - return typeof res.headersSent !== "boolean" ? Boolean(res._header) : res.headersSent; - } - function send(req, res, status, headers, message) { - function write() { - var body = createHtmlDocument(message); - res.statusCode = status; - if (req.httpVersionMajor < 2) { - res.statusMessage = statuses.message[status]; - } - res.removeHeader("Content-Encoding"); - res.removeHeader("Content-Language"); - res.removeHeader("Content-Range"); - setHeaders(res, headers); - res.setHeader("Content-Security-Policy", "default-src 'none'"); - res.setHeader("X-Content-Type-Options", "nosniff"); - res.setHeader("Content-Type", "text/html; charset=utf-8"); - res.setHeader("Content-Length", Buffer.byteLength(body, "utf8")); - if (req.method === "HEAD") { - res.end(); - return; - } - res.end(body, "utf8"); - } - if (isFinished(req)) { - write(); - return; - } - unpipe(req); - onFinished(req, write); - req.resume(); - } - function setHeaders(res, headers) { - if (!headers) { - return; - } - var keys = Object.keys(headers); - for (var i = 0;i < keys.length; i++) { - var key = keys[i]; - res.setHeader(key, headers[key]); - } - } -}); - -// node_modules/array-flatten/array-flatten.js -var require_array_flatten = __commonJS((exports, module) => { - module.exports = arrayFlatten; - function flattenWithDepth(array3, result, depth) { - for (var i = 0;i < array3.length; i++) { - var value = array3[i]; - if (depth > 0 && Array.isArray(value)) { - flattenWithDepth(value, result, depth - 1); - } else { - result.push(value); - } - } - return result; - } - function flattenForever(array3, result) { - for (var i = 0;i < array3.length; i++) { - var value = array3[i]; - if (Array.isArray(value)) { - flattenForever(value, result); - } else { - result.push(value); - } - } - return result; - } - function arrayFlatten(array3, depth) { - if (depth == null) { - return flattenForever(array3, []); - } - return flattenWithDepth(array3, [], depth); - } -}); - -// node_modules/path-to-regexp/index.js -var require_path_to_regexp = __commonJS((exports, module) => { - module.exports = pathToRegexp; - var MATCHING_GROUP_REGEXP = /\\.|\((?:\?<(.*?)>)?(?!\?)/g; - function pathToRegexp(path8, keys, options) { - options = options || {}; - keys = keys || []; - var strict = options.strict; - var end = options.end !== false; - var flags = options.sensitive ? "" : "i"; - var lookahead = options.lookahead !== false; - var extraOffset = 0; - var keysOffset = keys.length; - var i = 0; - var name = 0; - var pos = 0; - var backtrack = ""; - var m; - if (path8 instanceof RegExp) { - while (m = MATCHING_GROUP_REGEXP.exec(path8.source)) { - if (m[0][0] === "\\") - continue; - keys.push({ - name: m[1] || name++, - optional: false, - offset: m.index - }); - } - return path8; - } - if (Array.isArray(path8)) { - path8 = path8.map(function(value) { - return pathToRegexp(value, keys, options).source; - }); - return new RegExp(path8.join("|"), flags); - } - if (typeof path8 !== "string") { - throw new TypeError("path must be a string, array of strings, or regular expression"); - } - path8 = path8.replace(/\\.|(\/)?(\.)?:(\w+)(\(.*?\))?(\*)?(\?)?|[.*]|\/\(/g, function(match, slash, format, key, capture, star, optional3, offset) { - if (match[0] === "\\") { - backtrack += match; - pos += 2; - return match; - } - if (match === ".") { - backtrack += "\\."; - extraOffset += 1; - pos += 1; - return "\\."; - } - if (slash || format) { - backtrack = ""; - } else { - backtrack += path8.slice(pos, offset); - } - pos = offset + match.length; - if (match === "*") { - extraOffset += 3; - return "(.*)"; - } - if (match === "/(") { - backtrack += "/"; - extraOffset += 2; - return "/(?:"; - } - slash = slash || ""; - format = format ? "\\." : ""; - optional3 = optional3 || ""; - capture = capture ? capture.replace(/\\.|\*/, function(m2) { - return m2 === "*" ? "(.*)" : m2; - }) : backtrack ? "((?:(?!/|" + backtrack + ").)+?)" : "([^/" + format + "]+?)"; - keys.push({ - name: key, - optional: !!optional3, - offset: offset + extraOffset - }); - var result = "(?:" + format + slash + capture + (star ? "((?:[/" + format + "].+?)?)" : "") + ")" + optional3; - extraOffset += result.length - match.length; - return result; - }); - while (m = MATCHING_GROUP_REGEXP.exec(path8)) { - if (m[0][0] === "\\") - continue; - if (keysOffset + i === keys.length || keys[keysOffset + i].offset > m.index) { - keys.splice(keysOffset + i, 0, { - name: name++, - optional: false, - offset: m.index - }); - } - i++; - } - path8 += strict ? "" : path8[path8.length - 1] === "/" ? "?" : "/?"; - if (end) { - path8 += "$"; - } else if (path8[path8.length - 1] !== "/") { - path8 += lookahead ? "(?=/|$)" : "(?:/|$)"; - } - return new RegExp("^" + path8, flags); - } -}); - -// node_modules/express/lib/router/layer.js -var require_layer = __commonJS((exports, module) => { - /*! - * express - * Copyright(c) 2009-2013 TJ Holowaychuk - * Copyright(c) 2013 Roman Shtylman - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - */ - var pathRegexp = require_path_to_regexp(); - var debug = require_src()("express:router:layer"); - var hasOwnProperty = Object.prototype.hasOwnProperty; - module.exports = Layer; - function Layer(path8, options, fn) { - if (!(this instanceof Layer)) { - return new Layer(path8, options, fn); - } - debug("new %o", path8); - var opts = options || {}; - this.handle = fn; - this.name = fn.name || ""; - this.params = undefined; - this.path = undefined; - this.regexp = pathRegexp(path8, this.keys = [], opts); - this.regexp.fast_star = path8 === "*"; - this.regexp.fast_slash = path8 === "/" && opts.end === false; - } - Layer.prototype.handle_error = function handle_error(error2, req, res, next) { - var fn = this.handle; - if (fn.length !== 4) { - return next(error2); - } - try { - fn(error2, req, res, next); - } catch (err) { - next(err); - } - }; - Layer.prototype.handle_request = function handle(req, res, next) { - var fn = this.handle; - if (fn.length > 3) { - return next(); - } - try { - fn(req, res, next); - } catch (err) { - next(err); - } - }; - Layer.prototype.match = function match(path8) { - var match2; - if (path8 != null) { - if (this.regexp.fast_slash) { - this.params = {}; - this.path = ""; - return true; - } - if (this.regexp.fast_star) { - this.params = { "0": decode_param(path8) }; - this.path = path8; - return true; - } - match2 = this.regexp.exec(path8); - } - if (!match2) { - this.params = undefined; - this.path = undefined; - return false; - } - this.params = {}; - this.path = match2[0]; - var keys = this.keys; - var params = this.params; - for (var i = 1;i < match2.length; i++) { - var key = keys[i - 1]; - var prop = key.name; - var val = decode_param(match2[i]); - if (val !== undefined || !hasOwnProperty.call(params, prop)) { - params[prop] = val; - } - } - return true; - }; - function decode_param(val) { - if (typeof val !== "string" || val.length === 0) { - return val; - } - try { - return decodeURIComponent(val); - } catch (err) { - if (err instanceof URIError) { - err.message = "Failed to decode param '" + val + "'"; - err.status = err.statusCode = 400; - } - throw err; - } - } -}); - -// node_modules/methods/index.js -var require_methods = __commonJS((exports, module) => { - /*! - * methods - * Copyright(c) 2013-2014 TJ Holowaychuk - * Copyright(c) 2015-2016 Douglas Christopher Wilson - * MIT Licensed - */ - var http = __require("http"); - module.exports = getCurrentNodeMethods() || getBasicNodeMethods(); - function getCurrentNodeMethods() { - return http.METHODS && http.METHODS.map(function lowerCaseMethod(method) { - return method.toLowerCase(); - }); - } - function getBasicNodeMethods() { - return [ - "get", - "post", - "put", - "head", - "delete", - "options", - "trace", - "copy", - "lock", - "mkcol", - "move", - "purge", - "propfind", - "proppatch", - "unlock", - "report", - "mkactivity", - "checkout", - "merge", - "m-search", - "notify", - "subscribe", - "unsubscribe", - "patch", - "search", - "connect" - ]; - } -}); - -// node_modules/express/lib/router/route.js -var require_route = __commonJS((exports, module) => { - /*! - * express - * Copyright(c) 2009-2013 TJ Holowaychuk - * Copyright(c) 2013 Roman Shtylman - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - */ - var debug = require_src()("express:router:route"); - var flatten = require_array_flatten(); - var Layer = require_layer(); - var methods = require_methods(); - var slice = Array.prototype.slice; - var toString = Object.prototype.toString; - module.exports = Route; - function Route(path8) { - this.path = path8; - this.stack = []; - debug("new %o", path8); - this.methods = {}; - } - Route.prototype._handles_method = function _handles_method(method) { - if (this.methods._all) { - return true; - } - var name = typeof method === "string" ? method.toLowerCase() : method; - if (name === "head" && !this.methods["head"]) { - name = "get"; - } - return Boolean(this.methods[name]); - }; - Route.prototype._options = function _options() { - var methods2 = Object.keys(this.methods); - if (this.methods.get && !this.methods.head) { - methods2.push("head"); - } - for (var i = 0;i < methods2.length; i++) { - methods2[i] = methods2[i].toUpperCase(); - } - return methods2; - }; - Route.prototype.dispatch = function dispatch(req, res, done) { - var idx = 0; - var stack = this.stack; - var sync = 0; - if (stack.length === 0) { - return done(); - } - var method = typeof req.method === "string" ? req.method.toLowerCase() : req.method; - if (method === "head" && !this.methods["head"]) { - method = "get"; - } - req.route = this; - next(); - function next(err) { - if (err && err === "route") { - return done(); - } - if (err && err === "router") { - return done(err); - } - if (++sync > 100) { - return setImmediate(next, err); - } - var layer = stack[idx++]; - if (!layer) { - return done(err); - } - if (layer.method && layer.method !== method) { - next(err); - } else if (err) { - layer.handle_error(err, req, res, next); - } else { - layer.handle_request(req, res, next); - } - sync = 0; - } - }; - Route.prototype.all = function all() { - var handles = flatten(slice.call(arguments)); - for (var i = 0;i < handles.length; i++) { - var handle = handles[i]; - if (typeof handle !== "function") { - var type = toString.call(handle); - var msg = "Route.all() requires a callback function but got a " + type; - throw new TypeError(msg); - } - var layer = Layer("/", {}, handle); - layer.method = undefined; - this.methods._all = true; - this.stack.push(layer); - } - return this; - }; - methods.forEach(function(method) { - Route.prototype[method] = function() { - var handles = flatten(slice.call(arguments)); - for (var i = 0;i < handles.length; i++) { - var handle = handles[i]; - if (typeof handle !== "function") { - var type = toString.call(handle); - var msg = "Route." + method + "() requires a callback function but got a " + type; - throw new Error(msg); - } - debug("%s %o", method, this.path); - var layer = Layer("/", {}, handle); - layer.method = method; - this.methods[method] = true; - this.stack.push(layer); - } - return this; - }; - }); -}); - -// node_modules/utils-merge/index.js -var require_utils_merge = __commonJS((exports, module) => { - exports = module.exports = function(a, b) { - if (a && b) { - for (var key in b) { - a[key] = b[key]; - } - } - return a; - }; -}); - -// node_modules/express/lib/router/index.js -var require_router = __commonJS((exports, module) => { - /*! - * express - * Copyright(c) 2009-2013 TJ Holowaychuk - * Copyright(c) 2013 Roman Shtylman - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - */ - var Route = require_route(); - var Layer = require_layer(); - var methods = require_methods(); - var mixin = require_utils_merge(); - var debug = require_src()("express:router"); - var deprecate = require_depd()("express"); - var flatten = require_array_flatten(); - var parseUrl = require_parseurl(); - var setPrototypeOf = require_setprototypeof(); - var objectRegExp = /^\[object (\S+)\]$/; - var slice = Array.prototype.slice; - var toString = Object.prototype.toString; - var proto = module.exports = function(options) { - var opts = options || {}; - function router(req, res, next) { - router.handle(req, res, next); - } - setPrototypeOf(router, proto); - router.params = {}; - router._params = []; - router.caseSensitive = opts.caseSensitive; - router.mergeParams = opts.mergeParams; - router.strict = opts.strict; - router.stack = []; - return router; - }; - proto.param = function param(name, fn) { - if (typeof name === "function") { - deprecate("router.param(fn): Refactor to use path params"); - this._params.push(name); - return; - } - var params = this._params; - var len = params.length; - var ret; - if (name[0] === ":") { - deprecate("router.param(" + JSON.stringify(name) + ", fn): Use router.param(" + JSON.stringify(name.slice(1)) + ", fn) instead"); - name = name.slice(1); - } - for (var i = 0;i < len; ++i) { - if (ret = params[i](name, fn)) { - fn = ret; - } - } - if (typeof fn !== "function") { - throw new Error("invalid param() call for " + name + ", got " + fn); - } - (this.params[name] = this.params[name] || []).push(fn); - return this; - }; - proto.handle = function handle(req, res, out) { - var self2 = this; - debug("dispatching %s %s", req.method, req.url); - var idx = 0; - var protohost = getProtohost(req.url) || ""; - var removed = ""; - var slashAdded = false; - var sync = 0; - var paramcalled = {}; - var options = []; - var stack = self2.stack; - var parentParams = req.params; - var parentUrl = req.baseUrl || ""; - var done = restore(out, req, "baseUrl", "next", "params"); - req.next = next; - if (req.method === "OPTIONS") { - done = wrap(done, function(old, err) { - if (err || options.length === 0) - return old(err); - sendOptionsResponse(res, options, old); - }); - } - req.baseUrl = parentUrl; - req.originalUrl = req.originalUrl || req.url; - next(); - function next(err) { - var layerError = err === "route" ? null : err; - if (slashAdded) { - req.url = req.url.slice(1); - slashAdded = false; - } - if (removed.length !== 0) { - req.baseUrl = parentUrl; - req.url = protohost + removed + req.url.slice(protohost.length); - removed = ""; - } - if (layerError === "router") { - setImmediate(done, null); - return; - } - if (idx >= stack.length) { - setImmediate(done, layerError); - return; - } - if (++sync > 100) { - return setImmediate(next, err); - } - var path8 = getPathname(req); - if (path8 == null) { - return done(layerError); - } - var layer; - var match; - var route; - while (match !== true && idx < stack.length) { - layer = stack[idx++]; - match = matchLayer(layer, path8); - route = layer.route; - if (typeof match !== "boolean") { - layerError = layerError || match; - } - if (match !== true) { - continue; - } - if (!route) { - continue; - } - if (layerError) { - match = false; - continue; - } - var method = req.method; - var has_method = route._handles_method(method); - if (!has_method && method === "OPTIONS") { - appendMethods(options, route._options()); - } - if (!has_method && method !== "HEAD") { - match = false; - } - } - if (match !== true) { - return done(layerError); - } - if (route) { - req.route = route; - } - req.params = self2.mergeParams ? mergeParams(layer.params, parentParams) : layer.params; - var layerPath = layer.path; - self2.process_params(layer, paramcalled, req, res, function(err2) { - if (err2) { - next(layerError || err2); - } else if (route) { - layer.handle_request(req, res, next); - } else { - trim_prefix(layer, layerError, layerPath, path8); - } - sync = 0; - }); - } - function trim_prefix(layer, layerError, layerPath, path8) { - if (layerPath.length !== 0) { - if (layerPath !== path8.slice(0, layerPath.length)) { - next(layerError); - return; - } - var c = path8[layerPath.length]; - if (c && c !== "/" && c !== ".") - return next(layerError); - debug("trim prefix (%s) from url %s", layerPath, req.url); - removed = layerPath; - req.url = protohost + req.url.slice(protohost.length + removed.length); - if (!protohost && req.url[0] !== "/") { - req.url = "/" + req.url; - slashAdded = true; - } - req.baseUrl = parentUrl + (removed[removed.length - 1] === "/" ? removed.substring(0, removed.length - 1) : removed); - } - debug("%s %s : %s", layer.name, layerPath, req.originalUrl); - if (layerError) { - layer.handle_error(layerError, req, res, next); - } else { - layer.handle_request(req, res, next); - } - } - }; - proto.process_params = function process_params(layer, called, req, res, done) { - var params = this.params; - var keys = layer.keys; - if (!keys || keys.length === 0) { - return done(); - } - var i = 0; - var name; - var paramIndex = 0; - var key; - var paramVal; - var paramCallbacks; - var paramCalled; - function param(err) { - if (err) { - return done(err); - } - if (i >= keys.length) { - return done(); - } - paramIndex = 0; - key = keys[i++]; - name = key.name; - paramVal = req.params[name]; - paramCallbacks = params[name]; - paramCalled = called[name]; - if (paramVal === undefined || !paramCallbacks) { - return param(); - } - if (paramCalled && (paramCalled.match === paramVal || paramCalled.error && paramCalled.error !== "route")) { - req.params[name] = paramCalled.value; - return param(paramCalled.error); - } - called[name] = paramCalled = { - error: null, - match: paramVal, - value: paramVal - }; - paramCallback(); - } - function paramCallback(err) { - var fn = paramCallbacks[paramIndex++]; - paramCalled.value = req.params[key.name]; - if (err) { - paramCalled.error = err; - param(err); - return; - } - if (!fn) - return param(); - try { - fn(req, res, paramCallback, paramVal, key.name); - } catch (e) { - paramCallback(e); - } - } - param(); - }; - proto.use = function use(fn) { - var offset = 0; - var path8 = "/"; - if (typeof fn !== "function") { - var arg = fn; - while (Array.isArray(arg) && arg.length !== 0) { - arg = arg[0]; - } - if (typeof arg !== "function") { - offset = 1; - path8 = fn; - } - } - var callbacks = flatten(slice.call(arguments, offset)); - if (callbacks.length === 0) { - throw new TypeError("Router.use() requires a middleware function"); - } - for (var i = 0;i < callbacks.length; i++) { - var fn = callbacks[i]; - if (typeof fn !== "function") { - throw new TypeError("Router.use() requires a middleware function but got a " + gettype(fn)); - } - debug("use %o %s", path8, fn.name || ""); - var layer = new Layer(path8, { - sensitive: this.caseSensitive, - strict: false, - end: false - }, fn); - layer.route = undefined; - this.stack.push(layer); - } - return this; - }; - proto.route = function route(path8) { - var route2 = new Route(path8); - var layer = new Layer(path8, { - sensitive: this.caseSensitive, - strict: this.strict, - end: true - }, route2.dispatch.bind(route2)); - layer.route = route2; - this.stack.push(layer); - return route2; - }; - methods.concat("all").forEach(function(method) { - proto[method] = function(path8) { - var route = this.route(path8); - route[method].apply(route, slice.call(arguments, 1)); - return this; - }; - }); - function appendMethods(list, addition) { - for (var i = 0;i < addition.length; i++) { - var method = addition[i]; - if (list.indexOf(method) === -1) { - list.push(method); - } - } - } - function getPathname(req) { - try { - return parseUrl(req).pathname; - } catch (err) { - return; - } - } - function getProtohost(url) { - if (typeof url !== "string" || url.length === 0 || url[0] === "/") { - return; - } - var searchIndex = url.indexOf("?"); - var pathLength = searchIndex !== -1 ? searchIndex : url.length; - var fqdnIndex = url.slice(0, pathLength).indexOf("://"); - return fqdnIndex !== -1 ? url.substring(0, url.indexOf("/", 3 + fqdnIndex)) : undefined; - } - function gettype(obj) { - var type = typeof obj; - if (type !== "object") { - return type; - } - return toString.call(obj).replace(objectRegExp, "$1"); - } - function matchLayer(layer, path8) { - try { - return layer.match(path8); - } catch (err) { - return err; - } - } - function mergeParams(params, parent) { - if (typeof parent !== "object" || !parent) { - return params; - } - var obj = mixin({}, parent); - if (!(0 in params) || !(0 in parent)) { - return mixin(obj, params); - } - var i = 0; - var o = 0; - while (i in params) { - i++; - } - while (o in parent) { - o++; - } - for (i--;i >= 0; i--) { - params[i + o] = params[i]; - if (i < o) { - delete params[i]; - } - } - return mixin(obj, params); - } - function restore(fn, obj) { - var props = new Array(arguments.length - 2); - var vals = new Array(arguments.length - 2); - for (var i = 0;i < props.length; i++) { - props[i] = arguments[i + 2]; - vals[i] = obj[props[i]]; - } - return function() { - for (var i2 = 0;i2 < props.length; i2++) { - obj[props[i2]] = vals[i2]; - } - return fn.apply(this, arguments); - }; - } - function sendOptionsResponse(res, options, next) { - try { - var body = options.join(","); - res.set("Allow", body); - res.send(body); - } catch (err) { - next(err); - } - } - function wrap(old, fn) { - return function proxy() { - var args = new Array(arguments.length + 1); - args[0] = old; - for (var i = 0, len = arguments.length;i < len; i++) { - args[i + 1] = arguments[i]; - } - fn.apply(this, args); - }; - } -}); - -// node_modules/express/lib/middleware/init.js -var require_init = __commonJS((exports) => { - /*! - * express - * Copyright(c) 2009-2013 TJ Holowaychuk - * Copyright(c) 2013 Roman Shtylman - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - */ - var setPrototypeOf = require_setprototypeof(); - exports.init = function(app) { - return function expressInit(req, res, next) { - if (app.enabled("x-powered-by")) - res.setHeader("X-Powered-By", "Express"); - req.res = res; - res.req = req; - req.next = next; - setPrototypeOf(req, app.request); - setPrototypeOf(res, app.response); - res.locals = res.locals || Object.create(null); - next(); - }; - }; -}); - -// node_modules/express/lib/middleware/query.js -var require_query = __commonJS((exports, module) => { - /*! - * express - * Copyright(c) 2009-2013 TJ Holowaychuk - * Copyright(c) 2013 Roman Shtylman - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - */ - var merge2 = require_utils_merge(); - var parseUrl = require_parseurl(); - var qs = require_lib2(); - module.exports = function query(options) { - var opts = merge2({}, options); - var queryparse = qs.parse; - if (typeof options === "function") { - queryparse = options; - opts = undefined; - } - if (opts !== undefined && opts.allowPrototypes === undefined) { - opts.allowPrototypes = true; - } - return function query2(req, res, next) { - if (!req.query) { - var val = parseUrl(req).query; - req.query = queryparse(val, opts); - } - next(); - }; - }; -}); - -// node_modules/express/lib/view.js -var require_view = __commonJS((exports, module) => { - /*! - * express - * Copyright(c) 2009-2013 TJ Holowaychuk - * Copyright(c) 2013 Roman Shtylman - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - */ - var debug = require_src()("express:view"); - var path8 = __require("path"); - var fs2 = __require("fs"); - var dirname4 = path8.dirname; - var basename2 = path8.basename; - var extname = path8.extname; - var join6 = path8.join; - var resolve = path8.resolve; - module.exports = View; - function View(name, options) { - var opts = options || {}; - this.defaultEngine = opts.defaultEngine; - this.ext = extname(name); - this.name = name; - this.root = opts.root; - if (!this.ext && !this.defaultEngine) { - throw new Error("No default engine was specified and no extension was provided."); - } - var fileName = name; - if (!this.ext) { - this.ext = this.defaultEngine[0] !== "." ? "." + this.defaultEngine : this.defaultEngine; - fileName += this.ext; - } - if (!opts.engines[this.ext]) { - var mod = this.ext.slice(1); - debug('require "%s"', mod); - var fn = __require(mod).__express; - if (typeof fn !== "function") { - throw new Error('Module "' + mod + '" does not provide a view engine.'); - } - opts.engines[this.ext] = fn; - } - this.engine = opts.engines[this.ext]; - this.path = this.lookup(fileName); - } - View.prototype.lookup = function lookup(name) { - var path9; - var roots = [].concat(this.root); - debug('lookup "%s"', name); - for (var i = 0;i < roots.length && !path9; i++) { - var root = roots[i]; - var loc = resolve(root, name); - var dir = dirname4(loc); - var file = basename2(loc); - path9 = this.resolve(dir, file); - } - return path9; - }; - View.prototype.render = function render(options, callback) { - debug('render "%s"', this.path); - this.engine(this.path, options, callback); - }; - View.prototype.resolve = function resolve2(dir, file) { - var ext = this.ext; - var path9 = join6(dir, file); - var stat = tryStat(path9); - if (stat && stat.isFile()) { - return path9; - } - path9 = join6(dir, basename2(file, ext), "index" + ext); - stat = tryStat(path9); - if (stat && stat.isFile()) { - return path9; - } - }; - function tryStat(path9) { - debug('stat "%s"', path9); - try { - return fs2.statSync(path9); - } catch (e) { - return; - } - } -}); - -// node_modules/safe-buffer/index.js -var require_safe_buffer = __commonJS((exports, module) => { - /*! safe-buffer. MIT License. Feross Aboukhadijeh */ - var buffer = __require("buffer"); - var Buffer2 = buffer.Buffer; - function copyProps(src, dst) { - for (var key in src) { - dst[key] = src[key]; - } - } - if (Buffer2.from && Buffer2.alloc && Buffer2.allocUnsafe && Buffer2.allocUnsafeSlow) { - module.exports = buffer; - } else { - copyProps(buffer, exports); - exports.Buffer = SafeBuffer; - } - function SafeBuffer(arg, encodingOrOffset, length) { - return Buffer2(arg, encodingOrOffset, length); - } - SafeBuffer.prototype = Object.create(Buffer2.prototype); - copyProps(Buffer2, SafeBuffer); - SafeBuffer.from = function(arg, encodingOrOffset, length) { - if (typeof arg === "number") { - throw new TypeError("Argument must not be a number"); - } - return Buffer2(arg, encodingOrOffset, length); - }; - SafeBuffer.alloc = function(size, fill, encoding) { - if (typeof size !== "number") { - throw new TypeError("Argument must be a number"); - } - var buf = Buffer2(size); - if (fill !== undefined) { - if (typeof encoding === "string") { - buf.fill(fill, encoding); - } else { - buf.fill(fill); - } - } else { - buf.fill(0); - } - return buf; - }; - SafeBuffer.allocUnsafe = function(size) { - if (typeof size !== "number") { - throw new TypeError("Argument must be a number"); - } - return Buffer2(size); - }; - SafeBuffer.allocUnsafeSlow = function(size) { - if (typeof size !== "number") { - throw new TypeError("Argument must be a number"); - } - return buffer.SlowBuffer(size); - }; -}); - -// node_modules/content-disposition/index.js -var require_content_disposition = __commonJS((exports, module) => { - /*! - * content-disposition - * Copyright(c) 2014-2017 Douglas Christopher Wilson - * MIT Licensed - */ - module.exports = contentDisposition; - module.exports.parse = parse5; - var basename2 = __require("path").basename; - var Buffer2 = require_safe_buffer().Buffer; - var ENCODE_URL_ATTR_CHAR_REGEXP = /[\x00-\x20"'()*,/:;<=>?@[\\\]{}\x7f]/g; - var HEX_ESCAPE_REGEXP = /%[0-9A-Fa-f]{2}/; - var HEX_ESCAPE_REPLACE_REGEXP = /%([0-9A-Fa-f]{2})/g; - var NON_LATIN1_REGEXP = /[^\x20-\x7e\xa0-\xff]/g; - var QESC_REGEXP = /\\([\u0000-\u007f])/g; - var QUOTE_REGEXP = /([\\"])/g; - var PARAM_REGEXP = /;[\x09\x20]*([!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*=[\x09\x20]*("(?:[\x20!\x23-\x5b\x5d-\x7e\x80-\xff]|\\[\x20-\x7e])*"|[!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*/g; - var TEXT_REGEXP = /^[\x20-\x7e\x80-\xff]+$/; - var TOKEN_REGEXP = /^[!#$%&'*+.0-9A-Z^_`a-z|~-]+$/; - var EXT_VALUE_REGEXP = /^([A-Za-z0-9!#$%&+\-^_`{}~]+)'(?:[A-Za-z]{2,3}(?:-[A-Za-z]{3}){0,3}|[A-Za-z]{4,8}|)'((?:%[0-9A-Fa-f]{2}|[A-Za-z0-9!#$&+.^_`|~-])+)$/; - var DISPOSITION_TYPE_REGEXP = /^([!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*(?:$|;)/; - function contentDisposition(filename, options) { - var opts = options || {}; - var type = opts.type || "attachment"; - var params = createparams(filename, opts.fallback); - return format(new ContentDisposition(type, params)); - } - function createparams(filename, fallback) { - if (filename === undefined) { - return; - } - var params = {}; - if (typeof filename !== "string") { - throw new TypeError("filename must be a string"); - } - if (fallback === undefined) { - fallback = true; - } - if (typeof fallback !== "string" && typeof fallback !== "boolean") { - throw new TypeError("fallback must be a string or boolean"); - } - if (typeof fallback === "string" && NON_LATIN1_REGEXP.test(fallback)) { - throw new TypeError("fallback must be ISO-8859-1 string"); - } - var name = basename2(filename); - var isQuotedString = TEXT_REGEXP.test(name); - var fallbackName = typeof fallback !== "string" ? fallback && getlatin1(name) : basename2(fallback); - var hasFallback = typeof fallbackName === "string" && fallbackName !== name; - if (hasFallback || !isQuotedString || HEX_ESCAPE_REGEXP.test(name)) { - params["filename*"] = name; - } - if (isQuotedString || hasFallback) { - params.filename = hasFallback ? fallbackName : name; - } - return params; - } - function format(obj) { - var parameters = obj.parameters; - var type = obj.type; - if (!type || typeof type !== "string" || !TOKEN_REGEXP.test(type)) { - throw new TypeError("invalid type"); - } - var string4 = String(type).toLowerCase(); - if (parameters && typeof parameters === "object") { - var param; - var params = Object.keys(parameters).sort(); - for (var i = 0;i < params.length; i++) { - param = params[i]; - var val = param.substr(-1) === "*" ? ustring(parameters[param]) : qstring(parameters[param]); - string4 += "; " + param + "=" + val; - } - } - return string4; - } - function decodefield(str) { - var match = EXT_VALUE_REGEXP.exec(str); - if (!match) { - throw new TypeError("invalid extended field value"); - } - var charset = match[1].toLowerCase(); - var encoded = match[2]; - var value; - var binary = encoded.replace(HEX_ESCAPE_REPLACE_REGEXP, pdecode); - switch (charset) { - case "iso-8859-1": - value = getlatin1(binary); - break; - case "utf-8": - value = Buffer2.from(binary, "binary").toString("utf8"); - break; - default: - throw new TypeError("unsupported charset in extended field"); - } - return value; - } - function getlatin1(val) { - return String(val).replace(NON_LATIN1_REGEXP, "?"); - } - function parse5(string4) { - if (!string4 || typeof string4 !== "string") { - throw new TypeError("argument string is required"); - } - var match = DISPOSITION_TYPE_REGEXP.exec(string4); - if (!match) { - throw new TypeError("invalid type format"); - } - var index = match[0].length; - var type = match[1].toLowerCase(); - var key; - var names = []; - var params = {}; - var value; - index = PARAM_REGEXP.lastIndex = match[0].substr(-1) === ";" ? index - 1 : index; - while (match = PARAM_REGEXP.exec(string4)) { - if (match.index !== index) { - throw new TypeError("invalid parameter format"); - } - index += match[0].length; - key = match[1].toLowerCase(); - value = match[2]; - if (names.indexOf(key) !== -1) { - throw new TypeError("invalid duplicate parameter"); - } - names.push(key); - if (key.indexOf("*") + 1 === key.length) { - key = key.slice(0, -1); - value = decodefield(value); - params[key] = value; - continue; - } - if (typeof params[key] === "string") { - continue; - } - if (value[0] === '"') { - value = value.substr(1, value.length - 2).replace(QESC_REGEXP, "$1"); - } - params[key] = value; - } - if (index !== -1 && index !== string4.length) { - throw new TypeError("invalid parameter format"); - } - return new ContentDisposition(type, params); - } - function pdecode(str, hex) { - return String.fromCharCode(parseInt(hex, 16)); - } - function pencode(char) { - return "%" + String(char).charCodeAt(0).toString(16).toUpperCase(); - } - function qstring(val) { - var str = String(val); - return '"' + str.replace(QUOTE_REGEXP, "\\$1") + '"'; - } - function ustring(val) { - var str = String(val); - var encoded = encodeURIComponent(str).replace(ENCODE_URL_ATTR_CHAR_REGEXP, pencode); - return "UTF-8''" + encoded; - } - function ContentDisposition(type, parameters) { - this.type = type; - this.parameters = parameters; - } -}); - -// node_modules/etag/index.js -var require_etag = __commonJS((exports, module) => { - /*! - * etag - * Copyright(c) 2014-2016 Douglas Christopher Wilson - * MIT Licensed - */ - module.exports = etag; - var crypto = __require("crypto"); - var Stats = __require("fs").Stats; - var toString = Object.prototype.toString; - function entitytag(entity) { - if (entity.length === 0) { - return '"0-2jmj7l5rSw0yVb/vlWAYkK/YBwk"'; - } - var hash = crypto.createHash("sha1").update(entity, "utf8").digest("base64").substring(0, 27); - var len = typeof entity === "string" ? Buffer.byteLength(entity, "utf8") : entity.length; - return '"' + len.toString(16) + "-" + hash + '"'; - } - function etag(entity, options) { - if (entity == null) { - throw new TypeError("argument entity is required"); - } - var isStats = isstats(entity); - var weak = options && typeof options.weak === "boolean" ? options.weak : isStats; - if (!isStats && typeof entity !== "string" && !Buffer.isBuffer(entity)) { - throw new TypeError("argument entity must be string, Buffer, or fs.Stats"); - } - var tag = isStats ? stattag(entity) : entitytag(entity); - return weak ? "W/" + tag : tag; - } - function isstats(obj) { - if (typeof Stats === "function" && obj instanceof Stats) { - return true; - } - return obj && typeof obj === "object" && "ctime" in obj && toString.call(obj.ctime) === "[object Date]" && "mtime" in obj && toString.call(obj.mtime) === "[object Date]" && "ino" in obj && typeof obj.ino === "number" && "size" in obj && typeof obj.size === "number"; - } - function stattag(stat) { - var mtime = stat.mtime.getTime().toString(16); - var size = stat.size.toString(16); - return '"' + size + "-" + mtime + '"'; - } -}); - -// node_modules/fresh/index.js -var require_fresh = __commonJS((exports, module) => { - /*! - * fresh - * Copyright(c) 2012 TJ Holowaychuk - * Copyright(c) 2016-2017 Douglas Christopher Wilson - * MIT Licensed - */ - var CACHE_CONTROL_NO_CACHE_REGEXP = /(?:^|,)\s*?no-cache\s*?(?:,|$)/; - module.exports = fresh; - function fresh(reqHeaders, resHeaders) { - var modifiedSince = reqHeaders["if-modified-since"]; - var noneMatch = reqHeaders["if-none-match"]; - if (!modifiedSince && !noneMatch) { - return false; - } - var cacheControl = reqHeaders["cache-control"]; - if (cacheControl && CACHE_CONTROL_NO_CACHE_REGEXP.test(cacheControl)) { - return false; - } - if (noneMatch && noneMatch !== "*") { - var etag = resHeaders["etag"]; - if (!etag) { - return false; - } - var etagStale = true; - var matches = parseTokenList(noneMatch); - for (var i = 0;i < matches.length; i++) { - var match = matches[i]; - if (match === etag || match === "W/" + etag || "W/" + match === etag) { - etagStale = false; - break; - } - } - if (etagStale) { - return false; - } - } - if (modifiedSince) { - var lastModified = resHeaders["last-modified"]; - var modifiedStale = !lastModified || !(parseHttpDate(lastModified) <= parseHttpDate(modifiedSince)); - if (modifiedStale) { - return false; - } - } - return true; - } - function parseHttpDate(date4) { - var timestamp = date4 && Date.parse(date4); - return typeof timestamp === "number" ? timestamp : NaN; - } - function parseTokenList(str) { - var end = 0; - var list = []; - var start = 0; - for (var i = 0, len = str.length;i < len; i++) { - switch (str.charCodeAt(i)) { - case 32: - if (start === end) { - start = end = i + 1; - } - break; - case 44: - list.push(str.substring(start, end)); - start = end = i + 1; - break; - default: - end = i + 1; - break; - } - } - list.push(str.substring(start, end)); - return list; - } -}); - -// node_modules/mime/types.json -var require_types2 = __commonJS((exports, module) => { - module.exports = { "application/andrew-inset": ["ez"], "application/applixware": ["aw"], "application/atom+xml": ["atom"], "application/atomcat+xml": ["atomcat"], "application/atomsvc+xml": ["atomsvc"], "application/bdoc": ["bdoc"], "application/ccxml+xml": ["ccxml"], "application/cdmi-capability": ["cdmia"], "application/cdmi-container": ["cdmic"], "application/cdmi-domain": ["cdmid"], "application/cdmi-object": ["cdmio"], "application/cdmi-queue": ["cdmiq"], "application/cu-seeme": ["cu"], "application/dash+xml": ["mpd"], "application/davmount+xml": ["davmount"], "application/docbook+xml": ["dbk"], "application/dssc+der": ["dssc"], "application/dssc+xml": ["xdssc"], "application/ecmascript": ["ecma"], "application/emma+xml": ["emma"], "application/epub+zip": ["epub"], "application/exi": ["exi"], "application/font-tdpfr": ["pfr"], "application/font-woff": [], "application/font-woff2": [], "application/geo+json": ["geojson"], "application/gml+xml": ["gml"], "application/gpx+xml": ["gpx"], "application/gxf": ["gxf"], "application/gzip": ["gz"], "application/hyperstudio": ["stk"], "application/inkml+xml": ["ink", "inkml"], "application/ipfix": ["ipfix"], "application/java-archive": ["jar", "war", "ear"], "application/java-serialized-object": ["ser"], "application/java-vm": ["class"], "application/javascript": ["js", "mjs"], "application/json": ["json", "map"], "application/json5": ["json5"], "application/jsonml+json": ["jsonml"], "application/ld+json": ["jsonld"], "application/lost+xml": ["lostxml"], "application/mac-binhex40": ["hqx"], "application/mac-compactpro": ["cpt"], "application/mads+xml": ["mads"], "application/manifest+json": ["webmanifest"], "application/marc": ["mrc"], "application/marcxml+xml": ["mrcx"], "application/mathematica": ["ma", "nb", "mb"], "application/mathml+xml": ["mathml"], "application/mbox": ["mbox"], "application/mediaservercontrol+xml": ["mscml"], "application/metalink+xml": ["metalink"], "application/metalink4+xml": ["meta4"], "application/mets+xml": ["mets"], "application/mods+xml": ["mods"], "application/mp21": ["m21", "mp21"], "application/mp4": ["mp4s", "m4p"], "application/msword": ["doc", "dot"], "application/mxf": ["mxf"], "application/octet-stream": ["bin", "dms", "lrf", "mar", "so", "dist", "distz", "pkg", "bpk", "dump", "elc", "deploy", "exe", "dll", "deb", "dmg", "iso", "img", "msi", "msp", "msm", "buffer"], "application/oda": ["oda"], "application/oebps-package+xml": ["opf"], "application/ogg": ["ogx"], "application/omdoc+xml": ["omdoc"], "application/onenote": ["onetoc", "onetoc2", "onetmp", "onepkg"], "application/oxps": ["oxps"], "application/patch-ops-error+xml": ["xer"], "application/pdf": ["pdf"], "application/pgp-encrypted": ["pgp"], "application/pgp-signature": ["asc", "sig"], "application/pics-rules": ["prf"], "application/pkcs10": ["p10"], "application/pkcs7-mime": ["p7m", "p7c"], "application/pkcs7-signature": ["p7s"], "application/pkcs8": ["p8"], "application/pkix-attr-cert": ["ac"], "application/pkix-cert": ["cer"], "application/pkix-crl": ["crl"], "application/pkix-pkipath": ["pkipath"], "application/pkixcmp": ["pki"], "application/pls+xml": ["pls"], "application/postscript": ["ai", "eps", "ps"], "application/prs.cww": ["cww"], "application/pskc+xml": ["pskcxml"], "application/raml+yaml": ["raml"], "application/rdf+xml": ["rdf"], "application/reginfo+xml": ["rif"], "application/relax-ng-compact-syntax": ["rnc"], "application/resource-lists+xml": ["rl"], "application/resource-lists-diff+xml": ["rld"], "application/rls-services+xml": ["rs"], "application/rpki-ghostbusters": ["gbr"], "application/rpki-manifest": ["mft"], "application/rpki-roa": ["roa"], "application/rsd+xml": ["rsd"], "application/rss+xml": ["rss"], "application/rtf": ["rtf"], "application/sbml+xml": ["sbml"], "application/scvp-cv-request": ["scq"], "application/scvp-cv-response": ["scs"], "application/scvp-vp-request": ["spq"], "application/scvp-vp-response": ["spp"], "application/sdp": ["sdp"], "application/set-payment-initiation": ["setpay"], "application/set-registration-initiation": ["setreg"], "application/shf+xml": ["shf"], "application/smil+xml": ["smi", "smil"], "application/sparql-query": ["rq"], "application/sparql-results+xml": ["srx"], "application/srgs": ["gram"], "application/srgs+xml": ["grxml"], "application/sru+xml": ["sru"], "application/ssdl+xml": ["ssdl"], "application/ssml+xml": ["ssml"], "application/tei+xml": ["tei", "teicorpus"], "application/thraud+xml": ["tfi"], "application/timestamped-data": ["tsd"], "application/vnd.3gpp.pic-bw-large": ["plb"], "application/vnd.3gpp.pic-bw-small": ["psb"], "application/vnd.3gpp.pic-bw-var": ["pvb"], "application/vnd.3gpp2.tcap": ["tcap"], "application/vnd.3m.post-it-notes": ["pwn"], "application/vnd.accpac.simply.aso": ["aso"], "application/vnd.accpac.simply.imp": ["imp"], "application/vnd.acucobol": ["acu"], "application/vnd.acucorp": ["atc", "acutc"], "application/vnd.adobe.air-application-installer-package+zip": ["air"], "application/vnd.adobe.formscentral.fcdt": ["fcdt"], "application/vnd.adobe.fxp": ["fxp", "fxpl"], "application/vnd.adobe.xdp+xml": ["xdp"], "application/vnd.adobe.xfdf": ["xfdf"], "application/vnd.ahead.space": ["ahead"], "application/vnd.airzip.filesecure.azf": ["azf"], "application/vnd.airzip.filesecure.azs": ["azs"], "application/vnd.amazon.ebook": ["azw"], "application/vnd.americandynamics.acc": ["acc"], "application/vnd.amiga.ami": ["ami"], "application/vnd.android.package-archive": ["apk"], "application/vnd.anser-web-certificate-issue-initiation": ["cii"], "application/vnd.anser-web-funds-transfer-initiation": ["fti"], "application/vnd.antix.game-component": ["atx"], "application/vnd.apple.installer+xml": ["mpkg"], "application/vnd.apple.mpegurl": ["m3u8"], "application/vnd.apple.pkpass": ["pkpass"], "application/vnd.aristanetworks.swi": ["swi"], "application/vnd.astraea-software.iota": ["iota"], "application/vnd.audiograph": ["aep"], "application/vnd.blueice.multipass": ["mpm"], "application/vnd.bmi": ["bmi"], "application/vnd.businessobjects": ["rep"], "application/vnd.chemdraw+xml": ["cdxml"], "application/vnd.chipnuts.karaoke-mmd": ["mmd"], "application/vnd.cinderella": ["cdy"], "application/vnd.claymore": ["cla"], "application/vnd.cloanto.rp9": ["rp9"], "application/vnd.clonk.c4group": ["c4g", "c4d", "c4f", "c4p", "c4u"], "application/vnd.cluetrust.cartomobile-config": ["c11amc"], "application/vnd.cluetrust.cartomobile-config-pkg": ["c11amz"], "application/vnd.commonspace": ["csp"], "application/vnd.contact.cmsg": ["cdbcmsg"], "application/vnd.cosmocaller": ["cmc"], "application/vnd.crick.clicker": ["clkx"], "application/vnd.crick.clicker.keyboard": ["clkk"], "application/vnd.crick.clicker.palette": ["clkp"], "application/vnd.crick.clicker.template": ["clkt"], "application/vnd.crick.clicker.wordbank": ["clkw"], "application/vnd.criticaltools.wbs+xml": ["wbs"], "application/vnd.ctc-posml": ["pml"], "application/vnd.cups-ppd": ["ppd"], "application/vnd.curl.car": ["car"], "application/vnd.curl.pcurl": ["pcurl"], "application/vnd.dart": ["dart"], "application/vnd.data-vision.rdz": ["rdz"], "application/vnd.dece.data": ["uvf", "uvvf", "uvd", "uvvd"], "application/vnd.dece.ttml+xml": ["uvt", "uvvt"], "application/vnd.dece.unspecified": ["uvx", "uvvx"], "application/vnd.dece.zip": ["uvz", "uvvz"], "application/vnd.denovo.fcselayout-link": ["fe_launch"], "application/vnd.dna": ["dna"], "application/vnd.dolby.mlp": ["mlp"], "application/vnd.dpgraph": ["dpg"], "application/vnd.dreamfactory": ["dfac"], "application/vnd.ds-keypoint": ["kpxx"], "application/vnd.dvb.ait": ["ait"], "application/vnd.dvb.service": ["svc"], "application/vnd.dynageo": ["geo"], "application/vnd.ecowin.chart": ["mag"], "application/vnd.enliven": ["nml"], "application/vnd.epson.esf": ["esf"], "application/vnd.epson.msf": ["msf"], "application/vnd.epson.quickanime": ["qam"], "application/vnd.epson.salt": ["slt"], "application/vnd.epson.ssf": ["ssf"], "application/vnd.eszigno3+xml": ["es3", "et3"], "application/vnd.ezpix-album": ["ez2"], "application/vnd.ezpix-package": ["ez3"], "application/vnd.fdf": ["fdf"], "application/vnd.fdsn.mseed": ["mseed"], "application/vnd.fdsn.seed": ["seed", "dataless"], "application/vnd.flographit": ["gph"], "application/vnd.fluxtime.clip": ["ftc"], "application/vnd.framemaker": ["fm", "frame", "maker", "book"], "application/vnd.frogans.fnc": ["fnc"], "application/vnd.frogans.ltf": ["ltf"], "application/vnd.fsc.weblaunch": ["fsc"], "application/vnd.fujitsu.oasys": ["oas"], "application/vnd.fujitsu.oasys2": ["oa2"], "application/vnd.fujitsu.oasys3": ["oa3"], "application/vnd.fujitsu.oasysgp": ["fg5"], "application/vnd.fujitsu.oasysprs": ["bh2"], "application/vnd.fujixerox.ddd": ["ddd"], "application/vnd.fujixerox.docuworks": ["xdw"], "application/vnd.fujixerox.docuworks.binder": ["xbd"], "application/vnd.fuzzysheet": ["fzs"], "application/vnd.genomatix.tuxedo": ["txd"], "application/vnd.geogebra.file": ["ggb"], "application/vnd.geogebra.tool": ["ggt"], "application/vnd.geometry-explorer": ["gex", "gre"], "application/vnd.geonext": ["gxt"], "application/vnd.geoplan": ["g2w"], "application/vnd.geospace": ["g3w"], "application/vnd.gmx": ["gmx"], "application/vnd.google-apps.document": ["gdoc"], "application/vnd.google-apps.presentation": ["gslides"], "application/vnd.google-apps.spreadsheet": ["gsheet"], "application/vnd.google-earth.kml+xml": ["kml"], "application/vnd.google-earth.kmz": ["kmz"], "application/vnd.grafeq": ["gqf", "gqs"], "application/vnd.groove-account": ["gac"], "application/vnd.groove-help": ["ghf"], "application/vnd.groove-identity-message": ["gim"], "application/vnd.groove-injector": ["grv"], "application/vnd.groove-tool-message": ["gtm"], "application/vnd.groove-tool-template": ["tpl"], "application/vnd.groove-vcard": ["vcg"], "application/vnd.hal+xml": ["hal"], "application/vnd.handheld-entertainment+xml": ["zmm"], "application/vnd.hbci": ["hbci"], "application/vnd.hhe.lesson-player": ["les"], "application/vnd.hp-hpgl": ["hpgl"], "application/vnd.hp-hpid": ["hpid"], "application/vnd.hp-hps": ["hps"], "application/vnd.hp-jlyt": ["jlt"], "application/vnd.hp-pcl": ["pcl"], "application/vnd.hp-pclxl": ["pclxl"], "application/vnd.hydrostatix.sof-data": ["sfd-hdstx"], "application/vnd.ibm.minipay": ["mpy"], "application/vnd.ibm.modcap": ["afp", "listafp", "list3820"], "application/vnd.ibm.rights-management": ["irm"], "application/vnd.ibm.secure-container": ["sc"], "application/vnd.iccprofile": ["icc", "icm"], "application/vnd.igloader": ["igl"], "application/vnd.immervision-ivp": ["ivp"], "application/vnd.immervision-ivu": ["ivu"], "application/vnd.insors.igm": ["igm"], "application/vnd.intercon.formnet": ["xpw", "xpx"], "application/vnd.intergeo": ["i2g"], "application/vnd.intu.qbo": ["qbo"], "application/vnd.intu.qfx": ["qfx"], "application/vnd.ipunplugged.rcprofile": ["rcprofile"], "application/vnd.irepository.package+xml": ["irp"], "application/vnd.is-xpr": ["xpr"], "application/vnd.isac.fcs": ["fcs"], "application/vnd.jam": ["jam"], "application/vnd.jcp.javame.midlet-rms": ["rms"], "application/vnd.jisp": ["jisp"], "application/vnd.joost.joda-archive": ["joda"], "application/vnd.kahootz": ["ktz", "ktr"], "application/vnd.kde.karbon": ["karbon"], "application/vnd.kde.kchart": ["chrt"], "application/vnd.kde.kformula": ["kfo"], "application/vnd.kde.kivio": ["flw"], "application/vnd.kde.kontour": ["kon"], "application/vnd.kde.kpresenter": ["kpr", "kpt"], "application/vnd.kde.kspread": ["ksp"], "application/vnd.kde.kword": ["kwd", "kwt"], "application/vnd.kenameaapp": ["htke"], "application/vnd.kidspiration": ["kia"], "application/vnd.kinar": ["kne", "knp"], "application/vnd.koan": ["skp", "skd", "skt", "skm"], "application/vnd.kodak-descriptor": ["sse"], "application/vnd.las.las+xml": ["lasxml"], "application/vnd.llamagraphics.life-balance.desktop": ["lbd"], "application/vnd.llamagraphics.life-balance.exchange+xml": ["lbe"], "application/vnd.lotus-1-2-3": ["123"], "application/vnd.lotus-approach": ["apr"], "application/vnd.lotus-freelance": ["pre"], "application/vnd.lotus-notes": ["nsf"], "application/vnd.lotus-organizer": ["org"], "application/vnd.lotus-screencam": ["scm"], "application/vnd.lotus-wordpro": ["lwp"], "application/vnd.macports.portpkg": ["portpkg"], "application/vnd.mcd": ["mcd"], "application/vnd.medcalcdata": ["mc1"], "application/vnd.mediastation.cdkey": ["cdkey"], "application/vnd.mfer": ["mwf"], "application/vnd.mfmp": ["mfm"], "application/vnd.micrografx.flo": ["flo"], "application/vnd.micrografx.igx": ["igx"], "application/vnd.mif": ["mif"], "application/vnd.mobius.daf": ["daf"], "application/vnd.mobius.dis": ["dis"], "application/vnd.mobius.mbk": ["mbk"], "application/vnd.mobius.mqy": ["mqy"], "application/vnd.mobius.msl": ["msl"], "application/vnd.mobius.plc": ["plc"], "application/vnd.mobius.txf": ["txf"], "application/vnd.mophun.application": ["mpn"], "application/vnd.mophun.certificate": ["mpc"], "application/vnd.mozilla.xul+xml": ["xul"], "application/vnd.ms-artgalry": ["cil"], "application/vnd.ms-cab-compressed": ["cab"], "application/vnd.ms-excel": ["xls", "xlm", "xla", "xlc", "xlt", "xlw"], "application/vnd.ms-excel.addin.macroenabled.12": ["xlam"], "application/vnd.ms-excel.sheet.binary.macroenabled.12": ["xlsb"], "application/vnd.ms-excel.sheet.macroenabled.12": ["xlsm"], "application/vnd.ms-excel.template.macroenabled.12": ["xltm"], "application/vnd.ms-fontobject": ["eot"], "application/vnd.ms-htmlhelp": ["chm"], "application/vnd.ms-ims": ["ims"], "application/vnd.ms-lrm": ["lrm"], "application/vnd.ms-officetheme": ["thmx"], "application/vnd.ms-outlook": ["msg"], "application/vnd.ms-pki.seccat": ["cat"], "application/vnd.ms-pki.stl": ["stl"], "application/vnd.ms-powerpoint": ["ppt", "pps", "pot"], "application/vnd.ms-powerpoint.addin.macroenabled.12": ["ppam"], "application/vnd.ms-powerpoint.presentation.macroenabled.12": ["pptm"], "application/vnd.ms-powerpoint.slide.macroenabled.12": ["sldm"], "application/vnd.ms-powerpoint.slideshow.macroenabled.12": ["ppsm"], "application/vnd.ms-powerpoint.template.macroenabled.12": ["potm"], "application/vnd.ms-project": ["mpp", "mpt"], "application/vnd.ms-word.document.macroenabled.12": ["docm"], "application/vnd.ms-word.template.macroenabled.12": ["dotm"], "application/vnd.ms-works": ["wps", "wks", "wcm", "wdb"], "application/vnd.ms-wpl": ["wpl"], "application/vnd.ms-xpsdocument": ["xps"], "application/vnd.mseq": ["mseq"], "application/vnd.musician": ["mus"], "application/vnd.muvee.style": ["msty"], "application/vnd.mynfc": ["taglet"], "application/vnd.neurolanguage.nlu": ["nlu"], "application/vnd.nitf": ["ntf", "nitf"], "application/vnd.noblenet-directory": ["nnd"], "application/vnd.noblenet-sealer": ["nns"], "application/vnd.noblenet-web": ["nnw"], "application/vnd.nokia.n-gage.data": ["ngdat"], "application/vnd.nokia.n-gage.symbian.install": ["n-gage"], "application/vnd.nokia.radio-preset": ["rpst"], "application/vnd.nokia.radio-presets": ["rpss"], "application/vnd.novadigm.edm": ["edm"], "application/vnd.novadigm.edx": ["edx"], "application/vnd.novadigm.ext": ["ext"], "application/vnd.oasis.opendocument.chart": ["odc"], "application/vnd.oasis.opendocument.chart-template": ["otc"], "application/vnd.oasis.opendocument.database": ["odb"], "application/vnd.oasis.opendocument.formula": ["odf"], "application/vnd.oasis.opendocument.formula-template": ["odft"], "application/vnd.oasis.opendocument.graphics": ["odg"], "application/vnd.oasis.opendocument.graphics-template": ["otg"], "application/vnd.oasis.opendocument.image": ["odi"], "application/vnd.oasis.opendocument.image-template": ["oti"], "application/vnd.oasis.opendocument.presentation": ["odp"], "application/vnd.oasis.opendocument.presentation-template": ["otp"], "application/vnd.oasis.opendocument.spreadsheet": ["ods"], "application/vnd.oasis.opendocument.spreadsheet-template": ["ots"], "application/vnd.oasis.opendocument.text": ["odt"], "application/vnd.oasis.opendocument.text-master": ["odm"], "application/vnd.oasis.opendocument.text-template": ["ott"], "application/vnd.oasis.opendocument.text-web": ["oth"], "application/vnd.olpc-sugar": ["xo"], "application/vnd.oma.dd2+xml": ["dd2"], "application/vnd.openofficeorg.extension": ["oxt"], "application/vnd.openxmlformats-officedocument.presentationml.presentation": ["pptx"], "application/vnd.openxmlformats-officedocument.presentationml.slide": ["sldx"], "application/vnd.openxmlformats-officedocument.presentationml.slideshow": ["ppsx"], "application/vnd.openxmlformats-officedocument.presentationml.template": ["potx"], "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": ["xlsx"], "application/vnd.openxmlformats-officedocument.spreadsheetml.template": ["xltx"], "application/vnd.openxmlformats-officedocument.wordprocessingml.document": ["docx"], "application/vnd.openxmlformats-officedocument.wordprocessingml.template": ["dotx"], "application/vnd.osgeo.mapguide.package": ["mgp"], "application/vnd.osgi.dp": ["dp"], "application/vnd.osgi.subsystem": ["esa"], "application/vnd.palm": ["pdb", "pqa", "oprc"], "application/vnd.pawaafile": ["paw"], "application/vnd.pg.format": ["str"], "application/vnd.pg.osasli": ["ei6"], "application/vnd.picsel": ["efif"], "application/vnd.pmi.widget": ["wg"], "application/vnd.pocketlearn": ["plf"], "application/vnd.powerbuilder6": ["pbd"], "application/vnd.previewsystems.box": ["box"], "application/vnd.proteus.magazine": ["mgz"], "application/vnd.publishare-delta-tree": ["qps"], "application/vnd.pvi.ptid1": ["ptid"], "application/vnd.quark.quarkxpress": ["qxd", "qxt", "qwd", "qwt", "qxl", "qxb"], "application/vnd.realvnc.bed": ["bed"], "application/vnd.recordare.musicxml": ["mxl"], "application/vnd.recordare.musicxml+xml": ["musicxml"], "application/vnd.rig.cryptonote": ["cryptonote"], "application/vnd.rim.cod": ["cod"], "application/vnd.rn-realmedia": ["rm"], "application/vnd.rn-realmedia-vbr": ["rmvb"], "application/vnd.route66.link66+xml": ["link66"], "application/vnd.sailingtracker.track": ["st"], "application/vnd.seemail": ["see"], "application/vnd.sema": ["sema"], "application/vnd.semd": ["semd"], "application/vnd.semf": ["semf"], "application/vnd.shana.informed.formdata": ["ifm"], "application/vnd.shana.informed.formtemplate": ["itp"], "application/vnd.shana.informed.interchange": ["iif"], "application/vnd.shana.informed.package": ["ipk"], "application/vnd.simtech-mindmapper": ["twd", "twds"], "application/vnd.smaf": ["mmf"], "application/vnd.smart.teacher": ["teacher"], "application/vnd.solent.sdkm+xml": ["sdkm", "sdkd"], "application/vnd.spotfire.dxp": ["dxp"], "application/vnd.spotfire.sfs": ["sfs"], "application/vnd.stardivision.calc": ["sdc"], "application/vnd.stardivision.draw": ["sda"], "application/vnd.stardivision.impress": ["sdd"], "application/vnd.stardivision.math": ["smf"], "application/vnd.stardivision.writer": ["sdw", "vor"], "application/vnd.stardivision.writer-global": ["sgl"], "application/vnd.stepmania.package": ["smzip"], "application/vnd.stepmania.stepchart": ["sm"], "application/vnd.sun.wadl+xml": ["wadl"], "application/vnd.sun.xml.calc": ["sxc"], "application/vnd.sun.xml.calc.template": ["stc"], "application/vnd.sun.xml.draw": ["sxd"], "application/vnd.sun.xml.draw.template": ["std"], "application/vnd.sun.xml.impress": ["sxi"], "application/vnd.sun.xml.impress.template": ["sti"], "application/vnd.sun.xml.math": ["sxm"], "application/vnd.sun.xml.writer": ["sxw"], "application/vnd.sun.xml.writer.global": ["sxg"], "application/vnd.sun.xml.writer.template": ["stw"], "application/vnd.sus-calendar": ["sus", "susp"], "application/vnd.svd": ["svd"], "application/vnd.symbian.install": ["sis", "sisx"], "application/vnd.syncml+xml": ["xsm"], "application/vnd.syncml.dm+wbxml": ["bdm"], "application/vnd.syncml.dm+xml": ["xdm"], "application/vnd.tao.intent-module-archive": ["tao"], "application/vnd.tcpdump.pcap": ["pcap", "cap", "dmp"], "application/vnd.tmobile-livetv": ["tmo"], "application/vnd.trid.tpt": ["tpt"], "application/vnd.triscape.mxs": ["mxs"], "application/vnd.trueapp": ["tra"], "application/vnd.ufdl": ["ufd", "ufdl"], "application/vnd.uiq.theme": ["utz"], "application/vnd.umajin": ["umj"], "application/vnd.unity": ["unityweb"], "application/vnd.uoml+xml": ["uoml"], "application/vnd.vcx": ["vcx"], "application/vnd.visio": ["vsd", "vst", "vss", "vsw"], "application/vnd.visionary": ["vis"], "application/vnd.vsf": ["vsf"], "application/vnd.wap.wbxml": ["wbxml"], "application/vnd.wap.wmlc": ["wmlc"], "application/vnd.wap.wmlscriptc": ["wmlsc"], "application/vnd.webturbo": ["wtb"], "application/vnd.wolfram.player": ["nbp"], "application/vnd.wordperfect": ["wpd"], "application/vnd.wqd": ["wqd"], "application/vnd.wt.stf": ["stf"], "application/vnd.xara": ["xar"], "application/vnd.xfdl": ["xfdl"], "application/vnd.yamaha.hv-dic": ["hvd"], "application/vnd.yamaha.hv-script": ["hvs"], "application/vnd.yamaha.hv-voice": ["hvp"], "application/vnd.yamaha.openscoreformat": ["osf"], "application/vnd.yamaha.openscoreformat.osfpvg+xml": ["osfpvg"], "application/vnd.yamaha.smaf-audio": ["saf"], "application/vnd.yamaha.smaf-phrase": ["spf"], "application/vnd.yellowriver-custom-menu": ["cmp"], "application/vnd.zul": ["zir", "zirz"], "application/vnd.zzazz.deck+xml": ["zaz"], "application/voicexml+xml": ["vxml"], "application/wasm": ["wasm"], "application/widget": ["wgt"], "application/winhlp": ["hlp"], "application/wsdl+xml": ["wsdl"], "application/wspolicy+xml": ["wspolicy"], "application/x-7z-compressed": ["7z"], "application/x-abiword": ["abw"], "application/x-ace-compressed": ["ace"], "application/x-apple-diskimage": [], "application/x-arj": ["arj"], "application/x-authorware-bin": ["aab", "x32", "u32", "vox"], "application/x-authorware-map": ["aam"], "application/x-authorware-seg": ["aas"], "application/x-bcpio": ["bcpio"], "application/x-bdoc": [], "application/x-bittorrent": ["torrent"], "application/x-blorb": ["blb", "blorb"], "application/x-bzip": ["bz"], "application/x-bzip2": ["bz2", "boz"], "application/x-cbr": ["cbr", "cba", "cbt", "cbz", "cb7"], "application/x-cdlink": ["vcd"], "application/x-cfs-compressed": ["cfs"], "application/x-chat": ["chat"], "application/x-chess-pgn": ["pgn"], "application/x-chrome-extension": ["crx"], "application/x-cocoa": ["cco"], "application/x-conference": ["nsc"], "application/x-cpio": ["cpio"], "application/x-csh": ["csh"], "application/x-debian-package": ["udeb"], "application/x-dgc-compressed": ["dgc"], "application/x-director": ["dir", "dcr", "dxr", "cst", "cct", "cxt", "w3d", "fgd", "swa"], "application/x-doom": ["wad"], "application/x-dtbncx+xml": ["ncx"], "application/x-dtbook+xml": ["dtb"], "application/x-dtbresource+xml": ["res"], "application/x-dvi": ["dvi"], "application/x-envoy": ["evy"], "application/x-eva": ["eva"], "application/x-font-bdf": ["bdf"], "application/x-font-ghostscript": ["gsf"], "application/x-font-linux-psf": ["psf"], "application/x-font-pcf": ["pcf"], "application/x-font-snf": ["snf"], "application/x-font-type1": ["pfa", "pfb", "pfm", "afm"], "application/x-freearc": ["arc"], "application/x-futuresplash": ["spl"], "application/x-gca-compressed": ["gca"], "application/x-glulx": ["ulx"], "application/x-gnumeric": ["gnumeric"], "application/x-gramps-xml": ["gramps"], "application/x-gtar": ["gtar"], "application/x-hdf": ["hdf"], "application/x-httpd-php": ["php"], "application/x-install-instructions": ["install"], "application/x-iso9660-image": [], "application/x-java-archive-diff": ["jardiff"], "application/x-java-jnlp-file": ["jnlp"], "application/x-latex": ["latex"], "application/x-lua-bytecode": ["luac"], "application/x-lzh-compressed": ["lzh", "lha"], "application/x-makeself": ["run"], "application/x-mie": ["mie"], "application/x-mobipocket-ebook": ["prc", "mobi"], "application/x-ms-application": ["application"], "application/x-ms-shortcut": ["lnk"], "application/x-ms-wmd": ["wmd"], "application/x-ms-wmz": ["wmz"], "application/x-ms-xbap": ["xbap"], "application/x-msaccess": ["mdb"], "application/x-msbinder": ["obd"], "application/x-mscardfile": ["crd"], "application/x-msclip": ["clp"], "application/x-msdos-program": [], "application/x-msdownload": ["com", "bat"], "application/x-msmediaview": ["mvb", "m13", "m14"], "application/x-msmetafile": ["wmf", "emf", "emz"], "application/x-msmoney": ["mny"], "application/x-mspublisher": ["pub"], "application/x-msschedule": ["scd"], "application/x-msterminal": ["trm"], "application/x-mswrite": ["wri"], "application/x-netcdf": ["nc", "cdf"], "application/x-ns-proxy-autoconfig": ["pac"], "application/x-nzb": ["nzb"], "application/x-perl": ["pl", "pm"], "application/x-pilot": [], "application/x-pkcs12": ["p12", "pfx"], "application/x-pkcs7-certificates": ["p7b", "spc"], "application/x-pkcs7-certreqresp": ["p7r"], "application/x-rar-compressed": ["rar"], "application/x-redhat-package-manager": ["rpm"], "application/x-research-info-systems": ["ris"], "application/x-sea": ["sea"], "application/x-sh": ["sh"], "application/x-shar": ["shar"], "application/x-shockwave-flash": ["swf"], "application/x-silverlight-app": ["xap"], "application/x-sql": ["sql"], "application/x-stuffit": ["sit"], "application/x-stuffitx": ["sitx"], "application/x-subrip": ["srt"], "application/x-sv4cpio": ["sv4cpio"], "application/x-sv4crc": ["sv4crc"], "application/x-t3vm-image": ["t3"], "application/x-tads": ["gam"], "application/x-tar": ["tar"], "application/x-tcl": ["tcl", "tk"], "application/x-tex": ["tex"], "application/x-tex-tfm": ["tfm"], "application/x-texinfo": ["texinfo", "texi"], "application/x-tgif": ["obj"], "application/x-ustar": ["ustar"], "application/x-virtualbox-hdd": ["hdd"], "application/x-virtualbox-ova": ["ova"], "application/x-virtualbox-ovf": ["ovf"], "application/x-virtualbox-vbox": ["vbox"], "application/x-virtualbox-vbox-extpack": ["vbox-extpack"], "application/x-virtualbox-vdi": ["vdi"], "application/x-virtualbox-vhd": ["vhd"], "application/x-virtualbox-vmdk": ["vmdk"], "application/x-wais-source": ["src"], "application/x-web-app-manifest+json": ["webapp"], "application/x-x509-ca-cert": ["der", "crt", "pem"], "application/x-xfig": ["fig"], "application/x-xliff+xml": ["xlf"], "application/x-xpinstall": ["xpi"], "application/x-xz": ["xz"], "application/x-zmachine": ["z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8"], "application/xaml+xml": ["xaml"], "application/xcap-diff+xml": ["xdf"], "application/xenc+xml": ["xenc"], "application/xhtml+xml": ["xhtml", "xht"], "application/xml": ["xml", "xsl", "xsd", "rng"], "application/xml-dtd": ["dtd"], "application/xop+xml": ["xop"], "application/xproc+xml": ["xpl"], "application/xslt+xml": ["xslt"], "application/xspf+xml": ["xspf"], "application/xv+xml": ["mxml", "xhvml", "xvml", "xvm"], "application/yang": ["yang"], "application/yin+xml": ["yin"], "application/zip": ["zip"], "audio/3gpp": [], "audio/adpcm": ["adp"], "audio/basic": ["au", "snd"], "audio/midi": ["mid", "midi", "kar", "rmi"], "audio/mp3": [], "audio/mp4": ["m4a", "mp4a"], "audio/mpeg": ["mpga", "mp2", "mp2a", "mp3", "m2a", "m3a"], "audio/ogg": ["oga", "ogg", "spx"], "audio/s3m": ["s3m"], "audio/silk": ["sil"], "audio/vnd.dece.audio": ["uva", "uvva"], "audio/vnd.digital-winds": ["eol"], "audio/vnd.dra": ["dra"], "audio/vnd.dts": ["dts"], "audio/vnd.dts.hd": ["dtshd"], "audio/vnd.lucent.voice": ["lvp"], "audio/vnd.ms-playready.media.pya": ["pya"], "audio/vnd.nuera.ecelp4800": ["ecelp4800"], "audio/vnd.nuera.ecelp7470": ["ecelp7470"], "audio/vnd.nuera.ecelp9600": ["ecelp9600"], "audio/vnd.rip": ["rip"], "audio/wav": ["wav"], "audio/wave": [], "audio/webm": ["weba"], "audio/x-aac": ["aac"], "audio/x-aiff": ["aif", "aiff", "aifc"], "audio/x-caf": ["caf"], "audio/x-flac": ["flac"], "audio/x-m4a": [], "audio/x-matroska": ["mka"], "audio/x-mpegurl": ["m3u"], "audio/x-ms-wax": ["wax"], "audio/x-ms-wma": ["wma"], "audio/x-pn-realaudio": ["ram", "ra"], "audio/x-pn-realaudio-plugin": ["rmp"], "audio/x-realaudio": [], "audio/x-wav": [], "audio/xm": ["xm"], "chemical/x-cdx": ["cdx"], "chemical/x-cif": ["cif"], "chemical/x-cmdf": ["cmdf"], "chemical/x-cml": ["cml"], "chemical/x-csml": ["csml"], "chemical/x-xyz": ["xyz"], "font/collection": ["ttc"], "font/otf": ["otf"], "font/ttf": ["ttf"], "font/woff": ["woff"], "font/woff2": ["woff2"], "image/apng": ["apng"], "image/bmp": ["bmp"], "image/cgm": ["cgm"], "image/g3fax": ["g3"], "image/gif": ["gif"], "image/ief": ["ief"], "image/jp2": ["jp2", "jpg2"], "image/jpeg": ["jpeg", "jpg", "jpe"], "image/jpm": ["jpm"], "image/jpx": ["jpx", "jpf"], "image/ktx": ["ktx"], "image/png": ["png"], "image/prs.btif": ["btif"], "image/sgi": ["sgi"], "image/svg+xml": ["svg", "svgz"], "image/tiff": ["tiff", "tif"], "image/vnd.adobe.photoshop": ["psd"], "image/vnd.dece.graphic": ["uvi", "uvvi", "uvg", "uvvg"], "image/vnd.djvu": ["djvu", "djv"], "image/vnd.dvb.subtitle": [], "image/vnd.dwg": ["dwg"], "image/vnd.dxf": ["dxf"], "image/vnd.fastbidsheet": ["fbs"], "image/vnd.fpx": ["fpx"], "image/vnd.fst": ["fst"], "image/vnd.fujixerox.edmics-mmr": ["mmr"], "image/vnd.fujixerox.edmics-rlc": ["rlc"], "image/vnd.ms-modi": ["mdi"], "image/vnd.ms-photo": ["wdp"], "image/vnd.net-fpx": ["npx"], "image/vnd.wap.wbmp": ["wbmp"], "image/vnd.xiff": ["xif"], "image/webp": ["webp"], "image/x-3ds": ["3ds"], "image/x-cmu-raster": ["ras"], "image/x-cmx": ["cmx"], "image/x-freehand": ["fh", "fhc", "fh4", "fh5", "fh7"], "image/x-icon": ["ico"], "image/x-jng": ["jng"], "image/x-mrsid-image": ["sid"], "image/x-ms-bmp": [], "image/x-pcx": ["pcx"], "image/x-pict": ["pic", "pct"], "image/x-portable-anymap": ["pnm"], "image/x-portable-bitmap": ["pbm"], "image/x-portable-graymap": ["pgm"], "image/x-portable-pixmap": ["ppm"], "image/x-rgb": ["rgb"], "image/x-tga": ["tga"], "image/x-xbitmap": ["xbm"], "image/x-xpixmap": ["xpm"], "image/x-xwindowdump": ["xwd"], "message/rfc822": ["eml", "mime"], "model/gltf+json": ["gltf"], "model/gltf-binary": ["glb"], "model/iges": ["igs", "iges"], "model/mesh": ["msh", "mesh", "silo"], "model/vnd.collada+xml": ["dae"], "model/vnd.dwf": ["dwf"], "model/vnd.gdl": ["gdl"], "model/vnd.gtw": ["gtw"], "model/vnd.mts": ["mts"], "model/vnd.vtu": ["vtu"], "model/vrml": ["wrl", "vrml"], "model/x3d+binary": ["x3db", "x3dbz"], "model/x3d+vrml": ["x3dv", "x3dvz"], "model/x3d+xml": ["x3d", "x3dz"], "text/cache-manifest": ["appcache", "manifest"], "text/calendar": ["ics", "ifb"], "text/coffeescript": ["coffee", "litcoffee"], "text/css": ["css"], "text/csv": ["csv"], "text/hjson": ["hjson"], "text/html": ["html", "htm", "shtml"], "text/jade": ["jade"], "text/jsx": ["jsx"], "text/less": ["less"], "text/markdown": ["markdown", "md"], "text/mathml": ["mml"], "text/n3": ["n3"], "text/plain": ["txt", "text", "conf", "def", "list", "log", "in", "ini"], "text/prs.lines.tag": ["dsc"], "text/richtext": ["rtx"], "text/rtf": [], "text/sgml": ["sgml", "sgm"], "text/slim": ["slim", "slm"], "text/stylus": ["stylus", "styl"], "text/tab-separated-values": ["tsv"], "text/troff": ["t", "tr", "roff", "man", "me", "ms"], "text/turtle": ["ttl"], "text/uri-list": ["uri", "uris", "urls"], "text/vcard": ["vcard"], "text/vnd.curl": ["curl"], "text/vnd.curl.dcurl": ["dcurl"], "text/vnd.curl.mcurl": ["mcurl"], "text/vnd.curl.scurl": ["scurl"], "text/vnd.dvb.subtitle": ["sub"], "text/vnd.fly": ["fly"], "text/vnd.fmi.flexstor": ["flx"], "text/vnd.graphviz": ["gv"], "text/vnd.in3d.3dml": ["3dml"], "text/vnd.in3d.spot": ["spot"], "text/vnd.sun.j2me.app-descriptor": ["jad"], "text/vnd.wap.wml": ["wml"], "text/vnd.wap.wmlscript": ["wmls"], "text/vtt": ["vtt"], "text/x-asm": ["s", "asm"], "text/x-c": ["c", "cc", "cxx", "cpp", "h", "hh", "dic"], "text/x-component": ["htc"], "text/x-fortran": ["f", "for", "f77", "f90"], "text/x-handlebars-template": ["hbs"], "text/x-java-source": ["java"], "text/x-lua": ["lua"], "text/x-markdown": ["mkd"], "text/x-nfo": ["nfo"], "text/x-opml": ["opml"], "text/x-org": [], "text/x-pascal": ["p", "pas"], "text/x-processing": ["pde"], "text/x-sass": ["sass"], "text/x-scss": ["scss"], "text/x-setext": ["etx"], "text/x-sfv": ["sfv"], "text/x-suse-ymp": ["ymp"], "text/x-uuencode": ["uu"], "text/x-vcalendar": ["vcs"], "text/x-vcard": ["vcf"], "text/xml": [], "text/yaml": ["yaml", "yml"], "video/3gpp": ["3gp", "3gpp"], "video/3gpp2": ["3g2"], "video/h261": ["h261"], "video/h263": ["h263"], "video/h264": ["h264"], "video/jpeg": ["jpgv"], "video/jpm": ["jpgm"], "video/mj2": ["mj2", "mjp2"], "video/mp2t": ["ts"], "video/mp4": ["mp4", "mp4v", "mpg4"], "video/mpeg": ["mpeg", "mpg", "mpe", "m1v", "m2v"], "video/ogg": ["ogv"], "video/quicktime": ["qt", "mov"], "video/vnd.dece.hd": ["uvh", "uvvh"], "video/vnd.dece.mobile": ["uvm", "uvvm"], "video/vnd.dece.pd": ["uvp", "uvvp"], "video/vnd.dece.sd": ["uvs", "uvvs"], "video/vnd.dece.video": ["uvv", "uvvv"], "video/vnd.dvb.file": ["dvb"], "video/vnd.fvt": ["fvt"], "video/vnd.mpegurl": ["mxu", "m4u"], "video/vnd.ms-playready.media.pyv": ["pyv"], "video/vnd.uvvu.mp4": ["uvu", "uvvu"], "video/vnd.vivo": ["viv"], "video/webm": ["webm"], "video/x-f4v": ["f4v"], "video/x-fli": ["fli"], "video/x-flv": ["flv"], "video/x-m4v": ["m4v"], "video/x-matroska": ["mkv", "mk3d", "mks"], "video/x-mng": ["mng"], "video/x-ms-asf": ["asf", "asx"], "video/x-ms-vob": ["vob"], "video/x-ms-wm": ["wm"], "video/x-ms-wmv": ["wmv"], "video/x-ms-wmx": ["wmx"], "video/x-ms-wvx": ["wvx"], "video/x-msvideo": ["avi"], "video/x-sgi-movie": ["movie"], "video/x-smv": ["smv"], "x-conference/x-cooltalk": ["ice"] }; -}); - -// node_modules/mime/mime.js -var require_mime = __commonJS((exports, module) => { - var path8 = __require("path"); - var fs2 = __require("fs"); - function Mime() { - this.types = Object.create(null); - this.extensions = Object.create(null); - } - Mime.prototype.define = function(map2) { - for (var type in map2) { - var exts = map2[type]; - for (var i = 0;i < exts.length; i++) { - if (process.env.DEBUG_MIME && this.types[exts[i]]) { - console.warn((this._loading || "define()").replace(/.*\//, ""), 'changes "' + exts[i] + '" extension type from ' + this.types[exts[i]] + " to " + type); - } - this.types[exts[i]] = type; - } - if (!this.extensions[type]) { - this.extensions[type] = exts[0]; - } - } - }; - Mime.prototype.load = function(file) { - this._loading = file; - var map2 = {}, content = fs2.readFileSync(file, "ascii"), lines = content.split(/[\r\n]+/); - lines.forEach(function(line) { - var fields = line.replace(/\s*#.*|^\s*|\s*$/g, "").split(/\s+/); - map2[fields.shift()] = fields; - }); - this.define(map2); - this._loading = null; - }; - Mime.prototype.lookup = function(path9, fallback) { - var ext = path9.replace(/^.*[\.\/\\]/, "").toLowerCase(); - return this.types[ext] || fallback || this.default_type; - }; - Mime.prototype.extension = function(mimeType) { - var type = mimeType.match(/^\s*([^;\s]*)(?:;|\s|$)/)[1].toLowerCase(); - return this.extensions[type]; - }; - var mime = new Mime; - mime.define(require_types2()); - mime.default_type = mime.lookup("bin"); - mime.Mime = Mime; - mime.charsets = { - lookup: function(mimeType, fallback) { - return /^text\/|^application\/(javascript|json)/.test(mimeType) ? "UTF-8" : fallback; - } - }; - module.exports = mime; -}); - -// node_modules/send/node_modules/ms/index.js -var require_ms2 = __commonJS((exports, module) => { - var s = 1000; - var m = s * 60; - var h = m * 60; - var d = h * 24; - var w = d * 7; - var y = d * 365.25; - module.exports = function(val, options) { - options = options || {}; - var type = typeof val; - if (type === "string" && val.length > 0) { - return parse5(val); - } else if (type === "number" && isFinite(val)) { - return options.long ? fmtLong(val) : fmtShort(val); - } - throw new Error("val is not a non-empty string or a valid number. val=" + JSON.stringify(val)); - }; - function parse5(str) { - str = String(str); - if (str.length > 100) { - return; - } - var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(str); - if (!match) { - return; - } - var n = parseFloat(match[1]); - var type = (match[2] || "ms").toLowerCase(); - switch (type) { - case "years": - case "year": - case "yrs": - case "yr": - case "y": - return n * y; - case "weeks": - case "week": - case "w": - return n * w; - case "days": - case "day": - case "d": - return n * d; - case "hours": - case "hour": - case "hrs": - case "hr": - case "h": - return n * h; - case "minutes": - case "minute": - case "mins": - case "min": - case "m": - return n * m; - case "seconds": - case "second": - case "secs": - case "sec": - case "s": - return n * s; - case "milliseconds": - case "millisecond": - case "msecs": - case "msec": - case "ms": - return n; - default: - return; - } - } - function fmtShort(ms) { - var msAbs = Math.abs(ms); - if (msAbs >= d) { - return Math.round(ms / d) + "d"; - } - if (msAbs >= h) { - return Math.round(ms / h) + "h"; - } - if (msAbs >= m) { - return Math.round(ms / m) + "m"; - } - if (msAbs >= s) { - return Math.round(ms / s) + "s"; - } - return ms + "ms"; - } - function fmtLong(ms) { - var msAbs = Math.abs(ms); - if (msAbs >= d) { - return plural(ms, msAbs, d, "day"); - } - if (msAbs >= h) { - return plural(ms, msAbs, h, "hour"); - } - if (msAbs >= m) { - return plural(ms, msAbs, m, "minute"); - } - if (msAbs >= s) { - return plural(ms, msAbs, s, "second"); - } - return ms + " ms"; - } - function plural(ms, msAbs, n, name) { - var isPlural = msAbs >= n * 1.5; - return Math.round(ms / n) + " " + name + (isPlural ? "s" : ""); - } -}); - -// node_modules/range-parser/index.js -var require_range_parser = __commonJS((exports, module) => { - /*! - * range-parser - * Copyright(c) 2012-2014 TJ Holowaychuk - * Copyright(c) 2015-2016 Douglas Christopher Wilson - * MIT Licensed - */ - module.exports = rangeParser; - function rangeParser(size, str, options) { - if (typeof str !== "string") { - throw new TypeError("argument str must be a string"); - } - var index = str.indexOf("="); - if (index === -1) { - return -2; - } - var arr = str.slice(index + 1).split(","); - var ranges = []; - ranges.type = str.slice(0, index); - for (var i = 0;i < arr.length; i++) { - var range = arr[i].split("-"); - var start = parseInt(range[0], 10); - var end = parseInt(range[1], 10); - if (isNaN(start)) { - start = size - end; - end = size - 1; - } else if (isNaN(end)) { - end = size - 1; - } - if (end > size - 1) { - end = size - 1; - } - if (isNaN(start) || isNaN(end) || start > end || start < 0) { - continue; - } - ranges.push({ - start, - end - }); - } - if (ranges.length < 1) { - return -1; - } - return options && options.combine ? combineRanges(ranges) : ranges; - } - function combineRanges(ranges) { - var ordered = ranges.map(mapWithIndex).sort(sortByRangeStart); - for (var j = 0, i = 1;i < ordered.length; i++) { - var range = ordered[i]; - var current = ordered[j]; - if (range.start > current.end + 1) { - ordered[++j] = range; - } else if (range.end > current.end) { - current.end = range.end; - current.index = Math.min(current.index, range.index); - } - } - ordered.length = j + 1; - var combined = ordered.sort(sortByRangeIndex).map(mapWithoutIndex); - combined.type = ranges.type; - return combined; - } - function mapWithIndex(range, index) { - return { - start: range.start, - end: range.end, - index - }; - } - function mapWithoutIndex(range) { - return { - start: range.start, - end: range.end - }; - } - function sortByRangeIndex(a, b) { - return a.index - b.index; - } - function sortByRangeStart(a, b) { - return a.start - b.start; - } -}); - -// node_modules/send/index.js -var require_send = __commonJS((exports, module) => { - /*! - * send - * Copyright(c) 2012 TJ Holowaychuk - * Copyright(c) 2014-2022 Douglas Christopher Wilson - * MIT Licensed - */ - var createError = require_http_errors(); - var debug = require_src()("send"); - var deprecate = require_depd()("send"); - var destroy = require_destroy(); - var encodeUrl = require_encodeurl(); - var escapeHtml = require_escape_html(); - var etag = require_etag(); - var fresh = require_fresh(); - var fs2 = __require("fs"); - var mime = require_mime(); - var ms = require_ms2(); - var onFinished = require_on_finished(); - var parseRange = require_range_parser(); - var path8 = __require("path"); - var statuses = require_statuses(); - var Stream = __require("stream"); - var util = __require("util"); - var extname = path8.extname; - var join6 = path8.join; - var normalize = path8.normalize; - var resolve = path8.resolve; - var sep2 = path8.sep; - var BYTES_RANGE_REGEXP = /^ *bytes=/; - var MAX_MAXAGE = 60 * 60 * 24 * 365 * 1000; - var UP_PATH_REGEXP = /(?:^|[\\/])\.\.(?:[\\/]|$)/; - module.exports = send; - module.exports.mime = mime; - function send(req, path9, options) { - return new SendStream(req, path9, options); - } - function SendStream(req, path9, options) { - Stream.call(this); - var opts = options || {}; - this.options = opts; - this.path = path9; - this.req = req; - this._acceptRanges = opts.acceptRanges !== undefined ? Boolean(opts.acceptRanges) : true; - this._cacheControl = opts.cacheControl !== undefined ? Boolean(opts.cacheControl) : true; - this._etag = opts.etag !== undefined ? Boolean(opts.etag) : true; - this._dotfiles = opts.dotfiles !== undefined ? opts.dotfiles : "ignore"; - if (this._dotfiles !== "ignore" && this._dotfiles !== "allow" && this._dotfiles !== "deny") { - throw new TypeError('dotfiles option must be "allow", "deny", or "ignore"'); - } - this._hidden = Boolean(opts.hidden); - if (opts.hidden !== undefined) { - deprecate("hidden: use dotfiles: '" + (this._hidden ? "allow" : "ignore") + "' instead"); - } - if (opts.dotfiles === undefined) { - this._dotfiles = undefined; - } - this._extensions = opts.extensions !== undefined ? normalizeList(opts.extensions, "extensions option") : []; - this._immutable = opts.immutable !== undefined ? Boolean(opts.immutable) : false; - this._index = opts.index !== undefined ? normalizeList(opts.index, "index option") : ["index.html"]; - this._lastModified = opts.lastModified !== undefined ? Boolean(opts.lastModified) : true; - this._maxage = opts.maxAge || opts.maxage; - this._maxage = typeof this._maxage === "string" ? ms(this._maxage) : Number(this._maxage); - this._maxage = !isNaN(this._maxage) ? Math.min(Math.max(0, this._maxage), MAX_MAXAGE) : 0; - this._root = opts.root ? resolve(opts.root) : null; - if (!this._root && opts.from) { - this.from(opts.from); - } - } - util.inherits(SendStream, Stream); - SendStream.prototype.etag = deprecate.function(function etag2(val) { - this._etag = Boolean(val); - debug("etag %s", this._etag); - return this; - }, "send.etag: pass etag as option"); - SendStream.prototype.hidden = deprecate.function(function hidden(val) { - this._hidden = Boolean(val); - this._dotfiles = undefined; - debug("hidden %s", this._hidden); - return this; - }, "send.hidden: use dotfiles option"); - SendStream.prototype.index = deprecate.function(function index(paths) { - var index2 = !paths ? [] : normalizeList(paths, "paths argument"); - debug("index %o", paths); - this._index = index2; - return this; - }, "send.index: pass index as option"); - SendStream.prototype.root = function root(path9) { - this._root = resolve(String(path9)); - debug("root %s", this._root); - return this; - }; - SendStream.prototype.from = deprecate.function(SendStream.prototype.root, "send.from: pass root as option"); - SendStream.prototype.root = deprecate.function(SendStream.prototype.root, "send.root: pass root as option"); - SendStream.prototype.maxage = deprecate.function(function maxage(maxAge) { - this._maxage = typeof maxAge === "string" ? ms(maxAge) : Number(maxAge); - this._maxage = !isNaN(this._maxage) ? Math.min(Math.max(0, this._maxage), MAX_MAXAGE) : 0; - debug("max-age %d", this._maxage); - return this; - }, "send.maxage: pass maxAge as option"); - SendStream.prototype.error = function error2(status, err) { - if (hasListeners(this, "error")) { - return this.emit("error", createHttpError(status, err)); - } - var res = this.res; - var msg = statuses.message[status] || String(status); - var doc2 = createHtmlDocument("Error", escapeHtml(msg)); - clearHeaders(res); - if (err && err.headers) { - setHeaders(res, err.headers); - } - res.statusCode = status; - res.setHeader("Content-Type", "text/html; charset=UTF-8"); - res.setHeader("Content-Length", Buffer.byteLength(doc2)); - res.setHeader("Content-Security-Policy", "default-src 'none'"); - res.setHeader("X-Content-Type-Options", "nosniff"); - res.end(doc2); - }; - SendStream.prototype.hasTrailingSlash = function hasTrailingSlash() { - return this.path[this.path.length - 1] === "/"; - }; - SendStream.prototype.isConditionalGET = function isConditionalGET() { - return this.req.headers["if-match"] || this.req.headers["if-unmodified-since"] || this.req.headers["if-none-match"] || this.req.headers["if-modified-since"]; - }; - SendStream.prototype.isPreconditionFailure = function isPreconditionFailure() { - var req = this.req; - var res = this.res; - var match = req.headers["if-match"]; - if (match) { - var etag2 = res.getHeader("ETag"); - return !etag2 || match !== "*" && parseTokenList(match).every(function(match2) { - return match2 !== etag2 && match2 !== "W/" + etag2 && "W/" + match2 !== etag2; - }); - } - var unmodifiedSince = parseHttpDate(req.headers["if-unmodified-since"]); - if (!isNaN(unmodifiedSince)) { - var lastModified = parseHttpDate(res.getHeader("Last-Modified")); - return isNaN(lastModified) || lastModified > unmodifiedSince; - } - return false; - }; - SendStream.prototype.removeContentHeaderFields = function removeContentHeaderFields() { - var res = this.res; - res.removeHeader("Content-Encoding"); - res.removeHeader("Content-Language"); - res.removeHeader("Content-Length"); - res.removeHeader("Content-Range"); - res.removeHeader("Content-Type"); - }; - SendStream.prototype.notModified = function notModified() { - var res = this.res; - debug("not modified"); - this.removeContentHeaderFields(); - res.statusCode = 304; - res.end(); - }; - SendStream.prototype.headersAlreadySent = function headersAlreadySent() { - var err = new Error("Can't set headers after they are sent."); - debug("headers already sent"); - this.error(500, err); - }; - SendStream.prototype.isCachable = function isCachable() { - var statusCode = this.res.statusCode; - return statusCode >= 200 && statusCode < 300 || statusCode === 304; - }; - SendStream.prototype.onStatError = function onStatError(error2) { - switch (error2.code) { - case "ENAMETOOLONG": - case "ENOENT": - case "ENOTDIR": - this.error(404, error2); - break; - default: - this.error(500, error2); - break; - } - }; - SendStream.prototype.isFresh = function isFresh() { - return fresh(this.req.headers, { - etag: this.res.getHeader("ETag"), - "last-modified": this.res.getHeader("Last-Modified") - }); - }; - SendStream.prototype.isRangeFresh = function isRangeFresh() { - var ifRange = this.req.headers["if-range"]; - if (!ifRange) { - return true; - } - if (ifRange.indexOf('"') !== -1) { - var etag2 = this.res.getHeader("ETag"); - return Boolean(etag2 && ifRange.indexOf(etag2) !== -1); - } - var lastModified = this.res.getHeader("Last-Modified"); - return parseHttpDate(lastModified) <= parseHttpDate(ifRange); - }; - SendStream.prototype.redirect = function redirect(path9) { - var res = this.res; - if (hasListeners(this, "directory")) { - this.emit("directory", res, path9); - return; - } - if (this.hasTrailingSlash()) { - this.error(403); - return; - } - var loc = encodeUrl(collapseLeadingSlashes(this.path + "/")); - var doc2 = createHtmlDocument("Redirecting", "Redirecting to " + escapeHtml(loc)); - res.statusCode = 301; - res.setHeader("Content-Type", "text/html; charset=UTF-8"); - res.setHeader("Content-Length", Buffer.byteLength(doc2)); - res.setHeader("Content-Security-Policy", "default-src 'none'"); - res.setHeader("X-Content-Type-Options", "nosniff"); - res.setHeader("Location", loc); - res.end(doc2); - }; - SendStream.prototype.pipe = function pipe2(res) { - var root = this._root; - this.res = res; - var path9 = decode3(this.path); - if (path9 === -1) { - this.error(400); - return res; - } - if (~path9.indexOf("\x00")) { - this.error(400); - return res; - } - var parts; - if (root !== null) { - if (path9) { - path9 = normalize("." + sep2 + path9); - } - if (UP_PATH_REGEXP.test(path9)) { - debug('malicious path "%s"', path9); - this.error(403); - return res; - } - parts = path9.split(sep2); - path9 = normalize(join6(root, path9)); - } else { - if (UP_PATH_REGEXP.test(path9)) { - debug('malicious path "%s"', path9); - this.error(403); - return res; - } - parts = normalize(path9).split(sep2); - path9 = resolve(path9); - } - if (containsDotFile(parts)) { - var access = this._dotfiles; - if (access === undefined) { - access = parts[parts.length - 1][0] === "." ? this._hidden ? "allow" : "ignore" : "allow"; - } - debug('%s dotfile "%s"', access, path9); - switch (access) { - case "allow": - break; - case "deny": - this.error(403); - return res; - case "ignore": - default: - this.error(404); - return res; - } - } - if (this._index.length && this.hasTrailingSlash()) { - this.sendIndex(path9); - return res; - } - this.sendFile(path9); - return res; - }; - SendStream.prototype.send = function send2(path9, stat) { - var len = stat.size; - var options = this.options; - var opts = {}; - var res = this.res; - var req = this.req; - var ranges = req.headers.range; - var offset = options.start || 0; - if (headersSent(res)) { - this.headersAlreadySent(); - return; - } - debug('pipe "%s"', path9); - this.setHeader(path9, stat); - this.type(path9); - if (this.isConditionalGET()) { - if (this.isPreconditionFailure()) { - this.error(412); - return; - } - if (this.isCachable() && this.isFresh()) { - this.notModified(); - return; - } - } - len = Math.max(0, len - offset); - if (options.end !== undefined) { - var bytes = options.end - offset + 1; - if (len > bytes) - len = bytes; - } - if (this._acceptRanges && BYTES_RANGE_REGEXP.test(ranges)) { - ranges = parseRange(len, ranges, { - combine: true - }); - if (!this.isRangeFresh()) { - debug("range stale"); - ranges = -2; - } - if (ranges === -1) { - debug("range unsatisfiable"); - res.setHeader("Content-Range", contentRange("bytes", len)); - return this.error(416, { - headers: { "Content-Range": res.getHeader("Content-Range") } - }); - } - if (ranges !== -2 && ranges.length === 1) { - debug("range %j", ranges); - res.statusCode = 206; - res.setHeader("Content-Range", contentRange("bytes", len, ranges[0])); - offset += ranges[0].start; - len = ranges[0].end - ranges[0].start + 1; - } - } - for (var prop in options) { - opts[prop] = options[prop]; - } - opts.start = offset; - opts.end = Math.max(offset, offset + len - 1); - res.setHeader("Content-Length", len); - if (req.method === "HEAD") { - res.end(); - return; - } - this.stream(path9, opts); - }; - SendStream.prototype.sendFile = function sendFile(path9) { - var i = 0; - var self2 = this; - debug('stat "%s"', path9); - fs2.stat(path9, function onstat(err, stat) { - if (err && err.code === "ENOENT" && !extname(path9) && path9[path9.length - 1] !== sep2) { - return next(err); - } - if (err) - return self2.onStatError(err); - if (stat.isDirectory()) - return self2.redirect(path9); - self2.emit("file", path9, stat); - self2.send(path9, stat); - }); - function next(err) { - if (self2._extensions.length <= i) { - return err ? self2.onStatError(err) : self2.error(404); - } - var p = path9 + "." + self2._extensions[i++]; - debug('stat "%s"', p); - fs2.stat(p, function(err2, stat) { - if (err2) - return next(err2); - if (stat.isDirectory()) - return next(); - self2.emit("file", p, stat); - self2.send(p, stat); - }); - } - }; - SendStream.prototype.sendIndex = function sendIndex(path9) { - var i = -1; - var self2 = this; - function next(err) { - if (++i >= self2._index.length) { - if (err) - return self2.onStatError(err); - return self2.error(404); - } - var p = join6(path9, self2._index[i]); - debug('stat "%s"', p); - fs2.stat(p, function(err2, stat) { - if (err2) - return next(err2); - if (stat.isDirectory()) - return next(); - self2.emit("file", p, stat); - self2.send(p, stat); - }); - } - next(); - }; - SendStream.prototype.stream = function stream(path9, options) { - var self2 = this; - var res = this.res; - var stream2 = fs2.createReadStream(path9, options); - this.emit("stream", stream2); - stream2.pipe(res); - function cleanup() { - destroy(stream2, true); - } - onFinished(res, cleanup); - stream2.on("error", function onerror(err) { - cleanup(); - self2.onStatError(err); - }); - stream2.on("end", function onend() { - self2.emit("end"); - }); - }; - SendStream.prototype.type = function type(path9) { - var res = this.res; - if (res.getHeader("Content-Type")) - return; - var type2 = mime.lookup(path9); - if (!type2) { - debug("no content-type"); - return; - } - var charset = mime.charsets.lookup(type2); - debug("content-type %s", type2); - res.setHeader("Content-Type", type2 + (charset ? "; charset=" + charset : "")); - }; - SendStream.prototype.setHeader = function setHeader(path9, stat) { - var res = this.res; - this.emit("headers", res, path9, stat); - if (this._acceptRanges && !res.getHeader("Accept-Ranges")) { - debug("accept ranges"); - res.setHeader("Accept-Ranges", "bytes"); - } - if (this._cacheControl && !res.getHeader("Cache-Control")) { - var cacheControl = "public, max-age=" + Math.floor(this._maxage / 1000); - if (this._immutable) { - cacheControl += ", immutable"; - } - debug("cache-control %s", cacheControl); - res.setHeader("Cache-Control", cacheControl); - } - if (this._lastModified && !res.getHeader("Last-Modified")) { - var modified = stat.mtime.toUTCString(); - debug("modified %s", modified); - res.setHeader("Last-Modified", modified); - } - if (this._etag && !res.getHeader("ETag")) { - var val = etag(stat); - debug("etag %s", val); - res.setHeader("ETag", val); - } - }; - function clearHeaders(res) { - var headers = getHeaderNames(res); - for (var i = 0;i < headers.length; i++) { - res.removeHeader(headers[i]); - } - } - function collapseLeadingSlashes(str) { - for (var i = 0;i < str.length; i++) { - if (str[i] !== "/") { - break; - } - } - return i > 1 ? "/" + str.substr(i) : str; - } - function containsDotFile(parts) { - for (var i = 0;i < parts.length; i++) { - var part = parts[i]; - if (part.length > 1 && part[0] === ".") { - return true; - } - } - return false; - } - function contentRange(type, size, range) { - return type + " " + (range ? range.start + "-" + range.end : "*") + "/" + size; - } - function createHtmlDocument(title, body) { - return ` -` + ` -` + ` -` + ` -` + "" + title + ` -` + ` -` + ` -` + "
" + body + `
-` + ` -` + ` -`; - } - function createHttpError(status, err) { - if (!err) { - return createError(status); - } - return err instanceof Error ? createError(status, err, { expose: false }) : createError(status, err); - } - function decode3(path9) { - try { - return decodeURIComponent(path9); - } catch (err) { - return -1; - } - } - function getHeaderNames(res) { - return typeof res.getHeaderNames !== "function" ? Object.keys(res._headers || {}) : res.getHeaderNames(); - } - function hasListeners(emitter, type) { - var count = typeof emitter.listenerCount !== "function" ? emitter.listeners(type).length : emitter.listenerCount(type); - return count > 0; - } - function headersSent(res) { - return typeof res.headersSent !== "boolean" ? Boolean(res._header) : res.headersSent; - } - function normalizeList(val, name) { - var list = [].concat(val || []); - for (var i = 0;i < list.length; i++) { - if (typeof list[i] !== "string") { - throw new TypeError(name + " must be array of strings or false"); - } - } - return list; - } - function parseHttpDate(date4) { - var timestamp = date4 && Date.parse(date4); - return typeof timestamp === "number" ? timestamp : NaN; - } - function parseTokenList(str) { - var end = 0; - var list = []; - var start = 0; - for (var i = 0, len = str.length;i < len; i++) { - switch (str.charCodeAt(i)) { - case 32: - if (start === end) { - start = end = i + 1; - } - break; - case 44: - if (start !== end) { - list.push(str.substring(start, end)); - } - start = end = i + 1; - break; - default: - end = i + 1; - break; - } - } - if (start !== end) { - list.push(str.substring(start, end)); - } - return list; - } - function setHeaders(res, headers) { - var keys = Object.keys(headers); - for (var i = 0;i < keys.length; i++) { - var key = keys[i]; - res.setHeader(key, headers[key]); - } - } -}); - -// node_modules/forwarded/index.js -var require_forwarded = __commonJS((exports, module) => { - /*! - * forwarded - * Copyright(c) 2014-2017 Douglas Christopher Wilson - * MIT Licensed - */ - module.exports = forwarded; - function forwarded(req) { - if (!req) { - throw new TypeError("argument req is required"); - } - var proxyAddrs = parse5(req.headers["x-forwarded-for"] || ""); - var socketAddr = getSocketAddr(req); - var addrs = [socketAddr].concat(proxyAddrs); - return addrs; - } - function getSocketAddr(req) { - return req.socket ? req.socket.remoteAddress : req.connection.remoteAddress; - } - function parse5(header) { - var end = header.length; - var list = []; - var start = header.length; - for (var i = header.length - 1;i >= 0; i--) { - switch (header.charCodeAt(i)) { - case 32: - if (start === end) { - start = end = i; - } - break; - case 44: - if (start !== end) { - list.push(header.substring(start, end)); - } - start = end = i; - break; - default: - start = i; - break; - } - } - if (start !== end) { - list.push(header.substring(start, end)); - } - return list; - } -}); - -// node_modules/ipaddr.js/lib/ipaddr.js -var require_ipaddr = __commonJS((exports, module) => { - (function() { - var expandIPv6, ipaddr, ipv4Part, ipv4Regexes, ipv6Part, ipv6Regexes, matchCIDR, root, zoneIndex; - ipaddr = {}; - root = this; - if (typeof module !== "undefined" && module !== null && module.exports) { - module.exports = ipaddr; - } else { - root["ipaddr"] = ipaddr; - } - matchCIDR = function(first, second, partSize, cidrBits) { - var part, shift; - if (first.length !== second.length) { - throw new Error("ipaddr: cannot match CIDR for objects with different lengths"); - } - part = 0; - while (cidrBits > 0) { - shift = partSize - cidrBits; - if (shift < 0) { - shift = 0; - } - if (first[part] >> shift !== second[part] >> shift) { - return false; - } - cidrBits -= partSize; - part += 1; - } - return true; - }; - ipaddr.subnetMatch = function(address, rangeList, defaultName) { - var k, len, rangeName, rangeSubnets, subnet; - if (defaultName == null) { - defaultName = "unicast"; - } - for (rangeName in rangeList) { - rangeSubnets = rangeList[rangeName]; - if (rangeSubnets[0] && !(rangeSubnets[0] instanceof Array)) { - rangeSubnets = [rangeSubnets]; - } - for (k = 0, len = rangeSubnets.length;k < len; k++) { - subnet = rangeSubnets[k]; - if (address.kind() === subnet[0].kind()) { - if (address.match.apply(address, subnet)) { - return rangeName; - } - } - } - } - return defaultName; - }; - ipaddr.IPv4 = function() { - function IPv4(octets) { - var k, len, octet; - if (octets.length !== 4) { - throw new Error("ipaddr: ipv4 octet count should be 4"); - } - for (k = 0, len = octets.length;k < len; k++) { - octet = octets[k]; - if (!(0 <= octet && octet <= 255)) { - throw new Error("ipaddr: ipv4 octet should fit in 8 bits"); - } - } - this.octets = octets; - } - IPv4.prototype.kind = function() { - return "ipv4"; - }; - IPv4.prototype.toString = function() { - return this.octets.join("."); - }; - IPv4.prototype.toNormalizedString = function() { - return this.toString(); - }; - IPv4.prototype.toByteArray = function() { - return this.octets.slice(0); - }; - IPv4.prototype.match = function(other, cidrRange) { - var ref; - if (cidrRange === undefined) { - ref = other, other = ref[0], cidrRange = ref[1]; - } - if (other.kind() !== "ipv4") { - throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one"); - } - return matchCIDR(this.octets, other.octets, 8, cidrRange); - }; - IPv4.prototype.SpecialRanges = { - unspecified: [[new IPv4([0, 0, 0, 0]), 8]], - broadcast: [[new IPv4([255, 255, 255, 255]), 32]], - multicast: [[new IPv4([224, 0, 0, 0]), 4]], - linkLocal: [[new IPv4([169, 254, 0, 0]), 16]], - loopback: [[new IPv4([127, 0, 0, 0]), 8]], - carrierGradeNat: [[new IPv4([100, 64, 0, 0]), 10]], - private: [[new IPv4([10, 0, 0, 0]), 8], [new IPv4([172, 16, 0, 0]), 12], [new IPv4([192, 168, 0, 0]), 16]], - reserved: [[new IPv4([192, 0, 0, 0]), 24], [new IPv4([192, 0, 2, 0]), 24], [new IPv4([192, 88, 99, 0]), 24], [new IPv4([198, 51, 100, 0]), 24], [new IPv4([203, 0, 113, 0]), 24], [new IPv4([240, 0, 0, 0]), 4]] - }; - IPv4.prototype.range = function() { - return ipaddr.subnetMatch(this, this.SpecialRanges); - }; - IPv4.prototype.toIPv4MappedAddress = function() { - return ipaddr.IPv6.parse("::ffff:" + this.toString()); - }; - IPv4.prototype.prefixLengthFromSubnetMask = function() { - var cidr, i, k, octet, stop, zeros, zerotable; - zerotable = { - 0: 8, - 128: 7, - 192: 6, - 224: 5, - 240: 4, - 248: 3, - 252: 2, - 254: 1, - 255: 0 - }; - cidr = 0; - stop = false; - for (i = k = 3;k >= 0; i = k += -1) { - octet = this.octets[i]; - if (octet in zerotable) { - zeros = zerotable[octet]; - if (stop && zeros !== 0) { - return null; - } - if (zeros !== 8) { - stop = true; - } - cidr += zeros; - } else { - return null; - } - } - return 32 - cidr; - }; - return IPv4; - }(); - ipv4Part = "(0?\\d+|0x[a-f0-9]+)"; - ipv4Regexes = { - fourOctet: new RegExp("^" + ipv4Part + "\\." + ipv4Part + "\\." + ipv4Part + "\\." + ipv4Part + "$", "i"), - longValue: new RegExp("^" + ipv4Part + "$", "i") - }; - ipaddr.IPv4.parser = function(string4) { - var match, parseIntAuto, part, shift, value; - parseIntAuto = function(string5) { - if (string5[0] === "0" && string5[1] !== "x") { - return parseInt(string5, 8); - } else { - return parseInt(string5); - } - }; - if (match = string4.match(ipv4Regexes.fourOctet)) { - return function() { - var k, len, ref, results; - ref = match.slice(1, 6); - results = []; - for (k = 0, len = ref.length;k < len; k++) { - part = ref[k]; - results.push(parseIntAuto(part)); - } - return results; - }(); - } else if (match = string4.match(ipv4Regexes.longValue)) { - value = parseIntAuto(match[1]); - if (value > 4294967295 || value < 0) { - throw new Error("ipaddr: address outside defined range"); - } - return function() { - var k, results; - results = []; - for (shift = k = 0;k <= 24; shift = k += 8) { - results.push(value >> shift & 255); - } - return results; - }().reverse(); - } else { - return null; - } - }; - ipaddr.IPv6 = function() { - function IPv6(parts, zoneId) { - var i, k, l, len, part, ref; - if (parts.length === 16) { - this.parts = []; - for (i = k = 0;k <= 14; i = k += 2) { - this.parts.push(parts[i] << 8 | parts[i + 1]); - } - } else if (parts.length === 8) { - this.parts = parts; - } else { - throw new Error("ipaddr: ipv6 part count should be 8 or 16"); - } - ref = this.parts; - for (l = 0, len = ref.length;l < len; l++) { - part = ref[l]; - if (!(0 <= part && part <= 65535)) { - throw new Error("ipaddr: ipv6 part should fit in 16 bits"); - } - } - if (zoneId) { - this.zoneId = zoneId; - } - } - IPv6.prototype.kind = function() { - return "ipv6"; - }; - IPv6.prototype.toString = function() { - return this.toNormalizedString().replace(/((^|:)(0(:|$))+)/, "::"); - }; - IPv6.prototype.toRFC5952String = function() { - var bestMatchIndex, bestMatchLength, match, regex, string4; - regex = /((^|:)(0(:|$)){2,})/g; - string4 = this.toNormalizedString(); - bestMatchIndex = 0; - bestMatchLength = -1; - while (match = regex.exec(string4)) { - if (match[0].length > bestMatchLength) { - bestMatchIndex = match.index; - bestMatchLength = match[0].length; - } - } - if (bestMatchLength < 0) { - return string4; - } - return string4.substring(0, bestMatchIndex) + "::" + string4.substring(bestMatchIndex + bestMatchLength); - }; - IPv6.prototype.toByteArray = function() { - var bytes, k, len, part, ref; - bytes = []; - ref = this.parts; - for (k = 0, len = ref.length;k < len; k++) { - part = ref[k]; - bytes.push(part >> 8); - bytes.push(part & 255); - } - return bytes; - }; - IPv6.prototype.toNormalizedString = function() { - var addr, part, suffix; - addr = function() { - var k, len, ref, results; - ref = this.parts; - results = []; - for (k = 0, len = ref.length;k < len; k++) { - part = ref[k]; - results.push(part.toString(16)); - } - return results; - }.call(this).join(":"); - suffix = ""; - if (this.zoneId) { - suffix = "%" + this.zoneId; - } - return addr + suffix; - }; - IPv6.prototype.toFixedLengthString = function() { - var addr, part, suffix; - addr = function() { - var k, len, ref, results; - ref = this.parts; - results = []; - for (k = 0, len = ref.length;k < len; k++) { - part = ref[k]; - results.push(part.toString(16).padStart(4, "0")); - } - return results; - }.call(this).join(":"); - suffix = ""; - if (this.zoneId) { - suffix = "%" + this.zoneId; - } - return addr + suffix; - }; - IPv6.prototype.match = function(other, cidrRange) { - var ref; - if (cidrRange === undefined) { - ref = other, other = ref[0], cidrRange = ref[1]; - } - if (other.kind() !== "ipv6") { - throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one"); - } - return matchCIDR(this.parts, other.parts, 16, cidrRange); - }; - IPv6.prototype.SpecialRanges = { - unspecified: [new IPv6([0, 0, 0, 0, 0, 0, 0, 0]), 128], - linkLocal: [new IPv6([65152, 0, 0, 0, 0, 0, 0, 0]), 10], - multicast: [new IPv6([65280, 0, 0, 0, 0, 0, 0, 0]), 8], - loopback: [new IPv6([0, 0, 0, 0, 0, 0, 0, 1]), 128], - uniqueLocal: [new IPv6([64512, 0, 0, 0, 0, 0, 0, 0]), 7], - ipv4Mapped: [new IPv6([0, 0, 0, 0, 0, 65535, 0, 0]), 96], - rfc6145: [new IPv6([0, 0, 0, 0, 65535, 0, 0, 0]), 96], - rfc6052: [new IPv6([100, 65435, 0, 0, 0, 0, 0, 0]), 96], - "6to4": [new IPv6([8194, 0, 0, 0, 0, 0, 0, 0]), 16], - teredo: [new IPv6([8193, 0, 0, 0, 0, 0, 0, 0]), 32], - reserved: [[new IPv6([8193, 3512, 0, 0, 0, 0, 0, 0]), 32]] - }; - IPv6.prototype.range = function() { - return ipaddr.subnetMatch(this, this.SpecialRanges); - }; - IPv6.prototype.isIPv4MappedAddress = function() { - return this.range() === "ipv4Mapped"; - }; - IPv6.prototype.toIPv4Address = function() { - var high, low, ref; - if (!this.isIPv4MappedAddress()) { - throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4"); - } - ref = this.parts.slice(-2), high = ref[0], low = ref[1]; - return new ipaddr.IPv4([high >> 8, high & 255, low >> 8, low & 255]); - }; - IPv6.prototype.prefixLengthFromSubnetMask = function() { - var cidr, i, k, part, stop, zeros, zerotable; - zerotable = { - 0: 16, - 32768: 15, - 49152: 14, - 57344: 13, - 61440: 12, - 63488: 11, - 64512: 10, - 65024: 9, - 65280: 8, - 65408: 7, - 65472: 6, - 65504: 5, - 65520: 4, - 65528: 3, - 65532: 2, - 65534: 1, - 65535: 0 - }; - cidr = 0; - stop = false; - for (i = k = 7;k >= 0; i = k += -1) { - part = this.parts[i]; - if (part in zerotable) { - zeros = zerotable[part]; - if (stop && zeros !== 0) { - return null; - } - if (zeros !== 16) { - stop = true; - } - cidr += zeros; - } else { - return null; - } - } - return 128 - cidr; - }; - return IPv6; - }(); - ipv6Part = "(?:[0-9a-f]+::?)+"; - zoneIndex = "%[0-9a-z]{1,}"; - ipv6Regexes = { - zoneIndex: new RegExp(zoneIndex, "i"), - native: new RegExp("^(::)?(" + ipv6Part + ")?([0-9a-f]+)?(::)?(" + zoneIndex + ")?$", "i"), - transitional: new RegExp("^((?:" + ipv6Part + ")|(?:::)(?:" + ipv6Part + ")?)" + (ipv4Part + "\\." + ipv4Part + "\\." + ipv4Part + "\\." + ipv4Part) + ("(" + zoneIndex + ")?$"), "i") - }; - expandIPv6 = function(string4, parts) { - var colonCount, lastColon, part, replacement, replacementCount, zoneId; - if (string4.indexOf("::") !== string4.lastIndexOf("::")) { - return null; - } - zoneId = (string4.match(ipv6Regexes["zoneIndex"]) || [])[0]; - if (zoneId) { - zoneId = zoneId.substring(1); - string4 = string4.replace(/%.+$/, ""); - } - colonCount = 0; - lastColon = -1; - while ((lastColon = string4.indexOf(":", lastColon + 1)) >= 0) { - colonCount++; - } - if (string4.substr(0, 2) === "::") { - colonCount--; - } - if (string4.substr(-2, 2) === "::") { - colonCount--; - } - if (colonCount > parts) { - return null; - } - replacementCount = parts - colonCount; - replacement = ":"; - while (replacementCount--) { - replacement += "0:"; - } - string4 = string4.replace("::", replacement); - if (string4[0] === ":") { - string4 = string4.slice(1); - } - if (string4[string4.length - 1] === ":") { - string4 = string4.slice(0, -1); - } - parts = function() { - var k, len, ref, results; - ref = string4.split(":"); - results = []; - for (k = 0, len = ref.length;k < len; k++) { - part = ref[k]; - results.push(parseInt(part, 16)); - } - return results; - }(); - return { - parts, - zoneId - }; - }; - ipaddr.IPv6.parser = function(string4) { - var addr, k, len, match, octet, octets, zoneId; - if (ipv6Regexes["native"].test(string4)) { - return expandIPv6(string4, 8); - } else if (match = string4.match(ipv6Regexes["transitional"])) { - zoneId = match[6] || ""; - addr = expandIPv6(match[1].slice(0, -1) + zoneId, 6); - if (addr.parts) { - octets = [parseInt(match[2]), parseInt(match[3]), parseInt(match[4]), parseInt(match[5])]; - for (k = 0, len = octets.length;k < len; k++) { - octet = octets[k]; - if (!(0 <= octet && octet <= 255)) { - return null; - } - } - addr.parts.push(octets[0] << 8 | octets[1]); - addr.parts.push(octets[2] << 8 | octets[3]); - return { - parts: addr.parts, - zoneId: addr.zoneId - }; - } - } - return null; - }; - ipaddr.IPv4.isIPv4 = ipaddr.IPv6.isIPv6 = function(string4) { - return this.parser(string4) !== null; - }; - ipaddr.IPv4.isValid = function(string4) { - var e; - try { - new this(this.parser(string4)); - return true; - } catch (error1) { - e = error1; - return false; - } - }; - ipaddr.IPv4.isValidFourPartDecimal = function(string4) { - if (ipaddr.IPv4.isValid(string4) && string4.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/)) { - return true; - } else { - return false; - } - }; - ipaddr.IPv6.isValid = function(string4) { - var addr, e; - if (typeof string4 === "string" && string4.indexOf(":") === -1) { - return false; - } - try { - addr = this.parser(string4); - new this(addr.parts, addr.zoneId); - return true; - } catch (error1) { - e = error1; - return false; - } - }; - ipaddr.IPv4.parse = function(string4) { - var parts; - parts = this.parser(string4); - if (parts === null) { - throw new Error("ipaddr: string is not formatted like ip address"); - } - return new this(parts); - }; - ipaddr.IPv6.parse = function(string4) { - var addr; - addr = this.parser(string4); - if (addr.parts === null) { - throw new Error("ipaddr: string is not formatted like ip address"); - } - return new this(addr.parts, addr.zoneId); - }; - ipaddr.IPv4.parseCIDR = function(string4) { - var maskLength, match, parsed; - if (match = string4.match(/^(.+)\/(\d+)$/)) { - maskLength = parseInt(match[2]); - if (maskLength >= 0 && maskLength <= 32) { - parsed = [this.parse(match[1]), maskLength]; - Object.defineProperty(parsed, "toString", { - value: function() { - return this.join("/"); - } - }); - return parsed; - } - } - throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range"); - }; - ipaddr.IPv4.subnetMaskFromPrefixLength = function(prefix) { - var filledOctetCount, j, octets; - prefix = parseInt(prefix); - if (prefix < 0 || prefix > 32) { - throw new Error("ipaddr: invalid IPv4 prefix length"); - } - octets = [0, 0, 0, 0]; - j = 0; - filledOctetCount = Math.floor(prefix / 8); - while (j < filledOctetCount) { - octets[j] = 255; - j++; - } - if (filledOctetCount < 4) { - octets[filledOctetCount] = Math.pow(2, prefix % 8) - 1 << 8 - prefix % 8; - } - return new this(octets); - }; - ipaddr.IPv4.broadcastAddressFromCIDR = function(string4) { - var cidr, error2, i, ipInterfaceOctets, octets, subnetMaskOctets; - try { - cidr = this.parseCIDR(string4); - ipInterfaceOctets = cidr[0].toByteArray(); - subnetMaskOctets = this.subnetMaskFromPrefixLength(cidr[1]).toByteArray(); - octets = []; - i = 0; - while (i < 4) { - octets.push(parseInt(ipInterfaceOctets[i], 10) | parseInt(subnetMaskOctets[i], 10) ^ 255); - i++; - } - return new this(octets); - } catch (error1) { - error2 = error1; - throw new Error("ipaddr: the address does not have IPv4 CIDR format"); - } - }; - ipaddr.IPv4.networkAddressFromCIDR = function(string4) { - var cidr, error2, i, ipInterfaceOctets, octets, subnetMaskOctets; - try { - cidr = this.parseCIDR(string4); - ipInterfaceOctets = cidr[0].toByteArray(); - subnetMaskOctets = this.subnetMaskFromPrefixLength(cidr[1]).toByteArray(); - octets = []; - i = 0; - while (i < 4) { - octets.push(parseInt(ipInterfaceOctets[i], 10) & parseInt(subnetMaskOctets[i], 10)); - i++; - } - return new this(octets); - } catch (error1) { - error2 = error1; - throw new Error("ipaddr: the address does not have IPv4 CIDR format"); - } - }; - ipaddr.IPv6.parseCIDR = function(string4) { - var maskLength, match, parsed; - if (match = string4.match(/^(.+)\/(\d+)$/)) { - maskLength = parseInt(match[2]); - if (maskLength >= 0 && maskLength <= 128) { - parsed = [this.parse(match[1]), maskLength]; - Object.defineProperty(parsed, "toString", { - value: function() { - return this.join("/"); - } - }); - return parsed; - } - } - throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range"); - }; - ipaddr.isValid = function(string4) { - return ipaddr.IPv6.isValid(string4) || ipaddr.IPv4.isValid(string4); - }; - ipaddr.parse = function(string4) { - if (ipaddr.IPv6.isValid(string4)) { - return ipaddr.IPv6.parse(string4); - } else if (ipaddr.IPv4.isValid(string4)) { - return ipaddr.IPv4.parse(string4); - } else { - throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format"); - } - }; - ipaddr.parseCIDR = function(string4) { - var e; - try { - return ipaddr.IPv6.parseCIDR(string4); - } catch (error1) { - e = error1; - try { - return ipaddr.IPv4.parseCIDR(string4); - } catch (error12) { - e = error12; - throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format"); - } - } - }; - ipaddr.fromByteArray = function(bytes) { - var length; - length = bytes.length; - if (length === 4) { - return new ipaddr.IPv4(bytes); - } else if (length === 16) { - return new ipaddr.IPv6(bytes); - } else { - throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address"); - } - }; - ipaddr.process = function(string4) { - var addr; - addr = this.parse(string4); - if (addr.kind() === "ipv6" && addr.isIPv4MappedAddress()) { - return addr.toIPv4Address(); - } else { - return addr; - } - }; - }).call(exports); -}); - -// node_modules/proxy-addr/index.js -var require_proxy_addr = __commonJS((exports, module) => { - /*! - * proxy-addr - * Copyright(c) 2014-2016 Douglas Christopher Wilson - * MIT Licensed - */ - module.exports = proxyaddr; - module.exports.all = alladdrs; - module.exports.compile = compile; - var forwarded = require_forwarded(); - var ipaddr = require_ipaddr(); - var DIGIT_REGEXP = /^[0-9]+$/; - var isip = ipaddr.isValid; - var parseip = ipaddr.parse; - var IP_RANGES = { - linklocal: ["169.254.0.0/16", "fe80::/10"], - loopback: ["127.0.0.1/8", "::1/128"], - uniquelocal: ["10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16", "fc00::/7"] - }; - function alladdrs(req, trust) { - var addrs = forwarded(req); - if (!trust) { - return addrs; - } - if (typeof trust !== "function") { - trust = compile(trust); - } - for (var i = 0;i < addrs.length - 1; i++) { - if (trust(addrs[i], i)) - continue; - addrs.length = i + 1; - } - return addrs; - } - function compile(val) { - if (!val) { - throw new TypeError("argument is required"); - } - var trust; - if (typeof val === "string") { - trust = [val]; - } else if (Array.isArray(val)) { - trust = val.slice(); - } else { - throw new TypeError("unsupported trust argument"); - } - for (var i = 0;i < trust.length; i++) { - val = trust[i]; - if (!Object.prototype.hasOwnProperty.call(IP_RANGES, val)) { - continue; - } - val = IP_RANGES[val]; - trust.splice.apply(trust, [i, 1].concat(val)); - i += val.length - 1; - } - return compileTrust(compileRangeSubnets(trust)); - } - function compileRangeSubnets(arr) { - var rangeSubnets = new Array(arr.length); - for (var i = 0;i < arr.length; i++) { - rangeSubnets[i] = parseipNotation(arr[i]); - } - return rangeSubnets; - } - function compileTrust(rangeSubnets) { - var len = rangeSubnets.length; - return len === 0 ? trustNone : len === 1 ? trustSingle(rangeSubnets[0]) : trustMulti(rangeSubnets); - } - function parseipNotation(note) { - var pos = note.lastIndexOf("/"); - var str = pos !== -1 ? note.substring(0, pos) : note; - if (!isip(str)) { - throw new TypeError("invalid IP address: " + str); - } - var ip = parseip(str); - if (pos === -1 && ip.kind() === "ipv6" && ip.isIPv4MappedAddress()) { - ip = ip.toIPv4Address(); - } - var max = ip.kind() === "ipv6" ? 128 : 32; - var range = pos !== -1 ? note.substring(pos + 1, note.length) : null; - if (range === null) { - range = max; - } else if (DIGIT_REGEXP.test(range)) { - range = parseInt(range, 10); - } else if (ip.kind() === "ipv4" && isip(range)) { - range = parseNetmask(range); - } else { - range = null; - } - if (range <= 0 || range > max) { - throw new TypeError("invalid range on address: " + note); - } - return [ip, range]; - } - function parseNetmask(netmask) { - var ip = parseip(netmask); - var kind = ip.kind(); - return kind === "ipv4" ? ip.prefixLengthFromSubnetMask() : null; - } - function proxyaddr(req, trust) { - if (!req) { - throw new TypeError("req argument is required"); - } - if (!trust) { - throw new TypeError("trust argument is required"); - } - var addrs = alladdrs(req, trust); - var addr = addrs[addrs.length - 1]; - return addr; - } - function trustNone() { - return false; - } - function trustMulti(subnets) { - return function trust(addr) { - if (!isip(addr)) - return false; - var ip = parseip(addr); - var ipconv; - var kind = ip.kind(); - for (var i = 0;i < subnets.length; i++) { - var subnet = subnets[i]; - var subnetip = subnet[0]; - var subnetkind = subnetip.kind(); - var subnetrange = subnet[1]; - var trusted = ip; - if (kind !== subnetkind) { - if (subnetkind === "ipv4" && !ip.isIPv4MappedAddress()) { - continue; - } - if (!ipconv) { - ipconv = subnetkind === "ipv4" ? ip.toIPv4Address() : ip.toIPv4MappedAddress(); - } - trusted = ipconv; - } - if (trusted.match(subnetip, subnetrange)) { - return true; - } - } - return false; - }; - } - function trustSingle(subnet) { - var subnetip = subnet[0]; - var subnetkind = subnetip.kind(); - var subnetisipv4 = subnetkind === "ipv4"; - var subnetrange = subnet[1]; - return function trust(addr) { - if (!isip(addr)) - return false; - var ip = parseip(addr); - var kind = ip.kind(); - if (kind !== subnetkind) { - if (subnetisipv4 && !ip.isIPv4MappedAddress()) { - return false; - } - ip = subnetisipv4 ? ip.toIPv4Address() : ip.toIPv4MappedAddress(); - } - return ip.match(subnetip, subnetrange); - }; - } -}); - -// node_modules/express/lib/utils.js -var require_utils3 = __commonJS((exports) => { - /*! - * express - * Copyright(c) 2009-2013 TJ Holowaychuk - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - */ - var Buffer2 = require_safe_buffer().Buffer; - var contentDisposition = require_content_disposition(); - var contentType = require_content_type(); - var deprecate = require_depd()("express"); - var flatten = require_array_flatten(); - var mime = require_send().mime; - var etag = require_etag(); - var proxyaddr = require_proxy_addr(); - var qs = require_lib2(); - var querystring = __require("querystring"); - exports.etag = createETagGenerator({ weak: false }); - exports.wetag = createETagGenerator({ weak: true }); - exports.isAbsolute = function(path8) { - if (path8[0] === "/") - return true; - if (path8[1] === ":" && (path8[2] === "\\" || path8[2] === "/")) - return true; - if (path8.substring(0, 2) === "\\\\") - return true; - }; - exports.flatten = deprecate.function(flatten, "utils.flatten: use array-flatten npm module instead"); - exports.normalizeType = function(type) { - return ~type.indexOf("/") ? acceptParams(type) : { value: mime.lookup(type), params: {} }; - }; - exports.normalizeTypes = function(types) { - var ret = []; - for (var i = 0;i < types.length; ++i) { - ret.push(exports.normalizeType(types[i])); - } - return ret; - }; - exports.contentDisposition = deprecate.function(contentDisposition, "utils.contentDisposition: use content-disposition npm module instead"); - function acceptParams(str) { - var parts = str.split(/ *; */); - var ret = { value: parts[0], quality: 1, params: {} }; - for (var i = 1;i < parts.length; ++i) { - var pms = parts[i].split(/ *= */); - if (pms[0] === "q") { - ret.quality = parseFloat(pms[1]); - } else { - ret.params[pms[0]] = pms[1]; - } - } - return ret; - } - exports.compileETag = function(val) { - var fn; - if (typeof val === "function") { - return val; - } - switch (val) { - case true: - case "weak": - fn = exports.wetag; - break; - case false: - break; - case "strong": - fn = exports.etag; - break; - default: - throw new TypeError("unknown value for etag function: " + val); - } - return fn; - }; - exports.compileQueryParser = function compileQueryParser(val) { - var fn; - if (typeof val === "function") { - return val; - } - switch (val) { - case true: - case "simple": - fn = querystring.parse; - break; - case false: - fn = newObject; - break; - case "extended": - fn = parseExtendedQueryString; - break; - default: - throw new TypeError("unknown value for query parser function: " + val); - } - return fn; - }; - exports.compileTrust = function(val) { - if (typeof val === "function") - return val; - if (val === true) { - return function() { - return true; - }; - } - if (typeof val === "number") { - return function(a, i) { - return i < val; - }; - } - if (typeof val === "string") { - val = val.split(",").map(function(v) { - return v.trim(); - }); - } - return proxyaddr.compile(val || []); - }; - exports.setCharset = function setCharset(type, charset) { - if (!type || !charset) { - return type; - } - var parsed = contentType.parse(type); - parsed.parameters.charset = charset; - return contentType.format(parsed); - }; - function createETagGenerator(options) { - return function generateETag(body, encoding) { - var buf = !Buffer2.isBuffer(body) ? Buffer2.from(body, encoding) : body; - return etag(buf, options); - }; - } - function parseExtendedQueryString(str) { - return qs.parse(str, { - allowPrototypes: true - }); - } - function newObject() { - return {}; - } -}); - -// node_modules/express/lib/application.js -var require_application = __commonJS((exports, module) => { - /*! - * express - * Copyright(c) 2009-2013 TJ Holowaychuk - * Copyright(c) 2013 Roman Shtylman - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - */ - var finalhandler = require_finalhandler(); - var Router = require_router(); - var methods = require_methods(); - var middleware = require_init(); - var query = require_query(); - var debug = require_src()("express:application"); - var View = require_view(); - var http = __require("http"); - var compileETag = require_utils3().compileETag; - var compileQueryParser = require_utils3().compileQueryParser; - var compileTrust = require_utils3().compileTrust; - var deprecate = require_depd()("express"); - var flatten = require_array_flatten(); - var merge2 = require_utils_merge(); - var resolve = __require("path").resolve; - var setPrototypeOf = require_setprototypeof(); - var hasOwnProperty = Object.prototype.hasOwnProperty; - var slice = Array.prototype.slice; - var app = exports = module.exports = {}; - var trustProxyDefaultSymbol = "@@symbol:trust_proxy_default"; - app.init = function init() { - this.cache = {}; - this.engines = {}; - this.settings = {}; - this.defaultConfiguration(); - }; - app.defaultConfiguration = function defaultConfiguration() { - var env = "development"; - this.enable("x-powered-by"); - this.set("etag", "weak"); - this.set("env", env); - this.set("query parser", "extended"); - this.set("subdomain offset", 2); - this.set("trust proxy", false); - Object.defineProperty(this.settings, trustProxyDefaultSymbol, { - configurable: true, - value: true - }); - debug("booting in %s mode", env); - this.on("mount", function onmount(parent) { - if (this.settings[trustProxyDefaultSymbol] === true && typeof parent.settings["trust proxy fn"] === "function") { - delete this.settings["trust proxy"]; - delete this.settings["trust proxy fn"]; - } - setPrototypeOf(this.request, parent.request); - setPrototypeOf(this.response, parent.response); - setPrototypeOf(this.engines, parent.engines); - setPrototypeOf(this.settings, parent.settings); - }); - this.locals = Object.create(null); - this.mountpath = "/"; - this.locals.settings = this.settings; - this.set("view", View); - this.set("views", resolve("views")); - this.set("jsonp callback name", "callback"); - if (env === "production") { - this.enable("view cache"); - } - Object.defineProperty(this, "router", { - get: function() { - throw new Error(`'app.router' is deprecated! -Please see the 3.x to 4.x migration guide for details on how to update your app.`); - } - }); - }; - app.lazyrouter = function lazyrouter() { - if (!this._router) { - this._router = new Router({ - caseSensitive: this.enabled("case sensitive routing"), - strict: this.enabled("strict routing") - }); - this._router.use(query(this.get("query parser fn"))); - this._router.use(middleware.init(this)); - } - }; - app.handle = function handle(req, res, callback) { - var router = this._router; - var done = callback || finalhandler(req, res, { - env: this.get("env"), - onerror: logerror.bind(this) - }); - if (!router) { - debug("no routes defined on app"); - done(); - return; - } - router.handle(req, res, done); - }; - app.use = function use(fn) { - var offset = 0; - var path8 = "/"; - if (typeof fn !== "function") { - var arg = fn; - while (Array.isArray(arg) && arg.length !== 0) { - arg = arg[0]; - } - if (typeof arg !== "function") { - offset = 1; - path8 = fn; - } - } - var fns = flatten(slice.call(arguments, offset)); - if (fns.length === 0) { - throw new TypeError("app.use() requires a middleware function"); - } - this.lazyrouter(); - var router = this._router; - fns.forEach(function(fn2) { - if (!fn2 || !fn2.handle || !fn2.set) { - return router.use(path8, fn2); - } - debug(".use app under %s", path8); - fn2.mountpath = path8; - fn2.parent = this; - router.use(path8, function mounted_app(req, res, next) { - var orig = req.app; - fn2.handle(req, res, function(err) { - setPrototypeOf(req, orig.request); - setPrototypeOf(res, orig.response); - next(err); - }); - }); - fn2.emit("mount", this); - }, this); - return this; - }; - app.route = function route(path8) { - this.lazyrouter(); - return this._router.route(path8); - }; - app.engine = function engine(ext, fn) { - if (typeof fn !== "function") { - throw new Error("callback function required"); - } - var extension = ext[0] !== "." ? "." + ext : ext; - this.engines[extension] = fn; - return this; - }; - app.param = function param(name, fn) { - this.lazyrouter(); - if (Array.isArray(name)) { - for (var i = 0;i < name.length; i++) { - this.param(name[i], fn); - } - return this; - } - this._router.param(name, fn); - return this; - }; - app.set = function set2(setting, val) { - if (arguments.length === 1) { - var settings = this.settings; - while (settings && settings !== Object.prototype) { - if (hasOwnProperty.call(settings, setting)) { - return settings[setting]; - } - settings = Object.getPrototypeOf(settings); - } - return; - } - debug('set "%s" to %o', setting, val); - this.settings[setting] = val; - switch (setting) { - case "etag": - this.set("etag fn", compileETag(val)); - break; - case "query parser": - this.set("query parser fn", compileQueryParser(val)); - break; - case "trust proxy": - this.set("trust proxy fn", compileTrust(val)); - Object.defineProperty(this.settings, trustProxyDefaultSymbol, { - configurable: true, - value: false - }); - break; - } - return this; - }; - app.path = function path8() { - return this.parent ? this.parent.path() + this.mountpath : ""; - }; - app.enabled = function enabled(setting) { - return Boolean(this.set(setting)); - }; - app.disabled = function disabled(setting) { - return !this.set(setting); - }; - app.enable = function enable(setting) { - return this.set(setting, true); - }; - app.disable = function disable(setting) { - return this.set(setting, false); - }; - methods.forEach(function(method) { - app[method] = function(path8) { - if (method === "get" && arguments.length === 1) { - return this.set(path8); - } - this.lazyrouter(); - var route = this._router.route(path8); - route[method].apply(route, slice.call(arguments, 1)); - return this; - }; - }); - app.all = function all(path8) { - this.lazyrouter(); - var route = this._router.route(path8); - var args = slice.call(arguments, 1); - for (var i = 0;i < methods.length; i++) { - route[methods[i]].apply(route, args); - } - return this; - }; - app.del = deprecate.function(app.delete, "app.del: Use app.delete instead"); - app.render = function render(name, options, callback) { - var cache = this.cache; - var done = callback; - var engines = this.engines; - var opts = options; - var renderOptions = {}; - var view; - if (typeof options === "function") { - done = options; - opts = {}; - } - merge2(renderOptions, this.locals); - if (opts._locals) { - merge2(renderOptions, opts._locals); - } - merge2(renderOptions, opts); - if (renderOptions.cache == null) { - renderOptions.cache = this.enabled("view cache"); - } - if (renderOptions.cache) { - view = cache[name]; - } - if (!view) { - var View2 = this.get("view"); - view = new View2(name, { - defaultEngine: this.get("view engine"), - root: this.get("views"), - engines - }); - if (!view.path) { - var dirs = Array.isArray(view.root) && view.root.length > 1 ? 'directories "' + view.root.slice(0, -1).join('", "') + '" or "' + view.root[view.root.length - 1] + '"' : 'directory "' + view.root + '"'; - var err = new Error('Failed to lookup view "' + name + '" in views ' + dirs); - err.view = view; - return done(err); - } - if (renderOptions.cache) { - cache[name] = view; - } - } - tryRender(view, renderOptions, done); - }; - app.listen = function listen() { - var server = http.createServer(this); - return server.listen.apply(server, arguments); - }; - function logerror(err) { - if (this.get("env") !== "test") - console.error(err.stack || err.toString()); - } - function tryRender(view, options, callback) { - try { - view.render(options, callback); - } catch (err) { - callback(err); - } - } -}); - -// node_modules/negotiator/lib/charset.js -var require_charset = __commonJS((exports, module) => { - module.exports = preferredCharsets; - module.exports.preferredCharsets = preferredCharsets; - var simpleCharsetRegExp = /^\s*([^\s;]+)\s*(?:;(.*))?$/; - function parseAcceptCharset(accept) { - var accepts = accept.split(","); - for (var i = 0, j = 0;i < accepts.length; i++) { - var charset = parseCharset(accepts[i].trim(), i); - if (charset) { - accepts[j++] = charset; - } - } - accepts.length = j; - return accepts; - } - function parseCharset(str, i) { - var match = simpleCharsetRegExp.exec(str); - if (!match) - return null; - var charset = match[1]; - var q = 1; - if (match[2]) { - var params = match[2].split(";"); - for (var j = 0;j < params.length; j++) { - var p = params[j].trim().split("="); - if (p[0] === "q") { - q = parseFloat(p[1]); - break; - } - } - } - return { - charset, - q, - i - }; - } - function getCharsetPriority(charset, accepted, index) { - var priority = { o: -1, q: 0, s: 0 }; - for (var i = 0;i < accepted.length; i++) { - var spec = specify(charset, accepted[i], index); - if (spec && (priority.s - spec.s || priority.q - spec.q || priority.o - spec.o) < 0) { - priority = spec; - } - } - return priority; - } - function specify(charset, spec, index) { - var s = 0; - if (spec.charset.toLowerCase() === charset.toLowerCase()) { - s |= 1; - } else if (spec.charset !== "*") { - return null; - } - return { - i: index, - o: spec.i, - q: spec.q, - s - }; - } - function preferredCharsets(accept, provided) { - var accepts = parseAcceptCharset(accept === undefined ? "*" : accept || ""); - if (!provided) { - return accepts.filter(isQuality).sort(compareSpecs).map(getFullCharset); - } - var priorities = provided.map(function getPriority(type, index) { - return getCharsetPriority(type, accepts, index); - }); - return priorities.filter(isQuality).sort(compareSpecs).map(function getCharset(priority) { - return provided[priorities.indexOf(priority)]; - }); - } - function compareSpecs(a, b) { - return b.q - a.q || b.s - a.s || a.o - b.o || a.i - b.i || 0; - } - function getFullCharset(spec) { - return spec.charset; - } - function isQuality(spec) { - return spec.q > 0; - } -}); - -// node_modules/negotiator/lib/encoding.js -var require_encoding = __commonJS((exports, module) => { - module.exports = preferredEncodings; - module.exports.preferredEncodings = preferredEncodings; - var simpleEncodingRegExp = /^\s*([^\s;]+)\s*(?:;(.*))?$/; - function parseAcceptEncoding(accept) { - var accepts = accept.split(","); - var hasIdentity = false; - var minQuality = 1; - for (var i = 0, j = 0;i < accepts.length; i++) { - var encoding = parseEncoding(accepts[i].trim(), i); - if (encoding) { - accepts[j++] = encoding; - hasIdentity = hasIdentity || specify("identity", encoding); - minQuality = Math.min(minQuality, encoding.q || 1); - } - } - if (!hasIdentity) { - accepts[j++] = { - encoding: "identity", - q: minQuality, - i - }; - } - accepts.length = j; - return accepts; - } - function parseEncoding(str, i) { - var match = simpleEncodingRegExp.exec(str); - if (!match) - return null; - var encoding = match[1]; - var q = 1; - if (match[2]) { - var params = match[2].split(";"); - for (var j = 0;j < params.length; j++) { - var p = params[j].trim().split("="); - if (p[0] === "q") { - q = parseFloat(p[1]); - break; - } - } - } - return { - encoding, - q, - i - }; - } - function getEncodingPriority(encoding, accepted, index) { - var priority = { o: -1, q: 0, s: 0 }; - for (var i = 0;i < accepted.length; i++) { - var spec = specify(encoding, accepted[i], index); - if (spec && (priority.s - spec.s || priority.q - spec.q || priority.o - spec.o) < 0) { - priority = spec; - } - } - return priority; - } - function specify(encoding, spec, index) { - var s = 0; - if (spec.encoding.toLowerCase() === encoding.toLowerCase()) { - s |= 1; - } else if (spec.encoding !== "*") { - return null; - } - return { - i: index, - o: spec.i, - q: spec.q, - s - }; - } - function preferredEncodings(accept, provided) { - var accepts = parseAcceptEncoding(accept || ""); - if (!provided) { - return accepts.filter(isQuality).sort(compareSpecs).map(getFullEncoding); - } - var priorities = provided.map(function getPriority(type, index) { - return getEncodingPriority(type, accepts, index); - }); - return priorities.filter(isQuality).sort(compareSpecs).map(function getEncoding(priority) { - return provided[priorities.indexOf(priority)]; - }); - } - function compareSpecs(a, b) { - return b.q - a.q || b.s - a.s || a.o - b.o || a.i - b.i || 0; - } - function getFullEncoding(spec) { - return spec.encoding; - } - function isQuality(spec) { - return spec.q > 0; - } -}); - -// node_modules/negotiator/lib/language.js -var require_language = __commonJS((exports, module) => { - module.exports = preferredLanguages; - module.exports.preferredLanguages = preferredLanguages; - var simpleLanguageRegExp = /^\s*([^\s\-;]+)(?:-([^\s;]+))?\s*(?:;(.*))?$/; - function parseAcceptLanguage(accept) { - var accepts = accept.split(","); - for (var i = 0, j = 0;i < accepts.length; i++) { - var language = parseLanguage(accepts[i].trim(), i); - if (language) { - accepts[j++] = language; - } - } - accepts.length = j; - return accepts; - } - function parseLanguage(str, i) { - var match = simpleLanguageRegExp.exec(str); - if (!match) - return null; - var prefix = match[1]; - var suffix = match[2]; - var full = prefix; - if (suffix) - full += "-" + suffix; - var q = 1; - if (match[3]) { - var params = match[3].split(";"); - for (var j = 0;j < params.length; j++) { - var p = params[j].split("="); - if (p[0] === "q") - q = parseFloat(p[1]); - } - } - return { - prefix, - suffix, - q, - i, - full - }; - } - function getLanguagePriority(language, accepted, index) { - var priority = { o: -1, q: 0, s: 0 }; - for (var i = 0;i < accepted.length; i++) { - var spec = specify(language, accepted[i], index); - if (spec && (priority.s - spec.s || priority.q - spec.q || priority.o - spec.o) < 0) { - priority = spec; - } - } - return priority; - } - function specify(language, spec, index) { - var p = parseLanguage(language); - if (!p) - return null; - var s = 0; - if (spec.full.toLowerCase() === p.full.toLowerCase()) { - s |= 4; - } else if (spec.prefix.toLowerCase() === p.full.toLowerCase()) { - s |= 2; - } else if (spec.full.toLowerCase() === p.prefix.toLowerCase()) { - s |= 1; - } else if (spec.full !== "*") { - return null; - } - return { - i: index, - o: spec.i, - q: spec.q, - s - }; - } - function preferredLanguages(accept, provided) { - var accepts = parseAcceptLanguage(accept === undefined ? "*" : accept || ""); - if (!provided) { - return accepts.filter(isQuality).sort(compareSpecs).map(getFullLanguage); - } - var priorities = provided.map(function getPriority(type, index) { - return getLanguagePriority(type, accepts, index); - }); - return priorities.filter(isQuality).sort(compareSpecs).map(function getLanguage(priority) { - return provided[priorities.indexOf(priority)]; - }); - } - function compareSpecs(a, b) { - return b.q - a.q || b.s - a.s || a.o - b.o || a.i - b.i || 0; - } - function getFullLanguage(spec) { - return spec.full; - } - function isQuality(spec) { - return spec.q > 0; - } -}); - -// node_modules/negotiator/lib/mediaType.js -var require_mediaType = __commonJS((exports, module) => { - module.exports = preferredMediaTypes; - module.exports.preferredMediaTypes = preferredMediaTypes; - var simpleMediaTypeRegExp = /^\s*([^\s\/;]+)\/([^;\s]+)\s*(?:;(.*))?$/; - function parseAccept(accept) { - var accepts = splitMediaTypes(accept); - for (var i = 0, j = 0;i < accepts.length; i++) { - var mediaType = parseMediaType(accepts[i].trim(), i); - if (mediaType) { - accepts[j++] = mediaType; - } - } - accepts.length = j; - return accepts; - } - function parseMediaType(str, i) { - var match = simpleMediaTypeRegExp.exec(str); - if (!match) - return null; - var params = Object.create(null); - var q = 1; - var subtype = match[2]; - var type = match[1]; - if (match[3]) { - var kvps = splitParameters(match[3]).map(splitKeyValuePair); - for (var j = 0;j < kvps.length; j++) { - var pair = kvps[j]; - var key = pair[0].toLowerCase(); - var val = pair[1]; - var value = val && val[0] === '"' && val[val.length - 1] === '"' ? val.substr(1, val.length - 2) : val; - if (key === "q") { - q = parseFloat(value); - break; - } - params[key] = value; - } - } - return { - type, - subtype, - params, - q, - i - }; - } - function getMediaTypePriority(type, accepted, index) { - var priority = { o: -1, q: 0, s: 0 }; - for (var i = 0;i < accepted.length; i++) { - var spec = specify(type, accepted[i], index); - if (spec && (priority.s - spec.s || priority.q - spec.q || priority.o - spec.o) < 0) { - priority = spec; - } - } - return priority; - } - function specify(type, spec, index) { - var p = parseMediaType(type); - var s = 0; - if (!p) { - return null; - } - if (spec.type.toLowerCase() == p.type.toLowerCase()) { - s |= 4; - } else if (spec.type != "*") { - return null; - } - if (spec.subtype.toLowerCase() == p.subtype.toLowerCase()) { - s |= 2; - } else if (spec.subtype != "*") { - return null; - } - var keys = Object.keys(spec.params); - if (keys.length > 0) { - if (keys.every(function(k) { - return spec.params[k] == "*" || (spec.params[k] || "").toLowerCase() == (p.params[k] || "").toLowerCase(); - })) { - s |= 1; - } else { - return null; - } - } - return { - i: index, - o: spec.i, - q: spec.q, - s - }; - } - function preferredMediaTypes(accept, provided) { - var accepts = parseAccept(accept === undefined ? "*/*" : accept || ""); - if (!provided) { - return accepts.filter(isQuality).sort(compareSpecs).map(getFullType); - } - var priorities = provided.map(function getPriority(type, index) { - return getMediaTypePriority(type, accepts, index); - }); - return priorities.filter(isQuality).sort(compareSpecs).map(function getType(priority) { - return provided[priorities.indexOf(priority)]; - }); - } - function compareSpecs(a, b) { - return b.q - a.q || b.s - a.s || a.o - b.o || a.i - b.i || 0; - } - function getFullType(spec) { - return spec.type + "/" + spec.subtype; - } - function isQuality(spec) { - return spec.q > 0; - } - function quoteCount(string4) { - var count = 0; - var index = 0; - while ((index = string4.indexOf('"', index)) !== -1) { - count++; - index++; - } - return count; - } - function splitKeyValuePair(str) { - var index = str.indexOf("="); - var key; - var val; - if (index === -1) { - key = str; - } else { - key = str.substr(0, index); - val = str.substr(index + 1); - } - return [key, val]; - } - function splitMediaTypes(accept) { - var accepts = accept.split(","); - for (var i = 1, j = 0;i < accepts.length; i++) { - if (quoteCount(accepts[j]) % 2 == 0) { - accepts[++j] = accepts[i]; - } else { - accepts[j] += "," + accepts[i]; - } - } - accepts.length = j + 1; - return accepts; - } - function splitParameters(str) { - var parameters = str.split(";"); - for (var i = 1, j = 0;i < parameters.length; i++) { - if (quoteCount(parameters[j]) % 2 == 0) { - parameters[++j] = parameters[i]; - } else { - parameters[j] += ";" + parameters[i]; - } - } - parameters.length = j + 1; - for (var i = 0;i < parameters.length; i++) { - parameters[i] = parameters[i].trim(); - } - return parameters; - } -}); - -// node_modules/negotiator/index.js -var require_negotiator = __commonJS((exports, module) => { - /*! - * negotiator - * Copyright(c) 2012 Federico Romero - * Copyright(c) 2012-2014 Isaac Z. Schlueter - * Copyright(c) 2015 Douglas Christopher Wilson - * MIT Licensed - */ - var preferredCharsets = require_charset(); - var preferredEncodings = require_encoding(); - var preferredLanguages = require_language(); - var preferredMediaTypes = require_mediaType(); - module.exports = Negotiator; - module.exports.Negotiator = Negotiator; - function Negotiator(request) { - if (!(this instanceof Negotiator)) { - return new Negotiator(request); - } - this.request = request; - } - Negotiator.prototype.charset = function charset(available) { - var set2 = this.charsets(available); - return set2 && set2[0]; - }; - Negotiator.prototype.charsets = function charsets(available) { - return preferredCharsets(this.request.headers["accept-charset"], available); - }; - Negotiator.prototype.encoding = function encoding(available) { - var set2 = this.encodings(available); - return set2 && set2[0]; - }; - Negotiator.prototype.encodings = function encodings(available) { - return preferredEncodings(this.request.headers["accept-encoding"], available); - }; - Negotiator.prototype.language = function language(available) { - var set2 = this.languages(available); - return set2 && set2[0]; - }; - Negotiator.prototype.languages = function languages(available) { - return preferredLanguages(this.request.headers["accept-language"], available); - }; - Negotiator.prototype.mediaType = function mediaType(available) { - var set2 = this.mediaTypes(available); - return set2 && set2[0]; - }; - Negotiator.prototype.mediaTypes = function mediaTypes(available) { - return preferredMediaTypes(this.request.headers.accept, available); - }; - Negotiator.prototype.preferredCharset = Negotiator.prototype.charset; - Negotiator.prototype.preferredCharsets = Negotiator.prototype.charsets; - Negotiator.prototype.preferredEncoding = Negotiator.prototype.encoding; - Negotiator.prototype.preferredEncodings = Negotiator.prototype.encodings; - Negotiator.prototype.preferredLanguage = Negotiator.prototype.language; - Negotiator.prototype.preferredLanguages = Negotiator.prototype.languages; - Negotiator.prototype.preferredMediaType = Negotiator.prototype.mediaType; - Negotiator.prototype.preferredMediaTypes = Negotiator.prototype.mediaTypes; -}); - -// node_modules/accepts/index.js -var require_accepts = __commonJS((exports, module) => { - /*! - * accepts - * Copyright(c) 2014 Jonathan Ong - * Copyright(c) 2015 Douglas Christopher Wilson - * MIT Licensed - */ - var Negotiator = require_negotiator(); - var mime = require_mime_types(); - module.exports = Accepts; - function Accepts(req) { - if (!(this instanceof Accepts)) { - return new Accepts(req); - } - this.headers = req.headers; - this.negotiator = new Negotiator(req); - } - Accepts.prototype.type = Accepts.prototype.types = function(types_) { - var types = types_; - if (types && !Array.isArray(types)) { - types = new Array(arguments.length); - for (var i = 0;i < types.length; i++) { - types[i] = arguments[i]; - } - } - if (!types || types.length === 0) { - return this.negotiator.mediaTypes(); - } - if (!this.headers.accept) { - return types[0]; - } - var mimes = types.map(extToMime); - var accepts = this.negotiator.mediaTypes(mimes.filter(validMime)); - var first = accepts[0]; - return first ? types[mimes.indexOf(first)] : false; - }; - Accepts.prototype.encoding = Accepts.prototype.encodings = function(encodings_) { - var encodings = encodings_; - if (encodings && !Array.isArray(encodings)) { - encodings = new Array(arguments.length); - for (var i = 0;i < encodings.length; i++) { - encodings[i] = arguments[i]; - } - } - if (!encodings || encodings.length === 0) { - return this.negotiator.encodings(); - } - return this.negotiator.encodings(encodings)[0] || false; - }; - Accepts.prototype.charset = Accepts.prototype.charsets = function(charsets_) { - var charsets = charsets_; - if (charsets && !Array.isArray(charsets)) { - charsets = new Array(arguments.length); - for (var i = 0;i < charsets.length; i++) { - charsets[i] = arguments[i]; - } - } - if (!charsets || charsets.length === 0) { - return this.negotiator.charsets(); - } - return this.negotiator.charsets(charsets)[0] || false; - }; - Accepts.prototype.lang = Accepts.prototype.langs = Accepts.prototype.language = Accepts.prototype.languages = function(languages_) { - var languages = languages_; - if (languages && !Array.isArray(languages)) { - languages = new Array(arguments.length); - for (var i = 0;i < languages.length; i++) { - languages[i] = arguments[i]; - } - } - if (!languages || languages.length === 0) { - return this.negotiator.languages(); - } - return this.negotiator.languages(languages)[0] || false; - }; - function extToMime(type) { - return type.indexOf("/") === -1 ? mime.lookup(type) : type; - } - function validMime(type) { - return typeof type === "string"; - } -}); - -// node_modules/express/lib/request.js -var require_request = __commonJS((exports, module) => { - /*! - * express - * Copyright(c) 2009-2013 TJ Holowaychuk - * Copyright(c) 2013 Roman Shtylman - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - */ - var accepts = require_accepts(); - var deprecate = require_depd()("express"); - var isIP = __require("net").isIP; - var typeis = require_type_is(); - var http = __require("http"); - var fresh = require_fresh(); - var parseRange = require_range_parser(); - var parse5 = require_parseurl(); - var proxyaddr = require_proxy_addr(); - var req = Object.create(http.IncomingMessage.prototype); - module.exports = req; - req.get = req.header = function header(name) { - if (!name) { - throw new TypeError("name argument is required to req.get"); - } - if (typeof name !== "string") { - throw new TypeError("name must be a string to req.get"); - } - var lc = name.toLowerCase(); - switch (lc) { - case "referer": - case "referrer": - return this.headers.referrer || this.headers.referer; - default: - return this.headers[lc]; - } - }; - req.accepts = function() { - var accept = accepts(this); - return accept.types.apply(accept, arguments); - }; - req.acceptsEncodings = function() { - var accept = accepts(this); - return accept.encodings.apply(accept, arguments); - }; - req.acceptsEncoding = deprecate.function(req.acceptsEncodings, "req.acceptsEncoding: Use acceptsEncodings instead"); - req.acceptsCharsets = function() { - var accept = accepts(this); - return accept.charsets.apply(accept, arguments); - }; - req.acceptsCharset = deprecate.function(req.acceptsCharsets, "req.acceptsCharset: Use acceptsCharsets instead"); - req.acceptsLanguages = function() { - var accept = accepts(this); - return accept.languages.apply(accept, arguments); - }; - req.acceptsLanguage = deprecate.function(req.acceptsLanguages, "req.acceptsLanguage: Use acceptsLanguages instead"); - req.range = function range(size, options) { - var range2 = this.get("Range"); - if (!range2) - return; - return parseRange(size, range2, options); - }; - req.param = function param(name, defaultValue) { - var params = this.params || {}; - var body = this.body || {}; - var query = this.query || {}; - var args = arguments.length === 1 ? "name" : "name, default"; - deprecate("req.param(" + args + "): Use req.params, req.body, or req.query instead"); - if (params[name] != null && params.hasOwnProperty(name)) - return params[name]; - if (body[name] != null) - return body[name]; - if (query[name] != null) - return query[name]; - return defaultValue; - }; - req.is = function is(types) { - var arr = types; - if (!Array.isArray(types)) { - arr = new Array(arguments.length); - for (var i = 0;i < arr.length; i++) { - arr[i] = arguments[i]; - } - } - return typeis(this, arr); - }; - defineGetter(req, "protocol", function protocol() { - var proto = this.connection.encrypted ? "https" : "http"; - var trust = this.app.get("trust proxy fn"); - if (!trust(this.connection.remoteAddress, 0)) { - return proto; - } - var header = this.get("X-Forwarded-Proto") || proto; - var index = header.indexOf(","); - return index !== -1 ? header.substring(0, index).trim() : header.trim(); - }); - defineGetter(req, "secure", function secure() { - return this.protocol === "https"; - }); - defineGetter(req, "ip", function ip() { - var trust = this.app.get("trust proxy fn"); - return proxyaddr(this, trust); - }); - defineGetter(req, "ips", function ips() { - var trust = this.app.get("trust proxy fn"); - var addrs = proxyaddr.all(this, trust); - addrs.reverse().pop(); - return addrs; - }); - defineGetter(req, "subdomains", function subdomains() { - var hostname = this.hostname; - if (!hostname) - return []; - var offset = this.app.get("subdomain offset"); - var subdomains2 = !isIP(hostname) ? hostname.split(".").reverse() : [hostname]; - return subdomains2.slice(offset); - }); - defineGetter(req, "path", function path8() { - return parse5(this).pathname; - }); - defineGetter(req, "hostname", function hostname() { - var trust = this.app.get("trust proxy fn"); - var host = this.get("X-Forwarded-Host"); - if (!host || !trust(this.connection.remoteAddress, 0)) { - host = this.get("Host"); - } else if (host.indexOf(",") !== -1) { - host = host.substring(0, host.indexOf(",")).trimRight(); - } - if (!host) - return; - var offset = host[0] === "[" ? host.indexOf("]") + 1 : 0; - var index = host.indexOf(":", offset); - return index !== -1 ? host.substring(0, index) : host; - }); - defineGetter(req, "host", deprecate.function(function host() { - return this.hostname; - }, "req.host: Use req.hostname instead")); - defineGetter(req, "fresh", function() { - var method = this.method; - var res = this.res; - var status = res.statusCode; - if (method !== "GET" && method !== "HEAD") - return false; - if (status >= 200 && status < 300 || status === 304) { - return fresh(this.headers, { - etag: res.get("ETag"), - "last-modified": res.get("Last-Modified") - }); - } - return false; - }); - defineGetter(req, "stale", function stale() { - return !this.fresh; - }); - defineGetter(req, "xhr", function xhr() { - var val = this.get("X-Requested-With") || ""; - return val.toLowerCase() === "xmlhttprequest"; - }); - function defineGetter(obj, name, getter) { - Object.defineProperty(obj, name, { - configurable: true, - enumerable: true, - get: getter - }); - } -}); - -// node_modules/cookie-signature/index.js -var require_cookie_signature = __commonJS((exports) => { - var crypto = __require("crypto"); - exports.sign = function(val, secret) { - if (typeof val !== "string") - throw new TypeError("Cookie value must be provided as a string."); - if (secret == null) - throw new TypeError("Secret key must be provided."); - return val + "." + crypto.createHmac("sha256", secret).update(val).digest("base64").replace(/\=+$/, ""); - }; - exports.unsign = function(val, secret) { - if (typeof val !== "string") - throw new TypeError("Signed cookie string must be provided."); - if (secret == null) - throw new TypeError("Secret key must be provided."); - var str = val.slice(0, val.lastIndexOf(".")), mac2 = exports.sign(str, secret); - return sha1(mac2) == sha1(val) ? str : false; - }; - function sha1(str) { - return crypto.createHash("sha1").update(str).digest("hex"); - } -}); - -// node_modules/cookie/index.js -var require_cookie = __commonJS((exports) => { - /*! - * cookie - * Copyright(c) 2012-2014 Roman Shtylman - * Copyright(c) 2015 Douglas Christopher Wilson - * MIT Licensed - */ - exports.parse = parse5; - exports.serialize = serialize; - var __toString = Object.prototype.toString; - var __hasOwnProperty = Object.prototype.hasOwnProperty; - var cookieNameRegExp = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/; - var cookieValueRegExp = /^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/; - var domainValueRegExp = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i; - var pathValueRegExp = /^[\u0020-\u003A\u003D-\u007E]*$/; - function parse5(str, opt) { - if (typeof str !== "string") { - throw new TypeError("argument str must be a string"); - } - var obj = {}; - var len = str.length; - if (len < 2) - return obj; - var dec = opt && opt.decode || decode3; - var index = 0; - var eqIdx = 0; - var endIdx = 0; - do { - eqIdx = str.indexOf("=", index); - if (eqIdx === -1) - break; - endIdx = str.indexOf(";", index); - if (endIdx === -1) { - endIdx = len; - } else if (eqIdx > endIdx) { - index = str.lastIndexOf(";", eqIdx - 1) + 1; - continue; - } - var keyStartIdx = startIndex(str, index, eqIdx); - var keyEndIdx = endIndex(str, eqIdx, keyStartIdx); - var key = str.slice(keyStartIdx, keyEndIdx); - if (!__hasOwnProperty.call(obj, key)) { - var valStartIdx = startIndex(str, eqIdx + 1, endIdx); - var valEndIdx = endIndex(str, endIdx, valStartIdx); - if (str.charCodeAt(valStartIdx) === 34 && str.charCodeAt(valEndIdx - 1) === 34) { - valStartIdx++; - valEndIdx--; - } - var val = str.slice(valStartIdx, valEndIdx); - obj[key] = tryDecode(val, dec); - } - index = endIdx + 1; - } while (index < len); - return obj; - } - function startIndex(str, index, max) { - do { - var code = str.charCodeAt(index); - if (code !== 32 && code !== 9) - return index; - } while (++index < max); - return max; - } - function endIndex(str, index, min) { - while (index > min) { - var code = str.charCodeAt(--index); - if (code !== 32 && code !== 9) - return index + 1; - } - return min; - } - function serialize(name, val, opt) { - var enc = opt && opt.encode || encodeURIComponent; - if (typeof enc !== "function") { - throw new TypeError("option encode is invalid"); - } - if (!cookieNameRegExp.test(name)) { - throw new TypeError("argument name is invalid"); - } - var value = enc(val); - if (!cookieValueRegExp.test(value)) { - throw new TypeError("argument val is invalid"); - } - var str = name + "=" + value; - if (!opt) - return str; - if (opt.maxAge != null) { - var maxAge = Math.floor(opt.maxAge); - if (!isFinite(maxAge)) { - throw new TypeError("option maxAge is invalid"); - } - str += "; Max-Age=" + maxAge; - } - if (opt.domain) { - if (!domainValueRegExp.test(opt.domain)) { - throw new TypeError("option domain is invalid"); - } - str += "; Domain=" + opt.domain; - } - if (opt.path) { - if (!pathValueRegExp.test(opt.path)) { - throw new TypeError("option path is invalid"); - } - str += "; Path=" + opt.path; - } - if (opt.expires) { - var expires = opt.expires; - if (!isDate(expires) || isNaN(expires.valueOf())) { - throw new TypeError("option expires is invalid"); - } - str += "; Expires=" + expires.toUTCString(); - } - if (opt.httpOnly) { - str += "; HttpOnly"; - } - if (opt.secure) { - str += "; Secure"; - } - if (opt.partitioned) { - str += "; Partitioned"; - } - if (opt.priority) { - var priority = typeof opt.priority === "string" ? opt.priority.toLowerCase() : opt.priority; - switch (priority) { - case "low": - str += "; Priority=Low"; - break; - case "medium": - str += "; Priority=Medium"; - break; - case "high": - str += "; Priority=High"; - break; - default: - throw new TypeError("option priority is invalid"); - } - } - if (opt.sameSite) { - var sameSite = typeof opt.sameSite === "string" ? opt.sameSite.toLowerCase() : opt.sameSite; - switch (sameSite) { - case true: - str += "; SameSite=Strict"; - break; - case "lax": - str += "; SameSite=Lax"; - break; - case "strict": - str += "; SameSite=Strict"; - break; - case "none": - str += "; SameSite=None"; - break; - default: - throw new TypeError("option sameSite is invalid"); - } - } - return str; - } - function decode3(str) { - return str.indexOf("%") !== -1 ? decodeURIComponent(str) : str; - } - function isDate(val) { - return __toString.call(val) === "[object Date]"; - } - function tryDecode(str, decode4) { - try { - return decode4(str); - } catch (e) { - return str; - } - } -}); - -// node_modules/vary/index.js -var require_vary = __commonJS((exports, module) => { - /*! - * vary - * Copyright(c) 2014-2017 Douglas Christopher Wilson - * MIT Licensed - */ - module.exports = vary; - module.exports.append = append; - var FIELD_NAME_REGEXP = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/; - function append(header, field) { - if (typeof header !== "string") { - throw new TypeError("header argument is required"); - } - if (!field) { - throw new TypeError("field argument is required"); - } - var fields = !Array.isArray(field) ? parse5(String(field)) : field; - for (var j = 0;j < fields.length; j++) { - if (!FIELD_NAME_REGEXP.test(fields[j])) { - throw new TypeError("field argument contains an invalid header name"); - } - } - if (header === "*") { - return header; - } - var val = header; - var vals = parse5(header.toLowerCase()); - if (fields.indexOf("*") !== -1 || vals.indexOf("*") !== -1) { - return "*"; - } - for (var i = 0;i < fields.length; i++) { - var fld = fields[i].toLowerCase(); - if (vals.indexOf(fld) === -1) { - vals.push(fld); - val = val ? val + ", " + fields[i] : fields[i]; - } - } - return val; - } - function parse5(header) { - var end = 0; - var list = []; - var start = 0; - for (var i = 0, len = header.length;i < len; i++) { - switch (header.charCodeAt(i)) { - case 32: - if (start === end) { - start = end = i + 1; - } - break; - case 44: - list.push(header.substring(start, end)); - start = end = i + 1; - break; - default: - end = i + 1; - break; - } - } - list.push(header.substring(start, end)); - return list; - } - function vary(res, field) { - if (!res || !res.getHeader || !res.setHeader) { - throw new TypeError("res argument is required"); - } - var val = res.getHeader("Vary") || ""; - var header = Array.isArray(val) ? val.join(", ") : String(val); - if (val = append(header, field)) { - res.setHeader("Vary", val); - } - } -}); - -// node_modules/express/lib/response.js -var require_response = __commonJS((exports, module) => { - /*! - * express - * Copyright(c) 2009-2013 TJ Holowaychuk - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - */ - var Buffer2 = require_safe_buffer().Buffer; - var contentDisposition = require_content_disposition(); - var createError = require_http_errors(); - var deprecate = require_depd()("express"); - var encodeUrl = require_encodeurl(); - var escapeHtml = require_escape_html(); - var http = __require("http"); - var isAbsolute = require_utils3().isAbsolute; - var onFinished = require_on_finished(); - var path8 = __require("path"); - var statuses = require_statuses(); - var merge2 = require_utils_merge(); - var sign = require_cookie_signature().sign; - var normalizeType = require_utils3().normalizeType; - var normalizeTypes = require_utils3().normalizeTypes; - var setCharset = require_utils3().setCharset; - var cookie = require_cookie(); - var send = require_send(); - var extname = path8.extname; - var mime = send.mime; - var resolve = path8.resolve; - var vary = require_vary(); - var res = Object.create(http.ServerResponse.prototype); - module.exports = res; - var charsetRegExp = /;\s*charset\s*=/; - res.status = function status(code) { - if ((typeof code === "string" || Math.floor(code) !== code) && code > 99 && code < 1000) { - deprecate("res.status(" + JSON.stringify(code) + "): use res.status(" + Math.floor(code) + ") instead"); - } - this.statusCode = code; - return this; - }; - res.links = function(links) { - var link = this.get("Link") || ""; - if (link) - link += ", "; - return this.set("Link", link + Object.keys(links).map(function(rel) { - return "<" + links[rel] + '>; rel="' + rel + '"'; - }).join(", ")); - }; - res.send = function send2(body) { - var chunk = body; - var encoding; - var req = this.req; - var type; - var app = this.app; - if (arguments.length === 2) { - if (typeof arguments[0] !== "number" && typeof arguments[1] === "number") { - deprecate("res.send(body, status): Use res.status(status).send(body) instead"); - this.statusCode = arguments[1]; - } else { - deprecate("res.send(status, body): Use res.status(status).send(body) instead"); - this.statusCode = arguments[0]; - chunk = arguments[1]; - } - } - if (typeof chunk === "number" && arguments.length === 1) { - if (!this.get("Content-Type")) { - this.type("txt"); - } - deprecate("res.send(status): Use res.sendStatus(status) instead"); - this.statusCode = chunk; - chunk = statuses.message[chunk]; - } - switch (typeof chunk) { - case "string": - if (!this.get("Content-Type")) { - this.type("html"); - } - break; - case "boolean": - case "number": - case "object": - if (chunk === null) { - chunk = ""; - } else if (Buffer2.isBuffer(chunk)) { - if (!this.get("Content-Type")) { - this.type("bin"); - } - } else { - return this.json(chunk); - } - break; - } - if (typeof chunk === "string") { - encoding = "utf8"; - type = this.get("Content-Type"); - if (typeof type === "string") { - this.set("Content-Type", setCharset(type, "utf-8")); - } - } - var etagFn = app.get("etag fn"); - var generateETag = !this.get("ETag") && typeof etagFn === "function"; - var len; - if (chunk !== undefined) { - if (Buffer2.isBuffer(chunk)) { - len = chunk.length; - } else if (!generateETag && chunk.length < 1000) { - len = Buffer2.byteLength(chunk, encoding); - } else { - chunk = Buffer2.from(chunk, encoding); - encoding = undefined; - len = chunk.length; - } - this.set("Content-Length", len); - } - var etag; - if (generateETag && len !== undefined) { - if (etag = etagFn(chunk, encoding)) { - this.set("ETag", etag); - } - } - if (req.fresh) - this.statusCode = 304; - if (this.statusCode === 204 || this.statusCode === 304) { - this.removeHeader("Content-Type"); - this.removeHeader("Content-Length"); - this.removeHeader("Transfer-Encoding"); - chunk = ""; - } - if (this.statusCode === 205) { - this.set("Content-Length", "0"); - this.removeHeader("Transfer-Encoding"); - chunk = ""; - } - if (req.method === "HEAD") { - this.end(); - } else { - this.end(chunk, encoding); - } - return this; - }; - res.json = function json(obj) { - var val = obj; - if (arguments.length === 2) { - if (typeof arguments[1] === "number") { - deprecate("res.json(obj, status): Use res.status(status).json(obj) instead"); - this.statusCode = arguments[1]; - } else { - deprecate("res.json(status, obj): Use res.status(status).json(obj) instead"); - this.statusCode = arguments[0]; - val = arguments[1]; - } - } - var app = this.app; - var escape2 = app.get("json escape"); - var replacer = app.get("json replacer"); - var spaces = app.get("json spaces"); - var body = stringify(val, replacer, spaces, escape2); - if (!this.get("Content-Type")) { - this.set("Content-Type", "application/json"); - } - return this.send(body); - }; - res.jsonp = function jsonp(obj) { - var val = obj; - if (arguments.length === 2) { - if (typeof arguments[1] === "number") { - deprecate("res.jsonp(obj, status): Use res.status(status).jsonp(obj) instead"); - this.statusCode = arguments[1]; - } else { - deprecate("res.jsonp(status, obj): Use res.status(status).jsonp(obj) instead"); - this.statusCode = arguments[0]; - val = arguments[1]; - } - } - var app = this.app; - var escape2 = app.get("json escape"); - var replacer = app.get("json replacer"); - var spaces = app.get("json spaces"); - var body = stringify(val, replacer, spaces, escape2); - var callback = this.req.query[app.get("jsonp callback name")]; - if (!this.get("Content-Type")) { - this.set("X-Content-Type-Options", "nosniff"); - this.set("Content-Type", "application/json"); - } - if (Array.isArray(callback)) { - callback = callback[0]; - } - if (typeof callback === "string" && callback.length !== 0) { - this.set("X-Content-Type-Options", "nosniff"); - this.set("Content-Type", "text/javascript"); - callback = callback.replace(/[^\[\]\w$.]/g, ""); - if (body === undefined) { - body = ""; - } else if (typeof body === "string") { - body = body.replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029"); - } - body = "/**/ typeof " + callback + " === 'function' && " + callback + "(" + body + ");"; - } - return this.send(body); - }; - res.sendStatus = function sendStatus(statusCode) { - var body = statuses.message[statusCode] || String(statusCode); - this.statusCode = statusCode; - this.type("txt"); - return this.send(body); - }; - res.sendFile = function sendFile(path9, options, callback) { - var done = callback; - var req = this.req; - var res2 = this; - var next = req.next; - var opts = options || {}; - if (!path9) { - throw new TypeError("path argument is required to res.sendFile"); - } - if (typeof path9 !== "string") { - throw new TypeError("path must be a string to res.sendFile"); - } - if (typeof options === "function") { - done = options; - opts = {}; - } - if (!opts.root && !isAbsolute(path9)) { - throw new TypeError("path must be absolute or specify root to res.sendFile"); - } - var pathname = encodeURI(path9); - var file = send(req, pathname, opts); - sendfile(res2, file, opts, function(err) { - if (done) - return done(err); - if (err && err.code === "EISDIR") - return next(); - if (err && err.code !== "ECONNABORTED" && err.syscall !== "write") { - next(err); - } - }); - }; - res.sendfile = function(path9, options, callback) { - var done = callback; - var req = this.req; - var res2 = this; - var next = req.next; - var opts = options || {}; - if (typeof options === "function") { - done = options; - opts = {}; - } - var file = send(req, path9, opts); - sendfile(res2, file, opts, function(err) { - if (done) - return done(err); - if (err && err.code === "EISDIR") - return next(); - if (err && err.code !== "ECONNABORTED" && err.syscall !== "write") { - next(err); - } - }); - }; - res.sendfile = deprecate.function(res.sendfile, "res.sendfile: Use res.sendFile instead"); - res.download = function download(path9, filename, options, callback) { - var done = callback; - var name = filename; - var opts = options || null; - if (typeof filename === "function") { - done = filename; - name = null; - opts = null; - } else if (typeof options === "function") { - done = options; - opts = null; - } - if (typeof filename === "object" && (typeof options === "function" || options === undefined)) { - name = null; - opts = filename; - } - var headers = { - "Content-Disposition": contentDisposition(name || path9) - }; - if (opts && opts.headers) { - var keys = Object.keys(opts.headers); - for (var i = 0;i < keys.length; i++) { - var key = keys[i]; - if (key.toLowerCase() !== "content-disposition") { - headers[key] = opts.headers[key]; - } - } - } - opts = Object.create(opts); - opts.headers = headers; - var fullPath = !opts.root ? resolve(path9) : path9; - return this.sendFile(fullPath, opts, done); - }; - res.contentType = res.type = function contentType(type) { - var ct = type.indexOf("/") === -1 ? mime.lookup(type) : type; - return this.set("Content-Type", ct); - }; - res.format = function(obj) { - var req = this.req; - var next = req.next; - var keys = Object.keys(obj).filter(function(v) { - return v !== "default"; - }); - var key = keys.length > 0 ? req.accepts(keys) : false; - this.vary("Accept"); - if (key) { - this.set("Content-Type", normalizeType(key).value); - obj[key](req, this, next); - } else if (obj.default) { - obj.default(req, this, next); - } else { - next(createError(406, { - types: normalizeTypes(keys).map(function(o) { - return o.value; - }) - })); - } - return this; - }; - res.attachment = function attachment(filename) { - if (filename) { - this.type(extname(filename)); - } - this.set("Content-Disposition", contentDisposition(filename)); - return this; - }; - res.append = function append(field, val) { - var prev = this.get(field); - var value = val; - if (prev) { - value = Array.isArray(prev) ? prev.concat(val) : Array.isArray(val) ? [prev].concat(val) : [prev, val]; - } - return this.set(field, value); - }; - res.set = res.header = function header(field, val) { - if (arguments.length === 2) { - var value = Array.isArray(val) ? val.map(String) : String(val); - if (field.toLowerCase() === "content-type") { - if (Array.isArray(value)) { - throw new TypeError("Content-Type cannot be set to an Array"); - } - if (!charsetRegExp.test(value)) { - var charset = mime.charsets.lookup(value.split(";")[0]); - if (charset) - value += "; charset=" + charset.toLowerCase(); - } - } - this.setHeader(field, value); - } else { - for (var key in field) { - this.set(key, field[key]); - } - } - return this; - }; - res.get = function(field) { - return this.getHeader(field); - }; - res.clearCookie = function clearCookie(name, options) { - if (options) { - if (options.maxAge) { - deprecate('res.clearCookie: Passing "options.maxAge" is deprecated. In v5.0.0 of Express, this option will be ignored, as res.clearCookie will automatically set cookies to expire immediately. Please update your code to omit this option.'); - } - if (options.expires) { - deprecate('res.clearCookie: Passing "options.expires" is deprecated. In v5.0.0 of Express, this option will be ignored, as res.clearCookie will automatically set cookies to expire immediately. Please update your code to omit this option.'); - } - } - var opts = merge2({ expires: new Date(1), path: "/" }, options); - return this.cookie(name, "", opts); - }; - res.cookie = function(name, value, options) { - var opts = merge2({}, options); - var secret = this.req.secret; - var signed = opts.signed; - if (signed && !secret) { - throw new Error('cookieParser("secret") required for signed cookies'); - } - var val = typeof value === "object" ? "j:" + JSON.stringify(value) : String(value); - if (signed) { - val = "s:" + sign(val, secret); - } - if (opts.maxAge != null) { - var maxAge = opts.maxAge - 0; - if (!isNaN(maxAge)) { - opts.expires = new Date(Date.now() + maxAge); - opts.maxAge = Math.floor(maxAge / 1000); - } - } - if (opts.path == null) { - opts.path = "/"; - } - this.append("Set-Cookie", cookie.serialize(name, String(val), opts)); - return this; - }; - res.location = function location(url) { - var loc; - if (url === "back") { - deprecate('res.location("back"): use res.location(req.get("Referrer") || "/") and refer to https://dub.sh/security-redirect for best practices'); - loc = this.req.get("Referrer") || "/"; - } else { - loc = String(url); - } - return this.set("Location", encodeUrl(loc)); - }; - res.redirect = function redirect(url) { - var address = url; - var body; - var status = 302; - if (arguments.length === 2) { - if (typeof arguments[0] === "number") { - status = arguments[0]; - address = arguments[1]; - } else { - deprecate("res.redirect(url, status): Use res.redirect(status, url) instead"); - status = arguments[1]; - } - } - address = this.location(address).get("Location"); - this.format({ - text: function() { - body = statuses.message[status] + ". Redirecting to " + address; - }, - html: function() { - var u = escapeHtml(address); - body = "

" + statuses.message[status] + ". Redirecting to " + u + "

"; - }, - default: function() { - body = ""; - } - }); - this.statusCode = status; - this.set("Content-Length", Buffer2.byteLength(body)); - if (this.req.method === "HEAD") { - this.end(); - } else { - this.end(body); - } - }; - res.vary = function(field) { - if (!field || Array.isArray(field) && !field.length) { - deprecate("res.vary(): Provide a field name"); - return this; - } - vary(this, field); - return this; - }; - res.render = function render(view, options, callback) { - var app = this.req.app; - var done = callback; - var opts = options || {}; - var req = this.req; - var self2 = this; - if (typeof options === "function") { - done = options; - opts = {}; - } - opts._locals = self2.locals; - done = done || function(err, str) { - if (err) - return req.next(err); - self2.send(str); - }; - app.render(view, opts, done); - }; - function sendfile(res2, file, options, callback) { - var done = false; - var streaming; - function onaborted() { - if (done) - return; - done = true; - var err = new Error("Request aborted"); - err.code = "ECONNABORTED"; - callback(err); - } - function ondirectory() { - if (done) - return; - done = true; - var err = new Error("EISDIR, read"); - err.code = "EISDIR"; - callback(err); - } - function onerror(err) { - if (done) - return; - done = true; - callback(err); - } - function onend() { - if (done) - return; - done = true; - callback(); - } - function onfile() { - streaming = false; - } - function onfinish(err) { - if (err && err.code === "ECONNRESET") - return onaborted(); - if (err) - return onerror(err); - if (done) - return; - setImmediate(function() { - if (streaming !== false && !done) { - onaborted(); - return; - } - if (done) - return; - done = true; - callback(); - }); - } - function onstream() { - streaming = true; - } - file.on("directory", ondirectory); - file.on("end", onend); - file.on("error", onerror); - file.on("file", onfile); - file.on("stream", onstream); - onFinished(res2, onfinish); - if (options.headers) { - file.on("headers", function headers(res3) { - var obj = options.headers; - var keys = Object.keys(obj); - for (var i = 0;i < keys.length; i++) { - var k = keys[i]; - res3.setHeader(k, obj[k]); - } - }); - } - file.pipe(res2); - } - function stringify(value, replacer, spaces, escape2) { - var json = replacer || spaces ? JSON.stringify(value, replacer, spaces) : JSON.stringify(value); - if (escape2 && typeof json === "string") { - json = json.replace(/[<>&]/g, function(c) { - switch (c.charCodeAt(0)) { - case 60: - return "\\u003c"; - case 62: - return "\\u003e"; - case 38: - return "\\u0026"; - default: - return c; - } - }); - } - return json; - } -}); - -// node_modules/serve-static/index.js -var require_serve_static = __commonJS((exports, module) => { - /*! - * serve-static - * Copyright(c) 2010 Sencha Inc. - * Copyright(c) 2011 TJ Holowaychuk - * Copyright(c) 2014-2016 Douglas Christopher Wilson - * MIT Licensed - */ - var encodeUrl = require_encodeurl(); - var escapeHtml = require_escape_html(); - var parseUrl = require_parseurl(); - var resolve = __require("path").resolve; - var send = require_send(); - var url = __require("url"); - module.exports = serveStatic; - module.exports.mime = send.mime; - function serveStatic(root, options) { - if (!root) { - throw new TypeError("root path required"); - } - if (typeof root !== "string") { - throw new TypeError("root path must be a string"); - } - var opts = Object.create(options || null); - var fallthrough = opts.fallthrough !== false; - var redirect = opts.redirect !== false; - var setHeaders = opts.setHeaders; - if (setHeaders && typeof setHeaders !== "function") { - throw new TypeError("option setHeaders must be function"); - } - opts.maxage = opts.maxage || opts.maxAge || 0; - opts.root = resolve(root); - var onDirectory = redirect ? createRedirectDirectoryListener() : createNotFoundDirectoryListener(); - return function serveStatic2(req, res, next) { - if (req.method !== "GET" && req.method !== "HEAD") { - if (fallthrough) { - return next(); - } - res.statusCode = 405; - res.setHeader("Allow", "GET, HEAD"); - res.setHeader("Content-Length", "0"); - res.end(); - return; - } - var forwardError = !fallthrough; - var originalUrl = parseUrl.original(req); - var path8 = parseUrl(req).pathname; - if (path8 === "/" && originalUrl.pathname.substr(-1) !== "/") { - path8 = ""; - } - var stream = send(req, path8, opts); - stream.on("directory", onDirectory); - if (setHeaders) { - stream.on("headers", setHeaders); - } - if (fallthrough) { - stream.on("file", function onFile() { - forwardError = true; - }); - } - stream.on("error", function error2(err) { - if (forwardError || !(err.statusCode < 500)) { - next(err); - return; - } - next(); - }); - stream.pipe(res); - }; - } - function collapseLeadingSlashes(str) { - for (var i = 0;i < str.length; i++) { - if (str.charCodeAt(i) !== 47) { - break; - } - } - return i > 1 ? "/" + str.substr(i) : str; - } - function createHtmlDocument(title, body) { - return ` -` + ` -` + ` -` + ` -` + "" + title + ` -` + ` -` + ` -` + "
" + body + `
-` + ` -` + ` -`; - } - function createNotFoundDirectoryListener() { - return function notFound() { - this.error(404); - }; - } - function createRedirectDirectoryListener() { - return function redirect(res) { - if (this.hasTrailingSlash()) { - this.error(404); - return; - } - var originalUrl = parseUrl.original(this.req); - originalUrl.path = null; - originalUrl.pathname = collapseLeadingSlashes(originalUrl.pathname + "/"); - var loc = encodeUrl(url.format(originalUrl)); - var doc2 = createHtmlDocument("Redirecting", "Redirecting to " + escapeHtml(loc)); - res.statusCode = 301; - res.setHeader("Content-Type", "text/html; charset=UTF-8"); - res.setHeader("Content-Length", Buffer.byteLength(doc2)); - res.setHeader("Content-Security-Policy", "default-src 'none'"); - res.setHeader("X-Content-Type-Options", "nosniff"); - res.setHeader("Location", loc); - res.end(doc2); - }; - } -}); - -// node_modules/express/lib/express.js -var require_express = __commonJS((exports, module) => { - /*! - * express - * Copyright(c) 2009-2013 TJ Holowaychuk - * Copyright(c) 2013 Roman Shtylman - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - */ - var bodyParser = require_body_parser(); - var EventEmitter = __require("events").EventEmitter; - var mixin = require_merge_descriptors(); - var proto = require_application(); - var Route = require_route(); - var Router = require_router(); - var req = require_request(); - var res = require_response(); - exports = module.exports = createApplication; - function createApplication() { - var app = function(req2, res2, next) { - app.handle(req2, res2, next); - }; - mixin(app, EventEmitter.prototype, false); - mixin(app, proto, false); - app.request = Object.create(req, { - app: { configurable: true, enumerable: true, writable: true, value: app } - }); - app.response = Object.create(res, { - app: { configurable: true, enumerable: true, writable: true, value: app } - }); - app.init(); - return app; - } - exports.application = proto; - exports.request = req; - exports.response = res; - exports.Route = Route; - exports.Router = Router; - exports.json = bodyParser.json; - exports.query = require_query(); - exports.raw = bodyParser.raw; - exports.static = require_serve_static(); - exports.text = bodyParser.text; - exports.urlencoded = bodyParser.urlencoded; - var removedMiddlewares = [ - "bodyParser", - "compress", - "cookieSession", - "session", - "logger", - "cookieParser", - "favicon", - "responseTime", - "errorHandler", - "timeout", - "methodOverride", - "vhost", - "csrf", - "directory", - "limit", - "multipart", - "staticCache" - ]; - removedMiddlewares.forEach(function(name) { - Object.defineProperty(exports, name, { - get: function() { - throw new Error("Most middleware (like " + name + ") is no longer bundled with Express and must be installed separately. Please see https://github.com/senchalabs/connect#middleware."); - }, - configurable: true - }); - }); -}); - -// node_modules/object-assign/index.js -var require_object_assign = __commonJS((exports, module) => { - var getOwnPropertySymbols = Object.getOwnPropertySymbols; - var hasOwnProperty = Object.prototype.hasOwnProperty; - var propIsEnumerable = Object.prototype.propertyIsEnumerable; - function toObject(val) { - if (val === null || val === undefined) { - throw new TypeError("Object.assign cannot be called with null or undefined"); - } - return Object(val); - } - function shouldUseNative() { - try { - if (!Object.assign) { - return false; - } - var test1 = new String("abc"); - test1[5] = "de"; - if (Object.getOwnPropertyNames(test1)[0] === "5") { - return false; - } - var test2 = {}; - for (var i = 0;i < 10; i++) { - test2["_" + String.fromCharCode(i)] = i; - } - var order2 = Object.getOwnPropertyNames(test2).map(function(n) { - return test2[n]; - }); - if (order2.join("") !== "0123456789") { - return false; - } - var test3 = {}; - "abcdefghijklmnopqrst".split("").forEach(function(letter) { - test3[letter] = letter; - }); - if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") { - return false; - } - return true; - } catch (err) { - return false; - } - } - module.exports = shouldUseNative() ? Object.assign : function(target, source) { - var from; - var to = toObject(target); - var symbols; - for (var s = 1;s < arguments.length; s++) { - from = Object(arguments[s]); - for (var key in from) { - if (hasOwnProperty.call(from, key)) { - to[key] = from[key]; - } - } - if (getOwnPropertySymbols) { - symbols = getOwnPropertySymbols(from); - for (var i = 0;i < symbols.length; i++) { - if (propIsEnumerable.call(from, symbols[i])) { - to[symbols[i]] = from[symbols[i]]; - } - } - } - } - return to; - }; -}); - -// node_modules/cors/lib/index.js -var require_lib3 = __commonJS((exports, module) => { - (function() { - var assign = require_object_assign(); - var vary = require_vary(); - var defaults = { - origin: "*", - methods: "GET,HEAD,PUT,PATCH,POST,DELETE", - preflightContinue: false, - optionsSuccessStatus: 204 - }; - function isString(s) { - return typeof s === "string" || s instanceof String; - } - function isOriginAllowed(origin, allowedOrigin) { - if (Array.isArray(allowedOrigin)) { - for (var i = 0;i < allowedOrigin.length; ++i) { - if (isOriginAllowed(origin, allowedOrigin[i])) { - return true; - } - } - return false; - } else if (isString(allowedOrigin)) { - return origin === allowedOrigin; - } else if (allowedOrigin instanceof RegExp) { - return allowedOrigin.test(origin); - } else { - return !!allowedOrigin; - } - } - function configureOrigin(options, req) { - var requestOrigin = req.headers.origin, headers = [], isAllowed; - if (!options.origin || options.origin === "*") { - headers.push([{ - key: "Access-Control-Allow-Origin", - value: "*" - }]); - } else if (isString(options.origin)) { - headers.push([{ - key: "Access-Control-Allow-Origin", - value: options.origin - }]); - headers.push([{ - key: "Vary", - value: "Origin" - }]); - } else { - isAllowed = isOriginAllowed(requestOrigin, options.origin); - headers.push([{ - key: "Access-Control-Allow-Origin", - value: isAllowed ? requestOrigin : false - }]); - headers.push([{ - key: "Vary", - value: "Origin" - }]); - } - return headers; - } - function configureMethods(options) { - var methods = options.methods; - if (methods.join) { - methods = options.methods.join(","); - } - return { - key: "Access-Control-Allow-Methods", - value: methods - }; - } - function configureCredentials(options) { - if (options.credentials === true) { - return { - key: "Access-Control-Allow-Credentials", - value: "true" - }; - } - return null; - } - function configureAllowedHeaders(options, req) { - var allowedHeaders = options.allowedHeaders || options.headers; - var headers = []; - if (!allowedHeaders) { - allowedHeaders = req.headers["access-control-request-headers"]; - headers.push([{ - key: "Vary", - value: "Access-Control-Request-Headers" - }]); - } else if (allowedHeaders.join) { - allowedHeaders = allowedHeaders.join(","); - } - if (allowedHeaders && allowedHeaders.length) { - headers.push([{ - key: "Access-Control-Allow-Headers", - value: allowedHeaders - }]); - } - return headers; - } - function configureExposedHeaders(options) { - var headers = options.exposedHeaders; - if (!headers) { - return null; - } else if (headers.join) { - headers = headers.join(","); - } - if (headers && headers.length) { - return { - key: "Access-Control-Expose-Headers", - value: headers - }; - } - return null; - } - function configureMaxAge(options) { - var maxAge = (typeof options.maxAge === "number" || options.maxAge) && options.maxAge.toString(); - if (maxAge && maxAge.length) { - return { - key: "Access-Control-Max-Age", - value: maxAge - }; - } - return null; - } - function applyHeaders(headers, res) { - for (var i = 0, n = headers.length;i < n; i++) { - var header = headers[i]; - if (header) { - if (Array.isArray(header)) { - applyHeaders(header, res); - } else if (header.key === "Vary" && header.value) { - vary(res, header.value); - } else if (header.value) { - res.setHeader(header.key, header.value); - } - } - } - } - function cors(options, req, res, next) { - var headers = [], method = req.method && req.method.toUpperCase && req.method.toUpperCase(); - if (method === "OPTIONS") { - headers.push(configureOrigin(options, req)); - headers.push(configureCredentials(options)); - headers.push(configureMethods(options)); - headers.push(configureAllowedHeaders(options, req)); - headers.push(configureMaxAge(options)); - headers.push(configureExposedHeaders(options)); - applyHeaders(headers, res); - if (options.preflightContinue) { - next(); - } else { - res.statusCode = options.optionsSuccessStatus; - res.setHeader("Content-Length", "0"); - res.end(); - } - } else { - headers.push(configureOrigin(options, req)); - headers.push(configureCredentials(options)); - headers.push(configureExposedHeaders(options)); - applyHeaders(headers, res); - next(); - } - } - function middlewareWrapper(o) { - var optionsCallback = null; - if (typeof o === "function") { - optionsCallback = o; - } else { - optionsCallback = function(req, cb) { - cb(null, o); - }; - } - return function corsMiddleware(req, res, next) { - optionsCallback(req, function(err, options) { - if (err) { - next(err); - } else { - var corsOptions = assign({}, defaults, options); - var originCallback = null; - if (corsOptions.origin && typeof corsOptions.origin === "function") { - originCallback = corsOptions.origin; - } else if (corsOptions.origin) { - originCallback = function(origin, cb) { - cb(null, corsOptions.origin); - }; - } - if (originCallback) { - originCallback(req.headers.origin, function(err2, origin) { - if (err2 || !origin) { - next(err2); - } else { - corsOptions.origin = origin; - cors(corsOptions, req, res, next); - } - }); - } else { - next(); - } - } - }); - }; - } - module.exports = middlewareWrapper; - })(); -}); - -// src/shared/path-utils.ts -function normalizePath(p) { - return p.replace(/\\/g, "/").replace(/\/+/g, "/").replace(/\/+$/, ""); -} -function isDirectChild(filePath, folderPath) { - const normFile = normalizePath(filePath); - const normFolder = normalizePath(folderPath); - if (normFile.startsWith(normFolder + "/")) { - const remainder = normFile.slice(normFolder.length + 1); - return !remainder.includes("/"); - } - const folderSegments = normFolder.split("/"); - const fileSegments = normFile.split("/"); - if (fileSegments.length < 2) - return false; - const fileDir = fileSegments.slice(0, -1).join("/"); - const fileName = fileSegments[fileSegments.length - 1]; - if (normFolder.endsWith("/" + fileDir) || normFolder === fileDir) { - return !fileName.includes("/"); - } - for (let i = 0;i < folderSegments.length; i++) { - const folderSuffix = folderSegments.slice(i).join("/"); - if (folderSuffix === fileDir) { - return true; - } - } - return false; -} - -// src/services/sqlite/PendingMessageStore.ts -var exports_PendingMessageStore = {}; -__export(exports_PendingMessageStore, { - PendingMessageStore: () => PendingMessageStore -}); - -class PendingMessageStore { - db; - maxRetries; - constructor(db, maxRetries = 3) { - this.db = db; - this.maxRetries = maxRetries; - } - enqueue(sessionDbId, contentSessionId, message) { - const now = Date.now(); - const stmt = this.db.prepare(` +`+i),t.push("\x1B[3"+n+"m+"+cr.humanize(this.diff)+"\x1B[0m")}else t[0]=new Date().toUTCString()+" "+e+" "+t[0]}function XJ(){return WJ.write(rd.format.apply(rd,arguments)+` +`)}function YJ(t){t==null?delete process.env.DEBUG:process.env.DEBUG=t}function $N(){return process.env.DEBUG}function QJ(t){var e,r=process.binding("tty_wrap");switch(r.guessHandleType(t)){case"TTY":e=new kN.WriteStream(t),e._type="tty",e._handle&&e._handle.unref&&e._handle.unref();break;case"FILE":var n=require("fs");e=new n.SyncWriteStream(t,{autoClose:!1}),e._type="fs";break;case"PIPE":case"TCP":var i=require("net");e=new i.Socket({fd:t,readable:!1,writable:!0}),e.readable=!1,e.read=null,e._type="pipe",e._handle&&e._handle.unref&&e._handle.unref();break;default:throw new Error("Implement me. Unknown stream file type!")}return e.fd=t,e._isStdio=!0,e}function eX(t){t.inspectOpts={};for(var e=Object.keys(cr.inspectOpts),r=0;r{typeof process<"u"&&process.type==="renderer"?dw.exports=EN():dw.exports=IN()});var pw=T((hIe,ON)=>{"use strict";var tX=require("events").EventEmitter,rX=require("fs").ReadStream,RN=require("stream"),wo=require("zlib");ON.exports=nX;function nX(t,e){return uX(t)?iX(t):lX(t)?oX(t):aX(t)&&t.destroy(),cX(t)&&e&&(t.removeAllListeners("error"),t.addListener("error",dX)),t}function iX(t){t.destroy(),typeof t.close=="function"&&t.on("open",mX)}function sX(t){if(t._hadError===!0){var e=t._binding===null?"_binding":"_handle";t[e]={close:function(){this[e]=null}}}t.close()}function oX(t){typeof t.destroy=="function"?t._binding?(t.destroy(),t._processing?(t._needDrain=!0,t.once("drain",pX)):t._binding.clear()):t._destroy&&t._destroy!==RN.Transform.prototype._destroy?t.destroy():t._destroy&&typeof t.close=="function"?(t.destroyed=!0,t.close()):t.destroy():typeof t.close=="function"&&sX(t)}function aX(t){return t instanceof RN&&typeof t.destroy=="function"}function cX(t){return t instanceof tX}function uX(t){return t instanceof rX}function lX(t){return t instanceof wo.Gzip||t instanceof wo.Gunzip||t instanceof wo.Deflate||t instanceof wo.DeflateRaw||t instanceof wo.Inflate||t instanceof wo.InflateRaw||t instanceof wo.Unzip}function dX(){}function pX(){this._binding.clear()}function mX(){typeof this.fd=="number"&&this.close()}});var Eo=T((gIe,PN)=>{"use strict";var eh=require("buffer"),tc=eh.Buffer,An={},Nn;for(Nn in eh)eh.hasOwnProperty(Nn)&&(Nn==="SlowBuffer"||Nn==="Buffer"||(An[Nn]=eh[Nn]));var rc=An.Buffer={};for(Nn in tc)tc.hasOwnProperty(Nn)&&(Nn==="allocUnsafe"||Nn==="allocUnsafeSlow"||(rc[Nn]=tc[Nn]));An.Buffer.prototype=tc.prototype;(!rc.from||rc.from===Uint8Array.from)&&(rc.from=function(t,e,r){if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof t);if(t&&typeof t.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);return tc(t,e,r)});rc.alloc||(rc.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof t);if(t<0||t>=2*(1<<30))throw new RangeError('The value "'+t+'" is invalid for option "size"');var n=tc(t);return!e||e.length===0?n.fill(0):typeof r=="string"?n.fill(e,r):n.fill(e),n});if(!An.kStringMaxLength)try{An.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch{}An.constants||(An.constants={MAX_LENGTH:An.kMaxLength},An.kStringMaxLength&&(An.constants.MAX_STRING_LENGTH=An.kStringMaxLength));PN.exports=An});var AN=T(hw=>{"use strict";var CN="\uFEFF";hw.PrependBOM=mw;function mw(t,e){this.encoder=t,this.addBOM=!0}mw.prototype.write=function(t){return this.addBOM&&(t=CN+t,this.addBOM=!1),this.encoder.write(t)};mw.prototype.end=function(){return this.encoder.end()};hw.StripBOM=fw;function fw(t,e){this.decoder=t,this.pass=!1,this.options=e||{}}fw.prototype.write=function(t){var e=this.decoder.write(t);return this.pass||!e||(e[0]===CN&&(e=e.slice(1),typeof this.options.stripBOM=="function"&&this.options.stripBOM()),this.pass=!0),e};fw.prototype.end=function(){return this.decoder.end()}});var DN=T((yIe,MN)=>{"use strict";var nd=Eo().Buffer;MN.exports={utf8:{type:"_internal",bomAware:!0},cesu8:{type:"_internal",bomAware:!0},unicode11utf8:"utf8",ucs2:{type:"_internal",bomAware:!0},utf16le:"ucs2",binary:{type:"_internal"},base64:{type:"_internal"},hex:{type:"_internal"},_internal:gw};function gw(t,e){this.enc=t.encodingName,this.bomAware=t.bomAware,this.enc==="base64"?this.encoder=yw:this.enc==="cesu8"&&(this.enc="utf8",this.encoder=_w,nd.from("eda0bdedb2a9","hex").toString()!=="\u{1F4A9}"&&(this.decoder=bw,this.defaultCharUnicode=e.defaultCharUnicode))}gw.prototype.encoder=vw;gw.prototype.decoder=NN;var th=require("string_decoder").StringDecoder;th.prototype.end||(th.prototype.end=function(){});function NN(t,e){th.call(this,e.enc)}NN.prototype=th.prototype;function vw(t,e){this.enc=e.enc}vw.prototype.write=function(t){return nd.from(t,this.enc)};vw.prototype.end=function(){};function yw(t,e){this.prevStr=""}yw.prototype.write=function(t){t=this.prevStr+t;var e=t.length-t.length%4;return this.prevStr=t.slice(e),t=t.slice(0,e),nd.from(t,"base64")};yw.prototype.end=function(){return nd.from(this.prevStr,"base64")};function _w(t,e){}_w.prototype.write=function(t){for(var e=nd.alloc(t.length*3),r=0,n=0;n>>6),e[r++]=128+(i&63)):(e[r++]=224+(i>>>12),e[r++]=128+(i>>>6&63),e[r++]=128+(i&63))}return e.slice(0,r)};_w.prototype.end=function(){};function bw(t,e){this.acc=0,this.contBytes=0,this.accBytes=0,this.defaultCharUnicode=e.defaultCharUnicode}bw.prototype.write=function(t){for(var e=this.acc,r=this.contBytes,n=this.accBytes,i="",s=0;s0&&(i+=this.defaultCharUnicode,r=0),o<128?i+=String.fromCharCode(o):o<224?(e=o&31,r=1,n=1):o<240?(e=o&15,r=2,n=1):i+=this.defaultCharUnicode):r>0?(e=e<<6|o&63,r--,n++,r===0&&(n===2&&e<128&&e>0?i+=this.defaultCharUnicode:n===3&&e<2048?i+=this.defaultCharUnicode:i+=String.fromCharCode(e))):i+=this.defaultCharUnicode}return this.acc=e,this.contBytes=r,this.accBytes=n,i};bw.prototype.end=function(){var t=0;return this.contBytes>0&&(t+=this.defaultCharUnicode),t}});var zN=T($w=>{"use strict";var rh=Eo().Buffer;$w.utf16be=nh;function nh(){}nh.prototype.encoder=xw;nh.prototype.decoder=Sw;nh.prototype.bomAware=!0;function xw(){}xw.prototype.write=function(t){for(var e=rh.from(t,"ucs2"),r=0;r=2)if(t[0]==254&&t[1]==255)r="utf-16be";else if(t[0]==255&&t[1]==254)r="utf-16le";else{for(var n=0,i=0,s=Math.min(t.length-t.length%2,64),o=0;on?r="utf-16be":i{"use strict";var xi=Eo().Buffer;oh.utf7=ih;oh.unicode11utf7="utf7";function ih(t,e){this.iconv=e}ih.prototype.encoder=Iw;ih.prototype.decoder=Rw;ih.prototype.bomAware=!0;var fX=/[^A-Za-z0-9'\(\),-\.\/:\? \n\r\t]+/g;function Iw(t,e){this.iconv=e.iconv}Iw.prototype.write=function(t){return xi.from(t.replace(fX,function(e){return"+"+(e==="+"?"":this.iconv.encode(e,"utf16-be").toString("base64").replace(/=+$/,""))+"-"}.bind(this)))};Iw.prototype.end=function(){};function Rw(t,e){this.iconv=e.iconv,this.inBase64=!1,this.base64Accum=""}var hX=/[A-Za-z0-9\/+]/,Ow=[];for(id=0;id<256;id++)Ow[id]=hX.test(String.fromCharCode(id));var id,gX=43,ko=45,Tw=38;Rw.prototype.write=function(t){for(var e="",r=0,n=this.inBase64,i=this.base64Accum,s=0;s0&&(t=this.iconv.decode(xi.from(this.base64Accum,"base64"),"utf16-be")),this.inBase64=!1,this.base64Accum="",t};oh.utf7imap=sh;function sh(t,e){this.iconv=e}sh.prototype.encoder=Pw;sh.prototype.decoder=Cw;sh.prototype.bomAware=!0;function Pw(t,e){this.iconv=e.iconv,this.inBase64=!1,this.base64Accum=xi.alloc(6),this.base64AccumIdx=0}Pw.prototype.write=function(t){for(var e=this.inBase64,r=this.base64Accum,n=this.base64AccumIdx,i=xi.alloc(t.length*5+10),s=0,o=0;o0&&(s+=i.write(r.slice(0,n).toString("base64").replace(/\//g,",").replace(/=+$/,""),s),n=0),i[s++]=ko,e=!1),e||(i[s++]=a,a===Tw&&(i[s++]=ko))):(e||(i[s++]=Tw,e=!0),e&&(r[n++]=a>>8,r[n++]=a&255,n==r.length&&(s+=i.write(r.toString("base64").replace(/\//g,","),s),n=0)))}return this.inBase64=e,this.base64AccumIdx=n,i.slice(0,s)};Pw.prototype.end=function(){var t=xi.alloc(10),e=0;return this.inBase64&&(this.base64AccumIdx>0&&(e+=t.write(this.base64Accum.slice(0,this.base64AccumIdx).toString("base64").replace(/\//g,",").replace(/=+$/,""),e),this.base64AccumIdx=0),t[e++]=ko,this.inBase64=!1),t.slice(0,e)};function Cw(t,e){this.iconv=e.iconv,this.inBase64=!1,this.base64Accum=""}var LN=Ow.slice();LN[44]=!0;Cw.prototype.write=function(t){for(var e="",r=0,n=this.inBase64,i=this.base64Accum,s=0;s0&&(t=this.iconv.decode(xi.from(this.base64Accum,"base64"),"utf16-be")),this.inBase64=!1,this.base64Accum="",t}});var FN=T(qN=>{"use strict";var ah=Eo().Buffer;qN._sbcs=Aw;function Aw(t,e){if(!t)throw new Error("SBCS codec is called without the data.");if(!t.chars||t.chars.length!==128&&t.chars.length!==256)throw new Error("Encoding '"+t.type+"' has incorrect 'chars' (must be of len 128 or 256)");if(t.chars.length===128){for(var r="",n=0;n<128;n++)r+=String.fromCharCode(n);t.chars=r+t.chars}this.decodeBuf=ah.from(t.chars,"ucs2");for(var i=ah.alloc(65536,e.defaultCharSingleByte.charCodeAt(0)),n=0;n{"use strict";HN.exports={10029:"maccenteuro",maccenteuro:{type:"_sbcs",chars:"\xC4\u0100\u0101\xC9\u0104\xD6\xDC\xE1\u0105\u010C\xE4\u010D\u0106\u0107\xE9\u0179\u017A\u010E\xED\u010F\u0112\u0113\u0116\xF3\u0117\xF4\xF6\xF5\xFA\u011A\u011B\xFC\u2020\xB0\u0118\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\u0119\xA8\u2260\u0123\u012E\u012F\u012A\u2264\u2265\u012B\u0136\u2202\u2211\u0142\u013B\u013C\u013D\u013E\u0139\u013A\u0145\u0146\u0143\xAC\u221A\u0144\u0147\u2206\xAB\xBB\u2026\xA0\u0148\u0150\xD5\u0151\u014C\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\u014D\u0154\u0155\u0158\u2039\u203A\u0159\u0156\u0157\u0160\u201A\u201E\u0161\u015A\u015B\xC1\u0164\u0165\xCD\u017D\u017E\u016A\xD3\xD4\u016B\u016E\xDA\u016F\u0170\u0171\u0172\u0173\xDD\xFD\u0137\u017B\u0141\u017C\u0122\u02C7"},808:"cp808",ibm808:"cp808",cp808:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0404\u0454\u0407\u0457\u040E\u045E\xB0\u2219\xB7\u221A\u2116\u20AC\u25A0\xA0"},mik:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u2514\u2534\u252C\u251C\u2500\u253C\u2563\u2551\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2510\u2591\u2592\u2593\u2502\u2524\u2116\xA7\u2557\u255D\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ascii8bit:"ascii",usascii:"ascii",ansix34:"ascii",ansix341968:"ascii",ansix341986:"ascii",csascii:"ascii",cp367:"ascii",ibm367:"ascii",isoir6:"ascii",iso646us:"ascii",iso646irv:"ascii",us:"ascii",latin1:"iso88591",latin2:"iso88592",latin3:"iso88593",latin4:"iso88594",latin5:"iso88599",latin6:"iso885910",latin7:"iso885913",latin8:"iso885914",latin9:"iso885915",latin10:"iso885916",csisolatin1:"iso88591",csisolatin2:"iso88592",csisolatin3:"iso88593",csisolatin4:"iso88594",csisolatincyrillic:"iso88595",csisolatinarabic:"iso88596",csisolatingreek:"iso88597",csisolatinhebrew:"iso88598",csisolatin5:"iso88599",csisolatin6:"iso885910",l1:"iso88591",l2:"iso88592",l3:"iso88593",l4:"iso88594",l5:"iso88599",l6:"iso885910",l7:"iso885913",l8:"iso885914",l9:"iso885915",l10:"iso885916",isoir14:"iso646jp",isoir57:"iso646cn",isoir100:"iso88591",isoir101:"iso88592",isoir109:"iso88593",isoir110:"iso88594",isoir144:"iso88595",isoir127:"iso88596",isoir126:"iso88597",isoir138:"iso88598",isoir148:"iso88599",isoir157:"iso885910",isoir166:"tis620",isoir179:"iso885913",isoir199:"iso885914",isoir203:"iso885915",isoir226:"iso885916",cp819:"iso88591",ibm819:"iso88591",cyrillic:"iso88595",arabic:"iso88596",arabic8:"iso88596",ecma114:"iso88596",asmo708:"iso88596",greek:"iso88597",greek8:"iso88597",ecma118:"iso88597",elot928:"iso88597",hebrew:"iso88598",hebrew8:"iso88598",turkish:"iso88599",turkish8:"iso88599",thai:"iso885911",thai8:"iso885911",celtic:"iso885914",celtic8:"iso885914",isoceltic:"iso885914",tis6200:"tis620",tis62025291:"tis620",tis62025330:"tis620",1e4:"macroman",10006:"macgreek",10007:"maccyrillic",10079:"maciceland",10081:"macturkish",cspc8codepage437:"cp437",cspc775baltic:"cp775",cspc850multilingual:"cp850",cspcp852:"cp852",cspc862latinhebrew:"cp862",cpgr:"cp869",msee:"cp1250",mscyrl:"cp1251",msansi:"cp1252",msgreek:"cp1253",msturk:"cp1254",mshebr:"cp1255",msarab:"cp1256",winbaltrim:"cp1257",cp20866:"koi8r",20866:"koi8r",ibm878:"koi8r",cskoi8r:"koi8r",cp21866:"koi8u",21866:"koi8u",ibm1168:"koi8u",strk10482002:"rk1048",tcvn5712:"tcvn",tcvn57121:"tcvn",gb198880:"iso646cn",cn:"iso646cn",csiso14jisc6220ro:"iso646jp",jisc62201969ro:"iso646jp",jp:"iso646jp",cshproman8:"hproman8",r8:"hproman8",roman8:"hproman8",xroman8:"hproman8",ibm1051:"hproman8",mac:"macintosh",csmacintosh:"macintosh"}});var VN=T((wIe,BN)=>{"use strict";BN.exports={437:"cp437",737:"cp737",775:"cp775",850:"cp850",852:"cp852",855:"cp855",856:"cp856",857:"cp857",858:"cp858",860:"cp860",861:"cp861",862:"cp862",863:"cp863",864:"cp864",865:"cp865",866:"cp866",869:"cp869",874:"windows874",922:"cp922",1046:"cp1046",1124:"cp1124",1125:"cp1125",1129:"cp1129",1133:"cp1133",1161:"cp1161",1162:"cp1162",1163:"cp1163",1250:"windows1250",1251:"windows1251",1252:"windows1252",1253:"windows1253",1254:"windows1254",1255:"windows1255",1256:"windows1256",1257:"windows1257",1258:"windows1258",28591:"iso88591",28592:"iso88592",28593:"iso88593",28594:"iso88594",28595:"iso88595",28596:"iso88596",28597:"iso88597",28598:"iso88598",28599:"iso88599",28600:"iso885910",28601:"iso885911",28603:"iso885913",28604:"iso885914",28605:"iso885915",28606:"iso885916",windows874:{type:"_sbcs",chars:"\u20AC\uFFFD\uFFFD\uFFFD\uFFFD\u2026\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\xA0\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"},win874:"windows874",cp874:"windows874",windows1250:{type:"_sbcs",chars:"\u20AC\uFFFD\u201A\uFFFD\u201E\u2026\u2020\u2021\uFFFD\u2030\u0160\u2039\u015A\u0164\u017D\u0179\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014\uFFFD\u2122\u0161\u203A\u015B\u0165\u017E\u017A\xA0\u02C7\u02D8\u0141\xA4\u0104\xA6\xA7\xA8\xA9\u015E\xAB\xAC\xAD\xAE\u017B\xB0\xB1\u02DB\u0142\xB4\xB5\xB6\xB7\xB8\u0105\u015F\xBB\u013D\u02DD\u013E\u017C\u0154\xC1\xC2\u0102\xC4\u0139\u0106\xC7\u010C\xC9\u0118\xCB\u011A\xCD\xCE\u010E\u0110\u0143\u0147\xD3\xD4\u0150\xD6\xD7\u0158\u016E\xDA\u0170\xDC\xDD\u0162\xDF\u0155\xE1\xE2\u0103\xE4\u013A\u0107\xE7\u010D\xE9\u0119\xEB\u011B\xED\xEE\u010F\u0111\u0144\u0148\xF3\xF4\u0151\xF6\xF7\u0159\u016F\xFA\u0171\xFC\xFD\u0163\u02D9"},win1250:"windows1250",cp1250:"windows1250",windows1251:{type:"_sbcs",chars:"\u0402\u0403\u201A\u0453\u201E\u2026\u2020\u2021\u20AC\u2030\u0409\u2039\u040A\u040C\u040B\u040F\u0452\u2018\u2019\u201C\u201D\u2022\u2013\u2014\uFFFD\u2122\u0459\u203A\u045A\u045C\u045B\u045F\xA0\u040E\u045E\u0408\xA4\u0490\xA6\xA7\u0401\xA9\u0404\xAB\xAC\xAD\xAE\u0407\xB0\xB1\u0406\u0456\u0491\xB5\xB6\xB7\u0451\u2116\u0454\xBB\u0458\u0405\u0455\u0457\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F"},win1251:"windows1251",cp1251:"windows1251",windows1252:{type:"_sbcs",chars:"\u20AC\uFFFD\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\uFFFD\u017D\uFFFD\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\uFFFD\u017E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\xD0\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\xDE\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},win1252:"windows1252",cp1252:"windows1252",windows1253:{type:"_sbcs",chars:"\u20AC\uFFFD\u201A\u0192\u201E\u2026\u2020\u2021\uFFFD\u2030\uFFFD\u2039\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014\uFFFD\u2122\uFFFD\u203A\uFFFD\uFFFD\uFFFD\uFFFD\xA0\u0385\u0386\xA3\xA4\xA5\xA6\xA7\xA8\xA9\uFFFD\xAB\xAC\xAD\xAE\u2015\xB0\xB1\xB2\xB3\u0384\xB5\xB6\xB7\u0388\u0389\u038A\xBB\u038C\xBD\u038E\u038F\u0390\u0391\u0392\u0393\u0394\u0395\u0396\u0397\u0398\u0399\u039A\u039B\u039C\u039D\u039E\u039F\u03A0\u03A1\uFFFD\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03AA\u03AB\u03AC\u03AD\u03AE\u03AF\u03B0\u03B1\u03B2\u03B3\u03B4\u03B5\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C2\u03C3\u03C4\u03C5\u03C6\u03C7\u03C8\u03C9\u03CA\u03CB\u03CC\u03CD\u03CE\uFFFD"},win1253:"windows1253",cp1253:"windows1253",windows1254:{type:"_sbcs",chars:"\u20AC\uFFFD\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\uFFFD\uFFFD\uFFFD\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\uFFFD\uFFFD\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u011E\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\u0130\u015E\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u011F\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\u0131\u015F\xFF"},win1254:"windows1254",cp1254:"windows1254",windows1255:{type:"_sbcs",chars:"\u20AC\uFFFD\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\uFFFD\u2039\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\uFFFD\u203A\uFFFD\uFFFD\uFFFD\uFFFD\xA0\xA1\xA2\xA3\u20AA\xA5\xA6\xA7\xA8\xA9\xD7\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xF7\xBB\xBC\xBD\xBE\xBF\u05B0\u05B1\u05B2\u05B3\u05B4\u05B5\u05B6\u05B7\u05B8\u05B9\u05BA\u05BB\u05BC\u05BD\u05BE\u05BF\u05C0\u05C1\u05C2\u05C3\u05F0\u05F1\u05F2\u05F3\u05F4\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u05D0\u05D1\u05D2\u05D3\u05D4\u05D5\u05D6\u05D7\u05D8\u05D9\u05DA\u05DB\u05DC\u05DD\u05DE\u05DF\u05E0\u05E1\u05E2\u05E3\u05E4\u05E5\u05E6\u05E7\u05E8\u05E9\u05EA\uFFFD\uFFFD\u200E\u200F\uFFFD"},win1255:"windows1255",cp1255:"windows1255",windows1256:{type:"_sbcs",chars:"\u20AC\u067E\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0679\u2039\u0152\u0686\u0698\u0688\u06AF\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u06A9\u2122\u0691\u203A\u0153\u200C\u200D\u06BA\xA0\u060C\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\u06BE\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\u061B\xBB\xBC\xBD\xBE\u061F\u06C1\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\u0636\xD7\u0637\u0638\u0639\u063A\u0640\u0641\u0642\u0643\xE0\u0644\xE2\u0645\u0646\u0647\u0648\xE7\xE8\xE9\xEA\xEB\u0649\u064A\xEE\xEF\u064B\u064C\u064D\u064E\xF4\u064F\u0650\xF7\u0651\xF9\u0652\xFB\xFC\u200E\u200F\u06D2"},win1256:"windows1256",cp1256:"windows1256",windows1257:{type:"_sbcs",chars:"\u20AC\uFFFD\u201A\uFFFD\u201E\u2026\u2020\u2021\uFFFD\u2030\uFFFD\u2039\uFFFD\xA8\u02C7\xB8\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014\uFFFD\u2122\uFFFD\u203A\uFFFD\xAF\u02DB\uFFFD\xA0\uFFFD\xA2\xA3\xA4\uFFFD\xA6\xA7\xD8\xA9\u0156\xAB\xAC\xAD\xAE\xC6\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xF8\xB9\u0157\xBB\xBC\xBD\xBE\xE6\u0104\u012E\u0100\u0106\xC4\xC5\u0118\u0112\u010C\xC9\u0179\u0116\u0122\u0136\u012A\u013B\u0160\u0143\u0145\xD3\u014C\xD5\xD6\xD7\u0172\u0141\u015A\u016A\xDC\u017B\u017D\xDF\u0105\u012F\u0101\u0107\xE4\xE5\u0119\u0113\u010D\xE9\u017A\u0117\u0123\u0137\u012B\u013C\u0161\u0144\u0146\xF3\u014D\xF5\xF6\xF7\u0173\u0142\u015B\u016B\xFC\u017C\u017E\u02D9"},win1257:"windows1257",cp1257:"windows1257",windows1258:{type:"_sbcs",chars:"\u20AC\uFFFD\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\uFFFD\u2039\u0152\uFFFD\uFFFD\uFFFD\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\uFFFD\u203A\u0153\uFFFD\uFFFD\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\u0102\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\u0300\xCD\xCE\xCF\u0110\xD1\u0309\xD3\xD4\u01A0\xD6\xD7\xD8\xD9\xDA\xDB\xDC\u01AF\u0303\xDF\xE0\xE1\xE2\u0103\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\u0301\xED\xEE\xEF\u0111\xF1\u0323\xF3\xF4\u01A1\xF6\xF7\xF8\xF9\xFA\xFB\xFC\u01B0\u20AB\xFF"},win1258:"windows1258",cp1258:"windows1258",iso88591:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\xD0\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\xDE\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},cp28591:"iso88591",iso88592:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0104\u02D8\u0141\xA4\u013D\u015A\xA7\xA8\u0160\u015E\u0164\u0179\xAD\u017D\u017B\xB0\u0105\u02DB\u0142\xB4\u013E\u015B\u02C7\xB8\u0161\u015F\u0165\u017A\u02DD\u017E\u017C\u0154\xC1\xC2\u0102\xC4\u0139\u0106\xC7\u010C\xC9\u0118\xCB\u011A\xCD\xCE\u010E\u0110\u0143\u0147\xD3\xD4\u0150\xD6\xD7\u0158\u016E\xDA\u0170\xDC\xDD\u0162\xDF\u0155\xE1\xE2\u0103\xE4\u013A\u0107\xE7\u010D\xE9\u0119\xEB\u011B\xED\xEE\u010F\u0111\u0144\u0148\xF3\xF4\u0151\xF6\xF7\u0159\u016F\xFA\u0171\xFC\xFD\u0163\u02D9"},cp28592:"iso88592",iso88593:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0126\u02D8\xA3\xA4\uFFFD\u0124\xA7\xA8\u0130\u015E\u011E\u0134\xAD\uFFFD\u017B\xB0\u0127\xB2\xB3\xB4\xB5\u0125\xB7\xB8\u0131\u015F\u011F\u0135\xBD\uFFFD\u017C\xC0\xC1\xC2\uFFFD\xC4\u010A\u0108\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\uFFFD\xD1\xD2\xD3\xD4\u0120\xD6\xD7\u011C\xD9\xDA\xDB\xDC\u016C\u015C\xDF\xE0\xE1\xE2\uFFFD\xE4\u010B\u0109\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\uFFFD\xF1\xF2\xF3\xF4\u0121\xF6\xF7\u011D\xF9\xFA\xFB\xFC\u016D\u015D\u02D9"},cp28593:"iso88593",iso88594:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0104\u0138\u0156\xA4\u0128\u013B\xA7\xA8\u0160\u0112\u0122\u0166\xAD\u017D\xAF\xB0\u0105\u02DB\u0157\xB4\u0129\u013C\u02C7\xB8\u0161\u0113\u0123\u0167\u014A\u017E\u014B\u0100\xC1\xC2\xC3\xC4\xC5\xC6\u012E\u010C\xC9\u0118\xCB\u0116\xCD\xCE\u012A\u0110\u0145\u014C\u0136\xD4\xD5\xD6\xD7\xD8\u0172\xDA\xDB\xDC\u0168\u016A\xDF\u0101\xE1\xE2\xE3\xE4\xE5\xE6\u012F\u010D\xE9\u0119\xEB\u0117\xED\xEE\u012B\u0111\u0146\u014D\u0137\xF4\xF5\xF6\xF7\xF8\u0173\xFA\xFB\xFC\u0169\u016B\u02D9"},cp28594:"iso88594",iso88595:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0401\u0402\u0403\u0404\u0405\u0406\u0407\u0408\u0409\u040A\u040B\u040C\xAD\u040E\u040F\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u2116\u0451\u0452\u0453\u0454\u0455\u0456\u0457\u0458\u0459\u045A\u045B\u045C\xA7\u045E\u045F"},cp28595:"iso88595",iso88596:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\uFFFD\uFFFD\uFFFD\xA4\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u060C\xAD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u061B\uFFFD\uFFFD\uFFFD\u061F\uFFFD\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\u0638\u0639\u063A\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0640\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u064B\u064C\u064D\u064E\u064F\u0650\u0651\u0652\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},cp28596:"iso88596",iso88597:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u2018\u2019\xA3\u20AC\u20AF\xA6\xA7\xA8\xA9\u037A\xAB\xAC\xAD\uFFFD\u2015\xB0\xB1\xB2\xB3\u0384\u0385\u0386\xB7\u0388\u0389\u038A\xBB\u038C\xBD\u038E\u038F\u0390\u0391\u0392\u0393\u0394\u0395\u0396\u0397\u0398\u0399\u039A\u039B\u039C\u039D\u039E\u039F\u03A0\u03A1\uFFFD\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03AA\u03AB\u03AC\u03AD\u03AE\u03AF\u03B0\u03B1\u03B2\u03B3\u03B4\u03B5\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C2\u03C3\u03C4\u03C5\u03C6\u03C7\u03C8\u03C9\u03CA\u03CB\u03CC\u03CD\u03CE\uFFFD"},cp28597:"iso88597",iso88598:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\uFFFD\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xD7\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xF7\xBB\xBC\xBD\xBE\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u2017\u05D0\u05D1\u05D2\u05D3\u05D4\u05D5\u05D6\u05D7\u05D8\u05D9\u05DA\u05DB\u05DC\u05DD\u05DE\u05DF\u05E0\u05E1\u05E2\u05E3\u05E4\u05E5\u05E6\u05E7\u05E8\u05E9\u05EA\uFFFD\uFFFD\u200E\u200F\uFFFD"},cp28598:"iso88598",iso88599:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u011E\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\u0130\u015E\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u011F\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\u0131\u015F\xFF"},cp28599:"iso88599",iso885910:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0104\u0112\u0122\u012A\u0128\u0136\xA7\u013B\u0110\u0160\u0166\u017D\xAD\u016A\u014A\xB0\u0105\u0113\u0123\u012B\u0129\u0137\xB7\u013C\u0111\u0161\u0167\u017E\u2015\u016B\u014B\u0100\xC1\xC2\xC3\xC4\xC5\xC6\u012E\u010C\xC9\u0118\xCB\u0116\xCD\xCE\xCF\xD0\u0145\u014C\xD3\xD4\xD5\xD6\u0168\xD8\u0172\xDA\xDB\xDC\xDD\xDE\xDF\u0101\xE1\xE2\xE3\xE4\xE5\xE6\u012F\u010D\xE9\u0119\xEB\u0117\xED\xEE\xEF\xF0\u0146\u014D\xF3\xF4\xF5\xF6\u0169\xF8\u0173\xFA\xFB\xFC\xFD\xFE\u0138"},cp28600:"iso885910",iso885911:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"},cp28601:"iso885911",iso885913:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u201D\xA2\xA3\xA4\u201E\xA6\xA7\xD8\xA9\u0156\xAB\xAC\xAD\xAE\xC6\xB0\xB1\xB2\xB3\u201C\xB5\xB6\xB7\xF8\xB9\u0157\xBB\xBC\xBD\xBE\xE6\u0104\u012E\u0100\u0106\xC4\xC5\u0118\u0112\u010C\xC9\u0179\u0116\u0122\u0136\u012A\u013B\u0160\u0143\u0145\xD3\u014C\xD5\xD6\xD7\u0172\u0141\u015A\u016A\xDC\u017B\u017D\xDF\u0105\u012F\u0101\u0107\xE4\xE5\u0119\u0113\u010D\xE9\u017A\u0117\u0123\u0137\u012B\u013C\u0161\u0144\u0146\xF3\u014D\xF5\xF6\xF7\u0173\u0142\u015B\u016B\xFC\u017C\u017E\u2019"},cp28603:"iso885913",iso885914:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u1E02\u1E03\xA3\u010A\u010B\u1E0A\xA7\u1E80\xA9\u1E82\u1E0B\u1EF2\xAD\xAE\u0178\u1E1E\u1E1F\u0120\u0121\u1E40\u1E41\xB6\u1E56\u1E81\u1E57\u1E83\u1E60\u1EF3\u1E84\u1E85\u1E61\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u0174\xD1\xD2\xD3\xD4\xD5\xD6\u1E6A\xD8\xD9\xDA\xDB\xDC\xDD\u0176\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u0175\xF1\xF2\xF3\xF4\xF5\xF6\u1E6B\xF8\xF9\xFA\xFB\xFC\xFD\u0177\xFF"},cp28604:"iso885914",iso885915:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\u20AC\xA5\u0160\xA7\u0161\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\u017D\xB5\xB6\xB7\u017E\xB9\xBA\xBB\u0152\u0153\u0178\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\xD0\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\xDE\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},cp28605:"iso885915",iso885916:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0104\u0105\u0141\u20AC\u201E\u0160\xA7\u0161\xA9\u0218\xAB\u0179\xAD\u017A\u017B\xB0\xB1\u010C\u0142\u017D\u201D\xB6\xB7\u017E\u010D\u0219\xBB\u0152\u0153\u0178\u017C\xC0\xC1\xC2\u0102\xC4\u0106\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u0110\u0143\xD2\xD3\xD4\u0150\xD6\u015A\u0170\xD9\xDA\xDB\xDC\u0118\u021A\xDF\xE0\xE1\xE2\u0103\xE4\u0107\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u0111\u0144\xF2\xF3\xF4\u0151\xF6\u015B\u0171\xF9\xFA\xFB\xFC\u0119\u021B\xFF"},cp28606:"iso885916",cp437:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xA2\xA3\xA5\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm437:"cp437",csibm437:"cp437",cp737:{type:"_sbcs",chars:"\u0391\u0392\u0393\u0394\u0395\u0396\u0397\u0398\u0399\u039A\u039B\u039C\u039D\u039E\u039F\u03A0\u03A1\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03B1\u03B2\u03B3\u03B4\u03B5\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C3\u03C2\u03C4\u03C5\u03C6\u03C7\u03C8\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03C9\u03AC\u03AD\u03AE\u03CA\u03AF\u03CC\u03CD\u03CB\u03CE\u0386\u0388\u0389\u038A\u038C\u038E\u038F\xB1\u2265\u2264\u03AA\u03AB\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm737:"cp737",csibm737:"cp737",cp775:{type:"_sbcs",chars:"\u0106\xFC\xE9\u0101\xE4\u0123\xE5\u0107\u0142\u0113\u0156\u0157\u012B\u0179\xC4\xC5\xC9\xE6\xC6\u014D\xF6\u0122\xA2\u015A\u015B\xD6\xDC\xF8\xA3\xD8\xD7\xA4\u0100\u012A\xF3\u017B\u017C\u017A\u201D\xA6\xA9\xAE\xAC\xBD\xBC\u0141\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u0104\u010C\u0118\u0116\u2563\u2551\u2557\u255D\u012E\u0160\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u0172\u016A\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u017D\u0105\u010D\u0119\u0117\u012F\u0161\u0173\u016B\u017E\u2518\u250C\u2588\u2584\u258C\u2590\u2580\xD3\xDF\u014C\u0143\xF5\xD5\xB5\u0144\u0136\u0137\u013B\u013C\u0146\u0112\u0145\u2019\xAD\xB1\u201C\xBE\xB6\xA7\xF7\u201E\xB0\u2219\xB7\xB9\xB3\xB2\u25A0\xA0"},ibm775:"cp775",csibm775:"cp775",cp850:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xF8\xA3\xD8\xD7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\xAE\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\xC1\xC2\xC0\xA9\u2563\u2551\u2557\u255D\xA2\xA5\u2510\u2514\u2534\u252C\u251C\u2500\u253C\xE3\xC3\u255A\u2554\u2569\u2566\u2560\u2550\u256C\xA4\xF0\xD0\xCA\xCB\xC8\u0131\xCD\xCE\xCF\u2518\u250C\u2588\u2584\xA6\xCC\u2580\xD3\xDF\xD4\xD2\xF5\xD5\xB5\xFE\xDE\xDA\xDB\xD9\xFD\xDD\xAF\xB4\xAD\xB1\u2017\xBE\xB6\xA7\xF7\xB8\xB0\xA8\xB7\xB9\xB3\xB2\u25A0\xA0"},ibm850:"cp850",csibm850:"cp850",cp852:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\u016F\u0107\xE7\u0142\xEB\u0150\u0151\xEE\u0179\xC4\u0106\xC9\u0139\u013A\xF4\xF6\u013D\u013E\u015A\u015B\xD6\xDC\u0164\u0165\u0141\xD7\u010D\xE1\xED\xF3\xFA\u0104\u0105\u017D\u017E\u0118\u0119\xAC\u017A\u010C\u015F\xAB\xBB\u2591\u2592\u2593\u2502\u2524\xC1\xC2\u011A\u015E\u2563\u2551\u2557\u255D\u017B\u017C\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u0102\u0103\u255A\u2554\u2569\u2566\u2560\u2550\u256C\xA4\u0111\u0110\u010E\xCB\u010F\u0147\xCD\xCE\u011B\u2518\u250C\u2588\u2584\u0162\u016E\u2580\xD3\xDF\xD4\u0143\u0144\u0148\u0160\u0161\u0154\xDA\u0155\u0170\xFD\xDD\u0163\xB4\xAD\u02DD\u02DB\u02C7\u02D8\xA7\xF7\xB8\xB0\xA8\u02D9\u0171\u0158\u0159\u25A0\xA0"},ibm852:"cp852",csibm852:"cp852",cp855:{type:"_sbcs",chars:"\u0452\u0402\u0453\u0403\u0451\u0401\u0454\u0404\u0455\u0405\u0456\u0406\u0457\u0407\u0458\u0408\u0459\u0409\u045A\u040A\u045B\u040B\u045C\u040C\u045E\u040E\u045F\u040F\u044E\u042E\u044A\u042A\u0430\u0410\u0431\u0411\u0446\u0426\u0434\u0414\u0435\u0415\u0444\u0424\u0433\u0413\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u0445\u0425\u0438\u0418\u2563\u2551\u2557\u255D\u0439\u0419\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u043A\u041A\u255A\u2554\u2569\u2566\u2560\u2550\u256C\xA4\u043B\u041B\u043C\u041C\u043D\u041D\u043E\u041E\u043F\u2518\u250C\u2588\u2584\u041F\u044F\u2580\u042F\u0440\u0420\u0441\u0421\u0442\u0422\u0443\u0423\u0436\u0416\u0432\u0412\u044C\u042C\u2116\xAD\u044B\u042B\u0437\u0417\u0448\u0428\u044D\u042D\u0449\u0429\u0447\u0427\xA7\u25A0\xA0"},ibm855:"cp855",csibm855:"cp855",cp856:{type:"_sbcs",chars:"\u05D0\u05D1\u05D2\u05D3\u05D4\u05D5\u05D6\u05D7\u05D8\u05D9\u05DA\u05DB\u05DC\u05DD\u05DE\u05DF\u05E0\u05E1\u05E2\u05E3\u05E4\u05E5\u05E6\u05E7\u05E8\u05E9\u05EA\uFFFD\xA3\uFFFD\xD7\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\xAE\xAC\xBD\xBC\uFFFD\xAB\xBB\u2591\u2592\u2593\u2502\u2524\uFFFD\uFFFD\uFFFD\xA9\u2563\u2551\u2557\u255D\xA2\xA5\u2510\u2514\u2534\u252C\u251C\u2500\u253C\uFFFD\uFFFD\u255A\u2554\u2569\u2566\u2560\u2550\u256C\xA4\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u2518\u250C\u2588\u2584\xA6\uFFFD\u2580\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\xB5\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\xAF\xB4\xAD\xB1\u2017\xBE\xB6\xA7\xF7\xB8\xB0\xA8\xB7\xB9\xB3\xB2\u25A0\xA0"},ibm856:"cp856",csibm856:"cp856",cp857:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\u0131\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\u0130\xD6\xDC\xF8\xA3\xD8\u015E\u015F\xE1\xED\xF3\xFA\xF1\xD1\u011E\u011F\xBF\xAE\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\xC1\xC2\xC0\xA9\u2563\u2551\u2557\u255D\xA2\xA5\u2510\u2514\u2534\u252C\u251C\u2500\u253C\xE3\xC3\u255A\u2554\u2569\u2566\u2560\u2550\u256C\xA4\xBA\xAA\xCA\xCB\xC8\uFFFD\xCD\xCE\xCF\u2518\u250C\u2588\u2584\xA6\xCC\u2580\xD3\xDF\xD4\xD2\xF5\xD5\xB5\uFFFD\xD7\xDA\xDB\xD9\xEC\xFF\xAF\xB4\xAD\xB1\uFFFD\xBE\xB6\xA7\xF7\xB8\xB0\xA8\xB7\xB9\xB3\xB2\u25A0\xA0"},ibm857:"cp857",csibm857:"cp857",cp858:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xF8\xA3\xD8\xD7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\xAE\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\xC1\xC2\xC0\xA9\u2563\u2551\u2557\u255D\xA2\xA5\u2510\u2514\u2534\u252C\u251C\u2500\u253C\xE3\xC3\u255A\u2554\u2569\u2566\u2560\u2550\u256C\xA4\xF0\xD0\xCA\xCB\xC8\u20AC\xCD\xCE\xCF\u2518\u250C\u2588\u2584\xA6\xCC\u2580\xD3\xDF\xD4\xD2\xF5\xD5\xB5\xFE\xDE\xDA\xDB\xD9\xFD\xDD\xAF\xB4\xAD\xB1\u2017\xBE\xB6\xA7\xF7\xB8\xB0\xA8\xB7\xB9\xB3\xB2\u25A0\xA0"},ibm858:"cp858",csibm858:"cp858",cp860:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE3\xE0\xC1\xE7\xEA\xCA\xE8\xCD\xD4\xEC\xC3\xC2\xC9\xC0\xC8\xF4\xF5\xF2\xDA\xF9\xCC\xD5\xDC\xA2\xA3\xD9\u20A7\xD3\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\xD2\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm860:"cp860",csibm860:"cp860",cp861:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xD0\xF0\xDE\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xFE\xFB\xDD\xFD\xD6\xDC\xF8\xA3\xD8\u20A7\u0192\xE1\xED\xF3\xFA\xC1\xCD\xD3\xDA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm861:"cp861",csibm861:"cp861",cp862:{type:"_sbcs",chars:"\u05D0\u05D1\u05D2\u05D3\u05D4\u05D5\u05D6\u05D7\u05D8\u05D9\u05DA\u05DB\u05DC\u05DD\u05DE\u05DF\u05E0\u05E1\u05E2\u05E3\u05E4\u05E5\u05E6\u05E7\u05E8\u05E9\u05EA\xA2\xA3\xA5\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm862:"cp862",csibm862:"cp862",cp863:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xC2\xE0\xB6\xE7\xEA\xEB\xE8\xEF\xEE\u2017\xC0\xA7\xC9\xC8\xCA\xF4\xCB\xCF\xFB\xF9\xA4\xD4\xDC\xA2\xA3\xD9\xDB\u0192\xA6\xB4\xF3\xFA\xA8\xB8\xB3\xAF\xCE\u2310\xAC\xBD\xBC\xBE\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm863:"cp863",csibm863:"cp863",cp864:{type:"_sbcs",chars:`\0\x07\b +\v\f\r\x1B !"#$\u066A&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xB0\xB7\u2219\u221A\u2592\u2500\u2502\u253C\u2524\u252C\u251C\u2534\u2510\u250C\u2514\u2518\u03B2\u221E\u03C6\xB1\xBD\xBC\u2248\xAB\xBB\uFEF7\uFEF8\uFFFD\uFFFD\uFEFB\uFEFC\uFFFD\xA0\xAD\uFE82\xA3\xA4\uFE84\uFFFD\uFFFD\uFE8E\uFE8F\uFE95\uFE99\u060C\uFE9D\uFEA1\uFEA5\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFED1\u061B\uFEB1\uFEB5\uFEB9\u061F\xA2\uFE80\uFE81\uFE83\uFE85\uFECA\uFE8B\uFE8D\uFE91\uFE93\uFE97\uFE9B\uFE9F\uFEA3\uFEA7\uFEA9\uFEAB\uFEAD\uFEAF\uFEB3\uFEB7\uFEBB\uFEBF\uFEC1\uFEC5\uFECB\uFECF\xA6\xAC\xF7\xD7\uFEC9\u0640\uFED3\uFED7\uFEDB\uFEDF\uFEE3\uFEE7\uFEEB\uFEED\uFEEF\uFEF3\uFEBD\uFECC\uFECE\uFECD\uFEE1\uFE7D\u0651\uFEE5\uFEE9\uFEEC\uFEF0\uFEF2\uFED0\uFED5\uFEF5\uFEF6\uFEDD\uFED9\uFEF1\u25A0\uFFFD`},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xF8\xA3\xD8\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xA4\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0404\u0454\u0407\u0457\u040E\u045E\xB0\u2219\xB7\u221A\u2116\xA4\u25A0\xA0"},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0386\uFFFD\xB7\xAC\xA6\u2018\u2019\u0388\u2015\u0389\u038A\u03AA\u038C\uFFFD\uFFFD\u038E\u03AB\xA9\u038F\xB2\xB3\u03AC\xA3\u03AD\u03AE\u03AF\u03CA\u0390\u03CC\u03CD\u0391\u0392\u0393\u0394\u0395\u0396\u0397\xBD\u0398\u0399\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u039A\u039B\u039C\u039D\u2563\u2551\u2557\u255D\u039E\u039F\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u03A0\u03A1\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03B1\u03B2\u03B3\u2518\u250C\u2588\u2584\u03B4\u03B5\u2580\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C3\u03C2\u03C4\u0384\xAD\xB1\u03C5\u03C6\u03C7\xA7\u03C8\u0385\xB0\xA8\u03C9\u03CB\u03B0\u03CE\u25A0\xA0"},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\u203E\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u0160\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\u017D\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u0161\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\u017E\xFF"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"\uFE88\xD7\xF7\uF8F6\uF8F5\uF8F4\uF8F7\uFE71\x88\u25A0\u2502\u2500\u2510\u250C\u2514\u2518\uFE79\uFE7B\uFE7D\uFE7F\uFE77\uFE8A\uFEF0\uFEF3\uFEF2\uFECE\uFECF\uFED0\uFEF6\uFEF8\uFEFA\uFEFC\xA0\uF8FA\uF8F9\uF8F8\xA4\uF8FB\uFE8B\uFE91\uFE97\uFE9B\uFE9F\uFEA3\u060C\xAD\uFEA7\uFEB3\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFEB7\u061B\uFEBB\uFEBF\uFECA\u061F\uFECB\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\uFEC7\u0639\u063A\uFECC\uFE82\uFE84\uFE8E\uFED3\u0640\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u064B\u064C\u064D\u064E\u064F\u0650\u0651\u0652\uFED7\uFEDB\uFEDF\uF8FC\uFEF5\uFEF7\uFEF9\uFEFB\uFEE3\uFEE7\uFEEC\uFEE9\uFFFD"},ibm1046:"cp1046",csibm1046:"cp1046",cp1124:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0401\u0402\u0490\u0404\u0405\u0406\u0407\u0408\u0409\u040A\u040B\u040C\xAD\u040E\u040F\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u2116\u0451\u0452\u0491\u0454\u0455\u0456\u0457\u0458\u0459\u045A\u045B\u045C\xA7\u045E\u045F"},ibm1124:"cp1124",csibm1124:"cp1124",cp1125:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0490\u0491\u0404\u0454\u0406\u0456\u0407\u0457\xB7\u221A\u2116\xA4\u25A0\xA0"},ibm1125:"cp1125",csibm1125:"cp1125",cp1129:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\u0153\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\u0178\xB5\xB6\xB7\u0152\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\u0102\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\u0300\xCD\xCE\xCF\u0110\xD1\u0309\xD3\xD4\u01A0\xD6\xD7\xD8\xD9\xDA\xDB\xDC\u01AF\u0303\xDF\xE0\xE1\xE2\u0103\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\u0301\xED\xEE\xEF\u0111\xF1\u0323\xF3\xF4\u01A1\xF6\xF7\xF8\xF9\xFA\xFB\xFC\u01B0\u20AB\xFF"},ibm1129:"cp1129",csibm1129:"cp1129",cp1133:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0E81\u0E82\u0E84\u0E87\u0E88\u0EAA\u0E8A\u0E8D\u0E94\u0E95\u0E96\u0E97\u0E99\u0E9A\u0E9B\u0E9C\u0E9D\u0E9E\u0E9F\u0EA1\u0EA2\u0EA3\u0EA5\u0EA7\u0EAB\u0EAD\u0EAE\uFFFD\uFFFD\uFFFD\u0EAF\u0EB0\u0EB2\u0EB3\u0EB4\u0EB5\u0EB6\u0EB7\u0EB8\u0EB9\u0EBC\u0EB1\u0EBB\u0EBD\uFFFD\uFFFD\uFFFD\u0EC0\u0EC1\u0EC2\u0EC3\u0EC4\u0EC8\u0EC9\u0ECA\u0ECB\u0ECC\u0ECD\u0EC6\uFFFD\u0EDC\u0EDD\u20AD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0ED0\u0ED1\u0ED2\u0ED3\u0ED4\u0ED5\u0ED6\u0ED7\u0ED8\u0ED9\uFFFD\uFFFD\xA2\xAC\xA6\uFFFD"},ibm1133:"cp1133",csibm1133:"cp1133",cp1161:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E48\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\u0E49\u0E4A\u0E4B\u20AC\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\xA2\xAC\xA6\xA0"},ibm1161:"cp1161",csibm1161:"cp1161",cp1162:{type:"_sbcs",chars:"\u20AC\x81\x82\x83\x84\u2026\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"},ibm1162:"cp1162",csibm1162:"cp1162",cp1163:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\u20AC\xA5\xA6\xA7\u0153\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\u0178\xB5\xB6\xB7\u0152\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\u0102\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\u0300\xCD\xCE\xCF\u0110\xD1\u0309\xD3\xD4\u01A0\xD6\xD7\xD8\xD9\xDA\xDB\xDC\u01AF\u0303\xDF\xE0\xE1\xE2\u0103\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\u0301\xED\xEE\xEF\u0111\xF1\u0323\xF3\xF4\u01A1\xF6\xF7\xF8\xF9\xFA\xFB\xFC\u01B0\u20AB\xFF"},ibm1163:"cp1163",csibm1163:"cp1163",maccroatian:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\u0160\u2122\xB4\xA8\u2260\u017D\xD8\u221E\xB1\u2264\u2265\u2206\xB5\u2202\u2211\u220F\u0161\u222B\xAA\xBA\u2126\u017E\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u0106\xAB\u010C\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u0110\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\uFFFD\xA9\u2044\xA4\u2039\u203A\xC6\xBB\u2013\xB7\u201A\u201E\u2030\xC2\u0107\xC1\u010D\xC8\xCD\xCE\xCF\xCC\xD3\xD4\u0111\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u03C0\xCB\u02DA\xB8\xCA\xE6\u02C7"},maccyrillic:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u2020\xB0\xA2\xA3\xA7\u2022\xB6\u0406\xAE\xA9\u2122\u0402\u0452\u2260\u0403\u0453\u221E\xB1\u2264\u2265\u0456\xB5\u2202\u0408\u0404\u0454\u0407\u0457\u0409\u0459\u040A\u045A\u0458\u0405\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\u040B\u045B\u040C\u045C\u0455\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u201E\u040E\u045E\u040F\u045F\u2116\u0401\u0451\u044F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\xA4"},macgreek:{type:"_sbcs",chars:"\xC4\xB9\xB2\xC9\xB3\xD6\xDC\u0385\xE0\xE2\xE4\u0384\xA8\xE7\xE9\xE8\xEA\xEB\xA3\u2122\xEE\xEF\u2022\xBD\u2030\xF4\xF6\xA6\xAD\xF9\xFB\xFC\u2020\u0393\u0394\u0398\u039B\u039E\u03A0\xDF\xAE\xA9\u03A3\u03AA\xA7\u2260\xB0\u0387\u0391\xB1\u2264\u2265\xA5\u0392\u0395\u0396\u0397\u0399\u039A\u039C\u03A6\u03AB\u03A8\u03A9\u03AC\u039D\xAC\u039F\u03A1\u2248\u03A4\xAB\xBB\u2026\xA0\u03A5\u03A7\u0386\u0388\u0153\u2013\u2015\u201C\u201D\u2018\u2019\xF7\u0389\u038A\u038C\u038E\u03AD\u03AE\u03AF\u03CC\u038F\u03CD\u03B1\u03B2\u03C8\u03B4\u03B5\u03C6\u03B3\u03B7\u03B9\u03BE\u03BA\u03BB\u03BC\u03BD\u03BF\u03C0\u03CE\u03C1\u03C3\u03C4\u03B8\u03C9\u03C2\u03C7\u03C5\u03B6\u03CA\u03CB\u0390\u03B0\uFFFD"},maciceland:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\xDD\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\xD0\xF0\xDE\xFE\xFD\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},macroman:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},macromania:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\u0102\u015E\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\u0103\u015F\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\u0162\u0163\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},macthai:{type:"_sbcs",chars:"\xAB\xBB\u2026\uF88C\uF88F\uF892\uF895\uF898\uF88B\uF88E\uF891\uF894\uF897\u201C\u201D\uF899\uFFFD\u2022\uF884\uF889\uF885\uF886\uF887\uF888\uF88A\uF88D\uF890\uF893\uF896\u2018\u2019\uFFFD\xA0\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFEFF\u200B\u2013\u2014\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u2122\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\xAE\xA9\uFFFD\uFFFD\uFFFD\uFFFD"},macturkish:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u011E\u011F\u0130\u0131\u015E\u015F\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\uFFFD\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},macukraine:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u2020\xB0\u0490\xA3\xA7\u2022\xB6\u0406\xAE\xA9\u2122\u0402\u0452\u2260\u0403\u0453\u221E\xB1\u2264\u2265\u0456\xB5\u0491\u0408\u0404\u0454\u0407\u0457\u0409\u0459\u040A\u045A\u0458\u0405\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\u040B\u045B\u040C\u045C\u0455\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u201E\u040E\u045E\u040F\u045F\u2116\u0401\u0451\u044F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\xA4"},koi8r:{type:"_sbcs",chars:"\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2580\u2584\u2588\u258C\u2590\u2591\u2592\u2593\u2320\u25A0\u2219\u221A\u2248\u2264\u2265\xA0\u2321\xB0\xB2\xB7\xF7\u2550\u2551\u2552\u0451\u2553\u2554\u2555\u2556\u2557\u2558\u2559\u255A\u255B\u255C\u255D\u255E\u255F\u2560\u2561\u0401\u2562\u2563\u2564\u2565\u2566\u2567\u2568\u2569\u256A\u256B\u256C\xA9\u044E\u0430\u0431\u0446\u0434\u0435\u0444\u0433\u0445\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u044F\u0440\u0441\u0442\u0443\u0436\u0432\u044C\u044B\u0437\u0448\u044D\u0449\u0447\u044A\u042E\u0410\u0411\u0426\u0414\u0415\u0424\u0413\u0425\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u042F\u0420\u0421\u0422\u0423\u0416\u0412\u042C\u042B\u0417\u0428\u042D\u0429\u0427\u042A"},koi8u:{type:"_sbcs",chars:"\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2580\u2584\u2588\u258C\u2590\u2591\u2592\u2593\u2320\u25A0\u2219\u221A\u2248\u2264\u2265\xA0\u2321\xB0\xB2\xB7\xF7\u2550\u2551\u2552\u0451\u0454\u2554\u0456\u0457\u2557\u2558\u2559\u255A\u255B\u0491\u255D\u255E\u255F\u2560\u2561\u0401\u0404\u2563\u0406\u0407\u2566\u2567\u2568\u2569\u256A\u0490\u256C\xA9\u044E\u0430\u0431\u0446\u0434\u0435\u0444\u0433\u0445\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u044F\u0440\u0441\u0442\u0443\u0436\u0432\u044C\u044B\u0437\u0448\u044D\u0449\u0447\u044A\u042E\u0410\u0411\u0426\u0414\u0415\u0424\u0413\u0425\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u042F\u0420\u0421\u0422\u0423\u0416\u0412\u042C\u042B\u0417\u0428\u042D\u0429\u0427\u042A"},koi8ru:{type:"_sbcs",chars:"\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2580\u2584\u2588\u258C\u2590\u2591\u2592\u2593\u2320\u25A0\u2219\u221A\u2248\u2264\u2265\xA0\u2321\xB0\xB2\xB7\xF7\u2550\u2551\u2552\u0451\u0454\u2554\u0456\u0457\u2557\u2558\u2559\u255A\u255B\u0491\u045E\u255E\u255F\u2560\u2561\u0401\u0404\u2563\u0406\u0407\u2566\u2567\u2568\u2569\u256A\u0490\u040E\xA9\u044E\u0430\u0431\u0446\u0434\u0435\u0444\u0433\u0445\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u044F\u0440\u0441\u0442\u0443\u0436\u0432\u044C\u044B\u0437\u0448\u044D\u0449\u0447\u044A\u042E\u0410\u0411\u0426\u0414\u0415\u0424\u0413\u0425\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u042F\u0420\u0421\u0422\u0423\u0416\u0412\u042C\u042B\u0417\u0428\u042D\u0429\u0427\u042A"},koi8t:{type:"_sbcs",chars:"\u049B\u0493\u201A\u0492\u201E\u2026\u2020\u2021\uFFFD\u2030\u04B3\u2039\u04B2\u04B7\u04B6\uFFFD\u049A\u2018\u2019\u201C\u201D\u2022\u2013\u2014\uFFFD\u2122\uFFFD\u203A\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u04EF\u04EE\u0451\xA4\u04E3\xA6\xA7\uFFFD\uFFFD\uFFFD\xAB\xAC\xAD\xAE\uFFFD\xB0\xB1\xB2\u0401\uFFFD\u04E2\xB6\xB7\uFFFD\u2116\uFFFD\xBB\uFFFD\uFFFD\uFFFD\xA9\u044E\u0430\u0431\u0446\u0434\u0435\u0444\u0433\u0445\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u044F\u0440\u0441\u0442\u0443\u0436\u0432\u044C\u044B\u0437\u0448\u044D\u0449\u0447\u044A\u042E\u0410\u0411\u0426\u0414\u0415\u0424\u0413\u0425\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u042F\u0420\u0421\u0422\u0423\u0416\u0412\u042C\u042B\u0417\u0428\u042D\u0429\u0427\u042A"},armscii8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\uFFFD\u0587\u0589)(\xBB\xAB\u2014.\u055D,-\u058A\u2026\u055C\u055B\u055E\u0531\u0561\u0532\u0562\u0533\u0563\u0534\u0564\u0535\u0565\u0536\u0566\u0537\u0567\u0538\u0568\u0539\u0569\u053A\u056A\u053B\u056B\u053C\u056C\u053D\u056D\u053E\u056E\u053F\u056F\u0540\u0570\u0541\u0571\u0542\u0572\u0543\u0573\u0544\u0574\u0545\u0575\u0546\u0576\u0547\u0577\u0548\u0578\u0549\u0579\u054A\u057A\u054B\u057B\u054C\u057C\u054D\u057D\u054E\u057E\u054F\u057F\u0550\u0580\u0551\u0581\u0552\u0582\u0553\u0583\u0554\u0584\u0555\u0585\u0556\u0586\u055A\uFFFD"},rk1048:{type:"_sbcs",chars:"\u0402\u0403\u201A\u0453\u201E\u2026\u2020\u2021\u20AC\u2030\u0409\u2039\u040A\u049A\u04BA\u040F\u0452\u2018\u2019\u201C\u201D\u2022\u2013\u2014\uFFFD\u2122\u0459\u203A\u045A\u049B\u04BB\u045F\xA0\u04B0\u04B1\u04D8\xA4\u04E8\xA6\xA7\u0401\xA9\u0492\xAB\xAC\xAD\xAE\u04AE\xB0\xB1\u0406\u0456\u04E9\xB5\xB6\xB7\u0451\u2116\u0493\xBB\u04D9\u04A2\u04A3\u04AF\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F"},tcvn:{type:"_sbcs",chars:`\0\xDA\u1EE4\u1EEA\u1EEC\u1EEE\x07\b +\v\f\r\u1EE8\u1EF0\u1EF2\u1EF6\u1EF8\xDD\u1EF4\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xC0\u1EA2\xC3\xC1\u1EA0\u1EB6\u1EAC\xC8\u1EBA\u1EBC\xC9\u1EB8\u1EC6\xCC\u1EC8\u0128\xCD\u1ECA\xD2\u1ECE\xD5\xD3\u1ECC\u1ED8\u1EDC\u1EDE\u1EE0\u1EDA\u1EE2\xD9\u1EE6\u0168\xA0\u0102\xC2\xCA\xD4\u01A0\u01AF\u0110\u0103\xE2\xEA\xF4\u01A1\u01B0\u0111\u1EB0\u0300\u0309\u0303\u0301\u0323\xE0\u1EA3\xE3\xE1\u1EA1\u1EB2\u1EB1\u1EB3\u1EB5\u1EAF\u1EB4\u1EAE\u1EA6\u1EA8\u1EAA\u1EA4\u1EC0\u1EB7\u1EA7\u1EA9\u1EAB\u1EA5\u1EAD\xE8\u1EC2\u1EBB\u1EBD\xE9\u1EB9\u1EC1\u1EC3\u1EC5\u1EBF\u1EC7\xEC\u1EC9\u1EC4\u1EBE\u1ED2\u0129\xED\u1ECB\xF2\u1ED4\u1ECF\xF5\xF3\u1ECD\u1ED3\u1ED5\u1ED7\u1ED1\u1ED9\u1EDD\u1EDF\u1EE1\u1EDB\u1EE3\xF9\u1ED6\u1EE7\u0169\xFA\u1EE5\u1EEB\u1EED\u1EEF\u1EE9\u1EF1\u1EF3\u1EF7\u1EF9\xFD\u1EF5\u1ED0`},georgianacademy:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10EF\u10F0\u10F1\u10F2\u10F3\u10F4\u10F5\u10F6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},georgianps:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10F1\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10F2\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10F3\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10F4\u10EF\u10F0\u10F5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},pt154:{type:"_sbcs",chars:"\u0496\u0492\u04EE\u0493\u201E\u2026\u04B6\u04AE\u04B2\u04AF\u04A0\u04E2\u04A2\u049A\u04BA\u04B8\u0497\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u04B3\u04B7\u04A1\u04E3\u04A3\u049B\u04BB\u04B9\xA0\u040E\u045E\u0408\u04E8\u0498\u04B0\xA7\u0401\xA9\u04D8\xAB\xAC\u04EF\xAE\u049C\xB0\u04B1\u0406\u0456\u0499\u04E9\xB6\xB7\u0451\u2116\u04D9\xBB\u0458\u04AA\u04AB\u049D\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F"},viscii:{type:"_sbcs",chars:`\0\u1EB2\u1EB4\u1EAA\x07\b +\v\f\r\u1EF6\u1EF8\x1B\u1EF4 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\u1EA0\u1EAE\u1EB0\u1EB6\u1EA4\u1EA6\u1EA8\u1EAC\u1EBC\u1EB8\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EE2\u1EDA\u1EDC\u1EDE\u1ECA\u1ECE\u1ECC\u1EC8\u1EE6\u0168\u1EE4\u1EF2\xD5\u1EAF\u1EB1\u1EB7\u1EA5\u1EA7\u1EA9\u1EAD\u1EBD\u1EB9\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1ED1\u1ED3\u1ED5\u1ED7\u1EE0\u01A0\u1ED9\u1EDD\u1EDF\u1ECB\u1EF0\u1EE8\u1EEA\u1EEC\u01A1\u1EDB\u01AF\xC0\xC1\xC2\xC3\u1EA2\u0102\u1EB3\u1EB5\xC8\xC9\xCA\u1EBA\xCC\xCD\u0128\u1EF3\u0110\u1EE9\xD2\xD3\xD4\u1EA1\u1EF7\u1EEB\u1EED\xD9\xDA\u1EF9\u1EF5\xDD\u1EE1\u01B0\xE0\xE1\xE2\xE3\u1EA3\u0103\u1EEF\u1EAB\xE8\xE9\xEA\u1EBB\xEC\xED\u0129\u1EC9\u0111\u1EF1\xF2\xF3\xF4\xF5\u1ECF\u1ECD\u1EE5\xF9\xFA\u0169\u1EE7\xFD\u1EE3\u1EEE`},iso646cn:{type:"_sbcs",chars:`\0\x07\b +\v\f\r\x1B !"#\xA5%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},iso646jp:{type:"_sbcs",chars:`\0\x07\b +\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var KN=T(WN=>{"use strict";var ic=Eo().Buffer;WN._dbcs=ts;var rn=-1,GN=-2,Mn=-10,Si=-1e3,nc=new Array(256),sd=-1;for(ch=0;ch<256;ch++)nc[ch]=rn;var ch;function ts(t,e){if(this.encodingName=t.encodingName,!t)throw new Error("DBCS codec is called without the data.");if(!t.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=t.table();this.decodeTables=[],this.decodeTables[0]=nc.slice(0),this.decodeTableSeq=[];for(var n=0;n0;t>>=8)e.push(t&255);e.length==0&&e.push(0);for(var r=this.decodeTables[0],n=e.length-1;n>0;n--){var i=r[e[n]];if(i==rn)r[e[n]]=Si-this.decodeTables.length,this.decodeTables.push(r=nc.slice(0));else if(i<=Si)r=this.decodeTables[Si-i];else throw new Error("Overwrite byte in "+this.encodingName+", addr: "+t.toString(16))}return r};ts.prototype._addDecodeChunk=function(t){var e=parseInt(t[0],16),r=this._getDecodeTrieNode(e);e=e&255;for(var n=1;n255)throw new Error("Incorrect chunk in "+this.encodingName+" at addr "+t[0]+": too long"+e)};ts.prototype._getEncodeBucket=function(t){var e=t>>8;return this.encodeTable[e]===void 0&&(this.encodeTable[e]=nc.slice(0)),this.encodeTable[e]};ts.prototype._setEncodeChar=function(t,e){var r=this._getEncodeBucket(t),n=t&255;r[n]<=Mn?this.encodeTableSeq[Mn-r[n]][sd]=e:r[n]==rn&&(r[n]=e)};ts.prototype._setEncodeSequence=function(t,e){var r=t[0],n=this._getEncodeBucket(r),i=r&255,s;n[i]<=Mn?s=this.encodeTableSeq[Mn-n[i]]:(s={},n[i]!==rn&&(s[sd]=n[i]),n[i]=Mn-this.encodeTableSeq.length,this.encodeTableSeq.push(s));for(var o=1;o=0?this._setEncodeChar(s,o):s<=Si?this._fillEncodeTable(Si-s,o<<8,r):s<=Mn&&this._setEncodeSequence(this.decodeTableSeq[Mn-s],o))}};function uh(t,e){this.leadSurrogate=-1,this.seqObj=void 0,this.encodeTable=e.encodeTable,this.encodeTableSeq=e.encodeTableSeq,this.defaultCharSingleByte=e.defCharSB,this.gb18030=e.gb18030}uh.prototype.write=function(t){for(var e=ic.alloc(t.length*(this.gb18030?4:3)),r=this.leadSurrogate,n=this.seqObj,i=-1,s=0,o=0;;){if(i===-1){if(s==t.length)break;var a=t.charCodeAt(s++)}else{var a=i;i=-1}if(55296<=a&&a<57344)if(a<56320)if(r===-1){r=a;continue}else r=a,a=rn;else r!==-1?(a=65536+(r-55296)*1024+(a-56320),r=-1):a=rn;else r!==-1&&(i=a,a=rn,r=-1);var c=rn;if(n!==void 0&&a!=rn){var u=n[a];if(typeof u=="object"){n=u;continue}else typeof u=="number"?c=u:u==null&&(u=n[sd],u!==void 0&&(c=u,i=a));n=void 0}else if(a>=0){var l=this.encodeTable[a>>8];if(l!==void 0&&(c=l[a&255]),c<=Mn){n=this.encodeTableSeq[Mn-c];continue}if(c==rn&&this.gb18030){var d=jw(this.gb18030.uChars,a);if(d!=-1){var c=this.gb18030.gbChars[d]+(a-this.gb18030.uChars[d]);e[o++]=129+Math.floor(c/12600),c=c%12600,e[o++]=48+Math.floor(c/1260),c=c%1260,e[o++]=129+Math.floor(c/10),c=c%10,e[o++]=48+c;continue}}}c===rn&&(c=this.defaultCharSingleByte),c<256?e[o++]=c:c<65536?(e[o++]=c>>8,e[o++]=c&255):(e[o++]=c>>16,e[o++]=c>>8&255,e[o++]=c&255)}return this.seqObj=n,this.leadSurrogate=r,e.slice(0,o)};uh.prototype.end=function(){if(!(this.leadSurrogate===-1&&this.seqObj===void 0)){var t=ic.alloc(10),e=0;if(this.seqObj){var r=this.seqObj[sd];r!==void 0&&(r<256?t[e++]=r:(t[e++]=r>>8,t[e++]=r&255)),this.seqObj=void 0}return this.leadSurrogate!==-1&&(t[e++]=this.defaultCharSingleByte,this.leadSurrogate=-1),t.slice(0,e)}};uh.prototype.findIdx=jw;function Dw(t,e){this.nodeIdx=0,this.prevBuf=ic.alloc(0),this.decodeTables=e.decodeTables,this.decodeTableSeq=e.decodeTableSeq,this.defaultCharUnicode=e.defaultCharUnicode,this.gb18030=e.gb18030}Dw.prototype.write=function(t){var e=ic.alloc(t.length*2),r=this.nodeIdx,n=this.prevBuf,i=this.prevBuf.length,s=-this.prevBuf.length,o;i>0&&(n=ic.concat([n,t.slice(0,10)]));for(var a=0,c=0;a=0?t[a]:n[a+i],o=this.decodeTables[r][u];if(!(o>=0))if(o===rn)a=s,o=this.defaultCharUnicode.charCodeAt(0);else if(o===GN){var l=s>=0?t.slice(s,a+1):n.slice(s+i,a+1+i),d=(l[0]-129)*12600+(l[1]-48)*1260+(l[2]-129)*10+(l[3]-48),p=jw(this.gb18030.gbChars,d);o=this.gb18030.uChars[p]+d-this.gb18030.gbChars[p]}else if(o<=Si){r=Si-o;continue}else if(o<=Mn){for(var m=this.decodeTableSeq[Mn-o],f=0;f>8;o=m[m.length-1]}else throw new Error("iconv-lite internal error: invalid decoding table value "+o+" at "+r+"/"+u);if(o>65535){o-=65536;var g=55296+Math.floor(o/1024);e[c++]=g&255,e[c++]=g>>8,o=56320+o%1024}e[c++]=o&255,e[c++]=o>>8,r=0,s=a+1}return this.nodeIdx=r,this.prevBuf=s>=0?t.slice(s):n.slice(s+i),e.slice(0,c).toString("ucs2")};Dw.prototype.end=function(){for(var t="";this.prevBuf.length>0;){t+=this.defaultCharUnicode;var e=this.prevBuf.slice(1);this.prevBuf=ic.alloc(0),this.nodeIdx=0,e.length>0&&(t+=this.write(e))}return this.nodeIdx=0,t};function jw(t,e){if(t[0]>e)return-1;for(var r=0,n=t.length;r{vX.exports=[["0","\0",128],["a1","\uFF61",62],["8140","\u3000\u3001\u3002\uFF0C\uFF0E\u30FB\uFF1A\uFF1B\uFF1F\uFF01\u309B\u309C\xB4\uFF40\xA8\uFF3E\uFFE3\uFF3F\u30FD\u30FE\u309D\u309E\u3003\u4EDD\u3005\u3006\u3007\u30FC\u2015\u2010\uFF0F\uFF3C\uFF5E\u2225\uFF5C\u2026\u2025\u2018\u2019\u201C\u201D\uFF08\uFF09\u3014\u3015\uFF3B\uFF3D\uFF5B\uFF5D\u3008",9,"\uFF0B\uFF0D\xB1\xD7"],["8180","\xF7\uFF1D\u2260\uFF1C\uFF1E\u2266\u2267\u221E\u2234\u2642\u2640\xB0\u2032\u2033\u2103\uFFE5\uFF04\uFFE0\uFFE1\uFF05\uFF03\uFF06\uFF0A\uFF20\xA7\u2606\u2605\u25CB\u25CF\u25CE\u25C7\u25C6\u25A1\u25A0\u25B3\u25B2\u25BD\u25BC\u203B\u3012\u2192\u2190\u2191\u2193\u3013"],["81b8","\u2208\u220B\u2286\u2287\u2282\u2283\u222A\u2229"],["81c8","\u2227\u2228\uFFE2\u21D2\u21D4\u2200\u2203"],["81da","\u2220\u22A5\u2312\u2202\u2207\u2261\u2252\u226A\u226B\u221A\u223D\u221D\u2235\u222B\u222C"],["81f0","\u212B\u2030\u266F\u266D\u266A\u2020\u2021\xB6"],["81fc","\u25EF"],["824f","\uFF10",9],["8260","\uFF21",25],["8281","\uFF41",25],["829f","\u3041",82],["8340","\u30A1",62],["8380","\u30E0",22],["839f","\u0391",16,"\u03A3",6],["83bf","\u03B1",16,"\u03C3",6],["8440","\u0410",5,"\u0401\u0416",25],["8470","\u0430",5,"\u0451\u0436",7],["8480","\u043E",17],["849f","\u2500\u2502\u250C\u2510\u2518\u2514\u251C\u252C\u2524\u2534\u253C\u2501\u2503\u250F\u2513\u251B\u2517\u2523\u2533\u252B\u253B\u254B\u2520\u252F\u2528\u2537\u253F\u251D\u2530\u2525\u2538\u2542"],["8740","\u2460",19,"\u2160",9],["875f","\u3349\u3314\u3322\u334D\u3318\u3327\u3303\u3336\u3351\u3357\u330D\u3326\u3323\u332B\u334A\u333B\u339C\u339D\u339E\u338E\u338F\u33C4\u33A1"],["877e","\u337B"],["8780","\u301D\u301F\u2116\u33CD\u2121\u32A4",4,"\u3231\u3232\u3239\u337E\u337D\u337C\u2252\u2261\u222B\u222E\u2211\u221A\u22A5\u2220\u221F\u22BF\u2235\u2229\u222A"],["889f","\u4E9C\u5516\u5A03\u963F\u54C0\u611B\u6328\u59F6\u9022\u8475\u831C\u7A50\u60AA\u63E1\u6E25\u65ED\u8466\u82A6\u9BF5\u6893\u5727\u65A1\u6271\u5B9B\u59D0\u867B\u98F4\u7D62\u7DBE\u9B8E\u6216\u7C9F\u88B7\u5B89\u5EB5\u6309\u6697\u6848\u95C7\u978D\u674F\u4EE5\u4F0A\u4F4D\u4F9D\u5049\u56F2\u5937\u59D4\u5A01\u5C09\u60DF\u610F\u6170\u6613\u6905\u70BA\u754F\u7570\u79FB\u7DAD\u7DEF\u80C3\u840E\u8863\u8B02\u9055\u907A\u533B\u4E95\u4EA5\u57DF\u80B2\u90C1\u78EF\u4E00\u58F1\u6EA2\u9038\u7A32\u8328\u828B\u9C2F\u5141\u5370\u54BD\u54E1\u56E0\u59FB\u5F15\u98F2\u6DEB\u80E4\u852D"],["8940","\u9662\u9670\u96A0\u97FB\u540B\u53F3\u5B87\u70CF\u7FBD\u8FC2\u96E8\u536F\u9D5C\u7ABA\u4E11\u7893\u81FC\u6E26\u5618\u5504\u6B1D\u851A\u9C3B\u59E5\u53A9\u6D66\u74DC\u958F\u5642\u4E91\u904B\u96F2\u834F\u990C\u53E1\u55B6\u5B30\u5F71\u6620\u66F3\u6804\u6C38\u6CF3\u6D29\u745B\u76C8\u7A4E\u9834\u82F1\u885B\u8A60\u92ED\u6DB2\u75AB\u76CA\u99C5\u60A6\u8B01\u8D8A\u95B2\u698E\u53AD\u5186"],["8980","\u5712\u5830\u5944\u5BB4\u5EF6\u6028\u63A9\u63F4\u6CBF\u6F14\u708E\u7114\u7159\u71D5\u733F\u7E01\u8276\u82D1\u8597\u9060\u925B\u9D1B\u5869\u65BC\u6C5A\u7525\u51F9\u592E\u5965\u5F80\u5FDC\u62BC\u65FA\u6A2A\u6B27\u6BB4\u738B\u7FC1\u8956\u9D2C\u9D0E\u9EC4\u5CA1\u6C96\u837B\u5104\u5C4B\u61B6\u81C6\u6876\u7261\u4E59\u4FFA\u5378\u6069\u6E29\u7A4F\u97F3\u4E0B\u5316\u4EEE\u4F55\u4F3D\u4FA1\u4F73\u52A0\u53EF\u5609\u590F\u5AC1\u5BB6\u5BE1\u79D1\u6687\u679C\u67B6\u6B4C\u6CB3\u706B\u73C2\u798D\u79BE\u7A3C\u7B87\u82B1\u82DB\u8304\u8377\u83EF\u83D3\u8766\u8AB2\u5629\u8CA8\u8FE6\u904E\u971E\u868A\u4FC4\u5CE8\u6211\u7259\u753B\u81E5\u82BD\u86FE\u8CC0\u96C5\u9913\u99D5\u4ECB\u4F1A\u89E3\u56DE\u584A\u58CA\u5EFB\u5FEB\u602A\u6094\u6062\u61D0\u6212\u62D0\u6539"],["8a40","\u9B41\u6666\u68B0\u6D77\u7070\u754C\u7686\u7D75\u82A5\u87F9\u958B\u968E\u8C9D\u51F1\u52BE\u5916\u54B3\u5BB3\u5D16\u6168\u6982\u6DAF\u788D\u84CB\u8857\u8A72\u93A7\u9AB8\u6D6C\u99A8\u86D9\u57A3\u67FF\u86CE\u920E\u5283\u5687\u5404\u5ED3\u62E1\u64B9\u683C\u6838\u6BBB\u7372\u78BA\u7A6B\u899A\u89D2\u8D6B\u8F03\u90ED\u95A3\u9694\u9769\u5B66\u5CB3\u697D\u984D\u984E\u639B\u7B20\u6A2B"],["8a80","\u6A7F\u68B6\u9C0D\u6F5F\u5272\u559D\u6070\u62EC\u6D3B\u6E07\u6ED1\u845B\u8910\u8F44\u4E14\u9C39\u53F6\u691B\u6A3A\u9784\u682A\u515C\u7AC3\u84B2\u91DC\u938C\u565B\u9D28\u6822\u8305\u8431\u7CA5\u5208\u82C5\u74E6\u4E7E\u4F83\u51A0\u5BD2\u520A\u52D8\u52E7\u5DFB\u559A\u582A\u59E6\u5B8C\u5B98\u5BDB\u5E72\u5E79\u60A3\u611F\u6163\u61BE\u63DB\u6562\u67D1\u6853\u68FA\u6B3E\u6B53\u6C57\u6F22\u6F97\u6F45\u74B0\u7518\u76E3\u770B\u7AFF\u7BA1\u7C21\u7DE9\u7F36\u7FF0\u809D\u8266\u839E\u89B3\u8ACC\u8CAB\u9084\u9451\u9593\u9591\u95A2\u9665\u97D3\u9928\u8218\u4E38\u542B\u5CB8\u5DCC\u73A9\u764C\u773C\u5CA9\u7FEB\u8D0B\u96C1\u9811\u9854\u9858\u4F01\u4F0E\u5371\u559C\u5668\u57FA\u5947\u5B09\u5BC4\u5C90\u5E0C\u5E7E\u5FCC\u63EE\u673A\u65D7\u65E2\u671F\u68CB\u68C4"],["8b40","\u6A5F\u5E30\u6BC5\u6C17\u6C7D\u757F\u7948\u5B63\u7A00\u7D00\u5FBD\u898F\u8A18\u8CB4\u8D77\u8ECC\u8F1D\u98E2\u9A0E\u9B3C\u4E80\u507D\u5100\u5993\u5B9C\u622F\u6280\u64EC\u6B3A\u72A0\u7591\u7947\u7FA9\u87FB\u8ABC\u8B70\u63AC\u83CA\u97A0\u5409\u5403\u55AB\u6854\u6A58\u8A70\u7827\u6775\u9ECD\u5374\u5BA2\u811A\u8650\u9006\u4E18\u4E45\u4EC7\u4F11\u53CA\u5438\u5BAE\u5F13\u6025\u6551"],["8b80","\u673D\u6C42\u6C72\u6CE3\u7078\u7403\u7A76\u7AAE\u7B08\u7D1A\u7CFE\u7D66\u65E7\u725B\u53BB\u5C45\u5DE8\u62D2\u62E0\u6319\u6E20\u865A\u8A31\u8DDD\u92F8\u6F01\u79A6\u9B5A\u4EA8\u4EAB\u4EAC\u4F9B\u4FA0\u50D1\u5147\u7AF6\u5171\u51F6\u5354\u5321\u537F\u53EB\u55AC\u5883\u5CE1\u5F37\u5F4A\u602F\u6050\u606D\u631F\u6559\u6A4B\u6CC1\u72C2\u72ED\u77EF\u80F8\u8105\u8208\u854E\u90F7\u93E1\u97FF\u9957\u9A5A\u4EF0\u51DD\u5C2D\u6681\u696D\u5C40\u66F2\u6975\u7389\u6850\u7C81\u50C5\u52E4\u5747\u5DFE\u9326\u65A4\u6B23\u6B3D\u7434\u7981\u79BD\u7B4B\u7DCA\u82B9\u83CC\u887F\u895F\u8B39\u8FD1\u91D1\u541F\u9280\u4E5D\u5036\u53E5\u533A\u72D7\u7396\u77E9\u82E6\u8EAF\u99C6\u99C8\u99D2\u5177\u611A\u865E\u55B0\u7A7A\u5076\u5BD3\u9047\u9685\u4E32\u6ADB\u91E7\u5C51\u5C48"],["8c40","\u6398\u7A9F\u6C93\u9774\u8F61\u7AAA\u718A\u9688\u7C82\u6817\u7E70\u6851\u936C\u52F2\u541B\u85AB\u8A13\u7FA4\u8ECD\u90E1\u5366\u8888\u7941\u4FC2\u50BE\u5211\u5144\u5553\u572D\u73EA\u578B\u5951\u5F62\u5F84\u6075\u6176\u6167\u61A9\u63B2\u643A\u656C\u666F\u6842\u6E13\u7566\u7A3D\u7CFB\u7D4C\u7D99\u7E4B\u7F6B\u830E\u834A\u86CD\u8A08\u8A63\u8B66\u8EFD\u981A\u9D8F\u82B8\u8FCE\u9BE8"],["8c80","\u5287\u621F\u6483\u6FC0\u9699\u6841\u5091\u6B20\u6C7A\u6F54\u7A74\u7D50\u8840\u8A23\u6708\u4EF6\u5039\u5026\u5065\u517C\u5238\u5263\u55A7\u570F\u5805\u5ACC\u5EFA\u61B2\u61F8\u62F3\u6372\u691C\u6A29\u727D\u72AC\u732E\u7814\u786F\u7D79\u770C\u80A9\u898B\u8B19\u8CE2\u8ED2\u9063\u9375\u967A\u9855\u9A13\u9E78\u5143\u539F\u53B3\u5E7B\u5F26\u6E1B\u6E90\u7384\u73FE\u7D43\u8237\u8A00\u8AFA\u9650\u4E4E\u500B\u53E4\u547C\u56FA\u59D1\u5B64\u5DF1\u5EAB\u5F27\u6238\u6545\u67AF\u6E56\u72D0\u7CCA\u88B4\u80A1\u80E1\u83F0\u864E\u8A87\u8DE8\u9237\u96C7\u9867\u9F13\u4E94\u4E92\u4F0D\u5348\u5449\u543E\u5A2F\u5F8C\u5FA1\u609F\u68A7\u6A8E\u745A\u7881\u8A9E\u8AA4\u8B77\u9190\u4E5E\u9BC9\u4EA4\u4F7C\u4FAF\u5019\u5016\u5149\u516C\u529F\u52B9\u52FE\u539A\u53E3\u5411"],["8d40","\u540E\u5589\u5751\u57A2\u597D\u5B54\u5B5D\u5B8F\u5DE5\u5DE7\u5DF7\u5E78\u5E83\u5E9A\u5EB7\u5F18\u6052\u614C\u6297\u62D8\u63A7\u653B\u6602\u6643\u66F4\u676D\u6821\u6897\u69CB\u6C5F\u6D2A\u6D69\u6E2F\u6E9D\u7532\u7687\u786C\u7A3F\u7CE0\u7D05\u7D18\u7D5E\u7DB1\u8015\u8003\u80AF\u80B1\u8154\u818F\u822A\u8352\u884C\u8861\u8B1B\u8CA2\u8CFC\u90CA\u9175\u9271\u783F\u92FC\u95A4\u964D"],["8d80","\u9805\u9999\u9AD8\u9D3B\u525B\u52AB\u53F7\u5408\u58D5\u62F7\u6FE0\u8C6A\u8F5F\u9EB9\u514B\u523B\u544A\u56FD\u7A40\u9177\u9D60\u9ED2\u7344\u6F09\u8170\u7511\u5FFD\u60DA\u9AA8\u72DB\u8FBC\u6B64\u9803\u4ECA\u56F0\u5764\u58BE\u5A5A\u6068\u61C7\u660F\u6606\u6839\u68B1\u6DF7\u75D5\u7D3A\u826E\u9B42\u4E9B\u4F50\u53C9\u5506\u5D6F\u5DE6\u5DEE\u67FB\u6C99\u7473\u7802\u8A50\u9396\u88DF\u5750\u5EA7\u632B\u50B5\u50AC\u518D\u6700\u54C9\u585E\u59BB\u5BB0\u5F69\u624D\u63A1\u683D\u6B73\u6E08\u707D\u91C7\u7280\u7815\u7826\u796D\u658E\u7D30\u83DC\u88C1\u8F09\u969B\u5264\u5728\u6750\u7F6A\u8CA1\u51B4\u5742\u962A\u583A\u698A\u80B4\u54B2\u5D0E\u57FC\u7895\u9DFA\u4F5C\u524A\u548B\u643E\u6628\u6714\u67F5\u7A84\u7B56\u7D22\u932F\u685C\u9BAD\u7B39\u5319\u518A\u5237"],["8e40","\u5BDF\u62F6\u64AE\u64E6\u672D\u6BBA\u85A9\u96D1\u7690\u9BD6\u634C\u9306\u9BAB\u76BF\u6652\u4E09\u5098\u53C2\u5C71\u60E8\u6492\u6563\u685F\u71E6\u73CA\u7523\u7B97\u7E82\u8695\u8B83\u8CDB\u9178\u9910\u65AC\u66AB\u6B8B\u4ED5\u4ED4\u4F3A\u4F7F\u523A\u53F8\u53F2\u55E3\u56DB\u58EB\u59CB\u59C9\u59FF\u5B50\u5C4D\u5E02\u5E2B\u5FD7\u601D\u6307\u652F\u5B5C\u65AF\u65BD\u65E8\u679D\u6B62"],["8e80","\u6B7B\u6C0F\u7345\u7949\u79C1\u7CF8\u7D19\u7D2B\u80A2\u8102\u81F3\u8996\u8A5E\u8A69\u8A66\u8A8C\u8AEE\u8CC7\u8CDC\u96CC\u98FC\u6B6F\u4E8B\u4F3C\u4F8D\u5150\u5B57\u5BFA\u6148\u6301\u6642\u6B21\u6ECB\u6CBB\u723E\u74BD\u75D4\u78C1\u793A\u800C\u8033\u81EA\u8494\u8F9E\u6C50\u9E7F\u5F0F\u8B58\u9D2B\u7AFA\u8EF8\u5B8D\u96EB\u4E03\u53F1\u57F7\u5931\u5AC9\u5BA4\u6089\u6E7F\u6F06\u75BE\u8CEA\u5B9F\u8500\u7BE0\u5072\u67F4\u829D\u5C61\u854A\u7E1E\u820E\u5199\u5C04\u6368\u8D66\u659C\u716E\u793E\u7D17\u8005\u8B1D\u8ECA\u906E\u86C7\u90AA\u501F\u52FA\u5C3A\u6753\u707C\u7235\u914C\u91C8\u932B\u82E5\u5BC2\u5F31\u60F9\u4E3B\u53D6\u5B88\u624B\u6731\u6B8A\u72E9\u73E0\u7A2E\u816B\u8DA3\u9152\u9996\u5112\u53D7\u546A\u5BFF\u6388\u6A39\u7DAC\u9700\u56DA\u53CE\u5468"],["8f40","\u5B97\u5C31\u5DDE\u4FEE\u6101\u62FE\u6D32\u79C0\u79CB\u7D42\u7E4D\u7FD2\u81ED\u821F\u8490\u8846\u8972\u8B90\u8E74\u8F2F\u9031\u914B\u916C\u96C6\u919C\u4EC0\u4F4F\u5145\u5341\u5F93\u620E\u67D4\u6C41\u6E0B\u7363\u7E26\u91CD\u9283\u53D4\u5919\u5BBF\u6DD1\u795D\u7E2E\u7C9B\u587E\u719F\u51FA\u8853\u8FF0\u4FCA\u5CFB\u6625\u77AC\u7AE3\u821C\u99FF\u51C6\u5FAA\u65EC\u696F\u6B89\u6DF3"],["8f80","\u6E96\u6F64\u76FE\u7D14\u5DE1\u9075\u9187\u9806\u51E6\u521D\u6240\u6691\u66D9\u6E1A\u5EB6\u7DD2\u7F72\u66F8\u85AF\u85F7\u8AF8\u52A9\u53D9\u5973\u5E8F\u5F90\u6055\u92E4\u9664\u50B7\u511F\u52DD\u5320\u5347\u53EC\u54E8\u5546\u5531\u5617\u5968\u59BE\u5A3C\u5BB5\u5C06\u5C0F\u5C11\u5C1A\u5E84\u5E8A\u5EE0\u5F70\u627F\u6284\u62DB\u638C\u6377\u6607\u660C\u662D\u6676\u677E\u68A2\u6A1F\u6A35\u6CBC\u6D88\u6E09\u6E58\u713C\u7126\u7167\u75C7\u7701\u785D\u7901\u7965\u79F0\u7AE0\u7B11\u7CA7\u7D39\u8096\u83D6\u848B\u8549\u885D\u88F3\u8A1F\u8A3C\u8A54\u8A73\u8C61\u8CDE\u91A4\u9266\u937E\u9418\u969C\u9798\u4E0A\u4E08\u4E1E\u4E57\u5197\u5270\u57CE\u5834\u58CC\u5B22\u5E38\u60C5\u64FE\u6761\u6756\u6D44\u72B6\u7573\u7A63\u84B8\u8B72\u91B8\u9320\u5631\u57F4\u98FE"],["9040","\u62ED\u690D\u6B96\u71ED\u7E54\u8077\u8272\u89E6\u98DF\u8755\u8FB1\u5C3B\u4F38\u4FE1\u4FB5\u5507\u5A20\u5BDD\u5BE9\u5FC3\u614E\u632F\u65B0\u664B\u68EE\u699B\u6D78\u6DF1\u7533\u75B9\u771F\u795E\u79E6\u7D33\u81E3\u82AF\u85AA\u89AA\u8A3A\u8EAB\u8F9B\u9032\u91DD\u9707\u4EBA\u4EC1\u5203\u5875\u58EC\u5C0B\u751A\u5C3D\u814E\u8A0A\u8FC5\u9663\u976D\u7B25\u8ACF\u9808\u9162\u56F3\u53A8"],["9080","\u9017\u5439\u5782\u5E25\u63A8\u6C34\u708A\u7761\u7C8B\u7FE0\u8870\u9042\u9154\u9310\u9318\u968F\u745E\u9AC4\u5D07\u5D69\u6570\u67A2\u8DA8\u96DB\u636E\u6749\u6919\u83C5\u9817\u96C0\u88FE\u6F84\u647A\u5BF8\u4E16\u702C\u755D\u662F\u51C4\u5236\u52E2\u59D3\u5F81\u6027\u6210\u653F\u6574\u661F\u6674\u68F2\u6816\u6B63\u6E05\u7272\u751F\u76DB\u7CBE\u8056\u58F0\u88FD\u897F\u8AA0\u8A93\u8ACB\u901D\u9192\u9752\u9759\u6589\u7A0E\u8106\u96BB\u5E2D\u60DC\u621A\u65A5\u6614\u6790\u77F3\u7A4D\u7C4D\u7E3E\u810A\u8CAC\u8D64\u8DE1\u8E5F\u78A9\u5207\u62D9\u63A5\u6442\u6298\u8A2D\u7A83\u7BC0\u8AAC\u96EA\u7D76\u820C\u8749\u4ED9\u5148\u5343\u5360\u5BA3\u5C02\u5C16\u5DDD\u6226\u6247\u64B0\u6813\u6834\u6CC9\u6D45\u6D17\u67D3\u6F5C\u714E\u717D\u65CB\u7A7F\u7BAD\u7DDA"],["9140","\u7E4A\u7FA8\u817A\u821B\u8239\u85A6\u8A6E\u8CCE\u8DF5\u9078\u9077\u92AD\u9291\u9583\u9BAE\u524D\u5584\u6F38\u7136\u5168\u7985\u7E55\u81B3\u7CCE\u564C\u5851\u5CA8\u63AA\u66FE\u66FD\u695A\u72D9\u758F\u758E\u790E\u7956\u79DF\u7C97\u7D20\u7D44\u8607\u8A34\u963B\u9061\u9F20\u50E7\u5275\u53CC\u53E2\u5009\u55AA\u58EE\u594F\u723D\u5B8B\u5C64\u531D\u60E3\u60F3\u635C\u6383\u633F\u63BB"],["9180","\u64CD\u65E9\u66F9\u5DE3\u69CD\u69FD\u6F15\u71E5\u4E89\u75E9\u76F8\u7A93\u7CDF\u7DCF\u7D9C\u8061\u8349\u8358\u846C\u84BC\u85FB\u88C5\u8D70\u9001\u906D\u9397\u971C\u9A12\u50CF\u5897\u618E\u81D3\u8535\u8D08\u9020\u4FC3\u5074\u5247\u5373\u606F\u6349\u675F\u6E2C\u8DB3\u901F\u4FD7\u5C5E\u8CCA\u65CF\u7D9A\u5352\u8896\u5176\u63C3\u5B58\u5B6B\u5C0A\u640D\u6751\u905C\u4ED6\u591A\u592A\u6C70\u8A51\u553E\u5815\u59A5\u60F0\u6253\u67C1\u8235\u6955\u9640\u99C4\u9A28\u4F53\u5806\u5BFE\u8010\u5CB1\u5E2F\u5F85\u6020\u614B\u6234\u66FF\u6CF0\u6EDE\u80CE\u817F\u82D4\u888B\u8CB8\u9000\u902E\u968A\u9EDB\u9BDB\u4EE3\u53F0\u5927\u7B2C\u918D\u984C\u9DF9\u6EDD\u7027\u5353\u5544\u5B85\u6258\u629E\u62D3\u6CA2\u6FEF\u7422\u8A17\u9438\u6FC1\u8AFE\u8338\u51E7\u86F8\u53EA"],["9240","\u53E9\u4F46\u9054\u8FB0\u596A\u8131\u5DFD\u7AEA\u8FBF\u68DA\u8C37\u72F8\u9C48\u6A3D\u8AB0\u4E39\u5358\u5606\u5766\u62C5\u63A2\u65E6\u6B4E\u6DE1\u6E5B\u70AD\u77ED\u7AEF\u7BAA\u7DBB\u803D\u80C6\u86CB\u8A95\u935B\u56E3\u58C7\u5F3E\u65AD\u6696\u6A80\u6BB5\u7537\u8AC7\u5024\u77E5\u5730\u5F1B\u6065\u667A\u6C60\u75F4\u7A1A\u7F6E\u81F4\u8718\u9045\u99B3\u7BC9\u755C\u7AF9\u7B51\u84C4"],["9280","\u9010\u79E9\u7A92\u8336\u5AE1\u7740\u4E2D\u4EF2\u5B99\u5FE0\u62BD\u663C\u67F1\u6CE8\u866B\u8877\u8A3B\u914E\u92F3\u99D0\u6A17\u7026\u732A\u82E7\u8457\u8CAF\u4E01\u5146\u51CB\u558B\u5BF5\u5E16\u5E33\u5E81\u5F14\u5F35\u5F6B\u5FB4\u61F2\u6311\u66A2\u671D\u6F6E\u7252\u753A\u773A\u8074\u8139\u8178\u8776\u8ABF\u8ADC\u8D85\u8DF3\u929A\u9577\u9802\u9CE5\u52C5\u6357\u76F4\u6715\u6C88\u73CD\u8CC3\u93AE\u9673\u6D25\u589C\u690E\u69CC\u8FFD\u939A\u75DB\u901A\u585A\u6802\u63B4\u69FB\u4F43\u6F2C\u67D8\u8FBB\u8526\u7DB4\u9354\u693F\u6F70\u576A\u58F7\u5B2C\u7D2C\u722A\u540A\u91E3\u9DB4\u4EAD\u4F4E\u505C\u5075\u5243\u8C9E\u5448\u5824\u5B9A\u5E1D\u5E95\u5EAD\u5EF7\u5F1F\u608C\u62B5\u633A\u63D0\u68AF\u6C40\u7887\u798E\u7A0B\u7DE0\u8247\u8A02\u8AE6\u8E44\u9013"],["9340","\u90B8\u912D\u91D8\u9F0E\u6CE5\u6458\u64E2\u6575\u6EF4\u7684\u7B1B\u9069\u93D1\u6EBA\u54F2\u5FB9\u64A4\u8F4D\u8FED\u9244\u5178\u586B\u5929\u5C55\u5E97\u6DFB\u7E8F\u751C\u8CBC\u8EE2\u985B\u70B9\u4F1D\u6BBF\u6FB1\u7530\u96FB\u514E\u5410\u5835\u5857\u59AC\u5C60\u5F92\u6597\u675C\u6E21\u767B\u83DF\u8CED\u9014\u90FD\u934D\u7825\u783A\u52AA\u5EA6\u571F\u5974\u6012\u5012\u515A\u51AC"],["9380","\u51CD\u5200\u5510\u5854\u5858\u5957\u5B95\u5CF6\u5D8B\u60BC\u6295\u642D\u6771\u6843\u68BC\u68DF\u76D7\u6DD8\u6E6F\u6D9B\u706F\u71C8\u5F53\u75D8\u7977\u7B49\u7B54\u7B52\u7CD6\u7D71\u5230\u8463\u8569\u85E4\u8A0E\u8B04\u8C46\u8E0F\u9003\u900F\u9419\u9676\u982D\u9A30\u95D8\u50CD\u52D5\u540C\u5802\u5C0E\u61A7\u649E\u6D1E\u77B3\u7AE5\u80F4\u8404\u9053\u9285\u5CE0\u9D07\u533F\u5F97\u5FB3\u6D9C\u7279\u7763\u79BF\u7BE4\u6BD2\u72EC\u8AAD\u6803\u6A61\u51F8\u7A81\u6934\u5C4A\u9CF6\u82EB\u5BC5\u9149\u701E\u5678\u5C6F\u60C7\u6566\u6C8C\u8C5A\u9041\u9813\u5451\u66C7\u920D\u5948\u90A3\u5185\u4E4D\u51EA\u8599\u8B0E\u7058\u637A\u934B\u6962\u99B4\u7E04\u7577\u5357\u6960\u8EDF\u96E3\u6C5D\u4E8C\u5C3C\u5F10\u8FE9\u5302\u8CD1\u8089\u8679\u5EFF\u65E5\u4E73\u5165"],["9440","\u5982\u5C3F\u97EE\u4EFB\u598A\u5FCD\u8A8D\u6FE1\u79B0\u7962\u5BE7\u8471\u732B\u71B1\u5E74\u5FF5\u637B\u649A\u71C3\u7C98\u4E43\u5EFC\u4E4B\u57DC\u56A2\u60A9\u6FC3\u7D0D\u80FD\u8133\u81BF\u8FB2\u8997\u86A4\u5DF4\u628A\u64AD\u8987\u6777\u6CE2\u6D3E\u7436\u7834\u5A46\u7F75\u82AD\u99AC\u4FF3\u5EC3\u62DD\u6392\u6557\u676F\u76C3\u724C\u80CC\u80BA\u8F29\u914D\u500D\u57F9\u5A92\u6885"],["9480","\u6973\u7164\u72FD\u8CB7\u58F2\u8CE0\u966A\u9019\u877F\u79E4\u77E7\u8429\u4F2F\u5265\u535A\u62CD\u67CF\u6CCA\u767D\u7B94\u7C95\u8236\u8584\u8FEB\u66DD\u6F20\u7206\u7E1B\u83AB\u99C1\u9EA6\u51FD\u7BB1\u7872\u7BB8\u8087\u7B48\u6AE8\u5E61\u808C\u7551\u7560\u516B\u9262\u6E8C\u767A\u9197\u9AEA\u4F10\u7F70\u629C\u7B4F\u95A5\u9CE9\u567A\u5859\u86E4\u96BC\u4F34\u5224\u534A\u53CD\u53DB\u5E06\u642C\u6591\u677F\u6C3E\u6C4E\u7248\u72AF\u73ED\u7554\u7E41\u822C\u85E9\u8CA9\u7BC4\u91C6\u7169\u9812\u98EF\u633D\u6669\u756A\u76E4\u78D0\u8543\u86EE\u532A\u5351\u5426\u5983\u5E87\u5F7C\u60B2\u6249\u6279\u62AB\u6590\u6BD4\u6CCC\u75B2\u76AE\u7891\u79D8\u7DCB\u7F77\u80A5\u88AB\u8AB9\u8CBB\u907F\u975E\u98DB\u6A0B\u7C38\u5099\u5C3E\u5FAE\u6787\u6BD8\u7435\u7709\u7F8E"],["9540","\u9F3B\u67CA\u7A17\u5339\u758B\u9AED\u5F66\u819D\u83F1\u8098\u5F3C\u5FC5\u7562\u7B46\u903C\u6867\u59EB\u5A9B\u7D10\u767E\u8B2C\u4FF5\u5F6A\u6A19\u6C37\u6F02\u74E2\u7968\u8868\u8A55\u8C79\u5EDF\u63CF\u75C5\u79D2\u82D7\u9328\u92F2\u849C\u86ED\u9C2D\u54C1\u5F6C\u658C\u6D5C\u7015\u8CA7\u8CD3\u983B\u654F\u74F6\u4E0D\u4ED8\u57E0\u592B\u5A66\u5BCC\u51A8\u5E03\u5E9C\u6016\u6276\u6577"],["9580","\u65A7\u666E\u6D6E\u7236\u7B26\u8150\u819A\u8299\u8B5C\u8CA0\u8CE6\u8D74\u961C\u9644\u4FAE\u64AB\u6B66\u821E\u8461\u856A\u90E8\u5C01\u6953\u98A8\u847A\u8557\u4F0F\u526F\u5FA9\u5E45\u670D\u798F\u8179\u8907\u8986\u6DF5\u5F17\u6255\u6CB8\u4ECF\u7269\u9B92\u5206\u543B\u5674\u58B3\u61A4\u626E\u711A\u596E\u7C89\u7CDE\u7D1B\u96F0\u6587\u805E\u4E19\u4F75\u5175\u5840\u5E63\u5E73\u5F0A\u67C4\u4E26\u853D\u9589\u965B\u7C73\u9801\u50FB\u58C1\u7656\u78A7\u5225\u77A5\u8511\u7B86\u504F\u5909\u7247\u7BC7\u7DE8\u8FBA\u8FD4\u904D\u4FBF\u52C9\u5A29\u5F01\u97AD\u4FDD\u8217\u92EA\u5703\u6355\u6B69\u752B\u88DC\u8F14\u7A42\u52DF\u5893\u6155\u620A\u66AE\u6BCD\u7C3F\u83E9\u5023\u4FF8\u5305\u5446\u5831\u5949\u5B9D\u5CF0\u5CEF\u5D29\u5E96\u62B1\u6367\u653E\u65B9\u670B"],["9640","\u6CD5\u6CE1\u70F9\u7832\u7E2B\u80DE\u82B3\u840C\u84EC\u8702\u8912\u8A2A\u8C4A\u90A6\u92D2\u98FD\u9CF3\u9D6C\u4E4F\u4EA1\u508D\u5256\u574A\u59A8\u5E3D\u5FD8\u5FD9\u623F\u66B4\u671B\u67D0\u68D2\u5192\u7D21\u80AA\u81A8\u8B00\u8C8C\u8CBF\u927E\u9632\u5420\u982C\u5317\u50D5\u535C\u58A8\u64B2\u6734\u7267\u7766\u7A46\u91E6\u52C3\u6CA1\u6B86\u5800\u5E4C\u5954\u672C\u7FFB\u51E1\u76C6"],["9680","\u6469\u78E8\u9B54\u9EBB\u57CB\u59B9\u6627\u679A\u6BCE\u54E9\u69D9\u5E55\u819C\u6795\u9BAA\u67FE\u9C52\u685D\u4EA6\u4FE3\u53C8\u62B9\u672B\u6CAB\u8FC4\u4FAD\u7E6D\u9EBF\u4E07\u6162\u6E80\u6F2B\u8513\u5473\u672A\u9B45\u5DF3\u7B95\u5CAC\u5BC6\u871C\u6E4A\u84D1\u7A14\u8108\u5999\u7C8D\u6C11\u7720\u52D9\u5922\u7121\u725F\u77DB\u9727\u9D61\u690B\u5A7F\u5A18\u51A5\u540D\u547D\u660E\u76DF\u8FF7\u9298\u9CF4\u59EA\u725D\u6EC5\u514D\u68C9\u7DBF\u7DEC\u9762\u9EBA\u6478\u6A21\u8302\u5984\u5B5F\u6BDB\u731B\u76F2\u7DB2\u8017\u8499\u5132\u6728\u9ED9\u76EE\u6762\u52FF\u9905\u5C24\u623B\u7C7E\u8CB0\u554F\u60B6\u7D0B\u9580\u5301\u4E5F\u51B6\u591C\u723A\u8036\u91CE\u5F25\u77E2\u5384\u5F79\u7D04\u85AC\u8A33\u8E8D\u9756\u67F3\u85AE\u9453\u6109\u6108\u6CB9\u7652"],["9740","\u8AED\u8F38\u552F\u4F51\u512A\u52C7\u53CB\u5BA5\u5E7D\u60A0\u6182\u63D6\u6709\u67DA\u6E67\u6D8C\u7336\u7337\u7531\u7950\u88D5\u8A98\u904A\u9091\u90F5\u96C4\u878D\u5915\u4E88\u4F59\u4E0E\u8A89\u8F3F\u9810\u50AD\u5E7C\u5996\u5BB9\u5EB8\u63DA\u63FA\u64C1\u66DC\u694A\u69D8\u6D0B\u6EB6\u7194\u7528\u7AAF\u7F8A\u8000\u8449\u84C9\u8981\u8B21\u8E0A\u9065\u967D\u990A\u617E\u6291\u6B32"],["9780","\u6C83\u6D74\u7FCC\u7FFC\u6DC0\u7F85\u87BA\u88F8\u6765\u83B1\u983C\u96F7\u6D1B\u7D61\u843D\u916A\u4E71\u5375\u5D50\u6B04\u6FEB\u85CD\u862D\u89A7\u5229\u540F\u5C65\u674E\u68A8\u7406\u7483\u75E2\u88CF\u88E1\u91CC\u96E2\u9678\u5F8B\u7387\u7ACB\u844E\u63A0\u7565\u5289\u6D41\u6E9C\u7409\u7559\u786B\u7C92\u9686\u7ADC\u9F8D\u4FB6\u616E\u65C5\u865C\u4E86\u4EAE\u50DA\u4E21\u51CC\u5BEE\u6599\u6881\u6DBC\u731F\u7642\u77AD\u7A1C\u7CE7\u826F\u8AD2\u907C\u91CF\u9675\u9818\u529B\u7DD1\u502B\u5398\u6797\u6DCB\u71D0\u7433\u81E8\u8F2A\u96A3\u9C57\u9E9F\u7460\u5841\u6D99\u7D2F\u985E\u4EE4\u4F36\u4F8B\u51B7\u52B1\u5DBA\u601C\u73B2\u793C\u82D3\u9234\u96B7\u96F6\u970A\u9E97\u9F62\u66A6\u6B74\u5217\u52A3\u70C8\u88C2\u5EC9\u604B\u6190\u6F23\u7149\u7C3E\u7DF4\u806F"],["9840","\u84EE\u9023\u932C\u5442\u9B6F\u6AD3\u7089\u8CC2\u8DEF\u9732\u52B4\u5A41\u5ECA\u5F04\u6717\u697C\u6994\u6D6A\u6F0F\u7262\u72FC\u7BED\u8001\u807E\u874B\u90CE\u516D\u9E93\u7984\u808B\u9332\u8AD6\u502D\u548C\u8A71\u6B6A\u8CC4\u8107\u60D1\u67A0\u9DF2\u4E99\u4E98\u9C10\u8A6B\u85C1\u8568\u6900\u6E7E\u7897\u8155"],["989f","\u5F0C\u4E10\u4E15\u4E2A\u4E31\u4E36\u4E3C\u4E3F\u4E42\u4E56\u4E58\u4E82\u4E85\u8C6B\u4E8A\u8212\u5F0D\u4E8E\u4E9E\u4E9F\u4EA0\u4EA2\u4EB0\u4EB3\u4EB6\u4ECE\u4ECD\u4EC4\u4EC6\u4EC2\u4ED7\u4EDE\u4EED\u4EDF\u4EF7\u4F09\u4F5A\u4F30\u4F5B\u4F5D\u4F57\u4F47\u4F76\u4F88\u4F8F\u4F98\u4F7B\u4F69\u4F70\u4F91\u4F6F\u4F86\u4F96\u5118\u4FD4\u4FDF\u4FCE\u4FD8\u4FDB\u4FD1\u4FDA\u4FD0\u4FE4\u4FE5\u501A\u5028\u5014\u502A\u5025\u5005\u4F1C\u4FF6\u5021\u5029\u502C\u4FFE\u4FEF\u5011\u5006\u5043\u5047\u6703\u5055\u5050\u5048\u505A\u5056\u506C\u5078\u5080\u509A\u5085\u50B4\u50B2"],["9940","\u50C9\u50CA\u50B3\u50C2\u50D6\u50DE\u50E5\u50ED\u50E3\u50EE\u50F9\u50F5\u5109\u5101\u5102\u5116\u5115\u5114\u511A\u5121\u513A\u5137\u513C\u513B\u513F\u5140\u5152\u514C\u5154\u5162\u7AF8\u5169\u516A\u516E\u5180\u5182\u56D8\u518C\u5189\u518F\u5191\u5193\u5195\u5196\u51A4\u51A6\u51A2\u51A9\u51AA\u51AB\u51B3\u51B1\u51B2\u51B0\u51B5\u51BD\u51C5\u51C9\u51DB\u51E0\u8655\u51E9\u51ED"],["9980","\u51F0\u51F5\u51FE\u5204\u520B\u5214\u520E\u5227\u522A\u522E\u5233\u5239\u524F\u5244\u524B\u524C\u525E\u5254\u526A\u5274\u5269\u5273\u527F\u527D\u528D\u5294\u5292\u5271\u5288\u5291\u8FA8\u8FA7\u52AC\u52AD\u52BC\u52B5\u52C1\u52CD\u52D7\u52DE\u52E3\u52E6\u98ED\u52E0\u52F3\u52F5\u52F8\u52F9\u5306\u5308\u7538\u530D\u5310\u530F\u5315\u531A\u5323\u532F\u5331\u5333\u5338\u5340\u5346\u5345\u4E17\u5349\u534D\u51D6\u535E\u5369\u536E\u5918\u537B\u5377\u5382\u5396\u53A0\u53A6\u53A5\u53AE\u53B0\u53B6\u53C3\u7C12\u96D9\u53DF\u66FC\u71EE\u53EE\u53E8\u53ED\u53FA\u5401\u543D\u5440\u542C\u542D\u543C\u542E\u5436\u5429\u541D\u544E\u548F\u5475\u548E\u545F\u5471\u5477\u5470\u5492\u547B\u5480\u5476\u5484\u5490\u5486\u54C7\u54A2\u54B8\u54A5\u54AC\u54C4\u54C8\u54A8"],["9a40","\u54AB\u54C2\u54A4\u54BE\u54BC\u54D8\u54E5\u54E6\u550F\u5514\u54FD\u54EE\u54ED\u54FA\u54E2\u5539\u5540\u5563\u554C\u552E\u555C\u5545\u5556\u5557\u5538\u5533\u555D\u5599\u5580\u54AF\u558A\u559F\u557B\u557E\u5598\u559E\u55AE\u557C\u5583\u55A9\u5587\u55A8\u55DA\u55C5\u55DF\u55C4\u55DC\u55E4\u55D4\u5614\u55F7\u5616\u55FE\u55FD\u561B\u55F9\u564E\u5650\u71DF\u5634\u5636\u5632\u5638"],["9a80","\u566B\u5664\u562F\u566C\u566A\u5686\u5680\u568A\u56A0\u5694\u568F\u56A5\u56AE\u56B6\u56B4\u56C2\u56BC\u56C1\u56C3\u56C0\u56C8\u56CE\u56D1\u56D3\u56D7\u56EE\u56F9\u5700\u56FF\u5704\u5709\u5708\u570B\u570D\u5713\u5718\u5716\u55C7\u571C\u5726\u5737\u5738\u574E\u573B\u5740\u574F\u5769\u57C0\u5788\u5761\u577F\u5789\u5793\u57A0\u57B3\u57A4\u57AA\u57B0\u57C3\u57C6\u57D4\u57D2\u57D3\u580A\u57D6\u57E3\u580B\u5819\u581D\u5872\u5821\u5862\u584B\u5870\u6BC0\u5852\u583D\u5879\u5885\u58B9\u589F\u58AB\u58BA\u58DE\u58BB\u58B8\u58AE\u58C5\u58D3\u58D1\u58D7\u58D9\u58D8\u58E5\u58DC\u58E4\u58DF\u58EF\u58FA\u58F9\u58FB\u58FC\u58FD\u5902\u590A\u5910\u591B\u68A6\u5925\u592C\u592D\u5932\u5938\u593E\u7AD2\u5955\u5950\u594E\u595A\u5958\u5962\u5960\u5967\u596C\u5969"],["9b40","\u5978\u5981\u599D\u4F5E\u4FAB\u59A3\u59B2\u59C6\u59E8\u59DC\u598D\u59D9\u59DA\u5A25\u5A1F\u5A11\u5A1C\u5A09\u5A1A\u5A40\u5A6C\u5A49\u5A35\u5A36\u5A62\u5A6A\u5A9A\u5ABC\u5ABE\u5ACB\u5AC2\u5ABD\u5AE3\u5AD7\u5AE6\u5AE9\u5AD6\u5AFA\u5AFB\u5B0C\u5B0B\u5B16\u5B32\u5AD0\u5B2A\u5B36\u5B3E\u5B43\u5B45\u5B40\u5B51\u5B55\u5B5A\u5B5B\u5B65\u5B69\u5B70\u5B73\u5B75\u5B78\u6588\u5B7A\u5B80"],["9b80","\u5B83\u5BA6\u5BB8\u5BC3\u5BC7\u5BC9\u5BD4\u5BD0\u5BE4\u5BE6\u5BE2\u5BDE\u5BE5\u5BEB\u5BF0\u5BF6\u5BF3\u5C05\u5C07\u5C08\u5C0D\u5C13\u5C20\u5C22\u5C28\u5C38\u5C39\u5C41\u5C46\u5C4E\u5C53\u5C50\u5C4F\u5B71\u5C6C\u5C6E\u4E62\u5C76\u5C79\u5C8C\u5C91\u5C94\u599B\u5CAB\u5CBB\u5CB6\u5CBC\u5CB7\u5CC5\u5CBE\u5CC7\u5CD9\u5CE9\u5CFD\u5CFA\u5CED\u5D8C\u5CEA\u5D0B\u5D15\u5D17\u5D5C\u5D1F\u5D1B\u5D11\u5D14\u5D22\u5D1A\u5D19\u5D18\u5D4C\u5D52\u5D4E\u5D4B\u5D6C\u5D73\u5D76\u5D87\u5D84\u5D82\u5DA2\u5D9D\u5DAC\u5DAE\u5DBD\u5D90\u5DB7\u5DBC\u5DC9\u5DCD\u5DD3\u5DD2\u5DD6\u5DDB\u5DEB\u5DF2\u5DF5\u5E0B\u5E1A\u5E19\u5E11\u5E1B\u5E36\u5E37\u5E44\u5E43\u5E40\u5E4E\u5E57\u5E54\u5E5F\u5E62\u5E64\u5E47\u5E75\u5E76\u5E7A\u9EBC\u5E7F\u5EA0\u5EC1\u5EC2\u5EC8\u5ED0\u5ECF"],["9c40","\u5ED6\u5EE3\u5EDD\u5EDA\u5EDB\u5EE2\u5EE1\u5EE8\u5EE9\u5EEC\u5EF1\u5EF3\u5EF0\u5EF4\u5EF8\u5EFE\u5F03\u5F09\u5F5D\u5F5C\u5F0B\u5F11\u5F16\u5F29\u5F2D\u5F38\u5F41\u5F48\u5F4C\u5F4E\u5F2F\u5F51\u5F56\u5F57\u5F59\u5F61\u5F6D\u5F73\u5F77\u5F83\u5F82\u5F7F\u5F8A\u5F88\u5F91\u5F87\u5F9E\u5F99\u5F98\u5FA0\u5FA8\u5FAD\u5FBC\u5FD6\u5FFB\u5FE4\u5FF8\u5FF1\u5FDD\u60B3\u5FFF\u6021\u6060"],["9c80","\u6019\u6010\u6029\u600E\u6031\u601B\u6015\u602B\u6026\u600F\u603A\u605A\u6041\u606A\u6077\u605F\u604A\u6046\u604D\u6063\u6043\u6064\u6042\u606C\u606B\u6059\u6081\u608D\u60E7\u6083\u609A\u6084\u609B\u6096\u6097\u6092\u60A7\u608B\u60E1\u60B8\u60E0\u60D3\u60B4\u5FF0\u60BD\u60C6\u60B5\u60D8\u614D\u6115\u6106\u60F6\u60F7\u6100\u60F4\u60FA\u6103\u6121\u60FB\u60F1\u610D\u610E\u6147\u613E\u6128\u6127\u614A\u613F\u613C\u612C\u6134\u613D\u6142\u6144\u6173\u6177\u6158\u6159\u615A\u616B\u6174\u616F\u6165\u6171\u615F\u615D\u6153\u6175\u6199\u6196\u6187\u61AC\u6194\u619A\u618A\u6191\u61AB\u61AE\u61CC\u61CA\u61C9\u61F7\u61C8\u61C3\u61C6\u61BA\u61CB\u7F79\u61CD\u61E6\u61E3\u61F6\u61FA\u61F4\u61FF\u61FD\u61FC\u61FE\u6200\u6208\u6209\u620D\u620C\u6214\u621B"],["9d40","\u621E\u6221\u622A\u622E\u6230\u6232\u6233\u6241\u624E\u625E\u6263\u625B\u6260\u6268\u627C\u6282\u6289\u627E\u6292\u6293\u6296\u62D4\u6283\u6294\u62D7\u62D1\u62BB\u62CF\u62FF\u62C6\u64D4\u62C8\u62DC\u62CC\u62CA\u62C2\u62C7\u629B\u62C9\u630C\u62EE\u62F1\u6327\u6302\u6308\u62EF\u62F5\u6350\u633E\u634D\u641C\u634F\u6396\u638E\u6380\u63AB\u6376\u63A3\u638F\u6389\u639F\u63B5\u636B"],["9d80","\u6369\u63BE\u63E9\u63C0\u63C6\u63E3\u63C9\u63D2\u63F6\u63C4\u6416\u6434\u6406\u6413\u6426\u6436\u651D\u6417\u6428\u640F\u6467\u646F\u6476\u644E\u652A\u6495\u6493\u64A5\u64A9\u6488\u64BC\u64DA\u64D2\u64C5\u64C7\u64BB\u64D8\u64C2\u64F1\u64E7\u8209\u64E0\u64E1\u62AC\u64E3\u64EF\u652C\u64F6\u64F4\u64F2\u64FA\u6500\u64FD\u6518\u651C\u6505\u6524\u6523\u652B\u6534\u6535\u6537\u6536\u6538\u754B\u6548\u6556\u6555\u654D\u6558\u655E\u655D\u6572\u6578\u6582\u6583\u8B8A\u659B\u659F\u65AB\u65B7\u65C3\u65C6\u65C1\u65C4\u65CC\u65D2\u65DB\u65D9\u65E0\u65E1\u65F1\u6772\u660A\u6603\u65FB\u6773\u6635\u6636\u6634\u661C\u664F\u6644\u6649\u6641\u665E\u665D\u6664\u6667\u6668\u665F\u6662\u6670\u6683\u6688\u668E\u6689\u6684\u6698\u669D\u66C1\u66B9\u66C9\u66BE\u66BC"],["9e40","\u66C4\u66B8\u66D6\u66DA\u66E0\u663F\u66E6\u66E9\u66F0\u66F5\u66F7\u670F\u6716\u671E\u6726\u6727\u9738\u672E\u673F\u6736\u6741\u6738\u6737\u6746\u675E\u6760\u6759\u6763\u6764\u6789\u6770\u67A9\u677C\u676A\u678C\u678B\u67A6\u67A1\u6785\u67B7\u67EF\u67B4\u67EC\u67B3\u67E9\u67B8\u67E4\u67DE\u67DD\u67E2\u67EE\u67B9\u67CE\u67C6\u67E7\u6A9C\u681E\u6846\u6829\u6840\u684D\u6832\u684E"],["9e80","\u68B3\u682B\u6859\u6863\u6877\u687F\u689F\u688F\u68AD\u6894\u689D\u689B\u6883\u6AAE\u68B9\u6874\u68B5\u68A0\u68BA\u690F\u688D\u687E\u6901\u68CA\u6908\u68D8\u6922\u6926\u68E1\u690C\u68CD\u68D4\u68E7\u68D5\u6936\u6912\u6904\u68D7\u68E3\u6925\u68F9\u68E0\u68EF\u6928\u692A\u691A\u6923\u6921\u68C6\u6979\u6977\u695C\u6978\u696B\u6954\u697E\u696E\u6939\u6974\u693D\u6959\u6930\u6961\u695E\u695D\u6981\u696A\u69B2\u69AE\u69D0\u69BF\u69C1\u69D3\u69BE\u69CE\u5BE8\u69CA\u69DD\u69BB\u69C3\u69A7\u6A2E\u6991\u69A0\u699C\u6995\u69B4\u69DE\u69E8\u6A02\u6A1B\u69FF\u6B0A\u69F9\u69F2\u69E7\u6A05\u69B1\u6A1E\u69ED\u6A14\u69EB\u6A0A\u6A12\u6AC1\u6A23\u6A13\u6A44\u6A0C\u6A72\u6A36\u6A78\u6A47\u6A62\u6A59\u6A66\u6A48\u6A38\u6A22\u6A90\u6A8D\u6AA0\u6A84\u6AA2\u6AA3"],["9f40","\u6A97\u8617\u6ABB\u6AC3\u6AC2\u6AB8\u6AB3\u6AAC\u6ADE\u6AD1\u6ADF\u6AAA\u6ADA\u6AEA\u6AFB\u6B05\u8616\u6AFA\u6B12\u6B16\u9B31\u6B1F\u6B38\u6B37\u76DC\u6B39\u98EE\u6B47\u6B43\u6B49\u6B50\u6B59\u6B54\u6B5B\u6B5F\u6B61\u6B78\u6B79\u6B7F\u6B80\u6B84\u6B83\u6B8D\u6B98\u6B95\u6B9E\u6BA4\u6BAA\u6BAB\u6BAF\u6BB2\u6BB1\u6BB3\u6BB7\u6BBC\u6BC6\u6BCB\u6BD3\u6BDF\u6BEC\u6BEB\u6BF3\u6BEF"],["9f80","\u9EBE\u6C08\u6C13\u6C14\u6C1B\u6C24\u6C23\u6C5E\u6C55\u6C62\u6C6A\u6C82\u6C8D\u6C9A\u6C81\u6C9B\u6C7E\u6C68\u6C73\u6C92\u6C90\u6CC4\u6CF1\u6CD3\u6CBD\u6CD7\u6CC5\u6CDD\u6CAE\u6CB1\u6CBE\u6CBA\u6CDB\u6CEF\u6CD9\u6CEA\u6D1F\u884D\u6D36\u6D2B\u6D3D\u6D38\u6D19\u6D35\u6D33\u6D12\u6D0C\u6D63\u6D93\u6D64\u6D5A\u6D79\u6D59\u6D8E\u6D95\u6FE4\u6D85\u6DF9\u6E15\u6E0A\u6DB5\u6DC7\u6DE6\u6DB8\u6DC6\u6DEC\u6DDE\u6DCC\u6DE8\u6DD2\u6DC5\u6DFA\u6DD9\u6DE4\u6DD5\u6DEA\u6DEE\u6E2D\u6E6E\u6E2E\u6E19\u6E72\u6E5F\u6E3E\u6E23\u6E6B\u6E2B\u6E76\u6E4D\u6E1F\u6E43\u6E3A\u6E4E\u6E24\u6EFF\u6E1D\u6E38\u6E82\u6EAA\u6E98\u6EC9\u6EB7\u6ED3\u6EBD\u6EAF\u6EC4\u6EB2\u6ED4\u6ED5\u6E8F\u6EA5\u6EC2\u6E9F\u6F41\u6F11\u704C\u6EEC\u6EF8\u6EFE\u6F3F\u6EF2\u6F31\u6EEF\u6F32\u6ECC"],["e040","\u6F3E\u6F13\u6EF7\u6F86\u6F7A\u6F78\u6F81\u6F80\u6F6F\u6F5B\u6FF3\u6F6D\u6F82\u6F7C\u6F58\u6F8E\u6F91\u6FC2\u6F66\u6FB3\u6FA3\u6FA1\u6FA4\u6FB9\u6FC6\u6FAA\u6FDF\u6FD5\u6FEC\u6FD4\u6FD8\u6FF1\u6FEE\u6FDB\u7009\u700B\u6FFA\u7011\u7001\u700F\u6FFE\u701B\u701A\u6F74\u701D\u7018\u701F\u7030\u703E\u7032\u7051\u7063\u7099\u7092\u70AF\u70F1\u70AC\u70B8\u70B3\u70AE\u70DF\u70CB\u70DD"],["e080","\u70D9\u7109\u70FD\u711C\u7119\u7165\u7155\u7188\u7166\u7162\u714C\u7156\u716C\u718F\u71FB\u7184\u7195\u71A8\u71AC\u71D7\u71B9\u71BE\u71D2\u71C9\u71D4\u71CE\u71E0\u71EC\u71E7\u71F5\u71FC\u71F9\u71FF\u720D\u7210\u721B\u7228\u722D\u722C\u7230\u7232\u723B\u723C\u723F\u7240\u7246\u724B\u7258\u7274\u727E\u7282\u7281\u7287\u7292\u7296\u72A2\u72A7\u72B9\u72B2\u72C3\u72C6\u72C4\u72CE\u72D2\u72E2\u72E0\u72E1\u72F9\u72F7\u500F\u7317\u730A\u731C\u7316\u731D\u7334\u732F\u7329\u7325\u733E\u734E\u734F\u9ED8\u7357\u736A\u7368\u7370\u7378\u7375\u737B\u737A\u73C8\u73B3\u73CE\u73BB\u73C0\u73E5\u73EE\u73DE\u74A2\u7405\u746F\u7425\u73F8\u7432\u743A\u7455\u743F\u745F\u7459\u7441\u745C\u7469\u7470\u7463\u746A\u7476\u747E\u748B\u749E\u74A7\u74CA\u74CF\u74D4\u73F1"],["e140","\u74E0\u74E3\u74E7\u74E9\u74EE\u74F2\u74F0\u74F1\u74F8\u74F7\u7504\u7503\u7505\u750C\u750E\u750D\u7515\u7513\u751E\u7526\u752C\u753C\u7544\u754D\u754A\u7549\u755B\u7546\u755A\u7569\u7564\u7567\u756B\u756D\u7578\u7576\u7586\u7587\u7574\u758A\u7589\u7582\u7594\u759A\u759D\u75A5\u75A3\u75C2\u75B3\u75C3\u75B5\u75BD\u75B8\u75BC\u75B1\u75CD\u75CA\u75D2\u75D9\u75E3\u75DE\u75FE\u75FF"],["e180","\u75FC\u7601\u75F0\u75FA\u75F2\u75F3\u760B\u760D\u7609\u761F\u7627\u7620\u7621\u7622\u7624\u7634\u7630\u763B\u7647\u7648\u7646\u765C\u7658\u7661\u7662\u7668\u7669\u766A\u7667\u766C\u7670\u7672\u7676\u7678\u767C\u7680\u7683\u7688\u768B\u768E\u7696\u7693\u7699\u769A\u76B0\u76B4\u76B8\u76B9\u76BA\u76C2\u76CD\u76D6\u76D2\u76DE\u76E1\u76E5\u76E7\u76EA\u862F\u76FB\u7708\u7707\u7704\u7729\u7724\u771E\u7725\u7726\u771B\u7737\u7738\u7747\u775A\u7768\u776B\u775B\u7765\u777F\u777E\u7779\u778E\u778B\u7791\u77A0\u779E\u77B0\u77B6\u77B9\u77BF\u77BC\u77BD\u77BB\u77C7\u77CD\u77D7\u77DA\u77DC\u77E3\u77EE\u77FC\u780C\u7812\u7926\u7820\u792A\u7845\u788E\u7874\u7886\u787C\u789A\u788C\u78A3\u78B5\u78AA\u78AF\u78D1\u78C6\u78CB\u78D4\u78BE\u78BC\u78C5\u78CA\u78EC"],["e240","\u78E7\u78DA\u78FD\u78F4\u7907\u7912\u7911\u7919\u792C\u792B\u7940\u7960\u7957\u795F\u795A\u7955\u7953\u797A\u797F\u798A\u799D\u79A7\u9F4B\u79AA\u79AE\u79B3\u79B9\u79BA\u79C9\u79D5\u79E7\u79EC\u79E1\u79E3\u7A08\u7A0D\u7A18\u7A19\u7A20\u7A1F\u7980\u7A31\u7A3B\u7A3E\u7A37\u7A43\u7A57\u7A49\u7A61\u7A62\u7A69\u9F9D\u7A70\u7A79\u7A7D\u7A88\u7A97\u7A95\u7A98\u7A96\u7AA9\u7AC8\u7AB0"],["e280","\u7AB6\u7AC5\u7AC4\u7ABF\u9083\u7AC7\u7ACA\u7ACD\u7ACF\u7AD5\u7AD3\u7AD9\u7ADA\u7ADD\u7AE1\u7AE2\u7AE6\u7AED\u7AF0\u7B02\u7B0F\u7B0A\u7B06\u7B33\u7B18\u7B19\u7B1E\u7B35\u7B28\u7B36\u7B50\u7B7A\u7B04\u7B4D\u7B0B\u7B4C\u7B45\u7B75\u7B65\u7B74\u7B67\u7B70\u7B71\u7B6C\u7B6E\u7B9D\u7B98\u7B9F\u7B8D\u7B9C\u7B9A\u7B8B\u7B92\u7B8F\u7B5D\u7B99\u7BCB\u7BC1\u7BCC\u7BCF\u7BB4\u7BC6\u7BDD\u7BE9\u7C11\u7C14\u7BE6\u7BE5\u7C60\u7C00\u7C07\u7C13\u7BF3\u7BF7\u7C17\u7C0D\u7BF6\u7C23\u7C27\u7C2A\u7C1F\u7C37\u7C2B\u7C3D\u7C4C\u7C43\u7C54\u7C4F\u7C40\u7C50\u7C58\u7C5F\u7C64\u7C56\u7C65\u7C6C\u7C75\u7C83\u7C90\u7CA4\u7CAD\u7CA2\u7CAB\u7CA1\u7CA8\u7CB3\u7CB2\u7CB1\u7CAE\u7CB9\u7CBD\u7CC0\u7CC5\u7CC2\u7CD8\u7CD2\u7CDC\u7CE2\u9B3B\u7CEF\u7CF2\u7CF4\u7CF6\u7CFA\u7D06"],["e340","\u7D02\u7D1C\u7D15\u7D0A\u7D45\u7D4B\u7D2E\u7D32\u7D3F\u7D35\u7D46\u7D73\u7D56\u7D4E\u7D72\u7D68\u7D6E\u7D4F\u7D63\u7D93\u7D89\u7D5B\u7D8F\u7D7D\u7D9B\u7DBA\u7DAE\u7DA3\u7DB5\u7DC7\u7DBD\u7DAB\u7E3D\u7DA2\u7DAF\u7DDC\u7DB8\u7D9F\u7DB0\u7DD8\u7DDD\u7DE4\u7DDE\u7DFB\u7DF2\u7DE1\u7E05\u7E0A\u7E23\u7E21\u7E12\u7E31\u7E1F\u7E09\u7E0B\u7E22\u7E46\u7E66\u7E3B\u7E35\u7E39\u7E43\u7E37"],["e380","\u7E32\u7E3A\u7E67\u7E5D\u7E56\u7E5E\u7E59\u7E5A\u7E79\u7E6A\u7E69\u7E7C\u7E7B\u7E83\u7DD5\u7E7D\u8FAE\u7E7F\u7E88\u7E89\u7E8C\u7E92\u7E90\u7E93\u7E94\u7E96\u7E8E\u7E9B\u7E9C\u7F38\u7F3A\u7F45\u7F4C\u7F4D\u7F4E\u7F50\u7F51\u7F55\u7F54\u7F58\u7F5F\u7F60\u7F68\u7F69\u7F67\u7F78\u7F82\u7F86\u7F83\u7F88\u7F87\u7F8C\u7F94\u7F9E\u7F9D\u7F9A\u7FA3\u7FAF\u7FB2\u7FB9\u7FAE\u7FB6\u7FB8\u8B71\u7FC5\u7FC6\u7FCA\u7FD5\u7FD4\u7FE1\u7FE6\u7FE9\u7FF3\u7FF9\u98DC\u8006\u8004\u800B\u8012\u8018\u8019\u801C\u8021\u8028\u803F\u803B\u804A\u8046\u8052\u8058\u805A\u805F\u8062\u8068\u8073\u8072\u8070\u8076\u8079\u807D\u807F\u8084\u8086\u8085\u809B\u8093\u809A\u80AD\u5190\u80AC\u80DB\u80E5\u80D9\u80DD\u80C4\u80DA\u80D6\u8109\u80EF\u80F1\u811B\u8129\u8123\u812F\u814B"],["e440","\u968B\u8146\u813E\u8153\u8151\u80FC\u8171\u816E\u8165\u8166\u8174\u8183\u8188\u818A\u8180\u8182\u81A0\u8195\u81A4\u81A3\u815F\u8193\u81A9\u81B0\u81B5\u81BE\u81B8\u81BD\u81C0\u81C2\u81BA\u81C9\u81CD\u81D1\u81D9\u81D8\u81C8\u81DA\u81DF\u81E0\u81E7\u81FA\u81FB\u81FE\u8201\u8202\u8205\u8207\u820A\u820D\u8210\u8216\u8229\u822B\u8238\u8233\u8240\u8259\u8258\u825D\u825A\u825F\u8264"],["e480","\u8262\u8268\u826A\u826B\u822E\u8271\u8277\u8278\u827E\u828D\u8292\u82AB\u829F\u82BB\u82AC\u82E1\u82E3\u82DF\u82D2\u82F4\u82F3\u82FA\u8393\u8303\u82FB\u82F9\u82DE\u8306\u82DC\u8309\u82D9\u8335\u8334\u8316\u8332\u8331\u8340\u8339\u8350\u8345\u832F\u832B\u8317\u8318\u8385\u839A\u83AA\u839F\u83A2\u8396\u8323\u838E\u8387\u838A\u837C\u83B5\u8373\u8375\u83A0\u8389\u83A8\u83F4\u8413\u83EB\u83CE\u83FD\u8403\u83D8\u840B\u83C1\u83F7\u8407\u83E0\u83F2\u840D\u8422\u8420\u83BD\u8438\u8506\u83FB\u846D\u842A\u843C\u855A\u8484\u8477\u846B\u84AD\u846E\u8482\u8469\u8446\u842C\u846F\u8479\u8435\u84CA\u8462\u84B9\u84BF\u849F\u84D9\u84CD\u84BB\u84DA\u84D0\u84C1\u84C6\u84D6\u84A1\u8521\u84FF\u84F4\u8517\u8518\u852C\u851F\u8515\u8514\u84FC\u8540\u8563\u8558\u8548"],["e540","\u8541\u8602\u854B\u8555\u8580\u85A4\u8588\u8591\u858A\u85A8\u856D\u8594\u859B\u85EA\u8587\u859C\u8577\u857E\u8590\u85C9\u85BA\u85CF\u85B9\u85D0\u85D5\u85DD\u85E5\u85DC\u85F9\u860A\u8613\u860B\u85FE\u85FA\u8606\u8622\u861A\u8630\u863F\u864D\u4E55\u8654\u865F\u8667\u8671\u8693\u86A3\u86A9\u86AA\u868B\u868C\u86B6\u86AF\u86C4\u86C6\u86B0\u86C9\u8823\u86AB\u86D4\u86DE\u86E9\u86EC"],["e580","\u86DF\u86DB\u86EF\u8712\u8706\u8708\u8700\u8703\u86FB\u8711\u8709\u870D\u86F9\u870A\u8734\u873F\u8737\u873B\u8725\u8729\u871A\u8760\u875F\u8778\u874C\u874E\u8774\u8757\u8768\u876E\u8759\u8753\u8763\u876A\u8805\u87A2\u879F\u8782\u87AF\u87CB\u87BD\u87C0\u87D0\u96D6\u87AB\u87C4\u87B3\u87C7\u87C6\u87BB\u87EF\u87F2\u87E0\u880F\u880D\u87FE\u87F6\u87F7\u880E\u87D2\u8811\u8816\u8815\u8822\u8821\u8831\u8836\u8839\u8827\u883B\u8844\u8842\u8852\u8859\u885E\u8862\u886B\u8881\u887E\u889E\u8875\u887D\u88B5\u8872\u8882\u8897\u8892\u88AE\u8899\u88A2\u888D\u88A4\u88B0\u88BF\u88B1\u88C3\u88C4\u88D4\u88D8\u88D9\u88DD\u88F9\u8902\u88FC\u88F4\u88E8\u88F2\u8904\u890C\u890A\u8913\u8943\u891E\u8925\u892A\u892B\u8941\u8944\u893B\u8936\u8938\u894C\u891D\u8960\u895E"],["e640","\u8966\u8964\u896D\u896A\u896F\u8974\u8977\u897E\u8983\u8988\u898A\u8993\u8998\u89A1\u89A9\u89A6\u89AC\u89AF\u89B2\u89BA\u89BD\u89BF\u89C0\u89DA\u89DC\u89DD\u89E7\u89F4\u89F8\u8A03\u8A16\u8A10\u8A0C\u8A1B\u8A1D\u8A25\u8A36\u8A41\u8A5B\u8A52\u8A46\u8A48\u8A7C\u8A6D\u8A6C\u8A62\u8A85\u8A82\u8A84\u8AA8\u8AA1\u8A91\u8AA5\u8AA6\u8A9A\u8AA3\u8AC4\u8ACD\u8AC2\u8ADA\u8AEB\u8AF3\u8AE7"],["e680","\u8AE4\u8AF1\u8B14\u8AE0\u8AE2\u8AF7\u8ADE\u8ADB\u8B0C\u8B07\u8B1A\u8AE1\u8B16\u8B10\u8B17\u8B20\u8B33\u97AB\u8B26\u8B2B\u8B3E\u8B28\u8B41\u8B4C\u8B4F\u8B4E\u8B49\u8B56\u8B5B\u8B5A\u8B6B\u8B5F\u8B6C\u8B6F\u8B74\u8B7D\u8B80\u8B8C\u8B8E\u8B92\u8B93\u8B96\u8B99\u8B9A\u8C3A\u8C41\u8C3F\u8C48\u8C4C\u8C4E\u8C50\u8C55\u8C62\u8C6C\u8C78\u8C7A\u8C82\u8C89\u8C85\u8C8A\u8C8D\u8C8E\u8C94\u8C7C\u8C98\u621D\u8CAD\u8CAA\u8CBD\u8CB2\u8CB3\u8CAE\u8CB6\u8CC8\u8CC1\u8CE4\u8CE3\u8CDA\u8CFD\u8CFA\u8CFB\u8D04\u8D05\u8D0A\u8D07\u8D0F\u8D0D\u8D10\u9F4E\u8D13\u8CCD\u8D14\u8D16\u8D67\u8D6D\u8D71\u8D73\u8D81\u8D99\u8DC2\u8DBE\u8DBA\u8DCF\u8DDA\u8DD6\u8DCC\u8DDB\u8DCB\u8DEA\u8DEB\u8DDF\u8DE3\u8DFC\u8E08\u8E09\u8DFF\u8E1D\u8E1E\u8E10\u8E1F\u8E42\u8E35\u8E30\u8E34\u8E4A"],["e740","\u8E47\u8E49\u8E4C\u8E50\u8E48\u8E59\u8E64\u8E60\u8E2A\u8E63\u8E55\u8E76\u8E72\u8E7C\u8E81\u8E87\u8E85\u8E84\u8E8B\u8E8A\u8E93\u8E91\u8E94\u8E99\u8EAA\u8EA1\u8EAC\u8EB0\u8EC6\u8EB1\u8EBE\u8EC5\u8EC8\u8ECB\u8EDB\u8EE3\u8EFC\u8EFB\u8EEB\u8EFE\u8F0A\u8F05\u8F15\u8F12\u8F19\u8F13\u8F1C\u8F1F\u8F1B\u8F0C\u8F26\u8F33\u8F3B\u8F39\u8F45\u8F42\u8F3E\u8F4C\u8F49\u8F46\u8F4E\u8F57\u8F5C"],["e780","\u8F62\u8F63\u8F64\u8F9C\u8F9F\u8FA3\u8FAD\u8FAF\u8FB7\u8FDA\u8FE5\u8FE2\u8FEA\u8FEF\u9087\u8FF4\u9005\u8FF9\u8FFA\u9011\u9015\u9021\u900D\u901E\u9016\u900B\u9027\u9036\u9035\u9039\u8FF8\u904F\u9050\u9051\u9052\u900E\u9049\u903E\u9056\u9058\u905E\u9068\u906F\u9076\u96A8\u9072\u9082\u907D\u9081\u9080\u908A\u9089\u908F\u90A8\u90AF\u90B1\u90B5\u90E2\u90E4\u6248\u90DB\u9102\u9112\u9119\u9132\u9130\u914A\u9156\u9158\u9163\u9165\u9169\u9173\u9172\u918B\u9189\u9182\u91A2\u91AB\u91AF\u91AA\u91B5\u91B4\u91BA\u91C0\u91C1\u91C9\u91CB\u91D0\u91D6\u91DF\u91E1\u91DB\u91FC\u91F5\u91F6\u921E\u91FF\u9214\u922C\u9215\u9211\u925E\u9257\u9245\u9249\u9264\u9248\u9295\u923F\u924B\u9250\u929C\u9296\u9293\u929B\u925A\u92CF\u92B9\u92B7\u92E9\u930F\u92FA\u9344\u932E"],["e840","\u9319\u9322\u931A\u9323\u933A\u9335\u933B\u935C\u9360\u937C\u936E\u9356\u93B0\u93AC\u93AD\u9394\u93B9\u93D6\u93D7\u93E8\u93E5\u93D8\u93C3\u93DD\u93D0\u93C8\u93E4\u941A\u9414\u9413\u9403\u9407\u9410\u9436\u942B\u9435\u9421\u943A\u9441\u9452\u9444\u945B\u9460\u9462\u945E\u946A\u9229\u9470\u9475\u9477\u947D\u945A\u947C\u947E\u9481\u947F\u9582\u9587\u958A\u9594\u9596\u9598\u9599"],["e880","\u95A0\u95A8\u95A7\u95AD\u95BC\u95BB\u95B9\u95BE\u95CA\u6FF6\u95C3\u95CD\u95CC\u95D5\u95D4\u95D6\u95DC\u95E1\u95E5\u95E2\u9621\u9628\u962E\u962F\u9642\u964C\u964F\u964B\u9677\u965C\u965E\u965D\u965F\u9666\u9672\u966C\u968D\u9698\u9695\u9697\u96AA\u96A7\u96B1\u96B2\u96B0\u96B4\u96B6\u96B8\u96B9\u96CE\u96CB\u96C9\u96CD\u894D\u96DC\u970D\u96D5\u96F9\u9704\u9706\u9708\u9713\u970E\u9711\u970F\u9716\u9719\u9724\u972A\u9730\u9739\u973D\u973E\u9744\u9746\u9748\u9742\u9749\u975C\u9760\u9764\u9766\u9768\u52D2\u976B\u9771\u9779\u9785\u977C\u9781\u977A\u9786\u978B\u978F\u9790\u979C\u97A8\u97A6\u97A3\u97B3\u97B4\u97C3\u97C6\u97C8\u97CB\u97DC\u97ED\u9F4F\u97F2\u7ADF\u97F6\u97F5\u980F\u980C\u9838\u9824\u9821\u9837\u983D\u9846\u984F\u984B\u986B\u986F\u9870"],["e940","\u9871\u9874\u9873\u98AA\u98AF\u98B1\u98B6\u98C4\u98C3\u98C6\u98E9\u98EB\u9903\u9909\u9912\u9914\u9918\u9921\u991D\u991E\u9924\u9920\u992C\u992E\u993D\u993E\u9942\u9949\u9945\u9950\u994B\u9951\u9952\u994C\u9955\u9997\u9998\u99A5\u99AD\u99AE\u99BC\u99DF\u99DB\u99DD\u99D8\u99D1\u99ED\u99EE\u99F1\u99F2\u99FB\u99F8\u9A01\u9A0F\u9A05\u99E2\u9A19\u9A2B\u9A37\u9A45\u9A42\u9A40\u9A43"],["e980","\u9A3E\u9A55\u9A4D\u9A5B\u9A57\u9A5F\u9A62\u9A65\u9A64\u9A69\u9A6B\u9A6A\u9AAD\u9AB0\u9ABC\u9AC0\u9ACF\u9AD1\u9AD3\u9AD4\u9ADE\u9ADF\u9AE2\u9AE3\u9AE6\u9AEF\u9AEB\u9AEE\u9AF4\u9AF1\u9AF7\u9AFB\u9B06\u9B18\u9B1A\u9B1F\u9B22\u9B23\u9B25\u9B27\u9B28\u9B29\u9B2A\u9B2E\u9B2F\u9B32\u9B44\u9B43\u9B4F\u9B4D\u9B4E\u9B51\u9B58\u9B74\u9B93\u9B83\u9B91\u9B96\u9B97\u9B9F\u9BA0\u9BA8\u9BB4\u9BC0\u9BCA\u9BB9\u9BC6\u9BCF\u9BD1\u9BD2\u9BE3\u9BE2\u9BE4\u9BD4\u9BE1\u9C3A\u9BF2\u9BF1\u9BF0\u9C15\u9C14\u9C09\u9C13\u9C0C\u9C06\u9C08\u9C12\u9C0A\u9C04\u9C2E\u9C1B\u9C25\u9C24\u9C21\u9C30\u9C47\u9C32\u9C46\u9C3E\u9C5A\u9C60\u9C67\u9C76\u9C78\u9CE7\u9CEC\u9CF0\u9D09\u9D08\u9CEB\u9D03\u9D06\u9D2A\u9D26\u9DAF\u9D23\u9D1F\u9D44\u9D15\u9D12\u9D41\u9D3F\u9D3E\u9D46\u9D48"],["ea40","\u9D5D\u9D5E\u9D64\u9D51\u9D50\u9D59\u9D72\u9D89\u9D87\u9DAB\u9D6F\u9D7A\u9D9A\u9DA4\u9DA9\u9DB2\u9DC4\u9DC1\u9DBB\u9DB8\u9DBA\u9DC6\u9DCF\u9DC2\u9DD9\u9DD3\u9DF8\u9DE6\u9DED\u9DEF\u9DFD\u9E1A\u9E1B\u9E1E\u9E75\u9E79\u9E7D\u9E81\u9E88\u9E8B\u9E8C\u9E92\u9E95\u9E91\u9E9D\u9EA5\u9EA9\u9EB8\u9EAA\u9EAD\u9761\u9ECC\u9ECE\u9ECF\u9ED0\u9ED4\u9EDC\u9EDE\u9EDD\u9EE0\u9EE5\u9EE8\u9EEF"],["ea80","\u9EF4\u9EF6\u9EF7\u9EF9\u9EFB\u9EFC\u9EFD\u9F07\u9F08\u76B7\u9F15\u9F21\u9F2C\u9F3E\u9F4A\u9F52\u9F54\u9F63\u9F5F\u9F60\u9F61\u9F66\u9F67\u9F6C\u9F6A\u9F77\u9F72\u9F76\u9F95\u9F9C\u9FA0\u582F\u69C7\u9059\u7464\u51DC\u7199"],["ed40","\u7E8A\u891C\u9348\u9288\u84DC\u4FC9\u70BB\u6631\u68C8\u92F9\u66FB\u5F45\u4E28\u4EE1\u4EFC\u4F00\u4F03\u4F39\u4F56\u4F92\u4F8A\u4F9A\u4F94\u4FCD\u5040\u5022\u4FFF\u501E\u5046\u5070\u5042\u5094\u50F4\u50D8\u514A\u5164\u519D\u51BE\u51EC\u5215\u529C\u52A6\u52C0\u52DB\u5300\u5307\u5324\u5372\u5393\u53B2\u53DD\uFA0E\u549C\u548A\u54A9\u54FF\u5586\u5759\u5765\u57AC\u57C8\u57C7\uFA0F"],["ed80","\uFA10\u589E\u58B2\u590B\u5953\u595B\u595D\u5963\u59A4\u59BA\u5B56\u5BC0\u752F\u5BD8\u5BEC\u5C1E\u5CA6\u5CBA\u5CF5\u5D27\u5D53\uFA11\u5D42\u5D6D\u5DB8\u5DB9\u5DD0\u5F21\u5F34\u5F67\u5FB7\u5FDE\u605D\u6085\u608A\u60DE\u60D5\u6120\u60F2\u6111\u6137\u6130\u6198\u6213\u62A6\u63F5\u6460\u649D\u64CE\u654E\u6600\u6615\u663B\u6609\u662E\u661E\u6624\u6665\u6657\u6659\uFA12\u6673\u6699\u66A0\u66B2\u66BF\u66FA\u670E\uF929\u6766\u67BB\u6852\u67C0\u6801\u6844\u68CF\uFA13\u6968\uFA14\u6998\u69E2\u6A30\u6A6B\u6A46\u6A73\u6A7E\u6AE2\u6AE4\u6BD6\u6C3F\u6C5C\u6C86\u6C6F\u6CDA\u6D04\u6D87\u6D6F\u6D96\u6DAC\u6DCF\u6DF8\u6DF2\u6DFC\u6E39\u6E5C\u6E27\u6E3C\u6EBF\u6F88\u6FB5\u6FF5\u7005\u7007\u7028\u7085\u70AB\u710F\u7104\u715C\u7146\u7147\uFA15\u71C1\u71FE\u72B1"],["ee40","\u72BE\u7324\uFA16\u7377\u73BD\u73C9\u73D6\u73E3\u73D2\u7407\u73F5\u7426\u742A\u7429\u742E\u7462\u7489\u749F\u7501\u756F\u7682\u769C\u769E\u769B\u76A6\uFA17\u7746\u52AF\u7821\u784E\u7864\u787A\u7930\uFA18\uFA19\uFA1A\u7994\uFA1B\u799B\u7AD1\u7AE7\uFA1C\u7AEB\u7B9E\uFA1D\u7D48\u7D5C\u7DB7\u7DA0\u7DD6\u7E52\u7F47\u7FA1\uFA1E\u8301\u8362\u837F\u83C7\u83F6\u8448\u84B4\u8553\u8559"],["ee80","\u856B\uFA1F\u85B0\uFA20\uFA21\u8807\u88F5\u8A12\u8A37\u8A79\u8AA7\u8ABE\u8ADF\uFA22\u8AF6\u8B53\u8B7F\u8CF0\u8CF4\u8D12\u8D76\uFA23\u8ECF\uFA24\uFA25\u9067\u90DE\uFA26\u9115\u9127\u91DA\u91D7\u91DE\u91ED\u91EE\u91E4\u91E5\u9206\u9210\u920A\u923A\u9240\u923C\u924E\u9259\u9251\u9239\u9267\u92A7\u9277\u9278\u92E7\u92D7\u92D9\u92D0\uFA27\u92D5\u92E0\u92D3\u9325\u9321\u92FB\uFA28\u931E\u92FF\u931D\u9302\u9370\u9357\u93A4\u93C6\u93DE\u93F8\u9431\u9445\u9448\u9592\uF9DC\uFA29\u969D\u96AF\u9733\u973B\u9743\u974D\u974F\u9751\u9755\u9857\u9865\uFA2A\uFA2B\u9927\uFA2C\u999E\u9A4E\u9AD9\u9ADC\u9B75\u9B72\u9B8F\u9BB1\u9BBB\u9C00\u9D70\u9D6B\uFA2D\u9E19\u9ED1"],["eeef","\u2170",9,"\uFFE2\uFFE4\uFF07\uFF02"],["f040","\uE000",62],["f080","\uE03F",124],["f140","\uE0BC",62],["f180","\uE0FB",124],["f240","\uE178",62],["f280","\uE1B7",124],["f340","\uE234",62],["f380","\uE273",124],["f440","\uE2F0",62],["f480","\uE32F",124],["f540","\uE3AC",62],["f580","\uE3EB",124],["f640","\uE468",62],["f680","\uE4A7",124],["f740","\uE524",62],["f780","\uE563",124],["f840","\uE5E0",62],["f880","\uE61F",124],["f940","\uE69C"],["fa40","\u2170",9,"\u2160",9,"\uFFE2\uFFE4\uFF07\uFF02\u3231\u2116\u2121\u2235\u7E8A\u891C\u9348\u9288\u84DC\u4FC9\u70BB\u6631\u68C8\u92F9\u66FB\u5F45\u4E28\u4EE1\u4EFC\u4F00\u4F03\u4F39\u4F56\u4F92\u4F8A\u4F9A\u4F94\u4FCD\u5040\u5022\u4FFF\u501E\u5046\u5070\u5042\u5094\u50F4\u50D8\u514A"],["fa80","\u5164\u519D\u51BE\u51EC\u5215\u529C\u52A6\u52C0\u52DB\u5300\u5307\u5324\u5372\u5393\u53B2\u53DD\uFA0E\u549C\u548A\u54A9\u54FF\u5586\u5759\u5765\u57AC\u57C8\u57C7\uFA0F\uFA10\u589E\u58B2\u590B\u5953\u595B\u595D\u5963\u59A4\u59BA\u5B56\u5BC0\u752F\u5BD8\u5BEC\u5C1E\u5CA6\u5CBA\u5CF5\u5D27\u5D53\uFA11\u5D42\u5D6D\u5DB8\u5DB9\u5DD0\u5F21\u5F34\u5F67\u5FB7\u5FDE\u605D\u6085\u608A\u60DE\u60D5\u6120\u60F2\u6111\u6137\u6130\u6198\u6213\u62A6\u63F5\u6460\u649D\u64CE\u654E\u6600\u6615\u663B\u6609\u662E\u661E\u6624\u6665\u6657\u6659\uFA12\u6673\u6699\u66A0\u66B2\u66BF\u66FA\u670E\uF929\u6766\u67BB\u6852\u67C0\u6801\u6844\u68CF\uFA13\u6968\uFA14\u6998\u69E2\u6A30\u6A6B\u6A46\u6A73\u6A7E\u6AE2\u6AE4\u6BD6\u6C3F\u6C5C\u6C86\u6C6F\u6CDA\u6D04\u6D87\u6D6F"],["fb40","\u6D96\u6DAC\u6DCF\u6DF8\u6DF2\u6DFC\u6E39\u6E5C\u6E27\u6E3C\u6EBF\u6F88\u6FB5\u6FF5\u7005\u7007\u7028\u7085\u70AB\u710F\u7104\u715C\u7146\u7147\uFA15\u71C1\u71FE\u72B1\u72BE\u7324\uFA16\u7377\u73BD\u73C9\u73D6\u73E3\u73D2\u7407\u73F5\u7426\u742A\u7429\u742E\u7462\u7489\u749F\u7501\u756F\u7682\u769C\u769E\u769B\u76A6\uFA17\u7746\u52AF\u7821\u784E\u7864\u787A\u7930\uFA18\uFA19"],["fb80","\uFA1A\u7994\uFA1B\u799B\u7AD1\u7AE7\uFA1C\u7AEB\u7B9E\uFA1D\u7D48\u7D5C\u7DB7\u7DA0\u7DD6\u7E52\u7F47\u7FA1\uFA1E\u8301\u8362\u837F\u83C7\u83F6\u8448\u84B4\u8553\u8559\u856B\uFA1F\u85B0\uFA20\uFA21\u8807\u88F5\u8A12\u8A37\u8A79\u8AA7\u8ABE\u8ADF\uFA22\u8AF6\u8B53\u8B7F\u8CF0\u8CF4\u8D12\u8D76\uFA23\u8ECF\uFA24\uFA25\u9067\u90DE\uFA26\u9115\u9127\u91DA\u91D7\u91DE\u91ED\u91EE\u91E4\u91E5\u9206\u9210\u920A\u923A\u9240\u923C\u924E\u9259\u9251\u9239\u9267\u92A7\u9277\u9278\u92E7\u92D7\u92D9\u92D0\uFA27\u92D5\u92E0\u92D3\u9325\u9321\u92FB\uFA28\u931E\u92FF\u931D\u9302\u9370\u9357\u93A4\u93C6\u93DE\u93F8\u9431\u9445\u9448\u9592\uF9DC\uFA29\u969D\u96AF\u9733\u973B\u9743\u974D\u974F\u9751\u9755\u9857\u9865\uFA2A\uFA2B\u9927\uFA2C\u999E\u9A4E\u9AD9"],["fc40","\u9ADC\u9B75\u9B72\u9B8F\u9BB1\u9BBB\u9C00\u9D70\u9D6B\uFA2D\u9E19\u9ED1"]]});var XN=T(($Ie,yX)=>{yX.exports=[["0","\0",127],["8ea1","\uFF61",62],["a1a1","\u3000\u3001\u3002\uFF0C\uFF0E\u30FB\uFF1A\uFF1B\uFF1F\uFF01\u309B\u309C\xB4\uFF40\xA8\uFF3E\uFFE3\uFF3F\u30FD\u30FE\u309D\u309E\u3003\u4EDD\u3005\u3006\u3007\u30FC\u2015\u2010\uFF0F\uFF3C\uFF5E\u2225\uFF5C\u2026\u2025\u2018\u2019\u201C\u201D\uFF08\uFF09\u3014\u3015\uFF3B\uFF3D\uFF5B\uFF5D\u3008",9,"\uFF0B\uFF0D\xB1\xD7\xF7\uFF1D\u2260\uFF1C\uFF1E\u2266\u2267\u221E\u2234\u2642\u2640\xB0\u2032\u2033\u2103\uFFE5\uFF04\uFFE0\uFFE1\uFF05\uFF03\uFF06\uFF0A\uFF20\xA7\u2606\u2605\u25CB\u25CF\u25CE\u25C7"],["a2a1","\u25C6\u25A1\u25A0\u25B3\u25B2\u25BD\u25BC\u203B\u3012\u2192\u2190\u2191\u2193\u3013"],["a2ba","\u2208\u220B\u2286\u2287\u2282\u2283\u222A\u2229"],["a2ca","\u2227\u2228\uFFE2\u21D2\u21D4\u2200\u2203"],["a2dc","\u2220\u22A5\u2312\u2202\u2207\u2261\u2252\u226A\u226B\u221A\u223D\u221D\u2235\u222B\u222C"],["a2f2","\u212B\u2030\u266F\u266D\u266A\u2020\u2021\xB6"],["a2fe","\u25EF"],["a3b0","\uFF10",9],["a3c1","\uFF21",25],["a3e1","\uFF41",25],["a4a1","\u3041",82],["a5a1","\u30A1",85],["a6a1","\u0391",16,"\u03A3",6],["a6c1","\u03B1",16,"\u03C3",6],["a7a1","\u0410",5,"\u0401\u0416",25],["a7d1","\u0430",5,"\u0451\u0436",25],["a8a1","\u2500\u2502\u250C\u2510\u2518\u2514\u251C\u252C\u2524\u2534\u253C\u2501\u2503\u250F\u2513\u251B\u2517\u2523\u2533\u252B\u253B\u254B\u2520\u252F\u2528\u2537\u253F\u251D\u2530\u2525\u2538\u2542"],["ada1","\u2460",19,"\u2160",9],["adc0","\u3349\u3314\u3322\u334D\u3318\u3327\u3303\u3336\u3351\u3357\u330D\u3326\u3323\u332B\u334A\u333B\u339C\u339D\u339E\u338E\u338F\u33C4\u33A1"],["addf","\u337B\u301D\u301F\u2116\u33CD\u2121\u32A4",4,"\u3231\u3232\u3239\u337E\u337D\u337C\u2252\u2261\u222B\u222E\u2211\u221A\u22A5\u2220\u221F\u22BF\u2235\u2229\u222A"],["b0a1","\u4E9C\u5516\u5A03\u963F\u54C0\u611B\u6328\u59F6\u9022\u8475\u831C\u7A50\u60AA\u63E1\u6E25\u65ED\u8466\u82A6\u9BF5\u6893\u5727\u65A1\u6271\u5B9B\u59D0\u867B\u98F4\u7D62\u7DBE\u9B8E\u6216\u7C9F\u88B7\u5B89\u5EB5\u6309\u6697\u6848\u95C7\u978D\u674F\u4EE5\u4F0A\u4F4D\u4F9D\u5049\u56F2\u5937\u59D4\u5A01\u5C09\u60DF\u610F\u6170\u6613\u6905\u70BA\u754F\u7570\u79FB\u7DAD\u7DEF\u80C3\u840E\u8863\u8B02\u9055\u907A\u533B\u4E95\u4EA5\u57DF\u80B2\u90C1\u78EF\u4E00\u58F1\u6EA2\u9038\u7A32\u8328\u828B\u9C2F\u5141\u5370\u54BD\u54E1\u56E0\u59FB\u5F15\u98F2\u6DEB\u80E4\u852D"],["b1a1","\u9662\u9670\u96A0\u97FB\u540B\u53F3\u5B87\u70CF\u7FBD\u8FC2\u96E8\u536F\u9D5C\u7ABA\u4E11\u7893\u81FC\u6E26\u5618\u5504\u6B1D\u851A\u9C3B\u59E5\u53A9\u6D66\u74DC\u958F\u5642\u4E91\u904B\u96F2\u834F\u990C\u53E1\u55B6\u5B30\u5F71\u6620\u66F3\u6804\u6C38\u6CF3\u6D29\u745B\u76C8\u7A4E\u9834\u82F1\u885B\u8A60\u92ED\u6DB2\u75AB\u76CA\u99C5\u60A6\u8B01\u8D8A\u95B2\u698E\u53AD\u5186\u5712\u5830\u5944\u5BB4\u5EF6\u6028\u63A9\u63F4\u6CBF\u6F14\u708E\u7114\u7159\u71D5\u733F\u7E01\u8276\u82D1\u8597\u9060\u925B\u9D1B\u5869\u65BC\u6C5A\u7525\u51F9\u592E\u5965\u5F80\u5FDC"],["b2a1","\u62BC\u65FA\u6A2A\u6B27\u6BB4\u738B\u7FC1\u8956\u9D2C\u9D0E\u9EC4\u5CA1\u6C96\u837B\u5104\u5C4B\u61B6\u81C6\u6876\u7261\u4E59\u4FFA\u5378\u6069\u6E29\u7A4F\u97F3\u4E0B\u5316\u4EEE\u4F55\u4F3D\u4FA1\u4F73\u52A0\u53EF\u5609\u590F\u5AC1\u5BB6\u5BE1\u79D1\u6687\u679C\u67B6\u6B4C\u6CB3\u706B\u73C2\u798D\u79BE\u7A3C\u7B87\u82B1\u82DB\u8304\u8377\u83EF\u83D3\u8766\u8AB2\u5629\u8CA8\u8FE6\u904E\u971E\u868A\u4FC4\u5CE8\u6211\u7259\u753B\u81E5\u82BD\u86FE\u8CC0\u96C5\u9913\u99D5\u4ECB\u4F1A\u89E3\u56DE\u584A\u58CA\u5EFB\u5FEB\u602A\u6094\u6062\u61D0\u6212\u62D0\u6539"],["b3a1","\u9B41\u6666\u68B0\u6D77\u7070\u754C\u7686\u7D75\u82A5\u87F9\u958B\u968E\u8C9D\u51F1\u52BE\u5916\u54B3\u5BB3\u5D16\u6168\u6982\u6DAF\u788D\u84CB\u8857\u8A72\u93A7\u9AB8\u6D6C\u99A8\u86D9\u57A3\u67FF\u86CE\u920E\u5283\u5687\u5404\u5ED3\u62E1\u64B9\u683C\u6838\u6BBB\u7372\u78BA\u7A6B\u899A\u89D2\u8D6B\u8F03\u90ED\u95A3\u9694\u9769\u5B66\u5CB3\u697D\u984D\u984E\u639B\u7B20\u6A2B\u6A7F\u68B6\u9C0D\u6F5F\u5272\u559D\u6070\u62EC\u6D3B\u6E07\u6ED1\u845B\u8910\u8F44\u4E14\u9C39\u53F6\u691B\u6A3A\u9784\u682A\u515C\u7AC3\u84B2\u91DC\u938C\u565B\u9D28\u6822\u8305\u8431"],["b4a1","\u7CA5\u5208\u82C5\u74E6\u4E7E\u4F83\u51A0\u5BD2\u520A\u52D8\u52E7\u5DFB\u559A\u582A\u59E6\u5B8C\u5B98\u5BDB\u5E72\u5E79\u60A3\u611F\u6163\u61BE\u63DB\u6562\u67D1\u6853\u68FA\u6B3E\u6B53\u6C57\u6F22\u6F97\u6F45\u74B0\u7518\u76E3\u770B\u7AFF\u7BA1\u7C21\u7DE9\u7F36\u7FF0\u809D\u8266\u839E\u89B3\u8ACC\u8CAB\u9084\u9451\u9593\u9591\u95A2\u9665\u97D3\u9928\u8218\u4E38\u542B\u5CB8\u5DCC\u73A9\u764C\u773C\u5CA9\u7FEB\u8D0B\u96C1\u9811\u9854\u9858\u4F01\u4F0E\u5371\u559C\u5668\u57FA\u5947\u5B09\u5BC4\u5C90\u5E0C\u5E7E\u5FCC\u63EE\u673A\u65D7\u65E2\u671F\u68CB\u68C4"],["b5a1","\u6A5F\u5E30\u6BC5\u6C17\u6C7D\u757F\u7948\u5B63\u7A00\u7D00\u5FBD\u898F\u8A18\u8CB4\u8D77\u8ECC\u8F1D\u98E2\u9A0E\u9B3C\u4E80\u507D\u5100\u5993\u5B9C\u622F\u6280\u64EC\u6B3A\u72A0\u7591\u7947\u7FA9\u87FB\u8ABC\u8B70\u63AC\u83CA\u97A0\u5409\u5403\u55AB\u6854\u6A58\u8A70\u7827\u6775\u9ECD\u5374\u5BA2\u811A\u8650\u9006\u4E18\u4E45\u4EC7\u4F11\u53CA\u5438\u5BAE\u5F13\u6025\u6551\u673D\u6C42\u6C72\u6CE3\u7078\u7403\u7A76\u7AAE\u7B08\u7D1A\u7CFE\u7D66\u65E7\u725B\u53BB\u5C45\u5DE8\u62D2\u62E0\u6319\u6E20\u865A\u8A31\u8DDD\u92F8\u6F01\u79A6\u9B5A\u4EA8\u4EAB\u4EAC"],["b6a1","\u4F9B\u4FA0\u50D1\u5147\u7AF6\u5171\u51F6\u5354\u5321\u537F\u53EB\u55AC\u5883\u5CE1\u5F37\u5F4A\u602F\u6050\u606D\u631F\u6559\u6A4B\u6CC1\u72C2\u72ED\u77EF\u80F8\u8105\u8208\u854E\u90F7\u93E1\u97FF\u9957\u9A5A\u4EF0\u51DD\u5C2D\u6681\u696D\u5C40\u66F2\u6975\u7389\u6850\u7C81\u50C5\u52E4\u5747\u5DFE\u9326\u65A4\u6B23\u6B3D\u7434\u7981\u79BD\u7B4B\u7DCA\u82B9\u83CC\u887F\u895F\u8B39\u8FD1\u91D1\u541F\u9280\u4E5D\u5036\u53E5\u533A\u72D7\u7396\u77E9\u82E6\u8EAF\u99C6\u99C8\u99D2\u5177\u611A\u865E\u55B0\u7A7A\u5076\u5BD3\u9047\u9685\u4E32\u6ADB\u91E7\u5C51\u5C48"],["b7a1","\u6398\u7A9F\u6C93\u9774\u8F61\u7AAA\u718A\u9688\u7C82\u6817\u7E70\u6851\u936C\u52F2\u541B\u85AB\u8A13\u7FA4\u8ECD\u90E1\u5366\u8888\u7941\u4FC2\u50BE\u5211\u5144\u5553\u572D\u73EA\u578B\u5951\u5F62\u5F84\u6075\u6176\u6167\u61A9\u63B2\u643A\u656C\u666F\u6842\u6E13\u7566\u7A3D\u7CFB\u7D4C\u7D99\u7E4B\u7F6B\u830E\u834A\u86CD\u8A08\u8A63\u8B66\u8EFD\u981A\u9D8F\u82B8\u8FCE\u9BE8\u5287\u621F\u6483\u6FC0\u9699\u6841\u5091\u6B20\u6C7A\u6F54\u7A74\u7D50\u8840\u8A23\u6708\u4EF6\u5039\u5026\u5065\u517C\u5238\u5263\u55A7\u570F\u5805\u5ACC\u5EFA\u61B2\u61F8\u62F3\u6372"],["b8a1","\u691C\u6A29\u727D\u72AC\u732E\u7814\u786F\u7D79\u770C\u80A9\u898B\u8B19\u8CE2\u8ED2\u9063\u9375\u967A\u9855\u9A13\u9E78\u5143\u539F\u53B3\u5E7B\u5F26\u6E1B\u6E90\u7384\u73FE\u7D43\u8237\u8A00\u8AFA\u9650\u4E4E\u500B\u53E4\u547C\u56FA\u59D1\u5B64\u5DF1\u5EAB\u5F27\u6238\u6545\u67AF\u6E56\u72D0\u7CCA\u88B4\u80A1\u80E1\u83F0\u864E\u8A87\u8DE8\u9237\u96C7\u9867\u9F13\u4E94\u4E92\u4F0D\u5348\u5449\u543E\u5A2F\u5F8C\u5FA1\u609F\u68A7\u6A8E\u745A\u7881\u8A9E\u8AA4\u8B77\u9190\u4E5E\u9BC9\u4EA4\u4F7C\u4FAF\u5019\u5016\u5149\u516C\u529F\u52B9\u52FE\u539A\u53E3\u5411"],["b9a1","\u540E\u5589\u5751\u57A2\u597D\u5B54\u5B5D\u5B8F\u5DE5\u5DE7\u5DF7\u5E78\u5E83\u5E9A\u5EB7\u5F18\u6052\u614C\u6297\u62D8\u63A7\u653B\u6602\u6643\u66F4\u676D\u6821\u6897\u69CB\u6C5F\u6D2A\u6D69\u6E2F\u6E9D\u7532\u7687\u786C\u7A3F\u7CE0\u7D05\u7D18\u7D5E\u7DB1\u8015\u8003\u80AF\u80B1\u8154\u818F\u822A\u8352\u884C\u8861\u8B1B\u8CA2\u8CFC\u90CA\u9175\u9271\u783F\u92FC\u95A4\u964D\u9805\u9999\u9AD8\u9D3B\u525B\u52AB\u53F7\u5408\u58D5\u62F7\u6FE0\u8C6A\u8F5F\u9EB9\u514B\u523B\u544A\u56FD\u7A40\u9177\u9D60\u9ED2\u7344\u6F09\u8170\u7511\u5FFD\u60DA\u9AA8\u72DB\u8FBC"],["baa1","\u6B64\u9803\u4ECA\u56F0\u5764\u58BE\u5A5A\u6068\u61C7\u660F\u6606\u6839\u68B1\u6DF7\u75D5\u7D3A\u826E\u9B42\u4E9B\u4F50\u53C9\u5506\u5D6F\u5DE6\u5DEE\u67FB\u6C99\u7473\u7802\u8A50\u9396\u88DF\u5750\u5EA7\u632B\u50B5\u50AC\u518D\u6700\u54C9\u585E\u59BB\u5BB0\u5F69\u624D\u63A1\u683D\u6B73\u6E08\u707D\u91C7\u7280\u7815\u7826\u796D\u658E\u7D30\u83DC\u88C1\u8F09\u969B\u5264\u5728\u6750\u7F6A\u8CA1\u51B4\u5742\u962A\u583A\u698A\u80B4\u54B2\u5D0E\u57FC\u7895\u9DFA\u4F5C\u524A\u548B\u643E\u6628\u6714\u67F5\u7A84\u7B56\u7D22\u932F\u685C\u9BAD\u7B39\u5319\u518A\u5237"],["bba1","\u5BDF\u62F6\u64AE\u64E6\u672D\u6BBA\u85A9\u96D1\u7690\u9BD6\u634C\u9306\u9BAB\u76BF\u6652\u4E09\u5098\u53C2\u5C71\u60E8\u6492\u6563\u685F\u71E6\u73CA\u7523\u7B97\u7E82\u8695\u8B83\u8CDB\u9178\u9910\u65AC\u66AB\u6B8B\u4ED5\u4ED4\u4F3A\u4F7F\u523A\u53F8\u53F2\u55E3\u56DB\u58EB\u59CB\u59C9\u59FF\u5B50\u5C4D\u5E02\u5E2B\u5FD7\u601D\u6307\u652F\u5B5C\u65AF\u65BD\u65E8\u679D\u6B62\u6B7B\u6C0F\u7345\u7949\u79C1\u7CF8\u7D19\u7D2B\u80A2\u8102\u81F3\u8996\u8A5E\u8A69\u8A66\u8A8C\u8AEE\u8CC7\u8CDC\u96CC\u98FC\u6B6F\u4E8B\u4F3C\u4F8D\u5150\u5B57\u5BFA\u6148\u6301\u6642"],["bca1","\u6B21\u6ECB\u6CBB\u723E\u74BD\u75D4\u78C1\u793A\u800C\u8033\u81EA\u8494\u8F9E\u6C50\u9E7F\u5F0F\u8B58\u9D2B\u7AFA\u8EF8\u5B8D\u96EB\u4E03\u53F1\u57F7\u5931\u5AC9\u5BA4\u6089\u6E7F\u6F06\u75BE\u8CEA\u5B9F\u8500\u7BE0\u5072\u67F4\u829D\u5C61\u854A\u7E1E\u820E\u5199\u5C04\u6368\u8D66\u659C\u716E\u793E\u7D17\u8005\u8B1D\u8ECA\u906E\u86C7\u90AA\u501F\u52FA\u5C3A\u6753\u707C\u7235\u914C\u91C8\u932B\u82E5\u5BC2\u5F31\u60F9\u4E3B\u53D6\u5B88\u624B\u6731\u6B8A\u72E9\u73E0\u7A2E\u816B\u8DA3\u9152\u9996\u5112\u53D7\u546A\u5BFF\u6388\u6A39\u7DAC\u9700\u56DA\u53CE\u5468"],["bda1","\u5B97\u5C31\u5DDE\u4FEE\u6101\u62FE\u6D32\u79C0\u79CB\u7D42\u7E4D\u7FD2\u81ED\u821F\u8490\u8846\u8972\u8B90\u8E74\u8F2F\u9031\u914B\u916C\u96C6\u919C\u4EC0\u4F4F\u5145\u5341\u5F93\u620E\u67D4\u6C41\u6E0B\u7363\u7E26\u91CD\u9283\u53D4\u5919\u5BBF\u6DD1\u795D\u7E2E\u7C9B\u587E\u719F\u51FA\u8853\u8FF0\u4FCA\u5CFB\u6625\u77AC\u7AE3\u821C\u99FF\u51C6\u5FAA\u65EC\u696F\u6B89\u6DF3\u6E96\u6F64\u76FE\u7D14\u5DE1\u9075\u9187\u9806\u51E6\u521D\u6240\u6691\u66D9\u6E1A\u5EB6\u7DD2\u7F72\u66F8\u85AF\u85F7\u8AF8\u52A9\u53D9\u5973\u5E8F\u5F90\u6055\u92E4\u9664\u50B7\u511F"],["bea1","\u52DD\u5320\u5347\u53EC\u54E8\u5546\u5531\u5617\u5968\u59BE\u5A3C\u5BB5\u5C06\u5C0F\u5C11\u5C1A\u5E84\u5E8A\u5EE0\u5F70\u627F\u6284\u62DB\u638C\u6377\u6607\u660C\u662D\u6676\u677E\u68A2\u6A1F\u6A35\u6CBC\u6D88\u6E09\u6E58\u713C\u7126\u7167\u75C7\u7701\u785D\u7901\u7965\u79F0\u7AE0\u7B11\u7CA7\u7D39\u8096\u83D6\u848B\u8549\u885D\u88F3\u8A1F\u8A3C\u8A54\u8A73\u8C61\u8CDE\u91A4\u9266\u937E\u9418\u969C\u9798\u4E0A\u4E08\u4E1E\u4E57\u5197\u5270\u57CE\u5834\u58CC\u5B22\u5E38\u60C5\u64FE\u6761\u6756\u6D44\u72B6\u7573\u7A63\u84B8\u8B72\u91B8\u9320\u5631\u57F4\u98FE"],["bfa1","\u62ED\u690D\u6B96\u71ED\u7E54\u8077\u8272\u89E6\u98DF\u8755\u8FB1\u5C3B\u4F38\u4FE1\u4FB5\u5507\u5A20\u5BDD\u5BE9\u5FC3\u614E\u632F\u65B0\u664B\u68EE\u699B\u6D78\u6DF1\u7533\u75B9\u771F\u795E\u79E6\u7D33\u81E3\u82AF\u85AA\u89AA\u8A3A\u8EAB\u8F9B\u9032\u91DD\u9707\u4EBA\u4EC1\u5203\u5875\u58EC\u5C0B\u751A\u5C3D\u814E\u8A0A\u8FC5\u9663\u976D\u7B25\u8ACF\u9808\u9162\u56F3\u53A8\u9017\u5439\u5782\u5E25\u63A8\u6C34\u708A\u7761\u7C8B\u7FE0\u8870\u9042\u9154\u9310\u9318\u968F\u745E\u9AC4\u5D07\u5D69\u6570\u67A2\u8DA8\u96DB\u636E\u6749\u6919\u83C5\u9817\u96C0\u88FE"],["c0a1","\u6F84\u647A\u5BF8\u4E16\u702C\u755D\u662F\u51C4\u5236\u52E2\u59D3\u5F81\u6027\u6210\u653F\u6574\u661F\u6674\u68F2\u6816\u6B63\u6E05\u7272\u751F\u76DB\u7CBE\u8056\u58F0\u88FD\u897F\u8AA0\u8A93\u8ACB\u901D\u9192\u9752\u9759\u6589\u7A0E\u8106\u96BB\u5E2D\u60DC\u621A\u65A5\u6614\u6790\u77F3\u7A4D\u7C4D\u7E3E\u810A\u8CAC\u8D64\u8DE1\u8E5F\u78A9\u5207\u62D9\u63A5\u6442\u6298\u8A2D\u7A83\u7BC0\u8AAC\u96EA\u7D76\u820C\u8749\u4ED9\u5148\u5343\u5360\u5BA3\u5C02\u5C16\u5DDD\u6226\u6247\u64B0\u6813\u6834\u6CC9\u6D45\u6D17\u67D3\u6F5C\u714E\u717D\u65CB\u7A7F\u7BAD\u7DDA"],["c1a1","\u7E4A\u7FA8\u817A\u821B\u8239\u85A6\u8A6E\u8CCE\u8DF5\u9078\u9077\u92AD\u9291\u9583\u9BAE\u524D\u5584\u6F38\u7136\u5168\u7985\u7E55\u81B3\u7CCE\u564C\u5851\u5CA8\u63AA\u66FE\u66FD\u695A\u72D9\u758F\u758E\u790E\u7956\u79DF\u7C97\u7D20\u7D44\u8607\u8A34\u963B\u9061\u9F20\u50E7\u5275\u53CC\u53E2\u5009\u55AA\u58EE\u594F\u723D\u5B8B\u5C64\u531D\u60E3\u60F3\u635C\u6383\u633F\u63BB\u64CD\u65E9\u66F9\u5DE3\u69CD\u69FD\u6F15\u71E5\u4E89\u75E9\u76F8\u7A93\u7CDF\u7DCF\u7D9C\u8061\u8349\u8358\u846C\u84BC\u85FB\u88C5\u8D70\u9001\u906D\u9397\u971C\u9A12\u50CF\u5897\u618E"],["c2a1","\u81D3\u8535\u8D08\u9020\u4FC3\u5074\u5247\u5373\u606F\u6349\u675F\u6E2C\u8DB3\u901F\u4FD7\u5C5E\u8CCA\u65CF\u7D9A\u5352\u8896\u5176\u63C3\u5B58\u5B6B\u5C0A\u640D\u6751\u905C\u4ED6\u591A\u592A\u6C70\u8A51\u553E\u5815\u59A5\u60F0\u6253\u67C1\u8235\u6955\u9640\u99C4\u9A28\u4F53\u5806\u5BFE\u8010\u5CB1\u5E2F\u5F85\u6020\u614B\u6234\u66FF\u6CF0\u6EDE\u80CE\u817F\u82D4\u888B\u8CB8\u9000\u902E\u968A\u9EDB\u9BDB\u4EE3\u53F0\u5927\u7B2C\u918D\u984C\u9DF9\u6EDD\u7027\u5353\u5544\u5B85\u6258\u629E\u62D3\u6CA2\u6FEF\u7422\u8A17\u9438\u6FC1\u8AFE\u8338\u51E7\u86F8\u53EA"],["c3a1","\u53E9\u4F46\u9054\u8FB0\u596A\u8131\u5DFD\u7AEA\u8FBF\u68DA\u8C37\u72F8\u9C48\u6A3D\u8AB0\u4E39\u5358\u5606\u5766\u62C5\u63A2\u65E6\u6B4E\u6DE1\u6E5B\u70AD\u77ED\u7AEF\u7BAA\u7DBB\u803D\u80C6\u86CB\u8A95\u935B\u56E3\u58C7\u5F3E\u65AD\u6696\u6A80\u6BB5\u7537\u8AC7\u5024\u77E5\u5730\u5F1B\u6065\u667A\u6C60\u75F4\u7A1A\u7F6E\u81F4\u8718\u9045\u99B3\u7BC9\u755C\u7AF9\u7B51\u84C4\u9010\u79E9\u7A92\u8336\u5AE1\u7740\u4E2D\u4EF2\u5B99\u5FE0\u62BD\u663C\u67F1\u6CE8\u866B\u8877\u8A3B\u914E\u92F3\u99D0\u6A17\u7026\u732A\u82E7\u8457\u8CAF\u4E01\u5146\u51CB\u558B\u5BF5"],["c4a1","\u5E16\u5E33\u5E81\u5F14\u5F35\u5F6B\u5FB4\u61F2\u6311\u66A2\u671D\u6F6E\u7252\u753A\u773A\u8074\u8139\u8178\u8776\u8ABF\u8ADC\u8D85\u8DF3\u929A\u9577\u9802\u9CE5\u52C5\u6357\u76F4\u6715\u6C88\u73CD\u8CC3\u93AE\u9673\u6D25\u589C\u690E\u69CC\u8FFD\u939A\u75DB\u901A\u585A\u6802\u63B4\u69FB\u4F43\u6F2C\u67D8\u8FBB\u8526\u7DB4\u9354\u693F\u6F70\u576A\u58F7\u5B2C\u7D2C\u722A\u540A\u91E3\u9DB4\u4EAD\u4F4E\u505C\u5075\u5243\u8C9E\u5448\u5824\u5B9A\u5E1D\u5E95\u5EAD\u5EF7\u5F1F\u608C\u62B5\u633A\u63D0\u68AF\u6C40\u7887\u798E\u7A0B\u7DE0\u8247\u8A02\u8AE6\u8E44\u9013"],["c5a1","\u90B8\u912D\u91D8\u9F0E\u6CE5\u6458\u64E2\u6575\u6EF4\u7684\u7B1B\u9069\u93D1\u6EBA\u54F2\u5FB9\u64A4\u8F4D\u8FED\u9244\u5178\u586B\u5929\u5C55\u5E97\u6DFB\u7E8F\u751C\u8CBC\u8EE2\u985B\u70B9\u4F1D\u6BBF\u6FB1\u7530\u96FB\u514E\u5410\u5835\u5857\u59AC\u5C60\u5F92\u6597\u675C\u6E21\u767B\u83DF\u8CED\u9014\u90FD\u934D\u7825\u783A\u52AA\u5EA6\u571F\u5974\u6012\u5012\u515A\u51AC\u51CD\u5200\u5510\u5854\u5858\u5957\u5B95\u5CF6\u5D8B\u60BC\u6295\u642D\u6771\u6843\u68BC\u68DF\u76D7\u6DD8\u6E6F\u6D9B\u706F\u71C8\u5F53\u75D8\u7977\u7B49\u7B54\u7B52\u7CD6\u7D71\u5230"],["c6a1","\u8463\u8569\u85E4\u8A0E\u8B04\u8C46\u8E0F\u9003\u900F\u9419\u9676\u982D\u9A30\u95D8\u50CD\u52D5\u540C\u5802\u5C0E\u61A7\u649E\u6D1E\u77B3\u7AE5\u80F4\u8404\u9053\u9285\u5CE0\u9D07\u533F\u5F97\u5FB3\u6D9C\u7279\u7763\u79BF\u7BE4\u6BD2\u72EC\u8AAD\u6803\u6A61\u51F8\u7A81\u6934\u5C4A\u9CF6\u82EB\u5BC5\u9149\u701E\u5678\u5C6F\u60C7\u6566\u6C8C\u8C5A\u9041\u9813\u5451\u66C7\u920D\u5948\u90A3\u5185\u4E4D\u51EA\u8599\u8B0E\u7058\u637A\u934B\u6962\u99B4\u7E04\u7577\u5357\u6960\u8EDF\u96E3\u6C5D\u4E8C\u5C3C\u5F10\u8FE9\u5302\u8CD1\u8089\u8679\u5EFF\u65E5\u4E73\u5165"],["c7a1","\u5982\u5C3F\u97EE\u4EFB\u598A\u5FCD\u8A8D\u6FE1\u79B0\u7962\u5BE7\u8471\u732B\u71B1\u5E74\u5FF5\u637B\u649A\u71C3\u7C98\u4E43\u5EFC\u4E4B\u57DC\u56A2\u60A9\u6FC3\u7D0D\u80FD\u8133\u81BF\u8FB2\u8997\u86A4\u5DF4\u628A\u64AD\u8987\u6777\u6CE2\u6D3E\u7436\u7834\u5A46\u7F75\u82AD\u99AC\u4FF3\u5EC3\u62DD\u6392\u6557\u676F\u76C3\u724C\u80CC\u80BA\u8F29\u914D\u500D\u57F9\u5A92\u6885\u6973\u7164\u72FD\u8CB7\u58F2\u8CE0\u966A\u9019\u877F\u79E4\u77E7\u8429\u4F2F\u5265\u535A\u62CD\u67CF\u6CCA\u767D\u7B94\u7C95\u8236\u8584\u8FEB\u66DD\u6F20\u7206\u7E1B\u83AB\u99C1\u9EA6"],["c8a1","\u51FD\u7BB1\u7872\u7BB8\u8087\u7B48\u6AE8\u5E61\u808C\u7551\u7560\u516B\u9262\u6E8C\u767A\u9197\u9AEA\u4F10\u7F70\u629C\u7B4F\u95A5\u9CE9\u567A\u5859\u86E4\u96BC\u4F34\u5224\u534A\u53CD\u53DB\u5E06\u642C\u6591\u677F\u6C3E\u6C4E\u7248\u72AF\u73ED\u7554\u7E41\u822C\u85E9\u8CA9\u7BC4\u91C6\u7169\u9812\u98EF\u633D\u6669\u756A\u76E4\u78D0\u8543\u86EE\u532A\u5351\u5426\u5983\u5E87\u5F7C\u60B2\u6249\u6279\u62AB\u6590\u6BD4\u6CCC\u75B2\u76AE\u7891\u79D8\u7DCB\u7F77\u80A5\u88AB\u8AB9\u8CBB\u907F\u975E\u98DB\u6A0B\u7C38\u5099\u5C3E\u5FAE\u6787\u6BD8\u7435\u7709\u7F8E"],["c9a1","\u9F3B\u67CA\u7A17\u5339\u758B\u9AED\u5F66\u819D\u83F1\u8098\u5F3C\u5FC5\u7562\u7B46\u903C\u6867\u59EB\u5A9B\u7D10\u767E\u8B2C\u4FF5\u5F6A\u6A19\u6C37\u6F02\u74E2\u7968\u8868\u8A55\u8C79\u5EDF\u63CF\u75C5\u79D2\u82D7\u9328\u92F2\u849C\u86ED\u9C2D\u54C1\u5F6C\u658C\u6D5C\u7015\u8CA7\u8CD3\u983B\u654F\u74F6\u4E0D\u4ED8\u57E0\u592B\u5A66\u5BCC\u51A8\u5E03\u5E9C\u6016\u6276\u6577\u65A7\u666E\u6D6E\u7236\u7B26\u8150\u819A\u8299\u8B5C\u8CA0\u8CE6\u8D74\u961C\u9644\u4FAE\u64AB\u6B66\u821E\u8461\u856A\u90E8\u5C01\u6953\u98A8\u847A\u8557\u4F0F\u526F\u5FA9\u5E45\u670D"],["caa1","\u798F\u8179\u8907\u8986\u6DF5\u5F17\u6255\u6CB8\u4ECF\u7269\u9B92\u5206\u543B\u5674\u58B3\u61A4\u626E\u711A\u596E\u7C89\u7CDE\u7D1B\u96F0\u6587\u805E\u4E19\u4F75\u5175\u5840\u5E63\u5E73\u5F0A\u67C4\u4E26\u853D\u9589\u965B\u7C73\u9801\u50FB\u58C1\u7656\u78A7\u5225\u77A5\u8511\u7B86\u504F\u5909\u7247\u7BC7\u7DE8\u8FBA\u8FD4\u904D\u4FBF\u52C9\u5A29\u5F01\u97AD\u4FDD\u8217\u92EA\u5703\u6355\u6B69\u752B\u88DC\u8F14\u7A42\u52DF\u5893\u6155\u620A\u66AE\u6BCD\u7C3F\u83E9\u5023\u4FF8\u5305\u5446\u5831\u5949\u5B9D\u5CF0\u5CEF\u5D29\u5E96\u62B1\u6367\u653E\u65B9\u670B"],["cba1","\u6CD5\u6CE1\u70F9\u7832\u7E2B\u80DE\u82B3\u840C\u84EC\u8702\u8912\u8A2A\u8C4A\u90A6\u92D2\u98FD\u9CF3\u9D6C\u4E4F\u4EA1\u508D\u5256\u574A\u59A8\u5E3D\u5FD8\u5FD9\u623F\u66B4\u671B\u67D0\u68D2\u5192\u7D21\u80AA\u81A8\u8B00\u8C8C\u8CBF\u927E\u9632\u5420\u982C\u5317\u50D5\u535C\u58A8\u64B2\u6734\u7267\u7766\u7A46\u91E6\u52C3\u6CA1\u6B86\u5800\u5E4C\u5954\u672C\u7FFB\u51E1\u76C6\u6469\u78E8\u9B54\u9EBB\u57CB\u59B9\u6627\u679A\u6BCE\u54E9\u69D9\u5E55\u819C\u6795\u9BAA\u67FE\u9C52\u685D\u4EA6\u4FE3\u53C8\u62B9\u672B\u6CAB\u8FC4\u4FAD\u7E6D\u9EBF\u4E07\u6162\u6E80"],["cca1","\u6F2B\u8513\u5473\u672A\u9B45\u5DF3\u7B95\u5CAC\u5BC6\u871C\u6E4A\u84D1\u7A14\u8108\u5999\u7C8D\u6C11\u7720\u52D9\u5922\u7121\u725F\u77DB\u9727\u9D61\u690B\u5A7F\u5A18\u51A5\u540D\u547D\u660E\u76DF\u8FF7\u9298\u9CF4\u59EA\u725D\u6EC5\u514D\u68C9\u7DBF\u7DEC\u9762\u9EBA\u6478\u6A21\u8302\u5984\u5B5F\u6BDB\u731B\u76F2\u7DB2\u8017\u8499\u5132\u6728\u9ED9\u76EE\u6762\u52FF\u9905\u5C24\u623B\u7C7E\u8CB0\u554F\u60B6\u7D0B\u9580\u5301\u4E5F\u51B6\u591C\u723A\u8036\u91CE\u5F25\u77E2\u5384\u5F79\u7D04\u85AC\u8A33\u8E8D\u9756\u67F3\u85AE\u9453\u6109\u6108\u6CB9\u7652"],["cda1","\u8AED\u8F38\u552F\u4F51\u512A\u52C7\u53CB\u5BA5\u5E7D\u60A0\u6182\u63D6\u6709\u67DA\u6E67\u6D8C\u7336\u7337\u7531\u7950\u88D5\u8A98\u904A\u9091\u90F5\u96C4\u878D\u5915\u4E88\u4F59\u4E0E\u8A89\u8F3F\u9810\u50AD\u5E7C\u5996\u5BB9\u5EB8\u63DA\u63FA\u64C1\u66DC\u694A\u69D8\u6D0B\u6EB6\u7194\u7528\u7AAF\u7F8A\u8000\u8449\u84C9\u8981\u8B21\u8E0A\u9065\u967D\u990A\u617E\u6291\u6B32\u6C83\u6D74\u7FCC\u7FFC\u6DC0\u7F85\u87BA\u88F8\u6765\u83B1\u983C\u96F7\u6D1B\u7D61\u843D\u916A\u4E71\u5375\u5D50\u6B04\u6FEB\u85CD\u862D\u89A7\u5229\u540F\u5C65\u674E\u68A8\u7406\u7483"],["cea1","\u75E2\u88CF\u88E1\u91CC\u96E2\u9678\u5F8B\u7387\u7ACB\u844E\u63A0\u7565\u5289\u6D41\u6E9C\u7409\u7559\u786B\u7C92\u9686\u7ADC\u9F8D\u4FB6\u616E\u65C5\u865C\u4E86\u4EAE\u50DA\u4E21\u51CC\u5BEE\u6599\u6881\u6DBC\u731F\u7642\u77AD\u7A1C\u7CE7\u826F\u8AD2\u907C\u91CF\u9675\u9818\u529B\u7DD1\u502B\u5398\u6797\u6DCB\u71D0\u7433\u81E8\u8F2A\u96A3\u9C57\u9E9F\u7460\u5841\u6D99\u7D2F\u985E\u4EE4\u4F36\u4F8B\u51B7\u52B1\u5DBA\u601C\u73B2\u793C\u82D3\u9234\u96B7\u96F6\u970A\u9E97\u9F62\u66A6\u6B74\u5217\u52A3\u70C8\u88C2\u5EC9\u604B\u6190\u6F23\u7149\u7C3E\u7DF4\u806F"],["cfa1","\u84EE\u9023\u932C\u5442\u9B6F\u6AD3\u7089\u8CC2\u8DEF\u9732\u52B4\u5A41\u5ECA\u5F04\u6717\u697C\u6994\u6D6A\u6F0F\u7262\u72FC\u7BED\u8001\u807E\u874B\u90CE\u516D\u9E93\u7984\u808B\u9332\u8AD6\u502D\u548C\u8A71\u6B6A\u8CC4\u8107\u60D1\u67A0\u9DF2\u4E99\u4E98\u9C10\u8A6B\u85C1\u8568\u6900\u6E7E\u7897\u8155"],["d0a1","\u5F0C\u4E10\u4E15\u4E2A\u4E31\u4E36\u4E3C\u4E3F\u4E42\u4E56\u4E58\u4E82\u4E85\u8C6B\u4E8A\u8212\u5F0D\u4E8E\u4E9E\u4E9F\u4EA0\u4EA2\u4EB0\u4EB3\u4EB6\u4ECE\u4ECD\u4EC4\u4EC6\u4EC2\u4ED7\u4EDE\u4EED\u4EDF\u4EF7\u4F09\u4F5A\u4F30\u4F5B\u4F5D\u4F57\u4F47\u4F76\u4F88\u4F8F\u4F98\u4F7B\u4F69\u4F70\u4F91\u4F6F\u4F86\u4F96\u5118\u4FD4\u4FDF\u4FCE\u4FD8\u4FDB\u4FD1\u4FDA\u4FD0\u4FE4\u4FE5\u501A\u5028\u5014\u502A\u5025\u5005\u4F1C\u4FF6\u5021\u5029\u502C\u4FFE\u4FEF\u5011\u5006\u5043\u5047\u6703\u5055\u5050\u5048\u505A\u5056\u506C\u5078\u5080\u509A\u5085\u50B4\u50B2"],["d1a1","\u50C9\u50CA\u50B3\u50C2\u50D6\u50DE\u50E5\u50ED\u50E3\u50EE\u50F9\u50F5\u5109\u5101\u5102\u5116\u5115\u5114\u511A\u5121\u513A\u5137\u513C\u513B\u513F\u5140\u5152\u514C\u5154\u5162\u7AF8\u5169\u516A\u516E\u5180\u5182\u56D8\u518C\u5189\u518F\u5191\u5193\u5195\u5196\u51A4\u51A6\u51A2\u51A9\u51AA\u51AB\u51B3\u51B1\u51B2\u51B0\u51B5\u51BD\u51C5\u51C9\u51DB\u51E0\u8655\u51E9\u51ED\u51F0\u51F5\u51FE\u5204\u520B\u5214\u520E\u5227\u522A\u522E\u5233\u5239\u524F\u5244\u524B\u524C\u525E\u5254\u526A\u5274\u5269\u5273\u527F\u527D\u528D\u5294\u5292\u5271\u5288\u5291\u8FA8"],["d2a1","\u8FA7\u52AC\u52AD\u52BC\u52B5\u52C1\u52CD\u52D7\u52DE\u52E3\u52E6\u98ED\u52E0\u52F3\u52F5\u52F8\u52F9\u5306\u5308\u7538\u530D\u5310\u530F\u5315\u531A\u5323\u532F\u5331\u5333\u5338\u5340\u5346\u5345\u4E17\u5349\u534D\u51D6\u535E\u5369\u536E\u5918\u537B\u5377\u5382\u5396\u53A0\u53A6\u53A5\u53AE\u53B0\u53B6\u53C3\u7C12\u96D9\u53DF\u66FC\u71EE\u53EE\u53E8\u53ED\u53FA\u5401\u543D\u5440\u542C\u542D\u543C\u542E\u5436\u5429\u541D\u544E\u548F\u5475\u548E\u545F\u5471\u5477\u5470\u5492\u547B\u5480\u5476\u5484\u5490\u5486\u54C7\u54A2\u54B8\u54A5\u54AC\u54C4\u54C8\u54A8"],["d3a1","\u54AB\u54C2\u54A4\u54BE\u54BC\u54D8\u54E5\u54E6\u550F\u5514\u54FD\u54EE\u54ED\u54FA\u54E2\u5539\u5540\u5563\u554C\u552E\u555C\u5545\u5556\u5557\u5538\u5533\u555D\u5599\u5580\u54AF\u558A\u559F\u557B\u557E\u5598\u559E\u55AE\u557C\u5583\u55A9\u5587\u55A8\u55DA\u55C5\u55DF\u55C4\u55DC\u55E4\u55D4\u5614\u55F7\u5616\u55FE\u55FD\u561B\u55F9\u564E\u5650\u71DF\u5634\u5636\u5632\u5638\u566B\u5664\u562F\u566C\u566A\u5686\u5680\u568A\u56A0\u5694\u568F\u56A5\u56AE\u56B6\u56B4\u56C2\u56BC\u56C1\u56C3\u56C0\u56C8\u56CE\u56D1\u56D3\u56D7\u56EE\u56F9\u5700\u56FF\u5704\u5709"],["d4a1","\u5708\u570B\u570D\u5713\u5718\u5716\u55C7\u571C\u5726\u5737\u5738\u574E\u573B\u5740\u574F\u5769\u57C0\u5788\u5761\u577F\u5789\u5793\u57A0\u57B3\u57A4\u57AA\u57B0\u57C3\u57C6\u57D4\u57D2\u57D3\u580A\u57D6\u57E3\u580B\u5819\u581D\u5872\u5821\u5862\u584B\u5870\u6BC0\u5852\u583D\u5879\u5885\u58B9\u589F\u58AB\u58BA\u58DE\u58BB\u58B8\u58AE\u58C5\u58D3\u58D1\u58D7\u58D9\u58D8\u58E5\u58DC\u58E4\u58DF\u58EF\u58FA\u58F9\u58FB\u58FC\u58FD\u5902\u590A\u5910\u591B\u68A6\u5925\u592C\u592D\u5932\u5938\u593E\u7AD2\u5955\u5950\u594E\u595A\u5958\u5962\u5960\u5967\u596C\u5969"],["d5a1","\u5978\u5981\u599D\u4F5E\u4FAB\u59A3\u59B2\u59C6\u59E8\u59DC\u598D\u59D9\u59DA\u5A25\u5A1F\u5A11\u5A1C\u5A09\u5A1A\u5A40\u5A6C\u5A49\u5A35\u5A36\u5A62\u5A6A\u5A9A\u5ABC\u5ABE\u5ACB\u5AC2\u5ABD\u5AE3\u5AD7\u5AE6\u5AE9\u5AD6\u5AFA\u5AFB\u5B0C\u5B0B\u5B16\u5B32\u5AD0\u5B2A\u5B36\u5B3E\u5B43\u5B45\u5B40\u5B51\u5B55\u5B5A\u5B5B\u5B65\u5B69\u5B70\u5B73\u5B75\u5B78\u6588\u5B7A\u5B80\u5B83\u5BA6\u5BB8\u5BC3\u5BC7\u5BC9\u5BD4\u5BD0\u5BE4\u5BE6\u5BE2\u5BDE\u5BE5\u5BEB\u5BF0\u5BF6\u5BF3\u5C05\u5C07\u5C08\u5C0D\u5C13\u5C20\u5C22\u5C28\u5C38\u5C39\u5C41\u5C46\u5C4E\u5C53"],["d6a1","\u5C50\u5C4F\u5B71\u5C6C\u5C6E\u4E62\u5C76\u5C79\u5C8C\u5C91\u5C94\u599B\u5CAB\u5CBB\u5CB6\u5CBC\u5CB7\u5CC5\u5CBE\u5CC7\u5CD9\u5CE9\u5CFD\u5CFA\u5CED\u5D8C\u5CEA\u5D0B\u5D15\u5D17\u5D5C\u5D1F\u5D1B\u5D11\u5D14\u5D22\u5D1A\u5D19\u5D18\u5D4C\u5D52\u5D4E\u5D4B\u5D6C\u5D73\u5D76\u5D87\u5D84\u5D82\u5DA2\u5D9D\u5DAC\u5DAE\u5DBD\u5D90\u5DB7\u5DBC\u5DC9\u5DCD\u5DD3\u5DD2\u5DD6\u5DDB\u5DEB\u5DF2\u5DF5\u5E0B\u5E1A\u5E19\u5E11\u5E1B\u5E36\u5E37\u5E44\u5E43\u5E40\u5E4E\u5E57\u5E54\u5E5F\u5E62\u5E64\u5E47\u5E75\u5E76\u5E7A\u9EBC\u5E7F\u5EA0\u5EC1\u5EC2\u5EC8\u5ED0\u5ECF"],["d7a1","\u5ED6\u5EE3\u5EDD\u5EDA\u5EDB\u5EE2\u5EE1\u5EE8\u5EE9\u5EEC\u5EF1\u5EF3\u5EF0\u5EF4\u5EF8\u5EFE\u5F03\u5F09\u5F5D\u5F5C\u5F0B\u5F11\u5F16\u5F29\u5F2D\u5F38\u5F41\u5F48\u5F4C\u5F4E\u5F2F\u5F51\u5F56\u5F57\u5F59\u5F61\u5F6D\u5F73\u5F77\u5F83\u5F82\u5F7F\u5F8A\u5F88\u5F91\u5F87\u5F9E\u5F99\u5F98\u5FA0\u5FA8\u5FAD\u5FBC\u5FD6\u5FFB\u5FE4\u5FF8\u5FF1\u5FDD\u60B3\u5FFF\u6021\u6060\u6019\u6010\u6029\u600E\u6031\u601B\u6015\u602B\u6026\u600F\u603A\u605A\u6041\u606A\u6077\u605F\u604A\u6046\u604D\u6063\u6043\u6064\u6042\u606C\u606B\u6059\u6081\u608D\u60E7\u6083\u609A"],["d8a1","\u6084\u609B\u6096\u6097\u6092\u60A7\u608B\u60E1\u60B8\u60E0\u60D3\u60B4\u5FF0\u60BD\u60C6\u60B5\u60D8\u614D\u6115\u6106\u60F6\u60F7\u6100\u60F4\u60FA\u6103\u6121\u60FB\u60F1\u610D\u610E\u6147\u613E\u6128\u6127\u614A\u613F\u613C\u612C\u6134\u613D\u6142\u6144\u6173\u6177\u6158\u6159\u615A\u616B\u6174\u616F\u6165\u6171\u615F\u615D\u6153\u6175\u6199\u6196\u6187\u61AC\u6194\u619A\u618A\u6191\u61AB\u61AE\u61CC\u61CA\u61C9\u61F7\u61C8\u61C3\u61C6\u61BA\u61CB\u7F79\u61CD\u61E6\u61E3\u61F6\u61FA\u61F4\u61FF\u61FD\u61FC\u61FE\u6200\u6208\u6209\u620D\u620C\u6214\u621B"],["d9a1","\u621E\u6221\u622A\u622E\u6230\u6232\u6233\u6241\u624E\u625E\u6263\u625B\u6260\u6268\u627C\u6282\u6289\u627E\u6292\u6293\u6296\u62D4\u6283\u6294\u62D7\u62D1\u62BB\u62CF\u62FF\u62C6\u64D4\u62C8\u62DC\u62CC\u62CA\u62C2\u62C7\u629B\u62C9\u630C\u62EE\u62F1\u6327\u6302\u6308\u62EF\u62F5\u6350\u633E\u634D\u641C\u634F\u6396\u638E\u6380\u63AB\u6376\u63A3\u638F\u6389\u639F\u63B5\u636B\u6369\u63BE\u63E9\u63C0\u63C6\u63E3\u63C9\u63D2\u63F6\u63C4\u6416\u6434\u6406\u6413\u6426\u6436\u651D\u6417\u6428\u640F\u6467\u646F\u6476\u644E\u652A\u6495\u6493\u64A5\u64A9\u6488\u64BC"],["daa1","\u64DA\u64D2\u64C5\u64C7\u64BB\u64D8\u64C2\u64F1\u64E7\u8209\u64E0\u64E1\u62AC\u64E3\u64EF\u652C\u64F6\u64F4\u64F2\u64FA\u6500\u64FD\u6518\u651C\u6505\u6524\u6523\u652B\u6534\u6535\u6537\u6536\u6538\u754B\u6548\u6556\u6555\u654D\u6558\u655E\u655D\u6572\u6578\u6582\u6583\u8B8A\u659B\u659F\u65AB\u65B7\u65C3\u65C6\u65C1\u65C4\u65CC\u65D2\u65DB\u65D9\u65E0\u65E1\u65F1\u6772\u660A\u6603\u65FB\u6773\u6635\u6636\u6634\u661C\u664F\u6644\u6649\u6641\u665E\u665D\u6664\u6667\u6668\u665F\u6662\u6670\u6683\u6688\u668E\u6689\u6684\u6698\u669D\u66C1\u66B9\u66C9\u66BE\u66BC"],["dba1","\u66C4\u66B8\u66D6\u66DA\u66E0\u663F\u66E6\u66E9\u66F0\u66F5\u66F7\u670F\u6716\u671E\u6726\u6727\u9738\u672E\u673F\u6736\u6741\u6738\u6737\u6746\u675E\u6760\u6759\u6763\u6764\u6789\u6770\u67A9\u677C\u676A\u678C\u678B\u67A6\u67A1\u6785\u67B7\u67EF\u67B4\u67EC\u67B3\u67E9\u67B8\u67E4\u67DE\u67DD\u67E2\u67EE\u67B9\u67CE\u67C6\u67E7\u6A9C\u681E\u6846\u6829\u6840\u684D\u6832\u684E\u68B3\u682B\u6859\u6863\u6877\u687F\u689F\u688F\u68AD\u6894\u689D\u689B\u6883\u6AAE\u68B9\u6874\u68B5\u68A0\u68BA\u690F\u688D\u687E\u6901\u68CA\u6908\u68D8\u6922\u6926\u68E1\u690C\u68CD"],["dca1","\u68D4\u68E7\u68D5\u6936\u6912\u6904\u68D7\u68E3\u6925\u68F9\u68E0\u68EF\u6928\u692A\u691A\u6923\u6921\u68C6\u6979\u6977\u695C\u6978\u696B\u6954\u697E\u696E\u6939\u6974\u693D\u6959\u6930\u6961\u695E\u695D\u6981\u696A\u69B2\u69AE\u69D0\u69BF\u69C1\u69D3\u69BE\u69CE\u5BE8\u69CA\u69DD\u69BB\u69C3\u69A7\u6A2E\u6991\u69A0\u699C\u6995\u69B4\u69DE\u69E8\u6A02\u6A1B\u69FF\u6B0A\u69F9\u69F2\u69E7\u6A05\u69B1\u6A1E\u69ED\u6A14\u69EB\u6A0A\u6A12\u6AC1\u6A23\u6A13\u6A44\u6A0C\u6A72\u6A36\u6A78\u6A47\u6A62\u6A59\u6A66\u6A48\u6A38\u6A22\u6A90\u6A8D\u6AA0\u6A84\u6AA2\u6AA3"],["dda1","\u6A97\u8617\u6ABB\u6AC3\u6AC2\u6AB8\u6AB3\u6AAC\u6ADE\u6AD1\u6ADF\u6AAA\u6ADA\u6AEA\u6AFB\u6B05\u8616\u6AFA\u6B12\u6B16\u9B31\u6B1F\u6B38\u6B37\u76DC\u6B39\u98EE\u6B47\u6B43\u6B49\u6B50\u6B59\u6B54\u6B5B\u6B5F\u6B61\u6B78\u6B79\u6B7F\u6B80\u6B84\u6B83\u6B8D\u6B98\u6B95\u6B9E\u6BA4\u6BAA\u6BAB\u6BAF\u6BB2\u6BB1\u6BB3\u6BB7\u6BBC\u6BC6\u6BCB\u6BD3\u6BDF\u6BEC\u6BEB\u6BF3\u6BEF\u9EBE\u6C08\u6C13\u6C14\u6C1B\u6C24\u6C23\u6C5E\u6C55\u6C62\u6C6A\u6C82\u6C8D\u6C9A\u6C81\u6C9B\u6C7E\u6C68\u6C73\u6C92\u6C90\u6CC4\u6CF1\u6CD3\u6CBD\u6CD7\u6CC5\u6CDD\u6CAE\u6CB1\u6CBE"],["dea1","\u6CBA\u6CDB\u6CEF\u6CD9\u6CEA\u6D1F\u884D\u6D36\u6D2B\u6D3D\u6D38\u6D19\u6D35\u6D33\u6D12\u6D0C\u6D63\u6D93\u6D64\u6D5A\u6D79\u6D59\u6D8E\u6D95\u6FE4\u6D85\u6DF9\u6E15\u6E0A\u6DB5\u6DC7\u6DE6\u6DB8\u6DC6\u6DEC\u6DDE\u6DCC\u6DE8\u6DD2\u6DC5\u6DFA\u6DD9\u6DE4\u6DD5\u6DEA\u6DEE\u6E2D\u6E6E\u6E2E\u6E19\u6E72\u6E5F\u6E3E\u6E23\u6E6B\u6E2B\u6E76\u6E4D\u6E1F\u6E43\u6E3A\u6E4E\u6E24\u6EFF\u6E1D\u6E38\u6E82\u6EAA\u6E98\u6EC9\u6EB7\u6ED3\u6EBD\u6EAF\u6EC4\u6EB2\u6ED4\u6ED5\u6E8F\u6EA5\u6EC2\u6E9F\u6F41\u6F11\u704C\u6EEC\u6EF8\u6EFE\u6F3F\u6EF2\u6F31\u6EEF\u6F32\u6ECC"],["dfa1","\u6F3E\u6F13\u6EF7\u6F86\u6F7A\u6F78\u6F81\u6F80\u6F6F\u6F5B\u6FF3\u6F6D\u6F82\u6F7C\u6F58\u6F8E\u6F91\u6FC2\u6F66\u6FB3\u6FA3\u6FA1\u6FA4\u6FB9\u6FC6\u6FAA\u6FDF\u6FD5\u6FEC\u6FD4\u6FD8\u6FF1\u6FEE\u6FDB\u7009\u700B\u6FFA\u7011\u7001\u700F\u6FFE\u701B\u701A\u6F74\u701D\u7018\u701F\u7030\u703E\u7032\u7051\u7063\u7099\u7092\u70AF\u70F1\u70AC\u70B8\u70B3\u70AE\u70DF\u70CB\u70DD\u70D9\u7109\u70FD\u711C\u7119\u7165\u7155\u7188\u7166\u7162\u714C\u7156\u716C\u718F\u71FB\u7184\u7195\u71A8\u71AC\u71D7\u71B9\u71BE\u71D2\u71C9\u71D4\u71CE\u71E0\u71EC\u71E7\u71F5\u71FC"],["e0a1","\u71F9\u71FF\u720D\u7210\u721B\u7228\u722D\u722C\u7230\u7232\u723B\u723C\u723F\u7240\u7246\u724B\u7258\u7274\u727E\u7282\u7281\u7287\u7292\u7296\u72A2\u72A7\u72B9\u72B2\u72C3\u72C6\u72C4\u72CE\u72D2\u72E2\u72E0\u72E1\u72F9\u72F7\u500F\u7317\u730A\u731C\u7316\u731D\u7334\u732F\u7329\u7325\u733E\u734E\u734F\u9ED8\u7357\u736A\u7368\u7370\u7378\u7375\u737B\u737A\u73C8\u73B3\u73CE\u73BB\u73C0\u73E5\u73EE\u73DE\u74A2\u7405\u746F\u7425\u73F8\u7432\u743A\u7455\u743F\u745F\u7459\u7441\u745C\u7469\u7470\u7463\u746A\u7476\u747E\u748B\u749E\u74A7\u74CA\u74CF\u74D4\u73F1"],["e1a1","\u74E0\u74E3\u74E7\u74E9\u74EE\u74F2\u74F0\u74F1\u74F8\u74F7\u7504\u7503\u7505\u750C\u750E\u750D\u7515\u7513\u751E\u7526\u752C\u753C\u7544\u754D\u754A\u7549\u755B\u7546\u755A\u7569\u7564\u7567\u756B\u756D\u7578\u7576\u7586\u7587\u7574\u758A\u7589\u7582\u7594\u759A\u759D\u75A5\u75A3\u75C2\u75B3\u75C3\u75B5\u75BD\u75B8\u75BC\u75B1\u75CD\u75CA\u75D2\u75D9\u75E3\u75DE\u75FE\u75FF\u75FC\u7601\u75F0\u75FA\u75F2\u75F3\u760B\u760D\u7609\u761F\u7627\u7620\u7621\u7622\u7624\u7634\u7630\u763B\u7647\u7648\u7646\u765C\u7658\u7661\u7662\u7668\u7669\u766A\u7667\u766C\u7670"],["e2a1","\u7672\u7676\u7678\u767C\u7680\u7683\u7688\u768B\u768E\u7696\u7693\u7699\u769A\u76B0\u76B4\u76B8\u76B9\u76BA\u76C2\u76CD\u76D6\u76D2\u76DE\u76E1\u76E5\u76E7\u76EA\u862F\u76FB\u7708\u7707\u7704\u7729\u7724\u771E\u7725\u7726\u771B\u7737\u7738\u7747\u775A\u7768\u776B\u775B\u7765\u777F\u777E\u7779\u778E\u778B\u7791\u77A0\u779E\u77B0\u77B6\u77B9\u77BF\u77BC\u77BD\u77BB\u77C7\u77CD\u77D7\u77DA\u77DC\u77E3\u77EE\u77FC\u780C\u7812\u7926\u7820\u792A\u7845\u788E\u7874\u7886\u787C\u789A\u788C\u78A3\u78B5\u78AA\u78AF\u78D1\u78C6\u78CB\u78D4\u78BE\u78BC\u78C5\u78CA\u78EC"],["e3a1","\u78E7\u78DA\u78FD\u78F4\u7907\u7912\u7911\u7919\u792C\u792B\u7940\u7960\u7957\u795F\u795A\u7955\u7953\u797A\u797F\u798A\u799D\u79A7\u9F4B\u79AA\u79AE\u79B3\u79B9\u79BA\u79C9\u79D5\u79E7\u79EC\u79E1\u79E3\u7A08\u7A0D\u7A18\u7A19\u7A20\u7A1F\u7980\u7A31\u7A3B\u7A3E\u7A37\u7A43\u7A57\u7A49\u7A61\u7A62\u7A69\u9F9D\u7A70\u7A79\u7A7D\u7A88\u7A97\u7A95\u7A98\u7A96\u7AA9\u7AC8\u7AB0\u7AB6\u7AC5\u7AC4\u7ABF\u9083\u7AC7\u7ACA\u7ACD\u7ACF\u7AD5\u7AD3\u7AD9\u7ADA\u7ADD\u7AE1\u7AE2\u7AE6\u7AED\u7AF0\u7B02\u7B0F\u7B0A\u7B06\u7B33\u7B18\u7B19\u7B1E\u7B35\u7B28\u7B36\u7B50"],["e4a1","\u7B7A\u7B04\u7B4D\u7B0B\u7B4C\u7B45\u7B75\u7B65\u7B74\u7B67\u7B70\u7B71\u7B6C\u7B6E\u7B9D\u7B98\u7B9F\u7B8D\u7B9C\u7B9A\u7B8B\u7B92\u7B8F\u7B5D\u7B99\u7BCB\u7BC1\u7BCC\u7BCF\u7BB4\u7BC6\u7BDD\u7BE9\u7C11\u7C14\u7BE6\u7BE5\u7C60\u7C00\u7C07\u7C13\u7BF3\u7BF7\u7C17\u7C0D\u7BF6\u7C23\u7C27\u7C2A\u7C1F\u7C37\u7C2B\u7C3D\u7C4C\u7C43\u7C54\u7C4F\u7C40\u7C50\u7C58\u7C5F\u7C64\u7C56\u7C65\u7C6C\u7C75\u7C83\u7C90\u7CA4\u7CAD\u7CA2\u7CAB\u7CA1\u7CA8\u7CB3\u7CB2\u7CB1\u7CAE\u7CB9\u7CBD\u7CC0\u7CC5\u7CC2\u7CD8\u7CD2\u7CDC\u7CE2\u9B3B\u7CEF\u7CF2\u7CF4\u7CF6\u7CFA\u7D06"],["e5a1","\u7D02\u7D1C\u7D15\u7D0A\u7D45\u7D4B\u7D2E\u7D32\u7D3F\u7D35\u7D46\u7D73\u7D56\u7D4E\u7D72\u7D68\u7D6E\u7D4F\u7D63\u7D93\u7D89\u7D5B\u7D8F\u7D7D\u7D9B\u7DBA\u7DAE\u7DA3\u7DB5\u7DC7\u7DBD\u7DAB\u7E3D\u7DA2\u7DAF\u7DDC\u7DB8\u7D9F\u7DB0\u7DD8\u7DDD\u7DE4\u7DDE\u7DFB\u7DF2\u7DE1\u7E05\u7E0A\u7E23\u7E21\u7E12\u7E31\u7E1F\u7E09\u7E0B\u7E22\u7E46\u7E66\u7E3B\u7E35\u7E39\u7E43\u7E37\u7E32\u7E3A\u7E67\u7E5D\u7E56\u7E5E\u7E59\u7E5A\u7E79\u7E6A\u7E69\u7E7C\u7E7B\u7E83\u7DD5\u7E7D\u8FAE\u7E7F\u7E88\u7E89\u7E8C\u7E92\u7E90\u7E93\u7E94\u7E96\u7E8E\u7E9B\u7E9C\u7F38\u7F3A"],["e6a1","\u7F45\u7F4C\u7F4D\u7F4E\u7F50\u7F51\u7F55\u7F54\u7F58\u7F5F\u7F60\u7F68\u7F69\u7F67\u7F78\u7F82\u7F86\u7F83\u7F88\u7F87\u7F8C\u7F94\u7F9E\u7F9D\u7F9A\u7FA3\u7FAF\u7FB2\u7FB9\u7FAE\u7FB6\u7FB8\u8B71\u7FC5\u7FC6\u7FCA\u7FD5\u7FD4\u7FE1\u7FE6\u7FE9\u7FF3\u7FF9\u98DC\u8006\u8004\u800B\u8012\u8018\u8019\u801C\u8021\u8028\u803F\u803B\u804A\u8046\u8052\u8058\u805A\u805F\u8062\u8068\u8073\u8072\u8070\u8076\u8079\u807D\u807F\u8084\u8086\u8085\u809B\u8093\u809A\u80AD\u5190\u80AC\u80DB\u80E5\u80D9\u80DD\u80C4\u80DA\u80D6\u8109\u80EF\u80F1\u811B\u8129\u8123\u812F\u814B"],["e7a1","\u968B\u8146\u813E\u8153\u8151\u80FC\u8171\u816E\u8165\u8166\u8174\u8183\u8188\u818A\u8180\u8182\u81A0\u8195\u81A4\u81A3\u815F\u8193\u81A9\u81B0\u81B5\u81BE\u81B8\u81BD\u81C0\u81C2\u81BA\u81C9\u81CD\u81D1\u81D9\u81D8\u81C8\u81DA\u81DF\u81E0\u81E7\u81FA\u81FB\u81FE\u8201\u8202\u8205\u8207\u820A\u820D\u8210\u8216\u8229\u822B\u8238\u8233\u8240\u8259\u8258\u825D\u825A\u825F\u8264\u8262\u8268\u826A\u826B\u822E\u8271\u8277\u8278\u827E\u828D\u8292\u82AB\u829F\u82BB\u82AC\u82E1\u82E3\u82DF\u82D2\u82F4\u82F3\u82FA\u8393\u8303\u82FB\u82F9\u82DE\u8306\u82DC\u8309\u82D9"],["e8a1","\u8335\u8334\u8316\u8332\u8331\u8340\u8339\u8350\u8345\u832F\u832B\u8317\u8318\u8385\u839A\u83AA\u839F\u83A2\u8396\u8323\u838E\u8387\u838A\u837C\u83B5\u8373\u8375\u83A0\u8389\u83A8\u83F4\u8413\u83EB\u83CE\u83FD\u8403\u83D8\u840B\u83C1\u83F7\u8407\u83E0\u83F2\u840D\u8422\u8420\u83BD\u8438\u8506\u83FB\u846D\u842A\u843C\u855A\u8484\u8477\u846B\u84AD\u846E\u8482\u8469\u8446\u842C\u846F\u8479\u8435\u84CA\u8462\u84B9\u84BF\u849F\u84D9\u84CD\u84BB\u84DA\u84D0\u84C1\u84C6\u84D6\u84A1\u8521\u84FF\u84F4\u8517\u8518\u852C\u851F\u8515\u8514\u84FC\u8540\u8563\u8558\u8548"],["e9a1","\u8541\u8602\u854B\u8555\u8580\u85A4\u8588\u8591\u858A\u85A8\u856D\u8594\u859B\u85EA\u8587\u859C\u8577\u857E\u8590\u85C9\u85BA\u85CF\u85B9\u85D0\u85D5\u85DD\u85E5\u85DC\u85F9\u860A\u8613\u860B\u85FE\u85FA\u8606\u8622\u861A\u8630\u863F\u864D\u4E55\u8654\u865F\u8667\u8671\u8693\u86A3\u86A9\u86AA\u868B\u868C\u86B6\u86AF\u86C4\u86C6\u86B0\u86C9\u8823\u86AB\u86D4\u86DE\u86E9\u86EC\u86DF\u86DB\u86EF\u8712\u8706\u8708\u8700\u8703\u86FB\u8711\u8709\u870D\u86F9\u870A\u8734\u873F\u8737\u873B\u8725\u8729\u871A\u8760\u875F\u8778\u874C\u874E\u8774\u8757\u8768\u876E\u8759"],["eaa1","\u8753\u8763\u876A\u8805\u87A2\u879F\u8782\u87AF\u87CB\u87BD\u87C0\u87D0\u96D6\u87AB\u87C4\u87B3\u87C7\u87C6\u87BB\u87EF\u87F2\u87E0\u880F\u880D\u87FE\u87F6\u87F7\u880E\u87D2\u8811\u8816\u8815\u8822\u8821\u8831\u8836\u8839\u8827\u883B\u8844\u8842\u8852\u8859\u885E\u8862\u886B\u8881\u887E\u889E\u8875\u887D\u88B5\u8872\u8882\u8897\u8892\u88AE\u8899\u88A2\u888D\u88A4\u88B0\u88BF\u88B1\u88C3\u88C4\u88D4\u88D8\u88D9\u88DD\u88F9\u8902\u88FC\u88F4\u88E8\u88F2\u8904\u890C\u890A\u8913\u8943\u891E\u8925\u892A\u892B\u8941\u8944\u893B\u8936\u8938\u894C\u891D\u8960\u895E"],["eba1","\u8966\u8964\u896D\u896A\u896F\u8974\u8977\u897E\u8983\u8988\u898A\u8993\u8998\u89A1\u89A9\u89A6\u89AC\u89AF\u89B2\u89BA\u89BD\u89BF\u89C0\u89DA\u89DC\u89DD\u89E7\u89F4\u89F8\u8A03\u8A16\u8A10\u8A0C\u8A1B\u8A1D\u8A25\u8A36\u8A41\u8A5B\u8A52\u8A46\u8A48\u8A7C\u8A6D\u8A6C\u8A62\u8A85\u8A82\u8A84\u8AA8\u8AA1\u8A91\u8AA5\u8AA6\u8A9A\u8AA3\u8AC4\u8ACD\u8AC2\u8ADA\u8AEB\u8AF3\u8AE7\u8AE4\u8AF1\u8B14\u8AE0\u8AE2\u8AF7\u8ADE\u8ADB\u8B0C\u8B07\u8B1A\u8AE1\u8B16\u8B10\u8B17\u8B20\u8B33\u97AB\u8B26\u8B2B\u8B3E\u8B28\u8B41\u8B4C\u8B4F\u8B4E\u8B49\u8B56\u8B5B\u8B5A\u8B6B"],["eca1","\u8B5F\u8B6C\u8B6F\u8B74\u8B7D\u8B80\u8B8C\u8B8E\u8B92\u8B93\u8B96\u8B99\u8B9A\u8C3A\u8C41\u8C3F\u8C48\u8C4C\u8C4E\u8C50\u8C55\u8C62\u8C6C\u8C78\u8C7A\u8C82\u8C89\u8C85\u8C8A\u8C8D\u8C8E\u8C94\u8C7C\u8C98\u621D\u8CAD\u8CAA\u8CBD\u8CB2\u8CB3\u8CAE\u8CB6\u8CC8\u8CC1\u8CE4\u8CE3\u8CDA\u8CFD\u8CFA\u8CFB\u8D04\u8D05\u8D0A\u8D07\u8D0F\u8D0D\u8D10\u9F4E\u8D13\u8CCD\u8D14\u8D16\u8D67\u8D6D\u8D71\u8D73\u8D81\u8D99\u8DC2\u8DBE\u8DBA\u8DCF\u8DDA\u8DD6\u8DCC\u8DDB\u8DCB\u8DEA\u8DEB\u8DDF\u8DE3\u8DFC\u8E08\u8E09\u8DFF\u8E1D\u8E1E\u8E10\u8E1F\u8E42\u8E35\u8E30\u8E34\u8E4A"],["eda1","\u8E47\u8E49\u8E4C\u8E50\u8E48\u8E59\u8E64\u8E60\u8E2A\u8E63\u8E55\u8E76\u8E72\u8E7C\u8E81\u8E87\u8E85\u8E84\u8E8B\u8E8A\u8E93\u8E91\u8E94\u8E99\u8EAA\u8EA1\u8EAC\u8EB0\u8EC6\u8EB1\u8EBE\u8EC5\u8EC8\u8ECB\u8EDB\u8EE3\u8EFC\u8EFB\u8EEB\u8EFE\u8F0A\u8F05\u8F15\u8F12\u8F19\u8F13\u8F1C\u8F1F\u8F1B\u8F0C\u8F26\u8F33\u8F3B\u8F39\u8F45\u8F42\u8F3E\u8F4C\u8F49\u8F46\u8F4E\u8F57\u8F5C\u8F62\u8F63\u8F64\u8F9C\u8F9F\u8FA3\u8FAD\u8FAF\u8FB7\u8FDA\u8FE5\u8FE2\u8FEA\u8FEF\u9087\u8FF4\u9005\u8FF9\u8FFA\u9011\u9015\u9021\u900D\u901E\u9016\u900B\u9027\u9036\u9035\u9039\u8FF8"],["eea1","\u904F\u9050\u9051\u9052\u900E\u9049\u903E\u9056\u9058\u905E\u9068\u906F\u9076\u96A8\u9072\u9082\u907D\u9081\u9080\u908A\u9089\u908F\u90A8\u90AF\u90B1\u90B5\u90E2\u90E4\u6248\u90DB\u9102\u9112\u9119\u9132\u9130\u914A\u9156\u9158\u9163\u9165\u9169\u9173\u9172\u918B\u9189\u9182\u91A2\u91AB\u91AF\u91AA\u91B5\u91B4\u91BA\u91C0\u91C1\u91C9\u91CB\u91D0\u91D6\u91DF\u91E1\u91DB\u91FC\u91F5\u91F6\u921E\u91FF\u9214\u922C\u9215\u9211\u925E\u9257\u9245\u9249\u9264\u9248\u9295\u923F\u924B\u9250\u929C\u9296\u9293\u929B\u925A\u92CF\u92B9\u92B7\u92E9\u930F\u92FA\u9344\u932E"],["efa1","\u9319\u9322\u931A\u9323\u933A\u9335\u933B\u935C\u9360\u937C\u936E\u9356\u93B0\u93AC\u93AD\u9394\u93B9\u93D6\u93D7\u93E8\u93E5\u93D8\u93C3\u93DD\u93D0\u93C8\u93E4\u941A\u9414\u9413\u9403\u9407\u9410\u9436\u942B\u9435\u9421\u943A\u9441\u9452\u9444\u945B\u9460\u9462\u945E\u946A\u9229\u9470\u9475\u9477\u947D\u945A\u947C\u947E\u9481\u947F\u9582\u9587\u958A\u9594\u9596\u9598\u9599\u95A0\u95A8\u95A7\u95AD\u95BC\u95BB\u95B9\u95BE\u95CA\u6FF6\u95C3\u95CD\u95CC\u95D5\u95D4\u95D6\u95DC\u95E1\u95E5\u95E2\u9621\u9628\u962E\u962F\u9642\u964C\u964F\u964B\u9677\u965C\u965E"],["f0a1","\u965D\u965F\u9666\u9672\u966C\u968D\u9698\u9695\u9697\u96AA\u96A7\u96B1\u96B2\u96B0\u96B4\u96B6\u96B8\u96B9\u96CE\u96CB\u96C9\u96CD\u894D\u96DC\u970D\u96D5\u96F9\u9704\u9706\u9708\u9713\u970E\u9711\u970F\u9716\u9719\u9724\u972A\u9730\u9739\u973D\u973E\u9744\u9746\u9748\u9742\u9749\u975C\u9760\u9764\u9766\u9768\u52D2\u976B\u9771\u9779\u9785\u977C\u9781\u977A\u9786\u978B\u978F\u9790\u979C\u97A8\u97A6\u97A3\u97B3\u97B4\u97C3\u97C6\u97C8\u97CB\u97DC\u97ED\u9F4F\u97F2\u7ADF\u97F6\u97F5\u980F\u980C\u9838\u9824\u9821\u9837\u983D\u9846\u984F\u984B\u986B\u986F\u9870"],["f1a1","\u9871\u9874\u9873\u98AA\u98AF\u98B1\u98B6\u98C4\u98C3\u98C6\u98E9\u98EB\u9903\u9909\u9912\u9914\u9918\u9921\u991D\u991E\u9924\u9920\u992C\u992E\u993D\u993E\u9942\u9949\u9945\u9950\u994B\u9951\u9952\u994C\u9955\u9997\u9998\u99A5\u99AD\u99AE\u99BC\u99DF\u99DB\u99DD\u99D8\u99D1\u99ED\u99EE\u99F1\u99F2\u99FB\u99F8\u9A01\u9A0F\u9A05\u99E2\u9A19\u9A2B\u9A37\u9A45\u9A42\u9A40\u9A43\u9A3E\u9A55\u9A4D\u9A5B\u9A57\u9A5F\u9A62\u9A65\u9A64\u9A69\u9A6B\u9A6A\u9AAD\u9AB0\u9ABC\u9AC0\u9ACF\u9AD1\u9AD3\u9AD4\u9ADE\u9ADF\u9AE2\u9AE3\u9AE6\u9AEF\u9AEB\u9AEE\u9AF4\u9AF1\u9AF7"],["f2a1","\u9AFB\u9B06\u9B18\u9B1A\u9B1F\u9B22\u9B23\u9B25\u9B27\u9B28\u9B29\u9B2A\u9B2E\u9B2F\u9B32\u9B44\u9B43\u9B4F\u9B4D\u9B4E\u9B51\u9B58\u9B74\u9B93\u9B83\u9B91\u9B96\u9B97\u9B9F\u9BA0\u9BA8\u9BB4\u9BC0\u9BCA\u9BB9\u9BC6\u9BCF\u9BD1\u9BD2\u9BE3\u9BE2\u9BE4\u9BD4\u9BE1\u9C3A\u9BF2\u9BF1\u9BF0\u9C15\u9C14\u9C09\u9C13\u9C0C\u9C06\u9C08\u9C12\u9C0A\u9C04\u9C2E\u9C1B\u9C25\u9C24\u9C21\u9C30\u9C47\u9C32\u9C46\u9C3E\u9C5A\u9C60\u9C67\u9C76\u9C78\u9CE7\u9CEC\u9CF0\u9D09\u9D08\u9CEB\u9D03\u9D06\u9D2A\u9D26\u9DAF\u9D23\u9D1F\u9D44\u9D15\u9D12\u9D41\u9D3F\u9D3E\u9D46\u9D48"],["f3a1","\u9D5D\u9D5E\u9D64\u9D51\u9D50\u9D59\u9D72\u9D89\u9D87\u9DAB\u9D6F\u9D7A\u9D9A\u9DA4\u9DA9\u9DB2\u9DC4\u9DC1\u9DBB\u9DB8\u9DBA\u9DC6\u9DCF\u9DC2\u9DD9\u9DD3\u9DF8\u9DE6\u9DED\u9DEF\u9DFD\u9E1A\u9E1B\u9E1E\u9E75\u9E79\u9E7D\u9E81\u9E88\u9E8B\u9E8C\u9E92\u9E95\u9E91\u9E9D\u9EA5\u9EA9\u9EB8\u9EAA\u9EAD\u9761\u9ECC\u9ECE\u9ECF\u9ED0\u9ED4\u9EDC\u9EDE\u9EDD\u9EE0\u9EE5\u9EE8\u9EEF\u9EF4\u9EF6\u9EF7\u9EF9\u9EFB\u9EFC\u9EFD\u9F07\u9F08\u76B7\u9F15\u9F21\u9F2C\u9F3E\u9F4A\u9F52\u9F54\u9F63\u9F5F\u9F60\u9F61\u9F66\u9F67\u9F6C\u9F6A\u9F77\u9F72\u9F76\u9F95\u9F9C\u9FA0"],["f4a1","\u582F\u69C7\u9059\u7464\u51DC\u7199"],["f9a1","\u7E8A\u891C\u9348\u9288\u84DC\u4FC9\u70BB\u6631\u68C8\u92F9\u66FB\u5F45\u4E28\u4EE1\u4EFC\u4F00\u4F03\u4F39\u4F56\u4F92\u4F8A\u4F9A\u4F94\u4FCD\u5040\u5022\u4FFF\u501E\u5046\u5070\u5042\u5094\u50F4\u50D8\u514A\u5164\u519D\u51BE\u51EC\u5215\u529C\u52A6\u52C0\u52DB\u5300\u5307\u5324\u5372\u5393\u53B2\u53DD\uFA0E\u549C\u548A\u54A9\u54FF\u5586\u5759\u5765\u57AC\u57C8\u57C7\uFA0F\uFA10\u589E\u58B2\u590B\u5953\u595B\u595D\u5963\u59A4\u59BA\u5B56\u5BC0\u752F\u5BD8\u5BEC\u5C1E\u5CA6\u5CBA\u5CF5\u5D27\u5D53\uFA11\u5D42\u5D6D\u5DB8\u5DB9\u5DD0\u5F21\u5F34\u5F67\u5FB7"],["faa1","\u5FDE\u605D\u6085\u608A\u60DE\u60D5\u6120\u60F2\u6111\u6137\u6130\u6198\u6213\u62A6\u63F5\u6460\u649D\u64CE\u654E\u6600\u6615\u663B\u6609\u662E\u661E\u6624\u6665\u6657\u6659\uFA12\u6673\u6699\u66A0\u66B2\u66BF\u66FA\u670E\uF929\u6766\u67BB\u6852\u67C0\u6801\u6844\u68CF\uFA13\u6968\uFA14\u6998\u69E2\u6A30\u6A6B\u6A46\u6A73\u6A7E\u6AE2\u6AE4\u6BD6\u6C3F\u6C5C\u6C86\u6C6F\u6CDA\u6D04\u6D87\u6D6F\u6D96\u6DAC\u6DCF\u6DF8\u6DF2\u6DFC\u6E39\u6E5C\u6E27\u6E3C\u6EBF\u6F88\u6FB5\u6FF5\u7005\u7007\u7028\u7085\u70AB\u710F\u7104\u715C\u7146\u7147\uFA15\u71C1\u71FE\u72B1"],["fba1","\u72BE\u7324\uFA16\u7377\u73BD\u73C9\u73D6\u73E3\u73D2\u7407\u73F5\u7426\u742A\u7429\u742E\u7462\u7489\u749F\u7501\u756F\u7682\u769C\u769E\u769B\u76A6\uFA17\u7746\u52AF\u7821\u784E\u7864\u787A\u7930\uFA18\uFA19\uFA1A\u7994\uFA1B\u799B\u7AD1\u7AE7\uFA1C\u7AEB\u7B9E\uFA1D\u7D48\u7D5C\u7DB7\u7DA0\u7DD6\u7E52\u7F47\u7FA1\uFA1E\u8301\u8362\u837F\u83C7\u83F6\u8448\u84B4\u8553\u8559\u856B\uFA1F\u85B0\uFA20\uFA21\u8807\u88F5\u8A12\u8A37\u8A79\u8AA7\u8ABE\u8ADF\uFA22\u8AF6\u8B53\u8B7F\u8CF0\u8CF4\u8D12\u8D76\uFA23\u8ECF\uFA24\uFA25\u9067\u90DE\uFA26\u9115\u9127\u91DA"],["fca1","\u91D7\u91DE\u91ED\u91EE\u91E4\u91E5\u9206\u9210\u920A\u923A\u9240\u923C\u924E\u9259\u9251\u9239\u9267\u92A7\u9277\u9278\u92E7\u92D7\u92D9\u92D0\uFA27\u92D5\u92E0\u92D3\u9325\u9321\u92FB\uFA28\u931E\u92FF\u931D\u9302\u9370\u9357\u93A4\u93C6\u93DE\u93F8\u9431\u9445\u9448\u9592\uF9DC\uFA29\u969D\u96AF\u9733\u973B\u9743\u974D\u974F\u9751\u9755\u9857\u9865\uFA2A\uFA2B\u9927\uFA2C\u999E\u9A4E\u9AD9\u9ADC\u9B75\u9B72\u9B8F\u9BB1\u9BBB\u9C00\u9D70\u9D6B\uFA2D\u9E19\u9ED1"],["fcf1","\u2170",9,"\uFFE2\uFFE4\uFF07\uFF02"],["8fa2af","\u02D8\u02C7\xB8\u02D9\u02DD\xAF\u02DB\u02DA\uFF5E\u0384\u0385"],["8fa2c2","\xA1\xA6\xBF"],["8fa2eb","\xBA\xAA\xA9\xAE\u2122\xA4\u2116"],["8fa6e1","\u0386\u0388\u0389\u038A\u03AA"],["8fa6e7","\u038C"],["8fa6e9","\u038E\u03AB"],["8fa6ec","\u038F"],["8fa6f1","\u03AC\u03AD\u03AE\u03AF\u03CA\u0390\u03CC\u03C2\u03CD\u03CB\u03B0\u03CE"],["8fa7c2","\u0402",10,"\u040E\u040F"],["8fa7f2","\u0452",10,"\u045E\u045F"],["8fa9a1","\xC6\u0110"],["8fa9a4","\u0126"],["8fa9a6","\u0132"],["8fa9a8","\u0141\u013F"],["8fa9ab","\u014A\xD8\u0152"],["8fa9af","\u0166\xDE"],["8fa9c1","\xE6\u0111\xF0\u0127\u0131\u0133\u0138\u0142\u0140\u0149\u014B\xF8\u0153\xDF\u0167\xFE"],["8faaa1","\xC1\xC0\xC4\xC2\u0102\u01CD\u0100\u0104\xC5\xC3\u0106\u0108\u010C\xC7\u010A\u010E\xC9\xC8\xCB\xCA\u011A\u0116\u0112\u0118"],["8faaba","\u011C\u011E\u0122\u0120\u0124\xCD\xCC\xCF\xCE\u01CF\u0130\u012A\u012E\u0128\u0134\u0136\u0139\u013D\u013B\u0143\u0147\u0145\xD1\xD3\xD2\xD6\xD4\u01D1\u0150\u014C\xD5\u0154\u0158\u0156\u015A\u015C\u0160\u015E\u0164\u0162\xDA\xD9\xDC\xDB\u016C\u01D3\u0170\u016A\u0172\u016E\u0168\u01D7\u01DB\u01D9\u01D5\u0174\xDD\u0178\u0176\u0179\u017D\u017B"],["8faba1","\xE1\xE0\xE4\xE2\u0103\u01CE\u0101\u0105\xE5\xE3\u0107\u0109\u010D\xE7\u010B\u010F\xE9\xE8\xEB\xEA\u011B\u0117\u0113\u0119\u01F5\u011D\u011F"],["8fabbd","\u0121\u0125\xED\xEC\xEF\xEE\u01D0"],["8fabc5","\u012B\u012F\u0129\u0135\u0137\u013A\u013E\u013C\u0144\u0148\u0146\xF1\xF3\xF2\xF6\xF4\u01D2\u0151\u014D\xF5\u0155\u0159\u0157\u015B\u015D\u0161\u015F\u0165\u0163\xFA\xF9\xFC\xFB\u016D\u01D4\u0171\u016B\u0173\u016F\u0169\u01D8\u01DC\u01DA\u01D6\u0175\xFD\xFF\u0177\u017A\u017E\u017C"],["8fb0a1","\u4E02\u4E04\u4E05\u4E0C\u4E12\u4E1F\u4E23\u4E24\u4E28\u4E2B\u4E2E\u4E2F\u4E30\u4E35\u4E40\u4E41\u4E44\u4E47\u4E51\u4E5A\u4E5C\u4E63\u4E68\u4E69\u4E74\u4E75\u4E79\u4E7F\u4E8D\u4E96\u4E97\u4E9D\u4EAF\u4EB9\u4EC3\u4ED0\u4EDA\u4EDB\u4EE0\u4EE1\u4EE2\u4EE8\u4EEF\u4EF1\u4EF3\u4EF5\u4EFD\u4EFE\u4EFF\u4F00\u4F02\u4F03\u4F08\u4F0B\u4F0C\u4F12\u4F15\u4F16\u4F17\u4F19\u4F2E\u4F31\u4F60\u4F33\u4F35\u4F37\u4F39\u4F3B\u4F3E\u4F40\u4F42\u4F48\u4F49\u4F4B\u4F4C\u4F52\u4F54\u4F56\u4F58\u4F5F\u4F63\u4F6A\u4F6C\u4F6E\u4F71\u4F77\u4F78\u4F79\u4F7A\u4F7D\u4F7E\u4F81\u4F82\u4F84"],["8fb1a1","\u4F85\u4F89\u4F8A\u4F8C\u4F8E\u4F90\u4F92\u4F93\u4F94\u4F97\u4F99\u4F9A\u4F9E\u4F9F\u4FB2\u4FB7\u4FB9\u4FBB\u4FBC\u4FBD\u4FBE\u4FC0\u4FC1\u4FC5\u4FC6\u4FC8\u4FC9\u4FCB\u4FCC\u4FCD\u4FCF\u4FD2\u4FDC\u4FE0\u4FE2\u4FF0\u4FF2\u4FFC\u4FFD\u4FFF\u5000\u5001\u5004\u5007\u500A\u500C\u500E\u5010\u5013\u5017\u5018\u501B\u501C\u501D\u501E\u5022\u5027\u502E\u5030\u5032\u5033\u5035\u5040\u5041\u5042\u5045\u5046\u504A\u504C\u504E\u5051\u5052\u5053\u5057\u5059\u505F\u5060\u5062\u5063\u5066\u5067\u506A\u506D\u5070\u5071\u503B\u5081\u5083\u5084\u5086\u508A\u508E\u508F\u5090"],["8fb2a1","\u5092\u5093\u5094\u5096\u509B\u509C\u509E",4,"\u50AA\u50AF\u50B0\u50B9\u50BA\u50BD\u50C0\u50C3\u50C4\u50C7\u50CC\u50CE\u50D0\u50D3\u50D4\u50D8\u50DC\u50DD\u50DF\u50E2\u50E4\u50E6\u50E8\u50E9\u50EF\u50F1\u50F6\u50FA\u50FE\u5103\u5106\u5107\u5108\u510B\u510C\u510D\u510E\u50F2\u5110\u5117\u5119\u511B\u511C\u511D\u511E\u5123\u5127\u5128\u512C\u512D\u512F\u5131\u5133\u5134\u5135\u5138\u5139\u5142\u514A\u514F\u5153\u5155\u5157\u5158\u515F\u5164\u5166\u517E\u5183\u5184\u518B\u518E\u5198\u519D\u51A1\u51A3\u51AD\u51B8\u51BA\u51BC\u51BE\u51BF\u51C2"],["8fb3a1","\u51C8\u51CF\u51D1\u51D2\u51D3\u51D5\u51D8\u51DE\u51E2\u51E5\u51EE\u51F2\u51F3\u51F4\u51F7\u5201\u5202\u5205\u5212\u5213\u5215\u5216\u5218\u5222\u5228\u5231\u5232\u5235\u523C\u5245\u5249\u5255\u5257\u5258\u525A\u525C\u525F\u5260\u5261\u5266\u526E\u5277\u5278\u5279\u5280\u5282\u5285\u528A\u528C\u5293\u5295\u5296\u5297\u5298\u529A\u529C\u52A4\u52A5\u52A6\u52A7\u52AF\u52B0\u52B6\u52B7\u52B8\u52BA\u52BB\u52BD\u52C0\u52C4\u52C6\u52C8\u52CC\u52CF\u52D1\u52D4\u52D6\u52DB\u52DC\u52E1\u52E5\u52E8\u52E9\u52EA\u52EC\u52F0\u52F1\u52F4\u52F6\u52F7\u5300\u5303\u530A\u530B"],["8fb4a1","\u530C\u5311\u5313\u5318\u531B\u531C\u531E\u531F\u5325\u5327\u5328\u5329\u532B\u532C\u532D\u5330\u5332\u5335\u533C\u533D\u533E\u5342\u534C\u534B\u5359\u535B\u5361\u5363\u5365\u536C\u536D\u5372\u5379\u537E\u5383\u5387\u5388\u538E\u5393\u5394\u5399\u539D\u53A1\u53A4\u53AA\u53AB\u53AF\u53B2\u53B4\u53B5\u53B7\u53B8\u53BA\u53BD\u53C0\u53C5\u53CF\u53D2\u53D3\u53D5\u53DA\u53DD\u53DE\u53E0\u53E6\u53E7\u53F5\u5402\u5413\u541A\u5421\u5427\u5428\u542A\u542F\u5431\u5434\u5435\u5443\u5444\u5447\u544D\u544F\u545E\u5462\u5464\u5466\u5467\u5469\u546B\u546D\u546E\u5474\u547F"],["8fb5a1","\u5481\u5483\u5485\u5488\u5489\u548D\u5491\u5495\u5496\u549C\u549F\u54A1\u54A6\u54A7\u54A9\u54AA\u54AD\u54AE\u54B1\u54B7\u54B9\u54BA\u54BB\u54BF\u54C6\u54CA\u54CD\u54CE\u54E0\u54EA\u54EC\u54EF\u54F6\u54FC\u54FE\u54FF\u5500\u5501\u5505\u5508\u5509\u550C\u550D\u550E\u5515\u552A\u552B\u5532\u5535\u5536\u553B\u553C\u553D\u5541\u5547\u5549\u554A\u554D\u5550\u5551\u5558\u555A\u555B\u555E\u5560\u5561\u5564\u5566\u557F\u5581\u5582\u5586\u5588\u558E\u558F\u5591\u5592\u5593\u5594\u5597\u55A3\u55A4\u55AD\u55B2\u55BF\u55C1\u55C3\u55C6\u55C9\u55CB\u55CC\u55CE\u55D1\u55D2"],["8fb6a1","\u55D3\u55D7\u55D8\u55DB\u55DE\u55E2\u55E9\u55F6\u55FF\u5605\u5608\u560A\u560D",5,"\u5619\u562C\u5630\u5633\u5635\u5637\u5639\u563B\u563C\u563D\u563F\u5640\u5641\u5643\u5644\u5646\u5649\u564B\u564D\u564F\u5654\u565E\u5660\u5661\u5662\u5663\u5666\u5669\u566D\u566F\u5671\u5672\u5675\u5684\u5685\u5688\u568B\u568C\u5695\u5699\u569A\u569D\u569E\u569F\u56A6\u56A7\u56A8\u56A9\u56AB\u56AC\u56AD\u56B1\u56B3\u56B7\u56BE\u56C5\u56C9\u56CA\u56CB\u56CF\u56D0\u56CC\u56CD\u56D9\u56DC\u56DD\u56DF\u56E1\u56E4",4,"\u56F1\u56EB\u56ED"],["8fb7a1","\u56F6\u56F7\u5701\u5702\u5707\u570A\u570C\u5711\u5715\u571A\u571B\u571D\u5720\u5722\u5723\u5724\u5725\u5729\u572A\u572C\u572E\u572F\u5733\u5734\u573D\u573E\u573F\u5745\u5746\u574C\u574D\u5752\u5762\u5765\u5767\u5768\u576B\u576D",4,"\u5773\u5774\u5775\u5777\u5779\u577A\u577B\u577C\u577E\u5781\u5783\u578C\u5794\u5797\u5799\u579A\u579C\u579D\u579E\u579F\u57A1\u5795\u57A7\u57A8\u57A9\u57AC\u57B8\u57BD\u57C7\u57C8\u57CC\u57CF\u57D5\u57DD\u57DE\u57E4\u57E6\u57E7\u57E9\u57ED\u57F0\u57F5\u57F6\u57F8\u57FD\u57FE\u57FF\u5803\u5804\u5808\u5809\u57E1"],["8fb8a1","\u580C\u580D\u581B\u581E\u581F\u5820\u5826\u5827\u582D\u5832\u5839\u583F\u5849\u584C\u584D\u584F\u5850\u5855\u585F\u5861\u5864\u5867\u5868\u5878\u587C\u587F\u5880\u5881\u5887\u5888\u5889\u588A\u588C\u588D\u588F\u5890\u5894\u5896\u589D\u58A0\u58A1\u58A2\u58A6\u58A9\u58B1\u58B2\u58C4\u58BC\u58C2\u58C8\u58CD\u58CE\u58D0\u58D2\u58D4\u58D6\u58DA\u58DD\u58E1\u58E2\u58E9\u58F3\u5905\u5906\u590B\u590C\u5912\u5913\u5914\u8641\u591D\u5921\u5923\u5924\u5928\u592F\u5930\u5933\u5935\u5936\u593F\u5943\u5946\u5952\u5953\u5959\u595B\u595D\u595E\u595F\u5961\u5963\u596B\u596D"],["8fb9a1","\u596F\u5972\u5975\u5976\u5979\u597B\u597C\u598B\u598C\u598E\u5992\u5995\u5997\u599F\u59A4\u59A7\u59AD\u59AE\u59AF\u59B0\u59B3\u59B7\u59BA\u59BC\u59C1\u59C3\u59C4\u59C8\u59CA\u59CD\u59D2\u59DD\u59DE\u59DF\u59E3\u59E4\u59E7\u59EE\u59EF\u59F1\u59F2\u59F4\u59F7\u5A00\u5A04\u5A0C\u5A0D\u5A0E\u5A12\u5A13\u5A1E\u5A23\u5A24\u5A27\u5A28\u5A2A\u5A2D\u5A30\u5A44\u5A45\u5A47\u5A48\u5A4C\u5A50\u5A55\u5A5E\u5A63\u5A65\u5A67\u5A6D\u5A77\u5A7A\u5A7B\u5A7E\u5A8B\u5A90\u5A93\u5A96\u5A99\u5A9C\u5A9E\u5A9F\u5AA0\u5AA2\u5AA7\u5AAC\u5AB1\u5AB2\u5AB3\u5AB5\u5AB8\u5ABA\u5ABB\u5ABF"],["8fbaa1","\u5AC4\u5AC6\u5AC8\u5ACF\u5ADA\u5ADC\u5AE0\u5AE5\u5AEA\u5AEE\u5AF5\u5AF6\u5AFD\u5B00\u5B01\u5B08\u5B17\u5B34\u5B19\u5B1B\u5B1D\u5B21\u5B25\u5B2D\u5B38\u5B41\u5B4B\u5B4C\u5B52\u5B56\u5B5E\u5B68\u5B6E\u5B6F\u5B7C\u5B7D\u5B7E\u5B7F\u5B81\u5B84\u5B86\u5B8A\u5B8E\u5B90\u5B91\u5B93\u5B94\u5B96\u5BA8\u5BA9\u5BAC\u5BAD\u5BAF\u5BB1\u5BB2\u5BB7\u5BBA\u5BBC\u5BC0\u5BC1\u5BCD\u5BCF\u5BD6",4,"\u5BE0\u5BEF\u5BF1\u5BF4\u5BFD\u5C0C\u5C17\u5C1E\u5C1F\u5C23\u5C26\u5C29\u5C2B\u5C2C\u5C2E\u5C30\u5C32\u5C35\u5C36\u5C59\u5C5A\u5C5C\u5C62\u5C63\u5C67\u5C68\u5C69"],["8fbba1","\u5C6D\u5C70\u5C74\u5C75\u5C7A\u5C7B\u5C7C\u5C7D\u5C87\u5C88\u5C8A\u5C8F\u5C92\u5C9D\u5C9F\u5CA0\u5CA2\u5CA3\u5CA6\u5CAA\u5CB2\u5CB4\u5CB5\u5CBA\u5CC9\u5CCB\u5CD2\u5CDD\u5CD7\u5CEE\u5CF1\u5CF2\u5CF4\u5D01\u5D06\u5D0D\u5D12\u5D2B\u5D23\u5D24\u5D26\u5D27\u5D31\u5D34\u5D39\u5D3D\u5D3F\u5D42\u5D43\u5D46\u5D48\u5D55\u5D51\u5D59\u5D4A\u5D5F\u5D60\u5D61\u5D62\u5D64\u5D6A\u5D6D\u5D70\u5D79\u5D7A\u5D7E\u5D7F\u5D81\u5D83\u5D88\u5D8A\u5D92\u5D93\u5D94\u5D95\u5D99\u5D9B\u5D9F\u5DA0\u5DA7\u5DAB\u5DB0\u5DB4\u5DB8\u5DB9\u5DC3\u5DC7\u5DCB\u5DD0\u5DCE\u5DD8\u5DD9\u5DE0\u5DE4"],["8fbca1","\u5DE9\u5DF8\u5DF9\u5E00\u5E07\u5E0D\u5E12\u5E14\u5E15\u5E18\u5E1F\u5E20\u5E2E\u5E28\u5E32\u5E35\u5E3E\u5E4B\u5E50\u5E49\u5E51\u5E56\u5E58\u5E5B\u5E5C\u5E5E\u5E68\u5E6A",4,"\u5E70\u5E80\u5E8B\u5E8E\u5EA2\u5EA4\u5EA5\u5EA8\u5EAA\u5EAC\u5EB1\u5EB3\u5EBD\u5EBE\u5EBF\u5EC6\u5ECC\u5ECB\u5ECE\u5ED1\u5ED2\u5ED4\u5ED5\u5EDC\u5EDE\u5EE5\u5EEB\u5F02\u5F06\u5F07\u5F08\u5F0E\u5F19\u5F1C\u5F1D\u5F21\u5F22\u5F23\u5F24\u5F28\u5F2B\u5F2C\u5F2E\u5F30\u5F34\u5F36\u5F3B\u5F3D\u5F3F\u5F40\u5F44\u5F45\u5F47\u5F4D\u5F50\u5F54\u5F58\u5F5B\u5F60\u5F63\u5F64\u5F67"],["8fbda1","\u5F6F\u5F72\u5F74\u5F75\u5F78\u5F7A\u5F7D\u5F7E\u5F89\u5F8D\u5F8F\u5F96\u5F9C\u5F9D\u5FA2\u5FA7\u5FAB\u5FA4\u5FAC\u5FAF\u5FB0\u5FB1\u5FB8\u5FC4\u5FC7\u5FC8\u5FC9\u5FCB\u5FD0",4,"\u5FDE\u5FE1\u5FE2\u5FE8\u5FE9\u5FEA\u5FEC\u5FED\u5FEE\u5FEF\u5FF2\u5FF3\u5FF6\u5FFA\u5FFC\u6007\u600A\u600D\u6013\u6014\u6017\u6018\u601A\u601F\u6024\u602D\u6033\u6035\u6040\u6047\u6048\u6049\u604C\u6051\u6054\u6056\u6057\u605D\u6061\u6067\u6071\u607E\u607F\u6082\u6086\u6088\u608A\u608E\u6091\u6093\u6095\u6098\u609D\u609E\u60A2\u60A4\u60A5\u60A8\u60B0\u60B1\u60B7"],["8fbea1","\u60BB\u60BE\u60C2\u60C4\u60C8\u60C9\u60CA\u60CB\u60CE\u60CF\u60D4\u60D5\u60D9\u60DB\u60DD\u60DE\u60E2\u60E5\u60F2\u60F5\u60F8\u60FC\u60FD\u6102\u6107\u610A\u610C\u6110",4,"\u6116\u6117\u6119\u611C\u611E\u6122\u612A\u612B\u6130\u6131\u6135\u6136\u6137\u6139\u6141\u6145\u6146\u6149\u615E\u6160\u616C\u6172\u6178\u617B\u617C\u617F\u6180\u6181\u6183\u6184\u618B\u618D\u6192\u6193\u6197\u6198\u619C\u619D\u619F\u61A0\u61A5\u61A8\u61AA\u61AD\u61B8\u61B9\u61BC\u61C0\u61C1\u61C2\u61CE\u61CF\u61D5\u61DC\u61DD\u61DE\u61DF\u61E1\u61E2\u61E7\u61E9\u61E5"],["8fbfa1","\u61EC\u61ED\u61EF\u6201\u6203\u6204\u6207\u6213\u6215\u621C\u6220\u6222\u6223\u6227\u6229\u622B\u6239\u623D\u6242\u6243\u6244\u6246\u624C\u6250\u6251\u6252\u6254\u6256\u625A\u625C\u6264\u626D\u626F\u6273\u627A\u627D\u628D\u628E\u628F\u6290\u62A6\u62A8\u62B3\u62B6\u62B7\u62BA\u62BE\u62BF\u62C4\u62CE\u62D5\u62D6\u62DA\u62EA\u62F2\u62F4\u62FC\u62FD\u6303\u6304\u630A\u630B\u630D\u6310\u6313\u6316\u6318\u6329\u632A\u632D\u6335\u6336\u6339\u633C\u6341\u6342\u6343\u6344\u6346\u634A\u634B\u634E\u6352\u6353\u6354\u6358\u635B\u6365\u6366\u636C\u636D\u6371\u6374\u6375"],["8fc0a1","\u6378\u637C\u637D\u637F\u6382\u6384\u6387\u638A\u6390\u6394\u6395\u6399\u639A\u639E\u63A4\u63A6\u63AD\u63AE\u63AF\u63BD\u63C1\u63C5\u63C8\u63CE\u63D1\u63D3\u63D4\u63D5\u63DC\u63E0\u63E5\u63EA\u63EC\u63F2\u63F3\u63F5\u63F8\u63F9\u6409\u640A\u6410\u6412\u6414\u6418\u641E\u6420\u6422\u6424\u6425\u6429\u642A\u642F\u6430\u6435\u643D\u643F\u644B\u644F\u6451\u6452\u6453\u6454\u645A\u645B\u645C\u645D\u645F\u6460\u6461\u6463\u646D\u6473\u6474\u647B\u647D\u6485\u6487\u648F\u6490\u6491\u6498\u6499\u649B\u649D\u649F\u64A1\u64A3\u64A6\u64A8\u64AC\u64B3\u64BD\u64BE\u64BF"],["8fc1a1","\u64C4\u64C9\u64CA\u64CB\u64CC\u64CE\u64D0\u64D1\u64D5\u64D7\u64E4\u64E5\u64E9\u64EA\u64ED\u64F0\u64F5\u64F7\u64FB\u64FF\u6501\u6504\u6508\u6509\u650A\u650F\u6513\u6514\u6516\u6519\u651B\u651E\u651F\u6522\u6526\u6529\u652E\u6531\u653A\u653C\u653D\u6543\u6547\u6549\u6550\u6552\u6554\u655F\u6560\u6567\u656B\u657A\u657D\u6581\u6585\u658A\u6592\u6595\u6598\u659D\u65A0\u65A3\u65A6\u65AE\u65B2\u65B3\u65B4\u65BF\u65C2\u65C8\u65C9\u65CE\u65D0\u65D4\u65D6\u65D8\u65DF\u65F0\u65F2\u65F4\u65F5\u65F9\u65FE\u65FF\u6600\u6604\u6608\u6609\u660D\u6611\u6612\u6615\u6616\u661D"],["8fc2a1","\u661E\u6621\u6622\u6623\u6624\u6626\u6629\u662A\u662B\u662C\u662E\u6630\u6631\u6633\u6639\u6637\u6640\u6645\u6646\u664A\u664C\u6651\u664E\u6657\u6658\u6659\u665B\u665C\u6660\u6661\u66FB\u666A\u666B\u666C\u667E\u6673\u6675\u667F\u6677\u6678\u6679\u667B\u6680\u667C\u668B\u668C\u668D\u6690\u6692\u6699\u669A\u669B\u669C\u669F\u66A0\u66A4\u66AD\u66B1\u66B2\u66B5\u66BB\u66BF\u66C0\u66C2\u66C3\u66C8\u66CC\u66CE\u66CF\u66D4\u66DB\u66DF\u66E8\u66EB\u66EC\u66EE\u66FA\u6705\u6707\u670E\u6713\u6719\u671C\u6720\u6722\u6733\u673E\u6745\u6747\u6748\u674C\u6754\u6755\u675D"],["8fc3a1","\u6766\u676C\u676E\u6774\u6776\u677B\u6781\u6784\u678E\u678F\u6791\u6793\u6796\u6798\u6799\u679B\u67B0\u67B1\u67B2\u67B5\u67BB\u67BC\u67BD\u67F9\u67C0\u67C2\u67C3\u67C5\u67C8\u67C9\u67D2\u67D7\u67D9\u67DC\u67E1\u67E6\u67F0\u67F2\u67F6\u67F7\u6852\u6814\u6819\u681D\u681F\u6828\u6827\u682C\u682D\u682F\u6830\u6831\u6833\u683B\u683F\u6844\u6845\u684A\u684C\u6855\u6857\u6858\u685B\u686B\u686E",4,"\u6875\u6879\u687A\u687B\u687C\u6882\u6884\u6886\u6888\u6896\u6898\u689A\u689C\u68A1\u68A3\u68A5\u68A9\u68AA\u68AE\u68B2\u68BB\u68C5\u68C8\u68CC\u68CF"],["8fc4a1","\u68D0\u68D1\u68D3\u68D6\u68D9\u68DC\u68DD\u68E5\u68E8\u68EA\u68EB\u68EC\u68ED\u68F0\u68F1\u68F5\u68F6\u68FB\u68FC\u68FD\u6906\u6909\u690A\u6910\u6911\u6913\u6916\u6917\u6931\u6933\u6935\u6938\u693B\u6942\u6945\u6949\u694E\u6957\u695B\u6963\u6964\u6965\u6966\u6968\u6969\u696C\u6970\u6971\u6972\u697A\u697B\u697F\u6980\u698D\u6992\u6996\u6998\u69A1\u69A5\u69A6\u69A8\u69AB\u69AD\u69AF\u69B7\u69B8\u69BA\u69BC\u69C5\u69C8\u69D1\u69D6\u69D7\u69E2\u69E5\u69EE\u69EF\u69F1\u69F3\u69F5\u69FE\u6A00\u6A01\u6A03\u6A0F\u6A11\u6A15\u6A1A\u6A1D\u6A20\u6A24\u6A28\u6A30\u6A32"],["8fc5a1","\u6A34\u6A37\u6A3B\u6A3E\u6A3F\u6A45\u6A46\u6A49\u6A4A\u6A4E\u6A50\u6A51\u6A52\u6A55\u6A56\u6A5B\u6A64\u6A67\u6A6A\u6A71\u6A73\u6A7E\u6A81\u6A83\u6A86\u6A87\u6A89\u6A8B\u6A91\u6A9B\u6A9D\u6A9E\u6A9F\u6AA5\u6AAB\u6AAF\u6AB0\u6AB1\u6AB4\u6ABD\u6ABE\u6ABF\u6AC6\u6AC9\u6AC8\u6ACC\u6AD0\u6AD4\u6AD5\u6AD6\u6ADC\u6ADD\u6AE4\u6AE7\u6AEC\u6AF0\u6AF1\u6AF2\u6AFC\u6AFD\u6B02\u6B03\u6B06\u6B07\u6B09\u6B0F\u6B10\u6B11\u6B17\u6B1B\u6B1E\u6B24\u6B28\u6B2B\u6B2C\u6B2F\u6B35\u6B36\u6B3B\u6B3F\u6B46\u6B4A\u6B4D\u6B52\u6B56\u6B58\u6B5D\u6B60\u6B67\u6B6B\u6B6E\u6B70\u6B75\u6B7D"],["8fc6a1","\u6B7E\u6B82\u6B85\u6B97\u6B9B\u6B9F\u6BA0\u6BA2\u6BA3\u6BA8\u6BA9\u6BAC\u6BAD\u6BAE\u6BB0\u6BB8\u6BB9\u6BBD\u6BBE\u6BC3\u6BC4\u6BC9\u6BCC\u6BD6\u6BDA\u6BE1\u6BE3\u6BE6\u6BE7\u6BEE\u6BF1\u6BF7\u6BF9\u6BFF\u6C02\u6C04\u6C05\u6C09\u6C0D\u6C0E\u6C10\u6C12\u6C19\u6C1F\u6C26\u6C27\u6C28\u6C2C\u6C2E\u6C33\u6C35\u6C36\u6C3A\u6C3B\u6C3F\u6C4A\u6C4B\u6C4D\u6C4F\u6C52\u6C54\u6C59\u6C5B\u6C5C\u6C6B\u6C6D\u6C6F\u6C74\u6C76\u6C78\u6C79\u6C7B\u6C85\u6C86\u6C87\u6C89\u6C94\u6C95\u6C97\u6C98\u6C9C\u6C9F\u6CB0\u6CB2\u6CB4\u6CC2\u6CC6\u6CCD\u6CCF\u6CD0\u6CD1\u6CD2\u6CD4\u6CD6"],["8fc7a1","\u6CDA\u6CDC\u6CE0\u6CE7\u6CE9\u6CEB\u6CEC\u6CEE\u6CF2\u6CF4\u6D04\u6D07\u6D0A\u6D0E\u6D0F\u6D11\u6D13\u6D1A\u6D26\u6D27\u6D28\u6C67\u6D2E\u6D2F\u6D31\u6D39\u6D3C\u6D3F\u6D57\u6D5E\u6D5F\u6D61\u6D65\u6D67\u6D6F\u6D70\u6D7C\u6D82\u6D87\u6D91\u6D92\u6D94\u6D96\u6D97\u6D98\u6DAA\u6DAC\u6DB4\u6DB7\u6DB9\u6DBD\u6DBF\u6DC4\u6DC8\u6DCA\u6DCE\u6DCF\u6DD6\u6DDB\u6DDD\u6DDF\u6DE0\u6DE2\u6DE5\u6DE9\u6DEF\u6DF0\u6DF4\u6DF6\u6DFC\u6E00\u6E04\u6E1E\u6E22\u6E27\u6E32\u6E36\u6E39\u6E3B\u6E3C\u6E44\u6E45\u6E48\u6E49\u6E4B\u6E4F\u6E51\u6E52\u6E53\u6E54\u6E57\u6E5C\u6E5D\u6E5E"],["8fc8a1","\u6E62\u6E63\u6E68\u6E73\u6E7B\u6E7D\u6E8D\u6E93\u6E99\u6EA0\u6EA7\u6EAD\u6EAE\u6EB1\u6EB3\u6EBB\u6EBF\u6EC0\u6EC1\u6EC3\u6EC7\u6EC8\u6ECA\u6ECD\u6ECE\u6ECF\u6EEB\u6EED\u6EEE\u6EF9\u6EFB\u6EFD\u6F04\u6F08\u6F0A\u6F0C\u6F0D\u6F16\u6F18\u6F1A\u6F1B\u6F26\u6F29\u6F2A\u6F2F\u6F30\u6F33\u6F36\u6F3B\u6F3C\u6F2D\u6F4F\u6F51\u6F52\u6F53\u6F57\u6F59\u6F5A\u6F5D\u6F5E\u6F61\u6F62\u6F68\u6F6C\u6F7D\u6F7E\u6F83\u6F87\u6F88\u6F8B\u6F8C\u6F8D\u6F90\u6F92\u6F93\u6F94\u6F96\u6F9A\u6F9F\u6FA0\u6FA5\u6FA6\u6FA7\u6FA8\u6FAE\u6FAF\u6FB0\u6FB5\u6FB6\u6FBC\u6FC5\u6FC7\u6FC8\u6FCA"],["8fc9a1","\u6FDA\u6FDE\u6FE8\u6FE9\u6FF0\u6FF5\u6FF9\u6FFC\u6FFD\u7000\u7005\u7006\u7007\u700D\u7017\u7020\u7023\u702F\u7034\u7037\u7039\u703C\u7043\u7044\u7048\u7049\u704A\u704B\u7054\u7055\u705D\u705E\u704E\u7064\u7065\u706C\u706E\u7075\u7076\u707E\u7081\u7085\u7086\u7094",4,"\u709B\u70A4\u70AB\u70B0\u70B1\u70B4\u70B7\u70CA\u70D1\u70D3\u70D4\u70D5\u70D6\u70D8\u70DC\u70E4\u70FA\u7103",4,"\u710B\u710C\u710F\u711E\u7120\u712B\u712D\u712F\u7130\u7131\u7138\u7141\u7145\u7146\u7147\u714A\u714B\u7150\u7152\u7157\u715A\u715C\u715E\u7160"],["8fcaa1","\u7168\u7179\u7180\u7185\u7187\u718C\u7192\u719A\u719B\u71A0\u71A2\u71AF\u71B0\u71B2\u71B3\u71BA\u71BF\u71C0\u71C1\u71C4\u71CB\u71CC\u71D3\u71D6\u71D9\u71DA\u71DC\u71F8\u71FE\u7200\u7207\u7208\u7209\u7213\u7217\u721A\u721D\u721F\u7224\u722B\u722F\u7234\u7238\u7239\u7241\u7242\u7243\u7245\u724E\u724F\u7250\u7253\u7255\u7256\u725A\u725C\u725E\u7260\u7263\u7268\u726B\u726E\u726F\u7271\u7277\u7278\u727B\u727C\u727F\u7284\u7289\u728D\u728E\u7293\u729B\u72A8\u72AD\u72AE\u72B1\u72B4\u72BE\u72C1\u72C7\u72C9\u72CC\u72D5\u72D6\u72D8\u72DF\u72E5\u72F3\u72F4\u72FA\u72FB"],["8fcba1","\u72FE\u7302\u7304\u7305\u7307\u730B\u730D\u7312\u7313\u7318\u7319\u731E\u7322\u7324\u7327\u7328\u732C\u7331\u7332\u7335\u733A\u733B\u733D\u7343\u734D\u7350\u7352\u7356\u7358\u735D\u735E\u735F\u7360\u7366\u7367\u7369\u736B\u736C\u736E\u736F\u7371\u7377\u7379\u737C\u7380\u7381\u7383\u7385\u7386\u738E\u7390\u7393\u7395\u7397\u7398\u739C\u739E\u739F\u73A0\u73A2\u73A5\u73A6\u73AA\u73AB\u73AD\u73B5\u73B7\u73B9\u73BC\u73BD\u73BF\u73C5\u73C6\u73C9\u73CB\u73CC\u73CF\u73D2\u73D3\u73D6\u73D9\u73DD\u73E1\u73E3\u73E6\u73E7\u73E9\u73F4\u73F5\u73F7\u73F9\u73FA\u73FB\u73FD"],["8fcca1","\u73FF\u7400\u7401\u7404\u7407\u740A\u7411\u741A\u741B\u7424\u7426\u7428",9,"\u7439\u7440\u7443\u7444\u7446\u7447\u744B\u744D\u7451\u7452\u7457\u745D\u7462\u7466\u7467\u7468\u746B\u746D\u746E\u7471\u7472\u7480\u7481\u7485\u7486\u7487\u7489\u748F\u7490\u7491\u7492\u7498\u7499\u749A\u749C\u749F\u74A0\u74A1\u74A3\u74A6\u74A8\u74A9\u74AA\u74AB\u74AE\u74AF\u74B1\u74B2\u74B5\u74B9\u74BB\u74BF\u74C8\u74C9\u74CC\u74D0\u74D3\u74D8\u74DA\u74DB\u74DE\u74DF\u74E4\u74E8\u74EA\u74EB\u74EF\u74F4\u74FA\u74FB\u74FC\u74FF\u7506"],["8fcda1","\u7512\u7516\u7517\u7520\u7521\u7524\u7527\u7529\u752A\u752F\u7536\u7539\u753D\u753E\u753F\u7540\u7543\u7547\u7548\u754E\u7550\u7552\u7557\u755E\u755F\u7561\u756F\u7571\u7579",5,"\u7581\u7585\u7590\u7592\u7593\u7595\u7599\u759C\u75A2\u75A4\u75B4\u75BA\u75BF\u75C0\u75C1\u75C4\u75C6\u75CC\u75CE\u75CF\u75D7\u75DC\u75DF\u75E0\u75E1\u75E4\u75E7\u75EC\u75EE\u75EF\u75F1\u75F9\u7600\u7602\u7603\u7604\u7607\u7608\u760A\u760C\u760F\u7612\u7613\u7615\u7616\u7619\u761B\u761C\u761D\u761E\u7623\u7625\u7626\u7629\u762D\u7632\u7633\u7635\u7638\u7639"],["8fcea1","\u763A\u763C\u764A\u7640\u7641\u7643\u7644\u7645\u7649\u764B\u7655\u7659\u765F\u7664\u7665\u766D\u766E\u766F\u7671\u7674\u7681\u7685\u768C\u768D\u7695\u769B\u769C\u769D\u769F\u76A0\u76A2",6,"\u76AA\u76AD\u76BD\u76C1\u76C5\u76C9\u76CB\u76CC\u76CE\u76D4\u76D9\u76E0\u76E6\u76E8\u76EC\u76F0\u76F1\u76F6\u76F9\u76FC\u7700\u7706\u770A\u770E\u7712\u7714\u7715\u7717\u7719\u771A\u771C\u7722\u7728\u772D\u772E\u772F\u7734\u7735\u7736\u7739\u773D\u773E\u7742\u7745\u7746\u774A\u774D\u774E\u774F\u7752\u7756\u7757\u775C\u775E\u775F\u7760\u7762"],["8fcfa1","\u7764\u7767\u776A\u776C\u7770\u7772\u7773\u7774\u777A\u777D\u7780\u7784\u778C\u778D\u7794\u7795\u7796\u779A\u779F\u77A2\u77A7\u77AA\u77AE\u77AF\u77B1\u77B5\u77BE\u77C3\u77C9\u77D1\u77D2\u77D5\u77D9\u77DE\u77DF\u77E0\u77E4\u77E6\u77EA\u77EC\u77F0\u77F1\u77F4\u77F8\u77FB\u7805\u7806\u7809\u780D\u780E\u7811\u781D\u7821\u7822\u7823\u782D\u782E\u7830\u7835\u7837\u7843\u7844\u7847\u7848\u784C\u784E\u7852\u785C\u785E\u7860\u7861\u7863\u7864\u7868\u786A\u786E\u787A\u787E\u788A\u788F\u7894\u7898\u78A1\u789D\u789E\u789F\u78A4\u78A8\u78AC\u78AD\u78B0\u78B1\u78B2\u78B3"],["8fd0a1","\u78BB\u78BD\u78BF\u78C7\u78C8\u78C9\u78CC\u78CE\u78D2\u78D3\u78D5\u78D6\u78E4\u78DB\u78DF\u78E0\u78E1\u78E6\u78EA\u78F2\u78F3\u7900\u78F6\u78F7\u78FA\u78FB\u78FF\u7906\u790C\u7910\u791A\u791C\u791E\u791F\u7920\u7925\u7927\u7929\u792D\u7931\u7934\u7935\u793B\u793D\u793F\u7944\u7945\u7946\u794A\u794B\u794F\u7951\u7954\u7958\u795B\u795C\u7967\u7969\u796B\u7972\u7979\u797B\u797C\u797E\u798B\u798C\u7991\u7993\u7994\u7995\u7996\u7998\u799B\u799C\u79A1\u79A8\u79A9\u79AB\u79AF\u79B1\u79B4\u79B8\u79BB\u79C2\u79C4\u79C7\u79C8\u79CA\u79CF\u79D4\u79D6\u79DA\u79DD\u79DE"],["8fd1a1","\u79E0\u79E2\u79E5\u79EA\u79EB\u79ED\u79F1\u79F8\u79FC\u7A02\u7A03\u7A07\u7A09\u7A0A\u7A0C\u7A11\u7A15\u7A1B\u7A1E\u7A21\u7A27\u7A2B\u7A2D\u7A2F\u7A30\u7A34\u7A35\u7A38\u7A39\u7A3A\u7A44\u7A45\u7A47\u7A48\u7A4C\u7A55\u7A56\u7A59\u7A5C\u7A5D\u7A5F\u7A60\u7A65\u7A67\u7A6A\u7A6D\u7A75\u7A78\u7A7E\u7A80\u7A82\u7A85\u7A86\u7A8A\u7A8B\u7A90\u7A91\u7A94\u7A9E\u7AA0\u7AA3\u7AAC\u7AB3\u7AB5\u7AB9\u7ABB\u7ABC\u7AC6\u7AC9\u7ACC\u7ACE\u7AD1\u7ADB\u7AE8\u7AE9\u7AEB\u7AEC\u7AF1\u7AF4\u7AFB\u7AFD\u7AFE\u7B07\u7B14\u7B1F\u7B23\u7B27\u7B29\u7B2A\u7B2B\u7B2D\u7B2E\u7B2F\u7B30"],["8fd2a1","\u7B31\u7B34\u7B3D\u7B3F\u7B40\u7B41\u7B47\u7B4E\u7B55\u7B60\u7B64\u7B66\u7B69\u7B6A\u7B6D\u7B6F\u7B72\u7B73\u7B77\u7B84\u7B89\u7B8E\u7B90\u7B91\u7B96\u7B9B\u7B9E\u7BA0\u7BA5\u7BAC\u7BAF\u7BB0\u7BB2\u7BB5\u7BB6\u7BBA\u7BBB\u7BBC\u7BBD\u7BC2\u7BC5\u7BC8\u7BCA\u7BD4\u7BD6\u7BD7\u7BD9\u7BDA\u7BDB\u7BE8\u7BEA\u7BF2\u7BF4\u7BF5\u7BF8\u7BF9\u7BFA\u7BFC\u7BFE\u7C01\u7C02\u7C03\u7C04\u7C06\u7C09\u7C0B\u7C0C\u7C0E\u7C0F\u7C19\u7C1B\u7C20\u7C25\u7C26\u7C28\u7C2C\u7C31\u7C33\u7C34\u7C36\u7C39\u7C3A\u7C46\u7C4A\u7C55\u7C51\u7C52\u7C53\u7C59",5],["8fd3a1","\u7C61\u7C63\u7C67\u7C69\u7C6D\u7C6E\u7C70\u7C72\u7C79\u7C7C\u7C7D\u7C86\u7C87\u7C8F\u7C94\u7C9E\u7CA0\u7CA6\u7CB0\u7CB6\u7CB7\u7CBA\u7CBB\u7CBC\u7CBF\u7CC4\u7CC7\u7CC8\u7CC9\u7CCD\u7CCF\u7CD3\u7CD4\u7CD5\u7CD7\u7CD9\u7CDA\u7CDD\u7CE6\u7CE9\u7CEB\u7CF5\u7D03\u7D07\u7D08\u7D09\u7D0F\u7D11\u7D12\u7D13\u7D16\u7D1D\u7D1E\u7D23\u7D26\u7D2A\u7D2D\u7D31\u7D3C\u7D3D\u7D3E\u7D40\u7D41\u7D47\u7D48\u7D4D\u7D51\u7D53\u7D57\u7D59\u7D5A\u7D5C\u7D5D\u7D65\u7D67\u7D6A\u7D70\u7D78\u7D7A\u7D7B\u7D7F\u7D81\u7D82\u7D83\u7D85\u7D86\u7D88\u7D8B\u7D8C\u7D8D\u7D91\u7D96\u7D97\u7D9D"],["8fd4a1","\u7D9E\u7DA6\u7DA7\u7DAA\u7DB3\u7DB6\u7DB7\u7DB9\u7DC2",4,"\u7DCC\u7DCD\u7DCE\u7DD7\u7DD9\u7E00\u7DE2\u7DE5\u7DE6\u7DEA\u7DEB\u7DED\u7DF1\u7DF5\u7DF6\u7DF9\u7DFA\u7E08\u7E10\u7E11\u7E15\u7E17\u7E1C\u7E1D\u7E20\u7E27\u7E28\u7E2C\u7E2D\u7E2F\u7E33\u7E36\u7E3F\u7E44\u7E45\u7E47\u7E4E\u7E50\u7E52\u7E58\u7E5F\u7E61\u7E62\u7E65\u7E6B\u7E6E\u7E6F\u7E73\u7E78\u7E7E\u7E81\u7E86\u7E87\u7E8A\u7E8D\u7E91\u7E95\u7E98\u7E9A\u7E9D\u7E9E\u7F3C\u7F3B\u7F3D\u7F3E\u7F3F\u7F43\u7F44\u7F47\u7F4F\u7F52\u7F53\u7F5B\u7F5C\u7F5D\u7F61\u7F63\u7F64\u7F65\u7F66\u7F6D"],["8fd5a1","\u7F71\u7F7D\u7F7E\u7F7F\u7F80\u7F8B\u7F8D\u7F8F\u7F90\u7F91\u7F96\u7F97\u7F9C\u7FA1\u7FA2\u7FA6\u7FAA\u7FAD\u7FB4\u7FBC\u7FBF\u7FC0\u7FC3\u7FC8\u7FCE\u7FCF\u7FDB\u7FDF\u7FE3\u7FE5\u7FE8\u7FEC\u7FEE\u7FEF\u7FF2\u7FFA\u7FFD\u7FFE\u7FFF\u8007\u8008\u800A\u800D\u800E\u800F\u8011\u8013\u8014\u8016\u801D\u801E\u801F\u8020\u8024\u8026\u802C\u802E\u8030\u8034\u8035\u8037\u8039\u803A\u803C\u803E\u8040\u8044\u8060\u8064\u8066\u806D\u8071\u8075\u8081\u8088\u808E\u809C\u809E\u80A6\u80A7\u80AB\u80B8\u80B9\u80C8\u80CD\u80CF\u80D2\u80D4\u80D5\u80D7\u80D8\u80E0\u80ED\u80EE"],["8fd6a1","\u80F0\u80F2\u80F3\u80F6\u80F9\u80FA\u80FE\u8103\u810B\u8116\u8117\u8118\u811C\u811E\u8120\u8124\u8127\u812C\u8130\u8135\u813A\u813C\u8145\u8147\u814A\u814C\u8152\u8157\u8160\u8161\u8167\u8168\u8169\u816D\u816F\u8177\u8181\u8190\u8184\u8185\u8186\u818B\u818E\u8196\u8198\u819B\u819E\u81A2\u81AE\u81B2\u81B4\u81BB\u81CB\u81C3\u81C5\u81CA\u81CE\u81CF\u81D5\u81D7\u81DB\u81DD\u81DE\u81E1\u81E4\u81EB\u81EC\u81F0\u81F1\u81F2\u81F5\u81F6\u81F8\u81F9\u81FD\u81FF\u8200\u8203\u820F\u8213\u8214\u8219\u821A\u821D\u8221\u8222\u8228\u8232\u8234\u823A\u8243\u8244\u8245\u8246"],["8fd7a1","\u824B\u824E\u824F\u8251\u8256\u825C\u8260\u8263\u8267\u826D\u8274\u827B\u827D\u827F\u8280\u8281\u8283\u8284\u8287\u8289\u828A\u828E\u8291\u8294\u8296\u8298\u829A\u829B\u82A0\u82A1\u82A3\u82A4\u82A7\u82A8\u82A9\u82AA\u82AE\u82B0\u82B2\u82B4\u82B7\u82BA\u82BC\u82BE\u82BF\u82C6\u82D0\u82D5\u82DA\u82E0\u82E2\u82E4\u82E8\u82EA\u82ED\u82EF\u82F6\u82F7\u82FD\u82FE\u8300\u8301\u8307\u8308\u830A\u830B\u8354\u831B\u831D\u831E\u831F\u8321\u8322\u832C\u832D\u832E\u8330\u8333\u8337\u833A\u833C\u833D\u8342\u8343\u8344\u8347\u834D\u834E\u8351\u8355\u8356\u8357\u8370\u8378"],["8fd8a1","\u837D\u837F\u8380\u8382\u8384\u8386\u838D\u8392\u8394\u8395\u8398\u8399\u839B\u839C\u839D\u83A6\u83A7\u83A9\u83AC\u83BE\u83BF\u83C0\u83C7\u83C9\u83CF\u83D0\u83D1\u83D4\u83DD\u8353\u83E8\u83EA\u83F6\u83F8\u83F9\u83FC\u8401\u8406\u840A\u840F\u8411\u8415\u8419\u83AD\u842F\u8439\u8445\u8447\u8448\u844A\u844D\u844F\u8451\u8452\u8456\u8458\u8459\u845A\u845C\u8460\u8464\u8465\u8467\u846A\u8470\u8473\u8474\u8476\u8478\u847C\u847D\u8481\u8485\u8492\u8493\u8495\u849E\u84A6\u84A8\u84A9\u84AA\u84AF\u84B1\u84B4\u84BA\u84BD\u84BE\u84C0\u84C2\u84C7\u84C8\u84CC\u84CF\u84D3"],["8fd9a1","\u84DC\u84E7\u84EA\u84EF\u84F0\u84F1\u84F2\u84F7\u8532\u84FA\u84FB\u84FD\u8502\u8503\u8507\u850C\u850E\u8510\u851C\u851E\u8522\u8523\u8524\u8525\u8527\u852A\u852B\u852F\u8533\u8534\u8536\u853F\u8546\u854F",4,"\u8556\u8559\u855C",6,"\u8564\u856B\u856F\u8579\u857A\u857B\u857D\u857F\u8581\u8585\u8586\u8589\u858B\u858C\u858F\u8593\u8598\u859D\u859F\u85A0\u85A2\u85A5\u85A7\u85B4\u85B6\u85B7\u85B8\u85BC\u85BD\u85BE\u85BF\u85C2\u85C7\u85CA\u85CB\u85CE\u85AD\u85D8\u85DA\u85DF\u85E0\u85E6\u85E8\u85ED\u85F3\u85F6\u85FC"],["8fdaa1","\u85FF\u8600\u8604\u8605\u860D\u860E\u8610\u8611\u8612\u8618\u8619\u861B\u861E\u8621\u8627\u8629\u8636\u8638\u863A\u863C\u863D\u8640\u8642\u8646\u8652\u8653\u8656\u8657\u8658\u8659\u865D\u8660",4,"\u8669\u866C\u866F\u8675\u8676\u8677\u867A\u868D\u8691\u8696\u8698\u869A\u869C\u86A1\u86A6\u86A7\u86A8\u86AD\u86B1\u86B3\u86B4\u86B5\u86B7\u86B8\u86B9\u86BF\u86C0\u86C1\u86C3\u86C5\u86D1\u86D2\u86D5\u86D7\u86DA\u86DC\u86E0\u86E3\u86E5\u86E7\u8688\u86FA\u86FC\u86FD\u8704\u8705\u8707\u870B\u870E\u870F\u8710\u8713\u8714\u8719\u871E\u871F\u8721\u8723"],["8fdba1","\u8728\u872E\u872F\u8731\u8732\u8739\u873A\u873C\u873D\u873E\u8740\u8743\u8745\u874D\u8758\u875D\u8761\u8764\u8765\u876F\u8771\u8772\u877B\u8783",6,"\u878B\u878C\u8790\u8793\u8795\u8797\u8798\u8799\u879E\u87A0\u87A3\u87A7\u87AC\u87AD\u87AE\u87B1\u87B5\u87BE\u87BF\u87C1\u87C8\u87C9\u87CA\u87CE\u87D5\u87D6\u87D9\u87DA\u87DC\u87DF\u87E2\u87E3\u87E4\u87EA\u87EB\u87ED\u87F1\u87F3\u87F8\u87FA\u87FF\u8801\u8803\u8806\u8809\u880A\u880B\u8810\u8819\u8812\u8813\u8814\u8818\u881A\u881B\u881C\u881E\u881F\u8828\u882D\u882E\u8830\u8832\u8835"],["8fdca1","\u883A\u883C\u8841\u8843\u8845\u8848\u8849\u884A\u884B\u884E\u8851\u8855\u8856\u8858\u885A\u885C\u885F\u8860\u8864\u8869\u8871\u8879\u887B\u8880\u8898\u889A\u889B\u889C\u889F\u88A0\u88A8\u88AA\u88BA\u88BD\u88BE\u88C0\u88CA",4,"\u88D1\u88D2\u88D3\u88DB\u88DE\u88E7\u88EF\u88F0\u88F1\u88F5\u88F7\u8901\u8906\u890D\u890E\u890F\u8915\u8916\u8918\u8919\u891A\u891C\u8920\u8926\u8927\u8928\u8930\u8931\u8932\u8935\u8939\u893A\u893E\u8940\u8942\u8945\u8946\u8949\u894F\u8952\u8957\u895A\u895B\u895C\u8961\u8962\u8963\u896B\u896E\u8970\u8973\u8975\u897A"],["8fdda1","\u897B\u897C\u897D\u8989\u898D\u8990\u8994\u8995\u899B\u899C\u899F\u89A0\u89A5\u89B0\u89B4\u89B5\u89B6\u89B7\u89BC\u89D4",4,"\u89E5\u89E9\u89EB\u89ED\u89F1\u89F3\u89F6\u89F9\u89FD\u89FF\u8A04\u8A05\u8A07\u8A0F\u8A11\u8A12\u8A14\u8A15\u8A1E\u8A20\u8A22\u8A24\u8A26\u8A2B\u8A2C\u8A2F\u8A35\u8A37\u8A3D\u8A3E\u8A40\u8A43\u8A45\u8A47\u8A49\u8A4D\u8A4E\u8A53\u8A56\u8A57\u8A58\u8A5C\u8A5D\u8A61\u8A65\u8A67\u8A75\u8A76\u8A77\u8A79\u8A7A\u8A7B\u8A7E\u8A7F\u8A80\u8A83\u8A86\u8A8B\u8A8F\u8A90\u8A92\u8A96\u8A97\u8A99\u8A9F\u8AA7\u8AA9\u8AAE\u8AAF\u8AB3"],["8fdea1","\u8AB6\u8AB7\u8ABB\u8ABE\u8AC3\u8AC6\u8AC8\u8AC9\u8ACA\u8AD1\u8AD3\u8AD4\u8AD5\u8AD7\u8ADD\u8ADF\u8AEC\u8AF0\u8AF4\u8AF5\u8AF6\u8AFC\u8AFF\u8B05\u8B06\u8B0B\u8B11\u8B1C\u8B1E\u8B1F\u8B0A\u8B2D\u8B30\u8B37\u8B3C\u8B42",4,"\u8B48\u8B52\u8B53\u8B54\u8B59\u8B4D\u8B5E\u8B63\u8B6D\u8B76\u8B78\u8B79\u8B7C\u8B7E\u8B81\u8B84\u8B85\u8B8B\u8B8D\u8B8F\u8B94\u8B95\u8B9C\u8B9E\u8B9F\u8C38\u8C39\u8C3D\u8C3E\u8C45\u8C47\u8C49\u8C4B\u8C4F\u8C51\u8C53\u8C54\u8C57\u8C58\u8C5B\u8C5D\u8C59\u8C63\u8C64\u8C66\u8C68\u8C69\u8C6D\u8C73\u8C75\u8C76\u8C7B\u8C7E\u8C86"],["8fdfa1","\u8C87\u8C8B\u8C90\u8C92\u8C93\u8C99\u8C9B\u8C9C\u8CA4\u8CB9\u8CBA\u8CC5\u8CC6\u8CC9\u8CCB\u8CCF\u8CD6\u8CD5\u8CD9\u8CDD\u8CE1\u8CE8\u8CEC\u8CEF\u8CF0\u8CF2\u8CF5\u8CF7\u8CF8\u8CFE\u8CFF\u8D01\u8D03\u8D09\u8D12\u8D17\u8D1B\u8D65\u8D69\u8D6C\u8D6E\u8D7F\u8D82\u8D84\u8D88\u8D8D\u8D90\u8D91\u8D95\u8D9E\u8D9F\u8DA0\u8DA6\u8DAB\u8DAC\u8DAF\u8DB2\u8DB5\u8DB7\u8DB9\u8DBB\u8DC0\u8DC5\u8DC6\u8DC7\u8DC8\u8DCA\u8DCE\u8DD1\u8DD4\u8DD5\u8DD7\u8DD9\u8DE4\u8DE5\u8DE7\u8DEC\u8DF0\u8DBC\u8DF1\u8DF2\u8DF4\u8DFD\u8E01\u8E04\u8E05\u8E06\u8E0B\u8E11\u8E14\u8E16\u8E20\u8E21\u8E22"],["8fe0a1","\u8E23\u8E26\u8E27\u8E31\u8E33\u8E36\u8E37\u8E38\u8E39\u8E3D\u8E40\u8E41\u8E4B\u8E4D\u8E4E\u8E4F\u8E54\u8E5B\u8E5C\u8E5D\u8E5E\u8E61\u8E62\u8E69\u8E6C\u8E6D\u8E6F\u8E70\u8E71\u8E79\u8E7A\u8E7B\u8E82\u8E83\u8E89\u8E90\u8E92\u8E95\u8E9A\u8E9B\u8E9D\u8E9E\u8EA2\u8EA7\u8EA9\u8EAD\u8EAE\u8EB3\u8EB5\u8EBA\u8EBB\u8EC0\u8EC1\u8EC3\u8EC4\u8EC7\u8ECF\u8ED1\u8ED4\u8EDC\u8EE8\u8EEE\u8EF0\u8EF1\u8EF7\u8EF9\u8EFA\u8EED\u8F00\u8F02\u8F07\u8F08\u8F0F\u8F10\u8F16\u8F17\u8F18\u8F1E\u8F20\u8F21\u8F23\u8F25\u8F27\u8F28\u8F2C\u8F2D\u8F2E\u8F34\u8F35\u8F36\u8F37\u8F3A\u8F40\u8F41"],["8fe1a1","\u8F43\u8F47\u8F4F\u8F51",4,"\u8F58\u8F5D\u8F5E\u8F65\u8F9D\u8FA0\u8FA1\u8FA4\u8FA5\u8FA6\u8FB5\u8FB6\u8FB8\u8FBE\u8FC0\u8FC1\u8FC6\u8FCA\u8FCB\u8FCD\u8FD0\u8FD2\u8FD3\u8FD5\u8FE0\u8FE3\u8FE4\u8FE8\u8FEE\u8FF1\u8FF5\u8FF6\u8FFB\u8FFE\u9002\u9004\u9008\u900C\u9018\u901B\u9028\u9029\u902F\u902A\u902C\u902D\u9033\u9034\u9037\u903F\u9043\u9044\u904C\u905B\u905D\u9062\u9066\u9067\u906C\u9070\u9074\u9079\u9085\u9088\u908B\u908C\u908E\u9090\u9095\u9097\u9098\u9099\u909B\u90A0\u90A1\u90A2\u90A5\u90B0\u90B2\u90B3\u90B4\u90B6\u90BD\u90CC\u90BE\u90C3"],["8fe2a1","\u90C4\u90C5\u90C7\u90C8\u90D5\u90D7\u90D8\u90D9\u90DC\u90DD\u90DF\u90E5\u90D2\u90F6\u90EB\u90EF\u90F0\u90F4\u90FE\u90FF\u9100\u9104\u9105\u9106\u9108\u910D\u9110\u9114\u9116\u9117\u9118\u911A\u911C\u911E\u9120\u9125\u9122\u9123\u9127\u9129\u912E\u912F\u9131\u9134\u9136\u9137\u9139\u913A\u913C\u913D\u9143\u9147\u9148\u914F\u9153\u9157\u9159\u915A\u915B\u9161\u9164\u9167\u916D\u9174\u9179\u917A\u917B\u9181\u9183\u9185\u9186\u918A\u918E\u9191\u9193\u9194\u9195\u9198\u919E\u91A1\u91A6\u91A8\u91AC\u91AD\u91AE\u91B0\u91B1\u91B2\u91B3\u91B6\u91BB\u91BC\u91BD\u91BF"],["8fe3a1","\u91C2\u91C3\u91C5\u91D3\u91D4\u91D7\u91D9\u91DA\u91DE\u91E4\u91E5\u91E9\u91EA\u91EC",5,"\u91F7\u91F9\u91FB\u91FD\u9200\u9201\u9204\u9205\u9206\u9207\u9209\u920A\u920C\u9210\u9212\u9213\u9216\u9218\u921C\u921D\u9223\u9224\u9225\u9226\u9228\u922E\u922F\u9230\u9233\u9235\u9236\u9238\u9239\u923A\u923C\u923E\u9240\u9242\u9243\u9246\u9247\u924A\u924D\u924E\u924F\u9251\u9258\u9259\u925C\u925D\u9260\u9261\u9265\u9267\u9268\u9269\u926E\u926F\u9270\u9275",4,"\u927B\u927C\u927D\u927F\u9288\u9289\u928A\u928D\u928E\u9292\u9297"],["8fe4a1","\u9299\u929F\u92A0\u92A4\u92A5\u92A7\u92A8\u92AB\u92AF\u92B2\u92B6\u92B8\u92BA\u92BB\u92BC\u92BD\u92BF",4,"\u92C5\u92C6\u92C7\u92C8\u92CB\u92CC\u92CD\u92CE\u92D0\u92D3\u92D5\u92D7\u92D8\u92D9\u92DC\u92DD\u92DF\u92E0\u92E1\u92E3\u92E5\u92E7\u92E8\u92EC\u92EE\u92F0\u92F9\u92FB\u92FF\u9300\u9302\u9308\u930D\u9311\u9314\u9315\u931C\u931D\u931E\u931F\u9321\u9324\u9325\u9327\u9329\u932A\u9333\u9334\u9336\u9337\u9347\u9348\u9349\u9350\u9351\u9352\u9355\u9357\u9358\u935A\u935E\u9364\u9365\u9367\u9369\u936A\u936D\u936F\u9370\u9371\u9373\u9374\u9376"],["8fe5a1","\u937A\u937D\u937F\u9380\u9381\u9382\u9388\u938A\u938B\u938D\u938F\u9392\u9395\u9398\u939B\u939E\u93A1\u93A3\u93A4\u93A6\u93A8\u93AB\u93B4\u93B5\u93B6\u93BA\u93A9\u93C1\u93C4\u93C5\u93C6\u93C7\u93C9",4,"\u93D3\u93D9\u93DC\u93DE\u93DF\u93E2\u93E6\u93E7\u93F9\u93F7\u93F8\u93FA\u93FB\u93FD\u9401\u9402\u9404\u9408\u9409\u940D\u940E\u940F\u9415\u9416\u9417\u941F\u942E\u942F\u9431\u9432\u9433\u9434\u943B\u943F\u943D\u9443\u9445\u9448\u944A\u944C\u9455\u9459\u945C\u945F\u9461\u9463\u9468\u946B\u946D\u946E\u946F\u9471\u9472\u9484\u9483\u9578\u9579"],["8fe6a1","\u957E\u9584\u9588\u958C\u958D\u958E\u959D\u959E\u959F\u95A1\u95A6\u95A9\u95AB\u95AC\u95B4\u95B6\u95BA\u95BD\u95BF\u95C6\u95C8\u95C9\u95CB\u95D0\u95D1\u95D2\u95D3\u95D9\u95DA\u95DD\u95DE\u95DF\u95E0\u95E4\u95E6\u961D\u961E\u9622\u9624\u9625\u9626\u962C\u9631\u9633\u9637\u9638\u9639\u963A\u963C\u963D\u9641\u9652\u9654\u9656\u9657\u9658\u9661\u966E\u9674\u967B\u967C\u967E\u967F\u9681\u9682\u9683\u9684\u9689\u9691\u9696\u969A\u969D\u969F\u96A4\u96A5\u96A6\u96A9\u96AE\u96AF\u96B3\u96BA\u96CA\u96D2\u5DB2\u96D8\u96DA\u96DD\u96DE\u96DF\u96E9\u96EF\u96F1\u96FA\u9702"],["8fe7a1","\u9703\u9705\u9709\u971A\u971B\u971D\u9721\u9722\u9723\u9728\u9731\u9733\u9741\u9743\u974A\u974E\u974F\u9755\u9757\u9758\u975A\u975B\u9763\u9767\u976A\u976E\u9773\u9776\u9777\u9778\u977B\u977D\u977F\u9780\u9789\u9795\u9796\u9797\u9799\u979A\u979E\u979F\u97A2\u97AC\u97AE\u97B1\u97B2\u97B5\u97B6\u97B8\u97B9\u97BA\u97BC\u97BE\u97BF\u97C1\u97C4\u97C5\u97C7\u97C9\u97CA\u97CC\u97CD\u97CE\u97D0\u97D1\u97D4\u97D7\u97D8\u97D9\u97DD\u97DE\u97E0\u97DB\u97E1\u97E4\u97EF\u97F1\u97F4\u97F7\u97F8\u97FA\u9807\u980A\u9819\u980D\u980E\u9814\u9816\u981C\u981E\u9820\u9823\u9826"],["8fe8a1","\u982B\u982E\u982F\u9830\u9832\u9833\u9835\u9825\u983E\u9844\u9847\u984A\u9851\u9852\u9853\u9856\u9857\u9859\u985A\u9862\u9863\u9865\u9866\u986A\u986C\u98AB\u98AD\u98AE\u98B0\u98B4\u98B7\u98B8\u98BA\u98BB\u98BF\u98C2\u98C5\u98C8\u98CC\u98E1\u98E3\u98E5\u98E6\u98E7\u98EA\u98F3\u98F6\u9902\u9907\u9908\u9911\u9915\u9916\u9917\u991A\u991B\u991C\u991F\u9922\u9926\u9927\u992B\u9931",4,"\u9939\u993A\u993B\u993C\u9940\u9941\u9946\u9947\u9948\u994D\u994E\u9954\u9958\u9959\u995B\u995C\u995E\u995F\u9960\u999B\u999D\u999F\u99A6\u99B0\u99B1\u99B2\u99B5"],["8fe9a1","\u99B9\u99BA\u99BD\u99BF\u99C3\u99C9\u99D3\u99D4\u99D9\u99DA\u99DC\u99DE\u99E7\u99EA\u99EB\u99EC\u99F0\u99F4\u99F5\u99F9\u99FD\u99FE\u9A02\u9A03\u9A04\u9A0B\u9A0C\u9A10\u9A11\u9A16\u9A1E\u9A20\u9A22\u9A23\u9A24\u9A27\u9A2D\u9A2E\u9A33\u9A35\u9A36\u9A38\u9A47\u9A41\u9A44\u9A4A\u9A4B\u9A4C\u9A4E\u9A51\u9A54\u9A56\u9A5D\u9AAA\u9AAC\u9AAE\u9AAF\u9AB2\u9AB4\u9AB5\u9AB6\u9AB9\u9ABB\u9ABE\u9ABF\u9AC1\u9AC3\u9AC6\u9AC8\u9ACE\u9AD0\u9AD2\u9AD5\u9AD6\u9AD7\u9ADB\u9ADC\u9AE0\u9AE4\u9AE5\u9AE7\u9AE9\u9AEC\u9AF2\u9AF3\u9AF5\u9AF9\u9AFA\u9AFD\u9AFF",4],["8feaa1","\u9B04\u9B05\u9B08\u9B09\u9B0B\u9B0C\u9B0D\u9B0E\u9B10\u9B12\u9B16\u9B19\u9B1B\u9B1C\u9B20\u9B26\u9B2B\u9B2D\u9B33\u9B34\u9B35\u9B37\u9B39\u9B3A\u9B3D\u9B48\u9B4B\u9B4C\u9B55\u9B56\u9B57\u9B5B\u9B5E\u9B61\u9B63\u9B65\u9B66\u9B68\u9B6A",4,"\u9B73\u9B75\u9B77\u9B78\u9B79\u9B7F\u9B80\u9B84\u9B85\u9B86\u9B87\u9B89\u9B8A\u9B8B\u9B8D\u9B8F\u9B90\u9B94\u9B9A\u9B9D\u9B9E\u9BA6\u9BA7\u9BA9\u9BAC\u9BB0\u9BB1\u9BB2\u9BB7\u9BB8\u9BBB\u9BBC\u9BBE\u9BBF\u9BC1\u9BC7\u9BC8\u9BCE\u9BD0\u9BD7\u9BD8\u9BDD\u9BDF\u9BE5\u9BE7\u9BEA\u9BEB\u9BEF\u9BF3\u9BF7\u9BF8"],["8feba1","\u9BF9\u9BFA\u9BFD\u9BFF\u9C00\u9C02\u9C0B\u9C0F\u9C11\u9C16\u9C18\u9C19\u9C1A\u9C1C\u9C1E\u9C22\u9C23\u9C26",4,"\u9C31\u9C35\u9C36\u9C37\u9C3D\u9C41\u9C43\u9C44\u9C45\u9C49\u9C4A\u9C4E\u9C4F\u9C50\u9C53\u9C54\u9C56\u9C58\u9C5B\u9C5D\u9C5E\u9C5F\u9C63\u9C69\u9C6A\u9C5C\u9C6B\u9C68\u9C6E\u9C70\u9C72\u9C75\u9C77\u9C7B\u9CE6\u9CF2\u9CF7\u9CF9\u9D0B\u9D02\u9D11\u9D17\u9D18\u9D1C\u9D1D\u9D1E\u9D2F\u9D30\u9D32\u9D33\u9D34\u9D3A\u9D3C\u9D45\u9D3D\u9D42\u9D43\u9D47\u9D4A\u9D53\u9D54\u9D5F\u9D63\u9D62\u9D65\u9D69\u9D6A\u9D6B\u9D70\u9D76\u9D77\u9D7B"],["8feca1","\u9D7C\u9D7E\u9D83\u9D84\u9D86\u9D8A\u9D8D\u9D8E\u9D92\u9D93\u9D95\u9D96\u9D97\u9D98\u9DA1\u9DAA\u9DAC\u9DAE\u9DB1\u9DB5\u9DB9\u9DBC\u9DBF\u9DC3\u9DC7\u9DC9\u9DCA\u9DD4\u9DD5\u9DD6\u9DD7\u9DDA\u9DDE\u9DDF\u9DE0\u9DE5\u9DE7\u9DE9\u9DEB\u9DEE\u9DF0\u9DF3\u9DF4\u9DFE\u9E0A\u9E02\u9E07\u9E0E\u9E10\u9E11\u9E12\u9E15\u9E16\u9E19\u9E1C\u9E1D\u9E7A\u9E7B\u9E7C\u9E80\u9E82\u9E83\u9E84\u9E85\u9E87\u9E8E\u9E8F\u9E96\u9E98\u9E9B\u9E9E\u9EA4\u9EA8\u9EAC\u9EAE\u9EAF\u9EB0\u9EB3\u9EB4\u9EB5\u9EC6\u9EC8\u9ECB\u9ED5\u9EDF\u9EE4\u9EE7\u9EEC\u9EED\u9EEE\u9EF0\u9EF1\u9EF2\u9EF5"],["8feda1","\u9EF8\u9EFF\u9F02\u9F03\u9F09\u9F0F\u9F10\u9F11\u9F12\u9F14\u9F16\u9F17\u9F19\u9F1A\u9F1B\u9F1F\u9F22\u9F26\u9F2A\u9F2B\u9F2F\u9F31\u9F32\u9F34\u9F37\u9F39\u9F3A\u9F3C\u9F3D\u9F3F\u9F41\u9F43",4,"\u9F53\u9F55\u9F56\u9F57\u9F58\u9F5A\u9F5D\u9F5E\u9F68\u9F69\u9F6D",4,"\u9F73\u9F75\u9F7A\u9F7D\u9F8F\u9F90\u9F91\u9F92\u9F94\u9F96\u9F97\u9F9E\u9FA1\u9FA2\u9FA3\u9FA5"]]});var lh=T((TIe,_X)=>{_X.exports=[["0","\0",127,"\u20AC"],["8140","\u4E02\u4E04\u4E05\u4E06\u4E0F\u4E12\u4E17\u4E1F\u4E20\u4E21\u4E23\u4E26\u4E29\u4E2E\u4E2F\u4E31\u4E33\u4E35\u4E37\u4E3C\u4E40\u4E41\u4E42\u4E44\u4E46\u4E4A\u4E51\u4E55\u4E57\u4E5A\u4E5B\u4E62\u4E63\u4E64\u4E65\u4E67\u4E68\u4E6A",5,"\u4E72\u4E74",9,"\u4E7F",6,"\u4E87\u4E8A"],["8180","\u4E90\u4E96\u4E97\u4E99\u4E9C\u4E9D\u4E9E\u4EA3\u4EAA\u4EAF\u4EB0\u4EB1\u4EB4\u4EB6\u4EB7\u4EB8\u4EB9\u4EBC\u4EBD\u4EBE\u4EC8\u4ECC\u4ECF\u4ED0\u4ED2\u4EDA\u4EDB\u4EDC\u4EE0\u4EE2\u4EE6\u4EE7\u4EE9\u4EED\u4EEE\u4EEF\u4EF1\u4EF4\u4EF8\u4EF9\u4EFA\u4EFC\u4EFE\u4F00\u4F02",6,"\u4F0B\u4F0C\u4F12",4,"\u4F1C\u4F1D\u4F21\u4F23\u4F28\u4F29\u4F2C\u4F2D\u4F2E\u4F31\u4F33\u4F35\u4F37\u4F39\u4F3B\u4F3E",4,"\u4F44\u4F45\u4F47",5,"\u4F52\u4F54\u4F56\u4F61\u4F62\u4F66\u4F68\u4F6A\u4F6B\u4F6D\u4F6E\u4F71\u4F72\u4F75\u4F77\u4F78\u4F79\u4F7A\u4F7D\u4F80\u4F81\u4F82\u4F85\u4F86\u4F87\u4F8A\u4F8C\u4F8E\u4F90\u4F92\u4F93\u4F95\u4F96\u4F98\u4F99\u4F9A\u4F9C\u4F9E\u4F9F\u4FA1\u4FA2"],["8240","\u4FA4\u4FAB\u4FAD\u4FB0",4,"\u4FB6",8,"\u4FC0\u4FC1\u4FC2\u4FC6\u4FC7\u4FC8\u4FC9\u4FCB\u4FCC\u4FCD\u4FD2",4,"\u4FD9\u4FDB\u4FE0\u4FE2\u4FE4\u4FE5\u4FE7\u4FEB\u4FEC\u4FF0\u4FF2\u4FF4\u4FF5\u4FF6\u4FF7\u4FF9\u4FFB\u4FFC\u4FFD\u4FFF",11],["8280","\u500B\u500E\u5010\u5011\u5013\u5015\u5016\u5017\u501B\u501D\u501E\u5020\u5022\u5023\u5024\u5027\u502B\u502F",10,"\u503B\u503D\u503F\u5040\u5041\u5042\u5044\u5045\u5046\u5049\u504A\u504B\u504D\u5050",4,"\u5056\u5057\u5058\u5059\u505B\u505D",7,"\u5066",5,"\u506D",8,"\u5078\u5079\u507A\u507C\u507D\u5081\u5082\u5083\u5084\u5086\u5087\u5089\u508A\u508B\u508C\u508E",20,"\u50A4\u50A6\u50AA\u50AB\u50AD",4,"\u50B3",6,"\u50BC"],["8340","\u50BD",17,"\u50D0",5,"\u50D7\u50D8\u50D9\u50DB",10,"\u50E8\u50E9\u50EA\u50EB\u50EF\u50F0\u50F1\u50F2\u50F4\u50F6",4,"\u50FC",9,"\u5108"],["8380","\u5109\u510A\u510C",5,"\u5113",13,"\u5122",28,"\u5142\u5147\u514A\u514C\u514E\u514F\u5150\u5152\u5153\u5157\u5158\u5159\u515B\u515D",4,"\u5163\u5164\u5166\u5167\u5169\u516A\u516F\u5172\u517A\u517E\u517F\u5183\u5184\u5186\u5187\u518A\u518B\u518E\u518F\u5190\u5191\u5193\u5194\u5198\u519A\u519D\u519E\u519F\u51A1\u51A3\u51A6",4,"\u51AD\u51AE\u51B4\u51B8\u51B9\u51BA\u51BE\u51BF\u51C1\u51C2\u51C3\u51C5\u51C8\u51CA\u51CD\u51CE\u51D0\u51D2",5],["8440","\u51D8\u51D9\u51DA\u51DC\u51DE\u51DF\u51E2\u51E3\u51E5",5,"\u51EC\u51EE\u51F1\u51F2\u51F4\u51F7\u51FE\u5204\u5205\u5209\u520B\u520C\u520F\u5210\u5213\u5214\u5215\u521C\u521E\u521F\u5221\u5222\u5223\u5225\u5226\u5227\u522A\u522C\u522F\u5231\u5232\u5234\u5235\u523C\u523E\u5244",5,"\u524B\u524E\u524F\u5252\u5253\u5255\u5257\u5258"],["8480","\u5259\u525A\u525B\u525D\u525F\u5260\u5262\u5263\u5264\u5266\u5268\u526B\u526C\u526D\u526E\u5270\u5271\u5273",9,"\u527E\u5280\u5283",4,"\u5289",6,"\u5291\u5292\u5294",6,"\u529C\u52A4\u52A5\u52A6\u52A7\u52AE\u52AF\u52B0\u52B4",9,"\u52C0\u52C1\u52C2\u52C4\u52C5\u52C6\u52C8\u52CA\u52CC\u52CD\u52CE\u52CF\u52D1\u52D3\u52D4\u52D5\u52D7\u52D9",5,"\u52E0\u52E1\u52E2\u52E3\u52E5",10,"\u52F1",7,"\u52FB\u52FC\u52FD\u5301\u5302\u5303\u5304\u5307\u5309\u530A\u530B\u530C\u530E"],["8540","\u5311\u5312\u5313\u5314\u5318\u531B\u531C\u531E\u531F\u5322\u5324\u5325\u5327\u5328\u5329\u532B\u532C\u532D\u532F",9,"\u533C\u533D\u5340\u5342\u5344\u5346\u534B\u534C\u534D\u5350\u5354\u5358\u5359\u535B\u535D\u5365\u5368\u536A\u536C\u536D\u5372\u5376\u5379\u537B\u537C\u537D\u537E\u5380\u5381\u5383\u5387\u5388\u538A\u538E\u538F"],["8580","\u5390",4,"\u5396\u5397\u5399\u539B\u539C\u539E\u53A0\u53A1\u53A4\u53A7\u53AA\u53AB\u53AC\u53AD\u53AF",6,"\u53B7\u53B8\u53B9\u53BA\u53BC\u53BD\u53BE\u53C0\u53C3",4,"\u53CE\u53CF\u53D0\u53D2\u53D3\u53D5\u53DA\u53DC\u53DD\u53DE\u53E1\u53E2\u53E7\u53F4\u53FA\u53FE\u53FF\u5400\u5402\u5405\u5407\u540B\u5414\u5418\u5419\u541A\u541C\u5422\u5424\u5425\u542A\u5430\u5433\u5436\u5437\u543A\u543D\u543F\u5441\u5442\u5444\u5445\u5447\u5449\u544C\u544D\u544E\u544F\u5451\u545A\u545D",4,"\u5463\u5465\u5467\u5469",7,"\u5474\u5479\u547A\u547E\u547F\u5481\u5483\u5485\u5487\u5488\u5489\u548A\u548D\u5491\u5493\u5497\u5498\u549C\u549E\u549F\u54A0\u54A1"],["8640","\u54A2\u54A5\u54AE\u54B0\u54B2\u54B5\u54B6\u54B7\u54B9\u54BA\u54BC\u54BE\u54C3\u54C5\u54CA\u54CB\u54D6\u54D8\u54DB\u54E0",4,"\u54EB\u54EC\u54EF\u54F0\u54F1\u54F4",5,"\u54FB\u54FE\u5500\u5502\u5503\u5504\u5505\u5508\u550A",4,"\u5512\u5513\u5515",5,"\u551C\u551D\u551E\u551F\u5521\u5525\u5526"],["8680","\u5528\u5529\u552B\u552D\u5532\u5534\u5535\u5536\u5538\u5539\u553A\u553B\u553D\u5540\u5542\u5545\u5547\u5548\u554B",4,"\u5551\u5552\u5553\u5554\u5557",4,"\u555D\u555E\u555F\u5560\u5562\u5563\u5568\u5569\u556B\u556F",5,"\u5579\u557A\u557D\u557F\u5585\u5586\u558C\u558D\u558E\u5590\u5592\u5593\u5595\u5596\u5597\u559A\u559B\u559E\u55A0",6,"\u55A8",8,"\u55B2\u55B4\u55B6\u55B8\u55BA\u55BC\u55BF",4,"\u55C6\u55C7\u55C8\u55CA\u55CB\u55CE\u55CF\u55D0\u55D5\u55D7",4,"\u55DE\u55E0\u55E2\u55E7\u55E9\u55ED\u55EE\u55F0\u55F1\u55F4\u55F6\u55F8",4,"\u55FF\u5602\u5603\u5604\u5605"],["8740","\u5606\u5607\u560A\u560B\u560D\u5610",7,"\u5619\u561A\u561C\u561D\u5620\u5621\u5622\u5625\u5626\u5628\u5629\u562A\u562B\u562E\u562F\u5630\u5633\u5635\u5637\u5638\u563A\u563C\u563D\u563E\u5640",11,"\u564F",4,"\u5655\u5656\u565A\u565B\u565D",4],["8780","\u5663\u5665\u5666\u5667\u566D\u566E\u566F\u5670\u5672\u5673\u5674\u5675\u5677\u5678\u5679\u567A\u567D",7,"\u5687",6,"\u5690\u5691\u5692\u5694",14,"\u56A4",10,"\u56B0",6,"\u56B8\u56B9\u56BA\u56BB\u56BD",12,"\u56CB",8,"\u56D5\u56D6\u56D8\u56D9\u56DC\u56E3\u56E5",5,"\u56EC\u56EE\u56EF\u56F2\u56F3\u56F6\u56F7\u56F8\u56FB\u56FC\u5700\u5701\u5702\u5705\u5707\u570B",6],["8840","\u5712",9,"\u571D\u571E\u5720\u5721\u5722\u5724\u5725\u5726\u5727\u572B\u5731\u5732\u5734",4,"\u573C\u573D\u573F\u5741\u5743\u5744\u5745\u5746\u5748\u5749\u574B\u5752",4,"\u5758\u5759\u5762\u5763\u5765\u5767\u576C\u576E\u5770\u5771\u5772\u5774\u5775\u5778\u5779\u577A\u577D\u577E\u577F\u5780"],["8880","\u5781\u5787\u5788\u5789\u578A\u578D",4,"\u5794",6,"\u579C\u579D\u579E\u579F\u57A5\u57A8\u57AA\u57AC\u57AF\u57B0\u57B1\u57B3\u57B5\u57B6\u57B7\u57B9",8,"\u57C4",6,"\u57CC\u57CD\u57D0\u57D1\u57D3\u57D6\u57D7\u57DB\u57DC\u57DE\u57E1\u57E2\u57E3\u57E5",7,"\u57EE\u57F0\u57F1\u57F2\u57F3\u57F5\u57F6\u57F7\u57FB\u57FC\u57FE\u57FF\u5801\u5803\u5804\u5805\u5808\u5809\u580A\u580C\u580E\u580F\u5810\u5812\u5813\u5814\u5816\u5817\u5818\u581A\u581B\u581C\u581D\u581F\u5822\u5823\u5825",4,"\u582B",4,"\u5831\u5832\u5833\u5834\u5836",7],["8940","\u583E",5,"\u5845",6,"\u584E\u584F\u5850\u5852\u5853\u5855\u5856\u5857\u5859",4,"\u585F",5,"\u5866",4,"\u586D",16,"\u587F\u5882\u5884\u5886\u5887\u5888\u588A\u588B\u588C"],["8980","\u588D",4,"\u5894",4,"\u589B\u589C\u589D\u58A0",7,"\u58AA",17,"\u58BD\u58BE\u58BF\u58C0\u58C2\u58C3\u58C4\u58C6",10,"\u58D2\u58D3\u58D4\u58D6",13,"\u58E5",5,"\u58ED\u58EF\u58F1\u58F2\u58F4\u58F5\u58F7\u58F8\u58FA",7,"\u5903\u5905\u5906\u5908",4,"\u590E\u5910\u5911\u5912\u5913\u5917\u5918\u591B\u591D\u591E\u5920\u5921\u5922\u5923\u5926\u5928\u592C\u5930\u5932\u5933\u5935\u5936\u593B"],["8a40","\u593D\u593E\u593F\u5940\u5943\u5945\u5946\u594A\u594C\u594D\u5950\u5952\u5953\u5959\u595B",4,"\u5961\u5963\u5964\u5966",12,"\u5975\u5977\u597A\u597B\u597C\u597E\u597F\u5980\u5985\u5989\u598B\u598C\u598E\u598F\u5990\u5991\u5994\u5995\u5998\u599A\u599B\u599C\u599D\u599F\u59A0\u59A1\u59A2\u59A6"],["8a80","\u59A7\u59AC\u59AD\u59B0\u59B1\u59B3",5,"\u59BA\u59BC\u59BD\u59BF",6,"\u59C7\u59C8\u59C9\u59CC\u59CD\u59CE\u59CF\u59D5\u59D6\u59D9\u59DB\u59DE",4,"\u59E4\u59E6\u59E7\u59E9\u59EA\u59EB\u59ED",11,"\u59FA\u59FC\u59FD\u59FE\u5A00\u5A02\u5A0A\u5A0B\u5A0D\u5A0E\u5A0F\u5A10\u5A12\u5A14\u5A15\u5A16\u5A17\u5A19\u5A1A\u5A1B\u5A1D\u5A1E\u5A21\u5A22\u5A24\u5A26\u5A27\u5A28\u5A2A",6,"\u5A33\u5A35\u5A37",4,"\u5A3D\u5A3E\u5A3F\u5A41",4,"\u5A47\u5A48\u5A4B",9,"\u5A56\u5A57\u5A58\u5A59\u5A5B",5],["8b40","\u5A61\u5A63\u5A64\u5A65\u5A66\u5A68\u5A69\u5A6B",8,"\u5A78\u5A79\u5A7B\u5A7C\u5A7D\u5A7E\u5A80",17,"\u5A93",6,"\u5A9C",13,"\u5AAB\u5AAC"],["8b80","\u5AAD",4,"\u5AB4\u5AB6\u5AB7\u5AB9",4,"\u5ABF\u5AC0\u5AC3",5,"\u5ACA\u5ACB\u5ACD",4,"\u5AD3\u5AD5\u5AD7\u5AD9\u5ADA\u5ADB\u5ADD\u5ADE\u5ADF\u5AE2\u5AE4\u5AE5\u5AE7\u5AE8\u5AEA\u5AEC",4,"\u5AF2",22,"\u5B0A",11,"\u5B18",25,"\u5B33\u5B35\u5B36\u5B38",7,"\u5B41",6],["8c40","\u5B48",7,"\u5B52\u5B56\u5B5E\u5B60\u5B61\u5B67\u5B68\u5B6B\u5B6D\u5B6E\u5B6F\u5B72\u5B74\u5B76\u5B77\u5B78\u5B79\u5B7B\u5B7C\u5B7E\u5B7F\u5B82\u5B86\u5B8A\u5B8D\u5B8E\u5B90\u5B91\u5B92\u5B94\u5B96\u5B9F\u5BA7\u5BA8\u5BA9\u5BAC\u5BAD\u5BAE\u5BAF\u5BB1\u5BB2\u5BB7\u5BBA\u5BBB\u5BBC\u5BC0\u5BC1\u5BC3\u5BC8\u5BC9\u5BCA\u5BCB\u5BCD\u5BCE\u5BCF"],["8c80","\u5BD1\u5BD4",8,"\u5BE0\u5BE2\u5BE3\u5BE6\u5BE7\u5BE9",4,"\u5BEF\u5BF1",6,"\u5BFD\u5BFE\u5C00\u5C02\u5C03\u5C05\u5C07\u5C08\u5C0B\u5C0C\u5C0D\u5C0E\u5C10\u5C12\u5C13\u5C17\u5C19\u5C1B\u5C1E\u5C1F\u5C20\u5C21\u5C23\u5C26\u5C28\u5C29\u5C2A\u5C2B\u5C2D\u5C2E\u5C2F\u5C30\u5C32\u5C33\u5C35\u5C36\u5C37\u5C43\u5C44\u5C46\u5C47\u5C4C\u5C4D\u5C52\u5C53\u5C54\u5C56\u5C57\u5C58\u5C5A\u5C5B\u5C5C\u5C5D\u5C5F\u5C62\u5C64\u5C67",6,"\u5C70\u5C72",6,"\u5C7B\u5C7C\u5C7D\u5C7E\u5C80\u5C83",4,"\u5C89\u5C8A\u5C8B\u5C8E\u5C8F\u5C92\u5C93\u5C95\u5C9D",4,"\u5CA4",4],["8d40","\u5CAA\u5CAE\u5CAF\u5CB0\u5CB2\u5CB4\u5CB6\u5CB9\u5CBA\u5CBB\u5CBC\u5CBE\u5CC0\u5CC2\u5CC3\u5CC5",5,"\u5CCC",5,"\u5CD3",5,"\u5CDA",6,"\u5CE2\u5CE3\u5CE7\u5CE9\u5CEB\u5CEC\u5CEE\u5CEF\u5CF1",9,"\u5CFC",4],["8d80","\u5D01\u5D04\u5D05\u5D08",5,"\u5D0F",4,"\u5D15\u5D17\u5D18\u5D19\u5D1A\u5D1C\u5D1D\u5D1F",4,"\u5D25\u5D28\u5D2A\u5D2B\u5D2C\u5D2F",4,"\u5D35",7,"\u5D3F",7,"\u5D48\u5D49\u5D4D",10,"\u5D59\u5D5A\u5D5C\u5D5E",10,"\u5D6A\u5D6D\u5D6E\u5D70\u5D71\u5D72\u5D73\u5D75",12,"\u5D83",21,"\u5D9A\u5D9B\u5D9C\u5D9E\u5D9F\u5DA0"],["8e40","\u5DA1",21,"\u5DB8",12,"\u5DC6",6,"\u5DCE",12,"\u5DDC\u5DDF\u5DE0\u5DE3\u5DE4\u5DEA\u5DEC\u5DED"],["8e80","\u5DF0\u5DF5\u5DF6\u5DF8",4,"\u5DFF\u5E00\u5E04\u5E07\u5E09\u5E0A\u5E0B\u5E0D\u5E0E\u5E12\u5E13\u5E17\u5E1E",7,"\u5E28",4,"\u5E2F\u5E30\u5E32",4,"\u5E39\u5E3A\u5E3E\u5E3F\u5E40\u5E41\u5E43\u5E46",5,"\u5E4D",6,"\u5E56",4,"\u5E5C\u5E5D\u5E5F\u5E60\u5E63",14,"\u5E75\u5E77\u5E79\u5E7E\u5E81\u5E82\u5E83\u5E85\u5E88\u5E89\u5E8C\u5E8D\u5E8E\u5E92\u5E98\u5E9B\u5E9D\u5EA1\u5EA2\u5EA3\u5EA4\u5EA8",4,"\u5EAE",4,"\u5EB4\u5EBA\u5EBB\u5EBC\u5EBD\u5EBF",6],["8f40","\u5EC6\u5EC7\u5EC8\u5ECB",5,"\u5ED4\u5ED5\u5ED7\u5ED8\u5ED9\u5EDA\u5EDC",11,"\u5EE9\u5EEB",8,"\u5EF5\u5EF8\u5EF9\u5EFB\u5EFC\u5EFD\u5F05\u5F06\u5F07\u5F09\u5F0C\u5F0D\u5F0E\u5F10\u5F12\u5F14\u5F16\u5F19\u5F1A\u5F1C\u5F1D\u5F1E\u5F21\u5F22\u5F23\u5F24"],["8f80","\u5F28\u5F2B\u5F2C\u5F2E\u5F30\u5F32",6,"\u5F3B\u5F3D\u5F3E\u5F3F\u5F41",14,"\u5F51\u5F54\u5F59\u5F5A\u5F5B\u5F5C\u5F5E\u5F5F\u5F60\u5F63\u5F65\u5F67\u5F68\u5F6B\u5F6E\u5F6F\u5F72\u5F74\u5F75\u5F76\u5F78\u5F7A\u5F7D\u5F7E\u5F7F\u5F83\u5F86\u5F8D\u5F8E\u5F8F\u5F91\u5F93\u5F94\u5F96\u5F9A\u5F9B\u5F9D\u5F9E\u5F9F\u5FA0\u5FA2",5,"\u5FA9\u5FAB\u5FAC\u5FAF",5,"\u5FB6\u5FB8\u5FB9\u5FBA\u5FBB\u5FBE",4,"\u5FC7\u5FC8\u5FCA\u5FCB\u5FCE\u5FD3\u5FD4\u5FD5\u5FDA\u5FDB\u5FDC\u5FDE\u5FDF\u5FE2\u5FE3\u5FE5\u5FE6\u5FE8\u5FE9\u5FEC\u5FEF\u5FF0\u5FF2\u5FF3\u5FF4\u5FF6\u5FF7\u5FF9\u5FFA\u5FFC\u6007"],["9040","\u6008\u6009\u600B\u600C\u6010\u6011\u6013\u6017\u6018\u601A\u601E\u601F\u6022\u6023\u6024\u602C\u602D\u602E\u6030",4,"\u6036",4,"\u603D\u603E\u6040\u6044",6,"\u604C\u604E\u604F\u6051\u6053\u6054\u6056\u6057\u6058\u605B\u605C\u605E\u605F\u6060\u6061\u6065\u6066\u606E\u6071\u6072\u6074\u6075\u6077\u607E\u6080"],["9080","\u6081\u6082\u6085\u6086\u6087\u6088\u608A\u608B\u608E\u608F\u6090\u6091\u6093\u6095\u6097\u6098\u6099\u609C\u609E\u60A1\u60A2\u60A4\u60A5\u60A7\u60A9\u60AA\u60AE\u60B0\u60B3\u60B5\u60B6\u60B7\u60B9\u60BA\u60BD",7,"\u60C7\u60C8\u60C9\u60CC",4,"\u60D2\u60D3\u60D4\u60D6\u60D7\u60D9\u60DB\u60DE\u60E1",4,"\u60EA\u60F1\u60F2\u60F5\u60F7\u60F8\u60FB",4,"\u6102\u6103\u6104\u6105\u6107\u610A\u610B\u610C\u6110",4,"\u6116\u6117\u6118\u6119\u611B\u611C\u611D\u611E\u6121\u6122\u6125\u6128\u6129\u612A\u612C",18,"\u6140",6],["9140","\u6147\u6149\u614B\u614D\u614F\u6150\u6152\u6153\u6154\u6156",6,"\u615E\u615F\u6160\u6161\u6163\u6164\u6165\u6166\u6169",6,"\u6171\u6172\u6173\u6174\u6176\u6178",18,"\u618C\u618D\u618F",4,"\u6195"],["9180","\u6196",6,"\u619E",8,"\u61AA\u61AB\u61AD",9,"\u61B8",5,"\u61BF\u61C0\u61C1\u61C3",4,"\u61C9\u61CC",4,"\u61D3\u61D5",16,"\u61E7",13,"\u61F6",8,"\u6200",5,"\u6207\u6209\u6213\u6214\u6219\u621C\u621D\u621E\u6220\u6223\u6226\u6227\u6228\u6229\u622B\u622D\u622F\u6230\u6231\u6232\u6235\u6236\u6238",4,"\u6242\u6244\u6245\u6246\u624A"],["9240","\u624F\u6250\u6255\u6256\u6257\u6259\u625A\u625C",6,"\u6264\u6265\u6268\u6271\u6272\u6274\u6275\u6277\u6278\u627A\u627B\u627D\u6281\u6282\u6283\u6285\u6286\u6287\u6288\u628B",5,"\u6294\u6299\u629C\u629D\u629E\u62A3\u62A6\u62A7\u62A9\u62AA\u62AD\u62AE\u62AF\u62B0\u62B2\u62B3\u62B4\u62B6\u62B7\u62B8\u62BA\u62BE\u62C0\u62C1"],["9280","\u62C3\u62CB\u62CF\u62D1\u62D5\u62DD\u62DE\u62E0\u62E1\u62E4\u62EA\u62EB\u62F0\u62F2\u62F5\u62F8\u62F9\u62FA\u62FB\u6300\u6303\u6304\u6305\u6306\u630A\u630B\u630C\u630D\u630F\u6310\u6312\u6313\u6314\u6315\u6317\u6318\u6319\u631C\u6326\u6327\u6329\u632C\u632D\u632E\u6330\u6331\u6333",5,"\u633B\u633C\u633E\u633F\u6340\u6341\u6344\u6347\u6348\u634A\u6351\u6352\u6353\u6354\u6356",7,"\u6360\u6364\u6365\u6366\u6368\u636A\u636B\u636C\u636F\u6370\u6372\u6373\u6374\u6375\u6378\u6379\u637C\u637D\u637E\u637F\u6381\u6383\u6384\u6385\u6386\u638B\u638D\u6391\u6393\u6394\u6395\u6397\u6399",6,"\u63A1\u63A4\u63A6\u63AB\u63AF\u63B1\u63B2\u63B5\u63B6\u63B9\u63BB\u63BD\u63BF\u63C0"],["9340","\u63C1\u63C2\u63C3\u63C5\u63C7\u63C8\u63CA\u63CB\u63CC\u63D1\u63D3\u63D4\u63D5\u63D7",6,"\u63DF\u63E2\u63E4",4,"\u63EB\u63EC\u63EE\u63EF\u63F0\u63F1\u63F3\u63F5\u63F7\u63F9\u63FA\u63FB\u63FC\u63FE\u6403\u6404\u6406",4,"\u640D\u640E\u6411\u6412\u6415",5,"\u641D\u641F\u6422\u6423\u6424"],["9380","\u6425\u6427\u6428\u6429\u642B\u642E",5,"\u6435",4,"\u643B\u643C\u643E\u6440\u6442\u6443\u6449\u644B",6,"\u6453\u6455\u6456\u6457\u6459",4,"\u645F",7,"\u6468\u646A\u646B\u646C\u646E",9,"\u647B",6,"\u6483\u6486\u6488",8,"\u6493\u6494\u6497\u6498\u649A\u649B\u649C\u649D\u649F",4,"\u64A5\u64A6\u64A7\u64A8\u64AA\u64AB\u64AF\u64B1\u64B2\u64B3\u64B4\u64B6\u64B9\u64BB\u64BD\u64BE\u64BF\u64C1\u64C3\u64C4\u64C6",6,"\u64CF\u64D1\u64D3\u64D4\u64D5\u64D6\u64D9\u64DA"],["9440","\u64DB\u64DC\u64DD\u64DF\u64E0\u64E1\u64E3\u64E5\u64E7",24,"\u6501",7,"\u650A",7,"\u6513",4,"\u6519",8],["9480","\u6522\u6523\u6524\u6526",4,"\u652C\u652D\u6530\u6531\u6532\u6533\u6537\u653A\u653C\u653D\u6540",4,"\u6546\u6547\u654A\u654B\u654D\u654E\u6550\u6552\u6553\u6554\u6557\u6558\u655A\u655C\u655F\u6560\u6561\u6564\u6565\u6567\u6568\u6569\u656A\u656D\u656E\u656F\u6571\u6573\u6575\u6576\u6578",14,"\u6588\u6589\u658A\u658D\u658E\u658F\u6592\u6594\u6595\u6596\u6598\u659A\u659D\u659E\u65A0\u65A2\u65A3\u65A6\u65A8\u65AA\u65AC\u65AE\u65B1",7,"\u65BA\u65BB\u65BE\u65BF\u65C0\u65C2\u65C7\u65C8\u65C9\u65CA\u65CD\u65D0\u65D1\u65D3\u65D4\u65D5\u65D8",7,"\u65E1\u65E3\u65E4\u65EA\u65EB"],["9540","\u65F2\u65F3\u65F4\u65F5\u65F8\u65F9\u65FB",4,"\u6601\u6604\u6605\u6607\u6608\u6609\u660B\u660D\u6610\u6611\u6612\u6616\u6617\u6618\u661A\u661B\u661C\u661E\u6621\u6622\u6623\u6624\u6626\u6629\u662A\u662B\u662C\u662E\u6630\u6632\u6633\u6637",4,"\u663D\u663F\u6640\u6642\u6644",6,"\u664D\u664E\u6650\u6651\u6658"],["9580","\u6659\u665B\u665C\u665D\u665E\u6660\u6662\u6663\u6665\u6667\u6669",4,"\u6671\u6672\u6673\u6675\u6678\u6679\u667B\u667C\u667D\u667F\u6680\u6681\u6683\u6685\u6686\u6688\u6689\u668A\u668B\u668D\u668E\u668F\u6690\u6692\u6693\u6694\u6695\u6698",4,"\u669E",8,"\u66A9",4,"\u66AF",4,"\u66B5\u66B6\u66B7\u66B8\u66BA\u66BB\u66BC\u66BD\u66BF",25,"\u66DA\u66DE",7,"\u66E7\u66E8\u66EA",5,"\u66F1\u66F5\u66F6\u66F8\u66FA\u66FB\u66FD\u6701\u6702\u6703"],["9640","\u6704\u6705\u6706\u6707\u670C\u670E\u670F\u6711\u6712\u6713\u6716\u6718\u6719\u671A\u671C\u671E\u6720",5,"\u6727\u6729\u672E\u6730\u6732\u6733\u6736\u6737\u6738\u6739\u673B\u673C\u673E\u673F\u6741\u6744\u6745\u6747\u674A\u674B\u674D\u6752\u6754\u6755\u6757",4,"\u675D\u6762\u6763\u6764\u6766\u6767\u676B\u676C\u676E\u6771\u6774\u6776"],["9680","\u6778\u6779\u677A\u677B\u677D\u6780\u6782\u6783\u6785\u6786\u6788\u678A\u678C\u678D\u678E\u678F\u6791\u6792\u6793\u6794\u6796\u6799\u679B\u679F\u67A0\u67A1\u67A4\u67A6\u67A9\u67AC\u67AE\u67B1\u67B2\u67B4\u67B9",7,"\u67C2\u67C5",9,"\u67D5\u67D6\u67D7\u67DB\u67DF\u67E1\u67E3\u67E4\u67E6\u67E7\u67E8\u67EA\u67EB\u67ED\u67EE\u67F2\u67F5",7,"\u67FE\u6801\u6802\u6803\u6804\u6806\u680D\u6810\u6812\u6814\u6815\u6818",4,"\u681E\u681F\u6820\u6822",6,"\u682B",6,"\u6834\u6835\u6836\u683A\u683B\u683F\u6847\u684B\u684D\u684F\u6852\u6856",5],["9740","\u685C\u685D\u685E\u685F\u686A\u686C",7,"\u6875\u6878",8,"\u6882\u6884\u6887",7,"\u6890\u6891\u6892\u6894\u6895\u6896\u6898",9,"\u68A3\u68A4\u68A5\u68A9\u68AA\u68AB\u68AC\u68AE\u68B1\u68B2\u68B4\u68B6\u68B7\u68B8"],["9780","\u68B9",6,"\u68C1\u68C3",5,"\u68CA\u68CC\u68CE\u68CF\u68D0\u68D1\u68D3\u68D4\u68D6\u68D7\u68D9\u68DB",4,"\u68E1\u68E2\u68E4",9,"\u68EF\u68F2\u68F3\u68F4\u68F6\u68F7\u68F8\u68FB\u68FD\u68FE\u68FF\u6900\u6902\u6903\u6904\u6906",4,"\u690C\u690F\u6911\u6913",11,"\u6921\u6922\u6923\u6925",7,"\u692E\u692F\u6931\u6932\u6933\u6935\u6936\u6937\u6938\u693A\u693B\u693C\u693E\u6940\u6941\u6943",16,"\u6955\u6956\u6958\u6959\u695B\u695C\u695F"],["9840","\u6961\u6962\u6964\u6965\u6967\u6968\u6969\u696A\u696C\u696D\u696F\u6970\u6972",4,"\u697A\u697B\u697D\u697E\u697F\u6981\u6983\u6985\u698A\u698B\u698C\u698E",5,"\u6996\u6997\u6999\u699A\u699D",9,"\u69A9\u69AA\u69AC\u69AE\u69AF\u69B0\u69B2\u69B3\u69B5\u69B6\u69B8\u69B9\u69BA\u69BC\u69BD"],["9880","\u69BE\u69BF\u69C0\u69C2",7,"\u69CB\u69CD\u69CF\u69D1\u69D2\u69D3\u69D5",5,"\u69DC\u69DD\u69DE\u69E1",11,"\u69EE\u69EF\u69F0\u69F1\u69F3",9,"\u69FE\u6A00",9,"\u6A0B",11,"\u6A19",5,"\u6A20\u6A22",5,"\u6A29\u6A2B\u6A2C\u6A2D\u6A2E\u6A30\u6A32\u6A33\u6A34\u6A36",6,"\u6A3F",4,"\u6A45\u6A46\u6A48",7,"\u6A51",6,"\u6A5A"],["9940","\u6A5C",4,"\u6A62\u6A63\u6A64\u6A66",10,"\u6A72",6,"\u6A7A\u6A7B\u6A7D\u6A7E\u6A7F\u6A81\u6A82\u6A83\u6A85",8,"\u6A8F\u6A92",4,"\u6A98",7,"\u6AA1",5],["9980","\u6AA7\u6AA8\u6AAA\u6AAD",114,"\u6B25\u6B26\u6B28",6],["9a40","\u6B2F\u6B30\u6B31\u6B33\u6B34\u6B35\u6B36\u6B38\u6B3B\u6B3C\u6B3D\u6B3F\u6B40\u6B41\u6B42\u6B44\u6B45\u6B48\u6B4A\u6B4B\u6B4D",11,"\u6B5A",7,"\u6B68\u6B69\u6B6B",13,"\u6B7A\u6B7D\u6B7E\u6B7F\u6B80\u6B85\u6B88"],["9a80","\u6B8C\u6B8E\u6B8F\u6B90\u6B91\u6B94\u6B95\u6B97\u6B98\u6B99\u6B9C",4,"\u6BA2",7,"\u6BAB",7,"\u6BB6\u6BB8",6,"\u6BC0\u6BC3\u6BC4\u6BC6",4,"\u6BCC\u6BCE\u6BD0\u6BD1\u6BD8\u6BDA\u6BDC",4,"\u6BE2",7,"\u6BEC\u6BED\u6BEE\u6BF0\u6BF1\u6BF2\u6BF4\u6BF6\u6BF7\u6BF8\u6BFA\u6BFB\u6BFC\u6BFE",6,"\u6C08",4,"\u6C0E\u6C12\u6C17\u6C1C\u6C1D\u6C1E\u6C20\u6C23\u6C25\u6C2B\u6C2C\u6C2D\u6C31\u6C33\u6C36\u6C37\u6C39\u6C3A\u6C3B\u6C3C\u6C3E\u6C3F\u6C43\u6C44\u6C45\u6C48\u6C4B",4,"\u6C51\u6C52\u6C53\u6C56\u6C58"],["9b40","\u6C59\u6C5A\u6C62\u6C63\u6C65\u6C66\u6C67\u6C6B",4,"\u6C71\u6C73\u6C75\u6C77\u6C78\u6C7A\u6C7B\u6C7C\u6C7F\u6C80\u6C84\u6C87\u6C8A\u6C8B\u6C8D\u6C8E\u6C91\u6C92\u6C95\u6C96\u6C97\u6C98\u6C9A\u6C9C\u6C9D\u6C9E\u6CA0\u6CA2\u6CA8\u6CAC\u6CAF\u6CB0\u6CB4\u6CB5\u6CB6\u6CB7\u6CBA\u6CC0\u6CC1\u6CC2\u6CC3\u6CC6\u6CC7\u6CC8\u6CCB\u6CCD\u6CCE\u6CCF\u6CD1\u6CD2\u6CD8"],["9b80","\u6CD9\u6CDA\u6CDC\u6CDD\u6CDF\u6CE4\u6CE6\u6CE7\u6CE9\u6CEC\u6CED\u6CF2\u6CF4\u6CF9\u6CFF\u6D00\u6D02\u6D03\u6D05\u6D06\u6D08\u6D09\u6D0A\u6D0D\u6D0F\u6D10\u6D11\u6D13\u6D14\u6D15\u6D16\u6D18\u6D1C\u6D1D\u6D1F",5,"\u6D26\u6D28\u6D29\u6D2C\u6D2D\u6D2F\u6D30\u6D34\u6D36\u6D37\u6D38\u6D3A\u6D3F\u6D40\u6D42\u6D44\u6D49\u6D4C\u6D50\u6D55\u6D56\u6D57\u6D58\u6D5B\u6D5D\u6D5F\u6D61\u6D62\u6D64\u6D65\u6D67\u6D68\u6D6B\u6D6C\u6D6D\u6D70\u6D71\u6D72\u6D73\u6D75\u6D76\u6D79\u6D7A\u6D7B\u6D7D",4,"\u6D83\u6D84\u6D86\u6D87\u6D8A\u6D8B\u6D8D\u6D8F\u6D90\u6D92\u6D96",4,"\u6D9C\u6DA2\u6DA5\u6DAC\u6DAD\u6DB0\u6DB1\u6DB3\u6DB4\u6DB6\u6DB7\u6DB9",5,"\u6DC1\u6DC2\u6DC3\u6DC8\u6DC9\u6DCA"],["9c40","\u6DCD\u6DCE\u6DCF\u6DD0\u6DD2\u6DD3\u6DD4\u6DD5\u6DD7\u6DDA\u6DDB\u6DDC\u6DDF\u6DE2\u6DE3\u6DE5\u6DE7\u6DE8\u6DE9\u6DEA\u6DED\u6DEF\u6DF0\u6DF2\u6DF4\u6DF5\u6DF6\u6DF8\u6DFA\u6DFD",7,"\u6E06\u6E07\u6E08\u6E09\u6E0B\u6E0F\u6E12\u6E13\u6E15\u6E18\u6E19\u6E1B\u6E1C\u6E1E\u6E1F\u6E22\u6E26\u6E27\u6E28\u6E2A\u6E2C\u6E2E\u6E30\u6E31\u6E33\u6E35"],["9c80","\u6E36\u6E37\u6E39\u6E3B",7,"\u6E45",7,"\u6E4F\u6E50\u6E51\u6E52\u6E55\u6E57\u6E59\u6E5A\u6E5C\u6E5D\u6E5E\u6E60",10,"\u6E6C\u6E6D\u6E6F",14,"\u6E80\u6E81\u6E82\u6E84\u6E87\u6E88\u6E8A",4,"\u6E91",6,"\u6E99\u6E9A\u6E9B\u6E9D\u6E9E\u6EA0\u6EA1\u6EA3\u6EA4\u6EA6\u6EA8\u6EA9\u6EAB\u6EAC\u6EAD\u6EAE\u6EB0\u6EB3\u6EB5\u6EB8\u6EB9\u6EBC\u6EBE\u6EBF\u6EC0\u6EC3\u6EC4\u6EC5\u6EC6\u6EC8\u6EC9\u6ECA\u6ECC\u6ECD\u6ECE\u6ED0\u6ED2\u6ED6\u6ED8\u6ED9\u6EDB\u6EDC\u6EDD\u6EE3\u6EE7\u6EEA",5],["9d40","\u6EF0\u6EF1\u6EF2\u6EF3\u6EF5\u6EF6\u6EF7\u6EF8\u6EFA",7,"\u6F03\u6F04\u6F05\u6F07\u6F08\u6F0A",4,"\u6F10\u6F11\u6F12\u6F16",9,"\u6F21\u6F22\u6F23\u6F25\u6F26\u6F27\u6F28\u6F2C\u6F2E\u6F30\u6F32\u6F34\u6F35\u6F37",6,"\u6F3F\u6F40\u6F41\u6F42"],["9d80","\u6F43\u6F44\u6F45\u6F48\u6F49\u6F4A\u6F4C\u6F4E",9,"\u6F59\u6F5A\u6F5B\u6F5D\u6F5F\u6F60\u6F61\u6F63\u6F64\u6F65\u6F67",5,"\u6F6F\u6F70\u6F71\u6F73\u6F75\u6F76\u6F77\u6F79\u6F7B\u6F7D",6,"\u6F85\u6F86\u6F87\u6F8A\u6F8B\u6F8F",12,"\u6F9D\u6F9E\u6F9F\u6FA0\u6FA2",4,"\u6FA8",10,"\u6FB4\u6FB5\u6FB7\u6FB8\u6FBA",5,"\u6FC1\u6FC3",5,"\u6FCA",6,"\u6FD3",10,"\u6FDF\u6FE2\u6FE3\u6FE4\u6FE5"],["9e40","\u6FE6",7,"\u6FF0",32,"\u7012",7,"\u701C",6,"\u7024",6],["9e80","\u702B",9,"\u7036\u7037\u7038\u703A",17,"\u704D\u704E\u7050",13,"\u705F",11,"\u706E\u7071\u7072\u7073\u7074\u7077\u7079\u707A\u707B\u707D\u7081\u7082\u7083\u7084\u7086\u7087\u7088\u708B\u708C\u708D\u708F\u7090\u7091\u7093\u7097\u7098\u709A\u709B\u709E",12,"\u70B0\u70B2\u70B4\u70B5\u70B6\u70BA\u70BE\u70BF\u70C4\u70C5\u70C6\u70C7\u70C9\u70CB",12,"\u70DA"],["9f40","\u70DC\u70DD\u70DE\u70E0\u70E1\u70E2\u70E3\u70E5\u70EA\u70EE\u70F0",6,"\u70F8\u70FA\u70FB\u70FC\u70FE",10,"\u710B",4,"\u7111\u7112\u7114\u7117\u711B",10,"\u7127",7,"\u7132\u7133\u7134"],["9f80","\u7135\u7137",13,"\u7146\u7147\u7148\u7149\u714B\u714D\u714F",12,"\u715D\u715F",4,"\u7165\u7169",4,"\u716F\u7170\u7171\u7174\u7175\u7176\u7177\u7179\u717B\u717C\u717E",5,"\u7185",4,"\u718B\u718C\u718D\u718E\u7190\u7191\u7192\u7193\u7195\u7196\u7197\u719A",4,"\u71A1",6,"\u71A9\u71AA\u71AB\u71AD",5,"\u71B4\u71B6\u71B7\u71B8\u71BA",8,"\u71C4",9,"\u71CF",4],["a040","\u71D6",9,"\u71E1\u71E2\u71E3\u71E4\u71E6\u71E8",5,"\u71EF",9,"\u71FA",11,"\u7207",19],["a080","\u721B\u721C\u721E",9,"\u7229\u722B\u722D\u722E\u722F\u7232\u7233\u7234\u723A\u723C\u723E\u7240",6,"\u7249\u724A\u724B\u724E\u724F\u7250\u7251\u7253\u7254\u7255\u7257\u7258\u725A\u725C\u725E\u7260\u7263\u7264\u7265\u7268\u726A\u726B\u726C\u726D\u7270\u7271\u7273\u7274\u7276\u7277\u7278\u727B\u727C\u727D\u7282\u7283\u7285",4,"\u728C\u728E\u7290\u7291\u7293",11,"\u72A0",11,"\u72AE\u72B1\u72B2\u72B3\u72B5\u72BA",6,"\u72C5\u72C6\u72C7\u72C9\u72CA\u72CB\u72CC\u72CF\u72D1\u72D3\u72D4\u72D5\u72D6\u72D8\u72DA\u72DB"],["a1a1","\u3000\u3001\u3002\xB7\u02C9\u02C7\xA8\u3003\u3005\u2014\uFF5E\u2016\u2026\u2018\u2019\u201C\u201D\u3014\u3015\u3008",7,"\u3016\u3017\u3010\u3011\xB1\xD7\xF7\u2236\u2227\u2228\u2211\u220F\u222A\u2229\u2208\u2237\u221A\u22A5\u2225\u2220\u2312\u2299\u222B\u222E\u2261\u224C\u2248\u223D\u221D\u2260\u226E\u226F\u2264\u2265\u221E\u2235\u2234\u2642\u2640\xB0\u2032\u2033\u2103\uFF04\xA4\uFFE0\uFFE1\u2030\xA7\u2116\u2606\u2605\u25CB\u25CF\u25CE\u25C7\u25C6\u25A1\u25A0\u25B3\u25B2\u203B\u2192\u2190\u2191\u2193\u3013"],["a2a1","\u2170",9],["a2b1","\u2488",19,"\u2474",19,"\u2460",9],["a2e5","\u3220",9],["a2f1","\u2160",11],["a3a1","\uFF01\uFF02\uFF03\uFFE5\uFF05",88,"\uFFE3"],["a4a1","\u3041",82],["a5a1","\u30A1",85],["a6a1","\u0391",16,"\u03A3",6],["a6c1","\u03B1",16,"\u03C3",6],["a6e0","\uFE35\uFE36\uFE39\uFE3A\uFE3F\uFE40\uFE3D\uFE3E\uFE41\uFE42\uFE43\uFE44"],["a6ee","\uFE3B\uFE3C\uFE37\uFE38\uFE31"],["a6f4","\uFE33\uFE34"],["a7a1","\u0410",5,"\u0401\u0416",25],["a7d1","\u0430",5,"\u0451\u0436",25],["a840","\u02CA\u02CB\u02D9\u2013\u2015\u2025\u2035\u2105\u2109\u2196\u2197\u2198\u2199\u2215\u221F\u2223\u2252\u2266\u2267\u22BF\u2550",35,"\u2581",6],["a880","\u2588",7,"\u2593\u2594\u2595\u25BC\u25BD\u25E2\u25E3\u25E4\u25E5\u2609\u2295\u3012\u301D\u301E"],["a8a1","\u0101\xE1\u01CE\xE0\u0113\xE9\u011B\xE8\u012B\xED\u01D0\xEC\u014D\xF3\u01D2\xF2\u016B\xFA\u01D4\xF9\u01D6\u01D8\u01DA\u01DC\xFC\xEA\u0251"],["a8bd","\u0144\u0148"],["a8c0","\u0261"],["a8c5","\u3105",36],["a940","\u3021",8,"\u32A3\u338E\u338F\u339C\u339D\u339E\u33A1\u33C4\u33CE\u33D1\u33D2\u33D5\uFE30\uFFE2\uFFE4"],["a959","\u2121\u3231"],["a95c","\u2010"],["a960","\u30FC\u309B\u309C\u30FD\u30FE\u3006\u309D\u309E\uFE49",9,"\uFE54\uFE55\uFE56\uFE57\uFE59",8],["a980","\uFE62",4,"\uFE68\uFE69\uFE6A\uFE6B"],["a996","\u3007"],["a9a4","\u2500",75],["aa40","\u72DC\u72DD\u72DF\u72E2",5,"\u72EA\u72EB\u72F5\u72F6\u72F9\u72FD\u72FE\u72FF\u7300\u7302\u7304",5,"\u730B\u730C\u730D\u730F\u7310\u7311\u7312\u7314\u7318\u7319\u731A\u731F\u7320\u7323\u7324\u7326\u7327\u7328\u732D\u732F\u7330\u7332\u7333\u7335\u7336\u733A\u733B\u733C\u733D\u7340",8],["aa80","\u7349\u734A\u734B\u734C\u734E\u734F\u7351\u7353\u7354\u7355\u7356\u7358",7,"\u7361",10,"\u736E\u7370\u7371"],["ab40","\u7372",11,"\u737F",4,"\u7385\u7386\u7388\u738A\u738C\u738D\u738F\u7390\u7392\u7393\u7394\u7395\u7397\u7398\u7399\u739A\u739C\u739D\u739E\u73A0\u73A1\u73A3",5,"\u73AA\u73AC\u73AD\u73B1\u73B4\u73B5\u73B6\u73B8\u73B9\u73BC\u73BD\u73BE\u73BF\u73C1\u73C3",4],["ab80","\u73CB\u73CC\u73CE\u73D2",6,"\u73DA\u73DB\u73DC\u73DD\u73DF\u73E1\u73E2\u73E3\u73E4\u73E6\u73E8\u73EA\u73EB\u73EC\u73EE\u73EF\u73F0\u73F1\u73F3",4],["ac40","\u73F8",10,"\u7404\u7407\u7408\u740B\u740C\u740D\u740E\u7411",8,"\u741C",5,"\u7423\u7424\u7427\u7429\u742B\u742D\u742F\u7431\u7432\u7437",4,"\u743D\u743E\u743F\u7440\u7442",11],["ac80","\u744E",6,"\u7456\u7458\u745D\u7460",12,"\u746E\u746F\u7471",4,"\u7478\u7479\u747A"],["ad40","\u747B\u747C\u747D\u747F\u7482\u7484\u7485\u7486\u7488\u7489\u748A\u748C\u748D\u748F\u7491",10,"\u749D\u749F",7,"\u74AA",15,"\u74BB",12],["ad80","\u74C8",9,"\u74D3",8,"\u74DD\u74DF\u74E1\u74E5\u74E7",6,"\u74F0\u74F1\u74F2"],["ae40","\u74F3\u74F5\u74F8",6,"\u7500\u7501\u7502\u7503\u7505",7,"\u750E\u7510\u7512\u7514\u7515\u7516\u7517\u751B\u751D\u751E\u7520",4,"\u7526\u7527\u752A\u752E\u7534\u7536\u7539\u753C\u753D\u753F\u7541\u7542\u7543\u7544\u7546\u7547\u7549\u754A\u754D\u7550\u7551\u7552\u7553\u7555\u7556\u7557\u7558"],["ae80","\u755D",7,"\u7567\u7568\u7569\u756B",6,"\u7573\u7575\u7576\u7577\u757A",4,"\u7580\u7581\u7582\u7584\u7585\u7587"],["af40","\u7588\u7589\u758A\u758C\u758D\u758E\u7590\u7593\u7595\u7598\u759B\u759C\u759E\u75A2\u75A6",4,"\u75AD\u75B6\u75B7\u75BA\u75BB\u75BF\u75C0\u75C1\u75C6\u75CB\u75CC\u75CE\u75CF\u75D0\u75D1\u75D3\u75D7\u75D9\u75DA\u75DC\u75DD\u75DF\u75E0\u75E1\u75E5\u75E9\u75EC\u75ED\u75EE\u75EF\u75F2\u75F3\u75F5\u75F6\u75F7\u75F8\u75FA\u75FB\u75FD\u75FE\u7602\u7604\u7606\u7607"],["af80","\u7608\u7609\u760B\u760D\u760E\u760F\u7611\u7612\u7613\u7614\u7616\u761A\u761C\u761D\u761E\u7621\u7623\u7627\u7628\u762C\u762E\u762F\u7631\u7632\u7636\u7637\u7639\u763A\u763B\u763D\u7641\u7642\u7644"],["b040","\u7645",6,"\u764E",5,"\u7655\u7657",4,"\u765D\u765F\u7660\u7661\u7662\u7664",6,"\u766C\u766D\u766E\u7670",7,"\u7679\u767A\u767C\u767F\u7680\u7681\u7683\u7685\u7689\u768A\u768C\u768D\u768F\u7690\u7692\u7694\u7695\u7697\u7698\u769A\u769B"],["b080","\u769C",7,"\u76A5",8,"\u76AF\u76B0\u76B3\u76B5",9,"\u76C0\u76C1\u76C3\u554A\u963F\u57C3\u6328\u54CE\u5509\u54C0\u7691\u764C\u853C\u77EE\u827E\u788D\u7231\u9698\u978D\u6C28\u5B89\u4FFA\u6309\u6697\u5CB8\u80FA\u6848\u80AE\u6602\u76CE\u51F9\u6556\u71AC\u7FF1\u8884\u50B2\u5965\u61CA\u6FB3\u82AD\u634C\u6252\u53ED\u5427\u7B06\u516B\u75A4\u5DF4\u62D4\u8DCB\u9776\u628A\u8019\u575D\u9738\u7F62\u7238\u767D\u67CF\u767E\u6446\u4F70\u8D25\u62DC\u7A17\u6591\u73ED\u642C\u6273\u822C\u9881\u677F\u7248\u626E\u62CC\u4F34\u74E3\u534A\u529E\u7ECA\u90A6\u5E2E\u6886\u699C\u8180\u7ED1\u68D2\u78C5\u868C\u9551\u508D\u8C24\u82DE\u80DE\u5305\u8912\u5265"],["b140","\u76C4\u76C7\u76C9\u76CB\u76CC\u76D3\u76D5\u76D9\u76DA\u76DC\u76DD\u76DE\u76E0",4,"\u76E6",7,"\u76F0\u76F3\u76F5\u76F6\u76F7\u76FA\u76FB\u76FD\u76FF\u7700\u7702\u7703\u7705\u7706\u770A\u770C\u770E",10,"\u771B\u771C\u771D\u771E\u7721\u7723\u7724\u7725\u7727\u772A\u772B"],["b180","\u772C\u772E\u7730",4,"\u7739\u773B\u773D\u773E\u773F\u7742\u7744\u7745\u7746\u7748",7,"\u7752",7,"\u775C\u8584\u96F9\u4FDD\u5821\u9971\u5B9D\u62B1\u62A5\u66B4\u8C79\u9C8D\u7206\u676F\u7891\u60B2\u5351\u5317\u8F88\u80CC\u8D1D\u94A1\u500D\u72C8\u5907\u60EB\u7119\u88AB\u5954\u82EF\u672C\u7B28\u5D29\u7EF7\u752D\u6CF5\u8E66\u8FF8\u903C\u9F3B\u6BD4\u9119\u7B14\u5F7C\u78A7\u84D6\u853D\u6BD5\u6BD9\u6BD6\u5E01\u5E87\u75F9\u95ED\u655D\u5F0A\u5FC5\u8F9F\u58C1\u81C2\u907F\u965B\u97AD\u8FB9\u7F16\u8D2C\u6241\u4FBF\u53D8\u535E\u8FA8\u8FA9\u8FAB\u904D\u6807\u5F6A\u8198\u8868\u9CD6\u618B\u522B\u762A\u5F6C\u658C\u6FD2\u6EE8\u5BBE\u6448\u5175\u51B0\u67C4\u4E19\u79C9\u997C\u70B3"],["b240","\u775D\u775E\u775F\u7760\u7764\u7767\u7769\u776A\u776D",11,"\u777A\u777B\u777C\u7781\u7782\u7783\u7786",5,"\u778F\u7790\u7793",11,"\u77A1\u77A3\u77A4\u77A6\u77A8\u77AB\u77AD\u77AE\u77AF\u77B1\u77B2\u77B4\u77B6",4],["b280","\u77BC\u77BE\u77C0",12,"\u77CE",8,"\u77D8\u77D9\u77DA\u77DD",4,"\u77E4\u75C5\u5E76\u73BB\u83E0\u64AD\u62E8\u94B5\u6CE2\u535A\u52C3\u640F\u94C2\u7B94\u4F2F\u5E1B\u8236\u8116\u818A\u6E24\u6CCA\u9A73\u6355\u535C\u54FA\u8865\u57E0\u4E0D\u5E03\u6B65\u7C3F\u90E8\u6016\u64E6\u731C\u88C1\u6750\u624D\u8D22\u776C\u8E29\u91C7\u5F69\u83DC\u8521\u9910\u53C2\u8695\u6B8B\u60ED\u60E8\u707F\u82CD\u8231\u4ED3\u6CA7\u85CF\u64CD\u7CD9\u69FD\u66F9\u8349\u5395\u7B56\u4FA7\u518C\u6D4B\u5C42\u8E6D\u63D2\u53C9\u832C\u8336\u67E5\u78B4\u643D\u5BDF\u5C94\u5DEE\u8BE7\u62C6\u67F4\u8C7A\u6400\u63BA\u8749\u998B\u8C17\u7F20\u94F2\u4EA7\u9610\u98A4\u660C\u7316"],["b340","\u77E6\u77E8\u77EA\u77EF\u77F0\u77F1\u77F2\u77F4\u77F5\u77F7\u77F9\u77FA\u77FB\u77FC\u7803",5,"\u780A\u780B\u780E\u780F\u7810\u7813\u7815\u7819\u781B\u781E\u7820\u7821\u7822\u7824\u7828\u782A\u782B\u782E\u782F\u7831\u7832\u7833\u7835\u7836\u783D\u783F\u7841\u7842\u7843\u7844\u7846\u7848\u7849\u784A\u784B\u784D\u784F\u7851\u7853\u7854\u7858\u7859\u785A"],["b380","\u785B\u785C\u785E",11,"\u786F",7,"\u7878\u7879\u787A\u787B\u787D",6,"\u573A\u5C1D\u5E38\u957F\u507F\u80A0\u5382\u655E\u7545\u5531\u5021\u8D85\u6284\u949E\u671D\u5632\u6F6E\u5DE2\u5435\u7092\u8F66\u626F\u64A4\u63A3\u5F7B\u6F88\u90F4\u81E3\u8FB0\u5C18\u6668\u5FF1\u6C89\u9648\u8D81\u886C\u6491\u79F0\u57CE\u6A59\u6210\u5448\u4E58\u7A0B\u60E9\u6F84\u8BDA\u627F\u901E\u9A8B\u79E4\u5403\u75F4\u6301\u5319\u6C60\u8FDF\u5F1B\u9A70\u803B\u9F7F\u4F88\u5C3A\u8D64\u7FC5\u65A5\u70BD\u5145\u51B2\u866B\u5D07\u5BA0\u62BD\u916C\u7574\u8E0C\u7A20\u6101\u7B79\u4EC7\u7EF8\u7785\u4E11\u81ED\u521D\u51FA\u6A71\u53A8\u8E87\u9504\u96CF\u6EC1\u9664\u695A"],["b440","\u7884\u7885\u7886\u7888\u788A\u788B\u788F\u7890\u7892\u7894\u7895\u7896\u7899\u789D\u789E\u78A0\u78A2\u78A4\u78A6\u78A8",7,"\u78B5\u78B6\u78B7\u78B8\u78BA\u78BB\u78BC\u78BD\u78BF\u78C0\u78C2\u78C3\u78C4\u78C6\u78C7\u78C8\u78CC\u78CD\u78CE\u78CF\u78D1\u78D2\u78D3\u78D6\u78D7\u78D8\u78DA",9],["b480","\u78E4\u78E5\u78E6\u78E7\u78E9\u78EA\u78EB\u78ED",4,"\u78F3\u78F5\u78F6\u78F8\u78F9\u78FB",5,"\u7902\u7903\u7904\u7906",6,"\u7840\u50A8\u77D7\u6410\u89E6\u5904\u63E3\u5DDD\u7A7F\u693D\u4F20\u8239\u5598\u4E32\u75AE\u7A97\u5E62\u5E8A\u95EF\u521B\u5439\u708A\u6376\u9524\u5782\u6625\u693F\u9187\u5507\u6DF3\u7EAF\u8822\u6233\u7EF0\u75B5\u8328\u78C1\u96CC\u8F9E\u6148\u74F7\u8BCD\u6B64\u523A\u8D50\u6B21\u806A\u8471\u56F1\u5306\u4ECE\u4E1B\u51D1\u7C97\u918B\u7C07\u4FC3\u8E7F\u7BE1\u7A9C\u6467\u5D14\u50AC\u8106\u7601\u7CB9\u6DEC\u7FE0\u6751\u5B58\u5BF8\u78CB\u64AE\u6413\u63AA\u632B\u9519\u642D\u8FBE\u7B54\u7629\u6253\u5927\u5446\u6B79\u50A3\u6234\u5E26\u6B86\u4EE3\u8D37\u888B\u5F85\u902E"],["b540","\u790D",5,"\u7914",9,"\u791F",4,"\u7925",14,"\u7935",4,"\u793D\u793F\u7942\u7943\u7944\u7945\u7947\u794A",8,"\u7954\u7955\u7958\u7959\u7961\u7963"],["b580","\u7964\u7966\u7969\u796A\u796B\u796C\u796E\u7970",6,"\u7979\u797B",4,"\u7982\u7983\u7986\u7987\u7988\u7989\u798B\u798C\u798D\u798E\u7990\u7991\u7992\u6020\u803D\u62C5\u4E39\u5355\u90F8\u63B8\u80C6\u65E6\u6C2E\u4F46\u60EE\u6DE1\u8BDE\u5F39\u86CB\u5F53\u6321\u515A\u8361\u6863\u5200\u6363\u8E48\u5012\u5C9B\u7977\u5BFC\u5230\u7A3B\u60BC\u9053\u76D7\u5FB7\u5F97\u7684\u8E6C\u706F\u767B\u7B49\u77AA\u51F3\u9093\u5824\u4F4E\u6EF4\u8FEA\u654C\u7B1B\u72C4\u6DA4\u7FDF\u5AE1\u62B5\u5E95\u5730\u8482\u7B2C\u5E1D\u5F1F\u9012\u7F14\u98A0\u6382\u6EC7\u7898\u70B9\u5178\u975B\u57AB\u7535\u4F43\u7538\u5E97\u60E6\u5960\u6DC0\u6BBF\u7889\u53FC\u96D5\u51CB\u5201\u6389\u540A\u9493\u8C03\u8DCC\u7239\u789F\u8776\u8FED\u8C0D\u53E0"],["b640","\u7993",6,"\u799B",11,"\u79A8",10,"\u79B4",4,"\u79BC\u79BF\u79C2\u79C4\u79C5\u79C7\u79C8\u79CA\u79CC\u79CE\u79CF\u79D0\u79D3\u79D4\u79D6\u79D7\u79D9",5,"\u79E0\u79E1\u79E2\u79E5\u79E8\u79EA"],["b680","\u79EC\u79EE\u79F1",6,"\u79F9\u79FA\u79FC\u79FE\u79FF\u7A01\u7A04\u7A05\u7A07\u7A08\u7A09\u7A0A\u7A0C\u7A0F",4,"\u7A15\u7A16\u7A18\u7A19\u7A1B\u7A1C\u4E01\u76EF\u53EE\u9489\u9876\u9F0E\u952D\u5B9A\u8BA2\u4E22\u4E1C\u51AC\u8463\u61C2\u52A8\u680B\u4F97\u606B\u51BB\u6D1E\u515C\u6296\u6597\u9661\u8C46\u9017\u75D8\u90FD\u7763\u6BD2\u728A\u72EC\u8BFB\u5835\u7779\u8D4C\u675C\u9540\u809A\u5EA6\u6E21\u5992\u7AEF\u77ED\u953B\u6BB5\u65AD\u7F0E\u5806\u5151\u961F\u5BF9\u58A9\u5428\u8E72\u6566\u987F\u56E4\u949D\u76FE\u9041\u6387\u54C6\u591A\u593A\u579B\u8EB2\u6735\u8DFA\u8235\u5241\u60F0\u5815\u86FE\u5CE8\u9E45\u4FC4\u989D\u8BB9\u5A25\u6076\u5384\u627C\u904F\u9102\u997F\u6069\u800C\u513F\u8033\u5C14\u9975\u6D31\u4E8C"],["b740","\u7A1D\u7A1F\u7A21\u7A22\u7A24",14,"\u7A34\u7A35\u7A36\u7A38\u7A3A\u7A3E\u7A40",5,"\u7A47",9,"\u7A52",4,"\u7A58",16],["b780","\u7A69",6,"\u7A71\u7A72\u7A73\u7A75\u7A7B\u7A7C\u7A7D\u7A7E\u7A82\u7A85\u7A87\u7A89\u7A8A\u7A8B\u7A8C\u7A8E\u7A8F\u7A90\u7A93\u7A94\u7A99\u7A9A\u7A9B\u7A9E\u7AA1\u7AA2\u8D30\u53D1\u7F5A\u7B4F\u4F10\u4E4F\u9600\u6CD5\u73D0\u85E9\u5E06\u756A\u7FFB\u6A0A\u77FE\u9492\u7E41\u51E1\u70E6\u53CD\u8FD4\u8303\u8D29\u72AF\u996D\u6CDB\u574A\u82B3\u65B9\u80AA\u623F\u9632\u59A8\u4EFF\u8BBF\u7EBA\u653E\u83F2\u975E\u5561\u98DE\u80A5\u532A\u8BFD\u5420\u80BA\u5E9F\u6CB8\u8D39\u82AC\u915A\u5429\u6C1B\u5206\u7EB7\u575F\u711A\u6C7E\u7C89\u594B\u4EFD\u5FFF\u6124\u7CAA\u4E30\u5C01\u67AB\u8702\u5CF0\u950B\u98CE\u75AF\u70FD\u9022\u51AF\u7F1D\u8BBD\u5949\u51E4\u4F5B\u5426\u592B\u6577\u80A4\u5B75\u6276\u62C2\u8F90\u5E45\u6C1F\u7B26\u4F0F\u4FD8\u670D"],["b840","\u7AA3\u7AA4\u7AA7\u7AA9\u7AAA\u7AAB\u7AAE",4,"\u7AB4",10,"\u7AC0",10,"\u7ACC",9,"\u7AD7\u7AD8\u7ADA\u7ADB\u7ADC\u7ADD\u7AE1\u7AE2\u7AE4\u7AE7",5,"\u7AEE\u7AF0\u7AF1\u7AF2\u7AF3"],["b880","\u7AF4",4,"\u7AFB\u7AFC\u7AFE\u7B00\u7B01\u7B02\u7B05\u7B07\u7B09\u7B0C\u7B0D\u7B0E\u7B10\u7B12\u7B13\u7B16\u7B17\u7B18\u7B1A\u7B1C\u7B1D\u7B1F\u7B21\u7B22\u7B23\u7B27\u7B29\u7B2D\u6D6E\u6DAA\u798F\u88B1\u5F17\u752B\u629A\u8F85\u4FEF\u91DC\u65A7\u812F\u8151\u5E9C\u8150\u8D74\u526F\u8986\u8D4B\u590D\u5085\u4ED8\u961C\u7236\u8179\u8D1F\u5BCC\u8BA3\u9644\u5987\u7F1A\u5490\u5676\u560E\u8BE5\u6539\u6982\u9499\u76D6\u6E89\u5E72\u7518\u6746\u67D1\u7AFF\u809D\u8D76\u611F\u79C6\u6562\u8D63\u5188\u521A\u94A2\u7F38\u809B\u7EB2\u5C97\u6E2F\u6760\u7BD9\u768B\u9AD8\u818F\u7F94\u7CD5\u641E\u9550\u7A3F\u544A\u54E5\u6B4C\u6401\u6208\u9E3D\u80F3\u7599\u5272\u9769\u845B\u683C\u86E4\u9601\u9694\u94EC\u4E2A\u5404\u7ED9\u6839\u8DDF\u8015\u66F4\u5E9A\u7FB9"],["b940","\u7B2F\u7B30\u7B32\u7B34\u7B35\u7B36\u7B37\u7B39\u7B3B\u7B3D\u7B3F",5,"\u7B46\u7B48\u7B4A\u7B4D\u7B4E\u7B53\u7B55\u7B57\u7B59\u7B5C\u7B5E\u7B5F\u7B61\u7B63",10,"\u7B6F\u7B70\u7B73\u7B74\u7B76\u7B78\u7B7A\u7B7C\u7B7D\u7B7F\u7B81\u7B82\u7B83\u7B84\u7B86",6,"\u7B8E\u7B8F"],["b980","\u7B91\u7B92\u7B93\u7B96\u7B98\u7B99\u7B9A\u7B9B\u7B9E\u7B9F\u7BA0\u7BA3\u7BA4\u7BA5\u7BAE\u7BAF\u7BB0\u7BB2\u7BB3\u7BB5\u7BB6\u7BB7\u7BB9",7,"\u7BC2\u7BC3\u7BC4\u57C2\u803F\u6897\u5DE5\u653B\u529F\u606D\u9F9A\u4F9B\u8EAC\u516C\u5BAB\u5F13\u5DE9\u6C5E\u62F1\u8D21\u5171\u94A9\u52FE\u6C9F\u82DF\u72D7\u57A2\u6784\u8D2D\u591F\u8F9C\u83C7\u5495\u7B8D\u4F30\u6CBD\u5B64\u59D1\u9F13\u53E4\u86CA\u9AA8\u8C37\u80A1\u6545\u987E\u56FA\u96C7\u522E\u74DC\u5250\u5BE1\u6302\u8902\u4E56\u62D0\u602A\u68FA\u5173\u5B98\u51A0\u89C2\u7BA1\u9986\u7F50\u60EF\u704C\u8D2F\u5149\u5E7F\u901B\u7470\u89C4\u572D\u7845\u5F52\u9F9F\u95FA\u8F68\u9B3C\u8BE1\u7678\u6842\u67DC\u8DEA\u8D35\u523D\u8F8A\u6EDA\u68CD\u9505\u90ED\u56FD\u679C\u88F9\u8FC7\u54C8"],["ba40","\u7BC5\u7BC8\u7BC9\u7BCA\u7BCB\u7BCD\u7BCE\u7BCF\u7BD0\u7BD2\u7BD4",4,"\u7BDB\u7BDC\u7BDE\u7BDF\u7BE0\u7BE2\u7BE3\u7BE4\u7BE7\u7BE8\u7BE9\u7BEB\u7BEC\u7BED\u7BEF\u7BF0\u7BF2",4,"\u7BF8\u7BF9\u7BFA\u7BFB\u7BFD\u7BFF",7,"\u7C08\u7C09\u7C0A\u7C0D\u7C0E\u7C10",5,"\u7C17\u7C18\u7C19"],["ba80","\u7C1A",4,"\u7C20",5,"\u7C28\u7C29\u7C2B",12,"\u7C39",5,"\u7C42\u9AB8\u5B69\u6D77\u6C26\u4EA5\u5BB3\u9A87\u9163\u61A8\u90AF\u97E9\u542B\u6DB5\u5BD2\u51FD\u558A\u7F55\u7FF0\u64BC\u634D\u65F1\u61BE\u608D\u710A\u6C57\u6C49\u592F\u676D\u822A\u58D5\u568E\u8C6A\u6BEB\u90DD\u597D\u8017\u53F7\u6D69\u5475\u559D\u8377\u83CF\u6838\u79BE\u548C\u4F55\u5408\u76D2\u8C89\u9602\u6CB3\u6DB8\u8D6B\u8910\u9E64\u8D3A\u563F\u9ED1\u75D5\u5F88\u72E0\u6068\u54FC\u4EA8\u6A2A\u8861\u6052\u8F70\u54C4\u70D8\u8679\u9E3F\u6D2A\u5B8F\u5F18\u7EA2\u5589\u4FAF\u7334\u543C\u539A\u5019\u540E\u547C\u4E4E\u5FFD\u745A\u58F6\u846B\u80E1\u8774\u72D0\u7CCA\u6E56"],["bb40","\u7C43",9,"\u7C4E",36,"\u7C75",5,"\u7C7E",9],["bb80","\u7C88\u7C8A",6,"\u7C93\u7C94\u7C96\u7C99\u7C9A\u7C9B\u7CA0\u7CA1\u7CA3\u7CA6\u7CA7\u7CA8\u7CA9\u7CAB\u7CAC\u7CAD\u7CAF\u7CB0\u7CB4",4,"\u7CBA\u7CBB\u5F27\u864E\u552C\u62A4\u4E92\u6CAA\u6237\u82B1\u54D7\u534E\u733E\u6ED1\u753B\u5212\u5316\u8BDD\u69D0\u5F8A\u6000\u6DEE\u574F\u6B22\u73AF\u6853\u8FD8\u7F13\u6362\u60A3\u5524\u75EA\u8C62\u7115\u6DA3\u5BA6\u5E7B\u8352\u614C\u9EC4\u78FA\u8757\u7C27\u7687\u51F0\u60F6\u714C\u6643\u5E4C\u604D\u8C0E\u7070\u6325\u8F89\u5FBD\u6062\u86D4\u56DE\u6BC1\u6094\u6167\u5349\u60E0\u6666\u8D3F\u79FD\u4F1A\u70E9\u6C47\u8BB3\u8BF2\u7ED8\u8364\u660F\u5A5A\u9B42\u6D51\u6DF7\u8C41\u6D3B\u4F19\u706B\u83B7\u6216\u60D1\u970D\u8D27\u7978\u51FB\u573E\u57FA\u673A\u7578\u7A3D\u79EF\u7B95"],["bc40","\u7CBF\u7CC0\u7CC2\u7CC3\u7CC4\u7CC6\u7CC9\u7CCB\u7CCE",6,"\u7CD8\u7CDA\u7CDB\u7CDD\u7CDE\u7CE1",6,"\u7CE9",5,"\u7CF0",7,"\u7CF9\u7CFA\u7CFC",13,"\u7D0B",5],["bc80","\u7D11",14,"\u7D21\u7D23\u7D24\u7D25\u7D26\u7D28\u7D29\u7D2A\u7D2C\u7D2D\u7D2E\u7D30",6,"\u808C\u9965\u8FF9\u6FC0\u8BA5\u9E21\u59EC\u7EE9\u7F09\u5409\u6781\u68D8\u8F91\u7C4D\u96C6\u53CA\u6025\u75BE\u6C72\u5373\u5AC9\u7EA7\u6324\u51E0\u810A\u5DF1\u84DF\u6280\u5180\u5B63\u4F0E\u796D\u5242\u60B8\u6D4E\u5BC4\u5BC2\u8BA1\u8BB0\u65E2\u5FCC\u9645\u5993\u7EE7\u7EAA\u5609\u67B7\u5939\u4F73\u5BB6\u52A0\u835A\u988A\u8D3E\u7532\u94BE\u5047\u7A3C\u4EF7\u67B6\u9A7E\u5AC1\u6B7C\u76D1\u575A\u5C16\u7B3A\u95F4\u714E\u517C\u80A9\u8270\u5978\u7F04\u8327\u68C0\u67EC\u78B1\u7877\u62E3\u6361\u7B80\u4FED\u526A\u51CF\u8350\u69DB\u9274\u8DF5\u8D31\u89C1\u952E\u7BAD\u4EF6"],["bd40","\u7D37",54,"\u7D6F",7],["bd80","\u7D78",32,"\u5065\u8230\u5251\u996F\u6E10\u6E85\u6DA7\u5EFA\u50F5\u59DC\u5C06\u6D46\u6C5F\u7586\u848B\u6868\u5956\u8BB2\u5320\u9171\u964D\u8549\u6912\u7901\u7126\u80F6\u4EA4\u90CA\u6D47\u9A84\u5A07\u56BC\u6405\u94F0\u77EB\u4FA5\u811A\u72E1\u89D2\u997A\u7F34\u7EDE\u527F\u6559\u9175\u8F7F\u8F83\u53EB\u7A96\u63ED\u63A5\u7686\u79F8\u8857\u9636\u622A\u52AB\u8282\u6854\u6770\u6377\u776B\u7AED\u6D01\u7ED3\u89E3\u59D0\u6212\u85C9\u82A5\u754C\u501F\u4ECB\u75A5\u8BEB\u5C4A\u5DFE\u7B4B\u65A4\u91D1\u4ECA\u6D25\u895F\u7D27\u9526\u4EC5\u8C28\u8FDB\u9773\u664B\u7981\u8FD1\u70EC\u6D78"],["be40","\u7D99",12,"\u7DA7",6,"\u7DAF",42],["be80","\u7DDA",32,"\u5C3D\u52B2\u8346\u5162\u830E\u775B\u6676\u9CB8\u4EAC\u60CA\u7CBE\u7CB3\u7ECF\u4E95\u8B66\u666F\u9888\u9759\u5883\u656C\u955C\u5F84\u75C9\u9756\u7ADF\u7ADE\u51C0\u70AF\u7A98\u63EA\u7A76\u7EA0\u7396\u97ED\u4E45\u7078\u4E5D\u9152\u53A9\u6551\u65E7\u81FC\u8205\u548E\u5C31\u759A\u97A0\u62D8\u72D9\u75BD\u5C45\u9A79\u83CA\u5C40\u5480\u77E9\u4E3E\u6CAE\u805A\u62D2\u636E\u5DE8\u5177\u8DDD\u8E1E\u952F\u4FF1\u53E5\u60E7\u70AC\u5267\u6350\u9E43\u5A1F\u5026\u7737\u5377\u7EE2\u6485\u652B\u6289\u6398\u5014\u7235\u89C9\u51B3\u8BC0\u7EDD\u5747\u83CC\u94A7\u519B\u541B\u5CFB"],["bf40","\u7DFB",62],["bf80","\u7E3A\u7E3C",4,"\u7E42",4,"\u7E48",21,"\u4FCA\u7AE3\u6D5A\u90E1\u9A8F\u5580\u5496\u5361\u54AF\u5F00\u63E9\u6977\u51EF\u6168\u520A\u582A\u52D8\u574E\u780D\u770B\u5EB7\u6177\u7CE0\u625B\u6297\u4EA2\u7095\u8003\u62F7\u70E4\u9760\u5777\u82DB\u67EF\u68F5\u78D5\u9897\u79D1\u58F3\u54B3\u53EF\u6E34\u514B\u523B\u5BA2\u8BFE\u80AF\u5543\u57A6\u6073\u5751\u542D\u7A7A\u6050\u5B54\u63A7\u62A0\u53E3\u6263\u5BC7\u67AF\u54ED\u7A9F\u82E6\u9177\u5E93\u88E4\u5938\u57AE\u630E\u8DE8\u80EF\u5757\u7B77\u4FA9\u5FEB\u5BBD\u6B3E\u5321\u7B50\u72C2\u6846\u77FF\u7736\u65F7\u51B5\u4E8F\u76D4\u5CBF\u7AA5\u8475\u594E\u9B41\u5080"],["c040","\u7E5E",35,"\u7E83",23,"\u7E9C\u7E9D\u7E9E"],["c080","\u7EAE\u7EB4\u7EBB\u7EBC\u7ED6\u7EE4\u7EEC\u7EF9\u7F0A\u7F10\u7F1E\u7F37\u7F39\u7F3B",6,"\u7F43\u7F46",9,"\u7F52\u7F53\u9988\u6127\u6E83\u5764\u6606\u6346\u56F0\u62EC\u6269\u5ED3\u9614\u5783\u62C9\u5587\u8721\u814A\u8FA3\u5566\u83B1\u6765\u8D56\u84DD\u5A6A\u680F\u62E6\u7BEE\u9611\u5170\u6F9C\u8C30\u63FD\u89C8\u61D2\u7F06\u70C2\u6EE5\u7405\u6994\u72FC\u5ECA\u90CE\u6717\u6D6A\u635E\u52B3\u7262\u8001\u4F6C\u59E5\u916A\u70D9\u6D9D\u52D2\u4E50\u96F7\u956D\u857E\u78CA\u7D2F\u5121\u5792\u64C2\u808B\u7C7B\u6CEA\u68F1\u695E\u51B7\u5398\u68A8\u7281\u9ECE\u7BF1\u72F8\u79BB\u6F13\u7406\u674E\u91CC\u9CA4\u793C\u8389\u8354\u540F\u6817\u4E3D\u5389\u52B1\u783E\u5386\u5229\u5088\u4F8B\u4FD0"],["c140","\u7F56\u7F59\u7F5B\u7F5C\u7F5D\u7F5E\u7F60\u7F63",4,"\u7F6B\u7F6C\u7F6D\u7F6F\u7F70\u7F73\u7F75\u7F76\u7F77\u7F78\u7F7A\u7F7B\u7F7C\u7F7D\u7F7F\u7F80\u7F82",7,"\u7F8B\u7F8D\u7F8F",4,"\u7F95",4,"\u7F9B\u7F9C\u7FA0\u7FA2\u7FA3\u7FA5\u7FA6\u7FA8",6,"\u7FB1"],["c180","\u7FB3",4,"\u7FBA\u7FBB\u7FBE\u7FC0\u7FC2\u7FC3\u7FC4\u7FC6\u7FC7\u7FC8\u7FC9\u7FCB\u7FCD\u7FCF",4,"\u7FD6\u7FD7\u7FD9",5,"\u7FE2\u7FE3\u75E2\u7ACB\u7C92\u6CA5\u96B6\u529B\u7483\u54E9\u4FE9\u8054\u83B2\u8FDE\u9570\u5EC9\u601C\u6D9F\u5E18\u655B\u8138\u94FE\u604B\u70BC\u7EC3\u7CAE\u51C9\u6881\u7CB1\u826F\u4E24\u8F86\u91CF\u667E\u4EAE\u8C05\u64A9\u804A\u50DA\u7597\u71CE\u5BE5\u8FBD\u6F66\u4E86\u6482\u9563\u5ED6\u6599\u5217\u88C2\u70C8\u52A3\u730E\u7433\u6797\u78F7\u9716\u4E34\u90BB\u9CDE\u6DCB\u51DB\u8D41\u541D\u62CE\u73B2\u83F1\u96F6\u9F84\u94C3\u4F36\u7F9A\u51CC\u7075\u9675\u5CAD\u9886\u53E6\u4EE4\u6E9C\u7409\u69B4\u786B\u998F\u7559\u5218\u7624\u6D41\u67F3\u516D\u9F99\u804B\u5499\u7B3C\u7ABF"],["c240","\u7FE4\u7FE7\u7FE8\u7FEA\u7FEB\u7FEC\u7FED\u7FEF\u7FF2\u7FF4",6,"\u7FFD\u7FFE\u7FFF\u8002\u8007\u8008\u8009\u800A\u800E\u800F\u8011\u8013\u801A\u801B\u801D\u801E\u801F\u8021\u8023\u8024\u802B",5,"\u8032\u8034\u8039\u803A\u803C\u803E\u8040\u8041\u8044\u8045\u8047\u8048\u8049\u804E\u804F\u8050\u8051\u8053\u8055\u8056\u8057"],["c280","\u8059\u805B",13,"\u806B",5,"\u8072",11,"\u9686\u5784\u62E2\u9647\u697C\u5A04\u6402\u7BD3\u6F0F\u964B\u82A6\u5362\u9885\u5E90\u7089\u63B3\u5364\u864F\u9C81\u9E93\u788C\u9732\u8DEF\u8D42\u9E7F\u6F5E\u7984\u5F55\u9646\u622E\u9A74\u5415\u94DD\u4FA3\u65C5\u5C65\u5C61\u7F15\u8651\u6C2F\u5F8B\u7387\u6EE4\u7EFF\u5CE6\u631B\u5B6A\u6EE6\u5375\u4E71\u63A0\u7565\u62A1\u8F6E\u4F26\u4ED1\u6CA6\u7EB6\u8BBA\u841D\u87BA\u7F57\u903B\u9523\u7BA9\u9AA1\u88F8\u843D\u6D1B\u9A86\u7EDC\u5988\u9EBB\u739B\u7801\u8682\u9A6C\u9A82\u561B\u5417\u57CB\u4E70\u9EA6\u5356\u8FC8\u8109\u7792\u9992\u86EE\u6EE1\u8513\u66FC\u6162\u6F2B"],["c340","\u807E\u8081\u8082\u8085\u8088\u808A\u808D",5,"\u8094\u8095\u8097\u8099\u809E\u80A3\u80A6\u80A7\u80A8\u80AC\u80B0\u80B3\u80B5\u80B6\u80B8\u80B9\u80BB\u80C5\u80C7",4,"\u80CF",6,"\u80D8\u80DF\u80E0\u80E2\u80E3\u80E6\u80EE\u80F5\u80F7\u80F9\u80FB\u80FE\u80FF\u8100\u8101\u8103\u8104\u8105\u8107\u8108\u810B"],["c380","\u810C\u8115\u8117\u8119\u811B\u811C\u811D\u811F",12,"\u812D\u812E\u8130\u8133\u8134\u8135\u8137\u8139",4,"\u813F\u8C29\u8292\u832B\u76F2\u6C13\u5FD9\u83BD\u732B\u8305\u951A\u6BDB\u77DB\u94C6\u536F\u8302\u5192\u5E3D\u8C8C\u8D38\u4E48\u73AB\u679A\u6885\u9176\u9709\u7164\u6CA1\u7709\u5A92\u9541\u6BCF\u7F8E\u6627\u5BD0\u59B9\u5A9A\u95E8\u95F7\u4EEC\u840C\u8499\u6AAC\u76DF\u9530\u731B\u68A6\u5B5F\u772F\u919A\u9761\u7CDC\u8FF7\u8C1C\u5F25\u7C73\u79D8\u89C5\u6CCC\u871C\u5BC6\u5E42\u68C9\u7720\u7EF5\u5195\u514D\u52C9\u5A29\u7F05\u9762\u82D7\u63CF\u7784\u85D0\u79D2\u6E3A\u5E99\u5999\u8511\u706D\u6C11\u62BF\u76BF\u654F\u60AF\u95FD\u660E\u879F\u9E23\u94ED\u540D\u547D\u8C2C\u6478"],["c440","\u8140",5,"\u8147\u8149\u814D\u814E\u814F\u8152\u8156\u8157\u8158\u815B",4,"\u8161\u8162\u8163\u8164\u8166\u8168\u816A\u816B\u816C\u816F\u8172\u8173\u8175\u8176\u8177\u8178\u8181\u8183",4,"\u8189\u818B\u818C\u818D\u818E\u8190\u8192",5,"\u8199\u819A\u819E",4,"\u81A4\u81A5"],["c480","\u81A7\u81A9\u81AB",7,"\u81B4",5,"\u81BC\u81BD\u81BE\u81BF\u81C4\u81C5\u81C7\u81C8\u81C9\u81CB\u81CD",6,"\u6479\u8611\u6A21\u819C\u78E8\u6469\u9B54\u62B9\u672B\u83AB\u58A8\u9ED8\u6CAB\u6F20\u5BDE\u964C\u8C0B\u725F\u67D0\u62C7\u7261\u4EA9\u59C6\u6BCD\u5893\u66AE\u5E55\u52DF\u6155\u6728\u76EE\u7766\u7267\u7A46\u62FF\u54EA\u5450\u94A0\u90A3\u5A1C\u7EB3\u6C16\u4E43\u5976\u8010\u5948\u5357\u7537\u96BE\u56CA\u6320\u8111\u607C\u95F9\u6DD6\u5462\u9981\u5185\u5AE9\u80FD\u59AE\u9713\u502A\u6CE5\u5C3C\u62DF\u4F60\u533F\u817B\u9006\u6EBA\u852B\u62C8\u5E74\u78BE\u64B5\u637B\u5FF5\u5A18\u917F\u9E1F\u5C3F\u634F\u8042\u5B7D\u556E\u954A\u954D\u6D85\u60A8\u67E0\u72DE\u51DD\u5B81"],["c540","\u81D4",14,"\u81E4\u81E5\u81E6\u81E8\u81E9\u81EB\u81EE",4,"\u81F5",5,"\u81FD\u81FF\u8203\u8207",4,"\u820E\u820F\u8211\u8213\u8215",5,"\u821D\u8220\u8224\u8225\u8226\u8227\u8229\u822E\u8232\u823A\u823C\u823D\u823F"],["c580","\u8240\u8241\u8242\u8243\u8245\u8246\u8248\u824A\u824C\u824D\u824E\u8250",7,"\u8259\u825B\u825C\u825D\u825E\u8260",7,"\u8269\u62E7\u6CDE\u725B\u626D\u94AE\u7EBD\u8113\u6D53\u519C\u5F04\u5974\u52AA\u6012\u5973\u6696\u8650\u759F\u632A\u61E6\u7CEF\u8BFA\u54E6\u6B27\u9E25\u6BB4\u85D5\u5455\u5076\u6CA4\u556A\u8DB4\u722C\u5E15\u6015\u7436\u62CD\u6392\u724C\u5F98\u6E43\u6D3E\u6500\u6F58\u76D8\u78D0\u76FC\u7554\u5224\u53DB\u4E53\u5E9E\u65C1\u802A\u80D6\u629B\u5486\u5228\u70AE\u888D\u8DD1\u6CE1\u5478\u80DA\u57F9\u88F4\u8D54\u966A\u914D\u4F69\u6C9B\u55B7\u76C6\u7830\u62A8\u70F9\u6F8E\u5F6D\u84EC\u68DA\u787C\u7BF7\u81A8\u670B\u9E4F\u6367\u78B0\u576F\u7812\u9739\u6279\u62AB\u5288\u7435\u6BD7"],["c640","\u826A\u826B\u826C\u826D\u8271\u8275\u8276\u8277\u8278\u827B\u827C\u8280\u8281\u8283\u8285\u8286\u8287\u8289\u828C\u8290\u8293\u8294\u8295\u8296\u829A\u829B\u829E\u82A0\u82A2\u82A3\u82A7\u82B2\u82B5\u82B6\u82BA\u82BB\u82BC\u82BF\u82C0\u82C2\u82C3\u82C5\u82C6\u82C9\u82D0\u82D6\u82D9\u82DA\u82DD\u82E2\u82E7\u82E8\u82E9\u82EA\u82EC\u82ED\u82EE\u82F0\u82F2\u82F3\u82F5\u82F6\u82F8"],["c680","\u82FA\u82FC",4,"\u830A\u830B\u830D\u8310\u8312\u8313\u8316\u8318\u8319\u831D",9,"\u8329\u832A\u832E\u8330\u8332\u8337\u833B\u833D\u5564\u813E\u75B2\u76AE\u5339\u75DE\u50FB\u5C41\u8B6C\u7BC7\u504F\u7247\u9A97\u98D8\u6F02\u74E2\u7968\u6487\u77A5\u62FC\u9891\u8D2B\u54C1\u8058\u4E52\u576A\u82F9\u840D\u5E73\u51ED\u74F6\u8BC4\u5C4F\u5761\u6CFC\u9887\u5A46\u7834\u9B44\u8FEB\u7C95\u5256\u6251\u94FA\u4EC6\u8386\u8461\u83E9\u84B2\u57D4\u6734\u5703\u666E\u6D66\u8C31\u66DD\u7011\u671F\u6B3A\u6816\u621A\u59BB\u4E03\u51C4\u6F06\u67D2\u6C8F\u5176\u68CB\u5947\u6B67\u7566\u5D0E\u8110\u9F50\u65D7\u7948\u7941\u9A91\u8D77\u5C82\u4E5E\u4F01\u542F\u5951\u780C\u5668\u6C14\u8FC4\u5F03\u6C7D\u6CE3\u8BAB\u6390"],["c740","\u833E\u833F\u8341\u8342\u8344\u8345\u8348\u834A",4,"\u8353\u8355",4,"\u835D\u8362\u8370",6,"\u8379\u837A\u837E",6,"\u8387\u8388\u838A\u838B\u838C\u838D\u838F\u8390\u8391\u8394\u8395\u8396\u8397\u8399\u839A\u839D\u839F\u83A1",6,"\u83AC\u83AD\u83AE"],["c780","\u83AF\u83B5\u83BB\u83BE\u83BF\u83C2\u83C3\u83C4\u83C6\u83C8\u83C9\u83CB\u83CD\u83CE\u83D0\u83D1\u83D2\u83D3\u83D5\u83D7\u83D9\u83DA\u83DB\u83DE\u83E2\u83E3\u83E4\u83E6\u83E7\u83E8\u83EB\u83EC\u83ED\u6070\u6D3D\u7275\u6266\u948E\u94C5\u5343\u8FC1\u7B7E\u4EDF\u8C26\u4E7E\u9ED4\u94B1\u94B3\u524D\u6F5C\u9063\u6D45\u8C34\u5811\u5D4C\u6B20\u6B49\u67AA\u545B\u8154\u7F8C\u5899\u8537\u5F3A\u62A2\u6A47\u9539\u6572\u6084\u6865\u77A7\u4E54\u4FA8\u5DE7\u9798\u64AC\u7FD8\u5CED\u4FCF\u7A8D\u5207\u8304\u4E14\u602F\u7A83\u94A6\u4FB5\u4EB2\u79E6\u7434\u52E4\u82B9\u64D2\u79BD\u5BDD\u6C81\u9752\u8F7B\u6C22\u503E\u537F\u6E05\u64CE\u6674\u6C30\u60C5\u9877\u8BF7\u5E86\u743C\u7A77\u79CB\u4E18\u90B1\u7403\u6C42\u56DA\u914B\u6CC5\u8D8B\u533A\u86C6\u66F2\u8EAF\u5C48\u9A71\u6E20"],["c840","\u83EE\u83EF\u83F3",4,"\u83FA\u83FB\u83FC\u83FE\u83FF\u8400\u8402\u8405\u8407\u8408\u8409\u840A\u8410\u8412",5,"\u8419\u841A\u841B\u841E",5,"\u8429",7,"\u8432",5,"\u8439\u843A\u843B\u843E",7,"\u8447\u8448\u8449"],["c880","\u844A",6,"\u8452",4,"\u8458\u845D\u845E\u845F\u8460\u8462\u8464",4,"\u846A\u846E\u846F\u8470\u8472\u8474\u8477\u8479\u847B\u847C\u53D6\u5A36\u9F8B\u8DA3\u53BB\u5708\u98A7\u6743\u919B\u6CC9\u5168\u75CA\u62F3\u72AC\u5238\u529D\u7F3A\u7094\u7638\u5374\u9E4A\u69B7\u786E\u96C0\u88D9\u7FA4\u7136\u71C3\u5189\u67D3\u74E4\u58E4\u6518\u56B7\u8BA9\u9976\u6270\u7ED5\u60F9\u70ED\u58EC\u4EC1\u4EBA\u5FCD\u97E7\u4EFB\u8BA4\u5203\u598A\u7EAB\u6254\u4ECD\u65E5\u620E\u8338\u84C9\u8363\u878D\u7194\u6EB6\u5BB9\u7ED2\u5197\u63C9\u67D4\u8089\u8339\u8815\u5112\u5B7A\u5982\u8FB1\u4E73\u6C5D\u5165\u8925\u8F6F\u962E\u854A\u745E\u9510\u95F0\u6DA6\u82E5\u5F31\u6492\u6D12\u8428\u816E\u9CC3\u585E\u8D5B\u4E09\u53C1"],["c940","\u847D",4,"\u8483\u8484\u8485\u8486\u848A\u848D\u848F",7,"\u8498\u849A\u849B\u849D\u849E\u849F\u84A0\u84A2",12,"\u84B0\u84B1\u84B3\u84B5\u84B6\u84B7\u84BB\u84BC\u84BE\u84C0\u84C2\u84C3\u84C5\u84C6\u84C7\u84C8\u84CB\u84CC\u84CE\u84CF\u84D2\u84D4\u84D5\u84D7"],["c980","\u84D8",4,"\u84DE\u84E1\u84E2\u84E4\u84E7",4,"\u84ED\u84EE\u84EF\u84F1",10,"\u84FD\u84FE\u8500\u8501\u8502\u4F1E\u6563\u6851\u55D3\u4E27\u6414\u9A9A\u626B\u5AC2\u745F\u8272\u6DA9\u68EE\u50E7\u838E\u7802\u6740\u5239\u6C99\u7EB1\u50BB\u5565\u715E\u7B5B\u6652\u73CA\u82EB\u6749\u5C71\u5220\u717D\u886B\u95EA\u9655\u64C5\u8D61\u81B3\u5584\u6C55\u6247\u7F2E\u5892\u4F24\u5546\u8D4F\u664C\u4E0A\u5C1A\u88F3\u68A2\u634E\u7A0D\u70E7\u828D\u52FA\u97F6\u5C11\u54E8\u90B5\u7ECD\u5962\u8D4A\u86C7\u820C\u820D\u8D66\u6444\u5C04\u6151\u6D89\u793E\u8BBE\u7837\u7533\u547B\u4F38\u8EAB\u6DF1\u5A20\u7EC5\u795E\u6C88\u5BA1\u5A76\u751A\u80BE\u614E\u6E17\u58F0\u751F\u7525\u7272\u5347\u7EF3"],["ca40","\u8503",8,"\u850D\u850E\u850F\u8510\u8512\u8514\u8515\u8516\u8518\u8519\u851B\u851C\u851D\u851E\u8520\u8522",8,"\u852D",9,"\u853E",4,"\u8544\u8545\u8546\u8547\u854B",10],["ca80","\u8557\u8558\u855A\u855B\u855C\u855D\u855F",4,"\u8565\u8566\u8567\u8569",8,"\u8573\u8575\u8576\u8577\u8578\u857C\u857D\u857F\u8580\u8581\u7701\u76DB\u5269\u80DC\u5723\u5E08\u5931\u72EE\u65BD\u6E7F\u8BD7\u5C38\u8671\u5341\u77F3\u62FE\u65F6\u4EC0\u98DF\u8680\u5B9E\u8BC6\u53F2\u77E2\u4F7F\u5C4E\u9A76\u59CB\u5F0F\u793A\u58EB\u4E16\u67FF\u4E8B\u62ED\u8A93\u901D\u52BF\u662F\u55DC\u566C\u9002\u4ED5\u4F8D\u91CA\u9970\u6C0F\u5E02\u6043\u5BA4\u89C6\u8BD5\u6536\u624B\u9996\u5B88\u5BFF\u6388\u552E\u53D7\u7626\u517D\u852C\u67A2\u68B3\u6B8A\u6292\u8F93\u53D4\u8212\u6DD1\u758F\u4E66\u8D4E\u5B70\u719F\u85AF\u6691\u66D9\u7F72\u8700\u9ECD\u9F20\u5C5E\u672F\u8FF0\u6811\u675F\u620D\u7AD6\u5885\u5EB6\u6570\u6F31"],["cb40","\u8582\u8583\u8586\u8588",6,"\u8590",10,"\u859D",6,"\u85A5\u85A6\u85A7\u85A9\u85AB\u85AC\u85AD\u85B1",5,"\u85B8\u85BA",6,"\u85C2",6,"\u85CA",4,"\u85D1\u85D2"],["cb80","\u85D4\u85D6",5,"\u85DD",6,"\u85E5\u85E6\u85E7\u85E8\u85EA",14,"\u6055\u5237\u800D\u6454\u8870\u7529\u5E05\u6813\u62F4\u971C\u53CC\u723D\u8C01\u6C34\u7761\u7A0E\u542E\u77AC\u987A\u821C\u8BF4\u7855\u6714\u70C1\u65AF\u6495\u5636\u601D\u79C1\u53F8\u4E1D\u6B7B\u8086\u5BFA\u55E3\u56DB\u4F3A\u4F3C\u9972\u5DF3\u677E\u8038\u6002\u9882\u9001\u5B8B\u8BBC\u8BF5\u641C\u8258\u64DE\u55FD\u82CF\u9165\u4FD7\u7D20\u901F\u7C9F\u50F3\u5851\u6EAF\u5BBF\u8BC9\u8083\u9178\u849C\u7B97\u867D\u968B\u968F\u7EE5\u9AD3\u788E\u5C81\u7A57\u9042\u96A7\u795F\u5B59\u635F\u7B0B\u84D1\u68AD\u5506\u7F29\u7410\u7D22\u9501\u6240\u584C\u4ED6\u5B83\u5979\u5854"],["cc40","\u85F9\u85FA\u85FC\u85FD\u85FE\u8600",4,"\u8606",10,"\u8612\u8613\u8614\u8615\u8617",15,"\u8628\u862A",13,"\u8639\u863A\u863B\u863D\u863E\u863F\u8640"],["cc80","\u8641",11,"\u8652\u8653\u8655",4,"\u865B\u865C\u865D\u865F\u8660\u8661\u8663",7,"\u736D\u631E\u8E4B\u8E0F\u80CE\u82D4\u62AC\u53F0\u6CF0\u915E\u592A\u6001\u6C70\u574D\u644A\u8D2A\u762B\u6EE9\u575B\u6A80\u75F0\u6F6D\u8C2D\u8C08\u5766\u6BEF\u8892\u78B3\u63A2\u53F9\u70AD\u6C64\u5858\u642A\u5802\u68E0\u819B\u5510\u7CD6\u5018\u8EBA\u6DCC\u8D9F\u70EB\u638F\u6D9B\u6ED4\u7EE6\u8404\u6843\u9003\u6DD8\u9676\u8BA8\u5957\u7279\u85E4\u817E\u75BC\u8A8A\u68AF\u5254\u8E22\u9511\u63D0\u9898\u8E44\u557C\u4F53\u66FF\u568F\u60D5\u6D95\u5243\u5C49\u5929\u6DFB\u586B\u7530\u751C\u606C\u8214\u8146\u6311\u6761\u8FE2\u773A\u8DF3\u8D34\u94C1\u5E16\u5385\u542C\u70C3"],["cd40","\u866D\u866F\u8670\u8672",6,"\u8683",6,"\u868E",4,"\u8694\u8696",5,"\u869E",4,"\u86A5\u86A6\u86AB\u86AD\u86AE\u86B2\u86B3\u86B7\u86B8\u86B9\u86BB",4,"\u86C1\u86C2\u86C3\u86C5\u86C8\u86CC\u86CD\u86D2\u86D3\u86D5\u86D6\u86D7\u86DA\u86DC"],["cd80","\u86DD\u86E0\u86E1\u86E2\u86E3\u86E5\u86E6\u86E7\u86E8\u86EA\u86EB\u86EC\u86EF\u86F5\u86F6\u86F7\u86FA\u86FB\u86FC\u86FD\u86FF\u8701\u8704\u8705\u8706\u870B\u870C\u870E\u870F\u8710\u8711\u8714\u8716\u6C40\u5EF7\u505C\u4EAD\u5EAD\u633A\u8247\u901A\u6850\u916E\u77B3\u540C\u94DC\u5F64\u7AE5\u6876\u6345\u7B52\u7EDF\u75DB\u5077\u6295\u5934\u900F\u51F8\u79C3\u7A81\u56FE\u5F92\u9014\u6D82\u5C60\u571F\u5410\u5154\u6E4D\u56E2\u63A8\u9893\u817F\u8715\u892A\u9000\u541E\u5C6F\u81C0\u62D6\u6258\u8131\u9E35\u9640\u9A6E\u9A7C\u692D\u59A5\u62D3\u553E\u6316\u54C7\u86D9\u6D3C\u5A03\u74E6\u889C\u6B6A\u5916\u8C4C\u5F2F\u6E7E\u73A9\u987D\u4E38\u70F7\u5B8C\u7897\u633D\u665A\u7696\u60CB\u5B9B\u5A49\u4E07\u8155\u6C6A\u738B\u4EA1\u6789\u7F51\u5F80\u65FA\u671B\u5FD8\u5984\u5A01"],["ce40","\u8719\u871B\u871D\u871F\u8720\u8724\u8726\u8727\u8728\u872A\u872B\u872C\u872D\u872F\u8730\u8732\u8733\u8735\u8736\u8738\u8739\u873A\u873C\u873D\u8740",6,"\u874A\u874B\u874D\u874F\u8750\u8751\u8752\u8754\u8755\u8756\u8758\u875A",5,"\u8761\u8762\u8766",7,"\u876F\u8771\u8772\u8773\u8775"],["ce80","\u8777\u8778\u8779\u877A\u877F\u8780\u8781\u8784\u8786\u8787\u8789\u878A\u878C\u878E",4,"\u8794\u8795\u8796\u8798",6,"\u87A0",4,"\u5DCD\u5FAE\u5371\u97E6\u8FDD\u6845\u56F4\u552F\u60DF\u4E3A\u6F4D\u7EF4\u82C7\u840E\u59D4\u4F1F\u4F2A\u5C3E\u7EAC\u672A\u851A\u5473\u754F\u80C3\u5582\u9B4F\u4F4D\u6E2D\u8C13\u5C09\u6170\u536B\u761F\u6E29\u868A\u6587\u95FB\u7EB9\u543B\u7A33\u7D0A\u95EE\u55E1\u7FC1\u74EE\u631D\u8717\u6DA1\u7A9D\u6211\u65A1\u5367\u63E1\u6C83\u5DEB\u545C\u94A8\u4E4C\u6C61\u8BEC\u5C4B\u65E0\u829C\u68A7\u543E\u5434\u6BCB\u6B66\u4E94\u6342\u5348\u821E\u4F0D\u4FAE\u575E\u620A\u96FE\u6664\u7269\u52FF\u52A1\u609F\u8BEF\u6614\u7199\u6790\u897F\u7852\u77FD\u6670\u563B\u5438\u9521\u727A"],["cf40","\u87A5\u87A6\u87A7\u87A9\u87AA\u87AE\u87B0\u87B1\u87B2\u87B4\u87B6\u87B7\u87B8\u87B9\u87BB\u87BC\u87BE\u87BF\u87C1",4,"\u87C7\u87C8\u87C9\u87CC",4,"\u87D4",6,"\u87DC\u87DD\u87DE\u87DF\u87E1\u87E2\u87E3\u87E4\u87E6\u87E7\u87E8\u87E9\u87EB\u87EC\u87ED\u87EF",9],["cf80","\u87FA\u87FB\u87FC\u87FD\u87FF\u8800\u8801\u8802\u8804",5,"\u880B",7,"\u8814\u8817\u8818\u8819\u881A\u881C",4,"\u8823\u7A00\u606F\u5E0C\u6089\u819D\u5915\u60DC\u7184\u70EF\u6EAA\u6C50\u7280\u6A84\u88AD\u5E2D\u4E60\u5AB3\u559C\u94E3\u6D17\u7CFB\u9699\u620F\u7EC6\u778E\u867E\u5323\u971E\u8F96\u6687\u5CE1\u4FA0\u72ED\u4E0B\u53A6\u590F\u5413\u6380\u9528\u5148\u4ED9\u9C9C\u7EA4\u54B8\u8D24\u8854\u8237\u95F2\u6D8E\u5F26\u5ACC\u663E\u9669\u73B0\u732E\u53BF\u817A\u9985\u7FA1\u5BAA\u9677\u9650\u7EBF\u76F8\u53A2\u9576\u9999\u7BB1\u8944\u6E58\u4E61\u7FD4\u7965\u8BE6\u60F3\u54CD\u4EAB\u9879\u5DF7\u6A61\u50CF\u5411\u8C61\u8427\u785D\u9704\u524A\u54EE\u56A3\u9500\u6D88\u5BB5\u6DC6\u6653"],["d040","\u8824",13,"\u8833",5,"\u883A\u883B\u883D\u883E\u883F\u8841\u8842\u8843\u8846",5,"\u884E",5,"\u8855\u8856\u8858\u885A",6,"\u8866\u8867\u886A\u886D\u886F\u8871\u8873\u8874\u8875\u8876\u8878\u8879\u887A"],["d080","\u887B\u887C\u8880\u8883\u8886\u8887\u8889\u888A\u888C\u888E\u888F\u8890\u8891\u8893\u8894\u8895\u8897",4,"\u889D",4,"\u88A3\u88A5",5,"\u5C0F\u5B5D\u6821\u8096\u5578\u7B11\u6548\u6954\u4E9B\u6B47\u874E\u978B\u534F\u631F\u643A\u90AA\u659C\u80C1\u8C10\u5199\u68B0\u5378\u87F9\u61C8\u6CC4\u6CFB\u8C22\u5C51\u85AA\u82AF\u950C\u6B23\u8F9B\u65B0\u5FFB\u5FC3\u4FE1\u8845\u661F\u8165\u7329\u60FA\u5174\u5211\u578B\u5F62\u90A2\u884C\u9192\u5E78\u674F\u6027\u59D3\u5144\u51F6\u80F8\u5308\u6C79\u96C4\u718A\u4F11\u4FEE\u7F9E\u673D\u55C5\u9508\u79C0\u8896\u7EE3\u589F\u620C\u9700\u865A\u5618\u987B\u5F90\u8BB8\u84C4\u9157\u53D9\u65ED\u5E8F\u755C\u6064\u7D6E\u5A7F\u7EEA\u7EED\u8F69\u55A7\u5BA3\u60AC\u65CB\u7384"],["d140","\u88AC\u88AE\u88AF\u88B0\u88B2",4,"\u88B8\u88B9\u88BA\u88BB\u88BD\u88BE\u88BF\u88C0\u88C3\u88C4\u88C7\u88C8\u88CA\u88CB\u88CC\u88CD\u88CF\u88D0\u88D1\u88D3\u88D6\u88D7\u88DA",4,"\u88E0\u88E1\u88E6\u88E7\u88E9",6,"\u88F2\u88F5\u88F6\u88F7\u88FA\u88FB\u88FD\u88FF\u8900\u8901\u8903",5],["d180","\u8909\u890B",4,"\u8911\u8914",4,"\u891C",4,"\u8922\u8923\u8924\u8926\u8927\u8928\u8929\u892C\u892D\u892E\u892F\u8931\u8932\u8933\u8935\u8937\u9009\u7663\u7729\u7EDA\u9774\u859B\u5B66\u7A74\u96EA\u8840\u52CB\u718F\u5FAA\u65EC\u8BE2\u5BFB\u9A6F\u5DE1\u6B89\u6C5B\u8BAD\u8BAF\u900A\u8FC5\u538B\u62BC\u9E26\u9E2D\u5440\u4E2B\u82BD\u7259\u869C\u5D16\u8859\u6DAF\u96C5\u54D1\u4E9A\u8BB6\u7109\u54BD\u9609\u70DF\u6DF9\u76D0\u4E25\u7814\u8712\u5CA9\u5EF6\u8A00\u989C\u960E\u708E\u6CBF\u5944\u63A9\u773C\u884D\u6F14\u8273\u5830\u71D5\u538C\u781A\u96C1\u5501\u5F66\u7130\u5BB4\u8C1A\u9A8C\u6B83\u592E\u9E2F\u79E7\u6768\u626C\u4F6F\u75A1\u7F8A\u6D0B\u9633\u6C27\u4EF0\u75D2\u517B\u6837\u6F3E\u9080\u8170\u5996\u7476"],["d240","\u8938",8,"\u8942\u8943\u8945",24,"\u8960",5,"\u8967",19,"\u897C"],["d280","\u897D\u897E\u8980\u8982\u8984\u8985\u8987",26,"\u6447\u5C27\u9065\u7A91\u8C23\u59DA\u54AC\u8200\u836F\u8981\u8000\u6930\u564E\u8036\u7237\u91CE\u51B6\u4E5F\u9875\u6396\u4E1A\u53F6\u66F3\u814B\u591C\u6DB2\u4E00\u58F9\u533B\u63D6\u94F1\u4F9D\u4F0A\u8863\u9890\u5937\u9057\u79FB\u4EEA\u80F0\u7591\u6C82\u5B9C\u59E8\u5F5D\u6905\u8681\u501A\u5DF2\u4E59\u77E3\u4EE5\u827A\u6291\u6613\u9091\u5C79\u4EBF\u5F79\u81C6\u9038\u8084\u75AB\u4EA6\u88D4\u610F\u6BC5\u5FC6\u4E49\u76CA\u6EA2\u8BE3\u8BAE\u8C0A\u8BD1\u5F02\u7FFC\u7FCC\u7ECE\u8335\u836B\u56E0\u6BB7\u97F3\u9634\u59FB\u541F\u94F6\u6DEB\u5BC5\u996E\u5C39\u5F15\u9690"],["d340","\u89A2",30,"\u89C3\u89CD\u89D3\u89D4\u89D5\u89D7\u89D8\u89D9\u89DB\u89DD\u89DF\u89E0\u89E1\u89E2\u89E4\u89E7\u89E8\u89E9\u89EA\u89EC\u89ED\u89EE\u89F0\u89F1\u89F2\u89F4",6],["d380","\u89FB",4,"\u8A01",5,"\u8A08",21,"\u5370\u82F1\u6A31\u5A74\u9E70\u5E94\u7F28\u83B9\u8424\u8425\u8367\u8747\u8FCE\u8D62\u76C8\u5F71\u9896\u786C\u6620\u54DF\u62E5\u4F63\u81C3\u75C8\u5EB8\u96CD\u8E0A\u86F9\u548F\u6CF3\u6D8C\u6C38\u607F\u52C7\u7528\u5E7D\u4F18\u60A0\u5FE7\u5C24\u7531\u90AE\u94C0\u72B9\u6CB9\u6E38\u9149\u6709\u53CB\u53F3\u4F51\u91C9\u8BF1\u53C8\u5E7C\u8FC2\u6DE4\u4E8E\u76C2\u6986\u865E\u611A\u8206\u4F59\u4FDE\u903E\u9C7C\u6109\u6E1D\u6E14\u9685\u4E88\u5A31\u96E8\u4E0E\u5C7F\u79B9\u5B87\u8BED\u7FBD\u7389\u57DF\u828B\u90C1\u5401\u9047\u55BB\u5CEA\u5FA1\u6108\u6B32\u72F1\u80B2\u8A89"],["d440","\u8A1E",31,"\u8A3F",8,"\u8A49",21],["d480","\u8A5F",25,"\u8A7A",6,"\u6D74\u5BD3\u88D5\u9884\u8C6B\u9A6D\u9E33\u6E0A\u51A4\u5143\u57A3\u8881\u539F\u63F4\u8F95\u56ED\u5458\u5706\u733F\u6E90\u7F18\u8FDC\u82D1\u613F\u6028\u9662\u66F0\u7EA6\u8D8A\u8DC3\u94A5\u5CB3\u7CA4\u6708\u60A6\u9605\u8018\u4E91\u90E7\u5300\u9668\u5141\u8FD0\u8574\u915D\u6655\u97F5\u5B55\u531D\u7838\u6742\u683D\u54C9\u707E\u5BB0\u8F7D\u518D\u5728\u54B1\u6512\u6682\u8D5E\u8D43\u810F\u846C\u906D\u7CDF\u51FF\u85FB\u67A3\u65E9\u6FA1\u86A4\u8E81\u566A\u9020\u7682\u7076\u71E5\u8D23\u62E9\u5219\u6CFD\u8D3C\u600E\u589E\u618E\u66FE\u8D60\u624E\u55B3\u6E23\u672D\u8F67"],["d540","\u8A81",7,"\u8A8B",7,"\u8A94",46],["d580","\u8AC3",32,"\u94E1\u95F8\u7728\u6805\u69A8\u548B\u4E4D\u70B8\u8BC8\u6458\u658B\u5B85\u7A84\u503A\u5BE8\u77BB\u6BE1\u8A79\u7C98\u6CBE\u76CF\u65A9\u8F97\u5D2D\u5C55\u8638\u6808\u5360\u6218\u7AD9\u6E5B\u7EFD\u6A1F\u7AE0\u5F70\u6F33\u5F20\u638C\u6DA8\u6756\u4E08\u5E10\u8D26\u4ED7\u80C0\u7634\u969C\u62DB\u662D\u627E\u6CBC\u8D75\u7167\u7F69\u5146\u8087\u53EC\u906E\u6298\u54F2\u86F0\u8F99\u8005\u9517\u8517\u8FD9\u6D59\u73CD\u659F\u771F\u7504\u7827\u81FB\u8D1E\u9488\u4FA6\u6795\u75B9\u8BCA\u9707\u632F\u9547\u9635\u84B8\u6323\u7741\u5F81\u72F0\u4E89\u6014\u6574\u62EF\u6B63\u653F"],["d640","\u8AE4",34,"\u8B08",27],["d680","\u8B24\u8B25\u8B27",30,"\u5E27\u75C7\u90D1\u8BC1\u829D\u679D\u652F\u5431\u8718\u77E5\u80A2\u8102\u6C41\u4E4B\u7EC7\u804C\u76F4\u690D\u6B96\u6267\u503C\u4F84\u5740\u6307\u6B62\u8DBE\u53EA\u65E8\u7EB8\u5FD7\u631A\u63B7\u81F3\u81F4\u7F6E\u5E1C\u5CD9\u5236\u667A\u79E9\u7A1A\u8D28\u7099\u75D4\u6EDE\u6CBB\u7A92\u4E2D\u76C5\u5FE0\u949F\u8877\u7EC8\u79CD\u80BF\u91CD\u4EF2\u4F17\u821F\u5468\u5DDE\u6D32\u8BCC\u7CA5\u8F74\u8098\u5E1A\u5492\u76B1\u5B99\u663C\u9AA4\u73E0\u682A\u86DB\u6731\u732A\u8BF8\u8BDB\u9010\u7AF9\u70DB\u716E\u62C4\u77A9\u5631\u4E3B\u8457\u67F1\u52A9\u86C0\u8D2E\u94F8\u7B51"],["d740","\u8B46",31,"\u8B67",4,"\u8B6D",25],["d780","\u8B87",24,"\u8BAC\u8BB1\u8BBB\u8BC7\u8BD0\u8BEA\u8C09\u8C1E\u4F4F\u6CE8\u795D\u9A7B\u6293\u722A\u62FD\u4E13\u7816\u8F6C\u64B0\u8D5A\u7BC6\u6869\u5E84\u88C5\u5986\u649E\u58EE\u72B6\u690E\u9525\u8FFD\u8D58\u5760\u7F00\u8C06\u51C6\u6349\u62D9\u5353\u684C\u7422\u8301\u914C\u5544\u7740\u707C\u6D4A\u5179\u54A8\u8D44\u59FF\u6ECB\u6DC4\u5B5C\u7D2B\u4ED4\u7C7D\u6ED3\u5B50\u81EA\u6E0D\u5B57\u9B03\u68D5\u8E2A\u5B97\u7EFC\u603B\u7EB5\u90B9\u8D70\u594F\u63CD\u79DF\u8DB3\u5352\u65CF\u7956\u8BC5\u963B\u7EC4\u94BB\u7E82\u5634\u9189\u6700\u7F6A\u5C0A\u9075\u6628\u5DE6\u4F50\u67DE\u505A\u4F5C\u5750\u5EA7"],["d840","\u8C38",8,"\u8C42\u8C43\u8C44\u8C45\u8C48\u8C4A\u8C4B\u8C4D",7,"\u8C56\u8C57\u8C58\u8C59\u8C5B",5,"\u8C63",6,"\u8C6C",6,"\u8C74\u8C75\u8C76\u8C77\u8C7B",6,"\u8C83\u8C84\u8C86\u8C87"],["d880","\u8C88\u8C8B\u8C8D",6,"\u8C95\u8C96\u8C97\u8C99",20,"\u4E8D\u4E0C\u5140\u4E10\u5EFF\u5345\u4E15\u4E98\u4E1E\u9B32\u5B6C\u5669\u4E28\u79BA\u4E3F\u5315\u4E47\u592D\u723B\u536E\u6C10\u56DF\u80E4\u9997\u6BD3\u777E\u9F17\u4E36\u4E9F\u9F10\u4E5C\u4E69\u4E93\u8288\u5B5B\u556C\u560F\u4EC4\u538D\u539D\u53A3\u53A5\u53AE\u9765\u8D5D\u531A\u53F5\u5326\u532E\u533E\u8D5C\u5366\u5363\u5202\u5208\u520E\u522D\u5233\u523F\u5240\u524C\u525E\u5261\u525C\u84AF\u527D\u5282\u5281\u5290\u5293\u5182\u7F54\u4EBB\u4EC3\u4EC9\u4EC2\u4EE8\u4EE1\u4EEB\u4EDE\u4F1B\u4EF3\u4F22\u4F64\u4EF5\u4F25\u4F27\u4F09\u4F2B\u4F5E\u4F67\u6538\u4F5A\u4F5D"],["d940","\u8CAE",62],["d980","\u8CED",32,"\u4F5F\u4F57\u4F32\u4F3D\u4F76\u4F74\u4F91\u4F89\u4F83\u4F8F\u4F7E\u4F7B\u4FAA\u4F7C\u4FAC\u4F94\u4FE6\u4FE8\u4FEA\u4FC5\u4FDA\u4FE3\u4FDC\u4FD1\u4FDF\u4FF8\u5029\u504C\u4FF3\u502C\u500F\u502E\u502D\u4FFE\u501C\u500C\u5025\u5028\u507E\u5043\u5055\u5048\u504E\u506C\u507B\u50A5\u50A7\u50A9\u50BA\u50D6\u5106\u50ED\u50EC\u50E6\u50EE\u5107\u510B\u4EDD\u6C3D\u4F58\u4F65\u4FCE\u9FA0\u6C46\u7C74\u516E\u5DFD\u9EC9\u9998\u5181\u5914\u52F9\u530D\u8A07\u5310\u51EB\u5919\u5155\u4EA0\u5156\u4EB3\u886E\u88A4\u4EB5\u8114\u88D2\u7980\u5B34\u8803\u7FB8\u51AB\u51B1\u51BD\u51BC"],["da40","\u8D0E",14,"\u8D20\u8D51\u8D52\u8D57\u8D5F\u8D65\u8D68\u8D69\u8D6A\u8D6C\u8D6E\u8D6F\u8D71\u8D72\u8D78",8,"\u8D82\u8D83\u8D86\u8D87\u8D88\u8D89\u8D8C",4,"\u8D92\u8D93\u8D95",9,"\u8DA0\u8DA1"],["da80","\u8DA2\u8DA4",12,"\u8DB2\u8DB6\u8DB7\u8DB9\u8DBB\u8DBD\u8DC0\u8DC1\u8DC2\u8DC5\u8DC7\u8DC8\u8DC9\u8DCA\u8DCD\u8DD0\u8DD2\u8DD3\u8DD4\u51C7\u5196\u51A2\u51A5\u8BA0\u8BA6\u8BA7\u8BAA\u8BB4\u8BB5\u8BB7\u8BC2\u8BC3\u8BCB\u8BCF\u8BCE\u8BD2\u8BD3\u8BD4\u8BD6\u8BD8\u8BD9\u8BDC\u8BDF\u8BE0\u8BE4\u8BE8\u8BE9\u8BEE\u8BF0\u8BF3\u8BF6\u8BF9\u8BFC\u8BFF\u8C00\u8C02\u8C04\u8C07\u8C0C\u8C0F\u8C11\u8C12\u8C14\u8C15\u8C16\u8C19\u8C1B\u8C18\u8C1D\u8C1F\u8C20\u8C21\u8C25\u8C27\u8C2A\u8C2B\u8C2E\u8C2F\u8C32\u8C33\u8C35\u8C36\u5369\u537A\u961D\u9622\u9621\u9631\u962A\u963D\u963C\u9642\u9649\u9654\u965F\u9667\u966C\u9672\u9674\u9688\u968D\u9697\u96B0\u9097\u909B\u909D\u9099\u90AC\u90A1\u90B4\u90B3\u90B6\u90BA"],["db40","\u8DD5\u8DD8\u8DD9\u8DDC\u8DE0\u8DE1\u8DE2\u8DE5\u8DE6\u8DE7\u8DE9\u8DED\u8DEE\u8DF0\u8DF1\u8DF2\u8DF4\u8DF6\u8DFC\u8DFE",6,"\u8E06\u8E07\u8E08\u8E0B\u8E0D\u8E0E\u8E10\u8E11\u8E12\u8E13\u8E15",7,"\u8E20\u8E21\u8E24",4,"\u8E2B\u8E2D\u8E30\u8E32\u8E33\u8E34\u8E36\u8E37\u8E38\u8E3B\u8E3C\u8E3E"],["db80","\u8E3F\u8E43\u8E45\u8E46\u8E4C",4,"\u8E53",5,"\u8E5A",11,"\u8E67\u8E68\u8E6A\u8E6B\u8E6E\u8E71\u90B8\u90B0\u90CF\u90C5\u90BE\u90D0\u90C4\u90C7\u90D3\u90E6\u90E2\u90DC\u90D7\u90DB\u90EB\u90EF\u90FE\u9104\u9122\u911E\u9123\u9131\u912F\u9139\u9143\u9146\u520D\u5942\u52A2\u52AC\u52AD\u52BE\u54FF\u52D0\u52D6\u52F0\u53DF\u71EE\u77CD\u5EF4\u51F5\u51FC\u9B2F\u53B6\u5F01\u755A\u5DEF\u574C\u57A9\u57A1\u587E\u58BC\u58C5\u58D1\u5729\u572C\u572A\u5733\u5739\u572E\u572F\u575C\u573B\u5742\u5769\u5785\u576B\u5786\u577C\u577B\u5768\u576D\u5776\u5773\u57AD\u57A4\u578C\u57B2\u57CF\u57A7\u57B4\u5793\u57A0\u57D5\u57D8\u57DA\u57D9\u57D2\u57B8\u57F4\u57EF\u57F8\u57E4\u57DD"],["dc40","\u8E73\u8E75\u8E77",4,"\u8E7D\u8E7E\u8E80\u8E82\u8E83\u8E84\u8E86\u8E88",6,"\u8E91\u8E92\u8E93\u8E95",6,"\u8E9D\u8E9F",11,"\u8EAD\u8EAE\u8EB0\u8EB1\u8EB3",6,"\u8EBB",7],["dc80","\u8EC3",10,"\u8ECF",21,"\u580B\u580D\u57FD\u57ED\u5800\u581E\u5819\u5844\u5820\u5865\u586C\u5881\u5889\u589A\u5880\u99A8\u9F19\u61FF\u8279\u827D\u827F\u828F\u828A\u82A8\u8284\u828E\u8291\u8297\u8299\u82AB\u82B8\u82BE\u82B0\u82C8\u82CA\u82E3\u8298\u82B7\u82AE\u82CB\u82CC\u82C1\u82A9\u82B4\u82A1\u82AA\u829F\u82C4\u82CE\u82A4\u82E1\u8309\u82F7\u82E4\u830F\u8307\u82DC\u82F4\u82D2\u82D8\u830C\u82FB\u82D3\u8311\u831A\u8306\u8314\u8315\u82E0\u82D5\u831C\u8351\u835B\u835C\u8308\u8392\u833C\u8334\u8331\u839B\u835E\u832F\u834F\u8347\u8343\u835F\u8340\u8317\u8360\u832D\u833A\u8333\u8366\u8365"],["dd40","\u8EE5",62],["dd80","\u8F24",32,"\u8368\u831B\u8369\u836C\u836A\u836D\u836E\u83B0\u8378\u83B3\u83B4\u83A0\u83AA\u8393\u839C\u8385\u837C\u83B6\u83A9\u837D\u83B8\u837B\u8398\u839E\u83A8\u83BA\u83BC\u83C1\u8401\u83E5\u83D8\u5807\u8418\u840B\u83DD\u83FD\u83D6\u841C\u8438\u8411\u8406\u83D4\u83DF\u840F\u8403\u83F8\u83F9\u83EA\u83C5\u83C0\u8426\u83F0\u83E1\u845C\u8451\u845A\u8459\u8473\u8487\u8488\u847A\u8489\u8478\u843C\u8446\u8469\u8476\u848C\u848E\u8431\u846D\u84C1\u84CD\u84D0\u84E6\u84BD\u84D3\u84CA\u84BF\u84BA\u84E0\u84A1\u84B9\u84B4\u8497\u84E5\u84E3\u850C\u750D\u8538\u84F0\u8539\u851F\u853A"],["de40","\u8F45",32,"\u8F6A\u8F80\u8F8C\u8F92\u8F9D\u8FA0\u8FA1\u8FA2\u8FA4\u8FA5\u8FA6\u8FA7\u8FAA\u8FAC\u8FAD\u8FAE\u8FAF\u8FB2\u8FB3\u8FB4\u8FB5\u8FB7\u8FB8\u8FBA\u8FBB\u8FBC\u8FBF\u8FC0\u8FC3\u8FC6"],["de80","\u8FC9",4,"\u8FCF\u8FD2\u8FD6\u8FD7\u8FDA\u8FE0\u8FE1\u8FE3\u8FE7\u8FEC\u8FEF\u8FF1\u8FF2\u8FF4\u8FF5\u8FF6\u8FFA\u8FFB\u8FFC\u8FFE\u8FFF\u9007\u9008\u900C\u900E\u9013\u9015\u9018\u8556\u853B\u84FF\u84FC\u8559\u8548\u8568\u8564\u855E\u857A\u77A2\u8543\u8572\u857B\u85A4\u85A8\u8587\u858F\u8579\u85AE\u859C\u8585\u85B9\u85B7\u85B0\u85D3\u85C1\u85DC\u85FF\u8627\u8605\u8629\u8616\u863C\u5EFE\u5F08\u593C\u5941\u8037\u5955\u595A\u5958\u530F\u5C22\u5C25\u5C2C\u5C34\u624C\u626A\u629F\u62BB\u62CA\u62DA\u62D7\u62EE\u6322\u62F6\u6339\u634B\u6343\u63AD\u63F6\u6371\u637A\u638E\u63B4\u636D\u63AC\u638A\u6369\u63AE\u63BC\u63F2\u63F8\u63E0\u63FF\u63C4\u63DE\u63CE\u6452\u63C6\u63BE\u6445\u6441\u640B\u641B\u6420\u640C\u6426\u6421\u645E\u6484\u646D\u6496"],["df40","\u9019\u901C\u9023\u9024\u9025\u9027",5,"\u9030",4,"\u9037\u9039\u903A\u903D\u903F\u9040\u9043\u9045\u9046\u9048",4,"\u904E\u9054\u9055\u9056\u9059\u905A\u905C",5,"\u9064\u9066\u9067\u9069\u906A\u906B\u906C\u906F",4,"\u9076",6,"\u907E\u9081"],["df80","\u9084\u9085\u9086\u9087\u9089\u908A\u908C",4,"\u9092\u9094\u9096\u9098\u909A\u909C\u909E\u909F\u90A0\u90A4\u90A5\u90A7\u90A8\u90A9\u90AB\u90AD\u90B2\u90B7\u90BC\u90BD\u90BF\u90C0\u647A\u64B7\u64B8\u6499\u64BA\u64C0\u64D0\u64D7\u64E4\u64E2\u6509\u6525\u652E\u5F0B\u5FD2\u7519\u5F11\u535F\u53F1\u53FD\u53E9\u53E8\u53FB\u5412\u5416\u5406\u544B\u5452\u5453\u5454\u5456\u5443\u5421\u5457\u5459\u5423\u5432\u5482\u5494\u5477\u5471\u5464\u549A\u549B\u5484\u5476\u5466\u549D\u54D0\u54AD\u54C2\u54B4\u54D2\u54A7\u54A6\u54D3\u54D4\u5472\u54A3\u54D5\u54BB\u54BF\u54CC\u54D9\u54DA\u54DC\u54A9\u54AA\u54A4\u54DD\u54CF\u54DE\u551B\u54E7\u5520\u54FD\u5514\u54F3\u5522\u5523\u550F\u5511\u5527\u552A\u5567\u558F\u55B5\u5549\u556D\u5541\u5555\u553F\u5550\u553C"],["e040","\u90C2\u90C3\u90C6\u90C8\u90C9\u90CB\u90CC\u90CD\u90D2\u90D4\u90D5\u90D6\u90D8\u90D9\u90DA\u90DE\u90DF\u90E0\u90E3\u90E4\u90E5\u90E9\u90EA\u90EC\u90EE\u90F0\u90F1\u90F2\u90F3\u90F5\u90F6\u90F7\u90F9\u90FA\u90FB\u90FC\u90FF\u9100\u9101\u9103\u9105",19,"\u911A\u911B\u911C"],["e080","\u911D\u911F\u9120\u9121\u9124",10,"\u9130\u9132",6,"\u913A",8,"\u9144\u5537\u5556\u5575\u5576\u5577\u5533\u5530\u555C\u558B\u55D2\u5583\u55B1\u55B9\u5588\u5581\u559F\u557E\u55D6\u5591\u557B\u55DF\u55BD\u55BE\u5594\u5599\u55EA\u55F7\u55C9\u561F\u55D1\u55EB\u55EC\u55D4\u55E6\u55DD\u55C4\u55EF\u55E5\u55F2\u55F3\u55CC\u55CD\u55E8\u55F5\u55E4\u8F94\u561E\u5608\u560C\u5601\u5624\u5623\u55FE\u5600\u5627\u562D\u5658\u5639\u5657\u562C\u564D\u5662\u5659\u565C\u564C\u5654\u5686\u5664\u5671\u566B\u567B\u567C\u5685\u5693\u56AF\u56D4\u56D7\u56DD\u56E1\u56F5\u56EB\u56F9\u56FF\u5704\u570A\u5709\u571C\u5E0F\u5E19\u5E14\u5E11\u5E31\u5E3B\u5E3C"],["e140","\u9145\u9147\u9148\u9151\u9153\u9154\u9155\u9156\u9158\u9159\u915B\u915C\u915F\u9160\u9166\u9167\u9168\u916B\u916D\u9173\u917A\u917B\u917C\u9180",4,"\u9186\u9188\u918A\u918E\u918F\u9193",6,"\u919C",5,"\u91A4",5,"\u91AB\u91AC\u91B0\u91B1\u91B2\u91B3\u91B6\u91B7\u91B8\u91B9\u91BB"],["e180","\u91BC",10,"\u91C8\u91CB\u91D0\u91D2",9,"\u91DD",8,"\u5E37\u5E44\u5E54\u5E5B\u5E5E\u5E61\u5C8C\u5C7A\u5C8D\u5C90\u5C96\u5C88\u5C98\u5C99\u5C91\u5C9A\u5C9C\u5CB5\u5CA2\u5CBD\u5CAC\u5CAB\u5CB1\u5CA3\u5CC1\u5CB7\u5CC4\u5CD2\u5CE4\u5CCB\u5CE5\u5D02\u5D03\u5D27\u5D26\u5D2E\u5D24\u5D1E\u5D06\u5D1B\u5D58\u5D3E\u5D34\u5D3D\u5D6C\u5D5B\u5D6F\u5D5D\u5D6B\u5D4B\u5D4A\u5D69\u5D74\u5D82\u5D99\u5D9D\u8C73\u5DB7\u5DC5\u5F73\u5F77\u5F82\u5F87\u5F89\u5F8C\u5F95\u5F99\u5F9C\u5FA8\u5FAD\u5FB5\u5FBC\u8862\u5F61\u72AD\u72B0\u72B4\u72B7\u72B8\u72C3\u72C1\u72CE\u72CD\u72D2\u72E8\u72EF\u72E9\u72F2\u72F4\u72F7\u7301\u72F3\u7303\u72FA"],["e240","\u91E6",62],["e280","\u9225",32,"\u72FB\u7317\u7313\u7321\u730A\u731E\u731D\u7315\u7322\u7339\u7325\u732C\u7338\u7331\u7350\u734D\u7357\u7360\u736C\u736F\u737E\u821B\u5925\u98E7\u5924\u5902\u9963\u9967",5,"\u9974\u9977\u997D\u9980\u9984\u9987\u998A\u998D\u9990\u9991\u9993\u9994\u9995\u5E80\u5E91\u5E8B\u5E96\u5EA5\u5EA0\u5EB9\u5EB5\u5EBE\u5EB3\u8D53\u5ED2\u5ED1\u5EDB\u5EE8\u5EEA\u81BA\u5FC4\u5FC9\u5FD6\u5FCF\u6003\u5FEE\u6004\u5FE1\u5FE4\u5FFE\u6005\u6006\u5FEA\u5FED\u5FF8\u6019\u6035\u6026\u601B\u600F\u600D\u6029\u602B\u600A\u603F\u6021\u6078\u6079\u607B\u607A\u6042"],["e340","\u9246",45,"\u9275",16],["e380","\u9286",7,"\u928F",24,"\u606A\u607D\u6096\u609A\u60AD\u609D\u6083\u6092\u608C\u609B\u60EC\u60BB\u60B1\u60DD\u60D8\u60C6\u60DA\u60B4\u6120\u6126\u6115\u6123\u60F4\u6100\u610E\u612B\u614A\u6175\u61AC\u6194\u61A7\u61B7\u61D4\u61F5\u5FDD\u96B3\u95E9\u95EB\u95F1\u95F3\u95F5\u95F6\u95FC\u95FE\u9603\u9604\u9606\u9608\u960A\u960B\u960C\u960D\u960F\u9612\u9615\u9616\u9617\u9619\u961A\u4E2C\u723F\u6215\u6C35\u6C54\u6C5C\u6C4A\u6CA3\u6C85\u6C90\u6C94\u6C8C\u6C68\u6C69\u6C74\u6C76\u6C86\u6CA9\u6CD0\u6CD4\u6CAD\u6CF7\u6CF8\u6CF1\u6CD7\u6CB2\u6CE0\u6CD6\u6CFA\u6CEB\u6CEE\u6CB1\u6CD3\u6CEF\u6CFE"],["e440","\u92A8",5,"\u92AF",24,"\u92C9",31],["e480","\u92E9",32,"\u6D39\u6D27\u6D0C\u6D43\u6D48\u6D07\u6D04\u6D19\u6D0E\u6D2B\u6D4D\u6D2E\u6D35\u6D1A\u6D4F\u6D52\u6D54\u6D33\u6D91\u6D6F\u6D9E\u6DA0\u6D5E\u6D93\u6D94\u6D5C\u6D60\u6D7C\u6D63\u6E1A\u6DC7\u6DC5\u6DDE\u6E0E\u6DBF\u6DE0\u6E11\u6DE6\u6DDD\u6DD9\u6E16\u6DAB\u6E0C\u6DAE\u6E2B\u6E6E\u6E4E\u6E6B\u6EB2\u6E5F\u6E86\u6E53\u6E54\u6E32\u6E25\u6E44\u6EDF\u6EB1\u6E98\u6EE0\u6F2D\u6EE2\u6EA5\u6EA7\u6EBD\u6EBB\u6EB7\u6ED7\u6EB4\u6ECF\u6E8F\u6EC2\u6E9F\u6F62\u6F46\u6F47\u6F24\u6F15\u6EF9\u6F2F\u6F36\u6F4B\u6F74\u6F2A\u6F09\u6F29\u6F89\u6F8D\u6F8C\u6F78\u6F72\u6F7C\u6F7A\u6FD1"],["e540","\u930A",51,"\u933F",10],["e580","\u934A",31,"\u936B\u6FC9\u6FA7\u6FB9\u6FB6\u6FC2\u6FE1\u6FEE\u6FDE\u6FE0\u6FEF\u701A\u7023\u701B\u7039\u7035\u704F\u705E\u5B80\u5B84\u5B95\u5B93\u5BA5\u5BB8\u752F\u9A9E\u6434\u5BE4\u5BEE\u8930\u5BF0\u8E47\u8B07\u8FB6\u8FD3\u8FD5\u8FE5\u8FEE\u8FE4\u8FE9\u8FE6\u8FF3\u8FE8\u9005\u9004\u900B\u9026\u9011\u900D\u9016\u9021\u9035\u9036\u902D\u902F\u9044\u9051\u9052\u9050\u9068\u9058\u9062\u905B\u66B9\u9074\u907D\u9082\u9088\u9083\u908B\u5F50\u5F57\u5F56\u5F58\u5C3B\u54AB\u5C50\u5C59\u5B71\u5C63\u5C66\u7FBC\u5F2A\u5F29\u5F2D\u8274\u5F3C\u9B3B\u5C6E\u5981\u5983\u598D\u59A9\u59AA\u59A3"],["e640","\u936C",34,"\u9390",27],["e680","\u93AC",29,"\u93CB\u93CC\u93CD\u5997\u59CA\u59AB\u599E\u59A4\u59D2\u59B2\u59AF\u59D7\u59BE\u5A05\u5A06\u59DD\u5A08\u59E3\u59D8\u59F9\u5A0C\u5A09\u5A32\u5A34\u5A11\u5A23\u5A13\u5A40\u5A67\u5A4A\u5A55\u5A3C\u5A62\u5A75\u80EC\u5AAA\u5A9B\u5A77\u5A7A\u5ABE\u5AEB\u5AB2\u5AD2\u5AD4\u5AB8\u5AE0\u5AE3\u5AF1\u5AD6\u5AE6\u5AD8\u5ADC\u5B09\u5B17\u5B16\u5B32\u5B37\u5B40\u5C15\u5C1C\u5B5A\u5B65\u5B73\u5B51\u5B53\u5B62\u9A75\u9A77\u9A78\u9A7A\u9A7F\u9A7D\u9A80\u9A81\u9A85\u9A88\u9A8A\u9A90\u9A92\u9A93\u9A96\u9A98\u9A9B\u9A9C\u9A9D\u9A9F\u9AA0\u9AA2\u9AA3\u9AA5\u9AA7\u7E9F\u7EA1\u7EA3\u7EA5\u7EA8\u7EA9"],["e740","\u93CE",7,"\u93D7",54],["e780","\u940E",32,"\u7EAD\u7EB0\u7EBE\u7EC0\u7EC1\u7EC2\u7EC9\u7ECB\u7ECC\u7ED0\u7ED4\u7ED7\u7EDB\u7EE0\u7EE1\u7EE8\u7EEB\u7EEE\u7EEF\u7EF1\u7EF2\u7F0D\u7EF6\u7EFA\u7EFB\u7EFE\u7F01\u7F02\u7F03\u7F07\u7F08\u7F0B\u7F0C\u7F0F\u7F11\u7F12\u7F17\u7F19\u7F1C\u7F1B\u7F1F\u7F21",6,"\u7F2A\u7F2B\u7F2C\u7F2D\u7F2F",4,"\u7F35\u5E7A\u757F\u5DDB\u753E\u9095\u738E\u7391\u73AE\u73A2\u739F\u73CF\u73C2\u73D1\u73B7\u73B3\u73C0\u73C9\u73C8\u73E5\u73D9\u987C\u740A\u73E9\u73E7\u73DE\u73BA\u73F2\u740F\u742A\u745B\u7426\u7425\u7428\u7430\u742E\u742C"],["e840","\u942F",14,"\u943F",43,"\u946C\u946D\u946E\u946F"],["e880","\u9470",20,"\u9491\u9496\u9498\u94C7\u94CF\u94D3\u94D4\u94DA\u94E6\u94FB\u951C\u9520\u741B\u741A\u7441\u745C\u7457\u7455\u7459\u7477\u746D\u747E\u749C\u748E\u7480\u7481\u7487\u748B\u749E\u74A8\u74A9\u7490\u74A7\u74D2\u74BA\u97EA\u97EB\u97EC\u674C\u6753\u675E\u6748\u6769\u67A5\u6787\u676A\u6773\u6798\u67A7\u6775\u67A8\u679E\u67AD\u678B\u6777\u677C\u67F0\u6809\u67D8\u680A\u67E9\u67B0\u680C\u67D9\u67B5\u67DA\u67B3\u67DD\u6800\u67C3\u67B8\u67E2\u680E\u67C1\u67FD\u6832\u6833\u6860\u6861\u684E\u6862\u6844\u6864\u6883\u681D\u6855\u6866\u6841\u6867\u6840\u683E\u684A\u6849\u6829\u68B5\u688F\u6874\u6877\u6893\u686B\u68C2\u696E\u68FC\u691F\u6920\u68F9"],["e940","\u9527\u9533\u953D\u9543\u9548\u954B\u9555\u955A\u9560\u956E\u9574\u9575\u9577",7,"\u9580",42],["e980","\u95AB",32,"\u6924\u68F0\u690B\u6901\u6957\u68E3\u6910\u6971\u6939\u6960\u6942\u695D\u6984\u696B\u6980\u6998\u6978\u6934\u69CC\u6987\u6988\u69CE\u6989\u6966\u6963\u6979\u699B\u69A7\u69BB\u69AB\u69AD\u69D4\u69B1\u69C1\u69CA\u69DF\u6995\u69E0\u698D\u69FF\u6A2F\u69ED\u6A17\u6A18\u6A65\u69F2\u6A44\u6A3E\u6AA0\u6A50\u6A5B\u6A35\u6A8E\u6A79\u6A3D\u6A28\u6A58\u6A7C\u6A91\u6A90\u6AA9\u6A97\u6AAB\u7337\u7352\u6B81\u6B82\u6B87\u6B84\u6B92\u6B93\u6B8D\u6B9A\u6B9B\u6BA1\u6BAA\u8F6B\u8F6D\u8F71\u8F72\u8F73\u8F75\u8F76\u8F78\u8F77\u8F79\u8F7A\u8F7C\u8F7E\u8F81\u8F82\u8F84\u8F87\u8F8B"],["ea40","\u95CC",27,"\u95EC\u95FF\u9607\u9613\u9618\u961B\u961E\u9620\u9623",6,"\u962B\u962C\u962D\u962F\u9630\u9637\u9638\u9639\u963A\u963E\u9641\u9643\u964A\u964E\u964F\u9651\u9652\u9653\u9656\u9657"],["ea80","\u9658\u9659\u965A\u965C\u965D\u965E\u9660\u9663\u9665\u9666\u966B\u966D",4,"\u9673\u9678",12,"\u9687\u9689\u968A\u8F8D\u8F8E\u8F8F\u8F98\u8F9A\u8ECE\u620B\u6217\u621B\u621F\u6222\u6221\u6225\u6224\u622C\u81E7\u74EF\u74F4\u74FF\u750F\u7511\u7513\u6534\u65EE\u65EF\u65F0\u660A\u6619\u6772\u6603\u6615\u6600\u7085\u66F7\u661D\u6634\u6631\u6636\u6635\u8006\u665F\u6654\u6641\u664F\u6656\u6661\u6657\u6677\u6684\u668C\u66A7\u669D\u66BE\u66DB\u66DC\u66E6\u66E9\u8D32\u8D33\u8D36\u8D3B\u8D3D\u8D40\u8D45\u8D46\u8D48\u8D49\u8D47\u8D4D\u8D55\u8D59\u89C7\u89CA\u89CB\u89CC\u89CE\u89CF\u89D0\u89D1\u726E\u729F\u725D\u7266\u726F\u727E\u727F\u7284\u728B\u728D\u728F\u7292\u6308\u6332\u63B0"],["eb40","\u968C\u968E\u9691\u9692\u9693\u9695\u9696\u969A\u969B\u969D",9,"\u96A8",7,"\u96B1\u96B2\u96B4\u96B5\u96B7\u96B8\u96BA\u96BB\u96BF\u96C2\u96C3\u96C8\u96CA\u96CB\u96D0\u96D1\u96D3\u96D4\u96D6",9,"\u96E1",6,"\u96EB"],["eb80","\u96EC\u96ED\u96EE\u96F0\u96F1\u96F2\u96F4\u96F5\u96F8\u96FA\u96FB\u96FC\u96FD\u96FF\u9702\u9703\u9705\u970A\u970B\u970C\u9710\u9711\u9712\u9714\u9715\u9717",4,"\u971D\u971F\u9720\u643F\u64D8\u8004\u6BEA\u6BF3\u6BFD\u6BF5\u6BF9\u6C05\u6C07\u6C06\u6C0D\u6C15\u6C18\u6C19\u6C1A\u6C21\u6C29\u6C24\u6C2A\u6C32\u6535\u6555\u656B\u724D\u7252\u7256\u7230\u8662\u5216\u809F\u809C\u8093\u80BC\u670A\u80BD\u80B1\u80AB\u80AD\u80B4\u80B7\u80E7\u80E8\u80E9\u80EA\u80DB\u80C2\u80C4\u80D9\u80CD\u80D7\u6710\u80DD\u80EB\u80F1\u80F4\u80ED\u810D\u810E\u80F2\u80FC\u6715\u8112\u8C5A\u8136\u811E\u812C\u8118\u8132\u8148\u814C\u8153\u8174\u8159\u815A\u8171\u8160\u8169\u817C\u817D\u816D\u8167\u584D\u5AB5\u8188\u8182\u8191\u6ED5\u81A3\u81AA\u81CC\u6726\u81CA\u81BB"],["ec40","\u9721",8,"\u972B\u972C\u972E\u972F\u9731\u9733",4,"\u973A\u973B\u973C\u973D\u973F",18,"\u9754\u9755\u9757\u9758\u975A\u975C\u975D\u975F\u9763\u9764\u9766\u9767\u9768\u976A",7],["ec80","\u9772\u9775\u9777",4,"\u977D",7,"\u9786",4,"\u978C\u978E\u978F\u9790\u9793\u9795\u9796\u9797\u9799",4,"\u81C1\u81A6\u6B24\u6B37\u6B39\u6B43\u6B46\u6B59\u98D1\u98D2\u98D3\u98D5\u98D9\u98DA\u6BB3\u5F40\u6BC2\u89F3\u6590\u9F51\u6593\u65BC\u65C6\u65C4\u65C3\u65CC\u65CE\u65D2\u65D6\u7080\u709C\u7096\u709D\u70BB\u70C0\u70B7\u70AB\u70B1\u70E8\u70CA\u7110\u7113\u7116\u712F\u7131\u7173\u715C\u7168\u7145\u7172\u714A\u7178\u717A\u7198\u71B3\u71B5\u71A8\u71A0\u71E0\u71D4\u71E7\u71F9\u721D\u7228\u706C\u7118\u7166\u71B9\u623E\u623D\u6243\u6248\u6249\u793B\u7940\u7946\u7949\u795B\u795C\u7953\u795A\u7962\u7957\u7960\u796F\u7967\u797A\u7985\u798A\u799A\u79A7\u79B3\u5FD1\u5FD0"],["ed40","\u979E\u979F\u97A1\u97A2\u97A4",6,"\u97AC\u97AE\u97B0\u97B1\u97B3\u97B5",46],["ed80","\u97E4\u97E5\u97E8\u97EE",4,"\u97F4\u97F7",23,"\u603C\u605D\u605A\u6067\u6041\u6059\u6063\u60AB\u6106\u610D\u615D\u61A9\u619D\u61CB\u61D1\u6206\u8080\u807F\u6C93\u6CF6\u6DFC\u77F6\u77F8\u7800\u7809\u7817\u7818\u7811\u65AB\u782D\u781C\u781D\u7839\u783A\u783B\u781F\u783C\u7825\u782C\u7823\u7829\u784E\u786D\u7856\u7857\u7826\u7850\u7847\u784C\u786A\u789B\u7893\u789A\u7887\u789C\u78A1\u78A3\u78B2\u78B9\u78A5\u78D4\u78D9\u78C9\u78EC\u78F2\u7905\u78F4\u7913\u7924\u791E\u7934\u9F9B\u9EF9\u9EFB\u9EFC\u76F1\u7704\u770D\u76F9\u7707\u7708\u771A\u7722\u7719\u772D\u7726\u7735\u7738\u7750\u7751\u7747\u7743\u775A\u7768"],["ee40","\u980F",62],["ee80","\u984E",32,"\u7762\u7765\u777F\u778D\u777D\u7780\u778C\u7791\u779F\u77A0\u77B0\u77B5\u77BD\u753A\u7540\u754E\u754B\u7548\u755B\u7572\u7579\u7583\u7F58\u7F61\u7F5F\u8A48\u7F68\u7F74\u7F71\u7F79\u7F81\u7F7E\u76CD\u76E5\u8832\u9485\u9486\u9487\u948B\u948A\u948C\u948D\u948F\u9490\u9494\u9497\u9495\u949A\u949B\u949C\u94A3\u94A4\u94AB\u94AA\u94AD\u94AC\u94AF\u94B0\u94B2\u94B4\u94B6",4,"\u94BC\u94BD\u94BF\u94C4\u94C8",6,"\u94D0\u94D1\u94D2\u94D5\u94D6\u94D7\u94D9\u94D8\u94DB\u94DE\u94DF\u94E0\u94E2\u94E4\u94E5\u94E7\u94E8\u94EA"],["ef40","\u986F",5,"\u988B\u988E\u9892\u9895\u9899\u98A3\u98A8",37,"\u98CF\u98D0\u98D4\u98D6\u98D7\u98DB\u98DC\u98DD\u98E0",4],["ef80","\u98E5\u98E6\u98E9",30,"\u94E9\u94EB\u94EE\u94EF\u94F3\u94F4\u94F5\u94F7\u94F9\u94FC\u94FD\u94FF\u9503\u9502\u9506\u9507\u9509\u950A\u950D\u950E\u950F\u9512",4,"\u9518\u951B\u951D\u951E\u951F\u9522\u952A\u952B\u9529\u952C\u9531\u9532\u9534\u9536\u9537\u9538\u953C\u953E\u953F\u9542\u9535\u9544\u9545\u9546\u9549\u954C\u954E\u954F\u9552\u9553\u9554\u9556\u9557\u9558\u9559\u955B\u955E\u955F\u955D\u9561\u9562\u9564",8,"\u956F\u9571\u9572\u9573\u953A\u77E7\u77EC\u96C9\u79D5\u79ED\u79E3\u79EB\u7A06\u5D47\u7A03\u7A02\u7A1E\u7A14"],["f040","\u9908",4,"\u990E\u990F\u9911",28,"\u992F",26],["f080","\u994A",9,"\u9956",12,"\u9964\u9966\u9973\u9978\u9979\u997B\u997E\u9982\u9983\u9989\u7A39\u7A37\u7A51\u9ECF\u99A5\u7A70\u7688\u768E\u7693\u7699\u76A4\u74DE\u74E0\u752C\u9E20\u9E22\u9E28",4,"\u9E32\u9E31\u9E36\u9E38\u9E37\u9E39\u9E3A\u9E3E\u9E41\u9E42\u9E44\u9E46\u9E47\u9E48\u9E49\u9E4B\u9E4C\u9E4E\u9E51\u9E55\u9E57\u9E5A\u9E5B\u9E5C\u9E5E\u9E63\u9E66",6,"\u9E71\u9E6D\u9E73\u7592\u7594\u7596\u75A0\u759D\u75AC\u75A3\u75B3\u75B4\u75B8\u75C4\u75B1\u75B0\u75C3\u75C2\u75D6\u75CD\u75E3\u75E8\u75E6\u75E4\u75EB\u75E7\u7603\u75F1\u75FC\u75FF\u7610\u7600\u7605\u760C\u7617\u760A\u7625\u7618\u7615\u7619"],["f140","\u998C\u998E\u999A",10,"\u99A6\u99A7\u99A9",47],["f180","\u99D9",32,"\u761B\u763C\u7622\u7620\u7640\u762D\u7630\u763F\u7635\u7643\u763E\u7633\u764D\u765E\u7654\u765C\u7656\u766B\u766F\u7FCA\u7AE6\u7A78\u7A79\u7A80\u7A86\u7A88\u7A95\u7AA6\u7AA0\u7AAC\u7AA8\u7AAD\u7AB3\u8864\u8869\u8872\u887D\u887F\u8882\u88A2\u88C6\u88B7\u88BC\u88C9\u88E2\u88CE\u88E3\u88E5\u88F1\u891A\u88FC\u88E8\u88FE\u88F0\u8921\u8919\u8913\u891B\u890A\u8934\u892B\u8936\u8941\u8966\u897B\u758B\u80E5\u76B2\u76B4\u77DC\u8012\u8014\u8016\u801C\u8020\u8022\u8025\u8026\u8027\u8029\u8028\u8031\u800B\u8035\u8043\u8046\u804D\u8052\u8069\u8071\u8983\u9878\u9880\u9883"],["f240","\u99FA",62],["f280","\u9A39",32,"\u9889\u988C\u988D\u988F\u9894\u989A\u989B\u989E\u989F\u98A1\u98A2\u98A5\u98A6\u864D\u8654\u866C\u866E\u867F\u867A\u867C\u867B\u86A8\u868D\u868B\u86AC\u869D\u86A7\u86A3\u86AA\u8693\u86A9\u86B6\u86C4\u86B5\u86CE\u86B0\u86BA\u86B1\u86AF\u86C9\u86CF\u86B4\u86E9\u86F1\u86F2\u86ED\u86F3\u86D0\u8713\u86DE\u86F4\u86DF\u86D8\u86D1\u8703\u8707\u86F8\u8708\u870A\u870D\u8709\u8723\u873B\u871E\u8725\u872E\u871A\u873E\u8748\u8734\u8731\u8729\u8737\u873F\u8782\u8722\u877D\u877E\u877B\u8760\u8770\u874C\u876E\u878B\u8753\u8763\u877C\u8764\u8759\u8765\u8793\u87AF\u87A8\u87D2"],["f340","\u9A5A",17,"\u9A72\u9A83\u9A89\u9A8D\u9A8E\u9A94\u9A95\u9A99\u9AA6\u9AA9",6,"\u9AB2\u9AB3\u9AB4\u9AB5\u9AB9\u9ABB\u9ABD\u9ABE\u9ABF\u9AC3\u9AC4\u9AC6",4,"\u9ACD\u9ACE\u9ACF\u9AD0\u9AD2\u9AD4\u9AD5\u9AD6\u9AD7\u9AD9\u9ADA\u9ADB\u9ADC"],["f380","\u9ADD\u9ADE\u9AE0\u9AE2\u9AE3\u9AE4\u9AE5\u9AE7\u9AE8\u9AE9\u9AEA\u9AEC\u9AEE\u9AF0",8,"\u9AFA\u9AFC",6,"\u9B04\u9B05\u9B06\u87C6\u8788\u8785\u87AD\u8797\u8783\u87AB\u87E5\u87AC\u87B5\u87B3\u87CB\u87D3\u87BD\u87D1\u87C0\u87CA\u87DB\u87EA\u87E0\u87EE\u8816\u8813\u87FE\u880A\u881B\u8821\u8839\u883C\u7F36\u7F42\u7F44\u7F45\u8210\u7AFA\u7AFD\u7B08\u7B03\u7B04\u7B15\u7B0A\u7B2B\u7B0F\u7B47\u7B38\u7B2A\u7B19\u7B2E\u7B31\u7B20\u7B25\u7B24\u7B33\u7B3E\u7B1E\u7B58\u7B5A\u7B45\u7B75\u7B4C\u7B5D\u7B60\u7B6E\u7B7B\u7B62\u7B72\u7B71\u7B90\u7BA6\u7BA7\u7BB8\u7BAC\u7B9D\u7BA8\u7B85\u7BAA\u7B9C\u7BA2\u7BAB\u7BB4\u7BD1\u7BC1\u7BCC\u7BDD\u7BDA\u7BE5\u7BE6\u7BEA\u7C0C\u7BFE\u7BFC\u7C0F\u7C16\u7C0B"],["f440","\u9B07\u9B09",5,"\u9B10\u9B11\u9B12\u9B14",10,"\u9B20\u9B21\u9B22\u9B24",10,"\u9B30\u9B31\u9B33",7,"\u9B3D\u9B3E\u9B3F\u9B40\u9B46\u9B4A\u9B4B\u9B4C\u9B4E\u9B50\u9B52\u9B53\u9B55",5],["f480","\u9B5B",32,"\u7C1F\u7C2A\u7C26\u7C38\u7C41\u7C40\u81FE\u8201\u8202\u8204\u81EC\u8844\u8221\u8222\u8223\u822D\u822F\u8228\u822B\u8238\u823B\u8233\u8234\u823E\u8244\u8249\u824B\u824F\u825A\u825F\u8268\u887E\u8885\u8888\u88D8\u88DF\u895E\u7F9D\u7F9F\u7FA7\u7FAF\u7FB0\u7FB2\u7C7C\u6549\u7C91\u7C9D\u7C9C\u7C9E\u7CA2\u7CB2\u7CBC\u7CBD\u7CC1\u7CC7\u7CCC\u7CCD\u7CC8\u7CC5\u7CD7\u7CE8\u826E\u66A8\u7FBF\u7FCE\u7FD5\u7FE5\u7FE1\u7FE6\u7FE9\u7FEE\u7FF3\u7CF8\u7D77\u7DA6\u7DAE\u7E47\u7E9B\u9EB8\u9EB4\u8D73\u8D84\u8D94\u8D91\u8DB1\u8D67\u8D6D\u8C47\u8C49\u914A\u9150\u914E\u914F\u9164"],["f540","\u9B7C",62],["f580","\u9BBB",32,"\u9162\u9161\u9170\u9169\u916F\u917D\u917E\u9172\u9174\u9179\u918C\u9185\u9190\u918D\u9191\u91A2\u91A3\u91AA\u91AD\u91AE\u91AF\u91B5\u91B4\u91BA\u8C55\u9E7E\u8DB8\u8DEB\u8E05\u8E59\u8E69\u8DB5\u8DBF\u8DBC\u8DBA\u8DC4\u8DD6\u8DD7\u8DDA\u8DDE\u8DCE\u8DCF\u8DDB\u8DC6\u8DEC\u8DF7\u8DF8\u8DE3\u8DF9\u8DFB\u8DE4\u8E09\u8DFD\u8E14\u8E1D\u8E1F\u8E2C\u8E2E\u8E23\u8E2F\u8E3A\u8E40\u8E39\u8E35\u8E3D\u8E31\u8E49\u8E41\u8E42\u8E51\u8E52\u8E4A\u8E70\u8E76\u8E7C\u8E6F\u8E74\u8E85\u8E8F\u8E94\u8E90\u8E9C\u8E9E\u8C78\u8C82\u8C8A\u8C85\u8C98\u8C94\u659B\u89D6\u89DE\u89DA\u89DC"],["f640","\u9BDC",62],["f680","\u9C1B",32,"\u89E5\u89EB\u89EF\u8A3E\u8B26\u9753\u96E9\u96F3\u96EF\u9706\u9701\u9708\u970F\u970E\u972A\u972D\u9730\u973E\u9F80\u9F83\u9F85",5,"\u9F8C\u9EFE\u9F0B\u9F0D\u96B9\u96BC\u96BD\u96CE\u96D2\u77BF\u96E0\u928E\u92AE\u92C8\u933E\u936A\u93CA\u938F\u943E\u946B\u9C7F\u9C82\u9C85\u9C86\u9C87\u9C88\u7A23\u9C8B\u9C8E\u9C90\u9C91\u9C92\u9C94\u9C95\u9C9A\u9C9B\u9C9E",5,"\u9CA5",4,"\u9CAB\u9CAD\u9CAE\u9CB0",7,"\u9CBA\u9CBB\u9CBC\u9CBD\u9CC4\u9CC5\u9CC6\u9CC7\u9CCA\u9CCB"],["f740","\u9C3C",62],["f780","\u9C7B\u9C7D\u9C7E\u9C80\u9C83\u9C84\u9C89\u9C8A\u9C8C\u9C8F\u9C93\u9C96\u9C97\u9C98\u9C99\u9C9D\u9CAA\u9CAC\u9CAF\u9CB9\u9CBE",4,"\u9CC8\u9CC9\u9CD1\u9CD2\u9CDA\u9CDB\u9CE0\u9CE1\u9CCC",4,"\u9CD3\u9CD4\u9CD5\u9CD7\u9CD8\u9CD9\u9CDC\u9CDD\u9CDF\u9CE2\u977C\u9785\u9791\u9792\u9794\u97AF\u97AB\u97A3\u97B2\u97B4\u9AB1\u9AB0\u9AB7\u9E58\u9AB6\u9ABA\u9ABC\u9AC1\u9AC0\u9AC5\u9AC2\u9ACB\u9ACC\u9AD1\u9B45\u9B43\u9B47\u9B49\u9B48\u9B4D\u9B51\u98E8\u990D\u992E\u9955\u9954\u9ADF\u9AE1\u9AE6\u9AEF\u9AEB\u9AFB\u9AED\u9AF9\u9B08\u9B0F\u9B13\u9B1F\u9B23\u9EBD\u9EBE\u7E3B\u9E82\u9E87\u9E88\u9E8B\u9E92\u93D6\u9E9D\u9E9F\u9EDB\u9EDC\u9EDD\u9EE0\u9EDF\u9EE2\u9EE9\u9EE7\u9EE5\u9EEA\u9EEF\u9F22\u9F2C\u9F2F\u9F39\u9F37\u9F3D\u9F3E\u9F44"],["f840","\u9CE3",62],["f880","\u9D22",32],["f940","\u9D43",62],["f980","\u9D82",32],["fa40","\u9DA3",62],["fa80","\u9DE2",32],["fb40","\u9E03",27,"\u9E24\u9E27\u9E2E\u9E30\u9E34\u9E3B\u9E3C\u9E40\u9E4D\u9E50\u9E52\u9E53\u9E54\u9E56\u9E59\u9E5D\u9E5F\u9E60\u9E61\u9E62\u9E65\u9E6E\u9E6F\u9E72\u9E74",9,"\u9E80"],["fb80","\u9E81\u9E83\u9E84\u9E85\u9E86\u9E89\u9E8A\u9E8C",5,"\u9E94",8,"\u9E9E\u9EA0",5,"\u9EA7\u9EA8\u9EA9\u9EAA"],["fc40","\u9EAB",8,"\u9EB5\u9EB6\u9EB7\u9EB9\u9EBA\u9EBC\u9EBF",4,"\u9EC5\u9EC6\u9EC7\u9EC8\u9ECA\u9ECB\u9ECC\u9ED0\u9ED2\u9ED3\u9ED5\u9ED6\u9ED7\u9ED9\u9EDA\u9EDE\u9EE1\u9EE3\u9EE4\u9EE6\u9EE8\u9EEB\u9EEC\u9EED\u9EEE\u9EF0",8,"\u9EFA\u9EFD\u9EFF",6],["fc80","\u9F06",4,"\u9F0C\u9F0F\u9F11\u9F12\u9F14\u9F15\u9F16\u9F18\u9F1A",5,"\u9F21\u9F23",8,"\u9F2D\u9F2E\u9F30\u9F31"],["fd40","\u9F32",4,"\u9F38\u9F3A\u9F3C\u9F3F",4,"\u9F45",10,"\u9F52",38],["fd80","\u9F79",5,"\u9F81\u9F82\u9F8D",11,"\u9F9C\u9F9D\u9F9E\u9FA1",4,"\uF92C\uF979\uF995\uF9E7\uF9F1"],["fe40","\uFA0C\uFA0D\uFA0E\uFA0F\uFA11\uFA13\uFA14\uFA18\uFA1F\uFA20\uFA21\uFA23\uFA24\uFA27\uFA28\uFA29"]]});var zw=T((IIe,bX)=>{bX.exports=[["a140","\uE4C6",62],["a180","\uE505",32],["a240","\uE526",62],["a280","\uE565",32],["a2ab","\uE766",5],["a2e3","\u20AC\uE76D"],["a2ef","\uE76E\uE76F"],["a2fd","\uE770\uE771"],["a340","\uE586",62],["a380","\uE5C5",31,"\u3000"],["a440","\uE5E6",62],["a480","\uE625",32],["a4f4","\uE772",10],["a540","\uE646",62],["a580","\uE685",32],["a5f7","\uE77D",7],["a640","\uE6A6",62],["a680","\uE6E5",32],["a6b9","\uE785",7],["a6d9","\uE78D",6],["a6ec","\uE794\uE795"],["a6f3","\uE796"],["a6f6","\uE797",8],["a740","\uE706",62],["a780","\uE745",32],["a7c2","\uE7A0",14],["a7f2","\uE7AF",12],["a896","\uE7BC",10],["a8bc","\uE7C7"],["a8bf","\u01F9"],["a8c1","\uE7C9\uE7CA\uE7CB\uE7CC"],["a8ea","\uE7CD",20],["a958","\uE7E2"],["a95b","\uE7E3"],["a95d","\uE7E4\uE7E5\uE7E6"],["a989","\u303E\u2FF0",11],["a997","\uE7F4",12],["a9f0","\uE801",14],["aaa1","\uE000",93],["aba1","\uE05E",93],["aca1","\uE0BC",93],["ada1","\uE11A",93],["aea1","\uE178",93],["afa1","\uE1D6",93],["d7fa","\uE810",4],["f8a1","\uE234",93],["f9a1","\uE292",93],["faa1","\uE2F0",93],["fba1","\uE34E",93],["fca1","\uE3AC",93],["fda1","\uE40A",93],["fe50","\u2E81\uE816\uE817\uE818\u2E84\u3473\u3447\u2E88\u2E8B\uE81E\u359E\u361A\u360E\u2E8C\u2E97\u396E\u3918\uE826\u39CF\u39DF\u3A73\u39D0\uE82B\uE82C\u3B4E\u3C6E\u3CE0\u2EA7\uE831\uE832\u2EAA\u4056\u415F\u2EAE\u4337\u2EB3\u2EB6\u2EB7\uE83B\u43B1\u43AC\u2EBB\u43DD\u44D6\u4661\u464C\uE843"],["fe80","\u4723\u4729\u477C\u478D\u2ECA\u4947\u497A\u497D\u4982\u4983\u4985\u4986\u499F\u499B\u49B7\u49B6\uE854\uE855\u4CA3\u4C9F\u4CA0\u4CA1\u4C77\u4CA2\u4D13",6,"\u4DAE\uE864\uE468",93]]});var YN=T((RIe,xX)=>{xX.exports={uChars:[128,165,169,178,184,216,226,235,238,244,248,251,253,258,276,284,300,325,329,334,364,463,465,467,469,471,473,475,477,506,594,610,712,716,730,930,938,962,970,1026,1104,1106,8209,8215,8218,8222,8231,8241,8244,8246,8252,8365,8452,8454,8458,8471,8482,8556,8570,8596,8602,8713,8720,8722,8726,8731,8737,8740,8742,8748,8751,8760,8766,8777,8781,8787,8802,8808,8816,8854,8858,8870,8896,8979,9322,9372,9548,9588,9616,9622,9634,9652,9662,9672,9676,9680,9702,9735,9738,9793,9795,11906,11909,11913,11917,11928,11944,11947,11951,11956,11960,11964,11979,12284,12292,12312,12319,12330,12351,12436,12447,12535,12543,12586,12842,12850,12964,13200,13215,13218,13253,13263,13267,13270,13384,13428,13727,13839,13851,14617,14703,14801,14816,14964,15183,15471,15585,16471,16736,17208,17325,17330,17374,17623,17997,18018,18212,18218,18301,18318,18760,18811,18814,18820,18823,18844,18848,18872,19576,19620,19738,19887,40870,59244,59336,59367,59413,59417,59423,59431,59437,59443,59452,59460,59478,59493,63789,63866,63894,63976,63986,64016,64018,64021,64025,64034,64037,64042,65074,65093,65107,65112,65127,65132,65375,65510,65536],gbChars:[0,36,38,45,50,81,89,95,96,100,103,104,105,109,126,133,148,172,175,179,208,306,307,308,309,310,311,312,313,341,428,443,544,545,558,741,742,749,750,805,819,820,7922,7924,7925,7927,7934,7943,7944,7945,7950,8062,8148,8149,8152,8164,8174,8236,8240,8262,8264,8374,8380,8381,8384,8388,8390,8392,8393,8394,8396,8401,8406,8416,8419,8424,8437,8439,8445,8482,8485,8496,8521,8603,8936,8946,9046,9050,9063,9066,9076,9092,9100,9108,9111,9113,9131,9162,9164,9218,9219,11329,11331,11334,11336,11346,11361,11363,11366,11370,11372,11375,11389,11682,11686,11687,11692,11694,11714,11716,11723,11725,11730,11736,11982,11989,12102,12336,12348,12350,12384,12393,12395,12397,12510,12553,12851,12962,12973,13738,13823,13919,13933,14080,14298,14585,14698,15583,15847,16318,16434,16438,16481,16729,17102,17122,17315,17320,17402,17418,17859,17909,17911,17915,17916,17936,17939,17961,18664,18703,18814,18962,19043,33469,33470,33471,33484,33485,33490,33497,33501,33505,33513,33520,33536,33550,37845,37921,37948,38029,38038,38064,38065,38066,38069,38075,38076,38078,39108,39109,39113,39114,39115,39116,39265,39394,189e3]}});var QN=T((OIe,SX)=>{SX.exports=[["0","\0",127],["8141","\uAC02\uAC03\uAC05\uAC06\uAC0B",4,"\uAC18\uAC1E\uAC1F\uAC21\uAC22\uAC23\uAC25",6,"\uAC2E\uAC32\uAC33\uAC34"],["8161","\uAC35\uAC36\uAC37\uAC3A\uAC3B\uAC3D\uAC3E\uAC3F\uAC41",9,"\uAC4C\uAC4E",5,"\uAC55"],["8181","\uAC56\uAC57\uAC59\uAC5A\uAC5B\uAC5D",18,"\uAC72\uAC73\uAC75\uAC76\uAC79\uAC7B",4,"\uAC82\uAC87\uAC88\uAC8D\uAC8E\uAC8F\uAC91\uAC92\uAC93\uAC95",6,"\uAC9E\uACA2",5,"\uACAB\uACAD\uACAE\uACB1",6,"\uACBA\uACBE\uACBF\uACC0\uACC2\uACC3\uACC5\uACC6\uACC7\uACC9\uACCA\uACCB\uACCD",7,"\uACD6\uACD8",7,"\uACE2\uACE3\uACE5\uACE6\uACE9\uACEB\uACED\uACEE\uACF2\uACF4\uACF7",4,"\uACFE\uACFF\uAD01\uAD02\uAD03\uAD05\uAD07",4,"\uAD0E\uAD10\uAD12\uAD13"],["8241","\uAD14\uAD15\uAD16\uAD17\uAD19\uAD1A\uAD1B\uAD1D\uAD1E\uAD1F\uAD21",7,"\uAD2A\uAD2B\uAD2E",5],["8261","\uAD36\uAD37\uAD39\uAD3A\uAD3B\uAD3D",6,"\uAD46\uAD48\uAD4A",5,"\uAD51\uAD52\uAD53\uAD55\uAD56\uAD57"],["8281","\uAD59",7,"\uAD62\uAD64",7,"\uAD6E\uAD6F\uAD71\uAD72\uAD77\uAD78\uAD79\uAD7A\uAD7E\uAD80\uAD83",4,"\uAD8A\uAD8B\uAD8D\uAD8E\uAD8F\uAD91",10,"\uAD9E",5,"\uADA5",17,"\uADB8",7,"\uADC2\uADC3\uADC5\uADC6\uADC7\uADC9",6,"\uADD2\uADD4",7,"\uADDD\uADDE\uADDF\uADE1\uADE2\uADE3\uADE5",18],["8341","\uADFA\uADFB\uADFD\uADFE\uAE02",5,"\uAE0A\uAE0C\uAE0E",5,"\uAE15",7],["8361","\uAE1D",18,"\uAE32\uAE33\uAE35\uAE36\uAE39\uAE3B\uAE3C"],["8381","\uAE3D\uAE3E\uAE3F\uAE42\uAE44\uAE47\uAE48\uAE49\uAE4B\uAE4F\uAE51\uAE52\uAE53\uAE55\uAE57",4,"\uAE5E\uAE62\uAE63\uAE64\uAE66\uAE67\uAE6A\uAE6B\uAE6D\uAE6E\uAE6F\uAE71",6,"\uAE7A\uAE7E",5,"\uAE86",5,"\uAE8D",46,"\uAEBF\uAEC1\uAEC2\uAEC3\uAEC5",6,"\uAECE\uAED2",5,"\uAEDA\uAEDB\uAEDD",8],["8441","\uAEE6\uAEE7\uAEE9\uAEEA\uAEEC\uAEEE",5,"\uAEF5\uAEF6\uAEF7\uAEF9\uAEFA\uAEFB\uAEFD",8],["8461","\uAF06\uAF09\uAF0A\uAF0B\uAF0C\uAF0E\uAF0F\uAF11",18],["8481","\uAF24",7,"\uAF2E\uAF2F\uAF31\uAF33\uAF35",6,"\uAF3E\uAF40\uAF44\uAF45\uAF46\uAF47\uAF4A",5,"\uAF51",10,"\uAF5E",5,"\uAF66",18,"\uAF7A",5,"\uAF81\uAF82\uAF83\uAF85\uAF86\uAF87\uAF89",6,"\uAF92\uAF93\uAF94\uAF96",5,"\uAF9D",26,"\uAFBA\uAFBB\uAFBD\uAFBE"],["8541","\uAFBF\uAFC1",5,"\uAFCA\uAFCC\uAFCF",4,"\uAFD5",6,"\uAFDD",4],["8561","\uAFE2",5,"\uAFEA",5,"\uAFF2\uAFF3\uAFF5\uAFF6\uAFF7\uAFF9",6,"\uB002\uB003"],["8581","\uB005",6,"\uB00D\uB00E\uB00F\uB011\uB012\uB013\uB015",6,"\uB01E",9,"\uB029",26,"\uB046\uB047\uB049\uB04B\uB04D\uB04F\uB050\uB051\uB052\uB056\uB058\uB05A\uB05B\uB05C\uB05E",29,"\uB07E\uB07F\uB081\uB082\uB083\uB085",6,"\uB08E\uB090\uB092",5,"\uB09B\uB09D\uB09E\uB0A3\uB0A4"],["8641","\uB0A5\uB0A6\uB0A7\uB0AA\uB0B0\uB0B2\uB0B6\uB0B7\uB0B9\uB0BA\uB0BB\uB0BD",6,"\uB0C6\uB0CA",5,"\uB0D2"],["8661","\uB0D3\uB0D5\uB0D6\uB0D7\uB0D9",6,"\uB0E1\uB0E2\uB0E3\uB0E4\uB0E6",10],["8681","\uB0F1",22,"\uB10A\uB10D\uB10E\uB10F\uB111\uB114\uB115\uB116\uB117\uB11A\uB11E",4,"\uB126\uB127\uB129\uB12A\uB12B\uB12D",6,"\uB136\uB13A",5,"\uB142\uB143\uB145\uB146\uB147\uB149",6,"\uB152\uB153\uB156\uB157\uB159\uB15A\uB15B\uB15D\uB15E\uB15F\uB161",22,"\uB17A\uB17B\uB17D\uB17E\uB17F\uB181\uB183",4,"\uB18A\uB18C\uB18E\uB18F\uB190\uB191\uB195\uB196\uB197\uB199\uB19A\uB19B\uB19D"],["8741","\uB19E",9,"\uB1A9",15],["8761","\uB1B9",18,"\uB1CD\uB1CE\uB1CF\uB1D1\uB1D2\uB1D3\uB1D5"],["8781","\uB1D6",5,"\uB1DE\uB1E0",7,"\uB1EA\uB1EB\uB1ED\uB1EE\uB1EF\uB1F1",7,"\uB1FA\uB1FC\uB1FE",5,"\uB206\uB207\uB209\uB20A\uB20D",6,"\uB216\uB218\uB21A",5,"\uB221",18,"\uB235",6,"\uB23D",26,"\uB259\uB25A\uB25B\uB25D\uB25E\uB25F\uB261",6,"\uB26A",4],["8841","\uB26F",4,"\uB276",5,"\uB27D",6,"\uB286\uB287\uB288\uB28A",4],["8861","\uB28F\uB292\uB293\uB295\uB296\uB297\uB29B",4,"\uB2A2\uB2A4\uB2A7\uB2A8\uB2A9\uB2AB\uB2AD\uB2AE\uB2AF\uB2B1\uB2B2\uB2B3\uB2B5\uB2B6\uB2B7"],["8881","\uB2B8",15,"\uB2CA\uB2CB\uB2CD\uB2CE\uB2CF\uB2D1\uB2D3",4,"\uB2DA\uB2DC\uB2DE\uB2DF\uB2E0\uB2E1\uB2E3\uB2E7\uB2E9\uB2EA\uB2F0\uB2F1\uB2F2\uB2F6\uB2FC\uB2FD\uB2FE\uB302\uB303\uB305\uB306\uB307\uB309",6,"\uB312\uB316",5,"\uB31D",54,"\uB357\uB359\uB35A\uB35D\uB360\uB361\uB362\uB363"],["8941","\uB366\uB368\uB36A\uB36C\uB36D\uB36F\uB372\uB373\uB375\uB376\uB377\uB379",6,"\uB382\uB386",5,"\uB38D"],["8961","\uB38E\uB38F\uB391\uB392\uB393\uB395",10,"\uB3A2",5,"\uB3A9\uB3AA\uB3AB\uB3AD"],["8981","\uB3AE",21,"\uB3C6\uB3C7\uB3C9\uB3CA\uB3CD\uB3CF\uB3D1\uB3D2\uB3D3\uB3D6\uB3D8\uB3DA\uB3DC\uB3DE\uB3DF\uB3E1\uB3E2\uB3E3\uB3E5\uB3E6\uB3E7\uB3E9",18,"\uB3FD",18,"\uB411",6,"\uB419\uB41A\uB41B\uB41D\uB41E\uB41F\uB421",6,"\uB42A\uB42C",7,"\uB435",15],["8a41","\uB445",10,"\uB452\uB453\uB455\uB456\uB457\uB459",6,"\uB462\uB464\uB466"],["8a61","\uB467",4,"\uB46D",18,"\uB481\uB482"],["8a81","\uB483",4,"\uB489",19,"\uB49E",5,"\uB4A5\uB4A6\uB4A7\uB4A9\uB4AA\uB4AB\uB4AD",7,"\uB4B6\uB4B8\uB4BA",5,"\uB4C1\uB4C2\uB4C3\uB4C5\uB4C6\uB4C7\uB4C9",6,"\uB4D1\uB4D2\uB4D3\uB4D4\uB4D6",5,"\uB4DE\uB4DF\uB4E1\uB4E2\uB4E5\uB4E7",4,"\uB4EE\uB4F0\uB4F2",5,"\uB4F9",26,"\uB516\uB517\uB519\uB51A\uB51D"],["8b41","\uB51E",5,"\uB526\uB52B",4,"\uB532\uB533\uB535\uB536\uB537\uB539",6,"\uB542\uB546"],["8b61","\uB547\uB548\uB549\uB54A\uB54E\uB54F\uB551\uB552\uB553\uB555",6,"\uB55E\uB562",8],["8b81","\uB56B",52,"\uB5A2\uB5A3\uB5A5\uB5A6\uB5A7\uB5A9\uB5AC\uB5AD\uB5AE\uB5AF\uB5B2\uB5B6",4,"\uB5BE\uB5BF\uB5C1\uB5C2\uB5C3\uB5C5",6,"\uB5CE\uB5D2",5,"\uB5D9",18,"\uB5ED",18],["8c41","\uB600",15,"\uB612\uB613\uB615\uB616\uB617\uB619",4],["8c61","\uB61E",6,"\uB626",5,"\uB62D",6,"\uB635",5],["8c81","\uB63B",12,"\uB649",26,"\uB665\uB666\uB667\uB669",50,"\uB69E\uB69F\uB6A1\uB6A2\uB6A3\uB6A5",5,"\uB6AD\uB6AE\uB6AF\uB6B0\uB6B2",16],["8d41","\uB6C3",16,"\uB6D5",8],["8d61","\uB6DE",17,"\uB6F1\uB6F2\uB6F3\uB6F5\uB6F6\uB6F7\uB6F9\uB6FA"],["8d81","\uB6FB",4,"\uB702\uB703\uB704\uB706",33,"\uB72A\uB72B\uB72D\uB72E\uB731",6,"\uB73A\uB73C",7,"\uB745\uB746\uB747\uB749\uB74A\uB74B\uB74D",6,"\uB756",9,"\uB761\uB762\uB763\uB765\uB766\uB767\uB769",6,"\uB772\uB774\uB776",5,"\uB77E\uB77F\uB781\uB782\uB783\uB785",6,"\uB78E\uB793\uB794\uB795\uB79A\uB79B\uB79D\uB79E"],["8e41","\uB79F\uB7A1",6,"\uB7AA\uB7AE",5,"\uB7B6\uB7B7\uB7B9",8],["8e61","\uB7C2",4,"\uB7C8\uB7CA",19],["8e81","\uB7DE",13,"\uB7EE\uB7EF\uB7F1\uB7F2\uB7F3\uB7F5",6,"\uB7FE\uB802",4,"\uB80A\uB80B\uB80D\uB80E\uB80F\uB811",6,"\uB81A\uB81C\uB81E",5,"\uB826\uB827\uB829\uB82A\uB82B\uB82D",6,"\uB836\uB83A",5,"\uB841\uB842\uB843\uB845",11,"\uB852\uB854",7,"\uB85E\uB85F\uB861\uB862\uB863\uB865",6,"\uB86E\uB870\uB872",5,"\uB879\uB87A\uB87B\uB87D",7],["8f41","\uB885",7,"\uB88E",17],["8f61","\uB8A0",7,"\uB8A9",6,"\uB8B1\uB8B2\uB8B3\uB8B5\uB8B6\uB8B7\uB8B9",4],["8f81","\uB8BE\uB8BF\uB8C2\uB8C4\uB8C6",5,"\uB8CD\uB8CE\uB8CF\uB8D1\uB8D2\uB8D3\uB8D5",7,"\uB8DE\uB8E0\uB8E2",5,"\uB8EA\uB8EB\uB8ED\uB8EE\uB8EF\uB8F1",6,"\uB8FA\uB8FC\uB8FE",5,"\uB905",18,"\uB919",6,"\uB921",26,"\uB93E\uB93F\uB941\uB942\uB943\uB945",6,"\uB94D\uB94E\uB950\uB952",5],["9041","\uB95A\uB95B\uB95D\uB95E\uB95F\uB961",6,"\uB96A\uB96C\uB96E",5,"\uB976\uB977\uB979\uB97A\uB97B\uB97D"],["9061","\uB97E",5,"\uB986\uB988\uB98B\uB98C\uB98F",15],["9081","\uB99F",12,"\uB9AE\uB9AF\uB9B1\uB9B2\uB9B3\uB9B5",6,"\uB9BE\uB9C0\uB9C2",5,"\uB9CA\uB9CB\uB9CD\uB9D3",4,"\uB9DA\uB9DC\uB9DF\uB9E0\uB9E2\uB9E6\uB9E7\uB9E9\uB9EA\uB9EB\uB9ED",6,"\uB9F6\uB9FB",4,"\uBA02",5,"\uBA09",11,"\uBA16",33,"\uBA3A\uBA3B\uBA3D\uBA3E\uBA3F\uBA41\uBA43\uBA44\uBA45\uBA46"],["9141","\uBA47\uBA4A\uBA4C\uBA4F\uBA50\uBA51\uBA52\uBA56\uBA57\uBA59\uBA5A\uBA5B\uBA5D",6,"\uBA66\uBA6A",5],["9161","\uBA72\uBA73\uBA75\uBA76\uBA77\uBA79",9,"\uBA86\uBA88\uBA89\uBA8A\uBA8B\uBA8D",5],["9181","\uBA93",20,"\uBAAA\uBAAD\uBAAE\uBAAF\uBAB1\uBAB3",4,"\uBABA\uBABC\uBABE",5,"\uBAC5\uBAC6\uBAC7\uBAC9",14,"\uBADA",33,"\uBAFD\uBAFE\uBAFF\uBB01\uBB02\uBB03\uBB05",7,"\uBB0E\uBB10\uBB12",5,"\uBB19\uBB1A\uBB1B\uBB1D\uBB1E\uBB1F\uBB21",6],["9241","\uBB28\uBB2A\uBB2C",7,"\uBB37\uBB39\uBB3A\uBB3F",4,"\uBB46\uBB48\uBB4A\uBB4B\uBB4C\uBB4E\uBB51\uBB52"],["9261","\uBB53\uBB55\uBB56\uBB57\uBB59",7,"\uBB62\uBB64",7,"\uBB6D",4],["9281","\uBB72",21,"\uBB89\uBB8A\uBB8B\uBB8D\uBB8E\uBB8F\uBB91",18,"\uBBA5\uBBA6\uBBA7\uBBA9\uBBAA\uBBAB\uBBAD",6,"\uBBB5\uBBB6\uBBB8",7,"\uBBC1\uBBC2\uBBC3\uBBC5\uBBC6\uBBC7\uBBC9",6,"\uBBD1\uBBD2\uBBD4",35,"\uBBFA\uBBFB\uBBFD\uBBFE\uBC01"],["9341","\uBC03",4,"\uBC0A\uBC0E\uBC10\uBC12\uBC13\uBC19\uBC1A\uBC20\uBC21\uBC22\uBC23\uBC26\uBC28\uBC2A\uBC2B\uBC2C\uBC2E\uBC2F\uBC32\uBC33\uBC35"],["9361","\uBC36\uBC37\uBC39",6,"\uBC42\uBC46\uBC47\uBC48\uBC4A\uBC4B\uBC4E\uBC4F\uBC51",8],["9381","\uBC5A\uBC5B\uBC5C\uBC5E",37,"\uBC86\uBC87\uBC89\uBC8A\uBC8D\uBC8F",4,"\uBC96\uBC98\uBC9B",4,"\uBCA2\uBCA3\uBCA5\uBCA6\uBCA9",6,"\uBCB2\uBCB6",5,"\uBCBE\uBCBF\uBCC1\uBCC2\uBCC3\uBCC5",7,"\uBCCE\uBCD2\uBCD3\uBCD4\uBCD6\uBCD7\uBCD9\uBCDA\uBCDB\uBCDD",22,"\uBCF7\uBCF9\uBCFA\uBCFB\uBCFD"],["9441","\uBCFE",5,"\uBD06\uBD08\uBD0A",5,"\uBD11\uBD12\uBD13\uBD15",8],["9461","\uBD1E",5,"\uBD25",6,"\uBD2D",12],["9481","\uBD3A",5,"\uBD41",6,"\uBD4A\uBD4B\uBD4D\uBD4E\uBD4F\uBD51",6,"\uBD5A",9,"\uBD65\uBD66\uBD67\uBD69",22,"\uBD82\uBD83\uBD85\uBD86\uBD8B",4,"\uBD92\uBD94\uBD96\uBD97\uBD98\uBD9B\uBD9D",6,"\uBDA5",10,"\uBDB1",6,"\uBDB9",24],["9541","\uBDD2\uBDD3\uBDD6\uBDD7\uBDD9\uBDDA\uBDDB\uBDDD",11,"\uBDEA",5,"\uBDF1"],["9561","\uBDF2\uBDF3\uBDF5\uBDF6\uBDF7\uBDF9",6,"\uBE01\uBE02\uBE04\uBE06",5,"\uBE0E\uBE0F\uBE11\uBE12\uBE13"],["9581","\uBE15",6,"\uBE1E\uBE20",35,"\uBE46\uBE47\uBE49\uBE4A\uBE4B\uBE4D\uBE4F",4,"\uBE56\uBE58\uBE5C\uBE5D\uBE5E\uBE5F\uBE62\uBE63\uBE65\uBE66\uBE67\uBE69\uBE6B",4,"\uBE72\uBE76",4,"\uBE7E\uBE7F\uBE81\uBE82\uBE83\uBE85",6,"\uBE8E\uBE92",5,"\uBE9A",13,"\uBEA9",14],["9641","\uBEB8",23,"\uBED2\uBED3"],["9661","\uBED5\uBED6\uBED9",6,"\uBEE1\uBEE2\uBEE6",5,"\uBEED",8],["9681","\uBEF6",10,"\uBF02",5,"\uBF0A",13,"\uBF1A\uBF1E",33,"\uBF42\uBF43\uBF45\uBF46\uBF47\uBF49",6,"\uBF52\uBF53\uBF54\uBF56",44],["9741","\uBF83",16,"\uBF95",8],["9761","\uBF9E",17,"\uBFB1",7],["9781","\uBFB9",11,"\uBFC6",5,"\uBFCE\uBFCF\uBFD1\uBFD2\uBFD3\uBFD5",6,"\uBFDD\uBFDE\uBFE0\uBFE2",89,"\uC03D\uC03E\uC03F"],["9841","\uC040",16,"\uC052",5,"\uC059\uC05A\uC05B"],["9861","\uC05D\uC05E\uC05F\uC061",6,"\uC06A",15],["9881","\uC07A",21,"\uC092\uC093\uC095\uC096\uC097\uC099",6,"\uC0A2\uC0A4\uC0A6",5,"\uC0AE\uC0B1\uC0B2\uC0B7",4,"\uC0BE\uC0C2\uC0C3\uC0C4\uC0C6\uC0C7\uC0CA\uC0CB\uC0CD\uC0CE\uC0CF\uC0D1",6,"\uC0DA\uC0DE",5,"\uC0E6\uC0E7\uC0E9\uC0EA\uC0EB\uC0ED",6,"\uC0F6\uC0F8\uC0FA",5,"\uC101\uC102\uC103\uC105\uC106\uC107\uC109",6,"\uC111\uC112\uC113\uC114\uC116",5,"\uC121\uC122\uC125\uC128\uC129\uC12A\uC12B\uC12E"],["9941","\uC132\uC133\uC134\uC135\uC137\uC13A\uC13B\uC13D\uC13E\uC13F\uC141",6,"\uC14A\uC14E",5,"\uC156\uC157"],["9961","\uC159\uC15A\uC15B\uC15D",6,"\uC166\uC16A",5,"\uC171\uC172\uC173\uC175\uC176\uC177\uC179\uC17A\uC17B"],["9981","\uC17C",8,"\uC186",5,"\uC18F\uC191\uC192\uC193\uC195\uC197",4,"\uC19E\uC1A0\uC1A2\uC1A3\uC1A4\uC1A6\uC1A7\uC1AA\uC1AB\uC1AD\uC1AE\uC1AF\uC1B1",11,"\uC1BE",5,"\uC1C5\uC1C6\uC1C7\uC1C9\uC1CA\uC1CB\uC1CD",6,"\uC1D5\uC1D6\uC1D9",6,"\uC1E1\uC1E2\uC1E3\uC1E5\uC1E6\uC1E7\uC1E9",6,"\uC1F2\uC1F4",7,"\uC1FE\uC1FF\uC201\uC202\uC203\uC205",6,"\uC20E\uC210\uC212",5,"\uC21A\uC21B\uC21D\uC21E\uC221\uC222\uC223"],["9a41","\uC224\uC225\uC226\uC227\uC22A\uC22C\uC22E\uC230\uC233\uC235",16],["9a61","\uC246\uC247\uC249",6,"\uC252\uC253\uC255\uC256\uC257\uC259",6,"\uC261\uC262\uC263\uC264\uC266"],["9a81","\uC267",4,"\uC26E\uC26F\uC271\uC272\uC273\uC275",6,"\uC27E\uC280\uC282",5,"\uC28A",5,"\uC291",6,"\uC299\uC29A\uC29C\uC29E",5,"\uC2A6\uC2A7\uC2A9\uC2AA\uC2AB\uC2AE",5,"\uC2B6\uC2B8\uC2BA",33,"\uC2DE\uC2DF\uC2E1\uC2E2\uC2E5",5,"\uC2EE\uC2F0\uC2F2\uC2F3\uC2F4\uC2F5\uC2F7\uC2FA\uC2FD\uC2FE\uC2FF\uC301",6,"\uC30A\uC30B\uC30E\uC30F"],["9b41","\uC310\uC311\uC312\uC316\uC317\uC319\uC31A\uC31B\uC31D",6,"\uC326\uC327\uC32A",8],["9b61","\uC333",17,"\uC346",7],["9b81","\uC34E",25,"\uC36A\uC36B\uC36D\uC36E\uC36F\uC371\uC373",4,"\uC37A\uC37B\uC37E",5,"\uC385\uC386\uC387\uC389\uC38A\uC38B\uC38D",50,"\uC3C1",22,"\uC3DA"],["9c41","\uC3DB\uC3DD\uC3DE\uC3E1\uC3E3",4,"\uC3EA\uC3EB\uC3EC\uC3EE",5,"\uC3F6\uC3F7\uC3F9",5],["9c61","\uC3FF",8,"\uC409",6,"\uC411",9],["9c81","\uC41B",8,"\uC425",6,"\uC42D\uC42E\uC42F\uC431\uC432\uC433\uC435",6,"\uC43E",9,"\uC449",26,"\uC466\uC467\uC469\uC46A\uC46B\uC46D",6,"\uC476\uC477\uC478\uC47A",5,"\uC481",18,"\uC495",6,"\uC49D",12],["9d41","\uC4AA",13,"\uC4B9\uC4BA\uC4BB\uC4BD",8],["9d61","\uC4C6",25],["9d81","\uC4E0",8,"\uC4EA",5,"\uC4F2\uC4F3\uC4F5\uC4F6\uC4F7\uC4F9\uC4FB\uC4FC\uC4FD\uC4FE\uC502",9,"\uC50D\uC50E\uC50F\uC511\uC512\uC513\uC515",6,"\uC51D",10,"\uC52A\uC52B\uC52D\uC52E\uC52F\uC531",6,"\uC53A\uC53C\uC53E",5,"\uC546\uC547\uC54B\uC54F\uC550\uC551\uC552\uC556\uC55A\uC55B\uC55C\uC55F\uC562\uC563\uC565\uC566\uC567\uC569",6,"\uC572\uC576",5,"\uC57E\uC57F\uC581\uC582\uC583\uC585\uC586\uC588\uC589\uC58A\uC58B\uC58E\uC590\uC592\uC593\uC594"],["9e41","\uC596\uC599\uC59A\uC59B\uC59D\uC59E\uC59F\uC5A1",7,"\uC5AA",9,"\uC5B6"],["9e61","\uC5B7\uC5BA\uC5BF",4,"\uC5CB\uC5CD\uC5CF\uC5D2\uC5D3\uC5D5\uC5D6\uC5D7\uC5D9",6,"\uC5E2\uC5E4\uC5E6\uC5E7"],["9e81","\uC5E8\uC5E9\uC5EA\uC5EB\uC5EF\uC5F1\uC5F2\uC5F3\uC5F5\uC5F8\uC5F9\uC5FA\uC5FB\uC602\uC603\uC604\uC609\uC60A\uC60B\uC60D\uC60E\uC60F\uC611",6,"\uC61A\uC61D",6,"\uC626\uC627\uC629\uC62A\uC62B\uC62F\uC631\uC632\uC636\uC638\uC63A\uC63C\uC63D\uC63E\uC63F\uC642\uC643\uC645\uC646\uC647\uC649",6,"\uC652\uC656",5,"\uC65E\uC65F\uC661",10,"\uC66D\uC66E\uC670\uC672",5,"\uC67A\uC67B\uC67D\uC67E\uC67F\uC681",6,"\uC68A\uC68C\uC68E",5,"\uC696\uC697\uC699\uC69A\uC69B\uC69D",6,"\uC6A6"],["9f41","\uC6A8\uC6AA",5,"\uC6B2\uC6B3\uC6B5\uC6B6\uC6B7\uC6BB",4,"\uC6C2\uC6C4\uC6C6",5,"\uC6CE"],["9f61","\uC6CF\uC6D1\uC6D2\uC6D3\uC6D5",6,"\uC6DE\uC6DF\uC6E2",5,"\uC6EA\uC6EB\uC6ED\uC6EE\uC6EF\uC6F1\uC6F2"],["9f81","\uC6F3",4,"\uC6FA\uC6FB\uC6FC\uC6FE",5,"\uC706\uC707\uC709\uC70A\uC70B\uC70D",6,"\uC716\uC718\uC71A",5,"\uC722\uC723\uC725\uC726\uC727\uC729",6,"\uC732\uC734\uC736\uC738\uC739\uC73A\uC73B\uC73E\uC73F\uC741\uC742\uC743\uC745",4,"\uC74B\uC74E\uC750\uC759\uC75A\uC75B\uC75D\uC75E\uC75F\uC761",6,"\uC769\uC76A\uC76C",7,"\uC776\uC777\uC779\uC77A\uC77B\uC77F\uC780\uC781\uC782\uC786\uC78B\uC78C\uC78D\uC78F\uC792\uC793\uC795\uC799\uC79B",4,"\uC7A2\uC7A7",4,"\uC7AE\uC7AF\uC7B1\uC7B2\uC7B3\uC7B5\uC7B6\uC7B7"],["a041","\uC7B8\uC7B9\uC7BA\uC7BB\uC7BE\uC7C2",5,"\uC7CA\uC7CB\uC7CD\uC7CF\uC7D1",6,"\uC7D9\uC7DA\uC7DB\uC7DC"],["a061","\uC7DE",5,"\uC7E5\uC7E6\uC7E7\uC7E9\uC7EA\uC7EB\uC7ED",13],["a081","\uC7FB",4,"\uC802\uC803\uC805\uC806\uC807\uC809\uC80B",4,"\uC812\uC814\uC817",4,"\uC81E\uC81F\uC821\uC822\uC823\uC825",6,"\uC82E\uC830\uC832",5,"\uC839\uC83A\uC83B\uC83D\uC83E\uC83F\uC841",6,"\uC84A\uC84B\uC84E",5,"\uC855",26,"\uC872\uC873\uC875\uC876\uC877\uC879\uC87B",4,"\uC882\uC884\uC888\uC889\uC88A\uC88E",5,"\uC895",7,"\uC89E\uC8A0\uC8A2\uC8A3\uC8A4"],["a141","\uC8A5\uC8A6\uC8A7\uC8A9",18,"\uC8BE\uC8BF\uC8C0\uC8C1"],["a161","\uC8C2\uC8C3\uC8C5\uC8C6\uC8C7\uC8C9\uC8CA\uC8CB\uC8CD",6,"\uC8D6\uC8D8\uC8DA",5,"\uC8E2\uC8E3\uC8E5"],["a181","\uC8E6",14,"\uC8F6",5,"\uC8FE\uC8FF\uC901\uC902\uC903\uC907",4,"\uC90E\u3000\u3001\u3002\xB7\u2025\u2026\xA8\u3003\xAD\u2015\u2225\uFF3C\u223C\u2018\u2019\u201C\u201D\u3014\u3015\u3008",9,"\xB1\xD7\xF7\u2260\u2264\u2265\u221E\u2234\xB0\u2032\u2033\u2103\u212B\uFFE0\uFFE1\uFFE5\u2642\u2640\u2220\u22A5\u2312\u2202\u2207\u2261\u2252\xA7\u203B\u2606\u2605\u25CB\u25CF\u25CE\u25C7\u25C6\u25A1\u25A0\u25B3\u25B2\u25BD\u25BC\u2192\u2190\u2191\u2193\u2194\u3013\u226A\u226B\u221A\u223D\u221D\u2235\u222B\u222C\u2208\u220B\u2286\u2287\u2282\u2283\u222A\u2229\u2227\u2228\uFFE2"],["a241","\uC910\uC912",5,"\uC919",18],["a261","\uC92D",6,"\uC935",18],["a281","\uC948",7,"\uC952\uC953\uC955\uC956\uC957\uC959",6,"\uC962\uC964",7,"\uC96D\uC96E\uC96F\u21D2\u21D4\u2200\u2203\xB4\uFF5E\u02C7\u02D8\u02DD\u02DA\u02D9\xB8\u02DB\xA1\xBF\u02D0\u222E\u2211\u220F\xA4\u2109\u2030\u25C1\u25C0\u25B7\u25B6\u2664\u2660\u2661\u2665\u2667\u2663\u2299\u25C8\u25A3\u25D0\u25D1\u2592\u25A4\u25A5\u25A8\u25A7\u25A6\u25A9\u2668\u260F\u260E\u261C\u261E\xB6\u2020\u2021\u2195\u2197\u2199\u2196\u2198\u266D\u2669\u266A\u266C\u327F\u321C\u2116\u33C7\u2122\u33C2\u33D8\u2121\u20AC\xAE"],["a341","\uC971\uC972\uC973\uC975",6,"\uC97D",10,"\uC98A\uC98B\uC98D\uC98E\uC98F"],["a361","\uC991",6,"\uC99A\uC99C\uC99E",16],["a381","\uC9AF",16,"\uC9C2\uC9C3\uC9C5\uC9C6\uC9C9\uC9CB",4,"\uC9D2\uC9D4\uC9D7\uC9D8\uC9DB\uFF01",58,"\uFFE6\uFF3D",32,"\uFFE3"],["a441","\uC9DE\uC9DF\uC9E1\uC9E3\uC9E5\uC9E6\uC9E8\uC9E9\uC9EA\uC9EB\uC9EE\uC9F2",5,"\uC9FA\uC9FB\uC9FD\uC9FE\uC9FF\uCA01\uCA02\uCA03\uCA04"],["a461","\uCA05\uCA06\uCA07\uCA0A\uCA0E",5,"\uCA15\uCA16\uCA17\uCA19",12],["a481","\uCA26\uCA27\uCA28\uCA2A",28,"\u3131",93],["a541","\uCA47",4,"\uCA4E\uCA4F\uCA51\uCA52\uCA53\uCA55",6,"\uCA5E\uCA62",5,"\uCA69\uCA6A"],["a561","\uCA6B",17,"\uCA7E",5,"\uCA85\uCA86"],["a581","\uCA87",16,"\uCA99",14,"\u2170",9],["a5b0","\u2160",9],["a5c1","\u0391",16,"\u03A3",6],["a5e1","\u03B1",16,"\u03C3",6],["a641","\uCAA8",19,"\uCABE\uCABF\uCAC1\uCAC2\uCAC3\uCAC5"],["a661","\uCAC6",5,"\uCACE\uCAD0\uCAD2\uCAD4\uCAD5\uCAD6\uCAD7\uCADA",5,"\uCAE1",6],["a681","\uCAE8\uCAE9\uCAEA\uCAEB\uCAED",6,"\uCAF5",18,"\uCB09\uCB0A\u2500\u2502\u250C\u2510\u2518\u2514\u251C\u252C\u2524\u2534\u253C\u2501\u2503\u250F\u2513\u251B\u2517\u2523\u2533\u252B\u253B\u254B\u2520\u252F\u2528\u2537\u253F\u251D\u2530\u2525\u2538\u2542\u2512\u2511\u251A\u2519\u2516\u2515\u250E\u250D\u251E\u251F\u2521\u2522\u2526\u2527\u2529\u252A\u252D\u252E\u2531\u2532\u2535\u2536\u2539\u253A\u253D\u253E\u2540\u2541\u2543",7],["a741","\uCB0B",4,"\uCB11\uCB12\uCB13\uCB15\uCB16\uCB17\uCB19",6,"\uCB22",7],["a761","\uCB2A",22,"\uCB42\uCB43\uCB44"],["a781","\uCB45\uCB46\uCB47\uCB4A\uCB4B\uCB4D\uCB4E\uCB4F\uCB51",6,"\uCB5A\uCB5B\uCB5C\uCB5E",5,"\uCB65",7,"\u3395\u3396\u3397\u2113\u3398\u33C4\u33A3\u33A4\u33A5\u33A6\u3399",9,"\u33CA\u338D\u338E\u338F\u33CF\u3388\u3389\u33C8\u33A7\u33A8\u33B0",9,"\u3380",4,"\u33BA",5,"\u3390",4,"\u2126\u33C0\u33C1\u338A\u338B\u338C\u33D6\u33C5\u33AD\u33AE\u33AF\u33DB\u33A9\u33AA\u33AB\u33AC\u33DD\u33D0\u33D3\u33C3\u33C9\u33DC\u33C6"],["a841","\uCB6D",10,"\uCB7A",14],["a861","\uCB89",18,"\uCB9D",6],["a881","\uCBA4",19,"\uCBB9",11,"\xC6\xD0\xAA\u0126"],["a8a6","\u0132"],["a8a8","\u013F\u0141\xD8\u0152\xBA\xDE\u0166\u014A"],["a8b1","\u3260",27,"\u24D0",25,"\u2460",14,"\xBD\u2153\u2154\xBC\xBE\u215B\u215C\u215D\u215E"],["a941","\uCBC5",14,"\uCBD5",10],["a961","\uCBE0\uCBE1\uCBE2\uCBE3\uCBE5\uCBE6\uCBE8\uCBEA",18],["a981","\uCBFD",14,"\uCC0E\uCC0F\uCC11\uCC12\uCC13\uCC15",6,"\uCC1E\uCC1F\uCC20\uCC23\uCC24\xE6\u0111\xF0\u0127\u0131\u0133\u0138\u0140\u0142\xF8\u0153\xDF\xFE\u0167\u014B\u0149\u3200",27,"\u249C",25,"\u2474",14,"\xB9\xB2\xB3\u2074\u207F\u2081\u2082\u2083\u2084"],["aa41","\uCC25\uCC26\uCC2A\uCC2B\uCC2D\uCC2F\uCC31",6,"\uCC3A\uCC3F",4,"\uCC46\uCC47\uCC49\uCC4A\uCC4B\uCC4D\uCC4E"],["aa61","\uCC4F",4,"\uCC56\uCC5A",5,"\uCC61\uCC62\uCC63\uCC65\uCC67\uCC69",6,"\uCC71\uCC72"],["aa81","\uCC73\uCC74\uCC76",29,"\u3041",82],["ab41","\uCC94\uCC95\uCC96\uCC97\uCC9A\uCC9B\uCC9D\uCC9E\uCC9F\uCCA1",6,"\uCCAA\uCCAE",5,"\uCCB6\uCCB7\uCCB9"],["ab61","\uCCBA\uCCBB\uCCBD",6,"\uCCC6\uCCC8\uCCCA",5,"\uCCD1\uCCD2\uCCD3\uCCD5",5],["ab81","\uCCDB",8,"\uCCE5",6,"\uCCED\uCCEE\uCCEF\uCCF1",12,"\u30A1",85],["ac41","\uCCFE\uCCFF\uCD00\uCD02",5,"\uCD0A\uCD0B\uCD0D\uCD0E\uCD0F\uCD11",6,"\uCD1A\uCD1C\uCD1E\uCD1F\uCD20"],["ac61","\uCD21\uCD22\uCD23\uCD25\uCD26\uCD27\uCD29\uCD2A\uCD2B\uCD2D",11,"\uCD3A",4],["ac81","\uCD3F",28,"\uCD5D\uCD5E\uCD5F\u0410",5,"\u0401\u0416",25],["acd1","\u0430",5,"\u0451\u0436",25],["ad41","\uCD61\uCD62\uCD63\uCD65",6,"\uCD6E\uCD70\uCD72",5,"\uCD79",7],["ad61","\uCD81",6,"\uCD89",10,"\uCD96\uCD97\uCD99\uCD9A\uCD9B\uCD9D\uCD9E\uCD9F"],["ad81","\uCDA0\uCDA1\uCDA2\uCDA3\uCDA6\uCDA8\uCDAA",5,"\uCDB1",18,"\uCDC5"],["ae41","\uCDC6",5,"\uCDCD\uCDCE\uCDCF\uCDD1",16],["ae61","\uCDE2",5,"\uCDE9\uCDEA\uCDEB\uCDED\uCDEE\uCDEF\uCDF1",6,"\uCDFA\uCDFC\uCDFE",4],["ae81","\uCE03\uCE05\uCE06\uCE07\uCE09\uCE0A\uCE0B\uCE0D",6,"\uCE15\uCE16\uCE17\uCE18\uCE1A",5,"\uCE22\uCE23\uCE25\uCE26\uCE27\uCE29\uCE2A\uCE2B"],["af41","\uCE2C\uCE2D\uCE2E\uCE2F\uCE32\uCE34\uCE36",19],["af61","\uCE4A",13,"\uCE5A\uCE5B\uCE5D\uCE5E\uCE62",5,"\uCE6A\uCE6C"],["af81","\uCE6E",5,"\uCE76\uCE77\uCE79\uCE7A\uCE7B\uCE7D",6,"\uCE86\uCE88\uCE8A",5,"\uCE92\uCE93\uCE95\uCE96\uCE97\uCE99"],["b041","\uCE9A",5,"\uCEA2\uCEA6",5,"\uCEAE",12],["b061","\uCEBB",5,"\uCEC2",19],["b081","\uCED6",13,"\uCEE6\uCEE7\uCEE9\uCEEA\uCEED",6,"\uCEF6\uCEFA",5,"\uAC00\uAC01\uAC04\uAC07\uAC08\uAC09\uAC0A\uAC10",7,"\uAC19",4,"\uAC20\uAC24\uAC2C\uAC2D\uAC2F\uAC30\uAC31\uAC38\uAC39\uAC3C\uAC40\uAC4B\uAC4D\uAC54\uAC58\uAC5C\uAC70\uAC71\uAC74\uAC77\uAC78\uAC7A\uAC80\uAC81\uAC83\uAC84\uAC85\uAC86\uAC89\uAC8A\uAC8B\uAC8C\uAC90\uAC94\uAC9C\uAC9D\uAC9F\uACA0\uACA1\uACA8\uACA9\uACAA\uACAC\uACAF\uACB0\uACB8\uACB9\uACBB\uACBC\uACBD\uACC1\uACC4\uACC8\uACCC\uACD5\uACD7\uACE0\uACE1\uACE4\uACE7\uACE8\uACEA\uACEC\uACEF\uACF0\uACF1\uACF3\uACF5\uACF6\uACFC\uACFD\uAD00\uAD04\uAD06"],["b141","\uCF02\uCF03\uCF05\uCF06\uCF07\uCF09",6,"\uCF12\uCF14\uCF16",5,"\uCF1D\uCF1E\uCF1F\uCF21\uCF22\uCF23"],["b161","\uCF25",6,"\uCF2E\uCF32",5,"\uCF39",11],["b181","\uCF45",14,"\uCF56\uCF57\uCF59\uCF5A\uCF5B\uCF5D",6,"\uCF66\uCF68\uCF6A\uCF6B\uCF6C\uAD0C\uAD0D\uAD0F\uAD11\uAD18\uAD1C\uAD20\uAD29\uAD2C\uAD2D\uAD34\uAD35\uAD38\uAD3C\uAD44\uAD45\uAD47\uAD49\uAD50\uAD54\uAD58\uAD61\uAD63\uAD6C\uAD6D\uAD70\uAD73\uAD74\uAD75\uAD76\uAD7B\uAD7C\uAD7D\uAD7F\uAD81\uAD82\uAD88\uAD89\uAD8C\uAD90\uAD9C\uAD9D\uADA4\uADB7\uADC0\uADC1\uADC4\uADC8\uADD0\uADD1\uADD3\uADDC\uADE0\uADE4\uADF8\uADF9\uADFC\uADFF\uAE00\uAE01\uAE08\uAE09\uAE0B\uAE0D\uAE14\uAE30\uAE31\uAE34\uAE37\uAE38\uAE3A\uAE40\uAE41\uAE43\uAE45\uAE46\uAE4A\uAE4C\uAE4D\uAE4E\uAE50\uAE54\uAE56\uAE5C\uAE5D\uAE5F\uAE60\uAE61\uAE65\uAE68\uAE69\uAE6C\uAE70\uAE78"],["b241","\uCF6D\uCF6E\uCF6F\uCF72\uCF73\uCF75\uCF76\uCF77\uCF79",6,"\uCF81\uCF82\uCF83\uCF84\uCF86",5,"\uCF8D"],["b261","\uCF8E",18,"\uCFA2",5,"\uCFA9"],["b281","\uCFAA",5,"\uCFB1",18,"\uCFC5",6,"\uAE79\uAE7B\uAE7C\uAE7D\uAE84\uAE85\uAE8C\uAEBC\uAEBD\uAEBE\uAEC0\uAEC4\uAECC\uAECD\uAECF\uAED0\uAED1\uAED8\uAED9\uAEDC\uAEE8\uAEEB\uAEED\uAEF4\uAEF8\uAEFC\uAF07\uAF08\uAF0D\uAF10\uAF2C\uAF2D\uAF30\uAF32\uAF34\uAF3C\uAF3D\uAF3F\uAF41\uAF42\uAF43\uAF48\uAF49\uAF50\uAF5C\uAF5D\uAF64\uAF65\uAF79\uAF80\uAF84\uAF88\uAF90\uAF91\uAF95\uAF9C\uAFB8\uAFB9\uAFBC\uAFC0\uAFC7\uAFC8\uAFC9\uAFCB\uAFCD\uAFCE\uAFD4\uAFDC\uAFE8\uAFE9\uAFF0\uAFF1\uAFF4\uAFF8\uB000\uB001\uB004\uB00C\uB010\uB014\uB01C\uB01D\uB028\uB044\uB045\uB048\uB04A\uB04C\uB04E\uB053\uB054\uB055\uB057\uB059"],["b341","\uCFCC",19,"\uCFE2\uCFE3\uCFE5\uCFE6\uCFE7\uCFE9"],["b361","\uCFEA",5,"\uCFF2\uCFF4\uCFF6",5,"\uCFFD\uCFFE\uCFFF\uD001\uD002\uD003\uD005",5],["b381","\uD00B",5,"\uD012",5,"\uD019",19,"\uB05D\uB07C\uB07D\uB080\uB084\uB08C\uB08D\uB08F\uB091\uB098\uB099\uB09A\uB09C\uB09F\uB0A0\uB0A1\uB0A2\uB0A8\uB0A9\uB0AB",4,"\uB0B1\uB0B3\uB0B4\uB0B5\uB0B8\uB0BC\uB0C4\uB0C5\uB0C7\uB0C8\uB0C9\uB0D0\uB0D1\uB0D4\uB0D8\uB0E0\uB0E5\uB108\uB109\uB10B\uB10C\uB110\uB112\uB113\uB118\uB119\uB11B\uB11C\uB11D\uB123\uB124\uB125\uB128\uB12C\uB134\uB135\uB137\uB138\uB139\uB140\uB141\uB144\uB148\uB150\uB151\uB154\uB155\uB158\uB15C\uB160\uB178\uB179\uB17C\uB180\uB182\uB188\uB189\uB18B\uB18D\uB192\uB193\uB194\uB198\uB19C\uB1A8\uB1CC\uB1D0\uB1D4\uB1DC\uB1DD"],["b441","\uD02E",5,"\uD036\uD037\uD039\uD03A\uD03B\uD03D",6,"\uD046\uD048\uD04A",5],["b461","\uD051\uD052\uD053\uD055\uD056\uD057\uD059",6,"\uD061",10,"\uD06E\uD06F"],["b481","\uD071\uD072\uD073\uD075",6,"\uD07E\uD07F\uD080\uD082",18,"\uB1DF\uB1E8\uB1E9\uB1EC\uB1F0\uB1F9\uB1FB\uB1FD\uB204\uB205\uB208\uB20B\uB20C\uB214\uB215\uB217\uB219\uB220\uB234\uB23C\uB258\uB25C\uB260\uB268\uB269\uB274\uB275\uB27C\uB284\uB285\uB289\uB290\uB291\uB294\uB298\uB299\uB29A\uB2A0\uB2A1\uB2A3\uB2A5\uB2A6\uB2AA\uB2AC\uB2B0\uB2B4\uB2C8\uB2C9\uB2CC\uB2D0\uB2D2\uB2D8\uB2D9\uB2DB\uB2DD\uB2E2\uB2E4\uB2E5\uB2E6\uB2E8\uB2EB",4,"\uB2F3\uB2F4\uB2F5\uB2F7",4,"\uB2FF\uB300\uB301\uB304\uB308\uB310\uB311\uB313\uB314\uB315\uB31C\uB354\uB355\uB356\uB358\uB35B\uB35C\uB35E\uB35F\uB364\uB365"],["b541","\uD095",14,"\uD0A6\uD0A7\uD0A9\uD0AA\uD0AB\uD0AD",5],["b561","\uD0B3\uD0B6\uD0B8\uD0BA",5,"\uD0C2\uD0C3\uD0C5\uD0C6\uD0C7\uD0CA",5,"\uD0D2\uD0D6",4],["b581","\uD0DB\uD0DE\uD0DF\uD0E1\uD0E2\uD0E3\uD0E5",6,"\uD0EE\uD0F2",5,"\uD0F9",11,"\uB367\uB369\uB36B\uB36E\uB370\uB371\uB374\uB378\uB380\uB381\uB383\uB384\uB385\uB38C\uB390\uB394\uB3A0\uB3A1\uB3A8\uB3AC\uB3C4\uB3C5\uB3C8\uB3CB\uB3CC\uB3CE\uB3D0\uB3D4\uB3D5\uB3D7\uB3D9\uB3DB\uB3DD\uB3E0\uB3E4\uB3E8\uB3FC\uB410\uB418\uB41C\uB420\uB428\uB429\uB42B\uB434\uB450\uB451\uB454\uB458\uB460\uB461\uB463\uB465\uB46C\uB480\uB488\uB49D\uB4A4\uB4A8\uB4AC\uB4B5\uB4B7\uB4B9\uB4C0\uB4C4\uB4C8\uB4D0\uB4D5\uB4DC\uB4DD\uB4E0\uB4E3\uB4E4\uB4E6\uB4EC\uB4ED\uB4EF\uB4F1\uB4F8\uB514\uB515\uB518\uB51B\uB51C\uB524\uB525\uB527\uB528\uB529\uB52A\uB530\uB531\uB534\uB538"],["b641","\uD105",7,"\uD10E",17],["b661","\uD120",15,"\uD132\uD133\uD135\uD136\uD137\uD139\uD13B\uD13C\uD13D\uD13E"],["b681","\uD13F\uD142\uD146",5,"\uD14E\uD14F\uD151\uD152\uD153\uD155",6,"\uD15E\uD160\uD162",5,"\uD169\uD16A\uD16B\uD16D\uB540\uB541\uB543\uB544\uB545\uB54B\uB54C\uB54D\uB550\uB554\uB55C\uB55D\uB55F\uB560\uB561\uB5A0\uB5A1\uB5A4\uB5A8\uB5AA\uB5AB\uB5B0\uB5B1\uB5B3\uB5B4\uB5B5\uB5BB\uB5BC\uB5BD\uB5C0\uB5C4\uB5CC\uB5CD\uB5CF\uB5D0\uB5D1\uB5D8\uB5EC\uB610\uB611\uB614\uB618\uB625\uB62C\uB634\uB648\uB664\uB668\uB69C\uB69D\uB6A0\uB6A4\uB6AB\uB6AC\uB6B1\uB6D4\uB6F0\uB6F4\uB6F8\uB700\uB701\uB705\uB728\uB729\uB72C\uB72F\uB730\uB738\uB739\uB73B\uB744\uB748\uB74C\uB754\uB755\uB760\uB764\uB768\uB770\uB771\uB773\uB775\uB77C\uB77D\uB780\uB784\uB78C\uB78D\uB78F\uB790\uB791\uB792\uB796\uB797"],["b741","\uD16E",13,"\uD17D",6,"\uD185\uD186\uD187\uD189\uD18A"],["b761","\uD18B",20,"\uD1A2\uD1A3\uD1A5\uD1A6\uD1A7"],["b781","\uD1A9",6,"\uD1B2\uD1B4\uD1B6\uD1B7\uD1B8\uD1B9\uD1BB\uD1BD\uD1BE\uD1BF\uD1C1",14,"\uB798\uB799\uB79C\uB7A0\uB7A8\uB7A9\uB7AB\uB7AC\uB7AD\uB7B4\uB7B5\uB7B8\uB7C7\uB7C9\uB7EC\uB7ED\uB7F0\uB7F4\uB7FC\uB7FD\uB7FF\uB800\uB801\uB807\uB808\uB809\uB80C\uB810\uB818\uB819\uB81B\uB81D\uB824\uB825\uB828\uB82C\uB834\uB835\uB837\uB838\uB839\uB840\uB844\uB851\uB853\uB85C\uB85D\uB860\uB864\uB86C\uB86D\uB86F\uB871\uB878\uB87C\uB88D\uB8A8\uB8B0\uB8B4\uB8B8\uB8C0\uB8C1\uB8C3\uB8C5\uB8CC\uB8D0\uB8D4\uB8DD\uB8DF\uB8E1\uB8E8\uB8E9\uB8EC\uB8F0\uB8F8\uB8F9\uB8FB\uB8FD\uB904\uB918\uB920\uB93C\uB93D\uB940\uB944\uB94C\uB94F\uB951\uB958\uB959\uB95C\uB960\uB968\uB969"],["b841","\uD1D0",7,"\uD1D9",17],["b861","\uD1EB",8,"\uD1F5\uD1F6\uD1F7\uD1F9",13],["b881","\uD208\uD20A",5,"\uD211",24,"\uB96B\uB96D\uB974\uB975\uB978\uB97C\uB984\uB985\uB987\uB989\uB98A\uB98D\uB98E\uB9AC\uB9AD\uB9B0\uB9B4\uB9BC\uB9BD\uB9BF\uB9C1\uB9C8\uB9C9\uB9CC\uB9CE",4,"\uB9D8\uB9D9\uB9DB\uB9DD\uB9DE\uB9E1\uB9E3\uB9E4\uB9E5\uB9E8\uB9EC\uB9F4\uB9F5\uB9F7\uB9F8\uB9F9\uB9FA\uBA00\uBA01\uBA08\uBA15\uBA38\uBA39\uBA3C\uBA40\uBA42\uBA48\uBA49\uBA4B\uBA4D\uBA4E\uBA53\uBA54\uBA55\uBA58\uBA5C\uBA64\uBA65\uBA67\uBA68\uBA69\uBA70\uBA71\uBA74\uBA78\uBA83\uBA84\uBA85\uBA87\uBA8C\uBAA8\uBAA9\uBAAB\uBAAC\uBAB0\uBAB2\uBAB8\uBAB9\uBABB\uBABD\uBAC4\uBAC8\uBAD8\uBAD9\uBAFC"],["b941","\uD22A\uD22B\uD22E\uD22F\uD231\uD232\uD233\uD235",6,"\uD23E\uD240\uD242",5,"\uD249\uD24A\uD24B\uD24C"],["b961","\uD24D",14,"\uD25D",6,"\uD265\uD266\uD267\uD268"],["b981","\uD269",22,"\uD282\uD283\uD285\uD286\uD287\uD289\uD28A\uD28B\uD28C\uBB00\uBB04\uBB0D\uBB0F\uBB11\uBB18\uBB1C\uBB20\uBB29\uBB2B\uBB34\uBB35\uBB36\uBB38\uBB3B\uBB3C\uBB3D\uBB3E\uBB44\uBB45\uBB47\uBB49\uBB4D\uBB4F\uBB50\uBB54\uBB58\uBB61\uBB63\uBB6C\uBB88\uBB8C\uBB90\uBBA4\uBBA8\uBBAC\uBBB4\uBBB7\uBBC0\uBBC4\uBBC8\uBBD0\uBBD3\uBBF8\uBBF9\uBBFC\uBBFF\uBC00\uBC02\uBC08\uBC09\uBC0B\uBC0C\uBC0D\uBC0F\uBC11\uBC14",4,"\uBC1B",4,"\uBC24\uBC25\uBC27\uBC29\uBC2D\uBC30\uBC31\uBC34\uBC38\uBC40\uBC41\uBC43\uBC44\uBC45\uBC49\uBC4C\uBC4D\uBC50\uBC5D\uBC84\uBC85\uBC88\uBC8B\uBC8C\uBC8E\uBC94\uBC95\uBC97"],["ba41","\uD28D\uD28E\uD28F\uD292\uD293\uD294\uD296",5,"\uD29D\uD29E\uD29F\uD2A1\uD2A2\uD2A3\uD2A5",6,"\uD2AD"],["ba61","\uD2AE\uD2AF\uD2B0\uD2B2",5,"\uD2BA\uD2BB\uD2BD\uD2BE\uD2C1\uD2C3",4,"\uD2CA\uD2CC",5],["ba81","\uD2D2\uD2D3\uD2D5\uD2D6\uD2D7\uD2D9\uD2DA\uD2DB\uD2DD",6,"\uD2E6",9,"\uD2F2\uD2F3\uD2F5\uD2F6\uD2F7\uD2F9\uD2FA\uBC99\uBC9A\uBCA0\uBCA1\uBCA4\uBCA7\uBCA8\uBCB0\uBCB1\uBCB3\uBCB4\uBCB5\uBCBC\uBCBD\uBCC0\uBCC4\uBCCD\uBCCF\uBCD0\uBCD1\uBCD5\uBCD8\uBCDC\uBCF4\uBCF5\uBCF6\uBCF8\uBCFC\uBD04\uBD05\uBD07\uBD09\uBD10\uBD14\uBD24\uBD2C\uBD40\uBD48\uBD49\uBD4C\uBD50\uBD58\uBD59\uBD64\uBD68\uBD80\uBD81\uBD84\uBD87\uBD88\uBD89\uBD8A\uBD90\uBD91\uBD93\uBD95\uBD99\uBD9A\uBD9C\uBDA4\uBDB0\uBDB8\uBDD4\uBDD5\uBDD8\uBDDC\uBDE9\uBDF0\uBDF4\uBDF8\uBE00\uBE03\uBE05\uBE0C\uBE0D\uBE10\uBE14\uBE1C\uBE1D\uBE1F\uBE44\uBE45\uBE48\uBE4C\uBE4E\uBE54\uBE55\uBE57\uBE59\uBE5A\uBE5B\uBE60\uBE61\uBE64"],["bb41","\uD2FB",4,"\uD302\uD304\uD306",5,"\uD30F\uD311\uD312\uD313\uD315\uD317",4,"\uD31E\uD322\uD323"],["bb61","\uD324\uD326\uD327\uD32A\uD32B\uD32D\uD32E\uD32F\uD331",6,"\uD33A\uD33E",5,"\uD346\uD347\uD348\uD349"],["bb81","\uD34A",31,"\uBE68\uBE6A\uBE70\uBE71\uBE73\uBE74\uBE75\uBE7B\uBE7C\uBE7D\uBE80\uBE84\uBE8C\uBE8D\uBE8F\uBE90\uBE91\uBE98\uBE99\uBEA8\uBED0\uBED1\uBED4\uBED7\uBED8\uBEE0\uBEE3\uBEE4\uBEE5\uBEEC\uBF01\uBF08\uBF09\uBF18\uBF19\uBF1B\uBF1C\uBF1D\uBF40\uBF41\uBF44\uBF48\uBF50\uBF51\uBF55\uBF94\uBFB0\uBFC5\uBFCC\uBFCD\uBFD0\uBFD4\uBFDC\uBFDF\uBFE1\uC03C\uC051\uC058\uC05C\uC060\uC068\uC069\uC090\uC091\uC094\uC098\uC0A0\uC0A1\uC0A3\uC0A5\uC0AC\uC0AD\uC0AF\uC0B0\uC0B3\uC0B4\uC0B5\uC0B6\uC0BC\uC0BD\uC0BF\uC0C0\uC0C1\uC0C5\uC0C8\uC0C9\uC0CC\uC0D0\uC0D8\uC0D9\uC0DB\uC0DC\uC0DD\uC0E4"],["bc41","\uD36A",17,"\uD37E\uD37F\uD381\uD382\uD383\uD385\uD386\uD387"],["bc61","\uD388\uD389\uD38A\uD38B\uD38E\uD392",5,"\uD39A\uD39B\uD39D\uD39E\uD39F\uD3A1",6,"\uD3AA\uD3AC\uD3AE"],["bc81","\uD3AF",4,"\uD3B5\uD3B6\uD3B7\uD3B9\uD3BA\uD3BB\uD3BD",6,"\uD3C6\uD3C7\uD3CA",5,"\uD3D1",5,"\uC0E5\uC0E8\uC0EC\uC0F4\uC0F5\uC0F7\uC0F9\uC100\uC104\uC108\uC110\uC115\uC11C",4,"\uC123\uC124\uC126\uC127\uC12C\uC12D\uC12F\uC130\uC131\uC136\uC138\uC139\uC13C\uC140\uC148\uC149\uC14B\uC14C\uC14D\uC154\uC155\uC158\uC15C\uC164\uC165\uC167\uC168\uC169\uC170\uC174\uC178\uC185\uC18C\uC18D\uC18E\uC190\uC194\uC196\uC19C\uC19D\uC19F\uC1A1\uC1A5\uC1A8\uC1A9\uC1AC\uC1B0\uC1BD\uC1C4\uC1C8\uC1CC\uC1D4\uC1D7\uC1D8\uC1E0\uC1E4\uC1E8\uC1F0\uC1F1\uC1F3\uC1FC\uC1FD\uC200\uC204\uC20C\uC20D\uC20F\uC211\uC218\uC219\uC21C\uC21F\uC220\uC228\uC229\uC22B\uC22D"],["bd41","\uD3D7\uD3D9",7,"\uD3E2\uD3E4",7,"\uD3EE\uD3EF\uD3F1\uD3F2\uD3F3\uD3F5\uD3F6\uD3F7"],["bd61","\uD3F8\uD3F9\uD3FA\uD3FB\uD3FE\uD400\uD402",5,"\uD409",13],["bd81","\uD417",5,"\uD41E",25,"\uC22F\uC231\uC232\uC234\uC248\uC250\uC251\uC254\uC258\uC260\uC265\uC26C\uC26D\uC270\uC274\uC27C\uC27D\uC27F\uC281\uC288\uC289\uC290\uC298\uC29B\uC29D\uC2A4\uC2A5\uC2A8\uC2AC\uC2AD\uC2B4\uC2B5\uC2B7\uC2B9\uC2DC\uC2DD\uC2E0\uC2E3\uC2E4\uC2EB\uC2EC\uC2ED\uC2EF\uC2F1\uC2F6\uC2F8\uC2F9\uC2FB\uC2FC\uC300\uC308\uC309\uC30C\uC30D\uC313\uC314\uC315\uC318\uC31C\uC324\uC325\uC328\uC329\uC345\uC368\uC369\uC36C\uC370\uC372\uC378\uC379\uC37C\uC37D\uC384\uC388\uC38C\uC3C0\uC3D8\uC3D9\uC3DC\uC3DF\uC3E0\uC3E2\uC3E8\uC3E9\uC3ED\uC3F4\uC3F5\uC3F8\uC408\uC410\uC424\uC42C\uC430"],["be41","\uD438",7,"\uD441\uD442\uD443\uD445",14],["be61","\uD454",7,"\uD45D\uD45E\uD45F\uD461\uD462\uD463\uD465",7,"\uD46E\uD470\uD471\uD472"],["be81","\uD473",4,"\uD47A\uD47B\uD47D\uD47E\uD481\uD483",4,"\uD48A\uD48C\uD48E",5,"\uD495",8,"\uC434\uC43C\uC43D\uC448\uC464\uC465\uC468\uC46C\uC474\uC475\uC479\uC480\uC494\uC49C\uC4B8\uC4BC\uC4E9\uC4F0\uC4F1\uC4F4\uC4F8\uC4FA\uC4FF\uC500\uC501\uC50C\uC510\uC514\uC51C\uC528\uC529\uC52C\uC530\uC538\uC539\uC53B\uC53D\uC544\uC545\uC548\uC549\uC54A\uC54C\uC54D\uC54E\uC553\uC554\uC555\uC557\uC558\uC559\uC55D\uC55E\uC560\uC561\uC564\uC568\uC570\uC571\uC573\uC574\uC575\uC57C\uC57D\uC580\uC584\uC587\uC58C\uC58D\uC58F\uC591\uC595\uC597\uC598\uC59C\uC5A0\uC5A9\uC5B4\uC5B5\uC5B8\uC5B9\uC5BB\uC5BC\uC5BD\uC5BE\uC5C4",6,"\uC5CC\uC5CE"],["bf41","\uD49E",10,"\uD4AA",14],["bf61","\uD4B9",18,"\uD4CD\uD4CE\uD4CF\uD4D1\uD4D2\uD4D3\uD4D5"],["bf81","\uD4D6",5,"\uD4DD\uD4DE\uD4E0",7,"\uD4E9\uD4EA\uD4EB\uD4ED\uD4EE\uD4EF\uD4F1",6,"\uD4F9\uD4FA\uD4FC\uC5D0\uC5D1\uC5D4\uC5D8\uC5E0\uC5E1\uC5E3\uC5E5\uC5EC\uC5ED\uC5EE\uC5F0\uC5F4\uC5F6\uC5F7\uC5FC",5,"\uC605\uC606\uC607\uC608\uC60C\uC610\uC618\uC619\uC61B\uC61C\uC624\uC625\uC628\uC62C\uC62D\uC62E\uC630\uC633\uC634\uC635\uC637\uC639\uC63B\uC640\uC641\uC644\uC648\uC650\uC651\uC653\uC654\uC655\uC65C\uC65D\uC660\uC66C\uC66F\uC671\uC678\uC679\uC67C\uC680\uC688\uC689\uC68B\uC68D\uC694\uC695\uC698\uC69C\uC6A4\uC6A5\uC6A7\uC6A9\uC6B0\uC6B1\uC6B4\uC6B8\uC6B9\uC6BA\uC6C0\uC6C1\uC6C3\uC6C5\uC6CC\uC6CD\uC6D0\uC6D4\uC6DC\uC6DD\uC6E0\uC6E1\uC6E8"],["c041","\uD4FE",5,"\uD505\uD506\uD507\uD509\uD50A\uD50B\uD50D",6,"\uD516\uD518",5],["c061","\uD51E",25],["c081","\uD538\uD539\uD53A\uD53B\uD53E\uD53F\uD541\uD542\uD543\uD545",6,"\uD54E\uD550\uD552",5,"\uD55A\uD55B\uD55D\uD55E\uD55F\uD561\uD562\uD563\uC6E9\uC6EC\uC6F0\uC6F8\uC6F9\uC6FD\uC704\uC705\uC708\uC70C\uC714\uC715\uC717\uC719\uC720\uC721\uC724\uC728\uC730\uC731\uC733\uC735\uC737\uC73C\uC73D\uC740\uC744\uC74A\uC74C\uC74D\uC74F\uC751",7,"\uC75C\uC760\uC768\uC76B\uC774\uC775\uC778\uC77C\uC77D\uC77E\uC783\uC784\uC785\uC787\uC788\uC789\uC78A\uC78E\uC790\uC791\uC794\uC796\uC797\uC798\uC79A\uC7A0\uC7A1\uC7A3\uC7A4\uC7A5\uC7A6\uC7AC\uC7AD\uC7B0\uC7B4\uC7BC\uC7BD\uC7BF\uC7C0\uC7C1\uC7C8\uC7C9\uC7CC\uC7CE\uC7D0\uC7D8\uC7DD\uC7E4\uC7E8\uC7EC\uC800\uC801\uC804\uC808\uC80A"],["c141","\uD564\uD566\uD567\uD56A\uD56C\uD56E",5,"\uD576\uD577\uD579\uD57A\uD57B\uD57D",6,"\uD586\uD58A\uD58B"],["c161","\uD58C\uD58D\uD58E\uD58F\uD591",19,"\uD5A6\uD5A7"],["c181","\uD5A8",31,"\uC810\uC811\uC813\uC815\uC816\uC81C\uC81D\uC820\uC824\uC82C\uC82D\uC82F\uC831\uC838\uC83C\uC840\uC848\uC849\uC84C\uC84D\uC854\uC870\uC871\uC874\uC878\uC87A\uC880\uC881\uC883\uC885\uC886\uC887\uC88B\uC88C\uC88D\uC894\uC89D\uC89F\uC8A1\uC8A8\uC8BC\uC8BD\uC8C4\uC8C8\uC8CC\uC8D4\uC8D5\uC8D7\uC8D9\uC8E0\uC8E1\uC8E4\uC8F5\uC8FC\uC8FD\uC900\uC904\uC905\uC906\uC90C\uC90D\uC90F\uC911\uC918\uC92C\uC934\uC950\uC951\uC954\uC958\uC960\uC961\uC963\uC96C\uC970\uC974\uC97C\uC988\uC989\uC98C\uC990\uC998\uC999\uC99B\uC99D\uC9C0\uC9C1\uC9C4\uC9C7\uC9C8\uC9CA\uC9D0\uC9D1\uC9D3"],["c241","\uD5CA\uD5CB\uD5CD\uD5CE\uD5CF\uD5D1\uD5D3",4,"\uD5DA\uD5DC\uD5DE",5,"\uD5E6\uD5E7\uD5E9\uD5EA\uD5EB\uD5ED\uD5EE"],["c261","\uD5EF",4,"\uD5F6\uD5F8\uD5FA",5,"\uD602\uD603\uD605\uD606\uD607\uD609",6,"\uD612"],["c281","\uD616",5,"\uD61D\uD61E\uD61F\uD621\uD622\uD623\uD625",7,"\uD62E",9,"\uD63A\uD63B\uC9D5\uC9D6\uC9D9\uC9DA\uC9DC\uC9DD\uC9E0\uC9E2\uC9E4\uC9E7\uC9EC\uC9ED\uC9EF\uC9F0\uC9F1\uC9F8\uC9F9\uC9FC\uCA00\uCA08\uCA09\uCA0B\uCA0C\uCA0D\uCA14\uCA18\uCA29\uCA4C\uCA4D\uCA50\uCA54\uCA5C\uCA5D\uCA5F\uCA60\uCA61\uCA68\uCA7D\uCA84\uCA98\uCABC\uCABD\uCAC0\uCAC4\uCACC\uCACD\uCACF\uCAD1\uCAD3\uCAD8\uCAD9\uCAE0\uCAEC\uCAF4\uCB08\uCB10\uCB14\uCB18\uCB20\uCB21\uCB41\uCB48\uCB49\uCB4C\uCB50\uCB58\uCB59\uCB5D\uCB64\uCB78\uCB79\uCB9C\uCBB8\uCBD4\uCBE4\uCBE7\uCBE9\uCC0C\uCC0D\uCC10\uCC14\uCC1C\uCC1D\uCC21\uCC22\uCC27\uCC28\uCC29\uCC2C\uCC2E\uCC30\uCC38\uCC39\uCC3B"],["c341","\uD63D\uD63E\uD63F\uD641\uD642\uD643\uD644\uD646\uD647\uD64A\uD64C\uD64E\uD64F\uD650\uD652\uD653\uD656\uD657\uD659\uD65A\uD65B\uD65D",4],["c361","\uD662",4,"\uD668\uD66A",5,"\uD672\uD673\uD675",11],["c381","\uD681\uD682\uD684\uD686",5,"\uD68E\uD68F\uD691\uD692\uD693\uD695",7,"\uD69E\uD6A0\uD6A2",5,"\uD6A9\uD6AA\uCC3C\uCC3D\uCC3E\uCC44\uCC45\uCC48\uCC4C\uCC54\uCC55\uCC57\uCC58\uCC59\uCC60\uCC64\uCC66\uCC68\uCC70\uCC75\uCC98\uCC99\uCC9C\uCCA0\uCCA8\uCCA9\uCCAB\uCCAC\uCCAD\uCCB4\uCCB5\uCCB8\uCCBC\uCCC4\uCCC5\uCCC7\uCCC9\uCCD0\uCCD4\uCCE4\uCCEC\uCCF0\uCD01\uCD08\uCD09\uCD0C\uCD10\uCD18\uCD19\uCD1B\uCD1D\uCD24\uCD28\uCD2C\uCD39\uCD5C\uCD60\uCD64\uCD6C\uCD6D\uCD6F\uCD71\uCD78\uCD88\uCD94\uCD95\uCD98\uCD9C\uCDA4\uCDA5\uCDA7\uCDA9\uCDB0\uCDC4\uCDCC\uCDD0\uCDE8\uCDEC\uCDF0\uCDF8\uCDF9\uCDFB\uCDFD\uCE04\uCE08\uCE0C\uCE14\uCE19\uCE20\uCE21\uCE24\uCE28\uCE30\uCE31\uCE33\uCE35"],["c441","\uD6AB\uD6AD\uD6AE\uD6AF\uD6B1",7,"\uD6BA\uD6BC",7,"\uD6C6\uD6C7\uD6C9\uD6CA\uD6CB"],["c461","\uD6CD\uD6CE\uD6CF\uD6D0\uD6D2\uD6D3\uD6D5\uD6D6\uD6D8\uD6DA",5,"\uD6E1\uD6E2\uD6E3\uD6E5\uD6E6\uD6E7\uD6E9",4],["c481","\uD6EE\uD6EF\uD6F1\uD6F2\uD6F3\uD6F4\uD6F6",5,"\uD6FE\uD6FF\uD701\uD702\uD703\uD705",11,"\uD712\uD713\uD714\uCE58\uCE59\uCE5C\uCE5F\uCE60\uCE61\uCE68\uCE69\uCE6B\uCE6D\uCE74\uCE75\uCE78\uCE7C\uCE84\uCE85\uCE87\uCE89\uCE90\uCE91\uCE94\uCE98\uCEA0\uCEA1\uCEA3\uCEA4\uCEA5\uCEAC\uCEAD\uCEC1\uCEE4\uCEE5\uCEE8\uCEEB\uCEEC\uCEF4\uCEF5\uCEF7\uCEF8\uCEF9\uCF00\uCF01\uCF04\uCF08\uCF10\uCF11\uCF13\uCF15\uCF1C\uCF20\uCF24\uCF2C\uCF2D\uCF2F\uCF30\uCF31\uCF38\uCF54\uCF55\uCF58\uCF5C\uCF64\uCF65\uCF67\uCF69\uCF70\uCF71\uCF74\uCF78\uCF80\uCF85\uCF8C\uCFA1\uCFA8\uCFB0\uCFC4\uCFE0\uCFE1\uCFE4\uCFE8\uCFF0\uCFF1\uCFF3\uCFF5\uCFFC\uD000\uD004\uD011\uD018\uD02D\uD034\uD035\uD038\uD03C"],["c541","\uD715\uD716\uD717\uD71A\uD71B\uD71D\uD71E\uD71F\uD721",6,"\uD72A\uD72C\uD72E",5,"\uD736\uD737\uD739"],["c561","\uD73A\uD73B\uD73D",6,"\uD745\uD746\uD748\uD74A",5,"\uD752\uD753\uD755\uD75A",4],["c581","\uD75F\uD762\uD764\uD766\uD767\uD768\uD76A\uD76B\uD76D\uD76E\uD76F\uD771\uD772\uD773\uD775",6,"\uD77E\uD77F\uD780\uD782",5,"\uD78A\uD78B\uD044\uD045\uD047\uD049\uD050\uD054\uD058\uD060\uD06C\uD06D\uD070\uD074\uD07C\uD07D\uD081\uD0A4\uD0A5\uD0A8\uD0AC\uD0B4\uD0B5\uD0B7\uD0B9\uD0C0\uD0C1\uD0C4\uD0C8\uD0C9\uD0D0\uD0D1\uD0D3\uD0D4\uD0D5\uD0DC\uD0DD\uD0E0\uD0E4\uD0EC\uD0ED\uD0EF\uD0F0\uD0F1\uD0F8\uD10D\uD130\uD131\uD134\uD138\uD13A\uD140\uD141\uD143\uD144\uD145\uD14C\uD14D\uD150\uD154\uD15C\uD15D\uD15F\uD161\uD168\uD16C\uD17C\uD184\uD188\uD1A0\uD1A1\uD1A4\uD1A8\uD1B0\uD1B1\uD1B3\uD1B5\uD1BA\uD1BC\uD1C0\uD1D8\uD1F4\uD1F8\uD207\uD209\uD210\uD22C\uD22D\uD230\uD234\uD23C\uD23D\uD23F\uD241\uD248\uD25C"],["c641","\uD78D\uD78E\uD78F\uD791",6,"\uD79A\uD79C\uD79E",5],["c6a1","\uD264\uD280\uD281\uD284\uD288\uD290\uD291\uD295\uD29C\uD2A0\uD2A4\uD2AC\uD2B1\uD2B8\uD2B9\uD2BC\uD2BF\uD2C0\uD2C2\uD2C8\uD2C9\uD2CB\uD2D4\uD2D8\uD2DC\uD2E4\uD2E5\uD2F0\uD2F1\uD2F4\uD2F8\uD300\uD301\uD303\uD305\uD30C\uD30D\uD30E\uD310\uD314\uD316\uD31C\uD31D\uD31F\uD320\uD321\uD325\uD328\uD329\uD32C\uD330\uD338\uD339\uD33B\uD33C\uD33D\uD344\uD345\uD37C\uD37D\uD380\uD384\uD38C\uD38D\uD38F\uD390\uD391\uD398\uD399\uD39C\uD3A0\uD3A8\uD3A9\uD3AB\uD3AD\uD3B4\uD3B8\uD3BC\uD3C4\uD3C5\uD3C8\uD3C9\uD3D0\uD3D8\uD3E1\uD3E3\uD3EC\uD3ED\uD3F0\uD3F4\uD3FC\uD3FD\uD3FF\uD401"],["c7a1","\uD408\uD41D\uD440\uD444\uD45C\uD460\uD464\uD46D\uD46F\uD478\uD479\uD47C\uD47F\uD480\uD482\uD488\uD489\uD48B\uD48D\uD494\uD4A9\uD4CC\uD4D0\uD4D4\uD4DC\uD4DF\uD4E8\uD4EC\uD4F0\uD4F8\uD4FB\uD4FD\uD504\uD508\uD50C\uD514\uD515\uD517\uD53C\uD53D\uD540\uD544\uD54C\uD54D\uD54F\uD551\uD558\uD559\uD55C\uD560\uD565\uD568\uD569\uD56B\uD56D\uD574\uD575\uD578\uD57C\uD584\uD585\uD587\uD588\uD589\uD590\uD5A5\uD5C8\uD5C9\uD5CC\uD5D0\uD5D2\uD5D8\uD5D9\uD5DB\uD5DD\uD5E4\uD5E5\uD5E8\uD5EC\uD5F4\uD5F5\uD5F7\uD5F9\uD600\uD601\uD604\uD608\uD610\uD611\uD613\uD614\uD615\uD61C\uD620"],["c8a1","\uD624\uD62D\uD638\uD639\uD63C\uD640\uD645\uD648\uD649\uD64B\uD64D\uD651\uD654\uD655\uD658\uD65C\uD667\uD669\uD670\uD671\uD674\uD683\uD685\uD68C\uD68D\uD690\uD694\uD69D\uD69F\uD6A1\uD6A8\uD6AC\uD6B0\uD6B9\uD6BB\uD6C4\uD6C5\uD6C8\uD6CC\uD6D1\uD6D4\uD6D7\uD6D9\uD6E0\uD6E4\uD6E8\uD6F0\uD6F5\uD6FC\uD6FD\uD700\uD704\uD711\uD718\uD719\uD71C\uD720\uD728\uD729\uD72B\uD72D\uD734\uD735\uD738\uD73C\uD744\uD747\uD749\uD750\uD751\uD754\uD756\uD757\uD758\uD759\uD760\uD761\uD763\uD765\uD769\uD76C\uD770\uD774\uD77C\uD77D\uD781\uD788\uD789\uD78C\uD790\uD798\uD799\uD79B\uD79D"],["caa1","\u4F3D\u4F73\u5047\u50F9\u52A0\u53EF\u5475\u54E5\u5609\u5AC1\u5BB6\u6687\u67B6\u67B7\u67EF\u6B4C\u73C2\u75C2\u7A3C\u82DB\u8304\u8857\u8888\u8A36\u8CC8\u8DCF\u8EFB\u8FE6\u99D5\u523B\u5374\u5404\u606A\u6164\u6BBC\u73CF\u811A\u89BA\u89D2\u95A3\u4F83\u520A\u58BE\u5978\u59E6\u5E72\u5E79\u61C7\u63C0\u6746\u67EC\u687F\u6F97\u764E\u770B\u78F5\u7A08\u7AFF\u7C21\u809D\u826E\u8271\u8AEB\u9593\u4E6B\u559D\u66F7\u6E34\u78A3\u7AED\u845B\u8910\u874E\u97A8\u52D8\u574E\u582A\u5D4C\u611F\u61BE\u6221\u6562\u67D1\u6A44\u6E1B\u7518\u75B3\u76E3\u77B0\u7D3A\u90AF\u9451\u9452\u9F95"],["cba1","\u5323\u5CAC\u7532\u80DB\u9240\u9598\u525B\u5808\u59DC\u5CA1\u5D17\u5EB7\u5F3A\u5F4A\u6177\u6C5F\u757A\u7586\u7CE0\u7D73\u7DB1\u7F8C\u8154\u8221\u8591\u8941\u8B1B\u92FC\u964D\u9C47\u4ECB\u4EF7\u500B\u51F1\u584F\u6137\u613E\u6168\u6539\u69EA\u6F11\u75A5\u7686\u76D6\u7B87\u82A5\u84CB\uF900\u93A7\u958B\u5580\u5BA2\u5751\uF901\u7CB3\u7FB9\u91B5\u5028\u53BB\u5C45\u5DE8\u62D2\u636E\u64DA\u64E7\u6E20\u70AC\u795B\u8DDD\u8E1E\uF902\u907D\u9245\u92F8\u4E7E\u4EF6\u5065\u5DFE\u5EFA\u6106\u6957\u8171\u8654\u8E47\u9375\u9A2B\u4E5E\u5091\u6770\u6840\u5109\u528D\u5292\u6AA2"],["cca1","\u77BC\u9210\u9ED4\u52AB\u602F\u8FF2\u5048\u61A9\u63ED\u64CA\u683C\u6A84\u6FC0\u8188\u89A1\u9694\u5805\u727D\u72AC\u7504\u7D79\u7E6D\u80A9\u898B\u8B74\u9063\u9D51\u6289\u6C7A\u6F54\u7D50\u7F3A\u8A23\u517C\u614A\u7B9D\u8B19\u9257\u938C\u4EAC\u4FD3\u501E\u50BE\u5106\u52C1\u52CD\u537F\u5770\u5883\u5E9A\u5F91\u6176\u61AC\u64CE\u656C\u666F\u66BB\u66F4\u6897\u6D87\u7085\u70F1\u749F\u74A5\u74CA\u75D9\u786C\u78EC\u7ADF\u7AF6\u7D45\u7D93\u8015\u803F\u811B\u8396\u8B66\u8F15\u9015\u93E1\u9803\u9838\u9A5A\u9BE8\u4FC2\u5553\u583A\u5951\u5B63\u5C46\u60B8\u6212\u6842\u68B0"],["cda1","\u68E8\u6EAA\u754C\u7678\u78CE\u7A3D\u7CFB\u7E6B\u7E7C\u8A08\u8AA1\u8C3F\u968E\u9DC4\u53E4\u53E9\u544A\u5471\u56FA\u59D1\u5B64\u5C3B\u5EAB\u62F7\u6537\u6545\u6572\u66A0\u67AF\u69C1\u6CBD\u75FC\u7690\u777E\u7A3F\u7F94\u8003\u80A1\u818F\u82E6\u82FD\u83F0\u85C1\u8831\u88B4\u8AA5\uF903\u8F9C\u932E\u96C7\u9867\u9AD8\u9F13\u54ED\u659B\u66F2\u688F\u7A40\u8C37\u9D60\u56F0\u5764\u5D11\u6606\u68B1\u68CD\u6EFE\u7428\u889E\u9BE4\u6C68\uF904\u9AA8\u4F9B\u516C\u5171\u529F\u5B54\u5DE5\u6050\u606D\u62F1\u63A7\u653B\u73D9\u7A7A\u86A3\u8CA2\u978F\u4E32\u5BE1\u6208\u679C\u74DC"],["cea1","\u79D1\u83D3\u8A87\u8AB2\u8DE8\u904E\u934B\u9846\u5ED3\u69E8\u85FF\u90ED\uF905\u51A0\u5B98\u5BEC\u6163\u68FA\u6B3E\u704C\u742F\u74D8\u7BA1\u7F50\u83C5\u89C0\u8CAB\u95DC\u9928\u522E\u605D\u62EC\u9002\u4F8A\u5149\u5321\u58D9\u5EE3\u66E0\u6D38\u709A\u72C2\u73D6\u7B50\u80F1\u945B\u5366\u639B\u7F6B\u4E56\u5080\u584A\u58DE\u602A\u6127\u62D0\u69D0\u9B41\u5B8F\u7D18\u80B1\u8F5F\u4EA4\u50D1\u54AC\u55AC\u5B0C\u5DA0\u5DE7\u652A\u654E\u6821\u6A4B\u72E1\u768E\u77EF\u7D5E\u7FF9\u81A0\u854E\u86DF\u8F03\u8F4E\u90CA\u9903\u9A55\u9BAB\u4E18\u4E45\u4E5D\u4EC7\u4FF1\u5177\u52FE"],["cfa1","\u5340\u53E3\u53E5\u548E\u5614\u5775\u57A2\u5BC7\u5D87\u5ED0\u61FC\u62D8\u6551\u67B8\u67E9\u69CB\u6B50\u6BC6\u6BEC\u6C42\u6E9D\u7078\u72D7\u7396\u7403\u77BF\u77E9\u7A76\u7D7F\u8009\u81FC\u8205\u820A\u82DF\u8862\u8B33\u8CFC\u8EC0\u9011\u90B1\u9264\u92B6\u99D2\u9A45\u9CE9\u9DD7\u9F9C\u570B\u5C40\u83CA\u97A0\u97AB\u9EB4\u541B\u7A98\u7FA4\u88D9\u8ECD\u90E1\u5800\u5C48\u6398\u7A9F\u5BAE\u5F13\u7A79\u7AAE\u828E\u8EAC\u5026\u5238\u52F8\u5377\u5708\u62F3\u6372\u6B0A\u6DC3\u7737\u53A5\u7357\u8568\u8E76\u95D5\u673A\u6AC3\u6F70\u8A6D\u8ECC\u994B\uF906\u6677\u6B78\u8CB4"],["d0a1","\u9B3C\uF907\u53EB\u572D\u594E\u63C6\u69FB\u73EA\u7845\u7ABA\u7AC5\u7CFE\u8475\u898F\u8D73\u9035\u95A8\u52FB\u5747\u7547\u7B60\u83CC\u921E\uF908\u6A58\u514B\u524B\u5287\u621F\u68D8\u6975\u9699\u50C5\u52A4\u52E4\u61C3\u65A4\u6839\u69FF\u747E\u7B4B\u82B9\u83EB\u89B2\u8B39\u8FD1\u9949\uF909\u4ECA\u5997\u64D2\u6611\u6A8E\u7434\u7981\u79BD\u82A9\u887E\u887F\u895F\uF90A\u9326\u4F0B\u53CA\u6025\u6271\u6C72\u7D1A\u7D66\u4E98\u5162\u77DC\u80AF\u4F01\u4F0E\u5176\u5180\u55DC\u5668\u573B\u57FA\u57FC\u5914\u5947\u5993\u5BC4\u5C90\u5D0E\u5DF1\u5E7E\u5FCC\u6280\u65D7\u65E3"],["d1a1","\u671E\u671F\u675E\u68CB\u68C4\u6A5F\u6B3A\u6C23\u6C7D\u6C82\u6DC7\u7398\u7426\u742A\u7482\u74A3\u7578\u757F\u7881\u78EF\u7941\u7947\u7948\u797A\u7B95\u7D00\u7DBA\u7F88\u8006\u802D\u808C\u8A18\u8B4F\u8C48\u8D77\u9321\u9324\u98E2\u9951\u9A0E\u9A0F\u9A65\u9E92\u7DCA\u4F76\u5409\u62EE\u6854\u91D1\u55AB\u513A\uF90B\uF90C\u5A1C\u61E6\uF90D\u62CF\u62FF\uF90E",5,"\u90A3\uF914",4,"\u8AFE\uF919\uF91A\uF91B\uF91C\u6696\uF91D\u7156\uF91E\uF91F\u96E3\uF920\u634F\u637A\u5357\uF921\u678F\u6960\u6E73\uF922\u7537\uF923\uF924\uF925"],["d2a1","\u7D0D\uF926\uF927\u8872\u56CA\u5A18\uF928",4,"\u4E43\uF92D\u5167\u5948\u67F0\u8010\uF92E\u5973\u5E74\u649A\u79CA\u5FF5\u606C\u62C8\u637B\u5BE7\u5BD7\u52AA\uF92F\u5974\u5F29\u6012\uF930\uF931\uF932\u7459\uF933",5,"\u99D1\uF939",10,"\u6FC3\uF944\uF945\u81BF\u8FB2\u60F1\uF946\uF947\u8166\uF948\uF949\u5C3F\uF94A",7,"\u5AE9\u8A25\u677B\u7D10\uF952",5,"\u80FD\uF958\uF959\u5C3C\u6CE5\u533F\u6EBA\u591A\u8336"],["d3a1","\u4E39\u4EB6\u4F46\u55AE\u5718\u58C7\u5F56\u65B7\u65E6\u6A80\u6BB5\u6E4D\u77ED\u7AEF\u7C1E\u7DDE\u86CB\u8892\u9132\u935B\u64BB\u6FBE\u737A\u75B8\u9054\u5556\u574D\u61BA\u64D4\u66C7\u6DE1\u6E5B\u6F6D\u6FB9\u75F0\u8043\u81BD\u8541\u8983\u8AC7\u8B5A\u931F\u6C93\u7553\u7B54\u8E0F\u905D\u5510\u5802\u5858\u5E62\u6207\u649E\u68E0\u7576\u7CD6\u87B3\u9EE8\u4EE3\u5788\u576E\u5927\u5C0D\u5CB1\u5E36\u5F85\u6234\u64E1\u73B3\u81FA\u888B\u8CB8\u968A\u9EDB\u5B85\u5FB7\u60B3\u5012\u5200\u5230\u5716\u5835\u5857\u5C0E\u5C60\u5CF6\u5D8B\u5EA6\u5F92\u60BC\u6311\u6389\u6417\u6843"],["d4a1","\u68F9\u6AC2\u6DD8\u6E21\u6ED4\u6FE4\u71FE\u76DC\u7779\u79B1\u7A3B\u8404\u89A9\u8CED\u8DF3\u8E48\u9003\u9014\u9053\u90FD\u934D\u9676\u97DC\u6BD2\u7006\u7258\u72A2\u7368\u7763\u79BF\u7BE4\u7E9B\u8B80\u58A9\u60C7\u6566\u65FD\u66BE\u6C8C\u711E\u71C9\u8C5A\u9813\u4E6D\u7A81\u4EDD\u51AC\u51CD\u52D5\u540C\u61A7\u6771\u6850\u68DF\u6D1E\u6F7C\u75BC\u77B3\u7AE5\u80F4\u8463\u9285\u515C\u6597\u675C\u6793\u75D8\u7AC7\u8373\uF95A\u8C46\u9017\u982D\u5C6F\u81C0\u829A\u9041\u906F\u920D\u5F97\u5D9D\u6A59\u71C8\u767B\u7B49\u85E4\u8B04\u9127\u9A30\u5587\u61F6\uF95B\u7669\u7F85"],["d5a1","\u863F\u87BA\u88F8\u908F\uF95C\u6D1B\u70D9\u73DE\u7D61\u843D\uF95D\u916A\u99F1\uF95E\u4E82\u5375\u6B04\u6B12\u703E\u721B\u862D\u9E1E\u524C\u8FA3\u5D50\u64E5\u652C\u6B16\u6FEB\u7C43\u7E9C\u85CD\u8964\u89BD\u62C9\u81D8\u881F\u5ECA\u6717\u6D6A\u72FC\u7405\u746F\u8782\u90DE\u4F86\u5D0D\u5FA0\u840A\u51B7\u63A0\u7565\u4EAE\u5006\u5169\u51C9\u6881\u6A11\u7CAE\u7CB1\u7CE7\u826F\u8AD2\u8F1B\u91CF\u4FB6\u5137\u52F5\u5442\u5EEC\u616E\u623E\u65C5\u6ADA\u6FFE\u792A\u85DC\u8823\u95AD\u9A62\u9A6A\u9E97\u9ECE\u529B\u66C6\u6B77\u701D\u792B\u8F62\u9742\u6190\u6200\u6523\u6F23"],["d6a1","\u7149\u7489\u7DF4\u806F\u84EE\u8F26\u9023\u934A\u51BD\u5217\u52A3\u6D0C\u70C8\u88C2\u5EC9\u6582\u6BAE\u6FC2\u7C3E\u7375\u4EE4\u4F36\u56F9\uF95F\u5CBA\u5DBA\u601C\u73B2\u7B2D\u7F9A\u7FCE\u8046\u901E\u9234\u96F6\u9748\u9818\u9F61\u4F8B\u6FA7\u79AE\u91B4\u96B7\u52DE\uF960\u6488\u64C4\u6AD3\u6F5E\u7018\u7210\u76E7\u8001\u8606\u865C\u8DEF\u8F05\u9732\u9B6F\u9DFA\u9E75\u788C\u797F\u7DA0\u83C9\u9304\u9E7F\u9E93\u8AD6\u58DF\u5F04\u6727\u7027\u74CF\u7C60\u807E\u5121\u7028\u7262\u78CA\u8CC2\u8CDA\u8CF4\u96F7\u4E86\u50DA\u5BEE\u5ED6\u6599\u71CE\u7642\u77AD\u804A\u84FC"],["d7a1","\u907C\u9B27\u9F8D\u58D8\u5A41\u5C62\u6A13\u6DDA\u6F0F\u763B\u7D2F\u7E37\u851E\u8938\u93E4\u964B\u5289\u65D2\u67F3\u69B4\u6D41\u6E9C\u700F\u7409\u7460\u7559\u7624\u786B\u8B2C\u985E\u516D\u622E\u9678\u4F96\u502B\u5D19\u6DEA\u7DB8\u8F2A\u5F8B\u6144\u6817\uF961\u9686\u52D2\u808B\u51DC\u51CC\u695E\u7A1C\u7DBE\u83F1\u9675\u4FDA\u5229\u5398\u540F\u550E\u5C65\u60A7\u674E\u68A8\u6D6C\u7281\u72F8\u7406\u7483\uF962\u75E2\u7C6C\u7F79\u7FB8\u8389\u88CF\u88E1\u91CC\u91D0\u96E2\u9BC9\u541D\u6F7E\u71D0\u7498\u85FA\u8EAA\u96A3\u9C57\u9E9F\u6797\u6DCB\u7433\u81E8\u9716\u782C"],["d8a1","\u7ACB\u7B20\u7C92\u6469\u746A\u75F2\u78BC\u78E8\u99AC\u9B54\u9EBB\u5BDE\u5E55\u6F20\u819C\u83AB\u9088\u4E07\u534D\u5A29\u5DD2\u5F4E\u6162\u633D\u6669\u66FC\u6EFF\u6F2B\u7063\u779E\u842C\u8513\u883B\u8F13\u9945\u9C3B\u551C\u62B9\u672B\u6CAB\u8309\u896A\u977A\u4EA1\u5984\u5FD8\u5FD9\u671B\u7DB2\u7F54\u8292\u832B\u83BD\u8F1E\u9099\u57CB\u59B9\u5A92\u5BD0\u6627\u679A\u6885\u6BCF\u7164\u7F75\u8CB7\u8CE3\u9081\u9B45\u8108\u8C8A\u964C\u9A40\u9EA5\u5B5F\u6C13\u731B\u76F2\u76DF\u840C\u51AA\u8993\u514D\u5195\u52C9\u68C9\u6C94\u7704\u7720\u7DBF\u7DEC\u9762\u9EB5\u6EC5"],["d9a1","\u8511\u51A5\u540D\u547D\u660E\u669D\u6927\u6E9F\u76BF\u7791\u8317\u84C2\u879F\u9169\u9298\u9CF4\u8882\u4FAE\u5192\u52DF\u59C6\u5E3D\u6155\u6478\u6479\u66AE\u67D0\u6A21\u6BCD\u6BDB\u725F\u7261\u7441\u7738\u77DB\u8017\u82BC\u8305\u8B00\u8B28\u8C8C\u6728\u6C90\u7267\u76EE\u7766\u7A46\u9DA9\u6B7F\u6C92\u5922\u6726\u8499\u536F\u5893\u5999\u5EDF\u63CF\u6634\u6773\u6E3A\u732B\u7AD7\u82D7\u9328\u52D9\u5DEB\u61AE\u61CB\u620A\u62C7\u64AB\u65E0\u6959\u6B66\u6BCB\u7121\u73F7\u755D\u7E46\u821E\u8302\u856A\u8AA3\u8CBF\u9727\u9D61\u58A8\u9ED8\u5011\u520E\u543B\u554F\u6587"],["daa1","\u6C76\u7D0A\u7D0B\u805E\u868A\u9580\u96EF\u52FF\u6C95\u7269\u5473\u5A9A\u5C3E\u5D4B\u5F4C\u5FAE\u672A\u68B6\u6963\u6E3C\u6E44\u7709\u7C73\u7F8E\u8587\u8B0E\u8FF7\u9761\u9EF4\u5CB7\u60B6\u610D\u61AB\u654F\u65FB\u65FC\u6C11\u6CEF\u739F\u73C9\u7DE1\u9594\u5BC6\u871C\u8B10\u525D\u535A\u62CD\u640F\u64B2\u6734\u6A38\u6CCA\u73C0\u749E\u7B94\u7C95\u7E1B\u818A\u8236\u8584\u8FEB\u96F9\u99C1\u4F34\u534A\u53CD\u53DB\u62CC\u642C\u6500\u6591\u69C3\u6CEE\u6F58\u73ED\u7554\u7622\u76E4\u76FC\u78D0\u78FB\u792C\u7D46\u822C\u87E0\u8FD4\u9812\u98EF\u52C3\u62D4\u64A5\u6E24\u6F51"],["dba1","\u767C\u8DCB\u91B1\u9262\u9AEE\u9B43\u5023\u508D\u574A\u59A8\u5C28\u5E47\u5F77\u623F\u653E\u65B9\u65C1\u6609\u678B\u699C\u6EC2\u78C5\u7D21\u80AA\u8180\u822B\u82B3\u84A1\u868C\u8A2A\u8B17\u90A6\u9632\u9F90\u500D\u4FF3\uF963\u57F9\u5F98\u62DC\u6392\u676F\u6E43\u7119\u76C3\u80CC\u80DA\u88F4\u88F5\u8919\u8CE0\u8F29\u914D\u966A\u4F2F\u4F70\u5E1B\u67CF\u6822\u767D\u767E\u9B44\u5E61\u6A0A\u7169\u71D4\u756A\uF964\u7E41\u8543\u85E9\u98DC\u4F10\u7B4F\u7F70\u95A5\u51E1\u5E06\u68B5\u6C3E\u6C4E\u6CDB\u72AF\u7BC4\u8303\u6CD5\u743A\u50FB\u5288\u58C1\u64D8\u6A97\u74A7\u7656"],["dca1","\u78A7\u8617\u95E2\u9739\uF965\u535E\u5F01\u8B8A\u8FA8\u8FAF\u908A\u5225\u77A5\u9C49\u9F08\u4E19\u5002\u5175\u5C5B\u5E77\u661E\u663A\u67C4\u68C5\u70B3\u7501\u75C5\u79C9\u7ADD\u8F27\u9920\u9A08\u4FDD\u5821\u5831\u5BF6\u666E\u6B65\u6D11\u6E7A\u6F7D\u73E4\u752B\u83E9\u88DC\u8913\u8B5C\u8F14\u4F0F\u50D5\u5310\u535C\u5B93\u5FA9\u670D\u798F\u8179\u832F\u8514\u8907\u8986\u8F39\u8F3B\u99A5\u9C12\u672C\u4E76\u4FF8\u5949\u5C01\u5CEF\u5CF0\u6367\u68D2\u70FD\u71A2\u742B\u7E2B\u84EC\u8702\u9022\u92D2\u9CF3\u4E0D\u4ED8\u4FEF\u5085\u5256\u526F\u5426\u5490\u57E0\u592B\u5A66"],["dda1","\u5B5A\u5B75\u5BCC\u5E9C\uF966\u6276\u6577\u65A7\u6D6E\u6EA5\u7236\u7B26\u7C3F\u7F36\u8150\u8151\u819A\u8240\u8299\u83A9\u8A03\u8CA0\u8CE6\u8CFB\u8D74\u8DBA\u90E8\u91DC\u961C\u9644\u99D9\u9CE7\u5317\u5206\u5429\u5674\u58B3\u5954\u596E\u5FFF\u61A4\u626E\u6610\u6C7E\u711A\u76C6\u7C89\u7CDE\u7D1B\u82AC\u8CC1\u96F0\uF967\u4F5B\u5F17\u5F7F\u62C2\u5D29\u670B\u68DA\u787C\u7E43\u9D6C\u4E15\u5099\u5315\u532A\u5351\u5983\u5A62\u5E87\u60B2\u618A\u6249\u6279\u6590\u6787\u69A7\u6BD4\u6BD6\u6BD7\u6BD8\u6CB8\uF968\u7435\u75FA\u7812\u7891\u79D5\u79D8\u7C83\u7DCB\u7FE1\u80A5"],["dea1","\u813E\u81C2\u83F2\u871A\u88E8\u8AB9\u8B6C\u8CBB\u9119\u975E\u98DB\u9F3B\u56AC\u5B2A\u5F6C\u658C\u6AB3\u6BAF\u6D5C\u6FF1\u7015\u725D\u73AD\u8CA7\u8CD3\u983B\u6191\u6C37\u8058\u9A01\u4E4D\u4E8B\u4E9B\u4ED5\u4F3A\u4F3C\u4F7F\u4FDF\u50FF\u53F2\u53F8\u5506\u55E3\u56DB\u58EB\u5962\u5A11\u5BEB\u5BFA\u5C04\u5DF3\u5E2B\u5F99\u601D\u6368\u659C\u65AF\u67F6\u67FB\u68AD\u6B7B\u6C99\u6CD7\u6E23\u7009\u7345\u7802\u793E\u7940\u7960\u79C1\u7BE9\u7D17\u7D72\u8086\u820D\u838E\u84D1\u86C7\u88DF\u8A50\u8A5E\u8B1D\u8CDC\u8D66\u8FAD\u90AA\u98FC\u99DF\u9E9D\u524A\uF969\u6714\uF96A"],["dfa1","\u5098\u522A\u5C71\u6563\u6C55\u73CA\u7523\u759D\u7B97\u849C\u9178\u9730\u4E77\u6492\u6BBA\u715E\u85A9\u4E09\uF96B\u6749\u68EE\u6E17\u829F\u8518\u886B\u63F7\u6F81\u9212\u98AF\u4E0A\u50B7\u50CF\u511F\u5546\u55AA\u5617\u5B40\u5C19\u5CE0\u5E38\u5E8A\u5EA0\u5EC2\u60F3\u6851\u6A61\u6E58\u723D\u7240\u72C0\u76F8\u7965\u7BB1\u7FD4\u88F3\u89F4\u8A73\u8C61\u8CDE\u971C\u585E\u74BD\u8CFD\u55C7\uF96C\u7A61\u7D22\u8272\u7272\u751F\u7525\uF96D\u7B19\u5885\u58FB\u5DBC\u5E8F\u5EB6\u5F90\u6055\u6292\u637F\u654D\u6691\u66D9\u66F8\u6816\u68F2\u7280\u745E\u7B6E\u7D6E\u7DD6\u7F72"],["e0a1","\u80E5\u8212\u85AF\u897F\u8A93\u901D\u92E4\u9ECD\u9F20\u5915\u596D\u5E2D\u60DC\u6614\u6673\u6790\u6C50\u6DC5\u6F5F\u77F3\u78A9\u84C6\u91CB\u932B\u4ED9\u50CA\u5148\u5584\u5B0B\u5BA3\u6247\u657E\u65CB\u6E32\u717D\u7401\u7444\u7487\u74BF\u766C\u79AA\u7DDA\u7E55\u7FA8\u817A\u81B3\u8239\u861A\u87EC\u8A75\u8DE3\u9078\u9291\u9425\u994D\u9BAE\u5368\u5C51\u6954\u6CC4\u6D29\u6E2B\u820C\u859B\u893B\u8A2D\u8AAA\u96EA\u9F67\u5261\u66B9\u6BB2\u7E96\u87FE\u8D0D\u9583\u965D\u651D\u6D89\u71EE\uF96E\u57CE\u59D3\u5BAC\u6027\u60FA\u6210\u661F\u665F\u7329\u73F9\u76DB\u7701\u7B6C"],["e1a1","\u8056\u8072\u8165\u8AA0\u9192\u4E16\u52E2\u6B72\u6D17\u7A05\u7B39\u7D30\uF96F\u8CB0\u53EC\u562F\u5851\u5BB5\u5C0F\u5C11\u5DE2\u6240\u6383\u6414\u662D\u68B3\u6CBC\u6D88\u6EAF\u701F\u70A4\u71D2\u7526\u758F\u758E\u7619\u7B11\u7BE0\u7C2B\u7D20\u7D39\u852C\u856D\u8607\u8A34\u900D\u9061\u90B5\u92B7\u97F6\u9A37\u4FD7\u5C6C\u675F\u6D91\u7C9F\u7E8C\u8B16\u8D16\u901F\u5B6B\u5DFD\u640D\u84C0\u905C\u98E1\u7387\u5B8B\u609A\u677E\u6DDE\u8A1F\u8AA6\u9001\u980C\u5237\uF970\u7051\u788E\u9396\u8870\u91D7\u4FEE\u53D7\u55FD\u56DA\u5782\u58FD\u5AC2\u5B88\u5CAB\u5CC0\u5E25\u6101"],["e2a1","\u620D\u624B\u6388\u641C\u6536\u6578\u6A39\u6B8A\u6C34\u6D19\u6F31\u71E7\u72E9\u7378\u7407\u74B2\u7626\u7761\u79C0\u7A57\u7AEA\u7CB9\u7D8F\u7DAC\u7E61\u7F9E\u8129\u8331\u8490\u84DA\u85EA\u8896\u8AB0\u8B90\u8F38\u9042\u9083\u916C\u9296\u92B9\u968B\u96A7\u96A8\u96D6\u9700\u9808\u9996\u9AD3\u9B1A\u53D4\u587E\u5919\u5B70\u5BBF\u6DD1\u6F5A\u719F\u7421\u74B9\u8085\u83FD\u5DE1\u5F87\u5FAA\u6042\u65EC\u6812\u696F\u6A53\u6B89\u6D35\u6DF3\u73E3\u76FE\u77AC\u7B4D\u7D14\u8123\u821C\u8340\u84F4\u8563\u8A62\u8AC4\u9187\u931E\u9806\u99B4\u620C\u8853\u8FF0\u9265\u5D07\u5D27"],["e3a1","\u5D69\u745F\u819D\u8768\u6FD5\u62FE\u7FD2\u8936\u8972\u4E1E\u4E58\u50E7\u52DD\u5347\u627F\u6607\u7E69\u8805\u965E\u4F8D\u5319\u5636\u59CB\u5AA4\u5C38\u5C4E\u5C4D\u5E02\u5F11\u6043\u65BD\u662F\u6642\u67BE\u67F4\u731C\u77E2\u793A\u7FC5\u8494\u84CD\u8996\u8A66\u8A69\u8AE1\u8C55\u8C7A\u57F4\u5BD4\u5F0F\u606F\u62ED\u690D\u6B96\u6E5C\u7184\u7BD2\u8755\u8B58\u8EFE\u98DF\u98FE\u4F38\u4F81\u4FE1\u547B\u5A20\u5BB8\u613C\u65B0\u6668\u71FC\u7533\u795E\u7D33\u814E\u81E3\u8398\u85AA\u85CE\u8703\u8A0A\u8EAB\u8F9B\uF971\u8FC5\u5931\u5BA4\u5BE6\u6089\u5BE9\u5C0B\u5FC3\u6C81"],["e4a1","\uF972\u6DF1\u700B\u751A\u82AF\u8AF6\u4EC0\u5341\uF973\u96D9\u6C0F\u4E9E\u4FC4\u5152\u555E\u5A25\u5CE8\u6211\u7259\u82BD\u83AA\u86FE\u8859\u8A1D\u963F\u96C5\u9913\u9D09\u9D5D\u580A\u5CB3\u5DBD\u5E44\u60E1\u6115\u63E1\u6A02\u6E25\u9102\u9354\u984E\u9C10\u9F77\u5B89\u5CB8\u6309\u664F\u6848\u773C\u96C1\u978D\u9854\u9B9F\u65A1\u8B01\u8ECB\u95BC\u5535\u5CA9\u5DD6\u5EB5\u6697\u764C\u83F4\u95C7\u58D3\u62BC\u72CE\u9D28\u4EF0\u592E\u600F\u663B\u6B83\u79E7\u9D26\u5393\u54C0\u57C3\u5D16\u611B\u66D6\u6DAF\u788D\u827E\u9698\u9744\u5384\u627C\u6396\u6DB2\u7E0A\u814B\u984D"],["e5a1","\u6AFB\u7F4C\u9DAF\u9E1A\u4E5F\u503B\u51B6\u591C\u60F9\u63F6\u6930\u723A\u8036\uF974\u91CE\u5F31\uF975\uF976\u7D04\u82E5\u846F\u84BB\u85E5\u8E8D\uF977\u4F6F\uF978\uF979\u58E4\u5B43\u6059\u63DA\u6518\u656D\u6698\uF97A\u694A\u6A23\u6D0B\u7001\u716C\u75D2\u760D\u79B3\u7A70\uF97B\u7F8A\uF97C\u8944\uF97D\u8B93\u91C0\u967D\uF97E\u990A\u5704\u5FA1\u65BC\u6F01\u7600\u79A6\u8A9E\u99AD\u9B5A\u9F6C\u5104\u61B6\u6291\u6A8D\u81C6\u5043\u5830\u5F66\u7109\u8A00\u8AFA\u5B7C\u8616\u4FFA\u513C\u56B4\u5944\u63A9\u6DF9\u5DAA\u696D\u5186\u4E88\u4F59\uF97F\uF980\uF981\u5982\uF982"],["e6a1","\uF983\u6B5F\u6C5D\uF984\u74B5\u7916\uF985\u8207\u8245\u8339\u8F3F\u8F5D\uF986\u9918\uF987\uF988\uF989\u4EA6\uF98A\u57DF\u5F79\u6613\uF98B\uF98C\u75AB\u7E79\u8B6F\uF98D\u9006\u9A5B\u56A5\u5827\u59F8\u5A1F\u5BB4\uF98E\u5EF6\uF98F\uF990\u6350\u633B\uF991\u693D\u6C87\u6CBF\u6D8E\u6D93\u6DF5\u6F14\uF992\u70DF\u7136\u7159\uF993\u71C3\u71D5\uF994\u784F\u786F\uF995\u7B75\u7DE3\uF996\u7E2F\uF997\u884D\u8EDF\uF998\uF999\uF99A\u925B\uF99B\u9CF6\uF99C\uF99D\uF99E\u6085\u6D85\uF99F\u71B1\uF9A0\uF9A1\u95B1\u53AD\uF9A2\uF9A3\uF9A4\u67D3\uF9A5\u708E\u7130\u7430\u8276\u82D2"],["e7a1","\uF9A6\u95BB\u9AE5\u9E7D\u66C4\uF9A7\u71C1\u8449\uF9A8\uF9A9\u584B\uF9AA\uF9AB\u5DB8\u5F71\uF9AC\u6620\u668E\u6979\u69AE\u6C38\u6CF3\u6E36\u6F41\u6FDA\u701B\u702F\u7150\u71DF\u7370\uF9AD\u745B\uF9AE\u74D4\u76C8\u7A4E\u7E93\uF9AF\uF9B0\u82F1\u8A60\u8FCE\uF9B1\u9348\uF9B2\u9719\uF9B3\uF9B4\u4E42\u502A\uF9B5\u5208\u53E1\u66F3\u6C6D\u6FCA\u730A\u777F\u7A62\u82AE\u85DD\u8602\uF9B6\u88D4\u8A63\u8B7D\u8C6B\uF9B7\u92B3\uF9B8\u9713\u9810\u4E94\u4F0D\u4FC9\u50B2\u5348\u543E\u5433\u55DA\u5862\u58BA\u5967\u5A1B\u5BE4\u609F\uF9B9\u61CA\u6556\u65FF\u6664\u68A7\u6C5A\u6FB3"],["e8a1","\u70CF\u71AC\u7352\u7B7D\u8708\u8AA4\u9C32\u9F07\u5C4B\u6C83\u7344\u7389\u923A\u6EAB\u7465\u761F\u7A69\u7E15\u860A\u5140\u58C5\u64C1\u74EE\u7515\u7670\u7FC1\u9095\u96CD\u9954\u6E26\u74E6\u7AA9\u7AAA\u81E5\u86D9\u8778\u8A1B\u5A49\u5B8C\u5B9B\u68A1\u6900\u6D63\u73A9\u7413\u742C\u7897\u7DE9\u7FEB\u8118\u8155\u839E\u8C4C\u962E\u9811\u66F0\u5F80\u65FA\u6789\u6C6A\u738B\u502D\u5A03\u6B6A\u77EE\u5916\u5D6C\u5DCD\u7325\u754F\uF9BA\uF9BB\u50E5\u51F9\u582F\u592D\u5996\u59DA\u5BE5\uF9BC\uF9BD\u5DA2\u62D7\u6416\u6493\u64FE\uF9BE\u66DC\uF9BF\u6A48\uF9C0\u71FF\u7464\uF9C1"],["e9a1","\u7A88\u7AAF\u7E47\u7E5E\u8000\u8170\uF9C2\u87EF\u8981\u8B20\u9059\uF9C3\u9080\u9952\u617E\u6B32\u6D74\u7E1F\u8925\u8FB1\u4FD1\u50AD\u5197\u52C7\u57C7\u5889\u5BB9\u5EB8\u6142\u6995\u6D8C\u6E67\u6EB6\u7194\u7462\u7528\u752C\u8073\u8338\u84C9\u8E0A\u9394\u93DE\uF9C4\u4E8E\u4F51\u5076\u512A\u53C8\u53CB\u53F3\u5B87\u5BD3\u5C24\u611A\u6182\u65F4\u725B\u7397\u7440\u76C2\u7950\u7991\u79B9\u7D06\u7FBD\u828B\u85D5\u865E\u8FC2\u9047\u90F5\u91EA\u9685\u96E8\u96E9\u52D6\u5F67\u65ED\u6631\u682F\u715C\u7A36\u90C1\u980A\u4E91\uF9C5\u6A52\u6B9E\u6F90\u7189\u8018\u82B8\u8553"],["eaa1","\u904B\u9695\u96F2\u97FB\u851A\u9B31\u4E90\u718A\u96C4\u5143\u539F\u54E1\u5713\u5712\u57A3\u5A9B\u5AC4\u5BC3\u6028\u613F\u63F4\u6C85\u6D39\u6E72\u6E90\u7230\u733F\u7457\u82D1\u8881\u8F45\u9060\uF9C6\u9662\u9858\u9D1B\u6708\u8D8A\u925E\u4F4D\u5049\u50DE\u5371\u570D\u59D4\u5A01\u5C09\u6170\u6690\u6E2D\u7232\u744B\u7DEF\u80C3\u840E\u8466\u853F\u875F\u885B\u8918\u8B02\u9055\u97CB\u9B4F\u4E73\u4F91\u5112\u516A\uF9C7\u552F\u55A9\u5B7A\u5BA5\u5E7C\u5E7D\u5EBE\u60A0\u60DF\u6108\u6109\u63C4\u6538\u6709\uF9C8\u67D4\u67DA\uF9C9\u6961\u6962\u6CB9\u6D27\uF9CA\u6E38\uF9CB"],["eba1","\u6FE1\u7336\u7337\uF9CC\u745C\u7531\uF9CD\u7652\uF9CE\uF9CF\u7DAD\u81FE\u8438\u88D5\u8A98\u8ADB\u8AED\u8E30\u8E42\u904A\u903E\u907A\u9149\u91C9\u936E\uF9D0\uF9D1\u5809\uF9D2\u6BD3\u8089\u80B2\uF9D3\uF9D4\u5141\u596B\u5C39\uF9D5\uF9D6\u6F64\u73A7\u80E4\u8D07\uF9D7\u9217\u958F\uF9D8\uF9D9\uF9DA\uF9DB\u807F\u620E\u701C\u7D68\u878D\uF9DC\u57A0\u6069\u6147\u6BB7\u8ABE\u9280\u96B1\u4E59\u541F\u6DEB\u852D\u9670\u97F3\u98EE\u63D6\u6CE3\u9091\u51DD\u61C9\u81BA\u9DF9\u4F9D\u501A\u5100\u5B9C\u610F\u61FF\u64EC\u6905\u6BC5\u7591\u77E3\u7FA9\u8264\u858F\u87FB\u8863\u8ABC"],["eca1","\u8B70\u91AB\u4E8C\u4EE5\u4F0A\uF9DD\uF9DE\u5937\u59E8\uF9DF\u5DF2\u5F1B\u5F5B\u6021\uF9E0\uF9E1\uF9E2\uF9E3\u723E\u73E5\uF9E4\u7570\u75CD\uF9E5\u79FB\uF9E6\u800C\u8033\u8084\u82E1\u8351\uF9E7\uF9E8\u8CBD\u8CB3\u9087\uF9E9\uF9EA\u98F4\u990C\uF9EB\uF9EC\u7037\u76CA\u7FCA\u7FCC\u7FFC\u8B1A\u4EBA\u4EC1\u5203\u5370\uF9ED\u54BD\u56E0\u59FB\u5BC5\u5F15\u5FCD\u6E6E\uF9EE\uF9EF\u7D6A\u8335\uF9F0\u8693\u8A8D\uF9F1\u976D\u9777\uF9F2\uF9F3\u4E00\u4F5A\u4F7E\u58F9\u65E5\u6EA2\u9038\u93B0\u99B9\u4EFB\u58EC\u598A\u59D9\u6041\uF9F4\uF9F5\u7A14\uF9F6\u834F\u8CC3\u5165\u5344"],["eda1","\uF9F7\uF9F8\uF9F9\u4ECD\u5269\u5B55\u82BF\u4ED4\u523A\u54A8\u59C9\u59FF\u5B50\u5B57\u5B5C\u6063\u6148\u6ECB\u7099\u716E\u7386\u74F7\u75B5\u78C1\u7D2B\u8005\u81EA\u8328\u8517\u85C9\u8AEE\u8CC7\u96CC\u4F5C\u52FA\u56BC\u65AB\u6628\u707C\u70B8\u7235\u7DBD\u828D\u914C\u96C0\u9D72\u5B71\u68E7\u6B98\u6F7A\u76DE\u5C91\u66AB\u6F5B\u7BB4\u7C2A\u8836\u96DC\u4E08\u4ED7\u5320\u5834\u58BB\u58EF\u596C\u5C07\u5E33\u5E84\u5F35\u638C\u66B2\u6756\u6A1F\u6AA3\u6B0C\u6F3F\u7246\uF9FA\u7350\u748B\u7AE0\u7CA7\u8178\u81DF\u81E7\u838A\u846C\u8523\u8594\u85CF\u88DD\u8D13\u91AC\u9577"],["eea1","\u969C\u518D\u54C9\u5728\u5BB0\u624D\u6750\u683D\u6893\u6E3D\u6ED3\u707D\u7E21\u88C1\u8CA1\u8F09\u9F4B\u9F4E\u722D\u7B8F\u8ACD\u931A\u4F47\u4F4E\u5132\u5480\u59D0\u5E95\u62B5\u6775\u696E\u6A17\u6CAE\u6E1A\u72D9\u732A\u75BD\u7BB8\u7D35\u82E7\u83F9\u8457\u85F7\u8A5B\u8CAF\u8E87\u9019\u90B8\u96CE\u9F5F\u52E3\u540A\u5AE1\u5BC2\u6458\u6575\u6EF4\u72C4\uF9FB\u7684\u7A4D\u7B1B\u7C4D\u7E3E\u7FDF\u837B\u8B2B\u8CCA\u8D64\u8DE1\u8E5F\u8FEA\u8FF9\u9069\u93D1\u4F43\u4F7A\u50B3\u5168\u5178\u524D\u526A\u5861\u587C\u5960\u5C08\u5C55\u5EDB\u609B\u6230\u6813\u6BBF\u6C08\u6FB1"],["efa1","\u714E\u7420\u7530\u7538\u7551\u7672\u7B4C\u7B8B\u7BAD\u7BC6\u7E8F\u8A6E\u8F3E\u8F49\u923F\u9293\u9322\u942B\u96FB\u985A\u986B\u991E\u5207\u622A\u6298\u6D59\u7664\u7ACA\u7BC0\u7D76\u5360\u5CBE\u5E97\u6F38\u70B9\u7C98\u9711\u9B8E\u9EDE\u63A5\u647A\u8776\u4E01\u4E95\u4EAD\u505C\u5075\u5448\u59C3\u5B9A\u5E40\u5EAD\u5EF7\u5F81\u60C5\u633A\u653F\u6574\u65CC\u6676\u6678\u67FE\u6968\u6A89\u6B63\u6C40\u6DC0\u6DE8\u6E1F\u6E5E\u701E\u70A1\u738E\u73FD\u753A\u775B\u7887\u798E\u7A0B\u7A7D\u7CBE\u7D8E\u8247\u8A02\u8AEA\u8C9E\u912D\u914A\u91D8\u9266\u92CC\u9320\u9706\u9756"],["f0a1","\u975C\u9802\u9F0E\u5236\u5291\u557C\u5824\u5E1D\u5F1F\u608C\u63D0\u68AF\u6FDF\u796D\u7B2C\u81CD\u85BA\u88FD\u8AF8\u8E44\u918D\u9664\u969B\u973D\u984C\u9F4A\u4FCE\u5146\u51CB\u52A9\u5632\u5F14\u5F6B\u63AA\u64CD\u65E9\u6641\u66FA\u66F9\u671D\u689D\u68D7\u69FD\u6F15\u6F6E\u7167\u71E5\u722A\u74AA\u773A\u7956\u795A\u79DF\u7A20\u7A95\u7C97\u7CDF\u7D44\u7E70\u8087\u85FB\u86A4\u8A54\u8ABF\u8D99\u8E81\u9020\u906D\u91E3\u963B\u96D5\u9CE5\u65CF\u7C07\u8DB3\u93C3\u5B58\u5C0A\u5352\u62D9\u731D\u5027\u5B97\u5F9E\u60B0\u616B\u68D5\u6DD9\u742E\u7A2E\u7D42\u7D9C\u7E31\u816B"],["f1a1","\u8E2A\u8E35\u937E\u9418\u4F50\u5750\u5DE6\u5EA7\u632B\u7F6A\u4E3B\u4F4F\u4F8F\u505A\u59DD\u80C4\u546A\u5468\u55FE\u594F\u5B99\u5DDE\u5EDA\u665D\u6731\u67F1\u682A\u6CE8\u6D32\u6E4A\u6F8D\u70B7\u73E0\u7587\u7C4C\u7D02\u7D2C\u7DA2\u821F\u86DB\u8A3B\u8A85\u8D70\u8E8A\u8F33\u9031\u914E\u9152\u9444\u99D0\u7AF9\u7CA5\u4FCA\u5101\u51C6\u57C8\u5BEF\u5CFB\u6659\u6A3D\u6D5A\u6E96\u6FEC\u710C\u756F\u7AE3\u8822\u9021\u9075\u96CB\u99FF\u8301\u4E2D\u4EF2\u8846\u91CD\u537D\u6ADB\u696B\u6C41\u847A\u589E\u618E\u66FE\u62EF\u70DD\u7511\u75C7\u7E52\u84B8\u8B49\u8D08\u4E4B\u53EA"],["f2a1","\u54AB\u5730\u5740\u5FD7\u6301\u6307\u646F\u652F\u65E8\u667A\u679D\u67B3\u6B62\u6C60\u6C9A\u6F2C\u77E5\u7825\u7949\u7957\u7D19\u80A2\u8102\u81F3\u829D\u82B7\u8718\u8A8C\uF9FC\u8D04\u8DBE\u9072\u76F4\u7A19\u7A37\u7E54\u8077\u5507\u55D4\u5875\u632F\u6422\u6649\u664B\u686D\u699B\u6B84\u6D25\u6EB1\u73CD\u7468\u74A1\u755B\u75B9\u76E1\u771E\u778B\u79E6\u7E09\u7E1D\u81FB\u852F\u8897\u8A3A\u8CD1\u8EEB\u8FB0\u9032\u93AD\u9663\u9673\u9707\u4F84\u53F1\u59EA\u5AC9\u5E19\u684E\u74C6\u75BE\u79E9\u7A92\u81A3\u86ED\u8CEA\u8DCC\u8FED\u659F\u6715\uF9FD\u57F7\u6F57\u7DDD\u8F2F"],["f3a1","\u93F6\u96C6\u5FB5\u61F2\u6F84\u4E14\u4F98\u501F\u53C9\u55DF\u5D6F\u5DEE\u6B21\u6B64\u78CB\u7B9A\uF9FE\u8E49\u8ECA\u906E\u6349\u643E\u7740\u7A84\u932F\u947F\u9F6A\u64B0\u6FAF\u71E6\u74A8\u74DA\u7AC4\u7C12\u7E82\u7CB2\u7E98\u8B9A\u8D0A\u947D\u9910\u994C\u5239\u5BDF\u64E6\u672D\u7D2E\u50ED\u53C3\u5879\u6158\u6159\u61FA\u65AC\u7AD9\u8B92\u8B96\u5009\u5021\u5275\u5531\u5A3C\u5EE0\u5F70\u6134\u655E\u660C\u6636\u66A2\u69CD\u6EC4\u6F32\u7316\u7621\u7A93\u8139\u8259\u83D6\u84BC\u50B5\u57F0\u5BC0\u5BE8\u5F69\u63A1\u7826\u7DB5\u83DC\u8521\u91C7\u91F5\u518A\u67F5\u7B56"],["f4a1","\u8CAC\u51C4\u59BB\u60BD\u8655\u501C\uF9FF\u5254\u5C3A\u617D\u621A\u62D3\u64F2\u65A5\u6ECC\u7620\u810A\u8E60\u965F\u96BB\u4EDF\u5343\u5598\u5929\u5DDD\u64C5\u6CC9\u6DFA\u7394\u7A7F\u821B\u85A6\u8CE4\u8E10\u9077\u91E7\u95E1\u9621\u97C6\u51F8\u54F2\u5586\u5FB9\u64A4\u6F88\u7DB4\u8F1F\u8F4D\u9435\u50C9\u5C16\u6CBE\u6DFB\u751B\u77BB\u7C3D\u7C64\u8A79\u8AC2\u581E\u59BE\u5E16\u6377\u7252\u758A\u776B\u8ADC\u8CBC\u8F12\u5EF3\u6674\u6DF8\u807D\u83C1\u8ACB\u9751\u9BD6\uFA00\u5243\u66FF\u6D95\u6EEF\u7DE0\u8AE6\u902E\u905E\u9AD4\u521D\u527F\u54E8\u6194\u6284\u62DB\u68A2"],["f5a1","\u6912\u695A\u6A35\u7092\u7126\u785D\u7901\u790E\u79D2\u7A0D\u8096\u8278\u82D5\u8349\u8549\u8C82\u8D85\u9162\u918B\u91AE\u4FC3\u56D1\u71ED\u77D7\u8700\u89F8\u5BF8\u5FD6\u6751\u90A8\u53E2\u585A\u5BF5\u60A4\u6181\u6460\u7E3D\u8070\u8525\u9283\u64AE\u50AC\u5D14\u6700\u589C\u62BD\u63A8\u690E\u6978\u6A1E\u6E6B\u76BA\u79CB\u82BB\u8429\u8ACF\u8DA8\u8FFD\u9112\u914B\u919C\u9310\u9318\u939A\u96DB\u9A36\u9C0D\u4E11\u755C\u795D\u7AFA\u7B51\u7BC9\u7E2E\u84C4\u8E59\u8E74\u8EF8\u9010\u6625\u693F\u7443\u51FA\u672E\u9EDC\u5145\u5FE0\u6C96\u87F2\u885D\u8877\u60B4\u81B5\u8403"],["f6a1","\u8D05\u53D6\u5439\u5634\u5A36\u5C31\u708A\u7FE0\u805A\u8106\u81ED\u8DA3\u9189\u9A5F\u9DF2\u5074\u4EC4\u53A0\u60FB\u6E2C\u5C64\u4F88\u5024\u55E4\u5CD9\u5E5F\u6065\u6894\u6CBB\u6DC4\u71BE\u75D4\u75F4\u7661\u7A1A\u7A49\u7DC7\u7DFB\u7F6E\u81F4\u86A9\u8F1C\u96C9\u99B3\u9F52\u5247\u52C5\u98ED\u89AA\u4E03\u67D2\u6F06\u4FB5\u5BE2\u6795\u6C88\u6D78\u741B\u7827\u91DD\u937C\u87C4\u79E4\u7A31\u5FEB\u4ED6\u54A4\u553E\u58AE\u59A5\u60F0\u6253\u62D6\u6736\u6955\u8235\u9640\u99B1\u99DD\u502C\u5353\u5544\u577C\uFA01\u6258\uFA02\u64E2\u666B\u67DD\u6FC1\u6FEF\u7422\u7438\u8A17"],["f7a1","\u9438\u5451\u5606\u5766\u5F48\u619A\u6B4E\u7058\u70AD\u7DBB\u8A95\u596A\u812B\u63A2\u7708\u803D\u8CAA\u5854\u642D\u69BB\u5B95\u5E11\u6E6F\uFA03\u8569\u514C\u53F0\u592A\u6020\u614B\u6B86\u6C70\u6CF0\u7B1E\u80CE\u82D4\u8DC6\u90B0\u98B1\uFA04\u64C7\u6FA4\u6491\u6504\u514E\u5410\u571F\u8A0E\u615F\u6876\uFA05\u75DB\u7B52\u7D71\u901A\u5806\u69CC\u817F\u892A\u9000\u9839\u5078\u5957\u59AC\u6295\u900F\u9B2A\u615D\u7279\u95D6\u5761\u5A46\u5DF4\u628A\u64AD\u64FA\u6777\u6CE2\u6D3E\u722C\u7436\u7834\u7F77\u82AD\u8DDB\u9817\u5224\u5742\u677F\u7248\u74E3\u8CA9\u8FA6\u9211"],["f8a1","\u962A\u516B\u53ED\u634C\u4F69\u5504\u6096\u6557\u6C9B\u6D7F\u724C\u72FD\u7A17\u8987\u8C9D\u5F6D\u6F8E\u70F9\u81A8\u610E\u4FBF\u504F\u6241\u7247\u7BC7\u7DE8\u7FE9\u904D\u97AD\u9A19\u8CB6\u576A\u5E73\u67B0\u840D\u8A55\u5420\u5B16\u5E63\u5EE2\u5F0A\u6583\u80BA\u853D\u9589\u965B\u4F48\u5305\u530D\u530F\u5486\u54FA\u5703\u5E03\u6016\u629B\u62B1\u6355\uFA06\u6CE1\u6D66\u75B1\u7832\u80DE\u812F\u82DE\u8461\u84B2\u888D\u8912\u900B\u92EA\u98FD\u9B91\u5E45\u66B4\u66DD\u7011\u7206\uFA07\u4FF5\u527D\u5F6A\u6153\u6753\u6A19\u6F02\u74E2\u7968\u8868\u8C79\u98C7\u98C4\u9A43"],["f9a1","\u54C1\u7A1F\u6953\u8AF7\u8C4A\u98A8\u99AE\u5F7C\u62AB\u75B2\u76AE\u88AB\u907F\u9642\u5339\u5F3C\u5FC5\u6CCC\u73CC\u7562\u758B\u7B46\u82FE\u999D\u4E4F\u903C\u4E0B\u4F55\u53A6\u590F\u5EC8\u6630\u6CB3\u7455\u8377\u8766\u8CC0\u9050\u971E\u9C15\u58D1\u5B78\u8650\u8B14\u9DB4\u5BD2\u6068\u608D\u65F1\u6C57\u6F22\u6FA3\u701A\u7F55\u7FF0\u9591\u9592\u9650\u97D3\u5272\u8F44\u51FD\u542B\u54B8\u5563\u558A\u6ABB\u6DB5\u7DD8\u8266\u929C\u9677\u9E79\u5408\u54C8\u76D2\u86E4\u95A4\u95D4\u965C\u4EA2\u4F09\u59EE\u5AE6\u5DF7\u6052\u6297\u676D\u6841\u6C86\u6E2F\u7F38\u809B\u822A"],["faa1","\uFA08\uFA09\u9805\u4EA5\u5055\u54B3\u5793\u595A\u5B69\u5BB3\u61C8\u6977\u6D77\u7023\u87F9\u89E3\u8A72\u8AE7\u9082\u99ED\u9AB8\u52BE\u6838\u5016\u5E78\u674F\u8347\u884C\u4EAB\u5411\u56AE\u73E6\u9115\u97FF\u9909\u9957\u9999\u5653\u589F\u865B\u8A31\u61B2\u6AF6\u737B\u8ED2\u6B47\u96AA\u9A57\u5955\u7200\u8D6B\u9769\u4FD4\u5CF4\u5F26\u61F8\u665B\u6CEB\u70AB\u7384\u73B9\u73FE\u7729\u774D\u7D43\u7D62\u7E23\u8237\u8852\uFA0A\u8CE2\u9249\u986F\u5B51\u7A74\u8840\u9801\u5ACC\u4FE0\u5354\u593E\u5CFD\u633E\u6D79\u72F9\u8105\u8107\u83A2\u92CF\u9830\u4EA8\u5144\u5211\u578B"],["fba1","\u5F62\u6CC2\u6ECE\u7005\u7050\u70AF\u7192\u73E9\u7469\u834A\u87A2\u8861\u9008\u90A2\u93A3\u99A8\u516E\u5F57\u60E0\u6167\u66B3\u8559\u8E4A\u91AF\u978B\u4E4E\u4E92\u547C\u58D5\u58FA\u597D\u5CB5\u5F27\u6236\u6248\u660A\u6667\u6BEB\u6D69\u6DCF\u6E56\u6EF8\u6F94\u6FE0\u6FE9\u705D\u72D0\u7425\u745A\u74E0\u7693\u795C\u7CCA\u7E1E\u80E1\u82A6\u846B\u84BF\u864E\u865F\u8774\u8B77\u8C6A\u93AC\u9800\u9865\u60D1\u6216\u9177\u5A5A\u660F\u6DF7\u6E3E\u743F\u9B42\u5FFD\u60DA\u7B0F\u54C4\u5F18\u6C5E\u6CD3\u6D2A\u70D8\u7D05\u8679\u8A0C\u9D3B\u5316\u548C\u5B05\u6A3A\u706B\u7575"],["fca1","\u798D\u79BE\u82B1\u83EF\u8A71\u8B41\u8CA8\u9774\uFA0B\u64F4\u652B\u78BA\u78BB\u7A6B\u4E38\u559A\u5950\u5BA6\u5E7B\u60A3\u63DB\u6B61\u6665\u6853\u6E19\u7165\u74B0\u7D08\u9084\u9A69\u9C25\u6D3B\u6ED1\u733E\u8C41\u95CA\u51F0\u5E4C\u5FA8\u604D\u60F6\u6130\u614C\u6643\u6644\u69A5\u6CC1\u6E5F\u6EC9\u6F62\u714C\u749C\u7687\u7BC1\u7C27\u8352\u8757\u9051\u968D\u9EC3\u532F\u56DE\u5EFB\u5F8A\u6062\u6094\u61F7\u6666\u6703\u6A9C\u6DEE\u6FAE\u7070\u736A\u7E6A\u81BE\u8334\u86D4\u8AA8\u8CC4\u5283\u7372\u5B96\u6A6B\u9404\u54EE\u5686\u5B5D\u6548\u6585\u66C9\u689F\u6D8D\u6DC6"],["fda1","\u723B\u80B4\u9175\u9A4D\u4FAF\u5019\u539A\u540E\u543C\u5589\u55C5\u5E3F\u5F8C\u673D\u7166\u73DD\u9005\u52DB\u52F3\u5864\u58CE\u7104\u718F\u71FB\u85B0\u8A13\u6688\u85A8\u55A7\u6684\u714A\u8431\u5349\u5599\u6BC1\u5F59\u5FBD\u63EE\u6689\u7147\u8AF1\u8F1D\u9EBE\u4F11\u643A\u70CB\u7566\u8667\u6064\u8B4E\u9DF8\u5147\u51F6\u5308\u6D36\u80F8\u9ED1\u6615\u6B23\u7098\u75D5\u5403\u5C79\u7D07\u8A16\u6B20\u6B3D\u6B46\u5438\u6070\u6D3D\u7FD5\u8208\u50D6\u51DE\u559C\u566B\u56CD\u59EC\u5B09\u5E0C\u6199\u6198\u6231\u665E\u66E6\u7199\u71B9\u71BA\u72A7\u79A7\u7A00\u7FB2\u8A70"]]});var Lw=T((PIe,wX)=>{wX.exports=[["0","\0",127],["a140","\u3000\uFF0C\u3001\u3002\uFF0E\u2027\uFF1B\uFF1A\uFF1F\uFF01\uFE30\u2026\u2025\uFE50\uFE51\uFE52\xB7\uFE54\uFE55\uFE56\uFE57\uFF5C\u2013\uFE31\u2014\uFE33\u2574\uFE34\uFE4F\uFF08\uFF09\uFE35\uFE36\uFF5B\uFF5D\uFE37\uFE38\u3014\u3015\uFE39\uFE3A\u3010\u3011\uFE3B\uFE3C\u300A\u300B\uFE3D\uFE3E\u3008\u3009\uFE3F\uFE40\u300C\u300D\uFE41\uFE42\u300E\u300F\uFE43\uFE44\uFE59\uFE5A"],["a1a1","\uFE5B\uFE5C\uFE5D\uFE5E\u2018\u2019\u201C\u201D\u301D\u301E\u2035\u2032\uFF03\uFF06\uFF0A\u203B\xA7\u3003\u25CB\u25CF\u25B3\u25B2\u25CE\u2606\u2605\u25C7\u25C6\u25A1\u25A0\u25BD\u25BC\u32A3\u2105\xAF\uFFE3\uFF3F\u02CD\uFE49\uFE4A\uFE4D\uFE4E\uFE4B\uFE4C\uFE5F\uFE60\uFE61\uFF0B\uFF0D\xD7\xF7\xB1\u221A\uFF1C\uFF1E\uFF1D\u2266\u2267\u2260\u221E\u2252\u2261\uFE62",4,"\uFF5E\u2229\u222A\u22A5\u2220\u221F\u22BF\u33D2\u33D1\u222B\u222E\u2235\u2234\u2640\u2642\u2295\u2299\u2191\u2193\u2190\u2192\u2196\u2197\u2199\u2198\u2225\u2223\uFF0F"],["a240","\uFF3C\u2215\uFE68\uFF04\uFFE5\u3012\uFFE0\uFFE1\uFF05\uFF20\u2103\u2109\uFE69\uFE6A\uFE6B\u33D5\u339C\u339D\u339E\u33CE\u33A1\u338E\u338F\u33C4\xB0\u5159\u515B\u515E\u515D\u5161\u5163\u55E7\u74E9\u7CCE\u2581",7,"\u258F\u258E\u258D\u258C\u258B\u258A\u2589\u253C\u2534\u252C\u2524\u251C\u2594\u2500\u2502\u2595\u250C\u2510\u2514\u2518\u256D"],["a2a1","\u256E\u2570\u256F\u2550\u255E\u256A\u2561\u25E2\u25E3\u25E5\u25E4\u2571\u2572\u2573\uFF10",9,"\u2160",9,"\u3021",8,"\u5341\u5344\u5345\uFF21",25,"\uFF41",21],["a340","\uFF57\uFF58\uFF59\uFF5A\u0391",16,"\u03A3",6,"\u03B1",16,"\u03C3",6,"\u3105",10],["a3a1","\u3110",25,"\u02D9\u02C9\u02CA\u02C7\u02CB"],["a3e1","\u20AC"],["a440","\u4E00\u4E59\u4E01\u4E03\u4E43\u4E5D\u4E86\u4E8C\u4EBA\u513F\u5165\u516B\u51E0\u5200\u5201\u529B\u5315\u5341\u535C\u53C8\u4E09\u4E0B\u4E08\u4E0A\u4E2B\u4E38\u51E1\u4E45\u4E48\u4E5F\u4E5E\u4E8E\u4EA1\u5140\u5203\u52FA\u5343\u53C9\u53E3\u571F\u58EB\u5915\u5927\u5973\u5B50\u5B51\u5B53\u5BF8\u5C0F\u5C22\u5C38\u5C71\u5DDD\u5DE5\u5DF1\u5DF2\u5DF3\u5DFE\u5E72\u5EFE\u5F0B\u5F13\u624D"],["a4a1","\u4E11\u4E10\u4E0D\u4E2D\u4E30\u4E39\u4E4B\u5C39\u4E88\u4E91\u4E95\u4E92\u4E94\u4EA2\u4EC1\u4EC0\u4EC3\u4EC6\u4EC7\u4ECD\u4ECA\u4ECB\u4EC4\u5143\u5141\u5167\u516D\u516E\u516C\u5197\u51F6\u5206\u5207\u5208\u52FB\u52FE\u52FF\u5316\u5339\u5348\u5347\u5345\u535E\u5384\u53CB\u53CA\u53CD\u58EC\u5929\u592B\u592A\u592D\u5B54\u5C11\u5C24\u5C3A\u5C6F\u5DF4\u5E7B\u5EFF\u5F14\u5F15\u5FC3\u6208\u6236\u624B\u624E\u652F\u6587\u6597\u65A4\u65B9\u65E5\u66F0\u6708\u6728\u6B20\u6B62\u6B79\u6BCB\u6BD4\u6BDB\u6C0F\u6C34\u706B\u722A\u7236\u723B\u7247\u7259\u725B\u72AC\u738B\u4E19"],["a540","\u4E16\u4E15\u4E14\u4E18\u4E3B\u4E4D\u4E4F\u4E4E\u4EE5\u4ED8\u4ED4\u4ED5\u4ED6\u4ED7\u4EE3\u4EE4\u4ED9\u4EDE\u5145\u5144\u5189\u518A\u51AC\u51F9\u51FA\u51F8\u520A\u52A0\u529F\u5305\u5306\u5317\u531D\u4EDF\u534A\u5349\u5361\u5360\u536F\u536E\u53BB\u53EF\u53E4\u53F3\u53EC\u53EE\u53E9\u53E8\u53FC\u53F8\u53F5\u53EB\u53E6\u53EA\u53F2\u53F1\u53F0\u53E5\u53ED\u53FB\u56DB\u56DA\u5916"],["a5a1","\u592E\u5931\u5974\u5976\u5B55\u5B83\u5C3C\u5DE8\u5DE7\u5DE6\u5E02\u5E03\u5E73\u5E7C\u5F01\u5F18\u5F17\u5FC5\u620A\u6253\u6254\u6252\u6251\u65A5\u65E6\u672E\u672C\u672A\u672B\u672D\u6B63\u6BCD\u6C11\u6C10\u6C38\u6C41\u6C40\u6C3E\u72AF\u7384\u7389\u74DC\u74E6\u7518\u751F\u7528\u7529\u7530\u7531\u7532\u7533\u758B\u767D\u76AE\u76BF\u76EE\u77DB\u77E2\u77F3\u793A\u79BE\u7A74\u7ACB\u4E1E\u4E1F\u4E52\u4E53\u4E69\u4E99\u4EA4\u4EA6\u4EA5\u4EFF\u4F09\u4F19\u4F0A\u4F15\u4F0D\u4F10\u4F11\u4F0F\u4EF2\u4EF6\u4EFB\u4EF0\u4EF3\u4EFD\u4F01\u4F0B\u5149\u5147\u5146\u5148\u5168"],["a640","\u5171\u518D\u51B0\u5217\u5211\u5212\u520E\u5216\u52A3\u5308\u5321\u5320\u5370\u5371\u5409\u540F\u540C\u540A\u5410\u5401\u540B\u5404\u5411\u540D\u5408\u5403\u540E\u5406\u5412\u56E0\u56DE\u56DD\u5733\u5730\u5728\u572D\u572C\u572F\u5729\u5919\u591A\u5937\u5938\u5984\u5978\u5983\u597D\u5979\u5982\u5981\u5B57\u5B58\u5B87\u5B88\u5B85\u5B89\u5BFA\u5C16\u5C79\u5DDE\u5E06\u5E76\u5E74"],["a6a1","\u5F0F\u5F1B\u5FD9\u5FD6\u620E\u620C\u620D\u6210\u6263\u625B\u6258\u6536\u65E9\u65E8\u65EC\u65ED\u66F2\u66F3\u6709\u673D\u6734\u6731\u6735\u6B21\u6B64\u6B7B\u6C16\u6C5D\u6C57\u6C59\u6C5F\u6C60\u6C50\u6C55\u6C61\u6C5B\u6C4D\u6C4E\u7070\u725F\u725D\u767E\u7AF9\u7C73\u7CF8\u7F36\u7F8A\u7FBD\u8001\u8003\u800C\u8012\u8033\u807F\u8089\u808B\u808C\u81E3\u81EA\u81F3\u81FC\u820C\u821B\u821F\u826E\u8272\u827E\u866B\u8840\u884C\u8863\u897F\u9621\u4E32\u4EA8\u4F4D\u4F4F\u4F47\u4F57\u4F5E\u4F34\u4F5B\u4F55\u4F30\u4F50\u4F51\u4F3D\u4F3A\u4F38\u4F43\u4F54\u4F3C\u4F46\u4F63"],["a740","\u4F5C\u4F60\u4F2F\u4F4E\u4F36\u4F59\u4F5D\u4F48\u4F5A\u514C\u514B\u514D\u5175\u51B6\u51B7\u5225\u5224\u5229\u522A\u5228\u52AB\u52A9\u52AA\u52AC\u5323\u5373\u5375\u541D\u542D\u541E\u543E\u5426\u544E\u5427\u5446\u5443\u5433\u5448\u5442\u541B\u5429\u544A\u5439\u543B\u5438\u542E\u5435\u5436\u5420\u543C\u5440\u5431\u542B\u541F\u542C\u56EA\u56F0\u56E4\u56EB\u574A\u5751\u5740\u574D"],["a7a1","\u5747\u574E\u573E\u5750\u574F\u573B\u58EF\u593E\u599D\u5992\u59A8\u599E\u59A3\u5999\u5996\u598D\u59A4\u5993\u598A\u59A5\u5B5D\u5B5C\u5B5A\u5B5B\u5B8C\u5B8B\u5B8F\u5C2C\u5C40\u5C41\u5C3F\u5C3E\u5C90\u5C91\u5C94\u5C8C\u5DEB\u5E0C\u5E8F\u5E87\u5E8A\u5EF7\u5F04\u5F1F\u5F64\u5F62\u5F77\u5F79\u5FD8\u5FCC\u5FD7\u5FCD\u5FF1\u5FEB\u5FF8\u5FEA\u6212\u6211\u6284\u6297\u6296\u6280\u6276\u6289\u626D\u628A\u627C\u627E\u6279\u6273\u6292\u626F\u6298\u626E\u6295\u6293\u6291\u6286\u6539\u653B\u6538\u65F1\u66F4\u675F\u674E\u674F\u6750\u6751\u675C\u6756\u675E\u6749\u6746\u6760"],["a840","\u6753\u6757\u6B65\u6BCF\u6C42\u6C5E\u6C99\u6C81\u6C88\u6C89\u6C85\u6C9B\u6C6A\u6C7A\u6C90\u6C70\u6C8C\u6C68\u6C96\u6C92\u6C7D\u6C83\u6C72\u6C7E\u6C74\u6C86\u6C76\u6C8D\u6C94\u6C98\u6C82\u7076\u707C\u707D\u7078\u7262\u7261\u7260\u72C4\u72C2\u7396\u752C\u752B\u7537\u7538\u7682\u76EF\u77E3\u79C1\u79C0\u79BF\u7A76\u7CFB\u7F55\u8096\u8093\u809D\u8098\u809B\u809A\u80B2\u826F\u8292"],["a8a1","\u828B\u828D\u898B\u89D2\u8A00\u8C37\u8C46\u8C55\u8C9D\u8D64\u8D70\u8DB3\u8EAB\u8ECA\u8F9B\u8FB0\u8FC2\u8FC6\u8FC5\u8FC4\u5DE1\u9091\u90A2\u90AA\u90A6\u90A3\u9149\u91C6\u91CC\u9632\u962E\u9631\u962A\u962C\u4E26\u4E56\u4E73\u4E8B\u4E9B\u4E9E\u4EAB\u4EAC\u4F6F\u4F9D\u4F8D\u4F73\u4F7F\u4F6C\u4F9B\u4F8B\u4F86\u4F83\u4F70\u4F75\u4F88\u4F69\u4F7B\u4F96\u4F7E\u4F8F\u4F91\u4F7A\u5154\u5152\u5155\u5169\u5177\u5176\u5178\u51BD\u51FD\u523B\u5238\u5237\u523A\u5230\u522E\u5236\u5241\u52BE\u52BB\u5352\u5354\u5353\u5351\u5366\u5377\u5378\u5379\u53D6\u53D4\u53D7\u5473\u5475"],["a940","\u5496\u5478\u5495\u5480\u547B\u5477\u5484\u5492\u5486\u547C\u5490\u5471\u5476\u548C\u549A\u5462\u5468\u548B\u547D\u548E\u56FA\u5783\u5777\u576A\u5769\u5761\u5766\u5764\u577C\u591C\u5949\u5947\u5948\u5944\u5954\u59BE\u59BB\u59D4\u59B9\u59AE\u59D1\u59C6\u59D0\u59CD\u59CB\u59D3\u59CA\u59AF\u59B3\u59D2\u59C5\u5B5F\u5B64\u5B63\u5B97\u5B9A\u5B98\u5B9C\u5B99\u5B9B\u5C1A\u5C48\u5C45"],["a9a1","\u5C46\u5CB7\u5CA1\u5CB8\u5CA9\u5CAB\u5CB1\u5CB3\u5E18\u5E1A\u5E16\u5E15\u5E1B\u5E11\u5E78\u5E9A\u5E97\u5E9C\u5E95\u5E96\u5EF6\u5F26\u5F27\u5F29\u5F80\u5F81\u5F7F\u5F7C\u5FDD\u5FE0\u5FFD\u5FF5\u5FFF\u600F\u6014\u602F\u6035\u6016\u602A\u6015\u6021\u6027\u6029\u602B\u601B\u6216\u6215\u623F\u623E\u6240\u627F\u62C9\u62CC\u62C4\u62BF\u62C2\u62B9\u62D2\u62DB\u62AB\u62D3\u62D4\u62CB\u62C8\u62A8\u62BD\u62BC\u62D0\u62D9\u62C7\u62CD\u62B5\u62DA\u62B1\u62D8\u62D6\u62D7\u62C6\u62AC\u62CE\u653E\u65A7\u65BC\u65FA\u6614\u6613\u660C\u6606\u6602\u660E\u6600\u660F\u6615\u660A"],["aa40","\u6607\u670D\u670B\u676D\u678B\u6795\u6771\u679C\u6773\u6777\u6787\u679D\u6797\u676F\u6770\u677F\u6789\u677E\u6790\u6775\u679A\u6793\u677C\u676A\u6772\u6B23\u6B66\u6B67\u6B7F\u6C13\u6C1B\u6CE3\u6CE8\u6CF3\u6CB1\u6CCC\u6CE5\u6CB3\u6CBD\u6CBE\u6CBC\u6CE2\u6CAB\u6CD5\u6CD3\u6CB8\u6CC4\u6CB9\u6CC1\u6CAE\u6CD7\u6CC5\u6CF1\u6CBF\u6CBB\u6CE1\u6CDB\u6CCA\u6CAC\u6CEF\u6CDC\u6CD6\u6CE0"],["aaa1","\u7095\u708E\u7092\u708A\u7099\u722C\u722D\u7238\u7248\u7267\u7269\u72C0\u72CE\u72D9\u72D7\u72D0\u73A9\u73A8\u739F\u73AB\u73A5\u753D\u759D\u7599\u759A\u7684\u76C2\u76F2\u76F4\u77E5\u77FD\u793E\u7940\u7941\u79C9\u79C8\u7A7A\u7A79\u7AFA\u7CFE\u7F54\u7F8C\u7F8B\u8005\u80BA\u80A5\u80A2\u80B1\u80A1\u80AB\u80A9\u80B4\u80AA\u80AF\u81E5\u81FE\u820D\u82B3\u829D\u8299\u82AD\u82BD\u829F\u82B9\u82B1\u82AC\u82A5\u82AF\u82B8\u82A3\u82B0\u82BE\u82B7\u864E\u8671\u521D\u8868\u8ECB\u8FCE\u8FD4\u8FD1\u90B5\u90B8\u90B1\u90B6\u91C7\u91D1\u9577\u9580\u961C\u9640\u963F\u963B\u9644"],["ab40","\u9642\u96B9\u96E8\u9752\u975E\u4E9F\u4EAD\u4EAE\u4FE1\u4FB5\u4FAF\u4FBF\u4FE0\u4FD1\u4FCF\u4FDD\u4FC3\u4FB6\u4FD8\u4FDF\u4FCA\u4FD7\u4FAE\u4FD0\u4FC4\u4FC2\u4FDA\u4FCE\u4FDE\u4FB7\u5157\u5192\u5191\u51A0\u524E\u5243\u524A\u524D\u524C\u524B\u5247\u52C7\u52C9\u52C3\u52C1\u530D\u5357\u537B\u539A\u53DB\u54AC\u54C0\u54A8\u54CE\u54C9\u54B8\u54A6\u54B3\u54C7\u54C2\u54BD\u54AA\u54C1"],["aba1","\u54C4\u54C8\u54AF\u54AB\u54B1\u54BB\u54A9\u54A7\u54BF\u56FF\u5782\u578B\u57A0\u57A3\u57A2\u57CE\u57AE\u5793\u5955\u5951\u594F\u594E\u5950\u59DC\u59D8\u59FF\u59E3\u59E8\u5A03\u59E5\u59EA\u59DA\u59E6\u5A01\u59FB\u5B69\u5BA3\u5BA6\u5BA4\u5BA2\u5BA5\u5C01\u5C4E\u5C4F\u5C4D\u5C4B\u5CD9\u5CD2\u5DF7\u5E1D\u5E25\u5E1F\u5E7D\u5EA0\u5EA6\u5EFA\u5F08\u5F2D\u5F65\u5F88\u5F85\u5F8A\u5F8B\u5F87\u5F8C\u5F89\u6012\u601D\u6020\u6025\u600E\u6028\u604D\u6070\u6068\u6062\u6046\u6043\u606C\u606B\u606A\u6064\u6241\u62DC\u6316\u6309\u62FC\u62ED\u6301\u62EE\u62FD\u6307\u62F1\u62F7"],["ac40","\u62EF\u62EC\u62FE\u62F4\u6311\u6302\u653F\u6545\u65AB\u65BD\u65E2\u6625\u662D\u6620\u6627\u662F\u661F\u6628\u6631\u6624\u66F7\u67FF\u67D3\u67F1\u67D4\u67D0\u67EC\u67B6\u67AF\u67F5\u67E9\u67EF\u67C4\u67D1\u67B4\u67DA\u67E5\u67B8\u67CF\u67DE\u67F3\u67B0\u67D9\u67E2\u67DD\u67D2\u6B6A\u6B83\u6B86\u6BB5\u6BD2\u6BD7\u6C1F\u6CC9\u6D0B\u6D32\u6D2A\u6D41\u6D25\u6D0C\u6D31\u6D1E\u6D17"],["aca1","\u6D3B\u6D3D\u6D3E\u6D36\u6D1B\u6CF5\u6D39\u6D27\u6D38\u6D29\u6D2E\u6D35\u6D0E\u6D2B\u70AB\u70BA\u70B3\u70AC\u70AF\u70AD\u70B8\u70AE\u70A4\u7230\u7272\u726F\u7274\u72E9\u72E0\u72E1\u73B7\u73CA\u73BB\u73B2\u73CD\u73C0\u73B3\u751A\u752D\u754F\u754C\u754E\u754B\u75AB\u75A4\u75A5\u75A2\u75A3\u7678\u7686\u7687\u7688\u76C8\u76C6\u76C3\u76C5\u7701\u76F9\u76F8\u7709\u770B\u76FE\u76FC\u7707\u77DC\u7802\u7814\u780C\u780D\u7946\u7949\u7948\u7947\u79B9\u79BA\u79D1\u79D2\u79CB\u7A7F\u7A81\u7AFF\u7AFD\u7C7D\u7D02\u7D05\u7D00\u7D09\u7D07\u7D04\u7D06\u7F38\u7F8E\u7FBF\u8004"],["ad40","\u8010\u800D\u8011\u8036\u80D6\u80E5\u80DA\u80C3\u80C4\u80CC\u80E1\u80DB\u80CE\u80DE\u80E4\u80DD\u81F4\u8222\u82E7\u8303\u8305\u82E3\u82DB\u82E6\u8304\u82E5\u8302\u8309\u82D2\u82D7\u82F1\u8301\u82DC\u82D4\u82D1\u82DE\u82D3\u82DF\u82EF\u8306\u8650\u8679\u867B\u867A\u884D\u886B\u8981\u89D4\u8A08\u8A02\u8A03\u8C9E\u8CA0\u8D74\u8D73\u8DB4\u8ECD\u8ECC\u8FF0\u8FE6\u8FE2\u8FEA\u8FE5"],["ada1","\u8FED\u8FEB\u8FE4\u8FE8\u90CA\u90CE\u90C1\u90C3\u914B\u914A\u91CD\u9582\u9650\u964B\u964C\u964D\u9762\u9769\u97CB\u97ED\u97F3\u9801\u98A8\u98DB\u98DF\u9996\u9999\u4E58\u4EB3\u500C\u500D\u5023\u4FEF\u5026\u5025\u4FF8\u5029\u5016\u5006\u503C\u501F\u501A\u5012\u5011\u4FFA\u5000\u5014\u5028\u4FF1\u5021\u500B\u5019\u5018\u4FF3\u4FEE\u502D\u502A\u4FFE\u502B\u5009\u517C\u51A4\u51A5\u51A2\u51CD\u51CC\u51C6\u51CB\u5256\u525C\u5254\u525B\u525D\u532A\u537F\u539F\u539D\u53DF\u54E8\u5510\u5501\u5537\u54FC\u54E5\u54F2\u5506\u54FA\u5514\u54E9\u54ED\u54E1\u5509\u54EE\u54EA"],["ae40","\u54E6\u5527\u5507\u54FD\u550F\u5703\u5704\u57C2\u57D4\u57CB\u57C3\u5809\u590F\u5957\u5958\u595A\u5A11\u5A18\u5A1C\u5A1F\u5A1B\u5A13\u59EC\u5A20\u5A23\u5A29\u5A25\u5A0C\u5A09\u5B6B\u5C58\u5BB0\u5BB3\u5BB6\u5BB4\u5BAE\u5BB5\u5BB9\u5BB8\u5C04\u5C51\u5C55\u5C50\u5CED\u5CFD\u5CFB\u5CEA\u5CE8\u5CF0\u5CF6\u5D01\u5CF4\u5DEE\u5E2D\u5E2B\u5EAB\u5EAD\u5EA7\u5F31\u5F92\u5F91\u5F90\u6059"],["aea1","\u6063\u6065\u6050\u6055\u606D\u6069\u606F\u6084\u609F\u609A\u608D\u6094\u608C\u6085\u6096\u6247\u62F3\u6308\u62FF\u634E\u633E\u632F\u6355\u6342\u6346\u634F\u6349\u633A\u6350\u633D\u632A\u632B\u6328\u634D\u634C\u6548\u6549\u6599\u65C1\u65C5\u6642\u6649\u664F\u6643\u6652\u664C\u6645\u6641\u66F8\u6714\u6715\u6717\u6821\u6838\u6848\u6846\u6853\u6839\u6842\u6854\u6829\u68B3\u6817\u684C\u6851\u683D\u67F4\u6850\u6840\u683C\u6843\u682A\u6845\u6813\u6818\u6841\u6B8A\u6B89\u6BB7\u6C23\u6C27\u6C28\u6C26\u6C24\u6CF0\u6D6A\u6D95\u6D88\u6D87\u6D66\u6D78\u6D77\u6D59\u6D93"],["af40","\u6D6C\u6D89\u6D6E\u6D5A\u6D74\u6D69\u6D8C\u6D8A\u6D79\u6D85\u6D65\u6D94\u70CA\u70D8\u70E4\u70D9\u70C8\u70CF\u7239\u7279\u72FC\u72F9\u72FD\u72F8\u72F7\u7386\u73ED\u7409\u73EE\u73E0\u73EA\u73DE\u7554\u755D\u755C\u755A\u7559\u75BE\u75C5\u75C7\u75B2\u75B3\u75BD\u75BC\u75B9\u75C2\u75B8\u768B\u76B0\u76CA\u76CD\u76CE\u7729\u771F\u7720\u7728\u77E9\u7830\u7827\u7838\u781D\u7834\u7837"],["afa1","\u7825\u782D\u7820\u781F\u7832\u7955\u7950\u7960\u795F\u7956\u795E\u795D\u7957\u795A\u79E4\u79E3\u79E7\u79DF\u79E6\u79E9\u79D8\u7A84\u7A88\u7AD9\u7B06\u7B11\u7C89\u7D21\u7D17\u7D0B\u7D0A\u7D20\u7D22\u7D14\u7D10\u7D15\u7D1A\u7D1C\u7D0D\u7D19\u7D1B\u7F3A\u7F5F\u7F94\u7FC5\u7FC1\u8006\u8018\u8015\u8019\u8017\u803D\u803F\u80F1\u8102\u80F0\u8105\u80ED\u80F4\u8106\u80F8\u80F3\u8108\u80FD\u810A\u80FC\u80EF\u81ED\u81EC\u8200\u8210\u822A\u822B\u8228\u822C\u82BB\u832B\u8352\u8354\u834A\u8338\u8350\u8349\u8335\u8334\u834F\u8332\u8339\u8336\u8317\u8340\u8331\u8328\u8343"],["b040","\u8654\u868A\u86AA\u8693\u86A4\u86A9\u868C\u86A3\u869C\u8870\u8877\u8881\u8882\u887D\u8879\u8A18\u8A10\u8A0E\u8A0C\u8A15\u8A0A\u8A17\u8A13\u8A16\u8A0F\u8A11\u8C48\u8C7A\u8C79\u8CA1\u8CA2\u8D77\u8EAC\u8ED2\u8ED4\u8ECF\u8FB1\u9001\u9006\u8FF7\u9000\u8FFA\u8FF4\u9003\u8FFD\u9005\u8FF8\u9095\u90E1\u90DD\u90E2\u9152\u914D\u914C\u91D8\u91DD\u91D7\u91DC\u91D9\u9583\u9662\u9663\u9661"],["b0a1","\u965B\u965D\u9664\u9658\u965E\u96BB\u98E2\u99AC\u9AA8\u9AD8\u9B25\u9B32\u9B3C\u4E7E\u507A\u507D\u505C\u5047\u5043\u504C\u505A\u5049\u5065\u5076\u504E\u5055\u5075\u5074\u5077\u504F\u500F\u506F\u506D\u515C\u5195\u51F0\u526A\u526F\u52D2\u52D9\u52D8\u52D5\u5310\u530F\u5319\u533F\u5340\u533E\u53C3\u66FC\u5546\u556A\u5566\u5544\u555E\u5561\u5543\u554A\u5531\u5556\u554F\u5555\u552F\u5564\u5538\u552E\u555C\u552C\u5563\u5533\u5541\u5557\u5708\u570B\u5709\u57DF\u5805\u580A\u5806\u57E0\u57E4\u57FA\u5802\u5835\u57F7\u57F9\u5920\u5962\u5A36\u5A41\u5A49\u5A66\u5A6A\u5A40"],["b140","\u5A3C\u5A62\u5A5A\u5A46\u5A4A\u5B70\u5BC7\u5BC5\u5BC4\u5BC2\u5BBF\u5BC6\u5C09\u5C08\u5C07\u5C60\u5C5C\u5C5D\u5D07\u5D06\u5D0E\u5D1B\u5D16\u5D22\u5D11\u5D29\u5D14\u5D19\u5D24\u5D27\u5D17\u5DE2\u5E38\u5E36\u5E33\u5E37\u5EB7\u5EB8\u5EB6\u5EB5\u5EBE\u5F35\u5F37\u5F57\u5F6C\u5F69\u5F6B\u5F97\u5F99\u5F9E\u5F98\u5FA1\u5FA0\u5F9C\u607F\u60A3\u6089\u60A0\u60A8\u60CB\u60B4\u60E6\u60BD"],["b1a1","\u60C5\u60BB\u60B5\u60DC\u60BC\u60D8\u60D5\u60C6\u60DF\u60B8\u60DA\u60C7\u621A\u621B\u6248\u63A0\u63A7\u6372\u6396\u63A2\u63A5\u6377\u6367\u6398\u63AA\u6371\u63A9\u6389\u6383\u639B\u636B\u63A8\u6384\u6388\u6399\u63A1\u63AC\u6392\u638F\u6380\u637B\u6369\u6368\u637A\u655D\u6556\u6551\u6559\u6557\u555F\u654F\u6558\u6555\u6554\u659C\u659B\u65AC\u65CF\u65CB\u65CC\u65CE\u665D\u665A\u6664\u6668\u6666\u665E\u66F9\u52D7\u671B\u6881\u68AF\u68A2\u6893\u68B5\u687F\u6876\u68B1\u68A7\u6897\u68B0\u6883\u68C4\u68AD\u6886\u6885\u6894\u689D\u68A8\u689F\u68A1\u6882\u6B32\u6BBA"],["b240","\u6BEB\u6BEC\u6C2B\u6D8E\u6DBC\u6DF3\u6DD9\u6DB2\u6DE1\u6DCC\u6DE4\u6DFB\u6DFA\u6E05\u6DC7\u6DCB\u6DAF\u6DD1\u6DAE\u6DDE\u6DF9\u6DB8\u6DF7\u6DF5\u6DC5\u6DD2\u6E1A\u6DB5\u6DDA\u6DEB\u6DD8\u6DEA\u6DF1\u6DEE\u6DE8\u6DC6\u6DC4\u6DAA\u6DEC\u6DBF\u6DE6\u70F9\u7109\u710A\u70FD\u70EF\u723D\u727D\u7281\u731C\u731B\u7316\u7313\u7319\u7387\u7405\u740A\u7403\u7406\u73FE\u740D\u74E0\u74F6"],["b2a1","\u74F7\u751C\u7522\u7565\u7566\u7562\u7570\u758F\u75D4\u75D5\u75B5\u75CA\u75CD\u768E\u76D4\u76D2\u76DB\u7737\u773E\u773C\u7736\u7738\u773A\u786B\u7843\u784E\u7965\u7968\u796D\u79FB\u7A92\u7A95\u7B20\u7B28\u7B1B\u7B2C\u7B26\u7B19\u7B1E\u7B2E\u7C92\u7C97\u7C95\u7D46\u7D43\u7D71\u7D2E\u7D39\u7D3C\u7D40\u7D30\u7D33\u7D44\u7D2F\u7D42\u7D32\u7D31\u7F3D\u7F9E\u7F9A\u7FCC\u7FCE\u7FD2\u801C\u804A\u8046\u812F\u8116\u8123\u812B\u8129\u8130\u8124\u8202\u8235\u8237\u8236\u8239\u838E\u839E\u8398\u8378\u83A2\u8396\u83BD\u83AB\u8392\u838A\u8393\u8389\u83A0\u8377\u837B\u837C"],["b340","\u8386\u83A7\u8655\u5F6A\u86C7\u86C0\u86B6\u86C4\u86B5\u86C6\u86CB\u86B1\u86AF\u86C9\u8853\u889E\u8888\u88AB\u8892\u8896\u888D\u888B\u8993\u898F\u8A2A\u8A1D\u8A23\u8A25\u8A31\u8A2D\u8A1F\u8A1B\u8A22\u8C49\u8C5A\u8CA9\u8CAC\u8CAB\u8CA8\u8CAA\u8CA7\u8D67\u8D66\u8DBE\u8DBA\u8EDB\u8EDF\u9019\u900D\u901A\u9017\u9023\u901F\u901D\u9010\u9015\u901E\u9020\u900F\u9022\u9016\u901B\u9014"],["b3a1","\u90E8\u90ED\u90FD\u9157\u91CE\u91F5\u91E6\u91E3\u91E7\u91ED\u91E9\u9589\u966A\u9675\u9673\u9678\u9670\u9674\u9676\u9677\u966C\u96C0\u96EA\u96E9\u7AE0\u7ADF\u9802\u9803\u9B5A\u9CE5\u9E75\u9E7F\u9EA5\u9EBB\u50A2\u508D\u5085\u5099\u5091\u5080\u5096\u5098\u509A\u6700\u51F1\u5272\u5274\u5275\u5269\u52DE\u52DD\u52DB\u535A\u53A5\u557B\u5580\u55A7\u557C\u558A\u559D\u5598\u5582\u559C\u55AA\u5594\u5587\u558B\u5583\u55B3\u55AE\u559F\u553E\u55B2\u559A\u55BB\u55AC\u55B1\u557E\u5589\u55AB\u5599\u570D\u582F\u582A\u5834\u5824\u5830\u5831\u5821\u581D\u5820\u58F9\u58FA\u5960"],["b440","\u5A77\u5A9A\u5A7F\u5A92\u5A9B\u5AA7\u5B73\u5B71\u5BD2\u5BCC\u5BD3\u5BD0\u5C0A\u5C0B\u5C31\u5D4C\u5D50\u5D34\u5D47\u5DFD\u5E45\u5E3D\u5E40\u5E43\u5E7E\u5ECA\u5EC1\u5EC2\u5EC4\u5F3C\u5F6D\u5FA9\u5FAA\u5FA8\u60D1\u60E1\u60B2\u60B6\u60E0\u611C\u6123\u60FA\u6115\u60F0\u60FB\u60F4\u6168\u60F1\u610E\u60F6\u6109\u6100\u6112\u621F\u6249\u63A3\u638C\u63CF\u63C0\u63E9\u63C9\u63C6\u63CD"],["b4a1","\u63D2\u63E3\u63D0\u63E1\u63D6\u63ED\u63EE\u6376\u63F4\u63EA\u63DB\u6452\u63DA\u63F9\u655E\u6566\u6562\u6563\u6591\u6590\u65AF\u666E\u6670\u6674\u6676\u666F\u6691\u667A\u667E\u6677\u66FE\u66FF\u671F\u671D\u68FA\u68D5\u68E0\u68D8\u68D7\u6905\u68DF\u68F5\u68EE\u68E7\u68F9\u68D2\u68F2\u68E3\u68CB\u68CD\u690D\u6912\u690E\u68C9\u68DA\u696E\u68FB\u6B3E\u6B3A\u6B3D\u6B98\u6B96\u6BBC\u6BEF\u6C2E\u6C2F\u6C2C\u6E2F\u6E38\u6E54\u6E21\u6E32\u6E67\u6E4A\u6E20\u6E25\u6E23\u6E1B\u6E5B\u6E58\u6E24\u6E56\u6E6E\u6E2D\u6E26\u6E6F\u6E34\u6E4D\u6E3A\u6E2C\u6E43\u6E1D\u6E3E\u6ECB"],["b540","\u6E89\u6E19\u6E4E\u6E63\u6E44\u6E72\u6E69\u6E5F\u7119\u711A\u7126\u7130\u7121\u7136\u716E\u711C\u724C\u7284\u7280\u7336\u7325\u7334\u7329\u743A\u742A\u7433\u7422\u7425\u7435\u7436\u7434\u742F\u741B\u7426\u7428\u7525\u7526\u756B\u756A\u75E2\u75DB\u75E3\u75D9\u75D8\u75DE\u75E0\u767B\u767C\u7696\u7693\u76B4\u76DC\u774F\u77ED\u785D\u786C\u786F\u7A0D\u7A08\u7A0B\u7A05\u7A00\u7A98"],["b5a1","\u7A97\u7A96\u7AE5\u7AE3\u7B49\u7B56\u7B46\u7B50\u7B52\u7B54\u7B4D\u7B4B\u7B4F\u7B51\u7C9F\u7CA5\u7D5E\u7D50\u7D68\u7D55\u7D2B\u7D6E\u7D72\u7D61\u7D66\u7D62\u7D70\u7D73\u5584\u7FD4\u7FD5\u800B\u8052\u8085\u8155\u8154\u814B\u8151\u814E\u8139\u8146\u813E\u814C\u8153\u8174\u8212\u821C\u83E9\u8403\u83F8\u840D\u83E0\u83C5\u840B\u83C1\u83EF\u83F1\u83F4\u8457\u840A\u83F0\u840C\u83CC\u83FD\u83F2\u83CA\u8438\u840E\u8404\u83DC\u8407\u83D4\u83DF\u865B\u86DF\u86D9\u86ED\u86D4\u86DB\u86E4\u86D0\u86DE\u8857\u88C1\u88C2\u88B1\u8983\u8996\u8A3B\u8A60\u8A55\u8A5E\u8A3C\u8A41"],["b640","\u8A54\u8A5B\u8A50\u8A46\u8A34\u8A3A\u8A36\u8A56\u8C61\u8C82\u8CAF\u8CBC\u8CB3\u8CBD\u8CC1\u8CBB\u8CC0\u8CB4\u8CB7\u8CB6\u8CBF\u8CB8\u8D8A\u8D85\u8D81\u8DCE\u8DDD\u8DCB\u8DDA\u8DD1\u8DCC\u8DDB\u8DC6\u8EFB\u8EF8\u8EFC\u8F9C\u902E\u9035\u9031\u9038\u9032\u9036\u9102\u90F5\u9109\u90FE\u9163\u9165\u91CF\u9214\u9215\u9223\u9209\u921E\u920D\u9210\u9207\u9211\u9594\u958F\u958B\u9591"],["b6a1","\u9593\u9592\u958E\u968A\u968E\u968B\u967D\u9685\u9686\u968D\u9672\u9684\u96C1\u96C5\u96C4\u96C6\u96C7\u96EF\u96F2\u97CC\u9805\u9806\u9808\u98E7\u98EA\u98EF\u98E9\u98F2\u98ED\u99AE\u99AD\u9EC3\u9ECD\u9ED1\u4E82\u50AD\u50B5\u50B2\u50B3\u50C5\u50BE\u50AC\u50B7\u50BB\u50AF\u50C7\u527F\u5277\u527D\u52DF\u52E6\u52E4\u52E2\u52E3\u532F\u55DF\u55E8\u55D3\u55E6\u55CE\u55DC\u55C7\u55D1\u55E3\u55E4\u55EF\u55DA\u55E1\u55C5\u55C6\u55E5\u55C9\u5712\u5713\u585E\u5851\u5858\u5857\u585A\u5854\u586B\u584C\u586D\u584A\u5862\u5852\u584B\u5967\u5AC1\u5AC9\u5ACC\u5ABE\u5ABD\u5ABC"],["b740","\u5AB3\u5AC2\u5AB2\u5D69\u5D6F\u5E4C\u5E79\u5EC9\u5EC8\u5F12\u5F59\u5FAC\u5FAE\u611A\u610F\u6148\u611F\u60F3\u611B\u60F9\u6101\u6108\u614E\u614C\u6144\u614D\u613E\u6134\u6127\u610D\u6106\u6137\u6221\u6222\u6413\u643E\u641E\u642A\u642D\u643D\u642C\u640F\u641C\u6414\u640D\u6436\u6416\u6417\u6406\u656C\u659F\u65B0\u6697\u6689\u6687\u6688\u6696\u6684\u6698\u668D\u6703\u6994\u696D"],["b7a1","\u695A\u6977\u6960\u6954\u6975\u6930\u6982\u694A\u6968\u696B\u695E\u6953\u6979\u6986\u695D\u6963\u695B\u6B47\u6B72\u6BC0\u6BBF\u6BD3\u6BFD\u6EA2\u6EAF\u6ED3\u6EB6\u6EC2\u6E90\u6E9D\u6EC7\u6EC5\u6EA5\u6E98\u6EBC\u6EBA\u6EAB\u6ED1\u6E96\u6E9C\u6EC4\u6ED4\u6EAA\u6EA7\u6EB4\u714E\u7159\u7169\u7164\u7149\u7167\u715C\u716C\u7166\u714C\u7165\u715E\u7146\u7168\u7156\u723A\u7252\u7337\u7345\u733F\u733E\u746F\u745A\u7455\u745F\u745E\u7441\u743F\u7459\u745B\u745C\u7576\u7578\u7600\u75F0\u7601\u75F2\u75F1\u75FA\u75FF\u75F4\u75F3\u76DE\u76DF\u775B\u776B\u7766\u775E\u7763"],["b840","\u7779\u776A\u776C\u775C\u7765\u7768\u7762\u77EE\u788E\u78B0\u7897\u7898\u788C\u7889\u787C\u7891\u7893\u787F\u797A\u797F\u7981\u842C\u79BD\u7A1C\u7A1A\u7A20\u7A14\u7A1F\u7A1E\u7A9F\u7AA0\u7B77\u7BC0\u7B60\u7B6E\u7B67\u7CB1\u7CB3\u7CB5\u7D93\u7D79\u7D91\u7D81\u7D8F\u7D5B\u7F6E\u7F69\u7F6A\u7F72\u7FA9\u7FA8\u7FA4\u8056\u8058\u8086\u8084\u8171\u8170\u8178\u8165\u816E\u8173\u816B"],["b8a1","\u8179\u817A\u8166\u8205\u8247\u8482\u8477\u843D\u8431\u8475\u8466\u846B\u8449\u846C\u845B\u843C\u8435\u8461\u8463\u8469\u846D\u8446\u865E\u865C\u865F\u86F9\u8713\u8708\u8707\u8700\u86FE\u86FB\u8702\u8703\u8706\u870A\u8859\u88DF\u88D4\u88D9\u88DC\u88D8\u88DD\u88E1\u88CA\u88D5\u88D2\u899C\u89E3\u8A6B\u8A72\u8A73\u8A66\u8A69\u8A70\u8A87\u8A7C\u8A63\u8AA0\u8A71\u8A85\u8A6D\u8A62\u8A6E\u8A6C\u8A79\u8A7B\u8A3E\u8A68\u8C62\u8C8A\u8C89\u8CCA\u8CC7\u8CC8\u8CC4\u8CB2\u8CC3\u8CC2\u8CC5\u8DE1\u8DDF\u8DE8\u8DEF\u8DF3\u8DFA\u8DEA\u8DE4\u8DE6\u8EB2\u8F03\u8F09\u8EFE\u8F0A"],["b940","\u8F9F\u8FB2\u904B\u904A\u9053\u9042\u9054\u903C\u9055\u9050\u9047\u904F\u904E\u904D\u9051\u903E\u9041\u9112\u9117\u916C\u916A\u9169\u91C9\u9237\u9257\u9238\u923D\u9240\u923E\u925B\u924B\u9264\u9251\u9234\u9249\u924D\u9245\u9239\u923F\u925A\u9598\u9698\u9694\u9695\u96CD\u96CB\u96C9\u96CA\u96F7\u96FB\u96F9\u96F6\u9756\u9774\u9776\u9810\u9811\u9813\u980A\u9812\u980C\u98FC\u98F4"],["b9a1","\u98FD\u98FE\u99B3\u99B1\u99B4\u9AE1\u9CE9\u9E82\u9F0E\u9F13\u9F20\u50E7\u50EE\u50E5\u50D6\u50ED\u50DA\u50D5\u50CF\u50D1\u50F1\u50CE\u50E9\u5162\u51F3\u5283\u5282\u5331\u53AD\u55FE\u5600\u561B\u5617\u55FD\u5614\u5606\u5609\u560D\u560E\u55F7\u5616\u561F\u5608\u5610\u55F6\u5718\u5716\u5875\u587E\u5883\u5893\u588A\u5879\u5885\u587D\u58FD\u5925\u5922\u5924\u596A\u5969\u5AE1\u5AE6\u5AE9\u5AD7\u5AD6\u5AD8\u5AE3\u5B75\u5BDE\u5BE7\u5BE1\u5BE5\u5BE6\u5BE8\u5BE2\u5BE4\u5BDF\u5C0D\u5C62\u5D84\u5D87\u5E5B\u5E63\u5E55\u5E57\u5E54\u5ED3\u5ED6\u5F0A\u5F46\u5F70\u5FB9\u6147"],["ba40","\u613F\u614B\u6177\u6162\u6163\u615F\u615A\u6158\u6175\u622A\u6487\u6458\u6454\u64A4\u6478\u645F\u647A\u6451\u6467\u6434\u646D\u647B\u6572\u65A1\u65D7\u65D6\u66A2\u66A8\u669D\u699C\u69A8\u6995\u69C1\u69AE\u69D3\u69CB\u699B\u69B7\u69BB\u69AB\u69B4\u69D0\u69CD\u69AD\u69CC\u69A6\u69C3\u69A3\u6B49\u6B4C\u6C33\u6F33\u6F14\u6EFE\u6F13\u6EF4\u6F29\u6F3E\u6F20\u6F2C\u6F0F\u6F02\u6F22"],["baa1","\u6EFF\u6EEF\u6F06\u6F31\u6F38\u6F32\u6F23\u6F15\u6F2B\u6F2F\u6F88\u6F2A\u6EEC\u6F01\u6EF2\u6ECC\u6EF7\u7194\u7199\u717D\u718A\u7184\u7192\u723E\u7292\u7296\u7344\u7350\u7464\u7463\u746A\u7470\u746D\u7504\u7591\u7627\u760D\u760B\u7609\u7613\u76E1\u76E3\u7784\u777D\u777F\u7761\u78C1\u789F\u78A7\u78B3\u78A9\u78A3\u798E\u798F\u798D\u7A2E\u7A31\u7AAA\u7AA9\u7AED\u7AEF\u7BA1\u7B95\u7B8B\u7B75\u7B97\u7B9D\u7B94\u7B8F\u7BB8\u7B87\u7B84\u7CB9\u7CBD\u7CBE\u7DBB\u7DB0\u7D9C\u7DBD\u7DBE\u7DA0\u7DCA\u7DB4\u7DB2\u7DB1\u7DBA\u7DA2\u7DBF\u7DB5\u7DB8\u7DAD\u7DD2\u7DC7\u7DAC"],["bb40","\u7F70\u7FE0\u7FE1\u7FDF\u805E\u805A\u8087\u8150\u8180\u818F\u8188\u818A\u817F\u8182\u81E7\u81FA\u8207\u8214\u821E\u824B\u84C9\u84BF\u84C6\u84C4\u8499\u849E\u84B2\u849C\u84CB\u84B8\u84C0\u84D3\u8490\u84BC\u84D1\u84CA\u873F\u871C\u873B\u8722\u8725\u8734\u8718\u8755\u8737\u8729\u88F3\u8902\u88F4\u88F9\u88F8\u88FD\u88E8\u891A\u88EF\u8AA6\u8A8C\u8A9E\u8AA3\u8A8D\u8AA1\u8A93\u8AA4"],["bba1","\u8AAA\u8AA5\u8AA8\u8A98\u8A91\u8A9A\u8AA7\u8C6A\u8C8D\u8C8C\u8CD3\u8CD1\u8CD2\u8D6B\u8D99\u8D95\u8DFC\u8F14\u8F12\u8F15\u8F13\u8FA3\u9060\u9058\u905C\u9063\u9059\u905E\u9062\u905D\u905B\u9119\u9118\u911E\u9175\u9178\u9177\u9174\u9278\u9280\u9285\u9298\u9296\u927B\u9293\u929C\u92A8\u927C\u9291\u95A1\u95A8\u95A9\u95A3\u95A5\u95A4\u9699\u969C\u969B\u96CC\u96D2\u9700\u977C\u9785\u97F6\u9817\u9818\u98AF\u98B1\u9903\u9905\u990C\u9909\u99C1\u9AAF\u9AB0\u9AE6\u9B41\u9B42\u9CF4\u9CF6\u9CF3\u9EBC\u9F3B\u9F4A\u5104\u5100\u50FB\u50F5\u50F9\u5102\u5108\u5109\u5105\u51DC"],["bc40","\u5287\u5288\u5289\u528D\u528A\u52F0\u53B2\u562E\u563B\u5639\u5632\u563F\u5634\u5629\u5653\u564E\u5657\u5674\u5636\u562F\u5630\u5880\u589F\u589E\u58B3\u589C\u58AE\u58A9\u58A6\u596D\u5B09\u5AFB\u5B0B\u5AF5\u5B0C\u5B08\u5BEE\u5BEC\u5BE9\u5BEB\u5C64\u5C65\u5D9D\u5D94\u5E62\u5E5F\u5E61\u5EE2\u5EDA\u5EDF\u5EDD\u5EE3\u5EE0\u5F48\u5F71\u5FB7\u5FB5\u6176\u6167\u616E\u615D\u6155\u6182"],["bca1","\u617C\u6170\u616B\u617E\u61A7\u6190\u61AB\u618E\u61AC\u619A\u61A4\u6194\u61AE\u622E\u6469\u646F\u6479\u649E\u64B2\u6488\u6490\u64B0\u64A5\u6493\u6495\u64A9\u6492\u64AE\u64AD\u64AB\u649A\u64AC\u6499\u64A2\u64B3\u6575\u6577\u6578\u66AE\u66AB\u66B4\u66B1\u6A23\u6A1F\u69E8\u6A01\u6A1E\u6A19\u69FD\u6A21\u6A13\u6A0A\u69F3\u6A02\u6A05\u69ED\u6A11\u6B50\u6B4E\u6BA4\u6BC5\u6BC6\u6F3F\u6F7C\u6F84\u6F51\u6F66\u6F54\u6F86\u6F6D\u6F5B\u6F78\u6F6E\u6F8E\u6F7A\u6F70\u6F64\u6F97\u6F58\u6ED5\u6F6F\u6F60\u6F5F\u719F\u71AC\u71B1\u71A8\u7256\u729B\u734E\u7357\u7469\u748B\u7483"],["bd40","\u747E\u7480\u757F\u7620\u7629\u761F\u7624\u7626\u7621\u7622\u769A\u76BA\u76E4\u778E\u7787\u778C\u7791\u778B\u78CB\u78C5\u78BA\u78CA\u78BE\u78D5\u78BC\u78D0\u7A3F\u7A3C\u7A40\u7A3D\u7A37\u7A3B\u7AAF\u7AAE\u7BAD\u7BB1\u7BC4\u7BB4\u7BC6\u7BC7\u7BC1\u7BA0\u7BCC\u7CCA\u7DE0\u7DF4\u7DEF\u7DFB\u7DD8\u7DEC\u7DDD\u7DE8\u7DE3\u7DDA\u7DDE\u7DE9\u7D9E\u7DD9\u7DF2\u7DF9\u7F75\u7F77\u7FAF"],["bda1","\u7FE9\u8026\u819B\u819C\u819D\u81A0\u819A\u8198\u8517\u853D\u851A\u84EE\u852C\u852D\u8513\u8511\u8523\u8521\u8514\u84EC\u8525\u84FF\u8506\u8782\u8774\u8776\u8760\u8766\u8778\u8768\u8759\u8757\u874C\u8753\u885B\u885D\u8910\u8907\u8912\u8913\u8915\u890A\u8ABC\u8AD2\u8AC7\u8AC4\u8A95\u8ACB\u8AF8\u8AB2\u8AC9\u8AC2\u8ABF\u8AB0\u8AD6\u8ACD\u8AB6\u8AB9\u8ADB\u8C4C\u8C4E\u8C6C\u8CE0\u8CDE\u8CE6\u8CE4\u8CEC\u8CED\u8CE2\u8CE3\u8CDC\u8CEA\u8CE1\u8D6D\u8D9F\u8DA3\u8E2B\u8E10\u8E1D\u8E22\u8E0F\u8E29\u8E1F\u8E21\u8E1E\u8EBA\u8F1D\u8F1B\u8F1F\u8F29\u8F26\u8F2A\u8F1C\u8F1E"],["be40","\u8F25\u9069\u906E\u9068\u906D\u9077\u9130\u912D\u9127\u9131\u9187\u9189\u918B\u9183\u92C5\u92BB\u92B7\u92EA\u92AC\u92E4\u92C1\u92B3\u92BC\u92D2\u92C7\u92F0\u92B2\u95AD\u95B1\u9704\u9706\u9707\u9709\u9760\u978D\u978B\u978F\u9821\u982B\u981C\u98B3\u990A\u9913\u9912\u9918\u99DD\u99D0\u99DF\u99DB\u99D1\u99D5\u99D2\u99D9\u9AB7\u9AEE\u9AEF\u9B27\u9B45\u9B44\u9B77\u9B6F\u9D06\u9D09"],["bea1","\u9D03\u9EA9\u9EBE\u9ECE\u58A8\u9F52\u5112\u5118\u5114\u5110\u5115\u5180\u51AA\u51DD\u5291\u5293\u52F3\u5659\u566B\u5679\u5669\u5664\u5678\u566A\u5668\u5665\u5671\u566F\u566C\u5662\u5676\u58C1\u58BE\u58C7\u58C5\u596E\u5B1D\u5B34\u5B78\u5BF0\u5C0E\u5F4A\u61B2\u6191\u61A9\u618A\u61CD\u61B6\u61BE\u61CA\u61C8\u6230\u64C5\u64C1\u64CB\u64BB\u64BC\u64DA\u64C4\u64C7\u64C2\u64CD\u64BF\u64D2\u64D4\u64BE\u6574\u66C6\u66C9\u66B9\u66C4\u66C7\u66B8\u6A3D\u6A38\u6A3A\u6A59\u6A6B\u6A58\u6A39\u6A44\u6A62\u6A61\u6A4B\u6A47\u6A35\u6A5F\u6A48\u6B59\u6B77\u6C05\u6FC2\u6FB1\u6FA1"],["bf40","\u6FC3\u6FA4\u6FC1\u6FA7\u6FB3\u6FC0\u6FB9\u6FB6\u6FA6\u6FA0\u6FB4\u71BE\u71C9\u71D0\u71D2\u71C8\u71D5\u71B9\u71CE\u71D9\u71DC\u71C3\u71C4\u7368\u749C\u74A3\u7498\u749F\u749E\u74E2\u750C\u750D\u7634\u7638\u763A\u76E7\u76E5\u77A0\u779E\u779F\u77A5\u78E8\u78DA\u78EC\u78E7\u79A6\u7A4D\u7A4E\u7A46\u7A4C\u7A4B\u7ABA\u7BD9\u7C11\u7BC9\u7BE4\u7BDB\u7BE1\u7BE9\u7BE6\u7CD5\u7CD6\u7E0A"],["bfa1","\u7E11\u7E08\u7E1B\u7E23\u7E1E\u7E1D\u7E09\u7E10\u7F79\u7FB2\u7FF0\u7FF1\u7FEE\u8028\u81B3\u81A9\u81A8\u81FB\u8208\u8258\u8259\u854A\u8559\u8548\u8568\u8569\u8543\u8549\u856D\u856A\u855E\u8783\u879F\u879E\u87A2\u878D\u8861\u892A\u8932\u8925\u892B\u8921\u89AA\u89A6\u8AE6\u8AFA\u8AEB\u8AF1\u8B00\u8ADC\u8AE7\u8AEE\u8AFE\u8B01\u8B02\u8AF7\u8AED\u8AF3\u8AF6\u8AFC\u8C6B\u8C6D\u8C93\u8CF4\u8E44\u8E31\u8E34\u8E42\u8E39\u8E35\u8F3B\u8F2F\u8F38\u8F33\u8FA8\u8FA6\u9075\u9074\u9078\u9072\u907C\u907A\u9134\u9192\u9320\u9336\u92F8\u9333\u932F\u9322\u92FC\u932B\u9304\u931A"],["c040","\u9310\u9326\u9321\u9315\u932E\u9319\u95BB\u96A7\u96A8\u96AA\u96D5\u970E\u9711\u9716\u970D\u9713\u970F\u975B\u975C\u9766\u9798\u9830\u9838\u983B\u9837\u982D\u9839\u9824\u9910\u9928\u991E\u991B\u9921\u991A\u99ED\u99E2\u99F1\u9AB8\u9ABC\u9AFB\u9AED\u9B28\u9B91\u9D15\u9D23\u9D26\u9D28\u9D12\u9D1B\u9ED8\u9ED4\u9F8D\u9F9C\u512A\u511F\u5121\u5132\u52F5\u568E\u5680\u5690\u5685\u5687"],["c0a1","\u568F\u58D5\u58D3\u58D1\u58CE\u5B30\u5B2A\u5B24\u5B7A\u5C37\u5C68\u5DBC\u5DBA\u5DBD\u5DB8\u5E6B\u5F4C\u5FBD\u61C9\u61C2\u61C7\u61E6\u61CB\u6232\u6234\u64CE\u64CA\u64D8\u64E0\u64F0\u64E6\u64EC\u64F1\u64E2\u64ED\u6582\u6583\u66D9\u66D6\u6A80\u6A94\u6A84\u6AA2\u6A9C\u6ADB\u6AA3\u6A7E\u6A97\u6A90\u6AA0\u6B5C\u6BAE\u6BDA\u6C08\u6FD8\u6FF1\u6FDF\u6FE0\u6FDB\u6FE4\u6FEB\u6FEF\u6F80\u6FEC\u6FE1\u6FE9\u6FD5\u6FEE\u6FF0\u71E7\u71DF\u71EE\u71E6\u71E5\u71ED\u71EC\u71F4\u71E0\u7235\u7246\u7370\u7372\u74A9\u74B0\u74A6\u74A8\u7646\u7642\u764C\u76EA\u77B3\u77AA\u77B0\u77AC"],["c140","\u77A7\u77AD\u77EF\u78F7\u78FA\u78F4\u78EF\u7901\u79A7\u79AA\u7A57\u7ABF\u7C07\u7C0D\u7BFE\u7BF7\u7C0C\u7BE0\u7CE0\u7CDC\u7CDE\u7CE2\u7CDF\u7CD9\u7CDD\u7E2E\u7E3E\u7E46\u7E37\u7E32\u7E43\u7E2B\u7E3D\u7E31\u7E45\u7E41\u7E34\u7E39\u7E48\u7E35\u7E3F\u7E2F\u7F44\u7FF3\u7FFC\u8071\u8072\u8070\u806F\u8073\u81C6\u81C3\u81BA\u81C2\u81C0\u81BF\u81BD\u81C9\u81BE\u81E8\u8209\u8271\u85AA"],["c1a1","\u8584\u857E\u859C\u8591\u8594\u85AF\u859B\u8587\u85A8\u858A\u8667\u87C0\u87D1\u87B3\u87D2\u87C6\u87AB\u87BB\u87BA\u87C8\u87CB\u893B\u8936\u8944\u8938\u893D\u89AC\u8B0E\u8B17\u8B19\u8B1B\u8B0A\u8B20\u8B1D\u8B04\u8B10\u8C41\u8C3F\u8C73\u8CFA\u8CFD\u8CFC\u8CF8\u8CFB\u8DA8\u8E49\u8E4B\u8E48\u8E4A\u8F44\u8F3E\u8F42\u8F45\u8F3F\u907F\u907D\u9084\u9081\u9082\u9080\u9139\u91A3\u919E\u919C\u934D\u9382\u9328\u9375\u934A\u9365\u934B\u9318\u937E\u936C\u935B\u9370\u935A\u9354\u95CA\u95CB\u95CC\u95C8\u95C6\u96B1\u96B8\u96D6\u971C\u971E\u97A0\u97D3\u9846\u98B6\u9935\u9A01"],["c240","\u99FF\u9BAE\u9BAB\u9BAA\u9BAD\u9D3B\u9D3F\u9E8B\u9ECF\u9EDE\u9EDC\u9EDD\u9EDB\u9F3E\u9F4B\u53E2\u5695\u56AE\u58D9\u58D8\u5B38\u5F5D\u61E3\u6233\u64F4\u64F2\u64FE\u6506\u64FA\u64FB\u64F7\u65B7\u66DC\u6726\u6AB3\u6AAC\u6AC3\u6ABB\u6AB8\u6AC2\u6AAE\u6AAF\u6B5F\u6B78\u6BAF\u7009\u700B\u6FFE\u7006\u6FFA\u7011\u700F\u71FB\u71FC\u71FE\u71F8\u7377\u7375\u74A7\u74BF\u7515\u7656\u7658"],["c2a1","\u7652\u77BD\u77BF\u77BB\u77BC\u790E\u79AE\u7A61\u7A62\u7A60\u7AC4\u7AC5\u7C2B\u7C27\u7C2A\u7C1E\u7C23\u7C21\u7CE7\u7E54\u7E55\u7E5E\u7E5A\u7E61\u7E52\u7E59\u7F48\u7FF9\u7FFB\u8077\u8076\u81CD\u81CF\u820A\u85CF\u85A9\u85CD\u85D0\u85C9\u85B0\u85BA\u85B9\u85A6\u87EF\u87EC\u87F2\u87E0\u8986\u89B2\u89F4\u8B28\u8B39\u8B2C\u8B2B\u8C50\u8D05\u8E59\u8E63\u8E66\u8E64\u8E5F\u8E55\u8EC0\u8F49\u8F4D\u9087\u9083\u9088\u91AB\u91AC\u91D0\u9394\u938A\u9396\u93A2\u93B3\u93AE\u93AC\u93B0\u9398\u939A\u9397\u95D4\u95D6\u95D0\u95D5\u96E2\u96DC\u96D9\u96DB\u96DE\u9724\u97A3\u97A6"],["c340","\u97AD\u97F9\u984D\u984F\u984C\u984E\u9853\u98BA\u993E\u993F\u993D\u992E\u99A5\u9A0E\u9AC1\u9B03\u9B06\u9B4F\u9B4E\u9B4D\u9BCA\u9BC9\u9BFD\u9BC8\u9BC0\u9D51\u9D5D\u9D60\u9EE0\u9F15\u9F2C\u5133\u56A5\u58DE\u58DF\u58E2\u5BF5\u9F90\u5EEC\u61F2\u61F7\u61F6\u61F5\u6500\u650F\u66E0\u66DD\u6AE5\u6ADD\u6ADA\u6AD3\u701B\u701F\u7028\u701A\u701D\u7015\u7018\u7206\u720D\u7258\u72A2\u7378"],["c3a1","\u737A\u74BD\u74CA\u74E3\u7587\u7586\u765F\u7661\u77C7\u7919\u79B1\u7A6B\u7A69\u7C3E\u7C3F\u7C38\u7C3D\u7C37\u7C40\u7E6B\u7E6D\u7E79\u7E69\u7E6A\u7F85\u7E73\u7FB6\u7FB9\u7FB8\u81D8\u85E9\u85DD\u85EA\u85D5\u85E4\u85E5\u85F7\u87FB\u8805\u880D\u87F9\u87FE\u8960\u895F\u8956\u895E\u8B41\u8B5C\u8B58\u8B49\u8B5A\u8B4E\u8B4F\u8B46\u8B59\u8D08\u8D0A\u8E7C\u8E72\u8E87\u8E76\u8E6C\u8E7A\u8E74\u8F54\u8F4E\u8FAD\u908A\u908B\u91B1\u91AE\u93E1\u93D1\u93DF\u93C3\u93C8\u93DC\u93DD\u93D6\u93E2\u93CD\u93D8\u93E4\u93D7\u93E8\u95DC\u96B4\u96E3\u972A\u9727\u9761\u97DC\u97FB\u985E"],["c440","\u9858\u985B\u98BC\u9945\u9949\u9A16\u9A19\u9B0D\u9BE8\u9BE7\u9BD6\u9BDB\u9D89\u9D61\u9D72\u9D6A\u9D6C\u9E92\u9E97\u9E93\u9EB4\u52F8\u56A8\u56B7\u56B6\u56B4\u56BC\u58E4\u5B40\u5B43\u5B7D\u5BF6\u5DC9\u61F8\u61FA\u6518\u6514\u6519\u66E6\u6727\u6AEC\u703E\u7030\u7032\u7210\u737B\u74CF\u7662\u7665\u7926\u792A\u792C\u792B\u7AC7\u7AF6\u7C4C\u7C43\u7C4D\u7CEF\u7CF0\u8FAE\u7E7D\u7E7C"],["c4a1","\u7E82\u7F4C\u8000\u81DA\u8266\u85FB\u85F9\u8611\u85FA\u8606\u860B\u8607\u860A\u8814\u8815\u8964\u89BA\u89F8\u8B70\u8B6C\u8B66\u8B6F\u8B5F\u8B6B\u8D0F\u8D0D\u8E89\u8E81\u8E85\u8E82\u91B4\u91CB\u9418\u9403\u93FD\u95E1\u9730\u98C4\u9952\u9951\u99A8\u9A2B\u9A30\u9A37\u9A35\u9C13\u9C0D\u9E79\u9EB5\u9EE8\u9F2F\u9F5F\u9F63\u9F61\u5137\u5138\u56C1\u56C0\u56C2\u5914\u5C6C\u5DCD\u61FC\u61FE\u651D\u651C\u6595\u66E9\u6AFB\u6B04\u6AFA\u6BB2\u704C\u721B\u72A7\u74D6\u74D4\u7669\u77D3\u7C50\u7E8F\u7E8C\u7FBC\u8617\u862D\u861A\u8823\u8822\u8821\u881F\u896A\u896C\u89BD\u8B74"],["c540","\u8B77\u8B7D\u8D13\u8E8A\u8E8D\u8E8B\u8F5F\u8FAF\u91BA\u942E\u9433\u9435\u943A\u9438\u9432\u942B\u95E2\u9738\u9739\u9732\u97FF\u9867\u9865\u9957\u9A45\u9A43\u9A40\u9A3E\u9ACF\u9B54\u9B51\u9C2D\u9C25\u9DAF\u9DB4\u9DC2\u9DB8\u9E9D\u9EEF\u9F19\u9F5C\u9F66\u9F67\u513C\u513B\u56C8\u56CA\u56C9\u5B7F\u5DD4\u5DD2\u5F4E\u61FF\u6524\u6B0A\u6B61\u7051\u7058\u7380\u74E4\u758A\u766E\u766C"],["c5a1","\u79B3\u7C60\u7C5F\u807E\u807D\u81DF\u8972\u896F\u89FC\u8B80\u8D16\u8D17\u8E91\u8E93\u8F61\u9148\u9444\u9451\u9452\u973D\u973E\u97C3\u97C1\u986B\u9955\u9A55\u9A4D\u9AD2\u9B1A\u9C49\u9C31\u9C3E\u9C3B\u9DD3\u9DD7\u9F34\u9F6C\u9F6A\u9F94\u56CC\u5DD6\u6200\u6523\u652B\u652A\u66EC\u6B10\u74DA\u7ACA\u7C64\u7C63\u7C65\u7E93\u7E96\u7E94\u81E2\u8638\u863F\u8831\u8B8A\u9090\u908F\u9463\u9460\u9464\u9768\u986F\u995C\u9A5A\u9A5B\u9A57\u9AD3\u9AD4\u9AD1\u9C54\u9C57\u9C56\u9DE5\u9E9F\u9EF4\u56D1\u58E9\u652C\u705E\u7671\u7672\u77D7\u7F50\u7F88\u8836\u8839\u8862\u8B93\u8B92"],["c640","\u8B96\u8277\u8D1B\u91C0\u946A\u9742\u9748\u9744\u97C6\u9870\u9A5F\u9B22\u9B58\u9C5F\u9DF9\u9DFA\u9E7C\u9E7D\u9F07\u9F77\u9F72\u5EF3\u6B16\u7063\u7C6C\u7C6E\u883B\u89C0\u8EA1\u91C1\u9472\u9470\u9871\u995E\u9AD6\u9B23\u9ECC\u7064\u77DA\u8B9A\u9477\u97C9\u9A62\u9A65\u7E9C\u8B9C\u8EAA\u91C5\u947D\u947E\u947C\u9C77\u9C78\u9EF7\u8C54\u947F\u9E1A\u7228\u9A6A\u9B31\u9E1B\u9E1E\u7C72"],["c940","\u4E42\u4E5C\u51F5\u531A\u5382\u4E07\u4E0C\u4E47\u4E8D\u56D7\uFA0C\u5C6E\u5F73\u4E0F\u5187\u4E0E\u4E2E\u4E93\u4EC2\u4EC9\u4EC8\u5198\u52FC\u536C\u53B9\u5720\u5903\u592C\u5C10\u5DFF\u65E1\u6BB3\u6BCC\u6C14\u723F\u4E31\u4E3C\u4EE8\u4EDC\u4EE9\u4EE1\u4EDD\u4EDA\u520C\u531C\u534C\u5722\u5723\u5917\u592F\u5B81\u5B84\u5C12\u5C3B\u5C74\u5C73\u5E04\u5E80\u5E82\u5FC9\u6209\u6250\u6C15"],["c9a1","\u6C36\u6C43\u6C3F\u6C3B\u72AE\u72B0\u738A\u79B8\u808A\u961E\u4F0E\u4F18\u4F2C\u4EF5\u4F14\u4EF1\u4F00\u4EF7\u4F08\u4F1D\u4F02\u4F05\u4F22\u4F13\u4F04\u4EF4\u4F12\u51B1\u5213\u5209\u5210\u52A6\u5322\u531F\u534D\u538A\u5407\u56E1\u56DF\u572E\u572A\u5734\u593C\u5980\u597C\u5985\u597B\u597E\u5977\u597F\u5B56\u5C15\u5C25\u5C7C\u5C7A\u5C7B\u5C7E\u5DDF\u5E75\u5E84\u5F02\u5F1A\u5F74\u5FD5\u5FD4\u5FCF\u625C\u625E\u6264\u6261\u6266\u6262\u6259\u6260\u625A\u6265\u65EF\u65EE\u673E\u6739\u6738\u673B\u673A\u673F\u673C\u6733\u6C18\u6C46\u6C52\u6C5C\u6C4F\u6C4A\u6C54\u6C4B"],["ca40","\u6C4C\u7071\u725E\u72B4\u72B5\u738E\u752A\u767F\u7A75\u7F51\u8278\u827C\u8280\u827D\u827F\u864D\u897E\u9099\u9097\u9098\u909B\u9094\u9622\u9624\u9620\u9623\u4F56\u4F3B\u4F62\u4F49\u4F53\u4F64\u4F3E\u4F67\u4F52\u4F5F\u4F41\u4F58\u4F2D\u4F33\u4F3F\u4F61\u518F\u51B9\u521C\u521E\u5221\u52AD\u52AE\u5309\u5363\u5372\u538E\u538F\u5430\u5437\u542A\u5454\u5445\u5419\u541C\u5425\u5418"],["caa1","\u543D\u544F\u5441\u5428\u5424\u5447\u56EE\u56E7\u56E5\u5741\u5745\u574C\u5749\u574B\u5752\u5906\u5940\u59A6\u5998\u59A0\u5997\u598E\u59A2\u5990\u598F\u59A7\u59A1\u5B8E\u5B92\u5C28\u5C2A\u5C8D\u5C8F\u5C88\u5C8B\u5C89\u5C92\u5C8A\u5C86\u5C93\u5C95\u5DE0\u5E0A\u5E0E\u5E8B\u5E89\u5E8C\u5E88\u5E8D\u5F05\u5F1D\u5F78\u5F76\u5FD2\u5FD1\u5FD0\u5FED\u5FE8\u5FEE\u5FF3\u5FE1\u5FE4\u5FE3\u5FFA\u5FEF\u5FF7\u5FFB\u6000\u5FF4\u623A\u6283\u628C\u628E\u628F\u6294\u6287\u6271\u627B\u627A\u6270\u6281\u6288\u6277\u627D\u6272\u6274\u6537\u65F0\u65F4\u65F3\u65F2\u65F5\u6745\u6747"],["cb40","\u6759\u6755\u674C\u6748\u675D\u674D\u675A\u674B\u6BD0\u6C19\u6C1A\u6C78\u6C67\u6C6B\u6C84\u6C8B\u6C8F\u6C71\u6C6F\u6C69\u6C9A\u6C6D\u6C87\u6C95\u6C9C\u6C66\u6C73\u6C65\u6C7B\u6C8E\u7074\u707A\u7263\u72BF\u72BD\u72C3\u72C6\u72C1\u72BA\u72C5\u7395\u7397\u7393\u7394\u7392\u753A\u7539\u7594\u7595\u7681\u793D\u8034\u8095\u8099\u8090\u8092\u809C\u8290\u828F\u8285\u828E\u8291\u8293"],["cba1","\u828A\u8283\u8284\u8C78\u8FC9\u8FBF\u909F\u90A1\u90A5\u909E\u90A7\u90A0\u9630\u9628\u962F\u962D\u4E33\u4F98\u4F7C\u4F85\u4F7D\u4F80\u4F87\u4F76\u4F74\u4F89\u4F84\u4F77\u4F4C\u4F97\u4F6A\u4F9A\u4F79\u4F81\u4F78\u4F90\u4F9C\u4F94\u4F9E\u4F92\u4F82\u4F95\u4F6B\u4F6E\u519E\u51BC\u51BE\u5235\u5232\u5233\u5246\u5231\u52BC\u530A\u530B\u533C\u5392\u5394\u5487\u547F\u5481\u5491\u5482\u5488\u546B\u547A\u547E\u5465\u546C\u5474\u5466\u548D\u546F\u5461\u5460\u5498\u5463\u5467\u5464\u56F7\u56F9\u576F\u5772\u576D\u576B\u5771\u5770\u5776\u5780\u5775\u577B\u5773\u5774\u5762"],["cc40","\u5768\u577D\u590C\u5945\u59B5\u59BA\u59CF\u59CE\u59B2\u59CC\u59C1\u59B6\u59BC\u59C3\u59D6\u59B1\u59BD\u59C0\u59C8\u59B4\u59C7\u5B62\u5B65\u5B93\u5B95\u5C44\u5C47\u5CAE\u5CA4\u5CA0\u5CB5\u5CAF\u5CA8\u5CAC\u5C9F\u5CA3\u5CAD\u5CA2\u5CAA\u5CA7\u5C9D\u5CA5\u5CB6\u5CB0\u5CA6\u5E17\u5E14\u5E19\u5F28\u5F22\u5F23\u5F24\u5F54\u5F82\u5F7E\u5F7D\u5FDE\u5FE5\u602D\u6026\u6019\u6032\u600B"],["cca1","\u6034\u600A\u6017\u6033\u601A\u601E\u602C\u6022\u600D\u6010\u602E\u6013\u6011\u600C\u6009\u601C\u6214\u623D\u62AD\u62B4\u62D1\u62BE\u62AA\u62B6\u62CA\u62AE\u62B3\u62AF\u62BB\u62A9\u62B0\u62B8\u653D\u65A8\u65BB\u6609\u65FC\u6604\u6612\u6608\u65FB\u6603\u660B\u660D\u6605\u65FD\u6611\u6610\u66F6\u670A\u6785\u676C\u678E\u6792\u6776\u677B\u6798\u6786\u6784\u6774\u678D\u678C\u677A\u679F\u6791\u6799\u6783\u677D\u6781\u6778\u6779\u6794\u6B25\u6B80\u6B7E\u6BDE\u6C1D\u6C93\u6CEC\u6CEB\u6CEE\u6CD9\u6CB6\u6CD4\u6CAD\u6CE7\u6CB7\u6CD0\u6CC2\u6CBA\u6CC3\u6CC6\u6CED\u6CF2"],["cd40","\u6CD2\u6CDD\u6CB4\u6C8A\u6C9D\u6C80\u6CDE\u6CC0\u6D30\u6CCD\u6CC7\u6CB0\u6CF9\u6CCF\u6CE9\u6CD1\u7094\u7098\u7085\u7093\u7086\u7084\u7091\u7096\u7082\u709A\u7083\u726A\u72D6\u72CB\u72D8\u72C9\u72DC\u72D2\u72D4\u72DA\u72CC\u72D1\u73A4\u73A1\u73AD\u73A6\u73A2\u73A0\u73AC\u739D\u74DD\u74E8\u753F\u7540\u753E\u758C\u7598\u76AF\u76F3\u76F1\u76F0\u76F5\u77F8\u77FC\u77F9\u77FB\u77FA"],["cda1","\u77F7\u7942\u793F\u79C5\u7A78\u7A7B\u7AFB\u7C75\u7CFD\u8035\u808F\u80AE\u80A3\u80B8\u80B5\u80AD\u8220\u82A0\u82C0\u82AB\u829A\u8298\u829B\u82B5\u82A7\u82AE\u82BC\u829E\u82BA\u82B4\u82A8\u82A1\u82A9\u82C2\u82A4\u82C3\u82B6\u82A2\u8670\u866F\u866D\u866E\u8C56\u8FD2\u8FCB\u8FD3\u8FCD\u8FD6\u8FD5\u8FD7\u90B2\u90B4\u90AF\u90B3\u90B0\u9639\u963D\u963C\u963A\u9643\u4FCD\u4FC5\u4FD3\u4FB2\u4FC9\u4FCB\u4FC1\u4FD4\u4FDC\u4FD9\u4FBB\u4FB3\u4FDB\u4FC7\u4FD6\u4FBA\u4FC0\u4FB9\u4FEC\u5244\u5249\u52C0\u52C2\u533D\u537C\u5397\u5396\u5399\u5398\u54BA\u54A1\u54AD\u54A5\u54CF"],["ce40","\u54C3\u830D\u54B7\u54AE\u54D6\u54B6\u54C5\u54C6\u54A0\u5470\u54BC\u54A2\u54BE\u5472\u54DE\u54B0\u57B5\u579E\u579F\u57A4\u578C\u5797\u579D\u579B\u5794\u5798\u578F\u5799\u57A5\u579A\u5795\u58F4\u590D\u5953\u59E1\u59DE\u59EE\u5A00\u59F1\u59DD\u59FA\u59FD\u59FC\u59F6\u59E4\u59F2\u59F7\u59DB\u59E9\u59F3\u59F5\u59E0\u59FE\u59F4\u59ED\u5BA8\u5C4C\u5CD0\u5CD8\u5CCC\u5CD7\u5CCB\u5CDB"],["cea1","\u5CDE\u5CDA\u5CC9\u5CC7\u5CCA\u5CD6\u5CD3\u5CD4\u5CCF\u5CC8\u5CC6\u5CCE\u5CDF\u5CF8\u5DF9\u5E21\u5E22\u5E23\u5E20\u5E24\u5EB0\u5EA4\u5EA2\u5E9B\u5EA3\u5EA5\u5F07\u5F2E\u5F56\u5F86\u6037\u6039\u6054\u6072\u605E\u6045\u6053\u6047\u6049\u605B\u604C\u6040\u6042\u605F\u6024\u6044\u6058\u6066\u606E\u6242\u6243\u62CF\u630D\u630B\u62F5\u630E\u6303\u62EB\u62F9\u630F\u630C\u62F8\u62F6\u6300\u6313\u6314\u62FA\u6315\u62FB\u62F0\u6541\u6543\u65AA\u65BF\u6636\u6621\u6632\u6635\u661C\u6626\u6622\u6633\u662B\u663A\u661D\u6634\u6639\u662E\u670F\u6710\u67C1\u67F2\u67C8\u67BA"],["cf40","\u67DC\u67BB\u67F8\u67D8\u67C0\u67B7\u67C5\u67EB\u67E4\u67DF\u67B5\u67CD\u67B3\u67F7\u67F6\u67EE\u67E3\u67C2\u67B9\u67CE\u67E7\u67F0\u67B2\u67FC\u67C6\u67ED\u67CC\u67AE\u67E6\u67DB\u67FA\u67C9\u67CA\u67C3\u67EA\u67CB\u6B28\u6B82\u6B84\u6BB6\u6BD6\u6BD8\u6BE0\u6C20\u6C21\u6D28\u6D34\u6D2D\u6D1F\u6D3C\u6D3F\u6D12\u6D0A\u6CDA\u6D33\u6D04\u6D19\u6D3A\u6D1A\u6D11\u6D00\u6D1D\u6D42"],["cfa1","\u6D01\u6D18\u6D37\u6D03\u6D0F\u6D40\u6D07\u6D20\u6D2C\u6D08\u6D22\u6D09\u6D10\u70B7\u709F\u70BE\u70B1\u70B0\u70A1\u70B4\u70B5\u70A9\u7241\u7249\u724A\u726C\u7270\u7273\u726E\u72CA\u72E4\u72E8\u72EB\u72DF\u72EA\u72E6\u72E3\u7385\u73CC\u73C2\u73C8\u73C5\u73B9\u73B6\u73B5\u73B4\u73EB\u73BF\u73C7\u73BE\u73C3\u73C6\u73B8\u73CB\u74EC\u74EE\u752E\u7547\u7548\u75A7\u75AA\u7679\u76C4\u7708\u7703\u7704\u7705\u770A\u76F7\u76FB\u76FA\u77E7\u77E8\u7806\u7811\u7812\u7805\u7810\u780F\u780E\u7809\u7803\u7813\u794A\u794C\u794B\u7945\u7944\u79D5\u79CD\u79CF\u79D6\u79CE\u7A80"],["d040","\u7A7E\u7AD1\u7B00\u7B01\u7C7A\u7C78\u7C79\u7C7F\u7C80\u7C81\u7D03\u7D08\u7D01\u7F58\u7F91\u7F8D\u7FBE\u8007\u800E\u800F\u8014\u8037\u80D8\u80C7\u80E0\u80D1\u80C8\u80C2\u80D0\u80C5\u80E3\u80D9\u80DC\u80CA\u80D5\u80C9\u80CF\u80D7\u80E6\u80CD\u81FF\u8221\u8294\u82D9\u82FE\u82F9\u8307\u82E8\u8300\u82D5\u833A\u82EB\u82D6\u82F4\u82EC\u82E1\u82F2\u82F5\u830C\u82FB\u82F6\u82F0\u82EA"],["d0a1","\u82E4\u82E0\u82FA\u82F3\u82ED\u8677\u8674\u867C\u8673\u8841\u884E\u8867\u886A\u8869\u89D3\u8A04\u8A07\u8D72\u8FE3\u8FE1\u8FEE\u8FE0\u90F1\u90BD\u90BF\u90D5\u90C5\u90BE\u90C7\u90CB\u90C8\u91D4\u91D3\u9654\u964F\u9651\u9653\u964A\u964E\u501E\u5005\u5007\u5013\u5022\u5030\u501B\u4FF5\u4FF4\u5033\u5037\u502C\u4FF6\u4FF7\u5017\u501C\u5020\u5027\u5035\u502F\u5031\u500E\u515A\u5194\u5193\u51CA\u51C4\u51C5\u51C8\u51CE\u5261\u525A\u5252\u525E\u525F\u5255\u5262\u52CD\u530E\u539E\u5526\u54E2\u5517\u5512\u54E7\u54F3\u54E4\u551A\u54FF\u5504\u5508\u54EB\u5511\u5505\u54F1"],["d140","\u550A\u54FB\u54F7\u54F8\u54E0\u550E\u5503\u550B\u5701\u5702\u57CC\u5832\u57D5\u57D2\u57BA\u57C6\u57BD\u57BC\u57B8\u57B6\u57BF\u57C7\u57D0\u57B9\u57C1\u590E\u594A\u5A19\u5A16\u5A2D\u5A2E\u5A15\u5A0F\u5A17\u5A0A\u5A1E\u5A33\u5B6C\u5BA7\u5BAD\u5BAC\u5C03\u5C56\u5C54\u5CEC\u5CFF\u5CEE\u5CF1\u5CF7\u5D00\u5CF9\u5E29\u5E28\u5EA8\u5EAE\u5EAA\u5EAC\u5F33\u5F30\u5F67\u605D\u605A\u6067"],["d1a1","\u6041\u60A2\u6088\u6080\u6092\u6081\u609D\u6083\u6095\u609B\u6097\u6087\u609C\u608E\u6219\u6246\u62F2\u6310\u6356\u632C\u6344\u6345\u6336\u6343\u63E4\u6339\u634B\u634A\u633C\u6329\u6341\u6334\u6358\u6354\u6359\u632D\u6347\u6333\u635A\u6351\u6338\u6357\u6340\u6348\u654A\u6546\u65C6\u65C3\u65C4\u65C2\u664A\u665F\u6647\u6651\u6712\u6713\u681F\u681A\u6849\u6832\u6833\u683B\u684B\u684F\u6816\u6831\u681C\u6835\u682B\u682D\u682F\u684E\u6844\u6834\u681D\u6812\u6814\u6826\u6828\u682E\u684D\u683A\u6825\u6820\u6B2C\u6B2F\u6B2D\u6B31\u6B34\u6B6D\u8082\u6B88\u6BE6\u6BE4"],["d240","\u6BE8\u6BE3\u6BE2\u6BE7\u6C25\u6D7A\u6D63\u6D64\u6D76\u6D0D\u6D61\u6D92\u6D58\u6D62\u6D6D\u6D6F\u6D91\u6D8D\u6DEF\u6D7F\u6D86\u6D5E\u6D67\u6D60\u6D97\u6D70\u6D7C\u6D5F\u6D82\u6D98\u6D2F\u6D68\u6D8B\u6D7E\u6D80\u6D84\u6D16\u6D83\u6D7B\u6D7D\u6D75\u6D90\u70DC\u70D3\u70D1\u70DD\u70CB\u7F39\u70E2\u70D7\u70D2\u70DE\u70E0\u70D4\u70CD\u70C5\u70C6\u70C7\u70DA\u70CE\u70E1\u7242\u7278"],["d2a1","\u7277\u7276\u7300\u72FA\u72F4\u72FE\u72F6\u72F3\u72FB\u7301\u73D3\u73D9\u73E5\u73D6\u73BC\u73E7\u73E3\u73E9\u73DC\u73D2\u73DB\u73D4\u73DD\u73DA\u73D7\u73D8\u73E8\u74DE\u74DF\u74F4\u74F5\u7521\u755B\u755F\u75B0\u75C1\u75BB\u75C4\u75C0\u75BF\u75B6\u75BA\u768A\u76C9\u771D\u771B\u7710\u7713\u7712\u7723\u7711\u7715\u7719\u771A\u7722\u7727\u7823\u782C\u7822\u7835\u782F\u7828\u782E\u782B\u7821\u7829\u7833\u782A\u7831\u7954\u795B\u794F\u795C\u7953\u7952\u7951\u79EB\u79EC\u79E0\u79EE\u79ED\u79EA\u79DC\u79DE\u79DD\u7A86\u7A89\u7A85\u7A8B\u7A8C\u7A8A\u7A87\u7AD8\u7B10"],["d340","\u7B04\u7B13\u7B05\u7B0F\u7B08\u7B0A\u7B0E\u7B09\u7B12\u7C84\u7C91\u7C8A\u7C8C\u7C88\u7C8D\u7C85\u7D1E\u7D1D\u7D11\u7D0E\u7D18\u7D16\u7D13\u7D1F\u7D12\u7D0F\u7D0C\u7F5C\u7F61\u7F5E\u7F60\u7F5D\u7F5B\u7F96\u7F92\u7FC3\u7FC2\u7FC0\u8016\u803E\u8039\u80FA\u80F2\u80F9\u80F5\u8101\u80FB\u8100\u8201\u822F\u8225\u8333\u832D\u8344\u8319\u8351\u8325\u8356\u833F\u8341\u8326\u831C\u8322"],["d3a1","\u8342\u834E\u831B\u832A\u8308\u833C\u834D\u8316\u8324\u8320\u8337\u832F\u8329\u8347\u8345\u834C\u8353\u831E\u832C\u834B\u8327\u8348\u8653\u8652\u86A2\u86A8\u8696\u868D\u8691\u869E\u8687\u8697\u8686\u868B\u869A\u8685\u86A5\u8699\u86A1\u86A7\u8695\u8698\u868E\u869D\u8690\u8694\u8843\u8844\u886D\u8875\u8876\u8872\u8880\u8871\u887F\u886F\u8883\u887E\u8874\u887C\u8A12\u8C47\u8C57\u8C7B\u8CA4\u8CA3\u8D76\u8D78\u8DB5\u8DB7\u8DB6\u8ED1\u8ED3\u8FFE\u8FF5\u9002\u8FFF\u8FFB\u9004\u8FFC\u8FF6\u90D6\u90E0\u90D9\u90DA\u90E3\u90DF\u90E5\u90D8\u90DB\u90D7\u90DC\u90E4\u9150"],["d440","\u914E\u914F\u91D5\u91E2\u91DA\u965C\u965F\u96BC\u98E3\u9ADF\u9B2F\u4E7F\u5070\u506A\u5061\u505E\u5060\u5053\u504B\u505D\u5072\u5048\u504D\u5041\u505B\u504A\u5062\u5015\u5045\u505F\u5069\u506B\u5063\u5064\u5046\u5040\u506E\u5073\u5057\u5051\u51D0\u526B\u526D\u526C\u526E\u52D6\u52D3\u532D\u539C\u5575\u5576\u553C\u554D\u5550\u5534\u552A\u5551\u5562\u5536\u5535\u5530\u5552\u5545"],["d4a1","\u550C\u5532\u5565\u554E\u5539\u5548\u552D\u553B\u5540\u554B\u570A\u5707\u57FB\u5814\u57E2\u57F6\u57DC\u57F4\u5800\u57ED\u57FD\u5808\u57F8\u580B\u57F3\u57CF\u5807\u57EE\u57E3\u57F2\u57E5\u57EC\u57E1\u580E\u57FC\u5810\u57E7\u5801\u580C\u57F1\u57E9\u57F0\u580D\u5804\u595C\u5A60\u5A58\u5A55\u5A67\u5A5E\u5A38\u5A35\u5A6D\u5A50\u5A5F\u5A65\u5A6C\u5A53\u5A64\u5A57\u5A43\u5A5D\u5A52\u5A44\u5A5B\u5A48\u5A8E\u5A3E\u5A4D\u5A39\u5A4C\u5A70\u5A69\u5A47\u5A51\u5A56\u5A42\u5A5C\u5B72\u5B6E\u5BC1\u5BC0\u5C59\u5D1E\u5D0B\u5D1D\u5D1A\u5D20\u5D0C\u5D28\u5D0D\u5D26\u5D25\u5D0F"],["d540","\u5D30\u5D12\u5D23\u5D1F\u5D2E\u5E3E\u5E34\u5EB1\u5EB4\u5EB9\u5EB2\u5EB3\u5F36\u5F38\u5F9B\u5F96\u5F9F\u608A\u6090\u6086\u60BE\u60B0\u60BA\u60D3\u60D4\u60CF\u60E4\u60D9\u60DD\u60C8\u60B1\u60DB\u60B7\u60CA\u60BF\u60C3\u60CD\u60C0\u6332\u6365\u638A\u6382\u637D\u63BD\u639E\u63AD\u639D\u6397\u63AB\u638E\u636F\u6387\u6390\u636E\u63AF\u6375\u639C\u636D\u63AE\u637C\u63A4\u633B\u639F"],["d5a1","\u6378\u6385\u6381\u6391\u638D\u6370\u6553\u65CD\u6665\u6661\u665B\u6659\u665C\u6662\u6718\u6879\u6887\u6890\u689C\u686D\u686E\u68AE\u68AB\u6956\u686F\u68A3\u68AC\u68A9\u6875\u6874\u68B2\u688F\u6877\u6892\u687C\u686B\u6872\u68AA\u6880\u6871\u687E\u689B\u6896\u688B\u68A0\u6889\u68A4\u6878\u687B\u6891\u688C\u688A\u687D\u6B36\u6B33\u6B37\u6B38\u6B91\u6B8F\u6B8D\u6B8E\u6B8C\u6C2A\u6DC0\u6DAB\u6DB4\u6DB3\u6E74\u6DAC\u6DE9\u6DE2\u6DB7\u6DF6\u6DD4\u6E00\u6DC8\u6DE0\u6DDF\u6DD6\u6DBE\u6DE5\u6DDC\u6DDD\u6DDB\u6DF4\u6DCA\u6DBD\u6DED\u6DF0\u6DBA\u6DD5\u6DC2\u6DCF\u6DC9"],["d640","\u6DD0\u6DF2\u6DD3\u6DFD\u6DD7\u6DCD\u6DE3\u6DBB\u70FA\u710D\u70F7\u7117\u70F4\u710C\u70F0\u7104\u70F3\u7110\u70FC\u70FF\u7106\u7113\u7100\u70F8\u70F6\u710B\u7102\u710E\u727E\u727B\u727C\u727F\u731D\u7317\u7307\u7311\u7318\u730A\u7308\u72FF\u730F\u731E\u7388\u73F6\u73F8\u73F5\u7404\u7401\u73FD\u7407\u7400\u73FA\u73FC\u73FF\u740C\u740B\u73F4\u7408\u7564\u7563\u75CE\u75D2\u75CF"],["d6a1","\u75CB\u75CC\u75D1\u75D0\u768F\u7689\u76D3\u7739\u772F\u772D\u7731\u7732\u7734\u7733\u773D\u7725\u773B\u7735\u7848\u7852\u7849\u784D\u784A\u784C\u7826\u7845\u7850\u7964\u7967\u7969\u796A\u7963\u796B\u7961\u79BB\u79FA\u79F8\u79F6\u79F7\u7A8F\u7A94\u7A90\u7B35\u7B47\u7B34\u7B25\u7B30\u7B22\u7B24\u7B33\u7B18\u7B2A\u7B1D\u7B31\u7B2B\u7B2D\u7B2F\u7B32\u7B38\u7B1A\u7B23\u7C94\u7C98\u7C96\u7CA3\u7D35\u7D3D\u7D38\u7D36\u7D3A\u7D45\u7D2C\u7D29\u7D41\u7D47\u7D3E\u7D3F\u7D4A\u7D3B\u7D28\u7F63\u7F95\u7F9C\u7F9D\u7F9B\u7FCA\u7FCB\u7FCD\u7FD0\u7FD1\u7FC7\u7FCF\u7FC9\u801F"],["d740","\u801E\u801B\u8047\u8043\u8048\u8118\u8125\u8119\u811B\u812D\u811F\u812C\u811E\u8121\u8115\u8127\u811D\u8122\u8211\u8238\u8233\u823A\u8234\u8232\u8274\u8390\u83A3\u83A8\u838D\u837A\u8373\u83A4\u8374\u838F\u8381\u8395\u8399\u8375\u8394\u83A9\u837D\u8383\u838C\u839D\u839B\u83AA\u838B\u837E\u83A5\u83AF\u8388\u8397\u83B0\u837F\u83A6\u8387\u83AE\u8376\u839A\u8659\u8656\u86BF\u86B7"],["d7a1","\u86C2\u86C1\u86C5\u86BA\u86B0\u86C8\u86B9\u86B3\u86B8\u86CC\u86B4\u86BB\u86BC\u86C3\u86BD\u86BE\u8852\u8889\u8895\u88A8\u88A2\u88AA\u889A\u8891\u88A1\u889F\u8898\u88A7\u8899\u889B\u8897\u88A4\u88AC\u888C\u8893\u888E\u8982\u89D6\u89D9\u89D5\u8A30\u8A27\u8A2C\u8A1E\u8C39\u8C3B\u8C5C\u8C5D\u8C7D\u8CA5\u8D7D\u8D7B\u8D79\u8DBC\u8DC2\u8DB9\u8DBF\u8DC1\u8ED8\u8EDE\u8EDD\u8EDC\u8ED7\u8EE0\u8EE1\u9024\u900B\u9011\u901C\u900C\u9021\u90EF\u90EA\u90F0\u90F4\u90F2\u90F3\u90D4\u90EB\u90EC\u90E9\u9156\u9158\u915A\u9153\u9155\u91EC\u91F4\u91F1\u91F3\u91F8\u91E4\u91F9\u91EA"],["d840","\u91EB\u91F7\u91E8\u91EE\u957A\u9586\u9588\u967C\u966D\u966B\u9671\u966F\u96BF\u976A\u9804\u98E5\u9997\u509B\u5095\u5094\u509E\u508B\u50A3\u5083\u508C\u508E\u509D\u5068\u509C\u5092\u5082\u5087\u515F\u51D4\u5312\u5311\u53A4\u53A7\u5591\u55A8\u55A5\u55AD\u5577\u5645\u55A2\u5593\u5588\u558F\u55B5\u5581\u55A3\u5592\u55A4\u557D\u558C\u55A6\u557F\u5595\u55A1\u558E\u570C\u5829\u5837"],["d8a1","\u5819\u581E\u5827\u5823\u5828\u57F5\u5848\u5825\u581C\u581B\u5833\u583F\u5836\u582E\u5839\u5838\u582D\u582C\u583B\u5961\u5AAF\u5A94\u5A9F\u5A7A\u5AA2\u5A9E\u5A78\u5AA6\u5A7C\u5AA5\u5AAC\u5A95\u5AAE\u5A37\u5A84\u5A8A\u5A97\u5A83\u5A8B\u5AA9\u5A7B\u5A7D\u5A8C\u5A9C\u5A8F\u5A93\u5A9D\u5BEA\u5BCD\u5BCB\u5BD4\u5BD1\u5BCA\u5BCE\u5C0C\u5C30\u5D37\u5D43\u5D6B\u5D41\u5D4B\u5D3F\u5D35\u5D51\u5D4E\u5D55\u5D33\u5D3A\u5D52\u5D3D\u5D31\u5D59\u5D42\u5D39\u5D49\u5D38\u5D3C\u5D32\u5D36\u5D40\u5D45\u5E44\u5E41\u5F58\u5FA6\u5FA5\u5FAB\u60C9\u60B9\u60CC\u60E2\u60CE\u60C4\u6114"],["d940","\u60F2\u610A\u6116\u6105\u60F5\u6113\u60F8\u60FC\u60FE\u60C1\u6103\u6118\u611D\u6110\u60FF\u6104\u610B\u624A\u6394\u63B1\u63B0\u63CE\u63E5\u63E8\u63EF\u63C3\u649D\u63F3\u63CA\u63E0\u63F6\u63D5\u63F2\u63F5\u6461\u63DF\u63BE\u63DD\u63DC\u63C4\u63D8\u63D3\u63C2\u63C7\u63CC\u63CB\u63C8\u63F0\u63D7\u63D9\u6532\u6567\u656A\u6564\u655C\u6568\u6565\u658C\u659D\u659E\u65AE\u65D0\u65D2"],["d9a1","\u667C\u666C\u667B\u6680\u6671\u6679\u666A\u6672\u6701\u690C\u68D3\u6904\u68DC\u692A\u68EC\u68EA\u68F1\u690F\u68D6\u68F7\u68EB\u68E4\u68F6\u6913\u6910\u68F3\u68E1\u6907\u68CC\u6908\u6970\u68B4\u6911\u68EF\u68C6\u6914\u68F8\u68D0\u68FD\u68FC\u68E8\u690B\u690A\u6917\u68CE\u68C8\u68DD\u68DE\u68E6\u68F4\u68D1\u6906\u68D4\u68E9\u6915\u6925\u68C7\u6B39\u6B3B\u6B3F\u6B3C\u6B94\u6B97\u6B99\u6B95\u6BBD\u6BF0\u6BF2\u6BF3\u6C30\u6DFC\u6E46\u6E47\u6E1F\u6E49\u6E88\u6E3C\u6E3D\u6E45\u6E62\u6E2B\u6E3F\u6E41\u6E5D\u6E73\u6E1C\u6E33\u6E4B\u6E40\u6E51\u6E3B\u6E03\u6E2E\u6E5E"],["da40","\u6E68\u6E5C\u6E61\u6E31\u6E28\u6E60\u6E71\u6E6B\u6E39\u6E22\u6E30\u6E53\u6E65\u6E27\u6E78\u6E64\u6E77\u6E55\u6E79\u6E52\u6E66\u6E35\u6E36\u6E5A\u7120\u711E\u712F\u70FB\u712E\u7131\u7123\u7125\u7122\u7132\u711F\u7128\u713A\u711B\u724B\u725A\u7288\u7289\u7286\u7285\u728B\u7312\u730B\u7330\u7322\u7331\u7333\u7327\u7332\u732D\u7326\u7323\u7335\u730C\u742E\u742C\u7430\u742B\u7416"],["daa1","\u741A\u7421\u742D\u7431\u7424\u7423\u741D\u7429\u7420\u7432\u74FB\u752F\u756F\u756C\u75E7\u75DA\u75E1\u75E6\u75DD\u75DF\u75E4\u75D7\u7695\u7692\u76DA\u7746\u7747\u7744\u774D\u7745\u774A\u774E\u774B\u774C\u77DE\u77EC\u7860\u7864\u7865\u785C\u786D\u7871\u786A\u786E\u7870\u7869\u7868\u785E\u7862\u7974\u7973\u7972\u7970\u7A02\u7A0A\u7A03\u7A0C\u7A04\u7A99\u7AE6\u7AE4\u7B4A\u7B3B\u7B44\u7B48\u7B4C\u7B4E\u7B40\u7B58\u7B45\u7CA2\u7C9E\u7CA8\u7CA1\u7D58\u7D6F\u7D63\u7D53\u7D56\u7D67\u7D6A\u7D4F\u7D6D\u7D5C\u7D6B\u7D52\u7D54\u7D69\u7D51\u7D5F\u7D4E\u7F3E\u7F3F\u7F65"],["db40","\u7F66\u7FA2\u7FA0\u7FA1\u7FD7\u8051\u804F\u8050\u80FE\u80D4\u8143\u814A\u8152\u814F\u8147\u813D\u814D\u813A\u81E6\u81EE\u81F7\u81F8\u81F9\u8204\u823C\u823D\u823F\u8275\u833B\u83CF\u83F9\u8423\u83C0\u83E8\u8412\u83E7\u83E4\u83FC\u83F6\u8410\u83C6\u83C8\u83EB\u83E3\u83BF\u8401\u83DD\u83E5\u83D8\u83FF\u83E1\u83CB\u83CE\u83D6\u83F5\u83C9\u8409\u840F\u83DE\u8411\u8406\u83C2\u83F3"],["dba1","\u83D5\u83FA\u83C7\u83D1\u83EA\u8413\u83C3\u83EC\u83EE\u83C4\u83FB\u83D7\u83E2\u841B\u83DB\u83FE\u86D8\u86E2\u86E6\u86D3\u86E3\u86DA\u86EA\u86DD\u86EB\u86DC\u86EC\u86E9\u86D7\u86E8\u86D1\u8848\u8856\u8855\u88BA\u88D7\u88B9\u88B8\u88C0\u88BE\u88B6\u88BC\u88B7\u88BD\u88B2\u8901\u88C9\u8995\u8998\u8997\u89DD\u89DA\u89DB\u8A4E\u8A4D\u8A39\u8A59\u8A40\u8A57\u8A58\u8A44\u8A45\u8A52\u8A48\u8A51\u8A4A\u8A4C\u8A4F\u8C5F\u8C81\u8C80\u8CBA\u8CBE\u8CB0\u8CB9\u8CB5\u8D84\u8D80\u8D89\u8DD8\u8DD3\u8DCD\u8DC7\u8DD6\u8DDC\u8DCF\u8DD5\u8DD9\u8DC8\u8DD7\u8DC5\u8EEF\u8EF7\u8EFA"],["dc40","\u8EF9\u8EE6\u8EEE\u8EE5\u8EF5\u8EE7\u8EE8\u8EF6\u8EEB\u8EF1\u8EEC\u8EF4\u8EE9\u902D\u9034\u902F\u9106\u912C\u9104\u90FF\u90FC\u9108\u90F9\u90FB\u9101\u9100\u9107\u9105\u9103\u9161\u9164\u915F\u9162\u9160\u9201\u920A\u9225\u9203\u921A\u9226\u920F\u920C\u9200\u9212\u91FF\u91FD\u9206\u9204\u9227\u9202\u921C\u9224\u9219\u9217\u9205\u9216\u957B\u958D\u958C\u9590\u9687\u967E\u9688"],["dca1","\u9689\u9683\u9680\u96C2\u96C8\u96C3\u96F1\u96F0\u976C\u9770\u976E\u9807\u98A9\u98EB\u9CE6\u9EF9\u4E83\u4E84\u4EB6\u50BD\u50BF\u50C6\u50AE\u50C4\u50CA\u50B4\u50C8\u50C2\u50B0\u50C1\u50BA\u50B1\u50CB\u50C9\u50B6\u50B8\u51D7\u527A\u5278\u527B\u527C\u55C3\u55DB\u55CC\u55D0\u55CB\u55CA\u55DD\u55C0\u55D4\u55C4\u55E9\u55BF\u55D2\u558D\u55CF\u55D5\u55E2\u55D6\u55C8\u55F2\u55CD\u55D9\u55C2\u5714\u5853\u5868\u5864\u584F\u584D\u5849\u586F\u5855\u584E\u585D\u5859\u5865\u585B\u583D\u5863\u5871\u58FC\u5AC7\u5AC4\u5ACB\u5ABA\u5AB8\u5AB1\u5AB5\u5AB0\u5ABF\u5AC8\u5ABB\u5AC6"],["dd40","\u5AB7\u5AC0\u5ACA\u5AB4\u5AB6\u5ACD\u5AB9\u5A90\u5BD6\u5BD8\u5BD9\u5C1F\u5C33\u5D71\u5D63\u5D4A\u5D65\u5D72\u5D6C\u5D5E\u5D68\u5D67\u5D62\u5DF0\u5E4F\u5E4E\u5E4A\u5E4D\u5E4B\u5EC5\u5ECC\u5EC6\u5ECB\u5EC7\u5F40\u5FAF\u5FAD\u60F7\u6149\u614A\u612B\u6145\u6136\u6132\u612E\u6146\u612F\u614F\u6129\u6140\u6220\u9168\u6223\u6225\u6224\u63C5\u63F1\u63EB\u6410\u6412\u6409\u6420\u6424"],["dda1","\u6433\u6443\u641F\u6415\u6418\u6439\u6437\u6422\u6423\u640C\u6426\u6430\u6428\u6441\u6435\u642F\u640A\u641A\u6440\u6425\u6427\u640B\u63E7\u641B\u642E\u6421\u640E\u656F\u6592\u65D3\u6686\u668C\u6695\u6690\u668B\u668A\u6699\u6694\u6678\u6720\u6966\u695F\u6938\u694E\u6962\u6971\u693F\u6945\u696A\u6939\u6942\u6957\u6959\u697A\u6948\u6949\u6935\u696C\u6933\u693D\u6965\u68F0\u6978\u6934\u6969\u6940\u696F\u6944\u6976\u6958\u6941\u6974\u694C\u693B\u694B\u6937\u695C\u694F\u6951\u6932\u6952\u692F\u697B\u693C\u6B46\u6B45\u6B43\u6B42\u6B48\u6B41\u6B9B\uFA0D\u6BFB\u6BFC"],["de40","\u6BF9\u6BF7\u6BF8\u6E9B\u6ED6\u6EC8\u6E8F\u6EC0\u6E9F\u6E93\u6E94\u6EA0\u6EB1\u6EB9\u6EC6\u6ED2\u6EBD\u6EC1\u6E9E\u6EC9\u6EB7\u6EB0\u6ECD\u6EA6\u6ECF\u6EB2\u6EBE\u6EC3\u6EDC\u6ED8\u6E99\u6E92\u6E8E\u6E8D\u6EA4\u6EA1\u6EBF\u6EB3\u6ED0\u6ECA\u6E97\u6EAE\u6EA3\u7147\u7154\u7152\u7163\u7160\u7141\u715D\u7162\u7172\u7178\u716A\u7161\u7142\u7158\u7143\u714B\u7170\u715F\u7150\u7153"],["dea1","\u7144\u714D\u715A\u724F\u728D\u728C\u7291\u7290\u728E\u733C\u7342\u733B\u733A\u7340\u734A\u7349\u7444\u744A\u744B\u7452\u7451\u7457\u7440\u744F\u7450\u744E\u7442\u7446\u744D\u7454\u74E1\u74FF\u74FE\u74FD\u751D\u7579\u7577\u6983\u75EF\u760F\u7603\u75F7\u75FE\u75FC\u75F9\u75F8\u7610\u75FB\u75F6\u75ED\u75F5\u75FD\u7699\u76B5\u76DD\u7755\u775F\u7760\u7752\u7756\u775A\u7769\u7767\u7754\u7759\u776D\u77E0\u7887\u789A\u7894\u788F\u7884\u7895\u7885\u7886\u78A1\u7883\u7879\u7899\u7880\u7896\u787B\u797C\u7982\u797D\u7979\u7A11\u7A18\u7A19\u7A12\u7A17\u7A15\u7A22\u7A13"],["df40","\u7A1B\u7A10\u7AA3\u7AA2\u7A9E\u7AEB\u7B66\u7B64\u7B6D\u7B74\u7B69\u7B72\u7B65\u7B73\u7B71\u7B70\u7B61\u7B78\u7B76\u7B63\u7CB2\u7CB4\u7CAF\u7D88\u7D86\u7D80\u7D8D\u7D7F\u7D85\u7D7A\u7D8E\u7D7B\u7D83\u7D7C\u7D8C\u7D94\u7D84\u7D7D\u7D92\u7F6D\u7F6B\u7F67\u7F68\u7F6C\u7FA6\u7FA5\u7FA7\u7FDB\u7FDC\u8021\u8164\u8160\u8177\u815C\u8169\u815B\u8162\u8172\u6721\u815E\u8176\u8167\u816F"],["dfa1","\u8144\u8161\u821D\u8249\u8244\u8240\u8242\u8245\u84F1\u843F\u8456\u8476\u8479\u848F\u848D\u8465\u8451\u8440\u8486\u8467\u8430\u844D\u847D\u845A\u8459\u8474\u8473\u845D\u8507\u845E\u8437\u843A\u8434\u847A\u8443\u8478\u8432\u8445\u8429\u83D9\u844B\u842F\u8442\u842D\u845F\u8470\u8439\u844E\u844C\u8452\u846F\u84C5\u848E\u843B\u8447\u8436\u8433\u8468\u847E\u8444\u842B\u8460\u8454\u846E\u8450\u870B\u8704\u86F7\u870C\u86FA\u86D6\u86F5\u874D\u86F8\u870E\u8709\u8701\u86F6\u870D\u8705\u88D6\u88CB\u88CD\u88CE\u88DE\u88DB\u88DA\u88CC\u88D0\u8985\u899B\u89DF\u89E5\u89E4"],["e040","\u89E1\u89E0\u89E2\u89DC\u89E6\u8A76\u8A86\u8A7F\u8A61\u8A3F\u8A77\u8A82\u8A84\u8A75\u8A83\u8A81\u8A74\u8A7A\u8C3C\u8C4B\u8C4A\u8C65\u8C64\u8C66\u8C86\u8C84\u8C85\u8CCC\u8D68\u8D69\u8D91\u8D8C\u8D8E\u8D8F\u8D8D\u8D93\u8D94\u8D90\u8D92\u8DF0\u8DE0\u8DEC\u8DF1\u8DEE\u8DD0\u8DE9\u8DE3\u8DE2\u8DE7\u8DF2\u8DEB\u8DF4\u8F06\u8EFF\u8F01\u8F00\u8F05\u8F07\u8F08\u8F02\u8F0B\u9052\u903F"],["e0a1","\u9044\u9049\u903D\u9110\u910D\u910F\u9111\u9116\u9114\u910B\u910E\u916E\u916F\u9248\u9252\u9230\u923A\u9266\u9233\u9265\u925E\u9283\u922E\u924A\u9246\u926D\u926C\u924F\u9260\u9267\u926F\u9236\u9261\u9270\u9231\u9254\u9263\u9250\u9272\u924E\u9253\u924C\u9256\u9232\u959F\u959C\u959E\u959B\u9692\u9693\u9691\u9697\u96CE\u96FA\u96FD\u96F8\u96F5\u9773\u9777\u9778\u9772\u980F\u980D\u980E\u98AC\u98F6\u98F9\u99AF\u99B2\u99B0\u99B5\u9AAD\u9AAB\u9B5B\u9CEA\u9CED\u9CE7\u9E80\u9EFD\u50E6\u50D4\u50D7\u50E8\u50F3\u50DB\u50EA\u50DD\u50E4\u50D3\u50EC\u50F0\u50EF\u50E3\u50E0"],["e140","\u51D8\u5280\u5281\u52E9\u52EB\u5330\u53AC\u5627\u5615\u560C\u5612\u55FC\u560F\u561C\u5601\u5613\u5602\u55FA\u561D\u5604\u55FF\u55F9\u5889\u587C\u5890\u5898\u5886\u5881\u587F\u5874\u588B\u587A\u5887\u5891\u588E\u5876\u5882\u5888\u587B\u5894\u588F\u58FE\u596B\u5ADC\u5AEE\u5AE5\u5AD5\u5AEA\u5ADA\u5AED\u5AEB\u5AF3\u5AE2\u5AE0\u5ADB\u5AEC\u5ADE\u5ADD\u5AD9\u5AE8\u5ADF\u5B77\u5BE0"],["e1a1","\u5BE3\u5C63\u5D82\u5D80\u5D7D\u5D86\u5D7A\u5D81\u5D77\u5D8A\u5D89\u5D88\u5D7E\u5D7C\u5D8D\u5D79\u5D7F\u5E58\u5E59\u5E53\u5ED8\u5ED1\u5ED7\u5ECE\u5EDC\u5ED5\u5ED9\u5ED2\u5ED4\u5F44\u5F43\u5F6F\u5FB6\u612C\u6128\u6141\u615E\u6171\u6173\u6152\u6153\u6172\u616C\u6180\u6174\u6154\u617A\u615B\u6165\u613B\u616A\u6161\u6156\u6229\u6227\u622B\u642B\u644D\u645B\u645D\u6474\u6476\u6472\u6473\u647D\u6475\u6466\u64A6\u644E\u6482\u645E\u645C\u644B\u6453\u6460\u6450\u647F\u643F\u646C\u646B\u6459\u6465\u6477\u6573\u65A0\u66A1\u66A0\u669F\u6705\u6704\u6722\u69B1\u69B6\u69C9"],["e240","\u69A0\u69CE\u6996\u69B0\u69AC\u69BC\u6991\u6999\u698E\u69A7\u698D\u69A9\u69BE\u69AF\u69BF\u69C4\u69BD\u69A4\u69D4\u69B9\u69CA\u699A\u69CF\u69B3\u6993\u69AA\u69A1\u699E\u69D9\u6997\u6990\u69C2\u69B5\u69A5\u69C6\u6B4A\u6B4D\u6B4B\u6B9E\u6B9F\u6BA0\u6BC3\u6BC4\u6BFE\u6ECE\u6EF5\u6EF1\u6F03\u6F25\u6EF8\u6F37\u6EFB\u6F2E\u6F09\u6F4E\u6F19\u6F1A\u6F27\u6F18\u6F3B\u6F12\u6EED\u6F0A"],["e2a1","\u6F36\u6F73\u6EF9\u6EEE\u6F2D\u6F40\u6F30\u6F3C\u6F35\u6EEB\u6F07\u6F0E\u6F43\u6F05\u6EFD\u6EF6\u6F39\u6F1C\u6EFC\u6F3A\u6F1F\u6F0D\u6F1E\u6F08\u6F21\u7187\u7190\u7189\u7180\u7185\u7182\u718F\u717B\u7186\u7181\u7197\u7244\u7253\u7297\u7295\u7293\u7343\u734D\u7351\u734C\u7462\u7473\u7471\u7475\u7472\u7467\u746E\u7500\u7502\u7503\u757D\u7590\u7616\u7608\u760C\u7615\u7611\u760A\u7614\u76B8\u7781\u777C\u7785\u7782\u776E\u7780\u776F\u777E\u7783\u78B2\u78AA\u78B4\u78AD\u78A8\u787E\u78AB\u789E\u78A5\u78A0\u78AC\u78A2\u78A4\u7998\u798A\u798B\u7996\u7995\u7994\u7993"],["e340","\u7997\u7988\u7992\u7990\u7A2B\u7A4A\u7A30\u7A2F\u7A28\u7A26\u7AA8\u7AAB\u7AAC\u7AEE\u7B88\u7B9C\u7B8A\u7B91\u7B90\u7B96\u7B8D\u7B8C\u7B9B\u7B8E\u7B85\u7B98\u5284\u7B99\u7BA4\u7B82\u7CBB\u7CBF\u7CBC\u7CBA\u7DA7\u7DB7\u7DC2\u7DA3\u7DAA\u7DC1\u7DC0\u7DC5\u7D9D\u7DCE\u7DC4\u7DC6\u7DCB\u7DCC\u7DAF\u7DB9\u7D96\u7DBC\u7D9F\u7DA6\u7DAE\u7DA9\u7DA1\u7DC9\u7F73\u7FE2\u7FE3\u7FE5\u7FDE"],["e3a1","\u8024\u805D\u805C\u8189\u8186\u8183\u8187\u818D\u818C\u818B\u8215\u8497\u84A4\u84A1\u849F\u84BA\u84CE\u84C2\u84AC\u84AE\u84AB\u84B9\u84B4\u84C1\u84CD\u84AA\u849A\u84B1\u84D0\u849D\u84A7\u84BB\u84A2\u8494\u84C7\u84CC\u849B\u84A9\u84AF\u84A8\u84D6\u8498\u84B6\u84CF\u84A0\u84D7\u84D4\u84D2\u84DB\u84B0\u8491\u8661\u8733\u8723\u8728\u876B\u8740\u872E\u871E\u8721\u8719\u871B\u8743\u872C\u8741\u873E\u8746\u8720\u8732\u872A\u872D\u873C\u8712\u873A\u8731\u8735\u8742\u8726\u8727\u8738\u8724\u871A\u8730\u8711\u88F7\u88E7\u88F1\u88F2\u88FA\u88FE\u88EE\u88FC\u88F6\u88FB"],["e440","\u88F0\u88EC\u88EB\u899D\u89A1\u899F\u899E\u89E9\u89EB\u89E8\u8AAB\u8A99\u8A8B\u8A92\u8A8F\u8A96\u8C3D\u8C68\u8C69\u8CD5\u8CCF\u8CD7\u8D96\u8E09\u8E02\u8DFF\u8E0D\u8DFD\u8E0A\u8E03\u8E07\u8E06\u8E05\u8DFE\u8E00\u8E04\u8F10\u8F11\u8F0E\u8F0D\u9123\u911C\u9120\u9122\u911F\u911D\u911A\u9124\u9121\u911B\u917A\u9172\u9179\u9173\u92A5\u92A4\u9276\u929B\u927A\u92A0\u9294\u92AA\u928D"],["e4a1","\u92A6\u929A\u92AB\u9279\u9297\u927F\u92A3\u92EE\u928E\u9282\u9295\u92A2\u927D\u9288\u92A1\u928A\u9286\u928C\u9299\u92A7\u927E\u9287\u92A9\u929D\u928B\u922D\u969E\u96A1\u96FF\u9758\u977D\u977A\u977E\u9783\u9780\u9782\u977B\u9784\u9781\u977F\u97CE\u97CD\u9816\u98AD\u98AE\u9902\u9900\u9907\u999D\u999C\u99C3\u99B9\u99BB\u99BA\u99C2\u99BD\u99C7\u9AB1\u9AE3\u9AE7\u9B3E\u9B3F\u9B60\u9B61\u9B5F\u9CF1\u9CF2\u9CF5\u9EA7\u50FF\u5103\u5130\u50F8\u5106\u5107\u50F6\u50FE\u510B\u510C\u50FD\u510A\u528B\u528C\u52F1\u52EF\u5648\u5642\u564C\u5635\u5641\u564A\u5649\u5646\u5658"],["e540","\u565A\u5640\u5633\u563D\u562C\u563E\u5638\u562A\u563A\u571A\u58AB\u589D\u58B1\u58A0\u58A3\u58AF\u58AC\u58A5\u58A1\u58FF\u5AFF\u5AF4\u5AFD\u5AF7\u5AF6\u5B03\u5AF8\u5B02\u5AF9\u5B01\u5B07\u5B05\u5B0F\u5C67\u5D99\u5D97\u5D9F\u5D92\u5DA2\u5D93\u5D95\u5DA0\u5D9C\u5DA1\u5D9A\u5D9E\u5E69\u5E5D\u5E60\u5E5C\u7DF3\u5EDB\u5EDE\u5EE1\u5F49\u5FB2\u618B\u6183\u6179\u61B1\u61B0\u61A2\u6189"],["e5a1","\u619B\u6193\u61AF\u61AD\u619F\u6192\u61AA\u61A1\u618D\u6166\u61B3\u622D\u646E\u6470\u6496\u64A0\u6485\u6497\u649C\u648F\u648B\u648A\u648C\u64A3\u649F\u6468\u64B1\u6498\u6576\u657A\u6579\u657B\u65B2\u65B3\u66B5\u66B0\u66A9\u66B2\u66B7\u66AA\u66AF\u6A00\u6A06\u6A17\u69E5\u69F8\u6A15\u69F1\u69E4\u6A20\u69FF\u69EC\u69E2\u6A1B\u6A1D\u69FE\u6A27\u69F2\u69EE\u6A14\u69F7\u69E7\u6A40\u6A08\u69E6\u69FB\u6A0D\u69FC\u69EB\u6A09\u6A04\u6A18\u6A25\u6A0F\u69F6\u6A26\u6A07\u69F4\u6A16\u6B51\u6BA5\u6BA3\u6BA2\u6BA6\u6C01\u6C00\u6BFF\u6C02\u6F41\u6F26\u6F7E\u6F87\u6FC6\u6F92"],["e640","\u6F8D\u6F89\u6F8C\u6F62\u6F4F\u6F85\u6F5A\u6F96\u6F76\u6F6C\u6F82\u6F55\u6F72\u6F52\u6F50\u6F57\u6F94\u6F93\u6F5D\u6F00\u6F61\u6F6B\u6F7D\u6F67\u6F90\u6F53\u6F8B\u6F69\u6F7F\u6F95\u6F63\u6F77\u6F6A\u6F7B\u71B2\u71AF\u719B\u71B0\u71A0\u719A\u71A9\u71B5\u719D\u71A5\u719E\u71A4\u71A1\u71AA\u719C\u71A7\u71B3\u7298\u729A\u7358\u7352\u735E\u735F\u7360\u735D\u735B\u7361\u735A\u7359"],["e6a1","\u7362\u7487\u7489\u748A\u7486\u7481\u747D\u7485\u7488\u747C\u7479\u7508\u7507\u757E\u7625\u761E\u7619\u761D\u761C\u7623\u761A\u7628\u761B\u769C\u769D\u769E\u769B\u778D\u778F\u7789\u7788\u78CD\u78BB\u78CF\u78CC\u78D1\u78CE\u78D4\u78C8\u78C3\u78C4\u78C9\u799A\u79A1\u79A0\u799C\u79A2\u799B\u6B76\u7A39\u7AB2\u7AB4\u7AB3\u7BB7\u7BCB\u7BBE\u7BAC\u7BCE\u7BAF\u7BB9\u7BCA\u7BB5\u7CC5\u7CC8\u7CCC\u7CCB\u7DF7\u7DDB\u7DEA\u7DE7\u7DD7\u7DE1\u7E03\u7DFA\u7DE6\u7DF6\u7DF1\u7DF0\u7DEE\u7DDF\u7F76\u7FAC\u7FB0\u7FAD\u7FED\u7FEB\u7FEA\u7FEC\u7FE6\u7FE8\u8064\u8067\u81A3\u819F"],["e740","\u819E\u8195\u81A2\u8199\u8197\u8216\u824F\u8253\u8252\u8250\u824E\u8251\u8524\u853B\u850F\u8500\u8529\u850E\u8509\u850D\u851F\u850A\u8527\u851C\u84FB\u852B\u84FA\u8508\u850C\u84F4\u852A\u84F2\u8515\u84F7\u84EB\u84F3\u84FC\u8512\u84EA\u84E9\u8516\u84FE\u8528\u851D\u852E\u8502\u84FD\u851E\u84F6\u8531\u8526\u84E7\u84E8\u84F0\u84EF\u84F9\u8518\u8520\u8530\u850B\u8519\u852F\u8662"],["e7a1","\u8756\u8763\u8764\u8777\u87E1\u8773\u8758\u8754\u875B\u8752\u8761\u875A\u8751\u875E\u876D\u876A\u8750\u874E\u875F\u875D\u876F\u876C\u877A\u876E\u875C\u8765\u874F\u877B\u8775\u8762\u8767\u8769\u885A\u8905\u890C\u8914\u890B\u8917\u8918\u8919\u8906\u8916\u8911\u890E\u8909\u89A2\u89A4\u89A3\u89ED\u89F0\u89EC\u8ACF\u8AC6\u8AB8\u8AD3\u8AD1\u8AD4\u8AD5\u8ABB\u8AD7\u8ABE\u8AC0\u8AC5\u8AD8\u8AC3\u8ABA\u8ABD\u8AD9\u8C3E\u8C4D\u8C8F\u8CE5\u8CDF\u8CD9\u8CE8\u8CDA\u8CDD\u8CE7\u8DA0\u8D9C\u8DA1\u8D9B\u8E20\u8E23\u8E25\u8E24\u8E2E\u8E15\u8E1B\u8E16\u8E11\u8E19\u8E26\u8E27"],["e840","\u8E14\u8E12\u8E18\u8E13\u8E1C\u8E17\u8E1A\u8F2C\u8F24\u8F18\u8F1A\u8F20\u8F23\u8F16\u8F17\u9073\u9070\u906F\u9067\u906B\u912F\u912B\u9129\u912A\u9132\u9126\u912E\u9185\u9186\u918A\u9181\u9182\u9184\u9180\u92D0\u92C3\u92C4\u92C0\u92D9\u92B6\u92CF\u92F1\u92DF\u92D8\u92E9\u92D7\u92DD\u92CC\u92EF\u92C2\u92E8\u92CA\u92C8\u92CE\u92E6\u92CD\u92D5\u92C9\u92E0\u92DE\u92E7\u92D1\u92D3"],["e8a1","\u92B5\u92E1\u92C6\u92B4\u957C\u95AC\u95AB\u95AE\u95B0\u96A4\u96A2\u96D3\u9705\u9708\u9702\u975A\u978A\u978E\u9788\u97D0\u97CF\u981E\u981D\u9826\u9829\u9828\u9820\u981B\u9827\u98B2\u9908\u98FA\u9911\u9914\u9916\u9917\u9915\u99DC\u99CD\u99CF\u99D3\u99D4\u99CE\u99C9\u99D6\u99D8\u99CB\u99D7\u99CC\u9AB3\u9AEC\u9AEB\u9AF3\u9AF2\u9AF1\u9B46\u9B43\u9B67\u9B74\u9B71\u9B66\u9B76\u9B75\u9B70\u9B68\u9B64\u9B6C\u9CFC\u9CFA\u9CFD\u9CFF\u9CF7\u9D07\u9D00\u9CF9\u9CFB\u9D08\u9D05\u9D04\u9E83\u9ED3\u9F0F\u9F10\u511C\u5113\u5117\u511A\u5111\u51DE\u5334\u53E1\u5670\u5660\u566E"],["e940","\u5673\u5666\u5663\u566D\u5672\u565E\u5677\u571C\u571B\u58C8\u58BD\u58C9\u58BF\u58BA\u58C2\u58BC\u58C6\u5B17\u5B19\u5B1B\u5B21\u5B14\u5B13\u5B10\u5B16\u5B28\u5B1A\u5B20\u5B1E\u5BEF\u5DAC\u5DB1\u5DA9\u5DA7\u5DB5\u5DB0\u5DAE\u5DAA\u5DA8\u5DB2\u5DAD\u5DAF\u5DB4\u5E67\u5E68\u5E66\u5E6F\u5EE9\u5EE7\u5EE6\u5EE8\u5EE5\u5F4B\u5FBC\u619D\u61A8\u6196\u61C5\u61B4\u61C6\u61C1\u61CC\u61BA"],["e9a1","\u61BF\u61B8\u618C\u64D7\u64D6\u64D0\u64CF\u64C9\u64BD\u6489\u64C3\u64DB\u64F3\u64D9\u6533\u657F\u657C\u65A2\u66C8\u66BE\u66C0\u66CA\u66CB\u66CF\u66BD\u66BB\u66BA\u66CC\u6723\u6A34\u6A66\u6A49\u6A67\u6A32\u6A68\u6A3E\u6A5D\u6A6D\u6A76\u6A5B\u6A51\u6A28\u6A5A\u6A3B\u6A3F\u6A41\u6A6A\u6A64\u6A50\u6A4F\u6A54\u6A6F\u6A69\u6A60\u6A3C\u6A5E\u6A56\u6A55\u6A4D\u6A4E\u6A46\u6B55\u6B54\u6B56\u6BA7\u6BAA\u6BAB\u6BC8\u6BC7\u6C04\u6C03\u6C06\u6FAD\u6FCB\u6FA3\u6FC7\u6FBC\u6FCE\u6FC8\u6F5E\u6FC4\u6FBD\u6F9E\u6FCA\u6FA8\u7004\u6FA5\u6FAE\u6FBA\u6FAC\u6FAA\u6FCF\u6FBF\u6FB8"],["ea40","\u6FA2\u6FC9\u6FAB\u6FCD\u6FAF\u6FB2\u6FB0\u71C5\u71C2\u71BF\u71B8\u71D6\u71C0\u71C1\u71CB\u71D4\u71CA\u71C7\u71CF\u71BD\u71D8\u71BC\u71C6\u71DA\u71DB\u729D\u729E\u7369\u7366\u7367\u736C\u7365\u736B\u736A\u747F\u749A\u74A0\u7494\u7492\u7495\u74A1\u750B\u7580\u762F\u762D\u7631\u763D\u7633\u763C\u7635\u7632\u7630\u76BB\u76E6\u779A\u779D\u77A1\u779C\u779B\u77A2\u77A3\u7795\u7799"],["eaa1","\u7797\u78DD\u78E9\u78E5\u78EA\u78DE\u78E3\u78DB\u78E1\u78E2\u78ED\u78DF\u78E0\u79A4\u7A44\u7A48\u7A47\u7AB6\u7AB8\u7AB5\u7AB1\u7AB7\u7BDE\u7BE3\u7BE7\u7BDD\u7BD5\u7BE5\u7BDA\u7BE8\u7BF9\u7BD4\u7BEA\u7BE2\u7BDC\u7BEB\u7BD8\u7BDF\u7CD2\u7CD4\u7CD7\u7CD0\u7CD1\u7E12\u7E21\u7E17\u7E0C\u7E1F\u7E20\u7E13\u7E0E\u7E1C\u7E15\u7E1A\u7E22\u7E0B\u7E0F\u7E16\u7E0D\u7E14\u7E25\u7E24\u7F43\u7F7B\u7F7C\u7F7A\u7FB1\u7FEF\u802A\u8029\u806C\u81B1\u81A6\u81AE\u81B9\u81B5\u81AB\u81B0\u81AC\u81B4\u81B2\u81B7\u81A7\u81F2\u8255\u8256\u8257\u8556\u8545\u856B\u854D\u8553\u8561\u8558"],["eb40","\u8540\u8546\u8564\u8541\u8562\u8544\u8551\u8547\u8563\u853E\u855B\u8571\u854E\u856E\u8575\u8555\u8567\u8560\u858C\u8566\u855D\u8554\u8565\u856C\u8663\u8665\u8664\u879B\u878F\u8797\u8793\u8792\u8788\u8781\u8796\u8798\u8779\u8787\u87A3\u8785\u8790\u8791\u879D\u8784\u8794\u879C\u879A\u8789\u891E\u8926\u8930\u892D\u892E\u8927\u8931\u8922\u8929\u8923\u892F\u892C\u891F\u89F1\u8AE0"],["eba1","\u8AE2\u8AF2\u8AF4\u8AF5\u8ADD\u8B14\u8AE4\u8ADF\u8AF0\u8AC8\u8ADE\u8AE1\u8AE8\u8AFF\u8AEF\u8AFB\u8C91\u8C92\u8C90\u8CF5\u8CEE\u8CF1\u8CF0\u8CF3\u8D6C\u8D6E\u8DA5\u8DA7\u8E33\u8E3E\u8E38\u8E40\u8E45\u8E36\u8E3C\u8E3D\u8E41\u8E30\u8E3F\u8EBD\u8F36\u8F2E\u8F35\u8F32\u8F39\u8F37\u8F34\u9076\u9079\u907B\u9086\u90FA\u9133\u9135\u9136\u9193\u9190\u9191\u918D\u918F\u9327\u931E\u9308\u931F\u9306\u930F\u937A\u9338\u933C\u931B\u9323\u9312\u9301\u9346\u932D\u930E\u930D\u92CB\u931D\u92FA\u9325\u9313\u92F9\u92F7\u9334\u9302\u9324\u92FF\u9329\u9339\u9335\u932A\u9314\u930C"],["ec40","\u930B\u92FE\u9309\u9300\u92FB\u9316\u95BC\u95CD\u95BE\u95B9\u95BA\u95B6\u95BF\u95B5\u95BD\u96A9\u96D4\u970B\u9712\u9710\u9799\u9797\u9794\u97F0\u97F8\u9835\u982F\u9832\u9924\u991F\u9927\u9929\u999E\u99EE\u99EC\u99E5\u99E4\u99F0\u99E3\u99EA\u99E9\u99E7\u9AB9\u9ABF\u9AB4\u9ABB\u9AF6\u9AFA\u9AF9\u9AF7\u9B33\u9B80\u9B85\u9B87\u9B7C\u9B7E\u9B7B\u9B82\u9B93\u9B92\u9B90\u9B7A\u9B95"],["eca1","\u9B7D\u9B88\u9D25\u9D17\u9D20\u9D1E\u9D14\u9D29\u9D1D\u9D18\u9D22\u9D10\u9D19\u9D1F\u9E88\u9E86\u9E87\u9EAE\u9EAD\u9ED5\u9ED6\u9EFA\u9F12\u9F3D\u5126\u5125\u5122\u5124\u5120\u5129\u52F4\u5693\u568C\u568D\u5686\u5684\u5683\u567E\u5682\u567F\u5681\u58D6\u58D4\u58CF\u58D2\u5B2D\u5B25\u5B32\u5B23\u5B2C\u5B27\u5B26\u5B2F\u5B2E\u5B7B\u5BF1\u5BF2\u5DB7\u5E6C\u5E6A\u5FBE\u5FBB\u61C3\u61B5\u61BC\u61E7\u61E0\u61E5\u61E4\u61E8\u61DE\u64EF\u64E9\u64E3\u64EB\u64E4\u64E8\u6581\u6580\u65B6\u65DA\u66D2\u6A8D\u6A96\u6A81\u6AA5\u6A89\u6A9F\u6A9B\u6AA1\u6A9E\u6A87\u6A93\u6A8E"],["ed40","\u6A95\u6A83\u6AA8\u6AA4\u6A91\u6A7F\u6AA6\u6A9A\u6A85\u6A8C\u6A92\u6B5B\u6BAD\u6C09\u6FCC\u6FA9\u6FF4\u6FD4\u6FE3\u6FDC\u6FED\u6FE7\u6FE6\u6FDE\u6FF2\u6FDD\u6FE2\u6FE8\u71E1\u71F1\u71E8\u71F2\u71E4\u71F0\u71E2\u7373\u736E\u736F\u7497\u74B2\u74AB\u7490\u74AA\u74AD\u74B1\u74A5\u74AF\u7510\u7511\u7512\u750F\u7584\u7643\u7648\u7649\u7647\u76A4\u76E9\u77B5\u77AB\u77B2\u77B7\u77B6"],["eda1","\u77B4\u77B1\u77A8\u77F0\u78F3\u78FD\u7902\u78FB\u78FC\u78F2\u7905\u78F9\u78FE\u7904\u79AB\u79A8\u7A5C\u7A5B\u7A56\u7A58\u7A54\u7A5A\u7ABE\u7AC0\u7AC1\u7C05\u7C0F\u7BF2\u7C00\u7BFF\u7BFB\u7C0E\u7BF4\u7C0B\u7BF3\u7C02\u7C09\u7C03\u7C01\u7BF8\u7BFD\u7C06\u7BF0\u7BF1\u7C10\u7C0A\u7CE8\u7E2D\u7E3C\u7E42\u7E33\u9848\u7E38\u7E2A\u7E49\u7E40\u7E47\u7E29\u7E4C\u7E30\u7E3B\u7E36\u7E44\u7E3A\u7F45\u7F7F\u7F7E\u7F7D\u7FF4\u7FF2\u802C\u81BB\u81C4\u81CC\u81CA\u81C5\u81C7\u81BC\u81E9\u825B\u825A\u825C\u8583\u8580\u858F\u85A7\u8595\u85A0\u858B\u85A3\u857B\u85A4\u859A\u859E"],["ee40","\u8577\u857C\u8589\u85A1\u857A\u8578\u8557\u858E\u8596\u8586\u858D\u8599\u859D\u8581\u85A2\u8582\u8588\u8585\u8579\u8576\u8598\u8590\u859F\u8668\u87BE\u87AA\u87AD\u87C5\u87B0\u87AC\u87B9\u87B5\u87BC\u87AE\u87C9\u87C3\u87C2\u87CC\u87B7\u87AF\u87C4\u87CA\u87B4\u87B6\u87BF\u87B8\u87BD\u87DE\u87B2\u8935\u8933\u893C\u893E\u8941\u8952\u8937\u8942\u89AD\u89AF\u89AE\u89F2\u89F3\u8B1E"],["eea1","\u8B18\u8B16\u8B11\u8B05\u8B0B\u8B22\u8B0F\u8B12\u8B15\u8B07\u8B0D\u8B08\u8B06\u8B1C\u8B13\u8B1A\u8C4F\u8C70\u8C72\u8C71\u8C6F\u8C95\u8C94\u8CF9\u8D6F\u8E4E\u8E4D\u8E53\u8E50\u8E4C\u8E47\u8F43\u8F40\u9085\u907E\u9138\u919A\u91A2\u919B\u9199\u919F\u91A1\u919D\u91A0\u93A1\u9383\u93AF\u9364\u9356\u9347\u937C\u9358\u935C\u9376\u9349\u9350\u9351\u9360\u936D\u938F\u934C\u936A\u9379\u9357\u9355\u9352\u934F\u9371\u9377\u937B\u9361\u935E\u9363\u9367\u9380\u934E\u9359\u95C7\u95C0\u95C9\u95C3\u95C5\u95B7\u96AE\u96B0\u96AC\u9720\u971F\u9718\u971D\u9719\u979A\u97A1\u979C"],["ef40","\u979E\u979D\u97D5\u97D4\u97F1\u9841\u9844\u984A\u9849\u9845\u9843\u9925\u992B\u992C\u992A\u9933\u9932\u992F\u992D\u9931\u9930\u9998\u99A3\u99A1\u9A02\u99FA\u99F4\u99F7\u99F9\u99F8\u99F6\u99FB\u99FD\u99FE\u99FC\u9A03\u9ABE\u9AFE\u9AFD\u9B01\u9AFC\u9B48\u9B9A\u9BA8\u9B9E\u9B9B\u9BA6\u9BA1\u9BA5\u9BA4\u9B86\u9BA2\u9BA0\u9BAF\u9D33\u9D41\u9D67\u9D36\u9D2E\u9D2F\u9D31\u9D38\u9D30"],["efa1","\u9D45\u9D42\u9D43\u9D3E\u9D37\u9D40\u9D3D\u7FF5\u9D2D\u9E8A\u9E89\u9E8D\u9EB0\u9EC8\u9EDA\u9EFB\u9EFF\u9F24\u9F23\u9F22\u9F54\u9FA0\u5131\u512D\u512E\u5698\u569C\u5697\u569A\u569D\u5699\u5970\u5B3C\u5C69\u5C6A\u5DC0\u5E6D\u5E6E\u61D8\u61DF\u61ED\u61EE\u61F1\u61EA\u61F0\u61EB\u61D6\u61E9\u64FF\u6504\u64FD\u64F8\u6501\u6503\u64FC\u6594\u65DB\u66DA\u66DB\u66D8\u6AC5\u6AB9\u6ABD\u6AE1\u6AC6\u6ABA\u6AB6\u6AB7\u6AC7\u6AB4\u6AAD\u6B5E\u6BC9\u6C0B\u7007\u700C\u700D\u7001\u7005\u7014\u700E\u6FFF\u7000\u6FFB\u7026\u6FFC\u6FF7\u700A\u7201\u71FF\u71F9\u7203\u71FD\u7376"],["f040","\u74B8\u74C0\u74B5\u74C1\u74BE\u74B6\u74BB\u74C2\u7514\u7513\u765C\u7664\u7659\u7650\u7653\u7657\u765A\u76A6\u76BD\u76EC\u77C2\u77BA\u78FF\u790C\u7913\u7914\u7909\u7910\u7912\u7911\u79AD\u79AC\u7A5F\u7C1C\u7C29\u7C19\u7C20\u7C1F\u7C2D\u7C1D\u7C26\u7C28\u7C22\u7C25\u7C30\u7E5C\u7E50\u7E56\u7E63\u7E58\u7E62\u7E5F\u7E51\u7E60\u7E57\u7E53\u7FB5\u7FB3\u7FF7\u7FF8\u8075\u81D1\u81D2"],["f0a1","\u81D0\u825F\u825E\u85B4\u85C6\u85C0\u85C3\u85C2\u85B3\u85B5\u85BD\u85C7\u85C4\u85BF\u85CB\u85CE\u85C8\u85C5\u85B1\u85B6\u85D2\u8624\u85B8\u85B7\u85BE\u8669\u87E7\u87E6\u87E2\u87DB\u87EB\u87EA\u87E5\u87DF\u87F3\u87E4\u87D4\u87DC\u87D3\u87ED\u87D8\u87E3\u87A4\u87D7\u87D9\u8801\u87F4\u87E8\u87DD\u8953\u894B\u894F\u894C\u8946\u8950\u8951\u8949\u8B2A\u8B27\u8B23\u8B33\u8B30\u8B35\u8B47\u8B2F\u8B3C\u8B3E\u8B31\u8B25\u8B37\u8B26\u8B36\u8B2E\u8B24\u8B3B\u8B3D\u8B3A\u8C42\u8C75\u8C99\u8C98\u8C97\u8CFE\u8D04\u8D02\u8D00\u8E5C\u8E62\u8E60\u8E57\u8E56\u8E5E\u8E65\u8E67"],["f140","\u8E5B\u8E5A\u8E61\u8E5D\u8E69\u8E54\u8F46\u8F47\u8F48\u8F4B\u9128\u913A\u913B\u913E\u91A8\u91A5\u91A7\u91AF\u91AA\u93B5\u938C\u9392\u93B7\u939B\u939D\u9389\u93A7\u938E\u93AA\u939E\u93A6\u9395\u9388\u9399\u939F\u938D\u93B1\u9391\u93B2\u93A4\u93A8\u93B4\u93A3\u93A5\u95D2\u95D3\u95D1\u96B3\u96D7\u96DA\u5DC2\u96DF\u96D8\u96DD\u9723\u9722\u9725\u97AC\u97AE\u97A8\u97AB\u97A4\u97AA"],["f1a1","\u97A2\u97A5\u97D7\u97D9\u97D6\u97D8\u97FA\u9850\u9851\u9852\u98B8\u9941\u993C\u993A\u9A0F\u9A0B\u9A09\u9A0D\u9A04\u9A11\u9A0A\u9A05\u9A07\u9A06\u9AC0\u9ADC\u9B08\u9B04\u9B05\u9B29\u9B35\u9B4A\u9B4C\u9B4B\u9BC7\u9BC6\u9BC3\u9BBF\u9BC1\u9BB5\u9BB8\u9BD3\u9BB6\u9BC4\u9BB9\u9BBD\u9D5C\u9D53\u9D4F\u9D4A\u9D5B\u9D4B\u9D59\u9D56\u9D4C\u9D57\u9D52\u9D54\u9D5F\u9D58\u9D5A\u9E8E\u9E8C\u9EDF\u9F01\u9F00\u9F16\u9F25\u9F2B\u9F2A\u9F29\u9F28\u9F4C\u9F55\u5134\u5135\u5296\u52F7\u53B4\u56AB\u56AD\u56A6\u56A7\u56AA\u56AC\u58DA\u58DD\u58DB\u5912\u5B3D\u5B3E\u5B3F\u5DC3\u5E70"],["f240","\u5FBF\u61FB\u6507\u6510\u650D\u6509\u650C\u650E\u6584\u65DE\u65DD\u66DE\u6AE7\u6AE0\u6ACC\u6AD1\u6AD9\u6ACB\u6ADF\u6ADC\u6AD0\u6AEB\u6ACF\u6ACD\u6ADE\u6B60\u6BB0\u6C0C\u7019\u7027\u7020\u7016\u702B\u7021\u7022\u7023\u7029\u7017\u7024\u701C\u702A\u720C\u720A\u7207\u7202\u7205\u72A5\u72A6\u72A4\u72A3\u72A1\u74CB\u74C5\u74B7\u74C3\u7516\u7660\u77C9\u77CA\u77C4\u77F1\u791D\u791B"],["f2a1","\u7921\u791C\u7917\u791E\u79B0\u7A67\u7A68\u7C33\u7C3C\u7C39\u7C2C\u7C3B\u7CEC\u7CEA\u7E76\u7E75\u7E78\u7E70\u7E77\u7E6F\u7E7A\u7E72\u7E74\u7E68\u7F4B\u7F4A\u7F83\u7F86\u7FB7\u7FFD\u7FFE\u8078\u81D7\u81D5\u8264\u8261\u8263\u85EB\u85F1\u85ED\u85D9\u85E1\u85E8\u85DA\u85D7\u85EC\u85F2\u85F8\u85D8\u85DF\u85E3\u85DC\u85D1\u85F0\u85E6\u85EF\u85DE\u85E2\u8800\u87FA\u8803\u87F6\u87F7\u8809\u880C\u880B\u8806\u87FC\u8808\u87FF\u880A\u8802\u8962\u895A\u895B\u8957\u8961\u895C\u8958\u895D\u8959\u8988\u89B7\u89B6\u89F6\u8B50\u8B48\u8B4A\u8B40\u8B53\u8B56\u8B54\u8B4B\u8B55"],["f340","\u8B51\u8B42\u8B52\u8B57\u8C43\u8C77\u8C76\u8C9A\u8D06\u8D07\u8D09\u8DAC\u8DAA\u8DAD\u8DAB\u8E6D\u8E78\u8E73\u8E6A\u8E6F\u8E7B\u8EC2\u8F52\u8F51\u8F4F\u8F50\u8F53\u8FB4\u9140\u913F\u91B0\u91AD\u93DE\u93C7\u93CF\u93C2\u93DA\u93D0\u93F9\u93EC\u93CC\u93D9\u93A9\u93E6\u93CA\u93D4\u93EE\u93E3\u93D5\u93C4\u93CE\u93C0\u93D2\u93E7\u957D\u95DA\u95DB\u96E1\u9729\u972B\u972C\u9728\u9726"],["f3a1","\u97B3\u97B7\u97B6\u97DD\u97DE\u97DF\u985C\u9859\u985D\u9857\u98BF\u98BD\u98BB\u98BE\u9948\u9947\u9943\u99A6\u99A7\u9A1A\u9A15\u9A25\u9A1D\u9A24\u9A1B\u9A22\u9A20\u9A27\u9A23\u9A1E\u9A1C\u9A14\u9AC2\u9B0B\u9B0A\u9B0E\u9B0C\u9B37\u9BEA\u9BEB\u9BE0\u9BDE\u9BE4\u9BE6\u9BE2\u9BF0\u9BD4\u9BD7\u9BEC\u9BDC\u9BD9\u9BE5\u9BD5\u9BE1\u9BDA\u9D77\u9D81\u9D8A\u9D84\u9D88\u9D71\u9D80\u9D78\u9D86\u9D8B\u9D8C\u9D7D\u9D6B\u9D74\u9D75\u9D70\u9D69\u9D85\u9D73\u9D7B\u9D82\u9D6F\u9D79\u9D7F\u9D87\u9D68\u9E94\u9E91\u9EC0\u9EFC\u9F2D\u9F40\u9F41\u9F4D\u9F56\u9F57\u9F58\u5337\u56B2"],["f440","\u56B5\u56B3\u58E3\u5B45\u5DC6\u5DC7\u5EEE\u5EEF\u5FC0\u5FC1\u61F9\u6517\u6516\u6515\u6513\u65DF\u66E8\u66E3\u66E4\u6AF3\u6AF0\u6AEA\u6AE8\u6AF9\u6AF1\u6AEE\u6AEF\u703C\u7035\u702F\u7037\u7034\u7031\u7042\u7038\u703F\u703A\u7039\u7040\u703B\u7033\u7041\u7213\u7214\u72A8\u737D\u737C\u74BA\u76AB\u76AA\u76BE\u76ED\u77CC\u77CE\u77CF\u77CD\u77F2\u7925\u7923\u7927\u7928\u7924\u7929"],["f4a1","\u79B2\u7A6E\u7A6C\u7A6D\u7AF7\u7C49\u7C48\u7C4A\u7C47\u7C45\u7CEE\u7E7B\u7E7E\u7E81\u7E80\u7FBA\u7FFF\u8079\u81DB\u81D9\u820B\u8268\u8269\u8622\u85FF\u8601\u85FE\u861B\u8600\u85F6\u8604\u8609\u8605\u860C\u85FD\u8819\u8810\u8811\u8817\u8813\u8816\u8963\u8966\u89B9\u89F7\u8B60\u8B6A\u8B5D\u8B68\u8B63\u8B65\u8B67\u8B6D\u8DAE\u8E86\u8E88\u8E84\u8F59\u8F56\u8F57\u8F55\u8F58\u8F5A\u908D\u9143\u9141\u91B7\u91B5\u91B2\u91B3\u940B\u9413\u93FB\u9420\u940F\u9414\u93FE\u9415\u9410\u9428\u9419\u940D\u93F5\u9400\u93F7\u9407\u940E\u9416\u9412\u93FA\u9409\u93F8\u940A\u93FF"],["f540","\u93FC\u940C\u93F6\u9411\u9406\u95DE\u95E0\u95DF\u972E\u972F\u97B9\u97BB\u97FD\u97FE\u9860\u9862\u9863\u985F\u98C1\u98C2\u9950\u994E\u9959\u994C\u994B\u9953\u9A32\u9A34\u9A31\u9A2C\u9A2A\u9A36\u9A29\u9A2E\u9A38\u9A2D\u9AC7\u9ACA\u9AC6\u9B10\u9B12\u9B11\u9C0B\u9C08\u9BF7\u9C05\u9C12\u9BF8\u9C40\u9C07\u9C0E\u9C06\u9C17\u9C14\u9C09\u9D9F\u9D99\u9DA4\u9D9D\u9D92\u9D98\u9D90\u9D9B"],["f5a1","\u9DA0\u9D94\u9D9C\u9DAA\u9D97\u9DA1\u9D9A\u9DA2\u9DA8\u9D9E\u9DA3\u9DBF\u9DA9\u9D96\u9DA6\u9DA7\u9E99\u9E9B\u9E9A\u9EE5\u9EE4\u9EE7\u9EE6\u9F30\u9F2E\u9F5B\u9F60\u9F5E\u9F5D\u9F59\u9F91\u513A\u5139\u5298\u5297\u56C3\u56BD\u56BE\u5B48\u5B47\u5DCB\u5DCF\u5EF1\u61FD\u651B\u6B02\u6AFC\u6B03\u6AF8\u6B00\u7043\u7044\u704A\u7048\u7049\u7045\u7046\u721D\u721A\u7219\u737E\u7517\u766A\u77D0\u792D\u7931\u792F\u7C54\u7C53\u7CF2\u7E8A\u7E87\u7E88\u7E8B\u7E86\u7E8D\u7F4D\u7FBB\u8030\u81DD\u8618\u862A\u8626\u861F\u8623\u861C\u8619\u8627\u862E\u8621\u8620\u8629\u861E\u8625"],["f640","\u8829\u881D\u881B\u8820\u8824\u881C\u882B\u884A\u896D\u8969\u896E\u896B\u89FA\u8B79\u8B78\u8B45\u8B7A\u8B7B\u8D10\u8D14\u8DAF\u8E8E\u8E8C\u8F5E\u8F5B\u8F5D\u9146\u9144\u9145\u91B9\u943F\u943B\u9436\u9429\u943D\u943C\u9430\u9439\u942A\u9437\u942C\u9440\u9431\u95E5\u95E4\u95E3\u9735\u973A\u97BF\u97E1\u9864\u98C9\u98C6\u98C0\u9958\u9956\u9A39\u9A3D\u9A46\u9A44\u9A42\u9A41\u9A3A"],["f6a1","\u9A3F\u9ACD\u9B15\u9B17\u9B18\u9B16\u9B3A\u9B52\u9C2B\u9C1D\u9C1C\u9C2C\u9C23\u9C28\u9C29\u9C24\u9C21\u9DB7\u9DB6\u9DBC\u9DC1\u9DC7\u9DCA\u9DCF\u9DBE\u9DC5\u9DC3\u9DBB\u9DB5\u9DCE\u9DB9\u9DBA\u9DAC\u9DC8\u9DB1\u9DAD\u9DCC\u9DB3\u9DCD\u9DB2\u9E7A\u9E9C\u9EEB\u9EEE\u9EED\u9F1B\u9F18\u9F1A\u9F31\u9F4E\u9F65\u9F64\u9F92\u4EB9\u56C6\u56C5\u56CB\u5971\u5B4B\u5B4C\u5DD5\u5DD1\u5EF2\u6521\u6520\u6526\u6522\u6B0B\u6B08\u6B09\u6C0D\u7055\u7056\u7057\u7052\u721E\u721F\u72A9\u737F\u74D8\u74D5\u74D9\u74D7\u766D\u76AD\u7935\u79B4\u7A70\u7A71\u7C57\u7C5C\u7C59\u7C5B\u7C5A"],["f740","\u7CF4\u7CF1\u7E91\u7F4F\u7F87\u81DE\u826B\u8634\u8635\u8633\u862C\u8632\u8636\u882C\u8828\u8826\u882A\u8825\u8971\u89BF\u89BE\u89FB\u8B7E\u8B84\u8B82\u8B86\u8B85\u8B7F\u8D15\u8E95\u8E94\u8E9A\u8E92\u8E90\u8E96\u8E97\u8F60\u8F62\u9147\u944C\u9450\u944A\u944B\u944F\u9447\u9445\u9448\u9449\u9446\u973F\u97E3\u986A\u9869\u98CB\u9954\u995B\u9A4E\u9A53\u9A54\u9A4C\u9A4F\u9A48\u9A4A"],["f7a1","\u9A49\u9A52\u9A50\u9AD0\u9B19\u9B2B\u9B3B\u9B56\u9B55\u9C46\u9C48\u9C3F\u9C44\u9C39\u9C33\u9C41\u9C3C\u9C37\u9C34\u9C32\u9C3D\u9C36\u9DDB\u9DD2\u9DDE\u9DDA\u9DCB\u9DD0\u9DDC\u9DD1\u9DDF\u9DE9\u9DD9\u9DD8\u9DD6\u9DF5\u9DD5\u9DDD\u9EB6\u9EF0\u9F35\u9F33\u9F32\u9F42\u9F6B\u9F95\u9FA2\u513D\u5299\u58E8\u58E7\u5972\u5B4D\u5DD8\u882F\u5F4F\u6201\u6203\u6204\u6529\u6525\u6596\u66EB\u6B11\u6B12\u6B0F\u6BCA\u705B\u705A\u7222\u7382\u7381\u7383\u7670\u77D4\u7C67\u7C66\u7E95\u826C\u863A\u8640\u8639\u863C\u8631\u863B\u863E\u8830\u8832\u882E\u8833\u8976\u8974\u8973\u89FE"],["f840","\u8B8C\u8B8E\u8B8B\u8B88\u8C45\u8D19\u8E98\u8F64\u8F63\u91BC\u9462\u9455\u945D\u9457\u945E\u97C4\u97C5\u9800\u9A56\u9A59\u9B1E\u9B1F\u9B20\u9C52\u9C58\u9C50\u9C4A\u9C4D\u9C4B\u9C55\u9C59\u9C4C\u9C4E\u9DFB\u9DF7\u9DEF\u9DE3\u9DEB\u9DF8\u9DE4\u9DF6\u9DE1\u9DEE\u9DE6\u9DF2\u9DF0\u9DE2\u9DEC\u9DF4\u9DF3\u9DE8\u9DED\u9EC2\u9ED0\u9EF2\u9EF3\u9F06\u9F1C\u9F38\u9F37\u9F36\u9F43\u9F4F"],["f8a1","\u9F71\u9F70\u9F6E\u9F6F\u56D3\u56CD\u5B4E\u5C6D\u652D\u66ED\u66EE\u6B13\u705F\u7061\u705D\u7060\u7223\u74DB\u74E5\u77D5\u7938\u79B7\u79B6\u7C6A\u7E97\u7F89\u826D\u8643\u8838\u8837\u8835\u884B\u8B94\u8B95\u8E9E\u8E9F\u8EA0\u8E9D\u91BE\u91BD\u91C2\u946B\u9468\u9469\u96E5\u9746\u9743\u9747\u97C7\u97E5\u9A5E\u9AD5\u9B59\u9C63\u9C67\u9C66\u9C62\u9C5E\u9C60\u9E02\u9DFE\u9E07\u9E03\u9E06\u9E05\u9E00\u9E01\u9E09\u9DFF\u9DFD\u9E04\u9EA0\u9F1E\u9F46\u9F74\u9F75\u9F76\u56D4\u652E\u65B8\u6B18\u6B19\u6B17\u6B1A\u7062\u7226\u72AA\u77D8\u77D9\u7939\u7C69\u7C6B\u7CF6\u7E9A"],["f940","\u7E98\u7E9B\u7E99\u81E0\u81E1\u8646\u8647\u8648\u8979\u897A\u897C\u897B\u89FF\u8B98\u8B99\u8EA5\u8EA4\u8EA3\u946E\u946D\u946F\u9471\u9473\u9749\u9872\u995F\u9C68\u9C6E\u9C6D\u9E0B\u9E0D\u9E10\u9E0F\u9E12\u9E11\u9EA1\u9EF5\u9F09\u9F47\u9F78\u9F7B\u9F7A\u9F79\u571E\u7066\u7C6F\u883C\u8DB2\u8EA6\u91C3\u9474\u9478\u9476\u9475\u9A60\u9C74\u9C73\u9C71\u9C75\u9E14\u9E13\u9EF6\u9F0A"],["f9a1","\u9FA4\u7068\u7065\u7CF7\u866A\u883E\u883D\u883F\u8B9E\u8C9C\u8EA9\u8EC9\u974B\u9873\u9874\u98CC\u9961\u99AB\u9A64\u9A66\u9A67\u9B24\u9E15\u9E17\u9F48\u6207\u6B1E\u7227\u864C\u8EA8\u9482\u9480\u9481\u9A69\u9A68\u9B2E\u9E19\u7229\u864B\u8B9F\u9483\u9C79\u9EB7\u7675\u9A6B\u9C7A\u9E1D\u7069\u706A\u9EA4\u9F7E\u9F49\u9F98\u7881\u92B9\u88CF\u58BB\u6052\u7CA7\u5AFA\u2554\u2566\u2557\u2560\u256C\u2563\u255A\u2569\u255D\u2552\u2564\u2555\u255E\u256A\u2561\u2558\u2567\u255B\u2553\u2565\u2556\u255F\u256B\u2562\u2559\u2568\u255C\u2551\u2550\u256D\u256E\u2570\u256F\u2593"]]});var eM=T((CIe,EX)=>{EX.exports=[["8740","\u43F0\u4C32\u4603\u45A6\u4578\u{27267}\u4D77\u45B3\u{27CB1}\u4CE2\u{27CC5}\u3B95\u4736\u4744\u4C47\u4C40\u{242BF}\u{23617}\u{27352}\u{26E8B}\u{270D2}\u4C57\u{2A351}\u474F\u45DA\u4C85\u{27C6C}\u4D07\u4AA4\u46A1\u{26B23}\u7225\u{25A54}\u{21A63}\u{23E06}\u{23F61}\u664D\u56FB"],["8767","\u7D95\u591D\u{28BB9}\u3DF4\u9734\u{27BEF}\u5BDB\u{21D5E}\u5AA4\u3625\u{29EB0}\u5AD1\u5BB7\u5CFC\u676E\u8593\u{29945}\u7461\u749D\u3875\u{21D53}\u{2369E}\u{26021}\u3EEC"],["87a1","\u{258DE}\u3AF5\u7AFC\u9F97\u{24161}\u{2890D}\u{231EA}\u{20A8A}\u{2325E}\u430A\u8484\u9F96\u942F\u4930\u8613\u5896\u974A\u9218\u79D0\u7A32\u6660\u6A29\u889D\u744C\u7BC5\u6782\u7A2C\u524F\u9046\u34E6\u73C4\u{25DB9}\u74C6\u9FC7\u57B3\u492F\u544C\u4131\u{2368E}\u5818\u7A72\u{27B65}\u8B8F\u46AE\u{26E88}\u4181\u{25D99}\u7BAE\u{224BC}\u9FC8\u{224C1}\u{224C9}\u{224CC}\u9FC9\u8504\u{235BB}\u40B4\u9FCA\u44E1\u{2ADFF}\u62C1\u706E\u9FCB"],["8840","\u31C0",4,"\u{2010C}\u31C5\u{200D1}\u{200CD}\u31C6\u31C7\u{200CB}\u{21FE8}\u31C8\u{200CA}\u31C9\u31CA\u31CB\u31CC\u{2010E}\u31CD\u31CE\u0100\xC1\u01CD\xC0\u0112\xC9\u011A\xC8\u014C\xD3\u01D1\xD2\u0FFF\xCA\u0304\u1EBE\u0FFF\xCA\u030C\u1EC0\xCA\u0101\xE1\u01CE\xE0\u0251\u0113\xE9\u011B\xE8\u012B\xED\u01D0\xEC\u014D\xF3\u01D2\xF2\u016B\xFA\u01D4\xF9\u01D6\u01D8\u01DA"],["88a1","\u01DC\xFC\u0FFF\xEA\u0304\u1EBF\u0FFF\xEA\u030C\u1EC1\xEA\u0261\u23DA\u23DB"],["8940","\u{2A3A9}\u{21145}"],["8943","\u650A"],["8946","\u4E3D\u6EDD\u9D4E\u91DF"],["894c","\u{27735}\u6491\u4F1A\u4F28\u4FA8\u5156\u5174\u519C\u51E4\u52A1\u52A8\u533B\u534E\u53D1\u53D8\u56E2\u58F0\u5904\u5907\u5932\u5934\u5B66\u5B9E\u5B9F\u5C9A\u5E86\u603B\u6589\u67FE\u6804\u6865\u6D4E\u70BC\u7535\u7EA4\u7EAC\u7EBA\u7EC7\u7ECF\u7EDF\u7F06\u7F37\u827A\u82CF\u836F\u89C6\u8BBE\u8BE2\u8F66\u8F67\u8F6E"],["89a1","\u7411\u7CFC\u7DCD\u6946\u7AC9\u5227"],["89ab","\u918C\u78B8\u915E\u80BC"],["89b0","\u8D0B\u80F6\u{209E7}"],["89b5","\u809F\u9EC7\u4CCD\u9DC9\u9E0C\u4C3E\u{29DF6}\u{2700E}\u9E0A\u{2A133}\u35C1"],["89c1","\u6E9A\u823E\u7519"],["89c5","\u4911\u9A6C\u9A8F\u9F99\u7987\u{2846C}\u{21DCA}\u{205D0}\u{22AE6}\u4E24\u4E81\u4E80\u4E87\u4EBF\u4EEB\u4F37\u344C\u4FBD\u3E48\u5003\u5088\u347D\u3493\u34A5\u5186\u5905\u51DB\u51FC\u5205\u4E89\u5279\u5290\u5327\u35C7\u53A9\u3551\u53B0\u3553\u53C2\u5423\u356D\u3572\u3681\u5493\u54A3\u54B4\u54B9\u54D0\u54EF\u5518\u5523\u5528\u3598\u553F\u35A5\u35BF\u55D7\u35C5"],["8a40","\u{27D84}\u5525"],["8a43","\u{20C42}\u{20D15}\u{2512B}\u5590\u{22CC6}\u39EC\u{20341}\u8E46\u{24DB8}\u{294E5}\u4053\u{280BE}\u777A\u{22C38}\u3A34\u47D5\u{2815D}\u{269F2}\u{24DEA}\u64DD\u{20D7C}\u{20FB4}\u{20CD5}\u{210F4}\u648D\u8E7E\u{20E96}\u{20C0B}\u{20F64}\u{22CA9}\u{28256}\u{244D3}"],["8a64","\u{20D46}\u{29A4D}\u{280E9}\u47F4\u{24EA7}\u{22CC2}\u9AB2\u3A67\u{295F4}\u3FED\u3506\u{252C7}\u{297D4}\u{278C8}\u{22D44}\u9D6E\u9815"],["8a76","\u43D9\u{260A5}\u64B4\u54E3\u{22D4C}\u{22BCA}\u{21077}\u39FB\u{2106F}"],["8aa1","\u{266DA}\u{26716}\u{279A0}\u64EA\u{25052}\u{20C43}\u8E68\u{221A1}\u{28B4C}\u{20731}"],["8aac","\u480B\u{201A9}\u3FFA\u5873\u{22D8D}"],["8ab2","\u{245C8}\u{204FC}\u{26097}\u{20F4C}\u{20D96}\u5579\u40BB\u43BA"],["8abb","\u4AB4\u{22A66}\u{2109D}\u81AA\u98F5\u{20D9C}\u6379\u39FE\u{22775}\u8DC0\u56A1\u647C\u3E43"],["8ac9","\u{2A601}\u{20E09}\u{22ACF}\u{22CC9}"],["8ace","\u{210C8}\u{239C2}\u3992\u3A06\u{2829B}\u3578\u{25E49}\u{220C7}\u5652\u{20F31}\u{22CB2}\u{29720}\u34BC\u6C3D\u{24E3B}"],["8adf","\u{27574}\u{22E8B}\u{22208}\u{2A65B}\u{28CCD}\u{20E7A}\u{20C34}\u{2681C}\u7F93\u{210CF}\u{22803}\u{22939}\u35FB\u{251E3}\u{20E8C}\u{20F8D}\u{20EAA}\u3F93\u{20F30}\u{20D47}\u{2114F}\u{20E4C}"],["8af6","\u{20EAB}\u{20BA9}\u{20D48}\u{210C0}\u{2113D}\u3FF9\u{22696}\u6432\u{20FAD}"],["8b40","\u{233F4}\u{27639}\u{22BCE}\u{20D7E}\u{20D7F}\u{22C51}\u{22C55}\u3A18\u{20E98}\u{210C7}\u{20F2E}\u{2A632}\u{26B50}\u{28CD2}\u{28D99}\u{28CCA}\u95AA\u54CC\u82C4\u55B9"],["8b55","\u{29EC3}\u9C26\u9AB6\u{2775E}\u{22DEE}\u7140\u816D\u80EC\u5C1C\u{26572}\u8134\u3797\u535F\u{280BD}\u91B6\u{20EFA}\u{20E0F}\u{20E77}\u{20EFB}\u35DD\u{24DEB}\u3609\u{20CD6}\u56AF\u{227B5}\u{210C9}\u{20E10}\u{20E78}\u{21078}\u{21148}\u{28207}\u{21455}\u{20E79}\u{24E50}\u{22DA4}\u5A54\u{2101D}\u{2101E}\u{210F5}\u{210F6}\u579C\u{20E11}"],["8ba1","\u{27694}\u{282CD}\u{20FB5}\u{20E7B}\u{2517E}\u3703\u{20FB6}\u{21180}\u{252D8}\u{2A2BD}\u{249DA}\u{2183A}\u{24177}\u{2827C}\u5899\u5268\u361A\u{2573D}\u7BB2\u5B68\u4800\u4B2C\u9F27\u49E7\u9C1F\u9B8D\u{25B74}\u{2313D}\u55FB\u35F2\u5689\u4E28\u5902\u{21BC1}\u{2F878}\u9751\u{20086}\u4E5B\u4EBB\u353E\u5C23\u5F51\u5FC4\u38FA\u624C\u6535\u6B7A\u6C35\u6C3A\u706C\u722B\u4E2C\u72AD\u{248E9}\u7F52\u793B\u7CF9\u7F53\u{2626A}\u34C1"],["8bde","\u{2634B}\u8002\u8080\u{26612}\u{26951}\u535D\u8864\u89C1\u{278B2}\u8BA0\u8D1D\u9485\u9578\u957F\u95E8\u{28E0F}\u97E6\u9875\u98CE\u98DE\u9963\u{29810}\u9C7C\u9E1F\u9EC4\u6B6F\uF907\u4E37\u{20087}\u961D\u6237\u94A2"],["8c40","\u503B\u6DFE\u{29C73}\u9FA6\u3DC9\u888F\u{2414E}\u7077\u5CF5\u4B20\u{251CD}\u3559\u{25D30}\u6122\u{28A32}\u8FA7\u91F6\u7191\u6719\u73BA\u{23281}\u{2A107}\u3C8B\u{21980}\u4B10\u78E4\u7402\u51AE\u{2870F}\u4009\u6A63\u{2A2BA}\u4223\u860F\u{20A6F}\u7A2A\u{29947}\u{28AEA}\u9755\u704D\u5324\u{2207E}\u93F4\u76D9\u{289E3}\u9FA7\u77DD\u4EA3\u4FF0\u50BC\u4E2F\u4F17\u9FA8\u5434\u7D8B\u5892\u58D0\u{21DB6}\u5E92\u5E99\u5FC2\u{22712}\u658B"],["8ca1","\u{233F9}\u6919\u6A43\u{23C63}\u6CFF"],["8ca7","\u7200\u{24505}\u738C\u3EDB\u{24A13}\u5B15\u74B9\u8B83\u{25CA4}\u{25695}\u7A93\u7BEC\u7CC3\u7E6C\u82F8\u8597\u9FA9\u8890\u9FAA\u8EB9\u9FAB\u8FCF\u855F\u99E0\u9221\u9FAC\u{28DB9}\u{2143F}\u4071\u42A2\u5A1A"],["8cc9","\u9868\u676B\u4276\u573D"],["8cce","\u85D6\u{2497B}\u82BF\u{2710D}\u4C81\u{26D74}\u5D7B\u{26B15}\u{26FBE}\u9FAD\u9FAE\u5B96\u9FAF\u66E7\u7E5B\u6E57\u79CA\u3D88\u44C3\u{23256}\u{22796}\u439A\u4536"],["8ce6","\u5CD5\u{23B1A}\u8AF9\u5C78\u3D12\u{23551}\u5D78\u9FB2\u7157\u4558\u{240EC}\u{21E23}\u4C77\u3978\u344A\u{201A4}\u{26C41}\u8ACC\u4FB4\u{20239}\u59BF\u816C\u9856\u{298FA}\u5F3B"],["8d40","\u{20B9F}"],["8d42","\u{221C1}\u{2896D}\u4102\u46BB\u{29079}\u3F07\u9FB3\u{2A1B5}\u40F8\u37D6\u46F7\u{26C46}\u417C\u{286B2}\u{273FF}\u456D\u38D4\u{2549A}\u4561\u451B\u4D89\u4C7B\u4D76\u45EA\u3FC8\u{24B0F}\u3661\u44DE\u44BD\u41ED\u5D3E\u5D48\u5D56\u3DFC\u380F\u5DA4\u5DB9\u3820\u3838\u5E42\u5EBD\u5F25\u5F83\u3908\u3914\u393F\u394D\u60D7\u613D\u5CE5\u3989\u61B7\u61B9\u61CF\u39B8\u622C\u6290\u62E5\u6318\u39F8\u56B1"],["8da1","\u3A03\u63E2\u63FB\u6407\u645A\u3A4B\u64C0\u5D15\u5621\u9F9F\u3A97\u6586\u3ABD\u65FF\u6653\u3AF2\u6692\u3B22\u6716\u3B42\u67A4\u6800\u3B58\u684A\u6884\u3B72\u3B71\u3B7B\u6909\u6943\u725C\u6964\u699F\u6985\u3BBC\u69D6\u3BDD\u6A65\u6A74\u6A71\u6A82\u3BEC\u6A99\u3BF2\u6AAB\u6AB5\u6AD4\u6AF6\u6B81\u6BC1\u6BEA\u6C75\u6CAA\u3CCB\u6D02\u6D06\u6D26\u6D81\u3CEF\u6DA4\u6DB1\u6E15\u6E18\u6E29\u6E86\u{289C0}\u6EBB\u6EE2\u6EDA\u9F7F\u6EE8\u6EE9\u6F24\u6F34\u3D46\u{23F41}\u6F81\u6FBE\u3D6A\u3D75\u71B7\u5C99\u3D8A\u702C\u3D91\u7050\u7054\u706F\u707F\u7089\u{20325}\u43C1\u35F1\u{20ED8}"],["8e40","\u{23ED7}\u57BE\u{26ED3}\u713E\u{257E0}\u364E\u69A2\u{28BE9}\u5B74\u7A49\u{258E1}\u{294D9}\u7A65\u7A7D\u{259AC}\u7ABB\u7AB0\u7AC2\u7AC3\u71D1\u{2648D}\u41CA\u7ADA\u7ADD\u7AEA\u41EF\u54B2\u{25C01}\u7B0B\u7B55\u7B29\u{2530E}\u{25CFE}\u7BA2\u7B6F\u839C\u{25BB4}\u{26C7F}\u7BD0\u8421\u7B92\u7BB8\u{25D20}\u3DAD\u{25C65}\u8492\u7BFA\u7C06\u7C35\u{25CC1}\u7C44\u7C83\u{24882}\u7CA6\u667D\u{24578}\u7CC9\u7CC7\u7CE6\u7C74\u7CF3\u7CF5\u7CCE"],["8ea1","\u7E67\u451D\u{26E44}\u7D5D\u{26ED6}\u748D\u7D89\u7DAB\u7135\u7DB3\u7DD2\u{24057}\u{26029}\u7DE4\u3D13\u7DF5\u{217F9}\u7DE5\u{2836D}\u7E1D\u{26121}\u{2615A}\u7E6E\u7E92\u432B\u946C\u7E27\u7F40\u7F41\u7F47\u7936\u{262D0}\u99E1\u7F97\u{26351}\u7FA3\u{21661}\u{20068}\u455C\u{23766}\u4503\u{2833A}\u7FFA\u{26489}\u8005\u8008\u801D\u8028\u802F\u{2A087}\u{26CC3}\u803B\u803C\u8061\u{22714}\u4989\u{26626}\u{23DE3}\u{266E8}\u6725\u80A7\u{28A48}\u8107\u811A\u58B0\u{226F6}\u6C7F\u{26498}\u{24FB8}\u64E7\u{2148A}\u8218\u{2185E}\u6A53\u{24A65}\u{24A95}\u447A\u8229\u{20B0D}\u{26A52}\u{23D7E}\u4FF9\u{214FD}\u84E2\u8362\u{26B0A}\u{249A7}\u{23530}\u{21773}\u{23DF8}\u82AA\u691B\u{2F994}\u41DB"],["8f40","\u854B\u82D0\u831A\u{20E16}\u{217B4}\u36C1\u{2317D}\u{2355A}\u827B\u82E2\u8318\u{23E8B}\u{26DA3}\u{26B05}\u{26B97}\u{235CE}\u3DBF\u831D\u55EC\u8385\u450B\u{26DA5}\u83AC\u83C1\u83D3\u347E\u{26ED4}\u6A57\u855A\u3496\u{26E42}\u{22EEF}\u8458\u{25BE4}\u8471\u3DD3\u44E4\u6AA7\u844A\u{23CB5}\u7958\u84A8\u{26B96}\u{26E77}\u{26E43}\u84DE\u840F\u8391\u44A0\u8493\u84E4\u{25C91}\u4240\u{25CC0}\u4543\u8534\u5AF2\u{26E99}\u4527\u8573\u4516\u67BF\u8616"],["8fa1","\u{28625}\u{2863B}\u85C1\u{27088}\u8602\u{21582}\u{270CD}\u{2F9B2}\u456A\u8628\u3648\u{218A2}\u53F7\u{2739A}\u867E\u8771\u{2A0F8}\u87EE\u{22C27}\u87B1\u87DA\u880F\u5661\u866C\u6856\u460F\u8845\u8846\u{275E0}\u{23DB9}\u{275E4}\u885E\u889C\u465B\u88B4\u88B5\u63C1\u88C5\u7777\u{2770F}\u8987\u898A\u89A6\u89A9\u89A7\u89BC\u{28A25}\u89E7\u{27924}\u{27ABD}\u8A9C\u7793\u91FE\u8A90\u{27A59}\u7AE9\u{27B3A}\u{23F8F}\u4713\u{27B38}\u717C\u8B0C\u8B1F\u{25430}\u{25565}\u8B3F\u8B4C\u8B4D\u8AA9\u{24A7A}\u8B90\u8B9B\u8AAF\u{216DF}\u4615\u884F\u8C9B\u{27D54}\u{27D8F}\u{2F9D4}\u3725\u{27D53}\u8CD6\u{27D98}\u{27DBD}\u8D12\u8D03\u{21910}\u8CDB\u705C\u8D11\u{24CC9}\u3ED0\u8D77"],["9040","\u8DA9\u{28002}\u{21014}\u{2498A}\u3B7C\u{281BC}\u{2710C}\u7AE7\u8EAD\u8EB6\u8EC3\u92D4\u8F19\u8F2D\u{28365}\u{28412}\u8FA5\u9303\u{2A29F}\u{20A50}\u8FB3\u492A\u{289DE}\u{2853D}\u{23DBB}\u5EF8\u{23262}\u8FF9\u{2A014}\u{286BC}\u{28501}\u{22325}\u3980\u{26ED7}\u9037\u{2853C}\u{27ABE}\u9061\u{2856C}\u{2860B}\u90A8\u{28713}\u90C4\u{286E6}\u90AE\u90FD\u9167\u3AF0\u91A9\u91C4\u7CAC\u{28933}\u{21E89}\u920E\u6C9F\u9241\u9262\u{255B9}\u92B9\u{28AC6}\u{23C9B}\u{28B0C}\u{255DB}"],["90a1","\u{20D31}\u932C\u936B\u{28AE1}\u{28BEB}\u708F\u5AC3\u{28AE2}\u{28AE5}\u4965\u9244\u{28BEC}\u{28C39}\u{28BFF}\u9373\u945B\u8EBC\u9585\u95A6\u9426\u95A0\u6FF6\u42B9\u{2267A}\u{286D8}\u{2127C}\u{23E2E}\u49DF\u6C1C\u967B\u9696\u416C\u96A3\u{26ED5}\u61DA\u96B6\u78F5\u{28AE0}\u96BD\u53CC\u49A1\u{26CB8}\u{20274}\u{26410}\u{290AF}\u{290E5}\u{24AD1}\u{21915}\u{2330A}\u9731\u8642\u9736\u4A0F\u453D\u4585\u{24AE9}\u7075\u5B41\u971B\u975C\u{291D5}\u9757\u5B4A\u{291EB}\u975F\u9425\u50D0\u{230B7}\u{230BC}\u9789\u979F\u97B1\u97BE\u97C0\u97D2\u97E0\u{2546C}\u97EE\u741C\u{29433}\u97FF\u97F5\u{2941D}\u{2797A}\u4AD1\u9834\u9833\u984B\u9866\u3B0E\u{27175}\u3D51\u{20630}\u{2415C}"],["9140","\u{25706}\u98CA\u98B7\u98C8\u98C7\u4AFF\u{26D27}\u{216D3}\u55B0\u98E1\u98E6\u98EC\u9378\u9939\u{24A29}\u4B72\u{29857}\u{29905}\u99F5\u9A0C\u9A3B\u9A10\u9A58\u{25725}\u36C4\u{290B1}\u{29BD5}\u9AE0\u9AE2\u{29B05}\u9AF4\u4C0E\u9B14\u9B2D\u{28600}\u5034\u9B34\u{269A8}\u38C3\u{2307D}\u9B50\u9B40\u{29D3E}\u5A45\u{21863}\u9B8E\u{2424B}\u9C02\u9BFF\u9C0C\u{29E68}\u9DD4\u{29FB7}\u{2A192}\u{2A1AB}\u{2A0E1}\u{2A123}\u{2A1DF}\u9D7E\u9D83\u{2A134}\u9E0E\u6888"],["91a1","\u9DC4\u{2215B}\u{2A193}\u{2A220}\u{2193B}\u{2A233}\u9D39\u{2A0B9}\u{2A2B4}\u9E90\u9E95\u9E9E\u9EA2\u4D34\u9EAA\u9EAF\u{24364}\u9EC1\u3B60\u39E5\u3D1D\u4F32\u37BE\u{28C2B}\u9F02\u9F08\u4B96\u9424\u{26DA2}\u9F17\u9F16\u9F39\u569F\u568A\u9F45\u99B8\u{2908B}\u97F2\u847F\u9F62\u9F69\u7ADC\u9F8E\u7216\u4BBE\u{24975}\u{249BB}\u7177\u{249F8}\u{24348}\u{24A51}\u739E\u{28BDA}\u{218FA}\u799F\u{2897E}\u{28E36}\u9369\u93F3\u{28A44}\u92EC\u9381\u93CB\u{2896C}\u{244B9}\u7217\u3EEB\u7772\u7A43\u70D0\u{24473}\u{243F8}\u717E\u{217EF}\u70A3\u{218BE}\u{23599}\u3EC7\u{21885}\u{2542F}\u{217F8}\u3722\u{216FB}\u{21839}\u36E1\u{21774}\u{218D1}\u{25F4B}\u3723\u{216C0}\u575B\u{24A25}\u{213FE}\u{212A8}"],["9240","\u{213C6}\u{214B6}\u8503\u{236A6}\u8503\u8455\u{24994}\u{27165}\u{23E31}\u{2555C}\u{23EFB}\u{27052}\u44F4\u{236EE}\u{2999D}\u{26F26}\u67F9\u3733\u3C15\u3DE7\u586C\u{21922}\u6810\u4057\u{2373F}\u{240E1}\u{2408B}\u{2410F}\u{26C21}\u54CB\u569E\u{266B1}\u5692\u{20FDF}\u{20BA8}\u{20E0D}\u93C6\u{28B13}\u939C\u4EF8\u512B\u3819\u{24436}\u4EBC\u{20465}\u{2037F}\u4F4B\u4F8A\u{25651}\u5A68\u{201AB}\u{203CB}\u3999\u{2030A}\u{20414}\u3435\u4F29\u{202C0}\u{28EB3}\u{20275}\u8ADA\u{2020C}\u4E98"],["92a1","\u50CD\u510D\u4FA2\u4F03\u{24A0E}\u{23E8A}\u4F42\u502E\u506C\u5081\u4FCC\u4FE5\u5058\u50FC\u5159\u515B\u515D\u515E\u6E76\u{23595}\u{23E39}\u{23EBF}\u6D72\u{21884}\u{23E89}\u51A8\u51C3\u{205E0}\u44DD\u{204A3}\u{20492}\u{20491}\u8D7A\u{28A9C}\u{2070E}\u5259\u52A4\u{20873}\u52E1\u936E\u467A\u718C\u{2438C}\u{20C20}\u{249AC}\u{210E4}\u69D1\u{20E1D}\u7479\u3EDE\u7499\u7414\u7456\u7398\u4B8E\u{24ABC}\u{2408D}\u53D0\u3584\u720F\u{240C9}\u55B4\u{20345}\u54CD\u{20BC6}\u571D\u925D\u96F4\u9366\u57DD\u578D\u577F\u363E\u58CB\u5A99\u{28A46}\u{216FA}\u{2176F}\u{21710}\u5A2C\u59B8\u928F\u5A7E\u5ACF\u5A12\u{25946}\u{219F3}\u{21861}\u{24295}\u36F5\u6D05\u7443\u5A21\u{25E83}"],["9340","\u5A81\u{28BD7}\u{20413}\u93E0\u748C\u{21303}\u7105\u4972\u9408\u{289FB}\u93BD\u37A0\u5C1E\u5C9E\u5E5E\u5E48\u{21996}\u{2197C}\u{23AEE}\u5ECD\u5B4F\u{21903}\u{21904}\u3701\u{218A0}\u36DD\u{216FE}\u36D3\u812A\u{28A47}\u{21DBA}\u{23472}\u{289A8}\u5F0C\u5F0E\u{21927}\u{217AB}\u5A6B\u{2173B}\u5B44\u8614\u{275FD}\u8860\u607E\u{22860}\u{2262B}\u5FDB\u3EB8\u{225AF}\u{225BE}\u{29088}\u{26F73}\u61C0\u{2003E}\u{20046}\u{2261B}\u6199\u6198\u6075\u{22C9B}\u{22D07}\u{246D4}\u{2914D}"],["93a1","\u6471\u{24665}\u{22B6A}\u3A29\u{22B22}\u{23450}\u{298EA}\u{22E78}\u6337\u{2A45B}\u64B6\u6331\u63D1\u{249E3}\u{22D67}\u62A4\u{22CA1}\u643B\u656B\u6972\u3BF4\u{2308E}\u{232AD}\u{24989}\u{232AB}\u550D\u{232E0}\u{218D9}\u{2943F}\u66CE\u{23289}\u{231B3}\u3AE0\u4190\u{25584}\u{28B22}\u{2558F}\u{216FC}\u{2555B}\u{25425}\u78EE\u{23103}\u{2182A}\u{23234}\u3464\u{2320F}\u{23182}\u{242C9}\u668E\u{26D24}\u666B\u4B93\u6630\u{27870}\u{21DEB}\u6663\u{232D2}\u{232E1}\u661E\u{25872}\u38D1\u{2383A}\u{237BC}\u3B99\u{237A2}\u{233FE}\u74D0\u3B96\u678F\u{2462A}\u68B6\u681E\u3BC4\u6ABE\u3863\u{237D5}\u{24487}\u6A33\u6A52\u6AC9\u6B05\u{21912}\u6511\u6898\u6A4C\u3BD7\u6A7A\u6B57\u{23FC0}\u{23C9A}\u93A0\u92F2\u{28BEA}\u{28ACB}"],["9440","\u9289\u{2801E}\u{289DC}\u9467\u6DA5\u6F0B\u{249EC}\u6D67\u{23F7F}\u3D8F\u6E04\u{2403C}\u5A3D\u6E0A\u5847\u6D24\u7842\u713B\u{2431A}\u{24276}\u70F1\u7250\u7287\u7294\u{2478F}\u{24725}\u5179\u{24AA4}\u{205EB}\u747A\u{23EF8}\u{2365F}\u{24A4A}\u{24917}\u{25FE1}\u3F06\u3EB1\u{24ADF}\u{28C23}\u{23F35}\u60A7\u3EF3\u74CC\u743C\u9387\u7437\u449F\u{26DEA}\u4551\u7583\u3F63\u{24CD9}\u{24D06}\u3F58\u7555\u7673\u{2A5C6}\u3B19\u7468\u{28ACC}\u{249AB}\u{2498E}\u3AFB"],["94a1","\u3DCD\u{24A4E}\u3EFF\u{249C5}\u{248F3}\u91FA\u5732\u9342\u{28AE3}\u{21864}\u50DF\u{25221}\u{251E7}\u7778\u{23232}\u770E\u770F\u777B\u{24697}\u{23781}\u3A5E\u{248F0}\u7438\u749B\u3EBF\u{24ABA}\u{24AC7}\u40C8\u{24A96}\u{261AE}\u9307\u{25581}\u781E\u788D\u7888\u78D2\u73D0\u7959\u{27741}\u{256E3}\u410E\u799B\u8496\u79A5\u6A2D\u{23EFA}\u7A3A\u79F4\u416E\u{216E6}\u4132\u9235\u79F1\u{20D4C}\u{2498C}\u{20299}\u{23DBA}\u{2176E}\u3597\u556B\u3570\u36AA\u{201D4}\u{20C0D}\u7AE2\u5A59\u{226F5}\u{25AAF}\u{25A9C}\u5A0D\u{2025B}\u78F0\u5A2A\u{25BC6}\u7AFE\u41F9\u7C5D\u7C6D\u4211\u{25BB3}\u{25EBC}\u{25EA6}\u7CCD\u{249F9}\u{217B0}\u7C8E\u7C7C\u7CAE\u6AB2\u7DDC\u7E07\u7DD3\u7F4E\u{26261}"],["9540","\u{2615C}\u{27B48}\u7D97\u{25E82}\u426A\u{26B75}\u{20916}\u67D6\u{2004E}\u{235CF}\u57C4\u{26412}\u{263F8}\u{24962}\u7FDD\u7B27\u{2082C}\u{25AE9}\u{25D43}\u7B0C\u{25E0E}\u99E6\u8645\u9A63\u6A1C\u{2343F}\u39E2\u{249F7}\u{265AD}\u9A1F\u{265A0}\u8480\u{27127}\u{26CD1}\u44EA\u8137\u4402\u80C6\u8109\u8142\u{267B4}\u98C3\u{26A42}\u8262\u8265\u{26A51}\u8453\u{26DA7}\u8610\u{2721B}\u5A86\u417F\u{21840}\u5B2B\u{218A1}\u5AE4\u{218D8}\u86A0\u{2F9BC}\u{23D8F}\u882D\u{27422}\u5A02"],["95a1","\u886E\u4F45\u8887\u88BF\u88E6\u8965\u894D\u{25683}\u8954\u{27785}\u{27784}\u{28BF5}\u{28BD9}\u{28B9C}\u{289F9}\u3EAD\u84A3\u46F5\u46CF\u37F2\u8A3D\u8A1C\u{29448}\u5F4D\u922B\u{24284}\u65D4\u7129\u70C4\u{21845}\u9D6D\u8C9F\u8CE9\u{27DDC}\u599A\u77C3\u59F0\u436E\u36D4\u8E2A\u8EA7\u{24C09}\u8F30\u8F4A\u42F4\u6C58\u6FBB\u{22321}\u489B\u6F79\u6E8B\u{217DA}\u9BE9\u36B5\u{2492F}\u90BB\u9097\u5571\u4906\u91BB\u9404\u{28A4B}\u4062\u{28AFC}\u9427\u{28C1D}\u{28C3B}\u84E5\u8A2B\u9599\u95A7\u9597\u9596\u{28D34}\u7445\u3EC2\u{248FF}\u{24A42}\u{243EA}\u3EE7\u{23225}\u968F\u{28EE7}\u{28E66}\u{28E65}\u3ECC\u{249ED}\u{24A78}\u{23FEE}\u7412\u746B\u3EFC\u9741\u{290B0}"],["9640","\u6847\u4A1D\u{29093}\u{257DF}\u975D\u9368\u{28989}\u{28C26}\u{28B2F}\u{263BE}\u92BA\u5B11\u8B69\u493C\u73F9\u{2421B}\u979B\u9771\u9938\u{20F26}\u5DC1\u{28BC5}\u{24AB2}\u981F\u{294DA}\u92F6\u{295D7}\u91E5\u44C0\u{28B50}\u{24A67}\u{28B64}\u98DC\u{28A45}\u3F00\u922A\u4925\u8414\u993B\u994D\u{27B06}\u3DFD\u999B\u4B6F\u99AA\u9A5C\u{28B65}\u{258C8}\u6A8F\u9A21\u5AFE\u9A2F\u{298F1}\u4B90\u{29948}\u99BC\u4BBD\u4B97\u937D\u5872\u{21302}\u5822\u{249B8}"],["96a1","\u{214E8}\u7844\u{2271F}\u{23DB8}\u68C5\u3D7D\u9458\u3927\u6150\u{22781}\u{2296B}\u6107\u9C4F\u9C53\u9C7B\u9C35\u9C10\u9B7F\u9BCF\u{29E2D}\u9B9F\u{2A1F5}\u{2A0FE}\u9D21\u4CAE\u{24104}\u9E18\u4CB0\u9D0C\u{2A1B4}\u{2A0ED}\u{2A0F3}\u{2992F}\u9DA5\u84BD\u{26E12}\u{26FDF}\u{26B82}\u85FC\u4533\u{26DA4}\u{26E84}\u{26DF0}\u8420\u85EE\u{26E00}\u{237D7}\u{26064}\u79E2\u{2359C}\u{23640}\u492D\u{249DE}\u3D62\u93DB\u92BE\u9348\u{202BF}\u78B9\u9277\u944D\u4FE4\u3440\u9064\u{2555D}\u783D\u7854\u78B6\u784B\u{21757}\u{231C9}\u{24941}\u369A\u4F72\u6FDA\u6FD9\u701E\u701E\u5414\u{241B5}\u57BB\u58F3\u578A\u9D16\u57D7\u7134\u34AF\u{241AC}\u71EB\u{26C40}\u{24F97}\u5B28\u{217B5}\u{28A49}"],["9740","\u610C\u5ACE\u5A0B\u42BC\u{24488}\u372C\u4B7B\u{289FC}\u93BB\u93B8\u{218D6}\u{20F1D}\u8472\u{26CC0}\u{21413}\u{242FA}\u{22C26}\u{243C1}\u5994\u{23DB7}\u{26741}\u7DA8\u{2615B}\u{260A4}\u{249B9}\u{2498B}\u{289FA}\u92E5\u73E2\u3EE9\u74B4\u{28B63}\u{2189F}\u3EE1\u{24AB3}\u6AD8\u73F3\u73FB\u3ED6\u{24A3E}\u{24A94}\u{217D9}\u{24A66}\u{203A7}\u{21424}\u{249E5}\u7448\u{24916}\u70A5\u{24976}\u9284\u73E6\u935F\u{204FE}\u9331\u{28ACE}\u{28A16}\u9386\u{28BE7}\u{255D5}\u4935\u{28A82}\u716B"],["97a1","\u{24943}\u{20CFF}\u56A4\u{2061A}\u{20BEB}\u{20CB8}\u5502\u79C4\u{217FA}\u7DFE\u{216C2}\u{24A50}\u{21852}\u452E\u9401\u370A\u{28AC0}\u{249AD}\u59B0\u{218BF}\u{21883}\u{27484}\u5AA1\u36E2\u{23D5B}\u36B0\u925F\u5A79\u{28A81}\u{21862}\u9374\u3CCD\u{20AB4}\u4A96\u398A\u50F4\u3D69\u3D4C\u{2139C}\u7175\u42FB\u{28218}\u6E0F\u{290E4}\u44EB\u6D57\u{27E4F}\u7067\u6CAF\u3CD6\u{23FED}\u{23E2D}\u6E02\u6F0C\u3D6F\u{203F5}\u7551\u36BC\u34C8\u4680\u3EDA\u4871\u59C4\u926E\u493E\u8F41\u{28C1C}\u{26BC0}\u5812\u57C8\u36D6\u{21452}\u70FE\u{24362}\u{24A71}\u{22FE3}\u{212B0}\u{223BD}\u68B9\u6967\u{21398}\u{234E5}\u{27BF4}\u{236DF}\u{28A83}\u{237D6}\u{233FA}\u{24C9F}\u6A1A\u{236AD}\u{26CB7}\u843E\u44DF\u44CE"],["9840","\u{26D26}\u{26D51}\u{26C82}\u{26FDE}\u6F17\u{27109}\u833D\u{2173A}\u83ED\u{26C80}\u{27053}\u{217DB}\u5989\u5A82\u{217B3}\u5A61\u5A71\u{21905}\u{241FC}\u372D\u59EF\u{2173C}\u36C7\u718E\u9390\u669A\u{242A5}\u5A6E\u5A2B\u{24293}\u6A2B\u{23EF9}\u{27736}\u{2445B}\u{242CA}\u711D\u{24259}\u{289E1}\u4FB0\u{26D28}\u5CC2\u{244CE}\u{27E4D}\u{243BD}\u6A0C\u{24256}\u{21304}\u70A6\u7133\u{243E9}\u3DA5\u6CDF\u{2F825}\u{24A4F}\u7E65\u59EB\u5D2F\u3DF3\u5F5C\u{24A5D}\u{217DF}\u7DA4\u8426"],["98a1","\u5485\u{23AFA}\u{23300}\u{20214}\u577E\u{208D5}\u{20619}\u3FE5\u{21F9E}\u{2A2B6}\u7003\u{2915B}\u5D70\u738F\u7CD3\u{28A59}\u{29420}\u4FC8\u7FE7\u72CD\u7310\u{27AF4}\u7338\u7339\u{256F6}\u7341\u7348\u3EA9\u{27B18}\u906C\u71F5\u{248F2}\u73E1\u81F6\u3ECA\u770C\u3ED1\u6CA2\u56FD\u7419\u741E\u741F\u3EE2\u3EF0\u3EF4\u3EFA\u74D3\u3F0E\u3F53\u7542\u756D\u7572\u758D\u3F7C\u75C8\u75DC\u3FC0\u764D\u3FD7\u7674\u3FDC\u767A\u{24F5C}\u7188\u5623\u8980\u5869\u401D\u7743\u4039\u6761\u4045\u35DB\u7798\u406A\u406F\u5C5E\u77BE\u77CB\u58F2\u7818\u70B9\u781C\u40A8\u7839\u7847\u7851\u7866\u8448\u{25535}\u7933\u6803\u7932\u4103"],["9940","\u4109\u7991\u7999\u8FBB\u7A06\u8FBC\u4167\u7A91\u41B2\u7ABC\u8279\u41C4\u7ACF\u7ADB\u41CF\u4E21\u7B62\u7B6C\u7B7B\u7C12\u7C1B\u4260\u427A\u7C7B\u7C9C\u428C\u7CB8\u4294\u7CED\u8F93\u70C0\u{20CCF}\u7DCF\u7DD4\u7DD0\u7DFD\u7FAE\u7FB4\u729F\u4397\u8020\u8025\u7B39\u802E\u8031\u8054\u3DCC\u57B4\u70A0\u80B7\u80E9\u43ED\u810C\u732A\u810E\u8112\u7560\u8114\u4401\u3B39\u8156\u8159\u815A"],["99a1","\u4413\u583A\u817C\u8184\u4425\u8193\u442D\u81A5\u57EF\u81C1\u81E4\u8254\u448F\u82A6\u8276\u82CA\u82D8\u82FF\u44B0\u8357\u9669\u698A\u8405\u70F5\u8464\u60E3\u8488\u4504\u84BE\u84E1\u84F8\u8510\u8538\u8552\u453B\u856F\u8570\u85E0\u4577\u8672\u8692\u86B2\u86EF\u9645\u878B\u4606\u4617\u88AE\u88FF\u8924\u8947\u8991\u{27967}\u8A29\u8A38\u8A94\u8AB4\u8C51\u8CD4\u8CF2\u8D1C\u4798\u585F\u8DC3\u47ED\u4EEE\u8E3A\u55D8\u5754\u8E71\u55F5\u8EB0\u4837\u8ECE\u8EE2\u8EE4\u8EED\u8EF2\u8FB7\u8FC1\u8FCA\u8FCC\u9033\u99C4\u48AD\u98E0\u9213\u491E\u9228\u9258\u926B\u92B1\u92AE\u92BF"],["9a40","\u92E3\u92EB\u92F3\u92F4\u92FD\u9343\u9384\u93AD\u4945\u4951\u9EBF\u9417\u5301\u941D\u942D\u943E\u496A\u9454\u9479\u952D\u95A2\u49A7\u95F4\u9633\u49E5\u67A0\u4A24\u9740\u4A35\u97B2\u97C2\u5654\u4AE4\u60E8\u98B9\u4B19\u98F1\u5844\u990E\u9919\u51B4\u991C\u9937\u9942\u995D\u9962\u4B70\u99C5\u4B9D\u9A3C\u9B0F\u7A83\u9B69\u9B81\u9BDD\u9BF1\u9BF4\u4C6D\u9C20\u376F\u{21BC2}\u9D49\u9C3A"],["9aa1","\u9EFE\u5650\u9D93\u9DBD\u9DC0\u9DFC\u94F6\u8FB6\u9E7B\u9EAC\u9EB1\u9EBD\u9EC6\u94DC\u9EE2\u9EF1\u9EF8\u7AC8\u9F44\u{20094}\u{202B7}\u{203A0}\u691A\u94C3\u59AC\u{204D7}\u5840\u94C1\u37B9\u{205D5}\u{20615}\u{20676}\u{216BA}\u5757\u7173\u{20AC2}\u{20ACD}\u{20BBF}\u546A\u{2F83B}\u{20BCB}\u549E\u{20BFB}\u{20C3B}\u{20C53}\u{20C65}\u{20C7C}\u60E7\u{20C8D}\u567A\u{20CB5}\u{20CDD}\u{20CED}\u{20D6F}\u{20DB2}\u{20DC8}\u6955\u9C2F\u87A5\u{20E04}\u{20E0E}\u{20ED7}\u{20F90}\u{20F2D}\u{20E73}\u5C20\u{20FBC}\u5E0B\u{2105C}\u{2104F}\u{21076}\u671E\u{2107B}\u{21088}\u{21096}\u3647\u{210BF}\u{210D3}\u{2112F}\u{2113B}\u5364\u84AD\u{212E3}\u{21375}\u{21336}\u8B81\u{21577}\u{21619}\u{217C3}\u{217C7}\u4E78\u70BB\u{2182D}\u{2196A}"],["9b40","\u{21A2D}\u{21A45}\u{21C2A}\u{21C70}\u{21CAC}\u{21EC8}\u62C3\u{21ED5}\u{21F15}\u7198\u6855\u{22045}\u69E9\u36C8\u{2227C}\u{223D7}\u{223FA}\u{2272A}\u{22871}\u{2294F}\u82FD\u{22967}\u{22993}\u{22AD5}\u89A5\u{22AE8}\u8FA0\u{22B0E}\u97B8\u{22B3F}\u9847\u9ABD\u{22C4C}"],["9b62","\u{22C88}\u{22CB7}\u{25BE8}\u{22D08}\u{22D12}\u{22DB7}\u{22D95}\u{22E42}\u{22F74}\u{22FCC}\u{23033}\u{23066}\u{2331F}\u{233DE}\u5FB1\u6648\u66BF\u{27A79}\u{23567}\u{235F3}\u7201\u{249BA}\u77D7\u{2361A}\u{23716}\u7E87\u{20346}\u58B5\u670E"],["9ba1","\u6918\u{23AA7}\u{27657}\u{25FE2}\u{23E11}\u{23EB9}\u{275FE}\u{2209A}\u48D0\u4AB8\u{24119}\u{28A9A}\u{242EE}\u{2430D}\u{2403B}\u{24334}\u{24396}\u{24A45}\u{205CA}\u51D2\u{20611}\u599F\u{21EA8}\u3BBE\u{23CFF}\u{24404}\u{244D6}\u5788\u{24674}\u399B\u{2472F}\u{285E8}\u{299C9}\u3762\u{221C3}\u8B5E\u{28B4E}\u99D6\u{24812}\u{248FB}\u{24A15}\u7209\u{24AC0}\u{20C78}\u5965\u{24EA5}\u{24F86}\u{20779}\u8EDA\u{2502C}\u528F\u573F\u7171\u{25299}\u{25419}\u{23F4A}\u{24AA7}\u55BC\u{25446}\u{2546E}\u{26B52}\u91D4\u3473\u{2553F}\u{27632}\u{2555E}\u4718\u{25562}\u{25566}\u{257C7}\u{2493F}\u{2585D}\u5066\u34FB\u{233CC}\u60DE\u{25903}\u477C\u{28948}\u{25AAE}\u{25B89}\u{25C06}\u{21D90}\u57A1\u7151\u6FB6\u{26102}\u{27C12}\u9056\u{261B2}\u{24F9A}\u8B62\u{26402}\u{2644A}"],["9c40","\u5D5B\u{26BF7}\u8F36\u{26484}\u{2191C}\u8AEA\u{249F6}\u{26488}\u{23FEF}\u{26512}\u4BC0\u{265BF}\u{266B5}\u{2271B}\u9465\u{257E1}\u6195\u5A27\u{2F8CD}\u4FBB\u56B9\u{24521}\u{266FC}\u4E6A\u{24934}\u9656\u6D8F\u{26CBD}\u3618\u8977\u{26799}\u{2686E}\u{26411}\u{2685E}\u71DF\u{268C7}\u7B42\u{290C0}\u{20A11}\u{26926}\u9104\u{26939}\u7A45\u9DF0\u{269FA}\u9A26\u{26A2D}\u365F\u{26469}\u{20021}\u7983\u{26A34}\u{26B5B}\u5D2C\u{23519}\u83CF\u{26B9D}\u46D0\u{26CA4}\u753B\u8865\u{26DAE}\u58B6"],["9ca1","\u371C\u{2258D}\u{2704B}\u{271CD}\u3C54\u{27280}\u{27285}\u9281\u{2217A}\u{2728B}\u9330\u{272E6}\u{249D0}\u6C39\u949F\u{27450}\u{20EF8}\u8827\u88F5\u{22926}\u{28473}\u{217B1}\u6EB8\u{24A2A}\u{21820}\u39A4\u36B9\u5C10\u79E3\u453F\u66B6\u{29CAD}\u{298A4}\u8943\u{277CC}\u{27858}\u56D6\u40DF\u{2160A}\u39A1\u{2372F}\u{280E8}\u{213C5}\u71AD\u8366\u{279DD}\u{291A8}\u5A67\u4CB7\u{270AF}\u{289AB}\u{279FD}\u{27A0A}\u{27B0B}\u{27D66}\u{2417A}\u7B43\u797E\u{28009}\u6FB5\u{2A2DF}\u6A03\u{28318}\u53A2\u{26E07}\u93BF\u6836\u975D\u{2816F}\u{28023}\u{269B5}\u{213ED}\u{2322F}\u{28048}\u5D85\u{28C30}\u{28083}\u5715\u9823\u{28949}\u5DAB\u{24988}\u65BE\u69D5\u53D2\u{24AA5}\u{23F81}\u3C11\u6736\u{28090}\u{280F4}\u{2812E}\u{21FA1}\u{2814F}"],["9d40","\u{28189}\u{281AF}\u{2821A}\u{28306}\u{2832F}\u{2838A}\u35CA\u{28468}\u{286AA}\u48FA\u63E6\u{28956}\u7808\u9255\u{289B8}\u43F2\u{289E7}\u43DF\u{289E8}\u{28B46}\u{28BD4}\u59F8\u{28C09}\u8F0B\u{28FC5}\u{290EC}\u7B51\u{29110}\u{2913C}\u3DF7\u{2915E}\u{24ACA}\u8FD0\u728F\u568B\u{294E7}\u{295E9}\u{295B0}\u{295B8}\u{29732}\u{298D1}\u{29949}\u{2996A}\u{299C3}\u{29A28}\u{29B0E}\u{29D5A}\u{29D9B}\u7E9F\u{29EF8}\u{29F23}\u4CA4\u9547\u{2A293}\u71A2\u{2A2FF}\u4D91\u9012\u{2A5CB}\u4D9C\u{20C9C}\u8FBE\u55C1"],["9da1","\u8FBA\u{224B0}\u8FB9\u{24A93}\u4509\u7E7F\u6F56\u6AB1\u4EEA\u34E4\u{28B2C}\u{2789D}\u373A\u8E80\u{217F5}\u{28024}\u{28B6C}\u{28B99}\u{27A3E}\u{266AF}\u3DEB\u{27655}\u{23CB7}\u{25635}\u{25956}\u4E9A\u{25E81}\u{26258}\u56BF\u{20E6D}\u8E0E\u5B6D\u{23E88}\u{24C9E}\u63DE\u62D0\u{217F6}\u{2187B}\u6530\u562D\u{25C4A}\u541A\u{25311}\u3DC6\u{29D98}\u4C7D\u5622\u561E\u7F49\u{25ED8}\u5975\u{23D40}\u8770\u4E1C\u{20FEA}\u{20D49}\u{236BA}\u8117\u9D5E\u8D18\u763B\u9C45\u764E\u77B9\u9345\u5432\u8148\u82F7\u5625\u8132\u8418\u80BD\u55EA\u7962\u5643\u5416\u{20E9D}\u35CE\u5605\u55F1\u66F1\u{282E2}\u362D\u7534\u55F0\u55BA\u5497\u5572\u{20C41}\u{20C96}\u5ED0\u{25148}\u{20E76}\u{22C62}"],["9e40","\u{20EA2}\u9EAB\u7D5A\u55DE\u{21075}\u629D\u976D\u5494\u8CCD\u71F6\u9176\u63FC\u63B9\u63FE\u5569\u{22B43}\u9C72\u{22EB3}\u519A\u34DF\u{20DA7}\u51A7\u544D\u551E\u5513\u7666\u8E2D\u{2688A}\u75B1\u80B6\u8804\u8786\u88C7\u81B6\u841C\u{210C1}\u44EC\u7304\u{24706}\u5B90\u830B\u{26893}\u567B\u{226F4}\u{27D2F}\u{241A3}\u{27D73}\u{26ED0}\u{272B6}\u9170\u{211D9}\u9208\u{23CFC}\u{2A6A9}\u{20EAC}\u{20EF9}\u7266\u{21CA2}\u474E\u{24FC2}\u{27FF9}\u{20FEB}\u40FA"],["9ea1","\u9C5D\u651F\u{22DA0}\u48F3\u{247E0}\u{29D7C}\u{20FEC}\u{20E0A}\u6062\u{275A3}\u{20FED}"],["9ead","\u{26048}\u{21187}\u71A3\u7E8E\u9D50\u4E1A\u4E04\u3577\u5B0D\u6CB2\u5367\u36AC\u39DC\u537D\u36A5\u{24618}\u589A\u{24B6E}\u822D\u544B\u57AA\u{25A95}\u{20979}"],["9ec5","\u3A52\u{22465}\u7374\u{29EAC}\u4D09\u9BED\u{23CFE}\u{29F30}\u4C5B\u{24FA9}\u{2959E}\u{29FDE}\u845C\u{23DB6}\u{272B2}\u{267B3}\u{23720}\u632E\u7D25\u{23EF7}\u{23E2C}\u3A2A\u9008\u52CC\u3E74\u367A\u45E9\u{2048E}\u7640\u5AF0\u{20EB6}\u787A\u{27F2E}\u58A7\u40BF\u567C\u9B8B\u5D74\u7654\u{2A434}\u9E85\u4CE1\u75F9\u37FB\u6119\u{230DA}\u{243F2}"],["9ef5","\u565D\u{212A9}\u57A7\u{24963}\u{29E06}\u5234\u{270AE}\u35AD\u6C4A\u9D7C"],["9f40","\u7C56\u9B39\u57DE\u{2176C}\u5C53\u64D3\u{294D0}\u{26335}\u{27164}\u86AD\u{20D28}\u{26D22}\u{24AE2}\u{20D71}"],["9f4f","\u51FE\u{21F0F}\u5D8E\u9703\u{21DD1}\u9E81\u904C\u7B1F\u9B02\u5CD1\u7BA3\u6268\u6335\u9AFF\u7BCF\u9B2A\u7C7E\u9B2E\u7C42\u7C86\u9C15\u7BFC\u9B09\u9F17\u9C1B\u{2493E}\u9F5A\u5573\u5BC3\u4FFD\u9E98\u4FF2\u5260\u3E06\u52D1\u5767\u5056\u59B7\u5E12\u97C8\u9DAB\u8F5C\u5469\u97B4\u9940\u97BA\u532C\u6130"],["9fa1","\u692C\u53DA\u9C0A\u9D02\u4C3B\u9641\u6980\u50A6\u7546\u{2176D}\u99DA\u5273"],["9fae","\u9159\u9681\u915C"],["9fb2","\u9151\u{28E97}\u637F\u{26D23}\u6ACA\u5611\u918E\u757A\u6285\u{203FC}\u734F\u7C70\u{25C21}\u{23CFD}"],["9fc1","\u{24919}\u76D6\u9B9D\u4E2A\u{20CD4}\u83BE\u8842"],["9fc9","\u5C4A\u69C0\u50ED\u577A\u521F\u5DF5\u4ECE\u6C31\u{201F2}\u4F39\u549C\u54DA\u529A\u8D82\u35FE\u5F0C\u35F3"],["9fdb","\u6B52\u917C\u9FA5\u9B97\u982E\u98B4\u9ABA\u9EA8\u9E84\u717A\u7B14"],["9fe7","\u6BFA\u8818\u7F78"],["9feb","\u5620\u{2A64A}\u8E77\u9F53"],["9ff0","\u8DD4\u8E4F\u9E1C\u8E01\u6282\u{2837D}\u8E28\u8E75\u7AD3\u{24A77}\u7A3E\u78D8\u6CEA\u8A67\u7607"],["a040","\u{28A5A}\u9F26\u6CCE\u87D6\u75C3\u{2A2B2}\u7853\u{2F840}\u8D0C\u72E2\u7371\u8B2D\u7302\u74F1\u8CEB\u{24ABB}\u862F\u5FBA\u88A0\u44B7"],["a055","\u{2183B}\u{26E05}"],["a058","\u8A7E\u{2251B}"],["a05b","\u60FD\u7667\u9AD7\u9D44\u936E\u9B8F\u87F5"],["a063","\u880F\u8CF7\u732C\u9721\u9BB0\u35D6\u72B2\u4C07\u7C51\u994A\u{26159}\u6159\u4C04\u9E96\u617D"],["a073","\u575F\u616F\u62A6\u6239\u62CE\u3A5C\u61E2\u53AA\u{233F5}\u6364\u6802\u35D2"],["a0a1","\u5D57\u{28BC2}\u8FDA\u{28E39}"],["a0a6","\u50D9\u{21D46}\u7906\u5332\u9638\u{20F3B}\u4065"],["a0ae","\u77FE"],["a0b0","\u7CC2\u{25F1A}\u7CDA\u7A2D\u8066\u8063\u7D4D\u7505\u74F2\u8994\u821A\u670C\u8062\u{27486}\u805B\u74F0\u8103\u7724\u8989\u{267CC}\u7553\u{26ED1}\u87A9\u87CE\u81C8\u878C\u8A49\u8CAD\u8B43\u772B\u74F8\u84DA\u3635\u69B2\u8DA6"],["a0d4","\u89A9\u7468\u6DB9\u87C1\u{24011}\u74E7\u3DDB\u7176\u60A4\u619C\u3CD1\u7162\u6077"],["a0e2","\u7F71\u{28B2D}\u7250\u60E9\u4B7E\u5220\u3C18\u{23CC7}\u{25ED7}\u{27656}\u{25531}\u{21944}\u{212FE}\u{29903}\u{26DDC}\u{270AD}\u5CC1\u{261AD}\u{28A0F}\u{23677}\u{200EE}\u{26846}\u{24F0E}\u4562\u5B1F\u{2634C}\u9F50\u9EA6\u{2626B}"],["a3c0","\u2400",31,"\u2421"],["c6a1","\u2460",9,"\u2474",9,"\u2170",9,"\u4E36\u4E3F\u4E85\u4EA0\u5182\u5196\u51AB\u52F9\u5338\u5369\u53B6\u590A\u5B80\u5DDB\u2F33\u5E7F\u5EF4\u5F50\u5F61\u6534\u65E0\u7592\u7676\u8FB5\u96B6\xA8\u02C6\u30FD\u30FE\u309D\u309E\u3003\u4EDD\u3005\u3006\u3007\u30FC\uFF3B\uFF3D\u273D\u3041",23],["c740","\u3059",58,"\u30A1\u30A2\u30A3\u30A4"],["c7a1","\u30A5",81,"\u0410",5,"\u0401\u0416",4],["c840","\u041B",26,"\u0451\u0436",25,"\u21E7\u21B8\u21B9\u31CF\u{200CC}\u4E5A\u{2008A}\u5202\u4491"],["c8a1","\u9FB0\u5188\u9FB1\u{27607}"],["c8cd","\uFFE2\uFFE4\uFF07\uFF02\u3231\u2116\u2121\u309B\u309C\u2E80\u2E84\u2E86\u2E87\u2E88\u2E8A\u2E8C\u2E8D\u2E95\u2E9C\u2E9D\u2EA5\u2EA7\u2EAA\u2EAC\u2EAE\u2EB6\u2EBC\u2EBE\u2EC6\u2ECA\u2ECC\u2ECD\u2ECF\u2ED6\u2ED7\u2EDE\u2EE3"],["c8f5","\u0283\u0250\u025B\u0254\u0275\u0153\xF8\u014B\u028A\u026A"],["f9fe","\uFFED"],["fa40","\u{20547}\u92DB\u{205DF}\u{23FC5}\u854C\u42B5\u73EF\u51B5\u3649\u{24942}\u{289E4}\u9344\u{219DB}\u82EE\u{23CC8}\u783C\u6744\u62DF\u{24933}\u{289AA}\u{202A0}\u{26BB3}\u{21305}\u4FAB\u{224ED}\u5008\u{26D29}\u{27A84}\u{23600}\u{24AB1}\u{22513}\u5029\u{2037E}\u5FA4\u{20380}\u{20347}\u6EDB\u{2041F}\u507D\u5101\u347A\u510E\u986C\u3743\u8416\u{249A4}\u{20487}\u5160\u{233B4}\u516A\u{20BFF}\u{220FC}\u{202E5}\u{22530}\u{2058E}\u{23233}\u{21983}\u5B82\u877D\u{205B3}\u{23C99}\u51B2\u51B8"],["faa1","\u9D34\u51C9\u51CF\u51D1\u3CDC\u51D3\u{24AA6}\u51B3\u51E2\u5342\u51ED\u83CD\u693E\u{2372D}\u5F7B\u520B\u5226\u523C\u52B5\u5257\u5294\u52B9\u52C5\u7C15\u8542\u52E0\u860D\u{26B13}\u5305\u{28ADE}\u5549\u6ED9\u{23F80}\u{20954}\u{23FEC}\u5333\u5344\u{20BE2}\u6CCB\u{21726}\u681B\u73D5\u604A\u3EAA\u38CC\u{216E8}\u71DD\u44A2\u536D\u5374\u{286AB}\u537E\u537F\u{21596}\u{21613}\u77E6\u5393\u{28A9B}\u53A0\u53AB\u53AE\u73A7\u{25772}\u3F59\u739C\u53C1\u53C5\u6C49\u4E49\u57FE\u53D9\u3AAB\u{20B8F}\u53E0\u{23FEB}\u{22DA3}\u53F6\u{20C77}\u5413\u7079\u552B\u6657\u6D5B\u546D\u{26B53}\u{20D74}\u555D\u548F\u54A4\u47A6\u{2170D}\u{20EDD}\u3DB4\u{20D4D}"],["fb40","\u{289BC}\u{22698}\u5547\u4CED\u542F\u7417\u5586\u55A9\u5605\u{218D7}\u{2403A}\u4552\u{24435}\u66B3\u{210B4}\u5637\u66CD\u{2328A}\u66A4\u66AD\u564D\u564F\u78F1\u56F1\u9787\u53FE\u5700\u56EF\u56ED\u{28B66}\u3623\u{2124F}\u5746\u{241A5}\u6C6E\u708B\u5742\u36B1\u{26C7E}\u57E6\u{21416}\u5803\u{21454}\u{24363}\u5826\u{24BF5}\u585C\u58AA\u3561\u58E0\u58DC\u{2123C}\u58FB\u5BFF\u5743\u{2A150}\u{24278}\u93D3\u35A1\u591F\u68A6\u36C3\u6E59"],["fba1","\u{2163E}\u5A24\u5553\u{21692}\u8505\u59C9\u{20D4E}\u{26C81}\u{26D2A}\u{217DC}\u59D9\u{217FB}\u{217B2}\u{26DA6}\u6D71\u{21828}\u{216D5}\u59F9\u{26E45}\u5AAB\u5A63\u36E6\u{249A9}\u5A77\u3708\u5A96\u7465\u5AD3\u{26FA1}\u{22554}\u3D85\u{21911}\u3732\u{216B8}\u5E83\u52D0\u5B76\u6588\u5B7C\u{27A0E}\u4004\u485D\u{20204}\u5BD5\u6160\u{21A34}\u{259CC}\u{205A5}\u5BF3\u5B9D\u4D10\u5C05\u{21B44}\u5C13\u73CE\u5C14\u{21CA5}\u{26B28}\u5C49\u48DD\u5C85\u5CE9\u5CEF\u5D8B\u{21DF9}\u{21E37}\u5D10\u5D18\u5D46\u{21EA4}\u5CBA\u5DD7\u82FC\u382D\u{24901}\u{22049}\u{22173}\u8287\u3836\u3BC2\u5E2E\u6A8A\u5E75\u5E7A\u{244BC}\u{20CD3}\u53A6\u4EB7\u5ED0\u53A8\u{21771}\u5E09\u5EF4\u{28482}"],["fc40","\u5EF9\u5EFB\u38A0\u5EFC\u683E\u941B\u5F0D\u{201C1}\u{2F894}\u3ADE\u48AE\u{2133A}\u5F3A\u{26888}\u{223D0}\u5F58\u{22471}\u5F63\u97BD\u{26E6E}\u5F72\u9340\u{28A36}\u5FA7\u5DB6\u3D5F\u{25250}\u{21F6A}\u{270F8}\u{22668}\u91D6\u{2029E}\u{28A29}\u6031\u6685\u{21877}\u3963\u3DC7\u3639\u5790\u{227B4}\u7971\u3E40\u609E\u60A4\u60B3\u{24982}\u{2498F}\u{27A53}\u74A4\u50E1\u5AA0\u6164\u8424\u6142\u{2F8A6}\u{26ED2}\u6181\u51F4\u{20656}\u6187\u5BAA\u{23FB7}"],["fca1","\u{2285F}\u61D3\u{28B9D}\u{2995D}\u61D0\u3932\u{22980}\u{228C1}\u6023\u615C\u651E\u638B\u{20118}\u62C5\u{21770}\u62D5\u{22E0D}\u636C\u{249DF}\u3A17\u6438\u63F8\u{2138E}\u{217FC}\u6490\u6F8A\u{22E36}\u9814\u{2408C}\u{2571D}\u64E1\u64E5\u947B\u3A66\u643A\u3A57\u654D\u6F16\u{24A28}\u{24A23}\u6585\u656D\u655F\u{2307E}\u65B5\u{24940}\u4B37\u65D1\u40D8\u{21829}\u65E0\u65E3\u5FDF\u{23400}\u6618\u{231F7}\u{231F8}\u6644\u{231A4}\u{231A5}\u664B\u{20E75}\u6667\u{251E6}\u6673\u6674\u{21E3D}\u{23231}\u{285F4}\u{231C8}\u{25313}\u77C5\u{228F7}\u99A4\u6702\u{2439C}\u{24A21}\u3B2B\u69FA\u{237C2}\u675E\u6767\u6762\u{241CD}\u{290ED}\u67D7\u44E9\u6822\u6E50\u923C\u6801\u{233E6}\u{26DA0}\u685D"],["fd40","\u{2346F}\u69E1\u6A0B\u{28ADF}\u6973\u68C3\u{235CD}\u6901\u6900\u3D32\u3A01\u{2363C}\u3B80\u67AC\u6961\u{28A4A}\u42FC\u6936\u6998\u3BA1\u{203C9}\u8363\u5090\u69F9\u{23659}\u{2212A}\u6A45\u{23703}\u6A9D\u3BF3\u67B1\u6AC8\u{2919C}\u3C0D\u6B1D\u{20923}\u60DE\u6B35\u6B74\u{227CD}\u6EB5\u{23ADB}\u{203B5}\u{21958}\u3740\u5421\u{23B5A}\u6BE1\u{23EFC}\u6BDC\u6C37\u{2248B}\u{248F1}\u{26B51}\u6C5A\u8226\u6C79\u{23DBC}\u44C5\u{23DBD}\u{241A4}\u{2490C}\u{24900}"],["fda1","\u{23CC9}\u36E5\u3CEB\u{20D32}\u9B83\u{231F9}\u{22491}\u7F8F\u6837\u{26D25}\u{26DA1}\u{26DEB}\u6D96\u6D5C\u6E7C\u6F04\u{2497F}\u{24085}\u{26E72}\u8533\u{26F74}\u51C7\u6C9C\u6E1D\u842E\u{28B21}\u6E2F\u{23E2F}\u7453\u{23F82}\u79CC\u6E4F\u5A91\u{2304B}\u6FF8\u370D\u6F9D\u{23E30}\u6EFA\u{21497}\u{2403D}\u4555\u93F0\u6F44\u6F5C\u3D4E\u6F74\u{29170}\u3D3B\u6F9F\u{24144}\u6FD3\u{24091}\u{24155}\u{24039}\u{23FF0}\u{23FB4}\u{2413F}\u51DF\u{24156}\u{24157}\u{24140}\u{261DD}\u704B\u707E\u70A7\u7081\u70CC\u70D5\u70D6\u70DF\u4104\u3DE8\u71B4\u7196\u{24277}\u712B\u7145\u5A88\u714A\u716E\u5C9C\u{24365}\u714F\u9362\u{242C1}\u712C\u{2445A}\u{24A27}\u{24A22}\u71BA\u{28BE8}\u70BD\u720E"],["fe40","\u9442\u7215\u5911\u9443\u7224\u9341\u{25605}\u722E\u7240\u{24974}\u68BD\u7255\u7257\u3E55\u{23044}\u680D\u6F3D\u7282\u732A\u732B\u{24823}\u{2882B}\u48ED\u{28804}\u7328\u732E\u73CF\u73AA\u{20C3A}\u{26A2E}\u73C9\u7449\u{241E2}\u{216E7}\u{24A24}\u6623\u36C5\u{249B7}\u{2498D}\u{249FB}\u73F7\u7415\u6903\u{24A26}\u7439\u{205C3}\u3ED7\u745C\u{228AD}\u7460\u{28EB2}\u7447\u73E4\u7476\u83B9\u746C\u3730\u7474\u93F1\u6A2C\u7482\u4953\u{24A8C}"],["fea1","\u{2415F}\u{24A79}\u{28B8F}\u5B46\u{28C03}\u{2189E}\u74C8\u{21988}\u750E\u74E9\u751E\u{28ED9}\u{21A4B}\u5BD7\u{28EAC}\u9385\u754D\u754A\u7567\u756E\u{24F82}\u3F04\u{24D13}\u758E\u745D\u759E\u75B4\u7602\u762C\u7651\u764F\u766F\u7676\u{263F5}\u7690\u81EF\u37F8\u{26911}\u{2690E}\u76A1\u76A5\u76B7\u76CC\u{26F9F}\u8462\u{2509D}\u{2517D}\u{21E1C}\u771E\u7726\u7740\u64AF\u{25220}\u7758\u{232AC}\u77AF\u{28964}\u{28968}\u{216C1}\u77F4\u7809\u{21376}\u{24A12}\u68CA\u78AF\u78C7\u78D3\u96A5\u792E\u{255E0}\u78D7\u7934\u78B1\u{2760C}\u8FB8\u8884\u{28B2B}\u{26083}\u{2261C}\u7986\u8900\u6902\u7980\u{25857}\u799D\u{27B39}\u793C\u79A9\u6E2A\u{27126}\u3EA8\u79C6\u{2910D}\u79D4"]]});var rM=T((AIe,tM)=>{"use strict";tM.exports={shiftjis:{type:"_dbcs",table:function(){return JN()},encodeAdd:{"\xA5":92,"\u203E":126},encodeSkipVals:[{from:60736,to:63808}]},csshiftjis:"shiftjis",mskanji:"shiftjis",sjis:"shiftjis",windows31j:"shiftjis",ms31j:"shiftjis",xsjis:"shiftjis",windows932:"shiftjis",ms932:"shiftjis",932:"shiftjis",cp932:"shiftjis",eucjp:{type:"_dbcs",table:function(){return XN()},encodeAdd:{"\xA5":92,"\u203E":126}},gb2312:"cp936",gb231280:"cp936",gb23121980:"cp936",csgb2312:"cp936",csiso58gb231280:"cp936",euccn:"cp936",windows936:"cp936",ms936:"cp936",936:"cp936",cp936:{type:"_dbcs",table:function(){return lh()}},gbk:{type:"_dbcs",table:function(){return lh().concat(zw())}},xgbk:"gbk",isoir58:"gbk",gb18030:{type:"_dbcs",table:function(){return lh().concat(zw())},gb18030:function(){return YN()},encodeSkipVals:[128],encodeAdd:{"\u20AC":41699}},chinese:"gb18030",windows949:"cp949",ms949:"cp949",949:"cp949",cp949:{type:"_dbcs",table:function(){return QN()}},cseuckr:"cp949",csksc56011987:"cp949",euckr:"cp949",isoir149:"cp949",korean:"cp949",ksc56011987:"cp949",ksc56011989:"cp949",ksc5601:"cp949",windows950:"cp950",ms950:"cp950",950:"cp950",cp950:{type:"_dbcs",table:function(){return Lw()}},big5:"big5hkscs",big5hkscs:{type:"_dbcs",table:function(){return Lw().concat(eM())},encodeSkipVals:[41676]},cnbig5:"big5hkscs",csbig5:"big5hkscs",xxbig5:"big5hkscs"}});var sM=T((iM,sc)=>{"use strict";var nM=[DN(),zN(),UN(),FN(),ZN(),VN(),KN(),rM()];for(dh=0;dh{"use strict";var oM=require("buffer").Buffer,mh=require("stream").Transform;aM.exports=function(t){t.encodeStream=function(r,n){return new $o(t.getEncoder(r,n),n)},t.decodeStream=function(r,n){return new As(t.getDecoder(r,n),n)},t.supportsStreams=!0,t.IconvLiteEncoderStream=$o,t.IconvLiteDecoderStream=As,t._collect=As.prototype.collect};function $o(t,e){this.conv=t,e=e||{},e.decodeStrings=!1,mh.call(this,e)}$o.prototype=Object.create(mh.prototype,{constructor:{value:$o}});$o.prototype._transform=function(t,e,r){if(typeof t!="string")return r(new Error("Iconv encoding stream needs strings as its input."));try{var n=this.conv.write(t);n&&n.length&&this.push(n),r()}catch(i){r(i)}};$o.prototype._flush=function(t){try{var e=this.conv.end();e&&e.length&&this.push(e),t()}catch(r){t(r)}};$o.prototype.collect=function(t){var e=[];return this.on("error",t),this.on("data",function(r){e.push(r)}),this.on("end",function(){t(null,oM.concat(e))}),this};function As(t,e){this.conv=t,e=e||{},e.encoding=this.encoding="utf8",mh.call(this,e)}As.prototype=Object.create(mh.prototype,{constructor:{value:As}});As.prototype._transform=function(t,e,r){if(!oM.isBuffer(t))return r(new Error("Iconv decoding stream needs buffers as its input."));try{var n=this.conv.write(t);n&&n.length&&this.push(n,this.encoding),r()}catch(i){r(i)}};As.prototype._flush=function(t){try{var e=this.conv.end();e&&e.length&&this.push(e,this.encoding),t()}catch(r){t(r)}};As.prototype.collect=function(t){var e="";return this.on("error",t),this.on("data",function(r){e+=r}),this.on("end",function(){t(null,e)}),this}});var lM=T((MIe,uM)=>{"use strict";var Gt=require("buffer").Buffer;uM.exports=function(t){var e=void 0;t.supportsNodeEncodingsExtension=!(Gt.from||new Gt(0)instanceof Uint8Array),t.extendNodeEncodings=function(){if(!e){if(e={},!t.supportsNodeEncodingsExtension){console.error("ACTION NEEDED: require('iconv-lite').extendNodeEncodings() is not supported in your version of Node"),console.error("See more info at https://github.com/ashtuchkin/iconv-lite/wiki/Node-v4-compatibility");return}var n={hex:!0,utf8:!0,"utf-8":!0,ascii:!0,binary:!0,base64:!0,ucs2:!0,"ucs-2":!0,utf16le:!0,"utf-16le":!0};Gt.isNativeEncoding=function(o){return o&&n[o.toLowerCase()]};var i=require("buffer").SlowBuffer;if(e.SlowBufferToString=i.prototype.toString,i.prototype.toString=function(o,a,c){return o=String(o||"utf8").toLowerCase(),Gt.isNativeEncoding(o)?e.SlowBufferToString.call(this,o,a,c):(typeof a>"u"&&(a=0),typeof c>"u"&&(c=this.length),t.decode(this.slice(a,c),o))},e.SlowBufferWrite=i.prototype.write,i.prototype.write=function(o,a,c,u){if(isFinite(a))isFinite(c)||(u=c,c=void 0);else{var l=u;u=a,a=c,c=l}a=+a||0;var d=this.length-a;if(c?(c=+c,c>d&&(c=d)):c=d,u=String(u||"utf8").toLowerCase(),Gt.isNativeEncoding(u))return e.SlowBufferWrite.call(this,o,a,c,u);if(o.length>0&&(c<0||a<0))throw new RangeError("attempt to write beyond buffer bounds");var p=t.encode(o,u);return p.length"u"&&(a=0),typeof c>"u"&&(c=this.length),t.decode(this.slice(a,c),o))},e.BufferWrite=Gt.prototype.write,Gt.prototype.write=function(o,a,c,u){var l=a,d=c,p=u;if(isFinite(a))isFinite(c)||(u=c,c=void 0);else{var m=u;u=a,a=c,c=m}if(u=String(u||"utf8").toLowerCase(),Gt.isNativeEncoding(u))return e.BufferWrite.call(this,o,l,d,p);a=+a||0;var f=this.length-a;if(c?(c=+c,c>f&&(c=f)):c=f,o.length>0&&(c<0||a<0))throw new RangeError("attempt to write beyond buffer bounds");var g=t.encode(o,u);return g.length{"use strict";var pM=Eo().Buffer,mM=AN(),ut=fM.exports;ut.encodings=null;ut.defaultCharUnicode="\uFFFD";ut.defaultCharSingleByte="?";ut.encode=function(e,r,n){e=""+(e||"");var i=ut.getEncoder(r,n),s=i.write(e),o=i.end();return o&&o.length>0?pM.concat([s,o]):s};ut.decode=function(e,r,n){typeof e=="string"&&(ut.skipDecodeWarning||(console.error("Iconv-lite warning: decode()-ing strings is deprecated. Refer to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding"),ut.skipDecodeWarning=!0),e=pM.from(""+(e||""),"binary"));var i=ut.getDecoder(r,n),s=i.write(e),o=i.end();return o?s+o:s};ut.encodingExists=function(e){try{return ut.getCodec(e),!0}catch{return!1}};ut.toEncoding=ut.encode;ut.fromEncoding=ut.decode;ut._codecDataCache={};ut.getCodec=function(e){ut.encodings||(ut.encodings=sM());for(var r=ut._canonicalizeEncoding(e),n={};;){var i=ut._codecDataCache[r];if(i)return i;var s=ut.encodings[r];switch(typeof s){case"string":r=s;break;case"object":for(var o in s)n[o]=s[o];n.encodingName||(n.encodingName=r),r=s.type;break;case"function":return n.encodingName||(n.encodingName=r),i=new s(n,ut),ut._codecDataCache[n.encodingName]=i,i;default:throw new Error("Encoding not recognized: '"+e+"' (searched as: '"+r+"')")}}};ut._canonicalizeEncoding=function(t){return(""+t).toLowerCase().replace(/:\d{4}$|[^0-9a-z]/g,"")};ut.getEncoder=function(e,r){var n=ut.getCodec(e),i=new n.encoder(r,n);return n.bomAware&&r&&r.addBOM&&(i=new mM.PrependBOM(i,r)),i};ut.getDecoder=function(e,r){var n=ut.getCodec(e),i=new n.decoder(r,n);return n.bomAware&&!(r&&r.stripBOM===!1)&&(i=new mM.StripBOM(i,r)),i};var dM=typeof process<"u"&&process.versions&&process.versions.node;dM&&(Uw=dM.split(".").map(Number),(Uw[0]>0||Uw[1]>=10)&&cM()(ut),lM()(ut));var Uw});var fh=T((jIe,hM)=>{"use strict";hM.exports=$X;function kX(t){for(var e=t.listeners("data"),r=0;r{"use strict";var gM=NX(),TX=Ya(),To=So(),IX=qw(),RX=fh();yM.exports=CX;var OX=/^Encoding not recognized: /;function PX(t){if(!t)return null;try{return IX.getDecoder(t)}catch(e){throw OX.test(e.message)?To(415,"specified encoding unsupported",{encoding:t,type:"encoding.unsupported"}):e}}function CX(t,e,r){var n=r,i=e||{};if(t===void 0)throw new TypeError("argument stream is required");if(typeof t!="object"||t===null||typeof t.on!="function")throw new TypeError("argument stream must be a stream");if((e===!0||typeof e=="string")&&(i={encoding:e}),typeof e=="function"&&(n=e,i={}),n!==void 0&&typeof n!="function")throw new TypeError("argument callback must be a function");if(!n&&!global.Promise)throw new TypeError("argument callback is required");var s=i.encoding!==!0?i.encoding:"utf-8",o=TX.parse(i.limit),a=i.length!=null&&!isNaN(i.length)?parseInt(i.length,10):null;return n?vM(t,s,a,o,MX(n)):new Promise(function(u,l){vM(t,s,a,o,function(p,m){if(p)return l(p);u(m)})})}function AX(t){RX(t),typeof t.pause=="function"&&t.pause()}function vM(t,e,r,n,i){var s=!1,o=!0;if(n!==null&&r!==null&&r>n)return d(To(413,"request entity too large",{expected:r,length:r,limit:n,type:"entity.too.large"}));var a=t._readableState;if(t._decoder||a&&(a.encoding||a.decoder))return d(To(500,"stream encoding should not be set",{type:"stream.encoding.set"}));if(typeof t.readable<"u"&&!t.readable)return d(To(500,"stream is not readable",{type:"stream.not.readable"}));var c=0,u;try{u=PX(e)}catch(h){return d(h)}var l=u?"":[];t.on("aborted",p),t.on("close",g),t.on("data",m),t.on("end",f),t.on("error",f),o=!1;function d(){for(var h=new Array(arguments.length),v=0;vn?d(To(413,"request entity too large",{limit:n,received:c,type:"entity.too.large"})):u?l+=u.write(h):l.push(h))}function f(h){if(!s){if(h)return d(h);if(r!==null&&c!==r)d(To(400,"request size did not match content length",{expected:r,length:r,received:c,type:"request.size.invalid"}));else{var v=u?l+(u.end()||""):Buffer.concat(l);d(null,v)}}}function g(){l=null,t.removeListener("aborted",p),t.removeListener("data",m),t.removeListener("end",f),t.removeListener("error",f),t.removeListener("close",g)}}function NX(){try{return require("async_hooks")}catch{return{}}}function MX(t){var e;return gM.AsyncResource&&(e=new gM.AsyncResource(t.name||"bound-anonymous-fn")),!e||!e.runInAsyncScope?t:e.runInAsyncScope.bind(e,t,null)}});var xM=T((LIe,bM)=>{"use strict";bM.exports=DX;function DX(t,e){if(!Array.isArray(t))throw new TypeError("arg must be an array of [ee, events...] arrays");for(var r=[],n=0;n{"use strict";Fw.exports=LX;Fw.exports.isFinished=EM;var SM=ZX(),wM=xM(),zX=typeof setImmediate=="function"?setImmediate:function(t){process.nextTick(t.bind.apply(t,arguments))};function LX(t,e){return EM(t)!==!1?(zX(e,null,t),t):(qX(t,BX(e)),t)}function EM(t){var e=t.socket;if(typeof t.finished=="boolean")return!!(t.finished||e&&!e.writable);if(typeof t.complete=="boolean")return!!(t.upgrade||!e||!e.readable||t.complete&&!t.readable)}function UX(t,e){var r,n,i=!1;function s(a){r.cancel(),n.cancel(),i=!0,e(a)}r=n=wM([[t,"end","finish"]],s);function o(a){t.removeListener("socket",o),!i&&r===n&&(n=wM([[a,"error","close"]],s))}if(t.socket){o(t.socket);return}t.on("socket",o),t.socket===void 0&&HX(t,o)}function qX(t,e){var r=t.__onFinished;(!r||!r.queue)&&(r=t.__onFinished=FX(t),UX(t,r)),r.queue.push(e)}function FX(t){function e(r){if(t.__onFinished===e&&(t.__onFinished=null),!!e.queue){var n=e.queue;e.queue=null;for(var i=0;i{"use strict";var Ns=So(),VX=pw(),GX=_M(),kM=qw(),$M=od(),WX=fh(),TM=require("zlib");IM.exports=KX;function KX(t,e,r,n,i,s){var o,a=s,c;t._body=!0;var u=a.encoding!==null?a.encoding:null,l=a.verify;try{c=JX(t,i,a.inflate),o=c.length,c.length=void 0}catch(d){return r(d)}if(a.length=o,a.encoding=l?null:u,a.encoding===null&&u!==null&&!kM.encodingExists(u))return r(Ns(415,'unsupported charset "'+u.toUpperCase()+'"',{charset:u.toLowerCase(),type:"charset.unsupported"}));i("read body"),GX(c,a,function(d,p){if(d){var m;d.type==="encoding.unsupported"?m=Ns(415,'unsupported charset "'+u.toUpperCase()+'"',{charset:u.toLowerCase(),type:"charset.unsupported"}):m=Ns(400,d),c!==t&&(WX(t),VX(c,!0)),XX(t,function(){r(Ns(400,m))});return}if(l)try{i("verify body"),l(t,e,p,u)}catch(g){r(Ns(403,g,{body:p,type:g.type||"entity.verify.failed"}));return}var f=p;try{i("parse body"),f=typeof p!="string"&&u!==null?kM.decode(p,u):p,t.body=n(f)}catch(g){r(Ns(400,g,{body:f,type:g.type||"entity.parse.failed"}));return}r()})}function JX(t,e,r){var n=(t.headers["content-encoding"]||"identity").toLowerCase(),i=t.headers["content-length"],s;if(e('content-encoding "%s"',n),r===!1&&n!=="identity")throw Ns(415,"content encoding unsupported",{encoding:n,type:"encoding.unsupported"});switch(n){case"deflate":s=TM.createInflate(),e("inflate body"),t.pipe(s);break;case"gzip":s=TM.createGunzip(),e("gunzip body"),t.pipe(s);break;case"identity":s=t,s.length=i;break;default:throw Ns(415,'unsupported content encoding "'+n+'"',{encoding:n,type:"encoding.unsupported"})}return s}function XX(t,e){$M.isFinished(t)?e(null):($M(t,e),t.resume())}});var CM=T(Hw=>{var RM=/; *([!#$%&'\*\+\-\.0-9A-Z\^_`a-z\|~]+) *= *("(?:[ !\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u0020-\u007e])*"|[!#$%&'\*\+\-\.0-9A-Z\^_`a-z\|~]+) */g,YX=/^[\u0020-\u007e\u0080-\u00ff]+$/,PM=/^[!#$%&'\*\+\-\.0-9A-Z\^_`a-z\|~]+$/,QX=/\\([\u0000-\u007f])/g,eY=/([\\"])/g,tY=/^[A-Za-z0-9][A-Za-z0-9!#$&^_.-]{0,126}$/,OM=/^[A-Za-z0-9][A-Za-z0-9!#$&^_-]{0,126}$/,rY=/^ *([A-Za-z0-9][A-Za-z0-9!#$&^_-]{0,126})\/([A-Za-z0-9][A-Za-z0-9!#$&^_.+-]{0,126}) *$/;Hw.format=nY;Hw.parse=iY;function nY(t){if(!t||typeof t!="object")throw new TypeError("argument obj is required");var e=t.parameters,r=t.subtype,n=t.suffix,i=t.type;if(!i||!OM.test(i))throw new TypeError("invalid type");if(!r||!tY.test(r))throw new TypeError("invalid subtype");var s=i+"/"+r;if(n){if(!OM.test(n))throw new TypeError("invalid suffix");s+="+"+n}if(e&&typeof e=="object")for(var o,a=Object.keys(e).sort(),c=0;c0&&!YX.test(e))throw new TypeError("invalid parameter value");return'"'+e.replace(eY,"\\$1")+'"'}function aY(t){var e=rY.exec(t.toLowerCase());if(!e)throw new TypeError("invalid media type");var r=e[1],n=e[2],i,s=n.lastIndexOf("+");s!==-1&&(i=n.substr(s+1),n=n.substr(0,s));var o={type:r,subtype:n,suffix:i};return o}});var AM=T((HIe,cY)=>{cY.exports={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["es","ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:!0},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:!0},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.slides":{source:"iana"},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hl7cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.youtube.yt":{source:"iana"},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/hsj2":{source:"iana",extensions:["hsj2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/step":{source:"iana"},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana"},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}}});var MM=T((ZIe,NM)=>{NM.exports=AM()});var Zw=T(nn=>{"use strict";var hh=MM(),uY=require("path").extname,DM=/^\s*([^;\s]*)(?:;|\s|$)/,lY=/^text\//i;nn.charset=jM;nn.charsets={lookup:jM};nn.contentType=dY;nn.extension=pY;nn.extensions=Object.create(null);nn.lookup=mY;nn.types=Object.create(null);fY(nn.extensions,nn.types);function jM(t){if(!t||typeof t!="string")return!1;var e=DM.exec(t),r=e&&hh[e[1].toLowerCase()];return r&&r.charset?r.charset:e&&lY.test(e[1])?"UTF-8":!1}function dY(t){if(!t||typeof t!="string")return!1;var e=t.indexOf("/")===-1?nn.lookup(t):t;if(!e)return!1;if(e.indexOf("charset")===-1){var r=nn.charset(e);r&&(e+="; charset="+r.toLowerCase())}return e}function pY(t){if(!t||typeof t!="string")return!1;var e=DM.exec(t),r=e&&nn.extensions[e[1].toLowerCase()];return!r||!r.length?!1:r[0]}function mY(t){if(!t||typeof t!="string")return!1;var e=uY("x."+t).toLowerCase().substr(1);return e&&nn.types[e]||!1}function fY(t,e){var r=["nginx","apache",void 0,"iana"];Object.keys(hh).forEach(function(i){var s=hh[i],o=s.extensions;if(!(!o||!o.length)){t[i]=o;for(var a=0;al||u===l&&e[c].substr(0,12)==="application/"))continue}e[c]=i}}})}});var ac=T((VIe,oc)=>{"use strict";var zM=CM(),hY=Zw();oc.exports=gY;oc.exports.is=LM;oc.exports.hasBody=UM;oc.exports.normalize=qM;oc.exports.match=FM;function LM(t,e){var r,n=e,i=yY(t);if(!i)return!1;if(n&&!Array.isArray(n))for(n=new Array(arguments.length-1),r=0;r2){r=new Array(arguments.length-1);for(var n=0;n{"use strict";var _Y=Ya(),bY=Kl(),xY=So(),Ms=Cn()("body-parser:json"),SY=ad(),ZM=ac();VM.exports=kY;var wY=/^[\x20\x09\x0a\x0d]*([^\x20\x09\x0a\x0d])/,HM="#",EY=/#+/g;function kY(t){var e=t||{},r=typeof e.limit!="number"?_Y.parse(e.limit||"100kb"):e.limit,n=e.inflate!==!1,i=e.reviver,s=e.strict!==!1,o=e.type||"application/json",a=e.verify||!1;if(a!==!1&&typeof a!="function")throw new TypeError("option verify must be function");var c=typeof o!="function"?RY(o):o;function u(l){if(l.length===0)return{};if(s){var d=TY(l);if(d!=="{"&&d!=="[")throw Ms("strict violation"),$Y(l,d)}try{return Ms("parse json"),JSON.parse(l,i)}catch(p){throw BM(p,{message:p.message,stack:p.stack})}}return function(d,p,m){if(d._body){Ms("body already parsed"),m();return}if(d.body=d.body||{},!ZM.hasBody(d)){Ms("skip empty body"),m();return}if(Ms("content-type %j",d.headers["content-type"]),!c(d)){Ms("skip parsing"),m();return}var f=IY(d)||"utf-8";if(f.slice(0,4)!=="utf-"){Ms("invalid charset"),m(xY(415,'unsupported charset "'+f.toUpperCase()+'"',{charset:f,type:"charset.unsupported"}));return}SY(d,p,m,u,Ms,{encoding:f,inflate:n,limit:r,verify:a})}}function $Y(t,e){var r=t.indexOf(e),n="";if(r!==-1){n=t.substring(0,r)+HM;for(var i=r+1;i{"use strict";var OY=Ya(),cd=Cn()("body-parser:raw"),PY=ad(),WM=ac();KM.exports=CY;function CY(t){var e=t||{},r=e.inflate!==!1,n=typeof e.limit!="number"?OY.parse(e.limit||"100kb"):e.limit,i=e.type||"application/octet-stream",s=e.verify||!1;if(s!==!1&&typeof s!="function")throw new TypeError("option verify must be function");var o=typeof i!="function"?AY(i):i;function a(c){return c}return function(u,l,d){if(u._body){cd("body already parsed"),d();return}if(u.body=u.body||{},!WM.hasBody(u)){cd("skip empty body"),d();return}if(cd("content-type %j",u.headers["content-type"]),!o(u)){cd("skip parsing"),d();return}PY(u,l,d,a,cd,{encoding:null,inflate:r,limit:n,verify:s})}}function AY(t){return function(r){return!!WM(r,t)}}});var QM=T((KIe,YM)=>{"use strict";var NY=Ya(),MY=Kl(),ud=Cn()("body-parser:text"),DY=ad(),XM=ac();YM.exports=jY;function jY(t){var e=t||{},r=e.defaultCharset||"utf-8",n=e.inflate!==!1,i=typeof e.limit!="number"?NY.parse(e.limit||"100kb"):e.limit,s=e.type||"text/plain",o=e.verify||!1;if(o!==!1&&typeof o!="function")throw new TypeError("option verify must be function");var a=typeof s!="function"?LY(s):s;function c(u){return u}return function(l,d,p){if(l._body){ud("body already parsed"),p();return}if(l.body=l.body||{},!XM.hasBody(l)){ud("skip empty body"),p();return}if(ud("content-type %j",l.headers["content-type"]),!a(l)){ud("skip parsing"),p();return}var m=zY(l)||r;DY(l,d,p,c,ud,{encoding:m,inflate:n,limit:i,verify:o})}}function zY(t){try{return(MY.parse(t).parameters.charset||"").toLowerCase()}catch{return}}function LY(t){return function(r){return!!XM(r,t)}}});var Io=T((JIe,eD)=>{"use strict";eD.exports=TypeError});var rD=T((XIe,tD)=>{tD.exports=require("util").inspect});var fd=T((YIe,SD)=>{var eE=typeof Map=="function"&&Map.prototype,Bw=Object.getOwnPropertyDescriptor&&eE?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,vh=eE&&Bw&&typeof Bw.get=="function"?Bw.get:null,nD=eE&&Map.prototype.forEach,tE=typeof Set=="function"&&Set.prototype,Vw=Object.getOwnPropertyDescriptor&&tE?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,yh=tE&&Vw&&typeof Vw.get=="function"?Vw.get:null,iD=tE&&Set.prototype.forEach,UY=typeof WeakMap=="function"&&WeakMap.prototype,dd=UY?WeakMap.prototype.has:null,qY=typeof WeakSet=="function"&&WeakSet.prototype,pd=qY?WeakSet.prototype.has:null,FY=typeof WeakRef=="function"&&WeakRef.prototype,sD=FY?WeakRef.prototype.deref:null,HY=Boolean.prototype.valueOf,ZY=Object.prototype.toString,BY=Function.prototype.toString,VY=String.prototype.match,rE=String.prototype.slice,Ds=String.prototype.replace,GY=String.prototype.toUpperCase,oD=String.prototype.toLowerCase,hD=RegExp.prototype.test,aD=Array.prototype.concat,wi=Array.prototype.join,WY=Array.prototype.slice,cD=Math.floor,Kw=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Gw=Object.getOwnPropertySymbols,Jw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,cc=typeof Symbol=="function"&&typeof Symbol.iterator=="object",md=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===cc||!0)?Symbol.toStringTag:null,gD=Object.prototype.propertyIsEnumerable,uD=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function lD(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||hD.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-cD(-t):cD(t);if(n!==t){var i=String(n),s=rE.call(e,i.length+1);return Ds.call(i,r,"$&_")+"."+Ds.call(Ds.call(s,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Ds.call(e,r,"$&_")}var Xw=rD(),dD=Xw.custom,pD=_D(dD)?dD:null,vD={__proto__:null,double:'"',single:"'"},KY={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};SD.exports=function t(e,r,n,i){var s=r||{};if(rs(s,"quoteStyle")&&!rs(vD,s.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(rs(s,"maxStringLength")&&(typeof s.maxStringLength=="number"?s.maxStringLength<0&&s.maxStringLength!==1/0:s.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var o=rs(s,"customInspect")?s.customInspect:!0;if(typeof o!="boolean"&&o!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(rs(s,"indent")&&s.indent!==null&&s.indent!==" "&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(rs(s,"numericSeparator")&&typeof s.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=s.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return xD(e,s);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var c=String(e);return a?lD(e,c):c}if(typeof e=="bigint"){var u=String(e)+"n";return a?lD(e,u):u}var l=typeof s.depth>"u"?5:s.depth;if(typeof n>"u"&&(n=0),n>=l&&l>0&&typeof e=="object")return Yw(e)?"[Array]":"[Object]";var d=mQ(s,n);if(typeof i>"u")i=[];else if(bD(i,e)>=0)return"[Circular]";function p(W,j,ae){if(j&&(i=WY.call(i),i.push(j)),ae){var Ne={depth:s.depth};return rs(s,"quoteStyle")&&(Ne.quoteStyle=s.quoteStyle),t(W,Ne,n+1,i)}return t(W,s,n+1,i)}if(typeof e=="function"&&!mD(e)){var m=iQ(e),f=gh(e,p);return"[Function"+(m?": "+m:" (anonymous)")+"]"+(f.length>0?" { "+wi.call(f,", ")+" }":"")}if(_D(e)){var g=cc?Ds.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Jw.call(e);return typeof e=="object"&&!cc?ld(g):g}if(lQ(e)){for(var h="<"+oD.call(String(e.nodeName)),v=e.attributes||[],x=0;x",h}if(Yw(e)){if(e.length===0)return"[]";var b=gh(e,p);return d&&!pQ(b)?"["+Qw(b,d)+"]":"[ "+wi.call(b,", ")+" ]"}if(YY(e)){var _=gh(e,p);return!("cause"in Error.prototype)&&"cause"in e&&!gD.call(e,"cause")?"{ ["+String(e)+"] "+wi.call(aD.call("[cause]: "+p(e.cause),_),", ")+" }":_.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+wi.call(_,", ")+" }"}if(typeof e=="object"&&o){if(pD&&typeof e[pD]=="function"&&Xw)return Xw(e,{depth:l-n});if(o!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(sQ(e)){var S=[];return nD&&nD.call(e,function(W,j){S.push(p(j,e,!0)+" => "+p(W,e))}),fD("Map",vh.call(e),S,d)}if(cQ(e)){var w=[];return iD&&iD.call(e,function(W){w.push(p(W,e))}),fD("Set",yh.call(e),w,d)}if(oQ(e))return Ww("WeakMap");if(uQ(e))return Ww("WeakSet");if(aQ(e))return Ww("WeakRef");if(eQ(e))return ld(p(Number(e)));if(rQ(e))return ld(p(Kw.call(e)));if(tQ(e))return ld(HY.call(e));if(QY(e))return ld(p(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof global<"u"&&e===global)return"{ [object globalThis] }";if(!XY(e)&&!mD(e)){var E=gh(e,p),$=uD?uD(e)===Object.prototype:e instanceof Object||e.constructor===Object,R=e instanceof Object?"":"null prototype",A=!$&&md&&Object(e)===e&&md in e?rE.call(js(e),8,-1):R?"Object":"",N=$||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",U=N+(A||R?"["+wi.call(aD.call([],A||[],R||[]),": ")+"] ":"");return E.length===0?U+"{}":d?U+"{"+Qw(E,d)+"}":U+"{ "+wi.call(E,", ")+" }"}return String(e)};function yD(t,e,r){var n=r.quoteStyle||e,i=vD[n];return i+t+i}function JY(t){return Ds.call(String(t),/"/g,""")}function Ro(t){return!md||!(typeof t=="object"&&(md in t||typeof t[md]<"u"))}function Yw(t){return js(t)==="[object Array]"&&Ro(t)}function XY(t){return js(t)==="[object Date]"&&Ro(t)}function mD(t){return js(t)==="[object RegExp]"&&Ro(t)}function YY(t){return js(t)==="[object Error]"&&Ro(t)}function QY(t){return js(t)==="[object String]"&&Ro(t)}function eQ(t){return js(t)==="[object Number]"&&Ro(t)}function tQ(t){return js(t)==="[object Boolean]"&&Ro(t)}function _D(t){if(cc)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Jw)return!1;try{return Jw.call(t),!0}catch{}return!1}function rQ(t){if(!t||typeof t!="object"||!Kw)return!1;try{return Kw.call(t),!0}catch{}return!1}var nQ=Object.prototype.hasOwnProperty||function(t){return t in this};function rs(t,e){return nQ.call(t,e)}function js(t){return ZY.call(t)}function iQ(t){if(t.name)return t.name;var e=VY.call(BY.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function bD(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;re.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return xD(rE.call(t,0,e.maxStringLength),e)+n}var i=KY[e.quoteStyle||"single"];i.lastIndex=0;var s=Ds.call(Ds.call(t,i,"\\$1"),/[\x00-\x1f]/g,dQ);return yD(s,"single",e)}function dQ(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+GY.call(e.toString(16))}function ld(t){return"Object("+t+")"}function Ww(t){return t+" { ? }"}function fD(t,e,r,n){var i=n?Qw(r,n):wi.call(r,", ");return t+" ("+e+") {"+i+"}"}function pQ(t){for(var e=0;e=0)return!1;return!0}function mQ(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=wi.call(Array(t.indent+1)," ");else return null;return{base:r,prev:wi.call(Array(e+1),r)}}function Qw(t,e){if(t.length===0)return"";var r=` +`+e.prev+e.base;return r+wi.call(t,","+r)+` +`+e.prev}function gh(t,e){var r=Yw(t),n=[];if(r){n.length=t.length;for(var i=0;i{"use strict";var fQ=fd(),hQ=Io(),_h=function(t,e,r){for(var n=t,i;(i=n.next)!=null;n=i)if(i.key===e)return n.next=i.next,r||(i.next=t.next,t.next=i),i},gQ=function(t,e){if(t){var r=_h(t,e);return r&&r.value}},vQ=function(t,e,r){var n=_h(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},yQ=function(t,e){return t?!!_h(t,e):!1},_Q=function(t,e){if(t)return _h(t,e,!0)};wD.exports=function(){var e,r={assert:function(n){if(!r.has(n))throw new hQ("Side channel does not contain "+fQ(n))},delete:function(n){var i=e&&e.next,s=_Q(e,n);return s&&i&&i===s&&(e=void 0),!!s},get:function(n){return gQ(e,n)},has:function(n){return yQ(e,n)},set:function(n,i){e||(e={next:void 0}),vQ(e,n,i)}};return r}});var nE=T((eRe,kD)=>{"use strict";kD.exports=Object});var TD=T((tRe,$D)=>{"use strict";$D.exports=Error});var RD=T((rRe,ID)=>{"use strict";ID.exports=EvalError});var PD=T((nRe,OD)=>{"use strict";OD.exports=RangeError});var AD=T((iRe,CD)=>{"use strict";CD.exports=ReferenceError});var MD=T((sRe,ND)=>{"use strict";ND.exports=SyntaxError});var jD=T((oRe,DD)=>{"use strict";DD.exports=URIError});var LD=T((aRe,zD)=>{"use strict";zD.exports=Math.abs});var qD=T((cRe,UD)=>{"use strict";UD.exports=Math.floor});var HD=T((uRe,FD)=>{"use strict";FD.exports=Math.max});var BD=T((lRe,ZD)=>{"use strict";ZD.exports=Math.min});var GD=T((dRe,VD)=>{"use strict";VD.exports=Math.pow});var KD=T((pRe,WD)=>{"use strict";WD.exports=Math.round});var XD=T((mRe,JD)=>{"use strict";JD.exports=Number.isNaN||function(e){return e!==e}});var QD=T((fRe,YD)=>{"use strict";var bQ=XD();YD.exports=function(e){return bQ(e)||e===0?e:e<0?-1:1}});var tj=T((hRe,ej)=>{"use strict";ej.exports=Object.getOwnPropertyDescriptor});var iE=T((gRe,rj)=>{"use strict";var bh=tj();if(bh)try{bh([],"length")}catch{bh=null}rj.exports=bh});var ij=T((vRe,nj)=>{"use strict";var xh=Object.defineProperty||!1;if(xh)try{xh({},"a",{value:1})}catch{xh=!1}nj.exports=xh});var oj=T((yRe,sj)=>{"use strict";sj.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;e[r]=i;for(var s in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var o=Object.getOwnPropertySymbols(e);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,r);if(a.value!==i||a.enumerable!==!0)return!1}return!0}});var uj=T((_Re,cj)=>{"use strict";var aj=typeof Symbol<"u"&&Symbol,xQ=oj();cj.exports=function(){return typeof aj!="function"||typeof Symbol!="function"||typeof aj("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:xQ()}});var sE=T((bRe,lj)=>{"use strict";lj.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var oE=T((xRe,dj)=>{"use strict";var SQ=nE();dj.exports=SQ.getPrototypeOf||null});var fj=T((SRe,mj)=>{"use strict";var wQ="Function.prototype.bind called on incompatible ",EQ=Object.prototype.toString,kQ=Math.max,$Q="[object Function]",pj=function(e,r){for(var n=[],i=0;i{"use strict";var RQ=fj();hj.exports=Function.prototype.bind||RQ});var Sh=T((ERe,gj)=>{"use strict";gj.exports=Function.prototype.call});var aE=T((kRe,vj)=>{"use strict";vj.exports=Function.prototype.apply});var _j=T(($Re,yj)=>{"use strict";yj.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var xj=T((TRe,bj)=>{"use strict";var OQ=hd(),PQ=aE(),CQ=Sh(),AQ=_j();bj.exports=AQ||OQ.call(CQ,PQ)});var cE=T((IRe,Sj)=>{"use strict";var NQ=hd(),MQ=Io(),DQ=Sh(),jQ=xj();Sj.exports=function(e){if(e.length<1||typeof e[0]!="function")throw new MQ("a function is required");return jQ(NQ,DQ,e)}});var Ij=T((RRe,Tj)=>{"use strict";var zQ=cE(),wj=iE(),kj;try{kj=[].__proto__===Array.prototype}catch(t){if(!t||typeof t!="object"||!("code"in t)||t.code!=="ERR_PROTO_ACCESS")throw t}var uE=!!kj&&wj&&wj(Object.prototype,"__proto__"),$j=Object,Ej=$j.getPrototypeOf;Tj.exports=uE&&typeof uE.get=="function"?zQ([uE.get]):typeof Ej=="function"?function(e){return Ej(e==null?e:$j(e))}:!1});var Aj=T((ORe,Cj)=>{"use strict";var Rj=sE(),Oj=oE(),Pj=Ij();Cj.exports=Rj?function(e){return Rj(e)}:Oj?function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return Oj(e)}:Pj?function(e){return Pj(e)}:null});var Mj=T((PRe,Nj)=>{"use strict";var LQ=Function.prototype.call,UQ=Object.prototype.hasOwnProperty,qQ=hd();Nj.exports=qQ.call(LQ,UQ)});var kh=T((CRe,qj)=>{"use strict";var Je,FQ=nE(),HQ=TD(),ZQ=RD(),BQ=PD(),VQ=AD(),pc=MD(),dc=Io(),GQ=jD(),WQ=LD(),KQ=qD(),JQ=HD(),XQ=BD(),YQ=GD(),QQ=KD(),eee=QD(),Lj=Function,lE=function(t){try{return Lj('"use strict"; return ('+t+").constructor;")()}catch{}},gd=iE(),tee=ij(),dE=function(){throw new dc},ree=gd?(function(){try{return arguments.callee,dE}catch{try{return gd(arguments,"callee").get}catch{return dE}}})():dE,uc=uj()(),ur=Aj(),nee=oE(),iee=sE(),Uj=aE(),vd=Sh(),lc={},see=typeof Uint8Array>"u"||!ur?Je:ur(Uint8Array),Oo={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Je:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Je:ArrayBuffer,"%ArrayIteratorPrototype%":uc&&ur?ur([][Symbol.iterator]()):Je,"%AsyncFromSyncIteratorPrototype%":Je,"%AsyncFunction%":lc,"%AsyncGenerator%":lc,"%AsyncGeneratorFunction%":lc,"%AsyncIteratorPrototype%":lc,"%Atomics%":typeof Atomics>"u"?Je:Atomics,"%BigInt%":typeof BigInt>"u"?Je:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Je:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Je:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Je:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":HQ,"%eval%":eval,"%EvalError%":ZQ,"%Float16Array%":typeof Float16Array>"u"?Je:Float16Array,"%Float32Array%":typeof Float32Array>"u"?Je:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Je:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Je:FinalizationRegistry,"%Function%":Lj,"%GeneratorFunction%":lc,"%Int8Array%":typeof Int8Array>"u"?Je:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Je:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Je:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":uc&&ur?ur(ur([][Symbol.iterator]())):Je,"%JSON%":typeof JSON=="object"?JSON:Je,"%Map%":typeof Map>"u"?Je:Map,"%MapIteratorPrototype%":typeof Map>"u"||!uc||!ur?Je:ur(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":FQ,"%Object.getOwnPropertyDescriptor%":gd,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Je:Promise,"%Proxy%":typeof Proxy>"u"?Je:Proxy,"%RangeError%":BQ,"%ReferenceError%":VQ,"%Reflect%":typeof Reflect>"u"?Je:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Je:Set,"%SetIteratorPrototype%":typeof Set>"u"||!uc||!ur?Je:ur(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Je:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":uc&&ur?ur(""[Symbol.iterator]()):Je,"%Symbol%":uc?Symbol:Je,"%SyntaxError%":pc,"%ThrowTypeError%":ree,"%TypedArray%":see,"%TypeError%":dc,"%Uint8Array%":typeof Uint8Array>"u"?Je:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Je:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Je:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Je:Uint32Array,"%URIError%":GQ,"%WeakMap%":typeof WeakMap>"u"?Je:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Je:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Je:WeakSet,"%Function.prototype.call%":vd,"%Function.prototype.apply%":Uj,"%Object.defineProperty%":tee,"%Object.getPrototypeOf%":nee,"%Math.abs%":WQ,"%Math.floor%":KQ,"%Math.max%":JQ,"%Math.min%":XQ,"%Math.pow%":YQ,"%Math.round%":QQ,"%Math.sign%":eee,"%Reflect.getPrototypeOf%":iee};if(ur)try{null.error}catch(t){Dj=ur(ur(t)),Oo["%Error.prototype%"]=Dj}var Dj,oee=function t(e){var r;if(e==="%AsyncFunction%")r=lE("async function () {}");else if(e==="%GeneratorFunction%")r=lE("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=lE("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var i=t("%AsyncGenerator%");i&&ur&&(r=ur(i.prototype))}return Oo[e]=r,r},jj={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},yd=hd(),wh=Mj(),aee=yd.call(vd,Array.prototype.concat),cee=yd.call(Uj,Array.prototype.splice),zj=yd.call(vd,String.prototype.replace),Eh=yd.call(vd,String.prototype.slice),uee=yd.call(vd,RegExp.prototype.exec),lee=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,dee=/\\(\\)?/g,pee=function(e){var r=Eh(e,0,1),n=Eh(e,-1);if(r==="%"&&n!=="%")throw new pc("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new pc("invalid intrinsic syntax, expected opening `%`");var i=[];return zj(e,lee,function(s,o,a,c){i[i.length]=a?zj(c,dee,"$1"):o||s}),i},mee=function(e,r){var n=e,i;if(wh(jj,n)&&(i=jj[n],n="%"+i[0]+"%"),wh(Oo,n)){var s=Oo[n];if(s===lc&&(s=oee(n)),typeof s>"u"&&!r)throw new dc("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:s}}throw new pc("intrinsic "+e+" does not exist!")};qj.exports=function(e,r){if(typeof e!="string"||e.length===0)throw new dc("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new dc('"allowMissing" argument must be a boolean');if(uee(/^%?[^%]*%?$/,e)===null)throw new pc("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=pee(e),i=n.length>0?n[0]:"",s=mee("%"+i+"%",r),o=s.name,a=s.value,c=!1,u=s.alias;u&&(i=u[0],cee(n,aee([0,1],u)));for(var l=1,d=!0;l=n.length){var g=gd(a,p);d=!!g,d&&"get"in g&&!("originalValue"in g.get)?a=g.get:a=a[p]}else d=wh(a,p),a=a[p];d&&!c&&(Oo[o]=a)}}return a}});var pE=T((ARe,Zj)=>{"use strict";var Fj=kh(),Hj=cE(),fee=Hj([Fj("%String.prototype.indexOf%")]);Zj.exports=function(e,r){var n=Fj(e,!!r);return typeof n=="function"&&fee(e,".prototype.")>-1?Hj([n]):n}});var mE=T((NRe,Vj)=>{"use strict";var hee=kh(),_d=pE(),gee=fd(),vee=Io(),Bj=hee("%Map%",!0),yee=_d("Map.prototype.get",!0),_ee=_d("Map.prototype.set",!0),bee=_d("Map.prototype.has",!0),xee=_d("Map.prototype.delete",!0),See=_d("Map.prototype.size",!0);Vj.exports=!!Bj&&function(){var e,r={assert:function(n){if(!r.has(n))throw new vee("Side channel does not contain "+gee(n))},delete:function(n){if(e){var i=xee(e,n);return See(e)===0&&(e=void 0),i}return!1},get:function(n){if(e)return yee(e,n)},has:function(n){return e?bee(e,n):!1},set:function(n,i){e||(e=new Bj),_ee(e,n,i)}};return r}});var Wj=T((MRe,Gj)=>{"use strict";var wee=kh(),Th=pE(),Eee=fd(),$h=mE(),kee=Io(),mc=wee("%WeakMap%",!0),$ee=Th("WeakMap.prototype.get",!0),Tee=Th("WeakMap.prototype.set",!0),Iee=Th("WeakMap.prototype.has",!0),Ree=Th("WeakMap.prototype.delete",!0);Gj.exports=mc?function(){var e,r,n={assert:function(i){if(!n.has(i))throw new kee("Side channel does not contain "+Eee(i))},delete:function(i){if(mc&&i&&(typeof i=="object"||typeof i=="function")){if(e)return Ree(e,i)}else if($h&&r)return r.delete(i);return!1},get:function(i){return mc&&i&&(typeof i=="object"||typeof i=="function")&&e?$ee(e,i):r&&r.get(i)},has:function(i){return mc&&i&&(typeof i=="object"||typeof i=="function")&&e?Iee(e,i):!!r&&r.has(i)},set:function(i,s){mc&&i&&(typeof i=="object"||typeof i=="function")?(e||(e=new mc),Tee(e,i,s)):$h&&(r||(r=$h()),r.set(i,s))}};return n}:$h});var fE=T((DRe,Kj)=>{"use strict";var Oee=Io(),Pee=fd(),Cee=ED(),Aee=mE(),Nee=Wj(),Mee=Nee||Aee||Cee;Kj.exports=function(){var e,r={assert:function(n){if(!r.has(n))throw new Oee("Side channel does not contain "+Pee(n))},delete:function(n){return!!e&&e.delete(n)},get:function(n){return e&&e.get(n)},has:function(n){return!!e&&e.has(n)},set:function(n,i){e||(e=Mee()),e.set(n,i)}};return r}});var Ih=T((jRe,Jj)=>{"use strict";var Dee=String.prototype.replace,jee=/%20/g,hE={RFC1738:"RFC1738",RFC3986:"RFC3986"};Jj.exports={default:hE.RFC3986,formatters:{RFC1738:function(t){return Dee.call(t,jee,"+")},RFC3986:function(t){return String(t)}},RFC1738:hE.RFC1738,RFC3986:hE.RFC3986}});var _E=T((zRe,Xj)=>{"use strict";var zee=Ih(),Lee=fE(),gE=Object.prototype.hasOwnProperty,Po=Array.isArray,Rh=Lee(),fc=function(e,r){return Rh.set(e,r),e},Co=function(e){return Rh.has(e)},bd=function(e){return Rh.get(e)},yE=function(e,r){Rh.set(e,r)},Ei=(function(){for(var t=[],e=0;e<256;++e)t[t.length]="%"+((e<16?"0":"")+e.toString(16)).toUpperCase();return t})(),Uee=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(Po(n)){for(var i=[],s=0;sn.arrayLimit)return fc(xd(e.concat(r),n),i);e[i]=r}else if(e&&typeof e=="object")if(Co(e)){var s=bd(e)+1;e[s]=r,yE(e,s)}else(n&&(n.plainObjects||n.allowPrototypes)||!gE.call(Object.prototype,r))&&(e[r]=!0);else return[e,r];return e}if(!e||typeof e!="object"){if(Co(r)){for(var o=Object.keys(r),a=n&&n.plainObjects?{__proto__:null,0:e}:{0:e},c=0;cn.arrayLimit?fc(xd(l,n),l.length-1):l}var d=e;return Po(e)&&!Po(r)&&(d=xd(e,n)),Po(e)&&Po(r)?(r.forEach(function(p,m){if(gE.call(e,m)){var f=e[m];f&&typeof f=="object"&&p&&typeof p=="object"?e[m]=t(f,p,n):e[e.length]=p}else e[m]=p}),e):Object.keys(r).reduce(function(p,m){var f=r[m];if(gE.call(p,m)?p[m]=t(p[m],f,n):p[m]=f,Co(r)&&!Co(p)&&fc(p,bd(r)),Co(p)){var g=parseInt(m,10);String(g)===m&&g>=0&&g>bd(p)&&yE(p,g)}return p},d)},Fee=function(e,r){return Object.keys(r).reduce(function(n,i){return n[i]=r[i],n},e)},Hee=function(t,e,r){var n=t.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},vE=1024,Zee=function(e,r,n,i,s){if(e.length===0)return e;var o=e;if(typeof e=="symbol"?o=Symbol.prototype.toString.call(e):typeof e!="string"&&(o=String(e)),n==="iso-8859-1")return escape(o).replace(/%u[0-9a-f]{4}/gi,function(m){return"%26%23"+parseInt(m.slice(2),16)+"%3B"});for(var a="",c=0;c=vE?o.slice(c,c+vE):o,l=[],d=0;d=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||s===zee.RFC1738&&(p===40||p===41)){l[l.length]=u.charAt(d);continue}if(p<128){l[l.length]=Ei[p];continue}if(p<2048){l[l.length]=Ei[192|p>>6]+Ei[128|p&63];continue}if(p<55296||p>=57344){l[l.length]=Ei[224|p>>12]+Ei[128|p>>6&63]+Ei[128|p&63];continue}d+=1,p=65536+((p&1023)<<10|u.charCodeAt(d)&1023),l[l.length]=Ei[240|p>>18]+Ei[128|p>>12&63]+Ei[128|p>>6&63]+Ei[128|p&63]}a+=l.join("")}return a},Bee=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],i=0;in?fc(xd(o,{plainObjects:i}),o.length-1):o},Kee=function(e,r){if(Po(e)){for(var n=[],i=0;i{"use strict";var Qj=fE(),Oh=_E(),Sd=Ih(),Jee=Object.prototype.hasOwnProperty,ez={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},ki=Array.isArray,Xee=Array.prototype.push,tz=function(t,e){Xee.apply(t,ki(e)?e:[e])},Yee=Date.prototype.toISOString,Yj=Sd.default,rr={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Oh.encode,encodeValuesOnly:!1,filter:void 0,format:Yj,formatter:Sd.formatters[Yj],indices:!1,serializeDate:function(e){return Yee.call(e)},skipNulls:!1,strictNullHandling:!1},Qee=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},bE={},ete=function t(e,r,n,i,s,o,a,c,u,l,d,p,m,f,g,h,v,x){for(var b=e,_=x,S=0,w=!1;(_=_.get(bE))!==void 0&&!w;){var E=_.get(e);if(S+=1,typeof E<"u"){if(E===S)throw new RangeError("Cyclic object value");w=!0}typeof _.get(bE)>"u"&&(S=0)}if(typeof l=="function"?b=l(r,b):b instanceof Date?b=m(b):n==="comma"&&ki(b)&&(b=Oh.maybeMap(b,function(K){return K instanceof Date?m(K):K})),b===null){if(o)return u&&!h?u(r,rr.encoder,v,"key",f):r;b=""}if(Qee(b)||Oh.isBuffer(b)){if(u){var $=h?r:u(r,rr.encoder,v,"key",f);return[g($)+"="+g(u(b,rr.encoder,v,"value",f))]}return[g(r)+"="+g(String(b))]}var R=[];if(typeof b>"u")return R;var A;if(n==="comma"&&ki(b))h&&u&&(b=Oh.maybeMap(b,u)),A=[{value:b.length>0?b.join(",")||null:void 0}];else if(ki(l))A=l;else{var N=Object.keys(b);A=d?N.sort(d):N}var U=c?String(r).replace(/\./g,"%2E"):String(r),W=i&&ki(b)&&b.length===1?U+"[]":U;if(s&&ki(b)&&b.length===0)return W+"[]";for(var j=0;j"u"?e.encodeDotInKeys===!0?!0:rr.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:rr.addQueryPrefix,allowDots:a,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:rr.allowEmptyArrays,arrayFormat:o,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:rr.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?rr.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:rr.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:rr.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:rr.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:rr.encodeValuesOnly,filter:s,format:n,formatter:i,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:rr.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:rr.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:rr.strictNullHandling}};rz.exports=function(t,e){var r=t,n=tte(e),i,s;typeof n.filter=="function"?(s=n.filter,r=s("",r)):ki(n.filter)&&(s=n.filter,i=s);var o=[];if(typeof r!="object"||r===null)return"";var a=ez[n.arrayFormat],c=a==="comma"&&n.commaRoundTrip;i||(i=Object.keys(r)),n.sort&&i.sort(n.sort);for(var u=Qj(),l=0;l0?f+m:""}});var oz=T((URe,sz)=>{"use strict";var $i=_E(),Ph=Object.prototype.hasOwnProperty,xE=Array.isArray,Wt={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:$i.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},rte=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},iz=function(t,e,r){if(t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1)return t.split(",");if(e.throwOnLimitExceeded&&r>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(e.arrayLimit===1?"":"s")+" allowed in an array.");return t},nte="utf8=%26%2310003%3B",ite="utf8=%E2%9C%93",ste=function(e,r){var n={__proto__:null},i=r.ignoreQueryPrefix?e.replace(/^\?/,""):e;i=i.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var s=r.parameterLimit===1/0?void 0:r.parameterLimit,o=i.split(r.delimiter,r.throwOnLimitExceeded?s+1:s);if(r.throwOnLimitExceeded&&o.length>s)throw new RangeError("Parameter limit exceeded. Only "+s+" parameter"+(s===1?"":"s")+" allowed.");var a=-1,c,u=r.charset;if(r.charsetSentinel)for(c=0;c-1&&(f=xE(f)?[f]:f),r.comma&&xE(f)&&f.length>r.arrayLimit){if(r.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(r.arrayLimit===1?"":"s")+" allowed in an array.");f=$i.combine([],f,r.arrayLimit,r.plainObjects)}if(m!==null){var g=Ph.call(n,m);g&&r.duplicates==="combine"?n[m]=$i.combine(n[m],f,r.arrayLimit,r.plainObjects):(!g||r.duplicates==="last")&&(n[m]=f)}}return n},ote=function(t,e,r,n){var i=0;if(t.length>0&&t[t.length-1]==="[]"){var s=t.slice(0,-1).join("");i=Array.isArray(e)&&e[s]?e[s].length:0}for(var o=n?e:iz(e,r,i),a=t.length-1;a>=0;--a){var c,u=t[a];if(u==="[]"&&r.parseArrays)$i.isOverflow(o)?c=o:c=r.allowEmptyArrays&&(o===""||r.strictNullHandling&&o===null)?[]:$i.combine([],o,r.arrayLimit,r.plainObjects);else{c=r.plainObjects?{__proto__:null}:{};var l=u.charAt(0)==="["&&u.charAt(u.length-1)==="]"?u.slice(1,-1):u,d=r.decodeDotInKeys?l.replace(/%2E/g,"."):l,p=parseInt(d,10),m=!isNaN(p)&&u!==d&&String(p)===d&&p>=0&&r.parseArrays;if(!r.parseArrays&&d==="")c={0:o};else if(m&&p"u"?Wt.charset:e.charset,n=typeof e.duplicates>"u"?Wt.duplicates:e.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var i=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:Wt.allowDots:!!e.allowDots;return{allowDots:i,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:Wt.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:Wt.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:Wt.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:Wt.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Wt.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:Wt.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:Wt.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:Wt.decoder,delimiter:typeof e.delimiter=="string"||$i.isRegExp(e.delimiter)?e.delimiter:Wt.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:Wt.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:Wt.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:Wt.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:Wt.plainObjects,strictDepth:typeof e.strictDepth=="boolean"?!!e.strictDepth:Wt.strictDepth,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Wt.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded=="boolean"?e.throwOnLimitExceeded:!1}};sz.exports=function(t,e){var r=ute(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?{__proto__:null}:{};for(var n=typeof t=="string"?ste(t,r):t,i=r.plainObjects?{__proto__:null}:{},s=Object.keys(n),o=0;o{"use strict";var lte=nz(),dte=oz(),pte=Ih();az.exports={formats:pte,parse:dte,stringify:lte}});var mz=T((FRe,pz)=>{"use strict";var mte=Ya(),fte=Kl(),Ah=So(),Yn=Cn()("body-parser:urlencoded"),hte=bi()("body-parser"),gte=ad(),uz=ac();pz.exports=vte;var cz=Object.create(null);function vte(t){var e=t||{};e.extended===void 0&&hte("undefined extended: provide extended option");var r=e.extended!==!1,n=e.inflate!==!1,i=typeof e.limit!="number"?mte.parse(e.limit||"100kb"):e.limit,s=e.type||"application/x-www-form-urlencoded",o=e.verify||!1;if(o!==!1&&typeof o!="function")throw new TypeError("option verify must be function");var a=r?yte(e):bte(e),c=typeof s!="function"?xte(s):s;function u(l){return l.length?a(l):{}}return function(d,p,m){if(d._body){Yn("body already parsed"),m();return}if(d.body=d.body||{},!uz.hasBody(d)){Yn("skip empty body"),m();return}if(Yn("content-type %j",d.headers["content-type"]),!c(d)){Yn("skip parsing"),m();return}var f=_te(d)||"utf-8";if(f!=="utf-8"){Yn("invalid charset"),m(Ah(415,'unsupported charset "'+f.toUpperCase()+'"',{charset:f,type:"charset.unsupported"}));return}gte(d,p,m,u,Yn,{debug:Yn,encoding:f,inflate:n,limit:i,verify:o})}}function yte(t){var e=t.parameterLimit!==void 0?t.parameterLimit:1e3,r=t.depth!==void 0?t.depth:32,n=dz("qs");if(isNaN(e)||e<1)throw new TypeError("option parameterLimit must be a positive number");if(isNaN(r)||r<0)throw new TypeError("option depth must be a zero or a positive number");return isFinite(e)&&(e=e|0),function(s){var o=lz(s,e);if(o===void 0)throw Yn("too many parameters"),Ah(413,"too many parameters",{type:"parameters.too.many"});var a=Math.max(100,o);Yn("parse extended urlencoding");try{return n(s,{allowPrototypes:!0,arrayLimit:a,depth:r,strictDepth:!0,parameterLimit:e})}catch(c){throw c instanceof RangeError?Ah(400,"The input exceeded the depth",{type:"querystring.parse.rangeError"}):c}}}function _te(t){try{return(fte.parse(t).parameters.charset||"").toLowerCase()}catch{return}}function lz(t,e){for(var r=0,n=0;(n=t.indexOf("&",n))!==-1;)if(r++,n++,r===e)return;return r}function dz(t){var e=cz[t];if(e!==void 0)return e.parse;switch(t){case"qs":e=Ch();break;case"querystring":e=require("querystring");break}return cz[t]=e,e.parse}function bte(t){var e=t.parameterLimit!==void 0?t.parameterLimit:1e3,r=dz("querystring");if(isNaN(e)||e<1)throw new TypeError("option parameterLimit must be a positive number");return isFinite(e)&&(e=e|0),function(i){var s=lz(i,e);if(s===void 0)throw Yn("too many parameters"),Ah(413,"too many parameters",{type:"parameters.too.many"});return Yn("parse urlencoding"),r(i,void 0,void 0,{maxKeys:e})}}function xte(t){return function(r){return!!uz(r,t)}}});var gz=T((zs,hz)=>{"use strict";var Ste=bi()("body-parser"),fz=Object.create(null);zs=hz.exports=Ste.function(wte,"bodyParser: use individual json/urlencoded middlewares");Object.defineProperty(zs,"json",{configurable:!0,enumerable:!0,get:Nh("json")});Object.defineProperty(zs,"raw",{configurable:!0,enumerable:!0,get:Nh("raw")});Object.defineProperty(zs,"text",{configurable:!0,enumerable:!0,get:Nh("text")});Object.defineProperty(zs,"urlencoded",{configurable:!0,enumerable:!0,get:Nh("urlencoded")});function wte(t){var e=Object.create(t||null,{type:{configurable:!0,enumerable:!0,value:void 0,writable:!0}}),r=zs.urlencoded(e),n=zs.json(e);return function(s,o,a){n(s,o,function(c){if(c)return a(c);r(s,o,a)})}}function Nh(t){return function(){return Ete(t)}}function Ete(t){var e=fz[t];if(e!==void 0)return e;switch(t){case"json":e=GM();break;case"raw":e=JM();break;case"text":e=QM();break;case"urlencoded":e=mz();break}return fz[t]=e}});var yz=T((HRe,vz)=>{"use strict";vz.exports=$te;var kte=Object.prototype.hasOwnProperty;function $te(t,e,r){if(!t)throw new TypeError("argument dest is required");if(!e)throw new TypeError("argument src is required");return r===void 0&&(r=!0),Object.getOwnPropertyNames(e).forEach(function(i){if(!(!r&&kte.call(t,i))){var s=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,s)}}),t}});var wd=T((ZRe,_z)=>{"use strict";_z.exports=Ote;var Tte=/(?:[^\x21\x23-\x3B\x3D\x3F-\x5F\x61-\x7A\x7C\x7E]|%(?:[^0-9A-Fa-f]|[0-9A-Fa-f][^0-9A-Fa-f]|$))+/g,Ite=/(^|[^\uD800-\uDBFF])[\uDC00-\uDFFF]|[\uD800-\uDBFF]([^\uDC00-\uDFFF]|$)/g,Rte="$1\uFFFD$2";function Ote(t){return String(t).replace(Ite,Rte).replace(Tte,encodeURI)}});var Ed=T((BRe,bz)=>{"use strict";var Pte=/["'&<>]/;bz.exports=Cte;function Cte(t){var e=""+t,r=Pte.exec(e);if(!r)return e;var n,i="",s=0,o=0;for(s=r.index;s{"use strict";var Sz=require("url"),xz=Sz.parse,Mh=Sz.Url;SE.exports=wz;SE.exports.original=Ate;function wz(t){var e=t.url;if(e!==void 0){var r=t._parsedUrl;return kz(e,r)?r:(r=Ez(e),r._raw=e,t._parsedUrl=r)}}function Ate(t){var e=t.originalUrl;if(typeof e!="string")return wz(t);var r=t._parsedOriginalUrl;return kz(e,r)?r:(r=Ez(e),r._raw=e,t._parsedOriginalUrl=r)}function Ez(t){if(typeof t!="string"||t.charCodeAt(0)!==47)return xz(t);for(var e=t,r=null,n=null,i=1;i{"use strict";var wE=Cn()("finalhandler"),Nte=wd(),Mte=Ed(),Tz=od(),Dte=hc(),Iz=Xl(),jte=fh(),zte=/\x20{2}/g,Lte=/\n/g,Ute=typeof setImmediate=="function"?setImmediate:function(t){process.nextTick(t.bind.apply(t,arguments))},qte=Tz.isFinished;function Fte(t){var e=Mte(t).replace(Lte,"
").replace(zte,"  ");return` + + + +Error + + +
`+e+`
+ + +`}Rz.exports=Hte;function Hte(t,e,r){var n=r||{},i=n.env||process.env.NODE_ENV||"development",s=n.onerror;return function(o){var a,c,u;if(!o&&$z(e)){wE("cannot 404 after headers sent");return}if(o?(u=Vte(o),u===void 0?u=Wte(e):a=Zte(o),c=Bte(o,u,i)):(u=404,c="Cannot "+t.method+" "+Nte(Gte(t))),wE("default %s",u),o&&s&&Ute(s,o,t,e),$z(e)){wE("cannot %d after headers sent",u),t.socket&&t.socket.destroy();return}Kte(t,e,u,a,c)}}function Zte(t){if(!(!t.headers||typeof t.headers!="object")){for(var e=Object.create(null),r=Object.keys(t.headers),n=0;n=400&&t.status<600)return t.status;if(typeof t.statusCode=="number"&&t.statusCode>=400&&t.statusCode<600)return t.statusCode}function Gte(t){try{return Dte.original(t).pathname}catch{return"resource"}}function Wte(t){var e=t.statusCode;return(typeof e!="number"||e<400||e>599)&&(e=500),e}function $z(t){return typeof t.headersSent!="boolean"?!!t._header:t.headersSent}function Kte(t,e,r,n,i){function s(){var o=Fte(i);if(e.statusCode=r,t.httpVersionMajor<2&&(e.statusMessage=Iz.message[r]),e.removeHeader("Content-Encoding"),e.removeHeader("Content-Language"),e.removeHeader("Content-Range"),Jte(e,n),e.setHeader("Content-Security-Policy","default-src 'none'"),e.setHeader("X-Content-Type-Options","nosniff"),e.setHeader("Content-Type","text/html; charset=utf-8"),e.setHeader("Content-Length",Buffer.byteLength(o,"utf8")),t.method==="HEAD"){e.end();return}e.end(o,"utf8")}if(qte(t)){s();return}jte(t),Tz(t,s),t.resume()}function Jte(t,e){if(e)for(var r=Object.keys(e),n=0;n{"use strict";Az.exports=Xte;function Pz(t,e,r){for(var n=0;n0&&Array.isArray(i)?Pz(i,e,r-1):e.push(i)}return e}function Cz(t,e){for(var r=0;r{Dz.exports=Mz;var Nz=/\\.|\((?:\?<(.*?)>)?(?!\?)/g;function Mz(t,e,r){r=r||{},e=e||[];var n=r.strict,i=r.end!==!1,s=r.sensitive?"":"i",o=r.lookahead!==!1,a=0,c=e.length,u=0,l=0,d=0,p="",m;if(t instanceof RegExp){for(;m=Nz.exec(t.source);)m[0][0]!=="\\"&&e.push({name:m[1]||l++,optional:!1,offset:m.index});return t}if(Array.isArray(t))return t=t.map(function(f){return Mz(f,e,r).source}),new RegExp(t.join("|"),s);if(typeof t!="string")throw new TypeError("path must be a string, array of strings, or regular expression");for(t=t.replace(/\\.|(\/)?(\.)?:(\w+)(\(.*?\))?(\*)?(\?)?|[.*]|\/\(/g,function(f,g,h,v,x,b,_,S){if(f[0]==="\\")return p+=f,d+=2,f;if(f===".")return p+="\\.",a+=1,d+=1,"\\.";if(g||h?p="":p+=t.slice(d,S),d=S+f.length,f==="*")return a+=3,"(.*)";if(f==="/(")return p+="/",a+=2,"/(?:";g=g||"",h=h?"\\.":"",_=_||"",x=x?x.replace(/\\.|\*/,function(E){return E==="*"?"(.*)":E}):p?"((?:(?!/|"+p+").)+?)":"([^/"+h+"]+?)",e.push({name:v,optional:!!_,offset:S+a});var w="(?:"+h+g+x+(b?"((?:[/"+h+"].+?)?)":"")+")"+_;return a+=w.length-f.length,w});m=Nz.exec(t);)m[0][0]!=="\\"&&((c+u===e.length||e[c+u].offset>m.index)&&e.splice(c+u,0,{name:l++,optional:!1,offset:m.index}),u++);return t+=n?"":t[t.length-1]==="/"?"?":"/?",i?t+="$":t[t.length-1]!=="/"&&(t+=o?"(?=/|$)":"(?:/|$)"),new RegExp("^"+t,s)}});var EE=T((JRe,Lz)=>{"use strict";var Yte=jz(),Qte=Cn()("express:router:layer"),ere=Object.prototype.hasOwnProperty;Lz.exports=gc;function gc(t,e,r){if(!(this instanceof gc))return new gc(t,e,r);Qte("new %o",t);var n=e||{};this.handle=r,this.name=r.name||"",this.params=void 0,this.path=void 0,this.regexp=Yte(t,this.keys=[],n),this.regexp.fast_star=t==="*",this.regexp.fast_slash=t==="/"&&n.end===!1}gc.prototype.handle_error=function(e,r,n,i){var s=this.handle;if(s.length!==4)return i(e);try{s(e,r,n,i)}catch(o){i(o)}};gc.prototype.handle_request=function(e,r,n){var i=this.handle;if(i.length>3)return n();try{i(e,r,n)}catch(s){n(s)}};gc.prototype.match=function(e){var r;if(e!=null){if(this.regexp.fast_slash)return this.params={},this.path="",!0;if(this.regexp.fast_star)return this.params={0:zz(e)},this.path=e,!0;r=this.regexp.exec(e)}if(!r)return this.params=void 0,this.path=void 0,!1;this.params={},this.path=r[0];for(var n=this.keys,i=this.params,s=1;s{"use strict";var Uz=require("http");qz.exports=tre()||rre();function tre(){return Uz.METHODS&&Uz.METHODS.map(function(e){return e.toLowerCase()})}function rre(){return["get","post","put","head","delete","options","trace","copy","lock","mkcol","move","purge","propfind","proppatch","unlock","report","mkactivity","checkout","merge","m-search","notify","subscribe","unsubscribe","patch","search","connect"]}});var kE=T((YRe,Gz)=>{"use strict";var Fz=Cn()("express:router:route"),Hz=kd(),Zz=EE(),nre=Dh(),Bz=Array.prototype.slice,Vz=Object.prototype.toString;Gz.exports=vc;function vc(t){this.path=t,this.stack=[],Fz("new %o",t),this.methods={}}vc.prototype._handles_method=function(e){if(this.methods._all)return!0;var r=typeof e=="string"?e.toLowerCase():e;return r==="head"&&!this.methods.head&&(r="get"),!!this.methods[r]};vc.prototype._options=function(){var e=Object.keys(this.methods);this.methods.get&&!this.methods.head&&e.push("head");for(var r=0;r100)return setImmediate(c,u);var l=s[i++];if(!l)return n(u);l.method&&l.method!==a?c(u):u?l.handle_error(u,e,r,c):l.handle_request(e,r,c),o=0}};vc.prototype.all=function(){for(var e=Hz(Bz.call(arguments)),r=0;r{Wz=Kz.exports=function(t,e){if(t&&e)for(var r in e)t[r]=e[r];return t}});var TE=T((QRe,Qz)=>{"use strict";var ire=kE(),Xz=EE(),sre=Dh(),$E=$d(),jh=Cn()("express:router"),Jz=bi()("express"),ore=kd(),are=hc(),cre=Jl(),ure=/^\[object (\S+)\]$/,Yz=Array.prototype.slice,lre=Object.prototype.toString,Ao=Qz.exports=function(t){var e=t||{};function r(n,i,s){r.handle(n,i,s)}return cre(r,Ao),r.params={},r._params=[],r.caseSensitive=e.caseSensitive,r.mergeParams=e.mergeParams,r.strict=e.strict,r.stack=[],r};Ao.param=function(e,r){if(typeof e=="function"){Jz("router.param(fn): Refactor to use path params"),this._params.push(e);return}var n=this._params,i=n.length,s;e[0]===":"&&(Jz("router.param("+JSON.stringify(e)+", fn): Use router.param("+JSON.stringify(e.slice(1))+", fn) instead"),e=e.slice(1));for(var o=0;o=p.length){setImmediate(g,b);return}if(++u>100)return setImmediate(h,x);var _=pre(e);if(_==null)return g(b);for(var S,w,E;w!==!0&&s=a.length)return s();if(l=0,d=a[c++],u=d.name,p=n.params[u],m=o[u],f=r[u],p===void 0||!m)return g();if(f&&(f.match===p||f.error&&f.error!=="route"))return n.params[u]=f.value,g(f.error);r[u]=f={error:null,match:p,value:p},h()}function h(v){var x=m[l++];if(f.value=n.params[d.name],v){f.error=v,g(v);return}if(!x)return g();try{x(n,i,h,p,d.name)}catch(b){h(b)}}g()};Ao.use=function(e){var r=0,n="/";if(typeof e!="function"){for(var i=e;Array.isArray(i)&&i.length!==0;)i=i[0];typeof i!="function"&&(r=1,n=e)}var s=ore(Yz.call(arguments,r));if(s.length===0)throw new TypeError("Router.use() requires a middleware function");for(var o=0;o");var a=new Xz(n,{sensitive:this.caseSensitive,strict:!1,end:!1},e);a.route=void 0,this.stack.push(a)}return this};Ao.route=function(e){var r=new ire(e),n=new Xz(e,{sensitive:this.caseSensitive,strict:this.strict,end:!0},r.dispatch.bind(r));return n.route=r,this.stack.push(n),r};sre.concat("all").forEach(function(t){Ao[t]=function(e){var r=this.route(e);return r[t].apply(r,Yz.call(arguments,1)),this}});function dre(t,e){for(var r=0;r=0;n--)t[n+i]=t[n],n{"use strict";var e4=Jl();t4.init=function(t){return function(r,n,i){t.enabled("x-powered-by")&&n.setHeader("X-Powered-By","Express"),r.res=n,n.req=r,r.next=i,e4(r,t.request),e4(n,t.response),n.locals=n.locals||Object.create(null),i()}}});var IE=T((t1e,n4)=>{"use strict";var bre=$d(),xre=hc(),Sre=Ch();n4.exports=function(e){var r=bre({},e),n=Sre.parse;return typeof e=="function"&&(n=e,r=void 0),r!==void 0&&r.allowPrototypes===void 0&&(r.allowPrototypes=!0),function(s,o,a){if(!s.query){var c=xre(s).query;s.query=n(c,r)}a()}}});var c4=T((r1e,a4)=>{"use strict";var zh=Cn()("express:view"),Td=require("path"),wre=require("fs"),Ere=Td.dirname,o4=Td.basename,kre=Td.extname,i4=Td.join,$re=Td.resolve;a4.exports=Lh;function Lh(t,e){var r=e||{};if(this.defaultEngine=r.defaultEngine,this.ext=kre(t),this.name=t,this.root=r.root,!this.ext&&!this.defaultEngine)throw new Error("No default engine was specified and no extension was provided.");var n=t;if(this.ext||(this.ext=this.defaultEngine[0]!=="."?"."+this.defaultEngine:this.defaultEngine,n+=this.ext),!r.engines[this.ext]){var i=this.ext.slice(1);zh('require "%s"',i);var s=require(i).__express;if(typeof s!="function")throw new Error('Module "'+i+'" does not provide a view engine.');r.engines[this.ext]=s}this.engine=r.engines[this.ext],this.path=this.lookup(n)}Lh.prototype.lookup=function(e){var r,n=[].concat(this.root);zh('lookup "%s"',e);for(var i=0;i{var Uh=require("buffer"),Ti=Uh.Buffer;function u4(t,e){for(var r in t)e[r]=t[r]}Ti.from&&Ti.alloc&&Ti.allocUnsafe&&Ti.allocUnsafeSlow?l4.exports=Uh:(u4(Uh,RE),RE.Buffer=No);function No(t,e,r){return Ti(t,e,r)}No.prototype=Object.create(Ti.prototype);u4(Ti,No);No.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return Ti(t,e,r)};No.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var n=Ti(t);return e!==void 0?typeof r=="string"?n.fill(e,r):n.fill(e):n.fill(0),n};No.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Ti(t)};No.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Uh.SlowBuffer(t)}});var PE=T((n1e,OE)=>{"use strict";OE.exports=jre;OE.exports.parse=qre;var d4=require("path").basename,Tre=qh().Buffer,Ire=/[\x00-\x20"'()*,/:;<=>?@[\\\]{}\x7f]/g,Rre=/%[0-9A-Fa-f]{2}/,Ore=/%([0-9A-Fa-f]{2})/g,m4=/[^\x20-\x7e\xa0-\xff]/g,Pre=/\\([\u0000-\u007f])/g,Cre=/([\\"])/g,p4=/;[\x09\x20]*([!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*=[\x09\x20]*("(?:[\x20!\x23-\x5b\x5d-\x7e\x80-\xff]|\\[\x20-\x7e])*"|[!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*/g,Are=/^[\x20-\x7e\x80-\xff]+$/,Nre=/^[!#$%&'*+.0-9A-Z^_`a-z|~-]+$/,Mre=/^([A-Za-z0-9!#$%&+\-^_`{}~]+)'(?:[A-Za-z]{2,3}(?:-[A-Za-z]{3}){0,3}|[A-Za-z]{4,8}|)'((?:%[0-9A-Fa-f]{2}|[A-Za-z0-9!#$&+.^_`|~-])+)$/,Dre=/^([!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*(?:$|;)/;function jre(t,e){var r=e||{},n=r.type||"attachment",i=zre(t,r.fallback);return Lre(new h4(n,i))}function zre(t,e){if(t!==void 0){var r={};if(typeof t!="string")throw new TypeError("filename must be a string");if(e===void 0&&(e=!0),typeof e!="string"&&typeof e!="boolean")throw new TypeError("fallback must be a string or boolean");if(typeof e=="string"&&m4.test(e))throw new TypeError("fallback must be ISO-8859-1 string");var n=d4(t),i=Are.test(n),s=typeof e!="string"?e&&f4(n):d4(e),o=typeof s=="string"&&s!==n;return(o||!i||Rre.test(n))&&(r["filename*"]=n),(i||o)&&(r.filename=o?s:n),r}}function Lre(t){var e=t.parameters,r=t.type;if(!r||typeof r!="string"||!Nre.test(r))throw new TypeError("invalid type");var n=String(r).toLowerCase();if(e&&typeof e=="object")for(var i,s=Object.keys(e).sort(),o=0;o{"use strict";y4.exports=Wre;var Vre=require("crypto"),g4=require("fs").Stats,v4=Object.prototype.toString;function Gre(t){if(t.length===0)return'"0-2jmj7l5rSw0yVb/vlWAYkK/YBwk"';var e=Vre.createHash("sha1").update(t,"utf8").digest("base64").substring(0,27),r=typeof t=="string"?Buffer.byteLength(t,"utf8"):t.length;return'"'+r.toString(16)+"-"+e+'"'}function Wre(t,e){if(t==null)throw new TypeError("argument entity is required");var r=Kre(t),n=e&&typeof e.weak=="boolean"?e.weak:r;if(!r&&typeof t!="string"&&!Buffer.isBuffer(t))throw new TypeError("argument entity must be string, Buffer, or fs.Stats");var i=r?Jre(t):Gre(t);return n?"W/"+i:i}function Kre(t){return typeof g4=="function"&&t instanceof g4?!0:t&&typeof t=="object"&&"ctime"in t&&v4.call(t.ctime)==="[object Date]"&&"mtime"in t&&v4.call(t.mtime)==="[object Date]"&&"ino"in t&&typeof t.ino=="number"&&"size"in t&&typeof t.size=="number"}function Jre(t){var e=t.mtime.getTime().toString(16),r=t.size.toString(16);return'"'+r+"-"+e+'"'}});var AE=T((s1e,b4)=>{"use strict";var Xre=/(?:^|,)\s*?no-cache\s*?(?:,|$)/;b4.exports=Yre;function Yre(t,e){var r=t["if-modified-since"],n=t["if-none-match"];if(!r&&!n)return!1;var i=t["cache-control"];if(i&&Xre.test(i))return!1;if(n&&n!=="*"){var s=e.etag;if(!s)return!1;for(var o=!0,a=Qre(n),c=0;c{ene.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomsvc+xml":["atomsvc"],"application/bdoc":["bdoc"],"application/ccxml+xml":["ccxml"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/font-tdpfr":["pfr"],"application/font-woff":[],"application/font-woff2":[],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/prs.cww":["cww"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["xfdf"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":[],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":[],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":[],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":[],"application/x-msdownload":["com","bat"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["wmf","emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":[],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"application/xaml+xml":["xaml"],"application/xcap-diff+xml":["xdf"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":[],"audio/adpcm":["adp"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mp3":[],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/wav":["wav"],"audio/wave":[],"audio/webm":["weba"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":[],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":[],"audio/x-wav":[],"audio/xm":["xm"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/apng":["apng"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/g3fax":["g3"],"image/gif":["gif"],"image/ief":["ief"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/ktx":["ktx"],"image/png":["png"],"image/prs.btif":["btif"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/tiff":["tiff","tif"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":[],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/webp":["webp"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":[],"image/x-pcx":["pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/rfc822":["eml","mime"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.vtu":["vtu"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["x3db","x3dbz"],"model/x3d+vrml":["x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/hjson":["hjson"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/prs.lines.tag":["dsc"],"text/richtext":["rtx"],"text/rtf":[],"text/sgml":["sgml","sgm"],"text/slim":["slim","slm"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/vtt":["vtt"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":[],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"text/xml":[],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/jpeg":["jpgv"],"video/jpm":["jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/webm":["webm"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]}});var w4=T((c1e,S4)=>{var a1e=require("path"),tne=require("fs");function _c(){this.types=Object.create(null),this.extensions=Object.create(null)}_c.prototype.define=function(t){for(var e in t){for(var r=t[e],n=0;n{var bc=1e3,xc=bc*60,Sc=xc*60,Mo=Sc*24,rne=Mo*7,nne=Mo*365.25;E4.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return ine(t);if(r==="number"&&isFinite(t))return e.long?one(t):sne(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function ine(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*nne;case"weeks":case"week":case"w":return r*rne;case"days":case"day":case"d":return r*Mo;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Sc;case"minutes":case"minute":case"mins":case"min":case"m":return r*xc;case"seconds":case"second":case"secs":case"sec":case"s":return r*bc;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function sne(t){var e=Math.abs(t);return e>=Mo?Math.round(t/Mo)+"d":e>=Sc?Math.round(t/Sc)+"h":e>=xc?Math.round(t/xc)+"m":e>=bc?Math.round(t/bc)+"s":t+"ms"}function one(t){var e=Math.abs(t);return e>=Mo?Fh(t,e,Mo,"day"):e>=Sc?Fh(t,e,Sc,"hour"):e>=xc?Fh(t,e,xc,"minute"):e>=bc?Fh(t,e,bc,"second"):t+" ms"}function Fh(t,e,r,n){var i=e>=r*1.5;return Math.round(t/r)+" "+n+(i?"s":"")}});var NE=T((l1e,$4)=>{"use strict";$4.exports=ane;function ane(t,e,r){if(typeof e!="string")throw new TypeError("argument str must be a string");var n=e.indexOf("=");if(n===-1)return-2;var i=e.slice(n+1).split(","),s=[];s.type=e.slice(0,n);for(var o=0;ot-1&&(u=t-1),!(isNaN(c)||isNaN(u)||c>u||c<0)&&s.push({start:c,end:u})}return s.length<1?-1:r&&r.combine?cne(s):s}function cne(t){for(var e=t.map(une).sort(pne),r=0,n=1;ns.end+1?e[++r]=i:i.end>s.end&&(s.end=i.end,s.index=Math.min(s.index,i.index))}e.length=r+1;var o=e.sort(dne).map(lne);return o.type=t.type,o}function une(t,e){return{start:t.start,end:t.end,index:e}}function lne(t){return{start:t.start,end:t.end}}function dne(t,e){return t.index-e.index}function pne(t,e){return t.start-e.start}});var Vh=T((d1e,UE)=>{"use strict";var ME=So(),Ht=Cn()("send"),Do=bi()("send"),mne=pw(),fne=wd(),R4=Ed(),hne=CE(),gne=AE(),Zh=require("fs"),jE=w4(),O4=k4(),vne=od(),yne=NE(),Id=require("path"),_ne=Xl(),P4=require("stream"),bne=require("util"),xne=Id.extname,C4=Id.join,DE=Id.normalize,LE=Id.resolve,Hh=Id.sep,Sne=/^ *bytes=/,A4=3600*24*365*1e3,T4=/(?:^|[\\/])\.\.(?:[\\/]|$)/;UE.exports=wne;UE.exports.mime=jE;function wne(t,e,r){return new pt(t,e,r)}function pt(t,e,r){P4.call(this);var n=r||{};if(this.options=n,this.path=e,this.req=t,this._acceptRanges=n.acceptRanges!==void 0?!!n.acceptRanges:!0,this._cacheControl=n.cacheControl!==void 0?!!n.cacheControl:!0,this._etag=n.etag!==void 0?!!n.etag:!0,this._dotfiles=n.dotfiles!==void 0?n.dotfiles:"ignore",this._dotfiles!=="ignore"&&this._dotfiles!=="allow"&&this._dotfiles!=="deny")throw new TypeError('dotfiles option must be "allow", "deny", or "ignore"');this._hidden=!!n.hidden,n.hidden!==void 0&&Do("hidden: use dotfiles: '"+(this._hidden?"allow":"ignore")+"' instead"),n.dotfiles===void 0&&(this._dotfiles=void 0),this._extensions=n.extensions!==void 0?zE(n.extensions,"extensions option"):[],this._immutable=n.immutable!==void 0?!!n.immutable:!1,this._index=n.index!==void 0?zE(n.index,"index option"):["index.html"],this._lastModified=n.lastModified!==void 0?!!n.lastModified:!0,this._maxage=n.maxAge||n.maxage,this._maxage=typeof this._maxage=="string"?O4(this._maxage):Number(this._maxage),this._maxage=isNaN(this._maxage)?0:Math.min(Math.max(0,this._maxage),A4),this._root=n.root?LE(n.root):null,!this._root&&n.from&&this.from(n.from)}bne.inherits(pt,P4);pt.prototype.etag=Do.function(function(e){return this._etag=!!e,Ht("etag %s",this._etag),this},"send.etag: pass etag as option");pt.prototype.hidden=Do.function(function(e){return this._hidden=!!e,this._dotfiles=void 0,Ht("hidden %s",this._hidden),this},"send.hidden: use dotfiles option");pt.prototype.index=Do.function(function(e){var r=e?zE(e,"paths argument"):[];return Ht("index %o",e),this._index=r,this},"send.index: pass index as option");pt.prototype.root=function(e){return this._root=LE(String(e)),Ht("root %s",this._root),this};pt.prototype.from=Do.function(pt.prototype.root,"send.from: pass root as option");pt.prototype.root=Do.function(pt.prototype.root,"send.root: pass root as option");pt.prototype.maxage=Do.function(function(e){return this._maxage=typeof e=="string"?O4(e):Number(e),this._maxage=isNaN(this._maxage)?0:Math.min(Math.max(0,this._maxage),A4),Ht("max-age %d",this._maxage),this},"send.maxage: pass maxAge as option");pt.prototype.error=function(e,r){if(M4(this,"error"))return this.emit("error",Tne(e,r));var n=this.res,i=_ne.message[e]||String(e),s=N4("Error",R4(i));Ene(n),r&&r.headers&&Cne(n,r.headers),n.statusCode=e,n.setHeader("Content-Type","text/html; charset=UTF-8"),n.setHeader("Content-Length",Buffer.byteLength(s)),n.setHeader("Content-Security-Policy","default-src 'none'"),n.setHeader("X-Content-Type-Options","nosniff"),n.end(s)};pt.prototype.hasTrailingSlash=function(){return this.path[this.path.length-1]==="/"};pt.prototype.isConditionalGET=function(){return this.req.headers["if-match"]||this.req.headers["if-unmodified-since"]||this.req.headers["if-none-match"]||this.req.headers["if-modified-since"]};pt.prototype.isPreconditionFailure=function(){var e=this.req,r=this.res,n=e.headers["if-match"];if(n){var i=r.getHeader("ETag");return!i||n!=="*"&&Pne(n).every(function(a){return a!==i&&a!=="W/"+i&&"W/"+a!==i})}var s=Bh(e.headers["if-unmodified-since"]);if(!isNaN(s)){var o=Bh(r.getHeader("Last-Modified"));return isNaN(o)||o>s}return!1};pt.prototype.removeContentHeaderFields=function(){var e=this.res;e.removeHeader("Content-Encoding"),e.removeHeader("Content-Language"),e.removeHeader("Content-Length"),e.removeHeader("Content-Range"),e.removeHeader("Content-Type")};pt.prototype.notModified=function(){var e=this.res;Ht("not modified"),this.removeContentHeaderFields(),e.statusCode=304,e.end()};pt.prototype.headersAlreadySent=function(){var e=new Error("Can't set headers after they are sent.");Ht("headers already sent"),this.error(500,e)};pt.prototype.isCachable=function(){var e=this.res.statusCode;return e>=200&&e<300||e===304};pt.prototype.onStatError=function(e){switch(e.code){case"ENAMETOOLONG":case"ENOENT":case"ENOTDIR":this.error(404,e);break;default:this.error(500,e);break}};pt.prototype.isFresh=function(){return gne(this.req.headers,{etag:this.res.getHeader("ETag"),"last-modified":this.res.getHeader("Last-Modified")})};pt.prototype.isRangeFresh=function(){var e=this.req.headers["if-range"];if(!e)return!0;if(e.indexOf('"')!==-1){var r=this.res.getHeader("ETag");return!!(r&&e.indexOf(r)!==-1)}var n=this.res.getHeader("Last-Modified");return Bh(n)<=Bh(e)};pt.prototype.redirect=function(e){var r=this.res;if(M4(this,"directory")){this.emit("directory",r,e);return}if(this.hasTrailingSlash()){this.error(403);return}var n=fne(kne(this.path+"/")),i=N4("Redirecting","Redirecting to "+R4(n));r.statusCode=301,r.setHeader("Content-Type","text/html; charset=UTF-8"),r.setHeader("Content-Length",Buffer.byteLength(i)),r.setHeader("Content-Security-Policy","default-src 'none'"),r.setHeader("X-Content-Type-Options","nosniff"),r.setHeader("Location",n),r.end(i)};pt.prototype.pipe=function(e){var r=this._root;this.res=e;var n=Ine(this.path);if(n===-1)return this.error(400),e;if(~n.indexOf("\0"))return this.error(400),e;var i;if(r!==null){if(n&&(n=DE("."+Hh+n)),T4.test(n))return Ht('malicious path "%s"',n),this.error(403),e;i=n.split(Hh),n=DE(C4(r,n))}else{if(T4.test(n))return Ht('malicious path "%s"',n),this.error(403),e;i=DE(n).split(Hh),n=LE(n)}if($ne(i)){var s=this._dotfiles;switch(s===void 0&&(s=i[i.length-1][0]==="."?this._hidden?"allow":"ignore":"allow"),Ht('%s dotfile "%s"',s,n),s){case"allow":break;case"deny":return this.error(403),e;default:return this.error(404),e}}return this._index.length&&this.hasTrailingSlash()?(this.sendIndex(n),e):(this.sendFile(n),e)};pt.prototype.send=function(e,r){var n=r.size,i=this.options,s={},o=this.res,a=this.req,c=a.headers.range,u=i.start||0;if(One(o)){this.headersAlreadySent();return}if(Ht('pipe "%s"',e),this.setHeader(e,r),this.type(e),this.isConditionalGET()){if(this.isPreconditionFailure()){this.error(412);return}if(this.isCachable()&&this.isFresh()){this.notModified();return}}if(n=Math.max(0,n-u),i.end!==void 0){var l=i.end-u+1;n>l&&(n=l)}if(this._acceptRanges&&Sne.test(c)){if(c=yne(n,c,{combine:!0}),this.isRangeFresh()||(Ht("range stale"),c=-2),c===-1)return Ht("range unsatisfiable"),o.setHeader("Content-Range",I4("bytes",n)),this.error(416,{headers:{"Content-Range":o.getHeader("Content-Range")}});c!==-2&&c.length===1&&(Ht("range %j",c),o.statusCode=206,o.setHeader("Content-Range",I4("bytes",n,c[0])),u+=c[0].start,n=c[0].end-c[0].start+1)}for(var d in i)s[d]=i[d];if(s.start=u,s.end=Math.max(u,u+n-1),o.setHeader("Content-Length",n),a.method==="HEAD"){o.end();return}this.stream(e,s)};pt.prototype.sendFile=function(e){var r=0,n=this;Ht('stat "%s"',e),Zh.stat(e,function(o,a){if(o&&o.code==="ENOENT"&&!xne(e)&&e[e.length-1]!==Hh)return i(o);if(o)return n.onStatError(o);if(a.isDirectory())return n.redirect(e);n.emit("file",e,a),n.send(e,a)});function i(s){if(n._extensions.length<=r)return s?n.onStatError(s):n.error(404);var o=e+"."+n._extensions[r++];Ht('stat "%s"',o),Zh.stat(o,function(a,c){if(a)return i(a);if(c.isDirectory())return i();n.emit("file",o,c),n.send(o,c)})}};pt.prototype.sendIndex=function(e){var r=-1,n=this;function i(s){if(++r>=n._index.length)return s?n.onStatError(s):n.error(404);var o=C4(e,n._index[r]);Ht('stat "%s"',o),Zh.stat(o,function(a,c){if(a)return i(a);if(c.isDirectory())return i();n.emit("file",o,c),n.send(o,c)})}i()};pt.prototype.stream=function(e,r){var n=this,i=this.res,s=Zh.createReadStream(e,r);this.emit("stream",s),s.pipe(i);function o(){mne(s,!0)}vne(i,o),s.on("error",function(c){o(),n.onStatError(c)}),s.on("end",function(){n.emit("end")})};pt.prototype.type=function(e){var r=this.res;if(!r.getHeader("Content-Type")){var n=jE.lookup(e);if(!n){Ht("no content-type");return}var i=jE.charsets.lookup(n);Ht("content-type %s",n),r.setHeader("Content-Type",n+(i?"; charset="+i:""))}};pt.prototype.setHeader=function(e,r){var n=this.res;if(this.emit("headers",n,e,r),this._acceptRanges&&!n.getHeader("Accept-Ranges")&&(Ht("accept ranges"),n.setHeader("Accept-Ranges","bytes")),this._cacheControl&&!n.getHeader("Cache-Control")){var i="public, max-age="+Math.floor(this._maxage/1e3);this._immutable&&(i+=", immutable"),Ht("cache-control %s",i),n.setHeader("Cache-Control",i)}if(this._lastModified&&!n.getHeader("Last-Modified")){var s=r.mtime.toUTCString();Ht("modified %s",s),n.setHeader("Last-Modified",s)}if(this._etag&&!n.getHeader("ETag")){var o=hne(r);Ht("etag %s",o),n.setHeader("ETag",o)}};function Ene(t){for(var e=Rne(t),r=0;r1?"/"+t.substr(e):t}function $ne(t){for(var e=0;e1&&r[0]===".")return!0}return!1}function I4(t,e,r){return t+" "+(r?r.start+"-"+r.end:"*")+"/"+e}function N4(t,e){return` + + + +`+t+` + + +
`+e+`
+ + +`}function Tne(t,e){return e?e instanceof Error?ME(t,e,{expose:!1}):ME(t,e):ME(t)}function Ine(t){try{return decodeURIComponent(t)}catch{return-1}}function Rne(t){return typeof t.getHeaderNames!="function"?Object.keys(t._headers||{}):t.getHeaderNames()}function M4(t,e){var r=typeof t.listenerCount!="function"?t.listeners(e).length:t.listenerCount(e);return r>0}function One(t){return typeof t.headersSent!="boolean"?!!t._header:t.headersSent}function zE(t,e){for(var r=[].concat(t||[]),n=0;n{"use strict";D4.exports=Ane;function Ane(t){if(!t)throw new TypeError("argument req is required");var e=Mne(t.headers["x-forwarded-for"]||""),r=Nne(t),n=[r].concat(e);return n}function Nne(t){return t.socket?t.socket.remoteAddress:t.connection.remoteAddress}function Mne(t){for(var e=t.length,r=[],n=t.length,i=t.length-1;i>=0;i--)switch(t.charCodeAt(i)){case 32:n===e&&(n=e=i);break;case 44:n!==e&&r.push(t.substring(n,e)),n=e=i;break;default:n=i;break}return n!==e&&r.push(t.substring(n,e)),r}});var L4=T((z4,Rd)=>{(function(){var t,e,r,n,i,s,o,a,c;e={},a=this,typeof Rd<"u"&&Rd!==null&&Rd.exports?Rd.exports=e:a.ipaddr=e,o=function(u,l,d,p){var m,f;if(u.length!==l.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");for(m=0;p>0;){if(f=d-p,f<0&&(f=0),u[m]>>f!==l[m]>>f)return!1;p-=d,m+=1}return!0},e.subnetMatch=function(u,l,d){var p,m,f,g,h;d==null&&(d="unicast");for(f in l)for(g=l[f],g[0]&&!(g[0]instanceof Array)&&(g=[g]),p=0,m=g.length;p=0;d=p+=-1)if(m=this.octets[d],m in h){if(g=h[m],f&&g!==0)return null;g!==8&&(f=!0),l+=g}else return null;return 32-l},u})(),r="(0?\\d+|0x[a-f0-9]+)",n={fourOctet:new RegExp("^"+r+"\\."+r+"\\."+r+"\\."+r+"$","i"),longValue:new RegExp("^"+r+"$","i")},e.IPv4.parser=function(u){var l,d,p,m,f;if(d=function(g){return g[0]==="0"&&g[1]!=="x"?parseInt(g,8):parseInt(g)},l=u.match(n.fourOctet))return(function(){var g,h,v,x;for(v=l.slice(1,6),x=[],g=0,h=v.length;g4294967295||f<0)throw new Error("ipaddr: address outside defined range");return(function(){var g,h;for(h=[],m=g=0;g<=24;m=g+=8)h.push(f>>m&255);return h})().reverse()}else return null},e.IPv6=(function(){function u(l,d){var p,m,f,g,h,v;if(l.length===16)for(this.parts=[],p=m=0;m<=14;p=m+=2)this.parts.push(l[p]<<8|l[p+1]);else if(l.length===8)this.parts=l;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");for(v=this.parts,f=0,g=v.length;fd&&(l=p.index,d=p[0].length);return d<0?f:f.substring(0,l)+"::"+f.substring(l+d)},u.prototype.toByteArray=function(){var l,d,p,m,f;for(l=[],f=this.parts,d=0,p=f.length;d>8),l.push(m&255);return l},u.prototype.toNormalizedString=function(){var l,d,p;return l=(function(){var m,f,g,h;for(g=this.parts,h=[],m=0,f=g.length;m>8,l&255,d>>8,d&255])},u.prototype.prefixLengthFromSubnetMask=function(){var l,d,p,m,f,g,h;for(h={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},l=0,f=!1,d=p=7;p>=0;d=p+=-1)if(m=this.parts[d],m in h){if(g=h[m],f&&g!==0)return null;g!==16&&(f=!0),l+=g}else return null;return 128-l},u})(),i="(?:[0-9a-f]+::?)+",c="%[0-9a-z]{1,}",s={zoneIndex:new RegExp(c,"i"),native:new RegExp("^(::)?("+i+")?([0-9a-f]+)?(::)?("+c+")?$","i"),transitional:new RegExp("^((?:"+i+")|(?:::)(?:"+i+")?)"+(r+"\\."+r+"\\."+r+"\\."+r)+("("+c+")?$"),"i")},t=function(u,l){var d,p,m,f,g,h;if(u.indexOf("::")!==u.lastIndexOf("::"))return null;for(h=(u.match(s.zoneIndex)||[])[0],h&&(h=h.substring(1),u=u.replace(/%.+$/,"")),d=0,p=-1;(p=u.indexOf(":",p+1))>=0;)d++;if(u.substr(0,2)==="::"&&d--,u.substr(-2,2)==="::"&&d--,d>l)return null;for(g=l-d,f=":";g--;)f+="0:";return u=u.replace("::",f),u[0]===":"&&(u=u.slice(1)),u[u.length-1]===":"&&(u=u.slice(0,-1)),l=(function(){var v,x,b,_;for(b=u.split(":"),_=[],v=0,x=b.length;v=0&&l<=32))return p=[this.parse(d[1]),l],Object.defineProperty(p,"toString",{value:function(){return this.join("/")}}),p;throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},e.IPv4.subnetMaskFromPrefixLength=function(u){var l,d,p;if(u=parseInt(u),u<0||u>32)throw new Error("ipaddr: invalid IPv4 prefix length");for(p=[0,0,0,0],d=0,l=Math.floor(u/8);d=0&&l<=128))return p=[this.parse(d[1]),l],Object.defineProperty(p,"toString",{value:function(){return this.join("/")}}),p;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},e.isValid=function(u){return e.IPv6.isValid(u)||e.IPv4.isValid(u)},e.parse=function(u){if(e.IPv6.isValid(u))return e.IPv6.parse(u);if(e.IPv4.isValid(u))return e.IPv4.parse(u);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},e.parseCIDR=function(u){var l;try{return e.IPv6.parseCIDR(u)}catch(d){l=d;try{return e.IPv4.parseCIDR(u)}catch(p){throw l=p,new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},e.fromByteArray=function(u){var l;if(l=u.length,l===4)return new e.IPv4(u);if(l===16)return new e.IPv6(u);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},e.process=function(u){var l;return l=this.parse(u),l.kind()==="ipv6"&&l.isIPv4MappedAddress()?l.toIPv4Address():l}}).call(z4)});var qE=T((m1e,Kh)=>{"use strict";Kh.exports=Fne;Kh.exports.all=F4;Kh.exports.compile=H4;var Dne=j4(),q4=L4(),jne=/^[0-9]+$/,Gh=q4.isValid,Wh=q4.parse,U4={linklocal:["169.254.0.0/16","fe80::/10"],loopback:["127.0.0.1/8","::1/128"],uniquelocal:["10.0.0.0/8","172.16.0.0/12","192.168.0.0/16","fc00::/7"]};function F4(t,e){var r=Dne(t);if(!e)return r;typeof e!="function"&&(e=H4(e));for(var n=0;ni)throw new TypeError("invalid range on address: "+t);return[n,s]}function qne(t){var e=Wh(t),r=e.kind();return r==="ipv4"?e.prefixLengthFromSubnetMask():null}function Fne(t,e){if(!t)throw new TypeError("req argument is required");if(!e)throw new TypeError("trust argument is required");var r=F4(t,e),n=r[r.length-1];return n}function Hne(){return!1}function Zne(t){return function(r){if(!Gh(r))return!1;for(var n=Wh(r),i,s=n.kind(),o=0;o{"use strict";var Z4=qh().Buffer,Vne=PE(),B4=Kl(),V4=bi()("express"),Gne=kd(),Wne=Vh().mime,Kne=CE(),Jne=qE(),Xne=Ch(),Yne=require("querystring");Zr.etag=G4({weak:!1});Zr.wetag=G4({weak:!0});Zr.isAbsolute=function(t){if(t[0]==="/"||t[1]===":"&&(t[2]==="\\"||t[2]==="/")||t.substring(0,2)==="\\\\")return!0};Zr.flatten=V4.function(Gne,"utils.flatten: use array-flatten npm module instead");Zr.normalizeType=function(t){return~t.indexOf("/")?Qne(t):{value:Wne.lookup(t),params:{}}};Zr.normalizeTypes=function(t){for(var e=[],r=0;r{"use strict";var rie=Oz(),nie=TE(),HE=Dh(),iie=r4(),sie=IE(),Jh=Cn()("express:application"),oie=c4(),aie=require("http"),cie=Ls().compileETag,uie=Ls().compileQueryParser,lie=Ls().compileTrust,die=bi()("express"),pie=kd(),FE=$d(),mie=require("path").resolve,wc=Jl(),fie=Object.prototype.hasOwnProperty,BE=Array.prototype.slice,Qt=W4=K4.exports={},ZE="@@symbol:trust_proxy_default";Qt.init=function(){this.cache={},this.engines={},this.settings={},this.defaultConfiguration()};Qt.defaultConfiguration=function(){var e=process.env.NODE_ENV||"development";this.enable("x-powered-by"),this.set("etag","weak"),this.set("env",e),this.set("query parser","extended"),this.set("subdomain offset",2),this.set("trust proxy",!1),Object.defineProperty(this.settings,ZE,{configurable:!0,value:!0}),Jh("booting in %s mode",e),this.on("mount",function(n){this.settings[ZE]===!0&&typeof n.settings["trust proxy fn"]=="function"&&(delete this.settings["trust proxy"],delete this.settings["trust proxy fn"]),wc(this.request,n.request),wc(this.response,n.response),wc(this.engines,n.engines),wc(this.settings,n.settings)}),this.locals=Object.create(null),this.mountpath="/",this.locals.settings=this.settings,this.set("view",oie),this.set("views",mie("views")),this.set("jsonp callback name","callback"),e==="production"&&this.enable("view cache"),Object.defineProperty(this,"router",{get:function(){throw new Error(`'app.router' is deprecated! +Please see the 3.x to 4.x migration guide for details on how to update your app.`)}})};Qt.lazyrouter=function(){this._router||(this._router=new nie({caseSensitive:this.enabled("case sensitive routing"),strict:this.enabled("strict routing")}),this._router.use(sie(this.get("query parser fn"))),this._router.use(iie.init(this)))};Qt.handle=function(e,r,n){var i=this._router,s=n||rie(e,r,{env:this.get("env"),onerror:hie.bind(this)});if(!i){Jh("no routes defined on app"),s();return}i.handle(e,r,s)};Qt.use=function(e){var r=0,n="/";if(typeof e!="function"){for(var i=e;Array.isArray(i)&&i.length!==0;)i=i[0];typeof i!="function"&&(r=1,n=e)}var s=pie(BE.call(arguments,r));if(s.length===0)throw new TypeError("app.use() requires a middleware function");this.lazyrouter();var o=this._router;return s.forEach(function(a){if(!a||!a.handle||!a.set)return o.use(n,a);Jh(".use app under %s",n),a.mountpath=n,a.parent=this,o.use(n,function(u,l,d){var p=u.app;a.handle(u,l,function(m){wc(u,p.request),wc(l,p.response),d(m)})}),a.emit("mount",this)},this),this};Qt.route=function(e){return this.lazyrouter(),this._router.route(e)};Qt.engine=function(e,r){if(typeof r!="function")throw new Error("callback function required");var n=e[0]!=="."?"."+e:e;return this.engines[n]=r,this};Qt.param=function(e,r){if(this.lazyrouter(),Array.isArray(e)){for(var n=0;n1?'directories "'+u.root.slice(0,-1).join('", "')+'" or "'+u.root[u.root.length-1]+'"':'directory "'+u.root+'"',p=new Error('Failed to lookup view "'+e+'" in views '+d);return p.view=u,s(p)}c.cache&&(i[e]=u)}gie(u,c,s)};Qt.listen=function(){var e=aie.createServer(this);return e.listen.apply(e,arguments)};function hie(t){this.get("env")!=="test"&&console.error(t.stack||t.toString())}function gie(t,e,r){try{t.render(e,r)}catch(n){r(n)}}});var eL=T((h1e,VE)=>{"use strict";VE.exports=Q4;VE.exports.preferredCharsets=Q4;var vie=/^\s*([^\s;]+)\s*(?:;(.*))?$/;function yie(t){for(var e=t.split(","),r=0,n=0;r0}});var sL=T((g1e,GE)=>{"use strict";GE.exports=iL;GE.exports.preferredEncodings=iL;var wie=/^\s*([^\s;]+)\s*(?:;(.*))?$/;function Eie(t){for(var e=t.split(","),r=!1,n=1,i=0,s=0;i0}});var lL=T((v1e,WE)=>{"use strict";WE.exports=uL;WE.exports.preferredLanguages=uL;var Iie=/^\s*([^\s\-;]+)(?:-([^\s;]+))?\s*(?:;(.*))?$/;function Rie(t){for(var e=t.split(","),r=0,n=0;r0}});var gL=T((y1e,KE)=>{"use strict";KE.exports=fL;KE.exports.preferredMediaTypes=fL;var Aie=/^\s*([^\s\/;]+)\/([^;\s]+)\s*(?:;(.*))?$/;function Nie(t){for(var e=Lie(t),r=0,n=0;r0)if(s.every(function(o){return e.params[o]=="*"||(e.params[o]||"").toLowerCase()==(n.params[o]||"").toLowerCase()}))i|=1;else return null;return{i:r,o:e.i,q:e.q,s:i}}function fL(t,e){var r=Nie(t===void 0?"*/*":t||"");if(!e)return r.filter(pL).sort(dL).map(jie);var n=e.map(function(s,o){return Mie(s,r,o)});return n.filter(pL).sort(dL).map(function(s){return e[n.indexOf(s)]})}function dL(t,e){return e.q-t.q||e.s-t.s||t.o-e.o||t.i-e.i||0}function jie(t){return t.type+"/"+t.subtype}function pL(t){return t.q>0}function hL(t){for(var e=0,r=0;(r=t.indexOf('"',r))!==-1;)e++,r++;return e}function zie(t){var e=t.indexOf("="),r,n;return e===-1?r=t:(r=t.substr(0,e),n=t.substr(e+1)),[r,n]}function Lie(t){for(var e=t.split(","),r=1,n=0;r{"use strict";var qie=eL(),Fie=sL(),Hie=lL(),Zie=gL();JE.exports=vt;JE.exports.Negotiator=vt;function vt(t){if(!(this instanceof vt))return new vt(t);this.request=t}vt.prototype.charset=function(e){var r=this.charsets(e);return r&&r[0]};vt.prototype.charsets=function(e){return qie(this.request.headers["accept-charset"],e)};vt.prototype.encoding=function(e){var r=this.encodings(e);return r&&r[0]};vt.prototype.encodings=function(e){return Fie(this.request.headers["accept-encoding"],e)};vt.prototype.language=function(e){var r=this.languages(e);return r&&r[0]};vt.prototype.languages=function(e){return Hie(this.request.headers["accept-language"],e)};vt.prototype.mediaType=function(e){var r=this.mediaTypes(e);return r&&r[0]};vt.prototype.mediaTypes=function(e){return Zie(this.request.headers.accept,e)};vt.prototype.preferredCharset=vt.prototype.charset;vt.prototype.preferredCharsets=vt.prototype.charsets;vt.prototype.preferredEncoding=vt.prototype.encoding;vt.prototype.preferredEncodings=vt.prototype.encodings;vt.prototype.preferredLanguage=vt.prototype.language;vt.prototype.preferredLanguages=vt.prototype.languages;vt.prototype.preferredMediaType=vt.prototype.mediaType;vt.prototype.preferredMediaTypes=vt.prototype.mediaTypes});var _L=T((b1e,yL)=>{"use strict";var Bie=vL(),Vie=Zw();yL.exports=yn;function yn(t){if(!(this instanceof yn))return new yn(t);this.headers=t.headers,this.negotiator=new Bie(t)}yn.prototype.type=yn.prototype.types=function(t){var e=t;if(e&&!Array.isArray(e)){e=new Array(arguments.length);for(var r=0;r{"use strict";var Xh=_L(),Od=bi()("express"),Kie=require("net").isIP,Jie=ac(),Xie=require("http"),Yie=AE(),Qie=NE(),ese=hc(),bL=qE(),Et=Object.create(Xie.IncomingMessage.prototype);xL.exports=Et;Et.get=Et.header=function(e){if(!e)throw new TypeError("name argument is required to req.get");if(typeof e!="string")throw new TypeError("name must be a string to req.get");var r=e.toLowerCase();switch(r){case"referer":case"referrer":return this.headers.referrer||this.headers.referer;default:return this.headers[r]}};Et.accepts=function(){var t=Xh(this);return t.types.apply(t,arguments)};Et.acceptsEncodings=function(){var t=Xh(this);return t.encodings.apply(t,arguments)};Et.acceptsEncoding=Od.function(Et.acceptsEncodings,"req.acceptsEncoding: Use acceptsEncodings instead");Et.acceptsCharsets=function(){var t=Xh(this);return t.charsets.apply(t,arguments)};Et.acceptsCharset=Od.function(Et.acceptsCharsets,"req.acceptsCharset: Use acceptsCharsets instead");Et.acceptsLanguages=function(){var t=Xh(this);return t.languages.apply(t,arguments)};Et.acceptsLanguage=Od.function(Et.acceptsLanguages,"req.acceptsLanguage: Use acceptsLanguages instead");Et.range=function(e,r){var n=this.get("Range");if(n)return Qie(e,n,r)};Et.param=function(e,r){var n=this.params||{},i=this.body||{},s=this.query||{},o=arguments.length===1?"name":"name, default";return Od("req.param("+o+"): Use req.params, req.body, or req.query instead"),n[e]!=null&&n.hasOwnProperty(e)?n[e]:i[e]!=null?i[e]:s[e]!=null?s[e]:r};Et.is=function(e){var r=e;if(!Array.isArray(e)){r=new Array(arguments.length);for(var n=0;n=200&&r<300||r===304?Yie(this.headers,{etag:e.get("ETag"),"last-modified":e.get("Last-Modified")}):!1});Qn(Et,"stale",function(){return!this.fresh});Qn(Et,"xhr",function(){var e=this.get("X-Requested-With")||"";return e.toLowerCase()==="xmlhttprequest"});function Qn(t,e,r){Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:r})}});var kL=T(Yh=>{var EL=require("crypto");Yh.sign=function(t,e){if(typeof t!="string")throw new TypeError("Cookie value must be provided as a string.");if(e==null)throw new TypeError("Secret key must be provided.");return t+"."+EL.createHmac("sha256",e).update(t).digest("base64").replace(/\=+$/,"")};Yh.unsign=function(t,e){if(typeof t!="string")throw new TypeError("Signed cookie string must be provided.");if(e==null)throw new TypeError("Secret key must be provided.");var r=t.slice(0,t.lastIndexOf(".")),n=Yh.sign(r,e);return wL(n)==wL(t)?r:!1};function wL(t){return EL.createHash("sha1").update(t).digest("hex")}});var IL=T(XE=>{"use strict";XE.parse=ase;XE.serialize=cse;var tse=Object.prototype.toString,rse=Object.prototype.hasOwnProperty,nse=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,ise=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,sse=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,ose=/^[\u0020-\u003A\u003D-\u007E]*$/;function ase(t,e){if(typeof t!="string")throw new TypeError("argument str must be a string");var r={},n=t.length;if(n<2)return r;var i=e&&e.decode||use,s=0,o=0,a=0;do{if(o=t.indexOf("=",s),o===-1)break;if(a=t.indexOf(";",s),a===-1)a=n;else if(o>a){s=t.lastIndexOf(";",o-1)+1;continue}var c=$L(t,s,o),u=TL(t,o,c),l=t.slice(c,u);if(!rse.call(r,l)){var d=$L(t,o+1,a),p=TL(t,a,d);t.charCodeAt(d)===34&&t.charCodeAt(p-1)===34&&(d++,p--);var m=t.slice(d,p);r[l]=dse(m,i)}s=a+1}while(sr;){var n=t.charCodeAt(--e);if(n!==32&&n!==9)return e+1}return r}function cse(t,e,r){var n=r&&r.encode||encodeURIComponent;if(typeof n!="function")throw new TypeError("option encode is invalid");if(!nse.test(t))throw new TypeError("argument name is invalid");var i=n(e);if(!ise.test(i))throw new TypeError("argument val is invalid");var s=t+"="+i;if(!r)return s;if(r.maxAge!=null){var o=Math.floor(r.maxAge);if(!isFinite(o))throw new TypeError("option maxAge is invalid");s+="; Max-Age="+o}if(r.domain){if(!sse.test(r.domain))throw new TypeError("option domain is invalid");s+="; Domain="+r.domain}if(r.path){if(!ose.test(r.path))throw new TypeError("option path is invalid");s+="; Path="+r.path}if(r.expires){var a=r.expires;if(!lse(a)||isNaN(a.valueOf()))throw new TypeError("option expires is invalid");s+="; Expires="+a.toUTCString()}if(r.httpOnly&&(s+="; HttpOnly"),r.secure&&(s+="; Secure"),r.partitioned&&(s+="; Partitioned"),r.priority){var c=typeof r.priority=="string"?r.priority.toLowerCase():r.priority;switch(c){case"low":s+="; Priority=Low";break;case"medium":s+="; Priority=Medium";break;case"high":s+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(r.sameSite){var u=typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite;switch(u){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return s}function use(t){return t.indexOf("%")!==-1?decodeURIComponent(t):t}function lse(t){return tse.call(t)==="[object Date]"}function dse(t,e){try{return e(t)}catch{return t}}});var QE=T((E1e,YE)=>{"use strict";YE.exports=mse;YE.exports.append=OL;var pse=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function OL(t,e){if(typeof t!="string")throw new TypeError("header argument is required");if(!e)throw new TypeError("field argument is required");for(var r=Array.isArray(e)?e:RL(String(e)),n=0;n{"use strict";var Pd=qh().Buffer,PL=PE(),fse=So(),sn=bi()("express"),hse=wd(),gse=Ed(),vse=require("http"),yse=Ls().isAbsolute,_se=od(),CL=require("path"),Qh=Xl(),AL=$d(),bse=kL().sign,xse=Ls().normalizeType,Sse=Ls().normalizeTypes,wse=Ls().setCharset,Ese=IL(),ek=Vh(),kse=CL.extname,NL=ek.mime,$se=CL.resolve,Tse=QE(),It=Object.create(vse.ServerResponse.prototype);jL.exports=It;var Ise=/;\s*charset\s*=/;It.status=function(e){return(typeof e=="string"||Math.floor(e)!==e)&&e>99&&e<1e3&&sn("res.status("+JSON.stringify(e)+"): use res.status("+Math.floor(e)+") instead"),this.statusCode=e,this};It.links=function(t){var e=this.get("Link")||"";return e&&(e+=", "),this.set("Link",e+Object.keys(t).map(function(r){return"<"+t[r]+'>; rel="'+r+'"'}).join(", "))};It.send=function(e){var r=e,n,i=this.req,s,o=this.app;switch(arguments.length===2&&(typeof arguments[0]!="number"&&typeof arguments[1]=="number"?(sn("res.send(body, status): Use res.status(status).send(body) instead"),this.statusCode=arguments[1]):(sn("res.send(status, body): Use res.status(status).send(body) instead"),this.statusCode=arguments[0],r=arguments[1])),typeof r=="number"&&arguments.length===1&&(this.get("Content-Type")||this.type("txt"),sn("res.send(status): Use res.sendStatus(status) instead"),this.statusCode=r,r=Qh.message[r]),typeof r){case"string":this.get("Content-Type")||this.type("html");break;case"boolean":case"number":case"object":if(r===null)r="";else if(Pd.isBuffer(r))this.get("Content-Type")||this.type("bin");else return this.json(r);break}typeof r=="string"&&(n="utf8",s=this.get("Content-Type"),typeof s=="string"&&this.set("Content-Type",wse(s,"utf-8")));var a=o.get("etag fn"),c=!this.get("ETag")&&typeof a=="function",u;r!==void 0&&(Pd.isBuffer(r)?u=r.length:!c&&r.length<1e3?u=Pd.byteLength(r,n):(r=Pd.from(r,n),n=void 0,u=r.length),this.set("Content-Length",u));var l;return c&&u!==void 0&&(l=a(r,n))&&this.set("ETag",l),i.fresh&&(this.statusCode=304),(this.statusCode===204||this.statusCode===304)&&(this.removeHeader("Content-Type"),this.removeHeader("Content-Length"),this.removeHeader("Transfer-Encoding"),r=""),this.statusCode===205&&(this.set("Content-Length","0"),this.removeHeader("Transfer-Encoding"),r=""),i.method==="HEAD"?this.end():this.end(r,n),this};It.json=function(e){var r=e;arguments.length===2&&(typeof arguments[1]=="number"?(sn("res.json(obj, status): Use res.status(status).json(obj) instead"),this.statusCode=arguments[1]):(sn("res.json(status, obj): Use res.status(status).json(obj) instead"),this.statusCode=arguments[0],r=arguments[1]));var n=this.app,i=n.get("json escape"),s=n.get("json replacer"),o=n.get("json spaces"),a=DL(r,s,o,i);return this.get("Content-Type")||this.set("Content-Type","application/json"),this.send(a)};It.jsonp=function(e){var r=e;arguments.length===2&&(typeof arguments[1]=="number"?(sn("res.jsonp(obj, status): Use res.status(status).jsonp(obj) instead"),this.statusCode=arguments[1]):(sn("res.jsonp(status, obj): Use res.status(status).jsonp(obj) instead"),this.statusCode=arguments[0],r=arguments[1]));var n=this.app,i=n.get("json escape"),s=n.get("json replacer"),o=n.get("json spaces"),a=DL(r,s,o,i),c=this.req.query[n.get("jsonp callback name")];return this.get("Content-Type")||(this.set("X-Content-Type-Options","nosniff"),this.set("Content-Type","application/json")),Array.isArray(c)&&(c=c[0]),typeof c=="string"&&c.length!==0&&(this.set("X-Content-Type-Options","nosniff"),this.set("Content-Type","text/javascript"),c=c.replace(/[^\[\]\w$.]/g,""),a===void 0?a="":typeof a=="string"&&(a=a.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")),a="/**/ typeof "+c+" === 'function' && "+c+"("+a+");"),this.send(a)};It.sendStatus=function(e){var r=Qh.message[e]||String(e);return this.statusCode=e,this.type("txt"),this.send(r)};It.sendFile=function(e,r,n){var i=n,s=this.req,o=this,a=s.next,c=r||{};if(!e)throw new TypeError("path argument is required to res.sendFile");if(typeof e!="string")throw new TypeError("path must be a string to res.sendFile");if(typeof r=="function"&&(i=r,c={}),!c.root&&!yse(e))throw new TypeError("path must be absolute or specify root to res.sendFile");var u=encodeURI(e),l=ek(s,u,c);ML(o,l,c,function(d){if(i)return i(d);if(d&&d.code==="EISDIR")return a();d&&d.code!=="ECONNABORTED"&&d.syscall!=="write"&&a(d)})};It.sendfile=function(t,e,r){var n=r,i=this.req,s=this,o=i.next,a=e||{};typeof e=="function"&&(n=e,a={});var c=ek(i,t,a);ML(s,c,a,function(u){if(n)return n(u);if(u&&u.code==="EISDIR")return o();u&&u.code!=="ECONNABORTED"&&u.syscall!=="write"&&o(u)})};It.sendfile=sn.function(It.sendfile,"res.sendfile: Use res.sendFile instead");It.download=function(e,r,n,i){var s=i,o=r,a=n||null;typeof r=="function"?(s=r,o=null,a=null):typeof n=="function"&&(s=n,a=null),typeof r=="object"&&(typeof n=="function"||n===void 0)&&(o=null,a=r);var c={"Content-Disposition":PL(o||e)};if(a&&a.headers)for(var u=Object.keys(a.headers),l=0;l0?e.accepts(n):!1;return this.vary("Accept"),i?(this.set("Content-Type",xse(i).value),t[i](e,this,r)):t.default?t.default(e,this,r):r(fse(406,{types:Sse(n).map(function(s){return s.value})})),this};It.attachment=function(e){return e&&this.type(kse(e)),this.set("Content-Disposition",PL(e)),this};It.append=function(e,r){var n=this.get(e),i=r;return n&&(i=Array.isArray(n)?n.concat(r):Array.isArray(r)?[n].concat(r):[n,r]),this.set(e,i)};It.set=It.header=function(e,r){if(arguments.length===2){var n=Array.isArray(r)?r.map(String):String(r);if(e.toLowerCase()==="content-type"){if(Array.isArray(n))throw new TypeError("Content-Type cannot be set to an Array");if(!Ise.test(n)){var i=NL.charsets.lookup(n.split(";")[0]);i&&(n+="; charset="+i.toLowerCase())}}this.setHeader(e,n)}else for(var s in e)this.set(s,e[s]);return this};It.get=function(t){return this.getHeader(t)};It.clearCookie=function(e,r){r&&(r.maxAge&&sn('res.clearCookie: Passing "options.maxAge" is deprecated. In v5.0.0 of Express, this option will be ignored, as res.clearCookie will automatically set cookies to expire immediately. Please update your code to omit this option.'),r.expires&&sn('res.clearCookie: Passing "options.expires" is deprecated. In v5.0.0 of Express, this option will be ignored, as res.clearCookie will automatically set cookies to expire immediately. Please update your code to omit this option.'));var n=AL({expires:new Date(1),path:"/"},r);return this.cookie(e,"",n)};It.cookie=function(t,e,r){var n=AL({},r),i=this.req.secret,s=n.signed;if(s&&!i)throw new Error('cookieParser("secret") required for signed cookies');var o=typeof e=="object"?"j:"+JSON.stringify(e):String(e);if(s&&(o="s:"+bse(o,i)),n.maxAge!=null){var a=n.maxAge-0;isNaN(a)||(n.expires=new Date(Date.now()+a),n.maxAge=Math.floor(a/1e3))}return n.path==null&&(n.path="/"),this.append("Set-Cookie",Ese.serialize(t,String(o),n)),this};It.location=function(e){var r;return e==="back"?(sn('res.location("back"): use res.location(req.get("Referrer") || "/") and refer to https://dub.sh/security-redirect for best practices'),r=this.req.get("Referrer")||"/"):r=String(e),this.set("Location",hse(r))};It.redirect=function(e){var r=e,n,i=302;arguments.length===2&&(typeof arguments[0]=="number"?(i=arguments[0],r=arguments[1]):(sn("res.redirect(url, status): Use res.redirect(status, url) instead"),i=arguments[1])),r=this.location(r).get("Location"),this.format({text:function(){n=Qh.message[i]+". Redirecting to "+r},html:function(){var s=gse(r);n="

"+Qh.message[i]+". Redirecting to "+s+"

"},default:function(){n=""}}),this.statusCode=i,this.set("Content-Length",Pd.byteLength(n)),this.req.method==="HEAD"?this.end():this.end(n)};It.vary=function(t){return!t||Array.isArray(t)&&!t.length?(sn("res.vary(): Provide a field name"),this):(Tse(this,t),this)};It.render=function(e,r,n){var i=this.req.app,s=n,o=r||{},a=this.req,c=this;typeof r=="function"&&(s=r,o={}),o._locals=c.locals,s=s||function(u,l){if(u)return a.next(u);c.send(l)},i.render(e,o,s)};function ML(t,e,r,n){var i=!1,s;function o(){if(!i){i=!0;var m=new Error("Request aborted");m.code="ECONNABORTED",n(m)}}function a(){if(!i){i=!0;var m=new Error("EISDIR, read");m.code="EISDIR",n(m)}}function c(m){i||(i=!0,n(m))}function u(){i||(i=!0,n())}function l(){s=!1}function d(m){if(m&&m.code==="ECONNRESET")return o();if(m)return c(m);i||setImmediate(function(){if(s!==!1&&!i){o();return}i||(i=!0,n())})}function p(){s=!0}e.on("directory",a),e.on("end",u),e.on("error",c),e.on("file",l),e.on("stream",p),_se(t,d),r.headers&&e.on("headers",function(f){for(var g=r.headers,h=Object.keys(g),v=0;v&]/g,function(s){switch(s.charCodeAt(0)){case 60:return"\\u003c";case 62:return"\\u003e";case 38:return"\\u0026";default:return s}})),i}});var UL=T(($1e,rk)=>{"use strict";var Rse=wd(),Ose=Ed(),tk=hc(),Pse=require("path").resolve,LL=Vh(),Cse=require("url");rk.exports=Ase;rk.exports.mime=LL.mime;function Ase(t,e){if(!t)throw new TypeError("root path required");if(typeof t!="string")throw new TypeError("root path must be a string");var r=Object.create(e||null),n=r.fallthrough!==!1,i=r.redirect!==!1,s=r.setHeaders;if(s&&typeof s!="function")throw new TypeError("option setHeaders must be function");r.maxage=r.maxage||r.maxAge||0,r.root=Pse(t);var o=i?jse():Dse();return function(c,u,l){if(c.method!=="GET"&&c.method!=="HEAD"){if(n)return l();u.statusCode=405,u.setHeader("Allow","GET, HEAD"),u.setHeader("Content-Length","0"),u.end();return}var d=!n,p=tk.original(c),m=tk(c).pathname;m==="/"&&p.pathname.substr(-1)!=="/"&&(m="");var f=LL(c,m,r);f.on("directory",o),s&&f.on("headers",s),n&&f.on("file",function(){d=!0}),f.on("error",function(h){if(d||!(h.statusCode<500)){l(h);return}l()}),f.pipe(u)}}function Nse(t){for(var e=0;e1?"/"+t.substr(e):t}function Mse(t,e){return` + + + +`+t+` + + +
`+e+`
+ + +`}function Dse(){return function(){this.error(404)}}function jse(){return function(e){if(this.hasTrailingSlash()){this.error(404);return}var r=tk.original(this.req);r.path=null,r.pathname=Nse(r.pathname+"/");var n=Rse(Cse.format(r)),i=Mse("Redirecting","Redirecting to "+Ose(n));e.statusCode=301,e.setHeader("Content-Type","text/html; charset=UTF-8"),e.setHeader("Content-Length",Buffer.byteLength(i)),e.setHeader("Content-Security-Policy","default-src 'none'"),e.setHeader("X-Content-Type-Options","nosniff"),e.setHeader("Location",n),e.end(i)}}});var VL=T((on,BL)=>{"use strict";var eg=gz(),zse=require("events").EventEmitter,qL=yz(),FL=J4(),Lse=kE(),Use=TE(),HL=SL(),ZL=zL();on=BL.exports=qse;function qse(){var t=function(e,r,n){t.handle(e,r,n)};return qL(t,zse.prototype,!1),qL(t,FL,!1),t.request=Object.create(HL,{app:{configurable:!0,enumerable:!0,writable:!0,value:t}}),t.response=Object.create(ZL,{app:{configurable:!0,enumerable:!0,writable:!0,value:t}}),t.init(),t}on.application=FL;on.request=HL;on.response=ZL;on.Route=Lse;on.Router=Use;on.json=eg.json;on.query=IE();on.raw=eg.raw;on.static=UL();on.text=eg.text;on.urlencoded=eg.urlencoded;var Fse=["bodyParser","compress","cookieSession","session","logger","cookieParser","favicon","responseTime","errorHandler","timeout","methodOverride","vhost","csrf","directory","limit","multipart","staticCache"];Fse.forEach(function(t){Object.defineProperty(on,t,{get:function(){throw new Error("Most middleware (like "+t+") is no longer bundled with Express and must be installed separately. Please see https://github.com/senchalabs/connect#middleware.")},configurable:!0})})});var tg=T((T1e,GL)=>{"use strict";GL.exports=VL()});var YL=T((R1e,XL)=>{"use strict";var JL=Object.getOwnPropertySymbols,Hse=Object.prototype.hasOwnProperty,Zse=Object.prototype.propertyIsEnumerable;function Bse(t){if(t==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function Vse(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de",Object.getOwnPropertyNames(t)[0]==="5")return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(e).map(function(s){return e[s]});if(n.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(s){i[s]=s}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}XL.exports=Vse()?Object.assign:function(t,e){for(var r,n=Bse(t),i,s=1;s{(function(){"use strict";var t=YL(),e=QE(),r={origin:"*",methods:"GET,HEAD,PUT,PATCH,POST,DELETE",preflightContinue:!1,optionsSuccessStatus:204};function n(f){return typeof f=="string"||f instanceof String}function i(f,g){if(Array.isArray(g)){for(var h=0;h{"use strict"});var zo={};ln(zo,{PendingMessageStore:()=>Dd});var toe,Dd,Us=Pe(()=>{"use strict";oe();toe=6e4,Dd=class{db;maxRetries;constructor(e,r=3){this.db=e,this.maxRetries=r}enqueue(e,r,n){let i=Date.now();return this.db.prepare(` INSERT INTO pending_messages ( session_db_id, content_session_id, message_type, tool_name, tool_input, tool_response, cwd, last_assistant_message, prompt_number, status, retry_count, created_at_epoch ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, 'pending', 0, ?) - `); - const result = stmt.run(sessionDbId, contentSessionId, message.type, message.tool_name || null, message.tool_input ? JSON.stringify(message.tool_input) : null, message.tool_response ? JSON.stringify(message.tool_response) : null, message.cwd || null, message.last_assistant_message || null, message.prompt_number || null, now); - return result.lastInsertRowid; - } - claimNextMessage(sessionDbId) { - const claimTx = this.db.transaction((sessionId) => { - const now = Date.now(); - const staleCutoff = now - STALE_PROCESSING_THRESHOLD_MS; - const resetStmt = this.db.prepare(` + `).run(e,r,n.type,n.tool_name||null,n.tool_input?JSON.stringify(n.tool_input):null,n.tool_response?JSON.stringify(n.tool_response):null,n.cwd||null,n.last_assistant_message||null,n.prompt_number||null,i).lastInsertRowid}claimNextMessage(e){return this.db.transaction(n=>{let i=Date.now(),s=i-toe,a=this.db.prepare(` UPDATE pending_messages SET status = 'pending', started_processing_at_epoch = NULL WHERE session_db_id = ? AND status = 'processing' AND started_processing_at_epoch < ? - `); - const resetResult = resetStmt.run(sessionId, staleCutoff); - if (resetResult.changes > 0) { - logger.info("QUEUE", `SELF_HEAL | sessionDbId=${sessionId} | recovered ${resetResult.changes} stale processing message(s)`); - } - const peekStmt = this.db.prepare(` + `).run(n,s);a.changes>0&&y.info("QUEUE",`SELF_HEAL | sessionDbId=${n} | recovered ${a.changes} stale processing message(s)`);let u=this.db.prepare(` SELECT * FROM pending_messages WHERE session_db_id = ? AND status = 'pending' ORDER BY id ASC LIMIT 1 - `); - const msg = peekStmt.get(sessionId); - if (msg) { - const updateStmt = this.db.prepare(` + `).get(n);return u&&(this.db.prepare(` UPDATE pending_messages SET status = 'processing', started_processing_at_epoch = ? WHERE id = ? - `); - updateStmt.run(now, msg.id); - logger.info("QUEUE", `CLAIMED | sessionDbId=${sessionId} | messageId=${msg.id} | type=${msg.message_type}`, { - sessionId - }); - } - return msg; - }); - return claimTx(sessionDbId); - } - confirmProcessed(messageId) { - const stmt = this.db.prepare("DELETE FROM pending_messages WHERE id = ?"); - const result = stmt.run(messageId); - if (result.changes > 0) { - logger.debug("QUEUE", `CONFIRMED | messageId=${messageId} | deleted from queue`); - } - } - resetStaleProcessingMessages(thresholdMs = 5 * 60 * 1000, sessionDbId) { - const cutoff = Date.now() - thresholdMs; - let stmt; - let result; - if (sessionDbId !== undefined) { - stmt = this.db.prepare(` + `).run(i,u.id),y.info("QUEUE",`CLAIMED | sessionDbId=${n} | messageId=${u.id} | type=${u.message_type}`,{sessionId:n})),u})(e)}confirmProcessed(e){this.db.prepare("DELETE FROM pending_messages WHERE id = ?").run(e).changes>0&&y.debug("QUEUE",`CONFIRMED | messageId=${e} | deleted from queue`)}resetStaleProcessingMessages(e=300*1e3,r){let n=Date.now()-e,i,s;return r!==void 0?(i=this.db.prepare(` UPDATE pending_messages SET status = 'pending', started_processing_at_epoch = NULL WHERE status = 'processing' AND started_processing_at_epoch < ? AND session_db_id = ? - `); - result = stmt.run(cutoff, sessionDbId); - } else { - stmt = this.db.prepare(` + `),s=i.run(n,r)):(i=this.db.prepare(` UPDATE pending_messages SET status = 'pending', started_processing_at_epoch = NULL WHERE status = 'processing' AND started_processing_at_epoch < ? - `); - result = stmt.run(cutoff); - } - if (result.changes > 0) { - logger.info("QUEUE", `RESET_STALE | count=${result.changes} | thresholdMs=${thresholdMs}${sessionDbId !== undefined ? ` | sessionDbId=${sessionDbId}` : ""}`); - } - return result.changes; - } - getAllPending(sessionDbId) { - const stmt = this.db.prepare(` + `),s=i.run(n)),s.changes>0&&y.info("QUEUE",`RESET_STALE | count=${s.changes} | thresholdMs=${e}${r!==void 0?` | sessionDbId=${r}`:""}`),s.changes}getAllPending(e){return this.db.prepare(` SELECT * FROM pending_messages WHERE session_db_id = ? AND status = 'pending' ORDER BY id ASC - `); - return stmt.all(sessionDbId); - } - getQueueMessages() { - const stmt = this.db.prepare(` + `).all(e)}getQueueMessages(){return this.db.prepare(` SELECT pm.*, ss.project FROM pending_messages pm LEFT JOIN sdk_sessions ss ON pm.content_session_id = ss.content_session_id @@ -31718,12203 +703,224 @@ class PendingMessageStore { WHEN 'pending' THEN 2 END, pm.created_at_epoch ASC - `); - return stmt.all(); - } - getStuckCount(thresholdMs) { - const cutoff = Date.now() - thresholdMs; - const stmt = this.db.prepare(` + `).all()}getStuckCount(e){let r=Date.now()-e;return this.db.prepare(` SELECT COUNT(*) as count FROM pending_messages WHERE status = 'processing' AND started_processing_at_epoch < ? - `); - const result = stmt.get(cutoff); - return result.count; - } - retryMessage(messageId) { - const stmt = this.db.prepare(` + `).get(r).count}retryMessage(e){return this.db.prepare(` UPDATE pending_messages SET status = 'pending', started_processing_at_epoch = NULL WHERE id = ? AND status IN ('pending', 'processing', 'failed') - `); - const result = stmt.run(messageId); - return result.changes > 0; - } - resetProcessingToPending(sessionDbId) { - const stmt = this.db.prepare(` + `).run(e).changes>0}resetProcessingToPending(e){return this.db.prepare(` UPDATE pending_messages SET status = 'pending', started_processing_at_epoch = NULL WHERE session_db_id = ? AND status = 'processing' - `); - const result = stmt.run(sessionDbId); - return result.changes; - } - markSessionMessagesFailed(sessionDbId) { - const now = Date.now(); - const stmt = this.db.prepare(` + `).run(e).changes}markSessionMessagesFailed(e){let r=Date.now();return this.db.prepare(` UPDATE pending_messages SET status = 'failed', failed_at_epoch = ? WHERE session_db_id = ? AND status = 'processing' - `); - const result = stmt.run(now, sessionDbId); - return result.changes; - } - markAllSessionMessagesAbandoned(sessionDbId) { - const now = Date.now(); - const stmt = this.db.prepare(` + `).run(r,e).changes}markAllSessionMessagesAbandoned(e){let r=Date.now();return this.db.prepare(` UPDATE pending_messages SET status = 'failed', failed_at_epoch = ? WHERE session_db_id = ? AND status IN ('pending', 'processing') - `); - const result = stmt.run(now, sessionDbId); - return result.changes; - } - abortMessage(messageId) { - const stmt = this.db.prepare("DELETE FROM pending_messages WHERE id = ?"); - const result = stmt.run(messageId); - return result.changes > 0; - } - retryAllStuck(thresholdMs) { - const cutoff = Date.now() - thresholdMs; - const stmt = this.db.prepare(` + `).run(r,e).changes}abortMessage(e){return this.db.prepare("DELETE FROM pending_messages WHERE id = ?").run(e).changes>0}retryAllStuck(e){let r=Date.now()-e;return this.db.prepare(` UPDATE pending_messages SET status = 'pending', started_processing_at_epoch = NULL WHERE status = 'processing' AND started_processing_at_epoch < ? - `); - const result = stmt.run(cutoff); - return result.changes; - } - getRecentlyProcessed(limit = 10, withinMinutes = 30) { - const cutoff = Date.now() - withinMinutes * 60 * 1000; - const stmt = this.db.prepare(` + `).run(r).changes}getRecentlyProcessed(e=10,r=30){let n=Date.now()-r*60*1e3;return this.db.prepare(` SELECT pm.*, ss.project FROM pending_messages pm LEFT JOIN sdk_sessions ss ON pm.content_session_id = ss.content_session_id WHERE pm.status = 'processed' AND pm.completed_at_epoch > ? ORDER BY pm.completed_at_epoch DESC LIMIT ? - `); - return stmt.all(cutoff, limit); - } - markFailed(messageId) { - const now = Date.now(); - const msg = this.db.prepare("SELECT retry_count FROM pending_messages WHERE id = ?").get(messageId); - if (!msg) - return; - if (msg.retry_count < this.maxRetries) { - const stmt = this.db.prepare(` + `).all(n,e)}markFailed(e){let r=Date.now(),n=this.db.prepare("SELECT retry_count FROM pending_messages WHERE id = ?").get(e);n&&(n.retry_count 0) { - logger.info("QUEUE", `STUCK_RESET | hasAnyPendingWork reset ${resetResult.changes} stuck processing message(s) older than 5 minutes`); - } - const stmt = this.db.prepare(` + `).run(e);return n.changes>0&&y.info("QUEUE",`STUCK_RESET | hasAnyPendingWork reset ${n.changes} stuck processing message(s) older than 5 minutes`),this.db.prepare(` SELECT COUNT(*) as count FROM pending_messages WHERE status IN ('pending', 'processing') - `); - const result = stmt.get(); - return result.count > 0; - } - getSessionsWithPendingMessages() { - const stmt = this.db.prepare(` + `).get().count>0}getSessionsWithPendingMessages(){return this.db.prepare(` SELECT DISTINCT session_db_id FROM pending_messages WHERE status IN ('pending', 'processing') - `); - const results = stmt.all(); - return results.map((r) => r.session_db_id); - } - getSessionInfoForMessage(messageId) { - const stmt = this.db.prepare(` + `).all().map(n=>n.session_db_id)}getSessionInfoForMessage(e){let n=this.db.prepare(` SELECT session_db_id, content_session_id FROM pending_messages WHERE id = ? - `); - const result = stmt.get(messageId); - return result ? { sessionDbId: result.session_db_id, contentSessionId: result.content_session_id } : null; - } - clearFailed() { - const stmt = this.db.prepare(` + `).get(e);return n?{sessionDbId:n.session_db_id,contentSessionId:n.content_session_id}:null}clearFailed(){return this.db.prepare(` DELETE FROM pending_messages WHERE status = 'failed' - `); - const result = stmt.run(); - return result.changes; - } - clearAll() { - const stmt = this.db.prepare(` + `).run().changes}clearAll(){return this.db.prepare(` DELETE FROM pending_messages WHERE status IN ('pending', 'processing', 'failed') - `); - const result = stmt.run(); - return result.changes; - } - toPendingMessage(persistent) { - return { - type: persistent.message_type, - tool_name: persistent.tool_name || undefined, - tool_input: persistent.tool_input ? JSON.parse(persistent.tool_input) : undefined, - tool_response: persistent.tool_response ? JSON.parse(persistent.tool_response) : undefined, - prompt_number: persistent.prompt_number || undefined, - cwd: persistent.cwd || undefined, - last_assistant_message: persistent.last_assistant_message || undefined - }; - } -} -var STALE_PROCESSING_THRESHOLD_MS = 60000; -var init_PendingMessageStore = __esm(() => { - init_logger(); -}); - -// src/services/domain/ModeManager.ts -var exports_ModeManager = {}; -__export(exports_ModeManager, { - ModeManager: () => ModeManager -}); -import { readFileSync as readFileSync12, existsSync as existsSync11 } from "fs"; -import { join as join7 } from "path"; - -class ModeManager { - static instance = null; - activeMode = null; - modesDir; - constructor() { - const packageRoot = getPackageRoot(); - const possiblePaths = [ - join7(packageRoot, "modes"), - join7(packageRoot, "..", "plugin", "modes") - ]; - const foundPath = possiblePaths.find((p) => existsSync11(p)); - this.modesDir = foundPath || possiblePaths[0]; - } - static getInstance() { - if (!ModeManager.instance) { - ModeManager.instance = new ModeManager; - } - return ModeManager.instance; - } - parseInheritance(modeId) { - const parts = modeId.split("--"); - if (parts.length === 1) { - return { hasParent: false, parentId: "", overrideId: "" }; - } - if (parts.length > 2) { - throw new Error(`Invalid mode inheritance: ${modeId}. Only one level of inheritance supported (parent--override)`); - } - return { - hasParent: true, - parentId: parts[0], - overrideId: modeId - }; - } - isPlainObject(value) { - return value !== null && typeof value === "object" && !Array.isArray(value); - } - deepMerge(base, override) { - const result = { ...base }; - for (const key in override) { - const overrideValue = override[key]; - const baseValue = base[key]; - if (this.isPlainObject(overrideValue) && this.isPlainObject(baseValue)) { - result[key] = this.deepMerge(baseValue, overrideValue); - } else { - result[key] = overrideValue; - } - } - return result; - } - loadModeFile(modeId) { - const modePath = join7(this.modesDir, `${modeId}.json`); - if (!existsSync11(modePath)) { - throw new Error(`Mode file not found: ${modePath}`); - } - const jsonContent = readFileSync12(modePath, "utf-8"); - return JSON.parse(jsonContent); - } - loadMode(modeId) { - const inheritance = this.parseInheritance(modeId); - if (!inheritance.hasParent) { - try { - const mode = this.loadModeFile(modeId); - this.activeMode = mode; - logger.debug("SYSTEM", `Loaded mode: ${mode.name} (${modeId})`, undefined, { - types: mode.observation_types.map((t) => t.id), - concepts: mode.observation_concepts.map((c) => c.id) - }); - return mode; - } catch (error2) { - logger.warn("SYSTEM", `Mode file not found: ${modeId}, falling back to 'code'`); - if (modeId === "code") { - throw new Error("Critical: code.json mode file missing"); - } - return this.loadMode("code"); - } - } - const { parentId, overrideId } = inheritance; - let parentMode; - try { - parentMode = this.loadMode(parentId); - } catch (error2) { - logger.warn("SYSTEM", `Parent mode '${parentId}' not found for ${modeId}, falling back to 'code'`); - parentMode = this.loadMode("code"); - } - let overrideConfig; - try { - overrideConfig = this.loadModeFile(overrideId); - logger.debug("SYSTEM", `Loaded override file: ${overrideId} for parent ${parentId}`); - } catch (error2) { - logger.warn("SYSTEM", `Override file '${overrideId}' not found, using parent mode '${parentId}' only`); - this.activeMode = parentMode; - return parentMode; - } - if (!overrideConfig) { - logger.warn("SYSTEM", `Invalid override file: ${overrideId}, using parent mode '${parentId}' only`); - this.activeMode = parentMode; - return parentMode; - } - const mergedMode = this.deepMerge(parentMode, overrideConfig); - this.activeMode = mergedMode; - logger.debug("SYSTEM", `Loaded mode with inheritance: ${mergedMode.name} (${modeId} = ${parentId} + ${overrideId})`, undefined, { - parent: parentId, - override: overrideId, - types: mergedMode.observation_types.map((t) => t.id), - concepts: mergedMode.observation_concepts.map((c) => c.id) - }); - return mergedMode; - } - getActiveMode() { - if (!this.activeMode) { - throw new Error("No mode loaded. Call loadMode() first."); - } - return this.activeMode; - } - getObservationTypes() { - return this.getActiveMode().observation_types; - } - getObservationConcepts() { - return this.getActiveMode().observation_concepts; - } - getTypeIcon(typeId) { - const type = this.getObservationTypes().find((t) => t.id === typeId); - return type?.emoji || "\uD83D\uDCDD"; - } - getWorkEmoji(typeId) { - const type = this.getObservationTypes().find((t) => t.id === typeId); - return type?.work_emoji || "\uD83D\uDCDD"; - } - validateType(typeId) { - return this.getObservationTypes().some((t) => t.id === typeId); - } - getTypeLabel(typeId) { - const type = this.getObservationTypes().find((t) => t.id === typeId); - return type?.label || typeId; - } -} -var init_ModeManager = __esm(() => { - init_logger(); - init_paths(); -}); - -// src/shared/timeline-formatting.ts -import path11 from "path"; -function parseJsonArray(json) { - if (!json) - return []; - try { - const parsed = JSON.parse(json); - return Array.isArray(parsed) ? parsed : []; - } catch (err) { - logger.debug("PARSER", "Failed to parse JSON array, using empty fallback", { - preview: json?.substring(0, 50) - }, err); - return []; - } -} -function formatDateTime(dateInput) { - const date4 = new Date(dateInput); - return date4.toLocaleString("en-US", { - month: "short", - day: "numeric", - hour: "numeric", - minute: "2-digit", - hour12: true - }); -} -function formatTime(dateInput) { - const date4 = new Date(dateInput); - return date4.toLocaleString("en-US", { - hour: "numeric", - minute: "2-digit", - hour12: true - }); -} -function formatDate(dateInput) { - const date4 = new Date(dateInput); - return date4.toLocaleString("en-US", { - month: "short", - day: "numeric", - year: "numeric" - }); -} -function toRelativePath(filePath, cwd) { - if (path11.isAbsolute(filePath)) { - return path11.relative(cwd, filePath); - } - return filePath; -} -function extractFirstFile(filesModified, cwd, filesRead) { - const modified = parseJsonArray(filesModified); - if (modified.length > 0) { - return toRelativePath(modified[0], cwd); - } - if (filesRead) { - const read = parseJsonArray(filesRead); - if (read.length > 0) { - return toRelativePath(read[0], cwd); - } - } - return "General"; -} -function estimateTokens(text) { - if (!text) - return 0; - return Math.ceil(text.length / 4); -} -function groupByDate(items, getDate) { - const itemsByDay = new Map; - for (const item of items) { - const itemDate = getDate(item); - const day = formatDate(itemDate); - if (!itemsByDay.has(day)) { - itemsByDay.set(day, []); - } - itemsByDay.get(day).push(item); - } - const sortedEntries = Array.from(itemsByDay.entries()).sort((a, b) => { - const aDate = new Date(a[0]).getTime(); - const bDate = new Date(b[0]).getTime(); - return aDate - bDate; - }); - return new Map(sortedEntries); -} -var init_timeline_formatting = __esm(() => { - init_logger(); -}); - -// src/utils/worktree.ts -import { statSync as statSync4, readFileSync as readFileSync17 } from "fs"; -import path17 from "path"; -function detectWorktree(cwd2) { - const gitPath = path17.join(cwd2, ".git"); - let stat; - try { - stat = statSync4(gitPath); - } catch { - return NOT_A_WORKTREE; - } - if (!stat.isFile()) { - return NOT_A_WORKTREE; - } - let content; - try { - content = readFileSync17(gitPath, "utf-8").trim(); - } catch { - return NOT_A_WORKTREE; - } - const match = content.match(/^gitdir:\s*(.+)$/); - if (!match) { - return NOT_A_WORKTREE; - } - const gitdirPath = match[1]; - const worktreesMatch = gitdirPath.match(/^(.+)[/\\]\.git[/\\]worktrees[/\\]([^/\\]+)$/); - if (!worktreesMatch) { - return NOT_A_WORKTREE; - } - const parentRepoPath = worktreesMatch[1]; - const worktreeName = path17.basename(cwd2); - const parentProjectName = path17.basename(parentRepoPath); - return { - isWorktree: true, - worktreeName, - parentRepoPath, - parentProjectName - }; -} -var NOT_A_WORKTREE; -var init_worktree = __esm(() => { - NOT_A_WORKTREE = { - isWorktree: false, - worktreeName: null, - parentRepoPath: null, - parentProjectName: null - }; -}); - -// src/utils/project-name.ts -import path18 from "path"; -function getProjectName(cwd2) { - if (!cwd2 || cwd2.trim() === "") { - logger.warn("PROJECT_NAME", "Empty cwd provided, using fallback", { cwd: cwd2 }); - return "unknown-project"; - } - const basename4 = path18.basename(cwd2); - if (basename4 === "") { - const isWindows = process.platform === "win32"; - if (isWindows) { - const driveMatch = cwd2.match(/^([A-Z]):\\/i); - if (driveMatch) { - const driveLetter = driveMatch[1].toUpperCase(); - const projectName = `drive-${driveLetter}`; - logger.info("PROJECT_NAME", "Drive root detected", { cwd: cwd2, projectName }); - return projectName; - } - } - logger.warn("PROJECT_NAME", "Root directory detected, using fallback", { cwd: cwd2 }); - return "unknown-project"; - } - return basename4; -} -function getProjectContext(cwd2) { - const primary = getProjectName(cwd2); - if (!cwd2) { - return { primary, parent: null, isWorktree: false, allProjects: [primary] }; - } - const worktreeInfo = detectWorktree(cwd2); - if (worktreeInfo.isWorktree && worktreeInfo.parentProjectName) { - return { - primary, - parent: worktreeInfo.parentProjectName, - isWorktree: true, - allProjects: [worktreeInfo.parentProjectName, primary] - }; - } - return { primary, parent: null, isWorktree: false, allProjects: [primary] }; -} -var init_project_name = __esm(() => { - init_logger(); - init_worktree(); -}); - -// src/services/context/ContextConfigLoader.ts -import path19 from "path"; -import { homedir as homedir15 } from "os"; -function loadContextConfig() { - const settingsPath = path19.join(homedir15(), ".claude-mem", "settings.json"); - const settings = SettingsDefaultsManager.loadFromFile(settingsPath); - const mode = ModeManager.getInstance().getActiveMode(); - const observationTypes = new Set(mode.observation_types.map((t) => t.id)); - const observationConcepts = new Set(mode.observation_concepts.map((c) => c.id)); - return { - totalObservationCount: parseInt(settings.CLAUDE_MEM_CONTEXT_OBSERVATIONS, 10), - fullObservationCount: parseInt(settings.CLAUDE_MEM_CONTEXT_FULL_COUNT, 10), - sessionCount: parseInt(settings.CLAUDE_MEM_CONTEXT_SESSION_COUNT, 10), - showReadTokens: settings.CLAUDE_MEM_CONTEXT_SHOW_READ_TOKENS === "true", - showWorkTokens: settings.CLAUDE_MEM_CONTEXT_SHOW_WORK_TOKENS === "true", - showSavingsAmount: settings.CLAUDE_MEM_CONTEXT_SHOW_SAVINGS_AMOUNT === "true", - showSavingsPercent: settings.CLAUDE_MEM_CONTEXT_SHOW_SAVINGS_PERCENT === "true", - observationTypes, - observationConcepts, - fullObservationField: settings.CLAUDE_MEM_CONTEXT_FULL_FIELD, - showLastSummary: settings.CLAUDE_MEM_CONTEXT_SHOW_LAST_SUMMARY === "true", - showLastMessage: settings.CLAUDE_MEM_CONTEXT_SHOW_LAST_MESSAGE === "true" - }; -} -var init_ContextConfigLoader = __esm(() => { - init_SettingsDefaultsManager(); - init_ModeManager(); -}); - -// src/services/context/types.ts -var colors, CHARS_PER_TOKEN_ESTIMATE4 = 4, SUMMARY_LOOKAHEAD = 1; -var init_types = __esm(() => { - colors = { - reset: "\x1B[0m", - bright: "\x1B[1m", - dim: "\x1B[2m", - cyan: "\x1B[36m", - green: "\x1B[32m", - yellow: "\x1B[33m", - blue: "\x1B[34m", - magenta: "\x1B[35m", - gray: "\x1B[90m", - red: "\x1B[31m" - }; -}); - -// src/services/context/TokenCalculator.ts -function calculateObservationTokens(obs) { - const obsSize = (obs.title?.length || 0) + (obs.subtitle?.length || 0) + (obs.narrative?.length || 0) + JSON.stringify(obs.facts || []).length; - return Math.ceil(obsSize / CHARS_PER_TOKEN_ESTIMATE4); -} -function calculateTokenEconomics(observations) { - const totalObservations = observations.length; - const totalReadTokens = observations.reduce((sum, obs) => { - return sum + calculateObservationTokens(obs); - }, 0); - const totalDiscoveryTokens = observations.reduce((sum, obs) => { - return sum + (obs.discovery_tokens || 0); - }, 0); - const savings = totalDiscoveryTokens - totalReadTokens; - const savingsPercent = totalDiscoveryTokens > 0 ? Math.round(savings / totalDiscoveryTokens * 100) : 0; - return { - totalObservations, - totalReadTokens, - totalDiscoveryTokens, - savings, - savingsPercent - }; -} -function getWorkEmoji(obsType) { - return ModeManager.getInstance().getWorkEmoji(obsType); -} -function formatObservationTokenDisplay(obs, config3) { - const readTokens = calculateObservationTokens(obs); - const discoveryTokens = obs.discovery_tokens || 0; - const workEmoji = getWorkEmoji(obs.type); - const discoveryDisplay = discoveryTokens > 0 ? `${workEmoji} ${discoveryTokens.toLocaleString()}` : "-"; - return { readTokens, discoveryTokens, discoveryDisplay, workEmoji }; -} -function shouldShowContextEconomics(config3) { - return config3.showReadTokens || config3.showWorkTokens || config3.showSavingsAmount || config3.showSavingsPercent; -} -var init_TokenCalculator = __esm(() => { - init_types(); - init_ModeManager(); -}); - -// src/services/context/ObservationCompiler.ts -import path20 from "path"; -import { existsSync as existsSync16, readFileSync as readFileSync18 } from "fs"; -function queryObservations(db, project, config3) { - const typeArray = Array.from(config3.observationTypes); - const typePlaceholders = typeArray.map(() => "?").join(","); - const conceptArray = Array.from(config3.observationConcepts); - const conceptPlaceholders = conceptArray.map(() => "?").join(","); - return db.db.prepare(` + `).run().changes}toPendingMessage(e){return{type:e.message_type,tool_name:e.tool_name||void 0,tool_input:e.tool_input?JSON.parse(e.tool_input):void 0,tool_response:e.tool_response?JSON.parse(e.tool_response):void 0,prompt_number:e.prompt_number||void 0,cwd:e.cwd||void 0,last_assistant_message:e.last_assistant_message||void 0}}}});var IU={};ln(IU,{ModeManager:()=>He});var Ld,lg,He,Br=Pe(()=>{"use strict";Ld=require("fs"),lg=require("path");oe();Nt();He=class t{static instance=null;activeMode=null;modesDir;constructor(){let e=tn(),r=[(0,lg.join)(e,"modes"),(0,lg.join)(e,"..","plugin","modes")],n=r.find(i=>(0,Ld.existsSync)(i));this.modesDir=n||r[0]}static getInstance(){return t.instance||(t.instance=new t),t.instance}parseInheritance(e){let r=e.split("--");if(r.length===1)return{hasParent:!1,parentId:"",overrideId:""};if(r.length>2)throw new Error(`Invalid mode inheritance: ${e}. Only one level of inheritance supported (parent--override)`);return{hasParent:!0,parentId:r[0],overrideId:e}}isPlainObject(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}deepMerge(e,r){let n={...e};for(let i in r){let s=r[i],o=e[i];this.isPlainObject(s)&&this.isPlainObject(o)?n[i]=this.deepMerge(o,s):n[i]=s}return n}loadModeFile(e){let r=(0,lg.join)(this.modesDir,`${e}.json`);if(!(0,Ld.existsSync)(r))throw new Error(`Mode file not found: ${r}`);let n=(0,Ld.readFileSync)(r,"utf-8");return JSON.parse(n)}loadMode(e){let r=this.parseInheritance(e);if(!r.hasParent)try{let c=this.loadModeFile(e);return this.activeMode=c,y.debug("SYSTEM",`Loaded mode: ${c.name} (${e})`,void 0,{types:c.observation_types.map(u=>u.id),concepts:c.observation_concepts.map(u=>u.id)}),c}catch{if(y.warn("SYSTEM",`Mode file not found: ${e}, falling back to 'code'`),e==="code")throw new Error("Critical: code.json mode file missing");return this.loadMode("code")}let{parentId:n,overrideId:i}=r,s;try{s=this.loadMode(n)}catch{y.warn("SYSTEM",`Parent mode '${n}' not found for ${e}, falling back to 'code'`),s=this.loadMode("code")}let o;try{o=this.loadModeFile(i),y.debug("SYSTEM",`Loaded override file: ${i} for parent ${n}`)}catch{return y.warn("SYSTEM",`Override file '${i}' not found, using parent mode '${n}' only`),this.activeMode=s,s}if(!o)return y.warn("SYSTEM",`Invalid override file: ${i}, using parent mode '${n}' only`),this.activeMode=s,s;let a=this.deepMerge(s,o);return this.activeMode=a,y.debug("SYSTEM",`Loaded mode with inheritance: ${a.name} (${e} = ${n} + ${i})`,void 0,{parent:n,override:i,types:a.observation_types.map(c=>c.id),concepts:a.observation_concepts.map(c=>c.id)}),a}getActiveMode(){if(!this.activeMode)throw new Error("No mode loaded. Call loadMode() first.");return this.activeMode}getObservationTypes(){return this.getActiveMode().observation_types}getObservationConcepts(){return this.getActiveMode().observation_concepts}getTypeIcon(e){return this.getObservationTypes().find(n=>n.id===e)?.emoji||"\u{1F4DD}"}getWorkEmoji(e){return this.getObservationTypes().find(n=>n.id===e)?.work_emoji||"\u{1F4DD}"}validateType(e){return this.getObservationTypes().some(r=>r.id===e)}getTypeLabel(e){return this.getObservationTypes().find(n=>n.id===e)?.label||e}}});function pg(t){if(!t)return[];try{let e=JSON.parse(t);return Array.isArray(e)?e:[]}catch(e){return y.debug("PARSER","Failed to parse JSON array, using empty fallback",{preview:t?.substring(0,50)},e),[]}}function _n(t){return new Date(t).toLocaleString("en-US",{month:"short",day:"numeric",hour:"numeric",minute:"2-digit",hour12:!0})}function lr(t){return new Date(t).toLocaleString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0})}function ns(t){return new Date(t).toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric"})}function PU(t,e){return dk.default.isAbsolute(t)?dk.default.relative(e,t):t}function ei(t,e,r){let n=pg(t);if(n.length>0)return PU(n[0],e);if(r){let i=pg(r);if(i.length>0)return PU(i[0],e)}return"General"}function Rc(t){return t?Math.ceil(t.length/4):0}function is(t,e){let r=new Map;for(let i of t){let s=e(i),o=ns(s);r.has(o)||r.set(o,[]),r.get(o).push(i)}let n=Array.from(r.entries()).sort((i,s)=>{let o=new Date(i[0]).getTime(),a=new Date(s[0]).getTime();return o-a});return new Map(n)}var dk,Lo=Pe(()=>{"use strict";dk=Ue(require("path"),1);oe()});function yq(t){let e=sv.default.join(t,".git"),r;try{r=(0,ov.statSync)(e)}catch{return vp}if(!r.isFile())return vp;let n;try{n=(0,ov.readFileSync)(e,"utf-8").trim()}catch{return vp}let i=n.match(/^gitdir:\s*(.+)$/);if(!i)return vp;let o=i[1].match(/^(.+)[/\\]\.git[/\\]worktrees[/\\]([^/\\]+)$/);if(!o)return vp;let a=o[1],c=sv.default.basename(t),u=sv.default.basename(a);return{isWorktree:!0,worktreeName:c,parentRepoPath:a,parentProjectName:u}}var ov,sv,vp,_q=Pe(()=>{"use strict";ov=require("fs"),sv=Ue(require("path"),1),vp={isWorktree:!1,worktreeName:null,parentRepoPath:null,parentProjectName:null}});function yp(t){if(!t||t.trim()==="")return y.warn("PROJECT_NAME","Empty cwd provided, using fallback",{cwd:t}),"unknown-project";let e=bq.default.basename(t);if(e===""){if(process.platform==="win32"){let n=t.match(/^([A-Z]):\\/i);if(n){let s=`drive-${n[1].toUpperCase()}`;return y.info("PROJECT_NAME","Drive root detected",{cwd:t,projectName:s}),s}}return y.warn("PROJECT_NAME","Root directory detected, using fallback",{cwd:t}),"unknown-project"}return e}function av(t){let e=yp(t);if(!t)return{primary:e,parent:null,isWorktree:!1,allProjects:[e]};let r=yq(t);return r.isWorktree&&r.parentProjectName?{primary:e,parent:r.parentProjectName,isWorktree:!0,allProjects:[r.parentProjectName,e]}:{primary:e,parent:null,isWorktree:!1,allProjects:[e]}}var bq,_p=Pe(()=>{"use strict";bq=Ue(require("path"),1);oe();_q()});function c$(){let t=xq.default.join((0,Sq.homedir)(),".claude-mem","settings.json"),e=_e.loadFromFile(t),r=He.getInstance().getActiveMode(),n=new Set(r.observation_types.map(s=>s.id)),i=new Set(r.observation_concepts.map(s=>s.id));return{totalObservationCount:parseInt(e.CLAUDE_MEM_CONTEXT_OBSERVATIONS,10),fullObservationCount:parseInt(e.CLAUDE_MEM_CONTEXT_FULL_COUNT,10),sessionCount:parseInt(e.CLAUDE_MEM_CONTEXT_SESSION_COUNT,10),showReadTokens:e.CLAUDE_MEM_CONTEXT_SHOW_READ_TOKENS==="true",showWorkTokens:e.CLAUDE_MEM_CONTEXT_SHOW_WORK_TOKENS==="true",showSavingsAmount:e.CLAUDE_MEM_CONTEXT_SHOW_SAVINGS_AMOUNT==="true",showSavingsPercent:e.CLAUDE_MEM_CONTEXT_SHOW_SAVINGS_PERCENT==="true",observationTypes:n,observationConcepts:i,fullObservationField:e.CLAUDE_MEM_CONTEXT_FULL_FIELD,showLastSummary:e.CLAUDE_MEM_CONTEXT_SHOW_LAST_SUMMARY==="true",showLastMessage:e.CLAUDE_MEM_CONTEXT_SHOW_LAST_MESSAGE==="true"}}var xq,Sq,u$=Pe(()=>{"use strict";xq=Ue(require("path"),1),Sq=require("os");Yt();Br()});var Y,wq,l$,bp=Pe(()=>{"use strict";Y={reset:"\x1B[0m",bright:"\x1B[1m",dim:"\x1B[2m",cyan:"\x1B[36m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m",gray:"\x1B[90m",red:"\x1B[31m"},wq=4,l$=1});function d$(t){let e=(t.title?.length||0)+(t.subtitle?.length||0)+(t.narrative?.length||0)+JSON.stringify(t.facts||[]).length;return Math.ceil(e/wq)}function p$(t){let e=t.length,r=t.reduce((o,a)=>o+d$(a),0),n=t.reduce((o,a)=>o+(a.discovery_tokens||0),0),i=n-r,s=n>0?Math.round(i/n*100):0;return{totalObservations:e,totalReadTokens:r,totalDiscoveryTokens:n,savings:i,savingsPercent:s}}function ege(t){return He.getInstance().getWorkEmoji(t)}function xp(t,e){let r=d$(t),n=t.discovery_tokens||0,i=ege(t.type),s=n>0?`${i} ${n.toLocaleString()}`:"-";return{readTokens:r,discoveryTokens:n,discoveryDisplay:s,workEmoji:i}}function cv(t){return t.showReadTokens||t.showWorkTokens||t.showSavingsAmount||t.showSavingsPercent}var Ko=Pe(()=>{"use strict";bp();Br()});function m$(t,e,r){let n=Array.from(r.observationTypes),i=n.map(()=>"?").join(","),s=Array.from(r.observationConcepts),o=s.map(()=>"?").join(",");return t.db.prepare(` SELECT id, memory_session_id, type, title, subtitle, narrative, facts, concepts, files_read, files_modified, discovery_tokens, created_at, created_at_epoch FROM observations WHERE project = ? - AND type IN (${typePlaceholders}) + AND type IN (${i}) AND EXISTS ( SELECT 1 FROM json_each(concepts) - WHERE value IN (${conceptPlaceholders}) + WHERE value IN (${o}) ) ORDER BY created_at_epoch DESC LIMIT ? - `).all(project, ...typeArray, ...conceptArray, config3.totalObservationCount); -} -function querySummaries(db, project, config3) { - return db.db.prepare(` + `).all(e,...n,...s,r.totalObservationCount)}function f$(t,e,r){return t.db.prepare(` SELECT id, memory_session_id, request, investigated, learned, completed, next_steps, created_at, created_at_epoch FROM session_summaries WHERE project = ? ORDER BY created_at_epoch DESC LIMIT ? - `).all(project, config3.sessionCount + SUMMARY_LOOKAHEAD); -} -function queryObservationsMulti(db, projects, config3) { - const typeArray = Array.from(config3.observationTypes); - const typePlaceholders = typeArray.map(() => "?").join(","); - const conceptArray = Array.from(config3.observationConcepts); - const conceptPlaceholders = conceptArray.map(() => "?").join(","); - const projectPlaceholders = projects.map(() => "?").join(","); - return db.db.prepare(` + `).all(e,r.sessionCount+l$)}function kq(t,e,r){let n=Array.from(r.observationTypes),i=n.map(()=>"?").join(","),s=Array.from(r.observationConcepts),o=s.map(()=>"?").join(","),a=e.map(()=>"?").join(",");return t.db.prepare(` SELECT id, memory_session_id, type, title, subtitle, narrative, facts, concepts, files_read, files_modified, discovery_tokens, created_at, created_at_epoch, project FROM observations - WHERE project IN (${projectPlaceholders}) - AND type IN (${typePlaceholders}) + WHERE project IN (${a}) + AND type IN (${i}) AND EXISTS ( SELECT 1 FROM json_each(concepts) - WHERE value IN (${conceptPlaceholders}) + WHERE value IN (${o}) ) ORDER BY created_at_epoch DESC LIMIT ? - `).all(...projects, ...typeArray, ...conceptArray, config3.totalObservationCount); -} -function querySummariesMulti(db, projects, config3) { - const projectPlaceholders = projects.map(() => "?").join(","); - return db.db.prepare(` + `).all(...e,...n,...s,r.totalObservationCount)}function $q(t,e,r){let n=e.map(()=>"?").join(",");return t.db.prepare(` SELECT id, memory_session_id, request, investigated, learned, completed, next_steps, created_at, created_at_epoch, project FROM session_summaries - WHERE project IN (${projectPlaceholders}) + WHERE project IN (${n}) ORDER BY created_at_epoch DESC LIMIT ? - `).all(...projects, config3.sessionCount + SUMMARY_LOOKAHEAD); -} -function cwdToDashed(cwd2) { - return cwd2.replace(/\//g, "-"); -} -function extractPriorMessages(transcriptPath) { - try { - if (!existsSync16(transcriptPath)) { - return { userMessage: "", assistantMessage: "" }; - } - const content = readFileSync18(transcriptPath, "utf-8").trim(); - if (!content) { - return { userMessage: "", assistantMessage: "" }; - } - const lines = content.split(` -`).filter((line) => line.trim()); - let lastAssistantMessage = ""; - for (let i = lines.length - 1;i >= 0; i--) { - try { - const line = lines[i]; - if (!line.includes('"type":"assistant"')) { - continue; - } - const entry = JSON.parse(line); - if (entry.type === "assistant" && entry.message?.content && Array.isArray(entry.message.content)) { - let text = ""; - for (const block of entry.message.content) { - if (block.type === "text") { - text += block.text; - } - } - text = text.replace(/[\s\S]*?<\/system-reminder>/g, "").trim(); - if (text) { - lastAssistantMessage = text; - break; - } - } - } catch (parseError) { - logger.debug("PARSER", "Skipping malformed transcript line", { lineIndex: i }, parseError); - continue; - } - } - return { userMessage: "", assistantMessage: lastAssistantMessage }; - } catch (error3) { - logger.failure("WORKER", `Failed to extract prior messages from transcript`, { transcriptPath }, error3); - return { userMessage: "", assistantMessage: "" }; - } -} -function getPriorSessionMessages(observations, config3, currentSessionId, cwd2) { - if (!config3.showLastMessage || observations.length === 0) { - return { userMessage: "", assistantMessage: "" }; - } - const priorSessionObs = observations.find((obs) => obs.memory_session_id !== currentSessionId); - if (!priorSessionObs) { - return { userMessage: "", assistantMessage: "" }; - } - const priorSessionId = priorSessionObs.memory_session_id; - const dashedCwd = cwdToDashed(cwd2); - const transcriptPath = path20.join(CLAUDE_CONFIG_DIR, "projects", dashedCwd, `${priorSessionId}.jsonl`); - return extractPriorMessages(transcriptPath); -} -function prepareSummariesForTimeline(displaySummaries, allSummaries) { - const mostRecentSummaryId = allSummaries[0]?.id; - return displaySummaries.map((summary, i) => { - const olderSummary = i === 0 ? null : allSummaries[i + 1]; - return { - ...summary, - displayEpoch: olderSummary ? olderSummary.created_at_epoch : summary.created_at_epoch, - displayTime: olderSummary ? olderSummary.created_at : summary.created_at, - shouldShowLink: summary.id !== mostRecentSummaryId - }; - }); -} -function buildTimeline(observations, summaries) { - const timeline = [ - ...observations.map((obs) => ({ type: "observation", data: obs })), - ...summaries.map((summary) => ({ type: "summary", data: summary })) - ]; - timeline.sort((a, b) => { - const aEpoch = a.type === "observation" ? a.data.created_at_epoch : a.data.displayEpoch; - const bEpoch = b.type === "observation" ? b.data.created_at_epoch : b.data.displayEpoch; - return aEpoch - bEpoch; - }); - return timeline; -} -function getFullObservationIds(observations, count) { - return new Set(observations.slice(0, count).map((obs) => obs.id)); -} -var init_ObservationCompiler = __esm(() => { - init_logger(); - init_paths(); - init_types(); -}); + `).all(...e,r.sessionCount+l$)}function tge(t){return t.replace(/\//g,"-")}function rge(t){try{if(!(0,uv.existsSync)(t))return{userMessage:"",assistantMessage:""};let e=(0,uv.readFileSync)(t,"utf-8").trim();if(!e)return{userMessage:"",assistantMessage:""};let r=e.split(` +`).filter(i=>i.trim()),n="";for(let i=r.length-1;i>=0;i--)try{let s=r[i];if(!s.includes('"type":"assistant"'))continue;let o=JSON.parse(s);if(o.type==="assistant"&&o.message?.content&&Array.isArray(o.message.content)){let a="";for(let c of o.message.content)c.type==="text"&&(a+=c.text);if(a=a.replace(/[\s\S]*?<\/system-reminder>/g,"").trim(),a){n=a;break}}}catch(s){y.debug("PARSER","Skipping malformed transcript line",{lineIndex:i},s);continue}return{userMessage:"",assistantMessage:n}}catch(e){return y.failure("WORKER","Failed to extract prior messages from transcript",{transcriptPath:t},e),{userMessage:"",assistantMessage:""}}}function h$(t,e,r,n){if(!e.showLastMessage||t.length===0)return{userMessage:"",assistantMessage:""};let i=t.find(c=>c.memory_session_id!==r);if(!i)return{userMessage:"",assistantMessage:""};let s=i.memory_session_id,o=tge(n),a=Eq.default.join(Wi,"projects",o,`${s}.jsonl`);return rge(a)}function Tq(t,e){let r=e[0]?.id;return t.map((n,i)=>{let s=i===0?null:e[i+1];return{...n,displayEpoch:s?s.created_at_epoch:n.created_at_epoch,displayTime:s?s.created_at:n.created_at,shouldShowLink:n.id!==r}})}function g$(t,e){let r=[...t.map(n=>({type:"observation",data:n})),...e.map(n=>({type:"summary",data:n}))];return r.sort((n,i)=>{let s=n.type==="observation"?n.data.created_at_epoch:n.data.displayEpoch,o=i.type==="observation"?i.data.created_at_epoch:i.data.displayEpoch;return s-o}),r}function Iq(t,e){return new Set(t.slice(0,e).map(r=>r.id))}var Eq,uv,v$=Pe(()=>{"use strict";Eq=Ue(require("path"),1),uv=require("fs");oe();Nt();bp()});function Rq(){let t=new Date,e=t.toLocaleDateString("en-CA"),r=t.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0}).toLowerCase().replace(" ",""),n=t.toLocaleTimeString("en-US",{timeZoneName:"short"}).split(" ").pop();return`${e} ${r} ${n}`}function Oq(t){return[`# $CMEM ${t} ${Rq()}`,""]}function Pq(){return[`Legend: \u{1F3AF}session ${He.getInstance().getActiveMode().observation_types.map(r=>`${r.emoji}${r.id}`).join(" ")}`,"Format: ID TIME TYPE TITLE","Fetch details: get_observations([IDs]) | Search: mem-search skill",""]}function Cq(){return[]}function Aq(){return[]}function Nq(t,e){let r=[],n=[`${t.totalObservations} obs (${t.totalReadTokens.toLocaleString()}t read)`,`${t.totalDiscoveryTokens.toLocaleString()}t work`];return t.totalDiscoveryTokens>0&&(e.showSavingsAmount||e.showSavingsPercent)&&(e.showSavingsPercent?n.push(`${t.savingsPercent}% savings`):e.showSavingsAmount&&n.push(`${t.savings.toLocaleString()}t saved`)),r.push(`Stats: ${n.join(" | ")}`),r.push(""),r}function Mq(t){return[`### ${t}`]}function Dq(t){return t.toLowerCase().replace(" am","a").replace(" pm","p")}function jq(t,e,r){let n=t.title||"Untitled",i=He.getInstance().getTypeIcon(t.type),s=e?Dq(e):'"';return`${t.id} ${s} ${i} ${n}`}function zq(t,e,r,n){let i=[],s=t.title||"Untitled",o=He.getInstance().getTypeIcon(t.type),a=e?Dq(e):'"',{readTokens:c,discoveryDisplay:u}=xp(t,n);i.push(`**${t.id}** ${a} ${o} **${s}**`),r&&i.push(r);let l=[];return n.showReadTokens&&l.push(`~${c}t`),n.showWorkTokens&&l.push(u),l.length>0&&i.push(l.join(" ")),i.push(""),i}function Lq(t,e){return[`S${t.id} ${t.request||"Session started"} (${e})`]}function Sp(t,e){return e?[`**${t}**: ${e}`,""]:[]}function Uq(t){return t.assistantMessage?["","---","","**Previously**","",`A: ${t.assistantMessage}`,""]:[]}function qq(t,e){return["",`Access ${Math.round(t/1e3)}k tokens of past work via get_observations([IDs]) or mem-search skill.`]}function Fq(t){return`# $CMEM ${t} ${Rq()} -// src/services/context/formatters/MarkdownFormatter.ts -function formatHeaderDateTime() { - const now = new Date; - const date5 = now.toLocaleDateString("en-CA"); - const time4 = now.toLocaleTimeString("en-US", { - hour: "numeric", - minute: "2-digit", - hour12: true - }).toLowerCase().replace(" ", ""); - const tz = now.toLocaleTimeString("en-US", { timeZoneName: "short" }).split(" ").pop(); - return `${date5} ${time4} ${tz}`; -} -function renderMarkdownHeader(project) { - return [ - `# $CMEM ${project} ${formatHeaderDateTime()}`, - "" - ]; -} -function renderMarkdownLegend() { - const mode = ModeManager.getInstance().getActiveMode(); - const typeLegendItems = mode.observation_types.map((t) => `${t.emoji}${t.id}`).join(" "); - return [ - `Legend: \uD83C\uDFAFsession ${typeLegendItems}`, - `Format: ID TIME TYPE TITLE`, - `Fetch details: get_observations([IDs]) | Search: mem-search skill`, - "" - ]; -} -function renderMarkdownColumnKey() { - return []; -} -function renderMarkdownContextIndex() { - return []; -} -function renderMarkdownContextEconomics(economics, config3) { - const output = []; - const parts = [ - `${economics.totalObservations} obs (${economics.totalReadTokens.toLocaleString()}t read)`, - `${economics.totalDiscoveryTokens.toLocaleString()}t work` - ]; - if (economics.totalDiscoveryTokens > 0 && (config3.showSavingsAmount || config3.showSavingsPercent)) { - if (config3.showSavingsPercent) { - parts.push(`${economics.savingsPercent}% savings`); - } else if (config3.showSavingsAmount) { - parts.push(`${economics.savings.toLocaleString()}t saved`); - } - } - output.push(`Stats: ${parts.join(" | ")}`); - output.push(""); - return output; -} -function renderMarkdownDayHeader(day) { - return [ - `### ${day}` - ]; -} -function compactTime(time4) { - return time4.toLowerCase().replace(" am", "a").replace(" pm", "p"); -} -function renderMarkdownTableRow(obs, timeDisplay, _config) { - const title = obs.title || "Untitled"; - const icon = ModeManager.getInstance().getTypeIcon(obs.type); - const time4 = timeDisplay ? compactTime(timeDisplay) : '"'; - return `${obs.id} ${time4} ${icon} ${title}`; -} -function renderMarkdownFullObservation(obs, timeDisplay, detailField, config3) { - const output = []; - const title = obs.title || "Untitled"; - const icon = ModeManager.getInstance().getTypeIcon(obs.type); - const time4 = timeDisplay ? compactTime(timeDisplay) : '"'; - const { readTokens, discoveryDisplay } = formatObservationTokenDisplay(obs, config3); - output.push(`**${obs.id}** ${time4} ${icon} **${title}**`); - if (detailField) { - output.push(detailField); - } - const tokenParts = []; - if (config3.showReadTokens) { - tokenParts.push(`~${readTokens}t`); - } - if (config3.showWorkTokens) { - tokenParts.push(discoveryDisplay); - } - if (tokenParts.length > 0) { - output.push(tokenParts.join(" ")); - } - output.push(""); - return output; -} -function renderMarkdownSummaryItem(summary, formattedTime) { - return [ - `S${summary.id} ${summary.request || "Session started"} (${formattedTime})` - ]; -} -function renderMarkdownSummaryField(label, value) { - if (!value) - return []; - return [`**${label}**: ${value}`, ""]; -} -function renderMarkdownPreviouslySection(priorMessages) { - if (!priorMessages.assistantMessage) - return []; - return [ - "", - "---", - "", - `**Previously**`, - "", - `A: ${priorMessages.assistantMessage}`, - "" - ]; -} -function renderMarkdownFooter(totalDiscoveryTokens, totalReadTokens) { - const workTokensK = Math.round(totalDiscoveryTokens / 1000); - return [ - "", - `Access ${workTokensK}k tokens of past work via get_observations([IDs]) or mem-search skill.` - ]; -} -function renderMarkdownEmptyState(project) { - return `# $CMEM ${project} ${formatHeaderDateTime()} +No previous sessions found.`}var ru=Pe(()=>{"use strict";Br();Ko()});function Hq(){let t=new Date,e=t.toLocaleDateString("en-CA"),r=t.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0}).toLowerCase().replace(" ",""),n=t.toLocaleTimeString("en-US",{timeZoneName:"short"}).split(" ").pop();return`${e} ${r} ${n}`}function Zq(t){return["",`${Y.bright}${Y.cyan}[${t}] recent context, ${Hq()}${Y.reset}`,`${Y.gray}${"\u2500".repeat(60)}${Y.reset}`,""]}function Bq(){let e=He.getInstance().getActiveMode().observation_types.map(r=>`${r.emoji} ${r.id}`).join(" | ");return[`${Y.dim}Legend: session-request | ${e}${Y.reset}`,""]}function Vq(){return[`${Y.bright}Column Key${Y.reset}`,`${Y.dim} Read: Tokens to read this observation (cost to learn it now)${Y.reset}`,`${Y.dim} Work: Tokens spent on work that produced this record ( research, building, deciding)${Y.reset}`,""]}function Gq(){return[`${Y.dim}Context Index: This semantic index (titles, types, files, tokens) is usually sufficient to understand past work.${Y.reset}`,"",`${Y.dim}When you need implementation details, rationale, or debugging context:${Y.reset}`,`${Y.dim} - Fetch by ID: get_observations([IDs]) for observations visible in this index${Y.reset}`,`${Y.dim} - Search history: Use the mem-search skill for past decisions, bugs, and deeper research${Y.reset}`,`${Y.dim} - Trust this index over re-reading code for past decisions and learnings${Y.reset}`,""]}function Wq(t,e){let r=[];if(r.push(`${Y.bright}${Y.cyan}Context Economics${Y.reset}`),r.push(`${Y.dim} Loading: ${t.totalObservations} observations (${t.totalReadTokens.toLocaleString()} tokens to read)${Y.reset}`),r.push(`${Y.dim} Work investment: ${t.totalDiscoveryTokens.toLocaleString()} tokens spent on research, building, and decisions${Y.reset}`),t.totalDiscoveryTokens>0&&(e.showSavingsAmount||e.showSavingsPercent)){let n=" Your savings: ";e.showSavingsAmount&&e.showSavingsPercent?n+=`${t.savings.toLocaleString()} tokens (${t.savingsPercent}% reduction from reuse)`:e.showSavingsAmount?n+=`${t.savings.toLocaleString()} tokens`:n+=`${t.savingsPercent}% reduction from reuse`,r.push(`${Y.green}${n}${Y.reset}`)}return r.push(""),r}function Kq(t){return[`${Y.bright}${Y.cyan}${t}${Y.reset}`,""]}function Jq(t){return[`${Y.dim}${t}${Y.reset}`]}function Xq(t,e,r,n){let i=t.title||"Untitled",s=He.getInstance().getTypeIcon(t.type),{readTokens:o,discoveryTokens:a,workEmoji:c}=xp(t,n),u=r?`${Y.dim}${e}${Y.reset}`:" ".repeat(e.length),l=n.showReadTokens&&o>0?`${Y.dim}(~${o}t)${Y.reset}`:"",d=n.showWorkTokens&&a>0?`${Y.dim}(${c} ${a.toLocaleString()}t)${Y.reset}`:"";return` ${Y.dim}#${t.id}${Y.reset} ${u} ${s} ${i} ${l} ${d}`}function Yq(t,e,r,n,i){let s=[],o=t.title||"Untitled",a=He.getInstance().getTypeIcon(t.type),{readTokens:c,discoveryTokens:u,workEmoji:l}=xp(t,i),d=r?`${Y.dim}${e}${Y.reset}`:" ".repeat(e.length),p=i.showReadTokens&&c>0?`${Y.dim}(~${c}t)${Y.reset}`:"",m=i.showWorkTokens&&u>0?`${Y.dim}(${l} ${u.toLocaleString()}t)${Y.reset}`:"";return s.push(` ${Y.dim}#${t.id}${Y.reset} ${d} ${a} ${Y.bright}${o}${Y.reset}`),n&&s.push(` ${Y.dim}${n}${Y.reset}`),(p||m)&&s.push(` ${p} ${m}`),s.push(""),s}function Qq(t,e){let r=`${t.request||"Session started"} (${e})`;return[`${Y.yellow}#S${t.id}${Y.reset} ${r}`,""]}function wp(t,e,r){return e?[`${r}${t}:${Y.reset} ${e}`,""]:[]}function e9(t){return t.assistantMessage?["","---","",`${Y.bright}${Y.magenta}Previously${Y.reset}`,"",`${Y.dim}A: ${t.assistantMessage}${Y.reset}`,""]:[]}function t9(t,e){let r=Math.round(t/1e3);return["",`${Y.dim}Access ${r}k tokens of past research & decisions for just ${e.toLocaleString()}t. Use the claude-mem skill to access memories by ID.${Y.reset}`]}function r9(t){return` +${Y.bright}${Y.cyan}[${t}] recent context, ${Hq()}${Y.reset} +${Y.gray}${"\u2500".repeat(60)}${Y.reset} -No previous sessions found.`; -} -var init_MarkdownFormatter = __esm(() => { - init_ModeManager(); - init_TokenCalculator(); -}); +${Y.dim}No previous sessions found for this project yet.${Y.reset} +`}var nu=Pe(()=>{"use strict";bp();Br();Ko()});function n9(t,e,r,n){let i=[];return n?i.push(...Zq(t)):i.push(...Oq(t)),n?i.push(...Bq()):i.push(...Pq()),n?i.push(...Vq()):i.push(...Cq()),n?i.push(...Gq()):i.push(...Aq()),cv(r)&&(n?i.push(...Wq(e,r)):i.push(...Nq(e,r))),i}var i9=Pe(()=>{"use strict";Ko();ru();nu()});function nge(t){let e=new Map;for(let n of t){let i=n.type==="observation"?n.data.created_at:n.data.displayTime,s=ns(i);e.has(s)||e.set(s,[]),e.get(s).push(n)}let r=Array.from(e.entries()).sort((n,i)=>{let s=new Date(n[0]).getTime(),o=new Date(i[0]).getTime();return s-o});return new Map(r)}function s9(t,e){return e.fullObservationField==="narrative"?t.narrative:t.facts?pg(t.facts).join(` +`):null}function ige(t,e,r,n){let i=[];i.push(...Mq(t));let s="";for(let o of e)if(o.type==="summary"){s="";let a=o.data,c=_n(a.displayTime);i.push(...Lq(a,c))}else{let a=o.data,c=lr(a.created_at),l=c!==s?c:"";if(s=c,r.has(a.id)){let p=s9(a,n);i.push(...zq(a,l,p,n))}else i.push(jq(a,l,n))}return i}function sge(t,e,r,n,i){let s=[];s.push(...Kq(t));let o=null,a="";for(let c of e)if(c.type==="summary"){o=null,a="";let u=c.data,l=_n(u.displayTime);s.push(...Qq(u,l))}else{let u=c.data,l=ei(u.files_modified,i,u.files_read),d=lr(u.created_at),p=d!==a;a=d;let m=r.has(u.id);if(l!==o&&(s.push(...Jq(l)),o=l),m){let f=s9(u,n);s.push(...Yq(u,d,p,f,n))}else s.push(Xq(u,d,p,n))}return s.push(""),s}function oge(t,e,r,n,i,s){return s?sge(t,e,r,n,i):ige(t,e,r,n)}function o9(t,e,r,n,i){let s=[],o=nge(t);for(let[a,c]of o)s.push(...oge(a,c,e,r,n,i));return s}var a9=Pe(()=>{"use strict";Lo();ru();nu()});function c9(t,e,r){return!(!t.showLastSummary||!e||!!!(e.investigated||e.learned||e.completed||e.next_steps)||r&&e.created_at_epoch<=r.created_at_epoch)}function u9(t,e){let r=[];return e?(r.push(...wp("Investigated",t.investigated,Y.blue)),r.push(...wp("Learned",t.learned,Y.yellow)),r.push(...wp("Completed",t.completed,Y.green)),r.push(...wp("Next Steps",t.next_steps,Y.magenta))):(r.push(...Sp("Investigated",t.investigated)),r.push(...Sp("Learned",t.learned)),r.push(...Sp("Completed",t.completed)),r.push(...Sp("Next Steps",t.next_steps))),r}var l9=Pe(()=>{"use strict";bp();ru();nu()});function d9(t,e){return e?e9(t):Uq(t)}function p9(t,e,r){return!cv(e)||t.totalDiscoveryTokens<=0||t.savings<=0?[]:r?t9(t.totalDiscoveryTokens,t.totalReadTokens):qq(t.totalDiscoveryTokens,t.totalReadTokens)}var m9=Pe(()=>{"use strict";Ko();ru();nu()});function cge(){try{return new Yi}catch(t){if(t.code==="ERR_DLOPEN_FAILED"){try{(0,g9.unlinkSync)(age)}catch(e){y.debug("SYSTEM","Marker file cleanup failed (may not exist)",{},e)}return y.error("SYSTEM","Native module rebuild needed - restart Claude Code to auto-fix"),null}throw t}}function uge(t,e){return e?r9(t):Fq(t)}function lge(t,e,r,n,i,s,o){let a=[],c=p$(e);a.push(...n9(t,c,n,o));let u=r.slice(0,n.sessionCount),l=Tq(u,r),d=g$(e,l),p=Iq(e,n.fullObservationCount);a.push(...o9(d,p,n,i,o));let m=r[0],f=e[0];c9(n,m,f)&&a.push(...u9(m,o));let g=h$(e,n,s,i);return a.push(...d9(g,o)),a.push(...p9(c,n,o)),a.join(` +`).trimEnd()}async function y$(t,e=!1){let r=c$(),n=t?.cwd??process.cwd(),i=yp(n),s=t?.projects||[i];t?.full&&(r.totalObservationCount=999999,r.sessionCount=999999);let o=cge();if(!o)return"";try{let a=s.length>1?kq(o,s,r):m$(o,i,r),c=s.length>1?$q(o,s,r):f$(o,i,r);return a.length===0&&c.length===0?uge(i,e):lge(i,a,c,r,n,t?.session_id,e)}finally{o.close()}}var f9,h9,g9,age,v9=Pe(()=>{"use strict";f9=Ue(require("path"),1),h9=require("os"),g9=require("fs");Zf();oe();_p();u$();Ko();v$();i9();a9();l9();m9();ru();nu();age=f9.default.join((0,h9.homedir)(),".claude","plugins","marketplaces","thedotmack","plugin",".install-version")});var y9=Pe(()=>{"use strict";v9();u$();Ko();v$()});var _$={};ln(_$,{generateContext:()=>y$});var b$=Pe(()=>{"use strict";y9()});function mge(){try{let t=process.stdin;return t.isTTY?!1:(t.readable,!0)}catch{return!1}}function fge(t){let e=t.trim();if(!e)return{success:!1};try{return{success:!0,value:JSON.parse(e)}}catch{return{success:!1}}}async function w9(){if(mge())return new Promise((t,e)=>{let r="",n=!1,i=null,s=()=>{try{process.stdin.removeAllListeners("data"),process.stdin.removeAllListeners("end"),process.stdin.removeAllListeners("error")}catch{}},o=l=>{n||(n=!0,i&&clearTimeout(i),clearTimeout(u),s(),t(l))},a=l=>{n||(n=!0,i&&clearTimeout(i),clearTimeout(u),s(),e(l))},c=()=>{let l=fge(r);return l.success?(o(l.value),!0):!1},u=setTimeout(()=>{n||c()||(r.trim()?a(new Error(`Incomplete JSON after ${S9}ms: ${r.slice(0,100)}...`)):o(void 0))},S9);try{process.stdin.on("data",l=>{r+=l,i&&(clearTimeout(i),i=null),!c()&&(i=setTimeout(()=>{c()},hge))}),process.stdin.on("end",()=>{n||c()||o((r.trim(),void 0))}),process.stdin.on("error",()=>{n||o(void 0)})}catch{n=!0,clearTimeout(u),s(),t(void 0)}})}var S9,hge,E9=Pe(()=>{"use strict";S9=3e4,hge=50});var k9,$9=Pe(()=>{"use strict";k9={normalizeInput(t){let e=t??{};return{sessionId:e.session_id??e.id??e.sessionId,cwd:e.cwd??process.cwd(),prompt:e.prompt,toolName:e.tool_name,toolInput:e.tool_input,toolResponse:e.tool_response,transcriptPath:e.transcript_path}},formatOutput(t){let e=t??{};if(e.hookSpecificOutput){let n={hookSpecificOutput:t.hookSpecificOutput};return e.systemMessage&&(n.systemMessage=e.systemMessage),n}let r={};return e.systemMessage&&(r.systemMessage=e.systemMessage),r}}});var T9,I9=Pe(()=>{"use strict";T9={normalizeInput(t){let e=t??{},r=!!e.command&&!e.tool_name;return{sessionId:e.conversation_id||e.generation_id||e.id,cwd:e.workspace_roots?.[0]??e.cwd??process.cwd(),prompt:e.prompt??e.query??e.input??e.message,toolName:r?"Bash":e.tool_name,toolInput:r?{command:e.command}:e.tool_input,toolResponse:r?{output:e.output}:e.result_json,transcriptPath:void 0,filePath:e.file_path,edits:e.edits}},formatOutput(t){return{continue:t.continue??!0}}}});var k$,R9=Pe(()=>{"use strict";k$={normalizeInput(t){let e=t;return{sessionId:e.sessionId??e.session_id??"unknown",cwd:e.cwd??process.cwd(),prompt:e.prompt,toolName:e.toolName??e.tool_name,toolInput:e.toolInput??e.tool_input,toolResponse:e.toolResponse??e.tool_response,transcriptPath:e.transcriptPath??e.transcript_path,filePath:e.filePath??e.file_path,edits:e.edits}},formatOutput(t){return t}}});function O9(t){switch(t){case"claude-code":return k9;case"cursor":return T9;case"raw":return k$;default:return k$}}var P9=Pe(()=>{"use strict";$9();I9();R9()});var $$,T$=Pe(()=>{"use strict";Or();_p();en();oe();Yt();Nt();$$={async execute(t){if(!await Rr())return{hookSpecificOutput:{hookEventName:"SessionStart",additionalContext:""},exitCode:tt.SUCCESS};let r=t.cwd??process.cwd(),n=av(r),i=Fr(),o=_e.loadFromFile(At).CLAUDE_MEM_CONTEXT_SHOW_TERMINAL_OUTPUT==="true",a=n.allProjects.join(","),c=`/api/context/inject?projects=${encodeURIComponent(a)}`,u=`${c}&colors=true`;try{let[l,d]=await Promise.all([wt(c),o?wt(u).catch(()=>null):Promise.resolve(null)]);if(!l.ok)return y.warn("HOOK","Context generation failed, returning empty",{status:l.status}),{hookSpecificOutput:{hookEventName:"SessionStart",additionalContext:""},exitCode:tt.SUCCESS};let[p,m]=await Promise.all([l.text(),d?.ok?d.text():Promise.resolve("")]),f=p.trim(),g=m.trim(),h=o&&g?`${g} -// src/services/context/formatters/ColorFormatter.ts -function formatHeaderDateTime2() { - const now = new Date; - const date5 = now.toLocaleDateString("en-CA"); - const time4 = now.toLocaleTimeString("en-US", { - hour: "numeric", - minute: "2-digit", - hour12: true - }).toLowerCase().replace(" ", ""); - const tz = now.toLocaleTimeString("en-US", { timeZoneName: "short" }).split(" ").pop(); - return `${date5} ${time4} ${tz}`; -} -function renderColorHeader(project) { - return [ - "", - `${colors.bright}${colors.cyan}[${project}] recent context, ${formatHeaderDateTime2()}${colors.reset}`, - `${colors.gray}${"─".repeat(60)}${colors.reset}`, - "" - ]; -} -function renderColorLegend() { - const mode = ModeManager.getInstance().getActiveMode(); - const typeLegendItems = mode.observation_types.map((t) => `${t.emoji} ${t.id}`).join(" | "); - return [ - `${colors.dim}Legend: session-request | ${typeLegendItems}${colors.reset}`, - "" - ]; -} -function renderColorColumnKey() { - return [ - `${colors.bright}Column Key${colors.reset}`, - `${colors.dim} Read: Tokens to read this observation (cost to learn it now)${colors.reset}`, - `${colors.dim} Work: Tokens spent on work that produced this record ( research, building, deciding)${colors.reset}`, - "" - ]; -} -function renderColorContextIndex() { - return [ - `${colors.dim}Context Index: This semantic index (titles, types, files, tokens) is usually sufficient to understand past work.${colors.reset}`, - "", - `${colors.dim}When you need implementation details, rationale, or debugging context:${colors.reset}`, - `${colors.dim} - Fetch by ID: get_observations([IDs]) for observations visible in this index${colors.reset}`, - `${colors.dim} - Search history: Use the mem-search skill for past decisions, bugs, and deeper research${colors.reset}`, - `${colors.dim} - Trust this index over re-reading code for past decisions and learnings${colors.reset}`, - "" - ]; -} -function renderColorContextEconomics(economics, config3) { - const output = []; - output.push(`${colors.bright}${colors.cyan}Context Economics${colors.reset}`); - output.push(`${colors.dim} Loading: ${economics.totalObservations} observations (${economics.totalReadTokens.toLocaleString()} tokens to read)${colors.reset}`); - output.push(`${colors.dim} Work investment: ${economics.totalDiscoveryTokens.toLocaleString()} tokens spent on research, building, and decisions${colors.reset}`); - if (economics.totalDiscoveryTokens > 0 && (config3.showSavingsAmount || config3.showSavingsPercent)) { - let savingsLine = " Your savings: "; - if (config3.showSavingsAmount && config3.showSavingsPercent) { - savingsLine += `${economics.savings.toLocaleString()} tokens (${economics.savingsPercent}% reduction from reuse)`; - } else if (config3.showSavingsAmount) { - savingsLine += `${economics.savings.toLocaleString()} tokens`; - } else { - savingsLine += `${economics.savingsPercent}% reduction from reuse`; - } - output.push(`${colors.green}${savingsLine}${colors.reset}`); - } - output.push(""); - return output; -} -function renderColorDayHeader(day) { - return [ - `${colors.bright}${colors.cyan}${day}${colors.reset}`, - "" - ]; -} -function renderColorFileHeader(file) { - return [ - `${colors.dim}${file}${colors.reset}` - ]; -} -function renderColorTableRow(obs, time4, showTime, config3) { - const title = obs.title || "Untitled"; - const icon = ModeManager.getInstance().getTypeIcon(obs.type); - const { readTokens, discoveryTokens, workEmoji } = formatObservationTokenDisplay(obs, config3); - const timePart = showTime ? `${colors.dim}${time4}${colors.reset}` : " ".repeat(time4.length); - const readPart = config3.showReadTokens && readTokens > 0 ? `${colors.dim}(~${readTokens}t)${colors.reset}` : ""; - const discoveryPart = config3.showWorkTokens && discoveryTokens > 0 ? `${colors.dim}(${workEmoji} ${discoveryTokens.toLocaleString()}t)${colors.reset}` : ""; - return ` ${colors.dim}#${obs.id}${colors.reset} ${timePart} ${icon} ${title} ${readPart} ${discoveryPart}`; -} -function renderColorFullObservation(obs, time4, showTime, detailField, config3) { - const output = []; - const title = obs.title || "Untitled"; - const icon = ModeManager.getInstance().getTypeIcon(obs.type); - const { readTokens, discoveryTokens, workEmoji } = formatObservationTokenDisplay(obs, config3); - const timePart = showTime ? `${colors.dim}${time4}${colors.reset}` : " ".repeat(time4.length); - const readPart = config3.showReadTokens && readTokens > 0 ? `${colors.dim}(~${readTokens}t)${colors.reset}` : ""; - const discoveryPart = config3.showWorkTokens && discoveryTokens > 0 ? `${colors.dim}(${workEmoji} ${discoveryTokens.toLocaleString()}t)${colors.reset}` : ""; - output.push(` ${colors.dim}#${obs.id}${colors.reset} ${timePart} ${icon} ${colors.bright}${title}${colors.reset}`); - if (detailField) { - output.push(` ${colors.dim}${detailField}${colors.reset}`); - } - if (readPart || discoveryPart) { - output.push(` ${readPart} ${discoveryPart}`); - } - output.push(""); - return output; -} -function renderColorSummaryItem(summary, formattedTime) { - const summaryTitle = `${summary.request || "Session started"} (${formattedTime})`; - return [ - `${colors.yellow}#S${summary.id}${colors.reset} ${summaryTitle}`, - "" - ]; -} -function renderColorSummaryField(label, value, color) { - if (!value) - return []; - return [`${color}${label}:${colors.reset} ${value}`, ""]; -} -function renderColorPreviouslySection(priorMessages) { - if (!priorMessages.assistantMessage) - return []; - return [ - "", - "---", - "", - `${colors.bright}${colors.magenta}Previously${colors.reset}`, - "", - `${colors.dim}A: ${priorMessages.assistantMessage}${colors.reset}`, - "" - ]; -} -function renderColorFooter(totalDiscoveryTokens, totalReadTokens) { - const workTokensK = Math.round(totalDiscoveryTokens / 1000); - return [ - "", - `${colors.dim}Access ${workTokensK}k tokens of past research & decisions for just ${totalReadTokens.toLocaleString()}t. Use the claude-mem skill to access memories by ID.${colors.reset}` - ]; -} -function renderColorEmptyState(project) { - return ` -${colors.bright}${colors.cyan}[${project}] recent context, ${formatHeaderDateTime2()}${colors.reset} -${colors.gray}${"─".repeat(60)}${colors.reset} +View Observations Live @ http://localhost:${i}`:void 0;return{hookSpecificOutput:{hookEventName:"SessionStart",additionalContext:f},systemMessage:h}}catch(l){return y.warn("HOOK","Context fetch error, returning empty",{error:l instanceof Error?l.message:String(l)}),{hookSpecificOutput:{hookEventName:"SessionStart",additionalContext:""},exitCode:tt.SUCCESS}}}}});function gge(t){let e=t.startsWith("~")?(0,C9.homedir)()+t.slice(1):t;e=e.replace(/\\/g,"/");let r=e.replace(/[.+^${}()|[\]\\]/g,"\\$&");return r=r.replace(/\*\*/g,"<<>>").replace(/\*/g,"[^/]*").replace(/\?/g,"[^/]").replace(/<<>>/g,".*"),new RegExp(`^${r}$`)}function iu(t,e){if(!e||!e.trim())return!1;let r=t.replace(/\\/g,"/"),n=e.split(",").map(i=>i.trim()).filter(Boolean);for(let i of n)try{if(gge(i).test(r))return!0}catch{continue}return!1}var C9,_v=Pe(()=>{"use strict";C9=require("os")});var I$,R$=Pe(()=>{"use strict";Or();_p();oe();en();_v();Yt();Nt();I$={async execute(t){if(!await Rr())return{continue:!0,suppressOutput:!0,exitCode:tt.SUCCESS};let{sessionId:r,cwd:n,prompt:i}=t;if(!r)return y.warn("HOOK","session-init: No sessionId provided, skipping (Codex CLI or unknown platform)"),{continue:!0,suppressOutput:!0,exitCode:tt.SUCCESS};let s=_e.loadFromFile(At);if(n&&iu(n,s.CLAUDE_MEM_EXCLUDED_PROJECTS))return y.info("HOOK","Project excluded from tracking",{cwd:n}),{continue:!0,suppressOutput:!0};let o=!i||!i.trim()?"[media prompt]":i,a=yp(n);y.debug("HOOK","session-init: Calling /api/sessions/init",{contentSessionId:r,project:a});let c=await wt("/api/sessions/init",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({contentSessionId:r,project:a,prompt:o})});if(!c.ok)return y.failure("HOOK",`Session initialization failed: ${c.status}`,{contentSessionId:r,project:a}),{continue:!0,suppressOutput:!0,exitCode:tt.SUCCESS};let u=await c.json(),l=u.sessionDbId,d=u.promptNumber;if(y.debug("HOOK","session-init: Received from /api/sessions/init",{sessionDbId:l,promptNumber:d,skipped:u.skipped,contextInjected:u.contextInjected}),y.debug("HOOK",`[ALIGNMENT] Hook Entry | contentSessionId=${r} | prompt#=${d} | sessionDbId=${l}`),u.skipped&&u.reason==="private")return y.info("HOOK",`INIT_COMPLETE | sessionDbId=${l} | promptNumber=${d} | skipped=true | reason=private`,{sessionId:l}),{continue:!0,suppressOutput:!0};if(u.contextInjected)return y.info("HOOK",`INIT_COMPLETE | sessionDbId=${l} | promptNumber=${d} | skipped_agent_init=true | reason=context_already_injected`,{sessionId:l}),{continue:!0,suppressOutput:!0};if(t.platform!=="cursor"&&l){let p=o.startsWith("/")?o.substring(1):o;y.debug("HOOK","session-init: Calling /sessions/{sessionDbId}/init",{sessionDbId:l,promptNumber:d});let m=await wt(`/sessions/${l}/init`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userPrompt:p,promptNumber:d})});m.ok||y.failure("HOOK",`SDK agent start failed: ${m.status}`,{sessionDbId:l,promptNumber:d})}else t.platform==="cursor"&&y.debug("HOOK","session-init: Skipping SDK agent init for Cursor platform",{sessionDbId:l,promptNumber:d});return y.info("HOOK",`INIT_COMPLETE | sessionDbId=${l} | promptNumber=${d} | project=${a}`,{sessionId:l}),{continue:!0,suppressOutput:!0}}}});var O$,P$=Pe(()=>{"use strict";Or();oe();en();_v();Yt();Nt();O$={async execute(t){if(!await Rr())return{continue:!0,suppressOutput:!0,exitCode:tt.SUCCESS};let{sessionId:r,cwd:n,toolName:i,toolInput:s,toolResponse:o}=t;if(!i)return{continue:!0,suppressOutput:!0,exitCode:tt.SUCCESS};let a=y.formatTool(i,s);if(y.dataIn("HOOK",`PostToolUse: ${a}`,{}),!n)throw new Error(`Missing cwd in PostToolUse hook input for session ${r}, tool ${i}`);let c=_e.loadFromFile(At);if(iu(n,c.CLAUDE_MEM_EXCLUDED_PROJECTS))return y.debug("HOOK","Project excluded from tracking, skipping observation",{cwd:n,toolName:i}),{continue:!0,suppressOutput:!0};try{let u=await wt("/api/sessions/observations",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({contentSessionId:r,tool_name:i,tool_input:s,tool_response:o,cwd:n})});if(!u.ok)return y.warn("HOOK","Observation storage failed, skipping",{status:u.status,toolName:i}),{continue:!0,suppressOutput:!0,exitCode:tt.SUCCESS};y.debug("HOOK","Observation sent successfully",{toolName:i})}catch(u){return y.warn("HOOK","Observation fetch error, skipping",{error:u instanceof Error?u.message:String(u)}),{continue:!0,suppressOutput:!0,exitCode:tt.SUCCESS}}return{continue:!0,suppressOutput:!0}}}});function A9(t,e,r=!1){if(!t||!(0,bv.existsSync)(t))return y.warn("PARSER",`Transcript path missing or file does not exist: ${t}`),"";let n=(0,bv.readFileSync)(t,"utf-8").trim();if(!n)return y.warn("PARSER",`Transcript file exists but is empty: ${t}`),"";let i=n.split(` +`),s=!1;for(let o=i.length-1;o>=0;o--){let a=JSON.parse(i[o]);if(a.type===e&&(s=!0,a.message?.content)){let c="",u=a.message.content;if(typeof u=="string")c=u;else if(Array.isArray(u))c=u.filter(l=>l.type==="text").map(l=>l.text).join(` +`);else throw new Error(`Unknown message content format in transcript. Type: ${typeof u}`);return r&&(c=c.replace(/[\s\S]*?<\/system-reminder>/g,""),c=c.replace(/\n{3,}/g,` -${colors.dim}No previous sessions found for this project yet.${colors.reset} -`; -} -var init_ColorFormatter = __esm(() => { - init_types(); - init_ModeManager(); - init_TokenCalculator(); -}); +`).trim()),c}}return""}var bv,N9=Pe(()=>{"use strict";bv=require("fs");oe()});var vge,C$,A$=Pe(()=>{"use strict";Or();oe();N9();en();vge=Af(_r.DEFAULT),C$={async execute(t){if(!await Rr())return{continue:!0,suppressOutput:!0,exitCode:tt.SUCCESS};let{sessionId:r,transcriptPath:n}=t;if(!n)return y.debug("HOOK",`No transcriptPath in Stop hook input for session ${r} - skipping summary`),{continue:!0,suppressOutput:!0,exitCode:tt.SUCCESS};let i=A9(n,"assistant",!0);return y.dataIn("HOOK","Stop: Requesting summary",{hasLastAssistantMessage:!!i}),(await wt("/api/sessions/summarize",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({contentSessionId:r,last_assistant_message:i}),timeoutMs:vge})).ok?(y.debug("HOOK","Summary request sent successfully"),{continue:!0,suppressOutput:!0}):{continue:!0,suppressOutput:!0}}}});var M9,N$,M$=Pe(()=>{"use strict";M9=require("path");Or();en();N$={async execute(t){if(!await Rr())return{exitCode:tt.SUCCESS};let r=Fr(),n=(0,M9.basename)(t.cwd??process.cwd());try{let i=await wt(`/api/context/inject?project=${encodeURIComponent(n)}&colors=true`);if(!i.ok)return{exitCode:tt.SUCCESS};let s=await i.text();process.stderr.write(` -// src/services/context/sections/HeaderRenderer.ts -function renderHeader(project, economics, config3, useColors) { - const output = []; - if (useColors) { - output.push(...renderColorHeader(project)); - } else { - output.push(...renderMarkdownHeader(project)); - } - if (useColors) { - output.push(...renderColorLegend()); - } else { - output.push(...renderMarkdownLegend()); - } - if (useColors) { - output.push(...renderColorColumnKey()); - } else { - output.push(...renderMarkdownColumnKey()); - } - if (useColors) { - output.push(...renderColorContextIndex()); - } else { - output.push(...renderMarkdownContextIndex()); - } - if (shouldShowContextEconomics(config3)) { - if (useColors) { - output.push(...renderColorContextEconomics(economics, config3)); - } else { - output.push(...renderMarkdownContextEconomics(economics, config3)); - } - } - return output; -} -var init_HeaderRenderer = __esm(() => { - init_TokenCalculator(); - init_MarkdownFormatter(); - init_ColorFormatter(); -}); +`+String.fromCodePoint(128221)+` Claude-Mem Context Loaded -// src/services/context/sections/TimelineRenderer.ts -function groupTimelineByDay(timeline) { - const itemsByDay = new Map; - for (const item of timeline) { - const itemDate = item.type === "observation" ? item.data.created_at : item.data.displayTime; - const day = formatDate(itemDate); - if (!itemsByDay.has(day)) { - itemsByDay.set(day, []); - } - itemsByDay.get(day).push(item); - } - const sortedEntries = Array.from(itemsByDay.entries()).sort((a, b) => { - const aDate = new Date(a[0]).getTime(); - const bDate = new Date(b[0]).getTime(); - return aDate - bDate; - }); - return new Map(sortedEntries); -} -function getDetailField(obs, config3) { - if (config3.fullObservationField === "narrative") { - return obs.narrative; - } - return obs.facts ? parseJsonArray(obs.facts).join(` -`) : null; -} -function renderDayTimelineMarkdown(day, dayItems, fullObservationIds, config3) { - const output = []; - output.push(...renderMarkdownDayHeader(day)); - let lastTime = ""; - for (const item of dayItems) { - if (item.type === "summary") { - lastTime = ""; - const summary = item.data; - const formattedTime = formatDateTime(summary.displayTime); - output.push(...renderMarkdownSummaryItem(summary, formattedTime)); - } else { - const obs = item.data; - const time4 = formatTime(obs.created_at); - const showTime = time4 !== lastTime; - const timeDisplay = showTime ? time4 : ""; - lastTime = time4; - const shouldShowFull = fullObservationIds.has(obs.id); - if (shouldShowFull) { - const detailField = getDetailField(obs, config3); - output.push(...renderMarkdownFullObservation(obs, timeDisplay, detailField, config3)); - } else { - output.push(renderMarkdownTableRow(obs, timeDisplay, config3)); - } - } - } - return output; -} -function renderDayTimelineColor(day, dayItems, fullObservationIds, config3, cwd2) { - const output = []; - output.push(...renderColorDayHeader(day)); - let currentFile = null; - let lastTime = ""; - for (const item of dayItems) { - if (item.type === "summary") { - currentFile = null; - lastTime = ""; - const summary = item.data; - const formattedTime = formatDateTime(summary.displayTime); - output.push(...renderColorSummaryItem(summary, formattedTime)); - } else { - const obs = item.data; - const file = extractFirstFile(obs.files_modified, cwd2, obs.files_read); - const time4 = formatTime(obs.created_at); - const showTime = time4 !== lastTime; - lastTime = time4; - const shouldShowFull = fullObservationIds.has(obs.id); - if (file !== currentFile) { - output.push(...renderColorFileHeader(file)); - currentFile = file; - } - if (shouldShowFull) { - const detailField = getDetailField(obs, config3); - output.push(...renderColorFullObservation(obs, time4, showTime, detailField, config3)); - } else { - output.push(renderColorTableRow(obs, time4, showTime, config3)); - } - } - } - output.push(""); - return output; -} -function renderDayTimeline(day, dayItems, fullObservationIds, config3, cwd2, useColors) { - if (useColors) { - return renderDayTimelineColor(day, dayItems, fullObservationIds, config3, cwd2); - } - return renderDayTimelineMarkdown(day, dayItems, fullObservationIds, config3); -} -function renderTimeline(timeline, fullObservationIds, config3, cwd2, useColors) { - const output = []; - const itemsByDay = groupTimelineByDay(timeline); - for (const [day, dayItems] of itemsByDay) { - output.push(...renderDayTimeline(day, dayItems, fullObservationIds, config3, cwd2, useColors)); - } - return output; -} -var init_TimelineRenderer = __esm(() => { - init_timeline_formatting(); - init_MarkdownFormatter(); - init_ColorFormatter(); -}); +`+s+` -// src/services/context/sections/SummaryRenderer.ts -function shouldShowSummary(config3, mostRecentSummary, mostRecentObservation) { - if (!config3.showLastSummary || !mostRecentSummary) { - return false; - } - const hasContent = !!(mostRecentSummary.investigated || mostRecentSummary.learned || mostRecentSummary.completed || mostRecentSummary.next_steps); - if (!hasContent) { - return false; - } - if (mostRecentObservation && mostRecentSummary.created_at_epoch <= mostRecentObservation.created_at_epoch) { - return false; - } - return true; -} -function renderSummaryFields(summary, useColors) { - const output = []; - if (useColors) { - output.push(...renderColorSummaryField("Investigated", summary.investigated, colors.blue)); - output.push(...renderColorSummaryField("Learned", summary.learned, colors.yellow)); - output.push(...renderColorSummaryField("Completed", summary.completed, colors.green)); - output.push(...renderColorSummaryField("Next Steps", summary.next_steps, colors.magenta)); - } else { - output.push(...renderMarkdownSummaryField("Investigated", summary.investigated)); - output.push(...renderMarkdownSummaryField("Learned", summary.learned)); - output.push(...renderMarkdownSummaryField("Completed", summary.completed)); - output.push(...renderMarkdownSummaryField("Next Steps", summary.next_steps)); - } - return output; -} -var init_SummaryRenderer = __esm(() => { - init_types(); - init_MarkdownFormatter(); - init_ColorFormatter(); -}); +`+String.fromCodePoint(128161)+` Wrap any message with ... to prevent storing sensitive information. -// src/services/context/sections/FooterRenderer.ts -function renderPreviouslySection(priorMessages, useColors) { - if (useColors) { - return renderColorPreviouslySection(priorMessages); - } - return renderMarkdownPreviouslySection(priorMessages); -} -function renderFooter(economics, config3, useColors) { - if (!shouldShowContextEconomics(config3) || economics.totalDiscoveryTokens <= 0 || economics.savings <= 0) { - return []; - } - if (useColors) { - return renderColorFooter(economics.totalDiscoveryTokens, economics.totalReadTokens); - } - return renderMarkdownFooter(economics.totalDiscoveryTokens, economics.totalReadTokens); -} -var init_FooterRenderer = __esm(() => { - init_TokenCalculator(); - init_MarkdownFormatter(); - init_ColorFormatter(); -}); - -// src/services/context/ContextBuilder.ts -import path21 from "path"; -import { homedir as homedir16 } from "os"; -import { unlinkSync as unlinkSync4 } from "fs"; -function initializeDatabase() { - try { - return new SessionStore; - } catch (error3) { - if (error3.code === "ERR_DLOPEN_FAILED") { - try { - unlinkSync4(VERSION_MARKER_PATH); - } catch (unlinkError) { - logger.debug("SYSTEM", "Marker file cleanup failed (may not exist)", {}, unlinkError); - } - logger.error("SYSTEM", "Native module rebuild needed - restart Claude Code to auto-fix"); - return null; - } - throw error3; - } -} -function renderEmptyState(project, useColors) { - return useColors ? renderColorEmptyState(project) : renderMarkdownEmptyState(project); -} -function buildContextOutput(project, observations, summaries, config3, cwd2, sessionId, useColors) { - const output = []; - const economics = calculateTokenEconomics(observations); - output.push(...renderHeader(project, economics, config3, useColors)); - const displaySummaries = summaries.slice(0, config3.sessionCount); - const summariesForTimeline = prepareSummariesForTimeline(displaySummaries, summaries); - const timeline = buildTimeline(observations, summariesForTimeline); - const fullObservationIds = getFullObservationIds(observations, config3.fullObservationCount); - output.push(...renderTimeline(timeline, fullObservationIds, config3, cwd2, useColors)); - const mostRecentSummary = summaries[0]; - const mostRecentObservation = observations[0]; - if (shouldShowSummary(config3, mostRecentSummary, mostRecentObservation)) { - output.push(...renderSummaryFields(mostRecentSummary, useColors)); - } - const priorMessages = getPriorSessionMessages(observations, config3, sessionId, cwd2); - output.push(...renderPreviouslySection(priorMessages, useColors)); - output.push(...renderFooter(economics, config3, useColors)); - return output.join(` -`).trimEnd(); -} -async function generateContext(input, useColors = false) { - const config3 = loadContextConfig(); - const cwd2 = input?.cwd ?? process.cwd(); - const project = getProjectName(cwd2); - const projects = input?.projects || [project]; - if (input?.full) { - config3.totalObservationCount = 999999; - config3.sessionCount = 999999; - } - const db = initializeDatabase(); - if (!db) { - return ""; - } - try { - const observations = projects.length > 1 ? queryObservationsMulti(db, projects, config3) : queryObservations(db, project, config3); - const summaries = projects.length > 1 ? querySummariesMulti(db, projects, config3) : querySummaries(db, project, config3); - if (observations.length === 0 && summaries.length === 0) { - return renderEmptyState(project, useColors); - } - const output = buildContextOutput(project, observations, summaries, config3, cwd2, input?.session_id, useColors); - return output; - } finally { - db.close(); - } -} -var VERSION_MARKER_PATH; -var init_ContextBuilder = __esm(() => { - init_SessionStore(); - init_logger(); - init_project_name(); - init_ContextConfigLoader(); - init_TokenCalculator(); - init_ObservationCompiler(); - init_HeaderRenderer(); - init_TimelineRenderer(); - init_SummaryRenderer(); - init_FooterRenderer(); - init_MarkdownFormatter(); - init_ColorFormatter(); - VERSION_MARKER_PATH = path21.join(homedir16(), ".claude", "plugins", "marketplaces", "thedotmack", "plugin", ".install-version"); -}); - -// src/services/context/index.ts -var init_context = __esm(() => { - init_ContextBuilder(); - init_ContextConfigLoader(); - init_TokenCalculator(); - init_ObservationCompiler(); -}); - -// src/services/context-generator.ts -var exports_context_generator = {}; -__export(exports_context_generator, { - generateContext: () => generateContext -}); -var init_context_generator = __esm(() => { - init_context(); -}); - -// src/cli/stdin-reader.ts -function isStdinAvailable() { - try { - const stdin = process.stdin; - if (stdin.isTTY) { - return false; - } - stdin.readable; - return true; - } catch { - return false; - } -} -function tryParseJson(input) { - const trimmed = input.trim(); - if (!trimmed) { - return { success: false }; - } - try { - const value = JSON.parse(trimmed); - return { success: true, value }; - } catch { - return { success: false }; - } -} -async function readJsonFromStdin() { - if (!isStdinAvailable()) { - return; - } - return new Promise((resolve, reject) => { - let input = ""; - let resolved = false; - let parseDelayId = null; - const cleanup = () => { - try { - process.stdin.removeAllListeners("data"); - process.stdin.removeAllListeners("end"); - process.stdin.removeAllListeners("error"); - } catch {} - }; - const resolveWith = (value) => { - if (resolved) - return; - resolved = true; - if (parseDelayId) - clearTimeout(parseDelayId); - clearTimeout(safetyTimeoutId); - cleanup(); - resolve(value); - }; - const rejectWith = (error3) => { - if (resolved) - return; - resolved = true; - if (parseDelayId) - clearTimeout(parseDelayId); - clearTimeout(safetyTimeoutId); - cleanup(); - reject(error3); - }; - const tryResolveWithJson = () => { - const result = tryParseJson(input); - if (result.success) { - resolveWith(result.value); - return true; - } - return false; - }; - const safetyTimeoutId = setTimeout(() => { - if (!resolved) { - if (!tryResolveWithJson()) { - if (input.trim()) { - rejectWith(new Error(`Incomplete JSON after ${SAFETY_TIMEOUT_MS}ms: ${input.slice(0, 100)}...`)); - } else { - resolveWith(undefined); - } - } - } - }, SAFETY_TIMEOUT_MS); - try { - process.stdin.on("data", (chunk) => { - input += chunk; - if (parseDelayId) { - clearTimeout(parseDelayId); - parseDelayId = null; - } - if (tryResolveWithJson()) { - return; - } - parseDelayId = setTimeout(() => { - tryResolveWithJson(); - }, PARSE_DELAY_MS); - }); - process.stdin.on("end", () => { - if (!resolved) { - if (!tryResolveWithJson()) { - resolveWith(input.trim() ? undefined : undefined); - } - } - }); - process.stdin.on("error", () => { - if (!resolved) { - resolveWith(undefined); - } - }); - } catch { - resolved = true; - clearTimeout(safetyTimeoutId); - cleanup(); - resolve(undefined); - } - }); -} -var SAFETY_TIMEOUT_MS = 30000, PARSE_DELAY_MS = 50; - -// src/cli/adapters/claude-code.ts -var claudeCodeAdapter; -var init_claude_code = __esm(() => { - claudeCodeAdapter = { - normalizeInput(raw) { - const r = raw ?? {}; - return { - sessionId: r.session_id ?? r.id ?? r.sessionId, - cwd: r.cwd ?? process.cwd(), - prompt: r.prompt, - toolName: r.tool_name, - toolInput: r.tool_input, - toolResponse: r.tool_response, - transcriptPath: r.transcript_path - }; - }, - formatOutput(result) { - const r = result ?? {}; - if (r.hookSpecificOutput) { - const output2 = { hookSpecificOutput: result.hookSpecificOutput }; - if (r.systemMessage) { - output2.systemMessage = r.systemMessage; - } - return output2; - } - const output = {}; - if (r.systemMessage) { - output.systemMessage = r.systemMessage; - } - return output; - } - }; -}); - -// src/cli/adapters/cursor.ts -var cursorAdapter; -var init_cursor = __esm(() => { - cursorAdapter = { - normalizeInput(raw) { - const r = raw ?? {}; - const isShellCommand = !!r.command && !r.tool_name; - return { - sessionId: r.conversation_id || r.generation_id || r.id, - cwd: r.workspace_roots?.[0] ?? r.cwd ?? process.cwd(), - prompt: r.prompt ?? r.query ?? r.input ?? r.message, - toolName: isShellCommand ? "Bash" : r.tool_name, - toolInput: isShellCommand ? { command: r.command } : r.tool_input, - toolResponse: isShellCommand ? { output: r.output } : r.result_json, - transcriptPath: undefined, - filePath: r.file_path, - edits: r.edits - }; - }, - formatOutput(result) { - return { continue: result.continue ?? true }; - } - }; -}); - -// src/cli/adapters/raw.ts -var rawAdapter; -var init_raw = __esm(() => { - rawAdapter = { - normalizeInput(raw) { - const r = raw; - return { - sessionId: r.sessionId ?? r.session_id ?? "unknown", - cwd: r.cwd ?? process.cwd(), - prompt: r.prompt, - toolName: r.toolName ?? r.tool_name, - toolInput: r.toolInput ?? r.tool_input, - toolResponse: r.toolResponse ?? r.tool_response, - transcriptPath: r.transcriptPath ?? r.transcript_path, - filePath: r.filePath ?? r.file_path, - edits: r.edits - }; - }, - formatOutput(result) { - return result; - } - }; -}); - -// src/cli/adapters/index.ts -function getPlatformAdapter(platform) { - switch (platform) { - case "claude-code": - return claudeCodeAdapter; - case "cursor": - return cursorAdapter; - case "raw": - return rawAdapter; - default: - return rawAdapter; - } -} -var init_adapters = __esm(() => { - init_claude_code(); - init_cursor(); - init_raw(); -}); - -// src/cli/handlers/context.ts -var contextHandler; -var init_context2 = __esm(() => { - init_worker_utils(); - init_project_name(); - init_hook_constants(); - init_logger(); - init_SettingsDefaultsManager(); - init_paths(); - contextHandler = { - async execute(input) { - const workerReady = await ensureWorkerRunning(); - if (!workerReady) { - return { - hookSpecificOutput: { - hookEventName: "SessionStart", - additionalContext: "" - }, - exitCode: HOOK_EXIT_CODES.SUCCESS - }; - } - const cwd2 = input.cwd ?? process.cwd(); - const context = getProjectContext(cwd2); - const port = getWorkerPort(); - const settings = SettingsDefaultsManager.loadFromFile(USER_SETTINGS_PATH); - const showTerminalOutput = settings.CLAUDE_MEM_CONTEXT_SHOW_TERMINAL_OUTPUT === "true"; - const projectsParam = context.allProjects.join(","); - const apiPath = `/api/context/inject?projects=${encodeURIComponent(projectsParam)}`; - const colorApiPath = `${apiPath}&colors=true`; - try { - const [response, colorResponse] = await Promise.all([ - workerHttpRequest(apiPath), - showTerminalOutput ? workerHttpRequest(colorApiPath).catch(() => null) : Promise.resolve(null) - ]); - if (!response.ok) { - logger.warn("HOOK", "Context generation failed, returning empty", { status: response.status }); - return { - hookSpecificOutput: { hookEventName: "SessionStart", additionalContext: "" }, - exitCode: HOOK_EXIT_CODES.SUCCESS - }; - } - const [contextResult, colorResult] = await Promise.all([ - response.text(), - colorResponse?.ok ? colorResponse.text() : Promise.resolve("") - ]); - const additionalContext = contextResult.trim(); - const coloredTimeline = colorResult.trim(); - const systemMessage = showTerminalOutput && coloredTimeline ? `${coloredTimeline} - -View Observations Live @ http://localhost:${port}` : undefined; - return { - hookSpecificOutput: { - hookEventName: "SessionStart", - additionalContext - }, - systemMessage - }; - } catch (error3) { - logger.warn("HOOK", "Context fetch error, returning empty", { error: error3 instanceof Error ? error3.message : String(error3) }); - return { - hookSpecificOutput: { hookEventName: "SessionStart", additionalContext: "" }, - exitCode: HOOK_EXIT_CODES.SUCCESS - }; - } - } - }; -}); - -// src/utils/project-filter.ts -import { homedir as homedir18 } from "os"; -function globToRegex(pattern) { - let expanded = pattern.startsWith("~") ? homedir18() + pattern.slice(1) : pattern; - expanded = expanded.replace(/\\/g, "/"); - let regex = expanded.replace(/[.+^${}()|[\]\\]/g, "\\$&"); - regex = regex.replace(/\*\*/g, "<<>>").replace(/\*/g, "[^/]*").replace(/\?/g, "[^/]").replace(/<<>>/g, ".*"); - return new RegExp(`^${regex}$`); -} -function isProjectExcluded(projectPath, exclusionPatterns) { - if (!exclusionPatterns || !exclusionPatterns.trim()) { - return false; - } - const normalizedProjectPath = projectPath.replace(/\\/g, "/"); - const patternList = exclusionPatterns.split(",").map((p) => p.trim()).filter(Boolean); - for (const pattern of patternList) { - try { - const regex = globToRegex(pattern); - if (regex.test(normalizedProjectPath)) { - return true; - } - } catch { - continue; - } - } - return false; -} -var init_project_filter = () => {}; - -// src/cli/handlers/session-init.ts -var sessionInitHandler; -var init_session_init = __esm(() => { - init_worker_utils(); - init_project_name(); - init_logger(); - init_hook_constants(); - init_project_filter(); - init_SettingsDefaultsManager(); - init_paths(); - sessionInitHandler = { - async execute(input) { - const workerReady = await ensureWorkerRunning(); - if (!workerReady) { - return { continue: true, suppressOutput: true, exitCode: HOOK_EXIT_CODES.SUCCESS }; - } - const { sessionId, cwd: cwd2, prompt: rawPrompt } = input; - if (!sessionId) { - logger.warn("HOOK", "session-init: No sessionId provided, skipping (Codex CLI or unknown platform)"); - return { continue: true, suppressOutput: true, exitCode: HOOK_EXIT_CODES.SUCCESS }; - } - const settings = SettingsDefaultsManager.loadFromFile(USER_SETTINGS_PATH); - if (cwd2 && isProjectExcluded(cwd2, settings.CLAUDE_MEM_EXCLUDED_PROJECTS)) { - logger.info("HOOK", "Project excluded from tracking", { cwd: cwd2 }); - return { continue: true, suppressOutput: true }; - } - const prompt = !rawPrompt || !rawPrompt.trim() ? "[media prompt]" : rawPrompt; - const project = getProjectName(cwd2); - logger.debug("HOOK", "session-init: Calling /api/sessions/init", { contentSessionId: sessionId, project }); - const initResponse = await workerHttpRequest("/api/sessions/init", { - method: "POST", - headers: { "Content-Type": "application/json" }, - body: JSON.stringify({ - contentSessionId: sessionId, - project, - prompt - }) - }); - if (!initResponse.ok) { - logger.failure("HOOK", `Session initialization failed: ${initResponse.status}`, { contentSessionId: sessionId, project }); - return { continue: true, suppressOutput: true, exitCode: HOOK_EXIT_CODES.SUCCESS }; - } - const initResult = await initResponse.json(); - const sessionDbId = initResult.sessionDbId; - const promptNumber = initResult.promptNumber; - logger.debug("HOOK", "session-init: Received from /api/sessions/init", { sessionDbId, promptNumber, skipped: initResult.skipped, contextInjected: initResult.contextInjected }); - logger.debug("HOOK", `[ALIGNMENT] Hook Entry | contentSessionId=${sessionId} | prompt#=${promptNumber} | sessionDbId=${sessionDbId}`); - if (initResult.skipped && initResult.reason === "private") { - logger.info("HOOK", `INIT_COMPLETE | sessionDbId=${sessionDbId} | promptNumber=${promptNumber} | skipped=true | reason=private`, { - sessionId: sessionDbId - }); - return { continue: true, suppressOutput: true }; - } - if (initResult.contextInjected) { - logger.info("HOOK", `INIT_COMPLETE | sessionDbId=${sessionDbId} | promptNumber=${promptNumber} | skipped_agent_init=true | reason=context_already_injected`, { - sessionId: sessionDbId - }); - return { continue: true, suppressOutput: true }; - } - if (input.platform !== "cursor" && sessionDbId) { - const cleanedPrompt = prompt.startsWith("/") ? prompt.substring(1) : prompt; - logger.debug("HOOK", "session-init: Calling /sessions/{sessionDbId}/init", { sessionDbId, promptNumber }); - const response = await workerHttpRequest(`/sessions/${sessionDbId}/init`, { - method: "POST", - headers: { "Content-Type": "application/json" }, - body: JSON.stringify({ userPrompt: cleanedPrompt, promptNumber }) - }); - if (!response.ok) { - logger.failure("HOOK", `SDK agent start failed: ${response.status}`, { sessionDbId, promptNumber }); - } - } else if (input.platform === "cursor") { - logger.debug("HOOK", "session-init: Skipping SDK agent init for Cursor platform", { sessionDbId, promptNumber }); - } - logger.info("HOOK", `INIT_COMPLETE | sessionDbId=${sessionDbId} | promptNumber=${promptNumber} | project=${project}`, { - sessionId: sessionDbId - }); - return { continue: true, suppressOutput: true }; - } - }; -}); - -// src/cli/handlers/observation.ts -var observationHandler; -var init_observation = __esm(() => { - init_worker_utils(); - init_logger(); - init_hook_constants(); - init_project_filter(); - init_SettingsDefaultsManager(); - init_paths(); - observationHandler = { - async execute(input) { - const workerReady = await ensureWorkerRunning(); - if (!workerReady) { - return { continue: true, suppressOutput: true, exitCode: HOOK_EXIT_CODES.SUCCESS }; - } - const { sessionId, cwd: cwd2, toolName, toolInput, toolResponse } = input; - if (!toolName) { - return { continue: true, suppressOutput: true, exitCode: HOOK_EXIT_CODES.SUCCESS }; - } - const toolStr = logger.formatTool(toolName, toolInput); - logger.dataIn("HOOK", `PostToolUse: ${toolStr}`, {}); - if (!cwd2) { - throw new Error(`Missing cwd in PostToolUse hook input for session ${sessionId}, tool ${toolName}`); - } - const settings = SettingsDefaultsManager.loadFromFile(USER_SETTINGS_PATH); - if (isProjectExcluded(cwd2, settings.CLAUDE_MEM_EXCLUDED_PROJECTS)) { - logger.debug("HOOK", "Project excluded from tracking, skipping observation", { cwd: cwd2, toolName }); - return { continue: true, suppressOutput: true }; - } - try { - const response = await workerHttpRequest("/api/sessions/observations", { - method: "POST", - headers: { "Content-Type": "application/json" }, - body: JSON.stringify({ - contentSessionId: sessionId, - tool_name: toolName, - tool_input: toolInput, - tool_response: toolResponse, - cwd: cwd2 - }) - }); - if (!response.ok) { - logger.warn("HOOK", "Observation storage failed, skipping", { status: response.status, toolName }); - return { continue: true, suppressOutput: true, exitCode: HOOK_EXIT_CODES.SUCCESS }; - } - logger.debug("HOOK", "Observation sent successfully", { toolName }); - } catch (error3) { - logger.warn("HOOK", "Observation fetch error, skipping", { error: error3 instanceof Error ? error3.message : String(error3) }); - return { continue: true, suppressOutput: true, exitCode: HOOK_EXIT_CODES.SUCCESS }; - } - return { continue: true, suppressOutput: true }; - } - }; -}); - -// src/shared/transcript-parser.ts -import { readFileSync as readFileSync20, existsSync as existsSync20 } from "fs"; -function extractLastMessage(transcriptPath, role, stripSystemReminders = false) { - if (!transcriptPath || !existsSync20(transcriptPath)) { - logger.warn("PARSER", `Transcript path missing or file does not exist: ${transcriptPath}`); - return ""; - } - const content = readFileSync20(transcriptPath, "utf-8").trim(); - if (!content) { - logger.warn("PARSER", `Transcript file exists but is empty: ${transcriptPath}`); - return ""; - } - const lines = content.split(` -`); - let foundMatchingRole = false; - for (let i = lines.length - 1;i >= 0; i--) { - const line = JSON.parse(lines[i]); - if (line.type === role) { - foundMatchingRole = true; - if (line.message?.content) { - let text = ""; - const msgContent = line.message.content; - if (typeof msgContent === "string") { - text = msgContent; - } else if (Array.isArray(msgContent)) { - text = msgContent.filter((c) => c.type === "text").map((c) => c.text).join(` -`); - } else { - throw new Error(`Unknown message content format in transcript. Type: ${typeof msgContent}`); - } - if (stripSystemReminders) { - text = text.replace(/[\s\S]*?<\/system-reminder>/g, ""); - text = text.replace(/\n{3,}/g, ` - -`).trim(); - } - return text; - } - } - } - if (!foundMatchingRole) { - return ""; - } - return ""; -} -var init_transcript_parser = __esm(() => { - init_logger(); -}); - -// src/cli/handlers/summarize.ts -var SUMMARIZE_TIMEOUT_MS, summarizeHandler; -var init_summarize = __esm(() => { - init_worker_utils(); - init_logger(); - init_transcript_parser(); - init_hook_constants(); - SUMMARIZE_TIMEOUT_MS = getTimeout(HOOK_TIMEOUTS.DEFAULT); - summarizeHandler = { - async execute(input) { - const workerReady = await ensureWorkerRunning(); - if (!workerReady) { - return { continue: true, suppressOutput: true, exitCode: HOOK_EXIT_CODES.SUCCESS }; - } - const { sessionId, transcriptPath } = input; - if (!transcriptPath) { - logger.debug("HOOK", `No transcriptPath in Stop hook input for session ${sessionId} - skipping summary`); - return { continue: true, suppressOutput: true, exitCode: HOOK_EXIT_CODES.SUCCESS }; - } - const lastAssistantMessage = extractLastMessage(transcriptPath, "assistant", true); - logger.dataIn("HOOK", "Stop: Requesting summary", { - hasLastAssistantMessage: !!lastAssistantMessage - }); - const response = await workerHttpRequest("/api/sessions/summarize", { - method: "POST", - headers: { "Content-Type": "application/json" }, - body: JSON.stringify({ - contentSessionId: sessionId, - last_assistant_message: lastAssistantMessage - }), - timeoutMs: SUMMARIZE_TIMEOUT_MS - }); - if (!response.ok) { - return { continue: true, suppressOutput: true }; - } - logger.debug("HOOK", "Summary request sent successfully"); - return { continue: true, suppressOutput: true }; - } - }; -}); - -// src/cli/handlers/user-message.ts -import { basename as basename4 } from "path"; -var userMessageHandler; -var init_user_message = __esm(() => { - init_worker_utils(); - init_hook_constants(); - userMessageHandler = { - async execute(input) { - const workerReady = await ensureWorkerRunning(); - if (!workerReady) { - return { exitCode: HOOK_EXIT_CODES.SUCCESS }; - } - const port = getWorkerPort(); - const project = basename4(input.cwd ?? process.cwd()); - try { - const response = await workerHttpRequest(`/api/context/inject?project=${encodeURIComponent(project)}&colors=true`); - if (!response.ok) { - return { exitCode: HOOK_EXIT_CODES.SUCCESS }; - } - const output = await response.text(); - process.stderr.write(` - -` + String.fromCodePoint(128221) + ` Claude-Mem Context Loaded - -` + output + ` - -` + String.fromCodePoint(128161) + ` Wrap any message with ... to prevent storing sensitive information. -` + ` -` + String.fromCodePoint(128172) + " Community https://discord.gg/J4wttp9vDu" + ` -` + String.fromCodePoint(128250) + ` Watch live in browser http://localhost:${port}/ -`); - } catch (error3) {} - return { exitCode: HOOK_EXIT_CODES.SUCCESS }; - } - }; -}); - -// src/cli/handlers/file-edit.ts -var fileEditHandler; -var init_file_edit = __esm(() => { - init_worker_utils(); - init_logger(); - init_hook_constants(); - fileEditHandler = { - async execute(input) { - const workerReady = await ensureWorkerRunning(); - if (!workerReady) { - return { continue: true, suppressOutput: true, exitCode: HOOK_EXIT_CODES.SUCCESS }; - } - const { sessionId, cwd: cwd2, filePath, edits } = input; - if (!filePath) { - throw new Error("fileEditHandler requires filePath"); - } - logger.dataIn("HOOK", `FileEdit: ${filePath}`, { - editCount: edits?.length ?? 0 - }); - if (!cwd2) { - throw new Error(`Missing cwd in FileEdit hook input for session ${sessionId}, file ${filePath}`); - } - try { - const response = await workerHttpRequest("/api/sessions/observations", { - method: "POST", - headers: { "Content-Type": "application/json" }, - body: JSON.stringify({ - contentSessionId: sessionId, - tool_name: "write_file", - tool_input: { filePath, edits }, - tool_response: { success: true }, - cwd: cwd2 - }) - }); - if (!response.ok) { - logger.warn("HOOK", "File edit observation storage failed, skipping", { status: response.status, filePath }); - return { continue: true, suppressOutput: true, exitCode: HOOK_EXIT_CODES.SUCCESS }; - } - logger.debug("HOOK", "File edit observation sent successfully", { filePath }); - } catch (error3) { - logger.warn("HOOK", "File edit observation fetch error, skipping", { error: error3 instanceof Error ? error3.message : String(error3) }); - return { continue: true, suppressOutput: true, exitCode: HOOK_EXIT_CODES.SUCCESS }; - } - return { continue: true, suppressOutput: true }; - } - }; -}); - -// src/cli/handlers/session-complete.ts -var sessionCompleteHandler; -var init_session_complete = __esm(() => { - init_worker_utils(); - init_logger(); - sessionCompleteHandler = { - async execute(input) { - const workerReady = await ensureWorkerRunning(); - if (!workerReady) { - return { continue: true, suppressOutput: true }; - } - const { sessionId } = input; - if (!sessionId) { - logger.warn("HOOK", "session-complete: Missing sessionId, skipping"); - return { continue: true, suppressOutput: true }; - } - logger.info("HOOK", "→ session-complete: Removing session from active map", { - contentSessionId: sessionId - }); - try { - const response = await workerHttpRequest("/api/sessions/complete", { - method: "POST", - headers: { "Content-Type": "application/json" }, - body: JSON.stringify({ - contentSessionId: sessionId - }) - }); - if (!response.ok) { - const text = await response.text(); - logger.warn("HOOK", "session-complete: Failed to complete session", { - status: response.status, - body: text - }); - } else { - logger.info("HOOK", "Session completed successfully", { contentSessionId: sessionId }); - } - } catch (error3) { - logger.warn("HOOK", "session-complete: Error completing session", { - error: error3.message - }); - } - return { continue: true, suppressOutput: true }; - } - }; -}); - -// src/cli/handlers/index.ts -function getEventHandler(eventType) { - const handler = handlers[eventType]; - if (!handler) { - logger.warn("HOOK", `Unknown event type: ${eventType}, returning no-op`); - return { - async execute() { - return { continue: true, suppressOutput: true, exitCode: HOOK_EXIT_CODES.SUCCESS }; - } - }; - } - return handler; -} -var handlers; -var init_handlers = __esm(() => { - init_hook_constants(); - init_logger(); - init_context2(); - init_session_init(); - init_observation(); - init_summarize(); - init_user_message(); - init_file_edit(); - init_session_complete(); - init_context2(); - init_session_init(); - init_observation(); - init_summarize(); - init_user_message(); - init_file_edit(); - init_session_complete(); - handlers = { - context: contextHandler, - "session-init": sessionInitHandler, - observation: observationHandler, - summarize: summarizeHandler, - "session-complete": sessionCompleteHandler, - "user-message": userMessageHandler, - "file-edit": fileEditHandler - }; -}); - -// src/cli/hook-command.ts -var exports_hook_command = {}; -__export(exports_hook_command, { - isWorkerUnavailableError: () => isWorkerUnavailableError, - hookCommand: () => hookCommand -}); -function isWorkerUnavailableError(error3) { - const message = error3 instanceof Error ? error3.message : String(error3); - const lower = message.toLowerCase(); - const transportPatterns = [ - "econnrefused", - "econnreset", - "epipe", - "etimedout", - "enotfound", - "econnaborted", - "enetunreach", - "ehostunreach", - "fetch failed", - "unable to connect", - "socket hang up" - ]; - if (transportPatterns.some((p) => lower.includes(p))) - return true; - if (lower.includes("timed out") || lower.includes("timeout")) - return true; - if (/failed:\s*5\d{2}/.test(message) || /status[:\s]+5\d{2}/.test(message)) - return true; - if (/failed:\s*429/.test(message) || /status[:\s]+429/.test(message)) - return true; - if (/failed:\s*4\d{2}/.test(message) || /status[:\s]+4\d{2}/.test(message)) - return false; - if (error3 instanceof TypeError || error3 instanceof ReferenceError || error3 instanceof SyntaxError) { - return false; - } - return false; -} -async function hookCommand(platform, event, options = {}) { - const originalStderrWrite = process.stderr.write.bind(process.stderr); - process.stderr.write = () => true; - try { - const adapter = getPlatformAdapter(platform); - const handler = getEventHandler(event); - const rawInput = await readJsonFromStdin(); - const input = adapter.normalizeInput(rawInput); - input.platform = platform; - const result = await handler.execute(input); - const output = adapter.formatOutput(result); - console.log(JSON.stringify(output)); - const exitCode = result.exitCode ?? HOOK_EXIT_CODES.SUCCESS; - if (!options.skipExit) { - process.exit(exitCode); - } - return exitCode; - } catch (error3) { - if (isWorkerUnavailableError(error3)) { - logger.warn("HOOK", `Worker unavailable, skipping hook: ${error3 instanceof Error ? error3.message : error3}`); - if (!options.skipExit) { - process.exit(HOOK_EXIT_CODES.SUCCESS); - } - return HOOK_EXIT_CODES.SUCCESS; - } - logger.error("HOOK", `Hook error: ${error3 instanceof Error ? error3.message : error3}`, {}, error3 instanceof Error ? error3 : undefined); - if (!options.skipExit) { - process.exit(HOOK_EXIT_CODES.BLOCKING_ERROR); - } - return HOOK_EXIT_CODES.BLOCKING_ERROR; - } finally { - process.stderr.write = originalStderrWrite; - } -} -var init_hook_command = __esm(() => { - init_adapters(); - init_handlers(); - init_hook_constants(); - init_logger(); -}); - -// src/cli/claude-md-commands.ts -var exports_claude_md_commands = {}; -__export(exports_claude_md_commands, { - generateClaudeMd: () => generateClaudeMd, - cleanClaudeMd: () => cleanClaudeMd -}); -import { Database as Database3 } from "bun:sqlite"; -import path23 from "path"; -import os3 from "os"; -import { - existsSync as existsSync21, - writeFileSync as writeFileSync10, - readFileSync as readFileSync21, - renameSync as renameSync5, - unlinkSync as unlinkSync6, - readdirSync as readdirSync2 -} from "fs"; -import { execSync as execSync6 } from "child_process"; -function getTypeIcon(type) { - return TYPE_ICONS[type] || "\uD83D\uDCDD"; -} -function estimateTokens3(obs) { - const size = (obs.title?.length || 0) + (obs.subtitle?.length || 0) + (obs.narrative?.length || 0) + (obs.facts?.length || 0); - return Math.ceil(size / 4); -} -function getTrackedFolders(workingDir) { - const folders = new Set; - try { - const output = execSync6("git ls-files", { - cwd: workingDir, - encoding: "utf-8", - maxBuffer: 50 * 1024 * 1024 - }); - const files = output.trim().split(` -`).filter((f) => f); - for (const file of files) { - const absPath = path23.join(workingDir, file); - let dir = path23.dirname(absPath); - while (dir.length > workingDir.length && dir.startsWith(workingDir)) { - folders.add(dir); - dir = path23.dirname(dir); - } - } - } catch (error3) { - logger.warn("CLAUDE_MD", "git ls-files failed, falling back to directory walk", { error: String(error3) }); - walkDirectoriesWithIgnore(workingDir, folders); - } - return folders; -} -function walkDirectoriesWithIgnore(dir, folders, depth = 0) { - if (depth > 10) - return; - const ignorePatterns = [ - "node_modules", - ".git", - ".next", - "dist", - "build", - ".cache", - "__pycache__", - ".venv", - "venv", - ".idea", - ".vscode", - "coverage", - ".claude-mem", - ".open-next", - ".turbo" - ]; - try { - const entries = readdirSync2(dir, { withFileTypes: true }); - for (const entry of entries) { - if (!entry.isDirectory()) - continue; - if (ignorePatterns.includes(entry.name)) - continue; - if (entry.name.startsWith(".") && entry.name !== ".claude") - continue; - const fullPath = path23.join(dir, entry.name); - folders.add(fullPath); - walkDirectoriesWithIgnore(fullPath, folders, depth + 1); - } - } catch {} -} -function hasDirectChildFile(obs, folderPath) { - const checkFiles = (filesJson) => { - if (!filesJson) - return false; - try { - const files = JSON.parse(filesJson); - if (Array.isArray(files)) { - return files.some((f) => isDirectChild(f, folderPath)); - } - } catch {} - return false; - }; - return checkFiles(obs.files_modified) || checkFiles(obs.files_read); -} -function findObservationsByFolder(db, relativeFolderPath, project, limit) { - const queryLimit = limit * 3; - const sql = ` +`+String.fromCodePoint(128172)+` Community https://discord.gg/J4wttp9vDu +`+String.fromCodePoint(128250)+` Watch live in browser http://localhost:${r}/ +`)}catch{}return{exitCode:tt.SUCCESS}}}});var D$,j$=Pe(()=>{"use strict";Or();oe();en();D$={async execute(t){if(!await Rr())return{continue:!0,suppressOutput:!0,exitCode:tt.SUCCESS};let{sessionId:r,cwd:n,filePath:i,edits:s}=t;if(!i)throw new Error("fileEditHandler requires filePath");if(y.dataIn("HOOK",`FileEdit: ${i}`,{editCount:s?.length??0}),!n)throw new Error(`Missing cwd in FileEdit hook input for session ${r}, file ${i}`);try{let o=await wt("/api/sessions/observations",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({contentSessionId:r,tool_name:"write_file",tool_input:{filePath:i,edits:s},tool_response:{success:!0},cwd:n})});if(!o.ok)return y.warn("HOOK","File edit observation storage failed, skipping",{status:o.status,filePath:i}),{continue:!0,suppressOutput:!0,exitCode:tt.SUCCESS};y.debug("HOOK","File edit observation sent successfully",{filePath:i})}catch(o){return y.warn("HOOK","File edit observation fetch error, skipping",{error:o instanceof Error?o.message:String(o)}),{continue:!0,suppressOutput:!0,exitCode:tt.SUCCESS}}return{continue:!0,suppressOutput:!0}}}});function _ge(t){return t.toLowerCase().replace(" am","a").replace(" pm","p")}function bge(t){return new Date(t).toLocaleString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0})}function xge(t){return new Date(t).toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric"})}function Sge(t,e){let r=new Map;for(let s of t){let o=xge(s.created_at_epoch);r.has(o)||r.set(o,[]),r.get(o).push(s)}let n=Array.from(r.entries()).sort((s,o)=>{let a=s[1][0].created_at_epoch,c=o[1][0].created_at_epoch;return a-c}),i=["Read blocked: This file has prior observations. Use get_observations([IDs]) to load what you need. Re-read the file only if you need raw content not captured in observations:"];for(let[s,o]of n){i.push(`### ${s}`);for(let a of o){let c=a.title||"Untitled",u=yge[a.type]||"\u2753",l=_ge(bge(a.created_at_epoch));i.push(`${a.id} ${l} ${u} ${c}`)}}return i.join(` +`)}var z$,yge,L$,U$=Pe(()=>{"use strict";Or();oe();en();z$=Ue(require("path"),1);_v();Yt();Nt();_p();yge={decision:"\u2696\uFE0F",bugfix:"\u{1F534}",feature:"\u{1F7E3}",refactor:"\u{1F504}",discovery:"\u{1F535}",change:"\u2705"};L$={async execute(t){let r=t.toolInput?.file_path;if(!r)return{continue:!0,suppressOutput:!0};let n=_e.loadFromFile(At);if(t.cwd&&iu(t.cwd,n.CLAUDE_MEM_EXCLUDED_PROJECTS))return y.debug("HOOK","Project excluded from tracking, skipping file context",{cwd:t.cwd}),{continue:!0,suppressOutput:!0};if(!await Rr())return{continue:!0,suppressOutput:!0};try{let s=av(t.cwd),o=t.cwd||process.cwd(),a=z$.default.isAbsolute(r)?z$.default.relative(o,r):r,c=new URLSearchParams({path:a});c.set("projects",s.allProjects.join(","));let u=await wt(`/api/observations/by-file?${c.toString()}`,{method:"GET"});if(!u.ok)return y.warn("HOOK","File context query failed, skipping",{status:u.status,filePath:r}),{continue:!0,suppressOutput:!0};let l=await u.json();if(!l.observations||l.observations.length===0)return{continue:!0,suppressOutput:!0};let d=await wt("/api/file-context/gate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:t.sessionId,filePath:a})});if(d.ok&&(await d.json()).firstAttempt){let m=Sge(l.observations,r);return{exitCode:tt.BLOCKING_ERROR,stderrMessage:m}}return{continue:!0,suppressOutput:!0}}catch(s){return y.warn("HOOK","File context fetch error, skipping",{error:s instanceof Error?s.message:String(s)}),{continue:!0,suppressOutput:!0}}}}});var q$,F$=Pe(()=>{"use strict";Or();oe();q$={async execute(t){if(!await Rr())return{continue:!0,suppressOutput:!0};let{sessionId:r}=t;if(!r)return y.warn("HOOK","session-complete: Missing sessionId, skipping"),{continue:!0,suppressOutput:!0};y.info("HOOK","\u2192 session-complete: Removing session from active map",{contentSessionId:r});try{let n=await wt("/api/sessions/complete",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({contentSessionId:r})});if(n.ok)y.info("HOOK","Session completed successfully",{contentSessionId:r});else{let i=await n.text();y.warn("HOOK","session-complete: Failed to complete session",{status:n.status,body:i})}}catch(n){y.warn("HOOK","session-complete: Error completing session",{error:n.message})}return{continue:!0,suppressOutput:!0}}}});function D9(t){let e=wge[t];return e||(y.warn("HOOK",`Unknown event type: ${t}, returning no-op`),{async execute(){return{continue:!0,suppressOutput:!0,exitCode:tt.SUCCESS}}})}var wge,j9=Pe(()=>{"use strict";en();oe();T$();R$();P$();A$();M$();j$();U$();F$();T$();R$();P$();A$();M$();j$();U$();F$();wge={context:$$,"session-init":I$,observation:O$,summarize:C$,"session-complete":q$,"user-message":N$,"file-edit":D$,"file-context":L$}});var L9={};ln(L9,{hookCommand:()=>Ege,isWorkerUnavailableError:()=>z9});function z9(t){let e=t instanceof Error?t.message:String(t),r=e.toLowerCase();return["econnrefused","econnreset","epipe","etimedout","enotfound","econnaborted","enetunreach","ehostunreach","fetch failed","unable to connect","socket hang up"].some(i=>r.includes(i))||r.includes("timed out")||r.includes("timeout")||/failed:\s*5\d{2}/.test(e)||/status[:\s]+5\d{2}/.test(e)||/failed:\s*429/.test(e)||/status[:\s]+429/.test(e)?!0:(/failed:\s*4\d{2}/.test(e)||/status[:\s]+4\d{2}/.test(e)||t instanceof TypeError||t instanceof ReferenceError||t instanceof SyntaxError,!1)}async function Ege(t,e,r={}){let n=process.stderr.write.bind(process.stderr);process.stderr.write=(()=>!0);try{let i=O9(t),s=D9(e),o=await w9(),a=i.normalizeInput(o);a.platform=t;let c=await s.execute(a),u=i.formatOutput(c);console.log(JSON.stringify(u));let l=c.exitCode??tt.SUCCESS;return c.stderrMessage&&l===tt.BLOCKING_ERROR&&(process.stderr.write=n,process.stderr.write(c.stderrMessage)),r.skipExit||process.exit(l),l}catch(i){return z9(i)?(y.warn("HOOK",`Worker unavailable, skipping hook: ${i instanceof Error?i.message:i}`),r.skipExit||process.exit(tt.SUCCESS),tt.SUCCESS):(y.error("HOOK",`Hook error: ${i instanceof Error?i.message:i}`,{},i instanceof Error?i:void 0),r.skipExit||process.exit(tt.BLOCKING_ERROR),tt.BLOCKING_ERROR)}finally{process.stderr.write=n}}var U9=Pe(()=>{"use strict";E9();P9();j9();en();oe()});var Z$={};ln(Z$,{cleanClaudeMd:()=>jge,generateClaudeMd:()=>Dge});function Tge(t){return $ge[t]||"\u{1F4DD}"}function Ige(t){let e=(t.title?.length||0)+(t.subtitle?.length||0)+(t.narrative?.length||0)+(t.facts?.length||0);return Math.ceil(e/4)}function Rge(t){let e=new Set;try{let n=(0,H9.execSync)("git ls-files",{cwd:t,encoding:"utf-8",maxBuffer:52428800}).trim().split(` +`).filter(i=>i);for(let i of n){let s=sr.default.join(t,i),o=sr.default.dirname(s);for(;o.length>t.length&&o.startsWith(t);)e.add(o),o=sr.default.dirname(o)}}catch(r){y.warn("CLAUDE_MD","git ls-files failed, falling back to directory walk",{error:String(r)}),Z9(t,e)}return e}function Z9(t,e,r=0){if(r>10)return;let n=["node_modules",".git",".next","dist","build",".cache","__pycache__",".venv","venv",".idea",".vscode","coverage",".claude-mem",".open-next",".turbo"];try{let i=(0,or.readdirSync)(t,{withFileTypes:!0});for(let s of i){if(!s.isDirectory()||n.includes(s.name)||s.name.startsWith(".")&&s.name!==".claude")continue;let o=sr.default.join(t,s.name);e.add(o),Z9(o,e,r+1)}}catch{}}function Oge(t,e){let r=n=>{if(!n)return!1;try{let i=JSON.parse(n);if(Array.isArray(i))return i.some(s=>jo(s,e))}catch{}return!1};return r(t.files_modified)||r(t.files_read)}function Pge(t,e,r,n){let i=n*3,s=` SELECT o.*, o.discovery_tokens FROM observations o WHERE o.project = ? AND (o.files_modified LIKE ? OR o.files_read LIKE ?) ORDER BY o.created_at_epoch DESC LIMIT ? - `; - const normalizedFolderPath = relativeFolderPath.split(path23.sep).join("/"); - const likePattern = `%"${normalizedFolderPath}/%`; - const allMatches = db.prepare(sql).all(project, likePattern, likePattern, queryLimit); - return allMatches.filter((obs) => hasDirectChildFile(obs, relativeFolderPath)).slice(0, limit); -} -function extractRelevantFile(obs, relativeFolder) { - if (obs.files_modified) { - try { - const modified = JSON.parse(obs.files_modified); - if (Array.isArray(modified)) { - for (const file of modified) { - if (isDirectChild(file, relativeFolder)) { - return path23.basename(file); - } - } - } - } catch {} - } - if (obs.files_read) { - try { - const read = JSON.parse(obs.files_read); - if (Array.isArray(read)) { - for (const file of read) { - if (isDirectChild(file, relativeFolder)) { - return path23.basename(file); - } - } - } - } catch {} - } - return "General"; -} -function formatObservationsForClaudeMd(observations, folderPath) { - const lines = []; - lines.push("# Recent Activity"); - lines.push(""); - lines.push(""); - lines.push(""); - if (observations.length === 0) { - lines.push("*No recent activity*"); - return lines.join(` -`); - } - const byDate = groupByDate(observations, (obs) => obs.created_at); - for (const [day, dayObs] of byDate) { - lines.push(`### ${day}`); - lines.push(""); - const byFile = new Map; - for (const obs of dayObs) { - const file = extractRelevantFile(obs, folderPath); - if (!byFile.has(file)) - byFile.set(file, []); - byFile.get(file).push(obs); - } - for (const [file, fileObs] of byFile) { - lines.push(`**${file}**`); - lines.push("| ID | Time | T | Title | Read |"); - lines.push("|----|------|---|-------|------|"); - let lastTime = ""; - for (const obs of fileObs) { - const time4 = formatTime(obs.created_at_epoch); - const timeDisplay = time4 === lastTime ? '"' : time4; - lastTime = time4; - const icon = getTypeIcon(obs.type); - const title = obs.title || "Untitled"; - const tokens = estimateTokens3(obs); - lines.push(`| #${obs.id} | ${timeDisplay} | ${icon} | ${title} | ~${tokens} |`); - } - lines.push(""); - } - } - return lines.join(` -`).trim(); -} -function writeClaudeMdToFolder2(folderPath, newContent) { - const resolvedPath = path23.resolve(folderPath); - if (resolvedPath.includes("/.git/") || resolvedPath.includes("\\.git\\") || resolvedPath.endsWith("/.git") || resolvedPath.endsWith("\\.git")) - return; - const claudeMdPath = path23.join(folderPath, "CLAUDE.md"); - const tempFile = `${claudeMdPath}.tmp`; - if (!existsSync21(folderPath)) { - throw new Error(`Folder does not exist: ${folderPath}`); - } - let existingContent = ""; - if (existsSync21(claudeMdPath)) { - existingContent = readFileSync21(claudeMdPath, "utf-8"); - } - const startTag = ""; - const endTag = ""; - let finalContent; - if (!existingContent) { - finalContent = `${startTag} -${newContent} -${endTag}`; - } else { - const startIdx = existingContent.indexOf(startTag); - const endIdx = existingContent.indexOf(endTag); - if (startIdx !== -1 && endIdx !== -1) { - finalContent = existingContent.substring(0, startIdx) + `${startTag} -${newContent} -${endTag}` + existingContent.substring(endIdx + endTag.length); - } else { - finalContent = existingContent + ` + `,a=`%"${e.split(sr.default.sep).join("/")}/%`;return t.prepare(s).all(r,a,a,i).filter(u=>Oge(u,e)).slice(0,n)}function Cge(t,e){if(t.files_modified)try{let r=JSON.parse(t.files_modified);if(Array.isArray(r)){for(let n of r)if(jo(n,e))return sr.default.basename(n)}}catch{}if(t.files_read)try{let r=JSON.parse(t.files_read);if(Array.isArray(r)){for(let n of r)if(jo(n,e))return sr.default.basename(n)}}catch{}return"General"}function Age(t,e){let r=[];if(r.push("# Recent Activity"),r.push(""),r.push(""),r.push(""),t.length===0)return r.push("*No recent activity*"),r.join(` +`);let n=is(t,i=>i.created_at);for(let[i,s]of n){r.push(`### ${i}`),r.push("");let o=new Map;for(let a of s){let c=Cge(a,e);o.has(c)||o.set(c,[]),o.get(c).push(a)}for(let[a,c]of o){r.push(`**${a}**`),r.push("| ID | Time | T | Title | Read |"),r.push("|----|------|---|-------|------|");let u="";for(let l of c){let d=lr(l.created_at_epoch),p=d===u?'"':d;u=d;let m=Tge(l.type),f=l.title||"Untitled",g=Ige(l);r.push(`| #${l.id} | ${p} | ${m} | ${f} | ~${g} |`)}r.push("")}}return r.join(` +`).trim()}function Nge(t,e){let r=sr.default.resolve(t);if(r.includes("/.git/")||r.includes("\\.git\\")||r.endsWith("/.git")||r.endsWith("\\.git"))return;let n=sr.default.join(t,"CLAUDE.md"),i=`${n}.tmp`;if(!(0,or.existsSync)(t))throw new Error(`Folder does not exist: ${t}`);let s="";(0,or.existsSync)(n)&&(s=(0,or.readFileSync)(n,"utf-8"));let o="",a="",c;if(!s)c=`${o} +${e} +${a}`;else{let u=s.indexOf(o),l=s.indexOf(a);u!==-1&&l!==-1?c=s.substring(0,u)+`${o} +${e} +${a}`+s.substring(l+a.length):c=s+` -${startTag} -${newContent} -${endTag}`; - } - } - writeFileSync10(tempFile, finalContent); - renameSync5(tempFile, claudeMdPath); -} -function regenerateFolder(db, absoluteFolder, relativeFolder, project, dryRun, workingDir, observationLimit) { - try { - if (!existsSync21(absoluteFolder)) { - return { success: false, observationCount: 0, error: "Folder no longer exists" }; - } - const resolvedFolder = path23.resolve(absoluteFolder); - const resolvedWorkingDir = path23.resolve(workingDir); - if (!resolvedFolder.startsWith(resolvedWorkingDir + path23.sep)) { - return { success: false, observationCount: 0, error: "Path escapes project root" }; - } - const observations = findObservationsByFolder(db, relativeFolder, project, observationLimit); - if (observations.length === 0) { - return { success: false, observationCount: 0, error: "No observations for folder" }; - } - if (dryRun) { - return { success: true, observationCount: observations.length }; - } - const formatted = formatObservationsForClaudeMd(observations, relativeFolder); - writeClaudeMdToFolder2(absoluteFolder, formatted); - return { success: true, observationCount: observations.length }; - } catch (error3) { - return { success: false, observationCount: 0, error: String(error3) }; - } -} -async function generateClaudeMd(dryRun) { - try { - const workingDir = process.cwd(); - const settings = SettingsDefaultsManager.loadFromFile(SETTINGS_PATH2); - const observationLimit = parseInt(settings.CLAUDE_MEM_CONTEXT_OBSERVATIONS, 10) || 50; - logger.info("CLAUDE_MD", "Starting CLAUDE.md generation", { - workingDir, - dryRun, - observationLimit - }); - const project = path23.basename(workingDir); - const trackedFolders = getTrackedFolders(workingDir); - if (trackedFolders.size === 0) { - logger.info("CLAUDE_MD", "No folders found in project"); - return 0; - } - logger.info("CLAUDE_MD", `Found ${trackedFolders.size} folders in project`); - if (!existsSync21(DB_PATH2)) { - logger.info("CLAUDE_MD", "Database not found, no observations to process"); - return 0; - } - const db = new Database3(DB_PATH2, { readonly: true, create: false }); - let successCount = 0; - let skipCount = 0; - let errorCount = 0; - const foldersArray = Array.from(trackedFolders).sort(); - for (const absoluteFolder of foldersArray) { - const relativeFolder = path23.relative(workingDir, absoluteFolder); - const result = regenerateFolder(db, absoluteFolder, relativeFolder, project, dryRun, workingDir, observationLimit); - if (result.success) { - logger.debug("CLAUDE_MD", `Processed folder: ${relativeFolder}`, { - observationCount: result.observationCount - }); - successCount++; - } else if (result.error?.includes("No observations")) { - skipCount++; - } else { - logger.warn("CLAUDE_MD", `Error processing folder: ${relativeFolder}`, { - error: result.error - }); - errorCount++; - } - } - db.close(); - logger.info("CLAUDE_MD", "CLAUDE.md generation complete", { - totalFolders: foldersArray.length, - withObservations: successCount, - noObservations: skipCount, - errors: errorCount, - dryRun - }); - return 0; - } catch (error3) { - logger.error("CLAUDE_MD", "Fatal error during CLAUDE.md generation", { - error: String(error3) - }); - return 1; - } -} -async function cleanClaudeMd(dryRun) { - try { - let walkForClaudeMd = function(dir) { - const ignorePatterns = [ - "node_modules", - ".git", - ".next", - "dist", - "build", - ".cache", - "__pycache__", - ".venv", - "venv", - ".idea", - ".vscode", - "coverage", - ".claude-mem", - ".open-next", - ".turbo" - ]; - try { - const entries = readdirSync2(dir, { withFileTypes: true }); - for (const entry of entries) { - const fullPath = path23.join(dir, entry.name); - if (entry.isDirectory()) { - if (!ignorePatterns.includes(entry.name)) { - walkForClaudeMd(fullPath); - } - } else if (entry.name === "CLAUDE.md") { - try { - const content = readFileSync21(fullPath, "utf-8"); - if (content.includes("")) { - filesToProcess.push(fullPath); - } - } catch {} - } - } - } catch {} - }; - const workingDir = process.cwd(); - logger.info("CLAUDE_MD", "Starting CLAUDE.md cleanup", { - workingDir, - dryRun - }); - const filesToProcess = []; - walkForClaudeMd(workingDir); - if (filesToProcess.length === 0) { - logger.info("CLAUDE_MD", "No CLAUDE.md files with auto-generated content found"); - return 0; - } - logger.info("CLAUDE_MD", `Found ${filesToProcess.length} CLAUDE.md files with auto-generated content`); - let deletedCount = 0; - let cleanedCount = 0; - let errorCount = 0; - for (const file of filesToProcess) { - const relativePath = path23.relative(workingDir, file); - try { - const content = readFileSync21(file, "utf-8"); - const stripped = content.replace(/[\s\S]*?<\/claude-mem-context>/g, "").trim(); - if (stripped === "") { - if (!dryRun) { - unlinkSync6(file); - } - logger.debug("CLAUDE_MD", `${dryRun ? "[DRY-RUN] Would delete" : "Deleted"} (empty): ${relativePath}`); - deletedCount++; - } else { - if (!dryRun) { - writeFileSync10(file, stripped); - } - logger.debug("CLAUDE_MD", `${dryRun ? "[DRY-RUN] Would clean" : "Cleaned"}: ${relativePath}`); - cleanedCount++; - } - } catch (error3) { - logger.warn("CLAUDE_MD", `Error processing ${relativePath}`, { error: String(error3) }); - errorCount++; - } - } - logger.info("CLAUDE_MD", "CLAUDE.md cleanup complete", { - deleted: deletedCount, - cleaned: cleanedCount, - errors: errorCount, - dryRun - }); - return 0; - } catch (error3) { - logger.error("CLAUDE_MD", "Fatal error during CLAUDE.md cleanup", { - error: String(error3) - }); - return 1; - } -} -var DB_PATH2, SETTINGS_PATH2, TYPE_ICONS; -var init_claude_md_commands = __esm(() => { - init_SettingsDefaultsManager(); - init_timeline_formatting(); - init_logger(); - DB_PATH2 = path23.join(os3.homedir(), ".claude-mem", "claude-mem.db"); - SETTINGS_PATH2 = path23.join(os3.homedir(), ".claude-mem", "settings.json"); - TYPE_ICONS = { - bugfix: "\uD83D\uDD34", - feature: "\uD83D\uDFE3", - refactor: "\uD83D\uDD04", - change: "✅", - discovery: "\uD83D\uDD35", - decision: "⚖️", - session: "\uD83C\uDFAF", - prompt: "\uD83D\uDCAC" - }; -}); - -// src/services/worker-service.ts -import path24 from "path"; -import { existsSync as existsSync23, writeFileSync as writeFileSync11, unlinkSync as unlinkSync7, statSync as statSync5 } from "fs"; - -// node_modules/zod/v4/core/core.js -var NEVER = Object.freeze({ - status: "aborted" -}); -function $constructor(name, initializer, params) { - function init(inst, def) { - if (!inst._zod) { - Object.defineProperty(inst, "_zod", { - value: { - def, - constr: _, - traits: new Set - }, - enumerable: false - }); - } - if (inst._zod.traits.has(name)) { - return; - } - inst._zod.traits.add(name); - initializer(inst, def); - const proto = _.prototype; - const keys = Object.keys(proto); - for (let i = 0;i < keys.length; i++) { - const k = keys[i]; - if (!(k in inst)) { - inst[k] = proto[k].bind(inst); - } - } - } - const Parent = params?.Parent ?? Object; - - class Definition extends Parent { - } - Object.defineProperty(Definition, "name", { value: name }); - function _(def) { - var _a; - const inst = params?.Parent ? new Definition : this; - init(inst, def); - (_a = inst._zod).deferred ?? (_a.deferred = []); - for (const fn of inst._zod.deferred) { - fn(); - } - return inst; - } - Object.defineProperty(_, "init", { value: init }); - Object.defineProperty(_, Symbol.hasInstance, { - value: (inst) => { - if (params?.Parent && inst instanceof params.Parent) - return true; - return inst?._zod?.traits?.has(name); - } - }); - Object.defineProperty(_, "name", { value: name }); - return _; -} -var $brand = Symbol("zod_brand"); - -class $ZodAsyncError extends Error { - constructor() { - super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`); - } -} - -class $ZodEncodeError extends Error { - constructor(name) { - super(`Encountered unidirectional transform during encode: ${name}`); - this.name = "ZodEncodeError"; - } -} -var globalConfig = {}; -function config(newConfig) { - if (newConfig) - Object.assign(globalConfig, newConfig); - return globalConfig; -} -// node_modules/zod/v4/core/util.js -var exports_util = {}; -__export(exports_util, { - unwrapMessage: () => unwrapMessage, - uint8ArrayToHex: () => uint8ArrayToHex, - uint8ArrayToBase64url: () => uint8ArrayToBase64url, - uint8ArrayToBase64: () => uint8ArrayToBase64, - stringifyPrimitive: () => stringifyPrimitive, - slugify: () => slugify, - shallowClone: () => shallowClone, - safeExtend: () => safeExtend, - required: () => required, - randomString: () => randomString, - propertyKeyTypes: () => propertyKeyTypes, - promiseAllObject: () => promiseAllObject, - primitiveTypes: () => primitiveTypes, - prefixIssues: () => prefixIssues, - pick: () => pick, - partial: () => partial, - parsedType: () => parsedType, - optionalKeys: () => optionalKeys, - omit: () => omit, - objectClone: () => objectClone, - numKeys: () => numKeys, - nullish: () => nullish, - normalizeParams: () => normalizeParams, - mergeDefs: () => mergeDefs, - merge: () => merge, - jsonStringifyReplacer: () => jsonStringifyReplacer, - joinValues: () => joinValues, - issue: () => issue, - isPlainObject: () => isPlainObject, - isObject: () => isObject, - hexToUint8Array: () => hexToUint8Array, - getSizableOrigin: () => getSizableOrigin, - getParsedType: () => getParsedType, - getLengthableOrigin: () => getLengthableOrigin, - getEnumValues: () => getEnumValues, - getElementAtPath: () => getElementAtPath, - floatSafeRemainder: () => floatSafeRemainder, - finalizeIssue: () => finalizeIssue, - extend: () => extend, - escapeRegex: () => escapeRegex, - esc: () => esc, - defineLazy: () => defineLazy, - createTransparentProxy: () => createTransparentProxy, - cloneDef: () => cloneDef, - clone: () => clone, - cleanRegex: () => cleanRegex, - cleanEnum: () => cleanEnum, - captureStackTrace: () => captureStackTrace, - cached: () => cached, - base64urlToUint8Array: () => base64urlToUint8Array, - base64ToUint8Array: () => base64ToUint8Array, - assignProp: () => assignProp, - assertNotEqual: () => assertNotEqual, - assertNever: () => assertNever, - assertIs: () => assertIs, - assertEqual: () => assertEqual, - assert: () => assert, - allowsEval: () => allowsEval, - aborted: () => aborted, - NUMBER_FORMAT_RANGES: () => NUMBER_FORMAT_RANGES, - Class: () => Class, - BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES -}); -function assertEqual(val) { - return val; -} -function assertNotEqual(val) { - return val; -} -function assertIs(_arg) {} -function assertNever(_x) { - throw new Error("Unexpected value in exhaustive check"); -} -function assert(_) {} -function getEnumValues(entries) { - const numericValues = Object.values(entries).filter((v) => typeof v === "number"); - const values = Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v); - return values; -} -function joinValues(array, separator = "|") { - return array.map((val) => stringifyPrimitive(val)).join(separator); -} -function jsonStringifyReplacer(_, value) { - if (typeof value === "bigint") - return value.toString(); - return value; -} -function cached(getter) { - const set = false; - return { - get value() { - if (!set) { - const value = getter(); - Object.defineProperty(this, "value", { value }); - return value; - } - throw new Error("cached value already set"); - } - }; -} -function nullish(input) { - return input === null || input === undefined; -} -function cleanRegex(source) { - const start = source.startsWith("^") ? 1 : 0; - const end = source.endsWith("$") ? source.length - 1 : source.length; - return source.slice(start, end); -} -function floatSafeRemainder(val, step) { - const valDecCount = (val.toString().split(".")[1] || "").length; - const stepString = step.toString(); - let stepDecCount = (stepString.split(".")[1] || "").length; - if (stepDecCount === 0 && /\d?e-\d?/.test(stepString)) { - const match = stepString.match(/\d?e-(\d?)/); - if (match?.[1]) { - stepDecCount = Number.parseInt(match[1]); - } - } - const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount; - const valInt = Number.parseInt(val.toFixed(decCount).replace(".", "")); - const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", "")); - return valInt % stepInt / 10 ** decCount; -} -var EVALUATING = Symbol("evaluating"); -function defineLazy(object, key, getter) { - let value = undefined; - Object.defineProperty(object, key, { - get() { - if (value === EVALUATING) { - return; - } - if (value === undefined) { - value = EVALUATING; - value = getter(); - } - return value; - }, - set(v) { - Object.defineProperty(object, key, { - value: v - }); - }, - configurable: true - }); -} -function objectClone(obj) { - return Object.create(Object.getPrototypeOf(obj), Object.getOwnPropertyDescriptors(obj)); -} -function assignProp(target, prop, value) { - Object.defineProperty(target, prop, { - value, - writable: true, - enumerable: true, - configurable: true - }); -} -function mergeDefs(...defs) { - const mergedDescriptors = {}; - for (const def of defs) { - const descriptors = Object.getOwnPropertyDescriptors(def); - Object.assign(mergedDescriptors, descriptors); - } - return Object.defineProperties({}, mergedDescriptors); -} -function cloneDef(schema) { - return mergeDefs(schema._zod.def); -} -function getElementAtPath(obj, path) { - if (!path) - return obj; - return path.reduce((acc, key) => acc?.[key], obj); -} -function promiseAllObject(promisesObj) { - const keys = Object.keys(promisesObj); - const promises = keys.map((key) => promisesObj[key]); - return Promise.all(promises).then((results) => { - const resolvedObj = {}; - for (let i = 0;i < keys.length; i++) { - resolvedObj[keys[i]] = results[i]; - } - return resolvedObj; - }); -} -function randomString(length = 10) { - const chars = "abcdefghijklmnopqrstuvwxyz"; - let str = ""; - for (let i = 0;i < length; i++) { - str += chars[Math.floor(Math.random() * chars.length)]; - } - return str; -} -function esc(str) { - return JSON.stringify(str); -} -function slugify(input) { - return input.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, ""); -} -var captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace : (..._args) => {}; -function isObject(data) { - return typeof data === "object" && data !== null && !Array.isArray(data); -} -var allowsEval = cached(() => { - if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) { - return false; - } - try { - const F = Function; - new F(""); - return true; - } catch (_) { - return false; - } -}); -function isPlainObject(o) { - if (isObject(o) === false) - return false; - const ctor = o.constructor; - if (ctor === undefined) - return true; - if (typeof ctor !== "function") - return true; - const prot = ctor.prototype; - if (isObject(prot) === false) - return false; - if (Object.prototype.hasOwnProperty.call(prot, "isPrototypeOf") === false) { - return false; - } - return true; -} -function shallowClone(o) { - if (isPlainObject(o)) - return { ...o }; - if (Array.isArray(o)) - return [...o]; - return o; -} -function numKeys(data) { - let keyCount = 0; - for (const key in data) { - if (Object.prototype.hasOwnProperty.call(data, key)) { - keyCount++; - } - } - return keyCount; -} -var getParsedType = (data) => { - const t = typeof data; - switch (t) { - case "undefined": - return "undefined"; - case "string": - return "string"; - case "number": - return Number.isNaN(data) ? "nan" : "number"; - case "boolean": - return "boolean"; - case "function": - return "function"; - case "bigint": - return "bigint"; - case "symbol": - return "symbol"; - case "object": - if (Array.isArray(data)) { - return "array"; - } - if (data === null) { - return "null"; - } - if (data.then && typeof data.then === "function" && data.catch && typeof data.catch === "function") { - return "promise"; - } - if (typeof Map !== "undefined" && data instanceof Map) { - return "map"; - } - if (typeof Set !== "undefined" && data instanceof Set) { - return "set"; - } - if (typeof Date !== "undefined" && data instanceof Date) { - return "date"; - } - if (typeof File !== "undefined" && data instanceof File) { - return "file"; - } - return "object"; - default: - throw new Error(`Unknown data type: ${t}`); - } -}; -var propertyKeyTypes = new Set(["string", "number", "symbol"]); -var primitiveTypes = new Set(["string", "number", "bigint", "boolean", "symbol", "undefined"]); -function escapeRegex(str) { - return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); -} -function clone(inst, def, params) { - const cl = new inst._zod.constr(def ?? inst._zod.def); - if (!def || params?.parent) - cl._zod.parent = inst; - return cl; -} -function normalizeParams(_params) { - const params = _params; - if (!params) - return {}; - if (typeof params === "string") - return { error: () => params }; - if (params?.message !== undefined) { - if (params?.error !== undefined) - throw new Error("Cannot specify both `message` and `error` params"); - params.error = params.message; - } - delete params.message; - if (typeof params.error === "string") - return { ...params, error: () => params.error }; - return params; -} -function createTransparentProxy(getter) { - let target; - return new Proxy({}, { - get(_, prop, receiver) { - target ?? (target = getter()); - return Reflect.get(target, prop, receiver); - }, - set(_, prop, value, receiver) { - target ?? (target = getter()); - return Reflect.set(target, prop, value, receiver); - }, - has(_, prop) { - target ?? (target = getter()); - return Reflect.has(target, prop); - }, - deleteProperty(_, prop) { - target ?? (target = getter()); - return Reflect.deleteProperty(target, prop); - }, - ownKeys(_) { - target ?? (target = getter()); - return Reflect.ownKeys(target); - }, - getOwnPropertyDescriptor(_, prop) { - target ?? (target = getter()); - return Reflect.getOwnPropertyDescriptor(target, prop); - }, - defineProperty(_, prop, descriptor) { - target ?? (target = getter()); - return Reflect.defineProperty(target, prop, descriptor); - } - }); -} -function stringifyPrimitive(value) { - if (typeof value === "bigint") - return value.toString() + "n"; - if (typeof value === "string") - return `"${value}"`; - return `${value}`; -} -function optionalKeys(shape) { - return Object.keys(shape).filter((k) => { - return shape[k]._zod.optin === "optional" && shape[k]._zod.optout === "optional"; - }); -} -var NUMBER_FORMAT_RANGES = { - safeint: [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER], - int32: [-2147483648, 2147483647], - uint32: [0, 4294967295], - float32: [-340282346638528860000000000000000000000, 340282346638528860000000000000000000000], - float64: [-Number.MAX_VALUE, Number.MAX_VALUE] -}; -var BIGINT_FORMAT_RANGES = { - int64: [/* @__PURE__ */ BigInt("-9223372036854775808"), /* @__PURE__ */ BigInt("9223372036854775807")], - uint64: [/* @__PURE__ */ BigInt(0), /* @__PURE__ */ BigInt("18446744073709551615")] -}; -function pick(schema, mask) { - const currDef = schema._zod.def; - const checks = currDef.checks; - const hasChecks = checks && checks.length > 0; - if (hasChecks) { - throw new Error(".pick() cannot be used on object schemas containing refinements"); - } - const def = mergeDefs(schema._zod.def, { - get shape() { - const newShape = {}; - for (const key in mask) { - if (!(key in currDef.shape)) { - throw new Error(`Unrecognized key: "${key}"`); - } - if (!mask[key]) - continue; - newShape[key] = currDef.shape[key]; - } - assignProp(this, "shape", newShape); - return newShape; - }, - checks: [] - }); - return clone(schema, def); -} -function omit(schema, mask) { - const currDef = schema._zod.def; - const checks = currDef.checks; - const hasChecks = checks && checks.length > 0; - if (hasChecks) { - throw new Error(".omit() cannot be used on object schemas containing refinements"); - } - const def = mergeDefs(schema._zod.def, { - get shape() { - const newShape = { ...schema._zod.def.shape }; - for (const key in mask) { - if (!(key in currDef.shape)) { - throw new Error(`Unrecognized key: "${key}"`); - } - if (!mask[key]) - continue; - delete newShape[key]; - } - assignProp(this, "shape", newShape); - return newShape; - }, - checks: [] - }); - return clone(schema, def); -} -function extend(schema, shape) { - if (!isPlainObject(shape)) { - throw new Error("Invalid input to extend: expected a plain object"); - } - const checks = schema._zod.def.checks; - const hasChecks = checks && checks.length > 0; - if (hasChecks) { - const existingShape = schema._zod.def.shape; - for (const key in shape) { - if (Object.getOwnPropertyDescriptor(existingShape, key) !== undefined) { - throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead."); - } - } - } - const def = mergeDefs(schema._zod.def, { - get shape() { - const _shape = { ...schema._zod.def.shape, ...shape }; - assignProp(this, "shape", _shape); - return _shape; - } - }); - return clone(schema, def); -} -function safeExtend(schema, shape) { - if (!isPlainObject(shape)) { - throw new Error("Invalid input to safeExtend: expected a plain object"); - } - const def = mergeDefs(schema._zod.def, { - get shape() { - const _shape = { ...schema._zod.def.shape, ...shape }; - assignProp(this, "shape", _shape); - return _shape; - } - }); - return clone(schema, def); -} -function merge(a, b) { - const def = mergeDefs(a._zod.def, { - get shape() { - const _shape = { ...a._zod.def.shape, ...b._zod.def.shape }; - assignProp(this, "shape", _shape); - return _shape; - }, - get catchall() { - return b._zod.def.catchall; - }, - checks: [] - }); - return clone(a, def); -} -function partial(Class, schema, mask) { - const currDef = schema._zod.def; - const checks = currDef.checks; - const hasChecks = checks && checks.length > 0; - if (hasChecks) { - throw new Error(".partial() cannot be used on object schemas containing refinements"); - } - const def = mergeDefs(schema._zod.def, { - get shape() { - const oldShape = schema._zod.def.shape; - const shape = { ...oldShape }; - if (mask) { - for (const key in mask) { - if (!(key in oldShape)) { - throw new Error(`Unrecognized key: "${key}"`); - } - if (!mask[key]) - continue; - shape[key] = Class ? new Class({ - type: "optional", - innerType: oldShape[key] - }) : oldShape[key]; - } - } else { - for (const key in oldShape) { - shape[key] = Class ? new Class({ - type: "optional", - innerType: oldShape[key] - }) : oldShape[key]; - } - } - assignProp(this, "shape", shape); - return shape; - }, - checks: [] - }); - return clone(schema, def); -} -function required(Class, schema, mask) { - const def = mergeDefs(schema._zod.def, { - get shape() { - const oldShape = schema._zod.def.shape; - const shape = { ...oldShape }; - if (mask) { - for (const key in mask) { - if (!(key in shape)) { - throw new Error(`Unrecognized key: "${key}"`); - } - if (!mask[key]) - continue; - shape[key] = new Class({ - type: "nonoptional", - innerType: oldShape[key] - }); - } - } else { - for (const key in oldShape) { - shape[key] = new Class({ - type: "nonoptional", - innerType: oldShape[key] - }); - } - } - assignProp(this, "shape", shape); - return shape; - } - }); - return clone(schema, def); -} -function aborted(x, startIndex = 0) { - if (x.aborted === true) - return true; - for (let i = startIndex;i < x.issues.length; i++) { - if (x.issues[i]?.continue !== true) { - return true; - } - } - return false; -} -function prefixIssues(path, issues) { - return issues.map((iss) => { - var _a; - (_a = iss).path ?? (_a.path = []); - iss.path.unshift(path); - return iss; - }); -} -function unwrapMessage(message) { - return typeof message === "string" ? message : message?.message; -} -function finalizeIssue(iss, ctx, config2) { - const full = { ...iss, path: iss.path ?? [] }; - if (!iss.message) { - const message = unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config2.customError?.(iss)) ?? unwrapMessage(config2.localeError?.(iss)) ?? "Invalid input"; - full.message = message; - } - delete full.inst; - delete full.continue; - if (!ctx?.reportInput) { - delete full.input; - } - return full; -} -function getSizableOrigin(input) { - if (input instanceof Set) - return "set"; - if (input instanceof Map) - return "map"; - if (input instanceof File) - return "file"; - return "unknown"; -} -function getLengthableOrigin(input) { - if (Array.isArray(input)) - return "array"; - if (typeof input === "string") - return "string"; - return "unknown"; -} -function parsedType(data) { - const t = typeof data; - switch (t) { - case "number": { - return Number.isNaN(data) ? "nan" : "number"; - } - case "object": { - if (data === null) { - return "null"; - } - if (Array.isArray(data)) { - return "array"; - } - const obj = data; - if (obj && Object.getPrototypeOf(obj) !== Object.prototype && "constructor" in obj && obj.constructor) { - return obj.constructor.name; - } - } - } - return t; -} -function issue(...args) { - const [iss, input, inst] = args; - if (typeof iss === "string") { - return { - message: iss, - code: "custom", - input, - inst - }; - } - return { ...iss }; -} -function cleanEnum(obj) { - return Object.entries(obj).filter(([k, _]) => { - return Number.isNaN(Number.parseInt(k, 10)); - }).map((el) => el[1]); -} -function base64ToUint8Array(base64) { - const binaryString = atob(base64); - const bytes = new Uint8Array(binaryString.length); - for (let i = 0;i < binaryString.length; i++) { - bytes[i] = binaryString.charCodeAt(i); - } - return bytes; -} -function uint8ArrayToBase64(bytes) { - let binaryString = ""; - for (let i = 0;i < bytes.length; i++) { - binaryString += String.fromCharCode(bytes[i]); - } - return btoa(binaryString); -} -function base64urlToUint8Array(base64url) { - const base64 = base64url.replace(/-/g, "+").replace(/_/g, "/"); - const padding = "=".repeat((4 - base64.length % 4) % 4); - return base64ToUint8Array(base64 + padding); -} -function uint8ArrayToBase64url(bytes) { - return uint8ArrayToBase64(bytes).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, ""); -} -function hexToUint8Array(hex) { - const cleanHex = hex.replace(/^0x/, ""); - if (cleanHex.length % 2 !== 0) { - throw new Error("Invalid hex string length"); - } - const bytes = new Uint8Array(cleanHex.length / 2); - for (let i = 0;i < cleanHex.length; i += 2) { - bytes[i / 2] = Number.parseInt(cleanHex.slice(i, i + 2), 16); - } - return bytes; -} -function uint8ArrayToHex(bytes) { - return Array.from(bytes).map((b) => b.toString(16).padStart(2, "0")).join(""); -} - -class Class { - constructor(..._args) {} -} - -// node_modules/zod/v4/core/errors.js -var initializer = (inst, def) => { - inst.name = "$ZodError"; - Object.defineProperty(inst, "_zod", { - value: inst._zod, - enumerable: false - }); - Object.defineProperty(inst, "issues", { - value: def, - enumerable: false - }); - inst.message = JSON.stringify(def, jsonStringifyReplacer, 2); - Object.defineProperty(inst, "toString", { - value: () => inst.message, - enumerable: false - }); -}; -var $ZodError = $constructor("$ZodError", initializer); -var $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error }); -function flattenError(error, mapper = (issue2) => issue2.message) { - const fieldErrors = {}; - const formErrors = []; - for (const sub of error.issues) { - if (sub.path.length > 0) { - fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || []; - fieldErrors[sub.path[0]].push(mapper(sub)); - } else { - formErrors.push(mapper(sub)); - } - } - return { formErrors, fieldErrors }; -} -function formatError(error, mapper = (issue2) => issue2.message) { - const fieldErrors = { _errors: [] }; - const processError = (error2) => { - for (const issue2 of error2.issues) { - if (issue2.code === "invalid_union" && issue2.errors.length) { - issue2.errors.map((issues) => processError({ issues })); - } else if (issue2.code === "invalid_key") { - processError({ issues: issue2.issues }); - } else if (issue2.code === "invalid_element") { - processError({ issues: issue2.issues }); - } else if (issue2.path.length === 0) { - fieldErrors._errors.push(mapper(issue2)); - } else { - let curr = fieldErrors; - let i = 0; - while (i < issue2.path.length) { - const el = issue2.path[i]; - const terminal = i === issue2.path.length - 1; - if (!terminal) { - curr[el] = curr[el] || { _errors: [] }; - } else { - curr[el] = curr[el] || { _errors: [] }; - curr[el]._errors.push(mapper(issue2)); - } - curr = curr[el]; - i++; - } - } - } - }; - processError(error); - return fieldErrors; -} - -// node_modules/zod/v4/core/parse.js -var _parse = (_Err) => (schema, value, _ctx, _params) => { - const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false }; - const result = schema._zod.run({ value, issues: [] }, ctx); - if (result instanceof Promise) { - throw new $ZodAsyncError; - } - if (result.issues.length) { - const e = new (_params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config()))); - captureStackTrace(e, _params?.callee); - throw e; - } - return result.value; -}; -var _parseAsync = (_Err) => async (schema, value, _ctx, params) => { - const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true }; - let result = schema._zod.run({ value, issues: [] }, ctx); - if (result instanceof Promise) - result = await result; - if (result.issues.length) { - const e = new (params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config()))); - captureStackTrace(e, params?.callee); - throw e; - } - return result.value; -}; -var _safeParse = (_Err) => (schema, value, _ctx) => { - const ctx = _ctx ? { ..._ctx, async: false } : { async: false }; - const result = schema._zod.run({ value, issues: [] }, ctx); - if (result instanceof Promise) { - throw new $ZodAsyncError; - } - return result.issues.length ? { - success: false, - error: new (_Err ?? $ZodError)(result.issues.map((iss) => finalizeIssue(iss, ctx, config()))) - } : { success: true, data: result.value }; -}; -var safeParse = /* @__PURE__ */ _safeParse($ZodRealError); -var _safeParseAsync = (_Err) => async (schema, value, _ctx) => { - const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true }; - let result = schema._zod.run({ value, issues: [] }, ctx); - if (result instanceof Promise) - result = await result; - return result.issues.length ? { - success: false, - error: new _Err(result.issues.map((iss) => finalizeIssue(iss, ctx, config()))) - } : { success: true, data: result.value }; -}; -var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError); -var _encode = (_Err) => (schema, value, _ctx) => { - const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" }; - return _parse(_Err)(schema, value, ctx); -}; -var _decode = (_Err) => (schema, value, _ctx) => { - return _parse(_Err)(schema, value, _ctx); -}; -var _encodeAsync = (_Err) => async (schema, value, _ctx) => { - const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" }; - return _parseAsync(_Err)(schema, value, ctx); -}; -var _decodeAsync = (_Err) => async (schema, value, _ctx) => { - return _parseAsync(_Err)(schema, value, _ctx); -}; -var _safeEncode = (_Err) => (schema, value, _ctx) => { - const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" }; - return _safeParse(_Err)(schema, value, ctx); -}; -var _safeDecode = (_Err) => (schema, value, _ctx) => { - return _safeParse(_Err)(schema, value, _ctx); -}; -var _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => { - const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" }; - return _safeParseAsync(_Err)(schema, value, ctx); -}; -var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => { - return _safeParseAsync(_Err)(schema, value, _ctx); -}; -// node_modules/zod/v4/core/regexes.js -var cuid = /^[cC][^\s-]{8,}$/; -var cuid2 = /^[0-9a-z]+$/; -var ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/; -var xid = /^[0-9a-vA-V]{20}$/; -var ksuid = /^[A-Za-z0-9]{27}$/; -var nanoid = /^[a-zA-Z0-9_-]{21}$/; -var duration = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/; -var guid = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/; -var uuid = (version) => { - if (!version) - return /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/; - return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${version}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`); -}; -var email = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/; -var _emoji = `^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`; -function emoji() { - return new RegExp(_emoji, "u"); -} -var ipv4 = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/; -var ipv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/; -var cidrv4 = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/; -var cidrv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/; -var base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/; -var base64url = /^[A-Za-z0-9_-]*$/; -var e164 = /^\+[1-9]\d{6,14}$/; -var dateSource = `(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`; -var date = /* @__PURE__ */ new RegExp(`^${dateSource}$`); -function timeSource(args) { - const hhmm = `(?:[01]\\d|2[0-3]):[0-5]\\d`; - const regex = typeof args.precision === "number" ? args.precision === -1 ? `${hhmm}` : args.precision === 0 ? `${hhmm}:[0-5]\\d` : `${hhmm}:[0-5]\\d\\.\\d{${args.precision}}` : `${hhmm}(?::[0-5]\\d(?:\\.\\d+)?)?`; - return regex; -} -function time(args) { - return new RegExp(`^${timeSource(args)}$`); -} -function datetime(args) { - const time2 = timeSource({ precision: args.precision }); - const opts = ["Z"]; - if (args.local) - opts.push(""); - if (args.offset) - opts.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`); - const timeRegex = `${time2}(?:${opts.join("|")})`; - return new RegExp(`^${dateSource}T(?:${timeRegex})$`); -} -var string = (params) => { - const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`; - return new RegExp(`^${regex}$`); -}; -var integer = /^-?\d+$/; -var number = /^-?\d+(?:\.\d+)?$/; -var boolean = /^(?:true|false)$/i; -var _null = /^null$/i; -var lowercase = /^[^A-Z]*$/; -var uppercase = /^[^a-z]*$/; - -// node_modules/zod/v4/core/checks.js -var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => { - var _a; - inst._zod ?? (inst._zod = {}); - inst._zod.def = def; - (_a = inst._zod).onattach ?? (_a.onattach = []); -}); -var numericOriginMap = { - number: "number", - bigint: "bigint", - object: "date" -}; -var $ZodCheckLessThan = /* @__PURE__ */ $constructor("$ZodCheckLessThan", (inst, def) => { - $ZodCheck.init(inst, def); - const origin = numericOriginMap[typeof def.value]; - inst._zod.onattach.push((inst2) => { - const bag = inst2._zod.bag; - const curr = (def.inclusive ? bag.maximum : bag.exclusiveMaximum) ?? Number.POSITIVE_INFINITY; - if (def.value < curr) { - if (def.inclusive) - bag.maximum = def.value; - else - bag.exclusiveMaximum = def.value; - } - }); - inst._zod.check = (payload) => { - if (def.inclusive ? payload.value <= def.value : payload.value < def.value) { - return; - } - payload.issues.push({ - origin, - code: "too_big", - maximum: typeof def.value === "object" ? def.value.getTime() : def.value, - input: payload.value, - inclusive: def.inclusive, - inst, - continue: !def.abort - }); - }; -}); -var $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan", (inst, def) => { - $ZodCheck.init(inst, def); - const origin = numericOriginMap[typeof def.value]; - inst._zod.onattach.push((inst2) => { - const bag = inst2._zod.bag; - const curr = (def.inclusive ? bag.minimum : bag.exclusiveMinimum) ?? Number.NEGATIVE_INFINITY; - if (def.value > curr) { - if (def.inclusive) - bag.minimum = def.value; - else - bag.exclusiveMinimum = def.value; - } - }); - inst._zod.check = (payload) => { - if (def.inclusive ? payload.value >= def.value : payload.value > def.value) { - return; - } - payload.issues.push({ - origin, - code: "too_small", - minimum: typeof def.value === "object" ? def.value.getTime() : def.value, - input: payload.value, - inclusive: def.inclusive, - inst, - continue: !def.abort - }); - }; -}); -var $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => { - $ZodCheck.init(inst, def); - inst._zod.onattach.push((inst2) => { - var _a; - (_a = inst2._zod.bag).multipleOf ?? (_a.multipleOf = def.value); - }); - inst._zod.check = (payload) => { - if (typeof payload.value !== typeof def.value) - throw new Error("Cannot mix number and bigint in multiple_of check."); - const isMultiple = typeof payload.value === "bigint" ? payload.value % def.value === BigInt(0) : floatSafeRemainder(payload.value, def.value) === 0; - if (isMultiple) - return; - payload.issues.push({ - origin: typeof payload.value, - code: "not_multiple_of", - divisor: def.value, - input: payload.value, - inst, - continue: !def.abort - }); - }; -}); -var $ZodCheckNumberFormat = /* @__PURE__ */ $constructor("$ZodCheckNumberFormat", (inst, def) => { - $ZodCheck.init(inst, def); - def.format = def.format || "float64"; - const isInt = def.format?.includes("int"); - const origin = isInt ? "int" : "number"; - const [minimum, maximum] = NUMBER_FORMAT_RANGES[def.format]; - inst._zod.onattach.push((inst2) => { - const bag = inst2._zod.bag; - bag.format = def.format; - bag.minimum = minimum; - bag.maximum = maximum; - if (isInt) - bag.pattern = integer; - }); - inst._zod.check = (payload) => { - const input = payload.value; - if (isInt) { - if (!Number.isInteger(input)) { - payload.issues.push({ - expected: origin, - format: def.format, - code: "invalid_type", - continue: false, - input, - inst - }); - return; - } - if (!Number.isSafeInteger(input)) { - if (input > 0) { - payload.issues.push({ - input, - code: "too_big", - maximum: Number.MAX_SAFE_INTEGER, - note: "Integers must be within the safe integer range.", - inst, - origin, - inclusive: true, - continue: !def.abort - }); - } else { - payload.issues.push({ - input, - code: "too_small", - minimum: Number.MIN_SAFE_INTEGER, - note: "Integers must be within the safe integer range.", - inst, - origin, - inclusive: true, - continue: !def.abort - }); - } - return; - } - } - if (input < minimum) { - payload.issues.push({ - origin: "number", - input, - code: "too_small", - minimum, - inclusive: true, - inst, - continue: !def.abort - }); - } - if (input > maximum) { - payload.issues.push({ - origin: "number", - input, - code: "too_big", - maximum, - inclusive: true, - inst, - continue: !def.abort - }); - } - }; -}); -var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => { - var _a; - $ZodCheck.init(inst, def); - (_a = inst._zod.def).when ?? (_a.when = (payload) => { - const val = payload.value; - return !nullish(val) && val.length !== undefined; - }); - inst._zod.onattach.push((inst2) => { - const curr = inst2._zod.bag.maximum ?? Number.POSITIVE_INFINITY; - if (def.maximum < curr) - inst2._zod.bag.maximum = def.maximum; - }); - inst._zod.check = (payload) => { - const input = payload.value; - const length = input.length; - if (length <= def.maximum) - return; - const origin = getLengthableOrigin(input); - payload.issues.push({ - origin, - code: "too_big", - maximum: def.maximum, - inclusive: true, - input, - inst, - continue: !def.abort - }); - }; -}); -var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => { - var _a; - $ZodCheck.init(inst, def); - (_a = inst._zod.def).when ?? (_a.when = (payload) => { - const val = payload.value; - return !nullish(val) && val.length !== undefined; - }); - inst._zod.onattach.push((inst2) => { - const curr = inst2._zod.bag.minimum ?? Number.NEGATIVE_INFINITY; - if (def.minimum > curr) - inst2._zod.bag.minimum = def.minimum; - }); - inst._zod.check = (payload) => { - const input = payload.value; - const length = input.length; - if (length >= def.minimum) - return; - const origin = getLengthableOrigin(input); - payload.issues.push({ - origin, - code: "too_small", - minimum: def.minimum, - inclusive: true, - input, - inst, - continue: !def.abort - }); - }; -}); -var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => { - var _a; - $ZodCheck.init(inst, def); - (_a = inst._zod.def).when ?? (_a.when = (payload) => { - const val = payload.value; - return !nullish(val) && val.length !== undefined; - }); - inst._zod.onattach.push((inst2) => { - const bag = inst2._zod.bag; - bag.minimum = def.length; - bag.maximum = def.length; - bag.length = def.length; - }); - inst._zod.check = (payload) => { - const input = payload.value; - const length = input.length; - if (length === def.length) - return; - const origin = getLengthableOrigin(input); - const tooBig = length > def.length; - payload.issues.push({ - origin, - ...tooBig ? { code: "too_big", maximum: def.length } : { code: "too_small", minimum: def.length }, - inclusive: true, - exact: true, - input: payload.value, - inst, - continue: !def.abort - }); - }; -}); -var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => { - var _a, _b; - $ZodCheck.init(inst, def); - inst._zod.onattach.push((inst2) => { - const bag = inst2._zod.bag; - bag.format = def.format; - if (def.pattern) { - bag.patterns ?? (bag.patterns = new Set); - bag.patterns.add(def.pattern); - } - }); - if (def.pattern) - (_a = inst._zod).check ?? (_a.check = (payload) => { - def.pattern.lastIndex = 0; - if (def.pattern.test(payload.value)) - return; - payload.issues.push({ - origin: "string", - code: "invalid_format", - format: def.format, - input: payload.value, - ...def.pattern ? { pattern: def.pattern.toString() } : {}, - inst, - continue: !def.abort - }); - }); - else - (_b = inst._zod).check ?? (_b.check = () => {}); -}); -var $ZodCheckRegex = /* @__PURE__ */ $constructor("$ZodCheckRegex", (inst, def) => { - $ZodCheckStringFormat.init(inst, def); - inst._zod.check = (payload) => { - def.pattern.lastIndex = 0; - if (def.pattern.test(payload.value)) - return; - payload.issues.push({ - origin: "string", - code: "invalid_format", - format: "regex", - input: payload.value, - pattern: def.pattern.toString(), - inst, - continue: !def.abort - }); - }; -}); -var $ZodCheckLowerCase = /* @__PURE__ */ $constructor("$ZodCheckLowerCase", (inst, def) => { - def.pattern ?? (def.pattern = lowercase); - $ZodCheckStringFormat.init(inst, def); -}); -var $ZodCheckUpperCase = /* @__PURE__ */ $constructor("$ZodCheckUpperCase", (inst, def) => { - def.pattern ?? (def.pattern = uppercase); - $ZodCheckStringFormat.init(inst, def); -}); -var $ZodCheckIncludes = /* @__PURE__ */ $constructor("$ZodCheckIncludes", (inst, def) => { - $ZodCheck.init(inst, def); - const escapedRegex = escapeRegex(def.includes); - const pattern = new RegExp(typeof def.position === "number" ? `^.{${def.position}}${escapedRegex}` : escapedRegex); - def.pattern = pattern; - inst._zod.onattach.push((inst2) => { - const bag = inst2._zod.bag; - bag.patterns ?? (bag.patterns = new Set); - bag.patterns.add(pattern); - }); - inst._zod.check = (payload) => { - if (payload.value.includes(def.includes, def.position)) - return; - payload.issues.push({ - origin: "string", - code: "invalid_format", - format: "includes", - includes: def.includes, - input: payload.value, - inst, - continue: !def.abort - }); - }; -}); -var $ZodCheckStartsWith = /* @__PURE__ */ $constructor("$ZodCheckStartsWith", (inst, def) => { - $ZodCheck.init(inst, def); - const pattern = new RegExp(`^${escapeRegex(def.prefix)}.*`); - def.pattern ?? (def.pattern = pattern); - inst._zod.onattach.push((inst2) => { - const bag = inst2._zod.bag; - bag.patterns ?? (bag.patterns = new Set); - bag.patterns.add(pattern); - }); - inst._zod.check = (payload) => { - if (payload.value.startsWith(def.prefix)) - return; - payload.issues.push({ - origin: "string", - code: "invalid_format", - format: "starts_with", - prefix: def.prefix, - input: payload.value, - inst, - continue: !def.abort - }); - }; -}); -var $ZodCheckEndsWith = /* @__PURE__ */ $constructor("$ZodCheckEndsWith", (inst, def) => { - $ZodCheck.init(inst, def); - const pattern = new RegExp(`.*${escapeRegex(def.suffix)}$`); - def.pattern ?? (def.pattern = pattern); - inst._zod.onattach.push((inst2) => { - const bag = inst2._zod.bag; - bag.patterns ?? (bag.patterns = new Set); - bag.patterns.add(pattern); - }); - inst._zod.check = (payload) => { - if (payload.value.endsWith(def.suffix)) - return; - payload.issues.push({ - origin: "string", - code: "invalid_format", - format: "ends_with", - suffix: def.suffix, - input: payload.value, - inst, - continue: !def.abort - }); - }; -}); -var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (inst, def) => { - $ZodCheck.init(inst, def); - inst._zod.check = (payload) => { - payload.value = def.tx(payload.value); - }; -}); - -// node_modules/zod/v4/core/doc.js -class Doc { - constructor(args = []) { - this.content = []; - this.indent = 0; - if (this) - this.args = args; - } - indented(fn) { - this.indent += 1; - fn(this); - this.indent -= 1; - } - write(arg) { - if (typeof arg === "function") { - arg(this, { execution: "sync" }); - arg(this, { execution: "async" }); - return; - } - const content = arg; - const lines = content.split(` -`).filter((x) => x); - const minIndent = Math.min(...lines.map((x) => x.length - x.trimStart().length)); - const dedented = lines.map((x) => x.slice(minIndent)).map((x) => " ".repeat(this.indent * 2) + x); - for (const line of dedented) { - this.content.push(line); - } - } - compile() { - const F = Function; - const args = this?.args; - const content = this?.content ?? [``]; - const lines = [...content.map((x) => ` ${x}`)]; - return new F(...args, lines.join(` -`)); - } -} - -// node_modules/zod/v4/core/versions.js -var version = { - major: 4, - minor: 3, - patch: 6 -}; - -// node_modules/zod/v4/core/schemas.js -var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => { - var _a; - inst ?? (inst = {}); - inst._zod.def = def; - inst._zod.bag = inst._zod.bag || {}; - inst._zod.version = version; - const checks = [...inst._zod.def.checks ?? []]; - if (inst._zod.traits.has("$ZodCheck")) { - checks.unshift(inst); - } - for (const ch of checks) { - for (const fn of ch._zod.onattach) { - fn(inst); - } - } - if (checks.length === 0) { - (_a = inst._zod).deferred ?? (_a.deferred = []); - inst._zod.deferred?.push(() => { - inst._zod.run = inst._zod.parse; - }); - } else { - const runChecks = (payload, checks2, ctx) => { - let isAborted = aborted(payload); - let asyncResult; - for (const ch of checks2) { - if (ch._zod.def.when) { - const shouldRun = ch._zod.def.when(payload); - if (!shouldRun) - continue; - } else if (isAborted) { - continue; - } - const currLen = payload.issues.length; - const _ = ch._zod.check(payload); - if (_ instanceof Promise && ctx?.async === false) { - throw new $ZodAsyncError; - } - if (asyncResult || _ instanceof Promise) { - asyncResult = (asyncResult ?? Promise.resolve()).then(async () => { - await _; - const nextLen = payload.issues.length; - if (nextLen === currLen) - return; - if (!isAborted) - isAborted = aborted(payload, currLen); - }); - } else { - const nextLen = payload.issues.length; - if (nextLen === currLen) - continue; - if (!isAborted) - isAborted = aborted(payload, currLen); - } - } - if (asyncResult) { - return asyncResult.then(() => { - return payload; - }); - } - return payload; - }; - const handleCanaryResult = (canary, payload, ctx) => { - if (aborted(canary)) { - canary.aborted = true; - return canary; - } - const checkResult = runChecks(payload, checks, ctx); - if (checkResult instanceof Promise) { - if (ctx.async === false) - throw new $ZodAsyncError; - return checkResult.then((checkResult2) => inst._zod.parse(checkResult2, ctx)); - } - return inst._zod.parse(checkResult, ctx); - }; - inst._zod.run = (payload, ctx) => { - if (ctx.skipChecks) { - return inst._zod.parse(payload, ctx); - } - if (ctx.direction === "backward") { - const canary = inst._zod.parse({ value: payload.value, issues: [] }, { ...ctx, skipChecks: true }); - if (canary instanceof Promise) { - return canary.then((canary2) => { - return handleCanaryResult(canary2, payload, ctx); - }); - } - return handleCanaryResult(canary, payload, ctx); - } - const result = inst._zod.parse(payload, ctx); - if (result instanceof Promise) { - if (ctx.async === false) - throw new $ZodAsyncError; - return result.then((result2) => runChecks(result2, checks, ctx)); - } - return runChecks(result, checks, ctx); - }; - } - defineLazy(inst, "~standard", () => ({ - validate: (value) => { - try { - const r = safeParse(inst, value); - return r.success ? { value: r.data } : { issues: r.error?.issues }; - } catch (_) { - return safeParseAsync(inst, value).then((r) => r.success ? { value: r.data } : { issues: r.error?.issues }); - } - }, - vendor: "zod", - version: 1 - })); -}); -var $ZodString = /* @__PURE__ */ $constructor("$ZodString", (inst, def) => { - $ZodType.init(inst, def); - inst._zod.pattern = [...inst?._zod.bag?.patterns ?? []].pop() ?? string(inst._zod.bag); - inst._zod.parse = (payload, _) => { - if (def.coerce) - try { - payload.value = String(payload.value); - } catch (_2) {} - if (typeof payload.value === "string") - return payload; - payload.issues.push({ - expected: "string", - code: "invalid_type", - input: payload.value, - inst - }); - return payload; - }; -}); -var $ZodStringFormat = /* @__PURE__ */ $constructor("$ZodStringFormat", (inst, def) => { - $ZodCheckStringFormat.init(inst, def); - $ZodString.init(inst, def); -}); -var $ZodGUID = /* @__PURE__ */ $constructor("$ZodGUID", (inst, def) => { - def.pattern ?? (def.pattern = guid); - $ZodStringFormat.init(inst, def); -}); -var $ZodUUID = /* @__PURE__ */ $constructor("$ZodUUID", (inst, def) => { - if (def.version) { - const versionMap = { - v1: 1, - v2: 2, - v3: 3, - v4: 4, - v5: 5, - v6: 6, - v7: 7, - v8: 8 - }; - const v = versionMap[def.version]; - if (v === undefined) - throw new Error(`Invalid UUID version: "${def.version}"`); - def.pattern ?? (def.pattern = uuid(v)); - } else - def.pattern ?? (def.pattern = uuid()); - $ZodStringFormat.init(inst, def); -}); -var $ZodEmail = /* @__PURE__ */ $constructor("$ZodEmail", (inst, def) => { - def.pattern ?? (def.pattern = email); - $ZodStringFormat.init(inst, def); -}); -var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => { - $ZodStringFormat.init(inst, def); - inst._zod.check = (payload) => { - try { - const trimmed = payload.value.trim(); - const url = new URL(trimmed); - if (def.hostname) { - def.hostname.lastIndex = 0; - if (!def.hostname.test(url.hostname)) { - payload.issues.push({ - code: "invalid_format", - format: "url", - note: "Invalid hostname", - pattern: def.hostname.source, - input: payload.value, - inst, - continue: !def.abort - }); - } - } - if (def.protocol) { - def.protocol.lastIndex = 0; - if (!def.protocol.test(url.protocol.endsWith(":") ? url.protocol.slice(0, -1) : url.protocol)) { - payload.issues.push({ - code: "invalid_format", - format: "url", - note: "Invalid protocol", - pattern: def.protocol.source, - input: payload.value, - inst, - continue: !def.abort - }); - } - } - if (def.normalize) { - payload.value = url.href; - } else { - payload.value = trimmed; - } - return; - } catch (_) { - payload.issues.push({ - code: "invalid_format", - format: "url", - input: payload.value, - inst, - continue: !def.abort - }); - } - }; -}); -var $ZodEmoji = /* @__PURE__ */ $constructor("$ZodEmoji", (inst, def) => { - def.pattern ?? (def.pattern = emoji()); - $ZodStringFormat.init(inst, def); -}); -var $ZodNanoID = /* @__PURE__ */ $constructor("$ZodNanoID", (inst, def) => { - def.pattern ?? (def.pattern = nanoid); - $ZodStringFormat.init(inst, def); -}); -var $ZodCUID = /* @__PURE__ */ $constructor("$ZodCUID", (inst, def) => { - def.pattern ?? (def.pattern = cuid); - $ZodStringFormat.init(inst, def); -}); -var $ZodCUID2 = /* @__PURE__ */ $constructor("$ZodCUID2", (inst, def) => { - def.pattern ?? (def.pattern = cuid2); - $ZodStringFormat.init(inst, def); -}); -var $ZodULID = /* @__PURE__ */ $constructor("$ZodULID", (inst, def) => { - def.pattern ?? (def.pattern = ulid); - $ZodStringFormat.init(inst, def); -}); -var $ZodXID = /* @__PURE__ */ $constructor("$ZodXID", (inst, def) => { - def.pattern ?? (def.pattern = xid); - $ZodStringFormat.init(inst, def); -}); -var $ZodKSUID = /* @__PURE__ */ $constructor("$ZodKSUID", (inst, def) => { - def.pattern ?? (def.pattern = ksuid); - $ZodStringFormat.init(inst, def); -}); -var $ZodISODateTime = /* @__PURE__ */ $constructor("$ZodISODateTime", (inst, def) => { - def.pattern ?? (def.pattern = datetime(def)); - $ZodStringFormat.init(inst, def); -}); -var $ZodISODate = /* @__PURE__ */ $constructor("$ZodISODate", (inst, def) => { - def.pattern ?? (def.pattern = date); - $ZodStringFormat.init(inst, def); -}); -var $ZodISOTime = /* @__PURE__ */ $constructor("$ZodISOTime", (inst, def) => { - def.pattern ?? (def.pattern = time(def)); - $ZodStringFormat.init(inst, def); -}); -var $ZodISODuration = /* @__PURE__ */ $constructor("$ZodISODuration", (inst, def) => { - def.pattern ?? (def.pattern = duration); - $ZodStringFormat.init(inst, def); -}); -var $ZodIPv4 = /* @__PURE__ */ $constructor("$ZodIPv4", (inst, def) => { - def.pattern ?? (def.pattern = ipv4); - $ZodStringFormat.init(inst, def); - inst._zod.bag.format = `ipv4`; -}); -var $ZodIPv6 = /* @__PURE__ */ $constructor("$ZodIPv6", (inst, def) => { - def.pattern ?? (def.pattern = ipv6); - $ZodStringFormat.init(inst, def); - inst._zod.bag.format = `ipv6`; - inst._zod.check = (payload) => { - try { - new URL(`http://[${payload.value}]`); - } catch { - payload.issues.push({ - code: "invalid_format", - format: "ipv6", - input: payload.value, - inst, - continue: !def.abort - }); - } - }; -}); -var $ZodCIDRv4 = /* @__PURE__ */ $constructor("$ZodCIDRv4", (inst, def) => { - def.pattern ?? (def.pattern = cidrv4); - $ZodStringFormat.init(inst, def); -}); -var $ZodCIDRv6 = /* @__PURE__ */ $constructor("$ZodCIDRv6", (inst, def) => { - def.pattern ?? (def.pattern = cidrv6); - $ZodStringFormat.init(inst, def); - inst._zod.check = (payload) => { - const parts = payload.value.split("/"); - try { - if (parts.length !== 2) - throw new Error; - const [address, prefix] = parts; - if (!prefix) - throw new Error; - const prefixNum = Number(prefix); - if (`${prefixNum}` !== prefix) - throw new Error; - if (prefixNum < 0 || prefixNum > 128) - throw new Error; - new URL(`http://[${address}]`); - } catch { - payload.issues.push({ - code: "invalid_format", - format: "cidrv6", - input: payload.value, - inst, - continue: !def.abort - }); - } - }; -}); -function isValidBase64(data) { - if (data === "") - return true; - if (data.length % 4 !== 0) - return false; - try { - atob(data); - return true; - } catch { - return false; - } -} -var $ZodBase64 = /* @__PURE__ */ $constructor("$ZodBase64", (inst, def) => { - def.pattern ?? (def.pattern = base64); - $ZodStringFormat.init(inst, def); - inst._zod.bag.contentEncoding = "base64"; - inst._zod.check = (payload) => { - if (isValidBase64(payload.value)) - return; - payload.issues.push({ - code: "invalid_format", - format: "base64", - input: payload.value, - inst, - continue: !def.abort - }); - }; -}); -function isValidBase64URL(data) { - if (!base64url.test(data)) - return false; - const base642 = data.replace(/[-_]/g, (c) => c === "-" ? "+" : "/"); - const padded = base642.padEnd(Math.ceil(base642.length / 4) * 4, "="); - return isValidBase64(padded); -} -var $ZodBase64URL = /* @__PURE__ */ $constructor("$ZodBase64URL", (inst, def) => { - def.pattern ?? (def.pattern = base64url); - $ZodStringFormat.init(inst, def); - inst._zod.bag.contentEncoding = "base64url"; - inst._zod.check = (payload) => { - if (isValidBase64URL(payload.value)) - return; - payload.issues.push({ - code: "invalid_format", - format: "base64url", - input: payload.value, - inst, - continue: !def.abort - }); - }; -}); -var $ZodE164 = /* @__PURE__ */ $constructor("$ZodE164", (inst, def) => { - def.pattern ?? (def.pattern = e164); - $ZodStringFormat.init(inst, def); -}); -function isValidJWT(token, algorithm = null) { - try { - const tokensParts = token.split("."); - if (tokensParts.length !== 3) - return false; - const [header] = tokensParts; - if (!header) - return false; - const parsedHeader = JSON.parse(atob(header)); - if ("typ" in parsedHeader && parsedHeader?.typ !== "JWT") - return false; - if (!parsedHeader.alg) - return false; - if (algorithm && (!("alg" in parsedHeader) || parsedHeader.alg !== algorithm)) - return false; - return true; - } catch { - return false; - } -} -var $ZodJWT = /* @__PURE__ */ $constructor("$ZodJWT", (inst, def) => { - $ZodStringFormat.init(inst, def); - inst._zod.check = (payload) => { - if (isValidJWT(payload.value, def.alg)) - return; - payload.issues.push({ - code: "invalid_format", - format: "jwt", - input: payload.value, - inst, - continue: !def.abort - }); - }; -}); -var $ZodNumber = /* @__PURE__ */ $constructor("$ZodNumber", (inst, def) => { - $ZodType.init(inst, def); - inst._zod.pattern = inst._zod.bag.pattern ?? number; - inst._zod.parse = (payload, _ctx) => { - if (def.coerce) - try { - payload.value = Number(payload.value); - } catch (_) {} - const input = payload.value; - if (typeof input === "number" && !Number.isNaN(input) && Number.isFinite(input)) { - return payload; - } - const received = typeof input === "number" ? Number.isNaN(input) ? "NaN" : !Number.isFinite(input) ? "Infinity" : undefined : undefined; - payload.issues.push({ - expected: "number", - code: "invalid_type", - input, - inst, - ...received ? { received } : {} - }); - return payload; - }; -}); -var $ZodNumberFormat = /* @__PURE__ */ $constructor("$ZodNumberFormat", (inst, def) => { - $ZodCheckNumberFormat.init(inst, def); - $ZodNumber.init(inst, def); -}); -var $ZodBoolean = /* @__PURE__ */ $constructor("$ZodBoolean", (inst, def) => { - $ZodType.init(inst, def); - inst._zod.pattern = boolean; - inst._zod.parse = (payload, _ctx) => { - if (def.coerce) - try { - payload.value = Boolean(payload.value); - } catch (_) {} - const input = payload.value; - if (typeof input === "boolean") - return payload; - payload.issues.push({ - expected: "boolean", - code: "invalid_type", - input, - inst - }); - return payload; - }; -}); -var $ZodNull = /* @__PURE__ */ $constructor("$ZodNull", (inst, def) => { - $ZodType.init(inst, def); - inst._zod.pattern = _null; - inst._zod.values = new Set([null]); - inst._zod.parse = (payload, _ctx) => { - const input = payload.value; - if (input === null) - return payload; - payload.issues.push({ - expected: "null", - code: "invalid_type", - input, - inst - }); - return payload; - }; -}); -var $ZodUnknown = /* @__PURE__ */ $constructor("$ZodUnknown", (inst, def) => { - $ZodType.init(inst, def); - inst._zod.parse = (payload) => payload; -}); -var $ZodNever = /* @__PURE__ */ $constructor("$ZodNever", (inst, def) => { - $ZodType.init(inst, def); - inst._zod.parse = (payload, _ctx) => { - payload.issues.push({ - expected: "never", - code: "invalid_type", - input: payload.value, - inst - }); - return payload; - }; -}); -function handleArrayResult(result, final, index) { - if (result.issues.length) { - final.issues.push(...prefixIssues(index, result.issues)); - } - final.value[index] = result.value; -} -var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => { - $ZodType.init(inst, def); - inst._zod.parse = (payload, ctx) => { - const input = payload.value; - if (!Array.isArray(input)) { - payload.issues.push({ - expected: "array", - code: "invalid_type", - input, - inst - }); - return payload; - } - payload.value = Array(input.length); - const proms = []; - for (let i = 0;i < input.length; i++) { - const item = input[i]; - const result = def.element._zod.run({ - value: item, - issues: [] - }, ctx); - if (result instanceof Promise) { - proms.push(result.then((result2) => handleArrayResult(result2, payload, i))); - } else { - handleArrayResult(result, payload, i); - } - } - if (proms.length) { - return Promise.all(proms).then(() => payload); - } - return payload; - }; -}); -function handlePropertyResult(result, final, key, input, isOptionalOut) { - if (result.issues.length) { - if (isOptionalOut && !(key in input)) { - return; - } - final.issues.push(...prefixIssues(key, result.issues)); - } - if (result.value === undefined) { - if (key in input) { - final.value[key] = undefined; - } - } else { - final.value[key] = result.value; - } -} -function normalizeDef(def) { - const keys = Object.keys(def.shape); - for (const k of keys) { - if (!def.shape?.[k]?._zod?.traits?.has("$ZodType")) { - throw new Error(`Invalid element at key "${k}": expected a Zod schema`); - } - } - const okeys = optionalKeys(def.shape); - return { - ...def, - keys, - keySet: new Set(keys), - numKeys: keys.length, - optionalKeys: new Set(okeys) - }; -} -function handleCatchall(proms, input, payload, ctx, def, inst) { - const unrecognized = []; - const keySet = def.keySet; - const _catchall = def.catchall._zod; - const t = _catchall.def.type; - const isOptionalOut = _catchall.optout === "optional"; - for (const key in input) { - if (keySet.has(key)) - continue; - if (t === "never") { - unrecognized.push(key); - continue; - } - const r = _catchall.run({ value: input[key], issues: [] }, ctx); - if (r instanceof Promise) { - proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut))); - } else { - handlePropertyResult(r, payload, key, input, isOptionalOut); - } - } - if (unrecognized.length) { - payload.issues.push({ - code: "unrecognized_keys", - keys: unrecognized, - input, - inst - }); - } - if (!proms.length) - return payload; - return Promise.all(proms).then(() => { - return payload; - }); -} -var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => { - $ZodType.init(inst, def); - const desc = Object.getOwnPropertyDescriptor(def, "shape"); - if (!desc?.get) { - const sh = def.shape; - Object.defineProperty(def, "shape", { - get: () => { - const newSh = { ...sh }; - Object.defineProperty(def, "shape", { - value: newSh - }); - return newSh; - } - }); - } - const _normalized = cached(() => normalizeDef(def)); - defineLazy(inst._zod, "propValues", () => { - const shape = def.shape; - const propValues = {}; - for (const key in shape) { - const field = shape[key]._zod; - if (field.values) { - propValues[key] ?? (propValues[key] = new Set); - for (const v of field.values) - propValues[key].add(v); - } - } - return propValues; - }); - const isObject2 = isObject; - const catchall = def.catchall; - let value; - inst._zod.parse = (payload, ctx) => { - value ?? (value = _normalized.value); - const input = payload.value; - if (!isObject2(input)) { - payload.issues.push({ - expected: "object", - code: "invalid_type", - input, - inst - }); - return payload; - } - payload.value = {}; - const proms = []; - const shape = value.shape; - for (const key of value.keys) { - const el = shape[key]; - const isOptionalOut = el._zod.optout === "optional"; - const r = el._zod.run({ value: input[key], issues: [] }, ctx); - if (r instanceof Promise) { - proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut))); - } else { - handlePropertyResult(r, payload, key, input, isOptionalOut); - } - } - if (!catchall) { - return proms.length ? Promise.all(proms).then(() => payload) : payload; - } - return handleCatchall(proms, input, payload, ctx, _normalized.value, inst); - }; -}); -var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) => { - $ZodObject.init(inst, def); - const superParse = inst._zod.parse; - const _normalized = cached(() => normalizeDef(def)); - const generateFastpass = (shape) => { - const doc = new Doc(["shape", "payload", "ctx"]); - const normalized = _normalized.value; - const parseStr = (key) => { - const k = esc(key); - return `shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`; - }; - doc.write(`const input = payload.value;`); - const ids = Object.create(null); - let counter = 0; - for (const key of normalized.keys) { - ids[key] = `key_${counter++}`; - } - doc.write(`const newResult = {};`); - for (const key of normalized.keys) { - const id = ids[key]; - const k = esc(key); - const schema = shape[key]; - const isOptionalOut = schema?._zod?.optout === "optional"; - doc.write(`const ${id} = ${parseStr(key)};`); - if (isOptionalOut) { - doc.write(` - if (${id}.issues.length) { - if (${k} in input) { - payload.issues = payload.issues.concat(${id}.issues.map(iss => ({ +${o} +${e} +${a}`}(0,or.writeFileSync)(i,c),(0,or.renameSync)(i,n)}function Mge(t,e,r,n,i,s,o){try{if(!(0,or.existsSync)(e))return{success:!1,observationCount:0,error:"Folder no longer exists"};let a=sr.default.resolve(e),c=sr.default.resolve(s);if(!a.startsWith(c+sr.default.sep))return{success:!1,observationCount:0,error:"Path escapes project root"};let u=Pge(t,r,n,o);if(u.length===0)return{success:!1,observationCount:0,error:"No observations for folder"};if(i)return{success:!0,observationCount:u.length};let l=Age(u,r);return Nge(e,l),{success:!0,observationCount:u.length}}catch(a){return{success:!1,observationCount:0,error:String(a)}}}async function Dge(t){try{let e=process.cwd(),r=_e.loadFromFile(kge),n=parseInt(r.CLAUDE_MEM_CONTEXT_OBSERVATIONS,10)||50;y.info("CLAUDE_MD","Starting CLAUDE.md generation",{workingDir:e,dryRun:t,observationLimit:n});let i=sr.default.basename(e),s=Rge(e);if(s.size===0)return y.info("CLAUDE_MD","No folders found in project"),0;if(y.info("CLAUDE_MD",`Found ${s.size} folders in project`),!(0,or.existsSync)(q9))return y.info("CLAUDE_MD","Database not found, no observations to process"),0;let o=new F9.Database(q9,{readonly:!0,create:!1}),a=0,c=0,u=0,l=Array.from(s).sort();for(let d of l){let p=sr.default.relative(e,d),m=Mge(o,d,p,i,t,e,n);m.success?(y.debug("CLAUDE_MD",`Processed folder: ${p}`,{observationCount:m.observationCount}),a++):m.error?.includes("No observations")?c++:(y.warn("CLAUDE_MD",`Error processing folder: ${p}`,{error:m.error}),u++)}return o.close(),y.info("CLAUDE_MD","CLAUDE.md generation complete",{totalFolders:l.length,withObservations:a,noObservations:c,errors:u,dryRun:t}),0}catch(e){return y.error("CLAUDE_MD","Fatal error during CLAUDE.md generation",{error:String(e)}),1}}async function jge(t){try{let i=function(c){let u=["node_modules",".git",".next","dist","build",".cache","__pycache__",".venv","venv",".idea",".vscode","coverage",".claude-mem",".open-next",".turbo"];try{let l=(0,or.readdirSync)(c,{withFileTypes:!0});for(let d of l){let p=sr.default.join(c,d.name);if(d.isDirectory())u.includes(d.name)||i(p);else if(d.name==="CLAUDE.md")try{(0,or.readFileSync)(p,"utf-8").includes("")&&n.push(p)}catch{}}}catch{}};var e=i;let r=process.cwd();y.info("CLAUDE_MD","Starting CLAUDE.md cleanup",{workingDir:r,dryRun:t});let n=[];if(i(r),n.length===0)return y.info("CLAUDE_MD","No CLAUDE.md files with auto-generated content found"),0;y.info("CLAUDE_MD",`Found ${n.length} CLAUDE.md files with auto-generated content`);let s=0,o=0,a=0;for(let c of n){let u=sr.default.relative(r,c);try{let d=(0,or.readFileSync)(c,"utf-8").replace(/[\s\S]*?<\/claude-mem-context>/g,"").trim();d===""?(t||(0,or.unlinkSync)(c),y.debug("CLAUDE_MD",`${t?"[DRY-RUN] Would delete":"Deleted"} (empty): ${u}`),s++):(t||(0,or.writeFileSync)(c,d),y.debug("CLAUDE_MD",`${t?"[DRY-RUN] Would clean":"Cleaned"}: ${u}`),o++)}catch(l){y.warn("CLAUDE_MD",`Error processing ${u}`,{error:String(l)}),a++}}return y.info("CLAUDE_MD","CLAUDE.md cleanup complete",{deleted:s,cleaned:o,errors:a,dryRun:t}),0}catch(r){return y.error("CLAUDE_MD","Fatal error during CLAUDE.md cleanup",{error:String(r)}),1}}var F9,sr,H$,or,H9,q9,kge,$ge,B$=Pe(()=>{"use strict";F9=require("bun:sqlite"),sr=Ue(require("path"),1),H$=Ue(require("os"),1),or=require("fs"),H9=require("child_process");Yt();Lo();uk();oe();q9=sr.default.join(H$.default.homedir(),".claude-mem","claude-mem.db"),kge=sr.default.join(H$.default.homedir(),".claude-mem","settings.json"),$ge={bugfix:"\u{1F534}",feature:"\u{1F7E3}",refactor:"\u{1F504}",change:"\u2705",discovery:"\u{1F535}",decision:"\u2696\uFE0F",session:"\u{1F3AF}",prompt:"\u{1F4AC}"}});var Bge={};ln(Bge,{WorkerService:()=>xv,buildStatusOutput:()=>V9,isPluginDisabledInClaudeSettings:()=>Vf});module.exports=ou(Bge);var V$=Ue(require("path"),1),ms=require("fs");var Ye;(function(t){t.assertEqual=i=>{};function e(i){}t.assertIs=e;function r(i){throw new Error}t.assertNever=r,t.arrayToEnum=i=>{let s={};for(let o of i)s[o]=o;return s},t.getValidEnumValues=i=>{let s=t.objectKeys(i).filter(a=>typeof i[i[a]]!="number"),o={};for(let a of s)o[a]=i[a];return t.objectValues(o)},t.objectValues=i=>t.objectKeys(i).map(function(s){return i[s]}),t.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{let s=[];for(let o in i)Object.prototype.hasOwnProperty.call(i,o)&&s.push(o);return s},t.find=(i,s)=>{for(let o of i)if(s(o))return o},t.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&Number.isFinite(i)&&Math.floor(i)===i;function n(i,s=" | "){return i.map(o=>typeof o=="string"?`'${o}'`:o).join(s)}t.joinValues=n,t.jsonStringifyReplacer=(i,s)=>typeof s=="bigint"?s.toString():s})(Ye||(Ye={}));var X$;(function(t){t.mergeShapes=(e,r)=>({...e,...r})})(X$||(X$={}));var ne=Ye.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Ci=t=>{switch(typeof t){case"undefined":return ne.undefined;case"string":return ne.string;case"number":return Number.isNaN(t)?ne.nan:ne.number;case"boolean":return ne.boolean;case"function":return ne.function;case"bigint":return ne.bigint;case"symbol":return ne.symbol;case"object":return Array.isArray(t)?ne.array:t===null?ne.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?ne.promise:typeof Map<"u"&&t instanceof Map?ne.map:typeof Set<"u"&&t instanceof Set?ne.set:typeof Date<"u"&&t instanceof Date?ne.date:ne.object;default:return ne.unknown}};var B=Ye.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);var dn=class t extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=e}format(e){let r=e||function(s){return s.message},n={_errors:[]},i=s=>{for(let o of s.issues)if(o.code==="invalid_union")o.unionErrors.map(i);else if(o.code==="invalid_return_type")i(o.returnTypeError);else if(o.code==="invalid_arguments")i(o.argumentsError);else if(o.path.length===0)n._errors.push(r(o));else{let a=n,c=0;for(;cr.message){let r=Object.create(null),n=[];for(let i of this.issues)if(i.path.length>0){let s=i.path[0];r[s]=r[s]||[],r[s].push(e(i))}else n.push(e(i));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}};dn.create=t=>new dn(t);var Q9=(t,e)=>{let r;switch(t.code){case B.invalid_type:t.received===ne.undefined?r="Required":r=`Expected ${t.expected}, received ${t.received}`;break;case B.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,Ye.jsonStringifyReplacer)}`;break;case B.unrecognized_keys:r=`Unrecognized key(s) in object: ${Ye.joinValues(t.keys,", ")}`;break;case B.invalid_union:r="Invalid input";break;case B.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${Ye.joinValues(t.options)}`;break;case B.invalid_enum_value:r=`Invalid enum value. Expected ${Ye.joinValues(t.options)}, received '${t.received}'`;break;case B.invalid_arguments:r="Invalid function arguments";break;case B.invalid_return_type:r="Invalid function return type";break;case B.invalid_date:r="Invalid date";break;case B.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(r=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?r=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?r=`Invalid input: must end with "${t.validation.endsWith}"`:Ye.assertNever(t.validation):t.validation!=="regex"?r=`Invalid ${t.validation}`:r="Invalid";break;case B.too_small:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:r="Invalid input";break;case B.too_big:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?r=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:r="Invalid input";break;case B.custom:r="Invalid input";break;case B.invalid_intersection_types:r="Intersection results could not be merged";break;case B.not_multiple_of:r=`Number must be a multiple of ${t.multipleOf}`;break;case B.not_finite:r="Number must be finite";break;default:r=e.defaultError,Ye.assertNever(t)}return{message:r}},fs=Q9;var eF=fs;function au(){return eF}var $p=t=>{let{data:e,path:r,errorMaps:n,issueData:i}=t,s=[...r,...i.path||[]],o={...i,path:s};if(i.message!==void 0)return{...i,path:s,message:i.message};let a="",c=n.filter(u=>!!u).slice().reverse();for(let u of c)a=u(o,{data:e,defaultError:a}).message;return{...i,path:s,message:a}};function Q(t,e){let r=au(),n=$p({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,r,r===fs?void 0:fs].filter(i=>!!i)});t.common.issues.push(n)}var Sr=class t{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,r){let n=[];for(let i of r){if(i.status==="aborted")return we;i.status==="dirty"&&e.dirty(),n.push(i.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,r){let n=[];for(let i of r){let s=await i.key,o=await i.value;n.push({key:s,value:o})}return t.mergeObjectSync(e,n)}static mergeObjectSync(e,r){let n={};for(let i of r){let{key:s,value:o}=i;if(s.status==="aborted"||o.status==="aborted")return we;s.status==="dirty"&&e.dirty(),o.status==="dirty"&&e.dirty(),s.value!=="__proto__"&&(typeof o.value<"u"||i.alwaysSet)&&(n[s.value]=o.value)}return{status:e.value,value:n}}},we=Object.freeze({status:"aborted"}),Qo=t=>({status:"dirty",value:t}),Mr=t=>({status:"valid",value:t}),Ev=t=>t.status==="aborted",kv=t=>t.status==="dirty",Ks=t=>t.status==="valid",cu=t=>typeof Promise<"u"&&t instanceof Promise;var de;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(de||(de={}));var wn=class{constructor(e,r,n,i){this._cachedPath=[],this.parent=e,this.data=r,this._path=n,this._key=i}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},Y$=(t,e)=>{if(Ks(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new dn(t.common.issues);return this._error=r,this._error}}};function Ce(t){if(!t)return{};let{errorMap:e,invalid_type_error:r,required_error:n,description:i}=t;if(e&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:i}:{errorMap:(o,a)=>{let{message:c}=t;return o.code==="invalid_enum_value"?{message:c??a.defaultError}:typeof a.data>"u"?{message:c??n??a.defaultError}:o.code!=="invalid_type"?{message:a.defaultError}:{message:c??r??a.defaultError}},description:i}}var qe=class{get description(){return this._def.description}_getType(e){return Ci(e.data)}_getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parsedType:Ci(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Sr,ctx:{common:e.parent.common,data:e.data,parsedType:Ci(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let r=this._parse(e);if(cu(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(e){let r=this._parse(e);return Promise.resolve(r)}parse(e,r){let n=this.safeParse(e,r);if(n.success)return n.data;throw n.error}safeParse(e,r){let n={common:{issues:[],async:r?.async??!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Ci(e)},i=this._parseSync({data:e,path:n.path,parent:n});return Y$(n,i)}"~validate"(e){let r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Ci(e)};if(!this["~standard"].async)try{let n=this._parseSync({data:e,path:[],parent:r});return Ks(n)?{value:n.value}:{issues:r.common.issues}}catch(n){n?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:r}).then(n=>Ks(n)?{value:n.value}:{issues:r.common.issues})}async parseAsync(e,r){let n=await this.safeParseAsync(e,r);if(n.success)return n.data;throw n.error}async safeParseAsync(e,r){let n={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Ci(e)},i=this._parse({data:e,path:n.path,parent:n}),s=await(cu(i)?i:Promise.resolve(i));return Y$(n,s)}refine(e,r){let n=i=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(i):r;return this._refinement((i,s)=>{let o=e(i),a=()=>s.addIssue({code:B.custom,...n(i)});return typeof Promise<"u"&&o instanceof Promise?o.then(c=>c?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(e,r){return this._refinement((n,i)=>e(n)?!0:(i.addIssue(typeof r=="function"?r(n,i):r),!1))}_refinement(e){return new Hn({schema:this,typeName:ye.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return Fn.create(this,this._def)}nullable(){return Mi.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return gs.create(this)}promise(){return Js.create(this,this._def)}or(e){return ia.create([this,e],this._def)}and(e){return sa.create(this,e,this._def)}transform(e){return new Hn({...Ce(this._def),schema:this,typeName:ye.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let r=typeof e=="function"?e:()=>e;return new la({...Ce(this._def),innerType:this,defaultValue:r,typeName:ye.ZodDefault})}brand(){return new Tp({typeName:ye.ZodBranded,type:this,...Ce(this._def)})}catch(e){let r=typeof e=="function"?e:()=>e;return new da({...Ce(this._def),innerType:this,catchValue:r,typeName:ye.ZodCatch})}describe(e){let r=this.constructor;return new r({...this._def,description:e})}pipe(e){return Ip.create(this,e)}readonly(){return pa.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},tF=/^c[^\s-]{8,}$/i,rF=/^[0-9a-z]+$/,nF=/^[0-9A-HJKMNP-TV-Z]{26}$/i,iF=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,sF=/^[a-z0-9_-]{21}$/i,oF=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,aF=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,cF=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,uF="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",$v,lF=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,dF=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,pF=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,mF=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,fF=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,hF=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Q$="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",gF=new RegExp(`^${Q$}$`);function eT(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`);let r=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${r}`}function vF(t){return new RegExp(`^${eT(t)}$`)}function yF(t){let e=`${Q$}T${eT(t)}`,r=[];return r.push(t.local?"Z?":"Z"),t.offset&&r.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${r.join("|")})`,new RegExp(`^${e}$`)}function _F(t,e){return!!((e==="v4"||!e)&&lF.test(t)||(e==="v6"||!e)&&pF.test(t))}function bF(t,e){if(!oF.test(t))return!1;try{let[r]=t.split(".");if(!r)return!1;let n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),i=JSON.parse(atob(n));return!(typeof i!="object"||i===null||"typ"in i&&i?.typ!=="JWT"||!i.alg||e&&i.alg!==e)}catch{return!1}}function xF(t,e){return!!((e==="v4"||!e)&&dF.test(t)||(e==="v6"||!e)&&mF.test(t))}var ta=class t extends qe{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==ne.string){let s=this._getOrReturnCtx(e);return Q(s,{code:B.invalid_type,expected:ne.string,received:s.parsedType}),we}let n=new Sr,i;for(let s of this._def.checks)if(s.kind==="min")e.data.lengths.value&&(i=this._getOrReturnCtx(e,i),Q(i,{code:B.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="length"){let o=e.data.length>s.value,a=e.data.lengthe.test(i),{validation:r,code:B.invalid_string,...de.errToObj(n)})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...de.errToObj(e)})}url(e){return this._addCheck({kind:"url",...de.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...de.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...de.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...de.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...de.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...de.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...de.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...de.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...de.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...de.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...de.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...de.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...de.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...de.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...de.errToObj(e)})}regex(e,r){return this._addCheck({kind:"regex",regex:e,...de.errToObj(r)})}includes(e,r){return this._addCheck({kind:"includes",value:e,position:r?.position,...de.errToObj(r?.message)})}startsWith(e,r){return this._addCheck({kind:"startsWith",value:e,...de.errToObj(r)})}endsWith(e,r){return this._addCheck({kind:"endsWith",value:e,...de.errToObj(r)})}min(e,r){return this._addCheck({kind:"min",value:e,...de.errToObj(r)})}max(e,r){return this._addCheck({kind:"max",value:e,...de.errToObj(r)})}length(e,r){return this._addCheck({kind:"length",value:e,...de.errToObj(r)})}nonempty(e){return this.min(1,de.errToObj(e))}trim(){return new t({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxLength(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.valuenew ta({checks:[],typeName:ye.ZodString,coerce:t?.coerce??!1,...Ce(t)});function SF(t,e){let r=(t.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,i=r>n?r:n,s=Number.parseInt(t.toFixed(i).replace(".","")),o=Number.parseInt(e.toFixed(i).replace(".",""));return s%o/10**i}var uu=class t extends qe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==ne.number){let s=this._getOrReturnCtx(e);return Q(s,{code:B.invalid_type,expected:ne.number,received:s.parsedType}),we}let n,i=new Sr;for(let s of this._def.checks)s.kind==="int"?Ye.isInteger(e.data)||(n=this._getOrReturnCtx(e,n),Q(n,{code:B.invalid_type,expected:"integer",received:"float",message:s.message}),i.dirty()):s.kind==="min"?(s.inclusive?e.datas.value:e.data>=s.value)&&(n=this._getOrReturnCtx(e,n),Q(n,{code:B.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="multipleOf"?SF(e.data,s.value)!==0&&(n=this._getOrReturnCtx(e,n),Q(n,{code:B.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):s.kind==="finite"?Number.isFinite(e.data)||(n=this._getOrReturnCtx(e,n),Q(n,{code:B.not_finite,message:s.message}),i.dirty()):Ye.assertNever(s);return{status:i.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,de.toString(r))}gt(e,r){return this.setLimit("min",e,!1,de.toString(r))}lte(e,r){return this.setLimit("max",e,!0,de.toString(r))}lt(e,r){return this.setLimit("max",e,!1,de.toString(r))}setLimit(e,r,n,i){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:de.toString(i)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:de.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:de.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:de.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:de.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:de.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:de.toString(r)})}finite(e){return this._addCheck({kind:"finite",message:de.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:de.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:de.toString(e)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.valuee.kind==="int"||e.kind==="multipleOf"&&Ye.isInteger(e.value))}get isFinite(){let e=null,r=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(e===null||n.valuenew uu({checks:[],typeName:ye.ZodNumber,coerce:t?.coerce||!1,...Ce(t)});var lu=class t extends qe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==ne.bigint)return this._getInvalidInput(e);let n,i=new Sr;for(let s of this._def.checks)s.kind==="min"?(s.inclusive?e.datas.value:e.data>=s.value)&&(n=this._getOrReturnCtx(e,n),Q(n,{code:B.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="multipleOf"?e.data%s.value!==BigInt(0)&&(n=this._getOrReturnCtx(e,n),Q(n,{code:B.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):Ye.assertNever(s);return{status:i.value,value:e.data}}_getInvalidInput(e){let r=this._getOrReturnCtx(e);return Q(r,{code:B.invalid_type,expected:ne.bigint,received:r.parsedType}),we}gte(e,r){return this.setLimit("min",e,!0,de.toString(r))}gt(e,r){return this.setLimit("min",e,!1,de.toString(r))}lte(e,r){return this.setLimit("max",e,!0,de.toString(r))}lt(e,r){return this.setLimit("max",e,!1,de.toString(r))}setLimit(e,r,n,i){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:de.toString(i)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:de.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:de.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:de.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:de.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:de.toString(r)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.valuenew lu({checks:[],typeName:ye.ZodBigInt,coerce:t?.coerce??!1,...Ce(t)});var du=class extends qe{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==ne.boolean){let n=this._getOrReturnCtx(e);return Q(n,{code:B.invalid_type,expected:ne.boolean,received:n.parsedType}),we}return Mr(e.data)}};du.create=t=>new du({typeName:ye.ZodBoolean,coerce:t?.coerce||!1,...Ce(t)});var pu=class t extends qe{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==ne.date){let s=this._getOrReturnCtx(e);return Q(s,{code:B.invalid_type,expected:ne.date,received:s.parsedType}),we}if(Number.isNaN(e.data.getTime())){let s=this._getOrReturnCtx(e);return Q(s,{code:B.invalid_date}),we}let n=new Sr,i;for(let s of this._def.checks)s.kind==="min"?e.data.getTime()s.value&&(i=this._getOrReturnCtx(e,i),Q(i,{code:B.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),n.dirty()):Ye.assertNever(s);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}min(e,r){return this._addCheck({kind:"min",value:e.getTime(),message:de.toString(r)})}max(e,r){return this._addCheck({kind:"max",value:e.getTime(),message:de.toString(r)})}get minDate(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.valuenew pu({checks:[],coerce:t?.coerce||!1,typeName:ye.ZodDate,...Ce(t)});var mu=class extends qe{_parse(e){if(this._getType(e)!==ne.symbol){let n=this._getOrReturnCtx(e);return Q(n,{code:B.invalid_type,expected:ne.symbol,received:n.parsedType}),we}return Mr(e.data)}};mu.create=t=>new mu({typeName:ye.ZodSymbol,...Ce(t)});var ra=class extends qe{_parse(e){if(this._getType(e)!==ne.undefined){let n=this._getOrReturnCtx(e);return Q(n,{code:B.invalid_type,expected:ne.undefined,received:n.parsedType}),we}return Mr(e.data)}};ra.create=t=>new ra({typeName:ye.ZodUndefined,...Ce(t)});var na=class extends qe{_parse(e){if(this._getType(e)!==ne.null){let n=this._getOrReturnCtx(e);return Q(n,{code:B.invalid_type,expected:ne.null,received:n.parsedType}),we}return Mr(e.data)}};na.create=t=>new na({typeName:ye.ZodNull,...Ce(t)});var fu=class extends qe{constructor(){super(...arguments),this._any=!0}_parse(e){return Mr(e.data)}};fu.create=t=>new fu({typeName:ye.ZodAny,...Ce(t)});var hs=class extends qe{constructor(){super(...arguments),this._unknown=!0}_parse(e){return Mr(e.data)}};hs.create=t=>new hs({typeName:ye.ZodUnknown,...Ce(t)});var ai=class extends qe{_parse(e){let r=this._getOrReturnCtx(e);return Q(r,{code:B.invalid_type,expected:ne.never,received:r.parsedType}),we}};ai.create=t=>new ai({typeName:ye.ZodNever,...Ce(t)});var hu=class extends qe{_parse(e){if(this._getType(e)!==ne.undefined){let n=this._getOrReturnCtx(e);return Q(n,{code:B.invalid_type,expected:ne.void,received:n.parsedType}),we}return Mr(e.data)}};hu.create=t=>new hu({typeName:ye.ZodVoid,...Ce(t)});var gs=class t extends qe{_parse(e){let{ctx:r,status:n}=this._processInputParams(e),i=this._def;if(r.parsedType!==ne.array)return Q(r,{code:B.invalid_type,expected:ne.array,received:r.parsedType}),we;if(i.exactLength!==null){let o=r.data.length>i.exactLength.value,a=r.data.lengthi.maxLength.value&&(Q(r,{code:B.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((o,a)=>i.type._parseAsync(new wn(r,o,r.path,a)))).then(o=>Sr.mergeArray(n,o));let s=[...r.data].map((o,a)=>i.type._parseSync(new wn(r,o,r.path,a)));return Sr.mergeArray(n,s)}get element(){return this._def.type}min(e,r){return new t({...this._def,minLength:{value:e,message:de.toString(r)}})}max(e,r){return new t({...this._def,maxLength:{value:e,message:de.toString(r)}})}length(e,r){return new t({...this._def,exactLength:{value:e,message:de.toString(r)}})}nonempty(e){return this.min(1,e)}};gs.create=(t,e)=>new gs({type:t,minLength:null,maxLength:null,exactLength:null,typeName:ye.ZodArray,...Ce(e)});function ea(t){if(t instanceof pn){let e={};for(let r in t.shape){let n=t.shape[r];e[r]=Fn.create(ea(n))}return new pn({...t._def,shape:()=>e})}else return t instanceof gs?new gs({...t._def,type:ea(t.element)}):t instanceof Fn?Fn.create(ea(t.unwrap())):t instanceof Mi?Mi.create(ea(t.unwrap())):t instanceof Ni?Ni.create(t.items.map(e=>ea(e))):t}var pn=class t extends qe{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),r=Ye.objectKeys(e);return this._cached={shape:e,keys:r},this._cached}_parse(e){if(this._getType(e)!==ne.object){let u=this._getOrReturnCtx(e);return Q(u,{code:B.invalid_type,expected:ne.object,received:u.parsedType}),we}let{status:n,ctx:i}=this._processInputParams(e),{shape:s,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof ai&&this._def.unknownKeys==="strip"))for(let u in i.data)o.includes(u)||a.push(u);let c=[];for(let u of o){let l=s[u],d=i.data[u];c.push({key:{status:"valid",value:u},value:l._parse(new wn(i,d,i.path,u)),alwaysSet:u in i.data})}if(this._def.catchall instanceof ai){let u=this._def.unknownKeys;if(u==="passthrough")for(let l of a)c.push({key:{status:"valid",value:l},value:{status:"valid",value:i.data[l]}});else if(u==="strict")a.length>0&&(Q(i,{code:B.unrecognized_keys,keys:a}),n.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let l of a){let d=i.data[l];c.push({key:{status:"valid",value:l},value:u._parse(new wn(i,d,i.path,l)),alwaysSet:l in i.data})}}return i.common.async?Promise.resolve().then(async()=>{let u=[];for(let l of c){let d=await l.key,p=await l.value;u.push({key:d,value:p,alwaysSet:l.alwaysSet})}return u}).then(u=>Sr.mergeObjectSync(n,u)):Sr.mergeObjectSync(n,c)}get shape(){return this._def.shape()}strict(e){return de.errToObj,new t({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(r,n)=>{let i=this._def.errorMap?.(r,n).message??n.defaultError;return r.code==="unrecognized_keys"?{message:de.errToObj(e).message??i}:{message:i}}}:{}})}strip(){return new t({...this._def,unknownKeys:"strip"})}passthrough(){return new t({...this._def,unknownKeys:"passthrough"})}extend(e){return new t({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new t({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:ye.ZodObject})}setKey(e,r){return this.augment({[e]:r})}catchall(e){return new t({...this._def,catchall:e})}pick(e){let r={};for(let n of Ye.objectKeys(e))e[n]&&this.shape[n]&&(r[n]=this.shape[n]);return new t({...this._def,shape:()=>r})}omit(e){let r={};for(let n of Ye.objectKeys(this.shape))e[n]||(r[n]=this.shape[n]);return new t({...this._def,shape:()=>r})}deepPartial(){return ea(this)}partial(e){let r={};for(let n of Ye.objectKeys(this.shape)){let i=this.shape[n];e&&!e[n]?r[n]=i:r[n]=i.optional()}return new t({...this._def,shape:()=>r})}required(e){let r={};for(let n of Ye.objectKeys(this.shape))if(e&&!e[n])r[n]=this.shape[n];else{let s=this.shape[n];for(;s instanceof Fn;)s=s._def.innerType;r[n]=s}return new t({...this._def,shape:()=>r})}keyof(){return tT(Ye.objectKeys(this.shape))}};pn.create=(t,e)=>new pn({shape:()=>t,unknownKeys:"strip",catchall:ai.create(),typeName:ye.ZodObject,...Ce(e)});pn.strictCreate=(t,e)=>new pn({shape:()=>t,unknownKeys:"strict",catchall:ai.create(),typeName:ye.ZodObject,...Ce(e)});pn.lazycreate=(t,e)=>new pn({shape:t,unknownKeys:"strip",catchall:ai.create(),typeName:ye.ZodObject,...Ce(e)});var ia=class extends qe{_parse(e){let{ctx:r}=this._processInputParams(e),n=this._def.options;function i(s){for(let a of s)if(a.result.status==="valid")return a.result;for(let a of s)if(a.result.status==="dirty")return r.common.issues.push(...a.ctx.common.issues),a.result;let o=s.map(a=>new dn(a.ctx.common.issues));return Q(r,{code:B.invalid_union,unionErrors:o}),we}if(r.common.async)return Promise.all(n.map(async s=>{let o={...r,common:{...r.common,issues:[]},parent:null};return{result:await s._parseAsync({data:r.data,path:r.path,parent:o}),ctx:o}})).then(i);{let s,o=[];for(let c of n){let u={...r,common:{...r.common,issues:[]},parent:null},l=c._parseSync({data:r.data,path:r.path,parent:u});if(l.status==="valid")return l;l.status==="dirty"&&!s&&(s={result:l,ctx:u}),u.common.issues.length&&o.push(u.common.issues)}if(s)return r.common.issues.push(...s.ctx.common.issues),s.result;let a=o.map(c=>new dn(c));return Q(r,{code:B.invalid_union,unionErrors:a}),we}}get options(){return this._def.options}};ia.create=(t,e)=>new ia({options:t,typeName:ye.ZodUnion,...Ce(e)});var Ai=t=>t instanceof oa?Ai(t.schema):t instanceof Hn?Ai(t.innerType()):t instanceof aa?[t.value]:t instanceof ca?t.options:t instanceof ua?Ye.objectValues(t.enum):t instanceof la?Ai(t._def.innerType):t instanceof ra?[void 0]:t instanceof na?[null]:t instanceof Fn?[void 0,...Ai(t.unwrap())]:t instanceof Mi?[null,...Ai(t.unwrap())]:t instanceof Tp||t instanceof pa?Ai(t.unwrap()):t instanceof da?Ai(t._def.innerType):[],Tv=class t extends qe{_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==ne.object)return Q(r,{code:B.invalid_type,expected:ne.object,received:r.parsedType}),we;let n=this.discriminator,i=r.data[n],s=this.optionsMap.get(i);return s?r.common.async?s._parseAsync({data:r.data,path:r.path,parent:r}):s._parseSync({data:r.data,path:r.path,parent:r}):(Q(r,{code:B.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),we)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,r,n){let i=new Map;for(let s of r){let o=Ai(s.shape[e]);if(!o.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let a of o){if(i.has(a))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(a)}`);i.set(a,s)}}return new t({typeName:ye.ZodDiscriminatedUnion,discriminator:e,options:r,optionsMap:i,...Ce(n)})}};function Iv(t,e){let r=Ci(t),n=Ci(e);if(t===e)return{valid:!0,data:t};if(r===ne.object&&n===ne.object){let i=Ye.objectKeys(e),s=Ye.objectKeys(t).filter(a=>i.indexOf(a)!==-1),o={...t,...e};for(let a of s){let c=Iv(t[a],e[a]);if(!c.valid)return{valid:!1};o[a]=c.data}return{valid:!0,data:o}}else if(r===ne.array&&n===ne.array){if(t.length!==e.length)return{valid:!1};let i=[];for(let s=0;s{if(Ev(s)||Ev(o))return we;let a=Iv(s.value,o.value);return a.valid?((kv(s)||kv(o))&&r.dirty(),{status:r.value,value:a.data}):(Q(n,{code:B.invalid_intersection_types}),we)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([s,o])=>i(s,o)):i(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};sa.create=(t,e,r)=>new sa({left:t,right:e,typeName:ye.ZodIntersection,...Ce(r)});var Ni=class t extends qe{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==ne.array)return Q(n,{code:B.invalid_type,expected:ne.array,received:n.parsedType}),we;if(n.data.lengththis._def.items.length&&(Q(n,{code:B.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let s=[...n.data].map((o,a)=>{let c=this._def.items[a]||this._def.rest;return c?c._parse(new wn(n,o,n.path,a)):null}).filter(o=>!!o);return n.common.async?Promise.all(s).then(o=>Sr.mergeArray(r,o)):Sr.mergeArray(r,s)}get items(){return this._def.items}rest(e){return new t({...this._def,rest:e})}};Ni.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Ni({items:t,typeName:ye.ZodTuple,rest:null,...Ce(e)})};var Rv=class t extends qe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==ne.object)return Q(n,{code:B.invalid_type,expected:ne.object,received:n.parsedType}),we;let i=[],s=this._def.keyType,o=this._def.valueType;for(let a in n.data)i.push({key:s._parse(new wn(n,a,n.path,a)),value:o._parse(new wn(n,n.data[a],n.path,a)),alwaysSet:a in n.data});return n.common.async?Sr.mergeObjectAsync(r,i):Sr.mergeObjectSync(r,i)}get element(){return this._def.valueType}static create(e,r,n){return r instanceof qe?new t({keyType:e,valueType:r,typeName:ye.ZodRecord,...Ce(n)}):new t({keyType:ta.create(),valueType:e,typeName:ye.ZodRecord,...Ce(r)})}},gu=class extends qe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==ne.map)return Q(n,{code:B.invalid_type,expected:ne.map,received:n.parsedType}),we;let i=this._def.keyType,s=this._def.valueType,o=[...n.data.entries()].map(([a,c],u)=>({key:i._parse(new wn(n,a,n.path,[u,"key"])),value:s._parse(new wn(n,c,n.path,[u,"value"]))}));if(n.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let c of o){let u=await c.key,l=await c.value;if(u.status==="aborted"||l.status==="aborted")return we;(u.status==="dirty"||l.status==="dirty")&&r.dirty(),a.set(u.value,l.value)}return{status:r.value,value:a}})}else{let a=new Map;for(let c of o){let u=c.key,l=c.value;if(u.status==="aborted"||l.status==="aborted")return we;(u.status==="dirty"||l.status==="dirty")&&r.dirty(),a.set(u.value,l.value)}return{status:r.value,value:a}}}};gu.create=(t,e,r)=>new gu({valueType:e,keyType:t,typeName:ye.ZodMap,...Ce(r)});var vu=class t extends qe{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==ne.set)return Q(n,{code:B.invalid_type,expected:ne.set,received:n.parsedType}),we;let i=this._def;i.minSize!==null&&n.data.sizei.maxSize.value&&(Q(n,{code:B.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),r.dirty());let s=this._def.valueType;function o(c){let u=new Set;for(let l of c){if(l.status==="aborted")return we;l.status==="dirty"&&r.dirty(),u.add(l.value)}return{status:r.value,value:u}}let a=[...n.data.values()].map((c,u)=>s._parse(new wn(n,c,n.path,u)));return n.common.async?Promise.all(a).then(c=>o(c)):o(a)}min(e,r){return new t({...this._def,minSize:{value:e,message:de.toString(r)}})}max(e,r){return new t({...this._def,maxSize:{value:e,message:de.toString(r)}})}size(e,r){return this.min(e,r).max(e,r)}nonempty(e){return this.min(1,e)}};vu.create=(t,e)=>new vu({valueType:t,minSize:null,maxSize:null,typeName:ye.ZodSet,...Ce(e)});var Ov=class t extends qe{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==ne.function)return Q(r,{code:B.invalid_type,expected:ne.function,received:r.parsedType}),we;function n(a,c){return $p({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,au(),fs].filter(u=>!!u),issueData:{code:B.invalid_arguments,argumentsError:c}})}function i(a,c){return $p({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,au(),fs].filter(u=>!!u),issueData:{code:B.invalid_return_type,returnTypeError:c}})}let s={errorMap:r.common.contextualErrorMap},o=r.data;if(this._def.returns instanceof Js){let a=this;return Mr(async function(...c){let u=new dn([]),l=await a._def.args.parseAsync(c,s).catch(m=>{throw u.addIssue(n(c,m)),u}),d=await Reflect.apply(o,this,l);return await a._def.returns._def.type.parseAsync(d,s).catch(m=>{throw u.addIssue(i(d,m)),u})})}else{let a=this;return Mr(function(...c){let u=a._def.args.safeParse(c,s);if(!u.success)throw new dn([n(c,u.error)]);let l=Reflect.apply(o,this,u.data),d=a._def.returns.safeParse(l,s);if(!d.success)throw new dn([i(l,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new t({...this._def,args:Ni.create(e).rest(hs.create())})}returns(e){return new t({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,r,n){return new t({args:e||Ni.create([]).rest(hs.create()),returns:r||hs.create(),typeName:ye.ZodFunction,...Ce(n)})}},oa=class extends qe{get schema(){return this._def.getter()}_parse(e){let{ctx:r}=this._processInputParams(e);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};oa.create=(t,e)=>new oa({getter:t,typeName:ye.ZodLazy,...Ce(e)});var aa=class extends qe{_parse(e){if(e.data!==this._def.value){let r=this._getOrReturnCtx(e);return Q(r,{received:r.data,code:B.invalid_literal,expected:this._def.value}),we}return{status:"valid",value:e.data}}get value(){return this._def.value}};aa.create=(t,e)=>new aa({value:t,typeName:ye.ZodLiteral,...Ce(e)});function tT(t,e){return new ca({values:t,typeName:ye.ZodEnum,...Ce(e)})}var ca=class t extends qe{_parse(e){if(typeof e.data!="string"){let r=this._getOrReturnCtx(e),n=this._def.values;return Q(r,{expected:Ye.joinValues(n),received:r.parsedType,code:B.invalid_type}),we}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let r=this._getOrReturnCtx(e),n=this._def.values;return Q(r,{received:r.data,code:B.invalid_enum_value,options:n}),we}return Mr(e.data)}get options(){return this._def.values}get enum(){let e={};for(let r of this._def.values)e[r]=r;return e}get Values(){let e={};for(let r of this._def.values)e[r]=r;return e}get Enum(){let e={};for(let r of this._def.values)e[r]=r;return e}extract(e,r=this._def){return t.create(e,{...this._def,...r})}exclude(e,r=this._def){return t.create(this.options.filter(n=>!e.includes(n)),{...this._def,...r})}};ca.create=tT;var ua=class extends qe{_parse(e){let r=Ye.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==ne.string&&n.parsedType!==ne.number){let i=Ye.objectValues(r);return Q(n,{expected:Ye.joinValues(i),received:n.parsedType,code:B.invalid_type}),we}if(this._cache||(this._cache=new Set(Ye.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let i=Ye.objectValues(r);return Q(n,{received:n.data,code:B.invalid_enum_value,options:i}),we}return Mr(e.data)}get enum(){return this._def.values}};ua.create=(t,e)=>new ua({values:t,typeName:ye.ZodNativeEnum,...Ce(e)});var Js=class extends qe{unwrap(){return this._def.type}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==ne.promise&&r.common.async===!1)return Q(r,{code:B.invalid_type,expected:ne.promise,received:r.parsedType}),we;let n=r.parsedType===ne.promise?r.data:Promise.resolve(r.data);return Mr(n.then(i=>this._def.type.parseAsync(i,{path:r.path,errorMap:r.common.contextualErrorMap})))}};Js.create=(t,e)=>new Js({type:t,typeName:ye.ZodPromise,...Ce(e)});var Hn=class extends qe{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ye.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:r,ctx:n}=this._processInputParams(e),i=this._def.effect||null,s={addIssue:o=>{Q(n,o),o.fatal?r.abort():r.dirty()},get path(){return n.path}};if(s.addIssue=s.addIssue.bind(s),i.type==="preprocess"){let o=i.transform(n.data,s);if(n.common.async)return Promise.resolve(o).then(async a=>{if(r.value==="aborted")return we;let c=await this._def.schema._parseAsync({data:a,path:n.path,parent:n});return c.status==="aborted"?we:c.status==="dirty"?Qo(c.value):r.value==="dirty"?Qo(c.value):c});{if(r.value==="aborted")return we;let a=this._def.schema._parseSync({data:o,path:n.path,parent:n});return a.status==="aborted"?we:a.status==="dirty"?Qo(a.value):r.value==="dirty"?Qo(a.value):a}}if(i.type==="refinement"){let o=a=>{let c=i.refinement(a,s);if(n.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(n.common.async===!1){let a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?we:(a.status==="dirty"&&r.dirty(),o(a.value),{status:r.value,value:a.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(a=>a.status==="aborted"?we:(a.status==="dirty"&&r.dirty(),o(a.value).then(()=>({status:r.value,value:a.value}))))}if(i.type==="transform")if(n.common.async===!1){let o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!Ks(o))return we;let a=i.transform(o.value,s);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:a}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>Ks(o)?Promise.resolve(i.transform(o.value,s)).then(a=>({status:r.value,value:a})):we);Ye.assertNever(i)}};Hn.create=(t,e,r)=>new Hn({schema:t,typeName:ye.ZodEffects,effect:e,...Ce(r)});Hn.createWithPreprocess=(t,e,r)=>new Hn({schema:e,effect:{type:"preprocess",transform:t},typeName:ye.ZodEffects,...Ce(r)});var Fn=class extends qe{_parse(e){return this._getType(e)===ne.undefined?Mr(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Fn.create=(t,e)=>new Fn({innerType:t,typeName:ye.ZodOptional,...Ce(e)});var Mi=class extends qe{_parse(e){return this._getType(e)===ne.null?Mr(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Mi.create=(t,e)=>new Mi({innerType:t,typeName:ye.ZodNullable,...Ce(e)});var la=class extends qe{_parse(e){let{ctx:r}=this._processInputParams(e),n=r.data;return r.parsedType===ne.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};la.create=(t,e)=>new la({innerType:t,typeName:ye.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...Ce(e)});var da=class extends qe{_parse(e){let{ctx:r}=this._processInputParams(e),n={...r,common:{...r.common,issues:[]}},i=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return cu(i)?i.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new dn(n.common.issues)},input:n.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new dn(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};da.create=(t,e)=>new da({innerType:t,typeName:ye.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...Ce(e)});var yu=class extends qe{_parse(e){if(this._getType(e)!==ne.nan){let n=this._getOrReturnCtx(e);return Q(n,{code:B.invalid_type,expected:ne.nan,received:n.parsedType}),we}return{status:"valid",value:e.data}}};yu.create=t=>new yu({typeName:ye.ZodNaN,...Ce(t)});var Tp=class extends qe{_parse(e){let{ctx:r}=this._processInputParams(e),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}},Ip=class t extends qe{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let s=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?we:s.status==="dirty"?(r.dirty(),Qo(s.value)):this._def.out._parseAsync({data:s.value,path:n.path,parent:n})})();{let i=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?we:i.status==="dirty"?(r.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:n.path,parent:n})}}static create(e,r){return new t({in:e,out:r,typeName:ye.ZodPipeline})}},pa=class extends qe{_parse(e){let r=this._def.innerType._parse(e),n=i=>(Ks(i)&&(i.value=Object.freeze(i.value)),i);return cu(r)?r.then(i=>n(i)):n(r)}unwrap(){return this._def.innerType}};pa.create=(t,e)=>new pa({innerType:t,typeName:ye.ZodReadonly,...Ce(e)});var dve={object:pn.lazycreate},ye;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(ye||(ye={}));var pve=ta.create,mve=uu.create,fve=yu.create,hve=lu.create,gve=du.create,vve=pu.create,yve=mu.create,_ve=ra.create,bve=na.create,xve=fu.create,Sve=hs.create,wve=ai.create,Eve=hu.create,kve=gs.create,wF=pn.create,$ve=pn.strictCreate,Tve=ia.create,Ive=Tv.create,Rve=sa.create,Ove=Ni.create,Pve=Rv.create,Cve=gu.create,Ave=vu.create,Nve=Ov.create,Mve=oa.create,Dve=aa.create,jve=ca.create,zve=ua.create,Lve=Js.create,Uve=Hn.create,qve=Fn.create,Fve=Mi.create,Hve=Hn.createWithPreprocess,Zve=Ip.create;var rT=Object.freeze({status:"aborted"});function O(t,e,r){function n(a,c){if(a._zod||Object.defineProperty(a,"_zod",{value:{def:c,constr:o,traits:new Set},enumerable:!1}),a._zod.traits.has(t))return;a._zod.traits.add(t),e(a,c);let u=o.prototype,l=Object.keys(u);for(let d=0;dr?.Parent&&a instanceof r.Parent?!0:a?._zod?.traits?.has(t)}),Object.defineProperty(o,"name",{value:t}),o}var ci=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Xs=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}},Rp={};function tr(t){return t&&Object.assign(Rp,t),Rp}var V={};ln(V,{BIGINT_FORMAT_RANGES:()=>Uv,Class:()=>Cv,NUMBER_FORMAT_RANGES:()=>Lv,aborted:()=>bs,allowsEval:()=>Mv,assert:()=>OF,assertEqual:()=>$F,assertIs:()=>IF,assertNever:()=>RF,assertNotEqual:()=>TF,assignProp:()=>ys,base64ToUint8Array:()=>lT,base64urlToUint8Array:()=>qF,cached:()=>fa,captureStackTrace:()=>Pp,cleanEnum:()=>UF,cleanRegex:()=>xu,clone:()=>Dr,cloneDef:()=>CF,createTransparentProxy:()=>zF,defineLazy:()=>Me,esc:()=>Op,escapeRegex:()=>En,extend:()=>oT,finalizeIssue:()=>Kr,floatSafeRemainder:()=>Av,getElementAtPath:()=>AF,getEnumValues:()=>bu,getLengthableOrigin:()=>Eu,getParsedType:()=>jF,getSizableOrigin:()=>wu,hexToUint8Array:()=>HF,isObject:()=>Ys,isPlainObject:()=>_s,issue:()=>ha,joinValues:()=>be,jsonStringifyReplacer:()=>ma,merge:()=>LF,mergeDefs:()=>Di,normalizeParams:()=>ee,nullish:()=>vs,numKeys:()=>DF,objectClone:()=>PF,omit:()=>sT,optionalKeys:()=>zv,parsedType:()=>Ee,partial:()=>cT,pick:()=>iT,prefixIssues:()=>mn,primitiveTypes:()=>jv,promiseAllObject:()=>NF,propertyKeyTypes:()=>Su,randomString:()=>MF,required:()=>uT,safeExtend:()=>aT,shallowClone:()=>Dv,slugify:()=>Nv,stringifyPrimitive:()=>xe,uint8ArrayToBase64:()=>dT,uint8ArrayToBase64url:()=>FF,uint8ArrayToHex:()=>ZF,unwrapMessage:()=>_u});function $F(t){return t}function TF(t){return t}function IF(t){}function RF(t){throw new Error("Unexpected value in exhaustive check")}function OF(t){}function bu(t){let e=Object.values(t).filter(n=>typeof n=="number");return Object.entries(t).filter(([n,i])=>e.indexOf(+n)===-1).map(([n,i])=>i)}function be(t,e="|"){return t.map(r=>xe(r)).join(e)}function ma(t,e){return typeof e=="bigint"?e.toString():e}function fa(t){return{get value(){{let r=t();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function vs(t){return t==null}function xu(t){let e=t.startsWith("^")?1:0,r=t.endsWith("$")?t.length-1:t.length;return t.slice(e,r)}function Av(t,e){let r=(t.toString().split(".")[1]||"").length,n=e.toString(),i=(n.split(".")[1]||"").length;if(i===0&&/\d?e-\d?/.test(n)){let c=n.match(/\d?e-(\d?)/);c?.[1]&&(i=Number.parseInt(c[1]))}let s=r>i?r:i,o=Number.parseInt(t.toFixed(s).replace(".","")),a=Number.parseInt(e.toFixed(s).replace(".",""));return o%a/10**s}var nT=Symbol("evaluating");function Me(t,e,r){let n;Object.defineProperty(t,e,{get(){if(n!==nT)return n===void 0&&(n=nT,n=r()),n},set(i){Object.defineProperty(t,e,{value:i})},configurable:!0})}function PF(t){return Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t))}function ys(t,e,r){Object.defineProperty(t,e,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Di(...t){let e={};for(let r of t){let n=Object.getOwnPropertyDescriptors(r);Object.assign(e,n)}return Object.defineProperties({},e)}function CF(t){return Di(t._zod.def)}function AF(t,e){return e?e.reduce((r,n)=>r?.[n],t):t}function NF(t){let e=Object.keys(t),r=e.map(n=>t[n]);return Promise.all(r).then(n=>{let i={};for(let s=0;s{};function Ys(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}var Mv=fa(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let t=Function;return new t(""),!0}catch{return!1}});function _s(t){if(Ys(t)===!1)return!1;let e=t.constructor;if(e===void 0||typeof e!="function")return!0;let r=e.prototype;return!(Ys(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function Dv(t){return _s(t)?{...t}:Array.isArray(t)?[...t]:t}function DF(t){let e=0;for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&e++;return e}var jF=t=>{let e=typeof t;switch(e){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(t)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(t)?"array":t===null?"null":t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?"promise":typeof Map<"u"&&t instanceof Map?"map":typeof Set<"u"&&t instanceof Set?"set":typeof Date<"u"&&t instanceof Date?"date":typeof File<"u"&&t instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${e}`)}},Su=new Set(["string","number","symbol"]),jv=new Set(["string","number","bigint","boolean","symbol","undefined"]);function En(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Dr(t,e,r){let n=new t._zod.constr(e??t._zod.def);return(!e||r?.parent)&&(n._zod.parent=t),n}function ee(t){let e=t;if(!e)return{};if(typeof e=="string")return{error:()=>e};if(e?.message!==void 0){if(e?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");e.error=e.message}return delete e.message,typeof e.error=="string"?{...e,error:()=>e.error}:e}function zF(t){let e;return new Proxy({},{get(r,n,i){return e??(e=t()),Reflect.get(e,n,i)},set(r,n,i,s){return e??(e=t()),Reflect.set(e,n,i,s)},has(r,n){return e??(e=t()),Reflect.has(e,n)},deleteProperty(r,n){return e??(e=t()),Reflect.deleteProperty(e,n)},ownKeys(r){return e??(e=t()),Reflect.ownKeys(e)},getOwnPropertyDescriptor(r,n){return e??(e=t()),Reflect.getOwnPropertyDescriptor(e,n)},defineProperty(r,n,i){return e??(e=t()),Reflect.defineProperty(e,n,i)}})}function xe(t){return typeof t=="bigint"?t.toString()+"n":typeof t=="string"?`"${t}"`:`${t}`}function zv(t){return Object.keys(t).filter(e=>t[e]._zod.optin==="optional"&&t[e]._zod.optout==="optional")}var Lv={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Uv={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function iT(t,e){let r=t._zod.def,n=r.checks;if(n&&n.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let s=Di(t._zod.def,{get shape(){let o={};for(let a in e){if(!(a in r.shape))throw new Error(`Unrecognized key: "${a}"`);e[a]&&(o[a]=r.shape[a])}return ys(this,"shape",o),o},checks:[]});return Dr(t,s)}function sT(t,e){let r=t._zod.def,n=r.checks;if(n&&n.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let s=Di(t._zod.def,{get shape(){let o={...t._zod.def.shape};for(let a in e){if(!(a in r.shape))throw new Error(`Unrecognized key: "${a}"`);e[a]&&delete o[a]}return ys(this,"shape",o),o},checks:[]});return Dr(t,s)}function oT(t,e){if(!_s(e))throw new Error("Invalid input to extend: expected a plain object");let r=t._zod.def.checks;if(r&&r.length>0){let s=t._zod.def.shape;for(let o in e)if(Object.getOwnPropertyDescriptor(s,o)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let i=Di(t._zod.def,{get shape(){let s={...t._zod.def.shape,...e};return ys(this,"shape",s),s}});return Dr(t,i)}function aT(t,e){if(!_s(e))throw new Error("Invalid input to safeExtend: expected a plain object");let r=Di(t._zod.def,{get shape(){let n={...t._zod.def.shape,...e};return ys(this,"shape",n),n}});return Dr(t,r)}function LF(t,e){let r=Di(t._zod.def,{get shape(){let n={...t._zod.def.shape,...e._zod.def.shape};return ys(this,"shape",n),n},get catchall(){return e._zod.def.catchall},checks:[]});return Dr(t,r)}function cT(t,e,r){let i=e._zod.def.checks;if(i&&i.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let o=Di(e._zod.def,{get shape(){let a=e._zod.def.shape,c={...a};if(r)for(let u in r){if(!(u in a))throw new Error(`Unrecognized key: "${u}"`);r[u]&&(c[u]=t?new t({type:"optional",innerType:a[u]}):a[u])}else for(let u in a)c[u]=t?new t({type:"optional",innerType:a[u]}):a[u];return ys(this,"shape",c),c},checks:[]});return Dr(e,o)}function uT(t,e,r){let n=Di(e._zod.def,{get shape(){let i=e._zod.def.shape,s={...i};if(r)for(let o in r){if(!(o in s))throw new Error(`Unrecognized key: "${o}"`);r[o]&&(s[o]=new t({type:"nonoptional",innerType:i[o]}))}else for(let o in i)s[o]=new t({type:"nonoptional",innerType:i[o]});return ys(this,"shape",s),s}});return Dr(e,n)}function bs(t,e=0){if(t.aborted===!0)return!0;for(let r=e;r{var n;return(n=r).path??(n.path=[]),r.path.unshift(t),r})}function _u(t){return typeof t=="string"?t:t?.message}function Kr(t,e,r){let n={...t,path:t.path??[]};if(!t.message){let i=_u(t.inst?._zod.def?.error?.(t))??_u(e?.error?.(t))??_u(r.customError?.(t))??_u(r.localeError?.(t))??"Invalid input";n.message=i}return delete n.inst,delete n.continue,e?.reportInput||delete n.input,n}function wu(t){return t instanceof Set?"set":t instanceof Map?"map":t instanceof File?"file":"unknown"}function Eu(t){return Array.isArray(t)?"array":typeof t=="string"?"string":"unknown"}function Ee(t){let e=typeof t;switch(e){case"number":return Number.isNaN(t)?"nan":"number";case"object":{if(t===null)return"null";if(Array.isArray(t))return"array";let r=t;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return e}function ha(...t){let[e,r,n]=t;return typeof e=="string"?{message:e,code:"custom",input:r,inst:n}:{...e}}function UF(t){return Object.entries(t).filter(([e,r])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function lT(t){let e=atob(t),r=new Uint8Array(e.length);for(let n=0;ne.toString(16).padStart(2,"0")).join("")}var Cv=class{constructor(...e){}};var pT=(t,e)=>{t.name="$ZodError",Object.defineProperty(t,"_zod",{value:t._zod,enumerable:!1}),Object.defineProperty(t,"issues",{value:e,enumerable:!1}),t.message=JSON.stringify(e,ma,2),Object.defineProperty(t,"toString",{value:()=>t.message,enumerable:!1})},Cp=O("$ZodError",pT),ku=O("$ZodError",pT,{Parent:Error});function Ap(t,e=r=>r.message){let r={},n=[];for(let i of t.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(e(i))):n.push(e(i));return{formErrors:n,fieldErrors:r}}function Np(t,e=r=>r.message){let r={_errors:[]},n=i=>{for(let s of i.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(o=>n({issues:o}));else if(s.code==="invalid_key")n({issues:s.issues});else if(s.code==="invalid_element")n({issues:s.issues});else if(s.path.length===0)r._errors.push(e(s));else{let o=r,a=0;for(;a(e,r,n,i)=>{let s=n?Object.assign(n,{async:!1}):{async:!1},o=e._zod.run({value:r,issues:[]},s);if(o instanceof Promise)throw new ci;if(o.issues.length){let a=new(i?.Err??t)(o.issues.map(c=>Kr(c,s,tr())));throw Pp(a,i?.callee),a}return o.value},Tu=$u(ku),Iu=t=>async(e,r,n,i)=>{let s=n?Object.assign(n,{async:!0}):{async:!0},o=e._zod.run({value:r,issues:[]},s);if(o instanceof Promise&&(o=await o),o.issues.length){let a=new(i?.Err??t)(o.issues.map(c=>Kr(c,s,tr())));throw Pp(a,i?.callee),a}return o.value},Ru=Iu(ku),Ou=t=>(e,r,n)=>{let i=n?{...n,async:!1}:{async:!1},s=e._zod.run({value:r,issues:[]},i);if(s instanceof Promise)throw new ci;return s.issues.length?{success:!1,error:new(t??Cp)(s.issues.map(o=>Kr(o,i,tr())))}:{success:!0,data:s.value}},ga=Ou(ku),Pu=t=>async(e,r,n)=>{let i=n?Object.assign(n,{async:!0}):{async:!0},s=e._zod.run({value:r,issues:[]},i);return s instanceof Promise&&(s=await s),s.issues.length?{success:!1,error:new t(s.issues.map(o=>Kr(o,i,tr())))}:{success:!0,data:s.value}},Cu=Pu(ku),mT=t=>(e,r,n)=>{let i=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return $u(t)(e,r,i)};var fT=t=>(e,r,n)=>$u(t)(e,r,n);var hT=t=>async(e,r,n)=>{let i=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Iu(t)(e,r,i)};var gT=t=>async(e,r,n)=>Iu(t)(e,r,n);var vT=t=>(e,r,n)=>{let i=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Ou(t)(e,r,i)};var yT=t=>(e,r,n)=>Ou(t)(e,r,n);var _T=t=>async(e,r,n)=>{let i=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Pu(t)(e,r,i)};var bT=t=>async(e,r,n)=>Pu(t)(e,r,n);var kn={};ln(kn,{base64:()=>ry,base64url:()=>Mp,bigint:()=>cy,boolean:()=>ly,browserEmail:()=>QF,cidrv4:()=>ey,cidrv6:()=>ty,cuid:()=>qv,cuid2:()=>Fv,date:()=>iy,datetime:()=>oy,domain:()=>r8,duration:()=>Gv,e164:()=>ny,email:()=>Kv,emoji:()=>Jv,extendedDuration:()=>VF,guid:()=>Wv,hex:()=>n8,hostname:()=>t8,html5Email:()=>JF,idnEmail:()=>YF,integer:()=>uy,ipv4:()=>Xv,ipv6:()=>Yv,ksuid:()=>Bv,lowercase:()=>my,mac:()=>Qv,md5_base64:()=>s8,md5_base64url:()=>o8,md5_hex:()=>i8,nanoid:()=>Vv,null:()=>dy,number:()=>Dp,rfc5322Email:()=>XF,sha1_base64:()=>c8,sha1_base64url:()=>u8,sha1_hex:()=>a8,sha256_base64:()=>d8,sha256_base64url:()=>p8,sha256_hex:()=>l8,sha384_base64:()=>f8,sha384_base64url:()=>h8,sha384_hex:()=>m8,sha512_base64:()=>v8,sha512_base64url:()=>y8,sha512_hex:()=>g8,string:()=>ay,time:()=>sy,ulid:()=>Hv,undefined:()=>py,unicodeEmail:()=>xT,uppercase:()=>fy,uuid:()=>Qs,uuid4:()=>GF,uuid6:()=>WF,uuid7:()=>KF,xid:()=>Zv});var qv=/^[cC][^\s-]{8,}$/,Fv=/^[0-9a-z]+$/,Hv=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Zv=/^[0-9a-vA-V]{20}$/,Bv=/^[A-Za-z0-9]{27}$/,Vv=/^[a-zA-Z0-9_-]{21}$/,Gv=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,VF=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Wv=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Qs=t=>t?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${t}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,GF=Qs(4),WF=Qs(6),KF=Qs(7),Kv=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,JF=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,XF=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,xT=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,YF=xT,QF=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,e8="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Jv(){return new RegExp(e8,"u")}var Xv=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Yv=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Qv=t=>{let e=En(t??":");return new RegExp(`^(?:[0-9A-F]{2}${e}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${e}){5}[0-9a-f]{2}$`)},ey=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,ty=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,ry=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Mp=/^[A-Za-z0-9_-]*$/,t8=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,r8=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,ny=/^\+[1-9]\d{6,14}$/,ST="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",iy=new RegExp(`^${ST}$`);function wT(t){let e="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof t.precision=="number"?t.precision===-1?`${e}`:t.precision===0?`${e}:[0-5]\\d`:`${e}:[0-5]\\d\\.\\d{${t.precision}}`:`${e}(?::[0-5]\\d(?:\\.\\d+)?)?`}function sy(t){return new RegExp(`^${wT(t)}$`)}function oy(t){let e=wT({precision:t.precision}),r=["Z"];t.local&&r.push(""),t.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${e}(?:${r.join("|")})`;return new RegExp(`^${ST}T(?:${n})$`)}var ay=t=>{let e=t?`[\\s\\S]{${t?.minimum??0},${t?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${e}$`)},cy=/^-?\d+n?$/,uy=/^-?\d+$/,Dp=/^-?\d+(?:\.\d+)?$/,ly=/^(?:true|false)$/i,dy=/^null$/i;var py=/^undefined$/i;var my=/^[^A-Z]*$/,fy=/^[^a-z]*$/,n8=/^[0-9a-fA-F]*$/;function Au(t,e){return new RegExp(`^[A-Za-z0-9+/]{${t}}${e}$`)}function Nu(t){return new RegExp(`^[A-Za-z0-9_-]{${t}}$`)}var i8=/^[0-9a-fA-F]{32}$/,s8=Au(22,"=="),o8=Nu(22),a8=/^[0-9a-fA-F]{40}$/,c8=Au(27,"="),u8=Nu(27),l8=/^[0-9a-fA-F]{64}$/,d8=Au(43,"="),p8=Nu(43),m8=/^[0-9a-fA-F]{96}$/,f8=Au(64,""),h8=Nu(64),g8=/^[0-9a-fA-F]{128}$/,v8=Au(86,"=="),y8=Nu(86);var _t=O("$ZodCheck",(t,e)=>{var r;t._zod??(t._zod={}),t._zod.def=e,(r=t._zod).onattach??(r.onattach=[])}),kT={number:"number",bigint:"bigint",object:"date"},hy=O("$ZodCheckLessThan",(t,e)=>{_t.init(t,e);let r=kT[typeof e.value];t._zod.onattach.push(n=>{let i=n._zod.bag,s=(e.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;e.value{(e.inclusive?n.value<=e.value:n.value{_t.init(t,e);let r=kT[typeof e.value];t._zod.onattach.push(n=>{let i=n._zod.bag,s=(e.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;e.value>s&&(e.inclusive?i.minimum=e.value:i.exclusiveMinimum=e.value)}),t._zod.check=n=>{(e.inclusive?n.value>=e.value:n.value>e.value)||n.issues.push({origin:r,code:"too_small",minimum:typeof e.value=="object"?e.value.getTime():e.value,input:n.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),$T=O("$ZodCheckMultipleOf",(t,e)=>{_t.init(t,e),t._zod.onattach.push(r=>{var n;(n=r._zod.bag).multipleOf??(n.multipleOf=e.value)}),t._zod.check=r=>{if(typeof r.value!=typeof e.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%e.value===BigInt(0):Av(r.value,e.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:e.value,input:r.value,inst:t,continue:!e.abort})}}),TT=O("$ZodCheckNumberFormat",(t,e)=>{_t.init(t,e),e.format=e.format||"float64";let r=e.format?.includes("int"),n=r?"int":"number",[i,s]=Lv[e.format];t._zod.onattach.push(o=>{let a=o._zod.bag;a.format=e.format,a.minimum=i,a.maximum=s,r&&(a.pattern=uy)}),t._zod.check=o=>{let a=o.value;if(r){if(!Number.isInteger(a)){o.issues.push({expected:n,format:e.format,code:"invalid_type",continue:!1,input:a,inst:t});return}if(!Number.isSafeInteger(a)){a>0?o.issues.push({input:a,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:n,inclusive:!0,continue:!e.abort}):o.issues.push({input:a,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:n,inclusive:!0,continue:!e.abort});return}}as&&o.issues.push({origin:"number",input:a,code:"too_big",maximum:s,inclusive:!0,inst:t,continue:!e.abort})}}),IT=O("$ZodCheckBigIntFormat",(t,e)=>{_t.init(t,e);let[r,n]=Uv[e.format];t._zod.onattach.push(i=>{let s=i._zod.bag;s.format=e.format,s.minimum=r,s.maximum=n}),t._zod.check=i=>{let s=i.value;sn&&i.issues.push({origin:"bigint",input:s,code:"too_big",maximum:n,inclusive:!0,inst:t,continue:!e.abort})}}),RT=O("$ZodCheckMaxSize",(t,e)=>{var r;_t.init(t,e),(r=t._zod.def).when??(r.when=n=>{let i=n.value;return!vs(i)&&i.size!==void 0}),t._zod.onattach.push(n=>{let i=n._zod.bag.maximum??Number.POSITIVE_INFINITY;e.maximum{let i=n.value;i.size<=e.maximum||n.issues.push({origin:wu(i),code:"too_big",maximum:e.maximum,inclusive:!0,input:i,inst:t,continue:!e.abort})}}),OT=O("$ZodCheckMinSize",(t,e)=>{var r;_t.init(t,e),(r=t._zod.def).when??(r.when=n=>{let i=n.value;return!vs(i)&&i.size!==void 0}),t._zod.onattach.push(n=>{let i=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;e.minimum>i&&(n._zod.bag.minimum=e.minimum)}),t._zod.check=n=>{let i=n.value;i.size>=e.minimum||n.issues.push({origin:wu(i),code:"too_small",minimum:e.minimum,inclusive:!0,input:i,inst:t,continue:!e.abort})}}),PT=O("$ZodCheckSizeEquals",(t,e)=>{var r;_t.init(t,e),(r=t._zod.def).when??(r.when=n=>{let i=n.value;return!vs(i)&&i.size!==void 0}),t._zod.onattach.push(n=>{let i=n._zod.bag;i.minimum=e.size,i.maximum=e.size,i.size=e.size}),t._zod.check=n=>{let i=n.value,s=i.size;if(s===e.size)return;let o=s>e.size;n.issues.push({origin:wu(i),...o?{code:"too_big",maximum:e.size}:{code:"too_small",minimum:e.size},inclusive:!0,exact:!0,input:n.value,inst:t,continue:!e.abort})}}),CT=O("$ZodCheckMaxLength",(t,e)=>{var r;_t.init(t,e),(r=t._zod.def).when??(r.when=n=>{let i=n.value;return!vs(i)&&i.length!==void 0}),t._zod.onattach.push(n=>{let i=n._zod.bag.maximum??Number.POSITIVE_INFINITY;e.maximum{let i=n.value;if(i.length<=e.maximum)return;let o=Eu(i);n.issues.push({origin:o,code:"too_big",maximum:e.maximum,inclusive:!0,input:i,inst:t,continue:!e.abort})}}),AT=O("$ZodCheckMinLength",(t,e)=>{var r;_t.init(t,e),(r=t._zod.def).when??(r.when=n=>{let i=n.value;return!vs(i)&&i.length!==void 0}),t._zod.onattach.push(n=>{let i=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;e.minimum>i&&(n._zod.bag.minimum=e.minimum)}),t._zod.check=n=>{let i=n.value;if(i.length>=e.minimum)return;let o=Eu(i);n.issues.push({origin:o,code:"too_small",minimum:e.minimum,inclusive:!0,input:i,inst:t,continue:!e.abort})}}),NT=O("$ZodCheckLengthEquals",(t,e)=>{var r;_t.init(t,e),(r=t._zod.def).when??(r.when=n=>{let i=n.value;return!vs(i)&&i.length!==void 0}),t._zod.onattach.push(n=>{let i=n._zod.bag;i.minimum=e.length,i.maximum=e.length,i.length=e.length}),t._zod.check=n=>{let i=n.value,s=i.length;if(s===e.length)return;let o=Eu(i),a=s>e.length;n.issues.push({origin:o,...a?{code:"too_big",maximum:e.length}:{code:"too_small",minimum:e.length},inclusive:!0,exact:!0,input:n.value,inst:t,continue:!e.abort})}}),Mu=O("$ZodCheckStringFormat",(t,e)=>{var r,n;_t.init(t,e),t._zod.onattach.push(i=>{let s=i._zod.bag;s.format=e.format,e.pattern&&(s.patterns??(s.patterns=new Set),s.patterns.add(e.pattern))}),e.pattern?(r=t._zod).check??(r.check=i=>{e.pattern.lastIndex=0,!e.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:e.format,input:i.value,...e.pattern?{pattern:e.pattern.toString()}:{},inst:t,continue:!e.abort})}):(n=t._zod).check??(n.check=()=>{})}),MT=O("$ZodCheckRegex",(t,e)=>{Mu.init(t,e),t._zod.check=r=>{e.pattern.lastIndex=0,!e.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:e.pattern.toString(),inst:t,continue:!e.abort})}}),DT=O("$ZodCheckLowerCase",(t,e)=>{e.pattern??(e.pattern=my),Mu.init(t,e)}),jT=O("$ZodCheckUpperCase",(t,e)=>{e.pattern??(e.pattern=fy),Mu.init(t,e)}),zT=O("$ZodCheckIncludes",(t,e)=>{_t.init(t,e);let r=En(e.includes),n=new RegExp(typeof e.position=="number"?`^.{${e.position}}${r}`:r);e.pattern=n,t._zod.onattach.push(i=>{let s=i._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(n)}),t._zod.check=i=>{i.value.includes(e.includes,e.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:e.includes,input:i.value,inst:t,continue:!e.abort})}}),LT=O("$ZodCheckStartsWith",(t,e)=>{_t.init(t,e);let r=new RegExp(`^${En(e.prefix)}.*`);e.pattern??(e.pattern=r),t._zod.onattach.push(n=>{let i=n._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(r)}),t._zod.check=n=>{n.value.startsWith(e.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:e.prefix,input:n.value,inst:t,continue:!e.abort})}}),UT=O("$ZodCheckEndsWith",(t,e)=>{_t.init(t,e);let r=new RegExp(`.*${En(e.suffix)}$`);e.pattern??(e.pattern=r),t._zod.onattach.push(n=>{let i=n._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(r)}),t._zod.check=n=>{n.value.endsWith(e.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:e.suffix,input:n.value,inst:t,continue:!e.abort})}});function ET(t,e,r){t.issues.length&&e.issues.push(...mn(r,t.issues))}var qT=O("$ZodCheckProperty",(t,e)=>{_t.init(t,e),t._zod.check=r=>{let n=e.schema._zod.run({value:r.value[e.property],issues:[]},{});if(n instanceof Promise)return n.then(i=>ET(i,r,e.property));ET(n,r,e.property)}}),FT=O("$ZodCheckMimeType",(t,e)=>{_t.init(t,e);let r=new Set(e.mime);t._zod.onattach.push(n=>{n._zod.bag.mime=e.mime}),t._zod.check=n=>{r.has(n.value.type)||n.issues.push({code:"invalid_value",values:e.mime,input:n.value.type,inst:t,continue:!e.abort})}}),HT=O("$ZodCheckOverwrite",(t,e)=>{_t.init(t,e),t._zod.check=r=>{r.value=e.tx(r.value)}});var jp=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let n=e.split(` +`).filter(o=>o),i=Math.min(...n.map(o=>o.length-o.trimStart().length)),s=n.map(o=>o.slice(i)).map(o=>" ".repeat(this.indent*2)+o);for(let o of s)this.content.push(o)}compile(){let e=Function,r=this?.args,i=[...(this?.content??[""]).map(s=>` ${s}`)];return new e(...r,i.join(` +`))}};var BT={major:4,minor:3,patch:6};var Oe=O("$ZodType",(t,e)=>{var r;t??(t={}),t._zod.def=e,t._zod.bag=t._zod.bag||{},t._zod.version=BT;let n=[...t._zod.def.checks??[]];t._zod.traits.has("$ZodCheck")&&n.unshift(t);for(let i of n)for(let s of i._zod.onattach)s(t);if(n.length===0)(r=t._zod).deferred??(r.deferred=[]),t._zod.deferred?.push(()=>{t._zod.run=t._zod.parse});else{let i=(o,a,c)=>{let u=bs(o),l;for(let d of a){if(d._zod.def.when){if(!d._zod.def.when(o))continue}else if(u)continue;let p=o.issues.length,m=d._zod.check(o);if(m instanceof Promise&&c?.async===!1)throw new ci;if(l||m instanceof Promise)l=(l??Promise.resolve()).then(async()=>{await m,o.issues.length!==p&&(u||(u=bs(o,p)))});else{if(o.issues.length===p)continue;u||(u=bs(o,p))}}return l?l.then(()=>o):o},s=(o,a,c)=>{if(bs(o))return o.aborted=!0,o;let u=i(a,n,c);if(u instanceof Promise){if(c.async===!1)throw new ci;return u.then(l=>t._zod.parse(l,c))}return t._zod.parse(u,c)};t._zod.run=(o,a)=>{if(a.skipChecks)return t._zod.parse(o,a);if(a.direction==="backward"){let u=t._zod.parse({value:o.value,issues:[]},{...a,skipChecks:!0});return u instanceof Promise?u.then(l=>s(l,o,a)):s(u,o,a)}let c=t._zod.parse(o,a);if(c instanceof Promise){if(a.async===!1)throw new ci;return c.then(u=>i(u,n,a))}return i(c,n,a)}}Me(t,"~standard",()=>({validate:i=>{try{let s=ga(t,i);return s.success?{value:s.data}:{issues:s.error?.issues}}catch{return Cu(t,i).then(o=>o.success?{value:o.data}:{issues:o.error?.issues})}},vendor:"zod",version:1}))}),eo=O("$ZodString",(t,e)=>{Oe.init(t,e),t._zod.pattern=[...t?._zod.bag?.patterns??[]].pop()??ay(t._zod.bag),t._zod.parse=(r,n)=>{if(e.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:t}),r}}),mt=O("$ZodStringFormat",(t,e)=>{Mu.init(t,e),eo.init(t,e)}),yy=O("$ZodGUID",(t,e)=>{e.pattern??(e.pattern=Wv),mt.init(t,e)}),_y=O("$ZodUUID",(t,e)=>{if(e.version){let n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[e.version];if(n===void 0)throw new Error(`Invalid UUID version: "${e.version}"`);e.pattern??(e.pattern=Qs(n))}else e.pattern??(e.pattern=Qs());mt.init(t,e)}),by=O("$ZodEmail",(t,e)=>{e.pattern??(e.pattern=Kv),mt.init(t,e)}),xy=O("$ZodURL",(t,e)=>{mt.init(t,e),t._zod.check=r=>{try{let n=r.value.trim(),i=new URL(n);e.hostname&&(e.hostname.lastIndex=0,e.hostname.test(i.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:e.hostname.source,input:r.value,inst:t,continue:!e.abort})),e.protocol&&(e.protocol.lastIndex=0,e.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:e.protocol.source,input:r.value,inst:t,continue:!e.abort})),e.normalize?r.value=i.href:r.value=n;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:t,continue:!e.abort})}}}),Sy=O("$ZodEmoji",(t,e)=>{e.pattern??(e.pattern=Jv()),mt.init(t,e)}),wy=O("$ZodNanoID",(t,e)=>{e.pattern??(e.pattern=Vv),mt.init(t,e)}),Ey=O("$ZodCUID",(t,e)=>{e.pattern??(e.pattern=qv),mt.init(t,e)}),ky=O("$ZodCUID2",(t,e)=>{e.pattern??(e.pattern=Fv),mt.init(t,e)}),$y=O("$ZodULID",(t,e)=>{e.pattern??(e.pattern=Hv),mt.init(t,e)}),Ty=O("$ZodXID",(t,e)=>{e.pattern??(e.pattern=Zv),mt.init(t,e)}),Iy=O("$ZodKSUID",(t,e)=>{e.pattern??(e.pattern=Bv),mt.init(t,e)}),Ry=O("$ZodISODateTime",(t,e)=>{e.pattern??(e.pattern=oy(e)),mt.init(t,e)}),Oy=O("$ZodISODate",(t,e)=>{e.pattern??(e.pattern=iy),mt.init(t,e)}),Py=O("$ZodISOTime",(t,e)=>{e.pattern??(e.pattern=sy(e)),mt.init(t,e)}),Cy=O("$ZodISODuration",(t,e)=>{e.pattern??(e.pattern=Gv),mt.init(t,e)}),Ay=O("$ZodIPv4",(t,e)=>{e.pattern??(e.pattern=Xv),mt.init(t,e),t._zod.bag.format="ipv4"}),Ny=O("$ZodIPv6",(t,e)=>{e.pattern??(e.pattern=Yv),mt.init(t,e),t._zod.bag.format="ipv6",t._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:t,continue:!e.abort})}}}),My=O("$ZodMAC",(t,e)=>{e.pattern??(e.pattern=Qv(e.delimiter)),mt.init(t,e),t._zod.bag.format="mac"}),Dy=O("$ZodCIDRv4",(t,e)=>{e.pattern??(e.pattern=ey),mt.init(t,e)}),jy=O("$ZodCIDRv6",(t,e)=>{e.pattern??(e.pattern=ty),mt.init(t,e),t._zod.check=r=>{let n=r.value.split("/");try{if(n.length!==2)throw new Error;let[i,s]=n;if(!s)throw new Error;let o=Number(s);if(`${o}`!==s)throw new Error;if(o<0||o>128)throw new Error;new URL(`http://[${i}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:t,continue:!e.abort})}}});function nI(t){if(t==="")return!0;if(t.length%4!==0)return!1;try{return atob(t),!0}catch{return!1}}var zy=O("$ZodBase64",(t,e)=>{e.pattern??(e.pattern=ry),mt.init(t,e),t._zod.bag.contentEncoding="base64",t._zod.check=r=>{nI(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:t,continue:!e.abort})}});function _8(t){if(!Mp.test(t))return!1;let e=t.replace(/[-_]/g,n=>n==="-"?"+":"/"),r=e.padEnd(Math.ceil(e.length/4)*4,"=");return nI(r)}var Ly=O("$ZodBase64URL",(t,e)=>{e.pattern??(e.pattern=Mp),mt.init(t,e),t._zod.bag.contentEncoding="base64url",t._zod.check=r=>{_8(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:t,continue:!e.abort})}}),Uy=O("$ZodE164",(t,e)=>{e.pattern??(e.pattern=ny),mt.init(t,e)});function b8(t,e=null){try{let r=t.split(".");if(r.length!==3)return!1;let[n]=r;if(!n)return!1;let i=JSON.parse(atob(n));return!("typ"in i&&i?.typ!=="JWT"||!i.alg||e&&(!("alg"in i)||i.alg!==e))}catch{return!1}}var qy=O("$ZodJWT",(t,e)=>{mt.init(t,e),t._zod.check=r=>{b8(r.value,e.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:t,continue:!e.abort})}}),Fy=O("$ZodCustomStringFormat",(t,e)=>{mt.init(t,e),t._zod.check=r=>{e.fn(r.value)||r.issues.push({code:"invalid_format",format:e.format,input:r.value,inst:t,continue:!e.abort})}}),Hp=O("$ZodNumber",(t,e)=>{Oe.init(t,e),t._zod.pattern=t._zod.bag.pattern??Dp,t._zod.parse=(r,n)=>{if(e.coerce)try{r.value=Number(r.value)}catch{}let i=r.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return r;let s=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:i,inst:t,...s?{received:s}:{}}),r}}),Hy=O("$ZodNumberFormat",(t,e)=>{TT.init(t,e),Hp.init(t,e)}),Du=O("$ZodBoolean",(t,e)=>{Oe.init(t,e),t._zod.pattern=ly,t._zod.parse=(r,n)=>{if(e.coerce)try{r.value=!!r.value}catch{}let i=r.value;return typeof i=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:t}),r}}),Zp=O("$ZodBigInt",(t,e)=>{Oe.init(t,e),t._zod.pattern=cy,t._zod.parse=(r,n)=>{if(e.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:t}),r}}),Zy=O("$ZodBigIntFormat",(t,e)=>{IT.init(t,e),Zp.init(t,e)}),By=O("$ZodSymbol",(t,e)=>{Oe.init(t,e),t._zod.parse=(r,n)=>{let i=r.value;return typeof i=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:i,inst:t}),r}}),Vy=O("$ZodUndefined",(t,e)=>{Oe.init(t,e),t._zod.pattern=py,t._zod.values=new Set([void 0]),t._zod.optin="optional",t._zod.optout="optional",t._zod.parse=(r,n)=>{let i=r.value;return typeof i>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:i,inst:t}),r}}),Gy=O("$ZodNull",(t,e)=>{Oe.init(t,e),t._zod.pattern=dy,t._zod.values=new Set([null]),t._zod.parse=(r,n)=>{let i=r.value;return i===null||r.issues.push({expected:"null",code:"invalid_type",input:i,inst:t}),r}}),Wy=O("$ZodAny",(t,e)=>{Oe.init(t,e),t._zod.parse=r=>r}),Ky=O("$ZodUnknown",(t,e)=>{Oe.init(t,e),t._zod.parse=r=>r}),Jy=O("$ZodNever",(t,e)=>{Oe.init(t,e),t._zod.parse=(r,n)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:t}),r)}),Xy=O("$ZodVoid",(t,e)=>{Oe.init(t,e),t._zod.parse=(r,n)=>{let i=r.value;return typeof i>"u"||r.issues.push({expected:"void",code:"invalid_type",input:i,inst:t}),r}}),Yy=O("$ZodDate",(t,e)=>{Oe.init(t,e),t._zod.parse=(r,n)=>{if(e.coerce)try{r.value=new Date(r.value)}catch{}let i=r.value,s=i instanceof Date;return s&&!Number.isNaN(i.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:i,...s?{received:"Invalid Date"}:{},inst:t}),r}});function VT(t,e,r){t.issues.length&&e.issues.push(...mn(r,t.issues)),e.value[r]=t.value}var Qy=O("$ZodArray",(t,e)=>{Oe.init(t,e),t._zod.parse=(r,n)=>{let i=r.value;if(!Array.isArray(i))return r.issues.push({expected:"array",code:"invalid_type",input:i,inst:t}),r;r.value=Array(i.length);let s=[];for(let o=0;oVT(u,r,o))):VT(c,r,o)}return s.length?Promise.all(s).then(()=>r):r}});function Fp(t,e,r,n,i){if(t.issues.length){if(i&&!(r in n))return;e.issues.push(...mn(r,t.issues))}t.value===void 0?r in n&&(e.value[r]=void 0):e.value[r]=t.value}function iI(t){let e=Object.keys(t.shape);for(let n of e)if(!t.shape?.[n]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);let r=zv(t.shape);return{...t,keys:e,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(r)}}function sI(t,e,r,n,i,s){let o=[],a=i.keySet,c=i.catchall._zod,u=c.def.type,l=c.optout==="optional";for(let d in e){if(a.has(d))continue;if(u==="never"){o.push(d);continue}let p=c.run({value:e[d],issues:[]},n);p instanceof Promise?t.push(p.then(m=>Fp(m,r,d,e,l))):Fp(p,r,d,e,l)}return o.length&&r.issues.push({code:"unrecognized_keys",keys:o,input:e,inst:s}),t.length?Promise.all(t).then(()=>r):r}var oI=O("$ZodObject",(t,e)=>{if(Oe.init(t,e),!Object.getOwnPropertyDescriptor(e,"shape")?.get){let a=e.shape;Object.defineProperty(e,"shape",{get:()=>{let c={...a};return Object.defineProperty(e,"shape",{value:c}),c}})}let n=fa(()=>iI(e));Me(t._zod,"propValues",()=>{let a=e.shape,c={};for(let u in a){let l=a[u]._zod;if(l.values){c[u]??(c[u]=new Set);for(let d of l.values)c[u].add(d)}}return c});let i=Ys,s=e.catchall,o;t._zod.parse=(a,c)=>{o??(o=n.value);let u=a.value;if(!i(u))return a.issues.push({expected:"object",code:"invalid_type",input:u,inst:t}),a;a.value={};let l=[],d=o.shape;for(let p of o.keys){let m=d[p],f=m._zod.optout==="optional",g=m._zod.run({value:u[p],issues:[]},c);g instanceof Promise?l.push(g.then(h=>Fp(h,a,p,u,f))):Fp(g,a,p,u,f)}return s?sI(l,u,a,c,n.value,t):l.length?Promise.all(l).then(()=>a):a}}),aI=O("$ZodObjectJIT",(t,e)=>{oI.init(t,e);let r=t._zod.parse,n=fa(()=>iI(e)),i=p=>{let m=new jp(["shape","payload","ctx"]),f=n.value,g=b=>{let _=Op(b);return`shape[${_}]._zod.run({ value: input[${_}], issues: [] }, ctx)`};m.write("const input = payload.value;");let h=Object.create(null),v=0;for(let b of f.keys)h[b]=`key_${v++}`;m.write("const newResult = {};");for(let b of f.keys){let _=h[b],S=Op(b),E=p[b]?._zod?.optout==="optional";m.write(`const ${_} = ${g(b)};`),E?m.write(` + if (${_}.issues.length) { + if (${S} in input) { + payload.issues = payload.issues.concat(${_}.issues.map(iss => ({ ...iss, - path: iss.path ? [${k}, ...iss.path] : [${k}] + path: iss.path ? [${S}, ...iss.path] : [${S}] }))); } } - if (${id}.value === undefined) { - if (${k} in input) { - newResult[${k}] = undefined; + if (${_}.value === undefined) { + if (${S} in input) { + newResult[${S}] = undefined; } } else { - newResult[${k}] = ${id}.value; + newResult[${S}] = ${_}.value; } - `); - } else { - doc.write(` - if (${id}.issues.length) { - payload.issues = payload.issues.concat(${id}.issues.map(iss => ({ + `):m.write(` + if (${_}.issues.length) { + payload.issues = payload.issues.concat(${_}.issues.map(iss => ({ ...iss, - path: iss.path ? [${k}, ...iss.path] : [${k}] + path: iss.path ? [${S}, ...iss.path] : [${S}] }))); } - if (${id}.value === undefined) { - if (${k} in input) { - newResult[${k}] = undefined; + if (${_}.value === undefined) { + if (${S} in input) { + newResult[${S}] = undefined; } } else { - newResult[${k}] = ${id}.value; + newResult[${S}] = ${_}.value; } - `); - } - } - doc.write(`payload.value = newResult;`); - doc.write(`return payload;`); - const fn = doc.compile(); - return (payload, ctx) => fn(shape, payload, ctx); - }; - let fastpass; - const isObject2 = isObject; - const jit = !globalConfig.jitless; - const allowsEval2 = allowsEval; - const fastEnabled = jit && allowsEval2.value; - const catchall = def.catchall; - let value; - inst._zod.parse = (payload, ctx) => { - value ?? (value = _normalized.value); - const input = payload.value; - if (!isObject2(input)) { - payload.issues.push({ - expected: "object", - code: "invalid_type", - input, - inst - }); - return payload; - } - if (jit && fastEnabled && ctx?.async === false && ctx.jitless !== true) { - if (!fastpass) - fastpass = generateFastpass(def.shape); - payload = fastpass(payload, ctx); - if (!catchall) - return payload; - return handleCatchall([], input, payload, ctx, value, inst); - } - return superParse(payload, ctx); - }; -}); -function handleUnionResults(results, final, inst, ctx) { - for (const result of results) { - if (result.issues.length === 0) { - final.value = result.value; - return final; - } - } - const nonaborted = results.filter((r) => !aborted(r)); - if (nonaborted.length === 1) { - final.value = nonaborted[0].value; - return nonaborted[0]; - } - final.issues.push({ - code: "invalid_union", - input: final.value, - inst, - errors: results.map((result) => result.issues.map((iss) => finalizeIssue(iss, ctx, config()))) - }); - return final; -} -var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => { - $ZodType.init(inst, def); - defineLazy(inst._zod, "optin", () => def.options.some((o) => o._zod.optin === "optional") ? "optional" : undefined); - defineLazy(inst._zod, "optout", () => def.options.some((o) => o._zod.optout === "optional") ? "optional" : undefined); - defineLazy(inst._zod, "values", () => { - if (def.options.every((o) => o._zod.values)) { - return new Set(def.options.flatMap((option) => Array.from(option._zod.values))); - } - return; - }); - defineLazy(inst._zod, "pattern", () => { - if (def.options.every((o) => o._zod.pattern)) { - const patterns = def.options.map((o) => o._zod.pattern); - return new RegExp(`^(${patterns.map((p) => cleanRegex(p.source)).join("|")})$`); - } - return; - }); - const single = def.options.length === 1; - const first = def.options[0]._zod.run; - inst._zod.parse = (payload, ctx) => { - if (single) { - return first(payload, ctx); - } - let async = false; - const results = []; - for (const option of def.options) { - const result = option._zod.run({ - value: payload.value, - issues: [] - }, ctx); - if (result instanceof Promise) { - results.push(result); - async = true; - } else { - if (result.issues.length === 0) - return result; - results.push(result); - } - } - if (!async) - return handleUnionResults(results, payload, inst, ctx); - return Promise.all(results).then((results2) => { - return handleUnionResults(results2, payload, inst, ctx); - }); - }; -}); -var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnion", (inst, def) => { - def.inclusive = false; - $ZodUnion.init(inst, def); - const _super = inst._zod.parse; - defineLazy(inst._zod, "propValues", () => { - const propValues = {}; - for (const option of def.options) { - const pv = option._zod.propValues; - if (!pv || Object.keys(pv).length === 0) - throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(option)}"`); - for (const [k, v] of Object.entries(pv)) { - if (!propValues[k]) - propValues[k] = new Set; - for (const val of v) { - propValues[k].add(val); - } - } - } - return propValues; - }); - const disc = cached(() => { - const opts = def.options; - const map = new Map; - for (const o of opts) { - const values = o._zod.propValues?.[def.discriminator]; - if (!values || values.size === 0) - throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(o)}"`); - for (const v of values) { - if (map.has(v)) { - throw new Error(`Duplicate discriminator value "${String(v)}"`); - } - map.set(v, o); - } - } - return map; - }); - inst._zod.parse = (payload, ctx) => { - const input = payload.value; - if (!isObject(input)) { - payload.issues.push({ - code: "invalid_type", - expected: "object", - input, - inst - }); - return payload; - } - const opt = disc.value.get(input?.[def.discriminator]); - if (opt) { - return opt._zod.run(payload, ctx); - } - if (def.unionFallback) { - return _super(payload, ctx); - } - payload.issues.push({ - code: "invalid_union", - errors: [], - note: "No matching discriminator", - discriminator: def.discriminator, - input, - path: [def.discriminator], - inst - }); - return payload; - }; -}); -var $ZodIntersection = /* @__PURE__ */ $constructor("$ZodIntersection", (inst, def) => { - $ZodType.init(inst, def); - inst._zod.parse = (payload, ctx) => { - const input = payload.value; - const left = def.left._zod.run({ value: input, issues: [] }, ctx); - const right = def.right._zod.run({ value: input, issues: [] }, ctx); - const async = left instanceof Promise || right instanceof Promise; - if (async) { - return Promise.all([left, right]).then(([left2, right2]) => { - return handleIntersectionResults(payload, left2, right2); - }); - } - return handleIntersectionResults(payload, left, right); - }; -}); -function mergeValues(a, b) { - if (a === b) { - return { valid: true, data: a }; - } - if (a instanceof Date && b instanceof Date && +a === +b) { - return { valid: true, data: a }; - } - if (isPlainObject(a) && isPlainObject(b)) { - const bKeys = Object.keys(b); - const sharedKeys = Object.keys(a).filter((key) => bKeys.indexOf(key) !== -1); - const newObj = { ...a, ...b }; - for (const key of sharedKeys) { - const sharedValue = mergeValues(a[key], b[key]); - if (!sharedValue.valid) { - return { - valid: false, - mergeErrorPath: [key, ...sharedValue.mergeErrorPath] - }; - } - newObj[key] = sharedValue.data; - } - return { valid: true, data: newObj }; - } - if (Array.isArray(a) && Array.isArray(b)) { - if (a.length !== b.length) { - return { valid: false, mergeErrorPath: [] }; - } - const newArray = []; - for (let index = 0;index < a.length; index++) { - const itemA = a[index]; - const itemB = b[index]; - const sharedValue = mergeValues(itemA, itemB); - if (!sharedValue.valid) { - return { - valid: false, - mergeErrorPath: [index, ...sharedValue.mergeErrorPath] - }; - } - newArray.push(sharedValue.data); - } - return { valid: true, data: newArray }; - } - return { valid: false, mergeErrorPath: [] }; -} -function handleIntersectionResults(result, left, right) { - const unrecKeys = new Map; - let unrecIssue; - for (const iss of left.issues) { - if (iss.code === "unrecognized_keys") { - unrecIssue ?? (unrecIssue = iss); - for (const k of iss.keys) { - if (!unrecKeys.has(k)) - unrecKeys.set(k, {}); - unrecKeys.get(k).l = true; - } - } else { - result.issues.push(iss); - } - } - for (const iss of right.issues) { - if (iss.code === "unrecognized_keys") { - for (const k of iss.keys) { - if (!unrecKeys.has(k)) - unrecKeys.set(k, {}); - unrecKeys.get(k).r = true; - } - } else { - result.issues.push(iss); - } - } - const bothKeys = [...unrecKeys].filter(([, f]) => f.l && f.r).map(([k]) => k); - if (bothKeys.length && unrecIssue) { - result.issues.push({ ...unrecIssue, keys: bothKeys }); - } - if (aborted(result)) - return result; - const merged = mergeValues(left.value, right.value); - if (!merged.valid) { - throw new Error(`Unmergable intersection. Error path: ` + `${JSON.stringify(merged.mergeErrorPath)}`); - } - result.value = merged.data; - return result; -} -var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => { - $ZodType.init(inst, def); - inst._zod.parse = (payload, ctx) => { - const input = payload.value; - if (!isPlainObject(input)) { - payload.issues.push({ - expected: "record", - code: "invalid_type", - input, - inst - }); - return payload; - } - const proms = []; - const values = def.keyType._zod.values; - if (values) { - payload.value = {}; - const recordKeys = new Set; - for (const key of values) { - if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") { - recordKeys.add(typeof key === "number" ? key.toString() : key); - const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx); - if (result instanceof Promise) { - proms.push(result.then((result2) => { - if (result2.issues.length) { - payload.issues.push(...prefixIssues(key, result2.issues)); - } - payload.value[key] = result2.value; - })); - } else { - if (result.issues.length) { - payload.issues.push(...prefixIssues(key, result.issues)); - } - payload.value[key] = result.value; - } - } - } - let unrecognized; - for (const key in input) { - if (!recordKeys.has(key)) { - unrecognized = unrecognized ?? []; - unrecognized.push(key); - } - } - if (unrecognized && unrecognized.length > 0) { - payload.issues.push({ - code: "unrecognized_keys", - input, - inst, - keys: unrecognized - }); - } - } else { - payload.value = {}; - for (const key of Reflect.ownKeys(input)) { - if (key === "__proto__") - continue; - let keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx); - if (keyResult instanceof Promise) { - throw new Error("Async schemas not supported in object keys currently"); - } - const checkNumericKey = typeof key === "string" && number.test(key) && keyResult.issues.length; - if (checkNumericKey) { - const retryResult = def.keyType._zod.run({ value: Number(key), issues: [] }, ctx); - if (retryResult instanceof Promise) { - throw new Error("Async schemas not supported in object keys currently"); - } - if (retryResult.issues.length === 0) { - keyResult = retryResult; - } - } - if (keyResult.issues.length) { - if (def.mode === "loose") { - payload.value[key] = input[key]; - } else { - payload.issues.push({ - code: "invalid_key", - origin: "record", - issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config())), - input: key, - path: [key], - inst - }); - } - continue; - } - const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx); - if (result instanceof Promise) { - proms.push(result.then((result2) => { - if (result2.issues.length) { - payload.issues.push(...prefixIssues(key, result2.issues)); - } - payload.value[keyResult.value] = result2.value; - })); - } else { - if (result.issues.length) { - payload.issues.push(...prefixIssues(key, result.issues)); - } - payload.value[keyResult.value] = result.value; - } - } - } - if (proms.length) { - return Promise.all(proms).then(() => payload); - } - return payload; - }; -}); -var $ZodEnum = /* @__PURE__ */ $constructor("$ZodEnum", (inst, def) => { - $ZodType.init(inst, def); - const values = getEnumValues(def.entries); - const valuesSet = new Set(values); - inst._zod.values = valuesSet; - inst._zod.pattern = new RegExp(`^(${values.filter((k) => propertyKeyTypes.has(typeof k)).map((o) => typeof o === "string" ? escapeRegex(o) : o.toString()).join("|")})$`); - inst._zod.parse = (payload, _ctx) => { - const input = payload.value; - if (valuesSet.has(input)) { - return payload; - } - payload.issues.push({ - code: "invalid_value", - values, - input, - inst - }); - return payload; - }; -}); -var $ZodLiteral = /* @__PURE__ */ $constructor("$ZodLiteral", (inst, def) => { - $ZodType.init(inst, def); - if (def.values.length === 0) { - throw new Error("Cannot create literal schema with no valid values"); - } - const values = new Set(def.values); - inst._zod.values = values; - inst._zod.pattern = new RegExp(`^(${def.values.map((o) => typeof o === "string" ? escapeRegex(o) : o ? escapeRegex(o.toString()) : String(o)).join("|")})$`); - inst._zod.parse = (payload, _ctx) => { - const input = payload.value; - if (values.has(input)) { - return payload; - } - payload.issues.push({ - code: "invalid_value", - values: def.values, - input, - inst - }); - return payload; - }; -}); -var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) => { - $ZodType.init(inst, def); - inst._zod.parse = (payload, ctx) => { - if (ctx.direction === "backward") { - throw new $ZodEncodeError(inst.constructor.name); - } - const _out = def.transform(payload.value, payload); - if (ctx.async) { - const output = _out instanceof Promise ? _out : Promise.resolve(_out); - return output.then((output2) => { - payload.value = output2; - return payload; - }); - } - if (_out instanceof Promise) { - throw new $ZodAsyncError; - } - payload.value = _out; - return payload; - }; -}); -function handleOptionalResult(result, input) { - if (result.issues.length && input === undefined) { - return { issues: [], value: undefined }; - } - return result; -} -var $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) => { - $ZodType.init(inst, def); - inst._zod.optin = "optional"; - inst._zod.optout = "optional"; - defineLazy(inst._zod, "values", () => { - return def.innerType._zod.values ? new Set([...def.innerType._zod.values, undefined]) : undefined; - }); - defineLazy(inst._zod, "pattern", () => { - const pattern = def.innerType._zod.pattern; - return pattern ? new RegExp(`^(${cleanRegex(pattern.source)})?$`) : undefined; - }); - inst._zod.parse = (payload, ctx) => { - if (def.innerType._zod.optin === "optional") { - const result = def.innerType._zod.run(payload, ctx); - if (result instanceof Promise) - return result.then((r) => handleOptionalResult(r, payload.value)); - return handleOptionalResult(result, payload.value); - } - if (payload.value === undefined) { - return payload; - } - return def.innerType._zod.run(payload, ctx); - }; -}); -var $ZodExactOptional = /* @__PURE__ */ $constructor("$ZodExactOptional", (inst, def) => { - $ZodOptional.init(inst, def); - defineLazy(inst._zod, "values", () => def.innerType._zod.values); - defineLazy(inst._zod, "pattern", () => def.innerType._zod.pattern); - inst._zod.parse = (payload, ctx) => { - return def.innerType._zod.run(payload, ctx); - }; -}); -var $ZodNullable = /* @__PURE__ */ $constructor("$ZodNullable", (inst, def) => { - $ZodType.init(inst, def); - defineLazy(inst._zod, "optin", () => def.innerType._zod.optin); - defineLazy(inst._zod, "optout", () => def.innerType._zod.optout); - defineLazy(inst._zod, "pattern", () => { - const pattern = def.innerType._zod.pattern; - return pattern ? new RegExp(`^(${cleanRegex(pattern.source)}|null)$`) : undefined; - }); - defineLazy(inst._zod, "values", () => { - return def.innerType._zod.values ? new Set([...def.innerType._zod.values, null]) : undefined; - }); - inst._zod.parse = (payload, ctx) => { - if (payload.value === null) - return payload; - return def.innerType._zod.run(payload, ctx); - }; -}); -var $ZodDefault = /* @__PURE__ */ $constructor("$ZodDefault", (inst, def) => { - $ZodType.init(inst, def); - inst._zod.optin = "optional"; - defineLazy(inst._zod, "values", () => def.innerType._zod.values); - inst._zod.parse = (payload, ctx) => { - if (ctx.direction === "backward") { - return def.innerType._zod.run(payload, ctx); - } - if (payload.value === undefined) { - payload.value = def.defaultValue; - return payload; - } - const result = def.innerType._zod.run(payload, ctx); - if (result instanceof Promise) { - return result.then((result2) => handleDefaultResult(result2, def)); - } - return handleDefaultResult(result, def); - }; -}); -function handleDefaultResult(payload, def) { - if (payload.value === undefined) { - payload.value = def.defaultValue; - } - return payload; -} -var $ZodPrefault = /* @__PURE__ */ $constructor("$ZodPrefault", (inst, def) => { - $ZodType.init(inst, def); - inst._zod.optin = "optional"; - defineLazy(inst._zod, "values", () => def.innerType._zod.values); - inst._zod.parse = (payload, ctx) => { - if (ctx.direction === "backward") { - return def.innerType._zod.run(payload, ctx); - } - if (payload.value === undefined) { - payload.value = def.defaultValue; - } - return def.innerType._zod.run(payload, ctx); - }; -}); -var $ZodNonOptional = /* @__PURE__ */ $constructor("$ZodNonOptional", (inst, def) => { - $ZodType.init(inst, def); - defineLazy(inst._zod, "values", () => { - const v = def.innerType._zod.values; - return v ? new Set([...v].filter((x) => x !== undefined)) : undefined; - }); - inst._zod.parse = (payload, ctx) => { - const result = def.innerType._zod.run(payload, ctx); - if (result instanceof Promise) { - return result.then((result2) => handleNonOptionalResult(result2, inst)); - } - return handleNonOptionalResult(result, inst); - }; -}); -function handleNonOptionalResult(payload, inst) { - if (!payload.issues.length && payload.value === undefined) { - payload.issues.push({ - code: "invalid_type", - expected: "nonoptional", - input: payload.value, - inst - }); - } - return payload; -} -var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => { - $ZodType.init(inst, def); - defineLazy(inst._zod, "optin", () => def.innerType._zod.optin); - defineLazy(inst._zod, "optout", () => def.innerType._zod.optout); - defineLazy(inst._zod, "values", () => def.innerType._zod.values); - inst._zod.parse = (payload, ctx) => { - if (ctx.direction === "backward") { - return def.innerType._zod.run(payload, ctx); - } - const result = def.innerType._zod.run(payload, ctx); - if (result instanceof Promise) { - return result.then((result2) => { - payload.value = result2.value; - if (result2.issues.length) { - payload.value = def.catchValue({ - ...payload, - error: { - issues: result2.issues.map((iss) => finalizeIssue(iss, ctx, config())) - }, - input: payload.value - }); - payload.issues = []; - } - return payload; - }); - } - payload.value = result.value; - if (result.issues.length) { - payload.value = def.catchValue({ - ...payload, - error: { - issues: result.issues.map((iss) => finalizeIssue(iss, ctx, config())) - }, - input: payload.value - }); - payload.issues = []; - } - return payload; - }; -}); -var $ZodPipe = /* @__PURE__ */ $constructor("$ZodPipe", (inst, def) => { - $ZodType.init(inst, def); - defineLazy(inst._zod, "values", () => def.in._zod.values); - defineLazy(inst._zod, "optin", () => def.in._zod.optin); - defineLazy(inst._zod, "optout", () => def.out._zod.optout); - defineLazy(inst._zod, "propValues", () => def.in._zod.propValues); - inst._zod.parse = (payload, ctx) => { - if (ctx.direction === "backward") { - const right = def.out._zod.run(payload, ctx); - if (right instanceof Promise) { - return right.then((right2) => handlePipeResult(right2, def.in, ctx)); - } - return handlePipeResult(right, def.in, ctx); - } - const left = def.in._zod.run(payload, ctx); - if (left instanceof Promise) { - return left.then((left2) => handlePipeResult(left2, def.out, ctx)); - } - return handlePipeResult(left, def.out, ctx); - }; -}); -function handlePipeResult(left, next, ctx) { - if (left.issues.length) { - left.aborted = true; - return left; - } - return next._zod.run({ value: left.value, issues: left.issues }, ctx); -} -var $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => { - $ZodType.init(inst, def); - defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues); - defineLazy(inst._zod, "values", () => def.innerType._zod.values); - defineLazy(inst._zod, "optin", () => def.innerType?._zod?.optin); - defineLazy(inst._zod, "optout", () => def.innerType?._zod?.optout); - inst._zod.parse = (payload, ctx) => { - if (ctx.direction === "backward") { - return def.innerType._zod.run(payload, ctx); - } - const result = def.innerType._zod.run(payload, ctx); - if (result instanceof Promise) { - return result.then(handleReadonlyResult); - } - return handleReadonlyResult(result); - }; -}); -function handleReadonlyResult(payload) { - payload.value = Object.freeze(payload.value); - return payload; -} -var $ZodCustom = /* @__PURE__ */ $constructor("$ZodCustom", (inst, def) => { - $ZodCheck.init(inst, def); - $ZodType.init(inst, def); - inst._zod.parse = (payload, _) => { - return payload; - }; - inst._zod.check = (payload) => { - const input = payload.value; - const r = def.fn(input); - if (r instanceof Promise) { - return r.then((r2) => handleRefineResult(r2, payload, input, inst)); - } - handleRefineResult(r, payload, input, inst); - return; - }; -}); -function handleRefineResult(result, payload, input, inst) { - if (!result) { - const _iss = { - code: "custom", - input, - inst, - path: [...inst._zod.def.path ?? []], - continue: !inst._zod.def.abort - }; - if (inst._zod.def.params) - _iss.params = inst._zod.def.params; - payload.issues.push(issue(_iss)); - } -} -// node_modules/zod/v4/locales/en.js -var error = () => { - const Sizable = { - string: { unit: "characters", verb: "to have" }, - file: { unit: "bytes", verb: "to have" }, - array: { unit: "items", verb: "to have" }, - set: { unit: "items", verb: "to have" }, - map: { unit: "entries", verb: "to have" } - }; - function getSizing(origin) { - return Sizable[origin] ?? null; - } - const FormatDictionary = { - regex: "input", - email: "email address", - url: "URL", - emoji: "emoji", - uuid: "UUID", - uuidv4: "UUIDv4", - uuidv6: "UUIDv6", - nanoid: "nanoid", - guid: "GUID", - cuid: "cuid", - cuid2: "cuid2", - ulid: "ULID", - xid: "XID", - ksuid: "KSUID", - datetime: "ISO datetime", - date: "ISO date", - time: "ISO time", - duration: "ISO duration", - ipv4: "IPv4 address", - ipv6: "IPv6 address", - mac: "MAC address", - cidrv4: "IPv4 range", - cidrv6: "IPv6 range", - base64: "base64-encoded string", - base64url: "base64url-encoded string", - json_string: "JSON string", - e164: "E.164 number", - jwt: "JWT", - template_literal: "input" - }; - const TypeDictionary = { - nan: "NaN" - }; - return (issue2) => { - switch (issue2.code) { - case "invalid_type": { - const expected = TypeDictionary[issue2.expected] ?? issue2.expected; - const receivedType = parsedType(issue2.input); - const received = TypeDictionary[receivedType] ?? receivedType; - return `Invalid input: expected ${expected}, received ${received}`; - } - case "invalid_value": - if (issue2.values.length === 1) - return `Invalid input: expected ${stringifyPrimitive(issue2.values[0])}`; - return `Invalid option: expected one of ${joinValues(issue2.values, "|")}`; - case "too_big": { - const adj = issue2.inclusive ? "<=" : "<"; - const sizing = getSizing(issue2.origin); - if (sizing) - return `Too big: expected ${issue2.origin ?? "value"} to have ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elements"}`; - return `Too big: expected ${issue2.origin ?? "value"} to be ${adj}${issue2.maximum.toString()}`; - } - case "too_small": { - const adj = issue2.inclusive ? ">=" : ">"; - const sizing = getSizing(issue2.origin); - if (sizing) { - return `Too small: expected ${issue2.origin} to have ${adj}${issue2.minimum.toString()} ${sizing.unit}`; - } - return `Too small: expected ${issue2.origin} to be ${adj}${issue2.minimum.toString()}`; - } - case "invalid_format": { - const _issue = issue2; - if (_issue.format === "starts_with") { - return `Invalid string: must start with "${_issue.prefix}"`; - } - if (_issue.format === "ends_with") - return `Invalid string: must end with "${_issue.suffix}"`; - if (_issue.format === "includes") - return `Invalid string: must include "${_issue.includes}"`; - if (_issue.format === "regex") - return `Invalid string: must match pattern ${_issue.pattern}`; - return `Invalid ${FormatDictionary[_issue.format] ?? issue2.format}`; - } - case "not_multiple_of": - return `Invalid number: must be a multiple of ${issue2.divisor}`; - case "unrecognized_keys": - return `Unrecognized key${issue2.keys.length > 1 ? "s" : ""}: ${joinValues(issue2.keys, ", ")}`; - case "invalid_key": - return `Invalid key in ${issue2.origin}`; - case "invalid_union": - return "Invalid input"; - case "invalid_element": - return `Invalid value in ${issue2.origin}`; - default: - return `Invalid input`; - } - }; -}; -function en_default() { - return { - localeError: error() - }; -} -// node_modules/zod/v4/core/registries.js -var _a; -var $output = Symbol("ZodOutput"); -var $input = Symbol("ZodInput"); + `)}m.write("payload.value = newResult;"),m.write("return payload;");let x=m.compile();return(b,_)=>x(p,b,_)},s,o=Ys,a=!Rp.jitless,u=a&&Mv.value,l=e.catchall,d;t._zod.parse=(p,m)=>{d??(d=n.value);let f=p.value;return o(f)?a&&u&&m?.async===!1&&m.jitless!==!0?(s||(s=i(e.shape)),p=s(p,m),l?sI([],f,p,m,d,t):p):r(p,m):(p.issues.push({expected:"object",code:"invalid_type",input:f,inst:t}),p)}});function GT(t,e,r,n){for(let s of t)if(s.issues.length===0)return e.value=s.value,e;let i=t.filter(s=>!bs(s));return i.length===1?(e.value=i[0].value,i[0]):(e.issues.push({code:"invalid_union",input:e.value,inst:r,errors:t.map(s=>s.issues.map(o=>Kr(o,n,tr())))}),e)}var ju=O("$ZodUnion",(t,e)=>{Oe.init(t,e),Me(t._zod,"optin",()=>e.options.some(i=>i._zod.optin==="optional")?"optional":void 0),Me(t._zod,"optout",()=>e.options.some(i=>i._zod.optout==="optional")?"optional":void 0),Me(t._zod,"values",()=>{if(e.options.every(i=>i._zod.values))return new Set(e.options.flatMap(i=>Array.from(i._zod.values)))}),Me(t._zod,"pattern",()=>{if(e.options.every(i=>i._zod.pattern)){let i=e.options.map(s=>s._zod.pattern);return new RegExp(`^(${i.map(s=>xu(s.source)).join("|")})$`)}});let r=e.options.length===1,n=e.options[0]._zod.run;t._zod.parse=(i,s)=>{if(r)return n(i,s);let o=!1,a=[];for(let c of e.options){let u=c._zod.run({value:i.value,issues:[]},s);if(u instanceof Promise)a.push(u),o=!0;else{if(u.issues.length===0)return u;a.push(u)}}return o?Promise.all(a).then(c=>GT(c,i,t,s)):GT(a,i,t,s)}});function WT(t,e,r,n){let i=t.filter(s=>s.issues.length===0);return i.length===1?(e.value=i[0].value,e):(i.length===0?e.issues.push({code:"invalid_union",input:e.value,inst:r,errors:t.map(s=>s.issues.map(o=>Kr(o,n,tr())))}):e.issues.push({code:"invalid_union",input:e.value,inst:r,errors:[],inclusive:!1}),e)}var e_=O("$ZodXor",(t,e)=>{ju.init(t,e),e.inclusive=!1;let r=e.options.length===1,n=e.options[0]._zod.run;t._zod.parse=(i,s)=>{if(r)return n(i,s);let o=!1,a=[];for(let c of e.options){let u=c._zod.run({value:i.value,issues:[]},s);u instanceof Promise?(a.push(u),o=!0):a.push(u)}return o?Promise.all(a).then(c=>WT(c,i,t,s)):WT(a,i,t,s)}}),t_=O("$ZodDiscriminatedUnion",(t,e)=>{e.inclusive=!1,ju.init(t,e);let r=t._zod.parse;Me(t._zod,"propValues",()=>{let i={};for(let s of e.options){let o=s._zod.propValues;if(!o||Object.keys(o).length===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(s)}"`);for(let[a,c]of Object.entries(o)){i[a]||(i[a]=new Set);for(let u of c)i[a].add(u)}}return i});let n=fa(()=>{let i=e.options,s=new Map;for(let o of i){let a=o._zod.propValues?.[e.discriminator];if(!a||a.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(o)}"`);for(let c of a){if(s.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);s.set(c,o)}}return s});t._zod.parse=(i,s)=>{let o=i.value;if(!Ys(o))return i.issues.push({code:"invalid_type",expected:"object",input:o,inst:t}),i;let a=n.value.get(o?.[e.discriminator]);return a?a._zod.run(i,s):e.unionFallback?r(i,s):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:e.discriminator,input:o,path:[e.discriminator],inst:t}),i)}}),r_=O("$ZodIntersection",(t,e)=>{Oe.init(t,e),t._zod.parse=(r,n)=>{let i=r.value,s=e.left._zod.run({value:i,issues:[]},n),o=e.right._zod.run({value:i,issues:[]},n);return s instanceof Promise||o instanceof Promise?Promise.all([s,o]).then(([c,u])=>KT(r,c,u)):KT(r,s,o)}});function vy(t,e){if(t===e)return{valid:!0,data:t};if(t instanceof Date&&e instanceof Date&&+t==+e)return{valid:!0,data:t};if(_s(t)&&_s(e)){let r=Object.keys(e),n=Object.keys(t).filter(s=>r.indexOf(s)!==-1),i={...t,...e};for(let s of n){let o=vy(t[s],e[s]);if(!o.valid)return{valid:!1,mergeErrorPath:[s,...o.mergeErrorPath]};i[s]=o.data}return{valid:!0,data:i}}if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let n=0;na.l&&a.r).map(([a])=>a);if(s.length&&i&&t.issues.push({...i,keys:s}),bs(t))return t;let o=vy(e.value,r.value);if(!o.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return t.value=o.data,t}var Bp=O("$ZodTuple",(t,e)=>{Oe.init(t,e);let r=e.items;t._zod.parse=(n,i)=>{let s=n.value;if(!Array.isArray(s))return n.issues.push({input:s,inst:t,expected:"tuple",code:"invalid_type"}),n;n.value=[];let o=[],a=[...r].reverse().findIndex(l=>l._zod.optin!=="optional"),c=a===-1?0:r.length-a;if(!e.rest){let l=s.length>r.length,d=s.length=s.length&&u>=c)continue;let d=l._zod.run({value:s[u],issues:[]},i);d instanceof Promise?o.push(d.then(p=>zp(p,n,u))):zp(d,n,u)}if(e.rest){let l=s.slice(r.length);for(let d of l){u++;let p=e.rest._zod.run({value:d,issues:[]},i);p instanceof Promise?o.push(p.then(m=>zp(m,n,u))):zp(p,n,u)}}return o.length?Promise.all(o).then(()=>n):n}});function zp(t,e,r){t.issues.length&&e.issues.push(...mn(r,t.issues)),e.value[r]=t.value}var n_=O("$ZodRecord",(t,e)=>{Oe.init(t,e),t._zod.parse=(r,n)=>{let i=r.value;if(!_s(i))return r.issues.push({expected:"record",code:"invalid_type",input:i,inst:t}),r;let s=[],o=e.keyType._zod.values;if(o){r.value={};let a=new Set;for(let u of o)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){a.add(typeof u=="number"?u.toString():u);let l=e.valueType._zod.run({value:i[u],issues:[]},n);l instanceof Promise?s.push(l.then(d=>{d.issues.length&&r.issues.push(...mn(u,d.issues)),r.value[u]=d.value})):(l.issues.length&&r.issues.push(...mn(u,l.issues)),r.value[u]=l.value)}let c;for(let u in i)a.has(u)||(c=c??[],c.push(u));c&&c.length>0&&r.issues.push({code:"unrecognized_keys",input:i,inst:t,keys:c})}else{r.value={};for(let a of Reflect.ownKeys(i)){if(a==="__proto__")continue;let c=e.keyType._zod.run({value:a,issues:[]},n);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof a=="string"&&Dp.test(a)&&c.issues.length){let d=e.keyType._zod.run({value:Number(a),issues:[]},n);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");d.issues.length===0&&(c=d)}if(c.issues.length){e.mode==="loose"?r.value[a]=i[a]:r.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(d=>Kr(d,n,tr())),input:a,path:[a],inst:t});continue}let l=e.valueType._zod.run({value:i[a],issues:[]},n);l instanceof Promise?s.push(l.then(d=>{d.issues.length&&r.issues.push(...mn(a,d.issues)),r.value[c.value]=d.value})):(l.issues.length&&r.issues.push(...mn(a,l.issues)),r.value[c.value]=l.value)}}return s.length?Promise.all(s).then(()=>r):r}}),i_=O("$ZodMap",(t,e)=>{Oe.init(t,e),t._zod.parse=(r,n)=>{let i=r.value;if(!(i instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:i,inst:t}),r;let s=[];r.value=new Map;for(let[o,a]of i){let c=e.keyType._zod.run({value:o,issues:[]},n),u=e.valueType._zod.run({value:a,issues:[]},n);c instanceof Promise||u instanceof Promise?s.push(Promise.all([c,u]).then(([l,d])=>{JT(l,d,r,o,i,t,n)})):JT(c,u,r,o,i,t,n)}return s.length?Promise.all(s).then(()=>r):r}});function JT(t,e,r,n,i,s,o){t.issues.length&&(Su.has(typeof n)?r.issues.push(...mn(n,t.issues)):r.issues.push({code:"invalid_key",origin:"map",input:i,inst:s,issues:t.issues.map(a=>Kr(a,o,tr()))})),e.issues.length&&(Su.has(typeof n)?r.issues.push(...mn(n,e.issues)):r.issues.push({origin:"map",code:"invalid_element",input:i,inst:s,key:n,issues:e.issues.map(a=>Kr(a,o,tr()))})),r.value.set(t.value,e.value)}var s_=O("$ZodSet",(t,e)=>{Oe.init(t,e),t._zod.parse=(r,n)=>{let i=r.value;if(!(i instanceof Set))return r.issues.push({input:i,inst:t,expected:"set",code:"invalid_type"}),r;let s=[];r.value=new Set;for(let o of i){let a=e.valueType._zod.run({value:o,issues:[]},n);a instanceof Promise?s.push(a.then(c=>XT(c,r))):XT(a,r)}return s.length?Promise.all(s).then(()=>r):r}});function XT(t,e){t.issues.length&&e.issues.push(...t.issues),e.value.add(t.value)}var o_=O("$ZodEnum",(t,e)=>{Oe.init(t,e);let r=bu(e.entries),n=new Set(r);t._zod.values=n,t._zod.pattern=new RegExp(`^(${r.filter(i=>Su.has(typeof i)).map(i=>typeof i=="string"?En(i):i.toString()).join("|")})$`),t._zod.parse=(i,s)=>{let o=i.value;return n.has(o)||i.issues.push({code:"invalid_value",values:r,input:o,inst:t}),i}}),a_=O("$ZodLiteral",(t,e)=>{if(Oe.init(t,e),e.values.length===0)throw new Error("Cannot create literal schema with no valid values");let r=new Set(e.values);t._zod.values=r,t._zod.pattern=new RegExp(`^(${e.values.map(n=>typeof n=="string"?En(n):n?En(n.toString()):String(n)).join("|")})$`),t._zod.parse=(n,i)=>{let s=n.value;return r.has(s)||n.issues.push({code:"invalid_value",values:e.values,input:s,inst:t}),n}}),c_=O("$ZodFile",(t,e)=>{Oe.init(t,e),t._zod.parse=(r,n)=>{let i=r.value;return i instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:i,inst:t}),r}}),u_=O("$ZodTransform",(t,e)=>{Oe.init(t,e),t._zod.parse=(r,n)=>{if(n.direction==="backward")throw new Xs(t.constructor.name);let i=e.transform(r.value,r);if(n.async)return(i instanceof Promise?i:Promise.resolve(i)).then(o=>(r.value=o,r));if(i instanceof Promise)throw new ci;return r.value=i,r}});function YT(t,e){return t.issues.length&&e===void 0?{issues:[],value:void 0}:t}var Vp=O("$ZodOptional",(t,e)=>{Oe.init(t,e),t._zod.optin="optional",t._zod.optout="optional",Me(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,void 0]):void 0),Me(t._zod,"pattern",()=>{let r=e.innerType._zod.pattern;return r?new RegExp(`^(${xu(r.source)})?$`):void 0}),t._zod.parse=(r,n)=>{if(e.innerType._zod.optin==="optional"){let i=e.innerType._zod.run(r,n);return i instanceof Promise?i.then(s=>YT(s,r.value)):YT(i,r.value)}return r.value===void 0?r:e.innerType._zod.run(r,n)}}),l_=O("$ZodExactOptional",(t,e)=>{Vp.init(t,e),Me(t._zod,"values",()=>e.innerType._zod.values),Me(t._zod,"pattern",()=>e.innerType._zod.pattern),t._zod.parse=(r,n)=>e.innerType._zod.run(r,n)}),d_=O("$ZodNullable",(t,e)=>{Oe.init(t,e),Me(t._zod,"optin",()=>e.innerType._zod.optin),Me(t._zod,"optout",()=>e.innerType._zod.optout),Me(t._zod,"pattern",()=>{let r=e.innerType._zod.pattern;return r?new RegExp(`^(${xu(r.source)}|null)$`):void 0}),Me(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,null]):void 0),t._zod.parse=(r,n)=>r.value===null?r:e.innerType._zod.run(r,n)}),p_=O("$ZodDefault",(t,e)=>{Oe.init(t,e),t._zod.optin="optional",Me(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(r,n)=>{if(n.direction==="backward")return e.innerType._zod.run(r,n);if(r.value===void 0)return r.value=e.defaultValue,r;let i=e.innerType._zod.run(r,n);return i instanceof Promise?i.then(s=>QT(s,e)):QT(i,e)}});function QT(t,e){return t.value===void 0&&(t.value=e.defaultValue),t}var m_=O("$ZodPrefault",(t,e)=>{Oe.init(t,e),t._zod.optin="optional",Me(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(r,n)=>(n.direction==="backward"||r.value===void 0&&(r.value=e.defaultValue),e.innerType._zod.run(r,n))}),f_=O("$ZodNonOptional",(t,e)=>{Oe.init(t,e),Me(t._zod,"values",()=>{let r=e.innerType._zod.values;return r?new Set([...r].filter(n=>n!==void 0)):void 0}),t._zod.parse=(r,n)=>{let i=e.innerType._zod.run(r,n);return i instanceof Promise?i.then(s=>eI(s,t)):eI(i,t)}});function eI(t,e){return!t.issues.length&&t.value===void 0&&t.issues.push({code:"invalid_type",expected:"nonoptional",input:t.value,inst:e}),t}var h_=O("$ZodSuccess",(t,e)=>{Oe.init(t,e),t._zod.parse=(r,n)=>{if(n.direction==="backward")throw new Xs("ZodSuccess");let i=e.innerType._zod.run(r,n);return i instanceof Promise?i.then(s=>(r.value=s.issues.length===0,r)):(r.value=i.issues.length===0,r)}}),g_=O("$ZodCatch",(t,e)=>{Oe.init(t,e),Me(t._zod,"optin",()=>e.innerType._zod.optin),Me(t._zod,"optout",()=>e.innerType._zod.optout),Me(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(r,n)=>{if(n.direction==="backward")return e.innerType._zod.run(r,n);let i=e.innerType._zod.run(r,n);return i instanceof Promise?i.then(s=>(r.value=s.value,s.issues.length&&(r.value=e.catchValue({...r,error:{issues:s.issues.map(o=>Kr(o,n,tr()))},input:r.value}),r.issues=[]),r)):(r.value=i.value,i.issues.length&&(r.value=e.catchValue({...r,error:{issues:i.issues.map(s=>Kr(s,n,tr()))},input:r.value}),r.issues=[]),r)}}),v_=O("$ZodNaN",(t,e)=>{Oe.init(t,e),t._zod.parse=(r,n)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:t,expected:"nan",code:"invalid_type"}),r)}),y_=O("$ZodPipe",(t,e)=>{Oe.init(t,e),Me(t._zod,"values",()=>e.in._zod.values),Me(t._zod,"optin",()=>e.in._zod.optin),Me(t._zod,"optout",()=>e.out._zod.optout),Me(t._zod,"propValues",()=>e.in._zod.propValues),t._zod.parse=(r,n)=>{if(n.direction==="backward"){let s=e.out._zod.run(r,n);return s instanceof Promise?s.then(o=>Lp(o,e.in,n)):Lp(s,e.in,n)}let i=e.in._zod.run(r,n);return i instanceof Promise?i.then(s=>Lp(s,e.out,n)):Lp(i,e.out,n)}});function Lp(t,e,r){return t.issues.length?(t.aborted=!0,t):e._zod.run({value:t.value,issues:t.issues},r)}var zu=O("$ZodCodec",(t,e)=>{Oe.init(t,e),Me(t._zod,"values",()=>e.in._zod.values),Me(t._zod,"optin",()=>e.in._zod.optin),Me(t._zod,"optout",()=>e.out._zod.optout),Me(t._zod,"propValues",()=>e.in._zod.propValues),t._zod.parse=(r,n)=>{if((n.direction||"forward")==="forward"){let s=e.in._zod.run(r,n);return s instanceof Promise?s.then(o=>Up(o,e,n)):Up(s,e,n)}else{let s=e.out._zod.run(r,n);return s instanceof Promise?s.then(o=>Up(o,e,n)):Up(s,e,n)}}});function Up(t,e,r){if(t.issues.length)return t.aborted=!0,t;if((r.direction||"forward")==="forward"){let i=e.transform(t.value,t);return i instanceof Promise?i.then(s=>qp(t,s,e.out,r)):qp(t,i,e.out,r)}else{let i=e.reverseTransform(t.value,t);return i instanceof Promise?i.then(s=>qp(t,s,e.in,r)):qp(t,i,e.in,r)}}function qp(t,e,r,n){return t.issues.length?(t.aborted=!0,t):r._zod.run({value:e,issues:t.issues},n)}var __=O("$ZodReadonly",(t,e)=>{Oe.init(t,e),Me(t._zod,"propValues",()=>e.innerType._zod.propValues),Me(t._zod,"values",()=>e.innerType._zod.values),Me(t._zod,"optin",()=>e.innerType?._zod?.optin),Me(t._zod,"optout",()=>e.innerType?._zod?.optout),t._zod.parse=(r,n)=>{if(n.direction==="backward")return e.innerType._zod.run(r,n);let i=e.innerType._zod.run(r,n);return i instanceof Promise?i.then(tI):tI(i)}});function tI(t){return t.value=Object.freeze(t.value),t}var b_=O("$ZodTemplateLiteral",(t,e)=>{Oe.init(t,e);let r=[];for(let n of e.parts)if(typeof n=="object"&&n!==null){if(!n._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...n._zod.traits].shift()}`);let i=n._zod.pattern instanceof RegExp?n._zod.pattern.source:n._zod.pattern;if(!i)throw new Error(`Invalid template literal part: ${n._zod.traits}`);let s=i.startsWith("^")?1:0,o=i.endsWith("$")?i.length-1:i.length;r.push(i.slice(s,o))}else if(n===null||jv.has(typeof n))r.push(En(`${n}`));else throw new Error(`Invalid template literal part: ${n}`);t._zod.pattern=new RegExp(`^${r.join("")}$`),t._zod.parse=(n,i)=>typeof n.value!="string"?(n.issues.push({input:n.value,inst:t,expected:"string",code:"invalid_type"}),n):(t._zod.pattern.lastIndex=0,t._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:t,code:"invalid_format",format:e.format??"template_literal",pattern:t._zod.pattern.source}),n)}),x_=O("$ZodFunction",(t,e)=>(Oe.init(t,e),t._def=e,t._zod.def=e,t.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return function(...n){let i=t._def.input?Tu(t._def.input,n):n,s=Reflect.apply(r,this,i);return t._def.output?Tu(t._def.output,s):s}},t.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...n){let i=t._def.input?await Ru(t._def.input,n):n,s=await Reflect.apply(r,this,i);return t._def.output?await Ru(t._def.output,s):s}},t._zod.parse=(r,n)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:t}),r):(t._def.output&&t._def.output._zod.def.type==="promise"?r.value=t.implementAsync(r.value):r.value=t.implement(r.value),r),t.input=(...r)=>{let n=t.constructor;return Array.isArray(r[0])?new n({type:"function",input:new Bp({type:"tuple",items:r[0],rest:r[1]}),output:t._def.output}):new n({type:"function",input:r[0],output:t._def.output})},t.output=r=>{let n=t.constructor;return new n({type:"function",input:t._def.input,output:r})},t)),S_=O("$ZodPromise",(t,e)=>{Oe.init(t,e),t._zod.parse=(r,n)=>Promise.resolve(r.value).then(i=>e.innerType._zod.run({value:i,issues:[]},n))}),w_=O("$ZodLazy",(t,e)=>{Oe.init(t,e),Me(t._zod,"innerType",()=>e.getter()),Me(t._zod,"pattern",()=>t._zod.innerType?._zod?.pattern),Me(t._zod,"propValues",()=>t._zod.innerType?._zod?.propValues),Me(t._zod,"optin",()=>t._zod.innerType?._zod?.optin??void 0),Me(t._zod,"optout",()=>t._zod.innerType?._zod?.optout??void 0),t._zod.parse=(r,n)=>t._zod.innerType._zod.run(r,n)}),E_=O("$ZodCustom",(t,e)=>{_t.init(t,e),Oe.init(t,e),t._zod.parse=(r,n)=>r,t._zod.check=r=>{let n=r.value,i=e.fn(n);if(i instanceof Promise)return i.then(s=>rI(s,r,n,t));rI(i,r,n,t)}});function rI(t,e,r,n){if(!t){let i={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(i.params=n._zod.def.params),e.issues.push(ha(i))}}var S8=()=>{let t={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function e(i){return t[i]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},n={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let s=n[i.expected]??i.expected,o=Ee(i.input),a=n[o]??o;return`Invalid input: expected ${s}, received ${a}`}case"invalid_value":return i.values.length===1?`Invalid input: expected ${xe(i.values[0])}`:`Invalid option: expected one of ${be(i.values,"|")}`;case"too_big":{let s=i.inclusive?"<=":"<",o=e(i.origin);return o?`Too big: expected ${i.origin??"value"} to have ${s}${i.maximum.toString()} ${o.unit??"elements"}`:`Too big: expected ${i.origin??"value"} to be ${s}${i.maximum.toString()}`}case"too_small":{let s=i.inclusive?">=":">",o=e(i.origin);return o?`Too small: expected ${i.origin} to have ${s}${i.minimum.toString()} ${o.unit}`:`Too small: expected ${i.origin} to be ${s}${i.minimum.toString()}`}case"invalid_format":{let s=i;return s.format==="starts_with"?`Invalid string: must start with "${s.prefix}"`:s.format==="ends_with"?`Invalid string: must end with "${s.suffix}"`:s.format==="includes"?`Invalid string: must include "${s.includes}"`:s.format==="regex"?`Invalid string: must match pattern ${s.pattern}`:`Invalid ${r[s.format]??i.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${i.divisor}`;case"unrecognized_keys":return`Unrecognized key${i.keys.length>1?"s":""}: ${be(i.keys,", ")}`;case"invalid_key":return`Invalid key in ${i.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${i.origin}`;default:return"Invalid input"}}};function k_(){return{localeError:S8()}}var cI;var T_=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...r){let n=r[0];return this._map.set(e,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let r=this._map.get(e);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(e),this}get(e){let r=e._zod.parent;if(r){let n={...this.get(r)??{}};delete n.id;let i={...n,...this._map.get(e)};return Object.keys(i).length?i:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function I_(){return new T_}(cI=globalThis).__zod_globalRegistry??(cI.__zod_globalRegistry=I_());var jr=globalThis.__zod_globalRegistry;function R_(t,e){return new t({type:"string",...ee(e)})}function Gp(t,e){return new t({type:"string",format:"email",check:"string_format",abort:!1,...ee(e)})}function Lu(t,e){return new t({type:"string",format:"guid",check:"string_format",abort:!1,...ee(e)})}function Wp(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,...ee(e)})}function Kp(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...ee(e)})}function Jp(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...ee(e)})}function Xp(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...ee(e)})}function Uu(t,e){return new t({type:"string",format:"url",check:"string_format",abort:!1,...ee(e)})}function Yp(t,e){return new t({type:"string",format:"emoji",check:"string_format",abort:!1,...ee(e)})}function Qp(t,e){return new t({type:"string",format:"nanoid",check:"string_format",abort:!1,...ee(e)})}function em(t,e){return new t({type:"string",format:"cuid",check:"string_format",abort:!1,...ee(e)})}function tm(t,e){return new t({type:"string",format:"cuid2",check:"string_format",abort:!1,...ee(e)})}function rm(t,e){return new t({type:"string",format:"ulid",check:"string_format",abort:!1,...ee(e)})}function nm(t,e){return new t({type:"string",format:"xid",check:"string_format",abort:!1,...ee(e)})}function im(t,e){return new t({type:"string",format:"ksuid",check:"string_format",abort:!1,...ee(e)})}function sm(t,e){return new t({type:"string",format:"ipv4",check:"string_format",abort:!1,...ee(e)})}function om(t,e){return new t({type:"string",format:"ipv6",check:"string_format",abort:!1,...ee(e)})}function O_(t,e){return new t({type:"string",format:"mac",check:"string_format",abort:!1,...ee(e)})}function am(t,e){return new t({type:"string",format:"cidrv4",check:"string_format",abort:!1,...ee(e)})}function cm(t,e){return new t({type:"string",format:"cidrv6",check:"string_format",abort:!1,...ee(e)})}function um(t,e){return new t({type:"string",format:"base64",check:"string_format",abort:!1,...ee(e)})}function lm(t,e){return new t({type:"string",format:"base64url",check:"string_format",abort:!1,...ee(e)})}function dm(t,e){return new t({type:"string",format:"e164",check:"string_format",abort:!1,...ee(e)})}function pm(t,e){return new t({type:"string",format:"jwt",check:"string_format",abort:!1,...ee(e)})}function P_(t,e){return new t({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...ee(e)})}function C_(t,e){return new t({type:"string",format:"date",check:"string_format",...ee(e)})}function A_(t,e){return new t({type:"string",format:"time",check:"string_format",precision:null,...ee(e)})}function N_(t,e){return new t({type:"string",format:"duration",check:"string_format",...ee(e)})}function M_(t,e){return new t({type:"number",checks:[],...ee(e)})}function D_(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"safeint",...ee(e)})}function j_(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"float32",...ee(e)})}function z_(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"float64",...ee(e)})}function L_(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"int32",...ee(e)})}function U_(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"uint32",...ee(e)})}function q_(t,e){return new t({type:"boolean",...ee(e)})}function F_(t,e){return new t({type:"bigint",...ee(e)})}function H_(t,e){return new t({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...ee(e)})}function Z_(t,e){return new t({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...ee(e)})}function B_(t,e){return new t({type:"symbol",...ee(e)})}function V_(t,e){return new t({type:"undefined",...ee(e)})}function G_(t,e){return new t({type:"null",...ee(e)})}function W_(t){return new t({type:"any"})}function K_(t){return new t({type:"unknown"})}function J_(t,e){return new t({type:"never",...ee(e)})}function X_(t,e){return new t({type:"void",...ee(e)})}function Y_(t,e){return new t({type:"date",...ee(e)})}function Q_(t,e){return new t({type:"nan",...ee(e)})}function ji(t,e){return new hy({check:"less_than",...ee(e),value:t,inclusive:!1})}function fn(t,e){return new hy({check:"less_than",...ee(e),value:t,inclusive:!0})}function zi(t,e){return new gy({check:"greater_than",...ee(e),value:t,inclusive:!1})}function zr(t,e){return new gy({check:"greater_than",...ee(e),value:t,inclusive:!0})}function eb(t){return zi(0,t)}function tb(t){return ji(0,t)}function rb(t){return fn(0,t)}function nb(t){return zr(0,t)}function to(t,e){return new $T({check:"multiple_of",...ee(e),value:t})}function ro(t,e){return new RT({check:"max_size",...ee(e),maximum:t})}function Li(t,e){return new OT({check:"min_size",...ee(e),minimum:t})}function va(t,e){return new PT({check:"size_equals",...ee(e),size:t})}function ya(t,e){return new CT({check:"max_length",...ee(e),maximum:t})}function xs(t,e){return new AT({check:"min_length",...ee(e),minimum:t})}function _a(t,e){return new NT({check:"length_equals",...ee(e),length:t})}function qu(t,e){return new MT({check:"string_format",format:"regex",...ee(e),pattern:t})}function Fu(t){return new DT({check:"string_format",format:"lowercase",...ee(t)})}function Hu(t){return new jT({check:"string_format",format:"uppercase",...ee(t)})}function Zu(t,e){return new zT({check:"string_format",format:"includes",...ee(e),includes:t})}function Bu(t,e){return new LT({check:"string_format",format:"starts_with",...ee(e),prefix:t})}function Vu(t,e){return new UT({check:"string_format",format:"ends_with",...ee(e),suffix:t})}function ib(t,e,r){return new qT({check:"property",property:t,schema:e,...ee(r)})}function Gu(t,e){return new FT({check:"mime_type",mime:t,...ee(e)})}function ui(t){return new HT({check:"overwrite",tx:t})}function Wu(t){return ui(e=>e.normalize(t))}function Ku(){return ui(t=>t.trim())}function Ju(){return ui(t=>t.toLowerCase())}function Xu(){return ui(t=>t.toUpperCase())}function mm(){return ui(t=>Nv(t))}function uI(t,e,r){return new t({type:"array",element:e,...ee(r)})}function sb(t,e){return new t({type:"file",...ee(e)})}function ob(t,e,r){let n=ee(r);return n.abort??(n.abort=!0),new t({type:"custom",check:"custom",fn:e,...n})}function ab(t,e,r){return new t({type:"custom",check:"custom",fn:e,...ee(r)})}function cb(t){let e=$8(r=>(r.addIssue=n=>{if(typeof n=="string")r.issues.push(ha(n,r.value,e._zod.def));else{let i=n;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=r.value),i.inst??(i.inst=e),i.continue??(i.continue=!e._zod.def.abort),r.issues.push(ha(i))}},t(r.value,r)));return e}function $8(t,e){let r=new _t({check:"custom",...ee(e)});return r._zod.check=t,r}function ub(t){let e=new _t({check:"describe"});return e._zod.onattach=[r=>{let n=jr.get(r)??{};jr.add(r,{...n,description:t})}],e._zod.check=()=>{},e}function lb(t){let e=new _t({check:"meta"});return e._zod.onattach=[r=>{let n=jr.get(r)??{};jr.add(r,{...n,...t})}],e._zod.check=()=>{},e}function db(t,e){let r=ee(e),n=r.truthy??["true","1","yes","on","y","enabled"],i=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(n=n.map(m=>typeof m=="string"?m.toLowerCase():m),i=i.map(m=>typeof m=="string"?m.toLowerCase():m));let s=new Set(n),o=new Set(i),a=t.Codec??zu,c=t.Boolean??Du,u=t.String??eo,l=new u({type:"string",error:r.error}),d=new c({type:"boolean",error:r.error}),p=new a({type:"pipe",in:l,out:d,transform:((m,f)=>{let g=m;return r.case!=="sensitive"&&(g=g.toLowerCase()),s.has(g)?!0:o.has(g)?!1:(f.issues.push({code:"invalid_value",expected:"stringbool",values:[...s,...o],input:f.value,inst:p,continue:!1}),{})}),reverseTransform:((m,f)=>m===!0?n[0]||"true":i[0]||"false"),error:r.error});return p}function ba(t,e,r,n={}){let i=ee(n),s={...ee(n),check:"string_format",type:"string",format:e,fn:typeof r=="function"?r:a=>r.test(a),...i};return r instanceof RegExp&&(s.pattern=r),new t(s)}function fm(t){let e=t?.target??"draft-2020-12";return e==="draft-4"&&(e="draft-04"),e==="draft-7"&&(e="draft-07"),{processors:t.processors??{},metadataRegistry:t?.metadata??jr,target:e,unrepresentable:t?.unrepresentable??"throw",override:t?.override??(()=>{}),io:t?.io??"output",counter:0,seen:new Map,cycles:t?.cycles??"ref",reused:t?.reused??"inline",external:t?.external??void 0}}function $t(t,e,r={path:[],schemaPath:[]}){var n;let i=t._zod.def,s=e.seen.get(t);if(s)return s.count++,r.schemaPath.includes(t)&&(s.cycle=r.path),s.schema;let o={schema:{},count:1,cycle:void 0,path:r.path};e.seen.set(t,o);let a=t._zod.toJSONSchema?.();if(a)o.schema=a;else{let l={...r,schemaPath:[...r.schemaPath,t],path:r.path};if(t._zod.processJSONSchema)t._zod.processJSONSchema(e,o.schema,l);else{let p=o.schema,m=e.processors[i.type];if(!m)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);m(t,e,p,l)}let d=t._zod.parent;d&&(o.ref||(o.ref=d),$t(d,e,l),e.seen.get(d).isParent=!0)}let c=e.metadataRegistry.get(t);return c&&Object.assign(o.schema,c),e.io==="input"&&Lr(t)&&(delete o.schema.examples,delete o.schema.default),e.io==="input"&&o.schema._prefault&&((n=o.schema).default??(n.default=o.schema._prefault)),delete o.schema._prefault,e.seen.get(t).schema}function hm(t,e){let r=t.seen.get(e);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=new Map;for(let o of t.seen.entries()){let a=t.metadataRegistry.get(o[0])?.id;if(a){let c=n.get(a);if(c&&c!==o[0])throw new Error(`Duplicate schema id "${a}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);n.set(a,o[0])}}let i=o=>{let a=t.target==="draft-2020-12"?"$defs":"definitions";if(t.external){let d=t.external.registry.get(o[0])?.id,p=t.external.uri??(f=>f);if(d)return{ref:p(d)};let m=o[1].defId??o[1].schema.id??`schema${t.counter++}`;return o[1].defId=m,{defId:m,ref:`${p("__shared")}#/${a}/${m}`}}if(o[1]===r)return{ref:"#"};let u=`#/${a}/`,l=o[1].schema.id??`__schema${t.counter++}`;return{defId:l,ref:u+l}},s=o=>{if(o[1].schema.$ref)return;let a=o[1],{ref:c,defId:u}=i(o);a.def={...a.schema},u&&(a.defId=u);let l=a.schema;for(let d in l)delete l[d];l.$ref=c};if(t.cycles==="throw")for(let o of t.seen.entries()){let a=o[1];if(a.cycle)throw new Error(`Cycle detected: #/${a.cycle?.join("/")}/ -class $ZodRegistry { - constructor() { - this._map = new WeakMap; - this._idmap = new Map; - } - add(schema, ..._meta) { - const meta = _meta[0]; - this._map.set(schema, meta); - if (meta && typeof meta === "object" && "id" in meta) { - this._idmap.set(meta.id, schema); - } - return this; - } - clear() { - this._map = new WeakMap; - this._idmap = new Map; - return this; - } - remove(schema) { - const meta = this._map.get(schema); - if (meta && typeof meta === "object" && "id" in meta) { - this._idmap.delete(meta.id); - } - this._map.delete(schema); - return this; - } - get(schema) { - const p = schema._zod.parent; - if (p) { - const pm = { ...this.get(p) ?? {} }; - delete pm.id; - const f = { ...pm, ...this._map.get(schema) }; - return Object.keys(f).length ? f : undefined; - } - return this._map.get(schema); - } - has(schema) { - return this._map.has(schema); - } -} -function registry() { - return new $ZodRegistry; -} -(_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry()); -var globalRegistry = globalThis.__zod_globalRegistry; -// node_modules/zod/v4/core/api.js -function _string(Class2, params) { - return new Class2({ - type: "string", - ...normalizeParams(params) - }); -} -function _email(Class2, params) { - return new Class2({ - type: "string", - format: "email", - check: "string_format", - abort: false, - ...normalizeParams(params) - }); -} -function _guid(Class2, params) { - return new Class2({ - type: "string", - format: "guid", - check: "string_format", - abort: false, - ...normalizeParams(params) - }); -} -function _uuid(Class2, params) { - return new Class2({ - type: "string", - format: "uuid", - check: "string_format", - abort: false, - ...normalizeParams(params) - }); -} -function _uuidv4(Class2, params) { - return new Class2({ - type: "string", - format: "uuid", - check: "string_format", - abort: false, - version: "v4", - ...normalizeParams(params) - }); -} -function _uuidv6(Class2, params) { - return new Class2({ - type: "string", - format: "uuid", - check: "string_format", - abort: false, - version: "v6", - ...normalizeParams(params) - }); -} -function _uuidv7(Class2, params) { - return new Class2({ - type: "string", - format: "uuid", - check: "string_format", - abort: false, - version: "v7", - ...normalizeParams(params) - }); -} -function _url(Class2, params) { - return new Class2({ - type: "string", - format: "url", - check: "string_format", - abort: false, - ...normalizeParams(params) - }); -} -function _emoji2(Class2, params) { - return new Class2({ - type: "string", - format: "emoji", - check: "string_format", - abort: false, - ...normalizeParams(params) - }); -} -function _nanoid(Class2, params) { - return new Class2({ - type: "string", - format: "nanoid", - check: "string_format", - abort: false, - ...normalizeParams(params) - }); -} -function _cuid(Class2, params) { - return new Class2({ - type: "string", - format: "cuid", - check: "string_format", - abort: false, - ...normalizeParams(params) - }); -} -function _cuid2(Class2, params) { - return new Class2({ - type: "string", - format: "cuid2", - check: "string_format", - abort: false, - ...normalizeParams(params) - }); -} -function _ulid(Class2, params) { - return new Class2({ - type: "string", - format: "ulid", - check: "string_format", - abort: false, - ...normalizeParams(params) - }); -} -function _xid(Class2, params) { - return new Class2({ - type: "string", - format: "xid", - check: "string_format", - abort: false, - ...normalizeParams(params) - }); -} -function _ksuid(Class2, params) { - return new Class2({ - type: "string", - format: "ksuid", - check: "string_format", - abort: false, - ...normalizeParams(params) - }); -} -function _ipv4(Class2, params) { - return new Class2({ - type: "string", - format: "ipv4", - check: "string_format", - abort: false, - ...normalizeParams(params) - }); -} -function _ipv6(Class2, params) { - return new Class2({ - type: "string", - format: "ipv6", - check: "string_format", - abort: false, - ...normalizeParams(params) - }); -} -function _cidrv4(Class2, params) { - return new Class2({ - type: "string", - format: "cidrv4", - check: "string_format", - abort: false, - ...normalizeParams(params) - }); -} -function _cidrv6(Class2, params) { - return new Class2({ - type: "string", - format: "cidrv6", - check: "string_format", - abort: false, - ...normalizeParams(params) - }); -} -function _base64(Class2, params) { - return new Class2({ - type: "string", - format: "base64", - check: "string_format", - abort: false, - ...normalizeParams(params) - }); -} -function _base64url(Class2, params) { - return new Class2({ - type: "string", - format: "base64url", - check: "string_format", - abort: false, - ...normalizeParams(params) - }); -} -function _e164(Class2, params) { - return new Class2({ - type: "string", - format: "e164", - check: "string_format", - abort: false, - ...normalizeParams(params) - }); -} -function _jwt(Class2, params) { - return new Class2({ - type: "string", - format: "jwt", - check: "string_format", - abort: false, - ...normalizeParams(params) - }); -} -function _isoDateTime(Class2, params) { - return new Class2({ - type: "string", - format: "datetime", - check: "string_format", - offset: false, - local: false, - precision: null, - ...normalizeParams(params) - }); -} -function _isoDate(Class2, params) { - return new Class2({ - type: "string", - format: "date", - check: "string_format", - ...normalizeParams(params) - }); -} -function _isoTime(Class2, params) { - return new Class2({ - type: "string", - format: "time", - check: "string_format", - precision: null, - ...normalizeParams(params) - }); -} -function _isoDuration(Class2, params) { - return new Class2({ - type: "string", - format: "duration", - check: "string_format", - ...normalizeParams(params) - }); -} -function _number(Class2, params) { - return new Class2({ - type: "number", - checks: [], - ...normalizeParams(params) - }); -} -function _int(Class2, params) { - return new Class2({ - type: "number", - check: "number_format", - abort: false, - format: "safeint", - ...normalizeParams(params) - }); -} -function _boolean(Class2, params) { - return new Class2({ - type: "boolean", - ...normalizeParams(params) - }); -} -function _null2(Class2, params) { - return new Class2({ - type: "null", - ...normalizeParams(params) - }); -} -function _unknown(Class2) { - return new Class2({ - type: "unknown" - }); -} -function _never(Class2, params) { - return new Class2({ - type: "never", - ...normalizeParams(params) - }); -} -function _lt(value, params) { - return new $ZodCheckLessThan({ - check: "less_than", - ...normalizeParams(params), - value, - inclusive: false - }); -} -function _lte(value, params) { - return new $ZodCheckLessThan({ - check: "less_than", - ...normalizeParams(params), - value, - inclusive: true - }); -} -function _gt(value, params) { - return new $ZodCheckGreaterThan({ - check: "greater_than", - ...normalizeParams(params), - value, - inclusive: false - }); -} -function _gte(value, params) { - return new $ZodCheckGreaterThan({ - check: "greater_than", - ...normalizeParams(params), - value, - inclusive: true - }); -} -function _multipleOf(value, params) { - return new $ZodCheckMultipleOf({ - check: "multiple_of", - ...normalizeParams(params), - value - }); -} -function _maxLength(maximum, params) { - const ch = new $ZodCheckMaxLength({ - check: "max_length", - ...normalizeParams(params), - maximum - }); - return ch; -} -function _minLength(minimum, params) { - return new $ZodCheckMinLength({ - check: "min_length", - ...normalizeParams(params), - minimum - }); -} -function _length(length, params) { - return new $ZodCheckLengthEquals({ - check: "length_equals", - ...normalizeParams(params), - length - }); -} -function _regex(pattern, params) { - return new $ZodCheckRegex({ - check: "string_format", - format: "regex", - ...normalizeParams(params), - pattern - }); -} -function _lowercase(params) { - return new $ZodCheckLowerCase({ - check: "string_format", - format: "lowercase", - ...normalizeParams(params) - }); -} -function _uppercase(params) { - return new $ZodCheckUpperCase({ - check: "string_format", - format: "uppercase", - ...normalizeParams(params) - }); -} -function _includes(includes, params) { - return new $ZodCheckIncludes({ - check: "string_format", - format: "includes", - ...normalizeParams(params), - includes - }); -} -function _startsWith(prefix, params) { - return new $ZodCheckStartsWith({ - check: "string_format", - format: "starts_with", - ...normalizeParams(params), - prefix - }); -} -function _endsWith(suffix, params) { - return new $ZodCheckEndsWith({ - check: "string_format", - format: "ends_with", - ...normalizeParams(params), - suffix - }); -} -function _overwrite(tx) { - return new $ZodCheckOverwrite({ - check: "overwrite", - tx - }); -} -function _normalize(form) { - return _overwrite((input) => input.normalize(form)); -} -function _trim() { - return _overwrite((input) => input.trim()); -} -function _toLowerCase() { - return _overwrite((input) => input.toLowerCase()); -} -function _toUpperCase() { - return _overwrite((input) => input.toUpperCase()); -} -function _slugify() { - return _overwrite((input) => slugify(input)); -} -function _array(Class2, element, params) { - return new Class2({ - type: "array", - element, - ...normalizeParams(params) - }); -} -function _custom(Class2, fn, _params) { - const norm = normalizeParams(_params); - norm.abort ?? (norm.abort = true); - const schema = new Class2({ - type: "custom", - check: "custom", - fn, - ...norm - }); - return schema; -} -function _refine(Class2, fn, _params) { - const schema = new Class2({ - type: "custom", - check: "custom", - fn, - ...normalizeParams(_params) - }); - return schema; -} -function _superRefine(fn) { - const ch = _check((payload) => { - payload.addIssue = (issue2) => { - if (typeof issue2 === "string") { - payload.issues.push(issue(issue2, payload.value, ch._zod.def)); - } else { - const _issue = issue2; - if (_issue.fatal) - _issue.continue = false; - _issue.code ?? (_issue.code = "custom"); - _issue.input ?? (_issue.input = payload.value); - _issue.inst ?? (_issue.inst = ch); - _issue.continue ?? (_issue.continue = !ch._zod.def.abort); - payload.issues.push(issue(_issue)); - } - }; - return fn(payload.value, payload); - }); - return ch; -} -function _check(fn, params) { - const ch = new $ZodCheck({ - check: "custom", - ...normalizeParams(params) - }); - ch._zod.check = fn; - return ch; -} -// node_modules/zod/v4/core/to-json-schema.js -function initializeContext(params) { - let target = params?.target ?? "draft-2020-12"; - if (target === "draft-4") - target = "draft-04"; - if (target === "draft-7") - target = "draft-07"; - return { - processors: params.processors ?? {}, - metadataRegistry: params?.metadata ?? globalRegistry, - target, - unrepresentable: params?.unrepresentable ?? "throw", - override: params?.override ?? (() => {}), - io: params?.io ?? "output", - counter: 0, - seen: new Map, - cycles: params?.cycles ?? "ref", - reused: params?.reused ?? "inline", - external: params?.external ?? undefined - }; -} -function process2(schema, ctx, _params = { path: [], schemaPath: [] }) { - var _a2; - const def = schema._zod.def; - const seen = ctx.seen.get(schema); - if (seen) { - seen.count++; - const isCycle = _params.schemaPath.includes(schema); - if (isCycle) { - seen.cycle = _params.path; - } - return seen.schema; - } - const result = { schema: {}, count: 1, cycle: undefined, path: _params.path }; - ctx.seen.set(schema, result); - const overrideSchema = schema._zod.toJSONSchema?.(); - if (overrideSchema) { - result.schema = overrideSchema; - } else { - const params = { - ..._params, - schemaPath: [..._params.schemaPath, schema], - path: _params.path - }; - if (schema._zod.processJSONSchema) { - schema._zod.processJSONSchema(ctx, result.schema, params); - } else { - const _json = result.schema; - const processor = ctx.processors[def.type]; - if (!processor) { - throw new Error(`[toJSONSchema]: Non-representable type encountered: ${def.type}`); - } - processor(schema, ctx, _json, params); - } - const parent = schema._zod.parent; - if (parent) { - if (!result.ref) - result.ref = parent; - process2(parent, ctx, params); - ctx.seen.get(parent).isParent = true; - } - } - const meta = ctx.metadataRegistry.get(schema); - if (meta) - Object.assign(result.schema, meta); - if (ctx.io === "input" && isTransforming(schema)) { - delete result.schema.examples; - delete result.schema.default; - } - if (ctx.io === "input" && result.schema._prefault) - (_a2 = result.schema).default ?? (_a2.default = result.schema._prefault); - delete result.schema._prefault; - const _result = ctx.seen.get(schema); - return _result.schema; -} -function extractDefs(ctx, schema) { - const root = ctx.seen.get(schema); - if (!root) - throw new Error("Unprocessed schema. This is a bug in Zod."); - const idToSchema = new Map; - for (const entry of ctx.seen.entries()) { - const id = ctx.metadataRegistry.get(entry[0])?.id; - if (id) { - const existing = idToSchema.get(id); - if (existing && existing !== entry[0]) { - throw new Error(`Duplicate schema id "${id}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`); - } - idToSchema.set(id, entry[0]); - } - } - const makeURI = (entry) => { - const defsSegment = ctx.target === "draft-2020-12" ? "$defs" : "definitions"; - if (ctx.external) { - const externalId = ctx.external.registry.get(entry[0])?.id; - const uriGenerator = ctx.external.uri ?? ((id2) => id2); - if (externalId) { - return { ref: uriGenerator(externalId) }; - } - const id = entry[1].defId ?? entry[1].schema.id ?? `schema${ctx.counter++}`; - entry[1].defId = id; - return { defId: id, ref: `${uriGenerator("__shared")}#/${defsSegment}/${id}` }; - } - if (entry[1] === root) { - return { ref: "#" }; - } - const uriPrefix = `#`; - const defUriPrefix = `${uriPrefix}/${defsSegment}/`; - const defId = entry[1].schema.id ?? `__schema${ctx.counter++}`; - return { defId, ref: defUriPrefix + defId }; - }; - const extractToDef = (entry) => { - if (entry[1].schema.$ref) { - return; - } - const seen = entry[1]; - const { ref, defId } = makeURI(entry); - seen.def = { ...seen.schema }; - if (defId) - seen.defId = defId; - const schema2 = seen.schema; - for (const key in schema2) { - delete schema2[key]; - } - schema2.$ref = ref; - }; - if (ctx.cycles === "throw") { - for (const entry of ctx.seen.entries()) { - const seen = entry[1]; - if (seen.cycle) { - throw new Error("Cycle detected: " + `#/${seen.cycle?.join("/")}/` + '\n\nSet the `cycles` parameter to `"ref"` to resolve cyclical schemas with defs.'); - } - } - } - for (const entry of ctx.seen.entries()) { - const seen = entry[1]; - if (schema === entry[0]) { - extractToDef(entry); - continue; - } - if (ctx.external) { - const ext = ctx.external.registry.get(entry[0])?.id; - if (schema !== entry[0] && ext) { - extractToDef(entry); - continue; - } - } - const id = ctx.metadataRegistry.get(entry[0])?.id; - if (id) { - extractToDef(entry); - continue; - } - if (seen.cycle) { - extractToDef(entry); - continue; - } - if (seen.count > 1) { - if (ctx.reused === "ref") { - extractToDef(entry); - continue; - } - } - } -} -function finalize(ctx, schema) { - const root = ctx.seen.get(schema); - if (!root) - throw new Error("Unprocessed schema. This is a bug in Zod."); - const flattenRef = (zodSchema) => { - const seen = ctx.seen.get(zodSchema); - if (seen.ref === null) - return; - const schema2 = seen.def ?? seen.schema; - const _cached = { ...schema2 }; - const ref = seen.ref; - seen.ref = null; - if (ref) { - flattenRef(ref); - const refSeen = ctx.seen.get(ref); - const refSchema = refSeen.schema; - if (refSchema.$ref && (ctx.target === "draft-07" || ctx.target === "draft-04" || ctx.target === "openapi-3.0")) { - schema2.allOf = schema2.allOf ?? []; - schema2.allOf.push(refSchema); - } else { - Object.assign(schema2, refSchema); - } - Object.assign(schema2, _cached); - const isParentRef = zodSchema._zod.parent === ref; - if (isParentRef) { - for (const key in schema2) { - if (key === "$ref" || key === "allOf") - continue; - if (!(key in _cached)) { - delete schema2[key]; - } - } - } - if (refSchema.$ref && refSeen.def) { - for (const key in schema2) { - if (key === "$ref" || key === "allOf") - continue; - if (key in refSeen.def && JSON.stringify(schema2[key]) === JSON.stringify(refSeen.def[key])) { - delete schema2[key]; - } - } - } - } - const parent = zodSchema._zod.parent; - if (parent && parent !== ref) { - flattenRef(parent); - const parentSeen = ctx.seen.get(parent); - if (parentSeen?.schema.$ref) { - schema2.$ref = parentSeen.schema.$ref; - if (parentSeen.def) { - for (const key in schema2) { - if (key === "$ref" || key === "allOf") - continue; - if (key in parentSeen.def && JSON.stringify(schema2[key]) === JSON.stringify(parentSeen.def[key])) { - delete schema2[key]; - } - } - } - } - } - ctx.override({ - zodSchema, - jsonSchema: schema2, - path: seen.path ?? [] - }); - }; - for (const entry of [...ctx.seen.entries()].reverse()) { - flattenRef(entry[0]); - } - const result = {}; - if (ctx.target === "draft-2020-12") { - result.$schema = "https://json-schema.org/draft/2020-12/schema"; - } else if (ctx.target === "draft-07") { - result.$schema = "http://json-schema.org/draft-07/schema#"; - } else if (ctx.target === "draft-04") { - result.$schema = "http://json-schema.org/draft-04/schema#"; - } else if (ctx.target === "openapi-3.0") {} else {} - if (ctx.external?.uri) { - const id = ctx.external.registry.get(schema)?.id; - if (!id) - throw new Error("Schema is missing an `id` property"); - result.$id = ctx.external.uri(id); - } - Object.assign(result, root.def ?? root.schema); - const defs = ctx.external?.defs ?? {}; - for (const entry of ctx.seen.entries()) { - const seen = entry[1]; - if (seen.def && seen.defId) { - defs[seen.defId] = seen.def; - } - } - if (ctx.external) {} else { - if (Object.keys(defs).length > 0) { - if (ctx.target === "draft-2020-12") { - result.$defs = defs; - } else { - result.definitions = defs; - } - } - } - try { - const finalized = JSON.parse(JSON.stringify(result)); - Object.defineProperty(finalized, "~standard", { - value: { - ...schema["~standard"], - jsonSchema: { - input: createStandardJSONSchemaMethod(schema, "input", ctx.processors), - output: createStandardJSONSchemaMethod(schema, "output", ctx.processors) - } - }, - enumerable: false, - writable: false - }); - return finalized; - } catch (_err) { - throw new Error("Error converting schema to JSON."); - } -} -function isTransforming(_schema, _ctx) { - const ctx = _ctx ?? { seen: new Set }; - if (ctx.seen.has(_schema)) - return false; - ctx.seen.add(_schema); - const def = _schema._zod.def; - if (def.type === "transform") - return true; - if (def.type === "array") - return isTransforming(def.element, ctx); - if (def.type === "set") - return isTransforming(def.valueType, ctx); - if (def.type === "lazy") - return isTransforming(def.getter(), ctx); - if (def.type === "promise" || def.type === "optional" || def.type === "nonoptional" || def.type === "nullable" || def.type === "readonly" || def.type === "default" || def.type === "prefault") { - return isTransforming(def.innerType, ctx); - } - if (def.type === "intersection") { - return isTransforming(def.left, ctx) || isTransforming(def.right, ctx); - } - if (def.type === "record" || def.type === "map") { - return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx); - } - if (def.type === "pipe") { - return isTransforming(def.in, ctx) || isTransforming(def.out, ctx); - } - if (def.type === "object") { - for (const key in def.shape) { - if (isTransforming(def.shape[key], ctx)) - return true; - } - return false; - } - if (def.type === "union") { - for (const option of def.options) { - if (isTransforming(option, ctx)) - return true; - } - return false; - } - if (def.type === "tuple") { - for (const item of def.items) { - if (isTransforming(item, ctx)) - return true; - } - if (def.rest && isTransforming(def.rest, ctx)) - return true; - return false; - } - return false; -} -var createToJSONSchemaMethod = (schema, processors = {}) => (params) => { - const ctx = initializeContext({ ...params, processors }); - process2(schema, ctx); - extractDefs(ctx, schema); - return finalize(ctx, schema); -}; -var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) => { - const { libraryOptions, target } = params ?? {}; - const ctx = initializeContext({ ...libraryOptions ?? {}, target, io, processors }); - process2(schema, ctx); - extractDefs(ctx, schema); - return finalize(ctx, schema); -}; -// node_modules/zod/v4/core/json-schema-processors.js -var formatMap = { - guid: "uuid", - url: "uri", - datetime: "date-time", - json_string: "json-string", - regex: "" -}; -var stringProcessor = (schema, ctx, _json, _params) => { - const json = _json; - json.type = "string"; - const { minimum, maximum, format, patterns, contentEncoding } = schema._zod.bag; - if (typeof minimum === "number") - json.minLength = minimum; - if (typeof maximum === "number") - json.maxLength = maximum; - if (format) { - json.format = formatMap[format] ?? format; - if (json.format === "") - delete json.format; - if (format === "time") { - delete json.format; - } - } - if (contentEncoding) - json.contentEncoding = contentEncoding; - if (patterns && patterns.size > 0) { - const regexes = [...patterns]; - if (regexes.length === 1) - json.pattern = regexes[0].source; - else if (regexes.length > 1) { - json.allOf = [ - ...regexes.map((regex) => ({ - ...ctx.target === "draft-07" || ctx.target === "draft-04" || ctx.target === "openapi-3.0" ? { type: "string" } : {}, - pattern: regex.source - })) - ]; - } - } -}; -var numberProcessor = (schema, ctx, _json, _params) => { - const json = _json; - const { minimum, maximum, format, multipleOf, exclusiveMaximum, exclusiveMinimum } = schema._zod.bag; - if (typeof format === "string" && format.includes("int")) - json.type = "integer"; - else - json.type = "number"; - if (typeof exclusiveMinimum === "number") { - if (ctx.target === "draft-04" || ctx.target === "openapi-3.0") { - json.minimum = exclusiveMinimum; - json.exclusiveMinimum = true; - } else { - json.exclusiveMinimum = exclusiveMinimum; - } - } - if (typeof minimum === "number") { - json.minimum = minimum; - if (typeof exclusiveMinimum === "number" && ctx.target !== "draft-04") { - if (exclusiveMinimum >= minimum) - delete json.minimum; - else - delete json.exclusiveMinimum; - } - } - if (typeof exclusiveMaximum === "number") { - if (ctx.target === "draft-04" || ctx.target === "openapi-3.0") { - json.maximum = exclusiveMaximum; - json.exclusiveMaximum = true; - } else { - json.exclusiveMaximum = exclusiveMaximum; - } - } - if (typeof maximum === "number") { - json.maximum = maximum; - if (typeof exclusiveMaximum === "number" && ctx.target !== "draft-04") { - if (exclusiveMaximum <= maximum) - delete json.maximum; - else - delete json.exclusiveMaximum; - } - } - if (typeof multipleOf === "number") - json.multipleOf = multipleOf; -}; -var booleanProcessor = (_schema, _ctx, json, _params) => { - json.type = "boolean"; -}; -var nullProcessor = (_schema, ctx, json, _params) => { - if (ctx.target === "openapi-3.0") { - json.type = "string"; - json.nullable = true; - json.enum = [null]; - } else { - json.type = "null"; - } -}; -var neverProcessor = (_schema, _ctx, json, _params) => { - json.not = {}; -}; -var unknownProcessor = (_schema, _ctx, _json, _params) => {}; -var enumProcessor = (schema, _ctx, json, _params) => { - const def = schema._zod.def; - const values = getEnumValues(def.entries); - if (values.every((v) => typeof v === "number")) - json.type = "number"; - if (values.every((v) => typeof v === "string")) - json.type = "string"; - json.enum = values; -}; -var literalProcessor = (schema, ctx, json, _params) => { - const def = schema._zod.def; - const vals = []; - for (const val of def.values) { - if (val === undefined) { - if (ctx.unrepresentable === "throw") { - throw new Error("Literal `undefined` cannot be represented in JSON Schema"); - } else {} - } else if (typeof val === "bigint") { - if (ctx.unrepresentable === "throw") { - throw new Error("BigInt literals cannot be represented in JSON Schema"); - } else { - vals.push(Number(val)); - } - } else { - vals.push(val); - } - } - if (vals.length === 0) {} else if (vals.length === 1) { - const val = vals[0]; - json.type = val === null ? "null" : typeof val; - if (ctx.target === "draft-04" || ctx.target === "openapi-3.0") { - json.enum = [val]; - } else { - json.const = val; - } - } else { - if (vals.every((v) => typeof v === "number")) - json.type = "number"; - if (vals.every((v) => typeof v === "string")) - json.type = "string"; - if (vals.every((v) => typeof v === "boolean")) - json.type = "boolean"; - if (vals.every((v) => v === null)) - json.type = "null"; - json.enum = vals; - } -}; -var customProcessor = (_schema, ctx, _json, _params) => { - if (ctx.unrepresentable === "throw") { - throw new Error("Custom types cannot be represented in JSON Schema"); - } -}; -var transformProcessor = (_schema, ctx, _json, _params) => { - if (ctx.unrepresentable === "throw") { - throw new Error("Transforms cannot be represented in JSON Schema"); - } -}; -var arrayProcessor = (schema, ctx, _json, params) => { - const json = _json; - const def = schema._zod.def; - const { minimum, maximum } = schema._zod.bag; - if (typeof minimum === "number") - json.minItems = minimum; - if (typeof maximum === "number") - json.maxItems = maximum; - json.type = "array"; - json.items = process2(def.element, ctx, { ...params, path: [...params.path, "items"] }); -}; -var objectProcessor = (schema, ctx, _json, params) => { - const json = _json; - const def = schema._zod.def; - json.type = "object"; - json.properties = {}; - const shape = def.shape; - for (const key in shape) { - json.properties[key] = process2(shape[key], ctx, { - ...params, - path: [...params.path, "properties", key] - }); - } - const allKeys = new Set(Object.keys(shape)); - const requiredKeys = new Set([...allKeys].filter((key) => { - const v = def.shape[key]._zod; - if (ctx.io === "input") { - return v.optin === undefined; - } else { - return v.optout === undefined; - } - })); - if (requiredKeys.size > 0) { - json.required = Array.from(requiredKeys); - } - if (def.catchall?._zod.def.type === "never") { - json.additionalProperties = false; - } else if (!def.catchall) { - if (ctx.io === "output") - json.additionalProperties = false; - } else if (def.catchall) { - json.additionalProperties = process2(def.catchall, ctx, { - ...params, - path: [...params.path, "additionalProperties"] - }); - } -}; -var unionProcessor = (schema, ctx, json, params) => { - const def = schema._zod.def; - const isExclusive = def.inclusive === false; - const options = def.options.map((x, i) => process2(x, ctx, { - ...params, - path: [...params.path, isExclusive ? "oneOf" : "anyOf", i] - })); - if (isExclusive) { - json.oneOf = options; - } else { - json.anyOf = options; - } -}; -var intersectionProcessor = (schema, ctx, json, params) => { - const def = schema._zod.def; - const a = process2(def.left, ctx, { - ...params, - path: [...params.path, "allOf", 0] - }); - const b = process2(def.right, ctx, { - ...params, - path: [...params.path, "allOf", 1] - }); - const isSimpleIntersection = (val) => ("allOf" in val) && Object.keys(val).length === 1; - const allOf = [ - ...isSimpleIntersection(a) ? a.allOf : [a], - ...isSimpleIntersection(b) ? b.allOf : [b] - ]; - json.allOf = allOf; -}; -var recordProcessor = (schema, ctx, _json, params) => { - const json = _json; - const def = schema._zod.def; - json.type = "object"; - const keyType = def.keyType; - const keyBag = keyType._zod.bag; - const patterns = keyBag?.patterns; - if (def.mode === "loose" && patterns && patterns.size > 0) { - const valueSchema = process2(def.valueType, ctx, { - ...params, - path: [...params.path, "patternProperties", "*"] - }); - json.patternProperties = {}; - for (const pattern of patterns) { - json.patternProperties[pattern.source] = valueSchema; - } - } else { - if (ctx.target === "draft-07" || ctx.target === "draft-2020-12") { - json.propertyNames = process2(def.keyType, ctx, { - ...params, - path: [...params.path, "propertyNames"] - }); - } - json.additionalProperties = process2(def.valueType, ctx, { - ...params, - path: [...params.path, "additionalProperties"] - }); - } - const keyValues = keyType._zod.values; - if (keyValues) { - const validKeyValues = [...keyValues].filter((v) => typeof v === "string" || typeof v === "number"); - if (validKeyValues.length > 0) { - json.required = validKeyValues; - } - } -}; -var nullableProcessor = (schema, ctx, json, params) => { - const def = schema._zod.def; - const inner = process2(def.innerType, ctx, params); - const seen = ctx.seen.get(schema); - if (ctx.target === "openapi-3.0") { - seen.ref = def.innerType; - json.nullable = true; - } else { - json.anyOf = [inner, { type: "null" }]; - } -}; -var nonoptionalProcessor = (schema, ctx, _json, params) => { - const def = schema._zod.def; - process2(def.innerType, ctx, params); - const seen = ctx.seen.get(schema); - seen.ref = def.innerType; -}; -var defaultProcessor = (schema, ctx, json, params) => { - const def = schema._zod.def; - process2(def.innerType, ctx, params); - const seen = ctx.seen.get(schema); - seen.ref = def.innerType; - json.default = JSON.parse(JSON.stringify(def.defaultValue)); -}; -var prefaultProcessor = (schema, ctx, json, params) => { - const def = schema._zod.def; - process2(def.innerType, ctx, params); - const seen = ctx.seen.get(schema); - seen.ref = def.innerType; - if (ctx.io === "input") - json._prefault = JSON.parse(JSON.stringify(def.defaultValue)); -}; -var catchProcessor = (schema, ctx, json, params) => { - const def = schema._zod.def; - process2(def.innerType, ctx, params); - const seen = ctx.seen.get(schema); - seen.ref = def.innerType; - let catchValue; - try { - catchValue = def.catchValue(undefined); - } catch { - throw new Error("Dynamic catch values are not supported in JSON Schema"); - } - json.default = catchValue; -}; -var pipeProcessor = (schema, ctx, _json, params) => { - const def = schema._zod.def; - const innerType = ctx.io === "input" ? def.in._zod.def.type === "transform" ? def.out : def.in : def.out; - process2(innerType, ctx, params); - const seen = ctx.seen.get(schema); - seen.ref = innerType; -}; -var readonlyProcessor = (schema, ctx, json, params) => { - const def = schema._zod.def; - process2(def.innerType, ctx, params); - const seen = ctx.seen.get(schema); - seen.ref = def.innerType; - json.readOnly = true; -}; -var optionalProcessor = (schema, ctx, _json, params) => { - const def = schema._zod.def; - process2(def.innerType, ctx, params); - const seen = ctx.seen.get(schema); - seen.ref = def.innerType; -}; -// node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js -function isZ4Schema(s) { - const schema = s; - return !!schema._zod; -} -function safeParse2(schema, data) { - if (isZ4Schema(schema)) { - const result2 = safeParse(schema, data); - return result2; - } - const v3Schema = schema; - const result = v3Schema.safeParse(data); - return result; -} -function getObjectShape(schema) { - if (!schema) - return; - let rawShape; - if (isZ4Schema(schema)) { - const v4Schema = schema; - rawShape = v4Schema._zod?.def?.shape; - } else { - const v3Schema = schema; - rawShape = v3Schema.shape; - } - if (!rawShape) - return; - if (typeof rawShape === "function") { - try { - return rawShape(); - } catch { - return; - } - } - return rawShape; -} -function getLiteralValue(schema) { - if (isZ4Schema(schema)) { - const v4Schema = schema; - const def2 = v4Schema._zod?.def; - if (def2) { - if (def2.value !== undefined) - return def2.value; - if (Array.isArray(def2.values) && def2.values.length > 0) { - return def2.values[0]; - } - } - } - const v3Schema = schema; - const def = v3Schema._def; - if (def) { - if (def.value !== undefined) - return def.value; - if (Array.isArray(def.values) && def.values.length > 0) { - return def.values[0]; - } - } - const directValue = schema.value; - if (directValue !== undefined) - return directValue; - return; -} -// node_modules/zod/v4/classic/iso.js -var exports_iso = {}; -__export(exports_iso, { - time: () => time2, - duration: () => duration2, - datetime: () => datetime2, - date: () => date2, - ZodISOTime: () => ZodISOTime, - ZodISODuration: () => ZodISODuration, - ZodISODateTime: () => ZodISODateTime, - ZodISODate: () => ZodISODate -}); -var ZodISODateTime = /* @__PURE__ */ $constructor("ZodISODateTime", (inst, def) => { - $ZodISODateTime.init(inst, def); - ZodStringFormat.init(inst, def); -}); -function datetime2(params) { - return _isoDateTime(ZodISODateTime, params); -} -var ZodISODate = /* @__PURE__ */ $constructor("ZodISODate", (inst, def) => { - $ZodISODate.init(inst, def); - ZodStringFormat.init(inst, def); -}); -function date2(params) { - return _isoDate(ZodISODate, params); -} -var ZodISOTime = /* @__PURE__ */ $constructor("ZodISOTime", (inst, def) => { - $ZodISOTime.init(inst, def); - ZodStringFormat.init(inst, def); -}); -function time2(params) { - return _isoTime(ZodISOTime, params); -} -var ZodISODuration = /* @__PURE__ */ $constructor("ZodISODuration", (inst, def) => { - $ZodISODuration.init(inst, def); - ZodStringFormat.init(inst, def); -}); -function duration2(params) { - return _isoDuration(ZodISODuration, params); -} - -// node_modules/zod/v4/classic/errors.js -var initializer2 = (inst, issues) => { - $ZodError.init(inst, issues); - inst.name = "ZodError"; - Object.defineProperties(inst, { - format: { - value: (mapper) => formatError(inst, mapper) - }, - flatten: { - value: (mapper) => flattenError(inst, mapper) - }, - addIssue: { - value: (issue2) => { - inst.issues.push(issue2); - inst.message = JSON.stringify(inst.issues, jsonStringifyReplacer, 2); - } - }, - addIssues: { - value: (issues2) => { - inst.issues.push(...issues2); - inst.message = JSON.stringify(inst.issues, jsonStringifyReplacer, 2); - } - }, - isEmpty: { - get() { - return inst.issues.length === 0; - } - } - }); -}; -var ZodError = $constructor("ZodError", initializer2); -var ZodRealError = $constructor("ZodError", initializer2, { - Parent: Error -}); - -// node_modules/zod/v4/classic/parse.js -var parse3 = /* @__PURE__ */ _parse(ZodRealError); -var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError); -var safeParse3 = /* @__PURE__ */ _safeParse(ZodRealError); -var safeParseAsync2 = /* @__PURE__ */ _safeParseAsync(ZodRealError); -var encode2 = /* @__PURE__ */ _encode(ZodRealError); -var decode2 = /* @__PURE__ */ _decode(ZodRealError); -var encodeAsync2 = /* @__PURE__ */ _encodeAsync(ZodRealError); -var decodeAsync2 = /* @__PURE__ */ _decodeAsync(ZodRealError); -var safeEncode2 = /* @__PURE__ */ _safeEncode(ZodRealError); -var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError); -var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError); -var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError); - -// node_modules/zod/v4/classic/schemas.js -var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => { - $ZodType.init(inst, def); - Object.assign(inst["~standard"], { - jsonSchema: { - input: createStandardJSONSchemaMethod(inst, "input"), - output: createStandardJSONSchemaMethod(inst, "output") - } - }); - inst.toJSONSchema = createToJSONSchemaMethod(inst, {}); - inst.def = def; - inst.type = def.type; - Object.defineProperty(inst, "_def", { value: def }); - inst.check = (...checks2) => { - return inst.clone(exports_util.mergeDefs(def, { - checks: [ - ...def.checks ?? [], - ...checks2.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch) - ] - }), { - parent: true - }); - }; - inst.with = inst.check; - inst.clone = (def2, params) => clone(inst, def2, params); - inst.brand = () => inst; - inst.register = (reg, meta2) => { - reg.add(inst, meta2); - return inst; - }; - inst.parse = (data, params) => parse3(inst, data, params, { callee: inst.parse }); - inst.safeParse = (data, params) => safeParse3(inst, data, params); - inst.parseAsync = async (data, params) => parseAsync2(inst, data, params, { callee: inst.parseAsync }); - inst.safeParseAsync = async (data, params) => safeParseAsync2(inst, data, params); - inst.spa = inst.safeParseAsync; - inst.encode = (data, params) => encode2(inst, data, params); - inst.decode = (data, params) => decode2(inst, data, params); - inst.encodeAsync = async (data, params) => encodeAsync2(inst, data, params); - inst.decodeAsync = async (data, params) => decodeAsync2(inst, data, params); - inst.safeEncode = (data, params) => safeEncode2(inst, data, params); - inst.safeDecode = (data, params) => safeDecode2(inst, data, params); - inst.safeEncodeAsync = async (data, params) => safeEncodeAsync2(inst, data, params); - inst.safeDecodeAsync = async (data, params) => safeDecodeAsync2(inst, data, params); - inst.refine = (check, params) => inst.check(refine(check, params)); - inst.superRefine = (refinement) => inst.check(superRefine(refinement)); - inst.overwrite = (fn) => inst.check(_overwrite(fn)); - inst.optional = () => optional(inst); - inst.exactOptional = () => exactOptional(inst); - inst.nullable = () => nullable(inst); - inst.nullish = () => optional(nullable(inst)); - inst.nonoptional = (params) => nonoptional(inst, params); - inst.array = () => array(inst); - inst.or = (arg) => union([inst, arg]); - inst.and = (arg) => intersection(inst, arg); - inst.transform = (tx) => pipe(inst, transform(tx)); - inst.default = (def2) => _default(inst, def2); - inst.prefault = (def2) => prefault(inst, def2); - inst.catch = (params) => _catch(inst, params); - inst.pipe = (target) => pipe(inst, target); - inst.readonly = () => readonly(inst); - inst.describe = (description) => { - const cl = inst.clone(); - globalRegistry.add(cl, { description }); - return cl; - }; - Object.defineProperty(inst, "description", { - get() { - return globalRegistry.get(inst)?.description; - }, - configurable: true - }); - inst.meta = (...args) => { - if (args.length === 0) { - return globalRegistry.get(inst); - } - const cl = inst.clone(); - globalRegistry.add(cl, args[0]); - return cl; - }; - inst.isOptional = () => inst.safeParse(undefined).success; - inst.isNullable = () => inst.safeParse(null).success; - inst.apply = (fn) => fn(inst); - return inst; -}); -var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => { - $ZodString.init(inst, def); - ZodType.init(inst, def); - inst._zod.processJSONSchema = (ctx, json, params) => stringProcessor(inst, ctx, json, params); - const bag = inst._zod.bag; - inst.format = bag.format ?? null; - inst.minLength = bag.minimum ?? null; - inst.maxLength = bag.maximum ?? null; - inst.regex = (...args) => inst.check(_regex(...args)); - inst.includes = (...args) => inst.check(_includes(...args)); - inst.startsWith = (...args) => inst.check(_startsWith(...args)); - inst.endsWith = (...args) => inst.check(_endsWith(...args)); - inst.min = (...args) => inst.check(_minLength(...args)); - inst.max = (...args) => inst.check(_maxLength(...args)); - inst.length = (...args) => inst.check(_length(...args)); - inst.nonempty = (...args) => inst.check(_minLength(1, ...args)); - inst.lowercase = (params) => inst.check(_lowercase(params)); - inst.uppercase = (params) => inst.check(_uppercase(params)); - inst.trim = () => inst.check(_trim()); - inst.normalize = (...args) => inst.check(_normalize(...args)); - inst.toLowerCase = () => inst.check(_toLowerCase()); - inst.toUpperCase = () => inst.check(_toUpperCase()); - inst.slugify = () => inst.check(_slugify()); -}); -var ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => { - $ZodString.init(inst, def); - _ZodString.init(inst, def); - inst.email = (params) => inst.check(_email(ZodEmail, params)); - inst.url = (params) => inst.check(_url(ZodURL, params)); - inst.jwt = (params) => inst.check(_jwt(ZodJWT, params)); - inst.emoji = (params) => inst.check(_emoji2(ZodEmoji, params)); - inst.guid = (params) => inst.check(_guid(ZodGUID, params)); - inst.uuid = (params) => inst.check(_uuid(ZodUUID, params)); - inst.uuidv4 = (params) => inst.check(_uuidv4(ZodUUID, params)); - inst.uuidv6 = (params) => inst.check(_uuidv6(ZodUUID, params)); - inst.uuidv7 = (params) => inst.check(_uuidv7(ZodUUID, params)); - inst.nanoid = (params) => inst.check(_nanoid(ZodNanoID, params)); - inst.guid = (params) => inst.check(_guid(ZodGUID, params)); - inst.cuid = (params) => inst.check(_cuid(ZodCUID, params)); - inst.cuid2 = (params) => inst.check(_cuid2(ZodCUID2, params)); - inst.ulid = (params) => inst.check(_ulid(ZodULID, params)); - inst.base64 = (params) => inst.check(_base64(ZodBase64, params)); - inst.base64url = (params) => inst.check(_base64url(ZodBase64URL, params)); - inst.xid = (params) => inst.check(_xid(ZodXID, params)); - inst.ksuid = (params) => inst.check(_ksuid(ZodKSUID, params)); - inst.ipv4 = (params) => inst.check(_ipv4(ZodIPv4, params)); - inst.ipv6 = (params) => inst.check(_ipv6(ZodIPv6, params)); - inst.cidrv4 = (params) => inst.check(_cidrv4(ZodCIDRv4, params)); - inst.cidrv6 = (params) => inst.check(_cidrv6(ZodCIDRv6, params)); - inst.e164 = (params) => inst.check(_e164(ZodE164, params)); - inst.datetime = (params) => inst.check(datetime2(params)); - inst.date = (params) => inst.check(date2(params)); - inst.time = (params) => inst.check(time2(params)); - inst.duration = (params) => inst.check(duration2(params)); -}); -function string2(params) { - return _string(ZodString, params); -} -var ZodStringFormat = /* @__PURE__ */ $constructor("ZodStringFormat", (inst, def) => { - $ZodStringFormat.init(inst, def); - _ZodString.init(inst, def); -}); -var ZodEmail = /* @__PURE__ */ $constructor("ZodEmail", (inst, def) => { - $ZodEmail.init(inst, def); - ZodStringFormat.init(inst, def); -}); -var ZodGUID = /* @__PURE__ */ $constructor("ZodGUID", (inst, def) => { - $ZodGUID.init(inst, def); - ZodStringFormat.init(inst, def); -}); -var ZodUUID = /* @__PURE__ */ $constructor("ZodUUID", (inst, def) => { - $ZodUUID.init(inst, def); - ZodStringFormat.init(inst, def); -}); -var ZodURL = /* @__PURE__ */ $constructor("ZodURL", (inst, def) => { - $ZodURL.init(inst, def); - ZodStringFormat.init(inst, def); -}); -var ZodEmoji = /* @__PURE__ */ $constructor("ZodEmoji", (inst, def) => { - $ZodEmoji.init(inst, def); - ZodStringFormat.init(inst, def); -}); -var ZodNanoID = /* @__PURE__ */ $constructor("ZodNanoID", (inst, def) => { - $ZodNanoID.init(inst, def); - ZodStringFormat.init(inst, def); -}); -var ZodCUID = /* @__PURE__ */ $constructor("ZodCUID", (inst, def) => { - $ZodCUID.init(inst, def); - ZodStringFormat.init(inst, def); -}); -var ZodCUID2 = /* @__PURE__ */ $constructor("ZodCUID2", (inst, def) => { - $ZodCUID2.init(inst, def); - ZodStringFormat.init(inst, def); -}); -var ZodULID = /* @__PURE__ */ $constructor("ZodULID", (inst, def) => { - $ZodULID.init(inst, def); - ZodStringFormat.init(inst, def); -}); -var ZodXID = /* @__PURE__ */ $constructor("ZodXID", (inst, def) => { - $ZodXID.init(inst, def); - ZodStringFormat.init(inst, def); -}); -var ZodKSUID = /* @__PURE__ */ $constructor("ZodKSUID", (inst, def) => { - $ZodKSUID.init(inst, def); - ZodStringFormat.init(inst, def); -}); -var ZodIPv4 = /* @__PURE__ */ $constructor("ZodIPv4", (inst, def) => { - $ZodIPv4.init(inst, def); - ZodStringFormat.init(inst, def); -}); -var ZodIPv6 = /* @__PURE__ */ $constructor("ZodIPv6", (inst, def) => { - $ZodIPv6.init(inst, def); - ZodStringFormat.init(inst, def); -}); -var ZodCIDRv4 = /* @__PURE__ */ $constructor("ZodCIDRv4", (inst, def) => { - $ZodCIDRv4.init(inst, def); - ZodStringFormat.init(inst, def); -}); -var ZodCIDRv6 = /* @__PURE__ */ $constructor("ZodCIDRv6", (inst, def) => { - $ZodCIDRv6.init(inst, def); - ZodStringFormat.init(inst, def); -}); -var ZodBase64 = /* @__PURE__ */ $constructor("ZodBase64", (inst, def) => { - $ZodBase64.init(inst, def); - ZodStringFormat.init(inst, def); -}); -var ZodBase64URL = /* @__PURE__ */ $constructor("ZodBase64URL", (inst, def) => { - $ZodBase64URL.init(inst, def); - ZodStringFormat.init(inst, def); -}); -var ZodE164 = /* @__PURE__ */ $constructor("ZodE164", (inst, def) => { - $ZodE164.init(inst, def); - ZodStringFormat.init(inst, def); -}); -var ZodJWT = /* @__PURE__ */ $constructor("ZodJWT", (inst, def) => { - $ZodJWT.init(inst, def); - ZodStringFormat.init(inst, def); -}); -var ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => { - $ZodNumber.init(inst, def); - ZodType.init(inst, def); - inst._zod.processJSONSchema = (ctx, json, params) => numberProcessor(inst, ctx, json, params); - inst.gt = (value, params) => inst.check(_gt(value, params)); - inst.gte = (value, params) => inst.check(_gte(value, params)); - inst.min = (value, params) => inst.check(_gte(value, params)); - inst.lt = (value, params) => inst.check(_lt(value, params)); - inst.lte = (value, params) => inst.check(_lte(value, params)); - inst.max = (value, params) => inst.check(_lte(value, params)); - inst.int = (params) => inst.check(int(params)); - inst.safe = (params) => inst.check(int(params)); - inst.positive = (params) => inst.check(_gt(0, params)); - inst.nonnegative = (params) => inst.check(_gte(0, params)); - inst.negative = (params) => inst.check(_lt(0, params)); - inst.nonpositive = (params) => inst.check(_lte(0, params)); - inst.multipleOf = (value, params) => inst.check(_multipleOf(value, params)); - inst.step = (value, params) => inst.check(_multipleOf(value, params)); - inst.finite = () => inst; - const bag = inst._zod.bag; - inst.minValue = Math.max(bag.minimum ?? Number.NEGATIVE_INFINITY, bag.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null; - inst.maxValue = Math.min(bag.maximum ?? Number.POSITIVE_INFINITY, bag.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null; - inst.isInt = (bag.format ?? "").includes("int") || Number.isSafeInteger(bag.multipleOf ?? 0.5); - inst.isFinite = true; - inst.format = bag.format ?? null; -}); -function number2(params) { - return _number(ZodNumber, params); -} -var ZodNumberFormat = /* @__PURE__ */ $constructor("ZodNumberFormat", (inst, def) => { - $ZodNumberFormat.init(inst, def); - ZodNumber.init(inst, def); -}); -function int(params) { - return _int(ZodNumberFormat, params); -} -var ZodBoolean = /* @__PURE__ */ $constructor("ZodBoolean", (inst, def) => { - $ZodBoolean.init(inst, def); - ZodType.init(inst, def); - inst._zod.processJSONSchema = (ctx, json, params) => booleanProcessor(inst, ctx, json, params); -}); -function boolean2(params) { - return _boolean(ZodBoolean, params); -} -var ZodNull = /* @__PURE__ */ $constructor("ZodNull", (inst, def) => { - $ZodNull.init(inst, def); - ZodType.init(inst, def); - inst._zod.processJSONSchema = (ctx, json, params) => nullProcessor(inst, ctx, json, params); -}); -function _null3(params) { - return _null2(ZodNull, params); -} -var ZodUnknown = /* @__PURE__ */ $constructor("ZodUnknown", (inst, def) => { - $ZodUnknown.init(inst, def); - ZodType.init(inst, def); - inst._zod.processJSONSchema = (ctx, json, params) => unknownProcessor(inst, ctx, json, params); -}); -function unknown() { - return _unknown(ZodUnknown); -} -var ZodNever = /* @__PURE__ */ $constructor("ZodNever", (inst, def) => { - $ZodNever.init(inst, def); - ZodType.init(inst, def); - inst._zod.processJSONSchema = (ctx, json, params) => neverProcessor(inst, ctx, json, params); -}); -function never(params) { - return _never(ZodNever, params); -} -var ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => { - $ZodArray.init(inst, def); - ZodType.init(inst, def); - inst._zod.processJSONSchema = (ctx, json, params) => arrayProcessor(inst, ctx, json, params); - inst.element = def.element; - inst.min = (minLength, params) => inst.check(_minLength(minLength, params)); - inst.nonempty = (params) => inst.check(_minLength(1, params)); - inst.max = (maxLength, params) => inst.check(_maxLength(maxLength, params)); - inst.length = (len, params) => inst.check(_length(len, params)); - inst.unwrap = () => inst.element; -}); -function array(element, params) { - return _array(ZodArray, element, params); -} -var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => { - $ZodObjectJIT.init(inst, def); - ZodType.init(inst, def); - inst._zod.processJSONSchema = (ctx, json, params) => objectProcessor(inst, ctx, json, params); - exports_util.defineLazy(inst, "shape", () => { - return def.shape; - }); - inst.keyof = () => _enum(Object.keys(inst._zod.def.shape)); - inst.catchall = (catchall) => inst.clone({ ...inst._zod.def, catchall }); - inst.passthrough = () => inst.clone({ ...inst._zod.def, catchall: unknown() }); - inst.loose = () => inst.clone({ ...inst._zod.def, catchall: unknown() }); - inst.strict = () => inst.clone({ ...inst._zod.def, catchall: never() }); - inst.strip = () => inst.clone({ ...inst._zod.def, catchall: undefined }); - inst.extend = (incoming) => { - return exports_util.extend(inst, incoming); - }; - inst.safeExtend = (incoming) => { - return exports_util.safeExtend(inst, incoming); - }; - inst.merge = (other) => exports_util.merge(inst, other); - inst.pick = (mask) => exports_util.pick(inst, mask); - inst.omit = (mask) => exports_util.omit(inst, mask); - inst.partial = (...args) => exports_util.partial(ZodOptional, inst, args[0]); - inst.required = (...args) => exports_util.required(ZodNonOptional, inst, args[0]); -}); -function object2(shape, params) { - const def = { - type: "object", - shape: shape ?? {}, - ...exports_util.normalizeParams(params) - }; - return new ZodObject(def); -} -function looseObject(shape, params) { - return new ZodObject({ - type: "object", - shape, - catchall: unknown(), - ...exports_util.normalizeParams(params) - }); -} -var ZodUnion = /* @__PURE__ */ $constructor("ZodUnion", (inst, def) => { - $ZodUnion.init(inst, def); - ZodType.init(inst, def); - inst._zod.processJSONSchema = (ctx, json, params) => unionProcessor(inst, ctx, json, params); - inst.options = def.options; -}); -function union(options, params) { - return new ZodUnion({ - type: "union", - options, - ...exports_util.normalizeParams(params) - }); -} -var ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("ZodDiscriminatedUnion", (inst, def) => { - ZodUnion.init(inst, def); - $ZodDiscriminatedUnion.init(inst, def); -}); -function discriminatedUnion(discriminator, options, params) { - return new ZodDiscriminatedUnion({ - type: "union", - options, - discriminator, - ...exports_util.normalizeParams(params) - }); -} -var ZodIntersection = /* @__PURE__ */ $constructor("ZodIntersection", (inst, def) => { - $ZodIntersection.init(inst, def); - ZodType.init(inst, def); - inst._zod.processJSONSchema = (ctx, json, params) => intersectionProcessor(inst, ctx, json, params); -}); -function intersection(left, right) { - return new ZodIntersection({ - type: "intersection", - left, - right - }); -} -var ZodRecord = /* @__PURE__ */ $constructor("ZodRecord", (inst, def) => { - $ZodRecord.init(inst, def); - ZodType.init(inst, def); - inst._zod.processJSONSchema = (ctx, json, params) => recordProcessor(inst, ctx, json, params); - inst.keyType = def.keyType; - inst.valueType = def.valueType; -}); -function record(keyType, valueType, params) { - return new ZodRecord({ - type: "record", - keyType, - valueType, - ...exports_util.normalizeParams(params) - }); -} -var ZodEnum = /* @__PURE__ */ $constructor("ZodEnum", (inst, def) => { - $ZodEnum.init(inst, def); - ZodType.init(inst, def); - inst._zod.processJSONSchema = (ctx, json, params) => enumProcessor(inst, ctx, json, params); - inst.enum = def.entries; - inst.options = Object.values(def.entries); - const keys = new Set(Object.keys(def.entries)); - inst.extract = (values, params) => { - const newEntries = {}; - for (const value of values) { - if (keys.has(value)) { - newEntries[value] = def.entries[value]; - } else - throw new Error(`Key ${value} not found in enum`); - } - return new ZodEnum({ - ...def, - checks: [], - ...exports_util.normalizeParams(params), - entries: newEntries - }); - }; - inst.exclude = (values, params) => { - const newEntries = { ...def.entries }; - for (const value of values) { - if (keys.has(value)) { - delete newEntries[value]; - } else - throw new Error(`Key ${value} not found in enum`); - } - return new ZodEnum({ - ...def, - checks: [], - ...exports_util.normalizeParams(params), - entries: newEntries - }); - }; -}); -function _enum(values, params) { - const entries = Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values; - return new ZodEnum({ - type: "enum", - entries, - ...exports_util.normalizeParams(params) - }); -} -var ZodLiteral = /* @__PURE__ */ $constructor("ZodLiteral", (inst, def) => { - $ZodLiteral.init(inst, def); - ZodType.init(inst, def); - inst._zod.processJSONSchema = (ctx, json, params) => literalProcessor(inst, ctx, json, params); - inst.values = new Set(def.values); - Object.defineProperty(inst, "value", { - get() { - if (def.values.length > 1) { - throw new Error("This schema contains multiple valid literal values. Use `.values` instead."); - } - return def.values[0]; - } - }); -}); -function literal(value, params) { - return new ZodLiteral({ - type: "literal", - values: Array.isArray(value) ? value : [value], - ...exports_util.normalizeParams(params) - }); -} -var ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => { - $ZodTransform.init(inst, def); - ZodType.init(inst, def); - inst._zod.processJSONSchema = (ctx, json, params) => transformProcessor(inst, ctx, json, params); - inst._zod.parse = (payload, _ctx) => { - if (_ctx.direction === "backward") { - throw new $ZodEncodeError(inst.constructor.name); - } - payload.addIssue = (issue2) => { - if (typeof issue2 === "string") { - payload.issues.push(exports_util.issue(issue2, payload.value, def)); - } else { - const _issue = issue2; - if (_issue.fatal) - _issue.continue = false; - _issue.code ?? (_issue.code = "custom"); - _issue.input ?? (_issue.input = payload.value); - _issue.inst ?? (_issue.inst = inst); - payload.issues.push(exports_util.issue(_issue)); - } - }; - const output = def.transform(payload.value, payload); - if (output instanceof Promise) { - return output.then((output2) => { - payload.value = output2; - return payload; - }); - } - payload.value = output; - return payload; - }; -}); -function transform(fn) { - return new ZodTransform({ - type: "transform", - transform: fn - }); -} -var ZodOptional = /* @__PURE__ */ $constructor("ZodOptional", (inst, def) => { - $ZodOptional.init(inst, def); - ZodType.init(inst, def); - inst._zod.processJSONSchema = (ctx, json, params) => optionalProcessor(inst, ctx, json, params); - inst.unwrap = () => inst._zod.def.innerType; -}); -function optional(innerType) { - return new ZodOptional({ - type: "optional", - innerType - }); -} -var ZodExactOptional = /* @__PURE__ */ $constructor("ZodExactOptional", (inst, def) => { - $ZodExactOptional.init(inst, def); - ZodType.init(inst, def); - inst._zod.processJSONSchema = (ctx, json, params) => optionalProcessor(inst, ctx, json, params); - inst.unwrap = () => inst._zod.def.innerType; -}); -function exactOptional(innerType) { - return new ZodExactOptional({ - type: "optional", - innerType - }); -} -var ZodNullable = /* @__PURE__ */ $constructor("ZodNullable", (inst, def) => { - $ZodNullable.init(inst, def); - ZodType.init(inst, def); - inst._zod.processJSONSchema = (ctx, json, params) => nullableProcessor(inst, ctx, json, params); - inst.unwrap = () => inst._zod.def.innerType; -}); -function nullable(innerType) { - return new ZodNullable({ - type: "nullable", - innerType - }); -} -var ZodDefault = /* @__PURE__ */ $constructor("ZodDefault", (inst, def) => { - $ZodDefault.init(inst, def); - ZodType.init(inst, def); - inst._zod.processJSONSchema = (ctx, json, params) => defaultProcessor(inst, ctx, json, params); - inst.unwrap = () => inst._zod.def.innerType; - inst.removeDefault = inst.unwrap; -}); -function _default(innerType, defaultValue) { - return new ZodDefault({ - type: "default", - innerType, - get defaultValue() { - return typeof defaultValue === "function" ? defaultValue() : exports_util.shallowClone(defaultValue); - } - }); -} -var ZodPrefault = /* @__PURE__ */ $constructor("ZodPrefault", (inst, def) => { - $ZodPrefault.init(inst, def); - ZodType.init(inst, def); - inst._zod.processJSONSchema = (ctx, json, params) => prefaultProcessor(inst, ctx, json, params); - inst.unwrap = () => inst._zod.def.innerType; -}); -function prefault(innerType, defaultValue) { - return new ZodPrefault({ - type: "prefault", - innerType, - get defaultValue() { - return typeof defaultValue === "function" ? defaultValue() : exports_util.shallowClone(defaultValue); - } - }); -} -var ZodNonOptional = /* @__PURE__ */ $constructor("ZodNonOptional", (inst, def) => { - $ZodNonOptional.init(inst, def); - ZodType.init(inst, def); - inst._zod.processJSONSchema = (ctx, json, params) => nonoptionalProcessor(inst, ctx, json, params); - inst.unwrap = () => inst._zod.def.innerType; -}); -function nonoptional(innerType, params) { - return new ZodNonOptional({ - type: "nonoptional", - innerType, - ...exports_util.normalizeParams(params) - }); -} -var ZodCatch = /* @__PURE__ */ $constructor("ZodCatch", (inst, def) => { - $ZodCatch.init(inst, def); - ZodType.init(inst, def); - inst._zod.processJSONSchema = (ctx, json, params) => catchProcessor(inst, ctx, json, params); - inst.unwrap = () => inst._zod.def.innerType; - inst.removeCatch = inst.unwrap; -}); -function _catch(innerType, catchValue) { - return new ZodCatch({ - type: "catch", - innerType, - catchValue: typeof catchValue === "function" ? catchValue : () => catchValue - }); -} -var ZodPipe = /* @__PURE__ */ $constructor("ZodPipe", (inst, def) => { - $ZodPipe.init(inst, def); - ZodType.init(inst, def); - inst._zod.processJSONSchema = (ctx, json, params) => pipeProcessor(inst, ctx, json, params); - inst.in = def.in; - inst.out = def.out; -}); -function pipe(in_, out) { - return new ZodPipe({ - type: "pipe", - in: in_, - out - }); -} -var ZodReadonly = /* @__PURE__ */ $constructor("ZodReadonly", (inst, def) => { - $ZodReadonly.init(inst, def); - ZodType.init(inst, def); - inst._zod.processJSONSchema = (ctx, json, params) => readonlyProcessor(inst, ctx, json, params); - inst.unwrap = () => inst._zod.def.innerType; -}); -function readonly(innerType) { - return new ZodReadonly({ - type: "readonly", - innerType - }); -} -var ZodCustom = /* @__PURE__ */ $constructor("ZodCustom", (inst, def) => { - $ZodCustom.init(inst, def); - ZodType.init(inst, def); - inst._zod.processJSONSchema = (ctx, json, params) => customProcessor(inst, ctx, json, params); -}); -function custom(fn, _params) { - return _custom(ZodCustom, fn ?? (() => true), _params); -} -function refine(fn, _params = {}) { - return _refine(ZodCustom, fn, _params); -} -function superRefine(fn) { - return _superRefine(fn); -} -function preprocess(fn, schema) { - return pipe(transform(fn), schema); -} -// node_modules/zod/v4/classic/external.js -config(en_default()); - -// node_modules/@modelcontextprotocol/sdk/dist/esm/types.js -var LATEST_PROTOCOL_VERSION = "2025-11-25"; -var SUPPORTED_PROTOCOL_VERSIONS = [LATEST_PROTOCOL_VERSION, "2025-06-18", "2025-03-26", "2024-11-05", "2024-10-07"]; -var RELATED_TASK_META_KEY = "io.modelcontextprotocol/related-task"; -var JSONRPC_VERSION = "2.0"; -var AssertObjectSchema = custom((v) => v !== null && (typeof v === "object" || typeof v === "function")); -var ProgressTokenSchema = union([string2(), number2().int()]); -var CursorSchema = string2(); -var TaskCreationParamsSchema = looseObject({ - ttl: union([number2(), _null3()]).optional(), - pollInterval: number2().optional() -}); -var TaskMetadataSchema = object2({ - ttl: number2().optional() -}); -var RelatedTaskMetadataSchema = object2({ - taskId: string2() -}); -var RequestMetaSchema = looseObject({ - progressToken: ProgressTokenSchema.optional(), - [RELATED_TASK_META_KEY]: RelatedTaskMetadataSchema.optional() -}); -var BaseRequestParamsSchema = object2({ - _meta: RequestMetaSchema.optional() -}); -var TaskAugmentedRequestParamsSchema = BaseRequestParamsSchema.extend({ - task: TaskMetadataSchema.optional() -}); -var isTaskAugmentedRequestParams = (value) => TaskAugmentedRequestParamsSchema.safeParse(value).success; -var RequestSchema = object2({ - method: string2(), - params: BaseRequestParamsSchema.loose().optional() -}); -var NotificationsParamsSchema = object2({ - _meta: RequestMetaSchema.optional() -}); -var NotificationSchema = object2({ - method: string2(), - params: NotificationsParamsSchema.loose().optional() -}); -var ResultSchema = looseObject({ - _meta: RequestMetaSchema.optional() -}); -var RequestIdSchema = union([string2(), number2().int()]); -var JSONRPCRequestSchema = object2({ - jsonrpc: literal(JSONRPC_VERSION), - id: RequestIdSchema, - ...RequestSchema.shape -}).strict(); -var isJSONRPCRequest = (value) => JSONRPCRequestSchema.safeParse(value).success; -var JSONRPCNotificationSchema = object2({ - jsonrpc: literal(JSONRPC_VERSION), - ...NotificationSchema.shape -}).strict(); -var isJSONRPCNotification = (value) => JSONRPCNotificationSchema.safeParse(value).success; -var JSONRPCResultResponseSchema = object2({ - jsonrpc: literal(JSONRPC_VERSION), - id: RequestIdSchema, - result: ResultSchema -}).strict(); -var isJSONRPCResultResponse = (value) => JSONRPCResultResponseSchema.safeParse(value).success; -var ErrorCode; -(function(ErrorCode2) { - ErrorCode2[ErrorCode2["ConnectionClosed"] = -32000] = "ConnectionClosed"; - ErrorCode2[ErrorCode2["RequestTimeout"] = -32001] = "RequestTimeout"; - ErrorCode2[ErrorCode2["ParseError"] = -32700] = "ParseError"; - ErrorCode2[ErrorCode2["InvalidRequest"] = -32600] = "InvalidRequest"; - ErrorCode2[ErrorCode2["MethodNotFound"] = -32601] = "MethodNotFound"; - ErrorCode2[ErrorCode2["InvalidParams"] = -32602] = "InvalidParams"; - ErrorCode2[ErrorCode2["InternalError"] = -32603] = "InternalError"; - ErrorCode2[ErrorCode2["UrlElicitationRequired"] = -32042] = "UrlElicitationRequired"; -})(ErrorCode || (ErrorCode = {})); -var JSONRPCErrorResponseSchema = object2({ - jsonrpc: literal(JSONRPC_VERSION), - id: RequestIdSchema.optional(), - error: object2({ - code: number2().int(), - message: string2(), - data: unknown().optional() - }) -}).strict(); -var isJSONRPCErrorResponse = (value) => JSONRPCErrorResponseSchema.safeParse(value).success; -var JSONRPCMessageSchema = union([ - JSONRPCRequestSchema, - JSONRPCNotificationSchema, - JSONRPCResultResponseSchema, - JSONRPCErrorResponseSchema -]); -var JSONRPCResponseSchema = union([JSONRPCResultResponseSchema, JSONRPCErrorResponseSchema]); -var EmptyResultSchema = ResultSchema.strict(); -var CancelledNotificationParamsSchema = NotificationsParamsSchema.extend({ - requestId: RequestIdSchema.optional(), - reason: string2().optional() -}); -var CancelledNotificationSchema = NotificationSchema.extend({ - method: literal("notifications/cancelled"), - params: CancelledNotificationParamsSchema -}); -var IconSchema = object2({ - src: string2(), - mimeType: string2().optional(), - sizes: array(string2()).optional(), - theme: _enum(["light", "dark"]).optional() -}); -var IconsSchema = object2({ - icons: array(IconSchema).optional() -}); -var BaseMetadataSchema = object2({ - name: string2(), - title: string2().optional() -}); -var ImplementationSchema = BaseMetadataSchema.extend({ - ...BaseMetadataSchema.shape, - ...IconsSchema.shape, - version: string2(), - websiteUrl: string2().optional(), - description: string2().optional() -}); -var FormElicitationCapabilitySchema = intersection(object2({ - applyDefaults: boolean2().optional() -}), record(string2(), unknown())); -var ElicitationCapabilitySchema = preprocess((value) => { - if (value && typeof value === "object" && !Array.isArray(value)) { - if (Object.keys(value).length === 0) { - return { form: {} }; - } - } - return value; -}, intersection(object2({ - form: FormElicitationCapabilitySchema.optional(), - url: AssertObjectSchema.optional() -}), record(string2(), unknown()).optional())); -var ClientTasksCapabilitySchema = looseObject({ - list: AssertObjectSchema.optional(), - cancel: AssertObjectSchema.optional(), - requests: looseObject({ - sampling: looseObject({ - createMessage: AssertObjectSchema.optional() - }).optional(), - elicitation: looseObject({ - create: AssertObjectSchema.optional() - }).optional() - }).optional() -}); -var ServerTasksCapabilitySchema = looseObject({ - list: AssertObjectSchema.optional(), - cancel: AssertObjectSchema.optional(), - requests: looseObject({ - tools: looseObject({ - call: AssertObjectSchema.optional() - }).optional() - }).optional() -}); -var ClientCapabilitiesSchema = object2({ - experimental: record(string2(), AssertObjectSchema).optional(), - sampling: object2({ - context: AssertObjectSchema.optional(), - tools: AssertObjectSchema.optional() - }).optional(), - elicitation: ElicitationCapabilitySchema.optional(), - roots: object2({ - listChanged: boolean2().optional() - }).optional(), - tasks: ClientTasksCapabilitySchema.optional() -}); -var InitializeRequestParamsSchema = BaseRequestParamsSchema.extend({ - protocolVersion: string2(), - capabilities: ClientCapabilitiesSchema, - clientInfo: ImplementationSchema -}); -var InitializeRequestSchema = RequestSchema.extend({ - method: literal("initialize"), - params: InitializeRequestParamsSchema -}); -var ServerCapabilitiesSchema = object2({ - experimental: record(string2(), AssertObjectSchema).optional(), - logging: AssertObjectSchema.optional(), - completions: AssertObjectSchema.optional(), - prompts: object2({ - listChanged: boolean2().optional() - }).optional(), - resources: object2({ - subscribe: boolean2().optional(), - listChanged: boolean2().optional() - }).optional(), - tools: object2({ - listChanged: boolean2().optional() - }).optional(), - tasks: ServerTasksCapabilitySchema.optional() -}); -var InitializeResultSchema = ResultSchema.extend({ - protocolVersion: string2(), - capabilities: ServerCapabilitiesSchema, - serverInfo: ImplementationSchema, - instructions: string2().optional() -}); -var InitializedNotificationSchema = NotificationSchema.extend({ - method: literal("notifications/initialized"), - params: NotificationsParamsSchema.optional() -}); -var PingRequestSchema = RequestSchema.extend({ - method: literal("ping"), - params: BaseRequestParamsSchema.optional() -}); -var ProgressSchema = object2({ - progress: number2(), - total: optional(number2()), - message: optional(string2()) -}); -var ProgressNotificationParamsSchema = object2({ - ...NotificationsParamsSchema.shape, - ...ProgressSchema.shape, - progressToken: ProgressTokenSchema -}); -var ProgressNotificationSchema = NotificationSchema.extend({ - method: literal("notifications/progress"), - params: ProgressNotificationParamsSchema -}); -var PaginatedRequestParamsSchema = BaseRequestParamsSchema.extend({ - cursor: CursorSchema.optional() -}); -var PaginatedRequestSchema = RequestSchema.extend({ - params: PaginatedRequestParamsSchema.optional() -}); -var PaginatedResultSchema = ResultSchema.extend({ - nextCursor: CursorSchema.optional() -}); -var TaskStatusSchema = _enum(["working", "input_required", "completed", "failed", "cancelled"]); -var TaskSchema = object2({ - taskId: string2(), - status: TaskStatusSchema, - ttl: union([number2(), _null3()]), - createdAt: string2(), - lastUpdatedAt: string2(), - pollInterval: optional(number2()), - statusMessage: optional(string2()) -}); -var CreateTaskResultSchema = ResultSchema.extend({ - task: TaskSchema -}); -var TaskStatusNotificationParamsSchema = NotificationsParamsSchema.merge(TaskSchema); -var TaskStatusNotificationSchema = NotificationSchema.extend({ - method: literal("notifications/tasks/status"), - params: TaskStatusNotificationParamsSchema -}); -var GetTaskRequestSchema = RequestSchema.extend({ - method: literal("tasks/get"), - params: BaseRequestParamsSchema.extend({ - taskId: string2() - }) -}); -var GetTaskResultSchema = ResultSchema.merge(TaskSchema); -var GetTaskPayloadRequestSchema = RequestSchema.extend({ - method: literal("tasks/result"), - params: BaseRequestParamsSchema.extend({ - taskId: string2() - }) -}); -var GetTaskPayloadResultSchema = ResultSchema.loose(); -var ListTasksRequestSchema = PaginatedRequestSchema.extend({ - method: literal("tasks/list") -}); -var ListTasksResultSchema = PaginatedResultSchema.extend({ - tasks: array(TaskSchema) -}); -var CancelTaskRequestSchema = RequestSchema.extend({ - method: literal("tasks/cancel"), - params: BaseRequestParamsSchema.extend({ - taskId: string2() - }) -}); -var CancelTaskResultSchema = ResultSchema.merge(TaskSchema); -var ResourceContentsSchema = object2({ - uri: string2(), - mimeType: optional(string2()), - _meta: record(string2(), unknown()).optional() -}); -var TextResourceContentsSchema = ResourceContentsSchema.extend({ - text: string2() -}); -var Base64Schema = string2().refine((val) => { - try { - atob(val); - return true; - } catch { - return false; - } -}, { message: "Invalid Base64 string" }); -var BlobResourceContentsSchema = ResourceContentsSchema.extend({ - blob: Base64Schema -}); -var RoleSchema = _enum(["user", "assistant"]); -var AnnotationsSchema = object2({ - audience: array(RoleSchema).optional(), - priority: number2().min(0).max(1).optional(), - lastModified: exports_iso.datetime({ offset: true }).optional() -}); -var ResourceSchema = object2({ - ...BaseMetadataSchema.shape, - ...IconsSchema.shape, - uri: string2(), - description: optional(string2()), - mimeType: optional(string2()), - annotations: AnnotationsSchema.optional(), - _meta: optional(looseObject({})) -}); -var ResourceTemplateSchema = object2({ - ...BaseMetadataSchema.shape, - ...IconsSchema.shape, - uriTemplate: string2(), - description: optional(string2()), - mimeType: optional(string2()), - annotations: AnnotationsSchema.optional(), - _meta: optional(looseObject({})) -}); -var ListResourcesRequestSchema = PaginatedRequestSchema.extend({ - method: literal("resources/list") -}); -var ListResourcesResultSchema = PaginatedResultSchema.extend({ - resources: array(ResourceSchema) -}); -var ListResourceTemplatesRequestSchema = PaginatedRequestSchema.extend({ - method: literal("resources/templates/list") -}); -var ListResourceTemplatesResultSchema = PaginatedResultSchema.extend({ - resourceTemplates: array(ResourceTemplateSchema) -}); -var ResourceRequestParamsSchema = BaseRequestParamsSchema.extend({ - uri: string2() -}); -var ReadResourceRequestParamsSchema = ResourceRequestParamsSchema; -var ReadResourceRequestSchema = RequestSchema.extend({ - method: literal("resources/read"), - params: ReadResourceRequestParamsSchema -}); -var ReadResourceResultSchema = ResultSchema.extend({ - contents: array(union([TextResourceContentsSchema, BlobResourceContentsSchema])) -}); -var ResourceListChangedNotificationSchema = NotificationSchema.extend({ - method: literal("notifications/resources/list_changed"), - params: NotificationsParamsSchema.optional() -}); -var SubscribeRequestParamsSchema = ResourceRequestParamsSchema; -var SubscribeRequestSchema = RequestSchema.extend({ - method: literal("resources/subscribe"), - params: SubscribeRequestParamsSchema -}); -var UnsubscribeRequestParamsSchema = ResourceRequestParamsSchema; -var UnsubscribeRequestSchema = RequestSchema.extend({ - method: literal("resources/unsubscribe"), - params: UnsubscribeRequestParamsSchema -}); -var ResourceUpdatedNotificationParamsSchema = NotificationsParamsSchema.extend({ - uri: string2() -}); -var ResourceUpdatedNotificationSchema = NotificationSchema.extend({ - method: literal("notifications/resources/updated"), - params: ResourceUpdatedNotificationParamsSchema -}); -var PromptArgumentSchema = object2({ - name: string2(), - description: optional(string2()), - required: optional(boolean2()) -}); -var PromptSchema = object2({ - ...BaseMetadataSchema.shape, - ...IconsSchema.shape, - description: optional(string2()), - arguments: optional(array(PromptArgumentSchema)), - _meta: optional(looseObject({})) -}); -var ListPromptsRequestSchema = PaginatedRequestSchema.extend({ - method: literal("prompts/list") -}); -var ListPromptsResultSchema = PaginatedResultSchema.extend({ - prompts: array(PromptSchema) -}); -var GetPromptRequestParamsSchema = BaseRequestParamsSchema.extend({ - name: string2(), - arguments: record(string2(), string2()).optional() -}); -var GetPromptRequestSchema = RequestSchema.extend({ - method: literal("prompts/get"), - params: GetPromptRequestParamsSchema -}); -var TextContentSchema = object2({ - type: literal("text"), - text: string2(), - annotations: AnnotationsSchema.optional(), - _meta: record(string2(), unknown()).optional() -}); -var ImageContentSchema = object2({ - type: literal("image"), - data: Base64Schema, - mimeType: string2(), - annotations: AnnotationsSchema.optional(), - _meta: record(string2(), unknown()).optional() -}); -var AudioContentSchema = object2({ - type: literal("audio"), - data: Base64Schema, - mimeType: string2(), - annotations: AnnotationsSchema.optional(), - _meta: record(string2(), unknown()).optional() -}); -var ToolUseContentSchema = object2({ - type: literal("tool_use"), - name: string2(), - id: string2(), - input: record(string2(), unknown()), - _meta: record(string2(), unknown()).optional() -}); -var EmbeddedResourceSchema = object2({ - type: literal("resource"), - resource: union([TextResourceContentsSchema, BlobResourceContentsSchema]), - annotations: AnnotationsSchema.optional(), - _meta: record(string2(), unknown()).optional() -}); -var ResourceLinkSchema = ResourceSchema.extend({ - type: literal("resource_link") -}); -var ContentBlockSchema = union([ - TextContentSchema, - ImageContentSchema, - AudioContentSchema, - ResourceLinkSchema, - EmbeddedResourceSchema -]); -var PromptMessageSchema = object2({ - role: RoleSchema, - content: ContentBlockSchema -}); -var GetPromptResultSchema = ResultSchema.extend({ - description: string2().optional(), - messages: array(PromptMessageSchema) -}); -var PromptListChangedNotificationSchema = NotificationSchema.extend({ - method: literal("notifications/prompts/list_changed"), - params: NotificationsParamsSchema.optional() -}); -var ToolAnnotationsSchema = object2({ - title: string2().optional(), - readOnlyHint: boolean2().optional(), - destructiveHint: boolean2().optional(), - idempotentHint: boolean2().optional(), - openWorldHint: boolean2().optional() -}); -var ToolExecutionSchema = object2({ - taskSupport: _enum(["required", "optional", "forbidden"]).optional() -}); -var ToolSchema = object2({ - ...BaseMetadataSchema.shape, - ...IconsSchema.shape, - description: string2().optional(), - inputSchema: object2({ - type: literal("object"), - properties: record(string2(), AssertObjectSchema).optional(), - required: array(string2()).optional() - }).catchall(unknown()), - outputSchema: object2({ - type: literal("object"), - properties: record(string2(), AssertObjectSchema).optional(), - required: array(string2()).optional() - }).catchall(unknown()).optional(), - annotations: ToolAnnotationsSchema.optional(), - execution: ToolExecutionSchema.optional(), - _meta: record(string2(), unknown()).optional() -}); -var ListToolsRequestSchema = PaginatedRequestSchema.extend({ - method: literal("tools/list") -}); -var ListToolsResultSchema = PaginatedResultSchema.extend({ - tools: array(ToolSchema) -}); -var CallToolResultSchema = ResultSchema.extend({ - content: array(ContentBlockSchema).default([]), - structuredContent: record(string2(), unknown()).optional(), - isError: boolean2().optional() -}); -var CompatibilityCallToolResultSchema = CallToolResultSchema.or(ResultSchema.extend({ - toolResult: unknown() -})); -var CallToolRequestParamsSchema = TaskAugmentedRequestParamsSchema.extend({ - name: string2(), - arguments: record(string2(), unknown()).optional() -}); -var CallToolRequestSchema = RequestSchema.extend({ - method: literal("tools/call"), - params: CallToolRequestParamsSchema -}); -var ToolListChangedNotificationSchema = NotificationSchema.extend({ - method: literal("notifications/tools/list_changed"), - params: NotificationsParamsSchema.optional() -}); -var ListChangedOptionsBaseSchema = object2({ - autoRefresh: boolean2().default(true), - debounceMs: number2().int().nonnegative().default(300) -}); -var LoggingLevelSchema = _enum(["debug", "info", "notice", "warning", "error", "critical", "alert", "emergency"]); -var SetLevelRequestParamsSchema = BaseRequestParamsSchema.extend({ - level: LoggingLevelSchema -}); -var SetLevelRequestSchema = RequestSchema.extend({ - method: literal("logging/setLevel"), - params: SetLevelRequestParamsSchema -}); -var LoggingMessageNotificationParamsSchema = NotificationsParamsSchema.extend({ - level: LoggingLevelSchema, - logger: string2().optional(), - data: unknown() -}); -var LoggingMessageNotificationSchema = NotificationSchema.extend({ - method: literal("notifications/message"), - params: LoggingMessageNotificationParamsSchema -}); -var ModelHintSchema = object2({ - name: string2().optional() -}); -var ModelPreferencesSchema = object2({ - hints: array(ModelHintSchema).optional(), - costPriority: number2().min(0).max(1).optional(), - speedPriority: number2().min(0).max(1).optional(), - intelligencePriority: number2().min(0).max(1).optional() -}); -var ToolChoiceSchema = object2({ - mode: _enum(["auto", "required", "none"]).optional() -}); -var ToolResultContentSchema = object2({ - type: literal("tool_result"), - toolUseId: string2().describe("The unique identifier for the corresponding tool call."), - content: array(ContentBlockSchema).default([]), - structuredContent: object2({}).loose().optional(), - isError: boolean2().optional(), - _meta: record(string2(), unknown()).optional() -}); -var SamplingContentSchema = discriminatedUnion("type", [TextContentSchema, ImageContentSchema, AudioContentSchema]); -var SamplingMessageContentBlockSchema = discriminatedUnion("type", [ - TextContentSchema, - ImageContentSchema, - AudioContentSchema, - ToolUseContentSchema, - ToolResultContentSchema -]); -var SamplingMessageSchema = object2({ - role: RoleSchema, - content: union([SamplingMessageContentBlockSchema, array(SamplingMessageContentBlockSchema)]), - _meta: record(string2(), unknown()).optional() -}); -var CreateMessageRequestParamsSchema = TaskAugmentedRequestParamsSchema.extend({ - messages: array(SamplingMessageSchema), - modelPreferences: ModelPreferencesSchema.optional(), - systemPrompt: string2().optional(), - includeContext: _enum(["none", "thisServer", "allServers"]).optional(), - temperature: number2().optional(), - maxTokens: number2().int(), - stopSequences: array(string2()).optional(), - metadata: AssertObjectSchema.optional(), - tools: array(ToolSchema).optional(), - toolChoice: ToolChoiceSchema.optional() -}); -var CreateMessageRequestSchema = RequestSchema.extend({ - method: literal("sampling/createMessage"), - params: CreateMessageRequestParamsSchema -}); -var CreateMessageResultSchema = ResultSchema.extend({ - model: string2(), - stopReason: optional(_enum(["endTurn", "stopSequence", "maxTokens"]).or(string2())), - role: RoleSchema, - content: SamplingContentSchema -}); -var CreateMessageResultWithToolsSchema = ResultSchema.extend({ - model: string2(), - stopReason: optional(_enum(["endTurn", "stopSequence", "maxTokens", "toolUse"]).or(string2())), - role: RoleSchema, - content: union([SamplingMessageContentBlockSchema, array(SamplingMessageContentBlockSchema)]) -}); -var BooleanSchemaSchema = object2({ - type: literal("boolean"), - title: string2().optional(), - description: string2().optional(), - default: boolean2().optional() -}); -var StringSchemaSchema = object2({ - type: literal("string"), - title: string2().optional(), - description: string2().optional(), - minLength: number2().optional(), - maxLength: number2().optional(), - format: _enum(["email", "uri", "date", "date-time"]).optional(), - default: string2().optional() -}); -var NumberSchemaSchema = object2({ - type: _enum(["number", "integer"]), - title: string2().optional(), - description: string2().optional(), - minimum: number2().optional(), - maximum: number2().optional(), - default: number2().optional() -}); -var UntitledSingleSelectEnumSchemaSchema = object2({ - type: literal("string"), - title: string2().optional(), - description: string2().optional(), - enum: array(string2()), - default: string2().optional() -}); -var TitledSingleSelectEnumSchemaSchema = object2({ - type: literal("string"), - title: string2().optional(), - description: string2().optional(), - oneOf: array(object2({ - const: string2(), - title: string2() - })), - default: string2().optional() -}); -var LegacyTitledEnumSchemaSchema = object2({ - type: literal("string"), - title: string2().optional(), - description: string2().optional(), - enum: array(string2()), - enumNames: array(string2()).optional(), - default: string2().optional() -}); -var SingleSelectEnumSchemaSchema = union([UntitledSingleSelectEnumSchemaSchema, TitledSingleSelectEnumSchemaSchema]); -var UntitledMultiSelectEnumSchemaSchema = object2({ - type: literal("array"), - title: string2().optional(), - description: string2().optional(), - minItems: number2().optional(), - maxItems: number2().optional(), - items: object2({ - type: literal("string"), - enum: array(string2()) - }), - default: array(string2()).optional() -}); -var TitledMultiSelectEnumSchemaSchema = object2({ - type: literal("array"), - title: string2().optional(), - description: string2().optional(), - minItems: number2().optional(), - maxItems: number2().optional(), - items: object2({ - anyOf: array(object2({ - const: string2(), - title: string2() - })) - }), - default: array(string2()).optional() -}); -var MultiSelectEnumSchemaSchema = union([UntitledMultiSelectEnumSchemaSchema, TitledMultiSelectEnumSchemaSchema]); -var EnumSchemaSchema = union([LegacyTitledEnumSchemaSchema, SingleSelectEnumSchemaSchema, MultiSelectEnumSchemaSchema]); -var PrimitiveSchemaDefinitionSchema = union([EnumSchemaSchema, BooleanSchemaSchema, StringSchemaSchema, NumberSchemaSchema]); -var ElicitRequestFormParamsSchema = TaskAugmentedRequestParamsSchema.extend({ - mode: literal("form").optional(), - message: string2(), - requestedSchema: object2({ - type: literal("object"), - properties: record(string2(), PrimitiveSchemaDefinitionSchema), - required: array(string2()).optional() - }) -}); -var ElicitRequestURLParamsSchema = TaskAugmentedRequestParamsSchema.extend({ - mode: literal("url"), - message: string2(), - elicitationId: string2(), - url: string2().url() -}); -var ElicitRequestParamsSchema = union([ElicitRequestFormParamsSchema, ElicitRequestURLParamsSchema]); -var ElicitRequestSchema = RequestSchema.extend({ - method: literal("elicitation/create"), - params: ElicitRequestParamsSchema -}); -var ElicitationCompleteNotificationParamsSchema = NotificationsParamsSchema.extend({ - elicitationId: string2() -}); -var ElicitationCompleteNotificationSchema = NotificationSchema.extend({ - method: literal("notifications/elicitation/complete"), - params: ElicitationCompleteNotificationParamsSchema -}); -var ElicitResultSchema = ResultSchema.extend({ - action: _enum(["accept", "decline", "cancel"]), - content: preprocess((val) => val === null ? undefined : val, record(string2(), union([string2(), number2(), boolean2(), array(string2())])).optional()) -}); -var ResourceTemplateReferenceSchema = object2({ - type: literal("ref/resource"), - uri: string2() -}); -var PromptReferenceSchema = object2({ - type: literal("ref/prompt"), - name: string2() -}); -var CompleteRequestParamsSchema = BaseRequestParamsSchema.extend({ - ref: union([PromptReferenceSchema, ResourceTemplateReferenceSchema]), - argument: object2({ - name: string2(), - value: string2() - }), - context: object2({ - arguments: record(string2(), string2()).optional() - }).optional() -}); -var CompleteRequestSchema = RequestSchema.extend({ - method: literal("completion/complete"), - params: CompleteRequestParamsSchema -}); -var CompleteResultSchema = ResultSchema.extend({ - completion: looseObject({ - values: array(string2()).max(100), - total: optional(number2().int()), - hasMore: optional(boolean2()) - }) -}); -var RootSchema = object2({ - uri: string2().startsWith("file://"), - name: string2().optional(), - _meta: record(string2(), unknown()).optional() -}); -var ListRootsRequestSchema = RequestSchema.extend({ - method: literal("roots/list"), - params: BaseRequestParamsSchema.optional() -}); -var ListRootsResultSchema = ResultSchema.extend({ - roots: array(RootSchema) -}); -var RootsListChangedNotificationSchema = NotificationSchema.extend({ - method: literal("notifications/roots/list_changed"), - params: NotificationsParamsSchema.optional() -}); -var ClientRequestSchema = union([ - PingRequestSchema, - InitializeRequestSchema, - CompleteRequestSchema, - SetLevelRequestSchema, - GetPromptRequestSchema, - ListPromptsRequestSchema, - ListResourcesRequestSchema, - ListResourceTemplatesRequestSchema, - ReadResourceRequestSchema, - SubscribeRequestSchema, - UnsubscribeRequestSchema, - CallToolRequestSchema, - ListToolsRequestSchema, - GetTaskRequestSchema, - GetTaskPayloadRequestSchema, - ListTasksRequestSchema, - CancelTaskRequestSchema -]); -var ClientNotificationSchema = union([ - CancelledNotificationSchema, - ProgressNotificationSchema, - InitializedNotificationSchema, - RootsListChangedNotificationSchema, - TaskStatusNotificationSchema -]); -var ClientResultSchema = union([ - EmptyResultSchema, - CreateMessageResultSchema, - CreateMessageResultWithToolsSchema, - ElicitResultSchema, - ListRootsResultSchema, - GetTaskResultSchema, - ListTasksResultSchema, - CreateTaskResultSchema -]); -var ServerRequestSchema = union([ - PingRequestSchema, - CreateMessageRequestSchema, - ElicitRequestSchema, - ListRootsRequestSchema, - GetTaskRequestSchema, - GetTaskPayloadRequestSchema, - ListTasksRequestSchema, - CancelTaskRequestSchema -]); -var ServerNotificationSchema = union([ - CancelledNotificationSchema, - ProgressNotificationSchema, - LoggingMessageNotificationSchema, - ResourceUpdatedNotificationSchema, - ResourceListChangedNotificationSchema, - ToolListChangedNotificationSchema, - PromptListChangedNotificationSchema, - TaskStatusNotificationSchema, - ElicitationCompleteNotificationSchema -]); -var ServerResultSchema = union([ - EmptyResultSchema, - InitializeResultSchema, - CompleteResultSchema, - GetPromptResultSchema, - ListPromptsResultSchema, - ListResourcesResultSchema, - ListResourceTemplatesResultSchema, - ReadResourceResultSchema, - CallToolResultSchema, - ListToolsResultSchema, - GetTaskResultSchema, - ListTasksResultSchema, - CreateTaskResultSchema -]); - -class McpError extends Error { - constructor(code, message, data) { - super(`MCP error ${code}: ${message}`); - this.code = code; - this.data = data; - this.name = "McpError"; - } - static fromError(code, message, data) { - if (code === ErrorCode.UrlElicitationRequired && data) { - const errorData = data; - if (errorData.elicitations) { - return new UrlElicitationRequiredError(errorData.elicitations, message); - } - } - return new McpError(code, message, data); - } -} - -class UrlElicitationRequiredError extends McpError { - constructor(elicitations, message = `URL elicitation${elicitations.length > 1 ? "s" : ""} required`) { - super(ErrorCode.UrlElicitationRequired, message, { - elicitations - }); - } - get elicitations() { - return this.data?.elicitations ?? []; - } -} - -// node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js -function isTerminal(status) { - return status === "completed" || status === "failed" || status === "cancelled"; -} - -// node_modules/zod-to-json-schema/dist/esm/Options.js -var ignoreOverride = Symbol("Let zodToJsonSchema decide on which parser to use"); -// node_modules/zod-to-json-schema/dist/esm/parsers/string.js -var ALPHA_NUMERIC = new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789"); -// node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js -function getMethodLiteral(schema) { - const shape = getObjectShape(schema); - const methodSchema = shape?.method; - if (!methodSchema) { - throw new Error("Schema is missing a method literal"); - } - const value = getLiteralValue(methodSchema); - if (typeof value !== "string") { - throw new Error("Schema method literal must be a string"); - } - return value; -} -function parseWithCompat(schema, data) { - const result = safeParse2(schema, data); - if (!result.success) { - throw result.error; - } - return result.data; -} - -// node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js -var DEFAULT_REQUEST_TIMEOUT_MSEC = 60000; - -class Protocol { - constructor(_options) { - this._options = _options; - this._requestMessageId = 0; - this._requestHandlers = new Map; - this._requestHandlerAbortControllers = new Map; - this._notificationHandlers = new Map; - this._responseHandlers = new Map; - this._progressHandlers = new Map; - this._timeoutInfo = new Map; - this._pendingDebouncedNotifications = new Set; - this._taskProgressTokens = new Map; - this._requestResolvers = new Map; - this.setNotificationHandler(CancelledNotificationSchema, (notification) => { - this._oncancel(notification); - }); - this.setNotificationHandler(ProgressNotificationSchema, (notification) => { - this._onprogress(notification); - }); - this.setRequestHandler(PingRequestSchema, (_request) => ({})); - this._taskStore = _options?.taskStore; - this._taskMessageQueue = _options?.taskMessageQueue; - if (this._taskStore) { - this.setRequestHandler(GetTaskRequestSchema, async (request, extra) => { - const task = await this._taskStore.getTask(request.params.taskId, extra.sessionId); - if (!task) { - throw new McpError(ErrorCode.InvalidParams, "Failed to retrieve task: Task not found"); - } - return { - ...task - }; - }); - this.setRequestHandler(GetTaskPayloadRequestSchema, async (request, extra) => { - const handleTaskResult = async () => { - const taskId = request.params.taskId; - if (this._taskMessageQueue) { - let queuedMessage; - while (queuedMessage = await this._taskMessageQueue.dequeue(taskId, extra.sessionId)) { - if (queuedMessage.type === "response" || queuedMessage.type === "error") { - const message = queuedMessage.message; - const requestId = message.id; - const resolver = this._requestResolvers.get(requestId); - if (resolver) { - this._requestResolvers.delete(requestId); - if (queuedMessage.type === "response") { - resolver(message); - } else { - const errorMessage = message; - const error2 = new McpError(errorMessage.error.code, errorMessage.error.message, errorMessage.error.data); - resolver(error2); - } - } else { - const messageType = queuedMessage.type === "response" ? "Response" : "Error"; - this._onerror(new Error(`${messageType} handler missing for request ${requestId}`)); - } - continue; - } - await this._transport?.send(queuedMessage.message, { relatedRequestId: extra.requestId }); - } - } - const task = await this._taskStore.getTask(taskId, extra.sessionId); - if (!task) { - throw new McpError(ErrorCode.InvalidParams, `Task not found: ${taskId}`); - } - if (!isTerminal(task.status)) { - await this._waitForTaskUpdate(taskId, extra.signal); - return await handleTaskResult(); - } - if (isTerminal(task.status)) { - const result = await this._taskStore.getTaskResult(taskId, extra.sessionId); - this._clearTaskQueue(taskId); - return { - ...result, - _meta: { - ...result._meta, - [RELATED_TASK_META_KEY]: { - taskId - } - } - }; - } - return await handleTaskResult(); - }; - return await handleTaskResult(); - }); - this.setRequestHandler(ListTasksRequestSchema, async (request, extra) => { - try { - const { tasks, nextCursor } = await this._taskStore.listTasks(request.params?.cursor, extra.sessionId); - return { - tasks, - nextCursor, - _meta: {} - }; - } catch (error2) { - throw new McpError(ErrorCode.InvalidParams, `Failed to list tasks: ${error2 instanceof Error ? error2.message : String(error2)}`); - } - }); - this.setRequestHandler(CancelTaskRequestSchema, async (request, extra) => { - try { - const task = await this._taskStore.getTask(request.params.taskId, extra.sessionId); - if (!task) { - throw new McpError(ErrorCode.InvalidParams, `Task not found: ${request.params.taskId}`); - } - if (isTerminal(task.status)) { - throw new McpError(ErrorCode.InvalidParams, `Cannot cancel task in terminal status: ${task.status}`); - } - await this._taskStore.updateTaskStatus(request.params.taskId, "cancelled", "Client cancelled task execution.", extra.sessionId); - this._clearTaskQueue(request.params.taskId); - const cancelledTask = await this._taskStore.getTask(request.params.taskId, extra.sessionId); - if (!cancelledTask) { - throw new McpError(ErrorCode.InvalidParams, `Task not found after cancellation: ${request.params.taskId}`); - } - return { - _meta: {}, - ...cancelledTask - }; - } catch (error2) { - if (error2 instanceof McpError) { - throw error2; - } - throw new McpError(ErrorCode.InvalidRequest, `Failed to cancel task: ${error2 instanceof Error ? error2.message : String(error2)}`); - } - }); - } - } - async _oncancel(notification) { - if (!notification.params.requestId) { - return; - } - const controller = this._requestHandlerAbortControllers.get(notification.params.requestId); - controller?.abort(notification.params.reason); - } - _setupTimeout(messageId, timeout, maxTotalTimeout, onTimeout, resetTimeoutOnProgress = false) { - this._timeoutInfo.set(messageId, { - timeoutId: setTimeout(onTimeout, timeout), - startTime: Date.now(), - timeout, - maxTotalTimeout, - resetTimeoutOnProgress, - onTimeout - }); - } - _resetTimeout(messageId) { - const info = this._timeoutInfo.get(messageId); - if (!info) - return false; - const totalElapsed = Date.now() - info.startTime; - if (info.maxTotalTimeout && totalElapsed >= info.maxTotalTimeout) { - this._timeoutInfo.delete(messageId); - throw McpError.fromError(ErrorCode.RequestTimeout, "Maximum total timeout exceeded", { - maxTotalTimeout: info.maxTotalTimeout, - totalElapsed - }); - } - clearTimeout(info.timeoutId); - info.timeoutId = setTimeout(info.onTimeout, info.timeout); - return true; - } - _cleanupTimeout(messageId) { - const info = this._timeoutInfo.get(messageId); - if (info) { - clearTimeout(info.timeoutId); - this._timeoutInfo.delete(messageId); - } - } - async connect(transport) { - if (this._transport) { - throw new Error("Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection."); - } - this._transport = transport; - const _onclose = this.transport?.onclose; - this._transport.onclose = () => { - _onclose?.(); - this._onclose(); - }; - const _onerror = this.transport?.onerror; - this._transport.onerror = (error2) => { - _onerror?.(error2); - this._onerror(error2); - }; - const _onmessage = this._transport?.onmessage; - this._transport.onmessage = (message, extra) => { - _onmessage?.(message, extra); - if (isJSONRPCResultResponse(message) || isJSONRPCErrorResponse(message)) { - this._onresponse(message); - } else if (isJSONRPCRequest(message)) { - this._onrequest(message, extra); - } else if (isJSONRPCNotification(message)) { - this._onnotification(message); - } else { - this._onerror(new Error(`Unknown message type: ${JSON.stringify(message)}`)); - } - }; - await this._transport.start(); - } - _onclose() { - const responseHandlers = this._responseHandlers; - this._responseHandlers = new Map; - this._progressHandlers.clear(); - this._taskProgressTokens.clear(); - this._pendingDebouncedNotifications.clear(); - for (const controller of this._requestHandlerAbortControllers.values()) { - controller.abort(); - } - this._requestHandlerAbortControllers.clear(); - const error2 = McpError.fromError(ErrorCode.ConnectionClosed, "Connection closed"); - this._transport = undefined; - this.onclose?.(); - for (const handler of responseHandlers.values()) { - handler(error2); - } - } - _onerror(error2) { - this.onerror?.(error2); - } - _onnotification(notification) { - const handler = this._notificationHandlers.get(notification.method) ?? this.fallbackNotificationHandler; - if (handler === undefined) { - return; - } - Promise.resolve().then(() => handler(notification)).catch((error2) => this._onerror(new Error(`Uncaught error in notification handler: ${error2}`))); - } - _onrequest(request, extra) { - const handler = this._requestHandlers.get(request.method) ?? this.fallbackRequestHandler; - const capturedTransport = this._transport; - const relatedTaskId = request.params?._meta?.[RELATED_TASK_META_KEY]?.taskId; - if (handler === undefined) { - const errorResponse = { - jsonrpc: "2.0", - id: request.id, - error: { - code: ErrorCode.MethodNotFound, - message: "Method not found" - } - }; - if (relatedTaskId && this._taskMessageQueue) { - this._enqueueTaskMessage(relatedTaskId, { - type: "error", - message: errorResponse, - timestamp: Date.now() - }, capturedTransport?.sessionId).catch((error2) => this._onerror(new Error(`Failed to enqueue error response: ${error2}`))); - } else { - capturedTransport?.send(errorResponse).catch((error2) => this._onerror(new Error(`Failed to send an error response: ${error2}`))); - } - return; - } - const abortController = new AbortController; - this._requestHandlerAbortControllers.set(request.id, abortController); - const taskCreationParams = isTaskAugmentedRequestParams(request.params) ? request.params.task : undefined; - const taskStore = this._taskStore ? this.requestTaskStore(request, capturedTransport?.sessionId) : undefined; - const fullExtra = { - signal: abortController.signal, - sessionId: capturedTransport?.sessionId, - _meta: request.params?._meta, - sendNotification: async (notification) => { - if (abortController.signal.aborted) - return; - const notificationOptions = { relatedRequestId: request.id }; - if (relatedTaskId) { - notificationOptions.relatedTask = { taskId: relatedTaskId }; - } - await this.notification(notification, notificationOptions); - }, - sendRequest: async (r, resultSchema, options) => { - if (abortController.signal.aborted) { - throw new McpError(ErrorCode.ConnectionClosed, "Request was cancelled"); - } - const requestOptions = { ...options, relatedRequestId: request.id }; - if (relatedTaskId && !requestOptions.relatedTask) { - requestOptions.relatedTask = { taskId: relatedTaskId }; - } - const effectiveTaskId = requestOptions.relatedTask?.taskId ?? relatedTaskId; - if (effectiveTaskId && taskStore) { - await taskStore.updateTaskStatus(effectiveTaskId, "input_required"); - } - return await this.request(r, resultSchema, requestOptions); - }, - authInfo: extra?.authInfo, - requestId: request.id, - requestInfo: extra?.requestInfo, - taskId: relatedTaskId, - taskStore, - taskRequestedTtl: taskCreationParams?.ttl, - closeSSEStream: extra?.closeSSEStream, - closeStandaloneSSEStream: extra?.closeStandaloneSSEStream - }; - Promise.resolve().then(() => { - if (taskCreationParams) { - this.assertTaskHandlerCapability(request.method); - } - }).then(() => handler(request, fullExtra)).then(async (result) => { - if (abortController.signal.aborted) { - return; - } - const response = { - result, - jsonrpc: "2.0", - id: request.id - }; - if (relatedTaskId && this._taskMessageQueue) { - await this._enqueueTaskMessage(relatedTaskId, { - type: "response", - message: response, - timestamp: Date.now() - }, capturedTransport?.sessionId); - } else { - await capturedTransport?.send(response); - } - }, async (error2) => { - if (abortController.signal.aborted) { - return; - } - const errorResponse = { - jsonrpc: "2.0", - id: request.id, - error: { - code: Number.isSafeInteger(error2["code"]) ? error2["code"] : ErrorCode.InternalError, - message: error2.message ?? "Internal error", - ...error2["data"] !== undefined && { data: error2["data"] } - } - }; - if (relatedTaskId && this._taskMessageQueue) { - await this._enqueueTaskMessage(relatedTaskId, { - type: "error", - message: errorResponse, - timestamp: Date.now() - }, capturedTransport?.sessionId); - } else { - await capturedTransport?.send(errorResponse); - } - }).catch((error2) => this._onerror(new Error(`Failed to send response: ${error2}`))).finally(() => { - this._requestHandlerAbortControllers.delete(request.id); - }); - } - _onprogress(notification) { - const { progressToken, ...params } = notification.params; - const messageId = Number(progressToken); - const handler = this._progressHandlers.get(messageId); - if (!handler) { - this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(notification)}`)); - return; - } - const responseHandler = this._responseHandlers.get(messageId); - const timeoutInfo = this._timeoutInfo.get(messageId); - if (timeoutInfo && responseHandler && timeoutInfo.resetTimeoutOnProgress) { - try { - this._resetTimeout(messageId); - } catch (error2) { - this._responseHandlers.delete(messageId); - this._progressHandlers.delete(messageId); - this._cleanupTimeout(messageId); - responseHandler(error2); - return; - } - } - handler(params); - } - _onresponse(response) { - const messageId = Number(response.id); - const resolver = this._requestResolvers.get(messageId); - if (resolver) { - this._requestResolvers.delete(messageId); - if (isJSONRPCResultResponse(response)) { - resolver(response); - } else { - const error2 = new McpError(response.error.code, response.error.message, response.error.data); - resolver(error2); - } - return; - } - const handler = this._responseHandlers.get(messageId); - if (handler === undefined) { - this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(response)}`)); - return; - } - this._responseHandlers.delete(messageId); - this._cleanupTimeout(messageId); - let isTaskResponse = false; - if (isJSONRPCResultResponse(response) && response.result && typeof response.result === "object") { - const result = response.result; - if (result.task && typeof result.task === "object") { - const task = result.task; - if (typeof task.taskId === "string") { - isTaskResponse = true; - this._taskProgressTokens.set(task.taskId, messageId); - } - } - } - if (!isTaskResponse) { - this._progressHandlers.delete(messageId); - } - if (isJSONRPCResultResponse(response)) { - handler(response); - } else { - const error2 = McpError.fromError(response.error.code, response.error.message, response.error.data); - handler(error2); - } - } - get transport() { - return this._transport; - } - async close() { - await this._transport?.close(); - } - async* requestStream(request, resultSchema, options) { - const { task } = options ?? {}; - if (!task) { - try { - const result = await this.request(request, resultSchema, options); - yield { type: "result", result }; - } catch (error2) { - yield { - type: "error", - error: error2 instanceof McpError ? error2 : new McpError(ErrorCode.InternalError, String(error2)) - }; - } - return; - } - let taskId; - try { - const createResult = await this.request(request, CreateTaskResultSchema, options); - if (createResult.task) { - taskId = createResult.task.taskId; - yield { type: "taskCreated", task: createResult.task }; - } else { - throw new McpError(ErrorCode.InternalError, "Task creation did not return a task"); - } - while (true) { - const task2 = await this.getTask({ taskId }, options); - yield { type: "taskStatus", task: task2 }; - if (isTerminal(task2.status)) { - if (task2.status === "completed") { - const result = await this.getTaskResult({ taskId }, resultSchema, options); - yield { type: "result", result }; - } else if (task2.status === "failed") { - yield { - type: "error", - error: new McpError(ErrorCode.InternalError, `Task ${taskId} failed`) - }; - } else if (task2.status === "cancelled") { - yield { - type: "error", - error: new McpError(ErrorCode.InternalError, `Task ${taskId} was cancelled`) - }; - } - return; - } - if (task2.status === "input_required") { - const result = await this.getTaskResult({ taskId }, resultSchema, options); - yield { type: "result", result }; - return; - } - const pollInterval = task2.pollInterval ?? this._options?.defaultTaskPollInterval ?? 1000; - await new Promise((resolve) => setTimeout(resolve, pollInterval)); - options?.signal?.throwIfAborted(); - } - } catch (error2) { - yield { - type: "error", - error: error2 instanceof McpError ? error2 : new McpError(ErrorCode.InternalError, String(error2)) - }; - } - } - request(request, resultSchema, options) { - const { relatedRequestId, resumptionToken, onresumptiontoken, task, relatedTask } = options ?? {}; - return new Promise((resolve, reject) => { - const earlyReject = (error2) => { - reject(error2); - }; - if (!this._transport) { - earlyReject(new Error("Not connected")); - return; - } - if (this._options?.enforceStrictCapabilities === true) { - try { - this.assertCapabilityForMethod(request.method); - if (task) { - this.assertTaskCapability(request.method); - } - } catch (e) { - earlyReject(e); - return; - } - } - options?.signal?.throwIfAborted(); - const messageId = this._requestMessageId++; - const jsonrpcRequest = { - ...request, - jsonrpc: "2.0", - id: messageId - }; - if (options?.onprogress) { - this._progressHandlers.set(messageId, options.onprogress); - jsonrpcRequest.params = { - ...request.params, - _meta: { - ...request.params?._meta || {}, - progressToken: messageId - } - }; - } - if (task) { - jsonrpcRequest.params = { - ...jsonrpcRequest.params, - task - }; - } - if (relatedTask) { - jsonrpcRequest.params = { - ...jsonrpcRequest.params, - _meta: { - ...jsonrpcRequest.params?._meta || {}, - [RELATED_TASK_META_KEY]: relatedTask - } - }; - } - const cancel = (reason) => { - this._responseHandlers.delete(messageId); - this._progressHandlers.delete(messageId); - this._cleanupTimeout(messageId); - this._transport?.send({ - jsonrpc: "2.0", - method: "notifications/cancelled", - params: { - requestId: messageId, - reason: String(reason) - } - }, { relatedRequestId, resumptionToken, onresumptiontoken }).catch((error3) => this._onerror(new Error(`Failed to send cancellation: ${error3}`))); - const error2 = reason instanceof McpError ? reason : new McpError(ErrorCode.RequestTimeout, String(reason)); - reject(error2); - }; - this._responseHandlers.set(messageId, (response) => { - if (options?.signal?.aborted) { - return; - } - if (response instanceof Error) { - return reject(response); - } - try { - const parseResult = safeParse2(resultSchema, response.result); - if (!parseResult.success) { - reject(parseResult.error); - } else { - resolve(parseResult.data); - } - } catch (error2) { - reject(error2); - } - }); - options?.signal?.addEventListener("abort", () => { - cancel(options?.signal?.reason); - }); - const timeout = options?.timeout ?? DEFAULT_REQUEST_TIMEOUT_MSEC; - const timeoutHandler = () => cancel(McpError.fromError(ErrorCode.RequestTimeout, "Request timed out", { timeout })); - this._setupTimeout(messageId, timeout, options?.maxTotalTimeout, timeoutHandler, options?.resetTimeoutOnProgress ?? false); - const relatedTaskId = relatedTask?.taskId; - if (relatedTaskId) { - const responseResolver = (response) => { - const handler = this._responseHandlers.get(messageId); - if (handler) { - handler(response); - } else { - this._onerror(new Error(`Response handler missing for side-channeled request ${messageId}`)); - } - }; - this._requestResolvers.set(messageId, responseResolver); - this._enqueueTaskMessage(relatedTaskId, { - type: "request", - message: jsonrpcRequest, - timestamp: Date.now() - }).catch((error2) => { - this._cleanupTimeout(messageId); - reject(error2); - }); - } else { - this._transport.send(jsonrpcRequest, { relatedRequestId, resumptionToken, onresumptiontoken }).catch((error2) => { - this._cleanupTimeout(messageId); - reject(error2); - }); - } - }); - } - async getTask(params, options) { - return this.request({ method: "tasks/get", params }, GetTaskResultSchema, options); - } - async getTaskResult(params, resultSchema, options) { - return this.request({ method: "tasks/result", params }, resultSchema, options); - } - async listTasks(params, options) { - return this.request({ method: "tasks/list", params }, ListTasksResultSchema, options); - } - async cancelTask(params, options) { - return this.request({ method: "tasks/cancel", params }, CancelTaskResultSchema, options); - } - async notification(notification, options) { - if (!this._transport) { - throw new Error("Not connected"); - } - this.assertNotificationCapability(notification.method); - const relatedTaskId = options?.relatedTask?.taskId; - if (relatedTaskId) { - const jsonrpcNotification2 = { - ...notification, - jsonrpc: "2.0", - params: { - ...notification.params, - _meta: { - ...notification.params?._meta || {}, - [RELATED_TASK_META_KEY]: options.relatedTask - } - } - }; - await this._enqueueTaskMessage(relatedTaskId, { - type: "notification", - message: jsonrpcNotification2, - timestamp: Date.now() - }); - return; - } - const debouncedMethods = this._options?.debouncedNotificationMethods ?? []; - const canDebounce = debouncedMethods.includes(notification.method) && !notification.params && !options?.relatedRequestId && !options?.relatedTask; - if (canDebounce) { - if (this._pendingDebouncedNotifications.has(notification.method)) { - return; - } - this._pendingDebouncedNotifications.add(notification.method); - Promise.resolve().then(() => { - this._pendingDebouncedNotifications.delete(notification.method); - if (!this._transport) { - return; - } - let jsonrpcNotification2 = { - ...notification, - jsonrpc: "2.0" - }; - if (options?.relatedTask) { - jsonrpcNotification2 = { - ...jsonrpcNotification2, - params: { - ...jsonrpcNotification2.params, - _meta: { - ...jsonrpcNotification2.params?._meta || {}, - [RELATED_TASK_META_KEY]: options.relatedTask - } - } - }; - } - this._transport?.send(jsonrpcNotification2, options).catch((error2) => this._onerror(error2)); - }); - return; - } - let jsonrpcNotification = { - ...notification, - jsonrpc: "2.0" - }; - if (options?.relatedTask) { - jsonrpcNotification = { - ...jsonrpcNotification, - params: { - ...jsonrpcNotification.params, - _meta: { - ...jsonrpcNotification.params?._meta || {}, - [RELATED_TASK_META_KEY]: options.relatedTask - } - } - }; - } - await this._transport.send(jsonrpcNotification, options); - } - setRequestHandler(requestSchema, handler) { - const method = getMethodLiteral(requestSchema); - this.assertRequestHandlerCapability(method); - this._requestHandlers.set(method, (request, extra) => { - const parsed = parseWithCompat(requestSchema, request); - return Promise.resolve(handler(parsed, extra)); - }); - } - removeRequestHandler(method) { - this._requestHandlers.delete(method); - } - assertCanSetRequestHandler(method) { - if (this._requestHandlers.has(method)) { - throw new Error(`A request handler for ${method} already exists, which would be overridden`); - } - } - setNotificationHandler(notificationSchema, handler) { - const method = getMethodLiteral(notificationSchema); - this._notificationHandlers.set(method, (notification) => { - const parsed = parseWithCompat(notificationSchema, notification); - return Promise.resolve(handler(parsed)); - }); - } - removeNotificationHandler(method) { - this._notificationHandlers.delete(method); - } - _cleanupTaskProgressHandler(taskId) { - const progressToken = this._taskProgressTokens.get(taskId); - if (progressToken !== undefined) { - this._progressHandlers.delete(progressToken); - this._taskProgressTokens.delete(taskId); - } - } - async _enqueueTaskMessage(taskId, message, sessionId) { - if (!this._taskStore || !this._taskMessageQueue) { - throw new Error("Cannot enqueue task message: taskStore and taskMessageQueue are not configured"); - } - const maxQueueSize = this._options?.maxTaskQueueSize; - await this._taskMessageQueue.enqueue(taskId, message, sessionId, maxQueueSize); - } - async _clearTaskQueue(taskId, sessionId) { - if (this._taskMessageQueue) { - const messages = await this._taskMessageQueue.dequeueAll(taskId, sessionId); - for (const message of messages) { - if (message.type === "request" && isJSONRPCRequest(message.message)) { - const requestId = message.message.id; - const resolver = this._requestResolvers.get(requestId); - if (resolver) { - resolver(new McpError(ErrorCode.InternalError, "Task cancelled or completed")); - this._requestResolvers.delete(requestId); - } else { - this._onerror(new Error(`Resolver missing for request ${requestId} during task ${taskId} cleanup`)); - } - } - } - } - } - async _waitForTaskUpdate(taskId, signal) { - let interval = this._options?.defaultTaskPollInterval ?? 1000; - try { - const task = await this._taskStore?.getTask(taskId); - if (task?.pollInterval) { - interval = task.pollInterval; - } - } catch {} - return new Promise((resolve, reject) => { - if (signal.aborted) { - reject(new McpError(ErrorCode.InvalidRequest, "Request cancelled")); - return; - } - const timeoutId = setTimeout(resolve, interval); - signal.addEventListener("abort", () => { - clearTimeout(timeoutId); - reject(new McpError(ErrorCode.InvalidRequest, "Request cancelled")); - }, { once: true }); - }); - } - requestTaskStore(request, sessionId) { - const taskStore = this._taskStore; - if (!taskStore) { - throw new Error("No task store configured"); - } - return { - createTask: async (taskParams) => { - if (!request) { - throw new Error("No request provided"); - } - return await taskStore.createTask(taskParams, request.id, { - method: request.method, - params: request.params - }, sessionId); - }, - getTask: async (taskId) => { - const task = await taskStore.getTask(taskId, sessionId); - if (!task) { - throw new McpError(ErrorCode.InvalidParams, "Failed to retrieve task: Task not found"); - } - return task; - }, - storeTaskResult: async (taskId, status, result) => { - await taskStore.storeTaskResult(taskId, status, result, sessionId); - const task = await taskStore.getTask(taskId, sessionId); - if (task) { - const notification = TaskStatusNotificationSchema.parse({ - method: "notifications/tasks/status", - params: task - }); - await this.notification(notification); - if (isTerminal(task.status)) { - this._cleanupTaskProgressHandler(taskId); - } - } - }, - getTaskResult: (taskId) => { - return taskStore.getTaskResult(taskId, sessionId); - }, - updateTaskStatus: async (taskId, status, statusMessage) => { - const task = await taskStore.getTask(taskId, sessionId); - if (!task) { - throw new McpError(ErrorCode.InvalidParams, `Task "${taskId}" not found - it may have been cleaned up`); - } - if (isTerminal(task.status)) { - throw new McpError(ErrorCode.InvalidParams, `Cannot update task "${taskId}" from terminal status "${task.status}" to "${status}". Terminal states (completed, failed, cancelled) cannot transition to other states.`); - } - await taskStore.updateTaskStatus(taskId, status, statusMessage, sessionId); - const updatedTask = await taskStore.getTask(taskId, sessionId); - if (updatedTask) { - const notification = TaskStatusNotificationSchema.parse({ - method: "notifications/tasks/status", - params: updatedTask - }); - await this.notification(notification); - if (isTerminal(updatedTask.status)) { - this._cleanupTaskProgressHandler(taskId); - } - } - }, - listTasks: (cursor) => { - return taskStore.listTasks(cursor, sessionId); - } - }; - } -} -function isPlainObject2(value) { - return value !== null && typeof value === "object" && !Array.isArray(value); -} -function mergeCapabilities(base, additional) { - const result = { ...base }; - for (const key in additional) { - const k = key; - const addValue = additional[k]; - if (addValue === undefined) - continue; - const baseValue = result[k]; - if (isPlainObject2(baseValue) && isPlainObject2(addValue)) { - result[k] = { ...baseValue, ...addValue }; - } else { - result[k] = addValue; - } - } - return result; -} - -// node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js -var import_ajv = __toESM(require_ajv(), 1); -var import_ajv_formats = __toESM(require_dist(), 1); -function createDefaultAjvInstance() { - const ajv = new import_ajv.default({ - strict: false, - validateFormats: true, - validateSchema: false, - allErrors: true - }); - const addFormats = import_ajv_formats.default; - addFormats(ajv); - return ajv; -} - -class AjvJsonSchemaValidator { - constructor(ajv) { - this._ajv = ajv ?? createDefaultAjvInstance(); - } - getValidator(schema) { - const ajvValidator = "$id" in schema && typeof schema.$id === "string" ? this._ajv.getSchema(schema.$id) ?? this._ajv.compile(schema) : this._ajv.compile(schema); - return (input) => { - const valid = ajvValidator(input); - if (valid) { - return { - valid: true, - data: input, - errorMessage: undefined - }; - } else { - return { - valid: false, - data: undefined, - errorMessage: this._ajv.errorsText(ajvValidator.errors) - }; - } - }; - } -} - -// node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/client.js -class ExperimentalClientTasks { - constructor(_client) { - this._client = _client; - } - async* callToolStream(params, resultSchema = CallToolResultSchema, options) { - const clientInternal = this._client; - const optionsWithTask = { - ...options, - task: options?.task ?? (clientInternal.isToolTask(params.name) ? {} : undefined) - }; - const stream = clientInternal.requestStream({ method: "tools/call", params }, resultSchema, optionsWithTask); - const validator = clientInternal.getToolOutputValidator(params.name); - for await (const message of stream) { - if (message.type === "result" && validator) { - const result = message.result; - if (!result.structuredContent && !result.isError) { - yield { - type: "error", - error: new McpError(ErrorCode.InvalidRequest, `Tool ${params.name} has an output schema but did not return structured content`) - }; - return; - } - if (result.structuredContent) { - try { - const validationResult = validator(result.structuredContent); - if (!validationResult.valid) { - yield { - type: "error", - error: new McpError(ErrorCode.InvalidParams, `Structured content does not match the tool's output schema: ${validationResult.errorMessage}`) - }; - return; - } - } catch (error2) { - if (error2 instanceof McpError) { - yield { type: "error", error: error2 }; - return; - } - yield { - type: "error", - error: new McpError(ErrorCode.InvalidParams, `Failed to validate structured content: ${error2 instanceof Error ? error2.message : String(error2)}`) - }; - return; - } - } - } - yield message; - } - } - async getTask(taskId, options) { - return this._client.getTask({ taskId }, options); - } - async getTaskResult(taskId, resultSchema, options) { - return this._client.getTaskResult({ taskId }, resultSchema, options); - } - async listTasks(cursor, options) { - return this._client.listTasks(cursor ? { cursor } : undefined, options); - } - async cancelTask(taskId, options) { - return this._client.cancelTask({ taskId }, options); - } - requestStream(request, resultSchema, options) { - return this._client.requestStream(request, resultSchema, options); - } -} - -// node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js -function assertToolsCallTaskCapability(requests, method, entityName) { - if (!requests) { - throw new Error(`${entityName} does not support task creation (required for ${method})`); - } - switch (method) { - case "tools/call": - if (!requests.tools?.call) { - throw new Error(`${entityName} does not support task creation for tools/call (required for ${method})`); - } - break; - default: - break; - } -} -function assertClientRequestTaskCapability(requests, method, entityName) { - if (!requests) { - throw new Error(`${entityName} does not support task creation (required for ${method})`); - } - switch (method) { - case "sampling/createMessage": - if (!requests.sampling?.createMessage) { - throw new Error(`${entityName} does not support task creation for sampling/createMessage (required for ${method})`); - } - break; - case "elicitation/create": - if (!requests.elicitation?.create) { - throw new Error(`${entityName} does not support task creation for elicitation/create (required for ${method})`); - } - break; - default: - break; - } -} - -// node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.js -function applyElicitationDefaults(schema, data) { - if (!schema || data === null || typeof data !== "object") - return; - if (schema.type === "object" && schema.properties && typeof schema.properties === "object") { - const obj = data; - const props = schema.properties; - for (const key of Object.keys(props)) { - const propSchema = props[key]; - if (obj[key] === undefined && Object.prototype.hasOwnProperty.call(propSchema, "default")) { - obj[key] = propSchema.default; - } - if (obj[key] !== undefined) { - applyElicitationDefaults(propSchema, obj[key]); - } - } - } - if (Array.isArray(schema.anyOf)) { - for (const sub of schema.anyOf) { - if (typeof sub !== "boolean") { - applyElicitationDefaults(sub, data); - } - } - } - if (Array.isArray(schema.oneOf)) { - for (const sub of schema.oneOf) { - if (typeof sub !== "boolean") { - applyElicitationDefaults(sub, data); - } - } - } -} -function getSupportedElicitationModes(capabilities) { - if (!capabilities) { - return { supportsFormMode: false, supportsUrlMode: false }; - } - const hasFormCapability = capabilities.form !== undefined; - const hasUrlCapability = capabilities.url !== undefined; - const supportsFormMode = hasFormCapability || !hasFormCapability && !hasUrlCapability; - const supportsUrlMode = hasUrlCapability; - return { supportsFormMode, supportsUrlMode }; -} - -class Client extends Protocol { - constructor(_clientInfo, options) { - super(options); - this._clientInfo = _clientInfo; - this._cachedToolOutputValidators = new Map; - this._cachedKnownTaskTools = new Set; - this._cachedRequiredTaskTools = new Set; - this._listChangedDebounceTimers = new Map; - this._capabilities = options?.capabilities ?? {}; - this._jsonSchemaValidator = options?.jsonSchemaValidator ?? new AjvJsonSchemaValidator; - if (options?.listChanged) { - this._pendingListChangedConfig = options.listChanged; - } - } - _setupListChangedHandlers(config2) { - if (config2.tools && this._serverCapabilities?.tools?.listChanged) { - this._setupListChangedHandler("tools", ToolListChangedNotificationSchema, config2.tools, async () => { - const result = await this.listTools(); - return result.tools; - }); - } - if (config2.prompts && this._serverCapabilities?.prompts?.listChanged) { - this._setupListChangedHandler("prompts", PromptListChangedNotificationSchema, config2.prompts, async () => { - const result = await this.listPrompts(); - return result.prompts; - }); - } - if (config2.resources && this._serverCapabilities?.resources?.listChanged) { - this._setupListChangedHandler("resources", ResourceListChangedNotificationSchema, config2.resources, async () => { - const result = await this.listResources(); - return result.resources; - }); - } - } - get experimental() { - if (!this._experimental) { - this._experimental = { - tasks: new ExperimentalClientTasks(this) - }; - } - return this._experimental; - } - registerCapabilities(capabilities) { - if (this.transport) { - throw new Error("Cannot register capabilities after connecting to transport"); - } - this._capabilities = mergeCapabilities(this._capabilities, capabilities); - } - setRequestHandler(requestSchema, handler) { - const shape = getObjectShape(requestSchema); - const methodSchema = shape?.method; - if (!methodSchema) { - throw new Error("Schema is missing a method literal"); - } - let methodValue; - if (isZ4Schema(methodSchema)) { - const v4Schema = methodSchema; - const v4Def = v4Schema._zod?.def; - methodValue = v4Def?.value ?? v4Schema.value; - } else { - const v3Schema = methodSchema; - const legacyDef = v3Schema._def; - methodValue = legacyDef?.value ?? v3Schema.value; - } - if (typeof methodValue !== "string") { - throw new Error("Schema method literal must be a string"); - } - const method = methodValue; - if (method === "elicitation/create") { - const wrappedHandler = async (request, extra) => { - const validatedRequest = safeParse2(ElicitRequestSchema, request); - if (!validatedRequest.success) { - const errorMessage = validatedRequest.error instanceof Error ? validatedRequest.error.message : String(validatedRequest.error); - throw new McpError(ErrorCode.InvalidParams, `Invalid elicitation request: ${errorMessage}`); - } - const { params } = validatedRequest.data; - params.mode = params.mode ?? "form"; - const { supportsFormMode, supportsUrlMode } = getSupportedElicitationModes(this._capabilities.elicitation); - if (params.mode === "form" && !supportsFormMode) { - throw new McpError(ErrorCode.InvalidParams, "Client does not support form-mode elicitation requests"); - } - if (params.mode === "url" && !supportsUrlMode) { - throw new McpError(ErrorCode.InvalidParams, "Client does not support URL-mode elicitation requests"); - } - const result = await Promise.resolve(handler(request, extra)); - if (params.task) { - const taskValidationResult = safeParse2(CreateTaskResultSchema, result); - if (!taskValidationResult.success) { - const errorMessage = taskValidationResult.error instanceof Error ? taskValidationResult.error.message : String(taskValidationResult.error); - throw new McpError(ErrorCode.InvalidParams, `Invalid task creation result: ${errorMessage}`); - } - return taskValidationResult.data; - } - const validationResult = safeParse2(ElicitResultSchema, result); - if (!validationResult.success) { - const errorMessage = validationResult.error instanceof Error ? validationResult.error.message : String(validationResult.error); - throw new McpError(ErrorCode.InvalidParams, `Invalid elicitation result: ${errorMessage}`); - } - const validatedResult = validationResult.data; - const requestedSchema = params.mode === "form" ? params.requestedSchema : undefined; - if (params.mode === "form" && validatedResult.action === "accept" && validatedResult.content && requestedSchema) { - if (this._capabilities.elicitation?.form?.applyDefaults) { - try { - applyElicitationDefaults(requestedSchema, validatedResult.content); - } catch {} - } - } - return validatedResult; - }; - return super.setRequestHandler(requestSchema, wrappedHandler); - } - if (method === "sampling/createMessage") { - const wrappedHandler = async (request, extra) => { - const validatedRequest = safeParse2(CreateMessageRequestSchema, request); - if (!validatedRequest.success) { - const errorMessage = validatedRequest.error instanceof Error ? validatedRequest.error.message : String(validatedRequest.error); - throw new McpError(ErrorCode.InvalidParams, `Invalid sampling request: ${errorMessage}`); - } - const { params } = validatedRequest.data; - const result = await Promise.resolve(handler(request, extra)); - if (params.task) { - const taskValidationResult = safeParse2(CreateTaskResultSchema, result); - if (!taskValidationResult.success) { - const errorMessage = taskValidationResult.error instanceof Error ? taskValidationResult.error.message : String(taskValidationResult.error); - throw new McpError(ErrorCode.InvalidParams, `Invalid task creation result: ${errorMessage}`); - } - return taskValidationResult.data; - } - const hasTools = params.tools || params.toolChoice; - const resultSchema = hasTools ? CreateMessageResultWithToolsSchema : CreateMessageResultSchema; - const validationResult = safeParse2(resultSchema, result); - if (!validationResult.success) { - const errorMessage = validationResult.error instanceof Error ? validationResult.error.message : String(validationResult.error); - throw new McpError(ErrorCode.InvalidParams, `Invalid sampling result: ${errorMessage}`); - } - return validationResult.data; - }; - return super.setRequestHandler(requestSchema, wrappedHandler); - } - return super.setRequestHandler(requestSchema, handler); - } - assertCapability(capability, method) { - if (!this._serverCapabilities?.[capability]) { - throw new Error(`Server does not support ${capability} (required for ${method})`); - } - } - async connect(transport, options) { - await super.connect(transport); - if (transport.sessionId !== undefined) { - return; - } - try { - const result = await this.request({ - method: "initialize", - params: { - protocolVersion: LATEST_PROTOCOL_VERSION, - capabilities: this._capabilities, - clientInfo: this._clientInfo - } - }, InitializeResultSchema, options); - if (result === undefined) { - throw new Error(`Server sent invalid initialize result: ${result}`); - } - if (!SUPPORTED_PROTOCOL_VERSIONS.includes(result.protocolVersion)) { - throw new Error(`Server's protocol version is not supported: ${result.protocolVersion}`); - } - this._serverCapabilities = result.capabilities; - this._serverVersion = result.serverInfo; - if (transport.setProtocolVersion) { - transport.setProtocolVersion(result.protocolVersion); - } - this._instructions = result.instructions; - await this.notification({ - method: "notifications/initialized" - }); - if (this._pendingListChangedConfig) { - this._setupListChangedHandlers(this._pendingListChangedConfig); - this._pendingListChangedConfig = undefined; - } - } catch (error2) { - this.close(); - throw error2; - } - } - getServerCapabilities() { - return this._serverCapabilities; - } - getServerVersion() { - return this._serverVersion; - } - getInstructions() { - return this._instructions; - } - assertCapabilityForMethod(method) { - switch (method) { - case "logging/setLevel": - if (!this._serverCapabilities?.logging) { - throw new Error(`Server does not support logging (required for ${method})`); - } - break; - case "prompts/get": - case "prompts/list": - if (!this._serverCapabilities?.prompts) { - throw new Error(`Server does not support prompts (required for ${method})`); - } - break; - case "resources/list": - case "resources/templates/list": - case "resources/read": - case "resources/subscribe": - case "resources/unsubscribe": - if (!this._serverCapabilities?.resources) { - throw new Error(`Server does not support resources (required for ${method})`); - } - if (method === "resources/subscribe" && !this._serverCapabilities.resources.subscribe) { - throw new Error(`Server does not support resource subscriptions (required for ${method})`); - } - break; - case "tools/call": - case "tools/list": - if (!this._serverCapabilities?.tools) { - throw new Error(`Server does not support tools (required for ${method})`); - } - break; - case "completion/complete": - if (!this._serverCapabilities?.completions) { - throw new Error(`Server does not support completions (required for ${method})`); - } - break; - case "initialize": - break; - case "ping": - break; - } - } - assertNotificationCapability(method) { - switch (method) { - case "notifications/roots/list_changed": - if (!this._capabilities.roots?.listChanged) { - throw new Error(`Client does not support roots list changed notifications (required for ${method})`); - } - break; - case "notifications/initialized": - break; - case "notifications/cancelled": - break; - case "notifications/progress": - break; - } - } - assertRequestHandlerCapability(method) { - if (!this._capabilities) { - return; - } - switch (method) { - case "sampling/createMessage": - if (!this._capabilities.sampling) { - throw new Error(`Client does not support sampling capability (required for ${method})`); - } - break; - case "elicitation/create": - if (!this._capabilities.elicitation) { - throw new Error(`Client does not support elicitation capability (required for ${method})`); - } - break; - case "roots/list": - if (!this._capabilities.roots) { - throw new Error(`Client does not support roots capability (required for ${method})`); - } - break; - case "tasks/get": - case "tasks/list": - case "tasks/result": - case "tasks/cancel": - if (!this._capabilities.tasks) { - throw new Error(`Client does not support tasks capability (required for ${method})`); - } - break; - case "ping": - break; - } - } - assertTaskCapability(method) { - assertToolsCallTaskCapability(this._serverCapabilities?.tasks?.requests, method, "Server"); - } - assertTaskHandlerCapability(method) { - if (!this._capabilities) { - return; - } - assertClientRequestTaskCapability(this._capabilities.tasks?.requests, method, "Client"); - } - async ping(options) { - return this.request({ method: "ping" }, EmptyResultSchema, options); - } - async complete(params, options) { - return this.request({ method: "completion/complete", params }, CompleteResultSchema, options); - } - async setLoggingLevel(level, options) { - return this.request({ method: "logging/setLevel", params: { level } }, EmptyResultSchema, options); - } - async getPrompt(params, options) { - return this.request({ method: "prompts/get", params }, GetPromptResultSchema, options); - } - async listPrompts(params, options) { - return this.request({ method: "prompts/list", params }, ListPromptsResultSchema, options); - } - async listResources(params, options) { - return this.request({ method: "resources/list", params }, ListResourcesResultSchema, options); - } - async listResourceTemplates(params, options) { - return this.request({ method: "resources/templates/list", params }, ListResourceTemplatesResultSchema, options); - } - async readResource(params, options) { - return this.request({ method: "resources/read", params }, ReadResourceResultSchema, options); - } - async subscribeResource(params, options) { - return this.request({ method: "resources/subscribe", params }, EmptyResultSchema, options); - } - async unsubscribeResource(params, options) { - return this.request({ method: "resources/unsubscribe", params }, EmptyResultSchema, options); - } - async callTool(params, resultSchema = CallToolResultSchema, options) { - if (this.isToolTaskRequired(params.name)) { - throw new McpError(ErrorCode.InvalidRequest, `Tool "${params.name}" requires task-based execution. Use client.experimental.tasks.callToolStream() instead.`); - } - const result = await this.request({ method: "tools/call", params }, resultSchema, options); - const validator = this.getToolOutputValidator(params.name); - if (validator) { - if (!result.structuredContent && !result.isError) { - throw new McpError(ErrorCode.InvalidRequest, `Tool ${params.name} has an output schema but did not return structured content`); - } - if (result.structuredContent) { - try { - const validationResult = validator(result.structuredContent); - if (!validationResult.valid) { - throw new McpError(ErrorCode.InvalidParams, `Structured content does not match the tool's output schema: ${validationResult.errorMessage}`); - } - } catch (error2) { - if (error2 instanceof McpError) { - throw error2; - } - throw new McpError(ErrorCode.InvalidParams, `Failed to validate structured content: ${error2 instanceof Error ? error2.message : String(error2)}`); - } - } - } - return result; - } - isToolTask(toolName) { - if (!this._serverCapabilities?.tasks?.requests?.tools?.call) { - return false; - } - return this._cachedKnownTaskTools.has(toolName); - } - isToolTaskRequired(toolName) { - return this._cachedRequiredTaskTools.has(toolName); - } - cacheToolMetadata(tools) { - this._cachedToolOutputValidators.clear(); - this._cachedKnownTaskTools.clear(); - this._cachedRequiredTaskTools.clear(); - for (const tool of tools) { - if (tool.outputSchema) { - const toolValidator = this._jsonSchemaValidator.getValidator(tool.outputSchema); - this._cachedToolOutputValidators.set(tool.name, toolValidator); - } - const taskSupport = tool.execution?.taskSupport; - if (taskSupport === "required" || taskSupport === "optional") { - this._cachedKnownTaskTools.add(tool.name); - } - if (taskSupport === "required") { - this._cachedRequiredTaskTools.add(tool.name); - } - } - } - getToolOutputValidator(toolName) { - return this._cachedToolOutputValidators.get(toolName); - } - async listTools(params, options) { - const result = await this.request({ method: "tools/list", params }, ListToolsResultSchema, options); - this.cacheToolMetadata(result.tools); - return result; - } - _setupListChangedHandler(listType, notificationSchema, options, fetcher) { - const parseResult = ListChangedOptionsBaseSchema.safeParse(options); - if (!parseResult.success) { - throw new Error(`Invalid ${listType} listChanged options: ${parseResult.error.message}`); - } - if (typeof options.onChanged !== "function") { - throw new Error(`Invalid ${listType} listChanged options: onChanged must be a function`); - } - const { autoRefresh, debounceMs } = parseResult.data; - const { onChanged } = options; - const refresh = async () => { - if (!autoRefresh) { - onChanged(null, null); - return; - } - try { - const items = await fetcher(); - onChanged(null, items); - } catch (e) { - const error2 = e instanceof Error ? e : new Error(String(e)); - onChanged(error2, null); - } - }; - const handler = () => { - if (debounceMs) { - const existingTimer = this._listChangedDebounceTimers.get(listType); - if (existingTimer) { - clearTimeout(existingTimer); - } - const timer = setTimeout(refresh, debounceMs); - this._listChangedDebounceTimers.set(listType, timer); - } else { - refresh(); - } - }; - this.setNotificationHandler(notificationSchema, handler); - } - async sendRootsListChanged() { - return this.notification({ method: "notifications/roots/list_changed" }); - } -} - -// node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.js -var import_cross_spawn = __toESM(require_cross_spawn(), 1); -import process3 from "node:process"; -import { PassThrough } from "node:stream"; - -// node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js -class ReadBuffer { - append(chunk) { - this._buffer = this._buffer ? Buffer.concat([this._buffer, chunk]) : chunk; - } - readMessage() { - if (!this._buffer) { - return null; - } - const index = this._buffer.indexOf(` -`); - if (index === -1) { - return null; - } - const line = this._buffer.toString("utf8", 0, index).replace(/\r$/, ""); - this._buffer = this._buffer.subarray(index + 1); - return deserializeMessage(line); - } - clear() { - this._buffer = undefined; - } -} -function deserializeMessage(line) { - return JSONRPCMessageSchema.parse(JSON.parse(line)); -} -function serializeMessage(message) { - return JSON.stringify(message) + ` -`; -} - -// node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.js -var DEFAULT_INHERITED_ENV_VARS = process3.platform === "win32" ? [ - "APPDATA", - "HOMEDRIVE", - "HOMEPATH", - "LOCALAPPDATA", - "PATH", - "PROCESSOR_ARCHITECTURE", - "SYSTEMDRIVE", - "SYSTEMROOT", - "TEMP", - "USERNAME", - "USERPROFILE", - "PROGRAMFILES" -] : ["HOME", "LOGNAME", "PATH", "SHELL", "TERM", "USER"]; -function getDefaultEnvironment() { - const env = {}; - for (const key of DEFAULT_INHERITED_ENV_VARS) { - const value = process3.env[key]; - if (value === undefined) { - continue; - } - if (value.startsWith("()")) { - continue; - } - env[key] = value; - } - return env; -} - -class StdioClientTransport { - constructor(server) { - this._readBuffer = new ReadBuffer; - this._stderrStream = null; - this._serverParams = server; - if (server.stderr === "pipe" || server.stderr === "overlapped") { - this._stderrStream = new PassThrough; - } - } - async start() { - if (this._process) { - throw new Error("StdioClientTransport already started! If using Client class, note that connect() calls start() automatically."); - } - return new Promise((resolve, reject) => { - this._process = import_cross_spawn.default(this._serverParams.command, this._serverParams.args ?? [], { - env: { - ...getDefaultEnvironment(), - ...this._serverParams.env - }, - stdio: ["pipe", "pipe", this._serverParams.stderr ?? "inherit"], - shell: false, - windowsHide: process3.platform === "win32" && isElectron(), - cwd: this._serverParams.cwd - }); - this._process.on("error", (error2) => { - reject(error2); - this.onerror?.(error2); - }); - this._process.on("spawn", () => { - resolve(); - }); - this._process.on("close", (_code) => { - this._process = undefined; - this.onclose?.(); - }); - this._process.stdin?.on("error", (error2) => { - this.onerror?.(error2); - }); - this._process.stdout?.on("data", (chunk) => { - this._readBuffer.append(chunk); - this.processReadBuffer(); - }); - this._process.stdout?.on("error", (error2) => { - this.onerror?.(error2); - }); - if (this._stderrStream && this._process.stderr) { - this._process.stderr.pipe(this._stderrStream); - } - }); - } - get stderr() { - if (this._stderrStream) { - return this._stderrStream; - } - return this._process?.stderr ?? null; - } - get pid() { - return this._process?.pid ?? null; - } - processReadBuffer() { - while (true) { - try { - const message = this._readBuffer.readMessage(); - if (message === null) { - break; - } - this.onmessage?.(message); - } catch (error2) { - this.onerror?.(error2); - } - } - } - async close() { - if (this._process) { - const processToClose = this._process; - this._process = undefined; - const closePromise = new Promise((resolve) => { - processToClose.once("close", () => { - resolve(); - }); - }); - try { - processToClose.stdin?.end(); - } catch {} - await Promise.race([closePromise, new Promise((resolve) => setTimeout(resolve, 2000).unref())]); - if (processToClose.exitCode === null) { - try { - processToClose.kill("SIGTERM"); - } catch {} - await Promise.race([closePromise, new Promise((resolve) => setTimeout(resolve, 2000).unref())]); - } - if (processToClose.exitCode === null) { - try { - processToClose.kill("SIGKILL"); - } catch {} - } - } - this._readBuffer.clear(); - } - send(message) { - return new Promise((resolve) => { - if (!this._process?.stdin) { - throw new Error("Not connected"); - } - const json = serializeMessage(message); - if (this._process.stdin.write(json)) { - resolve(); - } else { - this._process.stdin.once("drain", resolve); - } - }); - } -} -function isElectron() { - return "type" in process3; -} - -// src/services/worker-service.ts -init_worker_utils(); -init_hook_constants(); -init_SettingsDefaultsManager(); - -// src/shared/EnvManager.ts -init_logger(); -import { existsSync as existsSync4, readFileSync as readFileSync4, writeFileSync as writeFileSync2, mkdirSync as mkdirSync4 } from "fs"; -import { join as join4 } from "path"; -import { homedir as homedir4 } from "os"; -var DATA_DIR2 = join4(homedir4(), ".claude-mem"); -var ENV_FILE_PATH = join4(DATA_DIR2, ".env"); -var BLOCKED_ENV_VARS = [ - "ANTHROPIC_API_KEY", - "CLAUDECODE" -]; -function parseEnvFile(content) { - const result = {}; - for (const line of content.split(` -`)) { - const trimmed = line.trim(); - if (!trimmed || trimmed.startsWith("#")) - continue; - const eqIndex = trimmed.indexOf("="); - if (eqIndex === -1) - continue; - const key = trimmed.slice(0, eqIndex).trim(); - let value = trimmed.slice(eqIndex + 1).trim(); - if (value.startsWith('"') && value.endsWith('"') || value.startsWith("'") && value.endsWith("'")) { - value = value.slice(1, -1); - } - if (key) { - result[key] = value; - } - } - return result; -} -function loadClaudeMemEnv() { - if (!existsSync4(ENV_FILE_PATH)) { - return {}; - } - try { - const content = readFileSync4(ENV_FILE_PATH, "utf-8"); - const parsed = parseEnvFile(content); - const result = {}; - if (parsed.ANTHROPIC_API_KEY) - result.ANTHROPIC_API_KEY = parsed.ANTHROPIC_API_KEY; - if (parsed.GEMINI_API_KEY) - result.GEMINI_API_KEY = parsed.GEMINI_API_KEY; - if (parsed.OPENROUTER_API_KEY) - result.OPENROUTER_API_KEY = parsed.OPENROUTER_API_KEY; - return result; - } catch (error2) { - logger.warn("ENV", "Failed to load .env file", { path: ENV_FILE_PATH }, error2); - return {}; - } -} -function buildIsolatedEnv(includeCredentials = true) { - const isolatedEnv = {}; - for (const [key, value] of Object.entries(process.env)) { - if (value !== undefined && !BLOCKED_ENV_VARS.includes(key)) { - isolatedEnv[key] = value; - } - } - isolatedEnv.CLAUDE_CODE_ENTRYPOINT = "sdk-ts"; - if (includeCredentials) { - const credentials = loadClaudeMemEnv(); - if (credentials.ANTHROPIC_API_KEY) { - isolatedEnv.ANTHROPIC_API_KEY = credentials.ANTHROPIC_API_KEY; - } - if (credentials.GEMINI_API_KEY) { - isolatedEnv.GEMINI_API_KEY = credentials.GEMINI_API_KEY; - } - if (credentials.OPENROUTER_API_KEY) { - isolatedEnv.OPENROUTER_API_KEY = credentials.OPENROUTER_API_KEY; - } - if (!isolatedEnv.ANTHROPIC_API_KEY && process.env.CLAUDE_CODE_OAUTH_TOKEN) { - isolatedEnv.CLAUDE_CODE_OAUTH_TOKEN = process.env.CLAUDE_CODE_OAUTH_TOKEN; - } - } - return isolatedEnv; -} -function getCredential(key) { - const env = loadClaudeMemEnv(); - return env[key]; -} -function hasAnthropicApiKey() { - const env = loadClaudeMemEnv(); - return !!env.ANTHROPIC_API_KEY; -} -function getAuthMethodDescription() { - if (hasAnthropicApiKey()) { - return "API key (from ~/.claude-mem/.env)"; - } - if (process.env.CLAUDE_CODE_OAUTH_TOKEN) { - return "Claude Code OAuth token (from parent process)"; - } - return "Claude Code CLI (subscription billing)"; -} - -// src/services/worker-service.ts -init_logger(); - -// src/services/sync/ChromaMcpManager.ts -init_logger(); -init_SettingsDefaultsManager(); -init_paths(); -import { execSync as execSync2 } from "child_process"; -import path5 from "path"; -import os from "os"; -import fs from "fs"; - -// src/supervisor/env-sanitizer.ts -var ENV_PREFIXES = ["CLAUDECODE_", "CLAUDE_CODE_"]; -var ENV_EXACT_MATCHES = new Set([ - "CLAUDECODE", - "CLAUDE_CODE_SESSION", - "CLAUDE_CODE_ENTRYPOINT", - "MCP_SESSION_ID" -]); -function sanitizeEnv(env = process.env) { - const sanitized = {}; - for (const [key, value] of Object.entries(env)) { - if (value === undefined) - continue; - if (ENV_EXACT_MATCHES.has(key)) - continue; - if (ENV_PREFIXES.some((prefix) => key.startsWith(prefix))) - continue; - sanitized[key] = value; - } - return sanitized; -} - -// src/supervisor/index.ts -init_logger(); -import { existsSync as existsSync6, readFileSync as readFileSync6, rmSync as rmSync2 } from "fs"; -import { homedir as homedir7 } from "os"; -import path4 from "path"; - -// src/supervisor/process-registry.ts -init_logger(); -import { existsSync as existsSync5, mkdirSync as mkdirSync5, readFileSync as readFileSync5, writeFileSync as writeFileSync3 } from "fs"; -import { homedir as homedir5 } from "os"; -import path2 from "path"; -var REAP_SESSION_SIGTERM_TIMEOUT_MS = 5000; -var REAP_SESSION_SIGKILL_TIMEOUT_MS = 1000; -var DATA_DIR3 = path2.join(homedir5(), ".claude-mem"); -var DEFAULT_REGISTRY_PATH = path2.join(DATA_DIR3, "supervisor.json"); -function isPidAlive(pid) { - if (!Number.isInteger(pid) || pid < 0) - return false; - if (pid === 0) - return false; - try { - process.kill(pid, 0); - return true; - } catch (error2) { - const code = error2.code; - return code === "EPERM"; - } -} - -class ProcessRegistry { - registryPath; - entries = new Map; - runtimeProcesses = new Map; - initialized = false; - constructor(registryPath = DEFAULT_REGISTRY_PATH) { - this.registryPath = registryPath; - } - initialize() { - if (this.initialized) - return; - this.initialized = true; - mkdirSync5(path2.dirname(this.registryPath), { recursive: true }); - if (!existsSync5(this.registryPath)) { - this.persist(); - return; - } - try { - const raw = JSON.parse(readFileSync5(this.registryPath, "utf-8")); - const processes = raw.processes ?? {}; - for (const [id, info] of Object.entries(processes)) { - this.entries.set(id, info); - } - } catch (error2) { - logger.warn("SYSTEM", "Failed to parse supervisor registry, rebuilding", { - path: this.registryPath - }, error2); - this.entries.clear(); - } - const removed = this.pruneDeadEntries(); - if (removed > 0) { - logger.info("SYSTEM", "Removed dead processes from supervisor registry", { removed }); - } - this.persist(); - } - register(id, processInfo, processRef) { - this.initialize(); - this.entries.set(id, processInfo); - if (processRef) { - this.runtimeProcesses.set(id, processRef); - } - this.persist(); - } - unregister(id) { - this.initialize(); - this.entries.delete(id); - this.runtimeProcesses.delete(id); - this.persist(); - } - clear() { - this.entries.clear(); - this.runtimeProcesses.clear(); - this.persist(); - } - getAll() { - this.initialize(); - return Array.from(this.entries.entries()).map(([id, info]) => ({ id, ...info })).sort((a, b) => { - const left = Date.parse(a.startedAt); - const right = Date.parse(b.startedAt); - return (Number.isNaN(left) ? 0 : left) - (Number.isNaN(right) ? 0 : right); - }); - } - getBySession(sessionId) { - const normalized = String(sessionId); - return this.getAll().filter((record3) => record3.sessionId !== undefined && String(record3.sessionId) === normalized); - } - getRuntimeProcess(id) { - return this.runtimeProcesses.get(id); - } - getByPid(pid) { - return this.getAll().filter((record3) => record3.pid === pid); - } - pruneDeadEntries() { - this.initialize(); - let removed = 0; - for (const [id, info] of this.entries) { - if (isPidAlive(info.pid)) - continue; - this.entries.delete(id); - this.runtimeProcesses.delete(id); - removed += 1; - } - if (removed > 0) { - this.persist(); - } - return removed; - } - async reapSession(sessionId) { - this.initialize(); - const sessionRecords = this.getBySession(sessionId); - if (sessionRecords.length === 0) { - return 0; - } - const sessionIdNum = typeof sessionId === "number" ? sessionId : Number(sessionId) || undefined; - logger.info("SYSTEM", `Reaping ${sessionRecords.length} process(es) for session ${sessionId}`, { - sessionId: sessionIdNum, - pids: sessionRecords.map((r) => r.pid) - }); - const aliveRecords = sessionRecords.filter((r) => isPidAlive(r.pid)); - for (const record3 of aliveRecords) { - try { - process.kill(record3.pid, "SIGTERM"); - } catch (error2) { - const code = error2.code; - if (code !== "ESRCH") { - logger.debug("SYSTEM", `Failed to SIGTERM session process PID ${record3.pid}`, { - pid: record3.pid - }, error2); - } - } - } - const deadline = Date.now() + REAP_SESSION_SIGTERM_TIMEOUT_MS; - while (Date.now() < deadline) { - const survivors2 = aliveRecords.filter((r) => isPidAlive(r.pid)); - if (survivors2.length === 0) - break; - await new Promise((resolve) => setTimeout(resolve, 100)); - } - const survivors = aliveRecords.filter((r) => isPidAlive(r.pid)); - for (const record3 of survivors) { - logger.warn("SYSTEM", `Session process PID ${record3.pid} did not exit after SIGTERM, sending SIGKILL`, { - pid: record3.pid, - sessionId: sessionIdNum - }); - try { - process.kill(record3.pid, "SIGKILL"); - } catch (error2) { - const code = error2.code; - if (code !== "ESRCH") { - logger.debug("SYSTEM", `Failed to SIGKILL session process PID ${record3.pid}`, { - pid: record3.pid - }, error2); - } - } - } - if (survivors.length > 0) { - const sigkillDeadline = Date.now() + REAP_SESSION_SIGKILL_TIMEOUT_MS; - while (Date.now() < sigkillDeadline) { - const remaining = survivors.filter((r) => isPidAlive(r.pid)); - if (remaining.length === 0) - break; - await new Promise((resolve) => setTimeout(resolve, 100)); - } - } - for (const record3 of sessionRecords) { - this.entries.delete(record3.id); - this.runtimeProcesses.delete(record3.id); - } - this.persist(); - logger.info("SYSTEM", `Reaped ${sessionRecords.length} process(es) for session ${sessionId}`, { - sessionId: sessionIdNum, - reaped: sessionRecords.length - }); - return sessionRecords.length; - } - persist() { - const payload = { - processes: Object.fromEntries(this.entries.entries()) - }; - mkdirSync5(path2.dirname(this.registryPath), { recursive: true }); - writeFileSync3(this.registryPath, JSON.stringify(payload, null, 2)); - } -} -var registrySingleton = null; -function getProcessRegistry() { - if (!registrySingleton) { - registrySingleton = new ProcessRegistry; - } - return registrySingleton; -} - -// src/supervisor/shutdown.ts -init_logger(); -init_hook_constants(); -import { execFile } from "child_process"; -import { rmSync } from "fs"; -import { homedir as homedir6 } from "os"; -import path3 from "path"; -import { promisify } from "util"; -var execFileAsync = promisify(execFile); -var DATA_DIR4 = path3.join(homedir6(), ".claude-mem"); -var PID_FILE = path3.join(DATA_DIR4, "worker.pid"); -async function runShutdownCascade(options) { - const currentPid = options.currentPid ?? process.pid; - const pidFilePath = options.pidFilePath ?? PID_FILE; - const allRecords = options.registry.getAll(); - const childRecords = [...allRecords].filter((record3) => record3.pid !== currentPid).sort((a, b) => Date.parse(b.startedAt) - Date.parse(a.startedAt)); - for (const record3 of childRecords) { - if (!isPidAlive(record3.pid)) { - options.registry.unregister(record3.id); - continue; - } - try { - await signalProcess(record3.pid, "SIGTERM"); - } catch (error2) { - logger.debug("SYSTEM", "Failed to send SIGTERM to child process", { - pid: record3.pid, - type: record3.type - }, error2); - } - } - await waitForExit(childRecords, 5000); - const survivors = childRecords.filter((record3) => isPidAlive(record3.pid)); - for (const record3 of survivors) { - try { - await signalProcess(record3.pid, "SIGKILL"); - } catch (error2) { - logger.debug("SYSTEM", "Failed to force kill child process", { - pid: record3.pid, - type: record3.type - }, error2); - } - } - await waitForExit(survivors, 1000); - for (const record3 of childRecords) { - options.registry.unregister(record3.id); - } - for (const record3 of allRecords.filter((record4) => record4.pid === currentPid)) { - options.registry.unregister(record3.id); - } - try { - rmSync(pidFilePath, { force: true }); - } catch (error2) { - logger.debug("SYSTEM", "Failed to remove PID file during shutdown", { pidFilePath }, error2); - } - options.registry.pruneDeadEntries(); -} -async function waitForExit(records, timeoutMs) { - const deadline = Date.now() + timeoutMs; - while (Date.now() < deadline) { - const survivors = records.filter((record3) => isPidAlive(record3.pid)); - if (survivors.length === 0) { - return; - } - await new Promise((resolve) => setTimeout(resolve, 100)); - } -} -async function signalProcess(pid, signal) { - if (signal === "SIGTERM") { - try { - process.kill(pid, signal); - } catch (error2) { - const errno = error2.code; - if (errno === "ESRCH") { - return; - } - throw error2; - } - return; - } - if (process.platform === "win32") { - const treeKill = await loadTreeKill(); - if (treeKill) { - await new Promise((resolve, reject) => { - treeKill(pid, signal, (error2) => { - if (!error2) { - resolve(); - return; - } - const errno = error2.code; - if (errno === "ESRCH") { - resolve(); - return; - } - reject(error2); - }); - }); - return; - } - const args = ["/PID", String(pid), "/T"]; - if (signal === "SIGKILL") { - args.push("/F"); - } - await execFileAsync("taskkill", args, { - timeout: HOOK_TIMEOUTS.POWERSHELL_COMMAND, - windowsHide: true - }); - return; - } - try { - process.kill(pid, signal); - } catch (error2) { - const errno = error2.code; - if (errno === "ESRCH") { - return; - } - throw error2; - } -} -async function loadTreeKill() { - const moduleName = "tree-kill"; - try { - const treeKillModule = await import(moduleName); - return treeKillModule.default ?? treeKillModule; - } catch { - return null; - } -} - -// src/supervisor/health-checker.ts -init_logger(); -var HEALTH_CHECK_INTERVAL_MS = 30000; -var healthCheckInterval = null; -function runHealthCheck() { - const registry2 = getProcessRegistry(); - const removedProcessCount = registry2.pruneDeadEntries(); - if (removedProcessCount > 0) { - logger.info("SYSTEM", `Health check: pruned ${removedProcessCount} dead process(es) from registry`); - } -} -function startHealthChecker() { - if (healthCheckInterval !== null) - return; - healthCheckInterval = setInterval(runHealthCheck, HEALTH_CHECK_INTERVAL_MS); - healthCheckInterval.unref(); - logger.debug("SYSTEM", "Health checker started", { intervalMs: HEALTH_CHECK_INTERVAL_MS }); -} -function stopHealthChecker() { - if (healthCheckInterval === null) - return; - clearInterval(healthCheckInterval); - healthCheckInterval = null; - logger.debug("SYSTEM", "Health checker stopped"); -} - -// src/supervisor/index.ts -var DATA_DIR5 = path4.join(homedir7(), ".claude-mem"); -var PID_FILE2 = path4.join(DATA_DIR5, "worker.pid"); - -class Supervisor { - registry; - started = false; - stopPromise = null; - signalHandlersRegistered = false; - shutdownInitiated = false; - shutdownHandler = null; - constructor(registry2) { - this.registry = registry2; - } - async start() { - if (this.started) - return; - this.registry.initialize(); - const pidStatus = validateWorkerPidFile({ logAlive: false }); - if (pidStatus === "alive") { - throw new Error("Worker already running"); - } - this.started = true; - startHealthChecker(); - } - configureSignalHandlers(shutdownHandler) { - this.shutdownHandler = shutdownHandler; - if (this.signalHandlersRegistered) - return; - this.signalHandlersRegistered = true; - const handleSignal = async (signal) => { - if (this.shutdownInitiated) { - logger.warn("SYSTEM", `Received ${signal} but shutdown already in progress`); - return; - } - this.shutdownInitiated = true; - logger.info("SYSTEM", `Received ${signal}, shutting down...`); - try { - if (this.shutdownHandler) { - await this.shutdownHandler(); - } else { - await this.stop(); - } - } catch (error2) { - logger.error("SYSTEM", "Error during shutdown", {}, error2); - try { - await this.stop(); - } catch (stopError) { - logger.debug("SYSTEM", "Supervisor shutdown fallback failed", {}, stopError); - } - } - process.exit(0); - }; - process.on("SIGTERM", () => void handleSignal("SIGTERM")); - process.on("SIGINT", () => void handleSignal("SIGINT")); - if (process.platform !== "win32") { - if (process.argv.includes("--daemon")) { - process.on("SIGHUP", () => { - logger.debug("SYSTEM", "Ignoring SIGHUP in daemon mode"); - }); - } else { - process.on("SIGHUP", () => void handleSignal("SIGHUP")); - } - } - } - async stop() { - if (this.stopPromise) { - await this.stopPromise; - return; - } - stopHealthChecker(); - this.stopPromise = runShutdownCascade({ - registry: this.registry, - currentPid: process.pid - }).finally(() => { - this.started = false; - this.stopPromise = null; - }); - await this.stopPromise; - } - assertCanSpawn(type) { - if (this.stopPromise !== null) { - throw new Error(`Supervisor is shutting down, refusing to spawn ${type}`); - } - } - registerProcess(id, processInfo, processRef) { - this.registry.register(id, processInfo, processRef); - } - unregisterProcess(id) { - this.registry.unregister(id); - } - getRegistry() { - return this.registry; - } -} -var supervisorSingleton = new Supervisor(getProcessRegistry()); -async function startSupervisor() { - await supervisorSingleton.start(); -} -async function stopSupervisor() { - await supervisorSingleton.stop(); -} -function getSupervisor() { - return supervisorSingleton; -} -function configureSupervisorSignalHandlers(shutdownHandler) { - supervisorSingleton.configureSignalHandlers(shutdownHandler); -} -function validateWorkerPidFile(options = {}) { - const pidFilePath = options.pidFilePath ?? PID_FILE2; - if (!existsSync6(pidFilePath)) { - return "missing"; - } - let pidInfo = null; - try { - pidInfo = JSON.parse(readFileSync6(pidFilePath, "utf-8")); - } catch (error2) { - logger.warn("SYSTEM", "Failed to parse worker PID file, removing it", { path: pidFilePath }, error2); - rmSync2(pidFilePath, { force: true }); - return "invalid"; - } - if (isPidAlive(pidInfo.pid)) { - if (options.logAlive ?? true) { - logger.info("SYSTEM", "Worker already running (PID alive)", { - existingPid: pidInfo.pid, - existingPort: pidInfo.port, - startedAt: pidInfo.startedAt - }); - } - return "alive"; - } - logger.info("SYSTEM", "Removing stale PID file (worker process is dead)", { - pid: pidInfo.pid, - port: pidInfo.port, - startedAt: pidInfo.startedAt - }); - rmSync2(pidFilePath, { force: true }); - return "stale"; -} - -// src/services/sync/ChromaMcpManager.ts -var CHROMA_MCP_CLIENT_NAME = "claude-mem-chroma"; -var CHROMA_MCP_CLIENT_VERSION = "1.0.0"; -var MCP_CONNECTION_TIMEOUT_MS = 30000; -var RECONNECT_BACKOFF_MS = 1e4; -var DEFAULT_CHROMA_DATA_DIR = path5.join(os.homedir(), ".claude-mem", "chroma"); -var CHROMA_SUPERVISOR_ID = "chroma-mcp"; - -class ChromaMcpManager { - static instance = null; - client = null; - transport = null; - connected = false; - lastConnectionFailureTimestamp = 0; - connecting = null; - constructor() {} - static getInstance() { - if (!ChromaMcpManager.instance) { - ChromaMcpManager.instance = new ChromaMcpManager; - } - return ChromaMcpManager.instance; - } - async ensureConnected() { - if (this.connected && this.client) { - return; - } - const timeSinceLastFailure = Date.now() - this.lastConnectionFailureTimestamp; - if (this.lastConnectionFailureTimestamp > 0 && timeSinceLastFailure < RECONNECT_BACKOFF_MS) { - throw new Error(`chroma-mcp connection in backoff (${Math.ceil((RECONNECT_BACKOFF_MS - timeSinceLastFailure) / 1000)}s remaining)`); - } - if (this.connecting) { - await this.connecting; - return; - } - this.connecting = this.connectInternal(); - try { - await this.connecting; - } catch (error2) { - this.lastConnectionFailureTimestamp = Date.now(); - throw error2; - } finally { - this.connecting = null; - } - } - async connectInternal() { - if (this.transport) { - try { - await this.transport.close(); - } catch {} - } - if (this.client) { - try { - await this.client.close(); - } catch {} - } - this.client = null; - this.transport = null; - this.connected = false; - const commandArgs = this.buildCommandArgs(); - const spawnEnvironment = this.getSpawnEnv(); - getSupervisor().assertCanSpawn("chroma mcp"); - const isWindows = process.platform === "win32"; - const uvxSpawnCommand = isWindows ? process.env.ComSpec || "cmd.exe" : "uvx"; - const uvxSpawnArgs = isWindows ? ["/c", "uvx", ...commandArgs] : commandArgs; - logger.info("CHROMA_MCP", "Connecting to chroma-mcp via MCP stdio", { - command: uvxSpawnCommand, - args: uvxSpawnArgs.join(" ") - }); - this.transport = new StdioClientTransport({ - command: uvxSpawnCommand, - args: uvxSpawnArgs, - env: spawnEnvironment, - stderr: "pipe" - }); - this.client = new Client({ name: CHROMA_MCP_CLIENT_NAME, version: CHROMA_MCP_CLIENT_VERSION }, { capabilities: {} }); - const mcpConnectionPromise = this.client.connect(this.transport); - let timeoutId; - const timeoutPromise = new Promise((_, reject) => { - timeoutId = setTimeout(() => reject(new Error(`MCP connection to chroma-mcp timed out after ${MCP_CONNECTION_TIMEOUT_MS}ms`)), MCP_CONNECTION_TIMEOUT_MS); - }); - try { - await Promise.race([mcpConnectionPromise, timeoutPromise]); - } catch (connectionError) { - clearTimeout(timeoutId); - logger.warn("CHROMA_MCP", "Connection failed, killing subprocess to prevent zombie", { - error: connectionError instanceof Error ? connectionError.message : String(connectionError) - }); - try { - await this.transport.close(); - } catch {} - try { - await this.client.close(); - } catch {} - this.client = null; - this.transport = null; - this.connected = false; - throw connectionError; - } - clearTimeout(timeoutId); - this.connected = true; - this.registerManagedProcess(); - logger.info("CHROMA_MCP", "Connected to chroma-mcp successfully"); - const currentTransport = this.transport; - this.transport.onclose = () => { - if (this.transport !== currentTransport) { - logger.debug("CHROMA_MCP", "Ignoring stale onclose from previous transport"); - return; - } - logger.warn("CHROMA_MCP", "chroma-mcp subprocess closed unexpectedly, applying reconnect backoff"); - this.connected = false; - getSupervisor().unregisterProcess(CHROMA_SUPERVISOR_ID); - this.client = null; - this.transport = null; - this.lastConnectionFailureTimestamp = Date.now(); - }; - } - buildCommandArgs() { - const settings = SettingsDefaultsManager.loadFromFile(USER_SETTINGS_PATH); - const chromaMode = settings.CLAUDE_MEM_CHROMA_MODE || "local"; - const pythonVersion = process.env.CLAUDE_MEM_PYTHON_VERSION || settings.CLAUDE_MEM_PYTHON_VERSION || "3.13"; - if (chromaMode === "remote") { - const chromaHost = settings.CLAUDE_MEM_CHROMA_HOST || "127.0.0.1"; - const chromaPort = settings.CLAUDE_MEM_CHROMA_PORT || "8000"; - const chromaSsl = settings.CLAUDE_MEM_CHROMA_SSL === "true"; - const chromaTenant = settings.CLAUDE_MEM_CHROMA_TENANT || "default_tenant"; - const chromaDatabase = settings.CLAUDE_MEM_CHROMA_DATABASE || "default_database"; - const chromaApiKey = settings.CLAUDE_MEM_CHROMA_API_KEY || ""; - const args = [ - "--python", - pythonVersion, - "chroma-mcp", - "--client-type", - "http", - "--host", - chromaHost, - "--port", - chromaPort - ]; - args.push("--ssl", chromaSsl ? "true" : "false"); - if (chromaTenant !== "default_tenant") { - args.push("--tenant", chromaTenant); - } - if (chromaDatabase !== "default_database") { - args.push("--database", chromaDatabase); - } - if (chromaApiKey) { - args.push("--api-key", chromaApiKey); - } - return args; - } - return [ - "--python", - pythonVersion, - "chroma-mcp", - "--client-type", - "persistent", - "--data-dir", - DEFAULT_CHROMA_DATA_DIR.replace(/\\/g, "/") - ]; - } - async callTool(toolName, toolArguments) { - await this.ensureConnected(); - logger.debug("CHROMA_MCP", `Calling tool: ${toolName}`, { - arguments: JSON.stringify(toolArguments).slice(0, 200) - }); - let result; - try { - result = await this.client.callTool({ - name: toolName, - arguments: toolArguments - }); - } catch (transportError) { - this.connected = false; - this.client = null; - this.transport = null; - logger.warn("CHROMA_MCP", `Transport error during "${toolName}", reconnecting and retrying once`, { - error: transportError instanceof Error ? transportError.message : String(transportError) - }); - try { - await this.ensureConnected(); - result = await this.client.callTool({ - name: toolName, - arguments: toolArguments - }); - } catch (retryError) { - this.connected = false; - throw new Error(`chroma-mcp transport error during "${toolName}" (retry failed): ${retryError instanceof Error ? retryError.message : String(retryError)}`); - } - } - if (result.isError) { - const errorText = result.content?.find((item) => item.type === "text")?.text || "Unknown chroma-mcp error"; - throw new Error(`chroma-mcp tool "${toolName}" returned error: ${errorText}`); - } - const contentArray = result.content; - if (!contentArray || contentArray.length === 0) { - return null; - } - const firstTextContent = contentArray.find((item) => item.type === "text" && item.text); - if (!firstTextContent || !firstTextContent.text) { - return null; - } - try { - return JSON.parse(firstTextContent.text); - } catch { - return null; - } - } - async isHealthy() { - try { - await this.callTool("chroma_list_collections", { limit: 1 }); - return true; - } catch { - return false; - } - } - async stop() { - if (!this.client) { - logger.debug("CHROMA_MCP", "No active MCP connection to stop"); - return; - } - logger.info("CHROMA_MCP", "Stopping chroma-mcp MCP connection"); - try { - await this.client.close(); - } catch (error2) { - logger.debug("CHROMA_MCP", "Error during client close (subprocess may already be dead)", {}, error2); - } - getSupervisor().unregisterProcess(CHROMA_SUPERVISOR_ID); - this.client = null; - this.transport = null; - this.connected = false; - this.connecting = null; - logger.info("CHROMA_MCP", "chroma-mcp MCP connection stopped"); - } - static async reset() { - if (ChromaMcpManager.instance) { - await ChromaMcpManager.instance.stop(); - } - ChromaMcpManager.instance = null; - } - getCombinedCertPath() { - const combinedCertPath = path5.join(os.homedir(), ".claude-mem", "combined_certs.pem"); - if (fs.existsSync(combinedCertPath)) { - const stats = fs.statSync(combinedCertPath); - const ageMs = Date.now() - stats.mtimeMs; - if (ageMs < 24 * 60 * 60 * 1000) { - return combinedCertPath; - } - } - if (process.platform !== "darwin") { - return; - } - try { - let certifiPath; - try { - certifiPath = execSync2('uvx --with certifi python -c "import certifi; print(certifi.where())"', { encoding: "utf8", stdio: ["pipe", "pipe", "pipe"], timeout: 1e4 }).trim(); - } catch { - return; - } - if (!certifiPath || !fs.existsSync(certifiPath)) { - return; - } - let zscalerCert = ""; - try { - zscalerCert = execSync2('security find-certificate -a -c "Zscaler" -p /Library/Keychains/System.keychain', { encoding: "utf8", stdio: ["pipe", "pipe", "pipe"], timeout: 5000 }); - } catch { - return; - } - if (!zscalerCert || !zscalerCert.includes("-----BEGIN CERTIFICATE-----") || !zscalerCert.includes("-----END CERTIFICATE-----")) { - return; - } - const certifiContent = fs.readFileSync(certifiPath, "utf8"); - const tempPath = combinedCertPath + ".tmp"; - fs.writeFileSync(tempPath, certifiContent + ` -` + zscalerCert); - fs.renameSync(tempPath, combinedCertPath); - logger.info("CHROMA_MCP", "Created combined SSL certificate bundle for Zscaler", { - path: combinedCertPath - }); - return combinedCertPath; - } catch (error2) { - logger.debug("CHROMA_MCP", "Could not create combined cert bundle", {}, error2); - return; - } - } - getSpawnEnv() { - const baseEnv = {}; - for (const [key, value] of Object.entries(sanitizeEnv(process.env))) { - if (value !== undefined) { - baseEnv[key] = value; - } - } - const combinedCertPath = this.getCombinedCertPath(); - if (!combinedCertPath) { - return baseEnv; - } - logger.info("CHROMA_MCP", "Using combined SSL certificates for enterprise compatibility", { - certPath: combinedCertPath - }); - return { - ...baseEnv, - SSL_CERT_FILE: combinedCertPath, - REQUESTS_CA_BUNDLE: combinedCertPath, - CURL_CA_BUNDLE: combinedCertPath, - NODE_EXTRA_CA_CERTS: combinedCertPath - }; - } - registerManagedProcess() { - const chromaProcess = this.transport._process; - if (!chromaProcess?.pid) { - return; - } - getSupervisor().registerProcess(CHROMA_SUPERVISOR_ID, { - pid: chromaProcess.pid, - type: "chroma", - startedAt: new Date().toISOString() - }, chromaProcess); - chromaProcess.once("exit", () => { - getSupervisor().unregisterProcess(CHROMA_SUPERVISOR_ID); - }); - } -} - -// src/services/sync/ChromaSync.ts -init_SessionStore(); -init_logger(); - -class ChromaSync { - project; - collectionName; - collectionCreated = false; - BATCH_SIZE = 100; - constructor(project) { - this.project = project; - const sanitized = project.replace(/[^a-zA-Z0-9._-]/g, "_").replace(/[^a-zA-Z0-9]+$/, ""); - this.collectionName = `cm__${sanitized || "unknown"}`; - } - async ensureCollectionExists() { - if (this.collectionCreated) { - return; - } - const chromaMcp = ChromaMcpManager.getInstance(); - try { - await chromaMcp.callTool("chroma_create_collection", { - collection_name: this.collectionName - }); - } catch (error2) { - const message = error2 instanceof Error ? error2.message : String(error2); - if (!message.includes("already exists")) { - throw error2; - } - } - this.collectionCreated = true; - logger.debug("CHROMA_SYNC", "Collection ready", { - collection: this.collectionName - }); - } - formatObservationDocs(obs) { - const documents = []; - const facts = obs.facts ? JSON.parse(obs.facts) : []; - const concepts = obs.concepts ? JSON.parse(obs.concepts) : []; - const files_read = obs.files_read ? JSON.parse(obs.files_read) : []; - const files_modified = obs.files_modified ? JSON.parse(obs.files_modified) : []; - const baseMetadata = { - sqlite_id: obs.id, - doc_type: "observation", - memory_session_id: obs.memory_session_id, - project: obs.project, - created_at_epoch: obs.created_at_epoch, - type: obs.type || "discovery", - title: obs.title || "Untitled" - }; - if (obs.subtitle) { - baseMetadata.subtitle = obs.subtitle; - } - if (concepts.length > 0) { - baseMetadata.concepts = concepts.join(","); - } - if (files_read.length > 0) { - baseMetadata.files_read = files_read.join(","); - } - if (files_modified.length > 0) { - baseMetadata.files_modified = files_modified.join(","); - } - if (obs.narrative) { - documents.push({ - id: `obs_${obs.id}_narrative`, - document: obs.narrative, - metadata: { ...baseMetadata, field_type: "narrative" } - }); - } - if (obs.text) { - documents.push({ - id: `obs_${obs.id}_text`, - document: obs.text, - metadata: { ...baseMetadata, field_type: "text" } - }); - } - facts.forEach((fact, index) => { - documents.push({ - id: `obs_${obs.id}_fact_${index}`, - document: fact, - metadata: { ...baseMetadata, field_type: "fact", fact_index: index } - }); - }); - return documents; - } - formatSummaryDocs(summary) { - const documents = []; - const baseMetadata = { - sqlite_id: summary.id, - doc_type: "session_summary", - memory_session_id: summary.memory_session_id, - project: summary.project, - created_at_epoch: summary.created_at_epoch, - prompt_number: summary.prompt_number || 0 - }; - if (summary.request) { - documents.push({ - id: `summary_${summary.id}_request`, - document: summary.request, - metadata: { ...baseMetadata, field_type: "request" } - }); - } - if (summary.investigated) { - documents.push({ - id: `summary_${summary.id}_investigated`, - document: summary.investigated, - metadata: { ...baseMetadata, field_type: "investigated" } - }); - } - if (summary.learned) { - documents.push({ - id: `summary_${summary.id}_learned`, - document: summary.learned, - metadata: { ...baseMetadata, field_type: "learned" } - }); - } - if (summary.completed) { - documents.push({ - id: `summary_${summary.id}_completed`, - document: summary.completed, - metadata: { ...baseMetadata, field_type: "completed" } - }); - } - if (summary.next_steps) { - documents.push({ - id: `summary_${summary.id}_next_steps`, - document: summary.next_steps, - metadata: { ...baseMetadata, field_type: "next_steps" } - }); - } - if (summary.notes) { - documents.push({ - id: `summary_${summary.id}_notes`, - document: summary.notes, - metadata: { ...baseMetadata, field_type: "notes" } - }); - } - return documents; - } - async addDocuments(documents) { - if (documents.length === 0) { - return; - } - await this.ensureCollectionExists(); - const chromaMcp = ChromaMcpManager.getInstance(); - for (let i = 0;i < documents.length; i += this.BATCH_SIZE) { - const batch = documents.slice(i, i + this.BATCH_SIZE); - const cleanMetadatas = batch.map((d) => Object.fromEntries(Object.entries(d.metadata).filter(([_, v]) => v !== null && v !== undefined && v !== ""))); - try { - await chromaMcp.callTool("chroma_add_documents", { - collection_name: this.collectionName, - ids: batch.map((d) => d.id), - documents: batch.map((d) => d.document), - metadatas: cleanMetadatas - }); - } catch (error2) { - logger.error("CHROMA_SYNC", "Batch add failed, continuing with remaining batches", { - collection: this.collectionName, - batchStart: i, - batchSize: batch.length - }, error2); - } - } - logger.debug("CHROMA_SYNC", "Documents added", { - collection: this.collectionName, - count: documents.length - }); - } - async syncObservation(observationId, memorySessionId, project, obs, promptNumber, createdAtEpoch, discoveryTokens = 0) { - const stored = { - id: observationId, - memory_session_id: memorySessionId, - project, - text: null, - type: obs.type, - title: obs.title, - subtitle: obs.subtitle, - facts: JSON.stringify(obs.facts), - narrative: obs.narrative, - concepts: JSON.stringify(obs.concepts), - files_read: JSON.stringify(obs.files_read), - files_modified: JSON.stringify(obs.files_modified), - prompt_number: promptNumber, - discovery_tokens: discoveryTokens, - created_at: new Date(createdAtEpoch * 1000).toISOString(), - created_at_epoch: createdAtEpoch - }; - const documents = this.formatObservationDocs(stored); - logger.info("CHROMA_SYNC", "Syncing observation", { - observationId, - documentCount: documents.length, - project - }); - await this.addDocuments(documents); - } - async syncSummary(summaryId, memorySessionId, project, summary, promptNumber, createdAtEpoch, discoveryTokens = 0) { - const stored = { - id: summaryId, - memory_session_id: memorySessionId, - project, - request: summary.request, - investigated: summary.investigated, - learned: summary.learned, - completed: summary.completed, - next_steps: summary.next_steps, - notes: summary.notes, - prompt_number: promptNumber, - discovery_tokens: discoveryTokens, - created_at: new Date(createdAtEpoch * 1000).toISOString(), - created_at_epoch: createdAtEpoch - }; - const documents = this.formatSummaryDocs(stored); - logger.info("CHROMA_SYNC", "Syncing summary", { - summaryId, - documentCount: documents.length, - project - }); - await this.addDocuments(documents); - } - formatUserPromptDoc(prompt) { - return { - id: `prompt_${prompt.id}`, - document: prompt.prompt_text, - metadata: { - sqlite_id: prompt.id, - doc_type: "user_prompt", - memory_session_id: prompt.memory_session_id, - project: prompt.project, - created_at_epoch: prompt.created_at_epoch, - prompt_number: prompt.prompt_number - } - }; - } - async syncUserPrompt(promptId, memorySessionId, project, promptText, promptNumber, createdAtEpoch) { - const stored = { - id: promptId, - content_session_id: "", - prompt_number: promptNumber, - prompt_text: promptText, - created_at: new Date(createdAtEpoch * 1000).toISOString(), - created_at_epoch: createdAtEpoch, - memory_session_id: memorySessionId, - project - }; - const document2 = this.formatUserPromptDoc(stored); - logger.info("CHROMA_SYNC", "Syncing user prompt", { - promptId, - project - }); - await this.addDocuments([document2]); - } - async getExistingChromaIds(projectOverride) { - const targetProject = projectOverride ?? this.project; - await this.ensureCollectionExists(); - const chromaMcp = ChromaMcpManager.getInstance(); - const observationIds = new Set; - const summaryIds = new Set; - const promptIds = new Set; - let offset = 0; - const limit = 1000; - logger.info("CHROMA_SYNC", "Fetching existing Chroma document IDs...", { project: targetProject }); - while (true) { - const result = await chromaMcp.callTool("chroma_get_documents", { - collection_name: this.collectionName, - limit, - offset, - where: { project: targetProject }, - include: ["metadatas"] - }); - const metadatas = result?.metadatas || []; - if (metadatas.length === 0) { - break; - } - for (const meta2 of metadatas) { - if (meta2 && meta2.sqlite_id) { - const sqliteId = meta2.sqlite_id; - if (meta2.doc_type === "observation") { - observationIds.add(sqliteId); - } else if (meta2.doc_type === "session_summary") { - summaryIds.add(sqliteId); - } else if (meta2.doc_type === "user_prompt") { - promptIds.add(sqliteId); - } - } - } - offset += limit; - logger.debug("CHROMA_SYNC", "Fetched batch of existing IDs", { - project: targetProject, - offset, - batchSize: metadatas.length - }); - } - logger.info("CHROMA_SYNC", "Existing IDs fetched", { - project: targetProject, - observations: observationIds.size, - summaries: summaryIds.size, - prompts: promptIds.size - }); - return { observations: observationIds, summaries: summaryIds, prompts: promptIds }; - } - async ensureBackfilled(projectOverride) { - const backfillProject = projectOverride ?? this.project; - logger.info("CHROMA_SYNC", "Starting smart backfill", { project: backfillProject }); - await this.ensureCollectionExists(); - const existing = await this.getExistingChromaIds(backfillProject); - const db = new SessionStore; - try { - const existingObsIds = Array.from(existing.observations).filter((id) => Number.isInteger(id) && id > 0); - const obsExclusionClause = existingObsIds.length > 0 ? `AND id NOT IN (${existingObsIds.join(",")})` : ""; - const observations = db.db.prepare(` +Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let o of t.seen.entries()){let a=o[1];if(e===o[0]){s(o);continue}if(t.external){let u=t.external.registry.get(o[0])?.id;if(e!==o[0]&&u){s(o);continue}}if(t.metadataRegistry.get(o[0])?.id){s(o);continue}if(a.cycle){s(o);continue}if(a.count>1&&t.reused==="ref"){s(o);continue}}}function gm(t,e){let r=t.seen.get(e);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=o=>{let a=t.seen.get(o);if(a.ref===null)return;let c=a.def??a.schema,u={...c},l=a.ref;if(a.ref=null,l){n(l);let p=t.seen.get(l),m=p.schema;if(m.$ref&&(t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(m)):Object.assign(c,m),Object.assign(c,u),o._zod.parent===l)for(let g in c)g==="$ref"||g==="allOf"||g in u||delete c[g];if(m.$ref&&p.def)for(let g in c)g==="$ref"||g==="allOf"||g in p.def&&JSON.stringify(c[g])===JSON.stringify(p.def[g])&&delete c[g]}let d=o._zod.parent;if(d&&d!==l){n(d);let p=t.seen.get(d);if(p?.schema.$ref&&(c.$ref=p.schema.$ref,p.def))for(let m in c)m==="$ref"||m==="allOf"||m in p.def&&JSON.stringify(c[m])===JSON.stringify(p.def[m])&&delete c[m]}t.override({zodSchema:o,jsonSchema:c,path:a.path??[]})};for(let o of[...t.seen.entries()].reverse())n(o[0]);let i={};if(t.target==="draft-2020-12"?i.$schema="https://json-schema.org/draft/2020-12/schema":t.target==="draft-07"?i.$schema="http://json-schema.org/draft-07/schema#":t.target==="draft-04"?i.$schema="http://json-schema.org/draft-04/schema#":t.target,t.external?.uri){let o=t.external.registry.get(e)?.id;if(!o)throw new Error("Schema is missing an `id` property");i.$id=t.external.uri(o)}Object.assign(i,r.def??r.schema);let s=t.external?.defs??{};for(let o of t.seen.entries()){let a=o[1];a.def&&a.defId&&(s[a.defId]=a.def)}t.external||Object.keys(s).length>0&&(t.target==="draft-2020-12"?i.$defs=s:i.definitions=s);try{let o=JSON.parse(JSON.stringify(i));return Object.defineProperty(o,"~standard",{value:{...e["~standard"],jsonSchema:{input:Yu(e,"input",t.processors),output:Yu(e,"output",t.processors)}},enumerable:!1,writable:!1}),o}catch{throw new Error("Error converting schema to JSON.")}}function Lr(t,e){let r=e??{seen:new Set};if(r.seen.has(t))return!1;r.seen.add(t);let n=t._zod.def;if(n.type==="transform")return!0;if(n.type==="array")return Lr(n.element,r);if(n.type==="set")return Lr(n.valueType,r);if(n.type==="lazy")return Lr(n.getter(),r);if(n.type==="promise"||n.type==="optional"||n.type==="nonoptional"||n.type==="nullable"||n.type==="readonly"||n.type==="default"||n.type==="prefault")return Lr(n.innerType,r);if(n.type==="intersection")return Lr(n.left,r)||Lr(n.right,r);if(n.type==="record"||n.type==="map")return Lr(n.keyType,r)||Lr(n.valueType,r);if(n.type==="pipe")return Lr(n.in,r)||Lr(n.out,r);if(n.type==="object"){for(let i in n.shape)if(Lr(n.shape[i],r))return!0;return!1}if(n.type==="union"){for(let i of n.options)if(Lr(i,r))return!0;return!1}if(n.type==="tuple"){for(let i of n.items)if(Lr(i,r))return!0;return!!(n.rest&&Lr(n.rest,r))}return!1}var lI=(t,e={})=>r=>{let n=fm({...r,processors:e});return $t(t,n),hm(n,t),gm(n,t)},Yu=(t,e,r={})=>n=>{let{libraryOptions:i,target:s}=n??{},o=fm({...i??{},target:s,io:e,processors:r});return $t(t,o),hm(o,t),gm(o,t)};var T8={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},dI=(t,e,r,n)=>{let i=r;i.type="string";let{minimum:s,maximum:o,format:a,patterns:c,contentEncoding:u}=t._zod.bag;if(typeof s=="number"&&(i.minLength=s),typeof o=="number"&&(i.maxLength=o),a&&(i.format=T8[a]??a,i.format===""&&delete i.format,a==="time"&&delete i.format),u&&(i.contentEncoding=u),c&&c.size>0){let l=[...c];l.length===1?i.pattern=l[0].source:l.length>1&&(i.allOf=[...l.map(d=>({...e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},pI=(t,e,r,n)=>{let i=r,{minimum:s,maximum:o,format:a,multipleOf:c,exclusiveMaximum:u,exclusiveMinimum:l}=t._zod.bag;typeof a=="string"&&a.includes("int")?i.type="integer":i.type="number",typeof l=="number"&&(e.target==="draft-04"||e.target==="openapi-3.0"?(i.minimum=l,i.exclusiveMinimum=!0):i.exclusiveMinimum=l),typeof s=="number"&&(i.minimum=s,typeof l=="number"&&e.target!=="draft-04"&&(l>=s?delete i.minimum:delete i.exclusiveMinimum)),typeof u=="number"&&(e.target==="draft-04"||e.target==="openapi-3.0"?(i.maximum=u,i.exclusiveMaximum=!0):i.exclusiveMaximum=u),typeof o=="number"&&(i.maximum=o,typeof u=="number"&&e.target!=="draft-04"&&(u<=o?delete i.maximum:delete i.exclusiveMaximum)),typeof c=="number"&&(i.multipleOf=c)},mI=(t,e,r,n)=>{r.type="boolean"},fI=(t,e,r,n)=>{if(e.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},hI=(t,e,r,n)=>{if(e.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},gI=(t,e,r,n)=>{e.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},vI=(t,e,r,n)=>{if(e.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},yI=(t,e,r,n)=>{if(e.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},_I=(t,e,r,n)=>{r.not={}},bI=(t,e,r,n)=>{},xI=(t,e,r,n)=>{},SI=(t,e,r,n)=>{if(e.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},wI=(t,e,r,n)=>{let i=t._zod.def,s=bu(i.entries);s.every(o=>typeof o=="number")&&(r.type="number"),s.every(o=>typeof o=="string")&&(r.type="string"),r.enum=s},EI=(t,e,r,n)=>{let i=t._zod.def,s=[];for(let o of i.values)if(o===void 0){if(e.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof o=="bigint"){if(e.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");s.push(Number(o))}else s.push(o);if(s.length!==0)if(s.length===1){let o=s[0];r.type=o===null?"null":typeof o,e.target==="draft-04"||e.target==="openapi-3.0"?r.enum=[o]:r.const=o}else s.every(o=>typeof o=="number")&&(r.type="number"),s.every(o=>typeof o=="string")&&(r.type="string"),s.every(o=>typeof o=="boolean")&&(r.type="boolean"),s.every(o=>o===null)&&(r.type="null"),r.enum=s},kI=(t,e,r,n)=>{if(e.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},$I=(t,e,r,n)=>{let i=r,s=t._zod.pattern;if(!s)throw new Error("Pattern not found in template literal");i.type="string",i.pattern=s.source},TI=(t,e,r,n)=>{let i=r,s={type:"string",format:"binary",contentEncoding:"binary"},{minimum:o,maximum:a,mime:c}=t._zod.bag;o!==void 0&&(s.minLength=o),a!==void 0&&(s.maxLength=a),c?c.length===1?(s.contentMediaType=c[0],Object.assign(i,s)):(Object.assign(i,s),i.anyOf=c.map(u=>({contentMediaType:u}))):Object.assign(i,s)},II=(t,e,r,n)=>{r.type="boolean"},RI=(t,e,r,n)=>{if(e.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},OI=(t,e,r,n)=>{if(e.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},PI=(t,e,r,n)=>{if(e.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},CI=(t,e,r,n)=>{if(e.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},AI=(t,e,r,n)=>{if(e.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},NI=(t,e,r,n)=>{let i=r,s=t._zod.def,{minimum:o,maximum:a}=t._zod.bag;typeof o=="number"&&(i.minItems=o),typeof a=="number"&&(i.maxItems=a),i.type="array",i.items=$t(s.element,e,{...n,path:[...n.path,"items"]})},MI=(t,e,r,n)=>{let i=r,s=t._zod.def;i.type="object",i.properties={};let o=s.shape;for(let u in o)i.properties[u]=$t(o[u],e,{...n,path:[...n.path,"properties",u]});let a=new Set(Object.keys(o)),c=new Set([...a].filter(u=>{let l=s.shape[u]._zod;return e.io==="input"?l.optin===void 0:l.optout===void 0}));c.size>0&&(i.required=Array.from(c)),s.catchall?._zod.def.type==="never"?i.additionalProperties=!1:s.catchall?s.catchall&&(i.additionalProperties=$t(s.catchall,e,{...n,path:[...n.path,"additionalProperties"]})):e.io==="output"&&(i.additionalProperties=!1)},pb=(t,e,r,n)=>{let i=t._zod.def,s=i.inclusive===!1,o=i.options.map((a,c)=>$t(a,e,{...n,path:[...n.path,s?"oneOf":"anyOf",c]}));s?r.oneOf=o:r.anyOf=o},DI=(t,e,r,n)=>{let i=t._zod.def,s=$t(i.left,e,{...n,path:[...n.path,"allOf",0]}),o=$t(i.right,e,{...n,path:[...n.path,"allOf",1]}),a=u=>"allOf"in u&&Object.keys(u).length===1,c=[...a(s)?s.allOf:[s],...a(o)?o.allOf:[o]];r.allOf=c},jI=(t,e,r,n)=>{let i=r,s=t._zod.def;i.type="array";let o=e.target==="draft-2020-12"?"prefixItems":"items",a=e.target==="draft-2020-12"||e.target==="openapi-3.0"?"items":"additionalItems",c=s.items.map((p,m)=>$t(p,e,{...n,path:[...n.path,o,m]})),u=s.rest?$t(s.rest,e,{...n,path:[...n.path,a,...e.target==="openapi-3.0"?[s.items.length]:[]]}):null;e.target==="draft-2020-12"?(i.prefixItems=c,u&&(i.items=u)):e.target==="openapi-3.0"?(i.items={anyOf:c},u&&i.items.anyOf.push(u),i.minItems=c.length,u||(i.maxItems=c.length)):(i.items=c,u&&(i.additionalItems=u));let{minimum:l,maximum:d}=t._zod.bag;typeof l=="number"&&(i.minItems=l),typeof d=="number"&&(i.maxItems=d)},zI=(t,e,r,n)=>{let i=r,s=t._zod.def;i.type="object";let o=s.keyType,c=o._zod.bag?.patterns;if(s.mode==="loose"&&c&&c.size>0){let l=$t(s.valueType,e,{...n,path:[...n.path,"patternProperties","*"]});i.patternProperties={};for(let d of c)i.patternProperties[d.source]=l}else(e.target==="draft-07"||e.target==="draft-2020-12")&&(i.propertyNames=$t(s.keyType,e,{...n,path:[...n.path,"propertyNames"]})),i.additionalProperties=$t(s.valueType,e,{...n,path:[...n.path,"additionalProperties"]});let u=o._zod.values;if(u){let l=[...u].filter(d=>typeof d=="string"||typeof d=="number");l.length>0&&(i.required=l)}},LI=(t,e,r,n)=>{let i=t._zod.def,s=$t(i.innerType,e,n),o=e.seen.get(t);e.target==="openapi-3.0"?(o.ref=i.innerType,r.nullable=!0):r.anyOf=[s,{type:"null"}]},UI=(t,e,r,n)=>{let i=t._zod.def;$t(i.innerType,e,n);let s=e.seen.get(t);s.ref=i.innerType},qI=(t,e,r,n)=>{let i=t._zod.def;$t(i.innerType,e,n);let s=e.seen.get(t);s.ref=i.innerType,r.default=JSON.parse(JSON.stringify(i.defaultValue))},FI=(t,e,r,n)=>{let i=t._zod.def;$t(i.innerType,e,n);let s=e.seen.get(t);s.ref=i.innerType,e.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},HI=(t,e,r,n)=>{let i=t._zod.def;$t(i.innerType,e,n);let s=e.seen.get(t);s.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=o},ZI=(t,e,r,n)=>{let i=t._zod.def,s=e.io==="input"?i.in._zod.def.type==="transform"?i.out:i.in:i.out;$t(s,e,n);let o=e.seen.get(t);o.ref=s},BI=(t,e,r,n)=>{let i=t._zod.def;$t(i.innerType,e,n);let s=e.seen.get(t);s.ref=i.innerType,r.readOnly=!0},VI=(t,e,r,n)=>{let i=t._zod.def;$t(i.innerType,e,n);let s=e.seen.get(t);s.ref=i.innerType},mb=(t,e,r,n)=>{let i=t._zod.def;$t(i.innerType,e,n);let s=e.seen.get(t);s.ref=i.innerType},GI=(t,e,r,n)=>{let i=t._zod.innerType;$t(i,e,n);let s=e.seen.get(t);s.ref=i};function xa(t){return!!t._zod}function Bn(t,e){return xa(t)?ga(t,e):t.safeParse(e)}function vm(t){if(!t)return;let e;if(xa(t)?e=t._zod?.def?.shape:e=t.shape,!!e){if(typeof e=="function")try{return e()}catch{return}return e}}function XI(t){if(xa(t)){let s=t._zod?.def;if(s){if(s.value!==void 0)return s.value;if(Array.isArray(s.values)&&s.values.length>0)return s.values[0]}}let r=t._def;if(r){if(r.value!==void 0)return r.value;if(Array.isArray(r.values)&&r.values.length>0)return r.values[0]}let n=t.value;if(n!==void 0)return n}var Qu={};ln(Qu,{ZodAny:()=>hR,ZodArray:()=>_R,ZodBase64:()=>jb,ZodBase64URL:()=>zb,ZodBigInt:()=>$m,ZodBigIntFormat:()=>qb,ZodBoolean:()=>km,ZodCIDRv4:()=>Mb,ZodCIDRv6:()=>Db,ZodCUID:()=>Ib,ZodCUID2:()=>Rb,ZodCatch:()=>LR,ZodCodec:()=>Wb,ZodCustom:()=>Pm,ZodCustomStringFormat:()=>tl,ZodDate:()=>Hb,ZodDefault:()=>AR,ZodDiscriminatedUnion:()=>xR,ZodE164:()=>Lb,ZodEmail:()=>kb,ZodEmoji:()=>$b,ZodEnum:()=>el,ZodExactOptional:()=>OR,ZodFile:()=>IR,ZodFunction:()=>WR,ZodGUID:()=>_m,ZodIPv4:()=>Ab,ZodIPv6:()=>Nb,ZodIntersection:()=>SR,ZodJWT:()=>Ub,ZodKSUID:()=>Cb,ZodLazy:()=>BR,ZodLiteral:()=>TR,ZodMAC:()=>dR,ZodMap:()=>kR,ZodNaN:()=>qR,ZodNanoID:()=>Tb,ZodNever:()=>vR,ZodNonOptional:()=>Vb,ZodNull:()=>fR,ZodNullable:()=>CR,ZodNumber:()=>Em,ZodNumberFormat:()=>Sa,ZodObject:()=>Tm,ZodOptional:()=>Bb,ZodPipe:()=>Gb,ZodPrefault:()=>MR,ZodPromise:()=>GR,ZodReadonly:()=>FR,ZodRecord:()=>Om,ZodSet:()=>$R,ZodString:()=>Sm,ZodStringFormat:()=>bt,ZodSuccess:()=>zR,ZodSymbol:()=>pR,ZodTemplateLiteral:()=>ZR,ZodTransform:()=>RR,ZodTuple:()=>wR,ZodType:()=>De,ZodULID:()=>Ob,ZodURL:()=>wm,ZodUUID:()=>Ui,ZodUndefined:()=>mR,ZodUnion:()=>Im,ZodUnknown:()=>gR,ZodVoid:()=>yR,ZodXID:()=>Pb,ZodXor:()=>bR,_ZodString:()=>Eb,_default:()=>NR,_function:()=>B5,any:()=>T5,array:()=>We,base64:()=>l5,base64url:()=>d5,bigint:()=>S5,boolean:()=>Xt,catch:()=>UR,check:()=>V5,cidrv4:()=>c5,cidrv6:()=>u5,codec:()=>F5,cuid:()=>e5,cuid2:()=>t5,custom:()=>Kb,date:()=>R5,describe:()=>G5,discriminatedUnion:()=>Rm,e164:()=>p5,email:()=>Z8,emoji:()=>Y8,enum:()=>Er,exactOptional:()=>PR,file:()=>z5,float32:()=>y5,float64:()=>_5,function:()=>B5,guid:()=>B8,hash:()=>v5,hex:()=>g5,hostname:()=>h5,httpUrl:()=>X8,instanceof:()=>K5,int:()=>wb,int32:()=>b5,int64:()=>w5,intersection:()=>nl,ipv4:()=>s5,ipv6:()=>a5,json:()=>X5,jwt:()=>m5,keyof:()=>O5,ksuid:()=>i5,lazy:()=>VR,literal:()=>me,looseObject:()=>wr,looseRecord:()=>N5,mac:()=>o5,map:()=>M5,meta:()=>W5,nan:()=>q5,nanoid:()=>Q8,nativeEnum:()=>j5,never:()=>Fb,nonoptional:()=>jR,null:()=>rl,nullable:()=>bm,nullish:()=>L5,number:()=>ct,object:()=>ie,optional:()=>Ot,partialRecord:()=>A5,pipe:()=>xm,prefault:()=>DR,preprocess:()=>Cm,promise:()=>Z5,readonly:()=>HR,record:()=>Tt,refine:()=>KR,set:()=>D5,strictObject:()=>P5,string:()=>z,stringFormat:()=>f5,stringbool:()=>J5,success:()=>U5,superRefine:()=>JR,symbol:()=>k5,templateLiteral:()=>H5,transform:()=>Zb,tuple:()=>ER,uint32:()=>x5,uint64:()=>E5,ulid:()=>r5,undefined:()=>$5,union:()=>ft,unknown:()=>xt,url:()=>J8,uuid:()=>V8,uuidv4:()=>G8,uuidv6:()=>W8,uuidv7:()=>K8,void:()=>I5,xid:()=>n5,xor:()=>C5});var ym={};ln(ym,{endsWith:()=>Vu,gt:()=>zi,gte:()=>zr,includes:()=>Zu,length:()=>_a,lowercase:()=>Fu,lt:()=>ji,lte:()=>fn,maxLength:()=>ya,maxSize:()=>ro,mime:()=>Gu,minLength:()=>xs,minSize:()=>Li,multipleOf:()=>to,negative:()=>tb,nonnegative:()=>nb,nonpositive:()=>rb,normalize:()=>Wu,overwrite:()=>ui,positive:()=>eb,property:()=>ib,regex:()=>qu,size:()=>va,slugify:()=>mm,startsWith:()=>Bu,toLowerCase:()=>Ju,toUpperCase:()=>Xu,trim:()=>Ku,uppercase:()=>Hu});var no={};ln(no,{ZodISODate:()=>vb,ZodISODateTime:()=>hb,ZodISODuration:()=>xb,ZodISOTime:()=>_b,date:()=>yb,datetime:()=>gb,duration:()=>Sb,time:()=>bb});var hb=O("ZodISODateTime",(t,e)=>{Ry.init(t,e),bt.init(t,e)});function gb(t){return P_(hb,t)}var vb=O("ZodISODate",(t,e)=>{Oy.init(t,e),bt.init(t,e)});function yb(t){return C_(vb,t)}var _b=O("ZodISOTime",(t,e)=>{Py.init(t,e),bt.init(t,e)});function bb(t){return A_(_b,t)}var xb=O("ZodISODuration",(t,e)=>{Cy.init(t,e),bt.init(t,e)});function Sb(t){return N_(xb,t)}var YI=(t,e)=>{Cp.init(t,e),t.name="ZodError",Object.defineProperties(t,{format:{value:r=>Np(t,r)},flatten:{value:r=>Ap(t,r)},addIssue:{value:r=>{t.issues.push(r),t.message=JSON.stringify(t.issues,ma,2)}},addIssues:{value:r=>{t.issues.push(...r),t.message=JSON.stringify(t.issues,ma,2)}},isEmpty:{get(){return t.issues.length===0}}})},Vxe=O("ZodError",YI),hn=O("ZodError",YI,{Parent:Error});var QI=$u(hn),eR=Iu(hn),tR=Ou(hn),rR=Pu(hn),nR=mT(hn),iR=fT(hn),sR=hT(hn),oR=gT(hn),aR=vT(hn),cR=yT(hn),uR=_T(hn),lR=bT(hn);var De=O("ZodType",(t,e)=>(Oe.init(t,e),Object.assign(t["~standard"],{jsonSchema:{input:Yu(t,"input"),output:Yu(t,"output")}}),t.toJSONSchema=lI(t,{}),t.def=e,t.type=e.type,Object.defineProperty(t,"_def",{value:e}),t.check=(...r)=>t.clone(V.mergeDefs(e,{checks:[...e.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0}),t.with=t.check,t.clone=(r,n)=>Dr(t,r,n),t.brand=()=>t,t.register=((r,n)=>(r.add(t,n),t)),t.parse=(r,n)=>QI(t,r,n,{callee:t.parse}),t.safeParse=(r,n)=>tR(t,r,n),t.parseAsync=async(r,n)=>eR(t,r,n,{callee:t.parseAsync}),t.safeParseAsync=async(r,n)=>rR(t,r,n),t.spa=t.safeParseAsync,t.encode=(r,n)=>nR(t,r,n),t.decode=(r,n)=>iR(t,r,n),t.encodeAsync=async(r,n)=>sR(t,r,n),t.decodeAsync=async(r,n)=>oR(t,r,n),t.safeEncode=(r,n)=>aR(t,r,n),t.safeDecode=(r,n)=>cR(t,r,n),t.safeEncodeAsync=async(r,n)=>uR(t,r,n),t.safeDecodeAsync=async(r,n)=>lR(t,r,n),t.refine=(r,n)=>t.check(KR(r,n)),t.superRefine=r=>t.check(JR(r)),t.overwrite=r=>t.check(ui(r)),t.optional=()=>Ot(t),t.exactOptional=()=>PR(t),t.nullable=()=>bm(t),t.nullish=()=>Ot(bm(t)),t.nonoptional=r=>jR(t,r),t.array=()=>We(t),t.or=r=>ft([t,r]),t.and=r=>nl(t,r),t.transform=r=>xm(t,Zb(r)),t.default=r=>NR(t,r),t.prefault=r=>DR(t,r),t.catch=r=>UR(t,r),t.pipe=r=>xm(t,r),t.readonly=()=>HR(t),t.describe=r=>{let n=t.clone();return jr.add(n,{description:r}),n},Object.defineProperty(t,"description",{get(){return jr.get(t)?.description},configurable:!0}),t.meta=(...r)=>{if(r.length===0)return jr.get(t);let n=t.clone();return jr.add(n,r[0]),n},t.isOptional=()=>t.safeParse(void 0).success,t.isNullable=()=>t.safeParse(null).success,t.apply=r=>r(t),t)),Eb=O("_ZodString",(t,e)=>{eo.init(t,e),De.init(t,e),t._zod.processJSONSchema=(n,i,s)=>dI(t,n,i,s);let r=t._zod.bag;t.format=r.format??null,t.minLength=r.minimum??null,t.maxLength=r.maximum??null,t.regex=(...n)=>t.check(qu(...n)),t.includes=(...n)=>t.check(Zu(...n)),t.startsWith=(...n)=>t.check(Bu(...n)),t.endsWith=(...n)=>t.check(Vu(...n)),t.min=(...n)=>t.check(xs(...n)),t.max=(...n)=>t.check(ya(...n)),t.length=(...n)=>t.check(_a(...n)),t.nonempty=(...n)=>t.check(xs(1,...n)),t.lowercase=n=>t.check(Fu(n)),t.uppercase=n=>t.check(Hu(n)),t.trim=()=>t.check(Ku()),t.normalize=(...n)=>t.check(Wu(...n)),t.toLowerCase=()=>t.check(Ju()),t.toUpperCase=()=>t.check(Xu()),t.slugify=()=>t.check(mm())}),Sm=O("ZodString",(t,e)=>{eo.init(t,e),Eb.init(t,e),t.email=r=>t.check(Gp(kb,r)),t.url=r=>t.check(Uu(wm,r)),t.jwt=r=>t.check(pm(Ub,r)),t.emoji=r=>t.check(Yp($b,r)),t.guid=r=>t.check(Lu(_m,r)),t.uuid=r=>t.check(Wp(Ui,r)),t.uuidv4=r=>t.check(Kp(Ui,r)),t.uuidv6=r=>t.check(Jp(Ui,r)),t.uuidv7=r=>t.check(Xp(Ui,r)),t.nanoid=r=>t.check(Qp(Tb,r)),t.guid=r=>t.check(Lu(_m,r)),t.cuid=r=>t.check(em(Ib,r)),t.cuid2=r=>t.check(tm(Rb,r)),t.ulid=r=>t.check(rm(Ob,r)),t.base64=r=>t.check(um(jb,r)),t.base64url=r=>t.check(lm(zb,r)),t.xid=r=>t.check(nm(Pb,r)),t.ksuid=r=>t.check(im(Cb,r)),t.ipv4=r=>t.check(sm(Ab,r)),t.ipv6=r=>t.check(om(Nb,r)),t.cidrv4=r=>t.check(am(Mb,r)),t.cidrv6=r=>t.check(cm(Db,r)),t.e164=r=>t.check(dm(Lb,r)),t.datetime=r=>t.check(gb(r)),t.date=r=>t.check(yb(r)),t.time=r=>t.check(bb(r)),t.duration=r=>t.check(Sb(r))});function z(t){return R_(Sm,t)}var bt=O("ZodStringFormat",(t,e)=>{mt.init(t,e),Eb.init(t,e)}),kb=O("ZodEmail",(t,e)=>{by.init(t,e),bt.init(t,e)});function Z8(t){return Gp(kb,t)}var _m=O("ZodGUID",(t,e)=>{yy.init(t,e),bt.init(t,e)});function B8(t){return Lu(_m,t)}var Ui=O("ZodUUID",(t,e)=>{_y.init(t,e),bt.init(t,e)});function V8(t){return Wp(Ui,t)}function G8(t){return Kp(Ui,t)}function W8(t){return Jp(Ui,t)}function K8(t){return Xp(Ui,t)}var wm=O("ZodURL",(t,e)=>{xy.init(t,e),bt.init(t,e)});function J8(t){return Uu(wm,t)}function X8(t){return Uu(wm,{protocol:/^https?$/,hostname:kn.domain,...V.normalizeParams(t)})}var $b=O("ZodEmoji",(t,e)=>{Sy.init(t,e),bt.init(t,e)});function Y8(t){return Yp($b,t)}var Tb=O("ZodNanoID",(t,e)=>{wy.init(t,e),bt.init(t,e)});function Q8(t){return Qp(Tb,t)}var Ib=O("ZodCUID",(t,e)=>{Ey.init(t,e),bt.init(t,e)});function e5(t){return em(Ib,t)}var Rb=O("ZodCUID2",(t,e)=>{ky.init(t,e),bt.init(t,e)});function t5(t){return tm(Rb,t)}var Ob=O("ZodULID",(t,e)=>{$y.init(t,e),bt.init(t,e)});function r5(t){return rm(Ob,t)}var Pb=O("ZodXID",(t,e)=>{Ty.init(t,e),bt.init(t,e)});function n5(t){return nm(Pb,t)}var Cb=O("ZodKSUID",(t,e)=>{Iy.init(t,e),bt.init(t,e)});function i5(t){return im(Cb,t)}var Ab=O("ZodIPv4",(t,e)=>{Ay.init(t,e),bt.init(t,e)});function s5(t){return sm(Ab,t)}var dR=O("ZodMAC",(t,e)=>{My.init(t,e),bt.init(t,e)});function o5(t){return O_(dR,t)}var Nb=O("ZodIPv6",(t,e)=>{Ny.init(t,e),bt.init(t,e)});function a5(t){return om(Nb,t)}var Mb=O("ZodCIDRv4",(t,e)=>{Dy.init(t,e),bt.init(t,e)});function c5(t){return am(Mb,t)}var Db=O("ZodCIDRv6",(t,e)=>{jy.init(t,e),bt.init(t,e)});function u5(t){return cm(Db,t)}var jb=O("ZodBase64",(t,e)=>{zy.init(t,e),bt.init(t,e)});function l5(t){return um(jb,t)}var zb=O("ZodBase64URL",(t,e)=>{Ly.init(t,e),bt.init(t,e)});function d5(t){return lm(zb,t)}var Lb=O("ZodE164",(t,e)=>{Uy.init(t,e),bt.init(t,e)});function p5(t){return dm(Lb,t)}var Ub=O("ZodJWT",(t,e)=>{qy.init(t,e),bt.init(t,e)});function m5(t){return pm(Ub,t)}var tl=O("ZodCustomStringFormat",(t,e)=>{Fy.init(t,e),bt.init(t,e)});function f5(t,e,r={}){return ba(tl,t,e,r)}function h5(t){return ba(tl,"hostname",kn.hostname,t)}function g5(t){return ba(tl,"hex",kn.hex,t)}function v5(t,e){let r=e?.enc??"hex",n=`${t}_${r}`,i=kn[n];if(!i)throw new Error(`Unrecognized hash format: ${n}`);return ba(tl,n,i,e)}var Em=O("ZodNumber",(t,e)=>{Hp.init(t,e),De.init(t,e),t._zod.processJSONSchema=(n,i,s)=>pI(t,n,i,s),t.gt=(n,i)=>t.check(zi(n,i)),t.gte=(n,i)=>t.check(zr(n,i)),t.min=(n,i)=>t.check(zr(n,i)),t.lt=(n,i)=>t.check(ji(n,i)),t.lte=(n,i)=>t.check(fn(n,i)),t.max=(n,i)=>t.check(fn(n,i)),t.int=n=>t.check(wb(n)),t.safe=n=>t.check(wb(n)),t.positive=n=>t.check(zi(0,n)),t.nonnegative=n=>t.check(zr(0,n)),t.negative=n=>t.check(ji(0,n)),t.nonpositive=n=>t.check(fn(0,n)),t.multipleOf=(n,i)=>t.check(to(n,i)),t.step=(n,i)=>t.check(to(n,i)),t.finite=()=>t;let r=t._zod.bag;t.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,t.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,t.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),t.isFinite=!0,t.format=r.format??null});function ct(t){return M_(Em,t)}var Sa=O("ZodNumberFormat",(t,e)=>{Hy.init(t,e),Em.init(t,e)});function wb(t){return D_(Sa,t)}function y5(t){return j_(Sa,t)}function _5(t){return z_(Sa,t)}function b5(t){return L_(Sa,t)}function x5(t){return U_(Sa,t)}var km=O("ZodBoolean",(t,e)=>{Du.init(t,e),De.init(t,e),t._zod.processJSONSchema=(r,n,i)=>mI(t,r,n,i)});function Xt(t){return q_(km,t)}var $m=O("ZodBigInt",(t,e)=>{Zp.init(t,e),De.init(t,e),t._zod.processJSONSchema=(n,i,s)=>fI(t,n,i,s),t.gte=(n,i)=>t.check(zr(n,i)),t.min=(n,i)=>t.check(zr(n,i)),t.gt=(n,i)=>t.check(zi(n,i)),t.gte=(n,i)=>t.check(zr(n,i)),t.min=(n,i)=>t.check(zr(n,i)),t.lt=(n,i)=>t.check(ji(n,i)),t.lte=(n,i)=>t.check(fn(n,i)),t.max=(n,i)=>t.check(fn(n,i)),t.positive=n=>t.check(zi(BigInt(0),n)),t.negative=n=>t.check(ji(BigInt(0),n)),t.nonpositive=n=>t.check(fn(BigInt(0),n)),t.nonnegative=n=>t.check(zr(BigInt(0),n)),t.multipleOf=(n,i)=>t.check(to(n,i));let r=t._zod.bag;t.minValue=r.minimum??null,t.maxValue=r.maximum??null,t.format=r.format??null});function S5(t){return F_($m,t)}var qb=O("ZodBigIntFormat",(t,e)=>{Zy.init(t,e),$m.init(t,e)});function w5(t){return H_(qb,t)}function E5(t){return Z_(qb,t)}var pR=O("ZodSymbol",(t,e)=>{By.init(t,e),De.init(t,e),t._zod.processJSONSchema=(r,n,i)=>hI(t,r,n,i)});function k5(t){return B_(pR,t)}var mR=O("ZodUndefined",(t,e)=>{Vy.init(t,e),De.init(t,e),t._zod.processJSONSchema=(r,n,i)=>vI(t,r,n,i)});function $5(t){return V_(mR,t)}var fR=O("ZodNull",(t,e)=>{Gy.init(t,e),De.init(t,e),t._zod.processJSONSchema=(r,n,i)=>gI(t,r,n,i)});function rl(t){return G_(fR,t)}var hR=O("ZodAny",(t,e)=>{Wy.init(t,e),De.init(t,e),t._zod.processJSONSchema=(r,n,i)=>bI(t,r,n,i)});function T5(){return W_(hR)}var gR=O("ZodUnknown",(t,e)=>{Ky.init(t,e),De.init(t,e),t._zod.processJSONSchema=(r,n,i)=>xI(t,r,n,i)});function xt(){return K_(gR)}var vR=O("ZodNever",(t,e)=>{Jy.init(t,e),De.init(t,e),t._zod.processJSONSchema=(r,n,i)=>_I(t,r,n,i)});function Fb(t){return J_(vR,t)}var yR=O("ZodVoid",(t,e)=>{Xy.init(t,e),De.init(t,e),t._zod.processJSONSchema=(r,n,i)=>yI(t,r,n,i)});function I5(t){return X_(yR,t)}var Hb=O("ZodDate",(t,e)=>{Yy.init(t,e),De.init(t,e),t._zod.processJSONSchema=(n,i,s)=>SI(t,n,i,s),t.min=(n,i)=>t.check(zr(n,i)),t.max=(n,i)=>t.check(fn(n,i));let r=t._zod.bag;t.minDate=r.minimum?new Date(r.minimum):null,t.maxDate=r.maximum?new Date(r.maximum):null});function R5(t){return Y_(Hb,t)}var _R=O("ZodArray",(t,e)=>{Qy.init(t,e),De.init(t,e),t._zod.processJSONSchema=(r,n,i)=>NI(t,r,n,i),t.element=e.element,t.min=(r,n)=>t.check(xs(r,n)),t.nonempty=r=>t.check(xs(1,r)),t.max=(r,n)=>t.check(ya(r,n)),t.length=(r,n)=>t.check(_a(r,n)),t.unwrap=()=>t.element});function We(t,e){return uI(_R,t,e)}function O5(t){let e=t._zod.def.shape;return Er(Object.keys(e))}var Tm=O("ZodObject",(t,e)=>{aI.init(t,e),De.init(t,e),t._zod.processJSONSchema=(r,n,i)=>MI(t,r,n,i),V.defineLazy(t,"shape",()=>e.shape),t.keyof=()=>Er(Object.keys(t._zod.def.shape)),t.catchall=r=>t.clone({...t._zod.def,catchall:r}),t.passthrough=()=>t.clone({...t._zod.def,catchall:xt()}),t.loose=()=>t.clone({...t._zod.def,catchall:xt()}),t.strict=()=>t.clone({...t._zod.def,catchall:Fb()}),t.strip=()=>t.clone({...t._zod.def,catchall:void 0}),t.extend=r=>V.extend(t,r),t.safeExtend=r=>V.safeExtend(t,r),t.merge=r=>V.merge(t,r),t.pick=r=>V.pick(t,r),t.omit=r=>V.omit(t,r),t.partial=(...r)=>V.partial(Bb,t,r[0]),t.required=(...r)=>V.required(Vb,t,r[0])});function ie(t,e){let r={type:"object",shape:t??{},...V.normalizeParams(e)};return new Tm(r)}function P5(t,e){return new Tm({type:"object",shape:t,catchall:Fb(),...V.normalizeParams(e)})}function wr(t,e){return new Tm({type:"object",shape:t,catchall:xt(),...V.normalizeParams(e)})}var Im=O("ZodUnion",(t,e)=>{ju.init(t,e),De.init(t,e),t._zod.processJSONSchema=(r,n,i)=>pb(t,r,n,i),t.options=e.options});function ft(t,e){return new Im({type:"union",options:t,...V.normalizeParams(e)})}var bR=O("ZodXor",(t,e)=>{Im.init(t,e),e_.init(t,e),t._zod.processJSONSchema=(r,n,i)=>pb(t,r,n,i),t.options=e.options});function C5(t,e){return new bR({type:"union",options:t,inclusive:!1,...V.normalizeParams(e)})}var xR=O("ZodDiscriminatedUnion",(t,e)=>{Im.init(t,e),t_.init(t,e)});function Rm(t,e,r){return new xR({type:"union",options:e,discriminator:t,...V.normalizeParams(r)})}var SR=O("ZodIntersection",(t,e)=>{r_.init(t,e),De.init(t,e),t._zod.processJSONSchema=(r,n,i)=>DI(t,r,n,i)});function nl(t,e){return new SR({type:"intersection",left:t,right:e})}var wR=O("ZodTuple",(t,e)=>{Bp.init(t,e),De.init(t,e),t._zod.processJSONSchema=(r,n,i)=>jI(t,r,n,i),t.rest=r=>t.clone({...t._zod.def,rest:r})});function ER(t,e,r){let n=e instanceof Oe,i=n?r:e,s=n?e:null;return new wR({type:"tuple",items:t,rest:s,...V.normalizeParams(i)})}var Om=O("ZodRecord",(t,e)=>{n_.init(t,e),De.init(t,e),t._zod.processJSONSchema=(r,n,i)=>zI(t,r,n,i),t.keyType=e.keyType,t.valueType=e.valueType});function Tt(t,e,r){return new Om({type:"record",keyType:t,valueType:e,...V.normalizeParams(r)})}function A5(t,e,r){let n=Dr(t);return n._zod.values=void 0,new Om({type:"record",keyType:n,valueType:e,...V.normalizeParams(r)})}function N5(t,e,r){return new Om({type:"record",keyType:t,valueType:e,mode:"loose",...V.normalizeParams(r)})}var kR=O("ZodMap",(t,e)=>{i_.init(t,e),De.init(t,e),t._zod.processJSONSchema=(r,n,i)=>CI(t,r,n,i),t.keyType=e.keyType,t.valueType=e.valueType,t.min=(...r)=>t.check(Li(...r)),t.nonempty=r=>t.check(Li(1,r)),t.max=(...r)=>t.check(ro(...r)),t.size=(...r)=>t.check(va(...r))});function M5(t,e,r){return new kR({type:"map",keyType:t,valueType:e,...V.normalizeParams(r)})}var $R=O("ZodSet",(t,e)=>{s_.init(t,e),De.init(t,e),t._zod.processJSONSchema=(r,n,i)=>AI(t,r,n,i),t.min=(...r)=>t.check(Li(...r)),t.nonempty=r=>t.check(Li(1,r)),t.max=(...r)=>t.check(ro(...r)),t.size=(...r)=>t.check(va(...r))});function D5(t,e){return new $R({type:"set",valueType:t,...V.normalizeParams(e)})}var el=O("ZodEnum",(t,e)=>{o_.init(t,e),De.init(t,e),t._zod.processJSONSchema=(n,i,s)=>wI(t,n,i,s),t.enum=e.entries,t.options=Object.values(e.entries);let r=new Set(Object.keys(e.entries));t.extract=(n,i)=>{let s={};for(let o of n)if(r.has(o))s[o]=e.entries[o];else throw new Error(`Key ${o} not found in enum`);return new el({...e,checks:[],...V.normalizeParams(i),entries:s})},t.exclude=(n,i)=>{let s={...e.entries};for(let o of n)if(r.has(o))delete s[o];else throw new Error(`Key ${o} not found in enum`);return new el({...e,checks:[],...V.normalizeParams(i),entries:s})}});function Er(t,e){let r=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new el({type:"enum",entries:r,...V.normalizeParams(e)})}function j5(t,e){return new el({type:"enum",entries:t,...V.normalizeParams(e)})}var TR=O("ZodLiteral",(t,e)=>{a_.init(t,e),De.init(t,e),t._zod.processJSONSchema=(r,n,i)=>EI(t,r,n,i),t.values=new Set(e.values),Object.defineProperty(t,"value",{get(){if(e.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return e.values[0]}})});function me(t,e){return new TR({type:"literal",values:Array.isArray(t)?t:[t],...V.normalizeParams(e)})}var IR=O("ZodFile",(t,e)=>{c_.init(t,e),De.init(t,e),t._zod.processJSONSchema=(r,n,i)=>TI(t,r,n,i),t.min=(r,n)=>t.check(Li(r,n)),t.max=(r,n)=>t.check(ro(r,n)),t.mime=(r,n)=>t.check(Gu(Array.isArray(r)?r:[r],n))});function z5(t){return sb(IR,t)}var RR=O("ZodTransform",(t,e)=>{u_.init(t,e),De.init(t,e),t._zod.processJSONSchema=(r,n,i)=>PI(t,r,n,i),t._zod.parse=(r,n)=>{if(n.direction==="backward")throw new Xs(t.constructor.name);r.addIssue=s=>{if(typeof s=="string")r.issues.push(V.issue(s,r.value,e));else{let o=s;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=r.value),o.inst??(o.inst=t),r.issues.push(V.issue(o))}};let i=e.transform(r.value,r);return i instanceof Promise?i.then(s=>(r.value=s,r)):(r.value=i,r)}});function Zb(t){return new RR({type:"transform",transform:t})}var Bb=O("ZodOptional",(t,e)=>{Vp.init(t,e),De.init(t,e),t._zod.processJSONSchema=(r,n,i)=>mb(t,r,n,i),t.unwrap=()=>t._zod.def.innerType});function Ot(t){return new Bb({type:"optional",innerType:t})}var OR=O("ZodExactOptional",(t,e)=>{l_.init(t,e),De.init(t,e),t._zod.processJSONSchema=(r,n,i)=>mb(t,r,n,i),t.unwrap=()=>t._zod.def.innerType});function PR(t){return new OR({type:"optional",innerType:t})}var CR=O("ZodNullable",(t,e)=>{d_.init(t,e),De.init(t,e),t._zod.processJSONSchema=(r,n,i)=>LI(t,r,n,i),t.unwrap=()=>t._zod.def.innerType});function bm(t){return new CR({type:"nullable",innerType:t})}function L5(t){return Ot(bm(t))}var AR=O("ZodDefault",(t,e)=>{p_.init(t,e),De.init(t,e),t._zod.processJSONSchema=(r,n,i)=>qI(t,r,n,i),t.unwrap=()=>t._zod.def.innerType,t.removeDefault=t.unwrap});function NR(t,e){return new AR({type:"default",innerType:t,get defaultValue(){return typeof e=="function"?e():V.shallowClone(e)}})}var MR=O("ZodPrefault",(t,e)=>{m_.init(t,e),De.init(t,e),t._zod.processJSONSchema=(r,n,i)=>FI(t,r,n,i),t.unwrap=()=>t._zod.def.innerType});function DR(t,e){return new MR({type:"prefault",innerType:t,get defaultValue(){return typeof e=="function"?e():V.shallowClone(e)}})}var Vb=O("ZodNonOptional",(t,e)=>{f_.init(t,e),De.init(t,e),t._zod.processJSONSchema=(r,n,i)=>UI(t,r,n,i),t.unwrap=()=>t._zod.def.innerType});function jR(t,e){return new Vb({type:"nonoptional",innerType:t,...V.normalizeParams(e)})}var zR=O("ZodSuccess",(t,e)=>{h_.init(t,e),De.init(t,e),t._zod.processJSONSchema=(r,n,i)=>II(t,r,n,i),t.unwrap=()=>t._zod.def.innerType});function U5(t){return new zR({type:"success",innerType:t})}var LR=O("ZodCatch",(t,e)=>{g_.init(t,e),De.init(t,e),t._zod.processJSONSchema=(r,n,i)=>HI(t,r,n,i),t.unwrap=()=>t._zod.def.innerType,t.removeCatch=t.unwrap});function UR(t,e){return new LR({type:"catch",innerType:t,catchValue:typeof e=="function"?e:()=>e})}var qR=O("ZodNaN",(t,e)=>{v_.init(t,e),De.init(t,e),t._zod.processJSONSchema=(r,n,i)=>kI(t,r,n,i)});function q5(t){return Q_(qR,t)}var Gb=O("ZodPipe",(t,e)=>{y_.init(t,e),De.init(t,e),t._zod.processJSONSchema=(r,n,i)=>ZI(t,r,n,i),t.in=e.in,t.out=e.out});function xm(t,e){return new Gb({type:"pipe",in:t,out:e})}var Wb=O("ZodCodec",(t,e)=>{Gb.init(t,e),zu.init(t,e)});function F5(t,e,r){return new Wb({type:"pipe",in:t,out:e,transform:r.decode,reverseTransform:r.encode})}var FR=O("ZodReadonly",(t,e)=>{__.init(t,e),De.init(t,e),t._zod.processJSONSchema=(r,n,i)=>BI(t,r,n,i),t.unwrap=()=>t._zod.def.innerType});function HR(t){return new FR({type:"readonly",innerType:t})}var ZR=O("ZodTemplateLiteral",(t,e)=>{b_.init(t,e),De.init(t,e),t._zod.processJSONSchema=(r,n,i)=>$I(t,r,n,i)});function H5(t,e){return new ZR({type:"template_literal",parts:t,...V.normalizeParams(e)})}var BR=O("ZodLazy",(t,e)=>{w_.init(t,e),De.init(t,e),t._zod.processJSONSchema=(r,n,i)=>GI(t,r,n,i),t.unwrap=()=>t._zod.def.getter()});function VR(t){return new BR({type:"lazy",getter:t})}var GR=O("ZodPromise",(t,e)=>{S_.init(t,e),De.init(t,e),t._zod.processJSONSchema=(r,n,i)=>VI(t,r,n,i),t.unwrap=()=>t._zod.def.innerType});function Z5(t){return new GR({type:"promise",innerType:t})}var WR=O("ZodFunction",(t,e)=>{x_.init(t,e),De.init(t,e),t._zod.processJSONSchema=(r,n,i)=>OI(t,r,n,i)});function B5(t){return new WR({type:"function",input:Array.isArray(t?.input)?ER(t?.input):t?.input??We(xt()),output:t?.output??xt()})}var Pm=O("ZodCustom",(t,e)=>{E_.init(t,e),De.init(t,e),t._zod.processJSONSchema=(r,n,i)=>RI(t,r,n,i)});function V5(t){let e=new _t({check:"custom"});return e._zod.check=t,e}function Kb(t,e){return ob(Pm,t??(()=>!0),e)}function KR(t,e={}){return ab(Pm,t,e)}function JR(t){return cb(t)}var G5=ub,W5=lb;function K5(t,e={}){let r=new Pm({type:"custom",check:"custom",fn:n=>n instanceof t,abort:!0,...V.normalizeParams(e)});return r._zod.bag.Class=t,r._zod.check=n=>{n.value instanceof t||n.issues.push({code:"invalid_type",expected:t.name,input:n.value,inst:r,path:[...r._zod.def.path??[]]})},r}var J5=(...t)=>db({Codec:Wb,Boolean:km,String:Sm},...t);function X5(t){let e=VR(()=>ft([z(t),ct(),Xt(),rl(),We(e),Tt(z(),e)]));return e}function Cm(t,e){return xm(Zb(t),e)}var XR;XR||(XR={});var eSe={...Qu,...ym,iso:no};tr(k_());var Xb="2025-11-25";var YR=[Xb,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],Ss="io.modelcontextprotocol/related-task",Nm="2.0",mr=Kb(t=>t!==null&&(typeof t=="object"||typeof t=="function")),QR=ft([z(),ct().int()]),e1=z(),_Se=wr({ttl:ft([ct(),rl()]).optional(),pollInterval:ct().optional()}),tH=ie({ttl:ct().optional()}),rH=ie({taskId:z()}),Yb=wr({progressToken:QR.optional(),[Ss]:rH.optional()}),gn=ie({_meta:Yb.optional()}),il=gn.extend({task:tH.optional()}),t1=t=>il.safeParse(t).success,fr=ie({method:z(),params:gn.loose().optional()}),$n=ie({_meta:Yb.optional()}),Tn=ie({method:z(),params:$n.loose().optional()}),hr=wr({_meta:Yb.optional()}),Mm=ft([z(),ct().int()]),r1=ie({jsonrpc:me(Nm),id:Mm,...fr.shape}).strict(),Qb=t=>r1.safeParse(t).success,n1=ie({jsonrpc:me(Nm),...Tn.shape}).strict(),i1=t=>n1.safeParse(t).success,ex=ie({jsonrpc:me(Nm),id:Mm,result:hr}).strict(),sl=t=>ex.safeParse(t).success;var Te;(function(t){t[t.ConnectionClosed=-32e3]="ConnectionClosed",t[t.RequestTimeout=-32001]="RequestTimeout",t[t.ParseError=-32700]="ParseError",t[t.InvalidRequest=-32600]="InvalidRequest",t[t.MethodNotFound=-32601]="MethodNotFound",t[t.InvalidParams=-32602]="InvalidParams",t[t.InternalError=-32603]="InternalError",t[t.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(Te||(Te={}));var tx=ie({jsonrpc:me(Nm),id:Mm.optional(),error:ie({code:ct().int(),message:z(),data:xt().optional()})}).strict();var s1=t=>tx.safeParse(t).success;var o1=ft([r1,n1,ex,tx]),bSe=ft([ex,tx]),io=hr.strict(),nH=$n.extend({requestId:Mm.optional(),reason:z().optional()}),Dm=Tn.extend({method:me("notifications/cancelled"),params:nH}),iH=ie({src:z(),mimeType:z().optional(),sizes:We(z()).optional(),theme:Er(["light","dark"]).optional()}),ol=ie({icons:We(iH).optional()}),wa=ie({name:z(),title:z().optional()}),a1=wa.extend({...wa.shape,...ol.shape,version:z(),websiteUrl:z().optional(),description:z().optional()}),sH=nl(ie({applyDefaults:Xt().optional()}),Tt(z(),xt())),oH=Cm(t=>t&&typeof t=="object"&&!Array.isArray(t)&&Object.keys(t).length===0?{form:{}}:t,nl(ie({form:sH.optional(),url:mr.optional()}),Tt(z(),xt()).optional())),aH=wr({list:mr.optional(),cancel:mr.optional(),requests:wr({sampling:wr({createMessage:mr.optional()}).optional(),elicitation:wr({create:mr.optional()}).optional()}).optional()}),cH=wr({list:mr.optional(),cancel:mr.optional(),requests:wr({tools:wr({call:mr.optional()}).optional()}).optional()}),uH=ie({experimental:Tt(z(),mr).optional(),sampling:ie({context:mr.optional(),tools:mr.optional()}).optional(),elicitation:oH.optional(),roots:ie({listChanged:Xt().optional()}).optional(),tasks:aH.optional()}),lH=gn.extend({protocolVersion:z(),capabilities:uH,clientInfo:a1}),dH=fr.extend({method:me("initialize"),params:lH});var pH=ie({experimental:Tt(z(),mr).optional(),logging:mr.optional(),completions:mr.optional(),prompts:ie({listChanged:Xt().optional()}).optional(),resources:ie({subscribe:Xt().optional(),listChanged:Xt().optional()}).optional(),tools:ie({listChanged:Xt().optional()}).optional(),tasks:cH.optional()}),rx=hr.extend({protocolVersion:z(),capabilities:pH,serverInfo:a1,instructions:z().optional()}),mH=Tn.extend({method:me("notifications/initialized"),params:$n.optional()});var jm=fr.extend({method:me("ping"),params:gn.optional()}),fH=ie({progress:ct(),total:Ot(ct()),message:Ot(z())}),hH=ie({...$n.shape,...fH.shape,progressToken:QR}),zm=Tn.extend({method:me("notifications/progress"),params:hH}),gH=gn.extend({cursor:e1.optional()}),al=fr.extend({params:gH.optional()}),cl=hr.extend({nextCursor:e1.optional()}),vH=Er(["working","input_required","completed","failed","cancelled"]),ul=ie({taskId:z(),status:vH,ttl:ft([ct(),rl()]),createdAt:z(),lastUpdatedAt:z(),pollInterval:Ot(ct()),statusMessage:Ot(z())}),so=hr.extend({task:ul}),yH=$n.merge(ul),ll=Tn.extend({method:me("notifications/tasks/status"),params:yH}),Lm=fr.extend({method:me("tasks/get"),params:gn.extend({taskId:z()})}),Um=hr.merge(ul),qm=fr.extend({method:me("tasks/result"),params:gn.extend({taskId:z()})}),xSe=hr.loose(),Fm=al.extend({method:me("tasks/list")}),Hm=cl.extend({tasks:We(ul)}),Zm=fr.extend({method:me("tasks/cancel"),params:gn.extend({taskId:z()})}),c1=hr.merge(ul),u1=ie({uri:z(),mimeType:Ot(z()),_meta:Tt(z(),xt()).optional()}),l1=u1.extend({text:z()}),nx=z().refine(t=>{try{return atob(t),!0}catch{return!1}},{message:"Invalid Base64 string"}),d1=u1.extend({blob:nx}),dl=Er(["user","assistant"]),Ea=ie({audience:We(dl).optional(),priority:ct().min(0).max(1).optional(),lastModified:no.datetime({offset:!0}).optional()}),p1=ie({...wa.shape,...ol.shape,uri:z(),description:Ot(z()),mimeType:Ot(z()),annotations:Ea.optional(),_meta:Ot(wr({}))}),_H=ie({...wa.shape,...ol.shape,uriTemplate:z(),description:Ot(z()),mimeType:Ot(z()),annotations:Ea.optional(),_meta:Ot(wr({}))}),bH=al.extend({method:me("resources/list")}),ix=cl.extend({resources:We(p1)}),xH=al.extend({method:me("resources/templates/list")}),sx=cl.extend({resourceTemplates:We(_H)}),ox=gn.extend({uri:z()}),SH=ox,wH=fr.extend({method:me("resources/read"),params:SH}),ax=hr.extend({contents:We(ft([l1,d1]))}),cx=Tn.extend({method:me("notifications/resources/list_changed"),params:$n.optional()}),EH=ox,kH=fr.extend({method:me("resources/subscribe"),params:EH}),$H=ox,TH=fr.extend({method:me("resources/unsubscribe"),params:$H}),IH=$n.extend({uri:z()}),RH=Tn.extend({method:me("notifications/resources/updated"),params:IH}),OH=ie({name:z(),description:Ot(z()),required:Ot(Xt())}),PH=ie({...wa.shape,...ol.shape,description:Ot(z()),arguments:Ot(We(OH)),_meta:Ot(wr({}))}),CH=al.extend({method:me("prompts/list")}),ux=cl.extend({prompts:We(PH)}),AH=gn.extend({name:z(),arguments:Tt(z(),z()).optional()}),NH=fr.extend({method:me("prompts/get"),params:AH}),lx=ie({type:me("text"),text:z(),annotations:Ea.optional(),_meta:Tt(z(),xt()).optional()}),dx=ie({type:me("image"),data:nx,mimeType:z(),annotations:Ea.optional(),_meta:Tt(z(),xt()).optional()}),px=ie({type:me("audio"),data:nx,mimeType:z(),annotations:Ea.optional(),_meta:Tt(z(),xt()).optional()}),MH=ie({type:me("tool_use"),name:z(),id:z(),input:Tt(z(),xt()),_meta:Tt(z(),xt()).optional()}),DH=ie({type:me("resource"),resource:ft([l1,d1]),annotations:Ea.optional(),_meta:Tt(z(),xt()).optional()}),jH=p1.extend({type:me("resource_link")}),mx=ft([lx,dx,px,jH,DH]),zH=ie({role:dl,content:mx}),fx=hr.extend({description:z().optional(),messages:We(zH)}),hx=Tn.extend({method:me("notifications/prompts/list_changed"),params:$n.optional()}),LH=ie({title:z().optional(),readOnlyHint:Xt().optional(),destructiveHint:Xt().optional(),idempotentHint:Xt().optional(),openWorldHint:Xt().optional()}),UH=ie({taskSupport:Er(["required","optional","forbidden"]).optional()}),m1=ie({...wa.shape,...ol.shape,description:z().optional(),inputSchema:ie({type:me("object"),properties:Tt(z(),mr).optional(),required:We(z()).optional()}).catchall(xt()),outputSchema:ie({type:me("object"),properties:Tt(z(),mr).optional(),required:We(z()).optional()}).catchall(xt()).optional(),annotations:LH.optional(),execution:UH.optional(),_meta:Tt(z(),xt()).optional()}),qH=al.extend({method:me("tools/list")}),gx=cl.extend({tools:We(m1)}),ka=hr.extend({content:We(mx).default([]),structuredContent:Tt(z(),xt()).optional(),isError:Xt().optional()}),SSe=ka.or(hr.extend({toolResult:xt()})),FH=il.extend({name:z(),arguments:Tt(z(),xt()).optional()}),HH=fr.extend({method:me("tools/call"),params:FH}),vx=Tn.extend({method:me("notifications/tools/list_changed"),params:$n.optional()}),f1=ie({autoRefresh:Xt().default(!0),debounceMs:ct().int().nonnegative().default(300)}),h1=Er(["debug","info","notice","warning","error","critical","alert","emergency"]),ZH=gn.extend({level:h1}),BH=fr.extend({method:me("logging/setLevel"),params:ZH}),VH=$n.extend({level:h1,logger:z().optional(),data:xt()}),GH=Tn.extend({method:me("notifications/message"),params:VH}),WH=ie({name:z().optional()}),KH=ie({hints:We(WH).optional(),costPriority:ct().min(0).max(1).optional(),speedPriority:ct().min(0).max(1).optional(),intelligencePriority:ct().min(0).max(1).optional()}),JH=ie({mode:Er(["auto","required","none"]).optional()}),XH=ie({type:me("tool_result"),toolUseId:z().describe("The unique identifier for the corresponding tool call."),content:We(mx).default([]),structuredContent:ie({}).loose().optional(),isError:Xt().optional(),_meta:Tt(z(),xt()).optional()}),YH=Rm("type",[lx,dx,px]),Am=Rm("type",[lx,dx,px,MH,XH]),QH=ie({role:dl,content:ft([Am,We(Am)]),_meta:Tt(z(),xt()).optional()}),e3=il.extend({messages:We(QH),modelPreferences:KH.optional(),systemPrompt:z().optional(),includeContext:Er(["none","thisServer","allServers"]).optional(),temperature:ct().optional(),maxTokens:ct().int(),stopSequences:We(z()).optional(),metadata:mr.optional(),tools:We(m1).optional(),toolChoice:JH.optional()}),yx=fr.extend({method:me("sampling/createMessage"),params:e3}),_x=hr.extend({model:z(),stopReason:Ot(Er(["endTurn","stopSequence","maxTokens"]).or(z())),role:dl,content:YH}),bx=hr.extend({model:z(),stopReason:Ot(Er(["endTurn","stopSequence","maxTokens","toolUse"]).or(z())),role:dl,content:ft([Am,We(Am)])}),t3=ie({type:me("boolean"),title:z().optional(),description:z().optional(),default:Xt().optional()}),r3=ie({type:me("string"),title:z().optional(),description:z().optional(),minLength:ct().optional(),maxLength:ct().optional(),format:Er(["email","uri","date","date-time"]).optional(),default:z().optional()}),n3=ie({type:Er(["number","integer"]),title:z().optional(),description:z().optional(),minimum:ct().optional(),maximum:ct().optional(),default:ct().optional()}),i3=ie({type:me("string"),title:z().optional(),description:z().optional(),enum:We(z()),default:z().optional()}),s3=ie({type:me("string"),title:z().optional(),description:z().optional(),oneOf:We(ie({const:z(),title:z()})),default:z().optional()}),o3=ie({type:me("string"),title:z().optional(),description:z().optional(),enum:We(z()),enumNames:We(z()).optional(),default:z().optional()}),a3=ft([i3,s3]),c3=ie({type:me("array"),title:z().optional(),description:z().optional(),minItems:ct().optional(),maxItems:ct().optional(),items:ie({type:me("string"),enum:We(z())}),default:We(z()).optional()}),u3=ie({type:me("array"),title:z().optional(),description:z().optional(),minItems:ct().optional(),maxItems:ct().optional(),items:ie({anyOf:We(ie({const:z(),title:z()}))}),default:We(z()).optional()}),l3=ft([c3,u3]),d3=ft([o3,a3,l3]),p3=ft([d3,t3,r3,n3]),m3=il.extend({mode:me("form").optional(),message:z(),requestedSchema:ie({type:me("object"),properties:Tt(z(),p3),required:We(z()).optional()})}),f3=il.extend({mode:me("url"),message:z(),elicitationId:z(),url:z().url()}),h3=ft([m3,f3]),xx=fr.extend({method:me("elicitation/create"),params:h3}),g3=$n.extend({elicitationId:z()}),v3=Tn.extend({method:me("notifications/elicitation/complete"),params:g3}),Sx=hr.extend({action:Er(["accept","decline","cancel"]),content:Cm(t=>t===null?void 0:t,Tt(z(),ft([z(),ct(),Xt(),We(z())])).optional())}),y3=ie({type:me("ref/resource"),uri:z()});var _3=ie({type:me("ref/prompt"),name:z()}),b3=gn.extend({ref:ft([_3,y3]),argument:ie({name:z(),value:z()}),context:ie({arguments:Tt(z(),z()).optional()}).optional()}),x3=fr.extend({method:me("completion/complete"),params:b3});var wx=hr.extend({completion:wr({values:We(z()).max(100),total:Ot(ct().int()),hasMore:Ot(Xt())})}),S3=ie({uri:z().startsWith("file://"),name:z().optional(),_meta:Tt(z(),xt()).optional()}),w3=fr.extend({method:me("roots/list"),params:gn.optional()}),E3=hr.extend({roots:We(S3)}),k3=Tn.extend({method:me("notifications/roots/list_changed"),params:$n.optional()}),wSe=ft([jm,dH,x3,BH,NH,CH,bH,xH,wH,kH,TH,HH,qH,Lm,qm,Fm,Zm]),ESe=ft([Dm,zm,mH,k3,ll]),kSe=ft([io,_x,bx,Sx,E3,Um,Hm,so]),$Se=ft([jm,yx,xx,w3,Lm,qm,Fm,Zm]),TSe=ft([Dm,zm,GH,RH,cx,vx,hx,ll,v3]),ISe=ft([io,rx,wx,fx,ux,ix,sx,ax,ka,gx,Um,Hm,so]),ve=class t extends Error{constructor(e,r,n){super(`MCP error ${e}: ${r}`),this.code=e,this.data=n,this.name="McpError"}static fromError(e,r,n){if(e===Te.UrlElicitationRequired&&n){let i=n;if(i.elicitations)return new Jb(i.elicitations,r)}return new t(e,r,n)}},Jb=class extends ve{constructor(e,r=`URL elicitation${e.length>1?"s":""} required`){super(Te.UrlElicitationRequired,r,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}};function ws(t){return t==="completed"||t==="failed"||t==="cancelled"}var c0e=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function Ex(t){let r=vm(t)?.method;if(!r)throw new Error("Schema is missing a method literal");let n=XI(r);if(typeof n!="string")throw new Error("Schema method literal must be a string");return n}function kx(t,e){let r=Bn(t,e);if(!r.success)throw r.error;return r.data}var P3=6e4,Bm=class{constructor(e){this._options=e,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(Dm,r=>{this._oncancel(r)}),this.setNotificationHandler(zm,r=>{this._onprogress(r)}),this.setRequestHandler(jm,r=>({})),this._taskStore=e?.taskStore,this._taskMessageQueue=e?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(Lm,async(r,n)=>{let i=await this._taskStore.getTask(r.params.taskId,n.sessionId);if(!i)throw new ve(Te.InvalidParams,"Failed to retrieve task: Task not found");return{...i}}),this.setRequestHandler(qm,async(r,n)=>{let i=async()=>{let s=r.params.taskId;if(this._taskMessageQueue){let a;for(;a=await this._taskMessageQueue.dequeue(s,n.sessionId);){if(a.type==="response"||a.type==="error"){let c=a.message,u=c.id,l=this._requestResolvers.get(u);if(l)if(this._requestResolvers.delete(u),a.type==="response")l(c);else{let d=c,p=new ve(d.error.code,d.error.message,d.error.data);l(p)}else{let d=a.type==="response"?"Response":"Error";this._onerror(new Error(`${d} handler missing for request ${u}`))}continue}await this._transport?.send(a.message,{relatedRequestId:n.requestId})}}let o=await this._taskStore.getTask(s,n.sessionId);if(!o)throw new ve(Te.InvalidParams,`Task not found: ${s}`);if(!ws(o.status))return await this._waitForTaskUpdate(s,n.signal),await i();if(ws(o.status)){let a=await this._taskStore.getTaskResult(s,n.sessionId);return this._clearTaskQueue(s),{...a,_meta:{...a._meta,[Ss]:{taskId:s}}}}return await i()};return await i()}),this.setRequestHandler(Fm,async(r,n)=>{try{let{tasks:i,nextCursor:s}=await this._taskStore.listTasks(r.params?.cursor,n.sessionId);return{tasks:i,nextCursor:s,_meta:{}}}catch(i){throw new ve(Te.InvalidParams,`Failed to list tasks: ${i instanceof Error?i.message:String(i)}`)}}),this.setRequestHandler(Zm,async(r,n)=>{try{let i=await this._taskStore.getTask(r.params.taskId,n.sessionId);if(!i)throw new ve(Te.InvalidParams,`Task not found: ${r.params.taskId}`);if(ws(i.status))throw new ve(Te.InvalidParams,`Cannot cancel task in terminal status: ${i.status}`);await this._taskStore.updateTaskStatus(r.params.taskId,"cancelled","Client cancelled task execution.",n.sessionId),this._clearTaskQueue(r.params.taskId);let s=await this._taskStore.getTask(r.params.taskId,n.sessionId);if(!s)throw new ve(Te.InvalidParams,`Task not found after cancellation: ${r.params.taskId}`);return{_meta:{},...s}}catch(i){throw i instanceof ve?i:new ve(Te.InvalidRequest,`Failed to cancel task: ${i instanceof Error?i.message:String(i)}`)}}))}async _oncancel(e){if(!e.params.requestId)return;this._requestHandlerAbortControllers.get(e.params.requestId)?.abort(e.params.reason)}_setupTimeout(e,r,n,i,s=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(i,r),startTime:Date.now(),timeout:r,maxTotalTimeout:n,resetTimeoutOnProgress:s,onTimeout:i})}_resetTimeout(e){let r=this._timeoutInfo.get(e);if(!r)return!1;let n=Date.now()-r.startTime;if(r.maxTotalTimeout&&n>=r.maxTotalTimeout)throw this._timeoutInfo.delete(e),ve.fromError(Te.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:r.maxTotalTimeout,totalElapsed:n});return clearTimeout(r.timeoutId),r.timeoutId=setTimeout(r.onTimeout,r.timeout),!0}_cleanupTimeout(e){let r=this._timeoutInfo.get(e);r&&(clearTimeout(r.timeoutId),this._timeoutInfo.delete(e))}async connect(e){if(this._transport)throw new Error("Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.");this._transport=e;let r=this.transport?.onclose;this._transport.onclose=()=>{r?.(),this._onclose()};let n=this.transport?.onerror;this._transport.onerror=s=>{n?.(s),this._onerror(s)};let i=this._transport?.onmessage;this._transport.onmessage=(s,o)=>{i?.(s,o),sl(s)||s1(s)?this._onresponse(s):Qb(s)?this._onrequest(s,o):i1(s)?this._onnotification(s):this._onerror(new Error(`Unknown message type: ${JSON.stringify(s)}`))},await this._transport.start()}_onclose(){let e=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(let n of this._requestHandlerAbortControllers.values())n.abort();this._requestHandlerAbortControllers.clear();let r=ve.fromError(Te.ConnectionClosed,"Connection closed");this._transport=void 0,this.onclose?.();for(let n of e.values())n(r)}_onerror(e){this.onerror?.(e)}_onnotification(e){let r=this._notificationHandlers.get(e.method)??this.fallbackNotificationHandler;r!==void 0&&Promise.resolve().then(()=>r(e)).catch(n=>this._onerror(new Error(`Uncaught error in notification handler: ${n}`)))}_onrequest(e,r){let n=this._requestHandlers.get(e.method)??this.fallbackRequestHandler,i=this._transport,s=e.params?._meta?.[Ss]?.taskId;if(n===void 0){let l={jsonrpc:"2.0",id:e.id,error:{code:Te.MethodNotFound,message:"Method not found"}};s&&this._taskMessageQueue?this._enqueueTaskMessage(s,{type:"error",message:l,timestamp:Date.now()},i?.sessionId).catch(d=>this._onerror(new Error(`Failed to enqueue error response: ${d}`))):i?.send(l).catch(d=>this._onerror(new Error(`Failed to send an error response: ${d}`)));return}let o=new AbortController;this._requestHandlerAbortControllers.set(e.id,o);let a=t1(e.params)?e.params.task:void 0,c=this._taskStore?this.requestTaskStore(e,i?.sessionId):void 0,u={signal:o.signal,sessionId:i?.sessionId,_meta:e.params?._meta,sendNotification:async l=>{if(o.signal.aborted)return;let d={relatedRequestId:e.id};s&&(d.relatedTask={taskId:s}),await this.notification(l,d)},sendRequest:async(l,d,p)=>{if(o.signal.aborted)throw new ve(Te.ConnectionClosed,"Request was cancelled");let m={...p,relatedRequestId:e.id};s&&!m.relatedTask&&(m.relatedTask={taskId:s});let f=m.relatedTask?.taskId??s;return f&&c&&await c.updateTaskStatus(f,"input_required"),await this.request(l,d,m)},authInfo:r?.authInfo,requestId:e.id,requestInfo:r?.requestInfo,taskId:s,taskStore:c,taskRequestedTtl:a?.ttl,closeSSEStream:r?.closeSSEStream,closeStandaloneSSEStream:r?.closeStandaloneSSEStream};Promise.resolve().then(()=>{a&&this.assertTaskHandlerCapability(e.method)}).then(()=>n(e,u)).then(async l=>{if(o.signal.aborted)return;let d={result:l,jsonrpc:"2.0",id:e.id};s&&this._taskMessageQueue?await this._enqueueTaskMessage(s,{type:"response",message:d,timestamp:Date.now()},i?.sessionId):await i?.send(d)},async l=>{if(o.signal.aborted)return;let d={jsonrpc:"2.0",id:e.id,error:{code:Number.isSafeInteger(l.code)?l.code:Te.InternalError,message:l.message??"Internal error",...l.data!==void 0&&{data:l.data}}};s&&this._taskMessageQueue?await this._enqueueTaskMessage(s,{type:"error",message:d,timestamp:Date.now()},i?.sessionId):await i?.send(d)}).catch(l=>this._onerror(new Error(`Failed to send response: ${l}`))).finally(()=>{this._requestHandlerAbortControllers.delete(e.id)})}_onprogress(e){let{progressToken:r,...n}=e.params,i=Number(r),s=this._progressHandlers.get(i);if(!s){this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(e)}`));return}let o=this._responseHandlers.get(i),a=this._timeoutInfo.get(i);if(a&&o&&a.resetTimeoutOnProgress)try{this._resetTimeout(i)}catch(c){this._responseHandlers.delete(i),this._progressHandlers.delete(i),this._cleanupTimeout(i),o(c);return}s(n)}_onresponse(e){let r=Number(e.id),n=this._requestResolvers.get(r);if(n){if(this._requestResolvers.delete(r),sl(e))n(e);else{let o=new ve(e.error.code,e.error.message,e.error.data);n(o)}return}let i=this._responseHandlers.get(r);if(i===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}this._responseHandlers.delete(r),this._cleanupTimeout(r);let s=!1;if(sl(e)&&e.result&&typeof e.result=="object"){let o=e.result;if(o.task&&typeof o.task=="object"){let a=o.task;typeof a.taskId=="string"&&(s=!0,this._taskProgressTokens.set(a.taskId,r))}}if(s||this._progressHandlers.delete(r),sl(e))i(e);else{let o=ve.fromError(e.error.code,e.error.message,e.error.data);i(o)}}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(e,r,n){let{task:i}=n??{};if(!i){try{yield{type:"result",result:await this.request(e,r,n)}}catch(o){yield{type:"error",error:o instanceof ve?o:new ve(Te.InternalError,String(o))}}return}let s;try{let o=await this.request(e,so,n);if(o.task)s=o.task.taskId,yield{type:"taskCreated",task:o.task};else throw new ve(Te.InternalError,"Task creation did not return a task");for(;;){let a=await this.getTask({taskId:s},n);if(yield{type:"taskStatus",task:a},ws(a.status)){a.status==="completed"?yield{type:"result",result:await this.getTaskResult({taskId:s},r,n)}:a.status==="failed"?yield{type:"error",error:new ve(Te.InternalError,`Task ${s} failed`)}:a.status==="cancelled"&&(yield{type:"error",error:new ve(Te.InternalError,`Task ${s} was cancelled`)});return}if(a.status==="input_required"){yield{type:"result",result:await this.getTaskResult({taskId:s},r,n)};return}let c=a.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(u=>setTimeout(u,c)),n?.signal?.throwIfAborted()}}catch(o){yield{type:"error",error:o instanceof ve?o:new ve(Te.InternalError,String(o))}}}request(e,r,n){let{relatedRequestId:i,resumptionToken:s,onresumptiontoken:o,task:a,relatedTask:c}=n??{};return new Promise((u,l)=>{let d=x=>{l(x)};if(!this._transport){d(new Error("Not connected"));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(e.method),a&&this.assertTaskCapability(e.method)}catch(x){d(x);return}n?.signal?.throwIfAborted();let p=this._requestMessageId++,m={...e,jsonrpc:"2.0",id:p};n?.onprogress&&(this._progressHandlers.set(p,n.onprogress),m.params={...e.params,_meta:{...e.params?._meta||{},progressToken:p}}),a&&(m.params={...m.params,task:a}),c&&(m.params={...m.params,_meta:{...m.params?._meta||{},[Ss]:c}});let f=x=>{this._responseHandlers.delete(p),this._progressHandlers.delete(p),this._cleanupTimeout(p),this._transport?.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:p,reason:String(x)}},{relatedRequestId:i,resumptionToken:s,onresumptiontoken:o}).catch(_=>this._onerror(new Error(`Failed to send cancellation: ${_}`)));let b=x instanceof ve?x:new ve(Te.RequestTimeout,String(x));l(b)};this._responseHandlers.set(p,x=>{if(!n?.signal?.aborted){if(x instanceof Error)return l(x);try{let b=Bn(r,x.result);b.success?u(b.data):l(b.error)}catch(b){l(b)}}}),n?.signal?.addEventListener("abort",()=>{f(n?.signal?.reason)});let g=n?.timeout??P3,h=()=>f(ve.fromError(Te.RequestTimeout,"Request timed out",{timeout:g}));this._setupTimeout(p,g,n?.maxTotalTimeout,h,n?.resetTimeoutOnProgress??!1);let v=c?.taskId;if(v){let x=b=>{let _=this._responseHandlers.get(p);_?_(b):this._onerror(new Error(`Response handler missing for side-channeled request ${p}`))};this._requestResolvers.set(p,x),this._enqueueTaskMessage(v,{type:"request",message:m,timestamp:Date.now()}).catch(b=>{this._cleanupTimeout(p),l(b)})}else this._transport.send(m,{relatedRequestId:i,resumptionToken:s,onresumptiontoken:o}).catch(x=>{this._cleanupTimeout(p),l(x)})})}async getTask(e,r){return this.request({method:"tasks/get",params:e},Um,r)}async getTaskResult(e,r,n){return this.request({method:"tasks/result",params:e},r,n)}async listTasks(e,r){return this.request({method:"tasks/list",params:e},Hm,r)}async cancelTask(e,r){return this.request({method:"tasks/cancel",params:e},c1,r)}async notification(e,r){if(!this._transport)throw new Error("Not connected");this.assertNotificationCapability(e.method);let n=r?.relatedTask?.taskId;if(n){let a={...e,jsonrpc:"2.0",params:{...e.params,_meta:{...e.params?._meta||{},[Ss]:r.relatedTask}}};await this._enqueueTaskMessage(n,{type:"notification",message:a,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(e.method)&&!e.params&&!r?.relatedRequestId&&!r?.relatedTask){if(this._pendingDebouncedNotifications.has(e.method))return;this._pendingDebouncedNotifications.add(e.method),Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete(e.method),!this._transport)return;let a={...e,jsonrpc:"2.0"};r?.relatedTask&&(a={...a,params:{...a.params,_meta:{...a.params?._meta||{},[Ss]:r.relatedTask}}}),this._transport?.send(a,r).catch(c=>this._onerror(c))});return}let o={...e,jsonrpc:"2.0"};r?.relatedTask&&(o={...o,params:{...o.params,_meta:{...o.params?._meta||{},[Ss]:r.relatedTask}}}),await this._transport.send(o,r)}setRequestHandler(e,r){let n=Ex(e);this.assertRequestHandlerCapability(n),this._requestHandlers.set(n,(i,s)=>{let o=kx(e,i);return Promise.resolve(r(o,s))})}removeRequestHandler(e){this._requestHandlers.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw new Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,r){let n=Ex(e);this._notificationHandlers.set(n,i=>{let s=kx(e,i);return Promise.resolve(r(s))})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}_cleanupTaskProgressHandler(e){let r=this._taskProgressTokens.get(e);r!==void 0&&(this._progressHandlers.delete(r),this._taskProgressTokens.delete(e))}async _enqueueTaskMessage(e,r,n){if(!this._taskStore||!this._taskMessageQueue)throw new Error("Cannot enqueue task message: taskStore and taskMessageQueue are not configured");let i=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue(e,r,n,i)}async _clearTaskQueue(e,r){if(this._taskMessageQueue){let n=await this._taskMessageQueue.dequeueAll(e,r);for(let i of n)if(i.type==="request"&&Qb(i.message)){let s=i.message.id,o=this._requestResolvers.get(s);o?(o(new ve(Te.InternalError,"Task cancelled or completed")),this._requestResolvers.delete(s)):this._onerror(new Error(`Resolver missing for request ${s} during task ${e} cleanup`))}}}async _waitForTaskUpdate(e,r){let n=this._options?.defaultTaskPollInterval??1e3;try{let i=await this._taskStore?.getTask(e);i?.pollInterval&&(n=i.pollInterval)}catch{}return new Promise((i,s)=>{if(r.aborted){s(new ve(Te.InvalidRequest,"Request cancelled"));return}let o=setTimeout(i,n);r.addEventListener("abort",()=>{clearTimeout(o),s(new ve(Te.InvalidRequest,"Request cancelled"))},{once:!0})})}requestTaskStore(e,r){let n=this._taskStore;if(!n)throw new Error("No task store configured");return{createTask:async i=>{if(!e)throw new Error("No request provided");return await n.createTask(i,e.id,{method:e.method,params:e.params},r)},getTask:async i=>{let s=await n.getTask(i,r);if(!s)throw new ve(Te.InvalidParams,"Failed to retrieve task: Task not found");return s},storeTaskResult:async(i,s,o)=>{await n.storeTaskResult(i,s,o,r);let a=await n.getTask(i,r);if(a){let c=ll.parse({method:"notifications/tasks/status",params:a});await this.notification(c),ws(a.status)&&this._cleanupTaskProgressHandler(i)}},getTaskResult:i=>n.getTaskResult(i,r),updateTaskStatus:async(i,s,o)=>{let a=await n.getTask(i,r);if(!a)throw new ve(Te.InvalidParams,`Task "${i}" not found - it may have been cleaned up`);if(ws(a.status))throw new ve(Te.InvalidParams,`Cannot update task "${i}" from terminal status "${a.status}" to "${s}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await n.updateTaskStatus(i,s,o,r);let c=await n.getTask(i,r);if(c){let u=ll.parse({method:"notifications/tasks/status",params:c});await this.notification(u),ws(c.status)&&this._cleanupTaskProgressHandler(i)}},listTasks:i=>n.listTasks(i,r)}}};function g1(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}function v1(t,e){let r={...t};for(let n in e){let i=n,s=e[i];if(s===void 0)continue;let o=r[i];g1(o)&&g1(s)?r[i]={...o,...s}:r[i]=s}return r}var nC=Ue(l0(),1),iC=Ue(rC(),1);function S7(){let t=new nC.default({strict:!1,validateFormats:!0,validateSchema:!1,allErrors:!0});return(0,iC.default)(t),t}var If=class{constructor(e){this._ajv=e??S7()}getValidator(e){let r="$id"in e&&typeof e.$id=="string"?this._ajv.getSchema(e.$id)??this._ajv.compile(e):this._ajv.compile(e);return n=>r(n)?{valid:!0,data:n,errorMessage:void 0}:{valid:!1,data:void 0,errorMessage:this._ajv.errorsText(r.errors)}}};var Rf=class{constructor(e){this._client=e}async*callToolStream(e,r=ka,n){let i=this._client,s={...n,task:n?.task??(i.isToolTask(e.name)?{}:void 0)},o=i.requestStream({method:"tools/call",params:e},r,s),a=i.getToolOutputValidator(e.name);for await(let c of o){if(c.type==="result"&&a){let u=c.result;if(!u.structuredContent&&!u.isError){yield{type:"error",error:new ve(Te.InvalidRequest,`Tool ${e.name} has an output schema but did not return structured content`)};return}if(u.structuredContent)try{let l=a(u.structuredContent);if(!l.valid){yield{type:"error",error:new ve(Te.InvalidParams,`Structured content does not match the tool's output schema: ${l.errorMessage}`)};return}}catch(l){if(l instanceof ve){yield{type:"error",error:l};return}yield{type:"error",error:new ve(Te.InvalidParams,`Failed to validate structured content: ${l instanceof Error?l.message:String(l)}`)};return}}yield c}}async getTask(e,r){return this._client.getTask({taskId:e},r)}async getTaskResult(e,r,n){return this._client.getTaskResult({taskId:e},r,n)}async listTasks(e,r){return this._client.listTasks(e?{cursor:e}:void 0,r)}async cancelTask(e,r){return this._client.cancelTask({taskId:e},r)}requestStream(e,r,n){return this._client.requestStream(e,r,n)}};function sC(t,e,r){if(!t)throw new Error(`${r} does not support task creation (required for ${e})`);switch(e){case"tools/call":if(!t.tools?.call)throw new Error(`${r} does not support task creation for tools/call (required for ${e})`);break;default:break}}function oC(t,e,r){if(!t)throw new Error(`${r} does not support task creation (required for ${e})`);switch(e){case"sampling/createMessage":if(!t.sampling?.createMessage)throw new Error(`${r} does not support task creation for sampling/createMessage (required for ${e})`);break;case"elicitation/create":if(!t.elicitation?.create)throw new Error(`${r} does not support task creation for elicitation/create (required for ${e})`);break;default:break}}function Of(t,e){if(!(!t||e===null||typeof e!="object")){if(t.type==="object"&&t.properties&&typeof t.properties=="object"){let r=e,n=t.properties;for(let i of Object.keys(n)){let s=n[i];r[i]===void 0&&Object.prototype.hasOwnProperty.call(s,"default")&&(r[i]=s.default),r[i]!==void 0&&Of(s,r[i])}}if(Array.isArray(t.anyOf))for(let r of t.anyOf)typeof r!="boolean"&&Of(r,e);if(Array.isArray(t.oneOf))for(let r of t.oneOf)typeof r!="boolean"&&Of(r,e)}}function w7(t){if(!t)return{supportsFormMode:!1,supportsUrlMode:!1};let e=t.form!==void 0,r=t.url!==void 0;return{supportsFormMode:e||!e&&!r,supportsUrlMode:r}}var Ha=class extends Bm{constructor(e,r){super(r),this._clientInfo=e,this._cachedToolOutputValidators=new Map,this._cachedKnownTaskTools=new Set,this._cachedRequiredTaskTools=new Set,this._listChangedDebounceTimers=new Map,this._capabilities=r?.capabilities??{},this._jsonSchemaValidator=r?.jsonSchemaValidator??new If,r?.listChanged&&(this._pendingListChangedConfig=r.listChanged)}_setupListChangedHandlers(e){e.tools&&this._serverCapabilities?.tools?.listChanged&&this._setupListChangedHandler("tools",vx,e.tools,async()=>(await this.listTools()).tools),e.prompts&&this._serverCapabilities?.prompts?.listChanged&&this._setupListChangedHandler("prompts",hx,e.prompts,async()=>(await this.listPrompts()).prompts),e.resources&&this._serverCapabilities?.resources?.listChanged&&this._setupListChangedHandler("resources",cx,e.resources,async()=>(await this.listResources()).resources)}get experimental(){return this._experimental||(this._experimental={tasks:new Rf(this)}),this._experimental}registerCapabilities(e){if(this.transport)throw new Error("Cannot register capabilities after connecting to transport");this._capabilities=v1(this._capabilities,e)}setRequestHandler(e,r){let i=vm(e)?.method;if(!i)throw new Error("Schema is missing a method literal");let s;if(xa(i)){let a=i;s=a._zod?.def?.value??a.value}else{let a=i;s=a._def?.value??a.value}if(typeof s!="string")throw new Error("Schema method literal must be a string");let o=s;if(o==="elicitation/create"){let a=async(c,u)=>{let l=Bn(xx,c);if(!l.success){let x=l.error instanceof Error?l.error.message:String(l.error);throw new ve(Te.InvalidParams,`Invalid elicitation request: ${x}`)}let{params:d}=l.data;d.mode=d.mode??"form";let{supportsFormMode:p,supportsUrlMode:m}=w7(this._capabilities.elicitation);if(d.mode==="form"&&!p)throw new ve(Te.InvalidParams,"Client does not support form-mode elicitation requests");if(d.mode==="url"&&!m)throw new ve(Te.InvalidParams,"Client does not support URL-mode elicitation requests");let f=await Promise.resolve(r(c,u));if(d.task){let x=Bn(so,f);if(!x.success){let b=x.error instanceof Error?x.error.message:String(x.error);throw new ve(Te.InvalidParams,`Invalid task creation result: ${b}`)}return x.data}let g=Bn(Sx,f);if(!g.success){let x=g.error instanceof Error?g.error.message:String(g.error);throw new ve(Te.InvalidParams,`Invalid elicitation result: ${x}`)}let h=g.data,v=d.mode==="form"?d.requestedSchema:void 0;if(d.mode==="form"&&h.action==="accept"&&h.content&&v&&this._capabilities.elicitation?.form?.applyDefaults)try{Of(v,h.content)}catch{}return h};return super.setRequestHandler(e,a)}if(o==="sampling/createMessage"){let a=async(c,u)=>{let l=Bn(yx,c);if(!l.success){let h=l.error instanceof Error?l.error.message:String(l.error);throw new ve(Te.InvalidParams,`Invalid sampling request: ${h}`)}let{params:d}=l.data,p=await Promise.resolve(r(c,u));if(d.task){let h=Bn(so,p);if(!h.success){let v=h.error instanceof Error?h.error.message:String(h.error);throw new ve(Te.InvalidParams,`Invalid task creation result: ${v}`)}return h.data}let f=d.tools||d.toolChoice?bx:_x,g=Bn(f,p);if(!g.success){let h=g.error instanceof Error?g.error.message:String(g.error);throw new ve(Te.InvalidParams,`Invalid sampling result: ${h}`)}return g.data};return super.setRequestHandler(e,a)}return super.setRequestHandler(e,r)}assertCapability(e,r){if(!this._serverCapabilities?.[e])throw new Error(`Server does not support ${e} (required for ${r})`)}async connect(e,r){if(await super.connect(e),e.sessionId===void 0)try{let n=await this.request({method:"initialize",params:{protocolVersion:Xb,capabilities:this._capabilities,clientInfo:this._clientInfo}},rx,r);if(n===void 0)throw new Error(`Server sent invalid initialize result: ${n}`);if(!YR.includes(n.protocolVersion))throw new Error(`Server's protocol version is not supported: ${n.protocolVersion}`);this._serverCapabilities=n.capabilities,this._serverVersion=n.serverInfo,e.setProtocolVersion&&e.setProtocolVersion(n.protocolVersion),this._instructions=n.instructions,await this.notification({method:"notifications/initialized"}),this._pendingListChangedConfig&&(this._setupListChangedHandlers(this._pendingListChangedConfig),this._pendingListChangedConfig=void 0)}catch(n){throw this.close(),n}}getServerCapabilities(){return this._serverCapabilities}getServerVersion(){return this._serverVersion}getInstructions(){return this._instructions}assertCapabilityForMethod(e){switch(e){case"logging/setLevel":if(!this._serverCapabilities?.logging)throw new Error(`Server does not support logging (required for ${e})`);break;case"prompts/get":case"prompts/list":if(!this._serverCapabilities?.prompts)throw new Error(`Server does not support prompts (required for ${e})`);break;case"resources/list":case"resources/templates/list":case"resources/read":case"resources/subscribe":case"resources/unsubscribe":if(!this._serverCapabilities?.resources)throw new Error(`Server does not support resources (required for ${e})`);if(e==="resources/subscribe"&&!this._serverCapabilities.resources.subscribe)throw new Error(`Server does not support resource subscriptions (required for ${e})`);break;case"tools/call":case"tools/list":if(!this._serverCapabilities?.tools)throw new Error(`Server does not support tools (required for ${e})`);break;case"completion/complete":if(!this._serverCapabilities?.completions)throw new Error(`Server does not support completions (required for ${e})`);break;case"initialize":break;case"ping":break}}assertNotificationCapability(e){switch(e){case"notifications/roots/list_changed":if(!this._capabilities.roots?.listChanged)throw new Error(`Client does not support roots list changed notifications (required for ${e})`);break;case"notifications/initialized":break;case"notifications/cancelled":break;case"notifications/progress":break}}assertRequestHandlerCapability(e){if(this._capabilities)switch(e){case"sampling/createMessage":if(!this._capabilities.sampling)throw new Error(`Client does not support sampling capability (required for ${e})`);break;case"elicitation/create":if(!this._capabilities.elicitation)throw new Error(`Client does not support elicitation capability (required for ${e})`);break;case"roots/list":if(!this._capabilities.roots)throw new Error(`Client does not support roots capability (required for ${e})`);break;case"tasks/get":case"tasks/list":case"tasks/result":case"tasks/cancel":if(!this._capabilities.tasks)throw new Error(`Client does not support tasks capability (required for ${e})`);break;case"ping":break}}assertTaskCapability(e){sC(this._serverCapabilities?.tasks?.requests,e,"Server")}assertTaskHandlerCapability(e){this._capabilities&&oC(this._capabilities.tasks?.requests,e,"Client")}async ping(e){return this.request({method:"ping"},io,e)}async complete(e,r){return this.request({method:"completion/complete",params:e},wx,r)}async setLoggingLevel(e,r){return this.request({method:"logging/setLevel",params:{level:e}},io,r)}async getPrompt(e,r){return this.request({method:"prompts/get",params:e},fx,r)}async listPrompts(e,r){return this.request({method:"prompts/list",params:e},ux,r)}async listResources(e,r){return this.request({method:"resources/list",params:e},ix,r)}async listResourceTemplates(e,r){return this.request({method:"resources/templates/list",params:e},sx,r)}async readResource(e,r){return this.request({method:"resources/read",params:e},ax,r)}async subscribeResource(e,r){return this.request({method:"resources/subscribe",params:e},io,r)}async unsubscribeResource(e,r){return this.request({method:"resources/unsubscribe",params:e},io,r)}async callTool(e,r=ka,n){if(this.isToolTaskRequired(e.name))throw new ve(Te.InvalidRequest,`Tool "${e.name}" requires task-based execution. Use client.experimental.tasks.callToolStream() instead.`);let i=await this.request({method:"tools/call",params:e},r,n),s=this.getToolOutputValidator(e.name);if(s){if(!i.structuredContent&&!i.isError)throw new ve(Te.InvalidRequest,`Tool ${e.name} has an output schema but did not return structured content`);if(i.structuredContent)try{let o=s(i.structuredContent);if(!o.valid)throw new ve(Te.InvalidParams,`Structured content does not match the tool's output schema: ${o.errorMessage}`)}catch(o){throw o instanceof ve?o:new ve(Te.InvalidParams,`Failed to validate structured content: ${o instanceof Error?o.message:String(o)}`)}}return i}isToolTask(e){return this._serverCapabilities?.tasks?.requests?.tools?.call?this._cachedKnownTaskTools.has(e):!1}isToolTaskRequired(e){return this._cachedRequiredTaskTools.has(e)}cacheToolMetadata(e){this._cachedToolOutputValidators.clear(),this._cachedKnownTaskTools.clear(),this._cachedRequiredTaskTools.clear();for(let r of e){if(r.outputSchema){let i=this._jsonSchemaValidator.getValidator(r.outputSchema);this._cachedToolOutputValidators.set(r.name,i)}let n=r.execution?.taskSupport;(n==="required"||n==="optional")&&this._cachedKnownTaskTools.add(r.name),n==="required"&&this._cachedRequiredTaskTools.add(r.name)}}getToolOutputValidator(e){return this._cachedToolOutputValidators.get(e)}async listTools(e,r){let n=await this.request({method:"tools/list",params:e},gx,r);return this.cacheToolMetadata(n.tools),n}_setupListChangedHandler(e,r,n,i){let s=f1.safeParse(n);if(!s.success)throw new Error(`Invalid ${e} listChanged options: ${s.error.message}`);if(typeof n.onChanged!="function")throw new Error(`Invalid ${e} listChanged options: onChanged must be a function`);let{autoRefresh:o,debounceMs:a}=s.data,{onChanged:c}=n,u=async()=>{if(!o){c(null,null);return}try{let d=await i();c(null,d)}catch(d){let p=d instanceof Error?d:new Error(String(d));c(p,null)}},l=()=>{if(a){let d=this._listChangedDebounceTimers.get(e);d&&clearTimeout(d);let p=setTimeout(u,a);this._listChangedDebounceTimers.set(e,p)}else u()};this.setNotificationHandler(r,l)}async sendRootsListChanged(){return this.notification({method:"notifications/roots/list_changed"})}};var JC=Ue(WC(),1),Fl=Ue(require("node:process"),1),XC=require("node:stream");var Cf=class{append(e){this._buffer=this._buffer?Buffer.concat([this._buffer,e]):e}readMessage(){if(!this._buffer)return null;let e=this._buffer.indexOf(` +`);if(e===-1)return null;let r=this._buffer.toString("utf8",0,e).replace(/\r$/,"");return this._buffer=this._buffer.subarray(e+1),J7(r)}clear(){this._buffer=void 0}};function J7(t){return o1.parse(JSON.parse(t))}function KC(t){return JSON.stringify(t)+` +`}var X7=Fl.default.platform==="win32"?["APPDATA","HOMEDRIVE","HOMEPATH","LOCALAPPDATA","PATH","PROCESSOR_ARCHITECTURE","SYSTEMDRIVE","SYSTEMROOT","TEMP","USERNAME","USERPROFILE","PROGRAMFILES"]:["HOME","LOGNAME","PATH","SHELL","TERM","USER"];function Y7(){let t={};for(let e of X7){let r=Fl.default.env[e];r!==void 0&&(r.startsWith("()")||(t[e]=r))}return t}var Va=class{constructor(e){this._readBuffer=new Cf,this._stderrStream=null,this._serverParams=e,(e.stderr==="pipe"||e.stderr==="overlapped")&&(this._stderrStream=new XC.PassThrough)}async start(){if(this._process)throw new Error("StdioClientTransport already started! If using Client class, note that connect() calls start() automatically.");return new Promise((e,r)=>{this._process=(0,JC.default)(this._serverParams.command,this._serverParams.args??[],{env:{...Y7(),...this._serverParams.env},stdio:["pipe","pipe",this._serverParams.stderr??"inherit"],shell:!1,windowsHide:Fl.default.platform==="win32"&&Q7(),cwd:this._serverParams.cwd}),this._process.on("error",n=>{r(n),this.onerror?.(n)}),this._process.on("spawn",()=>{e()}),this._process.on("close",n=>{this._process=void 0,this.onclose?.()}),this._process.stdin?.on("error",n=>{this.onerror?.(n)}),this._process.stdout?.on("data",n=>{this._readBuffer.append(n),this.processReadBuffer()}),this._process.stdout?.on("error",n=>{this.onerror?.(n)}),this._stderrStream&&this._process.stderr&&this._process.stderr.pipe(this._stderrStream)})}get stderr(){return this._stderrStream?this._stderrStream:this._process?.stderr??null}get pid(){return this._process?.pid??null}processReadBuffer(){for(;;)try{let e=this._readBuffer.readMessage();if(e===null)break;this.onmessage?.(e)}catch(e){this.onerror?.(e)}}async close(){if(this._process){let e=this._process;this._process=void 0;let r=new Promise(n=>{e.once("close",()=>{n()})});try{e.stdin?.end()}catch{}if(await Promise.race([r,new Promise(n=>setTimeout(n,2e3).unref())]),e.exitCode===null){try{e.kill("SIGTERM")}catch{}await Promise.race([r,new Promise(n=>setTimeout(n,2e3).unref())])}if(e.exitCode===null)try{e.kill("SIGKILL")}catch{}}this._readBuffer.clear()}send(e){return new Promise(r=>{if(!this._process?.stdin)throw new Error("Not connected");let n=KC(e);this._process.stdin.write(n)?r():this._process.stdin.once("drain",r)})}};function Q7(){return"type"in Fl.default}Or();en();Yt();var Ga=require("fs"),M0=require("path"),pA=require("os");oe();var bK=(0,M0.join)((0,pA.homedir)(),".claude-mem"),N0=(0,M0.join)(bK,".env"),xK=["ANTHROPIC_API_KEY","CLAUDECODE"];function SK(t){let e={};for(let r of t.split(` +`)){let n=r.trim();if(!n||n.startsWith("#"))continue;let i=n.indexOf("=");if(i===-1)continue;let s=n.slice(0,i).trim(),o=n.slice(i+1).trim();(o.startsWith('"')&&o.endsWith('"')||o.startsWith("'")&&o.endsWith("'"))&&(o=o.slice(1,-1)),s&&(e[s]=o)}return e}function D0(){if(!(0,Ga.existsSync)(N0))return{};try{let t=(0,Ga.readFileSync)(N0,"utf-8"),e=SK(t),r={};return e.ANTHROPIC_API_KEY&&(r.ANTHROPIC_API_KEY=e.ANTHROPIC_API_KEY),e.GEMINI_API_KEY&&(r.GEMINI_API_KEY=e.GEMINI_API_KEY),e.OPENROUTER_API_KEY&&(r.OPENROUTER_API_KEY=e.OPENROUTER_API_KEY),r}catch(t){return y.warn("ENV","Failed to load .env file",{path:N0},t),{}}}function mA(t=!0){let e={};for(let[r,n]of Object.entries(process.env))n!==void 0&&!xK.includes(r)&&(e[r]=n);if(e.CLAUDE_CODE_ENTRYPOINT="sdk-ts",t){let r=D0();r.ANTHROPIC_API_KEY&&(e.ANTHROPIC_API_KEY=r.ANTHROPIC_API_KEY),r.GEMINI_API_KEY&&(e.GEMINI_API_KEY=r.GEMINI_API_KEY),r.OPENROUTER_API_KEY&&(e.OPENROUTER_API_KEY=r.OPENROUTER_API_KEY),!e.ANTHROPIC_API_KEY&&process.env.CLAUDE_CODE_OAUTH_TOKEN&&(e.CLAUDE_CODE_OAUTH_TOKEN=process.env.CLAUDE_CODE_OAUTH_TOKEN)}return e}function Wa(t){return D0()[t]}function wK(){return!!D0().ANTHROPIC_API_KEY}function zf(){return wK()?"API key (from ~/.claude-mem/.env)":process.env.CLAUDE_CODE_OAUTH_TOKEN?"Claude Code OAuth token (from parent process)":"Claude Code CLI (subscription billing)"}oe();var B0=require("child_process"),V0=Ue(require("path"),1),G0=Ue(require("os"),1),yo=Ue(require("fs"),1);oe();Yt();Nt();var j0=["CLAUDECODE_","CLAUDE_CODE_"],z0=new Set(["CLAUDECODE","CLAUDE_CODE_SESSION","CLAUDE_CODE_ENTRYPOINT","MCP_SESSION_ID"]);function vi(t=process.env){let e={};for(let[r,n]of Object.entries(t))n!==void 0&&(z0.has(r)||j0.some(i=>r.startsWith(i))||(e[r]=n));return e}var vo=require("fs"),kA=require("os"),H0=Ue(require("path"),1);oe();var Ji=require("fs"),fA=require("os"),Gl=Ue(require("path"),1);oe();var EK=5e3,kK=1e3,$K=Gl.default.join((0,fA.homedir)(),".claude-mem"),TK=Gl.default.join($K,"supervisor.json");function vn(t){if(!Number.isInteger(t)||t<0||t===0)return!1;try{return process.kill(t,0),!0}catch(e){return e.code==="EPERM"}}var U0=class{registryPath;entries=new Map;runtimeProcesses=new Map;initialized=!1;constructor(e=TK){this.registryPath=e}initialize(){if(this.initialized)return;if(this.initialized=!0,(0,Ji.mkdirSync)(Gl.default.dirname(this.registryPath),{recursive:!0}),!(0,Ji.existsSync)(this.registryPath)){this.persist();return}try{let n=JSON.parse((0,Ji.readFileSync)(this.registryPath,"utf-8")).processes??{};for(let[i,s]of Object.entries(n))this.entries.set(i,s)}catch(r){y.warn("SYSTEM","Failed to parse supervisor registry, rebuilding",{path:this.registryPath},r),this.entries.clear()}let e=this.pruneDeadEntries();e>0&&y.info("SYSTEM","Removed dead processes from supervisor registry",{removed:e}),this.persist()}register(e,r,n){this.initialize(),this.entries.set(e,r),n&&this.runtimeProcesses.set(e,n),this.persist()}unregister(e){this.initialize(),this.entries.delete(e),this.runtimeProcesses.delete(e),this.persist()}clear(){this.entries.clear(),this.runtimeProcesses.clear(),this.persist()}getAll(){return this.initialize(),Array.from(this.entries.entries()).map(([e,r])=>({id:e,...r})).sort((e,r)=>{let n=Date.parse(e.startedAt),i=Date.parse(r.startedAt);return(Number.isNaN(n)?0:n)-(Number.isNaN(i)?0:i)})}getBySession(e){let r=String(e);return this.getAll().filter(n=>n.sessionId!==void 0&&String(n.sessionId)===r)}getRuntimeProcess(e){return this.runtimeProcesses.get(e)}getByPid(e){return this.getAll().filter(r=>r.pid===e)}pruneDeadEntries(){this.initialize();let e=0;for(let[r,n]of this.entries)vn(n.pid)||(this.entries.delete(r),this.runtimeProcesses.delete(r),e+=1);return e>0&&this.persist(),e}async reapSession(e){this.initialize();let r=this.getBySession(e);if(r.length===0)return 0;let n=typeof e=="number"?e:Number(e)||void 0;y.info("SYSTEM",`Reaping ${r.length} process(es) for session ${e}`,{sessionId:n,pids:r.map(a=>a.pid)});let i=r.filter(a=>vn(a.pid));for(let a of i)try{process.kill(a.pid,"SIGTERM")}catch(c){c.code!=="ESRCH"&&y.debug("SYSTEM",`Failed to SIGTERM session process PID ${a.pid}`,{pid:a.pid},c)}let s=Date.now()+EK;for(;Date.now()vn(c.pid)).length!==0;)await new Promise(c=>setTimeout(c,100));let o=i.filter(a=>vn(a.pid));for(let a of o){y.warn("SYSTEM",`Session process PID ${a.pid} did not exit after SIGTERM, sending SIGKILL`,{pid:a.pid,sessionId:n});try{process.kill(a.pid,"SIGKILL")}catch(c){c.code!=="ESRCH"&&y.debug("SYSTEM",`Failed to SIGKILL session process PID ${a.pid}`,{pid:a.pid},c)}}if(o.length>0){let a=Date.now()+kK;for(;Date.now()vn(u.pid)).length!==0;)await new Promise(u=>setTimeout(u,100))}for(let a of r)this.entries.delete(a.id),this.runtimeProcesses.delete(a.id);return this.persist(),y.info("SYSTEM",`Reaped ${r.length} process(es) for session ${e}`,{sessionId:n,reaped:r.length}),r.length}persist(){let e={processes:Object.fromEntries(this.entries.entries())};(0,Ji.mkdirSync)(Gl.default.dirname(this.registryPath),{recursive:!0}),(0,Ji.writeFileSync)(this.registryPath,JSON.stringify(e,null,2))}},L0=null;function Lf(){return L0||(L0=new U0),L0}var vA=require("child_process"),yA=require("fs"),_A=require("os"),q0=Ue(require("path"),1),bA=require("util");oe();en();var IK=(0,bA.promisify)(vA.execFile),RK=q0.default.join((0,_A.homedir)(),".claude-mem"),OK=q0.default.join(RK,"worker.pid");async function xA(t){let e=t.currentPid??process.pid,r=t.pidFilePath??OK,n=t.registry.getAll(),i=[...n].filter(o=>o.pid!==e).sort((o,a)=>Date.parse(a.startedAt)-Date.parse(o.startedAt));for(let o of i){if(!vn(o.pid)){t.registry.unregister(o.id);continue}try{await gA(o.pid,"SIGTERM")}catch(a){y.debug("SYSTEM","Failed to send SIGTERM to child process",{pid:o.pid,type:o.type},a)}}await hA(i,5e3);let s=i.filter(o=>vn(o.pid));for(let o of s)try{await gA(o.pid,"SIGKILL")}catch(a){y.debug("SYSTEM","Failed to force kill child process",{pid:o.pid,type:o.type},a)}await hA(s,1e3);for(let o of i)t.registry.unregister(o.id);for(let o of n.filter(a=>a.pid===e))t.registry.unregister(o.id);try{(0,yA.rmSync)(r,{force:!0})}catch(o){y.debug("SYSTEM","Failed to remove PID file during shutdown",{pidFilePath:r},o)}t.registry.pruneDeadEntries()}async function hA(t,e){let r=Date.now()+e;for(;Date.now()vn(i.pid)).length===0)return;await new Promise(i=>setTimeout(i,100))}}async function gA(t,e){if(e==="SIGTERM"){try{process.kill(t,e)}catch(r){if(r.code==="ESRCH")return;throw r}return}if(process.platform==="win32"){let r=await PK();if(r){await new Promise((i,s)=>{r(t,e,o=>{if(!o){i();return}if(o.code==="ESRCH"){i();return}s(o)})});return}let n=["/PID",String(t),"/T"];e==="SIGKILL"&&n.push("/F"),await IK("taskkill",n,{timeout:_r.POWERSHELL_COMMAND,windowsHide:!0});return}try{process.kill(t,e)}catch(r){if(r.code==="ESRCH")return;throw r}}async function PK(){let t="tree-kill";try{let e=await import(t);return e.default??e}catch{return null}}oe();var SA=3e4,Ka=null;function CK(){let e=Lf().pruneDeadEntries();e>0&&y.info("SYSTEM",`Health check: pruned ${e} dead process(es) from registry`)}function wA(){Ka===null&&(Ka=setInterval(CK,SA),Ka.unref(),y.debug("SYSTEM","Health checker started",{intervalMs:SA}))}function EA(){Ka!==null&&(clearInterval(Ka),Ka=null,y.debug("SYSTEM","Health checker stopped"))}var AK=H0.default.join((0,kA.homedir)(),".claude-mem"),NK=H0.default.join(AK,"worker.pid"),F0=class{registry;started=!1;stopPromise=null;signalHandlersRegistered=!1;shutdownInitiated=!1;shutdownHandler=null;constructor(e){this.registry=e}async start(){if(this.started)return;if(this.registry.initialize(),Z0({logAlive:!1})==="alive")throw new Error("Worker already running");this.started=!0,wA()}configureSignalHandlers(e){if(this.shutdownHandler=e,this.signalHandlersRegistered)return;this.signalHandlersRegistered=!0;let r=async n=>{if(this.shutdownInitiated){y.warn("SYSTEM",`Received ${n} but shutdown already in progress`);return}this.shutdownInitiated=!0,y.info("SYSTEM",`Received ${n}, shutting down...`);try{this.shutdownHandler?await this.shutdownHandler():await this.stop()}catch(i){y.error("SYSTEM","Error during shutdown",{},i);try{await this.stop()}catch(s){y.debug("SYSTEM","Supervisor shutdown fallback failed",{},s)}}process.exit(0)};process.on("SIGTERM",()=>{r("SIGTERM")}),process.on("SIGINT",()=>{r("SIGINT")}),process.platform!=="win32"&&(process.argv.includes("--daemon")?process.on("SIGHUP",()=>{y.debug("SYSTEM","Ignoring SIGHUP in daemon mode")}):process.on("SIGHUP",()=>{r("SIGHUP")}))}async stop(){if(this.stopPromise){await this.stopPromise;return}EA(),this.stopPromise=xA({registry:this.registry,currentPid:process.pid}).finally(()=>{this.started=!1,this.stopPromise=null}),await this.stopPromise}assertCanSpawn(e){if(this.stopPromise!==null)throw new Error(`Supervisor is shutting down, refusing to spawn ${e}`)}registerProcess(e,r,n){this.registry.register(e,r,n)}unregisterProcess(e){this.registry.unregister(e)}getRegistry(){return this.registry}},Uf=new F0(Lf());async function $A(){await Uf.start()}async function TA(){await Uf.stop()}function gt(){return Uf}function IA(t){Uf.configureSignalHandlers(t)}function Z0(t={}){let e=t.pidFilePath??NK;if(!(0,vo.existsSync)(e))return"missing";let r=null;try{r=JSON.parse((0,vo.readFileSync)(e,"utf-8"))}catch(n){return y.warn("SYSTEM","Failed to parse worker PID file, removing it",{path:e},n),(0,vo.rmSync)(e,{force:!0}),"invalid"}return vn(r.pid)?((t.logAlive??!0)&&y.info("SYSTEM","Worker already running (PID alive)",{existingPid:r.pid,existingPort:r.port,startedAt:r.startedAt}),"alive"):(y.info("SYSTEM","Removing stale PID file (worker process is dead)",{pid:r.pid,port:r.port,startedAt:r.startedAt}),(0,vo.rmSync)(e,{force:!0}),"stale")}var MK="claude-mem-chroma",DK="1.0.0",RA=3e4,OA=1e4,jK=V0.default.join(G0.default.homedir(),".claude-mem","chroma"),qf="chroma-mcp",Xi=class t{static instance=null;client=null;transport=null;connected=!1;lastConnectionFailureTimestamp=0;connecting=null;constructor(){}static getInstance(){return t.instance||(t.instance=new t),t.instance}async ensureConnected(){if(this.connected&&this.client)return;let e=Date.now()-this.lastConnectionFailureTimestamp;if(this.lastConnectionFailureTimestamp>0&&e{a=setTimeout(()=>d(new Error(`MCP connection to chroma-mcp timed out after ${RA}ms`)),RA)});try{await Promise.race([o,c])}catch(l){clearTimeout(a),y.warn("CHROMA_MCP","Connection failed, killing subprocess to prevent zombie",{error:l instanceof Error?l.message:String(l)});try{await this.transport.close()}catch{}try{await this.client.close()}catch{}throw this.client=null,this.transport=null,this.connected=!1,l}clearTimeout(a),this.connected=!0,this.registerManagedProcess(),y.info("CHROMA_MCP","Connected to chroma-mcp successfully");let u=this.transport;this.transport.onclose=()=>{if(this.transport!==u){y.debug("CHROMA_MCP","Ignoring stale onclose from previous transport");return}y.warn("CHROMA_MCP","chroma-mcp subprocess closed unexpectedly, applying reconnect backoff"),this.connected=!1,gt().unregisterProcess(qf),this.client=null,this.transport=null,this.lastConnectionFailureTimestamp=Date.now()}}buildCommandArgs(){let e=_e.loadFromFile(At),r=e.CLAUDE_MEM_CHROMA_MODE||"local",n=process.env.CLAUDE_MEM_PYTHON_VERSION||e.CLAUDE_MEM_PYTHON_VERSION||"3.13";if(r==="remote"){let i=e.CLAUDE_MEM_CHROMA_HOST||"127.0.0.1",s=e.CLAUDE_MEM_CHROMA_PORT||"8000",o=e.CLAUDE_MEM_CHROMA_SSL==="true",a=e.CLAUDE_MEM_CHROMA_TENANT||"default_tenant",c=e.CLAUDE_MEM_CHROMA_DATABASE||"default_database",u=e.CLAUDE_MEM_CHROMA_API_KEY||"",l=["--python",n,"chroma-mcp","--client-type","http","--host",i,"--port",s];return l.push("--ssl",o?"true":"false"),a!=="default_tenant"&&l.push("--tenant",a),c!=="default_database"&&l.push("--database",c),u&&l.push("--api-key",u),l}return["--python",n,"chroma-mcp","--client-type","persistent","--data-dir",jK.replace(/\\/g,"/")]}async callTool(e,r){await this.ensureConnected(),y.debug("CHROMA_MCP",`Calling tool: ${e}`,{arguments:JSON.stringify(r).slice(0,200)});let n;try{n=await this.client.callTool({name:e,arguments:r})}catch(o){this.connected=!1,this.client=null,this.transport=null,y.warn("CHROMA_MCP",`Transport error during "${e}", reconnecting and retrying once`,{error:o instanceof Error?o.message:String(o)});try{await this.ensureConnected(),n=await this.client.callTool({name:e,arguments:r})}catch(a){throw this.connected=!1,new Error(`chroma-mcp transport error during "${e}" (retry failed): ${a instanceof Error?a.message:String(a)}`)}}if(n.isError){let o=n.content?.find(a=>a.type==="text")?.text||"Unknown chroma-mcp error";throw new Error(`chroma-mcp tool "${e}" returned error: ${o}`)}let i=n.content;if(!i||i.length===0)return null;let s=i.find(o=>o.type==="text"&&o.text);if(!s||!s.text)return null;try{return JSON.parse(s.text)}catch{return null}}async isHealthy(){try{return await this.callTool("chroma_list_collections",{limit:1}),!0}catch{return!1}}async stop(){if(!this.client){y.debug("CHROMA_MCP","No active MCP connection to stop");return}y.info("CHROMA_MCP","Stopping chroma-mcp MCP connection");try{await this.client.close()}catch(e){y.debug("CHROMA_MCP","Error during client close (subprocess may already be dead)",{},e)}gt().unregisterProcess(qf),this.client=null,this.transport=null,this.connected=!1,this.connecting=null,y.info("CHROMA_MCP","chroma-mcp MCP connection stopped")}static async reset(){t.instance&&await t.instance.stop(),t.instance=null}getCombinedCertPath(){let e=V0.default.join(G0.default.homedir(),".claude-mem","combined_certs.pem");if(yo.default.existsSync(e)){let r=yo.default.statSync(e);if(Date.now()-r.mtimeMs<1440*60*1e3)return e}if(process.platform==="darwin")try{let r;try{r=(0,B0.execSync)('uvx --with certifi python -c "import certifi; print(certifi.where())"',{encoding:"utf8",stdio:["pipe","pipe","pipe"],timeout:1e4}).trim()}catch{return}if(!r||!yo.default.existsSync(r))return;let n="";try{n=(0,B0.execSync)('security find-certificate -a -c "Zscaler" -p /Library/Keychains/System.keychain',{encoding:"utf8",stdio:["pipe","pipe","pipe"],timeout:5e3})}catch{return}if(!n||!n.includes("-----BEGIN CERTIFICATE-----")||!n.includes("-----END CERTIFICATE-----"))return;let i=yo.default.readFileSync(r,"utf8"),s=e+".tmp";return yo.default.writeFileSync(s,i+` +`+n),yo.default.renameSync(s,e),y.info("CHROMA_MCP","Created combined SSL certificate bundle for Zscaler",{path:e}),e}catch(r){y.debug("CHROMA_MCP","Could not create combined cert bundle",{},r);return}}getSpawnEnv(){let e={};for(let[n,i]of Object.entries(vi(process.env)))i!==void 0&&(e[n]=i);let r=this.getCombinedCertPath();return r?(y.info("CHROMA_MCP","Using combined SSL certificates for enterprise compatibility",{certPath:r}),{...e,SSL_CERT_FILE:r,REQUESTS_CA_BUNDLE:r,CURL_CA_BUNDLE:r,NODE_EXTRA_CA_CERTS:r}):e}registerManagedProcess(){let e=this.transport._process;e?.pid&&(gt().registerProcess(qf,{pid:e.pid,type:"chroma",startedAt:new Date().toISOString()},e),e.once("exit",()=>{gt().unregisterProcess(qf)}))}};Zf();oe();var Ja=class t{project;collectionName;collectionCreated=!1;BATCH_SIZE=100;constructor(e){this.project=e;let r=e.replace(/[^a-zA-Z0-9._-]/g,"_").replace(/[^a-zA-Z0-9]+$/,"");this.collectionName=`cm__${r||"unknown"}`}async ensureCollectionExists(){if(this.collectionCreated)return;let e=Xi.getInstance();try{await e.callTool("chroma_create_collection",{collection_name:this.collectionName})}catch(r){if(!(r instanceof Error?r.message:String(r)).includes("already exists"))throw r}this.collectionCreated=!0,y.debug("CHROMA_SYNC","Collection ready",{collection:this.collectionName})}formatObservationDocs(e){let r=[],n=e.facts?JSON.parse(e.facts):[],i=e.concepts?JSON.parse(e.concepts):[],s=e.files_read?JSON.parse(e.files_read):[],o=e.files_modified?JSON.parse(e.files_modified):[],a={sqlite_id:e.id,doc_type:"observation",memory_session_id:e.memory_session_id,project:e.project,created_at_epoch:e.created_at_epoch,type:e.type||"discovery",title:e.title||"Untitled"};return e.subtitle&&(a.subtitle=e.subtitle),i.length>0&&(a.concepts=i.join(",")),s.length>0&&(a.files_read=s.join(",")),o.length>0&&(a.files_modified=o.join(",")),e.narrative&&r.push({id:`obs_${e.id}_narrative`,document:e.narrative,metadata:{...a,field_type:"narrative"}}),e.text&&r.push({id:`obs_${e.id}_text`,document:e.text,metadata:{...a,field_type:"text"}}),n.forEach((c,u)=>{r.push({id:`obs_${e.id}_fact_${u}`,document:c,metadata:{...a,field_type:"fact",fact_index:u}})}),r}formatSummaryDocs(e){let r=[],n={sqlite_id:e.id,doc_type:"session_summary",memory_session_id:e.memory_session_id,project:e.project,created_at_epoch:e.created_at_epoch,prompt_number:e.prompt_number||0};return e.request&&r.push({id:`summary_${e.id}_request`,document:e.request,metadata:{...n,field_type:"request"}}),e.investigated&&r.push({id:`summary_${e.id}_investigated`,document:e.investigated,metadata:{...n,field_type:"investigated"}}),e.learned&&r.push({id:`summary_${e.id}_learned`,document:e.learned,metadata:{...n,field_type:"learned"}}),e.completed&&r.push({id:`summary_${e.id}_completed`,document:e.completed,metadata:{...n,field_type:"completed"}}),e.next_steps&&r.push({id:`summary_${e.id}_next_steps`,document:e.next_steps,metadata:{...n,field_type:"next_steps"}}),e.notes&&r.push({id:`summary_${e.id}_notes`,document:e.notes,metadata:{...n,field_type:"notes"}}),r}async addDocuments(e){if(e.length===0)return;await this.ensureCollectionExists();let r=Xi.getInstance();for(let n=0;nObject.fromEntries(Object.entries(o.metadata).filter(([a,c])=>c!=null&&c!=="")));try{await r.callTool("chroma_add_documents",{collection_name:this.collectionName,ids:i.map(o=>o.id),documents:i.map(o=>o.document),metadatas:s})}catch(o){y.error("CHROMA_SYNC","Batch add failed, continuing with remaining batches",{collection:this.collectionName,batchStart:n,batchSize:i.length},o)}}y.debug("CHROMA_SYNC","Documents added",{collection:this.collectionName,count:e.length})}async syncObservation(e,r,n,i,s,o,a=0){let c={id:e,memory_session_id:r,project:n,text:null,type:i.type,title:i.title,subtitle:i.subtitle,facts:JSON.stringify(i.facts),narrative:i.narrative,concepts:JSON.stringify(i.concepts),files_read:JSON.stringify(i.files_read),files_modified:JSON.stringify(i.files_modified),prompt_number:s,discovery_tokens:a,created_at:new Date(o*1e3).toISOString(),created_at_epoch:o},u=this.formatObservationDocs(c);y.info("CHROMA_SYNC","Syncing observation",{observationId:e,documentCount:u.length,project:n}),await this.addDocuments(u)}async syncSummary(e,r,n,i,s,o,a=0){let c={id:e,memory_session_id:r,project:n,request:i.request,investigated:i.investigated,learned:i.learned,completed:i.completed,next_steps:i.next_steps,notes:i.notes,prompt_number:s,discovery_tokens:a,created_at:new Date(o*1e3).toISOString(),created_at_epoch:o},u=this.formatSummaryDocs(c);y.info("CHROMA_SYNC","Syncing summary",{summaryId:e,documentCount:u.length,project:n}),await this.addDocuments(u)}formatUserPromptDoc(e){return{id:`prompt_${e.id}`,document:e.prompt_text,metadata:{sqlite_id:e.id,doc_type:"user_prompt",memory_session_id:e.memory_session_id,project:e.project,created_at_epoch:e.created_at_epoch,prompt_number:e.prompt_number}}}async syncUserPrompt(e,r,n,i,s,o){let a={id:e,content_session_id:"",prompt_number:s,prompt_text:i,created_at:new Date(o*1e3).toISOString(),created_at_epoch:o,memory_session_id:r,project:n},c=this.formatUserPromptDoc(a);y.info("CHROMA_SYNC","Syncing user prompt",{promptId:e,project:n}),await this.addDocuments([c])}async getExistingChromaIds(e){let r=e??this.project;await this.ensureCollectionExists();let n=Xi.getInstance(),i=new Set,s=new Set,o=new Set,a=0,c=1e3;for(y.info("CHROMA_SYNC","Fetching existing Chroma document IDs...",{project:r});;){let l=(await n.callTool("chroma_get_documents",{collection_name:this.collectionName,limit:c,offset:a,where:{project:r},include:["metadatas"]}))?.metadatas||[];if(l.length===0)break;for(let d of l)if(d&&d.sqlite_id){let p=d.sqlite_id;d.doc_type==="observation"?i.add(p):d.doc_type==="session_summary"?s.add(p):d.doc_type==="user_prompt"&&o.add(p)}a+=c,y.debug("CHROMA_SYNC","Fetched batch of existing IDs",{project:r,offset:a,batchSize:l.length})}return y.info("CHROMA_SYNC","Existing IDs fetched",{project:r,observations:i.size,summaries:s.size,prompts:o.size}),{observations:i,summaries:s,prompts:o}}async ensureBackfilled(e){let r=e??this.project;y.info("CHROMA_SYNC","Starting smart backfill",{project:r}),await this.ensureCollectionExists();let n=await this.getExistingChromaIds(r),i=new Yi;try{let s=Array.from(n.observations).filter(_=>Number.isInteger(_)&&_>0),o=s.length>0?`AND id NOT IN (${s.join(",")})`:"",a=i.db.prepare(` SELECT * FROM observations - WHERE project = ? ${obsExclusionClause} + WHERE project = ? ${o} ORDER BY id ASC - `).all(backfillProject); - const totalObsCount = db.db.prepare(` + `).all(r),c=i.db.prepare(` SELECT COUNT(*) as count FROM observations WHERE project = ? - `).get(backfillProject); - logger.info("CHROMA_SYNC", "Backfilling observations", { - project: backfillProject, - missing: observations.length, - existing: existing.observations.size, - total: totalObsCount.count - }); - const allDocs = []; - for (const obs of observations) { - allDocs.push(...this.formatObservationDocs(obs)); - } - for (let i = 0;i < allDocs.length; i += this.BATCH_SIZE) { - const batch = allDocs.slice(i, i + this.BATCH_SIZE); - await this.addDocuments(batch); - logger.debug("CHROMA_SYNC", "Backfill progress", { - project: backfillProject, - progress: `${Math.min(i + this.BATCH_SIZE, allDocs.length)}/${allDocs.length}` - }); - } - const existingSummaryIds = Array.from(existing.summaries).filter((id) => Number.isInteger(id) && id > 0); - const summaryExclusionClause = existingSummaryIds.length > 0 ? `AND id NOT IN (${existingSummaryIds.join(",")})` : ""; - const summaries = db.db.prepare(` + `).get(r);y.info("CHROMA_SYNC","Backfilling observations",{project:r,missing:a.length,existing:n.observations.size,total:c.count});let u=[];for(let _ of a)u.push(...this.formatObservationDocs(_));for(let _=0;_Number.isInteger(_)&&_>0),d=l.length>0?`AND id NOT IN (${l.join(",")})`:"",p=i.db.prepare(` SELECT * FROM session_summaries - WHERE project = ? ${summaryExclusionClause} + WHERE project = ? ${d} ORDER BY id ASC - `).all(backfillProject); - const totalSummaryCount = db.db.prepare(` + `).all(r),m=i.db.prepare(` SELECT COUNT(*) as count FROM session_summaries WHERE project = ? - `).get(backfillProject); - logger.info("CHROMA_SYNC", "Backfilling summaries", { - project: backfillProject, - missing: summaries.length, - existing: existing.summaries.size, - total: totalSummaryCount.count - }); - const summaryDocs = []; - for (const summary of summaries) { - summaryDocs.push(...this.formatSummaryDocs(summary)); - } - for (let i = 0;i < summaryDocs.length; i += this.BATCH_SIZE) { - const batch = summaryDocs.slice(i, i + this.BATCH_SIZE); - await this.addDocuments(batch); - logger.debug("CHROMA_SYNC", "Backfill progress", { - project: backfillProject, - progress: `${Math.min(i + this.BATCH_SIZE, summaryDocs.length)}/${summaryDocs.length}` - }); - } - const existingPromptIds = Array.from(existing.prompts).filter((id) => Number.isInteger(id) && id > 0); - const promptExclusionClause = existingPromptIds.length > 0 ? `AND up.id NOT IN (${existingPromptIds.join(",")})` : ""; - const prompts = db.db.prepare(` + `).get(r);y.info("CHROMA_SYNC","Backfilling summaries",{project:r,missing:p.length,existing:n.summaries.size,total:m.count});let f=[];for(let _ of p)f.push(...this.formatSummaryDocs(_));for(let _=0;_Number.isInteger(_)&&_>0),h=g.length>0?`AND up.id NOT IN (${g.join(",")})`:"",v=i.db.prepare(` SELECT up.*, s.project, s.memory_session_id FROM user_prompts up JOIN sdk_sessions s ON up.content_session_id = s.content_session_id - WHERE s.project = ? ${promptExclusionClause} + WHERE s.project = ? ${h} ORDER BY up.id ASC - `).all(backfillProject); - const totalPromptCount = db.db.prepare(` + `).all(r),x=i.db.prepare(` SELECT COUNT(*) as count FROM user_prompts up JOIN sdk_sessions s ON up.content_session_id = s.content_session_id WHERE s.project = ? - `).get(backfillProject); - logger.info("CHROMA_SYNC", "Backfilling user prompts", { - project: backfillProject, - missing: prompts.length, - existing: existing.prompts.size, - total: totalPromptCount.count - }); - const promptDocs = []; - for (const prompt of prompts) { - promptDocs.push(this.formatUserPromptDoc(prompt)); - } - for (let i = 0;i < promptDocs.length; i += this.BATCH_SIZE) { - const batch = promptDocs.slice(i, i + this.BATCH_SIZE); - await this.addDocuments(batch); - logger.debug("CHROMA_SYNC", "Backfill progress", { - project: backfillProject, - progress: `${Math.min(i + this.BATCH_SIZE, promptDocs.length)}/${promptDocs.length}` - }); - } - logger.info("CHROMA_SYNC", "Smart backfill complete", { - project: backfillProject, - synced: { - observationDocs: allDocs.length, - summaryDocs: summaryDocs.length, - promptDocs: promptDocs.length - }, - skipped: { - observations: existing.observations.size, - summaries: existing.summaries.size, - prompts: existing.prompts.size - } - }); - } catch (error2) { - logger.error("CHROMA_SYNC", "Backfill failed", { project: backfillProject }, error2); - throw new Error(`Backfill failed: ${error2 instanceof Error ? error2.message : String(error2)}`); - } finally { - db.close(); - } - } - async queryChroma(query, limit, whereFilter) { - await this.ensureCollectionExists(); - try { - const chromaMcp = ChromaMcpManager.getInstance(); - const results = await chromaMcp.callTool("chroma_query_documents", { - collection_name: this.collectionName, - query_texts: [query], - n_results: limit, - ...whereFilter && { where: whereFilter }, - include: ["documents", "metadatas", "distances"] - }); - const ids = []; - const seen = new Set; - const docIds = results?.ids?.[0] || []; - const rawMetadatas = results?.metadatas?.[0] || []; - const rawDistances = results?.distances?.[0] || []; - const metadatas = []; - const distances = []; - for (let i = 0;i < docIds.length; i++) { - const docId = docIds[i]; - const obsMatch = docId.match(/obs_(\d+)_/); - const summaryMatch = docId.match(/summary_(\d+)_/); - const promptMatch = docId.match(/prompt_(\d+)/); - let sqliteId = null; - if (obsMatch) { - sqliteId = parseInt(obsMatch[1], 10); - } else if (summaryMatch) { - sqliteId = parseInt(summaryMatch[1], 10); - } else if (promptMatch) { - sqliteId = parseInt(promptMatch[1], 10); - } - if (sqliteId !== null && !seen.has(sqliteId)) { - seen.add(sqliteId); - ids.push(sqliteId); - metadatas.push(rawMetadatas[i] ?? null); - distances.push(rawDistances[i] ?? 0); - } - } - return { ids, distances, metadatas }; - } catch (error2) { - const errorMessage = error2 instanceof Error ? error2.message : String(error2); - const isConnectionError = errorMessage.includes("ECONNREFUSED") || errorMessage.includes("ENOTFOUND") || errorMessage.includes("fetch failed") || errorMessage.includes("subprocess closed") || errorMessage.includes("timed out"); - if (isConnectionError) { - this.collectionCreated = false; - logger.error("CHROMA_SYNC", "Connection lost during query", { project: this.project, query }, error2); - throw new Error(`Chroma query failed - connection lost: ${errorMessage}`); - } - logger.error("CHROMA_SYNC", "Query failed", { project: this.project, query }, error2); - throw error2; - } - } - static async backfillAllProjects() { - const db = new SessionStore; - const sync = new ChromaSync("claude-mem"); - try { - const projects = db.db.prepare("SELECT DISTINCT project FROM observations WHERE project IS NOT NULL AND project != ?").all(""); - logger.info("CHROMA_SYNC", `Backfill check for ${projects.length} projects`); - for (const { project } of projects) { - try { - await sync.ensureBackfilled(project); - } catch (error2) { - logger.error("CHROMA_SYNC", `Backfill failed for project: ${project}`, {}, error2); - } - } - } finally { - await sync.close(); - db.close(); - } - } - async close() { - logger.info("CHROMA_SYNC", "ChromaSync closed", { project: this.project }); - } -} - -// src/shared/plugin-state.ts -import { existsSync as existsSync7, readFileSync as readFileSync7 } from "fs"; -import { join as join5 } from "path"; -import { homedir as homedir8 } from "os"; -var PLUGIN_SETTINGS_KEY = "claude-mem@thedotmack"; -function isPluginDisabledInClaudeSettings() { - try { - const claudeConfigDir = process.env.CLAUDE_CONFIG_DIR || join5(homedir8(), ".claude"); - const settingsPath = join5(claudeConfigDir, "settings.json"); - if (!existsSync7(settingsPath)) - return false; - const raw = readFileSync7(settingsPath, "utf-8"); - const settings = JSON.parse(raw); - return settings?.enabledPlugins?.[PLUGIN_SETTINGS_KEY] === false; - } catch { - return false; - } -} -// src/services/infrastructure/ProcessManager.ts -init_logger(); -init_hook_constants(); -import path6 from "path"; -import { homedir as homedir9 } from "os"; -import { existsSync as existsSync8, writeFileSync as writeFileSync4, readFileSync as readFileSync8, unlinkSync, mkdirSync as mkdirSync6, rmSync as rmSync3, statSync, utimesSync } from "fs"; -import { exec, execSync as execSync3, spawn as spawn2 } from "child_process"; -import { promisify as promisify2 } from "util"; -var execAsync = promisify2(exec); -var DATA_DIR6 = path6.join(homedir9(), ".claude-mem"); -var PID_FILE3 = path6.join(DATA_DIR6, "worker.pid"); -var ORPHAN_MAX_AGE_MINUTES = 30; -function isBunExecutablePath(executablePath) { - if (!executablePath) - return false; - return /(^|[\\/])bun(\.exe)?$/i.test(executablePath.trim()); -} -function lookupBinaryInPath(binaryName, platform) { - const command = platform === "win32" ? `where ${binaryName}` : `which ${binaryName}`; - try { - const output = execSync3(command, { - stdio: ["ignore", "pipe", "ignore"], - encoding: "utf-8", - windowsHide: true - }); - const firstMatch = output.split(/\r?\n/).map((line) => line.trim()).find((line) => line.length > 0); - return firstMatch || null; - } catch { - return null; - } -} -function resolveWorkerRuntimePath(options = {}) { - const platform = options.platform ?? process.platform; - const execPath = options.execPath ?? process.execPath; - if (platform !== "win32") { - return execPath; - } - if (isBunExecutablePath(execPath)) { - return execPath; - } - const env = options.env ?? process.env; - const homeDirectory = options.homeDirectory ?? homedir9(); - const pathExists = options.pathExists ?? existsSync8; - const lookupInPath = options.lookupInPath ?? lookupBinaryInPath; - const candidatePaths = [ - env.BUN, - env.BUN_PATH, - path6.join(homeDirectory, ".bun", "bin", "bun.exe"), - path6.join(homeDirectory, ".bun", "bin", "bun"), - env.USERPROFILE ? path6.join(env.USERPROFILE, ".bun", "bin", "bun.exe") : undefined, - env.LOCALAPPDATA ? path6.join(env.LOCALAPPDATA, "bun", "bun.exe") : undefined, - env.LOCALAPPDATA ? path6.join(env.LOCALAPPDATA, "bun", "bin", "bun.exe") : undefined - ]; - for (const candidate of candidatePaths) { - const normalized = candidate?.trim(); - if (!normalized) - continue; - if (isBunExecutablePath(normalized) && pathExists(normalized)) { - return normalized; - } - if (normalized.toLowerCase() === "bun") { - return normalized; - } - } - return lookupInPath("bun", platform); -} -function writePidFile(info) { - mkdirSync6(DATA_DIR6, { recursive: true }); - writeFileSync4(PID_FILE3, JSON.stringify(info, null, 2)); -} -function readPidFile() { - if (!existsSync8(PID_FILE3)) - return null; - try { - return JSON.parse(readFileSync8(PID_FILE3, "utf-8")); - } catch (error2) { - logger.warn("SYSTEM", "Failed to parse PID file", { path: PID_FILE3 }, error2); - return null; - } -} -function removePidFile() { - if (!existsSync8(PID_FILE3)) - return; - try { - unlinkSync(PID_FILE3); - } catch (error2) { - logger.warn("SYSTEM", "Failed to remove PID file", { path: PID_FILE3 }, error2); - } -} -function getPlatformTimeout(baseMs) { - const WINDOWS_MULTIPLIER = 2; - return process.platform === "win32" ? Math.round(baseMs * WINDOWS_MULTIPLIER) : baseMs; -} -function parseElapsedTime(etime) { - if (!etime || etime.trim() === "") - return -1; - const cleaned = etime.trim(); - let totalMinutes = 0; - const dayMatch = cleaned.match(/^(\d+)-(\d+):(\d+):(\d+)$/); - if (dayMatch) { - totalMinutes = parseInt(dayMatch[1], 10) * 24 * 60 + parseInt(dayMatch[2], 10) * 60 + parseInt(dayMatch[3], 10); - return totalMinutes; - } - const hourMatch = cleaned.match(/^(\d+):(\d+):(\d+)$/); - if (hourMatch) { - totalMinutes = parseInt(hourMatch[1], 10) * 60 + parseInt(hourMatch[2], 10); - return totalMinutes; - } - const minMatch = cleaned.match(/^(\d+):(\d+)$/); - if (minMatch) { - return parseInt(minMatch[1], 10); - } - return -1; -} -var AGGRESSIVE_CLEANUP_PATTERNS = ["worker-service.cjs", "chroma-mcp"]; -var AGE_GATED_CLEANUP_PATTERNS = ["mcp-server.cjs"]; -async function aggressiveStartupCleanup() { - const isWindows = process.platform === "win32"; - const currentPid = process.pid; - const pidsToKill = []; - const allPatterns = [...AGGRESSIVE_CLEANUP_PATTERNS, ...AGE_GATED_CLEANUP_PATTERNS]; - try { - if (isWindows) { - const wqlPatternConditions = allPatterns.map((p) => `CommandLine LIKE '%${p}%'`).join(" OR "); - const cmd = `powershell -NoProfile -NonInteractive -Command "Get-CimInstance Win32_Process -Filter '(${wqlPatternConditions}) AND ProcessId != ${currentPid}' | Select-Object ProcessId, CommandLine, CreationDate | ConvertTo-Json"`; - const { stdout } = await execAsync(cmd, { timeout: HOOK_TIMEOUTS.POWERSHELL_COMMAND, windowsHide: true }); - if (!stdout.trim() || stdout.trim() === "null") { - logger.debug("SYSTEM", "No orphaned claude-mem processes found (Windows)"); - return; - } - const processes = JSON.parse(stdout); - const processList = Array.isArray(processes) ? processes : [processes]; - const now = Date.now(); - for (const proc of processList) { - const pid = proc.ProcessId; - if (!Number.isInteger(pid) || pid <= 0 || pid === currentPid) - continue; - const commandLine = proc.CommandLine || ""; - const isAggressive = AGGRESSIVE_CLEANUP_PATTERNS.some((p) => commandLine.includes(p)); - if (isAggressive) { - pidsToKill.push(pid); - logger.debug("SYSTEM", "Found orphaned process (aggressive)", { pid, commandLine: commandLine.substring(0, 80) }); - } else { - const creationMatch = proc.CreationDate?.match(/\/Date\((\d+)\)\//); - if (creationMatch) { - const creationTime = parseInt(creationMatch[1], 10); - const ageMinutes = (now - creationTime) / (1000 * 60); - if (ageMinutes >= ORPHAN_MAX_AGE_MINUTES) { - pidsToKill.push(pid); - logger.debug("SYSTEM", "Found orphaned process (age-gated)", { pid, ageMinutes: Math.round(ageMinutes) }); - } - } - } - } - } else { - const patternRegex = allPatterns.join("|"); - const { stdout } = await execAsync(`ps -eo pid,etime,command | grep -E "${patternRegex}" | grep -v grep || true`); - if (!stdout.trim()) { - logger.debug("SYSTEM", "No orphaned claude-mem processes found (Unix)"); - return; - } - const lines = stdout.trim().split(` -`); - for (const line of lines) { - const match = line.trim().match(/^(\d+)\s+(\S+)\s+(.*)$/); - if (!match) - continue; - const pid = parseInt(match[1], 10); - const etime = match[2]; - const command = match[3]; - if (!Number.isInteger(pid) || pid <= 0 || pid === currentPid) - continue; - const isAggressive = AGGRESSIVE_CLEANUP_PATTERNS.some((p) => command.includes(p)); - if (isAggressive) { - pidsToKill.push(pid); - logger.debug("SYSTEM", "Found orphaned process (aggressive)", { pid, command: command.substring(0, 80) }); - } else { - const ageMinutes = parseElapsedTime(etime); - if (ageMinutes >= ORPHAN_MAX_AGE_MINUTES) { - pidsToKill.push(pid); - logger.debug("SYSTEM", "Found orphaned process (age-gated)", { pid, ageMinutes, command: command.substring(0, 80) }); - } - } - } - } - } catch (error2) { - logger.error("SYSTEM", "Failed to enumerate orphaned processes during aggressive cleanup", {}, error2); - return; - } - if (pidsToKill.length === 0) { - return; - } - logger.info("SYSTEM", "Aggressive startup cleanup: killing orphaned processes", { - platform: isWindows ? "Windows" : "Unix", - count: pidsToKill.length, - pids: pidsToKill - }); - if (isWindows) { - for (const pid of pidsToKill) { - if (!Number.isInteger(pid) || pid <= 0) - continue; - try { - execSync3(`taskkill /PID ${pid} /T /F`, { timeout: HOOK_TIMEOUTS.POWERSHELL_COMMAND, stdio: "ignore", windowsHide: true }); - } catch (error2) { - logger.debug("SYSTEM", "Failed to kill process, may have already exited", { pid }, error2); - } - } - } else { - for (const pid of pidsToKill) { - try { - process.kill(pid, "SIGKILL"); - } catch (error2) { - logger.debug("SYSTEM", "Process already exited", { pid }, error2); - } - } - } - logger.info("SYSTEM", "Aggressive startup cleanup complete", { count: pidsToKill.length }); -} -var CHROMA_MIGRATION_MARKER_FILENAME = ".chroma-cleaned-v10.3"; -function runOneTimeChromaMigration(dataDirectory) { - const effectiveDataDir = dataDirectory ?? DATA_DIR6; - const markerPath = path6.join(effectiveDataDir, CHROMA_MIGRATION_MARKER_FILENAME); - const chromaDir = path6.join(effectiveDataDir, "chroma"); - if (existsSync8(markerPath)) { - logger.debug("SYSTEM", "Chroma migration marker exists, skipping wipe"); - return; - } - logger.warn("SYSTEM", "Running one-time chroma data wipe (upgrade from pre-v10.3)", { chromaDir }); - if (existsSync8(chromaDir)) { - rmSync3(chromaDir, { recursive: true, force: true }); - logger.info("SYSTEM", "Chroma data directory removed", { chromaDir }); - } - mkdirSync6(effectiveDataDir, { recursive: true }); - writeFileSync4(markerPath, new Date().toISOString()); - logger.info("SYSTEM", "Chroma migration marker written", { markerPath }); -} -function spawnDaemon(scriptPath, port, extraEnv = {}) { - const isWindows = process.platform === "win32"; - getSupervisor().assertCanSpawn("worker daemon"); - const env = sanitizeEnv({ - ...process.env, - CLAUDE_MEM_WORKER_PORT: String(port), - ...extraEnv - }); - if (isWindows) { - const runtimePath = resolveWorkerRuntimePath(); - if (!runtimePath) { - logger.error("SYSTEM", "Failed to locate Bun runtime for Windows worker spawn"); - return; - } - const escapedRuntimePath = runtimePath.replace(/'/g, "''"); - const escapedScriptPath = scriptPath.replace(/'/g, "''"); - const psCommand = `Start-Process -FilePath '${escapedRuntimePath}' -ArgumentList '${escapedScriptPath}','--daemon' -WindowStyle Hidden`; - try { - execSync3(`powershell -NoProfile -Command "${psCommand}"`, { - stdio: "ignore", - windowsHide: true, - env - }); - return 0; - } catch (error2) { - logger.error("SYSTEM", "Failed to spawn worker daemon on Windows", { runtimePath }, error2); - return; - } - } - const setsidPath = "/usr/bin/setsid"; - if (existsSync8(setsidPath)) { - const child2 = spawn2(setsidPath, [process.execPath, scriptPath, "--daemon"], { - detached: true, - stdio: "ignore", - env - }); - if (child2.pid === undefined) { - return; - } - child2.unref(); - return child2.pid; - } - const child = spawn2(process.execPath, [scriptPath, "--daemon"], { - detached: true, - stdio: "ignore", - env - }); - if (child.pid === undefined) { - return; - } - child.unref(); - return child.pid; -} -function isProcessAlive(pid) { - if (pid === 0) - return true; - if (!Number.isInteger(pid) || pid < 0) - return false; - try { - process.kill(pid, 0); - return true; - } catch (error2) { - const code = error2.code; - if (code === "EPERM") - return true; - return false; - } -} -function isPidFileRecent(thresholdMs = 15000) { - try { - const stats = statSync(PID_FILE3); - return Date.now() - stats.mtimeMs < thresholdMs; - } catch { - return false; - } -} -function touchPidFile() { - try { - if (!existsSync8(PID_FILE3)) - return; - const now = new Date; - utimesSync(PID_FILE3, now, now); - } catch {} -} -function cleanStalePidFile() { - return validateWorkerPidFile({ logAlive: false }); -} - -// src/services/infrastructure/HealthMonitor.ts -init_logger(); -init_paths(); -import path7 from "path"; -import { readFileSync as readFileSync9 } from "fs"; -async function httpRequestToWorker(port, endpointPath, method = "GET") { - const response = await fetch(`http://127.0.0.1:${port}${endpointPath}`, { method }); - let body = ""; - try { - body = await response.text(); - } catch {} - return { ok: response.ok, statusCode: response.status, body }; -} -async function isPortInUse(port) { - try { - const response = await fetch(`http://127.0.0.1:${port}/api/health`); - return response.ok; - } catch (error2) { - return false; - } -} -async function pollEndpointUntilOk(port, endpointPath, timeoutMs, retryLogMessage) { - const start = Date.now(); - while (Date.now() - start < timeoutMs) { - try { - const result = await httpRequestToWorker(port, endpointPath); - if (result.ok) - return true; - } catch (error2) { - logger.debug("SYSTEM", retryLogMessage, {}, error2); - } - await new Promise((r) => setTimeout(r, 500)); - } - return false; -} -function waitForHealth(port, timeoutMs = 30000) { - return pollEndpointUntilOk(port, "/api/health", timeoutMs, "Service not ready yet, will retry"); -} -function waitForReadiness(port, timeoutMs = 30000) { - return pollEndpointUntilOk(port, "/api/readiness", timeoutMs, "Worker not ready yet, will retry"); -} -async function waitForPortFree(port, timeoutMs = 1e4) { - const start = Date.now(); - while (Date.now() - start < timeoutMs) { - if (!await isPortInUse(port)) - return true; - await new Promise((r) => setTimeout(r, 500)); - } - return false; -} -async function httpShutdown(port) { - try { - const result = await httpRequestToWorker(port, "/api/admin/shutdown", "POST"); - if (!result.ok) { - logger.warn("SYSTEM", "Shutdown request returned error", { status: result.statusCode }); - return false; - } - return true; - } catch (error2) { - if (error2 instanceof Error && error2.message?.includes("ECONNREFUSED")) { - logger.debug("SYSTEM", "Worker already stopped", {}, error2); - return false; - } - logger.error("SYSTEM", "Shutdown request failed unexpectedly", {}, error2); - return false; - } -} -function getInstalledPluginVersion() { - try { - const packageJsonPath = path7.join(MARKETPLACE_ROOT, "package.json"); - const packageJson = JSON.parse(readFileSync9(packageJsonPath, "utf-8")); - return packageJson.version; - } catch (error2) { - const code = error2.code; - if (code === "ENOENT" || code === "EBUSY") { - logger.debug("SYSTEM", "Could not read plugin version (shutdown race)", { code }); - return "unknown"; - } - throw error2; - } -} -async function getRunningWorkerVersion(port) { - try { - const result = await httpRequestToWorker(port, "/api/version"); - if (!result.ok) - return null; - const data = JSON.parse(result.body); - return data.version; - } catch { - logger.debug("SYSTEM", "Could not fetch worker version", {}); - return null; - } -} -async function checkVersionMatch(port) { - const pluginVersion = getInstalledPluginVersion(); - const workerVersion = await getRunningWorkerVersion(port); - if (!workerVersion || pluginVersion === "unknown") { - return { matches: true, pluginVersion, workerVersion }; - } - return { matches: pluginVersion === workerVersion, pluginVersion, workerVersion }; -} - -// src/services/infrastructure/GracefulShutdown.ts -init_logger(); -async function performGracefulShutdown(config2) { - logger.info("SYSTEM", "Shutdown initiated"); - if (config2.server) { - await closeHttpServer(config2.server); - logger.info("SYSTEM", "HTTP server closed"); - } - await config2.sessionManager.shutdownAll(); - if (config2.mcpClient) { - await config2.mcpClient.close(); - logger.info("SYSTEM", "MCP client closed"); - } - if (config2.chromaMcpManager) { - logger.info("SHUTDOWN", "Stopping Chroma MCP connection..."); - await config2.chromaMcpManager.stop(); - logger.info("SHUTDOWN", "Chroma MCP connection stopped"); - } - if (config2.dbManager) { - await config2.dbManager.close(); - } - await stopSupervisor(); - logger.info("SYSTEM", "Worker shutdown complete"); -} -async function closeHttpServer(server) { - server.closeAllConnections(); - if (process.platform === "win32") { - await new Promise((r) => setTimeout(r, 500)); - } - await new Promise((resolve, reject) => { - server.close((err) => err ? reject(err) : resolve()); - }); - if (process.platform === "win32") { - await new Promise((r) => setTimeout(r, 500)); - logger.info("SYSTEM", "Waited for Windows port cleanup"); - } -} - -// src/services/server/Server.ts -var import_express2 = __toESM(require_express(), 1); -import * as fs2 from "fs"; -import path9 from "path"; - -// src/services/server/allowed-constants.ts -var ALLOWED_OPERATIONS = [ - "search", - "context", - "summarize", - "import", - "export" -]; -var ALLOWED_TOPICS = [ - "workflow", - "search_params", - "examples", - "all" -]; - -// src/services/server/Server.ts -init_logger(); - -// src/services/worker/http/middleware.ts -init_paths(); -init_logger(); -var import_express = __toESM(require_express(), 1); -var import_cors = __toESM(require_lib3(), 1); -import path8 from "path"; -function createMiddleware(summarizeRequestBody) { - const middlewares = []; - middlewares.push(import_express.default.json({ limit: "50mb" })); - middlewares.push(import_cors.default({ - origin: (origin, callback) => { - if (!origin || origin.startsWith("http://localhost:") || origin.startsWith("http://127.0.0.1:")) { - callback(null, true); - } else { - callback(new Error("CORS not allowed")); - } - }, - methods: ["GET", "HEAD", "POST", "PUT", "PATCH", "DELETE"], - allowedHeaders: ["Content-Type", "Authorization", "X-Requested-With"], - credentials: false - })); - middlewares.push((req, res, next) => { - const staticExtensions = [".html", ".js", ".css", ".svg", ".png", ".jpg", ".jpeg", ".webp", ".woff", ".woff2", ".ttf", ".eot"]; - const isStaticAsset = staticExtensions.some((ext) => req.path.endsWith(ext)); - const isPollingEndpoint = req.path === "/api/logs"; - if (req.path.startsWith("/health") || req.path === "/" || isStaticAsset || isPollingEndpoint) { - return next(); - } - const start = Date.now(); - const requestId = `${req.method}-${Date.now()}`; - const bodySummary = summarizeRequestBody(req.method, req.path, req.body); - logger.debug("HTTP", `→ ${req.method} ${req.path}`, { requestId }, bodySummary); - const originalSend = res.send.bind(res); - res.send = function(body) { - const duration3 = Date.now() - start; - logger.debug("HTTP", `← ${res.statusCode} ${req.path}`, { requestId, duration: `${duration3}ms` }); - return originalSend(body); - }; - next(); - }); - const packageRoot = getPackageRoot(); - const uiDir = path8.join(packageRoot, "plugin", "ui"); - middlewares.push(import_express.default.static(uiDir)); - return middlewares; -} -function requireLocalhost(req, res, next) { - const clientIp = req.ip || req.connection.remoteAddress || ""; - const isLocalhost = clientIp === "127.0.0.1" || clientIp === "::1" || clientIp === "::ffff:127.0.0.1" || clientIp === "localhost"; - if (!isLocalhost) { - logger.warn("SECURITY", "Admin endpoint access denied - not localhost", { - endpoint: req.path, - clientIp, - method: req.method - }); - res.status(403).json({ - error: "Forbidden", - message: "Admin endpoints are only accessible from localhost" - }); - return; - } - next(); -} -function summarizeRequestBody(method, path9, body) { - if (!body || Object.keys(body).length === 0) - return ""; - if (path9.includes("/init")) { - return ""; - } - if (path9.includes("/observations")) { - const toolName = body.tool_name || "?"; - const toolInput = body.tool_input; - const toolSummary = logger.formatTool(toolName, toolInput); - return `tool=${toolSummary}`; - } - if (path9.includes("/summarize")) { - return "requesting summary"; - } - return ""; -} -// src/services/server/ErrorHandler.ts -init_logger(); - -class AppError extends Error { - statusCode; - code; - details; - constructor(message, statusCode = 500, code, details) { - super(message); - this.statusCode = statusCode; - this.code = code; - this.details = details; - this.name = "AppError"; - } -} -function createErrorResponse(error2, message, code, details) { - const response = { error: error2, message }; - if (code) - response.code = code; - if (details) - response.details = details; - return response; -} -var errorHandler = (err, req, res, _next) => { - const statusCode = err instanceof AppError ? err.statusCode : 500; - logger.error("HTTP", `Error handling ${req.method} ${req.path}`, { - statusCode, - error: err.message, - code: err instanceof AppError ? err.code : undefined - }, err); - const response = createErrorResponse(err.name || "Error", err.message, err instanceof AppError ? err.code : undefined, err instanceof AppError ? err.details : undefined); - res.status(statusCode).json(response); -}; -function notFoundHandler(req, res) { - res.status(404).json(createErrorResponse("NotFound", `Cannot ${req.method} ${req.path}`)); -} - -// src/services/server/Server.ts -var __dirname = "/Users/alexnewman/conductor/workspaces/claude-mem/banjul/src/services/server"; -var BUILT_IN_VERSION = typeof __DEFAULT_PACKAGE_VERSION__ !== "undefined" ? __DEFAULT_PACKAGE_VERSION__ : "development"; - -class Server { - app; - server = null; - options; - startTime = Date.now(); - constructor(options) { - this.options = options; - this.app = import_express2.default(); - this.setupMiddleware(); - this.setupCoreRoutes(); - } - getHttpServer() { - return this.server; - } - async listen(port, host) { - return new Promise((resolve, reject) => { - this.server = this.app.listen(port, host, () => { - logger.info("SYSTEM", "HTTP server started", { host, port, pid: process.pid }); - resolve(); - }); - this.server.on("error", reject); - }); - } - async close() { - if (!this.server) - return; - this.server.closeAllConnections(); - if (process.platform === "win32") { - await new Promise((r) => setTimeout(r, 500)); - } - await new Promise((resolve, reject) => { - this.server.close((err) => err ? reject(err) : resolve()); - }); - if (process.platform === "win32") { - await new Promise((r) => setTimeout(r, 500)); - } - this.server = null; - logger.info("SYSTEM", "HTTP server closed"); - } - registerRoutes(handler) { - handler.setupRoutes(this.app); - } - finalizeRoutes() { - this.app.use(notFoundHandler); - this.app.use(errorHandler); - } - setupMiddleware() { - const middlewares = createMiddleware(summarizeRequestBody); - middlewares.forEach((mw) => this.app.use(mw)); - } - setupCoreRoutes() { - this.app.get("/api/health", (_req, res) => { - res.status(200).json({ - status: "ok", - version: BUILT_IN_VERSION, - workerPath: this.options.workerPath, - uptime: Date.now() - this.startTime, - managed: process.env.CLAUDE_MEM_MANAGED === "true", - hasIpc: typeof process.send === "function", - platform: process.platform, - pid: process.pid, - initialized: this.options.getInitializationComplete(), - mcpReady: this.options.getMcpReady(), - ai: this.options.getAiStatus() - }); - }); - this.app.get("/api/readiness", (_req, res) => { - if (this.options.getInitializationComplete()) { - res.status(200).json({ - status: "ready", - mcpReady: this.options.getMcpReady() - }); - } else { - res.status(503).json({ - status: "initializing", - message: "Worker is still initializing, please retry" - }); - } - }); - this.app.get("/api/version", (_req, res) => { - res.status(200).json({ version: BUILT_IN_VERSION }); - }); - this.app.get("/api/instructions", async (req, res) => { - const topic = req.query.topic || "all"; - const operation = req.query.operation; - if (topic && !ALLOWED_TOPICS.includes(topic)) { - return res.status(400).json({ error: "Invalid topic" }); - } - try { - let content; - if (operation) { - if (!ALLOWED_OPERATIONS.includes(operation)) { - return res.status(400).json({ error: "Invalid operation" }); - } - const OPERATIONS_BASE_DIR = path9.resolve(__dirname, "../skills/mem-search/operations"); - const operationPath = path9.resolve(OPERATIONS_BASE_DIR, `${operation}.md`); - if (!operationPath.startsWith(OPERATIONS_BASE_DIR + path9.sep)) { - return res.status(400).json({ error: "Invalid request" }); - } - content = await fs2.promises.readFile(operationPath, "utf-8"); - } else { - const skillPath = path9.join(__dirname, "../skills/mem-search/SKILL.md"); - const fullContent = await fs2.promises.readFile(skillPath, "utf-8"); - content = this.extractInstructionSection(fullContent, topic); - } - res.json({ - content: [{ type: "text", text: content }] - }); - } catch (error2) { - res.status(404).json({ error: "Instruction not found" }); - } - }); - this.app.post("/api/admin/restart", requireLocalhost, async (_req, res) => { - res.json({ status: "restarting" }); - const isWindowsManaged = process.platform === "win32" && process.env.CLAUDE_MEM_MANAGED === "true" && process.send; - if (isWindowsManaged) { - logger.info("SYSTEM", "Sending restart request to wrapper"); - process.send({ type: "restart" }); - } else { - setTimeout(async () => { - try { - await this.options.onRestart(); - } finally { - process.exit(0); - } - }, 100); - } - }); - this.app.post("/api/admin/shutdown", requireLocalhost, async (_req, res) => { - res.json({ status: "shutting_down" }); - const isWindowsManaged = process.platform === "win32" && process.env.CLAUDE_MEM_MANAGED === "true" && process.send; - if (isWindowsManaged) { - logger.info("SYSTEM", "Sending shutdown request to wrapper"); - process.send({ type: "shutdown" }); - } else { - setTimeout(async () => { - try { - await this.options.onShutdown(); - } finally { - process.exit(0); - } - }, 100); - } - }); - this.app.get("/api/admin/doctor", requireLocalhost, (_req, res) => { - const supervisor = getSupervisor(); - const registry2 = supervisor.getRegistry(); - const allRecords = registry2.getAll(); - const processes = allRecords.map((record3) => ({ - id: record3.id, - pid: record3.pid, - type: record3.type, - status: isPidAlive(record3.pid) ? "alive" : "dead", - startedAt: record3.startedAt - })); - const deadProcessPids = processes.filter((p) => p.status === "dead").map((p) => p.pid); - const envClean = !Object.keys(process.env).some((key) => ENV_EXACT_MATCHES.has(key) || ENV_PREFIXES.some((prefix) => key.startsWith(prefix))); - const uptimeMs = Date.now() - this.startTime; - const uptimeSeconds = Math.floor(uptimeMs / 1000); - const hours = Math.floor(uptimeSeconds / 3600); - const minutes = Math.floor(uptimeSeconds % 3600 / 60); - const formattedUptime = hours > 0 ? `${hours}h ${minutes}m` : `${minutes}m`; - res.json({ - supervisor: { - running: true, - pid: process.pid, - uptime: formattedUptime - }, - processes, - health: { - deadProcessPids, - envClean - } - }); - }); - } - extractInstructionSection(content, topic) { - const sections = { - workflow: this.extractBetween(content, "## The Workflow", "## Search Parameters"), - search_params: this.extractBetween(content, "## Search Parameters", "## Examples"), - examples: this.extractBetween(content, "## Examples", "## Why This Workflow"), - all: content - }; - return sections[topic] || sections["all"]; - } - extractBetween(content, startMarker, endMarker) { - const startIdx = content.indexOf(startMarker); - const endIdx = content.indexOf(endMarker); - if (startIdx === -1) - return content; - if (endIdx === -1) - return content.substring(startIdx); - return content.substring(startIdx, endIdx).trim(); - } -} - -// src/services/integrations/CursorHooksInstaller.ts -init_logger(); -init_worker_utils(); -init_paths(); -import path10 from "path"; -import { homedir as homedir10 } from "os"; -import { existsSync as existsSync10, readFileSync as readFileSync11, writeFileSync as writeFileSync6, unlinkSync as unlinkSync2, mkdirSync as mkdirSync8 } from "fs"; -import { exec as exec2 } from "child_process"; -import { promisify as promisify3 } from "util"; - -// src/utils/cursor-utils.ts -init_logger(); -import { existsSync as existsSync9, readFileSync as readFileSync10, writeFileSync as writeFileSync5, mkdirSync as mkdirSync7, renameSync } from "fs"; -import { join as join6, basename as basename2 } from "path"; -function readCursorRegistry(registryFile) { - try { - if (!existsSync9(registryFile)) - return {}; - return JSON.parse(readFileSync10(registryFile, "utf-8")); - } catch (error2) { - logger.error("CONFIG", "Failed to read Cursor registry, using empty registry", { - file: registryFile, - error: error2 instanceof Error ? error2.message : String(error2) - }); - return {}; - } -} -function writeCursorRegistry(registryFile, registry2) { - const dir = join6(registryFile, ".."); - mkdirSync7(dir, { recursive: true }); - writeFileSync5(registryFile, JSON.stringify(registry2, null, 2)); -} -function writeContextFile(workspacePath, context) { - const rulesDir = join6(workspacePath, ".cursor", "rules"); - const rulesFile = join6(rulesDir, "claude-mem-context.mdc"); - const tempFile = `${rulesFile}.tmp`; - mkdirSync7(rulesDir, { recursive: true }); - const content = `--- + `).get(r);y.info("CHROMA_SYNC","Backfilling user prompts",{project:r,missing:v.length,existing:n.prompts.size,total:x.count});let b=[];for(let _ of v)b.push(this.formatUserPromptDoc(_));for(let _=0;_s.trim()).find(s=>s.length>0)||null}catch{return null}}function qK(t={}){let e=t.platform??process.platform,r=t.execPath??process.execPath;if(e!=="win32"||jA(r))return r;let n=t.env??process.env,i=t.homeDirectory??(0,J0.homedir)(),s=t.pathExists??Lt.existsSync,o=t.lookupInPath??UK,a=[n.BUN,n.BUN_PATH,yi.default.join(i,".bun","bin","bun.exe"),yi.default.join(i,".bun","bin","bun"),n.USERPROFILE?yi.default.join(n.USERPROFILE,".bun","bin","bun.exe"):void 0,n.LOCALAPPDATA?yi.default.join(n.LOCALAPPDATA,"bun","bun.exe"):void 0,n.LOCALAPPDATA?yi.default.join(n.LOCALAPPDATA,"bun","bin","bun.exe"):void 0];for(let c of a){let u=c?.trim();if(u&&(jA(u)&&s(u)||u.toLowerCase()==="bun"))return u}return o("bun",e)}function LA(t){(0,Lt.mkdirSync)(X0,{recursive:!0}),(0,Lt.writeFileSync)(_i,JSON.stringify(t,null,2))}function Y0(){if(!(0,Lt.existsSync)(_i))return null;try{return JSON.parse((0,Lt.readFileSync)(_i,"utf-8"))}catch(t){return y.warn("SYSTEM","Failed to parse PID file",{path:_i},t),null}}function _o(){if((0,Lt.existsSync)(_i))try{(0,Lt.unlinkSync)(_i)}catch(t){y.warn("SYSTEM","Failed to remove PID file",{path:_i},t)}}function es(t){return process.platform==="win32"?Math.round(t*2):t}function FK(t){if(!t||t.trim()==="")return-1;let e=t.trim(),r=0,n=e.match(/^(\d+)-(\d+):(\d+):(\d+)$/);if(n)return r=parseInt(n[1],10)*24*60+parseInt(n[2],10)*60+parseInt(n[3],10),r;let i=e.match(/^(\d+):(\d+):(\d+)$/);if(i)return r=parseInt(i[1],10)*60+parseInt(i[2],10),r;let s=e.match(/^(\d+):(\d+)$/);return s?parseInt(s[1],10):-1}var K0=["worker-service.cjs","chroma-mcp"],HK=["mcp-server.cjs"];async function UA(){let t=process.platform==="win32",e=process.pid,r=[],n=[...K0,...HK];try{if(t){let s=`powershell -NoProfile -NonInteractive -Command "Get-CimInstance Win32_Process -Filter '(${n.map(l=>`CommandLine LIKE '%${l}%'`).join(" OR ")}) AND ProcessId != ${e}' | Select-Object ProcessId, CommandLine, CreationDate | ConvertTo-Json"`,{stdout:o}=await MA(s,{timeout:_r.POWERSHELL_COMMAND,windowsHide:!0});if(!o.trim()||o.trim()==="null"){y.debug("SYSTEM","No orphaned claude-mem processes found (Windows)");return}let a=JSON.parse(o),c=Array.isArray(a)?a:[a],u=Date.now();for(let l of c){let d=l.ProcessId;if(!Number.isInteger(d)||d<=0||d===e)continue;let p=l.CommandLine||"";if(K0.some(f=>p.includes(f)))r.push(d),y.debug("SYSTEM","Found orphaned process (aggressive)",{pid:d,commandLine:p.substring(0,80)});else{let f=l.CreationDate?.match(/\/Date\((\d+)\)\//);if(f){let g=parseInt(f[1],10),h=(u-g)/(1e3*60);h>=DA&&(r.push(d),y.debug("SYSTEM","Found orphaned process (age-gated)",{pid:d,ageMinutes:Math.round(h)}))}}}}else{let i=n.join("|"),{stdout:s}=await MA(`ps -eo pid,etime,command | grep -E "${i}" | grep -v grep || true`);if(!s.trim()){y.debug("SYSTEM","No orphaned claude-mem processes found (Unix)");return}let o=s.trim().split(` +`);for(let a of o){let c=a.trim().match(/^(\d+)\s+(\S+)\s+(.*)$/);if(!c)continue;let u=parseInt(c[1],10),l=c[2],d=c[3];if(!Number.isInteger(u)||u<=0||u===e)continue;if(K0.some(m=>d.includes(m)))r.push(u),y.debug("SYSTEM","Found orphaned process (aggressive)",{pid:u,command:d.substring(0,80)});else{let m=FK(l);m>=DA&&(r.push(u),y.debug("SYSTEM","Found orphaned process (age-gated)",{pid:u,ageMinutes:m,command:d.substring(0,80)}))}}}}catch(i){y.error("SYSTEM","Failed to enumerate orphaned processes during aggressive cleanup",{},i);return}if(r.length!==0){if(y.info("SYSTEM","Aggressive startup cleanup: killing orphaned processes",{platform:t?"Windows":"Unix",count:r.length,pids:r}),t){for(let i of r)if(!(!Number.isInteger(i)||i<=0))try{(0,Qi.execSync)(`taskkill /PID ${i} /T /F`,{timeout:_r.POWERSHELL_COMMAND,stdio:"ignore",windowsHide:!0})}catch(s){y.debug("SYSTEM","Failed to kill process, may have already exited",{pid:i},s)}}else for(let i of r)try{process.kill(i,"SIGKILL")}catch(s){y.debug("SYSTEM","Process already exited",{pid:i},s)}y.info("SYSTEM","Aggressive startup cleanup complete",{count:r.length})}}var ZK=".chroma-cleaned-v10.3";function qA(t){let e=t??X0,r=yi.default.join(e,ZK),n=yi.default.join(e,"chroma");if((0,Lt.existsSync)(r)){y.debug("SYSTEM","Chroma migration marker exists, skipping wipe");return}y.warn("SYSTEM","Running one-time chroma data wipe (upgrade from pre-v10.3)",{chromaDir:n}),(0,Lt.existsSync)(n)&&((0,Lt.rmSync)(n,{recursive:!0,force:!0}),y.info("SYSTEM","Chroma data directory removed",{chromaDir:n})),(0,Lt.mkdirSync)(e,{recursive:!0}),(0,Lt.writeFileSync)(r,new Date().toISOString()),y.info("SYSTEM","Chroma migration marker written",{markerPath:r})}function Q0(t,e,r={}){let n=process.platform==="win32";gt().assertCanSpawn("worker daemon");let i=vi({...process.env,CLAUDE_MEM_WORKER_PORT:String(e),...r});if(n){let a=qK();if(!a){y.error("SYSTEM","Failed to locate Bun runtime for Windows worker spawn");return}let c=a.replace(/'/g,"''"),u=t.replace(/'/g,"''"),l=`Start-Process -FilePath '${c}' -ArgumentList '${u}','--daemon' -WindowStyle Hidden`;try{return(0,Qi.execSync)(`powershell -NoProfile -Command "${l}"`,{stdio:"ignore",windowsHide:!0,env:i}),0}catch(d){y.error("SYSTEM","Failed to spawn worker daemon on Windows",{runtimePath:a},d);return}}let s="/usr/bin/setsid";if((0,Lt.existsSync)(s)){let a=(0,Qi.spawn)(s,[process.execPath,t,"--daemon"],{detached:!0,stdio:"ignore",env:i});return a.pid===void 0?void 0:(a.unref(),a.pid)}let o=(0,Qi.spawn)(process.execPath,[t,"--daemon"],{detached:!0,stdio:"ignore",env:i});if(o.pid!==void 0)return o.unref(),o.pid}function FA(t){if(t===0)return!0;if(!Number.isInteger(t)||t<0)return!1;try{return process.kill(t,0),!0}catch(e){return e.code==="EPERM"}}function HA(t=15e3){try{let e=(0,Lt.statSync)(_i);return Date.now()-e.mtimeMssetTimeout(s,500))}return!1}function bo(t,e=3e4){return WA(t,"/api/health",e,"Service not ready yet, will retry")}function KA(t,e=3e4){return WA(t,"/api/readiness",e,"Worker not ready yet, will retry")}async function Gf(t,e=1e4){let r=Date.now();for(;Date.now()-rsetTimeout(n,500))}return!1}async function Wf(t){try{let e=await ew(t,"/api/admin/shutdown","POST");return e.ok?!0:(y.warn("SYSTEM","Shutdown request returned error",{status:e.statusCode}),!1)}catch(e){return e instanceof Error&&e.message?.includes("ECONNREFUSED")?(y.debug("SYSTEM","Worker already stopped",{},e),!1):(y.error("SYSTEM","Shutdown request failed unexpectedly",{},e),!1)}}function BK(){try{let t=VA.default.join(Ki,"package.json");return JSON.parse((0,GA.readFileSync)(t,"utf-8")).version}catch(t){let e=t.code;if(e==="ENOENT"||e==="EBUSY")return y.debug("SYSTEM","Could not read plugin version (shutdown race)",{code:e}),"unknown";throw t}}async function VK(t){try{let e=await ew(t,"/api/version");return e.ok?JSON.parse(e.body).version:null}catch{return y.debug("SYSTEM","Could not fetch worker version",{}),null}}async function JA(t){let e=BK(),r=await VK(t);return!r||e==="unknown"?{matches:!0,pluginVersion:e,workerVersion:r}:{matches:e===r,pluginVersion:e,workerVersion:r}}oe();async function XA(t){y.info("SYSTEM","Shutdown initiated"),t.server&&(await GK(t.server),y.info("SYSTEM","HTTP server closed")),await t.sessionManager.shutdownAll(),t.mcpClient&&(await t.mcpClient.close(),y.info("SYSTEM","MCP client closed")),t.chromaMcpManager&&(y.info("SHUTDOWN","Stopping Chroma MCP connection..."),await t.chromaMcpManager.stop(),y.info("SHUTDOWN","Chroma MCP connection stopped")),t.dbManager&&await t.dbManager.close(),await TA(),y.info("SYSTEM","Worker shutdown complete")}async function GK(t){t.closeAllConnections(),process.platform==="win32"&&await new Promise(e=>setTimeout(e,500)),await new Promise((e,r)=>{t.close(n=>n?r(n):e())}),process.platform==="win32"&&(await new Promise(e=>setTimeout(e,500)),y.info("SYSTEM","Waited for Windows port cleanup"))}var aU=Ue(tg(),1),ok=Ue(require("fs"),1),Ad=Ue(require("path"),1);var WL=["search","context","summarize","import","export"],KL=["workflow","search_params","examples","all"];oe();var nk=Ue(tg(),1),tU=Ue(eU(),1),rU=Ue(require("path"),1);Nt();oe();function ik(t){let e=[];e.push(nk.default.json({limit:"50mb"})),e.push((0,tU.default)({origin:(i,s)=>{!i||i.startsWith("http://localhost:")||i.startsWith("http://127.0.0.1:")?s(null,!0):s(new Error("CORS not allowed"))},methods:["GET","HEAD","POST","PUT","PATCH","DELETE"],allowedHeaders:["Content-Type","Authorization","X-Requested-With"],credentials:!1})),e.push((i,s,o)=>{let c=[".html",".js",".css",".svg",".png",".jpg",".jpeg",".webp",".woff",".woff2",".ttf",".eot"].some(f=>i.path.endsWith(f)),u=i.path==="/api/logs";if(i.path.startsWith("/health")||i.path==="/"||c||u)return o();let l=Date.now(),d=`${i.method}-${Date.now()}`,p=t(i.method,i.path,i.body);y.debug("HTTP",`\u2192 ${i.method} ${i.path}`,{requestId:d},p);let m=s.send.bind(s);s.send=function(f){let g=Date.now()-l;return y.debug("HTTP",`\u2190 ${s.statusCode} ${i.path}`,{requestId:d,duration:`${g}ms`}),m(f)},o()});let r=tn(),n=rU.default.join(r,"plugin","ui");return e.push(nk.default.static(n)),e}function Cd(t,e,r){let n=t.ip||t.connection.remoteAddress||"";if(!(n==="127.0.0.1"||n==="::1"||n==="::ffff:127.0.0.1"||n==="localhost")){y.warn("SECURITY","Admin endpoint access denied - not localhost",{endpoint:t.path,clientIp:n,method:t.method}),e.status(403).json({error:"Forbidden",message:"Admin endpoints are only accessible from localhost"});return}r()}function sk(t,e,r){if(!r||Object.keys(r).length===0||e.includes("/init"))return"";if(e.includes("/observations")){let n=r.tool_name||"?",i=r.tool_input;return`tool=${y.formatTool(n,i)}`}return e.includes("/summarize")?"requesting summary":""}oe();var Ec=class extends Error{constructor(r,n=500,i,s){super(r);this.statusCode=n;this.code=i;this.details=s;this.name="AppError"}};function nU(t,e,r,n){let i={error:t,message:e};return r&&(i.code=r),n&&(i.details=n),i}var iU=(t,e,r,n)=>{let i=t instanceof Ec?t.statusCode:500;y.error("HTTP",`Error handling ${e.method} ${e.path}`,{statusCode:i,error:t.message,code:t instanceof Ec?t.code:void 0},t);let s=nU(t.name||"Error",t.message,t instanceof Ec?t.code:void 0,t instanceof Ec?t.details:void 0);r.status(i).json(s)};function sU(t,e){e.status(404).json(nU("NotFound",`Cannot ${t.method} ${t.path}`))}var oU="10.6.1",rg=class{app;server=null;options;startTime=Date.now();constructor(e){this.options=e,this.app=(0,aU.default)(),this.setupMiddleware(),this.setupCoreRoutes()}getHttpServer(){return this.server}async listen(e,r){return new Promise((n,i)=>{this.server=this.app.listen(e,r,()=>{y.info("SYSTEM","HTTP server started",{host:r,port:e,pid:process.pid}),n()}),this.server.on("error",i)})}async close(){this.server&&(this.server.closeAllConnections(),process.platform==="win32"&&await new Promise(e=>setTimeout(e,500)),await new Promise((e,r)=>{this.server.close(n=>n?r(n):e())}),process.platform==="win32"&&await new Promise(e=>setTimeout(e,500)),this.server=null,y.info("SYSTEM","HTTP server closed"))}registerRoutes(e){e.setupRoutes(this.app)}finalizeRoutes(){this.app.use(sU),this.app.use(iU)}setupMiddleware(){ik(sk).forEach(r=>this.app.use(r))}setupCoreRoutes(){this.app.get("/api/health",(e,r)=>{r.status(200).json({status:"ok",version:oU,workerPath:this.options.workerPath,uptime:Date.now()-this.startTime,managed:process.env.CLAUDE_MEM_MANAGED==="true",hasIpc:typeof process.send=="function",platform:process.platform,pid:process.pid,initialized:this.options.getInitializationComplete(),mcpReady:this.options.getMcpReady(),ai:this.options.getAiStatus()})}),this.app.get("/api/readiness",(e,r)=>{this.options.getInitializationComplete()?r.status(200).json({status:"ready",mcpReady:this.options.getMcpReady()}):r.status(503).json({status:"initializing",message:"Worker is still initializing, please retry"})}),this.app.get("/api/version",(e,r)=>{r.status(200).json({version:oU})}),this.app.get("/api/instructions",async(e,r)=>{let n=e.query.topic||"all",i=e.query.operation;if(n&&!KL.includes(n))return r.status(400).json({error:"Invalid topic"});try{let s;if(i){if(!WL.includes(i))return r.status(400).json({error:"Invalid operation"});let o=Ad.default.resolve(__dirname,"../skills/mem-search/operations"),a=Ad.default.resolve(o,`${i}.md`);if(!a.startsWith(o+Ad.default.sep))return r.status(400).json({error:"Invalid request"});s=await ok.promises.readFile(a,"utf-8")}else{let o=Ad.default.join(__dirname,"../skills/mem-search/SKILL.md"),a=await ok.promises.readFile(o,"utf-8");s=this.extractInstructionSection(a,n)}r.json({content:[{type:"text",text:s}]})}catch{r.status(404).json({error:"Instruction not found"})}}),this.app.post("/api/admin/restart",Cd,async(e,r)=>{r.json({status:"restarting"}),process.platform==="win32"&&process.env.CLAUDE_MEM_MANAGED==="true"&&process.send?(y.info("SYSTEM","Sending restart request to wrapper"),process.send({type:"restart"})):setTimeout(async()=>{try{await this.options.onRestart()}finally{process.exit(0)}},100)}),this.app.post("/api/admin/shutdown",Cd,async(e,r)=>{r.json({status:"shutting_down"}),process.platform==="win32"&&process.env.CLAUDE_MEM_MANAGED==="true"&&process.send?(y.info("SYSTEM","Sending shutdown request to wrapper"),process.send({type:"shutdown"})):setTimeout(async()=>{try{await this.options.onShutdown()}finally{process.exit(0)}},100)}),this.app.get("/api/admin/doctor",Cd,(e,r)=>{let o=gt().getRegistry().getAll().map(f=>({id:f.id,pid:f.pid,type:f.type,status:vn(f.pid)?"alive":"dead",startedAt:f.startedAt})),a=o.filter(f=>f.status==="dead").map(f=>f.pid),c=!Object.keys(process.env).some(f=>z0.has(f)||j0.some(g=>f.startsWith(g))),u=Date.now()-this.startTime,l=Math.floor(u/1e3),d=Math.floor(l/3600),p=Math.floor(l%3600/60),m=d>0?`${d}h ${p}m`:`${p}m`;r.json({supervisor:{running:!0,pid:process.pid,uptime:m},processes:o,health:{deadProcessPids:a,envClean:c}})})}extractInstructionSection(e,r){let n={workflow:this.extractBetween(e,"## The Workflow","## Search Parameters"),search_params:this.extractBetween(e,"## Search Parameters","## Examples"),examples:this.extractBetween(e,"## Examples","## Why This Workflow"),all:e};return n[r]||n.all}extractBetween(e,r,n){let i=e.indexOf(r),s=e.indexOf(n);return i===-1?e:s===-1?e.substring(i):e.substring(i,s).trim()}};var yt=Ue(require("path"),1),Md=require("os"),Kt=require("fs"),lU=require("child_process"),dU=require("util");oe();Or();Nt();var Dn=require("fs"),Nd=require("path");oe();function cU(t){try{return(0,Dn.existsSync)(t)?JSON.parse((0,Dn.readFileSync)(t,"utf-8")):{}}catch(e){return y.error("CONFIG","Failed to read Cursor registry, using empty registry",{file:t,error:e instanceof Error?e.message:String(e)}),{}}}function uU(t,e){let r=(0,Nd.join)(t,"..");(0,Dn.mkdirSync)(r,{recursive:!0}),(0,Dn.writeFileSync)(t,JSON.stringify(e,null,2))}function ak(t,e){let r=(0,Nd.join)(t,".cursor","rules"),n=(0,Nd.join)(r,"claude-mem-context.mdc"),i=`${n}.tmp`;(0,Dn.mkdirSync)(r,{recursive:!0});let s=`--- alwaysApply: true description: "Claude-mem context from past sessions (auto-updated)" --- @@ -43923,212 +929,28 @@ description: "Claude-mem context from past sessions (auto-updated)" The following context is from claude-mem, a persistent memory system that tracks your coding sessions. -${context} +${e} --- *Updated after last session. Use claude-mem's MCP search tools for more detailed queries.* -`; - writeFileSync5(tempFile, content); - renameSync(tempFile, rulesFile); -} - -// src/services/integrations/CursorHooksInstaller.ts -var __filename = "/Users/alexnewman/conductor/workspaces/claude-mem/banjul/src/services/integrations/CursorHooksInstaller.ts"; -var execAsync2 = promisify3(exec2); -var CURSOR_REGISTRY_FILE = path10.join(DATA_DIR, "cursor-projects.json"); -function readCursorRegistry2() { - return readCursorRegistry(CURSOR_REGISTRY_FILE); -} -function writeCursorRegistry2(registry2) { - writeCursorRegistry(CURSOR_REGISTRY_FILE, registry2); -} -function registerCursorProject(projectName, workspacePath) { - const registry2 = readCursorRegistry2(); - registry2[projectName] = { - workspacePath, - installedAt: new Date().toISOString() - }; - writeCursorRegistry2(registry2); - logger.info("CURSOR", "Registered project for auto-context updates", { projectName, workspacePath }); -} -function unregisterCursorProject(projectName) { - const registry2 = readCursorRegistry2(); - if (registry2[projectName]) { - delete registry2[projectName]; - writeCursorRegistry2(registry2); - logger.info("CURSOR", "Unregistered project", { projectName }); - } -} -async function updateCursorContextForProject(projectName, _port) { - const registry2 = readCursorRegistry2(); - const entry = registry2[projectName]; - if (!entry) - return; - try { - const response = await workerHttpRequest(`/api/context/inject?project=${encodeURIComponent(projectName)}`); - if (!response.ok) - return; - const context = await response.text(); - if (!context || !context.trim()) - return; - writeContextFile(entry.workspacePath, context); - logger.debug("CURSOR", "Updated context file", { projectName, workspacePath: entry.workspacePath }); - } catch (error2) { - logger.error("CURSOR", "Failed to update context file", { projectName }, error2); - } -} -function findWorkerServicePath() { - const possiblePaths = [ - path10.join(MARKETPLACE_ROOT, "plugin", "scripts", "worker-service.cjs"), - path10.join(path10.dirname(__filename), "worker-service.cjs"), - path10.join(process.cwd(), "plugin", "scripts", "worker-service.cjs") - ]; - for (const p of possiblePaths) { - if (existsSync10(p)) { - return p; - } - } - return null; -} -function findBunPath() { - const possiblePaths = [ - path10.join(homedir10(), ".bun", "bin", "bun"), - "/usr/local/bin/bun", - "/usr/bin/bun", - ...process.platform === "win32" ? [ - path10.join(homedir10(), ".bun", "bin", "bun.exe"), - path10.join(process.env.LOCALAPPDATA || "", "bun", "bun.exe") - ] : [] - ]; - for (const p of possiblePaths) { - if (p && existsSync10(p)) { - return p; - } - } - return "bun"; -} -function getTargetDir(target) { - switch (target) { - case "project": - return path10.join(process.cwd(), ".cursor"); - case "user": - return path10.join(homedir10(), ".cursor"); - case "enterprise": - if (process.platform === "darwin") { - return "/Library/Application Support/Cursor"; - } else if (process.platform === "linux") { - return "/etc/cursor"; - } else if (process.platform === "win32") { - return path10.join(process.env.ProgramData || "C:\\ProgramData", "Cursor"); - } - return null; - default: - return null; - } -} -async function installCursorHooks(target) { - console.log(` -Installing Claude-Mem Cursor hooks (${target} level)... -`); - const targetDir = getTargetDir(target); - if (!targetDir) { - console.error(`Invalid target: ${target}. Use: project, user, or enterprise`); - return 1; - } - const workerServicePath = findWorkerServicePath(); - if (!workerServicePath) { - console.error("Could not find worker-service.cjs"); - console.error(" Expected at: ~/.claude/plugins/marketplaces/thedotmack/plugin/scripts/worker-service.cjs"); - return 1; - } - const workspaceRoot = process.cwd(); - try { - mkdirSync8(targetDir, { recursive: true }); - const hooksJsonPath = path10.join(targetDir, "hooks.json"); - const bunPath = findBunPath(); - const escapedBunPath = bunPath.replace(/\\/g, "\\\\"); - const escapedWorkerPath = workerServicePath.replace(/\\/g, "\\\\"); - const makeHookCommand = (command) => { - return `"${escapedBunPath}" "${escapedWorkerPath}" hook cursor ${command}`; - }; - console.log(` Using Bun runtime: ${bunPath}`); - const hooksJson = { - version: 1, - hooks: { - beforeSubmitPrompt: [ - { command: makeHookCommand("session-init") }, - { command: makeHookCommand("context") } - ], - afterMCPExecution: [ - { command: makeHookCommand("observation") } - ], - afterShellExecution: [ - { command: makeHookCommand("observation") } - ], - afterFileEdit: [ - { command: makeHookCommand("file-edit") } - ], - stop: [ - { command: makeHookCommand("summarize") } - ] - } - }; - writeFileSync6(hooksJsonPath, JSON.stringify(hooksJson, null, 2)); - console.log(` Created hooks.json (unified CLI mode)`); - console.log(` Worker service: ${workerServicePath}`); - if (target === "project") { - await setupProjectContext(targetDir, workspaceRoot); - } - console.log(` +`;(0,Dn.writeFileSync)(i,s),(0,Dn.renameSync)(i,n)}var oOe=(0,dU.promisify)(lU.exec),pU=yt.default.join(ar,"cursor-projects.json");function ck(){return cU(pU)}function mU(t){uU(pU,t)}function Gse(t,e){let r=ck();r[t]={workspacePath:e,installedAt:new Date().toISOString()},mU(r),y.info("CURSOR","Registered project for auto-context updates",{projectName:t,workspacePath:e})}function Wse(t){let e=ck();e[t]&&(delete e[t],mU(e),y.info("CURSOR","Unregistered project",{projectName:t}))}async function fU(t,e){let n=ck()[t];if(n)try{let i=await wt(`/api/context/inject?project=${encodeURIComponent(t)}`);if(!i.ok)return;let s=await i.text();if(!s||!s.trim())return;ak(n.workspacePath,s),y.debug("CURSOR","Updated context file",{projectName:t,workspacePath:n.workspacePath})}catch(i){y.error("CURSOR","Failed to update context file",{projectName:t},i)}}function Kse(){let t=[yt.default.join(Ki,"plugin","scripts","worker-service.cjs"),yt.default.join(yt.default.dirname(__filename),"worker-service.cjs"),yt.default.join(process.cwd(),"plugin","scripts","worker-service.cjs")];for(let e of t)if((0,Kt.existsSync)(e))return e;return null}function Jse(){let t=[yt.default.join((0,Md.homedir)(),".bun","bin","bun"),"/usr/local/bin/bun","/usr/bin/bun",...process.platform==="win32"?[yt.default.join((0,Md.homedir)(),".bun","bin","bun.exe"),yt.default.join(process.env.LOCALAPPDATA||"","bun","bun.exe")]:[]];for(let e of t)if(e&&(0,Kt.existsSync)(e))return e;return"bun"}function hU(t){switch(t){case"project":return yt.default.join(process.cwd(),".cursor");case"user":return yt.default.join((0,Md.homedir)(),".cursor");case"enterprise":return process.platform==="darwin"?"/Library/Application Support/Cursor":process.platform==="linux"?"/etc/cursor":process.platform==="win32"?yt.default.join(process.env.ProgramData||"C:\\ProgramData","Cursor"):null;default:return null}}async function Xse(t){console.log(` +Installing Claude-Mem Cursor hooks (${t} level)... +`);let e=hU(t);if(!e)return console.error(`Invalid target: ${t}. Use: project, user, or enterprise`),1;let r=Kse();if(!r)return console.error("Could not find worker-service.cjs"),console.error(" Expected at: ~/.claude/plugins/marketplaces/thedotmack/plugin/scripts/worker-service.cjs"),1;let n=process.cwd();try{(0,Kt.mkdirSync)(e,{recursive:!0});let i=yt.default.join(e,"hooks.json"),s=Jse(),o=s.replace(/\\/g,"\\\\"),a=r.replace(/\\/g,"\\\\"),c=l=>`"${o}" "${a}" hook cursor ${l}`;console.log(` Using Bun runtime: ${s}`);let u={version:1,hooks:{beforeSubmitPrompt:[{command:c("session-init")},{command:c("context")}],afterMCPExecution:[{command:c("observation")}],afterShellExecution:[{command:c("observation")}],afterFileEdit:[{command:c("file-edit")}],stop:[{command:c("summarize")}]}};return(0,Kt.writeFileSync)(i,JSON.stringify(u,null,2)),console.log(" Created hooks.json (unified CLI mode)"),console.log(` Worker service: ${r}`),t==="project"&&await Yse(e,n),console.log(` Installation complete! -Hooks installed to: ${targetDir}/hooks.json +Hooks installed to: ${e}/hooks.json Using unified CLI: bun worker-service.cjs hook cursor Next steps: 1. Start claude-mem worker: claude-mem start 2. Restart Cursor to load the hooks - 3. Check Cursor Settings → Hooks tab to verify + 3. Check Cursor Settings \u2192 Hooks tab to verify Context Injection: Context from past sessions is stored in .cursor/rules/claude-mem-context.mdc and automatically included in every chat. It updates after each session ends. -`); - return 0; - } catch (error2) { - console.error(` -Installation failed: ${error2.message}`); - if (target === "enterprise") { - console.error(" Tip: Enterprise installation may require sudo/admin privileges"); - } - return 1; - } -} -async function setupProjectContext(targetDir, workspaceRoot) { - const rulesDir = path10.join(targetDir, "rules"); - mkdirSync8(rulesDir, { recursive: true }); - const projectName = path10.basename(workspaceRoot); - let contextGenerated = false; - console.log(` Generating initial context...`); - try { - const healthResponse = await workerHttpRequest("/api/readiness"); - if (healthResponse.ok) { - const contextResponse = await workerHttpRequest(`/api/context/inject?project=${encodeURIComponent(projectName)}`); - if (contextResponse.ok) { - const context = await contextResponse.text(); - if (context && context.trim()) { - writeContextFile(workspaceRoot, context); - contextGenerated = true; - console.log(` Generated initial context from existing memory`); - } - } - } - } catch (error2) { - logger.debug("CURSOR", "Worker not running during install", {}, error2); - } - if (!contextGenerated) { - const rulesFile = path10.join(rulesDir, "claude-mem-context.mdc"); - const placeholderContent = `--- +`),0}catch(i){return console.error(` +Installation failed: ${i.message}`),t==="enterprise"&&console.error(" Tip: Enterprise installation may require sudo/admin privileges"),1}}async function Yse(t,e){let r=yt.default.join(t,"rules");(0,Kt.mkdirSync)(r,{recursive:!0});let n=yt.default.basename(e),i=!1;console.log(" Generating initial context...");try{if((await wt("/api/readiness")).ok){let o=await wt(`/api/context/inject?project=${encodeURIComponent(n)}`);if(o.ok){let a=await o.text();a&&a.trim()&&(ak(e,a),i=!0,console.log(" Generated initial context from existing memory"))}}}catch(s){y.debug("CURSOR","Worker not running during install",{},s)}if(!i){let s=yt.default.join(r,"claude-mem-context.mdc");(0,Kt.writeFileSync)(s,`--- alwaysApply: true description: "Claude-mem context from past sessions (auto-updated)" --- @@ -44138,159 +960,15 @@ description: "Claude-mem context from past sessions (auto-updated)" *No context yet. Complete your first session and context will appear here.* Use claude-mem's MCP search tools for manual memory queries. -`; - writeFileSync6(rulesFile, placeholderContent); - console.log(` Created placeholder context file (will populate after first session)`); - } - registerCursorProject(projectName, workspaceRoot); - console.log(` Registered for auto-context updates`); -} -function uninstallCursorHooks(target) { - console.log(` -Uninstalling Claude-Mem Cursor hooks (${target} level)... -`); - const targetDir = getTargetDir(target); - if (!targetDir) { - console.error(`Invalid target: ${target}`); - return 1; - } - try { - const hooksDir = path10.join(targetDir, "hooks"); - const hooksJsonPath = path10.join(targetDir, "hooks.json"); - const bashScripts = [ - "common.sh", - "session-init.sh", - "context-inject.sh", - "save-observation.sh", - "save-file-edit.sh", - "session-summary.sh" - ]; - const psScripts = [ - "common.ps1", - "session-init.ps1", - "context-inject.ps1", - "save-observation.ps1", - "save-file-edit.ps1", - "session-summary.ps1" - ]; - const allScripts = [...bashScripts, ...psScripts]; - for (const script of allScripts) { - const scriptPath = path10.join(hooksDir, script); - if (existsSync10(scriptPath)) { - unlinkSync2(scriptPath); - console.log(` Removed legacy script: ${script}`); - } - } - if (existsSync10(hooksJsonPath)) { - unlinkSync2(hooksJsonPath); - console.log(` Removed hooks.json`); - } - if (target === "project") { - const contextFile = path10.join(targetDir, "rules", "claude-mem-context.mdc"); - if (existsSync10(contextFile)) { - unlinkSync2(contextFile); - console.log(` Removed context file`); - } - const projectName = path10.basename(process.cwd()); - unregisterCursorProject(projectName); - console.log(` Unregistered from auto-context updates`); - } - console.log(` +`),console.log(" Created placeholder context file (will populate after first session)")}Gse(n,e),console.log(" Registered for auto-context updates")}function Qse(t){console.log(` +Uninstalling Claude-Mem Cursor hooks (${t} level)... +`);let e=hU(t);if(!e)return console.error(`Invalid target: ${t}`),1;try{let r=yt.default.join(e,"hooks"),n=yt.default.join(e,"hooks.json"),i=["common.sh","session-init.sh","context-inject.sh","save-observation.sh","save-file-edit.sh","session-summary.sh"],s=["common.ps1","session-init.ps1","context-inject.ps1","save-observation.ps1","save-file-edit.ps1","session-summary.ps1"],o=[...i,...s];for(let a of o){let c=yt.default.join(r,a);(0,Kt.existsSync)(c)&&((0,Kt.unlinkSync)(c),console.log(` Removed legacy script: ${a}`))}if((0,Kt.existsSync)(n)&&((0,Kt.unlinkSync)(n),console.log(" Removed hooks.json")),t==="project"){let a=yt.default.join(e,"rules","claude-mem-context.mdc");(0,Kt.existsSync)(a)&&((0,Kt.unlinkSync)(a),console.log(" Removed context file"));let c=yt.default.basename(process.cwd());Wse(c),console.log(" Unregistered from auto-context updates")}return console.log(` Uninstallation complete! -`); - console.log("Restart Cursor to apply changes."); - return 0; - } catch (error2) { - console.error(` -Uninstallation failed: ${error2.message}`); - return 1; - } -} -function checkCursorHooksStatus() { - console.log(` +`),console.log("Restart Cursor to apply changes."),0}catch(r){return console.error(` +Uninstallation failed: ${r.message}`),1}}function eoe(){console.log(` Claude-Mem Cursor Hooks Status -`); - const locations = [ - { name: "Project", dir: path10.join(process.cwd(), ".cursor") }, - { name: "User", dir: path10.join(homedir10(), ".cursor") } - ]; - if (process.platform === "darwin") { - locations.push({ name: "Enterprise", dir: "/Library/Application Support/Cursor" }); - } else if (process.platform === "linux") { - locations.push({ name: "Enterprise", dir: "/etc/cursor" }); - } - let anyInstalled = false; - for (const loc of locations) { - const hooksJson = path10.join(loc.dir, "hooks.json"); - const hooksDir = path10.join(loc.dir, "hooks"); - if (existsSync10(hooksJson)) { - anyInstalled = true; - console.log(`${loc.name}: Installed`); - console.log(` Config: ${hooksJson}`); - try { - const hooksContent = JSON.parse(readFileSync11(hooksJson, "utf-8")); - const firstCommand = hooksContent?.hooks?.beforeSubmitPrompt?.[0]?.command || ""; - if (firstCommand.includes("worker-service.cjs") && firstCommand.includes("hook cursor")) { - console.log(` Mode: Unified CLI (bun worker-service.cjs)`); - } else { - const bashScripts = ["session-init.sh", "context-inject.sh", "save-observation.sh"]; - const psScripts = ["session-init.ps1", "context-inject.ps1", "save-observation.ps1"]; - const hasBash = bashScripts.some((s) => existsSync10(path10.join(hooksDir, s))); - const hasPs = psScripts.some((s) => existsSync10(path10.join(hooksDir, s))); - if (hasBash || hasPs) { - console.log(` Mode: Legacy shell scripts (consider reinstalling for unified CLI)`); - if (hasBash && hasPs) { - console.log(` Platform: Both (bash + PowerShell)`); - } else if (hasBash) { - console.log(` Platform: Unix (bash)`); - } else if (hasPs) { - console.log(` Platform: Windows (PowerShell)`); - } - } else { - console.log(` Mode: Unknown configuration`); - } - } - } catch { - console.log(` Mode: Unable to parse hooks.json`); - } - if (loc.name === "Project") { - const contextFile = path10.join(loc.dir, "rules", "claude-mem-context.mdc"); - if (existsSync10(contextFile)) { - console.log(` Context: Active`); - } else { - console.log(` Context: Not yet generated (will be created on first prompt)`); - } - } - } else { - console.log(`${loc.name}: Not installed`); - } - console.log(""); - } - if (!anyInstalled) { - console.log(`No hooks installed. Run: claude-mem cursor install -`); - } - return 0; -} -async function handleCursorCommand(subcommand, args) { - switch (subcommand) { - case "install": { - const target = args[0] || "project"; - return installCursorHooks(target); - } - case "uninstall": { - const target = args[0] || "project"; - return uninstallCursorHooks(target); - } - case "status": { - return checkCursorHooksStatus(); - } - case "setup": { - console.log("Use the main entry point for setup"); - return 0; - } - default: { - console.log(` +`);let t=[{name:"Project",dir:yt.default.join(process.cwd(),".cursor")},{name:"User",dir:yt.default.join((0,Md.homedir)(),".cursor")}];process.platform==="darwin"?t.push({name:"Enterprise",dir:"/Library/Application Support/Cursor"}):process.platform==="linux"&&t.push({name:"Enterprise",dir:"/etc/cursor"});let e=!1;for(let r of t){let n=yt.default.join(r.dir,"hooks.json"),i=yt.default.join(r.dir,"hooks");if((0,Kt.existsSync)(n)){e=!0,console.log(`${r.name}: Installed`),console.log(` Config: ${n}`);try{let o=JSON.parse((0,Kt.readFileSync)(n,"utf-8"))?.hooks?.beforeSubmitPrompt?.[0]?.command||"";if(o.includes("worker-service.cjs")&&o.includes("hook cursor"))console.log(" Mode: Unified CLI (bun worker-service.cjs)");else{let a=["session-init.sh","context-inject.sh","save-observation.sh"],c=["session-init.ps1","context-inject.ps1","save-observation.ps1"],u=a.some(d=>(0,Kt.existsSync)(yt.default.join(i,d))),l=c.some(d=>(0,Kt.existsSync)(yt.default.join(i,d)));u||l?(console.log(" Mode: Legacy shell scripts (consider reinstalling for unified CLI)"),u&&l?console.log(" Platform: Both (bash + PowerShell)"):u?console.log(" Platform: Unix (bash)"):l&&console.log(" Platform: Windows (PowerShell)")):console.log(" Mode: Unknown configuration")}}catch{console.log(" Mode: Unable to parse hooks.json")}if(r.name==="Project"){let s=yt.default.join(r.dir,"rules","claude-mem-context.mdc");(0,Kt.existsSync)(s)?console.log(" Context: Active"):console.log(" Context: Not yet generated (will be created on first prompt)")}}else console.log(`${r.name}: Not installed`);console.log("")}return e||console.log(`No hooks installed. Run: claude-mem cursor install +`),0}async function gU(t,e){switch(t){case"install":{let r=e[0]||"project";return Xse(r)}case"uninstall":{let r=e[0]||"project";return Qse(r)}case"status":return eoe();case"setup":return console.log("Use the main entry point for setup"),0;default:return console.log(` Claude-Mem Cursor Integration Usage: claude-mem cursor [options] @@ -44314,44 +992,7 @@ Examples: claude-mem cursor status # Check if hooks are installed For more info: https://docs.claude-mem.ai/cursor - `); - return 0; - } - } -} - -// src/services/worker/DatabaseManager.ts -init_SessionStore(); - -// src/services/sqlite/SessionSearch.ts -init_paths(); -init_logger(); -import { Database as Database2 } from "bun:sqlite"; - -class SessionSearch { - db; - constructor(dbPath) { - if (!dbPath) { - ensureDir(DATA_DIR); - dbPath = DB_PATH; - } - this.db = new Database2(dbPath); - this.db.run("PRAGMA journal_mode = WAL"); - this.ensureFTSTables(); - } - ensureFTSTables() { - const tables = this.db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name LIKE '%_fts'").all(); - const hasFTS = tables.some((t) => t.name === "observations_fts" || t.name === "session_summaries_fts"); - if (hasFTS) { - return; - } - if (!this.isFts5Available()) { - logger.warn("DB", "FTS5 not available on this platform — skipping FTS table creation (search uses ChromaDB)"); - return; - } - logger.info("DB", "Creating FTS5 tables"); - try { - this.db.run(` + `),0}}Zf();var yU=require("bun:sqlite");Nt();oe();uk();var ng=class{db;constructor(e){e||(Ir(ar),e=Zl),this.db=new yU.Database(e),this.db.run("PRAGMA journal_mode = WAL"),this.ensureFTSTables()}ensureFTSTables(){if(!this.db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name LIKE '%_fts'").all().some(n=>n.name==="observations_fts"||n.name==="session_summaries_fts")){if(!this.isFts5Available()){y.warn("DB","FTS5 not available on this platform \u2014 skipping FTS table creation (search uses ChromaDB)");return}y.info("DB","Creating FTS5 tables");try{this.db.run(` CREATE VIRTUAL TABLE IF NOT EXISTS observations_fts USING fts5( title, subtitle, @@ -44362,13 +1003,11 @@ class SessionSearch { content='observations', content_rowid='id' ); - `); - this.db.run(` + `),this.db.run(` INSERT INTO observations_fts(rowid, title, subtitle, narrative, text, facts, concepts) SELECT id, title, subtitle, narrative, text, facts, concepts FROM observations; - `); - this.db.run(` + `),this.db.run(` CREATE TRIGGER IF NOT EXISTS observations_ai AFTER INSERT ON observations BEGIN INSERT INTO observations_fts(rowid, title, subtitle, narrative, text, facts, concepts) VALUES (new.id, new.title, new.subtitle, new.narrative, new.text, new.facts, new.concepts); @@ -44385,8 +1024,7 @@ class SessionSearch { INSERT INTO observations_fts(rowid, title, subtitle, narrative, text, facts, concepts) VALUES (new.id, new.title, new.subtitle, new.narrative, new.text, new.facts, new.concepts); END; - `); - this.db.run(` + `),this.db.run(` CREATE VIRTUAL TABLE IF NOT EXISTS session_summaries_fts USING fts5( request, investigated, @@ -44397,13 +1035,11 @@ class SessionSearch { content='session_summaries', content_rowid='id' ); - `); - this.db.run(` + `),this.db.run(` INSERT INTO session_summaries_fts(rowid, request, investigated, learned, completed, next_steps, notes) SELECT id, request, investigated, learned, completed, next_steps, notes FROM session_summaries; - `); - this.db.run(` + `),this.db.run(` CREATE TRIGGER IF NOT EXISTS session_summaries_ai AFTER INSERT ON session_summaries BEGIN INSERT INTO session_summaries_fts(rowid, request, investigated, learned, completed, next_steps, notes) VALUES (new.id, new.request, new.investigated, new.learned, new.completed, new.next_steps, new.notes); @@ -44420,297 +1056,56 @@ class SessionSearch { INSERT INTO session_summaries_fts(rowid, request, investigated, learned, completed, next_steps, notes) VALUES (new.id, new.request, new.investigated, new.learned, new.completed, new.next_steps, new.notes); END; - `); - logger.info("DB", "FTS5 tables created successfully"); - } catch (error2) { - logger.warn("DB", "FTS5 table creation failed — search will use ChromaDB and LIKE queries", {}, error2); - } - } - isFts5Available() { - try { - this.db.run("CREATE VIRTUAL TABLE _fts5_probe USING fts5(test_column)"); - this.db.run("DROP TABLE _fts5_probe"); - return true; - } catch { - return false; - } - } - buildFilterClause(filters, params, tableAlias = "o") { - const conditions = []; - if (filters.project) { - conditions.push(`${tableAlias}.project = ?`); - params.push(filters.project); - } - if (filters.type) { - if (Array.isArray(filters.type)) { - const placeholders = filters.type.map(() => "?").join(","); - conditions.push(`${tableAlias}.type IN (${placeholders})`); - params.push(...filters.type); - } else { - conditions.push(`${tableAlias}.type = ?`); - params.push(filters.type); - } - } - if (filters.dateRange) { - const { start, end } = filters.dateRange; - if (start) { - const startEpoch = typeof start === "number" ? start : new Date(start).getTime(); - conditions.push(`${tableAlias}.created_at_epoch >= ?`); - params.push(startEpoch); - } - if (end) { - const endEpoch = typeof end === "number" ? end : new Date(end).getTime(); - conditions.push(`${tableAlias}.created_at_epoch <= ?`); - params.push(endEpoch); - } - } - if (filters.concepts) { - const concepts = Array.isArray(filters.concepts) ? filters.concepts : [filters.concepts]; - const conceptConditions = concepts.map(() => { - return `EXISTS (SELECT 1 FROM json_each(${tableAlias}.concepts) WHERE value = ?)`; - }); - if (conceptConditions.length > 0) { - conditions.push(`(${conceptConditions.join(" OR ")})`); - params.push(...concepts); - } - } - if (filters.files) { - const files = Array.isArray(filters.files) ? filters.files : [filters.files]; - const fileConditions = files.map(() => { - return `( - EXISTS (SELECT 1 FROM json_each(${tableAlias}.files_read) WHERE value LIKE ?) - OR EXISTS (SELECT 1 FROM json_each(${tableAlias}.files_modified) WHERE value LIKE ?) - )`; - }); - if (fileConditions.length > 0) { - conditions.push(`(${fileConditions.join(" OR ")})`); - files.forEach((file) => { - params.push(`%${file}%`, `%${file}%`); - }); - } - } - return conditions.length > 0 ? conditions.join(" AND ") : ""; - } - buildOrderClause(orderBy = "relevance", hasFTS = true, ftsTable = "observations_fts") { - switch (orderBy) { - case "relevance": - return hasFTS ? `ORDER BY ${ftsTable}.rank ASC` : "ORDER BY o.created_at_epoch DESC"; - case "date_desc": - return "ORDER BY o.created_at_epoch DESC"; - case "date_asc": - return "ORDER BY o.created_at_epoch ASC"; - default: - return "ORDER BY o.created_at_epoch DESC"; - } - } - searchObservations(query, options = {}) { - const params = []; - const { limit = 50, offset = 0, orderBy = "relevance", ...filters } = options; - if (!query) { - const filterClause = this.buildFilterClause(filters, params, "o"); - if (!filterClause) { - throw new Error("Either query or filters required for search"); - } - const orderClause = this.buildOrderClause(orderBy, false); - const sql = ` + `),y.info("DB","FTS5 tables created successfully")}catch(n){y.warn("DB","FTS5 table creation failed \u2014 search will use ChromaDB and LIKE queries",{},n)}}}isFts5Available(){try{return this.db.run("CREATE VIRTUAL TABLE _fts5_probe USING fts5(test_column)"),this.db.run("DROP TABLE _fts5_probe"),!0}catch{return!1}}buildFilterClause(e,r,n="o"){let i=[];if(e.project&&(i.push(`${n}.project = ?`),r.push(e.project)),e.type)if(Array.isArray(e.type)){let s=e.type.map(()=>"?").join(",");i.push(`${n}.type IN (${s})`),r.push(...e.type)}else i.push(`${n}.type = ?`),r.push(e.type);if(e.dateRange){let{start:s,end:o}=e.dateRange;if(s){let a=typeof s=="number"?s:new Date(s).getTime();i.push(`${n}.created_at_epoch >= ?`),r.push(a)}if(o){let a=typeof o=="number"?o:new Date(o).getTime();i.push(`${n}.created_at_epoch <= ?`),r.push(a)}}if(e.concepts){let s=Array.isArray(e.concepts)?e.concepts:[e.concepts],o=s.map(()=>`EXISTS (SELECT 1 FROM json_each(${n}.concepts) WHERE value = ?)`);o.length>0&&(i.push(`(${o.join(" OR ")})`),r.push(...s))}if(e.files){let s=Array.isArray(e.files)?e.files:[e.files],o=s.map(()=>`( + EXISTS (SELECT 1 FROM json_each(${n}.files_read) WHERE value LIKE ?) + OR EXISTS (SELECT 1 FROM json_each(${n}.files_modified) WHERE value LIKE ?) + )`);o.length>0&&(i.push(`(${o.join(" OR ")})`),s.forEach(a=>{r.push(`%${a}%`,`%${a}%`)}))}return i.length>0?i.join(" AND "):""}buildOrderClause(e="relevance",r=!0,n="observations_fts"){switch(e){case"relevance":return r?`ORDER BY ${n}.rank ASC`:"ORDER BY o.created_at_epoch DESC";case"date_desc":return"ORDER BY o.created_at_epoch DESC";case"date_asc":return"ORDER BY o.created_at_epoch ASC";default:return"ORDER BY o.created_at_epoch DESC"}}searchObservations(e,r={}){let n=[],{limit:i=50,offset:s=0,orderBy:o="relevance",...a}=r;if(!e){let c=this.buildFilterClause(a,n,"o");if(!c)throw new Error("Either query or filters required for search");let u=this.buildOrderClause(o,!1),l=` SELECT o.*, o.discovery_tokens FROM observations o - WHERE ${filterClause} - ${orderClause} + WHERE ${c} + ${u} LIMIT ? OFFSET ? - `; - params.push(limit, offset); - return this.db.prepare(sql).all(...params); - } - logger.warn("DB", "Text search not supported - use ChromaDB for vector search"); - return []; - } - searchSessions(query, options = {}) { - const params = []; - const { limit = 50, offset = 0, orderBy = "relevance", ...filters } = options; - if (!query) { - const filterOptions = { ...filters }; - delete filterOptions.type; - const filterClause = this.buildFilterClause(filterOptions, params, "s"); - if (!filterClause) { - throw new Error("Either query or filters required for search"); - } - const orderClause = orderBy === "date_asc" ? "ORDER BY s.created_at_epoch ASC" : "ORDER BY s.created_at_epoch DESC"; - const sql = ` + `;return n.push(i,s),this.db.prepare(l).all(...n)}return y.warn("DB","Text search not supported - use ChromaDB for vector search"),[]}searchSessions(e,r={}){let n=[],{limit:i=50,offset:s=0,orderBy:o="relevance",...a}=r;if(!e){let c={...a};delete c.type;let u=this.buildFilterClause(c,n,"s");if(!u)throw new Error("Either query or filters required for search");let d=` SELECT s.*, s.discovery_tokens FROM session_summaries s - WHERE ${filterClause} - ${orderClause} + WHERE ${u} + ${o==="date_asc"?"ORDER BY s.created_at_epoch ASC":"ORDER BY s.created_at_epoch DESC"} LIMIT ? OFFSET ? - `; - params.push(limit, offset); - return this.db.prepare(sql).all(...params); - } - logger.warn("DB", "Text search not supported - use ChromaDB for vector search"); - return []; - } - findByConcept(concept, options = {}) { - const params = []; - const { limit = 50, offset = 0, orderBy = "date_desc", ...filters } = options; - const conceptFilters = { ...filters, concepts: concept }; - const filterClause = this.buildFilterClause(conceptFilters, params, "o"); - const orderClause = this.buildOrderClause(orderBy, false); - const sql = ` + `;return n.push(i,s),this.db.prepare(d).all(...n)}return y.warn("DB","Text search not supported - use ChromaDB for vector search"),[]}findByConcept(e,r={}){let n=[],{limit:i=50,offset:s=0,orderBy:o="date_desc",...a}=r,c={...a,concepts:e},u=this.buildFilterClause(c,n,"o"),l=this.buildOrderClause(o,!1),d=` SELECT o.*, o.discovery_tokens FROM observations o - WHERE ${filterClause} - ${orderClause} + WHERE ${u} + ${l} LIMIT ? OFFSET ? - `; - params.push(limit, offset); - return this.db.prepare(sql).all(...params); - } - hasDirectChildFile(obs, folderPath) { - const checkFiles = (filesJson) => { - if (!filesJson) - return false; - try { - const files = JSON.parse(filesJson); - if (Array.isArray(files)) { - return files.some((f) => isDirectChild(f, folderPath)); - } - } catch {} - return false; - }; - return checkFiles(obs.files_modified) || checkFiles(obs.files_read); - } - hasDirectChildFileSession(session, folderPath) { - const checkFiles = (filesJson) => { - if (!filesJson) - return false; - try { - const files = JSON.parse(filesJson); - if (Array.isArray(files)) { - return files.some((f) => isDirectChild(f, folderPath)); - } - } catch {} - return false; - }; - return checkFiles(session.files_read) || checkFiles(session.files_edited); - } - findByFile(filePath, options = {}) { - const params = []; - const { limit = 50, offset = 0, orderBy = "date_desc", isFolder = false, ...filters } = options; - const queryLimit = isFolder ? limit * 3 : limit; - const fileFilters = { ...filters, files: filePath }; - const filterClause = this.buildFilterClause(fileFilters, params, "o"); - const orderClause = this.buildOrderClause(orderBy, false); - const observationsSql = ` + `;return n.push(i,s),this.db.prepare(d).all(...n)}hasDirectChildFile(e,r){let n=i=>{if(!i)return!1;try{let s=JSON.parse(i);if(Array.isArray(s))return s.some(o=>jo(o,r))}catch{}return!1};return n(e.files_modified)||n(e.files_read)}hasDirectChildFileSession(e,r){let n=i=>{if(!i)return!1;try{let s=JSON.parse(i);if(Array.isArray(s))return s.some(o=>jo(o,r))}catch{}return!1};return n(e.files_read)||n(e.files_edited)}findByFile(e,r={}){let n=[],{limit:i=50,offset:s=0,orderBy:o="date_desc",isFolder:a=!1,...c}=r,u=a?i*3:i,l={...c,files:e},d=this.buildFilterClause(l,n,"o"),p=this.buildOrderClause(o,!1),m=` SELECT o.*, o.discovery_tokens FROM observations o - WHERE ${filterClause} - ${orderClause} + WHERE ${d} + ${p} LIMIT ? OFFSET ? - `; - params.push(queryLimit, offset); - let observations = this.db.prepare(observationsSql).all(...params); - if (isFolder) { - observations = observations.filter((obs) => this.hasDirectChildFile(obs, filePath)).slice(0, limit); - } - const sessionParams = []; - const sessionFilters = { ...filters }; - delete sessionFilters.type; - const baseConditions = []; - if (sessionFilters.project) { - baseConditions.push("s.project = ?"); - sessionParams.push(sessionFilters.project); - } - if (sessionFilters.dateRange) { - const { start, end } = sessionFilters.dateRange; - if (start) { - const startEpoch = typeof start === "number" ? start : new Date(start).getTime(); - baseConditions.push("s.created_at_epoch >= ?"); - sessionParams.push(startEpoch); - } - if (end) { - const endEpoch = typeof end === "number" ? end : new Date(end).getTime(); - baseConditions.push("s.created_at_epoch <= ?"); - sessionParams.push(endEpoch); - } - } - baseConditions.push(`( + `;n.push(u,s);let f=this.db.prepare(m).all(...n);a&&(f=f.filter(_=>this.hasDirectChildFile(_,e)).slice(0,i));let g=[],h={...c};delete h.type;let v=[];if(h.project&&(v.push("s.project = ?"),g.push(h.project)),h.dateRange){let{start:_,end:S}=h.dateRange;if(_){let w=typeof _=="number"?_:new Date(_).getTime();v.push("s.created_at_epoch >= ?"),g.push(w)}if(S){let w=typeof S=="number"?S:new Date(S).getTime();v.push("s.created_at_epoch <= ?"),g.push(w)}}v.push(`( EXISTS (SELECT 1 FROM json_each(s.files_read) WHERE value LIKE ?) OR EXISTS (SELECT 1 FROM json_each(s.files_edited) WHERE value LIKE ?) - )`); - sessionParams.push(`%${filePath}%`, `%${filePath}%`); - const sessionsSql = ` + )`),g.push(`%${e}%`,`%${e}%`);let x=` SELECT s.*, s.discovery_tokens FROM session_summaries s - WHERE ${baseConditions.join(" AND ")} + WHERE ${v.join(" AND ")} ORDER BY s.created_at_epoch DESC LIMIT ? OFFSET ? - `; - sessionParams.push(queryLimit, offset); - let sessions = this.db.prepare(sessionsSql).all(...sessionParams); - if (isFolder) { - sessions = sessions.filter((s) => this.hasDirectChildFileSession(s, filePath)).slice(0, limit); - } - return { observations, sessions }; - } - findByType(type, options = {}) { - const params = []; - const { limit = 50, offset = 0, orderBy = "date_desc", ...filters } = options; - const typeFilters = { ...filters, type }; - const filterClause = this.buildFilterClause(typeFilters, params, "o"); - const orderClause = this.buildOrderClause(orderBy, false); - const sql = ` + `;g.push(u,s);let b=this.db.prepare(x).all(...g);return a&&(b=b.filter(_=>this.hasDirectChildFileSession(_,e)).slice(0,i)),{observations:f,sessions:b}}findByType(e,r={}){let n=[],{limit:i=50,offset:s=0,orderBy:o="date_desc",...a}=r,c={...a,type:e},u=this.buildFilterClause(c,n,"o"),l=this.buildOrderClause(o,!1),d=` SELECT o.*, o.discovery_tokens FROM observations o - WHERE ${filterClause} - ${orderClause} + WHERE ${u} + ${l} LIMIT ? OFFSET ? - `; - params.push(limit, offset); - return this.db.prepare(sql).all(...params); - } - searchUserPrompts(query, options = {}) { - const params = []; - const { limit = 20, offset = 0, orderBy = "relevance", ...filters } = options; - const baseConditions = []; - if (filters.project) { - baseConditions.push("s.project = ?"); - params.push(filters.project); - } - if (filters.dateRange) { - const { start, end } = filters.dateRange; - if (start) { - const startEpoch = typeof start === "number" ? start : new Date(start).getTime(); - baseConditions.push("up.created_at_epoch >= ?"); - params.push(startEpoch); - } - if (end) { - const endEpoch = typeof end === "number" ? end : new Date(end).getTime(); - baseConditions.push("up.created_at_epoch <= ?"); - params.push(endEpoch); - } - } - if (!query) { - if (baseConditions.length === 0) { - throw new Error("Either query or filters required for search"); - } - const whereClause = `WHERE ${baseConditions.join(" AND ")}`; - const orderClause = orderBy === "date_asc" ? "ORDER BY up.created_at_epoch ASC" : "ORDER BY up.created_at_epoch DESC"; - const sql = ` + `;return n.push(i,s),this.db.prepare(d).all(...n)}searchUserPrompts(e,r={}){let n=[],{limit:i=20,offset:s=0,orderBy:o="relevance",...a}=r,c=[];if(a.project&&(c.push("s.project = ?"),n.push(a.project)),a.dateRange){let{start:u,end:l}=a.dateRange;if(u){let d=typeof u=="number"?u:new Date(u).getTime();c.push("up.created_at_epoch >= ?"),n.push(d)}if(l){let d=typeof l=="number"?l:new Date(l).getTime();c.push("up.created_at_epoch <= ?"),n.push(d)}}if(!e){if(c.length===0)throw new Error("Either query or filters required for search");let d=` SELECT up.* FROM user_prompts up JOIN sdk_sessions s ON up.content_session_id = s.content_session_id - ${whereClause} - ${orderClause} + ${`WHERE ${c.join(" AND ")}`} + ${o==="date_asc"?"ORDER BY up.created_at_epoch ASC":"ORDER BY up.created_at_epoch DESC"} LIMIT ? OFFSET ? - `; - params.push(limit, offset); - return this.db.prepare(sql).all(...params); - } - logger.warn("DB", "Text search not supported - use ChromaDB for vector search"); - return []; - } - getUserPromptsBySession(contentSessionId) { - const stmt = this.db.prepare(` + `;return n.push(i,s),this.db.prepare(d).all(...n)}return y.warn("DB","Text search not supported - use ChromaDB for vector search"),[]}getUserPromptsBySession(e){return this.db.prepare(` SELECT id, content_session_id, @@ -44721,19001 +1116,209 @@ class SessionSearch { FROM user_prompts WHERE content_session_id = ? ORDER BY prompt_number ASC - `); - return stmt.all(contentSessionId); - } - close() { - this.db.close(); - } -} + `).all(e)}close(){this.db.close()}};Yt();Nt();oe();var ig=class{sessionStore=null;sessionSearch=null;chromaSync=null;async initialize(){this.sessionStore=new Yi,this.sessionSearch=new ng,_e.loadFromFile(At).CLAUDE_MEM_CHROMA_ENABLED!=="false"?this.chromaSync=new Ja("claude-mem"):y.info("DB","Chroma disabled via CLAUDE_MEM_CHROMA_ENABLED=false, using SQLite-only search"),y.info("DB","Database initialized")}async close(){this.chromaSync&&(await this.chromaSync.close(),this.chromaSync=null),this.sessionStore&&(this.sessionStore.close(),this.sessionStore=null),this.sessionSearch&&(this.sessionSearch.close(),this.sessionSearch=null),y.info("DB","Database closed")}getSessionStore(){if(!this.sessionStore)throw new Error("Database not initialized");return this.sessionStore}getSessionSearch(){if(!this.sessionSearch)throw new Error("Database not initialized");return this.sessionSearch}getChromaSync(){return this.chromaSync}getSessionById(e){let r=this.getSessionStore().getSessionById(e);if(!r)throw new Error(`Session ${e} not found`);return r}};var TU=require("events");oe();Us();oe();var sg=180*1e3,og=class{constructor(e,r){this.store=e;this.events=r}async*createIterator(e){let{sessionDbId:r,signal:n,onIdleTimeout:i}=e,s=Date.now();for(;!n.aborted;)try{let o=this.store.claimNextMessage(r);if(o)s=Date.now(),yield this.toPendingMessageWithId(o);else if(!await this.waitForMessage(n,sg)&&!n.aborted){let c=Date.now()-s;if(c>=sg){y.info("SESSION","Idle timeout reached, triggering abort to kill subprocess",{sessionDbId:r,idleDurationMs:c,thresholdMs:sg}),i?.();return}s=Date.now()}}catch(o){if(n.aborted)return;y.error("SESSION","Error in queue processor loop",{sessionDbId:r},o),await new Promise(a=>setTimeout(a,1e3))}}toPendingMessageWithId(e){return{...this.store.toPendingMessage(e),_persistentId:e.id,_originalTimestamp:e.created_at_epoch}}waitForMessage(e,r=sg){return new Promise(n=>{let i,s=()=>{c(),n(!0)},o=()=>{c(),n(!1)},a=()=>{c(),n(!1)},c=()=>{i!==void 0&&clearTimeout(i),this.events.off("message",s),e.removeEventListener("abort",o)};this.events.once("message",s),e.addEventListener("abort",o,{once:!0}),i=setTimeout(a,r)})}};var zd=require("child_process"),xU=require("util");oe();var SU=(0,xU.promisify)(zd.exec);function roe(){return gt().getRegistry().getAll().filter(t=>t.type==="sdk").map(t=>{let e=gt().getRegistry().getRuntimeProcess(t.id);return e?{pid:t.pid,sessionDbId:Number(t.sessionId),spawnedAt:Date.parse(t.startedAt),process:e}:null}).filter(t=>t!==null)}function noe(t,e,r){gt().registerProcess(`sdk:${e}:${t}`,{pid:t,type:"sdk",sessionId:e,startedAt:new Date().toISOString()},r),y.info("PROCESS",`Registered PID ${t} for session ${e}`,{pid:t,sessionDbId:e})}function ag(t){for(let e of gt().getRegistry().getByPid(t))e.type==="sdk"&>().unregisterProcess(e.id);y.debug("PROCESS",`Unregistered PID ${t}`,{pid:t}),wU()}function qs(t){let e=roe().filter(r=>r.sessionDbId===t);return e.length>1&&y.warn("PROCESS",`Multiple processes found for session ${t}`,{count:e.length,pids:e.map(r=>r.pid)}),e[0]}function _U(){return gt().getRegistry().getAll().filter(t=>t.type==="sdk").length}var jd=[];function wU(){let t=jd.shift();t&&t()}var bU=10;async function EU(t,e=6e4){let r=_U();if(r>=bU)throw new Error(`Hard cap exceeded: ${r} processes in registry (cap=${bU}). Refusing to spawn more.`);if(!(r{let s=setTimeout(()=>{let a=jd.indexOf(o);a>=0&&jd.splice(a,1),i(new Error(`Timed out waiting for agent pool slot after ${e}ms`))},e),o=()=>{clearTimeout(s),_U(){n.once("exit",()=>c())}),s=new Promise(c=>{setTimeout(c,e)});if(await Promise.race([i,s]),n.exitCode!==null){ag(r);return}y.warn("PROCESS",`PID ${r} did not exit after ${e}ms, sending SIGKILL`,{pid:r,timeoutMs:e});try{n.kill("SIGKILL")}catch{}let o=new Promise(c=>{n.once("exit",()=>c())}),a=new Promise(c=>{setTimeout(c,1e3)});await Promise.race([o,a]),ag(r)}async function ioe(){if(process.platform==="win32")return 0;let t=process.pid,e=0;try{let{stdout:r}=await SU('ps -eo pid,ppid,%cpu,etime,comm 2>/dev/null | grep "claude$" || true');for(let n of r.trim().split(` +`)){if(!n)continue;let i=n.trim().split(/\s+/);if(i.length<5)continue;let[s,o,a,c]=i,u=parseInt(s,10),l=parseInt(o,10),d=parseFloat(a);if(l!==t||d>0)continue;let p=0,m=c.match(/^(\d+)-(\d+):(\d+):(\d+)$/),f=c.match(/^(\d+):(\d+):(\d+)$/),g=c.match(/^(\d+):(\d+)$/);if(m?p=parseInt(m[1],10)*24*60+parseInt(m[2],10)*60+parseInt(m[3],10):f?p=parseInt(f[1],10)*60+parseInt(f[2],10):g&&(p=parseInt(g[1],10)),p>=1){y.info("PROCESS",`Killing idle daemon child PID ${u} (idle ${p}m)`,{pid:u,minutes:p});try{process.kill(u,"SIGKILL"),e++}catch{}}}}catch{}return e}async function soe(){if(process.platform==="win32")return 0;try{let{stdout:t}=await SU('ps -eo pid,ppid,args 2>/dev/null | grep -E "claude.*haiku|claude.*output-format" | grep -v grep'),e=0;for(let r of t.trim().split(` +`)){if(!r)continue;let n=r.trim().match(/^(\d+)\s+(\d+)/);if(n&&parseInt(n[2])===1){let i=parseInt(n[1]);y.warn("PROCESS",`Killing system orphan PID ${i}`,{pid:i});try{process.kill(i,"SIGKILL"),e++}catch{}}}return e}catch{return 0}}async function ooe(t){let e=0;for(let r of gt().getRegistry().getAll().filter(n=>n.type==="sdk")){let n=r.pid,i=Number(r.sessionId),s=gt().getRegistry().getRuntimeProcess(r.id);if(!t.has(i)){y.warn("PROCESS",`Killing orphan PID ${n} (session ${i} gone)`,{pid:n,sessionDbId:i});try{s?s.kill("SIGKILL"):process.kill(n,"SIGKILL"),e++}catch{}gt().unregisterProcess(r.id),wU()}}return e+=await soe(),e+=await ioe(),e}function kU(t){return e=>{gt().assertCanSpawn("claude sdk");let r=process.platform==="win32"&&e.command.endsWith(".cmd"),n=vi(e.env??process.env),i=r?(0,zd.spawn)("cmd.exe",["/d","/c",e.command,...e.args],{cwd:e.cwd,env:n,stdio:["pipe","pipe","pipe"],signal:e.signal,windowsHide:!0}):(0,zd.spawn)(e.command,e.args,{cwd:e.cwd,env:n,stdio:["pipe","pipe","pipe"],signal:e.signal,windowsHide:!0});return i.stderr&&i.stderr.on("data",s=>{y.debug("SDK_SPAWN",`[session-${t}] stderr: ${s.toString().trim()}`)}),i.pid&&(noe(i.pid,t,i),i.on("exit",(s,o)=>{s!==0&&y.warn("SDK_SPAWN",`[session-${t}] Claude process exited`,{code:s,signal:o,pid:i.pid}),i.pid&&ag(i.pid)})),{stdin:i.stdin,stdout:i.stdout,stderr:i.stderr,get killed(){return i.killed},get exitCode(){return i.exitCode},kill:i.kill.bind(i),on:i.on.bind(i),once:i.once.bind(i),off:i.off.bind(i)}}}function $U(t,e=30*1e3){let r=setInterval(async()=>{try{let n=t(),i=await ooe(n);i>0&&y.info("PROCESS",`Reaper cleaned up ${i} orphaned processes`,{killed:i})}catch(n){y.error("PROCESS","Reaper error",{},n)}},e);return()=>clearInterval(r)}var cg=class t{dbManager;sessions=new Map;sessionQueues=new Map;onSessionDeletedCallback;pendingStore=null;constructor(e){this.dbManager=e}getPendingStore(){if(!this.pendingStore){let e=this.dbManager.getSessionStore();this.pendingStore=new Dd(e.db,3)}return this.pendingStore}setOnSessionDeleted(e){this.onSessionDeletedCallback=e}initializeSession(e,r,n){y.debug("SESSION","initializeSession called",{sessionDbId:e,promptNumber:n,has_currentUserPrompt:!!r});let i=this.sessions.get(e);if(i){y.debug("SESSION","Returning cached session",{sessionDbId:e,contentSessionId:i.contentSessionId,lastPromptNumber:i.lastPromptNumber});let c=this.dbManager.getSessionById(e);return c.project&&c.project!==i.project&&(y.debug("SESSION","Updating project from database",{sessionDbId:e,oldProject:i.project,newProject:c.project}),i.project=c.project),r?(y.debug("SESSION","Updating userPrompt for continuation",{sessionDbId:e,promptNumber:n,oldPrompt:i.userPrompt.substring(0,80),newPrompt:r.substring(0,80)}),i.userPrompt=r,i.lastPromptNumber=n||i.lastPromptNumber):y.debug("SESSION","No currentUserPrompt provided for existing session",{sessionDbId:e,promptNumber:n,usingCachedPrompt:i.userPrompt.substring(0,80)}),i}let s=this.dbManager.getSessionById(e);y.debug("SESSION","Fetched session from database",{sessionDbId:e,content_session_id:s.content_session_id,memory_session_id:s.memory_session_id}),s.memory_session_id&&y.warn("SESSION","Discarding stale memory_session_id from previous worker instance (Issue #817)",{sessionDbId:e,staleMemorySessionId:s.memory_session_id,reason:"SDK context lost on worker restart - will capture new ID"});let o=r||s.user_prompt;r?y.debug("SESSION","Initializing session with fresh userPrompt",{sessionDbId:e,promptNumber:n,userPrompt:r.substring(0,80)}):y.debug("SESSION","No currentUserPrompt provided for new session, using database",{sessionDbId:e,promptNumber:n,dbPrompt:s.user_prompt.substring(0,80)}),i={sessionDbId:e,contentSessionId:s.content_session_id,memorySessionId:null,project:s.project,userPrompt:o,pendingMessages:[],abortController:new AbortController,generatorPromise:null,lastPromptNumber:n||this.dbManager.getSessionStore().getPromptNumberFromUserPrompts(s.content_session_id),startTime:Date.now(),cumulativeInputTokens:0,cumulativeOutputTokens:0,earliestPendingTimestamp:null,conversationHistory:[],currentProvider:null,consecutiveRestarts:0,processingMessageIds:[],lastGeneratorActivity:Date.now()},y.debug("SESSION","Creating new session object (memorySessionId cleared to prevent stale resume)",{sessionDbId:e,contentSessionId:s.content_session_id,dbMemorySessionId:s.memory_session_id||"(none in DB)",memorySessionId:"(cleared - will capture fresh from SDK)",lastPromptNumber:n||this.dbManager.getSessionStore().getPromptNumberFromUserPrompts(s.content_session_id)}),this.sessions.set(e,i);let a=new TU.EventEmitter;return this.sessionQueues.set(e,a),y.info("SESSION","Session initialized",{sessionId:e,project:i.project,contentSessionId:i.contentSessionId,queueDepth:0,hasGenerator:!1}),i}getSession(e){return this.sessions.get(e)}queueObservation(e,r){let n=this.sessions.get(e);n||(n=this.initializeSession(e));let i={type:"observation",tool_name:r.tool_name,tool_input:r.tool_input,tool_response:r.tool_response,prompt_number:r.prompt_number,cwd:r.cwd};try{let o=this.getPendingStore().enqueue(e,n.contentSessionId,i),a=this.getPendingStore().getPendingCount(e),c=y.formatTool(r.tool_name,r.tool_input);y.info("QUEUE",`ENQUEUED | sessionDbId=${e} | messageId=${o} | type=observation | tool=${c} | depth=${a}`,{sessionId:e})}catch(o){throw y.error("SESSION","Failed to persist observation to DB",{sessionId:e,tool:r.tool_name},o),o}this.sessionQueues.get(e)?.emit("message")}queueSummarize(e,r){let n=this.sessions.get(e);n||(n=this.initializeSession(e));let i={type:"summarize",last_assistant_message:r};try{let o=this.getPendingStore().enqueue(e,n.contentSessionId,i),a=this.getPendingStore().getPendingCount(e);y.info("QUEUE",`ENQUEUED | sessionDbId=${e} | messageId=${o} | type=summarize | depth=${a}`,{sessionId:e})}catch(o){throw y.error("SESSION","Failed to persist summarize to DB",{sessionId:e},o),o}this.sessionQueues.get(e)?.emit("message")}async deleteSession(e){let r=this.sessions.get(e);if(!r)return;let n=Date.now()-r.startTime;if(r.abortController.abort(),r.generatorPromise){let s=r.generatorPromise.catch(()=>{y.debug("SYSTEM","Generator already failed, cleaning up",{sessionId:r.sessionDbId})}),o=new Promise(a=>{AbortSignal.timeout(3e4).addEventListener("abort",()=>a(),{once:!0})});await Promise.race([s,o]).then(()=>{},()=>{y.warn("SESSION","Generator did not exit within 30s after abort, forcing cleanup (#1099)",{sessionDbId:e})})}let i=qs(e);i&&i.process.exitCode===null&&(y.debug("SESSION",`Waiting for subprocess PID ${i.pid} to exit`,{sessionId:e,pid:i.pid}),await Fs(i,5e3));try{await gt().getRegistry().reapSession(e)}catch(s){y.warn("SESSION","Supervisor reapSession failed (non-blocking)",{sessionId:e},s)}this.sessions.delete(e),this.sessionQueues.delete(e),y.info("SESSION","Session deleted",{sessionId:e,duration:`${(n/1e3).toFixed(1)}s`,project:r.project}),this.onSessionDeletedCallback&&this.onSessionDeletedCallback()}removeSessionImmediate(e){let r=this.sessions.get(e);r&&(this.sessions.delete(e),this.sessionQueues.delete(e),y.info("SESSION","Session removed (orphaned after SDK termination)",{sessionId:e,project:r.project}),this.onSessionDeletedCallback&&this.onSessionDeletedCallback())}static MAX_SESSION_IDLE_MS=900*1e3;async reapStaleSessions(){let e=Date.now(),r=[];for(let[n,i]of this.sessions){if(i.generatorPromise||this.getPendingStore().getPendingCount(n)>0)continue;e-i.startTime>t.MAX_SESSION_IDLE_MS&&r.push(n)}for(let n of r)y.warn("SESSION",`Reaping stale session ${n} (no activity for >${Math.round(t.MAX_SESSION_IDLE_MS/6e4)}m)`,{sessionDbId:n}),await this.deleteSession(n);return r.length}async shutdownAll(){let e=Array.from(this.sessions.keys());await Promise.all(e.map(r=>this.deleteSession(r)))}hasPendingMessages(){return this.getPendingStore().hasAnyPendingWork()}getActiveSessionCount(){return this.sessions.size}getTotalQueueDepth(){let e=0;for(let r of this.sessions.values())e+=this.getPendingStore().getPendingCount(r.sessionDbId);return e}getTotalActiveWork(){return this.getTotalQueueDepth()}isAnySessionProcessing(){return this.getPendingStore().hasAnyPendingWork()}async*getMessageIterator(e){let r=this.sessions.get(e);r||(r=this.initializeSession(e));let n=this.sessionQueues.get(e);if(!n)throw new Error(`No emitter for session ${e}`);let i=new og(this.getPendingStore(),n);for await(let s of i.createIterator({sessionDbId:e,signal:r.abortController.signal,onIdleTimeout:()=>{y.info("SESSION","Triggering abort due to idle timeout to kill subprocess",{sessionDbId:e}),r.idleTimedOut=!0,r.abortController.abort()}}))r.earliestPendingTimestamp===null?r.earliestPendingTimestamp=s._originalTimestamp:r.earliestPendingTimestamp=Math.min(r.earliestPendingTimestamp,s._originalTimestamp),r.lastGeneratorActivity=Date.now(),yield s}getPendingMessageStore(){return this.getPendingStore()}};oe();var ug=class{sseClients=new Set;addClient(e){this.sseClients.add(e),y.debug("WORKER","Client connected",{total:this.sseClients.size}),e.on("close",()=>{this.removeClient(e)}),this.sendToClient(e,{type:"connected",timestamp:Date.now()})}removeClient(e){this.sseClients.delete(e),y.debug("WORKER","Client disconnected",{total:this.sseClients.size})}broadcast(e){if(this.sseClients.size===0){y.debug("WORKER","SSE broadcast skipped (no clients)",{eventType:e.type});return}let r={...e,timestamp:Date.now()},n=`data: ${JSON.stringify(r)} -// src/services/worker/DatabaseManager.ts -init_SettingsDefaultsManager(); -init_paths(); -init_logger(); +`;y.debug("WORKER","SSE broadcast sent",{eventType:e.type,clients:this.sseClients.size});for(let i of this.sseClients)i.write(n)}getClientCount(){return this.sseClients.size}sendToClient(e,r){let n=`data: ${JSON.stringify(r)} -class DatabaseManager { - sessionStore = null; - sessionSearch = null; - chromaSync = null; - async initialize() { - this.sessionStore = new SessionStore; - this.sessionSearch = new SessionSearch; - const settings = SettingsDefaultsManager.loadFromFile(USER_SETTINGS_PATH); - const chromaEnabled = settings.CLAUDE_MEM_CHROMA_ENABLED !== "false"; - if (chromaEnabled) { - this.chromaSync = new ChromaSync("claude-mem"); - } else { - logger.info("DB", "Chroma disabled via CLAUDE_MEM_CHROMA_ENABLED=false, using SQLite-only search"); - } - logger.info("DB", "Database initialized"); - } - async close() { - if (this.chromaSync) { - await this.chromaSync.close(); - this.chromaSync = null; - } - if (this.sessionStore) { - this.sessionStore.close(); - this.sessionStore = null; - } - if (this.sessionSearch) { - this.sessionSearch.close(); - this.sessionSearch = null; - } - logger.info("DB", "Database closed"); - } - getSessionStore() { - if (!this.sessionStore) { - throw new Error("Database not initialized"); - } - return this.sessionStore; - } - getSessionSearch() { - if (!this.sessionSearch) { - throw new Error("Database not initialized"); - } - return this.sessionSearch; - } - getChromaSync() { - return this.chromaSync; - } - getSessionById(sessionDbId) { - const session = this.getSessionStore().getSessionById(sessionDbId); - if (!session) { - throw new Error(`Session ${sessionDbId} not found`); - } - return session; - } -} - -// src/services/worker/SessionManager.ts -init_logger(); -init_PendingMessageStore(); -import { EventEmitter } from "events"; - -// src/services/queue/SessionQueueProcessor.ts -init_logger(); -var IDLE_TIMEOUT_MS = 3 * 60 * 1000; - -class SessionQueueProcessor { - store; - events; - constructor(store, events) { - this.store = store; - this.events = events; - } - async* createIterator(options) { - const { sessionDbId, signal, onIdleTimeout } = options; - let lastActivityTime = Date.now(); - while (!signal.aborted) { - try { - const persistentMessage = this.store.claimNextMessage(sessionDbId); - if (persistentMessage) { - lastActivityTime = Date.now(); - yield this.toPendingMessageWithId(persistentMessage); - } else { - const receivedMessage = await this.waitForMessage(signal, IDLE_TIMEOUT_MS); - if (!receivedMessage && !signal.aborted) { - const idleDuration = Date.now() - lastActivityTime; - if (idleDuration >= IDLE_TIMEOUT_MS) { - logger.info("SESSION", "Idle timeout reached, triggering abort to kill subprocess", { - sessionDbId, - idleDurationMs: idleDuration, - thresholdMs: IDLE_TIMEOUT_MS - }); - onIdleTimeout?.(); - return; - } - lastActivityTime = Date.now(); - } - } - } catch (error2) { - if (signal.aborted) - return; - logger.error("SESSION", "Error in queue processor loop", { sessionDbId }, error2); - await new Promise((resolve) => setTimeout(resolve, 1000)); - } - } - } - toPendingMessageWithId(msg) { - const pending = this.store.toPendingMessage(msg); - return { - ...pending, - _persistentId: msg.id, - _originalTimestamp: msg.created_at_epoch - }; - } - waitForMessage(signal, timeoutMs = IDLE_TIMEOUT_MS) { - return new Promise((resolve) => { - let timeoutId; - const onMessage = () => { - cleanup(); - resolve(true); - }; - const onAbort = () => { - cleanup(); - resolve(false); - }; - const onTimeout = () => { - cleanup(); - resolve(false); - }; - const cleanup = () => { - if (timeoutId !== undefined) { - clearTimeout(timeoutId); - } - this.events.off("message", onMessage); - signal.removeEventListener("abort", onAbort); - }; - this.events.once("message", onMessage); - signal.addEventListener("abort", onAbort, { once: true }); - timeoutId = setTimeout(onTimeout, timeoutMs); - }); - } -} - -// src/services/worker/ProcessRegistry.ts -init_logger(); -import { spawn as spawn3, exec as exec3 } from "child_process"; -import { promisify as promisify4 } from "util"; -var execAsync3 = promisify4(exec3); -function getTrackedProcesses() { - return getSupervisor().getRegistry().getAll().filter((record3) => record3.type === "sdk").map((record3) => { - const processRef = getSupervisor().getRegistry().getRuntimeProcess(record3.id); - if (!processRef) { - return null; - } - return { - pid: record3.pid, - sessionDbId: Number(record3.sessionId), - spawnedAt: Date.parse(record3.startedAt), - process: processRef - }; - }).filter((value) => value !== null); -} -function registerProcess(pid, sessionDbId, process4) { - getSupervisor().registerProcess(`sdk:${sessionDbId}:${pid}`, { - pid, - type: "sdk", - sessionId: sessionDbId, - startedAt: new Date().toISOString() - }, process4); - logger.info("PROCESS", `Registered PID ${pid} for session ${sessionDbId}`, { pid, sessionDbId }); -} -function unregisterProcess(pid) { - for (const record3 of getSupervisor().getRegistry().getByPid(pid)) { - if (record3.type === "sdk") { - getSupervisor().unregisterProcess(record3.id); - } - } - logger.debug("PROCESS", `Unregistered PID ${pid}`, { pid }); - notifySlotAvailable(); -} -function getProcessBySession(sessionDbId) { - const matches = getTrackedProcesses().filter((info) => info.sessionDbId === sessionDbId); - if (matches.length > 1) { - logger.warn("PROCESS", `Multiple processes found for session ${sessionDbId}`, { - count: matches.length, - pids: matches.map((m) => m.pid) - }); - } - return matches[0]; -} -function getActiveCount() { - return getSupervisor().getRegistry().getAll().filter((record3) => record3.type === "sdk").length; -} -var slotWaiters = []; -function notifySlotAvailable() { - const waiter = slotWaiters.shift(); - if (waiter) - waiter(); -} -var TOTAL_PROCESS_HARD_CAP = 10; -async function waitForSlot(maxConcurrent, timeoutMs = 60000) { - const activeCount = getActiveCount(); - if (activeCount >= TOTAL_PROCESS_HARD_CAP) { - throw new Error(`Hard cap exceeded: ${activeCount} processes in registry (cap=${TOTAL_PROCESS_HARD_CAP}). Refusing to spawn more.`); - } - if (activeCount < maxConcurrent) - return; - logger.info("PROCESS", `Pool limit reached (${activeCount}/${maxConcurrent}), waiting for slot...`); - return new Promise((resolve, reject) => { - const timeout = setTimeout(() => { - const idx = slotWaiters.indexOf(onSlot); - if (idx >= 0) - slotWaiters.splice(idx, 1); - reject(new Error(`Timed out waiting for agent pool slot after ${timeoutMs}ms`)); - }, timeoutMs); - const onSlot = () => { - clearTimeout(timeout); - if (getActiveCount() < maxConcurrent) { - resolve(); - } else { - slotWaiters.push(onSlot); - } - }; - slotWaiters.push(onSlot); - }); -} -async function ensureProcessExit(tracked, timeoutMs = 5000) { - const { pid, process: proc } = tracked; - if (proc.exitCode !== null) { - unregisterProcess(pid); - return; - } - const exitPromise = new Promise((resolve) => { - proc.once("exit", () => resolve()); - }); - const timeoutPromise = new Promise((resolve) => { - setTimeout(resolve, timeoutMs); - }); - await Promise.race([exitPromise, timeoutPromise]); - if (proc.exitCode !== null) { - unregisterProcess(pid); - return; - } - logger.warn("PROCESS", `PID ${pid} did not exit after ${timeoutMs}ms, sending SIGKILL`, { pid, timeoutMs }); - try { - proc.kill("SIGKILL"); - } catch {} - const sigkillExitPromise = new Promise((resolve) => { - proc.once("exit", () => resolve()); - }); - const sigkillTimeout = new Promise((resolve) => { - setTimeout(resolve, 1000); - }); - await Promise.race([sigkillExitPromise, sigkillTimeout]); - unregisterProcess(pid); -} -async function killIdleDaemonChildren() { - if (process.platform === "win32") { - return 0; - } - const daemonPid = process.pid; - let killed = 0; - try { - const { stdout } = await execAsync3('ps -eo pid,ppid,%cpu,etime,comm 2>/dev/null | grep "claude$" || true'); - for (const line of stdout.trim().split(` -`)) { - if (!line) - continue; - const parts = line.trim().split(/\s+/); - if (parts.length < 5) - continue; - const [pidStr, ppidStr, cpuStr, etime] = parts; - const pid = parseInt(pidStr, 10); - const ppid = parseInt(ppidStr, 10); - const cpu = parseFloat(cpuStr); - if (ppid !== daemonPid) - continue; - if (cpu > 0) - continue; - let minutes = 0; - const dayMatch = etime.match(/^(\d+)-(\d+):(\d+):(\d+)$/); - const hourMatch = etime.match(/^(\d+):(\d+):(\d+)$/); - const minMatch = etime.match(/^(\d+):(\d+)$/); - if (dayMatch) { - minutes = parseInt(dayMatch[1], 10) * 24 * 60 + parseInt(dayMatch[2], 10) * 60 + parseInt(dayMatch[3], 10); - } else if (hourMatch) { - minutes = parseInt(hourMatch[1], 10) * 60 + parseInt(hourMatch[2], 10); - } else if (minMatch) { - minutes = parseInt(minMatch[1], 10); - } - if (minutes >= 1) { - logger.info("PROCESS", `Killing idle daemon child PID ${pid} (idle ${minutes}m)`, { pid, minutes }); - try { - process.kill(pid, "SIGKILL"); - killed++; - } catch {} - } - } - } catch {} - return killed; -} -async function killSystemOrphans() { - if (process.platform === "win32") { - return 0; - } - try { - const { stdout } = await execAsync3('ps -eo pid,ppid,args 2>/dev/null | grep -E "claude.*haiku|claude.*output-format" | grep -v grep'); - let killed = 0; - for (const line of stdout.trim().split(` -`)) { - if (!line) - continue; - const match = line.trim().match(/^(\d+)\s+(\d+)/); - if (match && parseInt(match[2]) === 1) { - const orphanPid = parseInt(match[1]); - logger.warn("PROCESS", `Killing system orphan PID ${orphanPid}`, { pid: orphanPid }); - try { - process.kill(orphanPid, "SIGKILL"); - killed++; - } catch {} - } - } - return killed; - } catch { - return 0; - } -} -async function reapOrphanedProcesses(activeSessionIds) { - let killed = 0; - for (const record3 of getSupervisor().getRegistry().getAll().filter((entry) => entry.type === "sdk")) { - const pid = record3.pid; - const sessionDbId = Number(record3.sessionId); - const processRef = getSupervisor().getRegistry().getRuntimeProcess(record3.id); - if (activeSessionIds.has(sessionDbId)) - continue; - logger.warn("PROCESS", `Killing orphan PID ${pid} (session ${sessionDbId} gone)`, { pid, sessionDbId }); - try { - if (processRef) { - processRef.kill("SIGKILL"); - } else { - process.kill(pid, "SIGKILL"); - } - killed++; - } catch {} - getSupervisor().unregisterProcess(record3.id); - notifySlotAvailable(); - } - killed += await killSystemOrphans(); - killed += await killIdleDaemonChildren(); - return killed; -} -function createPidCapturingSpawn(sessionDbId) { - return (spawnOptions) => { - getSupervisor().assertCanSpawn("claude sdk"); - const useCmdWrapper = process.platform === "win32" && spawnOptions.command.endsWith(".cmd"); - const env = sanitizeEnv(spawnOptions.env ?? process.env); - const child = useCmdWrapper ? spawn3("cmd.exe", ["/d", "/c", spawnOptions.command, ...spawnOptions.args], { - cwd: spawnOptions.cwd, - env, - stdio: ["pipe", "pipe", "pipe"], - signal: spawnOptions.signal, - windowsHide: true - }) : spawn3(spawnOptions.command, spawnOptions.args, { - cwd: spawnOptions.cwd, - env, - stdio: ["pipe", "pipe", "pipe"], - signal: spawnOptions.signal, - windowsHide: true - }); - if (child.stderr) { - child.stderr.on("data", (data) => { - logger.debug("SDK_SPAWN", `[session-${sessionDbId}] stderr: ${data.toString().trim()}`); - }); - } - if (child.pid) { - registerProcess(child.pid, sessionDbId, child); - child.on("exit", (code, signal) => { - if (code !== 0) { - logger.warn("SDK_SPAWN", `[session-${sessionDbId}] Claude process exited`, { code, signal, pid: child.pid }); - } - if (child.pid) { - unregisterProcess(child.pid); - } - }); - } - return { - stdin: child.stdin, - stdout: child.stdout, - stderr: child.stderr, - get killed() { - return child.killed; - }, - get exitCode() { - return child.exitCode; - }, - kill: child.kill.bind(child), - on: child.on.bind(child), - once: child.once.bind(child), - off: child.off.bind(child) - }; - }; -} -function startOrphanReaper(getActiveSessionIds, intervalMs = 30 * 1000) { - const interval = setInterval(async () => { - try { - const activeIds = getActiveSessionIds(); - const killed = await reapOrphanedProcesses(activeIds); - if (killed > 0) { - logger.info("PROCESS", `Reaper cleaned up ${killed} orphaned processes`, { killed }); - } - } catch (error2) { - logger.error("PROCESS", "Reaper error", {}, error2); - } - }, intervalMs); - return () => clearInterval(interval); -} - -// src/services/worker/SessionManager.ts -class SessionManager { - dbManager; - sessions = new Map; - sessionQueues = new Map; - onSessionDeletedCallback; - pendingStore = null; - constructor(dbManager) { - this.dbManager = dbManager; - } - getPendingStore() { - if (!this.pendingStore) { - const sessionStore = this.dbManager.getSessionStore(); - this.pendingStore = new PendingMessageStore(sessionStore.db, 3); - } - return this.pendingStore; - } - setOnSessionDeleted(callback) { - this.onSessionDeletedCallback = callback; - } - initializeSession(sessionDbId, currentUserPrompt, promptNumber) { - logger.debug("SESSION", "initializeSession called", { - sessionDbId, - promptNumber, - has_currentUserPrompt: !!currentUserPrompt - }); - let session = this.sessions.get(sessionDbId); - if (session) { - logger.debug("SESSION", "Returning cached session", { - sessionDbId, - contentSessionId: session.contentSessionId, - lastPromptNumber: session.lastPromptNumber - }); - const dbSession2 = this.dbManager.getSessionById(sessionDbId); - if (dbSession2.project && dbSession2.project !== session.project) { - logger.debug("SESSION", "Updating project from database", { - sessionDbId, - oldProject: session.project, - newProject: dbSession2.project - }); - session.project = dbSession2.project; - } - if (currentUserPrompt) { - logger.debug("SESSION", "Updating userPrompt for continuation", { - sessionDbId, - promptNumber, - oldPrompt: session.userPrompt.substring(0, 80), - newPrompt: currentUserPrompt.substring(0, 80) - }); - session.userPrompt = currentUserPrompt; - session.lastPromptNumber = promptNumber || session.lastPromptNumber; - } else { - logger.debug("SESSION", "No currentUserPrompt provided for existing session", { - sessionDbId, - promptNumber, - usingCachedPrompt: session.userPrompt.substring(0, 80) - }); - } - return session; - } - const dbSession = this.dbManager.getSessionById(sessionDbId); - logger.debug("SESSION", "Fetched session from database", { - sessionDbId, - content_session_id: dbSession.content_session_id, - memory_session_id: dbSession.memory_session_id - }); - if (dbSession.memory_session_id) { - logger.warn("SESSION", `Discarding stale memory_session_id from previous worker instance (Issue #817)`, { - sessionDbId, - staleMemorySessionId: dbSession.memory_session_id, - reason: "SDK context lost on worker restart - will capture new ID" - }); - } - const userPrompt = currentUserPrompt || dbSession.user_prompt; - if (!currentUserPrompt) { - logger.debug("SESSION", "No currentUserPrompt provided for new session, using database", { - sessionDbId, - promptNumber, - dbPrompt: dbSession.user_prompt.substring(0, 80) - }); - } else { - logger.debug("SESSION", "Initializing session with fresh userPrompt", { - sessionDbId, - promptNumber, - userPrompt: currentUserPrompt.substring(0, 80) - }); - } - session = { - sessionDbId, - contentSessionId: dbSession.content_session_id, - memorySessionId: null, - project: dbSession.project, - userPrompt, - pendingMessages: [], - abortController: new AbortController, - generatorPromise: null, - lastPromptNumber: promptNumber || this.dbManager.getSessionStore().getPromptNumberFromUserPrompts(dbSession.content_session_id), - startTime: Date.now(), - cumulativeInputTokens: 0, - cumulativeOutputTokens: 0, - earliestPendingTimestamp: null, - conversationHistory: [], - currentProvider: null, - consecutiveRestarts: 0, - processingMessageIds: [], - lastGeneratorActivity: Date.now() - }; - logger.debug("SESSION", "Creating new session object (memorySessionId cleared to prevent stale resume)", { - sessionDbId, - contentSessionId: dbSession.content_session_id, - dbMemorySessionId: dbSession.memory_session_id || "(none in DB)", - memorySessionId: "(cleared - will capture fresh from SDK)", - lastPromptNumber: promptNumber || this.dbManager.getSessionStore().getPromptNumberFromUserPrompts(dbSession.content_session_id) - }); - this.sessions.set(sessionDbId, session); - const emitter = new EventEmitter; - this.sessionQueues.set(sessionDbId, emitter); - logger.info("SESSION", "Session initialized", { - sessionId: sessionDbId, - project: session.project, - contentSessionId: session.contentSessionId, - queueDepth: 0, - hasGenerator: false - }); - return session; - } - getSession(sessionDbId) { - return this.sessions.get(sessionDbId); - } - queueObservation(sessionDbId, data) { - let session = this.sessions.get(sessionDbId); - if (!session) { - session = this.initializeSession(sessionDbId); - } - const message = { - type: "observation", - tool_name: data.tool_name, - tool_input: data.tool_input, - tool_response: data.tool_response, - prompt_number: data.prompt_number, - cwd: data.cwd - }; - try { - const messageId = this.getPendingStore().enqueue(sessionDbId, session.contentSessionId, message); - const queueDepth = this.getPendingStore().getPendingCount(sessionDbId); - const toolSummary = logger.formatTool(data.tool_name, data.tool_input); - logger.info("QUEUE", `ENQUEUED | sessionDbId=${sessionDbId} | messageId=${messageId} | type=observation | tool=${toolSummary} | depth=${queueDepth}`, { - sessionId: sessionDbId - }); - } catch (error2) { - logger.error("SESSION", "Failed to persist observation to DB", { - sessionId: sessionDbId, - tool: data.tool_name - }, error2); - throw error2; - } - const emitter = this.sessionQueues.get(sessionDbId); - emitter?.emit("message"); - } - queueSummarize(sessionDbId, lastAssistantMessage) { - let session = this.sessions.get(sessionDbId); - if (!session) { - session = this.initializeSession(sessionDbId); - } - const message = { - type: "summarize", - last_assistant_message: lastAssistantMessage - }; - try { - const messageId = this.getPendingStore().enqueue(sessionDbId, session.contentSessionId, message); - const queueDepth = this.getPendingStore().getPendingCount(sessionDbId); - logger.info("QUEUE", `ENQUEUED | sessionDbId=${sessionDbId} | messageId=${messageId} | type=summarize | depth=${queueDepth}`, { - sessionId: sessionDbId - }); - } catch (error2) { - logger.error("SESSION", "Failed to persist summarize to DB", { - sessionId: sessionDbId - }, error2); - throw error2; - } - const emitter = this.sessionQueues.get(sessionDbId); - emitter?.emit("message"); - } - async deleteSession(sessionDbId) { - const session = this.sessions.get(sessionDbId); - if (!session) { - return; - } - const sessionDuration = Date.now() - session.startTime; - session.abortController.abort(); - if (session.generatorPromise) { - const generatorDone = session.generatorPromise.catch(() => { - logger.debug("SYSTEM", "Generator already failed, cleaning up", { sessionId: session.sessionDbId }); - }); - const timeoutDone = new Promise((resolve) => { - AbortSignal.timeout(30000).addEventListener("abort", () => resolve(), { once: true }); - }); - await Promise.race([generatorDone, timeoutDone]).then(() => {}, () => { - logger.warn("SESSION", "Generator did not exit within 30s after abort, forcing cleanup (#1099)", { sessionDbId }); - }); - } - const tracked = getProcessBySession(sessionDbId); - if (tracked && tracked.process.exitCode === null) { - logger.debug("SESSION", `Waiting for subprocess PID ${tracked.pid} to exit`, { - sessionId: sessionDbId, - pid: tracked.pid - }); - await ensureProcessExit(tracked, 5000); - } - try { - await getSupervisor().getRegistry().reapSession(sessionDbId); - } catch (error2) { - logger.warn("SESSION", "Supervisor reapSession failed (non-blocking)", { - sessionId: sessionDbId - }, error2); - } - this.sessions.delete(sessionDbId); - this.sessionQueues.delete(sessionDbId); - logger.info("SESSION", "Session deleted", { - sessionId: sessionDbId, - duration: `${(sessionDuration / 1000).toFixed(1)}s`, - project: session.project - }); - if (this.onSessionDeletedCallback) { - this.onSessionDeletedCallback(); - } - } - removeSessionImmediate(sessionDbId) { - const session = this.sessions.get(sessionDbId); - if (!session) - return; - this.sessions.delete(sessionDbId); - this.sessionQueues.delete(sessionDbId); - logger.info("SESSION", "Session removed (orphaned after SDK termination)", { - sessionId: sessionDbId, - project: session.project - }); - if (this.onSessionDeletedCallback) { - this.onSessionDeletedCallback(); - } - } - static MAX_SESSION_IDLE_MS = 15 * 60 * 1000; - async reapStaleSessions() { - const now = Date.now(); - const staleSessionIds = []; - for (const [sessionDbId, session] of this.sessions) { - if (session.generatorPromise) - continue; - const pendingCount = this.getPendingStore().getPendingCount(sessionDbId); - if (pendingCount > 0) - continue; - const sessionAge = now - session.startTime; - if (sessionAge > SessionManager.MAX_SESSION_IDLE_MS) { - staleSessionIds.push(sessionDbId); - } - } - for (const sessionDbId of staleSessionIds) { - logger.warn("SESSION", `Reaping stale session ${sessionDbId} (no activity for >${Math.round(SessionManager.MAX_SESSION_IDLE_MS / 60000)}m)`, { sessionDbId }); - await this.deleteSession(sessionDbId); - } - return staleSessionIds.length; - } - async shutdownAll() { - const sessionIds = Array.from(this.sessions.keys()); - await Promise.all(sessionIds.map((id) => this.deleteSession(id))); - } - hasPendingMessages() { - return this.getPendingStore().hasAnyPendingWork(); - } - getActiveSessionCount() { - return this.sessions.size; - } - getTotalQueueDepth() { - let total = 0; - for (const session of this.sessions.values()) { - total += this.getPendingStore().getPendingCount(session.sessionDbId); - } - return total; - } - getTotalActiveWork() { - return this.getTotalQueueDepth(); - } - isAnySessionProcessing() { - return this.getPendingStore().hasAnyPendingWork(); - } - async* getMessageIterator(sessionDbId) { - let session = this.sessions.get(sessionDbId); - if (!session) { - session = this.initializeSession(sessionDbId); - } - const emitter = this.sessionQueues.get(sessionDbId); - if (!emitter) { - throw new Error(`No emitter for session ${sessionDbId}`); - } - const processor = new SessionQueueProcessor(this.getPendingStore(), emitter); - for await (const message of processor.createIterator({ - sessionDbId, - signal: session.abortController.signal, - onIdleTimeout: () => { - logger.info("SESSION", "Triggering abort due to idle timeout to kill subprocess", { sessionDbId }); - session.idleTimedOut = true; - session.abortController.abort(); - } - })) { - if (session.earliestPendingTimestamp === null) { - session.earliestPendingTimestamp = message._originalTimestamp; - } else { - session.earliestPendingTimestamp = Math.min(session.earliestPendingTimestamp, message._originalTimestamp); - } - session.lastGeneratorActivity = Date.now(); - yield message; - } - } - getPendingMessageStore() { - return this.getPendingStore(); - } -} - -// src/services/worker/SSEBroadcaster.ts -init_logger(); - -class SSEBroadcaster { - sseClients = new Set; - addClient(res) { - this.sseClients.add(res); - logger.debug("WORKER", "Client connected", { total: this.sseClients.size }); - res.on("close", () => { - this.removeClient(res); - }); - this.sendToClient(res, { type: "connected", timestamp: Date.now() }); - } - removeClient(res) { - this.sseClients.delete(res); - logger.debug("WORKER", "Client disconnected", { total: this.sseClients.size }); - } - broadcast(event) { - if (this.sseClients.size === 0) { - logger.debug("WORKER", "SSE broadcast skipped (no clients)", { eventType: event.type }); - return; - } - const eventWithTimestamp = { ...event, timestamp: Date.now() }; - const data = `data: ${JSON.stringify(eventWithTimestamp)} - -`; - logger.debug("WORKER", "SSE broadcast sent", { eventType: event.type, clients: this.sseClients.size }); - for (const client of this.sseClients) { - client.write(data); - } - } - getClientCount() { - return this.sseClients.size; - } - sendToClient(res, event) { - const data = `data: ${JSON.stringify(event)} - -`; - res.write(data); - } -} - -// src/services/worker/SDKAgent.ts -init_logger(); -import { execSync as execSync4 } from "child_process"; -import { homedir as homedir12 } from "os"; -import path13 from "path"; - -// src/sdk/prompts.ts -init_logger(); -function buildInitPrompt(project, sessionId, userPrompt, mode) { - return `${mode.prompts.system_identity} +`;e.write(n)}};var s$=require("child_process"),aq=require("os"),cq=Ue(require("path"),1);oe();oe();function kc(t,e,r,n){return`${n.prompts.system_identity} - ${userPrompt} + ${r} ${new Date().toISOString().split("T")[0]} -${mode.prompts.observer_role} +${n.prompts.observer_role} -${mode.prompts.spatial_awareness} +${n.prompts.spatial_awareness} -${mode.prompts.recording_focus} +${n.prompts.recording_focus} -${mode.prompts.skip_guidance} +${n.prompts.skip_guidance} -${mode.prompts.output_format_header} +${n.prompts.output_format_header} \`\`\`xml - [ ${mode.observation_types.map((t) => t.id).join(" | ")} ] + [ ${n.observation_types.map(i=>i.id).join(" | ")} ] - ${mode.prompts.xml_title_placeholder} - ${mode.prompts.xml_subtitle_placeholder} + ${n.prompts.xml_title_placeholder} + ${n.prompts.xml_subtitle_placeholder} - ${mode.prompts.xml_fact_placeholder} - ${mode.prompts.xml_fact_placeholder} - ${mode.prompts.xml_fact_placeholder} + ${n.prompts.xml_fact_placeholder} + ${n.prompts.xml_fact_placeholder} + ${n.prompts.xml_fact_placeholder} - ${mode.prompts.xml_narrative_placeholder} + ${n.prompts.xml_narrative_placeholder} - ${mode.prompts.xml_concept_placeholder} - ${mode.prompts.xml_concept_placeholder} + ${n.prompts.xml_concept_placeholder} + ${n.prompts.xml_concept_placeholder} - ${mode.prompts.xml_file_placeholder} - ${mode.prompts.xml_file_placeholder} + ${n.prompts.xml_file_placeholder} + ${n.prompts.xml_file_placeholder} - ${mode.prompts.xml_file_placeholder} - ${mode.prompts.xml_file_placeholder} + ${n.prompts.xml_file_placeholder} + ${n.prompts.xml_file_placeholder} \`\`\` -${mode.prompts.format_examples} +${n.prompts.format_examples} -${mode.prompts.footer} +${n.prompts.footer} -${mode.prompts.header_memory_start}`; -} -function buildObservationPrompt(obs) { - let toolInput; - let toolOutput; - try { - toolInput = typeof obs.tool_input === "string" ? JSON.parse(obs.tool_input) : obs.tool_input; - } catch (error2) { - logger.debug("SDK", "Tool input is plain string, using as-is", { - toolName: obs.tool_name - }, error2); - toolInput = obs.tool_input; - } - try { - toolOutput = typeof obs.tool_output === "string" ? JSON.parse(obs.tool_output) : obs.tool_output; - } catch (error2) { - logger.debug("SDK", "Tool output is plain string, using as-is", { - toolName: obs.tool_name - }, error2); - toolOutput = obs.tool_output; - } - return ` - ${obs.tool_name} - ${new Date(obs.created_at_epoch).toISOString()}${obs.cwd ? ` - ${obs.cwd}` : ""} - ${JSON.stringify(toolInput, null, 2)} - ${JSON.stringify(toolOutput, null, 2)} -`; -} -function buildSummaryPrompt(session, mode) { - const lastAssistantMessage = session.last_assistant_message || (() => { - logger.error("SDK", "Missing last_assistant_message in session for summary prompt", { - sessionId: session.id - }); - return ""; - })(); - return `--- MODE SWITCH: PROGRESS SUMMARY --- +${n.prompts.header_memory_start}`}function $c(t){let e,r;try{e=typeof t.tool_input=="string"?JSON.parse(t.tool_input):t.tool_input}catch(n){y.debug("SDK","Tool input is plain string, using as-is",{toolName:t.tool_name},n),e=t.tool_input}try{r=typeof t.tool_output=="string"?JSON.parse(t.tool_output):t.tool_output}catch(n){y.debug("SDK","Tool output is plain string, using as-is",{toolName:t.tool_name},n),r=t.tool_output}return` + ${t.tool_name} + ${new Date(t.created_at_epoch).toISOString()}${t.cwd?` + ${t.cwd}`:""} + ${JSON.stringify(e,null,2)} + ${JSON.stringify(r,null,2)} +`}function Tc(t,e){let r=t.last_assistant_message||(y.error("SDK","Missing last_assistant_message in session for summary prompt",{sessionId:t.id}),"");return`--- MODE SWITCH: PROGRESS SUMMARY --- Do NOT output tags. This is a summary request, not an observation request. Your response MUST use tags ONLY. Any output will be discarded. -${mode.prompts.header_summary_checkpoint} -${mode.prompts.summary_instruction} +${e.prompts.header_summary_checkpoint} +${e.prompts.summary_instruction} -${mode.prompts.summary_context_label} -${lastAssistantMessage} +${e.prompts.summary_context_label} +${r} -${mode.prompts.summary_format_instruction} +${e.prompts.summary_format_instruction} - ${mode.prompts.xml_summary_request_placeholder} - ${mode.prompts.xml_summary_investigated_placeholder} - ${mode.prompts.xml_summary_learned_placeholder} - ${mode.prompts.xml_summary_completed_placeholder} - ${mode.prompts.xml_summary_next_steps_placeholder} - ${mode.prompts.xml_summary_notes_placeholder} + ${e.prompts.xml_summary_request_placeholder} + ${e.prompts.xml_summary_investigated_placeholder} + ${e.prompts.xml_summary_learned_placeholder} + ${e.prompts.xml_summary_completed_placeholder} + ${e.prompts.xml_summary_next_steps_placeholder} + ${e.prompts.xml_summary_notes_placeholder} -${mode.prompts.summary_footer}`; -} -function buildContinuationPrompt(userPrompt, promptNumber, contentSessionId, mode) { - return `${mode.prompts.continuation_greeting} +${e.prompts.summary_footer}`}function Ic(t,e,r,n){return`${n.prompts.continuation_greeting} - ${userPrompt} + ${t} ${new Date().toISOString().split("T")[0]} -${mode.prompts.system_identity} +${n.prompts.system_identity} -${mode.prompts.observer_role} +${n.prompts.observer_role} -${mode.prompts.spatial_awareness} +${n.prompts.spatial_awareness} -${mode.prompts.recording_focus} +${n.prompts.recording_focus} -${mode.prompts.skip_guidance} +${n.prompts.skip_guidance} -${mode.prompts.continuation_instruction} +${n.prompts.continuation_instruction} -${mode.prompts.output_format_header} +${n.prompts.output_format_header} \`\`\`xml - [ ${mode.observation_types.map((t) => t.id).join(" | ")} ] + [ ${n.observation_types.map(i=>i.id).join(" | ")} ] - ${mode.prompts.xml_title_placeholder} - ${mode.prompts.xml_subtitle_placeholder} + ${n.prompts.xml_title_placeholder} + ${n.prompts.xml_subtitle_placeholder} - ${mode.prompts.xml_fact_placeholder} - ${mode.prompts.xml_fact_placeholder} - ${mode.prompts.xml_fact_placeholder} + ${n.prompts.xml_fact_placeholder} + ${n.prompts.xml_fact_placeholder} + ${n.prompts.xml_fact_placeholder} - ${mode.prompts.xml_narrative_placeholder} + ${n.prompts.xml_narrative_placeholder} - ${mode.prompts.xml_concept_placeholder} - ${mode.prompts.xml_concept_placeholder} + ${n.prompts.xml_concept_placeholder} + ${n.prompts.xml_concept_placeholder} - ${mode.prompts.xml_file_placeholder} - ${mode.prompts.xml_file_placeholder} + ${n.prompts.xml_file_placeholder} + ${n.prompts.xml_file_placeholder} - ${mode.prompts.xml_file_placeholder} - ${mode.prompts.xml_file_placeholder} + ${n.prompts.xml_file_placeholder} + ${n.prompts.xml_file_placeholder} \`\`\` -${mode.prompts.format_examples} - -${mode.prompts.footer} - -${mode.prompts.header_memory_continued}`; -} - -// src/services/worker/SDKAgent.ts -init_SettingsDefaultsManager(); -init_paths(); -init_ModeManager(); - -// src/services/worker/agents/types.ts -var FALLBACK_ERROR_PATTERNS = [ - "429", - "500", - "502", - "503", - "ECONNREFUSED", - "ETIMEDOUT", - "fetch failed" -]; -// src/services/worker/agents/ResponseProcessor.ts -init_logger(); - -// src/sdk/parser.ts -init_logger(); -init_ModeManager(); -function parseObservations(text, correlationId) { - const observations = []; - const observationRegex = /([\s\S]*?)<\/observation>/g; - let match; - while ((match = observationRegex.exec(text)) !== null) { - const obsContent = match[1]; - const type = extractField(obsContent, "type"); - const title = extractField(obsContent, "title"); - const subtitle = extractField(obsContent, "subtitle"); - const narrative = extractField(obsContent, "narrative"); - const facts = extractArrayElements(obsContent, "facts", "fact"); - const concepts = extractArrayElements(obsContent, "concepts", "concept"); - const files_read = extractArrayElements(obsContent, "files_read", "file"); - const files_modified = extractArrayElements(obsContent, "files_modified", "file"); - const mode = ModeManager.getInstance().getActiveMode(); - const validTypes = mode.observation_types.map((t) => t.id); - const fallbackType = validTypes[0]; - let finalType = fallbackType; - if (type) { - if (validTypes.includes(type.trim())) { - finalType = type.trim(); - } else { - logger.error("PARSER", `Invalid observation type: ${type}, using "${fallbackType}"`, { correlationId }); - } - } else { - logger.error("PARSER", `Observation missing type field, using "${fallbackType}"`, { correlationId }); - } - const cleanedConcepts = concepts.filter((c) => c !== finalType); - if (cleanedConcepts.length !== concepts.length) { - logger.error("PARSER", "Removed observation type from concepts array", { - correlationId, - type: finalType, - originalConcepts: concepts, - cleanedConcepts - }); - } - observations.push({ - type: finalType, - title, - subtitle, - facts, - narrative, - concepts: cleanedConcepts, - files_read, - files_modified - }); - } - return observations; -} -function parseSummary(text, sessionId) { - const skipRegex = //; - const skipMatch = skipRegex.exec(text); - if (skipMatch) { - logger.info("PARSER", "Summary skipped", { - sessionId, - reason: skipMatch[1] - }); - return null; - } - const summaryRegex = /([\s\S]*?)<\/summary>/; - const summaryMatch = summaryRegex.exec(text); - if (!summaryMatch) { - if (//.test(text)) { - logger.warn("PARSER", "Summary response contained tags instead of — prompt conditioning may need strengthening", { sessionId }); - } - return null; - } - const summaryContent = summaryMatch[1]; - const request = extractField(summaryContent, "request"); - const investigated = extractField(summaryContent, "investigated"); - const learned = extractField(summaryContent, "learned"); - const completed = extractField(summaryContent, "completed"); - const next_steps = extractField(summaryContent, "next_steps"); - const notes = extractField(summaryContent, "notes"); - return { - request, - investigated, - learned, - completed, - next_steps, - notes - }; -} -function extractField(content, fieldName) { - const regex = new RegExp(`<${fieldName}>([\\s\\S]*?)`); - const match = regex.exec(content); - if (!match) - return null; - const trimmed = match[1].trim(); - return trimmed === "" ? null : trimmed; -} -function extractArrayElements(content, arrayName, elementName) { - const elements = []; - const arrayRegex = new RegExp(`<${arrayName}>([\\s\\S]*?)`); - const arrayMatch = arrayRegex.exec(content); - if (!arrayMatch) { - return elements; - } - const arrayContent = arrayMatch[1]; - const elementRegex = new RegExp(`<${elementName}>([\\s\\S]*?)`, "g"); - let elementMatch; - while ((elementMatch = elementRegex.exec(arrayContent)) !== null) { - const trimmed = elementMatch[1].trim(); - if (trimmed) { - elements.push(trimmed); - } - } - return elements; -} - -// src/utils/claude-md-utils.ts -init_logger(); -init_timeline_formatting(); -init_SettingsDefaultsManager(); -init_worker_utils(); -import { existsSync as existsSync12, readFileSync as readFileSync13, writeFileSync as writeFileSync7, renameSync as renameSync2 } from "fs"; -import path12 from "path"; -import os2 from "os"; -var SETTINGS_PATH = path12.join(os2.homedir(), ".claude-mem", "settings.json"); -function hasConsecutiveDuplicateSegments(resolvedPath) { - const segments = resolvedPath.split(path12.sep).filter((s) => s && s !== "." && s !== ".."); - for (let i = 1;i < segments.length; i++) { - if (segments[i] === segments[i - 1]) - return true; - } - return false; -} -function isValidPathForClaudeMd(filePath, projectRoot) { - if (!filePath || !filePath.trim()) - return false; - if (filePath.startsWith("~")) - return false; - if (filePath.startsWith("http://") || filePath.startsWith("https://")) - return false; - if (filePath.includes(" ")) - return false; - if (filePath.includes("#")) - return false; - if (projectRoot) { - const resolved = path12.isAbsolute(filePath) ? filePath : path12.resolve(projectRoot, filePath); - const normalizedRoot = path12.resolve(projectRoot); - if (!resolved.startsWith(normalizedRoot + path12.sep) && resolved !== normalizedRoot) { - return false; - } - if (hasConsecutiveDuplicateSegments(resolved)) { - return false; - } - } - return true; -} -function replaceTaggedContent(existingContent, newContent) { - const startTag = ""; - const endTag = ""; - if (!existingContent) { - return `${startTag} -${newContent} -${endTag}`; - } - const startIdx = existingContent.indexOf(startTag); - const endIdx = existingContent.indexOf(endTag); - if (startIdx !== -1 && endIdx !== -1) { - return existingContent.substring(0, startIdx) + `${startTag} -${newContent} -${endTag}` + existingContent.substring(endIdx + endTag.length); - } - return existingContent + ` - -${startTag} -${newContent} -${endTag}`; -} -function writeClaudeMdToFolder(folderPath, newContent) { - const resolvedPath = path12.resolve(folderPath); - if (resolvedPath.includes("/.git/") || resolvedPath.includes("\\.git\\") || resolvedPath.endsWith("/.git") || resolvedPath.endsWith("\\.git")) - return; - const claudeMdPath = path12.join(folderPath, "CLAUDE.md"); - const tempFile = `${claudeMdPath}.tmp`; - if (!existsSync12(folderPath)) { - logger.debug("FOLDER_INDEX", "Skipping non-existent folder", { folderPath }); - return; - } - let existingContent = ""; - if (existsSync12(claudeMdPath)) { - existingContent = readFileSync13(claudeMdPath, "utf-8"); - } - const finalContent = replaceTaggedContent(existingContent, newContent); - writeFileSync7(tempFile, finalContent); - renameSync2(tempFile, claudeMdPath); -} -function formatTimelineForClaudeMd(timelineText) { - const lines = []; - lines.push("# Recent Activity"); - lines.push(""); - const apiLines = timelineText.split(` -`); - const observations = []; - let lastTimeStr = ""; - let currentDate = null; - for (const line of apiLines) { - const dateMatch = line.match(/^###\s+(.+)$/); - if (dateMatch) { - const dateStr = dateMatch[1].trim(); - const parsedDate = new Date(dateStr); - if (!isNaN(parsedDate.getTime())) { - currentDate = parsedDate; - } - continue; - } - const match = line.match(/^\|\s*(#[S]?\d+)\s*\|\s*([^|]+)\s*\|\s*([^|]+)\s*\|\s*([^|]+)\s*\|\s*([^|]+)\s*\|/); - if (match) { - const [, id, timeStr, typeEmoji, title, tokens] = match; - let time3; - if (timeStr.trim() === "″" || timeStr.trim() === '"') { - time3 = lastTimeStr; - } else { - time3 = timeStr.trim(); - lastTimeStr = time3; - } - const baseDate = currentDate ? new Date(currentDate) : new Date; - const timeParts = time3.match(/(\d+):(\d+)\s*(AM|PM)/i); - let epoch = baseDate.getTime(); - if (timeParts) { - let hours = parseInt(timeParts[1], 10); - const minutes = parseInt(timeParts[2], 10); - const isPM = timeParts[3].toUpperCase() === "PM"; - if (isPM && hours !== 12) - hours += 12; - if (!isPM && hours === 12) - hours = 0; - baseDate.setHours(hours, minutes, 0, 0); - epoch = baseDate.getTime(); - } - observations.push({ - id: id.trim(), - time: time3, - typeEmoji: typeEmoji.trim(), - title: title.trim(), - tokens: tokens.trim(), - epoch - }); - } - } - if (observations.length === 0) { - return ""; - } - const byDate = groupByDate(observations, (obs) => new Date(obs.epoch).toISOString()); - for (const [day, dayObs] of byDate) { - lines.push(`### ${day}`); - lines.push(""); - lines.push("| ID | Time | T | Title | Read |"); - lines.push("|----|------|---|-------|------|"); - let lastTime = ""; - for (const obs of dayObs) { - const timeDisplay = obs.time === lastTime ? '"' : obs.time; - lastTime = obs.time; - lines.push(`| ${obs.id} | ${timeDisplay} | ${obs.typeEmoji} | ${obs.title} | ${obs.tokens} |`); - } - lines.push(""); - } - return lines.join(` -`).trim(); -} -var EXCLUDED_UNSAFE_DIRECTORIES = new Set([ - "res", - ".git", - "build", - "node_modules", - "__pycache__" -]); -function isExcludedUnsafeDirectory(folderPath) { - const normalized = path12.normalize(folderPath); - const segments = normalized.split(path12.sep); - return segments.some((segment) => EXCLUDED_UNSAFE_DIRECTORIES.has(segment)); -} -function isProjectRoot(folderPath) { - const gitPath = path12.join(folderPath, ".git"); - return existsSync12(gitPath); -} -function isExcludedFolder(folderPath, excludePaths) { - const normalizedFolder = path12.resolve(folderPath); - for (const excludePath of excludePaths) { - const normalizedExclude = path12.resolve(excludePath); - if (normalizedFolder === normalizedExclude || normalizedFolder.startsWith(normalizedExclude + path12.sep)) { - return true; - } - } - return false; -} -async function updateFolderClaudeMdFiles(filePaths, project, _port, projectRoot) { - const settings = SettingsDefaultsManager.loadFromFile(SETTINGS_PATH); - const limit = parseInt(settings.CLAUDE_MEM_CONTEXT_OBSERVATIONS, 10) || 50; - let folderMdExcludePaths = []; - try { - const parsed = JSON.parse(settings.CLAUDE_MEM_FOLDER_MD_EXCLUDE || "[]"); - if (Array.isArray(parsed)) { - folderMdExcludePaths = parsed.filter((p) => typeof p === "string"); - } - } catch { - logger.warn("FOLDER_INDEX", "Failed to parse CLAUDE_MEM_FOLDER_MD_EXCLUDE setting"); - } - const foldersWithActiveClaudeMd = new Set; - for (const filePath of filePaths) { - if (!filePath) - continue; - const basename3 = path12.basename(filePath); - if (basename3 === "CLAUDE.md") { - let absoluteFilePath = filePath; - if (projectRoot && !path12.isAbsolute(filePath)) { - absoluteFilePath = path12.join(projectRoot, filePath); - } - const folderPath = path12.dirname(absoluteFilePath); - foldersWithActiveClaudeMd.add(folderPath); - logger.debug("FOLDER_INDEX", "Detected active CLAUDE.md, will skip folder", { folderPath }); - } - } - const folderPaths = new Set; - for (const filePath of filePaths) { - if (!filePath || filePath === "") - continue; - if (!isValidPathForClaudeMd(filePath, projectRoot)) { - logger.debug("FOLDER_INDEX", "Skipping invalid file path", { - filePath, - reason: "Failed path validation" - }); - continue; - } - let absoluteFilePath = filePath; - if (projectRoot && !path12.isAbsolute(filePath)) { - absoluteFilePath = path12.join(projectRoot, filePath); - } - const folderPath = path12.dirname(absoluteFilePath); - if (folderPath && folderPath !== "." && folderPath !== "/") { - if (isProjectRoot(folderPath)) { - logger.debug("FOLDER_INDEX", "Skipping project root CLAUDE.md", { folderPath }); - continue; - } - if (isExcludedUnsafeDirectory(folderPath)) { - logger.debug("FOLDER_INDEX", "Skipping unsafe directory for CLAUDE.md", { folderPath }); - continue; - } - if (foldersWithActiveClaudeMd.has(folderPath)) { - logger.debug("FOLDER_INDEX", "Skipping folder with active CLAUDE.md to avoid race condition", { folderPath }); - continue; - } - if (folderMdExcludePaths.length > 0 && isExcludedFolder(folderPath, folderMdExcludePaths)) { - logger.debug("FOLDER_INDEX", "Skipping excluded folder", { folderPath }); - continue; - } - folderPaths.add(folderPath); - } - } - if (folderPaths.size === 0) - return; - logger.debug("FOLDER_INDEX", "Updating CLAUDE.md files", { - project, - folderCount: folderPaths.size - }); - for (const folderPath of folderPaths) { - try { - const response = await workerHttpRequest(`/api/search/by-file?filePath=${encodeURIComponent(folderPath)}&limit=${limit}&project=${encodeURIComponent(project)}&isFolder=true`); - if (!response.ok) { - logger.error("FOLDER_INDEX", "Failed to fetch timeline", { folderPath, status: response.status }); - continue; - } - const result = await response.json(); - if (!result.content?.[0]?.text) { - logger.debug("FOLDER_INDEX", "No content for folder", { folderPath }); - continue; - } - const formatted = formatTimelineForClaudeMd(result.content[0].text); - const claudeMdPath = path12.join(folderPath, "CLAUDE.md"); - const hasNoActivity = formatted.includes("*No recent activity*"); - const fileExists = existsSync12(claudeMdPath); - if (hasNoActivity && !fileExists) { - logger.debug("FOLDER_INDEX", "Skipping empty CLAUDE.md creation", { folderPath }); - continue; - } - writeClaudeMdToFolder(folderPath, formatted); - logger.debug("FOLDER_INDEX", "Updated CLAUDE.md", { folderPath }); - } catch (error2) { - const err = error2; - logger.error("FOLDER_INDEX", "Failed to update CLAUDE.md", { - folderPath, - errorMessage: err.message, - errorStack: err.stack - }); - } - } -} - -// src/services/worker/agents/ResponseProcessor.ts -init_worker_utils(); -init_SettingsDefaultsManager(); -init_paths(); - -// src/services/worker/agents/ObservationBroadcaster.ts -function broadcastObservation(worker, payload) { - if (!worker?.sseBroadcaster) { - return; - } - worker.sseBroadcaster.broadcast({ - type: "new_observation", - observation: payload - }); -} -function broadcastSummary(worker, payload) { - if (!worker?.sseBroadcaster) { - return; - } - worker.sseBroadcaster.broadcast({ - type: "new_summary", - summary: payload - }); -} - -// src/services/worker/agents/SessionCleanupHelper.ts -function cleanupProcessedMessages(session, worker) { - session.earliestPendingTimestamp = null; - if (worker && typeof worker.broadcastProcessingStatus === "function") { - worker.broadcastProcessingStatus(); - } -} - -// src/services/worker/agents/ResponseProcessor.ts -async function processAgentResponse(text, session, dbManager, sessionManager, worker, discoveryTokens, originalTimestamp, agentName, projectRoot) { - session.lastGeneratorActivity = Date.now(); - if (text) { - session.conversationHistory.push({ role: "assistant", content: text }); - } - const observations = parseObservations(text, session.contentSessionId); - const summary = parseSummary(text, session.sessionDbId); - const summaryForStore = normalizeSummaryForStorage(summary); - const sessionStore = dbManager.getSessionStore(); - if (!session.memorySessionId) { - throw new Error("Cannot store observations: memorySessionId not yet captured"); - } - sessionStore.ensureMemorySessionIdRegistered(session.sessionDbId, session.memorySessionId); - logger.info("DB", `STORING | sessionDbId=${session.sessionDbId} | memorySessionId=${session.memorySessionId} | obsCount=${observations.length} | hasSummary=${!!summaryForStore}`, { - sessionId: session.sessionDbId, - memorySessionId: session.memorySessionId - }); - const result = sessionStore.storeObservations(session.memorySessionId, session.project, observations, summaryForStore, session.lastPromptNumber, discoveryTokens, originalTimestamp ?? undefined); - logger.info("DB", `STORED | sessionDbId=${session.sessionDbId} | memorySessionId=${session.memorySessionId} | obsCount=${result.observationIds.length} | obsIds=[${result.observationIds.join(",")}] | summaryId=${result.summaryId || "none"}`, { - sessionId: session.sessionDbId, - memorySessionId: session.memorySessionId - }); - const pendingStore = sessionManager.getPendingMessageStore(); - for (const messageId of session.processingMessageIds) { - pendingStore.confirmProcessed(messageId); - } - if (session.processingMessageIds.length > 0) { - logger.debug("QUEUE", `CONFIRMED_BATCH | sessionDbId=${session.sessionDbId} | count=${session.processingMessageIds.length} | ids=[${session.processingMessageIds.join(",")}]`); - } - session.processingMessageIds = []; - await syncAndBroadcastObservations(observations, result, session, dbManager, worker, discoveryTokens, agentName, projectRoot); - await syncAndBroadcastSummary(summary, summaryForStore, result, session, dbManager, worker, discoveryTokens, agentName); - cleanupProcessedMessages(session, worker); -} -function normalizeSummaryForStorage(summary) { - if (!summary) - return null; - return { - request: summary.request || "", - investigated: summary.investigated || "", - learned: summary.learned || "", - completed: summary.completed || "", - next_steps: summary.next_steps || "", - notes: summary.notes - }; -} -async function syncAndBroadcastObservations(observations, result, session, dbManager, worker, discoveryTokens, agentName, projectRoot) { - for (let i = 0;i < observations.length; i++) { - const obsId = result.observationIds[i]; - const obs = observations[i]; - const chromaStart = Date.now(); - dbManager.getChromaSync()?.syncObservation(obsId, session.contentSessionId, session.project, obs, session.lastPromptNumber, result.createdAtEpoch, discoveryTokens).then(() => { - const chromaDuration = Date.now() - chromaStart; - logger.debug("CHROMA", "Observation synced", { - obsId, - duration: `${chromaDuration}ms`, - type: obs.type, - title: obs.title || "(untitled)" - }); - }).catch((error2) => { - logger.error("CHROMA", `${agentName} chroma sync failed, continuing without vector search`, { - obsId, - type: obs.type, - title: obs.title || "(untitled)" - }, error2); - }); - broadcastObservation(worker, { - id: obsId, - memory_session_id: session.memorySessionId, - session_id: session.contentSessionId, - type: obs.type, - title: obs.title, - subtitle: obs.subtitle, - text: null, - narrative: obs.narrative || null, - facts: JSON.stringify(obs.facts || []), - concepts: JSON.stringify(obs.concepts || []), - files_read: JSON.stringify(obs.files_read || []), - files_modified: JSON.stringify(obs.files_modified || []), - project: session.project, - prompt_number: session.lastPromptNumber, - created_at_epoch: result.createdAtEpoch - }); - } - const settings = SettingsDefaultsManager.loadFromFile(USER_SETTINGS_PATH); - const settingValue = settings.CLAUDE_MEM_FOLDER_CLAUDEMD_ENABLED; - const folderClaudeMdEnabled = settingValue === "true" || settingValue === true; - if (folderClaudeMdEnabled) { - const allFilePaths = []; - for (const obs of observations) { - allFilePaths.push(...obs.files_modified || []); - allFilePaths.push(...obs.files_read || []); - } - if (allFilePaths.length > 0) { - updateFolderClaudeMdFiles(allFilePaths, session.project, getWorkerPort(), projectRoot).catch((error2) => { - logger.warn("FOLDER_INDEX", "CLAUDE.md update failed (non-critical)", { project: session.project }, error2); - }); - } - } -} -async function syncAndBroadcastSummary(summary, summaryForStore, result, session, dbManager, worker, discoveryTokens, agentName) { - if (!summaryForStore || !result.summaryId) { - return; - } - const chromaStart = Date.now(); - dbManager.getChromaSync()?.syncSummary(result.summaryId, session.contentSessionId, session.project, summaryForStore, session.lastPromptNumber, result.createdAtEpoch, discoveryTokens).then(() => { - const chromaDuration = Date.now() - chromaStart; - logger.debug("CHROMA", "Summary synced", { - summaryId: result.summaryId, - duration: `${chromaDuration}ms`, - request: summaryForStore.request || "(no request)" - }); - }).catch((error2) => { - logger.error("CHROMA", `${agentName} chroma sync failed, continuing without vector search`, { - summaryId: result.summaryId, - request: summaryForStore.request || "(no request)" - }, error2); - }); - broadcastSummary(worker, { - id: result.summaryId, - session_id: session.contentSessionId, - request: summary.request, - investigated: summary.investigated, - learned: summary.learned, - completed: summary.completed, - next_steps: summary.next_steps, - notes: summary.notes, - project: session.project, - prompt_number: session.lastPromptNumber, - created_at_epoch: result.createdAtEpoch - }); - updateCursorContextForProject(session.project, getWorkerPort()).catch((error2) => { - logger.warn("CURSOR", "Context update failed (non-critical)", { project: session.project }, error2); - }); -} -// src/services/worker/agents/FallbackErrorHandler.ts -function shouldFallbackToClaude(error2) { - const message = getErrorMessage(error2); - return FALLBACK_ERROR_PATTERNS.some((pattern) => message.includes(pattern)); -} -function getErrorMessage(error2) { - if (error2 === null || error2 === undefined) { - return ""; - } - if (typeof error2 === "string") { - return error2; - } - if (error2 instanceof Error) { - return error2.message; - } - if (typeof error2 === "object" && "message" in error2) { - return String(error2.message); - } - return String(error2); -} -function isAbortError(error2) { - if (error2 === null || error2 === undefined) { - return false; - } - if (error2 instanceof Error && error2.name === "AbortError") { - return true; - } - if (typeof error2 === "object" && "name" in error2) { - return error2.name === "AbortError"; - } - return false; -} -// node_modules/@anthropic-ai/claude-agent-sdk/sdk.mjs -import { join as join52 } from "path"; -import { fileURLToPath as fileURLToPath2 } from "url"; -import { setMaxListeners } from "events"; -import { spawn as spawn4 } from "child_process"; -import { createInterface } from "readline"; -import * as fs3 from "fs"; -import { stat as statPromise, open } from "fs/promises"; -import { join as join8 } from "path"; -import { homedir as homedir11 } from "os"; -import { dirname as dirname4, join as join22 } from "path"; -import { cwd } from "process"; -import { realpathSync as realpathSync2 } from "fs"; -import { randomUUID } from "crypto"; -import { randomUUID as randomUUID2 } from "crypto"; -import { appendFileSync as appendFileSync22, existsSync as existsSync22, mkdirSync as mkdirSync22 } from "fs"; -import { join as join32 } from "path"; -import { randomUUID as randomUUID3 } from "crypto"; -var __create2 = Object.create; -var __getProtoOf2 = Object.getPrototypeOf; -var __defProp2 = Object.defineProperty; -var __getOwnPropNames2 = Object.getOwnPropertyNames; -var __hasOwnProp2 = Object.prototype.hasOwnProperty; -var __toESM2 = (mod, isNodeMode, target) => { - target = mod != null ? __create2(__getProtoOf2(mod)) : {}; - const to = isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target; - for (let key of __getOwnPropNames2(mod)) - if (!__hasOwnProp2.call(to, key)) - __defProp2(to, key, { - get: () => mod[key], - enumerable: true - }); - return to; -}; -var __commonJS2 = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports); -var __export2 = (target, all) => { - for (var name in all) - __defProp2(target, name, { - get: all[name], - enumerable: true, - configurable: true, - set: (newValue) => all[name] = () => newValue - }); -}; -var require_code3 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.regexpCode = exports.getEsmExportName = exports.getProperty = exports.safeStringify = exports.stringify = exports.strConcat = exports.addCodeArg = exports.str = exports._ = exports.nil = exports._Code = exports.Name = exports.IDENTIFIER = exports._CodeOrName = undefined; - - class _CodeOrName { - } - exports._CodeOrName = _CodeOrName; - exports.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i; - - class Name extends _CodeOrName { - constructor(s) { - super(); - if (!exports.IDENTIFIER.test(s)) - throw new Error("CodeGen: name must be a valid identifier"); - this.str = s; - } - toString() { - return this.str; - } - emptyStr() { - return false; - } - get names() { - return { [this.str]: 1 }; - } - } - exports.Name = Name; - - class _Code extends _CodeOrName { - constructor(code) { - super(); - this._items = typeof code === "string" ? [code] : code; - } - toString() { - return this.str; - } - emptyStr() { - if (this._items.length > 1) - return false; - const item = this._items[0]; - return item === "" || item === '""'; - } - get str() { - var _a2; - return (_a2 = this._str) !== null && _a2 !== undefined ? _a2 : this._str = this._items.reduce((s, c) => `${s}${c}`, ""); - } - get names() { - var _a2; - return (_a2 = this._names) !== null && _a2 !== undefined ? _a2 : this._names = this._items.reduce((names, c) => { - if (c instanceof Name) - names[c.str] = (names[c.str] || 0) + 1; - return names; - }, {}); - } - } - exports._Code = _Code; - exports.nil = new _Code(""); - function _(strs, ...args) { - const code = [strs[0]]; - let i = 0; - while (i < args.length) { - addCodeArg(code, args[i]); - code.push(strs[++i]); - } - return new _Code(code); - } - exports._ = _; - var plus = new _Code("+"); - function str(strs, ...args) { - const expr = [safeStringify(strs[0])]; - let i = 0; - while (i < args.length) { - expr.push(plus); - addCodeArg(expr, args[i]); - expr.push(plus, safeStringify(strs[++i])); - } - optimize(expr); - return new _Code(expr); - } - exports.str = str; - function addCodeArg(code, arg) { - if (arg instanceof _Code) - code.push(...arg._items); - else if (arg instanceof Name) - code.push(arg); - else - code.push(interpolate(arg)); - } - exports.addCodeArg = addCodeArg; - function optimize(expr) { - let i = 1; - while (i < expr.length - 1) { - if (expr[i] === plus) { - const res = mergeExprItems(expr[i - 1], expr[i + 1]); - if (res !== undefined) { - expr.splice(i - 1, 3, res); - continue; - } - expr[i++] = "+"; - } - i++; - } - } - function mergeExprItems(a, b) { - if (b === '""') - return a; - if (a === '""') - return b; - if (typeof a == "string") { - if (b instanceof Name || a[a.length - 1] !== '"') - return; - if (typeof b != "string") - return `${a.slice(0, -1)}${b}"`; - if (b[0] === '"') - return a.slice(0, -1) + b.slice(1); - return; - } - if (typeof b == "string" && b[0] === '"' && !(a instanceof Name)) - return `"${a}${b.slice(1)}`; - return; - } - function strConcat(c1, c2) { - return c2.emptyStr() ? c1 : c1.emptyStr() ? c2 : str`${c1}${c2}`; - } - exports.strConcat = strConcat; - function interpolate(x) { - return typeof x == "number" || typeof x == "boolean" || x === null ? x : safeStringify(Array.isArray(x) ? x.join(",") : x); - } - function stringify(x) { - return new _Code(safeStringify(x)); - } - exports.stringify = stringify; - function safeStringify(x) { - return JSON.stringify(x).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029"); - } - exports.safeStringify = safeStringify; - function getProperty(key) { - return typeof key == "string" && exports.IDENTIFIER.test(key) ? new _Code(`.${key}`) : _`[${key}]`; - } - exports.getProperty = getProperty; - function getEsmExportName(key) { - if (typeof key == "string" && exports.IDENTIFIER.test(key)) { - return new _Code(`${key}`); - } - throw new Error(`CodeGen: invalid export name: ${key}, use explicit $id name mapping`); - } - exports.getEsmExportName = getEsmExportName; - function regexpCode(rx) { - return new _Code(rx.toString()); - } - exports.regexpCode = regexpCode; -}); -var require_scope2 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.ValueScope = exports.ValueScopeName = exports.Scope = exports.varKinds = exports.UsedValueState = undefined; - var code_1 = require_code3(); - - class ValueError extends Error { - constructor(name) { - super(`CodeGen: "code" for ${name} not defined`); - this.value = name.value; - } - } - var UsedValueState; - (function(UsedValueState2) { - UsedValueState2[UsedValueState2["Started"] = 0] = "Started"; - UsedValueState2[UsedValueState2["Completed"] = 1] = "Completed"; - })(UsedValueState || (exports.UsedValueState = UsedValueState = {})); - exports.varKinds = { - const: new code_1.Name("const"), - let: new code_1.Name("let"), - var: new code_1.Name("var") - }; - - class Scope { - constructor({ prefixes, parent } = {}) { - this._names = {}; - this._prefixes = prefixes; - this._parent = parent; - } - toName(nameOrPrefix) { - return nameOrPrefix instanceof code_1.Name ? nameOrPrefix : this.name(nameOrPrefix); - } - name(prefix) { - return new code_1.Name(this._newName(prefix)); - } - _newName(prefix) { - const ng = this._names[prefix] || this._nameGroup(prefix); - return `${prefix}${ng.index++}`; - } - _nameGroup(prefix) { - var _a2, _b; - if (((_b = (_a2 = this._parent) === null || _a2 === undefined ? undefined : _a2._prefixes) === null || _b === undefined ? undefined : _b.has(prefix)) || this._prefixes && !this._prefixes.has(prefix)) { - throw new Error(`CodeGen: prefix "${prefix}" is not allowed in this scope`); - } - return this._names[prefix] = { prefix, index: 0 }; - } - } - exports.Scope = Scope; - - class ValueScopeName extends code_1.Name { - constructor(prefix, nameStr) { - super(nameStr); - this.prefix = prefix; - } - setValue(value, { property, itemIndex }) { - this.value = value; - this.scopePath = (0, code_1._)`.${new code_1.Name(property)}[${itemIndex}]`; - } - } - exports.ValueScopeName = ValueScopeName; - var line = (0, code_1._)`\n`; - - class ValueScope extends Scope { - constructor(opts) { - super(opts); - this._values = {}; - this._scope = opts.scope; - this.opts = { ...opts, _n: opts.lines ? line : code_1.nil }; - } - get() { - return this._scope; - } - name(prefix) { - return new ValueScopeName(prefix, this._newName(prefix)); - } - value(nameOrPrefix, value) { - var _a2; - if (value.ref === undefined) - throw new Error("CodeGen: ref must be passed in value"); - const name = this.toName(nameOrPrefix); - const { prefix } = name; - const valueKey = (_a2 = value.key) !== null && _a2 !== undefined ? _a2 : value.ref; - let vs = this._values[prefix]; - if (vs) { - const _name = vs.get(valueKey); - if (_name) - return _name; - } else { - vs = this._values[prefix] = new Map; - } - vs.set(valueKey, name); - const s = this._scope[prefix] || (this._scope[prefix] = []); - const itemIndex = s.length; - s[itemIndex] = value.ref; - name.setValue(value, { property: prefix, itemIndex }); - return name; - } - getValue(prefix, keyOrRef) { - const vs = this._values[prefix]; - if (!vs) - return; - return vs.get(keyOrRef); - } - scopeRefs(scopeName, values = this._values) { - return this._reduceValues(values, (name) => { - if (name.scopePath === undefined) - throw new Error(`CodeGen: name "${name}" has no value`); - return (0, code_1._)`${scopeName}${name.scopePath}`; - }); - } - scopeCode(values = this._values, usedValues, getCode) { - return this._reduceValues(values, (name) => { - if (name.value === undefined) - throw new Error(`CodeGen: name "${name}" has no value`); - return name.value.code; - }, usedValues, getCode); - } - _reduceValues(values, valueCode, usedValues = {}, getCode) { - let code = code_1.nil; - for (const prefix in values) { - const vs = values[prefix]; - if (!vs) - continue; - const nameSet = usedValues[prefix] = usedValues[prefix] || new Map; - vs.forEach((name) => { - if (nameSet.has(name)) - return; - nameSet.set(name, UsedValueState.Started); - let c = valueCode(name); - if (c) { - const def = this.opts.es5 ? exports.varKinds.var : exports.varKinds.const; - code = (0, code_1._)`${code}${def} ${name} = ${c};${this.opts._n}`; - } else if (c = getCode === null || getCode === undefined ? undefined : getCode(name)) { - code = (0, code_1._)`${code}${c}${this.opts._n}`; - } else { - throw new ValueError(name); - } - nameSet.set(name, UsedValueState.Completed); - }); - } - return code; - } - } - exports.ValueScope = ValueScope; -}); -var require_codegen2 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.or = exports.and = exports.not = exports.CodeGen = exports.operators = exports.varKinds = exports.ValueScopeName = exports.ValueScope = exports.Scope = exports.Name = exports.regexpCode = exports.stringify = exports.getProperty = exports.nil = exports.strConcat = exports.str = exports._ = undefined; - var code_1 = require_code3(); - var scope_1 = require_scope2(); - var code_2 = require_code3(); - Object.defineProperty(exports, "_", { enumerable: true, get: function() { - return code_2._; - } }); - Object.defineProperty(exports, "str", { enumerable: true, get: function() { - return code_2.str; - } }); - Object.defineProperty(exports, "strConcat", { enumerable: true, get: function() { - return code_2.strConcat; - } }); - Object.defineProperty(exports, "nil", { enumerable: true, get: function() { - return code_2.nil; - } }); - Object.defineProperty(exports, "getProperty", { enumerable: true, get: function() { - return code_2.getProperty; - } }); - Object.defineProperty(exports, "stringify", { enumerable: true, get: function() { - return code_2.stringify; - } }); - Object.defineProperty(exports, "regexpCode", { enumerable: true, get: function() { - return code_2.regexpCode; - } }); - Object.defineProperty(exports, "Name", { enumerable: true, get: function() { - return code_2.Name; - } }); - var scope_2 = require_scope2(); - Object.defineProperty(exports, "Scope", { enumerable: true, get: function() { - return scope_2.Scope; - } }); - Object.defineProperty(exports, "ValueScope", { enumerable: true, get: function() { - return scope_2.ValueScope; - } }); - Object.defineProperty(exports, "ValueScopeName", { enumerable: true, get: function() { - return scope_2.ValueScopeName; - } }); - Object.defineProperty(exports, "varKinds", { enumerable: true, get: function() { - return scope_2.varKinds; - } }); - exports.operators = { - GT: new code_1._Code(">"), - GTE: new code_1._Code(">="), - LT: new code_1._Code("<"), - LTE: new code_1._Code("<="), - EQ: new code_1._Code("==="), - NEQ: new code_1._Code("!=="), - NOT: new code_1._Code("!"), - OR: new code_1._Code("||"), - AND: new code_1._Code("&&"), - ADD: new code_1._Code("+") - }; - - class Node { - optimizeNodes() { - return this; - } - optimizeNames(_names, _constants) { - return this; - } - } - - class Def extends Node { - constructor(varKind, name, rhs) { - super(); - this.varKind = varKind; - this.name = name; - this.rhs = rhs; - } - render({ es5, _n }) { - const varKind = es5 ? scope_1.varKinds.var : this.varKind; - const rhs = this.rhs === undefined ? "" : ` = ${this.rhs}`; - return `${varKind} ${this.name}${rhs};` + _n; - } - optimizeNames(names, constants) { - if (!names[this.name.str]) - return; - if (this.rhs) - this.rhs = optimizeExpr(this.rhs, names, constants); - return this; - } - get names() { - return this.rhs instanceof code_1._CodeOrName ? this.rhs.names : {}; - } - } - - class Assign extends Node { - constructor(lhs, rhs, sideEffects) { - super(); - this.lhs = lhs; - this.rhs = rhs; - this.sideEffects = sideEffects; - } - render({ _n }) { - return `${this.lhs} = ${this.rhs};` + _n; - } - optimizeNames(names, constants) { - if (this.lhs instanceof code_1.Name && !names[this.lhs.str] && !this.sideEffects) - return; - this.rhs = optimizeExpr(this.rhs, names, constants); - return this; - } - get names() { - const names = this.lhs instanceof code_1.Name ? {} : { ...this.lhs.names }; - return addExprNames(names, this.rhs); - } - } - - class AssignOp extends Assign { - constructor(lhs, op, rhs, sideEffects) { - super(lhs, rhs, sideEffects); - this.op = op; - } - render({ _n }) { - return `${this.lhs} ${this.op}= ${this.rhs};` + _n; - } - } - - class Label extends Node { - constructor(label) { - super(); - this.label = label; - this.names = {}; - } - render({ _n }) { - return `${this.label}:` + _n; - } - } - - class Break extends Node { - constructor(label) { - super(); - this.label = label; - this.names = {}; - } - render({ _n }) { - const label = this.label ? ` ${this.label}` : ""; - return `break${label};` + _n; - } - } - - class Throw extends Node { - constructor(error2) { - super(); - this.error = error2; - } - render({ _n }) { - return `throw ${this.error};` + _n; - } - get names() { - return this.error.names; - } - } - - class AnyCode extends Node { - constructor(code) { - super(); - this.code = code; - } - render({ _n }) { - return `${this.code};` + _n; - } - optimizeNodes() { - return `${this.code}` ? this : undefined; - } - optimizeNames(names, constants) { - this.code = optimizeExpr(this.code, names, constants); - return this; - } - get names() { - return this.code instanceof code_1._CodeOrName ? this.code.names : {}; - } - } - - class ParentNode extends Node { - constructor(nodes = []) { - super(); - this.nodes = nodes; - } - render(opts) { - return this.nodes.reduce((code, n) => code + n.render(opts), ""); - } - optimizeNodes() { - const { nodes } = this; - let i = nodes.length; - while (i--) { - const n = nodes[i].optimizeNodes(); - if (Array.isArray(n)) - nodes.splice(i, 1, ...n); - else if (n) - nodes[i] = n; - else - nodes.splice(i, 1); - } - return nodes.length > 0 ? this : undefined; - } - optimizeNames(names, constants) { - const { nodes } = this; - let i = nodes.length; - while (i--) { - const n = nodes[i]; - if (n.optimizeNames(names, constants)) - continue; - subtractNames(names, n.names); - nodes.splice(i, 1); - } - return nodes.length > 0 ? this : undefined; - } - get names() { - return this.nodes.reduce((names, n) => addNames(names, n.names), {}); - } - } - - class BlockNode extends ParentNode { - render(opts) { - return "{" + opts._n + super.render(opts) + "}" + opts._n; - } - } - - class Root extends ParentNode { - } - - class Else extends BlockNode { - } - Else.kind = "else"; - - class If extends BlockNode { - constructor(condition, nodes) { - super(nodes); - this.condition = condition; - } - render(opts) { - let code = `if(${this.condition})` + super.render(opts); - if (this.else) - code += "else " + this.else.render(opts); - return code; - } - optimizeNodes() { - super.optimizeNodes(); - const cond = this.condition; - if (cond === true) - return this.nodes; - let e = this.else; - if (e) { - const ns = e.optimizeNodes(); - e = this.else = Array.isArray(ns) ? new Else(ns) : ns; - } - if (e) { - if (cond === false) - return e instanceof If ? e : e.nodes; - if (this.nodes.length) - return this; - return new If(not(cond), e instanceof If ? [e] : e.nodes); - } - if (cond === false || !this.nodes.length) - return; - return this; - } - optimizeNames(names, constants) { - var _a2; - this.else = (_a2 = this.else) === null || _a2 === undefined ? undefined : _a2.optimizeNames(names, constants); - if (!(super.optimizeNames(names, constants) || this.else)) - return; - this.condition = optimizeExpr(this.condition, names, constants); - return this; - } - get names() { - const names = super.names; - addExprNames(names, this.condition); - if (this.else) - addNames(names, this.else.names); - return names; - } - } - If.kind = "if"; - - class For extends BlockNode { - } - For.kind = "for"; - - class ForLoop extends For { - constructor(iteration) { - super(); - this.iteration = iteration; - } - render(opts) { - return `for(${this.iteration})` + super.render(opts); - } - optimizeNames(names, constants) { - if (!super.optimizeNames(names, constants)) - return; - this.iteration = optimizeExpr(this.iteration, names, constants); - return this; - } - get names() { - return addNames(super.names, this.iteration.names); - } - } - - class ForRange extends For { - constructor(varKind, name, from, to) { - super(); - this.varKind = varKind; - this.name = name; - this.from = from; - this.to = to; - } - render(opts) { - const varKind = opts.es5 ? scope_1.varKinds.var : this.varKind; - const { name, from, to } = this; - return `for(${varKind} ${name}=${from}; ${name}<${to}; ${name}++)` + super.render(opts); - } - get names() { - const names = addExprNames(super.names, this.from); - return addExprNames(names, this.to); - } - } - - class ForIter extends For { - constructor(loop, varKind, name, iterable) { - super(); - this.loop = loop; - this.varKind = varKind; - this.name = name; - this.iterable = iterable; - } - render(opts) { - return `for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})` + super.render(opts); - } - optimizeNames(names, constants) { - if (!super.optimizeNames(names, constants)) - return; - this.iterable = optimizeExpr(this.iterable, names, constants); - return this; - } - get names() { - return addNames(super.names, this.iterable.names); - } - } - - class Func extends BlockNode { - constructor(name, args, async) { - super(); - this.name = name; - this.args = args; - this.async = async; - } - render(opts) { - const _async = this.async ? "async " : ""; - return `${_async}function ${this.name}(${this.args})` + super.render(opts); - } - } - Func.kind = "func"; - - class Return extends ParentNode { - render(opts) { - return "return " + super.render(opts); - } - } - Return.kind = "return"; - - class Try extends BlockNode { - render(opts) { - let code = "try" + super.render(opts); - if (this.catch) - code += this.catch.render(opts); - if (this.finally) - code += this.finally.render(opts); - return code; - } - optimizeNodes() { - var _a2, _b; - super.optimizeNodes(); - (_a2 = this.catch) === null || _a2 === undefined || _a2.optimizeNodes(); - (_b = this.finally) === null || _b === undefined || _b.optimizeNodes(); - return this; - } - optimizeNames(names, constants) { - var _a2, _b; - super.optimizeNames(names, constants); - (_a2 = this.catch) === null || _a2 === undefined || _a2.optimizeNames(names, constants); - (_b = this.finally) === null || _b === undefined || _b.optimizeNames(names, constants); - return this; - } - get names() { - const names = super.names; - if (this.catch) - addNames(names, this.catch.names); - if (this.finally) - addNames(names, this.finally.names); - return names; - } - } - - class Catch extends BlockNode { - constructor(error2) { - super(); - this.error = error2; - } - render(opts) { - return `catch(${this.error})` + super.render(opts); - } - } - Catch.kind = "catch"; - - class Finally extends BlockNode { - render(opts) { - return "finally" + super.render(opts); - } - } - Finally.kind = "finally"; - - class CodeGen { - constructor(extScope, opts = {}) { - this._values = {}; - this._blockStarts = []; - this._constants = {}; - this.opts = { ...opts, _n: opts.lines ? ` -` : "" }; - this._extScope = extScope; - this._scope = new scope_1.Scope({ parent: extScope }); - this._nodes = [new Root]; - } - toString() { - return this._root.render(this.opts); - } - name(prefix) { - return this._scope.name(prefix); - } - scopeName(prefix) { - return this._extScope.name(prefix); - } - scopeValue(prefixOrName, value) { - const name = this._extScope.value(prefixOrName, value); - const vs = this._values[name.prefix] || (this._values[name.prefix] = new Set); - vs.add(name); - return name; - } - getScopeValue(prefix, keyOrRef) { - return this._extScope.getValue(prefix, keyOrRef); - } - scopeRefs(scopeName) { - return this._extScope.scopeRefs(scopeName, this._values); - } - scopeCode() { - return this._extScope.scopeCode(this._values); - } - _def(varKind, nameOrPrefix, rhs, constant) { - const name = this._scope.toName(nameOrPrefix); - if (rhs !== undefined && constant) - this._constants[name.str] = rhs; - this._leafNode(new Def(varKind, name, rhs)); - return name; - } - const(nameOrPrefix, rhs, _constant) { - return this._def(scope_1.varKinds.const, nameOrPrefix, rhs, _constant); - } - let(nameOrPrefix, rhs, _constant) { - return this._def(scope_1.varKinds.let, nameOrPrefix, rhs, _constant); - } - var(nameOrPrefix, rhs, _constant) { - return this._def(scope_1.varKinds.var, nameOrPrefix, rhs, _constant); - } - assign(lhs, rhs, sideEffects) { - return this._leafNode(new Assign(lhs, rhs, sideEffects)); - } - add(lhs, rhs) { - return this._leafNode(new AssignOp(lhs, exports.operators.ADD, rhs)); - } - code(c) { - if (typeof c == "function") - c(); - else if (c !== code_1.nil) - this._leafNode(new AnyCode(c)); - return this; - } - object(...keyValues) { - const code = ["{"]; - for (const [key, value] of keyValues) { - if (code.length > 1) - code.push(","); - code.push(key); - if (key !== value || this.opts.es5) { - code.push(":"); - (0, code_1.addCodeArg)(code, value); - } - } - code.push("}"); - return new code_1._Code(code); - } - if(condition, thenBody, elseBody) { - this._blockNode(new If(condition)); - if (thenBody && elseBody) { - this.code(thenBody).else().code(elseBody).endIf(); - } else if (thenBody) { - this.code(thenBody).endIf(); - } else if (elseBody) { - throw new Error('CodeGen: "else" body without "then" body'); - } - return this; - } - elseIf(condition) { - return this._elseNode(new If(condition)); - } - else() { - return this._elseNode(new Else); - } - endIf() { - return this._endBlockNode(If, Else); - } - _for(node, forBody) { - this._blockNode(node); - if (forBody) - this.code(forBody).endFor(); - return this; - } - for(iteration, forBody) { - return this._for(new ForLoop(iteration), forBody); - } - forRange(nameOrPrefix, from, to, forBody, varKind = this.opts.es5 ? scope_1.varKinds.var : scope_1.varKinds.let) { - const name = this._scope.toName(nameOrPrefix); - return this._for(new ForRange(varKind, name, from, to), () => forBody(name)); - } - forOf(nameOrPrefix, iterable, forBody, varKind = scope_1.varKinds.const) { - const name = this._scope.toName(nameOrPrefix); - if (this.opts.es5) { - const arr = iterable instanceof code_1.Name ? iterable : this.var("_arr", iterable); - return this.forRange("_i", 0, (0, code_1._)`${arr}.length`, (i) => { - this.var(name, (0, code_1._)`${arr}[${i}]`); - forBody(name); - }); - } - return this._for(new ForIter("of", varKind, name, iterable), () => forBody(name)); - } - forIn(nameOrPrefix, obj, forBody, varKind = this.opts.es5 ? scope_1.varKinds.var : scope_1.varKinds.const) { - if (this.opts.ownProperties) { - return this.forOf(nameOrPrefix, (0, code_1._)`Object.keys(${obj})`, forBody); - } - const name = this._scope.toName(nameOrPrefix); - return this._for(new ForIter("in", varKind, name, obj), () => forBody(name)); - } - endFor() { - return this._endBlockNode(For); - } - label(label) { - return this._leafNode(new Label(label)); - } - break(label) { - return this._leafNode(new Break(label)); - } - return(value) { - const node = new Return; - this._blockNode(node); - this.code(value); - if (node.nodes.length !== 1) - throw new Error('CodeGen: "return" should have one node'); - return this._endBlockNode(Return); - } - try(tryBody, catchCode, finallyCode) { - if (!catchCode && !finallyCode) - throw new Error('CodeGen: "try" without "catch" and "finally"'); - const node = new Try; - this._blockNode(node); - this.code(tryBody); - if (catchCode) { - const error2 = this.name("e"); - this._currNode = node.catch = new Catch(error2); - catchCode(error2); - } - if (finallyCode) { - this._currNode = node.finally = new Finally; - this.code(finallyCode); - } - return this._endBlockNode(Catch, Finally); - } - throw(error2) { - return this._leafNode(new Throw(error2)); - } - block(body, nodeCount) { - this._blockStarts.push(this._nodes.length); - if (body) - this.code(body).endBlock(nodeCount); - return this; - } - endBlock(nodeCount) { - const len = this._blockStarts.pop(); - if (len === undefined) - throw new Error("CodeGen: not in self-balancing block"); - const toClose = this._nodes.length - len; - if (toClose < 0 || nodeCount !== undefined && toClose !== nodeCount) { - throw new Error(`CodeGen: wrong number of nodes: ${toClose} vs ${nodeCount} expected`); - } - this._nodes.length = len; - return this; - } - func(name, args = code_1.nil, async, funcBody) { - this._blockNode(new Func(name, args, async)); - if (funcBody) - this.code(funcBody).endFunc(); - return this; - } - endFunc() { - return this._endBlockNode(Func); - } - optimize(n = 1) { - while (n-- > 0) { - this._root.optimizeNodes(); - this._root.optimizeNames(this._root.names, this._constants); - } - } - _leafNode(node) { - this._currNode.nodes.push(node); - return this; - } - _blockNode(node) { - this._currNode.nodes.push(node); - this._nodes.push(node); - } - _endBlockNode(N1, N2) { - const n = this._currNode; - if (n instanceof N1 || N2 && n instanceof N2) { - this._nodes.pop(); - return this; - } - throw new Error(`CodeGen: not in block "${N2 ? `${N1.kind}/${N2.kind}` : N1.kind}"`); - } - _elseNode(node) { - const n = this._currNode; - if (!(n instanceof If)) { - throw new Error('CodeGen: "else" without "if"'); - } - this._currNode = n.else = node; - return this; - } - get _root() { - return this._nodes[0]; - } - get _currNode() { - const ns = this._nodes; - return ns[ns.length - 1]; - } - set _currNode(node) { - const ns = this._nodes; - ns[ns.length - 1] = node; - } - } - exports.CodeGen = CodeGen; - function addNames(names, from) { - for (const n in from) - names[n] = (names[n] || 0) + (from[n] || 0); - return names; - } - function addExprNames(names, from) { - return from instanceof code_1._CodeOrName ? addNames(names, from.names) : names; - } - function optimizeExpr(expr, names, constants) { - if (expr instanceof code_1.Name) - return replaceName(expr); - if (!canOptimize(expr)) - return expr; - return new code_1._Code(expr._items.reduce((items, c) => { - if (c instanceof code_1.Name) - c = replaceName(c); - if (c instanceof code_1._Code) - items.push(...c._items); - else - items.push(c); - return items; - }, [])); - function replaceName(n) { - const c = constants[n.str]; - if (c === undefined || names[n.str] !== 1) - return n; - delete names[n.str]; - return c; - } - function canOptimize(e) { - return e instanceof code_1._Code && e._items.some((c) => c instanceof code_1.Name && names[c.str] === 1 && constants[c.str] !== undefined); - } - } - function subtractNames(names, from) { - for (const n in from) - names[n] = (names[n] || 0) - (from[n] || 0); - } - function not(x) { - return typeof x == "boolean" || typeof x == "number" || x === null ? !x : (0, code_1._)`!${par(x)}`; - } - exports.not = not; - var andCode = mappend(exports.operators.AND); - function and(...args) { - return args.reduce(andCode); - } - exports.and = and; - var orCode = mappend(exports.operators.OR); - function or(...args) { - return args.reduce(orCode); - } - exports.or = or; - function mappend(op) { - return (x, y) => x === code_1.nil ? y : y === code_1.nil ? x : (0, code_1._)`${par(x)} ${op} ${par(y)}`; - } - function par(x) { - return x instanceof code_1.Name ? x : (0, code_1._)`(${x})`; - } -}); -var require_util2 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.checkStrictMode = exports.getErrorPath = exports.Type = exports.useFunc = exports.setEvaluated = exports.evaluatedPropsToName = exports.mergeEvaluated = exports.eachItem = exports.unescapeJsonPointer = exports.escapeJsonPointer = exports.escapeFragment = exports.unescapeFragment = exports.schemaRefOrVal = exports.schemaHasRulesButRef = exports.schemaHasRules = exports.checkUnknownRules = exports.alwaysValidSchema = exports.toHash = undefined; - var codegen_1 = require_codegen2(); - var code_1 = require_code3(); - function toHash(arr) { - const hash = {}; - for (const item of arr) - hash[item] = true; - return hash; - } - exports.toHash = toHash; - function alwaysValidSchema(it, schema) { - if (typeof schema == "boolean") - return schema; - if (Object.keys(schema).length === 0) - return true; - checkUnknownRules(it, schema); - return !schemaHasRules(schema, it.self.RULES.all); - } - exports.alwaysValidSchema = alwaysValidSchema; - function checkUnknownRules(it, schema = it.schema) { - const { opts, self: self2 } = it; - if (!opts.strictSchema) - return; - if (typeof schema === "boolean") - return; - const rules = self2.RULES.keywords; - for (const key in schema) { - if (!rules[key]) - checkStrictMode(it, `unknown keyword: "${key}"`); - } - } - exports.checkUnknownRules = checkUnknownRules; - function schemaHasRules(schema, rules) { - if (typeof schema == "boolean") - return !schema; - for (const key in schema) - if (rules[key]) - return true; - return false; - } - exports.schemaHasRules = schemaHasRules; - function schemaHasRulesButRef(schema, RULES) { - if (typeof schema == "boolean") - return !schema; - for (const key in schema) - if (key !== "$ref" && RULES.all[key]) - return true; - return false; - } - exports.schemaHasRulesButRef = schemaHasRulesButRef; - function schemaRefOrVal({ topSchemaRef, schemaPath }, schema, keyword, $data) { - if (!$data) { - if (typeof schema == "number" || typeof schema == "boolean") - return schema; - if (typeof schema == "string") - return (0, codegen_1._)`${schema}`; - } - return (0, codegen_1._)`${topSchemaRef}${schemaPath}${(0, codegen_1.getProperty)(keyword)}`; - } - exports.schemaRefOrVal = schemaRefOrVal; - function unescapeFragment(str) { - return unescapeJsonPointer(decodeURIComponent(str)); - } - exports.unescapeFragment = unescapeFragment; - function escapeFragment(str) { - return encodeURIComponent(escapeJsonPointer(str)); - } - exports.escapeFragment = escapeFragment; - function escapeJsonPointer(str) { - if (typeof str == "number") - return `${str}`; - return str.replace(/~/g, "~0").replace(/\//g, "~1"); - } - exports.escapeJsonPointer = escapeJsonPointer; - function unescapeJsonPointer(str) { - return str.replace(/~1/g, "/").replace(/~0/g, "~"); - } - exports.unescapeJsonPointer = unescapeJsonPointer; - function eachItem(xs, f) { - if (Array.isArray(xs)) { - for (const x of xs) - f(x); - } else { - f(xs); - } - } - exports.eachItem = eachItem; - function makeMergeEvaluated({ mergeNames, mergeToName, mergeValues: mergeValues3, resultToName }) { - return (gen, from, to, toName) => { - const res = to === undefined ? from : to instanceof codegen_1.Name ? (from instanceof codegen_1.Name ? mergeNames(gen, from, to) : mergeToName(gen, from, to), to) : from instanceof codegen_1.Name ? (mergeToName(gen, to, from), from) : mergeValues3(from, to); - return toName === codegen_1.Name && !(res instanceof codegen_1.Name) ? resultToName(gen, res) : res; - }; - } - exports.mergeEvaluated = { - props: makeMergeEvaluated({ - mergeNames: (gen, from, to) => gen.if((0, codegen_1._)`${to} !== true && ${from} !== undefined`, () => { - gen.if((0, codegen_1._)`${from} === true`, () => gen.assign(to, true), () => gen.assign(to, (0, codegen_1._)`${to} || {}`).code((0, codegen_1._)`Object.assign(${to}, ${from})`)); - }), - mergeToName: (gen, from, to) => gen.if((0, codegen_1._)`${to} !== true`, () => { - if (from === true) { - gen.assign(to, true); - } else { - gen.assign(to, (0, codegen_1._)`${to} || {}`); - setEvaluated(gen, to, from); - } - }), - mergeValues: (from, to) => from === true ? true : { ...from, ...to }, - resultToName: evaluatedPropsToName - }), - items: makeMergeEvaluated({ - mergeNames: (gen, from, to) => gen.if((0, codegen_1._)`${to} !== true && ${from} !== undefined`, () => gen.assign(to, (0, codegen_1._)`${from} === true ? true : ${to} > ${from} ? ${to} : ${from}`)), - mergeToName: (gen, from, to) => gen.if((0, codegen_1._)`${to} !== true`, () => gen.assign(to, from === true ? true : (0, codegen_1._)`${to} > ${from} ? ${to} : ${from}`)), - mergeValues: (from, to) => from === true ? true : Math.max(from, to), - resultToName: (gen, items) => gen.var("items", items) - }) - }; - function evaluatedPropsToName(gen, ps) { - if (ps === true) - return gen.var("props", true); - const props = gen.var("props", (0, codegen_1._)`{}`); - if (ps !== undefined) - setEvaluated(gen, props, ps); - return props; - } - exports.evaluatedPropsToName = evaluatedPropsToName; - function setEvaluated(gen, props, ps) { - Object.keys(ps).forEach((p) => gen.assign((0, codegen_1._)`${props}${(0, codegen_1.getProperty)(p)}`, true)); - } - exports.setEvaluated = setEvaluated; - var snippets = {}; - function useFunc(gen, f) { - return gen.scopeValue("func", { - ref: f, - code: snippets[f.code] || (snippets[f.code] = new code_1._Code(f.code)) - }); - } - exports.useFunc = useFunc; - var Type; - (function(Type2) { - Type2[Type2["Num"] = 0] = "Num"; - Type2[Type2["Str"] = 1] = "Str"; - })(Type || (exports.Type = Type = {})); - function getErrorPath(dataProp, dataPropType, jsPropertySyntax) { - if (dataProp instanceof codegen_1.Name) { - const isNumber = dataPropType === Type.Num; - return jsPropertySyntax ? isNumber ? (0, codegen_1._)`"[" + ${dataProp} + "]"` : (0, codegen_1._)`"['" + ${dataProp} + "']"` : isNumber ? (0, codegen_1._)`"/" + ${dataProp}` : (0, codegen_1._)`"/" + ${dataProp}.replace(/~/g, "~0").replace(/\\//g, "~1")`; - } - return jsPropertySyntax ? (0, codegen_1.getProperty)(dataProp).toString() : "/" + escapeJsonPointer(dataProp); - } - exports.getErrorPath = getErrorPath; - function checkStrictMode(it, msg, mode = it.opts.strictSchema) { - if (!mode) - return; - msg = `strict mode: ${msg}`; - if (mode === true) - throw new Error(msg); - it.self.logger.warn(msg); - } - exports.checkStrictMode = checkStrictMode; -}); -var require_names2 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var codegen_1 = require_codegen2(); - var names = { - data: new codegen_1.Name("data"), - valCxt: new codegen_1.Name("valCxt"), - instancePath: new codegen_1.Name("instancePath"), - parentData: new codegen_1.Name("parentData"), - parentDataProperty: new codegen_1.Name("parentDataProperty"), - rootData: new codegen_1.Name("rootData"), - dynamicAnchors: new codegen_1.Name("dynamicAnchors"), - vErrors: new codegen_1.Name("vErrors"), - errors: new codegen_1.Name("errors"), - this: new codegen_1.Name("this"), - self: new codegen_1.Name("self"), - scope: new codegen_1.Name("scope"), - json: new codegen_1.Name("json"), - jsonPos: new codegen_1.Name("jsonPos"), - jsonLen: new codegen_1.Name("jsonLen"), - jsonPart: new codegen_1.Name("jsonPart") - }; - exports.default = names; -}); -var require_errors2 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.extendErrors = exports.resetErrorsCount = exports.reportExtraError = exports.reportError = exports.keyword$DataError = exports.keywordError = undefined; - var codegen_1 = require_codegen2(); - var util_1 = require_util2(); - var names_1 = require_names2(); - exports.keywordError = { - message: ({ keyword }) => (0, codegen_1.str)`must pass "${keyword}" keyword validation` - }; - exports.keyword$DataError = { - message: ({ keyword, schemaType }) => schemaType ? (0, codegen_1.str)`"${keyword}" keyword must be ${schemaType} ($data)` : (0, codegen_1.str)`"${keyword}" keyword is invalid ($data)` - }; - function reportError(cxt, error2 = exports.keywordError, errorPaths, overrideAllErrors) { - const { it } = cxt; - const { gen, compositeRule, allErrors } = it; - const errObj = errorObjectCode(cxt, error2, errorPaths); - if (overrideAllErrors !== null && overrideAllErrors !== undefined ? overrideAllErrors : compositeRule || allErrors) { - addError(gen, errObj); - } else { - returnErrors(it, (0, codegen_1._)`[${errObj}]`); - } - } - exports.reportError = reportError; - function reportExtraError(cxt, error2 = exports.keywordError, errorPaths) { - const { it } = cxt; - const { gen, compositeRule, allErrors } = it; - const errObj = errorObjectCode(cxt, error2, errorPaths); - addError(gen, errObj); - if (!(compositeRule || allErrors)) { - returnErrors(it, names_1.default.vErrors); - } - } - exports.reportExtraError = reportExtraError; - function resetErrorsCount(gen, errsCount) { - gen.assign(names_1.default.errors, errsCount); - gen.if((0, codegen_1._)`${names_1.default.vErrors} !== null`, () => gen.if(errsCount, () => gen.assign((0, codegen_1._)`${names_1.default.vErrors}.length`, errsCount), () => gen.assign(names_1.default.vErrors, null))); - } - exports.resetErrorsCount = resetErrorsCount; - function extendErrors({ gen, keyword, schemaValue, data, errsCount, it }) { - if (errsCount === undefined) - throw new Error("ajv implementation error"); - const err = gen.name("err"); - gen.forRange("i", errsCount, names_1.default.errors, (i) => { - gen.const(err, (0, codegen_1._)`${names_1.default.vErrors}[${i}]`); - gen.if((0, codegen_1._)`${err}.instancePath === undefined`, () => gen.assign((0, codegen_1._)`${err}.instancePath`, (0, codegen_1.strConcat)(names_1.default.instancePath, it.errorPath))); - gen.assign((0, codegen_1._)`${err}.schemaPath`, (0, codegen_1.str)`${it.errSchemaPath}/${keyword}`); - if (it.opts.verbose) { - gen.assign((0, codegen_1._)`${err}.schema`, schemaValue); - gen.assign((0, codegen_1._)`${err}.data`, data); - } - }); - } - exports.extendErrors = extendErrors; - function addError(gen, errObj) { - const err = gen.const("err", errObj); - gen.if((0, codegen_1._)`${names_1.default.vErrors} === null`, () => gen.assign(names_1.default.vErrors, (0, codegen_1._)`[${err}]`), (0, codegen_1._)`${names_1.default.vErrors}.push(${err})`); - gen.code((0, codegen_1._)`${names_1.default.errors}++`); - } - function returnErrors(it, errs) { - const { gen, validateName, schemaEnv } = it; - if (schemaEnv.$async) { - gen.throw((0, codegen_1._)`new ${it.ValidationError}(${errs})`); - } else { - gen.assign((0, codegen_1._)`${validateName}.errors`, errs); - gen.return(false); - } - } - var E = { - keyword: new codegen_1.Name("keyword"), - schemaPath: new codegen_1.Name("schemaPath"), - params: new codegen_1.Name("params"), - propertyName: new codegen_1.Name("propertyName"), - message: new codegen_1.Name("message"), - schema: new codegen_1.Name("schema"), - parentSchema: new codegen_1.Name("parentSchema") - }; - function errorObjectCode(cxt, error2, errorPaths) { - const { createErrors } = cxt.it; - if (createErrors === false) - return (0, codegen_1._)`{}`; - return errorObject(cxt, error2, errorPaths); - } - function errorObject(cxt, error2, errorPaths = {}) { - const { gen, it } = cxt; - const keyValues = [ - errorInstancePath(it, errorPaths), - errorSchemaPath(cxt, errorPaths) - ]; - extraErrorProps(cxt, error2, keyValues); - return gen.object(...keyValues); - } - function errorInstancePath({ errorPath }, { instancePath }) { - const instPath = instancePath ? (0, codegen_1.str)`${errorPath}${(0, util_1.getErrorPath)(instancePath, util_1.Type.Str)}` : errorPath; - return [names_1.default.instancePath, (0, codegen_1.strConcat)(names_1.default.instancePath, instPath)]; - } - function errorSchemaPath({ keyword, it: { errSchemaPath } }, { schemaPath, parentSchema }) { - let schPath = parentSchema ? errSchemaPath : (0, codegen_1.str)`${errSchemaPath}/${keyword}`; - if (schemaPath) { - schPath = (0, codegen_1.str)`${schPath}${(0, util_1.getErrorPath)(schemaPath, util_1.Type.Str)}`; - } - return [E.schemaPath, schPath]; - } - function extraErrorProps(cxt, { params, message }, keyValues) { - const { keyword, data, schemaValue, it } = cxt; - const { opts, propertyName, topSchemaRef, schemaPath } = it; - keyValues.push([E.keyword, keyword], [E.params, typeof params == "function" ? params(cxt) : params || (0, codegen_1._)`{}`]); - if (opts.messages) { - keyValues.push([E.message, typeof message == "function" ? message(cxt) : message]); - } - if (opts.verbose) { - keyValues.push([E.schema, schemaValue], [E.parentSchema, (0, codegen_1._)`${topSchemaRef}${schemaPath}`], [names_1.default.data, data]); - } - if (propertyName) - keyValues.push([E.propertyName, propertyName]); - } -}); -var require_boolSchema2 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.boolOrEmptySchema = exports.topBoolOrEmptySchema = undefined; - var errors_1 = require_errors2(); - var codegen_1 = require_codegen2(); - var names_1 = require_names2(); - var boolError = { - message: "boolean schema is false" - }; - function topBoolOrEmptySchema(it) { - const { gen, schema, validateName } = it; - if (schema === false) { - falseSchemaError(it, false); - } else if (typeof schema == "object" && schema.$async === true) { - gen.return(names_1.default.data); - } else { - gen.assign((0, codegen_1._)`${validateName}.errors`, null); - gen.return(true); - } - } - exports.topBoolOrEmptySchema = topBoolOrEmptySchema; - function boolOrEmptySchema(it, valid) { - const { gen, schema } = it; - if (schema === false) { - gen.var(valid, false); - falseSchemaError(it); - } else { - gen.var(valid, true); - } - } - exports.boolOrEmptySchema = boolOrEmptySchema; - function falseSchemaError(it, overrideAllErrors) { - const { gen, data } = it; - const cxt = { - gen, - keyword: "false schema", - data, - schema: false, - schemaCode: false, - schemaValue: false, - params: {}, - it - }; - (0, errors_1.reportError)(cxt, boolError, undefined, overrideAllErrors); - } -}); -var require_rules2 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getRules = exports.isJSONType = undefined; - var _jsonTypes = ["string", "number", "integer", "boolean", "null", "object", "array"]; - var jsonTypes = new Set(_jsonTypes); - function isJSONType(x) { - return typeof x == "string" && jsonTypes.has(x); - } - exports.isJSONType = isJSONType; - function getRules() { - const groups = { - number: { type: "number", rules: [] }, - string: { type: "string", rules: [] }, - array: { type: "array", rules: [] }, - object: { type: "object", rules: [] } - }; - return { - types: { ...groups, integer: true, boolean: true, null: true }, - rules: [{ rules: [] }, groups.number, groups.string, groups.array, groups.object], - post: { rules: [] }, - all: {}, - keywords: {} - }; - } - exports.getRules = getRules; -}); -var require_applicability2 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.shouldUseRule = exports.shouldUseGroup = exports.schemaHasRulesForType = undefined; - function schemaHasRulesForType({ schema, self: self2 }, type) { - const group = self2.RULES.types[type]; - return group && group !== true && shouldUseGroup(schema, group); - } - exports.schemaHasRulesForType = schemaHasRulesForType; - function shouldUseGroup(schema, group) { - return group.rules.some((rule) => shouldUseRule(schema, rule)); - } - exports.shouldUseGroup = shouldUseGroup; - function shouldUseRule(schema, rule) { - var _a2; - return schema[rule.keyword] !== undefined || ((_a2 = rule.definition.implements) === null || _a2 === undefined ? undefined : _a2.some((kwd) => schema[kwd] !== undefined)); - } - exports.shouldUseRule = shouldUseRule; -}); -var require_dataType2 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.reportTypeError = exports.checkDataTypes = exports.checkDataType = exports.coerceAndCheckDataType = exports.getJSONTypes = exports.getSchemaTypes = exports.DataType = undefined; - var rules_1 = require_rules2(); - var applicability_1 = require_applicability2(); - var errors_1 = require_errors2(); - var codegen_1 = require_codegen2(); - var util_1 = require_util2(); - var DataType; - (function(DataType2) { - DataType2[DataType2["Correct"] = 0] = "Correct"; - DataType2[DataType2["Wrong"] = 1] = "Wrong"; - })(DataType || (exports.DataType = DataType = {})); - function getSchemaTypes(schema) { - const types = getJSONTypes(schema.type); - const hasNull = types.includes("null"); - if (hasNull) { - if (schema.nullable === false) - throw new Error("type: null contradicts nullable: false"); - } else { - if (!types.length && schema.nullable !== undefined) { - throw new Error('"nullable" cannot be used without "type"'); - } - if (schema.nullable === true) - types.push("null"); - } - return types; - } - exports.getSchemaTypes = getSchemaTypes; - function getJSONTypes(ts) { - const types = Array.isArray(ts) ? ts : ts ? [ts] : []; - if (types.every(rules_1.isJSONType)) - return types; - throw new Error("type must be JSONType or JSONType[]: " + types.join(",")); - } - exports.getJSONTypes = getJSONTypes; - function coerceAndCheckDataType(it, types) { - const { gen, data, opts } = it; - const coerceTo = coerceToTypes(types, opts.coerceTypes); - const checkTypes = types.length > 0 && !(coerceTo.length === 0 && types.length === 1 && (0, applicability_1.schemaHasRulesForType)(it, types[0])); - if (checkTypes) { - const wrongType = checkDataTypes(types, data, opts.strictNumbers, DataType.Wrong); - gen.if(wrongType, () => { - if (coerceTo.length) - coerceData(it, types, coerceTo); - else - reportTypeError(it); - }); - } - return checkTypes; - } - exports.coerceAndCheckDataType = coerceAndCheckDataType; - var COERCIBLE = new Set(["string", "number", "integer", "boolean", "null"]); - function coerceToTypes(types, coerceTypes) { - return coerceTypes ? types.filter((t) => COERCIBLE.has(t) || coerceTypes === "array" && t === "array") : []; - } - function coerceData(it, types, coerceTo) { - const { gen, data, opts } = it; - const dataType = gen.let("dataType", (0, codegen_1._)`typeof ${data}`); - const coerced = gen.let("coerced", (0, codegen_1._)`undefined`); - if (opts.coerceTypes === "array") { - gen.if((0, codegen_1._)`${dataType} == 'object' && Array.isArray(${data}) && ${data}.length == 1`, () => gen.assign(data, (0, codegen_1._)`${data}[0]`).assign(dataType, (0, codegen_1._)`typeof ${data}`).if(checkDataTypes(types, data, opts.strictNumbers), () => gen.assign(coerced, data))); - } - gen.if((0, codegen_1._)`${coerced} !== undefined`); - for (const t of coerceTo) { - if (COERCIBLE.has(t) || t === "array" && opts.coerceTypes === "array") { - coerceSpecificType(t); - } - } - gen.else(); - reportTypeError(it); - gen.endIf(); - gen.if((0, codegen_1._)`${coerced} !== undefined`, () => { - gen.assign(data, coerced); - assignParentData(it, coerced); - }); - function coerceSpecificType(t) { - switch (t) { - case "string": - gen.elseIf((0, codegen_1._)`${dataType} == "number" || ${dataType} == "boolean"`).assign(coerced, (0, codegen_1._)`"" + ${data}`).elseIf((0, codegen_1._)`${data} === null`).assign(coerced, (0, codegen_1._)`""`); - return; - case "number": - gen.elseIf((0, codegen_1._)`${dataType} == "boolean" || ${data} === null - || (${dataType} == "string" && ${data} && ${data} == +${data})`).assign(coerced, (0, codegen_1._)`+${data}`); - return; - case "integer": - gen.elseIf((0, codegen_1._)`${dataType} === "boolean" || ${data} === null - || (${dataType} === "string" && ${data} && ${data} == +${data} && !(${data} % 1))`).assign(coerced, (0, codegen_1._)`+${data}`); - return; - case "boolean": - gen.elseIf((0, codegen_1._)`${data} === "false" || ${data} === 0 || ${data} === null`).assign(coerced, false).elseIf((0, codegen_1._)`${data} === "true" || ${data} === 1`).assign(coerced, true); - return; - case "null": - gen.elseIf((0, codegen_1._)`${data} === "" || ${data} === 0 || ${data} === false`); - gen.assign(coerced, null); - return; - case "array": - gen.elseIf((0, codegen_1._)`${dataType} === "string" || ${dataType} === "number" - || ${dataType} === "boolean" || ${data} === null`).assign(coerced, (0, codegen_1._)`[${data}]`); - } - } - } - function assignParentData({ gen, parentData, parentDataProperty }, expr) { - gen.if((0, codegen_1._)`${parentData} !== undefined`, () => gen.assign((0, codegen_1._)`${parentData}[${parentDataProperty}]`, expr)); - } - function checkDataType(dataType, data, strictNums, correct = DataType.Correct) { - const EQ = correct === DataType.Correct ? codegen_1.operators.EQ : codegen_1.operators.NEQ; - let cond; - switch (dataType) { - case "null": - return (0, codegen_1._)`${data} ${EQ} null`; - case "array": - cond = (0, codegen_1._)`Array.isArray(${data})`; - break; - case "object": - cond = (0, codegen_1._)`${data} && typeof ${data} == "object" && !Array.isArray(${data})`; - break; - case "integer": - cond = numCond((0, codegen_1._)`!(${data} % 1) && !isNaN(${data})`); - break; - case "number": - cond = numCond(); - break; - default: - return (0, codegen_1._)`typeof ${data} ${EQ} ${dataType}`; - } - return correct === DataType.Correct ? cond : (0, codegen_1.not)(cond); - function numCond(_cond = codegen_1.nil) { - return (0, codegen_1.and)((0, codegen_1._)`typeof ${data} == "number"`, _cond, strictNums ? (0, codegen_1._)`isFinite(${data})` : codegen_1.nil); - } - } - exports.checkDataType = checkDataType; - function checkDataTypes(dataTypes, data, strictNums, correct) { - if (dataTypes.length === 1) { - return checkDataType(dataTypes[0], data, strictNums, correct); - } - let cond; - const types = (0, util_1.toHash)(dataTypes); - if (types.array && types.object) { - const notObj = (0, codegen_1._)`typeof ${data} != "object"`; - cond = types.null ? notObj : (0, codegen_1._)`!${data} || ${notObj}`; - delete types.null; - delete types.array; - delete types.object; - } else { - cond = codegen_1.nil; - } - if (types.number) - delete types.integer; - for (const t in types) - cond = (0, codegen_1.and)(cond, checkDataType(t, data, strictNums, correct)); - return cond; - } - exports.checkDataTypes = checkDataTypes; - var typeError = { - message: ({ schema }) => `must be ${schema}`, - params: ({ schema, schemaValue }) => typeof schema == "string" ? (0, codegen_1._)`{type: ${schema}}` : (0, codegen_1._)`{type: ${schemaValue}}` - }; - function reportTypeError(it) { - const cxt = getTypeErrorContext(it); - (0, errors_1.reportError)(cxt, typeError); - } - exports.reportTypeError = reportTypeError; - function getTypeErrorContext(it) { - const { gen, data, schema } = it; - const schemaCode = (0, util_1.schemaRefOrVal)(it, schema, "type"); - return { - gen, - keyword: "type", - data, - schema: schema.type, - schemaCode, - schemaValue: schemaCode, - parentSchema: schema, - params: {}, - it - }; - } -}); -var require_defaults2 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.assignDefaults = undefined; - var codegen_1 = require_codegen2(); - var util_1 = require_util2(); - function assignDefaults(it, ty) { - const { properties, items } = it.schema; - if (ty === "object" && properties) { - for (const key in properties) { - assignDefault(it, key, properties[key].default); - } - } else if (ty === "array" && Array.isArray(items)) { - items.forEach((sch, i) => assignDefault(it, i, sch.default)); - } - } - exports.assignDefaults = assignDefaults; - function assignDefault(it, prop, defaultValue) { - const { gen, compositeRule, data, opts } = it; - if (defaultValue === undefined) - return; - const childData = (0, codegen_1._)`${data}${(0, codegen_1.getProperty)(prop)}`; - if (compositeRule) { - (0, util_1.checkStrictMode)(it, `default is ignored for: ${childData}`); - return; - } - let condition = (0, codegen_1._)`${childData} === undefined`; - if (opts.useDefaults === "empty") { - condition = (0, codegen_1._)`${condition} || ${childData} === null || ${childData} === ""`; - } - gen.if(condition, (0, codegen_1._)`${childData} = ${(0, codegen_1.stringify)(defaultValue)}`); - } -}); -var require_code22 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.validateUnion = exports.validateArray = exports.usePattern = exports.callValidateCode = exports.schemaProperties = exports.allSchemaProperties = exports.noPropertyInData = exports.propertyInData = exports.isOwnProperty = exports.hasPropFunc = exports.reportMissingProp = exports.checkMissingProp = exports.checkReportMissingProp = undefined; - var codegen_1 = require_codegen2(); - var util_1 = require_util2(); - var names_1 = require_names2(); - var util_2 = require_util2(); - function checkReportMissingProp(cxt, prop) { - const { gen, data, it } = cxt; - gen.if(noPropertyInData(gen, data, prop, it.opts.ownProperties), () => { - cxt.setParams({ missingProperty: (0, codegen_1._)`${prop}` }, true); - cxt.error(); - }); - } - exports.checkReportMissingProp = checkReportMissingProp; - function checkMissingProp({ gen, data, it: { opts } }, properties, missing) { - return (0, codegen_1.or)(...properties.map((prop) => (0, codegen_1.and)(noPropertyInData(gen, data, prop, opts.ownProperties), (0, codegen_1._)`${missing} = ${prop}`))); - } - exports.checkMissingProp = checkMissingProp; - function reportMissingProp(cxt, missing) { - cxt.setParams({ missingProperty: missing }, true); - cxt.error(); - } - exports.reportMissingProp = reportMissingProp; - function hasPropFunc(gen) { - return gen.scopeValue("func", { - ref: Object.prototype.hasOwnProperty, - code: (0, codegen_1._)`Object.prototype.hasOwnProperty` - }); - } - exports.hasPropFunc = hasPropFunc; - function isOwnProperty(gen, data, property) { - return (0, codegen_1._)`${hasPropFunc(gen)}.call(${data}, ${property})`; - } - exports.isOwnProperty = isOwnProperty; - function propertyInData(gen, data, property, ownProperties) { - const cond = (0, codegen_1._)`${data}${(0, codegen_1.getProperty)(property)} !== undefined`; - return ownProperties ? (0, codegen_1._)`${cond} && ${isOwnProperty(gen, data, property)}` : cond; - } - exports.propertyInData = propertyInData; - function noPropertyInData(gen, data, property, ownProperties) { - const cond = (0, codegen_1._)`${data}${(0, codegen_1.getProperty)(property)} === undefined`; - return ownProperties ? (0, codegen_1.or)(cond, (0, codegen_1.not)(isOwnProperty(gen, data, property))) : cond; - } - exports.noPropertyInData = noPropertyInData; - function allSchemaProperties(schemaMap) { - return schemaMap ? Object.keys(schemaMap).filter((p) => p !== "__proto__") : []; - } - exports.allSchemaProperties = allSchemaProperties; - function schemaProperties(it, schemaMap) { - return allSchemaProperties(schemaMap).filter((p) => !(0, util_1.alwaysValidSchema)(it, schemaMap[p])); - } - exports.schemaProperties = schemaProperties; - function callValidateCode({ schemaCode, data, it: { gen, topSchemaRef, schemaPath, errorPath }, it }, func, context, passSchema) { - const dataAndSchema = passSchema ? (0, codegen_1._)`${schemaCode}, ${data}, ${topSchemaRef}${schemaPath}` : data; - const valCxt = [ - [names_1.default.instancePath, (0, codegen_1.strConcat)(names_1.default.instancePath, errorPath)], - [names_1.default.parentData, it.parentData], - [names_1.default.parentDataProperty, it.parentDataProperty], - [names_1.default.rootData, names_1.default.rootData] - ]; - if (it.opts.dynamicRef) - valCxt.push([names_1.default.dynamicAnchors, names_1.default.dynamicAnchors]); - const args = (0, codegen_1._)`${dataAndSchema}, ${gen.object(...valCxt)}`; - return context !== codegen_1.nil ? (0, codegen_1._)`${func}.call(${context}, ${args})` : (0, codegen_1._)`${func}(${args})`; - } - exports.callValidateCode = callValidateCode; - var newRegExp = (0, codegen_1._)`new RegExp`; - function usePattern({ gen, it: { opts } }, pattern) { - const u = opts.unicodeRegExp ? "u" : ""; - const { regExp } = opts.code; - const rx = regExp(pattern, u); - return gen.scopeValue("pattern", { - key: rx.toString(), - ref: rx, - code: (0, codegen_1._)`${regExp.code === "new RegExp" ? newRegExp : (0, util_2.useFunc)(gen, regExp)}(${pattern}, ${u})` - }); - } - exports.usePattern = usePattern; - function validateArray(cxt) { - const { gen, data, keyword, it } = cxt; - const valid = gen.name("valid"); - if (it.allErrors) { - const validArr = gen.let("valid", true); - validateItems(() => gen.assign(validArr, false)); - return validArr; - } - gen.var(valid, true); - validateItems(() => gen.break()); - return valid; - function validateItems(notValid) { - const len = gen.const("len", (0, codegen_1._)`${data}.length`); - gen.forRange("i", 0, len, (i) => { - cxt.subschema({ - keyword, - dataProp: i, - dataPropType: util_1.Type.Num - }, valid); - gen.if((0, codegen_1.not)(valid), notValid); - }); - } - } - exports.validateArray = validateArray; - function validateUnion(cxt) { - const { gen, schema, keyword, it } = cxt; - if (!Array.isArray(schema)) - throw new Error("ajv implementation error"); - const alwaysValid = schema.some((sch) => (0, util_1.alwaysValidSchema)(it, sch)); - if (alwaysValid && !it.opts.unevaluated) - return; - const valid = gen.let("valid", false); - const schValid = gen.name("_valid"); - gen.block(() => schema.forEach((_sch, i) => { - const schCxt = cxt.subschema({ - keyword, - schemaProp: i, - compositeRule: true - }, schValid); - gen.assign(valid, (0, codegen_1._)`${valid} || ${schValid}`); - const merged = cxt.mergeValidEvaluated(schCxt, schValid); - if (!merged) - gen.if((0, codegen_1.not)(valid)); - })); - cxt.result(valid, () => cxt.reset(), () => cxt.error(true)); - } - exports.validateUnion = validateUnion; -}); -var require_keyword2 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.validateKeywordUsage = exports.validSchemaType = exports.funcKeywordCode = exports.macroKeywordCode = undefined; - var codegen_1 = require_codegen2(); - var names_1 = require_names2(); - var code_1 = require_code22(); - var errors_1 = require_errors2(); - function macroKeywordCode(cxt, def) { - const { gen, keyword, schema, parentSchema, it } = cxt; - const macroSchema = def.macro.call(it.self, schema, parentSchema, it); - const schemaRef = useKeyword(gen, keyword, macroSchema); - if (it.opts.validateSchema !== false) - it.self.validateSchema(macroSchema, true); - const valid = gen.name("valid"); - cxt.subschema({ - schema: macroSchema, - schemaPath: codegen_1.nil, - errSchemaPath: `${it.errSchemaPath}/${keyword}`, - topSchemaRef: schemaRef, - compositeRule: true - }, valid); - cxt.pass(valid, () => cxt.error(true)); - } - exports.macroKeywordCode = macroKeywordCode; - function funcKeywordCode(cxt, def) { - var _a2; - const { gen, keyword, schema, parentSchema, $data, it } = cxt; - checkAsyncKeyword(it, def); - const validate = !$data && def.compile ? def.compile.call(it.self, schema, parentSchema, it) : def.validate; - const validateRef = useKeyword(gen, keyword, validate); - const valid = gen.let("valid"); - cxt.block$data(valid, validateKeyword); - cxt.ok((_a2 = def.valid) !== null && _a2 !== undefined ? _a2 : valid); - function validateKeyword() { - if (def.errors === false) { - assignValid(); - if (def.modifying) - modifyData(cxt); - reportErrs(() => cxt.error()); - } else { - const ruleErrs = def.async ? validateAsync() : validateSync(); - if (def.modifying) - modifyData(cxt); - reportErrs(() => addErrs(cxt, ruleErrs)); - } - } - function validateAsync() { - const ruleErrs = gen.let("ruleErrs", null); - gen.try(() => assignValid((0, codegen_1._)`await `), (e) => gen.assign(valid, false).if((0, codegen_1._)`${e} instanceof ${it.ValidationError}`, () => gen.assign(ruleErrs, (0, codegen_1._)`${e}.errors`), () => gen.throw(e))); - return ruleErrs; - } - function validateSync() { - const validateErrs = (0, codegen_1._)`${validateRef}.errors`; - gen.assign(validateErrs, null); - assignValid(codegen_1.nil); - return validateErrs; - } - function assignValid(_await = def.async ? (0, codegen_1._)`await ` : codegen_1.nil) { - const passCxt = it.opts.passContext ? names_1.default.this : names_1.default.self; - const passSchema = !(("compile" in def) && !$data || def.schema === false); - gen.assign(valid, (0, codegen_1._)`${_await}${(0, code_1.callValidateCode)(cxt, validateRef, passCxt, passSchema)}`, def.modifying); - } - function reportErrs(errors3) { - var _a22; - gen.if((0, codegen_1.not)((_a22 = def.valid) !== null && _a22 !== undefined ? _a22 : valid), errors3); - } - } - exports.funcKeywordCode = funcKeywordCode; - function modifyData(cxt) { - const { gen, data, it } = cxt; - gen.if(it.parentData, () => gen.assign(data, (0, codegen_1._)`${it.parentData}[${it.parentDataProperty}]`)); - } - function addErrs(cxt, errs) { - const { gen } = cxt; - gen.if((0, codegen_1._)`Array.isArray(${errs})`, () => { - gen.assign(names_1.default.vErrors, (0, codegen_1._)`${names_1.default.vErrors} === null ? ${errs} : ${names_1.default.vErrors}.concat(${errs})`).assign(names_1.default.errors, (0, codegen_1._)`${names_1.default.vErrors}.length`); - (0, errors_1.extendErrors)(cxt); - }, () => cxt.error()); - } - function checkAsyncKeyword({ schemaEnv }, def) { - if (def.async && !schemaEnv.$async) - throw new Error("async keyword in sync schema"); - } - function useKeyword(gen, keyword, result) { - if (result === undefined) - throw new Error(`keyword "${keyword}" failed to compile`); - return gen.scopeValue("keyword", typeof result == "function" ? { ref: result } : { ref: result, code: (0, codegen_1.stringify)(result) }); - } - function validSchemaType(schema, schemaType, allowUndefined = false) { - return !schemaType.length || schemaType.some((st) => st === "array" ? Array.isArray(schema) : st === "object" ? schema && typeof schema == "object" && !Array.isArray(schema) : typeof schema == st || allowUndefined && typeof schema == "undefined"); - } - exports.validSchemaType = validSchemaType; - function validateKeywordUsage({ schema, opts, self: self2, errSchemaPath }, def, keyword) { - if (Array.isArray(def.keyword) ? !def.keyword.includes(keyword) : def.keyword !== keyword) { - throw new Error("ajv implementation error"); - } - const deps = def.dependencies; - if (deps === null || deps === undefined ? undefined : deps.some((kwd) => !Object.prototype.hasOwnProperty.call(schema, kwd))) { - throw new Error(`parent schema must have dependencies of ${keyword}: ${deps.join(",")}`); - } - if (def.validateSchema) { - const valid = def.validateSchema(schema[keyword]); - if (!valid) { - const msg = `keyword "${keyword}" value is invalid at path "${errSchemaPath}": ` + self2.errorsText(def.validateSchema.errors); - if (opts.validateSchema === "log") - self2.logger.error(msg); - else - throw new Error(msg); - } - } - } - exports.validateKeywordUsage = validateKeywordUsage; -}); -var require_subschema2 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.extendSubschemaMode = exports.extendSubschemaData = exports.getSubschema = undefined; - var codegen_1 = require_codegen2(); - var util_1 = require_util2(); - function getSubschema(it, { keyword, schemaProp, schema, schemaPath, errSchemaPath, topSchemaRef }) { - if (keyword !== undefined && schema !== undefined) { - throw new Error('both "keyword" and "schema" passed, only one allowed'); - } - if (keyword !== undefined) { - const sch = it.schema[keyword]; - return schemaProp === undefined ? { - schema: sch, - schemaPath: (0, codegen_1._)`${it.schemaPath}${(0, codegen_1.getProperty)(keyword)}`, - errSchemaPath: `${it.errSchemaPath}/${keyword}` - } : { - schema: sch[schemaProp], - schemaPath: (0, codegen_1._)`${it.schemaPath}${(0, codegen_1.getProperty)(keyword)}${(0, codegen_1.getProperty)(schemaProp)}`, - errSchemaPath: `${it.errSchemaPath}/${keyword}/${(0, util_1.escapeFragment)(schemaProp)}` - }; - } - if (schema !== undefined) { - if (schemaPath === undefined || errSchemaPath === undefined || topSchemaRef === undefined) { - throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"'); - } - return { - schema, - schemaPath, - topSchemaRef, - errSchemaPath - }; - } - throw new Error('either "keyword" or "schema" must be passed'); - } - exports.getSubschema = getSubschema; - function extendSubschemaData(subschema, it, { dataProp, dataPropType: dpType, data, dataTypes, propertyName }) { - if (data !== undefined && dataProp !== undefined) { - throw new Error('both "data" and "dataProp" passed, only one allowed'); - } - const { gen } = it; - if (dataProp !== undefined) { - const { errorPath, dataPathArr, opts } = it; - const nextData = gen.let("data", (0, codegen_1._)`${it.data}${(0, codegen_1.getProperty)(dataProp)}`, true); - dataContextProps(nextData); - subschema.errorPath = (0, codegen_1.str)`${errorPath}${(0, util_1.getErrorPath)(dataProp, dpType, opts.jsPropertySyntax)}`; - subschema.parentDataProperty = (0, codegen_1._)`${dataProp}`; - subschema.dataPathArr = [...dataPathArr, subschema.parentDataProperty]; - } - if (data !== undefined) { - const nextData = data instanceof codegen_1.Name ? data : gen.let("data", data, true); - dataContextProps(nextData); - if (propertyName !== undefined) - subschema.propertyName = propertyName; - } - if (dataTypes) - subschema.dataTypes = dataTypes; - function dataContextProps(_nextData) { - subschema.data = _nextData; - subschema.dataLevel = it.dataLevel + 1; - subschema.dataTypes = []; - it.definedProperties = new Set; - subschema.parentData = it.data; - subschema.dataNames = [...it.dataNames, _nextData]; - } - } - exports.extendSubschemaData = extendSubschemaData; - function extendSubschemaMode(subschema, { jtdDiscriminator, jtdMetadata, compositeRule, createErrors, allErrors }) { - if (compositeRule !== undefined) - subschema.compositeRule = compositeRule; - if (createErrors !== undefined) - subschema.createErrors = createErrors; - if (allErrors !== undefined) - subschema.allErrors = allErrors; - subschema.jtdDiscriminator = jtdDiscriminator; - subschema.jtdMetadata = jtdMetadata; - } - exports.extendSubschemaMode = extendSubschemaMode; -}); -var require_fast_deep_equal2 = __commonJS2((exports, module) => { - module.exports = function equal(a, b) { - if (a === b) - return true; - if (a && b && typeof a == "object" && typeof b == "object") { - if (a.constructor !== b.constructor) - return false; - var length, i, keys; - if (Array.isArray(a)) { - length = a.length; - if (length != b.length) - return false; - for (i = length;i-- !== 0; ) - if (!equal(a[i], b[i])) - return false; - return true; - } - if (a.constructor === RegExp) - return a.source === b.source && a.flags === b.flags; - if (a.valueOf !== Object.prototype.valueOf) - return a.valueOf() === b.valueOf(); - if (a.toString !== Object.prototype.toString) - return a.toString() === b.toString(); - keys = Object.keys(a); - length = keys.length; - if (length !== Object.keys(b).length) - return false; - for (i = length;i-- !== 0; ) - if (!Object.prototype.hasOwnProperty.call(b, keys[i])) - return false; - for (i = length;i-- !== 0; ) { - var key = keys[i]; - if (!equal(a[key], b[key])) - return false; - } - return true; - } - return a !== a && b !== b; - }; -}); -var require_json_schema_traverse2 = __commonJS2((exports, module) => { - var traverse = module.exports = function(schema, opts, cb) { - if (typeof opts == "function") { - cb = opts; - opts = {}; - } - cb = opts.cb || cb; - var pre = typeof cb == "function" ? cb : cb.pre || function() {}; - var post = cb.post || function() {}; - _traverse(opts, pre, post, schema, "", schema); - }; - traverse.keywords = { - additionalItems: true, - items: true, - contains: true, - additionalProperties: true, - propertyNames: true, - not: true, - if: true, - then: true, - else: true - }; - traverse.arrayKeywords = { - items: true, - allOf: true, - anyOf: true, - oneOf: true - }; - traverse.propsKeywords = { - $defs: true, - definitions: true, - properties: true, - patternProperties: true, - dependencies: true - }; - traverse.skipKeywords = { - default: true, - enum: true, - const: true, - required: true, - maximum: true, - minimum: true, - exclusiveMaximum: true, - exclusiveMinimum: true, - multipleOf: true, - maxLength: true, - minLength: true, - pattern: true, - format: true, - maxItems: true, - minItems: true, - uniqueItems: true, - maxProperties: true, - minProperties: true - }; - function _traverse(opts, pre, post, schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex) { - if (schema && typeof schema == "object" && !Array.isArray(schema)) { - pre(schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex); - for (var key in schema) { - var sch = schema[key]; - if (Array.isArray(sch)) { - if (key in traverse.arrayKeywords) { - for (var i = 0;i < sch.length; i++) - _traverse(opts, pre, post, sch[i], jsonPtr + "/" + key + "/" + i, rootSchema, jsonPtr, key, schema, i); - } - } else if (key in traverse.propsKeywords) { - if (sch && typeof sch == "object") { - for (var prop in sch) - _traverse(opts, pre, post, sch[prop], jsonPtr + "/" + key + "/" + escapeJsonPtr(prop), rootSchema, jsonPtr, key, schema, prop); - } - } else if (key in traverse.keywords || opts.allKeys && !(key in traverse.skipKeywords)) { - _traverse(opts, pre, post, sch, jsonPtr + "/" + key, rootSchema, jsonPtr, key, schema); - } - } - post(schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex); - } - } - function escapeJsonPtr(str) { - return str.replace(/~/g, "~0").replace(/\//g, "~1"); - } -}); -var require_resolve2 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getSchemaRefs = exports.resolveUrl = exports.normalizeId = exports._getFullPath = exports.getFullPath = exports.inlineRef = undefined; - var util_1 = require_util2(); - var equal = require_fast_deep_equal2(); - var traverse = require_json_schema_traverse2(); - var SIMPLE_INLINED = new Set([ - "type", - "format", - "pattern", - "maxLength", - "minLength", - "maxProperties", - "minProperties", - "maxItems", - "minItems", - "maximum", - "minimum", - "uniqueItems", - "multipleOf", - "required", - "enum", - "const" - ]); - function inlineRef(schema, limit = true) { - if (typeof schema == "boolean") - return true; - if (limit === true) - return !hasRef(schema); - if (!limit) - return false; - return countKeys(schema) <= limit; - } - exports.inlineRef = inlineRef; - var REF_KEYWORDS = new Set([ - "$ref", - "$recursiveRef", - "$recursiveAnchor", - "$dynamicRef", - "$dynamicAnchor" - ]); - function hasRef(schema) { - for (const key in schema) { - if (REF_KEYWORDS.has(key)) - return true; - const sch = schema[key]; - if (Array.isArray(sch) && sch.some(hasRef)) - return true; - if (typeof sch == "object" && hasRef(sch)) - return true; - } - return false; - } - function countKeys(schema) { - let count = 0; - for (const key in schema) { - if (key === "$ref") - return Infinity; - count++; - if (SIMPLE_INLINED.has(key)) - continue; - if (typeof schema[key] == "object") { - (0, util_1.eachItem)(schema[key], (sch) => count += countKeys(sch)); - } - if (count === Infinity) - return Infinity; - } - return count; - } - function getFullPath(resolver, id = "", normalize) { - if (normalize !== false) - id = normalizeId(id); - const p = resolver.parse(id); - return _getFullPath(resolver, p); - } - exports.getFullPath = getFullPath; - function _getFullPath(resolver, p) { - const serialized = resolver.serialize(p); - return serialized.split("#")[0] + "#"; - } - exports._getFullPath = _getFullPath; - var TRAILING_SLASH_HASH = /#\/?$/; - function normalizeId(id) { - return id ? id.replace(TRAILING_SLASH_HASH, "") : ""; - } - exports.normalizeId = normalizeId; - function resolveUrl(resolver, baseId, id) { - id = normalizeId(id); - return resolver.resolve(baseId, id); - } - exports.resolveUrl = resolveUrl; - var ANCHOR = /^[a-z_][-a-z0-9._]*$/i; - function getSchemaRefs(schema, baseId) { - if (typeof schema == "boolean") - return {}; - const { schemaId, uriResolver } = this.opts; - const schId = normalizeId(schema[schemaId] || baseId); - const baseIds = { "": schId }; - const pathPrefix = getFullPath(uriResolver, schId, false); - const localRefs = {}; - const schemaRefs = new Set; - traverse(schema, { allKeys: true }, (sch, jsonPtr, _, parentJsonPtr) => { - if (parentJsonPtr === undefined) - return; - const fullPath = pathPrefix + jsonPtr; - let innerBaseId = baseIds[parentJsonPtr]; - if (typeof sch[schemaId] == "string") - innerBaseId = addRef.call(this, sch[schemaId]); - addAnchor.call(this, sch.$anchor); - addAnchor.call(this, sch.$dynamicAnchor); - baseIds[jsonPtr] = innerBaseId; - function addRef(ref) { - const _resolve = this.opts.uriResolver.resolve; - ref = normalizeId(innerBaseId ? _resolve(innerBaseId, ref) : ref); - if (schemaRefs.has(ref)) - throw ambiguos(ref); - schemaRefs.add(ref); - let schOrRef = this.refs[ref]; - if (typeof schOrRef == "string") - schOrRef = this.refs[schOrRef]; - if (typeof schOrRef == "object") { - checkAmbiguosRef(sch, schOrRef.schema, ref); - } else if (ref !== normalizeId(fullPath)) { - if (ref[0] === "#") { - checkAmbiguosRef(sch, localRefs[ref], ref); - localRefs[ref] = sch; - } else { - this.refs[ref] = fullPath; - } - } - return ref; - } - function addAnchor(anchor) { - if (typeof anchor == "string") { - if (!ANCHOR.test(anchor)) - throw new Error(`invalid anchor "${anchor}"`); - addRef.call(this, `#${anchor}`); - } - } - }); - return localRefs; - function checkAmbiguosRef(sch1, sch2, ref) { - if (sch2 !== undefined && !equal(sch1, sch2)) - throw ambiguos(ref); - } - function ambiguos(ref) { - return new Error(`reference "${ref}" resolves to more than one schema`); - } - } - exports.getSchemaRefs = getSchemaRefs; -}); -var require_validate2 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getData = exports.KeywordCxt = exports.validateFunctionCode = undefined; - var boolSchema_1 = require_boolSchema2(); - var dataType_1 = require_dataType2(); - var applicability_1 = require_applicability2(); - var dataType_2 = require_dataType2(); - var defaults_1 = require_defaults2(); - var keyword_1 = require_keyword2(); - var subschema_1 = require_subschema2(); - var codegen_1 = require_codegen2(); - var names_1 = require_names2(); - var resolve_1 = require_resolve2(); - var util_1 = require_util2(); - var errors_1 = require_errors2(); - function validateFunctionCode(it) { - if (isSchemaObj(it)) { - checkKeywords(it); - if (schemaCxtHasRules(it)) { - topSchemaObjCode(it); - return; - } - } - validateFunction(it, () => (0, boolSchema_1.topBoolOrEmptySchema)(it)); - } - exports.validateFunctionCode = validateFunctionCode; - function validateFunction({ gen, validateName, schema, schemaEnv, opts }, body) { - if (opts.code.es5) { - gen.func(validateName, (0, codegen_1._)`${names_1.default.data}, ${names_1.default.valCxt}`, schemaEnv.$async, () => { - gen.code((0, codegen_1._)`"use strict"; ${funcSourceUrl(schema, opts)}`); - destructureValCxtES5(gen, opts); - gen.code(body); - }); - } else { - gen.func(validateName, (0, codegen_1._)`${names_1.default.data}, ${destructureValCxt(opts)}`, schemaEnv.$async, () => gen.code(funcSourceUrl(schema, opts)).code(body)); - } - } - function destructureValCxt(opts) { - return (0, codegen_1._)`{${names_1.default.instancePath}="", ${names_1.default.parentData}, ${names_1.default.parentDataProperty}, ${names_1.default.rootData}=${names_1.default.data}${opts.dynamicRef ? (0, codegen_1._)`, ${names_1.default.dynamicAnchors}={}` : codegen_1.nil}}={}`; - } - function destructureValCxtES5(gen, opts) { - gen.if(names_1.default.valCxt, () => { - gen.var(names_1.default.instancePath, (0, codegen_1._)`${names_1.default.valCxt}.${names_1.default.instancePath}`); - gen.var(names_1.default.parentData, (0, codegen_1._)`${names_1.default.valCxt}.${names_1.default.parentData}`); - gen.var(names_1.default.parentDataProperty, (0, codegen_1._)`${names_1.default.valCxt}.${names_1.default.parentDataProperty}`); - gen.var(names_1.default.rootData, (0, codegen_1._)`${names_1.default.valCxt}.${names_1.default.rootData}`); - if (opts.dynamicRef) - gen.var(names_1.default.dynamicAnchors, (0, codegen_1._)`${names_1.default.valCxt}.${names_1.default.dynamicAnchors}`); - }, () => { - gen.var(names_1.default.instancePath, (0, codegen_1._)`""`); - gen.var(names_1.default.parentData, (0, codegen_1._)`undefined`); - gen.var(names_1.default.parentDataProperty, (0, codegen_1._)`undefined`); - gen.var(names_1.default.rootData, names_1.default.data); - if (opts.dynamicRef) - gen.var(names_1.default.dynamicAnchors, (0, codegen_1._)`{}`); - }); - } - function topSchemaObjCode(it) { - const { schema, opts, gen } = it; - validateFunction(it, () => { - if (opts.$comment && schema.$comment) - commentKeyword(it); - checkNoDefault(it); - gen.let(names_1.default.vErrors, null); - gen.let(names_1.default.errors, 0); - if (opts.unevaluated) - resetEvaluated(it); - typeAndKeywords(it); - returnResults(it); - }); - return; - } - function resetEvaluated(it) { - const { gen, validateName } = it; - it.evaluated = gen.const("evaluated", (0, codegen_1._)`${validateName}.evaluated`); - gen.if((0, codegen_1._)`${it.evaluated}.dynamicProps`, () => gen.assign((0, codegen_1._)`${it.evaluated}.props`, (0, codegen_1._)`undefined`)); - gen.if((0, codegen_1._)`${it.evaluated}.dynamicItems`, () => gen.assign((0, codegen_1._)`${it.evaluated}.items`, (0, codegen_1._)`undefined`)); - } - function funcSourceUrl(schema, opts) { - const schId = typeof schema == "object" && schema[opts.schemaId]; - return schId && (opts.code.source || opts.code.process) ? (0, codegen_1._)`/*# sourceURL=${schId} */` : codegen_1.nil; - } - function subschemaCode(it, valid) { - if (isSchemaObj(it)) { - checkKeywords(it); - if (schemaCxtHasRules(it)) { - subSchemaObjCode(it, valid); - return; - } - } - (0, boolSchema_1.boolOrEmptySchema)(it, valid); - } - function schemaCxtHasRules({ schema, self: self2 }) { - if (typeof schema == "boolean") - return !schema; - for (const key in schema) - if (self2.RULES.all[key]) - return true; - return false; - } - function isSchemaObj(it) { - return typeof it.schema != "boolean"; - } - function subSchemaObjCode(it, valid) { - const { schema, gen, opts } = it; - if (opts.$comment && schema.$comment) - commentKeyword(it); - updateContext(it); - checkAsyncSchema(it); - const errsCount = gen.const("_errs", names_1.default.errors); - typeAndKeywords(it, errsCount); - gen.var(valid, (0, codegen_1._)`${errsCount} === ${names_1.default.errors}`); - } - function checkKeywords(it) { - (0, util_1.checkUnknownRules)(it); - checkRefsAndKeywords(it); - } - function typeAndKeywords(it, errsCount) { - if (it.opts.jtd) - return schemaKeywords(it, [], false, errsCount); - const types = (0, dataType_1.getSchemaTypes)(it.schema); - const checkedTypes = (0, dataType_1.coerceAndCheckDataType)(it, types); - schemaKeywords(it, types, !checkedTypes, errsCount); - } - function checkRefsAndKeywords(it) { - const { schema, errSchemaPath, opts, self: self2 } = it; - if (schema.$ref && opts.ignoreKeywordsWithRef && (0, util_1.schemaHasRulesButRef)(schema, self2.RULES)) { - self2.logger.warn(`$ref: keywords ignored in schema at path "${errSchemaPath}"`); - } - } - function checkNoDefault(it) { - const { schema, opts } = it; - if (schema.default !== undefined && opts.useDefaults && opts.strictSchema) { - (0, util_1.checkStrictMode)(it, "default is ignored in the schema root"); - } - } - function updateContext(it) { - const schId = it.schema[it.opts.schemaId]; - if (schId) - it.baseId = (0, resolve_1.resolveUrl)(it.opts.uriResolver, it.baseId, schId); - } - function checkAsyncSchema(it) { - if (it.schema.$async && !it.schemaEnv.$async) - throw new Error("async schema in sync schema"); - } - function commentKeyword({ gen, schemaEnv, schema, errSchemaPath, opts }) { - const msg = schema.$comment; - if (opts.$comment === true) { - gen.code((0, codegen_1._)`${names_1.default.self}.logger.log(${msg})`); - } else if (typeof opts.$comment == "function") { - const schemaPath = (0, codegen_1.str)`${errSchemaPath}/$comment`; - const rootName = gen.scopeValue("root", { ref: schemaEnv.root }); - gen.code((0, codegen_1._)`${names_1.default.self}.opts.$comment(${msg}, ${schemaPath}, ${rootName}.schema)`); - } - } - function returnResults(it) { - const { gen, schemaEnv, validateName, ValidationError, opts } = it; - if (schemaEnv.$async) { - gen.if((0, codegen_1._)`${names_1.default.errors} === 0`, () => gen.return(names_1.default.data), () => gen.throw((0, codegen_1._)`new ${ValidationError}(${names_1.default.vErrors})`)); - } else { - gen.assign((0, codegen_1._)`${validateName}.errors`, names_1.default.vErrors); - if (opts.unevaluated) - assignEvaluated(it); - gen.return((0, codegen_1._)`${names_1.default.errors} === 0`); - } - } - function assignEvaluated({ gen, evaluated, props, items }) { - if (props instanceof codegen_1.Name) - gen.assign((0, codegen_1._)`${evaluated}.props`, props); - if (items instanceof codegen_1.Name) - gen.assign((0, codegen_1._)`${evaluated}.items`, items); - } - function schemaKeywords(it, types, typeErrors, errsCount) { - const { gen, schema, data, allErrors, opts, self: self2 } = it; - const { RULES } = self2; - if (schema.$ref && (opts.ignoreKeywordsWithRef || !(0, util_1.schemaHasRulesButRef)(schema, RULES))) { - gen.block(() => keywordCode(it, "$ref", RULES.all.$ref.definition)); - return; - } - if (!opts.jtd) - checkStrictTypes(it, types); - gen.block(() => { - for (const group of RULES.rules) - groupKeywords(group); - groupKeywords(RULES.post); - }); - function groupKeywords(group) { - if (!(0, applicability_1.shouldUseGroup)(schema, group)) - return; - if (group.type) { - gen.if((0, dataType_2.checkDataType)(group.type, data, opts.strictNumbers)); - iterateKeywords(it, group); - if (types.length === 1 && types[0] === group.type && typeErrors) { - gen.else(); - (0, dataType_2.reportTypeError)(it); - } - gen.endIf(); - } else { - iterateKeywords(it, group); - } - if (!allErrors) - gen.if((0, codegen_1._)`${names_1.default.errors} === ${errsCount || 0}`); - } - } - function iterateKeywords(it, group) { - const { gen, schema, opts: { useDefaults } } = it; - if (useDefaults) - (0, defaults_1.assignDefaults)(it, group.type); - gen.block(() => { - for (const rule of group.rules) { - if ((0, applicability_1.shouldUseRule)(schema, rule)) { - keywordCode(it, rule.keyword, rule.definition, group.type); - } - } - }); - } - function checkStrictTypes(it, types) { - if (it.schemaEnv.meta || !it.opts.strictTypes) - return; - checkContextTypes(it, types); - if (!it.opts.allowUnionTypes) - checkMultipleTypes(it, types); - checkKeywordTypes(it, it.dataTypes); - } - function checkContextTypes(it, types) { - if (!types.length) - return; - if (!it.dataTypes.length) { - it.dataTypes = types; - return; - } - types.forEach((t) => { - if (!includesType(it.dataTypes, t)) { - strictTypesError(it, `type "${t}" not allowed by context "${it.dataTypes.join(",")}"`); - } - }); - narrowSchemaTypes(it, types); - } - function checkMultipleTypes(it, ts) { - if (ts.length > 1 && !(ts.length === 2 && ts.includes("null"))) { - strictTypesError(it, "use allowUnionTypes to allow union type keyword"); - } - } - function checkKeywordTypes(it, ts) { - const rules = it.self.RULES.all; - for (const keyword in rules) { - const rule = rules[keyword]; - if (typeof rule == "object" && (0, applicability_1.shouldUseRule)(it.schema, rule)) { - const { type } = rule.definition; - if (type.length && !type.some((t) => hasApplicableType(ts, t))) { - strictTypesError(it, `missing type "${type.join(",")}" for keyword "${keyword}"`); - } - } - } - } - function hasApplicableType(schTs, kwdT) { - return schTs.includes(kwdT) || kwdT === "number" && schTs.includes("integer"); - } - function includesType(ts, t) { - return ts.includes(t) || t === "integer" && ts.includes("number"); - } - function narrowSchemaTypes(it, withTypes) { - const ts = []; - for (const t of it.dataTypes) { - if (includesType(withTypes, t)) - ts.push(t); - else if (withTypes.includes("integer") && t === "number") - ts.push("integer"); - } - it.dataTypes = ts; - } - function strictTypesError(it, msg) { - const schemaPath = it.schemaEnv.baseId + it.errSchemaPath; - msg += ` at "${schemaPath}" (strictTypes)`; - (0, util_1.checkStrictMode)(it, msg, it.opts.strictTypes); - } - - class KeywordCxt { - constructor(it, def, keyword) { - (0, keyword_1.validateKeywordUsage)(it, def, keyword); - this.gen = it.gen; - this.allErrors = it.allErrors; - this.keyword = keyword; - this.data = it.data; - this.schema = it.schema[keyword]; - this.$data = def.$data && it.opts.$data && this.schema && this.schema.$data; - this.schemaValue = (0, util_1.schemaRefOrVal)(it, this.schema, keyword, this.$data); - this.schemaType = def.schemaType; - this.parentSchema = it.schema; - this.params = {}; - this.it = it; - this.def = def; - if (this.$data) { - this.schemaCode = it.gen.const("vSchema", getData(this.$data, it)); - } else { - this.schemaCode = this.schemaValue; - if (!(0, keyword_1.validSchemaType)(this.schema, def.schemaType, def.allowUndefined)) { - throw new Error(`${keyword} value must be ${JSON.stringify(def.schemaType)}`); - } - } - if ("code" in def ? def.trackErrors : def.errors !== false) { - this.errsCount = it.gen.const("_errs", names_1.default.errors); - } - } - result(condition, successAction, failAction) { - this.failResult((0, codegen_1.not)(condition), successAction, failAction); - } - failResult(condition, successAction, failAction) { - this.gen.if(condition); - if (failAction) - failAction(); - else - this.error(); - if (successAction) { - this.gen.else(); - successAction(); - if (this.allErrors) - this.gen.endIf(); - } else { - if (this.allErrors) - this.gen.endIf(); - else - this.gen.else(); - } - } - pass(condition, failAction) { - this.failResult((0, codegen_1.not)(condition), undefined, failAction); - } - fail(condition) { - if (condition === undefined) { - this.error(); - if (!this.allErrors) - this.gen.if(false); - return; - } - this.gen.if(condition); - this.error(); - if (this.allErrors) - this.gen.endIf(); - else - this.gen.else(); - } - fail$data(condition) { - if (!this.$data) - return this.fail(condition); - const { schemaCode } = this; - this.fail((0, codegen_1._)`${schemaCode} !== undefined && (${(0, codegen_1.or)(this.invalid$data(), condition)})`); - } - error(append, errorParams, errorPaths) { - if (errorParams) { - this.setParams(errorParams); - this._error(append, errorPaths); - this.setParams({}); - return; - } - this._error(append, errorPaths); - } - _error(append, errorPaths) { - (append ? errors_1.reportExtraError : errors_1.reportError)(this, this.def.error, errorPaths); - } - $dataError() { - (0, errors_1.reportError)(this, this.def.$dataError || errors_1.keyword$DataError); - } - reset() { - if (this.errsCount === undefined) - throw new Error('add "trackErrors" to keyword definition'); - (0, errors_1.resetErrorsCount)(this.gen, this.errsCount); - } - ok(cond) { - if (!this.allErrors) - this.gen.if(cond); - } - setParams(obj, assign) { - if (assign) - Object.assign(this.params, obj); - else - this.params = obj; - } - block$data(valid, codeBlock, $dataValid = codegen_1.nil) { - this.gen.block(() => { - this.check$data(valid, $dataValid); - codeBlock(); - }); - } - check$data(valid = codegen_1.nil, $dataValid = codegen_1.nil) { - if (!this.$data) - return; - const { gen, schemaCode, schemaType, def } = this; - gen.if((0, codegen_1.or)((0, codegen_1._)`${schemaCode} === undefined`, $dataValid)); - if (valid !== codegen_1.nil) - gen.assign(valid, true); - if (schemaType.length || def.validateSchema) { - gen.elseIf(this.invalid$data()); - this.$dataError(); - if (valid !== codegen_1.nil) - gen.assign(valid, false); - } - gen.else(); - } - invalid$data() { - const { gen, schemaCode, schemaType, def, it } = this; - return (0, codegen_1.or)(wrong$DataType(), invalid$DataSchema()); - function wrong$DataType() { - if (schemaType.length) { - if (!(schemaCode instanceof codegen_1.Name)) - throw new Error("ajv implementation error"); - const st = Array.isArray(schemaType) ? schemaType : [schemaType]; - return (0, codegen_1._)`${(0, dataType_2.checkDataTypes)(st, schemaCode, it.opts.strictNumbers, dataType_2.DataType.Wrong)}`; - } - return codegen_1.nil; - } - function invalid$DataSchema() { - if (def.validateSchema) { - const validateSchemaRef = gen.scopeValue("validate$data", { ref: def.validateSchema }); - return (0, codegen_1._)`!${validateSchemaRef}(${schemaCode})`; - } - return codegen_1.nil; - } - } - subschema(appl, valid) { - const subschema = (0, subschema_1.getSubschema)(this.it, appl); - (0, subschema_1.extendSubschemaData)(subschema, this.it, appl); - (0, subschema_1.extendSubschemaMode)(subschema, appl); - const nextContext = { ...this.it, ...subschema, items: undefined, props: undefined }; - subschemaCode(nextContext, valid); - return nextContext; - } - mergeEvaluated(schemaCxt, toName) { - const { it, gen } = this; - if (!it.opts.unevaluated) - return; - if (it.props !== true && schemaCxt.props !== undefined) { - it.props = util_1.mergeEvaluated.props(gen, schemaCxt.props, it.props, toName); - } - if (it.items !== true && schemaCxt.items !== undefined) { - it.items = util_1.mergeEvaluated.items(gen, schemaCxt.items, it.items, toName); - } - } - mergeValidEvaluated(schemaCxt, valid) { - const { it, gen } = this; - if (it.opts.unevaluated && (it.props !== true || it.items !== true)) { - gen.if(valid, () => this.mergeEvaluated(schemaCxt, codegen_1.Name)); - return true; - } - } - } - exports.KeywordCxt = KeywordCxt; - function keywordCode(it, keyword, def, ruleType) { - const cxt = new KeywordCxt(it, def, keyword); - if ("code" in def) { - def.code(cxt, ruleType); - } else if (cxt.$data && def.validate) { - (0, keyword_1.funcKeywordCode)(cxt, def); - } else if ("macro" in def) { - (0, keyword_1.macroKeywordCode)(cxt, def); - } else if (def.compile || def.validate) { - (0, keyword_1.funcKeywordCode)(cxt, def); - } - } - var JSON_POINTER = /^\/(?:[^~]|~0|~1)*$/; - var RELATIVE_JSON_POINTER = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/; - function getData($data, { dataLevel, dataNames, dataPathArr }) { - let jsonPointer; - let data; - if ($data === "") - return names_1.default.rootData; - if ($data[0] === "/") { - if (!JSON_POINTER.test($data)) - throw new Error(`Invalid JSON-pointer: ${$data}`); - jsonPointer = $data; - data = names_1.default.rootData; - } else { - const matches = RELATIVE_JSON_POINTER.exec($data); - if (!matches) - throw new Error(`Invalid JSON-pointer: ${$data}`); - const up = +matches[1]; - jsonPointer = matches[2]; - if (jsonPointer === "#") { - if (up >= dataLevel) - throw new Error(errorMsg("property/index", up)); - return dataPathArr[dataLevel - up]; - } - if (up > dataLevel) - throw new Error(errorMsg("data", up)); - data = dataNames[dataLevel - up]; - if (!jsonPointer) - return data; - } - let expr = data; - const segments = jsonPointer.split("/"); - for (const segment of segments) { - if (segment) { - data = (0, codegen_1._)`${data}${(0, codegen_1.getProperty)((0, util_1.unescapeJsonPointer)(segment))}`; - expr = (0, codegen_1._)`${expr} && ${data}`; - } - } - return expr; - function errorMsg(pointerType, up) { - return `Cannot access ${pointerType} ${up} levels up, current level is ${dataLevel}`; - } - } - exports.getData = getData; -}); -var require_validation_error2 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - - class ValidationError extends Error { - constructor(errors3) { - super("validation failed"); - this.errors = errors3; - this.ajv = this.validation = true; - } - } - exports.default = ValidationError; -}); -var require_ref_error2 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var resolve_1 = require_resolve2(); - - class MissingRefError extends Error { - constructor(resolver, baseId, ref, msg) { - super(msg || `can't resolve reference ${ref} from id ${baseId}`); - this.missingRef = (0, resolve_1.resolveUrl)(resolver, baseId, ref); - this.missingSchema = (0, resolve_1.normalizeId)((0, resolve_1.getFullPath)(resolver, this.missingRef)); - } - } - exports.default = MissingRefError; -}); -var require_compile2 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.resolveSchema = exports.getCompilingSchema = exports.resolveRef = exports.compileSchema = exports.SchemaEnv = undefined; - var codegen_1 = require_codegen2(); - var validation_error_1 = require_validation_error2(); - var names_1 = require_names2(); - var resolve_1 = require_resolve2(); - var util_1 = require_util2(); - var validate_1 = require_validate2(); - - class SchemaEnv { - constructor(env) { - var _a2; - this.refs = {}; - this.dynamicAnchors = {}; - let schema; - if (typeof env.schema == "object") - schema = env.schema; - this.schema = env.schema; - this.schemaId = env.schemaId; - this.root = env.root || this; - this.baseId = (_a2 = env.baseId) !== null && _a2 !== undefined ? _a2 : (0, resolve_1.normalizeId)(schema === null || schema === undefined ? undefined : schema[env.schemaId || "$id"]); - this.schemaPath = env.schemaPath; - this.localRefs = env.localRefs; - this.meta = env.meta; - this.$async = schema === null || schema === undefined ? undefined : schema.$async; - this.refs = {}; - } - } - exports.SchemaEnv = SchemaEnv; - function compileSchema(sch) { - const _sch = getCompilingSchema.call(this, sch); - if (_sch) - return _sch; - const rootId = (0, resolve_1.getFullPath)(this.opts.uriResolver, sch.root.baseId); - const { es5, lines } = this.opts.code; - const { ownProperties } = this.opts; - const gen = new codegen_1.CodeGen(this.scope, { es5, lines, ownProperties }); - let _ValidationError; - if (sch.$async) { - _ValidationError = gen.scopeValue("Error", { - ref: validation_error_1.default, - code: (0, codegen_1._)`require("ajv/dist/runtime/validation_error").default` - }); - } - const validateName = gen.scopeName("validate"); - sch.validateName = validateName; - const schemaCxt = { - gen, - allErrors: this.opts.allErrors, - data: names_1.default.data, - parentData: names_1.default.parentData, - parentDataProperty: names_1.default.parentDataProperty, - dataNames: [names_1.default.data], - dataPathArr: [codegen_1.nil], - dataLevel: 0, - dataTypes: [], - definedProperties: new Set, - topSchemaRef: gen.scopeValue("schema", this.opts.code.source === true ? { ref: sch.schema, code: (0, codegen_1.stringify)(sch.schema) } : { ref: sch.schema }), - validateName, - ValidationError: _ValidationError, - schema: sch.schema, - schemaEnv: sch, - rootId, - baseId: sch.baseId || rootId, - schemaPath: codegen_1.nil, - errSchemaPath: sch.schemaPath || (this.opts.jtd ? "" : "#"), - errorPath: (0, codegen_1._)`""`, - opts: this.opts, - self: this - }; - let sourceCode; - try { - this._compilations.add(sch); - (0, validate_1.validateFunctionCode)(schemaCxt); - gen.optimize(this.opts.code.optimize); - const validateCode = gen.toString(); - sourceCode = `${gen.scopeRefs(names_1.default.scope)}return ${validateCode}`; - if (this.opts.code.process) - sourceCode = this.opts.code.process(sourceCode, sch); - const makeValidate = new Function(`${names_1.default.self}`, `${names_1.default.scope}`, sourceCode); - const validate = makeValidate(this, this.scope.get()); - this.scope.value(validateName, { ref: validate }); - validate.errors = null; - validate.schema = sch.schema; - validate.schemaEnv = sch; - if (sch.$async) - validate.$async = true; - if (this.opts.code.source === true) { - validate.source = { validateName, validateCode, scopeValues: gen._values }; - } - if (this.opts.unevaluated) { - const { props, items } = schemaCxt; - validate.evaluated = { - props: props instanceof codegen_1.Name ? undefined : props, - items: items instanceof codegen_1.Name ? undefined : items, - dynamicProps: props instanceof codegen_1.Name, - dynamicItems: items instanceof codegen_1.Name - }; - if (validate.source) - validate.source.evaluated = (0, codegen_1.stringify)(validate.evaluated); - } - sch.validate = validate; - return sch; - } catch (e) { - delete sch.validate; - delete sch.validateName; - if (sourceCode) - this.logger.error("Error compiling schema, function code:", sourceCode); - throw e; - } finally { - this._compilations.delete(sch); - } - } - exports.compileSchema = compileSchema; - function resolveRef(root2, baseId, ref) { - var _a2; - ref = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, ref); - const schOrFunc = root2.refs[ref]; - if (schOrFunc) - return schOrFunc; - let _sch = resolve.call(this, root2, ref); - if (_sch === undefined) { - const schema = (_a2 = root2.localRefs) === null || _a2 === undefined ? undefined : _a2[ref]; - const { schemaId } = this.opts; - if (schema) - _sch = new SchemaEnv({ schema, schemaId, root: root2, baseId }); - } - if (_sch === undefined) - return; - return root2.refs[ref] = inlineOrCompile.call(this, _sch); - } - exports.resolveRef = resolveRef; - function inlineOrCompile(sch) { - if ((0, resolve_1.inlineRef)(sch.schema, this.opts.inlineRefs)) - return sch.schema; - return sch.validate ? sch : compileSchema.call(this, sch); - } - function getCompilingSchema(schEnv) { - for (const sch of this._compilations) { - if (sameSchemaEnv(sch, schEnv)) - return sch; - } - } - exports.getCompilingSchema = getCompilingSchema; - function sameSchemaEnv(s1, s2) { - return s1.schema === s2.schema && s1.root === s2.root && s1.baseId === s2.baseId; - } - function resolve(root2, ref) { - let sch; - while (typeof (sch = this.refs[ref]) == "string") - ref = sch; - return sch || this.schemas[ref] || resolveSchema.call(this, root2, ref); - } - function resolveSchema(root2, ref) { - const p = this.opts.uriResolver.parse(ref); - const refPath = (0, resolve_1._getFullPath)(this.opts.uriResolver, p); - let baseId = (0, resolve_1.getFullPath)(this.opts.uriResolver, root2.baseId, undefined); - if (Object.keys(root2.schema).length > 0 && refPath === baseId) { - return getJsonPointer.call(this, p, root2); - } - const id = (0, resolve_1.normalizeId)(refPath); - const schOrRef = this.refs[id] || this.schemas[id]; - if (typeof schOrRef == "string") { - const sch = resolveSchema.call(this, root2, schOrRef); - if (typeof (sch === null || sch === undefined ? undefined : sch.schema) !== "object") - return; - return getJsonPointer.call(this, p, sch); - } - if (typeof (schOrRef === null || schOrRef === undefined ? undefined : schOrRef.schema) !== "object") - return; - if (!schOrRef.validate) - compileSchema.call(this, schOrRef); - if (id === (0, resolve_1.normalizeId)(ref)) { - const { schema } = schOrRef; - const { schemaId } = this.opts; - const schId = schema[schemaId]; - if (schId) - baseId = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, schId); - return new SchemaEnv({ schema, schemaId, root: root2, baseId }); - } - return getJsonPointer.call(this, p, schOrRef); - } - exports.resolveSchema = resolveSchema; - var PREVENT_SCOPE_CHANGE = new Set([ - "properties", - "patternProperties", - "enum", - "dependencies", - "definitions" - ]); - function getJsonPointer(parsedRef, { baseId, schema, root: root2 }) { - var _a2; - if (((_a2 = parsedRef.fragment) === null || _a2 === undefined ? undefined : _a2[0]) !== "/") - return; - for (const part of parsedRef.fragment.slice(1).split("/")) { - if (typeof schema === "boolean") - return; - const partSchema = schema[(0, util_1.unescapeFragment)(part)]; - if (partSchema === undefined) - return; - schema = partSchema; - const schId = typeof schema === "object" && schema[this.opts.schemaId]; - if (!PREVENT_SCOPE_CHANGE.has(part) && schId) { - baseId = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, schId); - } - } - let env; - if (typeof schema != "boolean" && schema.$ref && !(0, util_1.schemaHasRulesButRef)(schema, this.RULES)) { - const $ref = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, schema.$ref); - env = resolveSchema.call(this, root2, $ref); - } - const { schemaId } = this.opts; - env = env || new SchemaEnv({ schema, schemaId, root: root2, baseId }); - if (env.schema !== env.root.schema) - return env; - return; - } -}); -var require_data2 = __commonJS2((exports, module) => { - module.exports = { - $id: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", - description: "Meta-schema for $data reference (JSON AnySchema extension proposal)", - type: "object", - required: ["$data"], - properties: { - $data: { - type: "string", - anyOf: [{ format: "relative-json-pointer" }, { format: "json-pointer" }] - } - }, - additionalProperties: false - }; -}); -var require_scopedChars = __commonJS2((exports, module) => { - var HEX = { - 0: 0, - 1: 1, - 2: 2, - 3: 3, - 4: 4, - 5: 5, - 6: 6, - 7: 7, - 8: 8, - 9: 9, - a: 10, - A: 10, - b: 11, - B: 11, - c: 12, - C: 12, - d: 13, - D: 13, - e: 14, - E: 14, - f: 15, - F: 15 - }; - module.exports = { - HEX - }; -}); -var require_utils4 = __commonJS2((exports, module) => { - var { HEX } = require_scopedChars(); - var IPV4_REG = /^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u; - function normalizeIPv4(host) { - if (findToken(host, ".") < 3) { - return { host, isIPV4: false }; - } - const matches = host.match(IPV4_REG) || []; - const [address] = matches; - if (address) { - return { host: stripLeadingZeros(address, "."), isIPV4: true }; - } else { - return { host, isIPV4: false }; - } - } - function stringArrayToHexStripped(input, keepZero = false) { - let acc = ""; - let strip = true; - for (const c of input) { - if (HEX[c] === undefined) - return; - if (c !== "0" && strip === true) - strip = false; - if (!strip) - acc += c; - } - if (keepZero && acc.length === 0) - acc = "0"; - return acc; - } - function getIPV6(input) { - let tokenCount = 0; - const output = { error: false, address: "", zone: "" }; - const address = []; - const buffer = []; - let isZone = false; - let endipv6Encountered = false; - let endIpv6 = false; - function consume() { - if (buffer.length) { - if (isZone === false) { - const hex = stringArrayToHexStripped(buffer); - if (hex !== undefined) { - address.push(hex); - } else { - output.error = true; - return false; - } - } - buffer.length = 0; - } - return true; - } - for (let i = 0;i < input.length; i++) { - const cursor = input[i]; - if (cursor === "[" || cursor === "]") { - continue; - } - if (cursor === ":") { - if (endipv6Encountered === true) { - endIpv6 = true; - } - if (!consume()) { - break; - } - tokenCount++; - address.push(":"); - if (tokenCount > 7) { - output.error = true; - break; - } - if (i - 1 >= 0 && input[i - 1] === ":") { - endipv6Encountered = true; - } - continue; - } else if (cursor === "%") { - if (!consume()) { - break; - } - isZone = true; - } else { - buffer.push(cursor); - continue; - } - } - if (buffer.length) { - if (isZone) { - output.zone = buffer.join(""); - } else if (endIpv6) { - address.push(buffer.join("")); - } else { - address.push(stringArrayToHexStripped(buffer)); - } - } - output.address = address.join(""); - return output; - } - function normalizeIPv6(host) { - if (findToken(host, ":") < 2) { - return { host, isIPV6: false }; - } - const ipv62 = getIPV6(host); - if (!ipv62.error) { - let newHost = ipv62.address; - let escapedHost = ipv62.address; - if (ipv62.zone) { - newHost += "%" + ipv62.zone; - escapedHost += "%25" + ipv62.zone; - } - return { host: newHost, escapedHost, isIPV6: true }; - } else { - return { host, isIPV6: false }; - } - } - function stripLeadingZeros(str, token) { - let out = ""; - let skip = true; - const l = str.length; - for (let i = 0;i < l; i++) { - const c = str[i]; - if (c === "0" && skip) { - if (i + 1 <= l && str[i + 1] === token || i + 1 === l) { - out += c; - skip = false; - } - } else { - if (c === token) { - skip = true; - } else { - skip = false; - } - out += c; - } - } - return out; - } - function findToken(str, token) { - let ind = 0; - for (let i = 0;i < str.length; i++) { - if (str[i] === token) - ind++; - } - return ind; - } - var RDS1 = /^\.\.?\//u; - var RDS2 = /^\/\.(?:\/|$)/u; - var RDS3 = /^\/\.\.(?:\/|$)/u; - var RDS5 = /^\/?(?:.|\n)*?(?=\/|$)/u; - function removeDotSegments(input) { - const output = []; - while (input.length) { - if (input.match(RDS1)) { - input = input.replace(RDS1, ""); - } else if (input.match(RDS2)) { - input = input.replace(RDS2, "/"); - } else if (input.match(RDS3)) { - input = input.replace(RDS3, "/"); - output.pop(); - } else if (input === "." || input === "..") { - input = ""; - } else { - const im = input.match(RDS5); - if (im) { - const s = im[0]; - input = input.slice(s.length); - output.push(s); - } else { - throw new Error("Unexpected dot segment condition"); - } - } - } - return output.join(""); - } - function normalizeComponentEncoding(components, esc2) { - const func = esc2 !== true ? escape : unescape; - if (components.scheme !== undefined) { - components.scheme = func(components.scheme); - } - if (components.userinfo !== undefined) { - components.userinfo = func(components.userinfo); - } - if (components.host !== undefined) { - components.host = func(components.host); - } - if (components.path !== undefined) { - components.path = func(components.path); - } - if (components.query !== undefined) { - components.query = func(components.query); - } - if (components.fragment !== undefined) { - components.fragment = func(components.fragment); - } - return components; - } - function recomposeAuthority(components) { - const uriTokens = []; - if (components.userinfo !== undefined) { - uriTokens.push(components.userinfo); - uriTokens.push("@"); - } - if (components.host !== undefined) { - let host = unescape(components.host); - const ipV4res = normalizeIPv4(host); - if (ipV4res.isIPV4) { - host = ipV4res.host; - } else { - const ipV6res = normalizeIPv6(ipV4res.host); - if (ipV6res.isIPV6 === true) { - host = `[${ipV6res.escapedHost}]`; - } else { - host = components.host; - } - } - uriTokens.push(host); - } - if (typeof components.port === "number" || typeof components.port === "string") { - uriTokens.push(":"); - uriTokens.push(String(components.port)); - } - return uriTokens.length ? uriTokens.join("") : undefined; - } - module.exports = { - recomposeAuthority, - normalizeComponentEncoding, - removeDotSegments, - normalizeIPv4, - normalizeIPv6, - stringArrayToHexStripped - }; -}); -var require_schemes2 = __commonJS2((exports, module) => { - var UUID_REG = /^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu; - var URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu; - function isSecure(wsComponents) { - return typeof wsComponents.secure === "boolean" ? wsComponents.secure : String(wsComponents.scheme).toLowerCase() === "wss"; - } - function httpParse(components) { - if (!components.host) { - components.error = components.error || "HTTP URIs must have a host."; - } - return components; - } - function httpSerialize(components) { - const secure = String(components.scheme).toLowerCase() === "https"; - if (components.port === (secure ? 443 : 80) || components.port === "") { - components.port = undefined; - } - if (!components.path) { - components.path = "/"; - } - return components; - } - function wsParse(wsComponents) { - wsComponents.secure = isSecure(wsComponents); - wsComponents.resourceName = (wsComponents.path || "/") + (wsComponents.query ? "?" + wsComponents.query : ""); - wsComponents.path = undefined; - wsComponents.query = undefined; - return wsComponents; - } - function wsSerialize(wsComponents) { - if (wsComponents.port === (isSecure(wsComponents) ? 443 : 80) || wsComponents.port === "") { - wsComponents.port = undefined; - } - if (typeof wsComponents.secure === "boolean") { - wsComponents.scheme = wsComponents.secure ? "wss" : "ws"; - wsComponents.secure = undefined; - } - if (wsComponents.resourceName) { - const [path13, query] = wsComponents.resourceName.split("?"); - wsComponents.path = path13 && path13 !== "/" ? path13 : undefined; - wsComponents.query = query; - wsComponents.resourceName = undefined; - } - wsComponents.fragment = undefined; - return wsComponents; - } - function urnParse(urnComponents, options) { - if (!urnComponents.path) { - urnComponents.error = "URN can not be parsed"; - return urnComponents; - } - const matches = urnComponents.path.match(URN_REG); - if (matches) { - const scheme = options.scheme || urnComponents.scheme || "urn"; - urnComponents.nid = matches[1].toLowerCase(); - urnComponents.nss = matches[2]; - const urnScheme = `${scheme}:${options.nid || urnComponents.nid}`; - const schemeHandler = SCHEMES[urnScheme]; - urnComponents.path = undefined; - if (schemeHandler) { - urnComponents = schemeHandler.parse(urnComponents, options); - } - } else { - urnComponents.error = urnComponents.error || "URN can not be parsed."; - } - return urnComponents; - } - function urnSerialize(urnComponents, options) { - const scheme = options.scheme || urnComponents.scheme || "urn"; - const nid = urnComponents.nid.toLowerCase(); - const urnScheme = `${scheme}:${options.nid || nid}`; - const schemeHandler = SCHEMES[urnScheme]; - if (schemeHandler) { - urnComponents = schemeHandler.serialize(urnComponents, options); - } - const uriComponents = urnComponents; - const nss = urnComponents.nss; - uriComponents.path = `${nid || options.nid}:${nss}`; - options.skipEscape = true; - return uriComponents; - } - function urnuuidParse(urnComponents, options) { - const uuidComponents = urnComponents; - uuidComponents.uuid = uuidComponents.nss; - uuidComponents.nss = undefined; - if (!options.tolerant && (!uuidComponents.uuid || !UUID_REG.test(uuidComponents.uuid))) { - uuidComponents.error = uuidComponents.error || "UUID is not valid."; - } - return uuidComponents; - } - function urnuuidSerialize(uuidComponents) { - const urnComponents = uuidComponents; - urnComponents.nss = (uuidComponents.uuid || "").toLowerCase(); - return urnComponents; - } - var http = { - scheme: "http", - domainHost: true, - parse: httpParse, - serialize: httpSerialize - }; - var https = { - scheme: "https", - domainHost: http.domainHost, - parse: httpParse, - serialize: httpSerialize - }; - var ws = { - scheme: "ws", - domainHost: true, - parse: wsParse, - serialize: wsSerialize - }; - var wss = { - scheme: "wss", - domainHost: ws.domainHost, - parse: ws.parse, - serialize: ws.serialize - }; - var urn = { - scheme: "urn", - parse: urnParse, - serialize: urnSerialize, - skipNormalize: true - }; - var urnuuid = { - scheme: "urn:uuid", - parse: urnuuidParse, - serialize: urnuuidSerialize, - skipNormalize: true - }; - var SCHEMES = { - http, - https, - ws, - wss, - urn, - "urn:uuid": urnuuid - }; - module.exports = SCHEMES; -}); -var require_fast_uri2 = __commonJS2((exports, module) => { - var { normalizeIPv6, normalizeIPv4, removeDotSegments, recomposeAuthority, normalizeComponentEncoding } = require_utils4(); - var SCHEMES = require_schemes2(); - function normalize(uri, options) { - if (typeof uri === "string") { - uri = serialize(parse6(uri, options), options); - } else if (typeof uri === "object") { - uri = parse6(serialize(uri, options), options); - } - return uri; - } - function resolve(baseURI, relativeURI, options) { - const schemelessOptions = Object.assign({ scheme: "null" }, options); - const resolved = resolveComponents(parse6(baseURI, schemelessOptions), parse6(relativeURI, schemelessOptions), schemelessOptions, true); - return serialize(resolved, { ...schemelessOptions, skipEscape: true }); - } - function resolveComponents(base, relative, options, skipNormalization) { - const target = {}; - if (!skipNormalization) { - base = parse6(serialize(base, options), options); - relative = parse6(serialize(relative, options), options); - } - options = options || {}; - if (!options.tolerant && relative.scheme) { - target.scheme = relative.scheme; - target.userinfo = relative.userinfo; - target.host = relative.host; - target.port = relative.port; - target.path = removeDotSegments(relative.path || ""); - target.query = relative.query; - } else { - if (relative.userinfo !== undefined || relative.host !== undefined || relative.port !== undefined) { - target.userinfo = relative.userinfo; - target.host = relative.host; - target.port = relative.port; - target.path = removeDotSegments(relative.path || ""); - target.query = relative.query; - } else { - if (!relative.path) { - target.path = base.path; - if (relative.query !== undefined) { - target.query = relative.query; - } else { - target.query = base.query; - } - } else { - if (relative.path.charAt(0) === "/") { - target.path = removeDotSegments(relative.path); - } else { - if ((base.userinfo !== undefined || base.host !== undefined || base.port !== undefined) && !base.path) { - target.path = "/" + relative.path; - } else if (!base.path) { - target.path = relative.path; - } else { - target.path = base.path.slice(0, base.path.lastIndexOf("/") + 1) + relative.path; - } - target.path = removeDotSegments(target.path); - } - target.query = relative.query; - } - target.userinfo = base.userinfo; - target.host = base.host; - target.port = base.port; - } - target.scheme = base.scheme; - } - target.fragment = relative.fragment; - return target; - } - function equal(uriA, uriB, options) { - if (typeof uriA === "string") { - uriA = unescape(uriA); - uriA = serialize(normalizeComponentEncoding(parse6(uriA, options), true), { ...options, skipEscape: true }); - } else if (typeof uriA === "object") { - uriA = serialize(normalizeComponentEncoding(uriA, true), { ...options, skipEscape: true }); - } - if (typeof uriB === "string") { - uriB = unescape(uriB); - uriB = serialize(normalizeComponentEncoding(parse6(uriB, options), true), { ...options, skipEscape: true }); - } else if (typeof uriB === "object") { - uriB = serialize(normalizeComponentEncoding(uriB, true), { ...options, skipEscape: true }); - } - return uriA.toLowerCase() === uriB.toLowerCase(); - } - function serialize(cmpts, opts) { - const components = { - host: cmpts.host, - scheme: cmpts.scheme, - userinfo: cmpts.userinfo, - port: cmpts.port, - path: cmpts.path, - query: cmpts.query, - nid: cmpts.nid, - nss: cmpts.nss, - uuid: cmpts.uuid, - fragment: cmpts.fragment, - reference: cmpts.reference, - resourceName: cmpts.resourceName, - secure: cmpts.secure, - error: "" - }; - const options = Object.assign({}, opts); - const uriTokens = []; - const schemeHandler = SCHEMES[(options.scheme || components.scheme || "").toLowerCase()]; - if (schemeHandler && schemeHandler.serialize) - schemeHandler.serialize(components, options); - if (components.path !== undefined) { - if (!options.skipEscape) { - components.path = escape(components.path); - if (components.scheme !== undefined) { - components.path = components.path.split("%3A").join(":"); - } - } else { - components.path = unescape(components.path); - } - } - if (options.reference !== "suffix" && components.scheme) { - uriTokens.push(components.scheme, ":"); - } - const authority = recomposeAuthority(components); - if (authority !== undefined) { - if (options.reference !== "suffix") { - uriTokens.push("//"); - } - uriTokens.push(authority); - if (components.path && components.path.charAt(0) !== "/") { - uriTokens.push("/"); - } - } - if (components.path !== undefined) { - let s = components.path; - if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) { - s = removeDotSegments(s); - } - if (authority === undefined) { - s = s.replace(/^\/\//u, "/%2F"); - } - uriTokens.push(s); - } - if (components.query !== undefined) { - uriTokens.push("?", components.query); - } - if (components.fragment !== undefined) { - uriTokens.push("#", components.fragment); - } - return uriTokens.join(""); - } - var hexLookUp = Array.from({ length: 127 }, (_v, k) => /[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(k))); - function nonSimpleDomain(value) { - let code = 0; - for (let i = 0, len = value.length;i < len; ++i) { - code = value.charCodeAt(i); - if (code > 126 || hexLookUp[code]) { - return true; - } - } - return false; - } - var URI_PARSE = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u; - function parse6(uri, opts) { - const options = Object.assign({}, opts); - const parsed = { - scheme: undefined, - userinfo: undefined, - host: "", - port: undefined, - path: "", - query: undefined, - fragment: undefined - }; - const gotEncoding = uri.indexOf("%") !== -1; - let isIP = false; - if (options.reference === "suffix") - uri = (options.scheme ? options.scheme + ":" : "") + "//" + uri; - const matches = uri.match(URI_PARSE); - if (matches) { - parsed.scheme = matches[1]; - parsed.userinfo = matches[3]; - parsed.host = matches[4]; - parsed.port = parseInt(matches[5], 10); - parsed.path = matches[6] || ""; - parsed.query = matches[7]; - parsed.fragment = matches[8]; - if (isNaN(parsed.port)) { - parsed.port = matches[5]; - } - if (parsed.host) { - const ipv4result = normalizeIPv4(parsed.host); - if (ipv4result.isIPV4 === false) { - const ipv6result = normalizeIPv6(ipv4result.host); - parsed.host = ipv6result.host.toLowerCase(); - isIP = ipv6result.isIPV6; - } else { - parsed.host = ipv4result.host; - isIP = true; - } - } - if (parsed.scheme === undefined && parsed.userinfo === undefined && parsed.host === undefined && parsed.port === undefined && parsed.query === undefined && !parsed.path) { - parsed.reference = "same-document"; - } else if (parsed.scheme === undefined) { - parsed.reference = "relative"; - } else if (parsed.fragment === undefined) { - parsed.reference = "absolute"; - } else { - parsed.reference = "uri"; - } - if (options.reference && options.reference !== "suffix" && options.reference !== parsed.reference) { - parsed.error = parsed.error || "URI is not a " + options.reference + " reference."; - } - const schemeHandler = SCHEMES[(options.scheme || parsed.scheme || "").toLowerCase()]; - if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) { - if (parsed.host && (options.domainHost || schemeHandler && schemeHandler.domainHost) && isIP === false && nonSimpleDomain(parsed.host)) { - try { - parsed.host = URL.domainToASCII(parsed.host.toLowerCase()); - } catch (e) { - parsed.error = parsed.error || "Host's domain name can not be converted to ASCII: " + e; - } - } - } - if (!schemeHandler || schemeHandler && !schemeHandler.skipNormalize) { - if (gotEncoding && parsed.scheme !== undefined) { - parsed.scheme = unescape(parsed.scheme); - } - if (gotEncoding && parsed.host !== undefined) { - parsed.host = unescape(parsed.host); - } - if (parsed.path) { - parsed.path = escape(unescape(parsed.path)); - } - if (parsed.fragment) { - parsed.fragment = encodeURI(decodeURIComponent(parsed.fragment)); - } - } - if (schemeHandler && schemeHandler.parse) { - schemeHandler.parse(parsed, options); - } - } else { - parsed.error = parsed.error || "URI can not be parsed."; - } - return parsed; - } - var fastUri = { - SCHEMES, - normalize, - resolve, - resolveComponents, - equal, - serialize, - parse: parse6 - }; - module.exports = fastUri; - module.exports.default = fastUri; - module.exports.fastUri = fastUri; -}); -var require_uri3 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var uri = require_fast_uri2(); - uri.code = 'require("ajv/dist/runtime/uri").default'; - exports.default = uri; -}); -var require_core3 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = undefined; - var validate_1 = require_validate2(); - Object.defineProperty(exports, "KeywordCxt", { enumerable: true, get: function() { - return validate_1.KeywordCxt; - } }); - var codegen_1 = require_codegen2(); - Object.defineProperty(exports, "_", { enumerable: true, get: function() { - return codegen_1._; - } }); - Object.defineProperty(exports, "str", { enumerable: true, get: function() { - return codegen_1.str; - } }); - Object.defineProperty(exports, "stringify", { enumerable: true, get: function() { - return codegen_1.stringify; - } }); - Object.defineProperty(exports, "nil", { enumerable: true, get: function() { - return codegen_1.nil; - } }); - Object.defineProperty(exports, "Name", { enumerable: true, get: function() { - return codegen_1.Name; - } }); - Object.defineProperty(exports, "CodeGen", { enumerable: true, get: function() { - return codegen_1.CodeGen; - } }); - var validation_error_1 = require_validation_error2(); - var ref_error_1 = require_ref_error2(); - var rules_1 = require_rules2(); - var compile_1 = require_compile2(); - var codegen_2 = require_codegen2(); - var resolve_1 = require_resolve2(); - var dataType_1 = require_dataType2(); - var util_1 = require_util2(); - var $dataRefSchema = require_data2(); - var uri_1 = require_uri3(); - var defaultRegExp = (str, flags) => new RegExp(str, flags); - defaultRegExp.code = "new RegExp"; - var META_IGNORE_OPTIONS = ["removeAdditional", "useDefaults", "coerceTypes"]; - var EXT_SCOPE_NAMES = new Set([ - "validate", - "serialize", - "parse", - "wrapper", - "root", - "schema", - "keyword", - "pattern", - "formats", - "validate$data", - "func", - "obj", - "Error" - ]); - var removedOptions = { - errorDataPath: "", - format: "`validateFormats: false` can be used instead.", - nullable: '"nullable" keyword is supported by default.', - jsonPointers: "Deprecated jsPropertySyntax can be used instead.", - extendRefs: "Deprecated ignoreKeywordsWithRef can be used instead.", - missingRefs: "Pass empty schema with $id that should be ignored to ajv.addSchema.", - processCode: "Use option `code: {process: (code, schemaEnv: object) => string}`", - sourceCode: "Use option `code: {source: true}`", - strictDefaults: "It is default now, see option `strict`.", - strictKeywords: "It is default now, see option `strict`.", - uniqueItems: '"uniqueItems" keyword is always validated.', - unknownFormats: "Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).", - cache: "Map is used as cache, schema object as key.", - serialize: "Map is used as cache, schema object as key.", - ajvErrors: "It is default now." - }; - var deprecatedOptions = { - ignoreKeywordsWithRef: "", - jsPropertySyntax: "", - unicode: '"minLength"/"maxLength" account for unicode characters by default.' - }; - var MAX_EXPRESSION = 200; - function requiredOptions(o) { - var _a2, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0; - const s = o.strict; - const _optz = (_a2 = o.code) === null || _a2 === undefined ? undefined : _a2.optimize; - const optimize = _optz === true || _optz === undefined ? 1 : _optz || 0; - const regExp = (_c = (_b = o.code) === null || _b === undefined ? undefined : _b.regExp) !== null && _c !== undefined ? _c : defaultRegExp; - const uriResolver = (_d = o.uriResolver) !== null && _d !== undefined ? _d : uri_1.default; - return { - strictSchema: (_f = (_e = o.strictSchema) !== null && _e !== undefined ? _e : s) !== null && _f !== undefined ? _f : true, - strictNumbers: (_h = (_g = o.strictNumbers) !== null && _g !== undefined ? _g : s) !== null && _h !== undefined ? _h : true, - strictTypes: (_k = (_j = o.strictTypes) !== null && _j !== undefined ? _j : s) !== null && _k !== undefined ? _k : "log", - strictTuples: (_m = (_l = o.strictTuples) !== null && _l !== undefined ? _l : s) !== null && _m !== undefined ? _m : "log", - strictRequired: (_p = (_o = o.strictRequired) !== null && _o !== undefined ? _o : s) !== null && _p !== undefined ? _p : false, - code: o.code ? { ...o.code, optimize, regExp } : { optimize, regExp }, - loopRequired: (_q = o.loopRequired) !== null && _q !== undefined ? _q : MAX_EXPRESSION, - loopEnum: (_r = o.loopEnum) !== null && _r !== undefined ? _r : MAX_EXPRESSION, - meta: (_s = o.meta) !== null && _s !== undefined ? _s : true, - messages: (_t = o.messages) !== null && _t !== undefined ? _t : true, - inlineRefs: (_u = o.inlineRefs) !== null && _u !== undefined ? _u : true, - schemaId: (_v = o.schemaId) !== null && _v !== undefined ? _v : "$id", - addUsedSchema: (_w = o.addUsedSchema) !== null && _w !== undefined ? _w : true, - validateSchema: (_x = o.validateSchema) !== null && _x !== undefined ? _x : true, - validateFormats: (_y = o.validateFormats) !== null && _y !== undefined ? _y : true, - unicodeRegExp: (_z = o.unicodeRegExp) !== null && _z !== undefined ? _z : true, - int32range: (_0 = o.int32range) !== null && _0 !== undefined ? _0 : true, - uriResolver - }; - } - - class Ajv2 { - constructor(opts = {}) { - this.schemas = {}; - this.refs = {}; - this.formats = {}; - this._compilations = new Set; - this._loading = {}; - this._cache = new Map; - opts = this.opts = { ...opts, ...requiredOptions(opts) }; - const { es5, lines } = this.opts.code; - this.scope = new codegen_2.ValueScope({ scope: {}, prefixes: EXT_SCOPE_NAMES, es5, lines }); - this.logger = getLogger(opts.logger); - const formatOpt = opts.validateFormats; - opts.validateFormats = false; - this.RULES = (0, rules_1.getRules)(); - checkOptions.call(this, removedOptions, opts, "NOT SUPPORTED"); - checkOptions.call(this, deprecatedOptions, opts, "DEPRECATED", "warn"); - this._metaOpts = getMetaSchemaOptions.call(this); - if (opts.formats) - addInitialFormats.call(this); - this._addVocabularies(); - this._addDefaultMetaSchema(); - if (opts.keywords) - addInitialKeywords.call(this, opts.keywords); - if (typeof opts.meta == "object") - this.addMetaSchema(opts.meta); - addInitialSchemas.call(this); - opts.validateFormats = formatOpt; - } - _addVocabularies() { - this.addKeyword("$async"); - } - _addDefaultMetaSchema() { - const { $data, meta: meta2, schemaId } = this.opts; - let _dataRefSchema = $dataRefSchema; - if (schemaId === "id") { - _dataRefSchema = { ...$dataRefSchema }; - _dataRefSchema.id = _dataRefSchema.$id; - delete _dataRefSchema.$id; - } - if (meta2 && $data) - this.addMetaSchema(_dataRefSchema, _dataRefSchema[schemaId], false); - } - defaultMeta() { - const { meta: meta2, schemaId } = this.opts; - return this.opts.defaultMeta = typeof meta2 == "object" ? meta2[schemaId] || meta2 : undefined; - } - validate(schemaKeyRef, data) { - let v; - if (typeof schemaKeyRef == "string") { - v = this.getSchema(schemaKeyRef); - if (!v) - throw new Error(`no schema with key or ref "${schemaKeyRef}"`); - } else { - v = this.compile(schemaKeyRef); - } - const valid = v(data); - if (!("$async" in v)) - this.errors = v.errors; - return valid; - } - compile(schema, _meta) { - const sch = this._addSchema(schema, _meta); - return sch.validate || this._compileSchemaEnv(sch); - } - compileAsync(schema, meta2) { - if (typeof this.opts.loadSchema != "function") { - throw new Error("options.loadSchema should be a function"); - } - const { loadSchema } = this.opts; - return runCompileAsync.call(this, schema, meta2); - async function runCompileAsync(_schema, _meta) { - await loadMetaSchema.call(this, _schema.$schema); - const sch = this._addSchema(_schema, _meta); - return sch.validate || _compileAsync.call(this, sch); - } - async function loadMetaSchema($ref) { - if ($ref && !this.getSchema($ref)) { - await runCompileAsync.call(this, { $ref }, true); - } - } - async function _compileAsync(sch) { - try { - return this._compileSchemaEnv(sch); - } catch (e) { - if (!(e instanceof ref_error_1.default)) - throw e; - checkLoaded.call(this, e); - await loadMissingSchema.call(this, e.missingSchema); - return _compileAsync.call(this, sch); - } - } - function checkLoaded({ missingSchema: ref, missingRef }) { - if (this.refs[ref]) { - throw new Error(`AnySchema ${ref} is loaded but ${missingRef} cannot be resolved`); - } - } - async function loadMissingSchema(ref) { - const _schema = await _loadSchema.call(this, ref); - if (!this.refs[ref]) - await loadMetaSchema.call(this, _schema.$schema); - if (!this.refs[ref]) - this.addSchema(_schema, ref, meta2); - } - async function _loadSchema(ref) { - const p = this._loading[ref]; - if (p) - return p; - try { - return await (this._loading[ref] = loadSchema(ref)); - } finally { - delete this._loading[ref]; - } - } - } - addSchema(schema, key, _meta, _validateSchema = this.opts.validateSchema) { - if (Array.isArray(schema)) { - for (const sch of schema) - this.addSchema(sch, undefined, _meta, _validateSchema); - return this; - } - let id; - if (typeof schema === "object") { - const { schemaId } = this.opts; - id = schema[schemaId]; - if (id !== undefined && typeof id != "string") { - throw new Error(`schema ${schemaId} must be string`); - } - } - key = (0, resolve_1.normalizeId)(key || id); - this._checkUnique(key); - this.schemas[key] = this._addSchema(schema, _meta, key, _validateSchema, true); - return this; - } - addMetaSchema(schema, key, _validateSchema = this.opts.validateSchema) { - this.addSchema(schema, key, true, _validateSchema); - return this; - } - validateSchema(schema, throwOrLogError) { - if (typeof schema == "boolean") - return true; - let $schema; - $schema = schema.$schema; - if ($schema !== undefined && typeof $schema != "string") { - throw new Error("$schema must be a string"); - } - $schema = $schema || this.opts.defaultMeta || this.defaultMeta(); - if (!$schema) { - this.logger.warn("meta-schema not available"); - this.errors = null; - return true; - } - const valid = this.validate($schema, schema); - if (!valid && throwOrLogError) { - const message = "schema is invalid: " + this.errorsText(); - if (this.opts.validateSchema === "log") - this.logger.error(message); - else - throw new Error(message); - } - return valid; - } - getSchema(keyRef) { - let sch; - while (typeof (sch = getSchEnv.call(this, keyRef)) == "string") - keyRef = sch; - if (sch === undefined) { - const { schemaId } = this.opts; - const root2 = new compile_1.SchemaEnv({ schema: {}, schemaId }); - sch = compile_1.resolveSchema.call(this, root2, keyRef); - if (!sch) - return; - this.refs[keyRef] = sch; - } - return sch.validate || this._compileSchemaEnv(sch); - } - removeSchema(schemaKeyRef) { - if (schemaKeyRef instanceof RegExp) { - this._removeAllSchemas(this.schemas, schemaKeyRef); - this._removeAllSchemas(this.refs, schemaKeyRef); - return this; - } - switch (typeof schemaKeyRef) { - case "undefined": - this._removeAllSchemas(this.schemas); - this._removeAllSchemas(this.refs); - this._cache.clear(); - return this; - case "string": { - const sch = getSchEnv.call(this, schemaKeyRef); - if (typeof sch == "object") - this._cache.delete(sch.schema); - delete this.schemas[schemaKeyRef]; - delete this.refs[schemaKeyRef]; - return this; - } - case "object": { - const cacheKey = schemaKeyRef; - this._cache.delete(cacheKey); - let id = schemaKeyRef[this.opts.schemaId]; - if (id) { - id = (0, resolve_1.normalizeId)(id); - delete this.schemas[id]; - delete this.refs[id]; - } - return this; - } - default: - throw new Error("ajv.removeSchema: invalid parameter"); - } - } - addVocabulary(definitions) { - for (const def of definitions) - this.addKeyword(def); - return this; - } - addKeyword(kwdOrDef, def) { - let keyword; - if (typeof kwdOrDef == "string") { - keyword = kwdOrDef; - if (typeof def == "object") { - this.logger.warn("these parameters are deprecated, see docs for addKeyword"); - def.keyword = keyword; - } - } else if (typeof kwdOrDef == "object" && def === undefined) { - def = kwdOrDef; - keyword = def.keyword; - if (Array.isArray(keyword) && !keyword.length) { - throw new Error("addKeywords: keyword must be string or non-empty array"); - } - } else { - throw new Error("invalid addKeywords parameters"); - } - checkKeyword.call(this, keyword, def); - if (!def) { - (0, util_1.eachItem)(keyword, (kwd) => addRule.call(this, kwd)); - return this; - } - keywordMetaschema.call(this, def); - const definition = { - ...def, - type: (0, dataType_1.getJSONTypes)(def.type), - schemaType: (0, dataType_1.getJSONTypes)(def.schemaType) - }; - (0, util_1.eachItem)(keyword, definition.type.length === 0 ? (k) => addRule.call(this, k, definition) : (k) => definition.type.forEach((t) => addRule.call(this, k, definition, t))); - return this; - } - getKeyword(keyword) { - const rule = this.RULES.all[keyword]; - return typeof rule == "object" ? rule.definition : !!rule; - } - removeKeyword(keyword) { - const { RULES } = this; - delete RULES.keywords[keyword]; - delete RULES.all[keyword]; - for (const group of RULES.rules) { - const i = group.rules.findIndex((rule) => rule.keyword === keyword); - if (i >= 0) - group.rules.splice(i, 1); - } - return this; - } - addFormat(name, format) { - if (typeof format == "string") - format = new RegExp(format); - this.formats[name] = format; - return this; - } - errorsText(errors3 = this.errors, { separator = ", ", dataVar = "data" } = {}) { - if (!errors3 || errors3.length === 0) - return "No errors"; - return errors3.map((e) => `${dataVar}${e.instancePath} ${e.message}`).reduce((text, msg) => text + separator + msg); - } - $dataMetaSchema(metaSchema, keywordsJsonPointers) { - const rules = this.RULES.all; - metaSchema = JSON.parse(JSON.stringify(metaSchema)); - for (const jsonPointer of keywordsJsonPointers) { - const segments = jsonPointer.split("/").slice(1); - let keywords = metaSchema; - for (const seg of segments) - keywords = keywords[seg]; - for (const key in rules) { - const rule = rules[key]; - if (typeof rule != "object") - continue; - const { $data } = rule.definition; - const schema = keywords[key]; - if ($data && schema) - keywords[key] = schemaOrData(schema); - } - } - return metaSchema; - } - _removeAllSchemas(schemas4, regex) { - for (const keyRef in schemas4) { - const sch = schemas4[keyRef]; - if (!regex || regex.test(keyRef)) { - if (typeof sch == "string") { - delete schemas4[keyRef]; - } else if (sch && !sch.meta) { - this._cache.delete(sch.schema); - delete schemas4[keyRef]; - } - } - } - } - _addSchema(schema, meta2, baseId, validateSchema = this.opts.validateSchema, addSchema = this.opts.addUsedSchema) { - let id; - const { schemaId } = this.opts; - if (typeof schema == "object") { - id = schema[schemaId]; - } else { - if (this.opts.jtd) - throw new Error("schema must be object"); - else if (typeof schema != "boolean") - throw new Error("schema must be object or boolean"); - } - let sch = this._cache.get(schema); - if (sch !== undefined) - return sch; - baseId = (0, resolve_1.normalizeId)(id || baseId); - const localRefs = resolve_1.getSchemaRefs.call(this, schema, baseId); - sch = new compile_1.SchemaEnv({ schema, schemaId, meta: meta2, baseId, localRefs }); - this._cache.set(sch.schema, sch); - if (addSchema && !baseId.startsWith("#")) { - if (baseId) - this._checkUnique(baseId); - this.refs[baseId] = sch; - } - if (validateSchema) - this.validateSchema(schema, true); - return sch; - } - _checkUnique(id) { - if (this.schemas[id] || this.refs[id]) { - throw new Error(`schema with key or id "${id}" already exists`); - } - } - _compileSchemaEnv(sch) { - if (sch.meta) - this._compileMetaSchema(sch); - else - compile_1.compileSchema.call(this, sch); - if (!sch.validate) - throw new Error("ajv implementation error"); - return sch.validate; - } - _compileMetaSchema(sch) { - const currentOpts = this.opts; - this.opts = this._metaOpts; - try { - compile_1.compileSchema.call(this, sch); - } finally { - this.opts = currentOpts; - } - } - } - Ajv2.ValidationError = validation_error_1.default; - Ajv2.MissingRefError = ref_error_1.default; - exports.default = Ajv2; - function checkOptions(checkOpts, options, msg, log = "error") { - for (const key in checkOpts) { - const opt = key; - if (opt in options) - this.logger[log](`${msg}: option ${key}. ${checkOpts[opt]}`); - } - } - function getSchEnv(keyRef) { - keyRef = (0, resolve_1.normalizeId)(keyRef); - return this.schemas[keyRef] || this.refs[keyRef]; - } - function addInitialSchemas() { - const optsSchemas = this.opts.schemas; - if (!optsSchemas) - return; - if (Array.isArray(optsSchemas)) - this.addSchema(optsSchemas); - else - for (const key in optsSchemas) - this.addSchema(optsSchemas[key], key); - } - function addInitialFormats() { - for (const name in this.opts.formats) { - const format = this.opts.formats[name]; - if (format) - this.addFormat(name, format); - } - } - function addInitialKeywords(defs) { - if (Array.isArray(defs)) { - this.addVocabulary(defs); - return; - } - this.logger.warn("keywords option as map is deprecated, pass array"); - for (const keyword in defs) { - const def = defs[keyword]; - if (!def.keyword) - def.keyword = keyword; - this.addKeyword(def); - } - } - function getMetaSchemaOptions() { - const metaOpts = { ...this.opts }; - for (const opt of META_IGNORE_OPTIONS) - delete metaOpts[opt]; - return metaOpts; - } - var noLogs = { log() {}, warn() {}, error() {} }; - function getLogger(logger2) { - if (logger2 === false) - return noLogs; - if (logger2 === undefined) - return console; - if (logger2.log && logger2.warn && logger2.error) - return logger2; - throw new Error("logger must implement log, warn and error methods"); - } - var KEYWORD_NAME = /^[a-z_$][a-z0-9_$:-]*$/i; - function checkKeyword(keyword, def) { - const { RULES } = this; - (0, util_1.eachItem)(keyword, (kwd) => { - if (RULES.keywords[kwd]) - throw new Error(`Keyword ${kwd} is already defined`); - if (!KEYWORD_NAME.test(kwd)) - throw new Error(`Keyword ${kwd} has invalid name`); - }); - if (!def) - return; - if (def.$data && !(("code" in def) || ("validate" in def))) { - throw new Error('$data keyword must have "code" or "validate" function'); - } - } - function addRule(keyword, definition, dataType) { - var _a2; - const post = definition === null || definition === undefined ? undefined : definition.post; - if (dataType && post) - throw new Error('keyword with "post" flag cannot have "type"'); - const { RULES } = this; - let ruleGroup = post ? RULES.post : RULES.rules.find(({ type: t }) => t === dataType); - if (!ruleGroup) { - ruleGroup = { type: dataType, rules: [] }; - RULES.rules.push(ruleGroup); - } - RULES.keywords[keyword] = true; - if (!definition) - return; - const rule = { - keyword, - definition: { - ...definition, - type: (0, dataType_1.getJSONTypes)(definition.type), - schemaType: (0, dataType_1.getJSONTypes)(definition.schemaType) - } - }; - if (definition.before) - addBeforeRule.call(this, ruleGroup, rule, definition.before); - else - ruleGroup.rules.push(rule); - RULES.all[keyword] = rule; - (_a2 = definition.implements) === null || _a2 === undefined || _a2.forEach((kwd) => this.addKeyword(kwd)); - } - function addBeforeRule(ruleGroup, rule, before) { - const i = ruleGroup.rules.findIndex((_rule) => _rule.keyword === before); - if (i >= 0) { - ruleGroup.rules.splice(i, 0, rule); - } else { - ruleGroup.rules.push(rule); - this.logger.warn(`rule ${before} is not defined`); - } - } - function keywordMetaschema(def) { - let { metaSchema } = def; - if (metaSchema === undefined) - return; - if (def.$data && this.opts.$data) - metaSchema = schemaOrData(metaSchema); - def.validateSchema = this.compile(metaSchema, true); - } - var $dataRef = { - $ref: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#" - }; - function schemaOrData(schema) { - return { anyOf: [schema, $dataRef] }; - } -}); -var require_id2 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var def = { - keyword: "id", - code() { - throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID'); - } - }; - exports.default = def; -}); -var require_ref3 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.callRef = exports.getValidate = undefined; - var ref_error_1 = require_ref_error2(); - var code_1 = require_code22(); - var codegen_1 = require_codegen2(); - var names_1 = require_names2(); - var compile_1 = require_compile2(); - var util_1 = require_util2(); - var def = { - keyword: "$ref", - schemaType: "string", - code(cxt) { - const { gen, schema: $ref, it } = cxt; - const { baseId, schemaEnv: env, validateName, opts, self: self2 } = it; - const { root: root2 } = env; - if (($ref === "#" || $ref === "#/") && baseId === root2.baseId) - return callRootRef(); - const schOrEnv = compile_1.resolveRef.call(self2, root2, baseId, $ref); - if (schOrEnv === undefined) - throw new ref_error_1.default(it.opts.uriResolver, baseId, $ref); - if (schOrEnv instanceof compile_1.SchemaEnv) - return callValidate(schOrEnv); - return inlineRefSchema(schOrEnv); - function callRootRef() { - if (env === root2) - return callRef(cxt, validateName, env, env.$async); - const rootName = gen.scopeValue("root", { ref: root2 }); - return callRef(cxt, (0, codegen_1._)`${rootName}.validate`, root2, root2.$async); - } - function callValidate(sch) { - const v = getValidate(cxt, sch); - callRef(cxt, v, sch, sch.$async); - } - function inlineRefSchema(sch) { - const schName = gen.scopeValue("schema", opts.code.source === true ? { ref: sch, code: (0, codegen_1.stringify)(sch) } : { ref: sch }); - const valid = gen.name("valid"); - const schCxt = cxt.subschema({ - schema: sch, - dataTypes: [], - schemaPath: codegen_1.nil, - topSchemaRef: schName, - errSchemaPath: $ref - }, valid); - cxt.mergeEvaluated(schCxt); - cxt.ok(valid); - } - } - }; - function getValidate(cxt, sch) { - const { gen } = cxt; - return sch.validate ? gen.scopeValue("validate", { ref: sch.validate }) : (0, codegen_1._)`${gen.scopeValue("wrapper", { ref: sch })}.validate`; - } - exports.getValidate = getValidate; - function callRef(cxt, v, sch, $async) { - const { gen, it } = cxt; - const { allErrors, schemaEnv: env, opts } = it; - const passCxt = opts.passContext ? names_1.default.this : codegen_1.nil; - if ($async) - callAsyncRef(); - else - callSyncRef(); - function callAsyncRef() { - if (!env.$async) - throw new Error("async schema referenced by sync schema"); - const valid = gen.let("valid"); - gen.try(() => { - gen.code((0, codegen_1._)`await ${(0, code_1.callValidateCode)(cxt, v, passCxt)}`); - addEvaluatedFrom(v); - if (!allErrors) - gen.assign(valid, true); - }, (e) => { - gen.if((0, codegen_1._)`!(${e} instanceof ${it.ValidationError})`, () => gen.throw(e)); - addErrorsFrom(e); - if (!allErrors) - gen.assign(valid, false); - }); - cxt.ok(valid); - } - function callSyncRef() { - cxt.result((0, code_1.callValidateCode)(cxt, v, passCxt), () => addEvaluatedFrom(v), () => addErrorsFrom(v)); - } - function addErrorsFrom(source) { - const errs = (0, codegen_1._)`${source}.errors`; - gen.assign(names_1.default.vErrors, (0, codegen_1._)`${names_1.default.vErrors} === null ? ${errs} : ${names_1.default.vErrors}.concat(${errs})`); - gen.assign(names_1.default.errors, (0, codegen_1._)`${names_1.default.vErrors}.length`); - } - function addEvaluatedFrom(source) { - var _a2; - if (!it.opts.unevaluated) - return; - const schEvaluated = (_a2 = sch === null || sch === undefined ? undefined : sch.validate) === null || _a2 === undefined ? undefined : _a2.evaluated; - if (it.props !== true) { - if (schEvaluated && !schEvaluated.dynamicProps) { - if (schEvaluated.props !== undefined) { - it.props = util_1.mergeEvaluated.props(gen, schEvaluated.props, it.props); - } - } else { - const props = gen.var("props", (0, codegen_1._)`${source}.evaluated.props`); - it.props = util_1.mergeEvaluated.props(gen, props, it.props, codegen_1.Name); - } - } - if (it.items !== true) { - if (schEvaluated && !schEvaluated.dynamicItems) { - if (schEvaluated.items !== undefined) { - it.items = util_1.mergeEvaluated.items(gen, schEvaluated.items, it.items); - } - } else { - const items = gen.var("items", (0, codegen_1._)`${source}.evaluated.items`); - it.items = util_1.mergeEvaluated.items(gen, items, it.items, codegen_1.Name); - } - } - } - } - exports.callRef = callRef; - exports.default = def; -}); -var require_core22 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var id_1 = require_id2(); - var ref_1 = require_ref3(); - var core2 = [ - "$schema", - "$id", - "$defs", - "$vocabulary", - { keyword: "$comment" }, - "definitions", - id_1.default, - ref_1.default - ]; - exports.default = core2; -}); -var require_limitNumber2 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var codegen_1 = require_codegen2(); - var ops = codegen_1.operators; - var KWDs = { - maximum: { okStr: "<=", ok: ops.LTE, fail: ops.GT }, - minimum: { okStr: ">=", ok: ops.GTE, fail: ops.LT }, - exclusiveMaximum: { okStr: "<", ok: ops.LT, fail: ops.GTE }, - exclusiveMinimum: { okStr: ">", ok: ops.GT, fail: ops.LTE } - }; - var error2 = { - message: ({ keyword, schemaCode }) => (0, codegen_1.str)`must be ${KWDs[keyword].okStr} ${schemaCode}`, - params: ({ keyword, schemaCode }) => (0, codegen_1._)`{comparison: ${KWDs[keyword].okStr}, limit: ${schemaCode}}` - }; - var def = { - keyword: Object.keys(KWDs), - type: "number", - schemaType: "number", - $data: true, - error: error2, - code(cxt) { - const { keyword, data, schemaCode } = cxt; - cxt.fail$data((0, codegen_1._)`${data} ${KWDs[keyword].fail} ${schemaCode} || isNaN(${data})`); - } - }; - exports.default = def; -}); -var require_multipleOf2 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var codegen_1 = require_codegen2(); - var error2 = { - message: ({ schemaCode }) => (0, codegen_1.str)`must be multiple of ${schemaCode}`, - params: ({ schemaCode }) => (0, codegen_1._)`{multipleOf: ${schemaCode}}` - }; - var def = { - keyword: "multipleOf", - type: "number", - schemaType: "number", - $data: true, - error: error2, - code(cxt) { - const { gen, data, schemaCode, it } = cxt; - const prec = it.opts.multipleOfPrecision; - const res = gen.let("res"); - const invalid = prec ? (0, codegen_1._)`Math.abs(Math.round(${res}) - ${res}) > 1e-${prec}` : (0, codegen_1._)`${res} !== parseInt(${res})`; - cxt.fail$data((0, codegen_1._)`(${schemaCode} === 0 || (${res} = ${data}/${schemaCode}, ${invalid}))`); - } - }; - exports.default = def; -}); -var require_ucs2length2 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - function ucs2length(str) { - const len = str.length; - let length = 0; - let pos = 0; - let value; - while (pos < len) { - length++; - value = str.charCodeAt(pos++); - if (value >= 55296 && value <= 56319 && pos < len) { - value = str.charCodeAt(pos); - if ((value & 64512) === 56320) - pos++; - } - } - return length; - } - exports.default = ucs2length; - ucs2length.code = 'require("ajv/dist/runtime/ucs2length").default'; -}); -var require_limitLength2 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var codegen_1 = require_codegen2(); - var util_1 = require_util2(); - var ucs2length_1 = require_ucs2length2(); - var error2 = { - message({ keyword, schemaCode }) { - const comp = keyword === "maxLength" ? "more" : "fewer"; - return (0, codegen_1.str)`must NOT have ${comp} than ${schemaCode} characters`; - }, - params: ({ schemaCode }) => (0, codegen_1._)`{limit: ${schemaCode}}` - }; - var def = { - keyword: ["maxLength", "minLength"], - type: "string", - schemaType: "number", - $data: true, - error: error2, - code(cxt) { - const { keyword, data, schemaCode, it } = cxt; - const op = keyword === "maxLength" ? codegen_1.operators.GT : codegen_1.operators.LT; - const len = it.opts.unicode === false ? (0, codegen_1._)`${data}.length` : (0, codegen_1._)`${(0, util_1.useFunc)(cxt.gen, ucs2length_1.default)}(${data})`; - cxt.fail$data((0, codegen_1._)`${len} ${op} ${schemaCode}`); - } - }; - exports.default = def; -}); -var require_pattern2 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var code_1 = require_code22(); - var codegen_1 = require_codegen2(); - var error2 = { - message: ({ schemaCode }) => (0, codegen_1.str)`must match pattern "${schemaCode}"`, - params: ({ schemaCode }) => (0, codegen_1._)`{pattern: ${schemaCode}}` - }; - var def = { - keyword: "pattern", - type: "string", - schemaType: "string", - $data: true, - error: error2, - code(cxt) { - const { data, $data, schema, schemaCode, it } = cxt; - const u = it.opts.unicodeRegExp ? "u" : ""; - const regExp = $data ? (0, codegen_1._)`(new RegExp(${schemaCode}, ${u}))` : (0, code_1.usePattern)(cxt, schema); - cxt.fail$data((0, codegen_1._)`!${regExp}.test(${data})`); - } - }; - exports.default = def; -}); -var require_limitProperties2 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var codegen_1 = require_codegen2(); - var error2 = { - message({ keyword, schemaCode }) { - const comp = keyword === "maxProperties" ? "more" : "fewer"; - return (0, codegen_1.str)`must NOT have ${comp} than ${schemaCode} properties`; - }, - params: ({ schemaCode }) => (0, codegen_1._)`{limit: ${schemaCode}}` - }; - var def = { - keyword: ["maxProperties", "minProperties"], - type: "object", - schemaType: "number", - $data: true, - error: error2, - code(cxt) { - const { keyword, data, schemaCode } = cxt; - const op = keyword === "maxProperties" ? codegen_1.operators.GT : codegen_1.operators.LT; - cxt.fail$data((0, codegen_1._)`Object.keys(${data}).length ${op} ${schemaCode}`); - } - }; - exports.default = def; -}); -var require_required2 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var code_1 = require_code22(); - var codegen_1 = require_codegen2(); - var util_1 = require_util2(); - var error2 = { - message: ({ params: { missingProperty } }) => (0, codegen_1.str)`must have required property '${missingProperty}'`, - params: ({ params: { missingProperty } }) => (0, codegen_1._)`{missingProperty: ${missingProperty}}` - }; - var def = { - keyword: "required", - type: "object", - schemaType: "array", - $data: true, - error: error2, - code(cxt) { - const { gen, schema, schemaCode, data, $data, it } = cxt; - const { opts } = it; - if (!$data && schema.length === 0) - return; - const useLoop = schema.length >= opts.loopRequired; - if (it.allErrors) - allErrorsMode(); - else - exitOnErrorMode(); - if (opts.strictRequired) { - const props = cxt.parentSchema.properties; - const { definedProperties } = cxt.it; - for (const requiredKey of schema) { - if ((props === null || props === undefined ? undefined : props[requiredKey]) === undefined && !definedProperties.has(requiredKey)) { - const schemaPath = it.schemaEnv.baseId + it.errSchemaPath; - const msg = `required property "${requiredKey}" is not defined at "${schemaPath}" (strictRequired)`; - (0, util_1.checkStrictMode)(it, msg, it.opts.strictRequired); - } - } - } - function allErrorsMode() { - if (useLoop || $data) { - cxt.block$data(codegen_1.nil, loopAllRequired); - } else { - for (const prop of schema) { - (0, code_1.checkReportMissingProp)(cxt, prop); - } - } - } - function exitOnErrorMode() { - const missing = gen.let("missing"); - if (useLoop || $data) { - const valid = gen.let("valid", true); - cxt.block$data(valid, () => loopUntilMissing(missing, valid)); - cxt.ok(valid); - } else { - gen.if((0, code_1.checkMissingProp)(cxt, schema, missing)); - (0, code_1.reportMissingProp)(cxt, missing); - gen.else(); - } - } - function loopAllRequired() { - gen.forOf("prop", schemaCode, (prop) => { - cxt.setParams({ missingProperty: prop }); - gen.if((0, code_1.noPropertyInData)(gen, data, prop, opts.ownProperties), () => cxt.error()); - }); - } - function loopUntilMissing(missing, valid) { - cxt.setParams({ missingProperty: missing }); - gen.forOf(missing, schemaCode, () => { - gen.assign(valid, (0, code_1.propertyInData)(gen, data, missing, opts.ownProperties)); - gen.if((0, codegen_1.not)(valid), () => { - cxt.error(); - gen.break(); - }); - }, codegen_1.nil); - } - } - }; - exports.default = def; -}); -var require_limitItems2 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var codegen_1 = require_codegen2(); - var error2 = { - message({ keyword, schemaCode }) { - const comp = keyword === "maxItems" ? "more" : "fewer"; - return (0, codegen_1.str)`must NOT have ${comp} than ${schemaCode} items`; - }, - params: ({ schemaCode }) => (0, codegen_1._)`{limit: ${schemaCode}}` - }; - var def = { - keyword: ["maxItems", "minItems"], - type: "array", - schemaType: "number", - $data: true, - error: error2, - code(cxt) { - const { keyword, data, schemaCode } = cxt; - const op = keyword === "maxItems" ? codegen_1.operators.GT : codegen_1.operators.LT; - cxt.fail$data((0, codegen_1._)`${data}.length ${op} ${schemaCode}`); - } - }; - exports.default = def; -}); -var require_equal2 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var equal = require_fast_deep_equal2(); - equal.code = 'require("ajv/dist/runtime/equal").default'; - exports.default = equal; -}); -var require_uniqueItems2 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var dataType_1 = require_dataType2(); - var codegen_1 = require_codegen2(); - var util_1 = require_util2(); - var equal_1 = require_equal2(); - var error2 = { - message: ({ params: { i, j } }) => (0, codegen_1.str)`must NOT have duplicate items (items ## ${j} and ${i} are identical)`, - params: ({ params: { i, j } }) => (0, codegen_1._)`{i: ${i}, j: ${j}}` - }; - var def = { - keyword: "uniqueItems", - type: "array", - schemaType: "boolean", - $data: true, - error: error2, - code(cxt) { - const { gen, data, $data, schema, parentSchema, schemaCode, it } = cxt; - if (!$data && !schema) - return; - const valid = gen.let("valid"); - const itemTypes = parentSchema.items ? (0, dataType_1.getSchemaTypes)(parentSchema.items) : []; - cxt.block$data(valid, validateUniqueItems, (0, codegen_1._)`${schemaCode} === false`); - cxt.ok(valid); - function validateUniqueItems() { - const i = gen.let("i", (0, codegen_1._)`${data}.length`); - const j = gen.let("j"); - cxt.setParams({ i, j }); - gen.assign(valid, true); - gen.if((0, codegen_1._)`${i} > 1`, () => (canOptimize() ? loopN : loopN2)(i, j)); - } - function canOptimize() { - return itemTypes.length > 0 && !itemTypes.some((t) => t === "object" || t === "array"); - } - function loopN(i, j) { - const item = gen.name("item"); - const wrongType = (0, dataType_1.checkDataTypes)(itemTypes, item, it.opts.strictNumbers, dataType_1.DataType.Wrong); - const indices = gen.const("indices", (0, codegen_1._)`{}`); - gen.for((0, codegen_1._)`;${i}--;`, () => { - gen.let(item, (0, codegen_1._)`${data}[${i}]`); - gen.if(wrongType, (0, codegen_1._)`continue`); - if (itemTypes.length > 1) - gen.if((0, codegen_1._)`typeof ${item} == "string"`, (0, codegen_1._)`${item} += "_"`); - gen.if((0, codegen_1._)`typeof ${indices}[${item}] == "number"`, () => { - gen.assign(j, (0, codegen_1._)`${indices}[${item}]`); - cxt.error(); - gen.assign(valid, false).break(); - }).code((0, codegen_1._)`${indices}[${item}] = ${i}`); - }); - } - function loopN2(i, j) { - const eql = (0, util_1.useFunc)(gen, equal_1.default); - const outer = gen.name("outer"); - gen.label(outer).for((0, codegen_1._)`;${i}--;`, () => gen.for((0, codegen_1._)`${j} = ${i}; ${j}--;`, () => gen.if((0, codegen_1._)`${eql}(${data}[${i}], ${data}[${j}])`, () => { - cxt.error(); - gen.assign(valid, false).break(outer); - }))); - } - } - }; - exports.default = def; -}); -var require_const2 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var codegen_1 = require_codegen2(); - var util_1 = require_util2(); - var equal_1 = require_equal2(); - var error2 = { - message: "must be equal to constant", - params: ({ schemaCode }) => (0, codegen_1._)`{allowedValue: ${schemaCode}}` - }; - var def = { - keyword: "const", - $data: true, - error: error2, - code(cxt) { - const { gen, data, $data, schemaCode, schema } = cxt; - if ($data || schema && typeof schema == "object") { - cxt.fail$data((0, codegen_1._)`!${(0, util_1.useFunc)(gen, equal_1.default)}(${data}, ${schemaCode})`); - } else { - cxt.fail((0, codegen_1._)`${schema} !== ${data}`); - } - } - }; - exports.default = def; -}); -var require_enum2 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var codegen_1 = require_codegen2(); - var util_1 = require_util2(); - var equal_1 = require_equal2(); - var error2 = { - message: "must be equal to one of the allowed values", - params: ({ schemaCode }) => (0, codegen_1._)`{allowedValues: ${schemaCode}}` - }; - var def = { - keyword: "enum", - schemaType: "array", - $data: true, - error: error2, - code(cxt) { - const { gen, data, $data, schema, schemaCode, it } = cxt; - if (!$data && schema.length === 0) - throw new Error("enum must have non-empty array"); - const useLoop = schema.length >= it.opts.loopEnum; - let eql; - const getEql = () => eql !== null && eql !== undefined ? eql : eql = (0, util_1.useFunc)(gen, equal_1.default); - let valid; - if (useLoop || $data) { - valid = gen.let("valid"); - cxt.block$data(valid, loopEnum); - } else { - if (!Array.isArray(schema)) - throw new Error("ajv implementation error"); - const vSchema = gen.const("vSchema", schemaCode); - valid = (0, codegen_1.or)(...schema.map((_x, i) => equalCode(vSchema, i))); - } - cxt.pass(valid); - function loopEnum() { - gen.assign(valid, false); - gen.forOf("v", schemaCode, (v) => gen.if((0, codegen_1._)`${getEql()}(${data}, ${v})`, () => gen.assign(valid, true).break())); - } - function equalCode(vSchema, i) { - const sch = schema[i]; - return typeof sch === "object" && sch !== null ? (0, codegen_1._)`${getEql()}(${data}, ${vSchema}[${i}])` : (0, codegen_1._)`${data} === ${sch}`; - } - } - }; - exports.default = def; -}); -var require_validation2 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var limitNumber_1 = require_limitNumber2(); - var multipleOf_1 = require_multipleOf2(); - var limitLength_1 = require_limitLength2(); - var pattern_1 = require_pattern2(); - var limitProperties_1 = require_limitProperties2(); - var required_1 = require_required2(); - var limitItems_1 = require_limitItems2(); - var uniqueItems_1 = require_uniqueItems2(); - var const_1 = require_const2(); - var enum_1 = require_enum2(); - var validation = [ - limitNumber_1.default, - multipleOf_1.default, - limitLength_1.default, - pattern_1.default, - limitProperties_1.default, - required_1.default, - limitItems_1.default, - uniqueItems_1.default, - { keyword: "type", schemaType: ["string", "array"] }, - { keyword: "nullable", schemaType: "boolean" }, - const_1.default, - enum_1.default - ]; - exports.default = validation; -}); -var require_additionalItems2 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.validateAdditionalItems = undefined; - var codegen_1 = require_codegen2(); - var util_1 = require_util2(); - var error2 = { - message: ({ params: { len } }) => (0, codegen_1.str)`must NOT have more than ${len} items`, - params: ({ params: { len } }) => (0, codegen_1._)`{limit: ${len}}` - }; - var def = { - keyword: "additionalItems", - type: "array", - schemaType: ["boolean", "object"], - before: "uniqueItems", - error: error2, - code(cxt) { - const { parentSchema, it } = cxt; - const { items } = parentSchema; - if (!Array.isArray(items)) { - (0, util_1.checkStrictMode)(it, '"additionalItems" is ignored when "items" is not an array of schemas'); - return; - } - validateAdditionalItems(cxt, items); - } - }; - function validateAdditionalItems(cxt, items) { - const { gen, schema, data, keyword, it } = cxt; - it.items = true; - const len = gen.const("len", (0, codegen_1._)`${data}.length`); - if (schema === false) { - cxt.setParams({ len: items.length }); - cxt.pass((0, codegen_1._)`${len} <= ${items.length}`); - } else if (typeof schema == "object" && !(0, util_1.alwaysValidSchema)(it, schema)) { - const valid = gen.var("valid", (0, codegen_1._)`${len} <= ${items.length}`); - gen.if((0, codegen_1.not)(valid), () => validateItems(valid)); - cxt.ok(valid); - } - function validateItems(valid) { - gen.forRange("i", items.length, len, (i) => { - cxt.subschema({ keyword, dataProp: i, dataPropType: util_1.Type.Num }, valid); - if (!it.allErrors) - gen.if((0, codegen_1.not)(valid), () => gen.break()); - }); - } - } - exports.validateAdditionalItems = validateAdditionalItems; - exports.default = def; -}); -var require_items2 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.validateTuple = undefined; - var codegen_1 = require_codegen2(); - var util_1 = require_util2(); - var code_1 = require_code22(); - var def = { - keyword: "items", - type: "array", - schemaType: ["object", "array", "boolean"], - before: "uniqueItems", - code(cxt) { - const { schema, it } = cxt; - if (Array.isArray(schema)) - return validateTuple(cxt, "additionalItems", schema); - it.items = true; - if ((0, util_1.alwaysValidSchema)(it, schema)) - return; - cxt.ok((0, code_1.validateArray)(cxt)); - } - }; - function validateTuple(cxt, extraItems, schArr = cxt.schema) { - const { gen, parentSchema, data, keyword, it } = cxt; - checkStrictTuple(parentSchema); - if (it.opts.unevaluated && schArr.length && it.items !== true) { - it.items = util_1.mergeEvaluated.items(gen, schArr.length, it.items); - } - const valid = gen.name("valid"); - const len = gen.const("len", (0, codegen_1._)`${data}.length`); - schArr.forEach((sch, i) => { - if ((0, util_1.alwaysValidSchema)(it, sch)) - return; - gen.if((0, codegen_1._)`${len} > ${i}`, () => cxt.subschema({ - keyword, - schemaProp: i, - dataProp: i - }, valid)); - cxt.ok(valid); - }); - function checkStrictTuple(sch) { - const { opts, errSchemaPath } = it; - const l = schArr.length; - const fullTuple = l === sch.minItems && (l === sch.maxItems || sch[extraItems] === false); - if (opts.strictTuples && !fullTuple) { - const msg = `"${keyword}" is ${l}-tuple, but minItems or maxItems/${extraItems} are not specified or different at path "${errSchemaPath}"`; - (0, util_1.checkStrictMode)(it, msg, opts.strictTuples); - } - } - } - exports.validateTuple = validateTuple; - exports.default = def; -}); -var require_prefixItems2 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var items_1 = require_items2(); - var def = { - keyword: "prefixItems", - type: "array", - schemaType: ["array"], - before: "uniqueItems", - code: (cxt) => (0, items_1.validateTuple)(cxt, "items") - }; - exports.default = def; -}); -var require_items20202 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var codegen_1 = require_codegen2(); - var util_1 = require_util2(); - var code_1 = require_code22(); - var additionalItems_1 = require_additionalItems2(); - var error2 = { - message: ({ params: { len } }) => (0, codegen_1.str)`must NOT have more than ${len} items`, - params: ({ params: { len } }) => (0, codegen_1._)`{limit: ${len}}` - }; - var def = { - keyword: "items", - type: "array", - schemaType: ["object", "boolean"], - before: "uniqueItems", - error: error2, - code(cxt) { - const { schema, parentSchema, it } = cxt; - const { prefixItems } = parentSchema; - it.items = true; - if ((0, util_1.alwaysValidSchema)(it, schema)) - return; - if (prefixItems) - (0, additionalItems_1.validateAdditionalItems)(cxt, prefixItems); - else - cxt.ok((0, code_1.validateArray)(cxt)); - } - }; - exports.default = def; -}); -var require_contains2 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var codegen_1 = require_codegen2(); - var util_1 = require_util2(); - var error2 = { - message: ({ params: { min, max } }) => max === undefined ? (0, codegen_1.str)`must contain at least ${min} valid item(s)` : (0, codegen_1.str)`must contain at least ${min} and no more than ${max} valid item(s)`, - params: ({ params: { min, max } }) => max === undefined ? (0, codegen_1._)`{minContains: ${min}}` : (0, codegen_1._)`{minContains: ${min}, maxContains: ${max}}` - }; - var def = { - keyword: "contains", - type: "array", - schemaType: ["object", "boolean"], - before: "uniqueItems", - trackErrors: true, - error: error2, - code(cxt) { - const { gen, schema, parentSchema, data, it } = cxt; - let min; - let max; - const { minContains, maxContains } = parentSchema; - if (it.opts.next) { - min = minContains === undefined ? 1 : minContains; - max = maxContains; - } else { - min = 1; - } - const len = gen.const("len", (0, codegen_1._)`${data}.length`); - cxt.setParams({ min, max }); - if (max === undefined && min === 0) { - (0, util_1.checkStrictMode)(it, `"minContains" == 0 without "maxContains": "contains" keyword ignored`); - return; - } - if (max !== undefined && min > max) { - (0, util_1.checkStrictMode)(it, `"minContains" > "maxContains" is always invalid`); - cxt.fail(); - return; - } - if ((0, util_1.alwaysValidSchema)(it, schema)) { - let cond = (0, codegen_1._)`${len} >= ${min}`; - if (max !== undefined) - cond = (0, codegen_1._)`${cond} && ${len} <= ${max}`; - cxt.pass(cond); - return; - } - it.items = true; - const valid = gen.name("valid"); - if (max === undefined && min === 1) { - validateItems(valid, () => gen.if(valid, () => gen.break())); - } else if (min === 0) { - gen.let(valid, true); - if (max !== undefined) - gen.if((0, codegen_1._)`${data}.length > 0`, validateItemsWithCount); - } else { - gen.let(valid, false); - validateItemsWithCount(); - } - cxt.result(valid, () => cxt.reset()); - function validateItemsWithCount() { - const schValid = gen.name("_valid"); - const count = gen.let("count", 0); - validateItems(schValid, () => gen.if(schValid, () => checkLimits(count))); - } - function validateItems(_valid, block) { - gen.forRange("i", 0, len, (i) => { - cxt.subschema({ - keyword: "contains", - dataProp: i, - dataPropType: util_1.Type.Num, - compositeRule: true - }, _valid); - block(); - }); - } - function checkLimits(count) { - gen.code((0, codegen_1._)`${count}++`); - if (max === undefined) { - gen.if((0, codegen_1._)`${count} >= ${min}`, () => gen.assign(valid, true).break()); - } else { - gen.if((0, codegen_1._)`${count} > ${max}`, () => gen.assign(valid, false).break()); - if (min === 1) - gen.assign(valid, true); - else - gen.if((0, codegen_1._)`${count} >= ${min}`, () => gen.assign(valid, true)); - } - } - } - }; - exports.default = def; -}); -var require_dependencies2 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.validateSchemaDeps = exports.validatePropertyDeps = exports.error = undefined; - var codegen_1 = require_codegen2(); - var util_1 = require_util2(); - var code_1 = require_code22(); - exports.error = { - message: ({ params: { property, depsCount, deps } }) => { - const property_ies = depsCount === 1 ? "property" : "properties"; - return (0, codegen_1.str)`must have ${property_ies} ${deps} when property ${property} is present`; - }, - params: ({ params: { property, depsCount, deps, missingProperty } }) => (0, codegen_1._)`{property: ${property}, - missingProperty: ${missingProperty}, - depsCount: ${depsCount}, - deps: ${deps}}` - }; - var def = { - keyword: "dependencies", - type: "object", - schemaType: "object", - error: exports.error, - code(cxt) { - const [propDeps, schDeps] = splitDependencies(cxt); - validatePropertyDeps(cxt, propDeps); - validateSchemaDeps(cxt, schDeps); - } - }; - function splitDependencies({ schema }) { - const propertyDeps = {}; - const schemaDeps = {}; - for (const key in schema) { - if (key === "__proto__") - continue; - const deps = Array.isArray(schema[key]) ? propertyDeps : schemaDeps; - deps[key] = schema[key]; - } - return [propertyDeps, schemaDeps]; - } - function validatePropertyDeps(cxt, propertyDeps = cxt.schema) { - const { gen, data, it } = cxt; - if (Object.keys(propertyDeps).length === 0) - return; - const missing = gen.let("missing"); - for (const prop in propertyDeps) { - const deps = propertyDeps[prop]; - if (deps.length === 0) - continue; - const hasProperty = (0, code_1.propertyInData)(gen, data, prop, it.opts.ownProperties); - cxt.setParams({ - property: prop, - depsCount: deps.length, - deps: deps.join(", ") - }); - if (it.allErrors) { - gen.if(hasProperty, () => { - for (const depProp of deps) { - (0, code_1.checkReportMissingProp)(cxt, depProp); - } - }); - } else { - gen.if((0, codegen_1._)`${hasProperty} && (${(0, code_1.checkMissingProp)(cxt, deps, missing)})`); - (0, code_1.reportMissingProp)(cxt, missing); - gen.else(); - } - } - } - exports.validatePropertyDeps = validatePropertyDeps; - function validateSchemaDeps(cxt, schemaDeps = cxt.schema) { - const { gen, data, keyword, it } = cxt; - const valid = gen.name("valid"); - for (const prop in schemaDeps) { - if ((0, util_1.alwaysValidSchema)(it, schemaDeps[prop])) - continue; - gen.if((0, code_1.propertyInData)(gen, data, prop, it.opts.ownProperties), () => { - const schCxt = cxt.subschema({ keyword, schemaProp: prop }, valid); - cxt.mergeValidEvaluated(schCxt, valid); - }, () => gen.var(valid, true)); - cxt.ok(valid); - } - } - exports.validateSchemaDeps = validateSchemaDeps; - exports.default = def; -}); -var require_propertyNames2 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var codegen_1 = require_codegen2(); - var util_1 = require_util2(); - var error2 = { - message: "property name must be valid", - params: ({ params }) => (0, codegen_1._)`{propertyName: ${params.propertyName}}` - }; - var def = { - keyword: "propertyNames", - type: "object", - schemaType: ["object", "boolean"], - error: error2, - code(cxt) { - const { gen, schema, data, it } = cxt; - if ((0, util_1.alwaysValidSchema)(it, schema)) - return; - const valid = gen.name("valid"); - gen.forIn("key", data, (key) => { - cxt.setParams({ propertyName: key }); - cxt.subschema({ - keyword: "propertyNames", - data: key, - dataTypes: ["string"], - propertyName: key, - compositeRule: true - }, valid); - gen.if((0, codegen_1.not)(valid), () => { - cxt.error(true); - if (!it.allErrors) - gen.break(); - }); - }); - cxt.ok(valid); - } - }; - exports.default = def; -}); -var require_additionalProperties2 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var code_1 = require_code22(); - var codegen_1 = require_codegen2(); - var names_1 = require_names2(); - var util_1 = require_util2(); - var error2 = { - message: "must NOT have additional properties", - params: ({ params }) => (0, codegen_1._)`{additionalProperty: ${params.additionalProperty}}` - }; - var def = { - keyword: "additionalProperties", - type: ["object"], - schemaType: ["boolean", "object"], - allowUndefined: true, - trackErrors: true, - error: error2, - code(cxt) { - const { gen, schema, parentSchema, data, errsCount, it } = cxt; - if (!errsCount) - throw new Error("ajv implementation error"); - const { allErrors, opts } = it; - it.props = true; - if (opts.removeAdditional !== "all" && (0, util_1.alwaysValidSchema)(it, schema)) - return; - const props = (0, code_1.allSchemaProperties)(parentSchema.properties); - const patProps = (0, code_1.allSchemaProperties)(parentSchema.patternProperties); - checkAdditionalProperties(); - cxt.ok((0, codegen_1._)`${errsCount} === ${names_1.default.errors}`); - function checkAdditionalProperties() { - gen.forIn("key", data, (key) => { - if (!props.length && !patProps.length) - additionalPropertyCode(key); - else - gen.if(isAdditional(key), () => additionalPropertyCode(key)); - }); - } - function isAdditional(key) { - let definedProp; - if (props.length > 8) { - const propsSchema = (0, util_1.schemaRefOrVal)(it, parentSchema.properties, "properties"); - definedProp = (0, code_1.isOwnProperty)(gen, propsSchema, key); - } else if (props.length) { - definedProp = (0, codegen_1.or)(...props.map((p) => (0, codegen_1._)`${key} === ${p}`)); - } else { - definedProp = codegen_1.nil; - } - if (patProps.length) { - definedProp = (0, codegen_1.or)(definedProp, ...patProps.map((p) => (0, codegen_1._)`${(0, code_1.usePattern)(cxt, p)}.test(${key})`)); - } - return (0, codegen_1.not)(definedProp); - } - function deleteAdditional(key) { - gen.code((0, codegen_1._)`delete ${data}[${key}]`); - } - function additionalPropertyCode(key) { - if (opts.removeAdditional === "all" || opts.removeAdditional && schema === false) { - deleteAdditional(key); - return; - } - if (schema === false) { - cxt.setParams({ additionalProperty: key }); - cxt.error(); - if (!allErrors) - gen.break(); - return; - } - if (typeof schema == "object" && !(0, util_1.alwaysValidSchema)(it, schema)) { - const valid = gen.name("valid"); - if (opts.removeAdditional === "failing") { - applyAdditionalSchema(key, valid, false); - gen.if((0, codegen_1.not)(valid), () => { - cxt.reset(); - deleteAdditional(key); - }); - } else { - applyAdditionalSchema(key, valid); - if (!allErrors) - gen.if((0, codegen_1.not)(valid), () => gen.break()); - } - } - } - function applyAdditionalSchema(key, valid, errors3) { - const subschema = { - keyword: "additionalProperties", - dataProp: key, - dataPropType: util_1.Type.Str - }; - if (errors3 === false) { - Object.assign(subschema, { - compositeRule: true, - createErrors: false, - allErrors: false - }); - } - cxt.subschema(subschema, valid); - } - } - }; - exports.default = def; -}); -var require_properties2 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var validate_1 = require_validate2(); - var code_1 = require_code22(); - var util_1 = require_util2(); - var additionalProperties_1 = require_additionalProperties2(); - var def = { - keyword: "properties", - type: "object", - schemaType: "object", - code(cxt) { - const { gen, schema, parentSchema, data, it } = cxt; - if (it.opts.removeAdditional === "all" && parentSchema.additionalProperties === undefined) { - additionalProperties_1.default.code(new validate_1.KeywordCxt(it, additionalProperties_1.default, "additionalProperties")); - } - const allProps = (0, code_1.allSchemaProperties)(schema); - for (const prop of allProps) { - it.definedProperties.add(prop); - } - if (it.opts.unevaluated && allProps.length && it.props !== true) { - it.props = util_1.mergeEvaluated.props(gen, (0, util_1.toHash)(allProps), it.props); - } - const properties = allProps.filter((p) => !(0, util_1.alwaysValidSchema)(it, schema[p])); - if (properties.length === 0) - return; - const valid = gen.name("valid"); - for (const prop of properties) { - if (hasDefault(prop)) { - applyPropertySchema(prop); - } else { - gen.if((0, code_1.propertyInData)(gen, data, prop, it.opts.ownProperties)); - applyPropertySchema(prop); - if (!it.allErrors) - gen.else().var(valid, true); - gen.endIf(); - } - cxt.it.definedProperties.add(prop); - cxt.ok(valid); - } - function hasDefault(prop) { - return it.opts.useDefaults && !it.compositeRule && schema[prop].default !== undefined; - } - function applyPropertySchema(prop) { - cxt.subschema({ - keyword: "properties", - schemaProp: prop, - dataProp: prop - }, valid); - } - } - }; - exports.default = def; -}); -var require_patternProperties2 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var code_1 = require_code22(); - var codegen_1 = require_codegen2(); - var util_1 = require_util2(); - var util_2 = require_util2(); - var def = { - keyword: "patternProperties", - type: "object", - schemaType: "object", - code(cxt) { - const { gen, schema, data, parentSchema, it } = cxt; - const { opts } = it; - const patterns = (0, code_1.allSchemaProperties)(schema); - const alwaysValidPatterns = patterns.filter((p) => (0, util_1.alwaysValidSchema)(it, schema[p])); - if (patterns.length === 0 || alwaysValidPatterns.length === patterns.length && (!it.opts.unevaluated || it.props === true)) { - return; - } - const checkProperties = opts.strictSchema && !opts.allowMatchingProperties && parentSchema.properties; - const valid = gen.name("valid"); - if (it.props !== true && !(it.props instanceof codegen_1.Name)) { - it.props = (0, util_2.evaluatedPropsToName)(gen, it.props); - } - const { props } = it; - validatePatternProperties(); - function validatePatternProperties() { - for (const pat of patterns) { - if (checkProperties) - checkMatchingProperties(pat); - if (it.allErrors) { - validateProperties(pat); - } else { - gen.var(valid, true); - validateProperties(pat); - gen.if(valid); - } - } - } - function checkMatchingProperties(pat) { - for (const prop in checkProperties) { - if (new RegExp(pat).test(prop)) { - (0, util_1.checkStrictMode)(it, `property ${prop} matches pattern ${pat} (use allowMatchingProperties)`); - } - } - } - function validateProperties(pat) { - gen.forIn("key", data, (key) => { - gen.if((0, codegen_1._)`${(0, code_1.usePattern)(cxt, pat)}.test(${key})`, () => { - const alwaysValid = alwaysValidPatterns.includes(pat); - if (!alwaysValid) { - cxt.subschema({ - keyword: "patternProperties", - schemaProp: pat, - dataProp: key, - dataPropType: util_2.Type.Str - }, valid); - } - if (it.opts.unevaluated && props !== true) { - gen.assign((0, codegen_1._)`${props}[${key}]`, true); - } else if (!alwaysValid && !it.allErrors) { - gen.if((0, codegen_1.not)(valid), () => gen.break()); - } - }); - }); - } - } - }; - exports.default = def; -}); -var require_not2 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var util_1 = require_util2(); - var def = { - keyword: "not", - schemaType: ["object", "boolean"], - trackErrors: true, - code(cxt) { - const { gen, schema, it } = cxt; - if ((0, util_1.alwaysValidSchema)(it, schema)) { - cxt.fail(); - return; - } - const valid = gen.name("valid"); - cxt.subschema({ - keyword: "not", - compositeRule: true, - createErrors: false, - allErrors: false - }, valid); - cxt.failResult(valid, () => cxt.reset(), () => cxt.error()); - }, - error: { message: "must NOT be valid" } - }; - exports.default = def; -}); -var require_anyOf2 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var code_1 = require_code22(); - var def = { - keyword: "anyOf", - schemaType: "array", - trackErrors: true, - code: code_1.validateUnion, - error: { message: "must match a schema in anyOf" } - }; - exports.default = def; -}); -var require_oneOf2 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var codegen_1 = require_codegen2(); - var util_1 = require_util2(); - var error2 = { - message: "must match exactly one schema in oneOf", - params: ({ params }) => (0, codegen_1._)`{passingSchemas: ${params.passing}}` - }; - var def = { - keyword: "oneOf", - schemaType: "array", - trackErrors: true, - error: error2, - code(cxt) { - const { gen, schema, parentSchema, it } = cxt; - if (!Array.isArray(schema)) - throw new Error("ajv implementation error"); - if (it.opts.discriminator && parentSchema.discriminator) - return; - const schArr = schema; - const valid = gen.let("valid", false); - const passing = gen.let("passing", null); - const schValid = gen.name("_valid"); - cxt.setParams({ passing }); - gen.block(validateOneOf); - cxt.result(valid, () => cxt.reset(), () => cxt.error(true)); - function validateOneOf() { - schArr.forEach((sch, i) => { - let schCxt; - if ((0, util_1.alwaysValidSchema)(it, sch)) { - gen.var(schValid, true); - } else { - schCxt = cxt.subschema({ - keyword: "oneOf", - schemaProp: i, - compositeRule: true - }, schValid); - } - if (i > 0) { - gen.if((0, codegen_1._)`${schValid} && ${valid}`).assign(valid, false).assign(passing, (0, codegen_1._)`[${passing}, ${i}]`).else(); - } - gen.if(schValid, () => { - gen.assign(valid, true); - gen.assign(passing, i); - if (schCxt) - cxt.mergeEvaluated(schCxt, codegen_1.Name); - }); - }); - } - } - }; - exports.default = def; -}); -var require_allOf2 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var util_1 = require_util2(); - var def = { - keyword: "allOf", - schemaType: "array", - code(cxt) { - const { gen, schema, it } = cxt; - if (!Array.isArray(schema)) - throw new Error("ajv implementation error"); - const valid = gen.name("valid"); - schema.forEach((sch, i) => { - if ((0, util_1.alwaysValidSchema)(it, sch)) - return; - const schCxt = cxt.subschema({ keyword: "allOf", schemaProp: i }, valid); - cxt.ok(valid); - cxt.mergeEvaluated(schCxt); - }); - } - }; - exports.default = def; -}); -var require_if2 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var codegen_1 = require_codegen2(); - var util_1 = require_util2(); - var error2 = { - message: ({ params }) => (0, codegen_1.str)`must match "${params.ifClause}" schema`, - params: ({ params }) => (0, codegen_1._)`{failingKeyword: ${params.ifClause}}` - }; - var def = { - keyword: "if", - schemaType: ["object", "boolean"], - trackErrors: true, - error: error2, - code(cxt) { - const { gen, parentSchema, it } = cxt; - if (parentSchema.then === undefined && parentSchema.else === undefined) { - (0, util_1.checkStrictMode)(it, '"if" without "then" and "else" is ignored'); - } - const hasThen = hasSchema(it, "then"); - const hasElse = hasSchema(it, "else"); - if (!hasThen && !hasElse) - return; - const valid = gen.let("valid", true); - const schValid = gen.name("_valid"); - validateIf(); - cxt.reset(); - if (hasThen && hasElse) { - const ifClause = gen.let("ifClause"); - cxt.setParams({ ifClause }); - gen.if(schValid, validateClause("then", ifClause), validateClause("else", ifClause)); - } else if (hasThen) { - gen.if(schValid, validateClause("then")); - } else { - gen.if((0, codegen_1.not)(schValid), validateClause("else")); - } - cxt.pass(valid, () => cxt.error(true)); - function validateIf() { - const schCxt = cxt.subschema({ - keyword: "if", - compositeRule: true, - createErrors: false, - allErrors: false - }, schValid); - cxt.mergeEvaluated(schCxt); - } - function validateClause(keyword, ifClause) { - return () => { - const schCxt = cxt.subschema({ keyword }, schValid); - gen.assign(valid, schValid); - cxt.mergeValidEvaluated(schCxt, valid); - if (ifClause) - gen.assign(ifClause, (0, codegen_1._)`${keyword}`); - else - cxt.setParams({ ifClause: keyword }); - }; - } - } - }; - function hasSchema(it, keyword) { - const schema = it.schema[keyword]; - return schema !== undefined && !(0, util_1.alwaysValidSchema)(it, schema); - } - exports.default = def; -}); -var require_thenElse2 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var util_1 = require_util2(); - var def = { - keyword: ["then", "else"], - schemaType: ["object", "boolean"], - code({ keyword, parentSchema, it }) { - if (parentSchema.if === undefined) - (0, util_1.checkStrictMode)(it, `"${keyword}" without "if" is ignored`); - } - }; - exports.default = def; -}); -var require_applicator2 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var additionalItems_1 = require_additionalItems2(); - var prefixItems_1 = require_prefixItems2(); - var items_1 = require_items2(); - var items2020_1 = require_items20202(); - var contains_1 = require_contains2(); - var dependencies_1 = require_dependencies2(); - var propertyNames_1 = require_propertyNames2(); - var additionalProperties_1 = require_additionalProperties2(); - var properties_1 = require_properties2(); - var patternProperties_1 = require_patternProperties2(); - var not_1 = require_not2(); - var anyOf_1 = require_anyOf2(); - var oneOf_1 = require_oneOf2(); - var allOf_1 = require_allOf2(); - var if_1 = require_if2(); - var thenElse_1 = require_thenElse2(); - function getApplicator(draft2020 = false) { - const applicator = [ - not_1.default, - anyOf_1.default, - oneOf_1.default, - allOf_1.default, - if_1.default, - thenElse_1.default, - propertyNames_1.default, - additionalProperties_1.default, - dependencies_1.default, - properties_1.default, - patternProperties_1.default - ]; - if (draft2020) - applicator.push(prefixItems_1.default, items2020_1.default); - else - applicator.push(additionalItems_1.default, items_1.default); - applicator.push(contains_1.default); - return applicator; - } - exports.default = getApplicator; -}); -var require_format3 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var codegen_1 = require_codegen2(); - var error2 = { - message: ({ schemaCode }) => (0, codegen_1.str)`must match format "${schemaCode}"`, - params: ({ schemaCode }) => (0, codegen_1._)`{format: ${schemaCode}}` - }; - var def = { - keyword: "format", - type: ["number", "string"], - schemaType: "string", - $data: true, - error: error2, - code(cxt, ruleType) { - const { gen, data, $data, schema, schemaCode, it } = cxt; - const { opts, errSchemaPath, schemaEnv, self: self2 } = it; - if (!opts.validateFormats) - return; - if ($data) - validate$DataFormat(); - else - validateFormat(); - function validate$DataFormat() { - const fmts = gen.scopeValue("formats", { - ref: self2.formats, - code: opts.code.formats - }); - const fDef = gen.const("fDef", (0, codegen_1._)`${fmts}[${schemaCode}]`); - const fType = gen.let("fType"); - const format = gen.let("format"); - gen.if((0, codegen_1._)`typeof ${fDef} == "object" && !(${fDef} instanceof RegExp)`, () => gen.assign(fType, (0, codegen_1._)`${fDef}.type || "string"`).assign(format, (0, codegen_1._)`${fDef}.validate`), () => gen.assign(fType, (0, codegen_1._)`"string"`).assign(format, fDef)); - cxt.fail$data((0, codegen_1.or)(unknownFmt(), invalidFmt())); - function unknownFmt() { - if (opts.strictSchema === false) - return codegen_1.nil; - return (0, codegen_1._)`${schemaCode} && !${format}`; - } - function invalidFmt() { - const callFormat = schemaEnv.$async ? (0, codegen_1._)`(${fDef}.async ? await ${format}(${data}) : ${format}(${data}))` : (0, codegen_1._)`${format}(${data})`; - const validData = (0, codegen_1._)`(typeof ${format} == "function" ? ${callFormat} : ${format}.test(${data}))`; - return (0, codegen_1._)`${format} && ${format} !== true && ${fType} === ${ruleType} && !${validData}`; - } - } - function validateFormat() { - const formatDef = self2.formats[schema]; - if (!formatDef) { - unknownFormat(); - return; - } - if (formatDef === true) - return; - const [fmtType, format, fmtRef] = getFormat(formatDef); - if (fmtType === ruleType) - cxt.pass(validCondition()); - function unknownFormat() { - if (opts.strictSchema === false) { - self2.logger.warn(unknownMsg()); - return; - } - throw new Error(unknownMsg()); - function unknownMsg() { - return `unknown format "${schema}" ignored in schema at path "${errSchemaPath}"`; - } - } - function getFormat(fmtDef) { - const code = fmtDef instanceof RegExp ? (0, codegen_1.regexpCode)(fmtDef) : opts.code.formats ? (0, codegen_1._)`${opts.code.formats}${(0, codegen_1.getProperty)(schema)}` : undefined; - const fmt = gen.scopeValue("formats", { key: schema, ref: fmtDef, code }); - if (typeof fmtDef == "object" && !(fmtDef instanceof RegExp)) { - return [fmtDef.type || "string", fmtDef.validate, (0, codegen_1._)`${fmt}.validate`]; - } - return ["string", fmtDef, fmt]; - } - function validCondition() { - if (typeof formatDef == "object" && !(formatDef instanceof RegExp) && formatDef.async) { - if (!schemaEnv.$async) - throw new Error("async format in sync schema"); - return (0, codegen_1._)`await ${fmtRef}(${data})`; - } - return typeof format == "function" ? (0, codegen_1._)`${fmtRef}(${data})` : (0, codegen_1._)`${fmtRef}.test(${data})`; - } - } - } - }; - exports.default = def; -}); -var require_format22 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var format_1 = require_format3(); - var format = [format_1.default]; - exports.default = format; -}); -var require_metadata2 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.contentVocabulary = exports.metadataVocabulary = undefined; - exports.metadataVocabulary = [ - "title", - "description", - "default", - "deprecated", - "readOnly", - "writeOnly", - "examples" - ]; - exports.contentVocabulary = [ - "contentMediaType", - "contentEncoding", - "contentSchema" - ]; -}); -var require_draft72 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var core_1 = require_core22(); - var validation_1 = require_validation2(); - var applicator_1 = require_applicator2(); - var format_1 = require_format22(); - var metadata_1 = require_metadata2(); - var draft7Vocabularies = [ - core_1.default, - validation_1.default, - (0, applicator_1.default)(), - format_1.default, - metadata_1.metadataVocabulary, - metadata_1.contentVocabulary - ]; - exports.default = draft7Vocabularies; -}); -var require_types3 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.DiscrError = undefined; - var DiscrError; - (function(DiscrError2) { - DiscrError2["Tag"] = "tag"; - DiscrError2["Mapping"] = "mapping"; - })(DiscrError || (exports.DiscrError = DiscrError = {})); -}); -var require_discriminator2 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var codegen_1 = require_codegen2(); - var types_1 = require_types3(); - var compile_1 = require_compile2(); - var ref_error_1 = require_ref_error2(); - var util_1 = require_util2(); - var error2 = { - message: ({ params: { discrError, tagName } }) => discrError === types_1.DiscrError.Tag ? `tag "${tagName}" must be string` : `value of tag "${tagName}" must be in oneOf`, - params: ({ params: { discrError, tag, tagName } }) => (0, codegen_1._)`{error: ${discrError}, tag: ${tagName}, tagValue: ${tag}}` - }; - var def = { - keyword: "discriminator", - type: "object", - schemaType: "object", - error: error2, - code(cxt) { - const { gen, data, schema, parentSchema, it } = cxt; - const { oneOf } = parentSchema; - if (!it.opts.discriminator) { - throw new Error("discriminator: requires discriminator option"); - } - const tagName = schema.propertyName; - if (typeof tagName != "string") - throw new Error("discriminator: requires propertyName"); - if (schema.mapping) - throw new Error("discriminator: mapping is not supported"); - if (!oneOf) - throw new Error("discriminator: requires oneOf keyword"); - const valid = gen.let("valid", false); - const tag = gen.const("tag", (0, codegen_1._)`${data}${(0, codegen_1.getProperty)(tagName)}`); - gen.if((0, codegen_1._)`typeof ${tag} == "string"`, () => validateMapping(), () => cxt.error(false, { discrError: types_1.DiscrError.Tag, tag, tagName })); - cxt.ok(valid); - function validateMapping() { - const mapping = getMapping(); - gen.if(false); - for (const tagValue in mapping) { - gen.elseIf((0, codegen_1._)`${tag} === ${tagValue}`); - gen.assign(valid, applyTagSchema(mapping[tagValue])); - } - gen.else(); - cxt.error(false, { discrError: types_1.DiscrError.Mapping, tag, tagName }); - gen.endIf(); - } - function applyTagSchema(schemaProp) { - const _valid = gen.name("valid"); - const schCxt = cxt.subschema({ keyword: "oneOf", schemaProp }, _valid); - cxt.mergeEvaluated(schCxt, codegen_1.Name); - return _valid; - } - function getMapping() { - var _a2; - const oneOfMapping = {}; - const topRequired = hasRequired(parentSchema); - let tagRequired = true; - for (let i = 0;i < oneOf.length; i++) { - let sch = oneOf[i]; - if ((sch === null || sch === undefined ? undefined : sch.$ref) && !(0, util_1.schemaHasRulesButRef)(sch, it.self.RULES)) { - const ref = sch.$ref; - sch = compile_1.resolveRef.call(it.self, it.schemaEnv.root, it.baseId, ref); - if (sch instanceof compile_1.SchemaEnv) - sch = sch.schema; - if (sch === undefined) - throw new ref_error_1.default(it.opts.uriResolver, it.baseId, ref); - } - const propSch = (_a2 = sch === null || sch === undefined ? undefined : sch.properties) === null || _a2 === undefined ? undefined : _a2[tagName]; - if (typeof propSch != "object") { - throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${tagName}"`); - } - tagRequired = tagRequired && (topRequired || hasRequired(sch)); - addMappings(propSch, i); - } - if (!tagRequired) - throw new Error(`discriminator: "${tagName}" must be required`); - return oneOfMapping; - function hasRequired({ required: required2 }) { - return Array.isArray(required2) && required2.includes(tagName); - } - function addMappings(sch, i) { - if (sch.const) { - addMapping(sch.const, i); - } else if (sch.enum) { - for (const tagValue of sch.enum) { - addMapping(tagValue, i); - } - } else { - throw new Error(`discriminator: "properties/${tagName}" must have "const" or "enum"`); - } - } - function addMapping(tagValue, i) { - if (typeof tagValue != "string" || tagValue in oneOfMapping) { - throw new Error(`discriminator: "${tagName}" values must be unique strings`); - } - oneOfMapping[tagValue] = i; - } - } - } - }; - exports.default = def; -}); -var require_json_schema_draft_072 = __commonJS2((exports, module) => { - module.exports = { - $schema: "http://json-schema.org/draft-07/schema#", - $id: "http://json-schema.org/draft-07/schema#", - title: "Core schema meta-schema", - definitions: { - schemaArray: { - type: "array", - minItems: 1, - items: { $ref: "#" } - }, - nonNegativeInteger: { - type: "integer", - minimum: 0 - }, - nonNegativeIntegerDefault0: { - allOf: [{ $ref: "#/definitions/nonNegativeInteger" }, { default: 0 }] - }, - simpleTypes: { - enum: ["array", "boolean", "integer", "null", "number", "object", "string"] - }, - stringArray: { - type: "array", - items: { type: "string" }, - uniqueItems: true, - default: [] - } - }, - type: ["object", "boolean"], - properties: { - $id: { - type: "string", - format: "uri-reference" - }, - $schema: { - type: "string", - format: "uri" - }, - $ref: { - type: "string", - format: "uri-reference" - }, - $comment: { - type: "string" - }, - title: { - type: "string" - }, - description: { - type: "string" - }, - default: true, - readOnly: { - type: "boolean", - default: false - }, - examples: { - type: "array", - items: true - }, - multipleOf: { - type: "number", - exclusiveMinimum: 0 - }, - maximum: { - type: "number" - }, - exclusiveMaximum: { - type: "number" - }, - minimum: { - type: "number" - }, - exclusiveMinimum: { - type: "number" - }, - maxLength: { $ref: "#/definitions/nonNegativeInteger" }, - minLength: { $ref: "#/definitions/nonNegativeIntegerDefault0" }, - pattern: { - type: "string", - format: "regex" - }, - additionalItems: { $ref: "#" }, - items: { - anyOf: [{ $ref: "#" }, { $ref: "#/definitions/schemaArray" }], - default: true - }, - maxItems: { $ref: "#/definitions/nonNegativeInteger" }, - minItems: { $ref: "#/definitions/nonNegativeIntegerDefault0" }, - uniqueItems: { - type: "boolean", - default: false - }, - contains: { $ref: "#" }, - maxProperties: { $ref: "#/definitions/nonNegativeInteger" }, - minProperties: { $ref: "#/definitions/nonNegativeIntegerDefault0" }, - required: { $ref: "#/definitions/stringArray" }, - additionalProperties: { $ref: "#" }, - definitions: { - type: "object", - additionalProperties: { $ref: "#" }, - default: {} - }, - properties: { - type: "object", - additionalProperties: { $ref: "#" }, - default: {} - }, - patternProperties: { - type: "object", - additionalProperties: { $ref: "#" }, - propertyNames: { format: "regex" }, - default: {} - }, - dependencies: { - type: "object", - additionalProperties: { - anyOf: [{ $ref: "#" }, { $ref: "#/definitions/stringArray" }] - } - }, - propertyNames: { $ref: "#" }, - const: true, - enum: { - type: "array", - items: true, - minItems: 1, - uniqueItems: true - }, - type: { - anyOf: [ - { $ref: "#/definitions/simpleTypes" }, - { - type: "array", - items: { $ref: "#/definitions/simpleTypes" }, - minItems: 1, - uniqueItems: true - } - ] - }, - format: { type: "string" }, - contentMediaType: { type: "string" }, - contentEncoding: { type: "string" }, - if: { $ref: "#" }, - then: { $ref: "#" }, - else: { $ref: "#" }, - allOf: { $ref: "#/definitions/schemaArray" }, - anyOf: { $ref: "#/definitions/schemaArray" }, - oneOf: { $ref: "#/definitions/schemaArray" }, - not: { $ref: "#" } - }, - default: true - }; -}); -var require_ajv2 = __commonJS2((exports, module) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv = undefined; - var core_1 = require_core3(); - var draft7_1 = require_draft72(); - var discriminator_1 = require_discriminator2(); - var draft7MetaSchema = require_json_schema_draft_072(); - var META_SUPPORT_DATA = ["/properties"]; - var META_SCHEMA_ID = "http://json-schema.org/draft-07/schema"; - - class Ajv2 extends core_1.default { - _addVocabularies() { - super._addVocabularies(); - draft7_1.default.forEach((v) => this.addVocabulary(v)); - if (this.opts.discriminator) - this.addKeyword(discriminator_1.default); - } - _addDefaultMetaSchema() { - super._addDefaultMetaSchema(); - if (!this.opts.meta) - return; - const metaSchema = this.opts.$data ? this.$dataMetaSchema(draft7MetaSchema, META_SUPPORT_DATA) : draft7MetaSchema; - this.addMetaSchema(metaSchema, META_SCHEMA_ID, false); - this.refs["http://json-schema.org/schema"] = META_SCHEMA_ID; - } - defaultMeta() { - return this.opts.defaultMeta = super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : undefined); - } - } - exports.Ajv = Ajv2; - module.exports = exports = Ajv2; - module.exports.Ajv = Ajv2; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.default = Ajv2; - var validate_1 = require_validate2(); - Object.defineProperty(exports, "KeywordCxt", { enumerable: true, get: function() { - return validate_1.KeywordCxt; - } }); - var codegen_1 = require_codegen2(); - Object.defineProperty(exports, "_", { enumerable: true, get: function() { - return codegen_1._; - } }); - Object.defineProperty(exports, "str", { enumerable: true, get: function() { - return codegen_1.str; - } }); - Object.defineProperty(exports, "stringify", { enumerable: true, get: function() { - return codegen_1.stringify; - } }); - Object.defineProperty(exports, "nil", { enumerable: true, get: function() { - return codegen_1.nil; - } }); - Object.defineProperty(exports, "Name", { enumerable: true, get: function() { - return codegen_1.Name; - } }); - Object.defineProperty(exports, "CodeGen", { enumerable: true, get: function() { - return codegen_1.CodeGen; - } }); - var validation_error_1 = require_validation_error2(); - Object.defineProperty(exports, "ValidationError", { enumerable: true, get: function() { - return validation_error_1.default; - } }); - var ref_error_1 = require_ref_error2(); - Object.defineProperty(exports, "MissingRefError", { enumerable: true, get: function() { - return ref_error_1.default; - } }); -}); -var require_formats3 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.formatNames = exports.fastFormats = exports.fullFormats = undefined; - function fmtDef(validate, compare) { - return { validate, compare }; - } - exports.fullFormats = { - date: fmtDef(date4, compareDate), - time: fmtDef(getTime(true), compareTime), - "date-time": fmtDef(getDateTime(true), compareDateTime), - "iso-time": fmtDef(getTime(), compareIsoTime), - "iso-date-time": fmtDef(getDateTime(), compareIsoDateTime), - duration: /^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/, - uri, - "uri-reference": /^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i, - "uri-template": /^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i, - url: /^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu, - email: /^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i, - hostname: /^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i, - ipv4: /^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/, - ipv6: /^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i, - regex, - uuid: /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i, - "json-pointer": /^(?:\/(?:[^~/]|~0|~1)*)*$/, - "json-pointer-uri-fragment": /^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i, - "relative-json-pointer": /^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/, - byte, - int32: { type: "number", validate: validateInt32 }, - int64: { type: "number", validate: validateInt64 }, - float: { type: "number", validate: validateNumber }, - double: { type: "number", validate: validateNumber }, - password: true, - binary: true - }; - exports.fastFormats = { - ...exports.fullFormats, - date: fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\d$/, compareDate), - time: fmtDef(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i, compareTime), - "date-time": fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i, compareDateTime), - "iso-time": fmtDef(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i, compareIsoTime), - "iso-date-time": fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i, compareIsoDateTime), - uri: /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i, - "uri-reference": /^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i, - email: /^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i - }; - exports.formatNames = Object.keys(exports.fullFormats); - function isLeapYear(year) { - return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0); - } - var DATE = /^(\d\d\d\d)-(\d\d)-(\d\d)$/; - var DAYS = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; - function date4(str) { - const matches = DATE.exec(str); - if (!matches) - return false; - const year = +matches[1]; - const month = +matches[2]; - const day = +matches[3]; - return month >= 1 && month <= 12 && day >= 1 && day <= (month === 2 && isLeapYear(year) ? 29 : DAYS[month]); - } - function compareDate(d1, d2) { - if (!(d1 && d2)) - return; - if (d1 > d2) - return 1; - if (d1 < d2) - return -1; - return 0; - } - var TIME = /^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i; - function getTime(strictTimeZone) { - return function time3(str) { - const matches = TIME.exec(str); - if (!matches) - return false; - const hr = +matches[1]; - const min = +matches[2]; - const sec = +matches[3]; - const tz = matches[4]; - const tzSign = matches[5] === "-" ? -1 : 1; - const tzH = +(matches[6] || 0); - const tzM = +(matches[7] || 0); - if (tzH > 23 || tzM > 59 || strictTimeZone && !tz) - return false; - if (hr <= 23 && min <= 59 && sec < 60) - return true; - const utcMin = min - tzM * tzSign; - const utcHr = hr - tzH * tzSign - (utcMin < 0 ? 1 : 0); - return (utcHr === 23 || utcHr === -1) && (utcMin === 59 || utcMin === -1) && sec < 61; - }; - } - function compareTime(s1, s2) { - if (!(s1 && s2)) - return; - const t1 = new Date("2020-01-01T" + s1).valueOf(); - const t2 = new Date("2020-01-01T" + s2).valueOf(); - if (!(t1 && t2)) - return; - return t1 - t2; - } - function compareIsoTime(t1, t2) { - if (!(t1 && t2)) - return; - const a1 = TIME.exec(t1); - const a2 = TIME.exec(t2); - if (!(a1 && a2)) - return; - t1 = a1[1] + a1[2] + a1[3]; - t2 = a2[1] + a2[2] + a2[3]; - if (t1 > t2) - return 1; - if (t1 < t2) - return -1; - return 0; - } - var DATE_TIME_SEPARATOR = /t|\s/i; - function getDateTime(strictTimeZone) { - const time3 = getTime(strictTimeZone); - return function date_time(str) { - const dateTime = str.split(DATE_TIME_SEPARATOR); - return dateTime.length === 2 && date4(dateTime[0]) && time3(dateTime[1]); - }; - } - function compareDateTime(dt1, dt2) { - if (!(dt1 && dt2)) - return; - const d1 = new Date(dt1).valueOf(); - const d2 = new Date(dt2).valueOf(); - if (!(d1 && d2)) - return; - return d1 - d2; - } - function compareIsoDateTime(dt1, dt2) { - if (!(dt1 && dt2)) - return; - const [d1, t1] = dt1.split(DATE_TIME_SEPARATOR); - const [d2, t2] = dt2.split(DATE_TIME_SEPARATOR); - const res = compareDate(d1, d2); - if (res === undefined) - return; - return res || compareTime(t1, t2); - } - var NOT_URI_FRAGMENT = /\/|:/; - var URI = /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i; - function uri(str) { - return NOT_URI_FRAGMENT.test(str) && URI.test(str); - } - var BYTE = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm; - function byte(str) { - BYTE.lastIndex = 0; - return BYTE.test(str); - } - var MIN_INT32 = -(2 ** 31); - var MAX_INT32 = 2 ** 31 - 1; - function validateInt32(value) { - return Number.isInteger(value) && value <= MAX_INT32 && value >= MIN_INT32; - } - function validateInt64(value) { - return Number.isInteger(value); - } - function validateNumber() { - return true; - } - var Z_ANCHOR = /[^\\]\\Z/; - function regex(str) { - if (Z_ANCHOR.test(str)) - return false; - try { - new RegExp(str); - return true; - } catch (e) { - return false; - } - } -}); -var require_limit2 = __commonJS2((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.formatLimitDefinition = undefined; - var ajv_1 = require_ajv2(); - var codegen_1 = require_codegen2(); - var ops = codegen_1.operators; - var KWDs = { - formatMaximum: { okStr: "<=", ok: ops.LTE, fail: ops.GT }, - formatMinimum: { okStr: ">=", ok: ops.GTE, fail: ops.LT }, - formatExclusiveMaximum: { okStr: "<", ok: ops.LT, fail: ops.GTE }, - formatExclusiveMinimum: { okStr: ">", ok: ops.GT, fail: ops.LTE } - }; - var error2 = { - message: ({ keyword, schemaCode }) => (0, codegen_1.str)`should be ${KWDs[keyword].okStr} ${schemaCode}`, - params: ({ keyword, schemaCode }) => (0, codegen_1._)`{comparison: ${KWDs[keyword].okStr}, limit: ${schemaCode}}` - }; - exports.formatLimitDefinition = { - keyword: Object.keys(KWDs), - type: "string", - schemaType: "string", - $data: true, - error: error2, - code(cxt) { - const { gen, data, schemaCode, keyword, it } = cxt; - const { opts, self: self2 } = it; - if (!opts.validateFormats) - return; - const fCxt = new ajv_1.KeywordCxt(it, self2.RULES.all.format.definition, "format"); - if (fCxt.$data) - validate$DataFormat(); - else - validateFormat(); - function validate$DataFormat() { - const fmts = gen.scopeValue("formats", { - ref: self2.formats, - code: opts.code.formats - }); - const fmt = gen.const("fmt", (0, codegen_1._)`${fmts}[${fCxt.schemaCode}]`); - cxt.fail$data((0, codegen_1.or)((0, codegen_1._)`typeof ${fmt} != "object"`, (0, codegen_1._)`${fmt} instanceof RegExp`, (0, codegen_1._)`typeof ${fmt}.compare != "function"`, compareCode(fmt))); - } - function validateFormat() { - const format = fCxt.schema; - const fmtDef = self2.formats[format]; - if (!fmtDef || fmtDef === true) - return; - if (typeof fmtDef != "object" || fmtDef instanceof RegExp || typeof fmtDef.compare != "function") { - throw new Error(`"${keyword}": format "${format}" does not define "compare" function`); - } - const fmt = gen.scopeValue("formats", { - key: format, - ref: fmtDef, - code: opts.code.formats ? (0, codegen_1._)`${opts.code.formats}${(0, codegen_1.getProperty)(format)}` : undefined - }); - cxt.fail$data(compareCode(fmt)); - } - function compareCode(fmt) { - return (0, codegen_1._)`${fmt}.compare(${data}, ${schemaCode}) ${KWDs[keyword].fail} 0`; - } - }, - dependencies: ["format"] - }; - var formatLimitPlugin = (ajv) => { - ajv.addKeyword(exports.formatLimitDefinition); - return ajv; - }; - exports.default = formatLimitPlugin; -}); -var require_dist2 = __commonJS2((exports, module) => { - Object.defineProperty(exports, "__esModule", { value: true }); - var formats_1 = require_formats3(); - var limit_1 = require_limit2(); - var codegen_1 = require_codegen2(); - var fullName = new codegen_1.Name("fullFormats"); - var fastName = new codegen_1.Name("fastFormats"); - var formatsPlugin = (ajv, opts = { keywords: true }) => { - if (Array.isArray(opts)) { - addFormats(ajv, opts, formats_1.fullFormats, fullName); - return ajv; - } - const [formats, exportName] = opts.mode === "fast" ? [formats_1.fastFormats, fastName] : [formats_1.fullFormats, fullName]; - const list = opts.formats || formats_1.formatNames; - addFormats(ajv, list, formats, exportName); - if (opts.keywords) - (0, limit_1.default)(ajv); - return ajv; - }; - formatsPlugin.get = (name, mode = "full") => { - const formats = mode === "fast" ? formats_1.fastFormats : formats_1.fullFormats; - const f = formats[name]; - if (!f) - throw new Error(`Unknown format "${name}"`); - return f; - }; - function addFormats(ajv, list, fs22, exportName) { - var _a2; - var _b; - (_a2 = (_b = ajv.opts.code).formats) !== null && _a2 !== undefined || (_b.formats = (0, codegen_1._)`require("ajv-formats/dist/formats").${exportName}`); - for (const f of list) - ajv.addFormat(f, fs22[f]); - } - module.exports = exports = formatsPlugin; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.default = formatsPlugin; -}); -var DEFAULT_MAX_LISTENERS = 50; -function createAbortController(maxListeners = DEFAULT_MAX_LISTENERS) { - const controller = new AbortController; - setMaxListeners(maxListeners, controller.signal); - return controller; -} -var freeGlobal = typeof global == "object" && global && global.Object === Object && global; -var _freeGlobal_default = freeGlobal; -var freeSelf = typeof self == "object" && self && self.Object === Object && self; -var root = _freeGlobal_default || freeSelf || Function("return this")(); -var _root_default = root; -var Symbol2 = _root_default.Symbol; -var _Symbol_default = Symbol2; -var objectProto = Object.prototype; -var hasOwnProperty = objectProto.hasOwnProperty; -var nativeObjectToString = objectProto.toString; -var symToStringTag = _Symbol_default ? _Symbol_default.toStringTag : undefined; -function getRawTag(value) { - var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag]; - try { - value[symToStringTag] = undefined; - var unmasked = true; - } catch (e) {} - var result = nativeObjectToString.call(value); - if (unmasked) { - if (isOwn) { - value[symToStringTag] = tag; - } else { - delete value[symToStringTag]; - } - } - return result; -} -var _getRawTag_default = getRawTag; -var objectProto2 = Object.prototype; -var nativeObjectToString2 = objectProto2.toString; -function objectToString(value) { - return nativeObjectToString2.call(value); -} -var _objectToString_default = objectToString; -var nullTag = "[object Null]"; -var undefinedTag = "[object Undefined]"; -var symToStringTag2 = _Symbol_default ? _Symbol_default.toStringTag : undefined; -function baseGetTag(value) { - if (value == null) { - return value === undefined ? undefinedTag : nullTag; - } - return symToStringTag2 && symToStringTag2 in Object(value) ? _getRawTag_default(value) : _objectToString_default(value); -} -var _baseGetTag_default = baseGetTag; -function isObject2(value) { - var type = typeof value; - return value != null && (type == "object" || type == "function"); -} -var isObject_default = isObject2; -var asyncTag = "[object AsyncFunction]"; -var funcTag = "[object Function]"; -var genTag = "[object GeneratorFunction]"; -var proxyTag = "[object Proxy]"; -function isFunction(value) { - if (!isObject_default(value)) { - return false; - } - var tag = _baseGetTag_default(value); - return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; -} -var isFunction_default = isFunction; -var coreJsData = _root_default["__core-js_shared__"]; -var _coreJsData_default = coreJsData; -var maskSrcKey = function() { - var uid = /[^.]+$/.exec(_coreJsData_default && _coreJsData_default.keys && _coreJsData_default.keys.IE_PROTO || ""); - return uid ? "Symbol(src)_1." + uid : ""; -}(); -function isMasked(func) { - return !!maskSrcKey && maskSrcKey in func; -} -var _isMasked_default = isMasked; -var funcProto = Function.prototype; -var funcToString = funcProto.toString; -function toSource(func) { - if (func != null) { - try { - return funcToString.call(func); - } catch (e) {} - try { - return func + ""; - } catch (e) {} - } - return ""; -} -var _toSource_default = toSource; -var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; -var reIsHostCtor = /^\[object .+?Constructor\]$/; -var funcProto2 = Function.prototype; -var objectProto3 = Object.prototype; -var funcToString2 = funcProto2.toString; -var hasOwnProperty2 = objectProto3.hasOwnProperty; -var reIsNative = RegExp("^" + funcToString2.call(hasOwnProperty2).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"); -function baseIsNative(value) { - if (!isObject_default(value) || _isMasked_default(value)) { - return false; - } - var pattern = isFunction_default(value) ? reIsNative : reIsHostCtor; - return pattern.test(_toSource_default(value)); -} -var _baseIsNative_default = baseIsNative; -function getValue(object4, key) { - return object4 == null ? undefined : object4[key]; -} -var _getValue_default = getValue; -function getNative(object4, key) { - var value = _getValue_default(object4, key); - return _baseIsNative_default(value) ? value : undefined; -} -var _getNative_default = getNative; -var nativeCreate = _getNative_default(Object, "create"); -var _nativeCreate_default = nativeCreate; -function hashClear() { - this.__data__ = _nativeCreate_default ? _nativeCreate_default(null) : {}; - this.size = 0; -} -var _hashClear_default = hashClear; -function hashDelete(key) { - var result = this.has(key) && delete this.__data__[key]; - this.size -= result ? 1 : 0; - return result; -} -var _hashDelete_default = hashDelete; -var HASH_UNDEFINED = "__lodash_hash_undefined__"; -var objectProto4 = Object.prototype; -var hasOwnProperty3 = objectProto4.hasOwnProperty; -function hashGet(key) { - var data = this.__data__; - if (_nativeCreate_default) { - var result = data[key]; - return result === HASH_UNDEFINED ? undefined : result; - } - return hasOwnProperty3.call(data, key) ? data[key] : undefined; -} -var _hashGet_default = hashGet; -var objectProto5 = Object.prototype; -var hasOwnProperty4 = objectProto5.hasOwnProperty; -function hashHas(key) { - var data = this.__data__; - return _nativeCreate_default ? data[key] !== undefined : hasOwnProperty4.call(data, key); -} -var _hashHas_default = hashHas; -var HASH_UNDEFINED2 = "__lodash_hash_undefined__"; -function hashSet(key, value) { - var data = this.__data__; - this.size += this.has(key) ? 0 : 1; - data[key] = _nativeCreate_default && value === undefined ? HASH_UNDEFINED2 : value; - return this; -} -var _hashSet_default = hashSet; -function Hash(entries) { - var index = -1, length = entries == null ? 0 : entries.length; - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } -} -Hash.prototype.clear = _hashClear_default; -Hash.prototype["delete"] = _hashDelete_default; -Hash.prototype.get = _hashGet_default; -Hash.prototype.has = _hashHas_default; -Hash.prototype.set = _hashSet_default; -var _Hash_default = Hash; -function listCacheClear() { - this.__data__ = []; - this.size = 0; -} -var _listCacheClear_default = listCacheClear; -function eq(value, other) { - return value === other || value !== value && other !== other; -} -var eq_default = eq; -function assocIndexOf(array3, key) { - var length = array3.length; - while (length--) { - if (eq_default(array3[length][0], key)) { - return length; - } - } - return -1; -} -var _assocIndexOf_default = assocIndexOf; -var arrayProto = Array.prototype; -var splice = arrayProto.splice; -function listCacheDelete(key) { - var data = this.__data__, index = _assocIndexOf_default(data, key); - if (index < 0) { - return false; - } - var lastIndex = data.length - 1; - if (index == lastIndex) { - data.pop(); - } else { - splice.call(data, index, 1); - } - --this.size; - return true; -} -var _listCacheDelete_default = listCacheDelete; -function listCacheGet(key) { - var data = this.__data__, index = _assocIndexOf_default(data, key); - return index < 0 ? undefined : data[index][1]; -} -var _listCacheGet_default = listCacheGet; -function listCacheHas(key) { - return _assocIndexOf_default(this.__data__, key) > -1; -} -var _listCacheHas_default = listCacheHas; -function listCacheSet(key, value) { - var data = this.__data__, index = _assocIndexOf_default(data, key); - if (index < 0) { - ++this.size; - data.push([key, value]); - } else { - data[index][1] = value; - } - return this; -} -var _listCacheSet_default = listCacheSet; -function ListCache(entries) { - var index = -1, length = entries == null ? 0 : entries.length; - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } -} -ListCache.prototype.clear = _listCacheClear_default; -ListCache.prototype["delete"] = _listCacheDelete_default; -ListCache.prototype.get = _listCacheGet_default; -ListCache.prototype.has = _listCacheHas_default; -ListCache.prototype.set = _listCacheSet_default; -var _ListCache_default = ListCache; -var Map2 = _getNative_default(_root_default, "Map"); -var _Map_default = Map2; -function mapCacheClear() { - this.size = 0; - this.__data__ = { - hash: new _Hash_default, - map: new (_Map_default || _ListCache_default), - string: new _Hash_default - }; -} -var _mapCacheClear_default = mapCacheClear; -function isKeyable(value) { - var type = typeof value; - return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null; -} -var _isKeyable_default = isKeyable; -function getMapData(map2, key) { - var data = map2.__data__; - return _isKeyable_default(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map; -} -var _getMapData_default = getMapData; -function mapCacheDelete(key) { - var result = _getMapData_default(this, key)["delete"](key); - this.size -= result ? 1 : 0; - return result; -} -var _mapCacheDelete_default = mapCacheDelete; -function mapCacheGet(key) { - return _getMapData_default(this, key).get(key); -} -var _mapCacheGet_default = mapCacheGet; -function mapCacheHas(key) { - return _getMapData_default(this, key).has(key); -} -var _mapCacheHas_default = mapCacheHas; -function mapCacheSet(key, value) { - var data = _getMapData_default(this, key), size = data.size; - data.set(key, value); - this.size += data.size == size ? 0 : 1; - return this; -} -var _mapCacheSet_default = mapCacheSet; -function MapCache(entries) { - var index = -1, length = entries == null ? 0 : entries.length; - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } -} -MapCache.prototype.clear = _mapCacheClear_default; -MapCache.prototype["delete"] = _mapCacheDelete_default; -MapCache.prototype.get = _mapCacheGet_default; -MapCache.prototype.has = _mapCacheHas_default; -MapCache.prototype.set = _mapCacheSet_default; -var _MapCache_default = MapCache; -var FUNC_ERROR_TEXT = "Expected a function"; -function memoize(func, resolver) { - if (typeof func != "function" || resolver != null && typeof resolver != "function") { - throw new TypeError(FUNC_ERROR_TEXT); - } - var memoized = function() { - var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache; - if (cache.has(key)) { - return cache.get(key); - } - var result = func.apply(this, args); - memoized.cache = cache.set(key, result) || cache; - return result; - }; - memoized.cache = new (memoize.Cache || _MapCache_default); - return memoized; -} -memoize.Cache = _MapCache_default; -var memoize_default = memoize; -var CHUNK_SIZE = 2000; -function writeToStderr(data) { - if (process.stderr.destroyed) { - return; - } - for (let i = 0;i < data.length; i += CHUNK_SIZE) { - process.stderr.write(data.substring(i, i + CHUNK_SIZE)); - } -} -var parseDebugFilter = memoize_default((filterString) => { - if (!filterString || filterString.trim() === "") { - return null; - } - const filters = filterString.split(",").map((f) => f.trim()).filter(Boolean); - if (filters.length === 0) { - return null; - } - const hasExclusive = filters.some((f) => f.startsWith("!")); - const hasInclusive = filters.some((f) => !f.startsWith("!")); - if (hasExclusive && hasInclusive) { - return null; - } - const cleanFilters = filters.map((f) => f.replace(/^!/, "").toLowerCase()); - return { - include: hasExclusive ? [] : cleanFilters, - exclude: hasExclusive ? cleanFilters : [], - isExclusive: hasExclusive - }; -}); -function extractDebugCategories(message) { - const categories = []; - const mcpMatch = message.match(/^MCP server ["']([^"']+)["']/); - if (mcpMatch && mcpMatch[1]) { - categories.push("mcp"); - categories.push(mcpMatch[1].toLowerCase()); - } else { - const prefixMatch = message.match(/^([^:[]+):/); - if (prefixMatch && prefixMatch[1]) { - categories.push(prefixMatch[1].trim().toLowerCase()); - } - } - const bracketMatch = message.match(/^\[([^\]]+)]/); - if (bracketMatch && bracketMatch[1]) { - categories.push(bracketMatch[1].trim().toLowerCase()); - } - if (message.toLowerCase().includes("statsig event:")) { - categories.push("statsig"); - } - const secondaryMatch = message.match(/:\s*([^:]+?)(?:\s+(?:type|mode|status|event))?:/); - if (secondaryMatch && secondaryMatch[1]) { - const secondary = secondaryMatch[1].trim().toLowerCase(); - if (secondary.length < 30 && !secondary.includes(" ")) { - categories.push(secondary); - } - } - return Array.from(new Set(categories)); -} -function shouldShowDebugCategories(categories, filter) { - if (!filter) { - return true; - } - if (categories.length === 0) { - return false; - } - if (filter.isExclusive) { - return !categories.some((cat) => filter.exclude.includes(cat)); - } else { - return categories.some((cat) => filter.include.includes(cat)); - } -} -function shouldShowDebugMessage(message, filter) { - if (!filter) { - return true; - } - const categories = extractDebugCategories(message); - return shouldShowDebugCategories(categories, filter); -} -function getClaudeConfigHomeDir() { - return process.env.CLAUDE_CONFIG_DIR ?? join8(homedir11(), ".claude"); -} -function isEnvTruthy(envVar) { - if (!envVar) - return false; - if (typeof envVar === "boolean") - return envVar; - const normalizedValue = envVar.toLowerCase().trim(); - return ["1", "true", "yes", "on"].includes(normalizedValue); -} -var MAX_OUTPUT_LENGTH = 150000; -var DEFAULT_MAX_OUTPUT_LENGTH = 30000; -function createMaxOutputLengthValidator(name) { - return { - name, - default: DEFAULT_MAX_OUTPUT_LENGTH, - validate: (value) => { - if (!value) { - return { - effective: DEFAULT_MAX_OUTPUT_LENGTH, - status: "valid" - }; - } - const parsed = parseInt(value, 10); - if (isNaN(parsed) || parsed <= 0) { - return { - effective: DEFAULT_MAX_OUTPUT_LENGTH, - status: "invalid", - message: `Invalid value "${value}" (using default: ${DEFAULT_MAX_OUTPUT_LENGTH})` - }; - } - if (parsed > MAX_OUTPUT_LENGTH) { - return { - effective: MAX_OUTPUT_LENGTH, - status: "capped", - message: `Capped from ${parsed} to ${MAX_OUTPUT_LENGTH}` - }; - } - return { effective: parsed, status: "valid" }; - } - }; -} -var bashMaxOutputLengthValidator = createMaxOutputLengthValidator("BASH_MAX_OUTPUT_LENGTH"); -var taskMaxOutputLengthValidator = createMaxOutputLengthValidator("TASK_MAX_OUTPUT_LENGTH"); -var maxOutputTokensValidator = { - name: "CLAUDE_CODE_MAX_OUTPUT_TOKENS", - default: 32000, - validate: (value) => { - const MAX_OUTPUT_TOKENS = 64000; - const DEFAULT_MAX_OUTPUT_TOKENS = 32000; - if (!value) { - return { effective: DEFAULT_MAX_OUTPUT_TOKENS, status: "valid" }; - } - const parsed = parseInt(value, 10); - if (isNaN(parsed) || parsed <= 0) { - return { - effective: DEFAULT_MAX_OUTPUT_TOKENS, - status: "invalid", - message: `Invalid value "${value}" (using default: ${DEFAULT_MAX_OUTPUT_TOKENS})` - }; - } - if (parsed > MAX_OUTPUT_TOKENS) { - return { - effective: MAX_OUTPUT_TOKENS, - status: "capped", - message: `Capped from ${parsed} to ${MAX_OUTPUT_TOKENS}` - }; - } - return { effective: parsed, status: "valid" }; - } -}; -var CLAUDE_CODE_20250219_BETA_HEADER = "claude-code-20250219"; -var INTERLEAVED_THINKING_BETA_HEADER = "interleaved-thinking-2025-05-14"; -var FINE_GRAINED_TOOL_STREAMING_BETA_HEADER = "fine-grained-tool-streaming-2025-05-14"; -var SONNET_1M_BETA_HEADER = "context-1m-2025-08-07"; -var CONTEXT_MANAGEMENT_BETA_HEADER = "context-management-2025-06-27"; -var TOOL_EXAMPLES_BETA_HEADER = "tool-examples-2025-10-29"; -var TOOL_SEARCH_BETA_HEADER_3P = "tool-search-tool-2025-10-19"; -var BEDROCK_EXTRA_PARAMS_HEADERS = new Set([ - INTERLEAVED_THINKING_BETA_HEADER, - SONNET_1M_BETA_HEADER, - TOOL_SEARCH_BETA_HEADER_3P, - TOOL_EXAMPLES_BETA_HEADER -]); -var VERTEX_COUNT_TOKENS_ALLOWED_BETAS = new Set([ - CLAUDE_CODE_20250219_BETA_HEADER, - INTERLEAVED_THINKING_BETA_HEADER, - FINE_GRAINED_TOOL_STREAMING_BETA_HEADER, - CONTEXT_MANAGEMENT_BETA_HEADER -]); -function getInitialState() { - let resolvedCwd = ""; - if (typeof process !== "undefined" && typeof process.cwd === "function") { - resolvedCwd = realpathSync2(cwd()); - } - return { - originalCwd: resolvedCwd, - totalCostUSD: 0, - totalAPIDuration: 0, - totalAPIDurationWithoutRetries: 0, - totalToolDuration: 0, - startTime: Date.now(), - lastInteractionTime: Date.now(), - totalLinesAdded: 0, - totalLinesRemoved: 0, - hasUnknownModelCost: false, - cwd: resolvedCwd, - modelUsage: {}, - mainLoopModelOverride: undefined, - initialMainLoopModel: null, - modelStrings: null, - isInteractive: false, - clientType: "cli", - sessionIngressToken: undefined, - oauthTokenFromFd: undefined, - apiKeyFromFd: undefined, - flagSettingsPath: undefined, - allowedSettingSources: [ - "userSettings", - "projectSettings", - "localSettings", - "flagSettings", - "policySettings" - ], - meter: null, - sessionCounter: null, - locCounter: null, - prCounter: null, - commitCounter: null, - costCounter: null, - tokenCounter: null, - codeEditToolDecisionCounter: null, - activeTimeCounter: null, - sessionId: randomUUID(), - loggerProvider: null, - eventLogger: null, - meterProvider: null, - tracerProvider: null, - agentColorMap: new Map, - agentColorIndex: 0, - envVarValidators: [bashMaxOutputLengthValidator, maxOutputTokensValidator], - lastAPIRequest: null, - inMemoryErrorLog: [], - inlinePlugins: [], - sessionBypassPermissionsMode: false, - sessionPersistenceDisabled: false, - hasExitedPlanMode: false, - needsPlanModeExitAttachment: false, - hasExitedDelegateMode: false, - needsDelegateModeExitAttachment: false, - lspRecommendationShownThisSession: false, - initJsonSchema: null, - registeredHooks: null, - planSlugCache: new Map, - teleportedSessionInfo: null, - invokedSkills: new Map, - slowOperations: [], - sdkBetas: undefined - }; -} -var STATE = getInitialState(); -function getSessionId() { - return STATE.sessionId; -} -var MAX_SLOW_OPERATIONS = 10; -var SLOW_OPERATION_TTL_MS = 1e4; -function addSlowOperation(operation, durationMs) { - if (true) - return; - const now = Date.now(); - STATE.slowOperations = STATE.slowOperations.filter((op) => now - op.timestamp < SLOW_OPERATION_TTL_MS); - STATE.slowOperations.push({ operation, durationMs, timestamp: now }); - if (STATE.slowOperations.length > MAX_SLOW_OPERATIONS) { - STATE.slowOperations = STATE.slowOperations.slice(-MAX_SLOW_OPERATIONS); - } -} -function createBufferedWriter({ - writeFn, - flushIntervalMs = 1000, - maxBufferSize = 100, - immediateMode = false -}) { - let buffer = []; - let flushTimer = null; - function clearTimer() { - if (flushTimer) { - clearTimeout(flushTimer); - flushTimer = null; - } - } - function flush() { - if (buffer.length === 0) - return; - writeFn(buffer.join("")); - buffer = []; - clearTimer(); - } - function scheduleFlush() { - if (!flushTimer) { - flushTimer = setTimeout(flush, flushIntervalMs); - } - } - return { - write(content) { - if (immediateMode) { - writeFn(content); - return; - } - buffer.push(content); - scheduleFlush(); - if (buffer.length >= maxBufferSize) { - flush(); - } - }, - flush, - dispose() { - flush(); - } - }; -} -var cleanupFunctions = new Set; -function registerCleanup(cleanupFn) { - cleanupFunctions.add(cleanupFn); - return () => cleanupFunctions.delete(cleanupFn); -} -var SLOW_OPERATION_THRESHOLD_MS = Infinity; -function describeValue(value) { - if (value === null) - return "null"; - if (value === undefined) - return "undefined"; - if (Array.isArray(value)) - return `Array[${value.length}]`; - if (typeof value === "object") { - const keys = Object.keys(value); - return `Object{${keys.length} keys}`; - } - if (typeof value === "string") - return `string(${value.length} chars)`; - return typeof value; -} -function withSlowLogging(operation, fn) { - const startTime = performance.now(); - try { - return fn(); - } finally { - const duration3 = performance.now() - startTime; - if (duration3 > SLOW_OPERATION_THRESHOLD_MS) { - logForDebugging(`[SLOW OPERATION DETECTED] ${operation} (${duration3.toFixed(1)}ms)`); - addSlowOperation(operation, duration3); - } - } -} -function jsonStringify(value, replacer, space) { - const description = describeValue(value); - return withSlowLogging(`JSON.stringify(${description})`, () => JSON.stringify(value, replacer, space)); -} -var jsonParse = (text, reviver) => { - const length = typeof text === "string" ? text.length : 0; - return withSlowLogging(`JSON.parse(${length} chars)`, () => JSON.parse(text, reviver)); -}; -var isDebugMode = memoize_default(() => { - return isEnvTruthy(process.env.DEBUG) || isEnvTruthy(process.env.DEBUG_SDK) || process.argv.includes("--debug") || process.argv.includes("-d") || isDebugToStdErr() || process.argv.some((arg) => arg.startsWith("--debug=")); -}); -var getDebugFilter = memoize_default(() => { - const debugArg = process.argv.find((arg) => arg.startsWith("--debug=")); - if (!debugArg) { - return null; - } - const filterPattern = debugArg.substring("--debug=".length); - return parseDebugFilter(filterPattern); -}); -var isDebugToStdErr = memoize_default(() => { - return process.argv.includes("--debug-to-stderr") || process.argv.includes("-d2e"); -}); -function shouldLogDebugMessage(message) { - if (false) {} - if (typeof process === "undefined" || typeof process.versions === "undefined" || typeof process.versions.node === "undefined") { - return false; - } - const filter = getDebugFilter(); - return shouldShowDebugMessage(message, filter); -} -var hasFormattedOutput = false; -var debugWriter = null; -function getDebugWriter() { - if (!debugWriter) { - debugWriter = createBufferedWriter({ - writeFn: (content) => { - const path13 = getDebugLogPath(); - if (!getFsImplementation().existsSync(dirname4(path13))) { - getFsImplementation().mkdirSync(dirname4(path13)); - } - getFsImplementation().appendFileSync(path13, content); - updateLatestDebugLogSymlink(); - }, - flushIntervalMs: 1000, - maxBufferSize: 100, - immediateMode: isDebugMode() - }); - registerCleanup(async () => debugWriter?.dispose()); - } - return debugWriter; -} -function logForDebugging(message, { level } = { - level: "debug" -}) { - if (!shouldLogDebugMessage(message)) { - return; - } - if (hasFormattedOutput && message.includes(` -`)) { - message = jsonStringify(message); - } - const timestamp = new Date().toISOString(); - const output = `${timestamp} [${level.toUpperCase()}] ${message.trim()} -`; - if (isDebugToStdErr()) { - writeToStderr(output); - return; - } - getDebugWriter().write(output); -} -function getDebugLogPath() { - return process.env.CLAUDE_CODE_DEBUG_LOGS_DIR ?? join22(getClaudeConfigHomeDir(), "debug", `${getSessionId()}.txt`); -} -var updateLatestDebugLogSymlink = memoize_default(() => { - if (process.argv[2] === "--ripgrep") { - return; - } - try { - const debugLogPath = getDebugLogPath(); - const debugLogsDir = dirname4(debugLogPath); - const latestSymlinkPath = join22(debugLogsDir, "latest"); - if (!getFsImplementation().existsSync(debugLogsDir)) { - getFsImplementation().mkdirSync(debugLogsDir); - } - if (getFsImplementation().existsSync(latestSymlinkPath)) { - try { - getFsImplementation().unlinkSync(latestSymlinkPath); - } catch {} - } - getFsImplementation().symlinkSync(debugLogPath, latestSymlinkPath); - } catch {} -}); -function withSlowLogging2(operation, fn) { - const startTime = performance.now(); - try { - return fn(); - } finally { - const duration3 = performance.now() - startTime; - if (duration3 > SLOW_OPERATION_THRESHOLD_MS) { - logForDebugging(`[SLOW OPERATION DETECTED] fs.${operation} (${duration3.toFixed(1)}ms)`); - addSlowOperation(`fs.${operation}`, duration3); - } - } -} -var NodeFsOperations = { - cwd() { - return process.cwd(); - }, - existsSync(fsPath) { - return withSlowLogging2(`existsSync(${fsPath})`, () => fs3.existsSync(fsPath)); - }, - async stat(fsPath) { - return statPromise(fsPath); - }, - statSync(fsPath) { - return withSlowLogging2(`statSync(${fsPath})`, () => fs3.statSync(fsPath)); - }, - lstatSync(fsPath) { - return withSlowLogging2(`lstatSync(${fsPath})`, () => fs3.lstatSync(fsPath)); - }, - readFileSync(fsPath, options) { - return withSlowLogging2(`readFileSync(${fsPath})`, () => fs3.readFileSync(fsPath, { encoding: options.encoding })); - }, - readFileBytesSync(fsPath) { - return withSlowLogging2(`readFileBytesSync(${fsPath})`, () => fs3.readFileSync(fsPath)); - }, - readSync(fsPath, options) { - return withSlowLogging2(`readSync(${fsPath}, ${options.length} bytes)`, () => { - let fd = undefined; - try { - fd = fs3.openSync(fsPath, "r"); - const buffer = Buffer.alloc(options.length); - const bytesRead = fs3.readSync(fd, buffer, 0, options.length, 0); - return { buffer, bytesRead }; - } finally { - if (fd) - fs3.closeSync(fd); - } - }); - }, - appendFileSync(path13, data, options) { - return withSlowLogging2(`appendFileSync(${path13}, ${data.length} chars)`, () => { - if (!fs3.existsSync(path13) && options?.mode !== undefined) { - const fd = fs3.openSync(path13, "a", options.mode); - try { - fs3.appendFileSync(fd, data); - } finally { - fs3.closeSync(fd); - } - } else { - fs3.appendFileSync(path13, data); - } - }); - }, - copyFileSync(src, dest) { - return withSlowLogging2(`copyFileSync(${src} → ${dest})`, () => fs3.copyFileSync(src, dest)); - }, - unlinkSync(path13) { - return withSlowLogging2(`unlinkSync(${path13})`, () => fs3.unlinkSync(path13)); - }, - renameSync(oldPath, newPath) { - return withSlowLogging2(`renameSync(${oldPath} → ${newPath})`, () => fs3.renameSync(oldPath, newPath)); - }, - linkSync(target, path13) { - return withSlowLogging2(`linkSync(${target} → ${path13})`, () => fs3.linkSync(target, path13)); - }, - symlinkSync(target, path13) { - return withSlowLogging2(`symlinkSync(${target} → ${path13})`, () => fs3.symlinkSync(target, path13)); - }, - readlinkSync(path13) { - return withSlowLogging2(`readlinkSync(${path13})`, () => fs3.readlinkSync(path13)); - }, - realpathSync(path13) { - return withSlowLogging2(`realpathSync(${path13})`, () => fs3.realpathSync(path13)); - }, - mkdirSync(dirPath, options) { - return withSlowLogging2(`mkdirSync(${dirPath})`, () => { - if (!fs3.existsSync(dirPath)) { - const mkdirOptions = { - recursive: true - }; - if (options?.mode !== undefined) { - mkdirOptions.mode = options.mode; - } - fs3.mkdirSync(dirPath, mkdirOptions); - } - }); - }, - readdirSync(dirPath) { - return withSlowLogging2(`readdirSync(${dirPath})`, () => fs3.readdirSync(dirPath, { withFileTypes: true })); - }, - readdirStringSync(dirPath) { - return withSlowLogging2(`readdirStringSync(${dirPath})`, () => fs3.readdirSync(dirPath)); - }, - isDirEmptySync(dirPath) { - return withSlowLogging2(`isDirEmptySync(${dirPath})`, () => { - const files = this.readdirSync(dirPath); - return files.length === 0; - }); - }, - rmdirSync(dirPath) { - return withSlowLogging2(`rmdirSync(${dirPath})`, () => fs3.rmdirSync(dirPath)); - }, - rmSync(path13, options) { - return withSlowLogging2(`rmSync(${path13})`, () => fs3.rmSync(path13, options)); - }, - createWriteStream(path13) { - return fs3.createWriteStream(path13); - } -}; -var activeFs = NodeFsOperations; -function getFsImplementation() { - return activeFs; -} -class AbortError extends Error { -} -function isRunningWithBun() { - return process.versions.bun !== undefined; -} -var debugFilePath = null; -var initialized = false; -function getOrCreateDebugFile() { - if (initialized) { - return debugFilePath; - } - initialized = true; - if (!process.env.DEBUG_CLAUDE_AGENT_SDK) { - return null; - } - const debugDir = join32(getClaudeConfigHomeDir(), "debug"); - debugFilePath = join32(debugDir, `sdk-${randomUUID2()}.txt`); - if (!existsSync22(debugDir)) { - mkdirSync22(debugDir, { recursive: true }); - } - process.stderr.write(`SDK debug logs: ${debugFilePath} -`); - return debugFilePath; -} -function logForSdkDebugging(message) { - const path13 = getOrCreateDebugFile(); - if (!path13) { - return; - } - const timestamp = new Date().toISOString(); - const output = `${timestamp} ${message} -`; - appendFileSync22(path13, output); -} -function mergeSandboxIntoExtraArgs(extraArgs, sandbox) { - const effectiveExtraArgs = { ...extraArgs }; - if (sandbox) { - let settingsObj = { sandbox }; - if (effectiveExtraArgs.settings) { - try { - const existingSettings = jsonParse(effectiveExtraArgs.settings); - settingsObj = { ...existingSettings, sandbox }; - } catch {} - } - effectiveExtraArgs.settings = jsonStringify(settingsObj); - } - return effectiveExtraArgs; -} - -class ProcessTransport { - options; - process; - processStdin; - processStdout; - ready = false; - abortController; - exitError; - exitListeners = []; - processExitHandler; - abortHandler; - constructor(options) { - this.options = options; - this.abortController = options.abortController || createAbortController(); - this.initialize(); - } - getDefaultExecutable() { - return isRunningWithBun() ? "bun" : "node"; - } - spawnLocalProcess(spawnOptions) { - const { command, args, cwd: cwd2, env, signal } = spawnOptions; - const stderrMode = env.DEBUG_CLAUDE_AGENT_SDK || this.options.stderr ? "pipe" : "ignore"; - const childProcess = spawn4(command, args, { - cwd: cwd2, - stdio: ["pipe", "pipe", stderrMode], - signal, - env, - windowsHide: true - }); - if (env.DEBUG_CLAUDE_AGENT_SDK || this.options.stderr) { - childProcess.stderr.on("data", (data) => { - const message = data.toString(); - logForSdkDebugging(message); - if (this.options.stderr) { - this.options.stderr(message); - } - }); - } - const mappedProcess = { - stdin: childProcess.stdin, - stdout: childProcess.stdout, - get killed() { - return childProcess.killed; - }, - get exitCode() { - return childProcess.exitCode; - }, - kill: childProcess.kill.bind(childProcess), - on: childProcess.on.bind(childProcess), - once: childProcess.once.bind(childProcess), - off: childProcess.off.bind(childProcess) - }; - return mappedProcess; - } - initialize() { - try { - const { - additionalDirectories = [], - betas, - cwd: cwd2, - executable = this.getDefaultExecutable(), - executableArgs = [], - extraArgs = {}, - pathToClaudeCodeExecutable, - env = { ...process.env }, - maxThinkingTokens, - maxTurns, - maxBudgetUsd, - model, - fallbackModel, - jsonSchema, - permissionMode, - allowDangerouslySkipPermissions, - permissionPromptToolName, - continueConversation, - resume, - settingSources, - allowedTools = [], - disallowedTools = [], - tools, - mcpServers, - strictMcpConfig, - canUseTool, - includePartialMessages, - plugins, - sandbox - } = this.options; - const args = [ - "--output-format", - "stream-json", - "--verbose", - "--input-format", - "stream-json" - ]; - if (maxThinkingTokens !== undefined) { - args.push("--max-thinking-tokens", maxThinkingTokens.toString()); - } - if (maxTurns) - args.push("--max-turns", maxTurns.toString()); - if (maxBudgetUsd !== undefined) { - args.push("--max-budget-usd", maxBudgetUsd.toString()); - } - if (model) - args.push("--model", model); - if (betas && betas.length > 0) { - args.push("--betas", betas.join(",")); - } - if (jsonSchema) { - args.push("--json-schema", jsonStringify(jsonSchema)); - } - if (env.DEBUG_CLAUDE_AGENT_SDK) { - args.push("--debug-to-stderr"); - } - if (canUseTool) { - if (permissionPromptToolName) { - throw new Error("canUseTool callback cannot be used with permissionPromptToolName. Please use one or the other."); - } - args.push("--permission-prompt-tool", "stdio"); - } else if (permissionPromptToolName) { - args.push("--permission-prompt-tool", permissionPromptToolName); - } - if (continueConversation) - args.push("--continue"); - if (resume) - args.push("--resume", resume); - if (allowedTools.length > 0) { - args.push("--allowedTools", allowedTools.join(",")); - } - if (disallowedTools.length > 0) { - args.push("--disallowedTools", disallowedTools.join(",")); - } - if (tools !== undefined) { - if (Array.isArray(tools)) { - if (tools.length === 0) { - args.push("--tools", ""); - } else { - args.push("--tools", tools.join(",")); - } - } else { - args.push("--tools", "default"); - } - } - if (mcpServers && Object.keys(mcpServers).length > 0) { - args.push("--mcp-config", jsonStringify({ mcpServers })); - } - if (settingSources) { - args.push("--setting-sources", settingSources.join(",")); - } - if (strictMcpConfig) { - args.push("--strict-mcp-config"); - } - if (permissionMode) { - args.push("--permission-mode", permissionMode); - } - if (allowDangerouslySkipPermissions) { - args.push("--allow-dangerously-skip-permissions"); - } - if (fallbackModel) { - if (model && fallbackModel === model) { - throw new Error("Fallback model cannot be the same as the main model. Please specify a different model for fallbackModel option."); - } - args.push("--fallback-model", fallbackModel); - } - if (includePartialMessages) { - args.push("--include-partial-messages"); - } - for (const dir of additionalDirectories) { - args.push("--add-dir", dir); - } - if (plugins && plugins.length > 0) { - for (const plugin of plugins) { - if (plugin.type === "local") { - args.push("--plugin-dir", plugin.path); - } else { - throw new Error(`Unsupported plugin type: ${plugin.type}`); - } - } - } - if (this.options.forkSession) { - args.push("--fork-session"); - } - if (this.options.resumeSessionAt) { - args.push("--resume-session-at", this.options.resumeSessionAt); - } - if (this.options.persistSession === false) { - args.push("--no-session-persistence"); - } - const effectiveExtraArgs = mergeSandboxIntoExtraArgs(extraArgs ?? {}, sandbox); - for (const [flag, value] of Object.entries(effectiveExtraArgs)) { - if (value === null) { - args.push(`--${flag}`); - } else { - args.push(`--${flag}`, value); - } - } - if (!env.CLAUDE_CODE_ENTRYPOINT) { - env.CLAUDE_CODE_ENTRYPOINT = "sdk-ts"; - } - delete env.NODE_OPTIONS; - if (env.DEBUG_CLAUDE_AGENT_SDK) { - env.DEBUG = "1"; - } else { - delete env.DEBUG; - } - const isNative = isNativeBinary(pathToClaudeCodeExecutable); - const spawnCommand = isNative ? pathToClaudeCodeExecutable : executable; - const spawnArgs = isNative ? [...executableArgs, ...args] : [...executableArgs, pathToClaudeCodeExecutable, ...args]; - const spawnOptions = { - command: spawnCommand, - args: spawnArgs, - cwd: cwd2, - env, - signal: this.abortController.signal - }; - if (this.options.spawnClaudeCodeProcess) { - logForSdkDebugging(`Spawning Claude Code (custom): ${spawnCommand} ${spawnArgs.join(" ")}`); - this.process = this.options.spawnClaudeCodeProcess(spawnOptions); - } else { - const fs22 = getFsImplementation(); - if (!fs22.existsSync(pathToClaudeCodeExecutable)) { - const errorMessage = isNative ? `Claude Code native binary not found at ${pathToClaudeCodeExecutable}. Please ensure Claude Code is installed via native installer or specify a valid path with options.pathToClaudeCodeExecutable.` : `Claude Code executable not found at ${pathToClaudeCodeExecutable}. Is options.pathToClaudeCodeExecutable set?`; - throw new ReferenceError(errorMessage); - } - logForSdkDebugging(`Spawning Claude Code: ${spawnCommand} ${spawnArgs.join(" ")}`); - this.process = this.spawnLocalProcess(spawnOptions); - } - this.processStdin = this.process.stdin; - this.processStdout = this.process.stdout; - const cleanup = () => { - if (this.process && !this.process.killed) { - this.process.kill("SIGTERM"); - } - }; - this.processExitHandler = cleanup; - this.abortHandler = cleanup; - process.on("exit", this.processExitHandler); - this.abortController.signal.addEventListener("abort", this.abortHandler); - this.process.on("error", (error2) => { - this.ready = false; - if (this.abortController.signal.aborted) { - this.exitError = new AbortError("Claude Code process aborted by user"); - } else { - this.exitError = new Error(`Failed to spawn Claude Code process: ${error2.message}`); - logForSdkDebugging(this.exitError.message); - } - }); - this.process.on("exit", (code, signal) => { - this.ready = false; - if (this.abortController.signal.aborted) { - this.exitError = new AbortError("Claude Code process aborted by user"); - } else { - const error2 = this.getProcessExitError(code, signal); - if (error2) { - this.exitError = error2; - logForSdkDebugging(error2.message); - } - } - }); - this.ready = true; - } catch (error2) { - this.ready = false; - throw error2; - } - } - getProcessExitError(code, signal) { - if (code !== 0 && code !== null) { - return new Error(`Claude Code process exited with code ${code}`); - } else if (signal) { - return new Error(`Claude Code process terminated by signal ${signal}`); - } - return; - } - write(data) { - if (this.abortController.signal.aborted) { - throw new AbortError("Operation aborted"); - } - if (!this.ready || !this.processStdin) { - throw new Error("ProcessTransport is not ready for writing"); - } - if (this.process?.killed || this.process?.exitCode !== null) { - throw new Error("Cannot write to terminated process"); - } - if (this.exitError) { - throw new Error(`Cannot write to process that exited with error: ${this.exitError.message}`); - } - logForSdkDebugging(`[ProcessTransport] Writing to stdin: ${data.substring(0, 100)}`); - try { - const written = this.processStdin.write(data); - if (!written) { - logForSdkDebugging("[ProcessTransport] Write buffer full, data queued"); - } - } catch (error2) { - this.ready = false; - throw new Error(`Failed to write to process stdin: ${error2.message}`); - } - } - close() { - if (this.processStdin) { - this.processStdin.end(); - this.processStdin = undefined; - } - if (this.abortHandler) { - this.abortController.signal.removeEventListener("abort", this.abortHandler); - this.abortHandler = undefined; - } - for (const { handler } of this.exitListeners) { - this.process?.off("exit", handler); - } - this.exitListeners = []; - if (this.process && !this.process.killed) { - this.process.kill("SIGTERM"); - setTimeout(() => { - if (this.process && !this.process.killed) { - this.process.kill("SIGKILL"); - } - }, 5000); - } - this.ready = false; - if (this.processExitHandler) { - process.off("exit", this.processExitHandler); - this.processExitHandler = undefined; - } - } - isReady() { - return this.ready; - } - async* readMessages() { - if (!this.processStdout) { - throw new Error("ProcessTransport output stream not available"); - } - const rl = createInterface({ input: this.processStdout }); - try { - for await (const line of rl) { - if (line.trim()) { - const message = jsonParse(line); - yield message; - } - } - await this.waitForExit(); - } catch (error2) { - throw error2; - } finally { - rl.close(); - } - } - endInput() { - if (this.processStdin) { - this.processStdin.end(); - } - } - getInputStream() { - return this.processStdin; - } - onExit(callback) { - if (!this.process) - return () => {}; - const handler = (code, signal) => { - const error2 = this.getProcessExitError(code, signal); - callback(error2); - }; - this.process.on("exit", handler); - this.exitListeners.push({ callback, handler }); - return () => { - if (this.process) { - this.process.off("exit", handler); - } - const index = this.exitListeners.findIndex((l) => l.handler === handler); - if (index !== -1) { - this.exitListeners.splice(index, 1); - } - }; - } - async waitForExit() { - if (!this.process) { - if (this.exitError) { - throw this.exitError; - } - return; - } - if (this.process.exitCode !== null || this.process.killed) { - if (this.exitError) { - throw this.exitError; - } - return; - } - return new Promise((resolve, reject) => { - const exitHandler = (code, signal) => { - if (this.abortController.signal.aborted) { - reject(new AbortError("Operation aborted")); - return; - } - const error2 = this.getProcessExitError(code, signal); - if (error2) { - reject(error2); - } else { - resolve(); - } - }; - this.process.once("exit", exitHandler); - const errorHandler2 = (error2) => { - this.process.off("exit", exitHandler); - reject(error2); - }; - this.process.once("error", errorHandler2); - this.process.once("exit", () => { - this.process.off("error", errorHandler2); - }); - }); - } -} -function isNativeBinary(executablePath) { - const jsExtensions = [".js", ".mjs", ".tsx", ".ts", ".jsx"]; - return !jsExtensions.some((ext) => executablePath.endsWith(ext)); -} - -class Stream { - returned; - queue = []; - readResolve; - readReject; - isDone = false; - hasError; - started = false; - constructor(returned) { - this.returned = returned; - } - [Symbol.asyncIterator]() { - if (this.started) { - throw new Error("Stream can only be iterated once"); - } - this.started = true; - return this; - } - next() { - if (this.queue.length > 0) { - return Promise.resolve({ - done: false, - value: this.queue.shift() - }); - } - if (this.isDone) { - return Promise.resolve({ done: true, value: undefined }); - } - if (this.hasError) { - return Promise.reject(this.hasError); - } - return new Promise((resolve, reject) => { - this.readResolve = resolve; - this.readReject = reject; - }); - } - enqueue(value) { - if (this.readResolve) { - const resolve = this.readResolve; - this.readResolve = undefined; - this.readReject = undefined; - resolve({ done: false, value }); - } else { - this.queue.push(value); - } - } - done() { - this.isDone = true; - if (this.readResolve) { - const resolve = this.readResolve; - this.readResolve = undefined; - this.readReject = undefined; - resolve({ done: true, value: undefined }); - } - } - error(error2) { - this.hasError = error2; - if (this.readReject) { - const reject = this.readReject; - this.readResolve = undefined; - this.readReject = undefined; - reject(error2); - } - } - return() { - this.isDone = true; - if (this.returned) { - this.returned(); - } - return Promise.resolve({ done: true, value: undefined }); - } -} - -class SdkControlServerTransport { - sendMcpMessage; - isClosed = false; - constructor(sendMcpMessage) { - this.sendMcpMessage = sendMcpMessage; - } - onclose; - onerror; - onmessage; - async start() {} - async send(message) { - if (this.isClosed) { - throw new Error("Transport is closed"); - } - this.sendMcpMessage(message); - } - async close() { - if (this.isClosed) { - return; - } - this.isClosed = true; - this.onclose?.(); - } -} - -class Query { - transport; - isSingleUserTurn; - canUseTool; - hooks; - abortController; - jsonSchema; - initConfig; - pendingControlResponses = new Map; - cleanupPerformed = false; - sdkMessages; - inputStream = new Stream; - initialization; - cancelControllers = new Map; - hookCallbacks = new Map; - nextCallbackId = 0; - sdkMcpTransports = new Map; - sdkMcpServerInstances = new Map; - pendingMcpResponses = new Map; - firstResultReceivedResolve; - firstResultReceived = false; - hasBidirectionalNeeds() { - return this.sdkMcpTransports.size > 0 || this.hooks !== undefined && Object.keys(this.hooks).length > 0 || this.canUseTool !== undefined; - } - constructor(transport, isSingleUserTurn, canUseTool, hooks, abortController, sdkMcpServers = new Map, jsonSchema, initConfig) { - this.transport = transport; - this.isSingleUserTurn = isSingleUserTurn; - this.canUseTool = canUseTool; - this.hooks = hooks; - this.abortController = abortController; - this.jsonSchema = jsonSchema; - this.initConfig = initConfig; - for (const [name, server] of sdkMcpServers) { - this.connectSdkMcpServer(name, server); - } - this.sdkMessages = this.readSdkMessages(); - this.readMessages(); - this.initialization = this.initialize(); - this.initialization.catch(() => {}); - } - setError(error2) { - this.inputStream.error(error2); - } - cleanup(error2) { - if (this.cleanupPerformed) - return; - this.cleanupPerformed = true; - try { - this.transport.close(); - this.pendingControlResponses.clear(); - this.pendingMcpResponses.clear(); - this.cancelControllers.clear(); - this.hookCallbacks.clear(); - for (const transport of this.sdkMcpTransports.values()) { - try { - transport.close(); - } catch {} - } - this.sdkMcpTransports.clear(); - if (error2) { - this.inputStream.error(error2); - } else { - this.inputStream.done(); - } - } catch (_error) {} - } - next(...[value]) { - return this.sdkMessages.next(...[value]); - } - return(value) { - return this.sdkMessages.return(value); - } - throw(e) { - return this.sdkMessages.throw(e); - } - [Symbol.asyncIterator]() { - return this.sdkMessages; - } - [Symbol.asyncDispose]() { - return this.sdkMessages[Symbol.asyncDispose](); - } - async readMessages() { - try { - for await (const message of this.transport.readMessages()) { - if (message.type === "control_response") { - const handler = this.pendingControlResponses.get(message.response.request_id); - if (handler) { - handler(message.response); - } - continue; - } else if (message.type === "control_request") { - this.handleControlRequest(message); - continue; - } else if (message.type === "control_cancel_request") { - this.handleControlCancelRequest(message); - continue; - } else if (message.type === "keep_alive") { - continue; - } - if (message.type === "result") { - this.firstResultReceived = true; - if (this.firstResultReceivedResolve) { - this.firstResultReceivedResolve(); - } - if (this.isSingleUserTurn) { - logForDebugging(`[Query.readMessages] First result received for single-turn query, closing stdin`); - this.transport.endInput(); - } - } - this.inputStream.enqueue(message); - } - if (this.firstResultReceivedResolve) { - this.firstResultReceivedResolve(); - } - this.inputStream.done(); - this.cleanup(); - } catch (error2) { - if (this.firstResultReceivedResolve) { - this.firstResultReceivedResolve(); - } - this.inputStream.error(error2); - this.cleanup(error2); - } - } - async handleControlRequest(request) { - const controller = new AbortController; - this.cancelControllers.set(request.request_id, controller); - try { - const response = await this.processControlRequest(request, controller.signal); - const controlResponse = { - type: "control_response", - response: { - subtype: "success", - request_id: request.request_id, - response - } - }; - await Promise.resolve(this.transport.write(jsonStringify(controlResponse) + ` -`)); - } catch (error2) { - const controlErrorResponse = { - type: "control_response", - response: { - subtype: "error", - request_id: request.request_id, - error: error2.message || String(error2) - } - }; - await Promise.resolve(this.transport.write(jsonStringify(controlErrorResponse) + ` -`)); - } finally { - this.cancelControllers.delete(request.request_id); - } - } - handleControlCancelRequest(request) { - const controller = this.cancelControllers.get(request.request_id); - if (controller) { - controller.abort(); - this.cancelControllers.delete(request.request_id); - } - } - async processControlRequest(request, signal) { - if (request.request.subtype === "can_use_tool") { - if (!this.canUseTool) { - throw new Error("canUseTool callback is not provided."); - } - const result = await this.canUseTool(request.request.tool_name, request.request.input, { - signal, - suggestions: request.request.permission_suggestions, - blockedPath: request.request.blocked_path, - decisionReason: request.request.decision_reason, - toolUseID: request.request.tool_use_id, - agentID: request.request.agent_id - }); - return { - ...result, - toolUseID: request.request.tool_use_id - }; - } else if (request.request.subtype === "hook_callback") { - const result = await this.handleHookCallbacks(request.request.callback_id, request.request.input, request.request.tool_use_id, signal); - return result; - } else if (request.request.subtype === "mcp_message") { - const mcpRequest = request.request; - const transport = this.sdkMcpTransports.get(mcpRequest.server_name); - if (!transport) { - throw new Error(`SDK MCP server not found: ${mcpRequest.server_name}`); - } - if ("method" in mcpRequest.message && "id" in mcpRequest.message && mcpRequest.message.id !== null) { - const response = await this.handleMcpControlRequest(mcpRequest.server_name, mcpRequest, transport); - return { mcp_response: response }; - } else { - if (transport.onmessage) { - transport.onmessage(mcpRequest.message); - } - return { mcp_response: { jsonrpc: "2.0", result: {}, id: 0 } }; - } - } - throw new Error("Unsupported control request subtype: " + request.request.subtype); - } - async* readSdkMessages() { - for await (const message of this.inputStream) { - yield message; - } - } - async initialize() { - let hooks; - if (this.hooks) { - hooks = {}; - for (const [event, matchers] of Object.entries(this.hooks)) { - if (matchers.length > 0) { - hooks[event] = matchers.map((matcher) => { - const callbackIds = []; - for (const callback of matcher.hooks) { - const callbackId = `hook_${this.nextCallbackId++}`; - this.hookCallbacks.set(callbackId, callback); - callbackIds.push(callbackId); - } - return { - matcher: matcher.matcher, - hookCallbackIds: callbackIds, - timeout: matcher.timeout - }; - }); - } - } - } - const sdkMcpServers = this.sdkMcpTransports.size > 0 ? Array.from(this.sdkMcpTransports.keys()) : undefined; - const initRequest = { - subtype: "initialize", - hooks, - sdkMcpServers, - jsonSchema: this.jsonSchema, - systemPrompt: this.initConfig?.systemPrompt, - appendSystemPrompt: this.initConfig?.appendSystemPrompt, - agents: this.initConfig?.agents - }; - const response = await this.request(initRequest); - return response.response; - } - async interrupt() { - await this.request({ - subtype: "interrupt" - }); - } - async setPermissionMode(mode) { - await this.request({ - subtype: "set_permission_mode", - mode - }); - } - async setModel(model) { - await this.request({ - subtype: "set_model", - model - }); - } - async setMaxThinkingTokens(maxThinkingTokens) { - await this.request({ - subtype: "set_max_thinking_tokens", - max_thinking_tokens: maxThinkingTokens - }); - } - async rewindFiles(userMessageId, options) { - const response = await this.request({ - subtype: "rewind_files", - user_message_id: userMessageId, - dry_run: options?.dryRun - }); - return response.response; - } - async processPendingPermissionRequests(pendingPermissionRequests) { - for (const request of pendingPermissionRequests) { - if (request.request.subtype === "can_use_tool") { - this.handleControlRequest(request).catch(() => {}); - } - } - } - request(request) { - const requestId = Math.random().toString(36).substring(2, 15); - const sdkRequest = { - request_id: requestId, - type: "control_request", - request - }; - return new Promise((resolve, reject) => { - this.pendingControlResponses.set(requestId, (response) => { - if (response.subtype === "success") { - resolve(response); - } else { - reject(new Error(response.error)); - if (response.pending_permission_requests) { - this.processPendingPermissionRequests(response.pending_permission_requests); - } - } - }); - Promise.resolve(this.transport.write(jsonStringify(sdkRequest) + ` -`)); - }); - } - async supportedCommands() { - return (await this.initialization).commands; - } - async supportedModels() { - return (await this.initialization).models; - } - async mcpServerStatus() { - const response = await this.request({ - subtype: "mcp_status" - }); - const mcpStatusResponse = response.response; - return mcpStatusResponse.mcpServers; - } - async setMcpServers(servers) { - const sdkServers = {}; - const processServers = {}; - for (const [name, config2] of Object.entries(servers)) { - if (config2.type === "sdk" && "instance" in config2) { - sdkServers[name] = config2.instance; - } else { - processServers[name] = config2; - } - } - const currentSdkNames = new Set(this.sdkMcpServerInstances.keys()); - const newSdkNames = new Set(Object.keys(sdkServers)); - for (const name of currentSdkNames) { - if (!newSdkNames.has(name)) { - await this.disconnectSdkMcpServer(name); - } - } - for (const [name, server] of Object.entries(sdkServers)) { - if (!currentSdkNames.has(name)) { - this.connectSdkMcpServer(name, server); - } - } - const sdkServerConfigs = {}; - for (const name of Object.keys(sdkServers)) { - sdkServerConfigs[name] = { type: "sdk", name }; - } - const response = await this.request({ - subtype: "mcp_set_servers", - servers: { ...processServers, ...sdkServerConfigs } - }); - return response.response; - } - async accountInfo() { - return (await this.initialization).account; - } - async streamInput(stream) { - logForDebugging(`[Query.streamInput] Starting to process input stream`); - try { - let messageCount = 0; - for await (const message of stream) { - messageCount++; - logForDebugging(`[Query.streamInput] Processing message ${messageCount}: ${message.type}`); - if (this.abortController?.signal.aborted) - break; - await Promise.resolve(this.transport.write(jsonStringify(message) + ` -`)); - } - logForDebugging(`[Query.streamInput] Finished processing ${messageCount} messages from input stream`); - if (messageCount > 0 && this.hasBidirectionalNeeds()) { - logForDebugging(`[Query.streamInput] Has bidirectional needs, waiting for first result`); - await this.waitForFirstResult(); - } - logForDebugging(`[Query] Calling transport.endInput() to close stdin to CLI process`); - this.transport.endInput(); - } catch (error2) { - if (!(error2 instanceof AbortError)) { - throw error2; - } - } - } - waitForFirstResult() { - if (this.firstResultReceived) { - logForDebugging(`[Query.waitForFirstResult] Result already received, returning immediately`); - return Promise.resolve(); - } - return new Promise((resolve) => { - if (this.abortController?.signal.aborted) { - resolve(); - return; - } - this.abortController?.signal.addEventListener("abort", () => resolve(), { - once: true - }); - this.firstResultReceivedResolve = resolve; - }); - } - handleHookCallbacks(callbackId, input, toolUseID, abortSignal) { - const callback = this.hookCallbacks.get(callbackId); - if (!callback) { - throw new Error(`No hook callback found for ID: ${callbackId}`); - } - return callback(input, toolUseID, { - signal: abortSignal - }); - } - connectSdkMcpServer(name, server) { - const sdkTransport = new SdkControlServerTransport((message) => this.sendMcpServerMessageToCli(name, message)); - this.sdkMcpTransports.set(name, sdkTransport); - this.sdkMcpServerInstances.set(name, server); - server.connect(sdkTransport); - } - async disconnectSdkMcpServer(name) { - const transport = this.sdkMcpTransports.get(name); - if (transport) { - await transport.close(); - this.sdkMcpTransports.delete(name); - } - this.sdkMcpServerInstances.delete(name); - } - sendMcpServerMessageToCli(serverName, message) { - if ("id" in message && message.id !== null && message.id !== undefined) { - const key = `${serverName}:${message.id}`; - const pending = this.pendingMcpResponses.get(key); - if (pending) { - pending.resolve(message); - this.pendingMcpResponses.delete(key); - return; - } - } - const controlRequest = { - type: "control_request", - request_id: randomUUID3(), - request: { - subtype: "mcp_message", - server_name: serverName, - message - } - }; - this.transport.write(jsonStringify(controlRequest) + ` -`); - } - handleMcpControlRequest(serverName, mcpRequest, transport) { - const messageId = "id" in mcpRequest.message ? mcpRequest.message.id : null; - const key = `${serverName}:${messageId}`; - return new Promise((resolve, reject) => { - const cleanup = () => { - this.pendingMcpResponses.delete(key); - }; - const resolveAndCleanup = (response) => { - cleanup(); - resolve(response); - }; - const rejectAndCleanup = (error2) => { - cleanup(); - reject(error2); - }; - this.pendingMcpResponses.set(key, { - resolve: resolveAndCleanup, - reject: rejectAndCleanup - }); - if (transport.onmessage) { - transport.onmessage(mcpRequest.message); - } else { - cleanup(); - reject(new Error("No message handler registered")); - return; - } - }); - } -} -var util; -(function(util2) { - util2.assertEqual = (_) => {}; - function assertIs2(_arg) {} - util2.assertIs = assertIs2; - function assertNever2(_x) { - throw new Error; - } - util2.assertNever = assertNever2; - util2.arrayToEnum = (items) => { - const obj = {}; - for (const item of items) { - obj[item] = item; - } - return obj; - }; - util2.getValidEnumValues = (obj) => { - const validKeys = util2.objectKeys(obj).filter((k) => typeof obj[obj[k]] !== "number"); - const filtered = {}; - for (const k of validKeys) { - filtered[k] = obj[k]; - } - return util2.objectValues(filtered); - }; - util2.objectValues = (obj) => { - return util2.objectKeys(obj).map(function(e) { - return obj[e]; - }); - }; - util2.objectKeys = typeof Object.keys === "function" ? (obj) => Object.keys(obj) : (object4) => { - const keys = []; - for (const key in object4) { - if (Object.prototype.hasOwnProperty.call(object4, key)) { - keys.push(key); - } - } - return keys; - }; - util2.find = (arr, checker) => { - for (const item of arr) { - if (checker(item)) - return item; - } - return; - }; - util2.isInteger = typeof Number.isInteger === "function" ? (val) => Number.isInteger(val) : (val) => typeof val === "number" && Number.isFinite(val) && Math.floor(val) === val; - function joinValues2(array3, separator = " | ") { - return array3.map((val) => typeof val === "string" ? `'${val}'` : val).join(separator); - } - util2.joinValues = joinValues2; - util2.jsonStringifyReplacer = (_, value) => { - if (typeof value === "bigint") { - return value.toString(); - } - return value; - }; -})(util || (util = {})); -var objectUtil; -(function(objectUtil2) { - objectUtil2.mergeShapes = (first, second) => { - return { - ...first, - ...second - }; - }; -})(objectUtil || (objectUtil = {})); -var ZodParsedType = util.arrayToEnum([ - "string", - "nan", - "number", - "integer", - "float", - "boolean", - "date", - "bigint", - "symbol", - "function", - "undefined", - "null", - "array", - "object", - "unknown", - "promise", - "void", - "never", - "map", - "set" -]); -var getParsedType2 = (data) => { - const t = typeof data; - switch (t) { - case "undefined": - return ZodParsedType.undefined; - case "string": - return ZodParsedType.string; - case "number": - return Number.isNaN(data) ? ZodParsedType.nan : ZodParsedType.number; - case "boolean": - return ZodParsedType.boolean; - case "function": - return ZodParsedType.function; - case "bigint": - return ZodParsedType.bigint; - case "symbol": - return ZodParsedType.symbol; - case "object": - if (Array.isArray(data)) { - return ZodParsedType.array; - } - if (data === null) { - return ZodParsedType.null; - } - if (data.then && typeof data.then === "function" && data.catch && typeof data.catch === "function") { - return ZodParsedType.promise; - } - if (typeof Map !== "undefined" && data instanceof Map) { - return ZodParsedType.map; - } - if (typeof Set !== "undefined" && data instanceof Set) { - return ZodParsedType.set; - } - if (typeof Date !== "undefined" && data instanceof Date) { - return ZodParsedType.date; - } - return ZodParsedType.object; - default: - return ZodParsedType.unknown; - } -}; -var ZodIssueCode = util.arrayToEnum([ - "invalid_type", - "invalid_literal", - "custom", - "invalid_union", - "invalid_union_discriminator", - "invalid_enum_value", - "unrecognized_keys", - "invalid_arguments", - "invalid_return_type", - "invalid_date", - "invalid_string", - "too_small", - "too_big", - "invalid_intersection_types", - "not_multiple_of", - "not_finite" -]); - -class ZodError2 extends Error { - get errors() { - return this.issues; - } - constructor(issues) { - super(); - this.issues = []; - this.addIssue = (sub) => { - this.issues = [...this.issues, sub]; - }; - this.addIssues = (subs = []) => { - this.issues = [...this.issues, ...subs]; - }; - const actualProto = new.target.prototype; - if (Object.setPrototypeOf) { - Object.setPrototypeOf(this, actualProto); - } else { - this.__proto__ = actualProto; - } - this.name = "ZodError"; - this.issues = issues; - } - format(_mapper) { - const mapper = _mapper || function(issue2) { - return issue2.message; - }; - const fieldErrors = { _errors: [] }; - const processError = (error2) => { - for (const issue2 of error2.issues) { - if (issue2.code === "invalid_union") { - issue2.unionErrors.map(processError); - } else if (issue2.code === "invalid_return_type") { - processError(issue2.returnTypeError); - } else if (issue2.code === "invalid_arguments") { - processError(issue2.argumentsError); - } else if (issue2.path.length === 0) { - fieldErrors._errors.push(mapper(issue2)); - } else { - let curr = fieldErrors; - let i = 0; - while (i < issue2.path.length) { - const el = issue2.path[i]; - const terminal = i === issue2.path.length - 1; - if (!terminal) { - curr[el] = curr[el] || { _errors: [] }; - } else { - curr[el] = curr[el] || { _errors: [] }; - curr[el]._errors.push(mapper(issue2)); - } - curr = curr[el]; - i++; - } - } - } - }; - processError(this); - return fieldErrors; - } - static assert(value) { - if (!(value instanceof ZodError2)) { - throw new Error(`Not a ZodError: ${value}`); - } - } - toString() { - return this.message; - } - get message() { - return JSON.stringify(this.issues, util.jsonStringifyReplacer, 2); - } - get isEmpty() { - return this.issues.length === 0; - } - flatten(mapper = (issue2) => issue2.message) { - const fieldErrors = {}; - const formErrors = []; - for (const sub of this.issues) { - if (sub.path.length > 0) { - const firstEl = sub.path[0]; - fieldErrors[firstEl] = fieldErrors[firstEl] || []; - fieldErrors[firstEl].push(mapper(sub)); - } else { - formErrors.push(mapper(sub)); - } - } - return { formErrors, fieldErrors }; - } - get formErrors() { - return this.flatten(); - } -} -ZodError2.create = (issues) => { - const error2 = new ZodError2(issues); - return error2; -}; -var errorMap = (issue2, _ctx) => { - let message; - switch (issue2.code) { - case ZodIssueCode.invalid_type: - if (issue2.received === ZodParsedType.undefined) { - message = "Required"; - } else { - message = `Expected ${issue2.expected}, received ${issue2.received}`; - } - break; - case ZodIssueCode.invalid_literal: - message = `Invalid literal value, expected ${JSON.stringify(issue2.expected, util.jsonStringifyReplacer)}`; - break; - case ZodIssueCode.unrecognized_keys: - message = `Unrecognized key(s) in object: ${util.joinValues(issue2.keys, ", ")}`; - break; - case ZodIssueCode.invalid_union: - message = `Invalid input`; - break; - case ZodIssueCode.invalid_union_discriminator: - message = `Invalid discriminator value. Expected ${util.joinValues(issue2.options)}`; - break; - case ZodIssueCode.invalid_enum_value: - message = `Invalid enum value. Expected ${util.joinValues(issue2.options)}, received '${issue2.received}'`; - break; - case ZodIssueCode.invalid_arguments: - message = `Invalid function arguments`; - break; - case ZodIssueCode.invalid_return_type: - message = `Invalid function return type`; - break; - case ZodIssueCode.invalid_date: - message = `Invalid date`; - break; - case ZodIssueCode.invalid_string: - if (typeof issue2.validation === "object") { - if ("includes" in issue2.validation) { - message = `Invalid input: must include "${issue2.validation.includes}"`; - if (typeof issue2.validation.position === "number") { - message = `${message} at one or more positions greater than or equal to ${issue2.validation.position}`; - } - } else if ("startsWith" in issue2.validation) { - message = `Invalid input: must start with "${issue2.validation.startsWith}"`; - } else if ("endsWith" in issue2.validation) { - message = `Invalid input: must end with "${issue2.validation.endsWith}"`; - } else { - util.assertNever(issue2.validation); - } - } else if (issue2.validation !== "regex") { - message = `Invalid ${issue2.validation}`; - } else { - message = "Invalid"; - } - break; - case ZodIssueCode.too_small: - if (issue2.type === "array") - message = `Array must contain ${issue2.exact ? "exactly" : issue2.inclusive ? `at least` : `more than`} ${issue2.minimum} element(s)`; - else if (issue2.type === "string") - message = `String must contain ${issue2.exact ? "exactly" : issue2.inclusive ? `at least` : `over`} ${issue2.minimum} character(s)`; - else if (issue2.type === "number") - message = `Number must be ${issue2.exact ? `exactly equal to ` : issue2.inclusive ? `greater than or equal to ` : `greater than `}${issue2.minimum}`; - else if (issue2.type === "bigint") - message = `Number must be ${issue2.exact ? `exactly equal to ` : issue2.inclusive ? `greater than or equal to ` : `greater than `}${issue2.minimum}`; - else if (issue2.type === "date") - message = `Date must be ${issue2.exact ? `exactly equal to ` : issue2.inclusive ? `greater than or equal to ` : `greater than `}${new Date(Number(issue2.minimum))}`; - else - message = "Invalid input"; - break; - case ZodIssueCode.too_big: - if (issue2.type === "array") - message = `Array must contain ${issue2.exact ? `exactly` : issue2.inclusive ? `at most` : `less than`} ${issue2.maximum} element(s)`; - else if (issue2.type === "string") - message = `String must contain ${issue2.exact ? `exactly` : issue2.inclusive ? `at most` : `under`} ${issue2.maximum} character(s)`; - else if (issue2.type === "number") - message = `Number must be ${issue2.exact ? `exactly` : issue2.inclusive ? `less than or equal to` : `less than`} ${issue2.maximum}`; - else if (issue2.type === "bigint") - message = `BigInt must be ${issue2.exact ? `exactly` : issue2.inclusive ? `less than or equal to` : `less than`} ${issue2.maximum}`; - else if (issue2.type === "date") - message = `Date must be ${issue2.exact ? `exactly` : issue2.inclusive ? `smaller than or equal to` : `smaller than`} ${new Date(Number(issue2.maximum))}`; - else - message = "Invalid input"; - break; - case ZodIssueCode.custom: - message = `Invalid input`; - break; - case ZodIssueCode.invalid_intersection_types: - message = `Intersection results could not be merged`; - break; - case ZodIssueCode.not_multiple_of: - message = `Number must be a multiple of ${issue2.multipleOf}`; - break; - case ZodIssueCode.not_finite: - message = "Number must be finite"; - break; - default: - message = _ctx.defaultError; - util.assertNever(issue2); - } - return { message }; -}; -var en_default2 = errorMap; -var overrideErrorMap = en_default2; -function getErrorMap() { - return overrideErrorMap; -} -var makeIssue = (params) => { - const { data, path: path13, errorMaps, issueData } = params; - const fullPath = [...path13, ...issueData.path || []]; - const fullIssue = { - ...issueData, - path: fullPath - }; - if (issueData.message !== undefined) { - return { - ...issueData, - path: fullPath, - message: issueData.message - }; - } - let errorMessage = ""; - const maps = errorMaps.filter((m) => !!m).slice().reverse(); - for (const map2 of maps) { - errorMessage = map2(fullIssue, { data, defaultError: errorMessage }).message; - } - return { - ...issueData, - path: fullPath, - message: errorMessage - }; -}; -function addIssueToContext(ctx, issueData) { - const overrideMap = getErrorMap(); - const issue2 = makeIssue({ - issueData, - data: ctx.data, - path: ctx.path, - errorMaps: [ - ctx.common.contextualErrorMap, - ctx.schemaErrorMap, - overrideMap, - overrideMap === en_default2 ? undefined : en_default2 - ].filter((x) => !!x) - }); - ctx.common.issues.push(issue2); -} - -class ParseStatus { - constructor() { - this.value = "valid"; - } - dirty() { - if (this.value === "valid") - this.value = "dirty"; - } - abort() { - if (this.value !== "aborted") - this.value = "aborted"; - } - static mergeArray(status, results) { - const arrayValue = []; - for (const s of results) { - if (s.status === "aborted") - return INVALID; - if (s.status === "dirty") - status.dirty(); - arrayValue.push(s.value); - } - return { status: status.value, value: arrayValue }; - } - static async mergeObjectAsync(status, pairs) { - const syncPairs = []; - for (const pair of pairs) { - const key = await pair.key; - const value = await pair.value; - syncPairs.push({ - key, - value - }); - } - return ParseStatus.mergeObjectSync(status, syncPairs); - } - static mergeObjectSync(status, pairs) { - const finalObject = {}; - for (const pair of pairs) { - const { key, value } = pair; - if (key.status === "aborted") - return INVALID; - if (value.status === "aborted") - return INVALID; - if (key.status === "dirty") - status.dirty(); - if (value.status === "dirty") - status.dirty(); - if (key.value !== "__proto__" && (typeof value.value !== "undefined" || pair.alwaysSet)) { - finalObject[key.value] = value.value; - } - } - return { status: status.value, value: finalObject }; - } -} -var INVALID = Object.freeze({ - status: "aborted" -}); -var DIRTY = (value) => ({ status: "dirty", value }); -var OK = (value) => ({ status: "valid", value }); -var isAborted = (x) => x.status === "aborted"; -var isDirty = (x) => x.status === "dirty"; -var isValid = (x) => x.status === "valid"; -var isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise; -var errorUtil; -(function(errorUtil2) { - errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {}; - errorUtil2.toString = (message) => typeof message === "string" ? message : message?.message; -})(errorUtil || (errorUtil = {})); - -class ParseInputLazyPath { - constructor(parent, value, path13, key) { - this._cachedPath = []; - this.parent = parent; - this.data = value; - this._path = path13; - this._key = key; - } - get path() { - if (!this._cachedPath.length) { - if (Array.isArray(this._key)) { - this._cachedPath.push(...this._path, ...this._key); - } else { - this._cachedPath.push(...this._path, this._key); - } - } - return this._cachedPath; - } -} -var handleResult = (ctx, result) => { - if (isValid(result)) { - return { success: true, data: result.value }; - } else { - if (!ctx.common.issues.length) { - throw new Error("Validation failed but no issues detected."); - } - return { - success: false, - get error() { - if (this._error) - return this._error; - const error2 = new ZodError2(ctx.common.issues); - this._error = error2; - return this._error; - } - }; - } -}; -function processCreateParams(params) { - if (!params) - return {}; - const { errorMap: errorMap2, invalid_type_error, required_error, description } = params; - if (errorMap2 && (invalid_type_error || required_error)) { - throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`); - } - if (errorMap2) - return { errorMap: errorMap2, description }; - const customMap = (iss, ctx) => { - const { message } = params; - if (iss.code === "invalid_enum_value") { - return { message: message ?? ctx.defaultError }; - } - if (typeof ctx.data === "undefined") { - return { message: message ?? required_error ?? ctx.defaultError }; - } - if (iss.code !== "invalid_type") - return { message: ctx.defaultError }; - return { message: message ?? invalid_type_error ?? ctx.defaultError }; - }; - return { errorMap: customMap, description }; -} - -class ZodType2 { - get description() { - return this._def.description; - } - _getType(input) { - return getParsedType2(input.data); - } - _getOrReturnCtx(input, ctx) { - return ctx || { - common: input.parent.common, - data: input.data, - parsedType: getParsedType2(input.data), - schemaErrorMap: this._def.errorMap, - path: input.path, - parent: input.parent - }; - } - _processInputParams(input) { - return { - status: new ParseStatus, - ctx: { - common: input.parent.common, - data: input.data, - parsedType: getParsedType2(input.data), - schemaErrorMap: this._def.errorMap, - path: input.path, - parent: input.parent - } - }; - } - _parseSync(input) { - const result = this._parse(input); - if (isAsync(result)) { - throw new Error("Synchronous parse encountered promise."); - } - return result; - } - _parseAsync(input) { - const result = this._parse(input); - return Promise.resolve(result); - } - parse(data, params) { - const result = this.safeParse(data, params); - if (result.success) - return result.data; - throw result.error; - } - safeParse(data, params) { - const ctx = { - common: { - issues: [], - async: params?.async ?? false, - contextualErrorMap: params?.errorMap - }, - path: params?.path || [], - schemaErrorMap: this._def.errorMap, - parent: null, - data, - parsedType: getParsedType2(data) - }; - const result = this._parseSync({ data, path: ctx.path, parent: ctx }); - return handleResult(ctx, result); - } - "~validate"(data) { - const ctx = { - common: { - issues: [], - async: !!this["~standard"].async - }, - path: [], - schemaErrorMap: this._def.errorMap, - parent: null, - data, - parsedType: getParsedType2(data) - }; - if (!this["~standard"].async) { - try { - const result = this._parseSync({ data, path: [], parent: ctx }); - return isValid(result) ? { - value: result.value - } : { - issues: ctx.common.issues - }; - } catch (err) { - if (err?.message?.toLowerCase()?.includes("encountered")) { - this["~standard"].async = true; - } - ctx.common = { - issues: [], - async: true - }; - } - } - return this._parseAsync({ data, path: [], parent: ctx }).then((result) => isValid(result) ? { - value: result.value - } : { - issues: ctx.common.issues - }); - } - async parseAsync(data, params) { - const result = await this.safeParseAsync(data, params); - if (result.success) - return result.data; - throw result.error; - } - async safeParseAsync(data, params) { - const ctx = { - common: { - issues: [], - contextualErrorMap: params?.errorMap, - async: true - }, - path: params?.path || [], - schemaErrorMap: this._def.errorMap, - parent: null, - data, - parsedType: getParsedType2(data) - }; - const maybeAsyncResult = this._parse({ data, path: ctx.path, parent: ctx }); - const result = await (isAsync(maybeAsyncResult) ? maybeAsyncResult : Promise.resolve(maybeAsyncResult)); - return handleResult(ctx, result); - } - refine(check, message) { - const getIssueProperties = (val) => { - if (typeof message === "string" || typeof message === "undefined") { - return { message }; - } else if (typeof message === "function") { - return message(val); - } else { - return message; - } - }; - return this._refinement((val, ctx) => { - const result = check(val); - const setError = () => ctx.addIssue({ - code: ZodIssueCode.custom, - ...getIssueProperties(val) - }); - if (typeof Promise !== "undefined" && result instanceof Promise) { - return result.then((data) => { - if (!data) { - setError(); - return false; - } else { - return true; - } - }); - } - if (!result) { - setError(); - return false; - } else { - return true; - } - }); - } - refinement(check, refinementData) { - return this._refinement((val, ctx) => { - if (!check(val)) { - ctx.addIssue(typeof refinementData === "function" ? refinementData(val, ctx) : refinementData); - return false; - } else { - return true; - } - }); - } - _refinement(refinement) { - return new ZodEffects({ - schema: this, - typeName: ZodFirstPartyTypeKind.ZodEffects, - effect: { type: "refinement", refinement } - }); - } - superRefine(refinement) { - return this._refinement(refinement); - } - constructor(def) { - this.spa = this.safeParseAsync; - this._def = def; - this.parse = this.parse.bind(this); - this.safeParse = this.safeParse.bind(this); - this.parseAsync = this.parseAsync.bind(this); - this.safeParseAsync = this.safeParseAsync.bind(this); - this.spa = this.spa.bind(this); - this.refine = this.refine.bind(this); - this.refinement = this.refinement.bind(this); - this.superRefine = this.superRefine.bind(this); - this.optional = this.optional.bind(this); - this.nullable = this.nullable.bind(this); - this.nullish = this.nullish.bind(this); - this.array = this.array.bind(this); - this.promise = this.promise.bind(this); - this.or = this.or.bind(this); - this.and = this.and.bind(this); - this.transform = this.transform.bind(this); - this.brand = this.brand.bind(this); - this.default = this.default.bind(this); - this.catch = this.catch.bind(this); - this.describe = this.describe.bind(this); - this.pipe = this.pipe.bind(this); - this.readonly = this.readonly.bind(this); - this.isNullable = this.isNullable.bind(this); - this.isOptional = this.isOptional.bind(this); - this["~standard"] = { - version: 1, - vendor: "zod", - validate: (data) => this["~validate"](data) - }; - } - optional() { - return ZodOptional2.create(this, this._def); - } - nullable() { - return ZodNullable2.create(this, this._def); - } - nullish() { - return this.nullable().optional(); - } - array() { - return ZodArray2.create(this); - } - promise() { - return ZodPromise.create(this, this._def); - } - or(option) { - return ZodUnion2.create([this, option], this._def); - } - and(incoming) { - return ZodIntersection2.create(this, incoming, this._def); - } - transform(transform2) { - return new ZodEffects({ - ...processCreateParams(this._def), - schema: this, - typeName: ZodFirstPartyTypeKind.ZodEffects, - effect: { type: "transform", transform: transform2 } - }); - } - default(def) { - const defaultValueFunc = typeof def === "function" ? def : () => def; - return new ZodDefault2({ - ...processCreateParams(this._def), - innerType: this, - defaultValue: defaultValueFunc, - typeName: ZodFirstPartyTypeKind.ZodDefault - }); - } - brand() { - return new ZodBranded({ - typeName: ZodFirstPartyTypeKind.ZodBranded, - type: this, - ...processCreateParams(this._def) - }); - } - catch(def) { - const catchValueFunc = typeof def === "function" ? def : () => def; - return new ZodCatch2({ - ...processCreateParams(this._def), - innerType: this, - catchValue: catchValueFunc, - typeName: ZodFirstPartyTypeKind.ZodCatch - }); - } - describe(description) { - const This = this.constructor; - return new This({ - ...this._def, - description - }); - } - pipe(target) { - return ZodPipeline.create(this, target); - } - readonly() { - return ZodReadonly2.create(this); - } - isOptional() { - return this.safeParse(undefined).success; - } - isNullable() { - return this.safeParse(null).success; - } -} -var cuidRegex = /^c[^\s-]{8,}$/i; -var cuid2Regex = /^[0-9a-z]+$/; -var ulidRegex = /^[0-9A-HJKMNP-TV-Z]{26}$/i; -var uuidRegex = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i; -var nanoidRegex = /^[a-z0-9_-]{21}$/i; -var jwtRegex = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/; -var durationRegex = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/; -var emailRegex = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i; -var _emojiRegex = `^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`; -var emojiRegex; -var ipv4Regex = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/; -var ipv4CidrRegex = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/; -var ipv6Regex = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/; -var ipv6CidrRegex = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/; -var base64Regex = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/; -var base64urlRegex = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/; -var dateRegexSource = `((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))`; -var dateRegex = new RegExp(`^${dateRegexSource}$`); -function timeRegexSource(args) { - let secondsRegexSource = `[0-5]\\d`; - if (args.precision) { - secondsRegexSource = `${secondsRegexSource}\\.\\d{${args.precision}}`; - } else if (args.precision == null) { - secondsRegexSource = `${secondsRegexSource}(\\.\\d+)?`; - } - const secondsQuantifier = args.precision ? "+" : "?"; - return `([01]\\d|2[0-3]):[0-5]\\d(:${secondsRegexSource})${secondsQuantifier}`; -} -function timeRegex(args) { - return new RegExp(`^${timeRegexSource(args)}$`); -} -function datetimeRegex(args) { - let regex = `${dateRegexSource}T${timeRegexSource(args)}`; - const opts = []; - opts.push(args.local ? `Z?` : `Z`); - if (args.offset) - opts.push(`([+-]\\d{2}:?\\d{2})`); - regex = `${regex}(${opts.join("|")})`; - return new RegExp(`^${regex}$`); -} -function isValidIP(ip, version2) { - if ((version2 === "v4" || !version2) && ipv4Regex.test(ip)) { - return true; - } - if ((version2 === "v6" || !version2) && ipv6Regex.test(ip)) { - return true; - } - return false; -} -function isValidJWT2(jwt, alg) { - if (!jwtRegex.test(jwt)) - return false; - try { - const [header] = jwt.split("."); - if (!header) - return false; - const base642 = header.replace(/-/g, "+").replace(/_/g, "/").padEnd(header.length + (4 - header.length % 4) % 4, "="); - const decoded = JSON.parse(atob(base642)); - if (typeof decoded !== "object" || decoded === null) - return false; - if ("typ" in decoded && decoded?.typ !== "JWT") - return false; - if (!decoded.alg) - return false; - if (alg && decoded.alg !== alg) - return false; - return true; - } catch { - return false; - } -} -function isValidCidr(ip, version2) { - if ((version2 === "v4" || !version2) && ipv4CidrRegex.test(ip)) { - return true; - } - if ((version2 === "v6" || !version2) && ipv6CidrRegex.test(ip)) { - return true; - } - return false; -} - -class ZodString2 extends ZodType2 { - _parse(input) { - if (this._def.coerce) { - input.data = String(input.data); - } - const parsedType2 = this._getType(input); - if (parsedType2 !== ZodParsedType.string) { - const ctx2 = this._getOrReturnCtx(input); - addIssueToContext(ctx2, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.string, - received: ctx2.parsedType - }); - return INVALID; - } - const status = new ParseStatus; - let ctx = undefined; - for (const check of this._def.checks) { - if (check.kind === "min") { - if (input.data.length < check.value) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - code: ZodIssueCode.too_small, - minimum: check.value, - type: "string", - inclusive: true, - exact: false, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "max") { - if (input.data.length > check.value) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - code: ZodIssueCode.too_big, - maximum: check.value, - type: "string", - inclusive: true, - exact: false, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "length") { - const tooBig = input.data.length > check.value; - const tooSmall = input.data.length < check.value; - if (tooBig || tooSmall) { - ctx = this._getOrReturnCtx(input, ctx); - if (tooBig) { - addIssueToContext(ctx, { - code: ZodIssueCode.too_big, - maximum: check.value, - type: "string", - inclusive: true, - exact: true, - message: check.message - }); - } else if (tooSmall) { - addIssueToContext(ctx, { - code: ZodIssueCode.too_small, - minimum: check.value, - type: "string", - inclusive: true, - exact: true, - message: check.message - }); - } - status.dirty(); - } - } else if (check.kind === "email") { - if (!emailRegex.test(input.data)) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - validation: "email", - code: ZodIssueCode.invalid_string, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "emoji") { - if (!emojiRegex) { - emojiRegex = new RegExp(_emojiRegex, "u"); - } - if (!emojiRegex.test(input.data)) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - validation: "emoji", - code: ZodIssueCode.invalid_string, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "uuid") { - if (!uuidRegex.test(input.data)) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - validation: "uuid", - code: ZodIssueCode.invalid_string, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "nanoid") { - if (!nanoidRegex.test(input.data)) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - validation: "nanoid", - code: ZodIssueCode.invalid_string, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "cuid") { - if (!cuidRegex.test(input.data)) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - validation: "cuid", - code: ZodIssueCode.invalid_string, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "cuid2") { - if (!cuid2Regex.test(input.data)) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - validation: "cuid2", - code: ZodIssueCode.invalid_string, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "ulid") { - if (!ulidRegex.test(input.data)) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - validation: "ulid", - code: ZodIssueCode.invalid_string, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "url") { - try { - new URL(input.data); - } catch { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - validation: "url", - code: ZodIssueCode.invalid_string, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "regex") { - check.regex.lastIndex = 0; - const testResult = check.regex.test(input.data); - if (!testResult) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - validation: "regex", - code: ZodIssueCode.invalid_string, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "trim") { - input.data = input.data.trim(); - } else if (check.kind === "includes") { - if (!input.data.includes(check.value, check.position)) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_string, - validation: { includes: check.value, position: check.position }, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "toLowerCase") { - input.data = input.data.toLowerCase(); - } else if (check.kind === "toUpperCase") { - input.data = input.data.toUpperCase(); - } else if (check.kind === "startsWith") { - if (!input.data.startsWith(check.value)) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_string, - validation: { startsWith: check.value }, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "endsWith") { - if (!input.data.endsWith(check.value)) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_string, - validation: { endsWith: check.value }, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "datetime") { - const regex = datetimeRegex(check); - if (!regex.test(input.data)) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_string, - validation: "datetime", - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "date") { - const regex = dateRegex; - if (!regex.test(input.data)) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_string, - validation: "date", - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "time") { - const regex = timeRegex(check); - if (!regex.test(input.data)) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_string, - validation: "time", - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "duration") { - if (!durationRegex.test(input.data)) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - validation: "duration", - code: ZodIssueCode.invalid_string, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "ip") { - if (!isValidIP(input.data, check.version)) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - validation: "ip", - code: ZodIssueCode.invalid_string, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "jwt") { - if (!isValidJWT2(input.data, check.alg)) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - validation: "jwt", - code: ZodIssueCode.invalid_string, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "cidr") { - if (!isValidCidr(input.data, check.version)) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - validation: "cidr", - code: ZodIssueCode.invalid_string, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "base64") { - if (!base64Regex.test(input.data)) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - validation: "base64", - code: ZodIssueCode.invalid_string, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "base64url") { - if (!base64urlRegex.test(input.data)) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - validation: "base64url", - code: ZodIssueCode.invalid_string, - message: check.message - }); - status.dirty(); - } - } else { - util.assertNever(check); - } - } - return { status: status.value, value: input.data }; - } - _regex(regex, validation, message) { - return this.refinement((data) => regex.test(data), { - validation, - code: ZodIssueCode.invalid_string, - ...errorUtil.errToObj(message) - }); - } - _addCheck(check) { - return new ZodString2({ - ...this._def, - checks: [...this._def.checks, check] - }); - } - email(message) { - return this._addCheck({ kind: "email", ...errorUtil.errToObj(message) }); - } - url(message) { - return this._addCheck({ kind: "url", ...errorUtil.errToObj(message) }); - } - emoji(message) { - return this._addCheck({ kind: "emoji", ...errorUtil.errToObj(message) }); - } - uuid(message) { - return this._addCheck({ kind: "uuid", ...errorUtil.errToObj(message) }); - } - nanoid(message) { - return this._addCheck({ kind: "nanoid", ...errorUtil.errToObj(message) }); - } - cuid(message) { - return this._addCheck({ kind: "cuid", ...errorUtil.errToObj(message) }); - } - cuid2(message) { - return this._addCheck({ kind: "cuid2", ...errorUtil.errToObj(message) }); - } - ulid(message) { - return this._addCheck({ kind: "ulid", ...errorUtil.errToObj(message) }); - } - base64(message) { - return this._addCheck({ kind: "base64", ...errorUtil.errToObj(message) }); - } - base64url(message) { - return this._addCheck({ - kind: "base64url", - ...errorUtil.errToObj(message) - }); - } - jwt(options) { - return this._addCheck({ kind: "jwt", ...errorUtil.errToObj(options) }); - } - ip(options) { - return this._addCheck({ kind: "ip", ...errorUtil.errToObj(options) }); - } - cidr(options) { - return this._addCheck({ kind: "cidr", ...errorUtil.errToObj(options) }); - } - datetime(options) { - if (typeof options === "string") { - return this._addCheck({ - kind: "datetime", - precision: null, - offset: false, - local: false, - message: options - }); - } - return this._addCheck({ - kind: "datetime", - precision: typeof options?.precision === "undefined" ? null : options?.precision, - offset: options?.offset ?? false, - local: options?.local ?? false, - ...errorUtil.errToObj(options?.message) - }); - } - date(message) { - return this._addCheck({ kind: "date", message }); - } - time(options) { - if (typeof options === "string") { - return this._addCheck({ - kind: "time", - precision: null, - message: options - }); - } - return this._addCheck({ - kind: "time", - precision: typeof options?.precision === "undefined" ? null : options?.precision, - ...errorUtil.errToObj(options?.message) - }); - } - duration(message) { - return this._addCheck({ kind: "duration", ...errorUtil.errToObj(message) }); - } - regex(regex, message) { - return this._addCheck({ - kind: "regex", - regex, - ...errorUtil.errToObj(message) - }); - } - includes(value, options) { - return this._addCheck({ - kind: "includes", - value, - position: options?.position, - ...errorUtil.errToObj(options?.message) - }); - } - startsWith(value, message) { - return this._addCheck({ - kind: "startsWith", - value, - ...errorUtil.errToObj(message) - }); - } - endsWith(value, message) { - return this._addCheck({ - kind: "endsWith", - value, - ...errorUtil.errToObj(message) - }); - } - min(minLength, message) { - return this._addCheck({ - kind: "min", - value: minLength, - ...errorUtil.errToObj(message) - }); - } - max(maxLength, message) { - return this._addCheck({ - kind: "max", - value: maxLength, - ...errorUtil.errToObj(message) - }); - } - length(len, message) { - return this._addCheck({ - kind: "length", - value: len, - ...errorUtil.errToObj(message) - }); - } - nonempty(message) { - return this.min(1, errorUtil.errToObj(message)); - } - trim() { - return new ZodString2({ - ...this._def, - checks: [...this._def.checks, { kind: "trim" }] - }); - } - toLowerCase() { - return new ZodString2({ - ...this._def, - checks: [...this._def.checks, { kind: "toLowerCase" }] - }); - } - toUpperCase() { - return new ZodString2({ - ...this._def, - checks: [...this._def.checks, { kind: "toUpperCase" }] - }); - } - get isDatetime() { - return !!this._def.checks.find((ch) => ch.kind === "datetime"); - } - get isDate() { - return !!this._def.checks.find((ch) => ch.kind === "date"); - } - get isTime() { - return !!this._def.checks.find((ch) => ch.kind === "time"); - } - get isDuration() { - return !!this._def.checks.find((ch) => ch.kind === "duration"); - } - get isEmail() { - return !!this._def.checks.find((ch) => ch.kind === "email"); - } - get isURL() { - return !!this._def.checks.find((ch) => ch.kind === "url"); - } - get isEmoji() { - return !!this._def.checks.find((ch) => ch.kind === "emoji"); - } - get isUUID() { - return !!this._def.checks.find((ch) => ch.kind === "uuid"); - } - get isNANOID() { - return !!this._def.checks.find((ch) => ch.kind === "nanoid"); - } - get isCUID() { - return !!this._def.checks.find((ch) => ch.kind === "cuid"); - } - get isCUID2() { - return !!this._def.checks.find((ch) => ch.kind === "cuid2"); - } - get isULID() { - return !!this._def.checks.find((ch) => ch.kind === "ulid"); - } - get isIP() { - return !!this._def.checks.find((ch) => ch.kind === "ip"); - } - get isCIDR() { - return !!this._def.checks.find((ch) => ch.kind === "cidr"); - } - get isBase64() { - return !!this._def.checks.find((ch) => ch.kind === "base64"); - } - get isBase64url() { - return !!this._def.checks.find((ch) => ch.kind === "base64url"); - } - get minLength() { - let min = null; - for (const ch of this._def.checks) { - if (ch.kind === "min") { - if (min === null || ch.value > min) - min = ch.value; - } - } - return min; - } - get maxLength() { - let max = null; - for (const ch of this._def.checks) { - if (ch.kind === "max") { - if (max === null || ch.value < max) - max = ch.value; - } - } - return max; - } -} -ZodString2.create = (params) => { - return new ZodString2({ - checks: [], - typeName: ZodFirstPartyTypeKind.ZodString, - coerce: params?.coerce ?? false, - ...processCreateParams(params) - }); -}; -function floatSafeRemainder2(val, step) { - const valDecCount = (val.toString().split(".")[1] || "").length; - const stepDecCount = (step.toString().split(".")[1] || "").length; - const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount; - const valInt = Number.parseInt(val.toFixed(decCount).replace(".", "")); - const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", "")); - return valInt % stepInt / 10 ** decCount; -} - -class ZodNumber2 extends ZodType2 { - constructor() { - super(...arguments); - this.min = this.gte; - this.max = this.lte; - this.step = this.multipleOf; - } - _parse(input) { - if (this._def.coerce) { - input.data = Number(input.data); - } - const parsedType2 = this._getType(input); - if (parsedType2 !== ZodParsedType.number) { - const ctx2 = this._getOrReturnCtx(input); - addIssueToContext(ctx2, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.number, - received: ctx2.parsedType - }); - return INVALID; - } - let ctx = undefined; - const status = new ParseStatus; - for (const check of this._def.checks) { - if (check.kind === "int") { - if (!util.isInteger(input.data)) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_type, - expected: "integer", - received: "float", - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "min") { - const tooSmall = check.inclusive ? input.data < check.value : input.data <= check.value; - if (tooSmall) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - code: ZodIssueCode.too_small, - minimum: check.value, - type: "number", - inclusive: check.inclusive, - exact: false, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "max") { - const tooBig = check.inclusive ? input.data > check.value : input.data >= check.value; - if (tooBig) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - code: ZodIssueCode.too_big, - maximum: check.value, - type: "number", - inclusive: check.inclusive, - exact: false, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "multipleOf") { - if (floatSafeRemainder2(input.data, check.value) !== 0) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - code: ZodIssueCode.not_multiple_of, - multipleOf: check.value, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "finite") { - if (!Number.isFinite(input.data)) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - code: ZodIssueCode.not_finite, - message: check.message - }); - status.dirty(); - } - } else { - util.assertNever(check); - } - } - return { status: status.value, value: input.data }; - } - gte(value, message) { - return this.setLimit("min", value, true, errorUtil.toString(message)); - } - gt(value, message) { - return this.setLimit("min", value, false, errorUtil.toString(message)); - } - lte(value, message) { - return this.setLimit("max", value, true, errorUtil.toString(message)); - } - lt(value, message) { - return this.setLimit("max", value, false, errorUtil.toString(message)); - } - setLimit(kind, value, inclusive, message) { - return new ZodNumber2({ - ...this._def, - checks: [ - ...this._def.checks, - { - kind, - value, - inclusive, - message: errorUtil.toString(message) - } - ] - }); - } - _addCheck(check) { - return new ZodNumber2({ - ...this._def, - checks: [...this._def.checks, check] - }); - } - int(message) { - return this._addCheck({ - kind: "int", - message: errorUtil.toString(message) - }); - } - positive(message) { - return this._addCheck({ - kind: "min", - value: 0, - inclusive: false, - message: errorUtil.toString(message) - }); - } - negative(message) { - return this._addCheck({ - kind: "max", - value: 0, - inclusive: false, - message: errorUtil.toString(message) - }); - } - nonpositive(message) { - return this._addCheck({ - kind: "max", - value: 0, - inclusive: true, - message: errorUtil.toString(message) - }); - } - nonnegative(message) { - return this._addCheck({ - kind: "min", - value: 0, - inclusive: true, - message: errorUtil.toString(message) - }); - } - multipleOf(value, message) { - return this._addCheck({ - kind: "multipleOf", - value, - message: errorUtil.toString(message) - }); - } - finite(message) { - return this._addCheck({ - kind: "finite", - message: errorUtil.toString(message) - }); - } - safe(message) { - return this._addCheck({ - kind: "min", - inclusive: true, - value: Number.MIN_SAFE_INTEGER, - message: errorUtil.toString(message) - })._addCheck({ - kind: "max", - inclusive: true, - value: Number.MAX_SAFE_INTEGER, - message: errorUtil.toString(message) - }); - } - get minValue() { - let min = null; - for (const ch of this._def.checks) { - if (ch.kind === "min") { - if (min === null || ch.value > min) - min = ch.value; - } - } - return min; - } - get maxValue() { - let max = null; - for (const ch of this._def.checks) { - if (ch.kind === "max") { - if (max === null || ch.value < max) - max = ch.value; - } - } - return max; - } - get isInt() { - return !!this._def.checks.find((ch) => ch.kind === "int" || ch.kind === "multipleOf" && util.isInteger(ch.value)); - } - get isFinite() { - let max = null; - let min = null; - for (const ch of this._def.checks) { - if (ch.kind === "finite" || ch.kind === "int" || ch.kind === "multipleOf") { - return true; - } else if (ch.kind === "min") { - if (min === null || ch.value > min) - min = ch.value; - } else if (ch.kind === "max") { - if (max === null || ch.value < max) - max = ch.value; - } - } - return Number.isFinite(min) && Number.isFinite(max); - } -} -ZodNumber2.create = (params) => { - return new ZodNumber2({ - checks: [], - typeName: ZodFirstPartyTypeKind.ZodNumber, - coerce: params?.coerce || false, - ...processCreateParams(params) - }); -}; - -class ZodBigInt extends ZodType2 { - constructor() { - super(...arguments); - this.min = this.gte; - this.max = this.lte; - } - _parse(input) { - if (this._def.coerce) { - try { - input.data = BigInt(input.data); - } catch { - return this._getInvalidInput(input); - } - } - const parsedType2 = this._getType(input); - if (parsedType2 !== ZodParsedType.bigint) { - return this._getInvalidInput(input); - } - let ctx = undefined; - const status = new ParseStatus; - for (const check of this._def.checks) { - if (check.kind === "min") { - const tooSmall = check.inclusive ? input.data < check.value : input.data <= check.value; - if (tooSmall) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - code: ZodIssueCode.too_small, - type: "bigint", - minimum: check.value, - inclusive: check.inclusive, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "max") { - const tooBig = check.inclusive ? input.data > check.value : input.data >= check.value; - if (tooBig) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - code: ZodIssueCode.too_big, - type: "bigint", - maximum: check.value, - inclusive: check.inclusive, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "multipleOf") { - if (input.data % check.value !== BigInt(0)) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - code: ZodIssueCode.not_multiple_of, - multipleOf: check.value, - message: check.message - }); - status.dirty(); - } - } else { - util.assertNever(check); - } - } - return { status: status.value, value: input.data }; - } - _getInvalidInput(input) { - const ctx = this._getOrReturnCtx(input); - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.bigint, - received: ctx.parsedType - }); - return INVALID; - } - gte(value, message) { - return this.setLimit("min", value, true, errorUtil.toString(message)); - } - gt(value, message) { - return this.setLimit("min", value, false, errorUtil.toString(message)); - } - lte(value, message) { - return this.setLimit("max", value, true, errorUtil.toString(message)); - } - lt(value, message) { - return this.setLimit("max", value, false, errorUtil.toString(message)); - } - setLimit(kind, value, inclusive, message) { - return new ZodBigInt({ - ...this._def, - checks: [ - ...this._def.checks, - { - kind, - value, - inclusive, - message: errorUtil.toString(message) - } - ] - }); - } - _addCheck(check) { - return new ZodBigInt({ - ...this._def, - checks: [...this._def.checks, check] - }); - } - positive(message) { - return this._addCheck({ - kind: "min", - value: BigInt(0), - inclusive: false, - message: errorUtil.toString(message) - }); - } - negative(message) { - return this._addCheck({ - kind: "max", - value: BigInt(0), - inclusive: false, - message: errorUtil.toString(message) - }); - } - nonpositive(message) { - return this._addCheck({ - kind: "max", - value: BigInt(0), - inclusive: true, - message: errorUtil.toString(message) - }); - } - nonnegative(message) { - return this._addCheck({ - kind: "min", - value: BigInt(0), - inclusive: true, - message: errorUtil.toString(message) - }); - } - multipleOf(value, message) { - return this._addCheck({ - kind: "multipleOf", - value, - message: errorUtil.toString(message) - }); - } - get minValue() { - let min = null; - for (const ch of this._def.checks) { - if (ch.kind === "min") { - if (min === null || ch.value > min) - min = ch.value; - } - } - return min; - } - get maxValue() { - let max = null; - for (const ch of this._def.checks) { - if (ch.kind === "max") { - if (max === null || ch.value < max) - max = ch.value; - } - } - return max; - } -} -ZodBigInt.create = (params) => { - return new ZodBigInt({ - checks: [], - typeName: ZodFirstPartyTypeKind.ZodBigInt, - coerce: params?.coerce ?? false, - ...processCreateParams(params) - }); -}; - -class ZodBoolean2 extends ZodType2 { - _parse(input) { - if (this._def.coerce) { - input.data = Boolean(input.data); - } - const parsedType2 = this._getType(input); - if (parsedType2 !== ZodParsedType.boolean) { - const ctx = this._getOrReturnCtx(input); - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.boolean, - received: ctx.parsedType - }); - return INVALID; - } - return OK(input.data); - } -} -ZodBoolean2.create = (params) => { - return new ZodBoolean2({ - typeName: ZodFirstPartyTypeKind.ZodBoolean, - coerce: params?.coerce || false, - ...processCreateParams(params) - }); -}; - -class ZodDate extends ZodType2 { - _parse(input) { - if (this._def.coerce) { - input.data = new Date(input.data); - } - const parsedType2 = this._getType(input); - if (parsedType2 !== ZodParsedType.date) { - const ctx2 = this._getOrReturnCtx(input); - addIssueToContext(ctx2, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.date, - received: ctx2.parsedType - }); - return INVALID; - } - if (Number.isNaN(input.data.getTime())) { - const ctx2 = this._getOrReturnCtx(input); - addIssueToContext(ctx2, { - code: ZodIssueCode.invalid_date - }); - return INVALID; - } - const status = new ParseStatus; - let ctx = undefined; - for (const check of this._def.checks) { - if (check.kind === "min") { - if (input.data.getTime() < check.value) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - code: ZodIssueCode.too_small, - message: check.message, - inclusive: true, - exact: false, - minimum: check.value, - type: "date" - }); - status.dirty(); - } - } else if (check.kind === "max") { - if (input.data.getTime() > check.value) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - code: ZodIssueCode.too_big, - message: check.message, - inclusive: true, - exact: false, - maximum: check.value, - type: "date" - }); - status.dirty(); - } - } else { - util.assertNever(check); - } - } - return { - status: status.value, - value: new Date(input.data.getTime()) - }; - } - _addCheck(check) { - return new ZodDate({ - ...this._def, - checks: [...this._def.checks, check] - }); - } - min(minDate, message) { - return this._addCheck({ - kind: "min", - value: minDate.getTime(), - message: errorUtil.toString(message) - }); - } - max(maxDate, message) { - return this._addCheck({ - kind: "max", - value: maxDate.getTime(), - message: errorUtil.toString(message) - }); - } - get minDate() { - let min = null; - for (const ch of this._def.checks) { - if (ch.kind === "min") { - if (min === null || ch.value > min) - min = ch.value; - } - } - return min != null ? new Date(min) : null; - } - get maxDate() { - let max = null; - for (const ch of this._def.checks) { - if (ch.kind === "max") { - if (max === null || ch.value < max) - max = ch.value; - } - } - return max != null ? new Date(max) : null; - } -} -ZodDate.create = (params) => { - return new ZodDate({ - checks: [], - coerce: params?.coerce || false, - typeName: ZodFirstPartyTypeKind.ZodDate, - ...processCreateParams(params) - }); -}; - -class ZodSymbol extends ZodType2 { - _parse(input) { - const parsedType2 = this._getType(input); - if (parsedType2 !== ZodParsedType.symbol) { - const ctx = this._getOrReturnCtx(input); - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.symbol, - received: ctx.parsedType - }); - return INVALID; - } - return OK(input.data); - } -} -ZodSymbol.create = (params) => { - return new ZodSymbol({ - typeName: ZodFirstPartyTypeKind.ZodSymbol, - ...processCreateParams(params) - }); -}; - -class ZodUndefined extends ZodType2 { - _parse(input) { - const parsedType2 = this._getType(input); - if (parsedType2 !== ZodParsedType.undefined) { - const ctx = this._getOrReturnCtx(input); - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.undefined, - received: ctx.parsedType - }); - return INVALID; - } - return OK(input.data); - } -} -ZodUndefined.create = (params) => { - return new ZodUndefined({ - typeName: ZodFirstPartyTypeKind.ZodUndefined, - ...processCreateParams(params) - }); -}; - -class ZodNull2 extends ZodType2 { - _parse(input) { - const parsedType2 = this._getType(input); - if (parsedType2 !== ZodParsedType.null) { - const ctx = this._getOrReturnCtx(input); - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.null, - received: ctx.parsedType - }); - return INVALID; - } - return OK(input.data); - } -} -ZodNull2.create = (params) => { - return new ZodNull2({ - typeName: ZodFirstPartyTypeKind.ZodNull, - ...processCreateParams(params) - }); -}; - -class ZodAny extends ZodType2 { - constructor() { - super(...arguments); - this._any = true; - } - _parse(input) { - return OK(input.data); - } -} -ZodAny.create = (params) => { - return new ZodAny({ - typeName: ZodFirstPartyTypeKind.ZodAny, - ...processCreateParams(params) - }); -}; - -class ZodUnknown2 extends ZodType2 { - constructor() { - super(...arguments); - this._unknown = true; - } - _parse(input) { - return OK(input.data); - } -} -ZodUnknown2.create = (params) => { - return new ZodUnknown2({ - typeName: ZodFirstPartyTypeKind.ZodUnknown, - ...processCreateParams(params) - }); -}; - -class ZodNever2 extends ZodType2 { - _parse(input) { - const ctx = this._getOrReturnCtx(input); - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.never, - received: ctx.parsedType - }); - return INVALID; - } -} -ZodNever2.create = (params) => { - return new ZodNever2({ - typeName: ZodFirstPartyTypeKind.ZodNever, - ...processCreateParams(params) - }); -}; - -class ZodVoid extends ZodType2 { - _parse(input) { - const parsedType2 = this._getType(input); - if (parsedType2 !== ZodParsedType.undefined) { - const ctx = this._getOrReturnCtx(input); - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.void, - received: ctx.parsedType - }); - return INVALID; - } - return OK(input.data); - } -} -ZodVoid.create = (params) => { - return new ZodVoid({ - typeName: ZodFirstPartyTypeKind.ZodVoid, - ...processCreateParams(params) - }); -}; - -class ZodArray2 extends ZodType2 { - _parse(input) { - const { ctx, status } = this._processInputParams(input); - const def = this._def; - if (ctx.parsedType !== ZodParsedType.array) { - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.array, - received: ctx.parsedType - }); - return INVALID; - } - if (def.exactLength !== null) { - const tooBig = ctx.data.length > def.exactLength.value; - const tooSmall = ctx.data.length < def.exactLength.value; - if (tooBig || tooSmall) { - addIssueToContext(ctx, { - code: tooBig ? ZodIssueCode.too_big : ZodIssueCode.too_small, - minimum: tooSmall ? def.exactLength.value : undefined, - maximum: tooBig ? def.exactLength.value : undefined, - type: "array", - inclusive: true, - exact: true, - message: def.exactLength.message - }); - status.dirty(); - } - } - if (def.minLength !== null) { - if (ctx.data.length < def.minLength.value) { - addIssueToContext(ctx, { - code: ZodIssueCode.too_small, - minimum: def.minLength.value, - type: "array", - inclusive: true, - exact: false, - message: def.minLength.message - }); - status.dirty(); - } - } - if (def.maxLength !== null) { - if (ctx.data.length > def.maxLength.value) { - addIssueToContext(ctx, { - code: ZodIssueCode.too_big, - maximum: def.maxLength.value, - type: "array", - inclusive: true, - exact: false, - message: def.maxLength.message - }); - status.dirty(); - } - } - if (ctx.common.async) { - return Promise.all([...ctx.data].map((item, i) => { - return def.type._parseAsync(new ParseInputLazyPath(ctx, item, ctx.path, i)); - })).then((result2) => { - return ParseStatus.mergeArray(status, result2); - }); - } - const result = [...ctx.data].map((item, i) => { - return def.type._parseSync(new ParseInputLazyPath(ctx, item, ctx.path, i)); - }); - return ParseStatus.mergeArray(status, result); - } - get element() { - return this._def.type; - } - min(minLength, message) { - return new ZodArray2({ - ...this._def, - minLength: { value: minLength, message: errorUtil.toString(message) } - }); - } - max(maxLength, message) { - return new ZodArray2({ - ...this._def, - maxLength: { value: maxLength, message: errorUtil.toString(message) } - }); - } - length(len, message) { - return new ZodArray2({ - ...this._def, - exactLength: { value: len, message: errorUtil.toString(message) } - }); - } - nonempty(message) { - return this.min(1, message); - } -} -ZodArray2.create = (schema, params) => { - return new ZodArray2({ - type: schema, - minLength: null, - maxLength: null, - exactLength: null, - typeName: ZodFirstPartyTypeKind.ZodArray, - ...processCreateParams(params) - }); -}; -function deepPartialify(schema) { - if (schema instanceof ZodObject2) { - const newShape = {}; - for (const key in schema.shape) { - const fieldSchema = schema.shape[key]; - newShape[key] = ZodOptional2.create(deepPartialify(fieldSchema)); - } - return new ZodObject2({ - ...schema._def, - shape: () => newShape - }); - } else if (schema instanceof ZodArray2) { - return new ZodArray2({ - ...schema._def, - type: deepPartialify(schema.element) - }); - } else if (schema instanceof ZodOptional2) { - return ZodOptional2.create(deepPartialify(schema.unwrap())); - } else if (schema instanceof ZodNullable2) { - return ZodNullable2.create(deepPartialify(schema.unwrap())); - } else if (schema instanceof ZodTuple) { - return ZodTuple.create(schema.items.map((item) => deepPartialify(item))); - } else { - return schema; - } -} - -class ZodObject2 extends ZodType2 { - constructor() { - super(...arguments); - this._cached = null; - this.nonstrict = this.passthrough; - this.augment = this.extend; - } - _getCached() { - if (this._cached !== null) - return this._cached; - const shape = this._def.shape(); - const keys = util.objectKeys(shape); - this._cached = { shape, keys }; - return this._cached; - } - _parse(input) { - const parsedType2 = this._getType(input); - if (parsedType2 !== ZodParsedType.object) { - const ctx2 = this._getOrReturnCtx(input); - addIssueToContext(ctx2, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.object, - received: ctx2.parsedType - }); - return INVALID; - } - const { status, ctx } = this._processInputParams(input); - const { shape, keys: shapeKeys } = this._getCached(); - const extraKeys = []; - if (!(this._def.catchall instanceof ZodNever2 && this._def.unknownKeys === "strip")) { - for (const key in ctx.data) { - if (!shapeKeys.includes(key)) { - extraKeys.push(key); - } - } - } - const pairs = []; - for (const key of shapeKeys) { - const keyValidator = shape[key]; - const value = ctx.data[key]; - pairs.push({ - key: { status: "valid", value: key }, - value: keyValidator._parse(new ParseInputLazyPath(ctx, value, ctx.path, key)), - alwaysSet: key in ctx.data - }); - } - if (this._def.catchall instanceof ZodNever2) { - const unknownKeys = this._def.unknownKeys; - if (unknownKeys === "passthrough") { - for (const key of extraKeys) { - pairs.push({ - key: { status: "valid", value: key }, - value: { status: "valid", value: ctx.data[key] } - }); - } - } else if (unknownKeys === "strict") { - if (extraKeys.length > 0) { - addIssueToContext(ctx, { - code: ZodIssueCode.unrecognized_keys, - keys: extraKeys - }); - status.dirty(); - } - } else if (unknownKeys === "strip") {} else { - throw new Error(`Internal ZodObject error: invalid unknownKeys value.`); - } - } else { - const catchall = this._def.catchall; - for (const key of extraKeys) { - const value = ctx.data[key]; - pairs.push({ - key: { status: "valid", value: key }, - value: catchall._parse(new ParseInputLazyPath(ctx, value, ctx.path, key)), - alwaysSet: key in ctx.data - }); - } - } - if (ctx.common.async) { - return Promise.resolve().then(async () => { - const syncPairs = []; - for (const pair of pairs) { - const key = await pair.key; - const value = await pair.value; - syncPairs.push({ - key, - value, - alwaysSet: pair.alwaysSet - }); - } - return syncPairs; - }).then((syncPairs) => { - return ParseStatus.mergeObjectSync(status, syncPairs); - }); - } else { - return ParseStatus.mergeObjectSync(status, pairs); - } - } - get shape() { - return this._def.shape(); - } - strict(message) { - errorUtil.errToObj; - return new ZodObject2({ - ...this._def, - unknownKeys: "strict", - ...message !== undefined ? { - errorMap: (issue2, ctx) => { - const defaultError = this._def.errorMap?.(issue2, ctx).message ?? ctx.defaultError; - if (issue2.code === "unrecognized_keys") - return { - message: errorUtil.errToObj(message).message ?? defaultError - }; - return { - message: defaultError - }; - } - } : {} - }); - } - strip() { - return new ZodObject2({ - ...this._def, - unknownKeys: "strip" - }); - } - passthrough() { - return new ZodObject2({ - ...this._def, - unknownKeys: "passthrough" - }); - } - extend(augmentation) { - return new ZodObject2({ - ...this._def, - shape: () => ({ - ...this._def.shape(), - ...augmentation - }) - }); - } - merge(merging) { - const merged = new ZodObject2({ - unknownKeys: merging._def.unknownKeys, - catchall: merging._def.catchall, - shape: () => ({ - ...this._def.shape(), - ...merging._def.shape() - }), - typeName: ZodFirstPartyTypeKind.ZodObject - }); - return merged; - } - setKey(key, schema) { - return this.augment({ [key]: schema }); - } - catchall(index) { - return new ZodObject2({ - ...this._def, - catchall: index - }); - } - pick(mask) { - const shape = {}; - for (const key of util.objectKeys(mask)) { - if (mask[key] && this.shape[key]) { - shape[key] = this.shape[key]; - } - } - return new ZodObject2({ - ...this._def, - shape: () => shape - }); - } - omit(mask) { - const shape = {}; - for (const key of util.objectKeys(this.shape)) { - if (!mask[key]) { - shape[key] = this.shape[key]; - } - } - return new ZodObject2({ - ...this._def, - shape: () => shape - }); - } - deepPartial() { - return deepPartialify(this); - } - partial(mask) { - const newShape = {}; - for (const key of util.objectKeys(this.shape)) { - const fieldSchema = this.shape[key]; - if (mask && !mask[key]) { - newShape[key] = fieldSchema; - } else { - newShape[key] = fieldSchema.optional(); - } - } - return new ZodObject2({ - ...this._def, - shape: () => newShape - }); - } - required(mask) { - const newShape = {}; - for (const key of util.objectKeys(this.shape)) { - if (mask && !mask[key]) { - newShape[key] = this.shape[key]; - } else { - const fieldSchema = this.shape[key]; - let newField = fieldSchema; - while (newField instanceof ZodOptional2) { - newField = newField._def.innerType; - } - newShape[key] = newField; - } - } - return new ZodObject2({ - ...this._def, - shape: () => newShape - }); - } - keyof() { - return createZodEnum(util.objectKeys(this.shape)); - } -} -ZodObject2.create = (shape, params) => { - return new ZodObject2({ - shape: () => shape, - unknownKeys: "strip", - catchall: ZodNever2.create(), - typeName: ZodFirstPartyTypeKind.ZodObject, - ...processCreateParams(params) - }); -}; -ZodObject2.strictCreate = (shape, params) => { - return new ZodObject2({ - shape: () => shape, - unknownKeys: "strict", - catchall: ZodNever2.create(), - typeName: ZodFirstPartyTypeKind.ZodObject, - ...processCreateParams(params) - }); -}; -ZodObject2.lazycreate = (shape, params) => { - return new ZodObject2({ - shape, - unknownKeys: "strip", - catchall: ZodNever2.create(), - typeName: ZodFirstPartyTypeKind.ZodObject, - ...processCreateParams(params) - }); -}; - -class ZodUnion2 extends ZodType2 { - _parse(input) { - const { ctx } = this._processInputParams(input); - const options = this._def.options; - function handleResults(results) { - for (const result of results) { - if (result.result.status === "valid") { - return result.result; - } - } - for (const result of results) { - if (result.result.status === "dirty") { - ctx.common.issues.push(...result.ctx.common.issues); - return result.result; - } - } - const unionErrors = results.map((result) => new ZodError2(result.ctx.common.issues)); - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_union, - unionErrors - }); - return INVALID; - } - if (ctx.common.async) { - return Promise.all(options.map(async (option) => { - const childCtx = { - ...ctx, - common: { - ...ctx.common, - issues: [] - }, - parent: null - }; - return { - result: await option._parseAsync({ - data: ctx.data, - path: ctx.path, - parent: childCtx - }), - ctx: childCtx - }; - })).then(handleResults); - } else { - let dirty = undefined; - const issues = []; - for (const option of options) { - const childCtx = { - ...ctx, - common: { - ...ctx.common, - issues: [] - }, - parent: null - }; - const result = option._parseSync({ - data: ctx.data, - path: ctx.path, - parent: childCtx - }); - if (result.status === "valid") { - return result; - } else if (result.status === "dirty" && !dirty) { - dirty = { result, ctx: childCtx }; - } - if (childCtx.common.issues.length) { - issues.push(childCtx.common.issues); - } - } - if (dirty) { - ctx.common.issues.push(...dirty.ctx.common.issues); - return dirty.result; - } - const unionErrors = issues.map((issues2) => new ZodError2(issues2)); - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_union, - unionErrors - }); - return INVALID; - } - } - get options() { - return this._def.options; - } -} -ZodUnion2.create = (types, params) => { - return new ZodUnion2({ - options: types, - typeName: ZodFirstPartyTypeKind.ZodUnion, - ...processCreateParams(params) - }); -}; -var getDiscriminator = (type) => { - if (type instanceof ZodLazy) { - return getDiscriminator(type.schema); - } else if (type instanceof ZodEffects) { - return getDiscriminator(type.innerType()); - } else if (type instanceof ZodLiteral2) { - return [type.value]; - } else if (type instanceof ZodEnum2) { - return type.options; - } else if (type instanceof ZodNativeEnum) { - return util.objectValues(type.enum); - } else if (type instanceof ZodDefault2) { - return getDiscriminator(type._def.innerType); - } else if (type instanceof ZodUndefined) { - return [undefined]; - } else if (type instanceof ZodNull2) { - return [null]; - } else if (type instanceof ZodOptional2) { - return [undefined, ...getDiscriminator(type.unwrap())]; - } else if (type instanceof ZodNullable2) { - return [null, ...getDiscriminator(type.unwrap())]; - } else if (type instanceof ZodBranded) { - return getDiscriminator(type.unwrap()); - } else if (type instanceof ZodReadonly2) { - return getDiscriminator(type.unwrap()); - } else if (type instanceof ZodCatch2) { - return getDiscriminator(type._def.innerType); - } else { - return []; - } -}; - -class ZodDiscriminatedUnion2 extends ZodType2 { - _parse(input) { - const { ctx } = this._processInputParams(input); - if (ctx.parsedType !== ZodParsedType.object) { - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.object, - received: ctx.parsedType - }); - return INVALID; - } - const discriminator = this.discriminator; - const discriminatorValue = ctx.data[discriminator]; - const option = this.optionsMap.get(discriminatorValue); - if (!option) { - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_union_discriminator, - options: Array.from(this.optionsMap.keys()), - path: [discriminator] - }); - return INVALID; - } - if (ctx.common.async) { - return option._parseAsync({ - data: ctx.data, - path: ctx.path, - parent: ctx - }); - } else { - return option._parseSync({ - data: ctx.data, - path: ctx.path, - parent: ctx - }); - } - } - get discriminator() { - return this._def.discriminator; - } - get options() { - return this._def.options; - } - get optionsMap() { - return this._def.optionsMap; - } - static create(discriminator, options, params) { - const optionsMap = new Map; - for (const type of options) { - const discriminatorValues = getDiscriminator(type.shape[discriminator]); - if (!discriminatorValues.length) { - throw new Error(`A discriminator value for key \`${discriminator}\` could not be extracted from all schema options`); - } - for (const value of discriminatorValues) { - if (optionsMap.has(value)) { - throw new Error(`Discriminator property ${String(discriminator)} has duplicate value ${String(value)}`); - } - optionsMap.set(value, type); - } - } - return new ZodDiscriminatedUnion2({ - typeName: ZodFirstPartyTypeKind.ZodDiscriminatedUnion, - discriminator, - options, - optionsMap, - ...processCreateParams(params) - }); - } -} -function mergeValues2(a, b) { - const aType = getParsedType2(a); - const bType = getParsedType2(b); - if (a === b) { - return { valid: true, data: a }; - } else if (aType === ZodParsedType.object && bType === ZodParsedType.object) { - const bKeys = util.objectKeys(b); - const sharedKeys = util.objectKeys(a).filter((key) => bKeys.indexOf(key) !== -1); - const newObj = { ...a, ...b }; - for (const key of sharedKeys) { - const sharedValue = mergeValues2(a[key], b[key]); - if (!sharedValue.valid) { - return { valid: false }; - } - newObj[key] = sharedValue.data; - } - return { valid: true, data: newObj }; - } else if (aType === ZodParsedType.array && bType === ZodParsedType.array) { - if (a.length !== b.length) { - return { valid: false }; - } - const newArray = []; - for (let index = 0;index < a.length; index++) { - const itemA = a[index]; - const itemB = b[index]; - const sharedValue = mergeValues2(itemA, itemB); - if (!sharedValue.valid) { - return { valid: false }; - } - newArray.push(sharedValue.data); - } - return { valid: true, data: newArray }; - } else if (aType === ZodParsedType.date && bType === ZodParsedType.date && +a === +b) { - return { valid: true, data: a }; - } else { - return { valid: false }; - } -} - -class ZodIntersection2 extends ZodType2 { - _parse(input) { - const { status, ctx } = this._processInputParams(input); - const handleParsed = (parsedLeft, parsedRight) => { - if (isAborted(parsedLeft) || isAborted(parsedRight)) { - return INVALID; - } - const merged = mergeValues2(parsedLeft.value, parsedRight.value); - if (!merged.valid) { - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_intersection_types - }); - return INVALID; - } - if (isDirty(parsedLeft) || isDirty(parsedRight)) { - status.dirty(); - } - return { status: status.value, value: merged.data }; - }; - if (ctx.common.async) { - return Promise.all([ - this._def.left._parseAsync({ - data: ctx.data, - path: ctx.path, - parent: ctx - }), - this._def.right._parseAsync({ - data: ctx.data, - path: ctx.path, - parent: ctx - }) - ]).then(([left, right]) => handleParsed(left, right)); - } else { - return handleParsed(this._def.left._parseSync({ - data: ctx.data, - path: ctx.path, - parent: ctx - }), this._def.right._parseSync({ - data: ctx.data, - path: ctx.path, - parent: ctx - })); - } - } -} -ZodIntersection2.create = (left, right, params) => { - return new ZodIntersection2({ - left, - right, - typeName: ZodFirstPartyTypeKind.ZodIntersection, - ...processCreateParams(params) - }); -}; - -class ZodTuple extends ZodType2 { - _parse(input) { - const { status, ctx } = this._processInputParams(input); - if (ctx.parsedType !== ZodParsedType.array) { - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.array, - received: ctx.parsedType - }); - return INVALID; - } - if (ctx.data.length < this._def.items.length) { - addIssueToContext(ctx, { - code: ZodIssueCode.too_small, - minimum: this._def.items.length, - inclusive: true, - exact: false, - type: "array" - }); - return INVALID; - } - const rest = this._def.rest; - if (!rest && ctx.data.length > this._def.items.length) { - addIssueToContext(ctx, { - code: ZodIssueCode.too_big, - maximum: this._def.items.length, - inclusive: true, - exact: false, - type: "array" - }); - status.dirty(); - } - const items = [...ctx.data].map((item, itemIndex) => { - const schema = this._def.items[itemIndex] || this._def.rest; - if (!schema) - return null; - return schema._parse(new ParseInputLazyPath(ctx, item, ctx.path, itemIndex)); - }).filter((x) => !!x); - if (ctx.common.async) { - return Promise.all(items).then((results) => { - return ParseStatus.mergeArray(status, results); - }); - } else { - return ParseStatus.mergeArray(status, items); - } - } - get items() { - return this._def.items; - } - rest(rest) { - return new ZodTuple({ - ...this._def, - rest - }); - } -} -ZodTuple.create = (schemas3, params) => { - if (!Array.isArray(schemas3)) { - throw new Error("You must pass an array of schemas to z.tuple([ ... ])"); - } - return new ZodTuple({ - items: schemas3, - typeName: ZodFirstPartyTypeKind.ZodTuple, - rest: null, - ...processCreateParams(params) - }); -}; - -class ZodRecord2 extends ZodType2 { - get keySchema() { - return this._def.keyType; - } - get valueSchema() { - return this._def.valueType; - } - _parse(input) { - const { status, ctx } = this._processInputParams(input); - if (ctx.parsedType !== ZodParsedType.object) { - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.object, - received: ctx.parsedType - }); - return INVALID; - } - const pairs = []; - const keyType = this._def.keyType; - const valueType = this._def.valueType; - for (const key in ctx.data) { - pairs.push({ - key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, key)), - value: valueType._parse(new ParseInputLazyPath(ctx, ctx.data[key], ctx.path, key)), - alwaysSet: key in ctx.data - }); - } - if (ctx.common.async) { - return ParseStatus.mergeObjectAsync(status, pairs); - } else { - return ParseStatus.mergeObjectSync(status, pairs); - } - } - get element() { - return this._def.valueType; - } - static create(first, second, third) { - if (second instanceof ZodType2) { - return new ZodRecord2({ - keyType: first, - valueType: second, - typeName: ZodFirstPartyTypeKind.ZodRecord, - ...processCreateParams(third) - }); - } - return new ZodRecord2({ - keyType: ZodString2.create(), - valueType: first, - typeName: ZodFirstPartyTypeKind.ZodRecord, - ...processCreateParams(second) - }); - } -} - -class ZodMap extends ZodType2 { - get keySchema() { - return this._def.keyType; - } - get valueSchema() { - return this._def.valueType; - } - _parse(input) { - const { status, ctx } = this._processInputParams(input); - if (ctx.parsedType !== ZodParsedType.map) { - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.map, - received: ctx.parsedType - }); - return INVALID; - } - const keyType = this._def.keyType; - const valueType = this._def.valueType; - const pairs = [...ctx.data.entries()].map(([key, value], index) => { - return { - key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, [index, "key"])), - value: valueType._parse(new ParseInputLazyPath(ctx, value, ctx.path, [index, "value"])) - }; - }); - if (ctx.common.async) { - const finalMap = new Map; - return Promise.resolve().then(async () => { - for (const pair of pairs) { - const key = await pair.key; - const value = await pair.value; - if (key.status === "aborted" || value.status === "aborted") { - return INVALID; - } - if (key.status === "dirty" || value.status === "dirty") { - status.dirty(); - } - finalMap.set(key.value, value.value); - } - return { status: status.value, value: finalMap }; - }); - } else { - const finalMap = new Map; - for (const pair of pairs) { - const key = pair.key; - const value = pair.value; - if (key.status === "aborted" || value.status === "aborted") { - return INVALID; - } - if (key.status === "dirty" || value.status === "dirty") { - status.dirty(); - } - finalMap.set(key.value, value.value); - } - return { status: status.value, value: finalMap }; - } - } -} -ZodMap.create = (keyType, valueType, params) => { - return new ZodMap({ - valueType, - keyType, - typeName: ZodFirstPartyTypeKind.ZodMap, - ...processCreateParams(params) - }); -}; - -class ZodSet extends ZodType2 { - _parse(input) { - const { status, ctx } = this._processInputParams(input); - if (ctx.parsedType !== ZodParsedType.set) { - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.set, - received: ctx.parsedType - }); - return INVALID; - } - const def = this._def; - if (def.minSize !== null) { - if (ctx.data.size < def.minSize.value) { - addIssueToContext(ctx, { - code: ZodIssueCode.too_small, - minimum: def.minSize.value, - type: "set", - inclusive: true, - exact: false, - message: def.minSize.message - }); - status.dirty(); - } - } - if (def.maxSize !== null) { - if (ctx.data.size > def.maxSize.value) { - addIssueToContext(ctx, { - code: ZodIssueCode.too_big, - maximum: def.maxSize.value, - type: "set", - inclusive: true, - exact: false, - message: def.maxSize.message - }); - status.dirty(); - } - } - const valueType = this._def.valueType; - function finalizeSet(elements2) { - const parsedSet = new Set; - for (const element of elements2) { - if (element.status === "aborted") - return INVALID; - if (element.status === "dirty") - status.dirty(); - parsedSet.add(element.value); - } - return { status: status.value, value: parsedSet }; - } - const elements = [...ctx.data.values()].map((item, i) => valueType._parse(new ParseInputLazyPath(ctx, item, ctx.path, i))); - if (ctx.common.async) { - return Promise.all(elements).then((elements2) => finalizeSet(elements2)); - } else { - return finalizeSet(elements); - } - } - min(minSize, message) { - return new ZodSet({ - ...this._def, - minSize: { value: minSize, message: errorUtil.toString(message) } - }); - } - max(maxSize, message) { - return new ZodSet({ - ...this._def, - maxSize: { value: maxSize, message: errorUtil.toString(message) } - }); - } - size(size, message) { - return this.min(size, message).max(size, message); - } - nonempty(message) { - return this.min(1, message); - } -} -ZodSet.create = (valueType, params) => { - return new ZodSet({ - valueType, - minSize: null, - maxSize: null, - typeName: ZodFirstPartyTypeKind.ZodSet, - ...processCreateParams(params) - }); -}; - -class ZodFunction extends ZodType2 { - constructor() { - super(...arguments); - this.validate = this.implement; - } - _parse(input) { - const { ctx } = this._processInputParams(input); - if (ctx.parsedType !== ZodParsedType.function) { - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.function, - received: ctx.parsedType - }); - return INVALID; - } - function makeArgsIssue(args, error2) { - return makeIssue({ - data: args, - path: ctx.path, - errorMaps: [ctx.common.contextualErrorMap, ctx.schemaErrorMap, getErrorMap(), en_default2].filter((x) => !!x), - issueData: { - code: ZodIssueCode.invalid_arguments, - argumentsError: error2 - } - }); - } - function makeReturnsIssue(returns, error2) { - return makeIssue({ - data: returns, - path: ctx.path, - errorMaps: [ctx.common.contextualErrorMap, ctx.schemaErrorMap, getErrorMap(), en_default2].filter((x) => !!x), - issueData: { - code: ZodIssueCode.invalid_return_type, - returnTypeError: error2 - } - }); - } - const params = { errorMap: ctx.common.contextualErrorMap }; - const fn = ctx.data; - if (this._def.returns instanceof ZodPromise) { - const me = this; - return OK(async function(...args) { - const error2 = new ZodError2([]); - const parsedArgs = await me._def.args.parseAsync(args, params).catch((e) => { - error2.addIssue(makeArgsIssue(args, e)); - throw error2; - }); - const result = await Reflect.apply(fn, this, parsedArgs); - const parsedReturns = await me._def.returns._def.type.parseAsync(result, params).catch((e) => { - error2.addIssue(makeReturnsIssue(result, e)); - throw error2; - }); - return parsedReturns; - }); - } else { - const me = this; - return OK(function(...args) { - const parsedArgs = me._def.args.safeParse(args, params); - if (!parsedArgs.success) { - throw new ZodError2([makeArgsIssue(args, parsedArgs.error)]); - } - const result = Reflect.apply(fn, this, parsedArgs.data); - const parsedReturns = me._def.returns.safeParse(result, params); - if (!parsedReturns.success) { - throw new ZodError2([makeReturnsIssue(result, parsedReturns.error)]); - } - return parsedReturns.data; - }); - } - } - parameters() { - return this._def.args; - } - returnType() { - return this._def.returns; - } - args(...items) { - return new ZodFunction({ - ...this._def, - args: ZodTuple.create(items).rest(ZodUnknown2.create()) - }); - } - returns(returnType) { - return new ZodFunction({ - ...this._def, - returns: returnType - }); - } - implement(func) { - const validatedFunc = this.parse(func); - return validatedFunc; - } - strictImplement(func) { - const validatedFunc = this.parse(func); - return validatedFunc; - } - static create(args, returns, params) { - return new ZodFunction({ - args: args ? args : ZodTuple.create([]).rest(ZodUnknown2.create()), - returns: returns || ZodUnknown2.create(), - typeName: ZodFirstPartyTypeKind.ZodFunction, - ...processCreateParams(params) - }); - } -} - -class ZodLazy extends ZodType2 { - get schema() { - return this._def.getter(); - } - _parse(input) { - const { ctx } = this._processInputParams(input); - const lazySchema = this._def.getter(); - return lazySchema._parse({ data: ctx.data, path: ctx.path, parent: ctx }); - } -} -ZodLazy.create = (getter, params) => { - return new ZodLazy({ - getter, - typeName: ZodFirstPartyTypeKind.ZodLazy, - ...processCreateParams(params) - }); -}; - -class ZodLiteral2 extends ZodType2 { - _parse(input) { - if (input.data !== this._def.value) { - const ctx = this._getOrReturnCtx(input); - addIssueToContext(ctx, { - received: ctx.data, - code: ZodIssueCode.invalid_literal, - expected: this._def.value - }); - return INVALID; - } - return { status: "valid", value: input.data }; - } - get value() { - return this._def.value; - } -} -ZodLiteral2.create = (value, params) => { - return new ZodLiteral2({ - value, - typeName: ZodFirstPartyTypeKind.ZodLiteral, - ...processCreateParams(params) - }); -}; -function createZodEnum(values, params) { - return new ZodEnum2({ - values, - typeName: ZodFirstPartyTypeKind.ZodEnum, - ...processCreateParams(params) - }); -} - -class ZodEnum2 extends ZodType2 { - _parse(input) { - if (typeof input.data !== "string") { - const ctx = this._getOrReturnCtx(input); - const expectedValues = this._def.values; - addIssueToContext(ctx, { - expected: util.joinValues(expectedValues), - received: ctx.parsedType, - code: ZodIssueCode.invalid_type - }); - return INVALID; - } - if (!this._cache) { - this._cache = new Set(this._def.values); - } - if (!this._cache.has(input.data)) { - const ctx = this._getOrReturnCtx(input); - const expectedValues = this._def.values; - addIssueToContext(ctx, { - received: ctx.data, - code: ZodIssueCode.invalid_enum_value, - options: expectedValues - }); - return INVALID; - } - return OK(input.data); - } - get options() { - return this._def.values; - } - get enum() { - const enumValues = {}; - for (const val of this._def.values) { - enumValues[val] = val; - } - return enumValues; - } - get Values() { - const enumValues = {}; - for (const val of this._def.values) { - enumValues[val] = val; - } - return enumValues; - } - get Enum() { - const enumValues = {}; - for (const val of this._def.values) { - enumValues[val] = val; - } - return enumValues; - } - extract(values, newDef = this._def) { - return ZodEnum2.create(values, { - ...this._def, - ...newDef - }); - } - exclude(values, newDef = this._def) { - return ZodEnum2.create(this.options.filter((opt) => !values.includes(opt)), { - ...this._def, - ...newDef - }); - } -} -ZodEnum2.create = createZodEnum; - -class ZodNativeEnum extends ZodType2 { - _parse(input) { - const nativeEnumValues = util.getValidEnumValues(this._def.values); - const ctx = this._getOrReturnCtx(input); - if (ctx.parsedType !== ZodParsedType.string && ctx.parsedType !== ZodParsedType.number) { - const expectedValues = util.objectValues(nativeEnumValues); - addIssueToContext(ctx, { - expected: util.joinValues(expectedValues), - received: ctx.parsedType, - code: ZodIssueCode.invalid_type - }); - return INVALID; - } - if (!this._cache) { - this._cache = new Set(util.getValidEnumValues(this._def.values)); - } - if (!this._cache.has(input.data)) { - const expectedValues = util.objectValues(nativeEnumValues); - addIssueToContext(ctx, { - received: ctx.data, - code: ZodIssueCode.invalid_enum_value, - options: expectedValues - }); - return INVALID; - } - return OK(input.data); - } - get enum() { - return this._def.values; - } -} -ZodNativeEnum.create = (values, params) => { - return new ZodNativeEnum({ - values, - typeName: ZodFirstPartyTypeKind.ZodNativeEnum, - ...processCreateParams(params) - }); -}; - -class ZodPromise extends ZodType2 { - unwrap() { - return this._def.type; - } - _parse(input) { - const { ctx } = this._processInputParams(input); - if (ctx.parsedType !== ZodParsedType.promise && ctx.common.async === false) { - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.promise, - received: ctx.parsedType - }); - return INVALID; - } - const promisified = ctx.parsedType === ZodParsedType.promise ? ctx.data : Promise.resolve(ctx.data); - return OK(promisified.then((data) => { - return this._def.type.parseAsync(data, { - path: ctx.path, - errorMap: ctx.common.contextualErrorMap - }); - })); - } -} -ZodPromise.create = (schema, params) => { - return new ZodPromise({ - type: schema, - typeName: ZodFirstPartyTypeKind.ZodPromise, - ...processCreateParams(params) - }); -}; - -class ZodEffects extends ZodType2 { - innerType() { - return this._def.schema; - } - sourceType() { - return this._def.schema._def.typeName === ZodFirstPartyTypeKind.ZodEffects ? this._def.schema.sourceType() : this._def.schema; - } - _parse(input) { - const { status, ctx } = this._processInputParams(input); - const effect = this._def.effect || null; - const checkCtx = { - addIssue: (arg) => { - addIssueToContext(ctx, arg); - if (arg.fatal) { - status.abort(); - } else { - status.dirty(); - } - }, - get path() { - return ctx.path; - } - }; - checkCtx.addIssue = checkCtx.addIssue.bind(checkCtx); - if (effect.type === "preprocess") { - const processed = effect.transform(ctx.data, checkCtx); - if (ctx.common.async) { - return Promise.resolve(processed).then(async (processed2) => { - if (status.value === "aborted") - return INVALID; - const result = await this._def.schema._parseAsync({ - data: processed2, - path: ctx.path, - parent: ctx - }); - if (result.status === "aborted") - return INVALID; - if (result.status === "dirty") - return DIRTY(result.value); - if (status.value === "dirty") - return DIRTY(result.value); - return result; - }); - } else { - if (status.value === "aborted") - return INVALID; - const result = this._def.schema._parseSync({ - data: processed, - path: ctx.path, - parent: ctx - }); - if (result.status === "aborted") - return INVALID; - if (result.status === "dirty") - return DIRTY(result.value); - if (status.value === "dirty") - return DIRTY(result.value); - return result; - } - } - if (effect.type === "refinement") { - const executeRefinement = (acc) => { - const result = effect.refinement(acc, checkCtx); - if (ctx.common.async) { - return Promise.resolve(result); - } - if (result instanceof Promise) { - throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead."); - } - return acc; - }; - if (ctx.common.async === false) { - const inner = this._def.schema._parseSync({ - data: ctx.data, - path: ctx.path, - parent: ctx - }); - if (inner.status === "aborted") - return INVALID; - if (inner.status === "dirty") - status.dirty(); - executeRefinement(inner.value); - return { status: status.value, value: inner.value }; - } else { - return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((inner) => { - if (inner.status === "aborted") - return INVALID; - if (inner.status === "dirty") - status.dirty(); - return executeRefinement(inner.value).then(() => { - return { status: status.value, value: inner.value }; - }); - }); - } - } - if (effect.type === "transform") { - if (ctx.common.async === false) { - const base = this._def.schema._parseSync({ - data: ctx.data, - path: ctx.path, - parent: ctx - }); - if (!isValid(base)) - return INVALID; - const result = effect.transform(base.value, checkCtx); - if (result instanceof Promise) { - throw new Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`); - } - return { status: status.value, value: result }; - } else { - return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((base) => { - if (!isValid(base)) - return INVALID; - return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({ - status: status.value, - value: result - })); - }); - } - } - util.assertNever(effect); - } -} -ZodEffects.create = (schema, effect, params) => { - return new ZodEffects({ - schema, - typeName: ZodFirstPartyTypeKind.ZodEffects, - effect, - ...processCreateParams(params) - }); -}; -ZodEffects.createWithPreprocess = (preprocess2, schema, params) => { - return new ZodEffects({ - schema, - effect: { type: "preprocess", transform: preprocess2 }, - typeName: ZodFirstPartyTypeKind.ZodEffects, - ...processCreateParams(params) - }); -}; - -class ZodOptional2 extends ZodType2 { - _parse(input) { - const parsedType2 = this._getType(input); - if (parsedType2 === ZodParsedType.undefined) { - return OK(undefined); - } - return this._def.innerType._parse(input); - } - unwrap() { - return this._def.innerType; - } -} -ZodOptional2.create = (type, params) => { - return new ZodOptional2({ - innerType: type, - typeName: ZodFirstPartyTypeKind.ZodOptional, - ...processCreateParams(params) - }); -}; - -class ZodNullable2 extends ZodType2 { - _parse(input) { - const parsedType2 = this._getType(input); - if (parsedType2 === ZodParsedType.null) { - return OK(null); - } - return this._def.innerType._parse(input); - } - unwrap() { - return this._def.innerType; - } -} -ZodNullable2.create = (type, params) => { - return new ZodNullable2({ - innerType: type, - typeName: ZodFirstPartyTypeKind.ZodNullable, - ...processCreateParams(params) - }); -}; - -class ZodDefault2 extends ZodType2 { - _parse(input) { - const { ctx } = this._processInputParams(input); - let data = ctx.data; - if (ctx.parsedType === ZodParsedType.undefined) { - data = this._def.defaultValue(); - } - return this._def.innerType._parse({ - data, - path: ctx.path, - parent: ctx - }); - } - removeDefault() { - return this._def.innerType; - } -} -ZodDefault2.create = (type, params) => { - return new ZodDefault2({ - innerType: type, - typeName: ZodFirstPartyTypeKind.ZodDefault, - defaultValue: typeof params.default === "function" ? params.default : () => params.default, - ...processCreateParams(params) - }); -}; - -class ZodCatch2 extends ZodType2 { - _parse(input) { - const { ctx } = this._processInputParams(input); - const newCtx = { - ...ctx, - common: { - ...ctx.common, - issues: [] - } - }; - const result = this._def.innerType._parse({ - data: newCtx.data, - path: newCtx.path, - parent: { - ...newCtx - } - }); - if (isAsync(result)) { - return result.then((result2) => { - return { - status: "valid", - value: result2.status === "valid" ? result2.value : this._def.catchValue({ - get error() { - return new ZodError2(newCtx.common.issues); - }, - input: newCtx.data - }) - }; - }); - } else { - return { - status: "valid", - value: result.status === "valid" ? result.value : this._def.catchValue({ - get error() { - return new ZodError2(newCtx.common.issues); - }, - input: newCtx.data - }) - }; - } - } - removeCatch() { - return this._def.innerType; - } -} -ZodCatch2.create = (type, params) => { - return new ZodCatch2({ - innerType: type, - typeName: ZodFirstPartyTypeKind.ZodCatch, - catchValue: typeof params.catch === "function" ? params.catch : () => params.catch, - ...processCreateParams(params) - }); -}; - -class ZodNaN extends ZodType2 { - _parse(input) { - const parsedType2 = this._getType(input); - if (parsedType2 !== ZodParsedType.nan) { - const ctx = this._getOrReturnCtx(input); - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.nan, - received: ctx.parsedType - }); - return INVALID; - } - return { status: "valid", value: input.data }; - } -} -ZodNaN.create = (params) => { - return new ZodNaN({ - typeName: ZodFirstPartyTypeKind.ZodNaN, - ...processCreateParams(params) - }); -}; -var BRAND = Symbol("zod_brand"); - -class ZodBranded extends ZodType2 { - _parse(input) { - const { ctx } = this._processInputParams(input); - const data = ctx.data; - return this._def.type._parse({ - data, - path: ctx.path, - parent: ctx - }); - } - unwrap() { - return this._def.type; - } -} - -class ZodPipeline extends ZodType2 { - _parse(input) { - const { status, ctx } = this._processInputParams(input); - if (ctx.common.async) { - const handleAsync = async () => { - const inResult = await this._def.in._parseAsync({ - data: ctx.data, - path: ctx.path, - parent: ctx - }); - if (inResult.status === "aborted") - return INVALID; - if (inResult.status === "dirty") { - status.dirty(); - return DIRTY(inResult.value); - } else { - return this._def.out._parseAsync({ - data: inResult.value, - path: ctx.path, - parent: ctx - }); - } - }; - return handleAsync(); - } else { - const inResult = this._def.in._parseSync({ - data: ctx.data, - path: ctx.path, - parent: ctx - }); - if (inResult.status === "aborted") - return INVALID; - if (inResult.status === "dirty") { - status.dirty(); - return { - status: "dirty", - value: inResult.value - }; - } else { - return this._def.out._parseSync({ - data: inResult.value, - path: ctx.path, - parent: ctx - }); - } - } - } - static create(a, b) { - return new ZodPipeline({ - in: a, - out: b, - typeName: ZodFirstPartyTypeKind.ZodPipeline - }); - } -} - -class ZodReadonly2 extends ZodType2 { - _parse(input) { - const result = this._def.innerType._parse(input); - const freeze = (data) => { - if (isValid(data)) { - data.value = Object.freeze(data.value); - } - return data; - }; - return isAsync(result) ? result.then((data) => freeze(data)) : freeze(result); - } - unwrap() { - return this._def.innerType; - } -} -ZodReadonly2.create = (type, params) => { - return new ZodReadonly2({ - innerType: type, - typeName: ZodFirstPartyTypeKind.ZodReadonly, - ...processCreateParams(params) - }); -}; -var late = { - object: ZodObject2.lazycreate -}; -var ZodFirstPartyTypeKind; -(function(ZodFirstPartyTypeKind2) { - ZodFirstPartyTypeKind2["ZodString"] = "ZodString"; - ZodFirstPartyTypeKind2["ZodNumber"] = "ZodNumber"; - ZodFirstPartyTypeKind2["ZodNaN"] = "ZodNaN"; - ZodFirstPartyTypeKind2["ZodBigInt"] = "ZodBigInt"; - ZodFirstPartyTypeKind2["ZodBoolean"] = "ZodBoolean"; - ZodFirstPartyTypeKind2["ZodDate"] = "ZodDate"; - ZodFirstPartyTypeKind2["ZodSymbol"] = "ZodSymbol"; - ZodFirstPartyTypeKind2["ZodUndefined"] = "ZodUndefined"; - ZodFirstPartyTypeKind2["ZodNull"] = "ZodNull"; - ZodFirstPartyTypeKind2["ZodAny"] = "ZodAny"; - ZodFirstPartyTypeKind2["ZodUnknown"] = "ZodUnknown"; - ZodFirstPartyTypeKind2["ZodNever"] = "ZodNever"; - ZodFirstPartyTypeKind2["ZodVoid"] = "ZodVoid"; - ZodFirstPartyTypeKind2["ZodArray"] = "ZodArray"; - ZodFirstPartyTypeKind2["ZodObject"] = "ZodObject"; - ZodFirstPartyTypeKind2["ZodUnion"] = "ZodUnion"; - ZodFirstPartyTypeKind2["ZodDiscriminatedUnion"] = "ZodDiscriminatedUnion"; - ZodFirstPartyTypeKind2["ZodIntersection"] = "ZodIntersection"; - ZodFirstPartyTypeKind2["ZodTuple"] = "ZodTuple"; - ZodFirstPartyTypeKind2["ZodRecord"] = "ZodRecord"; - ZodFirstPartyTypeKind2["ZodMap"] = "ZodMap"; - ZodFirstPartyTypeKind2["ZodSet"] = "ZodSet"; - ZodFirstPartyTypeKind2["ZodFunction"] = "ZodFunction"; - ZodFirstPartyTypeKind2["ZodLazy"] = "ZodLazy"; - ZodFirstPartyTypeKind2["ZodLiteral"] = "ZodLiteral"; - ZodFirstPartyTypeKind2["ZodEnum"] = "ZodEnum"; - ZodFirstPartyTypeKind2["ZodEffects"] = "ZodEffects"; - ZodFirstPartyTypeKind2["ZodNativeEnum"] = "ZodNativeEnum"; - ZodFirstPartyTypeKind2["ZodOptional"] = "ZodOptional"; - ZodFirstPartyTypeKind2["ZodNullable"] = "ZodNullable"; - ZodFirstPartyTypeKind2["ZodDefault"] = "ZodDefault"; - ZodFirstPartyTypeKind2["ZodCatch"] = "ZodCatch"; - ZodFirstPartyTypeKind2["ZodPromise"] = "ZodPromise"; - ZodFirstPartyTypeKind2["ZodBranded"] = "ZodBranded"; - ZodFirstPartyTypeKind2["ZodPipeline"] = "ZodPipeline"; - ZodFirstPartyTypeKind2["ZodReadonly"] = "ZodReadonly"; -})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {})); -var stringType = ZodString2.create; -var numberType = ZodNumber2.create; -var nanType = ZodNaN.create; -var bigIntType = ZodBigInt.create; -var booleanType = ZodBoolean2.create; -var dateType = ZodDate.create; -var symbolType = ZodSymbol.create; -var undefinedType = ZodUndefined.create; -var nullType = ZodNull2.create; -var anyType = ZodAny.create; -var unknownType = ZodUnknown2.create; -var neverType = ZodNever2.create; -var voidType = ZodVoid.create; -var arrayType = ZodArray2.create; -var objectType = ZodObject2.create; -var strictObjectType = ZodObject2.strictCreate; -var unionType = ZodUnion2.create; -var discriminatedUnionType = ZodDiscriminatedUnion2.create; -var intersectionType = ZodIntersection2.create; -var tupleType = ZodTuple.create; -var recordType = ZodRecord2.create; -var mapType = ZodMap.create; -var setType = ZodSet.create; -var functionType = ZodFunction.create; -var lazyType = ZodLazy.create; -var literalType = ZodLiteral2.create; -var enumType = ZodEnum2.create; -var nativeEnumType = ZodNativeEnum.create; -var promiseType = ZodPromise.create; -var effectsType = ZodEffects.create; -var optionalType = ZodOptional2.create; -var nullableType = ZodNullable2.create; -var preprocessType = ZodEffects.createWithPreprocess; -var pipelineType = ZodPipeline.create; -var NEVER2 = Object.freeze({ - status: "aborted" -}); -function $constructor2(name, initializer3, params) { - function init(inst, def) { - var _a2; - Object.defineProperty(inst, "_zod", { - value: inst._zod ?? {}, - enumerable: false - }); - (_a2 = inst._zod).traits ?? (_a2.traits = new Set); - inst._zod.traits.add(name); - initializer3(inst, def); - for (const k in _.prototype) { - if (!(k in inst)) - Object.defineProperty(inst, k, { value: _.prototype[k].bind(inst) }); - } - inst._zod.constr = _; - inst._zod.def = def; - } - const Parent = params?.Parent ?? Object; - - class Definition extends Parent { - } - Object.defineProperty(Definition, "name", { value: name }); - function _(def) { - var _a2; - const inst = params?.Parent ? new Definition : this; - init(inst, def); - (_a2 = inst._zod).deferred ?? (_a2.deferred = []); - for (const fn of inst._zod.deferred) { - fn(); - } - return inst; - } - Object.defineProperty(_, "init", { value: init }); - Object.defineProperty(_, Symbol.hasInstance, { - value: (inst) => { - if (params?.Parent && inst instanceof params.Parent) - return true; - return inst?._zod?.traits?.has(name); - } - }); - Object.defineProperty(_, "name", { value: name }); - return _; -} -var $brand2 = Symbol("zod_brand"); - -class $ZodAsyncError2 extends Error { - constructor() { - super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`); - } -} -var globalConfig2 = {}; -function config2(newConfig) { - if (newConfig) - Object.assign(globalConfig2, newConfig); - return globalConfig2; -} -var exports_util2 = {}; -__export2(exports_util2, { - unwrapMessage: () => unwrapMessage2, - stringifyPrimitive: () => stringifyPrimitive2, - required: () => required2, - randomString: () => randomString2, - propertyKeyTypes: () => propertyKeyTypes2, - promiseAllObject: () => promiseAllObject2, - primitiveTypes: () => primitiveTypes2, - prefixIssues: () => prefixIssues2, - pick: () => pick2, - partial: () => partial2, - optionalKeys: () => optionalKeys2, - omit: () => omit2, - numKeys: () => numKeys2, - nullish: () => nullish2, - normalizeParams: () => normalizeParams2, - merge: () => merge2, - jsonStringifyReplacer: () => jsonStringifyReplacer2, - joinValues: () => joinValues2, - issue: () => issue2, - isPlainObject: () => isPlainObject3, - isObject: () => isObject22, - getSizableOrigin: () => getSizableOrigin2, - getParsedType: () => getParsedType22, - getLengthableOrigin: () => getLengthableOrigin2, - getEnumValues: () => getEnumValues2, - getElementAtPath: () => getElementAtPath2, - floatSafeRemainder: () => floatSafeRemainder22, - finalizeIssue: () => finalizeIssue2, - extend: () => extend2, - escapeRegex: () => escapeRegex2, - esc: () => esc2, - defineLazy: () => defineLazy2, - createTransparentProxy: () => createTransparentProxy2, - clone: () => clone2, - cleanRegex: () => cleanRegex2, - cleanEnum: () => cleanEnum2, - captureStackTrace: () => captureStackTrace2, - cached: () => cached2, - assignProp: () => assignProp2, - assertNotEqual: () => assertNotEqual2, - assertNever: () => assertNever2, - assertIs: () => assertIs2, - assertEqual: () => assertEqual2, - assert: () => assert2, - allowsEval: () => allowsEval2, - aborted: () => aborted2, - NUMBER_FORMAT_RANGES: () => NUMBER_FORMAT_RANGES2, - Class: () => Class2, - BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES2 -}); -function assertEqual2(val) { - return val; -} -function assertNotEqual2(val) { - return val; -} -function assertIs2(_arg) {} -function assertNever2(_x) { - throw new Error; -} -function assert2(_) {} -function getEnumValues2(entries) { - const numericValues = Object.values(entries).filter((v) => typeof v === "number"); - const values = Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v); - return values; -} -function joinValues2(array3, separator = "|") { - return array3.map((val) => stringifyPrimitive2(val)).join(separator); -} -function jsonStringifyReplacer2(_, value) { - if (typeof value === "bigint") - return value.toString(); - return value; -} -function cached2(getter) { - const set2 = false; - return { - get value() { - if (!set2) { - const value = getter(); - Object.defineProperty(this, "value", { value }); - return value; - } - throw new Error("cached value already set"); - } - }; -} -function nullish2(input) { - return input === null || input === undefined; -} -function cleanRegex2(source) { - const start = source.startsWith("^") ? 1 : 0; - const end = source.endsWith("$") ? source.length - 1 : source.length; - return source.slice(start, end); -} -function floatSafeRemainder22(val, step) { - const valDecCount = (val.toString().split(".")[1] || "").length; - const stepDecCount = (step.toString().split(".")[1] || "").length; - const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount; - const valInt = Number.parseInt(val.toFixed(decCount).replace(".", "")); - const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", "")); - return valInt % stepInt / 10 ** decCount; -} -function defineLazy2(object4, key, getter) { - const set2 = false; - Object.defineProperty(object4, key, { - get() { - if (!set2) { - const value = getter(); - object4[key] = value; - return value; - } - throw new Error("cached value already set"); - }, - set(v) { - Object.defineProperty(object4, key, { - value: v - }); - }, - configurable: true - }); -} -function assignProp2(target, prop, value) { - Object.defineProperty(target, prop, { - value, - writable: true, - enumerable: true, - configurable: true - }); -} -function getElementAtPath2(obj, path13) { - if (!path13) - return obj; - return path13.reduce((acc, key) => acc?.[key], obj); -} -function promiseAllObject2(promisesObj) { - const keys = Object.keys(promisesObj); - const promises2 = keys.map((key) => promisesObj[key]); - return Promise.all(promises2).then((results) => { - const resolvedObj = {}; - for (let i = 0;i < keys.length; i++) { - resolvedObj[keys[i]] = results[i]; - } - return resolvedObj; - }); -} -function randomString2(length = 10) { - const chars = "abcdefghijklmnopqrstuvwxyz"; - let str = ""; - for (let i = 0;i < length; i++) { - str += chars[Math.floor(Math.random() * chars.length)]; - } - return str; -} -function esc2(str) { - return JSON.stringify(str); -} -var captureStackTrace2 = Error.captureStackTrace ? Error.captureStackTrace : (..._args) => {}; -function isObject22(data) { - return typeof data === "object" && data !== null && !Array.isArray(data); -} -var allowsEval2 = cached2(() => { - if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) { - return false; - } - try { - const F = Function; - new F(""); - return true; - } catch (_) { - return false; - } -}); -function isPlainObject3(o) { - if (isObject22(o) === false) - return false; - const ctor = o.constructor; - if (ctor === undefined) - return true; - const prot = ctor.prototype; - if (isObject22(prot) === false) - return false; - if (Object.prototype.hasOwnProperty.call(prot, "isPrototypeOf") === false) { - return false; - } - return true; -} -function numKeys2(data) { - let keyCount = 0; - for (const key in data) { - if (Object.prototype.hasOwnProperty.call(data, key)) { - keyCount++; - } - } - return keyCount; -} -var getParsedType22 = (data) => { - const t = typeof data; - switch (t) { - case "undefined": - return "undefined"; - case "string": - return "string"; - case "number": - return Number.isNaN(data) ? "nan" : "number"; - case "boolean": - return "boolean"; - case "function": - return "function"; - case "bigint": - return "bigint"; - case "symbol": - return "symbol"; - case "object": - if (Array.isArray(data)) { - return "array"; - } - if (data === null) { - return "null"; - } - if (data.then && typeof data.then === "function" && data.catch && typeof data.catch === "function") { - return "promise"; - } - if (typeof Map !== "undefined" && data instanceof Map) { - return "map"; - } - if (typeof Set !== "undefined" && data instanceof Set) { - return "set"; - } - if (typeof Date !== "undefined" && data instanceof Date) { - return "date"; - } - if (typeof File !== "undefined" && data instanceof File) { - return "file"; - } - return "object"; - default: - throw new Error(`Unknown data type: ${t}`); - } -}; -var propertyKeyTypes2 = new Set(["string", "number", "symbol"]); -var primitiveTypes2 = new Set(["string", "number", "bigint", "boolean", "symbol", "undefined"]); -function escapeRegex2(str) { - return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); -} -function clone2(inst, def, params) { - const cl = new inst._zod.constr(def ?? inst._zod.def); - if (!def || params?.parent) - cl._zod.parent = inst; - return cl; -} -function normalizeParams2(_params) { - const params = _params; - if (!params) - return {}; - if (typeof params === "string") - return { error: () => params }; - if (params?.message !== undefined) { - if (params?.error !== undefined) - throw new Error("Cannot specify both `message` and `error` params"); - params.error = params.message; - } - delete params.message; - if (typeof params.error === "string") - return { ...params, error: () => params.error }; - return params; -} -function createTransparentProxy2(getter) { - let target; - return new Proxy({}, { - get(_, prop, receiver) { - target ?? (target = getter()); - return Reflect.get(target, prop, receiver); - }, - set(_, prop, value, receiver) { - target ?? (target = getter()); - return Reflect.set(target, prop, value, receiver); - }, - has(_, prop) { - target ?? (target = getter()); - return Reflect.has(target, prop); - }, - deleteProperty(_, prop) { - target ?? (target = getter()); - return Reflect.deleteProperty(target, prop); - }, - ownKeys(_) { - target ?? (target = getter()); - return Reflect.ownKeys(target); - }, - getOwnPropertyDescriptor(_, prop) { - target ?? (target = getter()); - return Reflect.getOwnPropertyDescriptor(target, prop); - }, - defineProperty(_, prop, descriptor) { - target ?? (target = getter()); - return Reflect.defineProperty(target, prop, descriptor); - } - }); -} -function stringifyPrimitive2(value) { - if (typeof value === "bigint") - return value.toString() + "n"; - if (typeof value === "string") - return `"${value}"`; - return `${value}`; -} -function optionalKeys2(shape) { - return Object.keys(shape).filter((k) => { - return shape[k]._zod.optin === "optional" && shape[k]._zod.optout === "optional"; - }); -} -var NUMBER_FORMAT_RANGES2 = { - safeint: [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER], - int32: [-2147483648, 2147483647], - uint32: [0, 4294967295], - float32: [-340282346638528860000000000000000000000, 340282346638528860000000000000000000000], - float64: [-Number.MAX_VALUE, Number.MAX_VALUE] -}; -var BIGINT_FORMAT_RANGES2 = { - int64: [/* @__PURE__ */ BigInt("-9223372036854775808"), /* @__PURE__ */ BigInt("9223372036854775807")], - uint64: [/* @__PURE__ */ BigInt(0), /* @__PURE__ */ BigInt("18446744073709551615")] -}; -function pick2(schema, mask) { - const newShape = {}; - const currDef = schema._zod.def; - for (const key in mask) { - if (!(key in currDef.shape)) { - throw new Error(`Unrecognized key: "${key}"`); - } - if (!mask[key]) - continue; - newShape[key] = currDef.shape[key]; - } - return clone2(schema, { - ...schema._zod.def, - shape: newShape, - checks: [] - }); -} -function omit2(schema, mask) { - const newShape = { ...schema._zod.def.shape }; - const currDef = schema._zod.def; - for (const key in mask) { - if (!(key in currDef.shape)) { - throw new Error(`Unrecognized key: "${key}"`); - } - if (!mask[key]) - continue; - delete newShape[key]; - } - return clone2(schema, { - ...schema._zod.def, - shape: newShape, - checks: [] - }); -} -function extend2(schema, shape) { - if (!isPlainObject3(shape)) { - throw new Error("Invalid input to extend: expected a plain object"); - } - const def = { - ...schema._zod.def, - get shape() { - const _shape = { ...schema._zod.def.shape, ...shape }; - assignProp2(this, "shape", _shape); - return _shape; - }, - checks: [] - }; - return clone2(schema, def); -} -function merge2(a, b) { - return clone2(a, { - ...a._zod.def, - get shape() { - const _shape = { ...a._zod.def.shape, ...b._zod.def.shape }; - assignProp2(this, "shape", _shape); - return _shape; - }, - catchall: b._zod.def.catchall, - checks: [] - }); -} -function partial2(Class2, schema, mask) { - const oldShape = schema._zod.def.shape; - const shape = { ...oldShape }; - if (mask) { - for (const key in mask) { - if (!(key in oldShape)) { - throw new Error(`Unrecognized key: "${key}"`); - } - if (!mask[key]) - continue; - shape[key] = Class2 ? new Class2({ - type: "optional", - innerType: oldShape[key] - }) : oldShape[key]; - } - } else { - for (const key in oldShape) { - shape[key] = Class2 ? new Class2({ - type: "optional", - innerType: oldShape[key] - }) : oldShape[key]; - } - } - return clone2(schema, { - ...schema._zod.def, - shape, - checks: [] - }); -} -function required2(Class2, schema, mask) { - const oldShape = schema._zod.def.shape; - const shape = { ...oldShape }; - if (mask) { - for (const key in mask) { - if (!(key in shape)) { - throw new Error(`Unrecognized key: "${key}"`); - } - if (!mask[key]) - continue; - shape[key] = new Class2({ - type: "nonoptional", - innerType: oldShape[key] - }); - } - } else { - for (const key in oldShape) { - shape[key] = new Class2({ - type: "nonoptional", - innerType: oldShape[key] - }); - } - } - return clone2(schema, { - ...schema._zod.def, - shape, - checks: [] - }); -} -function aborted2(x, startIndex = 0) { - for (let i = startIndex;i < x.issues.length; i++) { - if (x.issues[i]?.continue !== true) - return true; - } - return false; -} -function prefixIssues2(path13, issues) { - return issues.map((iss) => { - var _a2; - (_a2 = iss).path ?? (_a2.path = []); - iss.path.unshift(path13); - return iss; - }); -} -function unwrapMessage2(message) { - return typeof message === "string" ? message : message?.message; -} -function finalizeIssue2(iss, ctx, config22) { - const full = { ...iss, path: iss.path ?? [] }; - if (!iss.message) { - const message = unwrapMessage2(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage2(ctx?.error?.(iss)) ?? unwrapMessage2(config22.customError?.(iss)) ?? unwrapMessage2(config22.localeError?.(iss)) ?? "Invalid input"; - full.message = message; - } - delete full.inst; - delete full.continue; - if (!ctx?.reportInput) { - delete full.input; - } - return full; -} -function getSizableOrigin2(input) { - if (input instanceof Set) - return "set"; - if (input instanceof Map) - return "map"; - if (input instanceof File) - return "file"; - return "unknown"; -} -function getLengthableOrigin2(input) { - if (Array.isArray(input)) - return "array"; - if (typeof input === "string") - return "string"; - return "unknown"; -} -function issue2(...args) { - const [iss, input, inst] = args; - if (typeof iss === "string") { - return { - message: iss, - code: "custom", - input, - inst - }; - } - return { ...iss }; -} -function cleanEnum2(obj) { - return Object.entries(obj).filter(([k, _]) => { - return Number.isNaN(Number.parseInt(k, 10)); - }).map((el) => el[1]); -} - -class Class2 { - constructor(..._args) {} -} -var initializer3 = (inst, def) => { - inst.name = "$ZodError"; - Object.defineProperty(inst, "_zod", { - value: inst._zod, - enumerable: false - }); - Object.defineProperty(inst, "issues", { - value: def, - enumerable: false - }); - Object.defineProperty(inst, "message", { - get() { - return JSON.stringify(def, jsonStringifyReplacer2, 2); - }, - enumerable: true - }); -}; -var $ZodError2 = $constructor2("$ZodError", initializer3); -var $ZodRealError2 = $constructor2("$ZodError", initializer3, { Parent: Error }); -function flattenError2(error2, mapper = (issue22) => issue22.message) { - const fieldErrors = {}; - const formErrors = []; - for (const sub of error2.issues) { - if (sub.path.length > 0) { - fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || []; - fieldErrors[sub.path[0]].push(mapper(sub)); - } else { - formErrors.push(mapper(sub)); - } - } - return { formErrors, fieldErrors }; -} -function formatError2(error2, _mapper) { - const mapper = _mapper || function(issue22) { - return issue22.message; - }; - const fieldErrors = { _errors: [] }; - const processError = (error22) => { - for (const issue22 of error22.issues) { - if (issue22.code === "invalid_union" && issue22.errors.length) { - issue22.errors.map((issues) => processError({ issues })); - } else if (issue22.code === "invalid_key") { - processError({ issues: issue22.issues }); - } else if (issue22.code === "invalid_element") { - processError({ issues: issue22.issues }); - } else if (issue22.path.length === 0) { - fieldErrors._errors.push(mapper(issue22)); - } else { - let curr = fieldErrors; - let i = 0; - while (i < issue22.path.length) { - const el = issue22.path[i]; - const terminal = i === issue22.path.length - 1; - if (!terminal) { - curr[el] = curr[el] || { _errors: [] }; - } else { - curr[el] = curr[el] || { _errors: [] }; - curr[el]._errors.push(mapper(issue22)); - } - curr = curr[el]; - i++; - } - } - } - }; - processError(error2); - return fieldErrors; -} -var _parse2 = (_Err) => (schema, value, _ctx, _params) => { - const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false }; - const result = schema._zod.run({ value, issues: [] }, ctx); - if (result instanceof Promise) { - throw new $ZodAsyncError2; - } - if (result.issues.length) { - const e = new (_params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue2(iss, ctx, config2()))); - captureStackTrace2(e, _params?.callee); - throw e; - } - return result.value; -}; -var _parseAsync2 = (_Err) => async (schema, value, _ctx, params) => { - const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true }; - let result = schema._zod.run({ value, issues: [] }, ctx); - if (result instanceof Promise) - result = await result; - if (result.issues.length) { - const e = new (params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue2(iss, ctx, config2()))); - captureStackTrace2(e, params?.callee); - throw e; - } - return result.value; -}; -var _safeParse2 = (_Err) => (schema, value, _ctx) => { - const ctx = _ctx ? { ..._ctx, async: false } : { async: false }; - const result = schema._zod.run({ value, issues: [] }, ctx); - if (result instanceof Promise) { - throw new $ZodAsyncError2; - } - return result.issues.length ? { - success: false, - error: new (_Err ?? $ZodError2)(result.issues.map((iss) => finalizeIssue2(iss, ctx, config2()))) - } : { success: true, data: result.value }; -}; -var safeParse4 = /* @__PURE__ */ _safeParse2($ZodRealError2); -var _safeParseAsync2 = (_Err) => async (schema, value, _ctx) => { - const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true }; - let result = schema._zod.run({ value, issues: [] }, ctx); - if (result instanceof Promise) - result = await result; - return result.issues.length ? { - success: false, - error: new _Err(result.issues.map((iss) => finalizeIssue2(iss, ctx, config2()))) - } : { success: true, data: result.value }; -}; -var safeParseAsync3 = /* @__PURE__ */ _safeParseAsync2($ZodRealError2); -var cuid3 = /^[cC][^\s-]{8,}$/; -var cuid22 = /^[0-9a-z]+$/; -var ulid2 = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/; -var xid2 = /^[0-9a-vA-V]{20}$/; -var ksuid2 = /^[A-Za-z0-9]{27}$/; -var nanoid2 = /^[a-zA-Z0-9_-]{21}$/; -var duration3 = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/; -var guid2 = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/; -var uuid2 = (version2) => { - if (!version2) - return /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/; - return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${version2}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`); -}; -var email2 = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/; -var _emoji3 = `^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`; -function emoji2() { - return new RegExp(_emoji3, "u"); -} -var ipv42 = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/; -var ipv62 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/; -var cidrv42 = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/; -var cidrv62 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/; -var base642 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/; -var base64url2 = /^[A-Za-z0-9_-]*$/; -var hostname = /^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/; -var e1642 = /^\+(?:[0-9]){6,14}[0-9]$/; -var dateSource2 = `(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`; -var date4 = /* @__PURE__ */ new RegExp(`^${dateSource2}$`); -function timeSource2(args) { - const hhmm = `(?:[01]\\d|2[0-3]):[0-5]\\d`; - const regex = typeof args.precision === "number" ? args.precision === -1 ? `${hhmm}` : args.precision === 0 ? `${hhmm}:[0-5]\\d` : `${hhmm}:[0-5]\\d\\.\\d{${args.precision}}` : `${hhmm}(?::[0-5]\\d(?:\\.\\d+)?)?`; - return regex; -} -function time3(args) { - return new RegExp(`^${timeSource2(args)}$`); -} -function datetime3(args) { - const time22 = timeSource2({ precision: args.precision }); - const opts = ["Z"]; - if (args.local) - opts.push(""); - if (args.offset) - opts.push(`([+-]\\d{2}:\\d{2})`); - const timeRegex2 = `${time22}(?:${opts.join("|")})`; - return new RegExp(`^${dateSource2}T(?:${timeRegex2})$`); -} -var string4 = (params) => { - const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`; - return new RegExp(`^${regex}$`); -}; -var integer2 = /^\d+$/; -var number4 = /^-?\d+(?:\.\d+)?/i; -var boolean4 = /true|false/i; -var _null4 = /null/i; -var lowercase2 = /^[^A-Z]*$/; -var uppercase2 = /^[^a-z]*$/; -var $ZodCheck2 = /* @__PURE__ */ $constructor2("$ZodCheck", (inst, def) => { - var _a2; - inst._zod ?? (inst._zod = {}); - inst._zod.def = def; - (_a2 = inst._zod).onattach ?? (_a2.onattach = []); -}); -var numericOriginMap2 = { - number: "number", - bigint: "bigint", - object: "date" -}; -var $ZodCheckLessThan2 = /* @__PURE__ */ $constructor2("$ZodCheckLessThan", (inst, def) => { - $ZodCheck2.init(inst, def); - const origin = numericOriginMap2[typeof def.value]; - inst._zod.onattach.push((inst2) => { - const bag = inst2._zod.bag; - const curr = (def.inclusive ? bag.maximum : bag.exclusiveMaximum) ?? Number.POSITIVE_INFINITY; - if (def.value < curr) { - if (def.inclusive) - bag.maximum = def.value; - else - bag.exclusiveMaximum = def.value; - } - }); - inst._zod.check = (payload) => { - if (def.inclusive ? payload.value <= def.value : payload.value < def.value) { - return; - } - payload.issues.push({ - origin, - code: "too_big", - maximum: def.value, - input: payload.value, - inclusive: def.inclusive, - inst, - continue: !def.abort - }); - }; -}); -var $ZodCheckGreaterThan2 = /* @__PURE__ */ $constructor2("$ZodCheckGreaterThan", (inst, def) => { - $ZodCheck2.init(inst, def); - const origin = numericOriginMap2[typeof def.value]; - inst._zod.onattach.push((inst2) => { - const bag = inst2._zod.bag; - const curr = (def.inclusive ? bag.minimum : bag.exclusiveMinimum) ?? Number.NEGATIVE_INFINITY; - if (def.value > curr) { - if (def.inclusive) - bag.minimum = def.value; - else - bag.exclusiveMinimum = def.value; - } - }); - inst._zod.check = (payload) => { - if (def.inclusive ? payload.value >= def.value : payload.value > def.value) { - return; - } - payload.issues.push({ - origin, - code: "too_small", - minimum: def.value, - input: payload.value, - inclusive: def.inclusive, - inst, - continue: !def.abort - }); - }; -}); -var $ZodCheckMultipleOf2 = /* @__PURE__ */ $constructor2("$ZodCheckMultipleOf", (inst, def) => { - $ZodCheck2.init(inst, def); - inst._zod.onattach.push((inst2) => { - var _a2; - (_a2 = inst2._zod.bag).multipleOf ?? (_a2.multipleOf = def.value); - }); - inst._zod.check = (payload) => { - if (typeof payload.value !== typeof def.value) - throw new Error("Cannot mix number and bigint in multiple_of check."); - const isMultiple = typeof payload.value === "bigint" ? payload.value % def.value === BigInt(0) : floatSafeRemainder22(payload.value, def.value) === 0; - if (isMultiple) - return; - payload.issues.push({ - origin: typeof payload.value, - code: "not_multiple_of", - divisor: def.value, - input: payload.value, - inst, - continue: !def.abort - }); - }; -}); -var $ZodCheckNumberFormat2 = /* @__PURE__ */ $constructor2("$ZodCheckNumberFormat", (inst, def) => { - $ZodCheck2.init(inst, def); - def.format = def.format || "float64"; - const isInt = def.format?.includes("int"); - const origin = isInt ? "int" : "number"; - const [minimum, maximum] = NUMBER_FORMAT_RANGES2[def.format]; - inst._zod.onattach.push((inst2) => { - const bag = inst2._zod.bag; - bag.format = def.format; - bag.minimum = minimum; - bag.maximum = maximum; - if (isInt) - bag.pattern = integer2; - }); - inst._zod.check = (payload) => { - const input = payload.value; - if (isInt) { - if (!Number.isInteger(input)) { - payload.issues.push({ - expected: origin, - format: def.format, - code: "invalid_type", - input, - inst - }); - return; - } - if (!Number.isSafeInteger(input)) { - if (input > 0) { - payload.issues.push({ - input, - code: "too_big", - maximum: Number.MAX_SAFE_INTEGER, - note: "Integers must be within the safe integer range.", - inst, - origin, - continue: !def.abort - }); - } else { - payload.issues.push({ - input, - code: "too_small", - minimum: Number.MIN_SAFE_INTEGER, - note: "Integers must be within the safe integer range.", - inst, - origin, - continue: !def.abort - }); - } - return; - } - } - if (input < minimum) { - payload.issues.push({ - origin: "number", - input, - code: "too_small", - minimum, - inclusive: true, - inst, - continue: !def.abort - }); - } - if (input > maximum) { - payload.issues.push({ - origin: "number", - input, - code: "too_big", - maximum, - inst - }); - } - }; -}); -var $ZodCheckMaxLength2 = /* @__PURE__ */ $constructor2("$ZodCheckMaxLength", (inst, def) => { - $ZodCheck2.init(inst, def); - inst._zod.when = (payload) => { - const val = payload.value; - return !nullish2(val) && val.length !== undefined; - }; - inst._zod.onattach.push((inst2) => { - const curr = inst2._zod.bag.maximum ?? Number.POSITIVE_INFINITY; - if (def.maximum < curr) - inst2._zod.bag.maximum = def.maximum; - }); - inst._zod.check = (payload) => { - const input = payload.value; - const length = input.length; - if (length <= def.maximum) - return; - const origin = getLengthableOrigin2(input); - payload.issues.push({ - origin, - code: "too_big", - maximum: def.maximum, - inclusive: true, - input, - inst, - continue: !def.abort - }); - }; -}); -var $ZodCheckMinLength2 = /* @__PURE__ */ $constructor2("$ZodCheckMinLength", (inst, def) => { - $ZodCheck2.init(inst, def); - inst._zod.when = (payload) => { - const val = payload.value; - return !nullish2(val) && val.length !== undefined; - }; - inst._zod.onattach.push((inst2) => { - const curr = inst2._zod.bag.minimum ?? Number.NEGATIVE_INFINITY; - if (def.minimum > curr) - inst2._zod.bag.minimum = def.minimum; - }); - inst._zod.check = (payload) => { - const input = payload.value; - const length = input.length; - if (length >= def.minimum) - return; - const origin = getLengthableOrigin2(input); - payload.issues.push({ - origin, - code: "too_small", - minimum: def.minimum, - inclusive: true, - input, - inst, - continue: !def.abort - }); - }; -}); -var $ZodCheckLengthEquals2 = /* @__PURE__ */ $constructor2("$ZodCheckLengthEquals", (inst, def) => { - $ZodCheck2.init(inst, def); - inst._zod.when = (payload) => { - const val = payload.value; - return !nullish2(val) && val.length !== undefined; - }; - inst._zod.onattach.push((inst2) => { - const bag = inst2._zod.bag; - bag.minimum = def.length; - bag.maximum = def.length; - bag.length = def.length; - }); - inst._zod.check = (payload) => { - const input = payload.value; - const length = input.length; - if (length === def.length) - return; - const origin = getLengthableOrigin2(input); - const tooBig = length > def.length; - payload.issues.push({ - origin, - ...tooBig ? { code: "too_big", maximum: def.length } : { code: "too_small", minimum: def.length }, - inclusive: true, - exact: true, - input: payload.value, - inst, - continue: !def.abort - }); - }; -}); -var $ZodCheckStringFormat2 = /* @__PURE__ */ $constructor2("$ZodCheckStringFormat", (inst, def) => { - var _a2, _b; - $ZodCheck2.init(inst, def); - inst._zod.onattach.push((inst2) => { - const bag = inst2._zod.bag; - bag.format = def.format; - if (def.pattern) { - bag.patterns ?? (bag.patterns = new Set); - bag.patterns.add(def.pattern); - } - }); - if (def.pattern) - (_a2 = inst._zod).check ?? (_a2.check = (payload) => { - def.pattern.lastIndex = 0; - if (def.pattern.test(payload.value)) - return; - payload.issues.push({ - origin: "string", - code: "invalid_format", - format: def.format, - input: payload.value, - ...def.pattern ? { pattern: def.pattern.toString() } : {}, - inst, - continue: !def.abort - }); - }); - else - (_b = inst._zod).check ?? (_b.check = () => {}); -}); -var $ZodCheckRegex2 = /* @__PURE__ */ $constructor2("$ZodCheckRegex", (inst, def) => { - $ZodCheckStringFormat2.init(inst, def); - inst._zod.check = (payload) => { - def.pattern.lastIndex = 0; - if (def.pattern.test(payload.value)) - return; - payload.issues.push({ - origin: "string", - code: "invalid_format", - format: "regex", - input: payload.value, - pattern: def.pattern.toString(), - inst, - continue: !def.abort - }); - }; -}); -var $ZodCheckLowerCase2 = /* @__PURE__ */ $constructor2("$ZodCheckLowerCase", (inst, def) => { - def.pattern ?? (def.pattern = lowercase2); - $ZodCheckStringFormat2.init(inst, def); -}); -var $ZodCheckUpperCase2 = /* @__PURE__ */ $constructor2("$ZodCheckUpperCase", (inst, def) => { - def.pattern ?? (def.pattern = uppercase2); - $ZodCheckStringFormat2.init(inst, def); -}); -var $ZodCheckIncludes2 = /* @__PURE__ */ $constructor2("$ZodCheckIncludes", (inst, def) => { - $ZodCheck2.init(inst, def); - const escapedRegex = escapeRegex2(def.includes); - const pattern = new RegExp(typeof def.position === "number" ? `^.{${def.position}}${escapedRegex}` : escapedRegex); - def.pattern = pattern; - inst._zod.onattach.push((inst2) => { - const bag = inst2._zod.bag; - bag.patterns ?? (bag.patterns = new Set); - bag.patterns.add(pattern); - }); - inst._zod.check = (payload) => { - if (payload.value.includes(def.includes, def.position)) - return; - payload.issues.push({ - origin: "string", - code: "invalid_format", - format: "includes", - includes: def.includes, - input: payload.value, - inst, - continue: !def.abort - }); - }; -}); -var $ZodCheckStartsWith2 = /* @__PURE__ */ $constructor2("$ZodCheckStartsWith", (inst, def) => { - $ZodCheck2.init(inst, def); - const pattern = new RegExp(`^${escapeRegex2(def.prefix)}.*`); - def.pattern ?? (def.pattern = pattern); - inst._zod.onattach.push((inst2) => { - const bag = inst2._zod.bag; - bag.patterns ?? (bag.patterns = new Set); - bag.patterns.add(pattern); - }); - inst._zod.check = (payload) => { - if (payload.value.startsWith(def.prefix)) - return; - payload.issues.push({ - origin: "string", - code: "invalid_format", - format: "starts_with", - prefix: def.prefix, - input: payload.value, - inst, - continue: !def.abort - }); - }; -}); -var $ZodCheckEndsWith2 = /* @__PURE__ */ $constructor2("$ZodCheckEndsWith", (inst, def) => { - $ZodCheck2.init(inst, def); - const pattern = new RegExp(`.*${escapeRegex2(def.suffix)}$`); - def.pattern ?? (def.pattern = pattern); - inst._zod.onattach.push((inst2) => { - const bag = inst2._zod.bag; - bag.patterns ?? (bag.patterns = new Set); - bag.patterns.add(pattern); - }); - inst._zod.check = (payload) => { - if (payload.value.endsWith(def.suffix)) - return; - payload.issues.push({ - origin: "string", - code: "invalid_format", - format: "ends_with", - suffix: def.suffix, - input: payload.value, - inst, - continue: !def.abort - }); - }; -}); -var $ZodCheckOverwrite2 = /* @__PURE__ */ $constructor2("$ZodCheckOverwrite", (inst, def) => { - $ZodCheck2.init(inst, def); - inst._zod.check = (payload) => { - payload.value = def.tx(payload.value); - }; -}); - -class Doc2 { - constructor(args = []) { - this.content = []; - this.indent = 0; - if (this) - this.args = args; - } - indented(fn) { - this.indent += 1; - fn(this); - this.indent -= 1; - } - write(arg) { - if (typeof arg === "function") { - arg(this, { execution: "sync" }); - arg(this, { execution: "async" }); - return; - } - const content = arg; - const lines = content.split(` -`).filter((x) => x); - const minIndent = Math.min(...lines.map((x) => x.length - x.trimStart().length)); - const dedented = lines.map((x) => x.slice(minIndent)).map((x) => " ".repeat(this.indent * 2) + x); - for (const line of dedented) { - this.content.push(line); - } - } - compile() { - const F = Function; - const args = this?.args; - const content = this?.content ?? [``]; - const lines = [...content.map((x) => ` ${x}`)]; - return new F(...args, lines.join(` -`)); - } -} -var version2 = { - major: 4, - minor: 0, - patch: 0 -}; -var $ZodType2 = /* @__PURE__ */ $constructor2("$ZodType", (inst, def) => { - var _a2; - inst ?? (inst = {}); - inst._zod.def = def; - inst._zod.bag = inst._zod.bag || {}; - inst._zod.version = version2; - const checks3 = [...inst._zod.def.checks ?? []]; - if (inst._zod.traits.has("$ZodCheck")) { - checks3.unshift(inst); - } - for (const ch of checks3) { - for (const fn of ch._zod.onattach) { - fn(inst); - } - } - if (checks3.length === 0) { - (_a2 = inst._zod).deferred ?? (_a2.deferred = []); - inst._zod.deferred?.push(() => { - inst._zod.run = inst._zod.parse; - }); - } else { - const runChecks = (payload, checks22, ctx) => { - let isAborted2 = aborted2(payload); - let asyncResult; - for (const ch of checks22) { - if (ch._zod.when) { - const shouldRun = ch._zod.when(payload); - if (!shouldRun) - continue; - } else if (isAborted2) { - continue; - } - const currLen = payload.issues.length; - const _ = ch._zod.check(payload); - if (_ instanceof Promise && ctx?.async === false) { - throw new $ZodAsyncError2; - } - if (asyncResult || _ instanceof Promise) { - asyncResult = (asyncResult ?? Promise.resolve()).then(async () => { - await _; - const nextLen = payload.issues.length; - if (nextLen === currLen) - return; - if (!isAborted2) - isAborted2 = aborted2(payload, currLen); - }); - } else { - const nextLen = payload.issues.length; - if (nextLen === currLen) - continue; - if (!isAborted2) - isAborted2 = aborted2(payload, currLen); - } - } - if (asyncResult) { - return asyncResult.then(() => { - return payload; - }); - } - return payload; - }; - inst._zod.run = (payload, ctx) => { - const result = inst._zod.parse(payload, ctx); - if (result instanceof Promise) { - if (ctx.async === false) - throw new $ZodAsyncError2; - return result.then((result2) => runChecks(result2, checks3, ctx)); - } - return runChecks(result, checks3, ctx); - }; - } - inst["~standard"] = { - validate: (value) => { - try { - const r = safeParse4(inst, value); - return r.success ? { value: r.data } : { issues: r.error?.issues }; - } catch (_) { - return safeParseAsync3(inst, value).then((r) => r.success ? { value: r.data } : { issues: r.error?.issues }); - } - }, - vendor: "zod", - version: 1 - }; -}); -var $ZodString2 = /* @__PURE__ */ $constructor2("$ZodString", (inst, def) => { - $ZodType2.init(inst, def); - inst._zod.pattern = [...inst?._zod.bag?.patterns ?? []].pop() ?? string4(inst._zod.bag); - inst._zod.parse = (payload, _) => { - if (def.coerce) - try { - payload.value = String(payload.value); - } catch (_2) {} - if (typeof payload.value === "string") - return payload; - payload.issues.push({ - expected: "string", - code: "invalid_type", - input: payload.value, - inst - }); - return payload; - }; -}); -var $ZodStringFormat2 = /* @__PURE__ */ $constructor2("$ZodStringFormat", (inst, def) => { - $ZodCheckStringFormat2.init(inst, def); - $ZodString2.init(inst, def); -}); -var $ZodGUID2 = /* @__PURE__ */ $constructor2("$ZodGUID", (inst, def) => { - def.pattern ?? (def.pattern = guid2); - $ZodStringFormat2.init(inst, def); -}); -var $ZodUUID2 = /* @__PURE__ */ $constructor2("$ZodUUID", (inst, def) => { - if (def.version) { - const versionMap = { - v1: 1, - v2: 2, - v3: 3, - v4: 4, - v5: 5, - v6: 6, - v7: 7, - v8: 8 - }; - const v = versionMap[def.version]; - if (v === undefined) - throw new Error(`Invalid UUID version: "${def.version}"`); - def.pattern ?? (def.pattern = uuid2(v)); - } else - def.pattern ?? (def.pattern = uuid2()); - $ZodStringFormat2.init(inst, def); -}); -var $ZodEmail2 = /* @__PURE__ */ $constructor2("$ZodEmail", (inst, def) => { - def.pattern ?? (def.pattern = email2); - $ZodStringFormat2.init(inst, def); -}); -var $ZodURL2 = /* @__PURE__ */ $constructor2("$ZodURL", (inst, def) => { - $ZodStringFormat2.init(inst, def); - inst._zod.check = (payload) => { - try { - const orig = payload.value; - const url = new URL(orig); - const href = url.href; - if (def.hostname) { - def.hostname.lastIndex = 0; - if (!def.hostname.test(url.hostname)) { - payload.issues.push({ - code: "invalid_format", - format: "url", - note: "Invalid hostname", - pattern: hostname.source, - input: payload.value, - inst, - continue: !def.abort - }); - } - } - if (def.protocol) { - def.protocol.lastIndex = 0; - if (!def.protocol.test(url.protocol.endsWith(":") ? url.protocol.slice(0, -1) : url.protocol)) { - payload.issues.push({ - code: "invalid_format", - format: "url", - note: "Invalid protocol", - pattern: def.protocol.source, - input: payload.value, - inst, - continue: !def.abort - }); - } - } - if (!orig.endsWith("/") && href.endsWith("/")) { - payload.value = href.slice(0, -1); - } else { - payload.value = href; - } - return; - } catch (_) { - payload.issues.push({ - code: "invalid_format", - format: "url", - input: payload.value, - inst, - continue: !def.abort - }); - } - }; -}); -var $ZodEmoji2 = /* @__PURE__ */ $constructor2("$ZodEmoji", (inst, def) => { - def.pattern ?? (def.pattern = emoji2()); - $ZodStringFormat2.init(inst, def); -}); -var $ZodNanoID2 = /* @__PURE__ */ $constructor2("$ZodNanoID", (inst, def) => { - def.pattern ?? (def.pattern = nanoid2); - $ZodStringFormat2.init(inst, def); -}); -var $ZodCUID3 = /* @__PURE__ */ $constructor2("$ZodCUID", (inst, def) => { - def.pattern ?? (def.pattern = cuid3); - $ZodStringFormat2.init(inst, def); -}); -var $ZodCUID22 = /* @__PURE__ */ $constructor2("$ZodCUID2", (inst, def) => { - def.pattern ?? (def.pattern = cuid22); - $ZodStringFormat2.init(inst, def); -}); -var $ZodULID2 = /* @__PURE__ */ $constructor2("$ZodULID", (inst, def) => { - def.pattern ?? (def.pattern = ulid2); - $ZodStringFormat2.init(inst, def); -}); -var $ZodXID2 = /* @__PURE__ */ $constructor2("$ZodXID", (inst, def) => { - def.pattern ?? (def.pattern = xid2); - $ZodStringFormat2.init(inst, def); -}); -var $ZodKSUID2 = /* @__PURE__ */ $constructor2("$ZodKSUID", (inst, def) => { - def.pattern ?? (def.pattern = ksuid2); - $ZodStringFormat2.init(inst, def); -}); -var $ZodISODateTime2 = /* @__PURE__ */ $constructor2("$ZodISODateTime", (inst, def) => { - def.pattern ?? (def.pattern = datetime3(def)); - $ZodStringFormat2.init(inst, def); -}); -var $ZodISODate2 = /* @__PURE__ */ $constructor2("$ZodISODate", (inst, def) => { - def.pattern ?? (def.pattern = date4); - $ZodStringFormat2.init(inst, def); -}); -var $ZodISOTime2 = /* @__PURE__ */ $constructor2("$ZodISOTime", (inst, def) => { - def.pattern ?? (def.pattern = time3(def)); - $ZodStringFormat2.init(inst, def); -}); -var $ZodISODuration2 = /* @__PURE__ */ $constructor2("$ZodISODuration", (inst, def) => { - def.pattern ?? (def.pattern = duration3); - $ZodStringFormat2.init(inst, def); -}); -var $ZodIPv42 = /* @__PURE__ */ $constructor2("$ZodIPv4", (inst, def) => { - def.pattern ?? (def.pattern = ipv42); - $ZodStringFormat2.init(inst, def); - inst._zod.onattach.push((inst2) => { - const bag = inst2._zod.bag; - bag.format = `ipv4`; - }); -}); -var $ZodIPv62 = /* @__PURE__ */ $constructor2("$ZodIPv6", (inst, def) => { - def.pattern ?? (def.pattern = ipv62); - $ZodStringFormat2.init(inst, def); - inst._zod.onattach.push((inst2) => { - const bag = inst2._zod.bag; - bag.format = `ipv6`; - }); - inst._zod.check = (payload) => { - try { - new URL(`http://[${payload.value}]`); - } catch { - payload.issues.push({ - code: "invalid_format", - format: "ipv6", - input: payload.value, - inst, - continue: !def.abort - }); - } - }; -}); -var $ZodCIDRv42 = /* @__PURE__ */ $constructor2("$ZodCIDRv4", (inst, def) => { - def.pattern ?? (def.pattern = cidrv42); - $ZodStringFormat2.init(inst, def); -}); -var $ZodCIDRv62 = /* @__PURE__ */ $constructor2("$ZodCIDRv6", (inst, def) => { - def.pattern ?? (def.pattern = cidrv62); - $ZodStringFormat2.init(inst, def); - inst._zod.check = (payload) => { - const [address, prefix] = payload.value.split("/"); - try { - if (!prefix) - throw new Error; - const prefixNum = Number(prefix); - if (`${prefixNum}` !== prefix) - throw new Error; - if (prefixNum < 0 || prefixNum > 128) - throw new Error; - new URL(`http://[${address}]`); - } catch { - payload.issues.push({ - code: "invalid_format", - format: "cidrv6", - input: payload.value, - inst, - continue: !def.abort - }); - } - }; -}); -function isValidBase642(data) { - if (data === "") - return true; - if (data.length % 4 !== 0) - return false; - try { - atob(data); - return true; - } catch { - return false; - } -} -var $ZodBase642 = /* @__PURE__ */ $constructor2("$ZodBase64", (inst, def) => { - def.pattern ?? (def.pattern = base642); - $ZodStringFormat2.init(inst, def); - inst._zod.onattach.push((inst2) => { - inst2._zod.bag.contentEncoding = "base64"; - }); - inst._zod.check = (payload) => { - if (isValidBase642(payload.value)) - return; - payload.issues.push({ - code: "invalid_format", - format: "base64", - input: payload.value, - inst, - continue: !def.abort - }); - }; -}); -function isValidBase64URL2(data) { - if (!base64url2.test(data)) - return false; - const base6422 = data.replace(/[-_]/g, (c) => c === "-" ? "+" : "/"); - const padded = base6422.padEnd(Math.ceil(base6422.length / 4) * 4, "="); - return isValidBase642(padded); -} -var $ZodBase64URL2 = /* @__PURE__ */ $constructor2("$ZodBase64URL", (inst, def) => { - def.pattern ?? (def.pattern = base64url2); - $ZodStringFormat2.init(inst, def); - inst._zod.onattach.push((inst2) => { - inst2._zod.bag.contentEncoding = "base64url"; - }); - inst._zod.check = (payload) => { - if (isValidBase64URL2(payload.value)) - return; - payload.issues.push({ - code: "invalid_format", - format: "base64url", - input: payload.value, - inst, - continue: !def.abort - }); - }; -}); -var $ZodE1642 = /* @__PURE__ */ $constructor2("$ZodE164", (inst, def) => { - def.pattern ?? (def.pattern = e1642); - $ZodStringFormat2.init(inst, def); -}); -function isValidJWT22(token, algorithm = null) { - try { - const tokensParts = token.split("."); - if (tokensParts.length !== 3) - return false; - const [header] = tokensParts; - if (!header) - return false; - const parsedHeader = JSON.parse(atob(header)); - if ("typ" in parsedHeader && parsedHeader?.typ !== "JWT") - return false; - if (!parsedHeader.alg) - return false; - if (algorithm && (!("alg" in parsedHeader) || parsedHeader.alg !== algorithm)) - return false; - return true; - } catch { - return false; - } -} -var $ZodJWT2 = /* @__PURE__ */ $constructor2("$ZodJWT", (inst, def) => { - $ZodStringFormat2.init(inst, def); - inst._zod.check = (payload) => { - if (isValidJWT22(payload.value, def.alg)) - return; - payload.issues.push({ - code: "invalid_format", - format: "jwt", - input: payload.value, - inst, - continue: !def.abort - }); - }; -}); -var $ZodNumber2 = /* @__PURE__ */ $constructor2("$ZodNumber", (inst, def) => { - $ZodType2.init(inst, def); - inst._zod.pattern = inst._zod.bag.pattern ?? number4; - inst._zod.parse = (payload, _ctx) => { - if (def.coerce) - try { - payload.value = Number(payload.value); - } catch (_) {} - const input = payload.value; - if (typeof input === "number" && !Number.isNaN(input) && Number.isFinite(input)) { - return payload; - } - const received = typeof input === "number" ? Number.isNaN(input) ? "NaN" : !Number.isFinite(input) ? "Infinity" : undefined : undefined; - payload.issues.push({ - expected: "number", - code: "invalid_type", - input, - inst, - ...received ? { received } : {} - }); - return payload; - }; -}); -var $ZodNumberFormat2 = /* @__PURE__ */ $constructor2("$ZodNumber", (inst, def) => { - $ZodCheckNumberFormat2.init(inst, def); - $ZodNumber2.init(inst, def); -}); -var $ZodBoolean2 = /* @__PURE__ */ $constructor2("$ZodBoolean", (inst, def) => { - $ZodType2.init(inst, def); - inst._zod.pattern = boolean4; - inst._zod.parse = (payload, _ctx) => { - if (def.coerce) - try { - payload.value = Boolean(payload.value); - } catch (_) {} - const input = payload.value; - if (typeof input === "boolean") - return payload; - payload.issues.push({ - expected: "boolean", - code: "invalid_type", - input, - inst - }); - return payload; - }; -}); -var $ZodNull2 = /* @__PURE__ */ $constructor2("$ZodNull", (inst, def) => { - $ZodType2.init(inst, def); - inst._zod.pattern = _null4; - inst._zod.values = new Set([null]); - inst._zod.parse = (payload, _ctx) => { - const input = payload.value; - if (input === null) - return payload; - payload.issues.push({ - expected: "null", - code: "invalid_type", - input, - inst - }); - return payload; - }; -}); -var $ZodUnknown2 = /* @__PURE__ */ $constructor2("$ZodUnknown", (inst, def) => { - $ZodType2.init(inst, def); - inst._zod.parse = (payload) => payload; -}); -var $ZodNever2 = /* @__PURE__ */ $constructor2("$ZodNever", (inst, def) => { - $ZodType2.init(inst, def); - inst._zod.parse = (payload, _ctx) => { - payload.issues.push({ - expected: "never", - code: "invalid_type", - input: payload.value, - inst - }); - return payload; - }; -}); -function handleArrayResult2(result, final, index) { - if (result.issues.length) { - final.issues.push(...prefixIssues2(index, result.issues)); - } - final.value[index] = result.value; -} -var $ZodArray2 = /* @__PURE__ */ $constructor2("$ZodArray", (inst, def) => { - $ZodType2.init(inst, def); - inst._zod.parse = (payload, ctx) => { - const input = payload.value; - if (!Array.isArray(input)) { - payload.issues.push({ - expected: "array", - code: "invalid_type", - input, - inst - }); - return payload; - } - payload.value = Array(input.length); - const proms = []; - for (let i = 0;i < input.length; i++) { - const item = input[i]; - const result = def.element._zod.run({ - value: item, - issues: [] - }, ctx); - if (result instanceof Promise) { - proms.push(result.then((result2) => handleArrayResult2(result2, payload, i))); - } else { - handleArrayResult2(result, payload, i); - } - } - if (proms.length) { - return Promise.all(proms).then(() => payload); - } - return payload; - }; -}); -function handleObjectResult(result, final, key) { - if (result.issues.length) { - final.issues.push(...prefixIssues2(key, result.issues)); - } - final.value[key] = result.value; -} -function handleOptionalObjectResult(result, final, key, input) { - if (result.issues.length) { - if (input[key] === undefined) { - if (key in input) { - final.value[key] = undefined; - } else { - final.value[key] = result.value; - } - } else { - final.issues.push(...prefixIssues2(key, result.issues)); - } - } else if (result.value === undefined) { - if (key in input) - final.value[key] = undefined; - } else { - final.value[key] = result.value; - } -} -var $ZodObject2 = /* @__PURE__ */ $constructor2("$ZodObject", (inst, def) => { - $ZodType2.init(inst, def); - const _normalized = cached2(() => { - const keys = Object.keys(def.shape); - for (const k of keys) { - if (!(def.shape[k] instanceof $ZodType2)) { - throw new Error(`Invalid element at key "${k}": expected a Zod schema`); - } - } - const okeys = optionalKeys2(def.shape); - return { - shape: def.shape, - keys, - keySet: new Set(keys), - numKeys: keys.length, - optionalKeys: new Set(okeys) - }; - }); - defineLazy2(inst._zod, "propValues", () => { - const shape = def.shape; - const propValues = {}; - for (const key in shape) { - const field = shape[key]._zod; - if (field.values) { - propValues[key] ?? (propValues[key] = new Set); - for (const v of field.values) - propValues[key].add(v); - } - } - return propValues; - }); - const generateFastpass = (shape) => { - const doc2 = new Doc2(["shape", "payload", "ctx"]); - const normalized = _normalized.value; - const parseStr = (key) => { - const k = esc2(key); - return `shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`; - }; - doc2.write(`const input = payload.value;`); - const ids = Object.create(null); - let counter = 0; - for (const key of normalized.keys) { - ids[key] = `key_${counter++}`; - } - doc2.write(`const newResult = {}`); - for (const key of normalized.keys) { - if (normalized.optionalKeys.has(key)) { - const id = ids[key]; - doc2.write(`const ${id} = ${parseStr(key)};`); - const k = esc2(key); - doc2.write(` - if (${id}.issues.length) { - if (input[${k}] === undefined) { - if (${k} in input) { - newResult[${k}] = undefined; +${n.prompts.format_examples} + +${n.prompts.footer} + +${n.prompts.header_memory_continued}`}Yt();Nt();Br();var lk=["429","500","502","503","ECONNREFUSED","ETIMEDOUT","fetch failed"];oe();oe();Br();function RU(t,e){let r=[],n=/([\s\S]*?)<\/observation>/g,i;for(;(i=n.exec(t))!==null;){let s=i[1],o=Ii(s,"type"),a=Ii(s,"title"),c=Ii(s,"subtitle"),u=Ii(s,"narrative"),l=dg(s,"facts","fact"),d=dg(s,"concepts","concept"),p=dg(s,"files_read","file"),m=dg(s,"files_modified","file"),g=He.getInstance().getActiveMode().observation_types.map(b=>b.id),h=g[0],v=h;o?g.includes(o.trim())?v=o.trim():y.error("PARSER",`Invalid observation type: ${o}, using "${h}"`,{correlationId:e}):y.error("PARSER",`Observation missing type field, using "${h}"`,{correlationId:e});let x=d.filter(b=>b!==v);x.length!==d.length&&y.error("PARSER","Removed observation type from concepts array",{correlationId:e,type:v,originalConcepts:d,cleanedConcepts:x}),r.push({type:v,title:a,subtitle:c,facts:l,narrative:u,concepts:x,files_read:p,files_modified:m})}return r}function OU(t,e){let n=//.exec(t);if(n)return y.info("PARSER","Summary skipped",{sessionId:e,reason:n[1]}),null;let s=/([\s\S]*?)<\/summary>/.exec(t);if(!s)return//.test(t)&&y.warn("PARSER","Summary response contained tags instead of \u2014 prompt conditioning may need strengthening",{sessionId:e}),null;let o=s[1],a=Ii(o,"request"),c=Ii(o,"investigated"),u=Ii(o,"learned"),l=Ii(o,"completed"),d=Ii(o,"next_steps"),p=Ii(o,"notes");return{request:a,investigated:c,learned:u,completed:l,next_steps:d,notes:p}}function Ii(t,e){let n=new RegExp(`<${e}>([\\s\\S]*?)`).exec(t);if(!n)return null;let i=n[1].trim();return i===""?null:i}function dg(t,e,r){let n=[],s=new RegExp(`<${e}>([\\s\\S]*?)`).exec(t);if(!s)return n;let o=s[1],a=new RegExp(`<${r}>([\\s\\S]*?)`,"g"),c;for(;(c=a.exec(o))!==null;){let u=c[1].trim();u&&n.push(u)}return n}var ti=require("fs"),Zt=Ue(require("path"),1),CU=Ue(require("os"),1);oe();Lo();Yt();Or();var aoe=Zt.default.join(CU.default.homedir(),".claude-mem","settings.json");function coe(t){let e=t.split(Zt.default.sep).filter(r=>r&&r!=="."&&r!=="..");for(let r=1;rnew Date(a.epoch).toISOString());for(let[a,c]of o){e.push(`### ${a}`),e.push(""),e.push("| ID | Time | T | Title | Read |"),e.push("|----|------|---|-------|------|");let u="";for(let l of c){let d=l.time===u?'"':l.time;u=l.time,e.push(`| ${l.id} | ${d} | ${l.typeEmoji} | ${l.title} | ${l.tokens} |`)}e.push("")}return e.join(` +`).trim()}var moe=new Set(["res",".git","build","node_modules","__pycache__"]);function foe(t){return Zt.default.normalize(t).split(Zt.default.sep).some(n=>moe.has(n))}function hoe(t){let e=Zt.default.join(t,".git");return(0,ti.existsSync)(e)}function goe(t,e){let r=Zt.default.resolve(t);for(let n of e){let i=Zt.default.resolve(n);if(r===i||r.startsWith(i+Zt.default.sep))return!0}return!1}async function AU(t,e,r,n){let i=_e.loadFromFile(aoe),s=parseInt(i.CLAUDE_MEM_CONTEXT_OBSERVATIONS,10)||50,o=[];try{let u=JSON.parse(i.CLAUDE_MEM_FOLDER_MD_EXCLUDE||"[]");Array.isArray(u)&&(o=u.filter(l=>typeof l=="string"))}catch{y.warn("FOLDER_INDEX","Failed to parse CLAUDE_MEM_FOLDER_MD_EXCLUDE setting")}let a=new Set;for(let u of t){if(!u)continue;if(Zt.default.basename(u)==="CLAUDE.md"){let d=u;n&&!Zt.default.isAbsolute(u)&&(d=Zt.default.join(n,u));let p=Zt.default.dirname(d);a.add(p),y.debug("FOLDER_INDEX","Detected active CLAUDE.md, will skip folder",{folderPath:p})}}let c=new Set;for(let u of t){if(!u||u==="")continue;if(!uoe(u,n)){y.debug("FOLDER_INDEX","Skipping invalid file path",{filePath:u,reason:"Failed path validation"});continue}let l=u;n&&!Zt.default.isAbsolute(u)&&(l=Zt.default.join(n,u));let d=Zt.default.dirname(l);if(d&&d!=="."&&d!=="/"){if(hoe(d)){y.debug("FOLDER_INDEX","Skipping project root CLAUDE.md",{folderPath:d});continue}if(foe(d)){y.debug("FOLDER_INDEX","Skipping unsafe directory for CLAUDE.md",{folderPath:d});continue}if(a.has(d)){y.debug("FOLDER_INDEX","Skipping folder with active CLAUDE.md to avoid race condition",{folderPath:d});continue}if(o.length>0&&goe(d,o)){y.debug("FOLDER_INDEX","Skipping excluded folder",{folderPath:d});continue}c.add(d)}}if(c.size!==0){y.debug("FOLDER_INDEX","Updating CLAUDE.md files",{project:e,folderCount:c.size});for(let u of c)try{let l=await wt(`/api/search/by-file?filePath=${encodeURIComponent(u)}&limit=${s}&project=${encodeURIComponent(e)}&isFolder=true`);if(!l.ok){y.error("FOLDER_INDEX","Failed to fetch timeline",{folderPath:u,status:l.status});continue}let d=await l.json();if(!d.content?.[0]?.text){y.debug("FOLDER_INDEX","No content for folder",{folderPath:u});continue}let p=poe(d.content[0].text),m=Zt.default.join(u,"CLAUDE.md"),f=p.includes("*No recent activity*"),g=(0,ti.existsSync)(m);if(f&&!g){y.debug("FOLDER_INDEX","Skipping empty CLAUDE.md creation",{folderPath:u});continue}doe(u,p),y.debug("FOLDER_INDEX","Updated CLAUDE.md",{folderPath:u})}catch(l){let d=l;y.error("FOLDER_INDEX","Failed to update CLAUDE.md",{folderPath:u,errorMessage:d.message,errorStack:d.stack})}}}Or();Yt();Nt();function pk(t,e){t?.sseBroadcaster&&t.sseBroadcaster.broadcast({type:"new_observation",observation:e})}function mk(t,e){t?.sseBroadcaster&&t.sseBroadcaster.broadcast({type:"new_summary",summary:e})}function fk(t,e){t.earliestPendingTimestamp=null,e&&typeof e.broadcastProcessingStatus=="function"&&e.broadcastProcessingStatus()}async function ri(t,e,r,n,i,s,o,a,c){e.lastGeneratorActivity=Date.now(),t&&e.conversationHistory.push({role:"assistant",content:t});let u=RU(t,e.contentSessionId),l=OU(t,e.sessionDbId),d=voe(l),p=r.getSessionStore();if(!e.memorySessionId)throw new Error("Cannot store observations: memorySessionId not yet captured");p.ensureMemorySessionIdRegistered(e.sessionDbId,e.memorySessionId),y.info("DB",`STORING | sessionDbId=${e.sessionDbId} | memorySessionId=${e.memorySessionId} | obsCount=${u.length} | hasSummary=${!!d}`,{sessionId:e.sessionDbId,memorySessionId:e.memorySessionId});let m=p.storeObservations(e.memorySessionId,e.project,u,d,e.lastPromptNumber,s,o??void 0);y.info("DB",`STORED | sessionDbId=${e.sessionDbId} | memorySessionId=${e.memorySessionId} | obsCount=${m.observationIds.length} | obsIds=[${m.observationIds.join(",")}] | summaryId=${m.summaryId||"none"}`,{sessionId:e.sessionDbId,memorySessionId:e.memorySessionId});let f=n.getPendingMessageStore();for(let g of e.processingMessageIds)f.confirmProcessed(g);e.processingMessageIds.length>0&&y.debug("QUEUE",`CONFIRMED_BATCH | sessionDbId=${e.sessionDbId} | count=${e.processingMessageIds.length} | ids=[${e.processingMessageIds.join(",")}]`),e.processingMessageIds=[],await yoe(u,m,e,r,i,s,a,c),await _oe(l,d,m,e,r,i,s,a),fk(e,i)}function voe(t){return t?{request:t.request||"",investigated:t.investigated||"",learned:t.learned||"",completed:t.completed||"",next_steps:t.next_steps||"",notes:t.notes}:null}async function yoe(t,e,r,n,i,s,o,a){for(let d=0;d{let g=Date.now()-f;y.debug("CHROMA","Observation synced",{obsId:p,duration:`${g}ms`,type:m.type,title:m.title||"(untitled)"})}).catch(g=>{y.error("CHROMA",`${o} chroma sync failed, continuing without vector search`,{obsId:p,type:m.type,title:m.title||"(untitled)"},g)}),pk(i,{id:p,memory_session_id:r.memorySessionId,session_id:r.contentSessionId,type:m.type,title:m.title,subtitle:m.subtitle,text:null,narrative:m.narrative||null,facts:JSON.stringify(m.facts||[]),concepts:JSON.stringify(m.concepts||[]),files_read:JSON.stringify(m.files_read||[]),files_modified:JSON.stringify(m.files_modified||[]),project:r.project,prompt_number:r.lastPromptNumber,created_at_epoch:e.createdAtEpoch})}let u=_e.loadFromFile(At).CLAUDE_MEM_FOLDER_CLAUDEMD_ENABLED;if(u==="true"||u===!0){let d=[];for(let p of t)d.push(...p.files_modified||[]),d.push(...p.files_read||[]);d.length>0&&AU(d,r.project,Fr(),a).catch(p=>{y.warn("FOLDER_INDEX","CLAUDE.md update failed (non-critical)",{project:r.project},p)})}}async function _oe(t,e,r,n,i,s,o,a){if(!e||!r.summaryId)return;let c=Date.now();i.getChromaSync()?.syncSummary(r.summaryId,n.contentSessionId,n.project,e,n.lastPromptNumber,r.createdAtEpoch,o).then(()=>{let u=Date.now()-c;y.debug("CHROMA","Summary synced",{summaryId:r.summaryId,duration:`${u}ms`,request:e.request||"(no request)"})}).catch(u=>{y.error("CHROMA",`${a} chroma sync failed, continuing without vector search`,{summaryId:r.summaryId,request:e.request||"(no request)"},u)}),mk(s,{id:r.summaryId,session_id:n.contentSessionId,request:t.request,investigated:t.investigated,learned:t.learned,completed:t.completed,next_steps:t.next_steps,notes:t.notes,project:n.project,prompt_number:n.lastPromptNumber,created_at_epoch:r.createdAtEpoch}),fU(n.project,Fr()).catch(u=>{y.warn("CURSOR","Context update failed (non-critical)",{project:n.project},u)})}function Ud(t){let e=boe(t);return lk.some(r=>e.includes(r))}function boe(t){return t==null?"":typeof t=="string"?t:t instanceof Error?t.message:typeof t=="object"&&"message"in t?String(t.message):String(t)}function qd(t){return t==null?!1:t instanceof Error&&t.name==="AbortError"?!0:typeof t=="object"&&"name"in t?t.name==="AbortError":!1}var xk=require("path"),b2=require("url"),x2=require("events"),w2=require("child_process"),E2=require("readline"),Ie=Ue(require("fs"),1),k2=require("fs/promises"),O2=require("path"),P2=require("os"),Fo=require("path"),A2=require("process"),N2=require("fs"),M2=require("crypto"),H2=require("crypto"),Jc=require("fs"),Sk=require("path"),Z2=require("crypto");var Fhe={},xoe=Object.create,Soe=Object.getPrototypeOf,bk=Object.defineProperty,woe=Object.getOwnPropertyNames,Eoe=Object.prototype.hasOwnProperty,d2=(t,e,r)=>{r=t!=null?xoe(Soe(t)):{};let n=e||!t||!t.__esModule?bk(r,"default",{value:t,enumerable:!0}):r;for(let i of woe(t))Eoe.call(n,i)||bk(n,i,{get:()=>t[i],enumerable:!0});return n},re=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),p2=(t,e)=>{for(var r in e)bk(t,r,{get:e[r],enumerable:!0,configurable:!0,set:n=>e[r]=()=>n})};var _g=re(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class e{}t._CodeOrName=e,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends e{constructor(x){if(super(),!t.IDENTIFIER.test(x))throw new Error("CodeGen: name must be a valid identifier");this.str=x}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=r;class n extends e{constructor(x){super(),this._items=typeof x=="string"?[x]:x}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let x=this._items[0];return x===""||x==='""'}get str(){var x;return(x=this._str)!==null&&x!==void 0?x:this._str=this._items.reduce((b,_)=>`${b}${_}`,"")}get names(){var x;return(x=this._names)!==null&&x!==void 0?x:this._names=this._items.reduce((b,_)=>(_ instanceof r&&(b[_.str]=(b[_.str]||0)+1),b),{})}}t._Code=n,t.nil=new n("");function i(v,...x){let b=[v[0]],_=0;for(;_{Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;var e=_g();class r extends Error{constructor(u){super(`CodeGen: "code" for ${u} not defined`),this.value=u.value}}var n;(function(c){c[c.Started=0]="Started",c[c.Completed=1]="Completed"})(n||(t.UsedValueState=n={})),t.varKinds={const:new e.Name("const"),let:new e.Name("let"),var:new e.Name("var")};class i{constructor({prefixes:u,parent:l}={}){this._names={},this._prefixes=u,this._parent=l}toName(u){return u instanceof e.Name?u:this.name(u)}name(u){return new e.Name(this._newName(u))}_newName(u){let l=this._names[u]||this._nameGroup(u);return`${u}${l.index++}`}_nameGroup(u){var l,d;if(!((d=(l=this._parent)===null||l===void 0?void 0:l._prefixes)===null||d===void 0)&&d.has(u)||this._prefixes&&!this._prefixes.has(u))throw new Error(`CodeGen: prefix "${u}" is not allowed in this scope`);return this._names[u]={prefix:u,index:0}}}t.Scope=i;class s extends e.Name{constructor(u,l){super(l),this.prefix=u}setValue(u,{property:l,itemIndex:d}){this.value=u,this.scopePath=(0,e._)`.${new e.Name(l)}[${d}]`}}t.ValueScopeName=s;var o=(0,e._)`\n`;class a extends i{constructor(u){super(u),this._values={},this._scope=u.scope,this.opts={...u,_n:u.lines?o:e.nil}}get(){return this._scope}name(u){return new s(u,this._newName(u))}value(u,l){var d;if(l.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let p=this.toName(u),{prefix:m}=p,f=(d=l.key)!==null&&d!==void 0?d:l.ref,g=this._values[m];if(g){let x=g.get(f);if(x)return x}else g=this._values[m]=new Map;g.set(f,p);let h=this._scope[m]||(this._scope[m]=[]),v=h.length;return h[v]=l.ref,p.setValue(l,{property:m,itemIndex:v}),p}getValue(u,l){let d=this._values[u];if(d)return d.get(l)}scopeRefs(u,l=this._values){return this._reduceValues(l,d=>{if(d.scopePath===void 0)throw new Error(`CodeGen: name "${d}" has no value`);return(0,e._)`${u}${d.scopePath}`})}scopeCode(u=this._values,l,d){return this._reduceValues(u,p=>{if(p.value===void 0)throw new Error(`CodeGen: name "${p}" has no value`);return p.value.code},l,d)}_reduceValues(u,l,d={},p){let m=e.nil;for(let f in u){let g=u[f];if(!g)continue;let h=d[f]=d[f]||new Map;g.forEach(v=>{if(h.has(v))return;h.set(v,n.Started);let x=l(v);if(x){let b=this.opts.es5?t.varKinds.var:t.varKinds.const;m=(0,e._)`${m}${b} ${v} = ${x};${this.opts._n}`}else if(x=p?.(v))m=(0,e._)`${m}${x}${this.opts._n}`;else throw new r(v);h.set(v,n.Completed)})}return m}}t.ValueScope=a}),Ze=re(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;var e=_g(),r=NU(),n=_g();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return n.Name}});var i=NU();Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),t.operators={GT:new e._Code(">"),GTE:new e._Code(">="),LT:new e._Code("<"),LTE:new e._Code("<="),EQ:new e._Code("==="),NEQ:new e._Code("!=="),NOT:new e._Code("!"),OR:new e._Code("||"),AND:new e._Code("&&"),ADD:new e._Code("+")};class s{optimizeNodes(){return this}optimizeNames(k,I){return this}}class o extends s{constructor(k,I,q){super(),this.varKind=k,this.name=I,this.rhs=q}render({es5:k,_n:I}){let q=k?r.varKinds.var:this.varKind,le=this.rhs===void 0?"":` = ${this.rhs}`;return`${q} ${this.name}${le};`+I}optimizeNames(k,I){if(k[this.name.str])return this.rhs&&(this.rhs=j(this.rhs,k,I)),this}get names(){return this.rhs instanceof e._CodeOrName?this.rhs.names:{}}}class a extends s{constructor(k,I,q){super(),this.lhs=k,this.rhs=I,this.sideEffects=q}render({_n:k}){return`${this.lhs} = ${this.rhs};`+k}optimizeNames(k,I){if(!(this.lhs instanceof e.Name&&!k[this.lhs.str]&&!this.sideEffects))return this.rhs=j(this.rhs,k,I),this}get names(){let k=this.lhs instanceof e.Name?{}:{...this.lhs.names};return W(k,this.rhs)}}class c extends a{constructor(k,I,q,le){super(k,q,le),this.op=I}render({_n:k}){return`${this.lhs} ${this.op}= ${this.rhs};`+k}}class u extends s{constructor(k){super(),this.label=k,this.names={}}render({_n:k}){return`${this.label}:`+k}}class l extends s{constructor(k){super(),this.label=k,this.names={}}render({_n:k}){return`break${this.label?` ${this.label}`:""};`+k}}class d extends s{constructor(k){super(),this.error=k}render({_n:k}){return`throw ${this.error};`+k}get names(){return this.error.names}}class p extends s{constructor(k){super(),this.code=k}render({_n:k}){return`${this.code};`+k}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(k,I){return this.code=j(this.code,k,I),this}get names(){return this.code instanceof e._CodeOrName?this.code.names:{}}}class m extends s{constructor(k=[]){super(),this.nodes=k}render(k){return this.nodes.reduce((I,q)=>I+q.render(k),"")}optimizeNodes(){let{nodes:k}=this,I=k.length;for(;I--;){let q=k[I].optimizeNodes();Array.isArray(q)?k.splice(I,1,...q):q?k[I]=q:k.splice(I,1)}return k.length>0?this:void 0}optimizeNames(k,I){let{nodes:q}=this,le=q.length;for(;le--;){let ce=q[le];ce.optimizeNames(k,I)||(ae(k,ce.names),q.splice(le,1))}return q.length>0?this:void 0}get names(){return this.nodes.reduce((k,I)=>U(k,I.names),{})}}class f extends m{render(k){return"{"+k._n+super.render(k)+"}"+k._n}}class g extends m{}class h extends f{}h.kind="else";class v extends f{constructor(k,I){super(I),this.condition=k}render(k){let I=`if(${this.condition})`+super.render(k);return this.else&&(I+="else "+this.else.render(k)),I}optimizeNodes(){super.optimizeNodes();let k=this.condition;if(k===!0)return this.nodes;let I=this.else;if(I){let q=I.optimizeNodes();I=this.else=Array.isArray(q)?new h(q):q}if(I)return k===!1?I instanceof v?I:I.nodes:this.nodes.length?this:new v(Ne(k),I instanceof v?[I]:I.nodes);if(!(k===!1||!this.nodes.length))return this}optimizeNames(k,I){var q;if(this.else=(q=this.else)===null||q===void 0?void 0:q.optimizeNames(k,I),!!(super.optimizeNames(k,I)||this.else))return this.condition=j(this.condition,k,I),this}get names(){let k=super.names;return W(k,this.condition),this.else&&U(k,this.else.names),k}}v.kind="if";class x extends f{}x.kind="for";class b extends x{constructor(k){super(),this.iteration=k}render(k){return`for(${this.iteration})`+super.render(k)}optimizeNames(k,I){if(super.optimizeNames(k,I))return this.iteration=j(this.iteration,k,I),this}get names(){return U(super.names,this.iteration.names)}}class _ extends x{constructor(k,I,q,le){super(),this.varKind=k,this.name=I,this.from=q,this.to=le}render(k){let I=k.es5?r.varKinds.var:this.varKind,{name:q,from:le,to:ce}=this;return`for(${I} ${q}=${le}; ${q}<${ce}; ${q}++)`+super.render(k)}get names(){let k=W(super.names,this.from);return W(k,this.to)}}class S extends x{constructor(k,I,q,le){super(),this.loop=k,this.varKind=I,this.name=q,this.iterable=le}render(k){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(k)}optimizeNames(k,I){if(super.optimizeNames(k,I))return this.iterable=j(this.iterable,k,I),this}get names(){return U(super.names,this.iterable.names)}}class w extends f{constructor(k,I,q){super(),this.name=k,this.args=I,this.async=q}render(k){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(k)}}w.kind="func";class E extends m{render(k){return"return "+super.render(k)}}E.kind="return";class $ extends f{render(k){let I="try"+super.render(k);return this.catch&&(I+=this.catch.render(k)),this.finally&&(I+=this.finally.render(k)),I}optimizeNodes(){var k,I;return super.optimizeNodes(),(k=this.catch)===null||k===void 0||k.optimizeNodes(),(I=this.finally)===null||I===void 0||I.optimizeNodes(),this}optimizeNames(k,I){var q,le;return super.optimizeNames(k,I),(q=this.catch)===null||q===void 0||q.optimizeNames(k,I),(le=this.finally)===null||le===void 0||le.optimizeNames(k,I),this}get names(){let k=super.names;return this.catch&&U(k,this.catch.names),this.finally&&U(k,this.finally.names),k}}class R extends f{constructor(k){super(),this.error=k}render(k){return`catch(${this.error})`+super.render(k)}}R.kind="catch";class A extends f{render(k){return"finally"+super.render(k)}}A.kind="finally";class N{constructor(k,I={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...I,_n:I.lines?` +`:""},this._extScope=k,this._scope=new r.Scope({parent:k}),this._nodes=[new g]}toString(){return this._root.render(this.opts)}name(k){return this._scope.name(k)}scopeName(k){return this._extScope.name(k)}scopeValue(k,I){let q=this._extScope.value(k,I);return(this._values[q.prefix]||(this._values[q.prefix]=new Set)).add(q),q}getScopeValue(k,I){return this._extScope.getValue(k,I)}scopeRefs(k){return this._extScope.scopeRefs(k,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(k,I,q,le){let ce=this._scope.toName(I);return q!==void 0&&le&&(this._constants[ce.str]=q),this._leafNode(new o(k,ce,q)),ce}const(k,I,q){return this._def(r.varKinds.const,k,I,q)}let(k,I,q){return this._def(r.varKinds.let,k,I,q)}var(k,I,q){return this._def(r.varKinds.var,k,I,q)}assign(k,I,q){return this._leafNode(new a(k,I,q))}add(k,I){return this._leafNode(new c(k,t.operators.ADD,I))}code(k){return typeof k=="function"?k():k!==e.nil&&this._leafNode(new p(k)),this}object(...k){let I=["{"];for(let[q,le]of k)I.length>1&&I.push(","),I.push(q),(q!==le||this.opts.es5)&&(I.push(":"),(0,e.addCodeArg)(I,le));return I.push("}"),new e._Code(I)}if(k,I,q){if(this._blockNode(new v(k)),I&&q)this.code(I).else().code(q).endIf();else if(I)this.code(I).endIf();else if(q)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(k){return this._elseNode(new v(k))}else(){return this._elseNode(new h)}endIf(){return this._endBlockNode(v,h)}_for(k,I){return this._blockNode(k),I&&this.code(I).endFor(),this}for(k,I){return this._for(new b(k),I)}forRange(k,I,q,le,ce=this.opts.es5?r.varKinds.var:r.varKinds.let){let Qe=this._scope.toName(k);return this._for(new _(ce,Qe,I,q),()=>le(Qe))}forOf(k,I,q,le=r.varKinds.const){let ce=this._scope.toName(k);if(this.opts.es5){let Qe=I instanceof e.Name?I:this.var("_arr",I);return this.forRange("_i",0,(0,e._)`${Qe}.length`,Xe=>{this.var(ce,(0,e._)`${Qe}[${Xe}]`),q(ce)})}return this._for(new S("of",le,ce,I),()=>q(ce))}forIn(k,I,q,le=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(k,(0,e._)`Object.keys(${I})`,q);let ce=this._scope.toName(k);return this._for(new S("in",le,ce,I),()=>q(ce))}endFor(){return this._endBlockNode(x)}label(k){return this._leafNode(new u(k))}break(k){return this._leafNode(new l(k))}return(k){let I=new E;if(this._blockNode(I),this.code(k),I.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(E)}try(k,I,q){if(!I&&!q)throw new Error('CodeGen: "try" without "catch" and "finally"');let le=new $;if(this._blockNode(le),this.code(k),I){let ce=this.name("e");this._currNode=le.catch=new R(ce),I(ce)}return q&&(this._currNode=le.finally=new A,this.code(q)),this._endBlockNode(R,A)}throw(k){return this._leafNode(new d(k))}block(k,I){return this._blockStarts.push(this._nodes.length),k&&this.code(k).endBlock(I),this}endBlock(k){let I=this._blockStarts.pop();if(I===void 0)throw new Error("CodeGen: not in self-balancing block");let q=this._nodes.length-I;if(q<0||k!==void 0&&q!==k)throw new Error(`CodeGen: wrong number of nodes: ${q} vs ${k} expected`);return this._nodes.length=I,this}func(k,I=e.nil,q,le){return this._blockNode(new w(k,I,q)),le&&this.code(le).endFunc(),this}endFunc(){return this._endBlockNode(w)}optimize(k=1){for(;k-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(k){return this._currNode.nodes.push(k),this}_blockNode(k){this._currNode.nodes.push(k),this._nodes.push(k)}_endBlockNode(k,I){let q=this._currNode;if(q instanceof k||I&&q instanceof I)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${I?`${k.kind}/${I.kind}`:k.kind}"`)}_elseNode(k){let I=this._currNode;if(!(I instanceof v))throw new Error('CodeGen: "else" without "if"');return this._currNode=I.else=k,this}get _root(){return this._nodes[0]}get _currNode(){let k=this._nodes;return k[k.length-1]}set _currNode(k){let I=this._nodes;I[I.length-1]=k}}t.CodeGen=N;function U(M,k){for(let I in k)M[I]=(M[I]||0)+(k[I]||0);return M}function W(M,k){return k instanceof e._CodeOrName?U(M,k.names):M}function j(M,k,I){if(M instanceof e.Name)return q(M);if(!le(M))return M;return new e._Code(M._items.reduce((ce,Qe)=>(Qe instanceof e.Name&&(Qe=q(Qe)),Qe instanceof e._Code?ce.push(...Qe._items):ce.push(Qe),ce),[]));function q(ce){let Qe=I[ce.str];return Qe===void 0||k[ce.str]!==1?ce:(delete k[ce.str],Qe)}function le(ce){return ce instanceof e._Code&&ce._items.some(Qe=>Qe instanceof e.Name&&k[Qe.str]===1&&I[Qe.str]!==void 0)}}function ae(M,k){for(let I in k)M[I]=(M[I]||0)-(k[I]||0)}function Ne(M){return typeof M=="boolean"||typeof M=="number"||M===null?!M:(0,e._)`!${H(M)}`}t.not=Ne;var ze=P(t.operators.AND);function kt(...M){return M.reduce(ze)}t.and=kt;var Ve=P(t.operators.OR);function K(...M){return M.reduce(Ve)}t.or=K;function P(M){return(k,I)=>k===e.nil?I:I===e.nil?k:(0,e._)`${H(k)} ${M} ${H(I)}`}function H(M){return M instanceof e.Name?M:(0,e._)`(${M})`}}),at=re(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.checkStrictMode=t.getErrorPath=t.Type=t.useFunc=t.setEvaluated=t.evaluatedPropsToName=t.mergeEvaluated=t.eachItem=t.unescapeJsonPointer=t.escapeJsonPointer=t.escapeFragment=t.unescapeFragment=t.schemaRefOrVal=t.schemaHasRulesButRef=t.schemaHasRules=t.checkUnknownRules=t.alwaysValidSchema=t.toHash=void 0;var e=Ze(),r=_g();function n(w){let E={};for(let $ of w)E[$]=!0;return E}t.toHash=n;function i(w,E){return typeof E=="boolean"?E:Object.keys(E).length===0?!0:(s(w,E),!o(E,w.self.RULES.all))}t.alwaysValidSchema=i;function s(w,E=w.schema){let{opts:$,self:R}=w;if(!$.strictSchema||typeof E=="boolean")return;let A=R.RULES.keywords;for(let N in E)A[N]||S(w,`unknown keyword: "${N}"`)}t.checkUnknownRules=s;function o(w,E){if(typeof w=="boolean")return!w;for(let $ in w)if(E[$])return!0;return!1}t.schemaHasRules=o;function a(w,E){if(typeof w=="boolean")return!w;for(let $ in w)if($!=="$ref"&&E.all[$])return!0;return!1}t.schemaHasRulesButRef=a;function c({topSchemaRef:w,schemaPath:E},$,R,A){if(!A){if(typeof $=="number"||typeof $=="boolean")return $;if(typeof $=="string")return(0,e._)`${$}`}return(0,e._)`${w}${E}${(0,e.getProperty)(R)}`}t.schemaRefOrVal=c;function u(w){return p(decodeURIComponent(w))}t.unescapeFragment=u;function l(w){return encodeURIComponent(d(w))}t.escapeFragment=l;function d(w){return typeof w=="number"?`${w}`:w.replace(/~/g,"~0").replace(/\//g,"~1")}t.escapeJsonPointer=d;function p(w){return w.replace(/~1/g,"/").replace(/~0/g,"~")}t.unescapeJsonPointer=p;function m(w,E){if(Array.isArray(w))for(let $ of w)E($);else E(w)}t.eachItem=m;function f({mergeNames:w,mergeToName:E,mergeValues:$,resultToName:R}){return(A,N,U,W)=>{let j=U===void 0?N:U instanceof e.Name?(N instanceof e.Name?w(A,N,U):E(A,N,U),U):N instanceof e.Name?(E(A,U,N),N):$(N,U);return W===e.Name&&!(j instanceof e.Name)?R(A,j):j}}t.mergeEvaluated={props:f({mergeNames:(w,E,$)=>w.if((0,e._)`${$} !== true && ${E} !== undefined`,()=>{w.if((0,e._)`${E} === true`,()=>w.assign($,!0),()=>w.assign($,(0,e._)`${$} || {}`).code((0,e._)`Object.assign(${$}, ${E})`))}),mergeToName:(w,E,$)=>w.if((0,e._)`${$} !== true`,()=>{E===!0?w.assign($,!0):(w.assign($,(0,e._)`${$} || {}`),h(w,$,E))}),mergeValues:(w,E)=>w===!0?!0:{...w,...E},resultToName:g}),items:f({mergeNames:(w,E,$)=>w.if((0,e._)`${$} !== true && ${E} !== undefined`,()=>w.assign($,(0,e._)`${E} === true ? true : ${$} > ${E} ? ${$} : ${E}`)),mergeToName:(w,E,$)=>w.if((0,e._)`${$} !== true`,()=>w.assign($,E===!0?!0:(0,e._)`${$} > ${E} ? ${$} : ${E}`)),mergeValues:(w,E)=>w===!0?!0:Math.max(w,E),resultToName:(w,E)=>w.var("items",E)})};function g(w,E){if(E===!0)return w.var("props",!0);let $=w.var("props",(0,e._)`{}`);return E!==void 0&&h(w,$,E),$}t.evaluatedPropsToName=g;function h(w,E,$){Object.keys($).forEach(R=>w.assign((0,e._)`${E}${(0,e.getProperty)(R)}`,!0))}t.setEvaluated=h;var v={};function x(w,E){return w.scopeValue("func",{ref:E,code:v[E.code]||(v[E.code]=new r._Code(E.code))})}t.useFunc=x;var b;(function(w){w[w.Num=0]="Num",w[w.Str=1]="Str"})(b||(t.Type=b={}));function _(w,E,$){if(w instanceof e.Name){let R=E===b.Num;return $?R?(0,e._)`"[" + ${w} + "]"`:(0,e._)`"['" + ${w} + "']"`:R?(0,e._)`"/" + ${w}`:(0,e._)`"/" + ${w}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return $?(0,e.getProperty)(w).toString():"/"+d(w)}t.getErrorPath=_;function S(w,E,$=w.opts.strictSchema){if($){if(E=`strict mode: ${E}`,$===!0)throw new Error(E);w.self.logger.warn(E)}}t.checkStrictMode=S}),Gs=re(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e=Ze(),r={data:new e.Name("data"),valCxt:new e.Name("valCxt"),instancePath:new e.Name("instancePath"),parentData:new e.Name("parentData"),parentDataProperty:new e.Name("parentDataProperty"),rootData:new e.Name("rootData"),dynamicAnchors:new e.Name("dynamicAnchors"),vErrors:new e.Name("vErrors"),errors:new e.Name("errors"),this:new e.Name("this"),self:new e.Name("self"),scope:new e.Name("scope"),json:new e.Name("json"),jsonPos:new e.Name("jsonPos"),jsonLen:new e.Name("jsonLen"),jsonPart:new e.Name("jsonPart")};t.default=r}),Tg=re(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;var e=Ze(),r=at(),n=Gs();t.keywordError={message:({keyword:h})=>(0,e.str)`must pass "${h}" keyword validation`},t.keyword$DataError={message:({keyword:h,schemaType:v})=>v?(0,e.str)`"${h}" keyword must be ${v} ($data)`:(0,e.str)`"${h}" keyword is invalid ($data)`};function i(h,v=t.keywordError,x,b){let{it:_}=h,{gen:S,compositeRule:w,allErrors:E}=_,$=d(h,v,x);b??(w||E)?c(S,$):u(_,(0,e._)`[${$}]`)}t.reportError=i;function s(h,v=t.keywordError,x){let{it:b}=h,{gen:_,compositeRule:S,allErrors:w}=b,E=d(h,v,x);c(_,E),S||w||u(b,n.default.vErrors)}t.reportExtraError=s;function o(h,v){h.assign(n.default.errors,v),h.if((0,e._)`${n.default.vErrors} !== null`,()=>h.if(v,()=>h.assign((0,e._)`${n.default.vErrors}.length`,v),()=>h.assign(n.default.vErrors,null)))}t.resetErrorsCount=o;function a({gen:h,keyword:v,schemaValue:x,data:b,errsCount:_,it:S}){if(_===void 0)throw new Error("ajv implementation error");let w=h.name("err");h.forRange("i",_,n.default.errors,E=>{h.const(w,(0,e._)`${n.default.vErrors}[${E}]`),h.if((0,e._)`${w}.instancePath === undefined`,()=>h.assign((0,e._)`${w}.instancePath`,(0,e.strConcat)(n.default.instancePath,S.errorPath))),h.assign((0,e._)`${w}.schemaPath`,(0,e.str)`${S.errSchemaPath}/${v}`),S.opts.verbose&&(h.assign((0,e._)`${w}.schema`,x),h.assign((0,e._)`${w}.data`,b))})}t.extendErrors=a;function c(h,v){let x=h.const("err",v);h.if((0,e._)`${n.default.vErrors} === null`,()=>h.assign(n.default.vErrors,(0,e._)`[${x}]`),(0,e._)`${n.default.vErrors}.push(${x})`),h.code((0,e._)`${n.default.errors}++`)}function u(h,v){let{gen:x,validateName:b,schemaEnv:_}=h;_.$async?x.throw((0,e._)`new ${h.ValidationError}(${v})`):(x.assign((0,e._)`${b}.errors`,v),x.return(!1))}var l={keyword:new e.Name("keyword"),schemaPath:new e.Name("schemaPath"),params:new e.Name("params"),propertyName:new e.Name("propertyName"),message:new e.Name("message"),schema:new e.Name("schema"),parentSchema:new e.Name("parentSchema")};function d(h,v,x){let{createErrors:b}=h.it;return b===!1?(0,e._)`{}`:p(h,v,x)}function p(h,v,x={}){let{gen:b,it:_}=h,S=[m(_,x),f(h,x)];return g(h,v,S),b.object(...S)}function m({errorPath:h},{instancePath:v}){let x=v?(0,e.str)`${h}${(0,r.getErrorPath)(v,r.Type.Str)}`:h;return[n.default.instancePath,(0,e.strConcat)(n.default.instancePath,x)]}function f({keyword:h,it:{errSchemaPath:v}},{schemaPath:x,parentSchema:b}){let _=b?v:(0,e.str)`${v}/${h}`;return x&&(_=(0,e.str)`${_}${(0,r.getErrorPath)(x,r.Type.Str)}`),[l.schemaPath,_]}function g(h,{params:v,message:x},b){let{keyword:_,data:S,schemaValue:w,it:E}=h,{opts:$,propertyName:R,topSchemaRef:A,schemaPath:N}=E;b.push([l.keyword,_],[l.params,typeof v=="function"?v(h):v||(0,e._)`{}`]),$.messages&&b.push([l.message,typeof x=="function"?x(h):x]),$.verbose&&b.push([l.schema,w],[l.parentSchema,(0,e._)`${A}${N}`],[n.default.data,S]),R&&b.push([l.propertyName,R])}}),koe=re(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.boolOrEmptySchema=t.topBoolOrEmptySchema=void 0;var e=Tg(),r=Ze(),n=Gs(),i={message:"boolean schema is false"};function s(c){let{gen:u,schema:l,validateName:d}=c;l===!1?a(c,!1):typeof l=="object"&&l.$async===!0?u.return(n.default.data):(u.assign((0,r._)`${d}.errors`,null),u.return(!0))}t.topBoolOrEmptySchema=s;function o(c,u){let{gen:l,schema:d}=c;d===!1?(l.var(u,!1),a(c)):l.var(u,!0)}t.boolOrEmptySchema=o;function a(c,u){let{gen:l,data:d}=c,p={gen:l,keyword:"false schema",data:d,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:c};(0,e.reportError)(p,i,void 0,u)}}),m2=re(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getRules=t.isJSONType=void 0;var e=["string","number","integer","boolean","null","object","array"],r=new Set(e);function n(s){return typeof s=="string"&&r.has(s)}t.isJSONType=n;function i(){let s={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...s,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},s.number,s.string,s.array,s.object],post:{rules:[]},all:{},keywords:{}}}t.getRules=i}),f2=re(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.shouldUseRule=t.shouldUseGroup=t.schemaHasRulesForType=void 0;function e({schema:i,self:s},o){let a=s.RULES.types[o];return a&&a!==!0&&r(i,a)}t.schemaHasRulesForType=e;function r(i,s){return s.rules.some(o=>n(i,o))}t.shouldUseGroup=r;function n(i,s){var o;return i[s.keyword]!==void 0||((o=s.definition.implements)===null||o===void 0?void 0:o.some(a=>i[a]!==void 0))}t.shouldUseRule=n}),bg=re(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;var e=m2(),r=f2(),n=Tg(),i=Ze(),s=at(),o;(function(b){b[b.Correct=0]="Correct",b[b.Wrong=1]="Wrong"})(o||(t.DataType=o={}));function a(b){let _=c(b.type);if(_.includes("null")){if(b.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!_.length&&b.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');b.nullable===!0&&_.push("null")}return _}t.getSchemaTypes=a;function c(b){let _=Array.isArray(b)?b:b?[b]:[];if(_.every(e.isJSONType))return _;throw new Error("type must be JSONType or JSONType[]: "+_.join(","))}t.getJSONTypes=c;function u(b,_){let{gen:S,data:w,opts:E}=b,$=d(_,E.coerceTypes),R=_.length>0&&!($.length===0&&_.length===1&&(0,r.schemaHasRulesForType)(b,_[0]));if(R){let A=g(_,w,E.strictNumbers,o.Wrong);S.if(A,()=>{$.length?p(b,_,$):v(b)})}return R}t.coerceAndCheckDataType=u;var l=new Set(["string","number","integer","boolean","null"]);function d(b,_){return _?b.filter(S=>l.has(S)||_==="array"&&S==="array"):[]}function p(b,_,S){let{gen:w,data:E,opts:$}=b,R=w.let("dataType",(0,i._)`typeof ${E}`),A=w.let("coerced",(0,i._)`undefined`);$.coerceTypes==="array"&&w.if((0,i._)`${R} == 'object' && Array.isArray(${E}) && ${E}.length == 1`,()=>w.assign(E,(0,i._)`${E}[0]`).assign(R,(0,i._)`typeof ${E}`).if(g(_,E,$.strictNumbers),()=>w.assign(A,E))),w.if((0,i._)`${A} !== undefined`);for(let U of S)(l.has(U)||U==="array"&&$.coerceTypes==="array")&&N(U);w.else(),v(b),w.endIf(),w.if((0,i._)`${A} !== undefined`,()=>{w.assign(E,A),m(b,A)});function N(U){switch(U){case"string":w.elseIf((0,i._)`${R} == "number" || ${R} == "boolean"`).assign(A,(0,i._)`"" + ${E}`).elseIf((0,i._)`${E} === null`).assign(A,(0,i._)`""`);return;case"number":w.elseIf((0,i._)`${R} == "boolean" || ${E} === null + || (${R} == "string" && ${E} && ${E} == +${E})`).assign(A,(0,i._)`+${E}`);return;case"integer":w.elseIf((0,i._)`${R} === "boolean" || ${E} === null + || (${R} === "string" && ${E} && ${E} == +${E} && !(${E} % 1))`).assign(A,(0,i._)`+${E}`);return;case"boolean":w.elseIf((0,i._)`${E} === "false" || ${E} === 0 || ${E} === null`).assign(A,!1).elseIf((0,i._)`${E} === "true" || ${E} === 1`).assign(A,!0);return;case"null":w.elseIf((0,i._)`${E} === "" || ${E} === 0 || ${E} === false`),w.assign(A,null);return;case"array":w.elseIf((0,i._)`${R} === "string" || ${R} === "number" + || ${R} === "boolean" || ${E} === null`).assign(A,(0,i._)`[${E}]`)}}}function m({gen:b,parentData:_,parentDataProperty:S},w){b.if((0,i._)`${_} !== undefined`,()=>b.assign((0,i._)`${_}[${S}]`,w))}function f(b,_,S,w=o.Correct){let E=w===o.Correct?i.operators.EQ:i.operators.NEQ,$;switch(b){case"null":return(0,i._)`${_} ${E} null`;case"array":$=(0,i._)`Array.isArray(${_})`;break;case"object":$=(0,i._)`${_} && typeof ${_} == "object" && !Array.isArray(${_})`;break;case"integer":$=R((0,i._)`!(${_} % 1) && !isNaN(${_})`);break;case"number":$=R();break;default:return(0,i._)`typeof ${_} ${E} ${b}`}return w===o.Correct?$:(0,i.not)($);function R(A=i.nil){return(0,i.and)((0,i._)`typeof ${_} == "number"`,A,S?(0,i._)`isFinite(${_})`:i.nil)}}t.checkDataType=f;function g(b,_,S,w){if(b.length===1)return f(b[0],_,S,w);let E,$=(0,s.toHash)(b);if($.array&&$.object){let R=(0,i._)`typeof ${_} != "object"`;E=$.null?R:(0,i._)`!${_} || ${R}`,delete $.null,delete $.array,delete $.object}else E=i.nil;$.number&&delete $.integer;for(let R in $)E=(0,i.and)(E,f(R,_,S,w));return E}t.checkDataTypes=g;var h={message:({schema:b})=>`must be ${b}`,params:({schema:b,schemaValue:_})=>typeof b=="string"?(0,i._)`{type: ${b}}`:(0,i._)`{type: ${_}}`};function v(b){let _=x(b);(0,n.reportError)(_,h)}t.reportTypeError=v;function x(b){let{gen:_,data:S,schema:w}=b,E=(0,s.schemaRefOrVal)(b,w,"type");return{gen:_,keyword:"type",data:S,schema:w.type,schemaCode:E,schemaValue:E,parentSchema:w,params:{},it:b}}}),$oe=re(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.assignDefaults=void 0;var e=Ze(),r=at();function n(s,o){let{properties:a,items:c}=s.schema;if(o==="object"&&a)for(let u in a)i(s,u,a[u].default);else o==="array"&&Array.isArray(c)&&c.forEach((u,l)=>i(s,l,u.default))}t.assignDefaults=n;function i(s,o,a){let{gen:c,compositeRule:u,data:l,opts:d}=s;if(a===void 0)return;let p=(0,e._)`${l}${(0,e.getProperty)(o)}`;if(u){(0,r.checkStrictMode)(s,`default is ignored for: ${p}`);return}let m=(0,e._)`${p} === undefined`;d.useDefaults==="empty"&&(m=(0,e._)`${m} || ${p} === null || ${p} === ""`),c.if(m,(0,e._)`${p} = ${(0,e.stringify)(a)}`)}}),oi=re(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.validateUnion=t.validateArray=t.usePattern=t.callValidateCode=t.schemaProperties=t.allSchemaProperties=t.noPropertyInData=t.propertyInData=t.isOwnProperty=t.hasPropFunc=t.reportMissingProp=t.checkMissingProp=t.checkReportMissingProp=void 0;var e=Ze(),r=at(),n=Gs(),i=at();function s(b,_){let{gen:S,data:w,it:E}=b;S.if(d(S,w,_,E.opts.ownProperties),()=>{b.setParams({missingProperty:(0,e._)`${_}`},!0),b.error()})}t.checkReportMissingProp=s;function o({gen:b,data:_,it:{opts:S}},w,E){return(0,e.or)(...w.map($=>(0,e.and)(d(b,_,$,S.ownProperties),(0,e._)`${E} = ${$}`)))}t.checkMissingProp=o;function a(b,_){b.setParams({missingProperty:_},!0),b.error()}t.reportMissingProp=a;function c(b){return b.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}t.hasPropFunc=c;function u(b,_,S){return(0,e._)`${c(b)}.call(${_}, ${S})`}t.isOwnProperty=u;function l(b,_,S,w){let E=(0,e._)`${_}${(0,e.getProperty)(S)} !== undefined`;return w?(0,e._)`${E} && ${u(b,_,S)}`:E}t.propertyInData=l;function d(b,_,S,w){let E=(0,e._)`${_}${(0,e.getProperty)(S)} === undefined`;return w?(0,e.or)(E,(0,e.not)(u(b,_,S))):E}t.noPropertyInData=d;function p(b){return b?Object.keys(b).filter(_=>_!=="__proto__"):[]}t.allSchemaProperties=p;function m(b,_){return p(_).filter(S=>!(0,r.alwaysValidSchema)(b,_[S]))}t.schemaProperties=m;function f({schemaCode:b,data:_,it:{gen:S,topSchemaRef:w,schemaPath:E,errorPath:$},it:R},A,N,U){let W=U?(0,e._)`${b}, ${_}, ${w}${E}`:_,j=[[n.default.instancePath,(0,e.strConcat)(n.default.instancePath,$)],[n.default.parentData,R.parentData],[n.default.parentDataProperty,R.parentDataProperty],[n.default.rootData,n.default.rootData]];R.opts.dynamicRef&&j.push([n.default.dynamicAnchors,n.default.dynamicAnchors]);let ae=(0,e._)`${W}, ${S.object(...j)}`;return N!==e.nil?(0,e._)`${A}.call(${N}, ${ae})`:(0,e._)`${A}(${ae})`}t.callValidateCode=f;var g=(0,e._)`new RegExp`;function h({gen:b,it:{opts:_}},S){let w=_.unicodeRegExp?"u":"",{regExp:E}=_.code,$=E(S,w);return b.scopeValue("pattern",{key:$.toString(),ref:$,code:(0,e._)`${E.code==="new RegExp"?g:(0,i.useFunc)(b,E)}(${S}, ${w})`})}t.usePattern=h;function v(b){let{gen:_,data:S,keyword:w,it:E}=b,$=_.name("valid");if(E.allErrors){let A=_.let("valid",!0);return R(()=>_.assign(A,!1)),A}return _.var($,!0),R(()=>_.break()),$;function R(A){let N=_.const("len",(0,e._)`${S}.length`);_.forRange("i",0,N,U=>{b.subschema({keyword:w,dataProp:U,dataPropType:r.Type.Num},$),_.if((0,e.not)($),A)})}}t.validateArray=v;function x(b){let{gen:_,schema:S,keyword:w,it:E}=b;if(!Array.isArray(S))throw new Error("ajv implementation error");if(S.some(N=>(0,r.alwaysValidSchema)(E,N))&&!E.opts.unevaluated)return;let R=_.let("valid",!1),A=_.name("_valid");_.block(()=>S.forEach((N,U)=>{let W=b.subschema({keyword:w,schemaProp:U,compositeRule:!0},A);_.assign(R,(0,e._)`${R} || ${A}`),b.mergeValidEvaluated(W,A)||_.if((0,e.not)(R))})),b.result(R,()=>b.reset(),()=>b.error(!0))}t.validateUnion=x}),Toe=re(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.validateKeywordUsage=t.validSchemaType=t.funcKeywordCode=t.macroKeywordCode=void 0;var e=Ze(),r=Gs(),n=oi(),i=Tg();function s(m,f){let{gen:g,keyword:h,schema:v,parentSchema:x,it:b}=m,_=f.macro.call(b.self,v,x,b),S=l(g,h,_);b.opts.validateSchema!==!1&&b.self.validateSchema(_,!0);let w=g.name("valid");m.subschema({schema:_,schemaPath:e.nil,errSchemaPath:`${b.errSchemaPath}/${h}`,topSchemaRef:S,compositeRule:!0},w),m.pass(w,()=>m.error(!0))}t.macroKeywordCode=s;function o(m,f){var g;let{gen:h,keyword:v,schema:x,parentSchema:b,$data:_,it:S}=m;u(S,f);let w=!_&&f.compile?f.compile.call(S.self,x,b,S):f.validate,E=l(h,v,w),$=h.let("valid");m.block$data($,R),m.ok((g=f.valid)!==null&&g!==void 0?g:$);function R(){if(f.errors===!1)U(),f.modifying&&a(m),W(()=>m.error());else{let j=f.async?A():N();f.modifying&&a(m),W(()=>c(m,j))}}function A(){let j=h.let("ruleErrs",null);return h.try(()=>U((0,e._)`await `),ae=>h.assign($,!1).if((0,e._)`${ae} instanceof ${S.ValidationError}`,()=>h.assign(j,(0,e._)`${ae}.errors`),()=>h.throw(ae))),j}function N(){let j=(0,e._)`${E}.errors`;return h.assign(j,null),U(e.nil),j}function U(j=f.async?(0,e._)`await `:e.nil){let ae=S.opts.passContext?r.default.this:r.default.self,Ne=!("compile"in f&&!_||f.schema===!1);h.assign($,(0,e._)`${j}${(0,n.callValidateCode)(m,E,ae,Ne)}`,f.modifying)}function W(j){var ae;h.if((0,e.not)((ae=f.valid)!==null&&ae!==void 0?ae:$),j)}}t.funcKeywordCode=o;function a(m){let{gen:f,data:g,it:h}=m;f.if(h.parentData,()=>f.assign(g,(0,e._)`${h.parentData}[${h.parentDataProperty}]`))}function c(m,f){let{gen:g}=m;g.if((0,e._)`Array.isArray(${f})`,()=>{g.assign(r.default.vErrors,(0,e._)`${r.default.vErrors} === null ? ${f} : ${r.default.vErrors}.concat(${f})`).assign(r.default.errors,(0,e._)`${r.default.vErrors}.length`),(0,i.extendErrors)(m)},()=>m.error())}function u({schemaEnv:m},f){if(f.async&&!m.$async)throw new Error("async keyword in sync schema")}function l(m,f,g){if(g===void 0)throw new Error(`keyword "${f}" failed to compile`);return m.scopeValue("keyword",typeof g=="function"?{ref:g}:{ref:g,code:(0,e.stringify)(g)})}function d(m,f,g=!1){return!f.length||f.some(h=>h==="array"?Array.isArray(m):h==="object"?m&&typeof m=="object"&&!Array.isArray(m):typeof m==h||g&&typeof m>"u")}t.validSchemaType=d;function p({schema:m,opts:f,self:g,errSchemaPath:h},v,x){if(Array.isArray(v.keyword)?!v.keyword.includes(x):v.keyword!==x)throw new Error("ajv implementation error");let b=v.dependencies;if(b?.some(_=>!Object.prototype.hasOwnProperty.call(m,_)))throw new Error(`parent schema must have dependencies of ${x}: ${b.join(",")}`);if(v.validateSchema&&!v.validateSchema(m[x])){let S=`keyword "${x}" value is invalid at path "${h}": `+g.errorsText(v.validateSchema.errors);if(f.validateSchema==="log")g.logger.error(S);else throw new Error(S)}}t.validateKeywordUsage=p}),Ioe=re(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.extendSubschemaMode=t.extendSubschemaData=t.getSubschema=void 0;var e=Ze(),r=at();function n(o,{keyword:a,schemaProp:c,schema:u,schemaPath:l,errSchemaPath:d,topSchemaRef:p}){if(a!==void 0&&u!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(a!==void 0){let m=o.schema[a];return c===void 0?{schema:m,schemaPath:(0,e._)`${o.schemaPath}${(0,e.getProperty)(a)}`,errSchemaPath:`${o.errSchemaPath}/${a}`}:{schema:m[c],schemaPath:(0,e._)`${o.schemaPath}${(0,e.getProperty)(a)}${(0,e.getProperty)(c)}`,errSchemaPath:`${o.errSchemaPath}/${a}/${(0,r.escapeFragment)(c)}`}}if(u!==void 0){if(l===void 0||d===void 0||p===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:u,schemaPath:l,topSchemaRef:p,errSchemaPath:d}}throw new Error('either "keyword" or "schema" must be passed')}t.getSubschema=n;function i(o,a,{dataProp:c,dataPropType:u,data:l,dataTypes:d,propertyName:p}){if(l!==void 0&&c!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:m}=a;if(c!==void 0){let{errorPath:g,dataPathArr:h,opts:v}=a,x=m.let("data",(0,e._)`${a.data}${(0,e.getProperty)(c)}`,!0);f(x),o.errorPath=(0,e.str)`${g}${(0,r.getErrorPath)(c,u,v.jsPropertySyntax)}`,o.parentDataProperty=(0,e._)`${c}`,o.dataPathArr=[...h,o.parentDataProperty]}if(l!==void 0){let g=l instanceof e.Name?l:m.let("data",l,!0);f(g),p!==void 0&&(o.propertyName=p)}d&&(o.dataTypes=d);function f(g){o.data=g,o.dataLevel=a.dataLevel+1,o.dataTypes=[],a.definedProperties=new Set,o.parentData=a.data,o.dataNames=[...a.dataNames,g]}}t.extendSubschemaData=i;function s(o,{jtdDiscriminator:a,jtdMetadata:c,compositeRule:u,createErrors:l,allErrors:d}){u!==void 0&&(o.compositeRule=u),l!==void 0&&(o.createErrors=l),d!==void 0&&(o.allErrors=d),o.jtdDiscriminator=a,o.jtdMetadata=c}t.extendSubschemaMode=s}),h2=re((t,e)=>{e.exports=function r(n,i){if(n===i)return!0;if(n&&i&&typeof n=="object"&&typeof i=="object"){if(n.constructor!==i.constructor)return!1;var s,o,a;if(Array.isArray(n)){if(s=n.length,s!=i.length)return!1;for(o=s;o--!==0;)if(!r(n[o],i[o]))return!1;return!0}if(n.constructor===RegExp)return n.source===i.source&&n.flags===i.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===i.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===i.toString();if(a=Object.keys(n),s=a.length,s!==Object.keys(i).length)return!1;for(o=s;o--!==0;)if(!Object.prototype.hasOwnProperty.call(i,a[o]))return!1;for(o=s;o--!==0;){var c=a[o];if(!r(n[c],i[c]))return!1}return!0}return n!==n&&i!==i}}),Roe=re((t,e)=>{var r=e.exports=function(s,o,a){typeof o=="function"&&(a=o,o={}),a=o.cb||a;var c=typeof a=="function"?a:a.pre||function(){},u=a.post||function(){};n(o,c,u,s,"",s)};r.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},r.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},r.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},r.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function n(s,o,a,c,u,l,d,p,m,f){if(c&&typeof c=="object"&&!Array.isArray(c)){o(c,u,l,d,p,m,f);for(var g in c){var h=c[g];if(Array.isArray(h)){if(g in r.arrayKeywords)for(var v=0;v{Object.defineProperty(t,"__esModule",{value:!0}),t.getSchemaRefs=t.resolveUrl=t.normalizeId=t._getFullPath=t.getFullPath=t.inlineRef=void 0;var e=at(),r=h2(),n=Roe(),i=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function s(h,v=!0){return typeof h=="boolean"?!0:v===!0?!a(h):v?c(h)<=v:!1}t.inlineRef=s;var o=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function a(h){for(let v in h){if(o.has(v))return!0;let x=h[v];if(Array.isArray(x)&&x.some(a)||typeof x=="object"&&a(x))return!0}return!1}function c(h){let v=0;for(let x in h){if(x==="$ref")return 1/0;if(v++,!i.has(x)&&(typeof h[x]=="object"&&(0,e.eachItem)(h[x],b=>v+=c(b)),v===1/0))return 1/0}return v}function u(h,v="",x){x!==!1&&(v=p(v));let b=h.parse(v);return l(h,b)}t.getFullPath=u;function l(h,v){return h.serialize(v).split("#")[0]+"#"}t._getFullPath=l;var d=/#\/?$/;function p(h){return h?h.replace(d,""):""}t.normalizeId=p;function m(h,v,x){return x=p(x),h.resolve(v,x)}t.resolveUrl=m;var f=/^[a-z_][-a-z0-9._]*$/i;function g(h,v){if(typeof h=="boolean")return{};let{schemaId:x,uriResolver:b}=this.opts,_=p(h[x]||v),S={"":_},w=u(b,_,!1),E={},$=new Set;return n(h,{allKeys:!0},(N,U,W,j)=>{if(j===void 0)return;let ae=w+U,Ne=S[j];typeof N[x]=="string"&&(Ne=ze.call(this,N[x])),kt.call(this,N.$anchor),kt.call(this,N.$dynamicAnchor),S[U]=Ne;function ze(Ve){let K=this.opts.uriResolver.resolve;if(Ve=p(Ne?K(Ne,Ve):Ve),$.has(Ve))throw A(Ve);$.add(Ve);let P=this.refs[Ve];return typeof P=="string"&&(P=this.refs[P]),typeof P=="object"?R(N,P.schema,Ve):Ve!==p(ae)&&(Ve[0]==="#"?(R(N,E[Ve],Ve),E[Ve]=N):this.refs[Ve]=ae),Ve}function kt(Ve){if(typeof Ve=="string"){if(!f.test(Ve))throw new Error(`invalid anchor "${Ve}"`);ze.call(this,`#${Ve}`)}}}),E;function R(N,U,W){if(U!==void 0&&!r(N,U))throw A(W)}function A(N){return new Error(`reference "${N}" resolves to more than one schema`)}}t.getSchemaRefs=g}),Rg=re(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getData=t.KeywordCxt=t.validateFunctionCode=void 0;var e=koe(),r=bg(),n=f2(),i=bg(),s=$oe(),o=Toe(),a=Ioe(),c=Ze(),u=Gs(),l=Ig(),d=at(),p=Tg();function m(C){if(w(C)&&($(C),S(C))){v(C);return}f(C,()=>(0,e.topBoolOrEmptySchema)(C))}t.validateFunctionCode=m;function f({gen:C,validateName:D,schema:Z,schemaEnv:J,opts:ue},Ge){ue.code.es5?C.func(D,(0,c._)`${u.default.data}, ${u.default.valCxt}`,J.$async,()=>{C.code((0,c._)`"use strict"; ${b(Z,ue)}`),h(C,ue),C.code(Ge)}):C.func(D,(0,c._)`${u.default.data}, ${g(ue)}`,J.$async,()=>C.code(b(Z,ue)).code(Ge))}function g(C){return(0,c._)`{${u.default.instancePath}="", ${u.default.parentData}, ${u.default.parentDataProperty}, ${u.default.rootData}=${u.default.data}${C.dynamicRef?(0,c._)`, ${u.default.dynamicAnchors}={}`:c.nil}}={}`}function h(C,D){C.if(u.default.valCxt,()=>{C.var(u.default.instancePath,(0,c._)`${u.default.valCxt}.${u.default.instancePath}`),C.var(u.default.parentData,(0,c._)`${u.default.valCxt}.${u.default.parentData}`),C.var(u.default.parentDataProperty,(0,c._)`${u.default.valCxt}.${u.default.parentDataProperty}`),C.var(u.default.rootData,(0,c._)`${u.default.valCxt}.${u.default.rootData}`),D.dynamicRef&&C.var(u.default.dynamicAnchors,(0,c._)`${u.default.valCxt}.${u.default.dynamicAnchors}`)},()=>{C.var(u.default.instancePath,(0,c._)`""`),C.var(u.default.parentData,(0,c._)`undefined`),C.var(u.default.parentDataProperty,(0,c._)`undefined`),C.var(u.default.rootData,u.default.data),D.dynamicRef&&C.var(u.default.dynamicAnchors,(0,c._)`{}`)})}function v(C){let{schema:D,opts:Z,gen:J}=C;f(C,()=>{Z.$comment&&D.$comment&&j(C),N(C),J.let(u.default.vErrors,null),J.let(u.default.errors,0),Z.unevaluated&&x(C),R(C),ae(C)})}function x(C){let{gen:D,validateName:Z}=C;C.evaluated=D.const("evaluated",(0,c._)`${Z}.evaluated`),D.if((0,c._)`${C.evaluated}.dynamicProps`,()=>D.assign((0,c._)`${C.evaluated}.props`,(0,c._)`undefined`)),D.if((0,c._)`${C.evaluated}.dynamicItems`,()=>D.assign((0,c._)`${C.evaluated}.items`,(0,c._)`undefined`))}function b(C,D){let Z=typeof C=="object"&&C[D.schemaId];return Z&&(D.code.source||D.code.process)?(0,c._)`/*# sourceURL=${Z} */`:c.nil}function _(C,D){if(w(C)&&($(C),S(C))){E(C,D);return}(0,e.boolOrEmptySchema)(C,D)}function S({schema:C,self:D}){if(typeof C=="boolean")return!C;for(let Z in C)if(D.RULES.all[Z])return!0;return!1}function w(C){return typeof C.schema!="boolean"}function E(C,D){let{schema:Z,gen:J,opts:ue}=C;ue.$comment&&Z.$comment&&j(C),U(C),W(C);let Ge=J.const("_errs",u.default.errors);R(C,Ge),J.var(D,(0,c._)`${Ge} === ${u.default.errors}`)}function $(C){(0,d.checkUnknownRules)(C),A(C)}function R(C,D){if(C.opts.jtd)return ze(C,[],!1,D);let Z=(0,r.getSchemaTypes)(C.schema),J=(0,r.coerceAndCheckDataType)(C,Z);ze(C,Z,!J,D)}function A(C){let{schema:D,errSchemaPath:Z,opts:J,self:ue}=C;D.$ref&&J.ignoreKeywordsWithRef&&(0,d.schemaHasRulesButRef)(D,ue.RULES)&&ue.logger.warn(`$ref: keywords ignored in schema at path "${Z}"`)}function N(C){let{schema:D,opts:Z}=C;D.default!==void 0&&Z.useDefaults&&Z.strictSchema&&(0,d.checkStrictMode)(C,"default is ignored in the schema root")}function U(C){let D=C.schema[C.opts.schemaId];D&&(C.baseId=(0,l.resolveUrl)(C.opts.uriResolver,C.baseId,D))}function W(C){if(C.schema.$async&&!C.schemaEnv.$async)throw new Error("async schema in sync schema")}function j({gen:C,schemaEnv:D,schema:Z,errSchemaPath:J,opts:ue}){let Ge=Z.$comment;if(ue.$comment===!0)C.code((0,c._)`${u.default.self}.logger.log(${Ge})`);else if(typeof ue.$comment=="function"){let dr=(0,c.str)`${J}/$comment`,qn=C.scopeValue("root",{ref:D.root});C.code((0,c._)`${u.default.self}.opts.$comment(${Ge}, ${dr}, ${qn}.schema)`)}}function ae(C){let{gen:D,schemaEnv:Z,validateName:J,ValidationError:ue,opts:Ge}=C;Z.$async?D.if((0,c._)`${u.default.errors} === 0`,()=>D.return(u.default.data),()=>D.throw((0,c._)`new ${ue}(${u.default.vErrors})`)):(D.assign((0,c._)`${J}.errors`,u.default.vErrors),Ge.unevaluated&&Ne(C),D.return((0,c._)`${u.default.errors} === 0`))}function Ne({gen:C,evaluated:D,props:Z,items:J}){Z instanceof c.Name&&C.assign((0,c._)`${D}.props`,Z),J instanceof c.Name&&C.assign((0,c._)`${D}.items`,J)}function ze(C,D,Z,J){let{gen:ue,schema:Ge,data:dr,allErrors:qn,opts:Gr,self:Wr}=C,{RULES:pr}=Wr;if(Ge.$ref&&(Gr.ignoreKeywordsWithRef||!(0,d.schemaHasRulesButRef)(Ge,pr))){ue.block(()=>ce(C,"$ref",pr.all.$ref.definition));return}Gr.jtd||Ve(C,D),ue.block(()=>{for(let Sn of pr.rules)Yo(Sn);Yo(pr.post)});function Yo(Sn){(0,n.shouldUseGroup)(Ge,Sn)&&(Sn.type?(ue.if((0,i.checkDataType)(Sn.type,dr,Gr.strictNumbers)),kt(C,Sn),D.length===1&&D[0]===Sn.type&&Z&&(ue.else(),(0,i.reportTypeError)(C)),ue.endIf()):kt(C,Sn),qn||ue.if((0,c._)`${u.default.errors} === ${J||0}`))}}function kt(C,D){let{gen:Z,schema:J,opts:{useDefaults:ue}}=C;ue&&(0,s.assignDefaults)(C,D.type),Z.block(()=>{for(let Ge of D.rules)(0,n.shouldUseRule)(J,Ge)&&ce(C,Ge.keyword,Ge.definition,D.type)})}function Ve(C,D){C.schemaEnv.meta||!C.opts.strictTypes||(K(C,D),C.opts.allowUnionTypes||P(C,D),H(C,C.dataTypes))}function K(C,D){if(D.length){if(!C.dataTypes.length){C.dataTypes=D;return}D.forEach(Z=>{k(C.dataTypes,Z)||q(C,`type "${Z}" not allowed by context "${C.dataTypes.join(",")}"`)}),I(C,D)}}function P(C,D){D.length>1&&!(D.length===2&&D.includes("null"))&&q(C,"use allowUnionTypes to allow union type keyword")}function H(C,D){let Z=C.self.RULES.all;for(let J in Z){let ue=Z[J];if(typeof ue=="object"&&(0,n.shouldUseRule)(C.schema,ue)){let{type:Ge}=ue.definition;Ge.length&&!Ge.some(dr=>M(D,dr))&&q(C,`missing type "${Ge.join(",")}" for keyword "${J}"`)}}}function M(C,D){return C.includes(D)||D==="number"&&C.includes("integer")}function k(C,D){return C.includes(D)||D==="integer"&&C.includes("number")}function I(C,D){let Z=[];for(let J of C.dataTypes)k(D,J)?Z.push(J):D.includes("integer")&&J==="number"&&Z.push("integer");C.dataTypes=Z}function q(C,D){let Z=C.schemaEnv.baseId+C.errSchemaPath;D+=` at "${Z}" (strictTypes)`,(0,d.checkStrictMode)(C,D,C.opts.strictTypes)}class le{constructor(D,Z,J){if((0,o.validateKeywordUsage)(D,Z,J),this.gen=D.gen,this.allErrors=D.allErrors,this.keyword=J,this.data=D.data,this.schema=D.schema[J],this.$data=Z.$data&&D.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,d.schemaRefOrVal)(D,this.schema,J,this.$data),this.schemaType=Z.schemaType,this.parentSchema=D.schema,this.params={},this.it=D,this.def=Z,this.$data)this.schemaCode=D.gen.const("vSchema",Ft(this.$data,D));else if(this.schemaCode=this.schemaValue,!(0,o.validSchemaType)(this.schema,Z.schemaType,Z.allowUndefined))throw new Error(`${J} value must be ${JSON.stringify(Z.schemaType)}`);("code"in Z?Z.trackErrors:Z.errors!==!1)&&(this.errsCount=D.gen.const("_errs",u.default.errors))}result(D,Z,J){this.failResult((0,c.not)(D),Z,J)}failResult(D,Z,J){this.gen.if(D),J?J():this.error(),Z?(this.gen.else(),Z(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(D,Z){this.failResult((0,c.not)(D),void 0,Z)}fail(D){if(D===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(D),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(D){if(!this.$data)return this.fail(D);let{schemaCode:Z}=this;this.fail((0,c._)`${Z} !== undefined && (${(0,c.or)(this.invalid$data(),D)})`)}error(D,Z,J){if(Z){this.setParams(Z),this._error(D,J),this.setParams({});return}this._error(D,J)}_error(D,Z){(D?p.reportExtraError:p.reportError)(this,this.def.error,Z)}$dataError(){(0,p.reportError)(this,this.def.$dataError||p.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,p.resetErrorsCount)(this.gen,this.errsCount)}ok(D){this.allErrors||this.gen.if(D)}setParams(D,Z){Z?Object.assign(this.params,D):this.params=D}block$data(D,Z,J=c.nil){this.gen.block(()=>{this.check$data(D,J),Z()})}check$data(D=c.nil,Z=c.nil){if(!this.$data)return;let{gen:J,schemaCode:ue,schemaType:Ge,def:dr}=this;J.if((0,c.or)((0,c._)`${ue} === undefined`,Z)),D!==c.nil&&J.assign(D,!0),(Ge.length||dr.validateSchema)&&(J.elseIf(this.invalid$data()),this.$dataError(),D!==c.nil&&J.assign(D,!1)),J.else()}invalid$data(){let{gen:D,schemaCode:Z,schemaType:J,def:ue,it:Ge}=this;return(0,c.or)(dr(),qn());function dr(){if(J.length){if(!(Z instanceof c.Name))throw new Error("ajv implementation error");let Gr=Array.isArray(J)?J:[J];return(0,c._)`${(0,i.checkDataTypes)(Gr,Z,Ge.opts.strictNumbers,i.DataType.Wrong)}`}return c.nil}function qn(){if(ue.validateSchema){let Gr=D.scopeValue("validate$data",{ref:ue.validateSchema});return(0,c._)`!${Gr}(${Z})`}return c.nil}}subschema(D,Z){let J=(0,a.getSubschema)(this.it,D);(0,a.extendSubschemaData)(J,this.it,D),(0,a.extendSubschemaMode)(J,D);let ue={...this.it,...J,items:void 0,props:void 0};return _(ue,Z),ue}mergeEvaluated(D,Z){let{it:J,gen:ue}=this;J.opts.unevaluated&&(J.props!==!0&&D.props!==void 0&&(J.props=d.mergeEvaluated.props(ue,D.props,J.props,Z)),J.items!==!0&&D.items!==void 0&&(J.items=d.mergeEvaluated.items(ue,D.items,J.items,Z)))}mergeValidEvaluated(D,Z){let{it:J,gen:ue}=this;if(J.opts.unevaluated&&(J.props!==!0||J.items!==!0))return ue.if(Z,()=>this.mergeEvaluated(D,c.Name)),!0}}t.KeywordCxt=le;function ce(C,D,Z,J){let ue=new le(C,Z,D);"code"in Z?Z.code(ue,J):ue.$data&&Z.validate?(0,o.funcKeywordCode)(ue,Z):"macro"in Z?(0,o.macroKeywordCode)(ue,Z):(Z.compile||Z.validate)&&(0,o.funcKeywordCode)(ue,Z)}var Qe=/^\/(?:[^~]|~0|~1)*$/,Xe=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Ft(C,{dataLevel:D,dataNames:Z,dataPathArr:J}){let ue,Ge;if(C==="")return u.default.rootData;if(C[0]==="/"){if(!Qe.test(C))throw new Error(`Invalid JSON-pointer: ${C}`);ue=C,Ge=u.default.rootData}else{let Wr=Xe.exec(C);if(!Wr)throw new Error(`Invalid JSON-pointer: ${C}`);let pr=+Wr[1];if(ue=Wr[2],ue==="#"){if(pr>=D)throw new Error(Gr("property/index",pr));return J[D-pr]}if(pr>D)throw new Error(Gr("data",pr));if(Ge=Z[D-pr],!ue)return Ge}let dr=Ge,qn=ue.split("/");for(let Wr of qn)Wr&&(Ge=(0,c._)`${Ge}${(0,c.getProperty)((0,d.unescapeJsonPointer)(Wr))}`,dr=(0,c._)`${dr} && ${Ge}`);return dr;function Gr(Wr,pr){return`Cannot access ${Wr} ${pr} levels up, current level is ${D}`}}t.getData=Ft}),qk=re(t=>{Object.defineProperty(t,"__esModule",{value:!0});class e extends Error{constructor(n){super("validation failed"),this.errors=n,this.ajv=this.validation=!0}}t.default=e}),Og=re(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e=Ig();class r extends Error{constructor(i,s,o,a){super(a||`can't resolve reference ${o} from id ${s}`),this.missingRef=(0,e.resolveUrl)(i,s,o),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(i,this.missingRef))}}t.default=r}),Fk=re(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.resolveSchema=t.getCompilingSchema=t.resolveRef=t.compileSchema=t.SchemaEnv=void 0;var e=Ze(),r=qk(),n=Gs(),i=Ig(),s=at(),o=Rg();class a{constructor(x){var b;this.refs={},this.dynamicAnchors={};let _;typeof x.schema=="object"&&(_=x.schema),this.schema=x.schema,this.schemaId=x.schemaId,this.root=x.root||this,this.baseId=(b=x.baseId)!==null&&b!==void 0?b:(0,i.normalizeId)(_?.[x.schemaId||"$id"]),this.schemaPath=x.schemaPath,this.localRefs=x.localRefs,this.meta=x.meta,this.$async=_?.$async,this.refs={}}}t.SchemaEnv=a;function c(v){let x=d.call(this,v);if(x)return x;let b=(0,i.getFullPath)(this.opts.uriResolver,v.root.baseId),{es5:_,lines:S}=this.opts.code,{ownProperties:w}=this.opts,E=new e.CodeGen(this.scope,{es5:_,lines:S,ownProperties:w}),$;v.$async&&($=E.scopeValue("Error",{ref:r.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));let R=E.scopeName("validate");v.validateName=R;let A={gen:E,allErrors:this.opts.allErrors,data:n.default.data,parentData:n.default.parentData,parentDataProperty:n.default.parentDataProperty,dataNames:[n.default.data],dataPathArr:[e.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:E.scopeValue("schema",this.opts.code.source===!0?{ref:v.schema,code:(0,e.stringify)(v.schema)}:{ref:v.schema}),validateName:R,ValidationError:$,schema:v.schema,schemaEnv:v,rootId:b,baseId:v.baseId||b,schemaPath:e.nil,errSchemaPath:v.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,e._)`""`,opts:this.opts,self:this},N;try{this._compilations.add(v),(0,o.validateFunctionCode)(A),E.optimize(this.opts.code.optimize);let U=E.toString();N=`${E.scopeRefs(n.default.scope)}return ${U}`,this.opts.code.process&&(N=this.opts.code.process(N,v));let j=new Function(`${n.default.self}`,`${n.default.scope}`,N)(this,this.scope.get());if(this.scope.value(R,{ref:j}),j.errors=null,j.schema=v.schema,j.schemaEnv=v,v.$async&&(j.$async=!0),this.opts.code.source===!0&&(j.source={validateName:R,validateCode:U,scopeValues:E._values}),this.opts.unevaluated){let{props:ae,items:Ne}=A;j.evaluated={props:ae instanceof e.Name?void 0:ae,items:Ne instanceof e.Name?void 0:Ne,dynamicProps:ae instanceof e.Name,dynamicItems:Ne instanceof e.Name},j.source&&(j.source.evaluated=(0,e.stringify)(j.evaluated))}return v.validate=j,v}catch(U){throw delete v.validate,delete v.validateName,N&&this.logger.error("Error compiling schema, function code:",N),U}finally{this._compilations.delete(v)}}t.compileSchema=c;function u(v,x,b){var _;b=(0,i.resolveUrl)(this.opts.uriResolver,x,b);let S=v.refs[b];if(S)return S;let w=m.call(this,v,b);if(w===void 0){let E=(_=v.localRefs)===null||_===void 0?void 0:_[b],{schemaId:$}=this.opts;E&&(w=new a({schema:E,schemaId:$,root:v,baseId:x}))}if(w!==void 0)return v.refs[b]=l.call(this,w)}t.resolveRef=u;function l(v){return(0,i.inlineRef)(v.schema,this.opts.inlineRefs)?v.schema:v.validate?v:c.call(this,v)}function d(v){for(let x of this._compilations)if(p(x,v))return x}t.getCompilingSchema=d;function p(v,x){return v.schema===x.schema&&v.root===x.root&&v.baseId===x.baseId}function m(v,x){let b;for(;typeof(b=this.refs[x])=="string";)x=b;return b||this.schemas[x]||f.call(this,v,x)}function f(v,x){let b=this.opts.uriResolver.parse(x),_=(0,i._getFullPath)(this.opts.uriResolver,b),S=(0,i.getFullPath)(this.opts.uriResolver,v.baseId,void 0);if(Object.keys(v.schema).length>0&&_===S)return h.call(this,b,v);let w=(0,i.normalizeId)(_),E=this.refs[w]||this.schemas[w];if(typeof E=="string"){let $=f.call(this,v,E);return typeof $?.schema!="object"?void 0:h.call(this,b,$)}if(typeof E?.schema=="object"){if(E.validate||c.call(this,E),w===(0,i.normalizeId)(x)){let{schema:$}=E,{schemaId:R}=this.opts,A=$[R];return A&&(S=(0,i.resolveUrl)(this.opts.uriResolver,S,A)),new a({schema:$,schemaId:R,root:v,baseId:S})}return h.call(this,b,E)}}t.resolveSchema=f;var g=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function h(v,{baseId:x,schema:b,root:_}){var S;if(((S=v.fragment)===null||S===void 0?void 0:S[0])!=="/")return;for(let $ of v.fragment.slice(1).split("/")){if(typeof b=="boolean")return;let R=b[(0,s.unescapeFragment)($)];if(R===void 0)return;b=R;let A=typeof b=="object"&&b[this.opts.schemaId];!g.has($)&&A&&(x=(0,i.resolveUrl)(this.opts.uriResolver,x,A))}let w;if(typeof b!="boolean"&&b.$ref&&!(0,s.schemaHasRulesButRef)(b,this.RULES)){let $=(0,i.resolveUrl)(this.opts.uriResolver,x,b.$ref);w=f.call(this,_,$)}let{schemaId:E}=this.opts;if(w=w||new a({schema:b,schemaId:E,root:_,baseId:x}),w.schema!==w.root.schema)return w}}),Ooe=re((t,e)=>{e.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}}),Poe=re((t,e)=>{var r={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};e.exports={HEX:r}}),Coe=re((t,e)=>{var{HEX:r}=Poe(),n=/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u;function i(v){if(u(v,".")<3)return{host:v,isIPV4:!1};let x=v.match(n)||[],[b]=x;return b?{host:c(b,"."),isIPV4:!0}:{host:v,isIPV4:!1}}function s(v,x=!1){let b="",_=!0;for(let S of v){if(r[S]===void 0)return;S!=="0"&&_===!0&&(_=!1),_||(b+=S)}return x&&b.length===0&&(b="0"),b}function o(v){let x=0,b={error:!1,address:"",zone:""},_=[],S=[],w=!1,E=!1,$=!1;function R(){if(S.length){if(w===!1){let A=s(S);if(A!==void 0)_.push(A);else return b.error=!0,!1}S.length=0}return!0}for(let A=0;A7){b.error=!0;break}A-1>=0&&v[A-1]===":"&&(E=!0);continue}else if(N==="%"){if(!R())break;w=!0}else{S.push(N);continue}}return S.length&&(w?b.zone=S.join(""):$?_.push(S.join("")):_.push(s(S))),b.address=_.join(""),b}function a(v){if(u(v,":")<2)return{host:v,isIPV6:!1};let x=o(v);if(x.error)return{host:v,isIPV6:!1};{let b=x.address,_=x.address;return x.zone&&(b+="%"+x.zone,_+="%25"+x.zone),{host:b,escapedHost:_,isIPV6:!0}}}function c(v,x){let b="",_=!0,S=v.length;for(let w=0;w{var r=/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu,n=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function i(_){return typeof _.secure=="boolean"?_.secure:String(_.scheme).toLowerCase()==="wss"}function s(_){return _.host||(_.error=_.error||"HTTP URIs must have a host."),_}function o(_){let S=String(_.scheme).toLowerCase()==="https";return(_.port===(S?443:80)||_.port==="")&&(_.port=void 0),_.path||(_.path="/"),_}function a(_){return _.secure=i(_),_.resourceName=(_.path||"/")+(_.query?"?"+_.query:""),_.path=void 0,_.query=void 0,_}function c(_){if((_.port===(i(_)?443:80)||_.port==="")&&(_.port=void 0),typeof _.secure=="boolean"&&(_.scheme=_.secure?"wss":"ws",_.secure=void 0),_.resourceName){let[S,w]=_.resourceName.split("?");_.path=S&&S!=="/"?S:void 0,_.query=w,_.resourceName=void 0}return _.fragment=void 0,_}function u(_,S){if(!_.path)return _.error="URN can not be parsed",_;let w=_.path.match(n);if(w){let E=S.scheme||_.scheme||"urn";_.nid=w[1].toLowerCase(),_.nss=w[2];let $=`${E}:${S.nid||_.nid}`,R=b[$];_.path=void 0,R&&(_=R.parse(_,S))}else _.error=_.error||"URN can not be parsed.";return _}function l(_,S){let w=S.scheme||_.scheme||"urn",E=_.nid.toLowerCase(),$=`${w}:${S.nid||E}`,R=b[$];R&&(_=R.serialize(_,S));let A=_,N=_.nss;return A.path=`${E||S.nid}:${N}`,S.skipEscape=!0,A}function d(_,S){let w=_;return w.uuid=w.nss,w.nss=void 0,!S.tolerant&&(!w.uuid||!r.test(w.uuid))&&(w.error=w.error||"UUID is not valid."),w}function p(_){let S=_;return S.nss=(_.uuid||"").toLowerCase(),S}var m={scheme:"http",domainHost:!0,parse:s,serialize:o},f={scheme:"https",domainHost:m.domainHost,parse:s,serialize:o},g={scheme:"ws",domainHost:!0,parse:a,serialize:c},h={scheme:"wss",domainHost:g.domainHost,parse:g.parse,serialize:g.serialize},v={scheme:"urn",parse:u,serialize:l,skipNormalize:!0},x={scheme:"urn:uuid",parse:d,serialize:p,skipNormalize:!0},b={http:m,https:f,ws:g,wss:h,urn:v,"urn:uuid":x};e.exports=b}),Noe=re((t,e)=>{var{normalizeIPv6:r,normalizeIPv4:n,removeDotSegments:i,recomposeAuthority:s,normalizeComponentEncoding:o}=Coe(),a=Aoe();function c(x,b){return typeof x=="string"?x=p(h(x,b),b):typeof x=="object"&&(x=h(p(x,b),b)),x}function u(x,b,_){let S=Object.assign({scheme:"null"},_),w=l(h(x,S),h(b,S),S,!0);return p(w,{...S,skipEscape:!0})}function l(x,b,_,S){let w={};return S||(x=h(p(x,_),_),b=h(p(b,_),_)),_=_||{},!_.tolerant&&b.scheme?(w.scheme=b.scheme,w.userinfo=b.userinfo,w.host=b.host,w.port=b.port,w.path=i(b.path||""),w.query=b.query):(b.userinfo!==void 0||b.host!==void 0||b.port!==void 0?(w.userinfo=b.userinfo,w.host=b.host,w.port=b.port,w.path=i(b.path||""),w.query=b.query):(b.path?(b.path.charAt(0)==="/"?w.path=i(b.path):((x.userinfo!==void 0||x.host!==void 0||x.port!==void 0)&&!x.path?w.path="/"+b.path:x.path?w.path=x.path.slice(0,x.path.lastIndexOf("/")+1)+b.path:w.path=b.path,w.path=i(w.path)),w.query=b.query):(w.path=x.path,b.query!==void 0?w.query=b.query:w.query=x.query),w.userinfo=x.userinfo,w.host=x.host,w.port=x.port),w.scheme=x.scheme),w.fragment=b.fragment,w}function d(x,b,_){return typeof x=="string"?(x=unescape(x),x=p(o(h(x,_),!0),{..._,skipEscape:!0})):typeof x=="object"&&(x=p(o(x,!0),{..._,skipEscape:!0})),typeof b=="string"?(b=unescape(b),b=p(o(h(b,_),!0),{..._,skipEscape:!0})):typeof b=="object"&&(b=p(o(b,!0),{..._,skipEscape:!0})),x.toLowerCase()===b.toLowerCase()}function p(x,b){let _={host:x.host,scheme:x.scheme,userinfo:x.userinfo,port:x.port,path:x.path,query:x.query,nid:x.nid,nss:x.nss,uuid:x.uuid,fragment:x.fragment,reference:x.reference,resourceName:x.resourceName,secure:x.secure,error:""},S=Object.assign({},b),w=[],E=a[(S.scheme||_.scheme||"").toLowerCase()];E&&E.serialize&&E.serialize(_,S),_.path!==void 0&&(S.skipEscape?_.path=unescape(_.path):(_.path=escape(_.path),_.scheme!==void 0&&(_.path=_.path.split("%3A").join(":")))),S.reference!=="suffix"&&_.scheme&&w.push(_.scheme,":");let $=s(_);if($!==void 0&&(S.reference!=="suffix"&&w.push("//"),w.push($),_.path&&_.path.charAt(0)!=="/"&&w.push("/")),_.path!==void 0){let R=_.path;!S.absolutePath&&(!E||!E.absolutePath)&&(R=i(R)),$===void 0&&(R=R.replace(/^\/\//u,"/%2F")),w.push(R)}return _.query!==void 0&&w.push("?",_.query),_.fragment!==void 0&&w.push("#",_.fragment),w.join("")}var m=Array.from({length:127},(x,b)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(b)));function f(x){let b=0;for(let _=0,S=x.length;_126||m[b])return!0;return!1}var g=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function h(x,b){let _=Object.assign({},b),S={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},w=x.indexOf("%")!==-1,E=!1;_.reference==="suffix"&&(x=(_.scheme?_.scheme+":":"")+"//"+x);let $=x.match(g);if($){if(S.scheme=$[1],S.userinfo=$[3],S.host=$[4],S.port=parseInt($[5],10),S.path=$[6]||"",S.query=$[7],S.fragment=$[8],isNaN(S.port)&&(S.port=$[5]),S.host){let A=n(S.host);if(A.isIPV4===!1){let N=r(A.host);S.host=N.host.toLowerCase(),E=N.isIPV6}else S.host=A.host,E=!0}S.scheme===void 0&&S.userinfo===void 0&&S.host===void 0&&S.port===void 0&&S.query===void 0&&!S.path?S.reference="same-document":S.scheme===void 0?S.reference="relative":S.fragment===void 0?S.reference="absolute":S.reference="uri",_.reference&&_.reference!=="suffix"&&_.reference!==S.reference&&(S.error=S.error||"URI is not a "+_.reference+" reference.");let R=a[(_.scheme||S.scheme||"").toLowerCase()];if(!_.unicodeSupport&&(!R||!R.unicodeSupport)&&S.host&&(_.domainHost||R&&R.domainHost)&&E===!1&&f(S.host))try{S.host=URL.domainToASCII(S.host.toLowerCase())}catch(A){S.error=S.error||"Host's domain name can not be converted to ASCII: "+A}(!R||R&&!R.skipNormalize)&&(w&&S.scheme!==void 0&&(S.scheme=unescape(S.scheme)),w&&S.host!==void 0&&(S.host=unescape(S.host)),S.path&&(S.path=escape(unescape(S.path))),S.fragment&&(S.fragment=encodeURI(decodeURIComponent(S.fragment)))),R&&R.parse&&R.parse(S,_)}else S.error=S.error||"URI can not be parsed.";return S}var v={SCHEMES:a,normalize:c,resolve:u,resolveComponents:l,equal:d,serialize:p,parse:h};e.exports=v,e.exports.default=v,e.exports.fastUri=v}),Moe=re(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e=Noe();e.code='require("ajv/dist/runtime/uri").default',t.default=e}),Doe=re(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var e=Rg();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return e.KeywordCxt}});var r=Ze();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});var n=qk(),i=Og(),s=m2(),o=Fk(),a=Ze(),c=Ig(),u=bg(),l=at(),d=Ooe(),p=Moe(),m=(K,P)=>new RegExp(K,P);m.code="new RegExp";var f=["removeAdditional","useDefaults","coerceTypes"],g=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),h={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},v={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},x=200;function b(K){var P,H,M,k,I,q,le,ce,Qe,Xe,Ft,C,D,Z,J,ue,Ge,dr,qn,Gr,Wr,pr,Yo,Sn,Sv;let su=K.strict,wv=(P=K.code)===null||P===void 0?void 0:P.optimize,W$=wv===!0||wv===void 0?1:wv||0,K$=(M=(H=K.code)===null||H===void 0?void 0:H.regExp)!==null&&M!==void 0?M:m,G9=(k=K.uriResolver)!==null&&k!==void 0?k:p.default;return{strictSchema:(q=(I=K.strictSchema)!==null&&I!==void 0?I:su)!==null&&q!==void 0?q:!0,strictNumbers:(ce=(le=K.strictNumbers)!==null&&le!==void 0?le:su)!==null&&ce!==void 0?ce:!0,strictTypes:(Xe=(Qe=K.strictTypes)!==null&&Qe!==void 0?Qe:su)!==null&&Xe!==void 0?Xe:"log",strictTuples:(C=(Ft=K.strictTuples)!==null&&Ft!==void 0?Ft:su)!==null&&C!==void 0?C:"log",strictRequired:(Z=(D=K.strictRequired)!==null&&D!==void 0?D:su)!==null&&Z!==void 0?Z:!1,code:K.code?{...K.code,optimize:W$,regExp:K$}:{optimize:W$,regExp:K$},loopRequired:(J=K.loopRequired)!==null&&J!==void 0?J:x,loopEnum:(ue=K.loopEnum)!==null&&ue!==void 0?ue:x,meta:(Ge=K.meta)!==null&&Ge!==void 0?Ge:!0,messages:(dr=K.messages)!==null&&dr!==void 0?dr:!0,inlineRefs:(qn=K.inlineRefs)!==null&&qn!==void 0?qn:!0,schemaId:(Gr=K.schemaId)!==null&&Gr!==void 0?Gr:"$id",addUsedSchema:(Wr=K.addUsedSchema)!==null&&Wr!==void 0?Wr:!0,validateSchema:(pr=K.validateSchema)!==null&&pr!==void 0?pr:!0,validateFormats:(Yo=K.validateFormats)!==null&&Yo!==void 0?Yo:!0,unicodeRegExp:(Sn=K.unicodeRegExp)!==null&&Sn!==void 0?Sn:!0,int32range:(Sv=K.int32range)!==null&&Sv!==void 0?Sv:!0,uriResolver:G9}}class _{constructor(P={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,P=this.opts={...P,...b(P)};let{es5:H,lines:M}=this.opts.code;this.scope=new a.ValueScope({scope:{},prefixes:g,es5:H,lines:M}),this.logger=U(P.logger);let k=P.validateFormats;P.validateFormats=!1,this.RULES=(0,s.getRules)(),S.call(this,h,P,"NOT SUPPORTED"),S.call(this,v,P,"DEPRECATED","warn"),this._metaOpts=A.call(this),P.formats&&$.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),P.keywords&&R.call(this,P.keywords),typeof P.meta=="object"&&this.addMetaSchema(P.meta),E.call(this),P.validateFormats=k}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:P,meta:H,schemaId:M}=this.opts,k=d;M==="id"&&(k={...d},k.id=k.$id,delete k.$id),H&&P&&this.addMetaSchema(k,k[M],!1)}defaultMeta(){let{meta:P,schemaId:H}=this.opts;return this.opts.defaultMeta=typeof P=="object"?P[H]||P:void 0}validate(P,H){let M;if(typeof P=="string"){if(M=this.getSchema(P),!M)throw new Error(`no schema with key or ref "${P}"`)}else M=this.compile(P);let k=M(H);return"$async"in M||(this.errors=M.errors),k}compile(P,H){let M=this._addSchema(P,H);return M.validate||this._compileSchemaEnv(M)}compileAsync(P,H){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:M}=this.opts;return k.call(this,P,H);async function k(Xe,Ft){await I.call(this,Xe.$schema);let C=this._addSchema(Xe,Ft);return C.validate||q.call(this,C)}async function I(Xe){Xe&&!this.getSchema(Xe)&&await k.call(this,{$ref:Xe},!0)}async function q(Xe){try{return this._compileSchemaEnv(Xe)}catch(Ft){if(!(Ft instanceof i.default))throw Ft;return le.call(this,Ft),await ce.call(this,Ft.missingSchema),q.call(this,Xe)}}function le({missingSchema:Xe,missingRef:Ft}){if(this.refs[Xe])throw new Error(`AnySchema ${Xe} is loaded but ${Ft} cannot be resolved`)}async function ce(Xe){let Ft=await Qe.call(this,Xe);this.refs[Xe]||await I.call(this,Ft.$schema),this.refs[Xe]||this.addSchema(Ft,Xe,H)}async function Qe(Xe){let Ft=this._loading[Xe];if(Ft)return Ft;try{return await(this._loading[Xe]=M(Xe))}finally{delete this._loading[Xe]}}}addSchema(P,H,M,k=this.opts.validateSchema){if(Array.isArray(P)){for(let q of P)this.addSchema(q,void 0,M,k);return this}let I;if(typeof P=="object"){let{schemaId:q}=this.opts;if(I=P[q],I!==void 0&&typeof I!="string")throw new Error(`schema ${q} must be string`)}return H=(0,c.normalizeId)(H||I),this._checkUnique(H),this.schemas[H]=this._addSchema(P,M,H,k,!0),this}addMetaSchema(P,H,M=this.opts.validateSchema){return this.addSchema(P,H,!0,M),this}validateSchema(P,H){if(typeof P=="boolean")return!0;let M;if(M=P.$schema,M!==void 0&&typeof M!="string")throw new Error("$schema must be a string");if(M=M||this.opts.defaultMeta||this.defaultMeta(),!M)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let k=this.validate(M,P);if(!k&&H){let I="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(I);else throw new Error(I)}return k}getSchema(P){let H;for(;typeof(H=w.call(this,P))=="string";)P=H;if(H===void 0){let{schemaId:M}=this.opts,k=new o.SchemaEnv({schema:{},schemaId:M});if(H=o.resolveSchema.call(this,k,P),!H)return;this.refs[P]=H}return H.validate||this._compileSchemaEnv(H)}removeSchema(P){if(P instanceof RegExp)return this._removeAllSchemas(this.schemas,P),this._removeAllSchemas(this.refs,P),this;switch(typeof P){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let H=w.call(this,P);return typeof H=="object"&&this._cache.delete(H.schema),delete this.schemas[P],delete this.refs[P],this}case"object":{let H=P;this._cache.delete(H);let M=P[this.opts.schemaId];return M&&(M=(0,c.normalizeId)(M),delete this.schemas[M],delete this.refs[M]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(P){for(let H of P)this.addKeyword(H);return this}addKeyword(P,H){let M;if(typeof P=="string")M=P,typeof H=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),H.keyword=M);else if(typeof P=="object"&&H===void 0){if(H=P,M=H.keyword,Array.isArray(M)&&!M.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(j.call(this,M,H),!H)return(0,l.eachItem)(M,I=>ae.call(this,I)),this;ze.call(this,H);let k={...H,type:(0,u.getJSONTypes)(H.type),schemaType:(0,u.getJSONTypes)(H.schemaType)};return(0,l.eachItem)(M,k.type.length===0?I=>ae.call(this,I,k):I=>k.type.forEach(q=>ae.call(this,I,k,q))),this}getKeyword(P){let H=this.RULES.all[P];return typeof H=="object"?H.definition:!!H}removeKeyword(P){let{RULES:H}=this;delete H.keywords[P],delete H.all[P];for(let M of H.rules){let k=M.rules.findIndex(I=>I.keyword===P);k>=0&&M.rules.splice(k,1)}return this}addFormat(P,H){return typeof H=="string"&&(H=new RegExp(H)),this.formats[P]=H,this}errorsText(P=this.errors,{separator:H=", ",dataVar:M="data"}={}){return!P||P.length===0?"No errors":P.map(k=>`${M}${k.instancePath} ${k.message}`).reduce((k,I)=>k+H+I)}$dataMetaSchema(P,H){let M=this.RULES.all;P=JSON.parse(JSON.stringify(P));for(let k of H){let I=k.split("/").slice(1),q=P;for(let le of I)q=q[le];for(let le in M){let ce=M[le];if(typeof ce!="object")continue;let{$data:Qe}=ce.definition,Xe=q[le];Qe&&Xe&&(q[le]=Ve(Xe))}}return P}_removeAllSchemas(P,H){for(let M in P){let k=P[M];(!H||H.test(M))&&(typeof k=="string"?delete P[M]:k&&!k.meta&&(this._cache.delete(k.schema),delete P[M]))}}_addSchema(P,H,M,k=this.opts.validateSchema,I=this.opts.addUsedSchema){let q,{schemaId:le}=this.opts;if(typeof P=="object")q=P[le];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof P!="boolean")throw new Error("schema must be object or boolean")}let ce=this._cache.get(P);if(ce!==void 0)return ce;M=(0,c.normalizeId)(q||M);let Qe=c.getSchemaRefs.call(this,P,M);return ce=new o.SchemaEnv({schema:P,schemaId:le,meta:H,baseId:M,localRefs:Qe}),this._cache.set(ce.schema,ce),I&&!M.startsWith("#")&&(M&&this._checkUnique(M),this.refs[M]=ce),k&&this.validateSchema(P,!0),ce}_checkUnique(P){if(this.schemas[P]||this.refs[P])throw new Error(`schema with key or id "${P}" already exists`)}_compileSchemaEnv(P){if(P.meta?this._compileMetaSchema(P):o.compileSchema.call(this,P),!P.validate)throw new Error("ajv implementation error");return P.validate}_compileMetaSchema(P){let H=this.opts;this.opts=this._metaOpts;try{o.compileSchema.call(this,P)}finally{this.opts=H}}}_.ValidationError=n.default,_.MissingRefError=i.default,t.default=_;function S(K,P,H,M="error"){for(let k in K){let I=k;I in P&&this.logger[M](`${H}: option ${k}. ${K[I]}`)}}function w(K){return K=(0,c.normalizeId)(K),this.schemas[K]||this.refs[K]}function E(){let K=this.opts.schemas;if(K)if(Array.isArray(K))this.addSchema(K);else for(let P in K)this.addSchema(K[P],P)}function $(){for(let K in this.opts.formats){let P=this.opts.formats[K];P&&this.addFormat(K,P)}}function R(K){if(Array.isArray(K)){this.addVocabulary(K);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let P in K){let H=K[P];H.keyword||(H.keyword=P),this.addKeyword(H)}}function A(){let K={...this.opts};for(let P of f)delete K[P];return K}var N={log(){},warn(){},error(){}};function U(K){if(K===!1)return N;if(K===void 0)return console;if(K.log&&K.warn&&K.error)return K;throw new Error("logger must implement log, warn and error methods")}var W=/^[a-z_$][a-z0-9_$:-]*$/i;function j(K,P){let{RULES:H}=this;if((0,l.eachItem)(K,M=>{if(H.keywords[M])throw new Error(`Keyword ${M} is already defined`);if(!W.test(M))throw new Error(`Keyword ${M} has invalid name`)}),!!P&&P.$data&&!("code"in P||"validate"in P))throw new Error('$data keyword must have "code" or "validate" function')}function ae(K,P,H){var M;let k=P?.post;if(H&&k)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:I}=this,q=k?I.post:I.rules.find(({type:ce})=>ce===H);if(q||(q={type:H,rules:[]},I.rules.push(q)),I.keywords[K]=!0,!P)return;let le={keyword:K,definition:{...P,type:(0,u.getJSONTypes)(P.type),schemaType:(0,u.getJSONTypes)(P.schemaType)}};P.before?Ne.call(this,q,le,P.before):q.rules.push(le),I.all[K]=le,(M=P.implements)===null||M===void 0||M.forEach(ce=>this.addKeyword(ce))}function Ne(K,P,H){let M=K.rules.findIndex(k=>k.keyword===H);M>=0?K.rules.splice(M,0,P):(K.rules.push(P),this.logger.warn(`rule ${H} is not defined`))}function ze(K){let{metaSchema:P}=K;P!==void 0&&(K.$data&&this.opts.$data&&(P=Ve(P)),K.validateSchema=this.compile(P,!0))}var kt={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Ve(K){return{anyOf:[K,kt]}}}),joe=re(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};t.default=e}),zoe=re(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.callRef=t.getValidate=void 0;var e=Og(),r=oi(),n=Ze(),i=Gs(),s=Fk(),o=at(),a={keyword:"$ref",schemaType:"string",code(l){let{gen:d,schema:p,it:m}=l,{baseId:f,schemaEnv:g,validateName:h,opts:v,self:x}=m,{root:b}=g;if((p==="#"||p==="#/")&&f===b.baseId)return S();let _=s.resolveRef.call(x,b,f,p);if(_===void 0)throw new e.default(m.opts.uriResolver,f,p);if(_ instanceof s.SchemaEnv)return w(_);return E(_);function S(){if(g===b)return u(l,h,g,g.$async);let $=d.scopeValue("root",{ref:b});return u(l,(0,n._)`${$}.validate`,b,b.$async)}function w($){let R=c(l,$);u(l,R,$,$.$async)}function E($){let R=d.scopeValue("schema",v.code.source===!0?{ref:$,code:(0,n.stringify)($)}:{ref:$}),A=d.name("valid"),N=l.subschema({schema:$,dataTypes:[],schemaPath:n.nil,topSchemaRef:R,errSchemaPath:p},A);l.mergeEvaluated(N),l.ok(A)}}};function c(l,d){let{gen:p}=l;return d.validate?p.scopeValue("validate",{ref:d.validate}):(0,n._)`${p.scopeValue("wrapper",{ref:d})}.validate`}t.getValidate=c;function u(l,d,p,m){let{gen:f,it:g}=l,{allErrors:h,schemaEnv:v,opts:x}=g,b=x.passContext?i.default.this:n.nil;m?_():S();function _(){if(!v.$async)throw new Error("async schema referenced by sync schema");let $=f.let("valid");f.try(()=>{f.code((0,n._)`await ${(0,r.callValidateCode)(l,d,b)}`),E(d),h||f.assign($,!0)},R=>{f.if((0,n._)`!(${R} instanceof ${g.ValidationError})`,()=>f.throw(R)),w(R),h||f.assign($,!1)}),l.ok($)}function S(){l.result((0,r.callValidateCode)(l,d,b),()=>E(d),()=>w(d))}function w($){let R=(0,n._)`${$}.errors`;f.assign(i.default.vErrors,(0,n._)`${i.default.vErrors} === null ? ${R} : ${i.default.vErrors}.concat(${R})`),f.assign(i.default.errors,(0,n._)`${i.default.vErrors}.length`)}function E($){var R;if(!g.opts.unevaluated)return;let A=(R=p?.validate)===null||R===void 0?void 0:R.evaluated;if(g.props!==!0)if(A&&!A.dynamicProps)A.props!==void 0&&(g.props=o.mergeEvaluated.props(f,A.props,g.props));else{let N=f.var("props",(0,n._)`${$}.evaluated.props`);g.props=o.mergeEvaluated.props(f,N,g.props,n.Name)}if(g.items!==!0)if(A&&!A.dynamicItems)A.items!==void 0&&(g.items=o.mergeEvaluated.items(f,A.items,g.items));else{let N=f.var("items",(0,n._)`${$}.evaluated.items`);g.items=o.mergeEvaluated.items(f,N,g.items,n.Name)}}}t.callRef=u,t.default=a}),Loe=re(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e=joe(),r=zoe(),n=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,r.default];t.default=n}),Uoe=re(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e=Ze(),r=e.operators,n={maximum:{okStr:"<=",ok:r.LTE,fail:r.GT},minimum:{okStr:">=",ok:r.GTE,fail:r.LT},exclusiveMaximum:{okStr:"<",ok:r.LT,fail:r.GTE},exclusiveMinimum:{okStr:">",ok:r.GT,fail:r.LTE}},i={message:({keyword:o,schemaCode:a})=>(0,e.str)`must be ${n[o].okStr} ${a}`,params:({keyword:o,schemaCode:a})=>(0,e._)`{comparison: ${n[o].okStr}, limit: ${a}}`},s={keyword:Object.keys(n),type:"number",schemaType:"number",$data:!0,error:i,code(o){let{keyword:a,data:c,schemaCode:u}=o;o.fail$data((0,e._)`${c} ${n[a].fail} ${u} || isNaN(${c})`)}};t.default=s}),qoe=re(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e=Ze(),r={message:({schemaCode:i})=>(0,e.str)`must be multiple of ${i}`,params:({schemaCode:i})=>(0,e._)`{multipleOf: ${i}}`},n={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:r,code(i){let{gen:s,data:o,schemaCode:a,it:c}=i,u=c.opts.multipleOfPrecision,l=s.let("res"),d=u?(0,e._)`Math.abs(Math.round(${l}) - ${l}) > 1e-${u}`:(0,e._)`${l} !== parseInt(${l})`;i.fail$data((0,e._)`(${a} === 0 || (${l} = ${o}/${a}, ${d}))`)}};t.default=n}),Foe=re(t=>{Object.defineProperty(t,"__esModule",{value:!0});function e(r){let n=r.length,i=0,s=0,o;for(;s=55296&&o<=56319&&s{Object.defineProperty(t,"__esModule",{value:!0});var e=Ze(),r=at(),n=Foe(),i={message({keyword:o,schemaCode:a}){let c=o==="maxLength"?"more":"fewer";return(0,e.str)`must NOT have ${c} than ${a} characters`},params:({schemaCode:o})=>(0,e._)`{limit: ${o}}`},s={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:i,code(o){let{keyword:a,data:c,schemaCode:u,it:l}=o,d=a==="maxLength"?e.operators.GT:e.operators.LT,p=l.opts.unicode===!1?(0,e._)`${c}.length`:(0,e._)`${(0,r.useFunc)(o.gen,n.default)}(${c})`;o.fail$data((0,e._)`${p} ${d} ${u}`)}};t.default=s}),Zoe=re(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e=oi(),r=Ze(),n={message:({schemaCode:s})=>(0,r.str)`must match pattern "${s}"`,params:({schemaCode:s})=>(0,r._)`{pattern: ${s}}`},i={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:n,code(s){let{data:o,$data:a,schema:c,schemaCode:u,it:l}=s,d=l.opts.unicodeRegExp?"u":"",p=a?(0,r._)`(new RegExp(${u}, ${d}))`:(0,e.usePattern)(s,c);s.fail$data((0,r._)`!${p}.test(${o})`)}};t.default=i}),Boe=re(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e=Ze(),r={message({keyword:i,schemaCode:s}){let o=i==="maxProperties"?"more":"fewer";return(0,e.str)`must NOT have ${o} than ${s} properties`},params:({schemaCode:i})=>(0,e._)`{limit: ${i}}`},n={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:r,code(i){let{keyword:s,data:o,schemaCode:a}=i,c=s==="maxProperties"?e.operators.GT:e.operators.LT;i.fail$data((0,e._)`Object.keys(${o}).length ${c} ${a}`)}};t.default=n}),Voe=re(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e=oi(),r=Ze(),n=at(),i={message:({params:{missingProperty:o}})=>(0,r.str)`must have required property '${o}'`,params:({params:{missingProperty:o}})=>(0,r._)`{missingProperty: ${o}}`},s={keyword:"required",type:"object",schemaType:"array",$data:!0,error:i,code(o){let{gen:a,schema:c,schemaCode:u,data:l,$data:d,it:p}=o,{opts:m}=p;if(!d&&c.length===0)return;let f=c.length>=m.loopRequired;if(p.allErrors?g():h(),m.strictRequired){let b=o.parentSchema.properties,{definedProperties:_}=o.it;for(let S of c)if(b?.[S]===void 0&&!_.has(S)){let w=p.schemaEnv.baseId+p.errSchemaPath,E=`required property "${S}" is not defined at "${w}" (strictRequired)`;(0,n.checkStrictMode)(p,E,p.opts.strictRequired)}}function g(){if(f||d)o.block$data(r.nil,v);else for(let b of c)(0,e.checkReportMissingProp)(o,b)}function h(){let b=a.let("missing");if(f||d){let _=a.let("valid",!0);o.block$data(_,()=>x(b,_)),o.ok(_)}else a.if((0,e.checkMissingProp)(o,c,b)),(0,e.reportMissingProp)(o,b),a.else()}function v(){a.forOf("prop",u,b=>{o.setParams({missingProperty:b}),a.if((0,e.noPropertyInData)(a,l,b,m.ownProperties),()=>o.error())})}function x(b,_){o.setParams({missingProperty:b}),a.forOf(b,u,()=>{a.assign(_,(0,e.propertyInData)(a,l,b,m.ownProperties)),a.if((0,r.not)(_),()=>{o.error(),a.break()})},r.nil)}}};t.default=s}),Goe=re(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e=Ze(),r={message({keyword:i,schemaCode:s}){let o=i==="maxItems"?"more":"fewer";return(0,e.str)`must NOT have ${o} than ${s} items`},params:({schemaCode:i})=>(0,e._)`{limit: ${i}}`},n={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:r,code(i){let{keyword:s,data:o,schemaCode:a}=i,c=s==="maxItems"?e.operators.GT:e.operators.LT;i.fail$data((0,e._)`${o}.length ${c} ${a}`)}};t.default=n}),Hk=re(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e=h2();e.code='require("ajv/dist/runtime/equal").default',t.default=e}),Woe=re(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e=bg(),r=Ze(),n=at(),i=Hk(),s={message:({params:{i:a,j:c}})=>(0,r.str)`must NOT have duplicate items (items ## ${c} and ${a} are identical)`,params:({params:{i:a,j:c}})=>(0,r._)`{i: ${a}, j: ${c}}`},o={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:s,code(a){let{gen:c,data:u,$data:l,schema:d,parentSchema:p,schemaCode:m,it:f}=a;if(!l&&!d)return;let g=c.let("valid"),h=p.items?(0,e.getSchemaTypes)(p.items):[];a.block$data(g,v,(0,r._)`${m} === false`),a.ok(g);function v(){let S=c.let("i",(0,r._)`${u}.length`),w=c.let("j");a.setParams({i:S,j:w}),c.assign(g,!0),c.if((0,r._)`${S} > 1`,()=>(x()?b:_)(S,w))}function x(){return h.length>0&&!h.some(S=>S==="object"||S==="array")}function b(S,w){let E=c.name("item"),$=(0,e.checkDataTypes)(h,E,f.opts.strictNumbers,e.DataType.Wrong),R=c.const("indices",(0,r._)`{}`);c.for((0,r._)`;${S}--;`,()=>{c.let(E,(0,r._)`${u}[${S}]`),c.if($,(0,r._)`continue`),h.length>1&&c.if((0,r._)`typeof ${E} == "string"`,(0,r._)`${E} += "_"`),c.if((0,r._)`typeof ${R}[${E}] == "number"`,()=>{c.assign(w,(0,r._)`${R}[${E}]`),a.error(),c.assign(g,!1).break()}).code((0,r._)`${R}[${E}] = ${S}`)})}function _(S,w){let E=(0,n.useFunc)(c,i.default),$=c.name("outer");c.label($).for((0,r._)`;${S}--;`,()=>c.for((0,r._)`${w} = ${S}; ${w}--;`,()=>c.if((0,r._)`${E}(${u}[${S}], ${u}[${w}])`,()=>{a.error(),c.assign(g,!1).break($)})))}}};t.default=o}),Koe=re(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e=Ze(),r=at(),n=Hk(),i={message:"must be equal to constant",params:({schemaCode:o})=>(0,e._)`{allowedValue: ${o}}`},s={keyword:"const",$data:!0,error:i,code(o){let{gen:a,data:c,$data:u,schemaCode:l,schema:d}=o;u||d&&typeof d=="object"?o.fail$data((0,e._)`!${(0,r.useFunc)(a,n.default)}(${c}, ${l})`):o.fail((0,e._)`${d} !== ${c}`)}};t.default=s}),Joe=re(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e=Ze(),r=at(),n=Hk(),i={message:"must be equal to one of the allowed values",params:({schemaCode:o})=>(0,e._)`{allowedValues: ${o}}`},s={keyword:"enum",schemaType:"array",$data:!0,error:i,code(o){let{gen:a,data:c,$data:u,schema:l,schemaCode:d,it:p}=o;if(!u&&l.length===0)throw new Error("enum must have non-empty array");let m=l.length>=p.opts.loopEnum,f,g=()=>f??(f=(0,r.useFunc)(a,n.default)),h;if(m||u)h=a.let("valid"),o.block$data(h,v);else{if(!Array.isArray(l))throw new Error("ajv implementation error");let b=a.const("vSchema",d);h=(0,e.or)(...l.map((_,S)=>x(b,S)))}o.pass(h);function v(){a.assign(h,!1),a.forOf("v",d,b=>a.if((0,e._)`${g()}(${c}, ${b})`,()=>a.assign(h,!0).break()))}function x(b,_){let S=l[_];return typeof S=="object"&&S!==null?(0,e._)`${g()}(${c}, ${b}[${_}])`:(0,e._)`${c} === ${S}`}}};t.default=s}),Xoe=re(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e=Uoe(),r=qoe(),n=Hoe(),i=Zoe(),s=Boe(),o=Voe(),a=Goe(),c=Woe(),u=Koe(),l=Joe(),d=[e.default,r.default,n.default,i.default,s.default,o.default,a.default,c.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},u.default,l.default];t.default=d}),g2=re(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.validateAdditionalItems=void 0;var e=Ze(),r=at(),n={message:({params:{len:o}})=>(0,e.str)`must NOT have more than ${o} items`,params:({params:{len:o}})=>(0,e._)`{limit: ${o}}`},i={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:n,code(o){let{parentSchema:a,it:c}=o,{items:u}=a;if(!Array.isArray(u)){(0,r.checkStrictMode)(c,'"additionalItems" is ignored when "items" is not an array of schemas');return}s(o,u)}};function s(o,a){let{gen:c,schema:u,data:l,keyword:d,it:p}=o;p.items=!0;let m=c.const("len",(0,e._)`${l}.length`);if(u===!1)o.setParams({len:a.length}),o.pass((0,e._)`${m} <= ${a.length}`);else if(typeof u=="object"&&!(0,r.alwaysValidSchema)(p,u)){let g=c.var("valid",(0,e._)`${m} <= ${a.length}`);c.if((0,e.not)(g),()=>f(g)),o.ok(g)}function f(g){c.forRange("i",a.length,m,h=>{o.subschema({keyword:d,dataProp:h,dataPropType:r.Type.Num},g),p.allErrors||c.if((0,e.not)(g),()=>c.break())})}}t.validateAdditionalItems=s,t.default=i}),v2=re(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.validateTuple=void 0;var e=Ze(),r=at(),n=oi(),i={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(o){let{schema:a,it:c}=o;if(Array.isArray(a))return s(o,"additionalItems",a);c.items=!0,!(0,r.alwaysValidSchema)(c,a)&&o.ok((0,n.validateArray)(o))}};function s(o,a,c=o.schema){let{gen:u,parentSchema:l,data:d,keyword:p,it:m}=o;h(l),m.opts.unevaluated&&c.length&&m.items!==!0&&(m.items=r.mergeEvaluated.items(u,c.length,m.items));let f=u.name("valid"),g=u.const("len",(0,e._)`${d}.length`);c.forEach((v,x)=>{(0,r.alwaysValidSchema)(m,v)||(u.if((0,e._)`${g} > ${x}`,()=>o.subschema({keyword:p,schemaProp:x,dataProp:x},f)),o.ok(f))});function h(v){let{opts:x,errSchemaPath:b}=m,_=c.length,S=_===v.minItems&&(_===v.maxItems||v[a]===!1);if(x.strictTuples&&!S){let w=`"${p}" is ${_}-tuple, but minItems or maxItems/${a} are not specified or different at path "${b}"`;(0,r.checkStrictMode)(m,w,x.strictTuples)}}}t.validateTuple=s,t.default=i}),Yoe=re(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e=v2(),r={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:n=>(0,e.validateTuple)(n,"items")};t.default=r}),Qoe=re(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e=Ze(),r=at(),n=oi(),i=g2(),s={message:({params:{len:a}})=>(0,e.str)`must NOT have more than ${a} items`,params:({params:{len:a}})=>(0,e._)`{limit: ${a}}`},o={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:s,code(a){let{schema:c,parentSchema:u,it:l}=a,{prefixItems:d}=u;l.items=!0,!(0,r.alwaysValidSchema)(l,c)&&(d?(0,i.validateAdditionalItems)(a,d):a.ok((0,n.validateArray)(a)))}};t.default=o}),eae=re(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e=Ze(),r=at(),n={message:({params:{min:s,max:o}})=>o===void 0?(0,e.str)`must contain at least ${s} valid item(s)`:(0,e.str)`must contain at least ${s} and no more than ${o} valid item(s)`,params:({params:{min:s,max:o}})=>o===void 0?(0,e._)`{minContains: ${s}}`:(0,e._)`{minContains: ${s}, maxContains: ${o}}`},i={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:n,code(s){let{gen:o,schema:a,parentSchema:c,data:u,it:l}=s,d,p,{minContains:m,maxContains:f}=c;l.opts.next?(d=m===void 0?1:m,p=f):d=1;let g=o.const("len",(0,e._)`${u}.length`);if(s.setParams({min:d,max:p}),p===void 0&&d===0){(0,r.checkStrictMode)(l,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(p!==void 0&&d>p){(0,r.checkStrictMode)(l,'"minContains" > "maxContains" is always invalid'),s.fail();return}if((0,r.alwaysValidSchema)(l,a)){let _=(0,e._)`${g} >= ${d}`;p!==void 0&&(_=(0,e._)`${_} && ${g} <= ${p}`),s.pass(_);return}l.items=!0;let h=o.name("valid");p===void 0&&d===1?x(h,()=>o.if(h,()=>o.break())):d===0?(o.let(h,!0),p!==void 0&&o.if((0,e._)`${u}.length > 0`,v)):(o.let(h,!1),v()),s.result(h,()=>s.reset());function v(){let _=o.name("_valid"),S=o.let("count",0);x(_,()=>o.if(_,()=>b(S)))}function x(_,S){o.forRange("i",0,g,w=>{s.subschema({keyword:"contains",dataProp:w,dataPropType:r.Type.Num,compositeRule:!0},_),S()})}function b(_){o.code((0,e._)`${_}++`),p===void 0?o.if((0,e._)`${_} >= ${d}`,()=>o.assign(h,!0).break()):(o.if((0,e._)`${_} > ${p}`,()=>o.assign(h,!1).break()),d===1?o.assign(h,!0):o.if((0,e._)`${_} >= ${d}`,()=>o.assign(h,!0)))}}};t.default=i}),tae=re(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;var e=Ze(),r=at(),n=oi();t.error={message:({params:{property:c,depsCount:u,deps:l}})=>{let d=u===1?"property":"properties";return(0,e.str)`must have ${d} ${l} when property ${c} is present`},params:({params:{property:c,depsCount:u,deps:l,missingProperty:d}})=>(0,e._)`{property: ${c}, + missingProperty: ${d}, + depsCount: ${u}, + deps: ${l}}`};var i={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(c){let[u,l]=s(c);o(c,u),a(c,l)}};function s({schema:c}){let u={},l={};for(let d in c){if(d==="__proto__")continue;let p=Array.isArray(c[d])?u:l;p[d]=c[d]}return[u,l]}function o(c,u=c.schema){let{gen:l,data:d,it:p}=c;if(Object.keys(u).length===0)return;let m=l.let("missing");for(let f in u){let g=u[f];if(g.length===0)continue;let h=(0,n.propertyInData)(l,d,f,p.opts.ownProperties);c.setParams({property:f,depsCount:g.length,deps:g.join(", ")}),p.allErrors?l.if(h,()=>{for(let v of g)(0,n.checkReportMissingProp)(c,v)}):(l.if((0,e._)`${h} && (${(0,n.checkMissingProp)(c,g,m)})`),(0,n.reportMissingProp)(c,m),l.else())}}t.validatePropertyDeps=o;function a(c,u=c.schema){let{gen:l,data:d,keyword:p,it:m}=c,f=l.name("valid");for(let g in u)(0,r.alwaysValidSchema)(m,u[g])||(l.if((0,n.propertyInData)(l,d,g,m.opts.ownProperties),()=>{let h=c.subschema({keyword:p,schemaProp:g},f);c.mergeValidEvaluated(h,f)},()=>l.var(f,!0)),c.ok(f))}t.validateSchemaDeps=a,t.default=i}),rae=re(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e=Ze(),r=at(),n={message:"property name must be valid",params:({params:s})=>(0,e._)`{propertyName: ${s.propertyName}}`},i={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:n,code(s){let{gen:o,schema:a,data:c,it:u}=s;if((0,r.alwaysValidSchema)(u,a))return;let l=o.name("valid");o.forIn("key",c,d=>{s.setParams({propertyName:d}),s.subschema({keyword:"propertyNames",data:d,dataTypes:["string"],propertyName:d,compositeRule:!0},l),o.if((0,e.not)(l),()=>{s.error(!0),u.allErrors||o.break()})}),s.ok(l)}};t.default=i}),y2=re(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e=oi(),r=Ze(),n=Gs(),i=at(),s={message:"must NOT have additional properties",params:({params:a})=>(0,r._)`{additionalProperty: ${a.additionalProperty}}`},o={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:s,code(a){let{gen:c,schema:u,parentSchema:l,data:d,errsCount:p,it:m}=a;if(!p)throw new Error("ajv implementation error");let{allErrors:f,opts:g}=m;if(m.props=!0,g.removeAdditional!=="all"&&(0,i.alwaysValidSchema)(m,u))return;let h=(0,e.allSchemaProperties)(l.properties),v=(0,e.allSchemaProperties)(l.patternProperties);x(),a.ok((0,r._)`${p} === ${n.default.errors}`);function x(){c.forIn("key",d,E=>{!h.length&&!v.length?S(E):c.if(b(E),()=>S(E))})}function b(E){let $;if(h.length>8){let R=(0,i.schemaRefOrVal)(m,l.properties,"properties");$=(0,e.isOwnProperty)(c,R,E)}else h.length?$=(0,r.or)(...h.map(R=>(0,r._)`${E} === ${R}`)):$=r.nil;return v.length&&($=(0,r.or)($,...v.map(R=>(0,r._)`${(0,e.usePattern)(a,R)}.test(${E})`))),(0,r.not)($)}function _(E){c.code((0,r._)`delete ${d}[${E}]`)}function S(E){if(g.removeAdditional==="all"||g.removeAdditional&&u===!1){_(E);return}if(u===!1){a.setParams({additionalProperty:E}),a.error(),f||c.break();return}if(typeof u=="object"&&!(0,i.alwaysValidSchema)(m,u)){let $=c.name("valid");g.removeAdditional==="failing"?(w(E,$,!1),c.if((0,r.not)($),()=>{a.reset(),_(E)})):(w(E,$),f||c.if((0,r.not)($),()=>c.break()))}}function w(E,$,R){let A={keyword:"additionalProperties",dataProp:E,dataPropType:i.Type.Str};R===!1&&Object.assign(A,{compositeRule:!0,createErrors:!1,allErrors:!1}),a.subschema(A,$)}}};t.default=o}),nae=re(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e=Rg(),r=oi(),n=at(),i=y2(),s={keyword:"properties",type:"object",schemaType:"object",code(o){let{gen:a,schema:c,parentSchema:u,data:l,it:d}=o;d.opts.removeAdditional==="all"&&u.additionalProperties===void 0&&i.default.code(new e.KeywordCxt(d,i.default,"additionalProperties"));let p=(0,r.allSchemaProperties)(c);for(let v of p)d.definedProperties.add(v);d.opts.unevaluated&&p.length&&d.props!==!0&&(d.props=n.mergeEvaluated.props(a,(0,n.toHash)(p),d.props));let m=p.filter(v=>!(0,n.alwaysValidSchema)(d,c[v]));if(m.length===0)return;let f=a.name("valid");for(let v of m)g(v)?h(v):(a.if((0,r.propertyInData)(a,l,v,d.opts.ownProperties)),h(v),d.allErrors||a.else().var(f,!0),a.endIf()),o.it.definedProperties.add(v),o.ok(f);function g(v){return d.opts.useDefaults&&!d.compositeRule&&c[v].default!==void 0}function h(v){o.subschema({keyword:"properties",schemaProp:v,dataProp:v},f)}}};t.default=s}),iae=re(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e=oi(),r=Ze(),n=at(),i=at(),s={keyword:"patternProperties",type:"object",schemaType:"object",code(o){let{gen:a,schema:c,data:u,parentSchema:l,it:d}=o,{opts:p}=d,m=(0,e.allSchemaProperties)(c),f=m.filter(S=>(0,n.alwaysValidSchema)(d,c[S]));if(m.length===0||f.length===m.length&&(!d.opts.unevaluated||d.props===!0))return;let g=p.strictSchema&&!p.allowMatchingProperties&&l.properties,h=a.name("valid");d.props!==!0&&!(d.props instanceof r.Name)&&(d.props=(0,i.evaluatedPropsToName)(a,d.props));let{props:v}=d;x();function x(){for(let S of m)g&&b(S),d.allErrors?_(S):(a.var(h,!0),_(S),a.if(h))}function b(S){for(let w in g)new RegExp(S).test(w)&&(0,n.checkStrictMode)(d,`property ${w} matches pattern ${S} (use allowMatchingProperties)`)}function _(S){a.forIn("key",u,w=>{a.if((0,r._)`${(0,e.usePattern)(o,S)}.test(${w})`,()=>{let E=f.includes(S);E||o.subschema({keyword:"patternProperties",schemaProp:S,dataProp:w,dataPropType:i.Type.Str},h),d.opts.unevaluated&&v!==!0?a.assign((0,r._)`${v}[${w}]`,!0):!E&&!d.allErrors&&a.if((0,r.not)(h),()=>a.break())})})}}};t.default=s}),sae=re(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e=at(),r={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(n){let{gen:i,schema:s,it:o}=n;if((0,e.alwaysValidSchema)(o,s)){n.fail();return}let a=i.name("valid");n.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},a),n.failResult(a,()=>n.reset(),()=>n.error())},error:{message:"must NOT be valid"}};t.default=r}),oae=re(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e=oi(),r={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:e.validateUnion,error:{message:"must match a schema in anyOf"}};t.default=r}),aae=re(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e=Ze(),r=at(),n={message:"must match exactly one schema in oneOf",params:({params:s})=>(0,e._)`{passingSchemas: ${s.passing}}`},i={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:n,code(s){let{gen:o,schema:a,parentSchema:c,it:u}=s;if(!Array.isArray(a))throw new Error("ajv implementation error");if(u.opts.discriminator&&c.discriminator)return;let l=a,d=o.let("valid",!1),p=o.let("passing",null),m=o.name("_valid");s.setParams({passing:p}),o.block(f),s.result(d,()=>s.reset(),()=>s.error(!0));function f(){l.forEach((g,h)=>{let v;(0,r.alwaysValidSchema)(u,g)?o.var(m,!0):v=s.subschema({keyword:"oneOf",schemaProp:h,compositeRule:!0},m),h>0&&o.if((0,e._)`${m} && ${d}`).assign(d,!1).assign(p,(0,e._)`[${p}, ${h}]`).else(),o.if(m,()=>{o.assign(d,!0),o.assign(p,h),v&&s.mergeEvaluated(v,e.Name)})})}}};t.default=i}),cae=re(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e=at(),r={keyword:"allOf",schemaType:"array",code(n){let{gen:i,schema:s,it:o}=n;if(!Array.isArray(s))throw new Error("ajv implementation error");let a=i.name("valid");s.forEach((c,u)=>{if((0,e.alwaysValidSchema)(o,c))return;let l=n.subschema({keyword:"allOf",schemaProp:u},a);n.ok(a),n.mergeEvaluated(l)})}};t.default=r}),uae=re(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e=Ze(),r=at(),n={message:({params:o})=>(0,e.str)`must match "${o.ifClause}" schema`,params:({params:o})=>(0,e._)`{failingKeyword: ${o.ifClause}}`},i={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:n,code(o){let{gen:a,parentSchema:c,it:u}=o;c.then===void 0&&c.else===void 0&&(0,r.checkStrictMode)(u,'"if" without "then" and "else" is ignored');let l=s(u,"then"),d=s(u,"else");if(!l&&!d)return;let p=a.let("valid",!0),m=a.name("_valid");if(f(),o.reset(),l&&d){let h=a.let("ifClause");o.setParams({ifClause:h}),a.if(m,g("then",h),g("else",h))}else l?a.if(m,g("then")):a.if((0,e.not)(m),g("else"));o.pass(p,()=>o.error(!0));function f(){let h=o.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},m);o.mergeEvaluated(h)}function g(h,v){return()=>{let x=o.subschema({keyword:h},m);a.assign(p,m),o.mergeValidEvaluated(x,p),v?a.assign(v,(0,e._)`${h}`):o.setParams({ifClause:h})}}}};function s(o,a){let c=o.schema[a];return c!==void 0&&!(0,r.alwaysValidSchema)(o,c)}t.default=i}),lae=re(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e=at(),r={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:n,parentSchema:i,it:s}){i.if===void 0&&(0,e.checkStrictMode)(s,`"${n}" without "if" is ignored`)}};t.default=r}),dae=re(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e=g2(),r=Yoe(),n=v2(),i=Qoe(),s=eae(),o=tae(),a=rae(),c=y2(),u=nae(),l=iae(),d=sae(),p=oae(),m=aae(),f=cae(),g=uae(),h=lae();function v(x=!1){let b=[d.default,p.default,m.default,f.default,g.default,h.default,a.default,c.default,o.default,u.default,l.default];return x?b.push(r.default,i.default):b.push(e.default,n.default),b.push(s.default),b}t.default=v}),pae=re(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e=Ze(),r={message:({schemaCode:i})=>(0,e.str)`must match format "${i}"`,params:({schemaCode:i})=>(0,e._)`{format: ${i}}`},n={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:r,code(i,s){let{gen:o,data:a,$data:c,schema:u,schemaCode:l,it:d}=i,{opts:p,errSchemaPath:m,schemaEnv:f,self:g}=d;if(!p.validateFormats)return;c?h():v();function h(){let x=o.scopeValue("formats",{ref:g.formats,code:p.code.formats}),b=o.const("fDef",(0,e._)`${x}[${l}]`),_=o.let("fType"),S=o.let("format");o.if((0,e._)`typeof ${b} == "object" && !(${b} instanceof RegExp)`,()=>o.assign(_,(0,e._)`${b}.type || "string"`).assign(S,(0,e._)`${b}.validate`),()=>o.assign(_,(0,e._)`"string"`).assign(S,b)),i.fail$data((0,e.or)(w(),E()));function w(){return p.strictSchema===!1?e.nil:(0,e._)`${l} && !${S}`}function E(){let $=f.$async?(0,e._)`(${b}.async ? await ${S}(${a}) : ${S}(${a}))`:(0,e._)`${S}(${a})`,R=(0,e._)`(typeof ${S} == "function" ? ${$} : ${S}.test(${a}))`;return(0,e._)`${S} && ${S} !== true && ${_} === ${s} && !${R}`}}function v(){let x=g.formats[u];if(!x){w();return}if(x===!0)return;let[b,_,S]=E(x);b===s&&i.pass($());function w(){if(p.strictSchema===!1){g.logger.warn(R());return}throw new Error(R());function R(){return`unknown format "${u}" ignored in schema at path "${m}"`}}function E(R){let A=R instanceof RegExp?(0,e.regexpCode)(R):p.code.formats?(0,e._)`${p.code.formats}${(0,e.getProperty)(u)}`:void 0,N=o.scopeValue("formats",{key:u,ref:R,code:A});return typeof R=="object"&&!(R instanceof RegExp)?[R.type||"string",R.validate,(0,e._)`${N}.validate`]:["string",R,N]}function $(){if(typeof x=="object"&&!(x instanceof RegExp)&&x.async){if(!f.$async)throw new Error("async format in sync schema");return(0,e._)`await ${S}(${a})`}return typeof _=="function"?(0,e._)`${S}(${a})`:(0,e._)`${S}.test(${a})`}}}};t.default=n}),mae=re(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e=pae(),r=[e.default];t.default=r}),fae=re(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.contentVocabulary=t.metadataVocabulary=void 0,t.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],t.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]}),hae=re(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e=Loe(),r=Xoe(),n=dae(),i=mae(),s=fae(),o=[e.default,r.default,(0,n.default)(),i.default,s.metadataVocabulary,s.contentVocabulary];t.default=o}),gae=re(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0;var e;(function(r){r.Tag="tag",r.Mapping="mapping"})(e||(t.DiscrError=e={}))}),vae=re(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e=Ze(),r=gae(),n=Fk(),i=Og(),s=at(),o={message:({params:{discrError:c,tagName:u}})=>c===r.DiscrError.Tag?`tag "${u}" must be string`:`value of tag "${u}" must be in oneOf`,params:({params:{discrError:c,tag:u,tagName:l}})=>(0,e._)`{error: ${c}, tag: ${l}, tagValue: ${u}}`},a={keyword:"discriminator",type:"object",schemaType:"object",error:o,code(c){let{gen:u,data:l,schema:d,parentSchema:p,it:m}=c,{oneOf:f}=p;if(!m.opts.discriminator)throw new Error("discriminator: requires discriminator option");let g=d.propertyName;if(typeof g!="string")throw new Error("discriminator: requires propertyName");if(d.mapping)throw new Error("discriminator: mapping is not supported");if(!f)throw new Error("discriminator: requires oneOf keyword");let h=u.let("valid",!1),v=u.const("tag",(0,e._)`${l}${(0,e.getProperty)(g)}`);u.if((0,e._)`typeof ${v} == "string"`,()=>x(),()=>c.error(!1,{discrError:r.DiscrError.Tag,tag:v,tagName:g})),c.ok(h);function x(){let S=_();u.if(!1);for(let w in S)u.elseIf((0,e._)`${v} === ${w}`),u.assign(h,b(S[w]));u.else(),c.error(!1,{discrError:r.DiscrError.Mapping,tag:v,tagName:g}),u.endIf()}function b(S){let w=u.name("valid"),E=c.subschema({keyword:"oneOf",schemaProp:S},w);return c.mergeEvaluated(E,e.Name),w}function _(){var S;let w={},E=R(p),$=!0;for(let U=0;U{e.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}}),_2=re((t,e)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;var r=Doe(),n=hae(),i=vae(),s=yae(),o=["/properties"],a="http://json-schema.org/draft-07/schema";class c extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(f=>this.addVocabulary(f)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let f=this.opts.$data?this.$dataMetaSchema(s,o):s;this.addMetaSchema(f,a,!1),this.refs["http://json-schema.org/schema"]=a}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(a)?a:void 0)}}t.Ajv=c,e.exports=t=c,e.exports.Ajv=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var u=Rg();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var l=Ze();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return l._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return l.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return l.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return l.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return l.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return l.CodeGen}});var d=qk();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var p=Og();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return p.default}})}),_ae=re(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.formatNames=t.fastFormats=t.fullFormats=void 0;function e(N,U){return{validate:N,compare:U}}t.fullFormats={date:e(s,o),time:e(c(!0),u),"date-time":e(p(!0),m),"iso-time":e(c(),l),"iso-date-time":e(p(),f),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:v,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:A,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:b,int32:{type:"number",validate:w},int64:{type:"number",validate:E},float:{type:"number",validate:$},double:{type:"number",validate:$},password:!0,binary:!0},t.fastFormats={...t.fullFormats,date:e(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,o),time:e(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,u),"date-time":e(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,m),"iso-time":e(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,l),"iso-date-time":e(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,f),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},t.formatNames=Object.keys(t.fullFormats);function r(N){return N%4===0&&(N%100!==0||N%400===0)}var n=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31];function s(N){let U=n.exec(N);if(!U)return!1;let W=+U[1],j=+U[2],ae=+U[3];return j>=1&&j<=12&&ae>=1&&ae<=(j===2&&r(W)?29:i[j])}function o(N,U){if(N&&U)return N>U?1:N23||P>59||N&&!kt)return!1;if(ae<=23&&Ne<=59&&ze<60)return!0;let H=Ne-P*Ve,M=ae-K*Ve-(H<0?1:0);return(M===23||M===-1)&&(H===59||H===-1)&&ze<61}}function u(N,U){if(!(N&&U))return;let W=new Date("2020-01-01T"+N).valueOf(),j=new Date("2020-01-01T"+U).valueOf();if(W&&j)return W-j}function l(N,U){if(!(N&&U))return;let W=a.exec(N),j=a.exec(U);if(W&&j)return N=W[1]+W[2]+W[3],U=j[1]+j[2]+j[3],N>U?1:N=_}function E(N){return Number.isInteger(N)}function $(){return!0}var R=/[^\\]\\Z/;function A(N){if(R.test(N))return!1;try{return new RegExp(N),!0}catch{return!1}}}),bae=re(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.formatLimitDefinition=void 0;var e=_2(),r=Ze(),n=r.operators,i={formatMaximum:{okStr:"<=",ok:n.LTE,fail:n.GT},formatMinimum:{okStr:">=",ok:n.GTE,fail:n.LT},formatExclusiveMaximum:{okStr:"<",ok:n.LT,fail:n.GTE},formatExclusiveMinimum:{okStr:">",ok:n.GT,fail:n.LTE}},s={message:({keyword:a,schemaCode:c})=>(0,r.str)`should be ${i[a].okStr} ${c}`,params:({keyword:a,schemaCode:c})=>(0,r._)`{comparison: ${i[a].okStr}, limit: ${c}}`};t.formatLimitDefinition={keyword:Object.keys(i),type:"string",schemaType:"string",$data:!0,error:s,code(a){let{gen:c,data:u,schemaCode:l,keyword:d,it:p}=a,{opts:m,self:f}=p;if(!m.validateFormats)return;let g=new e.KeywordCxt(p,f.RULES.all.format.definition,"format");g.$data?h():v();function h(){let b=c.scopeValue("formats",{ref:f.formats,code:m.code.formats}),_=c.const("fmt",(0,r._)`${b}[${g.schemaCode}]`);a.fail$data((0,r.or)((0,r._)`typeof ${_} != "object"`,(0,r._)`${_} instanceof RegExp`,(0,r._)`typeof ${_}.compare != "function"`,x(_)))}function v(){let b=g.schema,_=f.formats[b];if(!_||_===!0)return;if(typeof _!="object"||_ instanceof RegExp||typeof _.compare!="function")throw new Error(`"${d}": format "${b}" does not define "compare" function`);let S=c.scopeValue("formats",{key:b,ref:_,code:m.code.formats?(0,r._)`${m.code.formats}${(0,r.getProperty)(b)}`:void 0});a.fail$data(x(S))}function x(b){return(0,r._)`${b}.compare(${u}, ${l}) ${i[d].fail} 0`}},dependencies:["format"]};var o=a=>(a.addKeyword(t.formatLimitDefinition),a);t.default=o}),xae=re((t,e)=>{Object.defineProperty(t,"__esModule",{value:!0});var r=_ae(),n=bae(),i=Ze(),s=new i.Name("fullFormats"),o=new i.Name("fastFormats"),a=(u,l={keywords:!0})=>{if(Array.isArray(l))return c(u,l,r.fullFormats,s),u;let[d,p]=l.mode==="fast"?[r.fastFormats,o]:[r.fullFormats,s],m=l.formats||r.formatNames;return c(u,m,d,p),l.keywords&&(0,n.default)(u),u};a.get=(u,l="full")=>{let p=(l==="fast"?r.fastFormats:r.fullFormats)[u];if(!p)throw new Error(`Unknown format "${u}"`);return p};function c(u,l,d,p){var m,f;(m=(f=u.opts.code).formats)!==null&&m!==void 0||(f.formats=(0,i._)`require("ajv-formats/dist/formats").${p}`);for(let g of l)u.addFormat(g,d[g])}e.exports=t=a,Object.defineProperty(t,"__esModule",{value:!0}),t.default=a}),Sae=50;function S2(t=Sae){let e=new AbortController;return(0,x2.setMaxListeners)(t,e.signal),e}var wae=typeof global=="object"&&global&&global.Object===Object&&global,Eae=wae,kae=typeof self=="object"&&self&&self.Object===Object&&self,$ae=Eae||kae||Function("return this")(),Zk=$ae,Tae=Zk.Symbol,xg=Tae,$2=Object.prototype,Iae=$2.hasOwnProperty,Rae=$2.toString,Fd=xg?xg.toStringTag:void 0;function Oae(t){var e=Iae.call(t,Fd),r=t[Fd];try{t[Fd]=void 0;var n=!0}catch{}var i=Rae.call(t);return n&&(e?t[Fd]=r:delete t[Fd]),i}var Pae=Oae,Cae=Object.prototype,Aae=Cae.toString;function Nae(t){return Aae.call(t)}var Mae=Nae,Dae="[object Null]",jae="[object Undefined]",MU=xg?xg.toStringTag:void 0;function zae(t){return t==null?t===void 0?jae:Dae:MU&&MU in Object(t)?Pae(t):Mae(t)}var Lae=zae;function Uae(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var T2=Uae,qae="[object AsyncFunction]",Fae="[object Function]",Hae="[object GeneratorFunction]",Zae="[object Proxy]";function Bae(t){if(!T2(t))return!1;var e=Lae(t);return e==Fae||e==Hae||e==qae||e==Zae}var Vae=Bae,Gae=Zk["__core-js_shared__"],hk=Gae,DU=(function(){var t=/[^.]+$/.exec(hk&&hk.keys&&hk.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function Wae(t){return!!DU&&DU in t}var Kae=Wae,Jae=Function.prototype,Xae=Jae.toString;function Yae(t){if(t!=null){try{return Xae.call(t)}catch{}try{return t+""}catch{}}return""}var Qae=Yae,ece=/[\\^$.*+?()[\]{}|]/g,tce=/^\[object .+?Constructor\]$/,rce=Function.prototype,nce=Object.prototype,ice=rce.toString,sce=nce.hasOwnProperty,oce=RegExp("^"+ice.call(sce).replace(ece,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ace(t){if(!T2(t)||Kae(t))return!1;var e=Vae(t)?oce:tce;return e.test(Qae(t))}var cce=ace;function uce(t,e){return t?.[e]}var lce=uce;function dce(t,e){var r=lce(t,e);return cce(r)?r:void 0}var I2=dce,pce=I2(Object,"create"),Bd=pce;function mce(){this.__data__=Bd?Bd(null):{},this.size=0}var fce=mce;function hce(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var gce=hce,vce="__lodash_hash_undefined__",yce=Object.prototype,_ce=yce.hasOwnProperty;function bce(t){var e=this.__data__;if(Bd){var r=e[t];return r===vce?void 0:r}return _ce.call(e,t)?e[t]:void 0}var xce=bce,Sce=Object.prototype,wce=Sce.hasOwnProperty;function Ece(t){var e=this.__data__;return Bd?e[t]!==void 0:wce.call(e,t)}var kce=Ece,$ce="__lodash_hash_undefined__";function Tce(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Bd&&e===void 0?$ce:e,this}var Ice=Tce;function Gc(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e-1}var qce=Uce;function Fce(t,e){var r=this.__data__,n=Pg(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}var Hce=Fce;function Wc(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e{if(!t||t.trim()==="")return null;let e=t.split(",").map(s=>s.trim()).filter(Boolean);if(e.length===0)return null;let r=e.some(s=>s.startsWith("!")),n=e.some(s=>!s.startsWith("!"));if(r&&n)return null;let i=e.map(s=>s.replace(/^!/,"").toLowerCase());return{include:r?[]:i,exclude:r?i:[],isExclusive:r}});function uue(t){let e=[],r=t.match(/^MCP server ["']([^"']+)["']/);if(r&&r[1])e.push("mcp"),e.push(r[1].toLowerCase());else{let s=t.match(/^([^:[]+):/);s&&s[1]&&e.push(s[1].trim().toLowerCase())}let n=t.match(/^\[([^\]]+)]/);n&&n[1]&&e.push(n[1].trim().toLowerCase()),t.toLowerCase().includes("statsig event:")&&e.push("statsig");let i=t.match(/:\s*([^:]+?)(?:\s+(?:type|mode|status|event))?:/);if(i&&i[1]){let s=i[1].trim().toLowerCase();s.length<30&&!s.includes(" ")&&e.push(s)}return Array.from(new Set(e))}function lue(t,e){return e?t.length===0?!1:e.isExclusive?!t.some(r=>e.exclude.includes(r)):t.some(r=>e.include.includes(r)):!0}function due(t,e){if(!e)return!0;let r=uue(t);return lue(r,e)}function C2(){return process.env.CLAUDE_CONFIG_DIR??(0,O2.join)((0,P2.homedir)(),".claude")}function LU(t){if(!t)return!1;if(typeof t=="boolean")return t;let e=t.toLowerCase().trim();return["1","true","yes","on"].includes(e)}var gk=15e4,mg=3e4;function D2(t){return{name:t,default:mg,validate:e=>{if(!e)return{effective:mg,status:"valid"};let r=parseInt(e,10);return isNaN(r)||r<=0?{effective:mg,status:"invalid",message:`Invalid value "${e}" (using default: ${mg})`}:r>gk?{effective:gk,status:"capped",message:`Capped from ${r} to ${gk}`}:{effective:r,status:"valid"}}}}var pue=D2("BASH_MAX_OUTPUT_LENGTH"),_Pe=D2("TASK_MAX_OUTPUT_LENGTH"),mue={name:"CLAUDE_CODE_MAX_OUTPUT_TOKENS",default:32e3,validate:t=>{if(!t)return{effective:32e3,status:"valid"};let n=parseInt(t,10);return isNaN(n)||n<=0?{effective:32e3,status:"invalid",message:`Invalid value "${t}" (using default: 32000)`}:n>64e3?{effective:64e3,status:"capped",message:`Capped from ${n} to 64000`}:{effective:n,status:"valid"}}};function fue(){let t="";return typeof process<"u"&&typeof process.cwd=="function"&&(t=(0,N2.realpathSync)((0,A2.cwd)())),{originalCwd:t,totalCostUSD:0,totalAPIDuration:0,totalAPIDurationWithoutRetries:0,totalToolDuration:0,startTime:Date.now(),lastInteractionTime:Date.now(),totalLinesAdded:0,totalLinesRemoved:0,hasUnknownModelCost:!1,cwd:t,modelUsage:{},mainLoopModelOverride:void 0,initialMainLoopModel:null,modelStrings:null,isInteractive:!1,clientType:"cli",sessionIngressToken:void 0,oauthTokenFromFd:void 0,apiKeyFromFd:void 0,flagSettingsPath:void 0,allowedSettingSources:["userSettings","projectSettings","localSettings","flagSettings","policySettings"],meter:null,sessionCounter:null,locCounter:null,prCounter:null,commitCounter:null,costCounter:null,tokenCounter:null,codeEditToolDecisionCounter:null,activeTimeCounter:null,sessionId:(0,M2.randomUUID)(),loggerProvider:null,eventLogger:null,meterProvider:null,tracerProvider:null,agentColorMap:new Map,agentColorIndex:0,envVarValidators:[pue,mue],lastAPIRequest:null,inMemoryErrorLog:[],inlinePlugins:[],sessionBypassPermissionsMode:!1,sessionPersistenceDisabled:!1,hasExitedPlanMode:!1,needsPlanModeExitAttachment:!1,hasExitedDelegateMode:!1,needsDelegateModeExitAttachment:!1,lspRecommendationShownThisSession:!1,initJsonSchema:null,registeredHooks:null,planSlugCache:new Map,teleportedSessionInfo:null,invokedSkills:new Map,slowOperations:[],sdkBetas:void 0}}var hue=fue();function gue(){return hue.sessionId}function vue({writeFn:t,flushIntervalMs:e=1e3,maxBufferSize:r=100,immediateMode:n=!1}){let i=[],s=null;function o(){s&&(clearTimeout(s),s=null)}function a(){i.length!==0&&(t(i.join("")),i=[],o())}function c(){s||(s=setTimeout(a,e))}return{write(u){if(n){t(u);return}i.push(u),c(),i.length>=r&&a()},flush:a,dispose(){a()}}}var UU=new Set;function yue(t){return UU.add(t),()=>UU.delete(t)}var j2=1/0;function _ue(t){return t===null?"null":t===void 0?"undefined":Array.isArray(t)?`Array[${t.length}]`:typeof t=="object"?`Object{${Object.keys(t).length} keys}`:typeof t=="string"?`string(${t.length} chars)`:typeof t}function z2(t,e){let r=performance.now();try{return e()}finally{let n=performance.now()-r;n>j2&&(os(`[SLOW OPERATION DETECTED] ${t} (${n.toFixed(1)}ms)`),void 0)}}function Ri(t,e,r){let n=_ue(t);return z2(`JSON.stringify(${n})`,()=>JSON.stringify(t,e,r))}var L2=(t,e)=>{let r=typeof t=="string"?t.length:0;return z2(`JSON.parse(${r} chars)`,()=>JSON.parse(t,e))},bue=sp(()=>LU(process.env.DEBUG)||LU(process.env.DEBUG_SDK)||process.argv.includes("--debug")||process.argv.includes("-d")||U2()||process.argv.some(t=>t.startsWith("--debug="))),xue=sp(()=>{let t=process.argv.find(r=>r.startsWith("--debug="));if(!t)return null;let e=t.substring(8);return cue(e)}),U2=sp(()=>process.argv.includes("--debug-to-stderr")||process.argv.includes("-d2e"));function Sue(t){if(typeof process>"u"||typeof process.versions>"u"||typeof process.versions.node>"u")return!1;let e=xue();return due(t,e)}var wue=!1,fg=null;function Eue(){return fg||(fg=vue({writeFn:t=>{let e=q2();as().existsSync((0,Fo.dirname)(e))||as().mkdirSync((0,Fo.dirname)(e)),as().appendFileSync(e,t),kue()},flushIntervalMs:1e3,maxBufferSize:100,immediateMode:bue()}),yue(async()=>fg?.dispose())),fg}function os(t,{level:e}={level:"debug"}){if(!Sue(t))return;wue&&t.includes(` +`)&&(t=Ri(t));let n=`${new Date().toISOString()} [${e.toUpperCase()}] ${t.trim()} +`;if(U2()){aue(n);return}Eue().write(n)}function q2(){return process.env.CLAUDE_CODE_DEBUG_LOGS_DIR??(0,Fo.join)(C2(),"debug",`${gue()}.txt`)}var kue=sp(()=>{if(process.argv[2]!=="--ripgrep")try{let t=q2(),e=(0,Fo.dirname)(t),r=(0,Fo.join)(e,"latest");if(as().existsSync(e)||as().mkdirSync(e),as().existsSync(r))try{as().unlinkSync(r)}catch{}as().symlinkSync(t,r)}catch{}});function er(t,e){let r=performance.now();try{return e()}finally{let n=performance.now()-r;n>j2&&(os(`[SLOW OPERATION DETECTED] fs.${t} (${n.toFixed(1)}ms)`),`${t}`,void 0)}}var $ue={cwd(){return process.cwd()},existsSync(t){return er(`existsSync(${t})`,()=>Ie.existsSync(t))},async stat(t){return(0,k2.stat)(t)},statSync(t){return er(`statSync(${t})`,()=>Ie.statSync(t))},lstatSync(t){return er(`lstatSync(${t})`,()=>Ie.lstatSync(t))},readFileSync(t,e){return er(`readFileSync(${t})`,()=>Ie.readFileSync(t,{encoding:e.encoding}))},readFileBytesSync(t){return er(`readFileBytesSync(${t})`,()=>Ie.readFileSync(t))},readSync(t,e){return er(`readSync(${t}, ${e.length} bytes)`,()=>{let r;try{r=Ie.openSync(t,"r");let n=Buffer.alloc(e.length),i=Ie.readSync(r,n,0,e.length,0);return{buffer:n,bytesRead:i}}finally{r&&Ie.closeSync(r)}})},appendFileSync(t,e,r){return er(`appendFileSync(${t}, ${e.length} chars)`,()=>{if(!Ie.existsSync(t)&&r?.mode!==void 0){let n=Ie.openSync(t,"a",r.mode);try{Ie.appendFileSync(n,e)}finally{Ie.closeSync(n)}}else Ie.appendFileSync(t,e)})},copyFileSync(t,e){return er(`copyFileSync(${t} \u2192 ${e})`,()=>Ie.copyFileSync(t,e))},unlinkSync(t){return er(`unlinkSync(${t})`,()=>Ie.unlinkSync(t))},renameSync(t,e){return er(`renameSync(${t} \u2192 ${e})`,()=>Ie.renameSync(t,e))},linkSync(t,e){return er(`linkSync(${t} \u2192 ${e})`,()=>Ie.linkSync(t,e))},symlinkSync(t,e){return er(`symlinkSync(${t} \u2192 ${e})`,()=>Ie.symlinkSync(t,e))},readlinkSync(t){return er(`readlinkSync(${t})`,()=>Ie.readlinkSync(t))},realpathSync(t){return er(`realpathSync(${t})`,()=>Ie.realpathSync(t))},mkdirSync(t,e){return er(`mkdirSync(${t})`,()=>{if(!Ie.existsSync(t)){let r={recursive:!0};e?.mode!==void 0&&(r.mode=e.mode),Ie.mkdirSync(t,r)}})},readdirSync(t){return er(`readdirSync(${t})`,()=>Ie.readdirSync(t,{withFileTypes:!0}))},readdirStringSync(t){return er(`readdirStringSync(${t})`,()=>Ie.readdirSync(t))},isDirEmptySync(t){return er(`isDirEmptySync(${t})`,()=>this.readdirSync(t).length===0)},rmdirSync(t){return er(`rmdirSync(${t})`,()=>Ie.rmdirSync(t))},rmSync(t,e){return er(`rmSync(${t})`,()=>Ie.rmSync(t,e))},createWriteStream(t){return Ie.createWriteStream(t)}},Tue=$ue;function as(){return Tue}var qo=class extends Error{};function F2(){return process.versions.bun!==void 0}var hg=null,qU=!1;function Iue(){if(qU)return hg;if(qU=!0,!process.env.DEBUG_CLAUDE_AGENT_SDK)return null;let t=(0,Sk.join)(C2(),"debug");return hg=(0,Sk.join)(t,`sdk-${(0,H2.randomUUID)()}.txt`),(0,Jc.existsSync)(t)||(0,Jc.mkdirSync)(t,{recursive:!0}),process.stderr.write(`SDK debug logs: ${hg} +`),hg}function Uo(t){let e=Iue();if(!e)return;let n=`${new Date().toISOString()} ${t} +`;(0,Jc.appendFileSync)(e,n)}function Rue(t,e){let r={...t};if(e){let n={sandbox:e};if(r.settings)try{n={...L2(r.settings),sandbox:e}}catch{}r.settings=Ri(n)}return r}var wk=class{options;process;processStdin;processStdout;ready=!1;abortController;exitError;exitListeners=[];processExitHandler;abortHandler;constructor(e){this.options=e,this.abortController=e.abortController||S2(),this.initialize()}getDefaultExecutable(){return F2()?"bun":"node"}spawnLocalProcess(e){let{command:r,args:n,cwd:i,env:s,signal:o}=e,a=s.DEBUG_CLAUDE_AGENT_SDK||this.options.stderr?"pipe":"ignore",c=(0,w2.spawn)(r,n,{cwd:i,stdio:["pipe","pipe",a],signal:o,env:s,windowsHide:!0});return(s.DEBUG_CLAUDE_AGENT_SDK||this.options.stderr)&&c.stderr.on("data",l=>{let d=l.toString();Uo(d),this.options.stderr&&this.options.stderr(d)}),{stdin:c.stdin,stdout:c.stdout,get killed(){return c.killed},get exitCode(){return c.exitCode},kill:c.kill.bind(c),on:c.on.bind(c),once:c.once.bind(c),off:c.off.bind(c)}}initialize(){try{let{additionalDirectories:e=[],betas:r,cwd:n,executable:i=this.getDefaultExecutable(),executableArgs:s=[],extraArgs:o={},pathToClaudeCodeExecutable:a,env:c={...process.env},maxThinkingTokens:u,maxTurns:l,maxBudgetUsd:d,model:p,fallbackModel:m,jsonSchema:f,permissionMode:g,allowDangerouslySkipPermissions:h,permissionPromptToolName:v,continueConversation:x,resume:b,settingSources:_,allowedTools:S=[],disallowedTools:w=[],tools:E,mcpServers:$,strictMcpConfig:R,canUseTool:A,includePartialMessages:N,plugins:U,sandbox:W}=this.options,j=["--output-format","stream-json","--verbose","--input-format","stream-json"];if(u!==void 0&&j.push("--max-thinking-tokens",u.toString()),l&&j.push("--max-turns",l.toString()),d!==void 0&&j.push("--max-budget-usd",d.toString()),p&&j.push("--model",p),r&&r.length>0&&j.push("--betas",r.join(",")),f&&j.push("--json-schema",Ri(f)),c.DEBUG_CLAUDE_AGENT_SDK&&j.push("--debug-to-stderr"),A){if(v)throw new Error("canUseTool callback cannot be used with permissionPromptToolName. Please use one or the other.");j.push("--permission-prompt-tool","stdio")}else v&&j.push("--permission-prompt-tool",v);if(x&&j.push("--continue"),b&&j.push("--resume",b),S.length>0&&j.push("--allowedTools",S.join(",")),w.length>0&&j.push("--disallowedTools",w.join(",")),E!==void 0&&(Array.isArray(E)?E.length===0?j.push("--tools",""):j.push("--tools",E.join(",")):j.push("--tools","default")),$&&Object.keys($).length>0&&j.push("--mcp-config",Ri({mcpServers:$})),_&&j.push("--setting-sources",_.join(",")),R&&j.push("--strict-mcp-config"),g&&j.push("--permission-mode",g),h&&j.push("--allow-dangerously-skip-permissions"),m){if(p&&m===p)throw new Error("Fallback model cannot be the same as the main model. Please specify a different model for fallbackModel option.");j.push("--fallback-model",m)}N&&j.push("--include-partial-messages");for(let P of e)j.push("--add-dir",P);if(U&&U.length>0)for(let P of U)if(P.type==="local")j.push("--plugin-dir",P.path);else throw new Error(`Unsupported plugin type: ${P.type}`);this.options.forkSession&&j.push("--fork-session"),this.options.resumeSessionAt&&j.push("--resume-session-at",this.options.resumeSessionAt),this.options.persistSession===!1&&j.push("--no-session-persistence");let ae=Rue(o??{},W);for(let[P,H]of Object.entries(ae))H===null?j.push(`--${P}`):j.push(`--${P}`,H);c.CLAUDE_CODE_ENTRYPOINT||(c.CLAUDE_CODE_ENTRYPOINT="sdk-ts"),delete c.NODE_OPTIONS,c.DEBUG_CLAUDE_AGENT_SDK?c.DEBUG="1":delete c.DEBUG;let Ne=Oue(a),ze=Ne?a:i,kt=Ne?[...s,...j]:[...s,a,...j],Ve={command:ze,args:kt,cwd:n,env:c,signal:this.abortController.signal};if(this.options.spawnClaudeCodeProcess)Uo(`Spawning Claude Code (custom): ${ze} ${kt.join(" ")}`),this.process=this.options.spawnClaudeCodeProcess(Ve);else{if(!as().existsSync(a)){let H=Ne?`Claude Code native binary not found at ${a}. Please ensure Claude Code is installed via native installer or specify a valid path with options.pathToClaudeCodeExecutable.`:`Claude Code executable not found at ${a}. Is options.pathToClaudeCodeExecutable set?`;throw new ReferenceError(H)}Uo(`Spawning Claude Code: ${ze} ${kt.join(" ")}`),this.process=this.spawnLocalProcess(Ve)}this.processStdin=this.process.stdin,this.processStdout=this.process.stdout;let K=()=>{this.process&&!this.process.killed&&this.process.kill("SIGTERM")};this.processExitHandler=K,this.abortHandler=K,process.on("exit",this.processExitHandler),this.abortController.signal.addEventListener("abort",this.abortHandler),this.process.on("error",P=>{this.ready=!1,this.abortController.signal.aborted?this.exitError=new qo("Claude Code process aborted by user"):(this.exitError=new Error(`Failed to spawn Claude Code process: ${P.message}`),Uo(this.exitError.message))}),this.process.on("exit",(P,H)=>{if(this.ready=!1,this.abortController.signal.aborted)this.exitError=new qo("Claude Code process aborted by user");else{let M=this.getProcessExitError(P,H);M&&(this.exitError=M,Uo(M.message))}}),this.ready=!0}catch(e){throw this.ready=!1,e}}getProcessExitError(e,r){if(e!==0&&e!==null)return new Error(`Claude Code process exited with code ${e}`);if(r)return new Error(`Claude Code process terminated by signal ${r}`)}write(e){if(this.abortController.signal.aborted)throw new qo("Operation aborted");if(!this.ready||!this.processStdin)throw new Error("ProcessTransport is not ready for writing");if(this.process?.killed||this.process?.exitCode!==null)throw new Error("Cannot write to terminated process");if(this.exitError)throw new Error(`Cannot write to process that exited with error: ${this.exitError.message}`);Uo(`[ProcessTransport] Writing to stdin: ${e.substring(0,100)}`);try{this.processStdin.write(e)||Uo("[ProcessTransport] Write buffer full, data queued")}catch(r){throw this.ready=!1,new Error(`Failed to write to process stdin: ${r.message}`)}}close(){this.processStdin&&(this.processStdin.end(),this.processStdin=void 0),this.abortHandler&&(this.abortController.signal.removeEventListener("abort",this.abortHandler),this.abortHandler=void 0);for(let{handler:e}of this.exitListeners)this.process?.off("exit",e);this.exitListeners=[],this.process&&!this.process.killed&&(this.process.kill("SIGTERM"),setTimeout(()=>{this.process&&!this.process.killed&&this.process.kill("SIGKILL")},5e3)),this.ready=!1,this.processExitHandler&&(process.off("exit",this.processExitHandler),this.processExitHandler=void 0)}isReady(){return this.ready}async*readMessages(){if(!this.processStdout)throw new Error("ProcessTransport output stream not available");let e=(0,E2.createInterface)({input:this.processStdout});try{for await(let r of e)r.trim()&&(yield L2(r));await this.waitForExit()}catch(r){throw r}finally{e.close()}}endInput(){this.processStdin&&this.processStdin.end()}getInputStream(){return this.processStdin}onExit(e){if(!this.process)return()=>{};let r=(n,i)=>{let s=this.getProcessExitError(n,i);e(s)};return this.process.on("exit",r),this.exitListeners.push({callback:e,handler:r}),()=>{this.process&&this.process.off("exit",r);let n=this.exitListeners.findIndex(i=>i.handler===r);n!==-1&&this.exitListeners.splice(n,1)}}async waitForExit(){if(!this.process){if(this.exitError)throw this.exitError;return}if(this.process.exitCode!==null||this.process.killed){if(this.exitError)throw this.exitError;return}return new Promise((e,r)=>{let n=(s,o)=>{if(this.abortController.signal.aborted){r(new qo("Operation aborted"));return}let a=this.getProcessExitError(s,o);a?r(a):e()};this.process.once("exit",n);let i=s=>{this.process.off("exit",n),r(s)};this.process.once("error",i),this.process.once("exit",()=>{this.process.off("error",i)})})}};function Oue(t){return![".js",".mjs",".tsx",".ts",".jsx"].some(r=>t.endsWith(r))}var Ek=class{returned;queue=[];readResolve;readReject;isDone=!1;hasError;started=!1;constructor(e){this.returned=e}[Symbol.asyncIterator](){if(this.started)throw new Error("Stream can only be iterated once");return this.started=!0,this}next(){return this.queue.length>0?Promise.resolve({done:!1,value:this.queue.shift()}):this.isDone?Promise.resolve({done:!0,value:void 0}):this.hasError?Promise.reject(this.hasError):new Promise((e,r)=>{this.readResolve=e,this.readReject=r})}enqueue(e){if(this.readResolve){let r=this.readResolve;this.readResolve=void 0,this.readReject=void 0,r({done:!1,value:e})}else this.queue.push(e)}done(){if(this.isDone=!0,this.readResolve){let e=this.readResolve;this.readResolve=void 0,this.readReject=void 0,e({done:!0,value:void 0})}}error(e){if(this.hasError=e,this.readReject){let r=this.readReject;this.readResolve=void 0,this.readReject=void 0,r(e)}}return(){return this.isDone=!0,this.returned&&this.returned(),Promise.resolve({done:!0,value:void 0})}},kk=class{sendMcpMessage;isClosed=!1;constructor(e){this.sendMcpMessage=e}onclose;onerror;onmessage;async start(){}async send(e){if(this.isClosed)throw new Error("Transport is closed");this.sendMcpMessage(e)}async close(){this.isClosed||(this.isClosed=!0,this.onclose?.())}},$k=class{transport;isSingleUserTurn;canUseTool;hooks;abortController;jsonSchema;initConfig;pendingControlResponses=new Map;cleanupPerformed=!1;sdkMessages;inputStream=new Ek;initialization;cancelControllers=new Map;hookCallbacks=new Map;nextCallbackId=0;sdkMcpTransports=new Map;sdkMcpServerInstances=new Map;pendingMcpResponses=new Map;firstResultReceivedResolve;firstResultReceived=!1;hasBidirectionalNeeds(){return this.sdkMcpTransports.size>0||this.hooks!==void 0&&Object.keys(this.hooks).length>0||this.canUseTool!==void 0}constructor(e,r,n,i,s,o=new Map,a,c){this.transport=e,this.isSingleUserTurn=r,this.canUseTool=n,this.hooks=i,this.abortController=s,this.jsonSchema=a,this.initConfig=c;for(let[u,l]of o)this.connectSdkMcpServer(u,l);this.sdkMessages=this.readSdkMessages(),this.readMessages(),this.initialization=this.initialize(),this.initialization.catch(()=>{})}setError(e){this.inputStream.error(e)}cleanup(e){if(!this.cleanupPerformed){this.cleanupPerformed=!0;try{this.transport.close(),this.pendingControlResponses.clear(),this.pendingMcpResponses.clear(),this.cancelControllers.clear(),this.hookCallbacks.clear();for(let r of this.sdkMcpTransports.values())try{r.close()}catch{}this.sdkMcpTransports.clear(),e?this.inputStream.error(e):this.inputStream.done()}catch{}}}next(...[e]){return this.sdkMessages.next(e)}return(e){return this.sdkMessages.return(e)}throw(e){return this.sdkMessages.throw(e)}[Symbol.asyncIterator](){return this.sdkMessages}[Symbol.asyncDispose](){return this.sdkMessages[Symbol.asyncDispose]()}async readMessages(){try{for await(let e of this.transport.readMessages()){if(e.type==="control_response"){let r=this.pendingControlResponses.get(e.response.request_id);r&&r(e.response);continue}else if(e.type==="control_request"){this.handleControlRequest(e);continue}else if(e.type==="control_cancel_request"){this.handleControlCancelRequest(e);continue}else if(e.type==="keep_alive")continue;e.type==="result"&&(this.firstResultReceived=!0,this.firstResultReceivedResolve&&this.firstResultReceivedResolve(),this.isSingleUserTurn&&(os("[Query.readMessages] First result received for single-turn query, closing stdin"),this.transport.endInput())),this.inputStream.enqueue(e)}this.firstResultReceivedResolve&&this.firstResultReceivedResolve(),this.inputStream.done(),this.cleanup()}catch(e){this.firstResultReceivedResolve&&this.firstResultReceivedResolve(),this.inputStream.error(e),this.cleanup(e)}}async handleControlRequest(e){let r=new AbortController;this.cancelControllers.set(e.request_id,r);try{let n=await this.processControlRequest(e,r.signal),i={type:"control_response",response:{subtype:"success",request_id:e.request_id,response:n}};await Promise.resolve(this.transport.write(Ri(i)+` +`))}catch(n){let i={type:"control_response",response:{subtype:"error",request_id:e.request_id,error:n.message||String(n)}};await Promise.resolve(this.transport.write(Ri(i)+` +`))}finally{this.cancelControllers.delete(e.request_id)}}handleControlCancelRequest(e){let r=this.cancelControllers.get(e.request_id);r&&(r.abort(),this.cancelControllers.delete(e.request_id))}async processControlRequest(e,r){if(e.request.subtype==="can_use_tool"){if(!this.canUseTool)throw new Error("canUseTool callback is not provided.");return{...await this.canUseTool(e.request.tool_name,e.request.input,{signal:r,suggestions:e.request.permission_suggestions,blockedPath:e.request.blocked_path,decisionReason:e.request.decision_reason,toolUseID:e.request.tool_use_id,agentID:e.request.agent_id}),toolUseID:e.request.tool_use_id}}else{if(e.request.subtype==="hook_callback")return await this.handleHookCallbacks(e.request.callback_id,e.request.input,e.request.tool_use_id,r);if(e.request.subtype==="mcp_message"){let n=e.request,i=this.sdkMcpTransports.get(n.server_name);if(!i)throw new Error(`SDK MCP server not found: ${n.server_name}`);return"method"in n.message&&"id"in n.message&&n.message.id!==null?{mcp_response:await this.handleMcpControlRequest(n.server_name,n,i)}:(i.onmessage&&i.onmessage(n.message),{mcp_response:{jsonrpc:"2.0",result:{},id:0}})}}throw new Error("Unsupported control request subtype: "+e.request.subtype)}async*readSdkMessages(){for await(let e of this.inputStream)yield e}async initialize(){let e;if(this.hooks){e={};for(let[s,o]of Object.entries(this.hooks))o.length>0&&(e[s]=o.map(a=>{let c=[];for(let u of a.hooks){let l=`hook_${this.nextCallbackId++}`;this.hookCallbacks.set(l,u),c.push(l)}return{matcher:a.matcher,hookCallbackIds:c,timeout:a.timeout}}))}let r=this.sdkMcpTransports.size>0?Array.from(this.sdkMcpTransports.keys()):void 0,n={subtype:"initialize",hooks:e,sdkMcpServers:r,jsonSchema:this.jsonSchema,systemPrompt:this.initConfig?.systemPrompt,appendSystemPrompt:this.initConfig?.appendSystemPrompt,agents:this.initConfig?.agents};return(await this.request(n)).response}async interrupt(){await this.request({subtype:"interrupt"})}async setPermissionMode(e){await this.request({subtype:"set_permission_mode",mode:e})}async setModel(e){await this.request({subtype:"set_model",model:e})}async setMaxThinkingTokens(e){await this.request({subtype:"set_max_thinking_tokens",max_thinking_tokens:e})}async rewindFiles(e,r){return(await this.request({subtype:"rewind_files",user_message_id:e,dry_run:r?.dryRun})).response}async processPendingPermissionRequests(e){for(let r of e)r.request.subtype==="can_use_tool"&&this.handleControlRequest(r).catch(()=>{})}request(e){let r=Math.random().toString(36).substring(2,15),n={request_id:r,type:"control_request",request:e};return new Promise((i,s)=>{this.pendingControlResponses.set(r,o=>{o.subtype==="success"?i(o):(s(new Error(o.error)),o.pending_permission_requests&&this.processPendingPermissionRequests(o.pending_permission_requests))}),Promise.resolve(this.transport.write(Ri(n)+` +`))})}async supportedCommands(){return(await this.initialization).commands}async supportedModels(){return(await this.initialization).models}async mcpServerStatus(){return(await this.request({subtype:"mcp_status"})).response.mcpServers}async setMcpServers(e){let r={},n={};for(let[c,u]of Object.entries(e))u.type==="sdk"&&"instance"in u?r[c]=u.instance:n[c]=u;let i=new Set(this.sdkMcpServerInstances.keys()),s=new Set(Object.keys(r));for(let c of i)s.has(c)||await this.disconnectSdkMcpServer(c);for(let[c,u]of Object.entries(r))i.has(c)||this.connectSdkMcpServer(c,u);let o={};for(let c of Object.keys(r))o[c]={type:"sdk",name:c};return(await this.request({subtype:"mcp_set_servers",servers:{...n,...o}})).response}async accountInfo(){return(await this.initialization).account}async streamInput(e){os("[Query.streamInput] Starting to process input stream");try{let r=0;for await(let n of e){if(r++,os(`[Query.streamInput] Processing message ${r}: ${n.type}`),this.abortController?.signal.aborted)break;await Promise.resolve(this.transport.write(Ri(n)+` +`))}os(`[Query.streamInput] Finished processing ${r} messages from input stream`),r>0&&this.hasBidirectionalNeeds()&&(os("[Query.streamInput] Has bidirectional needs, waiting for first result"),await this.waitForFirstResult()),os("[Query] Calling transport.endInput() to close stdin to CLI process"),this.transport.endInput()}catch(r){if(!(r instanceof qo))throw r}}waitForFirstResult(){return this.firstResultReceived?(os("[Query.waitForFirstResult] Result already received, returning immediately"),Promise.resolve()):new Promise(e=>{if(this.abortController?.signal.aborted){e();return}this.abortController?.signal.addEventListener("abort",()=>e(),{once:!0}),this.firstResultReceivedResolve=e})}handleHookCallbacks(e,r,n,i){let s=this.hookCallbacks.get(e);if(!s)throw new Error(`No hook callback found for ID: ${e}`);return s(r,n,{signal:i})}connectSdkMcpServer(e,r){let n=new kk(i=>this.sendMcpServerMessageToCli(e,i));this.sdkMcpTransports.set(e,n),this.sdkMcpServerInstances.set(e,r),r.connect(n)}async disconnectSdkMcpServer(e){let r=this.sdkMcpTransports.get(e);r&&(await r.close(),this.sdkMcpTransports.delete(e)),this.sdkMcpServerInstances.delete(e)}sendMcpServerMessageToCli(e,r){if("id"in r&&r.id!==null&&r.id!==void 0){let i=`${e}:${r.id}`,s=this.pendingMcpResponses.get(i);if(s){s.resolve(r),this.pendingMcpResponses.delete(i);return}}let n={type:"control_request",request_id:(0,Z2.randomUUID)(),request:{subtype:"mcp_message",server_name:e,message:r}};this.transport.write(Ri(n)+` +`)}handleMcpControlRequest(e,r,n){let i="id"in r.message?r.message.id:null,s=`${e}:${i}`;return new Promise((o,a)=>{let c=()=>{this.pendingMcpResponses.delete(s)},u=d=>{c(),o(d)},l=d=>{c(),a(d)};if(this.pendingMcpResponses.set(s,{resolve:u,reject:l}),n.onmessage)n.onmessage(r.message);else{c(),a(new Error("No message handler registered"));return}})}};var ot;(function(t){t.assertEqual=i=>{};function e(i){}t.assertIs=e;function r(i){throw new Error}t.assertNever=r,t.arrayToEnum=i=>{let s={};for(let o of i)s[o]=o;return s},t.getValidEnumValues=i=>{let s=t.objectKeys(i).filter(a=>typeof i[i[a]]!="number"),o={};for(let a of s)o[a]=i[a];return t.objectValues(o)},t.objectValues=i=>t.objectKeys(i).map(function(s){return i[s]}),t.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{let s=[];for(let o in i)Object.prototype.hasOwnProperty.call(i,o)&&s.push(o);return s},t.find=(i,s)=>{for(let o of i)if(s(o))return o},t.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&Number.isFinite(i)&&Math.floor(i)===i;function n(i,s=" | "){return i.map(o=>typeof o=="string"?`'${o}'`:o).join(s)}t.joinValues=n,t.jsonStringifyReplacer=(i,s)=>typeof s=="bigint"?s.toString():s})(ot||(ot={}));var FU;(function(t){t.mergeShapes=(e,r)=>({...e,...r})})(FU||(FU={}));var se=ot.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Hs=t=>{switch(typeof t){case"undefined":return se.undefined;case"string":return se.string;case"number":return Number.isNaN(t)?se.nan:se.number;case"boolean":return se.boolean;case"function":return se.function;case"bigint":return se.bigint;case"symbol":return se.symbol;case"object":return Array.isArray(t)?se.array:t===null?se.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?se.promise:typeof Map<"u"&&t instanceof Map?se.map:typeof Set<"u"&&t instanceof Set?se.set:typeof Date<"u"&&t instanceof Date?se.date:se.object;default:return se.unknown}},G=ot.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),jn=class t extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=e}format(e){let r=e||function(s){return s.message},n={_errors:[]},i=s=>{for(let o of s.issues)if(o.code==="invalid_union")o.unionErrors.map(i);else if(o.code==="invalid_return_type")i(o.returnTypeError);else if(o.code==="invalid_arguments")i(o.argumentsError);else if(o.path.length===0)n._errors.push(r(o));else{let a=n,c=0;for(;cr.message){let r={},n=[];for(let i of this.issues)if(i.path.length>0){let s=i.path[0];r[s]=r[s]||[],r[s].push(e(i))}else n.push(e(i));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}};jn.create=t=>new jn(t);var Pue=(t,e)=>{let r;switch(t.code){case G.invalid_type:t.received===se.undefined?r="Required":r=`Expected ${t.expected}, received ${t.received}`;break;case G.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,ot.jsonStringifyReplacer)}`;break;case G.unrecognized_keys:r=`Unrecognized key(s) in object: ${ot.joinValues(t.keys,", ")}`;break;case G.invalid_union:r="Invalid input";break;case G.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${ot.joinValues(t.options)}`;break;case G.invalid_enum_value:r=`Invalid enum value. Expected ${ot.joinValues(t.options)}, received '${t.received}'`;break;case G.invalid_arguments:r="Invalid function arguments";break;case G.invalid_return_type:r="Invalid function return type";break;case G.invalid_date:r="Invalid date";break;case G.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(r=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?r=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?r=`Invalid input: must end with "${t.validation.endsWith}"`:ot.assertNever(t.validation):t.validation!=="regex"?r=`Invalid ${t.validation}`:r="Invalid";break;case G.too_small:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:r="Invalid input";break;case G.too_big:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?r=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:r="Invalid input";break;case G.custom:r="Invalid input";break;case G.invalid_intersection_types:r="Intersection results could not be merged";break;case G.not_multiple_of:r=`Number must be a multiple of ${t.multipleOf}`;break;case G.not_finite:r="Number must be finite";break;default:r=e.defaultError,ot.assertNever(t)}return{message:r}},Vd=Pue,Cue=Vd;function Tk(){return Cue}var Ik=t=>{let{data:e,path:r,errorMaps:n,issueData:i}=t,s=[...r,...i.path||[]],o={...i,path:s};if(i.message!==void 0)return{...i,path:s,message:i.message};let a="",c=n.filter(u=>!!u).slice().reverse();for(let u of c)a=u(o,{data:e,defaultError:a}).message;return{...i,path:s,message:a}};function te(t,e){let r=Tk(),n=Ik({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,r,r===Vd?void 0:Vd].filter(i=>!!i)});t.common.issues.push(n)}var Vr=class t{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,r){let n=[];for(let i of r){if(i.status==="aborted")return ke;i.status==="dirty"&&e.dirty(),n.push(i.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,r){let n=[];for(let i of r){let s=await i.key,o=await i.value;n.push({key:s,value:o})}return t.mergeObjectSync(e,n)}static mergeObjectSync(e,r){let n={};for(let i of r){let{key:s,value:o}=i;if(s.status==="aborted"||o.status==="aborted")return ke;s.status==="dirty"&&e.dirty(),o.status==="dirty"&&e.dirty(),s.value!=="__proto__"&&(typeof o.value<"u"||i.alwaysSet)&&(n[s.value]=o.value)}return{status:e.value,value:n}}},ke=Object.freeze({status:"aborted"}),Hd=t=>({status:"dirty",value:t}),an=t=>({status:"valid",value:t}),HU=t=>t.status==="aborted",ZU=t=>t.status==="dirty",Ac=t=>t.status==="valid",Sg=t=>typeof Promise<"u"&&t instanceof Promise,pe;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(pe||(pe={}));var zn=class{constructor(e,r,n,i){this._cachedPath=[],this.parent=e,this.data=r,this._path=n,this._key=i}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},BU=(t,e)=>{if(Ac(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new jn(t.common.issues);return this._error=r,this._error}}};function Ae(t){if(!t)return{};let{errorMap:e,invalid_type_error:r,required_error:n,description:i}=t;if(e&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:i}:{errorMap:(o,a)=>{let{message:c}=t;return o.code==="invalid_enum_value"?{message:c??a.defaultError}:typeof a.data>"u"?{message:c??n??a.defaultError}:o.code!=="invalid_type"?{message:a.defaultError}:{message:c??r??a.defaultError}},description:i}}var Be=class{get description(){return this._def.description}_getType(e){return Hs(e.data)}_getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parsedType:Hs(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Vr,ctx:{common:e.parent.common,data:e.data,parsedType:Hs(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let r=this._parse(e);if(Sg(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(e){let r=this._parse(e);return Promise.resolve(r)}parse(e,r){let n=this.safeParse(e,r);if(n.success)return n.data;throw n.error}safeParse(e,r){let n={common:{issues:[],async:r?.async??!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Hs(e)},i=this._parseSync({data:e,path:n.path,parent:n});return BU(n,i)}"~validate"(e){let r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Hs(e)};if(!this["~standard"].async)try{let n=this._parseSync({data:e,path:[],parent:r});return Ac(n)?{value:n.value}:{issues:r.common.issues}}catch(n){n?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:r}).then(n=>Ac(n)?{value:n.value}:{issues:r.common.issues})}async parseAsync(e,r){let n=await this.safeParseAsync(e,r);if(n.success)return n.data;throw n.error}async safeParseAsync(e,r){let n={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Hs(e)},i=this._parse({data:e,path:n.path,parent:n}),s=await(Sg(i)?i:Promise.resolve(i));return BU(n,s)}refine(e,r){let n=i=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(i):r;return this._refinement((i,s)=>{let o=e(i),a=()=>s.addIssue({code:G.custom,...n(i)});return typeof Promise<"u"&&o instanceof Promise?o.then(c=>c?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(e,r){return this._refinement((n,i)=>e(n)?!0:(i.addIssue(typeof r=="function"?r(n,i):r),!1))}_refinement(e){return new ii({schema:this,typeName:$e.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return ni.create(this,this._def)}nullable(){return us.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Vs.create(this)}promise(){return Ho.create(this,this._def)}or(e){return jc.create([this,e],this._def)}and(e){return zc.create(this,e,this._def)}transform(e){return new ii({...Ae(this._def),schema:this,typeName:$e.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let r=typeof e=="function"?e:()=>e;return new Hc({...Ae(this._def),innerType:this,defaultValue:r,typeName:$e.ZodDefault})}brand(){return new wg({typeName:$e.ZodBranded,type:this,...Ae(this._def)})}catch(e){let r=typeof e=="function"?e:()=>e;return new Zc({...Ae(this._def),innerType:this,catchValue:r,typeName:$e.ZodCatch})}describe(e){let r=this.constructor;return new r({...this._def,description:e})}pipe(e){return Eg.create(this,e)}readonly(){return Bc.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},Aue=/^c[^\s-]{8,}$/i,Nue=/^[0-9a-z]+$/,Mue=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Due=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,jue=/^[a-z0-9_-]{21}$/i,zue=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Lue=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Uue=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,que="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",vk,Fue=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Hue=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Zue=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Bue=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Vue=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Gue=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,B2="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Wue=new RegExp(`^${B2}$`);function V2(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`);let r=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${r}`}function Kue(t){return new RegExp(`^${V2(t)}$`)}function Jue(t){let e=`${B2}T${V2(t)}`,r=[];return r.push(t.local?"Z?":"Z"),t.offset&&r.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${r.join("|")})`,new RegExp(`^${e}$`)}function Xue(t,e){return!!((e==="v4"||!e)&&Fue.test(t)||(e==="v6"||!e)&&Zue.test(t))}function Yue(t,e){if(!zue.test(t))return!1;try{let[r]=t.split(".");if(!r)return!1;let n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),i=JSON.parse(atob(n));return!(typeof i!="object"||i===null||"typ"in i&&i?.typ!=="JWT"||!i.alg||e&&i.alg!==e)}catch{return!1}}function Que(t,e){return!!((e==="v4"||!e)&&Hue.test(t)||(e==="v6"||!e)&&Bue.test(t))}var Nc=class t extends Be{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==se.string){let s=this._getOrReturnCtx(e);return te(s,{code:G.invalid_type,expected:se.string,received:s.parsedType}),ke}let n=new Vr,i;for(let s of this._def.checks)if(s.kind==="min")e.data.lengths.value&&(i=this._getOrReturnCtx(e,i),te(i,{code:G.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="length"){let o=e.data.length>s.value,a=e.data.lengthe.test(i),{validation:r,code:G.invalid_string,...pe.errToObj(n)})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...pe.errToObj(e)})}url(e){return this._addCheck({kind:"url",...pe.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...pe.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...pe.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...pe.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...pe.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...pe.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...pe.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...pe.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...pe.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...pe.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...pe.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...pe.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...pe.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...pe.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...pe.errToObj(e)})}regex(e,r){return this._addCheck({kind:"regex",regex:e,...pe.errToObj(r)})}includes(e,r){return this._addCheck({kind:"includes",value:e,position:r?.position,...pe.errToObj(r?.message)})}startsWith(e,r){return this._addCheck({kind:"startsWith",value:e,...pe.errToObj(r)})}endsWith(e,r){return this._addCheck({kind:"endsWith",value:e,...pe.errToObj(r)})}min(e,r){return this._addCheck({kind:"min",value:e,...pe.errToObj(r)})}max(e,r){return this._addCheck({kind:"max",value:e,...pe.errToObj(r)})}length(e,r){return this._addCheck({kind:"length",value:e,...pe.errToObj(r)})}nonempty(e){return this.min(1,pe.errToObj(e))}trim(){return new t({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxLength(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.valuenew Nc({checks:[],typeName:$e.ZodString,coerce:t?.coerce??!1,...Ae(t)});function ele(t,e){let r=(t.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,i=r>n?r:n,s=Number.parseInt(t.toFixed(i).replace(".","")),o=Number.parseInt(e.toFixed(i).replace(".",""));return s%o/10**i}var Gd=class t extends Be{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==se.number){let s=this._getOrReturnCtx(e);return te(s,{code:G.invalid_type,expected:se.number,received:s.parsedType}),ke}let n,i=new Vr;for(let s of this._def.checks)s.kind==="int"?ot.isInteger(e.data)||(n=this._getOrReturnCtx(e,n),te(n,{code:G.invalid_type,expected:"integer",received:"float",message:s.message}),i.dirty()):s.kind==="min"?(s.inclusive?e.datas.value:e.data>=s.value)&&(n=this._getOrReturnCtx(e,n),te(n,{code:G.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="multipleOf"?ele(e.data,s.value)!==0&&(n=this._getOrReturnCtx(e,n),te(n,{code:G.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):s.kind==="finite"?Number.isFinite(e.data)||(n=this._getOrReturnCtx(e,n),te(n,{code:G.not_finite,message:s.message}),i.dirty()):ot.assertNever(s);return{status:i.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,pe.toString(r))}gt(e,r){return this.setLimit("min",e,!1,pe.toString(r))}lte(e,r){return this.setLimit("max",e,!0,pe.toString(r))}lt(e,r){return this.setLimit("max",e,!1,pe.toString(r))}setLimit(e,r,n,i){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:pe.toString(i)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:pe.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:pe.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:pe.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:pe.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:pe.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:pe.toString(r)})}finite(e){return this._addCheck({kind:"finite",message:pe.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:pe.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:pe.toString(e)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.valuee.kind==="int"||e.kind==="multipleOf"&&ot.isInteger(e.value))}get isFinite(){let e=null,r=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(e===null||n.valuenew Gd({checks:[],typeName:$e.ZodNumber,coerce:t?.coerce||!1,...Ae(t)});var Wd=class t extends Be{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==se.bigint)return this._getInvalidInput(e);let n,i=new Vr;for(let s of this._def.checks)s.kind==="min"?(s.inclusive?e.datas.value:e.data>=s.value)&&(n=this._getOrReturnCtx(e,n),te(n,{code:G.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="multipleOf"?e.data%s.value!==BigInt(0)&&(n=this._getOrReturnCtx(e,n),te(n,{code:G.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):ot.assertNever(s);return{status:i.value,value:e.data}}_getInvalidInput(e){let r=this._getOrReturnCtx(e);return te(r,{code:G.invalid_type,expected:se.bigint,received:r.parsedType}),ke}gte(e,r){return this.setLimit("min",e,!0,pe.toString(r))}gt(e,r){return this.setLimit("min",e,!1,pe.toString(r))}lte(e,r){return this.setLimit("max",e,!0,pe.toString(r))}lt(e,r){return this.setLimit("max",e,!1,pe.toString(r))}setLimit(e,r,n,i){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:pe.toString(i)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:pe.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:pe.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:pe.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:pe.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:pe.toString(r)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.valuenew Wd({checks:[],typeName:$e.ZodBigInt,coerce:t?.coerce??!1,...Ae(t)});var Kd=class extends Be{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==se.boolean){let n=this._getOrReturnCtx(e);return te(n,{code:G.invalid_type,expected:se.boolean,received:n.parsedType}),ke}return an(e.data)}};Kd.create=t=>new Kd({typeName:$e.ZodBoolean,coerce:t?.coerce||!1,...Ae(t)});var Jd=class t extends Be{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==se.date){let s=this._getOrReturnCtx(e);return te(s,{code:G.invalid_type,expected:se.date,received:s.parsedType}),ke}if(Number.isNaN(e.data.getTime())){let s=this._getOrReturnCtx(e);return te(s,{code:G.invalid_date}),ke}let n=new Vr,i;for(let s of this._def.checks)s.kind==="min"?e.data.getTime()s.value&&(i=this._getOrReturnCtx(e,i),te(i,{code:G.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),n.dirty()):ot.assertNever(s);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}min(e,r){return this._addCheck({kind:"min",value:e.getTime(),message:pe.toString(r)})}max(e,r){return this._addCheck({kind:"max",value:e.getTime(),message:pe.toString(r)})}get minDate(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.valuenew Jd({checks:[],coerce:t?.coerce||!1,typeName:$e.ZodDate,...Ae(t)});var Xd=class extends Be{_parse(e){if(this._getType(e)!==se.symbol){let n=this._getOrReturnCtx(e);return te(n,{code:G.invalid_type,expected:se.symbol,received:n.parsedType}),ke}return an(e.data)}};Xd.create=t=>new Xd({typeName:$e.ZodSymbol,...Ae(t)});var Mc=class extends Be{_parse(e){if(this._getType(e)!==se.undefined){let n=this._getOrReturnCtx(e);return te(n,{code:G.invalid_type,expected:se.undefined,received:n.parsedType}),ke}return an(e.data)}};Mc.create=t=>new Mc({typeName:$e.ZodUndefined,...Ae(t)});var Dc=class extends Be{_parse(e){if(this._getType(e)!==se.null){let n=this._getOrReturnCtx(e);return te(n,{code:G.invalid_type,expected:se.null,received:n.parsedType}),ke}return an(e.data)}};Dc.create=t=>new Dc({typeName:$e.ZodNull,...Ae(t)});var Yd=class extends Be{constructor(){super(...arguments),this._any=!0}_parse(e){return an(e.data)}};Yd.create=t=>new Yd({typeName:$e.ZodAny,...Ae(t)});var Bs=class extends Be{constructor(){super(...arguments),this._unknown=!0}_parse(e){return an(e.data)}};Bs.create=t=>new Bs({typeName:$e.ZodUnknown,...Ae(t)});var Pi=class extends Be{_parse(e){let r=this._getOrReturnCtx(e);return te(r,{code:G.invalid_type,expected:se.never,received:r.parsedType}),ke}};Pi.create=t=>new Pi({typeName:$e.ZodNever,...Ae(t)});var Qd=class extends Be{_parse(e){if(this._getType(e)!==se.undefined){let n=this._getOrReturnCtx(e);return te(n,{code:G.invalid_type,expected:se.void,received:n.parsedType}),ke}return an(e.data)}};Qd.create=t=>new Qd({typeName:$e.ZodVoid,...Ae(t)});var Vs=class t extends Be{_parse(e){let{ctx:r,status:n}=this._processInputParams(e),i=this._def;if(r.parsedType!==se.array)return te(r,{code:G.invalid_type,expected:se.array,received:r.parsedType}),ke;if(i.exactLength!==null){let o=r.data.length>i.exactLength.value,a=r.data.lengthi.maxLength.value&&(te(r,{code:G.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((o,a)=>i.type._parseAsync(new zn(r,o,r.path,a)))).then(o=>Vr.mergeArray(n,o));let s=[...r.data].map((o,a)=>i.type._parseSync(new zn(r,o,r.path,a)));return Vr.mergeArray(n,s)}get element(){return this._def.type}min(e,r){return new t({...this._def,minLength:{value:e,message:pe.toString(r)}})}max(e,r){return new t({...this._def,maxLength:{value:e,message:pe.toString(r)}})}length(e,r){return new t({...this._def,exactLength:{value:e,message:pe.toString(r)}})}nonempty(e){return this.min(1,e)}};Vs.create=(t,e)=>new Vs({type:t,minLength:null,maxLength:null,exactLength:null,typeName:$e.ZodArray,...Ae(e)});function Oc(t){if(t instanceof bn){let e={};for(let r in t.shape){let n=t.shape[r];e[r]=ni.create(Oc(n))}return new bn({...t._def,shape:()=>e})}else return t instanceof Vs?new Vs({...t._def,type:Oc(t.element)}):t instanceof ni?ni.create(Oc(t.unwrap())):t instanceof us?us.create(Oc(t.unwrap())):t instanceof cs?cs.create(t.items.map(e=>Oc(e))):t}var bn=class t extends Be{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),r=ot.objectKeys(e);return this._cached={shape:e,keys:r},this._cached}_parse(e){if(this._getType(e)!==se.object){let u=this._getOrReturnCtx(e);return te(u,{code:G.invalid_type,expected:se.object,received:u.parsedType}),ke}let{status:n,ctx:i}=this._processInputParams(e),{shape:s,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof Pi&&this._def.unknownKeys==="strip"))for(let u in i.data)o.includes(u)||a.push(u);let c=[];for(let u of o){let l=s[u],d=i.data[u];c.push({key:{status:"valid",value:u},value:l._parse(new zn(i,d,i.path,u)),alwaysSet:u in i.data})}if(this._def.catchall instanceof Pi){let u=this._def.unknownKeys;if(u==="passthrough")for(let l of a)c.push({key:{status:"valid",value:l},value:{status:"valid",value:i.data[l]}});else if(u==="strict")a.length>0&&(te(i,{code:G.unrecognized_keys,keys:a}),n.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let l of a){let d=i.data[l];c.push({key:{status:"valid",value:l},value:u._parse(new zn(i,d,i.path,l)),alwaysSet:l in i.data})}}return i.common.async?Promise.resolve().then(async()=>{let u=[];for(let l of c){let d=await l.key,p=await l.value;u.push({key:d,value:p,alwaysSet:l.alwaysSet})}return u}).then(u=>Vr.mergeObjectSync(n,u)):Vr.mergeObjectSync(n,c)}get shape(){return this._def.shape()}strict(e){return pe.errToObj,new t({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(r,n)=>{let i=this._def.errorMap?.(r,n).message??n.defaultError;return r.code==="unrecognized_keys"?{message:pe.errToObj(e).message??i}:{message:i}}}:{}})}strip(){return new t({...this._def,unknownKeys:"strip"})}passthrough(){return new t({...this._def,unknownKeys:"passthrough"})}extend(e){return new t({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new t({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:$e.ZodObject})}setKey(e,r){return this.augment({[e]:r})}catchall(e){return new t({...this._def,catchall:e})}pick(e){let r={};for(let n of ot.objectKeys(e))e[n]&&this.shape[n]&&(r[n]=this.shape[n]);return new t({...this._def,shape:()=>r})}omit(e){let r={};for(let n of ot.objectKeys(this.shape))e[n]||(r[n]=this.shape[n]);return new t({...this._def,shape:()=>r})}deepPartial(){return Oc(this)}partial(e){let r={};for(let n of ot.objectKeys(this.shape)){let i=this.shape[n];e&&!e[n]?r[n]=i:r[n]=i.optional()}return new t({...this._def,shape:()=>r})}required(e){let r={};for(let n of ot.objectKeys(this.shape))if(e&&!e[n])r[n]=this.shape[n];else{let s=this.shape[n];for(;s instanceof ni;)s=s._def.innerType;r[n]=s}return new t({...this._def,shape:()=>r})}keyof(){return G2(ot.objectKeys(this.shape))}};bn.create=(t,e)=>new bn({shape:()=>t,unknownKeys:"strip",catchall:Pi.create(),typeName:$e.ZodObject,...Ae(e)});bn.strictCreate=(t,e)=>new bn({shape:()=>t,unknownKeys:"strict",catchall:Pi.create(),typeName:$e.ZodObject,...Ae(e)});bn.lazycreate=(t,e)=>new bn({shape:t,unknownKeys:"strip",catchall:Pi.create(),typeName:$e.ZodObject,...Ae(e)});var jc=class extends Be{_parse(e){let{ctx:r}=this._processInputParams(e),n=this._def.options;function i(s){for(let a of s)if(a.result.status==="valid")return a.result;for(let a of s)if(a.result.status==="dirty")return r.common.issues.push(...a.ctx.common.issues),a.result;let o=s.map(a=>new jn(a.ctx.common.issues));return te(r,{code:G.invalid_union,unionErrors:o}),ke}if(r.common.async)return Promise.all(n.map(async s=>{let o={...r,common:{...r.common,issues:[]},parent:null};return{result:await s._parseAsync({data:r.data,path:r.path,parent:o}),ctx:o}})).then(i);{let s,o=[];for(let c of n){let u={...r,common:{...r.common,issues:[]},parent:null},l=c._parseSync({data:r.data,path:r.path,parent:u});if(l.status==="valid")return l;l.status==="dirty"&&!s&&(s={result:l,ctx:u}),u.common.issues.length&&o.push(u.common.issues)}if(s)return r.common.issues.push(...s.ctx.common.issues),s.result;let a=o.map(c=>new jn(c));return te(r,{code:G.invalid_union,unionErrors:a}),ke}}get options(){return this._def.options}};jc.create=(t,e)=>new jc({options:t,typeName:$e.ZodUnion,...Ae(e)});var ss=t=>t instanceof Lc?ss(t.schema):t instanceof ii?ss(t.innerType()):t instanceof Uc?[t.value]:t instanceof qc?t.options:t instanceof Fc?ot.objectValues(t.enum):t instanceof Hc?ss(t._def.innerType):t instanceof Mc?[void 0]:t instanceof Dc?[null]:t instanceof ni?[void 0,...ss(t.unwrap())]:t instanceof us?[null,...ss(t.unwrap())]:t instanceof wg||t instanceof Bc?ss(t.unwrap()):t instanceof Zc?ss(t._def.innerType):[],Rk=class t extends Be{_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==se.object)return te(r,{code:G.invalid_type,expected:se.object,received:r.parsedType}),ke;let n=this.discriminator,i=r.data[n],s=this.optionsMap.get(i);return s?r.common.async?s._parseAsync({data:r.data,path:r.path,parent:r}):s._parseSync({data:r.data,path:r.path,parent:r}):(te(r,{code:G.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),ke)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,r,n){let i=new Map;for(let s of r){let o=ss(s.shape[e]);if(!o.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let a of o){if(i.has(a))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(a)}`);i.set(a,s)}}return new t({typeName:$e.ZodDiscriminatedUnion,discriminator:e,options:r,optionsMap:i,...Ae(n)})}};function Ok(t,e){let r=Hs(t),n=Hs(e);if(t===e)return{valid:!0,data:t};if(r===se.object&&n===se.object){let i=ot.objectKeys(e),s=ot.objectKeys(t).filter(a=>i.indexOf(a)!==-1),o={...t,...e};for(let a of s){let c=Ok(t[a],e[a]);if(!c.valid)return{valid:!1};o[a]=c.data}return{valid:!0,data:o}}else if(r===se.array&&n===se.array){if(t.length!==e.length)return{valid:!1};let i=[];for(let s=0;s{if(HU(s)||HU(o))return ke;let a=Ok(s.value,o.value);return a.valid?((ZU(s)||ZU(o))&&r.dirty(),{status:r.value,value:a.data}):(te(n,{code:G.invalid_intersection_types}),ke)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([s,o])=>i(s,o)):i(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};zc.create=(t,e,r)=>new zc({left:t,right:e,typeName:$e.ZodIntersection,...Ae(r)});var cs=class t extends Be{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==se.array)return te(n,{code:G.invalid_type,expected:se.array,received:n.parsedType}),ke;if(n.data.lengththis._def.items.length&&(te(n,{code:G.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let s=[...n.data].map((o,a)=>{let c=this._def.items[a]||this._def.rest;return c?c._parse(new zn(n,o,n.path,a)):null}).filter(o=>!!o);return n.common.async?Promise.all(s).then(o=>Vr.mergeArray(r,o)):Vr.mergeArray(r,s)}get items(){return this._def.items}rest(e){return new t({...this._def,rest:e})}};cs.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new cs({items:t,typeName:$e.ZodTuple,rest:null,...Ae(e)})};var Pk=class t extends Be{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==se.object)return te(n,{code:G.invalid_type,expected:se.object,received:n.parsedType}),ke;let i=[],s=this._def.keyType,o=this._def.valueType;for(let a in n.data)i.push({key:s._parse(new zn(n,a,n.path,a)),value:o._parse(new zn(n,n.data[a],n.path,a)),alwaysSet:a in n.data});return n.common.async?Vr.mergeObjectAsync(r,i):Vr.mergeObjectSync(r,i)}get element(){return this._def.valueType}static create(e,r,n){return r instanceof Be?new t({keyType:e,valueType:r,typeName:$e.ZodRecord,...Ae(n)}):new t({keyType:Nc.create(),valueType:e,typeName:$e.ZodRecord,...Ae(r)})}},ep=class extends Be{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==se.map)return te(n,{code:G.invalid_type,expected:se.map,received:n.parsedType}),ke;let i=this._def.keyType,s=this._def.valueType,o=[...n.data.entries()].map(([a,c],u)=>({key:i._parse(new zn(n,a,n.path,[u,"key"])),value:s._parse(new zn(n,c,n.path,[u,"value"]))}));if(n.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let c of o){let u=await c.key,l=await c.value;if(u.status==="aborted"||l.status==="aborted")return ke;(u.status==="dirty"||l.status==="dirty")&&r.dirty(),a.set(u.value,l.value)}return{status:r.value,value:a}})}else{let a=new Map;for(let c of o){let u=c.key,l=c.value;if(u.status==="aborted"||l.status==="aborted")return ke;(u.status==="dirty"||l.status==="dirty")&&r.dirty(),a.set(u.value,l.value)}return{status:r.value,value:a}}}};ep.create=(t,e,r)=>new ep({valueType:e,keyType:t,typeName:$e.ZodMap,...Ae(r)});var tp=class t extends Be{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==se.set)return te(n,{code:G.invalid_type,expected:se.set,received:n.parsedType}),ke;let i=this._def;i.minSize!==null&&n.data.sizei.maxSize.value&&(te(n,{code:G.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),r.dirty());let s=this._def.valueType;function o(c){let u=new Set;for(let l of c){if(l.status==="aborted")return ke;l.status==="dirty"&&r.dirty(),u.add(l.value)}return{status:r.value,value:u}}let a=[...n.data.values()].map((c,u)=>s._parse(new zn(n,c,n.path,u)));return n.common.async?Promise.all(a).then(c=>o(c)):o(a)}min(e,r){return new t({...this._def,minSize:{value:e,message:pe.toString(r)}})}max(e,r){return new t({...this._def,maxSize:{value:e,message:pe.toString(r)}})}size(e,r){return this.min(e,r).max(e,r)}nonempty(e){return this.min(1,e)}};tp.create=(t,e)=>new tp({valueType:t,minSize:null,maxSize:null,typeName:$e.ZodSet,...Ae(e)});var Ck=class t extends Be{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==se.function)return te(r,{code:G.invalid_type,expected:se.function,received:r.parsedType}),ke;function n(a,c){return Ik({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Tk(),Vd].filter(u=>!!u),issueData:{code:G.invalid_arguments,argumentsError:c}})}function i(a,c){return Ik({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Tk(),Vd].filter(u=>!!u),issueData:{code:G.invalid_return_type,returnTypeError:c}})}let s={errorMap:r.common.contextualErrorMap},o=r.data;if(this._def.returns instanceof Ho){let a=this;return an(async function(...c){let u=new jn([]),l=await a._def.args.parseAsync(c,s).catch(m=>{throw u.addIssue(n(c,m)),u}),d=await Reflect.apply(o,this,l);return await a._def.returns._def.type.parseAsync(d,s).catch(m=>{throw u.addIssue(i(d,m)),u})})}else{let a=this;return an(function(...c){let u=a._def.args.safeParse(c,s);if(!u.success)throw new jn([n(c,u.error)]);let l=Reflect.apply(o,this,u.data),d=a._def.returns.safeParse(l,s);if(!d.success)throw new jn([i(l,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new t({...this._def,args:cs.create(e).rest(Bs.create())})}returns(e){return new t({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,r,n){return new t({args:e||cs.create([]).rest(Bs.create()),returns:r||Bs.create(),typeName:$e.ZodFunction,...Ae(n)})}},Lc=class extends Be{get schema(){return this._def.getter()}_parse(e){let{ctx:r}=this._processInputParams(e);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};Lc.create=(t,e)=>new Lc({getter:t,typeName:$e.ZodLazy,...Ae(e)});var Uc=class extends Be{_parse(e){if(e.data!==this._def.value){let r=this._getOrReturnCtx(e);return te(r,{received:r.data,code:G.invalid_literal,expected:this._def.value}),ke}return{status:"valid",value:e.data}}get value(){return this._def.value}};Uc.create=(t,e)=>new Uc({value:t,typeName:$e.ZodLiteral,...Ae(e)});function G2(t,e){return new qc({values:t,typeName:$e.ZodEnum,...Ae(e)})}var qc=class t extends Be{_parse(e){if(typeof e.data!="string"){let r=this._getOrReturnCtx(e),n=this._def.values;return te(r,{expected:ot.joinValues(n),received:r.parsedType,code:G.invalid_type}),ke}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let r=this._getOrReturnCtx(e),n=this._def.values;return te(r,{received:r.data,code:G.invalid_enum_value,options:n}),ke}return an(e.data)}get options(){return this._def.values}get enum(){let e={};for(let r of this._def.values)e[r]=r;return e}get Values(){let e={};for(let r of this._def.values)e[r]=r;return e}get Enum(){let e={};for(let r of this._def.values)e[r]=r;return e}extract(e,r=this._def){return t.create(e,{...this._def,...r})}exclude(e,r=this._def){return t.create(this.options.filter(n=>!e.includes(n)),{...this._def,...r})}};qc.create=G2;var Fc=class extends Be{_parse(e){let r=ot.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==se.string&&n.parsedType!==se.number){let i=ot.objectValues(r);return te(n,{expected:ot.joinValues(i),received:n.parsedType,code:G.invalid_type}),ke}if(this._cache||(this._cache=new Set(ot.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let i=ot.objectValues(r);return te(n,{received:n.data,code:G.invalid_enum_value,options:i}),ke}return an(e.data)}get enum(){return this._def.values}};Fc.create=(t,e)=>new Fc({values:t,typeName:$e.ZodNativeEnum,...Ae(e)});var Ho=class extends Be{unwrap(){return this._def.type}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==se.promise&&r.common.async===!1)return te(r,{code:G.invalid_type,expected:se.promise,received:r.parsedType}),ke;let n=r.parsedType===se.promise?r.data:Promise.resolve(r.data);return an(n.then(i=>this._def.type.parseAsync(i,{path:r.path,errorMap:r.common.contextualErrorMap})))}};Ho.create=(t,e)=>new Ho({type:t,typeName:$e.ZodPromise,...Ae(e)});var ii=class extends Be{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===$e.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:r,ctx:n}=this._processInputParams(e),i=this._def.effect||null,s={addIssue:o=>{te(n,o),o.fatal?r.abort():r.dirty()},get path(){return n.path}};if(s.addIssue=s.addIssue.bind(s),i.type==="preprocess"){let o=i.transform(n.data,s);if(n.common.async)return Promise.resolve(o).then(async a=>{if(r.value==="aborted")return ke;let c=await this._def.schema._parseAsync({data:a,path:n.path,parent:n});return c.status==="aborted"?ke:c.status==="dirty"||r.value==="dirty"?Hd(c.value):c});{if(r.value==="aborted")return ke;let a=this._def.schema._parseSync({data:o,path:n.path,parent:n});return a.status==="aborted"?ke:a.status==="dirty"||r.value==="dirty"?Hd(a.value):a}}if(i.type==="refinement"){let o=a=>{let c=i.refinement(a,s);if(n.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(n.common.async===!1){let a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?ke:(a.status==="dirty"&&r.dirty(),o(a.value),{status:r.value,value:a.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(a=>a.status==="aborted"?ke:(a.status==="dirty"&&r.dirty(),o(a.value).then(()=>({status:r.value,value:a.value}))))}if(i.type==="transform")if(n.common.async===!1){let o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!Ac(o))return ke;let a=i.transform(o.value,s);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:a}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>Ac(o)?Promise.resolve(i.transform(o.value,s)).then(a=>({status:r.value,value:a})):ke);ot.assertNever(i)}};ii.create=(t,e,r)=>new ii({schema:t,typeName:$e.ZodEffects,effect:e,...Ae(r)});ii.createWithPreprocess=(t,e,r)=>new ii({schema:e,effect:{type:"preprocess",transform:t},typeName:$e.ZodEffects,...Ae(r)});var ni=class extends Be{_parse(e){return this._getType(e)===se.undefined?an(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};ni.create=(t,e)=>new ni({innerType:t,typeName:$e.ZodOptional,...Ae(e)});var us=class extends Be{_parse(e){return this._getType(e)===se.null?an(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};us.create=(t,e)=>new us({innerType:t,typeName:$e.ZodNullable,...Ae(e)});var Hc=class extends Be{_parse(e){let{ctx:r}=this._processInputParams(e),n=r.data;return r.parsedType===se.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};Hc.create=(t,e)=>new Hc({innerType:t,typeName:$e.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...Ae(e)});var Zc=class extends Be{_parse(e){let{ctx:r}=this._processInputParams(e),n={...r,common:{...r.common,issues:[]}},i=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return Sg(i)?i.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new jn(n.common.issues)},input:n.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new jn(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};Zc.create=(t,e)=>new Zc({innerType:t,typeName:$e.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...Ae(e)});var rp=class extends Be{_parse(e){if(this._getType(e)!==se.nan){let n=this._getOrReturnCtx(e);return te(n,{code:G.invalid_type,expected:se.nan,received:n.parsedType}),ke}return{status:"valid",value:e.data}}};rp.create=t=>new rp({typeName:$e.ZodNaN,...Ae(t)});var wg=class extends Be{_parse(e){let{ctx:r}=this._processInputParams(e),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}},Eg=class t extends Be{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let s=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?ke:s.status==="dirty"?(r.dirty(),Hd(s.value)):this._def.out._parseAsync({data:s.value,path:n.path,parent:n})})();{let i=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?ke:i.status==="dirty"?(r.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:n.path,parent:n})}}static create(e,r){return new t({in:e,out:r,typeName:$e.ZodPipeline})}},Bc=class extends Be{_parse(e){let r=this._def.innerType._parse(e),n=i=>(Ac(i)&&(i.value=Object.freeze(i.value)),i);return Sg(r)?r.then(i=>n(i)):n(r)}unwrap(){return this._def.innerType}};Bc.create=(t,e)=>new Bc({innerType:t,typeName:$e.ZodReadonly,...Ae(e)});var bPe={object:bn.lazycreate},$e;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})($e||($e={}));var xPe=Nc.create,SPe=Gd.create,wPe=rp.create,EPe=Wd.create,kPe=Kd.create,$Pe=Jd.create,TPe=Xd.create,IPe=Mc.create,RPe=Dc.create,OPe=Yd.create,PPe=Bs.create,CPe=Pi.create,APe=Qd.create,NPe=Vs.create,MPe=bn.create,DPe=bn.strictCreate,jPe=jc.create,zPe=Rk.create,LPe=zc.create,UPe=cs.create,qPe=Pk.create,FPe=ep.create,HPe=tp.create,ZPe=Ck.create,BPe=Lc.create,VPe=Uc.create,GPe=qc.create,WPe=Fc.create,KPe=Ho.create,JPe=ii.create,XPe=ni.create,YPe=us.create,QPe=ii.createWithPreprocess,eCe=Eg.create,tCe=Object.freeze({status:"aborted"});function F(t,e,r){function n(a,c){var u;Object.defineProperty(a,"_zod",{value:a._zod??{},enumerable:!1}),(u=a._zod).traits??(u.traits=new Set),a._zod.traits.add(t),e(a,c);for(let l in o.prototype)l in a||Object.defineProperty(a,l,{value:o.prototype[l].bind(a)});a._zod.constr=o,a._zod.def=c}let i=r?.Parent??Object;class s extends i{}Object.defineProperty(s,"name",{value:t});function o(a){var c;let u=r?.Parent?new s:this;n(u,a),(c=u._zod).deferred??(c.deferred=[]);for(let l of u._zod.deferred)l();return u}return Object.defineProperty(o,"init",{value:n}),Object.defineProperty(o,Symbol.hasInstance,{value:a=>r?.Parent&&a instanceof r.Parent?!0:a?._zod?.traits?.has(t)}),Object.defineProperty(o,"name",{value:t}),o}var Zo=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Ak={};function ls(t){return t&&Object.assign(Ak,t),Ak}var Mt={};p2(Mt,{unwrapMessage:()=>Zd,stringifyPrimitive:()=>Wk,required:()=>_le,randomString:()=>cle,propertyKeyTypes:()=>Y2,promiseAllObject:()=>ale,primitiveTypes:()=>dle,prefixIssues:()=>Zs,pick:()=>fle,partial:()=>yle,optionalKeys:()=>Q2,omit:()=>hle,numKeys:()=>ule,nullish:()=>Ng,normalizeParams:()=>Se,merge:()=>vle,jsonStringifyReplacer:()=>K2,joinValues:()=>Nk,issue:()=>t6,isPlainObject:()=>ip,isObject:()=>np,getSizableOrigin:()=>ble,getParsedType:()=>lle,getLengthableOrigin:()=>Dg,getEnumValues:()=>W2,getElementAtPath:()=>ole,floatSafeRemainder:()=>J2,finalizeIssue:()=>ds,extend:()=>gle,escapeRegex:()=>Xc,esc:()=>Pc,defineLazy:()=>Dt,createTransparentProxy:()=>ple,clone:()=>Ws,cleanRegex:()=>Mg,cleanEnum:()=>xle,captureStackTrace:()=>Gk,cached:()=>Ag,assignProp:()=>Vk,assertNotEqual:()=>rle,assertNever:()=>ile,assertIs:()=>nle,assertEqual:()=>tle,assert:()=>sle,allowsEval:()=>X2,aborted:()=>Cc,NUMBER_FORMAT_RANGES:()=>e6,Class:()=>Mk,BIGINT_FORMAT_RANGES:()=>mle});function tle(t){return t}function rle(t){return t}function nle(t){}function ile(t){throw new Error}function sle(t){}function W2(t){let e=Object.values(t).filter(n=>typeof n=="number");return Object.entries(t).filter(([n,i])=>e.indexOf(+n)===-1).map(([n,i])=>i)}function Nk(t,e="|"){return t.map(r=>Wk(r)).join(e)}function K2(t,e){return typeof e=="bigint"?e.toString():e}function Ag(t){return{get value(){{let r=t();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function Ng(t){return t==null}function Mg(t){let e=t.startsWith("^")?1:0,r=t.endsWith("$")?t.length-1:t.length;return t.slice(e,r)}function J2(t,e){let r=(t.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,i=r>n?r:n,s=Number.parseInt(t.toFixed(i).replace(".","")),o=Number.parseInt(e.toFixed(i).replace(".",""));return s%o/10**i}function Dt(t,e,r){Object.defineProperty(t,e,{get(){{let i=r();return t[e]=i,i}throw new Error("cached value already set")},set(i){Object.defineProperty(t,e,{value:i})},configurable:!0})}function Vk(t,e,r){Object.defineProperty(t,e,{value:r,writable:!0,enumerable:!0,configurable:!0})}function ole(t,e){return e?e.reduce((r,n)=>r?.[n],t):t}function ale(t){let e=Object.keys(t),r=e.map(n=>t[n]);return Promise.all(r).then(n=>{let i={};for(let s=0;s{};function np(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}var X2=Ag(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let t=Function;return new t(""),!0}catch{return!1}});function ip(t){if(np(t)===!1)return!1;let e=t.constructor;if(e===void 0)return!0;let r=e.prototype;return!(np(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function ule(t){let e=0;for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&e++;return e}var lle=t=>{let e=typeof t;switch(e){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(t)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(t)?"array":t===null?"null":t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?"promise":typeof Map<"u"&&t instanceof Map?"map":typeof Set<"u"&&t instanceof Set?"set":typeof Date<"u"&&t instanceof Date?"date":typeof File<"u"&&t instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${e}`)}},Y2=new Set(["string","number","symbol"]),dle=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Xc(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ws(t,e,r){let n=new t._zod.constr(e??t._zod.def);return(!e||r?.parent)&&(n._zod.parent=t),n}function Se(t){let e=t;if(!e)return{};if(typeof e=="string")return{error:()=>e};if(e?.message!==void 0){if(e?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");e.error=e.message}return delete e.message,typeof e.error=="string"?{...e,error:()=>e.error}:e}function ple(t){let e;return new Proxy({},{get(r,n,i){return e??(e=t()),Reflect.get(e,n,i)},set(r,n,i,s){return e??(e=t()),Reflect.set(e,n,i,s)},has(r,n){return e??(e=t()),Reflect.has(e,n)},deleteProperty(r,n){return e??(e=t()),Reflect.deleteProperty(e,n)},ownKeys(r){return e??(e=t()),Reflect.ownKeys(e)},getOwnPropertyDescriptor(r,n){return e??(e=t()),Reflect.getOwnPropertyDescriptor(e,n)},defineProperty(r,n,i){return e??(e=t()),Reflect.defineProperty(e,n,i)}})}function Wk(t){return typeof t=="bigint"?t.toString()+"n":typeof t=="string"?`"${t}"`:`${t}`}function Q2(t){return Object.keys(t).filter(e=>t[e]._zod.optin==="optional"&&t[e]._zod.optout==="optional")}var e6={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},mle={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function fle(t,e){let r={},n=t._zod.def;for(let i in e){if(!(i in n.shape))throw new Error(`Unrecognized key: "${i}"`);e[i]&&(r[i]=n.shape[i])}return Ws(t,{...t._zod.def,shape:r,checks:[]})}function hle(t,e){let r={...t._zod.def.shape},n=t._zod.def;for(let i in e){if(!(i in n.shape))throw new Error(`Unrecognized key: "${i}"`);e[i]&&delete r[i]}return Ws(t,{...t._zod.def,shape:r,checks:[]})}function gle(t,e){if(!ip(e))throw new Error("Invalid input to extend: expected a plain object");let r={...t._zod.def,get shape(){let n={...t._zod.def.shape,...e};return Vk(this,"shape",n),n},checks:[]};return Ws(t,r)}function vle(t,e){return Ws(t,{...t._zod.def,get shape(){let r={...t._zod.def.shape,...e._zod.def.shape};return Vk(this,"shape",r),r},catchall:e._zod.def.catchall,checks:[]})}function yle(t,e,r){let n=e._zod.def.shape,i={...n};if(r)for(let s in r){if(!(s in n))throw new Error(`Unrecognized key: "${s}"`);r[s]&&(i[s]=t?new t({type:"optional",innerType:n[s]}):n[s])}else for(let s in n)i[s]=t?new t({type:"optional",innerType:n[s]}):n[s];return Ws(e,{...e._zod.def,shape:i,checks:[]})}function _le(t,e,r){let n=e._zod.def.shape,i={...n};if(r)for(let s in r){if(!(s in i))throw new Error(`Unrecognized key: "${s}"`);r[s]&&(i[s]=new t({type:"nonoptional",innerType:n[s]}))}else for(let s in n)i[s]=new t({type:"nonoptional",innerType:n[s]});return Ws(e,{...e._zod.def,shape:i,checks:[]})}function Cc(t,e=0){for(let r=e;r{var n;return(n=r).path??(n.path=[]),r.path.unshift(t),r})}function Zd(t){return typeof t=="string"?t:t?.message}function ds(t,e,r){let n={...t,path:t.path??[]};if(!t.message){let i=Zd(t.inst?._zod.def?.error?.(t))??Zd(e?.error?.(t))??Zd(r.customError?.(t))??Zd(r.localeError?.(t))??"Invalid input";n.message=i}return delete n.inst,delete n.continue,e?.reportInput||delete n.input,n}function ble(t){return t instanceof Set?"set":t instanceof Map?"map":t instanceof File?"file":"unknown"}function Dg(t){return Array.isArray(t)?"array":typeof t=="string"?"string":"unknown"}function t6(...t){let[e,r,n]=t;return typeof e=="string"?{message:e,code:"custom",input:r,inst:n}:{...e}}function xle(t){return Object.entries(t).filter(([e,r])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}var Mk=class{constructor(...e){}},r6=(t,e)=>{t.name="$ZodError",Object.defineProperty(t,"_zod",{value:t._zod,enumerable:!1}),Object.defineProperty(t,"issues",{value:e,enumerable:!1}),Object.defineProperty(t,"message",{get(){return JSON.stringify(e,K2,2)},enumerable:!0})},n6=F("$ZodError",r6),i6=F("$ZodError",r6,{Parent:Error});function Sle(t,e=r=>r.message){let r={},n=[];for(let i of t.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(e(i))):n.push(e(i));return{formErrors:n,fieldErrors:r}}function wle(t,e){let r=e||function(s){return s.message},n={_errors:[]},i=s=>{for(let o of s.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(a=>i({issues:a}));else if(o.code==="invalid_key")i({issues:o.issues});else if(o.code==="invalid_element")i({issues:o.issues});else if(o.path.length===0)n._errors.push(r(o));else{let a=n,c=0;for(;c(e,r,n,i)=>{let s=n?Object.assign(n,{async:!1}):{async:!1},o=e._zod.run({value:r,issues:[]},s);if(o instanceof Promise)throw new Zo;if(o.issues.length){let a=new(i?.Err??t)(o.issues.map(c=>ds(c,s,ls())));throw Gk(a,i?.callee),a}return o.value};var kle=t=>async(e,r,n,i)=>{let s=n?Object.assign(n,{async:!0}):{async:!0},o=e._zod.run({value:r,issues:[]},s);if(o instanceof Promise&&(o=await o),o.issues.length){let a=new(i?.Err??t)(o.issues.map(c=>ds(c,s,ls())));throw Gk(a,i?.callee),a}return o.value};var s6=t=>(e,r,n)=>{let i=n?{...n,async:!1}:{async:!1},s=e._zod.run({value:r,issues:[]},i);if(s instanceof Promise)throw new Zo;return s.issues.length?{success:!1,error:new(t??n6)(s.issues.map(o=>ds(o,i,ls())))}:{success:!0,data:s.value}},$le=s6(i6),o6=t=>async(e,r,n)=>{let i=n?Object.assign(n,{async:!0}):{async:!0},s=e._zod.run({value:r,issues:[]},i);return s instanceof Promise&&(s=await s),s.issues.length?{success:!1,error:new t(s.issues.map(o=>ds(o,i,ls())))}:{success:!0,data:s.value}},Tle=o6(i6),Ile=/^[cC][^\s-]{8,}$/,Rle=/^[0-9a-z]+$/,Ole=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Ple=/^[0-9a-vA-V]{20}$/,Cle=/^[A-Za-z0-9]{27}$/,Ale=/^[a-zA-Z0-9_-]{21}$/,Nle=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Mle=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,VU=t=>t?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${t}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/,Dle=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,jle="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function zle(){return new RegExp(jle,"u")}var Lle=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Ule=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,qle=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Fle=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Hle=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,a6=/^[A-Za-z0-9_-]*$/,Zle=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,Ble=/^\+(?:[0-9]){6,14}[0-9]$/,c6="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Vle=new RegExp(`^${c6}$`);function u6(t){let e="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof t.precision=="number"?t.precision===-1?`${e}`:t.precision===0?`${e}:[0-5]\\d`:`${e}:[0-5]\\d\\.\\d{${t.precision}}`:`${e}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Gle(t){return new RegExp(`^${u6(t)}$`)}function Wle(t){let e=u6({precision:t.precision}),r=["Z"];t.local&&r.push(""),t.offset&&r.push("([+-]\\d{2}:\\d{2})");let n=`${e}(?:${r.join("|")})`;return new RegExp(`^${c6}T(?:${n})$`)}var Kle=t=>{let e=t?`[\\s\\S]{${t?.minimum??0},${t?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${e}$`)},Jle=/^\d+$/,Xle=/^-?\d+(?:\.\d+)?/i,Yle=/true|false/i,Qle=/null/i,ede=/^[^A-Z]*$/,tde=/^[^a-z]*$/,cn=F("$ZodCheck",(t,e)=>{var r;t._zod??(t._zod={}),t._zod.def=e,(r=t._zod).onattach??(r.onattach=[])}),l6={number:"number",bigint:"bigint",object:"date"},d6=F("$ZodCheckLessThan",(t,e)=>{cn.init(t,e);let r=l6[typeof e.value];t._zod.onattach.push(n=>{let i=n._zod.bag,s=(e.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;e.value{(e.inclusive?n.value<=e.value:n.value{cn.init(t,e);let r=l6[typeof e.value];t._zod.onattach.push(n=>{let i=n._zod.bag,s=(e.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;e.value>s&&(e.inclusive?i.minimum=e.value:i.exclusiveMinimum=e.value)}),t._zod.check=n=>{(e.inclusive?n.value>=e.value:n.value>e.value)||n.issues.push({origin:r,code:"too_small",minimum:e.value,input:n.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),rde=F("$ZodCheckMultipleOf",(t,e)=>{cn.init(t,e),t._zod.onattach.push(r=>{var n;(n=r._zod.bag).multipleOf??(n.multipleOf=e.value)}),t._zod.check=r=>{if(typeof r.value!=typeof e.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%e.value===BigInt(0):J2(r.value,e.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:e.value,input:r.value,inst:t,continue:!e.abort})}}),nde=F("$ZodCheckNumberFormat",(t,e)=>{cn.init(t,e),e.format=e.format||"float64";let r=e.format?.includes("int"),n=r?"int":"number",[i,s]=e6[e.format];t._zod.onattach.push(o=>{let a=o._zod.bag;a.format=e.format,a.minimum=i,a.maximum=s,r&&(a.pattern=Jle)}),t._zod.check=o=>{let a=o.value;if(r){if(!Number.isInteger(a)){o.issues.push({expected:n,format:e.format,code:"invalid_type",input:a,inst:t});return}if(!Number.isSafeInteger(a)){a>0?o.issues.push({input:a,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:n,continue:!e.abort}):o.issues.push({input:a,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:n,continue:!e.abort});return}}as&&o.issues.push({origin:"number",input:a,code:"too_big",maximum:s,inst:t})}}),ide=F("$ZodCheckMaxLength",(t,e)=>{cn.init(t,e),t._zod.when=r=>{let n=r.value;return!Ng(n)&&n.length!==void 0},t._zod.onattach.push(r=>{let n=r._zod.bag.maximum??Number.POSITIVE_INFINITY;e.maximum{let n=r.value;if(n.length<=e.maximum)return;let s=Dg(n);r.issues.push({origin:s,code:"too_big",maximum:e.maximum,inclusive:!0,input:n,inst:t,continue:!e.abort})}}),sde=F("$ZodCheckMinLength",(t,e)=>{cn.init(t,e),t._zod.when=r=>{let n=r.value;return!Ng(n)&&n.length!==void 0},t._zod.onattach.push(r=>{let n=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;e.minimum>n&&(r._zod.bag.minimum=e.minimum)}),t._zod.check=r=>{let n=r.value;if(n.length>=e.minimum)return;let s=Dg(n);r.issues.push({origin:s,code:"too_small",minimum:e.minimum,inclusive:!0,input:n,inst:t,continue:!e.abort})}}),ode=F("$ZodCheckLengthEquals",(t,e)=>{cn.init(t,e),t._zod.when=r=>{let n=r.value;return!Ng(n)&&n.length!==void 0},t._zod.onattach.push(r=>{let n=r._zod.bag;n.minimum=e.length,n.maximum=e.length,n.length=e.length}),t._zod.check=r=>{let n=r.value,i=n.length;if(i===e.length)return;let s=Dg(n),o=i>e.length;r.issues.push({origin:s,...o?{code:"too_big",maximum:e.length}:{code:"too_small",minimum:e.length},inclusive:!0,exact:!0,input:r.value,inst:t,continue:!e.abort})}}),jg=F("$ZodCheckStringFormat",(t,e)=>{var r,n;cn.init(t,e),t._zod.onattach.push(i=>{let s=i._zod.bag;s.format=e.format,e.pattern&&(s.patterns??(s.patterns=new Set),s.patterns.add(e.pattern))}),e.pattern?(r=t._zod).check??(r.check=i=>{e.pattern.lastIndex=0,!e.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:e.format,input:i.value,...e.pattern?{pattern:e.pattern.toString()}:{},inst:t,continue:!e.abort})}):(n=t._zod).check??(n.check=()=>{})}),ade=F("$ZodCheckRegex",(t,e)=>{jg.init(t,e),t._zod.check=r=>{e.pattern.lastIndex=0,!e.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:e.pattern.toString(),inst:t,continue:!e.abort})}}),cde=F("$ZodCheckLowerCase",(t,e)=>{e.pattern??(e.pattern=ede),jg.init(t,e)}),ude=F("$ZodCheckUpperCase",(t,e)=>{e.pattern??(e.pattern=tde),jg.init(t,e)}),lde=F("$ZodCheckIncludes",(t,e)=>{cn.init(t,e);let r=Xc(e.includes),n=new RegExp(typeof e.position=="number"?`^.{${e.position}}${r}`:r);e.pattern=n,t._zod.onattach.push(i=>{let s=i._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(n)}),t._zod.check=i=>{i.value.includes(e.includes,e.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:e.includes,input:i.value,inst:t,continue:!e.abort})}}),dde=F("$ZodCheckStartsWith",(t,e)=>{cn.init(t,e);let r=new RegExp(`^${Xc(e.prefix)}.*`);e.pattern??(e.pattern=r),t._zod.onattach.push(n=>{let i=n._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(r)}),t._zod.check=n=>{n.value.startsWith(e.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:e.prefix,input:n.value,inst:t,continue:!e.abort})}}),pde=F("$ZodCheckEndsWith",(t,e)=>{cn.init(t,e);let r=new RegExp(`.*${Xc(e.suffix)}$`);e.pattern??(e.pattern=r),t._zod.onattach.push(n=>{let i=n._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(r)}),t._zod.check=n=>{n.value.endsWith(e.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:e.suffix,input:n.value,inst:t,continue:!e.abort})}}),mde=F("$ZodCheckOverwrite",(t,e)=>{cn.init(t,e),t._zod.check=r=>{r.value=e.tx(r.value)}}),Dk=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let n=e.split(` +`).filter(o=>o),i=Math.min(...n.map(o=>o.length-o.trimStart().length)),s=n.map(o=>o.slice(i)).map(o=>" ".repeat(this.indent*2)+o);for(let o of s)this.content.push(o)}compile(){let e=Function,r=this?.args,i=[...(this?.content??[""]).map(s=>` ${s}`)];return new e(...r,i.join(` +`))}},fde={major:4,minor:0,patch:0},jt=F("$ZodType",(t,e)=>{var r;t??(t={}),t._zod.def=e,t._zod.bag=t._zod.bag||{},t._zod.version=fde;let n=[...t._zod.def.checks??[]];t._zod.traits.has("$ZodCheck")&&n.unshift(t);for(let i of n)for(let s of i._zod.onattach)s(t);if(n.length===0)(r=t._zod).deferred??(r.deferred=[]),t._zod.deferred?.push(()=>{t._zod.run=t._zod.parse});else{let i=(s,o,a)=>{let c=Cc(s),u;for(let l of o){if(l._zod.when){if(!l._zod.when(s))continue}else if(c)continue;let d=s.issues.length,p=l._zod.check(s);if(p instanceof Promise&&a?.async===!1)throw new Zo;if(u||p instanceof Promise)u=(u??Promise.resolve()).then(async()=>{await p,s.issues.length!==d&&(c||(c=Cc(s,d)))});else{if(s.issues.length===d)continue;c||(c=Cc(s,d))}}return u?u.then(()=>s):s};t._zod.run=(s,o)=>{let a=t._zod.parse(s,o);if(a instanceof Promise){if(o.async===!1)throw new Zo;return a.then(c=>i(c,n,o))}return i(a,n,o)}}t["~standard"]={validate:i=>{try{let s=$le(t,i);return s.success?{value:s.data}:{issues:s.error?.issues}}catch{return Tle(t,i).then(o=>o.success?{value:o.data}:{issues:o.error?.issues})}},vendor:"zod",version:1}}),Kk=F("$ZodString",(t,e)=>{jt.init(t,e),t._zod.pattern=[...t?._zod.bag?.patterns??[]].pop()??Kle(t._zod.bag),t._zod.parse=(r,n)=>{if(e.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:t}),r}}),Ut=F("$ZodStringFormat",(t,e)=>{jg.init(t,e),Kk.init(t,e)}),hde=F("$ZodGUID",(t,e)=>{e.pattern??(e.pattern=Mle),Ut.init(t,e)}),gde=F("$ZodUUID",(t,e)=>{if(e.version){let n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[e.version];if(n===void 0)throw new Error(`Invalid UUID version: "${e.version}"`);e.pattern??(e.pattern=VU(n))}else e.pattern??(e.pattern=VU());Ut.init(t,e)}),vde=F("$ZodEmail",(t,e)=>{e.pattern??(e.pattern=Dle),Ut.init(t,e)}),yde=F("$ZodURL",(t,e)=>{Ut.init(t,e),t._zod.check=r=>{try{let n=r.value,i=new URL(n),s=i.href;e.hostname&&(e.hostname.lastIndex=0,e.hostname.test(i.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:Zle.source,input:r.value,inst:t,continue:!e.abort})),e.protocol&&(e.protocol.lastIndex=0,e.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:e.protocol.source,input:r.value,inst:t,continue:!e.abort})),!n.endsWith("/")&&s.endsWith("/")?r.value=s.slice(0,-1):r.value=s;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:t,continue:!e.abort})}}}),_de=F("$ZodEmoji",(t,e)=>{e.pattern??(e.pattern=zle()),Ut.init(t,e)}),bde=F("$ZodNanoID",(t,e)=>{e.pattern??(e.pattern=Ale),Ut.init(t,e)}),xde=F("$ZodCUID",(t,e)=>{e.pattern??(e.pattern=Ile),Ut.init(t,e)}),Sde=F("$ZodCUID2",(t,e)=>{e.pattern??(e.pattern=Rle),Ut.init(t,e)}),wde=F("$ZodULID",(t,e)=>{e.pattern??(e.pattern=Ole),Ut.init(t,e)}),Ede=F("$ZodXID",(t,e)=>{e.pattern??(e.pattern=Ple),Ut.init(t,e)}),kde=F("$ZodKSUID",(t,e)=>{e.pattern??(e.pattern=Cle),Ut.init(t,e)}),$de=F("$ZodISODateTime",(t,e)=>{e.pattern??(e.pattern=Wle(e)),Ut.init(t,e)}),Tde=F("$ZodISODate",(t,e)=>{e.pattern??(e.pattern=Vle),Ut.init(t,e)}),Ide=F("$ZodISOTime",(t,e)=>{e.pattern??(e.pattern=Gle(e)),Ut.init(t,e)}),Rde=F("$ZodISODuration",(t,e)=>{e.pattern??(e.pattern=Nle),Ut.init(t,e)}),Ode=F("$ZodIPv4",(t,e)=>{e.pattern??(e.pattern=Lle),Ut.init(t,e),t._zod.onattach.push(r=>{let n=r._zod.bag;n.format="ipv4"})}),Pde=F("$ZodIPv6",(t,e)=>{e.pattern??(e.pattern=Ule),Ut.init(t,e),t._zod.onattach.push(r=>{let n=r._zod.bag;n.format="ipv6"}),t._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:t,continue:!e.abort})}}}),Cde=F("$ZodCIDRv4",(t,e)=>{e.pattern??(e.pattern=qle),Ut.init(t,e)}),Ade=F("$ZodCIDRv6",(t,e)=>{e.pattern??(e.pattern=Fle),Ut.init(t,e),t._zod.check=r=>{let[n,i]=r.value.split("/");try{if(!i)throw new Error;let s=Number(i);if(`${s}`!==i)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${n}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:t,continue:!e.abort})}}});function m6(t){if(t==="")return!0;if(t.length%4!==0)return!1;try{return atob(t),!0}catch{return!1}}var Nde=F("$ZodBase64",(t,e)=>{e.pattern??(e.pattern=Hle),Ut.init(t,e),t._zod.onattach.push(r=>{r._zod.bag.contentEncoding="base64"}),t._zod.check=r=>{m6(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:t,continue:!e.abort})}});function Mde(t){if(!a6.test(t))return!1;let e=t.replace(/[-_]/g,n=>n==="-"?"+":"/"),r=e.padEnd(Math.ceil(e.length/4)*4,"=");return m6(r)}var Dde=F("$ZodBase64URL",(t,e)=>{e.pattern??(e.pattern=a6),Ut.init(t,e),t._zod.onattach.push(r=>{r._zod.bag.contentEncoding="base64url"}),t._zod.check=r=>{Mde(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:t,continue:!e.abort})}}),jde=F("$ZodE164",(t,e)=>{e.pattern??(e.pattern=Ble),Ut.init(t,e)});function zde(t,e=null){try{let r=t.split(".");if(r.length!==3)return!1;let[n]=r;if(!n)return!1;let i=JSON.parse(atob(n));return!("typ"in i&&i?.typ!=="JWT"||!i.alg||e&&(!("alg"in i)||i.alg!==e))}catch{return!1}}var Lde=F("$ZodJWT",(t,e)=>{Ut.init(t,e),t._zod.check=r=>{zde(r.value,e.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:t,continue:!e.abort})}}),f6=F("$ZodNumber",(t,e)=>{jt.init(t,e),t._zod.pattern=t._zod.bag.pattern??Xle,t._zod.parse=(r,n)=>{if(e.coerce)try{r.value=Number(r.value)}catch{}let i=r.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return r;let s=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:i,inst:t,...s?{received:s}:{}}),r}}),Ude=F("$ZodNumber",(t,e)=>{nde.init(t,e),f6.init(t,e)}),qde=F("$ZodBoolean",(t,e)=>{jt.init(t,e),t._zod.pattern=Yle,t._zod.parse=(r,n)=>{if(e.coerce)try{r.value=!!r.value}catch{}let i=r.value;return typeof i=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:t}),r}}),Fde=F("$ZodNull",(t,e)=>{jt.init(t,e),t._zod.pattern=Qle,t._zod.values=new Set([null]),t._zod.parse=(r,n)=>{let i=r.value;return i===null||r.issues.push({expected:"null",code:"invalid_type",input:i,inst:t}),r}}),Hde=F("$ZodUnknown",(t,e)=>{jt.init(t,e),t._zod.parse=r=>r}),Zde=F("$ZodNever",(t,e)=>{jt.init(t,e),t._zod.parse=(r,n)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:t}),r)});function GU(t,e,r){t.issues.length&&e.issues.push(...Zs(r,t.issues)),e.value[r]=t.value}var Bde=F("$ZodArray",(t,e)=>{jt.init(t,e),t._zod.parse=(r,n)=>{let i=r.value;if(!Array.isArray(i))return r.issues.push({expected:"array",code:"invalid_type",input:i,inst:t}),r;r.value=Array(i.length);let s=[];for(let o=0;oGU(u,r,o))):GU(c,r,o)}return s.length?Promise.all(s).then(()=>r):r}});function gg(t,e,r){t.issues.length&&e.issues.push(...Zs(r,t.issues)),e.value[r]=t.value}function WU(t,e,r,n){t.issues.length?n[r]===void 0?r in n?e.value[r]=void 0:e.value[r]=t.value:e.issues.push(...Zs(r,t.issues)):t.value===void 0?r in n&&(e.value[r]=void 0):e.value[r]=t.value}var Vde=F("$ZodObject",(t,e)=>{jt.init(t,e);let r=Ag(()=>{let d=Object.keys(e.shape);for(let m of d)if(!(e.shape[m]instanceof jt))throw new Error(`Invalid element at key "${m}": expected a Zod schema`);let p=Q2(e.shape);return{shape:e.shape,keys:d,keySet:new Set(d),numKeys:d.length,optionalKeys:new Set(p)}});Dt(t._zod,"propValues",()=>{let d=e.shape,p={};for(let m in d){let f=d[m]._zod;if(f.values){p[m]??(p[m]=new Set);for(let g of f.values)p[m].add(g)}}return p});let n=d=>{let p=new Dk(["shape","payload","ctx"]),m=r.value,f=x=>{let b=Pc(x);return`shape[${b}]._zod.run({ value: input[${b}], issues: [] }, ctx)`};p.write("const input = payload.value;");let g=Object.create(null),h=0;for(let x of m.keys)g[x]=`key_${h++}`;p.write("const newResult = {}");for(let x of m.keys)if(m.optionalKeys.has(x)){let b=g[x];p.write(`const ${b} = ${f(x)};`);let _=Pc(x);p.write(` + if (${b}.issues.length) { + if (input[${_}] === undefined) { + if (${_} in input) { + newResult[${_}] = undefined; } } else { payload.issues = payload.issues.concat( - ${id}.issues.map((iss) => ({ + ${b}.issues.map((iss) => ({ ...iss, - path: iss.path ? [${k}, ...iss.path] : [${k}], + path: iss.path ? [${_}, ...iss.path] : [${_}], })) ); } - } else if (${id}.value === undefined) { - if (${k} in input) newResult[${k}] = undefined; + } else if (${b}.value === undefined) { + if (${_} in input) newResult[${_}] = undefined; } else { - newResult[${k}] = ${id}.value; + newResult[${_}] = ${b}.value; } - `); - } else { - const id = ids[key]; - doc2.write(`const ${id} = ${parseStr(key)};`); - doc2.write(` - if (${id}.issues.length) payload.issues = payload.issues.concat(${id}.issues.map(iss => ({ + `)}else{let b=g[x];p.write(`const ${b} = ${f(x)};`),p.write(` + if (${b}.issues.length) payload.issues = payload.issues.concat(${b}.issues.map(iss => ({ ...iss, - path: iss.path ? [${esc2(key)}, ...iss.path] : [${esc2(key)}] - })));`); - doc2.write(`newResult[${esc2(key)}] = ${id}.value`); - } - } - doc2.write(`payload.value = newResult;`); - doc2.write(`return payload;`); - const fn = doc2.compile(); - return (payload, ctx) => fn(shape, payload, ctx); - }; - let fastpass; - const isObject3 = isObject22; - const jit = !globalConfig2.jitless; - const allowsEval22 = allowsEval2; - const fastEnabled = jit && allowsEval22.value; - const catchall = def.catchall; - let value; - inst._zod.parse = (payload, ctx) => { - value ?? (value = _normalized.value); - const input = payload.value; - if (!isObject3(input)) { - payload.issues.push({ - expected: "object", - code: "invalid_type", - input, - inst - }); - return payload; - } - const proms = []; - if (jit && fastEnabled && ctx?.async === false && ctx.jitless !== true) { - if (!fastpass) - fastpass = generateFastpass(def.shape); - payload = fastpass(payload, ctx); - } else { - payload.value = {}; - const shape = value.shape; - for (const key of value.keys) { - const el = shape[key]; - const r = el._zod.run({ value: input[key], issues: [] }, ctx); - const isOptional = el._zod.optin === "optional" && el._zod.optout === "optional"; - if (r instanceof Promise) { - proms.push(r.then((r2) => isOptional ? handleOptionalObjectResult(r2, payload, key, input) : handleObjectResult(r2, payload, key))); - } else if (isOptional) { - handleOptionalObjectResult(r, payload, key, input); - } else { - handleObjectResult(r, payload, key); - } - } - } - if (!catchall) { - return proms.length ? Promise.all(proms).then(() => payload) : payload; - } - const unrecognized = []; - const keySet = value.keySet; - const _catchall = catchall._zod; - const t = _catchall.def.type; - for (const key of Object.keys(input)) { - if (keySet.has(key)) - continue; - if (t === "never") { - unrecognized.push(key); - continue; - } - const r = _catchall.run({ value: input[key], issues: [] }, ctx); - if (r instanceof Promise) { - proms.push(r.then((r2) => handleObjectResult(r2, payload, key))); - } else { - handleObjectResult(r, payload, key); - } - } - if (unrecognized.length) { - payload.issues.push({ - code: "unrecognized_keys", - keys: unrecognized, - input, - inst - }); - } - if (!proms.length) - return payload; - return Promise.all(proms).then(() => { - return payload; - }); - }; -}); -function handleUnionResults2(results, final, inst, ctx) { - for (const result of results) { - if (result.issues.length === 0) { - final.value = result.value; - return final; - } - } - final.issues.push({ - code: "invalid_union", - input: final.value, - inst, - errors: results.map((result) => result.issues.map((iss) => finalizeIssue2(iss, ctx, config2()))) - }); - return final; -} -var $ZodUnion2 = /* @__PURE__ */ $constructor2("$ZodUnion", (inst, def) => { - $ZodType2.init(inst, def); - defineLazy2(inst._zod, "optin", () => def.options.some((o) => o._zod.optin === "optional") ? "optional" : undefined); - defineLazy2(inst._zod, "optout", () => def.options.some((o) => o._zod.optout === "optional") ? "optional" : undefined); - defineLazy2(inst._zod, "values", () => { - if (def.options.every((o) => o._zod.values)) { - return new Set(def.options.flatMap((option) => Array.from(option._zod.values))); - } - return; - }); - defineLazy2(inst._zod, "pattern", () => { - if (def.options.every((o) => o._zod.pattern)) { - const patterns = def.options.map((o) => o._zod.pattern); - return new RegExp(`^(${patterns.map((p) => cleanRegex2(p.source)).join("|")})$`); - } - return; - }); - inst._zod.parse = (payload, ctx) => { - let async = false; - const results = []; - for (const option of def.options) { - const result = option._zod.run({ - value: payload.value, - issues: [] - }, ctx); - if (result instanceof Promise) { - results.push(result); - async = true; - } else { - if (result.issues.length === 0) - return result; - results.push(result); - } - } - if (!async) - return handleUnionResults2(results, payload, inst, ctx); - return Promise.all(results).then((results2) => { - return handleUnionResults2(results2, payload, inst, ctx); - }); - }; -}); -var $ZodDiscriminatedUnion2 = /* @__PURE__ */ $constructor2("$ZodDiscriminatedUnion", (inst, def) => { - $ZodUnion2.init(inst, def); - const _super = inst._zod.parse; - defineLazy2(inst._zod, "propValues", () => { - const propValues = {}; - for (const option of def.options) { - const pv = option._zod.propValues; - if (!pv || Object.keys(pv).length === 0) - throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(option)}"`); - for (const [k, v] of Object.entries(pv)) { - if (!propValues[k]) - propValues[k] = new Set; - for (const val of v) { - propValues[k].add(val); - } - } - } - return propValues; - }); - const disc = cached2(() => { - const opts = def.options; - const map2 = new Map; - for (const o of opts) { - const values = o._zod.propValues[def.discriminator]; - if (!values || values.size === 0) - throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(o)}"`); - for (const v of values) { - if (map2.has(v)) { - throw new Error(`Duplicate discriminator value "${String(v)}"`); - } - map2.set(v, o); - } - } - return map2; - }); - inst._zod.parse = (payload, ctx) => { - const input = payload.value; - if (!isObject22(input)) { - payload.issues.push({ - code: "invalid_type", - expected: "object", - input, - inst - }); - return payload; - } - const opt = disc.value.get(input?.[def.discriminator]); - if (opt) { - return opt._zod.run(payload, ctx); - } - if (def.unionFallback) { - return _super(payload, ctx); - } - payload.issues.push({ - code: "invalid_union", - errors: [], - note: "No matching discriminator", - input, - path: [def.discriminator], - inst - }); - return payload; - }; -}); -var $ZodIntersection2 = /* @__PURE__ */ $constructor2("$ZodIntersection", (inst, def) => { - $ZodType2.init(inst, def); - inst._zod.parse = (payload, ctx) => { - const input = payload.value; - const left = def.left._zod.run({ value: input, issues: [] }, ctx); - const right = def.right._zod.run({ value: input, issues: [] }, ctx); - const async = left instanceof Promise || right instanceof Promise; - if (async) { - return Promise.all([left, right]).then(([left2, right2]) => { - return handleIntersectionResults2(payload, left2, right2); - }); - } - return handleIntersectionResults2(payload, left, right); - }; -}); -function mergeValues22(a, b) { - if (a === b) { - return { valid: true, data: a }; - } - if (a instanceof Date && b instanceof Date && +a === +b) { - return { valid: true, data: a }; - } - if (isPlainObject3(a) && isPlainObject3(b)) { - const bKeys = Object.keys(b); - const sharedKeys = Object.keys(a).filter((key) => bKeys.indexOf(key) !== -1); - const newObj = { ...a, ...b }; - for (const key of sharedKeys) { - const sharedValue = mergeValues22(a[key], b[key]); - if (!sharedValue.valid) { - return { - valid: false, - mergeErrorPath: [key, ...sharedValue.mergeErrorPath] - }; - } - newObj[key] = sharedValue.data; - } - return { valid: true, data: newObj }; - } - if (Array.isArray(a) && Array.isArray(b)) { - if (a.length !== b.length) { - return { valid: false, mergeErrorPath: [] }; - } - const newArray = []; - for (let index = 0;index < a.length; index++) { - const itemA = a[index]; - const itemB = b[index]; - const sharedValue = mergeValues22(itemA, itemB); - if (!sharedValue.valid) { - return { - valid: false, - mergeErrorPath: [index, ...sharedValue.mergeErrorPath] - }; - } - newArray.push(sharedValue.data); - } - return { valid: true, data: newArray }; - } - return { valid: false, mergeErrorPath: [] }; -} -function handleIntersectionResults2(result, left, right) { - if (left.issues.length) { - result.issues.push(...left.issues); - } - if (right.issues.length) { - result.issues.push(...right.issues); - } - if (aborted2(result)) - return result; - const merged = mergeValues22(left.value, right.value); - if (!merged.valid) { - throw new Error(`Unmergable intersection. Error path: ` + `${JSON.stringify(merged.mergeErrorPath)}`); - } - result.value = merged.data; - return result; -} -var $ZodRecord2 = /* @__PURE__ */ $constructor2("$ZodRecord", (inst, def) => { - $ZodType2.init(inst, def); - inst._zod.parse = (payload, ctx) => { - const input = payload.value; - if (!isPlainObject3(input)) { - payload.issues.push({ - expected: "record", - code: "invalid_type", - input, - inst - }); - return payload; - } - const proms = []; - if (def.keyType._zod.values) { - const values = def.keyType._zod.values; - payload.value = {}; - for (const key of values) { - if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") { - const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx); - if (result instanceof Promise) { - proms.push(result.then((result2) => { - if (result2.issues.length) { - payload.issues.push(...prefixIssues2(key, result2.issues)); - } - payload.value[key] = result2.value; - })); - } else { - if (result.issues.length) { - payload.issues.push(...prefixIssues2(key, result.issues)); - } - payload.value[key] = result.value; - } - } - } - let unrecognized; - for (const key in input) { - if (!values.has(key)) { - unrecognized = unrecognized ?? []; - unrecognized.push(key); - } - } - if (unrecognized && unrecognized.length > 0) { - payload.issues.push({ - code: "unrecognized_keys", - input, - inst, - keys: unrecognized - }); - } - } else { - payload.value = {}; - for (const key of Reflect.ownKeys(input)) { - if (key === "__proto__") - continue; - const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx); - if (keyResult instanceof Promise) { - throw new Error("Async schemas not supported in object keys currently"); - } - if (keyResult.issues.length) { - payload.issues.push({ - origin: "record", - code: "invalid_key", - issues: keyResult.issues.map((iss) => finalizeIssue2(iss, ctx, config2())), - input: key, - path: [key], - inst - }); - payload.value[keyResult.value] = keyResult.value; - continue; - } - const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx); - if (result instanceof Promise) { - proms.push(result.then((result2) => { - if (result2.issues.length) { - payload.issues.push(...prefixIssues2(key, result2.issues)); - } - payload.value[keyResult.value] = result2.value; - })); - } else { - if (result.issues.length) { - payload.issues.push(...prefixIssues2(key, result.issues)); - } - payload.value[keyResult.value] = result.value; - } - } - } - if (proms.length) { - return Promise.all(proms).then(() => payload); - } - return payload; - }; -}); -var $ZodEnum2 = /* @__PURE__ */ $constructor2("$ZodEnum", (inst, def) => { - $ZodType2.init(inst, def); - const values = getEnumValues2(def.entries); - inst._zod.values = new Set(values); - inst._zod.pattern = new RegExp(`^(${values.filter((k) => propertyKeyTypes2.has(typeof k)).map((o) => typeof o === "string" ? escapeRegex2(o) : o.toString()).join("|")})$`); - inst._zod.parse = (payload, _ctx) => { - const input = payload.value; - if (inst._zod.values.has(input)) { - return payload; - } - payload.issues.push({ - code: "invalid_value", - values, - input, - inst - }); - return payload; - }; -}); -var $ZodLiteral2 = /* @__PURE__ */ $constructor2("$ZodLiteral", (inst, def) => { - $ZodType2.init(inst, def); - inst._zod.values = new Set(def.values); - inst._zod.pattern = new RegExp(`^(${def.values.map((o) => typeof o === "string" ? escapeRegex2(o) : o ? o.toString() : String(o)).join("|")})$`); - inst._zod.parse = (payload, _ctx) => { - const input = payload.value; - if (inst._zod.values.has(input)) { - return payload; - } - payload.issues.push({ - code: "invalid_value", - values: def.values, - input, - inst - }); - return payload; - }; -}); -var $ZodTransform2 = /* @__PURE__ */ $constructor2("$ZodTransform", (inst, def) => { - $ZodType2.init(inst, def); - inst._zod.parse = (payload, _ctx) => { - const _out = def.transform(payload.value, payload); - if (_ctx.async) { - const output = _out instanceof Promise ? _out : Promise.resolve(_out); - return output.then((output2) => { - payload.value = output2; - return payload; - }); - } - if (_out instanceof Promise) { - throw new $ZodAsyncError2; - } - payload.value = _out; - return payload; - }; -}); -var $ZodOptional2 = /* @__PURE__ */ $constructor2("$ZodOptional", (inst, def) => { - $ZodType2.init(inst, def); - inst._zod.optin = "optional"; - inst._zod.optout = "optional"; - defineLazy2(inst._zod, "values", () => { - return def.innerType._zod.values ? new Set([...def.innerType._zod.values, undefined]) : undefined; - }); - defineLazy2(inst._zod, "pattern", () => { - const pattern = def.innerType._zod.pattern; - return pattern ? new RegExp(`^(${cleanRegex2(pattern.source)})?$`) : undefined; - }); - inst._zod.parse = (payload, ctx) => { - if (def.innerType._zod.optin === "optional") { - return def.innerType._zod.run(payload, ctx); - } - if (payload.value === undefined) { - return payload; - } - return def.innerType._zod.run(payload, ctx); - }; -}); -var $ZodNullable2 = /* @__PURE__ */ $constructor2("$ZodNullable", (inst, def) => { - $ZodType2.init(inst, def); - defineLazy2(inst._zod, "optin", () => def.innerType._zod.optin); - defineLazy2(inst._zod, "optout", () => def.innerType._zod.optout); - defineLazy2(inst._zod, "pattern", () => { - const pattern = def.innerType._zod.pattern; - return pattern ? new RegExp(`^(${cleanRegex2(pattern.source)}|null)$`) : undefined; - }); - defineLazy2(inst._zod, "values", () => { - return def.innerType._zod.values ? new Set([...def.innerType._zod.values, null]) : undefined; - }); - inst._zod.parse = (payload, ctx) => { - if (payload.value === null) - return payload; - return def.innerType._zod.run(payload, ctx); - }; -}); -var $ZodDefault2 = /* @__PURE__ */ $constructor2("$ZodDefault", (inst, def) => { - $ZodType2.init(inst, def); - inst._zod.optin = "optional"; - defineLazy2(inst._zod, "values", () => def.innerType._zod.values); - inst._zod.parse = (payload, ctx) => { - if (payload.value === undefined) { - payload.value = def.defaultValue; - return payload; - } - const result = def.innerType._zod.run(payload, ctx); - if (result instanceof Promise) { - return result.then((result2) => handleDefaultResult2(result2, def)); - } - return handleDefaultResult2(result, def); - }; -}); -function handleDefaultResult2(payload, def) { - if (payload.value === undefined) { - payload.value = def.defaultValue; - } - return payload; -} -var $ZodPrefault2 = /* @__PURE__ */ $constructor2("$ZodPrefault", (inst, def) => { - $ZodType2.init(inst, def); - inst._zod.optin = "optional"; - defineLazy2(inst._zod, "values", () => def.innerType._zod.values); - inst._zod.parse = (payload, ctx) => { - if (payload.value === undefined) { - payload.value = def.defaultValue; - } - return def.innerType._zod.run(payload, ctx); - }; -}); -var $ZodNonOptional2 = /* @__PURE__ */ $constructor2("$ZodNonOptional", (inst, def) => { - $ZodType2.init(inst, def); - defineLazy2(inst._zod, "values", () => { - const v = def.innerType._zod.values; - return v ? new Set([...v].filter((x) => x !== undefined)) : undefined; - }); - inst._zod.parse = (payload, ctx) => { - const result = def.innerType._zod.run(payload, ctx); - if (result instanceof Promise) { - return result.then((result2) => handleNonOptionalResult2(result2, inst)); - } - return handleNonOptionalResult2(result, inst); - }; -}); -function handleNonOptionalResult2(payload, inst) { - if (!payload.issues.length && payload.value === undefined) { - payload.issues.push({ - code: "invalid_type", - expected: "nonoptional", - input: payload.value, - inst - }); - } - return payload; -} -var $ZodCatch2 = /* @__PURE__ */ $constructor2("$ZodCatch", (inst, def) => { - $ZodType2.init(inst, def); - inst._zod.optin = "optional"; - defineLazy2(inst._zod, "optout", () => def.innerType._zod.optout); - defineLazy2(inst._zod, "values", () => def.innerType._zod.values); - inst._zod.parse = (payload, ctx) => { - const result = def.innerType._zod.run(payload, ctx); - if (result instanceof Promise) { - return result.then((result2) => { - payload.value = result2.value; - if (result2.issues.length) { - payload.value = def.catchValue({ - ...payload, - error: { - issues: result2.issues.map((iss) => finalizeIssue2(iss, ctx, config2())) - }, - input: payload.value - }); - payload.issues = []; - } - return payload; - }); - } - payload.value = result.value; - if (result.issues.length) { - payload.value = def.catchValue({ - ...payload, - error: { - issues: result.issues.map((iss) => finalizeIssue2(iss, ctx, config2())) - }, - input: payload.value - }); - payload.issues = []; - } - return payload; - }; -}); -var $ZodPipe2 = /* @__PURE__ */ $constructor2("$ZodPipe", (inst, def) => { - $ZodType2.init(inst, def); - defineLazy2(inst._zod, "values", () => def.in._zod.values); - defineLazy2(inst._zod, "optin", () => def.in._zod.optin); - defineLazy2(inst._zod, "optout", () => def.out._zod.optout); - inst._zod.parse = (payload, ctx) => { - const left = def.in._zod.run(payload, ctx); - if (left instanceof Promise) { - return left.then((left2) => handlePipeResult2(left2, def, ctx)); - } - return handlePipeResult2(left, def, ctx); - }; -}); -function handlePipeResult2(left, def, ctx) { - if (aborted2(left)) { - return left; - } - return def.out._zod.run({ value: left.value, issues: left.issues }, ctx); -} -var $ZodReadonly2 = /* @__PURE__ */ $constructor2("$ZodReadonly", (inst, def) => { - $ZodType2.init(inst, def); - defineLazy2(inst._zod, "propValues", () => def.innerType._zod.propValues); - defineLazy2(inst._zod, "values", () => def.innerType._zod.values); - defineLazy2(inst._zod, "optin", () => def.innerType._zod.optin); - defineLazy2(inst._zod, "optout", () => def.innerType._zod.optout); - inst._zod.parse = (payload, ctx) => { - const result = def.innerType._zod.run(payload, ctx); - if (result instanceof Promise) { - return result.then(handleReadonlyResult2); - } - return handleReadonlyResult2(result); - }; -}); -function handleReadonlyResult2(payload) { - payload.value = Object.freeze(payload.value); - return payload; -} -var $ZodCustom2 = /* @__PURE__ */ $constructor2("$ZodCustom", (inst, def) => { - $ZodCheck2.init(inst, def); - $ZodType2.init(inst, def); - inst._zod.parse = (payload, _) => { - return payload; - }; - inst._zod.check = (payload) => { - const input = payload.value; - const r = def.fn(input); - if (r instanceof Promise) { - return r.then((r2) => handleRefineResult2(r2, payload, input, inst)); - } - handleRefineResult2(r, payload, input, inst); - return; - }; -}); -function handleRefineResult2(result, payload, input, inst) { - if (!result) { - const _iss = { - code: "custom", - input, - inst, - path: [...inst._zod.def.path ?? []], - continue: !inst._zod.def.abort - }; - if (inst._zod.def.params) - _iss.params = inst._zod.def.params; - payload.issues.push(issue2(_iss)); - } -} -var parsedType2 = (data) => { - const t = typeof data; - switch (t) { - case "number": { - return Number.isNaN(data) ? "NaN" : "number"; - } - case "object": { - if (Array.isArray(data)) { - return "array"; - } - if (data === null) { - return "null"; - } - if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) { - return data.constructor.name; - } - } - } - return t; -}; -var error2 = () => { - const Sizable = { - string: { unit: "characters", verb: "to have" }, - file: { unit: "bytes", verb: "to have" }, - array: { unit: "items", verb: "to have" }, - set: { unit: "items", verb: "to have" } - }; - function getSizing(origin) { - return Sizable[origin] ?? null; - } - const Nouns = { - regex: "input", - email: "email address", - url: "URL", - emoji: "emoji", - uuid: "UUID", - uuidv4: "UUIDv4", - uuidv6: "UUIDv6", - nanoid: "nanoid", - guid: "GUID", - cuid: "cuid", - cuid2: "cuid2", - ulid: "ULID", - xid: "XID", - ksuid: "KSUID", - datetime: "ISO datetime", - date: "ISO date", - time: "ISO time", - duration: "ISO duration", - ipv4: "IPv4 address", - ipv6: "IPv6 address", - cidrv4: "IPv4 range", - cidrv6: "IPv6 range", - base64: "base64-encoded string", - base64url: "base64url-encoded string", - json_string: "JSON string", - e164: "E.164 number", - jwt: "JWT", - template_literal: "input" - }; - return (issue22) => { - switch (issue22.code) { - case "invalid_type": - return `Invalid input: expected ${issue22.expected}, received ${parsedType2(issue22.input)}`; - case "invalid_value": - if (issue22.values.length === 1) - return `Invalid input: expected ${stringifyPrimitive2(issue22.values[0])}`; - return `Invalid option: expected one of ${joinValues2(issue22.values, "|")}`; - case "too_big": { - const adj = issue22.inclusive ? "<=" : "<"; - const sizing = getSizing(issue22.origin); - if (sizing) - return `Too big: expected ${issue22.origin ?? "value"} to have ${adj}${issue22.maximum.toString()} ${sizing.unit ?? "elements"}`; - return `Too big: expected ${issue22.origin ?? "value"} to be ${adj}${issue22.maximum.toString()}`; - } - case "too_small": { - const adj = issue22.inclusive ? ">=" : ">"; - const sizing = getSizing(issue22.origin); - if (sizing) { - return `Too small: expected ${issue22.origin} to have ${adj}${issue22.minimum.toString()} ${sizing.unit}`; - } - return `Too small: expected ${issue22.origin} to be ${adj}${issue22.minimum.toString()}`; - } - case "invalid_format": { - const _issue = issue22; - if (_issue.format === "starts_with") { - return `Invalid string: must start with "${_issue.prefix}"`; - } - if (_issue.format === "ends_with") - return `Invalid string: must end with "${_issue.suffix}"`; - if (_issue.format === "includes") - return `Invalid string: must include "${_issue.includes}"`; - if (_issue.format === "regex") - return `Invalid string: must match pattern ${_issue.pattern}`; - return `Invalid ${Nouns[_issue.format] ?? issue22.format}`; - } - case "not_multiple_of": - return `Invalid number: must be a multiple of ${issue22.divisor}`; - case "unrecognized_keys": - return `Unrecognized key${issue22.keys.length > 1 ? "s" : ""}: ${joinValues2(issue22.keys, ", ")}`; - case "invalid_key": - return `Invalid key in ${issue22.origin}`; - case "invalid_union": - return "Invalid input"; - case "invalid_element": - return `Invalid value in ${issue22.origin}`; - default: - return `Invalid input`; - } - }; -}; -function en_default22() { - return { - localeError: error2() - }; -} -var $output2 = Symbol("ZodOutput"); -var $input2 = Symbol("ZodInput"); - -class $ZodRegistry2 { - constructor() { - this._map = new WeakMap; - this._idmap = new Map; - } - add(schema, ..._meta) { - const meta2 = _meta[0]; - this._map.set(schema, meta2); - if (meta2 && typeof meta2 === "object" && "id" in meta2) { - if (this._idmap.has(meta2.id)) { - throw new Error(`ID ${meta2.id} already exists in the registry`); - } - this._idmap.set(meta2.id, schema); - } - return this; - } - remove(schema) { - this._map.delete(schema); - return this; - } - get(schema) { - const p = schema._zod.parent; - if (p) { - const pm = { ...this.get(p) ?? {} }; - delete pm.id; - return { ...pm, ...this._map.get(schema) }; - } - return this._map.get(schema); - } - has(schema) { - return this._map.has(schema); - } -} -function registry2() { - return new $ZodRegistry2; -} -var globalRegistry2 = /* @__PURE__ */ registry2(); -function _string2(Class22, params) { - return new Class22({ - type: "string", - ...normalizeParams2(params) - }); -} -function _email2(Class22, params) { - return new Class22({ - type: "string", - format: "email", - check: "string_format", - abort: false, - ...normalizeParams2(params) - }); -} -function _guid2(Class22, params) { - return new Class22({ - type: "string", - format: "guid", - check: "string_format", - abort: false, - ...normalizeParams2(params) - }); -} -function _uuid2(Class22, params) { - return new Class22({ - type: "string", - format: "uuid", - check: "string_format", - abort: false, - ...normalizeParams2(params) - }); -} -function _uuidv42(Class22, params) { - return new Class22({ - type: "string", - format: "uuid", - check: "string_format", - abort: false, - version: "v4", - ...normalizeParams2(params) - }); -} -function _uuidv62(Class22, params) { - return new Class22({ - type: "string", - format: "uuid", - check: "string_format", - abort: false, - version: "v6", - ...normalizeParams2(params) - }); -} -function _uuidv72(Class22, params) { - return new Class22({ - type: "string", - format: "uuid", - check: "string_format", - abort: false, - version: "v7", - ...normalizeParams2(params) - }); -} -function _url2(Class22, params) { - return new Class22({ - type: "string", - format: "url", - check: "string_format", - abort: false, - ...normalizeParams2(params) - }); -} -function _emoji22(Class22, params) { - return new Class22({ - type: "string", - format: "emoji", - check: "string_format", - abort: false, - ...normalizeParams2(params) - }); -} -function _nanoid2(Class22, params) { - return new Class22({ - type: "string", - format: "nanoid", - check: "string_format", - abort: false, - ...normalizeParams2(params) - }); -} -function _cuid3(Class22, params) { - return new Class22({ - type: "string", - format: "cuid", - check: "string_format", - abort: false, - ...normalizeParams2(params) - }); -} -function _cuid22(Class22, params) { - return new Class22({ - type: "string", - format: "cuid2", - check: "string_format", - abort: false, - ...normalizeParams2(params) - }); -} -function _ulid2(Class22, params) { - return new Class22({ - type: "string", - format: "ulid", - check: "string_format", - abort: false, - ...normalizeParams2(params) - }); -} -function _xid2(Class22, params) { - return new Class22({ - type: "string", - format: "xid", - check: "string_format", - abort: false, - ...normalizeParams2(params) - }); -} -function _ksuid2(Class22, params) { - return new Class22({ - type: "string", - format: "ksuid", - check: "string_format", - abort: false, - ...normalizeParams2(params) - }); -} -function _ipv42(Class22, params) { - return new Class22({ - type: "string", - format: "ipv4", - check: "string_format", - abort: false, - ...normalizeParams2(params) - }); -} -function _ipv62(Class22, params) { - return new Class22({ - type: "string", - format: "ipv6", - check: "string_format", - abort: false, - ...normalizeParams2(params) - }); -} -function _cidrv42(Class22, params) { - return new Class22({ - type: "string", - format: "cidrv4", - check: "string_format", - abort: false, - ...normalizeParams2(params) - }); -} -function _cidrv62(Class22, params) { - return new Class22({ - type: "string", - format: "cidrv6", - check: "string_format", - abort: false, - ...normalizeParams2(params) - }); -} -function _base642(Class22, params) { - return new Class22({ - type: "string", - format: "base64", - check: "string_format", - abort: false, - ...normalizeParams2(params) - }); -} -function _base64url2(Class22, params) { - return new Class22({ - type: "string", - format: "base64url", - check: "string_format", - abort: false, - ...normalizeParams2(params) - }); -} -function _e1642(Class22, params) { - return new Class22({ - type: "string", - format: "e164", - check: "string_format", - abort: false, - ...normalizeParams2(params) - }); -} -function _jwt2(Class22, params) { - return new Class22({ - type: "string", - format: "jwt", - check: "string_format", - abort: false, - ...normalizeParams2(params) - }); -} -function _isoDateTime2(Class22, params) { - return new Class22({ - type: "string", - format: "datetime", - check: "string_format", - offset: false, - local: false, - precision: null, - ...normalizeParams2(params) - }); -} -function _isoDate2(Class22, params) { - return new Class22({ - type: "string", - format: "date", - check: "string_format", - ...normalizeParams2(params) - }); -} -function _isoTime2(Class22, params) { - return new Class22({ - type: "string", - format: "time", - check: "string_format", - precision: null, - ...normalizeParams2(params) - }); -} -function _isoDuration2(Class22, params) { - return new Class22({ - type: "string", - format: "duration", - check: "string_format", - ...normalizeParams2(params) - }); -} -function _number2(Class22, params) { - return new Class22({ - type: "number", - checks: [], - ...normalizeParams2(params) - }); -} -function _int2(Class22, params) { - return new Class22({ - type: "number", - check: "number_format", - abort: false, - format: "safeint", - ...normalizeParams2(params) - }); -} -function _boolean2(Class22, params) { - return new Class22({ - type: "boolean", - ...normalizeParams2(params) - }); -} -function _null22(Class22, params) { - return new Class22({ - type: "null", - ...normalizeParams2(params) - }); -} -function _unknown2(Class22) { - return new Class22({ - type: "unknown" - }); -} -function _never2(Class22, params) { - return new Class22({ - type: "never", - ...normalizeParams2(params) - }); -} -function _lt2(value, params) { - return new $ZodCheckLessThan2({ - check: "less_than", - ...normalizeParams2(params), - value, - inclusive: false - }); -} -function _lte2(value, params) { - return new $ZodCheckLessThan2({ - check: "less_than", - ...normalizeParams2(params), - value, - inclusive: true - }); -} -function _gt2(value, params) { - return new $ZodCheckGreaterThan2({ - check: "greater_than", - ...normalizeParams2(params), - value, - inclusive: false - }); -} -function _gte2(value, params) { - return new $ZodCheckGreaterThan2({ - check: "greater_than", - ...normalizeParams2(params), - value, - inclusive: true - }); -} -function _multipleOf2(value, params) { - return new $ZodCheckMultipleOf2({ - check: "multiple_of", - ...normalizeParams2(params), - value - }); -} -function _maxLength2(maximum, params) { - const ch = new $ZodCheckMaxLength2({ - check: "max_length", - ...normalizeParams2(params), - maximum - }); - return ch; -} -function _minLength2(minimum, params) { - return new $ZodCheckMinLength2({ - check: "min_length", - ...normalizeParams2(params), - minimum - }); -} -function _length2(length, params) { - return new $ZodCheckLengthEquals2({ - check: "length_equals", - ...normalizeParams2(params), - length - }); -} -function _regex2(pattern, params) { - return new $ZodCheckRegex2({ - check: "string_format", - format: "regex", - ...normalizeParams2(params), - pattern - }); -} -function _lowercase2(params) { - return new $ZodCheckLowerCase2({ - check: "string_format", - format: "lowercase", - ...normalizeParams2(params) - }); -} -function _uppercase2(params) { - return new $ZodCheckUpperCase2({ - check: "string_format", - format: "uppercase", - ...normalizeParams2(params) - }); -} -function _includes2(includes, params) { - return new $ZodCheckIncludes2({ - check: "string_format", - format: "includes", - ...normalizeParams2(params), - includes - }); -} -function _startsWith2(prefix, params) { - return new $ZodCheckStartsWith2({ - check: "string_format", - format: "starts_with", - ...normalizeParams2(params), - prefix - }); -} -function _endsWith2(suffix, params) { - return new $ZodCheckEndsWith2({ - check: "string_format", - format: "ends_with", - ...normalizeParams2(params), - suffix - }); -} -function _overwrite2(tx) { - return new $ZodCheckOverwrite2({ - check: "overwrite", - tx - }); -} -function _normalize2(form) { - return _overwrite2((input) => input.normalize(form)); -} -function _trim2() { - return _overwrite2((input) => input.trim()); -} -function _toLowerCase2() { - return _overwrite2((input) => input.toLowerCase()); -} -function _toUpperCase2() { - return _overwrite2((input) => input.toUpperCase()); -} -function _array2(Class22, element, params) { - return new Class22({ - type: "array", - element, - ...normalizeParams2(params) - }); -} -function _custom2(Class22, fn, _params) { - const norm = normalizeParams2(_params); - norm.abort ?? (norm.abort = true); - const schema = new Class22({ - type: "custom", - check: "custom", - fn, - ...norm - }); - return schema; -} -function _refine2(Class22, fn, _params) { - const schema = new Class22({ - type: "custom", - check: "custom", - fn, - ...normalizeParams2(_params) - }); - return schema; -} -var exports_iso2 = {}; -__export2(exports_iso2, { - time: () => time22, - duration: () => duration22, - datetime: () => datetime22, - date: () => date22, - ZodISOTime: () => ZodISOTime2, - ZodISODuration: () => ZodISODuration2, - ZodISODateTime: () => ZodISODateTime2, - ZodISODate: () => ZodISODate2 -}); -var ZodISODateTime2 = /* @__PURE__ */ $constructor2("ZodISODateTime", (inst, def) => { - $ZodISODateTime2.init(inst, def); - ZodStringFormat2.init(inst, def); -}); -function datetime22(params) { - return _isoDateTime2(ZodISODateTime2, params); -} -var ZodISODate2 = /* @__PURE__ */ $constructor2("ZodISODate", (inst, def) => { - $ZodISODate2.init(inst, def); - ZodStringFormat2.init(inst, def); -}); -function date22(params) { - return _isoDate2(ZodISODate2, params); -} -var ZodISOTime2 = /* @__PURE__ */ $constructor2("ZodISOTime", (inst, def) => { - $ZodISOTime2.init(inst, def); - ZodStringFormat2.init(inst, def); -}); -function time22(params) { - return _isoTime2(ZodISOTime2, params); -} -var ZodISODuration2 = /* @__PURE__ */ $constructor2("ZodISODuration", (inst, def) => { - $ZodISODuration2.init(inst, def); - ZodStringFormat2.init(inst, def); -}); -function duration22(params) { - return _isoDuration2(ZodISODuration2, params); -} -var initializer22 = (inst, issues) => { - $ZodError2.init(inst, issues); - inst.name = "ZodError"; - Object.defineProperties(inst, { - format: { - value: (mapper) => formatError2(inst, mapper) - }, - flatten: { - value: (mapper) => flattenError2(inst, mapper) - }, - addIssue: { - value: (issue22) => inst.issues.push(issue22) - }, - addIssues: { - value: (issues2) => inst.issues.push(...issues2) - }, - isEmpty: { - get() { - return inst.issues.length === 0; - } - } - }); -}; -var ZodError22 = $constructor2("ZodError", initializer22); -var ZodRealError2 = $constructor2("ZodError", initializer22, { - Parent: Error -}); -var parse42 = /* @__PURE__ */ _parse2(ZodRealError2); -var parseAsync22 = /* @__PURE__ */ _parseAsync2(ZodRealError2); -var safeParse32 = /* @__PURE__ */ _safeParse2(ZodRealError2); -var safeParseAsync32 = /* @__PURE__ */ _safeParseAsync2(ZodRealError2); -var ZodType22 = /* @__PURE__ */ $constructor2("ZodType", (inst, def) => { - $ZodType2.init(inst, def); - inst.def = def; - Object.defineProperty(inst, "_def", { value: def }); - inst.check = (...checks3) => { - return inst.clone({ - ...def, - checks: [ - ...def.checks ?? [], - ...checks3.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch) - ] - }); - }; - inst.clone = (def2, params) => clone2(inst, def2, params); - inst.brand = () => inst; - inst.register = (reg, meta2) => { - reg.add(inst, meta2); - return inst; - }; - inst.parse = (data, params) => parse42(inst, data, params, { callee: inst.parse }); - inst.safeParse = (data, params) => safeParse32(inst, data, params); - inst.parseAsync = async (data, params) => parseAsync22(inst, data, params, { callee: inst.parseAsync }); - inst.safeParseAsync = async (data, params) => safeParseAsync32(inst, data, params); - inst.spa = inst.safeParseAsync; - inst.refine = (check, params) => inst.check(refine2(check, params)); - inst.superRefine = (refinement) => inst.check(superRefine2(refinement)); - inst.overwrite = (fn) => inst.check(_overwrite2(fn)); - inst.optional = () => optional3(inst); - inst.nullable = () => nullable3(inst); - inst.nullish = () => optional3(nullable3(inst)); - inst.nonoptional = (params) => nonoptional2(inst, params); - inst.array = () => array3(inst); - inst.or = (arg) => union3([inst, arg]); - inst.and = (arg) => intersection3(inst, arg); - inst.transform = (tx) => pipe2(inst, transform2(tx)); - inst.default = (def2) => _default2(inst, def2); - inst.prefault = (def2) => prefault2(inst, def2); - inst.catch = (params) => _catch2(inst, params); - inst.pipe = (target) => pipe2(inst, target); - inst.readonly = () => readonly3(inst); - inst.describe = (description) => { - const cl = inst.clone(); - globalRegistry2.add(cl, { description }); - return cl; - }; - Object.defineProperty(inst, "description", { - get() { - return globalRegistry2.get(inst)?.description; - }, - configurable: true - }); - inst.meta = (...args) => { - if (args.length === 0) { - return globalRegistry2.get(inst); - } - const cl = inst.clone(); - globalRegistry2.add(cl, args[0]); - return cl; - }; - inst.isOptional = () => inst.safeParse(undefined).success; - inst.isNullable = () => inst.safeParse(null).success; - return inst; -}); -var _ZodString2 = /* @__PURE__ */ $constructor2("_ZodString", (inst, def) => { - $ZodString2.init(inst, def); - ZodType22.init(inst, def); - const bag = inst._zod.bag; - inst.format = bag.format ?? null; - inst.minLength = bag.minimum ?? null; - inst.maxLength = bag.maximum ?? null; - inst.regex = (...args) => inst.check(_regex2(...args)); - inst.includes = (...args) => inst.check(_includes2(...args)); - inst.startsWith = (...args) => inst.check(_startsWith2(...args)); - inst.endsWith = (...args) => inst.check(_endsWith2(...args)); - inst.min = (...args) => inst.check(_minLength2(...args)); - inst.max = (...args) => inst.check(_maxLength2(...args)); - inst.length = (...args) => inst.check(_length2(...args)); - inst.nonempty = (...args) => inst.check(_minLength2(1, ...args)); - inst.lowercase = (params) => inst.check(_lowercase2(params)); - inst.uppercase = (params) => inst.check(_uppercase2(params)); - inst.trim = () => inst.check(_trim2()); - inst.normalize = (...args) => inst.check(_normalize2(...args)); - inst.toLowerCase = () => inst.check(_toLowerCase2()); - inst.toUpperCase = () => inst.check(_toUpperCase2()); -}); -var ZodString22 = /* @__PURE__ */ $constructor2("ZodString", (inst, def) => { - $ZodString2.init(inst, def); - _ZodString2.init(inst, def); - inst.email = (params) => inst.check(_email2(ZodEmail2, params)); - inst.url = (params) => inst.check(_url2(ZodURL2, params)); - inst.jwt = (params) => inst.check(_jwt2(ZodJWT2, params)); - inst.emoji = (params) => inst.check(_emoji22(ZodEmoji2, params)); - inst.guid = (params) => inst.check(_guid2(ZodGUID2, params)); - inst.uuid = (params) => inst.check(_uuid2(ZodUUID2, params)); - inst.uuidv4 = (params) => inst.check(_uuidv42(ZodUUID2, params)); - inst.uuidv6 = (params) => inst.check(_uuidv62(ZodUUID2, params)); - inst.uuidv7 = (params) => inst.check(_uuidv72(ZodUUID2, params)); - inst.nanoid = (params) => inst.check(_nanoid2(ZodNanoID2, params)); - inst.guid = (params) => inst.check(_guid2(ZodGUID2, params)); - inst.cuid = (params) => inst.check(_cuid3(ZodCUID3, params)); - inst.cuid2 = (params) => inst.check(_cuid22(ZodCUID22, params)); - inst.ulid = (params) => inst.check(_ulid2(ZodULID2, params)); - inst.base64 = (params) => inst.check(_base642(ZodBase642, params)); - inst.base64url = (params) => inst.check(_base64url2(ZodBase64URL2, params)); - inst.xid = (params) => inst.check(_xid2(ZodXID2, params)); - inst.ksuid = (params) => inst.check(_ksuid2(ZodKSUID2, params)); - inst.ipv4 = (params) => inst.check(_ipv42(ZodIPv42, params)); - inst.ipv6 = (params) => inst.check(_ipv62(ZodIPv62, params)); - inst.cidrv4 = (params) => inst.check(_cidrv42(ZodCIDRv42, params)); - inst.cidrv6 = (params) => inst.check(_cidrv62(ZodCIDRv62, params)); - inst.e164 = (params) => inst.check(_e1642(ZodE1642, params)); - inst.datetime = (params) => inst.check(datetime22(params)); - inst.date = (params) => inst.check(date22(params)); - inst.time = (params) => inst.check(time22(params)); - inst.duration = (params) => inst.check(duration22(params)); -}); -function string22(params) { - return _string2(ZodString22, params); -} -var ZodStringFormat2 = /* @__PURE__ */ $constructor2("ZodStringFormat", (inst, def) => { - $ZodStringFormat2.init(inst, def); - _ZodString2.init(inst, def); -}); -var ZodEmail2 = /* @__PURE__ */ $constructor2("ZodEmail", (inst, def) => { - $ZodEmail2.init(inst, def); - ZodStringFormat2.init(inst, def); -}); -var ZodGUID2 = /* @__PURE__ */ $constructor2("ZodGUID", (inst, def) => { - $ZodGUID2.init(inst, def); - ZodStringFormat2.init(inst, def); -}); -var ZodUUID2 = /* @__PURE__ */ $constructor2("ZodUUID", (inst, def) => { - $ZodUUID2.init(inst, def); - ZodStringFormat2.init(inst, def); -}); -var ZodURL2 = /* @__PURE__ */ $constructor2("ZodURL", (inst, def) => { - $ZodURL2.init(inst, def); - ZodStringFormat2.init(inst, def); -}); -var ZodEmoji2 = /* @__PURE__ */ $constructor2("ZodEmoji", (inst, def) => { - $ZodEmoji2.init(inst, def); - ZodStringFormat2.init(inst, def); -}); -var ZodNanoID2 = /* @__PURE__ */ $constructor2("ZodNanoID", (inst, def) => { - $ZodNanoID2.init(inst, def); - ZodStringFormat2.init(inst, def); -}); -var ZodCUID3 = /* @__PURE__ */ $constructor2("ZodCUID", (inst, def) => { - $ZodCUID3.init(inst, def); - ZodStringFormat2.init(inst, def); -}); -var ZodCUID22 = /* @__PURE__ */ $constructor2("ZodCUID2", (inst, def) => { - $ZodCUID22.init(inst, def); - ZodStringFormat2.init(inst, def); -}); -var ZodULID2 = /* @__PURE__ */ $constructor2("ZodULID", (inst, def) => { - $ZodULID2.init(inst, def); - ZodStringFormat2.init(inst, def); -}); -var ZodXID2 = /* @__PURE__ */ $constructor2("ZodXID", (inst, def) => { - $ZodXID2.init(inst, def); - ZodStringFormat2.init(inst, def); -}); -var ZodKSUID2 = /* @__PURE__ */ $constructor2("ZodKSUID", (inst, def) => { - $ZodKSUID2.init(inst, def); - ZodStringFormat2.init(inst, def); -}); -var ZodIPv42 = /* @__PURE__ */ $constructor2("ZodIPv4", (inst, def) => { - $ZodIPv42.init(inst, def); - ZodStringFormat2.init(inst, def); -}); -var ZodIPv62 = /* @__PURE__ */ $constructor2("ZodIPv6", (inst, def) => { - $ZodIPv62.init(inst, def); - ZodStringFormat2.init(inst, def); -}); -var ZodCIDRv42 = /* @__PURE__ */ $constructor2("ZodCIDRv4", (inst, def) => { - $ZodCIDRv42.init(inst, def); - ZodStringFormat2.init(inst, def); -}); -var ZodCIDRv62 = /* @__PURE__ */ $constructor2("ZodCIDRv6", (inst, def) => { - $ZodCIDRv62.init(inst, def); - ZodStringFormat2.init(inst, def); -}); -var ZodBase642 = /* @__PURE__ */ $constructor2("ZodBase64", (inst, def) => { - $ZodBase642.init(inst, def); - ZodStringFormat2.init(inst, def); -}); -var ZodBase64URL2 = /* @__PURE__ */ $constructor2("ZodBase64URL", (inst, def) => { - $ZodBase64URL2.init(inst, def); - ZodStringFormat2.init(inst, def); -}); -var ZodE1642 = /* @__PURE__ */ $constructor2("ZodE164", (inst, def) => { - $ZodE1642.init(inst, def); - ZodStringFormat2.init(inst, def); -}); -var ZodJWT2 = /* @__PURE__ */ $constructor2("ZodJWT", (inst, def) => { - $ZodJWT2.init(inst, def); - ZodStringFormat2.init(inst, def); -}); -var ZodNumber22 = /* @__PURE__ */ $constructor2("ZodNumber", (inst, def) => { - $ZodNumber2.init(inst, def); - ZodType22.init(inst, def); - inst.gt = (value, params) => inst.check(_gt2(value, params)); - inst.gte = (value, params) => inst.check(_gte2(value, params)); - inst.min = (value, params) => inst.check(_gte2(value, params)); - inst.lt = (value, params) => inst.check(_lt2(value, params)); - inst.lte = (value, params) => inst.check(_lte2(value, params)); - inst.max = (value, params) => inst.check(_lte2(value, params)); - inst.int = (params) => inst.check(int2(params)); - inst.safe = (params) => inst.check(int2(params)); - inst.positive = (params) => inst.check(_gt2(0, params)); - inst.nonnegative = (params) => inst.check(_gte2(0, params)); - inst.negative = (params) => inst.check(_lt2(0, params)); - inst.nonpositive = (params) => inst.check(_lte2(0, params)); - inst.multipleOf = (value, params) => inst.check(_multipleOf2(value, params)); - inst.step = (value, params) => inst.check(_multipleOf2(value, params)); - inst.finite = () => inst; - const bag = inst._zod.bag; - inst.minValue = Math.max(bag.minimum ?? Number.NEGATIVE_INFINITY, bag.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null; - inst.maxValue = Math.min(bag.maximum ?? Number.POSITIVE_INFINITY, bag.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null; - inst.isInt = (bag.format ?? "").includes("int") || Number.isSafeInteger(bag.multipleOf ?? 0.5); - inst.isFinite = true; - inst.format = bag.format ?? null; -}); -function number22(params) { - return _number2(ZodNumber22, params); -} -var ZodNumberFormat2 = /* @__PURE__ */ $constructor2("ZodNumberFormat", (inst, def) => { - $ZodNumberFormat2.init(inst, def); - ZodNumber22.init(inst, def); -}); -function int2(params) { - return _int2(ZodNumberFormat2, params); -} -var ZodBoolean22 = /* @__PURE__ */ $constructor2("ZodBoolean", (inst, def) => { - $ZodBoolean2.init(inst, def); - ZodType22.init(inst, def); -}); -function boolean22(params) { - return _boolean2(ZodBoolean22, params); -} -var ZodNull22 = /* @__PURE__ */ $constructor2("ZodNull", (inst, def) => { - $ZodNull2.init(inst, def); - ZodType22.init(inst, def); -}); -function _null32(params) { - return _null22(ZodNull22, params); -} -var ZodUnknown22 = /* @__PURE__ */ $constructor2("ZodUnknown", (inst, def) => { - $ZodUnknown2.init(inst, def); - ZodType22.init(inst, def); -}); -function unknown3() { - return _unknown2(ZodUnknown22); -} -var ZodNever22 = /* @__PURE__ */ $constructor2("ZodNever", (inst, def) => { - $ZodNever2.init(inst, def); - ZodType22.init(inst, def); -}); -function never3(params) { - return _never2(ZodNever22, params); -} -var ZodArray22 = /* @__PURE__ */ $constructor2("ZodArray", (inst, def) => { - $ZodArray2.init(inst, def); - ZodType22.init(inst, def); - inst.element = def.element; - inst.min = (minLength, params) => inst.check(_minLength2(minLength, params)); - inst.nonempty = (params) => inst.check(_minLength2(1, params)); - inst.max = (maxLength, params) => inst.check(_maxLength2(maxLength, params)); - inst.length = (len, params) => inst.check(_length2(len, params)); - inst.unwrap = () => inst.element; -}); -function array3(element, params) { - return _array2(ZodArray22, element, params); -} -var ZodObject22 = /* @__PURE__ */ $constructor2("ZodObject", (inst, def) => { - $ZodObject2.init(inst, def); - ZodType22.init(inst, def); - exports_util2.defineLazy(inst, "shape", () => def.shape); - inst.keyof = () => _enum2(Object.keys(inst._zod.def.shape)); - inst.catchall = (catchall) => inst.clone({ ...inst._zod.def, catchall }); - inst.passthrough = () => inst.clone({ ...inst._zod.def, catchall: unknown3() }); - inst.loose = () => inst.clone({ ...inst._zod.def, catchall: unknown3() }); - inst.strict = () => inst.clone({ ...inst._zod.def, catchall: never3() }); - inst.strip = () => inst.clone({ ...inst._zod.def, catchall: undefined }); - inst.extend = (incoming) => { - return exports_util2.extend(inst, incoming); - }; - inst.merge = (other) => exports_util2.merge(inst, other); - inst.pick = (mask) => exports_util2.pick(inst, mask); - inst.omit = (mask) => exports_util2.omit(inst, mask); - inst.partial = (...args) => exports_util2.partial(ZodOptional22, inst, args[0]); - inst.required = (...args) => exports_util2.required(ZodNonOptional2, inst, args[0]); -}); -function object22(shape, params) { - const def = { - type: "object", - get shape() { - exports_util2.assignProp(this, "shape", { ...shape }); - return this.shape; - }, - ...exports_util2.normalizeParams(params) - }; - return new ZodObject22(def); -} -function looseObject2(shape, params) { - return new ZodObject22({ - type: "object", - get shape() { - exports_util2.assignProp(this, "shape", { ...shape }); - return this.shape; - }, - catchall: unknown3(), - ...exports_util2.normalizeParams(params) - }); -} -var ZodUnion22 = /* @__PURE__ */ $constructor2("ZodUnion", (inst, def) => { - $ZodUnion2.init(inst, def); - ZodType22.init(inst, def); - inst.options = def.options; -}); -function union3(options, params) { - return new ZodUnion22({ - type: "union", - options, - ...exports_util2.normalizeParams(params) - }); -} -var ZodDiscriminatedUnion22 = /* @__PURE__ */ $constructor2("ZodDiscriminatedUnion", (inst, def) => { - ZodUnion22.init(inst, def); - $ZodDiscriminatedUnion2.init(inst, def); -}); -function discriminatedUnion2(discriminator, options, params) { - return new ZodDiscriminatedUnion22({ - type: "union", - options, - discriminator, - ...exports_util2.normalizeParams(params) - }); -} -var ZodIntersection22 = /* @__PURE__ */ $constructor2("ZodIntersection", (inst, def) => { - $ZodIntersection2.init(inst, def); - ZodType22.init(inst, def); -}); -function intersection3(left, right) { - return new ZodIntersection22({ - type: "intersection", - left, - right - }); -} -var ZodRecord22 = /* @__PURE__ */ $constructor2("ZodRecord", (inst, def) => { - $ZodRecord2.init(inst, def); - ZodType22.init(inst, def); - inst.keyType = def.keyType; - inst.valueType = def.valueType; -}); -function record3(keyType, valueType, params) { - return new ZodRecord22({ - type: "record", - keyType, - valueType, - ...exports_util2.normalizeParams(params) - }); -} -var ZodEnum22 = /* @__PURE__ */ $constructor2("ZodEnum", (inst, def) => { - $ZodEnum2.init(inst, def); - ZodType22.init(inst, def); - inst.enum = def.entries; - inst.options = Object.values(def.entries); - const keys = new Set(Object.keys(def.entries)); - inst.extract = (values, params) => { - const newEntries = {}; - for (const value of values) { - if (keys.has(value)) { - newEntries[value] = def.entries[value]; - } else - throw new Error(`Key ${value} not found in enum`); - } - return new ZodEnum22({ - ...def, - checks: [], - ...exports_util2.normalizeParams(params), - entries: newEntries - }); - }; - inst.exclude = (values, params) => { - const newEntries = { ...def.entries }; - for (const value of values) { - if (keys.has(value)) { - delete newEntries[value]; - } else - throw new Error(`Key ${value} not found in enum`); - } - return new ZodEnum22({ - ...def, - checks: [], - ...exports_util2.normalizeParams(params), - entries: newEntries - }); - }; -}); -function _enum2(values, params) { - const entries = Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values; - return new ZodEnum22({ - type: "enum", - entries, - ...exports_util2.normalizeParams(params) - }); -} -var ZodLiteral22 = /* @__PURE__ */ $constructor2("ZodLiteral", (inst, def) => { - $ZodLiteral2.init(inst, def); - ZodType22.init(inst, def); - inst.values = new Set(def.values); - Object.defineProperty(inst, "value", { - get() { - if (def.values.length > 1) { - throw new Error("This schema contains multiple valid literal values. Use `.values` instead."); - } - return def.values[0]; - } - }); -}); -function literal3(value, params) { - return new ZodLiteral22({ - type: "literal", - values: Array.isArray(value) ? value : [value], - ...exports_util2.normalizeParams(params) - }); -} -var ZodTransform2 = /* @__PURE__ */ $constructor2("ZodTransform", (inst, def) => { - $ZodTransform2.init(inst, def); - ZodType22.init(inst, def); - inst._zod.parse = (payload, _ctx) => { - payload.addIssue = (issue22) => { - if (typeof issue22 === "string") { - payload.issues.push(exports_util2.issue(issue22, payload.value, def)); - } else { - const _issue = issue22; - if (_issue.fatal) - _issue.continue = false; - _issue.code ?? (_issue.code = "custom"); - _issue.input ?? (_issue.input = payload.value); - _issue.inst ?? (_issue.inst = inst); - _issue.continue ?? (_issue.continue = true); - payload.issues.push(exports_util2.issue(_issue)); - } - }; - const output = def.transform(payload.value, payload); - if (output instanceof Promise) { - return output.then((output2) => { - payload.value = output2; - return payload; - }); - } - payload.value = output; - return payload; - }; -}); -function transform2(fn) { - return new ZodTransform2({ - type: "transform", - transform: fn - }); -} -var ZodOptional22 = /* @__PURE__ */ $constructor2("ZodOptional", (inst, def) => { - $ZodOptional2.init(inst, def); - ZodType22.init(inst, def); - inst.unwrap = () => inst._zod.def.innerType; -}); -function optional3(innerType) { - return new ZodOptional22({ - type: "optional", - innerType - }); -} -var ZodNullable22 = /* @__PURE__ */ $constructor2("ZodNullable", (inst, def) => { - $ZodNullable2.init(inst, def); - ZodType22.init(inst, def); - inst.unwrap = () => inst._zod.def.innerType; -}); -function nullable3(innerType) { - return new ZodNullable22({ - type: "nullable", - innerType - }); -} -var ZodDefault22 = /* @__PURE__ */ $constructor2("ZodDefault", (inst, def) => { - $ZodDefault2.init(inst, def); - ZodType22.init(inst, def); - inst.unwrap = () => inst._zod.def.innerType; - inst.removeDefault = inst.unwrap; -}); -function _default2(innerType, defaultValue) { - return new ZodDefault22({ - type: "default", - innerType, - get defaultValue() { - return typeof defaultValue === "function" ? defaultValue() : defaultValue; - } - }); -} -var ZodPrefault2 = /* @__PURE__ */ $constructor2("ZodPrefault", (inst, def) => { - $ZodPrefault2.init(inst, def); - ZodType22.init(inst, def); - inst.unwrap = () => inst._zod.def.innerType; -}); -function prefault2(innerType, defaultValue) { - return new ZodPrefault2({ - type: "prefault", - innerType, - get defaultValue() { - return typeof defaultValue === "function" ? defaultValue() : defaultValue; - } - }); -} -var ZodNonOptional2 = /* @__PURE__ */ $constructor2("ZodNonOptional", (inst, def) => { - $ZodNonOptional2.init(inst, def); - ZodType22.init(inst, def); - inst.unwrap = () => inst._zod.def.innerType; -}); -function nonoptional2(innerType, params) { - return new ZodNonOptional2({ - type: "nonoptional", - innerType, - ...exports_util2.normalizeParams(params) - }); -} -var ZodCatch22 = /* @__PURE__ */ $constructor2("ZodCatch", (inst, def) => { - $ZodCatch2.init(inst, def); - ZodType22.init(inst, def); - inst.unwrap = () => inst._zod.def.innerType; - inst.removeCatch = inst.unwrap; -}); -function _catch2(innerType, catchValue) { - return new ZodCatch22({ - type: "catch", - innerType, - catchValue: typeof catchValue === "function" ? catchValue : () => catchValue - }); -} -var ZodPipe2 = /* @__PURE__ */ $constructor2("ZodPipe", (inst, def) => { - $ZodPipe2.init(inst, def); - ZodType22.init(inst, def); - inst.in = def.in; - inst.out = def.out; -}); -function pipe2(in_, out) { - return new ZodPipe2({ - type: "pipe", - in: in_, - out - }); -} -var ZodReadonly22 = /* @__PURE__ */ $constructor2("ZodReadonly", (inst, def) => { - $ZodReadonly2.init(inst, def); - ZodType22.init(inst, def); -}); -function readonly3(innerType) { - return new ZodReadonly22({ - type: "readonly", - innerType - }); -} -var ZodCustom2 = /* @__PURE__ */ $constructor2("ZodCustom", (inst, def) => { - $ZodCustom2.init(inst, def); - ZodType22.init(inst, def); -}); -function check(fn, params) { - const ch = new $ZodCheck2({ - check: "custom", - ...exports_util2.normalizeParams(params) - }); - ch._zod.check = fn; - return ch; -} -function custom2(fn, _params) { - return _custom2(ZodCustom2, fn ?? (() => true), _params); -} -function refine2(fn, _params = {}) { - return _refine2(ZodCustom2, fn, _params); -} -function superRefine2(fn, params) { - const ch = check((payload) => { - payload.addIssue = (issue22) => { - if (typeof issue22 === "string") { - payload.issues.push(exports_util2.issue(issue22, payload.value, ch._zod.def)); - } else { - const _issue = issue22; - if (_issue.fatal) - _issue.continue = false; - _issue.code ?? (_issue.code = "custom"); - _issue.input ?? (_issue.input = payload.value); - _issue.inst ?? (_issue.inst = ch); - _issue.continue ?? (_issue.continue = !ch._zod.def.abort); - payload.issues.push(exports_util2.issue(_issue)); - } - }; - return fn(payload.value, payload); - }, params); - return ch; -} -function preprocess2(fn, schema) { - return pipe2(transform2(fn), schema); -} -config2(en_default22()); -var RELATED_TASK_META_KEY2 = "io.modelcontextprotocol/related-task"; -var JSONRPC_VERSION2 = "2.0"; -var AssertObjectSchema2 = custom2((v) => v !== null && (typeof v === "object" || typeof v === "function")); -var ProgressTokenSchema2 = union3([string22(), number22().int()]); -var CursorSchema2 = string22(); -var TaskCreationParamsSchema2 = looseObject2({ - ttl: union3([number22(), _null32()]).optional(), - pollInterval: number22().optional() -}); -var RelatedTaskMetadataSchema2 = looseObject2({ - taskId: string22() -}); -var RequestMetaSchema2 = looseObject2({ - progressToken: ProgressTokenSchema2.optional(), - [RELATED_TASK_META_KEY2]: RelatedTaskMetadataSchema2.optional() -}); -var BaseRequestParamsSchema2 = looseObject2({ - task: TaskCreationParamsSchema2.optional(), - _meta: RequestMetaSchema2.optional() -}); -var RequestSchema2 = object22({ - method: string22(), - params: BaseRequestParamsSchema2.optional() -}); -var NotificationsParamsSchema2 = looseObject2({ - _meta: object22({ - [RELATED_TASK_META_KEY2]: optional3(RelatedTaskMetadataSchema2) - }).passthrough().optional() -}); -var NotificationSchema2 = object22({ - method: string22(), - params: NotificationsParamsSchema2.optional() -}); -var ResultSchema2 = looseObject2({ - _meta: looseObject2({ - [RELATED_TASK_META_KEY2]: RelatedTaskMetadataSchema2.optional() - }).optional() -}); -var RequestIdSchema2 = union3([string22(), number22().int()]); -var JSONRPCRequestSchema2 = object22({ - jsonrpc: literal3(JSONRPC_VERSION2), - id: RequestIdSchema2, - ...RequestSchema2.shape -}).strict(); -var JSONRPCNotificationSchema2 = object22({ - jsonrpc: literal3(JSONRPC_VERSION2), - ...NotificationSchema2.shape -}).strict(); -var JSONRPCResponseSchema2 = object22({ - jsonrpc: literal3(JSONRPC_VERSION2), - id: RequestIdSchema2, - result: ResultSchema2 -}).strict(); -var ErrorCode2; -(function(ErrorCode22) { - ErrorCode22[ErrorCode22["ConnectionClosed"] = -32000] = "ConnectionClosed"; - ErrorCode22[ErrorCode22["RequestTimeout"] = -32001] = "RequestTimeout"; - ErrorCode22[ErrorCode22["ParseError"] = -32700] = "ParseError"; - ErrorCode22[ErrorCode22["InvalidRequest"] = -32600] = "InvalidRequest"; - ErrorCode22[ErrorCode22["MethodNotFound"] = -32601] = "MethodNotFound"; - ErrorCode22[ErrorCode22["InvalidParams"] = -32602] = "InvalidParams"; - ErrorCode22[ErrorCode22["InternalError"] = -32603] = "InternalError"; - ErrorCode22[ErrorCode22["UrlElicitationRequired"] = -32042] = "UrlElicitationRequired"; -})(ErrorCode2 || (ErrorCode2 = {})); -var JSONRPCErrorSchema = object22({ - jsonrpc: literal3(JSONRPC_VERSION2), - id: RequestIdSchema2, - error: object22({ - code: number22().int(), - message: string22(), - data: optional3(unknown3()) - }) -}).strict(); -var JSONRPCMessageSchema2 = union3([JSONRPCRequestSchema2, JSONRPCNotificationSchema2, JSONRPCResponseSchema2, JSONRPCErrorSchema]); -var EmptyResultSchema2 = ResultSchema2.strict(); -var CancelledNotificationParamsSchema2 = NotificationsParamsSchema2.extend({ - requestId: RequestIdSchema2, - reason: string22().optional() -}); -var CancelledNotificationSchema2 = NotificationSchema2.extend({ - method: literal3("notifications/cancelled"), - params: CancelledNotificationParamsSchema2 -}); -var IconSchema2 = object22({ - src: string22(), - mimeType: string22().optional(), - sizes: array3(string22()).optional() -}); -var IconsSchema2 = object22({ - icons: array3(IconSchema2).optional() -}); -var BaseMetadataSchema2 = object22({ - name: string22(), - title: string22().optional() -}); -var ImplementationSchema2 = BaseMetadataSchema2.extend({ - ...BaseMetadataSchema2.shape, - ...IconsSchema2.shape, - version: string22(), - websiteUrl: string22().optional() -}); -var FormElicitationCapabilitySchema2 = intersection3(object22({ - applyDefaults: boolean22().optional() -}), record3(string22(), unknown3())); -var ElicitationCapabilitySchema2 = preprocess2((value) => { - if (value && typeof value === "object" && !Array.isArray(value)) { - if (Object.keys(value).length === 0) { - return { form: {} }; - } - } - return value; -}, intersection3(object22({ - form: FormElicitationCapabilitySchema2.optional(), - url: AssertObjectSchema2.optional() -}), record3(string22(), unknown3()).optional())); -var ClientTasksCapabilitySchema2 = object22({ - list: optional3(object22({}).passthrough()), - cancel: optional3(object22({}).passthrough()), - requests: optional3(object22({ - sampling: optional3(object22({ - createMessage: optional3(object22({}).passthrough()) - }).passthrough()), - elicitation: optional3(object22({ - create: optional3(object22({}).passthrough()) - }).passthrough()) - }).passthrough()) -}).passthrough(); -var ServerTasksCapabilitySchema2 = object22({ - list: optional3(object22({}).passthrough()), - cancel: optional3(object22({}).passthrough()), - requests: optional3(object22({ - tools: optional3(object22({ - call: optional3(object22({}).passthrough()) - }).passthrough()) - }).passthrough()) -}).passthrough(); -var ClientCapabilitiesSchema2 = object22({ - experimental: record3(string22(), AssertObjectSchema2).optional(), - sampling: object22({ - context: AssertObjectSchema2.optional(), - tools: AssertObjectSchema2.optional() - }).optional(), - elicitation: ElicitationCapabilitySchema2.optional(), - roots: object22({ - listChanged: boolean22().optional() - }).optional(), - tasks: optional3(ClientTasksCapabilitySchema2) -}); -var InitializeRequestParamsSchema2 = BaseRequestParamsSchema2.extend({ - protocolVersion: string22(), - capabilities: ClientCapabilitiesSchema2, - clientInfo: ImplementationSchema2 -}); -var InitializeRequestSchema2 = RequestSchema2.extend({ - method: literal3("initialize"), - params: InitializeRequestParamsSchema2 -}); -var ServerCapabilitiesSchema2 = object22({ - experimental: record3(string22(), AssertObjectSchema2).optional(), - logging: AssertObjectSchema2.optional(), - completions: AssertObjectSchema2.optional(), - prompts: optional3(object22({ - listChanged: optional3(boolean22()) - })), - resources: object22({ - subscribe: boolean22().optional(), - listChanged: boolean22().optional() - }).optional(), - tools: object22({ - listChanged: boolean22().optional() - }).optional(), - tasks: optional3(ServerTasksCapabilitySchema2) -}).passthrough(); -var InitializeResultSchema2 = ResultSchema2.extend({ - protocolVersion: string22(), - capabilities: ServerCapabilitiesSchema2, - serverInfo: ImplementationSchema2, - instructions: string22().optional() -}); -var InitializedNotificationSchema2 = NotificationSchema2.extend({ - method: literal3("notifications/initialized") -}); -var PingRequestSchema2 = RequestSchema2.extend({ - method: literal3("ping") -}); -var ProgressSchema2 = object22({ - progress: number22(), - total: optional3(number22()), - message: optional3(string22()) -}); -var ProgressNotificationParamsSchema2 = object22({ - ...NotificationsParamsSchema2.shape, - ...ProgressSchema2.shape, - progressToken: ProgressTokenSchema2 -}); -var ProgressNotificationSchema2 = NotificationSchema2.extend({ - method: literal3("notifications/progress"), - params: ProgressNotificationParamsSchema2 -}); -var PaginatedRequestParamsSchema2 = BaseRequestParamsSchema2.extend({ - cursor: CursorSchema2.optional() -}); -var PaginatedRequestSchema2 = RequestSchema2.extend({ - params: PaginatedRequestParamsSchema2.optional() -}); -var PaginatedResultSchema2 = ResultSchema2.extend({ - nextCursor: optional3(CursorSchema2) -}); -var TaskSchema2 = object22({ - taskId: string22(), - status: _enum2(["working", "input_required", "completed", "failed", "cancelled"]), - ttl: union3([number22(), _null32()]), - createdAt: string22(), - lastUpdatedAt: string22(), - pollInterval: optional3(number22()), - statusMessage: optional3(string22()) -}); -var CreateTaskResultSchema2 = ResultSchema2.extend({ - task: TaskSchema2 -}); -var TaskStatusNotificationParamsSchema2 = NotificationsParamsSchema2.merge(TaskSchema2); -var TaskStatusNotificationSchema2 = NotificationSchema2.extend({ - method: literal3("notifications/tasks/status"), - params: TaskStatusNotificationParamsSchema2 -}); -var GetTaskRequestSchema2 = RequestSchema2.extend({ - method: literal3("tasks/get"), - params: BaseRequestParamsSchema2.extend({ - taskId: string22() - }) -}); -var GetTaskResultSchema2 = ResultSchema2.merge(TaskSchema2); -var GetTaskPayloadRequestSchema2 = RequestSchema2.extend({ - method: literal3("tasks/result"), - params: BaseRequestParamsSchema2.extend({ - taskId: string22() - }) -}); -var ListTasksRequestSchema2 = PaginatedRequestSchema2.extend({ - method: literal3("tasks/list") -}); -var ListTasksResultSchema2 = PaginatedResultSchema2.extend({ - tasks: array3(TaskSchema2) -}); -var CancelTaskRequestSchema2 = RequestSchema2.extend({ - method: literal3("tasks/cancel"), - params: BaseRequestParamsSchema2.extend({ - taskId: string22() - }) -}); -var CancelTaskResultSchema2 = ResultSchema2.merge(TaskSchema2); -var ResourceContentsSchema2 = object22({ - uri: string22(), - mimeType: optional3(string22()), - _meta: record3(string22(), unknown3()).optional() -}); -var TextResourceContentsSchema2 = ResourceContentsSchema2.extend({ - text: string22() -}); -var Base64Schema2 = string22().refine((val) => { - try { - atob(val); - return true; - } catch (_a2) { - return false; - } -}, { message: "Invalid Base64 string" }); -var BlobResourceContentsSchema2 = ResourceContentsSchema2.extend({ - blob: Base64Schema2 -}); -var AnnotationsSchema2 = object22({ - audience: array3(_enum2(["user", "assistant"])).optional(), - priority: number22().min(0).max(1).optional(), - lastModified: exports_iso2.datetime({ offset: true }).optional() -}); -var ResourceSchema2 = object22({ - ...BaseMetadataSchema2.shape, - ...IconsSchema2.shape, - uri: string22(), - description: optional3(string22()), - mimeType: optional3(string22()), - annotations: AnnotationsSchema2.optional(), - _meta: optional3(looseObject2({})) -}); -var ResourceTemplateSchema2 = object22({ - ...BaseMetadataSchema2.shape, - ...IconsSchema2.shape, - uriTemplate: string22(), - description: optional3(string22()), - mimeType: optional3(string22()), - annotations: AnnotationsSchema2.optional(), - _meta: optional3(looseObject2({})) -}); -var ListResourcesRequestSchema2 = PaginatedRequestSchema2.extend({ - method: literal3("resources/list") -}); -var ListResourcesResultSchema2 = PaginatedResultSchema2.extend({ - resources: array3(ResourceSchema2) -}); -var ListResourceTemplatesRequestSchema2 = PaginatedRequestSchema2.extend({ - method: literal3("resources/templates/list") -}); -var ListResourceTemplatesResultSchema2 = PaginatedResultSchema2.extend({ - resourceTemplates: array3(ResourceTemplateSchema2) -}); -var ResourceRequestParamsSchema2 = BaseRequestParamsSchema2.extend({ - uri: string22() -}); -var ReadResourceRequestParamsSchema2 = ResourceRequestParamsSchema2; -var ReadResourceRequestSchema2 = RequestSchema2.extend({ - method: literal3("resources/read"), - params: ReadResourceRequestParamsSchema2 -}); -var ReadResourceResultSchema2 = ResultSchema2.extend({ - contents: array3(union3([TextResourceContentsSchema2, BlobResourceContentsSchema2])) -}); -var ResourceListChangedNotificationSchema2 = NotificationSchema2.extend({ - method: literal3("notifications/resources/list_changed") -}); -var SubscribeRequestParamsSchema2 = ResourceRequestParamsSchema2; -var SubscribeRequestSchema2 = RequestSchema2.extend({ - method: literal3("resources/subscribe"), - params: SubscribeRequestParamsSchema2 -}); -var UnsubscribeRequestParamsSchema2 = ResourceRequestParamsSchema2; -var UnsubscribeRequestSchema2 = RequestSchema2.extend({ - method: literal3("resources/unsubscribe"), - params: UnsubscribeRequestParamsSchema2 -}); -var ResourceUpdatedNotificationParamsSchema2 = NotificationsParamsSchema2.extend({ - uri: string22() -}); -var ResourceUpdatedNotificationSchema2 = NotificationSchema2.extend({ - method: literal3("notifications/resources/updated"), - params: ResourceUpdatedNotificationParamsSchema2 -}); -var PromptArgumentSchema2 = object22({ - name: string22(), - description: optional3(string22()), - required: optional3(boolean22()) -}); -var PromptSchema2 = object22({ - ...BaseMetadataSchema2.shape, - ...IconsSchema2.shape, - description: optional3(string22()), - arguments: optional3(array3(PromptArgumentSchema2)), - _meta: optional3(looseObject2({})) -}); -var ListPromptsRequestSchema2 = PaginatedRequestSchema2.extend({ - method: literal3("prompts/list") -}); -var ListPromptsResultSchema2 = PaginatedResultSchema2.extend({ - prompts: array3(PromptSchema2) -}); -var GetPromptRequestParamsSchema2 = BaseRequestParamsSchema2.extend({ - name: string22(), - arguments: record3(string22(), string22()).optional() -}); -var GetPromptRequestSchema2 = RequestSchema2.extend({ - method: literal3("prompts/get"), - params: GetPromptRequestParamsSchema2 -}); -var TextContentSchema2 = object22({ - type: literal3("text"), - text: string22(), - annotations: AnnotationsSchema2.optional(), - _meta: record3(string22(), unknown3()).optional() -}); -var ImageContentSchema2 = object22({ - type: literal3("image"), - data: Base64Schema2, - mimeType: string22(), - annotations: AnnotationsSchema2.optional(), - _meta: record3(string22(), unknown3()).optional() -}); -var AudioContentSchema2 = object22({ - type: literal3("audio"), - data: Base64Schema2, - mimeType: string22(), - annotations: AnnotationsSchema2.optional(), - _meta: record3(string22(), unknown3()).optional() -}); -var ToolUseContentSchema2 = object22({ - type: literal3("tool_use"), - name: string22(), - id: string22(), - input: object22({}).passthrough(), - _meta: optional3(object22({}).passthrough()) -}).passthrough(); -var EmbeddedResourceSchema2 = object22({ - type: literal3("resource"), - resource: union3([TextResourceContentsSchema2, BlobResourceContentsSchema2]), - annotations: AnnotationsSchema2.optional(), - _meta: record3(string22(), unknown3()).optional() -}); -var ResourceLinkSchema2 = ResourceSchema2.extend({ - type: literal3("resource_link") -}); -var ContentBlockSchema2 = union3([ - TextContentSchema2, - ImageContentSchema2, - AudioContentSchema2, - ResourceLinkSchema2, - EmbeddedResourceSchema2 -]); -var PromptMessageSchema2 = object22({ - role: _enum2(["user", "assistant"]), - content: ContentBlockSchema2 -}); -var GetPromptResultSchema2 = ResultSchema2.extend({ - description: optional3(string22()), - messages: array3(PromptMessageSchema2) -}); -var PromptListChangedNotificationSchema2 = NotificationSchema2.extend({ - method: literal3("notifications/prompts/list_changed") -}); -var ToolAnnotationsSchema2 = object22({ - title: string22().optional(), - readOnlyHint: boolean22().optional(), - destructiveHint: boolean22().optional(), - idempotentHint: boolean22().optional(), - openWorldHint: boolean22().optional() -}); -var ToolExecutionSchema2 = object22({ - taskSupport: _enum2(["required", "optional", "forbidden"]).optional() -}); -var ToolSchema2 = object22({ - ...BaseMetadataSchema2.shape, - ...IconsSchema2.shape, - description: string22().optional(), - inputSchema: object22({ - type: literal3("object"), - properties: record3(string22(), AssertObjectSchema2).optional(), - required: array3(string22()).optional() - }).catchall(unknown3()), - outputSchema: object22({ - type: literal3("object"), - properties: record3(string22(), AssertObjectSchema2).optional(), - required: array3(string22()).optional() - }).catchall(unknown3()).optional(), - annotations: optional3(ToolAnnotationsSchema2), - execution: optional3(ToolExecutionSchema2), - _meta: record3(string22(), unknown3()).optional() -}); -var ListToolsRequestSchema2 = PaginatedRequestSchema2.extend({ - method: literal3("tools/list") -}); -var ListToolsResultSchema2 = PaginatedResultSchema2.extend({ - tools: array3(ToolSchema2) -}); -var CallToolResultSchema2 = ResultSchema2.extend({ - content: array3(ContentBlockSchema2).default([]), - structuredContent: record3(string22(), unknown3()).optional(), - isError: optional3(boolean22()) -}); -var CompatibilityCallToolResultSchema2 = CallToolResultSchema2.or(ResultSchema2.extend({ - toolResult: unknown3() -})); -var CallToolRequestParamsSchema2 = BaseRequestParamsSchema2.extend({ - name: string22(), - arguments: optional3(record3(string22(), unknown3())) -}); -var CallToolRequestSchema2 = RequestSchema2.extend({ - method: literal3("tools/call"), - params: CallToolRequestParamsSchema2 -}); -var ToolListChangedNotificationSchema2 = NotificationSchema2.extend({ - method: literal3("notifications/tools/list_changed") -}); -var LoggingLevelSchema2 = _enum2(["debug", "info", "notice", "warning", "error", "critical", "alert", "emergency"]); -var SetLevelRequestParamsSchema2 = BaseRequestParamsSchema2.extend({ - level: LoggingLevelSchema2 -}); -var SetLevelRequestSchema2 = RequestSchema2.extend({ - method: literal3("logging/setLevel"), - params: SetLevelRequestParamsSchema2 -}); -var LoggingMessageNotificationParamsSchema2 = NotificationsParamsSchema2.extend({ - level: LoggingLevelSchema2, - logger: string22().optional(), - data: unknown3() -}); -var LoggingMessageNotificationSchema2 = NotificationSchema2.extend({ - method: literal3("notifications/message"), - params: LoggingMessageNotificationParamsSchema2 -}); -var ModelHintSchema2 = object22({ - name: string22().optional() -}); -var ModelPreferencesSchema2 = object22({ - hints: optional3(array3(ModelHintSchema2)), - costPriority: optional3(number22().min(0).max(1)), - speedPriority: optional3(number22().min(0).max(1)), - intelligencePriority: optional3(number22().min(0).max(1)) -}); -var ToolChoiceSchema2 = object22({ - mode: optional3(_enum2(["auto", "required", "none"])) -}); -var ToolResultContentSchema2 = object22({ - type: literal3("tool_result"), - toolUseId: string22().describe("The unique identifier for the corresponding tool call."), - content: array3(ContentBlockSchema2).default([]), - structuredContent: object22({}).passthrough().optional(), - isError: optional3(boolean22()), - _meta: optional3(object22({}).passthrough()) -}).passthrough(); -var SamplingContentSchema2 = discriminatedUnion2("type", [TextContentSchema2, ImageContentSchema2, AudioContentSchema2]); -var SamplingMessageContentBlockSchema2 = discriminatedUnion2("type", [ - TextContentSchema2, - ImageContentSchema2, - AudioContentSchema2, - ToolUseContentSchema2, - ToolResultContentSchema2 -]); -var SamplingMessageSchema2 = object22({ - role: _enum2(["user", "assistant"]), - content: union3([SamplingMessageContentBlockSchema2, array3(SamplingMessageContentBlockSchema2)]), - _meta: optional3(object22({}).passthrough()) -}).passthrough(); -var CreateMessageRequestParamsSchema2 = BaseRequestParamsSchema2.extend({ - messages: array3(SamplingMessageSchema2), - modelPreferences: ModelPreferencesSchema2.optional(), - systemPrompt: string22().optional(), - includeContext: _enum2(["none", "thisServer", "allServers"]).optional(), - temperature: number22().optional(), - maxTokens: number22().int(), - stopSequences: array3(string22()).optional(), - metadata: AssertObjectSchema2.optional(), - tools: optional3(array3(ToolSchema2)), - toolChoice: optional3(ToolChoiceSchema2) -}); -var CreateMessageRequestSchema2 = RequestSchema2.extend({ - method: literal3("sampling/createMessage"), - params: CreateMessageRequestParamsSchema2 -}); -var CreateMessageResultSchema2 = ResultSchema2.extend({ - model: string22(), - stopReason: optional3(_enum2(["endTurn", "stopSequence", "maxTokens"]).or(string22())), - role: _enum2(["user", "assistant"]), - content: SamplingContentSchema2 -}); -var CreateMessageResultWithToolsSchema2 = ResultSchema2.extend({ - model: string22(), - stopReason: optional3(_enum2(["endTurn", "stopSequence", "maxTokens", "toolUse"]).or(string22())), - role: _enum2(["user", "assistant"]), - content: union3([SamplingMessageContentBlockSchema2, array3(SamplingMessageContentBlockSchema2)]) -}); -var BooleanSchemaSchema2 = object22({ - type: literal3("boolean"), - title: string22().optional(), - description: string22().optional(), - default: boolean22().optional() -}); -var StringSchemaSchema2 = object22({ - type: literal3("string"), - title: string22().optional(), - description: string22().optional(), - minLength: number22().optional(), - maxLength: number22().optional(), - format: _enum2(["email", "uri", "date", "date-time"]).optional(), - default: string22().optional() -}); -var NumberSchemaSchema2 = object22({ - type: _enum2(["number", "integer"]), - title: string22().optional(), - description: string22().optional(), - minimum: number22().optional(), - maximum: number22().optional(), - default: number22().optional() -}); -var UntitledSingleSelectEnumSchemaSchema2 = object22({ - type: literal3("string"), - title: string22().optional(), - description: string22().optional(), - enum: array3(string22()), - default: string22().optional() -}); -var TitledSingleSelectEnumSchemaSchema2 = object22({ - type: literal3("string"), - title: string22().optional(), - description: string22().optional(), - oneOf: array3(object22({ - const: string22(), - title: string22() - })), - default: string22().optional() -}); -var LegacyTitledEnumSchemaSchema2 = object22({ - type: literal3("string"), - title: string22().optional(), - description: string22().optional(), - enum: array3(string22()), - enumNames: array3(string22()).optional(), - default: string22().optional() -}); -var SingleSelectEnumSchemaSchema2 = union3([UntitledSingleSelectEnumSchemaSchema2, TitledSingleSelectEnumSchemaSchema2]); -var UntitledMultiSelectEnumSchemaSchema2 = object22({ - type: literal3("array"), - title: string22().optional(), - description: string22().optional(), - minItems: number22().optional(), - maxItems: number22().optional(), - items: object22({ - type: literal3("string"), - enum: array3(string22()) - }), - default: array3(string22()).optional() -}); -var TitledMultiSelectEnumSchemaSchema2 = object22({ - type: literal3("array"), - title: string22().optional(), - description: string22().optional(), - minItems: number22().optional(), - maxItems: number22().optional(), - items: object22({ - anyOf: array3(object22({ - const: string22(), - title: string22() - })) - }), - default: array3(string22()).optional() -}); -var MultiSelectEnumSchemaSchema2 = union3([UntitledMultiSelectEnumSchemaSchema2, TitledMultiSelectEnumSchemaSchema2]); -var EnumSchemaSchema2 = union3([LegacyTitledEnumSchemaSchema2, SingleSelectEnumSchemaSchema2, MultiSelectEnumSchemaSchema2]); -var PrimitiveSchemaDefinitionSchema2 = union3([EnumSchemaSchema2, BooleanSchemaSchema2, StringSchemaSchema2, NumberSchemaSchema2]); -var ElicitRequestFormParamsSchema2 = BaseRequestParamsSchema2.extend({ - mode: literal3("form").optional(), - message: string22(), - requestedSchema: object22({ - type: literal3("object"), - properties: record3(string22(), PrimitiveSchemaDefinitionSchema2), - required: array3(string22()).optional() - }) -}); -var ElicitRequestURLParamsSchema2 = BaseRequestParamsSchema2.extend({ - mode: literal3("url"), - message: string22(), - elicitationId: string22(), - url: string22().url() -}); -var ElicitRequestParamsSchema2 = union3([ElicitRequestFormParamsSchema2, ElicitRequestURLParamsSchema2]); -var ElicitRequestSchema2 = RequestSchema2.extend({ - method: literal3("elicitation/create"), - params: ElicitRequestParamsSchema2 -}); -var ElicitationCompleteNotificationParamsSchema2 = NotificationsParamsSchema2.extend({ - elicitationId: string22() -}); -var ElicitationCompleteNotificationSchema2 = NotificationSchema2.extend({ - method: literal3("notifications/elicitation/complete"), - params: ElicitationCompleteNotificationParamsSchema2 -}); -var ElicitResultSchema2 = ResultSchema2.extend({ - action: _enum2(["accept", "decline", "cancel"]), - content: preprocess2((val) => val === null ? undefined : val, record3(string22(), union3([string22(), number22(), boolean22(), array3(string22())])).optional()) -}); -var ResourceTemplateReferenceSchema2 = object22({ - type: literal3("ref/resource"), - uri: string22() -}); -var PromptReferenceSchema2 = object22({ - type: literal3("ref/prompt"), - name: string22() -}); -var CompleteRequestParamsSchema2 = BaseRequestParamsSchema2.extend({ - ref: union3([PromptReferenceSchema2, ResourceTemplateReferenceSchema2]), - argument: object22({ - name: string22(), - value: string22() - }), - context: object22({ - arguments: record3(string22(), string22()).optional() - }).optional() -}); -var CompleteRequestSchema2 = RequestSchema2.extend({ - method: literal3("completion/complete"), - params: CompleteRequestParamsSchema2 -}); -var CompleteResultSchema2 = ResultSchema2.extend({ - completion: looseObject2({ - values: array3(string22()).max(100), - total: optional3(number22().int()), - hasMore: optional3(boolean22()) - }) -}); -var RootSchema2 = object22({ - uri: string22().startsWith("file://"), - name: string22().optional(), - _meta: record3(string22(), unknown3()).optional() -}); -var ListRootsRequestSchema2 = RequestSchema2.extend({ - method: literal3("roots/list") -}); -var ListRootsResultSchema2 = ResultSchema2.extend({ - roots: array3(RootSchema2) -}); -var RootsListChangedNotificationSchema2 = NotificationSchema2.extend({ - method: literal3("notifications/roots/list_changed") -}); -var ClientRequestSchema2 = union3([ - PingRequestSchema2, - InitializeRequestSchema2, - CompleteRequestSchema2, - SetLevelRequestSchema2, - GetPromptRequestSchema2, - ListPromptsRequestSchema2, - ListResourcesRequestSchema2, - ListResourceTemplatesRequestSchema2, - ReadResourceRequestSchema2, - SubscribeRequestSchema2, - UnsubscribeRequestSchema2, - CallToolRequestSchema2, - ListToolsRequestSchema2, - GetTaskRequestSchema2, - GetTaskPayloadRequestSchema2, - ListTasksRequestSchema2 -]); -var ClientNotificationSchema2 = union3([ - CancelledNotificationSchema2, - ProgressNotificationSchema2, - InitializedNotificationSchema2, - RootsListChangedNotificationSchema2, - TaskStatusNotificationSchema2 -]); -var ClientResultSchema2 = union3([ - EmptyResultSchema2, - CreateMessageResultSchema2, - CreateMessageResultWithToolsSchema2, - ElicitResultSchema2, - ListRootsResultSchema2, - GetTaskResultSchema2, - ListTasksResultSchema2, - CreateTaskResultSchema2 -]); -var ServerRequestSchema2 = union3([ - PingRequestSchema2, - CreateMessageRequestSchema2, - ElicitRequestSchema2, - ListRootsRequestSchema2, - GetTaskRequestSchema2, - GetTaskPayloadRequestSchema2, - ListTasksRequestSchema2 -]); -var ServerNotificationSchema2 = union3([ - CancelledNotificationSchema2, - ProgressNotificationSchema2, - LoggingMessageNotificationSchema2, - ResourceUpdatedNotificationSchema2, - ResourceListChangedNotificationSchema2, - ToolListChangedNotificationSchema2, - PromptListChangedNotificationSchema2, - TaskStatusNotificationSchema2, - ElicitationCompleteNotificationSchema2 -]); -var ServerResultSchema2 = union3([ - EmptyResultSchema2, - InitializeResultSchema2, - CompleteResultSchema2, - GetPromptResultSchema2, - ListPromptsResultSchema2, - ListResourcesResultSchema2, - ListResourceTemplatesResultSchema2, - ReadResourceResultSchema2, - CallToolResultSchema2, - ListToolsResultSchema2, - GetTaskResultSchema2, - ListTasksResultSchema2, - CreateTaskResultSchema2 -]); -var ignoreOverride2 = Symbol("Let zodToJsonSchema decide on which parser to use"); -var ALPHA_NUMERIC2 = new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789"); -var import_ajv2 = __toESM2(require_ajv2(), 1); -var import_ajv_formats2 = __toESM2(require_dist2(), 1); -var COMPLETABLE_SYMBOL = Symbol.for("mcp.completable"); -var McpZodTypeKind; -(function(McpZodTypeKind2) { - McpZodTypeKind2["Completable"] = "McpCompletable"; -})(McpZodTypeKind || (McpZodTypeKind = {})); -function query({ - prompt, - options -}) { - const { systemPrompt, settingSources, sandbox, ...rest } = options ?? {}; - let customSystemPrompt; - let appendSystemPrompt; - if (systemPrompt === undefined) { - customSystemPrompt = ""; - } else if (typeof systemPrompt === "string") { - customSystemPrompt = systemPrompt; - } else if (systemPrompt.type === "preset") { - appendSystemPrompt = systemPrompt.append; - } - let pathToClaudeCodeExecutable = rest.pathToClaudeCodeExecutable; - if (!pathToClaudeCodeExecutable) { - const filename = fileURLToPath2(import.meta.url); - const dirname22 = join52(filename, ".."); - pathToClaudeCodeExecutable = join52(dirname22, "cli.js"); - } - process.env.CLAUDE_AGENT_SDK_VERSION = "0.1.77"; - const { - abortController = createAbortController(), - additionalDirectories = [], - agents, - allowedTools = [], - betas, - canUseTool, - continue: continueConversation, - cwd: cwd2, - disallowedTools = [], - tools, - env, - executable = isRunningWithBun() ? "bun" : "node", - executableArgs = [], - extraArgs = {}, - fallbackModel, - enableFileCheckpointing, - forkSession, - hooks, - includePartialMessages, - persistSession, - maxThinkingTokens, - maxTurns, - maxBudgetUsd, - mcpServers, - model, - outputFormat, - permissionMode = "default", - allowDangerouslySkipPermissions = false, - permissionPromptToolName, - plugins, - resume, - resumeSessionAt, - stderr, - strictMcpConfig - } = rest; - const jsonSchema = outputFormat?.type === "json_schema" ? outputFormat.schema : undefined; - let processEnv = env; - if (!processEnv) { - processEnv = { ...process.env }; - } - if (!processEnv.CLAUDE_CODE_ENTRYPOINT) { - processEnv.CLAUDE_CODE_ENTRYPOINT = "sdk-ts"; - } - if (enableFileCheckpointing) { - processEnv.CLAUDE_CODE_ENABLE_SDK_FILE_CHECKPOINTING = "true"; - } - if (!pathToClaudeCodeExecutable) { - throw new Error("pathToClaudeCodeExecutable is required"); - } - const allMcpServers = {}; - const sdkMcpServers = new Map; - if (mcpServers) { - for (const [name, config22] of Object.entries(mcpServers)) { - if (config22.type === "sdk" && "instance" in config22) { - sdkMcpServers.set(name, config22.instance); - allMcpServers[name] = { - type: "sdk", - name - }; - } else { - allMcpServers[name] = config22; - } - } - } - const isSingleUserTurn = typeof prompt === "string"; - const transport = new ProcessTransport({ - abortController, - additionalDirectories, - betas, - cwd: cwd2, - executable, - executableArgs, - extraArgs, - pathToClaudeCodeExecutable, - env: processEnv, - forkSession, - stderr, - maxThinkingTokens, - maxTurns, - maxBudgetUsd, - model, - fallbackModel, - jsonSchema, - permissionMode, - allowDangerouslySkipPermissions, - permissionPromptToolName, - continueConversation, - resume, - resumeSessionAt, - settingSources: settingSources ?? [], - allowedTools, - disallowedTools, - tools, - mcpServers: allMcpServers, - strictMcpConfig, - canUseTool: !!canUseTool, - hooks: !!hooks, - includePartialMessages, - persistSession, - plugins, - sandbox, - spawnClaudeCodeProcess: rest.spawnClaudeCodeProcess - }); - const initConfig = { - systemPrompt: customSystemPrompt, - appendSystemPrompt, - agents - }; - const queryInstance = new Query(transport, isSingleUserTurn, canUseTool, hooks, abortController, sdkMcpServers, jsonSchema, initConfig); - if (typeof prompt === "string") { - transport.write(jsonStringify({ - type: "user", - session_id: "", - message: { - role: "user", - content: [{ type: "text", text: prompt }] - }, - parent_tool_use_id: null - }) + ` -`); - } else { - queryInstance.streamInput(prompt); - } - return queryInstance; -} - -// src/services/worker/SDKAgent.ts -class SDKAgent { - dbManager; - sessionManager; - constructor(dbManager, sessionManager) { - this.dbManager = dbManager; - this.sessionManager = sessionManager; - } - async startSession(session, worker) { - const cwdTracker = { lastCwd: undefined }; - const claudePath = this.findClaudeExecutable(); - const modelId = this.getModelId(); - const disallowedTools = [ - "Bash", - "Read", - "Write", - "Edit", - "Grep", - "Glob", - "WebFetch", - "WebSearch", - "Task", - "NotebookEdit", - "AskUserQuestion", - "TodoWrite" - ]; - const messageGenerator = this.createMessageGenerator(session, cwdTracker); - const hasRealMemorySessionId = !!session.memorySessionId; - const shouldResume = hasRealMemorySessionId && session.lastPromptNumber > 1 && !session.forceInit; - if (session.forceInit) { - logger.info("SDK", "forceInit flag set, starting fresh SDK session", { - sessionDbId: session.sessionDbId, - previousMemorySessionId: session.memorySessionId - }); - session.forceInit = false; - } - const settings = SettingsDefaultsManager.loadFromFile(USER_SETTINGS_PATH); - const maxConcurrent = parseInt(settings.CLAUDE_MEM_MAX_CONCURRENT_AGENTS, 10) || 2; - await waitForSlot(maxConcurrent); - const isolatedEnv = sanitizeEnv(buildIsolatedEnv()); - const authMethod = getAuthMethodDescription(); - logger.info("SDK", "Starting SDK query", { - sessionDbId: session.sessionDbId, - contentSessionId: session.contentSessionId, - memorySessionId: session.memorySessionId, - hasRealMemorySessionId, - shouldResume, - resume_parameter: shouldResume ? session.memorySessionId : "(none - fresh start)", - lastPromptNumber: session.lastPromptNumber, - authMethod - }); - if (session.lastPromptNumber > 1) { - logger.debug("SDK", `[ALIGNMENT] Resume Decision | contentSessionId=${session.contentSessionId} | memorySessionId=${session.memorySessionId} | prompt#=${session.lastPromptNumber} | hasRealMemorySessionId=${hasRealMemorySessionId} | shouldResume=${shouldResume} | resumeWith=${shouldResume ? session.memorySessionId : "NONE"}`); - } else { - const hasStaleMemoryId = hasRealMemorySessionId; - logger.debug("SDK", `[ALIGNMENT] First Prompt (INIT) | contentSessionId=${session.contentSessionId} | prompt#=${session.lastPromptNumber} | hasStaleMemoryId=${hasStaleMemoryId} | action=START_FRESH | Will capture new memorySessionId from SDK response`); - if (hasStaleMemoryId) { - logger.warn("SDK", `Skipping resume for INIT prompt despite existing memorySessionId=${session.memorySessionId} - SDK context was lost (worker restart or crash recovery)`); - } - } - ensureDir(OBSERVER_SESSIONS_DIR); - const queryResult = query({ - prompt: messageGenerator, - options: { - model: modelId, - cwd: OBSERVER_SESSIONS_DIR, - ...shouldResume && { resume: session.memorySessionId }, - disallowedTools, - abortController: session.abortController, - pathToClaudeCodeExecutable: claudePath, - spawnClaudeCodeProcess: createPidCapturingSpawn(session.sessionDbId), - env: isolatedEnv - } - }); - try { - for await (const message of queryResult) { - if (message.session_id && message.session_id !== session.memorySessionId) { - const previousId = session.memorySessionId; - session.memorySessionId = message.session_id; - this.dbManager.getSessionStore().ensureMemorySessionIdRegistered(session.sessionDbId, message.session_id); - const verification = this.dbManager.getSessionStore().getSessionById(session.sessionDbId); - const dbVerified = verification?.memory_session_id === message.session_id; - const logMessage = previousId ? `MEMORY_ID_CHANGED | sessionDbId=${session.sessionDbId} | from=${previousId} | to=${message.session_id} | dbVerified=${dbVerified}` : `MEMORY_ID_CAPTURED | sessionDbId=${session.sessionDbId} | memorySessionId=${message.session_id} | dbVerified=${dbVerified}`; - logger.info("SESSION", logMessage, { - sessionId: session.sessionDbId, - memorySessionId: message.session_id, - previousId - }); - if (!dbVerified) { - logger.error("SESSION", `MEMORY_ID_MISMATCH | sessionDbId=${session.sessionDbId} | expected=${message.session_id} | got=${verification?.memory_session_id}`, { - sessionId: session.sessionDbId - }); - } - logger.debug("SDK", `[ALIGNMENT] ${previousId ? "Updated" : "Captured"} | contentSessionId=${session.contentSessionId} → memorySessionId=${message.session_id} | Future prompts will resume with this ID`); - } - if (message.type === "assistant") { - const content = message.message.content; - const textContent = Array.isArray(content) ? content.filter((c) => c.type === "text").map((c) => c.text).join(` -`) : typeof content === "string" ? content : ""; - if (textContent.includes("prompt is too long") || textContent.includes("context window")) { - logger.error("SDK", "Context overflow detected - terminating session"); - session.abortController.abort(); - return; - } - const responseSize = textContent.length; - const tokensBeforeResponse = session.cumulativeInputTokens + session.cumulativeOutputTokens; - const usage = message.message.usage; - if (usage) { - session.cumulativeInputTokens += usage.input_tokens || 0; - session.cumulativeOutputTokens += usage.output_tokens || 0; - if (usage.cache_creation_input_tokens) { - session.cumulativeInputTokens += usage.cache_creation_input_tokens; - } - logger.debug("SDK", "Token usage captured", { - sessionId: session.sessionDbId, - inputTokens: usage.input_tokens, - outputTokens: usage.output_tokens, - cacheCreation: usage.cache_creation_input_tokens || 0, - cacheRead: usage.cache_read_input_tokens || 0, - cumulativeInput: session.cumulativeInputTokens, - cumulativeOutput: session.cumulativeOutputTokens - }); - } - const discoveryTokens = session.cumulativeInputTokens + session.cumulativeOutputTokens - tokensBeforeResponse; - const originalTimestamp = session.earliestPendingTimestamp; - if (responseSize > 0) { - const truncatedResponse = responseSize > 100 ? textContent.substring(0, 100) + "..." : textContent; - logger.dataOut("SDK", `Response received (${responseSize} chars)`, { - sessionId: session.sessionDbId, - promptNumber: session.lastPromptNumber - }, truncatedResponse); - } - if (typeof textContent === "string" && textContent.includes("Prompt is too long")) { - throw new Error("Claude session context overflow: prompt is too long"); - } - if (typeof textContent === "string" && textContent.includes("Invalid API key")) { - throw new Error("Invalid API key: check your API key configuration in ~/.claude-mem/settings.json or ~/.claude-mem/.env"); - } - await processAgentResponse(textContent, session, this.dbManager, this.sessionManager, worker, discoveryTokens, originalTimestamp, "SDK", cwdTracker.lastCwd); - } - if (message.type === "result" && message.subtype === "success") {} - } - } finally { - const tracked = getProcessBySession(session.sessionDbId); - if (tracked && tracked.process.exitCode === null) { - await ensureProcessExit(tracked, 5000); - } - } - const sessionDuration = Date.now() - session.startTime; - logger.success("SDK", "Agent completed", { - sessionId: session.sessionDbId, - duration: `${(sessionDuration / 1000).toFixed(1)}s` - }); - } - async* createMessageGenerator(session, cwdTracker) { - const mode = ModeManager.getInstance().getActiveMode(); - const isInitPrompt = session.lastPromptNumber === 1; - logger.info("SDK", "Creating message generator", { - sessionDbId: session.sessionDbId, - contentSessionId: session.contentSessionId, - lastPromptNumber: session.lastPromptNumber, - isInitPrompt, - promptType: isInitPrompt ? "INIT" : "CONTINUATION" - }); - const initPrompt = isInitPrompt ? buildInitPrompt(session.project, session.contentSessionId, session.userPrompt, mode) : buildContinuationPrompt(session.userPrompt, session.lastPromptNumber, session.contentSessionId, mode); - session.conversationHistory.push({ role: "user", content: initPrompt }); - yield { - type: "user", - message: { - role: "user", - content: initPrompt - }, - session_id: session.contentSessionId, - parent_tool_use_id: null, - isSynthetic: true - }; - for await (const message of this.sessionManager.getMessageIterator(session.sessionDbId)) { - session.processingMessageIds.push(message._persistentId); - if (message.cwd) { - cwdTracker.lastCwd = message.cwd; - } - if (message.type === "observation") { - if (message.prompt_number !== undefined) { - session.lastPromptNumber = message.prompt_number; - } - const obsPrompt = buildObservationPrompt({ - id: 0, - tool_name: message.tool_name, - tool_input: JSON.stringify(message.tool_input), - tool_output: JSON.stringify(message.tool_response), - created_at_epoch: Date.now(), - cwd: message.cwd - }); - session.conversationHistory.push({ role: "user", content: obsPrompt }); - yield { - type: "user", - message: { - role: "user", - content: obsPrompt - }, - session_id: session.contentSessionId, - parent_tool_use_id: null, - isSynthetic: true - }; - } else if (message.type === "summarize") { - const summaryPrompt = buildSummaryPrompt({ - id: session.sessionDbId, - memory_session_id: session.memorySessionId, - project: session.project, - user_prompt: session.userPrompt, - last_assistant_message: message.last_assistant_message || "" - }, mode); - session.conversationHistory.push({ role: "user", content: summaryPrompt }); - yield { - type: "user", - message: { - role: "user", - content: summaryPrompt - }, - session_id: session.contentSessionId, - parent_tool_use_id: null, - isSynthetic: true - }; - } - } - } - findClaudeExecutable() { - const settings = SettingsDefaultsManager.loadFromFile(USER_SETTINGS_PATH); - if (settings.CLAUDE_CODE_PATH) { - const { existsSync: existsSync14 } = __require("fs"); - if (!existsSync14(settings.CLAUDE_CODE_PATH)) { - throw new Error(`CLAUDE_CODE_PATH is set to "${settings.CLAUDE_CODE_PATH}" but the file does not exist.`); - } - return settings.CLAUDE_CODE_PATH; - } - if (process.platform === "win32") { - try { - execSync4("where claude.cmd", { encoding: "utf8", windowsHide: true, stdio: ["ignore", "pipe", "ignore"] }); - return "claude.cmd"; - } catch {} - } - try { - const claudePath = execSync4(process.platform === "win32" ? "where claude" : "which claude", { encoding: "utf8", windowsHide: true, stdio: ["ignore", "pipe", "ignore"] }).trim().split(` -`)[0].trim(); - if (claudePath) - return claudePath; - } catch (error3) { - logger.debug("SDK", "Claude executable auto-detection failed", {}, error3); - } - throw new Error(`Claude executable not found. Please either: + path: iss.path ? [${Pc(x)}, ...iss.path] : [${Pc(x)}] + })));`),p.write(`newResult[${Pc(x)}] = ${b}.value`)}p.write("payload.value = newResult;"),p.write("return payload;");let v=p.compile();return(x,b)=>v(d,x,b)},i,s=np,o=!Ak.jitless,c=o&&X2.value,u=e.catchall,l;t._zod.parse=(d,p)=>{l??(l=r.value);let m=d.value;if(!s(m))return d.issues.push({expected:"object",code:"invalid_type",input:m,inst:t}),d;let f=[];if(o&&c&&p?.async===!1&&p.jitless!==!0)i||(i=n(e.shape)),d=i(d,p);else{d.value={};let b=l.shape;for(let _ of l.keys){let S=b[_],w=S._zod.run({value:m[_],issues:[]},p),E=S._zod.optin==="optional"&&S._zod.optout==="optional";w instanceof Promise?f.push(w.then($=>E?WU($,d,_,m):gg($,d,_))):E?WU(w,d,_,m):gg(w,d,_)}}if(!u)return f.length?Promise.all(f).then(()=>d):d;let g=[],h=l.keySet,v=u._zod,x=v.def.type;for(let b of Object.keys(m)){if(h.has(b))continue;if(x==="never"){g.push(b);continue}let _=v.run({value:m[b],issues:[]},p);_ instanceof Promise?f.push(_.then(S=>gg(S,d,b))):gg(_,d,b)}return g.length&&d.issues.push({code:"unrecognized_keys",keys:g,input:m,inst:t}),f.length?Promise.all(f).then(()=>d):d}});function KU(t,e,r,n){for(let i of t)if(i.issues.length===0)return e.value=i.value,e;return e.issues.push({code:"invalid_union",input:e.value,inst:r,errors:t.map(i=>i.issues.map(s=>ds(s,n,ls())))}),e}var h6=F("$ZodUnion",(t,e)=>{jt.init(t,e),Dt(t._zod,"optin",()=>e.options.some(r=>r._zod.optin==="optional")?"optional":void 0),Dt(t._zod,"optout",()=>e.options.some(r=>r._zod.optout==="optional")?"optional":void 0),Dt(t._zod,"values",()=>{if(e.options.every(r=>r._zod.values))return new Set(e.options.flatMap(r=>Array.from(r._zod.values)))}),Dt(t._zod,"pattern",()=>{if(e.options.every(r=>r._zod.pattern)){let r=e.options.map(n=>n._zod.pattern);return new RegExp(`^(${r.map(n=>Mg(n.source)).join("|")})$`)}}),t._zod.parse=(r,n)=>{let i=!1,s=[];for(let o of e.options){let a=o._zod.run({value:r.value,issues:[]},n);if(a instanceof Promise)s.push(a),i=!0;else{if(a.issues.length===0)return a;s.push(a)}}return i?Promise.all(s).then(o=>KU(o,r,t,n)):KU(s,r,t,n)}}),Gde=F("$ZodDiscriminatedUnion",(t,e)=>{h6.init(t,e);let r=t._zod.parse;Dt(t._zod,"propValues",()=>{let i={};for(let s of e.options){let o=s._zod.propValues;if(!o||Object.keys(o).length===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(s)}"`);for(let[a,c]of Object.entries(o)){i[a]||(i[a]=new Set);for(let u of c)i[a].add(u)}}return i});let n=Ag(()=>{let i=e.options,s=new Map;for(let o of i){let a=o._zod.propValues[e.discriminator];if(!a||a.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(o)}"`);for(let c of a){if(s.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);s.set(c,o)}}return s});t._zod.parse=(i,s)=>{let o=i.value;if(!np(o))return i.issues.push({code:"invalid_type",expected:"object",input:o,inst:t}),i;let a=n.value.get(o?.[e.discriminator]);return a?a._zod.run(i,s):e.unionFallback?r(i,s):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",input:o,path:[e.discriminator],inst:t}),i)}}),Wde=F("$ZodIntersection",(t,e)=>{jt.init(t,e),t._zod.parse=(r,n)=>{let i=r.value,s=e.left._zod.run({value:i,issues:[]},n),o=e.right._zod.run({value:i,issues:[]},n);return s instanceof Promise||o instanceof Promise?Promise.all([s,o]).then(([c,u])=>JU(r,c,u)):JU(r,s,o)}});function jk(t,e){if(t===e)return{valid:!0,data:t};if(t instanceof Date&&e instanceof Date&&+t==+e)return{valid:!0,data:t};if(ip(t)&&ip(e)){let r=Object.keys(e),n=Object.keys(t).filter(s=>r.indexOf(s)!==-1),i={...t,...e};for(let s of n){let o=jk(t[s],e[s]);if(!o.valid)return{valid:!1,mergeErrorPath:[s,...o.mergeErrorPath]};i[s]=o.data}return{valid:!0,data:i}}if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let n=0;n{jt.init(t,e),t._zod.parse=(r,n)=>{let i=r.value;if(!ip(i))return r.issues.push({expected:"record",code:"invalid_type",input:i,inst:t}),r;let s=[];if(e.keyType._zod.values){let o=e.keyType._zod.values;r.value={};for(let c of o)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){let u=e.valueType._zod.run({value:i[c],issues:[]},n);u instanceof Promise?s.push(u.then(l=>{l.issues.length&&r.issues.push(...Zs(c,l.issues)),r.value[c]=l.value})):(u.issues.length&&r.issues.push(...Zs(c,u.issues)),r.value[c]=u.value)}let a;for(let c in i)o.has(c)||(a=a??[],a.push(c));a&&a.length>0&&r.issues.push({code:"unrecognized_keys",input:i,inst:t,keys:a})}else{r.value={};for(let o of Reflect.ownKeys(i)){if(o==="__proto__")continue;let a=e.keyType._zod.run({value:o,issues:[]},n);if(a instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(a.issues.length){r.issues.push({origin:"record",code:"invalid_key",issues:a.issues.map(u=>ds(u,n,ls())),input:o,path:[o],inst:t}),r.value[a.value]=a.value;continue}let c=e.valueType._zod.run({value:i[o],issues:[]},n);c instanceof Promise?s.push(c.then(u=>{u.issues.length&&r.issues.push(...Zs(o,u.issues)),r.value[a.value]=u.value})):(c.issues.length&&r.issues.push(...Zs(o,c.issues)),r.value[a.value]=c.value)}}return s.length?Promise.all(s).then(()=>r):r}}),Jde=F("$ZodEnum",(t,e)=>{jt.init(t,e);let r=W2(e.entries);t._zod.values=new Set(r),t._zod.pattern=new RegExp(`^(${r.filter(n=>Y2.has(typeof n)).map(n=>typeof n=="string"?Xc(n):n.toString()).join("|")})$`),t._zod.parse=(n,i)=>{let s=n.value;return t._zod.values.has(s)||n.issues.push({code:"invalid_value",values:r,input:s,inst:t}),n}}),Xde=F("$ZodLiteral",(t,e)=>{jt.init(t,e),t._zod.values=new Set(e.values),t._zod.pattern=new RegExp(`^(${e.values.map(r=>typeof r=="string"?Xc(r):r?r.toString():String(r)).join("|")})$`),t._zod.parse=(r,n)=>{let i=r.value;return t._zod.values.has(i)||r.issues.push({code:"invalid_value",values:e.values,input:i,inst:t}),r}}),Yde=F("$ZodTransform",(t,e)=>{jt.init(t,e),t._zod.parse=(r,n)=>{let i=e.transform(r.value,r);if(n.async)return(i instanceof Promise?i:Promise.resolve(i)).then(o=>(r.value=o,r));if(i instanceof Promise)throw new Zo;return r.value=i,r}}),Qde=F("$ZodOptional",(t,e)=>{jt.init(t,e),t._zod.optin="optional",t._zod.optout="optional",Dt(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,void 0]):void 0),Dt(t._zod,"pattern",()=>{let r=e.innerType._zod.pattern;return r?new RegExp(`^(${Mg(r.source)})?$`):void 0}),t._zod.parse=(r,n)=>e.innerType._zod.optin==="optional"?e.innerType._zod.run(r,n):r.value===void 0?r:e.innerType._zod.run(r,n)}),epe=F("$ZodNullable",(t,e)=>{jt.init(t,e),Dt(t._zod,"optin",()=>e.innerType._zod.optin),Dt(t._zod,"optout",()=>e.innerType._zod.optout),Dt(t._zod,"pattern",()=>{let r=e.innerType._zod.pattern;return r?new RegExp(`^(${Mg(r.source)}|null)$`):void 0}),Dt(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,null]):void 0),t._zod.parse=(r,n)=>r.value===null?r:e.innerType._zod.run(r,n)}),tpe=F("$ZodDefault",(t,e)=>{jt.init(t,e),t._zod.optin="optional",Dt(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(r,n)=>{if(r.value===void 0)return r.value=e.defaultValue,r;let i=e.innerType._zod.run(r,n);return i instanceof Promise?i.then(s=>XU(s,e)):XU(i,e)}});function XU(t,e){return t.value===void 0&&(t.value=e.defaultValue),t}var rpe=F("$ZodPrefault",(t,e)=>{jt.init(t,e),t._zod.optin="optional",Dt(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(r,n)=>(r.value===void 0&&(r.value=e.defaultValue),e.innerType._zod.run(r,n))}),npe=F("$ZodNonOptional",(t,e)=>{jt.init(t,e),Dt(t._zod,"values",()=>{let r=e.innerType._zod.values;return r?new Set([...r].filter(n=>n!==void 0)):void 0}),t._zod.parse=(r,n)=>{let i=e.innerType._zod.run(r,n);return i instanceof Promise?i.then(s=>YU(s,t)):YU(i,t)}});function YU(t,e){return!t.issues.length&&t.value===void 0&&t.issues.push({code:"invalid_type",expected:"nonoptional",input:t.value,inst:e}),t}var ipe=F("$ZodCatch",(t,e)=>{jt.init(t,e),t._zod.optin="optional",Dt(t._zod,"optout",()=>e.innerType._zod.optout),Dt(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(r,n)=>{let i=e.innerType._zod.run(r,n);return i instanceof Promise?i.then(s=>(r.value=s.value,s.issues.length&&(r.value=e.catchValue({...r,error:{issues:s.issues.map(o=>ds(o,n,ls()))},input:r.value}),r.issues=[]),r)):(r.value=i.value,i.issues.length&&(r.value=e.catchValue({...r,error:{issues:i.issues.map(s=>ds(s,n,ls()))},input:r.value}),r.issues=[]),r)}}),spe=F("$ZodPipe",(t,e)=>{jt.init(t,e),Dt(t._zod,"values",()=>e.in._zod.values),Dt(t._zod,"optin",()=>e.in._zod.optin),Dt(t._zod,"optout",()=>e.out._zod.optout),t._zod.parse=(r,n)=>{let i=e.in._zod.run(r,n);return i instanceof Promise?i.then(s=>QU(s,e,n)):QU(i,e,n)}});function QU(t,e,r){return Cc(t)?t:e.out._zod.run({value:t.value,issues:t.issues},r)}var ope=F("$ZodReadonly",(t,e)=>{jt.init(t,e),Dt(t._zod,"propValues",()=>e.innerType._zod.propValues),Dt(t._zod,"values",()=>e.innerType._zod.values),Dt(t._zod,"optin",()=>e.innerType._zod.optin),Dt(t._zod,"optout",()=>e.innerType._zod.optout),t._zod.parse=(r,n)=>{let i=e.innerType._zod.run(r,n);return i instanceof Promise?i.then(e2):e2(i)}});function e2(t){return t.value=Object.freeze(t.value),t}var ape=F("$ZodCustom",(t,e)=>{cn.init(t,e),jt.init(t,e),t._zod.parse=(r,n)=>r,t._zod.check=r=>{let n=r.value,i=e.fn(n);if(i instanceof Promise)return i.then(s=>t2(s,r,n,t));t2(i,r,n,t)}});function t2(t,e,r,n){if(!t){let i={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(i.params=n._zod.def.params),e.issues.push(t6(i))}}var cpe=t=>{let e=typeof t;switch(e){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return e},upe=()=>{let t={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"}};function e(n){return t[n]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return n=>{switch(n.code){case"invalid_type":return`Invalid input: expected ${n.expected}, received ${cpe(n.input)}`;case"invalid_value":return n.values.length===1?`Invalid input: expected ${Wk(n.values[0])}`:`Invalid option: expected one of ${Nk(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Too big: expected ${n.origin??"value"} to have ${i}${n.maximum.toString()} ${s.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Too small: expected ${n.origin} to have ${i}${n.minimum.toString()} ${s.unit}`:`Too small: expected ${n.origin} to be ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Invalid string: must start with "${i.prefix}"`:i.format==="ends_with"?`Invalid string: must end with "${i.suffix}"`:i.format==="includes"?`Invalid string: must include "${i.includes}"`:i.format==="regex"?`Invalid string: must match pattern ${i.pattern}`:`Invalid ${r[i.format]??n.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${n.divisor}`;case"unrecognized_keys":return`Unrecognized key${n.keys.length>1?"s":""}: ${Nk(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`;default:return"Invalid input"}}};function lpe(){return{localeError:upe()}}var zk=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...r){let n=r[0];if(this._map.set(e,n),n&&typeof n=="object"&&"id"in n){if(this._idmap.has(n.id))throw new Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,e)}return this}remove(e){return this._map.delete(e),this}get(e){let r=e._zod.parent;if(r){let n={...this.get(r)??{}};return delete n.id,{...n,...this._map.get(e)}}return this._map.get(e)}has(e){return this._map.has(e)}};function dpe(){return new zk}var vg=dpe();function ppe(t,e){return new t({type:"string",...Se(e)})}function mpe(t,e){return new t({type:"string",format:"email",check:"string_format",abort:!1,...Se(e)})}function r2(t,e){return new t({type:"string",format:"guid",check:"string_format",abort:!1,...Se(e)})}function fpe(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,...Se(e)})}function hpe(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Se(e)})}function gpe(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Se(e)})}function vpe(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Se(e)})}function ype(t,e){return new t({type:"string",format:"url",check:"string_format",abort:!1,...Se(e)})}function _pe(t,e){return new t({type:"string",format:"emoji",check:"string_format",abort:!1,...Se(e)})}function bpe(t,e){return new t({type:"string",format:"nanoid",check:"string_format",abort:!1,...Se(e)})}function xpe(t,e){return new t({type:"string",format:"cuid",check:"string_format",abort:!1,...Se(e)})}function Spe(t,e){return new t({type:"string",format:"cuid2",check:"string_format",abort:!1,...Se(e)})}function wpe(t,e){return new t({type:"string",format:"ulid",check:"string_format",abort:!1,...Se(e)})}function Epe(t,e){return new t({type:"string",format:"xid",check:"string_format",abort:!1,...Se(e)})}function kpe(t,e){return new t({type:"string",format:"ksuid",check:"string_format",abort:!1,...Se(e)})}function $pe(t,e){return new t({type:"string",format:"ipv4",check:"string_format",abort:!1,...Se(e)})}function Tpe(t,e){return new t({type:"string",format:"ipv6",check:"string_format",abort:!1,...Se(e)})}function Ipe(t,e){return new t({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Se(e)})}function Rpe(t,e){return new t({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Se(e)})}function Ope(t,e){return new t({type:"string",format:"base64",check:"string_format",abort:!1,...Se(e)})}function Ppe(t,e){return new t({type:"string",format:"base64url",check:"string_format",abort:!1,...Se(e)})}function Cpe(t,e){return new t({type:"string",format:"e164",check:"string_format",abort:!1,...Se(e)})}function Ape(t,e){return new t({type:"string",format:"jwt",check:"string_format",abort:!1,...Se(e)})}function Npe(t,e){return new t({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Se(e)})}function Mpe(t,e){return new t({type:"string",format:"date",check:"string_format",...Se(e)})}function Dpe(t,e){return new t({type:"string",format:"time",check:"string_format",precision:null,...Se(e)})}function jpe(t,e){return new t({type:"string",format:"duration",check:"string_format",...Se(e)})}function zpe(t,e){return new t({type:"number",checks:[],...Se(e)})}function Lpe(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"safeint",...Se(e)})}function Upe(t,e){return new t({type:"boolean",...Se(e)})}function qpe(t,e){return new t({type:"null",...Se(e)})}function Fpe(t){return new t({type:"unknown"})}function Hpe(t,e){return new t({type:"never",...Se(e)})}function n2(t,e){return new d6({check:"less_than",...Se(e),value:t,inclusive:!1})}function yk(t,e){return new d6({check:"less_than",...Se(e),value:t,inclusive:!0})}function i2(t,e){return new p6({check:"greater_than",...Se(e),value:t,inclusive:!1})}function _k(t,e){return new p6({check:"greater_than",...Se(e),value:t,inclusive:!0})}function s2(t,e){return new rde({check:"multiple_of",...Se(e),value:t})}function g6(t,e){return new ide({check:"max_length",...Se(e),maximum:t})}function kg(t,e){return new sde({check:"min_length",...Se(e),minimum:t})}function v6(t,e){return new ode({check:"length_equals",...Se(e),length:t})}function Zpe(t,e){return new ade({check:"string_format",format:"regex",...Se(e),pattern:t})}function Bpe(t){return new cde({check:"string_format",format:"lowercase",...Se(t)})}function Vpe(t){return new ude({check:"string_format",format:"uppercase",...Se(t)})}function Gpe(t,e){return new lde({check:"string_format",format:"includes",...Se(e),includes:t})}function Wpe(t,e){return new dde({check:"string_format",format:"starts_with",...Se(e),prefix:t})}function Kpe(t,e){return new pde({check:"string_format",format:"ends_with",...Se(e),suffix:t})}function op(t){return new mde({check:"overwrite",tx:t})}function Jpe(t){return op(e=>e.normalize(t))}function Xpe(){return op(t=>t.trim())}function Ype(){return op(t=>t.toLowerCase())}function Qpe(){return op(t=>t.toUpperCase())}function eme(t,e,r){return new t({type:"array",element:e,...Se(r)})}function tme(t,e,r){let n=Se(r);return n.abort??(n.abort=!0),new t({type:"custom",check:"custom",fn:e,...n})}function rme(t,e,r){return new t({type:"custom",check:"custom",fn:e,...Se(r)})}var y6={};p2(y6,{time:()=>E6,duration:()=>$6,datetime:()=>b6,date:()=>S6,ZodISOTime:()=>w6,ZodISODuration:()=>k6,ZodISODateTime:()=>_6,ZodISODate:()=>x6});var _6=F("ZodISODateTime",(t,e)=>{$de.init(t,e),Vt.init(t,e)});function b6(t){return Npe(_6,t)}var x6=F("ZodISODate",(t,e)=>{Tde.init(t,e),Vt.init(t,e)});function S6(t){return Mpe(x6,t)}var w6=F("ZodISOTime",(t,e)=>{Ide.init(t,e),Vt.init(t,e)});function E6(t){return Dpe(w6,t)}var k6=F("ZodISODuration",(t,e)=>{Rde.init(t,e),Vt.init(t,e)});function $6(t){return jpe(k6,t)}var T6=(t,e)=>{n6.init(t,e),t.name="ZodError",Object.defineProperties(t,{format:{value:r=>wle(t,r)},flatten:{value:r=>Sle(t,r)},addIssue:{value:r=>t.issues.push(r)},addIssues:{value:r=>t.issues.push(...r)},isEmpty:{get(){return t.issues.length===0}}})},rCe=F("ZodError",T6),zg=F("ZodError",T6,{Parent:Error}),nme=Ele(zg),ime=kle(zg),sme=s6(zg),ome=o6(zg),Bt=F("ZodType",(t,e)=>(jt.init(t,e),t.def=e,Object.defineProperty(t,"_def",{value:e}),t.check=(...r)=>t.clone({...e,checks:[...e.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),t.clone=(r,n)=>Ws(t,r,n),t.brand=()=>t,t.register=(r,n)=>(r.add(t,n),t),t.parse=(r,n)=>nme(t,r,n,{callee:t.parse}),t.safeParse=(r,n)=>sme(t,r,n),t.parseAsync=async(r,n)=>ime(t,r,n,{callee:t.parseAsync}),t.safeParseAsync=async(r,n)=>ome(t,r,n),t.spa=t.safeParseAsync,t.refine=(r,n)=>t.check(Jme(r,n)),t.superRefine=r=>t.check(Xme(r)),t.overwrite=r=>t.check(op(r)),t.optional=()=>he(t),t.nullable=()=>c2(t),t.nullish=()=>he(c2(t)),t.nonoptional=r=>Fme(t,r),t.array=()=>it(t),t.or=r=>qt([t,r]),t.and=r=>Jk(t,r),t.transform=r=>Uk(t,N6(r)),t.default=r=>Lme(t,r),t.prefault=r=>qme(t,r),t.catch=r=>Zme(t,r),t.pipe=r=>Uk(t,r),t.readonly=()=>Gme(t),t.describe=r=>{let n=t.clone();return vg.add(n,{description:r}),n},Object.defineProperty(t,"description",{get(){return vg.get(t)?.description},configurable:!0}),t.meta=(...r)=>{if(r.length===0)return vg.get(t);let n=t.clone();return vg.add(n,r[0]),n},t.isOptional=()=>t.safeParse(void 0).success,t.isNullable=()=>t.safeParse(null).success,t)),I6=F("_ZodString",(t,e)=>{Kk.init(t,e),Bt.init(t,e);let r=t._zod.bag;t.format=r.format??null,t.minLength=r.minimum??null,t.maxLength=r.maximum??null,t.regex=(...n)=>t.check(Zpe(...n)),t.includes=(...n)=>t.check(Gpe(...n)),t.startsWith=(...n)=>t.check(Wpe(...n)),t.endsWith=(...n)=>t.check(Kpe(...n)),t.min=(...n)=>t.check(kg(...n)),t.max=(...n)=>t.check(g6(...n)),t.length=(...n)=>t.check(v6(...n)),t.nonempty=(...n)=>t.check(kg(1,...n)),t.lowercase=n=>t.check(Bpe(n)),t.uppercase=n=>t.check(Vpe(n)),t.trim=()=>t.check(Xpe()),t.normalize=(...n)=>t.check(Jpe(...n)),t.toLowerCase=()=>t.check(Ype()),t.toUpperCase=()=>t.check(Qpe())}),ame=F("ZodString",(t,e)=>{Kk.init(t,e),I6.init(t,e),t.email=r=>t.check(mpe(cme,r)),t.url=r=>t.check(ype(ume,r)),t.jwt=r=>t.check(Ape(Eme,r)),t.emoji=r=>t.check(_pe(lme,r)),t.guid=r=>t.check(r2(o2,r)),t.uuid=r=>t.check(fpe(yg,r)),t.uuidv4=r=>t.check(hpe(yg,r)),t.uuidv6=r=>t.check(gpe(yg,r)),t.uuidv7=r=>t.check(vpe(yg,r)),t.nanoid=r=>t.check(bpe(dme,r)),t.guid=r=>t.check(r2(o2,r)),t.cuid=r=>t.check(xpe(pme,r)),t.cuid2=r=>t.check(Spe(mme,r)),t.ulid=r=>t.check(wpe(fme,r)),t.base64=r=>t.check(Ope(xme,r)),t.base64url=r=>t.check(Ppe(Sme,r)),t.xid=r=>t.check(Epe(hme,r)),t.ksuid=r=>t.check(kpe(gme,r)),t.ipv4=r=>t.check($pe(vme,r)),t.ipv6=r=>t.check(Tpe(yme,r)),t.cidrv4=r=>t.check(Ipe(_me,r)),t.cidrv6=r=>t.check(Rpe(bme,r)),t.e164=r=>t.check(Cpe(wme,r)),t.datetime=r=>t.check(b6(r)),t.date=r=>t.check(S6(r)),t.time=r=>t.check(E6(r)),t.duration=r=>t.check($6(r))});function L(t){return ppe(ame,t)}var Vt=F("ZodStringFormat",(t,e)=>{Ut.init(t,e),I6.init(t,e)}),cme=F("ZodEmail",(t,e)=>{vde.init(t,e),Vt.init(t,e)}),o2=F("ZodGUID",(t,e)=>{hde.init(t,e),Vt.init(t,e)}),yg=F("ZodUUID",(t,e)=>{gde.init(t,e),Vt.init(t,e)}),ume=F("ZodURL",(t,e)=>{yde.init(t,e),Vt.init(t,e)}),lme=F("ZodEmoji",(t,e)=>{_de.init(t,e),Vt.init(t,e)}),dme=F("ZodNanoID",(t,e)=>{bde.init(t,e),Vt.init(t,e)}),pme=F("ZodCUID",(t,e)=>{xde.init(t,e),Vt.init(t,e)}),mme=F("ZodCUID2",(t,e)=>{Sde.init(t,e),Vt.init(t,e)}),fme=F("ZodULID",(t,e)=>{wde.init(t,e),Vt.init(t,e)}),hme=F("ZodXID",(t,e)=>{Ede.init(t,e),Vt.init(t,e)}),gme=F("ZodKSUID",(t,e)=>{kde.init(t,e),Vt.init(t,e)}),vme=F("ZodIPv4",(t,e)=>{Ode.init(t,e),Vt.init(t,e)}),yme=F("ZodIPv6",(t,e)=>{Pde.init(t,e),Vt.init(t,e)}),_me=F("ZodCIDRv4",(t,e)=>{Cde.init(t,e),Vt.init(t,e)}),bme=F("ZodCIDRv6",(t,e)=>{Ade.init(t,e),Vt.init(t,e)}),xme=F("ZodBase64",(t,e)=>{Nde.init(t,e),Vt.init(t,e)}),Sme=F("ZodBase64URL",(t,e)=>{Dde.init(t,e),Vt.init(t,e)}),wme=F("ZodE164",(t,e)=>{jde.init(t,e),Vt.init(t,e)}),Eme=F("ZodJWT",(t,e)=>{Lde.init(t,e),Vt.init(t,e)}),R6=F("ZodNumber",(t,e)=>{f6.init(t,e),Bt.init(t,e),t.gt=(n,i)=>t.check(i2(n,i)),t.gte=(n,i)=>t.check(_k(n,i)),t.min=(n,i)=>t.check(_k(n,i)),t.lt=(n,i)=>t.check(n2(n,i)),t.lte=(n,i)=>t.check(yk(n,i)),t.max=(n,i)=>t.check(yk(n,i)),t.int=n=>t.check(a2(n)),t.safe=n=>t.check(a2(n)),t.positive=n=>t.check(i2(0,n)),t.nonnegative=n=>t.check(_k(0,n)),t.negative=n=>t.check(n2(0,n)),t.nonpositive=n=>t.check(yk(0,n)),t.multipleOf=(n,i)=>t.check(s2(n,i)),t.step=(n,i)=>t.check(s2(n,i)),t.finite=()=>t;let r=t._zod.bag;t.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,t.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,t.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),t.isFinite=!0,t.format=r.format??null});function Rt(t){return zpe(R6,t)}var kme=F("ZodNumberFormat",(t,e)=>{Ude.init(t,e),R6.init(t,e)});function a2(t){return Lpe(kme,t)}var $me=F("ZodBoolean",(t,e)=>{qde.init(t,e),Bt.init(t,e)});function Pr(t){return Upe($me,t)}var Tme=F("ZodNull",(t,e)=>{Fde.init(t,e),Bt.init(t,e)});function O6(t){return qpe(Tme,t)}var Ime=F("ZodUnknown",(t,e)=>{Hde.init(t,e),Bt.init(t,e)});function nr(){return Fpe(Ime)}var Rme=F("ZodNever",(t,e)=>{Zde.init(t,e),Bt.init(t,e)});function Ome(t){return Hpe(Rme,t)}var Pme=F("ZodArray",(t,e)=>{Bde.init(t,e),Bt.init(t,e),t.element=e.element,t.min=(r,n)=>t.check(kg(r,n)),t.nonempty=r=>t.check(kg(1,r)),t.max=(r,n)=>t.check(g6(r,n)),t.length=(r,n)=>t.check(v6(r,n)),t.unwrap=()=>t.element});function it(t,e){return eme(Pme,t,e)}var P6=F("ZodObject",(t,e)=>{Vde.init(t,e),Bt.init(t,e),Mt.defineLazy(t,"shape",()=>e.shape),t.keyof=()=>Cr(Object.keys(t._zod.def.shape)),t.catchall=r=>t.clone({...t._zod.def,catchall:r}),t.passthrough=()=>t.clone({...t._zod.def,catchall:nr()}),t.loose=()=>t.clone({...t._zod.def,catchall:nr()}),t.strict=()=>t.clone({...t._zod.def,catchall:Ome()}),t.strip=()=>t.clone({...t._zod.def,catchall:void 0}),t.extend=r=>Mt.extend(t,r),t.merge=r=>Mt.merge(t,r),t.pick=r=>Mt.pick(t,r),t.omit=r=>Mt.omit(t,r),t.partial=(...r)=>Mt.partial(M6,t,r[0]),t.required=(...r)=>Mt.required(D6,t,r[0])});function X(t,e){let r={type:"object",get shape(){return Mt.assignProp(this,"shape",{...t}),this.shape},...Mt.normalizeParams(e)};return new P6(r)}function si(t,e){return new P6({type:"object",get shape(){return Mt.assignProp(this,"shape",{...t}),this.shape},catchall:nr(),...Mt.normalizeParams(e)})}var C6=F("ZodUnion",(t,e)=>{h6.init(t,e),Bt.init(t,e),t.options=e.options});function qt(t,e){return new C6({type:"union",options:t,...Mt.normalizeParams(e)})}var Cme=F("ZodDiscriminatedUnion",(t,e)=>{C6.init(t,e),Gde.init(t,e)});function A6(t,e,r){return new Cme({type:"union",options:e,discriminator:t,...Mt.normalizeParams(r)})}var Ame=F("ZodIntersection",(t,e)=>{Wde.init(t,e),Bt.init(t,e)});function Jk(t,e){return new Ame({type:"intersection",left:t,right:e})}var Nme=F("ZodRecord",(t,e)=>{Kde.init(t,e),Bt.init(t,e),t.keyType=e.keyType,t.valueType=e.valueType});function ir(t,e,r){return new Nme({type:"record",keyType:t,valueType:e,...Mt.normalizeParams(r)})}var Lk=F("ZodEnum",(t,e)=>{Jde.init(t,e),Bt.init(t,e),t.enum=e.entries,t.options=Object.values(e.entries);let r=new Set(Object.keys(e.entries));t.extract=(n,i)=>{let s={};for(let o of n)if(r.has(o))s[o]=e.entries[o];else throw new Error(`Key ${o} not found in enum`);return new Lk({...e,checks:[],...Mt.normalizeParams(i),entries:s})},t.exclude=(n,i)=>{let s={...e.entries};for(let o of n)if(r.has(o))delete s[o];else throw new Error(`Key ${o} not found in enum`);return new Lk({...e,checks:[],...Mt.normalizeParams(i),entries:s})}});function Cr(t,e){let r=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new Lk({type:"enum",entries:r,...Mt.normalizeParams(e)})}var Mme=F("ZodLiteral",(t,e)=>{Xde.init(t,e),Bt.init(t,e),t.values=new Set(e.values),Object.defineProperty(t,"value",{get(){if(e.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return e.values[0]}})});function ge(t,e){return new Mme({type:"literal",values:Array.isArray(t)?t:[t],...Mt.normalizeParams(e)})}var Dme=F("ZodTransform",(t,e)=>{Yde.init(t,e),Bt.init(t,e),t._zod.parse=(r,n)=>{r.addIssue=s=>{if(typeof s=="string")r.issues.push(Mt.issue(s,r.value,e));else{let o=s;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=r.value),o.inst??(o.inst=t),o.continue??(o.continue=!0),r.issues.push(Mt.issue(o))}};let i=e.transform(r.value,r);return i instanceof Promise?i.then(s=>(r.value=s,r)):(r.value=i,r)}});function N6(t){return new Dme({type:"transform",transform:t})}var M6=F("ZodOptional",(t,e)=>{Qde.init(t,e),Bt.init(t,e),t.unwrap=()=>t._zod.def.innerType});function he(t){return new M6({type:"optional",innerType:t})}var jme=F("ZodNullable",(t,e)=>{epe.init(t,e),Bt.init(t,e),t.unwrap=()=>t._zod.def.innerType});function c2(t){return new jme({type:"nullable",innerType:t})}var zme=F("ZodDefault",(t,e)=>{tpe.init(t,e),Bt.init(t,e),t.unwrap=()=>t._zod.def.innerType,t.removeDefault=t.unwrap});function Lme(t,e){return new zme({type:"default",innerType:t,get defaultValue(){return typeof e=="function"?e():e}})}var Ume=F("ZodPrefault",(t,e)=>{rpe.init(t,e),Bt.init(t,e),t.unwrap=()=>t._zod.def.innerType});function qme(t,e){return new Ume({type:"prefault",innerType:t,get defaultValue(){return typeof e=="function"?e():e}})}var D6=F("ZodNonOptional",(t,e)=>{npe.init(t,e),Bt.init(t,e),t.unwrap=()=>t._zod.def.innerType});function Fme(t,e){return new D6({type:"nonoptional",innerType:t,...Mt.normalizeParams(e)})}var Hme=F("ZodCatch",(t,e)=>{ipe.init(t,e),Bt.init(t,e),t.unwrap=()=>t._zod.def.innerType,t.removeCatch=t.unwrap});function Zme(t,e){return new Hme({type:"catch",innerType:t,catchValue:typeof e=="function"?e:()=>e})}var Bme=F("ZodPipe",(t,e)=>{spe.init(t,e),Bt.init(t,e),t.in=e.in,t.out=e.out});function Uk(t,e){return new Bme({type:"pipe",in:t,out:e})}var Vme=F("ZodReadonly",(t,e)=>{ope.init(t,e),Bt.init(t,e)});function Gme(t){return new Vme({type:"readonly",innerType:t})}var j6=F("ZodCustom",(t,e)=>{ape.init(t,e),Bt.init(t,e)});function Wme(t,e){let r=new cn({check:"custom",...Mt.normalizeParams(e)});return r._zod.check=t,r}function Kme(t,e){return tme(j6,t??(()=>!0),e)}function Jme(t,e={}){return rme(j6,t,e)}function Xme(t,e){let r=Wme(n=>(n.addIssue=i=>{if(typeof i=="string")n.issues.push(Mt.issue(i,n.value,r._zod.def));else{let s=i;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=n.value),s.inst??(s.inst=r),s.continue??(s.continue=!r._zod.def.abort),n.issues.push(Mt.issue(s))}},t(n.value,n)),e);return r}function z6(t,e){return Uk(N6(t),e)}ls(lpe());var Xk="io.modelcontextprotocol/related-task",Lg="2.0",Oi=Kme(t=>t!==null&&(typeof t=="object"||typeof t=="function")),L6=qt([L(),Rt().int()]),U6=L(),Yme=si({ttl:qt([Rt(),O6()]).optional(),pollInterval:Rt().optional()}),Yk=si({taskId:L()}),Qme=si({progressToken:L6.optional(),[Xk]:Yk.optional()}),un=si({task:Yme.optional(),_meta:Qme.optional()}),br=X({method:L(),params:un.optional()}),Bo=si({_meta:X({[Xk]:he(Yk)}).passthrough().optional()}),Ln=X({method:L(),params:Bo.optional()}),Ar=si({_meta:si({[Xk]:Yk.optional()}).optional()}),Ug=qt([L(),Rt().int()]),efe=X({jsonrpc:ge(Lg),id:Ug,...br.shape}).strict();var tfe=X({jsonrpc:ge(Lg),...Ln.shape}).strict();var rfe=X({jsonrpc:ge(Lg),id:Ug,result:Ar}).strict();var u2;(function(t){t[t.ConnectionClosed=-32e3]="ConnectionClosed",t[t.RequestTimeout=-32001]="RequestTimeout",t[t.ParseError=-32700]="ParseError",t[t.InvalidRequest=-32600]="InvalidRequest",t[t.MethodNotFound=-32601]="MethodNotFound",t[t.InvalidParams=-32602]="InvalidParams",t[t.InternalError=-32603]="InternalError",t[t.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(u2||(u2={}));var nfe=X({jsonrpc:ge(Lg),id:Ug,error:X({code:Rt().int(),message:L(),data:he(nr())})}).strict();var nCe=qt([efe,tfe,rfe,nfe]),q6=Ar.strict(),ife=Bo.extend({requestId:Ug,reason:L().optional()}),F6=Ln.extend({method:ge("notifications/cancelled"),params:ife}),sfe=X({src:L(),mimeType:L().optional(),sizes:it(L()).optional()}),ap=X({icons:it(sfe).optional()}),Vc=X({name:L(),title:L().optional()}),H6=Vc.extend({...Vc.shape,...ap.shape,version:L(),websiteUrl:L().optional()}),ofe=Jk(X({applyDefaults:Pr().optional()}),ir(L(),nr())),afe=z6(t=>t&&typeof t=="object"&&!Array.isArray(t)&&Object.keys(t).length===0?{form:{}}:t,Jk(X({form:ofe.optional(),url:Oi.optional()}),ir(L(),nr()).optional())),cfe=X({list:he(X({}).passthrough()),cancel:he(X({}).passthrough()),requests:he(X({sampling:he(X({createMessage:he(X({}).passthrough())}).passthrough()),elicitation:he(X({create:he(X({}).passthrough())}).passthrough())}).passthrough())}).passthrough(),ufe=X({list:he(X({}).passthrough()),cancel:he(X({}).passthrough()),requests:he(X({tools:he(X({call:he(X({}).passthrough())}).passthrough())}).passthrough())}).passthrough(),lfe=X({experimental:ir(L(),Oi).optional(),sampling:X({context:Oi.optional(),tools:Oi.optional()}).optional(),elicitation:afe.optional(),roots:X({listChanged:Pr().optional()}).optional(),tasks:he(cfe)}),dfe=un.extend({protocolVersion:L(),capabilities:lfe,clientInfo:H6}),pfe=br.extend({method:ge("initialize"),params:dfe}),mfe=X({experimental:ir(L(),Oi).optional(),logging:Oi.optional(),completions:Oi.optional(),prompts:he(X({listChanged:he(Pr())})),resources:X({subscribe:Pr().optional(),listChanged:Pr().optional()}).optional(),tools:X({listChanged:Pr().optional()}).optional(),tasks:he(ufe)}).passthrough(),ffe=Ar.extend({protocolVersion:L(),capabilities:mfe,serverInfo:H6,instructions:L().optional()}),hfe=Ln.extend({method:ge("notifications/initialized")}),Z6=br.extend({method:ge("ping")}),gfe=X({progress:Rt(),total:he(Rt()),message:he(L())}),vfe=X({...Bo.shape,...gfe.shape,progressToken:L6}),B6=Ln.extend({method:ge("notifications/progress"),params:vfe}),yfe=un.extend({cursor:U6.optional()}),cp=br.extend({params:yfe.optional()}),up=Ar.extend({nextCursor:he(U6)}),lp=X({taskId:L(),status:Cr(["working","input_required","completed","failed","cancelled"]),ttl:qt([Rt(),O6()]),createdAt:L(),lastUpdatedAt:L(),pollInterval:he(Rt()),statusMessage:he(L())}),V6=Ar.extend({task:lp}),_fe=Bo.merge(lp),G6=Ln.extend({method:ge("notifications/tasks/status"),params:_fe}),W6=br.extend({method:ge("tasks/get"),params:un.extend({taskId:L()})}),K6=Ar.merge(lp),J6=br.extend({method:ge("tasks/result"),params:un.extend({taskId:L()})}),X6=cp.extend({method:ge("tasks/list")}),Y6=up.extend({tasks:it(lp)}),iCe=br.extend({method:ge("tasks/cancel"),params:un.extend({taskId:L()})}),sCe=Ar.merge(lp),Q6=X({uri:L(),mimeType:he(L()),_meta:ir(L(),nr()).optional()}),eq=Q6.extend({text:L()}),Qk=L().refine(t=>{try{return atob(t),!0}catch{return!1}},{message:"Invalid Base64 string"}),tq=Q6.extend({blob:Qk}),Yc=X({audience:it(Cr(["user","assistant"])).optional(),priority:Rt().min(0).max(1).optional(),lastModified:y6.datetime({offset:!0}).optional()}),rq=X({...Vc.shape,...ap.shape,uri:L(),description:he(L()),mimeType:he(L()),annotations:Yc.optional(),_meta:he(si({}))}),bfe=X({...Vc.shape,...ap.shape,uriTemplate:L(),description:he(L()),mimeType:he(L()),annotations:Yc.optional(),_meta:he(si({}))}),xfe=cp.extend({method:ge("resources/list")}),Sfe=up.extend({resources:it(rq)}),wfe=cp.extend({method:ge("resources/templates/list")}),Efe=up.extend({resourceTemplates:it(bfe)}),e$=un.extend({uri:L()}),kfe=e$,$fe=br.extend({method:ge("resources/read"),params:kfe}),Tfe=Ar.extend({contents:it(qt([eq,tq]))}),Ife=Ln.extend({method:ge("notifications/resources/list_changed")}),Rfe=e$,Ofe=br.extend({method:ge("resources/subscribe"),params:Rfe}),Pfe=e$,Cfe=br.extend({method:ge("resources/unsubscribe"),params:Pfe}),Afe=Bo.extend({uri:L()}),Nfe=Ln.extend({method:ge("notifications/resources/updated"),params:Afe}),Mfe=X({name:L(),description:he(L()),required:he(Pr())}),Dfe=X({...Vc.shape,...ap.shape,description:he(L()),arguments:he(it(Mfe)),_meta:he(si({}))}),jfe=cp.extend({method:ge("prompts/list")}),zfe=up.extend({prompts:it(Dfe)}),Lfe=un.extend({name:L(),arguments:ir(L(),L()).optional()}),Ufe=br.extend({method:ge("prompts/get"),params:Lfe}),t$=X({type:ge("text"),text:L(),annotations:Yc.optional(),_meta:ir(L(),nr()).optional()}),r$=X({type:ge("image"),data:Qk,mimeType:L(),annotations:Yc.optional(),_meta:ir(L(),nr()).optional()}),n$=X({type:ge("audio"),data:Qk,mimeType:L(),annotations:Yc.optional(),_meta:ir(L(),nr()).optional()}),qfe=X({type:ge("tool_use"),name:L(),id:L(),input:X({}).passthrough(),_meta:he(X({}).passthrough())}).passthrough(),Ffe=X({type:ge("resource"),resource:qt([eq,tq]),annotations:Yc.optional(),_meta:ir(L(),nr()).optional()}),Hfe=rq.extend({type:ge("resource_link")}),i$=qt([t$,r$,n$,Hfe,Ffe]),Zfe=X({role:Cr(["user","assistant"]),content:i$}),Bfe=Ar.extend({description:he(L()),messages:it(Zfe)}),Vfe=Ln.extend({method:ge("notifications/prompts/list_changed")}),Gfe=X({title:L().optional(),readOnlyHint:Pr().optional(),destructiveHint:Pr().optional(),idempotentHint:Pr().optional(),openWorldHint:Pr().optional()}),Wfe=X({taskSupport:Cr(["required","optional","forbidden"]).optional()}),nq=X({...Vc.shape,...ap.shape,description:L().optional(),inputSchema:X({type:ge("object"),properties:ir(L(),Oi).optional(),required:it(L()).optional()}).catchall(nr()),outputSchema:X({type:ge("object"),properties:ir(L(),Oi).optional(),required:it(L()).optional()}).catchall(nr()).optional(),annotations:he(Gfe),execution:he(Wfe),_meta:ir(L(),nr()).optional()}),Kfe=cp.extend({method:ge("tools/list")}),Jfe=up.extend({tools:it(nq)}),iq=Ar.extend({content:it(i$).default([]),structuredContent:ir(L(),nr()).optional(),isError:he(Pr())}),oCe=iq.or(Ar.extend({toolResult:nr()})),Xfe=un.extend({name:L(),arguments:he(ir(L(),nr()))}),Yfe=br.extend({method:ge("tools/call"),params:Xfe}),Qfe=Ln.extend({method:ge("notifications/tools/list_changed")}),sq=Cr(["debug","info","notice","warning","error","critical","alert","emergency"]),ehe=un.extend({level:sq}),the=br.extend({method:ge("logging/setLevel"),params:ehe}),rhe=Bo.extend({level:sq,logger:L().optional(),data:nr()}),nhe=Ln.extend({method:ge("notifications/message"),params:rhe}),ihe=X({name:L().optional()}),she=X({hints:he(it(ihe)),costPriority:he(Rt().min(0).max(1)),speedPriority:he(Rt().min(0).max(1)),intelligencePriority:he(Rt().min(0).max(1))}),ohe=X({mode:he(Cr(["auto","required","none"]))}),ahe=X({type:ge("tool_result"),toolUseId:L().describe("The unique identifier for the corresponding tool call."),content:it(i$).default([]),structuredContent:X({}).passthrough().optional(),isError:he(Pr()),_meta:he(X({}).passthrough())}).passthrough(),che=A6("type",[t$,r$,n$]),$g=A6("type",[t$,r$,n$,qfe,ahe]),uhe=X({role:Cr(["user","assistant"]),content:qt([$g,it($g)]),_meta:he(X({}).passthrough())}).passthrough(),lhe=un.extend({messages:it(uhe),modelPreferences:she.optional(),systemPrompt:L().optional(),includeContext:Cr(["none","thisServer","allServers"]).optional(),temperature:Rt().optional(),maxTokens:Rt().int(),stopSequences:it(L()).optional(),metadata:Oi.optional(),tools:he(it(nq)),toolChoice:he(ohe)}),dhe=br.extend({method:ge("sampling/createMessage"),params:lhe}),phe=Ar.extend({model:L(),stopReason:he(Cr(["endTurn","stopSequence","maxTokens"]).or(L())),role:Cr(["user","assistant"]),content:che}),mhe=Ar.extend({model:L(),stopReason:he(Cr(["endTurn","stopSequence","maxTokens","toolUse"]).or(L())),role:Cr(["user","assistant"]),content:qt([$g,it($g)])}),fhe=X({type:ge("boolean"),title:L().optional(),description:L().optional(),default:Pr().optional()}),hhe=X({type:ge("string"),title:L().optional(),description:L().optional(),minLength:Rt().optional(),maxLength:Rt().optional(),format:Cr(["email","uri","date","date-time"]).optional(),default:L().optional()}),ghe=X({type:Cr(["number","integer"]),title:L().optional(),description:L().optional(),minimum:Rt().optional(),maximum:Rt().optional(),default:Rt().optional()}),vhe=X({type:ge("string"),title:L().optional(),description:L().optional(),enum:it(L()),default:L().optional()}),yhe=X({type:ge("string"),title:L().optional(),description:L().optional(),oneOf:it(X({const:L(),title:L()})),default:L().optional()}),_he=X({type:ge("string"),title:L().optional(),description:L().optional(),enum:it(L()),enumNames:it(L()).optional(),default:L().optional()}),bhe=qt([vhe,yhe]),xhe=X({type:ge("array"),title:L().optional(),description:L().optional(),minItems:Rt().optional(),maxItems:Rt().optional(),items:X({type:ge("string"),enum:it(L())}),default:it(L()).optional()}),She=X({type:ge("array"),title:L().optional(),description:L().optional(),minItems:Rt().optional(),maxItems:Rt().optional(),items:X({anyOf:it(X({const:L(),title:L()}))}),default:it(L()).optional()}),whe=qt([xhe,She]),Ehe=qt([_he,bhe,whe]),khe=qt([Ehe,fhe,hhe,ghe]),$he=un.extend({mode:ge("form").optional(),message:L(),requestedSchema:X({type:ge("object"),properties:ir(L(),khe),required:it(L()).optional()})}),The=un.extend({mode:ge("url"),message:L(),elicitationId:L(),url:L().url()}),Ihe=qt([$he,The]),Rhe=br.extend({method:ge("elicitation/create"),params:Ihe}),Ohe=Bo.extend({elicitationId:L()}),Phe=Ln.extend({method:ge("notifications/elicitation/complete"),params:Ohe}),Che=Ar.extend({action:Cr(["accept","decline","cancel"]),content:z6(t=>t===null?void 0:t,ir(L(),qt([L(),Rt(),Pr(),it(L())])).optional())}),Ahe=X({type:ge("ref/resource"),uri:L()}),Nhe=X({type:ge("ref/prompt"),name:L()}),Mhe=un.extend({ref:qt([Nhe,Ahe]),argument:X({name:L(),value:L()}),context:X({arguments:ir(L(),L()).optional()}).optional()}),Dhe=br.extend({method:ge("completion/complete"),params:Mhe});var jhe=Ar.extend({completion:si({values:it(L()).max(100),total:he(Rt().int()),hasMore:he(Pr())})}),zhe=X({uri:L().startsWith("file://"),name:L().optional(),_meta:ir(L(),nr()).optional()}),Lhe=br.extend({method:ge("roots/list")}),Uhe=Ar.extend({roots:it(zhe)}),qhe=Ln.extend({method:ge("notifications/roots/list_changed")}),aCe=qt([Z6,pfe,Dhe,the,Ufe,jfe,xfe,wfe,$fe,Ofe,Cfe,Yfe,Kfe,W6,J6,X6]),cCe=qt([F6,B6,hfe,qhe,G6]),uCe=qt([q6,phe,mhe,Che,Uhe,K6,Y6,V6]),lCe=qt([Z6,dhe,Rhe,Lhe,W6,J6,X6]),dCe=qt([F6,B6,nhe,Nfe,Ife,Qfe,Vfe,G6,Phe]),pCe=qt([q6,ffe,jhe,Bfe,zfe,Sfe,Efe,Tfe,iq,Jfe,K6,Y6,V6]);var mCe=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");var fCe=d2(_2(),1),hCe=d2(xae(),1);var l2;(function(t){t.Completable="McpCompletable"})(l2||(l2={}));function oq({prompt:t,options:e}){let{systemPrompt:r,settingSources:n,sandbox:i,...s}=e??{},o,a;r===void 0?o="":typeof r=="string"?o=r:r.type==="preset"&&(a=r.append);let c=s.pathToClaudeCodeExecutable;if(!c){let J=(0,b2.fileURLToPath)(Fhe.url),ue=(0,xk.join)(J,"..");c=(0,xk.join)(ue,"cli.js")}process.env.CLAUDE_AGENT_SDK_VERSION="0.1.77";let{abortController:u=S2(),additionalDirectories:l=[],agents:d,allowedTools:p=[],betas:m,canUseTool:f,continue:g,cwd:h,disallowedTools:v=[],tools:x,env:b,executable:_=F2()?"bun":"node",executableArgs:S=[],extraArgs:w={},fallbackModel:E,enableFileCheckpointing:$,forkSession:R,hooks:A,includePartialMessages:N,persistSession:U,maxThinkingTokens:W,maxTurns:j,maxBudgetUsd:ae,mcpServers:Ne,model:ze,outputFormat:kt,permissionMode:Ve="default",allowDangerouslySkipPermissions:K=!1,permissionPromptToolName:P,plugins:H,resume:M,resumeSessionAt:k,stderr:I,strictMcpConfig:q}=s,le=kt?.type==="json_schema"?kt.schema:void 0,ce=b;if(ce||(ce={...process.env}),ce.CLAUDE_CODE_ENTRYPOINT||(ce.CLAUDE_CODE_ENTRYPOINT="sdk-ts"),$&&(ce.CLAUDE_CODE_ENABLE_SDK_FILE_CHECKPOINTING="true"),!c)throw new Error("pathToClaudeCodeExecutable is required");let Qe={},Xe=new Map;if(Ne)for(let[J,ue]of Object.entries(Ne))ue.type==="sdk"&&"instance"in ue?(Xe.set(J,ue.instance),Qe[J]={type:"sdk",name:J}):Qe[J]=ue;let Ft=typeof t=="string",C=new wk({abortController:u,additionalDirectories:l,betas:m,cwd:h,executable:_,executableArgs:S,extraArgs:w,pathToClaudeCodeExecutable:c,env:ce,forkSession:R,stderr:I,maxThinkingTokens:W,maxTurns:j,maxBudgetUsd:ae,model:ze,fallbackModel:E,jsonSchema:le,permissionMode:Ve,allowDangerouslySkipPermissions:K,permissionPromptToolName:P,continueConversation:g,resume:M,resumeSessionAt:k,settingSources:n??[],allowedTools:p,disallowedTools:v,tools:x,mcpServers:Qe,strictMcpConfig:q,canUseTool:!!f,hooks:!!A,includePartialMessages:N,persistSession:U,plugins:H,sandbox:i,spawnClaudeCodeProcess:s.spawnClaudeCodeProcess}),D={systemPrompt:o,appendSystemPrompt:a,agents:d},Z=new $k(C,Ft,f,A,u,Xe,le,D);return typeof t=="string"?C.write(Ri({type:"user",session_id:"",message:{role:"user",content:[{type:"text",text:t}]},parent_tool_use_id:null})+` +`):Z.streamInput(t),Z}var qg=class{dbManager;sessionManager;constructor(e,r){this.dbManager=e,this.sessionManager=r}async startSession(e,r){let n={lastCwd:void 0},i=this.findClaudeExecutable(),s=this.getModelId(),o=["Bash","Read","Write","Edit","Grep","Glob","WebFetch","WebSearch","Task","NotebookEdit","AskUserQuestion","TodoWrite"],a=this.createMessageGenerator(e,n),c=!!e.memorySessionId,u=c&&e.lastPromptNumber>1&&!e.forceInit;e.forceInit&&(y.info("SDK","forceInit flag set, starting fresh SDK session",{sessionDbId:e.sessionDbId,previousMemorySessionId:e.memorySessionId}),e.forceInit=!1);let l=_e.loadFromFile(At),d=parseInt(l.CLAUDE_MEM_MAX_CONCURRENT_AGENTS,10)||2;await EU(d);let p=vi(mA()),m=zf();if(y.info("SDK","Starting SDK query",{sessionDbId:e.sessionDbId,contentSessionId:e.contentSessionId,memorySessionId:e.memorySessionId,hasRealMemorySessionId:c,shouldResume:u,resume_parameter:u?e.memorySessionId:"(none - fresh start)",lastPromptNumber:e.lastPromptNumber,authMethod:m}),e.lastPromptNumber>1)y.debug("SDK",`[ALIGNMENT] Resume Decision | contentSessionId=${e.contentSessionId} | memorySessionId=${e.memorySessionId} | prompt#=${e.lastPromptNumber} | hasRealMemorySessionId=${c} | shouldResume=${u} | resumeWith=${u?e.memorySessionId:"NONE"}`);else{let h=c;y.debug("SDK",`[ALIGNMENT] First Prompt (INIT) | contentSessionId=${e.contentSessionId} | prompt#=${e.lastPromptNumber} | hasStaleMemoryId=${h} | action=START_FRESH | Will capture new memorySessionId from SDK response`),h&&y.warn("SDK",`Skipping resume for INIT prompt despite existing memorySessionId=${e.memorySessionId} - SDK context was lost (worker restart or crash recovery)`)}Ir(Df);let f=oq({prompt:a,options:{model:s,cwd:Df,...u&&{resume:e.memorySessionId},disallowedTools:o,abortController:e.abortController,pathToClaudeCodeExecutable:i,spawnClaudeCodeProcess:kU(e.sessionDbId),env:p}});try{for await(let h of f){if(h.session_id&&h.session_id!==e.memorySessionId){let v=e.memorySessionId;e.memorySessionId=h.session_id,this.dbManager.getSessionStore().ensureMemorySessionIdRegistered(e.sessionDbId,h.session_id);let x=this.dbManager.getSessionStore().getSessionById(e.sessionDbId),b=x?.memory_session_id===h.session_id,_=v?`MEMORY_ID_CHANGED | sessionDbId=${e.sessionDbId} | from=${v} | to=${h.session_id} | dbVerified=${b}`:`MEMORY_ID_CAPTURED | sessionDbId=${e.sessionDbId} | memorySessionId=${h.session_id} | dbVerified=${b}`;y.info("SESSION",_,{sessionId:e.sessionDbId,memorySessionId:h.session_id,previousId:v}),b||y.error("SESSION",`MEMORY_ID_MISMATCH | sessionDbId=${e.sessionDbId} | expected=${h.session_id} | got=${x?.memory_session_id}`,{sessionId:e.sessionDbId}),y.debug("SDK",`[ALIGNMENT] ${v?"Updated":"Captured"} | contentSessionId=${e.contentSessionId} \u2192 memorySessionId=${h.session_id} | Future prompts will resume with this ID`)}if(h.type==="assistant"){let v=h.message.content,x=Array.isArray(v)?v.filter($=>$.type==="text").map($=>$.text).join(` +`):typeof v=="string"?v:"";if(x.includes("prompt is too long")||x.includes("context window")){y.error("SDK","Context overflow detected - terminating session"),e.abortController.abort();return}let b=x.length,_=e.cumulativeInputTokens+e.cumulativeOutputTokens,S=h.message.usage;S&&(e.cumulativeInputTokens+=S.input_tokens||0,e.cumulativeOutputTokens+=S.output_tokens||0,S.cache_creation_input_tokens&&(e.cumulativeInputTokens+=S.cache_creation_input_tokens),y.debug("SDK","Token usage captured",{sessionId:e.sessionDbId,inputTokens:S.input_tokens,outputTokens:S.output_tokens,cacheCreation:S.cache_creation_input_tokens||0,cacheRead:S.cache_read_input_tokens||0,cumulativeInput:e.cumulativeInputTokens,cumulativeOutput:e.cumulativeOutputTokens}));let w=e.cumulativeInputTokens+e.cumulativeOutputTokens-_,E=e.earliestPendingTimestamp;if(b>0){let $=b>100?x.substring(0,100)+"...":x;y.dataOut("SDK",`Response received (${b} chars)`,{sessionId:e.sessionDbId,promptNumber:e.lastPromptNumber},$)}if(typeof x=="string"&&x.includes("Prompt is too long"))throw new Error("Claude session context overflow: prompt is too long");if(typeof x=="string"&&x.includes("Invalid API key"))throw new Error("Invalid API key: check your API key configuration in ~/.claude-mem/settings.json or ~/.claude-mem/.env");await ri(x,e,this.dbManager,this.sessionManager,r,w,E,"SDK",n.lastCwd)}h.type==="result"&&h.subtype}}finally{let h=qs(e.sessionDbId);h&&h.process.exitCode===null&&await Fs(h,5e3)}let g=Date.now()-e.startTime;y.success("SDK","Agent completed",{sessionId:e.sessionDbId,duration:`${(g/1e3).toFixed(1)}s`})}async*createMessageGenerator(e,r){let n=He.getInstance().getActiveMode(),i=e.lastPromptNumber===1;y.info("SDK","Creating message generator",{sessionDbId:e.sessionDbId,contentSessionId:e.contentSessionId,lastPromptNumber:e.lastPromptNumber,isInitPrompt:i,promptType:i?"INIT":"CONTINUATION"});let s=i?kc(e.project,e.contentSessionId,e.userPrompt,n):Ic(e.userPrompt,e.lastPromptNumber,e.contentSessionId,n);e.conversationHistory.push({role:"user",content:s}),yield{type:"user",message:{role:"user",content:s},session_id:e.contentSessionId,parent_tool_use_id:null,isSynthetic:!0};for await(let o of this.sessionManager.getMessageIterator(e.sessionDbId))if(e.processingMessageIds.push(o._persistentId),o.cwd&&(r.lastCwd=o.cwd),o.type==="observation"){o.prompt_number!==void 0&&(e.lastPromptNumber=o.prompt_number);let a=$c({id:0,tool_name:o.tool_name,tool_input:JSON.stringify(o.tool_input),tool_output:JSON.stringify(o.tool_response),created_at_epoch:Date.now(),cwd:o.cwd});e.conversationHistory.push({role:"user",content:a}),yield{type:"user",message:{role:"user",content:a},session_id:e.contentSessionId,parent_tool_use_id:null,isSynthetic:!0}}else if(o.type==="summarize"){let a=Tc({id:e.sessionDbId,memory_session_id:e.memorySessionId,project:e.project,user_prompt:e.userPrompt,last_assistant_message:o.last_assistant_message||""},n);e.conversationHistory.push({role:"user",content:a}),yield{type:"user",message:{role:"user",content:a},session_id:e.contentSessionId,parent_tool_use_id:null,isSynthetic:!0}}}findClaudeExecutable(){let e=_e.loadFromFile(At);if(e.CLAUDE_CODE_PATH){let{existsSync:r}=require("fs");if(!r(e.CLAUDE_CODE_PATH))throw new Error(`CLAUDE_CODE_PATH is set to "${e.CLAUDE_CODE_PATH}" but the file does not exist.`);return e.CLAUDE_CODE_PATH}if(process.platform==="win32")try{return(0,s$.execSync)("where claude.cmd",{encoding:"utf8",windowsHide:!0,stdio:["ignore","pipe","ignore"]}),"claude.cmd"}catch{}try{let r=(0,s$.execSync)(process.platform==="win32"?"where claude":"which claude",{encoding:"utf8",windowsHide:!0,stdio:["ignore","pipe","ignore"]}).trim().split(` +`)[0].trim();if(r)return r}catch(r){y.debug("SDK","Claude executable auto-detection failed",{},r)}throw new Error(`Claude executable not found. Please either: 1. Add "claude" to your system PATH, or -2. Set CLAUDE_CODE_PATH in ~/.claude-mem/settings.json`); - } - getModelId() { - const settingsPath = path13.join(homedir12(), ".claude-mem", "settings.json"); - const settings = SettingsDefaultsManager.loadFromFile(settingsPath); - return settings.CLAUDE_MEM_MODEL; - } -} - -// src/services/worker/GeminiAgent.ts -init_logger(); -import path14 from "path"; -import { homedir as homedir13 } from "os"; -init_SettingsDefaultsManager(); -init_ModeManager(); -var GEMINI_API_URL = "https://generativelanguage.googleapis.com/v1/models"; -var GEMINI_RPM_LIMITS = { - "gemini-2.5-flash-lite": 10, - "gemini-2.5-flash": 10, - "gemini-2.5-pro": 5, - "gemini-2.0-flash": 15, - "gemini-2.0-flash-lite": 30, - "gemini-3-flash": 10, - "gemini-3-flash-preview": 5 -}; -var lastRequestTime = 0; -async function enforceRateLimitForModel(model, rateLimitingEnabled) { - if (!rateLimitingEnabled) { - return; - } - const rpm = GEMINI_RPM_LIMITS[model] || 5; - const minimumDelayMs = Math.ceil(60000 / rpm) + 100; - const now = Date.now(); - const timeSinceLastRequest = now - lastRequestTime; - if (timeSinceLastRequest < minimumDelayMs) { - const waitTime = minimumDelayMs - timeSinceLastRequest; - logger.debug("SDK", `Rate limiting: waiting ${waitTime}ms before Gemini request`, { model, rpm }); - await new Promise((resolve) => setTimeout(resolve, waitTime)); - } - lastRequestTime = Date.now(); -} - -class GeminiAgent { - dbManager; - sessionManager; - fallbackAgent = null; - constructor(dbManager, sessionManager) { - this.dbManager = dbManager; - this.sessionManager = sessionManager; - } - setFallbackAgent(agent) { - this.fallbackAgent = agent; - } - async startSession(session, worker) { - try { - const { apiKey, model, rateLimitingEnabled } = this.getGeminiConfig(); - if (!apiKey) { - throw new Error("Gemini API key not configured. Set CLAUDE_MEM_GEMINI_API_KEY in settings or GEMINI_API_KEY environment variable."); - } - if (!session.memorySessionId) { - const syntheticMemorySessionId = `gemini-${session.contentSessionId}-${Date.now()}`; - session.memorySessionId = syntheticMemorySessionId; - this.dbManager.getSessionStore().updateMemorySessionId(session.sessionDbId, syntheticMemorySessionId); - logger.info("SESSION", `MEMORY_ID_GENERATED | sessionDbId=${session.sessionDbId} | provider=Gemini`); - } - const mode = ModeManager.getInstance().getActiveMode(); - const initPrompt = session.lastPromptNumber === 1 ? buildInitPrompt(session.project, session.contentSessionId, session.userPrompt, mode) : buildContinuationPrompt(session.userPrompt, session.lastPromptNumber, session.contentSessionId, mode); - session.conversationHistory.push({ role: "user", content: initPrompt }); - const initResponse = await this.queryGeminiMultiTurn(session.conversationHistory, apiKey, model, rateLimitingEnabled); - if (initResponse.content) { - session.conversationHistory.push({ role: "assistant", content: initResponse.content }); - const tokensUsed = initResponse.tokensUsed || 0; - session.cumulativeInputTokens += Math.floor(tokensUsed * 0.7); - session.cumulativeOutputTokens += Math.floor(tokensUsed * 0.3); - await processAgentResponse(initResponse.content, session, this.dbManager, this.sessionManager, worker, tokensUsed, null, "Gemini"); - } else { - logger.error("SDK", "Empty Gemini init response - session may lack context", { - sessionId: session.sessionDbId, - model - }); - } - let lastCwd; - for await (const message of this.sessionManager.getMessageIterator(session.sessionDbId)) { - session.processingMessageIds.push(message._persistentId); - if (message.cwd) { - lastCwd = message.cwd; - } - const originalTimestamp = session.earliestPendingTimestamp; - if (message.type === "observation") { - if (message.prompt_number !== undefined) { - session.lastPromptNumber = message.prompt_number; - } - if (!session.memorySessionId) { - throw new Error("Cannot process observations: memorySessionId not yet captured. This session may need to be reinitialized."); - } - const obsPrompt = buildObservationPrompt({ - id: 0, - tool_name: message.tool_name, - tool_input: JSON.stringify(message.tool_input), - tool_output: JSON.stringify(message.tool_response), - created_at_epoch: originalTimestamp ?? Date.now(), - cwd: message.cwd - }); - session.conversationHistory.push({ role: "user", content: obsPrompt }); - const obsResponse = await this.queryGeminiMultiTurn(session.conversationHistory, apiKey, model, rateLimitingEnabled); - let tokensUsed = 0; - if (obsResponse.content) { - session.conversationHistory.push({ role: "assistant", content: obsResponse.content }); - tokensUsed = obsResponse.tokensUsed || 0; - session.cumulativeInputTokens += Math.floor(tokensUsed * 0.7); - session.cumulativeOutputTokens += Math.floor(tokensUsed * 0.3); - } - if (obsResponse.content) { - await processAgentResponse(obsResponse.content, session, this.dbManager, this.sessionManager, worker, tokensUsed, originalTimestamp, "Gemini", lastCwd); - } else { - logger.warn("SDK", "Empty Gemini observation response, skipping processing to preserve message", { - sessionId: session.sessionDbId, - messageId: session.processingMessageIds[session.processingMessageIds.length - 1] - }); - } - } else if (message.type === "summarize") { - if (!session.memorySessionId) { - throw new Error("Cannot process summary: memorySessionId not yet captured. This session may need to be reinitialized."); - } - const summaryPrompt = buildSummaryPrompt({ - id: session.sessionDbId, - memory_session_id: session.memorySessionId, - project: session.project, - user_prompt: session.userPrompt, - last_assistant_message: message.last_assistant_message || "" - }, mode); - session.conversationHistory.push({ role: "user", content: summaryPrompt }); - const summaryResponse = await this.queryGeminiMultiTurn(session.conversationHistory, apiKey, model, rateLimitingEnabled); - let tokensUsed = 0; - if (summaryResponse.content) { - session.conversationHistory.push({ role: "assistant", content: summaryResponse.content }); - tokensUsed = summaryResponse.tokensUsed || 0; - session.cumulativeInputTokens += Math.floor(tokensUsed * 0.7); - session.cumulativeOutputTokens += Math.floor(tokensUsed * 0.3); - } - if (summaryResponse.content) { - await processAgentResponse(summaryResponse.content, session, this.dbManager, this.sessionManager, worker, tokensUsed, originalTimestamp, "Gemini", lastCwd); - } else { - logger.warn("SDK", "Empty Gemini summary response, skipping processing to preserve message", { - sessionId: session.sessionDbId, - messageId: session.processingMessageIds[session.processingMessageIds.length - 1] - }); - } - } - } - const sessionDuration = Date.now() - session.startTime; - logger.success("SDK", "Gemini agent completed", { - sessionId: session.sessionDbId, - duration: `${(sessionDuration / 1000).toFixed(1)}s`, - historyLength: session.conversationHistory.length - }); - } catch (error3) { - if (isAbortError(error3)) { - logger.warn("SDK", "Gemini agent aborted", { sessionId: session.sessionDbId }); - throw error3; - } - if (shouldFallbackToClaude(error3) && this.fallbackAgent) { - logger.warn("SDK", "Gemini API failed, falling back to Claude SDK", { - sessionDbId: session.sessionDbId, - error: error3 instanceof Error ? error3.message : String(error3), - historyLength: session.conversationHistory.length - }); - return this.fallbackAgent.startSession(session, worker); - } - logger.failure("SDK", "Gemini agent error", { sessionDbId: session.sessionDbId }, error3); - throw error3; - } - } - conversationToGeminiContents(history) { - return history.map((msg) => ({ - role: msg.role === "assistant" ? "model" : "user", - parts: [{ text: msg.content }] - })); - } - async queryGeminiMultiTurn(history, apiKey, model, rateLimitingEnabled) { - const contents = this.conversationToGeminiContents(history); - const totalChars = history.reduce((sum, m) => sum + m.content.length, 0); - logger.debug("SDK", `Querying Gemini multi-turn (${model})`, { - turns: history.length, - totalChars - }); - const url = `${GEMINI_API_URL}/${model}:generateContent?key=${apiKey}`; - await enforceRateLimitForModel(model, rateLimitingEnabled); - const response = await fetch(url, { - method: "POST", - headers: { - "Content-Type": "application/json" - }, - body: JSON.stringify({ - contents, - generationConfig: { - temperature: 0.3, - maxOutputTokens: 4096 - } - }) - }); - if (!response.ok) { - const error3 = await response.text(); - throw new Error(`Gemini API error: ${response.status} - ${error3}`); - } - const data = await response.json(); - if (!data.candidates?.[0]?.content?.parts?.[0]?.text) { - logger.error("SDK", "Empty response from Gemini"); - return { content: "" }; - } - const content = data.candidates[0].content.parts[0].text; - const tokensUsed = data.usageMetadata?.totalTokenCount; - return { content, tokensUsed }; - } - getGeminiConfig() { - const settingsPath = path14.join(homedir13(), ".claude-mem", "settings.json"); - const settings = SettingsDefaultsManager.loadFromFile(settingsPath); - const apiKey = settings.CLAUDE_MEM_GEMINI_API_KEY || getCredential("GEMINI_API_KEY") || ""; - const defaultModel = "gemini-2.5-flash"; - const configuredModel = settings.CLAUDE_MEM_GEMINI_MODEL || defaultModel; - const validModels = [ - "gemini-2.5-flash-lite", - "gemini-2.5-flash", - "gemini-2.5-pro", - "gemini-2.0-flash", - "gemini-2.0-flash-lite", - "gemini-3-flash", - "gemini-3-flash-preview" - ]; - let model; - if (validModels.includes(configuredModel)) { - model = configuredModel; - } else { - logger.warn("SDK", `Invalid Gemini model "${configuredModel}", falling back to ${defaultModel}`, { - configured: configuredModel, - validModels - }); - model = defaultModel; - } - const rateLimitingEnabled = settings.CLAUDE_MEM_GEMINI_RATE_LIMITING_ENABLED !== "false"; - return { apiKey, model, rateLimitingEnabled }; - } -} -function isGeminiAvailable() { - const settingsPath = path14.join(homedir13(), ".claude-mem", "settings.json"); - const settings = SettingsDefaultsManager.loadFromFile(settingsPath); - return !!(settings.CLAUDE_MEM_GEMINI_API_KEY || getCredential("GEMINI_API_KEY")); -} -function isGeminiSelected() { - const settingsPath = path14.join(homedir13(), ".claude-mem", "settings.json"); - const settings = SettingsDefaultsManager.loadFromFile(settingsPath); - return settings.CLAUDE_MEM_PROVIDER === "gemini"; -} - -// src/services/worker/OpenRouterAgent.ts -init_SettingsDefaultsManager(); -init_paths(); -init_logger(); -init_ModeManager(); -var OPENROUTER_API_URL = "https://openrouter.ai/api/v1/chat/completions"; -var DEFAULT_MAX_CONTEXT_MESSAGES = 20; -var DEFAULT_MAX_ESTIMATED_TOKENS = 1e5; -var CHARS_PER_TOKEN_ESTIMATE = 4; - -class OpenRouterAgent { - dbManager; - sessionManager; - fallbackAgent = null; - constructor(dbManager, sessionManager) { - this.dbManager = dbManager; - this.sessionManager = sessionManager; - } - setFallbackAgent(agent) { - this.fallbackAgent = agent; - } - async startSession(session, worker) { - try { - const { apiKey, model, siteUrl, appName } = this.getOpenRouterConfig(); - if (!apiKey) { - throw new Error("OpenRouter API key not configured. Set CLAUDE_MEM_OPENROUTER_API_KEY in settings or OPENROUTER_API_KEY environment variable."); - } - if (!session.memorySessionId) { - const syntheticMemorySessionId = `openrouter-${session.contentSessionId}-${Date.now()}`; - session.memorySessionId = syntheticMemorySessionId; - this.dbManager.getSessionStore().updateMemorySessionId(session.sessionDbId, syntheticMemorySessionId); - logger.info("SESSION", `MEMORY_ID_GENERATED | sessionDbId=${session.sessionDbId} | provider=OpenRouter`); - } - const mode = ModeManager.getInstance().getActiveMode(); - const initPrompt = session.lastPromptNumber === 1 ? buildInitPrompt(session.project, session.contentSessionId, session.userPrompt, mode) : buildContinuationPrompt(session.userPrompt, session.lastPromptNumber, session.contentSessionId, mode); - session.conversationHistory.push({ role: "user", content: initPrompt }); - const initResponse = await this.queryOpenRouterMultiTurn(session.conversationHistory, apiKey, model, siteUrl, appName); - if (initResponse.content) { - const tokensUsed = initResponse.tokensUsed || 0; - session.cumulativeInputTokens += Math.floor(tokensUsed * 0.7); - session.cumulativeOutputTokens += Math.floor(tokensUsed * 0.3); - await processAgentResponse(initResponse.content, session, this.dbManager, this.sessionManager, worker, tokensUsed, null, "OpenRouter", undefined); - } else { - logger.error("SDK", "Empty OpenRouter init response - session may lack context", { - sessionId: session.sessionDbId, - model - }); - } - let lastCwd; - for await (const message of this.sessionManager.getMessageIterator(session.sessionDbId)) { - session.processingMessageIds.push(message._persistentId); - if (message.cwd) { - lastCwd = message.cwd; - } - const originalTimestamp = session.earliestPendingTimestamp; - if (message.type === "observation") { - if (message.prompt_number !== undefined) { - session.lastPromptNumber = message.prompt_number; - } - if (!session.memorySessionId) { - throw new Error("Cannot process observations: memorySessionId not yet captured. This session may need to be reinitialized."); - } - const obsPrompt = buildObservationPrompt({ - id: 0, - tool_name: message.tool_name, - tool_input: JSON.stringify(message.tool_input), - tool_output: JSON.stringify(message.tool_response), - created_at_epoch: originalTimestamp ?? Date.now(), - cwd: message.cwd - }); - session.conversationHistory.push({ role: "user", content: obsPrompt }); - const obsResponse = await this.queryOpenRouterMultiTurn(session.conversationHistory, apiKey, model, siteUrl, appName); - let tokensUsed = 0; - if (obsResponse.content) { - tokensUsed = obsResponse.tokensUsed || 0; - session.cumulativeInputTokens += Math.floor(tokensUsed * 0.7); - session.cumulativeOutputTokens += Math.floor(tokensUsed * 0.3); - } - await processAgentResponse(obsResponse.content || "", session, this.dbManager, this.sessionManager, worker, tokensUsed, originalTimestamp, "OpenRouter", lastCwd); - } else if (message.type === "summarize") { - if (!session.memorySessionId) { - throw new Error("Cannot process summary: memorySessionId not yet captured. This session may need to be reinitialized."); - } - const summaryPrompt = buildSummaryPrompt({ - id: session.sessionDbId, - memory_session_id: session.memorySessionId, - project: session.project, - user_prompt: session.userPrompt, - last_assistant_message: message.last_assistant_message || "" - }, mode); - session.conversationHistory.push({ role: "user", content: summaryPrompt }); - const summaryResponse = await this.queryOpenRouterMultiTurn(session.conversationHistory, apiKey, model, siteUrl, appName); - let tokensUsed = 0; - if (summaryResponse.content) { - tokensUsed = summaryResponse.tokensUsed || 0; - session.cumulativeInputTokens += Math.floor(tokensUsed * 0.7); - session.cumulativeOutputTokens += Math.floor(tokensUsed * 0.3); - } - await processAgentResponse(summaryResponse.content || "", session, this.dbManager, this.sessionManager, worker, tokensUsed, originalTimestamp, "OpenRouter", lastCwd); - } - } - const sessionDuration = Date.now() - session.startTime; - logger.success("SDK", "OpenRouter agent completed", { - sessionId: session.sessionDbId, - duration: `${(sessionDuration / 1000).toFixed(1)}s`, - historyLength: session.conversationHistory.length, - model - }); - } catch (error3) { - if (isAbortError(error3)) { - logger.warn("SDK", "OpenRouter agent aborted", { sessionId: session.sessionDbId }); - throw error3; - } - if (shouldFallbackToClaude(error3) && this.fallbackAgent) { - logger.warn("SDK", "OpenRouter API failed, falling back to Claude SDK", { - sessionDbId: session.sessionDbId, - error: error3 instanceof Error ? error3.message : String(error3), - historyLength: session.conversationHistory.length - }); - return this.fallbackAgent.startSession(session, worker); - } - logger.failure("SDK", "OpenRouter agent error", { sessionDbId: session.sessionDbId }, error3); - throw error3; - } - } - estimateTokens(text) { - return Math.ceil(text.length / CHARS_PER_TOKEN_ESTIMATE); - } - truncateHistory(history) { - const settings = SettingsDefaultsManager.loadFromFile(USER_SETTINGS_PATH); - const MAX_CONTEXT_MESSAGES = parseInt(settings.CLAUDE_MEM_OPENROUTER_MAX_CONTEXT_MESSAGES) || DEFAULT_MAX_CONTEXT_MESSAGES; - const MAX_ESTIMATED_TOKENS = parseInt(settings.CLAUDE_MEM_OPENROUTER_MAX_TOKENS) || DEFAULT_MAX_ESTIMATED_TOKENS; - if (history.length <= MAX_CONTEXT_MESSAGES) { - const totalTokens = history.reduce((sum, m) => sum + this.estimateTokens(m.content), 0); - if (totalTokens <= MAX_ESTIMATED_TOKENS) { - return history; - } - } - const truncated = []; - let tokenCount = 0; - for (let i = history.length - 1;i >= 0; i--) { - const msg = history[i]; - const msgTokens = this.estimateTokens(msg.content); - if (truncated.length >= MAX_CONTEXT_MESSAGES || tokenCount + msgTokens > MAX_ESTIMATED_TOKENS) { - logger.warn("SDK", "Context window truncated to prevent runaway costs", { - originalMessages: history.length, - keptMessages: truncated.length, - droppedMessages: i + 1, - estimatedTokens: tokenCount, - tokenLimit: MAX_ESTIMATED_TOKENS - }); - break; - } - truncated.unshift(msg); - tokenCount += msgTokens; - } - return truncated; - } - conversationToOpenAIMessages(history) { - return history.map((msg) => ({ - role: msg.role === "assistant" ? "assistant" : "user", - content: msg.content - })); - } - async queryOpenRouterMultiTurn(history, apiKey, model, siteUrl, appName) { - const truncatedHistory = this.truncateHistory(history); - const messages = this.conversationToOpenAIMessages(truncatedHistory); - const totalChars = truncatedHistory.reduce((sum, m) => sum + m.content.length, 0); - const estimatedTokens = this.estimateTokens(truncatedHistory.map((m) => m.content).join("")); - logger.debug("SDK", `Querying OpenRouter multi-turn (${model})`, { - turns: truncatedHistory.length, - totalChars, - estimatedTokens - }); - const response = await fetch(OPENROUTER_API_URL, { - method: "POST", - headers: { - Authorization: `Bearer ${apiKey}`, - "HTTP-Referer": siteUrl || "https://github.com/thedotmack/claude-mem", - "X-Title": appName || "claude-mem", - "Content-Type": "application/json" - }, - body: JSON.stringify({ - model, - messages, - temperature: 0.3, - max_tokens: 4096 - }) - }); - if (!response.ok) { - const errorText = await response.text(); - throw new Error(`OpenRouter API error: ${response.status} - ${errorText}`); - } - const data = await response.json(); - if (data.error) { - throw new Error(`OpenRouter API error: ${data.error.code} - ${data.error.message}`); - } - if (!data.choices?.[0]?.message?.content) { - logger.error("SDK", "Empty response from OpenRouter"); - return { content: "" }; - } - const content = data.choices[0].message.content; - const tokensUsed = data.usage?.total_tokens; - if (tokensUsed) { - const inputTokens = data.usage?.prompt_tokens || 0; - const outputTokens = data.usage?.completion_tokens || 0; - const estimatedCost = inputTokens / 1e6 * 3 + outputTokens / 1e6 * 15; - logger.info("SDK", "OpenRouter API usage", { - model, - inputTokens, - outputTokens, - totalTokens: tokensUsed, - estimatedCostUSD: estimatedCost.toFixed(4), - messagesInContext: truncatedHistory.length - }); - if (tokensUsed > 50000) { - logger.warn("SDK", "High token usage detected - consider reducing context", { - totalTokens: tokensUsed, - estimatedCost: estimatedCost.toFixed(4) - }); - } - } - return { content, tokensUsed }; - } - getOpenRouterConfig() { - const settingsPath = USER_SETTINGS_PATH; - const settings = SettingsDefaultsManager.loadFromFile(settingsPath); - const apiKey = settings.CLAUDE_MEM_OPENROUTER_API_KEY || getCredential("OPENROUTER_API_KEY") || ""; - const model = settings.CLAUDE_MEM_OPENROUTER_MODEL || "xiaomi/mimo-v2-flash:free"; - const siteUrl = settings.CLAUDE_MEM_OPENROUTER_SITE_URL || ""; - const appName = settings.CLAUDE_MEM_OPENROUTER_APP_NAME || "claude-mem"; - return { apiKey, model, siteUrl, appName }; - } -} -function isOpenRouterAvailable() { - const settingsPath = USER_SETTINGS_PATH; - const settings = SettingsDefaultsManager.loadFromFile(settingsPath); - return !!(settings.CLAUDE_MEM_OPENROUTER_API_KEY || getCredential("OPENROUTER_API_KEY")); -} -function isOpenRouterSelected() { - const settingsPath = USER_SETTINGS_PATH; - const settings = SettingsDefaultsManager.loadFromFile(settingsPath); - return settings.CLAUDE_MEM_PROVIDER === "openrouter"; -} - -// src/services/worker/PaginationHelper.ts -init_logger(); - -class PaginationHelper { - dbManager; - constructor(dbManager) { - this.dbManager = dbManager; - } - stripProjectPath(filePath, projectName) { - const marker = `/${projectName}/`; - const index = filePath.indexOf(marker); - if (index !== -1) { - return filePath.substring(index + marker.length); - } - return filePath; - } - stripProjectPaths(filePathsStr, projectName) { - if (!filePathsStr) - return filePathsStr; - try { - const paths = JSON.parse(filePathsStr); - const strippedPaths = paths.map((p) => this.stripProjectPath(p, projectName)); - return JSON.stringify(strippedPaths); - } catch (err) { - logger.debug("WORKER", "File paths is plain string, using as-is", {}, err); - return filePathsStr; - } - } - sanitizeObservation(obs) { - return { - ...obs, - files_read: this.stripProjectPaths(obs.files_read, obs.project), - files_modified: this.stripProjectPaths(obs.files_modified, obs.project) - }; - } - getObservations(offset, limit, project) { - const result = this.paginate("observations", "id, memory_session_id, project, type, title, subtitle, narrative, text, facts, concepts, files_read, files_modified, prompt_number, created_at, created_at_epoch", offset, limit, project); - return { - ...result, - items: result.items.map((obs) => this.sanitizeObservation(obs)) - }; - } - getSummaries(offset, limit, project) { - const db = this.dbManager.getSessionStore().db; - let query2 = ` +2. Set CLAUDE_CODE_PATH in ~/.claude-mem/settings.json`)}getModelId(){let e=cq.default.join((0,aq.homedir)(),".claude-mem","settings.json");return _e.loadFromFile(e).CLAUDE_MEM_MODEL}};var Hg=Ue(require("path"),1),Zg=require("os");oe();Yt();Br();var Hhe="https://generativelanguage.googleapis.com/v1/models",Zhe={"gemini-2.5-flash-lite":10,"gemini-2.5-flash":10,"gemini-2.5-pro":5,"gemini-2.0-flash":15,"gemini-2.0-flash-lite":30,"gemini-3-flash":10,"gemini-3-flash-preview":5},uq=0;async function Bhe(t,e){if(!e)return;let r=Zhe[t]||5,n=Math.ceil(6e4/r)+100,s=Date.now()-uq;if(ssetTimeout(a,o))}uq=Date.now()}var Fg=class{dbManager;sessionManager;fallbackAgent=null;constructor(e,r){this.dbManager=e,this.sessionManager=r}setFallbackAgent(e){this.fallbackAgent=e}async startSession(e,r){try{let{apiKey:n,model:i,rateLimitingEnabled:s}=this.getGeminiConfig();if(!n)throw new Error("Gemini API key not configured. Set CLAUDE_MEM_GEMINI_API_KEY in settings or GEMINI_API_KEY environment variable.");if(!e.memorySessionId){let d=`gemini-${e.contentSessionId}-${Date.now()}`;e.memorySessionId=d,this.dbManager.getSessionStore().updateMemorySessionId(e.sessionDbId,d),y.info("SESSION",`MEMORY_ID_GENERATED | sessionDbId=${e.sessionDbId} | provider=Gemini`)}let o=He.getInstance().getActiveMode(),a=e.lastPromptNumber===1?kc(e.project,e.contentSessionId,e.userPrompt,o):Ic(e.userPrompt,e.lastPromptNumber,e.contentSessionId,o);e.conversationHistory.push({role:"user",content:a});let c=await this.queryGeminiMultiTurn(e.conversationHistory,n,i,s);if(c.content){e.conversationHistory.push({role:"assistant",content:c.content});let d=c.tokensUsed||0;e.cumulativeInputTokens+=Math.floor(d*.7),e.cumulativeOutputTokens+=Math.floor(d*.3),await ri(c.content,e,this.dbManager,this.sessionManager,r,d,null,"Gemini")}else y.error("SDK","Empty Gemini init response - session may lack context",{sessionId:e.sessionDbId,model:i});let u;for await(let d of this.sessionManager.getMessageIterator(e.sessionDbId)){e.processingMessageIds.push(d._persistentId),d.cwd&&(u=d.cwd);let p=e.earliestPendingTimestamp;if(d.type==="observation"){if(d.prompt_number!==void 0&&(e.lastPromptNumber=d.prompt_number),!e.memorySessionId)throw new Error("Cannot process observations: memorySessionId not yet captured. This session may need to be reinitialized.");let m=$c({id:0,tool_name:d.tool_name,tool_input:JSON.stringify(d.tool_input),tool_output:JSON.stringify(d.tool_response),created_at_epoch:p??Date.now(),cwd:d.cwd});e.conversationHistory.push({role:"user",content:m});let f=await this.queryGeminiMultiTurn(e.conversationHistory,n,i,s),g=0;f.content&&(e.conversationHistory.push({role:"assistant",content:f.content}),g=f.tokensUsed||0,e.cumulativeInputTokens+=Math.floor(g*.7),e.cumulativeOutputTokens+=Math.floor(g*.3)),f.content?await ri(f.content,e,this.dbManager,this.sessionManager,r,g,p,"Gemini",u):y.warn("SDK","Empty Gemini observation response, skipping processing to preserve message",{sessionId:e.sessionDbId,messageId:e.processingMessageIds[e.processingMessageIds.length-1]})}else if(d.type==="summarize"){if(!e.memorySessionId)throw new Error("Cannot process summary: memorySessionId not yet captured. This session may need to be reinitialized.");let m=Tc({id:e.sessionDbId,memory_session_id:e.memorySessionId,project:e.project,user_prompt:e.userPrompt,last_assistant_message:d.last_assistant_message||""},o);e.conversationHistory.push({role:"user",content:m});let f=await this.queryGeminiMultiTurn(e.conversationHistory,n,i,s),g=0;f.content&&(e.conversationHistory.push({role:"assistant",content:f.content}),g=f.tokensUsed||0,e.cumulativeInputTokens+=Math.floor(g*.7),e.cumulativeOutputTokens+=Math.floor(g*.3)),f.content?await ri(f.content,e,this.dbManager,this.sessionManager,r,g,p,"Gemini",u):y.warn("SDK","Empty Gemini summary response, skipping processing to preserve message",{sessionId:e.sessionDbId,messageId:e.processingMessageIds[e.processingMessageIds.length-1]})}}let l=Date.now()-e.startTime;y.success("SDK","Gemini agent completed",{sessionId:e.sessionDbId,duration:`${(l/1e3).toFixed(1)}s`,historyLength:e.conversationHistory.length})}catch(n){if(qd(n))throw y.warn("SDK","Gemini agent aborted",{sessionId:e.sessionDbId}),n;if(Ud(n)&&this.fallbackAgent)return y.warn("SDK","Gemini API failed, falling back to Claude SDK",{sessionDbId:e.sessionDbId,error:n instanceof Error?n.message:String(n),historyLength:e.conversationHistory.length}),this.fallbackAgent.startSession(e,r);throw y.failure("SDK","Gemini agent error",{sessionDbId:e.sessionDbId},n),n}}conversationToGeminiContents(e){return e.map(r=>({role:r.role==="assistant"?"model":"user",parts:[{text:r.content}]}))}async queryGeminiMultiTurn(e,r,n,i){let s=this.conversationToGeminiContents(e),o=e.reduce((p,m)=>p+m.content.length,0);y.debug("SDK",`Querying Gemini multi-turn (${n})`,{turns:e.length,totalChars:o});let a=`${Hhe}/${n}:generateContent?key=${r}`;await Bhe(n,i);let c=await fetch(a,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({contents:s,generationConfig:{temperature:.3,maxOutputTokens:4096}})});if(!c.ok){let p=await c.text();throw new Error(`Gemini API error: ${c.status} - ${p}`)}let u=await c.json();if(!u.candidates?.[0]?.content?.parts?.[0]?.text)return y.error("SDK","Empty response from Gemini"),{content:""};let l=u.candidates[0].content.parts[0].text,d=u.usageMetadata?.totalTokenCount;return{content:l,tokensUsed:d}}getGeminiConfig(){let e=Hg.default.join((0,Zg.homedir)(),".claude-mem","settings.json"),r=_e.loadFromFile(e),n=r.CLAUDE_MEM_GEMINI_API_KEY||Wa("GEMINI_API_KEY")||"",i="gemini-2.5-flash",s=r.CLAUDE_MEM_GEMINI_MODEL||i,o=["gemini-2.5-flash-lite","gemini-2.5-flash","gemini-2.5-pro","gemini-2.0-flash","gemini-2.0-flash-lite","gemini-3-flash","gemini-3-flash-preview"],a;o.includes(s)?a=s:(y.warn("SDK",`Invalid Gemini model "${s}", falling back to ${i}`,{configured:s,validModels:o}),a=i);let c=r.CLAUDE_MEM_GEMINI_RATE_LIMITING_ENABLED!=="false";return{apiKey:n,model:a,rateLimitingEnabled:c}}};function Vo(){let t=Hg.default.join((0,Zg.homedir)(),".claude-mem","settings.json");return!!(_e.loadFromFile(t).CLAUDE_MEM_GEMINI_API_KEY||Wa("GEMINI_API_KEY"))}function Qc(){let t=Hg.default.join((0,Zg.homedir)(),".claude-mem","settings.json");return _e.loadFromFile(t).CLAUDE_MEM_PROVIDER==="gemini"}Yt();Nt();oe();Br();var Vhe="https://openrouter.ai/api/v1/chat/completions",Ghe=20,Whe=1e5,Khe=4,Bg=class{dbManager;sessionManager;fallbackAgent=null;constructor(e,r){this.dbManager=e,this.sessionManager=r}setFallbackAgent(e){this.fallbackAgent=e}async startSession(e,r){try{let{apiKey:n,model:i,siteUrl:s,appName:o}=this.getOpenRouterConfig();if(!n)throw new Error("OpenRouter API key not configured. Set CLAUDE_MEM_OPENROUTER_API_KEY in settings or OPENROUTER_API_KEY environment variable.");if(!e.memorySessionId){let p=`openrouter-${e.contentSessionId}-${Date.now()}`;e.memorySessionId=p,this.dbManager.getSessionStore().updateMemorySessionId(e.sessionDbId,p),y.info("SESSION",`MEMORY_ID_GENERATED | sessionDbId=${e.sessionDbId} | provider=OpenRouter`)}let a=He.getInstance().getActiveMode(),c=e.lastPromptNumber===1?kc(e.project,e.contentSessionId,e.userPrompt,a):Ic(e.userPrompt,e.lastPromptNumber,e.contentSessionId,a);e.conversationHistory.push({role:"user",content:c});let u=await this.queryOpenRouterMultiTurn(e.conversationHistory,n,i,s,o);if(u.content){let p=u.tokensUsed||0;e.cumulativeInputTokens+=Math.floor(p*.7),e.cumulativeOutputTokens+=Math.floor(p*.3),await ri(u.content,e,this.dbManager,this.sessionManager,r,p,null,"OpenRouter",void 0)}else y.error("SDK","Empty OpenRouter init response - session may lack context",{sessionId:e.sessionDbId,model:i});let l;for await(let p of this.sessionManager.getMessageIterator(e.sessionDbId)){e.processingMessageIds.push(p._persistentId),p.cwd&&(l=p.cwd);let m=e.earliestPendingTimestamp;if(p.type==="observation"){if(p.prompt_number!==void 0&&(e.lastPromptNumber=p.prompt_number),!e.memorySessionId)throw new Error("Cannot process observations: memorySessionId not yet captured. This session may need to be reinitialized.");let f=$c({id:0,tool_name:p.tool_name,tool_input:JSON.stringify(p.tool_input),tool_output:JSON.stringify(p.tool_response),created_at_epoch:m??Date.now(),cwd:p.cwd});e.conversationHistory.push({role:"user",content:f});let g=await this.queryOpenRouterMultiTurn(e.conversationHistory,n,i,s,o),h=0;g.content&&(h=g.tokensUsed||0,e.cumulativeInputTokens+=Math.floor(h*.7),e.cumulativeOutputTokens+=Math.floor(h*.3)),await ri(g.content||"",e,this.dbManager,this.sessionManager,r,h,m,"OpenRouter",l)}else if(p.type==="summarize"){if(!e.memorySessionId)throw new Error("Cannot process summary: memorySessionId not yet captured. This session may need to be reinitialized.");let f=Tc({id:e.sessionDbId,memory_session_id:e.memorySessionId,project:e.project,user_prompt:e.userPrompt,last_assistant_message:p.last_assistant_message||""},a);e.conversationHistory.push({role:"user",content:f});let g=await this.queryOpenRouterMultiTurn(e.conversationHistory,n,i,s,o),h=0;g.content&&(h=g.tokensUsed||0,e.cumulativeInputTokens+=Math.floor(h*.7),e.cumulativeOutputTokens+=Math.floor(h*.3)),await ri(g.content||"",e,this.dbManager,this.sessionManager,r,h,m,"OpenRouter",l)}}let d=Date.now()-e.startTime;y.success("SDK","OpenRouter agent completed",{sessionId:e.sessionDbId,duration:`${(d/1e3).toFixed(1)}s`,historyLength:e.conversationHistory.length,model:i})}catch(n){if(qd(n))throw y.warn("SDK","OpenRouter agent aborted",{sessionId:e.sessionDbId}),n;if(Ud(n)&&this.fallbackAgent)return y.warn("SDK","OpenRouter API failed, falling back to Claude SDK",{sessionDbId:e.sessionDbId,error:n instanceof Error?n.message:String(n),historyLength:e.conversationHistory.length}),this.fallbackAgent.startSession(e,r);throw y.failure("SDK","OpenRouter agent error",{sessionDbId:e.sessionDbId},n),n}}estimateTokens(e){return Math.ceil(e.length/Khe)}truncateHistory(e){let r=_e.loadFromFile(At),n=parseInt(r.CLAUDE_MEM_OPENROUTER_MAX_CONTEXT_MESSAGES)||Ghe,i=parseInt(r.CLAUDE_MEM_OPENROUTER_MAX_TOKENS)||Whe;if(e.length<=n&&e.reduce((c,u)=>c+this.estimateTokens(u.content),0)<=i)return e;let s=[],o=0;for(let a=e.length-1;a>=0;a--){let c=e[a],u=this.estimateTokens(c.content);if(s.length>=n||o+u>i){y.warn("SDK","Context window truncated to prevent runaway costs",{originalMessages:e.length,keptMessages:s.length,droppedMessages:a+1,estimatedTokens:o,tokenLimit:i});break}s.unshift(c),o+=u}return s}conversationToOpenAIMessages(e){return e.map(r=>({role:r.role==="assistant"?"assistant":"user",content:r.content}))}async queryOpenRouterMultiTurn(e,r,n,i,s){let o=this.truncateHistory(e),a=this.conversationToOpenAIMessages(o),c=o.reduce((f,g)=>f+g.content.length,0),u=this.estimateTokens(o.map(f=>f.content).join(""));y.debug("SDK",`Querying OpenRouter multi-turn (${n})`,{turns:o.length,totalChars:c,estimatedTokens:u});let l=await fetch(Vhe,{method:"POST",headers:{Authorization:`Bearer ${r}`,"HTTP-Referer":i||"https://github.com/thedotmack/claude-mem","X-Title":s||"claude-mem","Content-Type":"application/json"},body:JSON.stringify({model:n,messages:a,temperature:.3,max_tokens:4096})});if(!l.ok){let f=await l.text();throw new Error(`OpenRouter API error: ${l.status} - ${f}`)}let d=await l.json();if(d.error)throw new Error(`OpenRouter API error: ${d.error.code} - ${d.error.message}`);if(!d.choices?.[0]?.message?.content)return y.error("SDK","Empty response from OpenRouter"),{content:""};let p=d.choices[0].message.content,m=d.usage?.total_tokens;if(m){let f=d.usage?.prompt_tokens||0,g=d.usage?.completion_tokens||0,h=f/1e6*3+g/1e6*15;y.info("SDK","OpenRouter API usage",{model:n,inputTokens:f,outputTokens:g,totalTokens:m,estimatedCostUSD:h.toFixed(4),messagesInContext:o.length}),m>5e4&&y.warn("SDK","High token usage detected - consider reducing context",{totalTokens:m,estimatedCost:h.toFixed(4)})}return{content:p,tokensUsed:m}}getOpenRouterConfig(){let e=At,r=_e.loadFromFile(e),n=r.CLAUDE_MEM_OPENROUTER_API_KEY||Wa("OPENROUTER_API_KEY")||"",i=r.CLAUDE_MEM_OPENROUTER_MODEL||"xiaomi/mimo-v2-flash:free",s=r.CLAUDE_MEM_OPENROUTER_SITE_URL||"",o=r.CLAUDE_MEM_OPENROUTER_APP_NAME||"claude-mem";return{apiKey:n,model:i,siteUrl:s,appName:o}}};function Go(){let t=At;return!!(_e.loadFromFile(t).CLAUDE_MEM_OPENROUTER_API_KEY||Wa("OPENROUTER_API_KEY"))}function eu(){let t=At;return _e.loadFromFile(t).CLAUDE_MEM_PROVIDER==="openrouter"}oe();var Vg=class{dbManager;constructor(e){this.dbManager=e}stripProjectPath(e,r){let n=`/${r}/`,i=e.indexOf(n);return i!==-1?e.substring(i+n.length):e}stripProjectPaths(e,r){if(!e)return e;try{let i=JSON.parse(e).map(s=>this.stripProjectPath(s,r));return JSON.stringify(i)}catch(n){return y.debug("WORKER","File paths is plain string, using as-is",{},n),e}}sanitizeObservation(e){return{...e,files_read:this.stripProjectPaths(e.files_read,e.project),files_modified:this.stripProjectPaths(e.files_modified,e.project)}}getObservations(e,r,n){let i=this.paginate("observations","id, memory_session_id, project, type, title, subtitle, narrative, text, facts, concepts, files_read, files_modified, prompt_number, created_at, created_at_epoch",e,r,n);return{...i,items:i.items.map(s=>this.sanitizeObservation(s))}}getSummaries(e,r,n){let i=this.dbManager.getSessionStore().db,s=` SELECT ss.id, s.content_session_id as session_id, @@ -63729,695 +1332,23 @@ class PaginationHelper { ss.created_at_epoch FROM session_summaries ss JOIN sdk_sessions s ON ss.memory_session_id = s.memory_session_id - `; - const params = []; - if (project) { - query2 += " WHERE ss.project = ?"; - params.push(project); - } - query2 += " ORDER BY ss.created_at_epoch DESC LIMIT ? OFFSET ?"; - params.push(limit + 1, offset); - const stmt = db.prepare(query2); - const results = stmt.all(...params); - return { - items: results.slice(0, limit), - hasMore: results.length > limit, - offset, - limit - }; - } - getPrompts(offset, limit, project) { - const db = this.dbManager.getSessionStore().db; - let query2 = ` + `,o=[];n&&(s+=" WHERE ss.project = ?",o.push(n)),s+=" ORDER BY ss.created_at_epoch DESC LIMIT ? OFFSET ?",o.push(r+1,e);let c=i.prepare(s).all(...o);return{items:c.slice(0,r),hasMore:c.length>r,offset:e,limit:r}}getPrompts(e,r,n){let i=this.dbManager.getSessionStore().db,s=` SELECT up.id, up.content_session_id, s.project, up.prompt_number, up.prompt_text, up.created_at, up.created_at_epoch FROM user_prompts up JOIN sdk_sessions s ON up.content_session_id = s.content_session_id - `; - const params = []; - if (project) { - query2 += " WHERE s.project = ?"; - params.push(project); - } - query2 += " ORDER BY up.created_at_epoch DESC LIMIT ? OFFSET ?"; - params.push(limit + 1, offset); - const stmt = db.prepare(query2); - const results = stmt.all(...params); - return { - items: results.slice(0, limit), - hasMore: results.length > limit, - offset, - limit - }; - } - paginate(table, columns, offset, limit, project) { - const db = this.dbManager.getSessionStore().db; - let query2 = `SELECT ${columns} FROM ${table}`; - const params = []; - if (project) { - query2 += " WHERE project = ?"; - params.push(project); - } - query2 += " ORDER BY created_at_epoch DESC LIMIT ? OFFSET ?"; - params.push(limit + 1, offset); - const stmt = db.prepare(query2); - const results = stmt.all(...params); - return { - items: results.slice(0, limit), - hasMore: results.length > limit, - offset, - limit - }; - } -} - -// src/services/worker/SettingsManager.ts -init_logger(); - -class SettingsManager { - dbManager; - defaultSettings = { - sidebarOpen: true, - selectedProject: null, - theme: "system" - }; - constructor(dbManager) { - this.dbManager = dbManager; - } - getSettings() { - const db = this.dbManager.getSessionStore().db; - try { - const stmt = db.prepare("SELECT key, value FROM viewer_settings"); - const rows = stmt.all(); - const settings = { ...this.defaultSettings }; - for (const row of rows) { - const key = row.key; - if (key in settings) { - settings[key] = JSON.parse(row.value); - } - } - return settings; - } catch (error3) { - logger.debug("WORKER", "Failed to load settings, using defaults", {}, error3); - return { ...this.defaultSettings }; - } - } - updateSettings(updates) { - const db = this.dbManager.getSessionStore().db; - const stmt = db.prepare(` + `,o=[];n&&(s+=" WHERE s.project = ?",o.push(n)),s+=" ORDER BY up.created_at_epoch DESC LIMIT ? OFFSET ?",o.push(r+1,e);let c=i.prepare(s).all(...o);return{items:c.slice(0,r),hasMore:c.length>r,offset:e,limit:r}}paginate(e,r,n,i,s){let o=this.dbManager.getSessionStore().db,a=`SELECT ${r} FROM ${e}`,c=[];s&&(a+=" WHERE project = ?",c.push(s)),a+=" ORDER BY created_at_epoch DESC LIMIT ? OFFSET ?",c.push(i+1,n);let l=o.prepare(a).all(...c);return{items:l.slice(0,i),hasMore:l.length>i,offset:n,limit:i}}};oe();var Gg=class{dbManager;defaultSettings={sidebarOpen:!0,selectedProject:null,theme:"system"};constructor(e){this.dbManager=e}getSettings(){let e=this.dbManager.getSessionStore().db;try{let n=e.prepare("SELECT key, value FROM viewer_settings").all(),i={...this.defaultSettings};for(let s of n){let o=s.key;o in i&&(i[o]=JSON.parse(s.value))}return i}catch(r){return y.debug("WORKER","Failed to load settings, using defaults",{},r),{...this.defaultSettings}}}updateSettings(e){let n=this.dbManager.getSessionStore().db.prepare(` INSERT OR REPLACE INTO viewer_settings (key, value) VALUES (?, ?) - `); - for (const [key, value] of Object.entries(updates)) { - stmt.run(key, JSON.stringify(value)); - } - return this.getSettings(); - } -} - -// src/services/worker/SearchManager.ts -init_logger(); -init_timeline_formatting(); -init_ModeManager(); -import { basename as basename3 } from "path"; - -// src/services/worker/search/strategies/SearchStrategy.ts -class BaseSearchStrategy { - emptyResult(strategy) { - return { - results: { - observations: [], - sessions: [], - prompts: [] - }, - usedChroma: strategy === "chroma" || strategy === "hybrid", - fellBack: false, - strategy - }; - } -} - -// src/services/worker/search/types.ts -var SEARCH_CONSTANTS = { - RECENCY_WINDOW_DAYS: 90, - RECENCY_WINDOW_MS: 90 * 24 * 60 * 60 * 1000, - DEFAULT_LIMIT: 20, - CHROMA_BATCH_SIZE: 100 -}; - -// src/services/worker/search/strategies/ChromaSearchStrategy.ts -init_logger(); - -class ChromaSearchStrategy extends BaseSearchStrategy { - chromaSync; - sessionStore; - name = "chroma"; - constructor(chromaSync, sessionStore) { - super(); - this.chromaSync = chromaSync; - this.sessionStore = sessionStore; - } - canHandle(options) { - return !!options.query && !!this.chromaSync; - } - async search(options) { - const { - query: query2, - searchType = "all", - obsType, - concepts, - files, - limit = SEARCH_CONSTANTS.DEFAULT_LIMIT, - project, - orderBy = "date_desc" - } = options; - if (!query2) { - return this.emptyResult("chroma"); - } - const searchObservations = searchType === "all" || searchType === "observations"; - const searchSessions = searchType === "all" || searchType === "sessions"; - const searchPrompts = searchType === "all" || searchType === "prompts"; - let observations = []; - let sessions = []; - let prompts = []; - try { - const whereFilter = this.buildWhereFilter(searchType, project); - logger.debug("SEARCH", "ChromaSearchStrategy: Querying Chroma", { query: query2, searchType }); - const chromaResults = await this.chromaSync.queryChroma(query2, SEARCH_CONSTANTS.CHROMA_BATCH_SIZE, whereFilter); - logger.debug("SEARCH", "ChromaSearchStrategy: Chroma returned matches", { - matchCount: chromaResults.ids.length - }); - if (chromaResults.ids.length === 0) { - return { - results: { observations: [], sessions: [], prompts: [] }, - usedChroma: true, - fellBack: false, - strategy: "chroma" - }; - } - const recentItems = this.filterByRecency(chromaResults); - logger.debug("SEARCH", "ChromaSearchStrategy: Filtered by recency", { - count: recentItems.length - }); - const categorized = this.categorizeByDocType(recentItems, { - searchObservations, - searchSessions, - searchPrompts - }); - if (categorized.obsIds.length > 0) { - const obsOptions = { type: obsType, concepts, files, orderBy, limit, project }; - observations = this.sessionStore.getObservationsByIds(categorized.obsIds, obsOptions); - } - if (categorized.sessionIds.length > 0) { - sessions = this.sessionStore.getSessionSummariesByIds(categorized.sessionIds, { - orderBy, - limit, - project - }); - } - if (categorized.promptIds.length > 0) { - prompts = this.sessionStore.getUserPromptsByIds(categorized.promptIds, { - orderBy, - limit, - project - }); - } - logger.debug("SEARCH", "ChromaSearchStrategy: Hydrated results", { - observations: observations.length, - sessions: sessions.length, - prompts: prompts.length - }); - return { - results: { observations, sessions, prompts }, - usedChroma: true, - fellBack: false, - strategy: "chroma" - }; - } catch (error3) { - logger.error("SEARCH", "ChromaSearchStrategy: Search failed", {}, error3); - return { - results: { observations: [], sessions: [], prompts: [] }, - usedChroma: false, - fellBack: false, - strategy: "chroma" - }; - } - } - buildWhereFilter(searchType, project) { - let docTypeFilter; - switch (searchType) { - case "observations": - docTypeFilter = { doc_type: "observation" }; - break; - case "sessions": - docTypeFilter = { doc_type: "session_summary" }; - break; - case "prompts": - docTypeFilter = { doc_type: "user_prompt" }; - break; - default: - docTypeFilter = undefined; - } - if (project) { - const projectFilter = { project }; - if (docTypeFilter) { - return { $and: [docTypeFilter, projectFilter] }; - } - return projectFilter; - } - return docTypeFilter; - } - filterByRecency(chromaResults) { - const cutoff = Date.now() - SEARCH_CONSTANTS.RECENCY_WINDOW_MS; - const metadataByIdMap = new Map; - for (const meta2 of chromaResults.metadatas) { - if (meta2?.sqlite_id !== undefined && !metadataByIdMap.has(meta2.sqlite_id)) { - metadataByIdMap.set(meta2.sqlite_id, meta2); - } - } - return chromaResults.ids.map((id) => ({ - id, - meta: metadataByIdMap.get(id) - })).filter((item) => item.meta && item.meta.created_at_epoch > cutoff); - } - categorizeByDocType(items, options) { - const obsIds = []; - const sessionIds = []; - const promptIds = []; - for (const item of items) { - const docType = item.meta?.doc_type; - if (docType === "observation" && options.searchObservations) { - obsIds.push(item.id); - } else if (docType === "session_summary" && options.searchSessions) { - sessionIds.push(item.id); - } else if (docType === "user_prompt" && options.searchPrompts) { - promptIds.push(item.id); - } - } - return { obsIds, sessionIds, promptIds }; - } -} - -// src/services/worker/search/strategies/SQLiteSearchStrategy.ts -init_logger(); - -class SQLiteSearchStrategy extends BaseSearchStrategy { - sessionSearch; - name = "sqlite"; - constructor(sessionSearch) { - super(); - this.sessionSearch = sessionSearch; - } - canHandle(options) { - return !options.query || options.strategyHint === "sqlite"; - } - async search(options) { - const { - searchType = "all", - obsType, - concepts, - files, - limit = SEARCH_CONSTANTS.DEFAULT_LIMIT, - offset = 0, - project, - dateRange, - orderBy = "date_desc" - } = options; - const searchObservations = searchType === "all" || searchType === "observations"; - const searchSessions = searchType === "all" || searchType === "sessions"; - const searchPrompts = searchType === "all" || searchType === "prompts"; - let observations = []; - let sessions = []; - let prompts = []; - const baseOptions = { limit, offset, orderBy, project, dateRange }; - logger.debug("SEARCH", "SQLiteSearchStrategy: Filter-only query", { - searchType, - hasDateRange: !!dateRange, - hasProject: !!project - }); - try { - if (searchObservations) { - const obsOptions = { - ...baseOptions, - type: obsType, - concepts, - files - }; - observations = this.sessionSearch.searchObservations(undefined, obsOptions); - } - if (searchSessions) { - sessions = this.sessionSearch.searchSessions(undefined, baseOptions); - } - if (searchPrompts) { - prompts = this.sessionSearch.searchUserPrompts(undefined, baseOptions); - } - logger.debug("SEARCH", "SQLiteSearchStrategy: Results", { - observations: observations.length, - sessions: sessions.length, - prompts: prompts.length - }); - return { - results: { observations, sessions, prompts }, - usedChroma: false, - fellBack: false, - strategy: "sqlite" - }; - } catch (error3) { - logger.error("SEARCH", "SQLiteSearchStrategy: Search failed", {}, error3); - return this.emptyResult("sqlite"); - } - } - findByConcept(concept, options) { - const { limit = SEARCH_CONSTANTS.DEFAULT_LIMIT, project, dateRange, orderBy = "date_desc" } = options; - return this.sessionSearch.findByConcept(concept, { limit, project, dateRange, orderBy }); - } - findByType(type, options) { - const { limit = SEARCH_CONSTANTS.DEFAULT_LIMIT, project, dateRange, orderBy = "date_desc" } = options; - return this.sessionSearch.findByType(type, { limit, project, dateRange, orderBy }); - } - findByFile(filePath, options) { - const { limit = SEARCH_CONSTANTS.DEFAULT_LIMIT, project, dateRange, orderBy = "date_desc" } = options; - return this.sessionSearch.findByFile(filePath, { limit, project, dateRange, orderBy }); - } -} - -// src/services/worker/search/strategies/HybridSearchStrategy.ts -init_logger(); - -class HybridSearchStrategy extends BaseSearchStrategy { - chromaSync; - sessionStore; - sessionSearch; - name = "hybrid"; - constructor(chromaSync, sessionStore, sessionSearch) { - super(); - this.chromaSync = chromaSync; - this.sessionStore = sessionStore; - this.sessionSearch = sessionSearch; - } - canHandle(options) { - return !!this.chromaSync && (!!options.concepts || !!options.files || !!options.type && !!options.query || options.strategyHint === "hybrid"); - } - async search(options) { - const { query: query2, limit = SEARCH_CONSTANTS.DEFAULT_LIMIT, project } = options; - if (!query2) { - return this.emptyResult("hybrid"); - } - return this.emptyResult("hybrid"); - } - async findByConcept(concept, options) { - const { limit = SEARCH_CONSTANTS.DEFAULT_LIMIT, project, dateRange, orderBy } = options; - const filterOptions = { limit, project, dateRange, orderBy }; - try { - logger.debug("SEARCH", "HybridSearchStrategy: findByConcept", { concept }); - const metadataResults = this.sessionSearch.findByConcept(concept, filterOptions); - logger.debug("SEARCH", "HybridSearchStrategy: Found metadata matches", { - count: metadataResults.length - }); - if (metadataResults.length === 0) { - return this.emptyResult("hybrid"); - } - const ids = metadataResults.map((obs) => obs.id); - const chromaResults = await this.chromaSync.queryChroma(concept, Math.min(ids.length, SEARCH_CONSTANTS.CHROMA_BATCH_SIZE)); - const rankedIds = this.intersectWithRanking(ids, chromaResults.ids); - logger.debug("SEARCH", "HybridSearchStrategy: Ranked by semantic relevance", { - count: rankedIds.length - }); - if (rankedIds.length > 0) { - const observations = this.sessionStore.getObservationsByIds(rankedIds, { limit }); - observations.sort((a, b) => rankedIds.indexOf(a.id) - rankedIds.indexOf(b.id)); - return { - results: { observations, sessions: [], prompts: [] }, - usedChroma: true, - fellBack: false, - strategy: "hybrid" - }; - } - return this.emptyResult("hybrid"); - } catch (error3) { - logger.error("SEARCH", "HybridSearchStrategy: findByConcept failed", {}, error3); - const results = this.sessionSearch.findByConcept(concept, filterOptions); - return { - results: { observations: results, sessions: [], prompts: [] }, - usedChroma: false, - fellBack: true, - strategy: "hybrid" - }; - } - } - async findByType(type, options) { - const { limit = SEARCH_CONSTANTS.DEFAULT_LIMIT, project, dateRange, orderBy } = options; - const filterOptions = { limit, project, dateRange, orderBy }; - const typeStr = Array.isArray(type) ? type.join(", ") : type; - try { - logger.debug("SEARCH", "HybridSearchStrategy: findByType", { type: typeStr }); - const metadataResults = this.sessionSearch.findByType(type, filterOptions); - logger.debug("SEARCH", "HybridSearchStrategy: Found metadata matches", { - count: metadataResults.length - }); - if (metadataResults.length === 0) { - return this.emptyResult("hybrid"); - } - const ids = metadataResults.map((obs) => obs.id); - const chromaResults = await this.chromaSync.queryChroma(typeStr, Math.min(ids.length, SEARCH_CONSTANTS.CHROMA_BATCH_SIZE)); - const rankedIds = this.intersectWithRanking(ids, chromaResults.ids); - logger.debug("SEARCH", "HybridSearchStrategy: Ranked by semantic relevance", { - count: rankedIds.length - }); - if (rankedIds.length > 0) { - const observations = this.sessionStore.getObservationsByIds(rankedIds, { limit }); - observations.sort((a, b) => rankedIds.indexOf(a.id) - rankedIds.indexOf(b.id)); - return { - results: { observations, sessions: [], prompts: [] }, - usedChroma: true, - fellBack: false, - strategy: "hybrid" - }; - } - return this.emptyResult("hybrid"); - } catch (error3) { - logger.error("SEARCH", "HybridSearchStrategy: findByType failed", {}, error3); - const results = this.sessionSearch.findByType(type, filterOptions); - return { - results: { observations: results, sessions: [], prompts: [] }, - usedChroma: false, - fellBack: true, - strategy: "hybrid" - }; - } - } - async findByFile(filePath, options) { - const { limit = SEARCH_CONSTANTS.DEFAULT_LIMIT, project, dateRange, orderBy } = options; - const filterOptions = { limit, project, dateRange, orderBy }; - try { - logger.debug("SEARCH", "HybridSearchStrategy: findByFile", { filePath }); - const metadataResults = this.sessionSearch.findByFile(filePath, filterOptions); - logger.debug("SEARCH", "HybridSearchStrategy: Found file matches", { - observations: metadataResults.observations.length, - sessions: metadataResults.sessions.length - }); - const sessions = metadataResults.sessions; - if (metadataResults.observations.length === 0) { - return { observations: [], sessions, usedChroma: false }; - } - const ids = metadataResults.observations.map((obs) => obs.id); - const chromaResults = await this.chromaSync.queryChroma(filePath, Math.min(ids.length, SEARCH_CONSTANTS.CHROMA_BATCH_SIZE)); - const rankedIds = this.intersectWithRanking(ids, chromaResults.ids); - logger.debug("SEARCH", "HybridSearchStrategy: Ranked observations", { - count: rankedIds.length - }); - if (rankedIds.length > 0) { - const observations = this.sessionStore.getObservationsByIds(rankedIds, { limit }); - observations.sort((a, b) => rankedIds.indexOf(a.id) - rankedIds.indexOf(b.id)); - return { observations, sessions, usedChroma: true }; - } - return { observations: [], sessions, usedChroma: false }; - } catch (error3) { - logger.error("SEARCH", "HybridSearchStrategy: findByFile failed", {}, error3); - const results = this.sessionSearch.findByFile(filePath, filterOptions); - return { - observations: results.observations, - sessions: results.sessions, - usedChroma: false - }; - } - } - intersectWithRanking(metadataIds, chromaIds) { - const metadataSet = new Set(metadataIds); - const rankedIds = []; - for (const chromaId of chromaIds) { - if (metadataSet.has(chromaId) && !rankedIds.includes(chromaId)) { - rankedIds.push(chromaId); - } - } - return rankedIds; - } -} - -// src/services/worker/search/ResultFormatter.ts -init_ModeManager(); -init_timeline_formatting(); -var CHARS_PER_TOKEN_ESTIMATE2 = 4; - -class ResultFormatter { - formatSearchResults(results, query2, chromaFailed = false) { - const totalResults = results.observations.length + results.sessions.length + results.prompts.length; - if (totalResults === 0) { - if (chromaFailed) { - return this.formatChromaFailureMessage(); - } - return `No results found matching "${query2}"`; - } - const combined = this.combineResults(results); - combined.sort((a, b) => b.epoch - a.epoch); - const cwd2 = process.cwd(); - const resultsByDate = groupByDate(combined, (item) => item.created_at); - const lines = []; - lines.push(`Found ${totalResults} result(s) matching "${query2}" (${results.observations.length} obs, ${results.sessions.length} sessions, ${results.prompts.length} prompts)`); - lines.push(""); - for (const [day, dayResults] of resultsByDate) { - lines.push(`### ${day}`); - lines.push(""); - const resultsByFile = new Map; - for (const result of dayResults) { - let file = "General"; - if (result.type === "observation") { - const obs = result.data; - file = extractFirstFile(obs.files_modified, cwd2, obs.files_read); - } - if (!resultsByFile.has(file)) { - resultsByFile.set(file, []); - } - resultsByFile.get(file).push(result); - } - for (const [file, fileResults] of resultsByFile) { - lines.push(`**${file}**`); - lines.push(this.formatSearchTableHeader()); - let lastTime = ""; - for (const result of fileResults) { - if (result.type === "observation") { - const formatted = this.formatObservationSearchRow(result.data, lastTime); - lines.push(formatted.row); - lastTime = formatted.time; - } else if (result.type === "session") { - const formatted = this.formatSessionSearchRow(result.data, lastTime); - lines.push(formatted.row); - lastTime = formatted.time; - } else { - const formatted = this.formatPromptSearchRow(result.data, lastTime); - lines.push(formatted.row); - lastTime = formatted.time; - } - } - lines.push(""); - } - } - return lines.join(` -`); - } - combineResults(results) { - return [ - ...results.observations.map((obs) => ({ - type: "observation", - data: obs, - epoch: obs.created_at_epoch, - created_at: obs.created_at - })), - ...results.sessions.map((sess) => ({ - type: "session", - data: sess, - epoch: sess.created_at_epoch, - created_at: sess.created_at - })), - ...results.prompts.map((prompt) => ({ - type: "prompt", - data: prompt, - epoch: prompt.created_at_epoch, - created_at: prompt.created_at - })) - ]; - } - formatSearchTableHeader() { - return `| ID | Time | T | Title | Read | -|----|------|---|-------|------|`; - } - formatTableHeader() { - return `| ID | Time | T | Title | Read | Work | -|-----|------|---|-------|------|------|`; - } - formatObservationSearchRow(obs, lastTime) { - const id = `#${obs.id}`; - const time4 = formatTime(obs.created_at_epoch); - const icon = ModeManager.getInstance().getTypeIcon(obs.type); - const title = obs.title || "Untitled"; - const readTokens = this.estimateReadTokens(obs); - const timeDisplay = time4 === lastTime ? '"' : time4; - return { - row: `| ${id} | ${timeDisplay} | ${icon} | ${title} | ~${readTokens} |`, - time: time4 - }; - } - formatSessionSearchRow(session, lastTime) { - const id = `#S${session.id}`; - const time4 = formatTime(session.created_at_epoch); - const icon = "\uD83C\uDFAF"; - const title = session.request || `Session ${session.memory_session_id?.substring(0, 8) || "unknown"}`; - const timeDisplay = time4 === lastTime ? '"' : time4; - return { - row: `| ${id} | ${timeDisplay} | ${icon} | ${title} | - |`, - time: time4 - }; - } - formatPromptSearchRow(prompt, lastTime) { - const id = `#P${prompt.id}`; - const time4 = formatTime(prompt.created_at_epoch); - const icon = "\uD83D\uDCAC"; - const title = prompt.prompt_text.length > 60 ? prompt.prompt_text.substring(0, 57) + "..." : prompt.prompt_text; - const timeDisplay = time4 === lastTime ? '"' : time4; - return { - row: `| ${id} | ${timeDisplay} | ${icon} | ${title} | - |`, - time: time4 - }; - } - formatObservationIndex(obs, _index) { - const id = `#${obs.id}`; - const time4 = formatTime(obs.created_at_epoch); - const icon = ModeManager.getInstance().getTypeIcon(obs.type); - const title = obs.title || "Untitled"; - const readTokens = this.estimateReadTokens(obs); - const workEmoji = ModeManager.getInstance().getWorkEmoji(obs.type); - const workTokens = obs.discovery_tokens || 0; - const workDisplay = workTokens > 0 ? `${workEmoji} ${workTokens}` : "-"; - return `| ${id} | ${time4} | ${icon} | ${title} | ~${readTokens} | ${workDisplay} |`; - } - formatSessionIndex(session, _index) { - const id = `#S${session.id}`; - const time4 = formatTime(session.created_at_epoch); - const icon = "\uD83C\uDFAF"; - const title = session.request || `Session ${session.memory_session_id?.substring(0, 8) || "unknown"}`; - return `| ${id} | ${time4} | ${icon} | ${title} | - | - |`; - } - formatPromptIndex(prompt, _index) { - const id = `#P${prompt.id}`; - const time4 = formatTime(prompt.created_at_epoch); - const icon = "\uD83D\uDCAC"; - const title = prompt.prompt_text.length > 60 ? prompt.prompt_text.substring(0, 57) + "..." : prompt.prompt_text; - return `| ${id} | ${time4} | ${icon} | ${title} | - | - |`; - } - estimateReadTokens(obs) { - const size = (obs.title?.length || 0) + (obs.subtitle?.length || 0) + (obs.narrative?.length || 0) + (obs.facts?.length || 0); - return Math.ceil(size / CHARS_PER_TOKEN_ESTIMATE2); - } - formatChromaFailureMessage() { - return `Vector search failed - semantic search unavailable. + `);for(let[i,s]of Object.entries(e))n.run(i,JSON.stringify(s));return this.getSettings()}};var lq=require("path");oe();Lo();Br();var ps=class{emptyResult(e){return{results:{observations:[],sessions:[],prompts:[]},usedChroma:e==="chroma"||e==="hybrid",fellBack:!1,strategy:e}}};var zt={RECENCY_WINDOW_DAYS:90,RECENCY_WINDOW_MS:7776e6,DEFAULT_LIMIT:20,CHROMA_BATCH_SIZE:100};oe();var dp=class extends ps{constructor(r,n){super();this.chromaSync=r;this.sessionStore=n}name="chroma";canHandle(r){return!!r.query&&!!this.chromaSync}async search(r){let{query:n,searchType:i="all",obsType:s,concepts:o,files:a,limit:c=zt.DEFAULT_LIMIT,project:u,orderBy:l="date_desc"}=r;if(!n)return this.emptyResult("chroma");let d=i==="all"||i==="observations",p=i==="all"||i==="sessions",m=i==="all"||i==="prompts",f=[],g=[],h=[];try{let v=this.buildWhereFilter(i,u);y.debug("SEARCH","ChromaSearchStrategy: Querying Chroma",{query:n,searchType:i});let x=await this.chromaSync.queryChroma(n,zt.CHROMA_BATCH_SIZE,v);if(y.debug("SEARCH","ChromaSearchStrategy: Chroma returned matches",{matchCount:x.ids.length}),x.ids.length===0)return{results:{observations:[],sessions:[],prompts:[]},usedChroma:!0,fellBack:!1,strategy:"chroma"};let b=this.filterByRecency(x);y.debug("SEARCH","ChromaSearchStrategy: Filtered by recency",{count:b.length});let _=this.categorizeByDocType(b,{searchObservations:d,searchSessions:p,searchPrompts:m});if(_.obsIds.length>0){let S={type:s,concepts:o,files:a,orderBy:l,limit:c,project:u};f=this.sessionStore.getObservationsByIds(_.obsIds,S)}return _.sessionIds.length>0&&(g=this.sessionStore.getSessionSummariesByIds(_.sessionIds,{orderBy:l,limit:c,project:u})),_.promptIds.length>0&&(h=this.sessionStore.getUserPromptsByIds(_.promptIds,{orderBy:l,limit:c,project:u})),y.debug("SEARCH","ChromaSearchStrategy: Hydrated results",{observations:f.length,sessions:g.length,prompts:h.length}),{results:{observations:f,sessions:g,prompts:h},usedChroma:!0,fellBack:!1,strategy:"chroma"}}catch(v){return y.error("SEARCH","ChromaSearchStrategy: Search failed",{},v),{results:{observations:[],sessions:[],prompts:[]},usedChroma:!1,fellBack:!1,strategy:"chroma"}}}buildWhereFilter(r,n){let i;switch(r){case"observations":i={doc_type:"observation"};break;case"sessions":i={doc_type:"session_summary"};break;case"prompts":i={doc_type:"user_prompt"};break;default:i=void 0}if(n){let s={project:n};return i?{$and:[i,s]}:s}return i}filterByRecency(r){let n=Date.now()-zt.RECENCY_WINDOW_MS,i=new Map;for(let s of r.metadatas)s?.sqlite_id!==void 0&&!i.has(s.sqlite_id)&&i.set(s.sqlite_id,s);return r.ids.map(s=>({id:s,meta:i.get(s)})).filter(s=>s.meta&&s.meta.created_at_epoch>n)}categorizeByDocType(r,n){let i=[],s=[],o=[];for(let a of r){let c=a.meta?.doc_type;c==="observation"&&n.searchObservations?i.push(a.id):c==="session_summary"&&n.searchSessions?s.push(a.id):c==="user_prompt"&&n.searchPrompts&&o.push(a.id)}return{obsIds:i,sessionIds:s,promptIds:o}}};oe();var pp=class extends ps{constructor(r){super();this.sessionSearch=r}name="sqlite";canHandle(r){return!r.query||r.strategyHint==="sqlite"}async search(r){let{searchType:n="all",obsType:i,concepts:s,files:o,limit:a=zt.DEFAULT_LIMIT,offset:c=0,project:u,dateRange:l,orderBy:d="date_desc"}=r,p=n==="all"||n==="observations",m=n==="all"||n==="sessions",f=n==="all"||n==="prompts",g=[],h=[],v=[],x={limit:a,offset:c,orderBy:d,project:u,dateRange:l};y.debug("SEARCH","SQLiteSearchStrategy: Filter-only query",{searchType:n,hasDateRange:!!l,hasProject:!!u});try{if(p){let b={...x,type:i,concepts:s,files:o};g=this.sessionSearch.searchObservations(void 0,b)}return m&&(h=this.sessionSearch.searchSessions(void 0,x)),f&&(v=this.sessionSearch.searchUserPrompts(void 0,x)),y.debug("SEARCH","SQLiteSearchStrategy: Results",{observations:g.length,sessions:h.length,prompts:v.length}),{results:{observations:g,sessions:h,prompts:v},usedChroma:!1,fellBack:!1,strategy:"sqlite"}}catch(b){return y.error("SEARCH","SQLiteSearchStrategy: Search failed",{},b),this.emptyResult("sqlite")}}findByConcept(r,n){let{limit:i=zt.DEFAULT_LIMIT,project:s,dateRange:o,orderBy:a="date_desc"}=n;return this.sessionSearch.findByConcept(r,{limit:i,project:s,dateRange:o,orderBy:a})}findByType(r,n){let{limit:i=zt.DEFAULT_LIMIT,project:s,dateRange:o,orderBy:a="date_desc"}=n;return this.sessionSearch.findByType(r,{limit:i,project:s,dateRange:o,orderBy:a})}findByFile(r,n){let{limit:i=zt.DEFAULT_LIMIT,project:s,dateRange:o,orderBy:a="date_desc"}=n;return this.sessionSearch.findByFile(r,{limit:i,project:s,dateRange:o,orderBy:a})}};oe();var mp=class extends ps{constructor(r,n,i){super();this.chromaSync=r;this.sessionStore=n;this.sessionSearch=i}name="hybrid";canHandle(r){return!!this.chromaSync&&(!!r.concepts||!!r.files||!!r.type&&!!r.query||r.strategyHint==="hybrid")}async search(r){let{query:n,limit:i=zt.DEFAULT_LIMIT,project:s}=r;return n?this.emptyResult("hybrid"):this.emptyResult("hybrid")}async findByConcept(r,n){let{limit:i=zt.DEFAULT_LIMIT,project:s,dateRange:o,orderBy:a}=n,c={limit:i,project:s,dateRange:o,orderBy:a};try{y.debug("SEARCH","HybridSearchStrategy: findByConcept",{concept:r});let u=this.sessionSearch.findByConcept(r,c);if(y.debug("SEARCH","HybridSearchStrategy: Found metadata matches",{count:u.length}),u.length===0)return this.emptyResult("hybrid");let l=u.map(m=>m.id),d=await this.chromaSync.queryChroma(r,Math.min(l.length,zt.CHROMA_BATCH_SIZE)),p=this.intersectWithRanking(l,d.ids);if(y.debug("SEARCH","HybridSearchStrategy: Ranked by semantic relevance",{count:p.length}),p.length>0){let m=this.sessionStore.getObservationsByIds(p,{limit:i});return m.sort((f,g)=>p.indexOf(f.id)-p.indexOf(g.id)),{results:{observations:m,sessions:[],prompts:[]},usedChroma:!0,fellBack:!1,strategy:"hybrid"}}return this.emptyResult("hybrid")}catch(u){return y.error("SEARCH","HybridSearchStrategy: findByConcept failed",{},u),{results:{observations:this.sessionSearch.findByConcept(r,c),sessions:[],prompts:[]},usedChroma:!1,fellBack:!0,strategy:"hybrid"}}}async findByType(r,n){let{limit:i=zt.DEFAULT_LIMIT,project:s,dateRange:o,orderBy:a}=n,c={limit:i,project:s,dateRange:o,orderBy:a},u=Array.isArray(r)?r.join(", "):r;try{y.debug("SEARCH","HybridSearchStrategy: findByType",{type:u});let l=this.sessionSearch.findByType(r,c);if(y.debug("SEARCH","HybridSearchStrategy: Found metadata matches",{count:l.length}),l.length===0)return this.emptyResult("hybrid");let d=l.map(f=>f.id),p=await this.chromaSync.queryChroma(u,Math.min(d.length,zt.CHROMA_BATCH_SIZE)),m=this.intersectWithRanking(d,p.ids);if(y.debug("SEARCH","HybridSearchStrategy: Ranked by semantic relevance",{count:m.length}),m.length>0){let f=this.sessionStore.getObservationsByIds(m,{limit:i});return f.sort((g,h)=>m.indexOf(g.id)-m.indexOf(h.id)),{results:{observations:f,sessions:[],prompts:[]},usedChroma:!0,fellBack:!1,strategy:"hybrid"}}return this.emptyResult("hybrid")}catch(l){return y.error("SEARCH","HybridSearchStrategy: findByType failed",{},l),{results:{observations:this.sessionSearch.findByType(r,c),sessions:[],prompts:[]},usedChroma:!1,fellBack:!0,strategy:"hybrid"}}}async findByFile(r,n){let{limit:i=zt.DEFAULT_LIMIT,project:s,dateRange:o,orderBy:a}=n,c={limit:i,project:s,dateRange:o,orderBy:a};try{y.debug("SEARCH","HybridSearchStrategy: findByFile",{filePath:r});let u=this.sessionSearch.findByFile(r,c);y.debug("SEARCH","HybridSearchStrategy: Found file matches",{observations:u.observations.length,sessions:u.sessions.length});let l=u.sessions;if(u.observations.length===0)return{observations:[],sessions:l,usedChroma:!1};let d=u.observations.map(f=>f.id),p=await this.chromaSync.queryChroma(r,Math.min(d.length,zt.CHROMA_BATCH_SIZE)),m=this.intersectWithRanking(d,p.ids);if(y.debug("SEARCH","HybridSearchStrategy: Ranked observations",{count:m.length}),m.length>0){let f=this.sessionStore.getObservationsByIds(m,{limit:i});return f.sort((g,h)=>m.indexOf(g.id)-m.indexOf(h.id)),{observations:f,sessions:l,usedChroma:!0}}return{observations:[],sessions:l,usedChroma:!1}}catch(u){y.error("SEARCH","HybridSearchStrategy: findByFile failed",{},u);let l=this.sessionSearch.findByFile(r,c);return{observations:l.observations,sessions:l.sessions,usedChroma:!1}}}intersectWithRanking(r,n){let i=new Set(r),s=[];for(let o of n)i.has(o)&&!s.includes(o)&&s.push(o);return s}};Br();Lo();var Jhe=4,fp=class{formatSearchResults(e,r,n=!1){let i=e.observations.length+e.sessions.length+e.prompts.length;if(i===0)return n?this.formatChromaFailureMessage():`No results found matching "${r}"`;let s=this.combineResults(e);s.sort((u,l)=>l.epoch-u.epoch);let o=process.cwd(),a=is(s,u=>u.created_at),c=[];c.push(`Found ${i} result(s) matching "${r}" (${e.observations.length} obs, ${e.sessions.length} sessions, ${e.prompts.length} prompts)`),c.push("");for(let[u,l]of a){c.push(`### ${u}`),c.push("");let d=new Map;for(let p of l){let m="General";if(p.type==="observation"){let f=p.data;m=ei(f.files_modified,o,f.files_read)}d.has(m)||d.set(m,[]),d.get(m).push(p)}for(let[p,m]of d){c.push(`**${p}**`),c.push(this.formatSearchTableHeader());let f="";for(let g of m)if(g.type==="observation"){let h=this.formatObservationSearchRow(g.data,f);c.push(h.row),f=h.time}else if(g.type==="session"){let h=this.formatSessionSearchRow(g.data,f);c.push(h.row),f=h.time}else{let h=this.formatPromptSearchRow(g.data,f);c.push(h.row),f=h.time}c.push("")}}return c.join(` +`)}combineResults(e){return[...e.observations.map(r=>({type:"observation",data:r,epoch:r.created_at_epoch,created_at:r.created_at})),...e.sessions.map(r=>({type:"session",data:r,epoch:r.created_at_epoch,created_at:r.created_at})),...e.prompts.map(r=>({type:"prompt",data:r,epoch:r.created_at_epoch,created_at:r.created_at}))]}formatSearchTableHeader(){return`| ID | Time | T | Title | Read | +|----|------|---|-------|------|`}formatTableHeader(){return`| ID | Time | T | Title | Read | Work | +|-----|------|---|-------|------|------|`}formatObservationSearchRow(e,r){let n=`#${e.id}`,i=lr(e.created_at_epoch),s=He.getInstance().getTypeIcon(e.type),o=e.title||"Untitled",a=this.estimateReadTokens(e);return{row:`| ${n} | ${i===r?'"':i} | ${s} | ${o} | ~${a} |`,time:i}}formatSessionSearchRow(e,r){let n=`#S${e.id}`,i=lr(e.created_at_epoch),s="\u{1F3AF}",o=e.request||`Session ${e.memory_session_id?.substring(0,8)||"unknown"}`;return{row:`| ${n} | ${i===r?'"':i} | ${s} | ${o} | - |`,time:i}}formatPromptSearchRow(e,r){let n=`#P${e.id}`,i=lr(e.created_at_epoch),s="\u{1F4AC}",o=e.prompt_text.length>60?e.prompt_text.substring(0,57)+"...":e.prompt_text;return{row:`| ${n} | ${i===r?'"':i} | ${s} | ${o} | - |`,time:i}}formatObservationIndex(e,r){let n=`#${e.id}`,i=lr(e.created_at_epoch),s=He.getInstance().getTypeIcon(e.type),o=e.title||"Untitled",a=this.estimateReadTokens(e),c=He.getInstance().getWorkEmoji(e.type),u=e.discovery_tokens||0,l=u>0?`${c} ${u}`:"-";return`| ${n} | ${i} | ${s} | ${o} | ~${a} | ${l} |`}formatSessionIndex(e,r){let n=`#S${e.id}`,i=lr(e.created_at_epoch),s="\u{1F3AF}",o=e.request||`Session ${e.memory_session_id?.substring(0,8)||"unknown"}`;return`| ${n} | ${i} | ${s} | ${o} | - | - |`}formatPromptIndex(e,r){let n=`#P${e.id}`,i=lr(e.created_at_epoch),s="\u{1F4AC}",o=e.prompt_text.length>60?e.prompt_text.substring(0,57)+"...":e.prompt_text;return`| ${n} | ${i} | ${s} | ${o} | - | - |`}estimateReadTokens(e){let r=(e.title?.length||0)+(e.subtitle?.length||0)+(e.narrative?.length||0)+(e.facts?.length||0);return Math.ceil(r/Jhe)}formatChromaFailureMessage(){return`Vector search failed - semantic search unavailable. To enable semantic search: 1. Install uv: https://docs.astral.sh/uv/getting-started/installation/ 2. Restart the worker: npm run worker:restart -Note: You can still use filter-only searches (date ranges, types, files) without a query term.`; - } - formatSearchTips() { - return ` +Note: You can still use filter-only searches (date ranges, types, files) without a query term.`}formatSearchTips(){return` --- Search Strategy: 1. Search with index to see titles, dates, IDs @@ -64427,4663 +1358,409 @@ Search Strategy: Tips: - Filter by type: obs_type="bugfix,feature" - Filter by date: dateStart="2025-01-01" -- Sort: orderBy="date_desc" or "date_asc"`; - } -} - -// src/services/worker/search/TimelineBuilder.ts -init_ModeManager(); -init_timeline_formatting(); - -class TimelineBuilder { - buildTimeline(data) { - const items = [ - ...data.observations.map((obs) => ({ - type: "observation", - data: obs, - epoch: obs.created_at_epoch - })), - ...data.sessions.map((sess) => ({ - type: "session", - data: sess, - epoch: sess.created_at_epoch - })), - ...data.prompts.map((prompt) => ({ - type: "prompt", - data: prompt, - epoch: prompt.created_at_epoch - })) - ]; - items.sort((a, b) => a.epoch - b.epoch); - return items; - } - filterByDepth(items, anchorId, anchorEpoch, depthBefore, depthAfter) { - if (items.length === 0) - return items; - let anchorIndex = this.findAnchorIndex(items, anchorId, anchorEpoch); - if (anchorIndex === -1) - return items; - const startIndex = Math.max(0, anchorIndex - depthBefore); - const endIndex = Math.min(items.length, anchorIndex + depthAfter + 1); - return items.slice(startIndex, endIndex); - } - findAnchorIndex(items, anchorId, anchorEpoch) { - if (typeof anchorId === "number") { - return items.findIndex((item) => item.type === "observation" && item.data.id === anchorId); - } - if (typeof anchorId === "string" && anchorId.startsWith("S")) { - const sessionNum = parseInt(anchorId.slice(1), 10); - return items.findIndex((item) => item.type === "session" && item.data.id === sessionNum); - } - const index = items.findIndex((item) => item.epoch >= anchorEpoch); - return index === -1 ? items.length - 1 : index; - } - formatTimeline(items, anchorId, options = {}) { - const { query: query2, depthBefore, depthAfter, cwd: cwd2 = process.cwd() } = options; - if (items.length === 0) { - return query2 ? `Found observation matching "${query2}", but no timeline context available.` : "No timeline items found"; - } - const lines = []; - if (query2 && anchorId) { - const anchorObs = items.find((item) => item.type === "observation" && item.data.id === anchorId); - const anchorTitle = anchorObs ? anchorObs.data.title || "Untitled" : "Unknown"; - lines.push(`# Timeline for query: "${query2}"`); - lines.push(`**Anchor:** Observation #${anchorId} - ${anchorTitle}`); - } else if (anchorId) { - lines.push(`# Timeline around anchor: ${anchorId}`); - } else { - lines.push(`# Timeline`); - } - if (depthBefore !== undefined && depthAfter !== undefined) { - lines.push(`**Window:** ${depthBefore} records before -> ${depthAfter} records after | **Items:** ${items.length}`); - } else { - lines.push(`**Items:** ${items.length}`); - } - lines.push(""); - const dayMap = this.groupByDay(items); - const sortedDays = this.sortDaysChronologically(dayMap); - for (const [day, dayItems] of sortedDays) { - lines.push(`### ${day}`); - lines.push(""); - let currentFile = null; - let lastTime = ""; - let tableOpen = false; - for (const item of dayItems) { - const isAnchor = this.isAnchorItem(item, anchorId); - if (item.type === "session") { - if (tableOpen) { - lines.push(""); - tableOpen = false; - currentFile = null; - lastTime = ""; - } - const sess = item.data; - const title = sess.request || "Session summary"; - const marker = isAnchor ? " <- **ANCHOR**" : ""; - lines.push(`**\uD83C\uDFAF #S${sess.id}** ${title} (${formatDateTime(item.epoch)})${marker}`); - lines.push(""); - } else if (item.type === "prompt") { - if (tableOpen) { - lines.push(""); - tableOpen = false; - currentFile = null; - lastTime = ""; - } - const prompt = item.data; - const truncated = prompt.prompt_text.length > 100 ? prompt.prompt_text.substring(0, 100) + "..." : prompt.prompt_text; - lines.push(`**\uD83D\uDCAC User Prompt #${prompt.prompt_number}** (${formatDateTime(item.epoch)})`); - lines.push(`> ${truncated}`); - lines.push(""); - } else if (item.type === "observation") { - const obs = item.data; - const file = extractFirstFile(obs.files_modified, cwd2, obs.files_read); - if (file !== currentFile) { - if (tableOpen) { - lines.push(""); - } - lines.push(`**${file}**`); - lines.push(`| ID | Time | T | Title | Tokens |`); - lines.push(`|----|------|---|-------|--------|`); - currentFile = file; - tableOpen = true; - lastTime = ""; - } - const icon = ModeManager.getInstance().getTypeIcon(obs.type); - const time4 = formatTime(item.epoch); - const title = obs.title || "Untitled"; - const tokens = estimateTokens(obs.narrative); - const showTime = time4 !== lastTime; - const timeDisplay = showTime ? time4 : '"'; - lastTime = time4; - const anchorMarker = isAnchor ? " <- **ANCHOR**" : ""; - lines.push(`| #${obs.id} | ${timeDisplay} | ${icon} | ${title}${anchorMarker} | ~${tokens} |`); - } - } - if (tableOpen) { - lines.push(""); - } - } - return lines.join(` -`); - } - groupByDay(items) { - const dayMap = new Map; - for (const item of items) { - const day = formatDate(item.epoch); - if (!dayMap.has(day)) { - dayMap.set(day, []); - } - dayMap.get(day).push(item); - } - return dayMap; - } - sortDaysChronologically(dayMap) { - return Array.from(dayMap.entries()).sort((a, b) => { - const aDate = new Date(a[0]).getTime(); - const bDate = new Date(b[0]).getTime(); - return aDate - bDate; - }); - } - isAnchorItem(item, anchorId) { - if (anchorId === null) - return false; - if (typeof anchorId === "number" && item.type === "observation") { - return item.data.id === anchorId; - } - if (typeof anchorId === "string" && anchorId.startsWith("S") && item.type === "session") { - return `S${item.data.id}` === anchorId; - } - return false; - } -} - -// src/services/worker/search/SearchOrchestrator.ts -init_logger(); - -class SearchOrchestrator { - sessionSearch; - sessionStore; - chromaSync; - chromaStrategy = null; - sqliteStrategy; - hybridStrategy = null; - resultFormatter; - timelineBuilder; - constructor(sessionSearch, sessionStore, chromaSync) { - this.sessionSearch = sessionSearch; - this.sessionStore = sessionStore; - this.chromaSync = chromaSync; - this.sqliteStrategy = new SQLiteSearchStrategy(sessionSearch); - if (chromaSync) { - this.chromaStrategy = new ChromaSearchStrategy(chromaSync, sessionStore); - this.hybridStrategy = new HybridSearchStrategy(chromaSync, sessionStore, sessionSearch); - } - this.resultFormatter = new ResultFormatter; - this.timelineBuilder = new TimelineBuilder; - } - async search(args) { - const options = this.normalizeParams(args); - return await this.executeWithFallback(options); - } - async executeWithFallback(options) { - if (!options.query) { - logger.debug("SEARCH", "Orchestrator: Filter-only query, using SQLite", {}); - return await this.sqliteStrategy.search(options); - } - if (this.chromaStrategy) { - logger.debug("SEARCH", "Orchestrator: Using Chroma semantic search", {}); - const result = await this.chromaStrategy.search(options); - if (result.usedChroma) { - return result; - } - logger.debug("SEARCH", "Orchestrator: Chroma failed, falling back to SQLite", {}); - const fallbackResult = await this.sqliteStrategy.search({ - ...options, - query: undefined - }); - return { - ...fallbackResult, - fellBack: true - }; - } - logger.debug("SEARCH", "Orchestrator: Chroma not available", {}); - return { - results: { observations: [], sessions: [], prompts: [] }, - usedChroma: false, - fellBack: false, - strategy: "sqlite" - }; - } - async findByConcept(concept, args) { - const options = this.normalizeParams(args); - if (this.hybridStrategy) { - return await this.hybridStrategy.findByConcept(concept, options); - } - const results = this.sqliteStrategy.findByConcept(concept, options); - return { - results: { observations: results, sessions: [], prompts: [] }, - usedChroma: false, - fellBack: false, - strategy: "sqlite" - }; - } - async findByType(type, args) { - const options = this.normalizeParams(args); - if (this.hybridStrategy) { - return await this.hybridStrategy.findByType(type, options); - } - const results = this.sqliteStrategy.findByType(type, options); - return { - results: { observations: results, sessions: [], prompts: [] }, - usedChroma: false, - fellBack: false, - strategy: "sqlite" - }; - } - async findByFile(filePath, args) { - const options = this.normalizeParams(args); - if (this.hybridStrategy) { - return await this.hybridStrategy.findByFile(filePath, options); - } - const results = this.sqliteStrategy.findByFile(filePath, options); - return { ...results, usedChroma: false }; - } - getTimeline(timelineData, anchorId, anchorEpoch, depthBefore, depthAfter) { - const items = this.timelineBuilder.buildTimeline(timelineData); - return this.timelineBuilder.filterByDepth(items, anchorId, anchorEpoch, depthBefore, depthAfter); - } - formatTimeline(items, anchorId, options = {}) { - return this.timelineBuilder.formatTimeline(items, anchorId, options); - } - formatSearchResults(results, query2, chromaFailed = false) { - return this.resultFormatter.formatSearchResults(results, query2, chromaFailed); - } - getFormatter() { - return this.resultFormatter; - } - getTimelineBuilder() { - return this.timelineBuilder; - } - normalizeParams(args) { - const normalized = { ...args }; - if (normalized.concepts && typeof normalized.concepts === "string") { - normalized.concepts = normalized.concepts.split(",").map((s) => s.trim()).filter(Boolean); - } - if (normalized.files && typeof normalized.files === "string") { - normalized.files = normalized.files.split(",").map((s) => s.trim()).filter(Boolean); - } - if (normalized.obs_type && typeof normalized.obs_type === "string") { - normalized.obsType = normalized.obs_type.split(",").map((s) => s.trim()).filter(Boolean); - delete normalized.obs_type; - } - if (normalized.type && typeof normalized.type === "string" && normalized.type.includes(",")) { - normalized.type = normalized.type.split(",").map((s) => s.trim()).filter(Boolean); - } - if (normalized.type && !normalized.searchType) { - if (["observations", "sessions", "prompts"].includes(normalized.type)) { - normalized.searchType = normalized.type; - delete normalized.type; - } - } - if (normalized.dateStart || normalized.dateEnd) { - normalized.dateRange = { - start: normalized.dateStart, - end: normalized.dateEnd - }; - delete normalized.dateStart; - delete normalized.dateEnd; - } - return normalized; - } - isChromaAvailable() { - return !!this.chromaSync; - } -} -// src/services/worker/SearchManager.ts -class SearchManager { - sessionSearch; - sessionStore; - chromaSync; - formatter; - timelineService; - orchestrator; - timelineBuilder; - constructor(sessionSearch, sessionStore, chromaSync, formatter, timelineService) { - this.sessionSearch = sessionSearch; - this.sessionStore = sessionStore; - this.chromaSync = chromaSync; - this.formatter = formatter; - this.timelineService = timelineService; - this.orchestrator = new SearchOrchestrator(sessionSearch, sessionStore, chromaSync); - this.timelineBuilder = new TimelineBuilder; - } - async queryChroma(query2, limit, whereFilter) { - if (!this.chromaSync) { - return { ids: [], distances: [], metadatas: [] }; - } - return await this.chromaSync.queryChroma(query2, limit, whereFilter); - } - normalizeParams(args) { - const normalized = { ...args }; - if (normalized.filePath && !normalized.files) { - normalized.files = normalized.filePath; - delete normalized.filePath; - } - if (normalized.concepts && typeof normalized.concepts === "string") { - normalized.concepts = normalized.concepts.split(",").map((s) => s.trim()).filter(Boolean); - } - if (normalized.files && typeof normalized.files === "string") { - normalized.files = normalized.files.split(",").map((s) => s.trim()).filter(Boolean); - } - if (normalized.obs_type && typeof normalized.obs_type === "string") { - normalized.obs_type = normalized.obs_type.split(",").map((s) => s.trim()).filter(Boolean); - } - if (normalized.type && typeof normalized.type === "string" && normalized.type.includes(",")) { - normalized.type = normalized.type.split(",").map((s) => s.trim()).filter(Boolean); - } - if (normalized.dateStart || normalized.dateEnd) { - normalized.dateRange = { - start: normalized.dateStart, - end: normalized.dateEnd - }; - delete normalized.dateStart; - delete normalized.dateEnd; - } - if (normalized.isFolder === "true") { - normalized.isFolder = true; - } else if (normalized.isFolder === "false") { - normalized.isFolder = false; - } - return normalized; - } - async search(args) { - const normalized = this.normalizeParams(args); - const { query: query2, type, obs_type, concepts, files, format, ...options } = normalized; - let observations = []; - let sessions = []; - let prompts = []; - let chromaFailed = false; - const searchObservations = !type || type === "observations"; - const searchSessions = !type || type === "sessions"; - const searchPrompts = !type || type === "prompts"; - if (!query2) { - logger.debug("SEARCH", "Filter-only query (no query text), using direct SQLite filtering", { enablesDateFilters: true }); - const obsOptions = { ...options, type: obs_type, concepts, files }; - if (searchObservations) { - observations = this.sessionSearch.searchObservations(undefined, obsOptions); - } - if (searchSessions) { - sessions = this.sessionSearch.searchSessions(undefined, options); - } - if (searchPrompts) { - prompts = this.sessionSearch.searchUserPrompts(undefined, options); - } - } else if (this.chromaSync) { - let chromaSucceeded = false; - logger.debug("SEARCH", "Using ChromaDB semantic search", { typeFilter: type || "all" }); - let whereFilter; - if (type === "observations") { - whereFilter = { doc_type: "observation" }; - } else if (type === "sessions") { - whereFilter = { doc_type: "session_summary" }; - } else if (type === "prompts") { - whereFilter = { doc_type: "user_prompt" }; - } - if (options.project) { - const projectFilter = { project: options.project }; - whereFilter = whereFilter ? { $and: [whereFilter, projectFilter] } : projectFilter; - } - const chromaResults = await this.queryChroma(query2, 100, whereFilter); - chromaSucceeded = true; - logger.debug("SEARCH", "ChromaDB returned semantic matches", { matchCount: chromaResults.ids.length }); - if (chromaResults.ids.length > 0) { - const { dateRange } = options; - let startEpoch; - let endEpoch; - if (dateRange) { - if (dateRange.start) { - startEpoch = typeof dateRange.start === "number" ? dateRange.start : new Date(dateRange.start).getTime(); - } - if (dateRange.end) { - endEpoch = typeof dateRange.end === "number" ? dateRange.end : new Date(dateRange.end).getTime(); - } - } else { - startEpoch = Date.now() - SEARCH_CONSTANTS.RECENCY_WINDOW_MS; - } - const recentMetadata = chromaResults.metadatas.map((meta2, idx) => ({ - id: chromaResults.ids[idx], - meta: meta2, - isRecent: meta2 && meta2.created_at_epoch != null && (!startEpoch || meta2.created_at_epoch >= startEpoch) && (!endEpoch || meta2.created_at_epoch <= endEpoch) - })).filter((item) => item.isRecent); - logger.debug("SEARCH", dateRange ? "Results within user date range" : "Results within 90-day window", { count: recentMetadata.length }); - const obsIds = []; - const sessionIds = []; - const promptIds = []; - for (const item of recentMetadata) { - const docType = item.meta?.doc_type; - if (docType === "observation" && searchObservations) { - obsIds.push(item.id); - } else if (docType === "session_summary" && searchSessions) { - sessionIds.push(item.id); - } else if (docType === "user_prompt" && searchPrompts) { - promptIds.push(item.id); - } - } - logger.debug("SEARCH", "Categorized results by type", { observations: obsIds.length, sessions: sessionIds.length, prompts: prompts.length }); - if (obsIds.length > 0) { - const obsOptions = { ...options, type: obs_type, concepts, files }; - observations = this.sessionStore.getObservationsByIds(obsIds, obsOptions); - } - if (sessionIds.length > 0) { - sessions = this.sessionStore.getSessionSummariesByIds(sessionIds, { orderBy: "date_desc", limit: options.limit, project: options.project }); - } - if (promptIds.length > 0) { - prompts = this.sessionStore.getUserPromptsByIds(promptIds, { orderBy: "date_desc", limit: options.limit, project: options.project }); - } - logger.debug("SEARCH", "Hydrated results from SQLite", { observations: observations.length, sessions: sessions.length, prompts: prompts.length }); - } else { - logger.debug("SEARCH", "ChromaDB found no matches (final result, no FTS5 fallback)", {}); - } - } else if (query2) { - chromaFailed = true; - logger.debug("SEARCH", "ChromaDB not initialized - semantic search unavailable", {}); - logger.debug("SEARCH", "Install UVX/Python to enable vector search", { url: "https://docs.astral.sh/uv/getting-started/installation/" }); - observations = []; - sessions = []; - prompts = []; - } - const totalResults = observations.length + sessions.length + prompts.length; - if (format === "json") { - return { - observations, - sessions, - prompts, - totalResults, - query: query2 || "" - }; - } - if (totalResults === 0) { - if (chromaFailed) { - return { - content: [{ - type: "text", - text: `Vector search failed - semantic search unavailable. +- Sort: orderBy="date_desc" or "date_asc"`}};Br();Lo();var Wo=class{buildTimeline(e){let r=[...e.observations.map(n=>({type:"observation",data:n,epoch:n.created_at_epoch})),...e.sessions.map(n=>({type:"session",data:n,epoch:n.created_at_epoch})),...e.prompts.map(n=>({type:"prompt",data:n,epoch:n.created_at_epoch}))];return r.sort((n,i)=>n.epoch-i.epoch),r}filterByDepth(e,r,n,i,s){if(e.length===0)return e;let o=this.findAnchorIndex(e,r,n);if(o===-1)return e;let a=Math.max(0,o-i),c=Math.min(e.length,o+s+1);return e.slice(a,c)}findAnchorIndex(e,r,n){if(typeof r=="number")return e.findIndex(s=>s.type==="observation"&&s.data.id===r);if(typeof r=="string"&&r.startsWith("S")){let s=parseInt(r.slice(1),10);return e.findIndex(o=>o.type==="session"&&o.data.id===s)}let i=e.findIndex(s=>s.epoch>=n);return i===-1?e.length-1:i}formatTimeline(e,r,n={}){let{query:i,depthBefore:s,depthAfter:o,cwd:a=process.cwd()}=n;if(e.length===0)return i?`Found observation matching "${i}", but no timeline context available.`:"No timeline items found";let c=[];if(i&&r){let d=e.find(m=>m.type==="observation"&&m.data.id===r),p=d?d.data.title||"Untitled":"Unknown";c.push(`# Timeline for query: "${i}"`),c.push(`**Anchor:** Observation #${r} - ${p}`)}else r?c.push(`# Timeline around anchor: ${r}`):c.push("# Timeline");s!==void 0&&o!==void 0?c.push(`**Window:** ${s} records before -> ${o} records after | **Items:** ${e.length}`):c.push(`**Items:** ${e.length}`),c.push("");let u=this.groupByDay(e),l=this.sortDaysChronologically(u);for(let[d,p]of l){c.push(`### ${d}`),c.push("");let m=null,f="",g=!1;for(let h of p){let v=this.isAnchorItem(h,r);if(h.type==="session"){g&&(c.push(""),g=!1,m=null,f="");let x=h.data,b=x.request||"Session summary",_=v?" <- **ANCHOR**":"";c.push(`**\u{1F3AF} #S${x.id}** ${b} (${_n(h.epoch)})${_}`),c.push("")}else if(h.type==="prompt"){g&&(c.push(""),g=!1,m=null,f="");let x=h.data,b=x.prompt_text.length>100?x.prompt_text.substring(0,100)+"...":x.prompt_text;c.push(`**\u{1F4AC} User Prompt #${x.prompt_number}** (${_n(h.epoch)})`),c.push(`> ${b}`),c.push("")}else if(h.type==="observation"){let x=h.data,b=ei(x.files_modified,a,x.files_read);b!==m&&(g&&c.push(""),c.push(`**${b}**`),c.push("| ID | Time | T | Title | Tokens |"),c.push("|----|------|---|-------|--------|"),m=b,g=!0,f="");let _=He.getInstance().getTypeIcon(x.type),S=lr(h.epoch),w=x.title||"Untitled",E=Rc(x.narrative),R=S!==f?S:'"';f=S;let A=v?" <- **ANCHOR**":"";c.push(`| #${x.id} | ${R} | ${_} | ${w}${A} | ~${E} |`)}}g&&c.push("")}return c.join(` +`)}groupByDay(e){let r=new Map;for(let n of e){let i=ns(n.epoch);r.has(i)||r.set(i,[]),r.get(i).push(n)}return r}sortDaysChronologically(e){return Array.from(e.entries()).sort((r,n)=>{let i=new Date(r[0]).getTime(),s=new Date(n[0]).getTime();return i-s})}isAnchorItem(e,r){return r===null?!1:typeof r=="number"&&e.type==="observation"?e.data.id===r:typeof r=="string"&&r.startsWith("S")&&e.type==="session"?`S${e.data.id}`===r:!1}};oe();var hp=class{constructor(e,r,n){this.sessionSearch=e;this.sessionStore=r;this.chromaSync=n;this.sqliteStrategy=new pp(e),n&&(this.chromaStrategy=new dp(n,r),this.hybridStrategy=new mp(n,r,e)),this.resultFormatter=new fp,this.timelineBuilder=new Wo}chromaStrategy=null;sqliteStrategy;hybridStrategy=null;resultFormatter;timelineBuilder;async search(e){let r=this.normalizeParams(e);return await this.executeWithFallback(r)}async executeWithFallback(e){if(!e.query)return y.debug("SEARCH","Orchestrator: Filter-only query, using SQLite",{}),await this.sqliteStrategy.search(e);if(this.chromaStrategy){y.debug("SEARCH","Orchestrator: Using Chroma semantic search",{});let r=await this.chromaStrategy.search(e);return r.usedChroma?r:(y.debug("SEARCH","Orchestrator: Chroma failed, falling back to SQLite",{}),{...await this.sqliteStrategy.search({...e,query:void 0}),fellBack:!0})}return y.debug("SEARCH","Orchestrator: Chroma not available",{}),{results:{observations:[],sessions:[],prompts:[]},usedChroma:!1,fellBack:!1,strategy:"sqlite"}}async findByConcept(e,r){let n=this.normalizeParams(r);return this.hybridStrategy?await this.hybridStrategy.findByConcept(e,n):{results:{observations:this.sqliteStrategy.findByConcept(e,n),sessions:[],prompts:[]},usedChroma:!1,fellBack:!1,strategy:"sqlite"}}async findByType(e,r){let n=this.normalizeParams(r);return this.hybridStrategy?await this.hybridStrategy.findByType(e,n):{results:{observations:this.sqliteStrategy.findByType(e,n),sessions:[],prompts:[]},usedChroma:!1,fellBack:!1,strategy:"sqlite"}}async findByFile(e,r){let n=this.normalizeParams(r);return this.hybridStrategy?await this.hybridStrategy.findByFile(e,n):{...this.sqliteStrategy.findByFile(e,n),usedChroma:!1}}getTimeline(e,r,n,i,s){let o=this.timelineBuilder.buildTimeline(e);return this.timelineBuilder.filterByDepth(o,r,n,i,s)}formatTimeline(e,r,n={}){return this.timelineBuilder.formatTimeline(e,r,n)}formatSearchResults(e,r,n=!1){return this.resultFormatter.formatSearchResults(e,r,n)}getFormatter(){return this.resultFormatter}getTimelineBuilder(){return this.timelineBuilder}normalizeParams(e){let r={...e};return r.concepts&&typeof r.concepts=="string"&&(r.concepts=r.concepts.split(",").map(n=>n.trim()).filter(Boolean)),r.files&&typeof r.files=="string"&&(r.files=r.files.split(",").map(n=>n.trim()).filter(Boolean)),r.obs_type&&typeof r.obs_type=="string"&&(r.obsType=r.obs_type.split(",").map(n=>n.trim()).filter(Boolean),delete r.obs_type),r.type&&typeof r.type=="string"&&r.type.includes(",")&&(r.type=r.type.split(",").map(n=>n.trim()).filter(Boolean)),r.type&&!r.searchType&&["observations","sessions","prompts"].includes(r.type)&&(r.searchType=r.type,delete r.type),(r.dateStart||r.dateEnd)&&(r.dateRange={start:r.dateStart,end:r.dateEnd},delete r.dateStart,delete r.dateEnd),r}isChromaAvailable(){return!!this.chromaSync}};var Wg=class{constructor(e,r,n,i,s){this.sessionSearch=e;this.sessionStore=r;this.chromaSync=n;this.formatter=i;this.timelineService=s;this.orchestrator=new hp(e,r,n),this.timelineBuilder=new Wo}orchestrator;timelineBuilder;async queryChroma(e,r,n){return this.chromaSync?await this.chromaSync.queryChroma(e,r,n):{ids:[],distances:[],metadatas:[]}}normalizeParams(e){let r={...e};return r.filePath&&!r.files&&(r.files=r.filePath,delete r.filePath),r.concepts&&typeof r.concepts=="string"&&(r.concepts=r.concepts.split(",").map(n=>n.trim()).filter(Boolean)),r.files&&typeof r.files=="string"&&(r.files=r.files.split(",").map(n=>n.trim()).filter(Boolean)),r.obs_type&&typeof r.obs_type=="string"&&(r.obs_type=r.obs_type.split(",").map(n=>n.trim()).filter(Boolean)),r.type&&typeof r.type=="string"&&r.type.includes(",")&&(r.type=r.type.split(",").map(n=>n.trim()).filter(Boolean)),(r.dateStart||r.dateEnd)&&(r.dateRange={start:r.dateStart,end:r.dateEnd},delete r.dateStart,delete r.dateEnd),r.isFolder==="true"?r.isFolder=!0:r.isFolder==="false"&&(r.isFolder=!1),r}async search(e){let r=this.normalizeParams(e),{query:n,type:i,obs_type:s,concepts:o,files:a,format:c,...u}=r,l=[],d=[],p=[],m=!1,f=!i||i==="observations",g=!i||i==="sessions",h=!i||i==="prompts";if(n)if(this.chromaSync){let E=!1;y.debug("SEARCH","Using ChromaDB semantic search",{typeFilter:i||"all"});let $;if(i==="observations"?$={doc_type:"observation"}:i==="sessions"?$={doc_type:"session_summary"}:i==="prompts"&&($={doc_type:"user_prompt"}),u.project){let A={project:u.project};$=$?{$and:[$,A]}:A}let R=await this.queryChroma(n,100,$);if(E=!0,y.debug("SEARCH","ChromaDB returned semantic matches",{matchCount:R.ids.length}),R.ids.length>0){let{dateRange:A}=u,N,U;A?(A.start&&(N=typeof A.start=="number"?A.start:new Date(A.start).getTime()),A.end&&(U=typeof A.end=="number"?A.end:new Date(A.end).getTime())):N=Date.now()-zt.RECENCY_WINDOW_MS;let W=R.metadatas.map((ze,kt)=>({id:R.ids[kt],meta:ze,isRecent:ze&&ze.created_at_epoch!=null&&(!N||ze.created_at_epoch>=N)&&(!U||ze.created_at_epoch<=U)})).filter(ze=>ze.isRecent);y.debug("SEARCH",A?"Results within user date range":"Results within 90-day window",{count:W.length});let j=[],ae=[],Ne=[];for(let ze of W){let kt=ze.meta?.doc_type;kt==="observation"&&f?j.push(ze.id):kt==="session_summary"&&g?ae.push(ze.id):kt==="user_prompt"&&h&&Ne.push(ze.id)}if(y.debug("SEARCH","Categorized results by type",{observations:j.length,sessions:ae.length,prompts:p.length}),j.length>0){let ze={...u,type:s,concepts:o,files:a};l=this.sessionStore.getObservationsByIds(j,ze)}ae.length>0&&(d=this.sessionStore.getSessionSummariesByIds(ae,{orderBy:"date_desc",limit:u.limit,project:u.project})),Ne.length>0&&(p=this.sessionStore.getUserPromptsByIds(Ne,{orderBy:"date_desc",limit:u.limit,project:u.project})),y.debug("SEARCH","Hydrated results from SQLite",{observations:l.length,sessions:d.length,prompts:p.length})}else y.debug("SEARCH","ChromaDB found no matches (final result, no FTS5 fallback)",{})}else n&&(m=!0,y.debug("SEARCH","ChromaDB not initialized - semantic search unavailable",{}),y.debug("SEARCH","Install UVX/Python to enable vector search",{url:"https://docs.astral.sh/uv/getting-started/installation/"}),l=[],d=[],p=[]);else{y.debug("SEARCH","Filter-only query (no query text), using direct SQLite filtering",{enablesDateFilters:!0});let E={...u,type:s,concepts:o,files:a};f&&(l=this.sessionSearch.searchObservations(void 0,E)),g&&(d=this.sessionSearch.searchSessions(void 0,u)),h&&(p=this.sessionSearch.searchUserPrompts(void 0,u))}let v=l.length+d.length+p.length;if(c==="json")return{observations:l,sessions:d,prompts:p,totalResults:v,query:n||""};if(v===0)return m?{content:[{type:"text",text:`Vector search failed - semantic search unavailable. To enable semantic search: 1. Install uv: https://docs.astral.sh/uv/getting-started/installation/ 2. Restart the worker: npm run worker:restart -Note: You can still use filter-only searches (date ranges, types, files) without a query term.` - }] - }; - } - return { - content: [{ - type: "text", - text: `No results found matching "${query2}"` - }] - }; - } - const allResults = [ - ...observations.map((obs) => ({ - type: "observation", - data: obs, - epoch: obs.created_at_epoch, - created_at: obs.created_at - })), - ...sessions.map((sess) => ({ - type: "session", - data: sess, - epoch: sess.created_at_epoch, - created_at: sess.created_at - })), - ...prompts.map((prompt) => ({ - type: "prompt", - data: prompt, - epoch: prompt.created_at_epoch, - created_at: prompt.created_at - })) - ]; - if (options.orderBy === "date_desc") { - allResults.sort((a, b) => b.epoch - a.epoch); - } else if (options.orderBy === "date_asc") { - allResults.sort((a, b) => a.epoch - b.epoch); - } - const limitedResults = allResults.slice(0, options.limit || 20); - const cwd2 = process.cwd(); - const resultsByDate = groupByDate(limitedResults, (item) => item.created_at); - const lines = []; - lines.push(`Found ${totalResults} result(s) matching "${query2}" (${observations.length} obs, ${sessions.length} sessions, ${prompts.length} prompts)`); - lines.push(""); - for (const [day, dayResults] of resultsByDate) { - lines.push(`### ${day}`); - lines.push(""); - const resultsByFile = new Map; - for (const result of dayResults) { - let file = "General"; - if (result.type === "observation") { - file = extractFirstFile(result.data.files_modified, cwd2, result.data.files_read); - } - if (!resultsByFile.has(file)) { - resultsByFile.set(file, []); - } - resultsByFile.get(file).push(result); - } - for (const [file, fileResults] of resultsByFile) { - lines.push(`**${file}**`); - lines.push(this.formatter.formatSearchTableHeader()); - let lastTime = ""; - for (const result of fileResults) { - if (result.type === "observation") { - const formatted = this.formatter.formatObservationSearchRow(result.data, lastTime); - lines.push(formatted.row); - lastTime = formatted.time; - } else if (result.type === "session") { - const formatted = this.formatter.formatSessionSearchRow(result.data, lastTime); - lines.push(formatted.row); - lastTime = formatted.time; - } else { - const formatted = this.formatter.formatUserPromptSearchRow(result.data, lastTime); - lines.push(formatted.row); - lastTime = formatted.time; - } - } - lines.push(""); - } - } - return { - content: [{ - type: "text", - text: lines.join(` -`) - }] - }; - } - async timeline(args) { - const { anchor, query: query2, depth_before = 10, depth_after = 10, project } = args; - const cwd2 = process.cwd(); - if (!anchor && !query2) { - return { - content: [{ - type: "text", - text: 'Error: Must provide either "anchor" or "query" parameter' - }], - isError: true - }; - } - if (anchor && query2) { - return { - content: [{ - type: "text", - text: 'Error: Cannot provide both "anchor" and "query" parameters. Use one or the other.' - }], - isError: true - }; - } - let anchorId; - let anchorEpoch; - let timelineData; - if (query2) { - let results = []; - if (this.chromaSync) { - try { - logger.debug("SEARCH", "Using hybrid semantic search for timeline query", {}); - const chromaResults = await this.queryChroma(query2, 100); - logger.debug("SEARCH", "Chroma returned semantic matches for timeline", { matchCount: chromaResults?.ids?.length ?? 0 }); - if (chromaResults?.ids && chromaResults.ids.length > 0) { - const ninetyDaysAgo = Date.now() - SEARCH_CONSTANTS.RECENCY_WINDOW_MS; - const recentIds = chromaResults.ids.filter((_id, idx) => { - const meta2 = chromaResults.metadatas[idx]; - return meta2 && meta2.created_at_epoch > ninetyDaysAgo; - }); - if (recentIds.length > 0) { - results = this.sessionStore.getObservationsByIds(recentIds, { orderBy: "date_desc", limit: 1 }); - } - } - } catch (chromaError) { - logger.error("SEARCH", "Chroma search failed for timeline, continuing without semantic results", {}, chromaError); - } - } - if (results.length === 0) { - return { - content: [{ - type: "text", - text: `No observations found matching "${query2}". Try a different search query.` - }] - }; - } - const topResult = results[0]; - anchorId = topResult.id; - anchorEpoch = topResult.created_at_epoch; - logger.debug("SEARCH", "Query mode: Using observation as timeline anchor", { observationId: topResult.id }); - timelineData = this.sessionStore.getTimelineAroundObservation(topResult.id, topResult.created_at_epoch, depth_before, depth_after, project); - } else if (typeof anchor === "number") { - const obs = this.sessionStore.getObservationById(anchor); - if (!obs) { - return { - content: [{ - type: "text", - text: `Observation #${anchor} not found` - }], - isError: true - }; - } - anchorId = anchor; - anchorEpoch = obs.created_at_epoch; - timelineData = this.sessionStore.getTimelineAroundObservation(anchor, anchorEpoch, depth_before, depth_after, project); - } else if (typeof anchor === "string") { - if (anchor.startsWith("S") || anchor.startsWith("#S")) { - const sessionId = anchor.replace(/^#?S/, ""); - const sessionNum = parseInt(sessionId, 10); - const sessions = this.sessionStore.getSessionSummariesByIds([sessionNum]); - if (sessions.length === 0) { - return { - content: [{ - type: "text", - text: `Session #${sessionNum} not found` - }], - isError: true - }; - } - anchorEpoch = sessions[0].created_at_epoch; - anchorId = `S${sessionNum}`; - timelineData = this.sessionStore.getTimelineAroundTimestamp(anchorEpoch, depth_before, depth_after, project); - } else { - const date5 = new Date(anchor); - if (isNaN(date5.getTime())) { - return { - content: [{ - type: "text", - text: `Invalid timestamp: ${anchor}` - }], - isError: true - }; - } - anchorEpoch = date5.getTime(); - anchorId = anchor; - timelineData = this.sessionStore.getTimelineAroundTimestamp(anchorEpoch, depth_before, depth_after, project); - } - } else { - return { - content: [{ - type: "text", - text: 'Invalid anchor: must be observation ID (number), session ID (e.g., "S123"), or ISO timestamp' - }], - isError: true - }; - } - const items = [ - ...(timelineData.observations || []).map((obs) => ({ type: "observation", data: obs, epoch: obs.created_at_epoch })), - ...(timelineData.sessions || []).map((sess) => ({ type: "session", data: sess, epoch: sess.created_at_epoch })), - ...(timelineData.prompts || []).map((prompt) => ({ type: "prompt", data: prompt, epoch: prompt.created_at_epoch })) - ]; - items.sort((a, b) => a.epoch - b.epoch); - const filteredItems = this.timelineService.filterByDepth(items, anchorId, anchorEpoch, depth_before, depth_after); - if (!filteredItems || filteredItems.length === 0) { - return { - content: [{ - type: "text", - text: query2 ? `Found observation matching "${query2}", but no timeline context available (${depth_before} records before, ${depth_after} records after).` : `No context found around anchor (${depth_before} records before, ${depth_after} records after)` - }] - }; - } - const lines = []; - if (query2) { - const anchorObs = filteredItems.find((item) => item.type === "observation" && item.data.id === anchorId); - const anchorTitle = anchorObs && anchorObs.type === "observation" ? anchorObs.data.title || "Untitled" : "Unknown"; - lines.push(`# Timeline for query: "${query2}"`); - lines.push(`**Anchor:** Observation #${anchorId} - ${anchorTitle}`); - } else { - lines.push(`# Timeline around anchor: ${anchorId}`); - } - lines.push(`**Window:** ${depth_before} records before -> ${depth_after} records after | **Items:** ${filteredItems?.length ?? 0}`); - lines.push(""); - const dayMap = new Map; - for (const item of filteredItems) { - const day = formatDate(item.epoch); - if (!dayMap.has(day)) { - dayMap.set(day, []); - } - dayMap.get(day).push(item); - } - const sortedDays = Array.from(dayMap.entries()).sort((a, b) => { - const aDate = new Date(a[0]).getTime(); - const bDate = new Date(b[0]).getTime(); - return aDate - bDate; - }); - for (const [day, dayItems] of sortedDays) { - lines.push(`### ${day}`); - lines.push(""); - let currentFile = null; - let lastTime = ""; - let tableOpen = false; - for (const item of dayItems) { - const isAnchor = typeof anchorId === "number" && item.type === "observation" && item.data.id === anchorId || typeof anchorId === "string" && anchorId.startsWith("S") && item.type === "session" && `S${item.data.id}` === anchorId; - if (item.type === "session") { - if (tableOpen) { - lines.push(""); - tableOpen = false; - currentFile = null; - lastTime = ""; - } - const sess = item.data; - const title = sess.request || "Session summary"; - const marker = isAnchor ? " <- **ANCHOR**" : ""; - lines.push(`**\uD83C\uDFAF #S${sess.id}** ${title} (${formatDateTime(item.epoch)})${marker}`); - lines.push(""); - } else if (item.type === "prompt") { - if (tableOpen) { - lines.push(""); - tableOpen = false; - currentFile = null; - lastTime = ""; - } - const prompt = item.data; - const truncated = prompt.prompt_text.length > 100 ? prompt.prompt_text.substring(0, 100) + "..." : prompt.prompt_text; - lines.push(`**\uD83D\uDCAC User Prompt #${prompt.prompt_number}** (${formatDateTime(item.epoch)})`); - lines.push(`> ${truncated}`); - lines.push(""); - } else if (item.type === "observation") { - const obs = item.data; - const file = extractFirstFile(obs.files_modified, cwd2, obs.files_read); - if (file !== currentFile) { - if (tableOpen) { - lines.push(""); - } - lines.push(`**${file}**`); - lines.push(`| ID | Time | T | Title | Tokens |`); - lines.push(`|----|------|---|-------|--------|`); - currentFile = file; - tableOpen = true; - lastTime = ""; - } - const icon = ModeManager.getInstance().getTypeIcon(obs.type); - const time4 = formatTime(item.epoch); - const title = obs.title || "Untitled"; - const tokens = estimateTokens(obs.narrative); - const showTime = time4 !== lastTime; - const timeDisplay = showTime ? time4 : '"'; - lastTime = time4; - const anchorMarker = isAnchor ? " <- **ANCHOR**" : ""; - lines.push(`| #${obs.id} | ${timeDisplay} | ${icon} | ${title}${anchorMarker} | ~${tokens} |`); - } - } - if (tableOpen) { - lines.push(""); - } - } - return { - content: [{ - type: "text", - text: lines.join(` -`) - }] - }; - } - async decisions(args) { - const normalized = this.normalizeParams(args); - const { query: query2, ...filters } = normalized; - let results = []; - if (this.chromaSync) { - try { - if (query2) { - logger.debug("SEARCH", "Using Chroma semantic search with type=decision filter", {}); - const chromaResults = await this.queryChroma(query2, Math.min((filters.limit || 20) * 2, 100), { type: "decision" }); - const obsIds = chromaResults.ids; - if (obsIds.length > 0) { - results = this.sessionStore.getObservationsByIds(obsIds, { ...filters, type: "decision" }); - results.sort((a, b) => obsIds.indexOf(a.id) - obsIds.indexOf(b.id)); - } - } else { - logger.debug("SEARCH", "Using metadata-first + semantic ranking for decisions", {}); - const metadataResults = this.sessionSearch.findByType("decision", filters); - if (metadataResults.length > 0) { - const ids = metadataResults.map((obs) => obs.id); - const chromaResults = await this.queryChroma("decision", Math.min(ids.length, 100)); - const rankedIds = []; - for (const chromaId of chromaResults.ids) { - if (ids.includes(chromaId) && !rankedIds.includes(chromaId)) { - rankedIds.push(chromaId); - } - } - if (rankedIds.length > 0) { - results = this.sessionStore.getObservationsByIds(rankedIds, { limit: filters.limit || 20 }); - results.sort((a, b) => rankedIds.indexOf(a.id) - rankedIds.indexOf(b.id)); - } - } - } - } catch (chromaError) { - logger.error("SEARCH", "Chroma search failed for decisions, falling back to metadata search", {}, chromaError); - } - } - if (results.length === 0) { - results = this.sessionSearch.findByType("decision", filters); - } - if (results.length === 0) { - return { - content: [{ - type: "text", - text: "No decision observations found" - }] - }; - } - const header = `Found ${results.length} decision(s) +Note: You can still use filter-only searches (date ranges, types, files) without a query term.`}]}:{content:[{type:"text",text:`No results found matching "${n}"`}]};let x=[...l.map(E=>({type:"observation",data:E,epoch:E.created_at_epoch,created_at:E.created_at})),...d.map(E=>({type:"session",data:E,epoch:E.created_at_epoch,created_at:E.created_at})),...p.map(E=>({type:"prompt",data:E,epoch:E.created_at_epoch,created_at:E.created_at}))];u.orderBy==="date_desc"?x.sort((E,$)=>$.epoch-E.epoch):u.orderBy==="date_asc"&&x.sort((E,$)=>E.epoch-$.epoch);let b=x.slice(0,u.limit||20),_=process.cwd(),S=is(b,E=>E.created_at),w=[];w.push(`Found ${v} result(s) matching "${n}" (${l.length} obs, ${d.length} sessions, ${p.length} prompts)`),w.push("");for(let[E,$]of S){w.push(`### ${E}`),w.push("");let R=new Map;for(let A of $){let N="General";A.type==="observation"&&(N=ei(A.data.files_modified,_,A.data.files_read)),R.has(N)||R.set(N,[]),R.get(N).push(A)}for(let[A,N]of R){w.push(`**${A}**`),w.push(this.formatter.formatSearchTableHeader());let U="";for(let W of N)if(W.type==="observation"){let j=this.formatter.formatObservationSearchRow(W.data,U);w.push(j.row),U=j.time}else if(W.type==="session"){let j=this.formatter.formatSessionSearchRow(W.data,U);w.push(j.row),U=j.time}else{let j=this.formatter.formatUserPromptSearchRow(W.data,U);w.push(j.row),U=j.time}w.push("")}}return{content:[{type:"text",text:w.join(` +`)}]}}async timeline(e){let{anchor:r,query:n,depth_before:i=10,depth_after:s=10,project:o}=e,a=process.cwd();if(!r&&!n)return{content:[{type:"text",text:'Error: Must provide either "anchor" or "query" parameter'}],isError:!0};if(r&&n)return{content:[{type:"text",text:'Error: Cannot provide both "anchor" and "query" parameters. Use one or the other.'}],isError:!0};let c,u,l;if(n){let h=[];if(this.chromaSync)try{y.debug("SEARCH","Using hybrid semantic search for timeline query",{});let x=await this.queryChroma(n,100);if(y.debug("SEARCH","Chroma returned semantic matches for timeline",{matchCount:x?.ids?.length??0}),x?.ids&&x.ids.length>0){let b=Date.now()-zt.RECENCY_WINDOW_MS,_=x.ids.filter((S,w)=>{let E=x.metadatas[w];return E&&E.created_at_epoch>b});_.length>0&&(h=this.sessionStore.getObservationsByIds(_,{orderBy:"date_desc",limit:1}))}}catch(x){y.error("SEARCH","Chroma search failed for timeline, continuing without semantic results",{},x)}if(h.length===0)return{content:[{type:"text",text:`No observations found matching "${n}". Try a different search query.`}]};let v=h[0];c=v.id,u=v.created_at_epoch,y.debug("SEARCH","Query mode: Using observation as timeline anchor",{observationId:v.id}),l=this.sessionStore.getTimelineAroundObservation(v.id,v.created_at_epoch,i,s,o)}else if(typeof r=="number"){let h=this.sessionStore.getObservationById(r);if(!h)return{content:[{type:"text",text:`Observation #${r} not found`}],isError:!0};c=r,u=h.created_at_epoch,l=this.sessionStore.getTimelineAroundObservation(r,u,i,s,o)}else if(typeof r=="string")if(r.startsWith("S")||r.startsWith("#S")){let h=r.replace(/^#?S/,""),v=parseInt(h,10),x=this.sessionStore.getSessionSummariesByIds([v]);if(x.length===0)return{content:[{type:"text",text:`Session #${v} not found`}],isError:!0};u=x[0].created_at_epoch,c=`S${v}`,l=this.sessionStore.getTimelineAroundTimestamp(u,i,s,o)}else{let h=new Date(r);if(isNaN(h.getTime()))return{content:[{type:"text",text:`Invalid timestamp: ${r}`}],isError:!0};u=h.getTime(),c=r,l=this.sessionStore.getTimelineAroundTimestamp(u,i,s,o)}else return{content:[{type:"text",text:'Invalid anchor: must be observation ID (number), session ID (e.g., "S123"), or ISO timestamp'}],isError:!0};let d=[...(l.observations||[]).map(h=>({type:"observation",data:h,epoch:h.created_at_epoch})),...(l.sessions||[]).map(h=>({type:"session",data:h,epoch:h.created_at_epoch})),...(l.prompts||[]).map(h=>({type:"prompt",data:h,epoch:h.created_at_epoch}))];d.sort((h,v)=>h.epoch-v.epoch);let p=this.timelineService.filterByDepth(d,c,u,i,s);if(!p||p.length===0)return{content:[{type:"text",text:n?`Found observation matching "${n}", but no timeline context available (${i} records before, ${s} records after).`:`No context found around anchor (${i} records before, ${s} records after)`}]};let m=[];if(n){let h=p.find(x=>x.type==="observation"&&x.data.id===c),v=h&&h.type==="observation"?h.data.title||"Untitled":"Unknown";m.push(`# Timeline for query: "${n}"`),m.push(`**Anchor:** Observation #${c} - ${v}`)}else m.push(`# Timeline around anchor: ${c}`);m.push(`**Window:** ${i} records before -> ${s} records after | **Items:** ${p?.length??0}`),m.push("");let f=new Map;for(let h of p){let v=ns(h.epoch);f.has(v)||f.set(v,[]),f.get(v).push(h)}let g=Array.from(f.entries()).sort((h,v)=>{let x=new Date(h[0]).getTime(),b=new Date(v[0]).getTime();return x-b});for(let[h,v]of g){m.push(`### ${h}`),m.push("");let x=null,b="",_=!1;for(let S of v){let w=typeof c=="number"&&S.type==="observation"&&S.data.id===c||typeof c=="string"&&c.startsWith("S")&&S.type==="session"&&`S${S.data.id}`===c;if(S.type==="session"){_&&(m.push(""),_=!1,x=null,b="");let E=S.data,$=E.request||"Session summary",R=w?" <- **ANCHOR**":"";m.push(`**\u{1F3AF} #S${E.id}** ${$} (${_n(S.epoch)})${R}`),m.push("")}else if(S.type==="prompt"){_&&(m.push(""),_=!1,x=null,b="");let E=S.data,$=E.prompt_text.length>100?E.prompt_text.substring(0,100)+"...":E.prompt_text;m.push(`**\u{1F4AC} User Prompt #${E.prompt_number}** (${_n(S.epoch)})`),m.push(`> ${$}`),m.push("")}else if(S.type==="observation"){let E=S.data,$=ei(E.files_modified,a,E.files_read);$!==x&&(_&&m.push(""),m.push(`**${$}**`),m.push("| ID | Time | T | Title | Tokens |"),m.push("|----|------|---|-------|--------|"),x=$,_=!0,b="");let R=He.getInstance().getTypeIcon(E.type),A=lr(S.epoch),N=E.title||"Untitled",U=Rc(E.narrative),j=A!==b?A:'"';b=A;let ae=w?" <- **ANCHOR**":"";m.push(`| #${E.id} | ${j} | ${R} | ${N}${ae} | ~${U} |`)}}_&&m.push("")}return{content:[{type:"text",text:m.join(` +`)}]}}async decisions(e){let r=this.normalizeParams(e),{query:n,...i}=r,s=[];if(this.chromaSync)try{if(n){y.debug("SEARCH","Using Chroma semantic search with type=decision filter",{});let u=(await this.queryChroma(n,Math.min((i.limit||20)*2,100),{type:"decision"})).ids;u.length>0&&(s=this.sessionStore.getObservationsByIds(u,{...i,type:"decision"}),s.sort((l,d)=>u.indexOf(l.id)-u.indexOf(d.id)))}else{y.debug("SEARCH","Using metadata-first + semantic ranking for decisions",{});let c=this.sessionSearch.findByType("decision",i);if(c.length>0){let u=c.map(p=>p.id),l=await this.queryChroma("decision",Math.min(u.length,100)),d=[];for(let p of l.ids)u.includes(p)&&!d.includes(p)&&d.push(p);d.length>0&&(s=this.sessionStore.getObservationsByIds(d,{limit:i.limit||20}),s.sort((p,m)=>d.indexOf(p.id)-d.indexOf(m.id)))}}}catch(c){y.error("SEARCH","Chroma search failed for decisions, falling back to metadata search",{},c)}if(s.length===0&&(s=this.sessionSearch.findByType("decision",i)),s.length===0)return{content:[{type:"text",text:"No decision observations found"}]};let o=`Found ${s.length} decision(s) -${this.formatter.formatTableHeader()}`; - const formattedResults = results.map((obs, i) => this.formatter.formatObservationIndex(obs, i)); - return { - content: [{ - type: "text", - text: header + ` -` + formattedResults.join(` -`) - }] - }; - } - async changes(args) { - const normalized = this.normalizeParams(args); - const { ...filters } = normalized; - let results = []; - if (this.chromaSync) { - try { - logger.debug("SEARCH", "Using hybrid search for change-related observations", {}); - const typeResults = this.sessionSearch.findByType("change", filters); - const conceptChangeResults = this.sessionSearch.findByConcept("change", filters); - const conceptWhatChangedResults = this.sessionSearch.findByConcept("what-changed", filters); - const allIds = new Set; - [...typeResults, ...conceptChangeResults, ...conceptWhatChangedResults].forEach((obs) => allIds.add(obs.id)); - if (allIds.size > 0) { - const idsArray = Array.from(allIds); - const chromaResults = await this.queryChroma("what changed", Math.min(idsArray.length, 100)); - const rankedIds = []; - for (const chromaId of chromaResults.ids) { - if (idsArray.includes(chromaId) && !rankedIds.includes(chromaId)) { - rankedIds.push(chromaId); - } - } - if (rankedIds.length > 0) { - results = this.sessionStore.getObservationsByIds(rankedIds, { limit: filters.limit || 20 }); - results.sort((a, b) => rankedIds.indexOf(a.id) - rankedIds.indexOf(b.id)); - } - } - } catch (chromaError) { - logger.error("SEARCH", "Chroma search failed for changes, falling back to metadata search", {}, chromaError); - } - } - if (results.length === 0) { - const typeResults = this.sessionSearch.findByType("change", filters); - const conceptResults = this.sessionSearch.findByConcept("change", filters); - const whatChangedResults = this.sessionSearch.findByConcept("what-changed", filters); - const allIds = new Set; - [...typeResults, ...conceptResults, ...whatChangedResults].forEach((obs) => allIds.add(obs.id)); - results = Array.from(allIds).map((id) => typeResults.find((obs) => obs.id === id) || conceptResults.find((obs) => obs.id === id) || whatChangedResults.find((obs) => obs.id === id)).filter(Boolean); - results.sort((a, b) => b.created_at_epoch - a.created_at_epoch); - results = results.slice(0, filters.limit || 20); - } - if (results.length === 0) { - return { - content: [{ - type: "text", - text: "No change-related observations found" - }] - }; - } - const header = `Found ${results.length} change-related observation(s) +${this.formatter.formatTableHeader()}`,a=s.map((c,u)=>this.formatter.formatObservationIndex(c,u));return{content:[{type:"text",text:o+` +`+a.join(` +`)}]}}async changes(e){let r=this.normalizeParams(e),{...n}=r,i=[];if(this.chromaSync)try{y.debug("SEARCH","Using hybrid search for change-related observations",{});let a=this.sessionSearch.findByType("change",n),c=this.sessionSearch.findByConcept("change",n),u=this.sessionSearch.findByConcept("what-changed",n),l=new Set;if([...a,...c,...u].forEach(d=>l.add(d.id)),l.size>0){let d=Array.from(l),p=await this.queryChroma("what changed",Math.min(d.length,100)),m=[];for(let f of p.ids)d.includes(f)&&!m.includes(f)&&m.push(f);m.length>0&&(i=this.sessionStore.getObservationsByIds(m,{limit:n.limit||20}),i.sort((f,g)=>m.indexOf(f.id)-m.indexOf(g.id)))}}catch(a){y.error("SEARCH","Chroma search failed for changes, falling back to metadata search",{},a)}if(i.length===0){let a=this.sessionSearch.findByType("change",n),c=this.sessionSearch.findByConcept("change",n),u=this.sessionSearch.findByConcept("what-changed",n),l=new Set;[...a,...c,...u].forEach(d=>l.add(d.id)),i=Array.from(l).map(d=>a.find(p=>p.id===d)||c.find(p=>p.id===d)||u.find(p=>p.id===d)).filter(Boolean),i.sort((d,p)=>p.created_at_epoch-d.created_at_epoch),i=i.slice(0,n.limit||20)}if(i.length===0)return{content:[{type:"text",text:"No change-related observations found"}]};let s=`Found ${i.length} change-related observation(s) -${this.formatter.formatTableHeader()}`; - const formattedResults = results.map((obs, i) => this.formatter.formatObservationIndex(obs, i)); - return { - content: [{ - type: "text", - text: header + ` -` + formattedResults.join(` -`) - }] - }; - } - async howItWorks(args) { - const normalized = this.normalizeParams(args); - const { ...filters } = normalized; - let results = []; - if (this.chromaSync) { - logger.debug("SEARCH", "Using metadata-first + semantic ranking for how-it-works", {}); - const metadataResults = this.sessionSearch.findByConcept("how-it-works", filters); - if (metadataResults.length > 0) { - const ids = metadataResults.map((obs) => obs.id); - const chromaResults = await this.queryChroma("how it works architecture", Math.min(ids.length, 100)); - const rankedIds = []; - for (const chromaId of chromaResults.ids) { - if (ids.includes(chromaId) && !rankedIds.includes(chromaId)) { - rankedIds.push(chromaId); - } - } - if (rankedIds.length > 0) { - results = this.sessionStore.getObservationsByIds(rankedIds, { limit: filters.limit || 20 }); - results.sort((a, b) => rankedIds.indexOf(a.id) - rankedIds.indexOf(b.id)); - } - } - } - if (results.length === 0) { - results = this.sessionSearch.findByConcept("how-it-works", filters); - } - if (results.length === 0) { - return { - content: [{ - type: "text", - text: 'No "how it works" observations found' - }] - }; - } - const header = `Found ${results.length} "how it works" observation(s) +${this.formatter.formatTableHeader()}`,o=i.map((a,c)=>this.formatter.formatObservationIndex(a,c));return{content:[{type:"text",text:s+` +`+o.join(` +`)}]}}async howItWorks(e){let r=this.normalizeParams(e),{...n}=r,i=[];if(this.chromaSync){y.debug("SEARCH","Using metadata-first + semantic ranking for how-it-works",{});let a=this.sessionSearch.findByConcept("how-it-works",n);if(a.length>0){let c=a.map(d=>d.id),u=await this.queryChroma("how it works architecture",Math.min(c.length,100)),l=[];for(let d of u.ids)c.includes(d)&&!l.includes(d)&&l.push(d);l.length>0&&(i=this.sessionStore.getObservationsByIds(l,{limit:n.limit||20}),i.sort((d,p)=>l.indexOf(d.id)-l.indexOf(p.id)))}}if(i.length===0&&(i=this.sessionSearch.findByConcept("how-it-works",n)),i.length===0)return{content:[{type:"text",text:'No "how it works" observations found'}]};let s=`Found ${i.length} "how it works" observation(s) -${this.formatter.formatTableHeader()}`; - const formattedResults = results.map((obs, i) => this.formatter.formatObservationIndex(obs, i)); - return { - content: [{ - type: "text", - text: header + ` -` + formattedResults.join(` -`) - }] - }; - } - async searchObservations(args) { - const normalized = this.normalizeParams(args); - const { query: query2, ...options } = normalized; - let results = []; - if (this.chromaSync) { - logger.debug("SEARCH", "Using hybrid semantic search (Chroma + SQLite)", {}); - const chromaResults = await this.queryChroma(query2, 100); - logger.debug("SEARCH", "Chroma returned semantic matches", { matchCount: chromaResults.ids.length }); - if (chromaResults.ids.length > 0) { - const ninetyDaysAgo = Date.now() - SEARCH_CONSTANTS.RECENCY_WINDOW_MS; - const recentIds = chromaResults.ids.filter((_id, idx) => { - const meta2 = chromaResults.metadatas[idx]; - return meta2 && meta2.created_at_epoch > ninetyDaysAgo; - }); - logger.debug("SEARCH", "Results within 90-day window", { count: recentIds.length }); - if (recentIds.length > 0) { - const limit = options.limit || 20; - results = this.sessionStore.getObservationsByIds(recentIds, { orderBy: "date_desc", limit }); - logger.debug("SEARCH", "Hydrated observations from SQLite", { count: results.length }); - } - } - } - if (results.length === 0) { - return { - content: [{ - type: "text", - text: `No observations found matching "${query2}"` - }] - }; - } - const header = `Found ${results.length} observation(s) matching "${query2}" +${this.formatter.formatTableHeader()}`,o=i.map((a,c)=>this.formatter.formatObservationIndex(a,c));return{content:[{type:"text",text:s+` +`+o.join(` +`)}]}}async searchObservations(e){let r=this.normalizeParams(e),{query:n,...i}=r,s=[];if(this.chromaSync){y.debug("SEARCH","Using hybrid semantic search (Chroma + SQLite)",{});let c=await this.queryChroma(n,100);if(y.debug("SEARCH","Chroma returned semantic matches",{matchCount:c.ids.length}),c.ids.length>0){let u=Date.now()-zt.RECENCY_WINDOW_MS,l=c.ids.filter((d,p)=>{let m=c.metadatas[p];return m&&m.created_at_epoch>u});if(y.debug("SEARCH","Results within 90-day window",{count:l.length}),l.length>0){let d=i.limit||20;s=this.sessionStore.getObservationsByIds(l,{orderBy:"date_desc",limit:d}),y.debug("SEARCH","Hydrated observations from SQLite",{count:s.length})}}}if(s.length===0)return{content:[{type:"text",text:`No observations found matching "${n}"`}]};let o=`Found ${s.length} observation(s) matching "${n}" -${this.formatter.formatTableHeader()}`; - const formattedResults = results.map((obs, i) => this.formatter.formatObservationIndex(obs, i)); - return { - content: [{ - type: "text", - text: header + ` -` + formattedResults.join(` -`) - }] - }; - } - async searchSessions(args) { - const normalized = this.normalizeParams(args); - const { query: query2, ...options } = normalized; - let results = []; - if (this.chromaSync) { - logger.debug("SEARCH", "Using hybrid semantic search for sessions", {}); - const chromaResults = await this.queryChroma(query2, 100, { doc_type: "session_summary" }); - logger.debug("SEARCH", "Chroma returned semantic matches for sessions", { matchCount: chromaResults.ids.length }); - if (chromaResults.ids.length > 0) { - const ninetyDaysAgo = Date.now() - SEARCH_CONSTANTS.RECENCY_WINDOW_MS; - const recentIds = chromaResults.ids.filter((_id, idx) => { - const meta2 = chromaResults.metadatas[idx]; - return meta2 && meta2.created_at_epoch > ninetyDaysAgo; - }); - logger.debug("SEARCH", "Results within 90-day window", { count: recentIds.length }); - if (recentIds.length > 0) { - const limit = options.limit || 20; - results = this.sessionStore.getSessionSummariesByIds(recentIds, { orderBy: "date_desc", limit }); - logger.debug("SEARCH", "Hydrated sessions from SQLite", { count: results.length }); - } - } - } - if (results.length === 0) { - return { - content: [{ - type: "text", - text: `No sessions found matching "${query2}"` - }] - }; - } - const header = `Found ${results.length} session(s) matching "${query2}" +${this.formatter.formatTableHeader()}`,a=s.map((c,u)=>this.formatter.formatObservationIndex(c,u));return{content:[{type:"text",text:o+` +`+a.join(` +`)}]}}async searchSessions(e){let r=this.normalizeParams(e),{query:n,...i}=r,s=[];if(this.chromaSync){y.debug("SEARCH","Using hybrid semantic search for sessions",{});let c=await this.queryChroma(n,100,{doc_type:"session_summary"});if(y.debug("SEARCH","Chroma returned semantic matches for sessions",{matchCount:c.ids.length}),c.ids.length>0){let u=Date.now()-zt.RECENCY_WINDOW_MS,l=c.ids.filter((d,p)=>{let m=c.metadatas[p];return m&&m.created_at_epoch>u});if(y.debug("SEARCH","Results within 90-day window",{count:l.length}),l.length>0){let d=i.limit||20;s=this.sessionStore.getSessionSummariesByIds(l,{orderBy:"date_desc",limit:d}),y.debug("SEARCH","Hydrated sessions from SQLite",{count:s.length})}}}if(s.length===0)return{content:[{type:"text",text:`No sessions found matching "${n}"`}]};let o=`Found ${s.length} session(s) matching "${n}" -${this.formatter.formatTableHeader()}`; - const formattedResults = results.map((session, i) => this.formatter.formatSessionIndex(session, i)); - return { - content: [{ - type: "text", - text: header + ` -` + formattedResults.join(` -`) - }] - }; - } - async searchUserPrompts(args) { - const normalized = this.normalizeParams(args); - const { query: query2, ...options } = normalized; - let results = []; - if (this.chromaSync) { - logger.debug("SEARCH", "Using hybrid semantic search for user prompts", {}); - const chromaResults = await this.queryChroma(query2, 100, { doc_type: "user_prompt" }); - logger.debug("SEARCH", "Chroma returned semantic matches for prompts", { matchCount: chromaResults.ids.length }); - if (chromaResults.ids.length > 0) { - const ninetyDaysAgo = Date.now() - SEARCH_CONSTANTS.RECENCY_WINDOW_MS; - const recentIds = chromaResults.ids.filter((_id, idx) => { - const meta2 = chromaResults.metadatas[idx]; - return meta2 && meta2.created_at_epoch > ninetyDaysAgo; - }); - logger.debug("SEARCH", "Results within 90-day window", { count: recentIds.length }); - if (recentIds.length > 0) { - const limit = options.limit || 20; - results = this.sessionStore.getUserPromptsByIds(recentIds, { orderBy: "date_desc", limit }); - logger.debug("SEARCH", "Hydrated user prompts from SQLite", { count: results.length }); - } - } - } - if (results.length === 0) { - return { - content: [{ - type: "text", - text: query2 ? `No user prompts found matching "${query2}"` : "No user prompts found" - }] - }; - } - const header = `Found ${results.length} user prompt(s) matching "${query2}" +${this.formatter.formatTableHeader()}`,a=s.map((c,u)=>this.formatter.formatSessionIndex(c,u));return{content:[{type:"text",text:o+` +`+a.join(` +`)}]}}async searchUserPrompts(e){let r=this.normalizeParams(e),{query:n,...i}=r,s=[];if(this.chromaSync){y.debug("SEARCH","Using hybrid semantic search for user prompts",{});let c=await this.queryChroma(n,100,{doc_type:"user_prompt"});if(y.debug("SEARCH","Chroma returned semantic matches for prompts",{matchCount:c.ids.length}),c.ids.length>0){let u=Date.now()-zt.RECENCY_WINDOW_MS,l=c.ids.filter((d,p)=>{let m=c.metadatas[p];return m&&m.created_at_epoch>u});if(y.debug("SEARCH","Results within 90-day window",{count:l.length}),l.length>0){let d=i.limit||20;s=this.sessionStore.getUserPromptsByIds(l,{orderBy:"date_desc",limit:d}),y.debug("SEARCH","Hydrated user prompts from SQLite",{count:s.length})}}}if(s.length===0)return{content:[{type:"text",text:n?`No user prompts found matching "${n}"`:"No user prompts found"}]};let o=`Found ${s.length} user prompt(s) matching "${n}" -${this.formatter.formatTableHeader()}`; - const formattedResults = results.map((prompt, i) => this.formatter.formatUserPromptIndex(prompt, i)); - return { - content: [{ - type: "text", - text: header + ` -` + formattedResults.join(` -`) - }] - }; - } - async findByConcept(args) { - const normalized = this.normalizeParams(args); - const { concepts: concept, ...filters } = normalized; - let results = []; - if (this.chromaSync) { - logger.debug("SEARCH", "Using metadata-first + semantic ranking for concept search", {}); - const metadataResults = this.sessionSearch.findByConcept(concept, filters); - logger.debug("SEARCH", "Found observations with concept", { concept, count: metadataResults.length }); - if (metadataResults.length > 0) { - const ids = metadataResults.map((obs) => obs.id); - const chromaResults = await this.queryChroma(concept, Math.min(ids.length, 100)); - const rankedIds = []; - for (const chromaId of chromaResults.ids) { - if (ids.includes(chromaId) && !rankedIds.includes(chromaId)) { - rankedIds.push(chromaId); - } - } - logger.debug("SEARCH", "Chroma ranked results by semantic relevance", { count: rankedIds.length }); - if (rankedIds.length > 0) { - results = this.sessionStore.getObservationsByIds(rankedIds, { limit: filters.limit || 20 }); - results.sort((a, b) => rankedIds.indexOf(a.id) - rankedIds.indexOf(b.id)); - } - } - } - if (results.length === 0) { - logger.debug("SEARCH", "Using SQLite-only concept search", {}); - results = this.sessionSearch.findByConcept(concept, filters); - } - if (results.length === 0) { - return { - content: [{ - type: "text", - text: `No observations found with concept "${concept}"` - }] - }; - } - const header = `Found ${results.length} observation(s) with concept "${concept}" +${this.formatter.formatTableHeader()}`,a=s.map((c,u)=>this.formatter.formatUserPromptIndex(c,u));return{content:[{type:"text",text:o+` +`+a.join(` +`)}]}}async findByConcept(e){let r=this.normalizeParams(e),{concepts:n,...i}=r,s=[];if(this.chromaSync){y.debug("SEARCH","Using metadata-first + semantic ranking for concept search",{});let c=this.sessionSearch.findByConcept(n,i);if(y.debug("SEARCH","Found observations with concept",{concept:n,count:c.length}),c.length>0){let u=c.map(p=>p.id),l=await this.queryChroma(n,Math.min(u.length,100)),d=[];for(let p of l.ids)u.includes(p)&&!d.includes(p)&&d.push(p);y.debug("SEARCH","Chroma ranked results by semantic relevance",{count:d.length}),d.length>0&&(s=this.sessionStore.getObservationsByIds(d,{limit:i.limit||20}),s.sort((p,m)=>d.indexOf(p.id)-d.indexOf(m.id)))}}if(s.length===0&&(y.debug("SEARCH","Using SQLite-only concept search",{}),s=this.sessionSearch.findByConcept(n,i)),s.length===0)return{content:[{type:"text",text:`No observations found with concept "${n}"`}]};let o=`Found ${s.length} observation(s) with concept "${n}" -${this.formatter.formatTableHeader()}`; - const formattedResults = results.map((obs, i) => this.formatter.formatObservationIndex(obs, i)); - return { - content: [{ - type: "text", - text: header + ` -` + formattedResults.join(` -`) - }] - }; - } - async findByFile(args) { - const normalized = this.normalizeParams(args); - const { files: rawFilePath, ...filters } = normalized; - const filePath = Array.isArray(rawFilePath) ? rawFilePath[0] : rawFilePath; - let observations = []; - let sessions = []; - if (this.chromaSync) { - logger.debug("SEARCH", "Using metadata-first + semantic ranking for file search", {}); - const metadataResults = this.sessionSearch.findByFile(filePath, filters); - logger.debug("SEARCH", "Found results for file", { file: filePath, observations: metadataResults.observations.length, sessions: metadataResults.sessions.length }); - sessions = metadataResults.sessions; - if (metadataResults.observations.length > 0) { - const ids = metadataResults.observations.map((obs) => obs.id); - const chromaResults = await this.queryChroma(filePath, Math.min(ids.length, 100)); - const rankedIds = []; - for (const chromaId of chromaResults.ids) { - if (ids.includes(chromaId) && !rankedIds.includes(chromaId)) { - rankedIds.push(chromaId); - } - } - logger.debug("SEARCH", "Chroma ranked observations by semantic relevance", { count: rankedIds.length }); - if (rankedIds.length > 0) { - observations = this.sessionStore.getObservationsByIds(rankedIds, { limit: filters.limit || 20 }); - observations.sort((a, b) => rankedIds.indexOf(a.id) - rankedIds.indexOf(b.id)); - } - } - } - if (observations.length === 0 && sessions.length === 0) { - logger.debug("SEARCH", "Using SQLite-only file search", {}); - const results = this.sessionSearch.findByFile(filePath, filters); - observations = results.observations; - sessions = results.sessions; - } - const totalResults = observations.length + sessions.length; - if (totalResults === 0) { - return { - content: [{ - type: "text", - text: `No results found for file "${filePath}"` - }] - }; - } - const combined = [ - ...observations.map((obs) => ({ - type: "observation", - data: obs, - epoch: obs.created_at_epoch, - created_at: obs.created_at - })), - ...sessions.map((sess) => ({ - type: "session", - data: sess, - epoch: sess.created_at_epoch, - created_at: sess.created_at - })) - ]; - combined.sort((a, b) => b.epoch - a.epoch); - const resultsByDate = groupByDate(combined, (item) => item.created_at); - const lines = []; - lines.push(`Found ${totalResults} result(s) for file "${filePath}"`); - lines.push(""); - for (const [day, dayResults] of resultsByDate) { - lines.push(`### ${day}`); - lines.push(""); - lines.push(this.formatter.formatTableHeader()); - for (const result of dayResults) { - if (result.type === "observation") { - lines.push(this.formatter.formatObservationIndex(result.data, 0)); - } else { - lines.push(this.formatter.formatSessionIndex(result.data, 0)); - } - } - lines.push(""); - } - return { - content: [{ - type: "text", - text: lines.join(` -`) - }] - }; - } - async findByType(args) { - const normalized = this.normalizeParams(args); - const { type, ...filters } = normalized; - const typeStr = Array.isArray(type) ? type.join(", ") : type; - let results = []; - if (this.chromaSync) { - logger.debug("SEARCH", "Using metadata-first + semantic ranking for type search", {}); - const metadataResults = this.sessionSearch.findByType(type, filters); - logger.debug("SEARCH", "Found observations with type", { type: typeStr, count: metadataResults.length }); - if (metadataResults.length > 0) { - const ids = metadataResults.map((obs) => obs.id); - const chromaResults = await this.queryChroma(typeStr, Math.min(ids.length, 100)); - const rankedIds = []; - for (const chromaId of chromaResults.ids) { - if (ids.includes(chromaId) && !rankedIds.includes(chromaId)) { - rankedIds.push(chromaId); - } - } - logger.debug("SEARCH", "Chroma ranked results by semantic relevance", { count: rankedIds.length }); - if (rankedIds.length > 0) { - results = this.sessionStore.getObservationsByIds(rankedIds, { limit: filters.limit || 20 }); - results.sort((a, b) => rankedIds.indexOf(a.id) - rankedIds.indexOf(b.id)); - } - } - } - if (results.length === 0) { - logger.debug("SEARCH", "Using SQLite-only type search", {}); - results = this.sessionSearch.findByType(type, filters); - } - if (results.length === 0) { - return { - content: [{ - type: "text", - text: `No observations found with type "${typeStr}"` - }] - }; - } - const header = `Found ${results.length} observation(s) with type "${typeStr}" +${this.formatter.formatTableHeader()}`,a=s.map((c,u)=>this.formatter.formatObservationIndex(c,u));return{content:[{type:"text",text:o+` +`+a.join(` +`)}]}}async findByFile(e){let r=this.normalizeParams(e),{files:n,...i}=r,s=Array.isArray(n)?n[0]:n,o=[],a=[];if(this.chromaSync){y.debug("SEARCH","Using metadata-first + semantic ranking for file search",{});let p=this.sessionSearch.findByFile(s,i);if(y.debug("SEARCH","Found results for file",{file:s,observations:p.observations.length,sessions:p.sessions.length}),a=p.sessions,p.observations.length>0){let m=p.observations.map(h=>h.id),f=await this.queryChroma(s,Math.min(m.length,100)),g=[];for(let h of f.ids)m.includes(h)&&!g.includes(h)&&g.push(h);y.debug("SEARCH","Chroma ranked observations by semantic relevance",{count:g.length}),g.length>0&&(o=this.sessionStore.getObservationsByIds(g,{limit:i.limit||20}),o.sort((h,v)=>g.indexOf(h.id)-g.indexOf(v.id)))}}if(o.length===0&&a.length===0){y.debug("SEARCH","Using SQLite-only file search",{});let p=this.sessionSearch.findByFile(s,i);o=p.observations,a=p.sessions}let c=o.length+a.length;if(c===0)return{content:[{type:"text",text:`No results found for file "${s}"`}]};let u=[...o.map(p=>({type:"observation",data:p,epoch:p.created_at_epoch,created_at:p.created_at})),...a.map(p=>({type:"session",data:p,epoch:p.created_at_epoch,created_at:p.created_at}))];u.sort((p,m)=>m.epoch-p.epoch);let l=is(u,p=>p.created_at),d=[];d.push(`Found ${c} result(s) for file "${s}"`),d.push("");for(let[p,m]of l){d.push(`### ${p}`),d.push(""),d.push(this.formatter.formatTableHeader());for(let f of m)f.type==="observation"?d.push(this.formatter.formatObservationIndex(f.data,0)):d.push(this.formatter.formatSessionIndex(f.data,0));d.push("")}return{content:[{type:"text",text:d.join(` +`)}]}}async findByType(e){let r=this.normalizeParams(e),{type:n,...i}=r,s=Array.isArray(n)?n.join(", "):n,o=[];if(this.chromaSync){y.debug("SEARCH","Using metadata-first + semantic ranking for type search",{});let u=this.sessionSearch.findByType(n,i);if(y.debug("SEARCH","Found observations with type",{type:s,count:u.length}),u.length>0){let l=u.map(m=>m.id),d=await this.queryChroma(s,Math.min(l.length,100)),p=[];for(let m of d.ids)l.includes(m)&&!p.includes(m)&&p.push(m);y.debug("SEARCH","Chroma ranked results by semantic relevance",{count:p.length}),p.length>0&&(o=this.sessionStore.getObservationsByIds(p,{limit:i.limit||20}),o.sort((m,f)=>p.indexOf(m.id)-p.indexOf(f.id)))}}if(o.length===0&&(y.debug("SEARCH","Using SQLite-only type search",{}),o=this.sessionSearch.findByType(n,i)),o.length===0)return{content:[{type:"text",text:`No observations found with type "${s}"`}]};let a=`Found ${o.length} observation(s) with type "${s}" -${this.formatter.formatTableHeader()}`; - const formattedResults = results.map((obs, i) => this.formatter.formatObservationIndex(obs, i)); - return { - content: [{ - type: "text", - text: header + ` -` + formattedResults.join(` -`) - }] - }; - } - async getRecentContext(args) { - const project = args.project || basename3(process.cwd()); - const limit = args.limit || 3; - const sessions = this.sessionStore.getRecentSessionsWithStatus(project, limit); - if (sessions.length === 0) { - return { - content: [{ - type: "text", - text: `# Recent Session Context +${this.formatter.formatTableHeader()}`,c=o.map((u,l)=>this.formatter.formatObservationIndex(u,l));return{content:[{type:"text",text:a+` +`+c.join(` +`)}]}}async getRecentContext(e){let r=e.project||(0,lq.basename)(process.cwd()),n=e.limit||3,i=this.sessionStore.getRecentSessionsWithStatus(r,n);if(i.length===0)return{content:[{type:"text",text:`# Recent Session Context -No previous sessions found for project "${project}".` - }] - }; - } - const lines = []; - lines.push("# Recent Session Context"); - lines.push(""); - lines.push(`Showing last ${sessions.length} session(s) for **${project}**:`); - lines.push(""); - for (const session of sessions) { - if (!session.memory_session_id) - continue; - lines.push("---"); - lines.push(""); - if (session.has_summary) { - const summary = this.sessionStore.getSummaryForSession(session.memory_session_id); - if (summary) { - const promptLabel = summary.prompt_number ? ` (Prompt #${summary.prompt_number})` : ""; - lines.push(`**Summary${promptLabel}**`); - lines.push(""); - if (summary.request) - lines.push(`**Request:** ${summary.request}`); - if (summary.completed) - lines.push(`**Completed:** ${summary.completed}`); - if (summary.learned) - lines.push(`**Learned:** ${summary.learned}`); - if (summary.next_steps) - lines.push(`**Next Steps:** ${summary.next_steps}`); - if (summary.files_read) { - try { - const filesRead = JSON.parse(summary.files_read); - if (Array.isArray(filesRead) && filesRead.length > 0) { - lines.push(`**Files Read:** ${filesRead.join(", ")}`); - } - } catch (error3) { - logger.debug("WORKER", "files_read is plain string, using as-is", {}, error3); - if (summary.files_read.trim()) { - lines.push(`**Files Read:** ${summary.files_read}`); - } - } - } - if (summary.files_edited) { - try { - const filesEdited = JSON.parse(summary.files_edited); - if (Array.isArray(filesEdited) && filesEdited.length > 0) { - lines.push(`**Files Edited:** ${filesEdited.join(", ")}`); - } - } catch (error3) { - logger.debug("WORKER", "files_edited is plain string, using as-is", {}, error3); - if (summary.files_edited.trim()) { - lines.push(`**Files Edited:** ${summary.files_edited}`); - } - } - } - const date5 = new Date(summary.created_at).toLocaleString(); - lines.push(`**Date:** ${date5}`); - } - } else if (session.status === "active") { - lines.push("**In Progress**"); - lines.push(""); - if (session.user_prompt) { - lines.push(`**Request:** ${session.user_prompt}`); - } - const observations = this.sessionStore.getObservationsForSession(session.memory_session_id); - if (observations.length > 0) { - lines.push(""); - lines.push(`**Observations (${observations.length}):**`); - for (const obs of observations) { - lines.push(`- ${obs.title}`); - } - } else { - lines.push(""); - lines.push("*No observations yet*"); - } - lines.push(""); - lines.push("**Status:** Active - summary pending"); - const date5 = new Date(session.started_at).toLocaleString(); - lines.push(`**Date:** ${date5}`); - } else { - lines.push(`**${session.status.charAt(0).toUpperCase() + session.status.slice(1)}**`); - lines.push(""); - if (session.user_prompt) { - lines.push(`**Request:** ${session.user_prompt}`); - } - lines.push(""); - lines.push(`**Status:** ${session.status} - no summary available`); - const date5 = new Date(session.started_at).toLocaleString(); - lines.push(`**Date:** ${date5}`); - } - lines.push(""); - } - return { - content: [{ - type: "text", - text: lines.join(` -`) - }] - }; - } - async getContextTimeline(args) { - const { anchor, depth_before = 10, depth_after = 10, project } = args; - const cwd2 = process.cwd(); - let anchorEpoch; - let anchorId = anchor; - let timelineData; - if (typeof anchor === "number") { - const obs = this.sessionStore.getObservationById(anchor); - if (!obs) { - return { - content: [{ - type: "text", - text: `Observation #${anchor} not found` - }], - isError: true - }; - } - anchorEpoch = obs.created_at_epoch; - timelineData = this.sessionStore.getTimelineAroundObservation(anchor, anchorEpoch, depth_before, depth_after, project); - } else if (typeof anchor === "string") { - if (anchor.startsWith("S") || anchor.startsWith("#S")) { - const sessionId = anchor.replace(/^#?S/, ""); - const sessionNum = parseInt(sessionId, 10); - const sessions = this.sessionStore.getSessionSummariesByIds([sessionNum]); - if (sessions.length === 0) { - return { - content: [{ - type: "text", - text: `Session #${sessionNum} not found` - }], - isError: true - }; - } - anchorEpoch = sessions[0].created_at_epoch; - anchorId = `S${sessionNum}`; - timelineData = this.sessionStore.getTimelineAroundTimestamp(anchorEpoch, depth_before, depth_after, project); - } else { - const date5 = new Date(anchor); - if (isNaN(date5.getTime())) { - return { - content: [{ - type: "text", - text: `Invalid timestamp: ${anchor}` - }], - isError: true - }; - } - anchorEpoch = date5.getTime(); - timelineData = this.sessionStore.getTimelineAroundTimestamp(anchorEpoch, depth_before, depth_after, project); - } - } else { - return { - content: [{ - type: "text", - text: 'Invalid anchor: must be observation ID (number), session ID (e.g., "S123"), or ISO timestamp' - }], - isError: true - }; - } - const items = [ - ...timelineData.observations.map((obs) => ({ type: "observation", data: obs, epoch: obs.created_at_epoch })), - ...timelineData.sessions.map((sess) => ({ type: "session", data: sess, epoch: sess.created_at_epoch })), - ...timelineData.prompts.map((prompt) => ({ type: "prompt", data: prompt, epoch: prompt.created_at_epoch })) - ]; - items.sort((a, b) => a.epoch - b.epoch); - const filteredItems = this.timelineService.filterByDepth(items, anchorId, anchorEpoch, depth_before, depth_after); - if (!filteredItems || filteredItems.length === 0) { - const anchorDate = new Date(anchorEpoch).toLocaleString(); - return { - content: [{ - type: "text", - text: `No context found around ${anchorDate} (${depth_before} records before, ${depth_after} records after)` - }] - }; - } - const lines = []; - lines.push(`# Timeline around anchor: ${anchorId}`); - lines.push(`**Window:** ${depth_before} records before -> ${depth_after} records after | **Items:** ${filteredItems?.length ?? 0}`); - lines.push(""); - const dayMap = new Map; - for (const item of filteredItems) { - const day = formatDate(item.epoch); - if (!dayMap.has(day)) { - dayMap.set(day, []); - } - dayMap.get(day).push(item); - } - const sortedDays = Array.from(dayMap.entries()).sort((a, b) => { - const aDate = new Date(a[0]).getTime(); - const bDate = new Date(b[0]).getTime(); - return aDate - bDate; - }); - for (const [day, dayItems] of sortedDays) { - lines.push(`### ${day}`); - lines.push(""); - let currentFile = null; - let lastTime = ""; - let tableOpen = false; - for (const item of dayItems) { - const isAnchor = typeof anchorId === "number" && item.type === "observation" && item.data.id === anchorId || typeof anchorId === "string" && anchorId.startsWith("S") && item.type === "session" && `S${item.data.id}` === anchorId; - if (item.type === "session") { - if (tableOpen) { - lines.push(""); - tableOpen = false; - currentFile = null; - lastTime = ""; - } - const sess = item.data; - const title = sess.request || "Session summary"; - const marker = isAnchor ? " <- **ANCHOR**" : ""; - lines.push(`**\uD83C\uDFAF #S${sess.id}** ${title} (${formatDateTime(item.epoch)})${marker}`); - lines.push(""); - } else if (item.type === "prompt") { - if (tableOpen) { - lines.push(""); - tableOpen = false; - currentFile = null; - lastTime = ""; - } - const prompt = item.data; - const truncated = prompt.prompt_text.length > 100 ? prompt.prompt_text.substring(0, 100) + "..." : prompt.prompt_text; - lines.push(`**\uD83D\uDCAC User Prompt #${prompt.prompt_number}** (${formatDateTime(item.epoch)})`); - lines.push(`> ${truncated}`); - lines.push(""); - } else if (item.type === "observation") { - const obs = item.data; - const file = extractFirstFile(obs.files_modified, cwd2, obs.files_read); - if (file !== currentFile) { - if (tableOpen) { - lines.push(""); - } - lines.push(`**${file}**`); - lines.push(`| ID | Time | T | Title | Tokens |`); - lines.push(`|----|------|---|-------|--------|`); - currentFile = file; - tableOpen = true; - lastTime = ""; - } - const icon = ModeManager.getInstance().getTypeIcon(obs.type); - const time4 = formatTime(item.epoch); - const title = obs.title || "Untitled"; - const tokens = estimateTokens(obs.narrative); - const showTime = time4 !== lastTime; - const timeDisplay = showTime ? time4 : '"'; - lastTime = time4; - const anchorMarker = isAnchor ? " <- **ANCHOR**" : ""; - lines.push(`| #${obs.id} | ${timeDisplay} | ${icon} | ${title}${anchorMarker} | ~${tokens} |`); - } - } - if (tableOpen) { - lines.push(""); - } - } - return { - content: [{ - type: "text", - text: lines.join(` -`) - }] - }; - } - async getTimelineByQuery(args) { - const { query: query2, mode = "auto", depth_before = 10, depth_after = 10, limit = 5, project } = args; - const cwd2 = process.cwd(); - let results = []; - if (this.chromaSync) { - logger.debug("SEARCH", "Using hybrid semantic search for timeline query", {}); - const chromaResults = await this.queryChroma(query2, 100); - logger.debug("SEARCH", "Chroma returned semantic matches for timeline", { matchCount: chromaResults.ids.length }); - if (chromaResults.ids.length > 0) { - const ninetyDaysAgo = Date.now() - SEARCH_CONSTANTS.RECENCY_WINDOW_MS; - const recentIds = chromaResults.ids.filter((_id, idx) => { - const meta2 = chromaResults.metadatas[idx]; - return meta2 && meta2.created_at_epoch > ninetyDaysAgo; - }); - logger.debug("SEARCH", "Results within 90-day window", { count: recentIds.length }); - if (recentIds.length > 0) { - results = this.sessionStore.getObservationsByIds(recentIds, { orderBy: "date_desc", limit: mode === "auto" ? 1 : limit }); - logger.debug("SEARCH", "Hydrated observations from SQLite", { count: results.length }); - } - } - } - if (results.length === 0) { - return { - content: [{ - type: "text", - text: `No observations found matching "${query2}". Try a different search query.` - }] - }; - } - if (mode === "interactive") { - const lines = []; - lines.push(`# Timeline Anchor Search Results`); - lines.push(""); - lines.push(`Found ${results.length} observation(s) matching "${query2}"`); - lines.push(""); - lines.push(`To get timeline context around any of these observations, use the \`get_context_timeline\` tool with the observation ID as the anchor.`); - lines.push(""); - lines.push(`**Top ${results.length} matches:**`); - lines.push(""); - for (let i = 0;i < results.length; i++) { - const obs = results[i]; - const title = obs.title || `Observation #${obs.id}`; - const date5 = new Date(obs.created_at_epoch).toLocaleString(); - const type = obs.type ? `[${obs.type}]` : ""; - lines.push(`${i + 1}. **${type} ${title}**`); - lines.push(` - ID: ${obs.id}`); - lines.push(` - Date: ${date5}`); - if (obs.subtitle) { - lines.push(` - ${obs.subtitle}`); - } - lines.push(""); - } - return { - content: [{ - type: "text", - text: lines.join(` -`) - }] - }; - } else { - const topResult = results[0]; - logger.debug("SEARCH", "Auto mode: Using observation as timeline anchor", { observationId: topResult.id }); - const timelineData = this.sessionStore.getTimelineAroundObservation(topResult.id, topResult.created_at_epoch, depth_before, depth_after, project); - const items = [ - ...(timelineData.observations || []).map((obs) => ({ type: "observation", data: obs, epoch: obs.created_at_epoch })), - ...(timelineData.sessions || []).map((sess) => ({ type: "session", data: sess, epoch: sess.created_at_epoch })), - ...(timelineData.prompts || []).map((prompt) => ({ type: "prompt", data: prompt, epoch: prompt.created_at_epoch })) - ]; - items.sort((a, b) => a.epoch - b.epoch); - const filteredItems = this.timelineService.filterByDepth(items, topResult.id, 0, depth_before, depth_after); - if (!filteredItems || filteredItems.length === 0) { - return { - content: [{ - type: "text", - text: `Found observation #${topResult.id} matching "${query2}", but no timeline context available (${depth_before} records before, ${depth_after} records after).` - }] - }; - } - const lines = []; - lines.push(`# Timeline for query: "${query2}"`); - lines.push(`**Anchor:** Observation #${topResult.id} - ${topResult.title || "Untitled"}`); - lines.push(`**Window:** ${depth_before} records before -> ${depth_after} records after | **Items:** ${filteredItems?.length ?? 0}`); - lines.push(""); - const dayMap = new Map; - for (const item of filteredItems) { - const day = formatDate(item.epoch); - if (!dayMap.has(day)) { - dayMap.set(day, []); - } - dayMap.get(day).push(item); - } - const sortedDays = Array.from(dayMap.entries()).sort((a, b) => { - const aDate = new Date(a[0]).getTime(); - const bDate = new Date(b[0]).getTime(); - return aDate - bDate; - }); - for (const [day, dayItems] of sortedDays) { - lines.push(`### ${day}`); - lines.push(""); - let currentFile = null; - let lastTime = ""; - let tableOpen = false; - for (const item of dayItems) { - const isAnchor = item.type === "observation" && item.data.id === topResult.id; - if (item.type === "session") { - if (tableOpen) { - lines.push(""); - tableOpen = false; - currentFile = null; - lastTime = ""; - } - const sess = item.data; - const title = sess.request || "Session summary"; - lines.push(`**\uD83C\uDFAF #S${sess.id}** ${title} (${formatDateTime(item.epoch)})`); - lines.push(""); - } else if (item.type === "prompt") { - if (tableOpen) { - lines.push(""); - tableOpen = false; - currentFile = null; - lastTime = ""; - } - const prompt = item.data; - const truncated = prompt.prompt_text.length > 100 ? prompt.prompt_text.substring(0, 100) + "..." : prompt.prompt_text; - lines.push(`**\uD83D\uDCAC User Prompt #${prompt.prompt_number}** (${formatDateTime(item.epoch)})`); - lines.push(`> ${truncated}`); - lines.push(""); - } else if (item.type === "observation") { - const obs = item.data; - const file = extractFirstFile(obs.files_modified, cwd2, obs.files_read); - if (file !== currentFile) { - if (tableOpen) { - lines.push(""); - } - lines.push(`**${file}**`); - lines.push(`| ID | Time | T | Title | Tokens |`); - lines.push(`|----|------|---|-------|--------|`); - currentFile = file; - tableOpen = true; - lastTime = ""; - } - const icon = ModeManager.getInstance().getTypeIcon(obs.type); - const time4 = formatTime(item.epoch); - const title = obs.title || "Untitled"; - const tokens = estimateTokens(obs.narrative); - const showTime = time4 !== lastTime; - const timeDisplay = showTime ? time4 : '"'; - lastTime = time4; - const anchorMarker = isAnchor ? " <- **ANCHOR**" : ""; - lines.push(`| #${obs.id} | ${timeDisplay} | ${icon} | ${title}${anchorMarker} | ~${tokens} |`); - } - } - if (tableOpen) { - lines.push(""); - } - } - return { - content: [{ - type: "text", - text: lines.join(` -`) - }] - }; - } - } -} - -// src/services/worker/FormattingService.ts -init_ModeManager(); -var CHARS_PER_TOKEN_ESTIMATE3 = 4; - -class FormattingService { - formatSearchTips() { - return ` +No previous sessions found for project "${r}".`}]};let s=[];s.push("# Recent Session Context"),s.push(""),s.push(`Showing last ${i.length} session(s) for **${r}**:`),s.push("");for(let o of i)if(o.memory_session_id){if(s.push("---"),s.push(""),o.has_summary){let a=this.sessionStore.getSummaryForSession(o.memory_session_id);if(a){let c=a.prompt_number?` (Prompt #${a.prompt_number})`:"";if(s.push(`**Summary${c}**`),s.push(""),a.request&&s.push(`**Request:** ${a.request}`),a.completed&&s.push(`**Completed:** ${a.completed}`),a.learned&&s.push(`**Learned:** ${a.learned}`),a.next_steps&&s.push(`**Next Steps:** ${a.next_steps}`),a.files_read)try{let l=JSON.parse(a.files_read);Array.isArray(l)&&l.length>0&&s.push(`**Files Read:** ${l.join(", ")}`)}catch(l){y.debug("WORKER","files_read is plain string, using as-is",{},l),a.files_read.trim()&&s.push(`**Files Read:** ${a.files_read}`)}if(a.files_edited)try{let l=JSON.parse(a.files_edited);Array.isArray(l)&&l.length>0&&s.push(`**Files Edited:** ${l.join(", ")}`)}catch(l){y.debug("WORKER","files_edited is plain string, using as-is",{},l),a.files_edited.trim()&&s.push(`**Files Edited:** ${a.files_edited}`)}let u=new Date(a.created_at).toLocaleString();s.push(`**Date:** ${u}`)}}else if(o.status==="active"){s.push("**In Progress**"),s.push(""),o.user_prompt&&s.push(`**Request:** ${o.user_prompt}`);let a=this.sessionStore.getObservationsForSession(o.memory_session_id);if(a.length>0){s.push(""),s.push(`**Observations (${a.length}):**`);for(let u of a)s.push(`- ${u.title}`)}else s.push(""),s.push("*No observations yet*");s.push(""),s.push("**Status:** Active - summary pending");let c=new Date(o.started_at).toLocaleString();s.push(`**Date:** ${c}`)}else{s.push(`**${o.status.charAt(0).toUpperCase()+o.status.slice(1)}**`),s.push(""),o.user_prompt&&s.push(`**Request:** ${o.user_prompt}`),s.push(""),s.push(`**Status:** ${o.status} - no summary available`);let a=new Date(o.started_at).toLocaleString();s.push(`**Date:** ${a}`)}s.push("")}return{content:[{type:"text",text:s.join(` +`)}]}}async getContextTimeline(e){let{anchor:r,depth_before:n=10,depth_after:i=10,project:s}=e,o=process.cwd(),a,c=r,u;if(typeof r=="number"){let g=this.sessionStore.getObservationById(r);if(!g)return{content:[{type:"text",text:`Observation #${r} not found`}],isError:!0};a=g.created_at_epoch,u=this.sessionStore.getTimelineAroundObservation(r,a,n,i,s)}else if(typeof r=="string")if(r.startsWith("S")||r.startsWith("#S")){let g=r.replace(/^#?S/,""),h=parseInt(g,10),v=this.sessionStore.getSessionSummariesByIds([h]);if(v.length===0)return{content:[{type:"text",text:`Session #${h} not found`}],isError:!0};a=v[0].created_at_epoch,c=`S${h}`,u=this.sessionStore.getTimelineAroundTimestamp(a,n,i,s)}else{let g=new Date(r);if(isNaN(g.getTime()))return{content:[{type:"text",text:`Invalid timestamp: ${r}`}],isError:!0};a=g.getTime(),u=this.sessionStore.getTimelineAroundTimestamp(a,n,i,s)}else return{content:[{type:"text",text:'Invalid anchor: must be observation ID (number), session ID (e.g., "S123"), or ISO timestamp'}],isError:!0};let l=[...u.observations.map(g=>({type:"observation",data:g,epoch:g.created_at_epoch})),...u.sessions.map(g=>({type:"session",data:g,epoch:g.created_at_epoch})),...u.prompts.map(g=>({type:"prompt",data:g,epoch:g.created_at_epoch}))];l.sort((g,h)=>g.epoch-h.epoch);let d=this.timelineService.filterByDepth(l,c,a,n,i);if(!d||d.length===0)return{content:[{type:"text",text:`No context found around ${new Date(a).toLocaleString()} (${n} records before, ${i} records after)`}]};let p=[];p.push(`# Timeline around anchor: ${c}`),p.push(`**Window:** ${n} records before -> ${i} records after | **Items:** ${d?.length??0}`),p.push("");let m=new Map;for(let g of d){let h=ns(g.epoch);m.has(h)||m.set(h,[]),m.get(h).push(g)}let f=Array.from(m.entries()).sort((g,h)=>{let v=new Date(g[0]).getTime(),x=new Date(h[0]).getTime();return v-x});for(let[g,h]of f){p.push(`### ${g}`),p.push("");let v=null,x="",b=!1;for(let _ of h){let S=typeof c=="number"&&_.type==="observation"&&_.data.id===c||typeof c=="string"&&c.startsWith("S")&&_.type==="session"&&`S${_.data.id}`===c;if(_.type==="session"){b&&(p.push(""),b=!1,v=null,x="");let w=_.data,E=w.request||"Session summary",$=S?" <- **ANCHOR**":"";p.push(`**\u{1F3AF} #S${w.id}** ${E} (${_n(_.epoch)})${$}`),p.push("")}else if(_.type==="prompt"){b&&(p.push(""),b=!1,v=null,x="");let w=_.data,E=w.prompt_text.length>100?w.prompt_text.substring(0,100)+"...":w.prompt_text;p.push(`**\u{1F4AC} User Prompt #${w.prompt_number}** (${_n(_.epoch)})`),p.push(`> ${E}`),p.push("")}else if(_.type==="observation"){let w=_.data,E=ei(w.files_modified,o,w.files_read);E!==v&&(b&&p.push(""),p.push(`**${E}**`),p.push("| ID | Time | T | Title | Tokens |"),p.push("|----|------|---|-------|--------|"),v=E,b=!0,x="");let $=He.getInstance().getTypeIcon(w.type),R=lr(_.epoch),A=w.title||"Untitled",N=Rc(w.narrative),W=R!==x?R:'"';x=R;let j=S?" <- **ANCHOR**":"";p.push(`| #${w.id} | ${W} | ${$} | ${A}${j} | ~${N} |`)}}b&&p.push("")}return{content:[{type:"text",text:p.join(` +`)}]}}async getTimelineByQuery(e){let{query:r,mode:n="auto",depth_before:i=10,depth_after:s=10,limit:o=5,project:a}=e,c=process.cwd(),u=[];if(this.chromaSync){y.debug("SEARCH","Using hybrid semantic search for timeline query",{});let l=await this.queryChroma(r,100);if(y.debug("SEARCH","Chroma returned semantic matches for timeline",{matchCount:l.ids.length}),l.ids.length>0){let d=Date.now()-zt.RECENCY_WINDOW_MS,p=l.ids.filter((m,f)=>{let g=l.metadatas[f];return g&&g.created_at_epoch>d});y.debug("SEARCH","Results within 90-day window",{count:p.length}),p.length>0&&(u=this.sessionStore.getObservationsByIds(p,{orderBy:"date_desc",limit:n==="auto"?1:o}),y.debug("SEARCH","Hydrated observations from SQLite",{count:u.length}))}}if(u.length===0)return{content:[{type:"text",text:`No observations found matching "${r}". Try a different search query.`}]};if(n==="interactive"){let l=[];l.push("# Timeline Anchor Search Results"),l.push(""),l.push(`Found ${u.length} observation(s) matching "${r}"`),l.push(""),l.push("To get timeline context around any of these observations, use the `get_context_timeline` tool with the observation ID as the anchor."),l.push(""),l.push(`**Top ${u.length} matches:**`),l.push("");for(let d=0;d({type:"observation",data:v,epoch:v.created_at_epoch})),...(d.sessions||[]).map(v=>({type:"session",data:v,epoch:v.created_at_epoch})),...(d.prompts||[]).map(v=>({type:"prompt",data:v,epoch:v.created_at_epoch}))];p.sort((v,x)=>v.epoch-x.epoch);let m=this.timelineService.filterByDepth(p,l.id,0,i,s);if(!m||m.length===0)return{content:[{type:"text",text:`Found observation #${l.id} matching "${r}", but no timeline context available (${i} records before, ${s} records after).`}]};let f=[];f.push(`# Timeline for query: "${r}"`),f.push(`**Anchor:** Observation #${l.id} - ${l.title||"Untitled"}`),f.push(`**Window:** ${i} records before -> ${s} records after | **Items:** ${m?.length??0}`),f.push("");let g=new Map;for(let v of m){let x=ns(v.epoch);g.has(x)||g.set(x,[]),g.get(x).push(v)}let h=Array.from(g.entries()).sort((v,x)=>{let b=new Date(v[0]).getTime(),_=new Date(x[0]).getTime();return b-_});for(let[v,x]of h){f.push(`### ${v}`),f.push("");let b=null,_="",S=!1;for(let w of x){let E=w.type==="observation"&&w.data.id===l.id;if(w.type==="session"){S&&(f.push(""),S=!1,b=null,_="");let $=w.data,R=$.request||"Session summary";f.push(`**\u{1F3AF} #S${$.id}** ${R} (${_n(w.epoch)})`),f.push("")}else if(w.type==="prompt"){S&&(f.push(""),S=!1,b=null,_="");let $=w.data,R=$.prompt_text.length>100?$.prompt_text.substring(0,100)+"...":$.prompt_text;f.push(`**\u{1F4AC} User Prompt #${$.prompt_number}** (${_n(w.epoch)})`),f.push(`> ${R}`),f.push("")}else if(w.type==="observation"){let $=w.data,R=ei($.files_modified,c,$.files_read);R!==b&&(S&&f.push(""),f.push(`**${R}**`),f.push("| ID | Time | T | Title | Tokens |"),f.push("|----|------|---|-------|--------|"),b=R,S=!0,_="");let A=He.getInstance().getTypeIcon($.type),N=lr(w.epoch),U=$.title||"Untitled",W=Rc($.narrative),ae=N!==_?N:'"';_=N;let Ne=E?" <- **ANCHOR**":"";f.push(`| #${$.id} | ${ae} | ${A} | ${U}${Ne} | ~${W} |`)}}S&&f.push("")}return{content:[{type:"text",text:f.join(` +`)}]}}}};Br();var Xhe=4,Kg=class{formatSearchTips(){return` --- -\uD83D\uDCA1 Search Strategy: +\u{1F4A1} Search Strategy: 1. Search with index to see titles, dates, IDs 2. Use timeline to get context around interesting results 3. Batch fetch full details: get_observations(ids=[...]) Tips: -• Filter by type: obs_type="bugfix,feature" -• Filter by date: dateStart="2025-01-01" -• Sort: orderBy="date_desc" or "date_asc"`; - } - formatTime(epoch) { - return new Date(epoch).toLocaleString("en-US", { - hour: "numeric", - minute: "2-digit", - hour12: true - }); - } - estimateReadTokens(obs) { - const size = (obs.title?.length || 0) + (obs.subtitle?.length || 0) + (obs.narrative?.length || 0) + (obs.facts?.length || 0); - return Math.ceil(size / CHARS_PER_TOKEN_ESTIMATE3); - } - formatObservationIndex(obs, _index) { - const id = `#${obs.id}`; - const time4 = this.formatTime(obs.created_at_epoch); - const icon = ModeManager.getInstance().getTypeIcon(obs.type); - const title = obs.title || "Untitled"; - const readTokens = this.estimateReadTokens(obs); - const workEmoji = ModeManager.getInstance().getWorkEmoji(obs.type); - const workTokens = obs.discovery_tokens || 0; - const workDisplay = workTokens > 0 ? `${workEmoji} ${workTokens}` : "-"; - return `| ${id} | ${time4} | ${icon} | ${title} | ~${readTokens} | ${workDisplay} |`; - } - formatSessionIndex(session, _index) { - const id = `#S${session.id}`; - const time4 = this.formatTime(session.created_at_epoch); - const icon = "\uD83C\uDFAF"; - const title = session.request || `Session ${session.memory_session_id?.substring(0, 8) || "unknown"}`; - return `| ${id} | ${time4} | ${icon} | ${title} | - | - |`; - } - formatUserPromptIndex(prompt, _index) { - const id = `#P${prompt.id}`; - const time4 = this.formatTime(prompt.created_at_epoch); - const icon = "\uD83D\uDCAC"; - const title = prompt.prompt_text.length > 60 ? prompt.prompt_text.substring(0, 57) + "..." : prompt.prompt_text; - return `| ${id} | ${time4} | ${icon} | ${title} | - | - |`; - } - formatTableHeader() { - return `| ID | Time | T | Title | Read | Work | -|-----|------|---|-------|------|------|`; - } - formatSearchTableHeader() { - return `| ID | Time | T | Title | Read | -|----|------|---|-------|------|`; - } - formatObservationSearchRow(obs, lastTime) { - const id = `#${obs.id}`; - const time4 = this.formatTime(obs.created_at_epoch); - const icon = ModeManager.getInstance().getTypeIcon(obs.type); - const title = obs.title || "Untitled"; - const readTokens = this.estimateReadTokens(obs); - const timeDisplay = time4 === lastTime ? "″" : time4; - return { - row: `| ${id} | ${timeDisplay} | ${icon} | ${title} | ~${readTokens} |`, - time: time4 - }; - } - formatSessionSearchRow(session, lastTime) { - const id = `#S${session.id}`; - const time4 = this.formatTime(session.created_at_epoch); - const icon = "\uD83C\uDFAF"; - const title = session.request || `Session ${session.memory_session_id?.substring(0, 8) || "unknown"}`; - const timeDisplay = time4 === lastTime ? "″" : time4; - return { - row: `| ${id} | ${timeDisplay} | ${icon} | ${title} | - |`, - time: time4 - }; - } - formatUserPromptSearchRow(prompt, lastTime) { - const id = `#P${prompt.id}`; - const time4 = this.formatTime(prompt.created_at_epoch); - const icon = "\uD83D\uDCAC"; - const title = prompt.prompt_text.length > 60 ? prompt.prompt_text.substring(0, 57) + "..." : prompt.prompt_text; - const timeDisplay = time4 === lastTime ? "″" : time4; - return { - row: `| ${id} | ${timeDisplay} | ${icon} | ${title} | - |`, - time: time4 - }; - } -} - -// src/services/worker/TimelineService.ts -init_ModeManager(); - -class TimelineService { - buildTimeline(data) { - const items = [ - ...data.observations.map((obs) => ({ type: "observation", data: obs, epoch: obs.created_at_epoch })), - ...data.sessions.map((sess) => ({ type: "session", data: sess, epoch: sess.created_at_epoch })), - ...data.prompts.map((prompt) => ({ type: "prompt", data: prompt, epoch: prompt.created_at_epoch })) - ]; - items.sort((a, b) => a.epoch - b.epoch); - return items; - } - filterByDepth(items, anchorId, anchorEpoch, depth_before, depth_after) { - if (items.length === 0) - return items; - let anchorIndex = -1; - if (typeof anchorId === "number") { - anchorIndex = items.findIndex((item) => item.type === "observation" && item.data.id === anchorId); - } else if (typeof anchorId === "string" && anchorId.startsWith("S")) { - const sessionNum = parseInt(anchorId.slice(1), 10); - anchorIndex = items.findIndex((item) => item.type === "session" && item.data.id === sessionNum); - } else { - anchorIndex = items.findIndex((item) => item.epoch >= anchorEpoch); - if (anchorIndex === -1) - anchorIndex = items.length - 1; - } - if (anchorIndex === -1) - return items; - const startIndex = Math.max(0, anchorIndex - depth_before); - const endIndex = Math.min(items.length, anchorIndex + depth_after + 1); - return items.slice(startIndex, endIndex); - } - formatTimeline(items, anchorId, query2, depth_before, depth_after) { - if (items.length === 0) { - return query2 ? `Found observation matching "${query2}", but no timeline context available.` : "No timeline items found"; - } - const lines = []; - if (query2 && anchorId) { - const anchorObs = items.find((item) => item.type === "observation" && item.data.id === anchorId); - const anchorTitle = anchorObs ? anchorObs.data.title || "Untitled" : "Unknown"; - lines.push(`# Timeline for query: "${query2}"`); - lines.push(`**Anchor:** Observation #${anchorId} - ${anchorTitle}`); - } else if (anchorId) { - lines.push(`# Timeline around anchor: ${anchorId}`); - } else { - lines.push(`# Timeline`); - } - if (depth_before !== undefined && depth_after !== undefined) { - lines.push(`**Window:** ${depth_before} records before → ${depth_after} records after | **Items:** ${items.length}`); - } else { - lines.push(`**Items:** ${items.length}`); - } - lines.push(""); - lines.push(`**Legend:** \uD83C\uDFAF session-request | \uD83D\uDD34 bugfix | \uD83D\uDFE3 feature | \uD83D\uDD04 refactor | ✅ change | \uD83D\uDD35 discovery | \uD83E\uDDE0 decision`); - lines.push(""); - const dayMap = new Map; - for (const item of items) { - const day = this.formatDate(item.epoch); - if (!dayMap.has(day)) { - dayMap.set(day, []); - } - dayMap.get(day).push(item); - } - const sortedDays = Array.from(dayMap.entries()).sort((a, b) => { - const aDate = new Date(a[0]).getTime(); - const bDate = new Date(b[0]).getTime(); - return aDate - bDate; - }); - for (const [day, dayItems] of sortedDays) { - lines.push(`### ${day}`); - lines.push(""); - let currentFile = null; - let lastTime = ""; - let tableOpen = false; - for (const item of dayItems) { - const isAnchor = typeof anchorId === "number" && item.type === "observation" && item.data.id === anchorId || typeof anchorId === "string" && anchorId.startsWith("S") && item.type === "session" && `S${item.data.id}` === anchorId; - if (item.type === "session") { - if (tableOpen) { - lines.push(""); - tableOpen = false; - currentFile = null; - lastTime = ""; - } - const sess = item.data; - const title = sess.request || "Session summary"; - const marker = isAnchor ? " ← **ANCHOR**" : ""; - lines.push(`**\uD83C\uDFAF #S${sess.id}** ${title} (${this.formatDateTime(item.epoch)})${marker}`); - lines.push(""); - } else if (item.type === "prompt") { - if (tableOpen) { - lines.push(""); - tableOpen = false; - currentFile = null; - lastTime = ""; - } - const prompt = item.data; - const truncated = prompt.prompt_text.length > 100 ? prompt.prompt_text.substring(0, 100) + "..." : prompt.prompt_text; - lines.push(`**\uD83D\uDCAC User Prompt #${prompt.prompt_number}** (${this.formatDateTime(item.epoch)})`); - lines.push(`> ${truncated}`); - lines.push(""); - } else if (item.type === "observation") { - const obs = item.data; - const file = "General"; - if (file !== currentFile) { - if (tableOpen) { - lines.push(""); - } - lines.push(`**${file}**`); - lines.push(`| ID | Time | T | Title | Tokens |`); - lines.push(`|----|------|---|-------|--------|`); - currentFile = file; - tableOpen = true; - lastTime = ""; - } - const icon = this.getTypeIcon(obs.type); - const time4 = this.formatTime(item.epoch); - const title = obs.title || "Untitled"; - const tokens = this.estimateTokens(obs.narrative); - const showTime = time4 !== lastTime; - const timeDisplay = showTime ? time4 : "″"; - lastTime = time4; - const anchorMarker = isAnchor ? " ← **ANCHOR**" : ""; - lines.push(`| #${obs.id} | ${timeDisplay} | ${icon} | ${title}${anchorMarker} | ~${tokens} |`); - } - } - if (tableOpen) { - lines.push(""); - } - } - return lines.join(` -`); - } - getTypeIcon(type) { - return ModeManager.getInstance().getTypeIcon(type); - } - formatDate(epochMs) { - const date5 = new Date(epochMs); - return date5.toLocaleString("en-US", { - month: "short", - day: "numeric", - year: "numeric" - }); - } - formatTime(epochMs) { - const date5 = new Date(epochMs); - return date5.toLocaleString("en-US", { - hour: "numeric", - minute: "2-digit", - hour12: true - }); - } - formatDateTime(epochMs) { - const date5 = new Date(epochMs); - return date5.toLocaleString("en-US", { - month: "short", - day: "numeric", - hour: "numeric", - minute: "2-digit", - hour12: true - }); - } - estimateTokens(text) { - if (!text) - return 0; - return Math.ceil(text.length / 4); - } -} - -// src/services/worker/events/SessionEventBroadcaster.ts -class SessionEventBroadcaster { - sseBroadcaster; - workerService; - constructor(sseBroadcaster, workerService) { - this.sseBroadcaster = sseBroadcaster; - this.workerService = workerService; - } - broadcastNewPrompt(prompt) { - this.sseBroadcaster.broadcast({ - type: "new_prompt", - prompt - }); - this.sseBroadcaster.broadcast({ - type: "processing_status", - isProcessing: true - }); - this.workerService.broadcastProcessingStatus(); - } - broadcastSessionStarted(sessionDbId, project) { - this.sseBroadcaster.broadcast({ - type: "session_started", - sessionDbId, - project - }); - this.workerService.broadcastProcessingStatus(); - } - broadcastObservationQueued(sessionDbId) { - this.sseBroadcaster.broadcast({ - type: "observation_queued", - sessionDbId - }); - this.workerService.broadcastProcessingStatus(); - } - broadcastSessionCompleted(sessionDbId) { - this.sseBroadcaster.broadcast({ - type: "session_completed", - timestamp: Date.now(), - sessionDbId - }); - this.workerService.broadcastProcessingStatus(); - } - broadcastSummarizeQueued() { - this.workerService.broadcastProcessingStatus(); - } -} - -// src/services/worker/http/routes/ViewerRoutes.ts -init_paths(); -var import_express3 = __toESM(require_express(), 1); -import path15 from "path"; -import { readFileSync as readFileSync15, existsSync as existsSync14 } from "fs"; - -// src/services/worker/http/BaseRouteHandler.ts -init_logger(); - -class BaseRouteHandler { - wrapHandler(handler) { - return (req, res) => { - try { - const result = handler(req, res); - if (result instanceof Promise) { - result.catch((error3) => this.handleError(res, error3)); - } - } catch (error3) { - logger.error("HTTP", "Route handler error", { path: req.path }, error3); - this.handleError(res, error3); - } - }; - } - parseIntParam(req, res, paramName) { - const value = parseInt(req.params[paramName], 10); - if (isNaN(value)) { - this.badRequest(res, `Invalid ${paramName}`); - return null; - } - return value; - } - validateRequired(req, res, params) { - for (const param of params) { - if (req.body[param] === undefined || req.body[param] === null) { - this.badRequest(res, `Missing ${param}`); - return false; - } - } - return true; - } - badRequest(res, message) { - res.status(400).json({ error: message }); - } - notFound(res, message) { - res.status(404).json({ error: message }); - } - handleError(res, error3, context) { - logger.failure("WORKER", context || "Request failed", {}, error3); - if (!res.headersSent) { - res.status(500).json({ error: error3.message }); - } - } -} - -// src/services/worker/http/routes/ViewerRoutes.ts -class ViewerRoutes extends BaseRouteHandler { - sseBroadcaster; - dbManager; - sessionManager; - constructor(sseBroadcaster, dbManager, sessionManager) { - super(); - this.sseBroadcaster = sseBroadcaster; - this.dbManager = dbManager; - this.sessionManager = sessionManager; - } - setupRoutes(app) { - const packageRoot = getPackageRoot(); - app.use(import_express3.default.static(path15.join(packageRoot, "ui"))); - app.get("/health", this.handleHealth.bind(this)); - app.get("/", this.handleViewerUI.bind(this)); - app.get("/stream", this.handleSSEStream.bind(this)); - } - handleHealth = this.wrapHandler((req, res) => { - res.json({ status: "ok", timestamp: Date.now() }); - }); - handleViewerUI = this.wrapHandler((req, res) => { - const packageRoot = getPackageRoot(); - const viewerPaths = [ - path15.join(packageRoot, "ui", "viewer.html"), - path15.join(packageRoot, "plugin", "ui", "viewer.html") - ]; - const viewerPath = viewerPaths.find((p) => existsSync14(p)); - if (!viewerPath) { - throw new Error("Viewer UI not found at any expected location"); - } - const html = readFileSync15(viewerPath, "utf-8"); - res.setHeader("Content-Type", "text/html"); - res.send(html); - }); - handleSSEStream = this.wrapHandler((req, res) => { - res.setHeader("Content-Type", "text/event-stream"); - res.setHeader("Cache-Control", "no-cache"); - res.setHeader("Connection", "keep-alive"); - this.sseBroadcaster.addClient(res); - const allProjects = this.dbManager.getSessionStore().getAllProjects(); - this.sseBroadcaster.broadcast({ - type: "initial_load", - projects: allProjects, - timestamp: Date.now() - }); - const isProcessing = this.sessionManager.isAnySessionProcessing(); - const queueDepth = this.sessionManager.getTotalActiveWork(); - this.sseBroadcaster.broadcast({ - type: "processing_status", - isProcessing, - queueDepth - }); - }); -} - -// src/services/worker/http/routes/SessionRoutes.ts -init_worker_utils(); -init_logger(); - -// src/utils/tag-stripping.ts -init_logger(); -var MAX_TAG_COUNT = 100; -function countTags(content) { - const privateCount = (content.match(//g) || []).length; - const contextCount = (content.match(//g) || []).length; - const systemInstructionCount = (content.match(//g) || []).length; - const systemInstructionHyphenCount = (content.match(//g) || []).length; - return privateCount + contextCount + systemInstructionCount + systemInstructionHyphenCount; -} -function stripTagsInternal(content) { - const tagCount = countTags(content); - if (tagCount > MAX_TAG_COUNT) { - logger.warn("SYSTEM", "tag count exceeds limit", undefined, { - tagCount, - maxAllowed: MAX_TAG_COUNT, - contentLength: content.length - }); - } - return content.replace(/[\s\S]*?<\/claude-mem-context>/g, "").replace(/[\s\S]*?<\/private>/g, "").replace(/[\s\S]*?<\/system_instruction>/g, "").replace(/[\s\S]*?<\/system-instruction>/g, "").trim(); -} -function stripMemoryTagsFromJson(content) { - return stripTagsInternal(content); -} -function stripMemoryTagsFromPrompt(content) { - return stripTagsInternal(content); -} - -// src/services/worker/session/SessionCompletionHandler.ts -class SessionCompletionHandler { - sessionManager; - eventBroadcaster; - constructor(sessionManager, eventBroadcaster) { - this.sessionManager = sessionManager; - this.eventBroadcaster = eventBroadcaster; - } - async completeByDbId(sessionDbId) { - await this.sessionManager.deleteSession(sessionDbId); - this.eventBroadcaster.broadcastSessionCompleted(sessionDbId); - } -} - -// src/services/worker/validation/PrivacyCheckValidator.ts -init_logger(); - -class PrivacyCheckValidator { - static checkUserPromptPrivacy(store, contentSessionId, promptNumber, operationType, sessionDbId, additionalContext) { - const userPrompt = store.getUserPrompt(contentSessionId, promptNumber); - if (!userPrompt || userPrompt.trim() === "") { - logger.debug("HOOK", `Skipping ${operationType} - user prompt was entirely private`, { - sessionId: sessionDbId, - promptNumber, - ...additionalContext - }); - return null; - } - return userPrompt; - } -} - -// src/services/worker/http/routes/SessionRoutes.ts -init_SettingsDefaultsManager(); -init_paths(); -class SessionRoutes extends BaseRouteHandler { - sessionManager; - dbManager; - sdkAgent; - geminiAgent; - openRouterAgent; - eventBroadcaster; - workerService; - completionHandler; - spawnInProgress = new Map; - crashRecoveryScheduled = new Set; - constructor(sessionManager, dbManager, sdkAgent, geminiAgent, openRouterAgent, eventBroadcaster, workerService) { - super(); - this.sessionManager = sessionManager; - this.dbManager = dbManager; - this.sdkAgent = sdkAgent; - this.geminiAgent = geminiAgent; - this.openRouterAgent = openRouterAgent; - this.eventBroadcaster = eventBroadcaster; - this.workerService = workerService; - this.completionHandler = new SessionCompletionHandler(sessionManager, eventBroadcaster); - } - getActiveAgent() { - if (isOpenRouterSelected()) { - if (isOpenRouterAvailable()) { - logger.debug("SESSION", "Using OpenRouter agent"); - return this.openRouterAgent; - } else { - throw new Error("OpenRouter provider selected but no API key configured. Set CLAUDE_MEM_OPENROUTER_API_KEY in settings or OPENROUTER_API_KEY environment variable."); - } - } - if (isGeminiSelected()) { - if (isGeminiAvailable()) { - logger.debug("SESSION", "Using Gemini agent"); - return this.geminiAgent; - } else { - throw new Error("Gemini provider selected but no API key configured. Set CLAUDE_MEM_GEMINI_API_KEY in settings or GEMINI_API_KEY environment variable."); - } - } - return this.sdkAgent; - } - getSelectedProvider() { - if (isOpenRouterSelected() && isOpenRouterAvailable()) { - return "openrouter"; - } - return isGeminiSelected() && isGeminiAvailable() ? "gemini" : "claude"; - } - static STALE_GENERATOR_THRESHOLD_MS = 30000; - ensureGeneratorRunning(sessionDbId, source) { - const session = this.sessionManager.getSession(sessionDbId); - if (!session) - return; - if (this.spawnInProgress.get(sessionDbId)) { - logger.debug("SESSION", "Spawn already in progress, skipping", { sessionDbId, source }); - return; - } - const selectedProvider = this.getSelectedProvider(); - if (!session.generatorPromise) { - this.spawnInProgress.set(sessionDbId, true); - this.startGeneratorWithProvider(session, selectedProvider, source); - return; - } - const timeSinceActivity = Date.now() - session.lastGeneratorActivity; - if (timeSinceActivity > SessionRoutes.STALE_GENERATOR_THRESHOLD_MS) { - logger.warn("SESSION", "Stale generator detected, aborting to prevent queue stall (#1099)", { - sessionId: sessionDbId, - timeSinceActivityMs: timeSinceActivity, - thresholdMs: SessionRoutes.STALE_GENERATOR_THRESHOLD_MS, - source - }); - session.abortController.abort(); - session.generatorPromise = null; - session.abortController = new AbortController; - session.lastGeneratorActivity = Date.now(); - this.spawnInProgress.set(sessionDbId, true); - this.startGeneratorWithProvider(session, selectedProvider, "stale-recovery"); - return; - } - if (session.currentProvider && session.currentProvider !== selectedProvider) { - logger.info("SESSION", `Provider changed, will switch after current generator finishes`, { - sessionId: sessionDbId, - currentProvider: session.currentProvider, - selectedProvider, - historyLength: session.conversationHistory.length - }); - } - } - startGeneratorWithProvider(session, provider, source) { - if (!session) - return; - if (session.abortController.signal.aborted) { - logger.debug("SESSION", "Resetting aborted AbortController before starting generator", { - sessionId: session.sessionDbId - }); - session.abortController = new AbortController; - } - const agent = provider === "openrouter" ? this.openRouterAgent : provider === "gemini" ? this.geminiAgent : this.sdkAgent; - const agentName = provider === "openrouter" ? "OpenRouter" : provider === "gemini" ? "Gemini" : "Claude SDK"; - const pendingStore = this.sessionManager.getPendingMessageStore(); - const actualQueueDepth = pendingStore.getPendingCount(session.sessionDbId); - logger.info("SESSION", `Generator auto-starting (${source}) using ${agentName}`, { - sessionId: session.sessionDbId, - queueDepth: actualQueueDepth, - historyLength: session.conversationHistory.length - }); - session.currentProvider = provider; - session.lastGeneratorActivity = Date.now(); - session.generatorPromise = agent.startSession(session, this.workerService).catch((error3) => { - if (session.abortController.signal.aborted) - return; - logger.error("SESSION", `Generator failed`, { - sessionId: session.sessionDbId, - provider, - error: error3.message - }, error3); - const pendingStore2 = this.sessionManager.getPendingMessageStore(); - try { - const failedCount = pendingStore2.markSessionMessagesFailed(session.sessionDbId); - if (failedCount > 0) { - logger.error("SESSION", `Marked messages as failed after generator error`, { - sessionId: session.sessionDbId, - failedCount - }); - } - } catch (dbError) { - logger.error("SESSION", "Failed to mark messages as failed", { - sessionId: session.sessionDbId - }, dbError); - } - }).finally(async () => { - const tracked = getProcessBySession(session.sessionDbId); - if (tracked && !tracked.process.killed && tracked.process.exitCode === null) { - await ensureProcessExit(tracked, 5000); - } - const sessionDbId = session.sessionDbId; - this.spawnInProgress.delete(sessionDbId); - const wasAborted = session.abortController.signal.aborted; - if (wasAborted) { - logger.info("SESSION", `Generator aborted`, { sessionId: sessionDbId }); - } else { - logger.error("SESSION", `Generator exited unexpectedly`, { sessionId: sessionDbId }); - } - session.generatorPromise = null; - session.currentProvider = null; - this.workerService.broadcastProcessingStatus(); - if (!wasAborted) { - try { - const pendingStore2 = this.sessionManager.getPendingMessageStore(); - const pendingCount = pendingStore2.getPendingCount(sessionDbId); - const MAX_CONSECUTIVE_RESTARTS = 3; - if (pendingCount > 0) { - if (this.crashRecoveryScheduled.has(sessionDbId)) { - logger.debug("SESSION", "Crash recovery already scheduled", { sessionDbId }); - return; - } - session.consecutiveRestarts = (session.consecutiveRestarts || 0) + 1; - if (session.consecutiveRestarts > MAX_CONSECUTIVE_RESTARTS) { - logger.error("SESSION", `CRITICAL: Generator restart limit exceeded - stopping to prevent runaway costs`, { - sessionId: sessionDbId, - pendingCount, - consecutiveRestarts: session.consecutiveRestarts, - maxRestarts: MAX_CONSECUTIVE_RESTARTS, - action: "Generator will NOT restart. Check logs for root cause. Messages remain in pending state." - }); - session.abortController.abort(); - return; - } - logger.info("SESSION", `Restarting generator after crash/exit with pending work`, { - sessionId: sessionDbId, - pendingCount, - consecutiveRestarts: session.consecutiveRestarts, - maxRestarts: MAX_CONSECUTIVE_RESTARTS - }); - const oldController = session.abortController; - session.abortController = new AbortController; - oldController.abort(); - this.crashRecoveryScheduled.add(sessionDbId); - const backoffMs = Math.min(1000 * Math.pow(2, session.consecutiveRestarts - 1), 8000); - setTimeout(() => { - this.crashRecoveryScheduled.delete(sessionDbId); - const stillExists = this.sessionManager.getSession(sessionDbId); - if (stillExists && !stillExists.generatorPromise) { - this.startGeneratorWithProvider(stillExists, this.getSelectedProvider(), "crash-recovery"); - } - }, backoffMs); - } else { - session.abortController.abort(); - session.consecutiveRestarts = 0; - logger.debug("SESSION", "Aborted controller after natural completion", { - sessionId: sessionDbId - }); - } - } catch (e) { - logger.debug("SESSION", "Error during recovery check, aborting to prevent leaks", { sessionId: sessionDbId, error: e instanceof Error ? e.message : String(e) }); - session.abortController.abort(); - } - } - }); - } - setupRoutes(app) { - app.post("/sessions/:sessionDbId/init", this.handleSessionInit.bind(this)); - app.post("/sessions/:sessionDbId/observations", this.handleObservations.bind(this)); - app.post("/sessions/:sessionDbId/summarize", this.handleSummarize.bind(this)); - app.get("/sessions/:sessionDbId/status", this.handleSessionStatus.bind(this)); - app.delete("/sessions/:sessionDbId", this.handleSessionDelete.bind(this)); - app.post("/sessions/:sessionDbId/complete", this.handleSessionComplete.bind(this)); - app.post("/api/sessions/init", this.handleSessionInitByClaudeId.bind(this)); - app.post("/api/sessions/observations", this.handleObservationsByClaudeId.bind(this)); - app.post("/api/sessions/summarize", this.handleSummarizeByClaudeId.bind(this)); - app.post("/api/sessions/complete", this.handleCompleteByClaudeId.bind(this)); - } - handleSessionInit = this.wrapHandler((req, res) => { - const sessionDbId = this.parseIntParam(req, res, "sessionDbId"); - if (sessionDbId === null) - return; - const { userPrompt, promptNumber } = req.body; - logger.info("HTTP", "SessionRoutes: handleSessionInit called", { - sessionDbId, - promptNumber, - has_userPrompt: !!userPrompt - }); - const session = this.sessionManager.initializeSession(sessionDbId, userPrompt, promptNumber); - const latestPrompt = this.dbManager.getSessionStore().getLatestUserPrompt(session.contentSessionId); - if (latestPrompt) { - this.eventBroadcaster.broadcastNewPrompt({ - id: latestPrompt.id, - content_session_id: latestPrompt.content_session_id, - project: latestPrompt.project, - prompt_number: latestPrompt.prompt_number, - prompt_text: latestPrompt.prompt_text, - created_at_epoch: latestPrompt.created_at_epoch - }); - const chromaStart = Date.now(); - const promptText = latestPrompt.prompt_text; - this.dbManager.getChromaSync()?.syncUserPrompt(latestPrompt.id, latestPrompt.memory_session_id, latestPrompt.project, promptText, latestPrompt.prompt_number, latestPrompt.created_at_epoch).then(() => { - const chromaDuration = Date.now() - chromaStart; - const truncatedPrompt = promptText.length > 60 ? promptText.substring(0, 60) + "..." : promptText; - logger.debug("CHROMA", "User prompt synced", { - promptId: latestPrompt.id, - duration: `${chromaDuration}ms`, - prompt: truncatedPrompt - }); - }).catch((error3) => { - logger.error("CHROMA", "User prompt sync failed, continuing without vector search", { - promptId: latestPrompt.id, - prompt: promptText.length > 60 ? promptText.substring(0, 60) + "..." : promptText - }, error3); - }); - } - this.ensureGeneratorRunning(sessionDbId, "init"); - this.eventBroadcaster.broadcastSessionStarted(sessionDbId, session.project); - res.json({ status: "initialized", sessionDbId, port: getWorkerPort() }); - }); - handleObservations = this.wrapHandler((req, res) => { - const sessionDbId = this.parseIntParam(req, res, "sessionDbId"); - if (sessionDbId === null) - return; - const { tool_name, tool_input, tool_response, prompt_number, cwd: cwd2 } = req.body; - this.sessionManager.queueObservation(sessionDbId, { - tool_name, - tool_input, - tool_response, - prompt_number, - cwd: cwd2 - }); - this.ensureGeneratorRunning(sessionDbId, "observation"); - this.eventBroadcaster.broadcastObservationQueued(sessionDbId); - res.json({ status: "queued" }); - }); - handleSummarize = this.wrapHandler((req, res) => { - const sessionDbId = this.parseIntParam(req, res, "sessionDbId"); - if (sessionDbId === null) - return; - const { last_assistant_message } = req.body; - this.sessionManager.queueSummarize(sessionDbId, last_assistant_message); - this.ensureGeneratorRunning(sessionDbId, "summarize"); - this.eventBroadcaster.broadcastSummarizeQueued(); - res.json({ status: "queued" }); - }); - handleSessionStatus = this.wrapHandler((req, res) => { - const sessionDbId = this.parseIntParam(req, res, "sessionDbId"); - if (sessionDbId === null) - return; - const session = this.sessionManager.getSession(sessionDbId); - if (!session) { - res.json({ status: "not_found" }); - return; - } - const pendingStore = this.sessionManager.getPendingMessageStore(); - const queueLength = pendingStore.getPendingCount(sessionDbId); - res.json({ - status: "active", - sessionDbId, - project: session.project, - queueLength, - uptime: Date.now() - session.startTime - }); - }); - handleSessionDelete = this.wrapHandler(async (req, res) => { - const sessionDbId = this.parseIntParam(req, res, "sessionDbId"); - if (sessionDbId === null) - return; - await this.completionHandler.completeByDbId(sessionDbId); - res.json({ status: "deleted" }); - }); - handleSessionComplete = this.wrapHandler(async (req, res) => { - const sessionDbId = this.parseIntParam(req, res, "sessionDbId"); - if (sessionDbId === null) - return; - await this.completionHandler.completeByDbId(sessionDbId); - res.json({ success: true }); - }); - handleObservationsByClaudeId = this.wrapHandler((req, res) => { - const { contentSessionId, tool_name, tool_input, tool_response, cwd: cwd2 } = req.body; - if (!contentSessionId) { - return this.badRequest(res, "Missing contentSessionId"); - } - const settings = SettingsDefaultsManager.loadFromFile(USER_SETTINGS_PATH); - const skipTools = new Set(settings.CLAUDE_MEM_SKIP_TOOLS.split(",").map((t) => t.trim()).filter(Boolean)); - if (skipTools.has(tool_name)) { - logger.debug("SESSION", "Skipping observation for tool", { tool_name }); - res.json({ status: "skipped", reason: "tool_excluded" }); - return; - } - const fileOperationTools = new Set(["Edit", "Write", "Read", "NotebookEdit"]); - if (fileOperationTools.has(tool_name) && tool_input) { - const filePath = tool_input.file_path || tool_input.notebook_path; - if (filePath && filePath.includes("session-memory")) { - logger.debug("SESSION", "Skipping meta-observation for session-memory file", { - tool_name, - file_path: filePath - }); - res.json({ status: "skipped", reason: "session_memory_meta" }); - return; - } - } - try { - const store = this.dbManager.getSessionStore(); - const sessionDbId = store.createSDKSession(contentSessionId, "", ""); - const promptNumber = store.getPromptNumberFromUserPrompts(contentSessionId); - const userPrompt = PrivacyCheckValidator.checkUserPromptPrivacy(store, contentSessionId, promptNumber, "observation", sessionDbId, { tool_name }); - if (!userPrompt) { - res.json({ status: "skipped", reason: "private" }); - return; - } - const cleanedToolInput = tool_input !== undefined ? stripMemoryTagsFromJson(JSON.stringify(tool_input)) : "{}"; - const cleanedToolResponse = tool_response !== undefined ? stripMemoryTagsFromJson(JSON.stringify(tool_response)) : "{}"; - this.sessionManager.queueObservation(sessionDbId, { - tool_name, - tool_input: cleanedToolInput, - tool_response: cleanedToolResponse, - prompt_number: promptNumber, - cwd: cwd2 || (() => { - logger.error("SESSION", "Missing cwd when queueing observation in SessionRoutes", { - sessionId: sessionDbId, - tool_name - }); - return ""; - })() - }); - this.ensureGeneratorRunning(sessionDbId, "observation"); - this.eventBroadcaster.broadcastObservationQueued(sessionDbId); - res.json({ status: "queued" }); - } catch (error3) { - logger.error("SESSION", "Observation storage failed", { contentSessionId, tool_name }, error3); - res.json({ stored: false, reason: error3.message }); - } - }); - handleSummarizeByClaudeId = this.wrapHandler((req, res) => { - const { contentSessionId, last_assistant_message } = req.body; - if (!contentSessionId) { - return this.badRequest(res, "Missing contentSessionId"); - } - const store = this.dbManager.getSessionStore(); - const sessionDbId = store.createSDKSession(contentSessionId, "", ""); - const promptNumber = store.getPromptNumberFromUserPrompts(contentSessionId); - const userPrompt = PrivacyCheckValidator.checkUserPromptPrivacy(store, contentSessionId, promptNumber, "summarize", sessionDbId); - if (!userPrompt) { - res.json({ status: "skipped", reason: "private" }); - return; - } - this.sessionManager.queueSummarize(sessionDbId, last_assistant_message); - this.ensureGeneratorRunning(sessionDbId, "summarize"); - this.eventBroadcaster.broadcastSummarizeQueued(); - res.json({ status: "queued" }); - }); - handleCompleteByClaudeId = this.wrapHandler(async (req, res) => { - const { contentSessionId } = req.body; - logger.info("HTTP", "→ POST /api/sessions/complete", { contentSessionId }); - if (!contentSessionId) { - return this.badRequest(res, "Missing contentSessionId"); - } - const store = this.dbManager.getSessionStore(); - const sessionDbId = store.createSDKSession(contentSessionId, "", ""); - const activeSession = this.sessionManager.getSession(sessionDbId); - if (!activeSession) { - logger.debug("SESSION", "session-complete: Session not in active map", { - contentSessionId, - sessionDbId - }); - res.json({ status: "skipped", reason: "not_active" }); - return; - } - await this.completionHandler.completeByDbId(sessionDbId); - logger.info("SESSION", "Session completed via API", { - contentSessionId, - sessionDbId - }); - res.json({ status: "completed", sessionDbId }); - }); - handleSessionInitByClaudeId = this.wrapHandler((req, res) => { - const { contentSessionId } = req.body; - const project = req.body.project || "unknown"; - const prompt = req.body.prompt || "[media prompt]"; - const customTitle = req.body.customTitle || undefined; - logger.info("HTTP", "SessionRoutes: handleSessionInitByClaudeId called", { - contentSessionId, - project, - prompt_length: prompt?.length, - customTitle - }); - if (!this.validateRequired(req, res, ["contentSessionId"])) { - return; - } - const store = this.dbManager.getSessionStore(); - const sessionDbId = store.createSDKSession(contentSessionId, project, prompt, customTitle); - const dbSession = store.getSessionById(sessionDbId); - const isNewSession = !dbSession?.memory_session_id; - logger.info("SESSION", `CREATED | contentSessionId=${contentSessionId} → sessionDbId=${sessionDbId} | isNew=${isNewSession} | project=${project}`, { - sessionId: sessionDbId - }); - const currentCount = store.getPromptNumberFromUserPrompts(contentSessionId); - const promptNumber = currentCount + 1; - const memorySessionId = dbSession?.memory_session_id || null; - if (promptNumber > 1) { - logger.debug("HTTP", `[ALIGNMENT] DB Lookup Proof | contentSessionId=${contentSessionId} → memorySessionId=${memorySessionId || "(not yet captured)"} | prompt#=${promptNumber}`); - } else { - logger.debug("HTTP", `[ALIGNMENT] New Session | contentSessionId=${contentSessionId} | prompt#=${promptNumber} | memorySessionId will be captured on first SDK response`); - } - const cleanedPrompt = stripMemoryTagsFromPrompt(prompt); - if (!cleanedPrompt || cleanedPrompt.trim() === "") { - logger.debug("HOOK", "Session init - prompt entirely private", { - sessionId: sessionDbId, - promptNumber, - originalLength: prompt.length - }); - res.json({ - sessionDbId, - promptNumber, - skipped: true, - reason: "private" - }); - return; - } - store.saveUserPrompt(contentSessionId, promptNumber, cleanedPrompt); - const contextInjected = this.sessionManager.getSession(sessionDbId) !== undefined; - logger.debug("SESSION", "User prompt saved", { - sessionId: sessionDbId, - promptNumber, - contextInjected - }); - res.json({ - sessionDbId, - promptNumber, - skipped: false, - contextInjected - }); - }); -} - -// src/services/worker/http/routes/DataRoutes.ts -init_logger(); -init_paths(); -init_worker_utils(); -import path16 from "path"; -import { readFileSync as readFileSync16, statSync as statSync3, existsSync as existsSync15 } from "fs"; -import { homedir as homedir14 } from "os"; -class DataRoutes extends BaseRouteHandler { - paginationHelper; - dbManager; - sessionManager; - sseBroadcaster; - workerService; - startTime; - constructor(paginationHelper, dbManager, sessionManager, sseBroadcaster, workerService, startTime) { - super(); - this.paginationHelper = paginationHelper; - this.dbManager = dbManager; - this.sessionManager = sessionManager; - this.sseBroadcaster = sseBroadcaster; - this.workerService = workerService; - this.startTime = startTime; - } - setupRoutes(app) { - app.get("/api/observations", this.handleGetObservations.bind(this)); - app.get("/api/summaries", this.handleGetSummaries.bind(this)); - app.get("/api/prompts", this.handleGetPrompts.bind(this)); - app.get("/api/observation/:id", this.handleGetObservationById.bind(this)); - app.post("/api/observations/batch", this.handleGetObservationsByIds.bind(this)); - app.get("/api/session/:id", this.handleGetSessionById.bind(this)); - app.post("/api/sdk-sessions/batch", this.handleGetSdkSessionsByIds.bind(this)); - app.get("/api/prompt/:id", this.handleGetPromptById.bind(this)); - app.get("/api/stats", this.handleGetStats.bind(this)); - app.get("/api/projects", this.handleGetProjects.bind(this)); - app.get("/api/processing-status", this.handleGetProcessingStatus.bind(this)); - app.post("/api/processing", this.handleSetProcessing.bind(this)); - app.get("/api/pending-queue", this.handleGetPendingQueue.bind(this)); - app.post("/api/pending-queue/process", this.handleProcessPendingQueue.bind(this)); - app.delete("/api/pending-queue/failed", this.handleClearFailedQueue.bind(this)); - app.delete("/api/pending-queue/all", this.handleClearAllQueue.bind(this)); - app.post("/api/import", this.handleImport.bind(this)); - } - handleGetObservations = this.wrapHandler((req, res) => { - const { offset, limit, project } = this.parsePaginationParams(req); - const result = this.paginationHelper.getObservations(offset, limit, project); - res.json(result); - }); - handleGetSummaries = this.wrapHandler((req, res) => { - const { offset, limit, project } = this.parsePaginationParams(req); - const result = this.paginationHelper.getSummaries(offset, limit, project); - res.json(result); - }); - handleGetPrompts = this.wrapHandler((req, res) => { - const { offset, limit, project } = this.parsePaginationParams(req); - const result = this.paginationHelper.getPrompts(offset, limit, project); - res.json(result); - }); - handleGetObservationById = this.wrapHandler((req, res) => { - const id = this.parseIntParam(req, res, "id"); - if (id === null) - return; - const store = this.dbManager.getSessionStore(); - const observation = store.getObservationById(id); - if (!observation) { - this.notFound(res, `Observation #${id} not found`); - return; - } - res.json(observation); - }); - handleGetObservationsByIds = this.wrapHandler((req, res) => { - let { ids, orderBy, limit, project } = req.body; - if (typeof ids === "string") { - try { - ids = JSON.parse(ids); - } catch { - ids = ids.split(",").map(Number); - } - } - if (!ids || !Array.isArray(ids)) { - this.badRequest(res, "ids must be an array of numbers"); - return; - } - if (ids.length === 0) { - res.json([]); - return; - } - if (!ids.every((id) => typeof id === "number" && Number.isInteger(id))) { - this.badRequest(res, "All ids must be integers"); - return; - } - const store = this.dbManager.getSessionStore(); - const observations = store.getObservationsByIds(ids, { orderBy, limit, project }); - res.json(observations); - }); - handleGetSessionById = this.wrapHandler((req, res) => { - const id = this.parseIntParam(req, res, "id"); - if (id === null) - return; - const store = this.dbManager.getSessionStore(); - const sessions = store.getSessionSummariesByIds([id]); - if (sessions.length === 0) { - this.notFound(res, `Session #${id} not found`); - return; - } - res.json(sessions[0]); - }); - handleGetSdkSessionsByIds = this.wrapHandler((req, res) => { - let { memorySessionIds } = req.body; - if (typeof memorySessionIds === "string") { - try { - memorySessionIds = JSON.parse(memorySessionIds); - } catch { - memorySessionIds = memorySessionIds.split(",").map((s) => s.trim()); - } - } - if (!Array.isArray(memorySessionIds)) { - this.badRequest(res, "memorySessionIds must be an array"); - return; - } - const store = this.dbManager.getSessionStore(); - const sessions = store.getSdkSessionsBySessionIds(memorySessionIds); - res.json(sessions); - }); - handleGetPromptById = this.wrapHandler((req, res) => { - const id = this.parseIntParam(req, res, "id"); - if (id === null) - return; - const store = this.dbManager.getSessionStore(); - const prompts = store.getUserPromptsByIds([id]); - if (prompts.length === 0) { - this.notFound(res, `Prompt #${id} not found`); - return; - } - res.json(prompts[0]); - }); - handleGetStats = this.wrapHandler((req, res) => { - const db = this.dbManager.getSessionStore().db; - const packageRoot = getPackageRoot(); - const packageJsonPath = path16.join(packageRoot, "package.json"); - const packageJson = JSON.parse(readFileSync16(packageJsonPath, "utf-8")); - const version3 = packageJson.version; - const totalObservations = db.prepare("SELECT COUNT(*) as count FROM observations").get(); - const totalSessions = db.prepare("SELECT COUNT(*) as count FROM sdk_sessions").get(); - const totalSummaries = db.prepare("SELECT COUNT(*) as count FROM session_summaries").get(); - const dbPath = path16.join(homedir14(), ".claude-mem", "claude-mem.db"); - let dbSize = 0; - if (existsSync15(dbPath)) { - dbSize = statSync3(dbPath).size; - } - const uptime = Math.floor((Date.now() - this.startTime) / 1000); - const activeSessions = this.sessionManager.getActiveSessionCount(); - const sseClients = this.sseBroadcaster.getClientCount(); - res.json({ - worker: { - version: version3, - uptime, - activeSessions, - sseClients, - port: getWorkerPort() - }, - database: { - path: dbPath, - size: dbSize, - observations: totalObservations.count, - sessions: totalSessions.count, - summaries: totalSummaries.count - } - }); - }); - handleGetProjects = this.wrapHandler((req, res) => { - const db = this.dbManager.getSessionStore().db; - const rows = db.prepare(` +\u2022 Filter by type: obs_type="bugfix,feature" +\u2022 Filter by date: dateStart="2025-01-01" +\u2022 Sort: orderBy="date_desc" or "date_asc"`}formatTime(e){return new Date(e).toLocaleString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0})}estimateReadTokens(e){let r=(e.title?.length||0)+(e.subtitle?.length||0)+(e.narrative?.length||0)+(e.facts?.length||0);return Math.ceil(r/Xhe)}formatObservationIndex(e,r){let n=`#${e.id}`,i=this.formatTime(e.created_at_epoch),s=He.getInstance().getTypeIcon(e.type),o=e.title||"Untitled",a=this.estimateReadTokens(e),c=He.getInstance().getWorkEmoji(e.type),u=e.discovery_tokens||0,l=u>0?`${c} ${u}`:"-";return`| ${n} | ${i} | ${s} | ${o} | ~${a} | ${l} |`}formatSessionIndex(e,r){let n=`#S${e.id}`,i=this.formatTime(e.created_at_epoch),s="\u{1F3AF}",o=e.request||`Session ${e.memory_session_id?.substring(0,8)||"unknown"}`;return`| ${n} | ${i} | ${s} | ${o} | - | - |`}formatUserPromptIndex(e,r){let n=`#P${e.id}`,i=this.formatTime(e.created_at_epoch),s="\u{1F4AC}",o=e.prompt_text.length>60?e.prompt_text.substring(0,57)+"...":e.prompt_text;return`| ${n} | ${i} | ${s} | ${o} | - | - |`}formatTableHeader(){return`| ID | Time | T | Title | Read | Work | +|-----|------|---|-------|------|------|`}formatSearchTableHeader(){return`| ID | Time | T | Title | Read | +|----|------|---|-------|------|`}formatObservationSearchRow(e,r){let n=`#${e.id}`,i=this.formatTime(e.created_at_epoch),s=He.getInstance().getTypeIcon(e.type),o=e.title||"Untitled",a=this.estimateReadTokens(e);return{row:`| ${n} | ${i===r?"\u2033":i} | ${s} | ${o} | ~${a} |`,time:i}}formatSessionSearchRow(e,r){let n=`#S${e.id}`,i=this.formatTime(e.created_at_epoch),s="\u{1F3AF}",o=e.request||`Session ${e.memory_session_id?.substring(0,8)||"unknown"}`;return{row:`| ${n} | ${i===r?"\u2033":i} | ${s} | ${o} | - |`,time:i}}formatUserPromptSearchRow(e,r){let n=`#P${e.id}`,i=this.formatTime(e.created_at_epoch),s="\u{1F4AC}",o=e.prompt_text.length>60?e.prompt_text.substring(0,57)+"...":e.prompt_text;return{row:`| ${n} | ${i===r?"\u2033":i} | ${s} | ${o} | - |`,time:i}}};Br();var Jg=class{buildTimeline(e){let r=[...e.observations.map(n=>({type:"observation",data:n,epoch:n.created_at_epoch})),...e.sessions.map(n=>({type:"session",data:n,epoch:n.created_at_epoch})),...e.prompts.map(n=>({type:"prompt",data:n,epoch:n.created_at_epoch}))];return r.sort((n,i)=>n.epoch-i.epoch),r}filterByDepth(e,r,n,i,s){if(e.length===0)return e;let o=-1;if(typeof r=="number")o=e.findIndex(u=>u.type==="observation"&&u.data.id===r);else if(typeof r=="string"&&r.startsWith("S")){let u=parseInt(r.slice(1),10);o=e.findIndex(l=>l.type==="session"&&l.data.id===u)}else o=e.findIndex(u=>u.epoch>=n),o===-1&&(o=e.length-1);if(o===-1)return e;let a=Math.max(0,o-i),c=Math.min(e.length,o+s+1);return e.slice(a,c)}formatTimeline(e,r,n,i,s){if(e.length===0)return n?`Found observation matching "${n}", but no timeline context available.`:"No timeline items found";let o=[];if(n&&r){let u=e.find(d=>d.type==="observation"&&d.data.id===r),l=u?u.data.title||"Untitled":"Unknown";o.push(`# Timeline for query: "${n}"`),o.push(`**Anchor:** Observation #${r} - ${l}`)}else r?o.push(`# Timeline around anchor: ${r}`):o.push("# Timeline");i!==void 0&&s!==void 0?o.push(`**Window:** ${i} records before \u2192 ${s} records after | **Items:** ${e.length}`):o.push(`**Items:** ${e.length}`),o.push(""),o.push("**Legend:** \u{1F3AF} session-request | \u{1F534} bugfix | \u{1F7E3} feature | \u{1F504} refactor | \u2705 change | \u{1F535} discovery | \u{1F9E0} decision"),o.push("");let a=new Map;for(let u of e){let l=this.formatDate(u.epoch);a.has(l)||a.set(l,[]),a.get(l).push(u)}let c=Array.from(a.entries()).sort((u,l)=>{let d=new Date(u[0]).getTime(),p=new Date(l[0]).getTime();return d-p});for(let[u,l]of c){o.push(`### ${u}`),o.push("");let d=null,p="",m=!1;for(let f of l){let g=typeof r=="number"&&f.type==="observation"&&f.data.id===r||typeof r=="string"&&r.startsWith("S")&&f.type==="session"&&`S${f.data.id}`===r;if(f.type==="session"){m&&(o.push(""),m=!1,d=null,p="");let h=f.data,v=h.request||"Session summary",x=g?" \u2190 **ANCHOR**":"";o.push(`**\u{1F3AF} #S${h.id}** ${v} (${this.formatDateTime(f.epoch)})${x}`),o.push("")}else if(f.type==="prompt"){m&&(o.push(""),m=!1,d=null,p="");let h=f.data,v=h.prompt_text.length>100?h.prompt_text.substring(0,100)+"...":h.prompt_text;o.push(`**\u{1F4AC} User Prompt #${h.prompt_number}** (${this.formatDateTime(f.epoch)})`),o.push(`> ${v}`),o.push("")}else if(f.type==="observation"){let h=f.data,v="General";v!==d&&(m&&o.push(""),o.push(`**${v}**`),o.push("| ID | Time | T | Title | Tokens |"),o.push("|----|------|---|-------|--------|"),d=v,m=!0,p="");let x=this.getTypeIcon(h.type),b=this.formatTime(f.epoch),_=h.title||"Untitled",S=this.estimateTokens(h.narrative),E=b!==p?b:"\u2033";p=b;let $=g?" \u2190 **ANCHOR**":"";o.push(`| #${h.id} | ${E} | ${x} | ${_}${$} | ~${S} |`)}}m&&o.push("")}return o.join(` +`)}getTypeIcon(e){return He.getInstance().getTypeIcon(e)}formatDate(e){return new Date(e).toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric"})}formatTime(e){return new Date(e).toLocaleString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0})}formatDateTime(e){return new Date(e).toLocaleString("en-US",{month:"short",day:"numeric",hour:"numeric",minute:"2-digit",hour12:!0})}estimateTokens(e){return e?Math.ceil(e.length/4):0}};var Xg=class{constructor(e,r){this.sseBroadcaster=e;this.workerService=r}broadcastNewPrompt(e){this.sseBroadcaster.broadcast({type:"new_prompt",prompt:e}),this.sseBroadcaster.broadcast({type:"processing_status",isProcessing:!0}),this.workerService.broadcastProcessingStatus()}broadcastSessionStarted(e,r){this.sseBroadcaster.broadcast({type:"session_started",sessionDbId:e,project:r}),this.workerService.broadcastProcessingStatus()}broadcastObservationQueued(e){this.sseBroadcaster.broadcast({type:"observation_queued",sessionDbId:e}),this.workerService.broadcastProcessingStatus()}broadcastSessionCompleted(e){this.sseBroadcaster.broadcast({type:"session_completed",timestamp:Date.now(),sessionDbId:e}),this.workerService.broadcastProcessingStatus()}broadcastSummarizeQueued(){this.workerService.broadcastProcessingStatus()}};var dq=Ue(tg(),1),Yg=Ue(require("path"),1),ev=require("fs");Nt();oe();var Nr=class{wrapHandler(e){return(r,n)=>{try{let i=e(r,n);i instanceof Promise&&i.catch(s=>this.handleError(n,s))}catch(i){y.error("HTTP","Route handler error",{path:r.path},i),this.handleError(n,i)}}}parseIntParam(e,r,n){let i=parseInt(e.params[n],10);return isNaN(i)?(this.badRequest(r,`Invalid ${n}`),null):i}validateRequired(e,r,n){for(let i of n)if(e.body[i]===void 0||e.body[i]===null)return this.badRequest(r,`Missing ${i}`),!1;return!0}badRequest(e,r){e.status(400).json({error:r})}notFound(e,r){e.status(404).json({error:r})}handleError(e,r,n){y.failure("WORKER",n||"Request failed",{},r),e.headersSent||e.status(500).json({error:r.message})}};var Qg=class extends Nr{constructor(r,n,i){super();this.sseBroadcaster=r;this.dbManager=n;this.sessionManager=i}setupRoutes(r){let n=tn();r.use(dq.default.static(Yg.default.join(n,"ui"))),r.get("/health",this.handleHealth.bind(this)),r.get("/",this.handleViewerUI.bind(this)),r.get("/stream",this.handleSSEStream.bind(this))}handleHealth=this.wrapHandler((r,n)=>{n.json({status:"ok",timestamp:Date.now()})});handleViewerUI=this.wrapHandler((r,n)=>{let i=tn(),o=[Yg.default.join(i,"ui","viewer.html"),Yg.default.join(i,"plugin","ui","viewer.html")].find(c=>(0,ev.existsSync)(c));if(!o)throw new Error("Viewer UI not found at any expected location");let a=(0,ev.readFileSync)(o,"utf-8");n.setHeader("Content-Type","text/html"),n.send(a)});handleSSEStream=this.wrapHandler((r,n)=>{n.setHeader("Content-Type","text/event-stream"),n.setHeader("Cache-Control","no-cache"),n.setHeader("Connection","keep-alive"),this.sseBroadcaster.addClient(n);let i=this.dbManager.getSessionStore().getAllProjects();this.sseBroadcaster.broadcast({type:"initial_load",projects:i,timestamp:Date.now()});let s=this.sessionManager.isAnySessionProcessing(),o=this.sessionManager.getTotalActiveWork();this.sseBroadcaster.broadcast({type:"processing_status",isProcessing:s,queueDepth:o})})};Or();oe();oe();var pq=100;function Yhe(t){let e=(t.match(//g)||[]).length,r=(t.match(//g)||[]).length,n=(t.match(//g)||[]).length,i=(t.match(//g)||[]).length;return e+r+n+i}function mq(t){let e=Yhe(t);return e>pq&&y.warn("SYSTEM","tag count exceeds limit",void 0,{tagCount:e,maxAllowed:pq,contentLength:t.length}),t.replace(/[\s\S]*?<\/claude-mem-context>/g,"").replace(/[\s\S]*?<\/private>/g,"").replace(/[\s\S]*?<\/system_instruction>/g,"").replace(/[\s\S]*?<\/system-instruction>/g,"").trim()}function o$(t){return mq(t)}function fq(t){return mq(t)}var tv=class{constructor(e,r){this.sessionManager=e;this.eventBroadcaster=r}async completeByDbId(e){await this.sessionManager.deleteSession(e),this.eventBroadcaster.broadcastSessionCompleted(e)}};oe();var gp=class{static checkUserPromptPrivacy(e,r,n,i,s,o){let a=e.getUserPrompt(r,n);return!a||a.trim()===""?(y.debug("HOOK",`Skipping ${i} - user prompt was entirely private`,{sessionId:s,promptNumber:n,...o}),null):a}};Yt();Nt();var rv=class t extends Nr{constructor(r,n,i,s,o,a,c){super();this.sessionManager=r;this.dbManager=n;this.sdkAgent=i;this.geminiAgent=s;this.openRouterAgent=o;this.eventBroadcaster=a;this.workerService=c;this.completionHandler=new tv(r,a)}completionHandler;spawnInProgress=new Map;crashRecoveryScheduled=new Set;getActiveAgent(){if(eu()){if(Go())return y.debug("SESSION","Using OpenRouter agent"),this.openRouterAgent;throw new Error("OpenRouter provider selected but no API key configured. Set CLAUDE_MEM_OPENROUTER_API_KEY in settings or OPENROUTER_API_KEY environment variable.")}if(Qc()){if(Vo())return y.debug("SESSION","Using Gemini agent"),this.geminiAgent;throw new Error("Gemini provider selected but no API key configured. Set CLAUDE_MEM_GEMINI_API_KEY in settings or GEMINI_API_KEY environment variable.")}return this.sdkAgent}getSelectedProvider(){return eu()&&Go()?"openrouter":Qc()&&Vo()?"gemini":"claude"}static STALE_GENERATOR_THRESHOLD_MS=3e4;ensureGeneratorRunning(r,n){let i=this.sessionManager.getSession(r);if(!i)return;if(this.spawnInProgress.get(r)){y.debug("SESSION","Spawn already in progress, skipping",{sessionDbId:r,source:n});return}let s=this.getSelectedProvider();if(!i.generatorPromise){this.spawnInProgress.set(r,!0),this.startGeneratorWithProvider(i,s,n);return}let o=Date.now()-i.lastGeneratorActivity;if(o>t.STALE_GENERATOR_THRESHOLD_MS){y.warn("SESSION","Stale generator detected, aborting to prevent queue stall (#1099)",{sessionId:r,timeSinceActivityMs:o,thresholdMs:t.STALE_GENERATOR_THRESHOLD_MS,source:n}),i.abortController.abort(),i.generatorPromise=null,i.abortController=new AbortController,i.lastGeneratorActivity=Date.now(),this.spawnInProgress.set(r,!0),this.startGeneratorWithProvider(i,s,"stale-recovery");return}i.currentProvider&&i.currentProvider!==s&&y.info("SESSION","Provider changed, will switch after current generator finishes",{sessionId:r,currentProvider:i.currentProvider,selectedProvider:s,historyLength:i.conversationHistory.length})}startGeneratorWithProvider(r,n,i){if(!r)return;r.abortController.signal.aborted&&(y.debug("SESSION","Resetting aborted AbortController before starting generator",{sessionId:r.sessionDbId}),r.abortController=new AbortController);let s=n==="openrouter"?this.openRouterAgent:n==="gemini"?this.geminiAgent:this.sdkAgent,o=n==="openrouter"?"OpenRouter":n==="gemini"?"Gemini":"Claude SDK",c=this.sessionManager.getPendingMessageStore().getPendingCount(r.sessionDbId);y.info("SESSION",`Generator auto-starting (${i}) using ${o}`,{sessionId:r.sessionDbId,queueDepth:c,historyLength:r.conversationHistory.length}),r.currentProvider=n,r.lastGeneratorActivity=Date.now(),r.generatorPromise=s.startSession(r,this.workerService).catch(u=>{if(r.abortController.signal.aborted)return;y.error("SESSION","Generator failed",{sessionId:r.sessionDbId,provider:n,error:u.message},u);let l=this.sessionManager.getPendingMessageStore();try{let d=l.markSessionMessagesFailed(r.sessionDbId);d>0&&y.error("SESSION","Marked messages as failed after generator error",{sessionId:r.sessionDbId,failedCount:d})}catch(d){y.error("SESSION","Failed to mark messages as failed",{sessionId:r.sessionDbId},d)}}).finally(async()=>{let u=qs(r.sessionDbId);u&&!u.process.killed&&u.process.exitCode===null&&await Fs(u,5e3);let l=r.sessionDbId;this.spawnInProgress.delete(l);let d=r.abortController.signal.aborted;if(d?y.info("SESSION","Generator aborted",{sessionId:l}):y.error("SESSION","Generator exited unexpectedly",{sessionId:l}),r.generatorPromise=null,r.currentProvider=null,this.workerService.broadcastProcessingStatus(),!d)try{let m=this.sessionManager.getPendingMessageStore().getPendingCount(l),f=3;if(m>0){if(this.crashRecoveryScheduled.has(l)){y.debug("SESSION","Crash recovery already scheduled",{sessionDbId:l});return}if(r.consecutiveRestarts=(r.consecutiveRestarts||0)+1,r.consecutiveRestarts>f){y.error("SESSION","CRITICAL: Generator restart limit exceeded - stopping to prevent runaway costs",{sessionId:l,pendingCount:m,consecutiveRestarts:r.consecutiveRestarts,maxRestarts:f,action:"Generator will NOT restart. Check logs for root cause. Messages remain in pending state."}),r.abortController.abort();return}y.info("SESSION","Restarting generator after crash/exit with pending work",{sessionId:l,pendingCount:m,consecutiveRestarts:r.consecutiveRestarts,maxRestarts:f});let g=r.abortController;r.abortController=new AbortController,g.abort(),this.crashRecoveryScheduled.add(l);let h=Math.min(1e3*Math.pow(2,r.consecutiveRestarts-1),8e3);setTimeout(()=>{this.crashRecoveryScheduled.delete(l);let v=this.sessionManager.getSession(l);v&&!v.generatorPromise&&this.startGeneratorWithProvider(v,this.getSelectedProvider(),"crash-recovery")},h)}else r.abortController.abort(),r.consecutiveRestarts=0,y.debug("SESSION","Aborted controller after natural completion",{sessionId:l})}catch(p){y.debug("SESSION","Error during recovery check, aborting to prevent leaks",{sessionId:l,error:p instanceof Error?p.message:String(p)}),r.abortController.abort()}})}setupRoutes(r){r.post("/sessions/:sessionDbId/init",this.handleSessionInit.bind(this)),r.post("/sessions/:sessionDbId/observations",this.handleObservations.bind(this)),r.post("/sessions/:sessionDbId/summarize",this.handleSummarize.bind(this)),r.get("/sessions/:sessionDbId/status",this.handleSessionStatus.bind(this)),r.delete("/sessions/:sessionDbId",this.handleSessionDelete.bind(this)),r.post("/sessions/:sessionDbId/complete",this.handleSessionComplete.bind(this)),r.post("/api/sessions/init",this.handleSessionInitByClaudeId.bind(this)),r.post("/api/sessions/observations",this.handleObservationsByClaudeId.bind(this)),r.post("/api/sessions/summarize",this.handleSummarizeByClaudeId.bind(this)),r.post("/api/sessions/complete",this.handleCompleteByClaudeId.bind(this))}handleSessionInit=this.wrapHandler((r,n)=>{let i=this.parseIntParam(r,n,"sessionDbId");if(i===null)return;let{userPrompt:s,promptNumber:o}=r.body;y.info("HTTP","SessionRoutes: handleSessionInit called",{sessionDbId:i,promptNumber:o,has_userPrompt:!!s});let a=this.sessionManager.initializeSession(i,s,o),c=this.dbManager.getSessionStore().getLatestUserPrompt(a.contentSessionId);if(c){this.eventBroadcaster.broadcastNewPrompt({id:c.id,content_session_id:c.content_session_id,project:c.project,prompt_number:c.prompt_number,prompt_text:c.prompt_text,created_at_epoch:c.created_at_epoch});let u=Date.now(),l=c.prompt_text;this.dbManager.getChromaSync()?.syncUserPrompt(c.id,c.memory_session_id,c.project,l,c.prompt_number,c.created_at_epoch).then(()=>{let d=Date.now()-u,p=l.length>60?l.substring(0,60)+"...":l;y.debug("CHROMA","User prompt synced",{promptId:c.id,duration:`${d}ms`,prompt:p})}).catch(d=>{y.error("CHROMA","User prompt sync failed, continuing without vector search",{promptId:c.id,prompt:l.length>60?l.substring(0,60)+"...":l},d)})}this.ensureGeneratorRunning(i,"init"),this.eventBroadcaster.broadcastSessionStarted(i,a.project),n.json({status:"initialized",sessionDbId:i,port:Fr()})});handleObservations=this.wrapHandler((r,n)=>{let i=this.parseIntParam(r,n,"sessionDbId");if(i===null)return;let{tool_name:s,tool_input:o,tool_response:a,prompt_number:c,cwd:u}=r.body;this.sessionManager.queueObservation(i,{tool_name:s,tool_input:o,tool_response:a,prompt_number:c,cwd:u}),this.ensureGeneratorRunning(i,"observation"),this.eventBroadcaster.broadcastObservationQueued(i),n.json({status:"queued"})});handleSummarize=this.wrapHandler((r,n)=>{let i=this.parseIntParam(r,n,"sessionDbId");if(i===null)return;let{last_assistant_message:s}=r.body;this.sessionManager.queueSummarize(i,s),this.ensureGeneratorRunning(i,"summarize"),this.eventBroadcaster.broadcastSummarizeQueued(),n.json({status:"queued"})});handleSessionStatus=this.wrapHandler((r,n)=>{let i=this.parseIntParam(r,n,"sessionDbId");if(i===null)return;let s=this.sessionManager.getSession(i);if(!s){n.json({status:"not_found"});return}let a=this.sessionManager.getPendingMessageStore().getPendingCount(i);n.json({status:"active",sessionDbId:i,project:s.project,queueLength:a,uptime:Date.now()-s.startTime})});handleSessionDelete=this.wrapHandler(async(r,n)=>{let i=this.parseIntParam(r,n,"sessionDbId");i!==null&&(await this.completionHandler.completeByDbId(i),n.json({status:"deleted"}))});handleSessionComplete=this.wrapHandler(async(r,n)=>{let i=this.parseIntParam(r,n,"sessionDbId");i!==null&&(await this.completionHandler.completeByDbId(i),n.json({success:!0}))});handleObservationsByClaudeId=this.wrapHandler((r,n)=>{let{contentSessionId:i,tool_name:s,tool_input:o,tool_response:a,cwd:c}=r.body;if(!i)return this.badRequest(n,"Missing contentSessionId");let u=_e.loadFromFile(At);if(new Set(u.CLAUDE_MEM_SKIP_TOOLS.split(",").map(p=>p.trim()).filter(Boolean)).has(s)){y.debug("SESSION","Skipping observation for tool",{tool_name:s}),n.json({status:"skipped",reason:"tool_excluded"});return}if(new Set(["Edit","Write","Read","NotebookEdit"]).has(s)&&o){let p=o.file_path||o.notebook_path;if(p&&p.includes("session-memory")){y.debug("SESSION","Skipping meta-observation for session-memory file",{tool_name:s,file_path:p}),n.json({status:"skipped",reason:"session_memory_meta"});return}}try{let p=this.dbManager.getSessionStore(),m=p.createSDKSession(i,"",""),f=p.getPromptNumberFromUserPrompts(i);if(!gp.checkUserPromptPrivacy(p,i,f,"observation",m,{tool_name:s})){n.json({status:"skipped",reason:"private"});return}let h=o!==void 0?o$(JSON.stringify(o)):"{}",v=a!==void 0?o$(JSON.stringify(a)):"{}";this.sessionManager.queueObservation(m,{tool_name:s,tool_input:h,tool_response:v,prompt_number:f,cwd:c||(y.error("SESSION","Missing cwd when queueing observation in SessionRoutes",{sessionId:m,tool_name:s}),"")}),this.ensureGeneratorRunning(m,"observation"),this.eventBroadcaster.broadcastObservationQueued(m),n.json({status:"queued"})}catch(p){y.error("SESSION","Observation storage failed",{contentSessionId:i,tool_name:s},p),n.json({stored:!1,reason:p.message})}});handleSummarizeByClaudeId=this.wrapHandler((r,n)=>{let{contentSessionId:i,last_assistant_message:s}=r.body;if(!i)return this.badRequest(n,"Missing contentSessionId");let o=this.dbManager.getSessionStore(),a=o.createSDKSession(i,"",""),c=o.getPromptNumberFromUserPrompts(i);if(!gp.checkUserPromptPrivacy(o,i,c,"summarize",a)){n.json({status:"skipped",reason:"private"});return}this.sessionManager.queueSummarize(a,s),this.ensureGeneratorRunning(a,"summarize"),this.eventBroadcaster.broadcastSummarizeQueued(),n.json({status:"queued"})});handleCompleteByClaudeId=this.wrapHandler(async(r,n)=>{let{contentSessionId:i}=r.body;if(y.info("HTTP","\u2192 POST /api/sessions/complete",{contentSessionId:i}),!i)return this.badRequest(n,"Missing contentSessionId");let o=this.dbManager.getSessionStore().createSDKSession(i,"","");if(!this.sessionManager.getSession(o)){y.debug("SESSION","session-complete: Session not in active map",{contentSessionId:i,sessionDbId:o}),n.json({status:"skipped",reason:"not_active"});return}await this.completionHandler.completeByDbId(o),y.info("SESSION","Session completed via API",{contentSessionId:i,sessionDbId:o}),n.json({status:"completed",sessionDbId:o})});handleSessionInitByClaudeId=this.wrapHandler((r,n)=>{let{contentSessionId:i}=r.body,s=r.body.project||"unknown",o=r.body.prompt||"[media prompt]",a=r.body.customTitle||void 0;if(y.info("HTTP","SessionRoutes: handleSessionInitByClaudeId called",{contentSessionId:i,project:s,prompt_length:o?.length,customTitle:a}),!this.validateRequired(r,n,["contentSessionId"]))return;let c=this.dbManager.getSessionStore(),u=c.createSDKSession(i,s,o,a),l=c.getSessionById(u),d=!l?.memory_session_id;y.info("SESSION",`CREATED | contentSessionId=${i} \u2192 sessionDbId=${u} | isNew=${d} | project=${s}`,{sessionId:u});let m=c.getPromptNumberFromUserPrompts(i)+1,f=l?.memory_session_id||null;m>1?y.debug("HTTP",`[ALIGNMENT] DB Lookup Proof | contentSessionId=${i} \u2192 memorySessionId=${f||"(not yet captured)"} | prompt#=${m}`):y.debug("HTTP",`[ALIGNMENT] New Session | contentSessionId=${i} | prompt#=${m} | memorySessionId will be captured on first SDK response`);let g=fq(o);if(!g||g.trim()===""){y.debug("HOOK","Session init - prompt entirely private",{sessionId:u,promptNumber:m,originalLength:o.length}),n.json({sessionDbId:u,promptNumber:m,skipped:!0,reason:"private"});return}c.saveUserPrompt(i,m,g);let h=this.sessionManager.getSession(u)!==void 0;y.debug("SESSION","User prompt saved",{sessionId:u,promptNumber:m,contextInjected:h}),n.json({sessionDbId:u,promptNumber:m,skipped:!1,contextInjected:h})})};var a$=Ue(require("path"),1),tu=require("fs");oe();var vq=require("os");Nt();Or();function hq(t,e,r){let n=`%${e}%`,i=r?.limit??30,s=[n,n],o="";return r?.projects?.length&&(o=`AND project IN (${r.projects.map(()=>"?").join(",")})`,s.push(...r.projects)),t.prepare(` + SELECT * + FROM observations + WHERE ( + EXISTS (SELECT 1 FROM json_each(files_read) WHERE value LIKE ?) + OR EXISTS (SELECT 1 FROM json_each(files_modified) WHERE value LIKE ?) + ) + ${o} + ORDER BY created_at_epoch DESC + LIMIT ${i} + `).all(...s)}var nv=new Map;function Qhe(){let t=Date.now();for(let[e,r]of nv)t-r.createdAt>144e5&&nv.delete(e)}function gq(t,e){Qhe();let r=e.replace(/\\/g,"/"),n=nv.get(t);return n||(n={files:new Set,createdAt:Date.now()},nv.set(t,n)),n.files.has(r)?!1:(n.files.add(r),!0)}var iv=class extends Nr{constructor(r,n,i,s,o,a){super();this.paginationHelper=r;this.dbManager=n;this.sessionManager=i;this.sseBroadcaster=s;this.workerService=o;this.startTime=a}setupRoutes(r){r.get("/api/observations",this.handleGetObservations.bind(this)),r.get("/api/summaries",this.handleGetSummaries.bind(this)),r.get("/api/prompts",this.handleGetPrompts.bind(this)),r.get("/api/observation/:id",this.handleGetObservationById.bind(this)),r.get("/api/observations/by-file",this.handleGetObservationsByFile.bind(this)),r.post("/api/observations/batch",this.handleGetObservationsByIds.bind(this)),r.get("/api/session/:id",this.handleGetSessionById.bind(this)),r.post("/api/sdk-sessions/batch",this.handleGetSdkSessionsByIds.bind(this)),r.get("/api/prompt/:id",this.handleGetPromptById.bind(this)),r.get("/api/stats",this.handleGetStats.bind(this)),r.get("/api/projects",this.handleGetProjects.bind(this)),r.get("/api/processing-status",this.handleGetProcessingStatus.bind(this)),r.post("/api/processing",this.handleSetProcessing.bind(this)),r.get("/api/pending-queue",this.handleGetPendingQueue.bind(this)),r.post("/api/pending-queue/process",this.handleProcessPendingQueue.bind(this)),r.delete("/api/pending-queue/failed",this.handleClearFailedQueue.bind(this)),r.delete("/api/pending-queue/all",this.handleClearAllQueue.bind(this)),r.post("/api/import",this.handleImport.bind(this)),r.post("/api/file-context/gate",this.handleFileContextGate.bind(this))}handleGetObservations=this.wrapHandler((r,n)=>{let{offset:i,limit:s,project:o}=this.parsePaginationParams(r),a=this.paginationHelper.getObservations(i,s,o);n.json(a)});handleGetSummaries=this.wrapHandler((r,n)=>{let{offset:i,limit:s,project:o}=this.parsePaginationParams(r),a=this.paginationHelper.getSummaries(i,s,o);n.json(a)});handleGetPrompts=this.wrapHandler((r,n)=>{let{offset:i,limit:s,project:o}=this.parsePaginationParams(r),a=this.paginationHelper.getPrompts(i,s,o);n.json(a)});handleGetObservationById=this.wrapHandler((r,n)=>{let i=this.parseIntParam(r,n,"id");if(i===null)return;let o=this.dbManager.getSessionStore().getObservationById(i);if(!o){this.notFound(n,`Observation #${i} not found`);return}n.json(o)});handleGetObservationsByFile=this.wrapHandler((r,n)=>{let i=r.query.path;if(!i){this.badRequest(n,"path query parameter is required");return}let s=r.query.projects,o=s?s.split(",").filter(Boolean):void 0,a=r.query.limit?parseInt(r.query.limit,10):void 0,c=this.dbManager.getSessionStore().db,u=hq(c,i,{projects:o,limit:a});n.json({observations:u,count:u.length})});handleGetObservationsByIds=this.wrapHandler((r,n)=>{let{ids:i,orderBy:s,limit:o,project:a}=r.body;if(typeof i=="string")try{i=JSON.parse(i)}catch{i=i.split(",").map(Number)}if(!i||!Array.isArray(i)){this.badRequest(n,"ids must be an array of numbers");return}if(i.length===0){n.json([]);return}if(!i.every(l=>typeof l=="number"&&Number.isInteger(l))){this.badRequest(n,"All ids must be integers");return}let u=this.dbManager.getSessionStore().getObservationsByIds(i,{orderBy:s,limit:o,project:a});n.json(u)});handleGetSessionById=this.wrapHandler((r,n)=>{let i=this.parseIntParam(r,n,"id");if(i===null)return;let o=this.dbManager.getSessionStore().getSessionSummariesByIds([i]);if(o.length===0){this.notFound(n,`Session #${i} not found`);return}n.json(o[0])});handleGetSdkSessionsByIds=this.wrapHandler((r,n)=>{let{memorySessionIds:i}=r.body;if(typeof i=="string")try{i=JSON.parse(i)}catch{i=i.split(",").map(a=>a.trim())}if(!Array.isArray(i)){this.badRequest(n,"memorySessionIds must be an array");return}let o=this.dbManager.getSessionStore().getSdkSessionsBySessionIds(i);n.json(o)});handleGetPromptById=this.wrapHandler((r,n)=>{let i=this.parseIntParam(r,n,"id");if(i===null)return;let o=this.dbManager.getSessionStore().getUserPromptsByIds([i]);if(o.length===0){this.notFound(n,`Prompt #${i} not found`);return}n.json(o[0])});handleGetStats=this.wrapHandler((r,n)=>{let i=this.dbManager.getSessionStore().db,s=tn(),o=a$.default.join(s,"package.json"),c=JSON.parse((0,tu.readFileSync)(o,"utf-8")).version,u=i.prepare("SELECT COUNT(*) as count FROM observations").get(),l=i.prepare("SELECT COUNT(*) as count FROM sdk_sessions").get(),d=i.prepare("SELECT COUNT(*) as count FROM session_summaries").get(),p=a$.default.join((0,vq.homedir)(),".claude-mem","claude-mem.db"),m=0;(0,tu.existsSync)(p)&&(m=(0,tu.statSync)(p).size);let f=Math.floor((Date.now()-this.startTime)/1e3),g=this.sessionManager.getActiveSessionCount(),h=this.sseBroadcaster.getClientCount();n.json({worker:{version:c,uptime:f,activeSessions:g,sseClients:h,port:Fr()},database:{path:p,size:m,observations:u.count,sessions:l.count,summaries:d.count}})});handleGetProjects=this.wrapHandler((r,n)=>{let o=this.dbManager.getSessionStore().db.prepare(` SELECT DISTINCT project FROM observations WHERE project IS NOT NULL GROUP BY project ORDER BY MAX(created_at_epoch) DESC - `).all(); - const projects = rows.map((row) => row.project); - res.json({ projects }); - }); - handleGetProcessingStatus = this.wrapHandler((req, res) => { - const isProcessing = this.sessionManager.isAnySessionProcessing(); - const queueDepth = this.sessionManager.getTotalActiveWork(); - res.json({ isProcessing, queueDepth }); - }); - handleSetProcessing = this.wrapHandler((req, res) => { - this.workerService.broadcastProcessingStatus(); - const isProcessing = this.sessionManager.isAnySessionProcessing(); - const queueDepth = this.sessionManager.getTotalQueueDepth(); - const activeSessions = this.sessionManager.getActiveSessionCount(); - res.json({ status: "ok", isProcessing, queueDepth, activeSessions }); - }); - parsePaginationParams(req) { - const offset = parseInt(req.query.offset, 10) || 0; - const limit = Math.min(parseInt(req.query.limit, 10) || 20, 100); - const project = req.query.project; - return { offset, limit, project }; - } - handleImport = this.wrapHandler((req, res) => { - const { sessions, summaries, observations, prompts } = req.body; - const stats = { - sessionsImported: 0, - sessionsSkipped: 0, - summariesImported: 0, - summariesSkipped: 0, - observationsImported: 0, - observationsSkipped: 0, - promptsImported: 0, - promptsSkipped: 0 - }; - const store = this.dbManager.getSessionStore(); - if (Array.isArray(sessions)) { - for (const session of sessions) { - const result = store.importSdkSession(session); - if (result.imported) { - stats.sessionsImported++; - } else { - stats.sessionsSkipped++; - } - } - } - if (Array.isArray(summaries)) { - for (const summary of summaries) { - const result = store.importSessionSummary(summary); - if (result.imported) { - stats.summariesImported++; - } else { - stats.summariesSkipped++; - } - } - } - if (Array.isArray(observations)) { - for (const obs of observations) { - const result = store.importObservation(obs); - if (result.imported) { - stats.observationsImported++; - } else { - stats.observationsSkipped++; - } - } - } - if (Array.isArray(prompts)) { - for (const prompt of prompts) { - const result = store.importUserPrompt(prompt); - if (result.imported) { - stats.promptsImported++; - } else { - stats.promptsSkipped++; - } - } - } - res.json({ - success: true, - stats - }); - }); - handleGetPendingQueue = this.wrapHandler((req, res) => { - const { PendingMessageStore: PendingMessageStore2 } = (init_PendingMessageStore(), __toCommonJS(exports_PendingMessageStore)); - const pendingStore = new PendingMessageStore2(this.dbManager.getSessionStore().db, 3); - const queueMessages = pendingStore.getQueueMessages(); - const recentlyProcessed = pendingStore.getRecentlyProcessed(20, 30); - const stuckCount = pendingStore.getStuckCount(5 * 60 * 1000); - const sessionsWithPending = pendingStore.getSessionsWithPendingMessages(); - res.json({ - queue: { - messages: queueMessages, - totalPending: queueMessages.filter((m) => m.status === "pending").length, - totalProcessing: queueMessages.filter((m) => m.status === "processing").length, - totalFailed: queueMessages.filter((m) => m.status === "failed").length, - stuckCount - }, - recentlyProcessed, - sessionsWithPendingWork: sessionsWithPending - }); - }); - handleProcessPendingQueue = this.wrapHandler(async (req, res) => { - const sessionLimit = Math.min(Math.max(parseInt(req.body.sessionLimit, 10) || 10, 1), 100); - const result = await this.workerService.processPendingQueues(sessionLimit); - res.json({ - success: true, - ...result - }); - }); - handleClearFailedQueue = this.wrapHandler((req, res) => { - const { PendingMessageStore: PendingMessageStore2 } = (init_PendingMessageStore(), __toCommonJS(exports_PendingMessageStore)); - const pendingStore = new PendingMessageStore2(this.dbManager.getSessionStore().db, 3); - const clearedCount = pendingStore.clearFailed(); - logger.info("QUEUE", "Cleared failed queue messages", { clearedCount }); - res.json({ - success: true, - clearedCount - }); - }); - handleClearAllQueue = this.wrapHandler((req, res) => { - const { PendingMessageStore: PendingMessageStore2 } = (init_PendingMessageStore(), __toCommonJS(exports_PendingMessageStore)); - const pendingStore = new PendingMessageStore2(this.dbManager.getSessionStore().db, 3); - const clearedCount = pendingStore.clearAll(); - logger.warn("QUEUE", "Cleared ALL queue messages (pending, processing, failed)", { clearedCount }); - res.json({ - success: true, - clearedCount - }); - }); -} - -// src/services/worker/http/routes/SearchRoutes.ts -class SearchRoutes extends BaseRouteHandler { - searchManager; - constructor(searchManager) { - super(); - this.searchManager = searchManager; - } - setupRoutes(app) { - app.get("/api/search", this.handleUnifiedSearch.bind(this)); - app.get("/api/timeline", this.handleUnifiedTimeline.bind(this)); - app.get("/api/decisions", this.handleDecisions.bind(this)); - app.get("/api/changes", this.handleChanges.bind(this)); - app.get("/api/how-it-works", this.handleHowItWorks.bind(this)); - app.get("/api/search/observations", this.handleSearchObservations.bind(this)); - app.get("/api/search/sessions", this.handleSearchSessions.bind(this)); - app.get("/api/search/prompts", this.handleSearchPrompts.bind(this)); - app.get("/api/search/by-concept", this.handleSearchByConcept.bind(this)); - app.get("/api/search/by-file", this.handleSearchByFile.bind(this)); - app.get("/api/search/by-type", this.handleSearchByType.bind(this)); - app.get("/api/context/recent", this.handleGetRecentContext.bind(this)); - app.get("/api/context/timeline", this.handleGetContextTimeline.bind(this)); - app.get("/api/context/preview", this.handleContextPreview.bind(this)); - app.get("/api/context/inject", this.handleContextInject.bind(this)); - app.get("/api/timeline/by-query", this.handleGetTimelineByQuery.bind(this)); - app.get("/api/search/help", this.handleSearchHelp.bind(this)); - } - handleUnifiedSearch = this.wrapHandler(async (req, res) => { - const result = await this.searchManager.search(req.query); - res.json(result); - }); - handleUnifiedTimeline = this.wrapHandler(async (req, res) => { - const result = await this.searchManager.timeline(req.query); - res.json(result); - }); - handleDecisions = this.wrapHandler(async (req, res) => { - const result = await this.searchManager.decisions(req.query); - res.json(result); - }); - handleChanges = this.wrapHandler(async (req, res) => { - const result = await this.searchManager.changes(req.query); - res.json(result); - }); - handleHowItWorks = this.wrapHandler(async (req, res) => { - const result = await this.searchManager.howItWorks(req.query); - res.json(result); - }); - handleSearchObservations = this.wrapHandler(async (req, res) => { - const result = await this.searchManager.searchObservations(req.query); - res.json(result); - }); - handleSearchSessions = this.wrapHandler(async (req, res) => { - const result = await this.searchManager.searchSessions(req.query); - res.json(result); - }); - handleSearchPrompts = this.wrapHandler(async (req, res) => { - const result = await this.searchManager.searchUserPrompts(req.query); - res.json(result); - }); - handleSearchByConcept = this.wrapHandler(async (req, res) => { - const result = await this.searchManager.findByConcept(req.query); - res.json(result); - }); - handleSearchByFile = this.wrapHandler(async (req, res) => { - const result = await this.searchManager.findByFile(req.query); - res.json(result); - }); - handleSearchByType = this.wrapHandler(async (req, res) => { - const result = await this.searchManager.findByType(req.query); - res.json(result); - }); - handleGetRecentContext = this.wrapHandler(async (req, res) => { - const result = await this.searchManager.getRecentContext(req.query); - res.json(result); - }); - handleGetContextTimeline = this.wrapHandler(async (req, res) => { - const result = await this.searchManager.getContextTimeline(req.query); - res.json(result); - }); - handleContextPreview = this.wrapHandler(async (req, res) => { - const projectName = req.query.project; - if (!projectName) { - this.badRequest(res, "Project parameter is required"); - return; - } - const { generateContext: generateContext2 } = await Promise.resolve().then(() => (init_context_generator(), exports_context_generator)); - const cwd2 = `/preview/${projectName}`; - const contextText = await generateContext2({ - session_id: "preview-" + Date.now(), - cwd: cwd2 - }, true); - res.setHeader("Content-Type", "text/plain; charset=utf-8"); - res.send(contextText); - }); - handleContextInject = this.wrapHandler(async (req, res) => { - const projectsParam = req.query.projects || req.query.project; - const useColors = req.query.colors === "true"; - const full = req.query.full === "true"; - if (!projectsParam) { - this.badRequest(res, "Project(s) parameter is required"); - return; - } - const projects = projectsParam.split(",").map((p) => p.trim()).filter(Boolean); - if (projects.length === 0) { - this.badRequest(res, "At least one project is required"); - return; - } - const { generateContext: generateContext2 } = await Promise.resolve().then(() => (init_context_generator(), exports_context_generator)); - const primaryProject = projects[projects.length - 1]; - const cwd2 = `/context/${primaryProject}`; - const contextText = await generateContext2({ - session_id: "context-inject-" + Date.now(), - cwd: cwd2, - projects, - full - }, useColors); - res.setHeader("Content-Type", "text/plain; charset=utf-8"); - res.send(contextText); - }); - handleGetTimelineByQuery = this.wrapHandler(async (req, res) => { - const result = await this.searchManager.getTimelineByQuery(req.query); - res.json(result); - }); - handleSearchHelp = this.wrapHandler((req, res) => { - res.json({ - title: "Claude-Mem Search API", - description: "HTTP API for searching persistent memory", - endpoints: [ - { - path: "/api/search/observations", - method: "GET", - description: "Search observations using full-text search", - parameters: { - query: "Search query (required)", - limit: "Number of results (default: 20)", - project: "Filter by project name (optional)" - } - }, - { - path: "/api/search/sessions", - method: "GET", - description: "Search session summaries using full-text search", - parameters: { - query: "Search query (required)", - limit: "Number of results (default: 20)" - } - }, - { - path: "/api/search/prompts", - method: "GET", - description: "Search user prompts using full-text search", - parameters: { - query: "Search query (required)", - limit: "Number of results (default: 20)", - project: "Filter by project name (optional)" - } - }, - { - path: "/api/search/by-concept", - method: "GET", - description: "Find observations by concept tag", - parameters: { - concept: "Concept tag (required): discovery, decision, bugfix, feature, refactor", - limit: "Number of results (default: 10)", - project: "Filter by project name (optional)" - } - }, - { - path: "/api/search/by-file", - method: "GET", - description: "Find observations and sessions by file path", - parameters: { - filePath: "File path or partial path (required)", - limit: "Number of results per type (default: 10)", - project: "Filter by project name (optional)" - } - }, - { - path: "/api/search/by-type", - method: "GET", - description: "Find observations by type", - parameters: { - type: "Observation type (required): discovery, decision, bugfix, feature, refactor", - limit: "Number of results (default: 10)", - project: "Filter by project name (optional)" - } - }, - { - path: "/api/context/recent", - method: "GET", - description: "Get recent session context including summaries and observations", - parameters: { - project: "Project name (default: current directory)", - limit: "Number of recent sessions (default: 3)" - } - }, - { - path: "/api/context/timeline", - method: "GET", - description: "Get unified timeline around a specific point in time", - parameters: { - anchor: 'Anchor point: observation ID, session ID (e.g., "S123"), or ISO timestamp (required)', - depth_before: "Number of records before anchor (default: 10)", - depth_after: "Number of records after anchor (default: 10)", - project: "Filter by project name (optional)" - } - }, - { - path: "/api/timeline/by-query", - method: "GET", - description: "Search for best match, then get timeline around it", - parameters: { - query: "Search query (required)", - mode: 'Search mode: "auto", "observations", or "sessions" (default: "auto")', - depth_before: "Number of records before match (default: 10)", - depth_after: "Number of records after match (default: 10)", - project: "Filter by project name (optional)" - } - }, - { - path: "/api/search/help", - method: "GET", - description: "Get this help documentation" - } - ], - examples: [ - 'curl "http://localhost:37777/api/search/observations?query=authentication&limit=5"', - 'curl "http://localhost:37777/api/search/by-type?type=bugfix&limit=10"', - 'curl "http://localhost:37777/api/context/recent?project=claude-mem&limit=3"', - 'curl "http://localhost:37777/api/context/timeline?anchor=123&depth_before=5&depth_after=5"' - ] - }); - }); -} - -// src/services/worker/http/routes/SettingsRoutes.ts -init_paths(); -init_logger(); -import path22 from "path"; -import { readFileSync as readFileSync19, writeFileSync as writeFileSync8, existsSync as existsSync18, renameSync as renameSync4, mkdirSync as mkdirSync10 } from "fs"; -import { homedir as homedir17 } from "os"; - -// src/services/worker/BranchManager.ts -init_logger(); -init_paths(); -import { spawnSync } from "child_process"; -import { existsSync as existsSync17, unlinkSync as unlinkSync5 } from "fs"; -import { join as join9 } from "path"; -var INSTALLED_PLUGIN_PATH = MARKETPLACE_ROOT; -function isValidBranchName(branchName) { - if (!branchName || typeof branchName !== "string") { - return false; - } - const validBranchRegex = /^[a-zA-Z0-9][a-zA-Z0-9._/-]*$/; - return validBranchRegex.test(branchName) && !branchName.includes(".."); -} -var GIT_COMMAND_TIMEOUT_MS = 300000; -var NPM_INSTALL_TIMEOUT_MS = 600000; -function execGit(args) { - const result = spawnSync("git", args, { - cwd: INSTALLED_PLUGIN_PATH, - encoding: "utf-8", - timeout: GIT_COMMAND_TIMEOUT_MS, - windowsHide: true, - shell: false - }); - if (result.error) { - throw result.error; - } - if (result.status !== 0) { - throw new Error(result.stderr || result.stdout || "Git command failed"); - } - return result.stdout.trim(); -} -function execNpm(args, timeoutMs = NPM_INSTALL_TIMEOUT_MS) { - const isWindows = process.platform === "win32"; - const npmCmd = isWindows ? "npm.cmd" : "npm"; - const result = spawnSync(npmCmd, args, { - cwd: INSTALLED_PLUGIN_PATH, - encoding: "utf-8", - timeout: timeoutMs, - windowsHide: true, - shell: false - }); - if (result.error) { - throw result.error; - } - if (result.status !== 0) { - throw new Error(result.stderr || result.stdout || "npm command failed"); - } - return result.stdout.trim(); -} -function getBranchInfo() { - const gitDir = join9(INSTALLED_PLUGIN_PATH, ".git"); - if (!existsSync17(gitDir)) { - return { - branch: null, - isBeta: false, - isGitRepo: false, - isDirty: false, - canSwitch: false, - error: "Installed plugin is not a git repository" - }; - } - try { - const branch = execGit(["rev-parse", "--abbrev-ref", "HEAD"]); - const status = execGit(["status", "--porcelain"]); - const isDirty2 = status.length > 0; - const isBeta = branch.startsWith("beta"); - return { - branch, - isBeta, - isGitRepo: true, - isDirty: isDirty2, - canSwitch: true - }; - } catch (error3) { - logger.error("BRANCH", "Failed to get branch info", {}, error3); - return { - branch: null, - isBeta: false, - isGitRepo: true, - isDirty: false, - canSwitch: false, - error: error3.message - }; - } -} -async function switchBranch(targetBranch) { - if (!isValidBranchName(targetBranch)) { - return { - success: false, - error: `Invalid branch name: ${targetBranch}. Branch names must be alphanumeric with hyphens, underscores, slashes, or dots.` - }; - } - const info = getBranchInfo(); - if (!info.isGitRepo) { - return { - success: false, - error: "Installed plugin is not a git repository. Please reinstall." - }; - } - if (info.branch === targetBranch) { - return { - success: true, - branch: targetBranch, - message: `Already on branch ${targetBranch}` - }; - } - try { - logger.info("BRANCH", "Starting branch switch", { - from: info.branch, - to: targetBranch - }); - logger.debug("BRANCH", "Discarding local changes"); - execGit(["checkout", "--", "."]); - execGit(["clean", "-fd"]); - logger.debug("BRANCH", "Fetching from origin"); - execGit(["fetch", "origin"]); - logger.debug("BRANCH", "Checking out branch", { branch: targetBranch }); - try { - execGit(["checkout", targetBranch]); - } catch (error3) { - logger.debug("BRANCH", "Branch not local, tracking remote", { branch: targetBranch, error: error3 instanceof Error ? error3.message : String(error3) }); - execGit(["checkout", "-b", targetBranch, `origin/${targetBranch}`]); - } - logger.debug("BRANCH", "Pulling latest"); - execGit(["pull", "origin", targetBranch]); - const installMarker = join9(INSTALLED_PLUGIN_PATH, ".install-version"); - if (existsSync17(installMarker)) { - unlinkSync5(installMarker); - } - logger.debug("BRANCH", "Running npm install"); - execNpm(["install"], NPM_INSTALL_TIMEOUT_MS); - logger.success("BRANCH", "Branch switch complete", { - branch: targetBranch - }); - return { - success: true, - branch: targetBranch, - message: `Switched to ${targetBranch}. Worker will restart automatically.` - }; - } catch (error3) { - logger.error("BRANCH", "Branch switch failed", { targetBranch }, error3); - try { - if (info.branch && isValidBranchName(info.branch)) { - execGit(["checkout", info.branch]); - } - } catch (recoveryError) { - logger.error("BRANCH", "Recovery checkout also failed", { originalBranch: info.branch }, recoveryError); - } - return { - success: false, - error: `Branch switch failed: ${error3.message}` - }; - } -} -async function pullUpdates() { - const info = getBranchInfo(); - if (!info.isGitRepo || !info.branch) { - return { - success: false, - error: "Cannot pull updates: not a git repository" - }; - } - try { - if (!isValidBranchName(info.branch)) { - return { - success: false, - error: `Invalid current branch name: ${info.branch}` - }; - } - logger.info("BRANCH", "Pulling updates", { branch: info.branch }); - execGit(["checkout", "--", "."]); - execGit(["fetch", "origin"]); - execGit(["pull", "origin", info.branch]); - const installMarker = join9(INSTALLED_PLUGIN_PATH, ".install-version"); - if (existsSync17(installMarker)) { - unlinkSync5(installMarker); - } - execNpm(["install"], NPM_INSTALL_TIMEOUT_MS); - logger.success("BRANCH", "Updates pulled", { branch: info.branch }); - return { - success: true, - branch: info.branch, - message: `Updated ${info.branch}. Worker will restart automatically.` - }; - } catch (error3) { - logger.error("BRANCH", "Pull failed", {}, error3); - return { - success: false, - error: `Pull failed: ${error3.message}` - }; - } -} - -// src/services/worker/http/routes/SettingsRoutes.ts -init_SettingsDefaultsManager(); -init_worker_utils(); - -class SettingsRoutes extends BaseRouteHandler { - settingsManager; - constructor(settingsManager) { - super(); - this.settingsManager = settingsManager; - } - setupRoutes(app) { - app.get("/api/settings", this.handleGetSettings.bind(this)); - app.post("/api/settings", this.handleUpdateSettings.bind(this)); - app.get("/api/mcp/status", this.handleGetMcpStatus.bind(this)); - app.post("/api/mcp/toggle", this.handleToggleMcp.bind(this)); - app.get("/api/branch/status", this.handleGetBranchStatus.bind(this)); - app.post("/api/branch/switch", this.handleSwitchBranch.bind(this)); - app.post("/api/branch/update", this.handleUpdateBranch.bind(this)); - } - handleGetSettings = this.wrapHandler((req, res) => { - const settingsPath = path22.join(homedir17(), ".claude-mem", "settings.json"); - this.ensureSettingsFile(settingsPath); - const settings = SettingsDefaultsManager.loadFromFile(settingsPath); - res.json(settings); - }); - handleUpdateSettings = this.wrapHandler((req, res) => { - const validation = this.validateSettings(req.body); - if (!validation.valid) { - res.status(400).json({ - success: false, - error: validation.error - }); - return; - } - const settingsPath = path22.join(homedir17(), ".claude-mem", "settings.json"); - this.ensureSettingsFile(settingsPath); - let settings = {}; - if (existsSync18(settingsPath)) { - const settingsData = readFileSync19(settingsPath, "utf-8"); - try { - settings = JSON.parse(settingsData); - } catch (parseError) { - logger.error("SETTINGS", "Failed to parse settings file", { settingsPath }, parseError); - res.status(500).json({ - success: false, - error: "Settings file is corrupted. Delete ~/.claude-mem/settings.json to reset." - }); - return; - } - } - const settingKeys = [ - "CLAUDE_MEM_MODEL", - "CLAUDE_MEM_CONTEXT_OBSERVATIONS", - "CLAUDE_MEM_WORKER_PORT", - "CLAUDE_MEM_WORKER_HOST", - "CLAUDE_MEM_PROVIDER", - "CLAUDE_MEM_GEMINI_API_KEY", - "CLAUDE_MEM_GEMINI_MODEL", - "CLAUDE_MEM_GEMINI_RATE_LIMITING_ENABLED", - "CLAUDE_MEM_OPENROUTER_API_KEY", - "CLAUDE_MEM_OPENROUTER_MODEL", - "CLAUDE_MEM_OPENROUTER_SITE_URL", - "CLAUDE_MEM_OPENROUTER_APP_NAME", - "CLAUDE_MEM_OPENROUTER_MAX_CONTEXT_MESSAGES", - "CLAUDE_MEM_OPENROUTER_MAX_TOKENS", - "CLAUDE_MEM_DATA_DIR", - "CLAUDE_MEM_LOG_LEVEL", - "CLAUDE_MEM_PYTHON_VERSION", - "CLAUDE_CODE_PATH", - "CLAUDE_MEM_CONTEXT_SHOW_READ_TOKENS", - "CLAUDE_MEM_CONTEXT_SHOW_WORK_TOKENS", - "CLAUDE_MEM_CONTEXT_SHOW_SAVINGS_AMOUNT", - "CLAUDE_MEM_CONTEXT_SHOW_SAVINGS_PERCENT", - "CLAUDE_MEM_CONTEXT_OBSERVATION_TYPES", - "CLAUDE_MEM_CONTEXT_OBSERVATION_CONCEPTS", - "CLAUDE_MEM_CONTEXT_FULL_COUNT", - "CLAUDE_MEM_CONTEXT_FULL_FIELD", - "CLAUDE_MEM_CONTEXT_SESSION_COUNT", - "CLAUDE_MEM_CONTEXT_SHOW_LAST_SUMMARY", - "CLAUDE_MEM_CONTEXT_SHOW_LAST_MESSAGE", - "CLAUDE_MEM_FOLDER_CLAUDEMD_ENABLED" - ]; - for (const key of settingKeys) { - if (req.body[key] !== undefined) { - settings[key] = req.body[key]; - } - } - writeFileSync8(settingsPath, JSON.stringify(settings, null, 2), "utf-8"); - clearPortCache(); - logger.info("WORKER", "Settings updated"); - res.json({ success: true, message: "Settings updated successfully" }); - }); - handleGetMcpStatus = this.wrapHandler((req, res) => { - const enabled = this.isMcpEnabled(); - res.json({ enabled }); - }); - handleToggleMcp = this.wrapHandler((req, res) => { - const { enabled } = req.body; - if (typeof enabled !== "boolean") { - this.badRequest(res, "enabled must be a boolean"); - return; - } - this.toggleMcp(enabled); - res.json({ success: true, enabled: this.isMcpEnabled() }); - }); - handleGetBranchStatus = this.wrapHandler((req, res) => { - const info = getBranchInfo(); - res.json(info); - }); - handleSwitchBranch = this.wrapHandler(async (req, res) => { - const { branch } = req.body; - if (!branch) { - res.status(400).json({ success: false, error: "Missing branch parameter" }); - return; - } - const allowedBranches = ["main", "beta/7.0", "feature/bun-executable"]; - if (!allowedBranches.includes(branch)) { - res.status(400).json({ - success: false, - error: `Invalid branch. Allowed: ${allowedBranches.join(", ")}` - }); - return; - } - logger.info("WORKER", "Branch switch requested", { branch }); - const result = await switchBranch(branch); - if (result.success) { - setTimeout(() => { - logger.info("WORKER", "Restarting worker after branch switch"); - process.exit(0); - }, 1000); - } - res.json(result); - }); - handleUpdateBranch = this.wrapHandler(async (req, res) => { - logger.info("WORKER", "Branch update requested"); - const result = await pullUpdates(); - if (result.success) { - setTimeout(() => { - logger.info("WORKER", "Restarting worker after branch update"); - process.exit(0); - }, 1000); - } - res.json(result); - }); - validateSettings(settings) { - if (settings.CLAUDE_MEM_PROVIDER) { - const validProviders = ["claude", "gemini", "openrouter"]; - if (!validProviders.includes(settings.CLAUDE_MEM_PROVIDER)) { - return { valid: false, error: 'CLAUDE_MEM_PROVIDER must be "claude", "gemini", or "openrouter"' }; - } - } - if (settings.CLAUDE_MEM_GEMINI_MODEL) { - const validGeminiModels = ["gemini-2.5-flash-lite", "gemini-2.5-flash", "gemini-3-flash-preview"]; - if (!validGeminiModels.includes(settings.CLAUDE_MEM_GEMINI_MODEL)) { - return { valid: false, error: "CLAUDE_MEM_GEMINI_MODEL must be one of: gemini-2.5-flash-lite, gemini-2.5-flash, gemini-3-flash-preview" }; - } - } - if (settings.CLAUDE_MEM_CONTEXT_OBSERVATIONS) { - const obsCount = parseInt(settings.CLAUDE_MEM_CONTEXT_OBSERVATIONS, 10); - if (isNaN(obsCount) || obsCount < 1 || obsCount > 200) { - return { valid: false, error: "CLAUDE_MEM_CONTEXT_OBSERVATIONS must be between 1 and 200" }; - } - } - if (settings.CLAUDE_MEM_WORKER_PORT) { - const port = parseInt(settings.CLAUDE_MEM_WORKER_PORT, 10); - if (isNaN(port) || port < 1024 || port > 65535) { - return { valid: false, error: "CLAUDE_MEM_WORKER_PORT must be between 1024 and 65535" }; - } - } - if (settings.CLAUDE_MEM_WORKER_HOST) { - const host = settings.CLAUDE_MEM_WORKER_HOST; - const validHostPattern = /^(127\.0\.0\.1|0\.0\.0\.0|localhost|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})$/; - if (!validHostPattern.test(host)) { - return { valid: false, error: "CLAUDE_MEM_WORKER_HOST must be a valid IP address (e.g., 127.0.0.1, 0.0.0.0)" }; - } - } - if (settings.CLAUDE_MEM_LOG_LEVEL) { - const validLevels = ["DEBUG", "INFO", "WARN", "ERROR", "SILENT"]; - if (!validLevels.includes(settings.CLAUDE_MEM_LOG_LEVEL.toUpperCase())) { - return { valid: false, error: "CLAUDE_MEM_LOG_LEVEL must be one of: DEBUG, INFO, WARN, ERROR, SILENT" }; - } - } - if (settings.CLAUDE_MEM_PYTHON_VERSION) { - const pythonVersionRegex = /^3\.\d{1,2}$/; - if (!pythonVersionRegex.test(settings.CLAUDE_MEM_PYTHON_VERSION)) { - return { valid: false, error: 'CLAUDE_MEM_PYTHON_VERSION must be in format "3.X" or "3.XX" (e.g., "3.13")' }; - } - } - const booleanSettings = [ - "CLAUDE_MEM_CONTEXT_SHOW_READ_TOKENS", - "CLAUDE_MEM_CONTEXT_SHOW_WORK_TOKENS", - "CLAUDE_MEM_CONTEXT_SHOW_SAVINGS_AMOUNT", - "CLAUDE_MEM_CONTEXT_SHOW_SAVINGS_PERCENT", - "CLAUDE_MEM_CONTEXT_SHOW_LAST_SUMMARY", - "CLAUDE_MEM_CONTEXT_SHOW_LAST_MESSAGE" - ]; - for (const key of booleanSettings) { - if (settings[key] && !["true", "false"].includes(settings[key])) { - return { valid: false, error: `${key} must be "true" or "false"` }; - } - } - if (settings.CLAUDE_MEM_CONTEXT_FULL_COUNT) { - const count = parseInt(settings.CLAUDE_MEM_CONTEXT_FULL_COUNT, 10); - if (isNaN(count) || count < 0 || count > 20) { - return { valid: false, error: "CLAUDE_MEM_CONTEXT_FULL_COUNT must be between 0 and 20" }; - } - } - if (settings.CLAUDE_MEM_CONTEXT_SESSION_COUNT) { - const count = parseInt(settings.CLAUDE_MEM_CONTEXT_SESSION_COUNT, 10); - if (isNaN(count) || count < 1 || count > 50) { - return { valid: false, error: "CLAUDE_MEM_CONTEXT_SESSION_COUNT must be between 1 and 50" }; - } - } - if (settings.CLAUDE_MEM_CONTEXT_FULL_FIELD) { - if (!["narrative", "facts"].includes(settings.CLAUDE_MEM_CONTEXT_FULL_FIELD)) { - return { valid: false, error: 'CLAUDE_MEM_CONTEXT_FULL_FIELD must be "narrative" or "facts"' }; - } - } - if (settings.CLAUDE_MEM_OPENROUTER_MAX_CONTEXT_MESSAGES) { - const count = parseInt(settings.CLAUDE_MEM_OPENROUTER_MAX_CONTEXT_MESSAGES, 10); - if (isNaN(count) || count < 1 || count > 100) { - return { valid: false, error: "CLAUDE_MEM_OPENROUTER_MAX_CONTEXT_MESSAGES must be between 1 and 100" }; - } - } - if (settings.CLAUDE_MEM_OPENROUTER_MAX_TOKENS) { - const tokens = parseInt(settings.CLAUDE_MEM_OPENROUTER_MAX_TOKENS, 10); - if (isNaN(tokens) || tokens < 1000 || tokens > 1e6) { - return { valid: false, error: "CLAUDE_MEM_OPENROUTER_MAX_TOKENS must be between 1000 and 1000000" }; - } - } - if (settings.CLAUDE_MEM_OPENROUTER_SITE_URL) { - try { - new URL(settings.CLAUDE_MEM_OPENROUTER_SITE_URL); - } catch (error3) { - logger.debug("SETTINGS", "Invalid URL format", { url: settings.CLAUDE_MEM_OPENROUTER_SITE_URL, error: error3 instanceof Error ? error3.message : String(error3) }); - return { valid: false, error: "CLAUDE_MEM_OPENROUTER_SITE_URL must be a valid URL" }; - } - } - return { valid: true }; - } - isMcpEnabled() { - const packageRoot = getPackageRoot(); - const mcpPath = path22.join(packageRoot, "plugin", ".mcp.json"); - return existsSync18(mcpPath); - } - toggleMcp(enabled) { - const packageRoot = getPackageRoot(); - const mcpPath = path22.join(packageRoot, "plugin", ".mcp.json"); - const mcpDisabledPath = path22.join(packageRoot, "plugin", ".mcp.json.disabled"); - if (enabled && existsSync18(mcpDisabledPath)) { - renameSync4(mcpDisabledPath, mcpPath); - logger.info("WORKER", "MCP search server enabled"); - } else if (!enabled && existsSync18(mcpPath)) { - renameSync4(mcpPath, mcpDisabledPath); - logger.info("WORKER", "MCP search server disabled"); - } else { - logger.debug("WORKER", "MCP toggle no-op (already in desired state)", { enabled }); - } - } - ensureSettingsFile(settingsPath) { - if (!existsSync18(settingsPath)) { - const defaults = SettingsDefaultsManager.getAllDefaults(); - const dir = path22.dirname(settingsPath); - if (!existsSync18(dir)) { - mkdirSync10(dir, { recursive: true }); - } - writeFileSync8(settingsPath, JSON.stringify(defaults, null, 2), "utf-8"); - logger.info("SETTINGS", "Created settings file with defaults", { settingsPath }); - } - } -} - -// src/services/worker/http/routes/LogsRoutes.ts -init_logger(); -init_SettingsDefaultsManager(); -import { openSync as openSync2, fstatSync, readSync as readSync2, closeSync as closeSync2, existsSync as existsSync19, writeFileSync as writeFileSync9 } from "fs"; -import { join as join10 } from "path"; -function readLastLines(filePath, lineCount) { - const fd = openSync2(filePath, "r"); - try { - const stat = fstatSync(fd); - const fileSize = stat.size; - if (fileSize === 0) { - return { lines: "", totalEstimate: 0 }; - } - const INITIAL_CHUNK_SIZE = 64 * 1024; - const MAX_READ_SIZE = 10 * 1024 * 1024; - let readSize = Math.min(INITIAL_CHUNK_SIZE, fileSize); - let content = ""; - let newlineCount = 0; - while (readSize <= fileSize && readSize <= MAX_READ_SIZE) { - const startPosition = Math.max(0, fileSize - readSize); - const bytesToRead = fileSize - startPosition; - const buffer = Buffer.alloc(bytesToRead); - readSync2(fd, buffer, 0, bytesToRead, startPosition); - content = buffer.toString("utf-8"); - newlineCount = 0; - for (let i = 0;i < content.length; i++) { - if (content[i] === ` -`) - newlineCount++; - } - if (newlineCount >= lineCount || startPosition === 0) { - break; - } - readSize = Math.min(readSize * 2, fileSize, MAX_READ_SIZE); - } - const allLines = content.split(` -`); - if (allLines.length > 0 && allLines[allLines.length - 1] === "") { - allLines.pop(); - } - const startIndex = Math.max(0, allLines.length - lineCount); - const resultLines = allLines.slice(startIndex); - let totalEstimate; - if (fileSize <= readSize) { - totalEstimate = allLines.length; - } else { - const avgLineLength = content.length / Math.max(newlineCount, 1); - totalEstimate = Math.round(fileSize / avgLineLength); - } - return { - lines: resultLines.join(` -`), - totalEstimate - }; - } finally { - closeSync2(fd); - } -} - -class LogsRoutes extends BaseRouteHandler { - getLogFilePath() { - const dataDir = SettingsDefaultsManager.get("CLAUDE_MEM_DATA_DIR"); - const logsDir = join10(dataDir, "logs"); - const date5 = new Date().toISOString().split("T")[0]; - return join10(logsDir, `claude-mem-${date5}.log`); - } - getLogsDir() { - const dataDir = SettingsDefaultsManager.get("CLAUDE_MEM_DATA_DIR"); - return join10(dataDir, "logs"); - } - setupRoutes(app) { - app.get("/api/logs", this.handleGetLogs.bind(this)); - app.post("/api/logs/clear", this.handleClearLogs.bind(this)); - } - handleGetLogs = this.wrapHandler((req, res) => { - const logFilePath = this.getLogFilePath(); - if (!existsSync19(logFilePath)) { - res.json({ - logs: "", - path: logFilePath, - exists: false - }); - return; - } - const requestedLines = parseInt(req.query.lines || "1000", 10); - const maxLines = Math.min(requestedLines, 1e4); - const { lines: recentLines, totalEstimate } = readLastLines(logFilePath, maxLines); - const returnedLines = recentLines === "" ? 0 : recentLines.split(` -`).length; - res.json({ - logs: recentLines, - path: logFilePath, - exists: true, - totalLines: totalEstimate, - returnedLines - }); - }); - handleClearLogs = this.wrapHandler((req, res) => { - const logFilePath = this.getLogFilePath(); - if (!existsSync19(logFilePath)) { - res.json({ - success: true, - message: "Log file does not exist", - path: logFilePath - }); - return; - } - writeFileSync9(logFilePath, "", "utf-8"); - logger.info("SYSTEM", "Log file cleared via UI", { path: logFilePath }); - res.json({ - success: true, - message: "Log file cleared", - path: logFilePath - }); - }); -} - -// src/services/worker/http/routes/MemoryRoutes.ts -init_logger(); - -class MemoryRoutes extends BaseRouteHandler { - dbManager; - defaultProject; - constructor(dbManager, defaultProject) { - super(); - this.dbManager = dbManager; - this.defaultProject = defaultProject; - } - setupRoutes(app) { - app.post("/api/memory/save", this.handleSaveMemory.bind(this)); - } - handleSaveMemory = this.wrapHandler(async (req, res) => { - const { text, title, project } = req.body; - const targetProject = project || this.defaultProject; - if (!text || typeof text !== "string" || text.trim().length === 0) { - this.badRequest(res, "text is required and must be non-empty"); - return; - } - const sessionStore = this.dbManager.getSessionStore(); - const chromaSync = this.dbManager.getChromaSync(); - const memorySessionId = sessionStore.getOrCreateManualSession(targetProject); - const observation = { - type: "discovery", - title: title || text.substring(0, 60).trim() + (text.length > 60 ? "..." : ""), - subtitle: "Manual memory", - facts: [], - narrative: text, - concepts: [], - files_read: [], - files_modified: [] - }; - const result = sessionStore.storeObservation(memorySessionId, targetProject, observation, 0, 0); - logger.info("HTTP", "Manual observation saved", { - id: result.id, - project: targetProject, - title: observation.title - }); - chromaSync.syncObservation(result.id, memorySessionId, targetProject, observation, 0, result.createdAtEpoch, 0).catch((err) => { - logger.error("CHROMA", "ChromaDB sync failed", { id: result.id }, err); - }); - res.json({ - success: true, - id: result.id, - title: observation.title, - project: targetProject, - message: `Memory saved as observation #${result.id}` - }); - }); -} - -// src/services/worker-service.ts -var __dirname = "/Users/alexnewman/conductor/workspaces/claude-mem/banjul/src/services", __filename = "/Users/alexnewman/conductor/workspaces/claude-mem/banjul/src/services/worker-service.ts"; -var WINDOWS_SPAWN_COOLDOWN_MS = 2 * 60 * 1000; -function getWorkerSpawnLockPath() { - return path24.join(SettingsDefaultsManager.get("CLAUDE_MEM_DATA_DIR"), ".worker-start-attempted"); -} -function shouldSkipSpawnOnWindows() { - if (process.platform !== "win32") - return false; - const lockPath = getWorkerSpawnLockPath(); - if (!existsSync23(lockPath)) - return false; - try { - const modifiedTimeMs = statSync5(lockPath).mtimeMs; - return Date.now() - modifiedTimeMs < WINDOWS_SPAWN_COOLDOWN_MS; - } catch { - return false; - } -} -function markWorkerSpawnAttempted() { - if (process.platform !== "win32") - return; - try { - writeFileSync11(getWorkerSpawnLockPath(), "", "utf-8"); - } catch {} -} -function clearWorkerSpawnAttempted() { - if (process.platform !== "win32") - return; - try { - const lockPath = getWorkerSpawnLockPath(); - if (existsSync23(lockPath)) - unlinkSync7(lockPath); - } catch {} -} -var packageVersion = typeof __DEFAULT_PACKAGE_VERSION__ !== "undefined" ? __DEFAULT_PACKAGE_VERSION__ : "0.0.0-dev"; -function buildStatusOutput(status, message) { - return { - continue: true, - suppressOutput: true, - status, - ...message && { message } - }; -} - -class WorkerService { - server; - startTime = Date.now(); - mcpClient; - mcpReady = false; - initializationCompleteFlag = false; - isShuttingDown = false; - dbManager; - sessionManager; - sseBroadcaster; - sdkAgent; - geminiAgent; - openRouterAgent; - paginationHelper; - settingsManager; - sessionEventBroadcaster; - searchRoutes = null; - chromaMcpManager = null; - initializationComplete; - resolveInitialization; - stopOrphanReaper = null; - staleSessionReaperInterval = null; - lastAiInteraction = null; - constructor() { - this.initializationComplete = new Promise((resolve) => { - this.resolveInitialization = resolve; - }); - this.dbManager = new DatabaseManager; - this.sessionManager = new SessionManager(this.dbManager); - this.sseBroadcaster = new SSEBroadcaster; - this.sdkAgent = new SDKAgent(this.dbManager, this.sessionManager); - this.geminiAgent = new GeminiAgent(this.dbManager, this.sessionManager); - this.openRouterAgent = new OpenRouterAgent(this.dbManager, this.sessionManager); - this.paginationHelper = new PaginationHelper(this.dbManager); - this.settingsManager = new SettingsManager(this.dbManager); - this.sessionEventBroadcaster = new SessionEventBroadcaster(this.sseBroadcaster, this); - this.sessionManager.setOnSessionDeleted(() => { - this.broadcastProcessingStatus(); - }); - this.mcpClient = new Client({ - name: "worker-search-proxy", - version: packageVersion - }, { capabilities: {} }); - this.server = new Server({ - getInitializationComplete: () => this.initializationCompleteFlag, - getMcpReady: () => this.mcpReady, - onShutdown: () => this.shutdown(), - onRestart: () => this.shutdown(), - workerPath: __filename, - getAiStatus: () => { - let provider = "claude"; - if (isOpenRouterSelected() && isOpenRouterAvailable()) - provider = "openrouter"; - else if (isGeminiSelected() && isGeminiAvailable()) - provider = "gemini"; - return { - provider, - authMethod: getAuthMethodDescription(), - lastInteraction: this.lastAiInteraction ? { - timestamp: this.lastAiInteraction.timestamp, - success: this.lastAiInteraction.success, - ...this.lastAiInteraction.error && { error: this.lastAiInteraction.error } - } : null - }; - } - }); - this.registerRoutes(); - this.registerSignalHandlers(); - } - registerSignalHandlers() { - configureSupervisorSignalHandlers(async () => { - this.isShuttingDown = true; - await this.shutdown(); - }); - } - registerRoutes() { - this.server.app.get("/api/context/inject", async (req, res, next) => { - if (!this.initializationCompleteFlag || !this.searchRoutes) { - logger.warn("SYSTEM", "Context requested before initialization complete, returning empty"); - res.status(200).json({ content: [{ type: "text", text: "" }] }); - return; - } - next(); - }); - this.server.app.use("/api", async (req, res, next) => { - if (this.initializationCompleteFlag) { - next(); - return; - } - const timeoutMs = 30000; - const timeoutPromise = new Promise((_, reject) => setTimeout(() => reject(new Error("Database initialization timeout")), timeoutMs)); - try { - await Promise.race([this.initializationComplete, timeoutPromise]); - next(); - } catch (error3) { - logger.error("HTTP", `Request to ${req.method} ${req.path} rejected — DB not initialized`, {}, error3); - res.status(503).json({ - error: "Service initializing", - message: "Database is still initializing, please retry" - }); - } - }); - this.server.registerRoutes(new ViewerRoutes(this.sseBroadcaster, this.dbManager, this.sessionManager)); - this.server.registerRoutes(new SessionRoutes(this.sessionManager, this.dbManager, this.sdkAgent, this.geminiAgent, this.openRouterAgent, this.sessionEventBroadcaster, this)); - this.server.registerRoutes(new DataRoutes(this.paginationHelper, this.dbManager, this.sessionManager, this.sseBroadcaster, this, this.startTime)); - this.server.registerRoutes(new SettingsRoutes(this.settingsManager)); - this.server.registerRoutes(new LogsRoutes); - this.server.registerRoutes(new MemoryRoutes(this.dbManager, "claude-mem")); - } - async start() { - const port = getWorkerPort(); - const host = getWorkerHost(); - await startSupervisor(); - await this.server.listen(port, host); - writePidFile({ - pid: process.pid, - port, - startedAt: new Date().toISOString() - }); - getSupervisor().registerProcess("worker", { - pid: process.pid, - type: "worker", - startedAt: new Date().toISOString() - }); - logger.info("SYSTEM", "Worker started", { host, port, pid: process.pid }); - this.initializeBackground().catch((error3) => { - logger.error("SYSTEM", "Background initialization failed", {}, error3); - }); - } - async initializeBackground() { - try { - await aggressiveStartupCleanup(); - const { ModeManager: ModeManager2 } = await Promise.resolve().then(() => (init_ModeManager(), exports_ModeManager)); - const { SettingsDefaultsManager: SettingsDefaultsManager2 } = await Promise.resolve().then(() => (init_SettingsDefaultsManager(), exports_SettingsDefaultsManager)); - const { USER_SETTINGS_PATH: USER_SETTINGS_PATH2 } = await Promise.resolve().then(() => (init_paths(), exports_paths)); - const settings = SettingsDefaultsManager2.loadFromFile(USER_SETTINGS_PATH2); - if (settings.CLAUDE_MEM_MODE === "local" || !settings.CLAUDE_MEM_MODE) { - runOneTimeChromaMigration(); - } - const chromaEnabled = settings.CLAUDE_MEM_CHROMA_ENABLED !== "false"; - if (chromaEnabled) { - this.chromaMcpManager = ChromaMcpManager.getInstance(); - logger.info("SYSTEM", "ChromaMcpManager initialized (lazy - connects on first use)"); - } else { - logger.info("SYSTEM", "Chroma disabled via CLAUDE_MEM_CHROMA_ENABLED=false, skipping ChromaMcpManager"); - } - const modeId = settings.CLAUDE_MEM_MODE; - ModeManager2.getInstance().loadMode(modeId); - logger.info("SYSTEM", `Mode loaded: ${modeId}`); - await this.dbManager.initialize(); - const { PendingMessageStore: PendingMessageStore2 } = await Promise.resolve().then(() => (init_PendingMessageStore(), exports_PendingMessageStore)); - const pendingStore = new PendingMessageStore2(this.dbManager.getSessionStore().db, 3); - const resetCount = pendingStore.resetStaleProcessingMessages(0); - if (resetCount > 0) { - logger.info("SYSTEM", `Reset ${resetCount} stale processing messages to pending`); - } - const formattingService = new FormattingService; - const timelineService = new TimelineService; - const searchManager = new SearchManager(this.dbManager.getSessionSearch(), this.dbManager.getSessionStore(), this.dbManager.getChromaSync(), formattingService, timelineService); - this.searchRoutes = new SearchRoutes(searchManager); - this.server.registerRoutes(this.searchRoutes); - logger.info("WORKER", "SearchManager initialized and search routes registered"); - this.initializationCompleteFlag = true; - this.resolveInitialization(); - logger.info("SYSTEM", "Core initialization complete (DB + search ready)"); - if (this.chromaMcpManager) { - ChromaSync.backfillAllProjects().then(() => { - logger.info("CHROMA_SYNC", "Backfill check complete for all projects"); - }).catch((error3) => { - logger.error("CHROMA_SYNC", "Backfill failed (non-blocking)", {}, error3); - }); - } - const mcpServerPath = path24.join(__dirname, "mcp-server.cjs"); - getSupervisor().assertCanSpawn("mcp server"); - const transport = new StdioClientTransport({ - command: "node", - args: [mcpServerPath], - env: sanitizeEnv(process.env) - }); - const MCP_INIT_TIMEOUT_MS = 300000; - const mcpConnectionPromise = this.mcpClient.connect(transport); - let timeoutId; - const timeoutPromise = new Promise((_, reject) => { - timeoutId = setTimeout(() => reject(new Error("MCP connection timeout after 5 minutes")), MCP_INIT_TIMEOUT_MS); - }); - try { - await Promise.race([mcpConnectionPromise, timeoutPromise]); - } catch (connectionError) { - clearTimeout(timeoutId); - logger.warn("WORKER", "MCP server connection failed, cleaning up subprocess", { - error: connectionError instanceof Error ? connectionError.message : String(connectionError) - }); - try { - await transport.close(); - } catch {} - throw connectionError; - } - clearTimeout(timeoutId); - const mcpProcess = transport._process; - if (mcpProcess?.pid) { - getSupervisor().registerProcess("mcp-server", { - pid: mcpProcess.pid, - type: "mcp", - startedAt: new Date().toISOString() - }, mcpProcess); - mcpProcess.once("exit", () => { - getSupervisor().unregisterProcess("mcp-server"); - }); - } - this.mcpReady = true; - logger.success("WORKER", "MCP server connected"); - this.stopOrphanReaper = startOrphanReaper(() => { - const activeIds = new Set; - for (const [id] of this.sessionManager["sessions"]) { - activeIds.add(id); - } - return activeIds; - }); - logger.info("SYSTEM", "Started orphan reaper (runs every 30 seconds)"); - this.staleSessionReaperInterval = setInterval(async () => { - try { - const reaped = await this.sessionManager.reapStaleSessions(); - if (reaped > 0) { - logger.info("SYSTEM", `Reaped ${reaped} stale sessions`); - } - } catch (e) { - logger.error("SYSTEM", "Stale session reaper error", { error: e instanceof Error ? e.message : String(e) }); - } - }, 120000); - this.processPendingQueues(50).then((result) => { - if (result.sessionsStarted > 0) { - logger.info("SYSTEM", `Auto-recovered ${result.sessionsStarted} sessions with pending work`, { - totalPending: result.totalPendingSessions, - started: result.sessionsStarted, - sessionIds: result.startedSessionIds - }); - } - }).catch((error3) => { - logger.error("SYSTEM", "Auto-recovery of pending queues failed", {}, error3); - }); - } catch (error3) { - logger.error("SYSTEM", "Background initialization failed", {}, error3); - throw error3; - } - } - getActiveAgent() { - if (isOpenRouterSelected() && isOpenRouterAvailable()) { - return this.openRouterAgent; - } - if (isGeminiSelected() && isGeminiAvailable()) { - return this.geminiAgent; - } - return this.sdkAgent; - } - startSessionProcessor(session, source) { - if (!session) - return; - const sid = session.sessionDbId; - const agent = this.getActiveAgent(); - const providerName = agent.constructor.name; - if (session.abortController.signal.aborted) { - logger.debug("SYSTEM", "Replacing aborted AbortController before starting generator", { - sessionId: session.sessionDbId - }); - session.abortController = new AbortController; - } - let hadUnrecoverableError = false; - let sessionFailed = false; - logger.info("SYSTEM", `Starting generator (${source}) using ${providerName}`, { sessionId: sid }); - session.lastGeneratorActivity = Date.now(); - session.generatorPromise = agent.startSession(session, this).catch(async (error3) => { - const errorMessage = error3?.message || ""; - const unrecoverablePatterns = [ - "Claude executable not found", - "CLAUDE_CODE_PATH", - "ENOENT", - "spawn", - "Invalid API key", - "FOREIGN KEY constraint failed" - ]; - if (unrecoverablePatterns.some((pattern) => errorMessage.includes(pattern))) { - hadUnrecoverableError = true; - this.lastAiInteraction = { - timestamp: Date.now(), - success: false, - provider: providerName, - error: errorMessage - }; - logger.error("SDK", "Unrecoverable generator error - will NOT restart", { - sessionId: session.sessionDbId, - project: session.project, - errorMessage - }); - return; - } - if (this.isSessionTerminatedError(error3)) { - logger.warn("SDK", "SDK resume failed, falling back to standalone processing", { - sessionId: session.sessionDbId, - project: session.project, - reason: error3 instanceof Error ? error3.message : String(error3) - }); - return this.runFallbackForTerminatedSession(session, error3); - } - if ((errorMessage.includes("aborted by user") || errorMessage.includes("No conversation found")) && session.memorySessionId) { - logger.warn("SDK", "Detected stale resume failure, clearing memorySessionId for fresh start", { - sessionId: session.sessionDbId, - memorySessionId: session.memorySessionId, - errorMessage - }); - this.dbManager.getSessionStore().updateMemorySessionId(session.sessionDbId, null); - session.memorySessionId = null; - session.forceInit = true; - } - logger.error("SDK", "Session generator failed", { - sessionId: session.sessionDbId, - project: session.project, - provider: providerName - }, error3); - sessionFailed = true; - this.lastAiInteraction = { - timestamp: Date.now(), - success: false, - provider: providerName, - error: errorMessage - }; - throw error3; - }).finally(async () => { - const trackedProcess = getProcessBySession(session.sessionDbId); - if (trackedProcess && trackedProcess.process.exitCode === null) { - await ensureProcessExit(trackedProcess, 5000); - } - session.generatorPromise = null; - if (!sessionFailed && !hadUnrecoverableError) { - this.lastAiInteraction = { - timestamp: Date.now(), - success: true, - provider: providerName - }; - } - if (hadUnrecoverableError) { - logger.warn("SYSTEM", "Skipping restart due to unrecoverable error", { - sessionId: session.sessionDbId - }); - this.broadcastProcessingStatus(); - return; - } - const { PendingMessageStore: PendingMessageStore2 } = (init_PendingMessageStore(), __toCommonJS(exports_PendingMessageStore)); - const pendingStore = new PendingMessageStore2(this.dbManager.getSessionStore().db, 3); - if (session.idleTimedOut) { - logger.info("SYSTEM", "Generator exited due to idle timeout, not restarting", { - sessionId: session.sessionDbId - }); - session.idleTimedOut = false; - this.broadcastProcessingStatus(); - return; - } - const pendingCount = pendingStore.getPendingCount(session.sessionDbId); - const MAX_PENDING_RESTARTS = 3; - if (pendingCount > 0) { - session.consecutiveRestarts = (session.consecutiveRestarts || 0) + 1; - if (session.consecutiveRestarts > MAX_PENDING_RESTARTS) { - logger.error("SYSTEM", "Exceeded max pending-work restarts, stopping to prevent infinite loop", { - sessionId: session.sessionDbId, - pendingCount, - consecutiveRestarts: session.consecutiveRestarts - }); - session.consecutiveRestarts = 0; - this.broadcastProcessingStatus(); - return; - } - logger.info("SYSTEM", "Pending work remains after generator exit, restarting with fresh AbortController", { - sessionId: session.sessionDbId, - pendingCount, - attempt: session.consecutiveRestarts - }); - session.abortController = new AbortController; - this.startSessionProcessor(session, "pending-work-restart"); - } else { - session.consecutiveRestarts = 0; - } - this.broadcastProcessingStatus(); - }); - } - isSessionTerminatedError(error3) { - const msg = error3 instanceof Error ? error3.message : String(error3); - const normalized = msg.toLowerCase(); - return normalized.includes("process aborted by user") || normalized.includes("processtransport") || normalized.includes("not ready for writing") || normalized.includes("session generator failed") || normalized.includes("claude code process"); - } - async runFallbackForTerminatedSession(session, _originalError) { - if (!session) - return; - const sessionDbId = session.sessionDbId; - if (!session.memorySessionId) { - const syntheticId = `fallback-${sessionDbId}-${Date.now()}`; - session.memorySessionId = syntheticId; - this.dbManager.getSessionStore().updateMemorySessionId(sessionDbId, syntheticId); - } - if (isGeminiAvailable()) { - try { - await this.geminiAgent.startSession(session, this); - return; - } catch (e) { - logger.warn("SDK", "Fallback Gemini failed, trying OpenRouter", { - sessionId: sessionDbId, - error: e instanceof Error ? e.message : String(e) - }); - } - } - if (isOpenRouterAvailable()) { - try { - await this.openRouterAgent.startSession(session, this); - return; - } catch (e) { - logger.warn("SDK", "Fallback OpenRouter failed", { - sessionId: sessionDbId, - error: e instanceof Error ? e.message : String(e) - }); - } - } - const pendingStore = this.sessionManager.getPendingMessageStore(); - const abandoned = pendingStore.markAllSessionMessagesAbandoned(sessionDbId); - if (abandoned > 0) { - logger.warn("SDK", "No fallback available; marked pending messages abandoned", { - sessionId: sessionDbId, - abandoned - }); - } - this.sessionManager.removeSessionImmediate(sessionDbId); - this.sessionEventBroadcaster.broadcastSessionCompleted(sessionDbId); - } - async processPendingQueues(sessionLimit = 10) { - const { PendingMessageStore: PendingMessageStore2 } = await Promise.resolve().then(() => (init_PendingMessageStore(), exports_PendingMessageStore)); - const pendingStore = new PendingMessageStore2(this.dbManager.getSessionStore().db, 3); - const sessionStore = this.dbManager.getSessionStore(); - const STALE_SESSION_THRESHOLD_MS = 21600000; - const staleThreshold = Date.now() - STALE_SESSION_THRESHOLD_MS; - try { - const staleSessionIds = sessionStore.db.prepare(` + `).all().map(a=>a.project);n.json({projects:o})});handleGetProcessingStatus=this.wrapHandler((r,n)=>{let i=this.sessionManager.isAnySessionProcessing(),s=this.sessionManager.getTotalActiveWork();n.json({isProcessing:i,queueDepth:s})});handleSetProcessing=this.wrapHandler((r,n)=>{this.workerService.broadcastProcessingStatus();let i=this.sessionManager.isAnySessionProcessing(),s=this.sessionManager.getTotalQueueDepth(),o=this.sessionManager.getActiveSessionCount();n.json({status:"ok",isProcessing:i,queueDepth:s,activeSessions:o})});parsePaginationParams(r){let n=parseInt(r.query.offset,10)||0,i=Math.min(parseInt(r.query.limit,10)||20,100),s=r.query.project;return{offset:n,limit:i,project:s}}handleImport=this.wrapHandler((r,n)=>{let{sessions:i,summaries:s,observations:o,prompts:a}=r.body,c={sessionsImported:0,sessionsSkipped:0,summariesImported:0,summariesSkipped:0,observationsImported:0,observationsSkipped:0,promptsImported:0,promptsSkipped:0},u=this.dbManager.getSessionStore();if(Array.isArray(i))for(let l of i)u.importSdkSession(l).imported?c.sessionsImported++:c.sessionsSkipped++;if(Array.isArray(s))for(let l of s)u.importSessionSummary(l).imported?c.summariesImported++:c.summariesSkipped++;if(Array.isArray(o))for(let l of o)u.importObservation(l).imported?c.observationsImported++:c.observationsSkipped++;if(Array.isArray(a))for(let l of a)u.importUserPrompt(l).imported?c.promptsImported++:c.promptsSkipped++;n.json({success:!0,stats:c})});handleGetPendingQueue=this.wrapHandler((r,n)=>{let{PendingMessageStore:i}=(Us(),ou(zo)),s=new i(this.dbManager.getSessionStore().db,3),o=s.getQueueMessages(),a=s.getRecentlyProcessed(20,30),c=s.getStuckCount(300*1e3),u=s.getSessionsWithPendingMessages();n.json({queue:{messages:o,totalPending:o.filter(l=>l.status==="pending").length,totalProcessing:o.filter(l=>l.status==="processing").length,totalFailed:o.filter(l=>l.status==="failed").length,stuckCount:c},recentlyProcessed:a,sessionsWithPendingWork:u})});handleProcessPendingQueue=this.wrapHandler(async(r,n)=>{let i=Math.min(Math.max(parseInt(r.body.sessionLimit,10)||10,1),100),s=await this.workerService.processPendingQueues(i);n.json({success:!0,...s})});handleClearFailedQueue=this.wrapHandler((r,n)=>{let{PendingMessageStore:i}=(Us(),ou(zo)),o=new i(this.dbManager.getSessionStore().db,3).clearFailed();y.info("QUEUE","Cleared failed queue messages",{clearedCount:o}),n.json({success:!0,clearedCount:o})});handleClearAllQueue=this.wrapHandler((r,n)=>{let{PendingMessageStore:i}=(Us(),ou(zo)),o=new i(this.dbManager.getSessionStore().db,3).clearAll();y.warn("QUEUE","Cleared ALL queue messages (pending, processing, failed)",{clearedCount:o}),n.json({success:!0,clearedCount:o})});handleFileContextGate=this.wrapHandler((r,n)=>{let{sessionId:i,filePath:s}=r.body;if(!i||!s){this.badRequest(n,"sessionId and filePath are required");return}let o=gq(i,s);n.json({firstAttempt:o})})};var pv=class extends Nr{constructor(r){super();this.searchManager=r}setupRoutes(r){r.get("/api/search",this.handleUnifiedSearch.bind(this)),r.get("/api/timeline",this.handleUnifiedTimeline.bind(this)),r.get("/api/decisions",this.handleDecisions.bind(this)),r.get("/api/changes",this.handleChanges.bind(this)),r.get("/api/how-it-works",this.handleHowItWorks.bind(this)),r.get("/api/search/observations",this.handleSearchObservations.bind(this)),r.get("/api/search/sessions",this.handleSearchSessions.bind(this)),r.get("/api/search/prompts",this.handleSearchPrompts.bind(this)),r.get("/api/search/by-concept",this.handleSearchByConcept.bind(this)),r.get("/api/search/by-file",this.handleSearchByFile.bind(this)),r.get("/api/search/by-type",this.handleSearchByType.bind(this)),r.get("/api/context/recent",this.handleGetRecentContext.bind(this)),r.get("/api/context/timeline",this.handleGetContextTimeline.bind(this)),r.get("/api/context/preview",this.handleContextPreview.bind(this)),r.get("/api/context/inject",this.handleContextInject.bind(this)),r.get("/api/timeline/by-query",this.handleGetTimelineByQuery.bind(this)),r.get("/api/search/help",this.handleSearchHelp.bind(this))}handleUnifiedSearch=this.wrapHandler(async(r,n)=>{let i=await this.searchManager.search(r.query);n.json(i)});handleUnifiedTimeline=this.wrapHandler(async(r,n)=>{let i=await this.searchManager.timeline(r.query);n.json(i)});handleDecisions=this.wrapHandler(async(r,n)=>{let i=await this.searchManager.decisions(r.query);n.json(i)});handleChanges=this.wrapHandler(async(r,n)=>{let i=await this.searchManager.changes(r.query);n.json(i)});handleHowItWorks=this.wrapHandler(async(r,n)=>{let i=await this.searchManager.howItWorks(r.query);n.json(i)});handleSearchObservations=this.wrapHandler(async(r,n)=>{let i=await this.searchManager.searchObservations(r.query);n.json(i)});handleSearchSessions=this.wrapHandler(async(r,n)=>{let i=await this.searchManager.searchSessions(r.query);n.json(i)});handleSearchPrompts=this.wrapHandler(async(r,n)=>{let i=await this.searchManager.searchUserPrompts(r.query);n.json(i)});handleSearchByConcept=this.wrapHandler(async(r,n)=>{let i=await this.searchManager.findByConcept(r.query);n.json(i)});handleSearchByFile=this.wrapHandler(async(r,n)=>{let i=await this.searchManager.findByFile(r.query);n.json(i)});handleSearchByType=this.wrapHandler(async(r,n)=>{let i=await this.searchManager.findByType(r.query);n.json(i)});handleGetRecentContext=this.wrapHandler(async(r,n)=>{let i=await this.searchManager.getRecentContext(r.query);n.json(i)});handleGetContextTimeline=this.wrapHandler(async(r,n)=>{let i=await this.searchManager.getContextTimeline(r.query);n.json(i)});handleContextPreview=this.wrapHandler(async(r,n)=>{let i=r.query.project;if(!i){this.badRequest(n,"Project parameter is required");return}let{generateContext:s}=await Promise.resolve().then(()=>(b$(),_$)),o=`/preview/${i}`,a=await s({session_id:"preview-"+Date.now(),cwd:o},!0);n.setHeader("Content-Type","text/plain; charset=utf-8"),n.send(a)});handleContextInject=this.wrapHandler(async(r,n)=>{let i=r.query.projects||r.query.project,s=r.query.colors==="true",o=r.query.full==="true";if(!i){this.badRequest(n,"Project(s) parameter is required");return}let a=i.split(",").map(p=>p.trim()).filter(Boolean);if(a.length===0){this.badRequest(n,"At least one project is required");return}let{generateContext:c}=await Promise.resolve().then(()=>(b$(),_$)),l=`/context/${a[a.length-1]}`,d=await c({session_id:"context-inject-"+Date.now(),cwd:l,projects:a,full:o},s);n.setHeader("Content-Type","text/plain; charset=utf-8"),n.send(d)});handleGetTimelineByQuery=this.wrapHandler(async(r,n)=>{let i=await this.searchManager.getTimelineByQuery(r.query);n.json(i)});handleSearchHelp=this.wrapHandler((r,n)=>{n.json({title:"Claude-Mem Search API",description:"HTTP API for searching persistent memory",endpoints:[{path:"/api/search/observations",method:"GET",description:"Search observations using full-text search",parameters:{query:"Search query (required)",limit:"Number of results (default: 20)",project:"Filter by project name (optional)"}},{path:"/api/search/sessions",method:"GET",description:"Search session summaries using full-text search",parameters:{query:"Search query (required)",limit:"Number of results (default: 20)"}},{path:"/api/search/prompts",method:"GET",description:"Search user prompts using full-text search",parameters:{query:"Search query (required)",limit:"Number of results (default: 20)",project:"Filter by project name (optional)"}},{path:"/api/search/by-concept",method:"GET",description:"Find observations by concept tag",parameters:{concept:"Concept tag (required): discovery, decision, bugfix, feature, refactor",limit:"Number of results (default: 10)",project:"Filter by project name (optional)"}},{path:"/api/search/by-file",method:"GET",description:"Find observations and sessions by file path",parameters:{filePath:"File path or partial path (required)",limit:"Number of results per type (default: 10)",project:"Filter by project name (optional)"}},{path:"/api/search/by-type",method:"GET",description:"Find observations by type",parameters:{type:"Observation type (required): discovery, decision, bugfix, feature, refactor",limit:"Number of results (default: 10)",project:"Filter by project name (optional)"}},{path:"/api/context/recent",method:"GET",description:"Get recent session context including summaries and observations",parameters:{project:"Project name (default: current directory)",limit:"Number of recent sessions (default: 3)"}},{path:"/api/context/timeline",method:"GET",description:"Get unified timeline around a specific point in time",parameters:{anchor:'Anchor point: observation ID, session ID (e.g., "S123"), or ISO timestamp (required)',depth_before:"Number of records before anchor (default: 10)",depth_after:"Number of records after anchor (default: 10)",project:"Filter by project name (optional)"}},{path:"/api/timeline/by-query",method:"GET",description:"Search for best match, then get timeline around it",parameters:{query:"Search query (required)",mode:'Search mode: "auto", "observations", or "sessions" (default: "auto")',depth_before:"Number of records before match (default: 10)",depth_after:"Number of records after match (default: 10)",project:"Filter by project name (optional)"}},{path:"/api/search/help",method:"GET",description:"Get this help documentation"}],examples:['curl "http://localhost:37777/api/search/observations?query=authentication&limit=5"','curl "http://localhost:37777/api/search/by-type?type=bugfix&limit=10"','curl "http://localhost:37777/api/context/recent?project=claude-mem&limit=3"','curl "http://localhost:37777/api/context/timeline?anchor=123&depth_before=5&depth_after=5"']})})};var Xo=Ue(require("path"),1),xr=require("fs"),E$=require("os");Nt();oe();var S$=require("child_process"),Jo=require("fs"),mv=require("path");oe();Nt();var Ep=Ki;function x$(t){return!t||typeof t!="string"?!1:/^[a-zA-Z0-9][a-zA-Z0-9._/-]*$/.test(t)&&!t.includes("..")}var dge=3e5,w$=6e5;function Un(t){let e=(0,S$.spawnSync)("git",t,{cwd:Ep,encoding:"utf-8",timeout:dge,windowsHide:!0,shell:!1});if(e.error)throw e.error;if(e.status!==0)throw new Error(e.stderr||e.stdout||"Git command failed");return e.stdout.trim()}function _9(t,e=w$){let n=process.platform==="win32"?"npm.cmd":"npm",i=(0,S$.spawnSync)(n,t,{cwd:Ep,encoding:"utf-8",timeout:e,windowsHide:!0,shell:!1});if(i.error)throw i.error;if(i.status!==0)throw new Error(i.stderr||i.stdout||"npm command failed");return i.stdout.trim()}function fv(){let t=(0,mv.join)(Ep,".git");if(!(0,Jo.existsSync)(t))return{branch:null,isBeta:!1,isGitRepo:!1,isDirty:!1,canSwitch:!1,error:"Installed plugin is not a git repository"};try{let e=Un(["rev-parse","--abbrev-ref","HEAD"]),n=Un(["status","--porcelain"]).length>0,i=e.startsWith("beta");return{branch:e,isBeta:i,isGitRepo:!0,isDirty:n,canSwitch:!0}}catch(e){return y.error("BRANCH","Failed to get branch info",{},e),{branch:null,isBeta:!1,isGitRepo:!0,isDirty:!1,canSwitch:!1,error:e.message}}}async function b9(t){if(!x$(t))return{success:!1,error:`Invalid branch name: ${t}. Branch names must be alphanumeric with hyphens, underscores, slashes, or dots.`};let e=fv();if(!e.isGitRepo)return{success:!1,error:"Installed plugin is not a git repository. Please reinstall."};if(e.branch===t)return{success:!0,branch:t,message:`Already on branch ${t}`};try{y.info("BRANCH","Starting branch switch",{from:e.branch,to:t}),y.debug("BRANCH","Discarding local changes"),Un(["checkout","--","."]),Un(["clean","-fd"]),y.debug("BRANCH","Fetching from origin"),Un(["fetch","origin"]),y.debug("BRANCH","Checking out branch",{branch:t});try{Un(["checkout",t])}catch(n){y.debug("BRANCH","Branch not local, tracking remote",{branch:t,error:n instanceof Error?n.message:String(n)}),Un(["checkout","-b",t,`origin/${t}`])}y.debug("BRANCH","Pulling latest"),Un(["pull","origin",t]);let r=(0,mv.join)(Ep,".install-version");return(0,Jo.existsSync)(r)&&(0,Jo.unlinkSync)(r),y.debug("BRANCH","Running npm install"),_9(["install"],w$),y.success("BRANCH","Branch switch complete",{branch:t}),{success:!0,branch:t,message:`Switched to ${t}. Worker will restart automatically.`}}catch(r){y.error("BRANCH","Branch switch failed",{targetBranch:t},r);try{e.branch&&x$(e.branch)&&Un(["checkout",e.branch])}catch(n){y.error("BRANCH","Recovery checkout also failed",{originalBranch:e.branch},n)}return{success:!1,error:`Branch switch failed: ${r.message}`}}}async function x9(){let t=fv();if(!t.isGitRepo||!t.branch)return{success:!1,error:"Cannot pull updates: not a git repository"};try{if(!x$(t.branch))return{success:!1,error:`Invalid current branch name: ${t.branch}`};y.info("BRANCH","Pulling updates",{branch:t.branch}),Un(["checkout","--","."]),Un(["fetch","origin"]),Un(["pull","origin",t.branch]);let e=(0,mv.join)(Ep,".install-version");return(0,Jo.existsSync)(e)&&(0,Jo.unlinkSync)(e),_9(["install"],w$),y.success("BRANCH","Updates pulled",{branch:t.branch}),{success:!0,branch:t.branch,message:`Updated ${t.branch}. Worker will restart automatically.`}}catch(e){return y.error("BRANCH","Pull failed",{},e),{success:!1,error:`Pull failed: ${e.message}`}}}Yt();Or();var hv=class extends Nr{constructor(r){super();this.settingsManager=r}setupRoutes(r){r.get("/api/settings",this.handleGetSettings.bind(this)),r.post("/api/settings",this.handleUpdateSettings.bind(this)),r.get("/api/mcp/status",this.handleGetMcpStatus.bind(this)),r.post("/api/mcp/toggle",this.handleToggleMcp.bind(this)),r.get("/api/branch/status",this.handleGetBranchStatus.bind(this)),r.post("/api/branch/switch",this.handleSwitchBranch.bind(this)),r.post("/api/branch/update",this.handleUpdateBranch.bind(this))}handleGetSettings=this.wrapHandler((r,n)=>{let i=Xo.default.join((0,E$.homedir)(),".claude-mem","settings.json");this.ensureSettingsFile(i);let s=_e.loadFromFile(i);n.json(s)});handleUpdateSettings=this.wrapHandler((r,n)=>{let i=this.validateSettings(r.body);if(!i.valid){n.status(400).json({success:!1,error:i.error});return}let s=Xo.default.join((0,E$.homedir)(),".claude-mem","settings.json");this.ensureSettingsFile(s);let o={};if((0,xr.existsSync)(s)){let c=(0,xr.readFileSync)(s,"utf-8");try{o=JSON.parse(c)}catch(u){y.error("SETTINGS","Failed to parse settings file",{settingsPath:s},u),n.status(500).json({success:!1,error:"Settings file is corrupted. Delete ~/.claude-mem/settings.json to reset."});return}}let a=["CLAUDE_MEM_MODEL","CLAUDE_MEM_CONTEXT_OBSERVATIONS","CLAUDE_MEM_WORKER_PORT","CLAUDE_MEM_WORKER_HOST","CLAUDE_MEM_PROVIDER","CLAUDE_MEM_GEMINI_API_KEY","CLAUDE_MEM_GEMINI_MODEL","CLAUDE_MEM_GEMINI_RATE_LIMITING_ENABLED","CLAUDE_MEM_OPENROUTER_API_KEY","CLAUDE_MEM_OPENROUTER_MODEL","CLAUDE_MEM_OPENROUTER_SITE_URL","CLAUDE_MEM_OPENROUTER_APP_NAME","CLAUDE_MEM_OPENROUTER_MAX_CONTEXT_MESSAGES","CLAUDE_MEM_OPENROUTER_MAX_TOKENS","CLAUDE_MEM_DATA_DIR","CLAUDE_MEM_LOG_LEVEL","CLAUDE_MEM_PYTHON_VERSION","CLAUDE_CODE_PATH","CLAUDE_MEM_CONTEXT_SHOW_READ_TOKENS","CLAUDE_MEM_CONTEXT_SHOW_WORK_TOKENS","CLAUDE_MEM_CONTEXT_SHOW_SAVINGS_AMOUNT","CLAUDE_MEM_CONTEXT_SHOW_SAVINGS_PERCENT","CLAUDE_MEM_CONTEXT_OBSERVATION_TYPES","CLAUDE_MEM_CONTEXT_OBSERVATION_CONCEPTS","CLAUDE_MEM_CONTEXT_FULL_COUNT","CLAUDE_MEM_CONTEXT_FULL_FIELD","CLAUDE_MEM_CONTEXT_SESSION_COUNT","CLAUDE_MEM_CONTEXT_SHOW_LAST_SUMMARY","CLAUDE_MEM_CONTEXT_SHOW_LAST_MESSAGE","CLAUDE_MEM_FOLDER_CLAUDEMD_ENABLED"];for(let c of a)r.body[c]!==void 0&&(o[c]=r.body[c]);(0,xr.writeFileSync)(s,JSON.stringify(o,null,2),"utf-8"),dA(),y.info("WORKER","Settings updated"),n.json({success:!0,message:"Settings updated successfully"})});handleGetMcpStatus=this.wrapHandler((r,n)=>{let i=this.isMcpEnabled();n.json({enabled:i})});handleToggleMcp=this.wrapHandler((r,n)=>{let{enabled:i}=r.body;if(typeof i!="boolean"){this.badRequest(n,"enabled must be a boolean");return}this.toggleMcp(i),n.json({success:!0,enabled:this.isMcpEnabled()})});handleGetBranchStatus=this.wrapHandler((r,n)=>{let i=fv();n.json(i)});handleSwitchBranch=this.wrapHandler(async(r,n)=>{let{branch:i}=r.body;if(!i){n.status(400).json({success:!1,error:"Missing branch parameter"});return}let s=["main","beta/7.0","feature/bun-executable"];if(!s.includes(i)){n.status(400).json({success:!1,error:`Invalid branch. Allowed: ${s.join(", ")}`});return}y.info("WORKER","Branch switch requested",{branch:i});let o=await b9(i);o.success&&setTimeout(()=>{y.info("WORKER","Restarting worker after branch switch"),process.exit(0)},1e3),n.json(o)});handleUpdateBranch=this.wrapHandler(async(r,n)=>{y.info("WORKER","Branch update requested");let i=await x9();i.success&&setTimeout(()=>{y.info("WORKER","Restarting worker after branch update"),process.exit(0)},1e3),n.json(i)});validateSettings(r){if(r.CLAUDE_MEM_PROVIDER&&!["claude","gemini","openrouter"].includes(r.CLAUDE_MEM_PROVIDER))return{valid:!1,error:'CLAUDE_MEM_PROVIDER must be "claude", "gemini", or "openrouter"'};if(r.CLAUDE_MEM_GEMINI_MODEL&&!["gemini-2.5-flash-lite","gemini-2.5-flash","gemini-3-flash-preview"].includes(r.CLAUDE_MEM_GEMINI_MODEL))return{valid:!1,error:"CLAUDE_MEM_GEMINI_MODEL must be one of: gemini-2.5-flash-lite, gemini-2.5-flash, gemini-3-flash-preview"};if(r.CLAUDE_MEM_CONTEXT_OBSERVATIONS){let i=parseInt(r.CLAUDE_MEM_CONTEXT_OBSERVATIONS,10);if(isNaN(i)||i<1||i>200)return{valid:!1,error:"CLAUDE_MEM_CONTEXT_OBSERVATIONS must be between 1 and 200"}}if(r.CLAUDE_MEM_WORKER_PORT){let i=parseInt(r.CLAUDE_MEM_WORKER_PORT,10);if(isNaN(i)||i<1024||i>65535)return{valid:!1,error:"CLAUDE_MEM_WORKER_PORT must be between 1024 and 65535"}}if(r.CLAUDE_MEM_WORKER_HOST){let i=r.CLAUDE_MEM_WORKER_HOST;if(!/^(127\.0\.0\.1|0\.0\.0\.0|localhost|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})$/.test(i))return{valid:!1,error:"CLAUDE_MEM_WORKER_HOST must be a valid IP address (e.g., 127.0.0.1, 0.0.0.0)"}}if(r.CLAUDE_MEM_LOG_LEVEL&&!["DEBUG","INFO","WARN","ERROR","SILENT"].includes(r.CLAUDE_MEM_LOG_LEVEL.toUpperCase()))return{valid:!1,error:"CLAUDE_MEM_LOG_LEVEL must be one of: DEBUG, INFO, WARN, ERROR, SILENT"};if(r.CLAUDE_MEM_PYTHON_VERSION&&!/^3\.\d{1,2}$/.test(r.CLAUDE_MEM_PYTHON_VERSION))return{valid:!1,error:'CLAUDE_MEM_PYTHON_VERSION must be in format "3.X" or "3.XX" (e.g., "3.13")'};let n=["CLAUDE_MEM_CONTEXT_SHOW_READ_TOKENS","CLAUDE_MEM_CONTEXT_SHOW_WORK_TOKENS","CLAUDE_MEM_CONTEXT_SHOW_SAVINGS_AMOUNT","CLAUDE_MEM_CONTEXT_SHOW_SAVINGS_PERCENT","CLAUDE_MEM_CONTEXT_SHOW_LAST_SUMMARY","CLAUDE_MEM_CONTEXT_SHOW_LAST_MESSAGE"];for(let i of n)if(r[i]&&!["true","false"].includes(r[i]))return{valid:!1,error:`${i} must be "true" or "false"`};if(r.CLAUDE_MEM_CONTEXT_FULL_COUNT){let i=parseInt(r.CLAUDE_MEM_CONTEXT_FULL_COUNT,10);if(isNaN(i)||i<0||i>20)return{valid:!1,error:"CLAUDE_MEM_CONTEXT_FULL_COUNT must be between 0 and 20"}}if(r.CLAUDE_MEM_CONTEXT_SESSION_COUNT){let i=parseInt(r.CLAUDE_MEM_CONTEXT_SESSION_COUNT,10);if(isNaN(i)||i<1||i>50)return{valid:!1,error:"CLAUDE_MEM_CONTEXT_SESSION_COUNT must be between 1 and 50"}}if(r.CLAUDE_MEM_CONTEXT_FULL_FIELD&&!["narrative","facts"].includes(r.CLAUDE_MEM_CONTEXT_FULL_FIELD))return{valid:!1,error:'CLAUDE_MEM_CONTEXT_FULL_FIELD must be "narrative" or "facts"'};if(r.CLAUDE_MEM_OPENROUTER_MAX_CONTEXT_MESSAGES){let i=parseInt(r.CLAUDE_MEM_OPENROUTER_MAX_CONTEXT_MESSAGES,10);if(isNaN(i)||i<1||i>100)return{valid:!1,error:"CLAUDE_MEM_OPENROUTER_MAX_CONTEXT_MESSAGES must be between 1 and 100"}}if(r.CLAUDE_MEM_OPENROUTER_MAX_TOKENS){let i=parseInt(r.CLAUDE_MEM_OPENROUTER_MAX_TOKENS,10);if(isNaN(i)||i<1e3||i>1e6)return{valid:!1,error:"CLAUDE_MEM_OPENROUTER_MAX_TOKENS must be between 1000 and 1000000"}}if(r.CLAUDE_MEM_OPENROUTER_SITE_URL)try{new URL(r.CLAUDE_MEM_OPENROUTER_SITE_URL)}catch(i){return y.debug("SETTINGS","Invalid URL format",{url:r.CLAUDE_MEM_OPENROUTER_SITE_URL,error:i instanceof Error?i.message:String(i)}),{valid:!1,error:"CLAUDE_MEM_OPENROUTER_SITE_URL must be a valid URL"}}return{valid:!0}}isMcpEnabled(){let r=tn(),n=Xo.default.join(r,"plugin",".mcp.json");return(0,xr.existsSync)(n)}toggleMcp(r){let n=tn(),i=Xo.default.join(n,"plugin",".mcp.json"),s=Xo.default.join(n,"plugin",".mcp.json.disabled");r&&(0,xr.existsSync)(s)?((0,xr.renameSync)(s,i),y.info("WORKER","MCP search server enabled")):!r&&(0,xr.existsSync)(i)?((0,xr.renameSync)(i,s),y.info("WORKER","MCP search server disabled")):y.debug("WORKER","MCP toggle no-op (already in desired state)",{enabled:r})}ensureSettingsFile(r){if(!(0,xr.existsSync)(r)){let n=_e.getAllDefaults(),i=Xo.default.dirname(r);(0,xr.existsSync)(i)||(0,xr.mkdirSync)(i,{recursive:!0}),(0,xr.writeFileSync)(r,JSON.stringify(n,null,2),"utf-8"),y.info("SETTINGS","Created settings file with defaults",{settingsPath:r})}}};var xn=require("fs"),gv=require("path");oe();Yt();function pge(t,e){let r=(0,xn.openSync)(t,"r");try{let i=(0,xn.fstatSync)(r).size;if(i===0)return{lines:"",totalEstimate:0};let s=64*1024,o=10*1024*1024,a=Math.min(s,i),c="",u=0;for(;a<=i&&a<=o;){let f=Math.max(0,i-a),g=i-f,h=Buffer.alloc(g);(0,xn.readSync)(r,h,0,g,f),c=h.toString("utf-8"),u=0;for(let v=0;v=e||f===0)break;a=Math.min(a*2,i,o)}let l=c.split(` +`);l.length>0&&l[l.length-1]===""&&l.pop();let d=Math.max(0,l.length-e),p=l.slice(d),m;if(i<=a)m=l.length;else{let f=c.length/Math.max(u,1);m=Math.round(i/f)}return{lines:p.join(` +`),totalEstimate:m}}finally{(0,xn.closeSync)(r)}}var vv=class extends Nr{getLogFilePath(){let e=_e.get("CLAUDE_MEM_DATA_DIR"),r=(0,gv.join)(e,"logs"),n=new Date().toISOString().split("T")[0];return(0,gv.join)(r,`claude-mem-${n}.log`)}getLogsDir(){let e=_e.get("CLAUDE_MEM_DATA_DIR");return(0,gv.join)(e,"logs")}setupRoutes(e){e.get("/api/logs",this.handleGetLogs.bind(this)),e.post("/api/logs/clear",this.handleClearLogs.bind(this))}handleGetLogs=this.wrapHandler((e,r)=>{let n=this.getLogFilePath();if(!(0,xn.existsSync)(n)){r.json({logs:"",path:n,exists:!1});return}let i=parseInt(e.query.lines||"1000",10),s=Math.min(i,1e4),{lines:o,totalEstimate:a}=pge(n,s),c=o===""?0:o.split(` +`).length;r.json({logs:o,path:n,exists:!0,totalLines:a,returnedLines:c})});handleClearLogs=this.wrapHandler((e,r)=>{let n=this.getLogFilePath();if(!(0,xn.existsSync)(n)){r.json({success:!0,message:"Log file does not exist",path:n});return}(0,xn.writeFileSync)(n,"","utf-8"),y.info("SYSTEM","Log file cleared via UI",{path:n}),r.json({success:!0,message:"Log file cleared",path:n})})};oe();var yv=class extends Nr{constructor(r,n){super();this.dbManager=r;this.defaultProject=n}setupRoutes(r){r.post("/api/memory/save",this.handleSaveMemory.bind(this))}handleSaveMemory=this.wrapHandler(async(r,n)=>{let{text:i,title:s,project:o}=r.body,a=o||this.defaultProject;if(!i||typeof i!="string"||i.trim().length===0){this.badRequest(n,"text is required and must be non-empty");return}let c=this.dbManager.getSessionStore(),u=this.dbManager.getChromaSync(),l=c.getOrCreateManualSession(a),d={type:"discovery",title:s||i.substring(0,60).trim()+(i.length>60?"...":""),subtitle:"Manual memory",facts:[],narrative:i,concepts:[],files_read:[],files_modified:[]},p=c.storeObservation(l,a,d,0,0);y.info("HTTP","Manual observation saved",{id:p.id,project:a,title:d.title}),u.syncObservation(p.id,l,a,d,0,p.createdAtEpoch,0).catch(m=>{y.error("CHROMA","ChromaDB sync failed",{id:p.id},m)}),n.json({success:!0,id:p.id,title:d.title,project:a,message:`Memory saved as observation #${p.id}`})})};var Vge={},zge=120*1e3;function G$(){return V$.default.join(_e.get("CLAUDE_MEM_DATA_DIR"),".worker-start-attempted")}function Lge(){if(process.platform!=="win32")return!1;let t=G$();if(!(0,ms.existsSync)(t))return!1;try{let e=(0,ms.statSync)(t).mtimeMs;return Date.now()-e{this.resolveInitialization=e}),this.dbManager=new ig,this.sessionManager=new cg(this.dbManager),this.sseBroadcaster=new ug,this.sdkAgent=new qg(this.dbManager,this.sessionManager),this.geminiAgent=new Fg(this.dbManager,this.sessionManager),this.openRouterAgent=new Bg(this.dbManager,this.sessionManager),this.paginationHelper=new Vg(this.dbManager),this.settingsManager=new Gg(this.dbManager),this.sessionEventBroadcaster=new Xg(this.sseBroadcaster,this),this.sessionManager.setOnSessionDeleted(()=>{this.broadcastProcessingStatus()}),this.mcpClient=new Ha({name:"worker-search-proxy",version:Fge},{capabilities:{}}),this.server=new rg({getInitializationComplete:()=>this.initializationCompleteFlag,getMcpReady:()=>this.mcpReady,onShutdown:()=>this.shutdown(),onRestart:()=>this.shutdown(),workerPath:__filename,getAiStatus:()=>{let e="claude";return eu()&&Go()?e="openrouter":Qc()&&Vo()&&(e="gemini"),{provider:e,authMethod:zf(),lastInteraction:this.lastAiInteraction?{timestamp:this.lastAiInteraction.timestamp,success:this.lastAiInteraction.success,...this.lastAiInteraction.error&&{error:this.lastAiInteraction.error}}:null}}}),this.registerRoutes(),this.registerSignalHandlers()}registerSignalHandlers(){IA(async()=>{this.isShuttingDown=!0,await this.shutdown()})}registerRoutes(){this.server.app.get("/api/context/inject",async(e,r,n)=>{if(!this.initializationCompleteFlag||!this.searchRoutes){y.warn("SYSTEM","Context requested before initialization complete, returning empty"),r.status(200).json({content:[{type:"text",text:""}]});return}n()}),this.server.app.use("/api",async(e,r,n)=>{if(this.initializationCompleteFlag){n();return}let i=3e4,s=new Promise((o,a)=>setTimeout(()=>a(new Error("Database initialization timeout")),i));try{await Promise.race([this.initializationComplete,s]),n()}catch(o){y.error("HTTP",`Request to ${e.method} ${e.path} rejected \u2014 DB not initialized`,{},o),r.status(503).json({error:"Service initializing",message:"Database is still initializing, please retry"})}}),this.server.registerRoutes(new Qg(this.sseBroadcaster,this.dbManager,this.sessionManager)),this.server.registerRoutes(new rv(this.sessionManager,this.dbManager,this.sdkAgent,this.geminiAgent,this.openRouterAgent,this.sessionEventBroadcaster,this)),this.server.registerRoutes(new iv(this.paginationHelper,this.dbManager,this.sessionManager,this.sseBroadcaster,this,this.startTime)),this.server.registerRoutes(new hv(this.settingsManager)),this.server.registerRoutes(new vv),this.server.registerRoutes(new yv(this.dbManager,"claude-mem"))}async start(){let e=Fr(),r=A0();await $A(),await this.server.listen(e,r),LA({pid:process.pid,port:e,startedAt:new Date().toISOString()}),gt().registerProcess("worker",{pid:process.pid,type:"worker",startedAt:new Date().toISOString()}),y.info("SYSTEM","Worker started",{host:r,port:e,pid:process.pid}),this.initializeBackground().catch(n=>{y.error("SYSTEM","Background initialization failed",{},n)})}async initializeBackground(){try{await UA();let{ModeManager:e}=await Promise.resolve().then(()=>(Br(),IU)),{SettingsDefaultsManager:r}=await Promise.resolve().then(()=>(Yt(),tA)),{USER_SETTINGS_PATH:n}=await Promise.resolve().then(()=>(Nt(),uA)),i=r.loadFromFile(n);(i.CLAUDE_MEM_MODE==="local"||!i.CLAUDE_MEM_MODE)&&qA(),i.CLAUDE_MEM_CHROMA_ENABLED!=="false"?(this.chromaMcpManager=Xi.getInstance(),y.info("SYSTEM","ChromaMcpManager initialized (lazy - connects on first use)")):y.info("SYSTEM","Chroma disabled via CLAUDE_MEM_CHROMA_ENABLED=false, skipping ChromaMcpManager");let o=i.CLAUDE_MEM_MODE;e.getInstance().loadMode(o),y.info("SYSTEM",`Mode loaded: ${o}`),await this.dbManager.initialize();let{PendingMessageStore:a}=await Promise.resolve().then(()=>(Us(),zo)),u=new a(this.dbManager.getSessionStore().db,3).resetStaleProcessingMessages(0);u>0&&y.info("SYSTEM",`Reset ${u} stale processing messages to pending`);let l=new Kg,d=new Jg,p=new Wg(this.dbManager.getSessionSearch(),this.dbManager.getSessionStore(),this.dbManager.getChromaSync(),l,d);this.searchRoutes=new pv(p),this.server.registerRoutes(this.searchRoutes),y.info("WORKER","SearchManager initialized and search routes registered"),this.initializationCompleteFlag=!0,this.resolveInitialization(),y.info("SYSTEM","Core initialization complete (DB + search ready)"),this.chromaMcpManager&&Ja.backfillAllProjects().then(()=>{y.info("CHROMA_SYNC","Backfill check complete for all projects")}).catch(_=>{y.error("CHROMA_SYNC","Backfill failed (non-blocking)",{},_)});let m=V$.default.join(__dirname,"mcp-server.cjs");gt().assertCanSpawn("mcp server");let f=new Va({command:"node",args:[m],env:vi(process.env)}),g=3e5,h=this.mcpClient.connect(f),v,x=new Promise((_,S)=>{v=setTimeout(()=>S(new Error("MCP connection timeout after 5 minutes")),g)});try{await Promise.race([h,x])}catch(_){clearTimeout(v),y.warn("WORKER","MCP server connection failed, cleaning up subprocess",{error:_ instanceof Error?_.message:String(_)});try{await f.close()}catch{}throw _}clearTimeout(v);let b=f._process;b?.pid&&(gt().registerProcess("mcp-server",{pid:b.pid,type:"mcp",startedAt:new Date().toISOString()},b),b.once("exit",()=>{gt().unregisterProcess("mcp-server")})),this.mcpReady=!0,y.success("WORKER","MCP server connected"),this.stopOrphanReaper=$U(()=>{let _=new Set;for(let[S]of this.sessionManager.sessions)_.add(S);return _}),y.info("SYSTEM","Started orphan reaper (runs every 30 seconds)"),this.staleSessionReaperInterval=setInterval(async()=>{try{let _=await this.sessionManager.reapStaleSessions();_>0&&y.info("SYSTEM",`Reaped ${_} stale sessions`)}catch(_){y.error("SYSTEM","Stale session reaper error",{error:_ instanceof Error?_.message:String(_)})}},120*1e3),this.processPendingQueues(50).then(_=>{_.sessionsStarted>0&&y.info("SYSTEM",`Auto-recovered ${_.sessionsStarted} sessions with pending work`,{totalPending:_.totalPendingSessions,started:_.sessionsStarted,sessionIds:_.startedSessionIds})}).catch(_=>{y.error("SYSTEM","Auto-recovery of pending queues failed",{},_)})}catch(e){throw y.error("SYSTEM","Background initialization failed",{},e),e}}getActiveAgent(){return eu()&&Go()?this.openRouterAgent:Qc()&&Vo()?this.geminiAgent:this.sdkAgent}startSessionProcessor(e,r){if(!e)return;let n=e.sessionDbId,i=this.getActiveAgent(),s=i.constructor.name;e.abortController.signal.aborted&&(y.debug("SYSTEM","Replacing aborted AbortController before starting generator",{sessionId:e.sessionDbId}),e.abortController=new AbortController);let o=!1,a=!1;y.info("SYSTEM",`Starting generator (${r}) using ${s}`,{sessionId:n}),e.lastGeneratorActivity=Date.now(),e.generatorPromise=i.startSession(e,this).catch(async c=>{let u=c?.message||"";if(["Claude executable not found","CLAUDE_CODE_PATH","ENOENT","spawn","Invalid API key","FOREIGN KEY constraint failed"].some(d=>u.includes(d))){o=!0,this.lastAiInteraction={timestamp:Date.now(),success:!1,provider:s,error:u},y.error("SDK","Unrecoverable generator error - will NOT restart",{sessionId:e.sessionDbId,project:e.project,errorMessage:u});return}if(this.isSessionTerminatedError(c))return y.warn("SDK","SDK resume failed, falling back to standalone processing",{sessionId:e.sessionDbId,project:e.project,reason:c instanceof Error?c.message:String(c)}),this.runFallbackForTerminatedSession(e,c);throw(u.includes("aborted by user")||u.includes("No conversation found"))&&e.memorySessionId&&(y.warn("SDK","Detected stale resume failure, clearing memorySessionId for fresh start",{sessionId:e.sessionDbId,memorySessionId:e.memorySessionId,errorMessage:u}),this.dbManager.getSessionStore().updateMemorySessionId(e.sessionDbId,null),e.memorySessionId=null,e.forceInit=!0),y.error("SDK","Session generator failed",{sessionId:e.sessionDbId,project:e.project,provider:s},c),a=!0,this.lastAiInteraction={timestamp:Date.now(),success:!1,provider:s,error:u},c}).finally(async()=>{let c=qs(e.sessionDbId);if(c&&c.process.exitCode===null&&await Fs(c,5e3),e.generatorPromise=null,!a&&!o&&(this.lastAiInteraction={timestamp:Date.now(),success:!0,provider:s}),o){y.warn("SYSTEM","Skipping restart due to unrecoverable error",{sessionId:e.sessionDbId}),this.broadcastProcessingStatus();return}let{PendingMessageStore:u}=(Us(),ou(zo)),l=new u(this.dbManager.getSessionStore().db,3);if(e.idleTimedOut){y.info("SYSTEM","Generator exited due to idle timeout, not restarting",{sessionId:e.sessionDbId}),e.idleTimedOut=!1,this.broadcastProcessingStatus();return}let d=l.getPendingCount(e.sessionDbId),p=3;if(d>0){if(e.consecutiveRestarts=(e.consecutiveRestarts||0)+1,e.consecutiveRestarts>p){y.error("SYSTEM","Exceeded max pending-work restarts, stopping to prevent infinite loop",{sessionId:e.sessionDbId,pendingCount:d,consecutiveRestarts:e.consecutiveRestarts}),e.consecutiveRestarts=0,this.broadcastProcessingStatus();return}y.info("SYSTEM","Pending work remains after generator exit, restarting with fresh AbortController",{sessionId:e.sessionDbId,pendingCount:d,attempt:e.consecutiveRestarts}),e.abortController=new AbortController,this.startSessionProcessor(e,"pending-work-restart")}else e.consecutiveRestarts=0;this.broadcastProcessingStatus()})}isSessionTerminatedError(e){let n=(e instanceof Error?e.message:String(e)).toLowerCase();return n.includes("process aborted by user")||n.includes("processtransport")||n.includes("not ready for writing")||n.includes("session generator failed")||n.includes("claude code process")}async runFallbackForTerminatedSession(e,r){if(!e)return;let n=e.sessionDbId;if(!e.memorySessionId){let o=`fallback-${n}-${Date.now()}`;e.memorySessionId=o,this.dbManager.getSessionStore().updateMemorySessionId(n,o)}if(Vo())try{await this.geminiAgent.startSession(e,this);return}catch(o){y.warn("SDK","Fallback Gemini failed, trying OpenRouter",{sessionId:n,error:o instanceof Error?o.message:String(o)})}if(Go())try{await this.openRouterAgent.startSession(e,this);return}catch(o){y.warn("SDK","Fallback OpenRouter failed",{sessionId:n,error:o instanceof Error?o.message:String(o)})}let s=this.sessionManager.getPendingMessageStore().markAllSessionMessagesAbandoned(n);s>0&&y.warn("SDK","No fallback available; marked pending messages abandoned",{sessionId:n,abandoned:s}),this.sessionManager.removeSessionImmediate(n),this.sessionEventBroadcaster.broadcastSessionCompleted(n)}async processPendingQueues(e=10){let{PendingMessageStore:r}=await Promise.resolve().then(()=>(Us(),zo)),n=new r(this.dbManager.getSessionStore().db,3),i=this.dbManager.getSessionStore(),s=360*60*1e3,o=Date.now()-s;try{let u=i.db.prepare(` SELECT id FROM sdk_sessions WHERE status = 'active' AND started_at_epoch < ? - `).all(staleThreshold); - if (staleSessionIds.length > 0) { - const ids = staleSessionIds.map((r) => r.id); - const placeholders = ids.map(() => "?").join(","); - sessionStore.db.prepare(` + `).all(o);if(u.length>0){let l=u.map(m=>m.id),d=l.map(()=>"?").join(",");i.db.prepare(` UPDATE sdk_sessions SET status = 'failed', completed_at_epoch = ? - WHERE id IN (${placeholders}) - `).run(Date.now(), ...ids); - logger.info("SYSTEM", `Marked ${ids.length} stale sessions as failed`); - const msgResult = sessionStore.db.prepare(` + WHERE id IN (${d}) + `).run(Date.now(),...l),y.info("SYSTEM",`Marked ${l.length} stale sessions as failed`);let p=i.db.prepare(` UPDATE pending_messages SET status = 'failed', failed_at_epoch = ? WHERE status = 'pending' - AND session_db_id IN (${placeholders}) - `).run(Date.now(), ...ids); - if (msgResult.changes > 0) { - logger.info("SYSTEM", `Marked ${msgResult.changes} pending messages from stale sessions as failed`); - } - } - } catch (error3) { - logger.error("SYSTEM", "Failed to clean up stale sessions", {}, error3); - } - const orphanedSessionIds = pendingStore.getSessionsWithPendingMessages(); - const result = { - totalPendingSessions: orphanedSessionIds.length, - sessionsStarted: 0, - sessionsSkipped: 0, - startedSessionIds: [] - }; - if (orphanedSessionIds.length === 0) - return result; - logger.info("SYSTEM", `Processing up to ${sessionLimit} of ${orphanedSessionIds.length} pending session queues`); - for (const sessionDbId of orphanedSessionIds) { - if (result.sessionsStarted >= sessionLimit) - break; - try { - const existingSession = this.sessionManager.getSession(sessionDbId); - if (existingSession?.generatorPromise) { - result.sessionsSkipped++; - continue; - } - const session = this.sessionManager.initializeSession(sessionDbId); - logger.info("SYSTEM", `Starting processor for session ${sessionDbId}`, { - project: session.project, - pendingCount: pendingStore.getPendingCount(sessionDbId) - }); - this.startSessionProcessor(session, "startup-recovery"); - result.sessionsStarted++; - result.startedSessionIds.push(sessionDbId); - await new Promise((resolve) => setTimeout(resolve, 100)); - } catch (error3) { - logger.error("SYSTEM", `Failed to process session ${sessionDbId}`, {}, error3); - result.sessionsSkipped++; - } - } - return result; - } - async shutdown() { - if (this.stopOrphanReaper) { - this.stopOrphanReaper(); - this.stopOrphanReaper = null; - } - if (this.staleSessionReaperInterval) { - clearInterval(this.staleSessionReaperInterval); - this.staleSessionReaperInterval = null; - } - await performGracefulShutdown({ - server: this.server.getHttpServer(), - sessionManager: this.sessionManager, - mcpClient: this.mcpClient, - dbManager: this.dbManager, - chromaMcpManager: this.chromaMcpManager || undefined - }); - } - broadcastProcessingStatus() { - const isProcessing = this.sessionManager.isAnySessionProcessing(); - const queueDepth = this.sessionManager.getTotalActiveWork(); - const activeSessions = this.sessionManager.getActiveSessionCount(); - logger.info("WORKER", "Broadcasting processing status", { - isProcessing, - queueDepth, - activeSessions - }); - this.sseBroadcaster.broadcast({ - type: "processing_status", - isProcessing, - queueDepth - }); - } -} -async function ensureWorkerStarted(port) { - const pidFileStatus = cleanStalePidFile(); - if (pidFileStatus === "alive") { - logger.info("SYSTEM", "Worker PID file points to a live process, skipping duplicate spawn"); - const healthy2 = await waitForHealth(port, getPlatformTimeout(HOOK_TIMEOUTS.PORT_IN_USE_WAIT)); - if (healthy2) { - logger.info("SYSTEM", "Worker became healthy while waiting on live PID"); - return true; - } - logger.warn("SYSTEM", "Live PID detected but worker did not become healthy before timeout"); - return false; - } - if (await waitForHealth(port, 1000)) { - const versionCheck = await checkVersionMatch(port); - if (!versionCheck.matches) { - const RESTART_COORDINATION_THRESHOLD_MS = 15000; - if (isPidFileRecent(RESTART_COORDINATION_THRESHOLD_MS)) { - logger.info("SYSTEM", "Version mismatch detected but PID file is recent — another restart likely in progress, polling health", { - pluginVersion: versionCheck.pluginVersion, - workerVersion: versionCheck.workerVersion - }); - const healthy2 = await waitForHealth(port, RESTART_COORDINATION_THRESHOLD_MS); - if (healthy2) { - logger.info("SYSTEM", "Worker became healthy after waiting for concurrent restart"); - return true; - } - logger.warn("SYSTEM", "Worker did not become healthy after waiting — proceeding with own restart"); - } - logger.info("SYSTEM", "Worker version mismatch detected - auto-restarting", { - pluginVersion: versionCheck.pluginVersion, - workerVersion: versionCheck.workerVersion - }); - await httpShutdown(port); - const freed = await waitForPortFree(port, getPlatformTimeout(HOOK_TIMEOUTS.PORT_IN_USE_WAIT)); - if (!freed) { - logger.error("SYSTEM", "Port did not free up after shutdown for version mismatch restart", { port }); - return false; - } - removePidFile(); - } else { - logger.info("SYSTEM", "Worker already running and healthy"); - return true; - } - } - const portInUse = await isPortInUse(port); - if (portInUse) { - logger.info("SYSTEM", "Port in use, waiting for worker to become healthy"); - const healthy2 = await waitForHealth(port, getPlatformTimeout(HOOK_TIMEOUTS.PORT_IN_USE_WAIT)); - if (healthy2) { - logger.info("SYSTEM", "Worker is now healthy"); - return true; - } - logger.error("SYSTEM", "Port in use but worker not responding to health checks"); - return false; - } - if (shouldSkipSpawnOnWindows()) { - logger.warn("SYSTEM", "Worker unavailable on Windows — skipping spawn (recent attempt failed within cooldown)"); - return false; - } - logger.info("SYSTEM", "Starting worker daemon"); - markWorkerSpawnAttempted(); - const pid = spawnDaemon(__filename, port); - if (pid === undefined) { - logger.error("SYSTEM", "Failed to spawn worker daemon"); - return false; - } - const healthy = await waitForHealth(port, getPlatformTimeout(HOOK_TIMEOUTS.POST_SPAWN_WAIT)); - if (!healthy) { - removePidFile(); - logger.error("SYSTEM", "Worker failed to start (health check timeout)"); - return false; - } - const ready = await waitForReadiness(port, getPlatformTimeout(HOOK_TIMEOUTS.READINESS_WAIT)); - if (!ready) { - logger.warn("SYSTEM", "Worker is alive but readiness timed out — proceeding anyway"); - } - clearWorkerSpawnAttempted(); - touchPidFile(); - logger.info("SYSTEM", "Worker started successfully"); - return true; -} -async function main() { - const command = process.argv[2]; - const hookInitiatedCommands = ["start", "hook", "restart", "--daemon"]; - if ((hookInitiatedCommands.includes(command) || command === undefined) && isPluginDisabledInClaudeSettings()) { - process.exit(0); - } - const port = getWorkerPort(); - function exitWithStatus(status, message) { - const output = buildStatusOutput(status, message); - console.log(JSON.stringify(output)); - process.exit(0); - } - switch (command) { - case "start": { - const success = await ensureWorkerStarted(port); - if (success) { - exitWithStatus("ready"); - } else { - exitWithStatus("error", "Failed to start worker"); - } - break; - } - case "stop": { - await httpShutdown(port); - const freed = await waitForPortFree(port, getPlatformTimeout(15000)); - if (!freed) { - logger.warn("SYSTEM", "Port did not free up after shutdown", { port }); - } - removePidFile(); - logger.info("SYSTEM", "Worker stopped successfully"); - process.exit(0); - break; - } - case "restart": { - logger.info("SYSTEM", "Restarting worker"); - await httpShutdown(port); - const restartFreed = await waitForPortFree(port, getPlatformTimeout(15000)); - if (!restartFreed) { - logger.error("SYSTEM", "Port did not free up after shutdown, aborting restart", { port }); - process.exit(0); - } - removePidFile(); - const pid = spawnDaemon(__filename, port); - if (pid === undefined) { - logger.error("SYSTEM", "Failed to spawn worker daemon during restart"); - process.exit(0); - } - const healthy = await waitForHealth(port, getPlatformTimeout(HOOK_TIMEOUTS.POST_SPAWN_WAIT)); - if (!healthy) { - removePidFile(); - logger.error("SYSTEM", "Worker failed to restart"); - process.exit(0); - } - logger.info("SYSTEM", "Worker restarted successfully"); - process.exit(0); - break; - } - case "status": { - const portInUse = await isPortInUse(port); - const pidInfo = readPidFile(); - if (portInUse && pidInfo) { - console.log("Worker is running"); - console.log(` PID: ${pidInfo.pid}`); - console.log(` Port: ${pidInfo.port}`); - console.log(` Started: ${pidInfo.startedAt}`); - } else { - console.log("Worker is not running"); - } - process.exit(0); - break; - } - case "cursor": { - const subcommand = process.argv[3]; - const cursorResult = await handleCursorCommand(subcommand, process.argv.slice(4)); - process.exit(cursorResult); - break; - } - case "hook": { - const platform = process.argv[3]; - const event = process.argv[4]; - if (!platform || !event) { - console.error("Usage: claude-mem hook "); - console.error("Platforms: claude-code, cursor, raw"); - console.error("Events: context, session-init, observation, summarize, session-complete"); - process.exit(1); - } - const workerReady = await ensureWorkerStarted(port); - if (!workerReady) { - logger.warn("SYSTEM", "Worker failed to start before hook, handler will proceed gracefully"); - } - const { hookCommand: hookCommand2 } = await Promise.resolve().then(() => (init_hook_command(), exports_hook_command)); - await hookCommand2(platform, event); - break; - } - case "generate": { - const dryRun = process.argv.includes("--dry-run"); - const { generateClaudeMd: generateClaudeMd2 } = await Promise.resolve().then(() => (init_claude_md_commands(), exports_claude_md_commands)); - const result = await generateClaudeMd2(dryRun); - process.exit(result); - break; - } - case "clean": { - const dryRun = process.argv.includes("--dry-run"); - const { cleanClaudeMd: cleanClaudeMd2 } = await Promise.resolve().then(() => (init_claude_md_commands(), exports_claude_md_commands)); - const result = await cleanClaudeMd2(dryRun); - process.exit(result); - break; - } - case "--daemon": - default: { - const existingPidInfo = readPidFile(); - if (existingPidInfo && isProcessAlive(existingPidInfo.pid)) { - logger.info("SYSTEM", "Worker already running (PID alive), refusing to start duplicate", { - existingPid: existingPidInfo.pid, - existingPort: existingPidInfo.port, - startedAt: existingPidInfo.startedAt - }); - process.exit(0); - } - if (await isPortInUse(port)) { - logger.info("SYSTEM", "Port already in use, refusing to start duplicate", { port }); - process.exit(0); - } - process.on("unhandledRejection", (reason) => { - logger.error("SYSTEM", "Unhandled rejection in daemon", { - reason: reason instanceof Error ? reason.message : String(reason) - }); - }); - process.on("uncaughtException", (error3) => { - logger.error("SYSTEM", "Uncaught exception in daemon", {}, error3); - }); - const worker = new WorkerService; - worker.start().catch((error3) => { - logger.failure("SYSTEM", "Worker failed to start", {}, error3); - removePidFile(); - process.exit(0); - }); - } - } -} -var isMainModule = typeof module_worker_service !== "undefined" ? __require.main == __require.module || !module_worker_service.parent : import.meta.url === `file://${process.argv[1]}` || process.argv[1]?.endsWith("worker-service"); -if (isMainModule) { - main().catch((error3) => { - logger.error("SYSTEM", "Fatal error in main", {}, error3 instanceof Error ? error3 : undefined); - process.exit(0); - }); -} -export { - isPluginDisabledInClaudeSettings, - buildStatusOutput, - WorkerService -}; + AND session_db_id IN (${d}) + `).run(Date.now(),...l);p.changes>0&&y.info("SYSTEM",`Marked ${p.changes} pending messages from stale sessions as failed`)}}catch(u){y.error("SYSTEM","Failed to clean up stale sessions",{},u)}let a=n.getSessionsWithPendingMessages(),c={totalPendingSessions:a.length,sessionsStarted:0,sessionsSkipped:0,startedSessionIds:[]};if(a.length===0)return c;y.info("SYSTEM",`Processing up to ${e} of ${a.length} pending session queues`);for(let u of a){if(c.sessionsStarted>=e)break;try{if(this.sessionManager.getSession(u)?.generatorPromise){c.sessionsSkipped++;continue}let d=this.sessionManager.initializeSession(u);y.info("SYSTEM",`Starting processor for session ${u}`,{project:d.project,pendingCount:n.getPendingCount(u)}),this.startSessionProcessor(d,"startup-recovery"),c.sessionsStarted++,c.startedSessionIds.push(u),await new Promise(p=>setTimeout(p,100))}catch(l){y.error("SYSTEM",`Failed to process session ${u}`,{},l),c.sessionsSkipped++}}return c}async shutdown(){this.stopOrphanReaper&&(this.stopOrphanReaper(),this.stopOrphanReaper=null),this.staleSessionReaperInterval&&(clearInterval(this.staleSessionReaperInterval),this.staleSessionReaperInterval=null),await XA({server:this.server.getHttpServer(),sessionManager:this.sessionManager,mcpClient:this.mcpClient,dbManager:this.dbManager,chromaMcpManager:this.chromaMcpManager||void 0})}broadcastProcessingStatus(){let e=this.sessionManager.isAnySessionProcessing(),r=this.sessionManager.getTotalActiveWork(),n=this.sessionManager.getActiveSessionCount();y.info("WORKER","Broadcasting processing status",{isProcessing:e,queueDepth:r,activeSessions:n}),this.sseBroadcaster.broadcast({type:"processing_status",isProcessing:e,queueDepth:r})}};async function B9(t){if(BA()==="alive")return y.info("SYSTEM","Worker PID file points to a live process, skipping duplicate spawn"),await bo(t,es(_r.PORT_IN_USE_WAIT))?(y.info("SYSTEM","Worker became healthy while waiting on live PID"),!0):(y.warn("SYSTEM","Live PID detected but worker did not become healthy before timeout"),!1);if(await bo(t,1e3)){let o=await JA(t);if(o.matches)return y.info("SYSTEM","Worker already running and healthy"),!0;if(HA(15e3)){if(y.info("SYSTEM","Version mismatch detected but PID file is recent \u2014 another restart likely in progress, polling health",{pluginVersion:o.pluginVersion,workerVersion:o.workerVersion}),await bo(t,15e3))return y.info("SYSTEM","Worker became healthy after waiting for concurrent restart"),!0;y.warn("SYSTEM","Worker did not become healthy after waiting \u2014 proceeding with own restart")}if(y.info("SYSTEM","Worker version mismatch detected - auto-restarting",{pluginVersion:o.pluginVersion,workerVersion:o.workerVersion}),await Wf(t),!await Gf(t,es(_r.PORT_IN_USE_WAIT)))return y.error("SYSTEM","Port did not free up after shutdown for version mismatch restart",{port:t}),!1;_o()}return await Wl(t)?(y.info("SYSTEM","Port in use, waiting for worker to become healthy"),await bo(t,es(_r.PORT_IN_USE_WAIT))?(y.info("SYSTEM","Worker is now healthy"),!0):(y.error("SYSTEM","Port in use but worker not responding to health checks"),!1)):Lge()?(y.warn("SYSTEM","Worker unavailable on Windows \u2014 skipping spawn (recent attempt failed within cooldown)"),!1):(y.info("SYSTEM","Starting worker daemon"),Uge(),Q0(__filename,t)===void 0?(y.error("SYSTEM","Failed to spawn worker daemon"),!1):await bo(t,es(_r.POST_SPAWN_WAIT))?(await KA(t,es(_r.READINESS_WAIT))||y.warn("SYSTEM","Worker is alive but readiness timed out \u2014 proceeding anyway"),qge(),ZA(),y.info("SYSTEM","Worker started successfully"),!0):(_o(),y.error("SYSTEM","Worker failed to start (health check timeout)"),!1))}async function Hge(){let t=process.argv[2];(["start","hook","restart","--daemon"].includes(t)||t===void 0)&&Vf()&&process.exit(0);let r=Fr();function n(i,s){let o=V9(i,s);console.log(JSON.stringify(o)),process.exit(0)}switch(t){case"start":{await B9(r)?n("ready"):n("error","Failed to start worker");break}case"stop":{await Wf(r),await Gf(r,es(15e3))||y.warn("SYSTEM","Port did not free up after shutdown",{port:r}),_o(),y.info("SYSTEM","Worker stopped successfully"),process.exit(0);break}case"restart":{y.info("SYSTEM","Restarting worker"),await Wf(r),await Gf(r,es(15e3))||(y.error("SYSTEM","Port did not free up after shutdown, aborting restart",{port:r}),process.exit(0)),_o(),Q0(__filename,r)===void 0&&(y.error("SYSTEM","Failed to spawn worker daemon during restart"),process.exit(0)),await bo(r,es(_r.POST_SPAWN_WAIT))||(_o(),y.error("SYSTEM","Worker failed to restart"),process.exit(0)),y.info("SYSTEM","Worker restarted successfully"),process.exit(0);break}case"status":{let i=await Wl(r),s=Y0();i&&s?(console.log("Worker is running"),console.log(` PID: ${s.pid}`),console.log(` Port: ${s.port}`),console.log(` Started: ${s.startedAt}`)):console.log("Worker is not running"),process.exit(0);break}case"cursor":{let i=process.argv[3],s=await gU(i,process.argv.slice(4));process.exit(s);break}case"hook":{let i=process.argv[3],s=process.argv[4];(!i||!s)&&(console.error("Usage: claude-mem hook "),console.error("Platforms: claude-code, cursor, raw"),console.error("Events: context, session-init, observation, summarize, session-complete"),process.exit(1)),await B9(r)||y.warn("SYSTEM","Worker failed to start before hook, handler will proceed gracefully");let{hookCommand:a}=await Promise.resolve().then(()=>(U9(),L9));await a(i,s);break}case"generate":{let i=process.argv.includes("--dry-run"),{generateClaudeMd:s}=await Promise.resolve().then(()=>(B$(),Z$)),o=await s(i);process.exit(o);break}case"clean":{let i=process.argv.includes("--dry-run"),{cleanClaudeMd:s}=await Promise.resolve().then(()=>(B$(),Z$)),o=await s(i);process.exit(o);break}default:{let i=Y0();i&&FA(i.pid)&&(y.info("SYSTEM","Worker already running (PID alive), refusing to start duplicate",{existingPid:i.pid,existingPort:i.port,startedAt:i.startedAt}),process.exit(0)),await Wl(r)&&(y.info("SYSTEM","Port already in use, refusing to start duplicate",{port:r}),process.exit(0)),process.on("unhandledRejection",o=>{y.error("SYSTEM","Unhandled rejection in daemon",{reason:o instanceof Error?o.message:String(o)})}),process.on("uncaughtException",o=>{y.error("SYSTEM","Uncaught exception in daemon",{},o)}),new xv().start().catch(o=>{y.failure("SYSTEM","Worker failed to start",{},o),_o(),process.exit(0)})}}}var Zge=typeof require<"u"&&typeof module<"u"?require.main===module||!module.parent:Vge.url===`file://${process.argv[1]}`||process.argv[1]?.endsWith("worker-service");Zge&&Hge().catch(t=>{y.error("SYSTEM","Fatal error in main",{},t instanceof Error?t:void 0),process.exit(0)});0&&(module.exports={WorkerService,buildStatusOutput,isPluginDisabledInClaudeSettings}); +/*! Bundled license information: + +depd/index.js: + (*! + * depd + * Copyright(c) 2014-2018 Douglas Christopher Wilson + * MIT Licensed + *) + +bytes/index.js: + (*! + * bytes + * Copyright(c) 2012-2014 TJ Holowaychuk + * Copyright(c) 2015 Jed Watson + * MIT Licensed + *) + +content-type/index.js: + (*! + * content-type + * Copyright(c) 2015 Douglas Christopher Wilson + * MIT Licensed + *) + +statuses/index.js: + (*! + * statuses + * Copyright(c) 2014 Jonathan Ong + * Copyright(c) 2016 Douglas Christopher Wilson + * MIT Licensed + *) + +toidentifier/index.js: + (*! + * toidentifier + * Copyright(c) 2016 Douglas Christopher Wilson + * MIT Licensed + *) + +http-errors/index.js: + (*! + * http-errors + * Copyright(c) 2014 Jonathan Ong + * Copyright(c) 2016 Douglas Christopher Wilson + * MIT Licensed + *) + +destroy/index.js: + (*! + * destroy + * Copyright(c) 2014 Jonathan Ong + * Copyright(c) 2015-2022 Douglas Christopher Wilson + * MIT Licensed + *) + +unpipe/index.js: + (*! + * unpipe + * Copyright(c) 2015 Douglas Christopher Wilson + * MIT Licensed + *) + +raw-body/index.js: + (*! + * raw-body + * Copyright(c) 2013-2014 Jonathan Ong + * Copyright(c) 2014-2022 Douglas Christopher Wilson + * MIT Licensed + *) + +ee-first/index.js: + (*! + * ee-first + * Copyright(c) 2014 Jonathan Ong + * MIT Licensed + *) + +on-finished/index.js: + (*! + * on-finished + * Copyright(c) 2013 Jonathan Ong + * Copyright(c) 2014 Douglas Christopher Wilson + * MIT Licensed + *) + +body-parser/lib/read.js: +body-parser/lib/types/raw.js: +body-parser/lib/types/text.js: +body-parser/index.js: + (*! + * body-parser + * Copyright(c) 2014-2015 Douglas Christopher Wilson + * MIT Licensed + *) + +media-typer/index.js: + (*! + * media-typer + * Copyright(c) 2014 Douglas Christopher Wilson + * MIT Licensed + *) + +mime-db/index.js: + (*! + * mime-db + * Copyright(c) 2014 Jonathan Ong + * Copyright(c) 2015-2022 Douglas Christopher Wilson + * MIT Licensed + *) + +mime-types/index.js: + (*! + * mime-types + * Copyright(c) 2014 Jonathan Ong + * Copyright(c) 2015 Douglas Christopher Wilson + * MIT Licensed + *) + +type-is/index.js: + (*! + * type-is + * Copyright(c) 2014 Jonathan Ong + * Copyright(c) 2014-2015 Douglas Christopher Wilson + * MIT Licensed + *) + +body-parser/lib/types/json.js: +body-parser/lib/types/urlencoded.js: + (*! + * body-parser + * Copyright(c) 2014 Jonathan Ong + * Copyright(c) 2014-2015 Douglas Christopher Wilson + * MIT Licensed + *) + +merge-descriptors/index.js: + (*! + * merge-descriptors + * Copyright(c) 2014 Jonathan Ong + * Copyright(c) 2015 Douglas Christopher Wilson + * MIT Licensed + *) + +encodeurl/index.js: + (*! + * encodeurl + * Copyright(c) 2016 Douglas Christopher Wilson + * MIT Licensed + *) + +escape-html/index.js: + (*! + * escape-html + * Copyright(c) 2012-2013 TJ Holowaychuk + * Copyright(c) 2015 Andreas Lubbe + * Copyright(c) 2015 Tiancheng "Timothy" Gu + * MIT Licensed + *) + +parseurl/index.js: + (*! + * parseurl + * Copyright(c) 2014 Jonathan Ong + * Copyright(c) 2014-2017 Douglas Christopher Wilson + * MIT Licensed + *) + +finalhandler/index.js: + (*! + * finalhandler + * Copyright(c) 2014-2022 Douglas Christopher Wilson + * MIT Licensed + *) + +express/lib/router/layer.js: +express/lib/router/route.js: +express/lib/router/index.js: +express/lib/middleware/init.js: +express/lib/middleware/query.js: +express/lib/view.js: +express/lib/application.js: +express/lib/request.js: +express/lib/express.js: +express/index.js: + (*! + * express + * Copyright(c) 2009-2013 TJ Holowaychuk + * Copyright(c) 2013 Roman Shtylman + * Copyright(c) 2014-2015 Douglas Christopher Wilson + * MIT Licensed + *) + +methods/index.js: + (*! + * methods + * Copyright(c) 2013-2014 TJ Holowaychuk + * Copyright(c) 2015-2016 Douglas Christopher Wilson + * MIT Licensed + *) + +safe-buffer/index.js: + (*! safe-buffer. MIT License. Feross Aboukhadijeh *) + +content-disposition/index.js: + (*! + * content-disposition + * Copyright(c) 2014-2017 Douglas Christopher Wilson + * MIT Licensed + *) + +etag/index.js: + (*! + * etag + * Copyright(c) 2014-2016 Douglas Christopher Wilson + * MIT Licensed + *) + +fresh/index.js: + (*! + * fresh + * Copyright(c) 2012 TJ Holowaychuk + * Copyright(c) 2016-2017 Douglas Christopher Wilson + * MIT Licensed + *) + +range-parser/index.js: + (*! + * range-parser + * Copyright(c) 2012-2014 TJ Holowaychuk + * Copyright(c) 2015-2016 Douglas Christopher Wilson + * MIT Licensed + *) + +send/index.js: + (*! + * send + * Copyright(c) 2012 TJ Holowaychuk + * Copyright(c) 2014-2022 Douglas Christopher Wilson + * MIT Licensed + *) + +forwarded/index.js: + (*! + * forwarded + * Copyright(c) 2014-2017 Douglas Christopher Wilson + * MIT Licensed + *) + +proxy-addr/index.js: + (*! + * proxy-addr + * Copyright(c) 2014-2016 Douglas Christopher Wilson + * MIT Licensed + *) + +express/lib/utils.js: +express/lib/response.js: + (*! + * express + * Copyright(c) 2009-2013 TJ Holowaychuk + * Copyright(c) 2014-2015 Douglas Christopher Wilson + * MIT Licensed + *) + +negotiator/index.js: + (*! + * negotiator + * Copyright(c) 2012 Federico Romero + * Copyright(c) 2012-2014 Isaac Z. Schlueter + * Copyright(c) 2015 Douglas Christopher Wilson + * MIT Licensed + *) + +accepts/index.js: + (*! + * accepts + * Copyright(c) 2014 Jonathan Ong + * Copyright(c) 2015 Douglas Christopher Wilson + * MIT Licensed + *) + +cookie/index.js: + (*! + * cookie + * Copyright(c) 2012-2014 Roman Shtylman + * Copyright(c) 2015 Douglas Christopher Wilson + * MIT Licensed + *) + +vary/index.js: + (*! + * vary + * Copyright(c) 2014-2017 Douglas Christopher Wilson + * MIT Licensed + *) + +serve-static/index.js: + (*! + * serve-static + * Copyright(c) 2010 Sencha Inc. + * Copyright(c) 2011 TJ Holowaychuk + * Copyright(c) 2014-2016 Douglas Christopher Wilson + * MIT Licensed + *) + +object-assign/index.js: + (* + object-assign + (c) Sindre Sorhus + @license MIT + *) +*/ diff --git a/src/cli/handlers/file-context.ts b/src/cli/handlers/file-context.ts index deb3e9c2..32354034 100644 --- a/src/cli/handlers/file-context.ts +++ b/src/cli/handlers/file-context.ts @@ -64,7 +64,7 @@ function formatFileTimeline(observations: ObservationRow[], filePath: string): s }); const lines: string[] = [ - `Existing observations for this file \u2014 review via get_observations([IDs]) to avoid duplicates:`, + `Read blocked: This file has prior observations. Use get_observations([IDs]) to load what you need. Re-read the file only if you need raw content not captured in observations:`, ]; for (const [day, dayObservations] of sortedDays) { @@ -128,15 +128,28 @@ export const fileContextHandler: EventHandler = { return { continue: true, suppressOutput: true }; } - const timeline = formatFileTimeline(data.observations, filePath); + // Check the gate: has this file's timeline been shown in this session? + const gateResponse = await workerHttpRequest('/api/file-context/gate', { + method: 'POST', + headers: { 'Content-Type': 'application/json' }, + body: JSON.stringify({ sessionId: input.sessionId, filePath: relativePath }), + }); - return { - hookSpecificOutput: { - hookEventName: 'PreToolUse', - permissionDecision: 'allow', - additionalContext: timeline, - }, - }; + if (gateResponse.ok) { + const gateData = await gateResponse.json() as { firstAttempt: boolean }; + + if (gateData.firstAttempt) { + // BLOCK: Show timeline, Claude decides whether to re-read or use get_observations() + const timeline = formatFileTimeline(data.observations, filePath); + return { + exitCode: HOOK_EXIT_CODES.BLOCKING_ERROR, + stderrMessage: timeline, + }; + } + } + + // ALLOW: Second attempt or gate check failed — let the read proceed silently + return { continue: true, suppressOutput: true }; } catch (error) { logger.warn('HOOK', 'File context fetch error, skipping', { error: error instanceof Error ? error.message : String(error), diff --git a/src/cli/hook-command.ts b/src/cli/hook-command.ts index 5213ccb7..953eb663 100644 --- a/src/cli/hook-command.ts +++ b/src/cli/hook-command.ts @@ -84,6 +84,14 @@ export async function hookCommand(platform: string, event: string, options: Hook console.log(JSON.stringify(output)); const exitCode = result.exitCode ?? HOOK_EXIT_CODES.SUCCESS; + + // If handler wants to send a blocking message via stderr (exit code 2 contract), + // restore stderr and write the message before exiting + if (result.stderrMessage && exitCode === HOOK_EXIT_CODES.BLOCKING_ERROR) { + process.stderr.write = originalStderrWrite; + process.stderr.write(result.stderrMessage); + } + if (!options.skipExit) { process.exit(exitCode); } diff --git a/src/cli/types.ts b/src/cli/types.ts index 95f78b96..bc9d7d13 100644 --- a/src/cli/types.ts +++ b/src/cli/types.ts @@ -23,6 +23,7 @@ export interface HookResult { }; systemMessage?: string; exitCode?: number; + stderrMessage?: string; // Written to stderr before exit (for exit code 2 blocking feedback) } export interface PlatformAdapter { diff --git a/src/services/worker/FileReadGate.ts b/src/services/worker/FileReadGate.ts new file mode 100644 index 00000000..32cd12a0 --- /dev/null +++ b/src/services/worker/FileReadGate.ts @@ -0,0 +1,58 @@ +/** + * File Read Gate + * + * In-memory session-scoped gate tracking which files have had their timeline + * injected. Prevents duplicate timeline injections within the same session. + */ + +interface SessionEntry { + files: Set; + createdAt: number; +} + +const TTL_MS = 4 * 60 * 60 * 1000; // 4 hours + +const sessionGates = new Map(); + +/** + * Lazily prune session entries older than the TTL. + */ +function pruneExpiredSessions(): void { + const now = Date.now(); + for (const [sessionId, entry] of sessionGates) { + if (now - entry.createdAt > TTL_MS) { + sessionGates.delete(sessionId); + } + } +} + +/** + * Check if this is the first read of a file in a session, and mark it if so. + * Returns true if this is the first attempt (file was not previously seen). + * Returns false if the file was already seen in this session. + */ +export function checkAndMark(sessionId: string, filePath: string): boolean { + pruneExpiredSessions(); + + const normalizedPath = filePath.replace(/\\/g, '/'); + + let entry = sessionGates.get(sessionId); + if (!entry) { + entry = { files: new Set(), createdAt: Date.now() }; + sessionGates.set(sessionId, entry); + } + + if (entry.files.has(normalizedPath)) { + return false; + } + + entry.files.add(normalizedPath); + return true; +} + +/** + * Clear all tracked files for a session (e.g., on session end). + */ +export function clearSession(sessionId: string): void { + sessionGates.delete(sessionId); +} diff --git a/src/services/worker/http/routes/DataRoutes.ts b/src/services/worker/http/routes/DataRoutes.ts index 3b9294c7..29e7a1d6 100644 --- a/src/services/worker/http/routes/DataRoutes.ts +++ b/src/services/worker/http/routes/DataRoutes.ts @@ -19,6 +19,7 @@ import { SSEBroadcaster } from '../../SSEBroadcaster.js'; import type { WorkerService } from '../../../worker-service.js'; import { BaseRouteHandler } from '../BaseRouteHandler.js'; import { getObservationsByFilePath } from '../../../sqlite/observations/get.js'; +import { checkAndMark } from '../../FileReadGate.js'; export class DataRoutes extends BaseRouteHandler { constructor( @@ -62,6 +63,9 @@ export class DataRoutes extends BaseRouteHandler { // Import endpoint app.post('/api/import', this.handleImport.bind(this)); + + // File-context gate + app.post('/api/file-context/gate', this.handleFileContextGate.bind(this)); } /** @@ -496,4 +500,20 @@ export class DataRoutes extends BaseRouteHandler { clearedCount }); }); + + /** + * Check if a file has already had its timeline injected in this session + * POST /api/file-context/gate + * Body: { sessionId: string, filePath: string } + * Returns: { firstAttempt: boolean } + */ + private handleFileContextGate = this.wrapHandler((req: Request, res: Response): void => { + const { sessionId, filePath } = req.body; + if (!sessionId || !filePath) { + this.badRequest(res, 'sessionId and filePath are required'); + return; + } + const firstAttempt = checkAndMark(sessionId, filePath); + res.json({ firstAttempt }); + }); }